@templatical/editor 0.54.2 → 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 (281) hide show
  1. package/dist/{AiAltTextPopover-BBKVJ6HA.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-BuVbeQh-.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-ZpYJfm-O.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-DQRWMc59.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-DTpMEDyh.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-BZn7-p9e.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-OOmQWVzO.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-XESwnJia.js → LogicTagInsertButton-DEOPc4RC.js} +284 -279
  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-CAsBRoSm.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-bOf27Hg1.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-DH_6JFui.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-XGUkV5Uw.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-C72kWccI.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-BZN8KRvR.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-CKOnTMTU.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-BrlNxqDH.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels--lPR6gdh.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-4ON4_KKl.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-BE0jZmRJ.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-BKmNGrZN.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-DT1wllX3.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-HjVZuUTB.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-BppchV2k.js → Toolbar-XT-uGA9J.js} +1134 -852
  37. package/dist/{TplModal-BFWOoK8l.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-D4yNVLvq.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-D91v9k0x.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +18 -1
  45. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.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-BEepu1vo.js → AiRewriteMenu-s79rmHFy.js} +10 -10
  54. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.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-B6ndvof2.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-BGwDb0jB.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.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-B-0FsTj-.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.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-PDKuo2J3.js → LogicTagInsertButton-BdzE9-l7.js} +260 -255
  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-DoQHBJk2.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js → MergeTagTextarea-KOnd2teB.js} +8 -8
  92. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js → TestEmailModal-D52VtwBZ.js} +12 -12
  110. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-Cv6Rv1S-.js → Toolbar-C_Hfsher.js} +1196 -914
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-DGpGdwgf.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-BJnHCMAH.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.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-DOuIxWRv.js → ca-BJn8lcJx.js} +19 -2
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-BxikPuC1.js → composables-CsfQlmcf.js} +676 -620
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-DaOUfYBX.js → cdn/chunks/de-BLFp3nWx.js} +20 -1
  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-C0pHHMiR.js → en-DGGQJGbm.js} +19 -2
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/{es-CxyEKr6n.js → cdn/chunks/es-DTY9qgLv.js} +20 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-DuDWpKo7.js → extensions-BM6ZSnsQ.js} +82 -76
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-L4FqO9Gp.js} +20 -1
  147. package/dist/cdn/chunks/fr-L4FqO9Gp.js.map +1 -0
  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-DfaIAoGI.js → ja-6uOXkh4v.js} +19 -2
  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/cdn/chunks/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +19 -2
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js +300 -0
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js → preRenderCustomBlocks-Dn6dFUwx.js} +2 -2
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/cdn/chunks/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +19 -2
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js → sanitizeHtml-DJI7vvET.js} +3 -3
  163. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js → socialIcons-Qw9rHc8C.js} +420 -406
  165. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.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-712f3ofG.js → src-C9JWWxAk.js} +683 -568
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-ZFw5fg_z.js → src-mXG-Of9A.js} +892 -735
  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-Bgg4qpev.js +33 -0
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DiNjT22M.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js → useMergeTag-B4FHCGGm.js} +6 -6
  183. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.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-BcoPpkDS.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +761 -764
  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-BbPFRlBf.js → composables-CRX6rncm.js} +1044 -988
  200. package/dist/{createCloudRuntime-Dlrg88gS.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-BLFp3nWx.js} +18 -3
  203. package/dist/{dist-C34cYI5S.js → dist-BMUUt3zJ.js} +964 -807
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-C0pHHMiR.js → en-DGGQJGbm.js} +18 -1
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-DTY9qgLv.js} +18 -3
  208. package/dist/{extensions-xCiyqSg7.js → extensions-Cm6K4SRX.js} +344 -338
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-L4FqO9Gp.js} +18 -3
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +74 -13
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +18 -1
  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/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +18 -1
  221. package/dist/normalizeMergeTagMarkup-Da9JAgx7.js +298 -0
  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-DvbRa3L3.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +18 -1
  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-D_ab7dD6.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-DhAolBjt.js → socialIcons-CJD6OsI7.js} +283 -269
  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-BmuakZBd.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-DC4a8b_v.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-BSxJai99.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-DtOo5y3U.js +0 -140
  254. package/dist/WrapperBlock-BUzQTZuu.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-B6ndvof2.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-PDKuo2J3.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-Cv6Rv1S-.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +0 -1
  261. package/dist/cdn/chunks/composables-BxikPuC1.js.map +0 -1
  262. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  265. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-DuDWpKo7.js.map +0 -1
  267. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  268. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  269. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  270. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  271. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js +0 -290
  272. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js.map +0 -1
  273. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  274. package/dist/cdn/chunks/src-712f3ofG.js.map +0 -1
  275. package/dist/cdn/chunks/src-B2tQbzf6.js +0 -677
  276. package/dist/cdn/chunks/src-B2tQbzf6.js.map +0 -1
  277. package/dist/cdn/chunks/src-ZFw5fg_z.js.map +0 -1
  278. package/dist/cdn/chunks/useLocalizedDisplay-DiNjT22M.js +0 -33
  279. package/dist/en-Do0SU6tR.js +0 -1
  280. package/dist/normalizeMergeTagMarkup-C7FGNURu.js +0 -288
  281. package/dist/useLocalizedDisplay-C9MBFUr4.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 { ct as y, g as b, lt as x, vt as S } from "./dist-C34cYI5S.js";
