@templatical/editor 0.51.1 → 0.52.1

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 (380) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
  7. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
  14. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
  17. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
  29. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
  42. package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
  60. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
  61. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  62. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
  76. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
  98. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  105. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
  118. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  123. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  141. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
  156. package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
  161. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  162. package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  167. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  168. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  170. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
  188. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
  195. package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
  196. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  222. package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
  223. package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
  224. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
  225. package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
  226. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
  227. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
  233. package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  236. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  237. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  242. package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  244. package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  246. package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  252. package/dist/cdn/editor.css +1 -1
  253. package/dist/cdn/editor.js +1433 -1454
  254. package/dist/cdn/editor.js.map +1 -1
  255. package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
  256. package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
  257. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
  258. package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
  259. package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
  260. package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
  261. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
  262. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
  263. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  264. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  265. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
  269. package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
  270. package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
  271. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  272. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  273. package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
  274. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  275. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  276. package/dist/dist-DyFArF_G.js +4 -0
  277. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  278. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  279. package/dist/dist-pA3ooG6N.js +4 -0
  280. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  281. package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
  282. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/en-Db76vJbY.js +1 -0
  285. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  286. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  287. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  288. package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
  289. package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
  290. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  291. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  292. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  293. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  294. package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
  295. package/dist/index.d.ts +6 -6
  296. package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
  297. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  298. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  299. package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
  300. package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
  301. package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
  302. package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
  303. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
  304. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  305. package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
  306. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  307. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  308. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
  309. package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
  310. package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
  311. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
  312. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  313. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  314. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  315. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  316. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
  317. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  318. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
  319. package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
  320. package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
  321. package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
  322. package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
  323. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
  324. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
  325. package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
  326. package/dist/style.css +1 -1
  327. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  328. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  329. package/dist/templatical-editor.js +1231 -1251
  330. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
  331. package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
  332. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
  333. package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
  334. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
  335. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
  336. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  337. package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
  338. package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
  339. package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
  340. package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
  341. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
  342. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
  343. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
  344. package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
  345. package/package.json +26 -24
  346. package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
  347. package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
  348. package/dist/IssuesPanel-C8nMUccy.js +0 -360
  349. package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
  350. package/dist/WrapperBlock-BO619LAb.js +0 -45
  351. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  352. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
  353. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
  354. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
  355. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  356. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
  357. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
  358. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
  359. package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
  360. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
  361. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
  362. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
  363. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  364. package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
  365. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  366. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  367. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  368. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  369. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  370. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  371. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  372. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  373. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
  374. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  375. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  376. package/dist/dist-BPFcLKTw.js +0 -5
  377. package/dist/dist-D7Yj7E-F.js +0 -5
  378. package/dist/en-DwV15ltA.js +0 -1
  379. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  380. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/index.js
1
+ // ../types/dist/index.js
2
2
  var e = [
3
3
  "top",
4
4
  "right",
@@ -82,7 +82,7 @@ function ne(e) {
82
82
  }
83
83
  return t;
84
84
  }
