@templatical/editor 0.55.0 → 0.56.0

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 (277) hide show
  1. package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-P6to1_0t.js} +3 -3
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
  5. package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DIISOR6U.js} +11 -11
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
  7. package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-w34W8_BP.js} +4 -4
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
  15. package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-DcABUYop.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-DEOPc4RC.js} +23 -23
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
  22. package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-D904Yw_R.js → Toolbar-XT-uGA9J.js} +937 -703
  37. package/dist/{TplModal-BBdotDf1.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
  41. package/dist/WrapperBlock-Bdw-072t.js +56 -0
  42. package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
  45. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-s79rmHFy.js} +9 -9
  54. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Dr-xGq6v.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
  58. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-BdzE9-l7.js} +29 -29
  82. package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-KOnd2teB.js} +6 -6
  92. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-D52VtwBZ.js} +11 -11
  110. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-C_Hfsher.js} +1173 -939
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-nyxwrM27.js → composables-CsfQlmcf.js} +543 -503
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
  138. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
  139. package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
  140. package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-BM6ZSnsQ.js} +70 -70
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
  147. package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
  148. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  149. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  150. package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
  151. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  153. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  154. package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-DJI7vvET.js} +2 -2
  163. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-Qw9rHc8C.js} +354 -341
  165. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
  166. package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
  167. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
  168. package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
  171. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  172. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  173. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  174. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  175. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  176. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  177. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  178. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-B4FHCGGm.js} +5 -5
  183. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
  184. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  185. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  186. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  187. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  188. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +793 -796
  192. package/dist/cdn/editor.js.map +1 -1
  193. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  194. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  195. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  196. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  197. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  198. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  199. package/dist/{composables-DPgNn9GZ.js → composables-CRX6rncm.js} +978 -938
  200. package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
  203. package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
  208. package/dist/{extensions-QFAARrjF.js → extensions-Cm6K4SRX.js} +285 -285
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +60 -12
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
  215. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  216. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  217. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  218. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  219. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  220. package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
  221. package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
  222. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  223. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  224. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
  227. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  228. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  229. package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
  230. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  231. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  232. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  233. package/dist/{socialIcons-NvIg5ahU.js → socialIcons-CJD6OsI7.js} +427 -414
  234. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  235. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/templatical-editor.js +851 -854
  238. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  239. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  240. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  241. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  242. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  243. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  244. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  245. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  246. package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-IoWOO679.js} +5 -5
  248. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  249. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  250. package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
  251. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  252. package/package.json +10 -10
  253. package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
  254. package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
  261. package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
  262. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
  265. package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
  267. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
  268. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  269. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
  270. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
  271. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
  272. package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
  273. package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
  274. package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
  275. package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
  276. package/dist/en-Do0SU6tR.js +0 -1
  277. package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
@@ -1,13 +1,13 @@
1
1
  import { Ft as e, M as t, Mt as n, O as r, Pt as i, U as a, W as o, Z as s, c, ct as l, d as u, et as d, f, l as p, u as m, y as h } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
2
  import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { Jt as y, ct as b, g as x, lt as S, vt as C } from "./dist-CBdk1Vcb.js";
4
- import { a as w, o as T, s as E } from "./LogicTagInsertButton-qZ82VMFx.js";
5
- import { t as D } from "./useI18n-CgtvtF4C.js";
6
- import { t as O } from "./useMergeTag-k7Kr0nMd.js";
7
- import { H as k, Kn as A, Qn as j, Zn as M, _n as N, m as P, qn as ee, s as F, u as te, v as I } from "./dist-BWflWcpW.js";
8
- import { n as ne, t as re } from "./dist-fqSers8_.js";
3
+ import { D as y, Yt as b, g as x, lt as S, ut as C, yt as w } from "./dist-BMUUt3zJ.js";
4
+ import { a as T, o as E, s as D } from "./LogicTagInsertButton-DEOPc4RC.js";
5
+ import { t as O } from "./useI18n-zeWYtWSv.js";
6
+ import { t as k } from "./useMergeTag-IoWOO679.js";
7
+ import { H as A, Kn as j, Qn as M, Zn as N, _n as ee, m as P, qn as te, s as F, u as I, v as ne } from "./dist-BWflWcpW.js";
8
+ import { n as re, t as ie } from "./dist-fqSers8_.js";
9
9
  // src/extensions/FontSize.ts
