@inkeep/open-knowledge 0.36.0-beta.19 → 0.36.0-beta.20

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 (479) hide show
  1. package/dist/{abnfDiagram-VRR7QNED-MRuwtYUd.mjs → abnfDiagram-VRR7QNED-CyIW4oQ8.mjs} +2 -2
  2. package/dist/{acp-harness-probe-BB3MCnqT.mjs → acp-harness-probe-DAsiIrn7.mjs} +2 -2
  3. package/dist/alias-JE7RI5QX-BvhaFG9J.mjs +1 -0
  4. package/dist/{arc-bUagScrM.mjs → arc-CYbidMQb.mjs} +2 -2
  5. package/dist/architecture-TIHT7OUA-BVYsZR9r.mjs +1 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-CxgAI6og.mjs → architectureDiagram-ZJ3FMSHR-CLPPzKEe.mjs} +2 -2
  7. package/dist/{array-DX8f3OIE.mjs → array-BqQze_vE.mjs} +1 -1
  8. package/dist/assets/skills/discovery/SKILL.md +1 -1
  9. package/dist/assets/skills/project/SKILL.md +1 -1
  10. package/dist/awk2-BBAGSFUB-C0jQbtG6.mjs +1 -0
  11. package/dist/{banner-5C76vSEs.mjs → banner-_FQsQkvC.mjs} +2 -2
  12. package/dist/base64-4YMZCVJ5-E_RwmVUf.mjs +1 -0
  13. package/dist/basename-AA2KJYZQ-Dq2O0Dr6.mjs +1 -0
  14. package/dist/bash-IJWYRKFO-BWspyNyq.mjs +1 -0
  15. package/dist/{blockDiagram-677ZJIJ3-DlSE_0dd.mjs → blockDiagram-677ZJIJ3-C-y19CxU.mjs} +2 -2
  16. package/dist/{build-fAc55Z_L.mjs → build-DYQrG4v7.mjs} +1 -1
  17. package/dist/build-DcqN8tua.mjs +1 -0
  18. package/dist/{c4Diagram-LMCZKHZV-DaqyG3s1.mjs → c4Diagram-LMCZKHZV-o2jsbHiN.mjs} +2 -2
  19. package/dist/cat-RDUMLXKC-C3vpYzfr.mjs +1 -0
  20. package/dist/channel-DhqoAJoQ.mjs +2 -0
  21. package/dist/chmod-SYMGL4JA-BzT6KWst.mjs +1 -0
  22. package/dist/{chokidar-OqiVg15e.mjs → chokidar-BCS--vwu.mjs} +1 -1
  23. package/dist/{chunk-24IMIIXA-DBezOUnl.mjs → chunk-24IMIIXA-BQtWA2ag.mjs} +2 -2
  24. package/dist/{chunk-2Q5K7J3B-B8UqHstN.mjs → chunk-2Q5K7J3B-BBA6_zq_.mjs} +2 -2
  25. package/dist/{chunk-2TRDZQLB-Dng6mmbO.mjs → chunk-2TRDZQLB-C_2g1dOd.mjs} +2 -2
  26. package/dist/{chunk-32BRIVSS-Bbzg5lXo.mjs → chunk-32BRIVSS-DYHXEarP.mjs} +2 -2
  27. package/dist/{chunk-3BS5SKQH-4DsN-4Xp.mjs → chunk-3BS5SKQH-nmqNxSIe.mjs} +3 -3
  28. package/dist/{chunk-3H6UQG3A-DiiyFHtZ.mjs → chunk-3H6UQG3A-DLwP7IGN.mjs} +2 -2
  29. package/dist/{chunk-3THT3N7L-DAZ4If0x.mjs → chunk-3THT3N7L-DcPtGCSm.mjs} +1 -1
  30. package/dist/{chunk-3ZUFRYJ4-CpL2LPMn.mjs → chunk-3ZUFRYJ4-DX32azSC.mjs} +1 -1
  31. package/dist/{chunk-44UOCSGV-BO2nBFF4.mjs → chunk-44UOCSGV-Dadyg26w.mjs} +1 -1
  32. package/dist/{chunk-4GTNDTRF-KZ4XTGAA.mjs → chunk-4GTNDTRF-BT6SNd8s.mjs} +2 -2
  33. package/dist/{chunk-4HHKTUW3-CwSRwJJP.mjs → chunk-4HHKTUW3-CL0rAYDo.mjs} +1 -1
  34. package/dist/{chunk-4Q4SM6WR-C93GB6-C.mjs → chunk-4Q4SM6WR-Cf1guB-L.mjs} +2 -2
  35. package/dist/{chunk-52WLFC77-CSTEN0ni.mjs → chunk-52WLFC77-DH1KQBRY.mjs} +2 -2
  36. package/dist/{chunk-55VFSPNA-B2_R6xXq.mjs → chunk-55VFSPNA-B2P94_nY.mjs} +2 -2
  37. package/dist/{chunk-5FCAYU7R-C1nG1tRO.mjs → chunk-5FCAYU7R-DamFELXo.mjs} +2 -2
  38. package/dist/{chunk-5HE753X5-VIkzv7xx.mjs → chunk-5HE753X5-CK-MLDEN.mjs} +2 -2
  39. package/dist/{chunk-5JV3BV7I-Cq3bUKo-.mjs → chunk-5JV3BV7I-XXAgMX9r.mjs} +2 -2
  40. package/dist/{chunk-5QMZ5MUS-DQpm1xRC.mjs → chunk-5QMZ5MUS-D8tv8KWc.mjs} +2 -2
  41. package/dist/{chunk-5QVNJEHU-pD4J4Xco.mjs → chunk-5QVNJEHU-0Om-Hby0.mjs} +2 -2
  42. package/dist/{chunk-5TONJI2A-BwxHXb6l.mjs → chunk-5TONJI2A-Du5dq0Ys.mjs} +2 -2
  43. package/dist/{chunk-5V6VZH6T-BslUs7qc.mjs → chunk-5V6VZH6T-D9prksm6.mjs} +2 -2
  44. package/dist/{chunk-5VM5RSS4-CHIwvYlB.mjs → chunk-5VM5RSS4-B9nF5Lzd.mjs} +2 -2
  45. package/dist/{chunk-62RKD26F-CQ3_xat_.mjs → chunk-62RKD26F-pjncC7By.mjs} +2 -2
  46. package/dist/{chunk-64BAICW3-BC9fynW-.mjs → chunk-64BAICW3-2hCf5wU5.mjs} +2 -2
  47. package/dist/{chunk-6Z5SFZXK-DXL8xXAg.mjs → chunk-6Z5SFZXK-eDS7YpbK.mjs} +2 -2
  48. package/dist/{chunk-74CEPOFO-BMp2K2yg.mjs → chunk-74CEPOFO-D5a5lNJR.mjs} +1 -1
  49. package/dist/{chunk-7BUUIJ7U-fAmGLgX5.mjs → chunk-7BUUIJ7U-CKtuqKC6.mjs} +2 -2
  50. package/dist/{chunk-7L36YK2X-3t0hnWY1.mjs → chunk-7L36YK2X-L3jD5RT-.mjs} +1 -1
  51. package/dist/{chunk-7TSDKFEO-B5SsJVbr.mjs → chunk-7TSDKFEO-Csacasvr.mjs} +1 -1
  52. package/dist/{chunk-A4HU7SVR-DfoZhmnP.mjs → chunk-A4HU7SVR-B6M8dLIA.mjs} +1 -1
  53. package/dist/{chunk-A4JSPFCI-Cux120UA.mjs → chunk-A4JSPFCI-CcbmCyG6.mjs} +2 -2
  54. package/dist/{chunk-A5O5YHGN-o5pxA52u.mjs → chunk-A5O5YHGN-C27iG4wY.mjs} +2 -2
  55. package/dist/{chunk-A65PWWJC-GAptCb-I.mjs → chunk-A65PWWJC-D_GAtJYb.mjs} +2 -2
  56. package/dist/{chunk-A7A2DBEE-BSr2clxw.mjs → chunk-A7A2DBEE-D1HWRTG-.mjs} +1 -1
  57. package/dist/{chunk-A7ICOL4V-CjiwzhhS.mjs → chunk-A7ICOL4V-C8N1DqNa.mjs} +2 -2
  58. package/dist/{chunk-ALLTKNUZ-DoK58avP.mjs → chunk-ALLTKNUZ-AOz3zDg8.mjs} +2 -2
  59. package/dist/{chunk-APT7OOP2-BQaqF8RQ.mjs → chunk-APT7OOP2-e8HVVYt4.mjs} +2 -2
  60. package/dist/{chunk-B74TABJS-BYzuvHKf.mjs → chunk-B74TABJS-BSazPoW8.mjs} +1 -1
  61. package/dist/{chunk-BGSUD5R5-B1XnW7TM.mjs → chunk-BGSUD5R5-BIZeqUja.mjs} +2 -2
  62. package/dist/{chunk-BIQX33UG-DRq8q_SM.mjs → chunk-BIQX33UG-CLYGAgEl.mjs} +2 -2
  63. package/dist/{chunk-C7G6YPKG-B1crnvB0.mjs → chunk-C7G6YPKG-Bd7km2QU.mjs} +2 -2
  64. package/dist/{chunk-CQNSW5MT-C6bTzUCm.mjs → chunk-CQNSW5MT-C4GcKMFe.mjs} +2 -2
  65. package/dist/{chunk-CWQS3NFK-BlLAUZpn.mjs → chunk-CWQS3NFK-HnFncXpd.mjs} +1 -1
  66. package/dist/{chunk-CYSBUYHQ-DLdQtj90.mjs → chunk-CYSBUYHQ-Bg8p94kN.mjs} +2 -2
  67. package/dist/{chunk-D4J545R4-hU2sCN2Z.mjs → chunk-D4J545R4-DstPCHY3.mjs} +2 -2
  68. package/dist/{chunk-D6CWQ5DW-BSok99Dd.mjs → chunk-D6CWQ5DW-B-mbMqx1.mjs} +2 -2
  69. package/dist/{chunk-D7MEQ3VN-30ZiNNs_.mjs → chunk-D7MEQ3VN-L5KTglFl.mjs} +2 -2
  70. package/dist/{chunk-DBKNVD4L-EJCI-Wpl.mjs → chunk-DBKNVD4L-TDavYUFP.mjs} +2 -2
  71. package/dist/{chunk-DCAAORBQ-DhdRNBI_.mjs → chunk-DCAAORBQ-CVYtUSXu.mjs} +2 -2
  72. package/dist/{chunk-DXB73IDG-Ox62dibI.mjs → chunk-DXB73IDG-q-dGnwlc.mjs} +1 -1
  73. package/dist/{chunk-EEXR5ZDP-BxPTZCTO.mjs → chunk-EEXR5ZDP-DKmcp163.mjs} +1 -1
  74. package/dist/{chunk-EIZGF4BS-CyaFisSR.mjs → chunk-EIZGF4BS-CF3xXFmY.mjs} +2 -2
  75. package/dist/{chunk-EMLP6XTP--uOozNBw.mjs → chunk-EMLP6XTP-DOWW1yTB.mjs} +2 -2
  76. package/dist/{chunk-EX3LRPZG-Dk9gva6E.mjs → chunk-EX3LRPZG-BMWHPlJp.mjs} +2 -2
  77. package/dist/{chunk-F23WWYKW-Bu4vWVb5.mjs → chunk-F23WWYKW-B1-WhWYU.mjs} +2 -2
  78. package/dist/{chunk-FWX5IMBZ-CLMJveA0.mjs → chunk-FWX5IMBZ-BAa0doOI.mjs} +2 -2
  79. package/dist/{chunk-GCTKCWKD-DeVIExUM.mjs → chunk-GCTKCWKD-C-I4uPLP.mjs} +1 -1
  80. package/dist/{chunk-GFQRA5P5-CqcXYmKy.mjs → chunk-GFQRA5P5-JJS41DJS.mjs} +1 -1
  81. package/dist/{chunk-GOV5EKKI-BMmLRdGz.mjs → chunk-GOV5EKKI-DMNNr1LX.mjs} +2 -2
  82. package/dist/{chunk-GXVXFKBA-CJJxmN2I.mjs → chunk-GXVXFKBA-CHoBbpeP.mjs} +2 -2
  83. package/dist/{chunk-HDQ56CKY-fy1jqg-_.mjs → chunk-HDQ56CKY-D4gBGBPX.mjs} +2 -2
  84. package/dist/{chunk-HJQJAYMS-Y0SFBjYL.mjs → chunk-HJQJAYMS-DfJokS61.mjs} +1 -1
  85. package/dist/{chunk-HJWBQKYG-D3Cd028p.mjs → chunk-HJWBQKYG-C34BatAz.mjs} +2 -2
  86. package/dist/{chunk-HKLCLINH-CTqL5EfM.mjs → chunk-HKLCLINH-C_zL5CHv.mjs} +3 -3
  87. package/dist/{chunk-HL6NGDO2-VT6a52k0.mjs → chunk-HL6NGDO2-CX48H9NQ.mjs} +2 -2
  88. package/dist/{chunk-HOUHSVGY-D822oa3I.mjs → chunk-HOUHSVGY-DEVfwHxJ.mjs} +2 -2
  89. package/dist/{chunk-HWKDQ44K-DJXGIPg5.mjs → chunk-HWKDQ44K-DvFquSuN.mjs} +2 -2
  90. package/dist/{chunk-I57KEIP3-ppa8L97a.mjs → chunk-I57KEIP3-C-GWJFeH.mjs} +2 -2
  91. package/dist/{chunk-ICXQ74PX-Cr0dJaYf.mjs → chunk-ICXQ74PX-BVMOo_rh.mjs} +2 -2
  92. package/dist/{chunk-IPJHKYVM-2ljR04mN.mjs → chunk-IPJHKYVM-h6H65Zzk.mjs} +1 -1
  93. package/dist/{chunk-JG7HCLWE-BA1IxsXx.mjs → chunk-JG7HCLWE-BL-hOXz_.mjs} +2 -2
  94. package/dist/{chunk-JVPRLUMK-16kFUNUi.mjs → chunk-JVPRLUMK-KIcPtJsL.mjs} +2 -2
  95. package/dist/{chunk-JWPE2WC7-DRCHpx1T.mjs → chunk-JWPE2WC7-B4cjhMJa.mjs} +2 -2
  96. package/dist/{chunk-K6LIBGJA-0YLvF23g.mjs → chunk-K6LIBGJA-DifITl-A.mjs} +2 -2
  97. package/dist/{chunk-KEIR6QF5-CbMVmbbA.mjs → chunk-KEIR6QF5-D5fHRjH_.mjs} +1 -1
  98. package/dist/{chunk-KMEYNNUA-CwyO53n5.mjs → chunk-KMEYNNUA-BulSmamX.mjs} +2 -2
  99. package/dist/{chunk-KRBPSX3W-kLM64L7F.mjs → chunk-KRBPSX3W-DrDWj6yq.mjs} +2 -2
  100. package/dist/{chunk-KX3P26DQ-DuuBB9Iu.mjs → chunk-KX3P26DQ-Di79jFtW.mjs} +1 -1
  101. package/dist/{chunk-LL3S3NLB-Cp81lwkJ.mjs → chunk-LL3S3NLB-rdnne998.mjs} +2 -2
  102. package/dist/{chunk-LTZRCH7N-VU8jqsvv.mjs → chunk-LTZRCH7N-CcW89saL.mjs} +2 -2
  103. package/dist/{chunk-LWEGUNWT-DSGl5TzB.mjs → chunk-LWEGUNWT-56p2g4nb.mjs} +2 -2
  104. package/dist/{chunk-MDDMCKUK-DZck49I0.mjs → chunk-MDDMCKUK-CL40B1CC.mjs} +2 -2
  105. package/dist/{chunk-MDLLFABN-V0yImvVO.mjs → chunk-MDLLFABN-CDjkVtAO.mjs} +2 -2
  106. package/dist/{chunk-MHTUABJP-HvBISxtE.mjs → chunk-MHTUABJP-D8V0hAkM.mjs} +1 -1
  107. package/dist/{chunk-MIZPJHVH-DGpooQ_3.mjs → chunk-MIZPJHVH-q38ahMm1.mjs} +2 -2
  108. package/dist/{chunk-MLXIYONF-lOlP54El.mjs → chunk-MLXIYONF-BwLP8wJ5.mjs} +2 -2
  109. package/dist/{chunk-MOJQB5TN-CZ6iucuh.mjs → chunk-MOJQB5TN-BlrHhlHB.mjs} +2 -2
  110. package/dist/{chunk-MOZMSUNE-CpteojMm.mjs → chunk-MOZMSUNE-CxsrZHOL.mjs} +2 -2
  111. package/dist/{chunk-MYE6AGBJ-C6WSmlNB.mjs → chunk-MYE6AGBJ-Dh-4DgDD.mjs} +2 -2
  112. package/dist/{chunk-NAERJDUW-CneISWcj.mjs → chunk-NAERJDUW-BKjqzg55.mjs} +2 -2
  113. package/dist/{chunk-NCNPKYJZ-Cu-qUSv2.mjs → chunk-NCNPKYJZ-D7DW6h8D.mjs} +2 -2
  114. package/dist/{chunk-NUYSJFDK-Do6l0AJc.mjs → chunk-NUYSJFDK-KW8uL1OU.mjs} +2 -2
  115. package/dist/{chunk-OCLXQMOG-ZaFJAtQp.mjs → chunk-OCLXQMOG-DyesF30h.mjs} +2 -2
  116. package/dist/{chunk-OCS6LSEM-TPIk3o36.mjs → chunk-OCS6LSEM-BuHq4vgI.mjs} +2 -2
  117. package/dist/{chunk-OGEWGWER-DcbEeYCc.mjs → chunk-OGEWGWER-Diyk7J65.mjs} +2 -2
  118. package/dist/{chunk-OJDRYQWQ-f3Z1QzT5.mjs → chunk-OJDRYQWQ-CmHyfN6x.mjs} +1 -1
  119. package/dist/{chunk-OSBZ3O6U-CgIaPbTu.mjs → chunk-OSBZ3O6U-xu2H_t-I.mjs} +2 -2
  120. package/dist/{chunk-PBXLG62G-BfXzkxtr.mjs → chunk-PBXLG62G-Dt3seCXC.mjs} +2 -2
  121. package/dist/{chunk-PP6PSHAB-CcaFFaq2.mjs → chunk-PP6PSHAB-BoToLAyG.mjs} +1 -1
  122. package/dist/{chunk-PUDLZKDR-9dANlbmh.mjs → chunk-PUDLZKDR-BIqiwjP2.mjs} +2 -2
  123. package/dist/{chunk-PXTK5WE2-61a3AYYa.mjs → chunk-PXTK5WE2-6yLfmmSs.mjs} +2 -2
  124. package/dist/{chunk-PYSFUGCK-B5DMIXaG.mjs → chunk-PYSFUGCK-DRdz7MOj.mjs} +2 -2
  125. package/dist/{chunk-Q4XR5HBZ-38YXyWmU.mjs → chunk-Q4XR5HBZ-CQiRMQNx.mjs} +2 -2
  126. package/dist/{chunk-QBLGF6JB-DVgcIx5c.mjs → chunk-QBLGF6JB-CZlF3VMT.mjs} +2 -2
  127. package/dist/{chunk-QCDB2VPH-l-szpN8N.mjs → chunk-QCDB2VPH-BnCQYX4A.mjs} +2 -2
  128. package/dist/{chunk-QJ7O6ZN3-DW6crNpo.mjs → chunk-QJ7O6ZN3-IyfDNhDN.mjs} +2 -2
  129. package/dist/{chunk-R6QSAL5T-DG_epkq4.mjs → chunk-R6QSAL5T-CK5T9nTq.mjs} +1 -1
  130. package/dist/{chunk-R6VWJ2ZL-maXiYFEy.mjs → chunk-R6VWJ2ZL-CQWpbRHp.mjs} +1 -1
  131. package/dist/{chunk-R7FJI6CG-CXpycGGu.mjs → chunk-R7FJI6CG-CxRbRaPW.mjs} +2 -2
  132. package/dist/{chunk-RPNGRAAP-DsTcWIWY.mjs → chunk-RPNGRAAP-Dm3Foy2a.mjs} +2 -2
  133. package/dist/{chunk-RYQCIY6F-D0mkTOXq.mjs → chunk-RYQCIY6F-DsJ8x3au.mjs} +2 -2
  134. package/dist/{chunk-SDNKECQQ-C6k9so9Y.mjs → chunk-SDNKECQQ-eDjS077u.mjs} +2 -2
  135. package/dist/{chunk-SNN4IESC-YDdCOrJS.mjs → chunk-SNN4IESC-dc9Emx2i.mjs} +2 -2
  136. package/dist/{chunk-T56QNPHK-CHeJdHn4.mjs → chunk-T56QNPHK-DcLcXLAt.mjs} +2 -2
  137. package/dist/{chunk-TLSUDHID-DuTMz3Tk.mjs → chunk-TLSUDHID-BOrmK-jg.mjs} +2 -2
  138. package/dist/{chunk-TOMNU26N-DNikuf0-.mjs → chunk-TOMNU26N-CfKJYNUm.mjs} +2 -2
  139. package/dist/{chunk-TP4BZANS-DmLwc2kG.mjs → chunk-TP4BZANS-EASixEFX.mjs} +2 -2
  140. package/dist/{chunk-TXBZCHCQ-Col-JdX_.mjs → chunk-TXBZCHCQ-CK2DQwjP.mjs} +2 -2
  141. package/dist/{chunk-U6XO7XAA-DSY38mpK.mjs → chunk-U6XO7XAA-ahVBPW6i.mjs} +2 -2
  142. package/dist/{chunk-V5MWI2OL-BN3EKpBR.mjs → chunk-V5MWI2OL-Cd1wUWKd.mjs} +2 -2
  143. package/dist/{chunk-V7JOEXUC-C5ib4xiC.mjs → chunk-V7JOEXUC-31UT4kI9.mjs} +2 -2
  144. package/dist/{chunk-V7TAPXDL-Dxh5e3zU.mjs → chunk-V7TAPXDL-B4X-oI_G.mjs} +2 -2
  145. package/dist/chunk-VAUOI2AC-Irj_jrJs.mjs +2 -0
  146. package/dist/{chunk-VJFXDYWH-BgdE4n6Z.mjs → chunk-VJFXDYWH-CYSruK3V.mjs} +2 -2
  147. package/dist/{chunk-VOBGTVA6-CBcxC-Sf.mjs → chunk-VOBGTVA6-D7PSswl5.mjs} +2 -2
  148. package/dist/{chunk-VR4S4FIN-jf24rhVx.mjs → chunk-VR4S4FIN-ClMSUBWQ.mjs} +2 -2
  149. package/dist/{chunk-VYOJP4TV-BDby1RAb.mjs → chunk-VYOJP4TV-Dv2fFnVt.mjs} +2 -2
  150. package/dist/{chunk-WKFATFPP--WTlAW5e.mjs → chunk-WKFATFPP-Dj6ID3dE.mjs} +2 -2
  151. package/dist/{chunk-WYO6CB5R-DqktMY2P.mjs → chunk-WYO6CB5R-Bu0g7bu2.mjs} +2 -2
  152. package/dist/{chunk-X2AJGDEF-CmgoYsnP.mjs → chunk-X2AJGDEF-BAGBpB2e.mjs} +1 -1
  153. package/dist/{chunk-XKQRETAK-CEVVGe_v.mjs → chunk-XKQRETAK-BFwrbyC7.mjs} +2 -2
  154. package/dist/{chunk-XKWWSDBF-DA5bR-kM.mjs → chunk-XKWWSDBF-CY0zm_d3.mjs} +2 -2
  155. package/dist/{chunk-XVDPCNWR-DM2iNkJU.mjs → chunk-XVDPCNWR-BeU4kyoN.mjs} +2 -2
  156. package/dist/chunk-XXDRQBXY-ClPfCVft.mjs +2 -0
  157. package/dist/{chunk-Y2CYZVJY-BBlcLUFu.mjs → chunk-Y2CYZVJY-D-AxePDr.mjs} +1 -1
  158. package/dist/{chunk-YMMW5UAP-uI8PBVuJ.mjs → chunk-YMMW5UAP-Dk_tcn_t.mjs} +2 -2
  159. package/dist/{chunk-YOTPTUD7-D8Hf5u1b.mjs → chunk-YOTPTUD7-BtJLrOsu.mjs} +2 -2
  160. package/dist/{chunk-YTNYSM6T-Dqq8ZsVN.mjs → chunk-YTNYSM6T-D70kTYmT.mjs} +2 -2
  161. package/dist/{chunk-YULBWSET-dtiOmSyC.mjs → chunk-YULBWSET-aTxOIZGk.mjs} +2 -2
  162. package/dist/{chunk-Z6LRHWXI-CK5HrtO9.mjs → chunk-Z6LRHWXI-BGPMNtJW.mjs} +2 -2
  163. package/dist/{chunk-Z7JVV2SM-BAYeFnjH.mjs → chunk-Z7JVV2SM-Y0p3CYM_.mjs} +2 -2
  164. package/dist/{chunk-ZGVPDNZ5-0A2bH77_.mjs → chunk-ZGVPDNZ5-DSVV_BiI.mjs} +2 -2
  165. package/dist/{chunk-ZIRB5QZD-DEXKfYqD.mjs → chunk-ZIRB5QZD-B2znOhor.mjs} +2 -2
  166. package/dist/{chunk-ZZO3UDB3-CHBCmcPq.mjs → chunk-ZZO3UDB3-R3zof8I8.mjs} +2 -2
  167. package/dist/classDiagram-OUVF2IWQ-CWObDbTU.mjs +2 -0
  168. package/dist/classDiagram-v2-EOCWNBFH-CUMl48K_.mjs +2 -0
  169. package/dist/clear-5CZ5X4YR-DiniSeCm.mjs +1 -0
  170. package/dist/cli.mjs +8 -8
  171. package/dist/colors-CUOU_72x.mjs +1 -0
  172. package/dist/{colors-BslXS0bZ.mjs → colors-_gzKDfrv.mjs} +1 -1
  173. package/dist/column-WLPMMSTS-B1OOeDAs.mjs +1 -0
  174. package/dist/comm-5SLSESQG-C4Rjg6X-.mjs +1 -0
  175. package/dist/constants-hkGRiNzn.mjs +2 -0
  176. package/dist/{cose-bilkent-JH36ORCC-CDMCL8Bi.mjs → cose-bilkent-JH36ORCC-DwAqPWSx.mjs} +2 -2
  177. package/dist/cp-XOYR4ABJ-sYSLIPgW.mjs +1 -0
  178. package/dist/{curl-47BFPSFW-mroj3eWi.mjs → curl-47BFPSFW-DtUGPJbr.mjs} +2 -2
  179. package/dist/cut-OPC3VAGB-Bh_filgx.mjs +1 -0
  180. package/dist/cynefin-VYW2F7L2-CEVi_iCC.mjs +1 -0
  181. package/dist/{cynefinDiagram-TSTJHNR4-Bl9N0jn2.mjs → cynefinDiagram-TSTJHNR4-Dp6ZCni9.mjs} +2 -2
  182. package/dist/{cytoscape.esm-oINUagAk.mjs → cytoscape.esm-B3Kjf-Bp.mjs} +1 -1
  183. package/dist/{dagre-BRDgQm9s.mjs → dagre-CTeiWCGh.mjs} +2 -2
  184. package/dist/{dagre-VKFMJZFB-DnGxEytM.mjs → dagre-VKFMJZFB-FTWgT7HO.mjs} +2 -2
  185. package/dist/date-DD7FVA2V-ByX6dFhf.mjs +1 -0
  186. package/dist/{defaultLocale-C2OwmdQz.mjs → defaultLocale-DPK87u2Z.mjs} +1 -1
  187. package/dist/{diagram-FQU43EPY-urwpbEO_.mjs → diagram-FQU43EPY-BgUehmaO.mjs} +2 -2
  188. package/dist/{diagram-G47NLZAW-ByO1P7uq.mjs → diagram-G47NLZAW-gH-Ih94q.mjs} +2 -2
  189. package/dist/{diagram-NH7WQ7WH-BHsZvybH.mjs → diagram-NH7WQ7WH-DYr1RvMm.mjs} +2 -2
  190. package/dist/{diagram-OA4YK3LP-DCfEUT17.mjs → diagram-OA4YK3LP-BRb4Y3EQ.mjs} +2 -2
  191. package/dist/{diagram-WEI45ONY-C9GDffrX.mjs → diagram-WEI45ONY-Bcifi75m.mjs} +2 -2
  192. package/dist/diff-HJF2MPDN-BvwqXcA5.mjs +1 -0
  193. package/dist/dirname-LEMTZZFS-DNEfkSJA.mjs +1 -0
  194. package/dist/{dist-szxx-3zj.mjs → dist-DODzJ7LG.mjs} +1 -1
  195. package/dist/dist-bundle-B-JhpGTG.mjs +1 -0
  196. package/dist/{dist-bundle-CXsoqjjc.mjs → dist-bundle-vlpIc23T.mjs} +1 -1
  197. package/dist/du-WO2ENHXQ-D_erNUzD.mjs +1 -0
  198. package/dist/{ebnfDiagram-CCIWWBDH-Wb318ghH.mjs → ebnfDiagram-CCIWWBDH-BlBla8lv.mjs} +2 -2
  199. package/dist/echo-O45JWWI2-B8YWvx1Q.mjs +1 -0
  200. package/dist/env-5EPCWSXR-Cor7cJ6o.mjs +1 -0
  201. package/dist/{erDiagram-Q63AITRT-Bi2wcQ67.mjs → erDiagram-Q63AITRT-BxKcPLGX.mjs} +2 -2
  202. package/dist/eventmodeling-45OFAUF4-BENS2g0X.mjs +1 -0
  203. package/dist/{execAsync-BqpCoDXT.mjs → execAsync-BUKncp0P.mjs} +1 -1
  204. package/dist/{execAsync-CnxS1O8r.mjs → execAsync-DEmazqCE.mjs} +1 -1
  205. package/dist/expand-DTNXU4LQ-CMN49iyc.mjs +1 -0
  206. package/dist/expansion-VBDYWVZR-e2HuIG0U.mjs +1 -0
  207. package/dist/expr-YYCVMXE3-VEQOsPiP.mjs +1 -0
  208. package/dist/file-IGDTDPLG-CsAmedJu.mjs +1 -0
  209. package/dist/find-DH2ALKQS-D4DqPp7j.mjs +1 -0
  210. package/dist/flag-coverage-6JEX67RU-D3X0I2ha.mjs +2 -0
  211. package/dist/flowDiagram-23GEKE2U-CD0oxQCp.mjs +1 -0
  212. package/dist/fold-LDSORVYE-CkAvzOUr.mjs +1 -0
  213. package/dist/{fs-traced-BISd_YTv.mjs → fs-traced-B-qtPUmb.mjs} +3 -3
  214. package/dist/fs-traced-BRzKbmYW.mjs +1 -0
  215. package/dist/{ganttDiagram-NO4QXBWP-CqiLLOBV.mjs → ganttDiagram-NO4QXBWP-DGpVzTxp.mjs} +2 -2
  216. package/dist/{getMachineId-bsd-CZgjlNQ2.mjs → getMachineId-bsd-BN-aHS3V.mjs} +2 -2
  217. package/dist/{getMachineId-bsd-D2ZupYV9.mjs → getMachineId-bsd-BZEr0yHg.mjs} +2 -2
  218. package/dist/{getMachineId-darwin-B_jPfTd1.mjs → getMachineId-darwin-BWLy_Kik.mjs} +2 -2
  219. package/dist/{getMachineId-darwin-ClB_QXja.mjs → getMachineId-darwin-CRdUTcMc.mjs} +2 -2
  220. package/dist/{getMachineId-linux-CQKxIpmc.mjs → getMachineId-linux-CVE8Y0Fo.mjs} +1 -1
  221. package/dist/{getMachineId-linux-JeSXZREP.mjs → getMachineId-linux-DX2JAnAv.mjs} +1 -1
  222. package/dist/{getMachineId-unsupported-B2n-ZUQv.mjs → getMachineId-unsupported-CA6ETHmi.mjs} +1 -1
  223. package/dist/{getMachineId-unsupported-C8BkbPxU.mjs → getMachineId-unsupported-DmJiNggJ.mjs} +1 -1
  224. package/dist/{getMachineId-win-BIEPGYfo.mjs → getMachineId-win-B_OXaWuM.mjs} +2 -2
  225. package/dist/{getMachineId-win-BwjtxqaR.mjs → getMachineId-win-nbjd9hhL.mjs} +2 -2
  226. package/dist/git-handle-DY72DIzL.mjs +1 -0
  227. package/dist/{git-handle-DJkXvQyT.mjs → git-handle-Kmafc544.mjs} +1 -1
  228. package/dist/gitGraph-TEB2WS4Q-C-obuzNL.mjs +1 -0
  229. package/dist/{gitGraphDiagram-IHSO6WYX-DZwzv-4F.mjs → gitGraphDiagram-IHSO6WYX-BHxhlO7y.mjs} +2 -2
  230. package/dist/{graphlib-yfSiy6Um.mjs → graphlib-BRVRb9Ce.mjs} +1 -1
  231. package/dist/grep-2HUTXO5U-BHpyAWOj.mjs +1 -0
  232. package/dist/gzip-AQXSGOVS-kgzROhmg.mjs +1 -0
  233. package/dist/head-HT2B6D2J-BkVS3Xmr.mjs +1 -0
  234. package/dist/help-VVWX7SA5-Cnq4Pk95.mjs +1 -0
  235. package/dist/history-J4QRNGRO-ChaCzoJD.mjs +1 -0
  236. package/dist/hostname-BK6HG2DE-TD2KmZjb.mjs +1 -0
  237. package/dist/html-to-markdown-TFCECAGV-DRmuleyA.mjs +1 -0
  238. package/dist/index-7O1fNicl.d.mts +6628 -0
  239. package/dist/index.d.mts +3 -6630
  240. package/dist/index.mjs +1 -1
  241. package/dist/info-DKCQHKI2-_AQUrTgC.mjs +1 -0
  242. package/dist/{infoDiagram-FWYZ7A6U-BM1Ls1Dh.mjs → infoDiagram-FWYZ7A6U-Be13xP1j.mjs} +2 -2
  243. package/dist/{init-6u-ABSZn.mjs → init-DDWCwe7k.mjs} +3 -3
  244. package/dist/{init-tbpbpLGt.mjs → init-DotcULIJ.mjs} +1 -1
  245. package/dist/init-jd5k1-cp.mjs +1 -0
  246. package/dist/{is-object-DKopTkoU.mjs → is-object-Bw0-z8qH.mjs} +1 -1
  247. package/dist/{ishikawaDiagram-FXEZZL3T-uTA-fAAk.mjs → ishikawaDiagram-FXEZZL3T-DTVMpa-_.mjs} +2 -2
  248. package/dist/join-GG2LDHE5-O6S65p4r.mjs +1 -0
  249. package/dist/{journeyDiagram-5HDEW3XC-Cw11aRYv.mjs → journeyDiagram-5HDEW3XC-BTWVlxLh.mjs} +2 -2
  250. package/dist/jq-LYZFFBZB-DTUwGGgl.mjs +1 -0
  251. package/dist/{js-exec-VXN6TZ7U-DsUBx8d6.mjs → js-exec-VXN6TZ7U-BJsjY3Aj.mjs} +2 -2
  252. package/dist/{kanban-definition-HUTT4EX6-Baff2PH6.mjs → kanban-definition-HUTT4EX6-g-tXrd8p.mjs} +2 -2
  253. package/dist/{launch-json-removal-D4WCZCs2.mjs → launch-json-removal-BEpF6f4C.mjs} +2 -2
  254. package/dist/{lib-C0NPuznE.mjs → lib-BpZC9d5Z.mjs} +1 -1
  255. package/dist/{lib-CQhjuFnl.mjs → lib-CE7ieLC-.mjs} +6 -6
  256. package/dist/{libesm-C_k4J_j_.mjs → libesm-CG75CrN9.mjs} +1 -1
  257. package/dist/{line-KDMlFQmk.mjs → line-Bq-Bigdz.mjs} +2 -2
  258. package/dist/{linear-Cknt1ah8.mjs → linear-DHgeTTi3.mjs} +2 -2
  259. package/dist/ln-4TRFBYAT-DErk_Yl0.mjs +1 -0
  260. package/dist/loader-B27f8C-M.mjs +1 -0
  261. package/dist/{loader-Co8_Z3Xs.mjs → loader-Ckek-jU0.mjs} +2 -2
  262. package/dist/{logger-CFNLuVy2.mjs → logger-CuGHGn_E.mjs} +2 -2
  263. package/dist/ls-KSXFZCWH-DQIF-HgH.mjs +1 -0
  264. package/dist/{lzma-BjHuRbmQ.mjs → lzma-66I-DF3D.mjs} +1 -1
  265. package/dist/{map-SPsRjb1g.mjs → map-DbF7r1vR.mjs} +2 -2
  266. package/dist/{mcp-migrate-event-9DFnNzHa.mjs → mcp-migrate-event-CWx0WLdE.mjs} +1 -1
  267. package/dist/md-manager-Burt5wQf.mjs +2 -0
  268. package/dist/md5sum-INMIK4DX-BElHH82h.mjs +1 -0
  269. package/dist/{mermaid-parser.core-OVAP8Q4-.mjs → mermaid-parser.core-Dq0Vyvhg.mjs} +2 -2
  270. package/dist/{mermaid.core-OAbCFO6G.mjs → mermaid.core-BeGj3DLy.mjs} +3 -3
  271. package/dist/{mindmap-definition-LN4V7U3C-BdjgcgYk.mjs → mindmap-definition-LN4V7U3C-BMIyW_lX.mjs} +2 -2
  272. package/dist/mkdir-TDEMSB6C-BnpJKc8r.mjs +1 -0
  273. package/dist/mv-Z6MORUFL-CFyBiApv.mjs +1 -0
  274. package/dist/nl-U5YJDM32-CgnuF_hC.mjs +1 -0
  275. package/dist/od-VJEF2UR5-BTJQNl6y.mjs +1 -0
  276. package/dist/{open-browser-D5VB75t8.mjs → open-browser-DwZulh9C.mjs} +2 -2
  277. package/dist/{ordinal-NM5hhhX_.mjs → ordinal-CUIZW000.mjs} +2 -2
  278. package/dist/packet-7NZHBO7P-CHMfNci8.mjs +1 -0
  279. package/dist/parse-worker.d.mts +1 -0
  280. package/dist/parse-worker.mjs +2 -0
  281. package/dist/paste-7N6AFSDS-CnLMuz8G.mjs +1 -0
  282. package/dist/{path-CuyLxhiv.mjs → path-BT3cGQxQ.mjs} +1 -1
  283. package/dist/{pegDiagram-2B236MQR-DJXjOpaI.mjs → pegDiagram-2B236MQR-j5NleAHq.mjs} +2 -2
  284. package/dist/pie-RZYD4A2V-02sGjUcO.mjs +1 -0
  285. package/dist/{pieDiagram-ENE6RG2P-B4q1JwNq.mjs → pieDiagram-ENE6RG2P-BGffNz0y.mjs} +2 -2
  286. package/dist/preview-CAmGJo6I.mjs +1 -0
  287. package/dist/{preview-CsOp4q2K.mjs → preview-Dg4Sbf4n.mjs} +2 -2
  288. package/dist/printf-CX64KX2P-DyVBy6Mg.mjs +1 -0
  289. package/dist/pwd-D4OZ7N27-Pga3crue.mjs +1 -0
  290. package/dist/{python3-DNGS4G3E-Chmc5h75.mjs → python3-DNGS4G3E-BPxhh_Jp.mjs} +2 -2
  291. package/dist/{quadrantDiagram-ABIIQ3AL-gmILsbML.mjs → quadrantDiagram-ABIIQ3AL-RE3ttQBG.mjs} +2 -2
  292. package/dist/radar-I7S5WNFK-gNSWd2rG.mjs +1 -0
  293. package/dist/railroad-3IZDKUUU-tTi02nbm.mjs +1 -0
  294. package/dist/railroad-abnf-AHOZXSZD-DD6KwCgt.mjs +1 -0
  295. package/dist/railroad-ebnf-EBAXGLYW-zJw8iMTp.mjs +1 -0
  296. package/dist/railroad-peg-LSFZ7HO6-8PbAUZs1.mjs +1 -0
  297. package/dist/{railroadDiagram-RFXS5EU6-CxpH1Rw0.mjs → railroadDiagram-RFXS5EU6-Co0UHOis.mjs} +2 -2
  298. package/dist/readlink-MI4GCHJF-D9QYkCU0.mjs +1 -0
  299. package/dist/{repair-launch-json-Dw-kyAe-.mjs → repair-launch-json-DVVkRMCr.mjs} +2 -2
  300. package/dist/{repair-mcp-configs-ETOH7oQP.mjs → repair-mcp-configs-DrNSiysY.mjs} +2 -2
  301. package/dist/{repair-skills-RJYUnfJN.mjs → repair-skills-Q9Gr8Nvl.mjs} +2 -2
  302. package/dist/repair-skills-pY9FxlXw.mjs +1 -0
  303. package/dist/{requirementDiagram-TGXJPOKE-8EY28vwz.mjs → requirementDiagram-TGXJPOKE-CkQZFeMs.mjs} +2 -2
  304. package/dist/rev-XOSYPP45-BGL4FR9H.mjs +1 -0
  305. package/dist/rg-XNF3R3II-BMfKONjk.mjs +1 -0
  306. package/dist/rm-RTZG23RL-vsz0Vtsc.mjs +1 -0
  307. package/dist/rmdir-XTQXT7RK-C9jARGFn.mjs +1 -0
  308. package/dist/{rough.cjs-qg3X_KxX.mjs → rough.cjs-s8-IvpYn.mjs} +1 -1
  309. package/dist/{sankeyDiagram-HTMAVEWB-Cw3uwIfR.mjs → sankeyDiagram-HTMAVEWB-CDausn8Y.mjs} +2 -2
  310. package/dist/sed-JAPPVBEU-YSD3Wwpz.mjs +1 -0
  311. package/dist/seq-RN5ZUASB-hcgHczjD.mjs +1 -0
  312. package/dist/{sequenceDiagram-DBY2YBRQ-CbJvsjVo.mjs → sequenceDiagram-DBY2YBRQ-B6TuF3qe.mjs} +2 -2
  313. package/dist/{server-lock-CZUtoKxB.mjs → server-lock-C2OcZirx.mjs} +2 -2
  314. package/dist/server-lock-DTx_Ih9P.mjs +1 -0
  315. package/dist/sha1sum-VJPNLNU6-KpqF3VUr.mjs +1 -0
  316. package/dist/sha256sum-PI32XWXY-BI7zTPJ3.mjs +1 -0
  317. package/dist/{sizeCapture-X5ZJPWSS-BYSWMkkU.mjs → sizeCapture-X5ZJPWSS-Btionz6c.mjs} +2 -2
  318. package/dist/sleep-VZFPZFWA-DNxq1g-4.mjs +1 -0
  319. package/dist/sort-DCNRDA7U-urKKiOkB.mjs +1 -0
  320. package/dist/split-SITCSYCZ-Dl-r5t6o.mjs +1 -0
  321. package/dist/sqlite3-TE5AIOTF-BKiscy5E.mjs +1 -0
  322. package/dist/src-BEaiZuXz.mjs +3264 -0
  323. package/dist/{src-VjJUBnUL.mjs → src-C4MRpQ6i.mjs} +1 -1
  324. package/dist/{src-CInsze10.mjs → src-CpXAv8Af.mjs} +3 -3
  325. package/dist/{src-82KBw76I.mjs → src-nvx4LAFk.mjs} +2 -2
  326. package/dist/start-B6LUCh2f.mjs +1 -0
  327. package/dist/{start-B3sAyodP.mjs → start-Ditv69eU.mjs} +2 -2
  328. package/dist/stat-BT5A227F-BzZhqUU7.mjs +1 -0
  329. package/dist/{stateDiagram-2N3HPSRC-CbMgPxbr.mjs → stateDiagram-2N3HPSRC-C_tdGYXg.mjs} +2 -2
  330. package/dist/stateDiagram-v2-6OUMAXLB-B9_dtBI0.mjs +2 -0
  331. package/dist/strings-7PLOGTPD-BYF-zQB5.mjs +1 -0
  332. package/dist/{swimlanes-5IMT3BWC-DENmmsj9.mjs → swimlanes-5IMT3BWC-DLXpBxPB.mjs} +2 -2
  333. package/dist/swimlanesDiagram-G3AALYLV-DnknHegw.mjs +9 -0
  334. package/dist/tac-SJGXQ4T2-ByjKkvjF.mjs +1 -0
  335. package/dist/tail-S5ULNTJU-Bu45hbfn.mjs +1 -0
  336. package/dist/tar-MZQD7NO4-COEqG_IX.mjs +1 -0
  337. package/dist/tee-O7VXZDCO-D5VPiyFZ.mjs +1 -0
  338. package/dist/time-DEUO3QV2-DTXF6o9u.mjs +1 -0
  339. package/dist/{timeline-definition-FHXFAJF6-CH0_gLZC.mjs → timeline-definition-FHXFAJF6-BtGgJVSL.mjs} +2 -2
  340. package/dist/timeout-VRKMCG72-BJzTDNVp.mjs +1 -0
  341. package/dist/touch-DX2IJOQ4-CJL2LWzm.mjs +1 -0
  342. package/dist/tr-2HXZRDSW-BMEHkLkI.mjs +1 -0
  343. package/dist/tree-LYXBS7DC-B9nDoMUt.mjs +1 -0
  344. package/dist/treeView-QDETBFTQ-b0kDTk8s.mjs +1 -0
  345. package/dist/treemap-6X3UGDF4-CbmqvOp3.mjs +1 -0
  346. package/dist/true-WHJNXCHG-BrTi18ZN.mjs +1 -0
  347. package/dist/unexpand-RGTMIGZM-Cz9o379Y.mjs +1 -0
  348. package/dist/uniq-SUNANL47-Jq_1JF4a.mjs +1 -0
  349. package/dist/{vennDiagram-L72KCM5P-C7mXTgc9.mjs → vennDiagram-L72KCM5P-DYDKnnjp.mjs} +2 -2
  350. package/dist/wardley-OPB4EBWU-58Nq0iPk.mjs +1 -0
  351. package/dist/{wardleyDiagram-EHGQE667-D3QVpMXy.mjs → wardleyDiagram-EHGQE667-M2W4S8Ng.mjs} +2 -2
  352. package/dist/wc-TQB3VNOX-8TWuJ_OV.mjs +1 -0
  353. package/dist/which-XZHEH76L-C0nS7069.mjs +1 -0
  354. package/dist/whoami-DGKU3D2X-BRFeF7SV.mjs +1 -0
  355. package/dist/{wrapper-DU1EzoHg.mjs → wrapper-BcpqREsI.mjs} +1 -1
  356. package/dist/{write-project-skill-TsM_THnF.mjs → write-project-skill-CMePkU0W.mjs} +2 -2
  357. package/dist/xan-UD7JYIL2-CsuyuKIz.mjs +1 -0
  358. package/dist/xan-view-OW2TB7Z3-BQPByClA.mjs +1 -0
  359. package/dist/xargs-I6EZUCYF-CfQ6WD0x.mjs +1 -0
  360. package/dist/{xychartDiagram-FW5EYKEG-BhayLxTO.mjs → xychartDiagram-FW5EYKEG-DX0dJSsD.mjs} +2 -2
  361. package/dist/{yazl-DZr4PyKA.mjs → yazl-BafwB467.mjs} +1 -1
  362. package/dist/yazl-vwTkB7U0.mjs +1 -0
  363. package/dist/yq-OAKYHSXH-q34fmnbQ.mjs +1 -0
  364. package/package.json +4 -4
  365. package/dist/alias-JE7RI5QX-DI0Bq_EB.mjs +0 -1
  366. package/dist/architecture-TIHT7OUA-DTmO1hz6.mjs +0 -1
  367. package/dist/awk2-BBAGSFUB-DBzckwgP.mjs +0 -1
  368. package/dist/base64-4YMZCVJ5-CfjbVa2B.mjs +0 -1
  369. package/dist/basename-AA2KJYZQ-BTeOcfgz.mjs +0 -1
  370. package/dist/bash-IJWYRKFO-DULWf0BJ.mjs +0 -1
  371. package/dist/build-BVrWJbF-.mjs +0 -1
  372. package/dist/cat-RDUMLXKC-COksFwfQ.mjs +0 -1
  373. package/dist/channel-8u5DyGCM.mjs +0 -2
  374. package/dist/chmod-SYMGL4JA-BrIA043A.mjs +0 -1
  375. package/dist/chunk-VAUOI2AC-LbYTm50o.mjs +0 -2
  376. package/dist/chunk-XXDRQBXY-DgBFT4Pj.mjs +0 -2
  377. package/dist/classDiagram-OUVF2IWQ-5ThYgAnz.mjs +0 -2
  378. package/dist/classDiagram-v2-EOCWNBFH-C4I6MeOb.mjs +0 -2
  379. package/dist/clear-5CZ5X4YR-oNv6FwpY.mjs +0 -1
  380. package/dist/colors-BR7qZmj-.mjs +0 -1
  381. package/dist/column-WLPMMSTS-BTF6gnMU.mjs +0 -1
  382. package/dist/comm-5SLSESQG-Bn8BHgnn.mjs +0 -1
  383. package/dist/constants-NqLesDwG.mjs +0 -2
  384. package/dist/cp-XOYR4ABJ-COPxQ0ww.mjs +0 -1
  385. package/dist/cut-OPC3VAGB-mpEAtb5h.mjs +0 -1
  386. package/dist/cynefin-VYW2F7L2-BHmUq7zo.mjs +0 -1
  387. package/dist/date-DD7FVA2V-BYADCIO4.mjs +0 -1
  388. package/dist/diff-HJF2MPDN-DEpIKOEz.mjs +0 -1
  389. package/dist/dirname-LEMTZZFS-DhQhIcuf.mjs +0 -1
  390. package/dist/dist-bundle-D643K2X4.mjs +0 -1
  391. package/dist/du-WO2ENHXQ-Bk1DJqzD.mjs +0 -1
  392. package/dist/echo-O45JWWI2-dtHsnzd1.mjs +0 -1
  393. package/dist/env-5EPCWSXR-DcK5OnxF.mjs +0 -1
  394. package/dist/eventmodeling-45OFAUF4-BHp050bu.mjs +0 -1
  395. package/dist/expand-DTNXU4LQ-Rv5C3VeN.mjs +0 -1
  396. package/dist/expansion-VBDYWVZR-CGdTmX54.mjs +0 -1
  397. package/dist/expr-YYCVMXE3-DGTsCso3.mjs +0 -1
  398. package/dist/file-IGDTDPLG-N-4JgRpn.mjs +0 -1
  399. package/dist/find-DH2ALKQS-cGy7rhto.mjs +0 -1
  400. package/dist/flag-coverage-6JEX67RU-B4jVEkvA.mjs +0 -2
  401. package/dist/flowDiagram-23GEKE2U-DxaJwFku.mjs +0 -1
  402. package/dist/fold-LDSORVYE-BhmvSO1f.mjs +0 -1
  403. package/dist/fs-traced-Bs45d5A7.mjs +0 -1
  404. package/dist/git-handle-CLfKANP-.mjs +0 -1
  405. package/dist/gitGraph-TEB2WS4Q-DcEeY7um.mjs +0 -1
  406. package/dist/grep-2HUTXO5U-XuMqfWUT.mjs +0 -1
  407. package/dist/gzip-AQXSGOVS-AhbZZj5P.mjs +0 -1
  408. package/dist/head-HT2B6D2J-Dvlo69Ju.mjs +0 -1
  409. package/dist/help-VVWX7SA5-BEEqpsbb.mjs +0 -1
  410. package/dist/history-J4QRNGRO-BEUhCPcV.mjs +0 -1
  411. package/dist/hostname-BK6HG2DE-Byw2ePll.mjs +0 -1
  412. package/dist/html-to-markdown-TFCECAGV-B9LGlxIh.mjs +0 -1
  413. package/dist/info-DKCQHKI2-NOfuI2Ar.mjs +0 -1
  414. package/dist/init-CSufcZa_.mjs +0 -1
  415. package/dist/join-GG2LDHE5-BOsiGEl2.mjs +0 -1
  416. package/dist/jq-LYZFFBZB-bhaBuxkL.mjs +0 -1
  417. package/dist/ln-4TRFBYAT-DMSz07tD.mjs +0 -1
  418. package/dist/loader-Brd9K-Oz.mjs +0 -1
  419. package/dist/ls-KSXFZCWH-mBI9rzUz.mjs +0 -1
  420. package/dist/md5sum-INMIK4DX-Bnbn05vV.mjs +0 -1
  421. package/dist/mkdir-TDEMSB6C-EsVKcoU8.mjs +0 -1
  422. package/dist/mv-Z6MORUFL-B5Kt-RKF.mjs +0 -1
  423. package/dist/nl-U5YJDM32-Ch2FJuA8.mjs +0 -1
  424. package/dist/od-VJEF2UR5-B8kZKZ_P.mjs +0 -1
  425. package/dist/packet-7NZHBO7P-Bgtj9iP7.mjs +0 -1
  426. package/dist/paste-7N6AFSDS-C0Ychn_t.mjs +0 -1
  427. package/dist/pie-RZYD4A2V-DXKnIv1t.mjs +0 -1
  428. package/dist/preview-CvyGNXPF.mjs +0 -1
  429. package/dist/printf-CX64KX2P-s2TjuvrH.mjs +0 -1
  430. package/dist/pwd-D4OZ7N27-CL5bDMuK.mjs +0 -1
  431. package/dist/radar-I7S5WNFK-pt6R8mrT.mjs +0 -1
  432. package/dist/railroad-3IZDKUUU-D9kj_Szm.mjs +0 -1
  433. package/dist/railroad-abnf-AHOZXSZD-D7kluR81.mjs +0 -1
  434. package/dist/railroad-ebnf-EBAXGLYW-BGSDI5QV.mjs +0 -1
  435. package/dist/railroad-peg-LSFZ7HO6-CGizyVjb.mjs +0 -1
  436. package/dist/readlink-MI4GCHJF-BJKcj2mQ.mjs +0 -1
  437. package/dist/repair-skills-CgvYA2Tj.mjs +0 -1
  438. package/dist/rev-XOSYPP45-ClOUu8f9.mjs +0 -1
  439. package/dist/rg-XNF3R3II-BwgLjVWV.mjs +0 -1
  440. package/dist/rm-RTZG23RL-k5Ug_B0L.mjs +0 -1
  441. package/dist/rmdir-XTQXT7RK-Br3rY6bZ.mjs +0 -1
  442. package/dist/sed-JAPPVBEU-3hr78ajc.mjs +0 -1
  443. package/dist/seq-RN5ZUASB-DrbB_0Ar.mjs +0 -1
  444. package/dist/server-lock-BECLNx_T.mjs +0 -1
  445. package/dist/sha1sum-VJPNLNU6-CcPdRzmt.mjs +0 -1
  446. package/dist/sha256sum-PI32XWXY-Da8LquSF.mjs +0 -1
  447. package/dist/sleep-VZFPZFWA-DIFVf6xy.mjs +0 -1
  448. package/dist/sort-DCNRDA7U-BJaoT7OD.mjs +0 -1
  449. package/dist/split-SITCSYCZ-D4eW7nbz.mjs +0 -1
  450. package/dist/sqlite3-TE5AIOTF-je83ck2F.mjs +0 -1
  451. package/dist/src-BG_IUe5R.mjs +0 -3262
  452. package/dist/start-BYPkRdeX.mjs +0 -1
  453. package/dist/stat-BT5A227F-Bk40Xkzu.mjs +0 -1
  454. package/dist/stateDiagram-v2-6OUMAXLB-DI_CQZy4.mjs +0 -2
  455. package/dist/strings-7PLOGTPD-XZTzyUaT.mjs +0 -1
  456. package/dist/swimlanesDiagram-G3AALYLV-BTo6dPTQ.mjs +0 -9
  457. package/dist/tac-SJGXQ4T2-Bm_Y5ugI.mjs +0 -1
  458. package/dist/tail-S5ULNTJU-Ds8iKUFI.mjs +0 -1
  459. package/dist/tar-MZQD7NO4-CajvOg1L.mjs +0 -1
  460. package/dist/tee-O7VXZDCO-THZ1zQTX.mjs +0 -1
  461. package/dist/time-DEUO3QV2-CTm_jWFh.mjs +0 -1
  462. package/dist/timeout-VRKMCG72-Dd-Yncgv.mjs +0 -1
  463. package/dist/touch-DX2IJOQ4-Bthkmgnh.mjs +0 -1
  464. package/dist/tr-2HXZRDSW-BjJz7Kfh.mjs +0 -1
  465. package/dist/tree-LYXBS7DC-EvPgF-2J.mjs +0 -1
  466. package/dist/treeView-QDETBFTQ-CclCFy2w.mjs +0 -1
  467. package/dist/treemap-6X3UGDF4-CrMJScQa.mjs +0 -1
  468. package/dist/true-WHJNXCHG-BCEPttpp.mjs +0 -1
  469. package/dist/unexpand-RGTMIGZM-WBKrg7z4.mjs +0 -1
  470. package/dist/uniq-SUNANL47-ChxGEuti.mjs +0 -1
  471. package/dist/wardley-OPB4EBWU-C4Yz6reu.mjs +0 -1
  472. package/dist/wc-TQB3VNOX-lYA9NggO.mjs +0 -1
  473. package/dist/which-XZHEH76L-DnhndoTX.mjs +0 -1
  474. package/dist/whoami-DGKU3D2X-BNC26TrG.mjs +0 -1
  475. package/dist/xan-UD7JYIL2-D-9V_kNe.mjs +0 -1
  476. package/dist/xan-view-OW2TB7Z3-D4gcWdMH.mjs +0 -1
  477. package/dist/xargs-I6EZUCYF-ldP_aGxo.mjs +0 -1
  478. package/dist/yazl-jVENrf5i.mjs +0 -1
  479. package/dist/yq-OAKYHSXH-DBiCi7k1.mjs +0 -1