4
- import { a as C, o as w, s as T } from "./LogicTagInsertButton-XESwnJia.js";
5
- import { t as ee } from "./useI18n-CgtvtF4C.js";
6
- import { t as E } from "./useMergeTag-DC4a8b_v.js";
7
- import { H as D, Kn as O, Qn as k, Zn as A, _n as j, m as M, qn as te, s as N, u as ne, v as re } from "./dist-BWflWcpW.js";
8
- import { n as P, t as ie } 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 ae = N.create({
10
+ var ae = F.create({
11
11
  name: "fontSize",
12
12
  addOptions() {
13
13
  return { types: ["textStyle"] };
@@ -28,7 +28,7 @@ var ae = N.create({
28
28
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
29
29
  };
30
30
  }
31
- }), oe = N.create({
31
+ }), oe = F.create({
32
32
  name: "letterSpacing",
33
33
  addOptions() {
34
34
  return { types: ["textStyle"] };
@@ -49,7 +49,7 @@ var ae = N.create({
49
49
  unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
50
50
  };
51
51
  }
52
- }), se = N.create({
52
+ }), se = F.create({
53
53
  name: "lineBoundaryKeys",
54
54
  addKeyboardShortcuts() {
55
55
  let e = (e) => ({ editor: t }) => {
@@ -63,7 +63,7 @@ var ae = N.create({
63
63
  Home: e("backward")
64
64
  };
65
65
  }
66
- }), ce = N.create({
66
+ }), ce = F.create({
67
67
  name: "lineHeight",
68
68
  addOptions() {
69
69
  return {
@@ -101,59 +101,59 @@ var ae = N.create({
101
101
  updateAttributes: { type: Function }
102
102
  },
103
103
  setup(s) {
104
- let h = s, { syntax: b } = E(), { t: x } = ee(), C = c(() => S(h.node.attrs.value, b)), w = c(() => y(h.node.attrs.value, b)), T = d(!1), D = d(""), O = d(null), k = !1;
105
- function A() {
106
- D.value = h.node.attrs.value, k = !1, T.value = !0, r(() => {
107
- O.value?.focus(), O.value?.select();
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
+ function j() {
106
+ E.value = h.node.attrs.value, A = !1, T.value = !0, r(() => {
107
+ D.value?.focus(), D.value?.select();
108
108
  });
109
109
  }
110
- function j() {
111
- if (k) return;
112
- k = !0;
113
- let e = D.value.trim();
110
+ function M() {
111
+ if (A) return;
112
+ A = !0;
113
+ let e = E.value.trim();
114
114
  e && e !== h.node.attrs.value && h.updateAttributes({
115
115
  value: e,
116
- keyword: S(e, b) ? y(e, b) : ""
116
+ keyword: w(e, y) ? S(e, y) : ""
117
117
  }), T.value = !1;
118
118
  }
119
- function M(e) {
120
- e.key === "Enter" ? (e.preventDefault(), j()) : e.key === "Escape" && (T.value = !1);
119
+ function N(e) {
120
+ e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
121
121
  }
122
122
  return (r, c) => (t(), m(l(ie), {
123
123
  as: "span",
124
- class: n(C.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(C.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: O,
132
- "onUpdate:modelValue": c[0] ||= (e) => D.value = e,
131
+ ref: D,
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
- onBlur: j,
136
- onKeydown: M
137
- }, null, 544)), [[g, D.value]]) : C.value ? (t(), f("span", {
135
+ onBlur: M,
136
+ onKeydown: N
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
- onClick: _(A, ["stop"]),
145
- onKeydown: [v(_(A, ["stop"]), ["enter"]), v(_(A, ["prevent", "stop"]), ["space"])]
146
- }, e(w.value), 41, le)) : (t(), f("span", {
144
+ onClick: _(j, ["stop"]),
145
+ onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
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,
151
- onClick: _(A, ["stop"]),
152
- onKeydown: [v(_(A, ["stop"]), ["enter"]), v(_(A, ["prevent", "stop"]), ["space"])]
153
- }, e(s.node.attrs.value), 41, ue)), C.value ? (t(), f("button", {
150
+ "aria-label": l(b).mergeTag.editValue,
151
+ onClick: _(j, ["stop"]),
152
+ onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
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"])
@@ -181,22 +181,22 @@ var ae = N.create({
181
181
  }
182
182
  });
183
183
  // src/extensions/isNodeSelected.ts
184
- function F(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 pe(e) {
190
- return P(e);
189
+ function me(e) {
190
+ return re(e);
191
191
  }
192
192
  // src/extensions/LogicMergeTagNode.ts
193
- var me = M.create({
193
+ var he = P.create({
194
194
  name: "logicMergeTagNode",
195
195
  group: "inline",
196
196
  inline: !0,
197
197
  atom: !0,
198
198
  addOptions() {
199
- return { syntax: b.liquid };
199
+ return { syntax: x.liquid };
200
200
  },
201
201
  addAttributes() {
202
202
  return {
@@ -216,15 +216,15 @@ var me = M.create({
216
216
  return [{ tag: "span[data-logic-merge-tag]" }];
217
217
  },
218
218
  renderHTML({ node: e, HTMLAttributes: t }) {
219
- if (!S(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 = y(e.attrs.value, this.options.syntax);
224
+ let n = S(e.attrs.value, this.options.syntax);
225
225
  return [
226
226
  "span",
227
- j(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 me = M.create({
232
232
  ];
233
233
  },
234
234
  addNodeView() {
235
- return pe(fe);
235
+ return me(fe);
236
236
  },
237
237
  addKeyboardShortcuts() {
238
238
  return {
239
- Backspace: () => F(this.editor, this.name),
240
- Delete: () => F(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 ne({
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 (!S(r, this.options.syntax)) return;
250
- let i = y(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,13 +256,16 @@ var me = M.create({
256
256
  })];
257
257
  },
258
258
  addPasteRules() {
259
- let e = new RegExp(this.options.syntax.logic.source, "g");
260
- return [new re({
261
- find: e,
259
+ let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "logic").map((e) => ({
260
+ index: e.index,
261
+ text: e.value
262
+ })) : new RegExp(e.logic.source, "g");
263
+ return [new ne({
264
+ find: t,
262
265
  handler: ({ state: e, range: t, match: n }) => {
263
266
  let r = n[0];
264
- if (!S(r, this.options.syntax)) return;
265
- let i = y(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({
266
269
  value: r,
267
270
  keyword: i
268
271
  });
@@ -270,11 +273,11 @@ var me = M.create({
270
273
  }
271
274
  })];
272
275
  }
273
- }), he = ["aria-invalid"], ge = [
276
+ }), ge = ["aria-invalid"], _e = [
274
277
  "aria-label",
275
278
  "data-tooltip",
276
279
  "onKeydown"
277
- ], _e = ["aria-label"], ve = /* @__PURE__ */ h({
280
+ ], ve = ["aria-label"], ye = /* @__PURE__ */ h({
278
281
  __name: "MergeTagNodeView",
279
282
  props: {
280
283
  node: {},
@@ -282,41 +285,41 @@ var me = M.create({
282
285
  updateAttributes: { type: Function }
283
286
  },
284
287
  setup(i) {
285
- let u = i, { getMergeTagLabel: h, getMergeTagDisplayLabel: y, findMergeTag: b, canRepickMergeTag: x, showRawValue: S, isMergeTagValue: C, requestMergeTag: w } = E(), { t: T, format: D } = ee(), O = c(() => y(u.node.attrs.value, u.node.attrs.label)), k = c(() => x(u.node.attrs.value)), A = d(!1), j = d(""), M = d(null), te = !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;
286
289
  s(() => {
287
- te = !0;
290
+ ee = !0;
288
291
  });
289
- let N = c(() => j.value.trim() === "" || C(j.value.trim()));
290
- async function ne() {
292
+ let P = c(() => M.value.trim() === "" || C(M.value.trim()));
293
+ async function te() {
291
294
  let e = await w({
292
295
  reason: "edit",
293
296
  current: b(u.node.attrs.value)
294
297
  });
295
- !te && e && u.updateAttributes({
298
+ !ee && e && u.updateAttributes({
296
299
  value: e.value,
297
300
  label: e.label
298
301
  });
299
302
  }
300
- function re() {
301
- j.value = u.node.attrs.value, A.value = !0, r(() => {
302
- M.value?.focus(), M.value?.select();
303
+ function F() {
304
+ M.value = u.node.attrs.value, j.value = !0, r(() => {
305
+ N.value?.focus(), N.value?.select();
303
306
  });
304
307
  }
305
- function P() {
306
- k.value ? ne() : re();
308
+ function I() {
309
+ A.value ? te() : F();
307
310
  }
308
- function ae() {
309
- let e = j.value.trim();
311
+ function ne() {
312
+ let e = M.value.trim();
310
313
  e && e !== u.node.attrs.value && C(e) && u.updateAttributes({
311
314
  value: e,
312
315
  label: h(e)
313
- }), A.value = !1;
316
+ }), j.value = !1;
314
317
  }
315
- function oe(e) {
318
+ function re(e) {
316
319
  if (e.key === "Enter") {
317
- if (e.preventDefault(), !N.value) return;
318
- ae();
319
- } else e.key === "Escape" && (A.value = !1);
320
+ if (e.preventDefault(), !P.value) return;
321
+ ne();
322
+ } else e.key === "Escape" && (j.value = !1);
320
323
  }
321
324
  return (r, s) => (t(), m(l(ie), {
322
325
  as: "span",
@@ -324,26 +327,26 @@ var me = M.create({
324
327
  style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
325
328
  contenteditable: "false"
326
329
  }, {
327
- default: a(() => [A.value ? o((t(), f("input", {
330
+ default: a(() => [j.value ? o((t(), f("input", {
328
331
  key: 0,
329
332
  ref_key: "inputRef",
330
- ref: M,
331
- "onUpdate:modelValue": s[0] ||= (e) => j.value = e,
333
+ ref: N,
334
+ "onUpdate:modelValue": s[0] ||= (e) => M.value = e,
332
335
  type: "text",
333
- "aria-invalid": N.value ? void 0 : "true",
334
- 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)]", N.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
335
- onBlur: ae,
336
- onKeydown: oe
337
- }, null, 42, he)), [[g, j.value]]) : (t(), f("span", {
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
+ onBlur: ne,
339
+ onKeydown: re
340
+ }, null, 42, ge)), [[g, M.value]]) : (t(), f("span", {
338
341
  key: 1,
339
342
  role: "button",
340
343
  tabindex: "0",
341
- "aria-label": k.value ? l(D)(l(T).mergeTag.changeTag, { label: O.value }) : l(T).mergeTag.editValue,
344
+ "aria-label": A.value ? l(E)(l(T).mergeTag.changeTag, { label: D.value }) : l(T).mergeTag.editValue,
342
345
  class: n(["tpl:cursor-pointer", l(S) ? "tpl-tooltip" : ""]),
343
346
  "data-tooltip": l(S) ? i.node.attrs.value : void 0,
344
- onClick: _(P, ["stop"]),
345
- onKeydown: [v(_(P, ["stop"]), ["enter"]), v(_(P, ["prevent", "stop"]), ["space"])]
346
- }, e(O.value), 43, ge)), p("button", {
347
+ onClick: _(I, ["stop"]),
348
+ onKeydown: [v(_(I, ["stop"]), ["enter"]), v(_(I, ["prevent", "stop"]), ["space"])]
349
+ }, e(D.value), 43, _e)), p("button", {
347
350
  type: "button",
348
351
  "aria-label": l(T).mergeTag.deleteMergeTag,
349
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)]",
@@ -367,11 +370,11 @@ var me = M.create({
367
370
  y1: "6",
368
371
  x2: "18",
369
372
  y2: "18"
370
- })], -1)]], 8, _e)]),
373
+ })], -1)]], 8, ve)]),
371
374
  _: 1
372
375
  }));
373
376
  }
374
- }), ye = M.create({
377
+ }), be = P.create({
375
378
  name: "mergeTagNode",
376
379
  group: "inline",
377
380
  inline: !0,
@@ -379,7 +382,7 @@ var me = M.create({
379
382
  addOptions() {
380
383
  return {
381
384
  mergeTags: () => [],
382
- syntax: b.liquid
385
+ syntax: x.liquid
383
386
  };
384
387
  },
385
388
  addAttributes() {
@@ -400,10 +403,10 @@ var me = M.create({
400
403
  return [{ tag: "span[data-merge-tag]" }];
401
404
  },
402
405
  renderHTML({ node: e, HTMLAttributes: t }) {
403
- let n = x(e.attrs.value, this.options.mergeTags());
406
+ let n = C(e.attrs.value, this.options.mergeTags());
404
407
  return [
405
408
  "span",
406
- j(t, {
409
+ ee(t, {
407
410
  "data-merge-tag": e.attrs.value,
408
411
  "data-label": n
409
412
  }),
@@ -411,7 +414,7 @@ var me = M.create({
411
414
  ];
412
415
  },
413
416
  addNodeView() {
414
- return pe(ve);
417
+ return me(ye);
415
418
  },
416
419
  addCommands() {
417
420
  return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
@@ -424,16 +427,16 @@ var me = M.create({
424
427
  },
425
428
  addKeyboardShortcuts() {
426
429
  return {
427
- Backspace: () => F(this.editor, this.name),
428
- Delete: () => F(this.editor, this.name)
430
+ Backspace: () => pe(this.editor, this.name),
431
+ Delete: () => pe(this.editor, this.name)
429
432
  };
430
433
  },
431
434
  addInputRules() {
432
435
  let e = RegExp(this.options.syntax.value.source + "$", "");
433
- return [new ne({
436
+ return [new I({
434
437
  find: e,
435
438
  handler: ({ state: e, range: t, match: n }) => {
436
- let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
439
+ let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
437
440
  label: i,
438
441
  value: r
439
442
  });
@@ -442,11 +445,14 @@ var me = M.create({
442
445
  })];
443
446
  },
444
447
  addPasteRules() {
445
- let e = new RegExp(this.options.syntax.value.source, "g");
446
- return [new re({
447
- find: e,
448
+ let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "value").map((e) => ({
449
+ index: e.index,
450
+ text: e.value
451
+ })) : new RegExp(e.value.source, "g");
452
+ return [new ne({
453
+ find: t,
448
454
  handler: ({ state: e, range: t, match: n }) => {
449
- let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
455
+ let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
450
456
  label: i,
451
457
  value: r
452
458
  });
@@ -454,72 +460,72 @@ var me = M.create({
454
460
  }
455
461
  })];
456
462
  }
457
- }), be = Math.min, I = Math.max, L = Math.round, R = Math.floor, z = (e) => ({
463
+ }), xe = Math.min, L = Math.max, Se = Math.round, Ce = Math.floor, R = (e) => ({
458
464
  x: e,
459
465
  y: e
460
- }), xe = {
466
+ }), we = {
461
467
  left: "right",
462
468
  right: "left",
463
469
  bottom: "top",
464
470
  top: "bottom"
465
471
  };
466
- function Se(e, t) {
472
+ function Te(e, t) {
467
473
  return typeof e == "function" ? e(t) : e;
468
474
  }
469
- function B(e) {
475
+ function z(e) {
470
476
  return e.split("-")[0];
471
477
  }
472
- function Ce(e) {
478
+ function Ee(e) {
473
479
  return e.split("-")[1];
474
480
  }
475
- function we(e) {
481
+ function De(e) {
476
482
  return e === "x" ? "y" : "x";
477
483
  }
478
- function Te(e) {
484
+ function Oe(e) {
479
485
  return e === "y" ? "height" : "width";
480
486
  }
481
- function V(e) {
487
+ function B(e) {
482
488
  let t = e[0];
483
489
  return t === "t" || t === "b" ? "y" : "x";
484
490
  }
485
- function Ee(e) {
486
- return we(V(e));
491
+ function ke(e) {
492
+ return De(B(e));
487
493
  }
488
- function De(e, t, n) {
494
+ function Ae(e, t, n) {
489
495
  n === void 0 && (n = !1);
490
- let r = Ce(e), i = Ee(e), a = Te(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
491
- return t.reference[a] > t.floating[a] && (o = Ie(o)), [o, Ie(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)];
492
498
  }
493
- function Oe(e) {
494
- let t = Ie(e);
499
+ function je(e) {
500
+ let t = V(e);
495
501
  return [
496
- ke(e),
502
+ Me(e),
497
503
  t,
498
- ke(t)
504
+ Me(t)
499
505
  ];
500
506
  }
501
- function ke(e) {
507
+ function Me(e) {
502
508
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
503
509
  }
504
- var Ae = ["left", "right"], je = ["right", "left"], Me = ["top", "bottom"], Ne = ["bottom", "top"];
505
- function Pe(e, t, n) {
510
+ var Ne = ["left", "right"], Pe = ["right", "left"], Fe = ["top", "bottom"], Ie = ["bottom", "top"];
511
+ function Le(e, t, n) {
506
512
  switch (e) {
507
513
  case "top":
508
- case "bottom": return n ? t ? je : Ae : t ? Ae : je;
514
+ case "bottom": return n ? t ? Pe : Ne : t ? Ne : Pe;
509
515
  case "left":
510
- case "right": return t ? Me : Ne;
516
+ case "right": return t ? Fe : Ie;
511
517
  default: return [];
512
518
  }
513
519
  }
514
- function Fe(e, t, n, r) {
515
- let i = Ce(e), a = Pe(B(e), n === "start", r);
516
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ke)))), 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;
517
523
  }
518
- function Ie(e) {
519
- let t = B(e);
520
- return xe[t] + e.slice(t.length);
524
+ function V(e) {
525
+ let t = z(e);
526
+ return we[t] + e.slice(t.length);
521
527
  }
522
- function Le(e) {
528
+ function ze(e) {
523
529
  return {
524
530
  top: e.top ?? 0,
525
531
  right: e.right ?? 0,
@@ -527,15 +533,15 @@ function Le(e) {
527
533
  left: e.left ?? 0
528
534
  };
529
535
  }
530
- function Re(e) {
536
+ function Be(e) {
531
537
  return typeof e == "number" ? {
532
538
  top: e,
533
539
  right: e,
534
540
  bottom: e,
535
541
  left: e
536
- } : Le(e);
542
+ } : ze(e);
537
543
  }
538
- function ze(e) {
544
+ function Ve(e) {
539
545
  let { x: t, y: n, width: r, height: i } = e;
540
546
  return {
541
547
  width: r,
@@ -549,8 +555,8 @@ function ze(e) {
549
555
  };
550
556
  }
551
557
  // ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
552
- function Be(e, t, n) {
553
- let { reference: r, floating: i } = e, a = V(t), o = Ee(t), s = Te(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;
554
560
  switch (c) {
555
561
  case "top":
556
562
  p = {
@@ -581,12 +587,12 @@ function Be(e, t, n) {
581
587
  y: r.y
582
588
  };
583
589
  }
584
- let m = Ce(t);
590
+ let m = Ee(t);
585
591
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
586
592
  }
587
- async function Ve(e, t) {
593
+ async function Ue(e, t) {
588
594
  t === void 0 && (t = {});
589
- 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 } = Se(t, e), p = Re(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ze(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({
590
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)),
591
597
  boundary: c,
592
598
  rootBoundary: l,
@@ -599,7 +605,7 @@ async function Ve(e, t) {
599
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(_)) || {
600
606
  x: 1,
601
607
  y: 1
602
- }, y = ze(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
608
+ }, y = Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
603
609
  elements: o,
604
610
  rect: g,
605
611
  offsetParent: _,
@@ -612,15 +618,15 @@ async function Ve(e, t) {
612
618
  right: (y.right - h.right + p.right) / v.x
613
619
  };
614
620
  }
615
- var He = 50, Ue = async (e, t, n) => {
621
+ var We = 50, Ge = async (e, t, n) => {
616
622
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
617
623
  ...o,
618
- detectOverflow: Ve
624
+ detectOverflow: Ue
619
625
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
620
626
  reference: e,
621
627
  floating: t,
622
628
  strategy: i
623
- }), { x: u, y: d } = Be(l, r, c), f = r, p = 0, m = {};
629
+ }), { x: u, y: d } = He(l, r, c), f = r, p = 0, m = {};
624
630
  for (let n = 0; n < a.length; n++) {
625
631
  let h = a[n];
626
632
  if (!h) continue;
@@ -641,11 +647,11 @@ var He = 50, Ue = async (e, t, n) => {
641
647
  u = v ?? u, d = y ?? d, m[g] = {
642
648
  ...m[g],
643
649
  ...b
644
- }, x && p < He && (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({
645
651
  reference: e,
646
652
  floating: t,
647
653
  strategy: i
648
- }) : x.rects), {x: u, y: d} = Be(l, f, c)), n = -1);
654
+ }) : x.rects), {x: u, y: d} = He(l, f, c)), n = -1);
649
655
  }
650
656
  return {
651
657
  x: u,
@@ -654,19 +660,19 @@ var He = 50, Ue = async (e, t, n) => {
654
660
  strategy: i,
655
661
  middlewareData: m
656
662
  };
657
- }, We = function(e) {
663
+ }, Ke = function(e) {
658
664
  return e === void 0 && (e = {}), {
659
665
  name: "flip",
660
666
  options: e,
661
667
  async fn(t) {
662
668
  var n;
663
- 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 } = Se(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);
664
670
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
665
- 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 ? [Ie(o)] : Oe(o)), x = p !== "none";
666
- !d && x && b.push(...Fe(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));
667
673
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
668
674
  if (l && w.push(C[g]), u) {
669
- let e = De(r, a, y);
675
+ let e = Ae(r, a, y);
670
676
  w.push(C[e[0]], C[e[1]]);
671
677
  }
672
678
  if (T = [...T, {
@@ -674,7 +680,7 @@ var He = 50, Ue = async (e, t, n) => {
674
680
  overflows: w
675
681
  }], !w.every((e) => e <= 0)) {
676
682
  let e = (i.flip?.index || 0) + 1, t = S[e];
677
- 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 {
678
684
  data: {
679
685
  index: e,
680
686
  overflows: T
@@ -686,7 +692,7 @@ var He = 50, Ue = async (e, t, n) => {
686
692
  case "bestFit": {
687
693
  let e = T.filter((e) => {
688
694
  if (x) {
689
- let t = V(e.placement);
695
+ let t = B(e.placement);
690
696
  return t === _ || t === "y";
691
697
  }
692
698
  return !0;
@@ -701,9 +707,9 @@ var He = 50, Ue = async (e, t, n) => {
701
707
  return {};
702
708
  }
703
709
  };
704
- }, Ge = /*#__PURE__*/ new Set(["left", "top"]);
705
- async function Ke(e, t) {
706
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = B(n), s = Ce(n), c = V(n) === "y", l = Ge.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Se(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" ? {
707
713
  mainAxis: d,
708
714
  crossAxis: 0,
709
715
  alignmentAxis: null
@@ -720,13 +726,13 @@ async function Ke(e, t) {
720
726
  y: p * u
721
727
  };
722
728
  }
723
- var qe = function(e) {
729
+ var Ye = function(e) {
724
730
  return e === void 0 && (e = 0), {
725
731
  name: "offset",
726
732
  options: e,
727
733
  async fn(t) {
728
734
  var n;
729
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Ke(t, e);
735
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Je(t, e);
730
736
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
731
737
  x: r + s.x,
732
738
  y: i + s.y,
@@ -739,39 +745,39 @@ var qe = function(e) {
739
745
  };
740
746
  };
741
747
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
742
- function Je() {
748
+ function Xe() {
743
749
  return typeof window < "u";
744
750
  }
745
751
  function H(e) {
746
- return Ye(e) ? (e.nodeName || "").toLowerCase() : "#document";
752
+ return Ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
747
753
  }
748
754
  function U(e) {
749
755
  var t;
750
756
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
751
757
  }
752
758
  function W(e) {
753
- return ((Ye(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
759
+ return ((Ze(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
754
760
  }
755
- function Ye(e) {
756
- return Je() ? 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;
757
763
  }
758
764
  function G(e) {
759
- return Je() ? e instanceof Element || e instanceof U(e).Element : !1;
765
+ return Xe() ? e instanceof Element || e instanceof U(e).Element : !1;
760
766
  }
761
767
  function K(e) {
762
- return Je() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
768
+ return Xe() ? e instanceof HTMLElement || e instanceof U(e).HTMLElement : !1;
763
769
  }
764
- function Xe(e) {
765
- return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
770
+ function Qe(e) {
771
+ return !Xe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
766
772
  }
767
- function Ze(e) {
773
+ function $e(e) {
768
774
  let { overflow: t, overflowX: n, overflowY: r, display: i } = Y(e);
769
775
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
770
776
  }
771
- function Qe(e) {
777
+ function et(e) {
772
778
  return /^(table|td|th)$/.test(H(e));
773
779
  }
774
- function $e(e) {
780
+ function tt(e) {
775
781
  try {
776
782
  if (e.matches(":popover-open")) return !0;
777
783
  } catch {}
@@ -781,22 +787,22 @@ function $e(e) {
781
787
  return !1;
782
788
  }
783
789
  }
784
- var et = /transform|translate|scale|rotate|perspective|filter/, tt = /paint|layout|strict|content/, q = (e) => !!e && e !== "none", nt;
785
- function rt(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) {
786
792
  let t = G(e) ? Y(e) : e;
787
- return q(t.transform) || q(t.translate) || q(t.scale) || q(t.rotate) || q(t.perspective) || !at() && (q(t.backdropFilter) || q(t.filter)) || et.test(t.willChange || "") || tt.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 || "");
788
794
  }
789
- function it(e) {
795
+ function ot(e) {
790
796
  let t = X(e);
791
797
  for (; K(t) && !J(t);) {
792
- if (rt(t)) return t;
793
- if ($e(t)) return null;
798
+ if (at(t)) return t;
799
+ if (tt(t)) return null;
794
800
  t = X(t);
795
801
  }
796
802
  return null;
797
803
  }
798
- function at() {
799
- return nt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), nt;
804
+ function st() {
805
+ return it ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), it;
800
806
  }
801
807
  function J(e) {
802
808
  return /^(html|body|#document)$/.test(H(e));
@@ -804,7 +810,7 @@ function J(e) {
804
810
  function Y(e) {
805
811
  return U(e).getComputedStyle(e);
806
812
  }
807
- function ot(e) {
813
+ function ct(e) {
808
814
  return G(e) ? {
809
815
  scrollLeft: e.scrollLeft,
810
816
  scrollTop: e.scrollTop
@@ -815,99 +821,99 @@ function ot(e) {
815
821
  }
816
822
  function X(e) {
817
823
  if (H(e) === "html") return e;
818
- let t = e.assignedSlot || e.parentNode || Xe(e) && e.host || W(e);
819
- return Xe(t) ? t.host : t;
824
+ let t = e.assignedSlot || e.parentNode || Qe(e) && e.host || W(e);
825
+ return Qe(t) ? t.host : t;
820
826
  }
821
- function st(e) {
827
+ function lt(e) {
822
828
  let t = X(e);
823
- return J(t) ? (e.ownerDocument || e).body : K(t) && Ze(t) ? t : st(t);
829
+ return J(t) ? (e.ownerDocument || e).body : K(t) && $e(t) ? t : lt(t);
824
830
  }
825
831
  function Z(e, t, n) {
826
832
  t === void 0 && (t = []), n === void 0 && (n = !0);
827
- let r = st(e), i = r === e.ownerDocument?.body, a = U(r);
833
+ let r = lt(e), i = r === e.ownerDocument?.body, a = U(r);
828
834
  if (i) {
829
- let e = ct(a);
830
- return t.concat(a, a.visualViewport || [], Ze(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) : []);
831
837
  }
832
838
  return t.concat(r, Z(r, [], n));
833
839
  }
834
- function ct(e) {
840
+ function ut(e) {
835
841
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
836
842
  }
837
843
  // ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
838
- function lt(e) {
839
- 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 = L(n) !== a || L(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;
840
846
  return s && (n = a, r = o), {
841
847
  width: n,
842
848
  height: r,
843
849
  $: s
844
850
  };
845
851
  }
846
- function ut(e) {
852
+ function ft(e) {
847
853
  return G(e) ? e : e.contextElement;
848
854
  }
849
855
  function Q(e) {
850
- let t = ut(e);
851
- if (!K(t)) return z(1);
852
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = lt(t), o = (a ? L(n.width) : n.width) / r, s = (a ? L(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;
853
859
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
854
860
  x: o,
855
861
  y: s
856
862
  };
857
863
  }
858
- var dt = /*#__PURE__*/ z(0);
859
- function ft(e) {
864
+ var pt = /*#__PURE__*/ R(0);
865
+ function mt(e) {
860
866
  let t = U(e);
861
- return !at() || !t.visualViewport ? dt : {
867
+ return !st() || !t.visualViewport ? pt : {
862
868
  x: t.visualViewport.offsetLeft,
863
869
  y: t.visualViewport.offsetTop
864
870
  };
865
871
  }
866
- function pt(e, t, n) {
872
+ function ht(e, t, n) {
867
873
  return t === void 0 && (t = !1), !!n && t && n === U(e);
868
874
  }
869
875
  function $(e, t, n, r) {
870
876
  t === void 0 && (t = !1), n === void 0 && (n = !1);
871
- let i = e.getBoundingClientRect(), a = ut(e), o = z(1);
877
+ let i = e.getBoundingClientRect(), a = ft(e), o = R(1);
872
878
  t && (r ? G(r) && (o = Q(r)) : o = Q(e));
873
- let s = pt(a, n, r) ? ft(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;
874
880
  if (a && r) {
875
- let e = U(a), t = G(r) ? U(r) : r, n = e, i = ct(n);
881
+ let e = U(a), t = G(r) ? U(r) : r, n = e, i = ut(n);
876
882
  for (; i && t !== n;) {
877
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;
878
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = ct(n);
884
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = ut(n);
879
885
  }
880
886
  }
881
- return ze({
887
+ return Ve({
882
888
  width: u,
883
889
  height: d,
884
890
  x: c,
885
891
  y: l
886
892
  });
887
893
  }
888
- function mt(e, t) {
889
- let n = ot(e).scrollLeft;
894
+ function gt(e, t) {
895
+ let n = ct(e).scrollLeft;
890
896
  return t ? t.left + n : $(W(e)).left + n;
891
897
  }
892
- function ht(e, t) {
898
+ function _t(e, t) {
893
899
  let n = e.getBoundingClientRect();
894
900
  return {
895
- x: n.left + t.scrollLeft - mt(e, n),
901
+ x: n.left + t.scrollLeft - gt(e, n),
896
902
  y: n.top + t.scrollTop
897
903
  };
898
904
  }
899
- function gt(e) {
900
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? $e(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;
901
907
  if (r === o || s && a) return n;
902
908
  let c = {
903
909
  scrollLeft: 0,
904
910
  scrollTop: 0
905
- }, l = z(1), u = z(0), d = K(r);
906
- if ((d || !a) && ((H(r) !== "body" || Ze(o)) && (c = ot(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)) {
907
913
  let e = $(r);
908
914
  l = Q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
909
915
  }
910
- let f = o && !d && !a ? ht(o, c) : z(0);
916
+ let f = o && !d && !a ? _t(o, c) : R(0);
911
917
  return {
912
918
  width: n.width * l.x,
913
919
  height: n.height * l.y,
@@ -915,29 +921,29 @@ function gt(e) {
915
921
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
916
922
  };
917
923
  }
918
- function _t(e) {
924
+ function yt(e) {
919
925
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
920
926
  }
921
- function vt(e) {
922
- let t = ot(e), n = e.ownerDocument.body, r = I(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = I(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + mt(e), o = -t.scrollTop;
923
- return Y(n).direction === "rtl" && (a += I(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), {
924
930
  width: r,
925
931
  height: i,
926
932
  x: a,
927
933
  y: o
928
934
  };
929
935
  }
930
- var yt = 25;
931
- function bt(e, t, n) {
936
+ var xt = 25;
937
+ function St(e, t, n) {
932
938
  n === void 0 && (n = "viewport");
933
939
  let r = n === "layoutViewport", i = U(e), a = W(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
934
940
  if (o) {
935
- let e = !at() || t === "fixed";
941
+ let e = !st() || t === "fixed";
936
942
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
937
943
  }
938
- if (mt(a) <= 0) {
944
+ if (gt(a) <= 0) {
939
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;
940
- o <= yt && (s -= o);
946
+ o <= xt && (s -= o);
941
947
  }
942
948
  return {
943
949
  width: s,
@@ -946,7 +952,7 @@ function bt(e, t, n) {
946
952
  y: u
947
953
  };
948
954
  }
949
- function xt(e, t) {
955
+ function Ct(e, t) {
950
956
  let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Q(e);
951
957
  return {
952
958
  width: e.clientWidth * a.x,
@@ -955,13 +961,13 @@ function xt(e, t) {
955
961
  y: r * a.y
956
962
  };
957
963
  }
958
- function St(e, t, n) {
964
+ function wt(e, t, n) {
959
965
  let r;
960
- if (t === "viewport" || t === "layoutViewport") r = bt(e, n, t);
961
- else if (t === "document") r = vt(W(e));
962
- else if (G(t)) r = xt(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);
963
969
  else {
964
- let n = ft(e);
970
+ let n = mt(e);
965
971
  r = {
966
972
  x: t.x - n.x,
967
973
  y: t.y - n.y,
@@ -969,23 +975,23 @@ function St(e, t, n) {
969
975
  height: t.height
970
976
  };
971
977
  }
972
- return ze(r);
978
+ return Ve(r);
973
979
  }
974
- function Ct(e, t) {
980
+ function Tt(e, t) {
975
981
  let n = t.get(e);
976
982
  if (n) return n;
977
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;
978
984
  for (; G(o) && !J(o);) {
979
- let e = Y(o), t = rt(o), n = i ? i.position : a ? "fixed" : "";
985
+ let e = Y(o), t = at(o), n = i ? i.position : a ? "fixed" : "";
980
986
  !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = X(o);
981
987
  }
982
988
  return t.set(e, r), r;
983
989
  }
984
- function wt(e) {
985
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? $e(t) ? [] : Ct(t, this._c) : [].concat(n), r], o = St(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;
986
992
  for (let e = 1; e < a.length; e++) {
987
- let n = St(t, a[e], i);
988
- s = I(n.top, s), c = be(n.right, c), l = be(n.bottom, l), u = I(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);
989
995
  }
990
996
  return {
991
997
  width: c - u,
@@ -994,24 +1000,24 @@ function wt(e) {
994
1000
  y: s
995
1001
  };
996
1002
  }
997
- function Tt(e) {
998
- let { width: t, height: n } = lt(e);
1003
+ function Dt(e) {
1004
+ let { width: t, height: n } = dt(e);
999
1005
  return {
1000
1006
  width: t,
1001
1007
  height: n
1002
1008
  };
1003
1009
  }
1004
- function Et(e, t, n) {
1010
+ function Ot(e, t, n) {
1005
1011
  let r = K(t), i = W(t), a = n === "fixed", o = $(e, !0, a, t), s = {
1006
1012
  scrollLeft: 0,
1007
1013
  scrollTop: 0
1008
- }, c = z(0);
1009
- if ((r || !a) && ((H(t) !== "body" || Ze(i)) && (s = ot(t)), r)) {
1014
+ }, c = R(0);
1015
+ if ((r || !a) && ((H(t) !== "body" || $e(i)) && (s = ct(t)), r)) {
1010
1016
  let e = $(t, !0, a, t);
1011
1017
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1012
1018
  }
1013
- !r && i && (c.x = mt(i));
1014
- let l = i && !r && !a ? ht(i, s) : z(0);
1019
+ !r && i && (c.x = gt(i));
1020
+ let l = i && !r && !a ? _t(i, s) : R(0);
1015
1021
  return {
1016
1022
  x: o.left + s.scrollLeft - c.x - l.x,
1017
1023
  y: o.top + s.scrollTop - c.y - l.y,
@@ -1019,34 +1025,34 @@ function Et(e, t, n) {
1019
1025
  height: o.height
1020
1026
  };
1021
1027
  }
1022
- function Dt(e) {
1028
+ function kt(e) {
1023
1029
  return Y(e).position === "static";
1024
1030
  }
1025
- function Ot(e, t) {
1031
+ function At(e, t) {
1026
1032
  if (!K(e) || Y(e).position === "fixed") return null;
1027
1033
  if (t) return t(e);
1028
1034
  let n = e.offsetParent;
1029
1035
  return W(e) === n && (n = n.ownerDocument.body), n;
1030
1036
  }
1031
- function kt(e, t) {
1037
+ function jt(e, t) {
1032
1038
  let n = U(e);
1033
- if ($e(e)) return n;
1039
+ if (tt(e)) return n;
1034
1040
  if (!K(e)) {
1035
1041
  let t = X(e);
1036
1042
  for (; t && !J(t);) {
1037
- if (G(t) && !Dt(t)) return t;
1043
+ if (G(t) && !kt(t)) return t;
1038
1044
  t = X(t);
1039
1045
  }
1040
1046
  return n;
1041
1047
  }
1042
- let r = Ot(e, t);
1043
- for (; r && Qe(r) && Dt(r);) r = Ot(r, t);
1044
- return r && J(r) && Dt(r) && !rt(r) ? n : r || it(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;
1045
1051
  }
1046
- var At = async function(e) {
1047
- let t = this.getOffsetParent || kt, 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);
1048
1054
  return {
1049
- reference: Et(e.reference, await t(e.floating), e.strategy),
1055
+ reference: Ot(e.reference, await t(e.floating), e.strategy),
1050
1056
  floating: {
1051
1057
  x: 0,
1052
1058
  y: 0,
@@ -1055,25 +1061,25 @@ var At = async function(e) {
1055
1061
  }
1056
1062
  };
1057
1063
  };
1058
- function jt(e) {
1064
+ function Nt(e) {
1059
1065
  return Y(e).direction === "rtl";
1060
1066
  }
1061
- var Mt = {
1062
- convertOffsetParentRelativeRectToViewportRelativeRect: gt,
1067
+ var Pt = {
1068
+ convertOffsetParentRelativeRectToViewportRelativeRect: vt,
1063
1069
  getDocumentElement: W,
1064
- getClippingRect: wt,
1065
- getOffsetParent: kt,
1066
- getElementRects: At,
1067
- getClientRects: _t,
1068
- getDimensions: Tt,
1070
+ getClippingRect: Et,
1071
+ getOffsetParent: jt,
1072
+ getElementRects: Mt,
1073
+ getClientRects: yt,
1074
+ getDimensions: Dt,
1069
1075
  getScale: Q,
1070
1076
  isElement: G,
1071
- isRTL: jt
1077
+ isRTL: Nt
1072
1078
  };
1073
- function Nt(e, t) {
1079
+ function Ft(e, t) {
1074
1080
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1075
1081
  }
1076
- function Pt(e, t, n) {
1082
+ function It(e, t, n) {
1077
1083
  let r = null, i, a = W(e);
1078
1084
  function o() {
1079
1085
  var e;
@@ -1083,13 +1089,13 @@ function Pt(e, t, n) {
1083
1089
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
1084
1090
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1085
1091
  if (n || t(), !f || !p) return;
1086
- let m = R(d), h = R(a.clientWidth - (u + f)), g = R(a.clientHeight - (d + p)), _ = R(u), v = {
1092
+ let m = Ce(d), h = Ce(a.clientWidth - (u + f)), g = Ce(a.clientHeight - (d + p)), _ = Ce(u), v = {
1087
1093
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
1088
- threshold: I(0, be(1, c)) || 1
1094
+ threshold: L(0, xe(1, c)) || 1
1089
1095
  }, y = !0;
1090
1096
  function b(t) {
1091
1097
  let n = t[0].intersectionRatio;
1092
- if (!Nt(l, e.getBoundingClientRect())) return s();
1098
+ if (!Ft(l, e.getBoundingClientRect())) return s();
1093
1099
  if (n !== c) {
1094
1100
  if (!y) return s();
1095
1101
  n ? s(!1, n) : i = setTimeout(() => {
@@ -1113,13 +1119,13 @@ function Pt(e, t, n) {
1113
1119
  c.removeEventListener("resize", l), o();
1114
1120
  };
1115
1121
  }
1116
- function Ft(e, t, n, r) {
1122
+ function Lt(e, t, n, r) {
1117
1123
  r === void 0 && (r = {});
1118
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ut(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) : []] : [];
1119
1125
  u.forEach((e) => {
1120
1126
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
1121
1127
  });
1122
- let d = l && s ? Pt(l, n, a) : null, f = -1, p = null;
1128
+ let d = l && s ? It(l, n, a) : null, f = -1, p = null;
1123
1129
  o && (p = new ResizeObserver((e) => {
1124
1130
  let [r] = e;
1125
1131
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -1131,7 +1137,7 @@ function Ft(e, t, n, r) {
1131
1137
  c && g();
1132
1138
  function g() {
1133
1139
  let t = $(e);
1134
- h && !Nt(h, t) && n(), h = t, m = requestAnimationFrame(g);
1140
+ h && !Ft(h, t) && n(), h = t, m = requestAnimationFrame(g);
1135
1141
  }
1136
1142
  return n(), () => {
1137
1143
  var e;
@@ -1140,24 +1146,24 @@ function Ft(e, t, n, r) {
1140
1146
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1141
1147
  };
1142
1148
  }
1143
- var It = qe, Lt = We, Rt = (e, t, n) => {
1149
+ var Rt = Ye, zt = Ke, Bt = (e, t, n) => {
1144
1150
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
1145
- ...Mt,
1151
+ ...Pt,
1146
1152
  ...i.platform,
1147
1153
  _c: r
1148
1154
  };
1149
- return Ue(e, t, {
1155
+ return Ge(e, t, {
1150
1156
  ...i,
1151
1157
  platform: a
1152
1158
  });
1153
1159
  };
1154
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
1155
- function zt(e) {
1156
- let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = D(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;
1157
1163
  if (!p) return null;
1158
1164
  let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
1159
1165
  if (!h || h.input === void 0 || h.index === void 0) return null;
1160
- let g = h.input.slice(Math.max(0, h.index - 1), h.index), _ = RegExp(`^[${i?.map(D).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);
1161
1167
  if (i !== null && !_) return null;
1162
1168
  let v = m + h.index, y = v + h[0].length;
1163
1169
  return s && l.test(p.slice(y - 1, y + 1)) && (h[0] += " ", y += 1), v < o.pos && y >= o.pos ? {
@@ -1169,7 +1175,7 @@ function zt(e) {
1169
1175
  text: h[0]
1170
1176
  } : null;
1171
1177
  }
1172
- function Bt(e) {
1178
+ function Ht(e) {
1173
1179
  return e.docChanged ? e.steps.some((e) => {
1174
1180
  let t = e.slice;
1175
1181
  if (!t?.content) return !1;
@@ -1177,7 +1183,7 @@ function Bt(e) {
1177
1183
  return /\s/.test(n);
1178
1184
  }) : !1;
1179
1185
  }
1180
- function Vt(e) {
1186
+ function Ut(e) {
1181
1187
  return () => {
1182
1188
  let t = e.state.selection.$anchor.pos, { top: n, right: r, bottom: i, left: a } = e.view.coordsAtPos(t);
1183
1189
  try {
@@ -1187,13 +1193,13 @@ function Vt(e) {
1187
1193
  }
1188
1194
  };
1189
1195
  }
1190
- function Ht(e, t, n, r) {
1196
+ function Wt(e, t, n, r) {
1191
1197
  return n ? () => {
1192
1198
  let n = r.getState(e.state)?.decorationId;
1193
1199
  return t.dom.querySelector(`[data-decoration-id="${n}"]`)?.getBoundingClientRect() || null;
1194
- } : Vt(e);
1200
+ } : Ut(e);
1195
1201
  }
1196
- function Ut({ 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 }) {
1197
1203
  return a?.({
1198
1204
  editor: i,
1199
1205
  state: n,
@@ -1201,13 +1207,13 @@ function Ut({ match: e, dismissedRange: t, state: n, transaction: r, editor: i,
1201
1207
  match: e,
1202
1208
  transaction: r,
1203
1209
  allowSpaces: o
1204
- }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !Bt(r);
1210
+ }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !Ht(r);
1205
1211
  }
1206
- function Wt({ view: e, pluginKeyRef: t }) {
1212
+ function Kt({ view: e, pluginKeyRef: t }) {
1207
1213
  let n = e.state.tr.setMeta(t, { exit: !0 });
1208
1214
  e.dispatch(n);
1209
1215
  }
1210
- function Gt({ 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 }) {
1211
1217
  return {
1212
1218
  handleKeyDown(t, n) {
1213
1219
  var r;
@@ -1231,7 +1237,7 @@ function Gt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
1231
1237
  let { active: o, range: s, decorationId: c, query: l } = e.getState(a);
1232
1238
  if (!o) return null;
1233
1239
  let u = !l?.length, d = [n];
1234
- return u && d.push(i), te.create(a.doc, [O.inline(s.from, s.to, {
1240
+ return u && d.push(i), te.create(a.doc, [j.inline(s.from, s.to, {
1235
1241
  nodeName: t,
1236
1242
  class: d.join(" "),
1237
1243
  "data-decoration-id": c || void 0,
@@ -1240,7 +1246,7 @@ function Gt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
1240
1246
  }
1241
1247
  };
1242
1248
  }
1243
- function Kt({ 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 }) {
1244
1250
  return {
1245
1251
  init() {
1246
1252
  return {
@@ -1299,7 +1305,7 @@ function Kt({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r
1299
1305
  }
1300
1306
  };
1301
1307
  }
1302
- function qt({ editor: e, items: t }) {
1308
+ function Yt({ editor: e, items: t }) {
1303
1309
  let n = null, r = null, i = null, a = () => {
1304
1310
  r !== null && (clearTimeout(r), r = null), i?.(), i = null;
1305
1311
  }, o = (e) => new Promise((t) => {
@@ -1333,19 +1339,19 @@ function qt({ editor: e, items: t }) {
1333
1339
  }
1334
1340
  };
1335
1341
  }
1336
- function Jt({ placement: e, offset: t, flip: n, floatingUi: r }) {
1342
+ function Xt({ placement: e, offset: t, flip: n, floatingUi: r }) {
1337
1343
  var i;
1338
- let a = [It({
1344
+ let a = [Rt({
1339
1345
  mainAxis: t.mainAxis ?? 4,
1340
1346
  crossAxis: t.crossAxis ?? 0
1341
1347
  })];
1342
- return n && a.push(Lt()), 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), {
1343
1349
  placement: e,
1344
1350
  strategy: r?.strategy ?? "absolute",
1345
1351
  middleware: a
1346
1352
  };
1347
1353
  }
1348
- function Yt(e) {
1354
+ function Zt(e) {
1349
1355
  if (e instanceof HTMLElement) return e;
1350
1356
  if (typeof e == "string") try {
1351
1357
  let t = document.querySelector(e);
@@ -1355,15 +1361,15 @@ function Yt(e) {
1355
1361
  }
1356
1362
  return document.body;
1357
1363
  }
1358
- function Xt({ 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 }) {
1359
1365
  return (o, s = {}) => {
1360
1366
  let c = {
1361
1367
  getBoundingClientRect: () => e() ?? new DOMRect(),
1362
1368
  contextElement: t
1363
1369
  }, l = !1, u = !o.isConnected;
1364
- u && Yt(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
1365
- let d = Ft(c, o, () => {
1366
- Rt(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, {
1367
1373
  placement: n.placement,
1368
1374
  strategy: n.strategy,
1369
1375
  middleware: n.middleware
@@ -1388,11 +1394,11 @@ function Xt({ getReferenceRect: e, contextElement: t, config: n, container: r, d
1388
1394
  };
1389
1395
  };
1390
1396
  }
1391
- function Zt({ 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 }) {
1392
- let g, _ = qt({
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({
1393
1399
  editor: e,
1394
1400
  items: n
1395
- }), v = Jt({
1401
+ }), v = Xt({
1396
1402
  placement: s,
1397
1403
  offset: c,
1398
1404
  flip: u,
@@ -1417,26 +1423,26 @@ function Zt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1417
1423
  update: async (n, d) => {
1418
1424
  let b = t.getState(d), x = t.getState(n.state);
1419
1425
  if (!b || !x) return;
1420
- let S = null, C = b.query !== x.query, w = b.text !== x.text, T = b.range.from !== x.range.from || b.range.to !== x.range.to, ee = C || w || T;
1426
+ let S = null, C = b.query !== x.query, w = b.text !== x.text, T = b.range.from !== x.range.from || b.range.to !== x.range.to, E = C || w || T;
1421
1427
  if (!b.active && x.active) S = "started";
1422
1428
  else if (b.active && !x.active) S = "stopped";
1423
- else if (x.active && ee) S = "updated";
1429
+ else if (x.active && E) S = "updated";
1424
1430
  else return;
1425
- let E = S === "stopped" ? b : x, D = n.dom.querySelector(`[data-decoration-id="${E.decorationId}"]`), O = m(n, D), k = i === 0 || (E.query ? E.query.length >= i : !1), A = (S === "started" || S === "updated") && k;
1431
+ let D = S === "stopped" ? b : x, O = n.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`), k = m(n, O), A = i === 0 || (D.query ? D.query.length >= i : !1), j = (S === "started" || S === "updated") && A;
1426
1432
  if (g = {
1427
1433
  editor: e,
1428
- range: E.range,
1429
- query: E.query || "",
1430
- text: E.text || "",
1434
+ range: D.range,
1435
+ query: D.query || "",
1436
+ text: D.text || "",
1431
1437
  items: o ?? [],
1432
1438
  command: (t) => p({
1433
1439
  editor: e,
1434
- range: E.range,
1440
+ range: D.range,
1435
1441
  props: t
1436
1442
  }),
1437
- decorationNode: D,
1438
- clientRect: O,
1439
- loading: A,
1443
+ decorationNode: O,
1444
+ clientRect: k,
1445
+ loading: j,
1440
1446
  placement: s,
1441
1447
  offset: {
1442
1448
  mainAxis: c.mainAxis ?? 4,
@@ -1445,8 +1451,8 @@ function Zt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1445
1451
  container: l,
1446
1452
  flip: u,
1447
1453
  floatingUi: v,
1448
- mount: Xt({
1449
- getReferenceRect: O,
1454
+ mount: Qt({
1455
+ getReferenceRect: k,
1450
1456
  contextElement: n.dom,
1451
1457
  config: v,
1452
1458
  container: l,
@@ -1454,15 +1460,15 @@ function Zt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1454
1460
  dismiss: () => h(e.view)
1455
1461
  })
1456
1462
  }, S === "started") {
1457
- var j;
1458
- r == null || (j = r.onBeforeStart) == null || j.call(r, g);
1463
+ var M;
1464
+ r == null || (M = r.onBeforeStart) == null || M.call(r, g);
1459
1465
  }
1460
1466
  if (S === "updated") {
1461
- var M;
1462
- r == null || (M = r.onBeforeUpdate) == null || M.call(r, g);
1467
+ var N;
1468
+ r == null || (N = r.onBeforeUpdate) == null || N.call(r, g);
1463
1469
  }
1464
1470
  if (S === "started" && y(S, g), S === "started" || S === "updated") {
1465
- if (!A) _.abort(), g = {
1471
+ if (!j) _.abort(), g = {
1466
1472
  ...g,
1467
1473
  items: o ?? [],
1468
1474
  loading: !1
@@ -1473,7 +1479,7 @@ function Zt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1473
1479
  items: o ?? [],
1474
1480
  loading: !0
1475
1481
  }, S = "updated", y(S, g);
1476
- let e = await _.fetch(E.query || "", a);
1482
+ let e = await _.fetch(D.query || "", a);
1477
1483
  if (e.status === "aborted") return;
1478
1484
  if (!t.getState(n.state)?.active) {
1479
1485
  _.abort();
@@ -1497,28 +1503,28 @@ function Zt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1497
1503
  }
1498
1504
  };
1499
1505
  }
1500
- var Qt = new k("suggestion");
1501
- function $t({ pluginKey: e = Qt, 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 = zt, shouldShow: T, shouldResetDismissed: ee }) {
1502
- let E = S?.(), D = r && !i, O = (n, r) => Ht(t, n, r, e);
1503
- function k(e) {
1504
- return Ut({
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
+ function A(e) {
1510
+ return Gt({
1505
1511
  ...e,
1506
1512
  editor: t,
1507
- shouldResetDismissed: ee,
1508
- effectiveAllowSpaces: D
1513
+ shouldResetDismissed: E,
1514
+ effectiveAllowSpaces: O
1509
1515
  });
1510
1516
  }
1511
- let j = (t) => Wt({
1517
+ let j = (t) => Kt({
1512
1518
  view: t,
1513
1519
  pluginKeyRef: e
1514
1520
  });
1515
- return new A({
1521
+ return new N({
1516
1522
  key: e,
1517
- view: () => Zt({
1523
+ view: () => $t({
1518
1524
  editor: t,
1519
1525
  pluginKey: e,
1520
1526
  items: f,
1521
- renderer: E,
1527
+ renderer: D,
1522
1528
  minQueryLength: p,
1523
1529
  debounce: m,
1524
1530
  initialItems: h,
@@ -1529,38 +1535,38 @@ function $t({ pluginKey: e = Qt, editor: t, char: n = "@", allowSpaces: r = !1,
1529
1535
  floatingUi: b,
1530
1536
  dismissOnOutsideClick: x,
1531
1537
  command: d,
1532
- clientRectFor: O,
1538
+ clientRectFor: k,
1533
1539
  dispatchExit: j
1534
1540
  }),
1535
- state: Kt({
1541
+ state: Jt({
1536
1542
  editor: t,
1537
1543
  char: n,
1538
- effectiveAllowSpaces: D,
1544
+ effectiveAllowSpaces: O,
1539
1545
  allowToIncludeChar: i,
1540
1546
  allowedPrefixes: a,
1541
1547
  startOfLine: o,
1542
1548
  findSuggestionMatch: w,
1543
1549
  allow: C,
1544
1550
  shouldShow: T,
1545
- shouldKeepDismissed: k,
1551
+ shouldKeepDismissed: A,
1546
1552
  pluginKey: e
1547
1553
  }),
1548
- props: Gt({
1554
+ props: qt({
1549
1555
  pluginKey: e,
1550
1556
  decorationTag: s,
1551
1557
  decorationClass: c,
1552
1558
  decorationContent: l,
1553
1559
  decorationEmptyClass: u,
1554
- renderer: E,
1560
+ renderer: D,
1555
1561
  dispatchExit: j
1556
1562
  })
1557
1563
  });
1558
1564
  }
1559
- var en = $t;
1565
+ var nn = tn;
1560
1566
  // src/extensions/MergeTagSuggestion.ts
1561
- function tn(e, t) {
1567
+ function rn(e, t) {
1562
1568
  return () => {
1563
- let n = C(e, t);
1569
+ let n = T(e, t);
1564
1570
  return {
1565
1571
  onStart: (e) => {
1566
1572
  let t = e.editor.view?.dom;
@@ -1583,7 +1589,7 @@ function tn(e, t) {
1583
1589
  };
1584
1590
  };
1585
1591
  }
1586
- var nn = N.create({
1592
+ var an = F.create({
1587
1593
  name: "mergeTagSuggestion",
1588
1594
  addOptions() {
1589
1595
  return {
@@ -1599,7 +1605,7 @@ var nn = N.create({
1599
1605
  allowSpaces: !1,
1600
1606
  startOfLine: !1,
1601
1607
  allowedPrefixes: null,
1602
- items: ({ query: t }) => w(e(), t),
1608
+ items: ({ query: t }) => E(e(), t),
1603
1609
  command: ({ editor: e, range: t, props: n }) => {
1604
1610
  e.isEditable && e.chain().focus().insertContentAt(t, {
1605
1611
  type: "mergeTagNode",
@@ -1609,12 +1615,12 @@ var nn = N.create({
1609
1615
  }
1610
1616
  }).run();
1611
1617
  },
1612
- render: tn(t, n)
1618
+ render: rn(t, n)
1613
1619
  };
1614
- return [en({
1620
+ return [nn({
1615
1621
  editor: this.editor,
1616
1622
  ...r
1617
1623
  })];
1618
1624
  }
1619
1625
  });
1620
- export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, me as LogicMergeTagNode, ye as MergeTagNode, nn as MergeTagSuggestion, w as filterMergeTags, T 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 };