@runeya/runeya 2.0.95 → 2.0.96

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 (221) hide show
  1. package/agent/index.js +4 -4
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-SNVPZNLC.js +8 -0
  4. package/{chat-LPMGV2VS.js → chat-N7Y4JE62.js} +6 -6
  5. package/{chunk-HX3ZIWHM.js → chunk-BHLCBARP.js} +2 -2
  6. package/{chunk-WAC56HS4.js → chunk-BV7A2N5C.js} +79 -32
  7. package/chunk-BV7A2N5C.js.map +1 -0
  8. package/{chunk-72LQC3YC.js → chunk-F3HKV5AU.js} +2 -2
  9. package/{chunk-3MJLS5UY.js → chunk-NDO5VFZY.js} +5 -5
  10. package/chunk-NDO5VFZY.js.map +1 -0
  11. package/{chunk-R23UUB5R.js → chunk-ZVUSEO5P.js} +45 -8
  12. package/chunk-ZVUSEO5P.js.map +1 -0
  13. package/{companion-VPYVGTRU.js → companion-ZYOHTSVL.js} +12 -4
  14. package/index.js +1 -1
  15. package/package.json +1 -1
  16. package/settings-manager-YHQ5YHUH.js +8 -0
  17. package/{src-NEPDGULO.js → src-4ZDCENPU.js} +14 -11
  18. package/src-4ZDCENPU.js.map +1 -0
  19. package/web/assets/{AgentScalarChatInterface.vue-DCnwgzWk.js → AgentScalarChatInterface.vue-Cg4DrH5-.js} +1 -1
  20. package/web/assets/{AgentTerminalPage-D6iEzvyz.js → AgentTerminalPage-ClgOOzjC.js} +1 -1
  21. package/web/assets/AiChatPage-CrqIi3zp.js +1 -0
  22. package/web/assets/{AppLayout-B2mreJVA.js → AppLayout-tfKCrE0A.js} +1 -1
  23. package/web/assets/{AuditPage-CSPHdf0m.js → AuditPage-BwjVcB_e.js} +1 -1
  24. package/web/assets/CloudAccountPage-DJMj6rlx.js +1 -0
  25. package/web/assets/{CloudAccountPage-C35O8Pcb.js → CloudAccountPage-YqD1oWcl.js} +1 -1
  26. package/web/assets/{CloudMessagingPage-5KYELXQI.js → CloudMessagingPage-CGAN3l_2.js} +1 -1
  27. package/web/assets/{DashboardPage-Dl9Sg1av.js → DashboardPage-uzdaeNvE.js} +1 -1
  28. package/web/assets/{DirectoryPickerDialog-DLL3-GoW.js → DirectoryPickerDialog-_nki96n0.js} +1 -1
  29. package/web/assets/{EditorIcon-CzgSjXLk.js → EditorIcon-CN5NnRuP.js} +1 -1
  30. package/web/assets/{EnvironmentForm-DmdDIJHv.js → EnvironmentForm-C3XYN-u_.js} +1 -1
  31. package/web/assets/{EnvironmentFormPage-CV7Uq6Ah.js → EnvironmentFormPage-DzpLGPiH.js} +1 -1
  32. package/web/assets/{EnvironmentListPage-Cfo9RA_g.js → EnvironmentListPage-C2EfOvUQ.js} +1 -1
  33. package/web/assets/KanbanBoardPage-BTvn4Oks.css +1 -0
  34. package/web/assets/KanbanBoardPage-D62-0_x0.js +4 -0
  35. package/web/assets/{KanbanListPage-CSAnUfp3.js → KanbanListPage-mgJfhVzZ.js} +1 -1
  36. package/web/assets/{LaunchProjectPage-vNUoulGP.js → LaunchProjectPage-CRL5enYT.js} +1 -1
  37. package/web/assets/{LaunchServicesPage-CkWZxZ-v.js → LaunchServicesPage-BaIi1u2l.js} +1 -1
  38. package/web/assets/{LogViewer-CW-bBjZF.js → LogViewer-CQmf3bkB.js} +1 -1
  39. package/web/assets/{OrgKeyPrompt-CHoMbQhn.js → OrgKeyPrompt-x919NFZU.js} +1 -1
  40. package/web/assets/{ProcessControls-WS6BjS5H.js → ProcessControls-Bxuzo9xu.js} +1 -1
  41. package/web/assets/{ProcessDetailPage-DEvZSNER.js → ProcessDetailPage-CM4gv6qW.js} +1 -1
  42. package/web/assets/{ProcessMetrics-DmhwoKrE.js → ProcessMetrics-B8ReKltW.js} +1 -1
  43. package/web/assets/{ProjectDetailPage-DanRrWb4.js → ProjectDetailPage-DiaanTyL.js} +1 -1
  44. package/web/assets/{ProjectListPage--l9HsQ9u.js → ProjectListPage-eq12Vdsi.js} +1 -1
  45. package/web/assets/{RandomJobTestPage-BMatxc2G.js → RandomJobTestPage-CJbdpqF0.js} +1 -1
  46. package/web/assets/{ScenarioEditorPage-D_rJyudb.js → ScenarioEditorPage-D8xmK-aZ.js} +1 -1
  47. package/web/assets/{SendToChatDialog-D-pDvIjD.js → SendToChatDialog-B0m5-H1l.js} +1 -1
  48. package/web/assets/{ServiceControlsBar-BSU25sZZ.js → ServiceControlsBar-BdT0XYtF.js} +1 -1
  49. package/web/assets/{ServiceDetailPage-B1oRlnId.js → ServiceDetailPage-DGojuDKp.js} +1 -1
  50. package/web/assets/{ServiceFormPage-D-DmI0fF.js → ServiceFormPage-6aPMUBjp.js} +1 -1
  51. package/web/assets/SettingsPage-DisZogYn.js +2063 -0
  52. package/web/assets/{SettingsPage-D6-jpORY.css → SettingsPage-GKnTN75s.css} +1 -1
  53. package/web/assets/{UnlockPage-BtunlGnX.js → UnlockPage-QEUvn5MU.js} +1 -1
  54. package/web/assets/{VariablesTable-D3HpHlKY.js → VariablesTable-B9UiC69p.js} +1 -1
  55. package/web/assets/{VaultMigrationPage-DrrFR1I-.js → VaultMigrationPage-BKammxdb.js} +1 -1
  56. package/web/assets/{VersionBadge-DqcS34oJ.js → VersionBadge-B5SmMtZS.js} +1 -1
  57. package/web/assets/WikiPage-ChtHYLsn.js +1 -0
  58. package/web/assets/{WikiView-BasNZv2A.js → WikiView-Brud4K4u.js} +1 -1
  59. package/web/assets/{add-scalar-classes-_PYrgVvq.js → add-scalar-classes-CF1ZlVmT.js} +3 -3
  60. package/web/assets/auth-errors-1gmtFIpl.js +1 -0
  61. package/web/assets/{autocomplete-B-t_B26t.js → autocomplete-eQhMihkm.js} +1 -1
  62. package/web/assets/{basic-shape-diamond.svg-BFWFQIZl.js → basic-shape-diamond.svg-B79z96pk.js} +1 -1
  63. package/web/assets/{basic-shape-hexagon.svg-CXsvZPky.js → basic-shape-hexagon.svg-DAlWXIQS.js} +1 -1
  64. package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-BVg6oDS7.js → basic-shape-primary-circle-ellipse-round.svg-C5OZu4mS.js} +1 -1
  65. package/web/assets/{basic-shape-primary-square-rectangle.svg-jiLWQSQV.js → basic-shape-primary-square-rectangle.svg-BykiIk1Y.js} +1 -1
  66. package/web/assets/{basic-shape-shield.svg-CEybfnew.js → basic-shape-shield.svg-BVcBjIsG.js} +1 -1
  67. package/web/assets/{browser-BfO6Jws3.js → browser-2YDfpiMy.js} +1 -1
  68. package/web/assets/{browser-C7Qh0u0N.js → browser-BeUKu6QW.js} +1 -1
  69. package/web/assets/{card-CWgnvlKH.js → card-BAlWlIgX.js} +1 -1
  70. package/web/assets/{checkbox-CKzrAJQv.js → checkbox-CmaD3L1T.js} +1 -1
  71. package/web/assets/{chip-Bu5HllmO.js → chip-CRmYXa8f.js} +1 -1
  72. package/web/assets/{client-CM-a2QU7.js → client-Bv9-b6hD.js} +1 -1
  73. package/web/assets/{cloud-chat.store-Cjbzzy1s.js → cloud-chat.store-D9e_ZoEW.js} +1 -1
  74. package/web/assets/{cloud-session-Bs6siQ-Y.js → cloud-session-CfIHVKlU.js} +1 -1
  75. package/web/assets/{column-pXrOxKc1.js → column-C9854MaP.js} +1 -1
  76. package/web/assets/{computer-device-desktop-monitor.svg-DO-9EDqA.js → computer-device-desktop-monitor.svg-DgYmz8if.js} +1 -1
  77. package/web/assets/{computer-device-desktop.svg-U_EIk7jo.js → computer-device-desktop.svg-CN3hxMSt.js} +1 -1
  78. package/web/assets/{computer-device-laptop.svg-nvbz6sjk.js → computer-device-laptop.svg-LDsA7kc5.js} +1 -1
  79. package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-Cs34LunN.js → computer-device-mobile-phone-android-samsung-back.svg-BDfCASg6.js} +1 -1
  80. package/web/assets/{computer-device-mobile-phone-android-samsung.svg-CDJgG-4L.js → computer-device-mobile-phone-android-samsung.svg-BMMyDOdR.js} +1 -1
  81. package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-Du0pDh9L.js → computer-device-mobile-phone-iphone-x-back.svg-BMcE4PZg.js} +1 -1
  82. package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CUgXFf2r.js → computer-device-mobile-phone-iphone-x.svg-DCaO9pra.js} +1 -1
  83. package/web/assets/{computer-device-mobile-tablet-touch.svg-CKdx-iUf.js → computer-device-mobile-tablet-touch.svg-CL-ZgWuC.js} +1 -1
  84. package/web/assets/{computer-device-mobile-tablet.svg-BTvPzs5h.js → computer-device-mobile-tablet.svg-DDOk54bt.js} +1 -1
  85. package/web/assets/{computer-device-network-ethernet-cat6.svg-Cway8Bfw.js → computer-device-network-ethernet-cat6.svg-BlCpBZ1-.js} +1 -1
  86. package/web/assets/{computer-device-network-lan-www.svg-iuTZVSKE.js → computer-device-network-lan-www.svg-BnDixCMz.js} +1 -1
  87. package/web/assets/{computer-device-network-wifi-connection.svg-DEemVGZq.js → computer-device-network-wifi-connection.svg-CVBp6RTa.js} +1 -1
  88. package/web/assets/{computer-device-network-wifi-router.svg-BH2ASeRD.js → computer-device-network-wifi-router.svg-DC_hG81D.js} +1 -1
  89. package/web/assets/{cssMode-BHBdzmoS.js → cssMode-CvjBWwcj.js} +1 -1
  90. package/web/assets/{divider-kwmULX2U.js → divider-DtkApHDJ.js} +1 -1
  91. package/web/assets/{docx-preview-CxXKUxi7.js → docx-preview-D-0_AO3N.js} +1 -1
  92. package/web/assets/{ecology-science-erlenmeyer-flask.svg-9yLzulSu.js → ecology-science-erlenmeyer-flask.svg-Dou8Xul9.js} +1 -1
  93. package/web/assets/{fieldset-DE0sJS29.js → fieldset-CaTLOGqs.js} +1 -1
  94. package/web/assets/{freemarker2-CpcoAmNk.js → freemarker2-DS7rB38N.js} +1 -1
  95. package/web/assets/{handlebars-D6DR-MoZ.js → handlebars-D_6N9S4t.js} +1 -1
  96. package/web/assets/{html-Dx3QwrZR.js → html-aq8_YJ2V.js} +1 -1
  97. package/web/assets/{htmlMode-KSJ_gFzK.js → htmlMode-CVlBX1og.js} +1 -1
  98. package/web/assets/{image-flash-lightning.svg-O9m-H64P.js → image-flash-lightning.svg-DIcyUXwz.js} +1 -1
  99. package/web/assets/{image-picture-flower.svg--rWVVuqu.js → image-picture-flower.svg-CZjlyM5Y.js} +1 -1
  100. package/web/assets/{index-B4UWj2Kz.css → index-BBYieFBt.css} +1 -1
  101. package/web/assets/{index-pLefgbhx.js → index-BPOeXMH7.js} +287 -287
  102. package/web/assets/{interface-alert-exclamation-diamond.svg-CVeV0ecY.js → interface-alert-exclamation-diamond.svg-yMZPAslx.js} +1 -1
  103. package/web/assets/{interface-alert-exclamation-triangle-warning.svg-MIboYRzH.js → interface-alert-exclamation-triangle-warning.svg-B-t1Ml9l.js} +1 -1
  104. package/web/assets/{interface-alert-information-circle.svg-BlkHMxfH.js → interface-alert-information-circle.svg-B8HdecEH.js} +1 -1
  105. package/web/assets/{interface-award-crown.svg-C_Z3sLuP.js → interface-award-crown.svg-DDbSGaEo.js} +1 -1
  106. package/web/assets/{interface-bookmark.svg-CVpTNe3u.js → interface-bookmark-tag.svg-C5dS6Wy_.js} +1 -1
  107. package/web/assets/{interface-bookmark-tag.svg-ClOZOhfV.js → interface-bookmark.svg-BZwwsorn.js} +1 -1
  108. package/web/assets/{interface-calendar-date-one.svg-BvG92AQi.js → interface-calendar-date-one.svg-B_lSSDJQ.js} +1 -1
  109. package/web/assets/{interface-content-book-open-pages.svg-aXXXkj7d.js → interface-content-book-open-pages.svg-CPjHk5dC.js} +1 -1
  110. package/web/assets/{interface-content-book-page.svg-BE0nQJw_.js → interface-content-book-page.svg-DLBNBM0O.js} +1 -1
  111. package/web/assets/{interface-content-file.svg-DYonyE7J.js → interface-content-file.svg-dZo-oryw.js} +1 -1
  112. package/web/assets/interface-content-folder.svg-CeaK9A2u.js +1 -0
  113. package/web/assets/{interface-content-folder.svg-DKc7vKrm.js → interface-content-folder.svg-D3PMAR0L.js} +1 -1
  114. package/web/assets/{interface-copy-clipboard.svg-sAixmHqz.js → interface-copy-clipboard.svg-hGQ6TIiI.js} +1 -1
  115. package/web/assets/{interface-edit-attachment.svg-DsSzCN6U.js → interface-edit-attachment.svg-r3GzouWU.js} +1 -1
  116. package/web/assets/{interface-edit-binocular.svg-Bheco9Gv.js → interface-edit-binocular.svg-Cfv2KJGW.js} +1 -1
  117. package/web/assets/{interface-edit-magic-wand.svg-C73TY2iI.js → interface-edit-magic-wand.svg-DgdmCAUF.js} +1 -1
  118. package/web/assets/{interface-edit-tool-paint-roller.svg-D2OSqY3g.js → interface-edit-tool-paint-roller.svg-D9b8KTHm.js} +1 -1
  119. package/web/assets/{interface-edit-tool-pencil.svg-CdY316cw.js → interface-edit-tool-pencil.svg-6EZF-4AD.js} +1 -1
  120. package/web/assets/{interface-favorite-award.svg-DfA-EhHI.js → interface-favorite-award.svg-CX7vjSmO.js} +1 -1
  121. package/web/assets/{interface-favorite-flag.svg-BnmSaveE.js → interface-favorite-flag.svg-Bf-5zzqB.js} +1 -1
  122. package/web/assets/{interface-favorite-heart.svg-28i7lMzG.js → interface-favorite-heart.svg-CuDUk_-U.js} +1 -1
  123. package/web/assets/{interface-favorite-star.svg-u8xOEB4S.js → interface-favorite-star.svg-jiT9sBTw.js} +1 -1
  124. package/web/assets/{interface-favorite-stars-sparkles.svg-D5UHf8ar.js → interface-favorite-stars-sparkles.svg-B14YHOWj.js} +1 -1
  125. package/web/assets/{interface-hierarchy-flowchart.svg-BmjWTh4K.js → interface-hierarchy-flowchart.svg-DxZmAHe8.js} +1 -1
  126. package/web/assets/{interface-home-house.svg-DJ5Ae65N.js → interface-home-house.svg-CPRm99Q5.js} +1 -1
  127. package/web/assets/{interface-hyperlink.svg-HdHKY_g6.js → interface-hyperlink.svg-CYpU8zdB.js} +1 -1
  128. package/web/assets/{interface-lighting-brightness.svg-BDELfqMb.js → interface-lighting-brightness.svg-Bm2pypGs.js} +1 -1
  129. package/web/assets/{interface-lock-closed.svg-BcDwDHkS.js → interface-lock-closed.svg-BJbzqDi9.js} +1 -1
  130. package/web/assets/{interface-lock-open-unlock.svg-DNESCRC1.js → interface-lock-open-unlock.svg-Be2miC-V.js} +1 -1
  131. package/web/assets/{interface-login-key.svg-BOEot3yk.js → interface-login-key.svg-BvPEKsKK.js} +1 -1
  132. package/web/assets/{interface-search.svg-CFsy7ant.js → interface-search.svg-CxqA1oOe.js} +1 -1
  133. package/web/assets/{interface-setting-cog.svg-B7Zk0iyr.js → interface-setting-cog.svg-RjIklwFA.js} +1 -1
  134. package/web/assets/{interface-share-megaphone-bullhorn.svg-DvG0IjMM.js → interface-share-megaphone-bullhorn.svg-CqesMCvG.js} +1 -1
  135. package/web/assets/{interface-share-rocket.svg-gvaeTB8G.js → interface-share-rocket.svg-Du5P2iVk.js} +1 -1
  136. package/web/assets/{interface-share-satellite.svg-B5pXJ0kU.js → interface-share-satellite.svg-BMzUK6ux.js} +1 -1
  137. package/web/assets/{interface-share-space-ship.svg-B0k0J-VQ.js → interface-share-space-ship.svg-BWpbb-zz.js} +1 -1
  138. package/web/assets/{interface-share.svg-ZDsCvjRe.js → interface-share.svg-C044g6pa.js} +1 -1
  139. package/web/assets/{interface-signal-square.svg-DBkJ1ire.js → interface-signal-square.svg-DypNLn80.js} +1 -1
  140. package/web/assets/{interface-time-clock-circle.svg-BheUirew.js → interface-time-clock-circle.svg-CRNvdPs5.js} +1 -1
  141. package/web/assets/{interface-time-hour-glass.svg-iORrebF8.js → interface-time-hour-glass.svg-BYTiCdVN.js} +1 -1
  142. package/web/assets/{interface-users-multiple.svg-DMqedSUQ.js → interface-users-multiple.svg-B0BO30tc.js} +1 -1
  143. package/web/assets/{interface-weather-moon.svg-DyPBHRw4.js → interface-weather-moon.svg-C9dWP7q-.js} +1 -1
  144. package/web/assets/{javascript-B1Y6a5s6.js → javascript-DCs9TLWg.js} +1 -1
  145. package/web/assets/{jsonMode-Vj2pUgcF.js → jsonMode-BE2uSFxY.js} +1 -1
  146. package/web/assets/{liquid-lb0ImGEW.js → liquid-BZjYukYL.js} +1 -1
  147. package/web/assets/{lspLanguageFeatures-sh8ggL5N.js → lspLanguageFeatures-4LyxjQPX.js} +1 -1
  148. package/web/assets/{mail-chat-bubble-square.svg-D_Lx6uBc.js → mail-chat-bubble-square.svg-CTGFukhv.js} +1 -1
  149. package/web/assets/{mail-send-email-paper-airplane.svg-B6FGKBZu.js → mail-send-email-paper-airplane.svg-DD-FZNCw.js} +1 -1
  150. package/web/assets/{mail-send-envelope.svg-Dtm4h_xw.js → mail-send-envelope.svg-AuHOjRAo.js} +1 -1
  151. package/web/assets/{mdx-BbFPcqiD.js → mdx-9unslLAn.js} +1 -1
  152. package/web/assets/{minus-Bxw18Xk6.js → minus-CHP_QK2B.js} +1 -1
  153. package/web/assets/modal-BTKNoQeE.js +1 -0
  154. package/web/assets/{modal-DLY8nKW-.js → modal-OQde8W0w.js} +1 -1
  155. package/web/assets/{money-cashier-receipt.svg-VpEb8Ewv.js → money-cashier-receipt.svg-B3aJCJ9h.js} +1 -1
  156. package/web/assets/{money-currency-dollar-pay.svg-vo8FP9z4.js → money-currency-dollar-pay.svg-xdKFuxOB.js} +1 -1
  157. package/web/assets/{money-graph-arrow-increase.svg-CNcLQGOf.js → money-graph-arrow-increase.svg-wWmaxtEW.js} +1 -1
  158. package/web/assets/{money-graph-bar-chart-increase.svg-BHAccBVA.js → money-graph-bar-chart-increase.svg-BEhoD6l7.js} +1 -1
  159. package/web/assets/{multiselect-Crs0miOE.js → multiselect-DtWF2AZf.js} +1 -1
  160. package/web/assets/{nature-ecology-leaf.svg-0y4pBUlD.js → nature-ecology-leaf.svg-DjdQrhs6.js} +1 -1
  161. package/web/assets/{password-TyT4zuky.js → password-CrFWhx7M.js} +1 -1
  162. package/web/assets/{phone-telephone.svg-BdWhV2vz.js → phone-telephone.svg-CLNYyQne.js} +1 -1
  163. package/web/assets/{plus-4Z2iFfO2.js → plus-DW-wbR7B.js} +1 -1
  164. package/web/assets/process.store-DrmMxxoc.js +1 -0
  165. package/web/assets/{programming-bug.svg-DXDJVNeQ.js → programming-bug.svg-MarViUOk.js} +1 -1
  166. package/web/assets/{programming-cloud.svg-qWtq6fXG.js → programming-cloud.svg-W3xHdUnB.js} +1 -1
  167. package/web/assets/{programming-computer-database-server.svg-DnlJHfH5.js → programming-computer-database-server.svg-CKehXNTl.js} +1 -1
  168. package/web/assets/{programming-computer-database.svg-Bl73TDXc.js → programming-computer-database.svg-gCA_mBCi.js} +1 -1
  169. package/web/assets/{programming-module-four-layout.svg-CGkj0OdH.js → programming-module-four-layout.svg-BqwwSEVQ.js} +1 -1
  170. package/web/assets/{programming-module-three.svg-Bsk_vaHc.js → programming-module-three.svg-DqwYgzpA.js} +1 -1
  171. package/web/assets/{programming-module.svg-D0Yng9wS.js → programming-module.svg-BV--KFzc.js} +1 -1
  172. package/web/assets/{programming-script-code.svg-DTHMCNnF.js → programming-script-code.svg-CBCpPkxq.js} +1 -1
  173. package/web/assets/{python-HImlMuYG.js → python-CCsqTZHL.js} +1 -1
  174. package/web/assets/{razor-CTFKddzv.js → razor-BRMeTt-k.js} +1 -1
  175. package/web/assets/router-CV1Vunn0.js +1 -0
  176. package/web/assets/settings-scope-BTe7KdSG.js +1 -0
  177. package/web/assets/{settings.store-CZ9jrl3S.js → settings.store-erZiUPuR.js} +1 -1
  178. package/web/assets/{shopping-cart.svg-Cx50mrFm.js → shopping-cart.svg-jc4kXbD3.js} +1 -1
  179. package/web/assets/{shopping-gift-present.svg-DGOO6qNg.js → shopping-gift-present.svg-Bqvvhp3D.js} +1 -1
  180. package/web/assets/{shopping-shipping-box-parcel-package.svg-C96i4g3q.js → shopping-shipping-box-parcel-package.svg-D2SgWwJp.js} +1 -1
  181. package/web/assets/{src-DRjytMUo.js → src-CeApk0FF.js} +1 -1
  182. package/web/assets/{src-DzMKqnGu.js → src-dSgRs0bd.js} +1 -1
  183. package/web/assets/{tabpanel-BW8I76pY.js → tabpanel-CeLflR6J.js} +1 -1
  184. package/web/assets/{tag-new-circle.svg-CV5DN0Db.js → tag-new-circle.svg-CkA4UdUB.js} +1 -1
  185. package/web/assets/{toggleswitch-D4Evlg2b.js → toggleswitch-DKBXnmzT.js} +1 -1
  186. package/web/assets/{travel-map-earth-globe.svg-CWvuO_Hb.js → travel-map-earth-globe.svg-kl6fMv7M.js} +1 -1
  187. package/web/assets/trpc-CgcMlFhM.js +1 -0
  188. package/web/assets/{tsMode-BqKPHyIc.js → tsMode-DA6ejbio.js} +1 -1
  189. package/web/assets/{typescript-Bme6ns4u.js → typescript-Bfy7_Fw8.js} +1 -1
  190. package/web/assets/useAiChatDrawer-DPZ2UftQ.js +1 -0
  191. package/web/assets/{useCloudOrg-D2LTbk-G.js → useCloudOrg-CsuqKLSU.js} +3 -3
  192. package/web/assets/{useProjectCatalog-nlAZuu5X.js → useProjectCatalog-4ks7Tpfb.js} +1 -1
  193. package/web/assets/{xml-zsImRVNc.js → xml-D5p3PPs0.js} +1 -1
  194. package/web/assets/{yaml-VubzWJpP.js → yaml-CzBSY9q-.js} +1 -1
  195. package/web/index.html +2 -2
  196. package/agent-manager-QQPKKLKY.js +0 -8
  197. package/chunk-3MJLS5UY.js.map +0 -1
  198. package/chunk-R23UUB5R.js.map +0 -1
  199. package/chunk-WAC56HS4.js.map +0 -1
  200. package/settings-manager-6FKHBLIV.js +0 -8
  201. package/src-NEPDGULO.js.map +0 -1
  202. package/web/assets/AiChatPage-DDr9XEv8.js +0 -1
  203. package/web/assets/CloudAccountPage-BAkTRH4E.js +0 -1
  204. package/web/assets/KanbanBoardPage-DL1WwMBP.js +0 -4
  205. package/web/assets/KanbanBoardPage-K07_QbUq.css +0 -1
  206. package/web/assets/SettingsPage-Bi72zdhb.js +0 -2063
  207. package/web/assets/WikiPage-BH8A-IB_.js +0 -1
  208. package/web/assets/auth-errors-CwswzwYV.js +0 -1
  209. package/web/assets/interface-content-folder.svg-FcNZvOjy.js +0 -1
  210. package/web/assets/modal-D-InjkVP.js +0 -1
  211. package/web/assets/process.store-DsGpeQnV.js +0 -1
  212. package/web/assets/router-DTzqrUba.js +0 -1
  213. package/web/assets/settings-scope-CdxhnRbI.js +0 -1
  214. package/web/assets/trpc-BbC62Ymt.js +0 -1
  215. package/web/assets/useAiChatDrawer-BG8t5Thc.js +0 -1
  216. /package/{agent-manager-QQPKKLKY.js.map → agent-manager-SNVPZNLC.js.map} +0 -0
  217. /package/{chat-LPMGV2VS.js.map → chat-N7Y4JE62.js.map} +0 -0
  218. /package/{chunk-HX3ZIWHM.js.map → chunk-BHLCBARP.js.map} +0 -0
  219. /package/{chunk-72LQC3YC.js.map → chunk-F3HKV5AU.js.map} +0 -0
  220. /package/{companion-VPYVGTRU.js.map → companion-ZYOHTSVL.js.map} +0 -0
  221. /package/{settings-manager-6FKHBLIV.js.map → settings-manager-YHQ5YHUH.js.map} +0 -0
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M96 104a8 8 0 0 1 8-8h64a8 8 0 0 1 0 16h-64a8 8 0 0 1-8-8m8 40h64a8 8 0 0 0 0-16h-64a8 8 0 0 0 0 16m128 48a32 32 0 0 1-32 32H88a32 32 0 0 1-32-32V64a16 16 0 0 0-32 0c0 5.74 4.83 9.62 4.88 9.66A8 8 0 0 1 24 88a7.9 7.9 0 0 1-4.79-1.61C18.05 85.54 8 77.61 8 64a32 32 0 0 1 32-32h136a32 32 0 0 1 32 32v104h8a8 8 0 0 1 4.8 1.6c1.2.86 11.2 8.79 11.2 22.4M96.26 173.48A8.07 8.07 0 0 1 104 168h88V64a16 16 0 0 0-16-16H67.69A31.7 31.7 0 0 1 72 64v128a16 16 0 0 0 32 0c0-5.74-4.83-9.62-4.88-9.66a7.82 7.82 0 0 1-2.86-8.86M216 192a12.58 12.58 0 0 0-3.23-8h-94a27 27 0 0 1 1.21 8 31.8 31.8 0 0 1-4.29 16H200a16 16 0 0 0 16-16`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M96 104a8 8 0 0 1 8-8h64a8 8 0 0 1 0 16h-64a8 8 0 0 1-8-8m8 40h64a8 8 0 0 0 0-16h-64a8 8 0 0 0 0 16m128 48a32 32 0 0 1-32 32H88a32 32 0 0 1-32-32V64a16 16 0 0 0-32 0c0 5.74 4.83 9.62 4.88 9.66A8 8 0 0 1 24 88a7.9 7.9 0 0 1-4.79-1.61C18.05 85.54 8 77.61 8 64a32 32 0 0 1 32-32h136a32 32 0 0 1 32 32v104h8a8 8 0 0 1 4.8 1.6c1.2.86 11.2 8.79 11.2 22.4M96.26 173.48A8.07 8.07 0 0 1 104 168h88V64a16 16 0 0 0-16-16H67.69A31.7 31.7 0 0 1 72 64v128a16 16 0 0 0 32 0c0-5.74-4.83-9.62-4.88-9.66a7.82 7.82 0 0 1-2.86-8.86M216 192a12.58 12.58 0 0 0-3.23-8h-94a27 27 0 0 1 1.21 8 31.8 31.8 0 0 1-4.29 16H200a16 16 0 0 0 16-16`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M12 2v20m5-17H9.5a3.5 3.5 0 1 0 0 7h5a3.5 3.5 0 1 1 0 7H6`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M12 2v20m5-17H9.5a3.5 3.5 0 1 0 0 7h5a3.5 3.5 0 1 1 0 7H6`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M152 120h-16V56h8a32 32 0 0 1 32 32 8 8 0 0 0 16 0 48.05 48.05 0 0 0-48-48h-8V24a8 8 0 0 0-16 0v16h-8a48 48 0 0 0 0 96h8v64h-16a32 32 0 0 1-32-32 8 8 0 0 0-16 0 48.05 48.05 0 0 0 48 48h16v16a8 8 0 0 0 16 0v-16h16a48 48 0 0 0 0-96m-40 0a32 32 0 0 1 0-64h8v64Zm40 80h-16v-64h16a32 32 0 0 1 0 64`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M152 120h-16V56h8a32 32 0 0 1 32 32 8 8 0 0 0 16 0 48.05 48.05 0 0 0-48-48h-8V24a8 8 0 0 0-16 0v16h-8a48 48 0 0 0 0 96h8v64h-16a32 32 0 0 1-32-32 8 8 0 0 0-16 0 48.05 48.05 0 0 0 48 48h16v16a8 8 0 0 0 16 0v-16h16a48 48 0 0 0 0-96m-40 0a32 32 0 0 1 0-64h8v64Zm40 80h-16v-64h16a32 32 0 0 1 0 64`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M216 40h-80V24a8 8 0 0 0-16 0v16H40a16 16 0 0 0-16 16v120a16 16 0 0 0 16 16h39.36l-21.61 27a8 8 0 0 0 12.5 10l29.59-37h56.32l29.59 37a8 8 0 1 0 12.5-10l-21.61-27H216a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 136H40V56h176zm-112-56v24a8 8 0 0 1-16 0v-24a8 8 0 0 1 16 0m32-16v40a8 8 0 0 1-16 0v-40a8 8 0 0 1 16 0m32-16v56a8 8 0 0 1-16 0V88a8 8 0 0 1 16 0`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M216 40h-80V24a8 8 0 0 0-16 0v16H40a16 16 0 0 0-16 16v120a16 16 0 0 0 16 16h39.36l-21.61 27a8 8 0 0 0 12.5 10l29.59-37h56.32l29.59 37a8 8 0 1 0 12.5-10l-21.61-27H216a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 136H40V56h176zm-112-56v24a8 8 0 0 1-16 0v-24a8 8 0 0 1 16 0m32-16v40a8 8 0 0 1-16 0v-40a8 8 0 0 1 16 0m32-16v56a8 8 0 0 1-16 0V88a8 8 0 0 1 16 0`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1,4 +1,4 @@
1
- import{$i as e,$t as t,Fn as n,Hr as r,Ii as i,Ir as a,Ji as o,Jr as s,Kn as c,Ln as l,Lr as u,Mr as d,Or as f,Pn as p,Qi as m,Rn as h,Rr as g,Si as _,Sr as v,Ti as y,Vn as b,Vr as x,Xi as S,Yr as C,Zi as w,Zr as T,_i as E,bi as D,cn as ee,da as O,ea as k,ei as te,en as ne,fa as A,ga as j,gr as M,ha as N,in as P,ir as re,jr as ie,lr as ae,nn as oe,or as F,pi as I,pr as se,qr as L,rn as ce,sn as le,tn as ue,tr as R,va as z,vi as B,wi as V,yi as H,zr as U}from"./index-pLefgbhx.js";import{t as de}from"./checkbox-CKzrAJQv.js";import{t as fe}from"./chip-Bu5HllmO.js";var pe=R.extend({name:`multiselect`,style:`
1
+ import{$i as e,$t as t,Fn as n,Hr as r,Ii as i,Ir as a,Ji as o,Jr as s,Kn as c,Ln as l,Lr as u,Mr as d,Or as f,Pn as p,Qi as m,Rn as h,Rr as g,Si as _,Sr as v,Ti as y,Vn as b,Vr as x,Xi as S,Yr as C,Zi as w,Zr as T,_i as E,bi as D,cn as ee,da as O,ea as k,ei as te,en as ne,fa as A,ga as j,gr as M,ha as N,in as P,ir as re,jr as ie,lr as ae,nn as oe,or as F,pi as I,pr as se,qr as L,rn as ce,sn as le,tn as ue,tr as R,va as z,vi as B,wi as V,yi as H,zr as U}from"./index-BPOeXMH7.js";import{t as de}from"./checkbox-CmaD3L1T.js";import{t as fe}from"./chip-CRmYXa8f.js";var pe=R.extend({name:`multiselect`,style:`
2
2
  .p-multiselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M223.45 40.07a8 8 0 0 0-7.52-7.52C139.8 28.08 78.82 51 52.82 94a87.1 87.1 0 0 0-12.76 49c.57 15.92 5.21 32 13.79 47.85l-19.51 19.5a8 8 0 0 0 11.32 11.32l19.5-19.51C81 210.73 97.09 215.37 113 215.94q1.67.06 3.33.06A86.93 86.93 0 0 0 162 203.18c43-26 65.93-86.97 61.45-163.11m-69.7 149.43c-22.75 13.78-49.68 14-76.71.77l88.63-88.62a8 8 0 0 0-11.32-11.32L65.73 179c-13.19-27-13-54 .77-76.71 22.09-36.47 74.6-56.44 141.31-54.06 2.39 66.66-17.59 119.18-54.06 141.27`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M223.45 40.07a8 8 0 0 0-7.52-7.52C139.8 28.08 78.82 51 52.82 94a87.1 87.1 0 0 0-12.76 49c.57 15.92 5.21 32 13.79 47.85l-19.51 19.5a8 8 0 0 0 11.32 11.32l19.5-19.51C81 210.73 97.09 215.37 113 215.94q1.67.06 3.33.06A86.93 86.93 0 0 0 162 203.18c43-26 65.93-86.97 61.45-163.11m-69.7 149.43c-22.75 13.78-49.68 14-76.71.77l88.63-88.62a8 8 0 0 0-11.32-11.32L65.73 179c-13.19-27-13-54 .77-76.71 22.09-36.47 74.6-56.44 141.31-54.06 2.39 66.66-17.59 119.18-54.06 141.27`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1,4 +1,4 @@
1
- import{Ii as e,Ir as t,Ji as n,Kn as r,Ln as i,Or as a,Qi as o,Sr as s,Ti as c,Vn as l,Zi as u,_i as d,bi as f,cn as p,da as m,ea as h,ei as g,en as _,lr as v,or as y,pr as b,sn as x,tr as S,va as C,vi as w,yi as T,zn as E,zr as D}from"./index-pLefgbhx.js";var O={name:`EyeIcon`,extends:E};function k(e){return N(e)||M(e)||j(e)||A()}function A(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{Ii as e,Ir as t,Ji as n,Kn as r,Ln as i,Or as a,Qi as o,Sr as s,Ti as c,Vn as l,Zi as u,_i as d,bi as f,cn as p,da as m,ea as h,ei as g,en as _,lr as v,or as y,pr as b,sn as x,tr as S,va as C,vi as w,yi as T,zn as E,zr as D}from"./index-BPOeXMH7.js";var O={name:`EyeIcon`,extends:E};function k(e){return N(e)||M(e)||j(e)||A()}function A(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(e,t){if(e){if(typeof e==`string`)return P(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function M(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function N(e){if(Array.isArray(e))return P(e)}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(t,r,i,a,o,s){return n(),f(`svg`,e({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),k(r[0]||=[d(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z`,fill:`currentColor`},null,-1)]),16)}O.render=F;var I={name:`EyeSlashIcon`,extends:E};function L(e){return V(e)||B(e)||z(e)||R()}function R(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(e,t){if(e){if(typeof e==`string`)return H(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function B(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function V(e){if(Array.isArray(e))return H(e)}function H(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(t,r,i,a,o,s){return n(),f(`svg`,e({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),L(r[0]||=[d(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z`,fill:`currentColor`},null,-1)]),16)}I.render=U;var W=S.extend({name:`password`,style:`
4
4
  .p-password {
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m222.37 158.46-47.11-21.11-.13-.06a16 16 0 0 0-15.17 1.4 8 8 0 0 0-.75.56L134.87 160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16 16 0 0 0 1.32-15.06v-.12L97.54 33.64a16 16 0 0 0-16.62-9.52A56.26 56.26 0 0 0 32 80c0 79.4 64.6 144 144 144a56.26 56.26 0 0 0 55.88-48.92 16 16 0 0 0-9.51-16.62M176 208A128.14 128.14 0 0 1 48 80a40.2 40.2 0 0 1 34.87-40 .6.6 0 0 0 0 .12l21 47-20.67 24.74a6 6 0 0 0-.57.77 16 16 0 0 0-1 15.7c9.06 18.53 27.73 37.06 46.46 46.11a16 16 0 0 0 15.75-1.14 8 8 0 0 0 .74-.56L168.89 152l47 21.05h.11A40.21 40.21 0 0 1 176 208`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m222.37 158.46-47.11-21.11-.13-.06a16 16 0 0 0-15.17 1.4 8 8 0 0 0-.75.56L134.87 160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16 16 0 0 0 1.32-15.06v-.12L97.54 33.64a16 16 0 0 0-16.62-9.52A56.26 56.26 0 0 0 32 80c0 79.4 64.6 144 144 144a56.26 56.26 0 0 0 55.88-48.92 16 16 0 0 0-9.51-16.62M176 208A128.14 128.14 0 0 1 48 80a40.2 40.2 0 0 1 34.87-40 .6.6 0 0 0 0 .12l21 47-20.67 24.74a6 6 0 0 0-.57.77 16 16 0 0 0-1 15.7c9.06 18.53 27.73 37.06 46.46 46.11a16 16 0 0 0 15.75-1.14 8 8 0 0 0 .74-.56L168.89 152l47 21.05h.11A40.21 40.21 0 0 1 176 208`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1,4 +1,4 @@
1
- import{Fr as e,Ii as t,Ji as n,Jr as r,Ln as i,Qi as a,Ti as o,Zi as s,Zr as c,_a as l,_i as u,_r as d,bi as f,cn as p,ea as m,ha as h,sn as g,ta as _,tr as v,vi as y,yi as b,zn as x,zr as S}from"./index-pLefgbhx.js";var C={name:`AngleDownIcon`,extends:x};function w(e){return D(e)||E(e)||T(e)||ee()}function ee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{Fr as e,Ii as t,Ji as n,Jr as r,Ln as i,Qi as a,Ti as o,Zi as s,Zr as c,_a as l,_i as u,_r as d,bi as f,cn as p,ea as m,ha as h,sn as g,ta as _,tr as v,vi as y,yi as b,zn as x,zr as S}from"./index-BPOeXMH7.js";var C={name:`AngleDownIcon`,extends:x};function w(e){return D(e)||E(e)||T(e)||ee()}function ee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(e,t){if(e){if(typeof e==`string`)return O(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function E(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function D(e){if(Array.isArray(e))return O(e)}function O(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,r,i,a,o,s){return n(),f(`svg`,t({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),w(r[0]||=[u(`path`,{d:`M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z`,fill:`currentColor`},null,-1)]),16)}C.render=k;var A={name:`AngleUpIcon`,extends:x};function j(e){return M(e)||re(e)||ne(e)||te()}function te(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(e,t){if(e){if(typeof e==`string`)return N(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function re(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function M(e){if(Array.isArray(e))return N(e)}function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P(e,r,i,a,o,s){return n(),f(`svg`,t({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),j(r[0]||=[u(`path`,{d:`M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z`,fill:`currentColor`},null,-1)]),16)}A.render=P;var F=v.extend({name:`inputnumber`,style:`
4
4
  .p-inputnumber {
@@ -0,0 +1 @@
1
+ import{c as e}from"./index-BPOeXMH7.js";export{e as useProcessStore};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M208 152h16a8 8 0 0 0 0-16h-16v-16h16a8 8 0 0 0 0-16h-16.4a79.76 79.76 0 0 0-21.44-46.85l19.5-19.49a8 8 0 0 0-11.32-11.32l-20.29 20.3a79.74 79.74 0 0 0-92.1 0l-20.29-20.3a8 8 0 0 0-11.32 11.32l19.5 19.49A79.76 79.76 0 0 0 48.4 104H32a8 8 0 0 0 0 16h16v16H32a8 8 0 0 0 0 16h16v8c0 2.7.14 5.37.4 8H32a8 8 0 0 0 0 16h19.68a80 80 0 0 0 152.64 0H224a8 8 0 0 0 0-16h-16.4c.26-2.63.4-5.3.4-8ZM128 48a64.07 64.07 0 0 1 63.48 56h-127A64.07 64.07 0 0 1 128 48m8 175.48V144a8 8 0 0 0-16 0v79.48A64.07 64.07 0 0 1 64 160v-40h128v40a64.07 64.07 0 0 1-56 63.48`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M208 152h16a8 8 0 0 0 0-16h-16v-16h16a8 8 0 0 0 0-16h-16.4a79.76 79.76 0 0 0-21.44-46.85l19.5-19.49a8 8 0 0 0-11.32-11.32l-20.29 20.3a79.74 79.74 0 0 0-92.1 0l-20.29-20.3a8 8 0 0 0-11.32 11.32l19.5 19.49A79.76 79.76 0 0 0 48.4 104H32a8 8 0 0 0 0 16h16v16H32a8 8 0 0 0 0 16h16v8c0 2.7.14 5.37.4 8H32a8 8 0 0 0 0 16h19.68a80 80 0 0 0 152.64 0H224a8 8 0 0 0 0-16h-16.4c.26-2.63.4-5.3.4-8ZM128 48a64.07 64.07 0 0 1 63.48 56h-127A64.07 64.07 0 0 1 128 48m8 175.48V144a8 8 0 0 0-16 0v79.48A64.07 64.07 0 0 1 64 160v-40h128v40a64.07 64.07 0 0 1-56 63.48`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M160 40a88.09 88.09 0 0 0-78.71 48.67A64 64 0 1 0 72 216h88a88 88 0 0 0 0-176m0 160H72a48 48 0 0 1 0-96c1.1 0 2.2 0 3.29.11A88 88 0 0 0 72 128a8 8 0 0 0 16 0 72 72 0 1 1 72 72`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M160 40a88.09 88.09 0 0 0-78.71 48.67A64 64 0 1 0 72 216h88a88 88 0 0 0 0-176m0 160H72a48 48 0 0 1 0-96c1.1 0 2.2 0 3.29.11A88 88 0 0 0 72 128a8 8 0 0 0 16 0 72 72 0 1 1 72 72`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M208 136H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H48v-48h160zm0-160H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H48V56h160zm-16-24a12 12 0 1 1-12-12 12 12 0 0 1 12 12m0 96a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M208 136H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H48v-48h160zm0-160H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H48V56h160zm-16-24a12 12 0 1 1-12-12 12 12 0 0 1 12 12m0 96a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M128 24c-53.83 0-96 24.6-96 56v96c0 31.4 42.17 56 96 56s96-24.6 96-56V80c0-31.4-42.17-56-96-56m80 104c0 9.62-7.88 19.43-21.61 26.92C170.93 163.35 150.19 168 128 168s-42.93-4.65-58.39-13.08C55.88 147.43 48 137.62 48 128v-16.64c17.06 15 46.23 24.64 80 24.64s62.94-9.68 80-24.64ZM69.61 53.08C85.07 44.65 105.81 40 128 40s42.93 4.65 58.39 13.08C200.12 60.57 208 70.38 208 80s-7.88 19.43-21.61 26.92C170.93 115.35 150.19 120 128 120s-42.93-4.65-58.39-13.08C55.88 99.43 48 89.62 48 80s7.88-19.43 21.61-26.92m116.78 149.84C170.93 211.35 150.19 216 128 216s-42.93-4.65-58.39-13.08C55.88 195.43 48 185.62 48 176v-16.64c17.06 15 46.23 24.64 80 24.64s62.94-9.68 80-24.64V176c0 9.62-7.88 19.43-21.61 26.92`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M128 24c-53.83 0-96 24.6-96 56v96c0 31.4 42.17 56 96 56s96-24.6 96-56V80c0-31.4-42.17-56-96-56m80 104c0 9.62-7.88 19.43-21.61 26.92C170.93 163.35 150.19 168 128 168s-42.93-4.65-58.39-13.08C55.88 147.43 48 137.62 48 128v-16.64c17.06 15 46.23 24.64 80 24.64s62.94-9.68 80-24.64ZM69.61 53.08C85.07 44.65 105.81 40 128 40s42.93 4.65 58.39 13.08C200.12 60.57 208 70.38 208 80s-7.88 19.43-21.61 26.92C170.93 115.35 150.19 120 128 120s-42.93-4.65-58.39-13.08C55.88 99.43 48 89.62 48 80s7.88-19.43 21.61-26.92m116.78 149.84C170.93 211.35 150.19 216 128 216s-42.93-4.65-58.39-13.08C55.88 195.43 48 185.62 48 176v-16.64c17.06 15 46.23 24.64 80 24.64s62.94-9.68 80-24.64V176c0 9.62-7.88 19.43-21.61 26.92`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M104 40H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H56V56h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64h-48V56h48zm-96 32H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H56v-48h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64h-48v-48h48z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M104 40H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H56V56h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64h-48V56h48zm-96 32H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H56v-48h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64h-48v-48h48z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M192 32H64a32 32 0 0 0-32 32v128a32 32 0 0 0 32 32h128a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32m16 160a16 16 0 0 1-16 16H64a16 16 0 0 1-16-16V64a16 16 0 0 1 16-16h128a16 16 0 0 1 16 16ZM104 92a12 12 0 1 1-12-12 12 12 0 0 1 12 12m36 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12m36 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M192 32H64a32 32 0 0 0-32 32v128a32 32 0 0 0 32 32h128a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32m16 160a16 16 0 0 1-16 16H64a16 16 0 0 1-16-16V64a16 16 0 0 1 16-16h128a16 16 0 0 1 16 16ZM104 92a12 12 0 1 1-12-12 12 12 0 0 1 12 12m36 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12m36 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44L128 120 47.66 76ZM40 90l80 43.78v85.79l-80-43.75Zm96 129.57v-85.75L216 90v85.78Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44L128 120 47.66 76ZM40 90l80 43.78v85.79l-80-43.75Zm96 129.57v-85.75L216 90v85.78Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M128 128a8 8 0 0 1-3 6.25l-40 32a8 8 0 1 1-10-12.5L107.19 128 75 102.25a8 8 0 1 1 10-12.5l40 32a8 8 0 0 1 3 6.25m48 24h-40a8 8 0 0 0 0 16h40a8 8 0 0 0 0-16m56-96v144a16 16 0 0 1-16 16H40a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h176a16 16 0 0 1 16 16m-16 144V56H40v144z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M128 128a8 8 0 0 1-3 6.25l-40 32a8 8 0 1 1-10-12.5L107.19 128 75 102.25a8 8 0 1 1 10-12.5l40 32a8 8 0 0 1 3 6.25m48 24h-40a8 8 0 0 0 0 16h40a8 8 0 0 0 0-16m56-96v144a16 16 0 0 1-16 16H40a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h176a16 16 0 0 1 16 16m-16 144V56H40v144z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Xt as e}from"./index-pLefgbhx.js";var t={comments:{lineComment:`#`,blockComment:[`'''`,`'''`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],onEnterRules:[{beforeText:RegExp(`^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$`),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},n={defaultToken:``,tokenPostfix:`.python`,keywords:`False.None.True._.and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.exec.finally.for.from.global.if.import.in.is.lambda.match.nonlocal.not.or.pass.print.raise.return.try.type.while.with.yield.int.float.long.complex.hex.abs.all.any.apply.basestring.bin.bool.buffer.bytearray.callable.chr.classmethod.cmp.coerce.compile.complex.delattr.dict.dir.divmod.enumerate.eval.execfile.file.filter.format.frozenset.getattr.globals.hasattr.hash.help.id.input.intern.isinstance.issubclass.iter.len.locals.list.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.reversed.range.raw_input.reduce.reload.repr.reversed.round.self.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.unichr.unicode.vars.xrange.zip.__dict__.__methods__.__members__.__class__.__bases__.__name__.__mro__.__subclasses__.__init__.__import__`.split(`.`),brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],tokenizer:{root:[{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},[/[,:;]/,`delimiter`],[/[{}\[\]()]/,`@brackets`],[/@[a-zA-Z_]\w*/,`tag`],[/[a-zA-Z_]\w*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}]],whitespace:[[/\s+/,`white`],[/(^#.*$)/,`comment`],[/'''/,`string`,`@endDocString`],[/"""/,`string`,`@endDblDocString`]],endDocString:[[/[^']+/,`string`],[/\\'/,`string`],[/'''/,`string`,`@popall`],[/'/,`string`]],endDblDocString:[[/[^"]+/,`string`],[/\\"/,`string`],[/"""/,`string`,`@popall`],[/"/,`string`]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,`number.hex`],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,`number`]],strings:[[/'$/,`string.escape`,`@popall`],[/f'{1,3}/,`string.escape`,`@fStringBody`],[/'/,`string.escape`,`@stringBody`],[/"$/,`string.escape`,`@popall`],[/f"{1,3}/,`string.escape`,`@fDblStringBody`],[/"/,`string.escape`,`@dblStringBody`]],fStringBody:[[/[^\\'\{\}]+$/,`string`,`@popall`],[/[^\\'\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],stringBody:[[/[^\\']+$/,`string`,`@popall`],[/[^\\']+/,`string`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],fDblStringBody:[[/[^\\"\{\}]+$/,`string`,`@popall`],[/[^\\"\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],dblStringBody:[[/[^\\"]+$/,`string`,`@popall`],[/[^\\"]+/,`string`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],fStringDetail:[[/[:][^}]+/,`string`],[/[!][ars]/,`string`],[/=/,`string`],[/\}/,`identifier`,`@pop`]]}};export{t as conf,n as language};
1
+ import{Xt as e}from"./index-BPOeXMH7.js";var t={comments:{lineComment:`#`,blockComment:[`'''`,`'''`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],onEnterRules:[{beforeText:RegExp(`^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$`),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},n={defaultToken:``,tokenPostfix:`.python`,keywords:`False.None.True._.and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.exec.finally.for.from.global.if.import.in.is.lambda.match.nonlocal.not.or.pass.print.raise.return.try.type.while.with.yield.int.float.long.complex.hex.abs.all.any.apply.basestring.bin.bool.buffer.bytearray.callable.chr.classmethod.cmp.coerce.compile.complex.delattr.dict.dir.divmod.enumerate.eval.execfile.file.filter.format.frozenset.getattr.globals.hasattr.hash.help.id.input.intern.isinstance.issubclass.iter.len.locals.list.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.reversed.range.raw_input.reduce.reload.repr.reversed.round.self.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.unichr.unicode.vars.xrange.zip.__dict__.__methods__.__members__.__class__.__bases__.__name__.__mro__.__subclasses__.__init__.__import__`.split(`.`),brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],tokenizer:{root:[{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},[/[,:;]/,`delimiter`],[/[{}\[\]()]/,`@brackets`],[/@[a-zA-Z_]\w*/,`tag`],[/[a-zA-Z_]\w*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}]],whitespace:[[/\s+/,`white`],[/(^#.*$)/,`comment`],[/'''/,`string`,`@endDocString`],[/"""/,`string`,`@endDblDocString`]],endDocString:[[/[^']+/,`string`],[/\\'/,`string`],[/'''/,`string`,`@popall`],[/'/,`string`]],endDblDocString:[[/[^"]+/,`string`],[/\\"/,`string`],[/"""/,`string`,`@popall`],[/"/,`string`]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,`number.hex`],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,`number`]],strings:[[/'$/,`string.escape`,`@popall`],[/f'{1,3}/,`string.escape`,`@fStringBody`],[/'/,`string.escape`,`@stringBody`],[/"$/,`string.escape`,`@popall`],[/f"{1,3}/,`string.escape`,`@fDblStringBody`],[/"/,`string.escape`,`@dblStringBody`]],fStringBody:[[/[^\\'\{\}]+$/,`string`,`@popall`],[/[^\\'\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],stringBody:[[/[^\\']+$/,`string`,`@popall`],[/[^\\']+/,`string`],[/\\./,`string`],[/'/,`string.escape`,`@popall`],[/\\$/,`string`]],fDblStringBody:[[/[^\\"\{\}]+$/,`string`,`@popall`],[/[^\\"\{\}]+/,`string`],[/\{[^\}':!=]+/,`identifier`,`@fStringDetail`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],dblStringBody:[[/[^\\"]+$/,`string`,`@popall`],[/[^\\"]+/,`string`],[/\\./,`string`],[/"/,`string.escape`,`@popall`],[/\\$/,`string`]],fStringDetail:[[/[:][^}]+/,`string`],[/[!][ars]/,`string`],[/=/,`string`],[/\}/,`identifier`,`@pop`]]}};export{t as conf,n as language};
@@ -1 +1 @@
1
- import{Xt as e}from"./index-pLefgbhx.js";var t=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<!--`,`-->`],[`<`,`>`],[`{`,`}`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`<`,close:`>`}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:``,tokenPostfix:``,tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.root`}],[/<!DOCTYPE/,`metatag.html`,`@doctype`],[/<!--/,`comment.html`,`@comment`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)(script)/,[`delimiter.html`,{token:`tag.html`,next:`@script`}]],[/(<)(style)/,[`delimiter.html`,{token:`tag.html`,next:`@style`}]],[/(<)([:\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)([\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/[^>]+/,`metatag.content.html`],[/>/,`metatag.html`,`@pop`]],comment:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/-->/,`comment.html`,`@pop`],[/[^-]+/,`comment.content.html`],[/./,`comment.content.html`]],otherTag:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.script`}],[/type/,`attribute.name`,`@scriptAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],scriptAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterType`}],[/=/,`delimiter`,`@scriptAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.scriptEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/script/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],style:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.style`}],[/type/,`attribute.name`,`@styleAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],styleAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterType`}],[/=/,`delimiter`,`@styleAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.styleEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/style/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],razorInSimpleState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`}]],razorInEmbeddedState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],razorBlockCommentTopLevel:[[/\*@/,`@rematch`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorBlockComment:[[/\*@/,`comment.cs`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorRootTopLevel:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/[})]/,`@rematch`,`@pop`],{include:`razorCommon`}],razorRoot:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/\}/,`delimiter.bracket.cs`,`@pop`],[/\)/,`delimiter.parenthesis.cs`,`@pop`],{include:`razorCommon`}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:`keyword.cs`},"@default":`identifier.cs`}}],[/[\[\]]/,`delimiter.array.cs`],[/[ \t\r\n]+/],[/\/\/.*$/,`comment.cs`],[/@\*/,`comment.cs`,`@razorBlockComment`],[/"([^"]*)"/,`string.cs`],[/'([^']*)'/,`string.cs`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<\/)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,`delimiter.cs`],[/\d*\d+[eE]([\-+]?\d+)?/,`number.float.cs`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float.cs`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,`number.hex.cs`],[/0[0-7']*[0-7]/,`number.octal.cs`],[/0[bB][0-1']*[0-1]/,`number.binary.cs`],[/\d[\d']*/,`number.cs`],[/\d/,`number.cs`]]},razorKeywords:`abstract.as.async.await.base.bool.break.by.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.descending.explicit.event.extern.else.enum.false.finally.fixed.float.for.foreach.from.goto.group.if.implicit.in.int.interface.internal.into.is.lock.long.nameof.new.null.namespace.object.operator.out.override.orderby.params.private.protected.public.readonly.ref.return.switch.struct.sbyte.sealed.short.sizeof.stackalloc.static.string.select.this.throw.true.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.volatile.void.when.while.where.yield.model.inject`.split(`.`),escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{n as conf,r as language};
1
+ import{Xt as e}from"./index-BPOeXMH7.js";var t=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<!--`,`-->`],[`<`,`>`],[`{`,`}`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`<`,close:`>`}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:``,tokenPostfix:``,tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.root`}],[/<!DOCTYPE/,`metatag.html`,`@doctype`],[/<!--/,`comment.html`,`@comment`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)(script)/,[`delimiter.html`,{token:`tag.html`,next:`@script`}]],[/(<)(style)/,[`delimiter.html`,{token:`tag.html`,next:`@style`}]],[/(<)([:\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)([\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/[^>]+/,`metatag.content.html`],[/>/,`metatag.html`,`@pop`]],comment:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.comment`}],[/-->/,`comment.html`,`@pop`],[/[^-]+/,`comment.content.html`],[/./,`comment.content.html`]],otherTag:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.script`}],[/type/,`attribute.name`,`@scriptAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],scriptAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterType`}],[/=/,`delimiter`,`@scriptAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.scriptWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.scriptEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/script/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],style:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.style`}],[/type/,`attribute.name`,`@styleAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],styleAfterType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterType`}],[/=/,`delimiter`,`@styleAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleAfterTypeEquals:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleWithCustomType:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInSimpleState.styleWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleEmbedded:[[/@[^@]/,{token:`@rematch`,switchTo:`@razorInEmbeddedState.styleEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/style/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],razorInSimpleState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`}]],razorInEmbeddedState:[[/@\*/,`comment.cs`,`@razorBlockCommentTopLevel`],[/@[{(]/,`metatag.cs`,`@razorRootTopLevel`],[/(@)(\s*[\w]+)/,[`metatag.cs`,{token:`identifier.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],[/[})]/,{token:`metatag.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}],[/\*@/,{token:`comment.cs`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}]],razorBlockCommentTopLevel:[[/\*@/,`@rematch`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorBlockComment:[[/\*@/,`comment.cs`,`@pop`],[/[^*]+/,`comment.cs`],[/./,`comment.cs`]],razorRootTopLevel:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/[})]/,`@rematch`,`@pop`],{include:`razorCommon`}],razorRoot:[[/\{/,`delimiter.bracket.cs`,`@razorRoot`],[/\(/,`delimiter.parenthesis.cs`,`@razorRoot`],[/\}/,`delimiter.bracket.cs`,`@pop`],[/\)/,`delimiter.parenthesis.cs`,`@pop`],{include:`razorCommon`}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:`keyword.cs`},"@default":`identifier.cs`}}],[/[\[\]]/,`delimiter.array.cs`],[/[ \t\r\n]+/],[/\/\/.*$/,`comment.cs`],[/@\*/,`comment.cs`,`@razorBlockComment`],[/"([^"]*)"/,`string.cs`],[/'([^']*)'/,`string.cs`],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<\/)([\w\-]+)(>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,`delimiter.cs`],[/\d*\d+[eE]([\-+]?\d+)?/,`number.float.cs`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float.cs`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,`number.hex.cs`],[/0[0-7']*[0-7]/,`number.octal.cs`],[/0[bB][0-1']*[0-1]/,`number.binary.cs`],[/\d[\d']*/,`number.cs`],[/\d/,`number.cs`]]},razorKeywords:`abstract.as.async.await.base.bool.break.by.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.descending.explicit.event.extern.else.enum.false.finally.fixed.float.for.foreach.from.goto.group.if.implicit.in.int.interface.internal.into.is.lock.long.nameof.new.null.namespace.object.operator.out.override.orderby.params.private.protected.public.readonly.ref.return.switch.struct.sbyte.sealed.short.sizeof.stackalloc.static.string.select.this.throw.true.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.volatile.void.when.while.where.yield.model.inject`.split(`.`),escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{n as conf,r as language};
@@ -0,0 +1 @@
1
+ import{o as e}from"./index-BPOeXMH7.js";export{e as router};
@@ -0,0 +1 @@
1
+ import{It as e}from"./index-BPOeXMH7.js";export{e as settingsScope};
@@ -1 +1 @@
1
- import{Aa as e,It as t,Lt as n,Qr as r,Xn as i,gi as a,sa as o,vn as s}from"./index-pLefgbhx.js";const c=r(`settings`,()=>{let r=i(),c=e([]),l=e(!1),u=e(!1),d=e(null),f=a(()=>[...c.value].sort((e,t)=>e.name.localeCompare(t.name))),p=a(()=>f.value.filter(e=>!e.builtin)),m=null,h,g=0;function _(){g+=1,v()}function v(){let e=t(),n=e.orgId??void 0;m&&h===n||(b(),h=n,m=s.settings.onParsersChanged.subscribe(e,{onData(e){c.value=e},onError(){m=null}}))}function y(){g=Math.max(0,g-1),g===0&&b()}function b(){m?.unsubscribe(),m=null,h=void 0}o(()=>n().currentProject?.orgId??null,()=>{g!==0&&(x(),v())});async function x(){l.value=!0;try{c.value=await s.settings.listParsers.query(t())}catch(e){let t=e instanceof Error?e.message:`Failed to fetch parsers`;r.add({severity:`error`,summary:`Error`,detail:t,life:3e3})}finally{l.value=!1}}async function S(e){l.value=!0;try{let n=await s.settings.createParser.mutate({name:e.name,description:e.description,code:e.code,enabled:e.enabled??!0,version:2,...t()});return c.value=[...c.value,n],u.value=!1,r.add({severity:`success`,summary:`Success`,detail:`Parser "${n.name}" created`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Failed to create parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function C(e){l.value=!0;try{let n=await s.settings.updateParser.mutate({...e,...t()});return c.value=c.value.map(t=>t.id===e.id?n:t),d.value=null,r.add({severity:`success`,summary:`Success`,detail:`Parser "${n.name}" updated`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Failed to update parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function w(e){l.value=!0;try{await s.settings.deleteParser.mutate({id:e,...t()}),c.value=c.value.filter(t=>t.id!==e),r.add({severity:`success`,summary:`Success`,detail:`Parser deleted`,life:3e3})}catch(e){let t=e instanceof Error?e.message:`Failed to delete parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function T(e,t){l.value=!0;try{let n=await s.settings.testParser.mutate({code:e,sampleLogs:t});return r.add({severity:`info`,summary:`Validation`,detail:`Validated ${n.results.length} log(s)`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Validation failed`;throw r.add({severity:`error`,summary:`Validation Error`,detail:t,life:3e3}),e}finally{l.value=!1}}function E(){d.value=null,u.value=!0}function D(e){d.value={...e},u.value=!0}function O(){u.value=!1,d.value=null}return{parsers:c,sortedParsers:f,userParsers:p,loading:l,createDialogOpen:u,editingParser:d,fetchParsers:x,subscribeParsers:_,unsubscribeParsers:y,createParser:S,updateParser:C,deleteParser:w,testParser:T,openCreateDialog:E,openEditDialog:D,closeDialog:O}});export{c as t};
1
+ import{Aa as e,It as t,Lt as n,Qr as r,Xn as i,gi as a,sa as o,vn as s}from"./index-BPOeXMH7.js";const c=r(`settings`,()=>{let r=i(),c=e([]),l=e(!1),u=e(!1),d=e(null),f=a(()=>[...c.value].sort((e,t)=>e.name.localeCompare(t.name))),p=a(()=>f.value.filter(e=>!e.builtin)),m=null,h,g=0;function _(){g+=1,v()}function v(){let e=t(),n=e.orgId??void 0;m&&h===n||(b(),h=n,m=s.settings.onParsersChanged.subscribe(e,{onData(e){c.value=e},onError(){m=null}}))}function y(){g=Math.max(0,g-1),g===0&&b()}function b(){m?.unsubscribe(),m=null,h=void 0}o(()=>n().currentProject?.orgId??null,()=>{g!==0&&(x(),v())});async function x(){l.value=!0;try{c.value=await s.settings.listParsers.query(t())}catch(e){let t=e instanceof Error?e.message:`Failed to fetch parsers`;r.add({severity:`error`,summary:`Error`,detail:t,life:3e3})}finally{l.value=!1}}async function S(e){l.value=!0;try{let n=await s.settings.createParser.mutate({name:e.name,description:e.description,code:e.code,enabled:e.enabled??!0,version:2,...t()});return c.value=[...c.value,n],u.value=!1,r.add({severity:`success`,summary:`Success`,detail:`Parser "${n.name}" created`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Failed to create parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function C(e){l.value=!0;try{let n=await s.settings.updateParser.mutate({...e,...t()});return c.value=c.value.map(t=>t.id===e.id?n:t),d.value=null,r.add({severity:`success`,summary:`Success`,detail:`Parser "${n.name}" updated`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Failed to update parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function w(e){l.value=!0;try{await s.settings.deleteParser.mutate({id:e,...t()}),c.value=c.value.filter(t=>t.id!==e),r.add({severity:`success`,summary:`Success`,detail:`Parser deleted`,life:3e3})}catch(e){let t=e instanceof Error?e.message:`Failed to delete parser`;throw r.add({severity:`error`,summary:`Error`,detail:t,life:3e3}),e}finally{l.value=!1}}async function T(e,t){l.value=!0;try{let n=await s.settings.testParser.mutate({code:e,sampleLogs:t});return r.add({severity:`info`,summary:`Validation`,detail:`Validated ${n.results.length} log(s)`,life:3e3}),n}catch(e){let t=e instanceof Error?e.message:`Validation failed`;throw r.add({severity:`error`,summary:`Validation Error`,detail:t,life:3e3}),e}finally{l.value=!1}}function E(){d.value=null,u.value=!0}function D(e){d.value={...e},u.value=!0}function O(){u.value=!1,d.value=null}return{parsers:c,sortedParsers:f,userParsers:p,loading:l,createDialogOpen:u,editingParser:d,fetchParsers:x,subscribeParsers:_,unsubscribeParsers:y,createParser:S,updateParser:C,deleteParser:w,testParser:T,openCreateDialog:E,openEditDialog:D,closeDialog:O}});export{c as t};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M104 216a16 16 0 1 1-16-16 16 16 0 0 1 16 16m88-16a16 16 0 1 0 16 16 16 16 0 0 0-16-16m47.71-125.86-25.64 92.28A24.06 24.06 0 0 1 191 184H92.16A24.06 24.06 0 0 1 69 166.42L33.92 40H16a8 8 0 0 1 0-16h24a8 8 0 0 1 7.71 5.86L57.19 64H232a8 8 0 0 1 7.71 10.14M221.47 80H61.64l22.81 82.14a8 8 0 0 0 7.71 5.86H191a8 8 0 0 0 7.71-5.86Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M104 216a16 16 0 1 1-16-16 16 16 0 0 1 16 16m88-16a16 16 0 1 0 16 16 16 16 0 0 0-16-16m47.71-125.86-25.64 92.28A24.06 24.06 0 0 1 191 184H92.16A24.06 24.06 0 0 1 69 166.42L33.92 40H16a8 8 0 0 1 0-16h24a8 8 0 0 1 7.71 5.86L57.19 64H232a8 8 0 0 1 7.71 10.14M221.47 80H61.64l22.81 82.14a8 8 0 0 0 7.71 5.86H191a8 8 0 0 0 7.71-5.86Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M216 72h-35.08c.39-.33.79-.65 1.17-1A29.53 29.53 0 0 0 192 49.57 32.62 32.62 0 0 0 158.44 16 29.53 29.53 0 0 0 137 25.91a55 55 0 0 0-9 14.48 55 55 0 0 0-9-14.48A29.53 29.53 0 0 0 97.56 16 32.62 32.62 0 0 0 64 49.57 29.53 29.53 0 0 0 73.91 71c.38.33.78.65 1.17 1H40a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16v64a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16v-64a16 16 0 0 0 16-16V88a16 16 0 0 0-16-16m-67-35.49a13.7 13.7 0 0 1 10-4.5h.49A16.62 16.62 0 0 1 176 49.08a13.7 13.7 0 0 1-4.5 10c-9.49 8.4-25.24 11.36-35 12.4 1.2-10.59 4.5-25.98 12.5-34.97m-64.09.36A16.63 16.63 0 0 1 96.59 32h.49a13.7 13.7 0 0 1 10 4.5c8.39 9.48 11.35 25.2 12.39 34.92-9.72-1-25.44-4-34.92-12.39a13.7 13.7 0 0 1-4.5-10 16.6 16.6 0 0 1 4.82-12.16ZM40 88h80v32H40Zm16 48h64v64H56Zm144 64h-64v-64h64Zm16-80h-80V88h80z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`M216 72h-35.08c.39-.33.79-.65 1.17-1A29.53 29.53 0 0 0 192 49.57 32.62 32.62 0 0 0 158.44 16 29.53 29.53 0 0 0 137 25.91a55 55 0 0 0-9 14.48 55 55 0 0 0-9-14.48A29.53 29.53 0 0 0 97.56 16 32.62 32.62 0 0 0 64 49.57 29.53 29.53 0 0 0 73.91 71c.38.33.78.65 1.17 1H40a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16v64a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16v-64a16 16 0 0 0 16-16V88a16 16 0 0 0-16-16m-67-35.49a13.7 13.7 0 0 1 10-4.5h.49A16.62 16.62 0 0 1 176 49.08a13.7 13.7 0 0 1-4.5 10c-9.49 8.4-25.24 11.36-35 12.4 1.2-10.59 4.5-25.98 12.5-34.97m-64.09.36A16.63 16.63 0 0 1 96.59 32h.49a13.7 13.7 0 0 1 10 4.5c8.39 9.48 11.35 25.2 12.39 34.92-9.72-1-25.44-4-34.92-12.39a13.7 13.7 0 0 1-4.5-10 16.6 16.6 0 0 1 4.82-12.16ZM40 88h80v32H40Zm16 48h64v64H56Zm144 64h-64v-64h64Zm16-80h-80V88h80z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Ji as e,_i as t,bi as n}from"./index-pLefgbhx.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44-29.77 16.3-80.35-44Zm0 88L47.66 76l33.9-18.56 80.34 44ZM40 90l80 43.78v85.79l-80-43.75Zm176 85.78-80 43.79v-85.75l32-17.51V152a8 8 0 0 0 16 0v-44.45L216 90v85.77Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{Ji as e,_i as t,bi as n}from"./index-BPOeXMH7.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),n(`svg`,r,[...a[0]||=[t(`path`,{d:`m223.68 66.15-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44-29.77 16.3-80.35-44Zm0 88L47.66 76l33.9-18.56 80.34 44ZM40 90l80 43.78v85.79l-80-43.75Zm176 85.78-80 43.79v-85.75l32-17.51V152a8 8 0 0 0 16 0v-44.45L216 90v85.77Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{Aa as e,An as t,Di as n,Fa as r,Ji as i,Li as a,Mn as o,Oa as s,On as ee,Qt as c,Ti as l,U as u,W as te,Wi as d,Xi as f,Zi as p,_a as m,_i as h,an as g,b as _,bi as v,da as y,di as b,fa as x,gi as S,ha as C,ii as ne,mn as w,nn as T,pi as E,sa as D,sn as O,tn as re,ui as ie,va as k,vi as A,wi as j,yi as M,za as N}from"./index-pLefgbhx.js";var P=`runeya.chat.sound`;const ae=e(oe()??!0);function oe(){if(typeof localStorage>`u`)return null;let e=localStorage.getItem(P);return e===null?null:e===`1`}function se(e){ae.value=e;try{localStorage.setItem(P,e?`1`:`0`)}catch{}}async function ce(e){try{let t=(await e.$fetch(`/user/prefs`,{method:`GET`}))?.data?.prefs?.chatSound;typeof t==`boolean`&&se(t)}catch{}}function le(e,t){e.$fetch(`/user/prefs`,{method:`POST`,body:{prefs:{chatSound:t}}})}var F=null;function I(){if(!(!ae.value||typeof window>`u`))try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;F??=new e,F.state===`suspended`&&F.resume();let t=F.currentTime,n=F.createOscillator(),r=F.createGain();n.type=`sine`,n.frequency.setValueAtTime(660,t),n.frequency.exponentialRampToValueAtTime(880,t+.08),r.gain.setValueAtTime(1e-4,t),r.gain.exponentialRampToValueAtTime(.16,t+.012),r.gain.exponentialRampToValueAtTime(1e-4,t+.25),n.connect(r).connect(F.destination),n.start(t),n.stop(t+.26)}catch{}}var ue={class:`chat`},de={class:`sidebar`},fe={class:`group`},pe={class:`group-head`},me={class:`acts`},he={class:`list`},ge=[`onClick`],_e={class:`hash`},ve={class:`name`},ye={key:0,class:`badge`},be={class:`group`},xe={class:`group-head`},Se={class:`list`},Ce=[`onClick`],we={class:`name`},Te={key:0,class:`badge`},Ee={class:`main`},De={class:`retention-banner__text`},Oe={class:`retention-banner__cta`},ke={class:`pane-head`},Ae={key:0},je={class:`head-actions`},Me={class:`sel-count`},Ne={key:0,class:`loading-older`},Pe={key:1,class:`empty`},Fe=[`onClick`],Ie={key:0,class:`pi pi-check`},Le=[`src`,`onError`],Re={class:`msg-body`},ze={class:`msg-head`},Be={class:`msg-author`},Ve={class:`msg-time`},He=[`innerHTML`],Ue={key:0,class:`msg-cards`},We={key:1,class:`error`},Ge={key:2,class:`placeholder`},Ke={class:`hash-input`},qe={class:`toggle-row`},Je={key:0,class:`dlg-empty`},Ye={key:1,class:`pick-list`},Xe=[`onClick`],Ze={class:`pick-name`},Qe={class:`join`},$e={key:0,class:`dlg-empty`},et={class:`dlg-hint`},tt={key:0,class:`dlg-empty`},nt={key:1,class:`pick-list`},rt=[`onClick`],it={class:`pick-avatar`},at={class:`pick-name`},ot={key:0,class:`pi pi-check picked`},st={key:0,class:`dlg-empty`},ct={key:0,class:`dlg-empty`},lt={key:1,class:`pick-list`},ut=[`onClick`],dt={class:`pick-avatar`},ft={class:`pick-name`},pt={key:0,class:`pi pi-check picked`},mt=80,ht=120,L=ee(n({__name:`ChatPanel`,props:{client:{},orgId:{},cloudApiBaseUrl:{},streamUrl:{type:Function,default:void 0},currentUserId:{default:void 0},members:{},t:{},enableSelectToAi:{type:Boolean,default:!1},notifyOnUnread:{type:Boolean,default:!0},internalOrigins:{default:()=>[]},cardColumn:{type:Function,default:void 0}},emits:[`channel-read`,`ai-context`,`internal-link`,`upgrade`,`card-refs`],setup(n,{emit:ee}){let c=n,w=ee,P=c.t,oe=r(c,`orgId`),F=S(()=>c.client),L=_(F.value,oe,c.streamUrl?{streamUrl:c.streamUrl}:{baseURL:c.cloudApiBaseUrl}),R=S(()=>c.currentUserId),z=S(()=>c.members),gt=e(null);function _t(e){return new Date(e).toLocaleDateString(void 0,{year:`numeric`,month:`long`,day:`numeric`})}async function vt(e){if(gt.value=null,e)try{gt.value=(await F.value.$fetch(`/chat/retention/status`,{method:`GET`,query:{organizationId:e}})).data??null}catch{}}D(oe,e=>void vt(e),{immediate:!0});let yt=S(()=>{let e=gt.value;return e?e.capped&&e.enforcing?{text:P(`retention.enforcing`,{days:e.retentionDays}),enforcing:!0}:e.capped&&e.cutoffAt?{text:P(`retention.grace`,{date:_t(e.cutoffAt),days:e.retentionDays}),enforcing:!1}:e.pending?{text:P(`retention.pending`,{date:_t(e.pending.effectiveAt),days:e.pending.retentionDays}),enforcing:!1}:null:null}),bt=e=>`runeya.chat.lastChannel.${e}`;D(()=>L.activeChannelId.value,e=>{if(e&&c.orgId)try{localStorage.setItem(bt(c.orgId),e)}catch{}});let xt=``;D([()=>c.orgId,L.channels],()=>{let e=c.orgId;if(!e||xt===e||!L.channels.value.length||(xt=e,L.activeChannelId.value))return;let t=null;try{t=localStorage.getItem(bt(e))}catch{}t&&L.channels.value.some(e=>e.id===t)&&L.selectChannel(t)},{immediate:!0});let St=S(()=>L.channels.value.filter(e=>e.kind===`channel`)),Ct=S(()=>L.channels.value.filter(e=>e.kind===`dm`)),B=S(()=>L.channels.value.find(e=>e.id===L.activeChannelId.value)??null),wt=S(()=>z.value.filter(e=>e.userId!==R.value));function Tt(e){return z.value.find(t=>t.userId===e)?.name??P(`someone`)}function Et(e){let t=e.memberIds.filter(e=>e!==R.value);return t.length?t.map(Tt).join(`, `):P(`someone`)}function Dt(e){return e.kind===`dm`?Et(e):e.name}let Ot=S(()=>{let e=B.value;return e?z.value.filter(t=>!e.memberIds.includes(t.userId)):[]}),V=e(null),kt=S({get:()=>V.value===`create`,set:e=>{V.value=e?`create`:null}}),At=S({get:()=>V.value===`browse`,set:e=>{V.value=e?`browse`:null}}),jt=S({get:()=>V.value===`newdm`,set:e=>{V.value=e?`newdm`:null}}),Mt=S({get:()=>V.value===`invite`,set:e=>{V.value=e?`invite`:null}}),H=e(``),Nt=e(!1),U=e([]),W=e([]),G=e([]),K=e(``);function Pt(e){let t=K.value.trim().toLowerCase();return!t||e.name.toLowerCase().includes(t)||e.email.toLowerCase().includes(t)}let Ft=S(()=>Ot.value.filter(Pt)),It=S(()=>wt.value.filter(Pt));function Lt(){V.value=null}async function Rt(){U.value=await L.browseChannels(),V.value=`browse`}function zt(){W.value=[],K.value=``,V.value=`invite`}function Bt(){G.value=[],K.value=``,V.value=`newdm`}function Vt(e){W.value=W.value.includes(e)?W.value.filter(t=>t!==e):[...W.value,e]}function Ht(e){G.value=G.value.includes(e)?G.value.filter(t=>t!==e):[...G.value,e]}async function Ut(){await L.createChannel(H.value,Nt.value)&&(H.value=``,Nt.value=!1,Lt())}async function Wt(e){await L.joinChannel(e)&&(U.value=U.value.filter(t=>t.id!==e),Lt())}async function Gt(){if(!G.value.length)return;let e=G.value;Lt(),await L.openDm(e)}async function Kt(){let e=B.value;if(!(!e||!W.value.length)){for(let t of W.value)await L.inviteToChannel(e.id,t);W.value=[],Lt(),await L.reloadChannels()}}let q=e(``),qt=e(null);async function Jt(){await a();let e=qt.value?.$el;e instanceof HTMLTextAreaElement?e.focus():e?.querySelector(`textarea`)?.focus()}async function Yt(){await L.send(q.value)&&(q.value=``),await Jt()}function Xt(e){e.shiftKey||e.isComposing||(e.preventDefault(),Yt())}D(()=>L.activeChannelId.value,e=>{e&&Jt()});let J=ae;d(()=>{ce(F.value)});function Zt(){se(!J.value),le(F.value,J.value),J.value&&I()}let Qt=0,$t=!1;D(()=>Object.values(L.unread.value).reduce((e,t)=>e+t,0),e=>{c.notifyOnUnread&&$t&&e>Qt&&I(),Qt=e,$t=!0},{immediate:!0});let en=typeof window<`u`?window.location.origin:``,tn={ALLOWED_TAGS:[`p`,`br`,`strong`,`b`,`em`,`i`,`u`,`s`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`,`h1`,`h2`,`h3`,`h4`,`hr`],ALLOWED_ATTR:[`href`,`title`]};function nn(e){let t=te.parse(e??``,{async:!1,gfm:!0,breaks:!0});return u.sanitize(t,tn)}let rn=/\/app\/[^/\s)]+\/kanban\/([^/\s)]+)\/card\/([^/\s)?#]+)/g;function an(e){let t=[],n=new Set;for(let r of(e??``).matchAll(rn)){let e=decodeURIComponent(r[1]??``),i=decodeURIComponent(r[2]??``),a=`${e}:${i}`;!e||!i||n.has(a)||(n.add(a),t.push({boardId:e,cardId:i}))}return t}function on(e){return c.cardColumn?an(e).map(e=>({key:`${e.boardId}:${e.cardId}`,column:c.cardColumn?.(e.boardId,e.cardId)??``})).filter(e=>e.column):[]}D(()=>L.messages.value.map(e=>e.content).join(`\0`),()=>{let e=[],t=new Set;for(let n of L.messages.value)for(let r of an(n.content)){let n=`${r.boardId}:${r.cardId}`;t.has(n)||(t.add(n),e.push(r))}w(`card-refs`,e)},{immediate:!0});function sn(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);if(!t)return;e.preventDefault(),e.stopPropagation();let n=[en,...c.internalOrigins].filter(Boolean).find(e=>t===e||t.startsWith(`${e}/`));n?w(`internal-link`,t.slice(n.length)||`/`,n):/^https?:\/\//i.test(t)&&window.open(t,`_blank`,`noopener,noreferrer`)}function cn(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function ln(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}let un=s(new Set);function dn(e){return`${c.cloudApiBaseUrl}/api/avatar/${e}`}let Y=e(null),X=e(0),Z=0;function fn(){let e=Y.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<=mt:!0}function pn(){let e=L.activeChannelId.value;e&&(L.markRead(e),L.unread.value[e]&&(L.unread.value={...L.unread.value,[e]:0}),w(`channel-read`,e))}function mn(e=!1){let t=Y.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),X.value=0,pn())}let hn=!1;async function gn(){let e=Y.value;if(!e||!L.hasMore.value||L.loadingOlder.value)return;hn=!0;let t=e.scrollHeight,n=e.scrollTop;await L.loadOlder(),await a(),e.scrollTop=n+(e.scrollHeight-t),hn=!1}function _n(){let e=Y.value;e&&e.scrollTop<ht&&gn(),fn()&&(X.value=0,pn())}D(()=>L.messages.value.length,async e=>{if(hn){Z=e;return}if(e<Z){Z=e,X.value=0;return}let t=e-Z,n=L.messages.value.at(-1)?.userId===R.value,r=Z===0||n||fn();if(Z>0&&t>0&&!n&&I(),Z=e,await a(),r)mn();else if(t>0){X.value+=t;let e=L.activeChannelId.value;e&&(L.unread.value={...L.unread.value,[e]:(L.unread.value[e]??0)+t})}}),D(()=>L.activeChannelId.value,()=>{Z=0,X.value=0});let Q=e(!1),$=s(new Set);function vn(e){$.has(e)?$.delete(e):$.add(e)}function yn(){Q.value=!1,$.clear()}D(()=>L.activeChannelId.value,yn);function bn(){let e=L.messages.value.filter(e=>$.has(e.id));e.length&&(w(`ai-context`,{title:B.value?Dt(B.value):``,messages:e}),yn())}return(e,r)=>(i(),v(`div`,ue,[h(`aside`,de,[p(e.$slots,`sidebar-top`,{},void 0,!0),h(`div`,fe,[h(`div`,pe,[h(`span`,null,k(N(P)(`channels`)),1),h(`span`,me,[l(N(o),{icon:`pi pi-search`,text:``,rounded:``,size:`small`,onClick:Rt}),l(N(o),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:r[0]||=e=>V.value=`create`})])]),h(`ul`,he,[(i(!0),v(E,null,f(St.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:C([`chan`,{active:e.id===N(L).activeChannelId.value}]),onClick:t=>N(L).selectChannel(e.id)},[h(`span`,_e,k(e.isPrivate?`🔒`:`#`),1),h(`span`,ve,k(e.name),1),N(L).unread.value[e.id]?(i(),v(`span`,ye,k(N(L).unread.value[e.id]),1)):M(``,!0)],10,ge)]))),128))])]),h(`div`,be,[h(`div`,xe,[h(`span`,null,k(N(P)(`directMessages`)),1),l(N(o),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:Bt})]),h(`ul`,Se,[(i(!0),v(E,null,f(Ct.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:C([`chan`,{active:e.id===N(L).activeChannelId.value}]),onClick:t=>N(L).selectChannel(e.id)},[h(`span`,we,k(Et(e)),1),N(L).unread.value[e.id]?(i(),v(`span`,Te,k(N(L).unread.value[e.id]),1)):M(``,!0)],10,Ce)]))),128))])])]),h(`div`,Ee,[yt.value?(i(),v(`a`,{key:0,class:C([`retention-banner`,{enforcing:yt.value.enforcing}]),href:`#`,onClick:r[1]||=b(e=>w(`upgrade`),[`prevent`])},[h(`span`,De,k(yt.value.text),1),h(`span`,Oe,k(N(P)(`retention.cta`)),1)],2)):M(``,!0),B.value?(i(),v(E,{key:1},[h(`header`,ke,[h(`h2`,null,[B.value.kind===`channel`?(i(),v(`span`,Ae,k(B.value.isPrivate?`🔒`:`#`),1)):M(``,!0),j(k(Dt(B.value)),1)]),h(`span`,je,[l(N(o),{icon:N(J)?`pi pi-volume-up`:`pi pi-volume-off`,text:``,rounded:``,size:`small`,title:N(J)?N(P)(`soundOn`):N(P)(`soundOff`),onClick:Zt},null,8,[`icon`,`title`]),n.enableSelectToAi&&Q.value?(i(),v(E,{key:0},[h(`span`,Me,k(N(P)(`selectedCount`,{count:$.size})),1),l(N(o),{label:N(P)(`sendToAi`),icon:`pi pi-sparkles`,size:`small`,disabled:!$.size,onClick:bn},null,8,[`label`,`disabled`]),l(N(o),{label:N(P)(`cancel`),size:`small`,text:``,onClick:yn},null,8,[`label`])],64)):(i(),v(E,{key:1},[n.enableSelectToAi?(i(),A(N(o),{key:0,label:N(P)(`select`),icon:`pi pi-check-square`,size:`small`,text:``,onClick:r[2]||=e=>Q.value=!0},null,8,[`label`])):M(``,!0),B.value.kind===`channel`?(i(),A(N(o),{key:1,label:N(P)(`invite`),size:`small`,outlined:``,onClick:zt},null,8,[`label`])):M(``,!0)],64))])]),h(`div`,{ref_key:`listEl`,ref:Y,class:`thread`,onScroll:_n},[N(L).loadingOlder.value?(i(),v(`div`,Ne,[...r[14]||=[h(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):M(``,!0),!N(L).messages.value.length&&!N(L).loading.value?(i(),v(`p`,Pe,k(N(P)(`empty`)),1)):M(``,!0),(i(!0),v(E,null,f(N(L).messages.value,e=>(i(),v(`div`,{key:e.id,class:C([`msg`,{selectable:n.enableSelectToAi&&Q.value,selected:$.has(e.id)}]),onClick:t=>n.enableSelectToAi&&Q.value&&vn(e.id)},[n.enableSelectToAi&&Q.value?(i(),v(`span`,{key:0,class:C([`msg-check`,{on:$.has(e.id)}])},[$.has(e.id)?(i(),v(`i`,Ie)):M(``,!0)],2)):M(``,!0),h(`div`,{class:`msg-avatar`,style:m(ln(e.userId))},[un.has(e.userId)?(i(),v(E,{key:1},[j(k(e.userName.charAt(0).toUpperCase()),1)],64)):(i(),v(`img`,{key:0,src:dn(e.userId),alt:``,onError:t=>un.add(e.userId)},null,40,Le))],4),h(`div`,Re,[h(`div`,ze,[h(`span`,Be,k(e.userName),1),h(`span`,Ve,k(cn(e.createdAt)),1)]),h(`div`,{class:`msg-content`,innerHTML:nn(e.content),onClick:r[3]||=e=>sn(e)},null,8,He),on(e.content).length?(i(),v(`div`,Ue,[(i(!0),v(E,null,f(on(e.content),e=>(i(),v(`span`,{key:e.key,class:`card-col`},[r[15]||=h(`i`,{class:`pi pi-list`},null,-1),j(k(N(P)(`cardColumn`,{column:e.column})),1)]))),128))])):M(``,!0)])],10,Fe))),128))],544),X.value>0?(i(),v(`button`,{key:0,class:`new-msgs`,onClick:r[4]||=e=>mn(!0)},[r[16]||=h(`i`,{class:`pi pi-arrow-down`},null,-1),j(` `+k(X.value)+` `+k(N(P)(`newMessages`)),1)])):M(``,!0),h(`form`,{class:`composer`,onSubmit:b(Yt,[`prevent`])},[l(N(g),{ref_key:`composerInput`,ref:qt,modelValue:q.value,"onUpdate:modelValue":r[5]||=e=>q.value=e,placeholder:N(P)(`placeholder`),disabled:N(L).sending.value,rows:`1`,"auto-resize":``,onKeydown:ie(Xt,[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`]),l(N(o),{type:`submit`,label:N(P)(`send`),disabled:N(L).sending.value||!q.value.trim()},null,8,[`label`,`disabled`])],32),N(L).error.value?(i(),v(`p`,We,k(N(L).error.value),1)):M(``,!0)],64)):(i(),v(`div`,Ge,k(N(P)(`pickChannel`)),1))]),l(N(t),{visible:kt.value,"onUpdate:visible":r[8]||=e=>kt.value=e,header:N(P)(`createChannel`),modal:``,style:{width:`26rem`}},{default:y(()=>[h(`form`,{class:`dlg-form`,onSubmit:b(Ut,[`prevent`])},[h(`div`,Ke,[r[17]||=h(`span`,null,`#`,-1),l(N(O),{modelValue:H.value,"onUpdate:modelValue":r[6]||=e=>H.value=e,placeholder:N(P)(`channelName`)},null,8,[`modelValue`,`placeholder`])]),h(`label`,qe,[x(h(`input`,{"onUpdate:modelValue":r[7]||=e=>Nt.value=e,type:`checkbox`},null,512),[[ne,Nt.value]]),h(`span`,null,[h(`strong`,null,k(N(P)(`private`)),1),j(` · `+k(N(P)(`privateHint`)),1)])]),l(N(o),{type:`submit`,label:N(P)(`create`),disabled:!H.value.trim()},null,8,[`label`,`disabled`])],32)]),_:1},8,[`visible`,`header`]),l(N(t),{visible:At.value,"onUpdate:visible":r[9]||=e=>At.value=e,header:N(P)(`browse`),modal:``,style:{width:`26rem`}},{default:y(()=>[U.value.length?(i(),v(`ul`,Ye,[(i(!0),v(E,null,f(U.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:`pick-item`,onClick:t=>Wt(e.id)},[h(`span`,Ze,`# `+k(e.name),1),h(`span`,Qe,k(N(P)(`join`)),1)],8,Xe)]))),128))])):(i(),v(`p`,Je,k(N(P)(`noBrowse`)),1))]),_:1},8,[`visible`,`header`]),l(N(t),{visible:jt.value,"onUpdate:visible":r[11]||=e=>jt.value=e,header:N(P)(`newDm`),modal:``,style:{width:`26rem`}},{default:y(()=>[wt.value.length?(i(),v(E,{key:1},[h(`p`,et,k(N(P)(`dmHint`)),1),l(N(T),{class:`search-field`},{default:y(()=>[l(N(re),{class:`pi pi-search`}),l(N(O),{modelValue:K.value,"onUpdate:modelValue":r[10]||=e=>K.value=e,placeholder:N(P)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),It.value.length?(i(),v(`ul`,nt,[(i(!0),v(E,null,f(It.value,e=>(i(),v(`li`,{key:e.userId},[h(`button`,{class:C([`pick-item`,{selected:G.value.includes(e.userId)}]),onClick:t=>Ht(e.userId)},[h(`span`,it,k(e.name.charAt(0).toUpperCase()),1),h(`span`,at,k(e.name),1),G.value.includes(e.userId)?(i(),v(`i`,ot)):M(``,!0)],10,rt)]))),128))])):(i(),v(`p`,tt,k(N(P)(`noMatch`)),1)),l(N(o),{class:`dlg-cta`,label:G.value.length>1?N(P)(`startGroup`,{count:G.value.length}):N(P)(`startDm`),disabled:!G.value.length,onClick:Gt},null,8,[`label`,`disabled`])],64)):(i(),v(`p`,$e,k(N(P)(`noMembers`)),1))]),_:1},8,[`visible`,`header`]),l(N(t),{visible:Mt.value,"onUpdate:visible":r[13]||=e=>Mt.value=e,header:N(P)(`invite`),modal:``,style:{width:`26rem`}},{default:y(()=>[Ot.value.length?(i(),v(E,{key:1},[l(N(T),{class:`search-field`},{default:y(()=>[l(N(re),{class:`pi pi-search`}),l(N(O),{modelValue:K.value,"onUpdate:modelValue":r[12]||=e=>K.value=e,placeholder:N(P)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),Ft.value.length?(i(),v(`ul`,lt,[(i(!0),v(E,null,f(Ft.value,e=>(i(),v(`li`,{key:e.userId},[h(`button`,{class:C([`pick-item`,{selected:W.value.includes(e.userId)}]),onClick:t=>Vt(e.userId)},[h(`span`,dt,k(e.name.charAt(0).toUpperCase()),1),h(`span`,ft,k(e.name),1),W.value.includes(e.userId)?(i(),v(`i`,pt)):M(``,!0)],10,ut)]))),128))])):(i(),v(`p`,ct,k(N(P)(`noMatch`)),1)),l(N(o),{class:`dlg-cta`,label:W.value.length?N(P)(`addSelected`,{count:W.value.length}):N(P)(`addPeople`),disabled:!W.value.length,onClick:Kt},null,8,[`label`,`disabled`])],64)):(i(),v(`p`,st,k(N(P)(`noInvitable`)),1))]),_:1},8,[`visible`,`header`])]))}}),[[`__scopeId`,`data-v-3b7d8123`]]),R={key:0,class:`stc-empty`},z={key:1,class:`stc-form`},gt={key:0,class:`stc-field`},_t={class:`stc-field`},vt={class:`stc-preview-label`},yt={key:0,class:`stc-trunc`},bt={class:`stc-preview`},xt=ee(n({__name:`SendToChatDialog`,props:{client:{},t:{},currentUserId:{default:void 0},organizations:{default:()=>[]},orgId:{default:``},lockOrganization:{type:Boolean,default:!1},maxLength:{default:4e3}},emits:[`sent`],setup(n,{expose:r,emit:a}){let s=n,ee=a,u=s.t,te=S(()=>s.client),d=e(!1),f=e(``),p=e(s.orgId),m=e(``),g=e(!1),_=e(null),b=e(!1),x=e([]),C=e([]),ne=S(()=>f.value.length>s.maxLength),T=S(()=>ne.value?`${f.value.slice(0,s.maxLength-20)}\n… (${u(`truncated`)})`:f.value);function E(e){return C.value.find(t=>t.userId===e)?.name??`?`}function O(e){let t=e.memberIds.filter(e=>e!==s.currentUserId);return t.length?t.map(E).join(`, `):`?`}let re=S(()=>{let e=x.value.filter(e=>e.kind===`channel`).map(e=>({id:e.id,label:`${e.isPrivate?`🔒`:`#`} ${e.name}`})),t=x.value.filter(e=>e.kind===`dm`).map(e=>({id:e.id,label:O(e)})),n=[];return e.length&&n.push({label:u(`channels`),items:e}),t.length&&n.push({label:u(`directMessages`),items:t}),n});async function ie(e){if(x.value=[],C.value=[],m.value=``,e){b.value=!0;try{let[t,n]=await Promise.all([te.value.$fetch(`/chat/channel/list`,{method:`GET`,query:{organizationId:e}}),te.value.organization.getFullOrganization({query:{organizationId:e}})]);x.value=t?.data?.channels??[],!n.error&&n.data&&(C.value=(n.data.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`})))}finally{b.value=!1}}}D(p,e=>{ie(e)}),D(()=>s.orgId,e=>{e&&s.lockOrganization&&(p.value=e)});async function P(){if(!(!m.value||!T.value.trim())){g.value=!0,_.value=null;try{if((await te.value.$fetch(`/chat/message/send`,{method:`POST`,body:{channelId:m.value,content:T.value}}))?.error)throw Error(u(`failed`));ee(`sent`,m.value),d.value=!1}catch(e){_.value=e.message||u(`failed`)}finally{g.value=!1}}}function ae(e){if(f.value=e,_.value=null,m.value=``,d.value=!0,!s.currentUserId)return;if(s.lockOrganization||p.value){let e=s.lockOrganization?s.orgId:p.value;p.value=e,ie(e);return}let t=s.organizations[0];t&&(p.value=t.id)}return r({open:ae}),(e,r)=>(i(),A(N(t),{visible:d.value,"onUpdate:visible":r[3]||=e=>d.value=e,header:N(u)(`title`),modal:``,style:{width:`30rem`}},{footer:y(()=>[l(N(o),{label:N(u)(`cancel`),text:``,severity:`secondary`,disabled:g.value,onClick:r[2]||=e=>d.value=!1},null,8,[`label`,`disabled`]),n.currentUserId?(i(),A(N(o),{key:0,label:N(u)(`send`),icon:`pi pi-send`,loading:g.value,disabled:!m.value,onClick:P},null,8,[`label`,`loading`,`disabled`])):M(``,!0)]),default:y(()=>[n.currentUserId?(i(),v(`div`,z,[n.lockOrganization?M(``,!0):(i(),v(`div`,gt,[h(`label`,null,k(N(u)(`org`)),1),l(N(c),{modelValue:p.value,"onUpdate:modelValue":r[0]||=e=>p.value=e,options:n.organizations,"option-label":`name`,"option-value":`id`,placeholder:N(u)(`orgPlaceholder`),class:`stc-select`},null,8,[`modelValue`,`options`,`placeholder`])])),h(`div`,_t,[h(`label`,null,k(N(u)(`target`)),1),l(N(c),{modelValue:m.value,"onUpdate:modelValue":r[1]||=e=>m.value=e,options:re.value,"option-label":`label`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,placeholder:N(u)(`targetPlaceholder`),disabled:!p.value||b.value,loading:b.value,class:`stc-select`,filter:``},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`loading`])]),h(`p`,vt,[j(k(N(u)(`preview`))+` `,1),ne.value?(i(),v(`span`,yt,`· `+k(N(u)(`truncated`)),1)):M(``,!0)]),h(`pre`,bt,k(T.value),1),_.value?(i(),A(N(w),{key:1,severity:`error`,closable:!1},{default:y(()=>[j(k(_.value),1)]),_:1})):M(``,!0)])):(i(),v(`div`,R,k(N(u)(`notConnected`)),1))]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-41752608`]]);export{I as i,L as n,ce as r,xt as t};
1
+ import{Aa as e,An as t,Di as n,Fa as r,Ji as i,Li as a,Mn as o,Oa as s,On as ee,Qt as c,Ti as l,U as u,W as te,Wi as d,Xi as f,Zi as p,_a as m,_i as h,an as g,b as _,bi as v,da as y,di as b,fa as x,gi as S,ha as C,ii as ne,mn as w,nn as T,pi as E,sa as D,sn as O,tn as re,ui as ie,va as k,vi as A,wi as j,yi as M,za as N}from"./index-BPOeXMH7.js";var P=`runeya.chat.sound`;const ae=e(oe()??!0);function oe(){if(typeof localStorage>`u`)return null;let e=localStorage.getItem(P);return e===null?null:e===`1`}function se(e){ae.value=e;try{localStorage.setItem(P,e?`1`:`0`)}catch{}}async function ce(e){try{let t=(await e.$fetch(`/user/prefs`,{method:`GET`}))?.data?.prefs?.chatSound;typeof t==`boolean`&&se(t)}catch{}}function le(e,t){e.$fetch(`/user/prefs`,{method:`POST`,body:{prefs:{chatSound:t}}})}var F=null;function I(){if(!(!ae.value||typeof window>`u`))try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;F??=new e,F.state===`suspended`&&F.resume();let t=F.currentTime,n=F.createOscillator(),r=F.createGain();n.type=`sine`,n.frequency.setValueAtTime(660,t),n.frequency.exponentialRampToValueAtTime(880,t+.08),r.gain.setValueAtTime(1e-4,t),r.gain.exponentialRampToValueAtTime(.16,t+.012),r.gain.exponentialRampToValueAtTime(1e-4,t+.25),n.connect(r).connect(F.destination),n.start(t),n.stop(t+.26)}catch{}}var ue={class:`chat`},de={class:`sidebar`},fe={class:`group`},pe={class:`group-head`},me={class:`acts`},he={class:`list`},ge=[`onClick`],_e={class:`hash`},ve={class:`name`},ye={key:0,class:`badge`},be={class:`group`},xe={class:`group-head`},Se={class:`list`},Ce=[`onClick`],we={class:`name`},Te={key:0,class:`badge`},Ee={class:`main`},De={class:`retention-banner__text`},Oe={class:`retention-banner__cta`},ke={class:`pane-head`},Ae={key:0},je={class:`head-actions`},Me={class:`sel-count`},Ne={key:0,class:`loading-older`},Pe={key:1,class:`empty`},Fe=[`onClick`],Ie={key:0,class:`pi pi-check`},Le=[`src`,`onError`],Re={class:`msg-body`},ze={class:`msg-head`},Be={class:`msg-author`},Ve={class:`msg-time`},He=[`innerHTML`],Ue={key:0,class:`msg-cards`},We={key:1,class:`error`},Ge={key:2,class:`placeholder`},Ke={class:`hash-input`},qe={class:`toggle-row`},Je={key:0,class:`dlg-empty`},Ye={key:1,class:`pick-list`},Xe=[`onClick`],Ze={class:`pick-name`},Qe={class:`join`},$e={key:0,class:`dlg-empty`},et={class:`dlg-hint`},tt={key:0,class:`dlg-empty`},nt={key:1,class:`pick-list`},rt=[`onClick`],it={class:`pick-avatar`},at={class:`pick-name`},ot={key:0,class:`pi pi-check picked`},st={key:0,class:`dlg-empty`},ct={key:0,class:`dlg-empty`},lt={key:1,class:`pick-list`},ut=[`onClick`],dt={class:`pick-avatar`},ft={class:`pick-name`},pt={key:0,class:`pi pi-check picked`},mt=80,ht=120,L=ee(n({__name:`ChatPanel`,props:{client:{},orgId:{},cloudApiBaseUrl:{},streamUrl:{type:Function,default:void 0},currentUserId:{default:void 0},members:{},t:{},enableSelectToAi:{type:Boolean,default:!1},notifyOnUnread:{type:Boolean,default:!0},internalOrigins:{default:()=>[]},cardColumn:{type:Function,default:void 0}},emits:[`channel-read`,`ai-context`,`internal-link`,`upgrade`,`card-refs`],setup(n,{emit:ee}){let c=n,w=ee,P=c.t,oe=r(c,`orgId`),F=S(()=>c.client),L=_(F.value,oe,c.streamUrl?{streamUrl:c.streamUrl}:{baseURL:c.cloudApiBaseUrl}),R=S(()=>c.currentUserId),z=S(()=>c.members),gt=e(null);function _t(e){return new Date(e).toLocaleDateString(void 0,{year:`numeric`,month:`long`,day:`numeric`})}async function vt(e){if(gt.value=null,e)try{gt.value=(await F.value.$fetch(`/chat/retention/status`,{method:`GET`,query:{organizationId:e}})).data??null}catch{}}D(oe,e=>void vt(e),{immediate:!0});let yt=S(()=>{let e=gt.value;return e?e.capped&&e.enforcing?{text:P(`retention.enforcing`,{days:e.retentionDays}),enforcing:!0}:e.capped&&e.cutoffAt?{text:P(`retention.grace`,{date:_t(e.cutoffAt),days:e.retentionDays}),enforcing:!1}:e.pending?{text:P(`retention.pending`,{date:_t(e.pending.effectiveAt),days:e.pending.retentionDays}),enforcing:!1}:null:null}),bt=e=>`runeya.chat.lastChannel.${e}`;D(()=>L.activeChannelId.value,e=>{if(e&&c.orgId)try{localStorage.setItem(bt(c.orgId),e)}catch{}});let xt=``;D([()=>c.orgId,L.channels],()=>{let e=c.orgId;if(!e||xt===e||!L.channels.value.length||(xt=e,L.activeChannelId.value))return;let t=null;try{t=localStorage.getItem(bt(e))}catch{}t&&L.channels.value.some(e=>e.id===t)&&L.selectChannel(t)},{immediate:!0});let St=S(()=>L.channels.value.filter(e=>e.kind===`channel`)),Ct=S(()=>L.channels.value.filter(e=>e.kind===`dm`)),B=S(()=>L.channels.value.find(e=>e.id===L.activeChannelId.value)??null),wt=S(()=>z.value.filter(e=>e.userId!==R.value));function Tt(e){return z.value.find(t=>t.userId===e)?.name??P(`someone`)}function Et(e){let t=e.memberIds.filter(e=>e!==R.value);return t.length?t.map(Tt).join(`, `):P(`someone`)}function Dt(e){return e.kind===`dm`?Et(e):e.name}let Ot=S(()=>{let e=B.value;return e?z.value.filter(t=>!e.memberIds.includes(t.userId)):[]}),V=e(null),kt=S({get:()=>V.value===`create`,set:e=>{V.value=e?`create`:null}}),At=S({get:()=>V.value===`browse`,set:e=>{V.value=e?`browse`:null}}),jt=S({get:()=>V.value===`newdm`,set:e=>{V.value=e?`newdm`:null}}),Mt=S({get:()=>V.value===`invite`,set:e=>{V.value=e?`invite`:null}}),H=e(``),Nt=e(!1),U=e([]),W=e([]),G=e([]),K=e(``);function Pt(e){let t=K.value.trim().toLowerCase();return!t||e.name.toLowerCase().includes(t)||e.email.toLowerCase().includes(t)}let Ft=S(()=>Ot.value.filter(Pt)),It=S(()=>wt.value.filter(Pt));function Lt(){V.value=null}async function Rt(){U.value=await L.browseChannels(),V.value=`browse`}function zt(){W.value=[],K.value=``,V.value=`invite`}function Bt(){G.value=[],K.value=``,V.value=`newdm`}function Vt(e){W.value=W.value.includes(e)?W.value.filter(t=>t!==e):[...W.value,e]}function Ht(e){G.value=G.value.includes(e)?G.value.filter(t=>t!==e):[...G.value,e]}async function Ut(){await L.createChannel(H.value,Nt.value)&&(H.value=``,Nt.value=!1,Lt())}async function Wt(e){await L.joinChannel(e)&&(U.value=U.value.filter(t=>t.id!==e),Lt())}async function Gt(){if(!G.value.length)return;let e=G.value;Lt(),await L.openDm(e)}async function Kt(){let e=B.value;if(!(!e||!W.value.length)){for(let t of W.value)await L.inviteToChannel(e.id,t);W.value=[],Lt(),await L.reloadChannels()}}let q=e(``),qt=e(null);async function Jt(){await a();let e=qt.value?.$el;e instanceof HTMLTextAreaElement?e.focus():e?.querySelector(`textarea`)?.focus()}async function Yt(){await L.send(q.value)&&(q.value=``),await Jt()}function Xt(e){e.shiftKey||e.isComposing||(e.preventDefault(),Yt())}D(()=>L.activeChannelId.value,e=>{e&&Jt()});let J=ae;d(()=>{ce(F.value)});function Zt(){se(!J.value),le(F.value,J.value),J.value&&I()}let Qt=0,$t=!1;D(()=>Object.values(L.unread.value).reduce((e,t)=>e+t,0),e=>{c.notifyOnUnread&&$t&&e>Qt&&I(),Qt=e,$t=!0},{immediate:!0});let en=typeof window<`u`?window.location.origin:``,tn={ALLOWED_TAGS:[`p`,`br`,`strong`,`b`,`em`,`i`,`u`,`s`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`,`h1`,`h2`,`h3`,`h4`,`hr`],ALLOWED_ATTR:[`href`,`title`]};function nn(e){let t=te.parse(e??``,{async:!1,gfm:!0,breaks:!0});return u.sanitize(t,tn)}let rn=/\/app\/[^/\s)]+\/kanban\/([^/\s)]+)\/card\/([^/\s)?#]+)/g;function an(e){let t=[],n=new Set;for(let r of(e??``).matchAll(rn)){let e=decodeURIComponent(r[1]??``),i=decodeURIComponent(r[2]??``),a=`${e}:${i}`;!e||!i||n.has(a)||(n.add(a),t.push({boardId:e,cardId:i}))}return t}function on(e){return c.cardColumn?an(e).map(e=>({key:`${e.boardId}:${e.cardId}`,column:c.cardColumn?.(e.boardId,e.cardId)??``})).filter(e=>e.column):[]}D(()=>L.messages.value.map(e=>e.content).join(`\0`),()=>{let e=[],t=new Set;for(let n of L.messages.value)for(let r of an(n.content)){let n=`${r.boardId}:${r.cardId}`;t.has(n)||(t.add(n),e.push(r))}w(`card-refs`,e)},{immediate:!0});function sn(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);if(!t)return;e.preventDefault(),e.stopPropagation();let n=[en,...c.internalOrigins].filter(Boolean).find(e=>t===e||t.startsWith(`${e}/`));n?w(`internal-link`,t.slice(n.length)||`/`,n):/^https?:\/\//i.test(t)&&window.open(t,`_blank`,`noopener,noreferrer`)}function cn(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function ln(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}let un=s(new Set);function dn(e){return`${c.cloudApiBaseUrl}/api/avatar/${e}`}let Y=e(null),X=e(0),Z=0;function fn(){let e=Y.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<=mt:!0}function pn(){let e=L.activeChannelId.value;e&&(L.markRead(e),L.unread.value[e]&&(L.unread.value={...L.unread.value,[e]:0}),w(`channel-read`,e))}function mn(e=!1){let t=Y.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),X.value=0,pn())}let hn=!1;async function gn(){let e=Y.value;if(!e||!L.hasMore.value||L.loadingOlder.value)return;hn=!0;let t=e.scrollHeight,n=e.scrollTop;await L.loadOlder(),await a(),e.scrollTop=n+(e.scrollHeight-t),hn=!1}function _n(){let e=Y.value;e&&e.scrollTop<ht&&gn(),fn()&&(X.value=0,pn())}D(()=>L.messages.value.length,async e=>{if(hn){Z=e;return}if(e<Z){Z=e,X.value=0;return}let t=e-Z,n=L.messages.value.at(-1)?.userId===R.value,r=Z===0||n||fn();if(Z>0&&t>0&&!n&&I(),Z=e,await a(),r)mn();else if(t>0){X.value+=t;let e=L.activeChannelId.value;e&&(L.unread.value={...L.unread.value,[e]:(L.unread.value[e]??0)+t})}}),D(()=>L.activeChannelId.value,()=>{Z=0,X.value=0});let Q=e(!1),$=s(new Set);function vn(e){$.has(e)?$.delete(e):$.add(e)}function yn(){Q.value=!1,$.clear()}D(()=>L.activeChannelId.value,yn);function bn(){let e=L.messages.value.filter(e=>$.has(e.id));e.length&&(w(`ai-context`,{title:B.value?Dt(B.value):``,messages:e}),yn())}return(e,r)=>(i(),v(`div`,ue,[h(`aside`,de,[p(e.$slots,`sidebar-top`,{},void 0,!0),h(`div`,fe,[h(`div`,pe,[h(`span`,null,k(N(P)(`channels`)),1),h(`span`,me,[l(N(o),{icon:`pi pi-search`,text:``,rounded:``,size:`small`,onClick:Rt}),l(N(o),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:r[0]||=e=>V.value=`create`})])]),h(`ul`,he,[(i(!0),v(E,null,f(St.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:C([`chan`,{active:e.id===N(L).activeChannelId.value}]),onClick:t=>N(L).selectChannel(e.id)},[h(`span`,_e,k(e.isPrivate?`🔒`:`#`),1),h(`span`,ve,k(e.name),1),N(L).unread.value[e.id]?(i(),v(`span`,ye,k(N(L).unread.value[e.id]),1)):M(``,!0)],10,ge)]))),128))])]),h(`div`,be,[h(`div`,xe,[h(`span`,null,k(N(P)(`directMessages`)),1),l(N(o),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:Bt})]),h(`ul`,Se,[(i(!0),v(E,null,f(Ct.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:C([`chan`,{active:e.id===N(L).activeChannelId.value}]),onClick:t=>N(L).selectChannel(e.id)},[h(`span`,we,k(Et(e)),1),N(L).unread.value[e.id]?(i(),v(`span`,Te,k(N(L).unread.value[e.id]),1)):M(``,!0)],10,Ce)]))),128))])])]),h(`div`,Ee,[yt.value?(i(),v(`a`,{key:0,class:C([`retention-banner`,{enforcing:yt.value.enforcing}]),href:`#`,onClick:r[1]||=b(e=>w(`upgrade`),[`prevent`])},[h(`span`,De,k(yt.value.text),1),h(`span`,Oe,k(N(P)(`retention.cta`)),1)],2)):M(``,!0),B.value?(i(),v(E,{key:1},[h(`header`,ke,[h(`h2`,null,[B.value.kind===`channel`?(i(),v(`span`,Ae,k(B.value.isPrivate?`🔒`:`#`),1)):M(``,!0),j(k(Dt(B.value)),1)]),h(`span`,je,[l(N(o),{icon:N(J)?`pi pi-volume-up`:`pi pi-volume-off`,text:``,rounded:``,size:`small`,title:N(J)?N(P)(`soundOn`):N(P)(`soundOff`),onClick:Zt},null,8,[`icon`,`title`]),n.enableSelectToAi&&Q.value?(i(),v(E,{key:0},[h(`span`,Me,k(N(P)(`selectedCount`,{count:$.size})),1),l(N(o),{label:N(P)(`sendToAi`),icon:`pi pi-sparkles`,size:`small`,disabled:!$.size,onClick:bn},null,8,[`label`,`disabled`]),l(N(o),{label:N(P)(`cancel`),size:`small`,text:``,onClick:yn},null,8,[`label`])],64)):(i(),v(E,{key:1},[n.enableSelectToAi?(i(),A(N(o),{key:0,label:N(P)(`select`),icon:`pi pi-check-square`,size:`small`,text:``,onClick:r[2]||=e=>Q.value=!0},null,8,[`label`])):M(``,!0),B.value.kind===`channel`?(i(),A(N(o),{key:1,label:N(P)(`invite`),size:`small`,outlined:``,onClick:zt},null,8,[`label`])):M(``,!0)],64))])]),h(`div`,{ref_key:`listEl`,ref:Y,class:`thread`,onScroll:_n},[N(L).loadingOlder.value?(i(),v(`div`,Ne,[...r[14]||=[h(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):M(``,!0),!N(L).messages.value.length&&!N(L).loading.value?(i(),v(`p`,Pe,k(N(P)(`empty`)),1)):M(``,!0),(i(!0),v(E,null,f(N(L).messages.value,e=>(i(),v(`div`,{key:e.id,class:C([`msg`,{selectable:n.enableSelectToAi&&Q.value,selected:$.has(e.id)}]),onClick:t=>n.enableSelectToAi&&Q.value&&vn(e.id)},[n.enableSelectToAi&&Q.value?(i(),v(`span`,{key:0,class:C([`msg-check`,{on:$.has(e.id)}])},[$.has(e.id)?(i(),v(`i`,Ie)):M(``,!0)],2)):M(``,!0),h(`div`,{class:`msg-avatar`,style:m(ln(e.userId))},[un.has(e.userId)?(i(),v(E,{key:1},[j(k(e.userName.charAt(0).toUpperCase()),1)],64)):(i(),v(`img`,{key:0,src:dn(e.userId),alt:``,onError:t=>un.add(e.userId)},null,40,Le))],4),h(`div`,Re,[h(`div`,ze,[h(`span`,Be,k(e.userName),1),h(`span`,Ve,k(cn(e.createdAt)),1)]),h(`div`,{class:`msg-content`,innerHTML:nn(e.content),onClick:r[3]||=e=>sn(e)},null,8,He),on(e.content).length?(i(),v(`div`,Ue,[(i(!0),v(E,null,f(on(e.content),e=>(i(),v(`span`,{key:e.key,class:`card-col`},[r[15]||=h(`i`,{class:`pi pi-list`},null,-1),j(k(N(P)(`cardColumn`,{column:e.column})),1)]))),128))])):M(``,!0)])],10,Fe))),128))],544),X.value>0?(i(),v(`button`,{key:0,class:`new-msgs`,onClick:r[4]||=e=>mn(!0)},[r[16]||=h(`i`,{class:`pi pi-arrow-down`},null,-1),j(` `+k(X.value)+` `+k(N(P)(`newMessages`)),1)])):M(``,!0),h(`form`,{class:`composer`,onSubmit:b(Yt,[`prevent`])},[l(N(g),{ref_key:`composerInput`,ref:qt,modelValue:q.value,"onUpdate:modelValue":r[5]||=e=>q.value=e,placeholder:N(P)(`placeholder`),disabled:N(L).sending.value,rows:`1`,"auto-resize":``,onKeydown:ie(Xt,[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`]),l(N(o),{type:`submit`,label:N(P)(`send`),disabled:N(L).sending.value||!q.value.trim()},null,8,[`label`,`disabled`])],32),N(L).error.value?(i(),v(`p`,We,k(N(L).error.value),1)):M(``,!0)],64)):(i(),v(`div`,Ge,k(N(P)(`pickChannel`)),1))]),l(N(t),{visible:kt.value,"onUpdate:visible":r[8]||=e=>kt.value=e,header:N(P)(`createChannel`),modal:``,style:{width:`26rem`}},{default:y(()=>[h(`form`,{class:`dlg-form`,onSubmit:b(Ut,[`prevent`])},[h(`div`,Ke,[r[17]||=h(`span`,null,`#`,-1),l(N(O),{modelValue:H.value,"onUpdate:modelValue":r[6]||=e=>H.value=e,placeholder:N(P)(`channelName`)},null,8,[`modelValue`,`placeholder`])]),h(`label`,qe,[x(h(`input`,{"onUpdate:modelValue":r[7]||=e=>Nt.value=e,type:`checkbox`},null,512),[[ne,Nt.value]]),h(`span`,null,[h(`strong`,null,k(N(P)(`private`)),1),j(` · `+k(N(P)(`privateHint`)),1)])]),l(N(o),{type:`submit`,label:N(P)(`create`),disabled:!H.value.trim()},null,8,[`label`,`disabled`])],32)]),_:1},8,[`visible`,`header`]),l(N(t),{visible:At.value,"onUpdate:visible":r[9]||=e=>At.value=e,header:N(P)(`browse`),modal:``,style:{width:`26rem`}},{default:y(()=>[U.value.length?(i(),v(`ul`,Ye,[(i(!0),v(E,null,f(U.value,e=>(i(),v(`li`,{key:e.id},[h(`button`,{class:`pick-item`,onClick:t=>Wt(e.id)},[h(`span`,Ze,`# `+k(e.name),1),h(`span`,Qe,k(N(P)(`join`)),1)],8,Xe)]))),128))])):(i(),v(`p`,Je,k(N(P)(`noBrowse`)),1))]),_:1},8,[`visible`,`header`]),l(N(t),{visible:jt.value,"onUpdate:visible":r[11]||=e=>jt.value=e,header:N(P)(`newDm`),modal:``,style:{width:`26rem`}},{default:y(()=>[wt.value.length?(i(),v(E,{key:1},[h(`p`,et,k(N(P)(`dmHint`)),1),l(N(T),{class:`search-field`},{default:y(()=>[l(N(re),{class:`pi pi-search`}),l(N(O),{modelValue:K.value,"onUpdate:modelValue":r[10]||=e=>K.value=e,placeholder:N(P)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),It.value.length?(i(),v(`ul`,nt,[(i(!0),v(E,null,f(It.value,e=>(i(),v(`li`,{key:e.userId},[h(`button`,{class:C([`pick-item`,{selected:G.value.includes(e.userId)}]),onClick:t=>Ht(e.userId)},[h(`span`,it,k(e.name.charAt(0).toUpperCase()),1),h(`span`,at,k(e.name),1),G.value.includes(e.userId)?(i(),v(`i`,ot)):M(``,!0)],10,rt)]))),128))])):(i(),v(`p`,tt,k(N(P)(`noMatch`)),1)),l(N(o),{class:`dlg-cta`,label:G.value.length>1?N(P)(`startGroup`,{count:G.value.length}):N(P)(`startDm`),disabled:!G.value.length,onClick:Gt},null,8,[`label`,`disabled`])],64)):(i(),v(`p`,$e,k(N(P)(`noMembers`)),1))]),_:1},8,[`visible`,`header`]),l(N(t),{visible:Mt.value,"onUpdate:visible":r[13]||=e=>Mt.value=e,header:N(P)(`invite`),modal:``,style:{width:`26rem`}},{default:y(()=>[Ot.value.length?(i(),v(E,{key:1},[l(N(T),{class:`search-field`},{default:y(()=>[l(N(re),{class:`pi pi-search`}),l(N(O),{modelValue:K.value,"onUpdate:modelValue":r[12]||=e=>K.value=e,placeholder:N(P)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),Ft.value.length?(i(),v(`ul`,lt,[(i(!0),v(E,null,f(Ft.value,e=>(i(),v(`li`,{key:e.userId},[h(`button`,{class:C([`pick-item`,{selected:W.value.includes(e.userId)}]),onClick:t=>Vt(e.userId)},[h(`span`,dt,k(e.name.charAt(0).toUpperCase()),1),h(`span`,ft,k(e.name),1),W.value.includes(e.userId)?(i(),v(`i`,pt)):M(``,!0)],10,ut)]))),128))])):(i(),v(`p`,ct,k(N(P)(`noMatch`)),1)),l(N(o),{class:`dlg-cta`,label:W.value.length?N(P)(`addSelected`,{count:W.value.length}):N(P)(`addPeople`),disabled:!W.value.length,onClick:Kt},null,8,[`label`,`disabled`])],64)):(i(),v(`p`,st,k(N(P)(`noInvitable`)),1))]),_:1},8,[`visible`,`header`])]))}}),[[`__scopeId`,`data-v-3b7d8123`]]),R={key:0,class:`stc-empty`},z={key:1,class:`stc-form`},gt={key:0,class:`stc-field`},_t={class:`stc-field`},vt={class:`stc-preview-label`},yt={key:0,class:`stc-trunc`},bt={class:`stc-preview`},xt=ee(n({__name:`SendToChatDialog`,props:{client:{},t:{},currentUserId:{default:void 0},organizations:{default:()=>[]},orgId:{default:``},lockOrganization:{type:Boolean,default:!1},maxLength:{default:4e3}},emits:[`sent`],setup(n,{expose:r,emit:a}){let s=n,ee=a,u=s.t,te=S(()=>s.client),d=e(!1),f=e(``),p=e(s.orgId),m=e(``),g=e(!1),_=e(null),b=e(!1),x=e([]),C=e([]),ne=S(()=>f.value.length>s.maxLength),T=S(()=>ne.value?`${f.value.slice(0,s.maxLength-20)}\n… (${u(`truncated`)})`:f.value);function E(e){return C.value.find(t=>t.userId===e)?.name??`?`}function O(e){let t=e.memberIds.filter(e=>e!==s.currentUserId);return t.length?t.map(E).join(`, `):`?`}let re=S(()=>{let e=x.value.filter(e=>e.kind===`channel`).map(e=>({id:e.id,label:`${e.isPrivate?`🔒`:`#`} ${e.name}`})),t=x.value.filter(e=>e.kind===`dm`).map(e=>({id:e.id,label:O(e)})),n=[];return e.length&&n.push({label:u(`channels`),items:e}),t.length&&n.push({label:u(`directMessages`),items:t}),n});async function ie(e){if(x.value=[],C.value=[],m.value=``,e){b.value=!0;try{let[t,n]=await Promise.all([te.value.$fetch(`/chat/channel/list`,{method:`GET`,query:{organizationId:e}}),te.value.organization.getFullOrganization({query:{organizationId:e}})]);x.value=t?.data?.channels??[],!n.error&&n.data&&(C.value=(n.data.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`})))}finally{b.value=!1}}}D(p,e=>{ie(e)}),D(()=>s.orgId,e=>{e&&s.lockOrganization&&(p.value=e)});async function P(){if(!(!m.value||!T.value.trim())){g.value=!0,_.value=null;try{if((await te.value.$fetch(`/chat/message/send`,{method:`POST`,body:{channelId:m.value,content:T.value}}))?.error)throw Error(u(`failed`));ee(`sent`,m.value),d.value=!1}catch(e){_.value=e.message||u(`failed`)}finally{g.value=!1}}}function ae(e){if(f.value=e,_.value=null,m.value=``,d.value=!0,!s.currentUserId)return;if(s.lockOrganization||p.value){let e=s.lockOrganization?s.orgId:p.value;p.value=e,ie(e);return}let t=s.organizations[0];t&&(p.value=t.id)}return r({open:ae}),(e,r)=>(i(),A(N(t),{visible:d.value,"onUpdate:visible":r[3]||=e=>d.value=e,header:N(u)(`title`),modal:``,style:{width:`30rem`}},{footer:y(()=>[l(N(o),{label:N(u)(`cancel`),text:``,severity:`secondary`,disabled:g.value,onClick:r[2]||=e=>d.value=!1},null,8,[`label`,`disabled`]),n.currentUserId?(i(),A(N(o),{key:0,label:N(u)(`send`),icon:`pi pi-send`,loading:g.value,disabled:!m.value,onClick:P},null,8,[`label`,`loading`,`disabled`])):M(``,!0)]),default:y(()=>[n.currentUserId?(i(),v(`div`,z,[n.lockOrganization?M(``,!0):(i(),v(`div`,gt,[h(`label`,null,k(N(u)(`org`)),1),l(N(c),{modelValue:p.value,"onUpdate:modelValue":r[0]||=e=>p.value=e,options:n.organizations,"option-label":`name`,"option-value":`id`,placeholder:N(u)(`orgPlaceholder`),class:`stc-select`},null,8,[`modelValue`,`options`,`placeholder`])])),h(`div`,_t,[h(`label`,null,k(N(u)(`target`)),1),l(N(c),{modelValue:m.value,"onUpdate:modelValue":r[1]||=e=>m.value=e,options:re.value,"option-label":`label`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,placeholder:N(u)(`targetPlaceholder`),disabled:!p.value||b.value,loading:b.value,class:`stc-select`,filter:``},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`loading`])]),h(`p`,vt,[j(k(N(u)(`preview`))+` `,1),ne.value?(i(),v(`span`,yt,`· `+k(N(u)(`truncated`)),1)):M(``,!0)]),h(`pre`,bt,k(T.value),1),_.value?(i(),A(N(w),{key:1,severity:`error`,closable:!1},{default:y(()=>[j(k(_.value),1)]),_:1})):M(``,!0)])):(i(),v(`div`,R,k(N(u)(`notConnected`)),1))]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-41752608`]]);export{I as i,L as n,ce as r,xt as t};
@@ -1,4 +1,4 @@
1
- import{Aa as e,Ai as t,Ba as n,Bi as r,Di as i,Ea as a,Ji as o,Li as s,Na as c,Oi as l,On as u,Ti as d,Ua as f,Va as p,Wi as m,Xi as h,_a as g,_i as _,ba as v,bi as y,ca as b,di as x,er as S,gi as C,ha as w,mi as ee,pi as te,sa as T,va as ne,vi as re,yi as E,za as D}from"./index-pLefgbhx.js";import{n as O,t as k}from"./w3c-keyname-9KQ-4XZl.js";function A(e){this.content=e}A.prototype={constructor:A,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new A(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new A(n)},addToStart:function(e,t){return new A([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new A(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new A(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=A.from(e),e.size?new A(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=A.from(e),e.size?new A(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=A.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},A.from=function(e){if(e instanceof A)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new A(t)};var ie=A;function ae(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ce(e.charCodeAt(r-1))&&se(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ae(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function oe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ce(e.charCodeAt(i-1))&&se(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=oe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function se(e){return e>=56320&&e<57344}function ce(e){return e>=55296&&e<56320}var j=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ae(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return oe(this,e,t,n)}findIndex(e){if(e==0)return ue(0,e);if(e==this.size)return ue(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?ue(t+1,i):ue(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};j.empty=new j([],0);var le={index:0,offset:0};function ue(e,t){return le.index=e,le.offset=t,le}function de(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!de(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!de(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var M=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&de(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};M.none=[];var fe=class extends Error{},N=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=P(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(pe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(j.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};N.empty=new N(j.empty,0,0);function pe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(pe(a.content,t-i-1,n-i-1)))}function P(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=P(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function me(e,t,n){if(n.openStart>e.depth)throw new fe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new fe(`Inconsistent open depths`);return he(e,t,n,0)}function he(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=he(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return be(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Ce(n,e);return be(a,xe(e,i,o,t,r))}else return be(a,Se(e,t,r))}function ge(e,t){if(!t.type.compatibleContent(e.type))throw new fe(`Cannot join `+t.type.name+` onto `+e.type.name)}function _e(e,t,n){let r=e.node(n);return ge(r,t.node(n)),r}function ve(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ye(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ve(e.nodeAfter,r),a++));for(let e=a;e<o;e++)ve(i.child(e),r);t&&t.depth==n&&t.textOffset&&ve(t.nodeBefore,r)}function be(e,t){if(!e.type.validContent(t))throw new fe(`Invalid content for node `+e.type.name);return e.copy(t)}function xe(e,t,n,r,i){let a=e.depth>i&&_e(e,t,i+1),o=r.depth>i&&_e(n,r,i+1),s=[];return ye(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ge(a,o),ve(be(a,xe(e,t,n,r,i+1)),s)):(a&&ve(be(a,Se(e,t,i+1)),s),ye(t,n,i,s),o&&ve(be(o,Se(n,r,i+1)),s)),ye(r,null,i,s),new j(s)}function Se(e,t,n){let r=[];return ye(null,e,n,r),e.depth>n&&ve(be(_e(e,t,n+1),Se(e,t,n+1)),r),ye(t,null,n,r),new j(r)}function Ce(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(j.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var we=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Oe(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=De.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else De.set(t,r=new Te);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ee,i}},Te=class{constructor(){this.elts=[],this.i=0}},Ee=12,De=new WeakMap,Oe=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},ke=Object.create(null),Ae=class e{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||j.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&de(this.attrs,t||e.defaultAttrs||ke)&&M.sameSet(this.marks,n||M.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return N.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new N(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return me(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return we.resolveCached(this,e)}resolveNoCache(e){return we.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Me(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=j.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=j.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ae.prototype.text=void 0;var je=class e extends Ae{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Me(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Me(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ne=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Pe(t,n);if(r.next==null)return e.empty;let i=Fe(r);r.next&&r.err(`Unexpected trailing text`);let a=Ge(He(i));return Ke(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return j.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
1
+ import{Aa as e,Ai as t,Ba as n,Bi as r,Di as i,Ea as a,Ji as o,Li as s,Na as c,Oi as l,On as u,Ti as d,Ua as f,Va as p,Wi as m,Xi as h,_a as g,_i as _,ba as v,bi as y,ca as b,di as x,er as S,gi as C,ha as w,mi as ee,pi as te,sa as T,va as ne,vi as re,yi as E,za as D}from"./index-BPOeXMH7.js";import{n as O,t as k}from"./w3c-keyname-9KQ-4XZl.js";function A(e){this.content=e}A.prototype={constructor:A,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new A(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new A(n)},addToStart:function(e,t){return new A([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new A(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new A(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=A.from(e),e.size?new A(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=A.from(e),e.size?new A(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=A.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},A.from=function(e){if(e instanceof A)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new A(t)};var ie=A;function ae(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ce(e.charCodeAt(r-1))&&se(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ae(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function oe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ce(e.charCodeAt(i-1))&&se(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=oe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function se(e){return e>=56320&&e<57344}function ce(e){return e>=55296&&e<56320}var j=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ae(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return oe(this,e,t,n)}findIndex(e){if(e==0)return ue(0,e);if(e==this.size)return ue(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?ue(t+1,i):ue(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};j.empty=new j([],0);var le={index:0,offset:0};function ue(e,t){return le.index=e,le.offset=t,le}function de(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!de(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!de(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var M=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&de(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};M.none=[];var fe=class extends Error{},N=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=P(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(pe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(j.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};N.empty=new N(j.empty,0,0);function pe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(pe(a.content,t-i-1,n-i-1)))}function P(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=P(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function me(e,t,n){if(n.openStart>e.depth)throw new fe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new fe(`Inconsistent open depths`);return he(e,t,n,0)}function he(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=he(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return be(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Ce(n,e);return be(a,xe(e,i,o,t,r))}else return be(a,Se(e,t,r))}function ge(e,t){if(!t.type.compatibleContent(e.type))throw new fe(`Cannot join `+t.type.name+` onto `+e.type.name)}function _e(e,t,n){let r=e.node(n);return ge(r,t.node(n)),r}function ve(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ye(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ve(e.nodeAfter,r),a++));for(let e=a;e<o;e++)ve(i.child(e),r);t&&t.depth==n&&t.textOffset&&ve(t.nodeBefore,r)}function be(e,t){if(!e.type.validContent(t))throw new fe(`Invalid content for node `+e.type.name);return e.copy(t)}function xe(e,t,n,r,i){let a=e.depth>i&&_e(e,t,i+1),o=r.depth>i&&_e(n,r,i+1),s=[];return ye(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ge(a,o),ve(be(a,xe(e,t,n,r,i+1)),s)):(a&&ve(be(a,Se(e,t,i+1)),s),ye(t,n,i,s),o&&ve(be(o,Se(n,r,i+1)),s)),ye(r,null,i,s),new j(s)}function Se(e,t,n){let r=[];return ye(null,e,n,r),e.depth>n&&ve(be(_e(e,t,n+1),Se(e,t,n+1)),r),ye(t,null,n,r),new j(r)}function Ce(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(j.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var we=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Oe(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=De.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else De.set(t,r=new Te);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ee,i}},Te=class{constructor(){this.elts=[],this.i=0}},Ee=12,De=new WeakMap,Oe=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},ke=Object.create(null),Ae=class e{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||j.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&de(this.attrs,t||e.defaultAttrs||ke)&&M.sameSet(this.marks,n||M.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return N.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new N(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return me(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return we.resolveCached(this,e)}resolveNoCache(e){return we.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Me(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=j.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=j.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ae.prototype.text=void 0;var je=class e extends Ae{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Me(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Me(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ne=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Pe(t,n);if(r.next==null)return e.empty;let i=Fe(r);r.next&&r.err(`Unexpected trailing text`);let a=Ge(He(i));return Ke(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return j.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
2
2
  `)}};Ne.empty=new Ne(!0);var Pe=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Fe(e){let t=[];do t.push(Ie(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Ie(e){let t=[];do t.push(Le(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Le(e){let t=Ve(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=ze(e,t);else break;return t}function Re(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function ze(e,t){let n=Re(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Re(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Be(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ve(e){if(e.eat(`(`)){let t=Fe(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Be(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function He(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Ue(e,t){return t-e}function We(e,t){let n=[];return r(t),n.sort(Ue);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Ge(e){let t=Object.create(null);return n(We(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);We(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ne(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Ue);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Ke(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function qe(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function Je(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function Ye(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function Xe(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new $e(e,r,t[r]);return n}var Ze=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=Xe(e,n.attrs),this.defaultAttrs=qe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ne.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Je(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Ae(this,this.computeAttrs(e),j.from(t),M.setFrom(n))}createChecked(e=null,t,n){return t=j.from(t),this.checkContent(t),new Ae(this,this.computeAttrs(e),t,M.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=j.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(j.empty,!0);return i?new Ae(this,e,t.append(i),M.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Ye(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:M.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function Qe(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var $e=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Qe(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},et=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Xe(e,r.attrs),this.excluded=null;let i=qe(this.attrs);this.instance=i?new M(this,i):null}create(e=null){return!e&&this.instance?this.instance:new M(this,Je(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Ye(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},tt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ie.from(e.nodes),t.marks=ie.from(e.marks||{}),this.nodes=Ze.compile(this.spec.nodes,this),this.marks=et.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ne.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?nt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:nt(this,n.split(` `))}this.nodeFromJSON=e=>Ae.fromJSON(this,e),this.markFromJSON=e=>M.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(e instanceof Ze){if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`)}else throw RangeError(`Invalid node type: `+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new je(n,n.defaultAttrs,e,M.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function nt(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function rt(e){return e.tag!=null}function it(e){return e.style!=null}var at=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(rt(e))this.tags.push(e);else if(it(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new mt(this,t,!1);return n.addAll(e,M.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new mt(this,t,!0);return n.addAll(e,M.none,t.from,t.to),N.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(gt(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=_t(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=_t(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},ot={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},st={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ct={ol:!0,ul:!0},lt=1,ut=2,dt=4;function ft(e,t,n){return t==null?e&&e.whitespace==`pre`?lt|ut:n&~dt:(t?lt:0)|(t===`full`?ut:0)}var pt=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=M.none,this.match=i||(a&dt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(j.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&lt)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=j.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(j.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ot.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},mt=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=ft(null,t.preserveWhitespace,0)|(n?dt:0);i=r?new pt(r.type,r.attrs,M.none,!0,t.topMatch||r.type.contentMatch,a):n?new pt(null,null,M.none,!0,null,a):new pt(e.schema.topNodeType,null,M.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&ut?`full`:this.localPreserveWS||(r.options&lt)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i===`full`)n=n.replace(/\r\n?/g,`
3
3
  `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);else if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;ct.hasOwnProperty(a)&&this.parser.normalizeLists&&ht(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:st.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ot.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=M.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):vt(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=ft(e,i,a.options);a.options&dt&&a.content.length==0&&(o|=dt);let s=M.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):vt(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new pt(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=lt);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function ht(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&ct.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function gt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function _t(e){let t={};for(let n in e)t[n]=e[n];return t}function vt(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var yt=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=xt(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return xt(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Tt(xt(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Tt(xt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Tt(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=bt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return bt(e.marks)}};function bt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function xt(e){return e.document||window.document}var St=new WeakMap;function Ct(e){let t=St.get(e);return t===void 0&&St.set(e,t=wt(e)),t}function wt(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function Tt(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Ct(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){for(let e in u=2,l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Tt(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Et=65535,Dt=2**16;function Ot(e,t){return e+t*Dt}function kt(e){return e&Et}function At(e){return(e-(e&Et))/Dt}var jt=1,Mt=2,Nt=4,Pt=8,Ft=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Pt)>0}get deletedBefore(){return(this.delInfo&(jt|Nt))>0}get deletedAfter(){return(this.delInfo&(Mt|Nt))>0}get deletedAcross(){return(this.delInfo&Nt)>0}},It=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=kt(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+At(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Ot(o/3,e-s),f=e==s?Mt:e==u?jt:Nt;return(t<0?e!=s:e!=u)&&(f|=Pt),new Ft(a,f,d)}r+=l-c}return n?e+r:new Ft(e+r,0,null)}touches(e,t){let n=0,r=kt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};It.empty=new It([]);var Lt=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Ft(e,r,null)}},Rt=Object.create(null),zt=class{getMap(){return It.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Rt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Rt)throw RangeError(`Duplicate use of step JSON ID `+e);return Rt[e]=t,t.prototype.jsonID=e,t}},Bt=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof fe)return e.fail(t.message);throw t}}};function Vt(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Vt(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return j.fromArray(r)}var Ht=class e extends zt{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new N(Vt(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Bt.fromReplace(e,this.from,this.to,i)}invert(){return new Ut(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};zt.jsonID(`addMark`,Ht);var Ut=class e extends zt{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new N(Vt(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Bt.fromReplace(e,this.from,this.to,n)}invert(){return new Ht(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};zt.jsonID(`removeMark`,Ut);var Wt=class e extends zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Bt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Bt.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Gt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};zt.jsonID(`addNodeMark`,Wt);var Gt=class e extends zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Bt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Bt.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Wt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};zt.jsonID(`removeNodeMark`,Gt);var Kt=class e extends zt{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Jt(e,this.from,this.to)?Bt.fail(`Structure replace would overwrite content`):Bt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new It([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?N.empty:new N(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?N.empty:new N(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,N.fromJSON(t,n.slice),!!n.structure)}};Kt.MAP_BIAS=1,zt.jsonID(`replace`,Kt);var qt=class e extends zt{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Jt(e,this.from,this.gapFrom)||Jt(e,this.gapTo,this.to)))return Bt.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Bt.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Bt.fromReplace(e,this.from,this.to,n):Bt.fail(`Content does not fit in gap`)}getMap(){return new It([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,N.fromJSON(t,n.slice),n.insert,!!n.structure)}};zt.jsonID(`replaceAround`,qt);function Jt(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function Yt(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new Ut(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Ht(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function Xt(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof et){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Ut(t.from,t.to,t.style)))}function Zt(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Kt(s,l,N.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Ut(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new N(j.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Kt(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(j.empty,!0);e.replace(s,s,new N(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Qt(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $t(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!Qt(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function en(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=j.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=j.from(r.node(e).copy(u)),d++):c--;let f=j.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=j.from(i.node(e).copy(f)),p++):l++;e.step(new qt(c,l,o,s,new N(u.append(f),d,p),u.size-d,!0))}function tn(e,t,n=null,r=e){let i=rn(e,t),a=i&&an(r,t);return a?i.map(nn).concat({type:t,attrs:n}).concat(a.map(nn)):null}function nn(e){return{type:e,attrs:null}}function rn(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function an(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function on(e,t,n){let r=j.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=j.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new qt(i,a,i,a,new N(r,0,0),n.length,!0))}function sn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&un(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&ln(e,t,n,a),Zt(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new qt(c,l,c+1,l-1,new N(j.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&cn(e,t,n,a),!1}})}function cn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function ln(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`