@outmarket-ai/react-sdk 0.1.0-alpha.36 → 0.1.0-alpha.37

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 (356) hide show
  1. package/dist/{AddNoteDialog-Cpi1nfwT.js → AddNoteDialog-Yge3IB1P.js} +1 -1
  2. package/dist/{AlertDialog-_t-evdam.js → AlertDialog-DJZSkNpg.js} +1 -1
  3. package/dist/{ApproveWorkflowsList-BmYZqp9s.js → ApproveWorkflowsList-CWH0NN8N.js} +1 -1
  4. package/dist/{BORLetterEditor-BZDBvV69.js → BORLetterEditor-1rUoHq5R.js} +1 -1
  5. package/dist/{BillDetailModal-B9yFiJTi.js → BillDetailModal-Xw_hhT8b.js} +1 -1
  6. package/dist/{CoiIssueHolderModal-CzSDU14A.js → CoiIssueHolderModal-fQUcFLoh.js} +1 -1
  7. package/dist/{DeletePromptDialog-Dzsl84zg.js → DeletePromptDialog-56PY2_Jl.js} +1 -1
  8. package/dist/{EmailFormatSelectionDialog-a6wInMbw.js → EmailFormatSelectionDialog-DnQG_6jn.js} +1 -1
  9. package/dist/{ExcelExportPreviewDialog-BavPa1AV.js → ExcelExportPreviewDialog-CGlfNt1H.js} +1 -1
  10. package/dist/{ExplainPanel-DQHRbHze.js → ExplainPanel-CGE04xa3.js} +1 -1
  11. package/dist/{ExportDialog-B_xEStjm.js → ExportDialog-D_iXexam.js} +1 -1
  12. package/dist/{ExportToAmsDialog--_rUT0ky.js → ExportToAmsDialog-Cq8DeJm9.js} +1 -1
  13. package/dist/{ExportToDriveDialog--KGO6oHg.js → ExportToDriveDialog-DdXXdD1O.js} +1 -1
  14. package/dist/{FeedbackTool-C1u8INbG.js → FeedbackTool-BkqROb9w.js} +1 -1
  15. package/dist/{LayerDetailModal-CpMvOQy3.js → LayerDetailModal-CnOt0XDk.js} +1 -1
  16. package/dist/{LogoEditor-Bq6jF9Ib.js → LogoEditor-BpiMgfHM.js} +1 -1
  17. package/dist/{MarkdownExportPreviewDialog-OxivowqQ.js → MarkdownExportPreviewDialog-HVMv0Xpe.js} +1 -1
  18. package/dist/{NotificationDrawer-CMT3ICuy.js → NotificationDrawer-lEXwDeTJ.js} +1 -1
  19. package/dist/{PhoneNumbersDisplay-BuqW5ohD.js → PhoneNumbersDisplay-DT_0SadL.js} +1 -1
  20. package/dist/{PlanSelector-8i1S3uNY.js → PlanSelector-BeRIZrQw.js} +1 -1
  21. package/dist/{PlanSettingsModal-DcDAPx6W.js → PlanSettingsModal-HcuqqWHQ.js} +1 -1
  22. package/dist/{PlanWizardModal-aEFulQHO.js → PlanWizardModal-D-Eiops9.js} +1 -1
  23. package/dist/{RenameAssetDialog-BoOhjh5z.js → RenameAssetDialog-CCw0Hazz.js} +1 -1
  24. package/dist/{SaveBlockDialog-BM81p_97.js → SaveBlockDialog-BGoexB3m.js} +1 -1
  25. package/dist/{SaveOutlineDialog-Be6DzbOL.js → SaveOutlineDialog-Dkgc5ETS.js} +1 -1
  26. package/dist/{SavePromptDialog-r0lmgAS0.js → SavePromptDialog-CKQPDlh5.js} +1 -1
  27. package/dist/{ShareResourceDialog-DSUOAqDU.js → ShareResourceDialog-CuHJ487E.js} +1 -1
  28. package/dist/{TermsNoticeModal-C_Kg50vV.js → TermsNoticeModal-BsaIzfO-.js} +1 -1
  29. package/dist/{TowerAlertModal-DMDKlIat.js → TowerAlertModal-D_z7--D_.js} +1 -1
  30. package/dist/{TowerSummaryModal-a_l4Aym6.js → TowerSummaryModal-DSC1Pm1Y.js} +1 -1
  31. package/dist/{VaultSettingsDialog-B0GHZrxc.js → VaultSettingsDialog-Deynp-iQ.js} +1 -1
  32. package/dist/{ViewNoteDialog-C3aj5iIR.js → ViewNoteDialog-DUH1NRD3.js} +1 -1
  33. package/dist/{WhatsNewProvider-BriMwYKH.js → WhatsNewProvider-CcxLnw1k.js} +1 -1
  34. package/dist/{WidgetRawDataView-BRl2UmhF.js → WidgetRawDataView-BSumRkDH.js} +1 -1
  35. package/dist/{abap-D24AqS3I.js → abap-CgaBvtsa.js} +1 -1
  36. package/dist/{abnf-iCVfVLyA.js → abnf-P_WbR2sm.js} +1 -1
  37. package/dist/{actionscript-Zxb50RoG.js → actionscript-DLGJnRv3.js} +1 -1
  38. package/dist/{activityLog-CJDeBNhQ.js → activityLog-BZlv-Eve.js} +1 -1
  39. package/dist/{ada-Bqgs7QSd.js → ada-DuWfifjJ.js} +1 -1
  40. package/dist/{agda-BywGEnku.js → agda-CtfJoxS4.js} +1 -1
  41. package/dist/{al-BltDFxUF.js → al-B0lTwEiv.js} +1 -1
  42. package/dist/{antlr4-D7rj6N3C.js → antlr4-retFXi1E.js} +1 -1
  43. package/dist/{apacheconf-DloZ1Qre.js → apacheconf-Q_DriHMo.js} +1 -1
  44. package/dist/{apex-CaOyI3ry.js → apex-BL0DoEXd.js} +1 -1
  45. package/dist/{apl-BUg81PJG.js → apl-CGlhmeNp.js} +1 -1
  46. package/dist/{applescript-BrCxNDW3.js → applescript-DHg6XZam.js} +1 -1
  47. package/dist/{aql-BlRWJ7nt.js → aql-Cvf4IoYj.js} +1 -1
  48. package/dist/{arduino-num0XMBY.js → arduino-C1jIv4Hb.js} +1 -1
  49. package/dist/{arff-DWp2gz5V.js → arff-DSBKjv6P.js} +1 -1
  50. package/dist/{asciidoc-B74XLNRS.js → asciidoc-ByL_VbaN.js} +1 -1
  51. package/dist/{asm6502-DJ9xPLh7.js → asm6502-CvIXa_zj.js} +1 -1
  52. package/dist/{asmatmel-B1JRUJxe.js → asmatmel-BHjw6gOv.js} +1 -1
  53. package/dist/{aspnet-BM7s5Uva.js → aspnet-BvCkcUJ_.js} +1 -1
  54. package/dist/{autohotkey-CKFdtcF-.js → autohotkey-Cqck_wiv.js} +1 -1
  55. package/dist/{autoit-CNYKEym4.js → autoit-CVDd08hL.js} +1 -1
  56. package/dist/{avisynth-vusQHINy.js → avisynth-D97xYESW.js} +1 -1
  57. package/dist/{avro-idl-CaNF-lM-.js → avro-idl-BhBMl4Td.js} +1 -1
  58. package/dist/{bash-Bwcu9Bqt.js → bash-Dij0omZ0.js} +1 -1
  59. package/dist/{basic-Dq5kyGFj.js → basic-CTiNpNF1.js} +1 -1
  60. package/dist/{batch-C7CUM3Xz.js → batch-Djh-RD3-.js} +1 -1
  61. package/dist/{bbcode-DK5SVeOe.js → bbcode-87ZwUZdM.js} +1 -1
  62. package/dist/{bell-B5ZaarrC.js → bell-DdFiq7CV.js} +1 -1
  63. package/dist/{bicep-BXzh26cb.js → bicep-D8Uqs4ET.js} +1 -1
  64. package/dist/{birb-DFVxf9hr.js → birb-DO7bQ36t.js} +1 -1
  65. package/dist/{bison-CnRkH_JU.js → bison-B6xTjpNX.js} +1 -1
  66. package/dist/{blockEditorContent-cOt9C7eo.js → blockEditorContent-D1nEGgBO.js} +1 -1
  67. package/dist/{bnf-Du-ruhla.js → bnf-CXbb4GYO.js} +1 -1
  68. package/dist/{brainfuck-D37zTsBi.js → brainfuck-CTMWKM2q.js} +1 -1
  69. package/dist/{brightscript-DPP5EZMM.js → brightscript-CJ6W_EFd.js} +1 -1
  70. package/dist/{bro-BqXtQVr6.js → bro-3Ila_jrE.js} +1 -1
  71. package/dist/{bsl-BO8tacCG.js → bsl-BivOEl7-.js} +1 -1
  72. package/dist/{c-CFw5x5JZ.js → c-no5Fqvbl.js} +1 -1
  73. package/dist/{calendar-02PmdDke.js → calendar-PkxljIHv.js} +1 -1
  74. package/dist/{cfscript-De0_Y_kU.js → cfscript-tQn6BcLB.js} +1 -1
  75. package/dist/{chaiscript-CcC77JLd.js → chaiscript-Cb1G5I19.js} +1 -1
  76. package/dist/{cil-B5bz3YpF.js → cil-CuWYSotE.js} +1 -1
  77. package/dist/{clike-C1MxZFxV.js → clike-DCJJeiEP.js} +1 -1
  78. package/dist/{clojure-DhYfZmw7.js → clojure-CqGl9-N5.js} +1 -1
  79. package/dist/{cmake-D9vHfYuy.js → cmake-Km90jb37.js} +1 -1
  80. package/dist/{cobol-Dph8NxdA.js → cobol-Dc0dZzud.js} +1 -1
  81. package/dist/{coffeescript-agU8Kqj6.js → coffeescript-ByaASjre.js} +1 -1
  82. package/dist/{concurnas-Bwa2joZx.js → concurnas-GWhWOHTN.js} +1 -1
  83. package/dist/{contactsList-CK-Ub-Zx.js → contactsList-DMCAIG8t.js} +2 -2
  84. package/dist/{copyPreviewToClipboard-BPlno-5B.js → copyPreviewToClipboard-DfH1XzWw.js} +1 -1
  85. package/dist/{coq-CxDBlBi4.js → coq-CPYEa0aA.js} +1 -1
  86. package/dist/{core-XlbUAbYZ.js → core-w5W5R6Lc.js} +1 -1
  87. package/dist/{cpp-CKft7yX8.js → cpp-D5YZy6VH.js} +1 -1
  88. package/dist/{crystal-DkBxfyXk.js → crystal-3V4Me6so.js} +1 -1
  89. package/dist/{csharp-BPIRME4P.js → csharp-DIFgzTzp.js} +1 -1
  90. package/dist/{cshtml-CKAqsV3X.js → cshtml-BF5zEJbs.js} +1 -1
  91. package/dist/{csp-Du4bBN0_.js → csp-Cwapz65r.js} +1 -1
  92. package/dist/{css-BcUE3ZsM.js → css-B1fr86V5.js} +1 -1
  93. package/dist/{css-extras-BJ09KgQB.js → css-extras-B_QkdkZJ.js} +1 -1
  94. package/dist/{csv-Cou5edEj.js → csv-BpbiXzFC.js} +1 -1
  95. package/dist/{cypher-9LhbbKDj.js → cypher-CVIX_mQV.js} +1 -1
  96. package/dist/{d-ClSUOmLS.js → d-C9LXL0K-.js} +1 -1
  97. package/dist/{dart-BnsA4_ty.js → dart-BaWHQWIC.js} +1 -1
  98. package/dist/{dataweave-YmEHlKVZ.js → dataweave-Cyo7UWes.js} +1 -1
  99. package/dist/{dax-D5nAQ5F6.js → dax--44bFImn.js} +1 -1
  100. package/dist/{dhall-B3fZAOLl.js → dhall-DlBD-jUi.js} +1 -1
  101. package/dist/{diff-DLy29QDY.js → diff-Cc1gbVK2.js} +1 -1
  102. package/dist/{django-CrSbldUR.js → django-BP1t2Anl.js} +1 -1
  103. package/dist/{dns-zone-file-CtFEMuOX.js → dns-zone-file-BNtQQwkO.js} +1 -1
  104. package/dist/{docker-B-E0ToE-.js → docker-BFpq8PpO.js} +1 -1
  105. package/dist/{dot-CdBzbaSA.js → dot-ClzjriEI.js} +1 -1
  106. package/dist/{ebnf-D1D5vg60.js → ebnf-BjCeM8gg.js} +1 -1
  107. package/dist/{editCarrierDialog-BF_MEtYF.js → editCarrierDialog-CzeVNuKB.js} +1 -1
  108. package/dist/{editorconfig-D2y6Iwoy.js → editorconfig-Bo_cwY3M.js} +1 -1
  109. package/dist/{eiffel-XBJjC78c.js → eiffel-CvdCA5zv.js} +1 -1
  110. package/dist/{ejs-DF3ugwOn.js → ejs-C-L5am1K.js} +1 -1
  111. package/dist/{elixir-CdwBAcuv.js → elixir-Bu5e_dW3.js} +1 -1
  112. package/dist/{elm-D7ZkFDlk.js → elm-Dt-eIUOp.js} +1 -1
  113. package/dist/{erb-BslOBpn_.js → erb-C0l1xcxA.js} +1 -1
  114. package/dist/{erlang-B_jSlLLf.js → erlang-BxH-HyMJ.js} +1 -1
  115. package/dist/{etlua-CXi8GSJJ.js → etlua-WL-3b72Y.js} +1 -1
  116. package/dist/{excel-formula-BbKyyTaz.js → excel-formula-CGbMO7GW.js} +1 -1
  117. package/dist/{exportFileGeneration-DA7UASLk.js → exportFileGeneration-BuM2qOOZ.js} +1 -1
  118. package/dist/{exportImageReadiness-4Wl1xDju.js → exportImageReadiness-BChyHtH7.js} +1 -1
  119. package/dist/{exportImageReadinessNotifier-BO0VZxL3.js → exportImageReadinessNotifier-BQIBLjLi.js} +1 -1
  120. package/dist/{exportPageHtml-C-czqc38.js → exportPageHtml-CUEih2kT.js} +1 -1
  121. package/dist/exportPreviewToDocx-DmdhNLIi.js +11 -0
  122. package/dist/{exportPreviewToPdf-KlnmktUm.js → exportPreviewToPdf-BgnxneO5.js} +1 -1
  123. package/dist/{factor-D-yZIMs3.js → factor-CbVbxd_Z.js} +1 -1
  124. package/dist/{false-DOb9i3ji.js → false-B68BiBzb.js} +1 -1
  125. package/dist/{firestore-security-rules-B2-2sNY6.js → firestore-security-rules-CfaqG0NQ.js} +1 -1
  126. package/dist/{flask-conical-DDSHQ1yn.js → flask-conical-CWt2mGb-.js} +1 -1
  127. package/dist/{flow-CCHXMgtY.js → flow-GDToJGgg.js} +1 -1
  128. package/dist/{fortran-CqSIZGAu.js → fortran-BFb8M70_.js} +1 -1
  129. package/dist/{fsharp-Cm2XetEE.js → fsharp-Cz3IJvzA.js} +1 -1
  130. package/dist/{ftl-WEyin_KL.js → ftl-C7r0jwdy.js} +1 -1
  131. package/dist/{gap-JMJYFnGS.js → gap-nZHCiz6d.js} +1 -1
  132. package/dist/{gcode-CSVBE99A.js → gcode-BG-gd8Y_.js} +1 -1
  133. package/dist/{gdscript-CHE7TOim.js → gdscript-CJsDphHR.js} +1 -1
  134. package/dist/{gedcom-CWJP9AfG.js → gedcom-XpZDMSQa.js} +1 -1
  135. package/dist/{gherkin-CMonWSJG.js → gherkin-4o12jBh0.js} +1 -1
  136. package/dist/{git-B3U45h9J.js → git-DqUzBp5y.js} +1 -1
  137. package/dist/{glsl-Cw0-bHjJ.js → glsl-zoWRZd14.js} +1 -1
  138. package/dist/{gml-Py3ZFki8.js → gml-DvZWRVGG.js} +1 -1
  139. package/dist/{gn-Bm6KSHsv.js → gn-DviKGHoX.js} +1 -1
  140. package/dist/{go-CRESNpIM.js → go-Cjl3WpBc.js} +1 -1
  141. package/dist/{go-module-DlJCF8nt.js → go-module-seJpKDgV.js} +1 -1
  142. package/dist/{graphql-Cd64pOlI.js → graphql-CpAIvjIa.js} +1 -1
  143. package/dist/{groovy-CwPa9gky.js → groovy-AH2LbWfD.js} +1 -1
  144. package/dist/{haml-Dy-B4CV8.js → haml-CQfvgHRO.js} +1 -1
  145. package/dist/{handlebars-BGMdDUmk.js → handlebars-B9l3Wpz_.js} +1 -1
  146. package/dist/{haskell-Bhp-FYFX.js → haskell-OkYtDV3S.js} +1 -1
  147. package/dist/{haxe-D_99z3rU.js → haxe-CAAXktF5.js} +1 -1
  148. package/dist/{hcl-BCAspB6T.js → hcl-DqDc8hUc.js} +1 -1
  149. package/dist/{highlighter-441tq1jK.js → highlighter-uQf0zbY_.js} +1 -1
  150. package/dist/{hlsl-B_pdIiMk.js → hlsl-oyThU7ft.js} +1 -1
  151. package/dist/{hoon-07ovtuiU.js → hoon-CRrl-26u.js} +1 -1
  152. package/dist/{hpkp-W4BuprmQ.js → hpkp-BflFnPYZ.js} +1 -1
  153. package/dist/{hsts-DX-mHqTJ.js → hsts-B66Je8O6.js} +1 -1
  154. package/dist/{http-BSev006D.js → http-t1sdUjh3.js} +1 -1
  155. package/dist/{ichigojam-DEk_NDyG.js → ichigojam-Bt9z0Hca.js} +1 -1
  156. package/dist/{icon-B2HAqUBb.js → icon-BPBTXowp.js} +1 -1
  157. package/dist/{icu-message-format-B2JxwObX.js → icu-message-format-DSeU6TcY.js} +1 -1
  158. package/dist/{idris-CD2ULo-B.js → idris-FrPZR4S3.js} +1 -1
  159. package/dist/{iecst-CTZWm0B7.js → iecst-CzDmz-8l.js} +1 -1
  160. package/dist/{ignore-8xTZfnaS.js → ignore-DBQMP_9p.js} +1 -1
  161. package/dist/{image-plus-Cxd1cv2I.js → image-plus-DUzVnWlE.js} +1 -1
  162. package/dist/index-2Y8RyUUb.js +1 -0
  163. package/dist/{index-R3_hNUp4.js → index-84cYZci4.js} +1 -1
  164. package/dist/{index-BWo2BOVk.js → index-8nVM9x6B.js} +1 -1
  165. package/dist/{index-6kUcFkJW.js → index-BkFMiqmU.js} +1 -1
  166. package/dist/{index-YLVniasz.js → index-C1kBWd99.js} +1 -1
  167. package/dist/{index-C_WHCLsg.js → index-DSWFIHbs.js} +1 -1
  168. package/dist/{index-DrGP2qXK.js → index-e7HUrljT.js} +1 -1
  169. package/dist/{index.client-BZTm8pIw.js → index.client-GQRx0OMi.js} +1 -1
  170. package/dist/index.js +1 -1
  171. package/dist/{inform7-DueUu6rk.js → inform7-C6SiIj7W.js} +1 -1
  172. package/dist/{ini-CoDI_qlY.js → ini-Fr9btpcc.js} +1 -1
  173. package/dist/{io-fN8n-AP3.js → io-Bob9mDaD.js} +1 -1
  174. package/dist/{j-Dzgq0Buv.js → j-B8dEhV_3.js} +1 -1
  175. package/dist/{java-jqu-OOA_.js → java-BRhuUgBQ.js} +1 -1
  176. package/dist/{javadoc-BuGGe5ry.js → javadoc-DOtq9hu9.js} +1 -1
  177. package/dist/{javadoclike-DwTlhFDH.js → javadoclike-DdvcIp5c.js} +1 -1
  178. package/dist/{javascript-C3W8zrcF.js → javascript-DjCtgtHd.js} +1 -1
  179. package/dist/{javastacktrace-CWg-Pa3I.js → javastacktrace-CRnD6qjT.js} +1 -1
  180. package/dist/{jexl-Bja4nDpf.js → jexl-D2hNAUPD.js} +1 -1
  181. package/dist/{jolie-DY3cCr_F.js → jolie-BmJdWAqP.js} +1 -1
  182. package/dist/{jq-vNnhuOTn.js → jq-CB5fve13.js} +1 -1
  183. package/dist/{js-extras-DP7VhKsg.js → js-extras-BcsagNBl.js} +1 -1
  184. package/dist/{js-templates-D8mthNgM.js → js-templates-Cs-UwghW.js} +1 -1
  185. package/dist/{jsdoc-DO5-FB8p.js → jsdoc-DCFwomVu.js} +1 -1
  186. package/dist/{json-C_a_Br3c.js → json-BWwP_c9r.js} +1 -1
  187. package/dist/{json5-Dec96vpd.js → json5-D4AkXLfp.js} +1 -1
  188. package/dist/{jsonp-By5Gxzzn.js → jsonp-BVJ57hNd.js} +1 -1
  189. package/dist/{jsstacktrace-CgA1Llt8.js → jsstacktrace-DF1BG-6t.js} +1 -1
  190. package/dist/{jsx-C7LWr5Sh.js → jsx-p2U-maPb.js} +1 -1
  191. package/dist/{julia-DYcw0cnQ.js → julia-eQkeC69T.js} +1 -1
  192. package/dist/{keepalived-f7FSwY1z.js → keepalived-CUG7G0mi.js} +1 -1
  193. package/dist/{keyman-Dnl8Nym1.js → keyman-C6vmqb2_.js} +1 -1
  194. package/dist/{kotlin-KeQ0Z08j.js → kotlin-D3scGj4w.js} +1 -1
  195. package/dist/{kumir-BOwHYDAq.js → kumir-Br-WkaJ4.js} +1 -1
  196. package/dist/{kusto-BKwn9HVH.js → kusto-DnN0RUdO.js} +1 -1
  197. package/dist/{latex-Cpvy-fni.js → latex-BLdkNxqO.js} +1 -1
  198. package/dist/{latte-DLkvN2Fo.js → latte-CW4G1zTA.js} +1 -1
  199. package/dist/{less-DucSAs6Z.js → less-m_ARghRW.js} +1 -1
  200. package/dist/{lilypond-baEut3Yc.js → lilypond-DH8H77lm.js} +1 -1
  201. package/dist/{link-2-off-CRRdCIWH.js → link-2-off-BHPhQ9Fe.js} +1 -1
  202. package/dist/{liquid-Dd_2KKW1.js → liquid-Blr_8-qk.js} +1 -1
  203. package/dist/{lisp-AbOq_6XD.js → lisp-BqsiTR2E.js} +1 -1
  204. package/dist/{livescript-CYPuBnBo.js → livescript-Cay_5G59.js} +1 -1
  205. package/dist/{llvm-g_Mdy3-l.js → llvm-DBd2wh_h.js} +1 -1
  206. package/dist/{lock-keyhole-B7cNJP1K.js → lock-keyhole-DwB0jZb9.js} +1 -1
  207. package/dist/{log-Bxuef6Y9.js → log-C8w6K6wl.js} +1 -1
  208. package/dist/{lolcode-B_U88kLR.js → lolcode-iGOFDZ_X.js} +1 -1
  209. package/dist/{lua-BR-YKvEK.js → lua-D-jcgxc2.js} +1 -1
  210. package/dist/{lucide-react-BfKVTZBH.js → lucide-react-DsSIoNqg.js} +1 -1
  211. package/dist/{luckyexcel.umd-T33gDMcN.js → luckyexcel.umd-BG7RRWQ5.js} +1 -1
  212. package/dist/{magma-CHGsJ6zT.js → magma-DLRE9-xS.js} +1 -1
  213. package/dist/{makefile-CweqTgeS.js → makefile-DsrO7LlY.js} +1 -1
  214. package/dist/{markdown-C6Tm-KI8.js → markdown-B12EBN01.js} +1 -1
  215. package/dist/{markup-BBHJPzJ7.js → markup-LrzcDNW8.js} +1 -1
  216. package/dist/{markup-templating-B5Z2Tp0_.js → markup-templating-nC_itgyL.js} +1 -1
  217. package/dist/{matlab-VG8lyYFX.js → matlab-DhcXQFba.js} +1 -1
  218. package/dist/{maxscript-gh8_fxpu.js → maxscript-Co5q3OgH.js} +1 -1
  219. package/dist/{mel-BOnmF1j6.js → mel-vmbnSIgQ.js} +1 -1
  220. package/dist/{mermaid-CWHODlvN.js → mermaid-EwbUHH4M.js} +1 -1
  221. package/dist/{mizar-BwnEAj97.js → mizar-CZwkP8jy.js} +1 -1
  222. package/dist/{mongodb-DBkJe0GZ.js → mongodb-Ch4SGrq-.js} +1 -1
  223. package/dist/{monkey-DnqwFLVO.js → monkey-C2J3hVzP.js} +1 -1
  224. package/dist/{moonscript-DDtzqF4a.js → moonscript-C-2xibE0.js} +1 -1
  225. package/dist/{n1ql-BizhBCmD.js → n1ql-BCBNajHv.js} +1 -1
  226. package/dist/{n4js-CUe7hC9p.js → n4js-DClkyRxs.js} +1 -1
  227. package/dist/{nand2tetris-hdl-DaYgBa5Y.js → nand2tetris-hdl-BTp87epa.js} +1 -1
  228. package/dist/{naniscript-DuPm9JSf.js → naniscript-NuCtVWm7.js} +1 -1
  229. package/dist/{nasm-BVOeqDGV.js → nasm-BZ6SYlkU.js} +1 -1
  230. package/dist/{neon-CjemA2Bi.js → neon-BYsn9jCF.js} +1 -1
  231. package/dist/{nevod-CF3pgy8F.js → nevod-zX25Ysu2.js} +1 -1
  232. package/dist/{nginx-CDt8ECeL.js → nginx-C2D0GaUm.js} +1 -1
  233. package/dist/{nim-h7nlTJBY.js → nim-DDmqYoBT.js} +1 -1
  234. package/dist/{nix-BMZuRgvT.js → nix-_jr8pJ0L.js} +1 -1
  235. package/dist/{nsis-C39cLmRH.js → nsis-D4lk0dWC.js} +1 -1
  236. package/dist/{objectivec-BasNhCfW.js → objectivec-Bd86oCR5.js} +1 -1
  237. package/dist/{ocaml-Bz0i_9U5.js → ocaml-05E82WIs.js} +1 -1
  238. package/dist/{opencl-B8b1nrqo.js → opencl-D-lnL4Ka.js} +1 -1
  239. package/dist/{openqasm-gA_A6qTU.js → openqasm-tW7dB7Ok.js} +1 -1
  240. package/dist/{oz-DZZpkMxi.js → oz-CpVsHe1y.js} +1 -1
  241. package/dist/{paintbrush-CIJANl9X.js → paintbrush-eIDj_RdR.js} +1 -1
  242. package/dist/{parigp-BPpbFJD0.js → parigp-BFdKZdJh.js} +1 -1
  243. package/dist/{parser-iLqczBqj.js → parser-DylJx2dB.js} +1 -1
  244. package/dist/{pascal-B_PpK-ey.js → pascal-DO_yNDsU.js} +1 -1
  245. package/dist/{pascaligo-Cc316Ttp.js → pascaligo-Cy8JmO2T.js} +1 -1
  246. package/dist/{pcaxis-B4MVInmN.js → pcaxis-Cn7ts8I6.js} +1 -1
  247. package/dist/{pen-tool-BZ7oBmmm.js → pen-tool-jnH1CIVs.js} +1 -1
  248. package/dist/{peoplecode-D4Z7F_r1.js → peoplecode-D14_7kks.js} +1 -1
  249. package/dist/{perl-BmSnj-ms.js → perl-CQbEbnsW.js} +1 -1
  250. package/dist/{php-CZ7qz_-j.js → php-Dv63Fhqp.js} +1 -1
  251. package/dist/{php-extras-D4XDXj0-.js → php-extras-E60iRxnG.js} +1 -1
  252. package/dist/{phpdoc-Cy2E2X92.js → phpdoc-DG78xdiU.js} +1 -1
  253. package/dist/{plsql-Cho2eUl5.js → plsql-DDIobotk.js} +1 -1
  254. package/dist/{plyr-i92w2Po_.js → plyr-Qgwtxz_a.js} +1 -1
  255. package/dist/{powerquery-Bx-rg-KZ.js → powerquery-Bo0ST1Q7.js} +1 -1
  256. package/dist/{powershell-Cw9A2ApR.js → powershell-CCaOVj_7.js} +1 -1
  257. package/dist/{processing-B5mBZDw1.js → processing-C6rjr_GE.js} +1 -1
  258. package/dist/{prolog-C1NuTUpu.js → prolog-D8kZVdIf.js} +1 -1
  259. package/dist/{promql-60fY9Aso.js → promql-C2vFBCxB.js} +1 -1
  260. package/dist/{properties-BXbdOpHi.js → properties-sH59kCni.js} +1 -1
  261. package/dist/{protobuf-CC5qtSJR.js → protobuf-fkPop9A-.js} +1 -1
  262. package/dist/{psl-DX0tPo7w.js → psl-B7wWmAdS.js} +1 -1
  263. package/dist/{pug-4-ocmX35.js → pug-BX0N9FDq.js} +1 -1
  264. package/dist/{puppet-BT1z7kcN.js → puppet-DEEVYPS9.js} +1 -1
  265. package/dist/{pure-D0OiKGj6.js → pure-BrWbl_0Y.js} +1 -1
  266. package/dist/{purebasic-BWaSafG1.js → purebasic-CjrSCmL1.js} +1 -1
  267. package/dist/{purescript-CRYiIpnF.js → purescript-BKiZSJaC.js} +1 -1
  268. package/dist/{python-DZBAdGLL.js → python-BjeQqNGg.js} +1 -1
  269. package/dist/{q-D5IjA1Ol.js → q-kUDLAlA-.js} +1 -1
  270. package/dist/{qml-DB2Z7DpA.js → qml-BdyXeaJv.js} +1 -1
  271. package/dist/{qore-CLAh8KDF.js → qore-C0JGwZ1t.js} +1 -1
  272. package/dist/{qsharp-Vl3HQ8Qq.js → qsharp-J2ckxbb8.js} +1 -1
  273. package/dist/{quill-D6tZgwKV.js → quill-DAPYjegM.js} +1 -1
  274. package/dist/{r-t_LsUost.js → r-MrM3knKt.js} +1 -1
  275. package/dist/{racket-BDrpf7nM.js → racket-DmULNk03.js} +1 -1
  276. package/dist/{reason-D_cZoCzn.js → reason-YBJB8xVH.js} +1 -1
  277. package/dist/{regex-Ca5wx86p.js → regex-Bco5sMcd.js} +1 -1
  278. package/dist/{rego-C-7c5YvT.js → rego-Y_l5nrxl.js} +1 -1
  279. package/dist/{renpy-DGDc5wN5.js → renpy-ByRZc0ri.js} +1 -1
  280. package/dist/{rest-BPNhntCy.js → rest-ejEoytjA.js} +1 -1
  281. package/dist/{rip-OSGh86kz.js → rip-DhWnrC0k.js} +1 -1
  282. package/dist/{roboconf-Dgh5mDfF.js → roboconf-BPwLWxtN.js} +1 -1
  283. package/dist/{robotframework-C5oRcK0f.js → robotframework-DIz_rqvo.js} +1 -1
  284. package/dist/{ruby-B_sT9GDm.js → ruby-DgYlOhdN.js} +1 -1
  285. package/dist/{runtime-CmCxTPcG.js → runtime-Ci9GR285.js} +73 -73
  286. package/dist/{rust--xL3MCB-.js → rust-wLe-ezDd.js} +1 -1
  287. package/dist/{sas-aammKV-k.js → sas-DeOyIN8s.js} +1 -1
  288. package/dist/{sass-CHqAEQwn.js → sass-DqCyjbBh.js} +1 -1
  289. package/dist/{scala-DucSWkkP.js → scala-obYmEMLB.js} +1 -1
  290. package/dist/{scheme-iWJJ-nH7.js → scheme-BCSePnXj.js} +1 -1
  291. package/dist/{scss-B7pyOktR.js → scss-CLAQe07V.js} +1 -1
  292. package/dist/{shell-session-CaqRxvUF.js → shell-session-FeVZkDVF.js} +1 -1
  293. package/dist/{smali-2G5Vuu3V.js → smali-Cu0SA_Ws.js} +1 -1
  294. package/dist/{smalltalk-BazKDF6i.js → smalltalk-D4fnCBcP.js} +1 -1
  295. package/dist/{smarty-RSEi9pUM.js → smarty-79tfgjHe.js} +1 -1
  296. package/dist/{sml-CsJwG_fK.js → sml-DD3frLiP.js} +1 -1
  297. package/dist/{solidity-Bb59Ybi4.js → solidity-DIlzHC81.js} +1 -1
  298. package/dist/{solution-file-C0rt2MvJ.js → solution-file-ZL6hMlAv.js} +1 -1
  299. package/dist/{soy-DwQYJn0W.js → soy-Dd2pbPUV.js} +1 -1
  300. package/dist/{sparql-BLfNsnWA.js → sparql-D8alTLZm.js} +1 -1
  301. package/dist/{splunk-spl-Byhm5va6.js → splunk-spl-Ctxd9pfy.js} +1 -1
  302. package/dist/{sqf-DlW26CQZ.js → sqf-C_IOLqrG.js} +1 -1
  303. package/dist/{sql-DwtGS7_-.js → sql-DSHakvQ8.js} +1 -1
  304. package/dist/{squirrel-B-h9OoVn.js → squirrel-6yMYW4SQ.js} +1 -1
  305. package/dist/{stan-C7Us-xct.js → stan-CWKCsUlm.js} +1 -1
  306. package/dist/{stylus-HiFoP3lR.js → stylus-AaWGXwny.js} +1 -1
  307. package/dist/{swift-C6O0K3cr.js → swift-_OcTTkBW.js} +1 -1
  308. package/dist/{systemd-WKo8IJb_.js → systemd-oSqsWqJu.js} +1 -1
  309. package/dist/{t4-cs-9B75PUaO.js → t4-cs-ClTDsC7e.js} +1 -1
  310. package/dist/{t4-templating-3AaQt0Rg.js → t4-templating-B5xkISD3.js} +1 -1
  311. package/dist/{t4-vb-_1wshNmA.js → t4-vb-1-8jAItU.js} +1 -1
  312. package/dist/{table-IRLCsgqL.js → table-CQq2gtQo.js} +1 -1
  313. package/dist/{tap-Bcc-gHEd.js → tap-Bz-JuHqW.js} +1 -1
  314. package/dist/{tcl-BJ0FZNNi.js → tcl-D4CgysPw.js} +1 -1
  315. package/dist/{templateSelectorDialog-BRjELyqr.js → templateSelectorDialog-DJJfHonc.js} +2 -2
  316. package/dist/{textile-DZqhamv_.js → textile-CRt4MOq_.js} +1 -1
  317. package/dist/{toml-DmFxN3l0.js → toml-_nBQCS98.js} +1 -1
  318. package/dist/{tremor-DNmdkIBv.js → tremor-ChZrLM1N.js} +1 -1
  319. package/dist/{tsx-CariDELU.js → tsx-8ra1xGPq.js} +1 -1
  320. package/dist/{tt2-C_kmHBBP.js → tt2-B5LWQbnM.js} +1 -1
  321. package/dist/{turtle-txGLM34c.js → turtle-LpZRmWuv.js} +1 -1
  322. package/dist/{twig-DEmk9H21.js → twig-CoIbzwlB.js} +1 -1
  323. package/dist/{typescript-DhCgI4JK.js → typescript-CE3abAdV.js} +1 -1
  324. package/dist/{typoscript-DnBC3QxX.js → typoscript--qQ14awL.js} +1 -1
  325. package/dist/{unrealscript-Dci4Rzp_.js → unrealscript-Ds2zCaUU.js} +1 -1
  326. package/dist/{uorazor-CLCs2cHr.js → uorazor-BNtXpYIS.js} +1 -1
  327. package/dist/{uri-d6gVm8_M.js → uri-BdvOBqT_.js} +1 -1
  328. package/dist/{usePromptLibraryMutations-Dx5EuhNe.js → usePromptLibraryMutations-5UkGPHSr.js} +1 -1
  329. package/dist/{useSupabaseBlobUrl-CZEHC8pz.js → useSupabaseBlobUrl-CzvfbetS.js} +1 -1
  330. package/dist/{useTermsNotice-od1AmOy2.js → useTermsNotice-Ci0pdx6X.js} +1 -1
  331. package/dist/{user-plus-DVsnHI-R.js → user-plus-DZ2htt41.js} +1 -1
  332. package/dist/{user-round-plus-C2gqc2hE.js → user-round-plus-DucQhHUw.js} +1 -1
  333. package/dist/{v-C5dc3G6U.js → v-BWoiS-LT.js} +1 -1
  334. package/dist/{vala-DaL4_Q-N.js → vala-CqHhqRIp.js} +1 -1
  335. package/dist/{vbnet-D0nNv7JA.js → vbnet-CIINH4_H.js} +1 -1
  336. package/dist/{velocity-CfvW_puR.js → velocity-DamV719W.js} +1 -1
  337. package/dist/{verilog-CdexlNsQ.js → verilog-D3-q39p6.js} +1 -1
  338. package/dist/{vhdl-DySAauQR.js → vhdl-DADT_sb4.js} +1 -1
  339. package/dist/{vim-BS2kEc2C.js → vim-CpnSv6BY.js} +1 -1
  340. package/dist/{visual-basic-CEpLNNJl.js → visual-basic-BvbVpzfn.js} +1 -1
  341. package/dist/{warpscript-ByJ4S8Av.js → warpscript-Cb7wms7m.js} +1 -1
  342. package/dist/{wasm-CUJWh_iS.js → wasm-Co43wBb3.js} +1 -1
  343. package/dist/{web-idl-D8cyxiGY.js → web-idl-CBZR4wvg.js} +1 -1
  344. package/dist/{wiki-BlZ3iWQV.js → wiki-9cChrwrT.js} +1 -1
  345. package/dist/{wolfram-dL66kdZb.js → wolfram-DfMWuNtc.js} +1 -1
  346. package/dist/{wren-Dhbo6G_f.js → wren-C_HPexL-.js} +1 -1
  347. package/dist/{xeora-ANxX-fz4.js → xeora-DIY6JfnM.js} +1 -1
  348. package/dist/{xml-doc-iGF_UzWF.js → xml-doc-BJv4o8mL.js} +1 -1
  349. package/dist/{xojo-1doHCbEE.js → xojo-fl7bKKLX.js} +1 -1
  350. package/dist/{xquery-DyQqKWCI.js → xquery-BdGO7X0x.js} +1 -1
  351. package/dist/{yaml-D2bLfk93.js → yaml-BK2f_eRC.js} +1 -1
  352. package/dist/{yang-B_5hkDxG.js → yang-BRIPwcT0.js} +1 -1
  353. package/dist/{zig-B0MwwVjC.js → zig-YHQJV1Jx.js} +1 -1
  354. package/package.json +2 -2
  355. package/dist/exportPreviewToDocx-DUGQxvzp.js +0 -11
  356. package/dist/index-DcbNiowT.js +0 -1
