@inkeep/open-knowledge 0.68.13-beta.2 → 0.68.13-beta.3

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 (1173) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +0 -30
  2. package/dist/acp-harness-probe-jbdDqGPW.mjs +7 -0
  3. package/dist/cli.mjs +6 -6
  4. package/dist/constants-BzW8pUi7.mjs +2 -0
  5. package/dist/index.mjs +1 -1
  6. package/dist/init-BWXre4BR.mjs +640 -0
  7. package/dist/init-Crpd2QC1.mjs +1 -0
  8. package/dist/launch-json-removal-BMA_QJCd.mjs +2 -0
  9. package/dist/loader-95y6x-33.mjs +1 -0
  10. package/dist/loader-CmLUBgfv.mjs +2 -0
  11. package/dist/preview-BvVhaQ-2.mjs +1 -0
  12. package/dist/preview-DE1TCQIP.mjs +3 -0
  13. package/dist/public/assets/ActivityModeContent-DnCKtWSG.js +1 -0
  14. package/dist/public/assets/ActivityPanelDiffView-CTUtnjbZ.js +1 -0
  15. package/dist/public/assets/AddPropertiesButton-CDA2j2Y1.js +2 -0
  16. package/dist/public/assets/AgentDiffPane-BYyxGycm.js +2 -0
  17. package/dist/public/assets/AgentThreadClientBinder-Dl6DrVRw.js +1 -0
  18. package/dist/public/assets/AppMenubar-ER9jbIdm.js +1 -0
  19. package/dist/public/assets/BugReportHistory-BQ0zPPmq.js +1 -0
  20. package/dist/public/assets/BugReportHistoryDialog-EPg1BEpj.js +1 -0
  21. package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-B3xXq6-C.js +1 -0
  22. package/dist/public/assets/CodeMirrorPropInput-CbmHDRfj.js +3 -0
  23. package/dist/public/assets/ConfigSharingInfoTooltip-CroYwQwo.js +1 -0
  24. package/dist/public/assets/ConsentDialogBody-DqYoP9Ov.js +2 -0
  25. package/dist/public/assets/DiffViewBoundary-CCxREiaI.js +29 -0
  26. package/dist/public/assets/DocumentContext-BrIcGv7R.js +38 -0
  27. package/dist/public/assets/EditorModeToggle-CNXw6s0t.js +1 -0
  28. package/dist/public/assets/EnableSyncConfirmDialog-g4tMIwA9.js +1 -0
  29. package/dist/public/assets/ExcalidrawDocEditor-BP9e_lD9.js +1 -0
  30. package/dist/public/assets/FeedbackForm-BNJW9E_V.js +1 -0
  31. package/dist/public/assets/GraphPanel-Chl4H55T.js +44 -0
  32. package/dist/public/assets/ImportSkillDialog-C9_uih5E.js +1 -0
  33. package/dist/public/assets/LintConfigEditor-CISjv57i.js +1 -0
  34. package/dist/public/assets/ManagedArtifactProperties-Bg87oW32.js +1 -0
  35. package/dist/public/assets/ManagedArtifactProperties-DtrjhCqY.js +1 -0
  36. package/dist/public/assets/McpConsentDialogBody-DvSfRGCG.js +1 -0
  37. package/dist/public/assets/Mermaid-CD05N-vC.js +2 -0
  38. package/dist/public/assets/MermaidDocEditor-B84VSrym.js +1 -0
  39. package/dist/public/assets/MultiFileDiff-CIOfeure.js +1 -0
  40. package/dist/public/assets/PropertyDisplayRow-CWh9X5_E.js +2 -0
  41. package/dist/public/assets/RegisteredAgentIcon-Bmmb04Fy.js +1 -0
  42. package/dist/public/assets/ReportBugDialogBody-db4lwoPn.js +3 -0
  43. package/dist/public/assets/ReportBugMenuTrigger-CvaFcgeF.js +2 -0
  44. package/dist/public/assets/RowDisclosure-DIFddIWB.js +1 -0
  45. package/dist/public/assets/SchemaConfigEditor-DAc7jmtL.js +1 -0
  46. package/dist/public/assets/SessionsHost-Cb5C_9Wq.js +2 -0
  47. package/dist/public/assets/SettingsDialogBody-75XRmCeA.js +12 -0
  48. package/dist/public/assets/ShareBranchSwitchDialog-B1d7KHeS.js +1 -0
  49. package/dist/public/assets/ShareReceiveDialog-DTWJgwIF.js +1 -0
  50. package/dist/public/assets/ShareReceiveMissDialog-BIIPUlQ7.js +1 -0
  51. package/dist/public/assets/SkillCostValue-Cz1-rCzt.js +1 -0
  52. package/dist/public/assets/SkillEditBanner-CrXUvXsD.js +1 -0
  53. package/dist/public/assets/SkillForkDialog-DtgAZM98.js +1 -0
  54. package/dist/public/assets/SkillInstallMenu-EZWCQ3PM.js +2 -0
  55. package/dist/public/assets/SkillOriginInline-Bv5uzdg1.js +2 -0
  56. package/dist/public/assets/SkillToolbarControls-CNcsuSXm.js +1 -0
  57. package/dist/public/assets/SkillUpdateConflictDialog-eInjmBbu.js +1 -0
  58. package/dist/public/assets/SlidesToolbarControls-CAgjSbq5.js +1 -0
  59. package/dist/public/assets/SourceEditor-RNZasKN4.js +1 -0
  60. package/dist/public/assets/TerminalPanel-DQijh7pw.js +146 -0
  61. package/dist/public/assets/TerminalStartingNotice-DTGVBDWh.js +1 -0
  62. package/dist/public/assets/TerminalWindowApp-4wCA4EPJ.js +1 -0
  63. package/dist/public/assets/TextDocEditor-BINyBR5R.js +1 -0
  64. package/dist/public/assets/ThemePicker-CpGgcsFQ.js +1 -0
  65. package/dist/public/assets/ThreadView-UzqbGKq8.js +15 -0
  66. package/dist/public/assets/TimelineDiffPane-D0yDPoih.js +2 -0
  67. package/dist/public/assets/abnfDiagram-N423BO3Z-rTlovrtv.js +1 -0
  68. package/dist/public/assets/agent-diff-store-BtYz6Ile.js +1 -0
  69. package/dist/public/assets/alert-dialog-Btd1iU_X.js +7 -0
  70. package/dist/public/assets/angular-html-CpWahIe2.js +1 -0
  71. package/dist/public/assets/angular-ts-LR1w0MPw.js +1 -0
  72. package/dist/public/assets/apl-BAlHxRfg.js +1 -0
  73. package/dist/public/assets/ar-SA-PQUY64WN-BR_YkjlD.js +10 -0
  74. package/dist/public/assets/arc-BJeGP5Id.js +1 -0
  75. package/dist/public/assets/architecture-TIHT7OUA-oH3kK-je.js +1 -0
  76. package/dist/public/assets/architectureDiagram-T3A2C74G-CO_R4XPs.js +36 -0
  77. package/dist/public/assets/arrow-up-right-B3B9a7te.js +1 -0
  78. package/dist/public/assets/astro-y2vI8If5.js +1 -0
  79. package/dist/public/assets/auth-state-cache-wlavx9ke.js +11 -0
  80. package/dist/public/assets/az-AZ-OXJXL76K-DdU0cSEQ.js +1 -0
  81. package/dist/public/assets/bg-BG-W2GKIJDF-DVrczGOR.js +5 -0
  82. package/dist/public/assets/blade-CMVctMSa.js +1 -0
  83. package/dist/public/assets/blockDiagram-VBNYF7ZC-DIIeLDga.js +132 -0
  84. package/dist/public/assets/bn-BD-TGL7M4PJ-QbWd9fa7.js +3 -0
  85. package/dist/public/assets/bn-IN-BKETKYEH-_7I4Oi4O.js +3 -0
  86. package/dist/public/assets/braces-OM56BU1Y.js +1 -0
  87. package/dist/public/assets/bsl-D502Letj.js +1 -0
  88. package/dist/public/assets/bug-report-send-manager-CMQtFhGG.js +1 -0
  89. package/dist/public/assets/c4Diagram-5PPSVZJV-BhQyRuBy.js +10 -0
  90. package/dist/public/assets/ca-ES-LD5SCRVV-BI9qvhEd.js +8 -0
  91. package/dist/public/assets/cairo-C_OWsuqS.js +1 -0
  92. package/dist/public/assets/calendar-DnF-DwdK.js +1 -0
  93. package/dist/public/assets/case-sensitive-B01mpdhT.js +1 -0
  94. package/dist/public/assets/channel-EPUMIll7.js +1 -0
  95. package/dist/public/assets/check-BzfGb3KU.js +1 -0
  96. package/dist/public/assets/checkbox-Crs_F_Np.js +1 -0
  97. package/dist/public/assets/chevron-down-Dloks0wp.js +1 -0
  98. package/dist/public/assets/chevron-left-BTZYHMSf.js +1 -0
  99. package/dist/public/assets/chevron-right-C-g4JuT4.js +1 -0
  100. package/dist/public/assets/chunk-2GRJ4B5K-BjpckW9J.js +1 -0
  101. package/dist/public/assets/chunk-2Q5K7J3B-BWVLt0_c.js +1 -0
  102. package/dist/public/assets/chunk-3NCLNEKW-BOxaTfWm.js +1 -0
  103. package/dist/public/assets/chunk-4I5QYGJK-RglgwxDI.js +1 -0
  104. package/dist/public/assets/chunk-5FCAYU7R-0jW3-SE3.js +1 -0
  105. package/dist/public/assets/chunk-5HE753X5-BwjcaxSu.js +1 -0
  106. package/dist/public/assets/chunk-5JV3BV7I-B-7GD1Sn.js +1 -0
  107. package/dist/public/assets/chunk-5RXB4S5H-BOWBuUIp.js +231 -0
  108. package/dist/public/assets/chunk-5TONJI2A-cIMO7DYk.js +2 -0
  109. package/dist/public/assets/chunk-5VM5RSS4-BGs8Q32P.js +15 -0
  110. package/dist/public/assets/chunk-6Q2QTUOP-cS7kPHQP.js +88 -0
  111. package/dist/public/assets/chunk-7BUUIJ7U-Bwfh2YpK.js +1 -0
  112. package/dist/public/assets/chunk-7Z6QIM7H-CG6D_gUU.js +10 -0
  113. package/dist/public/assets/chunk-BIQX33UG-mz5pqtvV.js +1 -0
  114. package/dist/public/assets/chunk-BO2N2NFS-rzfSAm3J.js +103 -0
  115. package/dist/public/assets/chunk-CQNSW5MT-_V5X6Nf8.js +1 -0
  116. package/dist/public/assets/chunk-CYSBUYHQ-BOHcrIUH.js +1 -0
  117. package/dist/public/assets/chunk-EMLP6XTP-BBrMTemy.js +1 -0
  118. package/dist/public/assets/chunk-GF5L2VYU-DT_GEgNe.js +206 -0
  119. package/dist/public/assets/chunk-I66GZJ75-p0lCkcBy.js +127 -0
  120. package/dist/public/assets/chunk-J7OUQ5F2-BAqeqtUZ.js +2 -0
  121. package/dist/public/assets/chunk-JG7HCLWE-Qvf7OPGd.js +2 -0
  122. package/dist/public/assets/chunk-JQJVKLGR-VaDBFLWp.js +156 -0
  123. package/dist/public/assets/chunk-JWPE2WC7-Bzrtz3NM.js +1 -0
  124. package/dist/public/assets/chunk-KBJHAD2P-DncnAunp.js +1 -0
  125. package/dist/public/assets/chunk-MOZMSUNE-BsLGWyhu.js +1 -0
  126. package/dist/public/assets/chunk-NSK5VX7P-Ba9RzBtR.js +2 -0
  127. package/dist/public/assets/chunk-OSBZ3O6U-cvBHm6tP.js +1 -0
  128. package/dist/public/assets/chunk-QBLGF6JB-4QETiiBP.js +1 -0
  129. package/dist/public/assets/chunk-QR6OTTB3-CxYtNJpf.js +62 -0
  130. package/dist/public/assets/chunk-R7FJI6CG-G9NZYWFG.js +1 -0
  131. package/dist/public/assets/chunk-RM4UPSZO-CYwcv0SE.js +35 -0
  132. package/dist/public/assets/chunk-RYQCIY6F-Cacs-qLH.js +1 -0
  133. package/dist/public/assets/chunk-U6XO7XAA-DRtxLuau.js +2 -0
  134. package/dist/public/assets/chunk-UBXNYLIW-BvTTtXmZ.js +1 -0
  135. package/dist/public/assets/chunk-W5SLKNZC-C44Ol5gV.js +1 -0
  136. package/dist/public/assets/chunk-WRU74C26-DshdKuhn.js +70 -0
  137. package/dist/public/assets/chunk-XXDRQBXY-CLP2luod.js +1 -0
  138. package/dist/public/assets/chunk-YOTPTUD7-BCRwSHpa.js +1 -0
  139. package/dist/public/assets/chunk-Z5NKEFVG-oqZ4lgj-.js +22 -0
  140. package/dist/public/assets/chunk-ZIRB5QZD-DemeYBcr.js +32 -0
  141. package/dist/public/assets/circle-alert-Czw40trT.js +1 -0
  142. package/dist/public/assets/classDiagram-JCYQIIEL-CJdhudQi.js +1 -0
  143. package/dist/public/assets/classDiagram-v2-OCEON4UE-CJghFiXv.js +1 -0
  144. package/dist/public/assets/cm-theme-Cr3L_kQp.js +1 -0
  145. package/dist/public/assets/cobol-DC58QVHc.js +1 -0
  146. package/dist/public/assets/code-highlighter-impl-BAS_5Jie.js +1 -0
  147. package/dist/public/assets/coffee-89kF59hM.js +1 -0
  148. package/dist/public/assets/comment-chips-KmCgzWlZ.js +5 -0
  149. package/dist/public/assets/config-provider-DGkfdm_X.js +5 -0
  150. package/dist/public/assets/cose-bilkent-JH36ORCC-5He5AOwC.js +1 -0
  151. package/dist/public/assets/cpp-CID5sVG9.js +1 -0
  152. package/dist/public/assets/crystal-CNAo6rnI.js +1 -0
  153. package/dist/public/assets/cs-CZ-OFPU5DBV-BTOONzmp.js +7 -0
  154. package/dist/public/assets/cynefin-VYW2F7L2-GIKEESX6.js +1 -0
  155. package/dist/public/assets/cynefinDiagram-MW4NZA55-Buwih_GM.js +62 -0
  156. package/dist/public/assets/da-DK-FRDJFYWF-CoqUnvwt.js +2 -0
  157. package/dist/public/assets/dagre-DDZsMLn7.js +1 -0
  158. package/dist/public/assets/dagre-VZM6K2ZE-DgRUURxr.js +4 -0
  159. package/dist/public/assets/de-CH-ZG7H3QK3-DPfKBbjg.js +11 -0
  160. package/dist/public/assets/de-DE-SIJYH4IH-FTyPTcX0.js +11 -0
  161. package/dist/public/assets/diagram-7IWD3JNH-CqF99glD.js +30 -0
  162. package/dist/public/assets/diagram-B4RE2ZJO-DOgg8wEU.js +3 -0
  163. package/dist/public/assets/diagram-LBJQPF4R-POljtu08.js +24 -0
  164. package/dist/public/assets/diagram-Q27KOJAE-D64N_7ax.js +24 -0
  165. package/dist/public/assets/diagram-UB23O5K3-DCUnUXaE.js +41 -0
  166. package/dist/public/assets/dialog-BYTIciug.js +5 -0
  167. package/dist/public/assets/dist-0XGaQxoq.js +1 -0
  168. package/dist/public/assets/dist-BFr7XbPw.js +1 -0
  169. package/dist/public/assets/dist-BM6ALWQy.js +23 -0
  170. package/dist/public/assets/dist-BVh6KAg6.js +19 -0
  171. package/dist/public/assets/dist-Baby7q1O.js +1 -0
  172. package/dist/public/assets/dist-BauSyrbN2.js +2 -0
  173. package/dist/public/assets/dist-Bfv30lXk.js +9 -0
  174. package/dist/public/assets/dist-BkRU9Q58.js +1 -0
  175. package/dist/public/assets/dist-CO_DSERY.js +1 -0
  176. package/dist/public/assets/dist-CQP6rPA_.js +1 -0
  177. package/dist/public/assets/dist-CelXSm5E.js +1 -0
  178. package/dist/public/assets/dist-DJYz0ZVB.js +1 -0
  179. package/dist/public/assets/dist-DQrt7hNU.js +124 -0
  180. package/dist/public/assets/dist-Dbs41y7L.js +6 -0
  181. package/dist/public/assets/dist-Dy-4P9Q5.js +1 -0
  182. package/dist/public/assets/dist-yFrmqHNO2.js +1 -0
  183. package/dist/public/assets/doc-undo-manager-C2QQPgQY.js +1 -0
  184. package/dist/public/assets/dropdown-menu--ZF4igWe.js +1 -0
  185. package/dist/public/assets/ebnfDiagram-BXEA7PRR-C1_tR1lX.js +1 -0
  186. package/dist/public/assets/edge-DvAqYdJ6.js +1 -0
  187. package/dist/public/assets/el-GR-IEE2CGI2-DX3xwtMw.js +7 -0
  188. package/dist/public/assets/elixir-Cca9qCGl.js +1 -0
  189. package/dist/public/assets/elm-BKU3JIBm.js +1 -0
  190. package/dist/public/assets/en-SJ2YIMFF-CGkY05Ml.js +1 -0
  191. package/dist/public/assets/erDiagram-JOGREHBK-C7SZb9j8.js +85 -0
  192. package/dist/public/assets/erb-B7jGMtj6.js +1 -0
  193. package/dist/public/assets/erlang-CKONTomK.js +1 -0
  194. package/dist/public/assets/es-ES-TVVPWKV5-C1kXw_5G.js +12 -0
  195. package/dist/public/assets/eu-ES-CGBMFQDT-CiW2vfC9.js +8 -0
  196. package/dist/public/assets/eventmodeling-45OFAUF4-CRhFSlBf.js +1 -0
  197. package/dist/public/assets/eye-BtMXolFK.js +1 -0
  198. package/dist/public/assets/fa-IR-IE6XAPR4-B1RhBQHR.js +9 -0
  199. package/dist/public/assets/fi-FI-P7TKNHRM-9wGNXeQS.js +6 -0
  200. package/dist/public/assets/field-14dCSfQA.js +1 -0
  201. package/dist/public/assets/file-tree-adapter-EMwx7X03.js +1 -0
  202. package/dist/public/assets/flowDiagram-UKHOOZJN-3riKsbE3.js +1 -0
  203. package/dist/public/assets/folder-config-api-BQ62Hd5q.js +1 -0
  204. package/dist/public/assets/folder-open-dlosmFj2.js +1 -0
  205. package/dist/public/assets/fortran-fixed-form-BaX16Jcs.js +1 -0
  206. package/dist/public/assets/fr-FR-QI2XZNT7-BYVf85SH.js +12 -0
  207. package/dist/public/assets/fsharp-Blt9qCxu.js +1 -0
  208. package/dist/public/assets/ganttDiagram-PKOTCBZU-DiUblNGo.js +292 -0
  209. package/dist/public/assets/gdresource-BqlfpaDs.js +1 -0
  210. package/dist/public/assets/git-branch-B_QTfwFA.js +1 -0
  211. package/dist/public/assets/git-commit-B3kEdjgu.js +1 -0
  212. package/dist/public/assets/git-rebase-D-7xDi8Y.js +1 -0
  213. package/dist/public/assets/gitGraph-TEB2WS4Q-13-TMCTJ.js +1 -0
  214. package/dist/public/assets/gitGraphDiagram-DS77QQ5N-Yhs3HC23.js +106 -0
  215. package/dist/public/assets/gl-ES-TLYCNOZZ-CcqoXBLi.js +6 -0
  216. package/dist/public/assets/glimmer-js-ByVXFhi5.js +1 -0
  217. package/dist/public/assets/glimmer-ts-296B45US.js +1 -0
  218. package/dist/public/assets/globals-Bhr-n-Wy.css +1 -0
  219. package/dist/public/assets/glsl-BxZMXcpk.js +1 -0
  220. package/dist/public/assets/graphlib-DnHzN4jb.js +1 -0
  221. package/dist/public/assets/graphql-BhFxU1i4.js +1 -0
  222. package/dist/public/assets/hack-xZFVOEEr.js +1 -0
  223. package/dist/public/assets/haml-Ct0060PT.js +1 -0
  224. package/dist/public/assets/handlebars-BTBvdDJe.js +1 -0
  225. package/dist/public/assets/hash-d98LeeWB.js +1 -0
  226. package/dist/public/assets/he-IL-ZX43XLGP-Cn0rqAYT.js +9 -0
  227. package/dist/public/assets/hi-IN-UTYRMTUF-CFZ61Z-T.js +3 -0
  228. package/dist/public/assets/highlighted-body-OFNGDK62-B33kD1Zp.js +1 -0
  229. package/dist/public/assets/html-B2YAKT6v.js +1 -0
  230. package/dist/public/assets/html-derivative-CZAgVF4c.js +1 -0
  231. package/dist/public/assets/http-7z7_PcH4.js +1 -0
  232. package/dist/public/assets/hu-HU-AJOSEBW6-C3oq7yFh.js +3 -0
  233. package/dist/public/assets/hurl-0m9IiVOl.js +1 -0
  234. package/dist/public/assets/hxml-D_ncLxtV.js +1 -0
  235. package/dist/public/assets/i18n-Cdl0-EY2.js +1 -0
  236. package/dist/public/assets/id-ID-ETLTVG6C-P215k0Md.js +8 -0
  237. package/dist/public/assets/image-ZVKINSPA-jFAO4g89.js +1 -0
  238. package/dist/public/assets/index-DEFX_ecy.js +2204 -0
  239. package/dist/public/assets/info-CilGMBpP.js +1 -0
  240. package/dist/public/assets/info-DKCQHKI2-B-CZPA_-.js +1 -0
  241. package/dist/public/assets/infoDiagram-6WML65LV-Dp1RcvWr.js +2 -0
  242. package/dist/public/assets/input-group-BChLCb-V.js +1 -0
  243. package/dist/public/assets/ishikawaDiagram-WSZJBQD7-BoCEEIeg.js +70 -0
  244. package/dist/public/assets/it-IT-B4B6TP6L-8Stb9YIZ.js +12 -0
  245. package/dist/public/assets/ja-JP-IYKVURR5-D-qMN6wI.js +12 -0
  246. package/dist/public/assets/jinja-BdwRCxPE.js +1 -0
  247. package/dist/public/assets/jison-eVHxt-Mc.js +1 -0
  248. package/dist/public/assets/journeyDiagram-NVQOT4AX-CXk_gOjF.js +139 -0
  249. package/dist/public/assets/julia-BztE-7lq.js +1 -0
  250. package/dist/public/assets/just-CflV2-GB.js +1 -0
  251. package/dist/public/assets/kaa-SE2BUIKX-BxeQQYcq.js +1 -0
  252. package/dist/public/assets/kab-KAB-Y3GLKXLR-S4nCuR6Z.js +4 -0
  253. package/dist/public/assets/kanban-definition-27J2QSJJ-DysLvnrc.js +89 -0
  254. package/dist/public/assets/kk-KZ-ABWUFVOH-XtuAnV9R.js +1 -0
  255. package/dist/public/assets/km-KH-PCWDKPHP-B8Panu0w.js +7 -0
  256. package/dist/public/assets/ko-KR-7JQDXKGM-DgnwxBNi.js +5 -0
  257. package/dist/public/assets/ku-TR-NAH2Q5B7-BmUekjsc.js +6 -0
  258. package/dist/public/assets/latex-L28DhZ07.js +1 -0
  259. package/dist/public/assets/launch-agent-thread-DamLspEe.js +1 -0
  260. package/dist/public/assets/launcher-selection-COiBdOW2.js +1 -0
  261. package/dist/public/assets/line-Cgm4q14K.js +1 -0
  262. package/dist/public/assets/linear-DMtRyUu8.js +1 -0
  263. package/dist/public/assets/lint-plugin-meta-zA9wHIBR.js +1 -0
  264. package/dist/public/assets/liquid-CFzFNo56.js +1 -0
  265. package/dist/public/assets/list-plus-BmoxCvSM.js +1 -0
  266. package/dist/public/assets/local-menu-action-bus-4I1Xm40D.js +1 -0
  267. package/dist/public/assets/lt-LT-VQFYRSNQ-kePXW6jX.js +3 -0
  268. package/dist/public/assets/lua-DTn6dj92.js +1 -0
  269. package/dist/public/assets/lv-LV-T62VSYUM-Lia5vlTS.js +4 -0
  270. package/dist/public/assets/map-B4flWYCK.js +1 -0
  271. package/dist/public/assets/markdownlint-rule-browser-FXd7SJ6-.js +1 -0
  272. package/dist/public/assets/marko-D4Ilmayf.js +1 -0
  273. package/dist/public/assets/maximize-2-DaY3HCwc.js +1 -0
  274. package/dist/public/assets/mdc-Bw8jWWQX.js +1 -0
  275. package/dist/public/assets/mermaid-GHXKKRXX-CVxox4pc.js +1 -0
  276. package/dist/public/assets/mermaid-parser.core-BSUQZ9lM.js +4 -0
  277. package/dist/public/assets/mermaid.core-BPXVAiOy.js +11 -0
  278. package/dist/public/assets/mermaid.core-CG2kJhuU.js +1 -0
  279. package/dist/public/assets/mindmap-definition-FAOFIHXS-CP9jY8l6.js +96 -0
  280. package/dist/public/assets/minus-cd1ERTPg.js +1 -0
  281. package/dist/public/assets/miss-dialog-store-CNJRdTPE.js +1 -0
  282. package/dist/public/assets/mr-IN-V4FHLCJE-DZhF4cP8.js +9 -0
  283. package/dist/public/assets/my-MM-E3SQ6E54-C8JV1pcx.js +1 -0
  284. package/dist/public/assets/nb-NO-MLNOFN5H-DvTy2k4V.js +8 -0
  285. package/dist/public/assets/nextflow-CZbuBFbN.js +1 -0
  286. package/dist/public/assets/nginx-BRYiePNQ.js +1 -0
  287. package/dist/public/assets/nim-B0MzmeoX.js +1 -0
  288. package/dist/public/assets/nl-NL-D5L3ZV4M-DV_a_6we.js +13 -0
  289. package/dist/public/assets/nn-NO-NNHDGPKB-BC4XvRDu.js +4 -0
  290. package/dist/public/assets/now-B8azAJZd.js +1 -0
  291. package/dist/public/assets/oc-FR-DWCRF55G-BPTVvUY6.js +4 -0
  292. package/dist/public/assets/ordinal-33BedBfA.js +1 -0
  293. package/dist/public/assets/pa-IN-3JSAY44M-CoSeg4Yo.js +4 -0
  294. package/dist/public/assets/package-DCh1ji9x.js +1 -0
  295. package/dist/public/assets/packet-7NZHBO7P-DHgUbN0x.js +1 -0
  296. package/dist/public/assets/page-list-cache-DFL6i4DI.js +1 -0
  297. package/dist/public/assets/panel-right-open-Dx0ZAduW.js +1 -0
  298. package/dist/public/assets/paperclip-p1q4JO6T.js +1 -0
  299. package/dist/public/assets/pegDiagram-VL7TDLO6-DnKsB4z6.js +1 -0
  300. package/dist/public/assets/pending-receive-nav-store-TRVtHsgk.js +1 -0
  301. package/dist/public/assets/percentages-ETZPVQEE-CGid6ynE.js +1 -0
  302. package/dist/public/assets/perl-ClrNSNpG.js +1 -0
  303. package/dist/public/assets/php-Cx2SkbPG.js +1 -0
  304. package/dist/public/assets/pie-RZYD4A2V-D-cW59bT.js +1 -0
  305. package/dist/public/assets/pieDiagram-7S7Q4E2Y-CxkPtgwC.js +39 -0
  306. package/dist/public/assets/pierre-theme-BSj7qvnI.js +1376 -0
  307. package/dist/public/assets/pl-PL-ACURYKP3-DsHximPS.js +12 -0
  308. package/dist/public/assets/prod-Zty15bDP.js +137 -0
  309. package/dist/public/assets/progress-CFvdy9Uu.js +9 -0
  310. package/dist/public/assets/project-paths-BqEf5hQP.js +1 -0
  311. package/dist/public/assets/prop-types-CGg2x97u.js +1 -0
  312. package/dist/public/assets/pt-BR-LOX7MLGD-Ck6t7iu9.js +10 -0
  313. package/dist/public/assets/pt-PT-CZ2U2RFQ-DiVJr677.js +12 -0
  314. package/dist/public/assets/pug-C-n2rjrK.js +1 -0
  315. package/dist/public/assets/qml-BvOB7bq1.js +1 -0
  316. package/dist/public/assets/quadrantDiagram-CIZ2JOQS-jzzsjhT8.js +7 -0
  317. package/dist/public/assets/radar-I7S5WNFK-yd99V7SW.js +1 -0
  318. package/dist/public/assets/railroad-3IZDKUUU-BuMdMLTU.js +1 -0
  319. package/dist/public/assets/railroad-abnf-AHOZXSZD-D5piTntW.js +1 -0
  320. package/dist/public/assets/railroad-ebnf-EBAXGLYW-DfO4oFKl.js +1 -0
  321. package/dist/public/assets/railroad-peg-LSFZ7HO6-BTjwwIw4.js +1 -0
  322. package/dist/public/assets/railroadDiagram-AXF67PYL-Dt5lNe1V.js +1 -0
  323. package/dist/public/assets/razor-C_02WW4g.js +1 -0
  324. package/dist/public/assets/react-error-boundary-6ac6QM6R.js +1 -0
  325. package/dist/public/assets/refresh-cw-DgTHxKWl.js +1 -0
  326. package/dist/public/assets/requirementDiagram-LRYGKXZP-BFvTofs_.js +84 -0
  327. package/dist/public/assets/ro-RO-2HECL2X6-CIMzydBm.js +12 -0
  328. package/dist/public/assets/rst-CxxCvX4F.js +1 -0
  329. package/dist/public/assets/ru-RU-HAYNXO46-cPJJqGME.js +10 -0
  330. package/dist/public/assets/ruby-CQSoED18.js +1 -0
  331. package/dist/public/assets/sankeyDiagram-W5VNT64P-D3Wd9r1w.js +40 -0
  332. package/dist/public/assets/sas-BEbNe_t8.js +1 -0
  333. package/dist/public/assets/scss-DmCWOCxt.js +1 -0
  334. package/dist/public/assets/select-BKzcW_PB.js +1 -0
  335. package/dist/public/assets/selection-context-hu_gFwvX.js +4 -0
  336. package/dist/public/assets/separator-BVHriA5I.js +1 -0
  337. package/dist/public/assets/sequenceDiagram-SI44F4Z6-C2EBfVqH.js +162 -0
  338. package/dist/public/assets/shaderlab-DHDyWDe1.js +1 -0
  339. package/dist/public/assets/shellsession-BdSMIO8y.js +1 -0
  340. package/dist/public/assets/si-LK-W5KNS4H6-BYIzXLqk.js +1 -0
  341. package/dist/public/assets/sizeCapture-X5ZJPWSS-2UwzGwBJ.js +1 -0
  342. package/dist/public/assets/sk-SK-7K2CFGDV-DKxO3AuR.js +7 -0
  343. package/dist/public/assets/skills-api-ve3jYJNT.js +1 -0
  344. package/dist/public/assets/sl-SI-OXV2QZWW-DUEeTNwC.js +6 -0
  345. package/dist/public/assets/soy-r78pin4r.js +1 -0
  346. package/dist/public/assets/sparql-BF_ebTOo.js +1 -0
  347. package/dist/public/assets/spinner-Bp2_BYkl.js +1 -0
  348. package/dist/public/assets/square-pen-zPTA2xeB.js +1 -0
  349. package/dist/public/assets/src-F_cJU_0C.js +1 -0
  350. package/dist/public/assets/src-xTBYEwSR.js +2 -0
  351. package/dist/public/assets/stata-Br2Bb6Xj.js +1 -0
  352. package/dist/public/assets/stateDiagram-OKZ733FA-BCnGHrXs.js +1 -0
  353. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-MGx98kaL.js +1 -0
  354. package/dist/public/assets/subset-shared.chunk-CXtZiWXX.js +1 -0
  355. package/dist/public/assets/subset-worker.chunk-DHHC6wzh.js +1 -0
  356. package/dist/public/assets/surrealql-DhfzgBxI.js +1 -0
  357. package/dist/public/assets/sv-SE-JTOBZRGL-tWBMNMOp.js +12 -0
  358. package/dist/public/assets/svelte-BCdmTelh.js +1 -0
  359. package/dist/public/assets/swimlanes-SLNWSIFB-DyZwcpiq.js +2 -0
  360. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Bt3H_sgi.js +8 -0
  361. package/dist/public/assets/ta-IN-KFAVKXGT-D12YAYod.js +6 -0
  362. package/dist/public/assets/tag-pill-input-CYEhllfU.js +1 -0
  363. package/dist/public/assets/target-navigation-intent-BYfc-ev-.js +1 -0
  364. package/dist/public/assets/telemetry-impl-DJ-94IH4.js +2 -0
  365. package/dist/public/assets/telemetry-startup-BDMMOBEf.js +1 -0
  366. package/dist/public/assets/templ-Bh0IEfTl.js +1 -0
  367. package/dist/public/assets/terminal-WtPHPKhg.js +1 -0
  368. package/dist/public/assets/terminal-cli-display-DJvLF9Zx.js +1 -0
  369. package/dist/public/assets/terminal-launch-events-4mFI7_nd.js +1 -0
  370. package/dist/public/assets/terminal-telemetry-BR_4a9dB.js +1 -0
  371. package/dist/public/assets/tex-DWvQUzH5.js +1 -0
  372. package/dist/public/assets/text-viewer-languages-DWVh9j2G.js +2 -0
  373. package/dist/public/assets/th-TH-VDMSCPDL-DlsCMLob.js +1 -0
  374. package/dist/public/assets/timeline-definition-Z64GVDOM-C3kEAhyX.js +120 -0
  375. package/dist/public/assets/tr-TR-CEZ6GX45-B2oKxQM9.js +4 -0
  376. package/dist/public/assets/trash-2-CeAwTay6.js +1 -0
  377. package/dist/public/assets/treeView-QDETBFTQ-2jUawq7N.js +1 -0
  378. package/dist/public/assets/treemap-6X3UGDF4-BZ8YejMw.js +1 -0
  379. package/dist/public/assets/triangle-alert-1CPkv6zu.js +1 -0
  380. package/dist/public/assets/ts-tags-DqlfiPt2.js +1 -0
  381. package/dist/public/assets/twig-Cf5S3mIU.js +1 -0
  382. package/dist/public/assets/typing-burst-detector-31nkvm8k.js +8 -0
  383. package/dist/public/assets/uk-UA-Q3H3OXQC-DO7BHwHc.js +6 -0
  384. package/dist/public/assets/undo-2-Dg2S1Iz5.js +1 -0
  385. package/dist/public/assets/uninstall-8LxywXBA.js +1 -0
  386. package/dist/public/assets/use-activity-panel-B4VHUIF1.js +1 -0
  387. package/dist/public/assets/use-apply-config-color-theme-CrI3027i.js +1 -0
  388. package/dist/public/assets/use-live-xterm-theme-CfQeKSVm.js +1 -0
  389. package/dist/public/assets/use-open-skill-C9_G1NfR.js +1 -0
  390. package/dist/public/assets/use-skill-origin-DYkqUtEC.js +1 -0
  391. package/dist/public/assets/use-skills-LBYv4--N.js +1 -0
  392. package/dist/public/assets/use-terminal-enabled-DLfcrld_.js +1 -0
  393. package/dist/public/assets/use-timeline-entry-diff-B4L3JvVn.js +5 -0
  394. package/dist/public/assets/uz-UZ-NGCSWWPX-C3qv8BE1.js +1 -0
  395. package/dist/public/assets/vennDiagram-T6HMQDX7-gHHTPiz6.js +34 -0
  396. package/dist/public/assets/vi-VN-P3NDEVPS-7gftA9TD.js +7 -0
  397. package/dist/public/assets/vue-BuNMjeUE.js +1 -0
  398. package/dist/public/assets/vue-html-x1BFWb4c.js +1 -0
  399. package/dist/public/assets/vue-vine-DMmwJgFp.js +1 -0
  400. package/dist/public/assets/wardley-OPB4EBWU-B52Hxqap.js +1 -0
  401. package/dist/public/assets/wardleyDiagram-T6FBY63Y-DrrYRZTm.js +78 -0
  402. package/dist/public/assets/wrench-BFRDKz2A.js +1 -0
  403. package/dist/public/assets/x-CnGRb1ER.js +1 -0
  404. package/dist/public/assets/xml-aRos0Kj5.js +1 -0
  405. package/dist/public/assets/xsl-BXUaEfcU.js +1 -0
  406. package/dist/public/assets/xychartDiagram-ELKLHX3M-Dd4DnHIM.js +7 -0
  407. package/dist/public/assets/zh-CN-SS3O57GA-Becqh6Fq.js +11 -0
  408. package/dist/public/assets/zh-HK-LWJT3VCF-B4BdXy2I.js +1 -0
  409. package/dist/public/assets/zh-TW-VJXC72RT-CQ0Y-Z4_.js +13 -0
  410. package/dist/public/index.html +139 -138
  411. package/dist/public/uninstall.html +13 -13
  412. package/dist/repair-launch-json-D_HYG63I.mjs +2 -0
  413. package/dist/repair-mcp-configs-D7GI952O.mjs +2 -0
  414. package/dist/src-B9WouuiV.mjs +21 -0
  415. package/dist/src-BGGVTeBw.mjs +1 -0
  416. package/dist/start-BO0jUksI.mjs +5 -0
  417. package/dist/start-CVeQwvuu.mjs +1 -0
  418. package/package.json +4 -4
  419. package/dist/acp-harness-probe-D8M7VhcY.mjs +0 -7
  420. package/dist/constants-DktDwVnW.mjs +0 -2
  421. package/dist/init-CSz2CyzH.mjs +0 -640
  422. package/dist/init-CyI8pp6J.mjs +0 -1
  423. package/dist/launch-json-removal-OkxsdLFo.mjs +0 -2
  424. package/dist/loader-Ca4h9PF-.mjs +0 -1
  425. package/dist/loader-dcrWr6jh.mjs +0 -2
  426. package/dist/preview-B8CxsGjE.mjs +0 -1
  427. package/dist/preview-Mt9uolzO.mjs +0 -3
  428. package/dist/public/assets/ActivityModeContent-CL2P7fiV.js +0 -1
  429. package/dist/public/assets/ActivityPanelDiffView-BAloNqfo.js +0 -13
  430. package/dist/public/assets/ActivityPanelDiffView-legcy4jI.css +0 -1
  431. package/dist/public/assets/AddPropertiesButton-BX7pKWX-.js +0 -2
  432. package/dist/public/assets/AgentDiffPane-BPSE8vuP.js +0 -2
  433. package/dist/public/assets/AgentThreadClientBinder-CmEEIjX-.js +0 -1
  434. package/dist/public/assets/AppMenubar-ByI-BInV.js +0 -1
  435. package/dist/public/assets/BugReportHistory-C2-fO6T3.js +0 -1
  436. package/dist/public/assets/BugReportHistoryDialog-BO92hFGg.js +0 -1
  437. package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-Cij7EZM1.js +0 -1
  438. package/dist/public/assets/CodeMirrorPropInput-Bn-9crm9.js +0 -3
  439. package/dist/public/assets/ConfigSharingInfoTooltip-DzKdlED6.js +0 -1
  440. package/dist/public/assets/ConsentDialogBody-DvA9T9zf.js +0 -2
  441. package/dist/public/assets/DiffViewBoundary-BDQV_30P.js +0 -29
  442. package/dist/public/assets/DocumentContext-iNjtedMe.js +0 -38
  443. package/dist/public/assets/EditorModeToggle-CM3xQ6hm.js +0 -1
  444. package/dist/public/assets/EnableSyncConfirmDialog-BqbAHwpW.js +0 -1
  445. package/dist/public/assets/ExcalidrawDocEditor-GRowkewd.js +0 -1
  446. package/dist/public/assets/FeedbackForm-B7n4TuDA.js +0 -1
  447. package/dist/public/assets/GraphPanel-ig_aaE6z.js +0 -44
  448. package/dist/public/assets/ImportSkillDialog-DGSjVMT7.js +0 -1
  449. package/dist/public/assets/LintConfigEditor-RR2mPUiJ.js +0 -1
  450. package/dist/public/assets/ManagedArtifactProperties-BIm4JweH.js +0 -1
  451. package/dist/public/assets/ManagedArtifactProperties-CbOsujxI.js +0 -1
  452. package/dist/public/assets/McpConsentDialogBody-HesTuXBk.js +0 -1
  453. package/dist/public/assets/Mermaid-Cw1EnMJu.js +0 -2
  454. package/dist/public/assets/MermaidDocEditor-BRtM6DaX.js +0 -1
  455. package/dist/public/assets/MultiFileDiff-B2LBKfyB.js +0 -1
  456. package/dist/public/assets/PropertyDisplayRow-YAPW0Vzx.js +0 -2
  457. package/dist/public/assets/RegisteredAgentIcon-5StNVeMK.js +0 -1
  458. package/dist/public/assets/ReportBugDialogBody-CGsC-64R.js +0 -3
  459. package/dist/public/assets/ReportBugMenuTrigger-Bf1Hqrda.js +0 -2
  460. package/dist/public/assets/RowDisclosure-8rxC_kc0.js +0 -1
  461. package/dist/public/assets/SchemaConfigEditor-DZUg2i1P.js +0 -1
  462. package/dist/public/assets/SessionsHost-BGvSOtWP.js +0 -2
  463. package/dist/public/assets/SettingsDialogBody-C3x7KE2j.js +0 -12
  464. package/dist/public/assets/ShareBranchSwitchDialog-DD_l6rfk.js +0 -1
  465. package/dist/public/assets/ShareReceiveDialog-CeUqKz5V.js +0 -1
  466. package/dist/public/assets/ShareReceiveMissDialog-BjINjq7K.js +0 -1
  467. package/dist/public/assets/SkillCostValue-BMSdP6MA.js +0 -1
  468. package/dist/public/assets/SkillEditBanner-B3DCnnjz.js +0 -1
  469. package/dist/public/assets/SkillForkDialog-67R0OSL-.js +0 -1
  470. package/dist/public/assets/SkillInstallMenu-4TJrzVfJ.js +0 -2
  471. package/dist/public/assets/SkillOriginInline-BrKRkdWk.js +0 -2
  472. package/dist/public/assets/SkillToolbarControls-Bx4NtTCN.js +0 -1
  473. package/dist/public/assets/SkillUpdateConflictDialog-D1ffg_Rg.js +0 -1
  474. package/dist/public/assets/SlidesToolbarControls-CSx5LfK6.js +0 -1
  475. package/dist/public/assets/SourceEditor-BXOEYsQl.js +0 -1
  476. package/dist/public/assets/TerminalPanel-DSGjeU7n.js +0 -146
  477. package/dist/public/assets/TerminalStartingNotice-CJiACmLP.js +0 -1
  478. package/dist/public/assets/TerminalWindowApp-EE1C8Lq2.js +0 -1
  479. package/dist/public/assets/TextDocEditor-Bm-s1Pt_.js +0 -1
  480. package/dist/public/assets/ThemePicker-CrXM91f-.js +0 -1
  481. package/dist/public/assets/ThreadView-D3ko96SF.js +0 -15
  482. package/dist/public/assets/TimelineDiffPane-BH9B6DS-.js +0 -2
  483. package/dist/public/assets/abnfDiagram-N423BO3Z-CwGrBVLC.js +0 -1
  484. package/dist/public/assets/agent-diff-store-ByQtin6L.js +0 -1
  485. package/dist/public/assets/alert-dialog-DLAYZZMu.js +0 -7
  486. package/dist/public/assets/angular-html-Btpy0q0k.js +0 -1
  487. package/dist/public/assets/angular-ts-BrSzuuFU.js +0 -1
  488. package/dist/public/assets/apl-vFoMk9-0.js +0 -1
  489. package/dist/public/assets/ar-SA-PQUY64WN-PQbO-51L.js +0 -10
  490. package/dist/public/assets/arc-CQb2AKAx.js +0 -1
  491. package/dist/public/assets/architecture-TIHT7OUA-DQf3c3Hp.js +0 -1
  492. package/dist/public/assets/architectureDiagram-T3A2C74G-CeZuzYuu.js +0 -36
  493. package/dist/public/assets/arrow-up-right-BaKj0sfV.js +0 -1
  494. package/dist/public/assets/astro-DSlgGT8T.js +0 -1
  495. package/dist/public/assets/auth-state-cache-oUVJ8UV4.js +0 -11
  496. package/dist/public/assets/az-AZ-OXJXL76K-CPmcszkd.js +0 -1
  497. package/dist/public/assets/bg-BG-W2GKIJDF-DQXDfygb.js +0 -5
  498. package/dist/public/assets/blade-DPk0NJyc.js +0 -1
  499. package/dist/public/assets/blockDiagram-VBNYF7ZC-DTHWQKwa.js +0 -132
  500. package/dist/public/assets/bn-BD-TGL7M4PJ-BpbZzobg.js +0 -3
  501. package/dist/public/assets/bn-IN-BKETKYEH-BpHvStrp.js +0 -3
  502. package/dist/public/assets/braces-BP2Hc0Kn.js +0 -1
  503. package/dist/public/assets/bsl-DJpyuoJk.js +0 -1
  504. package/dist/public/assets/bug-report-send-manager-B4I-UPj9.js +0 -1
  505. package/dist/public/assets/c4Diagram-5PPSVZJV-CAqTarHG.js +0 -10
  506. package/dist/public/assets/ca-ES-LD5SCRVV-CmDj24r3.js +0 -8
  507. package/dist/public/assets/cairo-DhOjE0gg.js +0 -1
  508. package/dist/public/assets/calendar-B-WVKwTL.js +0 -1
  509. package/dist/public/assets/case-sensitive-CvV5vDMz.js +0 -1
  510. package/dist/public/assets/channel-BOJZt2df.js +0 -1
  511. package/dist/public/assets/check-D16atakQ.js +0 -1
  512. package/dist/public/assets/checkbox-Dm1F7ko3.js +0 -1
  513. package/dist/public/assets/chevron-down-DZvAgb7P.js +0 -1
  514. package/dist/public/assets/chevron-left-Y28NVO5d.js +0 -1
  515. package/dist/public/assets/chevron-right-ARd3H40k.js +0 -1
  516. package/dist/public/assets/chunk-2GRJ4B5K-wqPSGDf9.js +0 -1
  517. package/dist/public/assets/chunk-2Q5K7J3B-CImid_Y5.js +0 -1
  518. package/dist/public/assets/chunk-3NCLNEKW-RYrKXVY9.js +0 -1
  519. package/dist/public/assets/chunk-4I5QYGJK-B1LDTgE1.js +0 -1
  520. package/dist/public/assets/chunk-5FCAYU7R-qzd-GNjw.js +0 -1
  521. package/dist/public/assets/chunk-5HE753X5-CR-v6dSo.js +0 -1
  522. package/dist/public/assets/chunk-5JV3BV7I-C0xPk2sR.js +0 -1
  523. package/dist/public/assets/chunk-5RXB4S5H-DxeRek40.js +0 -231
  524. package/dist/public/assets/chunk-5TONJI2A-DrCWMBwq.js +0 -2
  525. package/dist/public/assets/chunk-5VM5RSS4-BpZ2-4D7.js +0 -15
  526. package/dist/public/assets/chunk-6Q2QTUOP-atEGPau_.js +0 -88
  527. package/dist/public/assets/chunk-7BUUIJ7U-DpTl4Qku.js +0 -1
  528. package/dist/public/assets/chunk-7Z6QIM7H-D-Ql3uYX.js +0 -10
  529. package/dist/public/assets/chunk-BIQX33UG-Ba9Qln1u.js +0 -1
  530. package/dist/public/assets/chunk-BO2N2NFS-CUMnMIzo.js +0 -103
  531. package/dist/public/assets/chunk-CQNSW5MT-CmqFXg2y.js +0 -1
  532. package/dist/public/assets/chunk-CYSBUYHQ-Cnad-ODK.js +0 -1
  533. package/dist/public/assets/chunk-EMLP6XTP-FQ_kYmpD.js +0 -1
  534. package/dist/public/assets/chunk-GF5L2VYU-CisRraQN.js +0 -206
  535. package/dist/public/assets/chunk-I66GZJ75-XrvqIPtf.js +0 -127
  536. package/dist/public/assets/chunk-J7OUQ5F2-D7t-TW4G.js +0 -2
  537. package/dist/public/assets/chunk-JG7HCLWE-OBINelJQ.js +0 -2
  538. package/dist/public/assets/chunk-JQJVKLGR-DtfrgEAw.js +0 -156
  539. package/dist/public/assets/chunk-JWPE2WC7-MFNLYS6E.js +0 -1
  540. package/dist/public/assets/chunk-KBJHAD2P-DiSh-uZj.js +0 -1
  541. package/dist/public/assets/chunk-MOZMSUNE-BlEnH6km.js +0 -1
  542. package/dist/public/assets/chunk-NSK5VX7P-08Dpvd3E.js +0 -2
  543. package/dist/public/assets/chunk-OSBZ3O6U-4T4LnMTK.js +0 -1
  544. package/dist/public/assets/chunk-QBLGF6JB-BYuhTci9.js +0 -1
  545. package/dist/public/assets/chunk-QR6OTTB3-DDjrwmk8.js +0 -62
  546. package/dist/public/assets/chunk-R7FJI6CG-CyUcfBy5.js +0 -1
  547. package/dist/public/assets/chunk-RM4UPSZO-BW9bukOD.js +0 -35
  548. package/dist/public/assets/chunk-RYQCIY6F-CkLcwkxI.js +0 -1
  549. package/dist/public/assets/chunk-U6XO7XAA-CGgxECrs.js +0 -2
  550. package/dist/public/assets/chunk-UBXNYLIW-BuP-Qxfn.js +0 -1
  551. package/dist/public/assets/chunk-W5SLKNZC-faJAaoHC.js +0 -1
  552. package/dist/public/assets/chunk-WRU74C26-BVn6t_N8.js +0 -70
  553. package/dist/public/assets/chunk-XXDRQBXY-Bl1wINV6.js +0 -1
  554. package/dist/public/assets/chunk-YOTPTUD7-D8ww8CW9.js +0 -1
  555. package/dist/public/assets/chunk-Z5NKEFVG-DZPxFQZ5.js +0 -22
  556. package/dist/public/assets/chunk-ZIRB5QZD-BRs3I_C4.js +0 -32
  557. package/dist/public/assets/circle-alert-g-C_b-Ua.js +0 -1
  558. package/dist/public/assets/classDiagram-JCYQIIEL-VIlpegMN.js +0 -1
  559. package/dist/public/assets/classDiagram-v2-OCEON4UE-BXwQxF7i.js +0 -1
  560. package/dist/public/assets/cm-theme-BAUNpz80.js +0 -1
  561. package/dist/public/assets/cobol-DZLIeBCr.js +0 -1
  562. package/dist/public/assets/code-highlighter-impl-D-lTmjEE.js +0 -1
  563. package/dist/public/assets/coffee-Bl-kuNo5.js +0 -1
  564. package/dist/public/assets/comment-chips-hjmzTew_.js +0 -5
  565. package/dist/public/assets/config-provider-BoALF9T-.js +0 -5
  566. package/dist/public/assets/cose-bilkent-JH36ORCC-Cuo3l2a6.js +0 -1
  567. package/dist/public/assets/cpp-DUCrPMkz.js +0 -1
  568. package/dist/public/assets/crystal-DXp5UwgU.js +0 -1
  569. package/dist/public/assets/cs-CZ-OFPU5DBV-Ds-08Va-.js +0 -7
  570. package/dist/public/assets/cynefin-VYW2F7L2-6-5v50vu.js +0 -1
  571. package/dist/public/assets/cynefinDiagram-MW4NZA55-D-4AaXUd.js +0 -62
  572. package/dist/public/assets/da-DK-FRDJFYWF-CsgUAQup.js +0 -2
  573. package/dist/public/assets/dagre-B2bpbgWN.js +0 -1
  574. package/dist/public/assets/dagre-VZM6K2ZE-D_Cxd0x7.js +0 -4
  575. package/dist/public/assets/de-CH-ZG7H3QK3-B3tx2jwN.js +0 -11
  576. package/dist/public/assets/de-DE-SIJYH4IH-B25frTmW.js +0 -11
  577. package/dist/public/assets/diagram-7IWD3JNH-7etWbrc8.js +0 -30
  578. package/dist/public/assets/diagram-B4RE2ZJO-DC48tm0t.js +0 -3
  579. package/dist/public/assets/diagram-LBJQPF4R-CFNS_Ekj.js +0 -24
  580. package/dist/public/assets/diagram-Q27KOJAE-C4fM0My-.js +0 -24
  581. package/dist/public/assets/diagram-UB23O5K3-Cj_MQzv-.js +0 -41
  582. package/dist/public/assets/dialog-_kqu_91M.js +0 -5
  583. package/dist/public/assets/dist-B2hqgN1j.js +0 -19
  584. package/dist/public/assets/dist-B4UQ1jHk.js +0 -6
  585. package/dist/public/assets/dist-BBgXXF91.js +0 -23
  586. package/dist/public/assets/dist-BHeX1K_T2.js +0 -2
  587. package/dist/public/assets/dist-BNAK9cIn.js +0 -1
  588. package/dist/public/assets/dist-BRn6V_mT.js +0 -1
  589. package/dist/public/assets/dist-BamsYfxi.js +0 -1
  590. package/dist/public/assets/dist-CL8P8PlP.js +0 -9
  591. package/dist/public/assets/dist-CX_PO_27.js +0 -1
  592. package/dist/public/assets/dist-CdhSc3fp.js +0 -124
  593. package/dist/public/assets/dist-CrDOq41p.js +0 -1
  594. package/dist/public/assets/dist-CsTGDHWQ.js +0 -1
  595. package/dist/public/assets/dist-Cxq5_zBE.js +0 -1
  596. package/dist/public/assets/dist-DX3X9Ax9.js +0 -1
  597. package/dist/public/assets/dist-Dk_qlbA92.js +0 -1
  598. package/dist/public/assets/dist-lZ4I5dY3.js +0 -1
  599. package/dist/public/assets/doc-undo-manager-dMhYLETR.js +0 -1
  600. package/dist/public/assets/dropdown-menu-DYfdElMl.js +0 -1
  601. package/dist/public/assets/ebnfDiagram-BXEA7PRR-C-3ZQEg7.js +0 -1
  602. package/dist/public/assets/edge-DbgzIVWE.js +0 -1
  603. package/dist/public/assets/el-GR-IEE2CGI2-CZsW5pmc.js +0 -7
  604. package/dist/public/assets/elixir-CnOfjrWJ.js +0 -1
  605. package/dist/public/assets/elm-RKFRpR0O.js +0 -1
  606. package/dist/public/assets/en-SJ2YIMFF-DKQt7L_V.js +0 -1
  607. package/dist/public/assets/erDiagram-JOGREHBK-DkEhhtGC.js +0 -85
  608. package/dist/public/assets/erb-Ca-ZfJbt.js +0 -1
  609. package/dist/public/assets/erlang-CAFUxeCA.js +0 -1
  610. package/dist/public/assets/es-ES-TVVPWKV5-B9eAG48C.js +0 -12
  611. package/dist/public/assets/eu-ES-CGBMFQDT-B5DdkkUE.js +0 -8
  612. package/dist/public/assets/eventmodeling-45OFAUF4-CVSrDnLq.js +0 -1
  613. package/dist/public/assets/eye-B_gavT2I.js +0 -1
  614. package/dist/public/assets/fa-IR-IE6XAPR4-CY6w2u0M.js +0 -9
  615. package/dist/public/assets/fi-FI-P7TKNHRM-DQ4Y7FW8.js +0 -6
  616. package/dist/public/assets/field-Dq4rVnNT.js +0 -1
  617. package/dist/public/assets/file-tree-adapter-C4gKqxzg.js +0 -1
  618. package/dist/public/assets/flowDiagram-UKHOOZJN-D4TYANY9.js +0 -1
  619. package/dist/public/assets/folder-config-api-D4N0ED0-.js +0 -1
  620. package/dist/public/assets/folder-open-Do94fvzX.js +0 -1
  621. package/dist/public/assets/fortran-fixed-form-DAlbJzjA.js +0 -1
  622. package/dist/public/assets/fr-FR-QI2XZNT7-Crpp4QlF.js +0 -12
  623. package/dist/public/assets/fsharp-CBE1KNSz.js +0 -1
  624. package/dist/public/assets/ganttDiagram-PKOTCBZU-D1qR0KEc.js +0 -292
  625. package/dist/public/assets/gdresource-DOJHvlWP.js +0 -1
  626. package/dist/public/assets/git-branch-980jD05X.js +0 -1
  627. package/dist/public/assets/git-commit-aOiAcBdu.js +0 -1
  628. package/dist/public/assets/git-rebase-CPHs4Yke.js +0 -1
  629. package/dist/public/assets/gitGraph-TEB2WS4Q-C5MTJyNH.js +0 -1
  630. package/dist/public/assets/gitGraphDiagram-DS77QQ5N-DHsitZ-T.js +0 -106
  631. package/dist/public/assets/gl-ES-TLYCNOZZ-CdjTojN9.js +0 -6
  632. package/dist/public/assets/glimmer-js-CRXkc5JU.js +0 -1
  633. package/dist/public/assets/glimmer-ts-B6h9gbF_.js +0 -1
  634. package/dist/public/assets/globals-DeOHYo0q.css +0 -1
  635. package/dist/public/assets/glsl-BTs_reRo.js +0 -1
  636. package/dist/public/assets/graphlib-Dqsd0Abe.js +0 -1
  637. package/dist/public/assets/graphql-Bioh40CC.js +0 -1
  638. package/dist/public/assets/hack-DtbZ7zps.js +0 -1
  639. package/dist/public/assets/haml-CTpqIE1V.js +0 -1
  640. package/dist/public/assets/handlebars-BpIl_2f5.js +0 -1
  641. package/dist/public/assets/hash-DasvQ1cj.js +0 -1
  642. package/dist/public/assets/he-IL-ZX43XLGP-CyX54Gp-.js +0 -9
  643. package/dist/public/assets/hi-IN-UTYRMTUF-C51HcuG4.js +0 -3
  644. package/dist/public/assets/highlighted-body-OFNGDK62-ht6RVgg3.js +0 -1
  645. package/dist/public/assets/html-BAFrkEUa.js +0 -1
  646. package/dist/public/assets/html-derivative-D9AAuBSB.js +0 -1
  647. package/dist/public/assets/http-DFqHpt_G.js +0 -1
  648. package/dist/public/assets/hu-HU-AJOSEBW6-DkmNsRd4.js +0 -3
  649. package/dist/public/assets/hurl-BQx3hQVg.js +0 -1
  650. package/dist/public/assets/hxml-uKpDV52M.js +0 -1
  651. package/dist/public/assets/i18n-DOPPOAve.js +0 -1
  652. package/dist/public/assets/id-ID-ETLTVG6C-5aQNBO4K.js +0 -8
  653. package/dist/public/assets/image-ZVKINSPA-CLWoH_Ud.js +0 -1
  654. package/dist/public/assets/index-C-F7kRGA.js +0 -2204
  655. package/dist/public/assets/info-A3ob83yN.js +0 -1
  656. package/dist/public/assets/info-DKCQHKI2-lSym2dWy.js +0 -1
  657. package/dist/public/assets/infoDiagram-6WML65LV-B_C8HD4U.js +0 -2
  658. package/dist/public/assets/input-group-DBosszKy.js +0 -1
  659. package/dist/public/assets/ishikawaDiagram-WSZJBQD7-D2IvtwFC.js +0 -70
  660. package/dist/public/assets/it-IT-B4B6TP6L-B6OILLSd.js +0 -12
  661. package/dist/public/assets/ja-JP-IYKVURR5-CCLPVj7t.js +0 -12
  662. package/dist/public/assets/jinja-7GLl-wfr.js +0 -1
  663. package/dist/public/assets/jison-DQCVmVOq.js +0 -1
  664. package/dist/public/assets/journeyDiagram-NVQOT4AX-C1II1aDP.js +0 -139
  665. package/dist/public/assets/julia-BVuRnTNO.js +0 -1
  666. package/dist/public/assets/just-BCI7I8i9.js +0 -1
  667. package/dist/public/assets/kaa-SE2BUIKX-D_BpPU6K.js +0 -1
  668. package/dist/public/assets/kab-KAB-Y3GLKXLR-B-15dZJS.js +0 -4
  669. package/dist/public/assets/kanban-definition-27J2QSJJ-BQ_6NSKf.js +0 -89
  670. package/dist/public/assets/kk-KZ-ABWUFVOH-Ws__Ogrv.js +0 -1
  671. package/dist/public/assets/km-KH-PCWDKPHP-BOMlJDFi.js +0 -7
  672. package/dist/public/assets/ko-KR-7JQDXKGM-BdgUUdAa.js +0 -5
  673. package/dist/public/assets/ku-TR-NAH2Q5B7-1bSkaN_S.js +0 -6
  674. package/dist/public/assets/latex-cM8HurNJ.js +0 -1
  675. package/dist/public/assets/launch-agent-thread-Clx5mTVb.js +0 -1
  676. package/dist/public/assets/launcher-selection-BZDeoOtN.js +0 -1
  677. package/dist/public/assets/line-D6SOO9rv.js +0 -1
  678. package/dist/public/assets/linear-wPQKtCnF.js +0 -1
  679. package/dist/public/assets/lint-plugin-meta-BEuBahq9.js +0 -1
  680. package/dist/public/assets/liquid-BRV4ZLC1.js +0 -1
  681. package/dist/public/assets/list-plus-BXaFXlLg.js +0 -1
  682. package/dist/public/assets/local-menu-action-bus-CTOHR9LV.js +0 -1
  683. package/dist/public/assets/lt-LT-VQFYRSNQ-KtnJQAfz.js +0 -3
  684. package/dist/public/assets/lua-sCVHXsMO.js +0 -1
  685. package/dist/public/assets/lv-LV-T62VSYUM-D0O8E4eZ.js +0 -4
  686. package/dist/public/assets/map-DcHdMm3d.js +0 -1
  687. package/dist/public/assets/markdownlint-rule-browser-BF4sbKQU.js +0 -1
  688. package/dist/public/assets/marko-Cs2EYUIK.js +0 -1
  689. package/dist/public/assets/maximize-2-DGaFLVum.js +0 -1
  690. package/dist/public/assets/mdc-CvIcrggy.js +0 -1
  691. package/dist/public/assets/mermaid-GHXKKRXX-DjWhl1pn.js +0 -1
  692. package/dist/public/assets/mermaid-parser.core-BAVMOY3Z.js +0 -4
  693. package/dist/public/assets/mermaid.core-CaqyUaRU.js +0 -11
  694. package/dist/public/assets/mermaid.core-Daw_cNlC.js +0 -1
  695. package/dist/public/assets/mindmap-definition-FAOFIHXS-1V_AbP5h.js +0 -96
  696. package/dist/public/assets/minus-O6IVpGJy.js +0 -1
  697. package/dist/public/assets/miss-dialog-store-Cj4KLsks.js +0 -1
  698. package/dist/public/assets/mr-IN-V4FHLCJE-C5fH6hQC.js +0 -9
  699. package/dist/public/assets/my-MM-E3SQ6E54-BGXs3N4n.js +0 -1
  700. package/dist/public/assets/nb-NO-MLNOFN5H-B0pEzSe0.js +0 -8
  701. package/dist/public/assets/nextflow-sU2c8xbA.js +0 -1
  702. package/dist/public/assets/nginx-bqL-y6OY.js +0 -1
  703. package/dist/public/assets/nim-6UUVq-Fj.js +0 -1
  704. package/dist/public/assets/nl-NL-D5L3ZV4M-Bxa3ZGio.js +0 -13
  705. package/dist/public/assets/nn-NO-NNHDGPKB-CAWT-HLo.js +0 -4
  706. package/dist/public/assets/now-Ekfly0gU.js +0 -1
  707. package/dist/public/assets/oc-FR-DWCRF55G-B6RHGNZ3.js +0 -4
  708. package/dist/public/assets/ordinal-DXfwmpMf.js +0 -1
  709. package/dist/public/assets/pa-IN-3JSAY44M-BoCSUyIq.js +0 -4
  710. package/dist/public/assets/package-sAzSJkP6.js +0 -1
  711. package/dist/public/assets/packet-7NZHBO7P-Cj6GOHbc.js +0 -1
  712. package/dist/public/assets/page-list-cache-DZPKVqeA.js +0 -1
  713. package/dist/public/assets/panel-right-open-D4enOyq7.js +0 -1
  714. package/dist/public/assets/paperclip-s2F4zVCC.js +0 -1
  715. package/dist/public/assets/pegDiagram-VL7TDLO6-CgpKv1Za.js +0 -1
  716. package/dist/public/assets/pending-receive-nav-store-CF3kehqJ.js +0 -1
  717. package/dist/public/assets/percentages-ETZPVQEE-DY6QMX5N.js +0 -1
  718. package/dist/public/assets/perl-4F1SMmlk.js +0 -1
  719. package/dist/public/assets/php-BvC598Ja.js +0 -1
  720. package/dist/public/assets/pie-RZYD4A2V-CL7SW8XK.js +0 -1
  721. package/dist/public/assets/pieDiagram-7S7Q4E2Y-Dm6i3Pe4.js +0 -39
  722. package/dist/public/assets/pierre-theme-CQAERd6x.js +0 -1376
  723. package/dist/public/assets/pl-PL-ACURYKP3-GQxCZh8Y.js +0 -12
  724. package/dist/public/assets/prod-BzcoV_nJ.js +0 -137
  725. package/dist/public/assets/progress-CbG1gg9D.js +0 -9
  726. package/dist/public/assets/project-paths-BGMK3dxo.js +0 -1
  727. package/dist/public/assets/prop-types-gfjew8MI.js +0 -1
  728. package/dist/public/assets/pt-BR-LOX7MLGD-wGFpzAj4.js +0 -10
  729. package/dist/public/assets/pt-PT-CZ2U2RFQ-DvKLUZVM.js +0 -12
  730. package/dist/public/assets/pug-D3oCQbst.js +0 -1
  731. package/dist/public/assets/qml-Cjm-DHU5.js +0 -1
  732. package/dist/public/assets/quadrantDiagram-CIZ2JOQS-oFdG2mrD.js +0 -7
  733. package/dist/public/assets/radar-I7S5WNFK-Mfok89Zx.js +0 -1
  734. package/dist/public/assets/railroad-3IZDKUUU-DBr1CHfI.js +0 -1
  735. package/dist/public/assets/railroad-abnf-AHOZXSZD-BItJV2go.js +0 -1
  736. package/dist/public/assets/railroad-ebnf-EBAXGLYW-l2BgVE5Z.js +0 -1
  737. package/dist/public/assets/railroad-peg-LSFZ7HO6-BYigVaia.js +0 -1
  738. package/dist/public/assets/railroadDiagram-AXF67PYL--QxzcfPm.js +0 -1
  739. package/dist/public/assets/razor-C76DVHJc.js +0 -1
  740. package/dist/public/assets/refresh-cw-BO3b6gLF.js +0 -1
  741. package/dist/public/assets/requirementDiagram-LRYGKXZP-RHMTqViv.js +0 -84
  742. package/dist/public/assets/ro-RO-2HECL2X6-DN6B4ALh.js +0 -12
  743. package/dist/public/assets/rst-LtFN2IyT.js +0 -1
  744. package/dist/public/assets/ru-RU-HAYNXO46-DUSY7aVD.js +0 -10
  745. package/dist/public/assets/ruby-C9bw36ef.js +0 -1
  746. package/dist/public/assets/sankeyDiagram-W5VNT64P-DddpCRdP.js +0 -40
  747. package/dist/public/assets/sas-DeeclxhY.js +0 -1
  748. package/dist/public/assets/scss-D5VAatXt.js +0 -1
  749. package/dist/public/assets/select-BL1z9P70.js +0 -1
  750. package/dist/public/assets/selection-context-CAWSjEO6.js +0 -4
  751. package/dist/public/assets/separator-DmmNuc_B.js +0 -1
  752. package/dist/public/assets/sequenceDiagram-SI44F4Z6-CtoLsO69.js +0 -162
  753. package/dist/public/assets/shaderlab-bEikNDr8.js +0 -1
  754. package/dist/public/assets/shellsession-Cvu_ojql.js +0 -1
  755. package/dist/public/assets/si-LK-W5KNS4H6-uOwuwocF.js +0 -1
  756. package/dist/public/assets/sizeCapture-X5ZJPWSS-LpDT2Zl9.js +0 -1
  757. package/dist/public/assets/sk-SK-7K2CFGDV-1kyGdWyX.js +0 -7
  758. package/dist/public/assets/skills-api-BU5k9WYz.js +0 -1
  759. package/dist/public/assets/sl-SI-OXV2QZWW-CIjw8ixJ.js +0 -6
  760. package/dist/public/assets/soy-CHaeJgu1.js +0 -1
  761. package/dist/public/assets/sparql-BE56Jwyw.js +0 -1
  762. package/dist/public/assets/spinner-By93kIxm.js +0 -1
  763. package/dist/public/assets/square-pen-DK8eXxpV.js +0 -1
  764. package/dist/public/assets/src-B5Uf_H4s.js +0 -1
  765. package/dist/public/assets/src-Bmk2IPNX.js +0 -2
  766. package/dist/public/assets/stata-C23QKhaM.js +0 -1
  767. package/dist/public/assets/stateDiagram-OKZ733FA-DxxGT47L.js +0 -1
  768. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-DOvRLqD5.js +0 -1
  769. package/dist/public/assets/subset-shared.chunk-DgGRwKqB.js +0 -1
  770. package/dist/public/assets/subset-worker.chunk-DSwIMTnq.js +0 -1
  771. package/dist/public/assets/surrealql-DftfQ14v.js +0 -1
  772. package/dist/public/assets/sv-SE-JTOBZRGL-BiX2hVca.js +0 -12
  773. package/dist/public/assets/svelte-CMBKGfog.js +0 -1
  774. package/dist/public/assets/swimlanes-SLNWSIFB-CYbbcXGA.js +0 -2
  775. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Bxm6ckJF.js +0 -8
  776. package/dist/public/assets/ta-IN-KFAVKXGT-DEOAmR7A.js +0 -6
  777. package/dist/public/assets/tag-pill-input-iFjKjjTv.js +0 -1
  778. package/dist/public/assets/target-navigation-intent-Dpq3EXpz.js +0 -1
  779. package/dist/public/assets/telemetry-impl-VcCizxUU.js +0 -2
  780. package/dist/public/assets/telemetry-startup-BOIV_eD9.js +0 -1
  781. package/dist/public/assets/templ-D27XTJWZ.js +0 -1
  782. package/dist/public/assets/terminal-D4S9lNQf.js +0 -1
  783. package/dist/public/assets/terminal-cli-display-XU6hL6_q.js +0 -1
  784. package/dist/public/assets/terminal-launch-events-Che2grQr.js +0 -1
  785. package/dist/public/assets/terminal-telemetry-z_vfchja.js +0 -1
  786. package/dist/public/assets/tex-BwbHhfC3.js +0 -1
  787. package/dist/public/assets/text-viewer-languages-DE3Z2Ufk.js +0 -2
  788. package/dist/public/assets/th-TH-VDMSCPDL-BkeSIHBW.js +0 -1
  789. package/dist/public/assets/timeline-definition-Z64GVDOM-C4GzWBzu.js +0 -120
  790. package/dist/public/assets/tr-TR-CEZ6GX45-VN7jwMna.js +0 -4
  791. package/dist/public/assets/trash-2-Dxkzm2qO.js +0 -1
  792. package/dist/public/assets/treeView-QDETBFTQ-DBqzMCzp.js +0 -1
  793. package/dist/public/assets/treemap-6X3UGDF4-DUAoR8Ka.js +0 -1
  794. package/dist/public/assets/triangle-alert-CnzPFn6V.js +0 -1
  795. package/dist/public/assets/ts-tags-D4R-SeWh.js +0 -1
  796. package/dist/public/assets/twig-D8ZmVmQZ.js +0 -1
  797. package/dist/public/assets/typing-burst-detector-fDIDiJUd.js +0 -8
  798. package/dist/public/assets/uk-UA-Q3H3OXQC-ChSO21wE.js +0 -6
  799. package/dist/public/assets/undo-2-DXBUErQ5.js +0 -1
  800. package/dist/public/assets/uninstall-C98LMiPc.js +0 -1
  801. package/dist/public/assets/use-activity-panel-CjJ4rBmF.js +0 -1
  802. package/dist/public/assets/use-apply-config-color-theme-D-13D2Xt.js +0 -1
  803. package/dist/public/assets/use-live-xterm-theme-aXDStBRf.js +0 -1
  804. package/dist/public/assets/use-open-skill-CFJtjUVg.js +0 -1
  805. package/dist/public/assets/use-skill-origin-M6b5sY_s.js +0 -1
  806. package/dist/public/assets/use-skills-dKHpTH68.js +0 -1
  807. package/dist/public/assets/use-terminal-enabled-HzVfIKTz.js +0 -1
  808. package/dist/public/assets/use-timeline-entry-diff-Dk_gfqeh.js +0 -6
  809. package/dist/public/assets/uz-UZ-NGCSWWPX-CBUDUwYm.js +0 -1
  810. package/dist/public/assets/vennDiagram-T6HMQDX7-DJN2W4Pg.js +0 -34
  811. package/dist/public/assets/vi-VN-P3NDEVPS-D8Qyi_M6.js +0 -7
  812. package/dist/public/assets/vue-BMLp1n2Z.js +0 -1
  813. package/dist/public/assets/vue-html-D0xhFNLq.js +0 -1
  814. package/dist/public/assets/vue-vine-C8BGMRz4.js +0 -1
  815. package/dist/public/assets/wardley-OPB4EBWU-B1SlbErr.js +0 -1
  816. package/dist/public/assets/wardleyDiagram-T6FBY63Y-dmRQP1PB.js +0 -78
  817. package/dist/public/assets/wrench-X0fcm_5p.js +0 -1
  818. package/dist/public/assets/x-CAqepOgq.js +0 -1
  819. package/dist/public/assets/xml-CDd8lS6Y.js +0 -1
  820. package/dist/public/assets/xsl-DEZEUWOY.js +0 -1
  821. package/dist/public/assets/xychartDiagram-ELKLHX3M-BuKnXHvi.js +0 -7
  822. package/dist/public/assets/zh-CN-SS3O57GA-DvGe3XMm.js +0 -11
  823. package/dist/public/assets/zh-HK-LWJT3VCF-C7bZhVVR.js +0 -1
  824. package/dist/public/assets/zh-TW-VJXC72RT-BAPHxrLc.js +0 -13
  825. package/dist/repair-launch-json-XQiLfVe3.mjs +0 -2
  826. package/dist/repair-mcp-configs-D6JY_afW.mjs +0 -2
  827. package/dist/src-D9eVFZOH.mjs +0 -21
  828. package/dist/src-DiLS5T8E.mjs +0 -1
  829. package/dist/start-BZQ9aByI.mjs +0 -5
  830. package/dist/start-ahJwqJv2.mjs +0 -1
  831. /package/dist/public/assets/{SkillModeBanner-BjusWgkL.js → SkillModeBanner-Ddqm42dL.js} +0 -0
  832. /package/dist/public/assets/{__vite-browser-external-DrUO0isw.js → __vite-browser-external-CWHk0pAd.js} +0 -0
  833. /package/dist/public/assets/{abap-B7F_Y6dg.js → abap-DSZolcsa.js} +0 -0
  834. /package/dist/public/assets/{actionscript-3-CqxzDtzN.js → actionscript-3-Bxc9IFz2.js} +0 -0
  835. /package/dist/public/assets/{ada-CIijJOPY.js → ada-9zA2Xfc_.js} +0 -0
  836. /package/dist/public/assets/{agent-presence-BFDnO46z.js → agent-presence-DWLDrXbV.js} +0 -0
  837. /package/dist/public/assets/{andromeeda-Rf_hXaRf.js → andromeeda-Dxzaj9Xb.js} +0 -0
  838. /package/dist/public/assets/{apache-BRikmsZ7.js → apache-BxApuO4b.js} +0 -0
  839. /package/dist/public/assets/{apex-bgxkKNLa.js → apex-xZI17LMa.js} +0 -0
  840. /package/dist/public/assets/{app-menubar-gate-Cv0nKfPN.js → app-menubar-gate-CxxJfQzO.js} +0 -0
  841. /package/dist/public/assets/{applescript-Bzri2MxM.js → applescript-B0sGyGHt.js} +0 -0
  842. /package/dist/public/assets/{ara-NDWIZniF.js → ara-o_rW15VA.js} +0 -0
  843. /package/dist/public/assets/{array-DNx71GJU.js → array-CIBL49lt.js} +0 -0
  844. /package/dist/public/assets/{asciidoc-DLdJTvyP.js → asciidoc-BJj9C-U2.js} +0 -0
  845. /package/dist/public/assets/{asm-CbL-kigb.js → asm-Daknainu.js} +0 -0
  846. /package/dist/public/assets/{aurora-x-CMLKGxJw.js → aurora-x-DqRXZXc7.js} +0 -0
  847. /package/dist/public/assets/{auth-prompt-store-BPHueNTO.js → auth-prompt-store-BuIZ8nj2.js} +0 -0
  848. /package/dist/public/assets/{awk--d9kl0b1.js → awk-Bw1VV2Y7.js} +0 -0
  849. /package/dist/public/assets/{ayu-dark-B-kbm2t5.js → ayu-dark-DyzFzv-U.js} +0 -0
  850. /package/dist/public/assets/{ayu-light-BSrxRMQV.js → ayu-light-B7M_HSKN.js} +0 -0
  851. /package/dist/public/assets/{ayu-mirage-D5Z5ARt9.js → ayu-mirage-Bel9UmC9.js} +0 -0
  852. /package/dist/public/assets/{badge-DXNaFLJT.js → badge-C8hrUpuH.js} +0 -0
  853. /package/dist/public/assets/{ballerina-CN4G9Cmy.js → ballerina-DVg0HSRb.js} +0 -0
  854. /package/dist/public/assets/{bat--lZWNGXT.js → bat-B9aG-tPk.js} +0 -0
  855. /package/dist/public/assets/{beancount-DCzA_G5O.js → beancount-Bq8JP8-V.js} +0 -0
  856. /package/dist/public/assets/{berry-Nj9qFwSH.js → berry-DEcbXzBq.js} +0 -0
  857. /package/dist/public/assets/{bibtex-D3y0AjAg.js → bibtex-jhJ8cuSV.js} +0 -0
  858. /package/dist/public/assets/{bicep-K2m5GYnp.js → bicep-BfIjy_mL.js} +0 -0
  859. /package/dist/public/assets/{bird2-i97Lmq53.js → bird2-DUePvaYZ.js} +0 -0
  860. /package/dist/public/assets/{c-PhWlBeZS.js → c-B0N_Ni5p.js} +0 -0
  861. /package/dist/public/assets/{c3-CeeLFJG0.js → c3-D8qAn3Fw.js} +0 -0
  862. /package/dist/public/assets/{cadence-BBAVsMfY.js → cadence-DgY2HxI5.js} +0 -0
  863. /package/dist/public/assets/{catppuccin-frappe-DkBhCm_h.js → catppuccin-frappe-CiSgmdI0.js} +0 -0
  864. /package/dist/public/assets/{catppuccin-latte-Cjcj58HO.js → catppuccin-latte-BEHEYVsc.js} +0 -0
  865. /package/dist/public/assets/{catppuccin-macchiato-DCQlnk4Z.js → catppuccin-macchiato-DrisQ3ft.js} +0 -0
  866. /package/dist/public/assets/{catppuccin-mocha-CVAP8wGe.js → catppuccin-mocha-78vRSkae.js} +0 -0
  867. /package/dist/public/assets/{chunk-7XWMRXBY-BLUgKGIj.js → chunk-7XWMRXBY-CC03Xf2a.js} +0 -0
  868. /package/dist/public/assets/{chunk-A66AFZZU-D5J-3i2I.js → chunk-A66AFZZU-Bz0GdydU.js} +0 -0
  869. /package/dist/public/assets/{chunk-FLYJHZSQ-fkBI-voi.js → chunk-FLYJHZSQ-DBhCRitm.js} +0 -0
  870. /package/dist/public/assets/{chunk-KEIR6QF5-B97jNhCw.js → chunk-KEIR6QF5-OjDqaWoE.js} +0 -0
  871. /package/dist/public/assets/{chunk-SRAX5OIU-nZgS_yeN.js → chunk-SRAX5OIU-CHWyLBvP.js} +0 -0
  872. /package/dist/public/assets/{chunk-Y2CYZVJY-CTUIHOWN.js → chunk-Y2CYZVJY-C7i29bpG.js} +0 -0
  873. /package/dist/public/assets/{clarity-CEtC166s.js → clarity-BQPly3IJ.js} +0 -0
  874. /package/dist/public/assets/{client-version-n6bVKfXT.js → client-version-COB5qx7t.js} +0 -0
  875. /package/dist/public/assets/{clike-Bwibm8NO.js → clike-CcIYhs6l.js} +0 -0
  876. /package/dist/public/assets/{clojure-SVG9YCaX.js → clojure-BOg7LPTP.js} +0 -0
  877. /package/dist/public/assets/{cmake-bXT6_xfB.js → cmake-46Winpkq.js} +0 -0
  878. /package/dist/public/assets/{codeowners-CGabm1Rr.js → codeowners-TH4iPCfS.js} +0 -0
  879. /package/dist/public/assets/{codeql-BmH9BraG.js → codeql-BmQp0Klr.js} +0 -0
  880. /package/dist/public/assets/{colors-DY6SwyM_.js → colors-BxUzKDAK.js} +0 -0
  881. /package/dist/public/assets/{common-lisp-aSvzl7_n.js → common-lisp-CWP6Mh1d.js} +0 -0
  882. /package/dist/public/assets/{copilot-DLy2Kvlv.js → copilot-y4atlWX7.js} +0 -0
  883. /package/dist/public/assets/{coq-BptzC0si.js → coq-LJCTDfXD.js} +0 -0
  884. /package/dist/public/assets/{createLucideIcon-BYL3gqKc.js → createLucideIcon-B6ULg5PN.js} +0 -0
  885. /package/dist/public/assets/{csharp-CRlCca3M.js → csharp-B-psyHXr.js} +0 -0
  886. /package/dist/public/assets/{css-DVo_6oqG.js → css-C5EV2x68.js} +0 -0
  887. /package/dist/public/assets/{csv-C97I5Rnl.js → csv-D9wJv1dG.js} +0 -0
  888. /package/dist/public/assets/{cue-BUYz6scb.js → cue-nlXyPTtH.js} +0 -0
  889. /package/dist/public/assets/{cursor-BZjrNgR6.js → cursor-BVKD3ibX.js} +0 -0
  890. /package/dist/public/assets/{cypher-BUnfQXCd.js → cypher-L1ui-qk-.js} +0 -0
  891. /package/dist/public/assets/{cytoscape.esm-Dy3DzT73.js → cytoscape.esm-CcWDmJHx.js} +0 -0
  892. /package/dist/public/assets/{d-VFtIxq2W.js → d-DXJJEV1x.js} +0 -0
  893. /package/dist/public/assets/{dark-plus-D0qIojXN.js → dark-plus-Rb1l2lwW.js} +0 -0
  894. /package/dist/public/assets/{dart-DHinhNuu.js → dart-0vb_9sx2.js} +0 -0
  895. /package/dist/public/assets/{dax-CyDqrrm7.js → dax-D_XXuTjz.js} +0 -0
  896. /package/dist/public/assets/{defaultLocale-4pz4GyJ6.js → defaultLocale-Cq5-bqQF.js} +0 -0
  897. /package/dist/public/assets/{desktop-oxfTY-fQ.js → desktop-DySmH5bT.js} +0 -0
  898. /package/dist/public/assets/{diff-KPRaIRKE.js → diff-CTocALgj.js} +0 -0
  899. /package/dist/public/assets/{diff-YSi1dXha.js → diff-DibHg78M.js} +0 -0
  900. /package/dist/public/assets/{dist-BEt_n3Bj.js → dist-CxhaAbdb.js} +0 -0
  901. /package/dist/public/assets/{dist-C_J0Iqwf.js → dist-DlsJ2gMP.js} +0 -0
  902. /package/dist/public/assets/{dist-B4r_A2mw.js → dist-WGIYZSIm.js} +0 -0
  903. /package/dist/public/assets/{doc-hash-Dx9hwyex.js → doc-hash-C0Hd9bAb.js} +0 -0
  904. /package/dist/public/assets/{doc-paths-Co-S4Nk5.js → doc-paths-QmJhuuNf.js} +0 -0
  905. /package/dist/public/assets/{docker-B39Gr-F8.js → docker-C4_2RJ_b.js} +0 -0
  906. /package/dist/public/assets/{documents-fetch-CM9yjwOc.js → documents-fetch-CWhWyXwW.js} +0 -0
  907. /package/dist/public/assets/{dotenv-BYD04AoQ.js → dotenv-DMJCQOt8.js} +0 -0
  908. /package/dist/public/assets/{dracula-DZyo-0X7.js → dracula-BTM5IxML.js} +0 -0
  909. /package/dist/public/assets/{dracula-soft-ChaveePv.js → dracula-soft-w5armNV-.js} +0 -0
  910. /package/dist/public/assets/{dream-maker-AMGEOUKN.js → dream-maker-DHzmV4NI.js} +0 -0
  911. /package/dist/public/assets/{emacs-lisp-aiFNf3TX.js → emacs-lisp-5kobz-Pj.js} +0 -0
  912. /package/dist/public/assets/{engine-compile-DQkU3NTo.js → engine-compile-9AZzOgL8.js} +0 -0
  913. /package/dist/public/assets/{everforest-dark-CqnRDJUd.js → everforest-dark-CitO6tcG.js} +0 -0
  914. /package/dist/public/assets/{everforest-light-CJZnWCKT.js → everforest-light-CD7p7DkJ.js} +0 -0
  915. /package/dist/public/assets/{excalidraw-scene-Beu7eb7a.js → excalidraw-scene-Dz8uB8-C.js} +0 -0
  916. /package/dist/public/assets/{external-link-DSbrgMTH.js → external-link-Dzk3biRr.js} +0 -0
  917. /package/dist/public/assets/{fennel-BmDkCPO2.js → fennel-DbVVae3m.js} +0 -0
  918. /package/dist/public/assets/{file-tree-rename-validation-DkwrQpH8.js → file-tree-rename-validation-BWlguLbB.js} +0 -0
  919. /package/dist/public/assets/{file-tree-utils-DGw50SVS.js → file-tree-utils-BTvF88P1.js} +0 -0
  920. /package/dist/public/assets/{fish-DEqoR9OA.js → fish-C0ay0T27.js} +0 -0
  921. /package/dist/public/assets/{fluent-CntH-o8L.js → fluent-Deks1xN1.js} +0 -0
  922. /package/dist/public/assets/{form-B5ftalsR.js → form-Bmi-fWEr.js} +0 -0
  923. /package/dist/public/assets/{format-BgPeaVPK.js → format-CAWQmn3-.js} +0 -0
  924. /package/dist/public/assets/{fortran-free-form-BqSUZAYH.js → fortran-free-form-ixhsCZlX.js} +0 -0
  925. /package/dist/public/assets/{gdscript-B8iuuarp.js → gdscript-XcScwytu.js} +0 -0
  926. /package/dist/public/assets/{gdshader-1a8pC1pr.js → gdshader-DNMhwXhD.js} +0 -0
  927. /package/dist/public/assets/{genie-TBxVlvgP.js → genie-BGfzEEd2.js} +0 -0
  928. /package/dist/public/assets/{gherkin-yK1_QHBI.js → gherkin-DAH0JYDM.js} +0 -0
  929. /package/dist/public/assets/{gherkin-uiqYLh9n.js → gherkin-J8zO8fGk.js} +0 -0
  930. /package/dist/public/assets/{github-dark-Dv1ndBbN.js → github-dark-BFgBS2uc.js} +0 -0
  931. /package/dist/public/assets/{github-dark-default-hHuYYVlP.js → github-dark-default-B2JCXQP3.js} +0 -0
  932. /package/dist/public/assets/{github-dark-dimmed-6Yuj3I95.js → github-dark-dimmed-BONxzwNP.js} +0 -0
  933. /package/dist/public/assets/{github-dark-high-contrast-xkBPZ6Gw.js → github-dark-high-contrast-Cn8P2OXD.js} +0 -0
  934. /package/dist/public/assets/{github-light-Cf9qHeGe.js → github-light-CJwoDhi6.js} +0 -0
  935. /package/dist/public/assets/{github-light-default-Cwn7Z2eg.js → github-light-default-CeTnPDeq.js} +0 -0
  936. /package/dist/public/assets/{github-light-high-contrast-CrnpzxQN.js → github-light-high-contrast-D6kMsIHB.js} +0 -0
  937. /package/dist/public/assets/{gleam-CgOItVyN.js → gleam-DbWpNK4w.js} +0 -0
  938. /package/dist/public/assets/{globals--7ibIAoz.js → globals-DC1QUSMu.js} +0 -0
  939. /package/dist/public/assets/{gn-DbUvGyfp.js → gn-DyCWvSed.js} +0 -0
  940. /package/dist/public/assets/{gnuplot-DObIk4zp.js → gnuplot-BTHfIbv0.js} +0 -0
  941. /package/dist/public/assets/{go-Cc9Pf4kZ.js → go-CbNuiyWW.js} +0 -0
  942. /package/dist/public/assets/{go-2gRi5JlD.js → go-Dkzv5bW1.js} +0 -0
  943. /package/dist/public/assets/{groovy-BXb6Fsap.js → groovy-vMypWjCs.js} +0 -0
  944. /package/dist/public/assets/{gruvbox-dark-hard-Czylenq-.js → gruvbox-dark-hard-COAxC64L.js} +0 -0
  945. /package/dist/public/assets/{gruvbox-dark-medium-kWzdTk2g.js → gruvbox-dark-medium-C_I1dzBr.js} +0 -0
  946. /package/dist/public/assets/{gruvbox-dark-soft-CLVKUjWR.js → gruvbox-dark-soft-oTQqyYmm.js} +0 -0
  947. /package/dist/public/assets/{gruvbox-light-hard-Be9Z2Eym.js → gruvbox-light-hard-DbNidCMl.js} +0 -0
  948. /package/dist/public/assets/{gruvbox-light-medium-D_G8OWSy.js → gruvbox-light-medium-Dliv4Xiw.js} +0 -0
  949. /package/dist/public/assets/{gruvbox-light-soft-8xBVRHUS.js → gruvbox-light-soft-C8MaXIE7.js} +0 -0
  950. /package/dist/public/assets/{haskell-JZjlb1kT.js → haskell-DlKyttBh.js} +0 -0
  951. /package/dist/public/assets/{haxe-DqOeVhdh.js → haxe-BOm1dSaB.js} +0 -0
  952. /package/dist/public/assets/{hcl-Dd1qAGi4.js → hcl-0-uwztOV.js} +0 -0
  953. /package/dist/public/assets/{hjson-fYKTlYTi.js → hjson-C4lsQ6IK.js} +0 -0
  954. /package/dist/public/assets/{hlsl-CxXpO9MY.js → hlsl-Ma5Mybrl.js} +0 -0
  955. /package/dist/public/assets/{horizon-I5VVKZBq.js → horizon-Bi13TClK.js} +0 -0
  956. /package/dist/public/assets/{horizon-bright-Dxnb4dTX.js → horizon-bright-CnWXKpCT.js} +0 -0
  957. /package/dist/public/assets/{houston-DplTFb8b.js → houston-t7CMk6xQ.js} +0 -0
  958. /package/dist/public/assets/{hy-DVwCwadn.js → hy-Dd2ovnsA.js} +0 -0
  959. /package/dist/public/assets/{image-blob-reduce.esm-BsrpMZ7C.js → image-blob-reduce.esm-ebeEo1Hj.js} +0 -0
  960. /package/dist/public/assets/{imba-Bf_bC32l.js → imba-4jB_Gf5U.js} +0 -0
  961. /package/dist/public/assets/{ini-DH8NRqmF.js → ini-DRVtlsa2.js} +0 -0
  962. /package/dist/public/assets/{init-D4gOVDL_.js → init-ZlLtKiqR.js} +0 -0
  963. /package/dist/public/assets/{input-CUJ5gt4q.js → input-BJ0fEcsi.js} +0 -0
  964. /package/dist/public/assets/{isObject-D_TNdrzd.js → isObject-DMwjjI04.js} +0 -0
  965. /package/dist/public/assets/{java-Bd2TH7WL.js → java-PstFD-ux.js} +0 -0
  966. /package/dist/public/assets/{javascript-CZOCR3Iu.js → javascript-DOYJeiUI.js} +0 -0
  967. /package/dist/public/assets/{json-C3XLmYL7.js → json-DlvS95ZG.js} +0 -0
  968. /package/dist/public/assets/{json5-CGRzUoOY.js → json5-C5O_cota.js} +0 -0
  969. /package/dist/public/assets/{jsonc-BvZjR-KK.js → jsonc--IwI7a2p.js} +0 -0
  970. /package/dist/public/assets/{jsonl-DPvEGY9p.js → jsonl-Ce8zijUa.js} +0 -0
  971. /package/dist/public/assets/{jsonnet-BtgB_xmH.js → jsonnet-Byv27Tn4.js} +0 -0
  972. /package/dist/public/assets/{jssm-ChsTqUyC.js → jssm-CK837yDS.js} +0 -0
  973. /package/dist/public/assets/{jsx-BitXevG9.js → jsx-CHhAY8xn.js} +0 -0
  974. /package/dist/public/assets/{kanagawa-dragon-BUYksOA8.js → kanagawa-dragon-CrD6ROm0.js} +0 -0
  975. /package/dist/public/assets/{kanagawa-lotus-AUrL0bsP.js → kanagawa-lotus-CUQoB-Yl.js} +0 -0
  976. /package/dist/public/assets/{kanagawa-wave-BK5w_FWf.js → kanagawa-wave-fz8z2RXe.js} +0 -0
  977. /package/dist/public/assets/{kdl-BaUQOCAD.js → kdl-Bpn1-EST.js} +0 -0
  978. /package/dist/public/assets/{known-skill-dirs-CsDCOBbq.js → known-skill-dirs-CeASGa7q.js} +0 -0
  979. /package/dist/public/assets/{kotlin-DKmeZuQg.js → kotlin-hJiz_jNE.js} +0 -0
  980. /package/dist/public/assets/{kusto-Bj4i1Yoq.js → kusto-6dC88RmT.js} +0 -0
  981. /package/dist/public/assets/{laserwave-BlgVET8-.js → laserwave-BC2Q13bj.js} +0 -0
  982. /package/dist/public/assets/{lean-DUgeZ5v-.js → lean-BorXl2J-.js} +0 -0
  983. /package/dist/public/assets/{less-Cuxtheqm.js → less-DhhD0fCh.js} +0 -0
  984. /package/dist/public/assets/{libesm-AifqMnJy.js → libesm-qYN7x8oa.js} +0 -0
  985. /package/dist/public/assets/{light-plus-dQzBHFiR.js → light-plus-B9CpmvCM.js} +0 -0
  986. /package/dist/public/assets/{lint-config-client-DBF47lRL.js → lint-config-client-BQ7obcmH.js} +0 -0
  987. /package/dist/public/assets/{llvm-BTfOAk91.js → llvm-BIjD1TKs.js} +0 -0
  988. /package/dist/public/assets/{log-CBw5AtOH.js → log-Dja1xlit.js} +0 -0
  989. /package/dist/public/assets/{logo-CLm550Hh.js → logo-C6I3ZIGb.js} +0 -0
  990. /package/dist/public/assets/{lru-string-cache-B0-sPXj-.js → lru-string-cache-DmP_PQwt.js} +0 -0
  991. /package/dist/public/assets/{lua-CW8VWIM3.js → lua-B06OR_yw.js} +0 -0
  992. /package/dist/public/assets/{luau-0Fs_lOll.js → luau-bq3u0CwB.js} +0 -0
  993. /package/dist/public/assets/{make--Jzu6GzT.js → make-CQ5AWO_I.js} +0 -0
  994. /package/dist/public/assets/{markdown-CPBSohqB.js → markdown-DnBDnipm.js} +0 -0
  995. /package/dist/public/assets/{material-theme-DEvD5UZ4.js → material-theme-BZe0_BJo.js} +0 -0
  996. /package/dist/public/assets/{material-theme-darker-CZrxGVe6.js → material-theme-darker-MGccCtZD.js} +0 -0
  997. /package/dist/public/assets/{material-theme-lighter-CW9JmflO.js → material-theme-lighter-B1WC5zBF.js} +0 -0
  998. /package/dist/public/assets/{material-theme-ocean-B93i7uN3.js → material-theme-ocean-FZH3ktjp.js} +0 -0
  999. /package/dist/public/assets/{material-theme-palenight-FaHWd6qe.js → material-theme-palenight-Cfv0zFXy.js} +0 -0
  1000. /package/dist/public/assets/{matlab-DUbfN2P0.js → matlab-D-W85v__.js} +0 -0
  1001. /package/dist/public/assets/{mdx-DfeMpyGu.js → mdx-BNXNZ2cj.js} +0 -0
  1002. /package/dist/public/assets/{mermaid-BpQExIEm.js → mermaid--c-PpMGC.js} +0 -0
  1003. /package/dist/public/assets/{messages-B8opShc5.js → messages-BFGHCRoN.js} +0 -0
  1004. /package/dist/public/assets/{messages-Cglx3rLh.js → messages-Bz4SwP-G.js} +0 -0
  1005. /package/dist/public/assets/{messages-2BedOy73.js → messages-BzF2Rt66.js} +0 -0
  1006. /package/dist/public/assets/{messages-OyDWtEXG.js → messages-CHUjbEwn.js} +0 -0
  1007. /package/dist/public/assets/{messages-ljeH_RVY.js → messages-CX1tqwDf.js} +0 -0
  1008. /package/dist/public/assets/{messages-2nWfbASZ.js → messages-CdTXcpVf.js} +0 -0
  1009. /package/dist/public/assets/{messages-B6TTQykB.js → messages-Cz0HTcE3.js} +0 -0
  1010. /package/dist/public/assets/{messages-CoH0BQof.js → messages-DWK9QAzw.js} +0 -0
  1011. /package/dist/public/assets/{messages-DLTrnn4g.js → messages-DjwF8F4A.js} +0 -0
  1012. /package/dist/public/assets/{messages-gJJ1yZCM.js → messages-Qsv6EJD7.js} +0 -0
  1013. /package/dist/public/assets/{messages-CWOPfzkF.js → messages-UNuKuBb2.js} +0 -0
  1014. /package/dist/public/assets/{messages-CynqJMTN.js → messages-rkjIP7BR.js} +0 -0
  1015. /package/dist/public/assets/{min-x3trf8Wh.js → min-C3EnDfWD.js} +0 -0
  1016. /package/dist/public/assets/{min-dark-ds7OKtpz.js → min-dark-jinLN79I.js} +0 -0
  1017. /package/dist/public/assets/{min-light-CvhvAUF7.js → min-light-DpWMlKkA.js} +0 -0
  1018. /package/dist/public/assets/{mipsasm-BPMRTpVR.js → mipsasm-D3nXYN6u.js} +0 -0
  1019. /package/dist/public/assets/{mojo-mqHG_8Zu.js → mojo-ykapqeOI.js} +0 -0
  1020. /package/dist/public/assets/{monokai-BLh-8PR2.js → monokai-D7DxhyjV.js} +0 -0
  1021. /package/dist/public/assets/{moonbit-BrcCxAL7.js → moonbit-B45V1Mxi.js} +0 -0
  1022. /package/dist/public/assets/{move-z4fznRzz.js → move-CJXJ5kgl.js} +0 -0
  1023. /package/dist/public/assets/{narrat-xqb1WNjw.js → narrat-JGO1CsZ0.js} +0 -0
  1024. /package/dist/public/assets/{nextflow-groovy-Coic21px.js → nextflow-groovy-DWZ3P1td.js} +0 -0
  1025. /package/dist/public/assets/{night-owl-Cmhq-RnR.js → night-owl-DjncBgSs.js} +0 -0
  1026. /package/dist/public/assets/{night-owl-light-M9ihfTXG.js → night-owl-light-CojWvZjK.js} +0 -0
  1027. /package/dist/public/assets/{nix-CfTyUKg3.js → nix-yWl6uOeG.js} +0 -0
  1028. /package/dist/public/assets/{nord-A6d_L6Cl.js → nord-DCLwIg10.js} +0 -0
  1029. /package/dist/public/assets/{nushell-_tXIO8Mu.js → nushell-DceyBohD.js} +0 -0
  1030. /package/dist/public/assets/{objective-c-fxpWCyJB.js → objective-c-CFZnxjWN.js} +0 -0
  1031. /package/dist/public/assets/{objective-cpp-B9X3nKwe.js → objective-cpp-bczueh0P.js} +0 -0
  1032. /package/dist/public/assets/{ocaml-CYpCwFSs.js → ocaml-Bn4hDq22.js} +0 -0
  1033. /package/dist/public/assets/{odin-DbghylMb.js → odin-Dya0fWtn.js} +0 -0
  1034. /package/dist/public/assets/{ok-04mPbAHz.js → ok-BO5HgbJ5.js} +0 -0
  1035. /package/dist/public/assets/{ok-syntax-theme-COS26B1a.js → ok-syntax-theme-io_5x-Qs.js} +0 -0
  1036. /package/dist/public/assets/{one-dark-pro-CaqELo4Z.js → one-dark-pro-BHx3HaQN.js} +0 -0
  1037. /package/dist/public/assets/{one-light-B0L7nP8t.js → one-light-DARxk-ZH.js} +0 -0
  1038. /package/dist/public/assets/{openscad-Bfd5iptt.js → openscad-CSvKlppz.js} +0 -0
  1039. /package/dist/public/assets/{panel-DEds67m5.js → panel-CSN_wKuN.js} +0 -0
  1040. /package/dist/public/assets/{panzoom.es-BoM-00N2.js → panzoom.es-DSmCmxNI.js} +0 -0
  1041. /package/dist/public/assets/{parse-api-error-Dd8VI2eu.js → parse-api-error-BtEdpaFC.js} +0 -0
  1042. /package/dist/public/assets/{pascal-BAUmrnOV.js → pascal-Py8Y26_w.js} +0 -0
  1043. /package/dist/public/assets/{path-CPUiTFzQ.js → path-BwaGTGAF.js} +0 -0
  1044. /package/dist/public/assets/{pdf-BjH5cynh.js → pdf-DsGWx9MR.js} +0 -0
  1045. /package/dist/public/assets/{pdf.worker-jlry72Tu.js → pdf.worker-CdUNbM2t.js} +0 -0
  1046. /package/dist/public/assets/{perl-TCh9AkO5.js → perl-BpTK_99I.js} +0 -0
  1047. /package/dist/public/assets/{pica-Bul6BynE.js → pica-DgnKuydh.js} +0 -0
  1048. /package/dist/public/assets/{pierre-dark-CB7Itgmj.js → pierre-dark-D1AlHWIF.js} +0 -0
  1049. /package/dist/public/assets/{pierre-dark-protanopia-deuteranopia-pO4f3hGn.js → pierre-dark-protanopia-deuteranopia-DbhpMXz8.js} +0 -0
  1050. /package/dist/public/assets/{pierre-dark-soft-CefVsUEh.js → pierre-dark-soft-CwS8-TWI.js} +0 -0
  1051. /package/dist/public/assets/{pierre-dark-tritanopia-ComIQsyj.js → pierre-dark-tritanopia-CM8vUsqG.js} +0 -0
  1052. /package/dist/public/assets/{pierre-dark-vibrant-CTq6Sa-e.js → pierre-dark-vibrant-CCxZ4mP6.js} +0 -0
  1053. /package/dist/public/assets/{pierre-light-c5o_H7Dj.js → pierre-light-0ZbpEda_.js} +0 -0
  1054. /package/dist/public/assets/{pierre-light-protanopia-deuteranopia-CJBbHrGe.js → pierre-light-protanopia-deuteranopia-BHzR-EvC.js} +0 -0
  1055. /package/dist/public/assets/{pierre-light-soft-JttgXXbp.js → pierre-light-soft-Be1n3xmF.js} +0 -0
  1056. /package/dist/public/assets/{pierre-light-tritanopia-CTXp22X0.js → pierre-light-tritanopia-BtBdp_Lz.js} +0 -0
  1057. /package/dist/public/assets/{pierre-light-vibrant-CTPd4A4U.js → pierre-light-vibrant-Cs52wh62.js} +0 -0
  1058. /package/dist/public/assets/{pkl-D1Raamoh.js → pkl-C3_PMUnt.js} +0 -0
  1059. /package/dist/public/assets/{plastic-DOBRIFPi.js → plastic-ChCR-Oi-.js} +0 -0
  1060. /package/dist/public/assets/{platform-labels-DmyLwrQy.js → platform-labels-B5GR8Z3W.js} +0 -0
  1061. /package/dist/public/assets/{plsql-K45YPj8B.js → plsql-2uyEHPGH.js} +0 -0
  1062. /package/dist/public/assets/{po-B8VpnsOH.js → po-CJ0tnki0.js} +0 -0
  1063. /package/dist/public/assets/{poimandres-Cl0D4D_C.js → poimandres-CsatT7E2.js} +0 -0
  1064. /package/dist/public/assets/{polar-CtoCMCep.js → polar-h9WThOBV.js} +0 -0
  1065. /package/dist/public/assets/{popover-DoM32eoR.js → popover-abEBgxlu.js} +0 -0
  1066. /package/dist/public/assets/{postcss-IkQtPjAK.js → postcss-C2xcQDmK.js} +0 -0
  1067. /package/dist/public/assets/{powerquery-C8jFjmoo.js → powerquery-r5jJap2N.js} +0 -0
  1068. /package/dist/public/assets/{powershell-Bq7yOUp3.js → powershell-Cj6vR5Hk.js} +0 -0
  1069. /package/dist/public/assets/{prisma-zztXlC5k.js → prisma-Dez3BDHJ.js} +0 -0
  1070. /package/dist/public/assets/{prolog-DUTXoi_n.js → prolog-B-qvXHGe.js} +0 -0
  1071. /package/dist/public/assets/{properties-C6JlqUYK.js → properties-CXZ93Sj9.js} +0 -0
  1072. /package/dist/public/assets/{proto-D9A7v2uW.js → proto-dIqd9RIQ.js} +0 -0
  1073. /package/dist/public/assets/{puppet-Q6WUQCsq.js → puppet-COm8W9B3.js} +0 -0
  1074. /package/dist/public/assets/{purescript-Bv9Fin5-.js → purescript-DiMyY0-F.js} +0 -0
  1075. /package/dist/public/assets/{python-X9bxiKBC.js → python-BL0AB_In.js} +0 -0
  1076. /package/dist/public/assets/{qmldir-DEjuifjU.js → qmldir-Bhhvcnio.js} +0 -0
  1077. /package/dist/public/assets/{qss-CB_rsY2M.js → qss-C5kNWOHu.js} +0 -0
  1078. /package/dist/public/assets/{r-BQ61XUt1.js → r-6I8fpMCz.js} +0 -0
  1079. /package/dist/public/assets/{r-bfGeUk5F.js → r-6REuHb_k.js} +0 -0
  1080. /package/dist/public/assets/{racket-DR9XE678.js → racket-QW--YKJY.js} +0 -0
  1081. /package/dist/public/assets/{raku-DIeRvMME.js → raku-C_gIJtnR.js} +0 -0
  1082. /package/dist/public/assets/{receive-store-OL80o-sI.js → receive-store-Dh2b2q8X.js} +0 -0
  1083. /package/dist/public/assets/{red-2Wm7r03G.js → red-C3y8wg_5.js} +0 -0
  1084. /package/dist/public/assets/{reg-BZodVhnT.js → reg-DvrMjdrX.js} +0 -0
  1085. /package/dist/public/assets/{regexp-BLO2r6uV.js → regexp-BFDkJf4r.js} +0 -0
  1086. /package/dist/public/assets/{rel-DBfXZsLw.js → rel-BfIKyFJJ.js} +0 -0
  1087. /package/dist/public/assets/{riscv-DMoXJcP9.js → riscv-BtAckVaF.js} +0 -0
  1088. /package/dist/public/assets/{ron-B7t8_B6-.js → ron-DJRojUd9.js} +0 -0
  1089. /package/dist/public/assets/{rose-pine-dawn-DomeE1kn.js → rose-pine-dawn-DFZAV9se.js} +0 -0
  1090. /package/dist/public/assets/{rose-pine-moon-Dn8dgARE.js → rose-pine-moon-8ySGfB8B.js} +0 -0
  1091. /package/dist/public/assets/{rose-pine-Bej_3qFk.js → rose-pine-y7xhpIqh.js} +0 -0
  1092. /package/dist/public/assets/{rosmsg-CSuTPVnl.js → rosmsg-XUccipVe.js} +0 -0
  1093. /package/dist/public/assets/{rough.esm-PymitDBj.js → rough.esm-YabbDRgn.js} +0 -0
  1094. /package/dist/public/assets/{roundRect-BEmpM44f.js → roundRect-CXCm5C_R.js} +0 -0
  1095. /package/dist/public/assets/{ruby-D3hxKllI.js → ruby-CdXM6IqG.js} +0 -0
  1096. /package/dist/public/assets/{rust-BKZ0ei9R.js → rust-B1RZf81S.js} +0 -0
  1097. /package/dist/public/assets/{sass-t0ZG6n8e.js → sass-CAgk9VaM.js} +0 -0
  1098. /package/dist/public/assets/{scala-asn9mO8k.js → scala-CKotP4WJ.js} +0 -0
  1099. /package/dist/public/assets/{schema-fields-view-intent-_9aQC2Cm.js → schema-fields-view-intent-BmdVD1Ow.js} +0 -0
  1100. /package/dist/public/assets/{scheme-BeitcsPX.js → scheme-B_nc3x3r.js} +0 -0
  1101. /package/dist/public/assets/{sdbl-D5MTprHp.js → sdbl-BEa_fRNJ.js} +0 -0
  1102. /package/dist/public/assets/{share-metadata-rows-x7aTYdJp.js → share-metadata-rows-ilD-74Hh.js} +0 -0
  1103. /package/dist/public/assets/{shell-DBJvOCIU.js → shell-DzJ_wg0U.js} +0 -0
  1104. /package/dist/public/assets/{shellscript-CS0MpU9F.js → shellscript-D3Af9GXP.js} +0 -0
  1105. /package/dist/public/assets/{skeleton-IXDSleLh.js → skeleton-CuYI7n5h.js} +0 -0
  1106. /package/dist/public/assets/{skill-scope-D9dg7q4P.js → skill-scope-G8t8fVNQ.js} +0 -0
  1107. /package/dist/public/assets/{slack-dark-CZbB5TVt.js → slack-dark-C3Sqheil.js} +0 -0
  1108. /package/dist/public/assets/{slack-ochin-BfkMAwFc.js → slack-ochin-Ca16jFEU.js} +0 -0
  1109. /package/dist/public/assets/{smalltalk-CzLfCjUV.js → smalltalk-k1CdvuKU.js} +0 -0
  1110. /package/dist/public/assets/{snazzy-light-DkJhsjEA.js → snazzy-light-C63ULEhI.js} +0 -0
  1111. /package/dist/public/assets/{solarized-dark-mvextcT9.js → solarized-dark-Cj9Sg5-q.js} +0 -0
  1112. /package/dist/public/assets/{solarized-light-B7g9n1rJ.js → solarized-light-BpXlAVVA.js} +0 -0
  1113. /package/dist/public/assets/{solidity-Bzcwq-hs.js → solidity-DEFtR0Y6.js} +0 -0
  1114. /package/dist/public/assets/{sortable.esm-_XYOlees.js → sortable.esm-CicQhqQB.js} +0 -0
  1115. /package/dist/public/assets/{splunk-DLphb0RA.js → splunk-Dxah7Ajf.js} +0 -0
  1116. /package/dist/public/assets/{sql-BkyzSV9J.js → sql-CqBYLkD0.js} +0 -0
  1117. /package/dist/public/assets/{sql-BUdYgAuy.js → sql-DVhICgn7.js} +0 -0
  1118. /package/dist/public/assets/{src-B5LmWD6e.js → src-OCZeAMOR.js} +0 -0
  1119. /package/dist/public/assets/{ssh-config-C5_vSDFY.js → ssh-config-gAQYuPyY.js} +0 -0
  1120. /package/dist/public/assets/{startup-marks-Ml5LD4ks.js → startup-marks-CAXeS3y-.js} +0 -0
  1121. /package/dist/public/assets/{stex-CO8mFD4t.js → stex-Zz9my9K3.js} +0 -0
  1122. /package/dist/public/assets/{stylus--Su7UdeX.js → stylus-BXLwAh1o.js} +0 -0
  1123. /package/dist/public/assets/{swift-DxchGxPl.js → swift-DbPHKQe8.js} +0 -0
  1124. /package/dist/public/assets/{swift-C5RtnVJD.js → swift-SjGjlB6S.js} +0 -0
  1125. /package/dist/public/assets/{synthwave-84-CIZ9Dzoh.js → synthwave-84-DNFUt5WW.js} +0 -0
  1126. /package/dist/public/assets/{system-verilog-DJd_VM4L.js → system-verilog-BzATV2Ds.js} +0 -0
  1127. /package/dist/public/assets/{systemd-Cd620qf7.js → systemd-DTrVoN0w.js} +0 -0
  1128. /package/dist/public/assets/{tabs-B9Ncs2Ot.js → tabs-BX9EzPKk.js} +0 -0
  1129. /package/dist/public/assets/{talonscript-C6n820U_.js → talonscript-BTOT6QBX.js} +0 -0
  1130. /package/dist/public/assets/{tasl-CkEqu_M1.js → tasl-DKsGBBgP.js} +0 -0
  1131. /package/dist/public/assets/{tcl-CJMqCrmQ.js → tcl-BAWKF4ss.js} +0 -0
  1132. /package/dist/public/assets/{terminal-command-events-DBrAYz2u.js → terminal-command-events-BiHx_5OF.js} +0 -0
  1133. /package/dist/public/assets/{terraform-CJeinmur.js → terraform-CtMtmYzD.js} +0 -0
  1134. /package/dist/public/assets/{textarea-BlVs71hx.js → textarea-CcZScuQl.js} +0 -0
  1135. /package/dist/public/assets/{thread-client-D6kQOHZl.js → thread-client-DTD90ua3.js} +0 -0
  1136. /package/dist/public/assets/{timeline-diff-store-CdyjyOp2.js → timeline-diff-store-CtUeIujA.js} +0 -0
  1137. /package/dist/public/assets/{tokyo-night-DKV0i25T.js → tokyo-night-BN_zFOqF.js} +0 -0
  1138. /package/dist/public/assets/{toml-DUS-uie-.js → toml-85RE8Zdf.js} +0 -0
  1139. /package/dist/public/assets/{toml-D9iZU0lq.js → toml-CIAPUPXY.js} +0 -0
  1140. /package/dist/public/assets/{tool-list-format-B0ec_7sK.js → tool-list-format-CDSiMc2f.js} +0 -0
  1141. /package/dist/public/assets/{tsv-BjMD-rgC.js → tsv-CZd0RQVM.js} +0 -0
  1142. /package/dist/public/assets/{tsx-B0YyuJfA.js → tsx-CvtvQkyn.js} +0 -0
  1143. /package/dist/public/assets/{turtle-DINvzTQp.js → turtle-DgtCO8nE.js} +0 -0
  1144. /package/dist/public/assets/{typescript-BvTmagZY.js → typescript-BL2vp5oK.js} +0 -0
  1145. /package/dist/public/assets/{typespec-D8JR2guc.js → typespec-CYuRrm7C.js} +0 -0
  1146. /package/dist/public/assets/{typst-avMnPV69.js → typst-BkcI8tK9.js} +0 -0
  1147. /package/dist/public/assets/{use-apply-config-theme-CBmHKD_B.js → use-apply-config-theme-DpLdjUDN.js} +0 -0
  1148. /package/dist/public/assets/{use-collab-url-CqeAlJNl.js → use-collab-url-C3yTspbv.js} +0 -0
  1149. /package/dist/public/assets/{use-conflicts-CXDbJNoF.js → use-conflicts-DiZABY7z.js} +0 -0
  1150. /package/dist/public/assets/{use-workspace-DAuqjfCS.js → use-workspace-CTwWGz8m.js} +0 -0
  1151. /package/dist/public/assets/{useLintConfigViewMode-E5ymIys_.js → useLintConfigViewMode-CV1FjId8.js} +0 -0
  1152. /package/dist/public/assets/{v-CPTrpd8n.js → v-COFLiBpc.js} +0 -0
  1153. /package/dist/public/assets/{vala-DRdQ5Iel.js → vala-CG9zULl-.js} +0 -0
  1154. /package/dist/public/assets/{vb-BV3rAAxF.js → vb-DbDFzPfO.js} +0 -0
  1155. /package/dist/public/assets/{verilog-BHwQnzmI.js → verilog-4Ltb1FP8.js} +0 -0
  1156. /package/dist/public/assets/{vesper-BjaGi8Rl.js → vesper-Chyzn3Gi.js} +0 -0
  1157. /package/dist/public/assets/{vhdl-HggOQuPz.js → vhdl-Kw0tnumC.js} +0 -0
  1158. /package/dist/public/assets/{viml-CNr-Bj6Q.js → viml-CNwdgpxc.js} +0 -0
  1159. /package/dist/public/assets/{vitesse-black-UFUHYZOi.js → vitesse-black-DRq-2qpD.js} +0 -0
  1160. /package/dist/public/assets/{vitesse-dark-9SuNhqla.js → vitesse-dark-_tYBvODb.js} +0 -0
  1161. /package/dist/public/assets/{vitesse-light-CkuFARs9.js → vitesse-light-Bvte-NBt.js} +0 -0
  1162. /package/dist/public/assets/{vyper-DYMl3ZVz.js → vyper-CznWmfmp.js} +0 -0
  1163. /package/dist/public/assets/{wasm-BeTBJmtX.js → wasm-BtkbiGLP.js} +0 -0
  1164. /package/dist/public/assets/{wasm-pE0h2nPb.js → wasm-DVWRFeDn.js} +0 -0
  1165. /package/dist/public/assets/{wenyan-DzYi3FsB.js → wenyan-DnVJoe6V.js} +0 -0
  1166. /package/dist/public/assets/{wgsl-vXrXZ2k-.js → wgsl-CnJmjbeD.js} +0 -0
  1167. /package/dist/public/assets/{wikitext-BW3gGb1i.js → wikitext-DsgX7Zv-.js} +0 -0
  1168. /package/dist/public/assets/{wit-BG_nO3uR.js → wit-DB11Bwjo.js} +0 -0
  1169. /package/dist/public/assets/{wolfram-TZsfMO7V.js → wolfram-DEe0h2Eo.js} +0 -0
  1170. /package/dist/public/assets/{workspace-paths-hw0bowEX.js → workspace-paths-Dczkx4vn.js} +0 -0
  1171. /package/dist/public/assets/{yaml-Bkc3eLkv.js → yaml-PSF0tvOa.js} +0 -0
  1172. /package/dist/public/assets/{zenscript-DXCoB67p.js → zenscript-BlgubyTs.js} +0 -0
  1173. /package/dist/public/assets/{zig-CvoE9o0e.js → zig-BNcxHDRf.js} +0 -0