10
- var ie = F.create({
10
+ var ae = F.create({
11
11
  name: "fontSize",
12
12
  addOptions() {
13
13
  return { types: ["textStyle"] };
@@ -28,7 +28,7 @@ var ie = F.create({
28
28
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
29
29
  };
30
30
  }
31
- }), ae = F.create({
31
+ }), oe = F.create({
32
32
  name: "letterSpacing",
33
33
  addOptions() {
34
34
  return { types: ["textStyle"] };
@@ -49,7 +49,7 @@ var ie = F.create({
49
49
  unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
50
50
  };
51
51
  }
52
- }), oe = F.create({
52
+ }), se = F.create({
53
53
  name: "lineBoundaryKeys",
54
54
  addKeyboardShortcuts() {
55
55
  let e = (e) => ({ editor: t }) => {
@@ -63,7 +63,7 @@ var ie = F.create({
63
63
  Home: e("backward")
64
64
  };
65
65
  }
66
- }), se = F.create({
66
+ }), ce = F.create({
67
67
  name: "lineHeight",
68
68
  addOptions() {
69
69
  return {
@@ -87,11 +87,11 @@ var ie = F.create({
87
87
  unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
88
88
  };
89
89
  }
90
- }), ce = [
90
+ }), le = [
91
91
  "aria-label",
92
92
  "data-tooltip",
93
93
  "onKeydown"
94
- ], le = ["aria-label", "onKeydown"], ue = ["aria-label"], de = /* @__PURE__ */ h({
94
+ ], ue = ["aria-label", "onKeydown"], de = ["aria-label"], fe = /* @__PURE__ */ h({
95
95
  __name: "LogicMergeTagNodeView",
96
96
  props: {
97
97
  node: {},
@@ -101,10 +101,10 @@ var ie = F.create({
101
101
  updateAttributes: { type: Function }
102
102
  },
103
103
  setup(s) {
104
- let h = s, { syntax: y } = O(), { t: x } = D(), S = c(() => C(h.node.attrs.value, y)), w = c(() => b(h.node.attrs.value, y)), T = d(!1), E = d(""), k = d(null), A = !1;
104
+ let h = s, { syntax: y } = k(), { t: b } = O(), x = c(() => w(h.node.attrs.value, y)), C = c(() => S(h.node.attrs.value, y)), T = d(!1), E = d(""), D = d(null), A = !1;
105
105
  function j() {
106
106
  E.value = h.node.attrs.value, A = !1, T.value = !0, r(() => {
107
- k.value?.focus(), k.value?.select();
107
+ D.value?.focus(), D.value?.select();
108
108
  });
109
109
  }
110
110
  function M() {
@@ -113,47 +113,47 @@ var ie = F.create({
113
113
  let e = E.value.trim();
114
114
  e && e !== h.node.attrs.value && h.updateAttributes({
115
115
  value: e,
116
- keyword: C(e, y) ? b(e, y) : ""
116
+ keyword: w(e, y) ? S(e, y) : ""
117
117
  }), T.value = !1;
118
118
  }
119
119
  function N(e) {
120
120
  e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
121
121
  }
122
- return (r, c) => (t(), m(l(re), {
122
+ return (r, c) => (t(), m(l(ie), {
123
123
  as: "span",
124
- class: n(S.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
125
- style: i(S.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
124
+ class: n(x.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
125
+ style: i(x.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
126
126
  contenteditable: "false"
127
127
  }, {
128
128
  default: a(() => [T.value ? o((t(), f("input", {
129
129
  key: 0,
130
130
  ref_key: "inputRef",
131
- ref: k,
131
+ ref: D,
132
132
  "onUpdate:modelValue": c[0] ||= (e) => E.value = e,
133
133
  type: "text",
134
134
  class: "tpl:w-40 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:normal-case tpl:outline-none tpl:text-[var(--tpl-primary)]",
135
135
  onBlur: M,
136
136
  onKeydown: N
137
- }, null, 544)), [[g, E.value]]) : S.value ? (t(), f("span", {
137
+ }, null, 544)), [[g, E.value]]) : x.value ? (t(), f("span", {
138
138
  key: 1,
139
139
  role: "button",
140
140
  tabindex: "0",
141
- "aria-label": l(x).mergeTag.editValue,
141
+ "aria-label": l(b).mergeTag.editValue,
142
142
  class: "tpl-tooltip tpl:cursor-pointer",
143
143
  "data-tooltip": s.node.attrs.value,
144
144
  onClick: _(j, ["stop"]),
145
145
  onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
146
- }, e(w.value), 41, ce)) : (t(), f("span", {
146
+ }, e(C.value), 41, le)) : (t(), f("span", {
147
147
  key: 2,
148
148
  role: "button",
149
149
  tabindex: "0",
150
- "aria-label": l(x).mergeTag.editValue,
150
+ "aria-label": l(b).mergeTag.editValue,
151
151
  onClick: _(j, ["stop"]),
152
152
  onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
153
- }, e(s.node.attrs.value), 41, le)), S.value ? (t(), f("button", {
153
+ }, e(s.node.attrs.value), 41, ue)), x.value ? (t(), f("button", {
154
154
  key: 3,
155
155
  type: "button",
156
- "aria-label": l(x).mergeTag.deleteMergeTag,
156
+ "aria-label": l(b).mergeTag.deleteMergeTag,
157
157
  class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
158
158
  contenteditable: "false",
159
159
  onClick: c[1] ||= _((...e) => s.deleteNode && s.deleteNode(...e), ["stop", "prevent"])
@@ -175,22 +175,22 @@ var ie = F.create({
175
175
  y1: "6",
176
176
  x2: "18",
177
177
  y2: "18"
178
- })], -1)]], 8, ue)) : u("", !0)]),
178
+ })], -1)]], 8, de)) : u("", !0)]),
179
179
  _: 1
180
180
  }, 8, ["class", "style"]));
181
181
  }
182
182
  });
183
183
  // src/extensions/isNodeSelected.ts
184
- function L(e, t) {
184
+ function pe(e, t) {
185
185
  let { $from: n, $to: r } = e.state.selection;
186
186
  return n.pos === r.pos ? n.pos > 0 && n.nodeBefore?.type.name === t || n.nodeAfter?.type.name === t : !1;
187
187
  }
188
188
  // src/extensions/renderVueNodeView.ts
189
- function fe(e) {
190
- return ne(e);
189
+ function me(e) {
190
+ return re(e);
191
191
  }
192
192
  // src/extensions/LogicMergeTagNode.ts
193
- var pe = P.create({
193
+ var he = P.create({
194
194
  name: "logicMergeTagNode",
195
195
  group: "inline",
196
196
  inline: !0,
@@ -216,15 +216,15 @@ var pe = P.create({
216
216
  return [{ tag: "span[data-logic-merge-tag]" }];
217
217
  },
218
218
  renderHTML({ node: e, HTMLAttributes: t }) {
219
- if (!C(e.attrs.value, this.options.syntax)) return [
219
+ if (!w(e.attrs.value, this.options.syntax)) return [
220
220
  "span",
221
221
  {},
222
222
  e.attrs.value
223
223
  ];
224
- let n = b(e.attrs.value, this.options.syntax);
224
+ let n = S(e.attrs.value, this.options.syntax);
225
225
  return [
226
226
  "span",
227
- N(t, {
227
+ ee(t, {
228
228
  "data-logic-merge-tag": e.attrs.value,
229
229
  "data-keyword": n
230
230
  }),
@@ -232,22 +232,22 @@ var pe = P.create({
232
232
  ];
233
233
  },
234
234
  addNodeView() {
235
- return fe(de);
235
+ return me(fe);
236
236
  },
237
237
  addKeyboardShortcuts() {
238
238
  return {
239
- Backspace: () => L(this.editor, this.name),
240
- Delete: () => L(this.editor, this.name)
239
+ Backspace: () => pe(this.editor, this.name),
240
+ Delete: () => pe(this.editor, this.name)
241
241
  };
242
242
  },
243
243
  addInputRules() {
244
244
  let e = RegExp(this.options.syntax.logic.source + "$", "");
245
- return [new te({
245
+ return [new I({
246
246
  find: e,
247
247
  handler: ({ state: e, range: t, match: n }) => {
248
248
  let r = n[0];
249
- if (!C(r, this.options.syntax)) return;
250
- let i = b(r, this.options.syntax), a = this.type.create({
249
+ if (!w(r, this.options.syntax)) return;
250
+ let i = S(r, this.options.syntax), a = this.type.create({
251
251
  value: r,
252
252
  keyword: i
253
253
  });
@@ -256,16 +256,16 @@ var pe = P.create({
256
256
  })];
257
257
  },
258
258
  addPasteRules() {
259
- let e = this.options.syntax, t = Object.values(x).includes(e) ? (t) => y(t, e, "logic").map((e) => ({
259
+ let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "logic").map((e) => ({
260
260
  index: e.index,
261
261
  text: e.value
262
262
  })) : new RegExp(e.logic.source, "g");
263
- return [new I({
263
+ return [new ne({
264
264
  find: t,
265
265
  handler: ({ state: e, range: t, match: n }) => {
266
266
  let r = n[0];
267
- if (!C(r, this.options.syntax)) return;
268
- let i = b(r, this.options.syntax), a = this.type.create({
267
+ if (!w(r, this.options.syntax)) return;
268
+ let i = S(r, this.options.syntax), a = this.type.create({
269
269
  value: r,
270
270
  keyword: i
271
271
  });
@@ -273,11 +273,11 @@ var pe = P.create({
273
273
  }
274
274
  })];
275
275
  }
276
- }), me = ["aria-invalid"], he = [
276
+ }), ge = ["aria-invalid"], _e = [
277
277
  "aria-label",
278
278
  "data-tooltip",
279
279
  "onKeydown"
280
- ], ge = ["aria-label"], _e = /* @__PURE__ */ h({
280
+ ], ve = ["aria-label"], ye = /* @__PURE__ */ h({
281
281
  __name: "MergeTagNodeView",
282
282
  props: {
283
283
  node: {},
@@ -285,28 +285,28 @@ var pe = P.create({
285
285
  updateAttributes: { type: Function }
286
286
  },
287
287
  setup(i) {
288
- let u = i, { getMergeTagLabel: h, getMergeTagDisplayLabel: y, findMergeTag: b, canRepickMergeTag: x, showRawValue: S, isMergeTagValue: C, requestMergeTag: w } = O(), { t: T, format: E } = D(), k = c(() => y(u.node.attrs.value, u.node.attrs.label)), A = c(() => x(u.node.attrs.value)), j = d(!1), M = d(""), N = d(null), P = !1;
288
+ let u = i, { getMergeTagLabel: h, getMergeTagDisplayLabel: y, findMergeTag: b, canRepickMergeTag: x, showRawValue: S, isMergeTagValue: C, requestMergeTag: w } = k(), { t: T, format: E } = O(), D = c(() => y(u.node.attrs.value, u.node.attrs.label)), A = c(() => x(u.node.attrs.value)), j = d(!1), M = d(""), N = d(null), ee = !1;
289
289
  s(() => {
290
- P = !0;
290
+ ee = !0;
291
291
  });
292
- let ee = c(() => M.value.trim() === "" || C(M.value.trim()));
293
- async function F() {
292
+ let P = c(() => M.value.trim() === "" || C(M.value.trim()));
293
+ async function te() {
294
294
  let e = await w({
295
295
  reason: "edit",
296
296
  current: b(u.node.attrs.value)
297
297
  });
298
- !P && e && u.updateAttributes({
298
+ !ee && e && u.updateAttributes({
299
299
  value: e.value,
300
300
  label: e.label
301
301
  });
302
302
  }
303
- function te() {
303
+ function F() {
304
304
  M.value = u.node.attrs.value, j.value = !0, r(() => {
305
305
  N.value?.focus(), N.value?.select();
306
306
  });
307
307
  }
308
308
  function I() {
309
- A.value ? F() : te();
309
+ A.value ? te() : F();
310
310
  }
311
311
  function ne() {
312
312
  let e = M.value.trim();
@@ -315,13 +315,13 @@ var pe = P.create({
315
315
  label: h(e)
316
316
  }), j.value = !1;
317
317
  }
318
- function ie(e) {
318
+ function re(e) {
319
319
  if (e.key === "Enter") {
320
- if (e.preventDefault(), !ee.value) return;
320
+ if (e.preventDefault(), !P.value) return;
321
321
  ne();
322
322
  } else e.key === "Escape" && (j.value = !1);
323
323
  }
324
- return (r, s) => (t(), m(l(re), {
324
+ return (r, s) => (t(), m(l(ie), {
325
325
  as: "span",
326
326
  class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
327
327
  style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
@@ -333,20 +333,20 @@ var pe = P.create({
333
333
  ref: N,
334
334
  "onUpdate:modelValue": s[0] ||= (e) => M.value = e,
335
335
  type: "text",
336
- "aria-invalid": ee.value ? void 0 : "true",
337
- class: n(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", ee.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
336
+ "aria-invalid": P.value ? void 0 : "true",
337
+ class: n(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", P.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
338
338
  onBlur: ne,
339
- onKeydown: ie
340
- }, null, 42, me)), [[g, M.value]]) : (t(), f("span", {
339
+ onKeydown: re
340
+ }, null, 42, ge)), [[g, M.value]]) : (t(), f("span", {
341
341
  key: 1,
342
342
  role: "button",
343
343
  tabindex: "0",
344
- "aria-label": A.value ? l(E)(l(T).mergeTag.changeTag, { label: k.value }) : l(T).mergeTag.editValue,
344
+ "aria-label": A.value ? l(E)(l(T).mergeTag.changeTag, { label: D.value }) : l(T).mergeTag.editValue,
345
345
  class: n(["tpl:cursor-pointer", l(S) ? "tpl-tooltip" : ""]),
346
346
  "data-tooltip": l(S) ? i.node.attrs.value : void 0,
347
347
  onClick: _(I, ["stop"]),
348
348
  onKeydown: [v(_(I, ["stop"]), ["enter"]), v(_(I, ["prevent", "stop"]), ["space"])]
349
- }, e(k.value), 43, he)), p("button", {
349
+ }, e(D.value), 43, _e)), p("button", {
350
350
  type: "button",
351
351
  "aria-label": l(T).mergeTag.deleteMergeTag,
352
352
  class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
@@ -370,11 +370,11 @@ var pe = P.create({
370
370
  y1: "6",
371
371
  x2: "18",
372
372
  y2: "18"
373
- })], -1)]], 8, ge)]),
373
+ })], -1)]], 8, ve)]),
374
374
  _: 1
375
375
  }));
376
376
  }
377
- }), ve = P.create({
377
+ }), be = P.create({
378
378
  name: "mergeTagNode",
379
379
  group: "inline",
380
380
  inline: !0,
@@ -403,10 +403,10 @@ var pe = P.create({
403
403
  return [{ tag: "span[data-merge-tag]" }];
404
404
  },
405
405
  renderHTML({ node: e, HTMLAttributes: t }) {
406
- let n = S(e.attrs.value, this.options.mergeTags());
406
+ let n = C(e.attrs.value, this.options.mergeTags());
407
407
  return [
408
408
  "span",
409
- N(t, {
409
+ ee(t, {
410
410
  "data-merge-tag": e.attrs.value,
411
411
  "data-label": n
412
412
  }),
@@ -414,7 +414,7 @@ var pe = P.create({
414
414
  ];
415
415
  },
416
416
  addNodeView() {
417
- return fe(_e);
417
+ return me(ye);
418
418
  },
419
419
  addCommands() {
420
420
  return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
@@ -427,16 +427,16 @@ var pe = P.create({
427
427
  },
428
428
  addKeyboardShortcuts() {
429
429
  return {
430
- Backspace: () => L(this.editor, this.name),
431
- Delete: () => L(this.editor, this.name)
430
+ Backspace: () => pe(this.editor, this.name),
431
+ Delete: () => pe(this.editor, this.name)
432
432
  };
433
433
  },
434
434
  addInputRules() {
435
435
  let e = RegExp(this.options.syntax.value.source + "$", "");
436
- return [new te({
436
+ return [new I({
437
437
  find: e,
438
438
  handler: ({ state: e, range: t, match: n }) => {
439
- let r = n[0], i = S(r, this.options.mergeTags()), a = this.type.create({
439
+ let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
440
440
  label: i,
441
441
  value: r
442
442
  });
@@ -445,14 +445,14 @@ var pe = P.create({
445
445
  })];
446
446
  },
447
447
  addPasteRules() {
448
- let e = this.options.syntax, t = Object.values(x).includes(e) ? (t) => y(t, e, "value").map((e) => ({
448
+ let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "value").map((e) => ({
449
449
  index: e.index,
450
450
  text: e.value
451
451
  })) : new RegExp(e.value.source, "g");
452
- return [new I({
452
+ return [new ne({
453
453
  find: t,
454
454
  handler: ({ state: e, range: t, match: n }) => {
455
- let r = n[0], i = S(r, this.options.mergeTags()), a = this.type.create({
455
+ let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
456
456
  label: i,
457
457
  value: r
458
458
  });
@@ -460,72 +460,72 @@ var pe = P.create({
460
460
  }
461
461
  })];
462
462
  }
463
- }), ye = Math.min, R = Math.max, be = Math.round, xe = Math.floor, z = (e) => ({
463
+ }), xe = Math.min, L = Math.max, Se = Math.round, Ce = Math.floor, R = (e) => ({
464
464
  x: e,
465
465
  y: e
466
- }), Se = {
466
+ }), we = {
467
467
  left: "right",
468
468
  right: "left",
469
469
  bottom: "top",
470
470
  top: "bottom"
471
471
  };
472
- function Ce(e, t) {
472
+ function Te(e, t) {
473
473
  return typeof e == "function" ? e(t) : e;
474
474
  }
475
- function B(e) {
475
+ function z(e) {
476
476
  return e.split("-")[0];
477
477
  }
478
- function we(e) {
478
+ function Ee(e) {
479
479
  return e.split("-")[1];
480
480
  }
481
- function Te(e) {
481
+ function De(e) {
482
482
  return e === "x" ? "y" : "x";
483
483
  }
484
- function Ee(e) {
484
+ function Oe(e) {
485
485
  return e === "y" ? "height" : "width";
486
486
  }
487
- function V(e) {
487
+ function B(e) {
488
488
  let t = e[0];
489
489
  return t === "t" || t === "b" ? "y" : "x";
490
490
  }
491
- function De(e) {
492
- return Te(V(e));
491
+ function ke(e) {
492
+ return De(B(e));
493
493
  }
494
- function Oe(e, t, n) {
494
+ function Ae(e, t, n) {
495
495
  n === void 0 && (n = !1);
496
- let r = we(e), i = De(e), a = Ee(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
497
- return t.reference[a] > t.floating[a] && (o = Le(o)), [o, Le(o)];
496
+ let r = Ee(e), i = ke(e), a = Oe(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
497
+ return t.reference[a] > t.floating[a] && (o = V(o)), [o, V(o)];
498
498
  }
499
- function ke(e) {
500
- let t = Le(e);
499
+ function je(e) {
500
+ let t = V(e);
501
501
  return [
502
- Ae(e),
502
+ Me(e),
503
503
  t,
504
- Ae(t)
504
+ Me(t)
505
505
  ];
506
506
  }
507
- function Ae(e) {
507
+ function Me(e) {
508
508
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
509
509
  }
510
- var je = ["left", "right"], Me = ["right", "left"], Ne = ["top", "bottom"], Pe = ["bottom", "top"];
511
- function Fe(e, t, n) {
510
+ var Ne = ["left", "right"], Pe = ["right", "left"], Fe = ["top", "bottom"], Ie = ["bottom", "top"];
511
+ function Le(e, t, n) {
512
512
  switch (e) {
513
513
  case "top":
514
- case "bottom": return n ? t ? Me : je : t ? je : Me;
514
+ case "bottom": return n ? t ? Pe : Ne : t ? Ne : Pe;
515
515
  case "left":
516
- case "right": return t ? Ne : Pe;
516
+ case "right": return t ? Fe : Ie;
517
517
  default: return [];
518
518
  }
519
519
  }
520
- function Ie(e, t, n, r) {
521
- let i = we(e), a = Fe(B(e), n === "start", r);
522
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ae)))), a;
520
+ function Re(e, t, n, r) {
521
+ let i = Ee(e), a = Le(z(e), n === "start", r);
522
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Me)))), a;
523
523
  }
524
- function Le(e) {
525
- let t = B(e);
526
- return Se[t] + e.slice(t.length);
524
+ function V(e) {
525
+ let t = z(e);
526
+ return we[t] + e.slice(t.length);
527
527
  }
528
- function Re(e) {
528
+ function ze(e) {
529
529
  return {
530
530
  top: e.top ?? 0,
531
531
  right: e.right ?? 0,
@@ -533,15 +533,15 @@ function Re(e) {
533
533
  left: e.left ?? 0
534
534
  };
535
535
  }
536
- function ze(e) {
536
+ function Be(e) {
537
537
  return typeof e == "number" ? {
538
538
  top: e,
539
539
  right: e,
540
540
  bottom: e,
541
541
  left: e
542
- } : Re(e);
542
+ } : ze(e);
543
543
  }
544
- function Be(e) {
544
+ function Ve(e) {
545
545
  let { x: t, y: n, width: r, height: i } = e;
546
546
  return {
547
547
  width: r,
@@ -555,8 +555,8 @@ function Be(e) {
555
555
  };
556
556
  }
557
557
  // ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
558
- function Ve(e, t, n) {
559
- let { reference: r, floating: i } = e, a = V(t), o = De(t), s = Ee(o), c = B(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;
558
+ function He(e, t, n) {
559
+ let { reference: r, floating: i } = e, a = B(t), o = ke(t), s = Oe(o), c = z(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;
560
560
  switch (c) {
561
561
  case "top":
562
562
  p = {
@@ -587,12 +587,12 @@ function Ve(e, t, n) {
587
587
  y: r.y
588
588
  };
589
589
  }
590
- let m = we(t);
590
+ let m = Ee(t);
591
591
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
592
592
  }
593
- async function He(e, t) {
593
+ async function Ue(e, t) {
594
594
  t === void 0 && (t = {});
595
- 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 } = Ce(t, e), p = ze(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Be(await i.getClippingRect({
595
+ 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 } = Te(t, e), p = Be(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Ve(await i.getClippingRect({
596
596
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
597
597
  boundary: c,
598
598
  rootBoundary: l,
@@ -605,7 +605,7 @@ async function He(e, t) {
605
605
  } : 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(_)) || {
606
606
  x: 1,
607
607
  y: 1
608
- }, y = Be(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
608
+ }, y = Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
609
609
  elements: o,
610
610
  rect: g,
611
611
  offsetParent: _,
@@ -618,15 +618,15 @@ async function He(e, t) {
618
618
  right: (y.right - h.right + p.right) / v.x
619
619
  };
620
620
  }
621
- var Ue = 50, We = async (e, t, n) => {
621
+ var We = 50, Ge = async (e, t, n) => {
622
622
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
623
623
  ...o,
624
- detectOverflow: He
624
+ detectOverflow: Ue
625
625
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
626
626
  reference: e,
627
627
  floating: t,
628
628
  strategy: i
629
- }), { x: u, y: d } = Ve(l, r, c), f = r, p = 0, m = {};
629
+ }), { x: u, y: d } = He(l, r, c), f = r, p = 0, m = {};
630
630
  for (let n = 0; n < a.length; n++) {
631
631
  let h = a[n];
632
632
  if (!h) continue;
@@ -647,11 +647,11 @@ var Ue = 50, We = async (e, t, n) => {
647
647
  u = v ?? u, d = y ?? d, m[g] = {
648
648
  ...m[g],
649
649
  ...b
650
- }, x && p < Ue && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
650
+ }, x && p < We && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
651
651
  reference: e,
652
652
  floating: t,
653
653
  strategy: i
654
- }) : x.rects), {x: u, y: d} = Ve(l, f, c)), n = -1);
654
+ }) : x.rects), {x: u, y: d} = He(l, f, c)), n = -1);
655
655
  }
656
656
  return {
657
657
  x: u,
@@ -660,19 +660,19 @@ var Ue = 50, We = async (e, t, n) => {
660
660
  strategy: i,
661
661
  middlewareData: m
662
662
  };
663
- }, Ge = function(e) {
663
+ }, Ke = function(e) {
664
664
  return e === void 0 && (e = {}), {
665
665
  name: "flip",
666
666
  options: e,
667
667
  async fn(t) {
668
668
  var n;
669
- 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 } = Ce(e, t);
669
+ 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 } = Te(e, t);
670
670
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
671
- let g = B(r), _ = V(o), v = B(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Le(o)] : ke(o)), x = p !== "none";
672
- !d && x && b.push(...Ie(o, m, p, y));
671
+ let g = z(r), _ = B(o), v = z(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [V(o)] : je(o)), x = p !== "none";
672
+ !d && x && b.push(...Re(o, m, p, y));
673
673
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
674
674
  if (l && w.push(C[g]), u) {
675
- let e = Oe(r, a, y);
675
+ let e = Ae(r, a, y);
676
676
  w.push(C[e[0]], C[e[1]]);
677
677
  }
678
678
  if (T = [...T, {
@@ -680,7 +680,7 @@ var Ue = 50, We = async (e, t, n) => {
680
680
  overflows: w
681
681
  }], !w.every((e) => e <= 0)) {
682
682
  let e = (i.flip?.index || 0) + 1, t = S[e];
683
- if (t && (u !== "alignment" || _ === V(t) || T.every((e) => V(e.placement) !== _ || e.overflows[0] > 0))) return {
683
+ if (t && (u !== "alignment" || _ === B(t) || T.every((e) => B(e.placement) !== _ || e.overflows[0] > 0))) return {
684
684
  data: {
685
685
  index: e,
686
686
  overflows: T
@@ -692,7 +692,7 @@ var Ue = 50, We = async (e, t, n) => {
692
692
  case "bestFit": {
693
693
  let e = T.filter((e) => {
694
694
  if (x) {
695
- let t = V(e.placement);
695
+ let t = B(e.placement);
696
696
  return t === _ || t === "y";
697
697
  }
698
698
  return !0;
@@ -707,9 +707,9 @@ var Ue = 50, We = async (e, t, n) => {
707
707
  return {};
708
708
  }
709
709
  };
710
- }, Ke = /*#__PURE__*/ new Set(["left", "top"]);
711
- async function qe(e, t) {
712
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = B(n), s = we(n), c = V(n) === "y", l = Ke.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ce(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
710
+ }, qe = /*#__PURE__*/ new Set(["left", "top"]);
711
+ async function Je(e, t) {
712
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = z(n), s = Ee(n), c = B(n) === "y", l = qe.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Te(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
713
713
  mainAxis: d,
714
714
  crossAxis: 0,
715
715
  alignmentAxis: null
@@ -726,13 +726,13 @@ async function qe(e, t) {
726
726
  y: p * u
727
727
  };
728
728
  }
729
- var Je = function(e) {
729
+ var Ye = function(e) {
730
730
  return e === void 0 && (e = 0), {
731
731
  name: "offset",
732
732
  options: e,
733
733
  async fn(t) {
734
734
  var n;
735
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await qe(t, e);
735
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Je(t, e);
736
736
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
737
737
  x: r + s.x,
738
738
  y: i + s.y,
@@ -745,39 +745,39 @@ var Je = function(e) {
745
745
  };
746
746
  };
747
747
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
748
- function Ye() {
748
+ function Xe() {
749
749
  return typeof window < "u";
750
750
  }
751
751
  function H(e) {
752
- return Xe(e) ? (e.nodeName || "").toLowerCase() : "#document";
752
+ return Ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
753
753
  }
754
754
  function U(e) {
755
755
  var t;
756
756
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
757
757
  }
758
758
  function W(e) {
759
- return ((Xe(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
759
+ return ((Ze(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
760
760
  }
761
- function Xe(e) {
762
- return Ye() ? e instanceof Node || e instanceof U(e).Node : !1;
761
+ function Ze(e) {
762
+ return Xe() ? e instanceof Node || e instanceof U(e).Node : !1;
763
763
  }
764
764
  function G(e) {
765
- return Ye() ? e instanceof Element || e instanceof U(e).Element : !1;
765
+ return Xe() ? e instanceof Element || e instanceof U(e).Element : !1;
766
766
  }
767
767
  function K(e) {
768
- return Ye() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
769
- }
770
- function Ze(e) {
771
- return !Ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
768
+ return Xe() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
772
769
  }
773
770
  function Qe(e) {
771
+ return !Xe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
772
+ }
773
+ function $e(e) {
774
774
  let { overflow: t, overflowX: n, overflowY: r, display: i } = Y(e);
775
775
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
776
776
  }
777
- function $e(e) {
777
+ function et(e) {
778
778
  return /^(table|td|th)$/.test(H(e));
779
779
  }
780
- function et(e) {
780
+ function tt(e) {
781
781
  try {
782
782
  if (e.matches(":popover-open")) return !0;
783
783
  } catch {}
@@ -787,22 +787,22 @@ function et(e) {
787
787
  return !1;
788
788
  }
789
789
  }
790
- var tt = /transform|translate|scale|rotate|perspective|filter/, nt = /paint|layout|strict|content/, q = (e) => !!e && e !== "none", rt;
791
- function it(e) {
790
+ var nt = /transform|translate|scale|rotate|perspective|filter/, rt = /paint|layout|strict|content/, q = (e) => !!e && e !== "none", it;
791
+ function at(e) {
792
792
  let t = G(e) ? Y(e) : e;
793
- return q(t.transform) || q(t.translate) || q(t.scale) || q(t.rotate) || q(t.perspective) || !ot() && (q(t.backdropFilter) || q(t.filter)) || tt.test(t.willChange || "") || nt.test(t.contain || "");
793
+ return q(t.transform) || q(t.translate) || q(t.scale) || q(t.rotate) || q(t.perspective) || !st() && (q(t.backdropFilter) || q(t.filter)) || nt.test(t.willChange || "") || rt.test(t.contain || "");
794
794
  }
795
- function at(e) {
795
+ function ot(e) {
796
796
  let t = X(e);
797
797
  for (; K(t) && !J(t);) {
798
- if (it(t)) return t;
799
- if (et(t)) return null;
798
+ if (at(t)) return t;
799
+ if (tt(t)) return null;
800
800
  t = X(t);
801
801
  }
802
802
  return null;
803
803
  }
804
- function ot() {
805
- return rt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), rt;
804
+ function st() {
805
+ return it ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), it;
806
806
  }
807
807
  function J(e) {
808
808
  return /^(html|body|#document)$/.test(H(e));
@@ -810,7 +810,7 @@ function J(e) {
810
810
  function Y(e) {
811
811
  return U(e).getComputedStyle(e);
812
812
  }
813
- function st(e) {
813
+ function ct(e) {
814
814
  return G(e) ? {
815
815
  scrollLeft: e.scrollLeft,
816
816
  scrollTop: e.scrollTop
@@ -821,99 +821,99 @@ function st(e) {
821
821
  }
822
822
  function X(e) {
823
823
  if (H(e) === "html") return e;
824
- let t = e.assignedSlot || e.parentNode || Ze(e) && e.host || W(e);
825
- return Ze(t) ? t.host : t;
824
+ let t = e.assignedSlot || e.parentNode || Qe(e) && e.host || W(e);
825
+ return Qe(t) ? t.host : t;
826
826
  }
827
- function ct(e) {
827
+ function lt(e) {
828
828
  let t = X(e);
829
- return J(t) ? (e.ownerDocument || e).body : K(t) && Qe(t) ? t : ct(t);
829
+ return J(t) ? (e.ownerDocument || e).body : K(t) && $e(t) ? t : lt(t);
830
830
  }
831
831
  function Z(e, t, n) {
832
832
  t === void 0 && (t = []), n === void 0 && (n = !0);
833
- let r = ct(e), i = r === e.ownerDocument?.body, a = U(r);
833
+ let r = lt(e), i = r === e.ownerDocument?.body, a = U(r);
834
834
  if (i) {
835
- let e = lt(a);
836
- return t.concat(a, a.visualViewport || [], Qe(r) ? r : [], e && n ? Z(e) : []);
835
+ let e = ut(a);
836
+ return t.concat(a, a.visualViewport || [], $e(r) ? r : [], e && n ? Z(e) : []);
837
837
  }
838
838
  return t.concat(r, Z(r, [], n));
839
839
  }
840
- function lt(e) {
840
+ function ut(e) {
841
841
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
842
842
  }
843
843
  // ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
844
- function ut(e) {
845
- let t = Y(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = be(n) !== a || be(r) !== o;
844
+ function dt(e) {
845
+ let t = Y(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Se(n) !== a || Se(r) !== o;
846
846
  return s && (n = a, r = o), {
847
847
  width: n,
848
848
  height: r,
849
849
  $: s
850
850
  };
851
851
  }
852
- function dt(e) {
852
+ function ft(e) {
853
853
  return G(e) ? e : e.contextElement;
854
854
  }
855
855
  function Q(e) {
856
- let t = dt(e);
857
- if (!K(t)) return z(1);
858
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ut(t), o = (a ? be(n.width) : n.width) / r, s = (a ? be(n.height) : n.height) / i;
856
+ let t = ft(e);
857
+ if (!K(t)) return R(1);
858
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = dt(t), o = (a ? Se(n.width) : n.width) / r, s = (a ? Se(n.height) : n.height) / i;
859
859
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
860
860
  x: o,
861
861
  y: s
862
862
  };
863
863
  }
864
- var ft = /*#__PURE__*/ z(0);
865
- function pt(e) {
864
+ var pt = /*#__PURE__*/ R(0);
865
+ function mt(e) {
866
866
  let t = U(e);
867
- return !ot() || !t.visualViewport ? ft : {
867
+ return !st() || !t.visualViewport ? pt : {
868
868
  x: t.visualViewport.offsetLeft,
869
869
  y: t.visualViewport.offsetTop
870
870
  };
871
871
  }
872
- function mt(e, t, n) {
872
+ function ht(e, t, n) {
873
873
  return t === void 0 && (t = !1), !!n && t && n === U(e);
874
874
  }
875
875
  function $(e, t, n, r) {
876
876
  t === void 0 && (t = !1), n === void 0 && (n = !1);
877
- let i = e.getBoundingClientRect(), a = dt(e), o = z(1);
877
+ let i = e.getBoundingClientRect(), a = ft(e), o = R(1);
878
878
  t && (r ? G(r) && (o = Q(r)) : o = Q(e));
879
- let s = mt(a, n, r) ? pt(a) : z(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;
879
+ let s = ht(a, n, r) ? mt(a) : R(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;
880
880
  if (a && r) {
881
- let e = U(a), t = G(r) ? U(r) : r, n = e, i = lt(n);
881
+ let e = U(a), t = G(r) ? U(r) : r, n = e, i = ut(n);
882
882
  for (; i && t !== n;) {
883
883
  let e = Q(i), t = i.getBoundingClientRect(), r = Y(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
884
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = lt(n);
884
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = ut(n);
885
885
  }
886
886
  }
887
- return Be({
887
+ return Ve({
888
888
  width: u,
889
889
  height: d,
890
890
  x: c,
891
891
  y: l
892
892
  });
893
893
  }
894
- function ht(e, t) {
895
- let n = st(e).scrollLeft;
894
+ function gt(e, t) {
895
+ let n = ct(e).scrollLeft;
896
896
  return t ? t.left + n : $(W(e)).left + n;
897
897
  }
898
- function gt(e, t) {
898
+ function _t(e, t) {
899
899
  let n = e.getBoundingClientRect();
900
900
  return {
901
- x: n.left + t.scrollLeft - ht(e, n),
901
+ x: n.left + t.scrollLeft - gt(e, n),
902
902
  y: n.top + t.scrollTop
903
903
  };
904
904
  }
905
- function _t(e) {
906
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? et(t.floating) : !1;
905
+ function vt(e) {
906
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? tt(t.floating) : !1;
907
907
  if (r === o || s && a) return n;
908
908
  let c = {
909
909
  scrollLeft: 0,
910
910
  scrollTop: 0
911
- }, l = z(1), u = z(0), d = K(r);
912
- if ((d || !a) && ((H(r) !== "body" || Qe(o)) && (c = st(r)), d)) {
911
+ }, l = R(1), u = R(0), d = K(r);
912
+ if ((d || !a) && ((H(r) !== "body" || $e(o)) && (c = ct(r)), d)) {
913
913
  let e = $(r);
914
914
  l = Q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
915
915
  }
916
- let f = o && !d && !a ? gt(o, c) : z(0);
916
+ let f = o && !d && !a ? _t(o, c) : R(0);
917
917
  return {
918
918
  width: n.width * l.x,
919
919
  height: n.height * l.y,
@@ -921,29 +921,29 @@ function _t(e) {
921
921
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
922
922
  };
923
923
  }
924
- function vt(e) {
924
+ function yt(e) {
925
925
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
926
926
  }
927
- function yt(e) {
928
- let t = st(e), n = e.ownerDocument.body, r = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + ht(e), o = -t.scrollTop;
929
- return Y(n).direction === "rtl" && (a += R(e.clientWidth, n.clientWidth) - r), {
927
+ function bt(e) {
928
+ let t = ct(e), n = e.ownerDocument.body, r = L(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = L(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + gt(e), o = -t.scrollTop;
929
+ return Y(n).direction === "rtl" && (a += L(e.clientWidth, n.clientWidth) - r), {
930
930
  width: r,
931
931
  height: i,
932
932
  x: a,
933
933
  y: o
934
934
  };
935
935
  }
936
- var bt = 25;
937
- function xt(e, t, n) {
936
+ var xt = 25;
937
+ function St(e, t, n) {
938
938
  n === void 0 && (n = "viewport");
939
939
  let r = n === "layoutViewport", i = U(e), a = W(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
940
940
  if (o) {
941
- let e = !ot() || t === "fixed";
941
+ let e = !st() || t === "fixed";
942
942
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
943
943
  }
944
- if (ht(a) <= 0) {
944
+ if (gt(a) <= 0) {
945
945
  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;
946
- o <= bt && (s -= o);
946
+ o <= xt && (s -= o);
947
947
  }
948
948
  return {
949
949
  width: s,
@@ -952,7 +952,7 @@ function xt(e, t, n) {
952
952
  y: u
953
953
  };
954
954
  }
955
- function St(e, t) {
955
+ function Ct(e, t) {
956
956
  let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Q(e);
957
957
  return {
958
958
  width: e.clientWidth * a.x,
@@ -961,13 +961,13 @@ function St(e, t) {
961
961
  y: r * a.y
962
962
  };
963
963
  }
964
- function Ct(e, t, n) {
964
+ function wt(e, t, n) {
965
965
  let r;
966
- if (t === "viewport" || t === "layoutViewport") r = xt(e, n, t);
967
- else if (t === "document") r = yt(W(e));
968
- else if (G(t)) r = St(t, n);
966
+ if (t === "viewport" || t === "layoutViewport") r = St(e, n, t);
967
+ else if (t === "document") r = bt(W(e));
968
+ else if (G(t)) r = Ct(t, n);
969
969
  else {
970
- let n = pt(e);
970
+ let n = mt(e);
971
971
  r = {
972
972
  x: t.x - n.x,
973
973
  y: t.y - n.y,
@@ -975,23 +975,23 @@ function Ct(e, t, n) {
975
975
  height: t.height
976
976
  };
977
977
  }
978
- return Be(r);
978
+ return Ve(r);
979
979
  }
980
- function wt(e, t) {
980
+ function Tt(e, t) {
981
981
  let n = t.get(e);
982
982
  if (n) return n;
983
983
  let r = Z(e, [], !1).filter((e) => G(e) && H(e) !== "body"), i = null, a = Y(e).position === "fixed", o = a ? X(e) : e;
984
984
  for (; G(o) && !J(o);) {
985
- let e = Y(o), t = it(o), n = i ? i.position : a ? "fixed" : "";
985
+ let e = Y(o), t = at(o), n = i ? i.position : a ? "fixed" : "";
986
986
  !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = X(o);
987
987
  }
988
988
  return t.set(e, r), r;
989
989
  }
990
- function Tt(e) {
991
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? et(t) ? [] : wt(t, this._c) : [].concat(n), r], o = Ct(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
990
+ function Et(e) {
991
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? tt(t) ? [] : Tt(t, this._c) : [].concat(n), r], o = wt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
992
992
  for (let e = 1; e < a.length; e++) {
993
- let n = Ct(t, a[e], i);
994
- s = R(n.top, s), c = ye(n.right, c), l = ye(n.bottom, l), u = R(n.left, u);
993
+ let n = wt(t, a[e], i);
994
+ s = L(n.top, s), c = xe(n.right, c), l = xe(n.bottom, l), u = L(n.left, u);
995
995
  }
996
996
  return {
997
997
  width: c - u,
@@ -1000,24 +1000,24 @@ function Tt(e) {
1000
1000
  y: s
1001
1001
  };
1002
1002
  }
1003
- function Et(e) {
1004
- let { width: t, height: n } = ut(e);
1003
+ function Dt(e) {
1004
+ let { width: t, height: n } = dt(e);
1005
1005
  return {
1006
1006
  width: t,
1007
1007
  height: n
1008
1008
  };
1009
1009
  }
1010
- function Dt(e, t, n) {
1010
+ function Ot(e, t, n) {
1011
1011
  let r = K(t), i = W(t), a = n === "fixed", o = $(e, !0, a, t), s = {
1012
1012
  scrollLeft: 0,
1013
1013
  scrollTop: 0
1014
- }, c = z(0);
1015
- if ((r || !a) && ((H(t) !== "body" || Qe(i)) && (s = st(t)), r)) {
1014
+ }, c = R(0);
1015
+ if ((r || !a) && ((H(t) !== "body" || $e(i)) && (s = ct(t)), r)) {
1016
1016
  let e = $(t, !0, a, t);
1017
1017
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1018
1018
  }
1019
- !r && i && (c.x = ht(i));
1020
- let l = i && !r && !a ? gt(i, s) : z(0);
1019
+ !r && i && (c.x = gt(i));
1020
+ let l = i && !r && !a ? _t(i, s) : R(0);
1021
1021
  return {
1022
1022
  x: o.left + s.scrollLeft - c.x - l.x,
1023
1023
  y: o.top + s.scrollTop - c.y - l.y,
@@ -1025,34 +1025,34 @@ function Dt(e, t, n) {
1025
1025
  height: o.height
1026
1026
  };
1027
1027
  }
1028
- function Ot(e) {
1028
+ function kt(e) {
1029
1029
  return Y(e).position === "static";
1030
1030
  }
1031
- function kt(e, t) {
1031
+ function At(e, t) {
1032
1032
  if (!K(e) || Y(e).position === "fixed") return null;
1033
1033
  if (t) return t(e);
1034
1034
  let n = e.offsetParent;
1035
1035
  return W(e) === n && (n = n.ownerDocument.body), n;
1036
1036
  }
1037
- function At(e, t) {
1037
+ function jt(e, t) {
1038
1038
  let n = U(e);
1039
- if (et(e)) return n;
1039
+ if (tt(e)) return n;
1040
1040
  if (!K(e)) {
1041
1041
  let t = X(e);
1042
1042
  for (; t && !J(t);) {
1043
- if (G(t) && !Ot(t)) return t;
1043
+ if (G(t) && !kt(t)) return t;
1044
1044
  t = X(t);
1045
1045
  }
1046
1046
  return n;
1047
1047
  }
1048
- let r = kt(e, t);
1049
- for (; r && $e(r) && Ot(r);) r = kt(r, t);
1050
- return r && J(r) && Ot(r) && !it(r) ? n : r || at(e) || n;
1048
+ let r = At(e, t);
1049
+ for (; r && et(r) && kt(r);) r = At(r, t);
1050
+ return r && J(r) && kt(r) && !at(r) ? n : r || ot(e) || n;
1051
1051
  }
1052
- var jt = async function(e) {
1053
- let t = this.getOffsetParent || At, n = this.getDimensions, r = await n(e.floating);
1052
+ var Mt = async function(e) {
1053
+ let t = this.getOffsetParent || jt, n = this.getDimensions, r = await n(e.floating);
1054
1054
  return {
1055
- reference: Dt(e.reference, await t(e.floating), e.strategy),
1055
+ reference: Ot(e.reference, await t(e.floating), e.strategy),
1056
1056
  floating: {
1057
1057
  x: 0,
1058
1058
  y: 0,
@@ -1061,25 +1061,25 @@ var jt = async function(e) {
1061
1061
  }
1062
1062
  };
1063
1063
  };
1064
- function Mt(e) {
1064
+ function Nt(e) {
1065
1065
  return Y(e).direction === "rtl";
1066
1066
  }
1067
- var Nt = {
1068
- convertOffsetParentRelativeRectToViewportRelativeRect: _t,
1067
+ var Pt = {
1068
+ convertOffsetParentRelativeRectToViewportRelativeRect: vt,
1069
1069
  getDocumentElement: W,
1070
- getClippingRect: Tt,
1071
- getOffsetParent: At,
1072
- getElementRects: jt,
1073
- getClientRects: vt,
1074
- getDimensions: Et,
1070
+ getClippingRect: Et,
1071
+ getOffsetParent: jt,
1072
+ getElementRects: Mt,
1073
+ getClientRects: yt,
1074
+ getDimensions: Dt,
1075
1075
  getScale: Q,
1076
1076
  isElement: G,
1077
- isRTL: Mt
1077
+ isRTL: Nt
1078
1078
  };
1079
- function Pt(e, t) {
1079
+ function Ft(e, t) {
1080
1080
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1081
1081
  }
1082
- function Ft(e, t, n) {
1082
+ function It(e, t, n) {
1083
1083
  let r = null, i, a = W(e);
1084
1084
  function o() {
1085
1085
  var e;
@@ -1089,13 +1089,13 @@ function Ft(e, t, n) {
1089
1089
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
1090
1090
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1091
1091
  if (n || t(), !f || !p) return;
1092
- let m = xe(d), h = xe(a.clientWidth - (u + f)), g = xe(a.clientHeight - (d + p)), _ = xe(u), v = {
1092
+ let m = Ce(d), h = Ce(a.clientWidth - (u + f)), g = Ce(a.clientHeight - (d + p)), _ = Ce(u), v = {
1093
1093
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
1094
- threshold: R(0, ye(1, c)) || 1
1094
+ threshold: L(0, xe(1, c)) || 1
1095
1095
  }, y = !0;
1096
1096
  function b(t) {
1097
1097
  let n = t[0].intersectionRatio;
1098
- if (!Pt(l, e.getBoundingClientRect())) return s();
1098
+ if (!Ft(l, e.getBoundingClientRect())) return s();
1099
1099
  if (n !== c) {
1100
1100
  if (!y) return s();
1101
1101
  n ? s(!1, n) : i = setTimeout(() => {
@@ -1119,13 +1119,13 @@ function Ft(e, t, n) {
1119
1119
  c.removeEventListener("resize", l), o();
1120
1120
  };
1121
1121
  }
1122
- function It(e, t, n, r) {
1122
+ function Lt(e, t, n, r) {
1123
1123
  r === void 0 && (r = {});
1124
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = dt(e), u = i || a ? [...l ? Z(l) : [], ...t ? Z(t) : []] : [];
1124
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ft(e), u = i || a ? [...l ? Z(l) : [], ...t ? Z(t) : []] : [];
1125
1125
  u.forEach((e) => {
1126
1126
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
1127
1127
  });
1128
- let d = l && s ? Ft(l, n, a) : null, f = -1, p = null;
1128
+ let d = l && s ? It(l, n, a) : null, f = -1, p = null;
1129
1129
  o && (p = new ResizeObserver((e) => {
1130
1130
  let [r] = e;
1131
1131
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -1137,7 +1137,7 @@ function It(e, t, n, r) {
1137
1137
  c && g();
1138
1138
  function g() {
1139
1139
  let t = $(e);
1140
- h && !Pt(h, t) && n(), h = t, m = requestAnimationFrame(g);
1140
+ h && !Ft(h, t) && n(), h = t, m = requestAnimationFrame(g);
1141
1141
  }
1142
1142
  return n(), () => {
1143
1143
  var e;
@@ -1146,24 +1146,24 @@ function It(e, t, n, r) {
1146
1146
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1147
1147
  };
1148
1148
  }
1149
- var Lt = Je, Rt = Ge, zt = (e, t, n) => {
1149
+ var Rt = Ye, zt = Ke, Bt = (e, t, n) => {
1150
1150
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
1151
- ...Nt,
1151
+ ...Pt,
1152
1152
  ...i.platform,
1153
1153
  _c: r
1154
1154
  };
1155
- return We(e, t, {
1155
+ return Ge(e, t, {
1156
1156
  ...i,
1157
1157
  platform: a
1158
1158
  });
1159
1159
  };
1160
1160
  // ../../node_modules/.pnpm/@tiptap+suggestion@3.32.2_@floating-ui+dom@1.8.0_@tiptap+core@3.32.2_@tiptap+pm@3.32.2__@tiptap+pm@3.32.2/node_modules/@tiptap/suggestion/dist/index.js
1161
- function Bt(e) {
1162
- let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = k(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;
1161
+ function Vt(e) {
1162
+ let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = A(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;
1163
1163
  if (!p) return null;
1164
1164
  let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
1165
1165
  if (!h || h.input === void 0 || h.index === void 0) return null;
1166
- let g = h.input.slice(Math.max(0, h.index - 1), h.index), _ = RegExp(`^[${i?.map(k).join("")}\0]?$`).test(g);
1166
+ let g = h.input.slice(Math.max(0, h.index - 1), h.index), _ = RegExp(`^[${i?.map(A).join("")}\0]?$`).test(g);
1167
1167
  if (i !== null && !_) return null;
1168
1168
  let v = m + h.index, y = v + h[0].length;
1169
1169
  return s && l.test(p.slice(y - 1, y + 1)) && (h[0] += " ", y += 1), v < o.pos && y >= o.pos ? {
@@ -1175,7 +1175,7 @@ function Bt(e) {
1175
1175
  text: h[0]
1176
1176
  } : null;
1177
1177
  }
1178
- function Vt(e) {
1178
+ function Ht(e) {
1179
1179
  return e.docChanged ? e.steps.some((e) => {
1180
1180
  let t = e.slice;
1181
1181
  if (!t?.content) return !1;
@@ -1183,7 +1183,7 @@ function Vt(e) {
1183
1183
  return /\s/.test(n);
1184
1184
  }) : !1;
1185
1185
  }
1186
- function Ht(e) {
1186
+ function Ut(e) {
1187
1187
  return () => {
1188
1188
  let t = e.state.selection.$anchor.pos, { top: n, right: r, bottom: i, left: a } = e.view.coordsAtPos(t);
1189
1189
  try {
@@ -1193,13 +1193,13 @@ function Ht(e) {
1193
1193
  }
1194
1194
  };
1195
1195
  }
1196
- function Ut(e, t, n, r) {
1196
+ function Wt(e, t, n, r) {
1197
1197
  return n ? () => {
1198
1198
  let n = r.getState(e.state)?.decorationId;
1199
1199
  return t.dom.querySelector(`[data-decoration-id="${n}"]`)?.getBoundingClientRect() || null;
1200
- } : Ht(e);
1200
+ } : Ut(e);
1201
1201
  }
1202
- function Wt({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
1202
+ function Gt({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
1203
1203
  return a?.({
1204
1204
  editor: i,
1205
1205
  state: n,
@@ -1207,13 +1207,13 @@ function Wt({ match: e, dismissedRange: t, state: n, transaction: r, editor: i,
1207
1207
  match: e,
1208
1208
  transaction: r,
1209
1209
  allowSpaces: o
1210
- }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !Vt(r);
1210
+ }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !Ht(r);
1211
1211
  }
1212
- function Gt({ view: e, pluginKeyRef: t }) {
1212
+ function Kt({ view: e, pluginKeyRef: t }) {
1213
1213
  let n = e.state.tr.setMeta(t, { exit: !0 });
1214
1214
  e.dispatch(n);
1215
1215
  }
1216
- function Kt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
1216
+ function qt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
1217
1217
  return {
1218
1218
  handleKeyDown(t, n) {
1219
1219
  var r;
@@ -1237,7 +1237,7 @@ function Kt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
1237
1237
  let { active: o, range: s, decorationId: c, query: l } = e.getState(a);
1238
1238
  if (!o) return null;
1239
1239
  let u = !l?.length, d = [n];
1240
- return u && d.push(i), ee.create(a.doc, [A.inline(s.from, s.to, {
1240
+ return u && d.push(i), te.create(a.doc, [j.inline(s.from, s.to, {
1241
1241
  nodeName: t,
1242
1242
  class: d.join(" "),
1243
1243
  "data-decoration-id": c || void 0,
@@ -1246,7 +1246,7 @@ function Kt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
1246
1246
  }
1247
1247
  };
1248
1248
  }
1249
- function qt({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
1249
+ function Jt({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
1250
1250
  return {
1251
1251
  init() {
1252
1252
  return {
@@ -1305,7 +1305,7 @@ function qt({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r
1305
1305
  }
1306
1306
  };
1307
1307
  }
1308
- function Jt({ editor: e, items: t }) {
1308
+ function Yt({ editor: e, items: t }) {
1309
1309
  let n = null, r = null, i = null, a = () => {
1310
1310
  r !== null && (clearTimeout(r), r = null), i?.(), i = null;
1311
1311
  }, o = (e) => new Promise((t) => {
@@ -1339,19 +1339,19 @@ function Jt({ editor: e, items: t }) {
1339
1339
  }
1340
1340
  };
1341
1341
  }
1342
- function Yt({ placement: e, offset: t, flip: n, floatingUi: r }) {
1342
+ function Xt({ placement: e, offset: t, flip: n, floatingUi: r }) {
1343
1343
  var i;
1344
- let a = [Lt({
1344
+ let a = [Rt({
1345
1345
  mainAxis: t.mainAxis ?? 4,
1346
1346
  crossAxis: t.crossAxis ?? 0
1347
1347
  })];
1348
- return n && a.push(Rt()), r != null && (i = r.middleware) != null && i.length && a.push(...r.middleware), {
1348
+ return n && a.push(zt()), r != null && (i = r.middleware) != null && i.length && a.push(...r.middleware), {
1349
1349
  placement: e,
1350
1350
  strategy: r?.strategy ?? "absolute",
1351
1351
  middleware: a
1352
1352
  };
1353
1353
  }
1354
- function Xt(e) {
1354
+ function Zt(e) {
1355
1355
  if (e instanceof HTMLElement) return e;
1356
1356
  if (typeof e == "string") try {
1357
1357
  let t = document.querySelector(e);
@@ -1361,15 +1361,15 @@ function Xt(e) {
1361
1361
  }
1362
1362
  return document.body;
1363
1363
  }
1364
- function Zt({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
1364
+ function Qt({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
1365
1365
  return (o, s = {}) => {
1366
1366
  let c = {
1367
1367
  getBoundingClientRect: () => e() ?? new DOMRect(),
1368
1368
  contextElement: t
1369
1369
  }, l = !1, u = !o.isConnected;
1370
- u && Xt(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
1371
- let d = It(c, o, () => {
1372
- zt(c, o, {
1370
+ u && Zt(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
1371
+ let d = Lt(c, o, () => {
1372
+ Bt(c, o, {
1373
1373
  placement: n.placement,
1374
1374
  strategy: n.strategy,
1375
1375
  middleware: n.middleware
@@ -1394,11 +1394,11 @@ function Zt({ getReferenceRect: e, contextElement: t, config: n, container: r, d
1394
1394
  };
1395
1395
  };
1396
1396
  }
1397
- function Qt({ 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 }) {
1398
- let g, _ = Jt({
1397
+ function $t({ 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 }) {
1398
+ let g, _ = Yt({
1399
1399
  editor: e,
1400
1400
  items: n
1401
- }), v = Yt({
1401
+ }), v = Xt({
1402
1402
  placement: s,
1403
1403
  offset: c,
1404
1404
  flip: u,
@@ -1451,7 +1451,7 @@ function Qt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1451
1451
  container: l,
1452
1452
  flip: u,
1453
1453
  floatingUi: v,
1454
- mount: Zt({
1454
+ mount: Qt({
1455
1455
  getReferenceRect: k,
1456
1456
  contextElement: n.dom,
1457
1457
  config: v,
@@ -1503,24 +1503,24 @@ function Qt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1503
1503
  }
1504
1504
  };
1505
1505
  }
1506
- var $t = new j("suggestion");
1507
- function en({ pluginKey: e = $t, 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 = Bt, shouldShow: T, shouldResetDismissed: E }) {
1508
- let D = S?.(), O = r && !i, k = (n, r) => Ut(t, n, r, e);
1506
+ var en = new M("suggestion");
1507
+ function tn({ pluginKey: e = en, 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 = Vt, shouldShow: T, shouldResetDismissed: E }) {
1508
+ let D = S?.(), O = r && !i, k = (n, r) => Wt(t, n, r, e);
1509
1509
  function A(e) {
1510
- return Wt({
1510
+ return Gt({
1511
1511
  ...e,
1512
1512
  editor: t,
1513
1513
  shouldResetDismissed: E,
1514
1514
  effectiveAllowSpaces: O
1515
1515
  });
1516
1516
  }
1517
- let j = (t) => Gt({
1517
+ let j = (t) => Kt({
1518
1518
  view: t,
1519
1519
  pluginKeyRef: e
1520
1520
  });
1521
- return new M({
1521
+ return new N({
1522
1522
  key: e,
1523
- view: () => Qt({
1523
+ view: () => $t({
1524
1524
  editor: t,
1525
1525
  pluginKey: e,
1526
1526
  items: f,
@@ -1538,7 +1538,7 @@ function en({ pluginKey: e = $t, editor: t, char: n = "@", allowSpaces: r = !1,
1538
1538
  clientRectFor: k,
1539
1539
  dispatchExit: j
1540
1540
  }),
1541
- state: qt({
1541
+ state: Jt({
1542
1542
  editor: t,
1543
1543
  char: n,
1544
1544
  effectiveAllowSpaces: O,
@@ -1551,7 +1551,7 @@ function en({ pluginKey: e = $t, editor: t, char: n = "@", allowSpaces: r = !1,
1551
1551
  shouldKeepDismissed: A,
1552
1552
  pluginKey: e
1553
1553
  }),
1554
- props: Kt({
1554
+ props: qt({
1555
1555
  pluginKey: e,
1556
1556
  decorationTag: s,
1557
1557
  decorationClass: c,
@@ -1562,11 +1562,11 @@ function en({ pluginKey: e = $t, editor: t, char: n = "@", allowSpaces: r = !1,
1562
1562
  })
1563
1563
  });
1564
1564
  }
1565
- var tn = en;
1565
+ var nn = tn;
1566
1566
  // src/extensions/MergeTagSuggestion.ts
1567
- function nn(e, t) {
1567
+ function rn(e, t) {
1568
1568
  return () => {
1569
- let n = w(e, t);
1569
+ let n = T(e, t);
1570
1570
  return {
1571
1571
  onStart: (e) => {
1572
1572
  let t = e.editor.view?.dom;
@@ -1589,7 +1589,7 @@ function nn(e, t) {
1589
1589
  };
1590
1590
  };
1591
1591
  }
1592
- var rn = F.create({
1592
+ var an = F.create({
1593
1593
  name: "mergeTagSuggestion",
1594
1594
  addOptions() {
1595
1595
  return {
@@ -1605,7 +1605,7 @@ var rn = F.create({
1605
1605
  allowSpaces: !1,
1606
1606
  startOfLine: !1,
1607
1607
  allowedPrefixes: null,
1608
- items: ({ query: t }) => T(e(), t),
1608
+ items: ({ query: t }) => E(e(), t),
1609
1609
  command: ({ editor: e, range: t, props: n }) => {
1610
1610
  e.isEditable && e.chain().focus().insertContentAt(t, {
1611
1611
  type: "mergeTagNode",
@@ -1615,12 +1615,12 @@ var rn = F.create({
1615
1615
  }
1616
1616
  }).run();
1617
1617
  },
1618
- render: nn(t, n)
1618
+ render: rn(t, n)
1619
1619
  };
1620
- return [tn({
1620
+ return [nn({
1621
1621
  editor: this.editor,
1622
1622
  ...r
1623
1623
  })];
1624
1624
  }
1625
1625
  });
1626
- export { ie as FontSize, ae as LetterSpacing, oe as LineBoundaryKeys, se as LineHeight, pe as LogicMergeTagNode, ve as MergeTagNode, rn as MergeTagSuggestion, T as filterMergeTags, E as handleSuggestionKeyDown };
1626
+ export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, he as LogicMergeTagNode, be as MergeTagNode, an as MergeTagSuggestion, E as filterMergeTags, D as handleSuggestionKeyDown };