@@ -1 +1 @@
1
- import{C as e,Ma as t,Sa as n,Wa as r,aa as i,ba as a,d as o,ia as s,l as c,oa as l,y as u}from"./src-DTPLCYnP.mjs";import{$ as d,$i as f,$r as p,$t as m,A as h,Ai as g,An as _,Ar as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dr as N,Dt as P,E as F,Ei as I,En as L,Er as R,Et as z,F as B,Fi as V,Fn as H,Fr as U,Ft as W,G,Gi as K,Gn as q,Gr as J,Gt as Y,H as X,Hi as Z,Hn as Q,Hr as $,Ht as ee,I as te,Ii as ne,In as re,Ir as ie,It as ae,J as oe,Ji as se,Jn as ce,Jr as le,Jt as ue,K as de,Ki as fe,Kn as pe,Kr as me,Kt as he,L as ge,Li as _e,Ln as ve,Lr as ye,Lt as be,M as xe,Mi as Se,Mn as Ce,Mr as we,Mt as Te,N as Ee,Ni as De,Nn as Oe,Nr as ke,Nt as Ae,O as je,Oi as Me,On as Ne,Or as Pe,Ot as Fe,P as Ie,Pi as Le,Pn as Re,Pr as ze,Pt as Be,Q as Ve,Qi as He,Qn as Ue,Qr as We,Qt as Ge,R as Ke,Ri as qe,Rn as Je,Rr as Ye,Rt as Xe,S as Ze,Si as Qe,Sn as $e,Sr as et,St as tt,T as nt,Ti as rt,Tn as it,Tr as at,Tt as ot,U as st,Ui as ct,Un as lt,Ur as ut,Ut as dt,V as ft,Vi as pt,Vn as mt,Vr as ht,Vt as gt,W as _t,Wi as vt,Wn as yt,Wr as bt,Wt as xt,X as St,Xi as Ct,Xn as wt,Xr as Tt,Xt as Et,Y as Dt,Yi as Ot,Yn as kt,Yr as At,Yt as jt,Z as Mt,Zi as Nt,Zn as Pt,Zr as Ft,Zt as It,_ as Lt,_i as Rt,_n as zt,_r as Bt,_t as Vt,a as Ht,aa as Ut,ai as Wt,an as Gt,ar as Kt,at as qt,b as Jt,bi as Yt,bn as Xt,br as Zt,bt as Qt,c as $t,ca as en,ci as tn,cn as nn,cr as rn,d as an,di as on,dn as sn,dr as cn,ea as ln,ei as un,en as dn,et as fn,f as pn,fi as mn,fn as hn,fr as gn,g as _n,gi as vn,gn as yn,gr as bn,gt as xn,h as Sn,hi as Cn,hn as wn,hr as Tn,ht as En,i as Dn,ia as On,ii as kn,in as An,ir as jn,it as Mn,j as Nn,ji as Pn,jn as Fn,jr as In,jt as Ln,k as Rn,ki as zn,kn as Bn,kr as Vn,kt as Hn,l as Un,la as Wn,li as Gn,ln as Kn,lr as qn,m as Jn,mi as Yn,mn as Xn,mr as Zn,mt as Qn,n as $n,na as er,ni as tr,nn as nr,nt as rr,o as ir,oa as ar,oi as or,on as sr,or as cr,ot as lr,p as ur,pi as dr,pn as fr,pr,q as mr,qi as hr,qn as gr,qr as _r,qt as vr,r as yr,ra as br,ri as xr,rn as Sr,rt as Cr,s as wr,sa as Tr,si as Er,sn as Dr,sr as Or,st as kr,t as Ar,ta as jr,ti as Mr,tn as Nr,tt as Pr,u as Fr,ua as Ir,ui as Lr,un as Rr,ur as zr,v as Br,vi as Vr,vn as Hr,vr as Ur,vt as Wr,w as Gr,wi as Kr,wn as qr,wr as Jr,wt as Yr,x as Xr,xi as Zr,xn as Qr,xr as $r,xt as ei,y as ti,yi as ni,yn as ri,yr as ii,yt as ai,z as oi,zi as si,zn as ci,zr as li,zt as ui}from"./src-BG_IUe5R.mjs";import{C as di,E as fi,T as pi,_ as mi,b as hi,c as gi,d as _i,g as vi,i as yi,l as bi,m as xi,n as Si,p as Ci,s as wi,t as Ti,u as Ei,v as Di,w as Oi,x as ki,y as Ai}from"./fs-traced-BISd_YTv.mjs";import{a as ji,d as Mi,f as Ni,i as Pi,l as Fi,n as Ii,r as Li,t as Ri,u as zi}from"./logger-CFNLuVy2.mjs";import{S as Bi,_ as Vi,a as Hi,c as Ui,f as Wi,g as Gi,h as Ki,i as qi,l as Ji,m as Yi,n as Xi,o as Zi,p as Qi,r as $i,s as ea,t as ta,u as na,v as ra,x as ia}from"./server-lock-CZUtoKxB.mjs";export{jr as AGENT_ID_MAX_LEN,er as AGENT_ID_RE,V as AGENT_WRITE_ORIGIN,en as AcpPermissionStore,Ut as AcpRegistry,Se as AcpThreadManager,g as AgentFocusBroadcaster,zn as AgentPresenceBroadcaster,ne as AgentSessionCapacityError,_e as AgentSessionManager,En as AutoStartDisabledError,ci as BUNDLE_IDS,S as BUNDLE_SCOPE,mt as BUNDLE_SKILL_NAME,Gt as BacklinkIndex,vt as CC1Broadcaster,n as CC1_CONTRACT_VERSION,jt as CONFIG_FILENAME,Lr as CONFLICT_MARKER_RE,rn as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Lt as ConfigSchema,At as DEFAULT_CHECKPOINT_RETENTION,et as DEFAULT_EMBEDDINGS_DIMENSIONS,z as DEFAULT_PACK_ID,O as EMBEDDINGS_API_KEY_ENV,ar as FEATURED_AGENT_IDS,Tt as FILE_SYSTEM_WRITER,me as FILE_WATCHER_ORIGIN,Bt as FileEmbeddingsBackend,xt as GIT_PREFLIGHT_FAIL_SPAN_NAME,Ft as GIT_UPSTREAM_WRITER,Wn as GitDirAccessError,hn as GitNotAvailableError,fr as GitTooOldError,Zr as HOCUSPOCUS_AUTH_REJECTION_REASONS,Qe as HocuspocusAuthRejection,E as HocuspocusAuthTokenSchema,Zn as INSTALLED_AGENTS_SCHEMES,a as LINEAGE_EPOCH_KEY,Ke as LIVE_DERIVED_INDEX_DEBOUNCE_MS,P as LOG_MD_TEMPLATE,Vt as MANAGED_RENAME_ORIGIN,De as MAX_ACP_THREADS,qe as MAX_AGENT_SESSIONS,lr as MCP_CONNECTION_ID_HEADER,s as MCP_SERVER_NAME,si as MIN_EVICTABLE_IDLE_MS,Xn as MIN_GIT_VERSION,ft as MISSING_OK_CONFIG_MESSAGE,Ir as MalformedGitPointerError,Ve as McpLogger,X as MissingOkConfigError,v as OBSERVER_SYNC_ORIGIN,Et as OK_OKIGNORE_TEMPLATE,i as ORPHAN_MODES,r as PROTOCOL_VERSION,Ri as PinoLogger,Ui as ProcessLockCollisionError,Un as ProjectGitInitError,Wr as ROLLBACK_ORIGIN,It as ROOT_GITIGNORE_TEMPLATE,Gi as RUNTIME_VERSION,We as SERVICE_WRITER,Re as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,Fe as STARTER_FOLDERS,Hn as STARTER_FOLDER_FRONTMATTER_FILENAME,y as STARTER_PACKS,Ln as STARTER_PACK_IDS,Te as STARTER_TEMPLATES,F as STATE_MANIFEST_FILENAME,Vi as STATE_SCHEMA_VERSION,t as SYSTEM_DOC_NAME,Xe as SeedPrerequisiteError,ui as SeedRootDirError,ta as ServerLockCollisionError,Ar as SingleFileNotAFileError,$n as SingleFileNotFoundError,yr as SingleFileNotMarkdownError,A as StateManifestError,nt as TagIndex,Q as USER_GLOBAL_BUNDLE_IDS,Dr as UiLockCollisionError,ai as __getShowAllWalkStatsForTesting,Qt as __resetShowAllWalkStatsForTesting,Ji as acquireProcessLock,Xi as acquireServerLock,nn as acquireUiLock,x as applyAgentMarkdownWrite,_r as applyExternalChange,ot as applySeed,je as assertCompatibleStateManifest,wn as assertGitAvailable,ze as assertNeverDiskEvent,Pn as attachAcpThreadSocket,Qn as attachIdleShutdown,Br as bootServer,qr as buildAndOpenSkill,Ge as buildConfigYmlContent,mr as buildExecResult,Le as buildOkMcpStdioCommand,re as buildSkillZip,Ae as buildStarterFolderFrontmatterYaml,p as buildWipTree,lt as bundleSkillMdPath,U as classifyEvents,Ti as classifyFsPath,Yn as clearContributors,Ur as clearEmbeddingsKeyFromAllBackends,Be as coercePackId,c as colorFromSeed,un as commitUpstreamImport,Mr as commitWip,tr as commitWipFromTree,yn as compareSemver,pe as composeEffectiveLinterConfig,on as containsConflictMarkers,ie as contentHash,Cn as contributorCount,Ie as countShadowObjects,B as countStaleAgentWipRefs,te as countWipRefs,ei as createApiExtension,N as createAssetServeMiddleware,jn as createContentFilter,Kt as createContentFilterAsync,ii as createEmbeddingsSecretStore,Dn as createEphemeralProjectDir,le as createExternalChangeHandler,pn as createFileLogger,oi as createLiveDerivedIndexExtension,G as createMcpHttpHandler,Tn as createOsProbe,Pe as createPersistenceExtension,T as createServer,xe as createServerObserverExtension,pt as createStreamingErrorWriter,Ii as createTestLogger,Zt as describeStoredEmbeddingsKey,_n as detectClaudeDesktopPresence,zt as detectGit,Rn as detectProjectShape,Pr as discoverLockDirs,kt as discoverMarkdownlintConfig,Y as emitPreflightFailureSpan,oe as encodeDocName,Dt as encodeFolderRoute,St as encodeSkillRoute,Fr as ensureProjectGit,m as ensureProjectSkillGitignore,Z as errorResponse,ye as evictStaleTrackerEntries,rr as extractOkBinaryPath,sr as extractWikiLinksFromMarkdown,Hr as fallbackPaths,an as findEnclosingGitRoot,Sr as findEnclosingProjectRoot,wt as findNativeMarkdownlintFile,ur as flushFileLogger,Kr as formatAuthRejectionWire,vn as formatContributors,Rt as formatContributorsFrom,k as formatPackRationale,xr as gcCheckpointRefs,d as getCurrentMcpLogger,Jr as getLocalDir,Jn as getLogFilePath,Li as getLogger,Sn as getLogsDir,ra as getMachineId,Ai as getMeter,Ct as getMetrics,hi as getTracer,Nt as handleCollabSocketError,qn as handleSpawnCursor,ge as hasGcLogLatch,o as iconFromClientName,He as incrementCollabSocketFilteredError,f as incrementServerObserverFire,dn as initContent,kn as initShadowRepo,ki as initTelemetry,Jt as initToleranceTelemetryWriter,qt as installPrettyZodErrors,Pi as installTestLoggers,it as installUserSkill,Me as isAllowedApiOrigin,w as isAllowedWorkspaceHostHeader,K as isConfigDoc,rt as isHocuspocusAuthRejectionReason,W as isKnownPackId,fe as isLinkIndexExcludedDoc,gt as isLoopbackAddress,hr as isManagedArtifactDoc,l as isOrphanMode,In as isPairedWriteOrigin,zr as isPathWithinDir,ia as isProcessAlive,An as isProjectRoot,Xt as isProjectSkillManaged,se as isReservedForUserTree,Ye as isSelfWrite,Ot as isSystemDoc,Xr as isToleranceTelemetryEnabled,Bi as isValidLockPid,li as lastKnownHash,Wt as listRescueCheckpoints,ae as listStarterPacks,Tr as loadCustomAgents,Ee as loadPrincipal,na as lockFilePath,ji as loggerFactory,Fi as logsCurrentPath,zi as logsPreviousPath,$r as makeLazyEmbeddingsKeyStore,$i as markServerLockDraining,st as mountMcpAndApi,Si as normalizeFsPath,yt as originGitHubHost,Nr as packageVersionMajorMinor,I as parseAuthRejectionWire,ri as parseGitVersion,j as parseHocuspocusAuthToken,_t as parseKeepaliveConnectionId,C as pathToDocName,Yr as planSeed,Ht as prepareSingleFileOpen,Cr as processCommand,Mn as processUsage,L as readAllTargets,M as readBundleDecision,Pt as readOwnNativeRules,Wi as readProcessLock,Qi as readProcessLockDetailed,b as readProjectHeadState,bn as readProjectLocalSemanticConfig,qi as readServerLock,Ne as readServerPackageVersion,Bn as readSkillInstallStateSnapshot,Qr as readSkillManagement,h as readStateManifest,_ as readTargetRecordedAt,Fn as readTargetVersion,Kn as readUiLock,mn as reconcile,Vr as recordContributor,H as recordSkillInstallEvent,de as registerAllTools,ht as registerWrite,Yi as releaseProcessLock,Hi as releaseServerLock,Rr as releaseUiLock,$ as removeLastKnownHash,ln as resetMetrics,e as resolveBundleEnabled,ve as resolveBundledSkillDir,at as resolveContentDir,cn as resolveCursorBinaryDefault,gn as resolveCursorSpawnInvocation,gr as resolveEffectiveLinterConfig,R as resolveLockDir,ce as resolveNativeConfigForDoc,Ue as resolveNativeMarkdownlintConfig,be as resolvePack,wr as resolvePackageVersion,Mt as resolveUiInfo,ni as restoreContributors,ti as restoreLifecycleFromConflictsJson,cr as rewriteMarkdownLinksForDocumentRename,Or as rewriteWikiLinksForDocumentRename,he as runAuthReposSubprocess,vr as runAuthStatusSubprocess,ee as runCloneSubprocess,ue as runDeviceFlowSubprocess,fn as runWithMcpLogger,Vn as safeContentPath,tt as safeSubdir,or as safetyCheckpoint,kr as sanitizeClientName,Er as saveInMemoryCheckpoint,tn as saveVersion,xn as seedBasenameIndex,ir as serializeError,di as setActiveSpanAttributes,we as setupServerObservers,Gn as shadowGit,Oi as shutdownTelemetry,$e as skillManagementPath,Mi as spansCurrentPath,Ni as spansPreviousPath,pr as spawnDetached,dr as splitMarkdownBlocks,ut as startWatcher,ct as streamingProblemEvent,Yt as swapContributors,Ze as teardownToleranceTelemetryWriter,br as toBroadcasterKey,yi as tracedAppendFileSync,wi as tracedLinkSync,gi as tracedMkdir,bi as tracedMkdirSync,Ei as tracedRename,_i as tracedRenameSync,Ci as tracedRmSync,xi as tracedRmdirSync,vi as tracedUnlinkSync,mi as tracedWriteFile,Di as tracedWriteFileSync,Gr as trustSystemCertificates,$t as untrackTrackedProjectSkillProjection,bt as updateLastKnownHash,Ki as updateProcessLockPort,Zi as updateServerLockPort,sn as updateUiLockPort,On as validateAgentId,dt as validateCloneInputs,Je as validateSkillZip,ea as waitForServerLockDrain,ke as withHiddenWindowsConsole,pi as withSpan,fi as withSpanSync,Ce as writeBundleDecision,q as writeMarkdownlintRule,nr as writeRootGitignoreForNewRepo,D as writeSkillManagement,Nn as writeStateManifest,Oe as writeTargetVersion,J as writeTracker};
1
+ import{C as e,Ma as t,Sa as n,Wa as r,aa as i,ba as a,d as o,ia as s,l as c,oa as l,y as u}from"./src-DTPLCYnP.mjs";import{$ as d,$i as f,$r as p,$t as m,A as h,Ai as g,An as _,Ar as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dr as N,Dt as P,E as F,Ei as I,En as L,Er as R,Et as z,F as B,Fi as V,Fn as H,Fr as U,Ft as W,G,Gi as K,Gn as q,Gr as J,Gt as Y,H as X,Hi as Z,Hn as Q,Hr as $,Ht as ee,I as te,Ii as ne,In as re,Ir as ie,It as ae,J as oe,Ji as se,Jn as ce,Jr as le,Jt as ue,K as de,Ki as fe,Kn as pe,Kr as me,Kt as he,L as ge,Li as _e,Ln as ve,Lr as ye,Lt as be,M as xe,Mi as Se,Mn as Ce,Mr as we,Mt as Te,N as Ee,Ni as De,Nn as Oe,Nr as ke,Nt as Ae,O as je,Oi as Me,On as Ne,Or as Pe,Ot as Fe,P as Ie,Pi as Le,Pn as Re,Pr as ze,Pt as Be,Q as Ve,Qi as He,Qn as Ue,Qr as We,Qt as Ge,R as Ke,Ri as qe,Rn as Je,Rr as Ye,Rt as Xe,S as Ze,Si as Qe,Sn as $e,Sr as et,St as tt,T as nt,Ti as rt,Tn as it,Tr as at,Tt as ot,U as st,Ui as ct,Un as lt,Ur as ut,Ut as dt,V as ft,Vi as pt,Vn as mt,Vr as ht,Vt as gt,W as _t,Wi as vt,Wn as yt,Wr as bt,Wt as xt,X as St,Xi as Ct,Xn as wt,Xr as Tt,Xt as Et,Y as Dt,Yi as Ot,Yn as kt,Yr as At,Yt as jt,Z as Mt,Zi as Nt,Zn as Pt,Zr as Ft,Zt as It,_ as Lt,_i as Rt,_n as zt,_r as Bt,_t as Vt,a as Ht,aa as Ut,ai as Wt,an as Gt,ar as Kt,at as qt,b as Jt,bi as Yt,bn as Xt,br as Zt,bt as Qt,c as $t,ca as en,ci as tn,cn as nn,cr as rn,d as an,di as on,dn as sn,dr as cn,ea as ln,ei as un,en as dn,et as fn,f as pn,fi as mn,fn as hn,fr as gn,g as _n,gi as vn,gn as yn,gr as bn,gt as xn,h as Sn,hi as Cn,hn as wn,hr as Tn,ht as En,i as Dn,ia as On,ii as kn,in as An,ir as jn,it as Mn,j as Nn,ji as Pn,jn as Fn,jr as In,jt as Ln,k as Rn,ki as zn,kn as Bn,kr as Vn,kt as Hn,l as Un,la as Wn,li as Gn,ln as Kn,lr as qn,m as Jn,mi as Yn,mn as Xn,mr as Zn,mt as Qn,n as $n,na as er,ni as tr,nn as nr,nt as rr,o as ir,oa as ar,oi as or,on as sr,or as cr,ot as lr,p as ur,pi as dr,pn as fr,pr,q as mr,qi as hr,qn as gr,qr as _r,qt as vr,r as yr,ra as br,ri as xr,rn as Sr,rt as Cr,s as wr,sa as Tr,si as Er,sn as Dr,sr as Or,st as kr,t as Ar,ta as jr,ti as Mr,tn as Nr,tt as Pr,u as Fr,ua as Ir,ui as Lr,un as Rr,ur as zr,v as Br,vi as Vr,vn as Hr,vr as Ur,vt as Wr,w as Gr,wi as Kr,wn as qr,wr as Jr,wt as Yr,x as Xr,xi as Zr,xn as Qr,xr as $r,xt as ei,y as ti,yi as ni,yn as ri,yr as ii,yt as ai,z as oi,zi as si,zn as ci,zr as li,zt as ui}from"./src-BEaiZuXz.mjs";import{C as di,E as fi,T as pi,_ as mi,b as hi,c as gi,d as _i,g as vi,i as yi,l as bi,m as xi,n as Si,p as Ci,s as wi,t as Ti,u as Ei,v as Di,w as Oi,x as ki,y as Ai}from"./fs-traced-B-qtPUmb.mjs";import{a as ji,d as Mi,f as Ni,i as Pi,l as Fi,n as Ii,r as Li,t as Ri,u as zi}from"./logger-CuGHGn_E.mjs";import{S as Bi,_ as Vi,a as Hi,c as Ui,f as Wi,g as Gi,h as Ki,i as qi,l as Ji,m as Yi,n as Xi,o as Zi,p as Qi,r as $i,s as ea,t as ta,u as na,v as ra,x as ia}from"./server-lock-C2OcZirx.mjs";export{jr as AGENT_ID_MAX_LEN,er as AGENT_ID_RE,V as AGENT_WRITE_ORIGIN,en as AcpPermissionStore,Ut as AcpRegistry,Se as AcpThreadManager,g as AgentFocusBroadcaster,zn as AgentPresenceBroadcaster,ne as AgentSessionCapacityError,_e as AgentSessionManager,En as AutoStartDisabledError,ci as BUNDLE_IDS,S as BUNDLE_SCOPE,mt as BUNDLE_SKILL_NAME,Gt as BacklinkIndex,vt as CC1Broadcaster,n as CC1_CONTRACT_VERSION,jt as CONFIG_FILENAME,Lr as CONFLICT_MARKER_RE,rn as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Lt as ConfigSchema,At as DEFAULT_CHECKPOINT_RETENTION,et as DEFAULT_EMBEDDINGS_DIMENSIONS,z as DEFAULT_PACK_ID,O as EMBEDDINGS_API_KEY_ENV,ar as FEATURED_AGENT_IDS,Tt as FILE_SYSTEM_WRITER,me as FILE_WATCHER_ORIGIN,Bt as FileEmbeddingsBackend,xt as GIT_PREFLIGHT_FAIL_SPAN_NAME,Ft as GIT_UPSTREAM_WRITER,Wn as GitDirAccessError,hn as GitNotAvailableError,fr as GitTooOldError,Zr as HOCUSPOCUS_AUTH_REJECTION_REASONS,Qe as HocuspocusAuthRejection,E as HocuspocusAuthTokenSchema,Zn as INSTALLED_AGENTS_SCHEMES,a as LINEAGE_EPOCH_KEY,Ke as LIVE_DERIVED_INDEX_DEBOUNCE_MS,P as LOG_MD_TEMPLATE,Vt as MANAGED_RENAME_ORIGIN,De as MAX_ACP_THREADS,qe as MAX_AGENT_SESSIONS,lr as MCP_CONNECTION_ID_HEADER,s as MCP_SERVER_NAME,si as MIN_EVICTABLE_IDLE_MS,Xn as MIN_GIT_VERSION,ft as MISSING_OK_CONFIG_MESSAGE,Ir as MalformedGitPointerError,Ve as McpLogger,X as MissingOkConfigError,v as OBSERVER_SYNC_ORIGIN,Et as OK_OKIGNORE_TEMPLATE,i as ORPHAN_MODES,r as PROTOCOL_VERSION,Ri as PinoLogger,Ui as ProcessLockCollisionError,Un as ProjectGitInitError,Wr as ROLLBACK_ORIGIN,It as ROOT_GITIGNORE_TEMPLATE,Gi as RUNTIME_VERSION,We as SERVICE_WRITER,Re as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,Fe as STARTER_FOLDERS,Hn as STARTER_FOLDER_FRONTMATTER_FILENAME,y as STARTER_PACKS,Ln as STARTER_PACK_IDS,Te as STARTER_TEMPLATES,F as STATE_MANIFEST_FILENAME,Vi as STATE_SCHEMA_VERSION,t as SYSTEM_DOC_NAME,Xe as SeedPrerequisiteError,ui as SeedRootDirError,ta as ServerLockCollisionError,Ar as SingleFileNotAFileError,$n as SingleFileNotFoundError,yr as SingleFileNotMarkdownError,A as StateManifestError,nt as TagIndex,Q as USER_GLOBAL_BUNDLE_IDS,Dr as UiLockCollisionError,ai as __getShowAllWalkStatsForTesting,Qt as __resetShowAllWalkStatsForTesting,Ji as acquireProcessLock,Xi as acquireServerLock,nn as acquireUiLock,x as applyAgentMarkdownWrite,_r as applyExternalChange,ot as applySeed,je as assertCompatibleStateManifest,wn as assertGitAvailable,ze as assertNeverDiskEvent,Pn as attachAcpThreadSocket,Qn as attachIdleShutdown,Br as bootServer,qr as buildAndOpenSkill,Ge as buildConfigYmlContent,mr as buildExecResult,Le as buildOkMcpStdioCommand,re as buildSkillZip,Ae as buildStarterFolderFrontmatterYaml,p as buildWipTree,lt as bundleSkillMdPath,U as classifyEvents,Ti as classifyFsPath,Yn as clearContributors,Ur as clearEmbeddingsKeyFromAllBackends,Be as coercePackId,c as colorFromSeed,un as commitUpstreamImport,Mr as commitWip,tr as commitWipFromTree,yn as compareSemver,pe as composeEffectiveLinterConfig,on as containsConflictMarkers,ie as contentHash,Cn as contributorCount,Ie as countShadowObjects,B as countStaleAgentWipRefs,te as countWipRefs,ei as createApiExtension,N as createAssetServeMiddleware,jn as createContentFilter,Kt as createContentFilterAsync,ii as createEmbeddingsSecretStore,Dn as createEphemeralProjectDir,le as createExternalChangeHandler,pn as createFileLogger,oi as createLiveDerivedIndexExtension,G as createMcpHttpHandler,Tn as createOsProbe,Pe as createPersistenceExtension,T as createServer,xe as createServerObserverExtension,pt as createStreamingErrorWriter,Ii as createTestLogger,Zt as describeStoredEmbeddingsKey,_n as detectClaudeDesktopPresence,zt as detectGit,Rn as detectProjectShape,Pr as discoverLockDirs,kt as discoverMarkdownlintConfig,Y as emitPreflightFailureSpan,oe as encodeDocName,Dt as encodeFolderRoute,St as encodeSkillRoute,Fr as ensureProjectGit,m as ensureProjectSkillGitignore,Z as errorResponse,ye as evictStaleTrackerEntries,rr as extractOkBinaryPath,sr as extractWikiLinksFromMarkdown,Hr as fallbackPaths,an as findEnclosingGitRoot,Sr as findEnclosingProjectRoot,wt as findNativeMarkdownlintFile,ur as flushFileLogger,Kr as formatAuthRejectionWire,vn as formatContributors,Rt as formatContributorsFrom,k as formatPackRationale,xr as gcCheckpointRefs,d as getCurrentMcpLogger,Jr as getLocalDir,Jn as getLogFilePath,Li as getLogger,Sn as getLogsDir,ra as getMachineId,Ai as getMeter,Ct as getMetrics,hi as getTracer,Nt as handleCollabSocketError,qn as handleSpawnCursor,ge as hasGcLogLatch,o as iconFromClientName,He as incrementCollabSocketFilteredError,f as incrementServerObserverFire,dn as initContent,kn as initShadowRepo,ki as initTelemetry,Jt as initToleranceTelemetryWriter,qt as installPrettyZodErrors,Pi as installTestLoggers,it as installUserSkill,Me as isAllowedApiOrigin,w as isAllowedWorkspaceHostHeader,K as isConfigDoc,rt as isHocuspocusAuthRejectionReason,W as isKnownPackId,fe as isLinkIndexExcludedDoc,gt as isLoopbackAddress,hr as isManagedArtifactDoc,l as isOrphanMode,In as isPairedWriteOrigin,zr as isPathWithinDir,ia as isProcessAlive,An as isProjectRoot,Xt as isProjectSkillManaged,se as isReservedForUserTree,Ye as isSelfWrite,Ot as isSystemDoc,Xr as isToleranceTelemetryEnabled,Bi as isValidLockPid,li as lastKnownHash,Wt as listRescueCheckpoints,ae as listStarterPacks,Tr as loadCustomAgents,Ee as loadPrincipal,na as lockFilePath,ji as loggerFactory,Fi as logsCurrentPath,zi as logsPreviousPath,$r as makeLazyEmbeddingsKeyStore,$i as markServerLockDraining,st as mountMcpAndApi,Si as normalizeFsPath,yt as originGitHubHost,Nr as packageVersionMajorMinor,I as parseAuthRejectionWire,ri as parseGitVersion,j as parseHocuspocusAuthToken,_t as parseKeepaliveConnectionId,C as pathToDocName,Yr as planSeed,Ht as prepareSingleFileOpen,Cr as processCommand,Mn as processUsage,L as readAllTargets,M as readBundleDecision,Pt as readOwnNativeRules,Wi as readProcessLock,Qi as readProcessLockDetailed,b as readProjectHeadState,bn as readProjectLocalSemanticConfig,qi as readServerLock,Ne as readServerPackageVersion,Bn as readSkillInstallStateSnapshot,Qr as readSkillManagement,h as readStateManifest,_ as readTargetRecordedAt,Fn as readTargetVersion,Kn as readUiLock,mn as reconcile,Vr as recordContributor,H as recordSkillInstallEvent,de as registerAllTools,ht as registerWrite,Yi as releaseProcessLock,Hi as releaseServerLock,Rr as releaseUiLock,$ as removeLastKnownHash,ln as resetMetrics,e as resolveBundleEnabled,ve as resolveBundledSkillDir,at as resolveContentDir,cn as resolveCursorBinaryDefault,gn as resolveCursorSpawnInvocation,gr as resolveEffectiveLinterConfig,R as resolveLockDir,ce as resolveNativeConfigForDoc,Ue as resolveNativeMarkdownlintConfig,be as resolvePack,wr as resolvePackageVersion,Mt as resolveUiInfo,ni as restoreContributors,ti as restoreLifecycleFromConflictsJson,cr as rewriteMarkdownLinksForDocumentRename,Or as rewriteWikiLinksForDocumentRename,he as runAuthReposSubprocess,vr as runAuthStatusSubprocess,ee as runCloneSubprocess,ue as runDeviceFlowSubprocess,fn as runWithMcpLogger,Vn as safeContentPath,tt as safeSubdir,or as safetyCheckpoint,kr as sanitizeClientName,Er as saveInMemoryCheckpoint,tn as saveVersion,xn as seedBasenameIndex,ir as serializeError,di as setActiveSpanAttributes,we as setupServerObservers,Gn as shadowGit,Oi as shutdownTelemetry,$e as skillManagementPath,Mi as spansCurrentPath,Ni as spansPreviousPath,pr as spawnDetached,dr as splitMarkdownBlocks,ut as startWatcher,ct as streamingProblemEvent,Yt as swapContributors,Ze as teardownToleranceTelemetryWriter,br as toBroadcasterKey,yi as tracedAppendFileSync,wi as tracedLinkSync,gi as tracedMkdir,bi as tracedMkdirSync,Ei as tracedRename,_i as tracedRenameSync,Ci as tracedRmSync,xi as tracedRmdirSync,vi as tracedUnlinkSync,mi as tracedWriteFile,Di as tracedWriteFileSync,Gr as trustSystemCertificates,$t as untrackTrackedProjectSkillProjection,bt as updateLastKnownHash,Ki as updateProcessLockPort,Zi as updateServerLockPort,sn as updateUiLockPort,On as validateAgentId,dt as validateCloneInputs,Je as validateSkillZip,ea as waitForServerLockDrain,ke as withHiddenWindowsConsole,pi as withSpan,fi as withSpanSync,Ce as writeBundleDecision,q as writeMarkdownlintRule,nr as writeRootGitignoreForNewRepo,D as writeSkillManagement,Nn as writeStateManifest,Oe as writeTargetVersion,J as writeTracker};
@@ -1,6 +1,6 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{F as t,I as n,la as r}from"./src-DTPLCYnP.mjs";import{Er as i,Nr as a,it as o,ma as s,nt as c,rn as l,rt as u,tt as d}from"./src-BG_IUe5R.mjs";import{U as f}from"./sleep-DcENuR74.mjs";import{O as p,P as m}from"./fs-traced-BISd_YTv.mjs";import{S as h,u as g,v as _,x as v}from"./server-lock-CZUtoKxB.mjs";import{t as y}from"./yazl-DZr4PyKA.mjs";import{_ as b,g as x,i as ee,l as te,x as S}from"./write-project-skill-TsM_THnF.mjs";import"./acp-harness-probe-BB3MCnqT.mjs";import{E as ne,S as re,T as ie,_ as C,b as w,o as ae,v as oe,w as T}from"./init-6u-ABSZn.mjs";import{n as E}from"./constants-NqLesDwG.mjs";import{t as D}from"./is-object-DKopTkoU.mjs";import"./loader-Co8_Z3Xs.mjs";import{c as O}from"./colors-BslXS0bZ.mjs";import"./preview-CsOp4q2K.mjs";import{execSync as k,spawnSync as se}from"node:child_process";import{basename as A,dirname as j,isAbsolute as ce,join as M,relative as le,resolve as N,sep as ue}from"node:path";import{cpSync as de,createWriteStream as fe,existsSync as P,lstatSync as pe,mkdirSync as F,mkdtempSync as me,readFileSync as I,readdirSync as he,readlinkSync as ge,rmSync as L,statSync as _e,writeFileSync as R}from"node:fs";import{arch as ve,freemem as ye,homedir as be,hostname as xe,platform as Se,release as Ce,tmpdir as we,totalmem as Te,type as Ee,uptime as De}from"node:os";import{realpath as z}from"node:fs/promises";import{createHash as B}from"node:crypto";const Oe=[{name:`macos-home-path`,regex:/\/Users\/[^/]+\//g,replacement:`~/`},{name:`linux-home-path`,regex:/\/home\/[^/]+\//g,replacement:`~/`},{name:`github-pat`,regex:/\b(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9]{36,}\b/g,replacement:`[REDACTED-GH-PAT]`},{name:`aws-access-key`,regex:/\b(AKIA|ASIA|ABIA)[A-Z2-7]{16}\b/g,replacement:`[REDACTED-AWS-KEY]`},{name:`anthropic-key`,regex:/\bsk-ant-api03-[A-Za-z0-9_-]{20,}\b/g,replacement:`[REDACTED-ANTHROPIC]`},{name:`openai-key`,regex:/\bsk-[A-Za-z0-9]{20,}\b/g,replacement:`[REDACTED-OPENAI]`},{name:`bearer-token`,regex:/([Aa]uthorization:\s*[Bb]earer\s+)\S+/g,replacement:`$1[REDACTED]`},{name:`jwt`,regex:/eyJ[A-Za-z0-9_-]{8,}\.eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,replacement:`[REDACTED-JWT]`},{name:`url-credentials`,regex:/:\/\/[^/\s:@]+:[^/\s:@]+@/g,replacement:`://[REDACTED]@`}],ke=Oe.map(e=>e.name);function V(e){let t=new Set,n=0;return{redacted:e.split(`
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{F as t,I as n,la as r}from"./src-DTPLCYnP.mjs";import{Er as i,Nr as a,it as o,ma as s,nt as c,rn as l,rt as u,tt as d}from"./src-BEaiZuXz.mjs";import{U as f}from"./sleep-DcENuR74.mjs";import{O as p,P as m}from"./fs-traced-B-qtPUmb.mjs";import{S as h,u as g,v as _,x as v}from"./server-lock-C2OcZirx.mjs";import{t as y}from"./yazl-BafwB467.mjs";import{_ as b,g as x,i as ee,l as te,x as S}from"./write-project-skill-CMePkU0W.mjs";import"./acp-harness-probe-DAsiIrn7.mjs";import{E as ne,S as re,T as ie,_ as C,b as w,o as ae,v as oe,w as T}from"./init-DDWCwe7k.mjs";import{n as E}from"./constants-hkGRiNzn.mjs";import{t as D}from"./is-object-Bw0-z8qH.mjs";import"./loader-Ckek-jU0.mjs";import{c as O}from"./colors-_gzKDfrv.mjs";import"./preview-Dg4Sbf4n.mjs";import{execSync as k,spawnSync as se}from"node:child_process";import{basename as A,dirname as j,isAbsolute as ce,join as M,relative as le,resolve as N,sep as ue}from"node:path";import{cpSync as de,createWriteStream as fe,existsSync as P,lstatSync as pe,mkdirSync as F,mkdtempSync as me,readFileSync as I,readdirSync as he,readlinkSync as ge,rmSync as L,statSync as _e,writeFileSync as R}from"node:fs";import{arch as ve,freemem as ye,homedir as be,hostname as xe,platform as Se,release as Ce,tmpdir as we,totalmem as Te,type as Ee,uptime as De}from"node:os";import{realpath as z}from"node:fs/promises";import{createHash as B}from"node:crypto";const Oe=[{name:`macos-home-path`,regex:/\/Users\/[^/]+\//g,replacement:`~/`},{name:`linux-home-path`,regex:/\/home\/[^/]+\//g,replacement:`~/`},{name:`github-pat`,regex:/\b(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9]{36,}\b/g,replacement:`[REDACTED-GH-PAT]`},{name:`aws-access-key`,regex:/\b(AKIA|ASIA|ABIA)[A-Z2-7]{16}\b/g,replacement:`[REDACTED-AWS-KEY]`},{name:`anthropic-key`,regex:/\bsk-ant-api03-[A-Za-z0-9_-]{20,}\b/g,replacement:`[REDACTED-ANTHROPIC]`},{name:`openai-key`,regex:/\bsk-[A-Za-z0-9]{20,}\b/g,replacement:`[REDACTED-OPENAI]`},{name:`bearer-token`,regex:/([Aa]uthorization:\s*[Bb]earer\s+)\S+/g,replacement:`$1[REDACTED]`},{name:`jwt`,regex:/eyJ[A-Za-z0-9_-]{8,}\.eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,replacement:`[REDACTED-JWT]`},{name:`url-credentials`,regex:/:\/\/[^/\s:@]+:[^/\s:@]+@/g,replacement:`://[REDACTED]@`}],ke=Oe.map(e=>e.name);function V(e){let t=new Set,n=0;return{redacted:e.split(`
2
2
  `).map(e=>{let r=e;for(let{name:e,regex:i,replacement:a}of Oe)i.lastIndex=0,i.test(r)&&(t.add(e),n++,i.lastIndex=0,r=r.replace(i,a));return r}).join(`
3
- `),patterns:[...t],lineCount:n}}function Ae(){return M(be(),`.ok`,`bug-reports`)}function je(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`);return M(Ae(),`${t}-bugreport.zip`)}function Me(e,t){let n=M(e,`.ok`,`config.yml`);if(P(n))try{let e=I(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return P(M(e,`.ok`))?B(`sha256`).update(N(e)).digest(`hex`).slice(0,12):null}function Ne(){let e={timestamp:new Date().toISOString(),platform:Se(),osType:Ee(),osRelease:Ce(),hostname:`[redacted]`,uptime:De(),freeMem:ye(),totalMem:Te(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=k(`sw_vers -productVersion 2>/dev/null`,a({encoding:`utf8`})).trim()}catch{}try{let t=M(__dirname,`..`,`..`,`package.json`);P(t)&&(e.okVersion=JSON.parse(I(t,`utf8`)).version)}catch{}return e}function Pe(e,t){if(!P(t))return{files:[]};let n=he(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>M(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return I(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Fe(e){let n=M(e,`.ok`,`local`);return P(n)?{files:[`server.lock`,`last-spawn-error.log`,t].map(e=>M(n,e)).filter(e=>P(e))}:{files:[]}}function Ie(e){let t=M(e,`.ok`,`local`,`logs`);return P(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>M(t,e)).filter(e=>P(e))}:{files:[]}}function Le(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=V(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function H(e){for(let t of e.files)try{Le({zipfile:e.zipfile,name:`${e.prefix}/${A(t)}`,content:I(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function Re(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??M(be(),`.ok`,`logs`),o=t.projectDir?Me(t.projectDir,i):null;F(j(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=Ne();s.desktop=t.desktop??null;let{files:c}=Pe(o,a),{files:l}=t.projectDir?Fe(t.projectDir):{files:[]},{files:u}=t.projectDir?Ie(t.projectDir):{files:[]};i?.info({logFileCount:c.length,lockFileCount:l.length,localSinkFileCount:u.length},`files collected`);let d=[],f=[],{ZipFile:p}=await import(`./yazl-jVENrf5i.mjs`).then(t=>e(t.default,1)),m=new p;H({zipfile:m,files:c,prefix:`logs`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:l,prefix:`lockdir`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:u,prefix:`local-logs`,redact:n,bundleFiles:f,redactions:d,logger:i});for(let e of t.extraFiles??[])try{let t=I(e.sourcePath),n=`extra/${e.zipName??A(e.sourcePath)}`;m.addBuffer(t,n),f.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Le({zipfile:m,name:`note.txt`,content:t.note,redact:n,bundleFiles:f,redactions:d});let h=JSON.stringify(s,null,2);m.addBuffer(Buffer.from(h,`utf8`),`sysinfo.json`),f.push(`sysinfo.json`);let g={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:f,redactions:d,sysinfo:s};m.addBuffer(Buffer.from(JSON.stringify(g,null,2),`utf8`),`MANIFEST.json`);let _=d.reduce((e,t)=>e+t.lineCount,0),v=[`# Bug Report Bundle`,``,`Generated: ${g.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${g.disciplineVersion}`,``,`## Contents`,``,...f.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${ke.join(`, `)}`,_>0?`${_} line(s) were scrubbed across ${d.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
3
+ `),patterns:[...t],lineCount:n}}function Ae(){return M(be(),`.ok`,`bug-reports`)}function je(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`);return M(Ae(),`${t}-bugreport.zip`)}function Me(e,t){let n=M(e,`.ok`,`config.yml`);if(P(n))try{let e=I(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return P(M(e,`.ok`))?B(`sha256`).update(N(e)).digest(`hex`).slice(0,12):null}function Ne(){let e={timestamp:new Date().toISOString(),platform:Se(),osType:Ee(),osRelease:Ce(),hostname:`[redacted]`,uptime:De(),freeMem:ye(),totalMem:Te(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=k(`sw_vers -productVersion 2>/dev/null`,a({encoding:`utf8`})).trim()}catch{}try{let t=M(__dirname,`..`,`..`,`package.json`);P(t)&&(e.okVersion=JSON.parse(I(t,`utf8`)).version)}catch{}return e}function Pe(e,t){if(!P(t))return{files:[]};let n=he(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>M(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return I(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Fe(e){let n=M(e,`.ok`,`local`);return P(n)?{files:[`server.lock`,`last-spawn-error.log`,t].map(e=>M(n,e)).filter(e=>P(e))}:{files:[]}}function Ie(e){let t=M(e,`.ok`,`local`,`logs`);return P(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>M(t,e)).filter(e=>P(e))}:{files:[]}}function Le(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=V(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function H(e){for(let t of e.files)try{Le({zipfile:e.zipfile,name:`${e.prefix}/${A(t)}`,content:I(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function Re(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??M(be(),`.ok`,`logs`),o=t.projectDir?Me(t.projectDir,i):null;F(j(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=Ne();s.desktop=t.desktop??null;let{files:c}=Pe(o,a),{files:l}=t.projectDir?Fe(t.projectDir):{files:[]},{files:u}=t.projectDir?Ie(t.projectDir):{files:[]};i?.info({logFileCount:c.length,lockFileCount:l.length,localSinkFileCount:u.length},`files collected`);let d=[],f=[],{ZipFile:p}=await import(`./yazl-vwTkB7U0.mjs`).then(t=>e(t.default,1)),m=new p;H({zipfile:m,files:c,prefix:`logs`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:l,prefix:`lockdir`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:u,prefix:`local-logs`,redact:n,bundleFiles:f,redactions:d,logger:i});for(let e of t.extraFiles??[])try{let t=I(e.sourcePath),n=`extra/${e.zipName??A(e.sourcePath)}`;m.addBuffer(t,n),f.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Le({zipfile:m,name:`note.txt`,content:t.note,redact:n,bundleFiles:f,redactions:d});let h=JSON.stringify(s,null,2);m.addBuffer(Buffer.from(h,`utf8`),`sysinfo.json`),f.push(`sysinfo.json`);let g={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:f,redactions:d,sysinfo:s};m.addBuffer(Buffer.from(JSON.stringify(g,null,2),`utf8`),`MANIFEST.json`);let _=d.reduce((e,t)=>e+t.lineCount,0),v=[`# Bug Report Bundle`,``,`Generated: ${g.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${g.disciplineVersion}`,``,`## Contents`,``,...f.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${ke.join(`, `)}`,_>0?`${_} line(s) were scrubbed across ${d.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
4
4
  `);m.addBuffer(Buffer.from(v,`utf8`),`README.md`),m.end();let y=fe(r);return m.outputStream.pipe(y),await new Promise((e,t)=>{y.on(`close`,e),y.on(`error`,t)}),i?.info({bundlePath:r,fileCount:f.length,redactionCount:_},`bundle written`),{zipPath:r,summary:{projectSlug:o,files:f,redactions:d,redactedLineCount:_,generatedAt:g.generatedAt}}}var U=f(),ze=e(y(),1);const Be=new Set([`doc.name`,`currentDoc`]);function Ve(e){return`doc:${B(`sha256`).update(e).digest(`hex`).slice(0,8)}`}function He(e,t,n){let r=e.docNameMap[n];if(r===void 0){e.docNameMap[n]=t;return}if(r===t)return;let i=e.docNameCollisions[n];i?i.includes(t)||i.push(t):e.docNameCollisions[n]=[t]}function Ue(e,t){let n=t.originalToHashed.get(e);if(n!==void 0)return n;let r=Ve(e);return t.originalToHashed.set(e,r),He(t,e,r),r}function W(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function G(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function K(e,t){if(typeof e==`string`)return W(e,t.contentDir);if(Array.isArray(e))return e.map(e=>K(e,t));if(!G(e))return e;let n=typeof e.key==`string`&&Be.has(e.key)&&G(e.value)&&typeof e.value.stringValue==`string`?e.value.stringValue:null,r={};for(let[i,a]of Object.entries(e))if(n!==null&&i===`value`&&G(a)){let e=Ue(n,t);r[i]={...a,stringValue:e}}else Be.has(i)&&typeof a==`string`?r[i]=Ue(a,t):r[i]=K(a,t);return r}function We(e,t){if(t.originalToHashed.size===0)return e;let n=Array.from(t.originalToHashed.entries()).sort(([e],[t])=>t.length-e.length),r=e;for(let[e,t]of n)e.length!==0&&r.includes(e)&&(r=r.split(e).join(t));return r}function Ge(e,t){let n=I(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
5
5
  `),i=n.split(`
6
6
  `),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=K(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}R(e,r?`${a.join(`
@@ -19,4 +19,4 @@ import{o as e}from"./chunk-DTipWd-i.mjs";import{F as t,I as n,la as r}from"./src
19
19
  `).replace(/\n/g,`\r
20
20
  `));let u=`${i?``:``}${l}`;return u!==r&&m(e,u,{mode:T(e)}),{kind:`removed`}}const tn=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function nn(e,t,n=l){if(e!==void 0&&!tn.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let rn=null;function an(e){rn=e}function on(){return rn??process.cwd()}function sn(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function cn(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function ln(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:c(r),command:r,isDesktop:sn(r)}}function un(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&un(e)?`ui-orphan`:`stale`}const dn=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function fn(e){switch(e){case`running`:return Z.default.green(e);case`desktop`:return Z.default.blue(e);case`foreign`:return Z.default.cyan(e);case`ui-orphan`:return Z.default.magenta(e);case`stale`:return Z.default.yellow(e)}}function pn(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function mn(e){return`${pn(e.server.usage)} | ${pn(e.ui?.usage??null)}`}function hn(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function gn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Q(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,hn(e),mn(e),t,String(n),cn(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=fn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=Z.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
21
21
  `)}async function _n(e={}){let t=e.discover??d,n=e.inspect??X,r=e.log??(e=>console.log(e)),i=e.resolveCommand??u,a=e.resolveUsage??o,s=await t(),c=[];for(let e of s){let t=n(e,`server`),r=n(e,`ui`),o=ln(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&c.push(o)}if(e.json){let e=c.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(gn(e.all?c:c.filter(e=>dn.has(Q(e)))))}function vn(){return new S(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await _n({all:t.all===!0||e===`all`,json:t.json===!0})})}function yn(e,t,n={}){let r=n.isAlive??v,i=[];for(let[n,a]of[[`server`,e],[`ui`,t]])(a.status===`alive`||a.status===`foreign-host`&&r(a.lock.pid))&&i.push({name:n,pid:a.lock.pid,port:a.lock.port});return{targets:i}}function bn(e){let t=e.inspect??(t=>X(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=yn(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function xn(e,t=v){let n=await d(),r=null;for(let i of n){let n=X(i,`server`),a=X(i,`ui`);if($(n,t)&&n.lock.port===e||$(a,t)&&a.lock.port===e)return i;r===null&&($(n,t)&&n.lock.pid===e||$(a,t)&&a.lock.pid===e)&&(r=i)}return r}function Sn(e){let t=bn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function Cn(e){return new S(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async t=>{let n=t.length===0?void 0:t.join(` `);if(n===void 0){e();let t=bn({lockDir:i(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await _n({});return}if(n===`all`){let e=await d();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let t=0;for(let n of e){let e=X(n,`server`),r=X(n,`ui`);!$(e,v)&&!$(r,v)||(Sn(n),t++)}t===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(n)){let e=Number.parseInt(n,10),t=await xn(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}Sn(t);return}Sn(i(N(on(),n)))})}function wn(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}async function Tn(e,t){let n,i;try{n=await z(N(e)),i=await z(N(j(e)))}catch{return{kind:`not-git`}}if(!En(n,i))return{kind:`symlink-escape`};let a=M(n,`.git`),o;try{o=_e(a)}catch{return{kind:`not-git`}}if(o.isDirectory()){let e;try{e=await z(a)}catch{return{kind:`not-git`}}if(!En(e,n))return{kind:`symlink-escape`}}else if(!o.isFile())return{kind:`not-git`};let c=s(n);if(c.kind!==`repository`)return{kind:`not-git`};let l=c.repository.readRemoteUrl(`origin`);if(l.kind===`unreadable`)return{kind:`not-git`};if(l.kind===`absent`)return l.reason===`config-missing`?{kind:`not-git`}:{kind:`no-origin`};let u=l.url,d=Lt(u);if(d===null)return{kind:`non-github`};let f=r(d.hostname);if(f===null)return{kind:`non-github`};let p=f===t.host.toLowerCase(),m=d.owner.toLowerCase()===t.owner.toLowerCase(),h=d.name.toLowerCase()===t.repo.toLowerCase();return!p&&m&&h?{kind:`wrong-host`,actualHost:f}:!p||!m||!h?{kind:`wrong-repo`,actualOwner:d.owner,actualRepo:d.name}:{kind:`ok`,gitRemoteUrl:`https://${f}/${d.owner}/${d.name}.git`}}function En(e,t){if(e===t)return!0;let n=le(t,e);return n.length>0&&!n.startsWith(`..`)&&!ce(n)}const Dn=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=oe(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=ee(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function On(e,t,n={},r=Dn){let i=[];for(let a of t){let t=te[a];for(let a of r)i.push(a.write(t,e,n))}return i}function kn(e,t,n={}){return{integrations:On(e,t,n)}}export{Ft as C,V as D,je as E,X as S,Mt as T,qt as _,Cn as a,zt as b,an as c,Vt as d,Ut as f,Kt as g,Wt as h,bn as i,nn as l,Jt as m,Tn as n,vn as o,Ht as p,wn as r,on as s,kn as t,Zt as u,Rt as v,jt as w,Lt as x,Bt as y};
22
- //# sourceMappingURL=src-CInsze10.mjs.map
22
+ //# sourceMappingURL=src-CpXAv8Af.mjs.map
@@ -1,2 +1,2 @@
1
- import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./chunk-Y2CYZVJY-BBlcLUFu.mjs";var r=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=e(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),l={value:()=>{}};function u(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new d(n)}function d(e){this._=e}function f(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}d.prototype=u.prototype={constructor:d,on:function(e,t){var n=this._,r=f(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=p(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=m(n[i],e.name,t);else if(t==null)for(i in n)n[i]=m(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new d(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function p(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function m(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=l,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var h={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function g(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),h.hasOwnProperty(t)?{space:h[t],local:e}:e}function _(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function v(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function y(e){var t=g(e);return(t.local?v:_)(t)}function b(){}function x(e){return e==null?b:function(){return this.querySelector(e)}}function S(e){typeof e!=`function`&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new k(r,this._parents)}function C(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w(){return[]}function T(e){return e==null?w:function(){return this.querySelectorAll(e)}}function E(e){return function(){return C(e.apply(this,arguments))}}function ee(e){e=typeof e==`function`?E(e):T(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new k(r,i)}function te(e){return function(){return this.matches(e)}}function ne(e){return function(t){return t.matches(e)}}var re=Array.prototype.find;function ie(e){return function(){return re.call(this.children,e)}}function ae(){return this.firstElementChild}function oe(e){return this.select(e==null?ae:ie(typeof e==`function`?e:ne(e)))}var se=Array.prototype.filter;function ce(){return Array.from(this.children)}function le(e){return function(){return se.call(this.children,e)}}function ue(e){return this.selectAll(e==null?ce:le(typeof e==`function`?e:ne(e)))}function de(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new k(r,this._parents)}function fe(e){return Array(e.length)}function pe(){return new k(this._enter||this._groups.map(fe),this._parents)}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function me(e){return function(){return e}}function he(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new D(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ge(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new D(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function _e(e){return e.__data__}function ve(e,t){if(!arguments.length)return Array.from(this,_e);var n=t?ge:he,r=this._parents,i=this._groups;typeof e!=`function`&&(e=me(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ye(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new k(o,r),o._enter=s,o._exit=c,o}function ye(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function be(){return new k(this._exit||this._groups.map(fe),this._parents)}function xe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Se(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new k(s,this._parents)}function Ce(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function we(e){e||=Te;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new k(i,this._parents).order()}function Te(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ee(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function De(){return Array.from(this)}function Oe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function ke(){let e=0;for(let t of this)++e;return e}function Ae(){return!this.node()}function je(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Me(e){return function(){this.removeAttribute(e)}}function Ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pe(e,t){return function(){this.setAttribute(e,t)}}function Fe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ie(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Le(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Re(e,t){var n=g(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ne:Me:typeof t==`function`?n.local?Le:Ie:n.local?Fe:Pe)(n,t))}function ze(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Be(e){return function(){this.style.removeProperty(e)}}function Ve(e,t,n){return function(){this.style.setProperty(e,t,n)}}function He(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ue(e,t,n){return arguments.length>1?this.each((t==null?Be:typeof t==`function`?He:Ve)(e,t,n??``)):O(this.node(),e)}function O(e,t){return e.style.getPropertyValue(t)||ze(e).getComputedStyle(e,null).getPropertyValue(t)}function We(e){return function(){delete this[e]}}function Ge(e,t){return function(){this[e]=t}}function Ke(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qe(e,t){return arguments.length>1?this.each((t==null?We:typeof t==`function`?Ke:Ge)(e,t)):this.node()[e]}function Je(e){return e.trim().split(/^|\s+/)}function Ye(e){return e.classList||new Xe(e)}function Xe(e){this._node=e,this._names=Je(e.getAttribute(`class`)||``)}Xe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Ze(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qe(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $e(e){return function(){Ze(this,e)}}function et(e){return function(){Qe(this,e)}}function tt(e,t){return function(){(t.apply(this,arguments)?Ze:Qe)(this,e)}}function nt(e,t){var n=Je(e+``);if(arguments.length<2){for(var r=Ye(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?tt:t?$e:et)(n,t))}function rt(){this.textContent=``}function it(e){return function(){this.textContent=e}}function at(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ot(e){return arguments.length?this.each(e==null?rt:(typeof e==`function`?at:it)(e)):this.node().textContent}function st(){this.innerHTML=``}function ct(e){return function(){this.innerHTML=e}}function lt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function ut(e){return arguments.length?this.each(e==null?st:(typeof e==`function`?lt:ct)(e)):this.node().innerHTML}function dt(){this.nextSibling&&this.parentNode.appendChild(this)}function ft(){return this.each(dt)}function pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(pt)}function ht(e){var t=typeof e==`function`?e:y(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function gt(){return null}function _t(e,t){var n=typeof e==`function`?e:y(e),r=t==null?gt:typeof t==`function`?t:x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function vt(){var e=this.parentNode;e&&e.removeChild(this)}function yt(){return this.each(vt)}function bt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function St(e){return this.select(e?xt:bt)}function Ct(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function wt(e){return function(t){e.call(this,t,this.__data__)}}function Tt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Et(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Dt(e,t,n){return function(){var r=this.__on,i,a=wt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Ot(e,t,n){var r=Tt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Dt:Et,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function kt(e,t,n){var r=ze(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function At(e,t){return function(){return kt(this,e,t)}}function jt(e,t){return function(){return kt(this,e,t.apply(this,arguments))}}function Mt(e,t){return this.each((typeof t==`function`?jt:At)(e,t))}function*Nt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Pt=[null];function k(e,t){this._groups=e,this._parents=t}function A(){return new k([[document.documentElement]],Pt)}function Ft(){return this}k.prototype=A.prototype={constructor:k,select:S,selectAll:ee,selectChild:oe,selectChildren:ue,filter:de,data:ve,enter:pe,exit:be,join:xe,merge:Se,selection:Ft,order:Ce,sort:we,call:Ee,nodes:De,node:Oe,size:ke,empty:Ae,each:je,attr:Re,style:Ue,property:qe,classed:nt,text:ot,html:ut,raise:ft,lower:mt,append:ht,insert:_t,remove:yt,clone:St,datum:Ct,on:Ot,dispatch:Mt,[Symbol.iterator]:Nt};function It(e){return typeof e==`string`?new k([[document.querySelector(e)]],[document.documentElement]):new k([[e]],Pt)}function Lt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,zt=1/M,N=`\\s*([+-]?\\d+)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Bt=/^#([0-9a-f]{3,8})$/,Vt=RegExp(`^rgb\\(${N},${N},${N}\\)$`),Ht=RegExp(`^rgb\\(${F},${F},${F}\\)$`),Ut=RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`),Wt=RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`),Gt=RegExp(`^hsl\\(${P},${F},${F}\\)$`),Kt=RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Lt(j,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:Yt,formatHsl:Xt,formatRgb:Zt,toString:Zt});function Jt(){return this.rgb().formatHex()}function Yt(){return this.rgb().formatHex8()}function Xt(){return on(this).formatHsl()}function Zt(){return this.rgb().formatRgb()}function I(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Bt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qt(t):n===3?new R(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?L(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?L(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Vt.exec(e))?new R(t[1],t[2],t[3],1):(t=Ht.exec(e))?new R(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ut.exec(e))?L(t[1],t[2],t[3],t[4]):(t=Wt.exec(e))?L(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gt.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Kt.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Qt(qt[e]):e===`transparent`?new R(NaN,NaN,NaN,0):null}function Qt(e){return new R(e>>16&255,e>>8&255,e&255,1)}function L(e,t,n,r){return r<=0&&(e=t=n=NaN),new R(e,t,n,r)}function $t(e){return e instanceof j||(e=I(e)),e?(e=e.rgb(),new R(e.r,e.g,e.b,e.opacity)):new R}function en(e,t,n,r){return arguments.length===1?$t(e):new R(e,t,n,r??1)}function R(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lt(R,en,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new R(B(this.r),B(this.g),B(this.b),z(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatHex8:nn,formatRgb:rn,toString:rn}));function tn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}`}function nn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}${V((isNaN(this.opacity)?1:this.opacity)*255)}`}function rn(){let e=z(this.opacity);return`${e===1?`rgb(`:`rgba(`}${B(this.r)}, ${B(this.g)}, ${B(this.b)}${e===1?`)`:`, ${e})`}`}function z(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function B(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function V(e){return e=B(e),(e<16?`0`:``)+e.toString(16)}function an(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new H(e,t,n,r)}function on(e){if(e instanceof H)return new H(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=I(e)),!e)return new H;if(e instanceof H)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new H(o,s,c,e.opacity)}function sn(e,t,n,r){return arguments.length===1?on(e):new H(e,t,n,r??1)}function H(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lt(H,sn,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new H(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new H(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new R(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new H(cn(this.h),U(this.s),U(this.l),z(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=z(this.opacity);return`${e===1?`hsl(`:`hsla(`}${cn(this.h)}, ${U(this.s)*100}%, ${U(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function cn(e){return e=(e||0)%360,e<0?e+360:e}function U(e){return Math.max(0,Math.min(1,e||0))}function ln(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var un=e=>()=>e;function dn(e,t){return function(n){return e+n*t}}function fn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function pn(e,t){var n=t-e;return n?dn(e,n>180||n<-180?n-360*Math.round(n/360):n):un(isNaN(e)?t:e)}function mn(e){return(e=+e)==1?hn:function(t,n){return n-t?fn(t,n,e):un(isNaN(t)?n:t)}}function hn(e,t){var n=t-e;return n?dn(e,n):un(isNaN(e)?t:e)}var gn=(function e(t){var n=mn(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=hn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function W(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var _n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vn=new RegExp(_n.source,`g`);function yn(e){return function(){return e}}function bn(e){return function(t){return e(t)+``}}function xn(e,t){var n=_n.lastIndex=vn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=_n.exec(e))&&(i=vn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:W(r,i)})),n=vn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bn(c[0].x):yn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Sn=180/Math.PI,Cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wn(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Sn,skewX:Math.atan(c)*Sn,scaleX:o,scaleY:s}}var Tn;function En(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Cn:wn(t.a,t.b,t.c,t.d,t.e,t.f)}function Dn(e){return e==null||(Tn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Tn.setAttribute(`transform`,e),!(e=Tn.transform.baseVal.consolidate()))?Cn:(e=e.matrix,wn(e.a,e.b,e.c,e.d,e.e,e.f))}function On(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:W(e,i)},{i:c-2,x:W(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:W(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:W(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:W(e,n)},{i:s-2,x:W(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var kn=On(En,`px, `,`px)`,`deg)`),An=On(Dn,`, `,`)`,`)`),G=0,jn=0,Mn=0,Nn=1e3,Pn,K,Fn=0,q=0,In=0,J=typeof performance==`object`&&performance.now?performance:Date,Ln=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rn(){return q||=(Ln(zn),J.now()+In)}function zn(){q=0}function Bn(){this._call=this._time=this._next=null}Bn.prototype=Vn.prototype={constructor:Bn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Rn():+n)+(t==null?0:+t),!this._next&&K!==this&&(K?K._next=this:Pn=this,K=this),this._call=e,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};function Vn(e,t,n){var r=new Bn;return r.restart(e,t,n),r}function Hn(){Rn(),++G;for(var e=Pn,t;e;)(t=q-e._time)>=0&&e._call.call(void 0,t),e=e._next;--G}function Un(){q=(Fn=J.now())+In,G=jn=0;try{Hn()}finally{G=0,Gn(),q=0}}function Wn(){var e=J.now(),t=e-Fn;t>Nn&&(In-=t,Fn=e)}function Gn(){for(var e,t=Pn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Pn=n);K=e,Kn(r)}function Kn(e){G||(jn&&=clearTimeout(jn),e-q>24?(e<1/0&&(jn=setTimeout(Un,e-J.now()-In)),Mn&&=clearInterval(Mn)):(Mn||=(Fn=J.now(),setInterval(Wn,Nn)),G=1,Ln(Un)))}function qn(e,t,n){var r=new Bn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Jn=u(`start`,`end`,`cancel`,`interrupt`),Yn=[];function Xn(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Qn(e,n,{name:t,index:r,group:i,on:Jn,tween:Yn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Zn(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Qn(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vn(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return qn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(qn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function $n(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function er(e){return this.each(function(){$n(this,e)})}function tr(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function nr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function rr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tr:nr)(n,e,t))}function ir(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function ar(e,t){var n;return(typeof t==`number`?W:t instanceof I?gn:(n=I(t))?(t=n,gn):xn)(e,t)}function or(e){return function(){this.removeAttribute(e)}}function sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ur(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fr(e,t){var n=g(e),r=n===`transform`?An:ar;return this.attrTween(e,typeof t==`function`?(n.local?dr:ur)(n,r,ir(this,`attr.`+e,t)):t==null?(n.local?sr:or)(n):(n.local?lr:cr)(n,r,t))}function pr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mr(e,i)),n}return i._value=t,i}function gr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&pr(e,i)),n}return i._value=t,i}function _r(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=g(e);return this.tween(n,(r.local?hr:gr)(r,t))}function vr(e,t){return function(){Zn(this,e).delay=+t.apply(this,arguments)}}function yr(e,t){return t=+t,function(){Zn(this,e).delay=t}}function br(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?vr:yr)(t,e)):X(this.node(),t).delay}function xr(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Sr(e,t){return t=+t,function(){Y(this,e).duration=t}}function Cr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xr:Sr)(t,e)):X(this.node(),t).duration}function wr(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Tr(e){var t=this._id;return arguments.length?this.each(wr(t,e)):X(this.node(),t).ease}function Er(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Dr(e){if(typeof e!=`function`)throw Error();return this.each(Er(this._id,e))}function Or(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function kr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Ar(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function jr(e,t,n){var r,i,a=Ar(t)?Zn:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Mr(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(jr(n,e,t))}function Nr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Pr(){return this.on(`end.remove`,Nr(this._id))}function Fr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=x(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Xn(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function Ir(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Xn(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Lr=A.prototype.constructor;function Rr(){return new Lr(this._groups,this._parents)}function zr(e,t){var n,r,i;return function(){var a=O(this,e),o=(this.style.removeProperty(e),O(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Br(e){return function(){this.style.removeProperty(e)}}function Vr(e,t,n){var r,i=n+``,a;return function(){var o=O(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Hr(e,t,n){var r,i,a;return function(){var o=O(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),O(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ur(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=Br(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Wr(e,t,n){var r=(e+=``)==`transform`?kn:ar;return t==null?this.styleTween(e,zr(e,r)).on(`end.style.`+e,Br(e)):typeof t==`function`?this.styleTween(e,Hr(e,r,ir(this,`style.`+e,t))).each(Ur(this._id,e)):this.styleTween(e,Vr(e,r,t),n).on(`end.style.`+e,null)}function Gr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Kr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Gr(e,a,n)),r}return a._value=t,a}function qr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Kr(e,t,n??``))}function Jr(e){return function(){this.textContent=e}}function Yr(e){return function(){var t=e(this);this.textContent=t??``}}function Xr(e){return this.tween(`text`,typeof e==`function`?Yr(ir(this,`text`,e)):Jr(e==null?``:e+``))}function Zr(e){return function(t){this.textContent=e.call(this,t)}}function Qr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Zr(r)),t}return r._value=e,r}function $r(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Qr(e))}function ei(){for(var e=this._name,t=this._id,n=ii(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);Xn(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function ti(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var ni=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ri(e){return A().transition(e)}function ii(){return++ni}var Q=A.prototype;Z.prototype=ri.prototype={constructor:Z,select:Fr,selectAll:Ir,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Or,merge:kr,selection:Rr,transition:ei,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Mr,attr:fr,attrTween:_r,style:Wr,styleTween:qr,text:Xr,textTween:$r,remove:Pr,tween:rr,delay:br,duration:Cr,ease:Tr,easeVarying:Dr,end:ti,[Symbol.iterator]:Q[Symbol.iterator]};function ai(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var oi={time:null,delay:0,duration:250,ease:ai};function si(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ci(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=ii(),(n=oi).time=Rn(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Xn(c,e,t,l,o,n||si(c,t));return new Z(r,this._parents,e,t)}A.prototype.interrupt=er,A.prototype.transition=ci;const{abs:li,max:ui,min:di}=Math;[`w`,`e`].map(fi),[`n`,`s`].map(fi),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(fi);function fi(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var pi=new $(1,0,0);mi.prototype=$.prototype;function mi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return pi;return e.__zoom}export{hn as a,R as c,Lt as d,Rt as f,r as g,s as h,pn as i,I as l,o as m,W as n,un as o,It as p,gn as r,j as s,xn as t,$t as u};
2
- //# sourceMappingURL=src-82KBw76I.mjs.map
1
+ import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./chunk-Y2CYZVJY-D-AxePDr.mjs";var r=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=e(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),l={value:()=>{}};function u(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new d(n)}function d(e){this._=e}function f(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}d.prototype=u.prototype={constructor:d,on:function(e,t){var n=this._,r=f(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=p(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=m(n[i],e.name,t);else if(t==null)for(i in n)n[i]=m(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new d(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function p(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function m(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=l,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var h={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function g(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),h.hasOwnProperty(t)?{space:h[t],local:e}:e}function _(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function v(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function y(e){var t=g(e);return(t.local?v:_)(t)}function b(){}function x(e){return e==null?b:function(){return this.querySelector(e)}}function S(e){typeof e!=`function`&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new k(r,this._parents)}function C(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w(){return[]}function T(e){return e==null?w:function(){return this.querySelectorAll(e)}}function E(e){return function(){return C(e.apply(this,arguments))}}function ee(e){e=typeof e==`function`?E(e):T(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new k(r,i)}function te(e){return function(){return this.matches(e)}}function ne(e){return function(t){return t.matches(e)}}var re=Array.prototype.find;function ie(e){return function(){return re.call(this.children,e)}}function ae(){return this.firstElementChild}function oe(e){return this.select(e==null?ae:ie(typeof e==`function`?e:ne(e)))}var se=Array.prototype.filter;function ce(){return Array.from(this.children)}function le(e){return function(){return se.call(this.children,e)}}function ue(e){return this.selectAll(e==null?ce:le(typeof e==`function`?e:ne(e)))}function de(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new k(r,this._parents)}function fe(e){return Array(e.length)}function pe(){return new k(this._enter||this._groups.map(fe),this._parents)}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function me(e){return function(){return e}}function he(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new D(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ge(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new D(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function _e(e){return e.__data__}function ve(e,t){if(!arguments.length)return Array.from(this,_e);var n=t?ge:he,r=this._parents,i=this._groups;typeof e!=`function`&&(e=me(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ye(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new k(o,r),o._enter=s,o._exit=c,o}function ye(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function be(){return new k(this._exit||this._groups.map(fe),this._parents)}function xe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Se(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new k(s,this._parents)}function Ce(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function we(e){e||=Te;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new k(i,this._parents).order()}function Te(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ee(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function De(){return Array.from(this)}function Oe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function ke(){let e=0;for(let t of this)++e;return e}function Ae(){return!this.node()}function je(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Me(e){return function(){this.removeAttribute(e)}}function Ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pe(e,t){return function(){this.setAttribute(e,t)}}function Fe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ie(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Le(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Re(e,t){var n=g(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ne:Me:typeof t==`function`?n.local?Le:Ie:n.local?Fe:Pe)(n,t))}function ze(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Be(e){return function(){this.style.removeProperty(e)}}function Ve(e,t,n){return function(){this.style.setProperty(e,t,n)}}function He(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ue(e,t,n){return arguments.length>1?this.each((t==null?Be:typeof t==`function`?He:Ve)(e,t,n??``)):O(this.node(),e)}function O(e,t){return e.style.getPropertyValue(t)||ze(e).getComputedStyle(e,null).getPropertyValue(t)}function We(e){return function(){delete this[e]}}function Ge(e,t){return function(){this[e]=t}}function Ke(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qe(e,t){return arguments.length>1?this.each((t==null?We:typeof t==`function`?Ke:Ge)(e,t)):this.node()[e]}function Je(e){return e.trim().split(/^|\s+/)}function Ye(e){return e.classList||new Xe(e)}function Xe(e){this._node=e,this._names=Je(e.getAttribute(`class`)||``)}Xe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Ze(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qe(e,t){for(var n=Ye(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $e(e){return function(){Ze(this,e)}}function et(e){return function(){Qe(this,e)}}function tt(e,t){return function(){(t.apply(this,arguments)?Ze:Qe)(this,e)}}function nt(e,t){var n=Je(e+``);if(arguments.length<2){for(var r=Ye(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?tt:t?$e:et)(n,t))}function rt(){this.textContent=``}function it(e){return function(){this.textContent=e}}function at(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ot(e){return arguments.length?this.each(e==null?rt:(typeof e==`function`?at:it)(e)):this.node().textContent}function st(){this.innerHTML=``}function ct(e){return function(){this.innerHTML=e}}function lt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function ut(e){return arguments.length?this.each(e==null?st:(typeof e==`function`?lt:ct)(e)):this.node().innerHTML}function dt(){this.nextSibling&&this.parentNode.appendChild(this)}function ft(){return this.each(dt)}function pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(pt)}function ht(e){var t=typeof e==`function`?e:y(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function gt(){return null}function _t(e,t){var n=typeof e==`function`?e:y(e),r=t==null?gt:typeof t==`function`?t:x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function vt(){var e=this.parentNode;e&&e.removeChild(this)}function yt(){return this.each(vt)}function bt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function St(e){return this.select(e?xt:bt)}function Ct(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function wt(e){return function(t){e.call(this,t,this.__data__)}}function Tt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Et(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Dt(e,t,n){return function(){var r=this.__on,i,a=wt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Ot(e,t,n){var r=Tt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Dt:Et,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function kt(e,t,n){var r=ze(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function At(e,t){return function(){return kt(this,e,t)}}function jt(e,t){return function(){return kt(this,e,t.apply(this,arguments))}}function Mt(e,t){return this.each((typeof t==`function`?jt:At)(e,t))}function*Nt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Pt=[null];function k(e,t){this._groups=e,this._parents=t}function A(){return new k([[document.documentElement]],Pt)}function Ft(){return this}k.prototype=A.prototype={constructor:k,select:S,selectAll:ee,selectChild:oe,selectChildren:ue,filter:de,data:ve,enter:pe,exit:be,join:xe,merge:Se,selection:Ft,order:Ce,sort:we,call:Ee,nodes:De,node:Oe,size:ke,empty:Ae,each:je,attr:Re,style:Ue,property:qe,classed:nt,text:ot,html:ut,raise:ft,lower:mt,append:ht,insert:_t,remove:yt,clone:St,datum:Ct,on:Ot,dispatch:Mt,[Symbol.iterator]:Nt};function It(e){return typeof e==`string`?new k([[document.querySelector(e)]],[document.documentElement]):new k([[e]],Pt)}function Lt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,zt=1/M,N=`\\s*([+-]?\\d+)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Bt=/^#([0-9a-f]{3,8})$/,Vt=RegExp(`^rgb\\(${N},${N},${N}\\)$`),Ht=RegExp(`^rgb\\(${F},${F},${F}\\)$`),Ut=RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`),Wt=RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`),Gt=RegExp(`^hsl\\(${P},${F},${F}\\)$`),Kt=RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Lt(j,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:Yt,formatHsl:Xt,formatRgb:Zt,toString:Zt});function Jt(){return this.rgb().formatHex()}function Yt(){return this.rgb().formatHex8()}function Xt(){return on(this).formatHsl()}function Zt(){return this.rgb().formatRgb()}function I(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Bt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qt(t):n===3?new R(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?L(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?L(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Vt.exec(e))?new R(t[1],t[2],t[3],1):(t=Ht.exec(e))?new R(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ut.exec(e))?L(t[1],t[2],t[3],t[4]):(t=Wt.exec(e))?L(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gt.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Kt.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Qt(qt[e]):e===`transparent`?new R(NaN,NaN,NaN,0):null}function Qt(e){return new R(e>>16&255,e>>8&255,e&255,1)}function L(e,t,n,r){return r<=0&&(e=t=n=NaN),new R(e,t,n,r)}function $t(e){return e instanceof j||(e=I(e)),e?(e=e.rgb(),new R(e.r,e.g,e.b,e.opacity)):new R}function en(e,t,n,r){return arguments.length===1?$t(e):new R(e,t,n,r??1)}function R(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lt(R,en,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new R(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new R(B(this.r),B(this.g),B(this.b),z(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatHex8:nn,formatRgb:rn,toString:rn}));function tn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}`}function nn(){return`#${V(this.r)}${V(this.g)}${V(this.b)}${V((isNaN(this.opacity)?1:this.opacity)*255)}`}function rn(){let e=z(this.opacity);return`${e===1?`rgb(`:`rgba(`}${B(this.r)}, ${B(this.g)}, ${B(this.b)}${e===1?`)`:`, ${e})`}`}function z(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function B(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function V(e){return e=B(e),(e<16?`0`:``)+e.toString(16)}function an(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new H(e,t,n,r)}function on(e){if(e instanceof H)return new H(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=I(e)),!e)return new H;if(e instanceof H)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new H(o,s,c,e.opacity)}function sn(e,t,n,r){return arguments.length===1?on(e):new H(e,t,n,r??1)}function H(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lt(H,sn,Rt(j,{brighter(e){return e=e==null?zt:zt**+e,new H(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new H(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new R(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new H(cn(this.h),U(this.s),U(this.l),z(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=z(this.opacity);return`${e===1?`hsl(`:`hsla(`}${cn(this.h)}, ${U(this.s)*100}%, ${U(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function cn(e){return e=(e||0)%360,e<0?e+360:e}function U(e){return Math.max(0,Math.min(1,e||0))}function ln(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var un=e=>()=>e;function dn(e,t){return function(n){return e+n*t}}function fn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function pn(e,t){var n=t-e;return n?dn(e,n>180||n<-180?n-360*Math.round(n/360):n):un(isNaN(e)?t:e)}function mn(e){return(e=+e)==1?hn:function(t,n){return n-t?fn(t,n,e):un(isNaN(t)?n:t)}}function hn(e,t){var n=t-e;return n?dn(e,n):un(isNaN(e)?t:e)}var gn=(function e(t){var n=mn(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=hn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function W(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var _n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vn=new RegExp(_n.source,`g`);function yn(e){return function(){return e}}function bn(e){return function(t){return e(t)+``}}function xn(e,t){var n=_n.lastIndex=vn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=_n.exec(e))&&(i=vn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:W(r,i)})),n=vn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bn(c[0].x):yn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Sn=180/Math.PI,Cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wn(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Sn,skewX:Math.atan(c)*Sn,scaleX:o,scaleY:s}}var Tn;function En(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Cn:wn(t.a,t.b,t.c,t.d,t.e,t.f)}function Dn(e){return e==null||(Tn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Tn.setAttribute(`transform`,e),!(e=Tn.transform.baseVal.consolidate()))?Cn:(e=e.matrix,wn(e.a,e.b,e.c,e.d,e.e,e.f))}function On(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:W(e,i)},{i:c-2,x:W(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:W(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:W(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:W(e,n)},{i:s-2,x:W(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var kn=On(En,`px, `,`px)`,`deg)`),An=On(Dn,`, `,`)`,`)`),G=0,jn=0,Mn=0,Nn=1e3,Pn,K,Fn=0,q=0,In=0,J=typeof performance==`object`&&performance.now?performance:Date,Ln=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rn(){return q||=(Ln(zn),J.now()+In)}function zn(){q=0}function Bn(){this._call=this._time=this._next=null}Bn.prototype=Vn.prototype={constructor:Bn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Rn():+n)+(t==null?0:+t),!this._next&&K!==this&&(K?K._next=this:Pn=this,K=this),this._call=e,this._time=n,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};function Vn(e,t,n){var r=new Bn;return r.restart(e,t,n),r}function Hn(){Rn(),++G;for(var e=Pn,t;e;)(t=q-e._time)>=0&&e._call.call(void 0,t),e=e._next;--G}function Un(){q=(Fn=J.now())+In,G=jn=0;try{Hn()}finally{G=0,Gn(),q=0}}function Wn(){var e=J.now(),t=e-Fn;t>Nn&&(In-=t,Fn=e)}function Gn(){for(var e,t=Pn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Pn=n);K=e,Kn(r)}function Kn(e){G||(jn&&=clearTimeout(jn),e-q>24?(e<1/0&&(jn=setTimeout(Un,e-J.now()-In)),Mn&&=clearInterval(Mn)):(Mn||=(Fn=J.now(),setInterval(Wn,Nn)),G=1,Ln(Un)))}function qn(e,t,n){var r=new Bn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Jn=u(`start`,`end`,`cancel`,`interrupt`),Yn=[];function Xn(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Qn(e,n,{name:t,index:r,group:i,on:Jn,tween:Yn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Zn(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Qn(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vn(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return qn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(qn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function $n(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function er(e){return this.each(function(){$n(this,e)})}function tr(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function nr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function rr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tr:nr)(n,e,t))}function ir(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function ar(e,t){var n;return(typeof t==`number`?W:t instanceof I?gn:(n=I(t))?(t=n,gn):xn)(e,t)}function or(e){return function(){this.removeAttribute(e)}}function sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ur(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fr(e,t){var n=g(e),r=n===`transform`?An:ar;return this.attrTween(e,typeof t==`function`?(n.local?dr:ur)(n,r,ir(this,`attr.`+e,t)):t==null?(n.local?sr:or)(n):(n.local?lr:cr)(n,r,t))}function pr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mr(e,i)),n}return i._value=t,i}function gr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&pr(e,i)),n}return i._value=t,i}function _r(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=g(e);return this.tween(n,(r.local?hr:gr)(r,t))}function vr(e,t){return function(){Zn(this,e).delay=+t.apply(this,arguments)}}function yr(e,t){return t=+t,function(){Zn(this,e).delay=t}}function br(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?vr:yr)(t,e)):X(this.node(),t).delay}function xr(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Sr(e,t){return t=+t,function(){Y(this,e).duration=t}}function Cr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xr:Sr)(t,e)):X(this.node(),t).duration}function wr(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Tr(e){var t=this._id;return arguments.length?this.each(wr(t,e)):X(this.node(),t).ease}function Er(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Dr(e){if(typeof e!=`function`)throw Error();return this.each(Er(this._id,e))}function Or(e){typeof e!=`function`&&(e=te(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function kr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Ar(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function jr(e,t,n){var r,i,a=Ar(t)?Zn:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Mr(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(jr(n,e,t))}function Nr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Pr(){return this.on(`end.remove`,Nr(this._id))}function Fr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=x(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Xn(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function Ir(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Xn(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Lr=A.prototype.constructor;function Rr(){return new Lr(this._groups,this._parents)}function zr(e,t){var n,r,i;return function(){var a=O(this,e),o=(this.style.removeProperty(e),O(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Br(e){return function(){this.style.removeProperty(e)}}function Vr(e,t,n){var r,i=n+``,a;return function(){var o=O(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Hr(e,t,n){var r,i,a;return function(){var o=O(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),O(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ur(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=Br(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Wr(e,t,n){var r=(e+=``)==`transform`?kn:ar;return t==null?this.styleTween(e,zr(e,r)).on(`end.style.`+e,Br(e)):typeof t==`function`?this.styleTween(e,Hr(e,r,ir(this,`style.`+e,t))).each(Ur(this._id,e)):this.styleTween(e,Vr(e,r,t),n).on(`end.style.`+e,null)}function Gr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Kr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Gr(e,a,n)),r}return a._value=t,a}function qr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Kr(e,t,n??``))}function Jr(e){return function(){this.textContent=e}}function Yr(e){return function(){var t=e(this);this.textContent=t??``}}function Xr(e){return this.tween(`text`,typeof e==`function`?Yr(ir(this,`text`,e)):Jr(e==null?``:e+``))}function Zr(e){return function(t){this.textContent=e.call(this,t)}}function Qr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Zr(r)),t}return r._value=e,r}function $r(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Qr(e))}function ei(){for(var e=this._name,t=this._id,n=ii(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);Xn(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function ti(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var ni=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ri(e){return A().transition(e)}function ii(){return++ni}var Q=A.prototype;Z.prototype=ri.prototype={constructor:Z,select:Fr,selectAll:Ir,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Or,merge:kr,selection:Rr,transition:ei,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Mr,attr:fr,attrTween:_r,style:Wr,styleTween:qr,text:Xr,textTween:$r,remove:Pr,tween:rr,delay:br,duration:Cr,ease:Tr,easeVarying:Dr,end:ti,[Symbol.iterator]:Q[Symbol.iterator]};function ai(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var oi={time:null,delay:0,duration:250,ease:ai};function si(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ci(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=ii(),(n=oi).time=Rn(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Xn(c,e,t,l,o,n||si(c,t));return new Z(r,this._parents,e,t)}A.prototype.interrupt=er,A.prototype.transition=ci;const{abs:li,max:ui,min:di}=Math;[`w`,`e`].map(fi),[`n`,`s`].map(fi),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(fi);function fi(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var pi=new $(1,0,0);mi.prototype=$.prototype;function mi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return pi;return e.__zoom}export{hn as a,R as c,Lt as d,Rt as f,r as g,s as h,pn as i,I as l,o as m,W as n,un as o,It as p,gn as r,j as s,xn as t,$t as u};
2
+ //# sourceMappingURL=src-nvx4LAFk.mjs.map
@@ -0,0 +1 @@
1
+ import{_ as e,f as t,r as n}from"./start-Ditv69eU.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
@@ -1,3 +1,3 @@
1
- import{L as e,P as t}from"./src-DTPLCYnP.mjs";import{Nr as n,a as r,in as i,xr as a}from"./src-BG_IUe5R.mjs";import{S as o,x as s}from"./write-project-skill-TsM_THnF.mjs";import{a as c,n as l,t as u}from"./acp-harness-probe-BB3MCnqT.mjs";import{n as d}from"./constants-NqLesDwG.mjs";import{spawn as f}from"node:child_process";import{basename as p,dirname as m,join as h,win32 as g}from"node:path";import{closeSync as _,existsSync as v,mkdirSync as y,openSync as b,statSync as x}from"node:fs";import{homedir as S}from"node:os";import{rm as C}from"node:fs/promises";import{setTimeout as w}from"node:timers/promises";function T(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function E(e,t,r={}){let i=(r.spawn??f)(e,[...t],n({detached:!0,stdio:`ignore`,env:T(r.env??process.env)}));return i.unref(),i}const D=`OpenKnowledge.app`,O=`/Applications/${D}`;function k(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return x(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function A(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(j(e,O))return O;let t=h(e.homeDir??S(),`Applications`,D);return j(e,t)?t:null}function j(e,t){return M(e,h(t,`Contents`,`MacOS`,`OpenKnowledge`))}function M(e,t){try{let n=e.statSync(t);return n&&typeof n.isFile==`function`?n.isFile():!1}catch{return!1}}const N=[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`];function P(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&/\\OpenKnowledge\.exe$/i.test(e.execPath))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of N){let r=g.join(t,`Programs`,n,`OpenKnowledge.exe`);if(M(e,r))return r}return null}function F(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&e.execPath.endsWith(`/openknowledge`))return e.execPath;let t=`/opt/OpenKnowledge/openknowledge`;return M(e,t)?t:null}function I(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?A(e):e.platform===`win32`?P(e):F(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:!(e.isTTY===!0||e.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function L(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;if(n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),r===`darwin`){E(`open`,[`-b`,`com.inkeep.open-knowledge`],{spawn:e.spawn});return}let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}E(i,[],{spawn:e.spawn})}function R(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function z(e){return h(m(e),`..`,`Frameworks`,`OpenKnowledge Server.app`,`Contents`,`MacOS`,`OpenKnowledge Helper`)}const B=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function ee(e){if(e.platform!==`darwin`||!B.test(e.execPath))return null;let t=z(e.execPath);return e.exists(t)?t:null}function V(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??v,a=r[1];return a?{command:ee({execPath:t,platform:n,exists:i})??t,prefixArgs:[a]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(r)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function H(e,t){return e.host??t.HOST??`127.0.0.1`}function U(e){let t=p(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var W=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function G(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function K(t){v(t.lockDir)||y(t.lockDir,{recursive:!0});let n=b(h(t.lockDir,e),`w`),r=t.spawn??f,{PORT:i,...a}=process.env,o=V();try{let e=r(o.command,[...o.prefixArgs,...t.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,n],windowsHide:!0,cwd:t.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return e.unref(),e}finally{try{_(n)}catch{}}}function q(e,t,n){return e??(n===void 0?t:void 0)}function J(e,t){return e!==void 0&&t!==null&&t.port>0&&t.draining!==!0}function Y(e,t,n){return e??+(t!=null&&!n)}async function X(e){let t=e.spawn??f,n=V(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,windowsHide:!0,env:{...i,ELECTRON_RUN_AS_NODE:`1`}}),o=!1,s=e=>{o=!0;try{a.kill(e)}catch{}},c=()=>s(`SIGINT`),l=()=>s(`SIGTERM`);process.once(`SIGINT`,c),process.once(`SIGTERM`,l),await new Promise(e=>{a.on(`exit`,(t,n)=>{process.exitCode=Y(t,n,o),e()}),a.on(`error`,t=>{console.error(`[start] connect fallback: failed to spawn ok ui — ${t instanceof Error?t.message:String(t)}`),process.exitCode=1,e()})}),process.removeListener(`SIGINT`,c),process.removeListener(`SIGTERM`,l)}async function Z(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const te=t;function Q(e,t,n=e=>C(e,{recursive:!0,force:!0})){return async()=>{try{await e()}finally{try{await n(t)}catch(e){process.stderr.write(`[start] ephemeral temp dir reap failed for ${t}: ${e instanceof Error?e.message:String(e)}\n`)}}}}function ne(e,t={}){let n=t.exit??(e=>process.exit(e)),r=t.getActiveHandles??(()=>{let e=process._getActiveHandles;return e?e.call(process):null});return async()=>{let i=!1;try{await e()}catch(e){i=!0,t.log?.error({err:e},`idle-shutdown: destroy failed — exiting anyway`)}finally{let e=null;try{let t=r();if(t!==null){e={};for(let n of t){let t=n?.constructor?.name??`unknown`;e[t]=(e[t]??0)+1}}}catch{e=null}t.log?.info({event:`idle-shutdown-exit`,exitCode:+!!i,openHandles:e??{},handlesAvailable:e!==null},`idle-shutdown: teardown finished — exiting process`),n(+!!i)}}}function $(e){let t=e.sigtermGraceMs??te,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>w(e));return async()=>{try{let i=e.readUiLock(),a=e.spawnedUiPid();if(i&&e.isAlive(i.pid)&&i.pid!==a)e.log?.info({pid:i.pid,port:i.port,spawnedUiPid:a},`idle-shutdown: ui.lock holder is not our spawned sibling — leaving it alone`);else if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function re(e){let{config:t,cwd:n,host:o}=e,s=e.skipAutoInit??!1,d=e.skipUiAutoSpawn??!1,f=e.idleThresholdMs??18e5,{existsSync:p,mkdirSync:m}=await import(`node:fs`),{basename:h,dirname:g}=await import(`node:path`),{bootServer:_,getLogger:v,isProcessAlive:y,readUiLock:b,resolveContentDir:x,resolveLockDir:S,waitForServerLockDrain:C}=await import(`./src-VjJUBnUL.mjs`),T=e.log??v(`start`),E=e.singleFile!==void 0,D=e.projectDir??n,O=E?r(e.singleFile).canonicalFilePath:void 0,k=O?g(O):void 0,A=O?h(O):void 0;if(!E){if(!s&&!i(n))throw new W(n);let t=process.env.OK_RECLAIM_DISABLE??null,r=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&T.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-ETOH7oQP.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-Dw-kyAe-.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-CgvYA2Tj.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let j=k??x(t,n);!E&&!p(j)&&(m(j,{recursive:!0}),T.info({contentDir:j},`Created content directory`));let M=null,N=null,P=async({lockDir:t})=>{if(M=G({uiLock:b(t),isAlive:y}),M.action===`spawn`&&!d)try{let r=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];N=K({lockDir:t,cwd:n,spawn:e.spawn,args:r}).pid??null,T.info({reason:M.reason,uiPort:e.uiPort},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else M.action===`skip`&&T.info({port:M.port,pid:M.pid},`UI already running at port ${M.port}`)},F=e.reactShellDistDir===void 0,I=c(),L=a();{let e=S(E?D:n),t=Date.now(),r=await C(e);r!==`no-drain`&&T.info({event:`start-waited-for-draining-predecessor`,outcome:r,waitedMs:Date.now()-t,drainLockDir:e},r===`released`?`[start] predecessor server finished draining — proceeding`:`[start] predecessor server still draining after wait — proceeding to collide`)}let R=await _({config:t,contentDir:j,projectDir:E?D:n,contentRoot:E?void 0:t.content.dir,port:e.port,host:o,quiet:!1,detectGh:l,tokenStore:I,embeddingsKeyStore:L,...E?{ephemeral:!0,singleDocRelPath:A,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],probeHarnessManagedMcpEntry:(e,t)=>u(e,t),attachUiSibling:F,idleShutdownMs:f,skipAutoInit:!0,...F?{spawnUiSiblingFn:P}:{},idleShutdownHandler:t=>{let n=$({readUiLock:()=>b(R.lockDir),spawnedUiPid:()=>N,isAlive:y,killPid:(e,t)=>{process.kill(e,t)},destroy:t,log:T});return ne(E?Q(n,D):n,{log:T,exit:e.idleExit})},log:T,...e.serveContentAssets===void 0?{}:{serveContentAssets:e.serveContentAssets},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});M||={action:`skip`,reason:`alive`,pid:0,port:0};let z=M,B=null;if(z.action===`skip`)B=z.port>0?z.port:null;else if(!d){let t=e.uiBindTimeoutMs??3e3;B=await Z({readUiLock:()=>b(R.lockDir),now:Date.now,sleep:e=>w(e),timeoutMs:t,pollIntervalMs:50}),B===null&&T.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:R.httpServer,destroy:R.destroy,lockDir:R.lockDir,contentDir:j,port:R.port,ready:R.ready,degraded:R.degraded,uiSpawnDecision:M,resolvedUiPort:B}}function ie(e){if(e===`browser`||e===`app`)return e;throw new o(`--mode must be 'browser' or 'app'`)}function ae(e){let t=Number.parseInt(e,10);if(Number.isNaN(t)||t<1||t>65535)throw new o(`--ui-port must be a port number between 1 and 65535`);return t}function oe(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function se(e){let t=[`Stopping OpenKnowledge…`,`Saving pending changes and releasing the server lock — this can take a few seconds.`];return e===`SIGINT`&&t.push(`Press Ctrl+C again to force quit.`),t}async function ce(e,t){let n=oe(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-5C76vSEs.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-BR7qZmj-.mjs`),c=process.cwd(),l=e;process.title=U(c);let u=H(t,process.env),f=t.port===void 0?void 0:Number(t.port),p=process.env.PORT?Number(process.env.PORT):void 0,m=t.uiPort===void 0?void 0:Number(t.uiPort),h=q(f,p,m);if(m!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./src-VjJUBnUL.mjs`);if(J(m,e(t(c)))){await X({cwd:c,uiPort:m});return}}let g;try{g=await re({config:l,cwd:c,host:u,port:h,...m===void 0?{}:{uiPort:m},...t.serveContentAssets===void 0?{}:{serveContentAssets:t.serveContentAssets},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{}})}catch(e){e instanceof W&&(console.error(o(e.message)),process.exit(1));let t=await import(`./src-VjJUBnUL.mjs`);if((e instanceof t.GitNotAvailableError||e instanceof t.GitTooOldError)&&process.exit(78),(e instanceof t.SingleFileNotFoundError||e instanceof t.SingleFileNotAFileError||e instanceof t.SingleFileNotMarkdownError)&&(console.error(o(e.message)),process.exit(1)),m!==void 0&&le(e,t)){await X({cwd:c,uiPort:m});return}let n=ue(e,c,t);n!==null&&(console.error(o(n)),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let _=!1,v=async e=>{if(_)return;_=!0;let[t,...n]=se(e);console.log(i(`\n${t}`));for(let e of n)console.log(a(` ${e}`));try{await g.destroy()}catch(e){console.error(`${o(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)};process.once(`SIGINT`,()=>{v(`SIGINT`)}),process.once(`SIGTERM`,()=>{v(`SIGTERM`)});let y=`http://${u}:${g.port}`,b=u===`0.0.0.0`||u===`::`?`http://0.0.0.0:${g.port}`:void 0,x=g.resolvedUiPort,S=x!==null&&x>0?`http://${u}:${x}`:y;console.log(r({name:`open-knowledge`,version:d,localUrl:S,apiUrl:S===y?void 0:y,networkUrl:b,nextSteps:[`Open the Editor URL in your browser to start editing.`]}));let C={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};g.ready.then(async()=>{if(g.degraded.length>0){console.log();for(let e of g.degraded){let t=C[e]??`${e} (check server logs for details)`;console.warn(` ${s(`⚠`)} ${s(e)}: ${a(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-D5VB75t8.mjs`);e(S)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function le(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function ue(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=h(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`OpenKnowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function de(e){return new s(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`--ui-port <port>`,`Pin the ok ui sibling to <port> and connect (not exit) if a server already runs here — the worktree-preview recipe path`,ae).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,ie).option(`--serve-content-assets`,`Serve content assets from this server (now the default; kept for compatibility)`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).option(`--single-file <path>`,`No-project ephemeral single-file mode: scope the server to one markdown file (git + MCP off)`).option(`--project-dir <dir>`,`Throwaway project root for --single-file (where ephemeral .ok/ state lives)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
1
+ import{L as e,P as t}from"./src-DTPLCYnP.mjs";import{Nr as n,a as r,in as i,xr as a}from"./src-BEaiZuXz.mjs";import{S as o,x as s}from"./write-project-skill-CMePkU0W.mjs";import{a as c,n as l,t as u}from"./acp-harness-probe-DAsiIrn7.mjs";import{n as d}from"./constants-hkGRiNzn.mjs";import{spawn as f}from"node:child_process";import{basename as p,dirname as m,join as h,win32 as g}from"node:path";import{closeSync as _,existsSync as v,mkdirSync as y,openSync as b,statSync as x}from"node:fs";import{homedir as S}from"node:os";import{rm as C}from"node:fs/promises";import{setTimeout as w}from"node:timers/promises";function T(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function E(e,t,r={}){let i=(r.spawn??f)(e,[...t],n({detached:!0,stdio:`ignore`,env:T(r.env??process.env)}));return i.unref(),i}const D=`OpenKnowledge.app`,O=`/Applications/${D}`;function k(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return x(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function A(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(j(e,O))return O;let t=h(e.homeDir??S(),`Applications`,D);return j(e,t)?t:null}function j(e,t){return M(e,h(t,`Contents`,`MacOS`,`OpenKnowledge`))}function M(e,t){try{let n=e.statSync(t);return n&&typeof n.isFile==`function`?n.isFile():!1}catch{return!1}}const N=[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`];function P(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&/\\OpenKnowledge\.exe$/i.test(e.execPath))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of N){let r=g.join(t,`Programs`,n,`OpenKnowledge.exe`);if(M(e,r))return r}return null}function F(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&e.execPath.endsWith(`/openknowledge`))return e.execPath;let t=`/opt/OpenKnowledge/openknowledge`;return M(e,t)?t:null}function I(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?A(e):e.platform===`win32`?P(e):F(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:!(e.isTTY===!0||e.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function L(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;if(n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),r===`darwin`){E(`open`,[`-b`,`com.inkeep.open-knowledge`],{spawn:e.spawn});return}let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}E(i,[],{spawn:e.spawn})}function R(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function z(e){return h(m(e),`..`,`Frameworks`,`OpenKnowledge Server.app`,`Contents`,`MacOS`,`OpenKnowledge Helper`)}const B=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function ee(e){if(e.platform!==`darwin`||!B.test(e.execPath))return null;let t=z(e.execPath);return e.exists(t)?t:null}function V(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??v,a=r[1];return a?{command:ee({execPath:t,platform:n,exists:i})??t,prefixArgs:[a]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(r)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function H(e,t){return e.host??t.HOST??`127.0.0.1`}function U(e){let t=p(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var W=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function G(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function K(t){v(t.lockDir)||y(t.lockDir,{recursive:!0});let n=b(h(t.lockDir,e),`w`),r=t.spawn??f,{PORT:i,...a}=process.env,o=V();try{let e=r(o.command,[...o.prefixArgs,...t.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,n],windowsHide:!0,cwd:t.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return e.unref(),e}finally{try{_(n)}catch{}}}function q(e,t,n){return e??(n===void 0?t:void 0)}function J(e,t){return e!==void 0&&t!==null&&t.port>0&&t.draining!==!0}function Y(e,t,n){return e??+(t!=null&&!n)}async function X(e){let t=e.spawn??f,n=V(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,windowsHide:!0,env:{...i,ELECTRON_RUN_AS_NODE:`1`}}),o=!1,s=e=>{o=!0;try{a.kill(e)}catch{}},c=()=>s(`SIGINT`),l=()=>s(`SIGTERM`);process.once(`SIGINT`,c),process.once(`SIGTERM`,l),await new Promise(e=>{a.on(`exit`,(t,n)=>{process.exitCode=Y(t,n,o),e()}),a.on(`error`,t=>{console.error(`[start] connect fallback: failed to spawn ok ui — ${t instanceof Error?t.message:String(t)}`),process.exitCode=1,e()})}),process.removeListener(`SIGINT`,c),process.removeListener(`SIGTERM`,l)}async function Z(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const te=t;function Q(e,t,n=e=>C(e,{recursive:!0,force:!0})){return async()=>{try{await e()}finally{try{await n(t)}catch(e){process.stderr.write(`[start] ephemeral temp dir reap failed for ${t}: ${e instanceof Error?e.message:String(e)}\n`)}}}}function ne(e,t={}){let n=t.exit??(e=>process.exit(e)),r=t.getActiveHandles??(()=>{let e=process._getActiveHandles;return e?e.call(process):null});return async()=>{let i=!1;try{await e()}catch(e){i=!0,t.log?.error({err:e},`idle-shutdown: destroy failed — exiting anyway`)}finally{let e=null;try{let t=r();if(t!==null){e={};for(let n of t){let t=n?.constructor?.name??`unknown`;e[t]=(e[t]??0)+1}}}catch{e=null}t.log?.info({event:`idle-shutdown-exit`,exitCode:+!!i,openHandles:e??{},handlesAvailable:e!==null},`idle-shutdown: teardown finished — exiting process`),n(+!!i)}}}function $(e){let t=e.sigtermGraceMs??te,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>w(e));return async()=>{try{let i=e.readUiLock(),a=e.spawnedUiPid();if(i&&e.isAlive(i.pid)&&i.pid!==a)e.log?.info({pid:i.pid,port:i.port,spawnedUiPid:a},`idle-shutdown: ui.lock holder is not our spawned sibling — leaving it alone`);else if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function re(e){let{config:t,cwd:n,host:o}=e,s=e.skipAutoInit??!1,d=e.skipUiAutoSpawn??!1,f=e.idleThresholdMs??18e5,{existsSync:p,mkdirSync:m}=await import(`node:fs`),{basename:h,dirname:g}=await import(`node:path`),{bootServer:_,getLogger:v,isProcessAlive:y,readUiLock:b,resolveContentDir:x,resolveLockDir:S,waitForServerLockDrain:C}=await import(`./src-C4MRpQ6i.mjs`),T=e.log??v(`start`),E=e.singleFile!==void 0,D=e.projectDir??n,O=E?r(e.singleFile).canonicalFilePath:void 0,k=O?g(O):void 0,A=O?h(O):void 0;if(!E){if(!s&&!i(n))throw new W(n);let t=process.env.OK_RECLAIM_DISABLE??null,r=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&T.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-DrNSiysY.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-DVVkRMCr.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-pY9FxlXw.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){T.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let j=k??x(t,n);!E&&!p(j)&&(m(j,{recursive:!0}),T.info({contentDir:j},`Created content directory`));let M=null,N=null,P=async({lockDir:t})=>{if(M=G({uiLock:b(t),isAlive:y}),M.action===`spawn`&&!d)try{let r=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];N=K({lockDir:t,cwd:n,spawn:e.spawn,args:r}).pid??null,T.info({reason:M.reason,uiPort:e.uiPort},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else M.action===`skip`&&T.info({port:M.port,pid:M.pid},`UI already running at port ${M.port}`)},F=e.reactShellDistDir===void 0,I=c(),L=a();{let e=S(E?D:n),t=Date.now(),r=await C(e);r!==`no-drain`&&T.info({event:`start-waited-for-draining-predecessor`,outcome:r,waitedMs:Date.now()-t,drainLockDir:e},r===`released`?`[start] predecessor server finished draining — proceeding`:`[start] predecessor server still draining after wait — proceeding to collide`)}let R=await _({config:t,contentDir:j,projectDir:E?D:n,contentRoot:E?void 0:t.content.dir,port:e.port,host:o,quiet:!1,detectGh:l,tokenStore:I,embeddingsKeyStore:L,...E?{ephemeral:!0,singleDocRelPath:A,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],probeHarnessManagedMcpEntry:(e,t)=>u(e,t),attachUiSibling:F,idleShutdownMs:f,skipAutoInit:!0,...F?{spawnUiSiblingFn:P}:{},idleShutdownHandler:t=>{let n=$({readUiLock:()=>b(R.lockDir),spawnedUiPid:()=>N,isAlive:y,killPid:(e,t)=>{process.kill(e,t)},destroy:t,log:T});return ne(E?Q(n,D):n,{log:T,exit:e.idleExit})},log:T,...e.serveContentAssets===void 0?{}:{serveContentAssets:e.serveContentAssets},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});M||={action:`skip`,reason:`alive`,pid:0,port:0};let z=M,B=null;if(z.action===`skip`)B=z.port>0?z.port:null;else if(!d){let t=e.uiBindTimeoutMs??3e3;B=await Z({readUiLock:()=>b(R.lockDir),now:Date.now,sleep:e=>w(e),timeoutMs:t,pollIntervalMs:50}),B===null&&T.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:R.httpServer,destroy:R.destroy,lockDir:R.lockDir,contentDir:j,port:R.port,ready:R.ready,degraded:R.degraded,uiSpawnDecision:M,resolvedUiPort:B}}function ie(e){if(e===`browser`||e===`app`)return e;throw new o(`--mode must be 'browser' or 'app'`)}function ae(e){let t=Number.parseInt(e,10);if(Number.isNaN(t)||t<1||t>65535)throw new o(`--ui-port must be a port number between 1 and 65535`);return t}function oe(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function se(e){let t=[`Stopping OpenKnowledge…`,`Saving pending changes and releasing the server lock — this can take a few seconds.`];return e===`SIGINT`&&t.push(`Press Ctrl+C again to force quit.`),t}async function ce(e,t){let n=oe(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-_FQsQkvC.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-CUOU_72x.mjs`),c=process.cwd(),l=e;process.title=U(c);let u=H(t,process.env),f=t.port===void 0?void 0:Number(t.port),p=process.env.PORT?Number(process.env.PORT):void 0,m=t.uiPort===void 0?void 0:Number(t.uiPort),h=q(f,p,m);if(m!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./src-C4MRpQ6i.mjs`);if(J(m,e(t(c)))){await X({cwd:c,uiPort:m});return}}let g;try{g=await re({config:l,cwd:c,host:u,port:h,...m===void 0?{}:{uiPort:m},...t.serveContentAssets===void 0?{}:{serveContentAssets:t.serveContentAssets},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{}})}catch(e){e instanceof W&&(console.error(o(e.message)),process.exit(1));let t=await import(`./src-C4MRpQ6i.mjs`);if((e instanceof t.GitNotAvailableError||e instanceof t.GitTooOldError)&&process.exit(78),(e instanceof t.SingleFileNotFoundError||e instanceof t.SingleFileNotAFileError||e instanceof t.SingleFileNotMarkdownError)&&(console.error(o(e.message)),process.exit(1)),m!==void 0&&le(e,t)){await X({cwd:c,uiPort:m});return}let n=ue(e,c,t);n!==null&&(console.error(o(n)),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let _=!1,v=async e=>{if(_)return;_=!0;let[t,...n]=se(e);console.log(i(`\n${t}`));for(let e of n)console.log(a(` ${e}`));try{await g.destroy()}catch(e){console.error(`${o(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)};process.once(`SIGINT`,()=>{v(`SIGINT`)}),process.once(`SIGTERM`,()=>{v(`SIGTERM`)});let y=`http://${u}:${g.port}`,b=u===`0.0.0.0`||u===`::`?`http://0.0.0.0:${g.port}`:void 0,x=g.resolvedUiPort,S=x!==null&&x>0?`http://${u}:${x}`:y;console.log(r({name:`open-knowledge`,version:d,localUrl:S,apiUrl:S===y?void 0:y,networkUrl:b,nextSteps:[`Open the Editor URL in your browser to start editing.`]}));let C={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};g.ready.then(async()=>{if(g.degraded.length>0){console.log();for(let e of g.degraded){let t=C[e]??`${e} (check server logs for details)`;console.warn(` ${s(`⚠`)} ${s(e)}: ${a(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-DwZulh9C.mjs`);e(S)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function le(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function ue(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=h(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`OpenKnowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function de(e){return new s(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`--ui-port <port>`,`Pin the ok ui sibling to <port> and connect (not exit) if a server already runs here — the worktree-preview recipe path`,ae).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,ie).option(`--serve-content-assets`,`Serve content assets from this server (now the default; kept for compatibility)`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).option(`--single-file <path>`,`No-project ephemeral single-file mode: scope the server to one markdown file (git + MCP off)`).option(`--project-dir <dir>`,`Throwaway project root for --single-file (where ephemeral .ok/ state lives)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
2
2
  `),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.uiPort!==void 0&&e.push(`--ui-port`),t.host!==void 0&&e.push(`--host`),e.length>0){let t=process.env.OK_LOG_LEVEL??`info`;(t===`debug`||t===`trace`)&&console.error(`--mode=app: ignoring ${e.join(`, `)}`)}let n=I(k());if(n.available){L({spawn:f},n);return}console.error(R(n.reason)),process.exit(1)}await ce(n,t)})}export{I as C,k as S,E as T,de as _,Y as a,ne as b,U as c,q as d,H as f,K as g,J as h,$ as i,se as l,ce as m,Z as n,X as o,oe as p,re as r,G as s,W as t,le as u,ue as v,L as w,V as x,Q as y};
3
- //# sourceMappingURL=start-B3sAyodP.mjs.map
3
+ //# sourceMappingURL=start-Ditv69eU.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-q-dGnwlc.mjs";import{t as e}from"./chunk-5QVNJEHU-0Om-Hby0.mjs";export{e as statCommand};
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-BBlcLUFu.mjs";import{m as t,p as n}from"./src-82KBw76I.mjs";import{O as r,c as i,s as a,x as o}from"./chunk-WYO6CB5R-DqktMY2P.mjs";import{et as s,g as c}from"./chunk-ICXQ74PX-Cr0dJaYf.mjs";import{t as l}from"./line-KDMlFQmk.mjs";import"./chunk-HOUHSVGY-D822oa3I.mjs";import"./chunk-Q4XR5HBZ-38YXyWmU.mjs";import"./chunk-7BUUIJ7U-fAmGLgX5.mjs";import"./chunk-OGEWGWER-DcbEeYCc.mjs";import{t as u}from"./graphlib-yfSiy6Um.mjs";import{t as d}from"./dagre-BRDgQm9s.mjs";import"./chunk-32BRIVSS-Bbzg5lXo.mjs";import"./chunk-XXDRQBXY-DgBFT4Pj.mjs";import"./chunk-VR4S4FIN-jf24rhVx.mjs";import"./chunk-C7G6YPKG-B1crnvB0.mjs";import"./chunk-ZGVPDNZ5-0A2bH77_.mjs";import"./chunk-52WLFC77-CSTEN0ni.mjs";import"./chunk-FWX5IMBZ-CLMJveA0.mjs";import{i as f,n as p,t as m}from"./chunk-EX3LRPZG-Dk9gva6E.mjs";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit).attr(`cy`,o().state.padding+o().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,o().state.textHeight).attr(`class`,`divider`).attr(`x2`,o().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+2*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,r.width+2*o().state.padding).attr(`height`,r.height+2*o().state.padding).attr(`rx`,o().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*o().state.padding).text(t);n||r.attr(`dy`,o().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+1.3*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,s=t.append(`text`).attr(`x`,o().state.padding).attr(`y`,a+o().state.padding*.4+o().state.dividerMargin+o().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,o().state.padding).attr(`y1`,o().state.padding+a+o().state.dividerMargin/2).attr(`y2`,o().state.padding+a+o().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*o().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,f+2*o().state.padding).attr(`height`,d.height+a+2*o().state.padding).attr(`rx`,o().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=o().state.padding,i=2*o().state.padding,a=e.node().getBBox(),s=a.width,c=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,o().state.titleShift).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)<r&&u>s&&(f=c-(u-s)/2);let m=1-o().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+o().state.textHeight+o().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,o().state.textHeight*3).attr(`rx`,o().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*o().state.textHeight).attr(`rx`,o().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,o().state.sizeUnit+o().state.miniPadding).attr(`cx`,o().state.padding+o().state.sizeUnit+o().state.miniPadding).attr(`cy`,o().state.padding+o().state.sizeUnit+o().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit+2).attr(`cy`,o().state.padding+o().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=o().state.forkWidth,r=o().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,o().state.padding).attr(`y`,o().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let i=0,s=r.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(a.lineBreakRegex),u=1.25*o().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=s.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+o().state.noteMargin),e.attr(`y`,n+i+1.25*o().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:i}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,o().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*o().state.noteMargin),n.attr(`width`,r+o().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type===`default`&&t.descriptions.length===0&&_(i,t),t.type===`default`&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*o().state.padding,r.height=a.height+2*o().state.padding,r},`drawState`),T=0,E=e(function(n,i,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);i.points=i.points.filter(e=>!Number.isNaN(e.y));let f=i.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(o().state.arrowMarkerAbsolute&&(g=r(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:r,y:s}=c.calcLabelPosition(i.points),l=a.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=l.length;n++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[n]).attr(`x`,r).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,r,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,r-p/2-o().state.padding/2).attr(`y`,s-h/2-o().state.padding/2-3.5).attr(`width`,p+o().state.padding).attr(`height`,h+o().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,r,a,s){D=o().state;let c=o().securityLevel,l;c===`sandbox`&&(l=n(`#i`+r));let u=n(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${r}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,r+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;i(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,i,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let a;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);a=N(t.doc,e,t.id,!i,o,s,c);{e=y(e,t,i);let n=e.node().getBBox();a.width=n.width,a.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else a=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(a.id+`-note`,e),l.setNode(a.id,a)):(l.setNode(a.id,a),l.setNode(a.id+`-note`,e)),l.setParent(a.id,a.id+`-group`),l.setParent(a.id+`-note`,a.id+`-group`)}else l.setNode(a.id,a)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*a.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
2
- //# sourceMappingURL=stateDiagram-2N3HPSRC-CbMgPxbr.mjs.map
1
+ import{n as e}from"./chunk-Y2CYZVJY-D-AxePDr.mjs";import{m as t,p as n}from"./src-nvx4LAFk.mjs";import{O as r,c as i,s as a,x as o}from"./chunk-WYO6CB5R-Bu0g7bu2.mjs";import{et as s,g as c}from"./chunk-ICXQ74PX-BVMOo_rh.mjs";import{t as l}from"./line-Bq-Bigdz.mjs";import"./chunk-HOUHSVGY-DEVfwHxJ.mjs";import"./chunk-Q4XR5HBZ-CQiRMQNx.mjs";import"./chunk-7BUUIJ7U-CKtuqKC6.mjs";import"./chunk-OGEWGWER-Diyk7J65.mjs";import{t as u}from"./graphlib-BRVRb9Ce.mjs";import{t as d}from"./dagre-CTeiWCGh.mjs";import"./chunk-32BRIVSS-DYHXEarP.mjs";import"./chunk-XXDRQBXY-ClPfCVft.mjs";import"./chunk-VR4S4FIN-ClMSUBWQ.mjs";import"./chunk-C7G6YPKG-Bd7km2QU.mjs";import"./chunk-ZGVPDNZ5-DSVV_BiI.mjs";import"./chunk-52WLFC77-DH1KQBRY.mjs";import"./chunk-FWX5IMBZ-BAa0doOI.mjs";import{i as f,n as p,t as m}from"./chunk-EX3LRPZG-BMWHPlJp.mjs";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit).attr(`cy`,o().state.padding+o().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,o().state.textHeight).attr(`class`,`divider`).attr(`x2`,o().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+2*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,r.width+2*o().state.padding).attr(`height`,r.height+2*o().state.padding).attr(`rx`,o().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*o().state.padding).text(t);n||r.attr(`dy`,o().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*o().state.padding).attr(`y`,o().state.textHeight+1.3*o().state.padding).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,s=t.append(`text`).attr(`x`,o().state.padding).attr(`y`,a+o().state.padding*.4+o().state.dividerMargin+o().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,o().state.padding).attr(`y1`,o().state.padding+a+o().state.dividerMargin/2).attr(`y2`,o().state.padding+a+o().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*o().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,o().state.padding).attr(`y`,o().state.padding).attr(`width`,f+2*o().state.padding).attr(`height`,d.height+a+2*o().state.padding).attr(`rx`,o().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=o().state.padding,i=2*o().state.padding,a=e.node().getBBox(),s=a.width,c=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,o().state.titleShift).attr(`font-size`,o().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)<r&&u>s&&(f=c-(u-s)/2);let m=1-o().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+o().state.textHeight+o().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,o().state.textHeight*3).attr(`rx`,o().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,o().state.titleShift-o().state.textHeight-o().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*o().state.textHeight).attr(`rx`,o().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,o().state.sizeUnit+o().state.miniPadding).attr(`cx`,o().state.padding+o().state.sizeUnit+o().state.miniPadding).attr(`cy`,o().state.padding+o().state.sizeUnit+o().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,o().state.sizeUnit).attr(`cx`,o().state.padding+o().state.sizeUnit+2).attr(`cy`,o().state.padding+o().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=o().state.forkWidth,r=o().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,o().state.padding).attr(`y`,o().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let i=0,s=r.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(a.lineBreakRegex),u=1.25*o().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=s.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}i+=u,e.attr(`x`,t+o().state.noteMargin),e.attr(`y`,n+i+1.25*o().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:i}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,o().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*o().state.noteMargin),n.attr(`width`,r+o().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type===`default`&&t.descriptions.length===0&&_(i,t),t.type===`default`&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*o().state.padding,r.height=a.height+2*o().state.padding,r},`drawState`),T=0,E=e(function(n,i,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);i.points=i.points.filter(e=>!Number.isNaN(e.y));let f=i.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(o().state.arrowMarkerAbsolute&&(g=r(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:r,y:s}=c.calcLabelPosition(i.points),l=a.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=l.length;n++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[n]).attr(`x`,r).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,r,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,r-p/2-o().state.padding/2).attr(`y`,s-h/2-o().state.padding/2-3.5).attr(`width`,p+o().state.padding).attr(`height`,h+o().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,r,a,s){D=o().state;let c=o().securityLevel,l;c===`sandbox`&&(l=n(`#i`+r));let u=n(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${r}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,r+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;i(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,i,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let a;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);a=N(t.doc,e,t.id,!i,o,s,c);{e=y(e,t,i);let n=e.node().getBBox();a.width=n.width,a.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else a=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(a.id+`-note`,e),l.setNode(a.id,a)):(l.setNode(a.id,a),l.setNode(a.id+`-note`,e)),l.setParent(a.id,a.id+`-group`),l.setParent(a.id+`-note`,a.id+`-group`)}else l.setNode(a.id,a)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*a.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
2
+ //# sourceMappingURL=stateDiagram-2N3HPSRC-C_tdGYXg.mjs.map
@@ -0,0 +1,2 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-D-AxePDr.mjs";import"./src-nvx4LAFk.mjs";import"./chunk-WYO6CB5R-Bu0g7bu2.mjs";import"./chunk-ICXQ74PX-BVMOo_rh.mjs";import"./chunk-HOUHSVGY-DEVfwHxJ.mjs";import"./chunk-Q4XR5HBZ-CQiRMQNx.mjs";import"./chunk-7BUUIJ7U-CKtuqKC6.mjs";import"./chunk-OGEWGWER-Diyk7J65.mjs";import"./chunk-32BRIVSS-DYHXEarP.mjs";import"./chunk-XXDRQBXY-ClPfCVft.mjs";import"./chunk-VR4S4FIN-ClMSUBWQ.mjs";import"./chunk-C7G6YPKG-Bd7km2QU.mjs";import"./chunk-ZGVPDNZ5-DSVV_BiI.mjs";import"./chunk-52WLFC77-DH1KQBRY.mjs";import"./chunk-FWX5IMBZ-BAa0doOI.mjs";import{i as t,n,r,t as i}from"./chunk-EX3LRPZG-BMWHPlJp.mjs";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
2
+ //# sourceMappingURL=stateDiagram-v2-6OUMAXLB-B9_dtBI0.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-q-dGnwlc.mjs";import{n as e}from"./chunk-VYOJP4TV-Dv2fFnVt.mjs";export{e as strings};