@@ -0,0 +1,5 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./messages-rkjIP7BR.js","./chunk-CYidjpOJ.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i}from"./dist-PQ5KMVDh.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{Bt as o,Do as s,Ft as c,It as l,Lt as u,Mo as d,Ni as f,Qo as p,Rt as m,Vt as h,as as ee,bn as te,ci as ne,ds as g,fs as re,ki as _,ko as ie,ms as ae,ns as oe,pi as se,po as v,ps as ce,vn as le,wt as ue,zt as de}from"./dist-D6JA916i.js";import{n as fe}from"./dist-CJhtNlOm2.js";import{t as pe}from"./dist-Cr4-nBVI.js";import{n as me,r as he}from"./use-apply-config-theme-DpLdjUDN.js";import{r as ge}from"./client-version-COB5qx7t.js";import{a as _e,c as ve,p as ye,r as be}from"./use-apply-config-color-theme-CrI3027i.js";import"./i18n-Cdl0-EY2.js";var xe=a(),y=e(r(),1),Se=null,Ce=new Set;function we(){return Se}function Te(e){let t=e!==null&&e.length>0?e:null;if(t!==Se){Se=t;for(let e of Ce)try{e()}catch(e){console.warn(`[server-instance-store] subscriber threw:`,e)}}}function Ee(e){return Ce.add(e),()=>{Ce.delete(e)}}function De(){return(0,y.useSyncExternalStore)(Ee,we,we)}var b=()=>new Map,Oe=e=>{let t=b();return e.forEach((e,n)=>{t.set(n,e)}),t},x=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},ke=(e,t)=>{let n=[];for(let[r,i]of e)n.push(t(i,r));return n},Ae=(e,t)=>{for(let[n,r]of e)if(t(r,n))return!0;return!1},S=()=>new Set,je=e=>e[e.length-1],Me=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},C=Array.from,Ne=(e,t)=>{for(let n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0},Pe=(e,t)=>{for(let n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1},Fe=(e,t)=>{let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r,n);return n},Ie=Array.isArray,Le=class{constructor(){this._observers=b()}on(e,t){return x(this._observers,e,S).add(t),t}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return C((this._observers.get(e)||b()).values()).forEach(e=>e(...t))}destroy(){this._observers=b()}},Re=class{constructor(){this._observers=b()}on(e,t){x(this._observers,e,S).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return C((this._observers.get(e)||b()).values()).forEach(e=>e(...t))}destroy(){this._observers=b()}},w=Math.floor,ze=Math.abs,Be=(e,t)=>e<t?e:t,T=(e,t)=>e>t?e:t;Number.isNaN;var Ve=e=>e===0?1/e<0:e<0,He=1<<17,Ue=1<<18,We=1<<19,Ge=1<<20,Ke=1<<21,qe=1<<22,Je=1<<23,Ye=1<<24,Xe=1<<25,Ze=1<<26,Qe=1<<27,$e=1<<28,et=1<<29;He-1,Ue-1,We-1,Ge-1,Ke-1,qe-1,Je-1,Ye-1,Xe-1,Ze-1,Qe-1,$e-1,et-1;var tt=2**53-1,nt=-(2**53-1),rt=Number.isInteger||(e=>typeof e==`number`&&isFinite(e)&&w(e)===e);Number.isNaN,Number.parseInt;var it=String.fromCharCode;String.fromCodePoint,it(65535);var at=e=>e.toLowerCase(),ot=/^\s*/g,st=e=>e.replace(ot,``),ct=/([A-Z])/g,lt=(e,t)=>st(e.replace(ct,e=>`${t}${at(e)}`)),ut=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},dt=typeof TextEncoder<`u`?new TextEncoder:null,ft=dt?e=>dt.encode(e):ut,pt=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});pt&&pt.decode(new Uint8Array).length===1&&(pt=null);var mt=(e,t)=>Fe(t,()=>e).join(``),ht=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},gt=()=>new ht,_t=e=>{let t=gt();return e(t),E(t)},vt=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},E=e=>{let t=new Uint8Array(vt(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},yt=(e,t)=>{let n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(T(n,t)*2),e.cpos=0)},D=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},bt=D,O=(e,t)=>{for(;t>127;)D(e,128|127&t),t=w(t/128);D(e,127&t)},xt=(e,t)=>{let n=Ve(t);for(n&&(t=-t),D(e,(t>63?128:0)|(n?64:0)|63&t),t=w(t/64);t>0;)D(e,(t>127?128:0)|127&t),t=w(t/128)},St=new Uint8Array(3e4),Ct=St.length/3,wt=dt&&dt.encodeInto?(e,t)=>{if(t.length<Ct){let n=dt.encodeInto(t,St).written||0;O(e,n);for(let t=0;t<n;t++)D(e,St[t])}else k(e,ft(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;O(e,r);for(let t=0;t<r;t++)D(e,n.codePointAt(t))},Tt=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Be(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(T(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},k=(e,t)=>{O(e,t.byteLength),Tt(e,t)},Et=(e,t)=>{yt(e,t);let n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},Dt=(e,t)=>Et(e,4).setFloat32(0,t,!1),Ot=(e,t)=>Et(e,8).setFloat64(0,t,!1),kt=(e,t)=>Et(e,8).setBigInt64(0,t,!1),At=new DataView(new ArrayBuffer(4)),jt=e=>(At.setFloat32(0,e),At.getFloat32(0)===e),Mt=(e,t)=>{switch(typeof t){case`string`:D(e,119),wt(e,t);break;case`number`:rt(t)&&ze(t)<=2147483647?(D(e,125),xt(e,t)):jt(t)?(D(e,124),Dt(e,t)):(D(e,123),Ot(e,t));break;case`bigint`:D(e,122),kt(e,t);break;case`object`:if(t===null)D(e,126);else if(Ie(t)){D(e,117),O(e,t.length);for(let n=0;n<t.length;n++)Mt(e,t[n])}else if(t instanceof Uint8Array)D(e,116),k(e,t);else{D(e,118);let n=Object.keys(t);O(e,n.length);for(let r=0;r<n.length;r++){let i=n[r];wt(e,i),Mt(e,t[i])}}break;case`boolean`:D(e,t?120:121);break;default:D(e,127)}},Nt=class extends ht{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&O(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}},Pt=e=>{e.count>0&&(xt(e.encoder,e.count===1?e.s:-e.s),e.count>1&&O(e.encoder,e.count-2))},Ft=class{constructor(){this.encoder=new ht,this.s=0,this.count=0}write(e){this.s===e?this.count++:(Pt(this),this.count=1,this.s=e)}toUint8Array(){return Pt(this),E(this.encoder)}},It=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);xt(e.encoder,t),e.count>1&&O(e.encoder,e.count-2)}},Lt=class{constructor(){this.encoder=new ht,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(It(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return It(this),E(this.encoder)}},Rt=class{constructor(){this.sarr=[],this.s=``,this.lensE=new Ft}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=``),this.lensE.write(e.length)}toUint8Array(){let e=new ht;return this.sarr.push(this.s),this.s=``,wt(e,this.sarr.join(``)),Tt(e,this.lensE.toUint8Array()),E(e)}},A=e=>Error(e),j=()=>{throw A(`Method unimplemented`)},M=()=>{throw A(`Unexpected case`)},zt=A(`Unexpected end of array`),Bt=A(`Integer out of Range`),Vt=class{constructor(e){this.arr=e,this.pos=0}},Ht=e=>new Vt(e),Ut=e=>e.pos!==e.arr.length,Wt=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},N=e=>Wt(e,P(e)),Gt=e=>e.arr[e.pos++],P=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&127)*n,n*=128,r<128)return t;if(t>tt)throw Bt}throw zt},Kt=e=>{let t=e.arr[e.pos++],n=t&63,r=64,i=(t&64)>0?-1:1;if(!(t&128))return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&127)*r,r*=128,t<128)return i*n;if(n>tt)throw Bt}throw zt},qt=pt?e=>pt.decode(N(e)):e=>{let t=P(e);if(t===0)return``;{let n=String.fromCodePoint(Gt(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Gt(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Jt=(e,t)=>{let n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},Yt=[e=>void 0,e=>null,Kt,e=>Jt(e,4).getFloat32(0,!1),e=>Jt(e,8).getFloat64(0,!1),e=>Jt(e,8).getBigInt64(0,!1),e=>!1,e=>!0,qt,e=>{let t=P(e),n={};for(let r=0;r<t;r++){let t=qt(e);n[t]=Xt(e)}return n},e=>{let t=P(e),n=[];for(let r=0;r<t;r++)n.push(Xt(e));return n},N],Xt=e=>Yt[127-Gt(e)](e),Zt=class extends Vt{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),Ut(this)?this.count=P(this)+1:this.count=-1),this.count--,this.s}},Qt=class extends Vt{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=Kt(this);let e=Ve(this.s);this.count=1,e&&(this.s=-this.s,this.count=P(this)+2)}return this.count--,this.s}},$t=class extends Vt{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let e=Kt(this),t=e&1;this.diff=w(e/2),this.count=1,t&&(this.count=P(this)+2)}return this.s+=this.diff,this.count--,this.s}},en=class{constructor(e){this.decoder=new Qt(e),this.str=qt(this.decoder),this.spos=0}read(){let e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}};crypto.subtle;var tn=crypto.getRandomValues.bind(crypto),nn=Math.random,rn=()=>tn(new Uint32Array(1))[0],an=e=>e[w(nn()*e.length)],on=`10000000-1000-4000-8000-100000000000`,sn=()=>on.replace(/[018]/g,e=>(e^rn()&15>>e/4).toString(16)),cn=Date.now,ln=e=>new Promise(e);Promise.all.bind(Promise);var un=e=>e===void 0?null:e,dn=new class{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}};try{typeof localStorage<`u`&&localStorage&&(dn=localStorage)}catch{}var fn=dn,pn=Symbol(`Equality`),mn=(e,t)=>e===t||!!e?.[pn]?.(t)||!1,hn=e=>typeof e==`object`,gn=Object.assign,_n=Object.keys,vn=(e,t)=>{for(let n in e)t(e[n],n)},yn=e=>_n(e).length,bn=e=>{for(let t in e)return!1;return!0},xn=(e,t)=>{for(let n in e)if(!t(e[n],n))return!1;return!0},Sn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Cn=(e,t)=>e===t||yn(e)===yn(t)&&xn(e,(e,n)=>(e!==void 0||Sn(t,n))&&mn(t[n],e)),wn=Object.freeze,Tn=e=>{for(let t in e){let n=e[t];(typeof n==`object`||typeof n==`function`)&&Tn(e[t])}return wn(e)},En=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&En(e,t,n+1)}},Dn=e=>e,On=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[pn]!=null)return e[pn](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!On(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(yn(e)!==yn(t))return!1;for(let n in e)if(!Sn(e,n)||!On(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!On(e[n],t[n]))return!1;break;default:return!1}return!0},kn=(e,t)=>t.includes(e),An=typeof process<`u`&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`,jn=typeof window<`u`&&typeof document<`u`&&!An;typeof navigator<`u`&&/Mac/.test(navigator.platform);var F,Mn=[],Nn=()=>{if(F===void 0)if(An){F=b();let e=process.argv,t=null;for(let n=0;n<e.length;n++){let r=e[n];r[0]===`-`?(t!==null&&F.set(t,``),t=r):t===null?Mn.push(r):(F.set(t,r),t=null)}t!==null&&F.set(t,``)}else typeof location==`object`?(F=b(),(location.search||`?`).slice(1).split(`&`).forEach(e=>{if(e.length!==0){let[t,n]=e.split(`=`);F.set(`--${lt(t,`-`)}`,n),F.set(`-${lt(t,`-`)}`,n)}})):F=b();return F},Pn=e=>Nn().has(e),Fn=e=>un(An?{}[e.toUpperCase().replaceAll(`-`,`_`)]:fn.getItem(e)),In=e=>Pn(`--`+e)||Fn(e)!==null,Ln=In(`production`),Rn=An&&kn({}.FORCE_COLOR,[`true`,`1`,`2`])||!Pn(`--no-colors`)&&!In(`no-color`)&&(!An||process.stdout.isTTY)&&(!An||Pn(`--color`)||Fn(`COLORTERM`)!==null||(Fn(`TERM`)||``).includes(`color`)),zn=e=>new Uint8Array(e),Bn=jn?e=>{let t=``;for(let n=0;n<e.byteLength;n++)t+=it(e[n]);return btoa(t)}:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(`base64`),Vn=e=>{let t=zn(e.byteLength);return t.set(e),t},Hn=e=>_t(t=>Mt(t,e)),Un=class{constructor(e,t){this.left=e,this.right=t}},Wn=(e,t)=>new Un(e,t),Gn=(e,t)=>e.forEach(e=>t(e.left,e.right)),Kn=e=>e.next()>=.5,qn=(e,t,n)=>w(e.next()*(n+1-t)+t),Jn=(e,t,n)=>w(e.next()*(n+1-t)+t),Yn=(e,t,n)=>Jn(e,t,n),Xn=e=>it(Yn(e,97,122)),Zn=(e,t=0,n=20)=>{let r=Yn(e,t,n),i=``;for(let t=0;t<r;t++)i+=Xn(e);return i},Qn=(e,t)=>t[Yn(e,0,t.length-1)],$n=Symbol(`0schema`),er=class{constructor(){this._rerrs=[]}extend(e,t,n,r=null){this._rerrs.push({path:e,expected:t,has:n,message:r})}toString(){let e=[];for(let t=this._rerrs.length-1;t>0;t--){let n=this._rerrs[t];e.push(mt(` `,(this._rerrs.length-t)*2)+`${n.path==null?``:`[${n.path}] `}${n.has} doesn't match ${n.expected}. ${n.message}`)}return e.join(`
3
+ `)}},tr=(e,t)=>e===t?!0:e==null||t==null||e.constructor!==t.constructor?!1:e[pn]?mn(e,t):Ie(e)?Ne(e,e=>Pe(t,t=>tr(e,t))):hn(e)?xn(e,(e,n)=>tr(e,t[n])):!1,I=class{static _dilutes=!1;extends(e){let[t,n]=[this.shape,e.shape];return this.constructor._dilutes&&([n,t]=[t,n]),tr(t,n)}equals(e){return this.constructor===e.constructor&&On(this.shape,e.shape)}[$n](){return!0}[pn](e){return this.equals(e)}validate(e){return this.check(e)}check(e,t){j()}get nullable(){return Mr(this,qr)}get optional(){return new ur(this)}cast(e){return Zr(e,this),e}expect(e){return Zr(e,this),e}},nr=class extends I{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t=void 0){let n=e?.constructor===this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name,e?.constructor===this.shape?`Check failed`:`Constructor match failed`),n}},L=(e,t=null)=>new nr(e,t);L(nr);var rr=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape(e);return!n&&t?.extend(null,`custom prop`,e?.constructor.name,`failed to check custom prop`),n}},R=e=>new rr(e);L(rr);var ir=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape.some(t=>t===e);return!n&&t?.extend(null,this.shape.join(` | `),e.toString()),n}},ar=(...e)=>new ir(e),or=L(ir),sr=RegExp.escape||(e=>e.replace(/[().|&,$^[\]]/g,e=>`\\`+e)),cr=e=>{if(Hr.check(e))return[sr(e)];if(or.check(e))return e.shape.map(e=>e+``);if(Vr.check(e))return[`[+-]?\\d+.?\\d*`];if(Ur.check(e))return[`.*`];if(Nr.check(e))return e.shape.map(cr).flat(1);M()};L(class extends I{constructor(e){super(),this.shape=e,this._r=RegExp(`^`+e.map(cr).map(e=>`(${e.join(`|`)})`).join(``)+`$`)}check(e,t){let n=this._r.exec(e)!=null;return!n&&t?.extend(null,this._r.toString(),e.toString(),`String doesn't match string template.`),n}});var lr=Symbol(`optional`),ur=class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=e===void 0||this.shape.check(e);return!n&&t?.extend(null,`undefined (optional)`,`()`),n}get[lr](){return!0}},dr=L(ur),fr=class extends I{check(e,t){return t?.extend(null,`never`,typeof e),!1}};new fr,L(fr);var pr=class e extends I{constructor(e,t=!1){super(),this.shape=e,this._isPartial=t}static _dilutes=!0;get partial(){return new e(this.shape,!0)}check(e,t){return e==null?(t?.extend(null,`object`,`null`),!1):xn(this.shape,(n,r)=>{let i=this._isPartial&&!Sn(e,r)||n.check(e[r],t);return!i&&t?.extend(r.toString(),n.toString(),typeof e[r],`Object property does not match`),i})}},mr=e=>new pr(e),hr=L(pr),gr=R(e=>e!=null&&(e.constructor===Object||e.constructor==null)),_r=class extends I{constructor(e,t){super(),this.shape={keys:e,values:t}}check(e,t){return e!=null&&xn(e,(n,r)=>{let i=this.shape.keys.check(r,t);return!i&&t?.extend(r+``,`Record`,typeof e,i?`Key doesn't match schema`:`Value doesn't match value`),i&&this.shape.values.check(n,t)})}},vr=(e,t)=>new _r(e,t),yr=L(_r),br=class extends I{constructor(e){super(),this.shape=e}check(e,t){return e!=null&&xn(this.shape,(n,r)=>{let i=n.check(e[r],t);return!i&&t?.extend(r.toString(),`Tuple`,typeof n),i})}},xr=(...e)=>new br(e);L(br);var Sr=class extends I{constructor(e){super(),this.shape=e.length===1?e[0]:new jr(e)}check(e,t){let n=Ie(e)&&Ne(e,e=>this.shape.check(e));return!n&&t?.extend(null,`Array`,``),n}},Cr=(...e)=>new Sr(e),wr=L(Sr),Tr=R(e=>Ie(e)),Er=class extends I{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t){let n=e instanceof this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name),n}},Dr=(e,t=null)=>new Er(e,t);L(Er);var Or=Dr(I),kr=L(class extends I{constructor(e){super(),this.len=e.length-1,this.args=xr(...e.slice(-1)),this.res=e[this.len]}check(e,t){let n=e.constructor===Function&&e.length<=this.len;return!n&&t?.extend(null,`function`,typeof e),n}}),Ar=R(e=>typeof e==`function`);L(class extends I{constructor(e){super(),this.shape=e}check(e,t){let n=Ne(this.shape,n=>n.check(e,t));return!n&&t?.extend(null,`Intersectinon`,typeof e),n}},e=>e.shape.length>0);var jr=class extends I{static _dilutes=!0;constructor(e){super(),this.shape=e}check(e,t){let n=Pe(this.shape,n=>n.check(e,t));return t?.extend(null,`Union`,typeof e),n}},Mr=(...e)=>e.findIndex(e=>Nr.check(e))>=0?Mr(...e.map(e=>Xr(e)).map(e=>Nr.check(e)?e.shape:[e]).flat(1)):e.length===1?e[0]:new jr(e),Nr=L(jr),Pr=()=>!0,Fr=R(Pr),Ir=L(rr,e=>e.shape===Pr),Lr=R(e=>typeof e==`bigint`),Rr=R(e=>e===Lr),zr=R(e=>typeof e==`symbol`);R(e=>e===zr);var Br=R(e=>typeof e==`number`),Vr=R(e=>e===Br),Hr=R(e=>typeof e==`string`),Ur=R(e=>e===Hr),Wr=R(e=>typeof e==`boolean`),Gr=R(e=>e===Wr),Kr=ar(void 0);L(ir,e=>e.shape.length===1&&e.shape[0]===void 0),ar(void 0);var qr=ar(null),Jr=L(ir,e=>e.shape.length===1&&e.shape[0]===null);L(Uint8Array),L(nr,e=>e.shape===Uint8Array);var Yr=Mr(Br,Hr,qr,Kr,Lr,Wr,zr);(()=>{let e=Cr(Fr),t=vr(Hr,Fr),n=Mr(Br,Hr,qr,Wr,e,t);return e.shape=n,t.shape.values=n,n})();var Xr=e=>{if(Or.check(e))return e;if(gr.check(e)){let t={};for(let n in e)t[n]=Xr(e[n]);return mr(t)}else if(Tr.check(e))return Mr(...e.map(Xr));else if(Yr.check(e))return ar(e);else if(Ar.check(e))return L(e);M()},Zr=Ln?()=>{}:(e,t)=>{let n=new er;if(!t.check(e,n))throw A(`Expected value to be of type ${t.constructor.name}.\n${n.toString()}`)},Qr=class{constructor(e){this.patterns=[],this.$state=e}if(e,t){return this.patterns.push({if:Xr(e),h:t}),this}else(e){return this.if(Fr,e)}done(){return(e,t)=>{for(let n=0;n<this.patterns.length;n++){let r=this.patterns[n];if(r.if.check(e))return r.h(e,t)}throw A(`Unhandled pattern`)}}},$r=(e=>new Qr(e))(Fr).if(Vr,(e,t)=>qn(t,nt,tt)).if(Ur,(e,t)=>Zn(t)).if(Gr,(e,t)=>Kn(t)).if(Rr,(e,t)=>BigInt(qn(t,nt,tt))).if(Nr,(e,t)=>ei(t,Qn(t,e.shape))).if(hr,(e,t)=>{let n={};for(let r in e.shape){let i=e.shape[r];if(dr.check(i)){if(Kn(t))continue;i=i.shape}n[r]=$r(i,t)}return n}).if(wr,(e,t)=>{let n=[],r=Jn(t,0,42);for(let i=0;i<r;i++)n.push(ei(t,e.shape));return n}).if(or,(e,t)=>Qn(t,e.shape)).if(Jr,(e,t)=>null).if(kr,(e,t)=>{let n=ei(t,e.res);return()=>n}).if(Ir,(e,t)=>ei(t,Qn(t,[Br,Hr,qr,Kr,Lr,Wr,Cr(Br),vr(Mr(`a`,`b`,`c`),Br)]))).if(yr,(e,t)=>{let n={},r=qn(t,0,3);for(let i=0;i<r;i++){let r=ei(t,e.shape.keys);n[r]=ei(t,e.shape.values)}return n}).done(),ei=(e,t)=>$r(Xr(t),e),z=typeof document<`u`?document:{},ti=e=>z.createElement(e),ni=()=>z.createDocumentFragment();R(e=>e.nodeType===mi);var ri=e=>z.createTextNode(e);typeof DOMParser<`u`&&new DOMParser;var ii=(e,t)=>(Gn(t,(t,n)=>{n===!1?e.removeAttribute(t):n===!0?e.setAttribute(t,``):e.setAttribute(t,n)}),e),ai=e=>{let t=ni();for(let n=0;n<e.length;n++)ui(t,e[n]);return t},oi=(e,t)=>(ui(e,ai(t)),e),si=(e,t=[],n=[])=>oi(ii(ti(e),t),n);R(e=>e.nodeType===di);var ci=ri;R(e=>e.nodeType===fi);var li=e=>ke(e,(e,t)=>`${t}:${e};`).join(``),ui=(e,t)=>e.appendChild(t),di=z.ELEMENT_NODE,fi=z.TEXT_NODE;z.CDATA_SECTION_NODE,z.COMMENT_NODE;var pi=z.DOCUMENT_NODE;z.DOCUMENT_TYPE_NODE;var mi=z.DOCUMENT_FRAGMENT_NODE;R(e=>e.nodeType===pi);var hi=(e=>class{constructor(e){this._=e}destroy(){e(this._)}})(clearTimeout),gi=(e,t)=>new hi(setTimeout(t,e)),_i=Symbol,vi=_i(),yi=_i(),bi=_i(),xi=_i(),Si=_i(),Ci=_i(),wi=_i(),Ti=_i(),Ei=_i(),Di=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=0;for(;r<e.length;r++){let n=e[r];if(n===void 0)break;if(n.constructor===String||n.constructor===Number)t.push(n);else if(n.constructor===Object)break}for(r>0&&n.push(t.join(``));r<e.length;r++){let t=e[r];t instanceof Symbol||n.push(t)}return n};cn();var Oi={[vi]:Wn(`font-weight`,`bold`),[yi]:Wn(`font-weight`,`normal`),[bi]:Wn(`color`,`blue`),[Si]:Wn(`color`,`green`),[xi]:Wn(`color`,`grey`),[Ci]:Wn(`color`,`red`),[wi]:Wn(`color`,`purple`),[Ti]:Wn(`color`,`orange`),[Ei]:Wn(`color`,`black`)},ki=Rn?e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=b(),i=[],a=0;for(;a<e.length;a++){let i=e[a],o=Oi[i];if(o!==void 0)r.set(o.left,o.right);else{if(i===void 0)break;if(i.constructor===String||i.constructor===Number){let e=li(r);a>0||e.length>0?(t.push(`%c`+i),n.push(e)):t.push(i)}else break}}for(a>0&&(i=n,i.unshift(t.join(``)));a<e.length;a++){let t=e[a];t instanceof Symbol||i.push(t)}return i}:Di,Ai=(...e)=>{console.log(...ki(e)),Mi.forEach(t=>t.print(e))},ji=(...e)=>{console.warn(...ki(e)),e.unshift(Ti),Mi.forEach(t=>t.print(e))},Mi=S(),Ni=e=>({[Symbol.iterator](){return this},next:e}),Pi=(e,t)=>Ni(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),Fi=(e,t)=>Ni(()=>{let{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}}),Ii=class{constructor(e,t){this.clock=e,this.len=t}},Li=class{constructor(){this.clients=new Map}},Ri=(e,t,n)=>t.clients.forEach((t,r)=>{let i=e.doc.store.clients.get(r);if(i!=null){let r=i[i.length-1],a=r.id.clock+r.length;for(let r=0,o=t[r];r<t.length&&o.clock<a;o=t[++r])$a(e,i,o.clock,o.len,n)}}),zi=(e,t)=>{let n=0,r=e.length-1;for(;n<=r;){let i=w((n+r)/2),a=e[i],o=a.clock;if(o<=t){if(t<o+a.len)return i;n=i+1}else r=i-1}return null},Bi=(e,t)=>{let n=e.clients.get(t.client);return n!==void 0&&zi(n,t.clock)!==null},Vi=e=>{e.clients.forEach(e=>{e.sort((e,t)=>e.clock-t.clock);let t,n;for(t=1,n=1;t<e.length;t++){let r=e[n-1],i=e[t];r.clock+r.len>=i.clock?e[n-1]=new Ii(r.clock,T(r.len,i.clock+i.len-r.clock)):(n<t&&(e[n]=i),n++)}e.length=n})},Hi=e=>{let t=new Li;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){let a=r.slice();for(let t=n+1;t<e.length;t++)Me(a,e[t].clients.get(i)||[]);t.clients.set(i,a)}});return Vi(t),t},Ui=(e,t,n,r)=>{x(e.clients,t,()=>[]).push(new Ii(n,r))},Wi=()=>new Li,Gi=e=>{let t=Wi();return e.clients.forEach((e,n)=>{let r=[];for(let t=0;t<e.length;t++){let n=e[t];if(n.deleted){let i=n.id.clock,a=n.length;if(t+1<e.length)for(let n=e[t+1];t+1<e.length&&n.deleted;n=e[++t+1])a+=n.length;r.push(new Ii(i,a))}}r.length>0&&t.clients.set(n,r)}),t},Ki=(e,t)=>{O(e.restEncoder,t.clients.size),C(t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),O(e.restEncoder,t);let r=n.length;O(e.restEncoder,r);for(let t=0;t<r;t++){let r=n[t];e.writeDsClock(r.clock),e.writeDsLen(r.len)}})},qi=e=>{let t=new Li,n=P(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();let n=P(e.restDecoder),r=P(e.restDecoder);if(r>0){let i=x(t.clients,n,()=>[]);for(let t=0;t<r;t++)i.push(new Ii(e.readDsClock(),e.readDsLen()))}}return t},Ji=(e,t,n)=>{let r=new Li,i=P(e.restDecoder);for(let a=0;a<i;a++){e.resetDsCurVal();let i=P(e.restDecoder),a=P(e.restDecoder),o=n.clients.get(i)||[],s=V(n,i);for(let n=0;n<a;n++){let n=e.readDsClock(),a=n+e.readDsLen();if(n<s){s<a&&Ui(r,i,s,a-s);let e=H(o,n),c=o[e];for(!c.deleted&&c.id.clock<n&&(o.splice(e+1,0,fc(t,c,n-c.id.clock)),e++);e<o.length&&(c=o[e++],c.id.clock<a);)c.deleted||(a<c.id.clock+c.length&&o.splice(e,0,fc(t,c,a-c.id.clock)),c.delete(t))}else Ui(r,i,n,a-n)}}if(r.clients.size>0){let e=new ia;return O(e.restEncoder,0),Ki(e,r),e.toUint8Array()}return null},Yi=rn,Xi=class e extends Le{constructor({guid:e=sn(),collectionid:t=null,gc:n=!0,gcFilter:r=()=>!0,meta:i=null,autoLoad:a=!1,shouldLoad:o=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=Yi(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new Ka,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=o,this.autoLoad=a,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=ln(e=>{this.on(`load`,()=>{this.isLoaded=!0,e(this)})});let s=()=>ln(e=>{let t=n=>{(n===void 0||n===!0)&&(this.off(`sync`,t),e())};this.on(`sync`,t)});this.on(`sync`,e=>{e===!1&&this.isSynced&&(this.whenSynced=s()),this.isSynced=e===void 0||e===!0,this.isSynced&&!this.isLoaded&&this.emit(`load`,[this])}),this.whenSynced=s()}load(){let e=this._item;e!==null&&!this.shouldLoad&&W(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(C(this.subdocs).map(e=>e.guid))}transact(e,t=null){return W(this,e,t)}get(e,t=K){let n=x(this.share,e,()=>{let e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==K&&r!==t)if(r===K){let r=new t;r._map=n._map,n._map.forEach(e=>{for(;e!==null;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;e!==null;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}else throw Error(`Type with the name ${e} has already been defined with a different constructor`);return n}getArray(e=``){return this.get(e,ns)}getText(e=``){return this.get(e,Cs)}getMap(e=``){return this.get(e,as)}getXmlElement(e=``){return this.get(e,Os)}getXmlFragment(e=``){return this.get(e,Es)}toJSON(){let e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){this.isDestroyed=!0,C(this.subdocs).forEach(e=>e.destroy());let t=this._item;if(t!==null){this._item=null;let n=t.content;n.doc=new e({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,W(t.parent.doc,e=>{let r=n.doc;t.deleted||e.subdocsAdded.add(r),e.subdocsRemoved.add(this)},null,!0)}this.emit(`destroyed`,[!0]),this.emit(`destroy`,[this]),super.destroy()}},Zi=class{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return P(this.restDecoder)}readDsLen(){return P(this.restDecoder)}},Qi=class extends Zi{readLeftID(){return B(P(this.restDecoder),P(this.restDecoder))}readRightID(){return B(P(this.restDecoder),P(this.restDecoder))}readClient(){return P(this.restDecoder)}readInfo(){return Gt(this.restDecoder)}readString(){return qt(this.restDecoder)}readParentInfo(){return P(this.restDecoder)===1}readTypeRef(){return P(this.restDecoder)}readLen(){return P(this.restDecoder)}readAny(){return Xt(this.restDecoder)}readBuf(){return Vn(N(this.restDecoder))}readJSON(){return JSON.parse(qt(this.restDecoder))}readKey(){return qt(this.restDecoder)}},$i=class{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=P(this.restDecoder),this.dsCurrVal}readDsLen(){let e=P(this.restDecoder)+1;return this.dsCurrVal+=e,e}},ea=class extends $i{constructor(e){super(e),this.keys=[],P(e),this.keyClockDecoder=new $t(N(e)),this.clientDecoder=new Qt(N(e)),this.leftClockDecoder=new $t(N(e)),this.rightClockDecoder=new $t(N(e)),this.infoDecoder=new Zt(N(e),Gt),this.stringDecoder=new en(N(e)),this.parentInfoDecoder=new Zt(N(e),Gt),this.typeRefDecoder=new Qt(N(e)),this.lenDecoder=new Qt(N(e))}readLeftID(){return new Da(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Da(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Xt(this.restDecoder)}readBuf(){return N(this.restDecoder)}readJSON(){return Xt(this.restDecoder)}readKey(){let e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{let e=this.stringDecoder.read();return this.keys.push(e),e}}},ta=class{constructor(){this.restEncoder=gt()}toUint8Array(){return E(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){O(this.restEncoder,e)}writeDsLen(e){O(this.restEncoder,e)}},na=class extends ta{writeLeftID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeRightID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeClient(e){O(this.restEncoder,e)}writeInfo(e){bt(this.restEncoder,e)}writeString(e){wt(this.restEncoder,e)}writeParentInfo(e){O(this.restEncoder,+!!e)}writeTypeRef(e){O(this.restEncoder,e)}writeLen(e){O(this.restEncoder,e)}writeAny(e){Mt(this.restEncoder,e)}writeBuf(e){k(this.restEncoder,e)}writeJSON(e){wt(this.restEncoder,JSON.stringify(e))}writeKey(e){wt(this.restEncoder,e)}},ra=class{constructor(){this.restEncoder=gt(),this.dsCurrVal=0}toUint8Array(){return E(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){let t=e-this.dsCurrVal;this.dsCurrVal=e,O(this.restEncoder,t)}writeDsLen(e){e===0&&M(),O(this.restEncoder,e-1),this.dsCurrVal+=e}},ia=class extends ra{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Lt,this.clientEncoder=new Ft,this.leftClockEncoder=new Lt,this.rightClockEncoder=new Lt,this.infoEncoder=new Nt(bt),this.stringEncoder=new Rt,this.parentInfoEncoder=new Nt(bt),this.typeRefEncoder=new Ft,this.lenEncoder=new Ft}toUint8Array(){let e=gt();return O(e,0),k(e,this.keyClockEncoder.toUint8Array()),k(e,this.clientEncoder.toUint8Array()),k(e,this.leftClockEncoder.toUint8Array()),k(e,this.rightClockEncoder.toUint8Array()),k(e,E(this.infoEncoder)),k(e,this.stringEncoder.toUint8Array()),k(e,E(this.parentInfoEncoder)),k(e,this.typeRefEncoder.toUint8Array()),k(e,this.lenEncoder.toUint8Array()),Tt(e,E(this.restEncoder)),E(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(+!!e)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){Mt(this.restEncoder,e)}writeBuf(e){k(this.restEncoder,e)}writeJSON(e){Mt(this.restEncoder,e)}writeKey(e){let t=this.keyMap.get(e);t===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}},aa=(e,t,n,r)=>{r=T(r,t[0].id.clock);let i=H(t,r);O(e.restEncoder,t.length-i),e.writeClient(n),O(e.restEncoder,r);let a=t[i];a.write(e,r-a.id.clock);for(let n=i+1;n<t.length;n++)t[n].write(e,0)},oa=(e,t,n)=>{let r=new Map;n.forEach((e,n)=>{V(t,n)>e&&r.set(n,e)}),qa(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),O(e.restEncoder,r.size),C(r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{aa(e,t.clients.get(n),n,r)})},sa=(e,t)=>{let n=b(),r=P(e.restDecoder);for(let i=0;i<r;i++){let r=P(e.restDecoder),i=Array(r),a=e.readClient(),o=P(e.restDecoder);n.set(a,{i:0,refs:i});for(let n=0;n<r;n++){let r=e.readInfo();switch(31&r){case 0:{let t=e.readLen();i[n]=new q(B(a,o),t),o+=t;break}case 10:{let t=P(e.restDecoder);i[n]=new X(B(a,o),t),o+=t;break}default:{let s=(r&192)==0,c=new Y(B(a,o),null,(r&128)==128?e.readLeftID():null,null,(r&64)==64?e.readRightID():null,s?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,s&&(r&32)==32?e.readString():null,hc(e,r));i[n]=c,o+=c.length}}}}return n},ca=(e,t,n)=>{let r=[],i=C(n.keys()).sort((e,t)=>e-t);if(i.length===0)return null;let a=()=>{if(i.length===0)return null;let e=n.get(i[i.length-1]);for(;e.refs.length===e.i;)if(i.pop(),i.length>0)e=n.get(i[i.length-1]);else return null;return e},o=a();if(o===null)return null;let s=new Ka,c=new Map,l=(e,t)=>{let n=c.get(e);(n==null||n>t)&&c.set(e,t)},u=o.refs[o.i++],d=new Map,f=()=>{for(let e of r){let t=e.id.client,r=n.get(t);r?(r.i--,s.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):s.clients.set(t,[e]),i=i.filter(e=>e!==t)}r.length=0};for(;;){if(u.constructor!==X){let i=x(d,u.id.client,()=>V(t,u.id.client))-u.id.clock;if(i<0)r.push(u),l(u.id.client,u.id.clock-1),f();else{let a=u.getMissing(e,t);if(a!==null){r.push(u);let e=n.get(a)||{refs:[],i:0};if(e.refs.length===e.i)l(a,V(t,a)),f();else{u=e.refs[e.i++];continue}}else (i===0||i<u.length)&&(u.integrate(e,i),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(o!==null&&o.i<o.refs.length)u=o.refs[o.i++];else{if(o=a(),o===null)break;u=o.refs[o.i++]}}if(s.clients.size>0){let e=new ia;return oa(e,s,new Map),O(e.restEncoder,0),{missing:c,update:e.toUint8Array()}}return null},la=(e,t)=>oa(e,t.doc.store,t.beforeState),ua=(e,t,n,r=new ea(e))=>W(t,e=>{e.local=!1;let t=!1,n=e.doc,i=n.store,a=ca(e,i,sa(r,n)),o=i.pendingStructs;if(o){for(let[e,n]of o.missing)if(n<V(i,e)){t=!0;break}if(a){for(let[e,t]of a.missing){let n=o.missing.get(e);(n==null||n>t)&&o.missing.set(e,t)}o.update=_o([o.update,a.update])}}else i.pendingStructs=a;let s=Ji(r,e,i);if(i.pendingDs){let t=new ea(Ht(i.pendingDs));P(t.restDecoder);let n=Ji(t,e,i);s&&n?i.pendingDs=_o([s,n]):i.pendingDs=s||n}else i.pendingDs=s;if(t){let t=i.pendingStructs.update;i.pendingStructs=null,da(e.doc,t)}},n,!1),da=(e,t,n,r=ea)=>{let i=Ht(t);ua(i,e,n,new r(i))},fa=(e,t,n)=>da(e,t,n,Qi),pa=(e,t,n=new Map)=>{oa(e,t.store,n),Ki(e,Gi(t.store))},ma=(e,t=new Uint8Array([0]),n=new ia)=>{pa(n,e,_a(t));let r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(vo(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===na)return ho(r.map((e,t)=>t===0?e:Co(e)));if(n.constructor===ia)return _o(r)}return r[0]},ha=(e,t)=>ma(e,t,new na),ga=e=>{let t=new Map,n=P(e.restDecoder);for(let r=0;r<n;r++){let n=P(e.restDecoder),r=P(e.restDecoder);t.set(n,r)}return t},_a=e=>ga(new Zi(Ht(e))),va=(e,t)=>(O(e.restEncoder,t.size),C(t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{O(e.restEncoder,t),O(e.restEncoder,n)}),e),ya=(e,t)=>va(e,qa(t.store)),ba=(e,t=new ra)=>(e instanceof Map?va(t,e):ya(t,e),t.toUint8Array()),xa=e=>ba(e,new ta),Sa=class{constructor(){this.l=[]}},Ca=()=>new Sa,wa=(e,t)=>e.l.push(t),Ta=(e,t)=>{let n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error(`[yjs] Tried to remove event handler that doesn't exist.`)},Ea=(e,t,n)=>En(e.l,[t,n]),Da=class{constructor(e,t){this.client=e,this.clock=t}},Oa=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,B=(e,t)=>new Da(e,t),ka=e=>{for(let[t,n]of e.doc.share.entries())if(n===e)return t;throw M()},Aa=(e,t)=>{for(;t!==null;){if(t.parent===e)return!0;t=t.parent._item}return!1},ja=class{constructor(e,t,n,r=0){this.type=e,this.tname=t,this.item=n,this.assoc=r}},Ma=e=>{let t={};return e.type&&(t.type=e.type),e.tname&&(t.tname=e.tname),e.item&&(t.item=e.item),e.assoc!=null&&(t.assoc=e.assoc),t},Na=e=>new ja(e.type==null?null:B(e.type.client,e.type.clock),e.tname??null,e.item==null?null:B(e.item.client,e.item.clock),e.assoc==null?0:e.assoc),Pa=class{constructor(e,t,n=0){this.type=e,this.index=t,this.assoc=n}},Fa=(e,t,n=0)=>new Pa(e,t,n),Ia=(e,t,n)=>{let r=null,i=null;return e._item===null?i=ka(e):r=B(e._item.id.client,e._item.id.clock),new ja(r,i,t,n)},La=(e,t,n=0)=>{let r=e._start;if(n<0){if(t===0)return Ia(e,null,n);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return Ia(e,B(r.id.client,r.id.clock+t),n);t-=r.length}if(r.right===null&&n<0)return Ia(e,r.lastId,n);r=r.right}return Ia(e,null,n)},Ra=(e,t)=>{let n=Ya(e,t);return{item:n,diff:t.clock-n.id.clock}},za=(e,t,n=!0)=>{let r=t.store,i=e.item,a=e.type,o=e.tname,s=e.assoc,c=null,l=0;if(i!==null){if(V(r,i.client)<=i.clock)return null;let e=n?uc(r,i):Ra(r,i),t=e.item;if(!(t instanceof Y))return null;if(c=t.parent,c._item===null||!c._item.deleted){l=t.deleted||!t.countable?0:e.diff+(s>=0?0:1);let n=t.left;for(;n!==null;)!n.deleted&&n.countable&&(l+=n.length),n=n.left}}else{if(o!==null)c=t.get(o);else if(a!==null){if(V(r,a.client)<=a.clock)return null;let{item:e}=n?uc(r,a):{item:Ya(r,a)};if(e instanceof Y&&e.content instanceof cc)c=e.content.type;else return null}else throw M();l=s>=0?c._length:0}return Fa(c,l,e.assoc)},Ba=(e,t)=>e===t||e!==null&&t!==null&&e.tname===t.tname&&Oa(e.item,t.item)&&Oa(e.type,t.type)&&e.assoc===t.assoc,Va=class{constructor(e,t){this.ds=e,this.sv=t}},Ha=(e,t)=>new Va(e,t);Ha(Wi(),new Map);var Ua=e=>Ha(Gi(e.store),qa(e.store)),Wa=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!Bi(t.ds,e.id),Ga=(e,t)=>{let n=x(e.meta,Ga,S),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t<V(r,n)&&U(e,B(n,t))}),Ri(e,t.ds,e=>{}),n.add(t))},Ka=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},qa=e=>{let t=new Map;return e.clients.forEach((e,n)=>{let r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},V=(e,t)=>{let n=e.clients.get(t);if(n===void 0)return 0;let r=n[n.length-1];return r.id.clock+r.length},Ja=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{let e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw M()}n.push(t)},H=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let o=w(t/(a+i.length-1)*r);for(;n<=r;){if(i=e[o],a=i.id.clock,a<=t){if(t<a+i.length)return o;n=o+1}else r=o-1;o=w((n+r)/2)}throw M()},Ya=(e,t)=>{let n=e.clients.get(t.client);return n[H(n,t.clock)]},Xa=(e,t,n)=>{let r=H(t,n),i=t[r];return i.id.clock<n&&i instanceof Y?(t.splice(r+1,0,fc(e,i,n-i.id.clock)),r+1):r},U=(e,t)=>{let n=e.doc.store.clients.get(t.client);return n[Xa(e,n,t.clock)]},Za=(e,t,n)=>{let r=t.clients.get(n.client),i=H(r,n.clock),a=r[i];return n.clock!==a.id.clock+a.length-1&&a.constructor!==q&&r.splice(i+1,0,fc(e,a,n.clock-a.id.clock+1)),a},Qa=(e,t,n)=>{let r=e.clients.get(t.id.client);r[H(r,t.id.clock)]=n},$a=(e,t,n,r,i)=>{if(r===0)return;let a=n+r,o=Xa(e,t,n),s;do s=t[o++],a<s.id.clock+s.length&&Xa(e,t,a),i(s);while(o<t.length&&t[o].id.clock<a)},eo=class{constructor(e,t,n){this.doc=e,this.deleteSet=new Li,this.beforeState=qa(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=n,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}},to=(e,t)=>t.deleteSet.clients.size===0&&!Ae(t.afterState,(e,n)=>t.beforeState.get(n)!==e)?!1:(Vi(t.deleteSet),la(e,t),Ki(e,t.deleteSet),!0),no=(e,t,n)=>{let r=t._item;(r===null||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&x(e.changed,t,S).add(n)},ro=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n)){n instanceof Y&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);continue}break}let a=t-i;return a&&e.splice(t+1-a,a),a},io=(e,t,n)=>{for(let[r,i]of e.clients.entries()){let e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){let a=i[r],o=a.clock+a.len;for(let r=H(e,a.clock),i=e[r];r<e.length&&i.id.clock<o;i=e[++r]){let i=e[r];if(a.clock+a.len<=i.id.clock)break;i instanceof Y&&i.deleted&&!i.keep&&n(i)&&i.gc(t,!1)}}}},ao=(e,t)=>{e.clients.forEach((e,n)=>{let r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){let n=e[t],i=Be(r.length-1,1+H(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+ro(r,e)}})},oo=(e,t)=>{if(t<e.length){let n=e[t],r=n.doc,i=r.store,a=n.deleteSet,o=n._mergeStructs;try{Vi(a),n.afterState=qa(n.doc.store),r.emit(`beforeObserverCalls`,[n,r]);let e=[];n.changed.forEach((t,r)=>e.push(()=>{(r._item===null||!r._item.deleted)&&r._callObserver(n,t)})),e.push(()=>{n.changedParentTypes.forEach((t,r)=>{r._dEH.l.length>0&&(r._item===null||!r._item.deleted)&&(t=t.filter(e=>e.target._item===null||!e.target._item.deleted),t.forEach(e=>{e.currentTarget=r,e._path=null}),t.sort((e,t)=>e.path.length-t.path.length),e.push(()=>{Ea(r._dEH,t,n)}))}),e.push(()=>r.emit(`afterTransaction`,[n,r])),e.push(()=>{n._needFormattingCleanup&&bs(n)})}),En(e,[])}finally{r.gc&&io(a,i,r.gcFilter),ao(a,i),n.afterState.forEach((e,t)=>{let r=n.beforeState.get(t)||0;if(r!==e){let e=i.clients.get(t),n=T(H(e,r),1);for(let t=e.length-1;t>=n;)t-=1+ro(e,t)}});for(let e=o.length-1;e>=0;e--){let{client:t,clock:n}=o[e].id,r=i.clients.get(t),a=H(r,n);a+1<r.length&&ro(r,a+1)>1||a>0&&ro(r,a)}if(!n.local&&n.afterState.get(r.clientID)!==n.beforeState.get(r.clientID)&&(Ai(Ti,vi,`[yjs] `,yi,Ci,`Changed the client-id because another client seems to be using it.`),r.clientID=Yi()),r.emit(`afterTransactionCleanup`,[n,r]),r._observers.has(`update`)){let e=new na;to(e,n)&&r.emit(`update`,[e.toUint8Array(),n.origin,r,n])}if(r._observers.has(`updateV2`)){let e=new ia;to(e,n)&&r.emit(`updateV2`,[e.toUint8Array(),n.origin,r,n])}let{subdocsAdded:s,subdocsLoaded:c,subdocsRemoved:l}=n;(s.size>0||l.size>0||c.size>0)&&(s.forEach(e=>{e.clientID=r.clientID,e.collectionid??=r.collectionid,r.subdocs.add(e)}),l.forEach(e=>r.subdocs.delete(e)),r.emit(`subdocs`,[{loaded:c,added:s,removed:l},r,n]),l.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit(`afterAllTransactions`,[r,e])):oo(e,t+1)}}},W=(e,t,n=null,r=!0)=>{let i=e._transactionCleanups,a=!1,o=null;e._transaction===null&&(a=!0,e._transaction=new eo(e,n,r),i.push(e._transaction),i.length===1&&e.emit(`beforeAllTransactions`,[e]),e.emit(`beforeTransaction`,[e._transaction,e]));try{o=t(e._transaction)}finally{if(a){let t=e._transaction===i[0];e._transaction=null,t&&oo(i,0)}}return o},so=class{constructor(e,t){this.insertions=t,this.deletions=e,this.meta=new Map}},co=(e,t,n)=>{Ri(e,n.deletions,n=>{n instanceof Y&&t.scope.some(t=>t===e.doc||Aa(t,n))&&dc(n,!1)})},lo=(e,t,n)=>{let r=null,i=e.doc,a=e.scope;W(i,n=>{for(;t.length>0&&e.currStackItem===null;){let r=i.store,o=t.pop(),s=new Set,c=[],l=!1;Ri(n,o.insertions,e=>{if(e instanceof Y){if(e.redone!==null){let{item:t,diff:i}=uc(r,e.id);i>0&&(t=U(n,B(t.id.client,t.id.clock+i))),e=t}!e.deleted&&a.some(t=>t===n.doc||Aa(t,e))&&c.push(e)}}),Ri(n,o.deletions,e=>{e instanceof Y&&a.some(t=>t===n.doc||Aa(t,e))&&!Bi(o.insertions,e.id)&&s.add(e)}),s.forEach(t=>{l=mc(n,t,s,o.insertions,e.ignoreRemoteMapChanges,e)!==null||l});for(let t=c.length-1;t>=0;t--){let r=c[t];e.deleteFilter(r)&&(r.delete(n),l=!0)}e.currStackItem=l?o:null}n.changed.forEach((e,t)=>{e.has(null)&&t._searchMarker&&(t._searchMarker.length=0)}),r=n},e);let o=e.currStackItem;if(o!=null){let t=r.changedParentTypes;e.emit(`stack-item-popped`,[{stackItem:o,type:n,changedParentTypes:t,origin:e},e]),e.currStackItem=null}return o},uo=class extends Le{constructor(e,{captureTimeout:t=500,captureTransaction:n=e=>!0,deleteFilter:r=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:o=Ie(e)?e[0].doc:e instanceof Xi?e:e.doc}={}){super(),this.scope=[],this.doc=o,this.addToScope(e),this.deleteFilter=r,i.add(this),this.trackedOrigins=i,this.captureTransaction=n,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=t,this.afterTransactionHandler=e=>{if(!this.captureTransaction(e)||!this.scope.some(t=>e.changedParentTypes.has(t)||t===this.doc)||!this.trackedOrigins.has(e.origin)&&(!e.origin||!this.trackedOrigins.has(e.origin.constructor)))return;let t=this.undoing,n=this.redoing,r=t?this.redoStack:this.undoStack;t?this.stopCapturing():n||this.clear(!1,!0);let i=new Li;e.afterState.forEach((t,n)=>{let r=e.beforeState.get(n)||0,a=t-r;a>0&&Ui(i,n,r,a)});let a=cn(),o=!1;if(this.lastChange>0&&a-this.lastChange<this.captureTimeout&&r.length>0&&!t&&!n){let t=r[r.length-1];t.deletions=Hi([t.deletions,e.deleteSet]),t.insertions=Hi([t.insertions,i])}else r.push(new so(e.deleteSet,i)),o=!0;!t&&!n&&(this.lastChange=a),Ri(e,e.deleteSet,t=>{t instanceof Y&&this.scope.some(n=>n===e.doc||Aa(n,t))&&dc(t,!0)});let s=[{stackItem:r[r.length-1],origin:e.origin,type:t?`redo`:`undo`,changedParentTypes:e.changedParentTypes},this];o?this.emit(`stack-item-added`,s):this.emit(`stack-item-updated`,s)},this.doc.on(`afterTransaction`,this.afterTransactionHandler),this.doc.on(`destroy`,()=>{this.destroy()})}addToScope(e){let t=new Set(this.scope);e=Ie(e)?e:[e],e.forEach(e=>{t.has(e)||(t.add(e),(e instanceof K?e.doc!==this.doc:e!==this.doc)&&ji(`[yjs#509] Not same Y.Doc`),this.scope.push(e))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,t=!0){(e&&this.canUndo()||t&&this.canRedo())&&this.doc.transact(n=>{e&&(this.undoStack.forEach(e=>co(n,this,e)),this.undoStack=[]),t&&(this.redoStack.forEach(e=>co(n,this,e)),this.redoStack=[]),this.emit(`stack-cleared`,[{undoStackCleared:e,redoStackCleared:t}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=lo(this,this.undoStack,`undo`)}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=lo(this,this.redoStack,`redo`)}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off(`afterTransaction`,this.afterTransactionHandler),super.destroy()}};function*fo(e){let t=P(e.restDecoder);for(let n=0;n<t;n++){let t=P(e.restDecoder),n=e.readClient(),r=P(e.restDecoder);for(let i=0;i<t;i++){let t=e.readInfo();if(t===10){let t=P(e.restDecoder);yield new X(B(n,r),t),r+=t}else if(31&t){let i=(t&192)==0,a=new Y(B(n,r),null,(t&128)==128?e.readLeftID():null,null,(t&64)==64?e.readRightID():null,i?e.readParentInfo()?e.readString():e.readLeftID():null,i&&(t&32)==32?e.readString():null,hc(e,t));yield a,r+=a.length}else{let t=e.readLen();yield new q(B(n,r),t),r+=t}}}}var po=class{constructor(e,t){this.gen=fo(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===X);return this.curr}},mo=class{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}},ho=e=>_o(e,Qi,na),go=(e,t)=>{if(e.constructor===q){let{client:n,clock:r}=e.id;return new q(B(n,r+t),e.length-t)}else if(e.constructor===X){let{client:n,clock:r}=e.id;return new X(B(n,r+t),e.length-t)}else{let n=e,{client:r,clock:i}=n.id;return new Y(B(r,i+t),null,B(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},_o=(e,t=ea,n=ia)=>{if(e.length===1)return e[0];let r=e.map(e=>new t(Ht(e))),i=r.map(e=>new po(e,!0)),a=null,o=new n,s=new mo(o);for(;i=i.filter(e=>e.curr!==null),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){let n=e.curr.id.clock-t.curr.id.clock;return n===0?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===X?1:-1:n}else return t.curr.id.client-e.curr.id.client}),i.length!==0;){let e=i[0],t=e.curr.id.client;if(a!==null){let n=e.curr,r=!1;for(;n!==null&&n.id.clock+n.length<=a.struct.id.clock+a.struct.length&&n.id.client>=a.struct.id.client;)n=e.next(),r=!0;if(n===null||n.id.client!==t||r&&n.id.clock>a.struct.id.clock+a.struct.length)continue;if(t!==a.struct.id.client)bo(s,a.struct,a.offset),a={struct:n,offset:0},e.next();else if(a.struct.id.clock+a.struct.length<n.id.clock)if(a.struct.constructor===X)a.struct.length=n.id.clock+n.length-a.struct.id.clock;else{bo(s,a.struct,a.offset);let e=n.id.clock-a.struct.id.clock-a.struct.length;a={struct:new X(B(t,a.struct.id.clock+a.struct.length),e),offset:0}}else{let t=a.struct.id.clock+a.struct.length-n.id.clock;t>0&&(a.struct.constructor===X?a.struct.length-=t:n=go(n,t)),a.struct.mergeWith(n)||(bo(s,a.struct,a.offset),a={struct:n,offset:0},e.next())}}else a={struct:e.curr,offset:0},e.next();for(let n=e.curr;n!==null&&n.id.client===t&&n.id.clock===a.struct.id.clock+a.struct.length&&n.constructor!==X;n=e.next())bo(s,a.struct,a.offset),a={struct:n,offset:0}}return a!==null&&(bo(s,a.struct,a.offset),a=null),xo(s),Ki(o,Hi(r.map(e=>qi(e)))),o.toUint8Array()},vo=(e,t,n=ea,r=ia)=>{let i=_a(t),a=new r,o=new mo(a),s=new n(Ht(e)),c=new po(s,!1);for(;c.curr;){let e=c.curr,t=e.id.client,n=i.get(t)||0;if(c.curr.constructor===X){c.next();continue}if(e.id.clock+e.length>n)for(bo(o,e,T(n-e.id.clock,0)),c.next();c.curr&&c.curr.id.client===t;)bo(o,c.curr,0),c.next();else for(;c.curr&&c.curr.id.client===t&&c.curr.id.clock+c.curr.length<=n;)c.next()}return xo(o),Ki(a,qi(s)),a.toUint8Array()},yo=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:E(e.encoder.restEncoder)}),e.encoder.restEncoder=gt(),e.written=0)},bo=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&yo(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),O(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},xo=e=>{yo(e);let t=e.encoder.restEncoder;O(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){let r=e.clientStructs[n];O(t,r.written),Tt(t,r.restEncoder)}},So=(e,t,n,r)=>{let i=new n(Ht(e)),a=new po(i,!1),o=new r,s=new mo(o);for(let e=a.curr;e!==null;e=a.next())bo(s,t(e),0);return xo(s),Ki(o,qi(i)),o.toUint8Array()},Co=e=>So(e,Dn,ea,na),wo=`You must not compute changes after the event-handler fired.`,To=class{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||=Eo(this.currentTarget,this.target)}deletes(e){return Bi(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw A(wo);let e=new Map,t=this.target;this.transaction.changed.get(t).forEach(n=>{if(n!==null){let r=t._map.get(n),i,a;if(this.adds(r)){let e=r.left;for(;e!==null&&this.adds(e);)e=e.left;if(this.deletes(r))if(e!==null&&this.deletes(e))i=`delete`,a=je(e.content.getContent());else return;else e!==null&&this.deletes(e)?(i=`update`,a=je(e.content.getContent())):(i=`add`,a=void 0)}else if(this.deletes(r))i=`delete`,a=je(r.content.getContent());else return;e.set(n,{action:i,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw A(wo);let t=this.target,n=S(),r=S(),i=[];if(e={added:n,deleted:r,delta:i,keys:this.keys},this.transaction.changed.get(t).has(null)){let e=null,a=()=>{e&&i.push(e)};for(let i=t._start;i!==null;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&((e===null||e.delete===void 0)&&(a(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?((e===null||e.insert===void 0)&&(a(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):((e===null||e.retain===void 0)&&(a(),e={retain:0}),e.retain+=i.length);e!==null&&e.retain===void 0&&a()}this._changes=e}return e}},Eo=(e,t)=>{let n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;for(;r!==t._item&&r!==null;)!r.deleted&&r.countable&&(e+=r.length),r=r.right;n.unshift(e)}t=t._item.parent}return n},G=()=>{ji(`Invalid access: Add Yjs type to a document before reading data.`)},Do=80,Oo=0,ko=class{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=Oo++}},Ao=e=>{e.timestamp=Oo++},jo=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=Oo++},Mo=(e,t,n)=>{if(e.length>=Do){let r=e.reduce((e,t)=>e.timestamp<t.timestamp?e:t);return jo(r,t,n),r}else{let r=new ko(t,n);return e.push(r),r}},No=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;let n=e._searchMarker.length===0?null:e._searchMarker.reduce((e,n)=>ze(t-e.index)<ze(t-n.index)?e:n),r=e._start,i=0;for(n!==null&&(r=n.p,i=n.index,Ao(n));r.right!==null&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;r.left!==null&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return n!==null&&ze(n.index-i)<r.parent.length/Do?(jo(n,r,i),n):Mo(e._searchMarker,r,i)},Po=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){let i=e[r];if(n>0){let t=i.p;for(t.marker=!1;t&&(t.deleted||!t.countable);)t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(t===null||t.marker===!0){e.splice(r,1);continue}i.p=t,t.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=T(t,i.index+n))}},Fo=(e,t,n)=>{let r=e,i=t.changedParentTypes;for(;x(i,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;Ea(r._eH,n,t)},K=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=Ca(),this._dEH=Ca(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw j()}clone(){throw j()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){wa(this._eH,e)}observeDeep(e){wa(this._dEH,e)}unobserve(e){Ta(this._eH,e)}unobserveDeep(e){Ta(this._dEH,e)}toJSON(){}},Io=(e,t,n)=>{e.doc??G(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t,i=[],a=e._start;for(;a!==null&&r>0;){if(a.countable&&!a.deleted){let e=a.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n<e.length&&r>0;n++)i.push(e[n]),r--;t=0}}a=a.right}return i},Lo=e=>{e.doc??G();let t=[],n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){let e=n.content.getContent();for(let n=0;n<e.length;n++)t.push(e[n])}n=n.right}return t},Ro=(e,t)=>{let n=[],r=e._start;for(;r!==null;){if(r.countable&&Wa(r,t)){let e=r.content.getContent();for(let t=0;t<e.length;t++)n.push(e[t])}r=r.right}return n},zo=(e,t)=>{let n=0,r=e._start;for(e.doc??G();r!==null;){if(r.countable&&!r.deleted){let i=r.content.getContent();for(let r=0;r<i.length;r++)t(i[r],n++,e)}r=r.right}},Bo=(e,t)=>{let n=[];return zo(e,(r,i)=>{n.push(t(r,i,e))}),n},Vo=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}let e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},Ho=(e,t)=>{e.doc??G();let n=No(e,t),r=e._start;for(n!==null&&(r=n.p,t-=n.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},Uo=(e,t,n,r)=>{let i=n,a=e.doc,o=a.clientID,s=a.store,c=n===null?t._start:n.right,l=[],u=()=>{l.length>0&&(i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new Xs(l)),i.integrate(e,0),l=[])};r.forEach(n=>{if(n===null)l.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:l.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new Ls(new Uint8Array(n))),i.integrate(e,0);break;case Xi:i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new Hs(n)),i.integrate(e,0);break;default:if(n instanceof K)i=new Y(B(o,V(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new cc(n)),i.integrate(e,0);else throw Error(`Unexpected content type in insert operation`)}}}),u()},Wo=()=>A(`Length exceeded!`),Go=(e,t,n,r)=>{if(n>t._length)throw Wo();if(n===0)return t._searchMarker&&Po(t._searchMarker,n,r.length),Uo(e,t,null,r);let i=n,a=No(t,n),o=t._start;for(a!==null&&(o=a.p,n-=a.index,n===0&&(o=o.prev,n+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(n<=o.length){n<o.length&&U(e,B(o.id.client,o.id.clock+n));break}n-=o.length}return t._searchMarker&&Po(t._searchMarker,i,r.length),Uo(e,t,o,r)},Ko=(e,t,n)=>{let r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return Uo(e,t,r,n)},qo=(e,t,n,r)=>{if(r===0)return;let i=n,a=r,o=No(t,n),s=t._start;for(o!==null&&(s=o.p,n-=o.index);s!==null&&n>0;s=s.right)!s.deleted&&s.countable&&(n<s.length&&U(e,B(s.id.client,s.id.clock+n)),n-=s.length);for(;r>0&&s!==null;)s.deleted||(r<s.length&&U(e,B(s.id.client,s.id.clock+r)),s.delete(e),r-=s.length),s=s.right;if(r>0)throw Wo();t._searchMarker&&Po(t._searchMarker,i,-a+r)},Jo=(e,t,n)=>{let r=t._map.get(n);r!==void 0&&r.delete(e)},Yo=(e,t,n,r)=>{let i=t._map.get(n)||null,a=e.doc,o=a.clientID,s;if(r==null)s=new Xs([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:s=new Xs([r]);break;case Uint8Array:s=new Ls(r);break;case Xi:s=new Hs(r);break;default:if(r instanceof K)s=new cc(r);else throw Error(`Unexpected content type`)}new Y(B(o,V(a.store,o)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},Xo=(e,t)=>{e.doc??G();let n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},Zo=e=>{let t={};return e.doc??G(),e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Qo=(e,t)=>{e.doc??G();let n=e._map.get(t);return n!==void 0&&!n.deleted},$o=(e,t)=>{let n={};return e._map.forEach((e,r)=>{let i=e;for(;i!==null&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;i!==null&&Wa(i,t)&&(n[r]=i.content.getContent()[i.length-1])}),n},es=e=>(e.doc??G(),Pi(e._map.entries(),e=>!e[1].deleted)),ts=class extends To{},ns=class e extends K{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let n=new e;return n.push(t),n}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}get length(){return this.doc??G(),this._length}_callObserver(e,t){super._callObserver(e,t),Fo(this,e,new ts(this,e))}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):W(this.doc,n=>{Go(n,this,e,t)})}push(e){this.doc===null?this._prelimContent.push(...e):W(this.doc,t=>{Ko(t,this,e)})}unshift(e){this.insert(0,e)}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):W(this.doc,n=>{qo(n,this,e,t)})}get(e){return Ho(this,e)}toArray(){return Lo(this)}slice(e=0,t=this.length){return Io(this,e,t)}toJSON(){return this.map(e=>e instanceof K?e.toJSON():e)}map(e){return Bo(this,e)}forEach(e){zo(this,e)}[Symbol.iterator](){return Vo(this)}_write(e){e.writeTypeRef(tc)}},rs=e=>new ns,is=class extends To{constructor(e,t,n){super(e,t),this.keysChanged=n}},as=class e extends K{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((e,n)=>{t.set(n,e instanceof K?e.clone():e)}),t}_callObserver(e,t){Fo(this,e,new is(this,e,t))}toJSON(){this.doc??G();let e={};return this._map.forEach((t,n)=>{if(!t.deleted){let r=t.content.getContent()[t.length-1];e[n]=r instanceof K?r.toJSON():r}}),e}get size(){return[...es(this)].length}keys(){return Fi(es(this),e=>e[0])}values(){return Fi(es(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return Fi(es(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??G(),this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc===null?this._prelimContent.delete(e):W(this.doc,t=>{Jo(t,this,e)})}set(e,t){return this.doc===null?this._prelimContent.set(e,t):W(this.doc,n=>{Yo(n,this,e,t)}),t}get(e){return Xo(this,e)}has(e){return Qo(this,e)}clear(){this.doc===null?this._prelimContent.clear():W(this.doc,e=>{this.forEach(function(t,n,r){Jo(e,r,n)})})}_write(e){e.writeTypeRef(nc)}},os=e=>new as,ss=(e,t)=>e===t||typeof e==`object`&&typeof t==`object`&&e&&t&&Cn(e,t),cs=class{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(this.right===null&&M(),this.right.content.constructor){case J:this.right.deleted||fs(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},ls=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case J:t.right.deleted||fs(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n<t.right.length&&U(e,B(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},us=(e,t,n,r)=>{let i=new Map,a=r?No(t,n):null;return a?ls(e,new cs(a.p.left,a.p,a.index,i),n-a.index):ls(e,new cs(null,t._start,0,i),n)},ds=(e,t,n,r)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===J&&ss(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();let i=e.doc,a=i.clientID;r.forEach((r,o)=>{let s=n.left,c=n.right,l=new Y(B(a,V(i.store,a)),s,s&&s.lastId,c,c&&c.id,t,null,new J(o,r));l.integrate(e,0),n.right=l,n.forward()})},fs=(e,t)=>{let{key:n,value:r}=t;r===null?e.delete(n):e.set(n,r)},ps=(e,t)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===J&&ss(t[e.right.content.key]??null,e.right.content.value));)e.forward()},ms=(e,t,n,r)=>{let i=e.doc,a=i.clientID,o=new Map;for(let s in r){let c=r[s],l=n.currentAttributes.get(s)??null;if(!ss(l,c)){o.set(s,l);let{left:r,right:u}=n;n.right=new Y(B(a,V(i.store,a)),r,r&&r.lastId,u,u&&u.id,t,null,new J(s,c)),n.right.integrate(e,0),n.forward()}}return o},hs=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{i[t]===void 0&&(i[t]=null)});let a=e.doc,o=a.clientID;ps(n,i);let s=ms(e,t,n,i),c=r.constructor===String?new Qs(r):r instanceof K?new cc(r):new Ws(r),{left:l,right:u,index:d}=n;t._searchMarker&&Po(t._searchMarker,n.index,c.getLength()),u=new Y(B(o,V(a.store,o)),l,l&&l.lastId,u,u&&u.id,t,null,c),u.integrate(e,0),n.right=u,n.index=d,n.forward(),ds(e,t,n,s)},gs=(e,t,n,r,i)=>{let a=e.doc,o=a.clientID;ps(n,i);let s=ms(e,t,n,i);iterationLoop:for(;n.right!==null&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===J));){if(!n.right.deleted)switch(n.right.content.constructor){case J:{let{key:t,value:a}=n.right.content,o=i[t];if(o!==void 0){if(ss(o,a))s.delete(t);else{if(r===0)break iterationLoop;s.set(t,a)}n.right.delete(e)}else n.currentAttributes.set(t,a);break}default:r<n.right.length&&U(e,B(n.right.id.client,n.right.id.clock+r)),r-=n.right.length;break}n.forward()}if(r>0){let i=``;for(;r>0;r--)i+=`
4
+ `;n.right=new Y(B(o,V(a.store,o)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Qs(i)),n.right.integrate(e,0),n.forward()}ds(e,t,n,s)},_s=(e,t,n,r,i)=>{let a=t,o=b();for(;a&&(!a.countable||a.deleted);){if(!a.deleted&&a.content.constructor===J){let e=a.content;o.set(e.key,e)}a=a.right}let s=0,c=!1;for(;t!==a;){if(n===t&&(c=!0),!t.deleted){let n=t.content;switch(n.constructor){case J:{let{key:a,value:l}=n,u=r.get(a)??null;(o.get(a)!==n||u===l)&&(t.delete(e),s++,!c&&(i.get(a)??null)===l&&u!==l&&(u===null?i.delete(a):i.set(a,u))),!c&&!t.deleted&&fs(i,n);break}}}t=t.right}return s},vs=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===J){let r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},ys=e=>{let t=0;return W(e.doc,n=>{let r=e._start,i=e._start,a=b(),o=Oe(a);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case J:fs(o,i.content);break;default:t+=_s(n,r,i,a,o),a=Oe(o),r=i;break}i=i.right}}),t},bs=e=>{let t=new Set,n=e.doc;for(let[r,i]of e.afterState.entries()){let a=e.beforeState.get(r)||0;i!==a&&$a(e,n.store.clients.get(r),a,i,e=>{!e.deleted&&e.content.constructor===J&&e.constructor!==q&&t.add(e.parent)})}W(n,n=>{Ri(e,e.deleteSet,e=>{if(e instanceof q||!e.parent._hasFormatting||t.has(e.parent))return;let r=e.parent;e.content.constructor===J?t.add(r):vs(n,e)});for(let e of t)ys(e)})},xs=(e,t,n)=>{let r=n,i=Oe(t.currentAttributes),a=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case cc:case Ws:case Qs:n<t.right.length&&U(e,B(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}a&&_s(e,a,t.right,i,t.currentAttributes);let o=(t.left||t.right).parent;return o._searchMarker&&Po(o._searchMarker,t.index,-r+n),t},Ss=class extends To{constructor(e,t,n){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,n.forEach(e=>{e===null?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){return this._changes===null&&(this._changes={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set}),this._changes}get delta(){if(this._delta===null){let e=this.target.doc,t=[];W(e,e=>{let n=new Map,r=new Map,i=this.target._start,a=null,o={},s=``,c=0,l=0,u=()=>{if(a!==null){let e=null;switch(a){case`delete`:l>0&&(e={delete:l}),l=0;break;case`insert`:(typeof s==`object`||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{t!==null&&(e.attributes[n]=t)}))),s=``;break;case`retain`:c>0&&(e={retain:c},bn(o)||(e.attributes=gn({},o))),c=0;break}e&&t.push(e),a=null}};for(;i!==null;){switch(i.content.constructor){case cc:case Ws:this.adds(i)?this.deletes(i)||(u(),a=`insert`,s=i.content.getContent()[0],u()):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=1):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=1);break;case Qs:this.adds(i)?this.deletes(i)||(a!==`insert`&&(u(),a=`insert`),s+=i.content.str):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=i.length):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=i.length);break;case J:{let{key:t,value:s}=i.content;if(this.adds(i))this.deletes(i)||(ss(n.get(t)??null,s)?s!==null&&i.delete(e):(a===`retain`&&u(),ss(s,r.get(t)??null)?delete o[t]:o[t]=s));else if(this.deletes(i)){r.set(t,s);let e=n.get(t)??null;ss(e,s)||(a===`retain`&&u(),o[t]=e)}else if(!i.deleted){r.set(t,s);let n=o[t];n!==void 0&&(ss(n,s)?n!==null&&i.delete(e):(a===`retain`&&u(),s===null?delete o[t]:o[t]=s))}i.deleted||(a===`insert`&&u(),fs(n,i.content));break}}i=i.right}for(u();t.length>0;){let e=t[t.length-1];if(e.retain!==void 0&&e.attributes===void 0)t.pop();else break}}),this._delta=t}return this._delta}},Cs=class e extends K{constructor(e){super(),this._pending=e===void 0?[]:[()=>this.insert(0,e)],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??G(),this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(e){console.error(e)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(e,t){super._callObserver(e,t);let n=new Ss(this,e,t);Fo(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??G();let e=``,t=this._start;for(;t!==null;)!t.deleted&&t.countable&&t.content.constructor===Qs&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){this.doc===null?this._pending.push(()=>this.applyDelta(e)):W(this.doc,n=>{let r=new cs(null,this._start,0,new Map);for(let i=0;i<e.length;i++){let a=e[i];if(a.insert!==void 0){let o=!t&&typeof a.insert==`string`&&i===e.length-1&&r.right===null&&a.insert.slice(-1)===`
5
+ `?a.insert.slice(0,-1):a.insert;(typeof o!=`string`||o.length>0)&&hs(n,this,r,o,a.attributes||{})}else a.retain===void 0?a.delete!==void 0&&xs(n,r,a.delete):gs(n,this,r,a.retain,a.attributes||{})}})}toDelta(e,t,n){this.doc??G();let r=[],i=new Map,a=this.doc,o=``,s=this._start;function c(){if(o.length>0){let e={},t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});let n={insert:o};t&&(n.attributes=e),r.push(n),o=``}}let l=()=>{for(;s!==null;){if(Wa(s,e)||t!==void 0&&Wa(s,t))switch(s.content.constructor){case Qs:{let r=i.get(`ychange`);e!==void 0&&!Wa(s,e)?(r===void 0||r.user!==s.id.client||r.type!==`removed`)&&(c(),i.set(`ychange`,n?n(`removed`,s.id):{type:`removed`})):t!==void 0&&!Wa(s,t)?(r===void 0||r.user!==s.id.client||r.type!==`added`)&&(c(),i.set(`ychange`,n?n(`added`,s.id):{type:`added`})):r!==void 0&&(c(),i.delete(`ychange`)),o+=s.content.str;break}case cc:case Ws:{c();let e={insert:s.content.getContent()[0]};if(i.size>0){let t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case J:Wa(s,e)&&(c(),fs(i,s.content));break}s=s.right}c()};return e||t?W(a,n=>{e&&Ga(n,e),t&&Ga(n,t),l()},`cleanup`):l(),r}insert(e,t,n){if(t.length<=0)return;let r=this.doc;r===null?this._pending.push(()=>this.insert(e,t,n)):W(r,r=>{let i=us(r,this,e,!n);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),hs(r,this,i,t,n)})}insertEmbed(e,t,n){let r=this.doc;r===null?this._pending.push(()=>this.insertEmbed(e,t,n||{})):W(r,r=>{let i=us(r,this,e,!n);hs(r,this,i,t,n||{})})}delete(e,t){if(t===0)return;let n=this.doc;n===null?this._pending.push(()=>this.delete(e,t)):W(n,n=>{xs(n,us(n,this,e,!0),t)})}format(e,t,n){if(t===0)return;let r=this.doc;r===null?this._pending.push(()=>this.format(e,t,n)):W(r,r=>{let i=us(r,this,e,!1);i.right!==null&&gs(r,this,i,t,n)})}removeAttribute(e){this.doc===null?this._pending.push(()=>this.removeAttribute(e)):W(this.doc,t=>{Jo(t,this,e)})}setAttribute(e,t){this.doc===null?this._pending.push(()=>this.setAttribute(e,t)):W(this.doc,n=>{Yo(n,this,e,t)})}getAttribute(e){return Xo(this,e)}getAttributes(){return Zo(this)}_write(e){e.writeTypeRef(rc)}},ws=e=>new Cs,Ts=class{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??G()}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(t)))do if(t=e.content.type,!e.deleted&&(t.constructor===Os||t.constructor===Es)&&t._start!==null)e=t._start;else for(;e!==null;){let t=e.next;if(t!==null){e=t;break}else e=e.parent===this._root?null:e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}},Es=class e extends K{constructor(){super(),this._prelimContent=[]}get firstChild(){let e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}get length(){return this.doc??G(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new Ts(this,e)}querySelector(e){e=e.toUpperCase();let t=new Ts(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e).next();return t.done?null:t.value}querySelectorAll(e){return e=e.toUpperCase(),C(new Ts(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){Fo(this,e,new As(this,t,e))}toString(){return Bo(this,e=>e.toString()).join(``)}toJSON(){return this.toString()}toDOM(e=document,t={},n){let r=e.createDocumentFragment();return n!==void 0&&n._createAssociation(r,this),zo(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):W(this.doc,n=>{Go(n,this,e,t)})}insertAfter(e,t){if(this.doc!==null)W(this.doc,n=>{let r=e&&e instanceof K?e._item:e;Uo(n,this,r,t)});else{let n=this._prelimContent,r=e===null?0:n.findIndex(t=>t===e)+1;if(r===0&&e!==null)throw A(`Reference item not found`);n.splice(r,0,...t)}}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):W(this.doc,n=>{qo(n,this,e,t)})}toArray(){return Lo(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return Ho(this,e)}slice(e=0,t=this.length){return Io(this,e,t)}forEach(e){zo(this,e)}_write(e){e.writeTypeRef(ac)}},Ds=e=>new Es,Os=class e extends Es{constructor(e=`UNDEFINED`){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new e(this.nodeName)}clone(){let t=new e(this.nodeName);return vn(this.getAttributes(),(e,n)=>{t.setAttribute(n,e)}),t.insert(0,this.toArray().map(e=>e instanceof K?e.clone():e)),t}toString(){let e=this.getAttributes(),t=[],n=[];for(let t in e)n.push(t);n.sort();let r=n.length;for(let i=0;i<r;i++){let r=n[i];t.push(r+`="`+e[r]+`"`)}let i=this.nodeName.toLocaleLowerCase();return`<${i}${t.length>0?` `+t.join(` `):``}>${super.toString()}</${i}>`}removeAttribute(e){this.doc===null?this._prelimAttrs.delete(e):W(this.doc,t=>{Jo(t,this,e)})}setAttribute(e,t){this.doc===null?this._prelimAttrs.set(e,t):W(this.doc,n=>{Yo(n,this,e,t)})}getAttribute(e){return Xo(this,e)}hasAttribute(e){return Qo(this,e)}getAttributes(e){return e?$o(this,e):Zo(this)}toDOM(e=document,t={},n){let r=e.createElement(this.nodeName),i=this.getAttributes();for(let e in i){let t=i[e];typeof t==`string`&&r.setAttribute(e,t)}return zo(this,i=>{r.appendChild(i.toDOM(e,t,n))}),n!==void 0&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(ic),e.writeKey(this.nodeName)}},ks=e=>new Os(e.readKey()),As=class extends To{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{e===null?this.childListChanged=!0:this.attributesChanged.add(e)})}},js=class e extends as{constructor(e){super(),this.hookName=e}_copy(){return new e(this.hookName)}clone(){let t=new e(this.hookName);return this.forEach((e,n)=>{t.set(n,e)}),t}toDOM(e=document,t={},n){let r=t[this.hookName],i;return i=r===void 0?document.createElement(this.hookName):r.createDom(this),i.setAttribute(`data-yjs-hook`,this.hookName),n!==void 0&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(oc),e.writeKey(this.hookName)}},Ms=e=>new js(e.readKey()),Ns=class e extends Cs{get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}toDOM(e=document,t,n){let r=e.createTextNode(this.toString());return n!==void 0&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{let t=[];for(let n in e.attributes){let r=[];for(let t in e.attributes[n])r.push({key:t,value:e.attributes[n][t]});r.sort((e,t)=>e.key<t.key?-1:1),t.push({nodeName:n,attrs:r})}t.sort((e,t)=>e.nodeName<t.nodeName?-1:1);let n=``;for(let e=0;e<t.length;e++){let r=t[e];n+=`<${r.nodeName}`;for(let e=0;e<r.attrs.length;e++){let t=r.attrs[e];n+=` ${t.key}="${t.value}"`}n+=`>`}n+=e.insert;for(let e=t.length-1;e>=0;e--)n+=`</${t[e].nodeName}>`;return n}).join(``)}toJSON(){return this.toString()}_write(e){e.writeTypeRef(sc)}},Ps=e=>new Ns,Fs=class{constructor(e,t){this.id=e,this.length=t}get deleted(){throw j()}mergeWith(e){return!1}write(e,t,n){throw j()}integrate(e,t){throw j()}},Is=0,q=class extends Fs{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),Ja(e.doc.store,this)}write(e,t){e.writeInfo(Is),e.writeLen(this.length-t)}getMissing(e,t){return null}},Ls=class e{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}},Rs=e=>new Ls(e.readBuf()),zs=class e{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let n=new e(this.len-t);return this.len=t,n}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){Ui(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}},Bs=e=>new zs(e.readLen()),Vs=(e,t)=>new Xi({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),Hs=class e{constructor(e){e._item&&console.error(`This document was already integrated as a sub-document. You should create a second instance instead with the same guid.`),this.doc=e;let t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),e.meta!==null&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new e(Vs(this.doc.guid,this.opts))}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}},Us=e=>new Hs(Vs(e.readString(),e.readAny())),Ws=class e{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}},Gs=e=>new Ws(e.readJSON()),J=class e{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){let n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}},Ks=e=>new J(e.readKey(),e.readJSON()),qs=class e{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeString(t===void 0?`undefined`:JSON.stringify(t))}}getRef(){return 2}},Js=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++){let t=e.readString();t===`undefined`?n.push(void 0):n.push(JSON.parse(t))}return new qs(n)},Ys=Fn(`node_env`)===`development`,Xs=class e{constructor(e){this.arr=e,Ys&&Tn(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeAny(t)}}getRef(){return 8}},Zs=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new Xs(n)},Qs=class e{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split(``)}isCountable(){return!0}copy(){return new e(this.str)}splice(t){let n=new e(this.str.slice(t));this.str=this.str.slice(0,t);let r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+`�`,n.str=`�`+n.str.slice(1)),n}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(t===0?this.str:this.str.slice(t))}getRef(){return 4}},$s=e=>new Qs(e.readString()),ec=[rs,os,ws,ks,Ds,Ms,Ps],tc=0,nc=1,rc=2,ic=3,ac=4,oc=5,sc=6,cc=class e{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(e){throw j()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;t!==null;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;t!==null;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{for(;t!==null;)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}},lc=e=>new cc(ec[e.readTypeRef()](e)),uc=(e,t)=>{let n=t,r=0,i;do r>0&&(n=B(n.client,n.clock+r)),i=Ya(e,n),r=n.clock-i.id.clock,n=i.redone;while(n!==null&&i instanceof Y);return{item:i,diff:r}},dc=(e,t)=>{for(;e!==null&&e.keep!==t;)e.keep=t,e=e.parent._item},fc=(e,t,n)=>{let{client:r,clock:i}=t.id,a=new Y(B(r,i+n),t,B(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&a.markDeleted(),t.keep&&(a.keep=!0),t.redone!==null&&(a.redone=B(t.redone.client,t.redone.clock+n)),t.right=a,a.right!==null&&(a.right.left=a),e._mergeStructs.push(a),a.parentSub!==null&&a.right===null&&a.parent._map.set(a.parentSub,a),t.length=n,a},pc=(e,t)=>Pe(e,e=>Bi(e.deletions,t)),mc=(e,t,n,r,i,a)=>{let o=e.doc,s=o.store,c=o.clientID,l=t.redone;if(l!==null)return U(e,l);let u=t.parent._item,d=null,f;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!n.has(u)||mc(e,u,n,r,i,a)===null))return null;for(;u.redone!==null;)u=U(e,u.redone)}let p=u===null?t.parent:u.content.type;if(t.parentSub===null){for(d=t.left,f=t;d!==null;){let t=d;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:U(e,t.redone);if(t!==null&&t.parent._item===u){d=t;break}d=d.left}for(;f!==null;){let t=f;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:U(e,t.redone);if(t!==null&&t.parent._item===u){f=t;break}f=f.right}}else{if(f=null,t.right&&!i){for(d=t;d!==null&&d.right!==null&&(d.right.redone||Bi(r,d.right.id)||pc(a.undoStack,d.right.id)||pc(a.redoStack,d.right.id));)for(d=d.right;d.redone;)d=U(e,d.redone);if(d&&d.right!==null)return null}else d=p._map.get(t.parentSub)||null;d!==null&&d.parent._item!==u&&(d=p._map.get(t.parentSub)||null)}let m=B(c,V(s,c)),h=new Y(m,d,d&&d.lastId,f,f&&f.id,p,t.parentSub,t.content.copy());return t.redone=m,dc(h,!0),h.integrate(e,0),h},Y=class e extends Fs{constructor(e,t,n,r,i,a,o,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=a,this.parentSub=o,this.redone=null,this.content=s,this.info=this.content.isCountable()?2:0}set marker(e){(this.info&8)>0!==e&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(e){this.keep!==e&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(e){this.deleted!==e&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=V(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=V(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Da&&this.id.client!==this.parent.client&&this.parent.clock>=V(n,this.parent.client))return this.parent.client;if(this.origin&&=(this.left=Za(t,n,this.origin),this.left.lastId),this.rightOrigin&&=(this.right=U(t,this.rightOrigin),this.right.id),this.left&&this.left.constructor===q||this.right&&this.right.constructor===q)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Da){let e=Ya(n,this.parent);e.constructor===q?this.parent=null:this.parent=e.content.type}return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Za(e,e.doc.store,B(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let t=this.left,n;if(t!==null)n=t.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,i=new Set;for(;n!==null&&n!==this.right;){if(i.add(n),r.add(n),Oa(this.origin,n.origin)){if(n.id.client<this.id.client)t=n,r.clear();else if(Oa(this.rightOrigin,n.rightOrigin))break}else if(n.origin!==null&&i.has(Ya(e.doc.store,n.origin)))r.has(Ya(e.doc.store,n.origin))||(t=n,r.clear());else break;n=n.right}this.left=t}if(this.left!==null)this.right=this.left.right,this.left.right=this;else{let e;if(this.parentSub!==null)for(e=this.parent._map.get(this.parentSub)||null;e!==null&&e.left!==null;)e=e.left;else e=this.parent._start,this.parent._start=this;this.right=e}this.right===null?this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)):this.right.left=this,this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),Ja(e.doc.store,this),this.content.integrate(e,this),no(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new q(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:B(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Oa(e.origin,this.lastId)&&this.right===e&&Oa(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){let t=this.parent._searchMarker;return t&&t.forEach(t=>{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){let t=this.parent;this.countable&&this.parentSub===null&&(t._length-=this.length),this.markDeleted(),Ui(e.deleteSet,this.id.client,this.id.clock,this.length),no(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw M();this.content.gc(e),t?Qa(e,this,new q(this.id,this.length)):this.content=new zs(this.length)}write(e,t){let n=t>0?B(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,a=this.content.getRef()&31|(n===null?0:128)|(r===null?0:64)|(i===null?0:32);if(e.writeInfo(a),n!==null&&e.writeLeftID(n),r!==null&&e.writeRightID(r),n===null&&r===null){let t=this.parent;if(t._item!==void 0){let n=t._item;if(n===null){let n=ka(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===Da?(e.writeParentInfo(!1),e.writeLeftID(t)):M();i!==null&&e.writeString(i)}this.content.write(e,t)}},hc=(e,t)=>gc[t&31](e),gc=[()=>{M()},Bs,Js,Rs,$s,Gs,Ks,lc,Zs,Us,()=>{M()}],_c=10,X=class extends Fs{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){M()}write(e,t){e.writeInfo(_c),O(e.restEncoder,this.length-t)}getMissing(e,t){return null}},vc=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:{},yc=`__ $YJS$ __`;vc[yc]===!0&&console.error(`Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438`),vc[yc]=!0;var bc=function(e){return e[e.Token=0]=`Token`,e[e.PermissionDenied=1]=`PermissionDenied`,e[e.Authenticated=2]=`Authenticated`,e}({}),xc=(e,t)=>{O(e,bc.Token),wt(e,t)},Sc=(e,t,n,r)=>{switch(P(e)){case bc.Token:t();break;case bc.PermissionDenied:n(qt(e));break;case bc.Authenticated:r(qt(e));break;default:}},Cc=e=>Array.from(e.entries()).map(([e,t])=>({clientId:e,...t})),wc=`\0`;function Tc(e,t){return e+wc+t}function Ec(e){let t=e.indexOf(wc);return t===-1?{documentName:e,sessionId:null}:{documentName:e.substring(0,t),sessionId:e.substring(t+1)}}var Dc=function(e){return e[e.Connecting=0]=`Connecting`,e[e.Open=1]=`Open`,e[e.Closing=2]=`Closing`,e[e.Closed=3]=`Closed`,e}({});function Oc(e){return e||={},{delay:e.delay===void 0?200:e.delay,initialDelay:e.initialDelay===void 0?0:e.initialDelay,minDelay:e.minDelay===void 0?0:e.minDelay,maxDelay:e.maxDelay===void 0?0:e.maxDelay,factor:e.factor===void 0?0:e.factor,maxAttempts:e.maxAttempts===void 0?3:e.maxAttempts,timeout:e.timeout===void 0?0:e.timeout,jitter:e.jitter===!0,initialJitter:e.initialJitter===!0,handleError:e.handleError===void 0?null:e.handleError,handleTimeout:e.handleTimeout===void 0?null:e.handleTimeout,beforeAttempt:e.beforeAttempt===void 0?null:e.beforeAttempt,calculateDelay:e.calculateDelay===void 0?null:e.calculateDelay}}async function kc(e){return new Promise(t=>setTimeout(t,e))}function Ac(e,t){let n=t.delay;if(n===0)return 0;if(t.factor&&(n*=t.factor**(e.attemptNum-1),t.maxDelay!==0&&(n=Math.min(n,t.maxDelay))),t.jitter){let e=Math.ceil(t.minDelay);n=Math.floor(Math.random()*(Math.floor(n)-e+1))+e}return Math.round(n)}async function jc(e,t){let n=Oc(t);for(let e of[`delay`,`initialDelay`,`minDelay`,`maxDelay`,`maxAttempts`,`timeout`]){let t=n[e];if(!Number.isInteger(t)||t<0)throw Error(`Value for ${e} must be an integer greater than or equal to 0`)}if(n.factor.constructor!==Number||n.factor<0)throw Error(`Value for factor must be a number greater than or equal to 0`);if(n.delay<n.minDelay)throw Error(`delay cannot be less than minDelay (delay: ${n.delay}, minDelay: ${n.minDelay}`);let r={attemptNum:0,attemptsRemaining:n.maxAttempts?n.maxAttempts:-1,aborted:!1,abort(){r.aborted=!0}},i=n.calculateDelay||Ac;async function a(){if(n.beforeAttempt&&n.beforeAttempt(r,n),r.aborted){let e=Error(`Attempt aborted`);throw e.code=`ATTEMPT_ABORTED`,e}let t=async e=>{if(n.handleError&&await n.handleError(e,r,n),r.aborted||r.attemptsRemaining===0)throw e;r.attemptNum++;let t=i(r,n);return t&&await kc(t),a()};return r.attemptsRemaining>0&&r.attemptsRemaining--,n.timeout?new Promise((i,a)=>{let o=setTimeout(()=>{if(n.handleTimeout)try{i(n.handleTimeout(r,n))}catch(e){a(e)}else{let e=Error(`Retry timeout (attemptNum: ${r.attemptNum}, timeout: ${n.timeout})`);e.code=`ATTEMPT_TIMEOUT`,a(e)}},n.timeout);e(r,n).then(e=>{clearTimeout(o),i(e)}).catch(e=>{clearTimeout(o),t(e).then(i).catch(a)})}):e(r,n).catch(t)}let o=n.calculateDelay?n.calculateDelay(r,n):n.initialDelay;if(o&&await kc(o),r.attemptNum<1&&n.initialJitter){let e=i(r,n);e&&await kc(e)}return a()}var Mc=Math.floor,Nc=(e,t)=>e<t?e:t,Pc=(e,t)=>e>t?e:t;Number.isNaN;var Fc=64,Ic=128,Lc=1<<17,Rc=1<<18,zc=1<<19,Bc=1<<20,Vc=1<<21,Hc=1<<22,Uc=1<<23,Wc=1<<24,Gc=1<<25,Kc=1<<26,qc=1<<27,Jc=1<<28,Yc=1<<29,Xc=1<<30,Zc=63,Qc=127;Lc-1,Rc-1,zc-1,Bc-1,Vc-1,Hc-1,Uc-1,Wc-1,Gc-1,Kc-1,qc-1,Jc-1,Yc-1,Xc-1;var $c=2**53-1;Number.isInteger,Number.isNaN,Number.parseInt;var el=()=>new Set,tl=Array.from;Array.isArray;var nl=String.fromCharCode;String.fromCodePoint,nl(65535);var rl=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},il=typeof TextEncoder<`u`?new TextEncoder:null,al=il?e=>il.encode(e):rl,ol=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});ol&&ol.decode(new Uint8Array).length===1&&(ol=null);var sl=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},cl=()=>new sl,ll=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},ul=e=>{let t=new Uint8Array(ll(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},dl=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},Z=(e,t)=>{for(;t>Qc;)dl(e,Ic|Qc&t),t=Mc(t/128);dl(e,Qc&t)},fl=new Uint8Array(3e4),pl=fl.length/3,ml=il&&il.encodeInto?(e,t)=>{if(t.length<pl){let n=il.encodeInto(t,fl).written||0;Z(e,n);for(let t=0;t<n;t++)dl(e,fl[t])}else gl(e,al(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;Z(e,r);for(let t=0;t<r;t++)dl(e,n.codePointAt(t))},hl=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Nc(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Pc(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},gl=(e,t)=>{Z(e,t.byteLength),hl(e,t)},_l=e=>Error(e),vl=_l(`Unexpected end of array`),yl=_l(`Integer out of Range`),bl=class{constructor(e){this.arr=e,this.pos=0}},xl=e=>new bl(e),Sl=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},Cl=e=>Sl(e,Tl(e)),wl=e=>e.arr[e.pos++],Tl=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&Qc)*n,n*=128,r<Ic)return t;if(t>$c)throw yl}throw vl},El=e=>{let t=e.arr[e.pos++],n=t&Zc,r=64,i=(t&Fc)>0?-1:1;if((t&Ic)===0)return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&Qc)*r,r*=128,t<Ic)return i*n;if(n>$c)throw yl}throw vl},Dl=ol?e=>ol.decode(Cl(e)):e=>{let t=Tl(e);if(t===0)return``;{let n=String.fromCodePoint(wl(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(wl(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Ol=e=>{let t=e.pos,n=Dl(e);return e.pos=t,n},kl=Date.now,Al=()=>new Map,jl=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},Ml=class{constructor(){this._observers=Al()}on(e,t){jl(this._observers,e,el).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return tl((this._observers.get(e)||Al()).values()).forEach(e=>e(...t))}destroy(){this._observers=Al()}},Nl=Symbol(`Equality`),Pl=Object.keys,Fl=e=>Pl(e).length,Il=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ll=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[Nl]!=null)return e[Nl](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!Ll(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(Fl(e)!==Fl(t))return!1;for(let n in e)if(!Il(e,n)||!Ll(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ll(e[n],t[n]))return!1;break;default:return!1}return!0},Rl=3e4,zl=class extends Ml{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{let e=kl();this.getLocalState()!==null&&Rl/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());let t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&Rl<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&Bl(this,t,`timeout`)},Mc(Rl/10)),e.on(`destroy`,()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit(`destroy`,[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){let t=this.clientID,n=this.meta.get(t),r=n===void 0?0:n.clock+1,i=this.states.get(t);e===null?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:kl()});let a=[],o=[],s=[],c=[];e===null?c.push(t):i==null?e!=null&&a.push(t):(o.push(t),Ll(i,e)||s.push(t)),(a.length>0||s.length>0||c.length>0)&&this.emit(`change`,[{added:a,updated:s,removed:c},`local`]),this.emit(`update`,[{added:a,updated:o,removed:c},`local`])}setLocalStateField(e,t){let n=this.getLocalState();n!==null&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}},Bl=(e,t,n)=>{let r=[];for(let n=0;n<t.length;n++){let i=t[n];if(e.states.has(i)){if(e.states.delete(i),i===e.clientID){let t=e.meta.get(i);e.meta.set(i,{clock:t.clock+1,lastUpdated:kl()})}r.push(i)}}r.length>0&&(e.emit(`change`,[{added:[],updated:[],removed:r},n]),e.emit(`update`,[{added:[],updated:[],removed:r},n]))},Vl=(e,t,n=e.states)=>{let r=t.length,i=cl();Z(i,r);for(let a=0;a<r;a++){let r=t[a],o=n.get(r)||null,s=e.meta.get(r).clock;Z(i,r),Z(i,s),ml(i,JSON.stringify(o))}return ul(i)},Hl=(e,t,n)=>{let r=xl(t),i=kl(),a=[],o=[],s=[],c=[],l=Tl(r);for(let t=0;t<l;t++){let t=Tl(r),n=Tl(r),l=JSON.parse(Dl(r)),u=e.meta.get(t),d=e.states.get(t),f=u===void 0?0:u.clock;(f<n||f===n&&l===null&&e.states.has(t))&&(l===null?t===e.clientID&&e.getLocalState()!=null?n++:e.states.delete(t):e.states.set(t,l),e.meta.set(t,{clock:n,lastUpdated:i}),u===void 0&&l!==null?a.push(t):u!==void 0&&l===null?c.push(t):l!==null&&(Ll(l,d)||s.push(t),o.push(t)))}(a.length>0||s.length>0||c.length>0)&&e.emit(`change`,[{added:a,updated:s,removed:c},n]),(a.length>0||o.length>0||c.length>0)&&e.emit(`update`,[{added:a,updated:o,removed:c},n])},Ul=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}},Wl=class{constructor(e){this.data=e,this.encoder=cl(),this.decoder=xl(new Uint8Array(this.data))}peekVarString(){return Ol(this.decoder)}readVarUint(){return Tl(this.decoder)}readVarString(){return Dl(this.decoder)}readVarUint8Array(){return Cl(this.decoder)}writeVarUint(e){return Z(this.encoder,e)}writeVarString(e){return ml(this.encoder,e)}writeVarUint8Array(e){return gl(this.encoder,e)}length(){return ll(this.encoder)}},Q=function(e){return e[e.Sync=0]=`Sync`,e[e.Awareness=1]=`Awareness`,e[e.Auth=2]=`Auth`,e[e.QueryAwareness=3]=`QueryAwareness`,e[e.Stateless=5]=`Stateless`,e[e.CLOSE=7]=`CLOSE`,e[e.SyncStatus=8]=`SyncStatus`,e[e.Ping=9]=`Ping`,e[e.Pong=10]=`Pong`,e}({}),$=function(e){return e.Connecting=`connecting`,e.Connected=`connected`,e.Disconnected=`disconnected`,e}({}),Gl=class{constructor(){this.encoder=cl()}get(e){return e.encoder}toUint8Array(){return ul(this.encoder)}},Kl=class extends Gl{constructor(...e){super(...e),this.type=Q.CLOSE,this.description=`Ask the server to close the connection`}get(e){return ml(this.encoder,e.documentName),Z(this.encoder,this.type),this.encoder}},ql=class e extends Ul{static{this.DEDUPLICATABLE_TYPES=new Set([Q.Awareness,Q.QueryAwareness])}constructor(e){super(),this.messageQueue=[],this.configuration={url:``,autoConnect:!0,preserveTrailingSlash:!1,document:void 0,WebSocketPolyfill:void 0,messageReconnectTimeout:3e4,delay:1e3,initialDelay:0,factor:2,maxAttempts:0,minDelay:1e3,maxDelay:3e4,jitter:!0,timeout:0,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,handleTimeout:null,providerMap:new Map},this.webSocket=null,this.webSocketHandlers={},this.shouldConnect=!0,this.status=$.Disconnected,this.lastMessageReceived=0,this.identifier=0,this.intervals={connectionChecker:null},this.connectionAttempt=null,this.receivedOnOpenPayload=void 0,this.closeTries=0,this.setConfiguration(e),this.configuration.WebSocketPolyfill=e.WebSocketPolyfill?e.WebSocketPolyfill:WebSocket,this.on(`open`,this.configuration.onOpen),this.on(`open`,this.onOpen.bind(this)),this.on(`connect`,this.configuration.onConnect),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`status`,this.configuration.onStatus),this.on(`disconnect`,this.configuration.onDisconnect),this.on(`close`,this.configuration.onClose),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`close`,this.onClose.bind(this)),this.on(`message`,this.onMessage.bind(this)),this.intervals.connectionChecker=setInterval(this.checkConnection.bind(this),this.configuration.messageReconnectTimeout/10),this.shouldConnect&&this.connect()}async onOpen(e){this.status=$.Connected,this.emit(`status`,{status:$.Connected}),this.cancelWebsocketRetry=void 0,this.receivedOnOpenPayload=e}attach(e){let t=e.effectiveName,n=this.configuration.providerMap.get(t);if(n&&n!==e&&n.isAuthenticated)throw Error(`Cannot attach two providers with the same effective name "${t}". Use sessionAwareness: true to multiplex providers with the same document name.`);this.configuration.providerMap.set(t,e),this.status===$.Disconnected&&this.shouldConnect&&this.connect(),this.receivedOnOpenPayload&&this.status===$.Connected&&e.onOpen(this.receivedOnOpenPayload)}detach(e){let t=e.effectiveName;this.configuration.providerMap.has(t)&&(e.send(Kl,{documentName:t}),this.configuration.providerMap.delete(t))}setConfiguration(e={}){this.configuration={...this.configuration,...e},this.configuration.autoConnect||(this.shouldConnect=!1)}async connect(){if(this.status===$.Connected)return;this.cancelWebsocketRetry&&=(this.cancelWebsocketRetry(),void 0),this.receivedOnOpenPayload=void 0,this.shouldConnect=!0;let{retryPromise:e,cancelFunc:t}=(()=>{let e=!1;return{retryPromise:jc(this.createWebSocketConnection.bind(this),{delay:this.configuration.delay,initialDelay:this.configuration.initialDelay,factor:this.configuration.factor,maxAttempts:this.configuration.maxAttempts,minDelay:this.configuration.minDelay,maxDelay:this.configuration.maxDelay,jitter:this.configuration.jitter,timeout:this.configuration.timeout,handleTimeout:this.configuration.handleTimeout,beforeAttempt:t=>{(!this.shouldConnect||e)&&t.abort()}}).catch(e=>{if(e&&e.code!==`ATTEMPT_ABORTED`)throw e}),cancelFunc:()=>{e=!0}}})();return this.cancelWebsocketRetry=t,e}attachWebSocketListeners(e,t){let{identifier:n}=e,r=e=>this.emit(`message`,e),i=e=>this.emit(`close`,{event:e}),a=e=>this.emit(`open`,e),o=e=>{t(e)};this.webSocketHandlers[n]={message:r,close:i,open:a,error:o};let s=this.webSocketHandlers[e.identifier];Object.keys(s).forEach(t=>{e.addEventListener(t,s[t])})}cleanupWebSocket(){if(!this.webSocket)return;let{identifier:e}=this.webSocket,t=this.webSocketHandlers[e];Object.keys(t).forEach(n=>{this.webSocket?.removeEventListener(n,t[n]),delete this.webSocketHandlers[e]}),this.webSocket.close(),this.webSocket=null}createWebSocketConnection(){return new Promise((e,t)=>{this.webSocket&&(this.messageQueue=[],this.cleanupWebSocket()),this.lastMessageReceived=0,this.identifier+=1;let n=new this.configuration.WebSocketPolyfill(this.url);n.binaryType=`arraybuffer`,n.identifier=this.identifier,this.attachWebSocketListeners(n,t),this.webSocket=n,this.status=$.Connecting,this.emit(`status`,{status:$.Connecting}),this.connectionAttempt={resolve:e,reject:t}})}onMessage(e){this.resolveConnectionAttempt(),this.lastMessageReceived=kl();let t=new Uint8Array(e.data);if(t.length===1&&t[0]===Q.Ping){this.sendPong();return}let n=new Wl(t).peekVarString();this.configuration.providerMap.get(n)?.onMessage(e)}sendPong(){let e=cl();Z(e,Q.Pong),this.send(ul(e))}resolveConnectionAttempt(){this.connectionAttempt&&(this.connectionAttempt.resolve(),this.connectionAttempt=null,this.status=$.Connected,this.emit(`status`,{status:$.Connected}),this.emit(`connect`),this.messageQueue.forEach(e=>this.send(e)),this.messageQueue=[])}stopConnectionAttempt(){this.connectionAttempt=null}rejectConnectionAttempt(){this.connectionAttempt?.reject(),this.connectionAttempt=null}checkConnection(){this.status===$.Connected&&this.lastMessageReceived&&(this.configuration.messageReconnectTimeout>=kl()-this.lastMessageReceived||(this.closeTries+=1,this.closeTries>2?(this.emit(`close`,{event:{code:4408,reason:`forced`}}),this.closeTries=0):(this.webSocket?.close(),this.messageQueue=[])))}get serverUrl(){if(this.configuration.preserveTrailingSlash)return this.configuration.url;let e=this.configuration.url;for(;e[e.length-1]===`/`;)e=e.slice(0,e.length-1);return e}get url(){return this.serverUrl}disconnect(){if(this.shouldConnect=!1,this.webSocket!==null)try{this.webSocket.close(),this.messageQueue=[]}catch(e){console.error(e)}}parseQueuedMessage(e){try{let t=xl(e);return{documentName:Dl(t),messageType:Tl(t)}}catch{return null}}addToQueue(t){if(t instanceof Uint8Array){let n=this.parseQueuedMessage(t);n&&e.DEDUPLICATABLE_TYPES.has(n.messageType)&&(this.messageQueue=this.messageQueue.filter(e=>{if(!(e instanceof Uint8Array))return!0;let t=this.parseQueuedMessage(e);return t?!(t.documentName===n.documentName&&t.messageType===n.messageType):!0}))}this.messageQueue.push(t)}send(e){this.webSocket?.readyState===Dc.Open?this.webSocket.send(e):this.addToQueue(e)}onClose({event:e}){this.closeTries=0,this.cleanupWebSocket(),this.connectionAttempt&&this.rejectConnectionAttempt(),this.status=$.Disconnected,this.emit(`status`,{status:$.Disconnected}),this.emit(`disconnect`,{event:e}),!this.cancelWebsocketRetry&&this.shouldConnect&&setTimeout(()=>{this.connect()},this.configuration.delay)}destroy(){this.emit(`destroy`),clearInterval(this.intervals.connectionChecker),this.stopConnectionAttempt(),this.disconnect(),this.removeAllListeners(),this.cleanupWebSocket()}},Jl=0,Yl=1,Xl=2,Zl=(e,t)=>{Z(e,Jl),gl(e,xa(t))},Ql=(e,t,n)=>{Z(e,Yl),gl(e,ha(t,n))},$l=(e,t,n)=>Ql(t,n,Cl(e)),eu=(e,t,n,r)=>{try{fa(t,Cl(e),n)}catch(e){r?.(e),console.error(`Caught error while handling a Yjs update`,e)}},tu=(e,t)=>{Z(e,Xl),gl(e,t)},nu=eu,ru=(e,t,n,r,i)=>{let a=Tl(e);switch(a){case Jl:$l(e,t,n);break;case Yl:eu(e,n,r,i);break;case Xl:nu(e,n,r,i);break;default:throw Error(`Unknown message type`)}return a},iu=class{constructor(e){this.message=e}apply(e,t){let{message:n}=this,r=n.readVarUint(),i=n.length();switch(r){case Q.Sync:this.applySyncMessage(e,t);break;case Q.Awareness:this.applyAwarenessMessage(e);break;case Q.Auth:this.applyAuthMessage(e);break;case Q.QueryAwareness:this.applyQueryAwarenessMessage(e);break;case Q.Stateless:e.receiveStateless(Dl(n.decoder));break;case Q.SyncStatus:this.applySyncStatusMessage(e,El(n.decoder)===1);break;case Q.CLOSE:let i={code:1e3,reason:Dl(n.decoder)};e.onClose(),e.configuration.onClose({event:i}),e.forwardClose({event:i});break;default:console.error(`Can’t apply message of unknown type: ${r}`)}n.length()>i+1&&e.send(Gl,{encoder:n.encoder})}applySyncMessage(e,t){let{message:n}=this;n.writeVarUint(Q.Sync);let r=ru(n.decoder,n.encoder,e.document,e);t&&r===Yl&&(e.synced=!0)}applySyncStatusMessage(e,t){t&&e.decrementUnsyncedChanges()}applyAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;Hl(e.awareness,t.readVarUint8Array(),e)}applyAuthMessage(e){let{message:t}=this;Sc(t.decoder,e.sendToken.bind(e),e.permissionDeniedHandler.bind(e),e.authenticatedHandler.bind(e))}applyQueryAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;t.writeVarUint(Q.Awareness),t.writeVarUint8Array(Vl(e.awareness,Array.from(e.awareness.getStates().keys())))}},au=class{constructor(e,t={}){this.message=new e,this.encoder=this.message.get(t)}create(){return ul(this.encoder)}send(e){e?.send(this.create())}},ou=`4.0.0-rc.1`,su=class extends Gl{constructor(...e){super(...e),this.type=Q.Auth,this.description=`Authentication`}get(e){if(e.token===void 0)throw Error("The authentication message requires `token` as an argument.");return ml(this.encoder,e.documentName),Z(this.encoder,this.type),xc(this.encoder,e.token),ml(this.encoder,ou),this.encoder}},cu=class extends Gl{constructor(...e){super(...e),this.type=Q.Awareness,this.description=`Awareness states update`}get(e){if(e.awareness===void 0)throw Error(`The awareness message requires awareness as an argument`);if(e.clients===void 0)throw Error(`The awareness message requires clients as an argument`);ml(this.encoder,e.documentName),Z(this.encoder,this.type);let t;return t=e.states===void 0?Vl(e.awareness,e.clients):Vl(e.awareness,e.clients,e.states),gl(this.encoder,t),this.encoder}},lu=class extends Gl{constructor(...e){super(...e),this.type=Q.Stateless,this.description=`A stateless message`}get(e){return ml(this.encoder,e.documentName),Z(this.encoder,this.type),ml(this.encoder,e.payload??``),this.encoder}},uu=class extends Gl{constructor(...e){super(...e),this.type=Q.Sync,this.description=`First sync step`}get(e){if(e.document===void 0)throw Error(`The sync step one message requires document as an argument`);return ml(this.encoder,e.documentName),Z(this.encoder,this.type),Zl(this.encoder,e.document),this.encoder}},du=class extends Gl{constructor(...e){super(...e),this.type=Q.Sync,this.description=`A document update`}get(e){return ml(this.encoder,e.documentName),Z(this.encoder,this.type),tu(this.encoder,e.update),this.encoder}},fu=class extends Error{constructor(...e){super(...e),this.code=1001}},pu=class extends Ul{get effectiveName(){return this.configuration.sessionAwareness?Tc(this.configuration.name,this.sessionId):this.configuration.name}constructor(e){super(),this.configuration={name:``,document:void 0,awareness:void 0,token:null,sessionAwareness:!0,forceSyncInterval:!1,onAuthenticated:()=>null,onAuthenticationFailed:()=>null,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onSynced:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,onStateless:()=>null,onUnsyncedChanges:()=>null},this.isSynced=!1,this.unsyncedChanges=0,this.isAuthenticated=!1,this.authorizedScope=void 0,this.manageSocket=!1,this._isAttached=!1,this.sessionId=Math.random().toString(36).slice(2),this.intervals={forceSync:null},this.boundDocumentUpdateHandler=this.documentUpdateHandler.bind(this),this.boundAwarenessUpdateHandler=this.awarenessUpdateHandler.bind(this),this.boundPageHide=this.pageHide.bind(this),this.boundOnOpen=this.onOpen.bind(this),this.boundOnClose=this.onClose.bind(this),this.forwardConnect=()=>this.emit(`connect`),this.forwardStatus=e=>this.emit(`status`,e),this.forwardClose=e=>this.emit(`close`,e),this.forwardDisconnect=e=>this.emit(`disconnect`,e),this.forwardDestroy=()=>this.emit(`destroy`),this.setConfiguration(e),this.configuration.document=e.document?e.document:new Xi,this.configuration.awareness=e.awareness===void 0?new zl(this.document):e.awareness,this.on(`open`,this.configuration.onOpen),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`synced`,this.configuration.onSynced),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`stateless`,this.configuration.onStateless),this.on(`unsyncedChanges`,this.configuration.onUnsyncedChanges),this.on(`authenticated`,this.configuration.onAuthenticated),this.on(`authenticationFailed`,this.configuration.onAuthenticationFailed),this.awareness?.on(`update`,()=>{this.emit(`awarenessUpdate`,{states:Cc(this.awareness.getStates())})}),this.awareness?.on(`change`,()=>{this.emit(`awarenessChange`,{states:Cc(this.awareness.getStates())})}),this.document.on(`update`,this.boundDocumentUpdateHandler),this.awareness?.on(`update`,this.boundAwarenessUpdateHandler),this.registerEventListeners(),this.configuration.forceSyncInterval&&typeof this.configuration.forceSyncInterval==`number`&&(this.intervals.forceSync=setInterval(this.forceSync.bind(this),this.configuration.forceSyncInterval)),this.manageSocket&&this.attach()}setConfiguration(e={}){e.websocketProvider||(this.manageSocket=!0,this.configuration.websocketProvider=new ql(e)),this.configuration={...this.configuration,...e}}get document(){return this.configuration.document}get isAttached(){return this._isAttached}get awareness(){return this.configuration.awareness}get hasUnsyncedChanges(){return this.unsyncedChanges>0}resetUnsyncedChanges(){this.unsyncedChanges=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}incrementUnsyncedChanges(){this.unsyncedChanges+=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}decrementUnsyncedChanges(){this.unsyncedChanges>0&&--this.unsyncedChanges,this.unsyncedChanges===0&&(this.synced=!0),this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}forceSync(){this.resetUnsyncedChanges(),this.send(uu,{document:this.document,documentName:this.effectiveName})}pageHide(){this.awareness&&Bl(this.awareness,[this.document.clientID],`page hide`)}registerEventListeners(){typeof window>`u`||!(`addEventListener`in window)||window.addEventListener(`pagehide`,this.boundPageHide)}sendStateless(e){this.send(lu,{documentName:this.effectiveName,payload:e})}async sendToken(){let e;try{e=await this.getToken()}catch(e){this.permissionDeniedHandler(`Failed to get token during sendToken(): ${e}`);return}this.send(su,{token:e??``,documentName:this.effectiveName})}documentUpdateHandler(e,t){t!==this&&(this.incrementUnsyncedChanges(),this.send(du,{update:e,documentName:this.effectiveName}))}awarenessUpdateHandler({added:e,updated:t,removed:n},r){let i=e.concat(t).concat(n);this.send(cu,{awareness:this.awareness,clients:i,documentName:this.effectiveName})}get synced(){return this.isSynced}set synced(e){this.isSynced!==e&&(this.isSynced=e,e&&this.emit(`synced`,{state:e}))}receiveStateless(e){this.emit(`stateless`,{payload:e})}async connect(){if(this.manageSocket)return this.configuration.websocketProvider.connect();console.warn(`HocuspocusProvider::connect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}disconnect(){if(this.manageSocket)return this.configuration.websocketProvider.disconnect();console.warn(`HocuspocusProvider::disconnect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}async onOpen(e){this.isAuthenticated=!1,this.emit(`open`,{event:e}),await this.sendToken(),this.startSync()}async getToken(){return typeof this.configuration.token==`function`?await this.configuration.token():this.configuration.token}startSync(){this.resetUnsyncedChanges(),this.send(uu,{document:this.document,documentName:this.effectiveName}),this.awareness&&this.awareness.getLocalState()!==null&&this.send(cu,{awareness:this.awareness,clients:[this.document.clientID],documentName:this.effectiveName})}send(e,t){if(!this._isAttached)return;let n=new au(e,t);this.emit(`outgoingMessage`,{message:n.message}),n.send(this.configuration.websocketProvider)}onMessage(e){let t=new Wl(e.data),{documentName:n}=Ec(t.readVarString());t.writeVarString(this.effectiveName),this.emit(`message`,{event:e,message:new Wl(e.data)}),new iu(t).apply(this,!0)}onClose(){this.isAuthenticated=!1,this.synced=!1,this.awareness&&Bl(this.awareness,Array.from(this.awareness.getStates().keys()).filter(e=>e!==this.document.clientID),this)}destroy(){this.emit(`destroy`),this.intervals.forceSync&&clearInterval(this.intervals.forceSync),this.awareness&&(Bl(this.awareness,[this.document.clientID],`provider destroy`),this.awareness.off(`update`,this.boundAwarenessUpdateHandler),this.awareness.destroy()),this.document.off(`update`,this.boundDocumentUpdateHandler),this.removeAllListeners(),this.detach(),this.manageSocket&&this.configuration.websocketProvider.destroy(),!(typeof window>`u`||!(`removeEventListener`in window))&&window.removeEventListener(`pagehide`,this.boundPageHide)}detach(){this.configuration.websocketProvider.off(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.off(`connect`,this.forwardConnect),this.configuration.websocketProvider.off(`status`,this.forwardStatus),this.configuration.websocketProvider.off(`status`,this.configuration.onStatus),this.configuration.websocketProvider.off(`open`,this.boundOnOpen),this.configuration.websocketProvider.off(`close`,this.boundOnClose),this.configuration.websocketProvider.off(`close`,this.configuration.onClose),this.configuration.websocketProvider.off(`close`,this.forwardClose),this.configuration.websocketProvider.off(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.off(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.off(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.off(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.detach(this),this._isAttached=!1}attach(){this._isAttached||=(this.configuration.websocketProvider.on(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.on(`connect`,this.forwardConnect),this.configuration.websocketProvider.on(`status`,this.configuration.onStatus),this.configuration.websocketProvider.on(`status`,this.forwardStatus),this.configuration.websocketProvider.on(`open`,this.boundOnOpen),this.configuration.websocketProvider.on(`close`,this.boundOnClose),this.configuration.websocketProvider.on(`close`,this.configuration.onClose),this.configuration.websocketProvider.on(`close`,this.forwardClose),this.configuration.websocketProvider.on(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.on(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.on(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.on(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.attach(this),!0)}permissionDeniedHandler(e){this.emit(`authenticationFailed`,{reason:e}),this.isAuthenticated=!1}authenticatedHandler(e){this.isAuthenticated=!0,this.authorizedScope=e,this.emit(`authenticated`,{scope:e})}setAwarenessField(e,t){if(!this.awareness)throw new fu(`Cannot set awareness field "${e}" to ${JSON.stringify(t)}. You have disabled Awareness for this provider by explicitly passing awareness: null in the provider configuration.`);this.awareness.setLocalStateField(e,t)}};function mu(e,t,n=null,r=null){let i={...ge()};return e!==null&&(i.principalId=e.principalId,i.tabSessionId=e.tabSessionId),t!==null&&t.length>0&&(i.expectedServerInstanceId=t),n!==null&&n.length>0&&(i.expectedBranch=n),r!==null&&r.length>0&&(i.expectedDocLineageEpoch=r),JSON.stringify(i)}function hu(e,t,n){let r=(0,xe.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{!e||!n||typeof e.setLanguagePreference==`function`&&e.setLanguagePreference(t??`system`).catch(e=>{console.warn(JSON.stringify({event:`language-preference-push-failed`,preference:t??`system`,error:e instanceof Error?e.message:String(e)}))})},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,y.useEffect)(i,a)}function gu(e){let t=/^rgba?\(([^)]*)\)$/i.exec(e.trim())?.[1];if(t===void 0)return null;let n=t.split(/[\s,/]+/).filter(Boolean);if(n.length<3)return null;let r=`#`;for(let e=0;e<3;e++){let t=Math.round(Number(n[e]));if(!Number.isFinite(t)||t<0||t>255)return null;r+=t.toString(16).padStart(2,`0`)}return r}function _u(e){if(typeof document>`u`)return null;let t=document.createElement(`canvas`).getContext(`2d`);if(!t)return null;t.fillStyle=`#000000`,t.fillStyle=e;let n=t.fillStyle;return t.fillStyle=`#ffffff`,t.fillStyle=e,t.fillStyle===n&&typeof n==`string`&&/^#[0-9a-f]{6}$/i.test(n)?n.toLowerCase():null}function vu(e){return _u(e)??gu(e)}function yu(e){let t=document.createElement(`span`);t.style.display=`none`,t.style.backgroundColor=`var(${e})`,document.body.appendChild(t);try{let e=getComputedStyle(t).backgroundColor;return!e||e===`rgba(0, 0, 0, 0)`||e.includes(`var(`)?null:vu(e)}finally{t.remove()}}function bu(){if(!(typeof document>`u`))try{let e=yu(`--sidebar`),t=yu(`--sidebar-foreground`);return!e||!t?void 0:{bg:e,symbol:t}}catch{return}}function xu(e,t,n){let r=(0,xe.c)(10),i;r[0]!==e||r[1]!==t?(i=()=>{if(t!==`light`&&t!==`dark`&&t!==`system`||!e)return;let n=!1;return e.setThemeSource(t).catch(e=>{console.warn(JSON.stringify({event:`theme-source-set-failed`,themeValue:t,error:e instanceof Error?e.message:String(e)}))}).finally(()=>{if(n)return;let t=window.matchMedia(`(prefers-reduced-transparency: reduce)`).matches;e.signalThemeApplied({reducedTransparency:t,chrome:bu()})}),()=>{n=!0}},r[0]=e,r[1]=t,r[2]=i):i=r[2];let a;r[3]!==e||r[4]!==n||r[5]!==t?(a=[e,t,n],r[3]=e,r[4]=n,r[5]=t,r[6]=a):a=r[6],(0,y.useEffect)(i,a);let o,s;r[7]===e?(o=r[8],s=r[9]):(o=()=>{if(!e)return;let t=window.matchMedia(`(prefers-reduced-transparency: reduce)`),n=t=>{e.signalThemeApplied({reducedTransparency:t.matches,chrome:bu()})};return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}},s=[e],r[7]=e,r[8]=o,r[9]=s),(0,y.useEffect)(o,s)}function Su(e){return{authoritative:e,themes:ie,warnings:[],truncated:!1}}function Cu(e){let{scheme:t}=e;return{id:e.id,label:t.name,kind:t.variant,scheme:t,toTokens:()=>d(t)}}function wu(e,t){return{id:e,label:t.name,kind:t.variant,scheme:t,toTokens:()=>d(t)}}function Tu(e,t,n={}){console.warn(JSON.stringify({event:`ok-saved-theme-request-failed`,action:e,result:t,...n.status===void 0?{}:{status:n.status},...n.error===void 0?{}:{errorName:n.error instanceof Error?n.error.name:`UnknownError`}}))}async function Eu(e={}){let t=e.request??globalThis.fetch;try{let n=await t(`/api/saved-themes`,{signal:e.signal});if(!n.ok)return Tu(`list`,`http-error`,{status:n.status}),Su(!1);let r=h.safeParse(await n.json());if(!r.success)return console.warn(`[themes] saved-themes response failed schema validation`,r.error.issues),Su(!1);let i=[],a=[];for(let e of r.data.themes)e.ok?i.push(Cu(e)):a.push({filename:e.filename,id:e.id,code:e.code,...e.conflictingFilenames?{conflictingFilenames:e.conflictingFilenames}:{}});return{authoritative:!0,themes:i.length===0?ie:[...ie,...i],warnings:a,truncated:r.data.truncated}}catch(t){return e.signal?.aborted||Tu(`list`,`request-error`,{error:t}),Su(!1)}}function Du(e){switch(e.detail){case`empty`:case`too-long`:case`invalid-chars`:return e.detail;default:return}}async function Ou(e,t={}){let n=l.safeParse(e);if(!n.success)return{ok:!1,reason:`unexpected`};let r=t.request??globalThis.fetch;try{let e=await r(`/api/saved-theme`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(n.data)}),t=await e.json().catch(()=>null);if(e.ok){let e=u.safeParse(t);return e.success?{ok:!0,...e.data}:{ok:!1,reason:`unexpected`}}let i=ue.safeParse(t);if(!i.success)return{ok:!1,reason:`unexpected`};if(i.data.type===`urn:ok:error:theme-name-taken`)return{ok:!1,reason:`name-taken`};if(i.data.type===`urn:ok:error:theme-name-invalid`){let e=Du(i.data);return e?{ok:!1,reason:`name-invalid`,detail:e}:{ok:!1,reason:`name-invalid`}}return{ok:!1,reason:`unexpected`}}catch(e){return Tu(`save`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}async function ku(e,t={}){let n=de.safeParse(e);if(!n.success)return{ok:!1,reason:`unexpected`};let r=t.request??globalThis.fetch;try{let e=await r(`/api/saved-theme`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(n.data)}),t=await e.json().catch(()=>null);if(e.ok){let e=o.safeParse(t);return e.success?{ok:!0,...e.data}:{ok:!1,reason:`unexpected`}}let i=ue.safeParse(t);return i.success&&i.data.type===`urn:ok:error:not-found`?{ok:!1,reason:`not-found`}:{ok:!1,reason:`unexpected`}}catch(e){return Tu(`update`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}async function Au(e,t={}){if(!p(e).ok)return{ok:!1,reason:`unexpected`};let n=t.request??globalThis.fetch;try{let t=await n(`/api/saved-theme?${new URLSearchParams({id:e})}`,{method:`DELETE`}),r=await t.json().catch(()=>null);if(!t.ok)return{ok:!1,reason:`unexpected`};let i=c.safeParse(r);if(!i.success)return{ok:!1,reason:`unexpected`};if(!i.data.existed)return{ok:!0,existed:!1};let a=m.safeParse(i.data.scheme);return a.success?{ok:!0,existed:!0,filename:i.data.filename,scheme:a.data}:{ok:!1,reason:`unexpected`}}catch(e){return Tu(`delete`,`request-error`,{error:e}),{ok:!1,reason:`unexpected`}}}var ju=(0,y.createContext)(null);function Mu(e){let t=(0,xe.c)(20),{children:n}=e,r=De(),[i,a]=(0,y.useState)(Fu),[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)(!1),[u,d]=(0,y.useState)(`custom`),[f,p]=(0,y.useState)(!1),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={},t[0]=m):m=t[0];let h=(0,y.useRef)(m),ee;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(ee={},t[1]=ee):ee=t[1];let[te,ne]=(0,y.useState)(ee),g=(0,y.useRef)(0),re;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(re=()=>{let e=0,t=null,n=!1,r=null,i,o=[250,1e3,4e3],c=()=>{i!==void 0&&clearTimeout(i),i=void 0},u=()=>{if(t)return n=!0,t;let i=e,o=(async()=>{let t;do{n=!1;let o=g.current,u=new AbortController;r=u;let{authoritative:d,...f}=await Eu({signal:u.signal});if(i!==e)return!1;t=d,d?(c(),o===g.current&&a(f),s(!0),l(!1)):l(!0)}while(n);return t})().finally(()=>{t===o&&(t=null)});return t=o,o};return{refresh:u,startAutomaticRetry:()=>{e+=1;let a=e;r?.abort(),r=null,t=null,n=!1,c();let s=async t=>{let n=await u();a!==e||n||t>=o.length||(i=setTimeout(()=>void s(t+1),o[t]))};return s(0),()=>{a===e&&(e+=1,r?.abort(),r=null,t=null,n=!1,c())}}}},t[2]=re):re=t[2];let[_]=(0,y.useState)(re),ie=_.refresh,ae;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>{let e=new Map,t=(t,n)=>{let r=(e.get(t)??Promise.resolve()).then(n,n),i=r.then(Pu,Nu);return e.set(t,i),i.finally(()=>{e.get(t)===i&&e.delete(t)}),r},n=(e,t,n)=>{g.current+=1;let r=wu(e,t);a(t=>({...t,themes:t.themes.some(t=>t.id===e)?t.themes.map(t=>t.id===e?r:t):[...t.themes,r],warnings:t.warnings.filter(t=>t.id!==e&&(n===void 0||t.filename!==n))}))};return{updateTheme:e=>t(e.id,async()=>{let t=await ku(e);return t.ok&&n(e.id,e.scheme,t.filename),t}),deleteTheme:e=>t(e,async()=>{let t=await Au(e);if(t.ok){let t={...h.current,[e]:(h.current[e]??0)+1};h.current=t,ne(t),g.current+=1,a(t=>({...t,themes:t.themes.filter(t=>t.id!==e),warnings:t.warnings.filter(t=>t.id!==e)}))}return t}),restoreTheme:e=>t(e.id,async()=>{let t=await Ou({name:e.name,stem:e.stem,scheme:e.scheme,extension:e.extension});return t.ok&&n(t.id,e.scheme,t.filename),t})}},t[3]=ae):ae=t[3];let[oe]=(0,y.useState)(ae),se;t[4]===_?se=t[5]:(se=()=>_.startAutomaticRetry(),t[4]=_,t[5]=se);let v;t[6]!==_||t[7]!==r?(v=[_,r],t[6]=_,t[7]=r,t[8]=v):v=t[8],(0,y.useEffect)(se,v);let ce;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(ce=function(e){if(e===null){p(!1);return}d(e),p(!0)},t[9]=ce):ce=t[9];let le=ce,ue;return t[10]!==n||t[11]!==i||t[12]!==u||t[13]!==c||t[14]!==o||t[15]!==oe||t[16]!==ie||t[17]!==f||t[18]!==te?(ue=(0,y.createElement)(ju,{value:{...i,loaded:o,loadError:c,refresh:ie,...oe,editingThemeId:u,themeIncarnations:te,themeEditorOpen:f,selectThemeToEdit:le}},n),t[10]=n,t[11]=i,t[12]=u,t[13]=c,t[14]=o,t[15]=oe,t[16]=ie,t[17]=f,t[18]=te,t[19]=ue):ue=t[19],ue}function Nu(){}function Pu(){}function Fu(){return Su(!1)}function Iu(){let e=(0,y.use)(ju);if(!e)throw Error(`useSavedThemes must be used within <SavedThemesProvider />`);return e}var Lu={en:()=>t(()=>import(`./messages-rkjIP7BR.js`).then(e=>e.n),__vite__mapDeps([0,1]),import.meta.url),"zh-Hans":()=>t(()=>import(`./messages-Cz0HTcE3.js`),[],import.meta.url),"zh-Hant":()=>t(()=>import(`./messages-UNuKuBb2.js`),[],import.meta.url),hi:()=>t(()=>import(`./messages-DjwF8F4A.js`),[],import.meta.url),es:()=>t(()=>import(`./messages-BFGHCRoN.js`),[],import.meta.url),ar:()=>t(()=>import(`./messages-CHUjbEwn.js`),[],import.meta.url),fr:()=>t(()=>import(`./messages-Qsv6EJD7.js`),[],import.meta.url),bn:()=>t(()=>import(`./messages-DWK9QAzw.js`),[],import.meta.url),"pt-BR":()=>t(()=>import(`./messages-CX1tqwDf.js`),[],import.meta.url),id:()=>t(()=>import(`./messages-Bz4SwP-G.js`),[],import.meta.url),ur:()=>t(()=>import(`./messages-CdTXcpVf.js`),[],import.meta.url),ko:()=>t(()=>import(`./messages-BzF2Rt66.js`),[],import.meta.url)},Ru=new Set([`en`]),zu=`en`;async function Bu(e){if(zu=e,!Ru.has(e)){let{default:t}=await Lu[e]();pe.load(e,t.messages),Ru.add(e)}zu===e&&pe.activate(e)}function Vu(){return!1}async function Hu(){}var Uu=`ok-locale-load-failed`;function Wu(){window.location.reload()}function Gu({locale:e,reload:t=Wu}){let n=new Intl.DisplayNames([pe.locale],{type:`language`}).of(e)??e;fe.error(pe._({id:`loE6tM`,values:{language:n}}),{id:Uu,description:pe._({id:`GtPGNJ`}),duration:1/0,action:{label:pe._({id:`HpK_8d`}),onClick:t}})}function Ku(){fe.dismiss(Uu)}var qu=`ok-language-v1`;function Ju({preference:e,locale:t}){if(typeof document>`u`)return;let n=ne(t),r=document.documentElement;r.lang=t,r.dir=n;try{localStorage.setItem(qu,JSON.stringify({pref:e,locale:t,dir:n}))}catch{}}function Yu(e){return e===`system`?`system`:s.includes(e)?e:void 0}function Xu(){if(!(typeof localStorage>`u`))try{let e=localStorage.getItem(qu);return e===null?void 0:Yu(JSON.parse(e).pref)}catch{return}}function Zu(e){let t=(0,xe.c)(4),{preference:n,userConfigSynced:r}=e,i,a;t[0]!==n||t[1]!==r?(i=()=>{if(Vu()){Hu().catch(Qu);return}if(!r)return;let{locale:e}=f({override:void 0,storedPreference:n,preferenceList:_(),supportedLocales:s,autoDetectableLocales:v}),t=!1;return Bu(e).then(()=>{t||(Ku(),Ju({preference:n??`system`,locale:e}))}).catch(n=>{console.warn(JSON.stringify({event:`ok-locale-activate-failed`,locale:e,error:String(n)})),!t&&Gu({locale:e})}),()=>{t=!0}},a=[n,r],t[0]=n,t[1]=r,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,y.useEffect)(i,a)}function Qu(e){console.warn(JSON.stringify({event:`ok-pseudo-locale-activate-failed`,error:String(e)}))}var $u=n();function ed(e,t,n,r){console.warn(JSON.stringify({event:`ok-${e}-${n}`,docName:t,code:r?.code,reason:r?.reason??void 0}))}function td(e,t,n,r){let i=new Xi,a=new pu({url:e,name:t,document:i,token:mu(null,r,null),onDisconnect:({event:e})=>ed(`config-provider`,t,`disconnect`,e),onClose:({event:e})=>ed(`config-provider`,t,`close`,e)}),o=le(a,n);return{binding:o,config:o.current(),cleanup:()=>{o.dispose(),a.destroy(),i.destroy()}}}function nd(e,t){let n=new Xi,r=new pu({url:e,name:g,document:n,token:mu(null,t,null),onDisconnect:({event:e})=>ed(`okignore-provider`,g,`disconnect`,e),onClose:({event:e})=>ed(`okignore-provider`,g,`close`,e)}),i=te(r);return{binding:i,provider:r,cleanup:()=>{i.dispose(),r.destroy(),n.destroy()}}}function rd(e){let t=(0,xe.c)(24),{collabUrl:n,children:r}=e,{themes:a,loaded:o,loadError:s}=Iu(),c=De(),{systemTheme:l}=i(),u=l===`dark`,[d,f]=(0,y.useState)(null),[p,m]=(0,y.useState)(null),[h,te]=(0,y.useState)(null),[ne,g]=(0,y.useState)(null),_,ie;t[0]!==n||t[1]!==c?(_=()=>{if(n===null)return;let e=td(n,ae,`user`,c),t=td(n,re,`project`,c),r=td(n,ce,`project-local`,c),i=nd(n,c);f({binding:e.binding,config:e.config,synced:e.binding.hasSynced()}),m({binding:t.binding,config:t.config,synced:t.binding.hasSynced()}),te({binding:r.binding,config:r.config,synced:r.binding.hasSynced()}),g({binding:i.binding,synced:!1});let a=e.binding.subscribe(t=>{f(n=>n?.binding===e.binding?{...n,config:t}:n)}),o=e.binding.subscribeSynced(()=>{f(t=>t?.binding===e.binding?{...t,config:e.binding.current(),synced:!0}:t)}),s=t.binding.subscribe(e=>{m(n=>n?.binding===t.binding?{...n,config:e}:n)}),l=t.binding.subscribeSynced(()=>{m(e=>e?.binding===t.binding?{...e,config:t.binding.current(),synced:!0}:e)}),u=r.binding.subscribe(e=>{te(t=>t?.binding===r.binding?{...t,config:e}:t)}),d=r.binding.subscribeSynced(()=>{te(e=>e?.binding===r.binding?{...e,config:r.binding.current(),synced:!0}:e)}),p=()=>{g(e=>e?.binding===i.binding?{...e,synced:!0}:e)};return i.provider.on(`synced`,p),()=>{a(),o(),s(),l(),u(),d(),i.provider.off(`synced`,p);for(let n of[e,t,r,i])try{n.cleanup()}catch(e){console.warn(JSON.stringify({event:`ok-config-provider-cleanup-error`,error:String(e)}))}f(t=>t?.binding===e.binding?null:t),m(e=>e?.binding===t.binding?null:e),te(e=>e?.binding===r.binding?null:e),g(e=>e?.binding===i.binding?null:e)}},ie=[n,c],t[0]=n,t[1]=c,t[2]=_,t[3]=ie):(_=t[2],ie=t[3]),(0,y.useEffect)(_,ie);let v=d&&p?se(d.config,p.config,h?.config):null,le=v?.appearance?.theme,ue=v?.appearance?.customTheme,de=v?.appearance?.colorThemeEnabled!==!1,fe=n===null||d?.synced===!0&&p?.synced===!0&&h?.synced===!0,pe=[v?.appearance?.colorThemeLight,v?.appearance?.colorThemeDark,v?.appearance?.colorTheme],ge=de&&pe.some(id),Se=fe&&(!ge||o),Ce=fe&&(!ge||o||s),we=oe(v?.appearance,a),Te=ee(le,u),Ee=de?we[Te]:`default`,b=Ee===`custom`?ve(ye(ue)):_e(Ee,a)??le;me(Se?b:void 0),be({selection:we,modePreference:le,slotMode:Te,customSeed:ue,themes:a,enabled:de,ready:Se}),Zu({preference:v?.appearance?.language,userConfigSynced:d?.synced??!1}),hu(typeof window<`u`?window.okDesktop:void 0,v?.appearance?.language,d?.synced??!1);let Oe=Ee.startsWith(`saved-`)?a.find(e=>e.id===Ee)?.scheme:void 0,x=Ee===`custom`?JSON.stringify(ue??null):Oe?JSON.stringify(Oe):``,ke;t[4]!==Ce||t[5]!==Se||t[6]!==b?(ke=Ce&&!Se&&typeof document<`u`?document.documentElement.classList.contains(`dark`)?`dark`:`light`:b??`system`,t[4]=Ce,t[5]=Se,t[6]=b,t[7]=ke):ke=t[7];let Ae=ke;xu(Ce&&typeof window<`u`?window.okDesktop:void 0,Ce?Ae:void 0,`${Ee}:${x}`);let S=d?.binding??null,je=d?.synced??!1,Me=p?.binding??null,C=h?.binding??null,Ne=ne?.binding??null,Pe=ne?.synced??!1,Fe=d?.config??null,Ie=p?.config??null,Le=p?.synced??!1,Re=h?.config??null,w=h?.synced??!1,ze;t[8]!==v||t[9]!==Fe||t[10]!==Ie||t[11]!==Le||t[12]!==Re||t[13]!==w||t[14]!==S||t[15]!==je||t[16]!==Me||t[17]!==C||t[18]!==Ne||t[19]!==Pe?(ze={userBinding:S,userSynced:je,projectBinding:Me,projectLocalBinding:C,okignoreBinding:Ne,okignoreSynced:Pe,userConfig:Fe,projectConfig:Ie,projectSynced:Le,projectLocalConfig:Re,projectLocalSynced:w,merged:v},t[8]=v,t[9]=Fe,t[10]=Ie,t[11]=Le,t[12]=Re,t[13]=w,t[14]=S,t[15]=je,t[16]=Me,t[17]=C,t[18]=Ne,t[19]=Pe,t[20]=ze):ze=t[20];let Be=ze,T;return t[21]!==r||t[22]!==Be?(T=(0,$u.jsx)(he,{value:Be,children:r}),t[21]=r,t[22]=Be,t[23]=T):T=t[23],T}function id(e){return typeof e==`string`&&e.startsWith(`saved-`)}function ad(e){let t=(0,xe.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$u.jsx)(Mu,{children:(0,$u.jsx)(rd,{...e})}),t[0]=e,t[1]=n),n}export{A as $,ha as A,Ro as B,za as C,La as D,Na as E,Aa as F,Wn as G,z as H,Ri as I,jn as J,Hn as K,Ma as L,H as M,ka as N,Ha as O,Bi as P,an as Q,Ua as R,Ba as S,B as T,si as U,gi as V,ci as W,_n as X,xn as Y,ln as Z,Cs as _,Iu as a,Re as at,fa as b,pu as c,x as ct,cc as d,j as et,Xi as f,uo as g,Va as h,Zu as i,Be as it,xa as j,_a as k,J as l,Te as lt,ja as m,Yu as n,et as nt,xu as o,S as ot,Y as p,Bn as q,Xu as r,T as rt,mu as s,b as st,ad as t,M as tt,Qs as u,Os as v,Wi as w,da as x,Ns as y,W as z};
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./chunk-CYidjpOJ.js";import{n}from"./chunk-Y2CYZVJY-C7i29bpG.js";import{t as r}from"./src-F_cJU_0C.js";import{C as i}from"./src-OCZeAMOR.js";import{t as a}from"./cytoscape.esm-CcWDmJHx.js";var o=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new a(t.x,t.y,n.width,n.height):this.rect=new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.withChildren(),n.forEach(function(t){e.add(t)});return e},l.prototype.getNoOfChildren=function(){var e=0,t;if(this.child==null)e=1;else for(var n=this.child.getNodes(),r=0;r<n.length;r++)t=n[r],e+=t.getNoOfChildren();return e==0&&(e=1),e},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var e,t,n=-o.INITIAL_WORLD_BOUNDARY,r=o.INITIAL_WORLD_BOUNDARY;e=o.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-o.INITIAL_WORLD_BOUNDARY,a=o.INITIAL_WORLD_BOUNDARY;t=o.WORLD_CENTER_Y+s.nextDouble()*(a-i)+i,this.rect.x=e,this.rect.y=t},l.prototype.updateBounds=function(){if(this.getChild()==null)throw`assert failed`;if(this.getChild().getNodes().length!=0){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),o.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a<i;a++)r=n[a],r.isInterGraph?this.graphManager.remove(r):r.source.owner.remove(r);var o=this.nodes.indexOf(t);if(o==-1)throw`Node not in owner node list!`;this.nodes.splice(o,1)}else if(e instanceof c){var r=e;if(r==null)throw`Edge is null!`;if(!(r.source!=null&&r.target!=null))throw`Source and/or target is null!`;if(!(r.source.owner!=null&&r.target.owner!=null&&r.source.owner==this&&r.target.owner==this))throw`Source and/or target owner is invalid!`;var l=r.source.edges.indexOf(r),u=r.target.edges.indexOf(r);if(!(l>-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;c<s;c++){var l=o[c];n=l.getTop(),r=l.getLeft(),e>n&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;m<p;m++){var h=f[m];e&&h.child!=null&&h.updateBounds(),o=h.getLeft(),s=h.getRight(),c=h.getTop(),u=h.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}var g=new l(t,r,n-t,a-r);t==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),d=f[0].getParent().paddingLeft==null?this.margin:f[0].getParent().paddingLeft,this.left=g.x-d,this.right=g.x+g.width+d,this.top=g.y-d,this.bottom=g.y+g.height+d},f.calculateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d=e.length,f=0;f<d;f++){var p=e[f];o=p.getLeft(),s=p.getRight(),c=p.getTop(),u=p.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}return new l(t,r,n-t,a-r)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++){var i=t[r];e+=i.calcEstimatedSize()}return e==0?this.estimatedSize=a.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=e/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var e=this;if(this.nodes.length==0){this.isConnected=!0;return}var t=new d,n=new Set,r=this.nodes[0],i,a;for(r.withChildren().forEach(function(e){t.push(e),n.add(e)});t.length!==0;){r=t.shift(),i=r.getEdges();for(var o=i.length,s=0;s<o;s++)a=i[s].getOtherEndInGraph(r,this),a!=null&&!n.has(a)&&a.withChildren().forEach(function(e){t.push(e),n.add(e)})}if(this.isConnected=!1,n.size>=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s<o;s++)a=n[s],t.remove(a);var c=[];c=c.concat(t.getNodes());var l;o=c.length;for(var s=0;s<o;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(a=e,a==null)throw`Edge is null!`;if(!a.isInterGraph)throw`Not an inter-graph edge!`;if(!(a.source!=null&&a.target!=null))throw`Source and/or target is null!`;if(!(a.source.edges.indexOf(a)!=-1&&a.target.edges.indexOf(a)!=-1))throw`Source and/or target doesn't know this edge!`;var u=a.source.edges.indexOf(a);if(a.source.edges.splice(u,1),u=a.target.edges.indexOf(a),a.target.edges.splice(u,1),!(a.source.owner!=null&&a.source.owner.getGraphManager()!=null))throw`Edge owner graph or owner graph manager is null!`;if(a.source.owner.getGraphManager().edges.indexOf(a)==-1)throw`Not in owner graph manager's edge list!`;var u=a.source.owner.getGraphManager().edges.indexOf(a);a.source.owner.getGraphManager().edges.splice(u,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(e){if(this.allNodesToApplyGravitation!=null)throw`assert failed`;this.allNodesToApplyGravitation=e},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw`Root not in this graph mgr!`;this.rootGraph=e,e.parent??=this.layout.newNode(`Root node`)},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(e,t){if(!(e!=null&&t!=null))throw`assert failed`;if(e==t)return!0;var n=e.getOwner(),r;do{if(r=n.getParent(),r==null)break;if(r==t)return!0;if(n=r.getOwner(),n==null)break}while(!0);n=t.getOwner();do{if(r=n.getParent(),r==null)break;if(r==e)return!0;if(n=r.getOwner(),n==null)break}while(!0);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,a=this.getAllEdges(),o=a.length,s=0;s<o;s++){if(e=a[s],t=e.source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t==n){e.lca=t.getOwner();continue}for(r=t.getOwner();e.lca==null;){for(e.targetInLca=n,i=n.getOwner();e.lca==null;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(e.lca!=null)throw`assert failed`;e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;e.lca??(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(e.lca==null)throw`assert failed`}},a.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();var n=e.getOwner();do{if(n==null)break;var r=t.getOwner();do{if(r==null)break;if(r==n)return r;r=r.getParent().getOwner()}while(!0);n=n.getParent().getOwner()}while(!0);return n},a.prototype.calcInclusionTreeDepths=function(e,t){e==null&&t==null&&(e=this.rootGraph,t=1);for(var n,r=e.getNodes(),i=r.length,a=0;a<i;a++)n=r[a],n.inclusionTreeDepth=t,n.child!=null&&this.calcInclusionTreeDepths(n.child,t+1)},a.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,n=0;n<t;n++)if(e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=a}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw`assert failed`;var i=[,,];this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]<s?s=n[0]:o=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(o/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){e.getCenterX()<t.getCenterX()?n[0]=-1:n[0]=1,e.getCenterY()<t.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),a=t.getCenterX(),o=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=a,n[3]=o,!0;var s=e.getX(),c=e.getY(),l=e.getRight(),u=e.getX(),d=e.getBottom(),f=e.getRight(),p=e.getWidthHalf(),m=e.getHeightHalf(),h=t.getX(),g=t.getY(),_=t.getRight(),v=t.getX(),y=t.getBottom(),b=t.getRight(),x=t.getWidthHalf(),S=t.getHeightHalf(),C=!1,w=!1;if(r===a){if(i>o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(i<o)return n[0]=r,n[1]=d,n[2]=a,n[3]=g,!1}else if(i===o){if(r>a)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(r<a)return n[0]=l,n[1]=i,n[2]=h,n[3]=o,!1}else{var T=e.height/e.width,E=t.height/t.width,D=(o-i)/(a-r),O=void 0,k=void 0,A=void 0,j=void 0,M=void 0,N=void 0;if(-T===D?r>a?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI:(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)),i},i.doIntersect=function(e,t,n,r){var i=e.x,a=e.y,o=t.x,s=t.y,c=n.x,l=n.y,u=r.x,d=r.y,f=(o-i)*(d-l)-(u-c)*(s-a);if(f===0)return!1;var p=((d-l)*(u-i)+(c-u)*(d-a))/f,m=((a-s)*(u-i)+(o-i)*(d-a))/f;return 0<p&&p<1&&0<m&&m<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return e===null?r.head=t:e.next=t,n===null?r.tail=t:n.prev=t,t.prev=e,t.next=n,r.length++,t},s=function(e,t){var n=e.prev,r=e.next;return n===null?t.head=r:n.next=r,r===null?t.tail=n:r.prev=n,e.prev=e.next=null,t.length--,e};e.exports=function(){function e(t){var n=this;i(this,e),this.length=0,this.head=null,this.tail=null,t?.forEach(function(e){return n.push(e)})}return r(e,[{key:`size`,value:function(){return this.length}},{key:`insertBefore`,value:function(e,t){return o(t.prev,a(e),t,this)}},{key:`insertAfter`,value:function(e,t){return o(t,a(e),t.next,this)}},{key:`insertNodeBefore`,value:function(e,t){return o(t.prev,e,t,this)}},{key:`insertNodeAfter`,value:function(e,t){return o(t,e,t.next,this)}},{key:`push`,value:function(e){return o(this.tail,a(e),null,this)}},{key:`unshift`,value:function(e){return o(null,a(e),this.head,this)}},{key:`remove`,value:function(e){return s(e,this)}},{key:`pop`,value:function(){return s(this.tail,this).value}},{key:`popNode`,value:function(){return s(this.tail,this)}},{key:`shift`,value:function(){return s(this.head,this).value}},{key:`shiftNode`,value:function(){return s(this.head,this)}},{key:`get_object_at`,value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:`set_object_at`,value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}()}),(function(e,t,n){function r(e,t,n){this.x=null,this.y=null,e==null&&t==null&&n==null?(this.x=0,this.y=0):typeof e==`number`&&typeof t==`number`&&n==null?(this.x=e,this.y=t):e.constructor.name==`Point`&&t==null&&n==null&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){e.constructor.name==`Point`&&t==null&&n==null?(n=e,this.setLocation(n.x,n.y)):typeof e==`number`&&typeof t==`number`&&n==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if(e.constructor.name==`Point`){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return new r().constructor.name+`[x=`+this.x+`,y=`+this.y+`]`},e.exports=r}),(function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&n!=null&&r!=null&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r}),(function(e,t,n){var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:e.uniqueID==null?(e.uniqueID=i.getString(),i.lastID++,e.uniqueID):e.uniqueID},i.getString=function(e){return e??=i.lastID,`Object#`+e},i.isPrimitive=function(e){var t=e===void 0?`undefined`:r(e);return e==null||t!=`object`&&t!=`function`},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var i=n(0),a=n(6),o=n(3),s=n(1),c=n(5),l=n(4),u=n(17),d=n(27);function f(e){d.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,e!=null&&(this.isRemoteUse=e)}f.RANDOM_SEED=1,f.prototype=Object.create(d.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var e=new a(this);return this.graphManager=e,e},f.prototype.newGraph=function(e){return new c(null,this.graphManager,e)},f.prototype.newNode=function(e){return new o(this.graphManager,e)},f.prototype.newEdge=function(e){return new s(null,null,e)},f.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var e=this.checkLayoutSuccess()?!1:this.layout();return i.ANIMATE===`during`?!1:(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];for(var n=this.graphManager.getRoot().getNodes(),t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},f.prototype.update=function(e){if(e==null)this.update2();else if(e instanceof o){var t=e;if(t.getChild()!=null)for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);t.vGraphObject!=null&&t.vGraphObject.update(t)}else if(e instanceof s){var i=e;i.vGraphObject!=null&&i.vGraphObject.update(i)}else if(e instanceof c){var a=e;a.vGraphObject!=null&&a.vGraphObject.update(a)}},f.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},f.prototype.transform=function(e){if(e==null)this.transform(new l(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(n!=null){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i,a=0;a<r.length;a++)i=r[a],i.transform(t)}}},f.prototype.positionNodesRandomly=function(e){if(e==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.getChild(),n==null||n.getNodes().length==0?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},f.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,a=0;a<n.length;a++)n[a].getChild()!=null&&(i=!1);if(!i)return e;var o=new Set,s=[],c=new Map,l=[];for(l=l.concat(n);l.length>0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a<d.length;a++){var f=d[a].getOtherEnd(u);if(c.get(u)!=f)if(!o.has(f))s.push(f),c.set(f,u);else{t=!1;break}}}if(!t)e=[];else{var p=[].concat(r(o));e.push(p);for(var a=0;a<p.length;a++){var m=p[a],h=l.indexOf(m);h>-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var a=this.newNode(null);a.setRect(new Point(0,0),new Dimension(1,1)),r.add(a);var o=this.newEdge(null);this.graphManager.add(o,n,a),t.add(a),n=a}var o=this.newEdge(null);return this.graphManager.add(o,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},f.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys()),e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),a=0;a<i.length;a++){var o=i[a],s=new l(o.getCenterX(),o.getCenterY()),c=n.bendpoints.get(a);c.x=s.x,c.y=s.y,o.getOwner().remove(o)}this.graphManager.add(n,n.source,n.target)}}},f.transform=function(e,t,n,r){if(n!=null&&r!=null){var i=t;if(e<=50){var a=t/n;i-=(t-a)/50*(50-e)}else{var o=t*r;i+=(o-t)/50*(e-50)}return i}else{var s,c;return e<=50?(s=9*t/500,c=t/10):(s=9*t/50,c=-8*t),s*e+c}},f.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,a=null;(t.length==1||t.length==2)&&(i=!0,a=t[0]);for(var o=0;o<t.length;o++){var s=t[o],c=s.getNeighborsList().size;r.set(s,s.getNeighborsList().size),c==1&&n.push(s)}var l=[];for(l=l.concat(n);!i;){var u=[];u=u.concat(l),l=[];for(var o=0;o<t.length;o++){var s=t[o],d=t.indexOf(s);d>=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var i=n(15),a=n(7),o=n(0),s=n(8),c=n(9);function l(){i.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=a.DEFAULT_EDGE_LENGTH,this.springConstant=a.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=a.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}for(var u in l.prototype=Object.create(i.prototype),i)l[u]=i[u];l.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,i,s,c=this.getGraphManager().getAllEdges(),l=0;l<c.length;l++)e=c[l],e.idealLength=this.idealEdgeLength,e.isInterGraph&&(n=e.getSource(),r=e.getTarget(),i=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=i+s-2*o.SIMPLE_NODE_SIZE),t=e.getLca().getInclusionTreeDepth(),e.idealLength+=a.DEFAULT_EDGE_LENGTH*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*t))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},l.prototype.calcRepulsionForces=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;n<s.length;n++)i=s[n],this.calculateRepulsionForceOfANode(i,c,e,t),c.add(i);else for(n=0;n<s.length;n++)for(i=s[n],r=n+1;r<s.length;r++)o=s[r],i.getOwner()==o.getOwner()&&this.calcRepulsionForce(i,o)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t,n=0;n<e.length;n++)t=e[n],t.move()},l.prototype.calcSpringForce=function(e,t){var n=e.getSource(),r=e.getTarget(),i,a,o,s;if(this.uniformLeafNodeSizes&&n.getChild()==null&&r.getChild()==null)e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;i=e.getLength(),i!=0&&(a=this.springConstant*(i-t),o=a*(e.lengthX/i),s=a*(e.lengthY/i),n.springForceX+=o,n.springForceY+=s,r.springForceX-=o,r.springForceY-=s)},l.prototype.calcRepulsionForce=function(e,t){var n=e.getRect(),r=t.getRect(),i=[,,],o=[,,,,],l,u,d,f,p,m,h;if(n.intersects(r)){s.calcSeparationAmount(n,r,i,a.DEFAULT_EDGE_LENGTH/2),m=2*i[0],h=2*i[1];var g=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=g*m,e.repulsionForceY-=g*h,t.repulsionForceX+=g*m,t.repulsionForceY+=g*h}else this.uniformLeafNodeSizes&&e.getChild()==null&&t.getChild()==null?(l=r.getCenterX()-n.getCenterX(),u=r.getCenterY()-n.getCenterY()):(s.getIntersection(n,r,o),l=o[2]-o[0],u=o[3]-o[1]),Math.abs(l)<a.MIN_REPULSION_DIST&&(l=c.sign(l)*a.MIN_REPULSION_DIST),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=c.sign(u)*a.MIN_REPULSION_DIST),d=l*l+u*u,f=Math.sqrt(d),p=this.repulsionConstant*e.noOfChildren*t.noOfChildren/d,m=p*l/f,h=p*u/f,e.repulsionForceX-=m,e.repulsionForceY-=h,t.repulsionForceX+=m,t.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(e){var t=e.getOwner(),n=(t.getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,a=e.getCenterY()-r,o=Math.abs(i)+e.getWidth()/2,s=Math.abs(a)+e.getHeight()/2,c;e.getOwner()==this.graphManager.getRoot()?(c=t.getEstimatedSize()*this.gravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)e=t[n],e.noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t=0,n=0;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=Array(t),i=0;i<t;i++)r[i]=Array(n);for(var i=0;i<t;i++)for(var a=0;a<n;a++)r[i][a]=[];return r},l.prototype.addNodeToGrid=function(e,t,n){var r=0,i=0,a=0,o=0;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var c=a;c<=o;c++)this.grid[s][c].push(e),e.setGridCoordinates(r,i,a,o)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,i){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&n||i){var o=new Set;e.surrounding=[];for(var s,c=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var u=e.startY-1;u<e.finishY+2;u++)if(!(l<0||u<0||l>=c.length||u>=c[0].length)){for(var d=0;d<c[l][u].length;d++)if(s=c[l][u][d],!(e.getOwner()!=s.getOwner()||e==s)&&!t.has(s)&&!o.has(s)){var f=Math.abs(e.getCenterX()-s.getCenterX())-(e.getWidth()/2+s.getWidth()/2),p=Math.abs(e.getCenterY()-s.getCenterY())-(e.getHeight()/2+s.getHeight()/2);f<=this.repulsionRange&&p<=this.repulsionRange&&o.add(s)}}e.surrounding=[].concat(r(o))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l}),(function(e,t,n){var r=n(1),i=n(7);function a(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];e.exports=a}),(function(e,t,n){var r=n(3);function i(e,t,n,i){r.call(this,e,t,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];i.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=i}),(function(e,t,n){function r(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r}),(function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),this.map[e]!=null},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i}),(function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return this.size()===0},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=n(11);e.exports=function(){function e(t,n){i(this,e),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof a?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:`_quicksort`,value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:`_partition`,value:function(e,t,n){for(var r=this._get(e,t),i=t,a=n;;){for(;this.compareFunction(r,this._get(e,a));)a--;for(;this.compareFunction(this._get(e,i),r);)i++;if(i<a)this._swap(e,i,a),i++,a--;else return a}}},{key:`_get`,value:function(e,t){return e instanceof a?e.get_object_at(t):e[t]}},{key:`_set`,value:function(e,t,n){e instanceof a?e.set_object_at(t,n):e[t]=n}},{key:`_swap`,value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:`_defaultCompareFunction`,value:function(e,t){return t>e}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.exports=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=Array(this.jMax);for(var c=0;c<this.jMax;c++)this.grid[s][c]=0}this.tracebackGrid=Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=Array(this.jMax);for(var u=0;u<this.jMax;u++)this.tracebackGrid[l][u]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:`getScore`,value:function(){return this.score}},{key:`getAlignments`,value:function(){return this.alignments}},{key:`computeGrids`,value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=void 0;i=this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty;var a=this.grid[n-1][r]+this.gap_penalty,o=this.grid[n][r-1]+this.gap_penalty,s=[i,a,o],c=this.arrayAllMaxIndexes(s);this.grid[n][r]=s[c[0]],this.tracebackGrid[n][r]=[c.includes(0),c.includes(1),c.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:`alignmentTraceback`,value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:``,seq2:``});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:`-`+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:`-`+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),t.pos[0]===0&&t.pos[1]===0&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:`getAllIndexes`,value:function(e,t){for(var n=[],r=-1;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}},{key:`arrayAllMaxIndexes`,value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}()}),(function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),e.exports=r}),(function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r})])})})),s=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(o()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(o()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i<n.length;i++)r=n[i],r.getChild()==null?(r.moveBy(e,t),r.displacementX+=e,r.displacementY+=t):r.propogateDisplacementToChildren(e,t)},a.prototype.setPred1=function(e){this.pred1=e},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(e){this.next=e},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(e){this.processed=e},a.prototype.isProcessed=function(){return processed},e.exports=a}),(function(e,t,n){var r=n(0).FDLayout,i=n(4),a=n(3),o=n(5),s=n(2),c=n(1),l=n(0).FDLayoutConstants,u=n(0).LayoutConstants,d=n(0).Point,f=n(0).PointD,p=n(0).Layout,m=n(0).Integer,h=n(0).IGeometry,g=n(0).LGraph,_=n(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(var y in v.prototype=Object.create(r.prototype),r)v[y]=r[y];v.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},v.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},v.prototype.newNode=function(e){return new o(this.graphManager,e)},v.prototype.newEdge=function(e){return new s(null,null,e)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if(l.ANIMATE===`during`)this.emit(`layoutstarted`);else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){var e=[],t,n=this.graphManager.getGraphs(),r=n.length,i;for(i=0;i<r;i++)t=n[i],t.updateConnected(),t.isConnected||(e=e.concat(t.getNodes()));return e},v.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());var t=new Set,n;for(n=0;n<e.length;n++){var r=e[n];if(!t.has(r)){var i=r.getSource(),a=r.getTarget();if(i==a)r.getBendpoints().push(new f),r.getBendpoints().push(new f),this.createDummyNodesForBendpoints(r),t.add(r);else{var o=[];if(o=o.concat(i.getEdgeListToNode(a)),o=o.concat(a.getEdgeListToNode(i)),!t.has(o[0])){if(o.length>1){var s;for(s=0;s<o.length;s++){var c=o[s];c.getBendpoints().push(new f),this.createDummyNodesForBendpoints(c)}}o.forEach(function(e){t.add(e)})}}}if(t.size==e.length)break}},v.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,a=0,o=new f(0,0),s=0;s<e.length;s++){s%n==0&&(a=0,i=r,s!=0&&(i+=c.DEFAULT_COMPONENT_SEPERATION),r=0);var l=e[s],m=p.findCenterOfTree(l);t.x=a,t.y=i,o=v.radialLayout(l,m,t),o.y>r&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},v.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(t,null,0,359,0,r);var i=g.calculateBounds(e),a=new _;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o<e.length;o++)e[o].transform(a);var s=new f(i.getMaxX(),i.getMaxY());return a.inverseTransformPoint(s)},v.branchRadialLayout=function(e,t,n,r,i,a){var o=(r-n+1)/2;o<0&&(o+=180);var s=(o+n)%360*h.TWO_PI/360,c=i*Math.cos(s),l=i*Math.sin(s);e.setCenter(c,l);var u=[];u=u.concat(e.getEdges());var d=u.length;t!=null&&d--;for(var f=0,p=u.length,m,g=e.getEdgesBetween(t);g.length>1;){var _=g[0];g.splice(0,1);var y=u.indexOf(_);y>=0&&u.splice(y,1),p--,d--}m=t==null?0:(u.indexOf(g[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;v.branchRadialLayout(S,e,C,w,i+a,a),f++}}},v.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var a=r[i],s=a.getParent();this.getNodeDegreeWithChildren(a)===0&&(s.id==null||!this.getToBeTiled(s))&&n.push(a)}for(var i=0;i<n.length;i++){var a=n[i],c=a.getParent().id;t[c]===void 0&&(t[c]=[]),t[c]=t[c].concat(a)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l<t[n].length;l++){var u=t[n][l];c.remove(u),s.add(u)}}})},v.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},v.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height})},v.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},v.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var a=r[i];if(this.getNodeDegree(a)>0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},v.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(e.getChild()==null)return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.getChild()!=null&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},v.prototype.adjustLocations=function(e,t,n,r,i){t+=r,n+=i;for(var a=t,o=0;o<e.rows.length;o++){var s=e.rows[o];t=a;for(var c=0,l=0;l<s.length;l++){var u=s[l];u.rect.x=t,u.rect.y=n,t+=u.rect.width+e.horizontalPadding,u.rect.height>c&&(c=u.rect.height)}n+=c+e.verticalPadding}},v.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},v.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height<t.rect.width*t.rect.height)});for(var r=0;r<e.length;r++){var i=e[r];n.rows.length==0?this.insertNodeToRow(n,i,0,t):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),t):this.insertNodeToRow(n,i,n.rows.length,t),this.shiftToLastRow(n)}return n},v.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var a=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width<a&&(e.width=a);var o=t.rect.height;n>0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]<n&&r>0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.width<t?(e.height+a)/t:(e.height+a)/e.width;return s<1&&(s=1/s),o<1&&(o=1/o),o<s},v.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],a=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>a&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>o&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.height+=l-c,this.shiftToLastRow(e)}},v.prototype.tilingPreLayout=function(){c.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){c.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var e=[],t=!0,n;t;){var r=this.graphManager.getAllNodes(),i=[];t=!1;for(var a=0;a<r.length;a++)n=r[a],n.getEdges().length==1&&!n.getEdges()[0].isInterGraph&&n.getChild()==null&&(i.push([n,n.getEdges()[0],n.getOwner()]),t=!0);if(t==1){for(var o=[],s=0;s<i.length;s++)i[s][0].getEdges().length==1&&(o.push(i[s]),i[s][0].getOwner().remove(i[s][0]));e.push(o),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},v.prototype.growTree=function(e){for(var t=e[e.length-1],n,r=0;r<t.length;r++)n=t[r],this.findPlaceforPrunedNode(n),n[2].add(n[0]),n[2].add(n[1],n[1].source,n[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0];n=r==e[1].source?e[1].target:e[1].source;var i=n.startX,a=n.finishX,o=n.startY,s=n.finishY,c=[0,0,0,0];if(o>0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a<this.grid.length-1)for(var u=o;u<=s;u++)c[1]+=this.grid[a+1][u].length+this.grid[a][u].length-1;if(s<this.grid[0].length-1)for(var u=i;u<=a;u++)c[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d=m.MAX_VALUE,f,p,h=0;h<c.length;h++)c[h]<d?(d=c[h],f=1,p=h):c[h]==d&&f++;if(f==3&&d==0)c[0]==0&&c[1]==0&&c[2]==0?t=1:c[0]==0&&c[1]==0&&c[3]==0?t=0:c[0]==0&&c[2]==0&&c[3]==0?t=3:c[1]==0&&c[2]==0&&c[3]==0&&(t=2);else if(f==2&&d==0){var g=Math.floor(Math.random()*2);t=c[0]==0&&c[1]==0?g==0?0:1:c[0]==0&&c[2]==0?g==0?0:2:c[0]==0&&c[3]==0?g==0?0:3:c[1]==0&&c[2]==0?g==0?1:2:c[1]==0&&c[3]==0?g==0?1:3:g==0?2:3}else if(f==4&&d==0){var g=Math.floor(Math.random()*4);t=g}else t=p;t==0?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-l.DEFAULT_EDGE_LENGTH-r.getHeight()/2):t==1?r.setCenter(n.getCenterX()+n.getWidth()/2+l.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):t==2?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+l.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-l.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},e.exports=v}),(function(e,t,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),e.exports=r})])})})),c=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(s()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(s()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function f(e){this.options=d(u,e),p(this.options)}var p=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.quality==`draft`?r.QUALITY=0:e.quality==`proof`?r.QUALITY=2:r.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};f.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l<c.length;l++){var u=c[l],d=this.idToLNode[u.data(`source`)],f=this.idToLNode[u.data(`target`)];if(d!==f&&d.getEdgesBetween(f).length==0){var p=a.add(r.newEdge(),d,f);p.id=u.id()}}var m=function(e,t){typeof e==`number`&&(e=t);var n=e.data(`id`),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},h=function a(){for(var o=function(){n.fit&&n.cy.fit(n.eles,n.padding),e||(e=!0,i.cy.one(`layoutready`,n.ready),i.cy.trigger({type:`layoutready`,layout:i}))},s=i.options.refresh,c,l=0;l<s&&!c;l++)c=i.stopped||i.layout.tick();if(c){r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(m),o(),i.cy.one(`layoutstop`,i.options.stop),i.cy.trigger({type:`layoutstop`,layout:i}),t&&cancelAnimationFrame(t),e=!1;return}var u=i.layout.getPositionsData();n.eles.nodes().positions(function(e,t){if(typeof e==`number`&&(e=t),!e.isParent()){for(var n=e.id(),r=u[n],i=e;r==null&&(r=u[i.data(`parent`)]||u[`DummyCompound_`+i.data(`parent`)],u[n]=r,i=i.parent()[0],i!=null););return r==null?{x:e.position(`x`),y:e.position(`y`)}:{x:r.x,y:r.y}}}),o(),t=requestAnimationFrame(a)};return r.addListener(`layoutstarted`,function(){i.options.animate===`during`&&(t=requestAnimationFrame(h))}),r.runLayout(),this.options.animate!==`during`&&(i.options.eles.nodes().not(`:parent`).layoutPositions(i,i.options,m),e=!1),this},f.prototype.getTopMostNodes=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;return e.filter(function(e,n){typeof e==`number`&&(e=n);for(var r=e.parent()[0];r!=null;){if(t[r.id()])return!1;r=r.parent()[0]}return!0})},f.prototype.processChildrenList=function(e,t,n){for(var r=t.length,i=0;i<r;i++){var a=t[i],o=a.children(),u,d=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(u=a.outerWidth()!=null&&a.outerHeight()!=null?e.add(new s(n.graphManager,new c(a.position(`x`)-d.w/2,a.position(`y`)-d.h/2),new l(parseFloat(d.w),parseFloat(d.h)))):e.add(new s(this.graphManager)),u.id=a.data(`id`),u.paddingLeft=parseInt(a.css(`padding`)),u.paddingTop=parseInt(a.css(`padding`)),u.paddingRight=parseInt(a.css(`padding`)),u.paddingBottom=parseInt(a.css(`padding`)),this.options.nodeDimensionsIncludeLabels&&a.isParent()){var f=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,m=a.css(`text-halign`);u.labelWidth=f,u.labelHeight=p,u.labelPos=m}if(this.idToLNode[a.data(`id`)]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),o!=null&&o.length>0){var h=n.getGraphManager().add(n.newGraph(),u);this.processChildrenList(h,o,n)}}},f.prototype.stop=function(){return this.stopped=!0,this};var m=function(e){e(`layout`,`cose-bilkent`,f)};typeof cytoscape<`u`&&m(cytoscape),e.exports=m})])})}))(),1);a.use(c.default);function l(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}n(l,`addNodes`);function u(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}n(u,`addEdges`);function d(e){return new Promise(t=>{let n=i(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),o=a({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),l(e.nodes,o),u(e.edges,o),o.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),o.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),o.ready(e=>{r.info(`Cytoscape ready`,e),t(o)})})}n(d,`createCytoscapeInstance`);function f(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}n(f,`extractPositionedNodes`);function p(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}n(p,`extractPositionedEdges`);async function m(e,t){r.debug(`Starting cose-bilkent layout algorithm`);try{h(e);let t=await d(e),n=f(t),i=p(t);return r.debug(`Layout completed: ${n.length} nodes, ${i.length} edges`),{nodes:n,edges:i}}catch(e){throw r.error(`Error in cose-bilkent layout algorithm:`,e),e}}n(m,`executeCoseBilkentLayout`);function h(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}n(h,`validateLayoutData`);var g=n(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:c},{algorithm:l})=>{let u={},d={},f=t.select(`g`);a(f,e.markers,e.type,e.diagramId);let p=f.insert(`g`).attr(`class`,`subgraphs`),h=f.insert(`g`).attr(`class`,`edgePaths`),g=f.insert(`g`).attr(`class`,`edgeLabels`),_=f.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};d[t.id]=e,u[t.id]=e,await n(p,t)}else{let n={...t};u[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await m({...e,nodes:e.nodes.map(e=>{let t=u[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=u[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=u[t.start??``],a=u[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};c(o,r(h,o,d,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};c(i,r(h,i,d,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`);export{g as render};