85
- function re(e) {
85
+ function f(e) {
86
86
  let t = typeof e?.url == "string" ? e.url.trim() : "";
87
87
  if (!e || !t) return null;
88
88
  let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && ee.includes(r.y) ? r.y : "center";
@@ -93,24 +93,24 @@ function re(e) {
93
93
  repeat: e.repeat ? "repeat" : "no-repeat"
94
94
  };
95
95
  }
96
- var ie = [
96
+ var re = [
97
97
  "top",
98
98
  "middle",
99
99
  "bottom"
100
100
  ];
101
- function ae(e) {
101
+ function ie(e) {
102
102
  let t = e.hero;
103
103
  if (!t || typeof t != "object") return null;
104
104
  if (e.columns !== "1") return {
105
105
  applied: !1,
106
106
  reason: "columns"
107
107
  };
108
- let n = re(e.backgroundImage);
108
+ let n = f(e.backgroundImage);
109
109
  if (n === null) return {
110
110
  applied: !1,
111
111
  reason: "image"
112
112
  };
113
- let r = se(e.backgroundImage), i = oe(t.height) ? Math.round(t.height) : "image";
113
+ let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
114
114
  return i === "image" && r === null ? {
115
115
  applied: !1,
116
116
  reason: "size"
@@ -118,18 +118,18 @@ function ae(e) {
118
118
  applied: !0,
119
119
  image: n,
120
120
  height: i,
121
- verticalAlign: ie.includes(t.verticalAlign) ? t.verticalAlign : "middle",
121
+ verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
122
122
  aspectRatio: r
123
123
  };
124
124
  }
125
- function oe(e) {
125
+ function ae(e) {
126
126
  return typeof e == "number" && Number.isFinite(e) && e >= 1;
127
127
  }
128
- function se(e) {
128
+ function oe(e) {
129
129
  let t = e?.naturalWidth, n = e?.naturalHeight;
130
130
  return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
131
131
  }
132
- var ce = {
132
+ var p = {
133
133
  facebook: {
134
134
  color: "#1877F2",
135
135
  path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
@@ -198,31 +198,31 @@ var ce = {
198
198
  color: "#1769FF",
199
199
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
200
200
  }
201
- }, f = {
201
+ }, m = {
202
202
  dark: "#1f1f1f",
203
203
  light: "#ffffff"
204
204
  };
205
- function le(e) {
205
+ function se(e) {
206
206
  return e === "dark" || e === "light" ? e : void 0;
207
207
  }
208
- function ue(e, t) {
209
- let n = le(t);
208
+ function ce(e, t) {
209
+ let n = se(t);
210
210
  return {
211
- fill: n ? f[n] : ce[e].color,
212
- onFill: n === "light" ? f.dark : "#ffffff"
211
+ fill: n ? m[n] : p[e].color,
212
+ onFill: n === "light" ? m.dark : "#ffffff"
213
213
  };
214
214
  }
215
- function de(e, t) {
216
- if (le(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
- color: f.light,
215
+ function le(e, t) {
216
+ if (se(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
+ color: m.light,
218
218
  opacity: .6,
219
219
  width: 1.4
220
220
  };
221
221
  }
222
- function fe(e) {
222
+ function ue(e) {
223
223
  return e === "plain" ? .84 : .6;
224
224
  }
225
- function p(e) {
225
+ function h(e) {
226
226
  let t = [];
227
227
  return JSON.parse(JSON.stringify(e, function(e, n) {
228
228
  if (typeof n != "object" || !n) return n;
@@ -230,21 +230,21 @@ function p(e) {
230
230
  if (!t.includes(n)) return t.push(n), n;
231
231
  }));
232
232
  }
233
- function pe(e) {
233
+ function de(e) {
234
234
  return typeof e == "object" && !!e && !Array.isArray(e);
235
235
  }
236
- function m(e, t) {
236
+ function g(e, t) {
237
237
  if (e === t) return !0;
238
- if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => m(e, t[n]));
239
- if (pe(e)) {
240
- if (!pe(t)) return !1;
238
+ if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => g(e, t[n]));
239
+ if (de(e)) {
240
+ if (!de(t)) return !1;
241
241
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
242
- for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !m(e[r], t[r])) return !1;
242
+ for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !g(e[r], t[r])) return !1;
243
243
  return !0;
244
244
  }
245
245
  return !1;
246
246
  }
247
- var h = class extends Error {
247
+ var _ = class extends Error {
248
248
  code;
249
249
  opIndex;
250
250
  blockId;
@@ -252,59 +252,59 @@ var h = class extends Error {
252
252
  super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
253
253
  }
254
254
  };
255
- function me(e) {
255
+ function fe(e) {
256
256
  return e === "1" ? 1 : e === "3" ? 3 : 2;
257
257
  }
258
- function he(e, t, n = {}) {
259
- let r = p(e);
260
- return g(r, t, n), r;
258
+ function pe(e, t, n = {}) {
259
+ let r = h(e);
260
+ return v(r, t, n), r;
261
261
  }
262
- function g(e, t, n = {}) {
262
+ function v(e, t, n = {}) {
263
263
  let r = {
264
264
  locks: n.locks ?? [],
265
265
  session: n.session ?? null
266
266
  };
267
- t.forEach((t, n) => Ce(e, t, n, r));
267
+ t.forEach((t, n) => Se(e, t, n, r));
268
268
  }
269
- var ge = /* @__PURE__ */ new Set([
269
+ var me = /* @__PURE__ */ new Set([
270
270
  "id",
271
271
  "type",
272
272
  "children"
273
- ]), _e = /* @__PURE__ */ new Set();
274
- function _(e, t, n, r) {
275
- throw new h(e, t, n, r);
273
+ ]), he = /* @__PURE__ */ new Set();
274
+ function y(e, t, n, r) {
275
+ throw new _(e, t, n, r);
276
276
  }
277
- function v(e) {
277
+ function b(e) {
278
278
  return typeof e == "object" && !!e && !Array.isArray(e);
279
279
  }
280
- function y(e) {
280
+ function x(e) {
281
281
  return e.type === "section";
282
282
  }
283
- function ve(e) {
283
+ function ge(e) {
284
284
  return Array.isArray(e.blocks) ? e.blocks : [];
285
285
  }
286
- function ye(e) {
286
+ function _e(e) {
287
287
  let t = e.children;
288
288
  return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
289
289
  }
290
- function b(e, t) {
291
- let n = ve(e);
290
+ function S(e, t) {
291
+ let n = ge(e);
292
292
  for (let e = 0; e < n.length; e++) {
293
293
  let r = n[e];
294
- if (!v(r)) continue;
294
+ if (!b(r)) continue;
295
295
  if (r.id === t) return {
296
296
  block: r,
297
297
  list: n,
298
298
  index: e,
299
299
  parent: null
300
300
  };
301
- if (!y(r) || typeof r.id != "string") continue;
301
+ if (!x(r) || typeof r.id != "string") continue;
302
302
  let i = r.children;
303
303
  if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
304
304
  let n = i[e];
305
305
  if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
306
306
  let a = n[i];
307
- if (v(a) && a.id === t) return {
307
+ if (b(a) && a.id === t) return {
308
308
  block: a,
309
309
  list: n,
310
310
  index: i,
@@ -318,152 +318,152 @@ function b(e, t) {
318
318
  }
319
319
  return null;
320
320
  }
321
- function x(e) {
321
+ function C(e) {
322
322
  let t = typeof e.id == "string" ? [e.id] : [];
323
- if (y(e)) for (let n of ye(e)) t.push(...be(n));
323
+ if (x(e)) for (let n of _e(e)) t.push(...ve(n));
324
324
  return t;
325
325
  }
326
- function be(e) {
327
- return e.flatMap((e) => v(e) ? x(e) : []);
326
+ function ve(e) {
327
+ return e.flatMap((e) => b(e) ? C(e) : []);
328
328
  }
329
- function S(e, t) {
330
- return typeof e.blockId != "string" || e.blockId === "" ? _("invalid_operation", t, "blockId must be a block id.") : e.blockId;
329
+ function w(e, t) {
330
+ return typeof e.blockId != "string" || e.blockId === "" ? y("invalid_operation", t, "blockId must be a block id.") : e.blockId;
331
331
  }
332
- function xe(e, t) {
332
+ function ye(e, t) {
333
333
  let n = e.parent;
334
- return n === null ? null : v(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
334
+ return n === null ? null : b(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
335
335
  sectionId: n.sectionId,
336
336
  column: n.column
337
- } : _("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
337
+ } : y("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
338
338
  }
339
- function C(e, t) {
339
+ function be(e, t) {
340
340
  let n = e.after;
341
- return n === null ? null : typeof n == "string" && n !== "" ? n : _("invalid_operation", t, "after must be null or a block id.");
341
+ return n === null ? null : typeof n == "string" && n !== "" ? n : y("invalid_operation", t, "after must be null or a block id.");
342
342
  }
343
- function w(e, t) {
343
+ function T(e, t) {
344
344
  let n = e.expect;
345
- return n == null ? null : v(n) ? n : _("invalid_operation", t, "expect must be an object.");
345
+ return n == null ? null : b(n) ? n : y("invalid_operation", t, "expect must be an object.");
346
346
  }
347
- function T(e, t, n) {
347
+ function E(e, t, n) {
348
348
  let r = e.set ?? null, i = e.unset ?? [];
349
- (r !== null && !v(r) || !Array.isArray(i) || !i.every((e) => typeof e == "string")) && _("invalid_operation", t, "set must be an object and unset a list of keys.");
349
+ (r === null || b(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || y("invalid_operation", t, "set must be an object and unset a list of keys.");
350
350
  let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
351
- o.length === 0 && i.length === 0 && _("invalid_operation", t, "Set or unset at least one key.");
352
- for (let e of [...o, ...i]) n.has(e) && _("invalid_operation", t, `"${e}" can't be set or unset.`);
351
+ o.length === 0 && i.length === 0 && y("invalid_operation", t, "Set or unset at least one key.");
352
+ for (let e of [...o, ...i]) n.has(e) && y("invalid_operation", t, `"${e}" can't be set or unset.`);
353
353
  let s = i.find((e) => o.includes(e));
354
- return s !== void 0 && _("invalid_operation", t, `"${s}" is both set and unset.`), {
354
+ return s !== void 0 && y("invalid_operation", t, `"${s}" is both set and unset.`), {
355
355
  set: Object.fromEntries(o.map((e) => [e, a[e]])),
356
356
  unset: i
357
357
  };
358
358
  }
359
- function E(e, t, n) {
360
- if ((!v(e) || typeof e.id != "string" || e.id === "" || typeof e.type != "string") && _("invalid_operation", t, "A block needs a non-empty string id and a string type."), !y(e)) return;
361
- n && _("invalid_operation", t, "Sections can only be placed at the top level.");
359
+ function D(e, t, n) {
360
+ if (b(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || y("invalid_operation", t, "A block needs a non-empty string id and a string type."), !x(e)) return;
361
+ n && y("invalid_operation", t, "Sections can only be placed at the top level.");
362
362
  let r = e.children;
363
- (!Array.isArray(r) || !r.every((e) => Array.isArray(e))) && _("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
364
- for (let e of r) for (let n of e) E(n, t, !0);
363
+ Array.isArray(r) && r.every((e) => Array.isArray(e)) || y("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
364
+ for (let e of r) for (let n of e) D(n, t, !0);
365
365
  }
366
- function D(e, t) {
366
+ function O(e, t) {
367
367
  return e.session === null || t.sessionId !== e.session;
368
368
  }
369
- function O(e, t, n) {
370
- let r = e.locks.find((n) => t.includes(n.blockId) && D(e, n));
371
- r && _("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
369
+ function k(e, t, n) {
370
+ let r = e.locks.find((n) => t.includes(n.blockId) && O(e, n));
371
+ r && y("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
372
372
  }
373
- function k(e, t, n, r) {
374
- for (let [i, a] of Object.entries(t)) a !== void 0 && (m(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || _("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
373
+ function A(e, t, n, r) {
374
+ for (let [i, a] of Object.entries(t)) a !== void 0 && (g(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || y("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
375
375
  }
376
- function A(e, t, n) {
376
+ function j(e, t, n) {
377
377
  if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
378
- let r = b(e, t.sectionId);
379
- if (!r) return _("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
380
- if (!y(r.block)) return _("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
378
+ let r = S(e, t.sectionId);
379
+ if (!r) return y("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
380
+ if (!x(r.block)) return y("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
381
381
  let i = r.block.children;
382
- return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? _("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
382
+ return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? y("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
383
383
  }
384
- function j(e, t, n) {
384
+ function M(e, t, n) {
385
385
  if (t === null) return 0;
386
- let r = e.findIndex((e) => v(e) && e.id === t);
387
- return r === -1 ? _("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
386
+ let r = e.findIndex((e) => b(e) && e.id === t);
387
+ return r === -1 ? y("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
388
388
  }
389
- function Se(e, t, n, r) {
390
- let i = me(t), a = Array.isArray(e.children) ? e.children : [];
389
+ function xe(e, t, n, r) {
390
+ let i = fe(t), a = Array.isArray(e.children) ? e.children : [];
391
391
  for (let e = i; e < a.length; e++) {
392
392
  let t = a[e];
393
- Array.isArray(t) && t.length > 0 && _("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
393
+ Array.isArray(t) && t.length > 0 && y("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
394
394
  }
395
395
  let o = a.slice(0, i);
396
396
  for (; o.length < i;) o.push([]);
397
397
  e.children = o;
398
398
  }
399
- function M(e, t, n) {
399
+ function N(e, t, n) {
400
400
  for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
401
- value: p(r),
401
+ value: h(r),
402
402
  writable: !0,
403
403
  enumerable: !0,
404
404
  configurable: !0
405
- }) : e[n] = p(r);
405
+ }) : e[n] = h(r);
406
406
  for (let t of n) delete e[t];
407
407
  }
408
- function Ce(e, t, n, r) {
408
+ function Se(e, t, n, r) {
409
409
  let i = t;
410
- switch ((!v(i) || typeof i.op != "string") && _("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
411
- case "addBlock": return we(e, i, n);
412
- case "moveBlock": return Te(e, i, n, r);
413
- case "deleteBlock": return Ee(e, i, n, r);
414
- case "updateBlock": return De(e, i, n, r);
415
- case "updateSettings": return Oe(e, i, n);
416
- case "setContent": return ke(e, i, n, r);
417
- default: _("invalid_operation", n, `Unknown operation "${i.op}".`);
410
+ switch (b(i) && typeof i.op == "string" || y("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
411
+ case "addBlock": return Ce(e, i, n);
412
+ case "moveBlock": return we(e, i, n, r);
413
+ case "deleteBlock": return Te(e, i, n, r);
414
+ case "updateBlock": return Ee(e, i, n, r);
415
+ case "updateSettings": return De(e, i, n);
416
+ case "setContent": return Oe(e, i, n, r);
417
+ default: y("invalid_operation", n, `Unknown operation "${i.op}".`);
418
418
  }
419
419
  }
420
- function we(e, t, n) {
421
- let r = xe(t, n), i = C(t, n), a = t.block;
422
- E(a, n, r !== null);
423
- let o = new Set(be(ve(e))), s = /* @__PURE__ */ new Set();
424
- for (let e of x(a)) (o.has(e) || s.has(e)) && _("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
425
- let c = A(e, r, n);
426
- c.splice(j(c, i, n), 0, p(a));
420
+ function Ce(e, t, n) {
421
+ let r = ye(t, n), i = be(t, n), a = t.block;
422
+ D(a, n, r !== null);
423
+ let o = new Set(ve(ge(e))), s = /* @__PURE__ */ new Set();
424
+ for (let e of C(a)) (o.has(e) || s.has(e)) && y("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
425
+ let c = j(e, r, n);
426
+ c.splice(M(c, i, n), 0, h(a));
427
+ }
428
+ function we(e, t, n, r) {
429
+ let i = w(t, n), a = ye(t, n), o = be(t, n), s = T(t, n), c = S(e, i);
430
+ if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
431
+ if (k(r, C(c.block), n), s) {
432
+ let e = c.index > 0 ? c.list[c.index - 1] : null, t = b(e) ? e.id ?? null : null;
433
+ g(c.parent, s.parent ?? null) && g(t, s.after ?? null) || y("precondition_failed", n, `Block "${i}" has moved since.`, i);
434
+ }
435
+ x(c.block) && a !== null && y("invalid_operation", n, "Sections can only be placed at the top level."), o === i && y("invalid_operation", n, "A block can't be placed after itself.");
436
+ let l = j(e, a, n);
437
+ c.list.splice(c.index, 1), l.splice(M(l, o, n), 0, c.block);
427
438
  }
428
439
  function Te(e, t, n, r) {
429
- let i = S(t, n), a = xe(t, n), o = C(t, n), s = w(t, n), c = b(e, i);
430
- if (!c) return _("block_missing", n, `No block with id "${i}".`, i);
431
- if (O(r, x(c.block), n), s) {
432
- let e = c.index > 0 ? c.list[c.index - 1] : null, t = v(e) ? e.id ?? null : null;
433
- (!m(c.parent, s.parent ?? null) || !m(t, s.after ?? null)) && _("precondition_failed", n, `Block "${i}" has moved since.`, i);
434
- }
435
- y(c.block) && a !== null && _("invalid_operation", n, "Sections can only be placed at the top level."), o === i && _("invalid_operation", n, "A block can't be placed after itself.");
436
- let l = A(e, a, n);
437
- c.list.splice(c.index, 1), l.splice(j(l, o, n), 0, c.block);
440
+ let i = w(t, n), a = T(t, n), o = S(e, i);
441
+ if (!o) return y("block_missing", n, `No block with id "${i}".`, i);
442
+ k(r, C(o.block), n), a && !g(o.block, a.block ?? null) && y("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
438
443
  }
439
444
  function Ee(e, t, n, r) {
440
- let i = S(t, n), a = w(t, n), o = b(e, i);
441
- if (!o) return _("block_missing", n, `No block with id "${i}".`, i);
442
- O(r, x(o.block), n), a && !m(o.block, a.block ?? null) && _("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
443
- }
444
- function De(e, t, n, r) {
445
- let i = S(t, n), { set: a, unset: o } = T(t, n, ge), s = w(t, n), c = b(e, i);
446
- if (!c) return _("block_missing", n, `No block with id "${i}".`, i);
447
- let l = c.block, u = y(l);
448
- u && o.includes("columns") && _("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), O(r, [i], n), s && k(l, s, n, i), u && Object.hasOwn(a, "columns") && Se(l, a.columns, n, i), M(l, a, o);
449
- }
450
- function Oe(e, t, n) {
451
- let { set: r, unset: i } = T(t, n, _e), a = w(t, n);
452
- v(e.settings) || (e.settings = {});
445
+ let i = w(t, n), { set: a, unset: o } = E(t, n, me), s = T(t, n), c = S(e, i);
446
+ if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
447
+ let l = c.block, u = x(l);
448
+ u && o.includes("columns") && y("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), k(r, [i], n), s && A(l, s, n, i), u && Object.hasOwn(a, "columns") && xe(l, a.columns, n, i), N(l, a, o);
449
+ }
450
+ function De(e, t, n) {
451
+ let { set: r, unset: i } = E(t, n, he), a = T(t, n);
452
+ b(e.settings) || (e.settings = {});
453
453
  let o = e.settings;
454
- a && k(o, a, n), M(o, r, i);
454
+ a && A(o, a, n), N(o, r, i);
455
455
  }
456
- function ke(e, t, n, r) {
456
+ function Oe(e, t, n, r) {
457
457
  let i = t.content;
458
- if (!v(i) || !Array.isArray(i.blocks) || !v(i.settings)) return _("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
459
- let a = r.locks.find((e) => D(r, e));
460
- a && _("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = p(i.blocks), e.settings = p(i.settings);
458
+ if (!b(i) || !Array.isArray(i.blocks) || !b(i.settings)) return y("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
459
+ let a = r.locks.find((e) => O(r, e));
460
+ a && y("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = h(i.blocks), e.settings = h(i.settings);
461
461
  }
462
- function Ae(e) {
462
+ function ke(e) {
463
463
  let t = e.children;
464
464
  return e.type === "section" && Array.isArray(t) ? t : [];
465
465
  }
466
- function N(e, t, n = null) {
466
+ function P(e, t, n = null) {
467
467
  for (let r = 0; r < e.length; r++) {
468
468
  let i = e[r];
469
469
  if (i.id === t) return {
@@ -471,10 +471,10 @@ function N(e, t, n = null) {
471
471
  parent: n,
472
472
  after: r > 0 ? e[r - 1].id : null
473
473
  };
474
- let a = Ae(i);
474
+ let a = ke(i);
475
475
  for (let e = 0; e < a.length; e++) {
476
476
  if (!Array.isArray(a[e])) continue;
477
- let n = N(a[e], t, {
477
+ let n = P(a[e], t, {
478
478
  sectionId: i.id,
479
479
  column: e
480
480
  });
@@ -483,18 +483,18 @@ function N(e, t, n = null) {
483
483
  }
484
484
  return null;
485
485
  }
486
- function P(e, t, n) {
487
- let r = N(e.blocks, t);
488
- if (!r) throw new h("block_missing", n, `No block with id "${t}".`, t);
486
+ function F(e, t, n) {
487
+ let r = P(e.blocks, t);
488
+ if (!r) throw new _("block_missing", n, `No block with id "${t}".`, t);
489
489
  return r;
490
490
  }
491
- function F(e, t, n) {
491
+ function Ae(e, t, n) {
492
492
  let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
493
493
  for (let n of o) {
494
494
  let o = e[n];
495
- o === void 0 ? i.push(n) : r[n] = p(o);
495
+ o === void 0 ? i.push(n) : r[n] = h(o);
496
496
  let s = t && n in t ? t[n] : void 0;
497
- a[n] = s === void 0 ? null : p(s);
497
+ a[n] = s === void 0 ? null : h(s);
498
498
  }
499
499
  return {
500
500
  set: r,
@@ -507,19 +507,19 @@ function je(e, t, n) {
507
507
  case "addBlock": return {
508
508
  op: "deleteBlock",
509
509
  blockId: t.block.id,
510
- expect: { block: p(t.block) }
510
+ expect: { block: h(t.block) }
511
511
  };
512
512
  case "deleteBlock": {
513
- let r = P(e, t.blockId, n);
513
+ let r = F(e, t.blockId, n);
514
514
  return {
515
515
  op: "addBlock",
516
- block: p(r.block),
516
+ block: h(r.block),
517
517
  parent: r.parent,
518
518
  after: r.after
519
519
  };
520
520
  }
521
521
  case "moveBlock": {
522
- let r = P(e, t.blockId, n);
522
+ let r = F(e, t.blockId, n);
523
523
  return {
524
524
  op: "moveBlock",
525
525
  blockId: t.blockId,
@@ -532,7 +532,7 @@ function je(e, t, n) {
532
532
  };
533
533
  }
534
534
  case "updateBlock": {
535
- let r = P(e, t.blockId, n).block, { set: i, unset: a, expect: o } = F(r, t.set, t.unset);
535
+ let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ae(r, t.set, t.unset);
536
536
  return {
537
537
  op: "updateBlock",
538
538
  blockId: t.blockId,
@@ -542,7 +542,7 @@ function je(e, t, n) {
542
542
  };
543
543
  }
544
544
  case "updateSettings": {
545
- let { set: n, unset: r, expect: i } = F(e.settings, t.set, t.unset);
545
+ let { set: n, unset: r, expect: i } = Ae(e.settings, t.set, t.unset);
546
546
  return {
547
547
  op: "updateSettings",
548
548
  ...Object.keys(n).length > 0 ? { set: n } : {},
@@ -553,20 +553,20 @@ function je(e, t, n) {
553
553
  case "setContent": return {
554
554
  op: "setContent",
555
555
  content: {
556
- blocks: p(e.blocks),
557
- settings: p(e.settings)
556
+ blocks: h(e.blocks),
557
+ settings: h(e.settings)
558
558
  }
559
559
  };
560
560
  }
561
561
  }
562
562
  function Me(e, t) {
563
- let n = p(e), r = [];
563
+ let n = h(e), r = [];
564
564
  return t.forEach((e, t) => {
565
565
  r.push(je(n, e, t));
566
566
  try {
567
- g(n, [e]);
567
+ v(n, [e]);
568
568
  } catch (e) {
569
- throw e instanceof h ? new h(e.code, t, e.message, e.blockId) : e;
569
+ throw e instanceof _ ? new _(e.code, t, e.message, e.blockId) : e;
570
570
  }
571
571
  }), r.reverse();
572
572
  }
@@ -661,7 +661,7 @@ var Le = {
661
661
  cellPadding: 8,
662
662
  fontSize: 15,
663
663
  textAlign: "left"
664
- }, z = {
664
+ }, Ye = {
665
665
  targetDate: "",
666
666
  timezone: "UTC",
667
667
  showDays: !0,
@@ -681,7 +681,7 @@ var Le = {
681
681
  expiredMessage: "This offer has expired",
682
682
  expiredImageUrl: "",
683
683
  hideOnExpiry: !1
684
- }, Ye = {
684
+ }, Xe = {
685
685
  title: Le,
686
686
  paragraph: Re,
687
687
  image: ze,
@@ -694,8 +694,8 @@ var Le = {
694
694
  html: Ke,
695
695
  menu: qe,
696
696
  table: Je,
697
- countdown: z
698
- }, Xe = {
697
+ countdown: Ye
698
+ }, Ze = {
699
699
  width: 600,
700
700
  backgroundColor: "#ffffff",
701
701
  textColor: "#1a1a1a",
@@ -703,28 +703,28 @@ var Le = {
703
703
  fontFamily: "Arial",
704
704
  locale: "en"
705
705
  };
706
- function Ze(e) {
706
+ function Qe(e) {
707
707
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
708
708
  }
709
- function B(e, t) {
709
+ function z(e, t) {
710
710
  let n = { ...e };
711
711
  for (let r of Object.keys(t)) {
712
712
  let i = e[r], a = t[r];
713
- a !== void 0 && (n[r] = Ze(i) && Ze(a) ? B(i, a) : a);
713
+ a !== void 0 && (n[r] = Qe(i) && Qe(a) ? z(i, a) : a);
714
714
  }
715
715
  return n;
716
716
  }
717
- function Qe(e = "Arial", t) {
717
+ function $e(e = "Arial", t) {
718
718
  return {
719
719
  blocks: [],
720
720
  settings: {
721
- ...Xe,
721
+ ...Ze,
722
722
  fontFamily: e,
723
723
  ...t
724
724
  }
725
725
  };
726
726
  }
727
- var $e = [
727
+ var et = [
728
728
  "ar",
729
729
  "he",
730
730
  "iw",
@@ -738,24 +738,32 @@ var $e = [
738
738
  "ckb",
739
739
  "ks"
740
740
  ];
741
- function et(e) {
741
+ function tt(e) {
742
742
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
743
- return !!t && $e.includes(t);
743
+ return !!t && et.includes(t);
744
744
  }
745
- function tt(e) {
746
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : et(e.locale) ? "rtl" : "ltr";
745
+ function nt(e) {
746
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : tt(e.locale) ? "rtl" : "ltr";
747
+ }
748
+ function rt(e) {
749
+ return new e.Liquid({
750
+ strictVariables: !1,
751
+ strictFilters: !1,
752
+ outputEscape: "escape",
753
+ templates: {}
754
+ });
747
755
  }
748
- function V(e, t) {
749
- let n = p(e);
750
- return !t || Object.keys(t).length === 0 ? n : B(n, t);
756
+ function B(e, t) {
757
+ let n = h(e);
758
+ return !t || Object.keys(t).length === 0 ? n : z(n, t);
751
759
  }
752
- function H(e) {
753
- return e === void 0 ? void 0 : p(e);
760
+ function V(e) {
761
+ return e === void 0 ? void 0 : h(e);
754
762
  }
755
- function U() {
763
+ function H() {
756
764
  return crypto.randomUUID();
757
765
  }
758
- function nt(e = 0) {
766
+ function it(e = 0) {
759
767
  return {
760
768
  top: e,
761
769
  right: e,
@@ -763,135 +771,135 @@ function nt(e = 0) {
763
771
  left: e
764
772
  };
765
773
  }
766
- function W(e = 10) {
767
- return { padding: nt(e) };
774
+ function U(e = 10) {
775
+ return { padding: it(e) };
768
776
  }
769
- function rt(e = {}) {
770
- return V({
771
- id: U(),
777
+ function at(e = {}) {
778
+ return B({
779
+ id: H(),
772
780
  type: "title",
773
781
  ...Le,
774
- styles: W()
782
+ styles: U()
775
783
  }, e);
776
784
  }
777
- function it(e = {}) {
778
- return V({
779
- id: U(),
785
+ function ot(e = {}) {
786
+ return B({
787
+ id: H(),
780
788
  type: "paragraph",
781
789
  ...Re,
782
- styles: W()
790
+ styles: U()
783
791
  }, e);
784
792
  }
785
- function at(e = {}) {
786
- return V({
787
- id: U(),
793
+ function st(e = {}) {
794
+ return B({
795
+ id: H(),
788
796
  type: "image",
789
797
  ...ze,
790
- styles: W()
798
+ styles: U()
791
799
  }, e);
792
800
  }
793
- function ot(e = {}) {
794
- return V({
795
- id: U(),
801
+ function ct(e = {}) {
802
+ return B({
803
+ id: H(),
796
804
  type: "button",
797
805
  ...Be,
798
- styles: W()
806
+ styles: U()
799
807
  }, e);
800
808
  }
801
- function st(e = {}) {
802
- return V({
803
- id: U(),
809
+ function lt(e = {}) {
810
+ return B({
811
+ id: H(),
804
812
  type: "divider",
805
813
  ...Ve,
806
- styles: W(20)
814
+ styles: U(20)
807
815
  }, e);
808
816
  }
809
- function ct(e = {}) {
810
- return V({
811
- id: U(),
817
+ function W(e = {}) {
818
+ return B({
819
+ id: H(),
812
820
  type: "section",
813
821
  ...He,
814
822
  children: [[]],
815
- styles: W(20)
823
+ styles: U(20)
816
824
  }, e);
817
825
  }
818
- function lt(e = {}) {
819
- return V({
820
- id: U(),
826
+ function ut(e = {}) {
827
+ return B({
828
+ id: H(),
821
829
  type: "video",
822
830
  ...Ue,
823
- styles: W()
831
+ styles: U()
824
832
  }, e);
825
833
  }
826
- function ut(e = {}) {
827
- return V({
828
- id: U(),
834
+ function dt(e = {}) {
835
+ return B({
836
+ id: H(),
829
837
  type: "social",
830
838
  icons: [],
831
839
  ...We,
832
- styles: W()
840
+ styles: U()
833
841
  }, e);
834
842
  }
835
- function dt(e = {}) {
836
- return V({
837
- id: U(),
843
+ function ft(e = {}) {
844
+ return B({
845
+ id: H(),
838
846
  type: "spacer",
839
847
  ...Ge,
840
- styles: W(0)
848
+ styles: U(0)
841
849
  }, e);
842
850
  }
843
- function ft(e = {}) {
844
- return V({
845
- id: U(),
851
+ function pt(e = {}) {
852
+ return B({
853
+ id: H(),
846
854
  type: "html",
847
855
  ...Ke,
848
- styles: W()
856
+ styles: U()
849
857
  }, e);
850
858
  }
851
- function pt(e = {}) {
852
- return V({
853
- id: U(),
859
+ function mt(e = {}) {
860
+ return B({
861
+ id: H(),
854
862
  type: "menu",
855
863
  items: [],
856
864
  ...qe,
857
- styles: W()
865
+ styles: U()
858
866
  }, e);
859
867
  }
860
- function mt(e, t) {
868
+ function ht(e, t) {
861
869
  return Array.from({ length: t }, () => ({
862
- id: U(),
870
+ id: H(),
863
871
  cells: Array.from({ length: e }, () => ({
864
- id: U(),
872
+ id: H(),
865
873
  content: ""
866
874
  }))
867
875
  }));
868
876
  }
869
- function ht(e = {}) {
870
- return V({
871
- id: U(),
877
+ function gt(e = {}) {
878
+ return B({
879
+ id: H(),
872
880
  type: "table",
873
- rows: mt(3, 3),
881
+ rows: ht(3, 3),
874
882
  ...Je,
875
- styles: W()
883
+ styles: U()
876
884
  }, e);
877
885
  }
878
- function gt(e = {}) {
879
- return V({
880
- id: U(),
886
+ function _t(e = {}) {
887
+ return B({
888
+ id: H(),
881
889
  type: "countdown",
882
- ...z,
883
- styles: W()
890
+ ...Ye,
891
+ styles: U()
884
892
  }, e);
885
893
  }
886
- function _t(e) {
894
+ function vt(e) {
887
895
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
888
896
  }
889
- function vt(e) {
897
+ function yt(e) {
890
898
  let t = {};
891
- for (let n of e.fields) t[n.key] = H(_t(n));
892
- let n = V(W(), H(e.defaultStyles));
899
+ for (let n of e.fields) t[n.key] = V(vt(n));
900
+ let n = B(U(), V(e.defaultStyles));
893
901
  return {
894
- id: U(),
902
+ id: H(),
895
903
  type: "custom",
896
904
  customType: e.type,
897
905
  fieldValues: t,
@@ -899,36 +907,36 @@ function vt(e) {
899
907
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
900
908
  };
901
909
  }
902
- function yt() {
910
+ function bt() {
903
911
  return {
904
- id: U(),
912
+ id: H(),
905
913
  type: "slot",
906
- styles: W(0)
914
+ styles: U(0)
907
915
  };
908
916
  }
909
- function bt(e = {}) {
910
- return V({
911
- id: U(),
917
+ function xt(e = {}) {
918
+ return B({
919
+ id: H(),
912
920
  type: "wrapper",
913
921
  children: [],
914
- styles: W(0)
922
+ styles: U(0)
915
923
  }, e);
916
924
  }
917
- function xt(e, t) {
925
+ function St(e, t) {
918
926
  switch (e) {
919
- case "section": return ct(H(t?.section));
920
- case "title": return rt(H(t?.title));
921
- case "paragraph": return it(H(t?.paragraph));
922
- case "image": return at(H(t?.image));
923
- case "button": return ot(H(t?.button));
924
- case "divider": return st(H(t?.divider));
925
- case "video": return lt(H(t?.video));
926
- case "social": return ut(H(t?.social));
927
- case "spacer": return dt(H(t?.spacer));
928
- case "html": return ft(H(t?.html));
929
- case "menu": return pt(H(t?.menu));
930
- case "table": return ht(H(t?.table));
931
- case "countdown": return gt(H(t?.countdown));
927
+ case "section": return W(V(t?.section));
928
+ case "title": return at(V(t?.title));
929
+ case "paragraph": return ot(V(t?.paragraph));
930
+ case "image": return st(V(t?.image));
931
+ case "button": return ct(V(t?.button));
932
+ case "divider": return lt(V(t?.divider));
933
+ case "video": return ut(V(t?.video));
934
+ case "social": return dt(V(t?.social));
935
+ case "spacer": return ft(V(t?.spacer));
936
+ case "html": return pt(V(t?.html));
937
+ case "menu": return mt(V(t?.menu));
938
+ case "table": return gt(V(t?.table));
939
+ case "countdown": return _t(V(t?.countdown));
932
940
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
933
941
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
934
942
  default: throw Error(`Unknown block type: ${e}`);
@@ -936,57 +944,57 @@ function xt(e, t) {
936
944
  }
937
945
  function G(e) {
938
946
  let t = JSON.parse(JSON.stringify(e));
939
- if (t.id = U(), t.type === "table") for (let e of t.rows) {
940
- e.id = U();
941
- for (let t of e.cells) t.id = U();
947
+ if (t.id = H(), t.type === "table") for (let e of t.rows) {
948
+ e.id = H();
949
+ for (let t of e.cells) t.id = H();
942
950
  }
943
- if (t.type === "menu") for (let e of t.items) e.id = U();
944
- if (t.type === "social") for (let e of t.icons) e.id = U();
951
+ if (t.type === "menu") for (let e of t.items) e.id = H();
952
+ if (t.type === "social") for (let e of t.icons) e.id = H();
945
953
  return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => G(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => G(e))), t;
946
954
  }
947
- var St = "[Templatical] layout: must contain exactly one slot block", Ct = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", wt = "[Templatical] layout: a wrapper cannot contain a wrapper", Tt = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Et = "[Templatical] slot is not a valid content block", Dt = "[Templatical] wrapper is not a valid content block";
955
+ var Ct = "[Templatical] layout: must contain exactly one slot block", wt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Tt = "[Templatical] layout: a wrapper cannot contain a wrapper", Et = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Dt = "[Templatical] slot is not a valid content block", Ot = "[Templatical] wrapper is not a valid content block";
948
956
  function K(e, t, n = null, r = !1) {
949
957
  for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
950
958
  else R(i) && K(i.children, t, i, r);
951
959
  }
952
- function Ot(e) {
960
+ function kt(e) {
953
961
  let t = 0;
954
962
  if (K(e.blocks, (e, n, r) => {
955
- if (L(e) && (t += 1, r)) throw Error(Ct);
963
+ if (L(e) && (t += 1, r)) throw Error(wt);
956
964
  if (R(e)) {
957
- if (r) throw Error(Ct);
958
- if (e.children.some(R)) throw Error(wt);
965
+ if (r) throw Error(wt);
966
+ if (e.children.some(R)) throw Error(Tt);
959
967
  }
960
- }), t !== 1) throw Error(St);
968
+ }), t !== 1) throw Error(Ct);
961
969
  }
962
- function kt(e) {
970
+ function At(e) {
963
971
  K(e.blocks, (e) => {
964
- if (L(e)) throw Error(Et);
972
+ if (L(e)) throw Error(Dt);
965
973
  });
966
974
  }
967
- function At(e) {
975
+ function jt(e) {
968
976
  K(e.blocks, (e) => {
969
- if (R(e)) throw Error(Dt);
977
+ if (R(e)) throw Error(Ot);
970
978
  });
971
979
  }
972
- function jt(e) {
980
+ function Mt(e) {
973
981
  let t = !1;
974
982
  return K(e.blocks, (e, n) => {
975
983
  L(e) && n !== null && R(n) && (t = !0);
976
984
  }), t;
977
985
  }
978
- function Mt(e) {
986
+ function Nt(e) {
979
987
  if (L(e)) return e;
980
988
  if (R(e)) {
981
989
  let t = G({
982
990
  ...e,
983
991
  children: []
984
992
  });
985
- return t.children = e.children.map(Mt), t;
993
+ return t.children = e.children.map(Nt), t;
986
994
  }
987
995
  return G(e);
988
996
  }
989
- function Nt(e) {
997
+ function Pt(e) {
990
998
  for (let t = 0; t < e.length; t++) {
991
999
  let n = e[t];
992
1000
  if (L(n)) return {
@@ -994,49 +1002,77 @@ function Nt(e) {
994
1002
  index: t
995
1003
  };
996
1004
  if (R(n)) {
997
- let e = Nt(n.children);
1005
+ let e = Pt(n.children);
998
1006
  if (e) return e;
999
1007
  }
1000
1008
  }
1001
1009
  return null;
1002
1010
  }
1003
- function Pt(e) {
1011
+ function Ft(e) {
1004
1012
  for (let t of e) if (I(t)) {
1005
1013
  if (t.wrapper) return !0;
1006
- for (let e of t.children) if (Pt(e)) return !0;
1014
+ for (let e of t.children) if (Ft(e)) return !0;
1007
1015
  }
1008
1016
  return !1;
1009
1017
  }
1010
- function Ft(e, t) {
1011
- if (Ot(e), kt(t), At(t), jt(e) && Pt(t.blocks)) throw Error(Tt);
1012
- let n = e.blocks.map(Mt), r = Nt(n);
1013
- if (!r) throw Error(St);
1014
- return r.parent.splice(r.index, 1, ...p(t.blocks)), {
1018
+ function It(e, t) {
1019
+ if (kt(e), At(t), jt(t), Mt(e) && Ft(t.blocks)) throw Error(Et);
1020
+ let n = e.blocks.map(Nt), r = Pt(n);
1021
+ if (!r) throw Error(Ct);
1022
+ return r.parent.splice(r.index, 1, ...h(t.blocks)), {
1015
1023
  blocks: n,
1016
1024
  settings: {
1017
- ...p(t.settings),
1025
+ ...h(t.settings),
1018
1026
  backgroundColor: e.settings.backgroundColor
1019
1027
  }
1020
1028
  };
1021
1029
  }
1022
- var It = /* @__PURE__ */ new Set(["\"", "'"]);
1023
- function Lt(e, t) {
1030
+ var Lt = Object.freeze([
1031
+ "http",
1032
+ "https",
1033
+ "mailto",
1034
+ "tel",
1035
+ "ftp",
1036
+ "ftps",
1037
+ "sms",
1038
+ "xmpp",
1039
+ "cid"
1040
+ ]);
1041
+ Object.freeze([
1042
+ "javascript",
1043
+ "data",
1044
+ "vbscript"
1045
+ ]);
1046
+ function Rt(e) {
1047
+ return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1048
+ }
1049
+ function zt(e) {
1050
+ let t = /^([a-z][a-z0-9+.-]*):/i.exec(Rt(e));
1051
+ return t ? t[1].toLowerCase() : null;
1052
+ }
1053
+ var Bt = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
1054
+ function Vt(e, t) {
1055
+ let n = Rt(e), r = zt(n);
1056
+ return r === null || Lt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Bt.test(n);
1057
+ }
1058
+ var Ht = /* @__PURE__ */ new Set(["\"", "'"]);
1059
+ function Ut(e, t) {
1024
1060
  let n = null;
1025
1061
  for (let r = t; r < e.length; r++) {
1026
1062
  let t = e[r];
1027
1063
  if (n !== null) t === n && (n = null);
1028
- else if (It.has(t)) n = t;
1064
+ else if (Ht.has(t)) n = t;
1029
1065
  else if (t === ">") return r;
1030
1066
  }
1031
1067
  return -1;
1032
1068
  }
1033
- function Rt(e) {
1069
+ function Wt(e) {
1034
1070
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1035
1071
  }
1036
1072
  function q(e) {
1037
1073
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1038
1074
  }
1039
- var zt = {
1075
+ var Gt = {
1040
1076
  amp: "&",
1041
1077
  lt: "<",
1042
1078
  gt: ">",
@@ -1044,22 +1080,22 @@ var zt = {
1044
1080
  apos: "'",
1045
1081
  nbsp: "\xA0"
1046
1082
  };
1047
- function Bt(e) {
1083
+ function Kt(e) {
1048
1084
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
1049
1085
  if (t[0] === "#") {
1050
1086
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1051
1087
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1052
1088
  }
1053
- return zt[t.toLowerCase()] ?? e;
1089
+ return Gt[t.toLowerCase()] ?? e;
1054
1090
  }) : e;
1055
1091
  }
1056
- function Vt(e, t) {
1092
+ function qt(e, t) {
1057
1093
  let n = t.toLowerCase(), r = 0;
1058
1094
  for (; r < e.length;) {
1059
1095
  for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
1060
1096
  if (r >= e.length) break;
1061
1097
  let t = r;
1062
- for (; r < e.length && Rt(e[r]);) r++;
1098
+ for (; r < e.length && Wt(e[r]);) r++;
1063
1099
  let i = e.substring(t, r).toLowerCase();
1064
1100
  if (i === "") {
1065
1101
  r++;
@@ -1069,27 +1105,27 @@ function Vt(e, t) {
1069
1105
  if (e[r] !== "=") continue;
1070
1106
  for (r++; r < e.length && q(e[r]);) r++;
1071
1107
  let a = e[r];
1072
- if (It.has(a)) {
1108
+ if (Ht.has(a)) {
1073
1109
  let t = r + 1, o = e.indexOf(a, t);
1074
1110
  if (o === -1) return null;
1075
- if (i === n) return Bt(e.substring(t, o));
1111
+ if (i === n) return Kt(e.substring(t, o));
1076
1112
  r = o + 1;
1077
1113
  continue;
1078
1114
  }
1079
1115
  let o = r;
1080
1116
  for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
1081
- if (i === n) return Bt(e.substring(o, r));
1117
+ if (i === n) return Kt(e.substring(o, r));
1082
1118
  }
1083
1119
  return null;
1084
1120
  }
1085
- var Ht = /<\/?p\b[^<>]*>/gi, Ut = /<p\b([^<>]*)>\s*<\/p>/gi;
1086
- function Wt(e) {
1087
- return e.replace(Ht, "").trim() === "";
1121
+ var Jt = /<\/?p\b[^<>]*>/gi, Yt = /<p\b([^<>]*)>\s*<\/p>/gi;
1122
+ function Xt(e) {
1123
+ return e.replace(Jt, "").trim() === "";
1088
1124
  }
1089
- function Gt(e) {
1090
- return Wt(e) ? e : e.replace(Ut, "<p$1>&nbsp;</p>");
1125
+ function Zt(e) {
1126
+ return Xt(e) ? e : e.replace(Yt, "<p$1>&nbsp;</p>");
1091
1127
  }
1092
- var Kt = {
1128
+ var Qt = {
1093
1129
  arial: "Arial, sans-serif",
1094
1130
  helvetica: "Helvetica, sans-serif",
1095
1131
  georgia: "Georgia, serif",
@@ -1098,13 +1134,13 @@ var Kt = {
1098
1134
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1099
1135
  "courier new": "'Courier New', monospace",
1100
1136
  tahoma: "Tahoma, sans-serif"
1101
- }, qt = /* @__PURE__ */ new Set([
1137
+ }, $t = /* @__PURE__ */ new Set([
1102
1138
  "inherit",
1103
1139
  "initial",
1104
1140
  "unset",
1105
1141
  "revert",
1106
1142
  "revert-layer"
1107
- ]), Jt = /* @__PURE__ */ new Set([
1143
+ ]), en = /* @__PURE__ */ new Set([
1108
1144
  "serif",
1109
1145
  "sans-serif",
1110
1146
  "monospace",
@@ -1119,14 +1155,14 @@ var Kt = {
1119
1155
  "math",
1120
1156
  "fangsong"
1121
1157
  ]);
1122
- function Yt(e) {
1158
+ function tn(e) {
1123
1159
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1124
1160
  }
1125
1161
  function J(e) {
1126
1162
  if (typeof e != "string") return [];
1127
1163
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
1128
1164
  for (;;) {
1129
- for (; r < t.length && Yt(t[r]);) r++;
1165
+ for (; r < t.length && tn(t[r]);) r++;
1130
1166
  if (r >= t.length) return [];
1131
1167
  let e = t[r];
1132
1168
  if (e === "\"" || e === "'") {
@@ -1143,7 +1179,7 @@ function J(e) {
1143
1179
  }
1144
1180
  }
1145
1181
  if (!o) return [];
1146
- for (; a < t.length && Yt(t[a]);) a++;
1182
+ for (; a < t.length && tn(t[a]);) a++;
1147
1183
  if (a < t.length && t[a] !== ",") return [];
1148
1184
  n.push({
1149
1185
  name: i,
@@ -1151,7 +1187,7 @@ function J(e) {
1151
1187
  }), r = a;
1152
1188
  } else {
1153
1189
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
1154
- if (a === "" || a.includes("\"") || a.includes("'") || qt.has(a.toLowerCase())) return [];
1190
+ if (a === "" || a.includes("\"") || a.includes("'") || $t.has(a.toLowerCase())) return [];
1155
1191
  n.push({
1156
1192
  name: a,
1157
1193
  quoted: !1
@@ -1161,22 +1197,22 @@ function J(e) {
1161
1197
  r++;
1162
1198
  }
1163
1199
  }
1164
- function Xt(e) {
1200
+ function nn(e) {
1165
1201
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
1166
1202
  }
1167
- function Zt(e) {
1168
- return !e.quoted && Jt.has(e.name.toLowerCase());
1203
+ function rn(e) {
1204
+ return !e.quoted && en.has(e.name.toLowerCase());
1169
1205
  }
1170
- function Qt(e) {
1206
+ function an(e) {
1171
1207
  return J(e)[0]?.name ?? "";
1172
1208
  }
1173
- function $t(e, t) {
1174
- let n = (e) => `${Xt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1209
+ function on(e, t) {
1210
+ let n = (e) => `${nn(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1175
1211
  if (i) return n(i);
1176
1212
  let a = J(e);
1177
1213
  if (a.length !== 1) return e;
1178
1214
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
1179
- return c ? n(c) : Kt[s] || (Zt(o) ? e : `${Xt(o.name)}, ${t.defaultFallback}`);
1215
+ return c ? n(c) : Qt[s] || (rn(o) ? e : `${nn(o.name)}, ${t.defaultFallback}`);
1180
1216
  }
1181
1217
  var Y = {
1182
1218
  liquid: {
@@ -1204,26 +1240,26 @@ var Y = {
1204
1240
  closer: "=%%"
1205
1241
  }
1206
1242
  };
1207
- function en(e) {
1243
+ function sn(e) {
1208
1244
  return typeof e == "string" && e.trim() !== "" ? e : null;
1209
1245
  }
1210
- function tn(e) {
1246
+ function cn(e) {
1211
1247
  return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
1212
1248
  }
1213
- function nn(e) {
1214
- return en(e.opener) ?? tn(e)?.opener ?? null;
1249
+ function ln(e) {
1250
+ return sn(e.opener) ?? cn(e)?.opener ?? null;
1215
1251
  }
1216
- function rn(e) {
1217
- return en(e.closer) ?? tn(e)?.closer ?? null;
1252
+ function un(e) {
1253
+ return sn(e.closer) ?? cn(e)?.closer ?? null;
1218
1254
  }
1219
- function an(e) {
1255
+ function dn(e) {
1220
1256
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
1221
1257
  }
1222
1258
  function X(e) {
1223
1259
  let t = e.source, n = e.flags.replace("g", "");
1224
1260
  return RegExp(`^${t}$`, n);
1225
1261
  }
1226
- function on(e, t) {
1262
+ function fn(e, t) {
1227
1263
  let n = e?.trim() || "";
1228
1264
  return !X(t.logic).test(n) && X(t.value).test(n);
1229
1265
  }
@@ -1231,41 +1267,41 @@ function Z(e, t) {
1231
1267
  let n = t.find((t) => t.value === e);
1232
1268
  return n ? n.label : e;
1233
1269
  }
1234
- function sn(e, t) {
1270
+ function pn(e, t) {
1235
1271
  return $(e, "data-merge-tag", (e) => Z(e, t));
1236
1272
  }
1237
1273
  function Q(e, t) {
1238
1274
  return t.find((t) => t.value === e)?.sample;
1239
1275
  }
1240
- function cn(e, t) {
1241
- return $(e, "data-merge-tag", (e) => dn(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1276
+ function mn(e, t) {
1277
+ return $(e, "data-merge-tag", (e) => _n(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1242
1278
  }
1243
- function ln(e) {
1279
+ function hn(e) {
1244
1280
  return e.some((e) => e.sample !== void 0);
1245
1281
  }
1246
- function un(e, t) {
1282
+ function gn(e, t) {
1247
1283
  if (!e) return e;
1248
1284
  let n = e;
1249
1285
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1250
1286
  return n;
1251
1287
  }
1252
- function dn(e) {
1288
+ function _n(e) {
1253
1289
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1254
1290
  }
1255
- function fn(e, t) {
1291
+ function vn(e, t) {
1256
1292
  if (!e) return !1;
1257
1293
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1258
1294
  return n.test(e) || r.test(e);
1259
1295
  }
1260
- function pn(e, t) {
1296
+ function yn(e, t) {
1261
1297
  return X(t.logic).test(e?.trim() || "");
1262
1298
  }
1263
- function mn(e, t) {
1299
+ function bn(e, t) {
1264
1300
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1265
1301
  return r && r[1] ? r[1].toUpperCase() : e;
1266
1302
  }
1267
- function hn(e, t) {
1268
- return $(e, "data-logic-merge-tag", (e) => mn(e, t));
1303
+ function xn(e, t) {
1304
+ return $(e, "data-logic-merge-tag", (e) => bn(e, t));
1269
1305
  }
1270
1306
  function $(e, t, n, r) {
1271
1307
  let i = "", a = 0;
@@ -1280,7 +1316,7 @@ function $(e, t, n, r) {
1280
1316
  i += e.substring(a, o + 5), a = o + 5;
1281
1317
  continue;
1282
1318
  }
1283
- let c = Lt(e, o + 5);
1319
+ let c = Ut(e, o + 5);
1284
1320
  if (c === -1) {
1285
1321
  i += e.substring(a);
1286
1322
  break;
@@ -1290,7 +1326,7 @@ function $(e, t, n, r) {
1290
1326
  i += e.substring(a);
1291
1327
  break;
1292
1328
  }
1293
- let u = Vt(e.substring(o + 5, c), t);
1329
+ let u = qt(e.substring(o + 5, c), t);
1294
1330
  if (u === null) {
1295
1331
  i += e.substring(a, o + 5), a = o + 5;
1296
1332
  continue;
@@ -1300,10 +1336,9 @@ function $(e, t, n, r) {
1300
1336
  }
1301
1337
  return i;
1302
1338
  }
1303
- function gn(e) {
1339
+ function Sn(e) {
1304
1340
  if (typeof e != "object" || !e) return !1;
1305
1341
  let t = e;
1306
1342
  return Array.isArray(t.blocks);
1307
1343
  }
1308
- //#endregion
1309
- export { ln as $, at as A, bt as B, xt as C, un as Ct, Qe as D, t as Dt, vt as E, o as Et, ut as F, Qt as G, B as H, dt as I, mn as J, U as K, ht as L, it as M, ct as N, st as O, Ot, yt as P, nn as Q, rt as R, te as S, cn as St, gt as T, r as Tt, ne as U, m as V, Gt as W, Q as X, Z as Y, rn as Z, g as _, an as _t, Fe as a, gn as at, G as b, fe as bt, s as c, R as ct, ce as d, re as dt, se as et, Y as f, tt as ft, he as g, sn as gt, Ft as h, hn as ht, e as i, on as it, pt as j, ft as k, h as l, jt as lt, c as m, ae as mt, ee as n, Ie as nt, Ye as o, I as ot, Ne as p, $t as pt, me as q, i as r, pn as rt, Xe as s, L as st, d as t, Me as tt, l as u, J as ut, kt as v, p as vt, ot as w, n as wt, fn as x, de as xt, At as y, ue as yt, lt as z };
1344
+ export { Q as $, lt as A, o as At, at as B, te as C, ce as Ct, yt as D, gn as Dt, _t as E, mn as Et, W as F, ne as G, xt as H, bt as I, an as J, zt as K, dt as L, st as M, kt as Mt, mt as N, rt as O, n as Ot, ot as P, Z as Q, ft as R, vn as S, h as St, ct as T, le as Tt, g as U, ut as V, z as W, fe as X, H as Y, bn as Z, pe as _, on as _t, Fe as a, Ie as at, jt as b, pn as bt, s as c, Sn as ct, Lt as d, L as dt, un as et, p as f, R as ft, It as g, nt as gt, c as h, f as ht, e as i, Me as it, pt as j, t as jt, $e as k, r as kt, _ as l, Vt as lt, Ne as m, J as mt, ee as n, hn as nt, Xe as o, yn as ot, Y as p, Mt as pt, Zt as q, i as r, oe as rt, Ze as s, fn as st, d as t, ln as tt, l as u, I as ut, v, ie as vt, St as w, ue as wt, G as x, dn as xt, At as y, xn as yt, gt as z };