@@ -1 +1 @@
1
- import{dA as g}from"./runtime-CmCxTPcG.js";import{r as f}from"./ruby-3lCor9Ik.js";import{r as d}from"./markup-templating-RD0xxf_6.js";function b(a,o){for(var n=0;n<o.length;n++){const r=o[n];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in a)){const t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(a,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var i,s;function c(){if(s)return i;s=1;var a=f(),o=d();i=n,n.displayName="erb",n.aliases=[];function n(r){r.register(a),r.register(o),(function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){var l=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;e.languages["markup-templating"].buildPlaceholders(t,"erb",l)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})})(r)}return i}var u=c();const p=g(u),m=b({__proto__:null,default:p},[u]);export{m as e};
1
+ import{dA as g}from"./runtime-Ci9GR285.js";import{r as f}from"./ruby-3lCor9Ik.js";import{r as d}from"./markup-templating-RD0xxf_6.js";function b(a,o){for(var n=0;n<o.length;n++){const r=o[n];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in a)){const t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(a,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var i,s;function c(){if(s)return i;s=1;var a=f(),o=d();i=n,n.displayName="erb",n.aliases=[];function n(r){r.register(a),r.register(o),(function(e){e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){var l=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;e.languages["markup-templating"].buildPlaceholders(t,"erb",l)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})})(r)}return i}var u=c();const p=g(u),m=b({__proto__:null,default:p},[u]);export{m as e};
@@ -1 +1 @@
1
- import{dA as d}from"./runtime-CmCxTPcG.js";function f(e,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,b;function u(){if(b)return i;b=1,i=e,e.displayName="erlang",e.aliases=[];function e(n){n.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return i}var l=u();const s=d(l),c=f({__proto__:null,default:s},[l]);export{c as e};
1
+ import{dA as d}from"./runtime-Ci9GR285.js";function f(e,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,b;function u(){if(b)return i;b=1,i=e,e.displayName="erlang",e.aliases=[];function e(n){n.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return i}var l=u();const s=d(l),c=f({__proto__:null,default:s},[l]);export{c as e};
@@ -1 +1 @@
1
- import{dA as f}from"./runtime-CmCxTPcG.js";import{r as g}from"./lua-BeIBSVZf.js";import{r as c}from"./markup-templating-RD0xxf_6.js";function p(n,o){for(var r=0;r<o.length;r++){const t=o[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in n)){const a=Object.getOwnPropertyDescriptor(t,e);a&&Object.defineProperty(n,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var i,l;function d(){if(l)return i;l=1;var n=g(),o=c();i=r,r.displayName="etlua",r.aliases=[];function r(t){t.register(n),t.register(o),(function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(a){var s=/<%[\s\S]+?%>/g;e.languages["markup-templating"].buildPlaceholders(a,"etlua",s)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"etlua")})})(t)}return i}var u=d();const m=f(u),y=p({__proto__:null,default:m},[u]);export{y as e};
1
+ import{dA as f}from"./runtime-Ci9GR285.js";import{r as g}from"./lua-BeIBSVZf.js";import{r as c}from"./markup-templating-RD0xxf_6.js";function p(n,o){for(var r=0;r<o.length;r++){const t=o[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in n)){const a=Object.getOwnPropertyDescriptor(t,e);a&&Object.defineProperty(n,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var i,l;function d(){if(l)return i;l=1;var n=g(),o=c();i=r,r.displayName="etlua",r.aliases=[];function r(t){t.register(n),t.register(o),(function(e){e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(a){var s=/<%[\s\S]+?%>/g;e.languages["markup-templating"].buildPlaceholders(a,"etlua",s)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"etlua")})})(t)}return i}var u=d();const m=f(u),y=p({__proto__:null,default:m},[u]);export{y as e};
@@ -1 +1 @@
1
- import{dA as u}from"./runtime-CmCxTPcG.js";function d(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,l;function p(){if(l)return i;l=1,i=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return i}var s=p();const c=u(s),b=d({__proto__:null,default:c},[s]);export{b as e};
1
+ import{dA as u}from"./runtime-Ci9GR285.js";function d(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,l;function p(){if(l)return i;l=1,i=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return i}var s=p();const c=u(s),b=d({__proto__:null,default:c},[s]);export{b as e};
@@ -1 +1 @@
1
- import{d7 as o,d8 as t}from"./runtime-CmCxTPcG.js";async function f({fileType:n,artifactContent:l,artifactName:a,pdfBlobGenerator:r,fileGenerators:e}){return n==="PDF"?r?r():e!=null&&e.generatePdf?e.generatePdf():null:n==="DOC"?l?o(l,a):e!=null&&e.generateWord?e.generateWord():null:n==="EXCEL_SINGLE"?l?t(l,a,"single"):e!=null&&e.generateExcel?e.generateExcel("single"):null:n==="EXCEL_MULTI"?l?t(l,a,"separate"):e!=null&&e.generateExcel?e.generateExcel("separate"):null:null}export{f as g};
1
+ import{d7 as o,d8 as t}from"./runtime-Ci9GR285.js";async function f({fileType:n,artifactContent:l,artifactName:a,pdfBlobGenerator:r,fileGenerators:e}){return n==="PDF"?r?r():e!=null&&e.generatePdf?e.generatePdf():null:n==="DOC"?l?o(l,a):e!=null&&e.generateWord?e.generateWord():null:n==="EXCEL_SINGLE"?l?t(l,a,"single"):e!=null&&e.generateExcel?e.generateExcel("single"):null:n==="EXCEL_MULTI"?l?t(l,a,"separate"):e!=null&&e.generateExcel?e.generateExcel("separate"):null:null}export{f as g};
@@ -1 +1 @@
1
- import{dV as v,dW as R,dX as h,dY as p,dZ as E,d_ as T,d$ as S,e0 as W,e1 as A}from"./runtime-CmCxTPcG.js";import{e2 as B,e3 as P,e4 as D,d6 as $,dR as F}from"./runtime-CmCxTPcG.js";function G(){let n;const e=()=>(n??(n=import("./exportImageReadinessNotifier-BO0VZxL3.js").then(t=>t.createToastExportReadinessNotifier())),n),a=t=>{console.warn("Export readiness: could not show the image-loading notice",t)};return{showWaiting:(t,s)=>{e().then(o=>o.showWaiting(t,s)).catch(a)},dismissWaiting:()=>{e().then(t=>t.dismissWaiting()).catch(a)},confirmFailedImages:(t,s)=>e().then(o=>o.confirmFailedImages(t,s))}}function H(n,e){console.warn(`Export readiness: ${n} canvas image load(s) not tied to the exported pages still pending after ${e} ms \u2014 not holding the export for them`),import("./index.client-BZTm8pIw.js").then(({addBreadcrumb:a})=>a({category:"export",level:"warning",message:"export readiness: tracker-only bound hit",data:{trackerCount:n,boundMs:e}})).catch(()=>{})}const L=250,Y=1500,w=8e3;function X(n){const e=n.deps??{};return{getTrackerCount:e.getTrackerCount??A,reportTrackerBoundHit:e.reportTrackerBoundHit??(a=>H(a,w)),subscribeTracker:e.subscribeTracker??W,collectCanvasState:e.collectCanvasState??(a=>R(a)),notifier:e.notifier??G()}}function Z(n,e,a,t){return new Promise((s,o)=>{const i=[];let g=!1,C=!1,I=!1,u=!1,x="";const f=r=>{g||(g=!0,i.forEach(d=>d()),u&&e.notifier.dismissWaiting(),r?o(r):s())},_=()=>f(new T),c=()=>{if(!g)try{const r=p(n,e.collectCanvasState),d=r.pending.length+r.loadingImgCount,O=d+r.loadingMarkerCount,l=e.getTrackerCount(),k=l>0&&!I;if(O===0&&!k){l>0&&e.reportTrackerBoundHit(l),f();return}if(!C)return;const m={count:Math.max(d,r.loadingMarkerCount,k?l:0),names:E(r.pending)},b=`${m.count}|${m.names.join("|")}`;if(u&&b===x)return;u=!0,x=b,e.notifier.showWaiting(m,_)}catch(r){f(r instanceof Error?r:new Error(String(r)))}},y=setInterval(c,a);i.push(()=>clearInterval(y));const N=setTimeout(()=>{C=!0,c()},t);i.push(()=>clearTimeout(N));const M=setTimeout(()=>{I=!0,c()},w);i.push(()=>clearTimeout(M)),i.push(e.subscribeTracker(c)),c()})}async function j(n,e={}){const a=X(e);await Z(n,a,e.pollIntervalMs??L,e.noticeDelayMs??Y);const{failed:t,failedByCanvas:s}=p(n,a.collectCanvasState);if(t.length!==0){if(!await a.notifier.confirmFailedImages(E(t),t.length))throw new T("Export cancelled: some photos could not be loaded");s.forEach((o,i)=>S(i,o))}}function K(n,e){const a=v(n);if(!a)return;const{pending:t,failed:s}=(e??R)(a);if(t.length>0)throw new h(t);const o=s.filter(i=>!i.acknowledged);if(o.length>0)throw new h(o,"failed")}export{B as EXPORT_IMAGE_LOADING_ATTR,P as EXPORT_LAZY_PENDING_ATTR,T as ExportCancelledError,h as ExportImageNotReadyError,w as TRACKER_ONLY_BOUND_MS,K as assertCanvasImagesSettled,j as awaitExportImagesReady,D as describePendingImages,v as fabricCanvasOf,E as imageNamesOf,$ as isExportCancelledError,F as isExportImageNotReadyError,p as snapshotPageImages};
1
+ import{dV as v,dW as R,dX as h,dY as p,dZ as E,d_ as T,d$ as S,e0 as W,e1 as A}from"./runtime-Ci9GR285.js";import{e2 as B,e3 as P,e4 as D,d6 as $,dR as F}from"./runtime-Ci9GR285.js";function G(){let n;const e=()=>(n??(n=import("./exportImageReadinessNotifier-BQIBLjLi.js").then(t=>t.createToastExportReadinessNotifier())),n),a=t=>{console.warn("Export readiness: could not show the image-loading notice",t)};return{showWaiting:(t,s)=>{e().then(o=>o.showWaiting(t,s)).catch(a)},dismissWaiting:()=>{e().then(t=>t.dismissWaiting()).catch(a)},confirmFailedImages:(t,s)=>e().then(o=>o.confirmFailedImages(t,s))}}function H(n,e){console.warn(`Export readiness: ${n} canvas image load(s) not tied to the exported pages still pending after ${e} ms \u2014 not holding the export for them`),import("./index.client-GQRx0OMi.js").then(({addBreadcrumb:a})=>a({category:"export",level:"warning",message:"export readiness: tracker-only bound hit",data:{trackerCount:n,boundMs:e}})).catch(()=>{})}const L=250,Y=1500,w=8e3;function X(n){const e=n.deps??{};return{getTrackerCount:e.getTrackerCount??A,reportTrackerBoundHit:e.reportTrackerBoundHit??(a=>H(a,w)),subscribeTracker:e.subscribeTracker??W,collectCanvasState:e.collectCanvasState??(a=>R(a)),notifier:e.notifier??G()}}function Z(n,e,a,t){return new Promise((s,o)=>{const i=[];let g=!1,C=!1,I=!1,u=!1,x="";const f=r=>{g||(g=!0,i.forEach(d=>d()),u&&e.notifier.dismissWaiting(),r?o(r):s())},_=()=>f(new T),c=()=>{if(!g)try{const r=p(n,e.collectCanvasState),d=r.pending.length+r.loadingImgCount,O=d+r.loadingMarkerCount,l=e.getTrackerCount(),k=l>0&&!I;if(O===0&&!k){l>0&&e.reportTrackerBoundHit(l),f();return}if(!C)return;const m={count:Math.max(d,r.loadingMarkerCount,k?l:0),names:E(r.pending)},b=`${m.count}|${m.names.join("|")}`;if(u&&b===x)return;u=!0,x=b,e.notifier.showWaiting(m,_)}catch(r){f(r instanceof Error?r:new Error(String(r)))}},y=setInterval(c,a);i.push(()=>clearInterval(y));const N=setTimeout(()=>{C=!0,c()},t);i.push(()=>clearTimeout(N));const M=setTimeout(()=>{I=!0,c()},w);i.push(()=>clearTimeout(M)),i.push(e.subscribeTracker(c)),c()})}async function j(n,e={}){const a=X(e);await Z(n,a,e.pollIntervalMs??L,e.noticeDelayMs??Y);const{failed:t,failedByCanvas:s}=p(n,a.collectCanvasState);if(t.length!==0){if(!await a.notifier.confirmFailedImages(E(t),t.length))throw new T("Export cancelled: some photos could not be loaded");s.forEach((o,i)=>S(i,o))}}function K(n,e){const a=v(n);if(!a)return;const{pending:t,failed:s}=(e??R)(a);if(t.length>0)throw new h(t);const o=s.filter(i=>!i.acknowledged);if(o.length>0)throw new h(o,"failed")}export{B as EXPORT_IMAGE_LOADING_ATTR,P as EXPORT_LAZY_PENDING_ATTR,T as ExportCancelledError,h as ExportImageNotReadyError,w as TRACKER_ONLY_BOUND_MS,K as assertCanvasImagesSettled,j as awaitExportImagesReady,D as describePendingImages,v as fabricCanvasOf,E as imageNamesOf,$ as isExportCancelledError,F as isExportImageNotReadyError,p as snapshotPageImages};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import{createRoot as f}from"react-dom/client";import{cy as g,dD as h,dE as x}from"./runtime-CmCxTPcG.js";const a=3;function r(t){return t.length<=1?t[0]??"":t.length>a?`${t.slice(0,a).join(", ")} and ${t.length-a} more`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`}const l=t=>t===1?"image":"images";function d(t){const i=r(t.names),n="The export continues as soon as they finish.";return{title:`Waiting for ${t.count} ${l(t.count)} to finish loading\u2026`,description:i?`Still loading: ${i}. ${n}`:n}}function m(t,i){const n=r(t);return{title:n?`Couldn't load photo for ${n}`:`Couldn't load ${i} ${l(i)}`,description:"Export anyway to use a placeholder in its place, or cancel and try again once the photo is available."}}function $(t,i){return typeof document>"u"?Promise.resolve(!1):new Promise(n=>{const o=document.createElement("div");document.body.appendChild(o);const e=f(o);let s=!1;const c=p=>{s||(s=!0,n(p),setTimeout(()=>{e.unmount(),o.remove()},0))};e.render(u(h,{isOpen:!0,onClose:()=>c(!1),onConfirm:()=>c(!0),title:t,description:i,confirmText:"Export anyway",cancelText:"Cancel export",confirmVariant:"primary",closeOnOutsideClick:!1,"data-testid":"export-failed-images-dialog"}))})}function y(){let t;return{showWaiting:(i,n)=>{const{title:o,description:e}=d(i);t=g({...t===void 0?{}:{id:t},title:o,description:e,variant:"info",persistent:!0,progress:"indeterminate",action:{label:"Cancel export",onClick:n}})},dismissWaiting:()=>{t!==void 0&&x(t),t=void 0},confirmFailedImages:(i,n)=>{const{title:o,description:e}=m(i,n);return $(o,e)}}}export{y as createToastExportReadinessNotifier,m as describeFailed,d as describeWaiting,r as formatImageNames};
1
+ import{jsx as u}from"react/jsx-runtime";import{createRoot as f}from"react-dom/client";import{cy as g,dD as h,dE as x}from"./runtime-Ci9GR285.js";const a=3;function r(t){return t.length<=1?t[0]??"":t.length>a?`${t.slice(0,a).join(", ")} and ${t.length-a} more`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`}const l=t=>t===1?"image":"images";function d(t){const i=r(t.names),n="The export continues as soon as they finish.";return{title:`Waiting for ${t.count} ${l(t.count)} to finish loading\u2026`,description:i?`Still loading: ${i}. ${n}`:n}}function m(t,i){const n=r(t);return{title:n?`Couldn't load photo for ${n}`:`Couldn't load ${i} ${l(i)}`,description:"Export anyway to use a placeholder in its place, or cancel and try again once the photo is available."}}function $(t,i){return typeof document>"u"?Promise.resolve(!1):new Promise(n=>{const o=document.createElement("div");document.body.appendChild(o);const e=f(o);let s=!1;const c=p=>{s||(s=!0,n(p),setTimeout(()=>{e.unmount(),o.remove()},0))};e.render(u(h,{isOpen:!0,onClose:()=>c(!1),onConfirm:()=>c(!0),title:t,description:i,confirmText:"Export anyway",cancelText:"Cancel export",confirmVariant:"primary",closeOnOutsideClick:!1,"data-testid":"export-failed-images-dialog"}))})}function y(){let t;return{showWaiting:(i,n)=>{const{title:o,description:e}=d(i);t=g({...t===void 0?{}:{id:t},title:o,description:e,variant:"info",persistent:!0,progress:"indeterminate",action:{label:"Cancel export",onClick:n}})},dismissWaiting:()=>{t!==void 0&&x(t),t=void 0},confirmFailedImages:(i,n)=>{const{title:o,description:e}=m(i,n);return $(o,e)}}}export{y as createToastExportReadinessNotifier,m as describeFailed,d as describeWaiting,r as formatImageNames};
@@ -1,4 +1,4 @@
1
- import{assertCanvasImagesSettled as $}from"./exportImageReadiness-4Wl1xDju.js";import{eO as B,dX as D,e3 as O,eP as w,eQ as M,eR as U}from"./runtime-CmCxTPcG.js";function k(t){return t&&t.length>0?new Set(t):null}async function _(t){return(await import("./runtime-CmCxTPcG.js").then(e=>e.e)).default.stages.find(e=>{var n;const i=(n=e.container)==null?void 0:n.call(e);return i&&(t.contains(i)||i.contains(t))})??null}async function K(t,e=5e3){var n,i,o;const a=t.find("Image"),r=[],l=[];for(const s of a){const h=(n=s.image)==null?void 0:n.call(s);h&&(h.complete||(l.push(((i=s.id)==null?void 0:i.call(s))||((o=s.name)==null?void 0:o.call(s))||`image-${l.length+1}`),r.push(new Promise(p=>{const g=()=>{h.removeEventListener("load",g),h.removeEventListener("error",g),p()};h.addEventListener("load",g,{once:!0}),h.addEventListener("error",g,{once:!0})}))))}if(r.length===0)return;let c;const u=new Promise(s=>{c=setTimeout(()=>s(!0),e)}),f=Promise.all(r).then(()=>!1),d=await Promise.race([f,u]);if(c&&clearTimeout(c),d)throw new D(l.map(s=>({id:s})))}function C(t,e){typeof t.set=="function"?t.set("visible",e):t.visible=e}function I(t,e,n,i){for(const o of t){if(!o||typeof o!="object")continue;const a=o;if(typeof a.id=="string"&&e.has(a.id)){n.push({object:a,visible:a.visible}),i==null||i.add(a.id),C(a,!1);continue}const r=Array.isArray(a._objects)?a._objects:typeof a.getObjects=="function"?a.getObjects():[];r.length>0&&I(r,e,n,i)}}function Q(t){for(const e of t)C(e.object,e.visible)}function Z(t,e,n,i){const o=t.find(a=>{const r=typeof a.id=="function"?a.id():void 0;return typeof r=="string"&&r!==""&&e.has(r)});for(const a of o)n.push({node:a,visible:a.visible()}),i==null||i.add(a.id()),a.hide()}function W(t){for(const e of t)e.node.visible(e.visible)}function X(t,e,n,i){const o=k(i==null?void 0:i.hideObjectIds),a=t.__fabric;if(a&&typeof a.toCanvasElement=="function"){if(o&&typeof a.getObjects!="function")return null;const r=[];try{o&&typeof a.getObjects=="function"&&I(a.getObjects(),o,r,i==null?void 0:i.hiddenObjectIdSink);const l=a.toCanvasElement(e);if(l&&l.width>0&&l.height>0)return l}catch{}finally{Q(r)}}return null}const G=300;function J(t){var e;const n=Number.parseFloat(((e=t.style)==null?void 0:e.height)??"");return Number.isFinite(n)&&n>0?n:t.height}function V(t){const e=J(t);return e>0&&e<=G}function b(t,e=1,n=.98,i){var o;if(!t.width||!t.height)return null;$(t);const a=e>0?e:1,r=V(t),l=(((o=i==null?void 0:i.hideObjectIds)==null?void 0:o.length)??0)>0,c=a!==1||l?X(t,a,void 0,i):null;if(!c&&l)return null;const u=c||t,f=document.createElement("canvas");c?(f.width=c.width,f.height=c.height):(f.width=Math.round(t.width*a),f.height=Math.round(t.height*a));const d=f.getContext("2d");return d?(r||(d.fillStyle="#ffffff",d.fillRect(0,0,f.width,f.height)),d.imageSmoothingEnabled=!0,d.imageSmoothingQuality="high",d.drawImage(u,0,0,f.width,f.height),f.toDataURL(r?"image/png":"image/jpeg",n)||null):u.toDataURL(r?"image/png":"image/jpeg",n)||null}function P(t,e,n,i){return b(t,e,n,i)}function Y(t){return t.querySelector("canvas.lower-canvas")||t.querySelector("canvas")}function v(t){const e=t.split(",")[1]||"",n=atob(e),i=new Uint8Array(n.length);for(let o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return i}async function A(t,e={}){const{pixelRatio:n=4,quality:i=.98,format:o="dataUrl",skipHiddenText:a=!1,hideObjectIds:r,hiddenObjectIdSink:l}=e,c=await _(t);if(!c){const h=Y(t);if(h){const p=P(h,n,i,{hideObjectIds:r,hiddenObjectIdSink:l});return p?o==="buffer"?v(p):p:null}return console.warn("[capturePreviewStage] No Konva stage or canvas found in element"),null}await B(),await K(c);const u=c.find("Text"),f=[],d=[];let s=null;try{const h=k(r);h&&Z(c,h,d,l),u.forEach((g,m)=>{f[m]=g.opacity(),!a&&g.opacity()===0&&g.opacity(g.getAttr("_dataOpacity")??1)}),u.forEach(g=>{if(g.opacity()>0){const m=g.fontSize();g.fontSize(m+.001),g.fontSize(m)}}),c.batchDraw();const p=c.toCanvas({pixelRatio:n});s=b(p,1,i)}finally{u.forEach((h,p)=>{f[p]!==void 0&&h.opacity(f[p])}),W(d),c.batchDraw()}return s?o==="buffer"?v(s):s:null}function x(t){const e=Number.parseFloat(t.dataset.expectedLeft??""),n=Number.parseFloat(t.dataset.expectedTop??"");Number.isFinite(e)&&(t.style.left=`${e}px`),Number.isFinite(n)&&(t.style.top=`${n}px`),t.style.setProperty("text-rendering","geometricPrecision")}function tt(t){const e=t.querySelectorAll(".text-rich-display");if(e.length===0)return"";const n=[];return e.forEach(i=>{const o=i.cloneNode(!0);o.style.pointerEvents="auto",x(o),n.push(o.outerHTML)}),n.join("")}async function q(t,e={}){const{pixelRatio:n=4,quality:i=.98,format:o="dataUrl",skipHiddenText:a=!1,hideObjectIds:r,hiddenObjectIdSink:l}=e,c=t.parentElement;if(c){const f=await A(c,{pixelRatio:n,quality:i,format:o,skipHiddenText:a,hideObjectIds:r,hiddenObjectIdSink:l});if(f)return f}const u=P(t,n,i,{hideObjectIds:r,hiddenObjectIdSink:l});return u?o==="buffer"?v(u):u:null}const y=32,j=250,et=250,nt=5e3;function N(t){if(!(t.width>0)||!(t.height>0))return!1;const e=document.createElement("canvas");e.width=y,e.height=y;const n=e.getContext("2d",{willReadFrequently:!0});if(!n)return!1;try{n.drawImage(t,0,0,y,y);const{data:i}=n.getImageData(0,0,y,y);for(let o=0;o<i.length;o+=4)if(i[o+3]!==0&&(i[o]<j||i[o+1]<j||i[o+2]<j))return!1;return!0}catch{return!1}}const S=t=>Array.from(t.querySelectorAll("canvas:not(.upper-canvas)")),E=t=>S(t).some(e=>!N(e));async function R(t){const e=Date.now()+nt;for(;Date.now()<e;)if(await new Promise(n=>{setTimeout(n,et)}),E(t))return!0;return!1}function it(t){var e;const n=(e=t.getBoundingClientRect)==null?void 0:e.call(t);if(n&&n.width>0&&n.height>0)return{width:n.width,height:n.height};const i=typeof window<"u"&&window.devicePixelRatio>0?window.devicePixelRatio:1;return{width:t.width/i,height:t.height/i}}const T=[".page-actions-bar",".page-action-btn",".margin-indicators","[data-fabric-canvas-placeholder]"],ot="objId";async function at(t,e={}){if(t.querySelector(`[${O}="true"]`))throw new Error("buildFabricPageClone: page still has a canvas that has not rendered (lazy preview)");const n=await L(t,e);if(!e.expectNonBlankCanvas||n.sawNonBlankCanvas)return n.clone;if(await R(t)){const i=await L(t,e);if(i.sawNonBlankCanvas)return i.clone}throw new Error("buildFabricPageClone: page expected canvas content but every canvas baked blank")}async function L(t,e){var n;const{hideObjectIds:i,stripRichTextOverlays:o=!1,expectNonBlankCanvas:a=!1}=e,r=t.cloneNode(!0);T.forEach(d=>{r.querySelectorAll(d).forEach(s=>s.remove())});const l=new Set;if(o&&i&&i.length>0){const d=new Set(i);r.querySelectorAll(".text-rich-display").forEach(s=>{const h=s.dataset[ot];typeof h=="string"&&d.has(h)&&(l.add(h),s.remove())})}r.querySelectorAll(".text-rich-display").forEach(d=>x(d));const c=S(t),u=S(r);let f=!1;for(let d=0;d<u.length;d++){const s=c[d],h=u[d];if(!(!s||!h||s.width<=0||s.height<=0)){a&&!f&&!N(s)&&(f=!0),$(s);const p=await q(s,{pixelRatio:4,quality:.98,skipHiddenText:!0,hideObjectIds:i,hiddenObjectIdSink:l});if(!p||typeof p!="string")throw new Error(`buildFabricPageClone: canvas ${d+1} of ${u.length} produced no image`);const g=document.createElement("img");g.src=p;const{width:m,height:z}=it(s);g.style.width=s.style.width||`${m}px`,g.style.height=s.style.height||`${z}px`,g.style.display="block",g.style.margin="0",g.style.padding="0",g.style.border="0",g.style.imageRendering="-webkit-optimize-contrast",(n=h.parentElement)==null||n.replaceChild(g,h)}}if(r.querySelectorAll("canvas.upper-canvas").forEach(d=>d.remove()),o&&i&&i.length>0){const d=i.filter(s=>!l.has(s));if(d.length>0)throw new Error(`buildFabricPageClone: ${d.length} lifted object(s) were not removed from the clone (${d.join(", ")})`)}return{clone:r,sawNonBlankCanvas:f}}const rt=new Set(["arial","helvetica","times new roman","courier","courier new","verdana","georgia","comic sans ms","calibri","cambria","aptos","segoe ui","tahoma","trebuchet ms","calibri light","book antiqua","garamond","century gothic","palatino linotype"]),st=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","inherit","initial","unset"]),F=/^[A-Za-z0-9][A-Za-z0-9 ]{0,49}$/,ct=/font-family:\s*([^;"}<]+)/gi,lt=5e3,dt=12;function ut(t){const e=(t.split(",")[0]??"").replace(/['"]/g,"").trim();if(!e||!F.test(e))return"";const n=e.toLowerCase();return st.has(n)||rt.has(n)?"":e}function ft(t){const e=new Set;for(const n of t){if(!n)continue;const i=n.replace(/&quot;/g,"'");for(const o of i.matchAll(ct)){const a=o[1];if(!a)continue;const r=ut(a);r&&e.add(r)}}return Array.from(e).slice(0,dt)}async function ht(t){const e=new AbortController,n=setTimeout(()=>e.abort(),lt);try{const i=await fetch(t,{signal:e.signal});return i.ok?await i.text():null}catch{return null}finally{clearTimeout(n)}}async function gt(t){if(!F.test(t))return null;const e=t.replace(/ /g,"+"),n=["300;400;500;600;700","400;700","400"];for(const i of n){const o=await ht(`https://fonts.googleapis.com/css2?family=${e}:wght@${i}&display=swap`);if(o)return o}return null}async function pt(t,e=[]){const n=new Set(e.filter(Boolean).map(o=>o.toLowerCase())),i=t.filter(o=>!n.has(o.toLowerCase()));return i.length===0?"":(await Promise.all(i.map(o=>gt(o)))).filter(o=>!!o).join(`
1
+ import{assertCanvasImagesSettled as $}from"./exportImageReadiness-BChyHtH7.js";import{eO as B,dX as D,e3 as O,eP as w,eQ as M,eR as U}from"./runtime-Ci9GR285.js";function k(t){return t&&t.length>0?new Set(t):null}async function _(t){return(await import("./runtime-Ci9GR285.js").then(e=>e.e)).default.stages.find(e=>{var n;const i=(n=e.container)==null?void 0:n.call(e);return i&&(t.contains(i)||i.contains(t))})??null}async function K(t,e=5e3){var n,i,o;const a=t.find("Image"),r=[],l=[];for(const s of a){const h=(n=s.image)==null?void 0:n.call(s);h&&(h.complete||(l.push(((i=s.id)==null?void 0:i.call(s))||((o=s.name)==null?void 0:o.call(s))||`image-${l.length+1}`),r.push(new Promise(p=>{const g=()=>{h.removeEventListener("load",g),h.removeEventListener("error",g),p()};h.addEventListener("load",g,{once:!0}),h.addEventListener("error",g,{once:!0})}))))}if(r.length===0)return;let c;const u=new Promise(s=>{c=setTimeout(()=>s(!0),e)}),f=Promise.all(r).then(()=>!1),d=await Promise.race([f,u]);if(c&&clearTimeout(c),d)throw new D(l.map(s=>({id:s})))}function C(t,e){typeof t.set=="function"?t.set("visible",e):t.visible=e}function I(t,e,n,i){for(const o of t){if(!o||typeof o!="object")continue;const a=o;if(typeof a.id=="string"&&e.has(a.id)){n.push({object:a,visible:a.visible}),i==null||i.add(a.id),C(a,!1);continue}const r=Array.isArray(a._objects)?a._objects:typeof a.getObjects=="function"?a.getObjects():[];r.length>0&&I(r,e,n,i)}}function Q(t){for(const e of t)C(e.object,e.visible)}function Z(t,e,n,i){const o=t.find(a=>{const r=typeof a.id=="function"?a.id():void 0;return typeof r=="string"&&r!==""&&e.has(r)});for(const a of o)n.push({node:a,visible:a.visible()}),i==null||i.add(a.id()),a.hide()}function W(t){for(const e of t)e.node.visible(e.visible)}function X(t,e,n,i){const o=k(i==null?void 0:i.hideObjectIds),a=t.__fabric;if(a&&typeof a.toCanvasElement=="function"){if(o&&typeof a.getObjects!="function")return null;const r=[];try{o&&typeof a.getObjects=="function"&&I(a.getObjects(),o,r,i==null?void 0:i.hiddenObjectIdSink);const l=a.toCanvasElement(e);if(l&&l.width>0&&l.height>0)return l}catch{}finally{Q(r)}}return null}const G=300;function J(t){var e;const n=Number.parseFloat(((e=t.style)==null?void 0:e.height)??"");return Number.isFinite(n)&&n>0?n:t.height}function V(t){const e=J(t);return e>0&&e<=G}function b(t,e=1,n=.98,i){var o;if(!t.width||!t.height)return null;$(t);const a=e>0?e:1,r=V(t),l=(((o=i==null?void 0:i.hideObjectIds)==null?void 0:o.length)??0)>0,c=a!==1||l?X(t,a,void 0,i):null;if(!c&&l)return null;const u=c||t,f=document.createElement("canvas");c?(f.width=c.width,f.height=c.height):(f.width=Math.round(t.width*a),f.height=Math.round(t.height*a));const d=f.getContext("2d");return d?(r||(d.fillStyle="#ffffff",d.fillRect(0,0,f.width,f.height)),d.imageSmoothingEnabled=!0,d.imageSmoothingQuality="high",d.drawImage(u,0,0,f.width,f.height),f.toDataURL(r?"image/png":"image/jpeg",n)||null):u.toDataURL(r?"image/png":"image/jpeg",n)||null}function P(t,e,n,i){return b(t,e,n,i)}function Y(t){return t.querySelector("canvas.lower-canvas")||t.querySelector("canvas")}function v(t){const e=t.split(",")[1]||"",n=atob(e),i=new Uint8Array(n.length);for(let o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return i}async function A(t,e={}){const{pixelRatio:n=4,quality:i=.98,format:o="dataUrl",skipHiddenText:a=!1,hideObjectIds:r,hiddenObjectIdSink:l}=e,c=await _(t);if(!c){const h=Y(t);if(h){const p=P(h,n,i,{hideObjectIds:r,hiddenObjectIdSink:l});return p?o==="buffer"?v(p):p:null}return console.warn("[capturePreviewStage] No Konva stage or canvas found in element"),null}await B(),await K(c);const u=c.find("Text"),f=[],d=[];let s=null;try{const h=k(r);h&&Z(c,h,d,l),u.forEach((g,m)=>{f[m]=g.opacity(),!a&&g.opacity()===0&&g.opacity(g.getAttr("_dataOpacity")??1)}),u.forEach(g=>{if(g.opacity()>0){const m=g.fontSize();g.fontSize(m+.001),g.fontSize(m)}}),c.batchDraw();const p=c.toCanvas({pixelRatio:n});s=b(p,1,i)}finally{u.forEach((h,p)=>{f[p]!==void 0&&h.opacity(f[p])}),W(d),c.batchDraw()}return s?o==="buffer"?v(s):s:null}function x(t){const e=Number.parseFloat(t.dataset.expectedLeft??""),n=Number.parseFloat(t.dataset.expectedTop??"");Number.isFinite(e)&&(t.style.left=`${e}px`),Number.isFinite(n)&&(t.style.top=`${n}px`),t.style.setProperty("text-rendering","geometricPrecision")}function tt(t){const e=t.querySelectorAll(".text-rich-display");if(e.length===0)return"";const n=[];return e.forEach(i=>{const o=i.cloneNode(!0);o.style.pointerEvents="auto",x(o),n.push(o.outerHTML)}),n.join("")}async function q(t,e={}){const{pixelRatio:n=4,quality:i=.98,format:o="dataUrl",skipHiddenText:a=!1,hideObjectIds:r,hiddenObjectIdSink:l}=e,c=t.parentElement;if(c){const f=await A(c,{pixelRatio:n,quality:i,format:o,skipHiddenText:a,hideObjectIds:r,hiddenObjectIdSink:l});if(f)return f}const u=P(t,n,i,{hideObjectIds:r,hiddenObjectIdSink:l});return u?o==="buffer"?v(u):u:null}const y=32,j=250,et=250,nt=5e3;function N(t){if(!(t.width>0)||!(t.height>0))return!1;const e=document.createElement("canvas");e.width=y,e.height=y;const n=e.getContext("2d",{willReadFrequently:!0});if(!n)return!1;try{n.drawImage(t,0,0,y,y);const{data:i}=n.getImageData(0,0,y,y);for(let o=0;o<i.length;o+=4)if(i[o+3]!==0&&(i[o]<j||i[o+1]<j||i[o+2]<j))return!1;return!0}catch{return!1}}const S=t=>Array.from(t.querySelectorAll("canvas:not(.upper-canvas)")),E=t=>S(t).some(e=>!N(e));async function R(t){const e=Date.now()+nt;for(;Date.now()<e;)if(await new Promise(n=>{setTimeout(n,et)}),E(t))return!0;return!1}function it(t){var e;const n=(e=t.getBoundingClientRect)==null?void 0:e.call(t);if(n&&n.width>0&&n.height>0)return{width:n.width,height:n.height};const i=typeof window<"u"&&window.devicePixelRatio>0?window.devicePixelRatio:1;return{width:t.width/i,height:t.height/i}}const T=[".page-actions-bar",".page-action-btn",".margin-indicators","[data-fabric-canvas-placeholder]"],ot="objId";async function at(t,e={}){if(t.querySelector(`[${O}="true"]`))throw new Error("buildFabricPageClone: page still has a canvas that has not rendered (lazy preview)");const n=await L(t,e);if(!e.expectNonBlankCanvas||n.sawNonBlankCanvas)return n.clone;if(await R(t)){const i=await L(t,e);if(i.sawNonBlankCanvas)return i.clone}throw new Error("buildFabricPageClone: page expected canvas content but every canvas baked blank")}async function L(t,e){var n;const{hideObjectIds:i,stripRichTextOverlays:o=!1,expectNonBlankCanvas:a=!1}=e,r=t.cloneNode(!0);T.forEach(d=>{r.querySelectorAll(d).forEach(s=>s.remove())});const l=new Set;if(o&&i&&i.length>0){const d=new Set(i);r.querySelectorAll(".text-rich-display").forEach(s=>{const h=s.dataset[ot];typeof h=="string"&&d.has(h)&&(l.add(h),s.remove())})}r.querySelectorAll(".text-rich-display").forEach(d=>x(d));const c=S(t),u=S(r);let f=!1;for(let d=0;d<u.length;d++){const s=c[d],h=u[d];if(!(!s||!h||s.width<=0||s.height<=0)){a&&!f&&!N(s)&&(f=!0),$(s);const p=await q(s,{pixelRatio:4,quality:.98,skipHiddenText:!0,hideObjectIds:i,hiddenObjectIdSink:l});if(!p||typeof p!="string")throw new Error(`buildFabricPageClone: canvas ${d+1} of ${u.length} produced no image`);const g=document.createElement("img");g.src=p;const{width:m,height:z}=it(s);g.style.width=s.style.width||`${m}px`,g.style.height=s.style.height||`${z}px`,g.style.display="block",g.style.margin="0",g.style.padding="0",g.style.border="0",g.style.imageRendering="-webkit-optimize-contrast",(n=h.parentElement)==null||n.replaceChild(g,h)}}if(r.querySelectorAll("canvas.upper-canvas").forEach(d=>d.remove()),o&&i&&i.length>0){const d=i.filter(s=>!l.has(s));if(d.length>0)throw new Error(`buildFabricPageClone: ${d.length} lifted object(s) were not removed from the clone (${d.join(", ")})`)}return{clone:r,sawNonBlankCanvas:f}}const rt=new Set(["arial","helvetica","times new roman","courier","courier new","verdana","georgia","comic sans ms","calibri","cambria","aptos","segoe ui","tahoma","trebuchet ms","calibri light","book antiqua","garamond","century gothic","palatino linotype"]),st=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","inherit","initial","unset"]),F=/^[A-Za-z0-9][A-Za-z0-9 ]{0,49}$/,ct=/font-family:\s*([^;"}<]+)/gi,lt=5e3,dt=12;function ut(t){const e=(t.split(",")[0]??"").replace(/['"]/g,"").trim();if(!e||!F.test(e))return"";const n=e.toLowerCase();return st.has(n)||rt.has(n)?"":e}function ft(t){const e=new Set;for(const n of t){if(!n)continue;const i=n.replace(/&quot;/g,"'");for(const o of i.matchAll(ct)){const a=o[1];if(!a)continue;const r=ut(a);r&&e.add(r)}}return Array.from(e).slice(0,dt)}async function ht(t){const e=new AbortController,n=setTimeout(()=>e.abort(),lt);try{const i=await fetch(t,{signal:e.signal});return i.ok?await i.text():null}catch{return null}finally{clearTimeout(n)}}async function gt(t){if(!F.test(t))return null;const e=t.replace(/ /g,"+"),n=["300;400;500;600;700","400;700","400"];for(const i of n){const o=await ht(`https://fonts.googleapis.com/css2?family=${e}:wght@${i}&display=swap`);if(o)return o}return null}async function pt(t,e=[]){const n=new Set(e.filter(Boolean).map(o=>o.toLowerCase())),i=t.filter(o=>!n.has(o.toLowerCase()));return i.length===0?"":(await Promise.all(i.map(o=>gt(o)))).filter(o=>!!o).join(`
2
2
  `)}const H="objId";function mt(t,e,n){if(!t)return t;const i=new Set(e),o=new DOMParser().parseFromString(t,"text/html").body;o.querySelectorAll(".text-rich-display").forEach(r=>{const l=r.dataset[H];typeof l=="string"&&i.has(l)&&(n.add(l),r.remove())});const a=[...o.querySelectorAll(".text-rich-display")].map(r=>r.dataset[H]).filter(r=>typeof r=="string"&&i.has(r));if(a.length>0)throw new Error(`stripLiftedOverlays: ${a.length} lifted overlay(s) survived the strip (${a.join(", ")})`);return o.innerHTML}async function yt(t,e,n,i,o={}){var a;if(t.querySelector(`[${O}="true"]`))throw new Error("buildKonvaPageHtml: page still has a canvas that has not rendered (lazy preview)");const r=(a=o.hideObjectIds)!=null&&a.length?o.hideObjectIds:void 0,l=new Set;o.expectNonBlankCanvas&&!E(t)&&await R(t);const c=await A(t,{pixelRatio:4,quality:.98,skipHiddenText:!0,...r?{hideObjectIds:r,hiddenObjectIdSink:l}:{}});if(!c||typeof c!="string")return null;if(o.expectNonBlankCanvas&&!E(t))throw new Error("buildKonvaPageHtml: page expected canvas content but every canvas baked blank");const u=tt(t),f=r?mt(u,r,l):u;if(r){const s=r.filter(h=>!l.has(h));if(s.length>0)throw new Error(`buildKonvaPageHtml: ${s.length} lifted object(s) were not removed from the page (${s.join(", ")})`)}const d=i===void 0?"Page":`Page ${i}`;return`<div style="width: ${e}px; height: ${n}px; margin: 0; padding: 0; overflow: hidden; position: relative;"><img src="${c}" style="width: ${e}px; height: ${n}px; display: block; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;" alt="${d}" />${f}</div>`}function wt(){try{return Array.from(document.styleSheets).map(t=>{try{return Array.from(t.cssRules).map(e=>e.cssText).join(`
3
3
  `)}catch{return""}}).join(`
4
4
  `)}catch(t){return console.warn("Could not extract all stylesheets:",t),""}}async function vt(t,e,n,i){let o=wt();try{const c=ft(i),u=await pt(c,[t]);u&&(o+=`
@@ -0,0 +1,11 @@
1
+ import{hT as po,hU as rn,hV as we,hW as mo,hX as xo,hY as bo,hZ as yo,h_ as Et,h$ as wo,i0 as vo,i1 as Me,i2 as oe,i3 as He,i4 as Tt,i5 as Po,i6 as on,i7 as At,i8 as Eo,i9 as R,ia as q,ib as H,ic as an,id as ln,ie as De,ig as To,ih as Ao,ii as So,ij as X,ik as Co,il as No,im as St,io as Fo,ip as Mo,iq as $e,ir as $o,is as sn,it as Io,iu as Oo,dU as Se,cM as ko,iv as cn,iw as Lo,ix as Ct,iy as Ro,iz as un,iA as Ho,iB as Do,iC as zo,iD as Bo,iE as jo,iF as dn,iG as Uo,iH as Wo,iI as _o,iJ as qo,c0 as fn,d6 as hn,eO as Go,dQ as it,iK as Xo,iL as Vo,iM as Yo,dR as Nt,eP as at,eQ as ze,iN as pe,iO as gn,iP as pn,iQ as Ko,iR as Ft,iS as Jo,iT as Zo,iU as Qo,iV as mn,dP as ei}from"./runtime-Ci9GR285.js";import{e as Mt,d as ti,b as xn,a as ni,f as bn}from"./exportPageHtml-CUEih2kT.js";import"react";import{awaitExportImagesReady as ri}from"./exportImageReadiness-BChyHtH7.js";function oi(e,t){const n=typeof e=="string"?e:new XMLSerializer().serializeToString(e),r=t.scale,o=Math.max(1,Math.round(t.width*r)),i=Math.max(1,Math.round(t.height*r)),a=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(a);return new Promise((s,c)=>{const u=new Image,d=()=>URL.revokeObjectURL(l);u.onload=()=>{try{const f=document.createElement("canvas");f.width=o,f.height=i;const g=f.getContext("2d");if(!g){c(new Error("svgToPngDataUrl: 2D canvas context unavailable"));return}g.fillStyle="#ffffff",g.fillRect(0,0,o,i),g.imageSmoothingEnabled=!0,g.imageSmoothingQuality="high",g.drawImage(u,0,0,o,i),s(f.toDataURL("image/png"))}catch(f){c(f instanceof Error?f:new Error(String(f)))}finally{d()}},u.onerror=()=>{d(),c(new Error("svgToPngDataUrl: failed to load serialized SVG"))},u.src=l})}function yn(e){return e.length>=4&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71?"png":e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255?"jpg":e.length>=4&&e[0]===71&&e[1]===73&&e[2]===70&&e[3]===56?"gif":e.length>=2&&e[0]===66&&e[1]===77?"bmp":e.length>=12&&e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80?"webp":null}const Ze=(e,t)=>e>0&&t>0?{width:e,height:t}:null,ii=[196,200,204],ai=218,li=e=>e>=192&&e<=207&&!ii.includes(e);function si(e){let t=2;for(;t+9<=e.byteLength;){if(e.getUint8(t)!==255)return null;const n=e.getUint8(t+1);if(n===255)t+=1;else{if(li(n))return Ze(e.getUint16(t+7),e.getUint16(t+5));if(n===ai)return null;t+=2+e.getUint16(t+2)}}return null}const ci=12,ui=40;function di(e){if(e.byteLength<22)return null;const t=e.getUint32(14,!0);return t===ci?Ze(e.getUint16(18,!0),e.getUint16(20,!0)):t<ui||e.byteLength<26?null:Ze(e.getInt32(18,!0),Math.abs(e.getInt32(22,!0)))}function fi(e,t){const n=new DataView(e.buffer,e.byteOffset,e.byteLength);return t==="png"?e.length>=24?Ze(n.getUint32(16),n.getUint32(20)):null:t==="gif"?e.length>=10?Ze(n.getUint16(6,!0),n.getUint16(8,!0)):null:t==="bmp"?di(n):si(n)}function hi(e){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{try{const o=r.naturalWidth||r.width,i=r.naturalHeight||r.height,a=document.createElement("canvas");a.width=Math.max(1,o),a.height=Math.max(1,i);const l=a.getContext("2d");if(!l){n(new Error("rasterizeToPngImage: 2D canvas context unavailable"));return}l.fillStyle="#ffffff",l.fillRect(0,0,a.width,a.height),l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(r,0,0,a.width,a.height),t({bytes:Mt(a.toDataURL("image/png")),type:"png",intrinsicWidth:o||void 0,intrinsicHeight:i||void 0})}catch(o){n(o instanceof Error?o:new Error(String(o)))}},r.onerror=()=>n(new Error("rasterizeToPngImage: failed to load image")),r.src=e})}async function wn(e,t){if(e.length===0)throw new Error("bytesToDocxImage: empty image body");const n=yn(e);if(n&&n!=="webp"){const r=fi(e,n);return r?{bytes:e,type:n,intrinsicWidth:r.width,intrinsicHeight:r.height}:{bytes:e,type:n}}return hi(t)}async function gi(e){const t=await fetch(e);if(!t.ok)throw new Error(`fetchImageForDocx: HTTP ${t.status}`);return wn(new Uint8Array(await t.arrayBuffer()),e)}const pi="layoutslot",vn={sm:120,md:240,lg:360},mi=12240,xi=15840,Pn=120,En=90,Be={style:oe.NONE,size:0,color:"auto"},Tn={top:Be,bottom:Be,left:Be,right:Be,insideHorizontal:Be,insideVertical:Be},bi={top:we.TOP,middle:we.CENTER,bottom:we.BOTTOM},yi=new Set(["p","h1","h2","h3","h4"]),An=(e,t)=>Array.from(e.children).filter(n=>n.tagName.toLowerCase()===t),$t=()=>new R({text:"",spacing:{before:0,after:0,line:240,lineRule:q.AUTO}});function wi(e){if(!/<(columns|layout)[\s>]/i.test(e))return{html:e,containers:[]};const t=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html"),n=[];return t.body.querySelectorAll("columns, layout").forEach(r=>{var o;if((o=r.parentElement)!=null&&o.closest("columns, layout"))return;const i=n.push(r.outerHTML)-1,a=t.createElement(pi);a.setAttribute("data-layout-idx",String(i)),r.replaceWith(a)}),{html:t.body.innerHTML,containers:n}}function Sn(e){const t=Eo(e);return t===Po?void 0:t.slice(1).toUpperCase()}function lt(e){return e.containerWidthTwips&&e.containerWidthTwips>0?e.containerWidthTwips:(e.isLandscape?xi:mi)-(e.leftMarginPx??40)*15-(e.rightMarginPx??40)*15}function vi(e,t,n){const r=e&&wo.test(e)?vo(e):null,o=r&&r.length===t?r:Array.from({length:t},()=>1);return Cn(o,n)}function Pi(e,t){return Cn(Array.from({length:e},()=>1),t)}function Cn(e,t){const n=e.reduce((i,a)=>i+a,0),r=e.map(i=>Math.max(1,Math.floor(t*i/n))),o=r.reduce((i,a)=>i+a,0);return r[r.length-1]=r[r.length-1]+(t-o),r}function Nn(e,t,n,r){return r(e,{...n,leftMarginPx:0,rightMarginPx:0,containerWidthTwips:t})}function Ei(e){return e.length===0?[$t()]:e[e.length-1]instanceof Me?[...e,$t()]:e}function Fn({elements:e,fill:t,widthTwips:n,valign:r,gapTwips:o,index:i,count:a}){const l=Math.round(o/2),s=i===0?0:l,c=i===a-1?0:l;return new on({children:Ei(e),width:{size:n,type:He.DXA},shading:t?{type:At.CLEAR,color:"auto",fill:t}:void 0,borders:Tn,margins:t?{top:En,bottom:En,left:Math.max(s,Pn),right:Math.max(c,Pn)}:{top:0,bottom:0,left:s,right:c},verticalAlign:r})}function It(e,t,n){return new Me({rows:e,layout:Tt.FIXED,columnWidths:t,width:{size:t.reduce((r,o)=>r+o,0),type:He.DXA},indent:{size:(n.leftMarginPx??40)*15,type:He.DXA},borders:Tn})}function Ti(e,t){e[e.length-1]instanceof Me&&e.push($t()),e.push(t)}async function Mn(e,t,n){const r=lt(t),o=[];for(const i of e){const a=Sn(i.el.getAttribute("bg"));if(!a){o.push(...await n(i.html,t));continue}const l=await Nn(i.html,r,t,n),s=Fn({elements:l,fill:a,widthTwips:r,valign:we.TOP,gapTwips:0,index:0,count:1});Ti(o,It([new Et({children:[s]})],[r],t))}return o}async function $n(e,t,n,r,o,i){const a=t.length,l=[];for(let s=0;s<a;s++){const c=e[s],u=c?await Nn(c.html,t[s],o,i):[];l.push(Fn({elements:u,fill:c?Sn(c.el.getAttribute("bg")):void 0,widthTwips:t[s],valign:n,gapTwips:r,index:s,count:a}))}return new Et({children:l})}async function Ai(e,t,n){const r=An(e,"column");if(r.length===0)return n(e.innerHTML,t);const o=r.map(l=>({el:l,html:l.innerHTML}));if(po(e.getAttribute("direction"))==="vertical")return Mn(o,t,n);const i=vi(e.getAttribute("ratio"),o.length,lt(t)),a=await $n(o,i,bi[mo(e.getAttribute("valign"))],vn[rn(e.getAttribute("gap"))],t,n);return[It([a],i,t)]}function Si(e,t){const n=e.cloneNode(!0),r=n.ownerDocument,o=r.createElement("strong");o.textContent=`${t}. `;const i=Array.from(n.children).find(a=>yi.has(a.tagName.toLowerCase()));if(i)i.prepend(o);else{const a=r.createElement("p");a.appendChild(o),n.prepend(a)}return n.innerHTML}async function Ci(e,t,n){const r=An(e,"cell");if(r.length===0)return n(e.innerHTML,t);const o=xo(e.getAttribute("variant")),i=bo(yo(e.getAttribute("columns")),r.length,o),a=r.map((u,d)=>({el:u,html:o==="timeline"?Si(u,d+1):u.innerHTML}));if(i<=1)return Mn(a,t,n);const l=Pi(i,lt(t)),s=vn[rn(e.getAttribute("gap"))],c=[];for(let u=0;u<a.length;u+=i)c.push(await $n(a.slice(u,u+i),l,we.TOP,s,t,n));return[It(c,l,t)]}async function Ni(e,t,n){const r=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html").body.firstElementChild;if(!r)return[];const o=r.tagName.toLowerCase();return o==="columns"?Ai(r,t,n):o==="layout"?Ci(r,t,n):n(r.innerHTML,t)}const ie="Arial",Fi={"sans-serif":ie,"system-ui":ie,"ui-sans-serif":ie,"ui-rounded":ie,"-apple-system":ie,blinkmacsystemfont:ie,serif:"Times New Roman","ui-serif":"Times New Roman",monospace:"Courier New","ui-monospace":"Courier New",cursive:ie,fantasy:ie,math:ie,emoji:ie,fangsong:ie};function ve(e){if(!e)return ie;const t=(e.split(",")[0]??"").trim().replace(/^['"]|['"]$/g,"").trim();return t?Fi[t.toLowerCase()]??t:ie}const Pe=e=>new ln({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e}}}),je=e=>new ln({name:"w:instrText",attributes:{space:{key:"xml:space",value:"preserve"}}}).addChildElement(e);function Mi(e,t,n){const r=o=>new H({...n,children:[o]});return[r(Pe("begin")),r(je(`PAGEREF ${e} \\h`)),r(Pe("separate")),new H({...n,text:t}),r(Pe("end"))]}const $i=e=>new H({...e,children:[an.CURRENT]}),Ii=e=>new H({...e,children:[an.TOTAL_PAGES]}),Oi=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),In=' < 1 "" "',On=(e,t)=>[t(Pe("begin")),t(je(e)),t(Pe("separate")),t(Pe("end"))];function ki(e,t){const n=o=>new H({...t,children:[o]}),r="field"in e?[n(je(In)),...On(e.field,n),n(je('"'))]:[n(je(`${In}${Oi(e.literal)}"`))];return[n(Pe("begin")),n(je("IF ")),...On("PAGE",n),...r,n(Pe("separate")),n(Pe("end"))]}const Li=e=>e==="export-preview"?Io:Oo;function kn(e){return e.contentWidthPx!==void 0?e.contentWidthPx:e.isLandscape?Se.CONTENT_AREA_LANDSCAPE.width:Se.CONTENT_AREA.width}const Ln=24,Ot=15,Q=e=>({before:e*Ot,after:e*Ot}),Rn={h1:Q(16),h2:Q(12),h3:Q(8),h4:Q(4),p:Q(4),list:Q(16),table:Q(16),hr:Q(16),img:Q(8),chart:Q(8),layout:Q(8)},Ri={...Rn,h1:Q(20),h2:Q(14),p:Q(12),list:Q(12),table:Q(12)},Hn=e=>e==="export-preview"?Ri:Rn,Ce=e=>Math.round(e*1.5),Ue=(e,t,n)=>{const r=(n.previewContext==="export-preview"?Ao:So)[t];return Math.round(e*(r??1.2)*Ot)},We=q.AT_LEAST,Qe=e=>{if(e==="center")return X.CENTER;if(e==="right")return X.RIGHT;if(e==="justify")return X.JUSTIFIED},Hi={left:X.LEFT,center:X.CENTER,right:X.RIGHT,justify:X.JUSTIFIED},Di=/data-node-text-align="(left|center|right|justify)"/i,zi=/(?:^|[;\s"'])text-align\s*:\s*(left|center|right|justify)/i,st=e=>{var t,n;if(!e)return;const r=((t=e.match(Di))==null?void 0:t[1])??((n=e.match(zi))==null?void 0:n[1]);return r?Hi[r.toLowerCase()]:void 0},Bi=/<(?:p|h[1-4])\b([^>]*)>/i,ct=e=>{var t;return(t=e.match(Bi))==null?void 0:t[1]},Dn={top:we.TOP,middle:we.CENTER,bottom:we.BOTTOM},ji=/data-node-vertical-align="(top|middle|bottom)"/i,Ui=/(?:^|[;\s"'])vertical-align\s*:\s*(top|middle|bottom)/i,zn=e=>e==="top"||e==="middle"||e==="bottom",Wi=(e,t)=>{var n,r,o;const i=(o=((n=e.match(ji))==null?void 0:n[1])??((r=e.match(Ui))==null?void 0:r[1]))==null?void 0:o.toLowerCase();return zn(i)?Dn[i]:zn(t)?Dn[t]:we.TOP},Ie=(e,t)=>{var n;const r=Li(e.previewContext)[t],o=(n=e.componentColors)==null?void 0:n.textStyles,i=o==null?void 0:o[t];return{...r,...i}},L=e=>To(e),_i={color:/(?:^|;)\s*color\s*:\s*([^;"]+)/i,"background-color":/(?:^|;)\s*background-color\s*:\s*([^;"]+)/i,"text-transform":/(?:^|;)\s*text-transform\s*:\s*([^;"]+)/i,"font-size":/(?:^|;)\s*font-size\s*:\s*([^;"]+)/i};function qi(e){const[,t,n]=(e==null?void 0:e.match(/^(\d*\.?\d+)\s*(px|pt)$/i))??[];if(!t||!n)return;const r=parseFloat(t);if(!(!Number.isFinite(r)||r<=0))return n.toLowerCase()==="pt"?Math.round(r*2):Ce(r)}function ut(e,t,n){var r,o;return(e==null?void 0:e.trim())||((o=(r=t.match(_i[n]))==null?void 0:r[1])==null?void 0:o.trim())||void 0}const Gi=new Set(["span","mark","b","strong","i","em","u","a","code"]),Xi=new Set(["none","lowercase","capitalize","full-width","full-size-kana","initial"]),Bn=/[\u{1F000}-\u{1FFFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}\u{2B00}-\u{2BFF}][\uFE0F\u20E3]?/gu,kt="Segoe UI Emoji";function Vi(e){const t=new RegExp(Bn.source,Bn.flags),n=[];let r=0,o;for(;(o=t.exec(e))!==null;)o.index>r&&n.push({text:e.slice(r,o.index),isEmoji:!1}),n.push({text:o[0],isEmoji:!0}),r=t.lastIndex;return r<e.length&&n.push({text:e.slice(r),isEmoji:!1}),n.length===0?[{text:e,isEmoji:!1}]:n}function Lt(e,t,n=Ln,r){const o=[],i=ve(t.documentFont),a=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html").querySelector("div");if(!a)return o;let l=0;function s(c,u){var d,f,g,x,P;if(c.nodeType===Node.TEXT_NODE){const T=c.textContent||"";if(!T)return;const A=Vi(T);for(const w of A){if(!w.text)continue;const N=l;l=0,o.push(new H({break:N||void 0,text:w.text,bold:u.bold,italics:u.italic,underline:u.underline?{}:void 0,allCaps:u.allCaps,color:u.color,shading:u.shadingFill?{type:At.CLEAR,color:"auto",fill:u.shadingFill}:void 0,font:w.isEmoji?{ascii:kt,hAnsi:kt,cs:kt}:{ascii:i,hAnsi:i},size:u.sizeHalfPoints??n}))}return}if(c.nodeType!==Node.ELEMENT_NODE)return;const p=c,b=p.tagName.toLowerCase();if(b==="br"){l+=1;return}const h=p.getAttribute("style")||"",m={...u};(b==="b"||b==="strong")&&(m.bold=!0),(b==="i"||b==="em")&&(m.italic=!0),b==="u"&&(m.underline=!0);const C=L(ut((d=p.style)==null?void 0:d.color,h,"color"));C&&(m.color=C);const M=qi(ut((f=p.style)==null?void 0:f.fontSize,h,"font-size"));M&&(m.sizeHalfPoints=M);const E=(x=ut((g=p.style)==null?void 0:g.textTransform,h,"text-transform"))==null?void 0:x.toLowerCase();if(E==="uppercase"?m.allCaps=!0:E&&Xi.has(E)&&(m.allCaps=void 0),Gi.has(b)){const T=L(ut((P=p.style)==null?void 0:P.backgroundColor,h,"background-color"));T&&(m.shadingFill=T)}for(const T of Array.from(c.childNodes))s(T,m)}return s(a,{bold:(r==null?void 0:r.bold)??!1,italic:(r==null?void 0:r.italic)??!1,underline:(r==null?void 0:r.underline)??!1,color:t.defaultTextColor}),l>1&&o.push(new H({break:l-1,font:{ascii:i,hAnsi:i},size:n})),o}function Yi(e,t,n){var r,o;const i=ve(t.documentFont),a=(t.leftMarginPx??40)*15,l=(t.rightMarginPx??40)*15,s=Ie(t,"paragraph"),c=(o=(r=t.componentColors)==null?void 0:r.paragraph)!=null&&o.textColor?L(t.componentColors.paragraph.textColor):void 0,u=Lt(e,{...t,defaultTextColor:c||t.defaultTextColor},Ce(s.fontSize),{bold:s.bold,italic:s.italic,underline:s.underline});return new R({children:u.length>0?u:[new H({text:"",font:i})],alignment:st(ct(e))??Qe(s.textAlign),spacing:{before:n.before,after:n.after,line:Ue(s.fontSize,"paragraph",t),lineRule:We},indent:{left:a,right:l}})}const jn="\uE000";function Ki(e){const t=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html").querySelector("div");if(!t)return[""];t.querySelectorAll("br").forEach(r=>r.replaceWith(jn));const n=(t.textContent??"").replace(/[ \t\n\r\f]+/g," ").split(jn).map(r=>r.replace(/^ +| +$/g,"").replace(/\u00a0/g," "));return n.length>1&&n[n.length-1]===""&&n.pop(),n}function dt(e,t,n,r){var o,i;const a=ve(n.documentFont),l=(o=n.componentColors)==null?void 0:o.heading,s=(n.leftMarginPx??40)*15,c=(n.rightMarginPx??40)*15,u=Ie(n,`h${t}`),d=(i=e.match(/\bid="(dest-[^"]+)"/i))==null?void 0:i[1],f=Ki(e);let g;if(l){const h=l[`h${t}`];h&&(g=L(h))}const x=L(l==null?void 0:l[`h${t}Bg`]),P={1:De.HEADING_1,2:De.HEADING_2,3:De.HEADING_3,4:De.HEADING_4},p=f.map((h,m)=>new H({break:m>0?1:void 0,text:h,font:a,size:Ce(u.fontSize),bold:u.bold,italics:u.italic,color:g,underline:u.underline?{}:void 0,shading:x?{type:At.CLEAR,color:"auto",fill:x}:void 0})),b=d?[new sn({id:d,children:p})]:p;return new R({children:b,heading:P[t],keepNext:!0,alignment:st(ct(e))??Qe(u.textAlign),spacing:{before:r.before,after:r.after,line:Ue(u.fontSize,`h${t}`,n),lineRule:We},indent:{left:s,right:c}})}function Un(e){switch(e){case"a":return"lower-letter-numbering";case"i":return"lower-roman-numbering";default:return"default-numbering"}}function Wn(e){var t,n;const r=(t=e.match(/<ol\b[^>]*>/i))==null?void 0:t[0];return((n=r==null?void 0:r.match(/\stype=["']?([^"'\s>]+)/i))==null?void 0:n[1])??null}let Ji=0;const _n=()=>Ji+=1;function qn(e,t,n,r){var o;const i=ve(n.documentFont),a=(o=n.componentColors)==null?void 0:o.list,l=Ie(n,"listText"),s=(n.leftMarginPx??40)*15,c=(n.rightMarginPx??40)*15,u=a!=null&&a.textColor?L(a.textColor):void 0,d=t?{reference:Un(Wn(e)),level:0,instance:_n()}:void 0,f=[],g=/<li[^>]*>(.*?)<\/li>/gi;let x;for(;(x=g.exec(e))!==null;)f.push(x[1]);return f.map((P,p)=>{const b=p===0,h=p===f.length-1,m=Lt(P,{...n,defaultTextColor:u||n.defaultTextColor},Ce(l.fontSize),{bold:l.bold,italic:l.italic,underline:l.underline});return new R({children:m.length>0?m:[new H({text:"",font:i})],bullet:t?void 0:{level:0},numbering:d,alignment:Qe(l.textAlign),spacing:{before:b?r.before:0,after:h?r.after:90,line:Ue(l.fontSize,"listText",n),lineRule:We},indent:{left:s+360,hanging:360,right:c}})})}function Zi(e){const t=e.match(/<(p|h[1-4])(?:\s[^>]*)?>[\s\S]*?<\/\1>/gi);if(!t||t.length<2)return[e];const n=r=>{var o;return((o=new DOMParser().parseFromString(r,"text/html").body.textContent)==null?void 0:o.trim())??""};return t.map(n).join("").replace(/\s+/g,"")!==n(e).replace(/\s+/g,"")?[e]:t}const Rt="data-cell-list",Gn=/<(ul|ol)\b[^>]*>((?:(?!<(?:ul|ol)\b)[\s\S])*?)<\/\1>/i;function Qi(e){let t=e;for(let n=t.match(Gn);n;n=t.match(Gn)){const r=n[0],o=(n[1]??"").toLowerCase(),i=n[2]??"",a=o==="ol"?Wn(r):null,l=o==="ol"?` ${Rt}-instance="${_n()}"`+(a?` ${Rt}-type="${a}"`:""):"",s=i.replace(/<li\b[^>]*>\s*<p\b/gi,`<p ${Rt}="${o}"${l}`),c=n.index??0;t=t.slice(0,c)+s+t.slice(c+r.length)}return t}const ea=e=>{var t,n,r,o;const i=(n=(t=e==null?void 0:e.match(/data-cell-list="(ul|ol)"/i))==null?void 0:t[1])==null?void 0:n.toLowerCase();if(i==="ul")return{kind:"ul"};if(i==="ol")return{kind:"ol",instance:Number(((r=e==null?void 0:e.match(/data-cell-list-instance="(\d+)"/i))==null?void 0:r[1])??0),type:((o=e==null?void 0:e.match(/data-cell-list-type="([^"]+)"/i))==null?void 0:o[1])??null}},ta=e=>{if(!e)return{};const t={left:360,hanging:360};return e.kind==="ul"?{bullet:{level:0},indent:t}:{numbering:{reference:Un(e.type),level:0,instance:e.instance},indent:t}},Xn=15,Vn=e=>{var t;const n=ko((t=e.componentColors)==null?void 0:t.table),r=Math.round(n.y*Xn),o=Math.round(n.x*Xn);return{top:r,bottom:r,left:o,right:o}},na=e=>{const t=Vn(e);return t.top+t.bottom},Yn=300,ra=100,oa=15840,ia=12240;function aa(e,t){var n;const r=parseInt(((n=e.match(/data-row-twips="(\d+)"/i))==null?void 0:n[1])??"",10);if(!Number.isFinite(r)||r<=0)return Yn;const o=t.isLandscape?ia:oa,i=t.contentHeightPx&&t.contentHeightPx>0?Math.round(t.contentHeightPx*15):o;return r>i?Yn:Math.max(ra,r-na(t))}function Kn(e,t){var n,r;const o=(n=t.componentColors)==null?void 0:n.table,i=Ie(t,"tableHeader").verticalAlign,a=Vn(t),l=ve(t.documentFont),s=(t.leftMarginPx??40)*15,c=lt(t),u=e.match(/data-col-twips="([\d,]+)"/i),d=u!=null&&u[1]?u[1].split(",").map(M=>parseInt(M,10)).filter(M=>M>0):void 0,f=!!d&&d.length>0,g=[],x=[],P=[],p=/<(thead|tbody|tfoot)[^>]*>(?:[\s\S]*?)<\/\1>/gi;let b;for(;(b=p.exec(e))!==null;)P.push({tag:(b[1]??"").toLowerCase(),start:b.index,end:b.index+b[0].length});const h=new Map,m=/<tr([^>]*)>([\s\S]*?)<\/tr>/gi;let C;for(;(C=m.exec(e))!==null;){const M=C[1]??"",E=C[2]??"",T=C.index,A=P.findIndex(I=>T>=I.start&&T<I.end),w=(h.get(A)??0)+1;h.set(A,w);const N=(((r=P[A])==null?void 0:r.tag)??"tbody")==="tbody"&&w%2===0,j=[],V=/<th[\s>]/i.test(E),se=/<td[\s>]/i.test(E),ne=V&&!se;let ae=0;const ce=/<(th|td)([^>]*)>([\s\S]*?)<\/\1>/gi;let Ee;for(;(Ee=ce.exec(E))!==null;){const I=Ee[2]||"",Te=Ee[3]||"",Ve=(Ee[1]||"").toLowerCase()==="th",Oe=Ve&&ne,v=Ve&&!ne,F=Oe?"tableHeader":v?"tableHeaderColumn":"tableCell",$=Ie(t,F),k=v?$.verticalAlign??i:$.verticalAlign,W=(o==null?void 0:o.headerColumnText)||(o==null?void 0:o.headerText),ue=Oe?o!=null&&o.headerText?L(o.headerText):void 0:v?W?L(W):void 0:o!=null&&o.cellText?L(o.cellText):void 0,re=st(I),Y=Zi(Qi(Te)),ge=Y.map(D=>st(ct(D))),Ae=Y.map(D=>ea(ct(D))),ee=Y.map(D=>Lt(D,{...t,defaultTextColor:ue},Ce($.fontSize),{bold:$.bold,italic:$.italic,underline:$.underline})),te=I.match(/colspan="(\d+)"/i),Z=te!=null&&te[1]?parseInt(te[1],10):void 0,le=I.match(/rowspan="(\d+)"/i),K=le!=null&&le[1]?parseInt(le[1],10):void 0,de=Z&&Z>1?Z:1,fe=K&&K>1?K:1;for(;(x[ae]??0)>0;)ae+=1;const me=ae;if(fe>1)for(let D=me;D<me+de;D+=1)x[D]=fe;ae=me+de;const ke=I.match(/data-colwidth="(\d+)"/i),Ye=I.match(new RegExp("(?<!min-)width:\\s*(\\d+)px","i")),rt=ke!=null&&ke[1]?parseInt(ke[1],10):Ye!=null&&Ye[1]?parseInt(Ye[1],10):void 0,Pt=rt?Math.round(rt*15):void 0,Ke=(d&&me+de<=d.length?d.slice(me,me+de).reduce((D,xe)=>D+xe,0):void 0)??Pt,Le=ee.map((D,xe)=>new R({children:D.length>0?D:[new H({text:"",font:l})],...ta(Ae[xe]),alignment:ge[xe]??re??Qe($.textAlign),spacing:{before:0,after:0,...t.previewContext==="export-preview"?{line:Ue($.fontSize,F,t),lineRule:We}:{line:240,lineRule:q.AUTO}}}));j.push(new on({children:Le,columnSpan:de>1?de:void 0,rowSpan:fe>1?fe:void 0,width:Ke?{size:Ke,type:He.DXA}:void 0,shading:(()=>{const D=I.match(/background-color:\s*([^;"]+)/i),xe=D!=null&&D[1]?L(D[1].trim()):void 0;if(xe)return{fill:xe};if(Oe&&o!=null&&o.headerBg)return{fill:L(o.headerBg)||"FFFFFF"};if(v){const ot=(o==null?void 0:o.headerColumnBg)||(o==null?void 0:o.headerBg);if(ot)return{fill:L(ot)||"FFFFFF"}}return!Ve&&N&&o!=null&&o.alternateRowBg?{fill:L(o.alternateRowBg)||"FFFFFF"}:{fill:o!=null&&o.cellBg&&L(o.cellBg)||"FFFFFF"}})(),borders:o!=null&&o.border?{top:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},bottom:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},left:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},right:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"}}:void 0,margins:{...a},verticalAlign:Wi(I,k)}))}for(let I=0;I<x.length;I+=1)x[I]=Math.max(0,(x[I]??0)-1);j.length>0&&g.push(new Et({children:j,cantSplit:!0,tableHeader:ne,height:{value:aa(M,t),rule:$o.ATLEAST}}))}return new Me({rows:g,layout:f?Tt.FIXED:Tt.AUTOFIT,...f?{columnWidths:d}:{},width:{size:f?d.reduce((M,E)=>M+E,0):c,type:He.DXA},indent:{size:s,type:He.DXA},borders:o!=null&&o.border?{top:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},bottom:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},left:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},right:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},insideHorizontal:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"},insideVertical:{style:oe.SINGLE,size:1,color:L(o.border)||"000000"}}:void 0})}function Jn(e){let t=e;for(;/<[^>]+>/.test(t);)t=t.replace(/<[^>]+>/g,"");return t}function la(e,t){var n;const r=ve(t.documentFont),o=(t.leftMarginPx??40)*15,i=(t.rightMarginPx??40)*15,a=(n=e.match(/\bdata-dest="(dest-[^"]+)"/i))==null?void 0:n[1];let l="dotted";/border-bottom:.*solid/i.test(e)?l="line":/border-bottom:.*dotted/i.test(e)?l="dotted":/font-weight:\s*500/i.test(e)||/margin-bottom:\s*8px/i.test(e)?l="modern":/font-size:\s*0\.9em/i.test(e)||/font-size:\s*0\.85em/i.test(e)?l="compact":/\[\d+\]|\[\.\.\.\]/.test(e)&&(l="simple");const s=e.match(/margin-left:\s*(\d+)px/),c=s?parseInt(s[1],10):0,u=/<span([^>]*)>(.*?)<\/span>/gi,d=[];let f;for(;(f=u.exec(e))!==null;)d.push({attrs:f[1]||"",content:f[2]||""});if(d.length<1)return null;const g=Jn(d[0].content.replace(/&nbsp;/g," ").replace(/&amp;/g,"&")).trim();let x="";for(let I=d.length-1;I>=1;I--){const Te=Jn(d[I].content).trim();if(/\d+/.test(Te)||Te==="..."){x=Te.replace(/^\[|\]$/g,"");break}}const P=o+Math.round(c/24)*300,p=12240-i,b=l==="line"||l==="modern",h=l==="compact"?"888888":void 0,m=Ie(t,"paragraph").fontSize,C=l==="compact"?m*.9:m,M=l==="compact"?m*.85:l==="modern"?m*.95:m,E=Ce(C),T=Ce(M),A=l==="simple"?"[":"",w=l==="simple"?"]":"",N=`${A}${x}${w}`,j=l==="dotted"?St.DOT:l==="line"?St.UNDERSCORE:St.NONE,V=l==="modern"?60:l==="compact"?30:60,se=l==="modern"?180:l==="compact"?30:120,ne={font:r,size:T,bold:b||void 0,color:h},ae=t.tocPagerefFields&&a&&/^\d+$/.test(x)?[...A?[new H({...ne,text:A})]:[],...Mi(a,x,ne),...w?[new H({...ne,text:w})]:[]]:[new H({...ne,text:N})],ce=[new H({text:g,font:r,size:E,bold:void 0}),new H({children:[new Co],font:r,size:T}),...ae],Ee=a?[new No({anchor:a,children:ce})]:ce;return new R({children:Ee,tabStops:[{type:Fo.RIGHT,position:p,leader:j}],spacing:{before:V,after:se,line:Ue(Math.max(C,M),"paragraph",t),lineRule:We},indent:{left:P,right:i}})}function sa(e,t){const n=(e.leftMarginPx??40)*15,r=(e.rightMarginPx??40)*15;return new R({children:[new H({text:""})],border:{bottom:{style:oe.SINGLE,size:6,space:1,color:"E0E0E0"}},spacing:{before:t.before,after:t.after,line:240,lineRule:q.AUTO},indent:{left:n,right:r}})}const ca=320,ua=3;function et(e){if(!e||!/^\d+(\.\d+)?$/.test(e.trim()))return;const t=Number(e);return t>0?t:void 0}function Ht(e,t,n){const r=ve(t.documentFont),o=(t.leftMarginPx??40)*15,i=(t.rightMarginPx??40)*15,a={style:oe.SINGLE,size:6,space:4,color:"E0E0E0"};return new R({children:[new H({text:e,font:r,size:Ln,italics:!0})],border:{top:a,bottom:a,left:a,right:a},alignment:X.CENTER,spacing:{before:n.before,after:n.after,line:240,lineRule:q.AUTO},indent:{left:o,right:i}})}function Dt(e,t,n){return Ht(`Chart: ${e} (see PDF export)`,t,n)}function zt(e,t,n){const r=e!=null&&e.trim()?`Image: ${e.trim()} (could not be embedded)`:"Image (could not be embedded)";return Ht(r,t,n)}async function da(e,t,n){var r;const o=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html").body.querySelector("[data-chart-type]");if(!o)return[];const i=o.getAttribute("data-chart-type")||"chart",a=o.querySelector("svg");if(a){const s=kn(t),c=et(a.getAttribute("width")),u=et(a.getAttribute("height")),d=et((r=(o.getAttribute("style")||"").match(/height:\s*([\d.]+)px/i))==null?void 0:r[1]),f=c??s,g=u??d??ca;try{const x=await oi(a,{width:f,height:g,scale:ua}),P=Mt(x);if(P.length>0)return[new R({children:[new $e({type:"png",data:P,transformation:{width:f,height:g}})],alignment:X.CENTER,spacing:{before:n.before,after:n.after,line:240,lineRule:q.AUTO}})]}catch(x){console.error(`Failed to rasterize chart "${i}" for DOCX:`,x)}return[Dt(i,t,n)]}const l=o.querySelector("table");return l?[Kn(l.outerHTML,t)]:[Dt(i,t,n)]}function fa(e,t,n,r,o){let i=e,a=t;const l=!!n&&!!r;return!i&&!a&&l?(i=n,a=r):i&&l?a=i*(r/n):i&&!a?a=i*(2/3):!i&&a&&(i=l?a*(n/r):a*(3/2)),i||(i=o),a||(a=Math.round(i*(2/3))),i>o&&(a=Math.round(a*(o/i)),i=o),{width:Math.round(i),height:Math.round(a)}}function ha(e){return e==="center"?X.CENTER:e==="right"?X.RIGHT:X.LEFT}async function ga(e,t,n){const r=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html").body.querySelector("img"),o=(r==null?void 0:r.getAttribute("src"))||"",i=(r==null?void 0:r.getAttribute("alt"))||void 0,a=et(r==null?void 0:r.getAttribute("width")),l=et(r==null?void 0:r.getAttribute("height")),s=ha(r==null?void 0:r.getAttribute("data-align"));if(!o)return zt(i,t,n);const c=kn(t);try{const u=await Mo(o,void 0,"original")||o,d=u.startsWith("data:")?await wn(Mt(u),u):await gi(u);if(d.bytes.length===0)return zt(i,t,n);const{width:f,height:g}=fa(a,l,d.intrinsicWidth,d.intrinsicHeight,c);return new R({children:[new $e({type:d.type,data:d.bytes,transformation:{width:f,height:g}})],alignment:s,spacing:{before:n.before,after:n.after,line:240,lineRule:q.AUTO}})}catch(u){return console.error("Failed to embed inline image for DOCX:",u),zt(i,t,n)}}const pa=/^\s*<([a-z][a-z0-9]*)/i,Zn=e=>{var t,n;return((n=(t=e.match(pa))==null?void 0:t[1])==null?void 0:n.toLowerCase())??""};function ma(e){switch(Zn(e)){case"chartslot":return"chart";case"layoutslot":return"layout";case"h1":return/class="[^"]*section-title-from-h2/i.test(e)?"h2":"h1";case"h2":return"h2";case"h3":return"h3";case"h4":return"h4";case"ul":case"ol":return"list";case"table":return"table";case"hr":return"hr";case"img":return"img";default:return"p"}}const Bt=e=>e!=="table";function xa(e,t){const n=Hn(t.previewContext),r=e.map(s=>n[s]),o=t.containerWidthTwips===void 0,i=e.map((s,c)=>c===0&&!o?r[c].before:0),a=e.map((s,c)=>Bt(s)?r[c].after:0),l=e.map(()=>0);for(let s=1;s<e.length;s++){const c=Math.max(r[s-1].after,r[s].before);l[s]=c,Bt(e[s])?i[s]=Math.max(0,c-a[s-1]):Bt(e[s-1])&&(a[s-1]=c)}return{spacing:e.map((s,c)=>({before:i[c],after:a[c]})),collapsedGap:l}}const ba=2,ya=20;function wa(e){return new R({children:[new H({text:"",size:ba})],spacing:{before:0,after:e,line:ya,lineRule:q.EXACT}})}async function Qn(e,t={},n=!1){var r,o;const i=[],a=/<div[^>]*data-toc-page="[^"]*"[^>]*>.*?<\/div>/gi,l=e.match(a)||[];if(l.length>0){const b=e.match(/<h1[^>]*>(.*?)<\/h1>/i);if(b){const h=ve(t.documentFont),m=(r=t.componentColors)==null?void 0:r.heading,C=(t.leftMarginPx??40)*15,M=(t.rightMarginPx??40)*15,E=Ie(t,"h1");let T;if(m){const A=m.h1;A&&(T=L(A))}i.push(new R({children:[new H({text:((o=b[1])==null?void 0:o.replace(/<[^>]+>/g,"").trim())||"Table of Contents",font:h,size:Ce(E.fontSize),bold:E.bold,italics:E.italic,color:T,underline:E.underline?{}:void 0})],heading:De.HEADING_1,alignment:Qe(E.textAlign),spacing:{before:0,after:Hn(t.previewContext).h1.after,line:Ue(E.fontSize,"h1",t),lineRule:We},indent:{left:C,right:M}}))}for(const h of l)try{const m=la(h,t);m&&i.push(m)}catch(m){console.error("Failed to parse TOC item:",m)}return i}e=e.replace(/<div[^>]*data-page-break="true"[^>]*>.*?<\/div>/gis,""),e=e.replace(/<div[^>]*class="page-break-marker"[^>]*>.*?<\/div>/gis,"");const{html:s,containers:c}=wi(e);e=s;const u=[];if(/data-chart-type=/i.test(e)){const b=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html");b.body.querySelectorAll("[data-chart-type]").forEach(h=>{const m=u.push(h.outerHTML)-1,C=b.createElement("chartslot");C.setAttribute("data-chart-idx",String(m)),h.replaceWith(C)}),e=b.body.innerHTML}e=e.replace(/<div[^>]*class="page-content[^"]*"[^>]*>/gi,""),e=e.replace(/<\/div>/gi,""),e=e.replace(/<p[^>]*>\s*(<img[^>]*>)\s*<\/p>/gi,"$1");const d=/(<h[1-4][^>]*>[\s\S]*?<\/h[1-4]>|<p[^>]*>[\s\S]*?<\/p>|<ul[^>]*>[\s\S]*?<\/ul>|<ol[^>]*>[\s\S]*?<\/ol>|<table[^>]*>[\s\S]*?<\/table>|<hr[^>]*>|<img[^>]*>|<chartslot[^>]*><\/chartslot>|<layoutslot[^>]*><\/layoutslot>)/gi,f=e.match(d)||[],g=f.map(ma),{spacing:x,collapsedGap:P}=xa(g,t);let p=0;for(let b=0;b<f.length;b++){const h=f[b],m=x[b],C=i.length,M=b===0?0:Math.max(0,P[b]-p),E=b===0||g[b]==="table"?m:{before:M,after:m.after};try{switch(Zn(h)){case"chartslot":{const w=h.match(/data-chart-idx="(\d+)"/i),N=w?u[Number(w[1])]:void 0;N?i.push(...await da(N,t,E)):i.push(Dt("chart",t,E));break}case"layoutslot":{const w=h.match(/data-layout-idx="(\d+)"/i),N=w?c[Number(w[1])]:void 0;N?i.push(...await Ni(N,t,Qn)):i.push(Ht("Layout section (see PDF export)",t,E));break}case"h1":{const w=/class="[^"]*section-title-from-h2/i.test(h)?2:1;i.push(dt(h,w,t,E));break}case"h2":i.push(dt(h,2,t,E));break;case"h3":i.push(dt(h,3,t,E));break;case"h4":i.push(dt(h,4,t,E));break;case"ul":i.push(...qn(h,!1,t,E));break;case"ol":i.push(...qn(h,!0,t,E));break;case"table":i.push(Kn(h,t));break;case"hr":i.push(sa(t,E));break;case"img":i.push(await ga(h,t,E));break;default:i.push(Yi(h,t,E))}}catch(w){console.error("Failed to parse block:",h,w)}const T=i[C]instanceof Me,A=T&&i[C-1]instanceof Me;if(C>0&&T&&(A||M>0)&&i.splice(C,0,wa(M)),i.length>C){const w=i[i.length-1]instanceof Me,N=g[b]!=="layout";p=w||!N?0:m.after}}return i.length===0&&i.push(new R({text:"",spacing:{before:0,after:0,line:240,lineRule:q.AUTO}})),i}const va=["MM/DD/YYYY","DD/MM/YYYY","DD MMM YYYY","MMM DD, YYYY","YYYY-MM-DD"];function Pa(e){return typeof e=="string"&&va.includes(e)}const jt=987654321,ft=987654322,Ut=/\{%[^%\n]*%\}/g;function er(e){const t=e.slice(2,-2).toLowerCase();return t==="page_number"?"page-number":t==="total_pages"?"total-pages":"text"}function Ea(e){return JSON.stringify([e.bold??!1,e.italics??!1,e.underline??!1,e.strike??!1,e.color??"",e.fontSizePx??0,e.fontFamily??""])}function _e(e,t,n,r=!1){const o=e==="text"?{kind:e,text:t,...n}:{kind:e,...n};return r?{...o,hiddenAtPageZero:!0}:o}function Ta(e,t){return Ct(e==="page-number"?"{%page_number%}":"{%total_pages%}",{pageNumber:0,variableValues:t.variableValues,currentDateText:t.currentDateText})===""}function Aa(e,t,n){const r=[];let o="",i=null,a={};const l=()=>{i!==null&&o!==""&&r.push(_e("text",o,a)),o="",i=null};for(const s of e){const c=t(s.rawIndex);if(s.kind!=="text"){l(),r.push(_e(s.kind,"",c,Ta(s.kind,n)));continue}if(s.text==="")continue;const u=Ea(c);u!==i&&(l(),i=u,a=c),o+=s.text}return l(),r}function ht(e,t,n){const r={pageNumber:0,variableValues:n.variableValues,currentDateText:n.currentDateText},o=[];let i=0;for(const a of e.matchAll(Ut)){const l=a.index;for(let u=i;u<l;u++)o.push({kind:"text",text:e[u],rawIndex:u});const s=a[0],c=er(s);o.push({kind:c,text:c==="text"?Ct(s,r):"",rawIndex:l}),i=l+s.length}for(let a=i;a<e.length;a++)o.push({kind:"text",text:e[a],rawIndex:a});return Aa(o,t,n)}function tr(e){for(const t of e.matchAll(Ut))if(er(t[0])!=="text")return!0;return!1}function nr(e,t){const n={pageNumber:t.pageNumber,totalPages:t.totalPages,variableValues:t.variableValues,currentDateText:t.currentDateText},r=new Array(e.length+1);let o="",i=0;const a=(l,s)=>{for(let c=l;c<s;c++)r[c]=o.length,o+=e[c]};for(const l of e.matchAll(Ut)){const s=l.index;a(i,s);const c=l[0];for(let u=s;u<s+c.length;u++)r[u]=o.length;o+=Ct(c,n),i=s+c.length}return a(i,e.length),r[e.length]=o.length,{painted:o,paintedOffsets:r}}function rr(e,t){const n=un(e,jt,ft),r=un(e,0,ft)==="",o=[];for(const i of n.split(new RegExp(`(${jt}|${ft})`)))i!==""&&(i===String(jt)?o.push(_e("page-number","",t,r)):i===String(ft)?o.push(_e("total-pages","",t,r)):o.push(_e("text",i,t,r)));return o}function or(e,t,n){const r=e==null?void 0:e.pageNumberFormat;if(!cn(r))return null;const o=Lo(e,n.pageNumber,n.totalPages);return o===void 0?null:{runs:rr(r,t),painted:o}}function Sa(e,t,n){const r=e,o=r==null?void 0:r.pageNumberFormat;if(cn(o))return rr(o,t);const i=r==null?void 0:r.dateFormat;return Pa(i)?[_e("text",Ro(i,n),t)]:null}const ir=new Set(["paragraph","heading","blockquote"]),Ca=e=>(e.content??[]).some(t=>ir.has(t.type??""));function ar(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.content))return null;let n="",r=!1,o=0;const i=a=>{var l;switch(a.type){case"text":n+=a.text??"";return;case"variable":{const s=(l=a.attrs)==null?void 0:l.name;if(typeof s!="string"||s==="")return;r=!0,n+=`{%${s}%}`;return}case"hardBreak":n+=`
2
+ `;return;default:ir.has(a.type??"")&&!Ca(a)&&(o>0&&(n+=`
3
+ `),o++);break}for(const s of a.content??[])i(s)};return i(t),r?n:null}const tt=e=>e==="page",Na=["fontFamily","fontSize","fontWeight","fontStyle","underline","linethrough","fill"];function y(e){return typeof e=="number"&&Number.isFinite(e)}function Wt(e){if(typeof e!="string")return;const t=e.trim(),n=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(t);if(n){const i=n[1];return i.length===3?`#${i.split("").map(a=>a+a).join("")}`.toLowerCase():`#${i.slice(0,6)}`.toLowerCase()}const r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(t);if(!r){const i=t.toLowerCase();if(!/^(?![a-f]+$)[a-z]+$/.test(i)||i in Object.prototype)return;const a=new jo(i);return a.isUnrecognised||a.getAlpha()===0?void 0:`#${a.toHex().toLowerCase()}`}const o=i=>{const a=Math.max(0,Math.min(255,Math.round(Number.parseFloat(i))));return Number.isFinite(a)?a.toString(16).padStart(2,"0"):"00"};return`#${o(r[1])}${o(r[2])}${o(r[3])}`}function _t(e){if(typeof e=="number")return e>=600;if(typeof e!="string")return!1;if(e.toLowerCase()==="bold"||e.toLowerCase()==="bolder")return!0;const t=Number.parseInt(e,10);return Number.isFinite(t)&&t>=600}function lr(e,t){const n={};_t(e.fontWeight)&&(n.bold=!0);const r=e.fontStyle;(r==="italic"||r==="oblique")&&(n.italics=!0),e.underline===!0&&(n.underline=!0),e.linethrough===!0&&(n.strike=!0);const o=Wt(e.fill);return o&&(n.color=o),y(e.fontSize)&&e.fontSize>0&&(n.fontSizePx=e.fontSize*t),typeof e.fontFamily=="string"&&e.fontFamily.trim()!==""&&(n.fontFamily=e.fontFamily.replace(/['"]/g,"").trim()),n}function sr(e){const t={};if(!e)return t;for(const n of Na)e[n]!==void 0&&(t[n]=e[n]);return t}function qt(e,t,n){return e.map(r=>r.runs.reduce((o,i)=>Math.max(o,i.fontSizePx??t),t)*n)}const Fa="000",Ma=.75;let gt;function $a(){if(gt===void 0)try{gt=document.createElement("canvas").getContext("2d")}catch{gt=null}return gt}function cr(e,t,n){const r=$a();if(!r)return null;try{const o=t.fontFamily??"sans-serif";r.font=`${t.italics?"italic ":""}${t.bold?"bold ":""}${n}px "${o}"`;const i=r.measureText(e).width;return y(i)?i:null}catch{return null}}function Ia(e,t,n){const r=t.fontSizePx??n,o=e.length*r*Ma,i=cr(e,t,r);return i===null?o:Math.max(i,o)}const ur=e=>e.lines.some(t=>t.runs.some(n=>n.kind==="page-number"||n.kind==="total-pages"));function Oa(e){const t=e.totalPages;return y(t)&&t>0?String(Math.trunc(t)):Fa}function ka(e,t,n){if(!t||!ur(e))return e;const r=Oa(n),o=e.lines.reduce((i,a,l)=>{var s;const c=((s=e.linePitchPx)==null?void 0:s[l])??e.lineHeightPx,u=a.runs.reduce((d,f)=>d+Ia(f.kind==="text"?f.text??"":r,f,c),0);return Math.max(i,u)},0);return{...e,widthPx:o,align:"left"}}function pt(e){return e==="center"?"center":e==="right"?"right":"left"}function La(e){return e&&typeof e=="object"?e:null}function Ra(e){const t=typeof e.rawText=="string"&&e.rawText!==""?e.rawText:null,n=typeof e.text=="string"?e.text:null;let r=t??n,o=La(t?e.rawStyles:e.styles);if(r===null)return null;if(e.richContent!=null&&!r.includes("{%")){const a=ar(e.richContent);a!==null&&(r=a,o=null)}const i=r.split(`
4
+ `);if(o)for(const[a,l]of Object.entries(o)){const s=Number(a),c=i[s];if(c===void 0||!l||typeof l!="object")return{lines:i,styles:null};for(const u of Object.keys(l))if(Number(u)>=c.length)return{lines:i,styles:null}}return{lines:i,styles:o}}const Ha=e=>e.map((t,n)=>({text:t,sourceLineIndex:n,sourceCharOffset:0}));function dr(e){const t=e._textLines;return!Array.isArray(t)||typeof e.text!="string"?!1:t.length!==e.text.split(`
5
+ `).length}function Da(e,t){const n=e.textLines;if(!Array.isArray(n)||n.length===0||typeof e.text!="string"||t.lines.join(`
6
+ `)!==e.text||e.text.includes("{%")||!e._styleMap||typeof e._styleMap!="object")return null;const r=e._styleMap,o=[];for(const[i,a]of n.entries()){if(typeof a!="string")return null;const l=r[i];if(!l||!y(l.line)||!y(l.offset))return null;const s=t.lines[l.line];if(s===void 0||s.slice(l.offset,l.offset+a.length)!==a)return null;o.push({text:a,sourceLineIndex:l.line,sourceCharOffset:l.offset})}return o}function fr(e){return e.pageNumber===void 0?null:{variableValues:e.variableValues,currentDateText:e.currentDateText,pageNumber:e.pageNumber,totalPages:e.totalPages}}function Gt(e,t,n){const r=fr(n);if(!r||r.pageNumber>0)return!1;const o=or(t,{},r);return o?o.painted==="":!e||!e.some(tr)?!1:e.every(i=>nr(i,r).painted==="")}function za(e,t,n,r,o){if(e.objectType!=="text"||e.visible===!1||e.opacity!==1||e.shadow||typeof e.charSpacing=="number"&&e.charSpacing!==0||e.textBackgroundColor||(y(e.angle)?e.angle!==0:e.angle!=null))return!1;for(const i of t)if((y(i.angle)?i.angle!==0:i.angle!=null)||i.visible===!1||i.opacity!==1||i.shadow)return!1;return n.every(i=>i.trim()==="")||typeof e.text=="string"&&e.text.trim()===""?r:!(!o&&dr(e))}const hr=2,Xt=e=>y(e)&&e>0?e:1;function gr(e,t,n){return!y(e)||!y(t)?null:e>0&&t>0?{widthPx:e,heightPx:t,tolerancePx:n}:null}function Ba(e){var t,n,r;const o=(t=e.getWidth)==null?void 0:t.call(e),i=(n=e.getHeight)==null?void 0:n.call(e);if(!y(o)||!y(i))return null;const a=Xt((r=e.getZoom)==null?void 0:r.call(e));return gr(o/a,i/a,hr+.5/a)}function ja(e){return gr(e.width()/Xt(e.scaleX()),e.height()/Xt(e.scaleY()),hr)}function Ua(e,t,n){if(pr(e,t))return!0;const r=Wa(e,n);return r!==null&&pr(r,t)}function pr(e,t){if(!t)return!1;const{leftPx:n,topPx:r,widthPx:o,heightPx:i}=e;if(!y(n)||!y(r)||!y(o)||!y(i))return!1;const a=t.tolerancePx;return n>=-a&&r>=-a&&n+o<=t.widthPx+a&&r+i<=t.heightPx+a}function Wa(e,t){if(!t)return null;try{return t(e)}catch{return null}}function _a(e,t,n){return n==="center"?(e-t)/2:n==="right"?e-t:0}const mr=e=>typeof e=="string"&&e.startsWith("justify");function xr(e,t){if(t.length===0)return null;let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;for(const o of t){if(!y(o))return null;const i=_a(e.widthPx,o,e.align);n=Math.min(n,i),r=Math.max(r,i+o)}return{leftPx:e.leftPx+n,topPx:e.topPx,widthPx:r-n,heightPx:e.heightPx}}function qa(e){const{widthPx:t,heightPx:n,lineHeightPx:r}=e;return!y(t)||!y(n)||!y(r)?!1:t>0&&n>0&&r>0}const br=.5;function Ga(e,t){const n=Math.min(e.leftPx+e.widthPx,t.leftPx+t.widthPx)-Math.max(e.leftPx,t.leftPx),r=Math.min(e.topPx+e.heightPx,t.topPx+t.heightPx)-Math.max(e.topPx,t.topPx);return n>br&&r>br}function yr(e,t){var n;const r=t.indexOf.get(e);if(r===void 0)return!1;const o=(n=t.steps[r])==null?void 0:n.rect;if(!o)return!1;for(let i=r+1;i<t.steps.length;i+=1){const a=t.steps[i];if(a.occludes&&(!a.rect||Ga(o,a.rect)))return!0}return!1}function wr(e){return Array.isArray(e._objects)?e._objects:typeof e.getObjects=="function"?e.getObjects():[]}const Xa=new Set(["text","itext","i-text","textbox"]);function Va(e){return e.visible===!1||e.excludeFromExport===!0?!1:!y(e.opacity)||e.opacity>0}function Ya(e){return e.textBackgroundColor?!0:e.objectType==="text"?!1:!Xa.has(String(e.type??"").toLowerCase())}function Ka(e){var t;const n=(t=e.getBoundingRect)==null?void 0:t.call(e);return!n||!y(n.left)||!y(n.top)||!y(n.width)||!y(n.height)?null:{leftPx:n.left,topPx:n.top,widthPx:n.width,heightPx:n.height}}function Ja(e){const t=[],n=new Map,r=(o,i)=>{for(const a of o){if(!a||typeof a!="object")continue;const l=a,s=i&&Va(l),c=wr(l);if(c.length>0){r(c,s);continue}n.set(l,t.length),t.push({occludes:s&&Ya(l),rect:Ka(l)})}};return r(e,!0),{steps:t,indexOf:n}}let qe=0;function Za(e){if(typeof e.id=="string"&&e.id!=="")return e.id;qe+=1;const t=`band-text-lift-${qe}`;return e.id=t,t}function Vt(e,t,n,r,o,i,a,l){if(!Ua(t,a,l)||r==="page"&&ur(t))return;const s=r==="page"?t:ka(t,o,i);qa(s)&&(e.items.push(s),e.liftedObjectIds.push(n()))}function vr(e,t,n){let r=1;for(const o of[...t,e]){const i=o[n];y(i)&&i>0&&(r*=i)}return r}function Qa(e,t,n){if(!zo(t))return e;const r=[];let o="";if(e.forEach((l,s)=>{s>0&&(o+=n[s]?`
7
+ `:" "),l.runs.forEach((c,u)=>{c.kind!=="text"||typeof c.text!="string"||(r.push({line:s,run:u,start:o.length,length:c.text.length}),o+=c.text)})}),r.length===0)return e;const i=Bo(o,t),a=e.map(l=>({...l,runs:l.runs.map(s=>({...s}))}));for(const l of r)a[l.line].runs[l.run].text=i.slice(l.start,l.start+l.length);return a}function el(e,t,n,r,o,i){var a;const l=(a=e.getBoundingRect)==null?void 0:a.call(e);if(!l||!y(l.left)||!y(l.top))return null;const s=vr(e,t,"scaleY"),c=sr(e),u=lr(c,s),d=Sa(e,u,o),f=!d&&i&&dr(e),g=f?Da(e,n):null;if(f&&!g)return null;const x=d?null:g??Ha(n.lines),P=d?[{runs:d}]:x.map(({text:m,sourceLineIndex:C,sourceCharOffset:M})=>({runs:ht(m,E=>{var T,A;const w=(A=(T=n.styles)==null?void 0:T[C])==null?void 0:A[M+E];return w?lr({...c,...sr(w)},s):u},r)}));if(P.every(m=>m.runs.length===0))return null;const p=x?x.map((m,C)=>C===0||m.sourceLineIndex!==x[C-1].sourceLineIndex):[!0],b=y(e.fontSize)&&e.fontSize>0?e.fontSize:0,h=y(e.lineHeight)&&e.lineHeight>0?e.lineHeight:1;return{leftPx:l.left,topPx:l.top,widthPx:l.width,heightPx:l.height,align:pt(e.textAlign),lineHeightPx:b*h*s,linePitchPx:qt(P,b*s,h),lines:Qa(P,e.textTransform,p)}}function tl(e){return String(e.type??"").toLowerCase()!=="textbox"}function nl(e,t,n){if(mr(e.textAlign))return null;const r=e._textLines;if(!Array.isArray(r)||r.length===0||typeof e.getLineWidth!="function")return null;const o=[];for(let i=0;i<r.length;i+=1){const a=e.getLineWidth(i);if(!y(a))return null;o.push(a*n)}return xr(t,o)}function Pr(e,t,n,r,o,i,a,l){for(const s of e){if(!s||typeof s!="object")continue;const c=s,u=Ra(c),d=r==="band"&&Gt((u==null?void 0:u.lines)??null,c,n);if(u&&za(c,t,u.lines,d,tt(r))){if(yr(c,l))continue;const g=el(c,t,u,n,o,tt(r));g&&Vt(i,g,()=>Za(c),r,tl(c),n,a,x=>nl(c,x,vr(c,t,"scaleX")));continue}const f=wr(c);f.length>0&&Pr(f,[...t,c],n,r,o,i,a,l)}}const rl=e=>[...Array.isArray(e.children)?e.children:[],...Array.isArray(e.objects)?e.objects:[]];function ol(e,t){const n=e==null?void 0:e.objects;if(!Array.isArray(n))return null;const r=[...n];for(;r.length>0;){const o=r.shift();if(!(!o||typeof o!="object")){if(o.id===t)return o;r.push(...rl(o))}}return null}function il(e,t){const n=ol(e,t.id);if(!n)return null;if(Ho(n))return n;if(t.textIndex<0)return null;const r=[];return Do([n],o=>r.push(o)),r[t.textIndex]??null}function Er(e,t){return!t||e.sourceCanvasJson==null?null:il(e.sourceCanvasJson,t)}function Yt(e){if(!e)return null;const t=typeof e.text=="string"?e.text:null,n=ar(e.richContent)??t;return n===null?null:n.split(`
8
+ `)}const mt=e=>e.replace(/\s+/g," ").trim();function al(e){const{kind:t,text:n,hiddenAtPageZero:r,...o}=e;return o}function Tr(e){var t;const n=[];for(const r of e.runs){const o=al(r);for(let i=0;i<(((t=r.text)==null?void 0:t.length)??0);i++)n.push(o)}return n}function Ar(e,t,n,r){const o=fr(n);if(!t||!o)return e;const i=e.lines.map(u=>u.runs.map(d=>d.text??"").join("")),a=u=>Tr(e.lines[u]??{runs:[]})[0]??r,l=or(t,a(0),o);if(l)return e.lines.length!==1||mt(l.painted)!==mt(i[0])?e:{...e,lines:[{runs:l.runs}]};const s=Yt(t);if(s===null||!s.some(tr)||s.length!==e.lines.length)return e;const c=s.map(u=>nr(u,o));for(const[u,d]of i.entries())if(mt(c[u].painted)!==mt(d))return e;return{...e,lines:s.map((u,d)=>{const f=Tr(e.lines[d]),g=c[d].paintedOffsets,x=a(d);return{runs:ht(u,P=>f[g[P]??0]??x,n)}})}}function ll(){var e;const t=(e=globalThis.Konva)==null?void 0:e.stages;return Array.isArray(t)?t:[]}function sl(e){return ll().find(t=>{var n,r;return(r=(n=t.container)==null?void 0:n.call(t))==null?void 0:r.contains(e)})??null}function Sr(e,t){const n={},r=typeof e.fontStyle()=="string"?e.fontStyle():"";/italic|oblique/i.test(r)&&(n.italics=!0),_t(r.replace(/italic|oblique|normal/gi,"").trim())&&(n.bold=!0);const o=typeof e.textDecoration()=="string"?e.textDecoration():"";o.includes("underline")&&(n.underline=!0),o.includes("line-through")&&(n.strike=!0);const i=Wt(e.fill());i&&(n.color=i);const a=e.fontSize();y(a)&&a>0&&(n.fontSizePx=a*t);const l=Mr(e.fontFamily());return l&&(n.fontFamily=l),n}function cl(e){for(let r=e.getParent();r;r=r.getParent()){const o=r.id();if(!(typeof o!="string"||o==="")){if(r.find("Text").length===1)return o;break}}const t=e.id();if(typeof t=="string"&&t!=="")return t;qe+=1;const n=`band-text-lift-${qe}`;return e.id(n),n}function ul(e,t,n){if(!e.isVisible()||e.getAbsoluteOpacity()!==1||e.hasShadow()||e.getAbsoluteRotation()!==0)return!1;const r=e.text();if(typeof r!="string")return!1;if(r.trim()==="")return t;const o=e.textArr;return!Array.isArray(o)||o.length===r.split(`
9
+ `).length?!0:n&&!r.includes("{%")}function dl(e,t){const n=e.text().split(`
10
+ `);if(!t)return n;const r=e.textArr;return!Array.isArray(r)||r.length===n.length?n:r.map(o=>typeof(o==null?void 0:o.text)=="string"?o.text:"")}function Cr(e,t){var n;const r=(n=e.attrs)==null?void 0:n[t];return r==null||r==="auto"}function Nr(e){const t=e.getAbsoluteScale();return y(t==null?void 0:t.y)&&t.y>0?t.y:1}function fl(e,t,n,r,o){const i=e.getClientRect({relativeTo:t,skipShadow:!0,skipStroke:!0});if(!i||!y(i.x)||!y(i.y))return null;const a=e.getAbsoluteScale(),l=y(a==null?void 0:a.x)&&a.x>0?a.x:1,s=Nr(e),c=Sr(e,s),u=dl(e,o),d=u.map(m=>({runs:ht(m,()=>c,n)}));if(!r&&d.every(m=>m.runs.length===0))return null;const f=y(e.fontSize())?e.fontSize():0,g=f*(y(e.lineHeight())?e.lineHeight():1),x=u.length*g,P=y(e.padding())?e.padding():0,p=e.verticalAlign(),b=e.getHeight()-x-P*2,h=Cr(e,"height")?0:p==="middle"?b/2:p==="bottom"?b:0;return{leftPx:i.x+P*l,topPx:i.y+(P+h)*s,widthPx:i.width-P*2*l,heightPx:x*s,align:pt(e.align()),lineHeightPx:g*s,linePitchPx:qt(d,f*s,y(e.lineHeight())?e.lineHeight():1),lines:d}}function hl(e,t){if(mr(e.align()))return null;const n=e.textArr;if(!Array.isArray(n)||n.length===0)return null;const r=e.getAbsoluteScale(),o=y(r==null?void 0:r.x)&&r.x>0?r.x:1,i=[];for(const a of n){if(!y(a==null?void 0:a.width))return null;i.push(a.width*o)}return xr(t,i)}function gl(e){for(let n=e.getParent();n;n=n.getParent()){const r=n.id();if(!(typeof r!="string"||r===""))return{id:r,textIndex:n.find("Text").indexOf(e)}}const t=e.id();return typeof t=="string"&&t!==""?{id:t,textIndex:0}:null}function pl(e){return!e.isVisible()||e.getClassName()==="Text"?!1:e.getAbsoluteOpacity()>0}function ml(e,t){const n=e.getClientRect({relativeTo:t});return!n||!y(n.x)||!y(n.y)||!y(n.width)||!y(n.height)?null:{leftPx:n.x,topPx:n.y,widthPx:n.width,heightPx:n.height}}function xl(e){const t=[],n=new Map,r=o=>{var i;const a=(i=o.getChildren)==null?void 0:i.call(o);if(a){for(const l of a)r(l);return}n.set(o,t.length),t.push({occludes:pl(o),rect:ml(o,e)})};return r(e),{steps:t,indexOf:n}}function Fr(e,t,n,r,o,i,a){var l;if(e.getClassName()==="Text"){const c=e,u=r==="band"?Er(n,gl(c)):null,d=r==="band"&&Gt(Yt(u),u,n);if(!ul(c,d,tt(r))||yr(c,a))return;const f=fl(c,t,n,d,tt(r));if(!f)return;const g=Ar(f,u,n,Sr(c,Nr(c)));if(g.lines.every(x=>x.runs.length===0))return;Vt(o,g,()=>cl(c),r,Cr(c,"width"),n,i,x=>hl(c,x));return}const s=(l=e.getChildren)==null?void 0:l.call(e);if(s)for(const c of s)Fr(c,t,n,r,o,i,a)}function xt(e){const t=/^(-?\d*\.?\d+)px$/.exec((e??"").trim());if(!t)return;const n=Number.parseFloat(t[1]);return Number.isFinite(n)?n:void 0}function Mr(e){var t;if(typeof e!="string")return;const n=(t=e.split(",")[0])==null?void 0:t.replace(/['"]/g,"").trim();return n!==void 0&&n!==""?n:void 0}const bl="ul, ol, mark, img, table",nt=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","LI"]),Kt=e=>Array.from(e.children).some(t=>nt.has(t.tagName));function bt(e,t){const n={...t};switch(e.tagName){case"STRONG":case"B":n.bold=!0;break;case"EM":case"I":n.italics=!0;break;case"U":n.underline=!0;break;case"S":case"STRIKE":case"DEL":n.strike=!0;break}const r=e.style;r.fontWeight!==""&&(_t(r.fontWeight)?n.bold=!0:delete n.bold),(r.fontStyle==="italic"||r.fontStyle==="oblique")&&(n.italics=!0);const o=`${r.textDecoration} ${r.textDecorationLine}`;o.includes("underline")&&(n.underline=!0),o.includes("line-through")&&(n.strike=!0);const i=Wt(r.color);i&&(n.color=i);const a=Mr(r.fontFamily);a&&(n.fontFamily=a);const l=xt(r.fontSize);return l!==void 0&&l>0&&(n.fontSizePx=l),n}function $r(e){const t=(r,o)=>{if(r.nodeType===Node.TEXT_NODE)return o;if(r.nodeType!==Node.ELEMENT_NODE)return null;const i=r;if(i.tagName==="BR")return null;const a=bt(i,o);for(const l of Array.from(i.childNodes)){const s=t(l,a);if(s)return s}return i.childNodes.length===0?a:null},n=bt(e,{});for(const r of Array.from(e.childNodes)){const o=t(r,n);if(o)return o}return n}function yl(e,t){const n=[""],r=[[]];let o=0;const i=()=>{n.push(""),r.push([])},a=(s,c)=>{const u=n.length-1;n[u]+=s;for(let d=0;d<s.length;d++)r[u].push(c)},l=(s,c)=>{if(s.nodeType===Node.TEXT_NODE){a(s.textContent??"",c);return}if(s.nodeType!==Node.ELEMENT_NODE)return;const u=s;if(u.tagName==="BR"){const f=u.parentElement;(!f||!nt.has(f.tagName)||f.childNodes.length!==1)&&i();return}nt.has(u.tagName)&&!Kt(u)&&(o>0&&i(),o+=1);const d=bt(u,c);for(const f of Array.from(u.childNodes))l(f,d)};for(const s of Array.from(e.childNodes))l(s,t);return{lines:n,charStyles:r}}const wl=(e,t)=>e.bold===t.bold&&e.italics===t.italics&&e.underline===t.underline&&e.strike===t.strike&&e.color===t.color&&e.fontSizePx===t.fontSizePx&&e.fontFamily===t.fontFamily;function vl(e){let t=null;for(const n of e.charStyles)for(const r of n)if(t===null)t=r;else if(!wl(t,r))return null;return t}const Pl=1,El=e=>e.replace(/\s+/g," ");function Tl(e){const t=[];let n=0;for(let r=1;r<e.length;r++)/\s/.test(e[r-1])&&!/\s/.test(e[r])&&(t.push(e.slice(n,r)),n=r);return t.push(e.slice(n)),t}function Al(e,t,n,r){const o=s=>cr(El(s),t,n),i=o(e);if(i===null||i<=r)return[e];const a=[];let l="";for(const s of Tl(e)){const c=l+s,u=o(c.trimEnd());if(u===null)return[e];l.trim()!==""&&u>r?(a.push(l.trimEnd()),l=s):l=c}return a.push(l),a}function Sl(e,t,n){if(Ir(t)||e.lines.some(l=>l.includes("{%")))return e;const r=vl(e),o=r==null?void 0:r.fontSizePx;if(!r||!y(o)||o<=0)return e;const i=[],a=[];for(const l of e.lines)for(const s of Al(l,r,o,n+Pl))i.push(s),a.push(new Array(s.length).fill(r));return{lines:i,charStyles:a}}function Cl(e){for(const t of Array.from(e.querySelectorAll("*")))if(nt.has(t.tagName)&&!Kt(t)){if(t.style.textAlign!=="")return pt(t.style.textAlign);break}return pt(e.style.textAlign)}function Nl(e,t,n,r){if(e.querySelector(bl))return null;const o=e.style.opacity;if(o!==""&&Number.parseFloat(o)!==1)return null;const i=/rotate\(\s*(-?\d*\.?\d+)deg/.exec(e.style.transform??"");if(i&&Number.parseFloat(i[1])!==0)return null;const a=Number.parseFloat(e.dataset.expectedLeft??""),l=Number.parseFloat(e.dataset.expectedTop??""),s=xt(e.style.width)??xt(e.style.minWidth);if(!y(a)||!y(l)||s===void 0||s<=0)return null;const c=bt(e,{}),u=c.fontSizePx??0,d=Number.parseFloat(e.style.lineHeight);if(u<=0||!y(d)||d<=0)return null;const f=yl(e,c),g=r?Sl(f,e,s):f,x=g.lines.map((h,m)=>({runs:ht(h,C=>{var M;return((M=g.charStyles[m])==null?void 0:M[C])??c},t)}));if(!n&&x.every(h=>h.runs.length===0))return null;const P=x.every(h=>h.runs.length===0)?$r(e).fontSizePx??u:u,p=qt(x,Math.max(u,P),d),b=p.reduce((h,m)=>h+m,0);return e.offsetHeight>b+2?null:{leftPx:a,topPx:l,widthPx:s,heightPx:b,align:Cl(e),lineHeightPx:u*d,linePitchPx:p,lines:x}}function Fl(e,t){const n=e.getBoundingClientRect();if(!y(n==null?void 0:n.left)||!y(n.top))return null;const r=n.width>0&&e.offsetWidth>0?n.width/e.offsetWidth:1;if(!y(r)||r<=0)return null;const o=Array.from(e.querySelectorAll("*")).filter(c=>nt.has(c.tagName)&&!Kt(c));let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;for(const c of o.length>0?o:[e]){const u=document.createRange();u.selectNodeContents(c);const d=u.getBoundingClientRect();if(!y(d==null?void 0:d.left)||!y(d.top)||!y(d.width)||!y(d.height))return null;i=Math.min(i,d.left),a=Math.min(a,d.top),l=Math.max(l,d.left+d.width),s=Math.max(s,d.top+d.height)}return!y(i)||!y(a)?null:{leftPx:t.leftPx+(i-n.left)/r,topPx:t.topPx+(a-n.top)/r,widthPx:(l-i)/r,heightPx:(s-a)/r}}const Ir=e=>xt(e.style.width)===void 0;function Ml(e){const t=e.dataset.objId;if(typeof t=="string"&&t!=="")return t;qe+=1;const n=`band-text-lift-${qe}`;return e.dataset.objId=n,n}function $l(e){return e.querySelector("canvas.lower-canvas")??e.querySelector("canvas")}function Or(e,t,n,r){var o,i,a;try{const l=$l(e);if(!l)return null;const s=l.__fabric;if(s&&typeof s.getObjects=="function"){const u={items:[],liftedObjectIds:[]},d=Ba(s);d||(o=r==null?void 0:r.onUnreadableBounds)==null||o.call(r);const f=s.getObjects();return Pr(f,[],t,n,new Date,u,d,Ja(f)),u}const c=sl(l);if(c){const u={items:[],liftedObjectIds:[]},d=ja(c);d||(i=r==null?void 0:r.onUnreadableBounds)==null||i.call(r),Fr(c,c,t,n,u,d,xl(c));for(const f of Array.from(e.querySelectorAll(".text-rich-display"))){const g=f.dataset.objId,x=n==="band"&&g?Er(t,{id:g,textIndex:0}):null,P=n==="band"&&Gt(Yt(x),x,t),p=Nl(f,t,P,tt(n));if(!p)continue;const b=Ar(p,x,t,$r(f));b.lines.every(h=>h.runs.length===0)||Vt(u,b,()=>Ml(f),n,Ir(f),t,d,h=>Fl(f,h))}return u}return null}catch(l){return(a=r==null?void 0:r.onError)==null||a.call(r,l),null}}function Il(e,t,n){return Or(e,t,"band",n)}function Ol(e,t,n){return Or(e,t,"page",n)}const kl=9525,Ll=15,Ge=e=>Math.round(e*kl),Rl=e=>Math.round(e*Ll),Hl="http://schemas.openxmlformats.org/drawingml/2006/main",Dl="http://schemas.microsoft.com/office/word/2010/wordprocessingShape",zl={left:X.LEFT,center:X.CENTER,right:X.RIGHT},kr=900,Bl=251658240,jl=e=>({id:kr+e,name:`Editable text ${kr+e}`,relativeHeight:Bl+e});function Ne(e){const t=dn.fromXmlString(e).root,[n,...r]=t;if(r.length>0||!(n instanceof dn))throw new Error(`expected exactly one root element, got ${t.length}, in: ${e}`);return n}function Lr(e,t,n){if(!Number.isFinite(e)||e<=0)throw new Error(`anchored text box ${t} is not a positive EMU extent (${e}) for "${n.name}": ${n.widthPx}x${n.heightPx}px at (${n.pageLeftPx}, ${n.pageTopPx})`);return e}function Ul(e){const t=Lr(Ge(e.widthPx),"cx",e),n=Lr(Ge(e.heightPx),"cy",e),r=Ne(`<wps:wsp><wps:cNvSpPr txBox="1"/><wps:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${t}" cy="${n}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln><a:noFill/></a:ln></wps:spPr></wps:wsp>`),o=Ne("<w:txbxContent/>");for(const u of e.lines)o.push(new R({alignment:zl[e.align],spacing:{before:0,after:0,line:Rl(u.linePitchPx),lineRule:q.EXACT},children:[...u.runs]}));const i=Ne("<wps:txbx/>");i.push(o),r.push(i),r.push(Ne('<wps:bodyPr rot="0" spcFirstLastPara="0" vertOverflow="overflow" horzOverflow="overflow" vert="horz" wrap="square" lIns="0" tIns="0" rIns="0" bIns="0" numCol="1" spcCol="0" rtlCol="0" fromWordArt="0" anchor="t" anchorCtr="0" forceAA="0" compatLnSpc="1"><a:prstTxWarp prst="textNoShape"><a:avLst/></a:prstTxWarp><a:spAutoFit/></wps:bodyPr>'));const a=Ne(`<a:graphicData uri="${Dl}"/>`);a.push(r);const l=Ne(`<a:graphic xmlns:a="${Hl}"/>`);l.push(a);const s=Ne(`<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="${e.relativeHeight}" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1"><wp:simplePos x="0" y="0"/><wp:positionH relativeFrom="page"><wp:posOffset>${Ge(e.pageLeftPx)}</wp:posOffset></wp:positionH><wp:positionV relativeFrom="page"><wp:posOffset>${Ge(e.pageTopPx)}</wp:posOffset></wp:positionV><wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:wrapNone/><wp:docPr id="${e.id}" name="${e.name}"/><wp:cNvGraphicFramePr/></wp:anchor>`);s.push(l);const c=Ne("<w:drawing/>");return c.push(s),c}const Wl=e=>new R({children:[new H({children:[Ul(e)]})],spacing:{before:0,after:0,line:1,lineRule:q.EXACT}}),Rr=1.5,_l=.02,Hr=16,ql=.5/Rr;function Dr(e,t){let n=0;for(const r of e.lines)for(const o of r.runs){const i=(o.fontSizePx??Hr)*t;i>0&&(n=Math.max(n,ql/i))}return n}const Gl=e=>Math.round(e*Rr);function Xl(e,t,n){return e==="center"?t-n/2:e==="right"?t-n:t}const Vl=(e,t,n)=>({font:ve(e.fontFamily??t),size:Gl((e.fontSizePx??Hr)*n),color:e.color,bold:e.bold,italics:e.italics,strike:e.strike,underline:e.underline?{}:void 0}),zr=e=>e.totalPagesAsField||e.resolvedTotalPages===void 0;function Yl(e,t){return e.kind==="page-number"?{field:"PAGE"}:e.kind==="total-pages"?zr(t)?{field:"NUMPAGES"}:{literal:t.resolvedTotalPages??""}:{literal:e.text??""}}function Kl(e,t,n,r){const o=Vl(e,t,r);return e.hiddenAtPageZero?[...ki(Yl(e,n),o)]:e.kind==="page-number"?[$i(o)]:e.kind==="total-pages"?[zr(n)?Ii(o):new H({...o,text:n.resolvedTotalPages??""})]:[new H({...o,text:e.text??""})]}function Br(e,t,n,r){const o=e.widthPx*t.scale,i=o*(_l+(t.extraWidthPadRatio??0));return Wl({...jl(t.itemIndex),pageLeftPx:Xl(e.align,t.pageLeftPx,i),pageTopPx:t.pageTopPx,widthPx:o+i,heightPx:e.heightPx*t.scale,align:e.align,lines:e.lines.map((a,l)=>{var s;return{linePitchPx:(((s=e.linePitchPx)==null?void 0:s[l])??e.lineHeightPx)*t.scale,runs:a.runs.flatMap(c=>Kl(c,n,r,t.scale))}})})}function jr(e){return new R({children:[new $e({type:e.type,data:e.data,transformation:{width:e.widthPx,height:e.heightPx},floating:{horizontalPosition:{relative:_o.PAGE,offset:Ge(e.offsetXPx)},verticalPosition:{relative:Wo.PAGE,offset:Ge(e.offsetYPx)},behindDocument:!0,allowOverlap:!0,wrap:{type:Uo.NONE}}})],spacing:{before:0,after:0,line:1,lineRule:q.EXACT}})}const Jl=(e,t)=>t.bandKind==="header"?e.topPx:t.pageHeightPx-t.bandHeightPx+e.topPx,Zl=e=>e.bandKind==="header"?0:e.pageHeightPx-e.bandHeightPx,Ql=(e,t)=>new R({children:[new $e({type:e.type,data:e.data,transformation:{width:t.pageWidthPx,height:t.bandHeightPx}})],spacing:{before:0,after:0,line:240,lineRule:q.AUTO}});function es(e,t,n,r,o){return e.items.length===0?[Ql(t,n)]:[jr({...t,widthPx:n.pageWidthPx,heightPx:n.bandHeightPx,offsetXPx:0,offsetYPx:Zl(n)}),...e.items.map((i,a)=>Br(i,{pageLeftPx:i.leftPx,pageTopPx:Jl(i,n),scale:1,itemIndex:a,extraWidthPadRatio:Dr(i,1)},r,o))]}const ts={totalPagesAsField:!1},ns=e=>e.displayWidthPx/e.canvasWidthPx,rs=e=>e.displayHeightPx/e.canvasHeightPx;function Ur(e,t,n){if(!Number.isFinite(e)||e<=0)throw new Error(`canvas page ${t} scale is not a positive number (${e}): ${JSON.stringify(n)}`);return e}const os=(e,t)=>new R({children:[new $e({type:e.type,data:e.data,transformation:{width:t.displayWidthPx,height:t.displayHeightPx}})],spacing:{before:0,after:0,line:240,lineRule:q.AUTO},alignment:X.CENTER});function is(e){for(const t of e.lines)for(const n of t.runs){if(n.kind!=="text")throw new Error(`page extraction produced field run kind: ${n.kind}`);if(n.hiddenAtPageZero)throw new Error("page extraction produced a page-zero conditional run")}}function as(e,t,n,r,o=0){if(e.items.length===0)return[os(t,n)];e.items.forEach(is);const i=Ur(ns(n),"horizontal",n),a=Ur(rs(n),"vertical",n);return[jr({...t,widthPx:n.displayWidthPx,heightPx:n.displayHeightPx,offsetXPx:n.offsetXPx,offsetYPx:0}),...e.items.map((l,s)=>Br(l,{pageLeftPx:l.leftPx*i+n.offsetXPx,pageTopPx:l.topPx*a,scale:i,itemIndex:o+s,extraWidthPadRatio:Dr(l,i)},r,ts))]}const ls="data-table-continuation",ss="data-cloned-header-row",cs="data-paragraph-continuation",us="data-list-continuation",ds=["UL","OL"],fs='[data-page-break="true"]',hs=e=>/display:\s*none/.test(e.getAttribute("style")??""),Wr=e=>Array.from(e.children).filter(t=>!hs(t)),Jt=(e,t,n,r)=>e.tagName===n&&t.tagName===n&&e.getAttribute(r)==="true",gs=(e,t)=>{const n=e.querySelector(":scope > tbody")??e;t.querySelectorAll(":scope > tbody > tr, :scope > tr").forEach(r=>{r.getAttribute(ss)!=="true"&&n.appendChild(r)})},_r=e=>e.querySelector(fs)!==null;function ps(e,t){const n=Wr(e),r=n[n.length-1],o=Wr(t)[0];if(r&&o){if(Jt(o,r,"TABLE",ls))gs(r,o),o.remove();else if(Jt(o,r,"P",cs))r.textContent=`${r.textContent??""} ${o.textContent??""}`.trim(),o.remove();else if(ds.some(i=>Jt(o,r,i,us))){for(;o.firstChild;)r.appendChild(o.firstChild);o.remove()}}for(;t.firstChild;)e.appendChild(t.firstChild)}const ms=8,xs=40,Zt=4,bs=95,ys=4e8,ws=e=>e.width*e.height*Zt*Zt,vs={format:"jpeg",quality:bs},Ps={format:"png",omitBackground:!0},yt=e=>`page:${e}`,Xe=(e,t)=>`${t}:${e}`,qr=e=>e&&e.items.length>0?e.liftedObjectIds:void 0;async function Es(e){await Go(),await ri(e)}async function Ts(e,t,n,r,o){const i=[],a=new Map,l=new Map,s=new Map,c=d=>d instanceof Error?d.message:String(d),u=(d,f,g,x)=>{const P=`${x}|${g.width}x${g.height}|${f}`;let p=l.get(P);p===void 0&&(p=i.length,i.push({html:f,dimensions:g,kind:x}),l.set(P,p)),a.set(d,p)};for(let d=0;d<e.length;d++){const f=e[d],g=t[d],x=n[d];if(!f||!g||!x)continue;if(it(f)){try{const p=qr(o==null?void 0:o.get(d)),b=Xo(f),h=f.useFabric?(await xn(x,{...p?{hideObjectIds:p,stripRichTextOverlays:!0}:{},expectNonBlankCanvas:b})).outerHTML:await ni(x,g.width,g.height,d+1,{...p?{hideObjectIds:p}:{},expectNonBlankCanvas:b});h&&u(yt(d),h,{width:g.width,height:g.height},"page")}catch(p){s.set(yt(d),c(p)),console.warn(`DOCX server capture: could not build HTML for page ${d+1}`,p)}continue}if(f.skipHeaderFooter)continue;const P=[{kind:"header",selector:".docx-export-header",height:g.headerBand},{kind:"footer",selector:".docx-export-footer",height:g.footerBand}];for(const p of P){const b=x.querySelector(p.selector);if(!b)continue;const h=Xe(d,p.kind);try{const m=qr(r==null?void 0:r.get(h)),C=await xn(b,m?{hideObjectIds:m,stripRichTextOverlays:!0}:{});u(h,C.outerHTML,{width:g.width,height:p.height},"band")}catch(m){s.set(h,c(m)),console.warn(`DOCX server capture: could not build ${p.kind} HTML for page ${d+1}`,m)}}}if(r)for(const d of r.keys())a.has(d)||console.warn(`DOCX server capture: band extraction "${d}" has no capture job \u2014 its band will not be lifted`);if(o)for(const d of o.keys()){const f=yt(d);if(!a.has(f)){const g=s.get(f)??"no HTML was produced for it";console.warn(`DOCX server capture: page extraction for page ${d+1} has no capture job (${g}) \u2014 that page has no server image either, so the export will fail with a named capture miss`)}}return{entries:i,keyToEntry:a,jobFailures:s}}async function As(e){const{pages:t,geometry:n,documentFont:r,componentColors:o,documentMargins:i,bandExtractions:a,pageExtractions:l}=e,s=new Map;try{const c=t.map((T,A)=>document.getElementById(`page-${A+1}`));await Es(c);const{entries:u,keyToEntry:d,jobFailures:f}=await Ts(t,n,c,a,l);if(u.length===0)return{images:s,jobFailures:f};const{styles:g,customProperties:x}=await ti(r,o,i,u.map(T=>T.html)),P=new Array(u.length).fill(null);let p;const b=(T,A)=>{const w=[];let N=[],j=0;for(const V of T){const se=ws(u[V].dimensions),ne=N.length>=A,ae=j+se>ys;N.length>0&&(ne||ae)&&(w.push(N),N=[],j=0),N.push(V),j+=se}return N.length>0&&w.push(N),w},h=async(T,A,w)=>{for(const N of b(T,w))try{const j=await qo({pages:N.map(V=>u[V].html),styles:g,fontFamily:r||"system-ui, sans-serif",customProperties:x,dimensions:{width:Se.US_LETTER.width,height:Se.US_LETTER.height},pageDimensions:N.map(V=>u[V].dimensions),pixelRatio:Zt,...A});N.forEach((V,se)=>{P[V]=j[se]??null})}catch(j){p??(p=j instanceof Error?j.message:String(j)),console.error("DOCX server capture: page-image batch failed",j)}},m=T=>u.reduce((A,w,N)=>(w.kind===T&&A.push(N),A),[]),C=async T=>{const A=w=>T.filter(N=>u[N].kind===w);await h(A("page"),vs,ms),await h(A("band"),Ps,xs)},M=()=>u.reduce((T,A,w)=>(P[w]||T.push(w),T),[]);await C([...m("page"),...m("band")]);const E=M();if(E.length>0){const T=new Set(E),A=[];d.forEach((j,V)=>{T.has(j)&&A.push(V)}),await C(E);const w=M(),N=p??null;w.length===0&&(p=void 0),fn({error:new Error("DOCX export: server page capture retried"),extra:{context:"exportPreviewToDocx.serverCaptureRetry",retriedJobKeys:A,retriedEntryCount:E.length,recoveredCount:E.length-w.length,stillMissingCount:w.length,firstPassFailureReason:N}})}return d.forEach((T,A)=>{s.set(A,P[T]??null)}),{images:s,jobFailures:f,...p?{failureReason:p}:{}}}catch(c){if(hn(c))throw c;return console.error("DOCX server capture: pre-pass failed",c),{images:s,jobFailures:new Map,failureReason:c instanceof Error?c.message:String(c)}}}function Ss(e){if(e.length===0)return null;const t=e.reduce((o,i)=>Math.max(o,i.reduce((a,l)=>a+(l.colSpan||1),0)),0);if(t===0)return null;const n=e.find(o=>o.length===t&&o.every(i=>(i.colSpan||1)===1));if(!n)return null;const r=n.map(o=>o.widthPx);return r.some(o=>!o||o<=0)?null:r.map(o=>Math.round(o*15))}const Gr="img, table, canvas, svg, hr",Cs=e=>e.split(";").some(t=>{const n=t.indexOf(":");if(n===-1)return!1;const r=t.slice(0,n).trim().toLowerCase();return r!=="background"&&r!=="background-image"?!1:t.slice(n+1).toLowerCase().includes("url(")}),Ns=e=>[e,...Array.from(e.querySelectorAll("[style]"))].some(t=>Cs(t.getAttribute("style")??"")),Fs=e=>(e.textContent??"").trim()!==""||e.matches(Gr)||e.querySelector(Gr)?!1:!Ns(e);function Xr(e){let t=e.lastElementChild;for(;t&&Fs(t);)t.remove(),t=e.lastElementChild}function wt(e){return yn(e)==="jpg"?"jpg":"png"}class Qt extends Error{constructor(t){super(t),this.name="DocxServerCaptureError"}}const Vr=10,Ms=Se.US_LETTER.width,$s=Se.US_LETTER.height,Is=.15,Os=4,Yr=e=>ei(e),Kr=e=>{if(Qo(e)){const n=pe(e.canvasWidth/96),r=pe(e.canvasHeight/96);return e.canvasWidth>e.canvasHeight?{width:r,height:n,orientation:mn.LANDSCAPE}:{width:n,height:r,orientation:void 0}}const t=e.orientation==="landscape";return{width:pe(8.5),height:pe(11),orientation:t?mn.LANDSCAPE:void 0}},Jr=(e,t)=>{const{width:n,height:r}=Yr(e),o=e.orientation==="landscape";return{width:n,height:r,headerBand:o?t.landscapeHeader:t.header,footerBand:o?t.landscapeFooter:t.footer}};function Zr(e,t){const n=Array.from(e.querySelectorAll("table")),r=Array.from(t.querySelectorAll("table"));n.forEach((o,i)=>{const a=r[i];if(!a)return;const l=Array.from(o.querySelectorAll("tr")).map(c=>Array.from(c.children).map(u=>({colSpan:u.colSpan||1,widthPx:u.offsetWidth}))),s=Ss(l);s&&a.setAttribute("data-col-twips",s.join(","))})}function Qr(e,t){const n=Array.from(e.querySelectorAll("tr")),r=Array.from(t.querySelectorAll("tr"));n.forEach((o,i)=>{const a=r[i];if(!a)return;const l=o.offsetHeight;l>0&&a.setAttribute("data-row-twips",String(Math.round(l*15)))})}const eo="markdown-export-preview-container",ks=[{kind:"header",selector:".docx-export-header"},{kind:"footer",selector:".docx-export-footer"}],to=e=>e.id==="cover-page"||e.id.startsWith("toc-page"),no=(e,t)=>!!e&&e.items.some(n=>n.lines.some(r=>r.runs.some(t))),ro=(e,t)=>no(e,n=>n.kind===t),oo=(e,t)=>e.items.length===0?!1:t>=1?!0:!no(e,n=>n.kind==="page-number"&&n.hiddenAtPageZero!==!0),io="canvas-blocking",Ls=()=>{const e=new Map,t=n=>{const r=e.get(n);if(r!==void 0)return r;let o=2166136261;for(let a=0;a<n.length;a++)o^=n[a],o=Math.imul(o,16777619);const i=`${n.length}.${(o>>>0).toString(36)}`;return e.set(n,i),i};return({bandKind:n,imageBuffer:r,bandHeightPx:o,extraction:i,pageSize:a})=>{const l=`${n}|${a.width}x${a.height}|${String(a.orientation)}|${o}`;if(!r||r.length===0)return`${l}|empty`;const s=t(r);return i?`${l}|lifted|${s}|${JSON.stringify(i.items)}`:`${l}|raster|${s}`}};let ao;const vt=()=>ao??(ao=import("./index.client-GQRx0OMi.js")),Rs=(e,t,n)=>{vt().then(({addBreadcrumb:r})=>r({category:"docx-export",level:"warning",message:"docx editable chrome fallback",data:{band:e,page:t,...n?{error:n}:{}}})).catch(()=>{})},Hs=(e,t)=>{vt().then(({addBreadcrumb:n})=>n({category:"docx-export",level:"warning",message:"docx editable canvas text fallback",data:{page:e,...t?{error:t}:{}}})).catch(()=>{})},lo=e=>{var t;if(!(e instanceof Error))return String(e);const n=(((t=e.stack)==null?void 0:t.split(`
11
+ `)[1])??"").trim();return n?`${e.message} @ ${n}`:e.message},so=(e,t)=>{vt().then(({addBreadcrumb:n})=>n({category:"docx-export",level:"warning",message:"docx text lift bounds unreadable",data:{surface:e,page:t}})).catch(()=>{})},co=(e,t,n)=>{vt().then(({captureMessage:r})=>r(`docx text lift threw on ${e} (page ${t}): ${n}`,"warning")).catch(()=>{})},Ds=async e=>{var t,n,r;const{pages:o,documentFont:i,componentColors:a,documentName:l="Document",returnBlobOnly:s=!1,documentMargins:c,headerBandHeight:u=Se.HEADER_FOOTER.height,footerBandHeight:d=Se.HEADER_FOOTER.height,landscapeHeaderBandHeight:f=u,landscapeFooterBandHeight:g=d,cssContainerClass:x}=e,P=x===eo?"export-preview":"document-builder";if(!o||o.length===0)throw new Error("No pages to export");try{const p={header:u,footer:d,landscapeHeader:f,landscapeFooter:g},b=o.filter(v=>v&&to(v)).length,h=o.length-b,m=v=>{const F=o[v];return!F||to(F)?0:v+1-b},C=h===o.length?{totalPagesAsField:!0}:{totalPagesAsField:!1,resolvedTotalPages:String(h)},M=((t=e.variableValues)==null?void 0:t.date)??Vo(),E=(()=>{var v,F;const $=new Map,k={header:(v=e.headerKonvaData)==null?void 0:v.konvaJson,footer:(F=e.footerKonvaData)==null?void 0:F.konvaJson};for(let W=0;W<o.length;W++){const ue=o[W];if(!ue||it(ue)||ue.skipHeaderFooter)continue;const re=document.getElementById(`page-${W+1}`);if(!re)continue;const Y=m(W),ge=Yo(e.variableValues,Y,h);delete ge.page_number,delete ge.total_pages;const Ae={variableValues:ge,currentDateText:M,pageNumber:Y,totalPages:h};for(const ee of ks){const te=re.querySelector(ee.selector);if(!te)continue;let Z;const le=Il(te,{...Ae,sourceCanvasJson:k[ee.kind]},{onError:K=>{Z=K},onUnreadableBounds:()=>so(ee.kind,W+1)});if(!le){const K=Z===void 0?void 0:lo(Z);Rs(ee.kind,W+1,K),K!==void 0&&co(ee.kind,W+1,K);continue}oo(le,Y)&&$.set(Xe(W,ee.kind),le)}}return $})(),T=(()=>{const v=new Map,F={...e.variableValues??{}};for(let $=0;$<o.length;$++){const k=o[$];if(!k||!it(k)||k.pdfPageImport)continue;const W=document.getElementById(`page-${$+1}`);if(!W)continue;let ue;const re=Ol(W,{variableValues:F,currentDateText:M},{onError:Y=>{ue=Y},onUnreadableBounds:()=>so("page",$+1)});if(!re){const Y=ue===void 0?void 0:lo(ue);Hs($+1,Y),Y!==void 0&&co("page",$+1,Y);continue}oo(re,m($))&&v.set($,re)}return v})(),A=await As({pages:o,geometry:o.map(v=>Jr(v??{},p)),documentFont:i,componentColors:a,documentMargins:c,bandExtractions:E,pageExtractions:T}),w=[],N=v=>{const F=A.jobFailures.get(v);return F?`reconciliation/clone threw: ${F}`:A.failureReason?`batch failed: ${A.failureReason}`:A.images.has(v)?"server could not render":"no capture job was produced"},j=(v,F,$)=>{const k=A.images.get(v);return k&&k.length>0?k:(w.push(`page ${F+1} ${$} (${N(v)})`),null)},V=[];let se=!1,ne=0;const ae=Ls(),ce={header:null,footer:null},Ee=x===eo;let I=null;const Te=async()=>{const v=I;I=null,await(v==null?void 0:v.close())};for(let v=0;v<o.length;v++){const F=o[v];if(!F)continue;const $=v+1,k=document.getElementById(`page-${$}`);if(!k){console.warn(`DOCX export: page-${$} not found in DOM`),w.push(`page ${$} (page element not found in the DOM)`);continue}const W=it(F),ue=F.orientation==="landscape",{width:re,height:Y,headerBand:ge,footerBand:Ae}=Jr(F,p),ee=[];let te=null,Z=null,le="",K=null,de=!1,fe=null;if(W){if(k){const z=j(yt(v),v,"page");if(z&&z.length>0){const S=F.canvasWidth||Ms,U=F.canvasHeight||$s,O=re,J=Y,be=S/U,_=O/J;let G,B;be>_?(G=O,B=O/be):(B=J,G=J*be),F.destAnchor&&(B=Math.min(B,J-Os),ee.push(new R({heading:De.HEADING_1,children:[new sn({id:F.destAnchor,children:[new H({text:F.destTitle||"",size:2,color:"FFFFFF"})]})],spacing:{before:0,after:0,line:1,lineRule:q.EXACT}})));const he=wt(z),ye=T.get(v);ye?(ee.push(...as(ye,{data:z,type:he},{canvasWidthPx:S,canvasHeightPx:U,displayWidthPx:G,displayHeightPx:B,offsetXPx:(O-G)/2},i??"",ne)),ne+=ye.items.length):ee.push(new R({children:[new $e({type:he,data:z,transformation:{width:G,height:B}})],spacing:{before:0,after:0,line:240,lineRule:q.AUTO},alignment:X.CENTER}))}}}else{const z=k.querySelector(".preview-page-content");if(z){const S=z.cloneNode(!0);Zr(z,S),Qr(z,S),S.querySelectorAll("[data-fabric-canvas-placeholder]").forEach(O=>O.remove()),Xr(S);const U=Array.from(S.querySelectorAll("canvas:not(.upper-canvas)"));for(const O of U){const J=Array.from(z.querySelectorAll("canvas:not(.upper-canvas)")),be=Array.from(S.querySelectorAll("canvas:not(.upper-canvas)")).indexOf(O),_=J[be];if(_&&_.width>0&&_.height>0)try{const G=bn(_,4,.95);if(G){const B=document.createElement("img");B.src=G,B.style.width=_.style.width||`${_.width}px`,B.style.height=_.style.height||`${_.height}px`,B.style.display="block",(n=O.parentElement)==null||n.replaceChild(B,O)}}catch(G){if(Nt(G))throw G}}le=S.innerHTML,K=S,de=_r(z)}else{const S=k.cloneNode(!0);Zr(k,S),Qr(k,S);const U=S.querySelector(".page-header"),O=S.querySelector(".page-footer");U&&U.remove(),O&&O.remove(),S.querySelectorAll("[data-fabric-canvas-placeholder]").forEach(_=>_.remove()),Xr(S);const J=Array.from(S.querySelectorAll("canvas:not(.upper-canvas)")),be=Array.from(k.querySelectorAll("canvas:not(.upper-canvas)"));for(let _=0;_<J.length;_++){const G=J[_],B=be[_];if(G&&B&&B.width>0&&B.height>0)try{const he=bn(B,4,.95);if(he){const ye=document.createElement("img");ye.src=he,ye.style.width=B.style.width||`${B.width}px`,ye.style.height=B.style.height||`${B.height}px`,ye.style.display="block",(r=G.parentElement)==null||r.replaceChild(ye,G)}}catch(he){if(Nt(he))throw he}}le=S.innerHTML,K=S,de=_r(k)}if(!F.skipHeaderFooter){const S=k.querySelector(".docx-export-header"),U=k.querySelector(".docx-export-footer");S&&(te=j(Xe(v,"header"),v,"header")),U&&(Z=j(Xe(v,"footer"),v,"footer"))}if(le){const S=at((c==null?void 0:c.left)??ze.left),U=at((c==null?void 0:c.right)??ze.right),O={componentColors:a,documentFont:i,leftMarginPx:S,rightMarginPx:U,isLandscape:ue,contentWidthPx:re-S-U,contentHeightPx:Y-(te&&te.length>0?ge:0)-(Z&&Z.length>0?Ae:0)-at((c==null?void 0:c.top)??ze.top)-at((c==null?void 0:c.bottom)??ze.bottom),previewContext:P,tocPagerefFields:!0};fe=J=>Qn(J,O,W)}}const me=!!te&&te.length>0,ke=!!Z&&Z.length>0,Ye=me?wt(te):"png",rt=ke?wt(Z):"png",Pt=me?ge/96:0,Ke=ke?Ae/96:0,Le=E.get(Xe(v,"header")),D=E.get(Xe(v,"footer")),xe=m(v)<1,ot=Le!==void 0||D!==void 0,uo=ro(Le,"page-number")||ro(D,"page-number");let Je=null;xe?ot&&(Je=0):!se&&uo&&(Je=m(v),se=!0);const fo=(z,S,U,O,J)=>!S||S.length===0?[new R({text:"",spacing:{before:0,after:0,line:240,lineRule:q.AUTO}})]:J?es(J,{data:S,type:U},{bandKind:z,pageWidthPx:re,pageHeightPx:Y,bandHeightPx:O},i??"",C):[new R({children:[new $e({type:U,data:S,transformation:{width:re,height:O}})],spacing:{before:0,after:0,line:240,lineRule:q.AUTO}})],en=W?{top:0,right:0,bottom:0,left:0,header:0,footer:0}:{top:pe(Pt+((c==null?void 0:c.top)??ze.top)),right:pe(0),bottom:pe(Math.max(Ke,Ke+((c==null?void 0:c.bottom)??ze.bottom)-Is)),left:pe(0),header:0,footer:0},Fe=Kr(F),tn=JSON.stringify({margins:en,pageSize:Fe}),ho=ae({bandKind:"header",imageBuffer:te,bandHeightPx:ge,extraction:Le,pageSize:Fe}),go=ae({bandKind:"footer",imageBuffer:Z,bandHeightPx:Ae,extraction:D,pageSize:Fe});if(I&&K&&F.continuesFlow===!0&&!I.endsWithPageBreak&&I.layoutKey===tn&&Je===null&&ho===ce.header&&go===ce.footer){ps(I.root,K),I.endsWithPageBreak=de;continue}await Te();const nn=Ee&&K!==null&&fe!==null;fe&&!nn&&ee.push(...await fe(le));const Re={properties:{page:{margin:en,size:{width:Fe.width,height:Fe.height,orientation:Fe.orientation},...Je!==null?{pageNumbers:{start:Je}}:{}}},children:ee.length>0?ee:[new R({text:"",spacing:{before:0,after:0,line:240,lineRule:q.AUTO}})]};if(W){const z=()=>new R({text:"",spacing:{before:0,after:0,line:1,lineRule:q.EXACT}});Re.headers={default:new gn({children:[z()]})},Re.footers={default:new pn({children:[z()]})},ce.header=io,ce.footer=io}else{const z=(O,J,be,_,G,B)=>{const he=ae({bandKind:O,imageBuffer:J,bandHeightPx:_,extraction:G,pageSize:Fe});if(he!==ce[O])return ce[O]=he,B(fo(O,J,be,_,G))},S=z("header",te,Ye,ge,Le,O=>({default:new gn({children:O})}));S&&(Re.headers=S);const U=z("footer",Z,rt,Ae,D,O=>({default:new pn({children:O})}));U&&(Re.footers=U)}if(V.push(Re),nn&&K&&fe){const z=K,S=fe;I={root:z,layoutKey:tn,endsWithPageBreak:de,close:async()=>{const U=await S(z.innerHTML);U.length>0&&(Re.children=U)}}}}if(await Te(),w.length>0){const v=w.slice(0,Vr).join("; "),F=w.length-Vr,$=F>0?` (and ${F} more)`:"",k=`DOCX export failed: the server did not return ${w.length} page image(s) \u2014 ${v}${$}`;throw fn({error:new Error(k),extra:{context:"exportPreviewToDocx.serverCaptureFailed",missCount:w.length,misses:w,batchFailureReason:A.failureReason??null}}),new Qt(k)}const Ve=new Ko({numbering:{config:[{reference:"default-numbering",format:Ft.DECIMAL},{reference:"lower-letter-numbering",format:Ft.LOWER_LETTER},{reference:"lower-roman-numbering",format:Ft.LOWER_ROMAN}].map(({reference:v,format:F})=>({reference:v,levels:[{level:0,format:F,text:"%1.",alignment:X.START,style:{paragraph:{indent:{left:pe(.5),hanging:pe(.25)}}}}]}))},sections:V}),Oe=await Jo.toBlob(Ve);if(s)return Oe;Zo.saveAs(Oe,`${l}.docx`)}catch(p){throw hn(p)||(console.error("Export to DOCX failed:",p),p instanceof Qt||Nt(p))?p:new Error("Failed to export document to DOCX")}};export{Qt as DocxServerCaptureError,Kr as docxPageSize,Ds as exportPreviewToDocx,Yr as pageFrameSize,wt as sniffDocxBandType};
@@ -1 +1 @@
1
- import{dP as Q,dQ as q,dR as S,c0 as W,dS as _,dT as z,dU as D,c3 as J,c4 as Y,d6 as G}from"./runtime-CmCxTPcG.js";import{b as X,a as Z,N as ee,n as te,c as re,d as oe}from"./exportPageHtml-C-czqc38.js";import{awaitExportImagesReady as ae}from"./exportImageReadiness-4Wl1xDju.js";const ne=t=>new Promise(i=>{if(t.complete){i();return}if(typeof t.addEventListener!="function"){i();return}const s=()=>i();t.addEventListener("load",s,{once:!0}),t.addEventListener("error",s,{once:!0})});async function se(t){return t.src.startsWith("data:")?t.src:(await ne(t),new Promise((i,s)=>{const a=document.createElement("canvas"),p=a.getContext("2d");if(!p){s(new Error("Could not get canvas context"));return}const l=new Image;l.crossOrigin="anonymous",l.onload=()=>{try{a.width=l.naturalWidth||t.naturalWidth||t.width||100,a.height=l.naturalHeight||t.naturalHeight||t.height||100,p.drawImage(l,0,0),i(a.toDataURL("image/png"))}catch(m){console.error("Error converting image to base64:",m),s(new Error("Failed to convert image to base64"))}},l.onerror=m=>{console.error("Error loading image:",m),s(new Error("Failed to load image"))},l.src=t.src}))}const ie=D.US_LETTER.width,ce=D.US_LETTER.height,$=(t,i)=>{const s=t.get(i);if(s===null)return 0;const a=Number.parseInt(s,10);return Number.isFinite(a)&&a>=0?a:0},I=t=>{const i=t.get("x-native-pages-fallback-kinds");if(!(t.get("x-native-pages-requested")!==null||t.get("x-native-pages-spliced")!==null||t.get("x-native-pages-fallback")!==null||i!==null))return null;const s=new Map;for(const p of(i??"").split(",")){const l=p.lastIndexOf(":");if(l<=0)continue;const m=p.slice(0,l).trim(),F=Number.parseInt(p.slice(l+1),10);!m||!Number.isFinite(F)||F<=0||s.set(m,(s.get(m)??0)+F)}let a=0;for(const p of s.values())a+=p;return{requested:$(t,"x-native-pages-requested"),spliced:$(t,"x-native-pages-spliced"),fallback:Math.max($(t,"x-native-pages-fallback"),a),fallbackKinds:Object.fromEntries(s)}},le=async t=>{const{pages:i,documentName:s,documentFont:a,componentColors:p,cssContainerClass:l,returnBlobOnly:m=!1,companyLogo:F,applyHeadingColors:de=!1,headerKonvaData:ue,footerKonvaData:pe,documentMargins:H,variableValues:me,onSpliceReport:k}=t;try{const d=i.map((r,o)=>document.getElementById(`page-${o+1}`));await ae(d);const c=new Array(i.length);await Promise.all(i.map(async(r,o)=>{const b=o+1,{width:C,height:L}=Q(r),A=`<div style="width: ${C}px; height: ${L}px; background: white;"></div>`;if(!r){c[o]=A;return}const x=d[o];if(!x){c[o]=A;return}if(q(r)&&r.useFabric)try{const e=await X(x);c[o]=e.outerHTML}catch(e){if(S(e))throw e;console.error(`Failed to capture V2 canvas page ${b}:`,e),W({error:e instanceof Error?e:new Error(String(e)),extra:{context:"exportPreviewToPdf.canvasPageCaptureFailed",pageNumber:b,reason:e instanceof Error?e.message:String(e)}}),c[o]=A}else if(q(r))try{c[o]=await Z(x,C,L,b)??A}catch(e){if(S(e))throw e;console.error(`Failed to capture canvas page ${b}:`,e),c[o]=A}else try{const e=x.cloneNode(!0);ee.forEach(n=>{e.querySelectorAll(n).forEach(g=>g.remove())}),e.querySelectorAll(".text-rich-display").forEach(n=>te(n));const P=Array.from(e.querySelectorAll("canvas:not(.upper-canvas)"));if(P.length>0){const n=Array.from(x.querySelectorAll("canvas:not(.upper-canvas)"));for(let g=0;g<P.length;g++){const E=P[g],u=n[g];if(u&&u.width>0&&u.height>0)try{const w=await re(u,{pixelRatio:4,quality:.98,skipHiddenText:!0});if(w&&typeof w=="string"){const h=document.createElement("img");h.src=w,h.style.width=`${u.style.width||u.width+"px"}`,h.style.height=`${u.style.height||u.height+"px"}`,h.style.display="block",h.style.margin="0",h.style.padding="0",h.style.border="0",h.style.imageRendering="-webkit-optimize-contrast";const U=E.parentElement;U&&U.replaceChild(h,E)}}catch(w){if(S(w))throw w;console.warn(`Failed to capture canvas ${g+1}:`,w)}}}const O=Array.from(e.querySelectorAll("img"));if(O.length>0){const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",g=O.map(async E=>{try{const u=await se(E);return E.src=u,!0}catch(u){return console.warn("Failed to convert image to base64, using placeholder:",u),E.src=n,!1}});await Promise.all(g)}e.querySelectorAll("[data-section-id]").forEach(n=>{n.removeAttribute("data-section-id"),n.removeAttribute("onmouseover"),n.removeAttribute("onmouseout"),n.removeAttribute("onclick")}),e.querySelectorAll('[data-page-break="true"], .page-break-marker').forEach(n=>n.remove()),e.querySelectorAll("canvas.upper-canvas").forEach(n=>n.remove()),a&&(e.style.fontFamily=a);let R=e.outerHTML;if(l){const n=a?`font-family: ${a};`:"";R=`<div class="${l}" style="${n}">${R}</div>`}c[o]=R}catch(e){if(S(e))throw e;console.error(`Failed to process HTML page ${b}:`,e),c[o]=A}})),i.forEach((r,o)=>{r!=null&&r.destAnchor&&c[o]&&(c[o]=`${_(r.destAnchor,r.destTitle??"")}${c[o]}`)});const{styles:B,customProperties:V}=await oe(a,p,H,c),{pageDimensions:T,nativePageSources:N}=z(i),K=JSON.stringify({styles:B,fontFamily:a||"system-ui, sans-serif",customProperties:V,dimensions:{width:ie,height:ce},documentName:s||"document",...T?{pageDimensions:T}:{},...N?{nativePageSources:N}:{}}),y=[],M=K.slice(0,-1);y.push(M+',"pages":[');for(let r=0;r<c.length;r++)r>0&&y.push(","),y.push(JSON.stringify(c[r])),c[r]="";y.push("]}");const j=new Blob(y,{type:"application/json"});y.length=0;const f=await J(`${Y}/document_builder/export/pdf`,{method:"POST",body:j});if(!f.ok){const r=await f.text().catch(()=>"Unknown error");throw console.error("PDF export failed:",{status:f.status,statusText:f.statusText,error:r}),new Error(`Failed to generate PDF: Server returned ${f.status} ${f.statusText}`)}k==null||k(I(f.headers));const v=await f.blob();if(!v)throw new Error("Failed to generate PDF: No data received from server");if(!(v instanceof Blob))throw new Error(`Failed to generate PDF: Invalid response format (received ${typeof v})`);if(v.size===0)throw new Error("Failed to generate PDF: Received empty file");if(!m){const r=window.URL.createObjectURL(v),o=document.createElement("a");o.href=r,o.download=`${s||"document"}.pdf`,document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(r)}return v}catch(d){throw G(d)||(console.error("PDF export error:",d),((d==null?void 0:d.code)==="ERR_NETWORK"||(d==null?void 0:d.code)==="ECONNABORTED")&&console.error("Network/timeout error details:",{code:d.code,message:d.message,config:d.config})),d}};export{le as exportPreviewToPdf,I as parseSpliceReportHeaders};
1
+ import{dP as Q,dQ as q,dR as S,c0 as W,dS as _,dT as z,dU as D,c3 as J,c4 as Y,d6 as G}from"./runtime-Ci9GR285.js";import{b as X,a as Z,N as ee,n as te,c as re,d as oe}from"./exportPageHtml-CUEih2kT.js";import{awaitExportImagesReady as ae}from"./exportImageReadiness-BChyHtH7.js";const ne=t=>new Promise(i=>{if(t.complete){i();return}if(typeof t.addEventListener!="function"){i();return}const s=()=>i();t.addEventListener("load",s,{once:!0}),t.addEventListener("error",s,{once:!0})});async function se(t){return t.src.startsWith("data:")?t.src:(await ne(t),new Promise((i,s)=>{const a=document.createElement("canvas"),p=a.getContext("2d");if(!p){s(new Error("Could not get canvas context"));return}const l=new Image;l.crossOrigin="anonymous",l.onload=()=>{try{a.width=l.naturalWidth||t.naturalWidth||t.width||100,a.height=l.naturalHeight||t.naturalHeight||t.height||100,p.drawImage(l,0,0),i(a.toDataURL("image/png"))}catch(m){console.error("Error converting image to base64:",m),s(new Error("Failed to convert image to base64"))}},l.onerror=m=>{console.error("Error loading image:",m),s(new Error("Failed to load image"))},l.src=t.src}))}const ie=D.US_LETTER.width,ce=D.US_LETTER.height,$=(t,i)=>{const s=t.get(i);if(s===null)return 0;const a=Number.parseInt(s,10);return Number.isFinite(a)&&a>=0?a:0},I=t=>{const i=t.get("x-native-pages-fallback-kinds");if(!(t.get("x-native-pages-requested")!==null||t.get("x-native-pages-spliced")!==null||t.get("x-native-pages-fallback")!==null||i!==null))return null;const s=new Map;for(const p of(i??"").split(",")){const l=p.lastIndexOf(":");if(l<=0)continue;const m=p.slice(0,l).trim(),F=Number.parseInt(p.slice(l+1),10);!m||!Number.isFinite(F)||F<=0||s.set(m,(s.get(m)??0)+F)}let a=0;for(const p of s.values())a+=p;return{requested:$(t,"x-native-pages-requested"),spliced:$(t,"x-native-pages-spliced"),fallback:Math.max($(t,"x-native-pages-fallback"),a),fallbackKinds:Object.fromEntries(s)}},le=async t=>{const{pages:i,documentName:s,documentFont:a,componentColors:p,cssContainerClass:l,returnBlobOnly:m=!1,companyLogo:F,applyHeadingColors:de=!1,headerKonvaData:ue,footerKonvaData:pe,documentMargins:H,variableValues:me,onSpliceReport:k}=t;try{const d=i.map((r,o)=>document.getElementById(`page-${o+1}`));await ae(d);const c=new Array(i.length);await Promise.all(i.map(async(r,o)=>{const b=o+1,{width:C,height:L}=Q(r),A=`<div style="width: ${C}px; height: ${L}px; background: white;"></div>`;if(!r){c[o]=A;return}const x=d[o];if(!x){c[o]=A;return}if(q(r)&&r.useFabric)try{const e=await X(x);c[o]=e.outerHTML}catch(e){if(S(e))throw e;console.error(`Failed to capture V2 canvas page ${b}:`,e),W({error:e instanceof Error?e:new Error(String(e)),extra:{context:"exportPreviewToPdf.canvasPageCaptureFailed",pageNumber:b,reason:e instanceof Error?e.message:String(e)}}),c[o]=A}else if(q(r))try{c[o]=await Z(x,C,L,b)??A}catch(e){if(S(e))throw e;console.error(`Failed to capture canvas page ${b}:`,e),c[o]=A}else try{const e=x.cloneNode(!0);ee.forEach(n=>{e.querySelectorAll(n).forEach(g=>g.remove())}),e.querySelectorAll(".text-rich-display").forEach(n=>te(n));const P=Array.from(e.querySelectorAll("canvas:not(.upper-canvas)"));if(P.length>0){const n=Array.from(x.querySelectorAll("canvas:not(.upper-canvas)"));for(let g=0;g<P.length;g++){const E=P[g],u=n[g];if(u&&u.width>0&&u.height>0)try{const w=await re(u,{pixelRatio:4,quality:.98,skipHiddenText:!0});if(w&&typeof w=="string"){const h=document.createElement("img");h.src=w,h.style.width=`${u.style.width||u.width+"px"}`,h.style.height=`${u.style.height||u.height+"px"}`,h.style.display="block",h.style.margin="0",h.style.padding="0",h.style.border="0",h.style.imageRendering="-webkit-optimize-contrast";const U=E.parentElement;U&&U.replaceChild(h,E)}}catch(w){if(S(w))throw w;console.warn(`Failed to capture canvas ${g+1}:`,w)}}}const O=Array.from(e.querySelectorAll("img"));if(O.length>0){const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",g=O.map(async E=>{try{const u=await se(E);return E.src=u,!0}catch(u){return console.warn("Failed to convert image to base64, using placeholder:",u),E.src=n,!1}});await Promise.all(g)}e.querySelectorAll("[data-section-id]").forEach(n=>{n.removeAttribute("data-section-id"),n.removeAttribute("onmouseover"),n.removeAttribute("onmouseout"),n.removeAttribute("onclick")}),e.querySelectorAll('[data-page-break="true"], .page-break-marker').forEach(n=>n.remove()),e.querySelectorAll("canvas.upper-canvas").forEach(n=>n.remove()),a&&(e.style.fontFamily=a);let R=e.outerHTML;if(l){const n=a?`font-family: ${a};`:"";R=`<div class="${l}" style="${n}">${R}</div>`}c[o]=R}catch(e){if(S(e))throw e;console.error(`Failed to process HTML page ${b}:`,e),c[o]=A}})),i.forEach((r,o)=>{r!=null&&r.destAnchor&&c[o]&&(c[o]=`${_(r.destAnchor,r.destTitle??"")}${c[o]}`)});const{styles:B,customProperties:V}=await oe(a,p,H,c),{pageDimensions:T,nativePageSources:N}=z(i),K=JSON.stringify({styles:B,fontFamily:a||"system-ui, sans-serif",customProperties:V,dimensions:{width:ie,height:ce},documentName:s||"document",...T?{pageDimensions:T}:{},...N?{nativePageSources:N}:{}}),y=[],M=K.slice(0,-1);y.push(M+',"pages":[');for(let r=0;r<c.length;r++)r>0&&y.push(","),y.push(JSON.stringify(c[r])),c[r]="";y.push("]}");const j=new Blob(y,{type:"application/json"});y.length=0;const f=await J(`${Y}/document_builder/export/pdf`,{method:"POST",body:j});if(!f.ok){const r=await f.text().catch(()=>"Unknown error");throw console.error("PDF export failed:",{status:f.status,statusText:f.statusText,error:r}),new Error(`Failed to generate PDF: Server returned ${f.status} ${f.statusText}`)}k==null||k(I(f.headers));const v=await f.blob();if(!v)throw new Error("Failed to generate PDF: No data received from server");if(!(v instanceof Blob))throw new Error(`Failed to generate PDF: Invalid response format (received ${typeof v})`);if(v.size===0)throw new Error("Failed to generate PDF: Received empty file");if(!m){const r=window.URL.createObjectURL(v),o=document.createElement("a");o.href=r,o.download=`${s||"document"}.pdf`,document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(r)}return v}catch(d){throw G(d)||(console.error("PDF export error:",d),((d==null?void 0:d.code)==="ERR_NETWORK"||(d==null?void 0:d.code)==="ECONNABORTED")&&console.error("Network/timeout error details:",{code:d.code,message:d.message,config:d.config})),d}};export{le as exportPreviewToPdf,I as parseSpliceReportHeaders};
@@ -1 +1 @@
1
- import{dA as b}from"./runtime-CmCxTPcG.js";function h(r,a){for(var n=0;n<a.length;n++){const t=a[n];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in r)){const s=Object.getOwnPropertyDescriptor(t,e);s&&Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o,d;function f(){if(d)return o;d=1,o=r,r.displayName="factor",r.aliases=[];function r(a){(function(n){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},e={number:/\\[^\s']|%\w/},s={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:e.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:e},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:e}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:e}},u=function(i){return(i+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(i){return new RegExp("(^|\\s)(?:"+i.map(u).join("|")+")(?=\\s|$)")},p={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(p).forEach(function(i){s[i].pattern=l(p[i])});var m=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];s.combinators.pattern=l(m),n.languages.factor=s})(a)}return o}var c=f();const g=b(c),k=h({__proto__:null,default:g},[c]);export{k as f};
1
+ import{dA as b}from"./runtime-Ci9GR285.js";function h(r,a){for(var n=0;n<a.length;n++){const t=a[n];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in r)){const s=Object.getOwnPropertyDescriptor(t,e);s&&Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o,d;function f(){if(d)return o;d=1,o=r,r.displayName="factor",r.aliases=[];function r(a){(function(n){var t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},e={number:/\\[^\s']|%\w/},s={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:e.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:e},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:e}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:e}},u=function(i){return(i+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(i){return new RegExp("(^|\\s)(?:"+i.map(u).join("|")+")(?=\\s|$)")},p={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(p).forEach(function(i){s[i].pattern=l(p[i])});var m=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];s.combinators.pattern=l(m),n.languages.factor=s})(a)}return o}var c=f();const g=b(c),k=h({__proto__:null,default:g},[c]);export{k as f};
@@ -1 +1 @@
1
- import{dA as c}from"./runtime-CmCxTPcG.js";function f(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function u(){if(s)return i;s=1,i=e,e.displayName="$false",e.aliases=[];function e(n){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(n)}return i}var l=u();const p=c(l),d=f({__proto__:null,default:p},[l]);export{d as _};
1
+ import{dA as c}from"./runtime-Ci9GR285.js";function f(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function u(){if(s)return i;s=1,i=e,e.displayName="$false",e.aliases=[];function e(n){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(n)}return i}var l=u();const p=c(l),d=f({__proto__:null,default:p},[l]);export{d as _};
@@ -1 +1 @@
1
- import{dA as l}from"./runtime-CmCxTPcG.js";function c(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var a,s;function f(){if(s)return a;s=1,a=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(t){t.languages["firestore-security-rules"]=t.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return a}var u=f();const d=l(u),F=c({__proto__:null,default:d},[u]);export{F as f};
1
+ import{dA as l}from"./runtime-Ci9GR285.js";function c(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var a,s;function f(){if(s)return a;s=1,a=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(t){t.languages["firestore-security-rules"]=t.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return a}var u=f();const d=l(u),F=c({__proto__:null,default:d},[u]);export{F as f};
@@ -1,4 +1,4 @@
1
- import{cz as c}from"./runtime-CmCxTPcG.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],e=c("circle-user",a);const l=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],r=c("flask-conical",l);export{e as C,r as F};
1
+ import{cz as c}from"./runtime-Ci9GR285.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],e=c("circle-user",a);const l=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],r=c("flask-conical",l);export{e as C,r as F};
2
2
  /**
3
3
  * @license lucide-react v0.539.0 - ISC
4
4
  *
@@ -1 +1 @@
1
- import{dA as i}from"./runtime-CmCxTPcG.js";function f(a,r){for(var e=0;e<r.length;e++){const t=r[e];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in a)){const o=Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,s;function g(){if(s)return l;s=1,l=a,a.displayName="flow",a.aliases=[];function a(r){(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(r)}return l}var u=g();const p=i(u),c=f({__proto__:null,default:p},[u]);export{c as f};
1
+ import{dA as i}from"./runtime-Ci9GR285.js";function f(a,r){for(var e=0;e<r.length;e++){const t=r[e];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in a)){const o=Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,s;function g(){if(s)return l;s=1,l=a,a.displayName="flow",a.aliases=[];function a(r){(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(r)}return l}var u=g();const p=i(u),c=f({__proto__:null,default:p},[u]);export{c as f};
@@ -1 +1 @@
1
- import{dA as O}from"./runtime-CmCxTPcG.js";function I(E,t){for(var T=0;T<t.length;T++){const e=t[T];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in E)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(E,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var A,L;function R(){if(L)return A;L=1,A=E,E.displayName="fortran",E.aliases=[];function E(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return A}var N=R();const o=O(N),i=I({__proto__:null,default:o},[N]);export{i as f};
1
+ import{dA as O}from"./runtime-Ci9GR285.js";function I(E,t){for(var T=0;T<t.length;T++){const e=t[T];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in E)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(E,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var A,L;function R(){if(L)return A;L=1,A=E,E.displayName="fortran",E.aliases=[];function E(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return A}var N=R();const o=O(N),i=I({__proto__:null,default:o},[N]);export{i as f};
@@ -1 +1 @@
1
- import{dA as d}from"./runtime-CmCxTPcG.js";function c(t,e){for(var a=0;a<e.length;a++){const n=e[a];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(n,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,s;function p(){if(s)return i;s=1,i=t,t.displayName="fsharp",t.aliases=[];function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return i}var l=p();const u=d(l),f=c({__proto__:null,default:u},[l]);export{f};
1
+ import{dA as d}from"./runtime-Ci9GR285.js";function c(t,e){for(var a=0;a<e.length;a++){const n=e[a];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(n,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,s;function p(){if(s)return i;s=1,i=t,t.displayName="fsharp",t.aliases=[];function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return i}var l=p();const u=d(l),f=c({__proto__:null,default:u},[l]);export{f};
@@ -1 +1 @@
1
- import{dA as f}from"./runtime-CmCxTPcG.js";import{r as d}from"./markup-templating-RD0xxf_6.js";function g(a,n){for(var r=0;r<n.length;r++){const t=n[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in a)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(a,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,p;function b(){if(p)return l;p=1;var a=d();l=n,n.displayName="ftl",n.aliases=[];function n(r){r.register(a),(function(t){for(var e=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)e=e.replace(/<expr>/g,function(){return e});e=e.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return e})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return e})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},t.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return e}),"gi");t.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})})(r)}return l}var u=b();const m=f(u),x=g({__proto__:null,default:m},[u]);export{x as f};
1
+ import{dA as f}from"./runtime-Ci9GR285.js";import{r as d}from"./markup-templating-RD0xxf_6.js";function g(a,n){for(var r=0;r<n.length;r++){const t=n[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in a)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(a,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,p;function b(){if(p)return l;p=1;var a=d();l=n,n.displayName="ftl",n.aliases=[];function n(r){r.register(a),(function(t){for(var e=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)e=e.replace(/<expr>/g,function(){return e});e=e.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return e})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return e})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},t.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return e}),"gi");t.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})})(r)}return l}var u=b();const m=f(u),x=g({__proto__:null,default:m},[u]);export{x as f};