@templatical/editor 0.27.4 → 0.27.6

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 (167) hide show
  1. package/dist/{AiChatSidebar-LstHjwBU.js → AiChatSidebar-jbpwD_4k.js} +7 -7
  2. package/dist/{AiFeatureMenu-DVQrznsN.js → AiFeatureMenu-BeZR46ZG.js} +4 -4
  3. package/dist/{BlockIssueBadge-DKaFQNxW.js → BlockIssueBadge-B8wQY1tM.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-D9eC04OA.js → BlockPreviewCanvas-CIjts7SP.js} +1 -1
  5. package/dist/{CloudHeaderExtras-DX0j3CJ3.js → CloudHeaderExtras-mMqnnTi1.js} +5 -5
  6. package/dist/{CloudPanels-DCeNSwXy.js → CloudPanels-fiTneIeJ.js} +4 -4
  7. package/dist/{CollaboratorBar-BZ-JCjdM.js → CollaboratorBar-C48K85la.js} +2 -2
  8. package/dist/{ColorPicker-j0TQu5lE.js → ColorPicker-Bc1lGovM.js} +2 -2
  9. package/dist/{CommentsPanel-c5LmzlNN.js → CommentsPanel-D5Ljv1oj.js} +1 -1
  10. package/dist/{CommentsSidebar-Bm1DxFb5.js → CommentsSidebar-C5mDJVjC.js} +10 -10
  11. package/dist/{CountdownToolbar-UPdwNvVI.js → CountdownToolbar-B-9EdQvm.js} +3 -3
  12. package/dist/{DesignReferenceSidebar-C8WTApc5.js → DesignReferenceSidebar-DOy4ENYv.js} +5 -5
  13. package/dist/{IssuesPanel-D49aJjLS.js → IssuesPanel-DZUehVZS.js} +5 -5
  14. package/dist/{MergeTagModeToggle-CVzJY9b2.js → MergeTagModeToggle-Fn9Q1SrJ.js} +2 -2
  15. package/dist/{MergeTagSuggestion-DGha0WRp.js → MergeTagSuggestion-DflUPfkT.js} +2 -2
  16. package/dist/{NumberWithSuffix-D9mPtMJB.js → NumberWithSuffix-DZAktKby.js} +1 -1
  17. package/dist/{ParagraphEditor-C9-jQ5zP.js → ParagraphEditor-BwTQoxxF.js} +20 -20
  18. package/dist/{RestoreVersionDialog-Ds6gEF5u.js → RestoreVersionDialog-CVuUY3CK.js} +5 -5
  19. package/dist/{RichTextEditorContent-CO1se6ln.js → RichTextEditorContent-CoXoAfZ1.js} +3 -3
  20. package/dist/{SaveBlockDialog-DJIcncsU.js → SaveBlockDialog-Bn5JtRSE.js} +18 -19
  21. package/dist/{SavedBlocksBrowserModal-BUhhkGEb.js → SavedBlocksBrowserModal-WWGhUC8R.js} +10 -11
  22. package/dist/{SavedBlocksPanels-DBfPz4iB.js → SavedBlocksPanels-R_4C58EN.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-D9NsfzCB.js → SavedBlocksPickBar-D5KZVvvu.js} +2 -2
  24. package/dist/{TemplateScoringPanel-BFsUqnXR.js → TemplateScoringPanel-Cz25F9Cf.js} +10 -10
  25. package/dist/{TestEmailModal-DARwBqpV.js → TestEmailModal-C_C228mX.js} +8 -8
  26. package/dist/{TestEmailPanel-BkgAew1S.js → TestEmailPanel-D7YOLrOb.js} +1 -1
  27. package/dist/{TitleEditor-BWLwZh84.js → TitleEditor-XOQQlb1V.js} +8 -8
  28. package/dist/{TplModal-CJLs8as_.js → TplModal-DLXIufsn.js} +6 -4
  29. package/dist/{VersionHistoryMenu-CrIVG_SN.js → VersionHistoryMenu-Bk5zEClP.js} +10 -10
  30. package/dist/{VersionHistoryPanels-s45U7XY-.js → VersionHistoryPanels-D-km60IA.js} +1 -1
  31. package/dist/{VersionPreviewBanner-BIy95B34.js → VersionPreviewBanner-PMaxy3tA.js} +2 -2
  32. package/dist/{blockTypeIcons-BjUkQsAe.js → blockTypeIcons-BG5c5gc8.js} +2 -2
  33. package/dist/bundle-stats.json +6 -6
  34. package/dist/cdn/chunks/{AiChatSidebar-tZqbhmuJ.js → AiChatSidebar-hq9GgASn.js} +2 -2
  35. package/dist/cdn/chunks/{AiChatSidebar-tZqbhmuJ.js.map → AiChatSidebar-hq9GgASn.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-BhtNkpIq.js → AiFeatureMenu-B8B-XgQB.js} +3 -3
  37. package/dist/cdn/chunks/{AiFeatureMenu-BhtNkpIq.js.map → AiFeatureMenu-B8B-XgQB.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-D9L8j7Db.js → BlockIssueBadge-DOvq0xJb.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-D9L8j7Db.js.map → BlockIssueBadge-DOvq0xJb.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-Bt7fFzIQ.js → BlockPreviewCanvas-ZN-5MezA.js} +2 -2
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-Bt7fFzIQ.js.map → BlockPreviewCanvas-ZN-5MezA.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-CScGpeLl.js → CloudHeaderExtras-Dbd6brlz.js} +6 -6
  43. package/dist/cdn/chunks/CloudHeaderExtras-Dbd6brlz.js.map +1 -0
  44. package/dist/cdn/chunks/{CloudPanels-DVtJkWsj.js → CloudPanels-CxkGH1dy.js} +5 -5
  45. package/dist/cdn/chunks/CloudPanels-CxkGH1dy.js.map +1 -0
  46. package/dist/cdn/chunks/{CollaboratorBar-BH1lM_Ta.js → CollaboratorBar-DpP8oKTU.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-BH1lM_Ta.js.map → CollaboratorBar-DpP8oKTU.js.map} +1 -1
  48. package/dist/cdn/chunks/{ColorPicker-d4kY7WWd.js → ColorPicker-BsYEtL7B.js} +3 -3
  49. package/dist/cdn/chunks/{ColorPicker-d4kY7WWd.js.map → ColorPicker-BsYEtL7B.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsPanel-COhQMagD.js → CommentsPanel-B1B_UQ2z.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsPanel-COhQMagD.js.map → CommentsPanel-B1B_UQ2z.js.map} +1 -1
  52. package/dist/cdn/chunks/{CommentsSidebar-vzLX-_h3.js → CommentsSidebar-B4waNT5L.js} +2 -2
  53. package/dist/cdn/chunks/{CommentsSidebar-vzLX-_h3.js.map → CommentsSidebar-B4waNT5L.js.map} +1 -1
  54. package/dist/cdn/chunks/{CountdownToolbar-BRDbI1mM.js → CountdownToolbar-DhJg2sQa.js} +4 -4
  55. package/dist/cdn/chunks/{CountdownToolbar-BRDbI1mM.js.map → CountdownToolbar-DhJg2sQa.js.map} +1 -1
  56. package/dist/cdn/chunks/{DesignReferenceSidebar-npLxDRJI.js → DesignReferenceSidebar-4Ds4D0M0.js} +2 -2
  57. package/dist/cdn/chunks/{DesignReferenceSidebar-npLxDRJI.js.map → DesignReferenceSidebar-4Ds4D0M0.js.map} +1 -1
  58. package/dist/cdn/chunks/{IssuesPanel-CTGlv7HF.js → IssuesPanel-CyGgRHuI.js} +2 -2
  59. package/dist/cdn/chunks/{IssuesPanel-CTGlv7HF.js.map → IssuesPanel-CyGgRHuI.js.map} +1 -1
  60. package/dist/cdn/chunks/{MergeTagModeToggle-CkpKFx9N.js → MergeTagModeToggle-B_oHsH0i.js} +2 -2
  61. package/dist/cdn/chunks/{MergeTagModeToggle-CkpKFx9N.js.map → MergeTagModeToggle-B_oHsH0i.js.map} +1 -1
  62. package/dist/cdn/chunks/{MergeTagSuggestion-DhllqTA3.js → MergeTagSuggestion-Df7jcLpS.js} +2 -2
  63. package/dist/cdn/chunks/{MergeTagSuggestion-DhllqTA3.js.map → MergeTagSuggestion-Df7jcLpS.js.map} +1 -1
  64. package/dist/cdn/chunks/{NumberWithSuffix-mm6AfIv4.js → NumberWithSuffix-DNBrbl4H.js} +2 -2
  65. package/dist/cdn/chunks/{NumberWithSuffix-mm6AfIv4.js.map → NumberWithSuffix-DNBrbl4H.js.map} +1 -1
  66. package/dist/cdn/chunks/{ParagraphEditor-BgeeE0Gj.js → ParagraphEditor-9GPXDRns.js} +18 -18
  67. package/dist/cdn/chunks/{ParagraphEditor-BgeeE0Gj.js.map → ParagraphEditor-9GPXDRns.js.map} +1 -1
  68. package/dist/cdn/chunks/{RestoreVersionDialog-tfoAQAeP.js → RestoreVersionDialog-BWewwJIZ.js} +5 -5
  69. package/dist/cdn/chunks/RestoreVersionDialog-BWewwJIZ.js.map +1 -0
  70. package/dist/cdn/chunks/{RichTextEditorContent-DvLBtUcW.js → RichTextEditorContent-DWD1--Yi.js} +3 -3
  71. package/dist/cdn/chunks/{RichTextEditorContent-DvLBtUcW.js.map → RichTextEditorContent-DWD1--Yi.js.map} +1 -1
  72. package/dist/cdn/chunks/{SaveBlockDialog-D67K2lHn.js → SaveBlockDialog-DUyrK4nE.js} +17 -18
  73. package/dist/cdn/chunks/SaveBlockDialog-DUyrK4nE.js.map +1 -0
  74. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BxVR-yDt.js → SavedBlocksBrowserModal-DZrk2Fxx.js} +9 -10
  75. package/dist/cdn/chunks/SavedBlocksBrowserModal-DZrk2Fxx.js.map +1 -0
  76. package/dist/cdn/chunks/{SavedBlocksPanels-VkKCO0uY.js → SavedBlocksPanels-iSAXI4IM.js} +2 -2
  77. package/dist/cdn/chunks/{SavedBlocksPanels-VkKCO0uY.js.map → SavedBlocksPanels-iSAXI4IM.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPickBar-BJHQDgUT.js → SavedBlocksPickBar-CFeccSg9.js} +3 -3
  79. package/dist/cdn/chunks/{SavedBlocksPickBar-BJHQDgUT.js.map → SavedBlocksPickBar-CFeccSg9.js.map} +1 -1
  80. package/dist/cdn/chunks/{TemplateScoringPanel-MvdrkgqL.js → TemplateScoringPanel-Ct5p7X_i.js} +7 -7
  81. package/dist/cdn/chunks/{TemplateScoringPanel-MvdrkgqL.js.map → TemplateScoringPanel-Ct5p7X_i.js.map} +1 -1
  82. package/dist/cdn/chunks/{TestEmailModal-CEBFCevy.js → TestEmailModal-BJo6q_Dm.js} +8 -8
  83. package/dist/cdn/chunks/TestEmailModal-BJo6q_Dm.js.map +1 -0
  84. package/dist/cdn/chunks/{TestEmailPanel-C35nqIIl.js → TestEmailPanel-LuLd-ErE.js} +2 -2
  85. package/dist/cdn/chunks/{TestEmailPanel-C35nqIIl.js.map → TestEmailPanel-LuLd-ErE.js.map} +1 -1
  86. package/dist/cdn/chunks/{TitleEditor-c2aQCyds.js → TitleEditor-BsGfiDXQ.js} +8 -8
  87. package/dist/cdn/chunks/{TitleEditor-c2aQCyds.js.map → TitleEditor-BsGfiDXQ.js.map} +1 -1
  88. package/dist/cdn/chunks/{TplModal-DSTVZKuI.js → TplModal-lUdHsbjL.js} +7 -5
  89. package/dist/cdn/chunks/TplModal-lUdHsbjL.js.map +1 -0
  90. package/dist/cdn/chunks/{VersionHistoryMenu-BNYSIjVj.js → VersionHistoryMenu-CXMPsVMR.js} +4 -4
  91. package/dist/cdn/chunks/{VersionHistoryMenu-BNYSIjVj.js.map → VersionHistoryMenu-CXMPsVMR.js.map} +1 -1
  92. package/dist/cdn/chunks/{VersionHistoryPanels-CvWySHUE.js → VersionHistoryPanels-oTKA6TUS.js} +2 -2
  93. package/dist/cdn/chunks/{VersionHistoryPanels-CvWySHUE.js.map → VersionHistoryPanels-oTKA6TUS.js.map} +1 -1
  94. package/dist/cdn/chunks/{VersionPreviewBanner-CBVDWnhq.js → VersionPreviewBanner-7DZLUVaE.js} +3 -3
  95. package/dist/cdn/chunks/{VersionPreviewBanner-CBVDWnhq.js.map → VersionPreviewBanner-7DZLUVaE.js.map} +1 -1
  96. package/dist/cdn/chunks/{blockTypeIcons-A9qFb1cR.js → blockTypeIcons-D8dtoELC.js} +2 -2
  97. package/dist/cdn/chunks/{blockTypeIcons-A9qFb1cR.js.map → blockTypeIcons-D8dtoELC.js.map} +1 -1
  98. package/dist/cdn/chunks/{createCloudRuntime-DYDf_-rN.js → createCloudRuntime-CedWXagq.js} +2 -2
  99. package/dist/cdn/chunks/{createCloudRuntime-DYDf_-rN.js.map → createCloudRuntime-CedWXagq.js.map} +1 -1
  100. package/dist/cdn/chunks/{extensions-Byo2sA1r.js → extensions-P0lpi6k8.js} +3 -3
  101. package/dist/cdn/chunks/{extensions-Byo2sA1r.js.map → extensions-P0lpi6k8.js.map} +1 -1
  102. package/dist/cdn/chunks/{icons-Dl5bcXmT.js → icons-BrdgOeXm.js} +18 -18
  103. package/dist/cdn/chunks/{icons-Dl5bcXmT.js.map → icons-BrdgOeXm.js.map} +1 -1
  104. package/dist/cdn/chunks/{src-BDUi-9js.js → src-BS2ClsbB.js} +25 -25
  105. package/dist/cdn/chunks/src-BS2ClsbB.js.map +1 -0
  106. package/dist/cdn/chunks/{src-BAWlZu4B.js → src-rhf0R6xZ.js} +2 -2
  107. package/dist/cdn/chunks/{src-BAWlZu4B.js.map → src-rhf0R6xZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{styleConstants-9oK5kn21.js → styleConstants-C_YAPdQS.js} +8 -8
  109. package/dist/cdn/chunks/{styleConstants-9oK5kn21.js.map → styleConstants-C_YAPdQS.js.map} +1 -1
  110. package/dist/cdn/chunks/{tiptap-DmpGap5g.js → tiptap-DWeSx_P8.js} +1012 -987
  111. package/dist/cdn/chunks/tiptap-DWeSx_P8.js.map +1 -0
  112. package/dist/cdn/chunks/{useEditorCore-D84laTMj.js → useEditorCore-CwJIw1Uy.js} +19 -19
  113. package/dist/cdn/chunks/{useEditorCore-D84laTMj.js.map → useEditorCore-CwJIw1Uy.js.map} +1 -1
  114. package/dist/cdn/editor.css +1 -1
  115. package/dist/cdn/editor.js +783 -787
  116. package/dist/cdn/editor.js.map +1 -1
  117. package/dist/{check-GRcTaHlZ.js → check-C2h94k_8.js} +1 -1
  118. package/dist/{chevron-down-NUIAa2Qf.js → chevron-down-ulZzvfvk.js} +1 -1
  119. package/dist/{chevron-up-Bjf2BQtL.js → chevron-up-8g-VtBW4.js} +1 -1
  120. package/dist/{circle-alert-FpQ8ykQL.js → circle-alert-BJFqBtRt.js} +1 -1
  121. package/dist/{clock-CaOM1DC-.js → clock-C-1JiH38.js} +1 -1
  122. package/dist/{createLucideIcon-CAmDKr5Z.js → createLucideIcon-DJb_1j1D.js} +2 -2
  123. package/dist/{dist-Ck9roB6K.js → dist-BLVvhIFj.js} +2 -2
  124. package/dist/{dist-DMJRSouD.js → dist-C145btxT.js} +255 -250
  125. package/dist/{dist-C27SeFL5.js → dist-CLc1cpN2.js} +2 -2
  126. package/dist/{dist-M7m1lYRe.js → dist-CQQNoHxz.js} +2 -2
  127. package/dist/{dist-g6cbzhZW.js → dist-CclsUQ7r.js} +2 -2
  128. package/dist/{dist-CYx-E82k.js → dist-CgXIMxZc.js} +2 -2
  129. package/dist/dist-D-ulkdvF.js +5 -0
  130. package/dist/{dist-BImfm-46.js → dist-D4Jb08yv.js} +2 -2
  131. package/dist/{dist-ChYLhoJ4.js → dist-DUn6jY0n.js} +35 -18
  132. package/dist/{dist-DfpeSdmE.js → dist-Dx-KOuOj.js} +2 -2
  133. package/dist/{dist-C08jiemd.js → dist-Dz7KUOSg.js} +2 -2
  134. package/dist/dist-Kf9u4ULN.js +5 -0
  135. package/dist/{extensions-BV9qfsYr.js → extensions-DWp4eXoE.js} +3 -3
  136. package/dist/{image-up-CIGT4cSb.js → image-up-0rvCz8rh.js} +1 -1
  137. package/dist/{info-9YwKinXj.js → info-CXvc-MZk.js} +1 -1
  138. package/dist/{loader-circle-QyURl47g.js → loader-circle-DQIuGTFk.js} +1 -1
  139. package/dist/{message-circle-C9pycEzV.js → message-circle-BqX2Y80d.js} +1 -1
  140. package/dist/{pencil-BvW86jVn.js → pencil-DpGX5hCB.js} +1 -1
  141. package/dist/{refresh-cw-BDAUomac.js → refresh-cw-B13pUg95.js} +1 -1
  142. package/dist/{scan-line-B5EvAPSG.js → scan-line-BDZEtA92.js} +1 -1
  143. package/dist/{send-BAUn7DLp.js → send-DQ52s_T6.js} +1 -1
  144. package/dist/{shield-check-CLGywlg0.js → shield-check-C4uQTy20.js} +1 -1
  145. package/dist/{sparkles-X6C0spo6.js → sparkles-CphMFXxu.js} +1 -1
  146. package/dist/style.css +1 -1
  147. package/dist/{styleConstants-9oK5kn21.js → styleConstants-C_YAPdQS.js} +7 -7
  148. package/dist/templatical-editor.js +961 -965
  149. package/dist/{text-align-start-C6FXOoEj.js → text-align-start-Cem3VGu8.js} +1 -1
  150. package/dist/{trash-2-balHkQP4.js → trash-2-ijNDbe1n.js} +1 -1
  151. package/dist/{triangle-alert-D2JBEr6k.js → triangle-alert-C1e0A199.js} +1 -1
  152. package/dist/{upload-D70OYprI.js → upload-CXwGBFi0.js} +1 -1
  153. package/dist/{useEditorCore-D7Gz7_CW.js → useEditorCore-BfPXdBsv.js} +9 -9
  154. package/dist/{useScrollToBlock-DcImB73T.js → useScrollToBlock-B3H6frtG.js} +1 -1
  155. package/dist/{x-DTUPbuwx.js → x-eZrtE6uf.js} +1 -1
  156. package/package.json +21 -21
  157. package/dist/cdn/chunks/CloudHeaderExtras-CScGpeLl.js.map +0 -1
  158. package/dist/cdn/chunks/CloudPanels-DVtJkWsj.js.map +0 -1
  159. package/dist/cdn/chunks/RestoreVersionDialog-tfoAQAeP.js.map +0 -1
  160. package/dist/cdn/chunks/SaveBlockDialog-D67K2lHn.js.map +0 -1
  161. package/dist/cdn/chunks/SavedBlocksBrowserModal-BxVR-yDt.js.map +0 -1
  162. package/dist/cdn/chunks/TestEmailModal-CEBFCevy.js.map +0 -1
  163. package/dist/cdn/chunks/TplModal-DSTVZKuI.js.map +0 -1
  164. package/dist/cdn/chunks/src-BDUi-9js.js.map +0 -1
  165. package/dist/cdn/chunks/tiptap-DmpGap5g.js.map +0 -1
  166. package/dist/dist-6YJAWMuf.js +0 -5
  167. package/dist/dist-8vlm9kfO.js +0 -5
@@ -7329,7 +7329,7 @@ function gc(e) {
7329
7329
  };
7330
7330
  }
7331
7331
  //#endregion
7332
- //#region ../../node_modules/.pnpm/@tiptap+core@3.30.1_@tiptap+pm@3.30.1/node_modules/@tiptap/core/dist/index.js
7332
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.30.2_@tiptap+pm@3.30.2/node_modules/@tiptap/core/dist/index.js
7333
7333
  var _c = Object.defineProperty, vc = (e, t) => {
7334
7334
  for (var n in t) _c(e, n, {
7335
7335
  get: t[n],
@@ -7360,7 +7360,7 @@ function yc(e) {
7360
7360
  }
7361
7361
  };
7362
7362
  }
7363
- var bc = class {
7363
+ var bc = class e {
7364
7364
  constructor(e) {
7365
7365
  this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
7366
7366
  }
@@ -7393,6 +7393,12 @@ var bc = class {
7393
7393
  };
7394
7394
  return u;
7395
7395
  }
7396
+ static createFakeChain() {
7397
+ let e = new Proxy({}, { get: (t, n) => {
7398
+ if (n !== "then") return n === "run" ? () => !1 : () => e;
7399
+ } });
7400
+ return e;
7401
+ }
7396
7402
  createCan(e) {
7397
7403
  let { rawCommands: t, state: n } = this, r = e || n.tr, i = this.buildProps(r, !1);
7398
7404
  return {
@@ -7403,6 +7409,12 @@ var bc = class {
7403
7409
  chain: () => this.createChain(r, !1)
7404
7410
  };
7405
7411
  }
7412
+ static createFallbackCan() {
7413
+ let t = e.createFakeChain();
7414
+ return new Proxy({ chain: () => t }, { get: (e, t) => {
7415
+ if (t !== "then") return t === "chain" ? e.chain : () => !1;
7416
+ } });
7417
+ }
7406
7418
  buildProps(e, t = !0) {
7407
7419
  let { rawCommands: n, editor: r, state: i } = this, { view: a } = r, o = {
7408
7420
  tr: e,
@@ -10662,10 +10674,10 @@ var tp = class e {
10662
10674
  return this.commandManager.commands;
10663
10675
  }
10664
10676
  chain() {
10665
- return this.commandManager.chain();
10677
+ return this.commandManager ? this.commandManager.chain() : bc.createFakeChain();
10666
10678
  }
10667
10679
  can() {
10668
- return this.commandManager.can();
10680
+ return this.commandManager ? this.commandManager.can() : bc.createFallbackCan();
10669
10681
  }
10670
10682
  injectCSS() {
10671
10683
  this.options.injectCSS && typeof document < "u" && (this.css = nf(np, this.options.injectNonce));
@@ -11087,17 +11099,22 @@ function hp(e) {
11087
11099
  function gp(e) {
11088
11100
  return e.children;
11089
11101
  }
11090
- var _p = (e, t) => {
11102
+ function _p(e, t, n) {
11091
11103
  if (e === "slot") return 0;
11092
11104
  if (e instanceof Function) return e(t);
11093
- let { children: n, ...r } = t ?? {};
11105
+ let { children: r, ...i } = t ?? {};
11094
11106
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
11095
- return [
11107
+ return n && Array.isArray(r) ? [
11108
+ e,
11109
+ i,
11110
+ ...r
11111
+ ] : [
11096
11112
  e,
11097
- r,
11098
- n
11113
+ i,
11114
+ r
11099
11115
  ];
11100
- }, vp = (e) => "touches" in e, yp = class {
11116
+ }
11117
+ var vp = (e, t) => _p(e, t, !1), yp = (e) => "touches" in e, bp = class {
11101
11118
  constructor(e) {
11102
11119
  this.directions = [
11103
11120
  "bottom-left",
@@ -11186,7 +11203,7 @@ var _p = (e, t) => {
11186
11203
  e ? (this.element.style.width = `${e}px`, this.initialWidth = e) : this.initialWidth = this.element.offsetWidth, t ? (this.element.style.height = `${t}px`, this.initialHeight = t) : this.initialHeight = this.element.offsetHeight, this.initialWidth > 0 && this.initialHeight > 0 && (this.aspectRatio = this.initialWidth / this.initialHeight);
11187
11204
  }
11188
11205
  handleResizeStart(e, t) {
11189
- e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, vp(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11206
+ e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, yp(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11190
11207
  }
11191
11208
  handleResize(e, t) {
11192
11209
  if (!this.activeHandle) return;
@@ -11226,7 +11243,7 @@ var _p = (e, t) => {
11226
11243
  height: e / this.aspectRatio
11227
11244
  };
11228
11245
  }
11229
- }, bp = yp, J = class e extends Mf {
11246
+ }, xp = bp, J = class e extends Mf {
11230
11247
  constructor() {
11231
11248
  super(...arguments), this.type = "node";
11232
11249
  }
@@ -11241,7 +11258,7 @@ var _p = (e, t) => {
11241
11258
  let t = typeof e == "function" ? e() : e;
11242
11259
  return super.extend(t);
11243
11260
  }
11244
- }, xp = class {
11261
+ }, Sp = class {
11245
11262
  constructor(e, t, n) {
11246
11263
  this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
11247
11264
  stopEvent: null,
@@ -11339,7 +11356,7 @@ var _p = (e, t) => {
11339
11356
  });
11340
11357
  }
11341
11358
  };
11342
- function Sp(e) {
11359
+ function Cp(e) {
11343
11360
  return new Pf({
11344
11361
  find: e.find,
11345
11362
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
@@ -11354,7 +11371,7 @@ function Sp(e) {
11354
11371
  }
11355
11372
  });
11356
11373
  }
11357
- function Cp(e) {
11374
+ function wp(e) {
11358
11375
  return new Pf({
11359
11376
  find: e.find,
11360
11377
  handler({ match: t, chain: n, range: r, pasteEvent: i }) {
@@ -11368,7 +11385,7 @@ function Cp(e) {
11368
11385
  }
11369
11386
  });
11370
11387
  }
11371
- function wp(e) {
11388
+ function Tp(e) {
11372
11389
  return new Pf({
11373
11390
  find: e.find,
11374
11391
  handler: ({ state: t, range: n, match: r }) => {
@@ -11383,7 +11400,7 @@ function wp(e) {
11383
11400
  }
11384
11401
  });
11385
11402
  }
11386
- var Tp = class {
11403
+ var Ep = class {
11387
11404
  constructor(e) {
11388
11405
  this.transaction = e, this.currentStep = this.transaction.steps.length;
11389
11406
  }
@@ -11397,72 +11414,72 @@ var Tp = class {
11397
11414
  deleted: t
11398
11415
  };
11399
11416
  }
11400
- }, Ep = Math.min, Dp = Math.max, Op = Math.round, kp = Math.floor, Ap = (e) => ({
11417
+ }, Dp = Math.min, Op = Math.max, kp = Math.round, Ap = Math.floor, jp = (e) => ({
11401
11418
  x: e,
11402
11419
  y: e
11403
- }), jp = {
11420
+ }), Mp = {
11404
11421
  left: "right",
11405
11422
  right: "left",
11406
11423
  bottom: "top",
11407
11424
  top: "bottom"
11408
11425
  };
11409
- function Mp(e, t) {
11426
+ function Np(e, t) {
11410
11427
  return typeof e == "function" ? e(t) : e;
11411
11428
  }
11412
- function Np(e) {
11429
+ function Pp(e) {
11413
11430
  return e.split("-")[0];
11414
11431
  }
11415
- function Pp(e) {
11432
+ function Fp(e) {
11416
11433
  return e.split("-")[1];
11417
11434
  }
11418
- function Fp(e) {
11435
+ function Ip(e) {
11419
11436
  return e === "x" ? "y" : "x";
11420
11437
  }
11421
- function Ip(e) {
11438
+ function Lp(e) {
11422
11439
  return e === "y" ? "height" : "width";
11423
11440
  }
11424
- function Lp(e) {
11441
+ function Rp(e) {
11425
11442
  let t = e[0];
11426
11443
  return t === "t" || t === "b" ? "y" : "x";
11427
11444
  }
11428
- function Rp(e) {
11429
- return Fp(Lp(e));
11445
+ function zp(e) {
11446
+ return Ip(Rp(e));
11430
11447
  }
11431
- function zp(e, t, n) {
11448
+ function Bp(e, t, n) {
11432
11449
  n === void 0 && (n = !1);
11433
- let r = Pp(e), i = Rp(e), a = Ip(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
11434
- return t.reference[a] > t.floating[a] && (o = Jp(o)), [o, Jp(o)];
11450
+ let r = Fp(e), i = zp(e), a = Lp(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
11451
+ return t.reference[a] > t.floating[a] && (o = Yp(o)), [o, Yp(o)];
11435
11452
  }
11436
- function Bp(e) {
11437
- let t = Jp(e);
11453
+ function Vp(e) {
11454
+ let t = Yp(e);
11438
11455
  return [
11439
- Vp(e),
11456
+ Hp(e),
11440
11457
  t,
11441
- Vp(t)
11458
+ Hp(t)
11442
11459
  ];
11443
11460
  }
11444
- function Vp(e) {
11461
+ function Hp(e) {
11445
11462
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
11446
11463
  }
11447
- var Hp = ["left", "right"], Up = ["right", "left"], Wp = ["top", "bottom"], Gp = ["bottom", "top"];
11448
- function Kp(e, t, n) {
11464
+ var Up = ["left", "right"], Wp = ["right", "left"], Gp = ["top", "bottom"], Kp = ["bottom", "top"];
11465
+ function qp(e, t, n) {
11449
11466
  switch (e) {
11450
11467
  case "top":
11451
- case "bottom": return n ? t ? Up : Hp : t ? Hp : Up;
11468
+ case "bottom": return n ? t ? Wp : Up : t ? Up : Wp;
11452
11469
  case "left":
11453
- case "right": return t ? Wp : Gp;
11470
+ case "right": return t ? Gp : Kp;
11454
11471
  default: return [];
11455
11472
  }
11456
11473
  }
11457
- function qp(e, t, n, r) {
11458
- let i = Pp(e), a = Kp(Np(e), n === "start", r);
11459
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Vp)))), a;
11460
- }
11461
- function Jp(e) {
11462
- let t = Np(e);
11463
- return jp[t] + e.slice(t.length);
11474
+ function Jp(e, t, n, r) {
11475
+ let i = Fp(e), a = qp(Pp(e), n === "start", r);
11476
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Hp)))), a;
11464
11477
  }
11465
11478
  function Yp(e) {
11479
+ let t = Pp(e);
11480
+ return Mp[t] + e.slice(t.length);
11481
+ }
11482
+ function Xp(e) {
11466
11483
  return {
11467
11484
  top: e.top ?? 0,
11468
11485
  right: e.right ?? 0,
@@ -11470,15 +11487,15 @@ function Yp(e) {
11470
11487
  left: e.left ?? 0
11471
11488
  };
11472
11489
  }
11473
- function Xp(e) {
11490
+ function Zp(e) {
11474
11491
  return typeof e == "number" ? {
11475
11492
  top: e,
11476
11493
  right: e,
11477
11494
  bottom: e,
11478
11495
  left: e
11479
- } : Yp(e);
11496
+ } : Xp(e);
11480
11497
  }
11481
- function Zp(e) {
11498
+ function Qp(e) {
11482
11499
  let { x: t, y: n, width: r, height: i } = e;
11483
11500
  return {
11484
11501
  width: r,
@@ -11493,8 +11510,8 @@ function Zp(e) {
11493
11510
  }
11494
11511
  //#endregion
11495
11512
  //#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
11496
- function Qp(e, t, n) {
11497
- let { reference: r, floating: i } = e, a = Lp(t), o = Rp(t), s = Ip(o), c = Np(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
11513
+ function $p(e, t, n) {
11514
+ let { reference: r, floating: i } = e, a = Rp(t), o = zp(t), s = Lp(o), c = Pp(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
11498
11515
  switch (c) {
11499
11516
  case "top":
11500
11517
  p = {
@@ -11525,12 +11542,12 @@ function Qp(e, t, n) {
11525
11542
  y: r.y
11526
11543
  };
11527
11544
  }
11528
- let m = Pp(t);
11545
+ let m = Fp(t);
11529
11546
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
11530
11547
  }
11531
- async function $p(e, t) {
11548
+ async function em(e, t) {
11532
11549
  t === void 0 && (t = {});
11533
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Mp(t, e), p = Xp(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Zp(await i.getClippingRect({
11550
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Np(t, e), p = Zp(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Qp(await i.getClippingRect({
11534
11551
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
11535
11552
  boundary: c,
11536
11553
  rootBoundary: l,
@@ -11543,7 +11560,7 @@ async function $p(e, t) {
11543
11560
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
11544
11561
  x: 1,
11545
11562
  y: 1
11546
- }, y = Zp(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
11563
+ }, y = Qp(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
11547
11564
  elements: o,
11548
11565
  rect: g,
11549
11566
  offsetParent: _,
@@ -11556,15 +11573,15 @@ async function $p(e, t) {
11556
11573
  right: (y.right - h.right + p.right) / v.x
11557
11574
  };
11558
11575
  }
11559
- var em = 50, tm = async (e, t, n) => {
11576
+ var tm = 50, nm = async (e, t, n) => {
11560
11577
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
11561
11578
  ...o,
11562
- detectOverflow: $p
11579
+ detectOverflow: em
11563
11580
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
11564
11581
  reference: e,
11565
11582
  floating: t,
11566
11583
  strategy: i
11567
- }), { x: u, y: d } = Qp(l, r, c), f = r, p = 0, m = {};
11584
+ }), { x: u, y: d } = $p(l, r, c), f = r, p = 0, m = {};
11568
11585
  for (let n = 0; n < a.length; n++) {
11569
11586
  let h = a[n];
11570
11587
  if (!h) continue;
@@ -11585,11 +11602,11 @@ var em = 50, tm = async (e, t, n) => {
11585
11602
  u = v ?? u, d = y ?? d, m[g] = {
11586
11603
  ...m[g],
11587
11604
  ...b
11588
- }, x && p < em && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
11605
+ }, x && p < tm && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
11589
11606
  reference: e,
11590
11607
  floating: t,
11591
11608
  strategy: i
11592
- }) : x.rects), {x: u, y: d} = Qp(l, f, c)), n = -1);
11609
+ }) : x.rects), {x: u, y: d} = $p(l, f, c)), n = -1);
11593
11610
  }
11594
11611
  return {
11595
11612
  x: u,
@@ -11598,19 +11615,19 @@ var em = 50, tm = async (e, t, n) => {
11598
11615
  strategy: i,
11599
11616
  middlewareData: m
11600
11617
  };
11601
- }, nm = function(e) {
11618
+ }, rm = function(e) {
11602
11619
  return e === void 0 && (e = {}), {
11603
11620
  name: "flip",
11604
11621
  options: e,
11605
11622
  async fn(t) {
11606
11623
  var n;
11607
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Mp(e, t);
11624
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Np(e, t);
11608
11625
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
11609
- let g = Np(r), _ = Lp(o), v = Np(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Jp(o)] : Bp(o)), x = p !== "none";
11610
- !d && x && b.push(...qp(o, m, p, y));
11626
+ let g = Pp(r), _ = Rp(o), v = Pp(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Yp(o)] : Vp(o)), x = p !== "none";
11627
+ !d && x && b.push(...Jp(o, m, p, y));
11611
11628
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], ee = i.flip?.overflows || [];
11612
11629
  if (l && w.push(C[g]), u) {
11613
- let e = zp(r, a, y);
11630
+ let e = Bp(r, a, y);
11614
11631
  w.push(C[e[0]], C[e[1]]);
11615
11632
  }
11616
11633
  if (ee = [...ee, {
@@ -11618,7 +11635,7 @@ var em = 50, tm = async (e, t, n) => {
11618
11635
  overflows: w
11619
11636
  }], !w.every((e) => e <= 0)) {
11620
11637
  let e = (i.flip?.index || 0) + 1, t = S[e];
11621
- if (t && (u !== "alignment" || _ === Lp(t) || ee.every((e) => Lp(e.placement) !== _ || e.overflows[0] > 0))) return {
11638
+ if (t && (u !== "alignment" || _ === Rp(t) || ee.every((e) => Rp(e.placement) !== _ || e.overflows[0] > 0))) return {
11622
11639
  data: {
11623
11640
  index: e,
11624
11641
  overflows: ee
@@ -11630,7 +11647,7 @@ var em = 50, tm = async (e, t, n) => {
11630
11647
  case "bestFit": {
11631
11648
  let e = ee.filter((e) => {
11632
11649
  if (x) {
11633
- let t = Lp(e.placement);
11650
+ let t = Rp(e.placement);
11634
11651
  return t === _ || t === "y";
11635
11652
  }
11636
11653
  return !0;
@@ -11645,9 +11662,9 @@ var em = 50, tm = async (e, t, n) => {
11645
11662
  return {};
11646
11663
  }
11647
11664
  };
11648
- }, rm = /*#__PURE__*/ new Set(["left", "top"]);
11649
- async function im(e, t) {
11650
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Np(n), s = Pp(n), c = Lp(n) === "y", l = rm.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Mp(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
11665
+ }, im = /*#__PURE__*/ new Set(["left", "top"]);
11666
+ async function am(e, t) {
11667
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Pp(n), s = Fp(n), c = Rp(n) === "y", l = im.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Np(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
11651
11668
  mainAxis: d,
11652
11669
  crossAxis: 0,
11653
11670
  alignmentAxis: null
@@ -11664,13 +11681,13 @@ async function im(e, t) {
11664
11681
  y: p * u
11665
11682
  };
11666
11683
  }
11667
- var am = function(e) {
11684
+ var om = function(e) {
11668
11685
  return e === void 0 && (e = 0), {
11669
11686
  name: "offset",
11670
11687
  options: e,
11671
11688
  async fn(t) {
11672
11689
  var n;
11673
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await im(t, e);
11690
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await am(t, e);
11674
11691
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
11675
11692
  x: r + s.x,
11676
11693
  y: i + s.y,
@@ -11684,39 +11701,39 @@ var am = function(e) {
11684
11701
  };
11685
11702
  //#endregion
11686
11703
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
11687
- function om() {
11704
+ function sm() {
11688
11705
  return typeof window < "u";
11689
11706
  }
11690
- function sm(e) {
11691
- return um(e) ? (e.nodeName || "").toLowerCase() : "#document";
11692
- }
11693
11707
  function cm(e) {
11694
- var t;
11695
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
11708
+ return dm(e) ? (e.nodeName || "").toLowerCase() : "#document";
11696
11709
  }
11697
11710
  function lm(e) {
11698
- return ((um(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
11711
+ var t;
11712
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
11699
11713
  }
11700
11714
  function um(e) {
11701
- return om() ? e instanceof Node || e instanceof cm(e).Node : !1;
11715
+ return ((dm(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
11702
11716
  }
11703
11717
  function dm(e) {
11704
- return om() ? e instanceof Element || e instanceof cm(e).Element : !1;
11718
+ return sm() ? e instanceof Node || e instanceof lm(e).Node : !1;
11705
11719
  }
11706
11720
  function fm(e) {
11707
- return om() ? e instanceof HTMLElement || e instanceof cm(e).HTMLElement : !1;
11721
+ return sm() ? e instanceof Element || e instanceof lm(e).Element : !1;
11708
11722
  }
11709
11723
  function pm(e) {
11710
- return !om() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof cm(e).ShadowRoot;
11724
+ return sm() ? e instanceof HTMLElement || e instanceof lm(e).HTMLElement : !1;
11711
11725
  }
11712
11726
  function mm(e) {
11713
- let { overflow: t, overflowX: n, overflowY: r, display: i } = Tm(e);
11714
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
11727
+ return !sm() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof lm(e).ShadowRoot;
11715
11728
  }
11716
11729
  function hm(e) {
11717
- return /^(table|td|th)$/.test(sm(e));
11730
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Em(e);
11731
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
11718
11732
  }
11719
11733
  function gm(e) {
11734
+ return /^(table|td|th)$/.test(cm(e));
11735
+ }
11736
+ function _m(e) {
11720
11737
  try {
11721
11738
  if (e.matches(":popover-open")) return !0;
11722
11739
  } catch {}
@@ -11726,31 +11743,31 @@ function gm(e) {
11726
11743
  return !1;
11727
11744
  }
11728
11745
  }
11729
- var _m = /transform|translate|scale|rotate|perspective|filter/, vm = /paint|layout|strict|content/, ym = (e) => !!e && e !== "none", bm;
11730
- function xm(e) {
11731
- let t = dm(e) ? Tm(e) : e;
11732
- return ym(t.transform) || ym(t.translate) || ym(t.scale) || ym(t.rotate) || ym(t.perspective) || !Cm() && (ym(t.backdropFilter) || ym(t.filter)) || _m.test(t.willChange || "") || vm.test(t.contain || "");
11733
- }
11746
+ var vm = /transform|translate|scale|rotate|perspective|filter/, ym = /paint|layout|strict|content/, bm = (e) => !!e && e !== "none", xm;
11734
11747
  function Sm(e) {
11735
- let t = Dm(e);
11736
- for (; fm(t) && !wm(t);) {
11737
- if (xm(t)) return t;
11738
- if (gm(t)) return null;
11739
- t = Dm(t);
11748
+ let t = fm(e) ? Em(e) : e;
11749
+ return bm(t.transform) || bm(t.translate) || bm(t.scale) || bm(t.rotate) || bm(t.perspective) || !wm() && (bm(t.backdropFilter) || bm(t.filter)) || vm.test(t.willChange || "") || ym.test(t.contain || "");
11750
+ }
11751
+ function Cm(e) {
11752
+ let t = Om(e);
11753
+ for (; pm(t) && !Tm(t);) {
11754
+ if (Sm(t)) return t;
11755
+ if (_m(t)) return null;
11756
+ t = Om(t);
11740
11757
  }
11741
11758
  return null;
11742
11759
  }
11743
- function Cm() {
11744
- return bm ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), bm;
11745
- }
11746
- function wm(e) {
11747
- return /^(html|body|#document)$/.test(sm(e));
11760
+ function wm() {
11761
+ return xm ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), xm;
11748
11762
  }
11749
11763
  function Tm(e) {
11750
- return cm(e).getComputedStyle(e);
11764
+ return /^(html|body|#document)$/.test(cm(e));
11751
11765
  }
11752
11766
  function Em(e) {
11753
- return dm(e) ? {
11767
+ return lm(e).getComputedStyle(e);
11768
+ }
11769
+ function Dm(e) {
11770
+ return fm(e) ? {
11754
11771
  scrollLeft: e.scrollLeft,
11755
11772
  scrollTop: e.scrollTop
11756
11773
  } : {
@@ -11758,102 +11775,102 @@ function Em(e) {
11758
11775
  scrollTop: e.scrollY
11759
11776
  };
11760
11777
  }
11761
- function Dm(e) {
11762
- if (sm(e) === "html") return e;
11763
- let t = e.assignedSlot || e.parentNode || pm(e) && e.host || lm(e);
11764
- return pm(t) ? t.host : t;
11765
- }
11766
11778
  function Om(e) {
11767
- let t = Dm(e);
11768
- return wm(t) ? (e.ownerDocument || e).body : fm(t) && mm(t) ? t : Om(t);
11779
+ if (cm(e) === "html") return e;
11780
+ let t = e.assignedSlot || e.parentNode || mm(e) && e.host || um(e);
11781
+ return mm(t) ? t.host : t;
11782
+ }
11783
+ function km(e) {
11784
+ let t = Om(e);
11785
+ return Tm(t) ? (e.ownerDocument || e).body : pm(t) && hm(t) ? t : km(t);
11769
11786
  }
11770
- function km(e, t, n) {
11787
+ function Am(e, t, n) {
11771
11788
  t === void 0 && (t = []), n === void 0 && (n = !0);
11772
- let r = Om(e), i = r === e.ownerDocument?.body, a = cm(r);
11789
+ let r = km(e), i = r === e.ownerDocument?.body, a = lm(r);
11773
11790
  if (i) {
11774
- let e = Am(a);
11775
- return t.concat(a, a.visualViewport || [], mm(r) ? r : [], e && n ? km(e) : []);
11791
+ let e = jm(a);
11792
+ return t.concat(a, a.visualViewport || [], hm(r) ? r : [], e && n ? Am(e) : []);
11776
11793
  }
11777
- return t.concat(r, km(r, [], n));
11794
+ return t.concat(r, Am(r, [], n));
11778
11795
  }
11779
- function Am(e) {
11796
+ function jm(e) {
11780
11797
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
11781
11798
  }
11782
11799
  //#endregion
11783
11800
  //#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
11784
- function jm(e) {
11785
- let t = Tm(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = fm(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Op(n) !== a || Op(r) !== o;
11801
+ function Mm(e) {
11802
+ let t = Em(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = pm(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = kp(n) !== a || kp(r) !== o;
11786
11803
  return s && (n = a, r = o), {
11787
11804
  width: n,
11788
11805
  height: r,
11789
11806
  $: s
11790
11807
  };
11791
11808
  }
11792
- function Mm(e) {
11793
- return dm(e) ? e : e.contextElement;
11794
- }
11795
11809
  function Nm(e) {
11796
- let t = Mm(e);
11797
- if (!fm(t)) return Ap(1);
11798
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = jm(t), o = (a ? Op(n.width) : n.width) / r, s = (a ? Op(n.height) : n.height) / i;
11810
+ return fm(e) ? e : e.contextElement;
11811
+ }
11812
+ function Pm(e) {
11813
+ let t = Nm(e);
11814
+ if (!pm(t)) return jp(1);
11815
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Mm(t), o = (a ? kp(n.width) : n.width) / r, s = (a ? kp(n.height) : n.height) / i;
11799
11816
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
11800
11817
  x: o,
11801
11818
  y: s
11802
11819
  };
11803
11820
  }
11804
- var Pm = /*#__PURE__*/ Ap(0);
11805
- function Fm(e) {
11806
- let t = cm(e);
11807
- return !Cm() || !t.visualViewport ? Pm : {
11821
+ var Fm = /*#__PURE__*/ jp(0);
11822
+ function Im(e) {
11823
+ let t = lm(e);
11824
+ return !wm() || !t.visualViewport ? Fm : {
11808
11825
  x: t.visualViewport.offsetLeft,
11809
11826
  y: t.visualViewport.offsetTop
11810
11827
  };
11811
11828
  }
11812
- function Im(e, t, n) {
11813
- return t === void 0 && (t = !1), !!n && t && n === cm(e);
11829
+ function Lm(e, t, n) {
11830
+ return t === void 0 && (t = !1), !!n && t && n === lm(e);
11814
11831
  }
11815
- function Lm(e, t, n, r) {
11832
+ function Rm(e, t, n, r) {
11816
11833
  t === void 0 && (t = !1), n === void 0 && (n = !1);
11817
- let i = e.getBoundingClientRect(), a = Mm(e), o = Ap(1);
11818
- t && (r ? dm(r) && (o = Nm(r)) : o = Nm(e));
11819
- let s = Im(a, n, r) ? Fm(a) : Ap(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
11834
+ let i = e.getBoundingClientRect(), a = Nm(e), o = jp(1);
11835
+ t && (r ? fm(r) && (o = Pm(r)) : o = Pm(e));
11836
+ let s = Lm(a, n, r) ? Im(a) : jp(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
11820
11837
  if (a && r) {
11821
- let e = cm(a), t = dm(r) ? cm(r) : r, n = e, i = Am(n);
11838
+ let e = lm(a), t = fm(r) ? lm(r) : r, n = e, i = jm(n);
11822
11839
  for (; i && t !== n;) {
11823
- let e = Nm(i), t = i.getBoundingClientRect(), r = Tm(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
11824
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = cm(i), i = Am(n);
11840
+ let e = Pm(i), t = i.getBoundingClientRect(), r = Em(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
11841
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = lm(i), i = jm(n);
11825
11842
  }
11826
11843
  }
11827
- return Zp({
11844
+ return Qp({
11828
11845
  width: u,
11829
11846
  height: d,
11830
11847
  x: c,
11831
11848
  y: l
11832
11849
  });
11833
11850
  }
11834
- function Rm(e, t) {
11835
- let n = Em(e).scrollLeft;
11836
- return t ? t.left + n : Lm(lm(e)).left + n;
11837
- }
11838
11851
  function zm(e, t) {
11852
+ let n = Dm(e).scrollLeft;
11853
+ return t ? t.left + n : Rm(um(e)).left + n;
11854
+ }
11855
+ function Bm(e, t) {
11839
11856
  let n = e.getBoundingClientRect();
11840
11857
  return {
11841
- x: n.left + t.scrollLeft - Rm(e, n),
11858
+ x: n.left + t.scrollLeft - zm(e, n),
11842
11859
  y: n.top + t.scrollTop
11843
11860
  };
11844
11861
  }
11845
- function Bm(e) {
11846
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = lm(r), s = t ? gm(t.floating) : !1;
11862
+ function Vm(e) {
11863
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = um(r), s = t ? _m(t.floating) : !1;
11847
11864
  if (r === o || s && a) return n;
11848
11865
  let c = {
11849
11866
  scrollLeft: 0,
11850
11867
  scrollTop: 0
11851
- }, l = Ap(1), u = Ap(0), d = fm(r);
11852
- if ((d || !a) && ((sm(r) !== "body" || mm(o)) && (c = Em(r)), d)) {
11853
- let e = Lm(r);
11854
- l = Nm(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
11868
+ }, l = jp(1), u = jp(0), d = pm(r);
11869
+ if ((d || !a) && ((cm(r) !== "body" || hm(o)) && (c = Dm(r)), d)) {
11870
+ let e = Rm(r);
11871
+ l = Pm(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
11855
11872
  }
11856
- let f = o && !d && !a ? zm(o, c) : Ap(0);
11873
+ let f = o && !d && !a ? Bm(o, c) : jp(0);
11857
11874
  return {
11858
11875
  width: n.width * l.x,
11859
11876
  height: n.height * l.y,
@@ -11861,29 +11878,29 @@ function Bm(e) {
11861
11878
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
11862
11879
  };
11863
11880
  }
11864
- function Vm(e) {
11881
+ function Hm(e) {
11865
11882
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
11866
11883
  }
11867
- function Hm(e) {
11868
- let t = Em(e), n = e.ownerDocument.body, r = Dp(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Dp(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Rm(e), o = -t.scrollTop;
11869
- return Tm(n).direction === "rtl" && (a += Dp(e.clientWidth, n.clientWidth) - r), {
11884
+ function Um(e) {
11885
+ let t = Dm(e), n = e.ownerDocument.body, r = Op(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Op(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + zm(e), o = -t.scrollTop;
11886
+ return Em(n).direction === "rtl" && (a += Op(e.clientWidth, n.clientWidth) - r), {
11870
11887
  width: r,
11871
11888
  height: i,
11872
11889
  x: a,
11873
11890
  y: o
11874
11891
  };
11875
11892
  }
11876
- var Um = 25;
11877
- function Wm(e, t, n) {
11893
+ var Wm = 25;
11894
+ function Gm(e, t, n) {
11878
11895
  n === void 0 && (n = "viewport");
11879
- let r = n === "layoutViewport", i = cm(e), a = lm(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
11896
+ let r = n === "layoutViewport", i = lm(e), a = um(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
11880
11897
  if (o) {
11881
- let e = !Cm() || t === "fixed";
11898
+ let e = !wm() || t === "fixed";
11882
11899
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
11883
11900
  }
11884
- if (Rm(a) <= 0) {
11901
+ if (zm(a) <= 0) {
11885
11902
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
11886
- o <= Um && (s -= o);
11903
+ o <= Wm && (s -= o);
11887
11904
  }
11888
11905
  return {
11889
11906
  width: s,
@@ -11892,8 +11909,8 @@ function Wm(e, t, n) {
11892
11909
  y: u
11893
11910
  };
11894
11911
  }
11895
- function Gm(e, t) {
11896
- let n = Lm(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Nm(e);
11912
+ function Km(e, t) {
11913
+ let n = Rm(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Pm(e);
11897
11914
  return {
11898
11915
  width: e.clientWidth * a.x,
11899
11916
  height: e.clientHeight * a.y,
@@ -11901,13 +11918,13 @@ function Gm(e, t) {
11901
11918
  y: r * a.y
11902
11919
  };
11903
11920
  }
11904
- function Km(e, t, n) {
11921
+ function qm(e, t, n) {
11905
11922
  let r;
11906
- if (t === "viewport" || t === "layoutViewport") r = Wm(e, n, t);
11907
- else if (t === "document") r = Hm(lm(e));
11908
- else if (dm(t)) r = Gm(t, n);
11923
+ if (t === "viewport" || t === "layoutViewport") r = Gm(e, n, t);
11924
+ else if (t === "document") r = Um(um(e));
11925
+ else if (fm(t)) r = Km(t, n);
11909
11926
  else {
11910
- let n = Fm(e);
11927
+ let n = Im(e);
11911
11928
  r = {
11912
11929
  x: t.x - n.x,
11913
11930
  y: t.y - n.y,
@@ -11915,23 +11932,23 @@ function Km(e, t, n) {
11915
11932
  height: t.height
11916
11933
  };
11917
11934
  }
11918
- return Zp(r);
11935
+ return Qp(r);
11919
11936
  }
11920
- function qm(e, t) {
11937
+ function Jm(e, t) {
11921
11938
  let n = t.get(e);
11922
11939
  if (n) return n;
11923
- let r = km(e, [], !1).filter((e) => dm(e) && sm(e) !== "body"), i = null, a = Tm(e).position === "fixed", o = a ? Dm(e) : e;
11924
- for (; dm(o) && !wm(o);) {
11925
- let e = Tm(o), t = xm(o), n = i ? i.position : a ? "fixed" : "";
11926
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Dm(o);
11940
+ let r = Am(e, [], !1).filter((e) => fm(e) && cm(e) !== "body"), i = null, a = Em(e).position === "fixed", o = a ? Om(e) : e;
11941
+ for (; fm(o) && !Tm(o);) {
11942
+ let e = Em(o), t = Sm(o), n = i ? i.position : a ? "fixed" : "";
11943
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Om(o);
11927
11944
  }
11928
11945
  return t.set(e, r), r;
11929
11946
  }
11930
- function Jm(e) {
11931
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? gm(t) ? [] : qm(t, this._c) : [].concat(n), r], o = Km(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
11947
+ function Ym(e) {
11948
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? _m(t) ? [] : Jm(t, this._c) : [].concat(n), r], o = qm(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
11932
11949
  for (let e = 1; e < a.length; e++) {
11933
- let n = Km(t, a[e], i);
11934
- s = Dp(n.top, s), c = Ep(n.right, c), l = Ep(n.bottom, l), u = Dp(n.left, u);
11950
+ let n = qm(t, a[e], i);
11951
+ s = Op(n.top, s), c = Dp(n.right, c), l = Dp(n.bottom, l), u = Op(n.left, u);
11935
11952
  }
11936
11953
  return {
11937
11954
  width: c - u,
@@ -11940,24 +11957,24 @@ function Jm(e) {
11940
11957
  y: s
11941
11958
  };
11942
11959
  }
11943
- function Ym(e) {
11944
- let { width: t, height: n } = jm(e);
11960
+ function Xm(e) {
11961
+ let { width: t, height: n } = Mm(e);
11945
11962
  return {
11946
11963
  width: t,
11947
11964
  height: n
11948
11965
  };
11949
11966
  }
11950
- function Xm(e, t, n) {
11951
- let r = fm(t), i = lm(t), a = n === "fixed", o = Lm(e, !0, a, t), s = {
11967
+ function Zm(e, t, n) {
11968
+ let r = pm(t), i = um(t), a = n === "fixed", o = Rm(e, !0, a, t), s = {
11952
11969
  scrollLeft: 0,
11953
11970
  scrollTop: 0
11954
- }, c = Ap(0);
11955
- if ((r || !a) && ((sm(t) !== "body" || mm(i)) && (s = Em(t)), r)) {
11956
- let e = Lm(t, !0, a, t);
11971
+ }, c = jp(0);
11972
+ if ((r || !a) && ((cm(t) !== "body" || hm(i)) && (s = Dm(t)), r)) {
11973
+ let e = Rm(t, !0, a, t);
11957
11974
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
11958
11975
  }
11959
- !r && i && (c.x = Rm(i));
11960
- let l = i && !r && !a ? zm(i, s) : Ap(0);
11976
+ !r && i && (c.x = zm(i));
11977
+ let l = i && !r && !a ? Bm(i, s) : jp(0);
11961
11978
  return {
11962
11979
  x: o.left + s.scrollLeft - c.x - l.x,
11963
11980
  y: o.top + s.scrollTop - c.y - l.y,
@@ -11965,34 +11982,34 @@ function Xm(e, t, n) {
11965
11982
  height: o.height
11966
11983
  };
11967
11984
  }
11968
- function Zm(e) {
11969
- return Tm(e).position === "static";
11985
+ function Qm(e) {
11986
+ return Em(e).position === "static";
11970
11987
  }
11971
- function Qm(e, t) {
11972
- if (!fm(e) || Tm(e).position === "fixed") return null;
11988
+ function $m(e, t) {
11989
+ if (!pm(e) || Em(e).position === "fixed") return null;
11973
11990
  if (t) return t(e);
11974
11991
  let n = e.offsetParent;
11975
- return lm(e) === n && (n = n.ownerDocument.body), n;
11992
+ return um(e) === n && (n = n.ownerDocument.body), n;
11976
11993
  }
11977
- function $m(e, t) {
11978
- let n = cm(e);
11979
- if (gm(e)) return n;
11980
- if (!fm(e)) {
11981
- let t = Dm(e);
11982
- for (; t && !wm(t);) {
11983
- if (dm(t) && !Zm(t)) return t;
11984
- t = Dm(t);
11994
+ function eh(e, t) {
11995
+ let n = lm(e);
11996
+ if (_m(e)) return n;
11997
+ if (!pm(e)) {
11998
+ let t = Om(e);
11999
+ for (; t && !Tm(t);) {
12000
+ if (fm(t) && !Qm(t)) return t;
12001
+ t = Om(t);
11985
12002
  }
11986
12003
  return n;
11987
12004
  }
11988
- let r = Qm(e, t);
11989
- for (; r && hm(r) && Zm(r);) r = Qm(r, t);
11990
- return r && wm(r) && Zm(r) && !xm(r) ? n : r || Sm(e) || n;
12005
+ let r = $m(e, t);
12006
+ for (; r && gm(r) && Qm(r);) r = $m(r, t);
12007
+ return r && Tm(r) && Qm(r) && !Sm(r) ? n : r || Cm(e) || n;
11991
12008
  }
11992
- var eh = async function(e) {
11993
- let t = this.getOffsetParent || $m, n = this.getDimensions, r = await n(e.floating);
12009
+ var th = async function(e) {
12010
+ let t = this.getOffsetParent || eh, n = this.getDimensions, r = await n(e.floating);
11994
12011
  return {
11995
- reference: Xm(e.reference, await t(e.floating), e.strategy),
12012
+ reference: Zm(e.reference, await t(e.floating), e.strategy),
11996
12013
  floating: {
11997
12014
  x: 0,
11998
12015
  y: 0,
@@ -12001,26 +12018,26 @@ var eh = async function(e) {
12001
12018
  }
12002
12019
  };
12003
12020
  };
12004
- function th(e) {
12005
- return Tm(e).direction === "rtl";
12006
- }
12007
- var nh = {
12008
- convertOffsetParentRelativeRectToViewportRelativeRect: Bm,
12009
- getDocumentElement: lm,
12010
- getClippingRect: Jm,
12011
- getOffsetParent: $m,
12012
- getElementRects: eh,
12013
- getClientRects: Vm,
12014
- getDimensions: Ym,
12015
- getScale: Nm,
12016
- isElement: dm,
12017
- isRTL: th
12021
+ function nh(e) {
12022
+ return Em(e).direction === "rtl";
12023
+ }
12024
+ var rh = {
12025
+ convertOffsetParentRelativeRectToViewportRelativeRect: Vm,
12026
+ getDocumentElement: um,
12027
+ getClippingRect: Ym,
12028
+ getOffsetParent: eh,
12029
+ getElementRects: th,
12030
+ getClientRects: Hm,
12031
+ getDimensions: Xm,
12032
+ getScale: Pm,
12033
+ isElement: fm,
12034
+ isRTL: nh
12018
12035
  };
12019
- function rh(e, t) {
12036
+ function ih(e, t) {
12020
12037
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
12021
12038
  }
12022
- function ih(e, t, n) {
12023
- let r = null, i, a = lm(e);
12039
+ function ah(e, t, n) {
12040
+ let r = null, i, a = um(e);
12024
12041
  function o() {
12025
12042
  var e;
12026
12043
  clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
@@ -12029,13 +12046,13 @@ function ih(e, t, n) {
12029
12046
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
12030
12047
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
12031
12048
  if (n || t(), !f || !p) return;
12032
- let m = kp(d), h = kp(a.clientWidth - (u + f)), g = kp(a.clientHeight - (d + p)), _ = kp(u), v = {
12049
+ let m = Ap(d), h = Ap(a.clientWidth - (u + f)), g = Ap(a.clientHeight - (d + p)), _ = Ap(u), v = {
12033
12050
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
12034
- threshold: Dp(0, Ep(1, c)) || 1
12051
+ threshold: Op(0, Dp(1, c)) || 1
12035
12052
  }, y = !0;
12036
12053
  function b(t) {
12037
12054
  let n = t[0].intersectionRatio;
12038
- if (!rh(l, e.getBoundingClientRect())) return s();
12055
+ if (!ih(l, e.getBoundingClientRect())) return s();
12039
12056
  if (n !== c) {
12040
12057
  if (!y) return s();
12041
12058
  n ? s(!1, n) : i = setTimeout(() => {
@@ -12054,18 +12071,18 @@ function ih(e, t, n) {
12054
12071
  }
12055
12072
  r.observe(e);
12056
12073
  }
12057
- let c = cm(e), l = () => s(n);
12074
+ let c = lm(e), l = () => s(n);
12058
12075
  return c.addEventListener("resize", l), s(!0), () => {
12059
12076
  c.removeEventListener("resize", l), o();
12060
12077
  };
12061
12078
  }
12062
- function ah(e, t, n, r) {
12079
+ function oh(e, t, n, r) {
12063
12080
  r === void 0 && (r = {});
12064
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Mm(e), u = i || a ? [...l ? km(l) : [], ...t ? km(t) : []] : [];
12081
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Nm(e), u = i || a ? [...l ? Am(l) : [], ...t ? Am(t) : []] : [];
12065
12082
  u.forEach((e) => {
12066
12083
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
12067
12084
  });
12068
- let d = l && s ? ih(l, n, a) : null, f = -1, p = null;
12085
+ let d = l && s ? ah(l, n, a) : null, f = -1, p = null;
12069
12086
  o && (p = new ResizeObserver((e) => {
12070
12087
  let [r] = e;
12071
12088
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -12073,11 +12090,11 @@ function ah(e, t, n, r) {
12073
12090
  (e = p) == null || e.observe(t);
12074
12091
  })), n();
12075
12092
  }), l && !c && p.observe(l), t && p.observe(t));
12076
- let m, h = c ? Lm(e) : null;
12093
+ let m, h = c ? Rm(e) : null;
12077
12094
  c && g();
12078
12095
  function g() {
12079
- let t = Lm(e);
12080
- h && !rh(h, t) && n(), h = t, m = requestAnimationFrame(g);
12096
+ let t = Rm(e);
12097
+ h && !ih(h, t) && n(), h = t, m = requestAnimationFrame(g);
12081
12098
  }
12082
12099
  return n(), () => {
12083
12100
  var e;
@@ -12086,20 +12103,20 @@ function ah(e, t, n, r) {
12086
12103
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
12087
12104
  };
12088
12105
  }
12089
- var oh = am, sh = nm, ch = (e, t, n) => {
12106
+ var sh = om, ch = rm, lh = (e, t, n) => {
12090
12107
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
12091
- ...nh,
12108
+ ...rh,
12092
12109
  ...i.platform,
12093
12110
  _c: r
12094
12111
  };
12095
- return tm(e, t, {
12112
+ return nm(e, t, {
12096
12113
  ...i,
12097
12114
  platform: a
12098
12115
  });
12099
12116
  };
12100
12117
  //#endregion
12101
- //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.30.1_@floating-ui+dom@1.8.0_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tiptap+pm@3.30.1/node_modules/@tiptap/suggestion/dist/index.js
12102
- function lh(e) {
12118
+ //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.30.2_@floating-ui+dom@1.8.0_@tiptap+core@3.30.2_@tiptap+pm@3.30.2__@tiptap+pm@3.30.2/node_modules/@tiptap/suggestion/dist/index.js
12119
+ function uh(e) {
12103
12120
  let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = rf(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
12104
12121
  if (!p) return null;
12105
12122
  let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
@@ -12116,7 +12133,7 @@ function lh(e) {
12116
12133
  text: h[0]
12117
12134
  } : null;
12118
12135
  }
12119
- function uh(e) {
12136
+ function dh(e) {
12120
12137
  return e.docChanged ? e.steps.some((e) => {
12121
12138
  let t = e.slice;
12122
12139
  if (!t?.content) return !1;
@@ -12124,7 +12141,7 @@ function uh(e) {
12124
12141
  return /\s/.test(n);
12125
12142
  }) : !1;
12126
12143
  }
12127
- function dh(e) {
12144
+ function fh(e) {
12128
12145
  return () => {
12129
12146
  let { top: t, right: n, bottom: r, left: i } = e.view.coordsAtPos(e.state.selection.$anchor.pos);
12130
12147
  try {
@@ -12134,13 +12151,13 @@ function dh(e) {
12134
12151
  }
12135
12152
  };
12136
12153
  }
12137
- function fh(e, t, n, r) {
12154
+ function ph(e, t, n, r) {
12138
12155
  return n ? () => {
12139
12156
  let n = r.getState(e.state);
12140
12157
  return t.dom.querySelector(`[data-decoration-id="${n?.decorationId}"]`)?.getBoundingClientRect() || null;
12141
- } : dh(e);
12158
+ } : fh(e);
12142
12159
  }
12143
- function ph({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
12160
+ function mh({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
12144
12161
  return a?.({
12145
12162
  editor: i,
12146
12163
  state: n,
@@ -12148,13 +12165,13 @@ function ph({ match: e, dismissedRange: t, state: n, transaction: r, editor: i,
12148
12165
  match: e,
12149
12166
  transaction: r,
12150
12167
  allowSpaces: o
12151
- }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !uh(r);
12168
+ }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !dh(r);
12152
12169
  }
12153
- function mh({ view: e, pluginKeyRef: t }) {
12170
+ function hh({ view: e, pluginKeyRef: t }) {
12154
12171
  let n = e.state.tr.setMeta(t, { exit: !0 });
12155
12172
  e.dispatch(n);
12156
12173
  }
12157
- function hh({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
12174
+ function gh({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
12158
12175
  return {
12159
12176
  handleKeyDown(t, n) {
12160
12177
  var r;
@@ -12182,7 +12199,7 @@ function hh({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
12182
12199
  }
12183
12200
  };
12184
12201
  }
12185
- function gh({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
12202
+ function _h({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
12186
12203
  return {
12187
12204
  init() {
12188
12205
  return {
@@ -12241,7 +12258,7 @@ function gh({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r
12241
12258
  }
12242
12259
  };
12243
12260
  }
12244
- function _h({ editor: e, items: t }) {
12261
+ function vh({ editor: e, items: t }) {
12245
12262
  let n = null, r = null, i = null, a = () => {
12246
12263
  r !== null && (clearTimeout(r), r = null), i?.(), i = null;
12247
12264
  }, o = (e) => new Promise((t) => {
@@ -12275,18 +12292,18 @@ function _h({ editor: e, items: t }) {
12275
12292
  }
12276
12293
  };
12277
12294
  }
12278
- function vh({ placement: e, offset: t, flip: n, floatingUi: r }) {
12279
- let i = [oh({
12295
+ function yh({ placement: e, offset: t, flip: n, floatingUi: r }) {
12296
+ let i = [sh({
12280
12297
  mainAxis: t.mainAxis ?? 4,
12281
12298
  crossAxis: t.crossAxis ?? 0
12282
12299
  })];
12283
- return n && i.push(sh()), r?.middleware?.length && i.push(...r.middleware), {
12300
+ return n && i.push(ch()), r?.middleware?.length && i.push(...r.middleware), {
12284
12301
  placement: e,
12285
12302
  strategy: r?.strategy ?? "absolute",
12286
12303
  middleware: i
12287
12304
  };
12288
12305
  }
12289
- function yh(e) {
12306
+ function bh(e) {
12290
12307
  if (e instanceof HTMLElement) return e;
12291
12308
  if (typeof e == "string") try {
12292
12309
  let t = document.querySelector(e);
@@ -12296,15 +12313,15 @@ function yh(e) {
12296
12313
  }
12297
12314
  return document.body;
12298
12315
  }
12299
- function bh({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
12316
+ function xh({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
12300
12317
  return (o, s = {}) => {
12301
12318
  let c = {
12302
12319
  getBoundingClientRect: () => e() ?? new DOMRect(),
12303
12320
  contextElement: t
12304
12321
  }, l = !1, u = !o.isConnected;
12305
- u && yh(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
12306
- let d = ah(c, o, () => {
12307
- ch(c, o, {
12322
+ u && bh(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
12323
+ let d = oh(c, o, () => {
12324
+ lh(c, o, {
12308
12325
  placement: n.placement,
12309
12326
  strategy: n.strategy,
12310
12327
  middleware: n.middleware
@@ -12333,11 +12350,11 @@ function bh({ getReferenceRect: e, contextElement: t, config: n, container: r, d
12333
12350
  };
12334
12351
  };
12335
12352
  }
12336
- function xh({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i, debounce: a, initialItems: o, placement: s, offset: c, container: l, flip: u, floatingUi: d, dismissOnOutsideClick: f, command: p, clientRectFor: m, dispatchExit: h }) {
12337
- let g, _ = _h({
12353
+ function Sh({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i, debounce: a, initialItems: o, placement: s, offset: c, container: l, flip: u, floatingUi: d, dismissOnOutsideClick: f, command: p, clientRectFor: m, dispatchExit: h }) {
12354
+ let g, _ = vh({
12338
12355
  editor: e,
12339
12356
  items: n
12340
- }), v = vh({
12357
+ }), v = yh({
12341
12358
  placement: s,
12342
12359
  offset: c,
12343
12360
  flip: u,
@@ -12388,7 +12405,7 @@ function xh({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
12388
12405
  container: l,
12389
12406
  flip: u,
12390
12407
  floatingUi: v,
12391
- mount: bh({
12408
+ mount: xh({
12392
12409
  getReferenceRect: te,
12393
12410
  contextElement: n.dom,
12394
12411
  config: v,
@@ -12436,24 +12453,24 @@ function xh({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
12436
12453
  }
12437
12454
  };
12438
12455
  }
12439
- var Sh = new P("suggestion");
12440
- function Ch({ pluginKey: e = Sh, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], minQueryLength: p = 0, debounce: m = 0, initialItems: h, placement: g = "bottom-start", offset: _ = {}, container: v, flip: y = !0, floatingUi: b, dismissOnOutsideClick: x = !0, render: S = () => ({}), allow: C = () => !0, findSuggestionMatch: w = lh, shouldShow: ee, shouldResetDismissed: T }) {
12441
- let E = S?.(), te = r && !i, D = (n, r) => fh(t, n, r, e);
12456
+ var Ch = new P("suggestion");
12457
+ function wh({ pluginKey: e = Ch, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], minQueryLength: p = 0, debounce: m = 0, initialItems: h, placement: g = "bottom-start", offset: _ = {}, container: v, flip: y = !0, floatingUi: b, dismissOnOutsideClick: x = !0, render: S = () => ({}), allow: C = () => !0, findSuggestionMatch: w = uh, shouldShow: ee, shouldResetDismissed: T }) {
12458
+ let E = S?.(), te = r && !i, D = (n, r) => ph(t, n, r, e);
12442
12459
  function ne(e) {
12443
- return ph({
12460
+ return mh({
12444
12461
  ...e,
12445
12462
  editor: t,
12446
12463
  shouldResetDismissed: T,
12447
12464
  effectiveAllowSpaces: te
12448
12465
  });
12449
12466
  }
12450
- let re = (t) => mh({
12467
+ let re = (t) => hh({
12451
12468
  view: t,
12452
12469
  pluginKeyRef: e
12453
12470
  });
12454
12471
  return new N({
12455
12472
  key: e,
12456
- view: () => xh({
12473
+ view: () => Sh({
12457
12474
  editor: t,
12458
12475
  pluginKey: e,
12459
12476
  items: f,
@@ -12471,7 +12488,7 @@ function Ch({ pluginKey: e = Sh, editor: t, char: n = "@", allowSpaces: r = !1,
12471
12488
  clientRectFor: D,
12472
12489
  dispatchExit: re
12473
12490
  }),
12474
- state: gh({
12491
+ state: _h({
12475
12492
  editor: t,
12476
12493
  char: n,
12477
12494
  effectiveAllowSpaces: te,
@@ -12484,7 +12501,7 @@ function Ch({ pluginKey: e = Sh, editor: t, char: n = "@", allowSpaces: r = !1,
12484
12501
  shouldKeepDismissed: ne,
12485
12502
  pluginKey: e
12486
12503
  }),
12487
- props: hh({
12504
+ props: gh({
12488
12505
  pluginKey: e,
12489
12506
  decorationTag: s,
12490
12507
  decorationClass: c,
@@ -12495,27 +12512,27 @@ function Ch({ pluginKey: e = Sh, editor: t, char: n = "@", allowSpaces: r = !1,
12495
12512
  })
12496
12513
  });
12497
12514
  }
12498
- var wh = Ch, Th = /* @__PURE__ */ e({
12499
- BackgroundColor: () => Ah,
12500
- Color: () => jh,
12501
- FontFamily: () => Mh,
12502
- FontSize: () => Nh,
12503
- LineHeight: () => Ph,
12504
- TextStyle: () => kh,
12505
- TextStyleKit: () => Fh
12506
- }), Eh = 20, Dh = (e, t = 0) => {
12515
+ var Th = wh, Eh = /* @__PURE__ */ e({
12516
+ BackgroundColor: () => jh,
12517
+ Color: () => Mh,
12518
+ FontFamily: () => Nh,
12519
+ FontSize: () => Ph,
12520
+ LineHeight: () => Fh,
12521
+ TextStyle: () => Ah,
12522
+ TextStyleKit: () => Ih
12523
+ }), Dh = 20, Oh = (e, t = 0) => {
12507
12524
  let n = [];
12508
- return !e.children.length || t > Eh || Array.from(e.children).forEach((e) => {
12509
- e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...Dh(e, t + 1));
12525
+ return !e.children.length || t > Dh || Array.from(e.children).forEach((e) => {
12526
+ e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...Oh(e, t + 1));
12510
12527
  }), n;
12511
- }, Oh = (e) => {
12528
+ }, kh = (e) => {
12512
12529
  if (!e.children.length) return;
12513
- let t = Dh(e);
12530
+ let t = Oh(e);
12514
12531
  t && t.forEach((e) => {
12515
12532
  let t = e.getAttribute("style"), n = (e.parentElement?.closest("span"))?.getAttribute("style");
12516
12533
  e.setAttribute("style", `${n};${t}`);
12517
12534
  });
12518
- }, kh = Nf.create({
12535
+ }, Ah = Nf.create({
12519
12536
  name: "textStyle",
12520
12537
  priority: 101,
12521
12538
  addOptions() {
@@ -12528,7 +12545,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12528
12545
  return [{
12529
12546
  tag: "span",
12530
12547
  consuming: !1,
12531
- getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && Oh(e), {}) : !1
12548
+ getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && kh(e), {}) : !1
12532
12549
  }];
12533
12550
  },
12534
12551
  renderHTML({ HTMLAttributes: e }) {
@@ -12550,7 +12567,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12550
12567
  }
12551
12568
  };
12552
12569
  }
12553
- }), Ah = q.create({
12570
+ }), jh = q.create({
12554
12571
  name: "backgroundColor",
12555
12572
  addOptions() {
12556
12573
  return { types: ["textStyle"] };
@@ -12571,7 +12588,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12571
12588
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
12572
12589
  };
12573
12590
  }
12574
- }), jh = q.create({
12591
+ }), Mh = q.create({
12575
12592
  name: "color",
12576
12593
  addOptions() {
12577
12594
  return { types: ["textStyle"] };
@@ -12592,7 +12609,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12592
12609
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
12593
12610
  };
12594
12611
  }
12595
- }), Mh = q.create({
12612
+ }), Nh = q.create({
12596
12613
  name: "fontFamily",
12597
12614
  addOptions() {
12598
12615
  return { types: ["textStyle"] };
@@ -12613,7 +12630,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12613
12630
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
12614
12631
  };
12615
12632
  }
12616
- }), Nh = q.create({
12633
+ }), Ph = q.create({
12617
12634
  name: "fontSize",
12618
12635
  addOptions() {
12619
12636
  return { types: ["textStyle"] };
@@ -12634,7 +12651,7 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12634
12651
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
12635
12652
  };
12636
12653
  }
12637
- }), Ph = q.create({
12654
+ }), Fh = q.create({
12638
12655
  name: "lineHeight",
12639
12656
  addOptions() {
12640
12657
  return { types: ["textStyle"] };
@@ -12655,24 +12672,24 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12655
12672
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
12656
12673
  };
12657
12674
  }
12658
- }), Fh = q.create({
12675
+ }), Ih = q.create({
12659
12676
  name: "textStyleKit",
12660
12677
  addExtensions() {
12661
12678
  let e = [];
12662
- return this.options.backgroundColor !== !1 && e.push(Ah.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(jh.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(Mh.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(Nh.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(Ph.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(kh.configure(this.options.textStyle)), e;
12663
- }
12664
- }), Ih = /* @__PURE__ */ e({
12665
- Color: () => jh,
12666
- default: () => Lh
12667
- }), Lh = jh, Rh = /* @__PURE__ */ e({
12668
- FontFamily: () => Mh,
12669
- default: () => zh
12670
- }), zh = Mh, Bh = /* @__PURE__ */ e({
12671
- Highlight: () => Uh,
12672
- default: () => Wh,
12673
- inputRegex: () => Vh,
12674
- pasteRegex: () => Hh
12675
- }), Vh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, Hh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, Uh = Nf.create({
12679
+ return this.options.backgroundColor !== !1 && e.push(jh.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(Mh.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(Nh.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(Ph.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(Fh.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(Ah.configure(this.options.textStyle)), e;
12680
+ }
12681
+ }), Lh = /* @__PURE__ */ e({
12682
+ Color: () => Mh,
12683
+ default: () => Rh
12684
+ }), Rh = Mh, zh = /* @__PURE__ */ e({
12685
+ FontFamily: () => Nh,
12686
+ default: () => Bh
12687
+ }), Bh = Nh, Vh = /* @__PURE__ */ e({
12688
+ Highlight: () => Wh,
12689
+ default: () => Gh,
12690
+ inputRegex: () => Hh,
12691
+ pasteRegex: () => Uh
12692
+ }), Hh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, Uh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, Wh = Nf.create({
12676
12693
  name: "highlight",
12677
12694
  addOptions() {
12678
12695
  return {
@@ -12731,36 +12748,36 @@ var wh = Ch, Th = /* @__PURE__ */ e({
12731
12748
  },
12732
12749
  addInputRules() {
12733
12750
  return [dp({
12734
- find: Vh,
12751
+ find: Hh,
12735
12752
  type: this.type
12736
12753
  })];
12737
12754
  },
12738
12755
  addPasteRules() {
12739
- return [Sp({
12740
- find: Hh,
12756
+ return [Cp({
12757
+ find: Uh,
12741
12758
  type: this.type
12742
12759
  })];
12743
12760
  }
12744
- }), Wh = Uh, Gh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Kh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", qh = "numeric", Jh = "ascii", Yh = "alpha", Xh = "asciinumeric", Zh = "alphanumeric", Qh = "domain", $h = "emoji", eg = "scheme", tg = "slashscheme", ng = "whitespace";
12745
- function rg(e, t) {
12761
+ }), Gh = Wh, Kh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", qh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Jh = "numeric", Yh = "ascii", Xh = "alpha", Zh = "asciinumeric", Qh = "alphanumeric", $h = "domain", eg = "emoji", tg = "scheme", ng = "slashscheme", rg = "whitespace";
12762
+ function ig(e, t) {
12746
12763
  return e in t || (t[e] = []), t[e];
12747
12764
  }
12748
- function ig(e, t, n) {
12749
- t[qh] && (t[Xh] = !0, t[Zh] = !0), t[Jh] && (t[Xh] = !0, t[Yh] = !0), t[Xh] && (t[Zh] = !0), t[Yh] && (t[Zh] = !0), t[Zh] && (t[Qh] = !0), t[$h] && (t[Qh] = !0);
12765
+ function ag(e, t, n) {
12766
+ t[Jh] && (t[Zh] = !0, t[Qh] = !0), t[Yh] && (t[Zh] = !0, t[Xh] = !0), t[Zh] && (t[Qh] = !0), t[Xh] && (t[Qh] = !0), t[Qh] && (t[$h] = !0), t[eg] && (t[$h] = !0);
12750
12767
  for (let r in t) {
12751
- let t = rg(r, n);
12768
+ let t = ig(r, n);
12752
12769
  t.indexOf(e) < 0 && t.push(e);
12753
12770
  }
12754
12771
  }
12755
- function ag(e, t) {
12772
+ function og(e, t) {
12756
12773
  let n = {};
12757
12774
  for (let r in t) t[r].indexOf(e) >= 0 && (n[r] = !0);
12758
12775
  return n;
12759
12776
  }
12760
- function og(e = null) {
12777
+ function sg(e = null) {
12761
12778
  this.j = {}, this.jr = [], this.jd = null, this.t = e;
12762
12779
  }
12763
- og.groups = {}, og.prototype = {
12780
+ sg.groups = {}, sg.prototype = {
12764
12781
  accepts() {
12765
12782
  return !!this.t;
12766
12783
  },
@@ -12780,9 +12797,9 @@ og.groups = {}, og.prototype = {
12780
12797
  for (let i = 0; i < e.length; i++) this.tt(e[i], t, n, r);
12781
12798
  },
12782
12799
  tr(e, t, n, r) {
12783
- r ||= og.groups;
12800
+ r ||= sg.groups;
12784
12801
  let i;
12785
- return t && t.j ? i = t : (i = new og(t), n && r && ig(t, n, r)), this.jr.push([e, i]), i;
12802
+ return t && t.j ? i = t : (i = new sg(t), n && r && ag(t, n, r)), this.jr.push([e, i]), i;
12786
12803
  },
12787
12804
  ts(e, t, n, r) {
12788
12805
  let i = this, a = e.length;
@@ -12791,119 +12808,119 @@ og.groups = {}, og.prototype = {
12791
12808
  return i.tt(e[a - 1], t, n, r);
12792
12809
  },
12793
12810
  tt(e, t, n, r) {
12794
- r ||= og.groups;
12811
+ r ||= sg.groups;
12795
12812
  let i = this;
12796
12813
  if (t && t.j) return i.j[e] = t, t;
12797
12814
  let a = t, o, s = i.go(e);
12798
- return s ? (o = new og(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new og(), a && (r && (o.t && typeof o.t == "string" ? ig(a, Object.assign(ag(o.t, r), n), r) : n && ig(a, n, r)), o.t = a), i.j[e] = o, o;
12815
+ return s ? (o = new sg(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new sg(), a && (r && (o.t && typeof o.t == "string" ? ag(a, Object.assign(og(o.t, r), n), r) : n && ag(a, n, r)), o.t = a), i.j[e] = o, o;
12799
12816
  }
12800
12817
  };
12801
- var Y = (e, t, n, r, i) => e.ta(t, n, r, i), X = (e, t, n, r, i) => e.tr(t, n, r, i), sg = (e, t, n, r, i) => e.ts(t, n, r, i), Z = (e, t, n, r, i) => e.tt(t, n, r, i), cg = "WORD", lg = "UWORD", ug = "ASCIINUMERICAL", dg = "ALPHANUMERICAL", fg = "LOCALHOST", pg = "TLD", mg = "UTLD", hg = "SCHEME", gg = "SLASH_SCHEME", _g = "NUM", vg = "WS", yg = "NL", bg = "OPENBRACE", xg = "CLOSEBRACE", Sg = "OPENBRACKET", Cg = "CLOSEBRACKET", wg = "OPENPAREN", Tg = "CLOSEPAREN", Eg = "OPENANGLEBRACKET", Dg = "CLOSEANGLEBRACKET", Og = "FULLWIDTHLEFTPAREN", kg = "FULLWIDTHRIGHTPAREN", Ag = "LEFTCORNERBRACKET", jg = "RIGHTCORNERBRACKET", Mg = "LEFTWHITECORNERBRACKET", Ng = "RIGHTWHITECORNERBRACKET", Pg = "FULLWIDTHLESSTHAN", Fg = "FULLWIDTHGREATERTHAN", Ig = "AMPERSAND", Lg = "APOSTROPHE", Rg = "ASTERISK", zg = "AT", Bg = "BACKSLASH", Vg = "BACKTICK", Hg = "CARET", Ug = "COLON", Wg = "COMMA", Gg = "DOLLAR", Kg = "DOT", qg = "EQUALS", Jg = "EXCLAMATION", Yg = "HYPHEN", Xg = "PERCENT", Zg = "PIPE", Qg = "PLUS", $g = "POUND", e_ = "QUERY", t_ = "QUOTE", n_ = "FULLWIDTHMIDDLEDOT", r_ = "SEMI", i_ = "SLASH", a_ = "TILDE", o_ = "UNDERSCORE", s_ = "EMOJI", c_ = "SYM", l_ = /*#__PURE__*/ Object.freeze({
12818
+ var Y = (e, t, n, r, i) => e.ta(t, n, r, i), X = (e, t, n, r, i) => e.tr(t, n, r, i), cg = (e, t, n, r, i) => e.ts(t, n, r, i), Z = (e, t, n, r, i) => e.tt(t, n, r, i), lg = "WORD", ug = "UWORD", dg = "ASCIINUMERICAL", fg = "ALPHANUMERICAL", pg = "LOCALHOST", mg = "TLD", hg = "UTLD", gg = "SCHEME", _g = "SLASH_SCHEME", vg = "NUM", yg = "WS", bg = "NL", xg = "OPENBRACE", Sg = "CLOSEBRACE", Cg = "OPENBRACKET", wg = "CLOSEBRACKET", Tg = "OPENPAREN", Eg = "CLOSEPAREN", Dg = "OPENANGLEBRACKET", Og = "CLOSEANGLEBRACKET", kg = "FULLWIDTHLEFTPAREN", Ag = "FULLWIDTHRIGHTPAREN", jg = "LEFTCORNERBRACKET", Mg = "RIGHTCORNERBRACKET", Ng = "LEFTWHITECORNERBRACKET", Pg = "RIGHTWHITECORNERBRACKET", Fg = "FULLWIDTHLESSTHAN", Ig = "FULLWIDTHGREATERTHAN", Lg = "AMPERSAND", Rg = "APOSTROPHE", zg = "ASTERISK", Bg = "AT", Vg = "BACKSLASH", Hg = "BACKTICK", Ug = "CARET", Wg = "COLON", Gg = "COMMA", Kg = "DOLLAR", qg = "DOT", Jg = "EQUALS", Yg = "EXCLAMATION", Xg = "HYPHEN", Zg = "PERCENT", Qg = "PIPE", $g = "PLUS", e_ = "POUND", t_ = "QUERY", n_ = "QUOTE", r_ = "FULLWIDTHMIDDLEDOT", i_ = "SEMI", a_ = "SLASH", o_ = "TILDE", s_ = "UNDERSCORE", c_ = "EMOJI", l_ = "SYM", u_ = /*#__PURE__*/ Object.freeze({
12802
12819
  __proto__: null,
12803
- ALPHANUMERICAL: dg,
12804
- AMPERSAND: Ig,
12805
- APOSTROPHE: Lg,
12806
- ASCIINUMERICAL: ug,
12807
- ASTERISK: Rg,
12808
- AT: zg,
12809
- BACKSLASH: Bg,
12810
- BACKTICK: Vg,
12811
- CARET: Hg,
12812
- CLOSEANGLEBRACKET: Dg,
12813
- CLOSEBRACE: xg,
12814
- CLOSEBRACKET: Cg,
12815
- CLOSEPAREN: Tg,
12816
- COLON: Ug,
12817
- COMMA: Wg,
12818
- DOLLAR: Gg,
12819
- DOT: Kg,
12820
- EMOJI: s_,
12821
- EQUALS: qg,
12822
- EXCLAMATION: Jg,
12823
- FULLWIDTHGREATERTHAN: Fg,
12824
- FULLWIDTHLEFTPAREN: Og,
12825
- FULLWIDTHLESSTHAN: Pg,
12826
- FULLWIDTHMIDDLEDOT: n_,
12827
- FULLWIDTHRIGHTPAREN: kg,
12828
- HYPHEN: Yg,
12829
- LEFTCORNERBRACKET: Ag,
12830
- LEFTWHITECORNERBRACKET: Mg,
12831
- LOCALHOST: fg,
12832
- NL: yg,
12833
- NUM: _g,
12834
- OPENANGLEBRACKET: Eg,
12835
- OPENBRACE: bg,
12836
- OPENBRACKET: Sg,
12837
- OPENPAREN: wg,
12838
- PERCENT: Xg,
12839
- PIPE: Zg,
12840
- PLUS: Qg,
12841
- POUND: $g,
12842
- QUERY: e_,
12843
- QUOTE: t_,
12844
- RIGHTCORNERBRACKET: jg,
12845
- RIGHTWHITECORNERBRACKET: Ng,
12846
- SCHEME: hg,
12847
- SEMI: r_,
12848
- SLASH: i_,
12849
- SLASH_SCHEME: gg,
12850
- SYM: c_,
12851
- TILDE: a_,
12852
- TLD: pg,
12853
- UNDERSCORE: o_,
12854
- UTLD: mg,
12855
- UWORD: lg,
12856
- WORD: cg,
12857
- WS: vg
12858
- }), u_ = /[a-z]/, d_ = /\p{L}/u, f_ = /\p{Emoji}/u, p_ = /\d/, m_ = /\s/, h_ = "\r", g_ = "\n", __ = "️", v_ = "‍", y_ = "", b_ = null, x_ = null;
12859
- function S_(e = []) {
12820
+ ALPHANUMERICAL: fg,
12821
+ AMPERSAND: Lg,
12822
+ APOSTROPHE: Rg,
12823
+ ASCIINUMERICAL: dg,
12824
+ ASTERISK: zg,
12825
+ AT: Bg,
12826
+ BACKSLASH: Vg,
12827
+ BACKTICK: Hg,
12828
+ CARET: Ug,
12829
+ CLOSEANGLEBRACKET: Og,
12830
+ CLOSEBRACE: Sg,
12831
+ CLOSEBRACKET: wg,
12832
+ CLOSEPAREN: Eg,
12833
+ COLON: Wg,
12834
+ COMMA: Gg,
12835
+ DOLLAR: Kg,
12836
+ DOT: qg,
12837
+ EMOJI: c_,
12838
+ EQUALS: Jg,
12839
+ EXCLAMATION: Yg,
12840
+ FULLWIDTHGREATERTHAN: Ig,
12841
+ FULLWIDTHLEFTPAREN: kg,
12842
+ FULLWIDTHLESSTHAN: Fg,
12843
+ FULLWIDTHMIDDLEDOT: r_,
12844
+ FULLWIDTHRIGHTPAREN: Ag,
12845
+ HYPHEN: Xg,
12846
+ LEFTCORNERBRACKET: jg,
12847
+ LEFTWHITECORNERBRACKET: Ng,
12848
+ LOCALHOST: pg,
12849
+ NL: bg,
12850
+ NUM: vg,
12851
+ OPENANGLEBRACKET: Dg,
12852
+ OPENBRACE: xg,
12853
+ OPENBRACKET: Cg,
12854
+ OPENPAREN: Tg,
12855
+ PERCENT: Zg,
12856
+ PIPE: Qg,
12857
+ PLUS: $g,
12858
+ POUND: e_,
12859
+ QUERY: t_,
12860
+ QUOTE: n_,
12861
+ RIGHTCORNERBRACKET: Mg,
12862
+ RIGHTWHITECORNERBRACKET: Pg,
12863
+ SCHEME: gg,
12864
+ SEMI: i_,
12865
+ SLASH: a_,
12866
+ SLASH_SCHEME: _g,
12867
+ SYM: l_,
12868
+ TILDE: o_,
12869
+ TLD: mg,
12870
+ UNDERSCORE: s_,
12871
+ UTLD: hg,
12872
+ UWORD: ug,
12873
+ WORD: lg,
12874
+ WS: yg
12875
+ }), d_ = /[a-z]/, f_ = /\p{L}/u, p_ = /\p{Emoji}/u, m_ = /\d/, h_ = /\s/, g_ = "\r", __ = "\n", v_ = "️", y_ = "‍", b_ = "", x_ = null, S_ = null;
12876
+ function C_(e = []) {
12860
12877
  let t = {};
12861
- og.groups = t;
12862
- let n = new og();
12863
- b_ ??= E_(Gh), x_ ??= E_(Kh), Z(n, "'", Lg), Z(n, "{", bg), Z(n, "}", xg), Z(n, "[", Sg), Z(n, "]", Cg), Z(n, "(", wg), Z(n, ")", Tg), Z(n, "<", Eg), Z(n, ">", Dg), Z(n, "(", Og), Z(n, ")", kg), Z(n, "「", Ag), Z(n, "」", jg), Z(n, "『", Mg), Z(n, "』", Ng), Z(n, "<", Pg), Z(n, ">", Fg), Z(n, "&", Ig), Z(n, "*", Rg), Z(n, "@", zg), Z(n, "`", Vg), Z(n, "^", Hg), Z(n, ":", Ug), Z(n, ",", Wg), Z(n, "$", Gg), Z(n, ".", Kg), Z(n, "=", qg), Z(n, "!", Jg), Z(n, "-", Yg), Z(n, "%", Xg), Z(n, "|", Zg), Z(n, "+", Qg), Z(n, "#", $g), Z(n, "?", e_), Z(n, "\"", t_), Z(n, "/", i_), Z(n, ";", r_), Z(n, "~", a_), Z(n, "_", o_), Z(n, "\\", Bg), Z(n, "・", n_);
12864
- let r = X(n, p_, _g, { [qh]: !0 });
12865
- X(r, p_, r);
12866
- let i = X(r, u_, ug, { [Xh]: !0 }), a = X(r, d_, dg, { [Zh]: !0 }), o = X(n, u_, cg, { [Jh]: !0 });
12867
- X(o, p_, i), X(o, u_, o), X(i, p_, i), X(i, u_, i);
12868
- let s = X(n, d_, lg, { [Yh]: !0 });
12869
- X(s, u_), X(s, p_, a), X(s, d_, s), X(a, p_, a), X(a, u_), X(a, d_, a);
12870
- let c = Z(n, g_, yg, { [ng]: !0 }), l = Z(n, h_, vg, { [ng]: !0 }), u = X(n, m_, vg, { [ng]: !0 });
12871
- Z(n, y_, u), Z(l, g_, c), Z(l, y_, u), X(l, m_, u), Z(u, h_), Z(u, g_), X(u, m_, u), Z(u, y_, u);
12872
- let d = X(n, f_, s_, { [$h]: !0 });
12873
- Z(d, "#"), X(d, f_, d), Z(d, __, d);
12874
- let f = Z(d, v_);
12875
- Z(f, "#"), X(f, f_, d);
12876
- let p = [[u_, o], [p_, i]], m = [
12877
- [u_, null],
12878
- [d_, s],
12879
- [p_, a]
12878
+ sg.groups = t;
12879
+ let n = new sg();
12880
+ x_ ??= D_(Kh), S_ ??= D_(qh), Z(n, "'", Rg), Z(n, "{", xg), Z(n, "}", Sg), Z(n, "[", Cg), Z(n, "]", wg), Z(n, "(", Tg), Z(n, ")", Eg), Z(n, "<", Dg), Z(n, ">", Og), Z(n, "(", kg), Z(n, ")", Ag), Z(n, "「", jg), Z(n, "」", Mg), Z(n, "『", Ng), Z(n, "』", Pg), Z(n, "<", Fg), Z(n, ">", Ig), Z(n, "&", Lg), Z(n, "*", zg), Z(n, "@", Bg), Z(n, "`", Hg), Z(n, "^", Ug), Z(n, ":", Wg), Z(n, ",", Gg), Z(n, "$", Kg), Z(n, ".", qg), Z(n, "=", Jg), Z(n, "!", Yg), Z(n, "-", Xg), Z(n, "%", Zg), Z(n, "|", Qg), Z(n, "+", $g), Z(n, "#", e_), Z(n, "?", t_), Z(n, "\"", n_), Z(n, "/", a_), Z(n, ";", i_), Z(n, "~", o_), Z(n, "_", s_), Z(n, "\\", Vg), Z(n, "・", r_);
12881
+ let r = X(n, m_, vg, { [Jh]: !0 });
12882
+ X(r, m_, r);
12883
+ let i = X(r, d_, dg, { [Zh]: !0 }), a = X(r, f_, fg, { [Qh]: !0 }), o = X(n, d_, lg, { [Yh]: !0 });
12884
+ X(o, m_, i), X(o, d_, o), X(i, m_, i), X(i, d_, i);
12885
+ let s = X(n, f_, ug, { [Xh]: !0 });
12886
+ X(s, d_), X(s, m_, a), X(s, f_, s), X(a, m_, a), X(a, d_), X(a, f_, a);
12887
+ let c = Z(n, __, bg, { [rg]: !0 }), l = Z(n, g_, yg, { [rg]: !0 }), u = X(n, h_, yg, { [rg]: !0 });
12888
+ Z(n, b_, u), Z(l, __, c), Z(l, b_, u), X(l, h_, u), Z(u, g_), Z(u, __), X(u, h_, u), Z(u, b_, u);
12889
+ let d = X(n, p_, c_, { [eg]: !0 });
12890
+ Z(d, "#"), X(d, p_, d), Z(d, v_, d);
12891
+ let f = Z(d, y_);
12892
+ Z(f, "#"), X(f, p_, d);
12893
+ let p = [[d_, o], [m_, i]], m = [
12894
+ [d_, null],
12895
+ [f_, s],
12896
+ [m_, a]
12880
12897
  ];
12881
- for (let e = 0; e < b_.length; e++) T_(n, b_[e], pg, cg, p);
12882
- for (let e = 0; e < x_.length; e++) T_(n, x_[e], mg, lg, m);
12883
- ig(pg, {
12898
+ for (let e = 0; e < x_.length; e++) E_(n, x_[e], mg, lg, p);
12899
+ for (let e = 0; e < S_.length; e++) E_(n, S_[e], hg, ug, m);
12900
+ ag(mg, {
12884
12901
  tld: !0,
12885
12902
  ascii: !0
12886
- }, t), ig(mg, {
12903
+ }, t), ag(hg, {
12887
12904
  utld: !0,
12888
12905
  alpha: !0
12889
- }, t), T_(n, "file", hg, cg, p), T_(n, "mailto", hg, cg, p), T_(n, "http", gg, cg, p), T_(n, "https", gg, cg, p), T_(n, "ftp", gg, cg, p), T_(n, "ftps", gg, cg, p), ig(hg, {
12906
+ }, t), E_(n, "file", gg, lg, p), E_(n, "mailto", gg, lg, p), E_(n, "http", _g, lg, p), E_(n, "https", _g, lg, p), E_(n, "ftp", _g, lg, p), E_(n, "ftps", _g, lg, p), ag(gg, {
12890
12907
  scheme: !0,
12891
12908
  ascii: !0
12892
- }, t), ig(gg, {
12909
+ }, t), ag(_g, {
12893
12910
  slashscheme: !0,
12894
12911
  ascii: !0
12895
12912
  }, t), e = e.sort((e, t) => e[0] > t[0] ? 1 : -1);
12896
12913
  for (let t = 0; t < e.length; t++) {
12897
- let r = e[t][0], i = e[t][1] ? { [eg]: !0 } : { [tg]: !0 };
12898
- r.indexOf("-") >= 0 ? i[Qh] = !0 : u_.test(r) ? p_.test(r) ? i[Xh] = !0 : i[Jh] = !0 : i[qh] = !0, sg(n, r, r, i);
12914
+ let r = e[t][0], i = e[t][1] ? { [tg]: !0 } : { [ng]: !0 };
12915
+ r.indexOf("-") >= 0 ? i[$h] = !0 : d_.test(r) ? m_.test(r) ? i[Zh] = !0 : i[Yh] = !0 : i[Jh] = !0, cg(n, r, r, i);
12899
12916
  }
12900
- return sg(n, "localhost", fg, { ascii: !0 }), n.jd = new og(c_), {
12917
+ return cg(n, "localhost", pg, { ascii: !0 }), n.jd = new sg(l_), {
12901
12918
  start: n,
12902
- tokens: Object.assign({ groups: t }, l_)
12919
+ tokens: Object.assign({ groups: t }, u_)
12903
12920
  };
12904
12921
  }
12905
- function C_(e, t) {
12906
- let n = w_(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
12922
+ function w_(e, t) {
12923
+ let n = T_(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
12907
12924
  for (; o < r;) {
12908
12925
  let s = e, c = null, l = 0, u = null, d = -1, f = -1;
12909
12926
  for (; o < r && (c = s.go(n[o]));) s = c, s.accepts() ? (d = 0, f = 0, u = s) : d >= 0 && (d += n[o].length, f++), l += n[o].length, a += n[o].length, o++;
@@ -12916,7 +12933,7 @@ function C_(e, t) {
12916
12933
  }
12917
12934
  return i;
12918
12935
  }
12919
- function w_(e) {
12936
+ function T_(e) {
12920
12937
  let t = [], n = e.length, r = 0;
12921
12938
  for (; r < n;) {
12922
12939
  let i = e.charCodeAt(r), a, o = i < 55296 || i > 56319 || r + 1 === n || (a = e.charCodeAt(r + 1)) < 56320 || a > 57343 ? e[r] : e.slice(r, r + 2);
@@ -12924,15 +12941,15 @@ function w_(e) {
12924
12941
  }
12925
12942
  return t;
12926
12943
  }
12927
- function T_(e, t, n, r, i) {
12944
+ function E_(e, t, n, r, i) {
12928
12945
  let a, o = t.length;
12929
12946
  for (let n = 0; n < o - 1; n++) {
12930
12947
  let o = t[n];
12931
- e.j[o] ? a = e.j[o] : (a = new og(r), a.jr = i.slice(), e.j[o] = a), e = a;
12948
+ e.j[o] ? a = e.j[o] : (a = new sg(r), a.jr = i.slice(), e.j[o] = a), e = a;
12932
12949
  }
12933
- return a = new og(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
12950
+ return a = new sg(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
12934
12951
  }
12935
- function E_(e) {
12952
+ function D_(e) {
12936
12953
  let t = [], n = [], r = 0;
12937
12954
  for (; r < e.length;) {
12938
12955
  let i = 0;
@@ -12945,11 +12962,11 @@ function E_(e) {
12945
12962
  }
12946
12963
  return t;
12947
12964
  }
12948
- var D_ = {
12965
+ var O_ = {
12949
12966
  defaultProtocol: "http",
12950
12967
  events: null,
12951
- format: k_,
12952
- formatHref: k_,
12968
+ format: A_,
12969
+ formatHref: A_,
12953
12970
  nl2br: !1,
12954
12971
  tagName: "a",
12955
12972
  target: null,
@@ -12961,15 +12978,15 @@ var D_ = {
12961
12978
  ignoreTags: [],
12962
12979
  render: null
12963
12980
  };
12964
- function O_(e, t = null) {
12965
- let n = Object.assign({}, D_);
12966
- e && (n = Object.assign(n, e instanceof O_ ? e.o : e));
12981
+ function k_(e, t = null) {
12982
+ let n = Object.assign({}, O_);
12983
+ e && (n = Object.assign(n, e instanceof k_ ? e.o : e));
12967
12984
  let r = n.ignoreTags, i = [];
12968
12985
  for (let e = 0; e < r.length; e++) i.push(r[e].toUpperCase());
12969
12986
  this.o = n, t && (this.defaultRender = t), this.ignoreTags = i;
12970
12987
  }
12971
- O_.prototype = {
12972
- o: D_,
12988
+ k_.prototype = {
12989
+ o: O_,
12973
12990
  ignoreTags: [],
12974
12991
  defaultRender(e) {
12975
12992
  return e;
@@ -12979,7 +12996,7 @@ O_.prototype = {
12979
12996
  },
12980
12997
  get(e, t, n) {
12981
12998
  let r = t != null, i = this.o[e];
12982
- return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : D_[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
12999
+ return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : O_[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
12983
13000
  },
12984
13001
  getObj(e, t, n) {
12985
13002
  let r = this.o[e];
@@ -12990,13 +13007,13 @@ O_.prototype = {
12990
13007
  return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
12991
13008
  }
12992
13009
  };
12993
- function k_(e) {
13010
+ function A_(e) {
12994
13011
  return e;
12995
13012
  }
12996
- function A_(e, t) {
13013
+ function j_(e, t) {
12997
13014
  this.t = "token", this.v = e, this.tk = t;
12998
13015
  }
12999
- A_.prototype = {
13016
+ j_.prototype = {
13000
13017
  isLink: !1,
13001
13018
  toString() {
13002
13019
  return this.v;
@@ -13017,7 +13034,7 @@ A_.prototype = {
13017
13034
  endIndex() {
13018
13035
  return this.tk[this.tk.length - 1].e;
13019
13036
  },
13020
- toObject(e = D_.defaultProtocol) {
13037
+ toObject(e = O_.defaultProtocol) {
13021
13038
  return {
13022
13039
  type: this.t,
13023
13040
  value: this.toString(),
@@ -13050,8 +13067,8 @@ A_.prototype = {
13050
13067
  };
13051
13068
  }
13052
13069
  };
13053
- function j_(e, t) {
13054
- class n extends A_ {
13070
+ function M_(e, t) {
13071
+ class n extends j_ {
13055
13072
  constructor(t, n) {
13056
13073
  super(t, n), this.t = e;
13057
13074
  }
@@ -13059,138 +13076,138 @@ function j_(e, t) {
13059
13076
  for (let e in t) n.prototype[e] = t[e];
13060
13077
  return n.t = e, n;
13061
13078
  }
13062
- var M_ = j_("email", {
13079
+ var N_ = M_("email", {
13063
13080
  isLink: !0,
13064
13081
  toHref() {
13065
13082
  return "mailto:" + this.toString();
13066
13083
  }
13067
- }), N_ = j_("text"), P_ = j_("nl"), F_ = j_("url", {
13084
+ }), P_ = M_("text"), F_ = M_("nl"), I_ = M_("url", {
13068
13085
  isLink: !0,
13069
- toHref(e = D_.defaultProtocol) {
13086
+ toHref(e = O_.defaultProtocol) {
13070
13087
  return this.hasProtocol() ? this.v : `${e}://${this.v}`;
13071
13088
  },
13072
13089
  hasProtocol() {
13073
13090
  let e = this.tk;
13074
- return e.length >= 2 && e[0].t !== fg && e[1].t === Ug;
13091
+ return e.length >= 2 && e[0].t !== pg && e[1].t === Wg;
13075
13092
  }
13076
- }), I_ = (e) => new og(e);
13077
- function L_({ groups: e }) {
13093
+ }), L_ = (e) => new sg(e);
13094
+ function R_({ groups: e }) {
13078
13095
  let t = e.domain.concat([
13079
- Ig,
13080
- Rg,
13096
+ Lg,
13081
13097
  zg,
13082
13098
  Bg,
13083
13099
  Vg,
13084
13100
  Hg,
13085
- Gg,
13086
- qg,
13087
- Yg,
13088
- _g,
13101
+ Ug,
13102
+ Kg,
13103
+ Jg,
13089
13104
  Xg,
13105
+ vg,
13090
13106
  Zg,
13091
13107
  Qg,
13092
13108
  $g,
13093
- i_,
13094
- c_,
13109
+ e_,
13095
13110
  a_,
13096
- o_
13111
+ l_,
13112
+ o_,
13113
+ s_
13097
13114
  ]), n = [
13098
- Lg,
13099
- Ug,
13115
+ Rg,
13100
13116
  Wg,
13101
- Kg,
13102
- Jg,
13103
- Xg,
13104
- e_,
13117
+ Gg,
13118
+ qg,
13119
+ Yg,
13120
+ Zg,
13105
13121
  t_,
13106
- r_,
13107
- Eg,
13122
+ n_,
13123
+ i_,
13108
13124
  Dg,
13109
- bg,
13125
+ Og,
13110
13126
  xg,
13111
- Cg,
13112
13127
  Sg,
13113
13128
  wg,
13129
+ Cg,
13114
13130
  Tg,
13115
- Og,
13131
+ Eg,
13116
13132
  kg,
13117
13133
  Ag,
13118
13134
  jg,
13119
13135
  Mg,
13120
13136
  Ng,
13121
13137
  Pg,
13122
- Fg
13138
+ Fg,
13139
+ Ig
13123
13140
  ], r = [
13124
- Ig,
13125
13141
  Lg,
13126
13142
  Rg,
13127
- Bg,
13143
+ zg,
13128
13144
  Vg,
13129
13145
  Hg,
13130
- Gg,
13131
- qg,
13132
- Yg,
13133
- bg,
13134
- xg,
13146
+ Ug,
13147
+ Kg,
13148
+ Jg,
13135
13149
  Xg,
13150
+ xg,
13151
+ Sg,
13136
13152
  Zg,
13137
13153
  Qg,
13138
13154
  $g,
13139
13155
  e_,
13140
- i_,
13141
- c_,
13156
+ t_,
13142
13157
  a_,
13143
- o_
13144
- ], i = I_(), a = Z(i, a_);
13158
+ l_,
13159
+ o_,
13160
+ s_
13161
+ ], i = L_(), a = Z(i, o_);
13145
13162
  Y(a, r, a), Y(a, e.domain, a);
13146
- let o = I_(), s = I_(), c = I_();
13163
+ let o = L_(), s = L_(), c = L_();
13147
13164
  Y(i, e.domain, o), Y(i, e.scheme, s), Y(i, e.slashscheme, c), Y(o, r, a), Y(o, e.domain, o);
13148
- let l = Z(o, zg);
13149
- Z(a, zg, l), Z(s, zg, l), Z(c, zg, l);
13150
- let u = Z(a, Kg);
13165
+ let l = Z(o, Bg);
13166
+ Z(a, Bg, l), Z(s, Bg, l), Z(c, Bg, l);
13167
+ let u = Z(a, qg);
13151
13168
  Y(u, r, a), Y(u, e.domain, a);
13152
- let d = I_();
13169
+ let d = L_();
13153
13170
  Y(l, e.domain, d), Y(d, e.domain, d);
13154
- let f = Z(d, Kg);
13171
+ let f = Z(d, qg);
13155
13172
  Y(f, e.domain, d);
13156
- let p = I_(M_);
13157
- Y(f, e.tld, p), Y(f, e.utld, p), Z(l, fg, p);
13158
- let m = Z(d, Yg);
13159
- Z(m, Yg, m), Y(m, e.domain, d), Y(p, e.domain, d), Z(p, Kg, f), Z(p, Yg, m);
13160
- let h = Z(o, Yg), g = Z(o, Kg);
13161
- Z(h, Yg, h), Y(h, e.domain, o), Y(g, r, a), Y(g, e.domain, o);
13162
- let _ = I_(F_);
13163
- Y(g, e.tld, _), Y(g, e.utld, _), Y(_, e.domain, o), Y(_, r, a), Z(_, Kg, g), Z(_, Yg, h), Z(_, zg, l);
13164
- let v = Z(_, Ug), y = I_(F_);
13173
+ let p = L_(N_);
13174
+ Y(f, e.tld, p), Y(f, e.utld, p), Z(l, pg, p);
13175
+ let m = Z(d, Xg);
13176
+ Z(m, Xg, m), Y(m, e.domain, d), Y(p, e.domain, d), Z(p, qg, f), Z(p, Xg, m);
13177
+ let h = Z(o, Xg), g = Z(o, qg);
13178
+ Z(h, Xg, h), Y(h, e.domain, o), Y(g, r, a), Y(g, e.domain, o);
13179
+ let _ = L_(I_);
13180
+ Y(g, e.tld, _), Y(g, e.utld, _), Y(_, e.domain, o), Y(_, r, a), Z(_, qg, g), Z(_, Xg, h), Z(_, Bg, l);
13181
+ let v = Z(_, Wg), y = L_(I_);
13165
13182
  Y(v, e.numeric, y);
13166
- let b = I_(F_), x = I_();
13167
- Y(b, t, b), Y(b, n, x), Y(x, t, b), Y(x, n, x), Z(_, i_, b), Z(y, i_, b);
13168
- let S = Z(s, Ug), C = Z(Z(Z(c, Ug), i_), i_);
13169
- Y(s, e.domain, o), Z(s, Kg, g), Z(s, Yg, h), Y(c, e.domain, o), Z(c, Kg, g), Z(c, Yg, h), Y(S, e.domain, b), Z(S, i_, b), Z(S, e_, b), Y(C, e.domain, b), Y(C, t, b), Z(C, i_, b);
13183
+ let b = L_(I_), x = L_();
13184
+ Y(b, t, b), Y(b, n, x), Y(x, t, b), Y(x, n, x), Z(_, a_, b), Z(y, a_, b);
13185
+ let S = Z(s, Wg), C = Z(Z(Z(c, Wg), a_), a_);
13186
+ Y(s, e.domain, o), Z(s, qg, g), Z(s, Xg, h), Y(c, e.domain, o), Z(c, qg, g), Z(c, Xg, h), Y(S, e.domain, b), Z(S, a_, b), Z(S, t_, b), Y(C, e.domain, b), Y(C, t, b), Z(C, a_, b);
13170
13187
  let w = [
13171
- [bg, xg],
13172
- [Sg, Cg],
13173
- [wg, Tg],
13174
- [Eg, Dg],
13175
- [Og, kg],
13176
- [Ag, jg],
13177
- [Mg, Ng],
13178
- [Pg, Fg]
13188
+ [xg, Sg],
13189
+ [Cg, wg],
13190
+ [Tg, Eg],
13191
+ [Dg, Og],
13192
+ [kg, Ag],
13193
+ [jg, Mg],
13194
+ [Ng, Pg],
13195
+ [Fg, Ig]
13179
13196
  ];
13180
13197
  for (let e = 0; e < w.length; e++) {
13181
13198
  let [r, i] = w[e], a = Z(b, r);
13182
13199
  Z(x, r, a);
13183
- let o = I_(F_);
13200
+ let o = L_(I_);
13184
13201
  Y(a, t, o);
13185
- let s = I_();
13202
+ let s = L_();
13186
13203
  Y(a, n, s), Z(a, i, b), Y(o, t, o), Y(o, n, s), Y(s, t, o), Y(s, n, s), Z(o, i, b), Z(s, i, b);
13187
13204
  }
13188
- return Z(i, fg, _), Z(i, yg, P_), {
13205
+ return Z(i, pg, _), Z(i, bg, F_), {
13189
13206
  start: i,
13190
- tokens: l_
13207
+ tokens: u_
13191
13208
  };
13192
13209
  }
13193
- function R_(e, t, n) {
13210
+ function z_(e, t, n) {
13194
13211
  let r = n.length, i = 0, a = [], o = [];
13195
13212
  for (; i < r;) {
13196
13213
  let s = e, c = null, l = null, u = 0, d = null, f = -1;
@@ -13198,18 +13215,18 @@ function R_(e, t, n) {
13198
13215
  for (; i < r && (l = c || s.go(n[i].t));) c = null, s = l, s.accepts() ? (f = 0, d = s) : f >= 0 && f++, i++, u++;
13199
13216
  if (f < 0) i -= u, i < r && (o.push(n[i]), i++);
13200
13217
  else {
13201
- o.length > 0 && (a.push(z_(N_, t, o)), o = []), i -= f, u -= f;
13218
+ o.length > 0 && (a.push(B_(P_, t, o)), o = []), i -= f, u -= f;
13202
13219
  let e = d.t, r = n.slice(i - u, i);
13203
- a.push(z_(e, t, r));
13220
+ a.push(B_(e, t, r));
13204
13221
  }
13205
13222
  }
13206
- return o.length > 0 && a.push(z_(N_, t, o)), a;
13223
+ return o.length > 0 && a.push(B_(P_, t, o)), a;
13207
13224
  }
13208
- function z_(e, t, n) {
13225
+ function B_(e, t, n) {
13209
13226
  let r = n[0].s, i = n[n.length - 1].e;
13210
13227
  return new e(t.slice(r, i), n);
13211
13228
  }
13212
- var B_ = typeof console < "u" && console && console.warn || (() => {}), V_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Q = {
13229
+ var V_ = typeof console < "u" && console && console.warn || (() => {}), H_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Q = {
13213
13230
  scanner: null,
13214
13231
  parser: null,
13215
13232
  tokenQueue: [],
@@ -13217,33 +13234,33 @@ var B_ = typeof console < "u" && console && console.warn || (() => {}), V_ = "un
13217
13234
  customSchemes: [],
13218
13235
  initialized: !1
13219
13236
  };
13220
- function H_() {
13221
- return og.groups = {}, Q.scanner = null, Q.parser = null, Q.tokenQueue = [], Q.pluginQueue = [], Q.customSchemes = [], Q.initialized = !1, Q;
13237
+ function U_() {
13238
+ return sg.groups = {}, Q.scanner = null, Q.parser = null, Q.tokenQueue = [], Q.pluginQueue = [], Q.customSchemes = [], Q.initialized = !1, Q;
13222
13239
  }
13223
- function U_(e, t = !1) {
13224
- if (Q.initialized && B_(`linkifyjs: already initialized - will not register custom scheme "${e}" ${V_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
13240
+ function W_(e, t = !1) {
13241
+ if (Q.initialized && V_(`linkifyjs: already initialized - will not register custom scheme "${e}" ${H_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
13225
13242
  Q.customSchemes.push([e, t]);
13226
13243
  }
13227
- function W_() {
13228
- Q.scanner = S_(Q.customSchemes);
13244
+ function G_() {
13245
+ Q.scanner = C_(Q.customSchemes);
13229
13246
  for (let e = 0; e < Q.tokenQueue.length; e++) Q.tokenQueue[e][1]({ scanner: Q.scanner });
13230
- Q.parser = L_(Q.scanner.tokens);
13247
+ Q.parser = R_(Q.scanner.tokens);
13231
13248
  for (let e = 0; e < Q.pluginQueue.length; e++) Q.pluginQueue[e][1]({
13232
13249
  scanner: Q.scanner,
13233
13250
  parser: Q.parser
13234
13251
  });
13235
13252
  return Q.initialized = !0, Q;
13236
13253
  }
13237
- function G_(e) {
13238
- return Q.initialized || W_(), R_(Q.parser.start, e, C_(Q.scanner.start, e));
13254
+ function K_(e) {
13255
+ return Q.initialized || G_(), z_(Q.parser.start, e, w_(Q.scanner.start, e));
13239
13256
  }
13240
- G_.scan = C_;
13241
- function K_(e, t = null, n = null) {
13257
+ K_.scan = w_;
13258
+ function q_(e, t = null, n = null) {
13242
13259
  if (t && typeof t == "object") {
13243
13260
  if (n) throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);
13244
13261
  n = t, t = null;
13245
13262
  }
13246
- let r = new O_(n), i = G_(e), a = [];
13263
+ let r = new k_(n), i = K_(e), a = [];
13247
13264
  for (let e = 0; e < i.length; e++) {
13248
13265
  let n = i[e];
13249
13266
  n.isLink && (!t || n.t === t) && r.check(n) && a.push(n.toFormattedObject(r));
@@ -13251,17 +13268,17 @@ function K_(e, t = null, n = null) {
13251
13268
  return a;
13252
13269
  }
13253
13270
  //#endregion
13254
- //#region ../../node_modules/.pnpm/@tiptap+extension-link@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tiptap+pm@3.30.1/node_modules/@tiptap/extension-link/dist/index.js
13255
- var q_ = /* @__PURE__ */ e({
13256
- Link: () => mv,
13257
- default: () => hv,
13258
- isAllowedUri: () => pv,
13259
- pasteRegex: () => fv
13260
- }), J_ = "[\0- \xA0 ᠎ -\u2029  ]", Y_ = new RegExp(J_), X_ = RegExp(`${J_}$`), Z_ = new RegExp(J_, "g");
13261
- function Q_(e) {
13271
+ //#region ../../node_modules/.pnpm/@tiptap+extension-link@3.30.2_@tiptap+core@3.30.2_@tiptap+pm@3.30.2__@tiptap+pm@3.30.2/node_modules/@tiptap/extension-link/dist/index.js
13272
+ var J_ = /* @__PURE__ */ e({
13273
+ Link: () => hv,
13274
+ default: () => gv,
13275
+ isAllowedUri: () => mv,
13276
+ pasteRegex: () => pv
13277
+ }), Y_ = "[\0- \xA0 ᠎ -\u2029  ]", X_ = new RegExp(Y_), Z_ = RegExp(`${Y_}$`), Q_ = new RegExp(Y_, "g");
13278
+ function $_(e) {
13262
13279
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
13263
13280
  }
13264
- function $_(e) {
13281
+ function ev(e) {
13265
13282
  return new N({
13266
13283
  key: new P("autolink"),
13267
13284
  appendTransaction: (t, n, r) => {
@@ -13273,16 +13290,16 @@ function $_(e) {
13273
13290
  if (n.length > 1) i = n[0], a = r.doc.textBetween(i.pos, i.pos + i.node.nodeSize, void 0, " ");
13274
13291
  else if (n.length) {
13275
13292
  let e = r.doc.textBetween(t.from, t.to, " ", " ");
13276
- if (!X_.test(e)) return;
13293
+ if (!Z_.test(e)) return;
13277
13294
  i = n[0], a = r.doc.textBetween(i.pos, t.to, void 0, " ");
13278
13295
  }
13279
13296
  if (i && a) {
13280
- let t = a.split(Y_).filter(Boolean);
13297
+ let t = a.split(X_).filter(Boolean);
13281
13298
  if (t.length <= 0) return !1;
13282
13299
  let n = t[t.length - 1], s = i.pos + a.lastIndexOf(n);
13283
13300
  if (!n) return !1;
13284
- let c = G_(n).map((t) => t.toObject(e.defaultProtocol));
13285
- if (!Q_(c)) return !1;
13301
+ let c = K_(n).map((t) => t.toObject(e.defaultProtocol));
13302
+ if (!$_(c)) return !1;
13286
13303
  c.filter((e) => e.isLink).map((e) => ({
13287
13304
  ...e,
13288
13305
  from: s + e.start + 1,
@@ -13295,7 +13312,7 @@ function $_(e) {
13295
13312
  }
13296
13313
  });
13297
13314
  }
13298
- function ev(e) {
13315
+ function tv(e) {
13299
13316
  return new N({
13300
13317
  key: new P("handleClickLink"),
13301
13318
  props: { handleClick: (t, n, r) => {
@@ -13318,20 +13335,20 @@ function ev(e) {
13318
13335
  } }
13319
13336
  });
13320
13337
  }
13321
- var tv = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, nv = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
13322
- function rv(e, t) {
13338
+ var nv = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, rv = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
13339
+ function iv(e, t) {
13323
13340
  let n = 0;
13324
13341
  for (let r = t - 1; r >= 0 && e[r] === "\\"; --r) n += 1;
13325
13342
  return n % 2 == 1;
13326
13343
  }
13327
- function iv(e, t) {
13344
+ function av(e, t) {
13328
13345
  let n = 0, r = 0;
13329
13346
  for (; r < t;) {
13330
13347
  if (e[r] !== "`") {
13331
13348
  r += 1;
13332
13349
  continue;
13333
13350
  }
13334
- if (n === 0 && rv(e, r)) {
13351
+ if (n === 0 && iv(e, r)) {
13335
13352
  r += 1;
13336
13353
  continue;
13337
13354
  }
@@ -13341,11 +13358,11 @@ function iv(e, t) {
13341
13358
  }
13342
13359
  return n > 0;
13343
13360
  }
13344
- function av(e, t, n) {
13361
+ function ov(e, t, n) {
13345
13362
  let [, r, i] = t;
13346
- return (t.index ? e[t.index - 1] : void 0) === "!" || rv(e, t.index ?? 0) || iv(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
13363
+ return (t.index ? e[t.index - 1] : void 0) === "!" || iv(e, t.index ?? 0) || av(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
13347
13364
  }
13348
- function ov(e) {
13365
+ function sv(e) {
13349
13366
  let [t, n, r, , i, a, o] = e;
13350
13367
  return {
13351
13368
  index: e.index ?? 0,
@@ -13358,23 +13375,23 @@ function ov(e) {
13358
13375
  }
13359
13376
  };
13360
13377
  }
13361
- function sv(e, t) {
13378
+ function cv(e, t) {
13362
13379
  return e.index < t.index + t.text.length && t.index < e.index + e.text.length;
13363
13380
  }
13364
- function cv(e) {
13381
+ function lv(e) {
13365
13382
  return {
13366
13383
  href: e.data?.href,
13367
13384
  title: e.data?.title ?? null
13368
13385
  };
13369
13386
  }
13370
- function lv(e) {
13387
+ function uv(e) {
13371
13388
  let t = dp({
13372
13389
  find: (t) => {
13373
- let n = tv.exec(t);
13374
- return !n || !av(t, n, e.isAllowedHref) ? null : ov(n);
13390
+ let n = nv.exec(t);
13391
+ return !n || !ov(t, n, e.isAllowedHref) ? null : sv(n);
13375
13392
  },
13376
13393
  type: e.type,
13377
- getAttributes: cv
13394
+ getAttributes: lv
13378
13395
  });
13379
13396
  return new Of({
13380
13397
  find: t.find,
@@ -13384,16 +13401,16 @@ function lv(e) {
13384
13401
  }
13385
13402
  });
13386
13403
  }
13387
- function uv(e) {
13388
- let t = Sp({
13404
+ function dv(e) {
13405
+ let t = Cp({
13389
13406
  find: (t) => {
13390
13407
  let n = [];
13391
- for (let r of t.matchAll(nv)) av(t, r, e.isAllowedHref) && n.push(ov(r));
13392
- let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => sv(t, e)));
13408
+ for (let r of t.matchAll(rv)) ov(t, r, e.isAllowedHref) && n.push(sv(r));
13409
+ let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => cv(t, e)));
13393
13410
  return [...n, ...r];
13394
13411
  },
13395
13412
  type: e.type,
13396
- getAttributes: cv
13413
+ getAttributes: lv
13397
13414
  });
13398
13415
  return new Pf({
13399
13416
  find: t.find,
@@ -13403,7 +13420,7 @@ function uv(e) {
13403
13420
  }
13404
13421
  });
13405
13422
  }
13406
- function dv(e) {
13423
+ function fv(e) {
13407
13424
  return new N({
13408
13425
  key: new P("handlePasteLink"),
13409
13426
  props: { handlePaste: (t, n, r) => {
@@ -13413,13 +13430,13 @@ function dv(e) {
13413
13430
  r.content.forEach((e) => {
13414
13431
  c += e.textContent;
13415
13432
  });
13416
- let l = K_(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
13433
+ let l = q_(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
13417
13434
  return !c || !l || i !== void 0 && !i(l.value) ? !1 : e.editor.commands.setMark(e.type, { href: l.href });
13418
13435
  } }
13419
13436
  });
13420
13437
  }
13421
- var fv = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)/gi;
13422
- function pv(e, t) {
13438
+ var pv = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)/gi;
13439
+ function mv(e, t) {
13423
13440
  let n = [
13424
13441
  "http",
13425
13442
  "https",
@@ -13435,9 +13452,9 @@ function pv(e, t) {
13435
13452
  return t && t.forEach((e) => {
13436
13453
  let t = typeof e == "string" ? e : e.scheme;
13437
13454
  t && n.push(t);
13438
- }), !e || e.replace(Z_, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
13455
+ }), !e || e.replace(Q_, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
13439
13456
  }
13440
- var mv = Nf.create({
13457
+ var hv = Nf.create({
13441
13458
  name: "link",
13442
13459
  priority: 1e3,
13443
13460
  keepOnSplit: !1,
@@ -13445,14 +13462,14 @@ var mv = Nf.create({
13445
13462
  onCreate() {
13446
13463
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((e) => {
13447
13464
  if (typeof e == "string") {
13448
- U_(e);
13465
+ W_(e);
13449
13466
  return;
13450
13467
  }
13451
- U_(e.scheme, e.optionalSlashes);
13468
+ W_(e.scheme, e.optionalSlashes);
13452
13469
  });
13453
13470
  },
13454
13471
  onDestroy() {
13455
- H_();
13472
+ U_();
13456
13473
  },
13457
13474
  inclusive() {
13458
13475
  return this.options.autolink;
@@ -13471,7 +13488,7 @@ var mv = Nf.create({
13471
13488
  rel: "noopener noreferrer nofollow",
13472
13489
  class: null
13473
13490
  },
13474
- isAllowedUri: (e, t) => !!pv(e, t.protocols),
13491
+ isAllowedUri: (e, t) => !!mv(e, t.protocols),
13475
13492
  validate: (e) => !!e,
13476
13493
  shouldAutoLink: (e) => {
13477
13494
  let t = /^[a-z][a-z0-9+.-]*:\/\//i.test(e), n = /^[a-z][a-z0-9+.-]*:/i.test(e);
@@ -13501,7 +13518,7 @@ var mv = Nf.create({
13501
13518
  getAttrs: (e) => {
13502
13519
  let t = e.getAttribute("href");
13503
13520
  return !t || !this.options.isAllowedUri(t, {
13504
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13521
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13505
13522
  protocols: this.options.protocols,
13506
13523
  defaultProtocol: this.options.defaultProtocol
13507
13524
  }) ? !1 : null;
@@ -13510,7 +13527,7 @@ var mv = Nf.create({
13510
13527
  },
13511
13528
  renderHTML({ HTMLAttributes: e }) {
13512
13529
  return this.options.isAllowedUri(e.href, {
13513
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13530
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13514
13531
  protocols: this.options.protocols,
13515
13532
  defaultProtocol: this.options.defaultProtocol
13516
13533
  }) ? [
@@ -13540,7 +13557,7 @@ var mv = Nf.create({
13540
13557
  setLink: (e) => ({ chain: t }) => {
13541
13558
  let { href: n } = e;
13542
13559
  return this.options.isAllowedUri(n, {
13543
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13560
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13544
13561
  protocols: this.options.protocols,
13545
13562
  defaultProtocol: this.options.defaultProtocol
13546
13563
  }) ? t().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -13548,7 +13565,7 @@ var mv = Nf.create({
13548
13565
  toggleLink: (e) => ({ chain: t }) => {
13549
13566
  let { href: n } = e || {};
13550
13567
  return n && !this.options.isAllowedUri(n, {
13551
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13568
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13552
13569
  protocols: this.options.protocols,
13553
13570
  defaultProtocol: this.options.defaultProtocol
13554
13571
  }) ? !1 : t().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run();
@@ -13557,10 +13574,10 @@ var mv = Nf.create({
13557
13574
  };
13558
13575
  },
13559
13576
  addInputRules() {
13560
- return this.options.markdownLinks ? [lv({
13577
+ return this.options.markdownLinks ? [uv({
13561
13578
  type: this.type,
13562
13579
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
13563
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13580
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13564
13581
  protocols: this.options.protocols,
13565
13582
  defaultProtocol: this.options.defaultProtocol
13566
13583
  })
@@ -13571,8 +13588,8 @@ var mv = Nf.create({
13571
13588
  let t = [];
13572
13589
  if (e) {
13573
13590
  let { protocols: n, defaultProtocol: r } = this.options;
13574
- K_(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
13575
- defaultValidate: (e) => !!pv(e, n),
13591
+ q_(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
13592
+ defaultValidate: (e) => !!mv(e, n),
13576
13593
  protocols: n,
13577
13594
  defaultProtocol: r
13578
13595
  })).forEach((e) => {
@@ -13585,15 +13602,15 @@ var mv = Nf.create({
13585
13602
  }
13586
13603
  return t;
13587
13604
  };
13588
- return this.options.markdownLinks ? [uv({
13605
+ return this.options.markdownLinks ? [dv({
13589
13606
  type: this.type,
13590
13607
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
13591
- defaultValidate: (e) => !!pv(e, this.options.protocols),
13608
+ defaultValidate: (e) => !!mv(e, this.options.protocols),
13592
13609
  protocols: this.options.protocols,
13593
13610
  defaultProtocol: this.options.defaultProtocol
13594
13611
  }),
13595
13612
  findPlainUrls: e
13596
- })] : [Sp({
13613
+ })] : [Cp({
13597
13614
  find: e,
13598
13615
  type: this.type,
13599
13616
  getAttributes: (e) => ({ href: e.data?.href })
@@ -13601,31 +13618,31 @@ var mv = Nf.create({
13601
13618
  },
13602
13619
  addProseMirrorPlugins() {
13603
13620
  let e = [], { protocols: t, defaultProtocol: n } = this.options;
13604
- return this.options.autolink && e.push($_({
13621
+ return this.options.autolink && e.push(ev({
13605
13622
  type: this.type,
13606
13623
  defaultProtocol: this.options.defaultProtocol,
13607
13624
  validate: (e) => this.options.isAllowedUri(e, {
13608
- defaultValidate: (e) => !!pv(e, t),
13625
+ defaultValidate: (e) => !!mv(e, t),
13609
13626
  protocols: t,
13610
13627
  defaultProtocol: n
13611
13628
  }),
13612
13629
  shouldAutoLink: this.options.shouldAutoLink
13613
- })), e.push(ev({
13630
+ })), e.push(tv({
13614
13631
  type: this.type,
13615
13632
  editor: this.editor,
13616
13633
  openOnClick: this.options.openOnClick === "whenNotEditable" || this.options.openOnClick,
13617
13634
  enableClickSelection: this.options.enableClickSelection
13618
- })), this.options.linkOnPaste && e.push(dv({
13635
+ })), this.options.linkOnPaste && e.push(fv({
13619
13636
  editor: this.editor,
13620
13637
  defaultProtocol: this.options.defaultProtocol,
13621
13638
  type: this.type,
13622
13639
  shouldAutoLink: this.options.shouldAutoLink
13623
13640
  })), e;
13624
13641
  }
13625
- }), hv = mv, gv = /* @__PURE__ */ e({
13626
- Subscript: () => _v,
13627
- default: () => vv
13628
- }), _v = Nf.create({
13642
+ }), gv = hv, _v = /* @__PURE__ */ e({
13643
+ Subscript: () => vv,
13644
+ default: () => yv
13645
+ }), vv = Nf.create({
13629
13646
  name: "subscript",
13630
13647
  addOptions() {
13631
13648
  return { HTMLAttributes: {} };
@@ -13655,10 +13672,10 @@ var mv = Nf.create({
13655
13672
  addKeyboardShortcuts() {
13656
13673
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
13657
13674
  }
13658
- }), vv = _v, yv = /* @__PURE__ */ e({
13659
- Superscript: () => bv,
13660
- default: () => xv
13661
- }), bv = Nf.create({
13675
+ }), yv = vv, bv = /* @__PURE__ */ e({
13676
+ Superscript: () => xv,
13677
+ default: () => Sv
13678
+ }), xv = Nf.create({
13662
13679
  name: "superscript",
13663
13680
  addOptions() {
13664
13681
  return { HTMLAttributes: {} };
@@ -13688,10 +13705,10 @@ var mv = Nf.create({
13688
13705
  addKeyboardShortcuts() {
13689
13706
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
13690
13707
  }
13691
- }), xv = bv, Sv = /* @__PURE__ */ e({
13692
- TextAlign: () => Cv,
13693
- default: () => wv
13694
- }), Cv = q.create({
13708
+ }), Sv = xv, Cv = /* @__PURE__ */ e({
13709
+ TextAlign: () => wv,
13710
+ default: () => Tv
13711
+ }), wv = q.create({
13695
13712
  name: "textAlign",
13696
13713
  addOptions() {
13697
13714
  return {
@@ -13733,10 +13750,10 @@ var mv = Nf.create({
13733
13750
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
13734
13751
  };
13735
13752
  }
13736
- }), wv = Cv, Tv = /* @__PURE__ */ e({
13737
- Underline: () => Ev,
13738
- default: () => Dv
13739
- }), Ev = Nf.create({
13753
+ }), Tv = wv, Ev = /* @__PURE__ */ e({
13754
+ Underline: () => Dv,
13755
+ default: () => Ov
13756
+ }), Dv = Nf.create({
13740
13757
  name: "underline",
13741
13758
  addOptions() {
13742
13759
  return { HTMLAttributes: {} };
@@ -13792,17 +13809,25 @@ var mv = Nf.create({
13792
13809
  "Mod-U": () => this.editor.commands.toggleUnderline()
13793
13810
  };
13794
13811
  }
13795
- }), Dv = Ev, Ov = (e, t) => {
13812
+ }), Ov = Dv;
13813
+ //#endregion
13814
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.30.2_@tiptap+pm@3.30.2/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
13815
+ function kv(e, t, n) {
13796
13816
  if (e === "slot") return 0;
13797
13817
  if (e instanceof Function) return e(t);
13798
- let { children: n, ...r } = t ?? {};
13818
+ let { children: r, ...i } = t ?? {};
13799
13819
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
13800
- return [
13820
+ return n && Array.isArray(r) ? [
13821
+ e,
13822
+ i,
13823
+ ...r
13824
+ ] : [
13801
13825
  e,
13802
- r,
13803
- n
13826
+ i,
13827
+ r
13804
13828
  ];
13805
- }, kv = (e, t) => {
13829
+ }
13830
+ var Av = (e, t) => kv(e, t, !1), jv = (e, t) => {
13806
13831
  let { state: n } = e, { selection: r } = n;
13807
13832
  if (!r.empty) return !1;
13808
13833
  let { $from: i } = r;
@@ -13820,7 +13845,7 @@ var mv = Nf.create({
13820
13845
  let n = i.parent.content, r = new D(n, 0, 0);
13821
13846
  return e.replace(l, i.after(), r), e.setSelection(j.create(e.doc, l + n.size)), e.scrollIntoView(), t(e), !0;
13822
13847
  });
13823
- }, Av = /^\s*>\s$/, jv = J.create({
13848
+ }, Mv = /^\s*>\s$/, Nv = J.create({
13824
13849
  name: "blockquote",
13825
13850
  addOptions() {
13826
13851
  return { HTMLAttributes: {} };
@@ -13832,9 +13857,9 @@ var mv = Nf.create({
13832
13857
  return [{ tag: "blockquote" }];
13833
13858
  },
13834
13859
  renderHTML({ HTMLAttributes: e }) {
13835
- return /* @__PURE__ */ Ov("blockquote", {
13860
+ return /* @__PURE__ */ Av("blockquote", {
13836
13861
  ...K(this.options.HTMLAttributes, e),
13837
- children: /* @__PURE__ */ Ov("slot", {})
13862
+ children: /* @__PURE__ */ Av("slot", {})
13838
13863
  });
13839
13864
  },
13840
13865
  parseMarkdown: (e, t) => t.createNode("blockquote", void 0, (t.parseBlockChildren ?? t.parseChildren)(e.tokens || [])),
@@ -13856,16 +13881,16 @@ var mv = Nf.create({
13856
13881
  addKeyboardShortcuts() {
13857
13882
  return {
13858
13883
  "Mod-Shift-b": () => this.editor.commands.toggleBlockquote(),
13859
- Backspace: () => kv(this.editor, this.type)
13884
+ Backspace: () => jv(this.editor, this.type)
13860
13885
  };
13861
13886
  },
13862
13887
  addInputRules() {
13863
13888
  return [hp({
13864
- find: Av,
13889
+ find: Mv,
13865
13890
  type: this.type
13866
13891
  })];
13867
13892
  }
13868
- }), Mv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Nv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Pv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Fv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Iv = Nf.create({
13893
+ }), Pv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Fv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Iv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Lv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Rv = Nf.create({
13869
13894
  name: "bold",
13870
13895
  addOptions() {
13871
13896
  return { HTMLAttributes: {} };
@@ -13888,9 +13913,9 @@ var mv = Nf.create({
13888
13913
  ];
13889
13914
  },
13890
13915
  renderHTML({ HTMLAttributes: e }) {
13891
- return /* @__PURE__ */ Ov("strong", {
13916
+ return /* @__PURE__ */ Av("strong", {
13892
13917
  ...K(this.options.HTMLAttributes, e),
13893
- children: /* @__PURE__ */ Ov("slot", {})
13918
+ children: /* @__PURE__ */ Av("slot", {})
13894
13919
  });
13895
13920
  },
13896
13921
  markdownTokenName: "strong",
@@ -13915,30 +13940,30 @@ var mv = Nf.create({
13915
13940
  },
13916
13941
  addInputRules() {
13917
13942
  return [dp({
13918
- find: Mv,
13943
+ find: Pv,
13919
13944
  type: this.type
13920
13945
  }), dp({
13921
- find: Pv,
13946
+ find: Iv,
13922
13947
  type: this.type
13923
13948
  })];
13924
13949
  },
13925
13950
  addPasteRules() {
13926
- return [Sp({
13927
- find: Nv,
13928
- type: this.type
13929
- }), Sp({
13951
+ return [Cp({
13930
13952
  find: Fv,
13931
13953
  type: this.type
13954
+ }), Cp({
13955
+ find: Lv,
13956
+ type: this.type
13932
13957
  })];
13933
13958
  }
13934
- }), Lv = (e) => {
13959
+ }), zv = (e) => {
13935
13960
  let t = /`([^`]+)`(?!`)$/.exec(e);
13936
13961
  return !t || t.index > 0 && e[t.index - 1] === "`" ? null : {
13937
13962
  index: t.index,
13938
13963
  text: t[0],
13939
13964
  replaceWith: t[1]
13940
13965
  };
13941
- }, Rv = (e) => {
13966
+ }, Bv = (e) => {
13942
13967
  let t = /`([^`]+)`(?!`)/g, n = [], r;
13943
13968
  for (; (r = t.exec(e)) !== null;) r.index > 0 && e[r.index - 1] === "`" || n.push({
13944
13969
  index: r.index,
@@ -13946,7 +13971,7 @@ var mv = Nf.create({
13946
13971
  replaceWith: r[1]
13947
13972
  });
13948
13973
  return n;
13949
- }, zv = Nf.create({
13974
+ }, Vv = Nf.create({
13950
13975
  name: "code",
13951
13976
  addOptions() {
13952
13977
  return { HTMLAttributes: {} };
@@ -13982,17 +14007,17 @@ var mv = Nf.create({
13982
14007
  },
13983
14008
  addInputRules() {
13984
14009
  return [dp({
13985
- find: Lv,
14010
+ find: zv,
13986
14011
  type: this.type
13987
14012
  })];
13988
14013
  },
13989
14014
  addPasteRules() {
13990
- return [Sp({
13991
- find: Rv,
14015
+ return [Cp({
14016
+ find: Bv,
13992
14017
  type: this.type
13993
14018
  })];
13994
14019
  }
13995
- }), Bv = 4, Vv = /^```([a-z]+)?[\s\n]$/, Hv = /^~~~([a-z]+)?[\s\n]$/, Uv = J.create({
14020
+ }), Hv = 4, Uv = /^```([a-z]+)?[\s\n]$/, Wv = /^~~~([a-z]+)?[\s\n]$/, Gv = J.create({
13996
14021
  name: "codeBlock",
13997
14022
  addOptions() {
13998
14023
  return {
@@ -14002,7 +14027,7 @@ var mv = Nf.create({
14002
14027
  exitOnArrowUp: !0,
14003
14028
  defaultLanguage: null,
14004
14029
  enableTabIndentation: !1,
14005
- tabSize: Bv,
14030
+ tabSize: Hv,
14006
14031
  HTMLAttributes: {}
14007
14032
  };
14008
14033
  },
@@ -14065,7 +14090,7 @@ var mv = Nf.create({
14065
14090
  },
14066
14091
  Tab: ({ editor: e }) => {
14067
14092
  if (!this.options.enableTabIndentation) return !1;
14068
- let t = this.options.tabSize ?? Bv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
14093
+ let t = this.options.tabSize ?? Hv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
14069
14094
  if (i.parent.type !== this.type) return !1;
14070
14095
  let o = " ".repeat(t);
14071
14096
  return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
@@ -14075,7 +14100,7 @@ var mv = Nf.create({
14075
14100
  },
14076
14101
  "Shift-Tab": ({ editor: e }) => {
14077
14102
  if (!this.options.enableTabIndentation) return !1;
14078
- let t = this.options.tabSize ?? Bv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
14103
+ let t = this.options.tabSize ?? Hv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
14079
14104
  return i.parent.type === this.type && e.commands.command(a ? ({ tr: e }) => {
14080
14105
  let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
14081
14106
  for (let e = 0; e < s.length; e += 1) {
@@ -14123,11 +14148,11 @@ var mv = Nf.create({
14123
14148
  },
14124
14149
  addInputRules() {
14125
14150
  return [pp({
14126
- find: Vv,
14151
+ find: Uv,
14127
14152
  type: this.type,
14128
14153
  getAttributes: (e) => ({ language: e[1] })
14129
14154
  }), pp({
14130
- find: Hv,
14155
+ find: Wv,
14131
14156
  type: this.type,
14132
14157
  getAttributes: (e) => ({ language: e[1] })
14133
14158
  })];
@@ -14144,12 +14169,12 @@ var mv = Nf.create({
14144
14169
  } }
14145
14170
  })];
14146
14171
  }
14147
- }), Wv = J.create({
14172
+ }), Kv = J.create({
14148
14173
  name: "doc",
14149
14174
  topNode: !0,
14150
14175
  content: "block+",
14151
14176
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
14152
- }), Gv = J.create({
14177
+ }), qv = J.create({
14153
14178
  name: "hardBreak",
14154
14179
  markdownTokenName: "br",
14155
14180
  addOptions() {
@@ -14193,7 +14218,7 @@ var mv = Nf.create({
14193
14218
  "Shift-Enter": () => this.editor.commands.setHardBreak()
14194
14219
  };
14195
14220
  }
14196
- }), Kv = J.create({
14221
+ }), Jv = J.create({
14197
14222
  name: "heading",
14198
14223
  addOptions() {
14199
14224
  return {
@@ -14254,7 +14279,7 @@ var mv = Nf.create({
14254
14279
  getAttributes: { level: e }
14255
14280
  }));
14256
14281
  }
14257
- }), qv = J.create({
14282
+ }), Yv = J.create({
14258
14283
  name: "horizontalRule",
14259
14284
  addOptions() {
14260
14285
  return {
@@ -14296,7 +14321,7 @@ var mv = Nf.create({
14296
14321
  type: this.type
14297
14322
  })];
14298
14323
  }
14299
- }), Jv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Yv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Xv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Qv = Nf.create({
14324
+ }), Xv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Zv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Qv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, $v = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, ey = Nf.create({
14300
14325
  name: "italic",
14301
14326
  addOptions() {
14302
14327
  return { HTMLAttributes: {} };
@@ -14344,28 +14369,28 @@ var mv = Nf.create({
14344
14369
  },
14345
14370
  addInputRules() {
14346
14371
  return [dp({
14347
- find: Jv,
14372
+ find: Xv,
14348
14373
  type: this.type
14349
14374
  }), dp({
14350
- find: Xv,
14375
+ find: Qv,
14351
14376
  type: this.type
14352
14377
  })];
14353
14378
  },
14354
14379
  addPasteRules() {
14355
- return [Sp({
14356
- find: Yv,
14357
- type: this.type
14358
- }), Sp({
14380
+ return [Cp({
14359
14381
  find: Zv,
14360
14382
  type: this.type
14383
+ }), Cp({
14384
+ find: $v,
14385
+ type: this.type
14361
14386
  })];
14362
14387
  }
14363
- }), $v = Object.defineProperty, ey = (e, t) => {
14364
- for (var n in t) $v(e, n, {
14388
+ }), ty = Object.defineProperty, ny = (e, t) => {
14389
+ for (var n in t) ty(e, n, {
14365
14390
  get: t[n],
14366
14391
  enumerable: !0
14367
14392
  });
14368
- }, ty = "listItem", ny = "textStyle", ry = /^\s*([-+*])\s$/, iy = J.create({
14393
+ }, ry = "listItem", iy = "textStyle", ay = /^\s*([-+*])\s$/, oy = J.create({
14369
14394
  name: "bulletList",
14370
14395
  addOptions() {
14371
14396
  return {
@@ -14397,26 +14422,26 @@ var mv = Nf.create({
14397
14422
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
14398
14423
  markdownOptions: { indentsContent: !0 },
14399
14424
  addCommands() {
14400
- return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ty, this.editor.getAttributes(ny)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14425
+ return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ry, this.editor.getAttributes(iy)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14401
14426
  },
14402
14427
  addKeyboardShortcuts() {
14403
14428
  return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
14404
14429
  },
14405
14430
  addInputRules() {
14406
14431
  let e = hp({
14407
- find: ry,
14432
+ find: ay,
14408
14433
  type: this.type
14409
14434
  });
14410
14435
  return (this.options.keepMarks || this.options.keepAttributes) && (e = hp({
14411
- find: ry,
14436
+ find: ay,
14412
14437
  type: this.type,
14413
14438
  keepMarks: this.options.keepMarks,
14414
14439
  keepAttributes: this.options.keepAttributes,
14415
- getAttributes: () => this.editor.getAttributes(ny),
14440
+ getAttributes: () => this.editor.getAttributes(iy),
14416
14441
  editor: this.editor
14417
14442
  })), [e];
14418
14443
  }
14419
- }), ay = (e, t, n) => {
14444
+ }), sy = (e, t, n) => {
14420
14445
  let { selection: r } = e;
14421
14446
  if (!r.empty) return null;
14422
14447
  let { $from: i } = r;
@@ -14447,24 +14472,24 @@ var mv = Nf.create({
14447
14472
  insertPos: i.after(a),
14448
14473
  items: f
14449
14474
  };
14450
- }, oy = (e, t, n, r) => {
14451
- let i = ay(e, n, r);
14475
+ }, cy = (e, t, n, r) => {
14476
+ let i = sy(e, n, r);
14452
14477
  if (!i) return !1;
14453
14478
  let { selection: a } = e, { nestedList: o, nestedListPos: s, insertPos: c, items: l } = i, u = e.tr;
14454
14479
  u.delete(s, s + o.nodeSize);
14455
14480
  let d = u.mapping.map(c);
14456
14481
  return u.insert(d, C.from(l)), u.setSelection(a.map(u.doc, u.mapping)), t && t(u), !0;
14457
- }, sy = (e, t, n) => oy(e.state, e.view.dispatch, t, n), cy = (e, t) => q.create({
14482
+ }, ly = (e, t, n) => cy(e.state, e.view.dispatch, t, n), uy = (e, t) => q.create({
14458
14483
  name: `${e}BranchingDeleteKeymap`,
14459
14484
  priority: 101,
14460
14485
  addKeyboardShortcuts() {
14461
- let n = () => sy(this.editor, e, t);
14486
+ let n = () => ly(this.editor, e, t);
14462
14487
  return {
14463
14488
  Delete: n,
14464
14489
  "Mod-Delete": n
14465
14490
  };
14466
14491
  }
14467
- }), ly = [
14492
+ }), dy = [
14468
14493
  [1e3, "m"],
14469
14494
  [900, "cm"],
14470
14495
  [500, "d"],
@@ -14478,20 +14503,20 @@ var mv = Nf.create({
14478
14503
  [5, "v"],
14479
14504
  [4, "iv"],
14480
14505
  [1, "i"]
14481
- ], uy = "abcdefghijklmnopqrstuvwxyz", dy = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
14482
- function fy(e) {
14506
+ ], fy = "abcdefghijklmnopqrstuvwxyz", py = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
14507
+ function my(e) {
14483
14508
  let t = e, n = "";
14484
- for (let [e, r] of ly) for (; t >= e;) n += r, t -= e;
14509
+ for (let [e, r] of dy) for (; t >= e;) n += r, t -= e;
14485
14510
  return n;
14486
14511
  }
14487
- function py(e) {
14488
- return fy(e).toUpperCase();
14512
+ function hy(e) {
14513
+ return my(e).toUpperCase();
14489
14514
  }
14490
- function my(e) {
14515
+ function gy(e) {
14491
14516
  let t = e.toLowerCase(), n = 0, r = 0;
14492
14517
  for (; n < t.length;) {
14493
14518
  let e = !1;
14494
- for (let [i, a] of ly) if (t.startsWith(a, n)) {
14519
+ for (let [i, a] of dy) if (t.startsWith(a, n)) {
14495
14520
  r += i, n += a.length, e = !0;
14496
14521
  break;
14497
14522
  }
@@ -14499,12 +14524,12 @@ function my(e) {
14499
14524
  }
14500
14525
  return r;
14501
14526
  }
14502
- function hy(e) {
14527
+ function _y(e) {
14503
14528
  if (!/^[ivxlcdmIVXLCDM]+$/.test(e)) return !1;
14504
- let t = my(e);
14505
- return t <= 0 ? !1 : (e === e.toLowerCase() ? fy(t) : py(t)) === e;
14529
+ let t = gy(e);
14530
+ return t <= 0 ? !1 : (e === e.toLowerCase() ? my(t) : hy(t)) === e;
14506
14531
  }
14507
- function gy(e) {
14532
+ function vy(e) {
14508
14533
  let t = e.toLowerCase();
14509
14534
  if (t.length === 1) return t.charCodeAt(0) - 97 + 1;
14510
14535
  if (t.length === 2) {
@@ -14513,82 +14538,82 @@ function gy(e) {
14513
14538
  }
14514
14539
  return 0;
14515
14540
  }
14516
- function _y(e) {
14517
- if (e <= 26) return uy[e - 1];
14541
+ function yy(e) {
14542
+ if (e <= 26) return fy[e - 1];
14518
14543
  let t = Math.floor((e - 1) / 26) - 1, n = (e - 1) % 26;
14519
- return t < 0 ? uy[n] : uy[t] + uy[n];
14544
+ return t < 0 ? fy[n] : fy[t] + fy[n];
14520
14545
  }
14521
- function vy(e) {
14546
+ function by(e) {
14522
14547
  if (!(!e || /^\d+$/.test(e))) {
14523
- if (hy(e)) return e === e.toLowerCase() ? "i" : "I";
14548
+ if (_y(e)) return e === e.toLowerCase() ? "i" : "I";
14524
14549
  if (/^[a-z]{1,2}$/.test(e)) return "a";
14525
14550
  if (/^[A-Z]{1,2}$/.test(e)) return "A";
14526
14551
  }
14527
14552
  }
14528
- function yy(e) {
14553
+ function xy(e) {
14529
14554
  if (/^\d+$/.test(e)) return parseInt(e, 10);
14530
- let t = vy(e);
14531
- if (t === "i" || t === "I") return my(e);
14555
+ let t = by(e);
14556
+ if (t === "i" || t === "I") return gy(e);
14532
14557
  if (t === "a" || t === "A") {
14533
- let t = gy(e);
14558
+ let t = vy(e);
14534
14559
  return t > 0 ? t : 1;
14535
14560
  }
14536
14561
  let n = parseInt(e, 10);
14537
14562
  return Number.isNaN(n) ? 1 : n;
14538
14563
  }
14539
- function by(e, t) {
14564
+ function Sy(e, t) {
14540
14565
  if (e === "numeric") return String(t);
14541
14566
  switch (e) {
14542
- case "a": return _y(t);
14543
- case "A": return _y(t).toUpperCase();
14544
- case "i": return fy(t);
14545
- case "I": return py(t);
14567
+ case "a": return yy(t);
14568
+ case "A": return yy(t).toUpperCase();
14569
+ case "i": return my(t);
14570
+ case "I": return hy(t);
14546
14571
  default: return String(t);
14547
14572
  }
14548
14573
  }
14549
- function xy(e) {
14574
+ function Cy(e) {
14550
14575
  if (e.length === 0) return !1;
14551
- let t = vy(e[0]) ?? "numeric", n = yy(e[0]);
14576
+ let t = by(e[0]) ?? "numeric", n = xy(e[0]);
14552
14577
  if (n < 1) return !1;
14553
14578
  for (let r = 0; r < e.length; r++) {
14554
- let i = by(t, n + r);
14579
+ let i = Sy(t, n + r);
14555
14580
  if (e[r] !== i) return !1;
14556
14581
  }
14557
14582
  return !0;
14558
14583
  }
14559
- function Sy(e) {
14584
+ function wy(e) {
14560
14585
  return {
14561
- type: vy(e),
14562
- start: yy(e)
14586
+ type: by(e),
14587
+ start: xy(e)
14563
14588
  };
14564
14589
  }
14565
- function Cy(e) {
14566
- let { type: t, start: n } = Sy(e), r = {};
14590
+ function Ty(e) {
14591
+ let { type: t, start: n } = wy(e), r = {};
14567
14592
  return t && (r.type = t), n !== 1 && (r.start = n), r;
14568
14593
  }
14569
- function wy(e, t, n = ". ") {
14594
+ function Ey(e, t, n = ". ") {
14570
14595
  let r = t + 1;
14571
14596
  if (!e || e === "1") return `${r}${n}`;
14572
14597
  switch (e) {
14573
- case "a": return `${_y(r)}${n}`;
14574
- case "A": return `${_y(r).toUpperCase()}${n}`;
14575
- case "i": return `${fy(r)}${n}`;
14576
- case "I": return `${py(r)}${n}`;
14598
+ case "a": return `${yy(r)}${n}`;
14599
+ case "A": return `${yy(r).toUpperCase()}${n}`;
14600
+ case "i": return `${my(r)}${n}`;
14601
+ case "I": return `${hy(r)}${n}`;
14577
14602
  default: return `${r}${n}`;
14578
14603
  }
14579
14604
  }
14580
- function Ty(e) {
14605
+ function Dy(e) {
14581
14606
  let t = e.tokens?.[0];
14582
14607
  return !!(e.text && e.tokens?.length === 1 && t?.type === "list" && t.ordered && t.raw === e.text);
14583
14608
  }
14584
- function Ey(e, t) {
14609
+ function Oy(e, t) {
14585
14610
  return t.parseInline(t.tokenizeInline ? t.tokenizeInline(e) : [{
14586
14611
  type: "text",
14587
14612
  raw: e,
14588
14613
  text: e
14589
14614
  }]);
14590
14615
  }
14591
- var Dy = J.create({
14616
+ var ky = J.create({
14592
14617
  name: "listItem",
14593
14618
  addOptions() {
14594
14619
  return {
@@ -14614,11 +14639,11 @@ var Dy = J.create({
14614
14639
  if (e.type !== "list_item") return [];
14615
14640
  let n = t.parseBlockChildren ?? t.parseChildren, r = [];
14616
14641
  if (e.tokens && e.tokens.length > 0) {
14617
- if (Ty(e)) return {
14642
+ if (Dy(e)) return {
14618
14643
  type: "listItem",
14619
14644
  content: [{
14620
14645
  type: "paragraph",
14621
- content: Ey(e.text || "", t)
14646
+ content: Oy(e.text || "", t)
14622
14647
  }]
14623
14648
  };
14624
14649
  if (e.tokens.some((e) => e.type === "paragraph")) r = n(e.tokens);
@@ -14643,9 +14668,9 @@ var Dy = J.create({
14643
14668
  content: r
14644
14669
  };
14645
14670
  },
14646
- renderMarkdown: (e, t, n) => Sf(e, t, (e) => e.parentType === "bulletList" ? "- " : e.parentType === "orderedList" ? wy(e.meta?.parentAttrs?.type, (e.meta?.parentAttrs?.start || 1) - 1 + (e.index || 0), ". ") : "- ", n),
14671
+ renderMarkdown: (e, t, n) => Sf(e, t, (e) => e.parentType === "bulletList" ? "- " : e.parentType === "orderedList" ? Ey(e.meta?.parentAttrs?.type, (e.meta?.parentAttrs?.start || 1) - 1 + (e.index || 0), ". ") : "- ", n),
14647
14672
  addExtensions() {
14648
- return [cy(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
14673
+ return [uy(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
14649
14674
  },
14650
14675
  addKeyboardShortcuts() {
14651
14676
  return {
@@ -14655,38 +14680,38 @@ var Dy = J.create({
14655
14680
  };
14656
14681
  }
14657
14682
  });
14658
- ey({}, {
14659
- findListItemPos: () => Oy,
14660
- getNextListDepth: () => ky,
14661
- handleBackspace: () => jy,
14662
- handleDelete: () => Py,
14663
- handleTab: () => Fy,
14664
- hasListBefore: () => Ay,
14665
- hasListItemAfter: () => Iy,
14666
- hasListItemBefore: () => Ly,
14667
- listItemHasSubList: () => Ry,
14668
- nextListIsDeeper: () => My,
14669
- nextListIsHigher: () => Ny
14683
+ ny({}, {
14684
+ findListItemPos: () => Ay,
14685
+ getNextListDepth: () => jy,
14686
+ handleBackspace: () => Ny,
14687
+ handleDelete: () => Iy,
14688
+ handleTab: () => Ly,
14689
+ hasListBefore: () => My,
14690
+ hasListItemAfter: () => Ry,
14691
+ hasListItemBefore: () => zy,
14692
+ listItemHasSubList: () => By,
14693
+ nextListIsDeeper: () => Py,
14694
+ nextListIsHigher: () => Fy
14670
14695
  });
14671
- var Oy = (e, t) => {
14696
+ var Ay = (e, t) => {
14672
14697
  let { $from: n } = t.selection, r = U(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
14673
14698
  for (; a > 0 && s === null;) i = n.node(a), i.type === r ? s = a : (--a, --o);
14674
14699
  return s === null ? null : {
14675
14700
  $pos: t.doc.resolve(o),
14676
14701
  depth: s
14677
14702
  };
14678
- }, ky = (e, t) => {
14679
- let n = Oy(e, t);
14703
+ }, jy = (e, t) => {
14704
+ let n = Ay(e, t);
14680
14705
  if (!n) return !1;
14681
14706
  let [, r] = bu(t, e, n.$pos.pos + 4);
14682
14707
  return r;
14683
- }, Ay = (e, t, n) => {
14708
+ }, My = (e, t, n) => {
14684
14709
  let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
14685
14710
  return !(!a || !n.includes(a.type.name));
14686
- }, jy = (e, t, n) => {
14711
+ }, Ny = (e, t, n) => {
14687
14712
  if (e.commands.undoInputRule()) return !0;
14688
14713
  if (e.state.selection.from !== e.state.selection.to) return !1;
14689
- if (!bl(e.state, t) && Ay(e.state, t, n)) {
14714
+ if (!bl(e.state, t) && My(e.state, t, n)) {
14690
14715
  let { $anchor: n } = e.state.selection, r = e.state.doc.resolve(n.before() - 1), i = [];
14691
14716
  r.node().descendants((e, n) => {
14692
14717
  e.type.name === t && i.push({
@@ -14705,17 +14730,17 @@ var Oy = (e, t) => {
14705
14730
  if (!bl(e.state, t) || !Ou(e.state)) return !1;
14706
14731
  let { $from: r } = e.state.selection, i = r.depth - 1;
14707
14732
  return r.node(i).type !== e.schema.nodes[t] || r.index(i) !== 0 ? !1 : e.chain().liftListItem(t).run();
14708
- }, My = (e, t) => {
14709
- let n = ky(e, t), r = Oy(e, t);
14733
+ }, Py = (e, t) => {
14734
+ let n = jy(e, t), r = Ay(e, t);
14710
14735
  return !r || !n ? !1 : n > r.depth;
14711
- }, Ny = (e, t) => {
14712
- let n = ky(e, t), r = Oy(e, t);
14736
+ }, Fy = (e, t) => {
14737
+ let n = jy(e, t), r = Ay(e, t);
14713
14738
  return !r || !n ? !1 : n < r.depth;
14714
- }, Py = (e, t) => {
14739
+ }, Iy = (e, t) => {
14715
14740
  if (!bl(e.state, t) || !Du(e.state, t)) return !1;
14716
14741
  let { selection: n } = e.state, { $from: r, $to: i } = n;
14717
- return !n.empty && r.sameParent(i) ? !1 : My(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Ny(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
14718
- }, Fy = (e, t, n) => {
14742
+ return !n.empty && r.sameParent(i) ? !1 : Py(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Fy(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
14743
+ }, Ly = (e, t, n) => {
14719
14744
  let { state: r } = e, { selection: i } = r;
14720
14745
  if (!i.empty) return !1;
14721
14746
  let { $from: a } = i;
@@ -14728,19 +14753,19 @@ var Oy = (e, t) => {
14728
14753
  if (!s.canReplace(s.childCount, s.childCount, C.from(c))) return !1;
14729
14754
  let l = a.before(), u = a.after(), d = l - 2;
14730
14755
  return e.commands.command(({ tr: e, dispatch: t }) => (t && (e.delete(l, u).insert(d, C.from(c)), e.setSelection(j.create(e.doc, d + 1)), e.scrollIntoView()), !0));
14731
- }, Iy = (e, t) => {
14756
+ }, Ry = (e, t) => {
14732
14757
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
14733
14758
  return r.index() !== r.parent.childCount - 1 && r.nodeAfter?.type.name === e;
14734
- }, Ly = (e, t) => {
14759
+ }, zy = (e, t) => {
14735
14760
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
14736
14761
  return r.index() !== 0 && r.nodeBefore?.type.name === e;
14737
- }, Ry = (e, t, n) => {
14762
+ }, By = (e, t, n) => {
14738
14763
  if (!n) return !1;
14739
14764
  let r = U(e, t.schema), i = !1;
14740
14765
  return n.descendants((e) => {
14741
14766
  e.type === r && (i = !0);
14742
14767
  }), i;
14743
- }, zy = q.create({
14768
+ }, Vy = q.create({
14744
14769
  name: "listKeymap",
14745
14770
  addOptions() {
14746
14771
  return { listTypes: [{
@@ -14756,51 +14781,51 @@ var Oy = (e, t) => {
14756
14781
  Delete: ({ editor: e }) => {
14757
14782
  let t = !1;
14758
14783
  return this.options.listTypes.forEach(({ itemName: n }) => {
14759
- e.state.schema.nodes[n] !== void 0 && Py(e, n) && (t = !0);
14784
+ e.state.schema.nodes[n] !== void 0 && Iy(e, n) && (t = !0);
14760
14785
  }), t;
14761
14786
  },
14762
14787
  "Mod-Delete": ({ editor: e }) => {
14763
14788
  let t = !1;
14764
14789
  return this.options.listTypes.forEach(({ itemName: n }) => {
14765
- e.state.schema.nodes[n] !== void 0 && Py(e, n) && (t = !0);
14790
+ e.state.schema.nodes[n] !== void 0 && Iy(e, n) && (t = !0);
14766
14791
  }), t;
14767
14792
  },
14768
14793
  Backspace: ({ editor: e }) => {
14769
14794
  let t = !1;
14770
14795
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
14771
- e.state.schema.nodes[n] !== void 0 && jy(e, n, r) && (t = !0);
14796
+ e.state.schema.nodes[n] !== void 0 && Ny(e, n, r) && (t = !0);
14772
14797
  }), t;
14773
14798
  },
14774
14799
  "Mod-Backspace": ({ editor: e }) => {
14775
14800
  let t = !1;
14776
14801
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
14777
- e.state.schema.nodes[n] !== void 0 && jy(e, n, r) && (t = !0);
14802
+ e.state.schema.nodes[n] !== void 0 && Ny(e, n, r) && (t = !0);
14778
14803
  }), t;
14779
14804
  },
14780
14805
  Tab: ({ editor: e }) => {
14781
- for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && Fy(e, t, n)) return !0;
14806
+ for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && Ly(e, t, n)) return !0;
14782
14807
  return !1;
14783
14808
  }
14784
14809
  };
14785
14810
  }
14786
- }), By = RegExp(`^(\\s*)(${dy})([.)])\\s+(.*)$`), Vy = /^\s/, Hy = {
14811
+ }), Hy = RegExp(`^(\\s*)(${py})([.)])\\s+(.*)$`), Uy = /^\s/, Wy = {
14787
14812
  heading: /^#{1,6}(?:\s|$)/,
14788
14813
  bulletItem: /^[-+*]\s+/,
14789
14814
  codeFence: /^(?:```|~~~)/,
14790
14815
  blockMath: /^\$\$/,
14791
14816
  thematicBreak: /^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/
14792
14817
  };
14793
- function Uy(e) {
14794
- return By.test(e.trimStart());
14818
+ function Gy(e) {
14819
+ return Hy.test(e.trimStart());
14795
14820
  }
14796
- function Wy(e) {
14821
+ function Ky(e) {
14797
14822
  let t = e.trimStart();
14798
- return Hy.bulletItem.test(t) || Uy(t) || Hy.heading.test(t) || Hy.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || Hy.codeFence.test(t) || Hy.blockMath.test(t);
14823
+ return Wy.bulletItem.test(t) || Gy(t) || Wy.heading.test(t) || Wy.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || Wy.codeFence.test(t) || Wy.blockMath.test(t);
14799
14824
  }
14800
- function Gy(e) {
14801
- return Object.values(Hy).some((t) => t.test(e));
14825
+ function qy(e) {
14826
+ return Object.values(Wy).some((t) => t.test(e));
14802
14827
  }
14803
- function Ky(e) {
14828
+ function Jy(e) {
14804
14829
  let t = [], n = [], r = !1;
14805
14830
  return e.forEach((e) => {
14806
14831
  if (r) {
@@ -14811,7 +14836,7 @@ function Ky(e) {
14811
14836
  r = !0, n.push(e);
14812
14837
  return;
14813
14838
  }
14814
- if (t.length > 0 && Wy(e)) {
14839
+ if (t.length > 0 && Ky(e)) {
14815
14840
  r = !0, n.push(e);
14816
14841
  return;
14817
14842
  }
@@ -14821,21 +14846,21 @@ function Ky(e) {
14821
14846
  blockLines: n
14822
14847
  };
14823
14848
  }
14824
- function qy(e) {
14849
+ function Yy(e) {
14825
14850
  let t = [], n = 0, r = 0;
14826
14851
  for (; n < e.length;) {
14827
- let i = e[n], a = i.match(By);
14852
+ let i = e[n], a = i.match(Hy);
14828
14853
  if (!a) break;
14829
- let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? vy(s) : void 0, p = isNaN(d) ? yy(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
14854
+ let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? by(s) : void 0, p = isNaN(d) ? xy(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
14830
14855
  for (; h < e.length;) {
14831
14856
  let t = e[h];
14832
- if (t.match(By)) break;
14857
+ if (t.match(Hy)) break;
14833
14858
  if (t.trim() === "") g.push(t), m.push(""), _ = !0, h += 1;
14834
- else if (t.match(Vy)) {
14859
+ else if (t.match(Uy)) {
14835
14860
  let e = t.length - t.trimStart().length, n = u + s.length + 1;
14836
14861
  g.push(t), m.push(t.slice(Math.min(e, n))), h += 1;
14837
14862
  } else {
14838
- if (_ || Gy(t)) break;
14863
+ if (_ || qy(t)) break;
14839
14864
  g.push(t), m.push(t), h += 1;
14840
14865
  }
14841
14866
  }
@@ -14850,22 +14875,22 @@ function qy(e) {
14850
14875
  }
14851
14876
  return [t, r];
14852
14877
  }
14853
- var Jy = RegExp(`^(${dy})([.)])\\s+(.+)$`);
14854
- function Yy(e) {
14878
+ var Xy = RegExp(`^(${py})([.)])\\s+(.+)$`);
14879
+ function Zy(e) {
14855
14880
  let t = e.split("\n").filter((e) => e.trim().length > 0);
14856
14881
  if (t.length === 0) return null;
14857
14882
  let n = [];
14858
14883
  for (let e of t) {
14859
- let t = e.trim().match(Jy);
14884
+ let t = e.trim().match(Xy);
14860
14885
  if (!t) return null;
14861
14886
  n.push({
14862
14887
  marker: t[1],
14863
14888
  content: t[3]
14864
14889
  });
14865
14890
  }
14866
- return xy(n.map((e) => e.marker)) ? {
14891
+ return Cy(n.map((e) => e.marker)) ? {
14867
14892
  type: "orderedList",
14868
- attrs: Cy(n[0].marker),
14893
+ attrs: Ty(n[0].marker),
14869
14894
  content: n.map((e) => ({
14870
14895
  type: "listItem",
14871
14896
  content: [{
@@ -14878,12 +14903,12 @@ function Yy(e) {
14878
14903
  }))
14879
14904
  } : null;
14880
14905
  }
14881
- function Xy(e, t, n) {
14906
+ function Qy(e, t, n) {
14882
14907
  let r = [], i = 0;
14883
14908
  for (; i < e.length;) {
14884
14909
  let a = e[i];
14885
14910
  if (a.indent === t) {
14886
- let { paragraphLines: o, blockLines: s } = Ky(a.contentLines), c = o.join("\n").trim(), l = [];
14911
+ let { paragraphLines: o, blockLines: s } = Jy(a.contentLines), c = o.join("\n").trim(), l = [];
14887
14912
  c && l.push({
14888
14913
  type: "paragraph",
14889
14914
  raw: c,
@@ -14897,7 +14922,7 @@ function Xy(e, t, n) {
14897
14922
  let d = i + 1, f = [];
14898
14923
  for (; d < e.length && e[d].indent > t;) f.push(e[d]), d += 1;
14899
14924
  if (f.length > 0) {
14900
- let e = Xy(f, Math.min(...f.map((e) => e.indent)), n);
14925
+ let e = Qy(f, Math.min(...f.map((e) => e.indent)), n);
14901
14926
  l.push({
14902
14927
  type: "list",
14903
14928
  ordered: !0,
@@ -14916,7 +14941,7 @@ function Xy(e, t, n) {
14916
14941
  }
14917
14942
  return r;
14918
14943
  }
14919
- function Zy(e, t) {
14944
+ function $y(e, t) {
14920
14945
  return e.map((e) => {
14921
14946
  if (e.type !== "list_item") return t.parseChildren([e])[0];
14922
14947
  let n = [];
@@ -14938,8 +14963,8 @@ function Zy(e, t) {
14938
14963
  };
14939
14964
  });
14940
14965
  }
14941
- var Qy = "listItem", $y = "textStyle", eb = /^(\d+)\.\s$/;
14942
- function tb(e) {
14966
+ var eb = "listItem", tb = "textStyle", nb = /^(\d+)\.\s$/;
14967
+ function rb(e) {
14943
14968
  let t = e.match(/list-style-type\s*:\s*([^;]+)/i);
14944
14969
  if (!t) return null;
14945
14970
  switch (t[1].trim().toLowerCase()) {
@@ -14952,7 +14977,7 @@ function tb(e) {
14952
14977
  default: return null;
14953
14978
  }
14954
14979
  }
14955
- var nb = J.create({
14980
+ var ib = J.create({
14956
14981
  name: "orderedList",
14957
14982
  addOptions() {
14958
14983
  return {
@@ -14979,14 +15004,14 @@ var nb = J.create({
14979
15004
  if (t) return t;
14980
15005
  let n = e.getAttribute("style");
14981
15006
  if (n) {
14982
- let e = tb(n);
15007
+ let e = rb(n);
14983
15008
  if (e) return e;
14984
15009
  }
14985
15010
  let r = e.querySelector("li");
14986
15011
  if (r) {
14987
15012
  let e = r.getAttribute("style");
14988
15013
  if (e) {
14989
- let t = tb(e);
15014
+ let t = rb(e);
14990
15015
  if (t) return t;
14991
15016
  }
14992
15017
  }
@@ -15009,7 +15034,7 @@ var nb = J.create({
15009
15034
  markdownTokenName: "list",
15010
15035
  parseMarkdown: (e, t) => {
15011
15036
  if (e.type !== "list" || !e.ordered) return [];
15012
- let n = e.start || 1, r = e.typeMarker, i = e.items ? Zy(e.items, t) : [], a = {};
15037
+ let n = e.start || 1, r = e.typeMarker, i = e.items ? $y(e.items, t) : [], a = {};
15013
15038
  return n !== 1 && (a.start = n), r && (a.type = r), Object.keys(a).length > 0 ? {
15014
15039
  type: "orderedList",
15015
15040
  attrs: a,
@@ -15025,9 +15050,9 @@ var nb = J.create({
15025
15050
  level: "block",
15026
15051
  start: () => -1,
15027
15052
  tokenize: (e, t, n) => {
15028
- let r = e.split("\n"), [i, a] = qy(r);
15053
+ let r = e.split("\n"), [i, a] = Yy(r);
15029
15054
  if (i.length === 0) return;
15030
- let o = Xy(i, i[0].indent, n);
15055
+ let o = Qy(i, i[0].indent, n);
15031
15056
  if (o.length !== 0) return {
15032
15057
  type: "list",
15033
15058
  ordered: !0,
@@ -15040,7 +15065,7 @@ var nb = J.create({
15040
15065
  },
15041
15066
  markdownOptions: { indentsContent: !0 },
15042
15067
  addCommands() {
15043
- return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Qy, this.editor.getAttributes($y)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
15068
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(eb, this.editor.getAttributes(tb)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
15044
15069
  },
15045
15070
  addKeyboardShortcuts() {
15046
15071
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
@@ -15050,7 +15075,7 @@ var nb = J.create({
15050
15075
  if ((t.clipboardData?.getData("text/html"))?.trim()) return !1;
15051
15076
  let n = t.clipboardData?.getData("text/plain");
15052
15077
  if (!n) return !1;
15053
- let r = Yy(n);
15078
+ let r = Zy(n);
15054
15079
  if (!r) return !1;
15055
15080
  try {
15056
15081
  let t = e.state.schema.nodeFromJSON(r), n = e.state.tr.replaceSelectionWith(t);
@@ -15062,25 +15087,25 @@ var nb = J.create({
15062
15087
  },
15063
15088
  addInputRules() {
15064
15089
  let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = hp({
15065
- find: eb,
15090
+ find: nb,
15066
15091
  type: this.type,
15067
15092
  getAttributes: (e) => ({ start: +e[1] }),
15068
15093
  joinPredicate: e
15069
15094
  });
15070
15095
  return (this.options.keepMarks || this.options.keepAttributes) && (t = hp({
15071
- find: eb,
15096
+ find: nb,
15072
15097
  type: this.type,
15073
15098
  keepMarks: this.options.keepMarks,
15074
15099
  keepAttributes: this.options.keepAttributes,
15075
15100
  getAttributes: (e) => ({
15076
15101
  start: +e[1],
15077
- ...this.editor.getAttributes($y)
15102
+ ...this.editor.getAttributes(tb)
15078
15103
  }),
15079
15104
  joinPredicate: e,
15080
15105
  editor: this.editor
15081
15106
  })), [t];
15082
15107
  }
15083
- }), rb = /^\s*(\[([( |x])?\])\s$/, ib = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", ab = (e, t, n) => (n?.checkboxLabel)?.call(n, e, t) || `Task item checkbox for ${e.textContent || "empty task item"}`, ob = J.create({
15108
+ }), ab = /^\s*(\[([( |x])?\])\s$/, ob = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", sb = (e, t, n) => (n?.checkboxLabel)?.call(n, e, t) || `Task item checkbox for ${e.textContent || "empty task item"}`, cb = J.create({
15084
15109
  name: "taskItem",
15085
15110
  addOptions() {
15086
15111
  return {
@@ -15137,7 +15162,7 @@ var nb = J.create({
15137
15162
  },
15138
15163
  renderMarkdown: (e, t) => Sf(e, t, `- [${e.attrs?.checked ? "x" : " "}] `),
15139
15164
  addExtensions() {
15140
- return this.options.nested ? [cy(this.name, [this.options.taskListTypeName])] : [];
15165
+ return this.options.nested ? [uy(this.name, [this.options.taskListTypeName])] : [];
15141
15166
  },
15142
15167
  addKeyboardShortcuts() {
15143
15168
  let e = {
@@ -15152,9 +15177,9 @@ var nb = J.create({
15152
15177
  addNodeView() {
15153
15178
  return ({ node: e, HTMLAttributes: t, getPos: n, editor: r }) => {
15154
15179
  let i = document.createElement("li"), a = document.createElement("label"), o = document.createElement("span"), s = document.createElement("input"), c = document.createElement("div");
15155
- o.style.cssText = ib;
15180
+ o.style.cssText = ob;
15156
15181
  let l = (e) => {
15157
- let t = ab(e, e.attrs.checked, this.options.a11y);
15182
+ let t = sb(e, e.attrs.checked, this.options.a11y);
15158
15183
  s.setAttribute("aria-label", t), o.textContent = t;
15159
15184
  };
15160
15185
  l(e), a.contentEditable = "false", s.type = "checkbox", s.addEventListener("mousedown", (e) => e.preventDefault()), s.addEventListener("change", (t) => {
@@ -15196,12 +15221,12 @@ var nb = J.create({
15196
15221
  },
15197
15222
  addInputRules() {
15198
15223
  return [hp({
15199
- find: rb,
15224
+ find: ab,
15200
15225
  type: this.type,
15201
15226
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
15202
15227
  })];
15203
15228
  }
15204
- }), sb = J.create({
15229
+ }), lb = J.create({
15205
15230
  name: "taskList",
15206
15231
  addOptions() {
15207
15232
  return {
@@ -15303,12 +15328,12 @@ q.create({
15303
15328
  name: "listKit",
15304
15329
  addExtensions() {
15305
15330
  let e = [];
15306
- return this.options.bulletList !== !1 && e.push(iy.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(Dy.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(zy.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(nb.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(ob.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(sb.configure(this.options.taskList)), e;
15331
+ return this.options.bulletList !== !1 && e.push(oy.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(ky.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Vy.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(ib.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(cb.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(lb.configure(this.options.taskList)), e;
15307
15332
  }
15308
15333
  });
15309
15334
  //#endregion
15310
- //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1_/node_modules/@tiptap/extension-paragraph/dist/index.js
15311
- var cb = "&nbsp;", lb = "\xA0", ub = J.create({
15335
+ //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.30.2_@tiptap+core@3.30.2_@tiptap+pm@3.30.2_/node_modules/@tiptap/extension-paragraph/dist/index.js
15336
+ var ub = "&nbsp;", db = "\xA0", fb = J.create({
15312
15337
  name: "paragraph",
15313
15338
  priority: 1e3,
15314
15339
  addOptions() {
@@ -15330,12 +15355,12 @@ var cb = "&nbsp;", lb = "\xA0", ub = J.create({
15330
15355
  let n = e.tokens || [];
15331
15356
  if (n.length === 1 && n[0].type === "image") return t.parseChildren([n[0]]);
15332
15357
  let r = t.parseInline(n);
15333
- return n.length === 1 && n[0].type === "text" && (n[0].raw === cb || n[0].text === cb || n[0].raw === lb || n[0].text === lb) && r.length === 1 && r[0].type === "text" && (r[0].text === cb || r[0].text === lb) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
15358
+ return n.length === 1 && n[0].type === "text" && (n[0].raw === ub || n[0].text === ub || n[0].raw === db || n[0].text === db) && r.length === 1 && r[0].type === "text" && (r[0].text === ub || r[0].text === db) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
15334
15359
  },
15335
15360
  renderMarkdown: (e, t, n) => {
15336
15361
  if (!e) return "";
15337
15362
  let r = Array.isArray(e.content) ? e.content : [];
15338
- return r.length === 0 ? n?.previousNode?.type === "paragraph" && (Array.isArray(n?.previousNode?.content) ? n.previousNode.content : []).length === 0 ? cb : "" : t.renderChildren(r);
15363
+ return r.length === 0 ? n?.previousNode?.type === "paragraph" && (Array.isArray(n?.previousNode?.content) ? n.previousNode.content : []).length === 0 ? ub : "" : t.renderChildren(r);
15339
15364
  },
15340
15365
  addCommands() {
15341
15366
  return { setParagraph: () => ({ commands: e }) => e.setNode(this.name) };
@@ -15343,7 +15368,7 @@ var cb = "&nbsp;", lb = "\xA0", ub = J.create({
15343
15368
  addKeyboardShortcuts() {
15344
15369
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
15345
15370
  }
15346
- }), db = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, fb = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, pb = Nf.create({
15371
+ }), pb = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, mb = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, hb = Nf.create({
15347
15372
  name: "strike",
15348
15373
  addOptions() {
15349
15374
  return { HTMLAttributes: {} };
@@ -15382,17 +15407,17 @@ var cb = "&nbsp;", lb = "\xA0", ub = J.create({
15382
15407
  },
15383
15408
  addInputRules() {
15384
15409
  return [dp({
15385
- find: db,
15410
+ find: pb,
15386
15411
  type: this.type
15387
15412
  })];
15388
15413
  },
15389
15414
  addPasteRules() {
15390
- return [Sp({
15391
- find: fb,
15415
+ return [Cp({
15416
+ find: mb,
15392
15417
  type: this.type
15393
15418
  })];
15394
15419
  }
15395
- }), mb = J.create({
15420
+ }), gb = J.create({
15396
15421
  name: "text",
15397
15422
  group: "inline",
15398
15423
  parseMarkdown: (e) => ({
@@ -15403,12 +15428,12 @@ var cb = "&nbsp;", lb = "\xA0", ub = J.create({
15403
15428
  });
15404
15429
  //#endregion
15405
15430
  //#region ../../node_modules/.pnpm/prosemirror-dropcursor@1.8.3/node_modules/prosemirror-dropcursor/dist/index.js
15406
- function hb(e = {}) {
15431
+ function _b(e = {}) {
15407
15432
  return new N({ view(t) {
15408
- return new gb(t, e);
15433
+ return new vb(t, e);
15409
15434
  } });
15410
15435
  }
15411
- var gb = class {
15436
+ var vb = class {
15412
15437
  constructor(e, t) {
15413
15438
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.lastDragEvent = null, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
15414
15439
  "dragover",
@@ -15508,7 +15533,7 @@ var gb = class {
15508
15533
  dragleave(e) {
15509
15534
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
15510
15535
  }
15511
- }, _b = class e extends A {
15536
+ }, yb = class e extends A {
15512
15537
  constructor(e) {
15513
15538
  super(e, e);
15514
15539
  }
@@ -15533,11 +15558,11 @@ var gb = class {
15533
15558
  return new e(t.resolve(n.pos));
15534
15559
  }
15535
15560
  getBookmark() {
15536
- return new vb(this.anchor);
15561
+ return new bb(this.anchor);
15537
15562
  }
15538
15563
  static valid(e) {
15539
15564
  let t = e.parent;
15540
- if (t.inlineContent || !bb(e) || !xb(e)) return !1;
15565
+ if (t.inlineContent || !Sb(e) || !Cb(e)) return !1;
15541
15566
  let n = t.type.spec.allowGapCursor;
15542
15567
  if (n != null) return n;
15543
15568
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -15575,8 +15600,8 @@ var gb = class {
15575
15600
  }
15576
15601
  }
15577
15602
  };
15578
- _b.prototype.visible = !1, _b.findFrom = _b.findGapCursorFrom, A.jsonID("gapcursor", _b);
15579
- var vb = class e {
15603
+ yb.prototype.visible = !1, yb.findFrom = yb.findGapCursorFrom, A.jsonID("gapcursor", yb);
15604
+ var bb = class e {
15580
15605
  constructor(e) {
15581
15606
  this.pos = e;
15582
15607
  }
@@ -15585,13 +15610,13 @@ var vb = class e {
15585
15610
  }
15586
15611
  resolve(e) {
15587
15612
  let t = e.resolve(this.pos);
15588
- return _b.valid(t) ? new _b(t) : A.near(t);
15613
+ return yb.valid(t) ? new yb(t) : A.near(t);
15589
15614
  }
15590
15615
  };
15591
- function yb(e) {
15616
+ function xb(e) {
15592
15617
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
15593
15618
  }
15594
- function bb(e) {
15619
+ function Sb(e) {
15595
15620
  for (let t = e.depth; t >= 0; t--) {
15596
15621
  let n = e.index(t), r = e.node(t);
15597
15622
  if (n == 0) {
@@ -15599,13 +15624,13 @@ function bb(e) {
15599
15624
  continue;
15600
15625
  }
15601
15626
  for (let e = r.child(n - 1);; e = e.lastChild) {
15602
- if (e.childCount == 0 && !e.inlineContent || yb(e.type)) return !0;
15627
+ if (e.childCount == 0 && !e.inlineContent || xb(e.type)) return !0;
15603
15628
  if (e.inlineContent) return !1;
15604
15629
  }
15605
15630
  }
15606
15631
  return !0;
15607
15632
  }
15608
- function xb(e) {
15633
+ function Cb(e) {
15609
15634
  for (let t = e.depth; t >= 0; t--) {
15610
15635
  let n = e.indexAfter(t), r = e.node(t);
15611
15636
  if (n == r.childCount) {
@@ -15613,30 +15638,30 @@ function xb(e) {
15613
15638
  continue;
15614
15639
  }
15615
15640
  for (let e = r.child(n);; e = e.firstChild) {
15616
- if (e.childCount == 0 && !e.inlineContent || yb(e.type)) return !0;
15641
+ if (e.childCount == 0 && !e.inlineContent || xb(e.type)) return !0;
15617
15642
  if (e.inlineContent) return !1;
15618
15643
  }
15619
15644
  }
15620
15645
  return !0;
15621
15646
  }
15622
- function Sb() {
15647
+ function wb() {
15623
15648
  return new N({ props: {
15624
- decorations: Db,
15649
+ decorations: kb,
15625
15650
  createSelectionBetween(e, t, n) {
15626
- return t.pos == n.pos && _b.valid(n) ? new _b(n) : null;
15651
+ return t.pos == n.pos && yb.valid(n) ? new yb(n) : null;
15627
15652
  },
15628
- handleClick: Tb,
15629
- handleKeyDown: Cb,
15630
- handleDOMEvents: { beforeinput: Eb }
15653
+ handleClick: Db,
15654
+ handleKeyDown: Tb,
15655
+ handleDOMEvents: { beforeinput: Ob }
15631
15656
  } });
15632
15657
  }
15633
- var Cb = gc({
15634
- ArrowLeft: wb("horiz", -1),
15635
- ArrowRight: wb("horiz", 1),
15636
- ArrowUp: wb("vert", -1),
15637
- ArrowDown: wb("vert", 1)
15658
+ var Tb = gc({
15659
+ ArrowLeft: Eb("horiz", -1),
15660
+ ArrowRight: Eb("horiz", 1),
15661
+ ArrowUp: Eb("vert", -1),
15662
+ ArrowDown: Eb("vert", 1)
15638
15663
  });
15639
- function wb(e, t) {
15664
+ function Eb(e, t) {
15640
15665
  let n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
15641
15666
  return function(e, r, i) {
15642
15667
  let a = e.selection, o = t > 0 ? a.$to : a.$from, s = a.empty;
@@ -15644,22 +15669,22 @@ function wb(e, t) {
15644
15669
  if (!i.endOfTextblock(n) || o.depth == 0) return !1;
15645
15670
  s = !1, o = e.doc.resolve(t > 0 ? o.after() : o.before());
15646
15671
  }
15647
- let c = _b.findGapCursorFrom(o, t, s);
15648
- return c ? (r && r(e.tr.setSelection(new _b(c))), !0) : !1;
15672
+ let c = yb.findGapCursorFrom(o, t, s);
15673
+ return c ? (r && r(e.tr.setSelection(new yb(c))), !0) : !1;
15649
15674
  };
15650
15675
  }
15651
- function Tb(e, t, n) {
15676
+ function Db(e, t, n) {
15652
15677
  if (!e || !e.editable) return !1;
15653
15678
  let r = e.state.doc.resolve(t);
15654
- if (!_b.valid(r)) return !1;
15679
+ if (!yb.valid(r)) return !1;
15655
15680
  let i = e.posAtCoords({
15656
15681
  left: n.clientX,
15657
15682
  top: n.clientY
15658
15683
  });
15659
- return i && i.inside > -1 && M.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new _b(r))), !0);
15684
+ return i && i.inside > -1 && M.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new yb(r))), !0);
15660
15685
  }
15661
- function Eb(e, t) {
15662
- if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof _b)) return !1;
15686
+ function Ob(e, t) {
15687
+ if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof yb)) return !1;
15663
15688
  let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
15664
15689
  if (!r) return !1;
15665
15690
  let i = C.empty;
@@ -15667,20 +15692,20 @@ function Eb(e, t) {
15667
15692
  let a = e.state.tr.replace(n.pos, n.pos, new D(i, 0, 0));
15668
15693
  return a.setSelection(j.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
15669
15694
  }
15670
- function Db(e) {
15671
- if (!(e.selection instanceof _b)) return null;
15695
+ function kb(e) {
15696
+ if (!(e.selection instanceof yb)) return null;
15672
15697
  let t = document.createElement("div");
15673
15698
  return t.className = "ProseMirror-gapcursor", B.create(e.doc, [gs.widget(e.selection.head, t, { key: "gapcursor" })]);
15674
15699
  }
15675
15700
  //#endregion
15676
15701
  //#region ../../node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.js
15677
- var Ob = 200, $ = function() {};
15702
+ var Ab = 200, $ = function() {};
15678
15703
  $.prototype.append = function(e) {
15679
- return e.length ? (e = $.from(e), !this.length && e || e.length < Ob && this.leafAppend(e) || this.length < Ob && e.leafPrepend(this) || this.appendInner(e)) : this;
15704
+ return e.length ? (e = $.from(e), !this.length && e || e.length < Ab && this.leafAppend(e) || this.length < Ab && e.leafPrepend(this) || this.appendInner(e)) : this;
15680
15705
  }, $.prototype.prepend = function(e) {
15681
15706
  return e.length ? $.from(e).append(this) : this;
15682
15707
  }, $.prototype.appendInner = function(e) {
15683
- return new Ab(this, e);
15708
+ return new Mb(this, e);
15684
15709
  }, $.prototype.slice = function(e, t) {
15685
15710
  return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? $.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
15686
15711
  }, $.prototype.get = function(e) {
@@ -15694,9 +15719,9 @@ $.prototype.append = function(e) {
15694
15719
  return r.push(e(t, n));
15695
15720
  }, t, n), r;
15696
15721
  }, $.from = function(e) {
15697
- return e instanceof $ ? e : e && e.length ? new kb(e) : $.empty;
15722
+ return e instanceof $ ? e : e && e.length ? new jb(e) : $.empty;
15698
15723
  };
15699
- var kb = /* @__PURE__ */ function(e) {
15724
+ var jb = /* @__PURE__ */ function(e) {
15700
15725
  function t(t) {
15701
15726
  e.call(this), this.values = t;
15702
15727
  }
@@ -15716,17 +15741,17 @@ var kb = /* @__PURE__ */ function(e) {
15716
15741
  }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
15717
15742
  for (var i = t - 1; i >= n; i--) if (e(this.values[i], r + i) === !1) return !1;
15718
15743
  }, t.prototype.leafAppend = function(e) {
15719
- if (this.length + e.length <= Ob) return new t(this.values.concat(e.flatten()));
15744
+ if (this.length + e.length <= Ab) return new t(this.values.concat(e.flatten()));
15720
15745
  }, t.prototype.leafPrepend = function(e) {
15721
- if (this.length + e.length <= Ob) return new t(e.flatten().concat(this.values));
15746
+ if (this.length + e.length <= Ab) return new t(e.flatten().concat(this.values));
15722
15747
  }, n.length.get = function() {
15723
15748
  return this.values.length;
15724
15749
  }, n.depth.get = function() {
15725
15750
  return 0;
15726
15751
  }, Object.defineProperties(t.prototype, n), t;
15727
15752
  }($);
15728
- $.empty = new kb([]);
15729
- var Ab = /* @__PURE__ */ function(e) {
15753
+ $.empty = new jb([]);
15754
+ var Mb = /* @__PURE__ */ function(e) {
15730
15755
  function t(t, n) {
15731
15756
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
15732
15757
  }
@@ -15753,7 +15778,7 @@ var Ab = /* @__PURE__ */ function(e) {
15753
15778
  }, t.prototype.appendInner = function(e) {
15754
15779
  return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
15755
15780
  }, t;
15756
- }($), jb = 500, Mb = class e {
15781
+ }($), Nb = 500, Pb = class e {
15757
15782
  constructor(e, t) {
15758
15783
  this.items = e, this.eventCount = t;
15759
15784
  }
@@ -15773,9 +15798,9 @@ var Ab = /* @__PURE__ */ function(e) {
15773
15798
  return;
15774
15799
  }
15775
15800
  if (i) {
15776
- u.push(new Pb(t.map));
15801
+ u.push(new Ib(t.map));
15777
15802
  let e = t.step.map(i.slice(a)), n;
15778
- e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new Pb(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
15803
+ e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new Ib(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
15779
15804
  } else o.maybeStep(t.step);
15780
15805
  if (t.selection) return s = i ? t.selection.map(i.slice(a)) : t.selection, c = new e(this.items.slice(0, r).append(u.reverse().concat(l)), this.eventCount - 1), !1;
15781
15806
  }, this.items.length, 0), {
@@ -15787,11 +15812,11 @@ var Ab = /* @__PURE__ */ function(e) {
15787
15812
  addTransform(t, n, r, i) {
15788
15813
  let a = [], o = this.eventCount, s = this.items, c = !i && s.length ? s.get(s.length - 1) : null;
15789
15814
  for (let e = 0; e < t.steps.length; e++) {
15790
- let r = t.steps[e].invert(t.docs[e]), l = new Pb(t.mapping.maps[e], r, n), u;
15815
+ let r = t.steps[e].invert(t.docs[e]), l = new Ib(t.mapping.maps[e], r, n), u;
15791
15816
  (u = c && c.merge(l)) && (l = u, e ? a.pop() : s = s.slice(0, s.length - 1)), a.push(l), n &&= (o++, void 0), i || (c = l);
15792
15817
  }
15793
15818
  let l = o - r.depth;
15794
- return l > Ib && (s = Nb(s, l), o -= l), new e(s.append(a), o);
15819
+ return l > Rb && (s = Fb(s, l), o -= l), new e(s.append(a), o);
15795
15820
  }
15796
15821
  remapping(e, t) {
15797
15822
  let n = new Dt();
@@ -15801,7 +15826,7 @@ var Ab = /* @__PURE__ */ function(e) {
15801
15826
  }, e, t), n;
15802
15827
  }
15803
15828
  addMaps(t) {
15804
- return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new Pb(e))), this.eventCount);
15829
+ return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new Ib(e))), this.eventCount);
15805
15830
  }
15806
15831
  rebased(t, n) {
15807
15832
  if (!this.eventCount) return this;
@@ -15817,13 +15842,13 @@ var Ab = /* @__PURE__ */ function(e) {
15817
15842
  let i = a.maps[n];
15818
15843
  if (e.step) {
15819
15844
  let o = t.steps[n].invert(t.docs[n]), l = e.selection && e.selection.map(a.slice(c + 1, n));
15820
- l && s++, r.push(new Pb(i, o, l));
15821
- } else r.push(new Pb(i));
15845
+ l && s++, r.push(new Ib(i, o, l));
15846
+ } else r.push(new Ib(i));
15822
15847
  }, i);
15823
15848
  let l = [];
15824
- for (let e = n; e < o; e++) l.push(new Pb(a.maps[e]));
15849
+ for (let e = n; e < o; e++) l.push(new Ib(a.maps[e]));
15825
15850
  let u = this.items.slice(0, i).append(l).append(r), d = new e(u, s);
15826
- return d.emptyItemCount() > jb && (d = d.compress(this.items.length - r.length)), d;
15851
+ return d.emptyItemCount() > Nb && (d = d.compress(this.items.length - r.length)), d;
15827
15852
  }
15828
15853
  emptyItemCount() {
15829
15854
  let e = 0;
@@ -15840,21 +15865,21 @@ var Ab = /* @__PURE__ */ function(e) {
15840
15865
  if (r--, o && n.appendMap(o, r), t) {
15841
15866
  let s = e.selection && e.selection.map(n.slice(r));
15842
15867
  s && a++;
15843
- let c = new Pb(o.invert(), t, s), l, u = i.length - 1;
15868
+ let c = new Ib(o.invert(), t, s), l, u = i.length - 1;
15844
15869
  (l = i.length && i[u].merge(c)) ? i[u] = l : i.push(c);
15845
15870
  }
15846
15871
  } else e.map && r--;
15847
15872
  }, this.items.length, 0), new e($.from(i.reverse()), a);
15848
15873
  }
15849
15874
  };
15850
- Mb.empty = new Mb($.empty, 0);
15851
- function Nb(e, t) {
15875
+ Pb.empty = new Pb($.empty, 0);
15876
+ function Fb(e, t) {
15852
15877
  let n;
15853
15878
  return e.forEach((e, r) => {
15854
15879
  if (e.selection && t-- == 0) return n = r, !1;
15855
15880
  }), e.slice(n);
15856
15881
  }
15857
- var Pb = class e {
15882
+ var Ib = class e {
15858
15883
  constructor(e, t, n, r) {
15859
15884
  this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
15860
15885
  }
@@ -15864,25 +15889,25 @@ var Pb = class e {
15864
15889
  if (n) return new e(n.getMap().invert(), n, this.selection);
15865
15890
  }
15866
15891
  }
15867
- }, Fb = class {
15892
+ }, Lb = class {
15868
15893
  constructor(e, t, n, r, i) {
15869
15894
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
15870
15895
  }
15871
- }, Ib = 20;
15872
- function Lb(e, t, n, r) {
15873
- let i = n.getMeta(Gb), a;
15896
+ }, Rb = 20;
15897
+ function zb(e, t, n, r) {
15898
+ let i = n.getMeta(qb), a;
15874
15899
  if (i) return i.historyState;
15875
- n.getMeta(Kb) && (e = new Fb(e.done, e.undone, null, 0, -1));
15900
+ n.getMeta(Jb) && (e = new Lb(e.done, e.undone, null, 0, -1));
15876
15901
  let o = n.getMeta("appendedTransaction");
15877
15902
  if (n.steps.length == 0) return e;
15878
- if (o && o.getMeta(Gb)) return o.getMeta(Gb).redo ? new Fb(e.done.addTransform(n, void 0, r, Wb(t)), e.undone, zb(n.mapping.maps), e.prevTime, e.prevComposition) : new Fb(e.done, e.undone.addTransform(n, void 0, r, Wb(t)), null, e.prevTime, e.prevComposition);
15903
+ if (o && o.getMeta(qb)) return o.getMeta(qb).redo ? new Lb(e.done.addTransform(n, void 0, r, Kb(t)), e.undone, Vb(n.mapping.maps), e.prevTime, e.prevComposition) : new Lb(e.done, e.undone.addTransform(n, void 0, r, Kb(t)), null, e.prevTime, e.prevComposition);
15879
15904
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
15880
- let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Rb(n, e.prevRanges)), s = o ? Bb(e.prevRanges, n.mapping) : zb(n.mapping.maps);
15881
- return new Fb(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, Wb(t)), Mb.empty, s, n.time, i ?? e.prevComposition);
15905
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Bb(n, e.prevRanges)), s = o ? Hb(e.prevRanges, n.mapping) : Vb(n.mapping.maps);
15906
+ return new Lb(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, Kb(t)), Pb.empty, s, n.time, i ?? e.prevComposition);
15882
15907
  }
15883
- return (a = n.getMeta("rebased")) ? new Fb(e.done.rebased(n, a), e.undone.rebased(n, a), Bb(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Fb(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Bb(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
15908
+ return (a = n.getMeta("rebased")) ? new Lb(e.done.rebased(n, a), e.undone.rebased(n, a), Hb(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Lb(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Hb(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
15884
15909
  }
15885
- function Rb(e, t) {
15910
+ function Bb(e, t) {
15886
15911
  if (!t) return !1;
15887
15912
  if (!e.docChanged) return !0;
15888
15913
  let n = !1;
@@ -15890,12 +15915,12 @@ function Rb(e, t) {
15890
15915
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
15891
15916
  }), n;
15892
15917
  }
15893
- function zb(e) {
15918
+ function Vb(e) {
15894
15919
  let t = [];
15895
15920
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
15896
15921
  return t;
15897
15922
  }
15898
- function Bb(e, t) {
15923
+ function Hb(e, t) {
15899
15924
  if (!e) return null;
15900
15925
  let n = [];
15901
15926
  for (let r = 0; r < e.length; r += 2) {
@@ -15904,61 +15929,61 @@ function Bb(e, t) {
15904
15929
  }
15905
15930
  return n;
15906
15931
  }
15907
- function Vb(e, t, n) {
15908
- let r = Wb(t), i = Gb.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
15932
+ function Ub(e, t, n) {
15933
+ let r = Kb(t), i = qb.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
15909
15934
  if (!a) return null;
15910
- let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new Fb(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
15911
- return a.transform.setSelection(o).setMeta(Gb, {
15935
+ let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new Lb(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
15936
+ return a.transform.setSelection(o).setMeta(qb, {
15912
15937
  redo: n,
15913
15938
  historyState: c
15914
15939
  });
15915
15940
  }
15916
- var Hb = !1, Ub = null;
15917
- function Wb(e) {
15941
+ var Wb = !1, Gb = null;
15942
+ function Kb(e) {
15918
15943
  let t = e.plugins;
15919
- if (Ub != t) {
15920
- Hb = !1, Ub = t;
15944
+ if (Gb != t) {
15945
+ Wb = !1, Gb = t;
15921
15946
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
15922
- Hb = !0;
15947
+ Wb = !0;
15923
15948
  break;
15924
15949
  }
15925
15950
  }
15926
- return Hb;
15951
+ return Wb;
15927
15952
  }
15928
- var Gb = new P("history"), Kb = new P("closeHistory");
15929
- function qb(e = {}) {
15953
+ var qb = new P("history"), Jb = new P("closeHistory");
15954
+ function Yb(e = {}) {
15930
15955
  return e = {
15931
15956
  depth: e.depth || 100,
15932
15957
  newGroupDelay: e.newGroupDelay || 500
15933
15958
  }, new N({
15934
- key: Gb,
15959
+ key: qb,
15935
15960
  state: {
15936
15961
  init() {
15937
- return new Fb(Mb.empty, Mb.empty, null, 0, -1);
15962
+ return new Lb(Pb.empty, Pb.empty, null, 0, -1);
15938
15963
  },
15939
15964
  apply(t, n, r) {
15940
- return Lb(n, r, t, e);
15965
+ return zb(n, r, t, e);
15941
15966
  }
15942
15967
  },
15943
15968
  config: e,
15944
15969
  props: { handleDOMEvents: { beforeinput(e, t) {
15945
- let n = t.inputType, r = n == "historyUndo" ? Yb : n == "historyRedo" ? Xb : null;
15970
+ let n = t.inputType, r = n == "historyUndo" ? Zb : n == "historyRedo" ? Qb : null;
15946
15971
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
15947
15972
  } } }
15948
15973
  });
15949
15974
  }
15950
- function Jb(e, t) {
15975
+ function Xb(e, t) {
15951
15976
  return (n, r) => {
15952
- let i = Gb.getState(n);
15977
+ let i = qb.getState(n);
15953
15978
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
15954
15979
  if (r) {
15955
- let a = Vb(i, n, e);
15980
+ let a = Ub(i, n, e);
15956
15981
  a && r(t ? a.scrollIntoView() : a);
15957
15982
  }
15958
15983
  return !0;
15959
15984
  };
15960
15985
  }
15961
- var Yb = Jb(!1, !0), Xb = Jb(!0, !0);
15986
+ var Zb = Xb(!1, !0), Qb = Xb(!0, !0);
15962
15987
  q.create({
15963
15988
  name: "characterCount",
15964
15989
  addOptions() {
@@ -16021,7 +16046,7 @@ q.create({
16021
16046
  })];
16022
16047
  }
16023
16048
  });
16024
- var Zb = q.create({
16049
+ var $b = q.create({
16025
16050
  name: "dropCursor",
16026
16051
  addOptions() {
16027
16052
  return {
@@ -16031,7 +16056,7 @@ var Zb = q.create({
16031
16056
  };
16032
16057
  },
16033
16058
  addProseMirrorPlugins() {
16034
- return [hb(this.options)];
16059
+ return [_b(this.options)];
16035
16060
  }
16036
16061
  });
16037
16062
  q.create({
@@ -16065,10 +16090,10 @@ q.create({
16065
16090
  })];
16066
16091
  }
16067
16092
  });
16068
- var Qb = q.create({
16093
+ var ex = q.create({
16069
16094
  name: "gapCursor",
16070
16095
  addProseMirrorPlugins() {
16071
- return [Sb()];
16096
+ return [wb()];
16072
16097
  },
16073
16098
  extendNodeSchema(e) {
16074
16099
  return { allowGapCursor: G(W(e, "allowGapCursor", {
@@ -16077,8 +16102,8 @@ var Qb = q.create({
16077
16102
  storage: e.storage
16078
16103
  })) ?? null };
16079
16104
  }
16080
- }), $b = "placeholder", ex = new P("tiptap__placeholder");
16081
- function tx(e) {
16105
+ }), tx = "placeholder", nx = new P("tiptap__placeholder");
16106
+ function rx(e) {
16082
16107
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
16083
16108
  return o && u.push(l), gs.node(i, i + a.nodeSize, {
16084
16109
  class: u.join(" "),
@@ -16090,14 +16115,14 @@ function tx(e) {
16090
16115
  }) : n
16091
16116
  });
16092
16117
  }
16093
- function nx(e, t) {
16118
+ function ix(e, t) {
16094
16119
  return typeof e == "function" ? e(t) : e;
16095
16120
  }
16096
- function rx({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
16121
+ function ax({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
16097
16122
  let { anchor: s } = i, c = [], l = e.isEmpty;
16098
16123
  return r.nodesBetween(a, o, (r, i) => {
16099
16124
  let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && ju(r);
16100
- return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(tx({
16125
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(rx({
16101
16126
  editor: e,
16102
16127
  isEmptyDoc: l,
16103
16128
  dataAttribute: n,
@@ -16105,7 +16130,7 @@ function rx({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
16105
16130
  placeholder: t.placeholder,
16106
16131
  classes: {
16107
16132
  emptyEditor: t.emptyEditorClass,
16108
- emptyNode: nx(t.emptyNodeClass, {
16133
+ emptyNode: ix(t.emptyNodeClass, {
16109
16134
  editor: e,
16110
16135
  node: r,
16111
16136
  pos: i,
@@ -16117,14 +16142,14 @@ function rx({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
16117
16142
  })), t.includeChildren;
16118
16143
  }), c;
16119
16144
  }
16120
- function ix({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
16145
+ function ox({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
16121
16146
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
16122
16147
  let { anchor: a } = i, o = [], s = e.isEmpty;
16123
16148
  if (t.showOnlyCurrent && !t.includeChildren) {
16124
16149
  let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
16125
16150
  if (c && c.type.isTextblock && ju(c)) {
16126
16151
  let r = a >= l && a <= l + c.nodeSize;
16127
- o.push(tx({
16152
+ o.push(rx({
16128
16153
  editor: e,
16129
16154
  isEmptyDoc: s,
16130
16155
  dataAttribute: n,
@@ -16132,7 +16157,7 @@ function ix({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
16132
16157
  placeholder: t.placeholder,
16133
16158
  classes: {
16134
16159
  emptyEditor: t.emptyEditorClass,
16135
- emptyNode: nx(t.emptyNodeClass, {
16160
+ emptyNode: ix(t.emptyNodeClass, {
16136
16161
  editor: e,
16137
16162
  node: c,
16138
16163
  pos: l,
@@ -16143,7 +16168,7 @@ function ix({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
16143
16168
  pos: l
16144
16169
  }));
16145
16170
  }
16146
- } else o.push(...rx({
16171
+ } else o.push(...ax({
16147
16172
  editor: e,
16148
16173
  options: t,
16149
16174
  dataAttribute: n,
@@ -16154,7 +16179,7 @@ function ix({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
16154
16179
  }));
16155
16180
  return B.create(r, o);
16156
16181
  }
16157
- function ax(e, t) {
16182
+ function sx(e, t) {
16158
16183
  let n = e.resolve(t);
16159
16184
  if (n.depth === 0) {
16160
16185
  let e = n.nodeAfter ?? n.nodeBefore;
@@ -16174,13 +16199,13 @@ function ax(e, t) {
16174
16199
  to: r + n.node(1).nodeSize
16175
16200
  };
16176
16201
  }
16177
- function ox(e, t) {
16202
+ function cx(e, t) {
16178
16203
  return {
16179
16204
  from: Math.max(0, t.from - 1),
16180
16205
  to: Math.min(e.content.size, t.to - 1)
16181
16206
  };
16182
16207
  }
16183
- function sx(e, t, n) {
16208
+ function lx(e, t, n) {
16184
16209
  let r = [];
16185
16210
  return e.forEach((e, i) => {
16186
16211
  let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
@@ -16190,7 +16215,7 @@ function sx(e, t, n) {
16190
16215
  });
16191
16216
  }), r;
16192
16217
  }
16193
- function cx(e) {
16218
+ function ux(e) {
16194
16219
  if (e.length === 0) return [];
16195
16220
  let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
16196
16221
  for (let e = 1; e < t.length; e += 1) {
@@ -16199,31 +16224,31 @@ function cx(e) {
16199
16224
  }
16200
16225
  return n;
16201
16226
  }
16202
- function lx(e, t) {
16203
- let n = sx(e, t.from, t.to);
16204
- return n.push(ox(e, ax(e, t.from))), t.to > t.from ? n.push(ox(e, ax(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(ox(e, ax(e, Math.min(t.from + 1, e.content.size)))), n;
16227
+ function dx(e, t) {
16228
+ let n = lx(e, t.from, t.to);
16229
+ return n.push(cx(e, sx(e, t.from))), t.to > t.from ? n.push(cx(e, sx(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(cx(e, sx(e, Math.min(t.from + 1, e.content.size)))), n;
16205
16230
  }
16206
- function ux(e, t, n) {
16231
+ function fx(e, t, n) {
16207
16232
  let r = [];
16208
16233
  if (e.docChanged) {
16209
16234
  let t = _u(e);
16210
- for (let e of t) r.push(...lx(n.doc, e.newRange));
16235
+ for (let e of t) r.push(...dx(n.doc, e.newRange));
16211
16236
  }
16212
- return e.selectionSet && (r.push(ox(n.doc, ax(n.doc, e.mapping.map(t.selection.anchor)))), r.push(ox(n.doc, ax(n.doc, n.selection.anchor)))), cx(r);
16237
+ return e.selectionSet && (r.push(cx(n.doc, sx(n.doc, e.mapping.map(t.selection.anchor)))), r.push(cx(n.doc, sx(n.doc, n.selection.anchor)))), ux(r);
16213
16238
  }
16214
- function dx(e, t, n) {
16239
+ function px(e, t, n) {
16215
16240
  let r = Math.max(0, Math.min(e, n.content.size));
16216
16241
  return {
16217
16242
  from: r,
16218
16243
  to: Math.max(r, Math.min(t, n.content.size))
16219
16244
  };
16220
16245
  }
16221
- function fx({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
16246
+ function mx({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
16222
16247
  let s = e;
16223
16248
  for (let e of t) {
16224
- let { from: t, to: c } = dx(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
16249
+ let { from: t, to: c } = px(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
16225
16250
  l.length && (s = s.remove(l));
16226
- let u = rx({
16251
+ let u = ax({
16227
16252
  editor: n,
16228
16253
  options: r,
16229
16254
  dataAttribute: i,
@@ -16236,10 +16261,10 @@ function fx({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i
16236
16261
  }
16237
16262
  return s;
16238
16263
  }
16239
- function px({ editor: e, options: t, dataAttribute: n }) {
16264
+ function hx({ editor: e, options: t, dataAttribute: n }) {
16240
16265
  return {
16241
16266
  init(r, i) {
16242
- return ix({
16267
+ return ox({
16243
16268
  editor: e,
16244
16269
  options: t,
16245
16270
  dataAttribute: n,
@@ -16248,9 +16273,9 @@ function px({ editor: e, options: t, dataAttribute: n }) {
16248
16273
  }) ?? B.empty;
16249
16274
  },
16250
16275
  apply(r, i, a, o) {
16251
- return !r.docChanged && !r.selectionSet ? i : fx({
16276
+ return !r.docChanged && !r.selectionSet ? i : mx({
16252
16277
  decorations: i.map(r.mapping, r.doc),
16253
- ranges: ux(r, a, o),
16278
+ ranges: fx(r, a, o),
16254
16279
  editor: e,
16255
16280
  options: t,
16256
16281
  dataAttribute: n,
@@ -16260,25 +16285,25 @@ function px({ editor: e, options: t, dataAttribute: n }) {
16260
16285
  }
16261
16286
  };
16262
16287
  }
16263
- function mx(e) {
16288
+ function gx(e) {
16264
16289
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
16265
16290
  }
16266
- function hx({ editor: e, options: t }) {
16267
- let n = t.dataAttribute ? `data-${mx(t.dataAttribute)}` : `data-${$b}`, r = t.showOnlyCurrent && !t.includeChildren;
16291
+ function _x({ editor: e, options: t }) {
16292
+ let n = t.dataAttribute ? `data-${gx(t.dataAttribute)}` : `data-${tx}`, r = t.showOnlyCurrent && !t.includeChildren;
16268
16293
  return new N({
16269
- key: ex,
16270
- ...r ? {} : { state: px({
16294
+ key: nx,
16295
+ ...r ? {} : { state: hx({
16271
16296
  editor: e,
16272
16297
  options: t,
16273
16298
  dataAttribute: n
16274
16299
  }) },
16275
- props: { decorations: r ? ({ doc: r, selection: i }) => ix({
16300
+ props: { decorations: r ? ({ doc: r, selection: i }) => ox({
16276
16301
  editor: e,
16277
16302
  options: t,
16278
16303
  dataAttribute: n,
16279
16304
  doc: r,
16280
16305
  selection: i
16281
- }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? B.empty : ex.getState(n) ?? B.empty }
16306
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? B.empty : nx.getState(n) ?? B.empty }
16282
16307
  });
16283
16308
  }
16284
16309
  q.create({
@@ -16287,7 +16312,7 @@ q.create({
16287
16312
  return {
16288
16313
  emptyEditorClass: "is-editor-empty",
16289
16314
  emptyNodeClass: "is-empty",
16290
- dataAttribute: $b,
16315
+ dataAttribute: tx,
16291
16316
  placeholder: "Write something …",
16292
16317
  showOnlyWhenEditable: !0,
16293
16318
  showOnlyCurrent: !0,
@@ -16295,23 +16320,23 @@ q.create({
16295
16320
  };
16296
16321
  },
16297
16322
  addProseMirrorPlugins() {
16298
- return [hx({
16323
+ return [_x({
16299
16324
  editor: this.editor,
16300
16325
  options: this.options
16301
16326
  })];
16302
16327
  }
16303
16328
  });
16304
- function gx(e, t) {
16329
+ function vx(e, t) {
16305
16330
  return !e.selection.empty && !Mu(e.selection) && t.isEditable;
16306
16331
  }
16307
- function _x(e, t) {
16308
- return gx(e, t) && !t.isFocused && !t.view.dragging;
16332
+ function yx(e, t) {
16333
+ return vx(e, t) && !t.isFocused && !t.view.dragging;
16309
16334
  }
16310
- function vx() {
16335
+ function bx() {
16311
16336
  var e;
16312
16337
  (e = window.getSelection()) == null || e.removeAllRanges();
16313
16338
  }
16314
- function yx(e) {
16339
+ function xx(e) {
16315
16340
  e.focus();
16316
16341
  }
16317
16342
  q.create({
@@ -16325,15 +16350,15 @@ q.create({
16325
16350
  key: new P("selection"),
16326
16351
  props: {
16327
16352
  decorations(n) {
16328
- return _x(n, e) ? B.create(n.doc, [gs.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
16353
+ return yx(n, e) ? B.create(n.doc, [gs.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
16329
16354
  },
16330
16355
  handleDOMEvents: {
16331
16356
  blur(t) {
16332
- return gx(t.state, e) && vx(), !1;
16357
+ return vx(t.state, e) && bx(), !1;
16333
16358
  },
16334
16359
  focus(t) {
16335
- return gx(t.state, e) && requestAnimationFrame(() => {
16336
- !e.isDestroyed && t.hasFocus() && yx(t);
16360
+ return vx(t.state, e) && requestAnimationFrame(() => {
16361
+ !e.isDestroyed && t.hasFocus() && xx(t);
16337
16362
  }), !1;
16338
16363
  }
16339
16364
  }
@@ -16341,10 +16366,10 @@ q.create({
16341
16366
  })];
16342
16367
  }
16343
16368
  });
16344
- function bx({ types: e, node: t }) {
16369
+ function Sx({ types: e, node: t }) {
16345
16370
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
16346
16371
  }
16347
- var xx = q.create({
16372
+ var Cx = q.create({
16348
16373
  name: "trailingNode",
16349
16374
  addOptions() {
16350
16375
  return {
@@ -16363,7 +16388,7 @@ var xx = q.create({
16363
16388
  state: {
16364
16389
  init: (e, t) => {
16365
16390
  let r = t.tr.doc.lastChild;
16366
- return !bx({
16391
+ return !Sx({
16367
16392
  node: r,
16368
16393
  types: n
16369
16394
  });
@@ -16371,7 +16396,7 @@ var xx = q.create({
16371
16396
  apply: (e, t) => {
16372
16397
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
16373
16398
  let r = e.doc.lastChild;
16374
- return !bx({
16399
+ return !Sx({
16375
16400
  node: r,
16376
16401
  types: n
16377
16402
  });
@@ -16379,7 +16404,7 @@ var xx = q.create({
16379
16404
  }
16380
16405
  })];
16381
16406
  }
16382
- }), Sx = q.create({
16407
+ }), wx = q.create({
16383
16408
  name: "undoRedo",
16384
16409
  addOptions() {
16385
16410
  return {
@@ -16389,12 +16414,12 @@ var xx = q.create({
16389
16414
  },
16390
16415
  addCommands() {
16391
16416
  return {
16392
- undo: () => ({ state: e, dispatch: t }) => Yb(e, t),
16393
- redo: () => ({ state: e, dispatch: t }) => Xb(e, t)
16417
+ undo: () => ({ state: e, dispatch: t }) => Zb(e, t),
16418
+ redo: () => ({ state: e, dispatch: t }) => Qb(e, t)
16394
16419
  };
16395
16420
  },
16396
16421
  addProseMirrorPlugins() {
16397
- return [qb(this.options)];
16422
+ return [Yb(this.options)];
16398
16423
  },
16399
16424
  addKeyboardShortcuts() {
16400
16425
  return {
@@ -16405,22 +16430,22 @@ var xx = q.create({
16405
16430
  "Shift-Mod-я": () => this.editor.commands.redo()
16406
16431
  };
16407
16432
  }
16408
- }), Cx = /* @__PURE__ */ e({
16409
- StarterKit: () => wx,
16410
- default: () => Tx
16411
- }), wx = q.create({
16433
+ }), Tx = /* @__PURE__ */ e({
16434
+ StarterKit: () => Ex,
16435
+ default: () => Dx
16436
+ }), Ex = q.create({
16412
16437
  name: "starterKit",
16413
16438
  addExtensions() {
16414
16439
  let e = [];
16415
- return this.options.bold !== !1 && e.push(Iv.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(jv.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(iy.configure(this.options.bulletList)), this.options.code !== !1 && e.push(zv.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Uv.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Wv.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(Zb.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(Qb.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Gv.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(Kv.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(Sx.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(qv.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Qv.configure(this.options.italic)), this.options.listItem !== !1 && e.push(Dy.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(zy.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(mv.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(nb.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(ub.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(pb.configure(this.options.strike)), this.options.text !== !1 && e.push(mb.configure(this.options.text)), this.options.underline !== !1 && e.push(Ev.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(xx.configure(this.options?.trailingNode)), e;
16440
+ return this.options.bold !== !1 && e.push(Rv.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(Nv.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(oy.configure(this.options.bulletList)), this.options.code !== !1 && e.push(Vv.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Gv.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Kv.configure(this.options.document)), this.options.dropcursor !== !1 && e.push($b.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(ex.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(qv.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(Jv.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(wx.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Yv.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(ey.configure(this.options.italic)), this.options.listItem !== !1 && e.push(ky.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Vy.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(hv.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(ib.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(fb.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(hb.configure(this.options.strike)), this.options.text !== !1 && e.push(gb.configure(this.options.text)), this.options.underline !== !1 && e.push(Dv.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(Cx.configure(this.options?.trailingNode)), e;
16416
16441
  }
16417
- }), Tx = wx, Ex = /* @__PURE__ */ e({
16442
+ }), Dx = Ex, Ox = /* @__PURE__ */ e({
16418
16443
  CommandManager: () => bc,
16419
16444
  DECORATION_MANAGER_PLUGIN_KEY: () => Td,
16420
16445
  Decoration: () => ip,
16421
16446
  DecorationManager: () => $d,
16422
- Editor: () => Ox,
16423
- EditorContent: () => kx,
16447
+ Editor: () => Ax,
16448
+ EditorContent: () => jx,
16424
16449
  Extendable: () => Mf,
16425
16450
  Extension: () => q,
16426
16451
  Fragment: () => gp,
@@ -16429,22 +16454,22 @@ var xx = q.create({
16429
16454
  MappablePosition: () => Ju,
16430
16455
  Mark: () => Nf,
16431
16456
  MarkView: () => Df,
16432
- MarkViewContent: () => Fx,
16457
+ MarkViewContent: () => Lx,
16433
16458
  Node: () => J,
16434
16459
  NodeDecoration: () => op,
16435
16460
  NodePos: () => tp,
16436
- NodeView: () => xp,
16437
- NodeViewContent: () => Ax,
16438
- NodeViewWrapper: () => jx,
16461
+ NodeView: () => Sp,
16462
+ NodeViewContent: () => Mx,
16463
+ NodeViewWrapper: () => Nx,
16439
16464
  PasteRule: () => Pf,
16440
- ResizableNodeView: () => yp,
16441
- ResizableNodeview: () => bp,
16442
- Tracker: () => Tp,
16443
- VueMarkView: () => Ix,
16444
- VueMarkViewRenderer: () => Lx,
16445
- VueNodeViewRenderer: () => Bx,
16446
- VueRenderer: () => Nx,
16447
- VueWidgetRenderer: () => Kx,
16465
+ ResizableNodeView: () => bp,
16466
+ ResizableNodeview: () => xp,
16467
+ Tracker: () => Ep,
16468
+ VueMarkView: () => Rx,
16469
+ VueMarkViewRenderer: () => zx,
16470
+ VueNodeViewRenderer: () => Hx,
16471
+ VueRenderer: () => Fx,
16472
+ VueWidgetRenderer: () => Jx,
16448
16473
  WidgetDecoration: () => sp,
16449
16474
  attrsEqual: () => ef,
16450
16475
  callOrReturn: () => G,
@@ -16455,7 +16480,7 @@ var xx = q.create({
16455
16480
  createBlockMarkdownSpec: () => _f,
16456
16481
  createChainableState: () => yc,
16457
16482
  createDocument: () => Fl,
16458
- createElement: () => _p,
16483
+ createElement: () => vp,
16459
16484
  createInlineMarkdownSpec: () => bf,
16460
16485
  createMappablePosition: () => Xu,
16461
16486
  createNodeFromContent: () => rl,
@@ -16504,7 +16529,7 @@ var xx = q.create({
16504
16529
  getTextContentFromNodes: () => wu,
16505
16530
  getTextSerializersFromSchema: () => du,
16506
16531
  getUpdatedPosition: () => Yu,
16507
- h: () => _p,
16532
+ h: () => vp,
16508
16533
  injectExtensionAttributesToParseRule: () => $l,
16509
16534
  inputRulesPlugin: () => jf,
16510
16535
  isActive: () => Eu,
@@ -16545,16 +16570,16 @@ var xx = q.create({
16545
16570
  isiOS: () => Yc,
16546
16571
  liveWidgetKeys: () => Qd,
16547
16572
  markInputRule: () => dp,
16548
- markPasteRule: () => Sp,
16549
- markViewProps: () => Px,
16573
+ markPasteRule: () => Cp,
16574
+ markViewProps: () => Ix,
16550
16575
  markdown: () => pf,
16551
16576
  marksEqual: () => wf,
16552
16577
  mergeAttributes: () => K,
16553
16578
  mergeDeep: () => Tf,
16554
16579
  minMax: () => Kc,
16555
16580
  nodeInputRule: () => fp,
16556
- nodePasteRule: () => Cp,
16557
- nodeViewProps: () => Rx,
16581
+ nodePasteRule: () => wp,
16582
+ nodeViewProps: () => Bx,
16558
16583
  objectIncludes: () => Rc,
16559
16584
  parseAttributes: () => mf,
16560
16585
  parseIndentedBlocks: () => xf,
@@ -16570,13 +16595,13 @@ var xx = q.create({
16570
16595
  sortExtensions: () => iu,
16571
16596
  splitExtensions: () => ql,
16572
16597
  textInputRule: () => mp,
16573
- textPasteRule: () => wp,
16598
+ textPasteRule: () => Tp,
16574
16599
  textblockTypeInputRule: () => pp,
16575
16600
  updateMarkViewAttributes: () => Ef,
16576
- useEditor: () => Mx,
16601
+ useEditor: () => Px,
16577
16602
  wrappingInputRule: () => hp
16578
16603
  });
16579
- function Dx(e) {
16604
+ function kx(e) {
16580
16605
  return r((t, n) => ({
16581
16606
  get() {
16582
16607
  return t(), e;
@@ -16590,9 +16615,9 @@ function Dx(e) {
16590
16615
  }
16591
16616
  }));
16592
16617
  }
16593
- var Ox = class extends rp {
16618
+ var Ax = class extends rp {
16594
16619
  constructor(e = {}) {
16595
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Dx(this.view.state), this.reactiveExtensionStorage = Dx(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
16620
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = kx(this.view.state), this.reactiveExtensionStorage = kx(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
16596
16621
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
16597
16622
  }), i(this);
16598
16623
  }
@@ -16610,7 +16635,7 @@ var Ox = class extends rp {
16610
16635
  let t = super.unregisterPlugin(e);
16611
16636
  return this.reactiveState && t && (this.reactiveState.value = t), t;
16612
16637
  }
16613
- }, kx = s({
16638
+ }, jx = s({
16614
16639
  name: "EditorContent",
16615
16640
  props: { editor: {
16616
16641
  default: null,
@@ -16638,7 +16663,7 @@ var Ox = class extends rp {
16638
16663
  this.rootEl = e;
16639
16664
  } });
16640
16665
  }
16641
- }), Ax = s({
16666
+ }), Mx = s({
16642
16667
  name: "NodeViewContent",
16643
16668
  props: { as: {
16644
16669
  type: String,
@@ -16659,7 +16684,7 @@ var Ox = class extends rp {
16659
16684
  "data-node-view-content": ""
16660
16685
  });
16661
16686
  }
16662
- }), jx = s({
16687
+ }), Nx = s({
16663
16688
  name: "NodeViewWrapper",
16664
16689
  props: { as: {
16665
16690
  type: String,
@@ -16675,15 +16700,15 @@ var Ox = class extends rp {
16675
16700
  onDragstart: this.onDragStart
16676
16701
  }, (e = this.$slots).default?.call(e));
16677
16702
  }
16678
- }), Mx = (e = {}) => {
16703
+ }), Px = (e = {}) => {
16679
16704
  let n = d();
16680
16705
  return p(() => {
16681
- n.value = new Ox(e);
16706
+ n.value = new Ax(e);
16682
16707
  }), t(() => {
16683
16708
  var e;
16684
16709
  (e = n.value) == null || e.destroy();
16685
16710
  }), n;
16686
- }, Nx = class {
16711
+ }, Fx = class {
16687
16712
  constructor(e, { props: t = {}, editor: n }) {
16688
16713
  this.destroyed = !1, this.editor = n, this.component = i(e), this.el = document.createElement("div"), this.props = l(t), this.renderedComponent = this.renderComponent();
16689
16714
  }
@@ -16712,7 +16737,7 @@ var Ox = class extends rp {
16712
16737
  destroy() {
16713
16738
  this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
16714
16739
  }
16715
- }, Px = {
16740
+ }, Ix = {
16716
16741
  editor: {
16717
16742
  type: Object,
16718
16743
  required: !0
@@ -16741,7 +16766,7 @@ var Ox = class extends rp {
16741
16766
  type: Object,
16742
16767
  required: !0
16743
16768
  }
16744
- }, Fx = s({
16769
+ }, Lx = s({
16745
16770
  name: "MarkViewContent",
16746
16771
  props: { as: {
16747
16772
  type: String,
@@ -16753,7 +16778,7 @@ var Ox = class extends rp {
16753
16778
  "data-mark-view-content": ""
16754
16779
  });
16755
16780
  }
16756
- }), Ix = class extends Df {
16781
+ }), Rx = class extends Df {
16757
16782
  constructor(e, t, n) {
16758
16783
  super(e, t, n);
16759
16784
  let r = {
@@ -16769,7 +16794,7 @@ var Ox = class extends rp {
16769
16794
  __name: e.__name,
16770
16795
  __file: e.__file
16771
16796
  });
16772
- this.renderer = new Nx(i, {
16797
+ this.renderer = new Fx(i, {
16773
16798
  editor: this.editor,
16774
16799
  props: r
16775
16800
  });
@@ -16788,10 +16813,10 @@ var Ox = class extends rp {
16788
16813
  this.renderer.destroy();
16789
16814
  }
16790
16815
  };
16791
- function Lx(e, t = {}) {
16792
- return (n) => n.editor.contentComponent ? new Ix(e, n, t) : {};
16816
+ function zx(e, t = {}) {
16817
+ return (n) => n.editor.contentComponent ? new Rx(e, n, t) : {};
16793
16818
  }
16794
- var Rx = {
16819
+ var Bx = {
16795
16820
  editor: {
16796
16821
  type: Object,
16797
16822
  required: !0
@@ -16836,7 +16861,7 @@ var Rx = {
16836
16861
  type: Object,
16837
16862
  required: !0
16838
16863
  }
16839
- }, zx = class extends xp {
16864
+ }, Vx = class extends Sp {
16840
16865
  constructor(e, t, n) {
16841
16866
  super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
16842
16867
  let e = this.getPos();
@@ -16885,7 +16910,7 @@ var Rx = {
16885
16910
  __name: this.component.__name,
16886
16911
  __file: this.component.__file
16887
16912
  });
16888
- this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Nx(r, {
16913
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Fx(r, {
16889
16914
  editor: this.editor,
16890
16915
  props: t
16891
16916
  });
@@ -16959,20 +16984,20 @@ var Rx = {
16959
16984
  this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate), this.contentDOMElement = null;
16960
16985
  }
16961
16986
  };
16962
- function Bx(e, t) {
16963
- return (n) => n.editor.contentComponent ? new zx(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
16987
+ function Hx(e, t) {
16988
+ return (n) => n.editor.contentComponent ? new Vx(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
16964
16989
  }
16965
- function Vx(e, t) {
16990
+ function Ux(e, t) {
16966
16991
  var n;
16967
16992
  let r = e;
16968
16993
  if (!r) return;
16969
- (n = r.mixins) == null || n.forEach((e) => Vx(e, t)), Vx(r.extends, t);
16994
+ (n = r.mixins) == null || n.forEach((e) => Ux(e, t)), Ux(r.extends, t);
16970
16995
  let { props: i } = r;
16971
16996
  Array.isArray(i) ? i.forEach((e) => t.add(h(e))) : i && Object.keys(i).forEach((e) => t.add(h(e)));
16972
16997
  }
16973
- function Hx(e, t) {
16998
+ function Wx(e, t) {
16974
16999
  let n = /* @__PURE__ */ new Set();
16975
- Vx(e, n);
17000
+ Ux(e, n);
16976
17001
  let r = {};
16977
17002
  for (let e of [
16978
17003
  "editor",
@@ -16981,41 +17006,41 @@ function Hx(e, t) {
16981
17006
  ]) n.has(h(e)) || (r[e] = null);
16982
17007
  return r;
16983
17008
  }
16984
- function Ux(e, t) {
17009
+ function Gx(e, t) {
16985
17010
  return Array.isArray(e) ? [...e, ...Object.keys(t)] : {
16986
17011
  ...e,
16987
17012
  ...t
16988
17013
  };
16989
17014
  }
16990
- function Wx(e, t) {
17015
+ function Kx(e, t) {
16991
17016
  let n = (t, n) => e(t, n);
16992
- return n.props = Ux(e.props, Hx(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
17017
+ return n.props = Gx(e.props, Wx(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
16993
17018
  }
16994
- var Gx = /* @__PURE__ */ Symbol("tiptapVueWidgetCache");
16995
- function Kx(e, t) {
16996
- let { editor: n, props: r = {} } = t, a = qx(e) ? Wx(e, r) : Jx(e, r);
17019
+ var qx = /* @__PURE__ */ Symbol("tiptapVueWidgetCache");
17020
+ function Jx(e, t) {
17021
+ let { editor: n, props: r = {} } = t, a = Yx(e) ? Kx(e, r) : Xx(e, r);
16997
17022
  return up({
16998
17023
  ...t,
16999
17024
  props: r,
17000
- cacheKey: Gx,
17025
+ cacheKey: qx,
17001
17026
  context: (e) => ({
17002
17027
  editor: i(n),
17003
17028
  getPos: e
17004
17029
  }),
17005
- create: (e) => new Nx(a, {
17030
+ create: (e) => new Fx(a, {
17006
17031
  editor: n,
17007
17032
  props: e
17008
17033
  }),
17009
17034
  materialize: (e) => e.element
17010
17035
  });
17011
17036
  }
17012
- function qx(e) {
17037
+ function Yx(e) {
17013
17038
  return typeof e == "function";
17014
17039
  }
17015
- function Jx(e, t) {
17040
+ function Xx(e, t) {
17016
17041
  return s({
17017
17042
  extends: { ...e },
17018
- props: Hx(e, t),
17043
+ props: Wx(e, t),
17019
17044
  template: e.template,
17020
17045
  setup: (t, n) => e.setup?.call(e, t, n),
17021
17046
  __scopeId: e.__scopeId,
@@ -17025,6 +17050,6 @@ function Jx(e, t) {
17025
17050
  });
17026
17051
  }
17027
17052
  //#endregion
17028
- export { J as _, Tv as a, gv as c, Rh as d, Ih as f, Of as g, q as h, Cx as i, q_ as l, wh as m, Bx as n, Sv as o, Th as p, Ex as r, yv as s, jx as t, Bh as u, Pf as v, K as y };
17053
+ export { J as _, Ev as a, _v as c, zh as d, Lh as f, Of as g, q as h, Tx as i, J_ as l, Th as m, Hx as n, Cv as o, Eh as p, Ox as r, bv as s, Nx as t, Vh as u, Pf as v, K as y };
17029
17054
 
17030
- //# sourceMappingURL=tiptap-DmpGap5g.js.map
17055
+ //# sourceMappingURL=tiptap-DWeSx_P8.js.map