@luzmo/analytics-components-kit 1.0.8-beta.3 → 1.0.8-beta.5

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 (411) hide show
  1. package/README.md +1 -1
  2. package/components/ai-chat/ai-chat.d.ts +8 -2
  3. package/components/ai-chat/index.cjs +1 -1
  4. package/components/ai-chat/index.js +2 -2
  5. package/components/ai-chat/session/ai-chat-session-types.d.ts +3 -1
  6. package/components/ai-chat/session/ai-chat-session.d.ts +3 -2
  7. package/components/ai-chat-7kHoMVeu.cjs +321 -0
  8. package/components/{ai-chat-CTr-dplW.js → ai-chat-CI9l8ZOE.js} +717 -637
  9. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +15 -2
  10. package/components/ai-interaction-textarea/index.cjs +1 -1
  11. package/components/ai-interaction-textarea/index.d.ts +2 -0
  12. package/components/ai-interaction-textarea/index.js +1 -1
  13. package/components/ai-interaction-textarea/types.d.ts +2 -0
  14. package/components/{ai-interaction-textarea-uc14Goa4.js → ai-interaction-textarea-BbVH-aF4.js} +24 -6
  15. package/components/ai-interaction-textarea-Crcz4rCV.cjs +99 -0
  16. package/components/{area-chart-options.config-HaYA8gPC.js → area-chart-options.config-B94ERc30.js} +12 -7
  17. package/components/area-chart-options.config-Bf5kti7Z.cjs +20 -0
  18. package/components/{area-chart-positioning.config-BstzDLRL.cjs → area-chart-positioning.config-D8_KYS-h.cjs} +1 -1
  19. package/components/{area-chart-positioning.config-DeMlkQZO.js → area-chart-positioning.config-DT7OiLe4.js} +1 -1
  20. package/components/{bar-chart-options.config--F0KfZ5y.js → bar-chart-options.config-B1C3t6uk.js} +12 -10
  21. package/components/bar-chart-options.config-CI17HU2I.cjs +20 -0
  22. package/components/{bar-chart-positioning.config-DDKGGZhU.cjs → bar-chart-positioning.config-CnMHGk5K.cjs} +1 -1
  23. package/components/{bar-chart-positioning.config-Cw4xXpaU.js → bar-chart-positioning.config-FEwWvMF6.js} +1 -1
  24. package/components/{base-DPqRkMth.js → base-BkD2CWTy.js} +1 -1
  25. package/components/{base-B0frB7oV.cjs → base-XtzYH7G4.cjs} +1 -1
  26. package/components/box-plot-options.config-Cp6H9fyb.cjs +20 -0
  27. package/components/{box-plot-options.config-CT4_71tE.js → box-plot-options.config-sBfVzPTw.js} +24 -19
  28. package/components/{box-plot-positioning.config-Cni8SYCB.cjs → box-plot-positioning.config-Cij5pfeH.cjs} +1 -1
  29. package/components/{box-plot-positioning.config-BQf8CX15.js → box-plot-positioning.config-DxRLb2qS.js} +1 -1
  30. package/components/{bubble-chart-options.config-B_hTYgid.js → bubble-chart-options.config-DKeBF5A0.js} +9 -7
  31. package/components/bubble-chart-options.config-e_0LM1Uw.cjs +20 -0
  32. package/components/{bubble-chart-positioning.config-1Q2GxFJ4.cjs → bubble-chart-positioning.config-BmNR5EQH.cjs} +1 -1
  33. package/components/{bubble-chart-positioning.config-BYeXJRKW.js → bubble-chart-positioning.config-CVnk6LlN.js} +1 -1
  34. package/components/{bullet-chart-positioning.config-D-fuuO8D.js → bullet-chart-positioning.config-7sPWksMT.js} +1 -1
  35. package/components/{bullet-chart-positioning.config-NSHvsWAf.cjs → bullet-chart-positioning.config-CNkU3bzI.cjs} +1 -1
  36. package/components/choropleth-map-options.config-VG10yjwC.cjs +20 -0
  37. package/components/{choropleth-map-options.config-CsJjKLVP.js → choropleth-map-options.config-nOE0NWaD.js} +29 -27
  38. package/components/{choropleth-map-positioning.config-DZCuGwit.cjs → choropleth-map-positioning.config-CljoQanM.cjs} +1 -1
  39. package/components/{choropleth-map-positioning.config-Bk2lcbUF.js → choropleth-map-positioning.config-CuaL7fSP.js} +1 -1
  40. package/components/{circle-pack-chart-options.config-Dobt6Q5A.cjs → circle-pack-chart-options.config-BmX0w3cH.cjs} +1 -1
  41. package/components/{circle-pack-chart-options.config-FcILD-Hi.js → circle-pack-chart-options.config-CgE8vGP9.js} +36 -31
  42. package/components/{circle-pack-chart-positioning.config-CuESD4oH.cjs → circle-pack-chart-positioning.config-CiF6h2TX.cjs} +1 -1
  43. package/components/{circle-pack-chart-positioning.config-pvlFSoeh.js → circle-pack-chart-positioning.config-maqHu5T2.js} +1 -1
  44. package/components/{circular-gauge-positioning.config-DIYxTFVO.cjs → circular-gauge-positioning.config-BK2YSDr1.cjs} +1 -1
  45. package/components/{circular-gauge-positioning.config-BI5_9VzK.js → circular-gauge-positioning.config-e9_VgpRY.js} +1 -1
  46. package/components/{column-chart-options.config-BzMjdyfp.js → column-chart-options.config-C2GGiHOI.js} +12 -10
  47. package/components/column-chart-options.config-xmSH4NKF.cjs +20 -0
  48. package/components/{column-chart-positioning.config-F5liDplz.cjs → column-chart-positioning.config-DdiwInY-.cjs} +1 -1
  49. package/components/{column-chart-positioning.config-CoekgrWc.js → column-chart-positioning.config-DpPXllzx.js} +1 -1
  50. package/components/combination-chart-options.config-IEamJGCp.cjs +20 -0
  51. package/components/{combination-chart-options.config-BEMnrQdd.js → combination-chart-options.config-LddX4naq.js} +8 -3
  52. package/components/{combination-chart-positioning.config-BIqhiqPc.cjs → combination-chart-positioning.config-5Qnm4ZYG.cjs} +1 -1
  53. package/components/{combination-chart-positioning.config-gfmXofUL.js → combination-chart-positioning.config-D7c6z5j6.js} +1 -1
  54. package/components/{conditional-number-positioning.config-7xN8yNaC.cjs → conditional-number-positioning.config-Bmc5b4Hr.cjs} +1 -1
  55. package/components/{conditional-number-positioning.config-DoA_qMvA.js → conditional-number-positioning.config-BnMcO9mu.js} +1 -1
  56. package/components/data-field/index.cjs +1 -1
  57. package/components/data-field/index.js +1 -1
  58. package/components/{data-field-CZGdgBd7.cjs → data-field-BmpgtPX8.cjs} +1 -1
  59. package/components/{data-field-Ccsjj3o5.js → data-field-DTQxvpeM.js} +3 -3
  60. package/components/data-field-level/index.cjs +1 -1
  61. package/components/data-field-level/index.js +1 -1
  62. package/components/{data-field-level-DDYutkKV.cjs → data-field-level-D0RZHwqF.cjs} +1 -1
  63. package/components/{data-field-level-BautlamO.js → data-field-level-EOj5KvoG.js} +1 -1
  64. package/components/data-field-panel/index.cjs +1 -1
  65. package/components/data-field-panel/index.js +1 -1
  66. package/components/{data-field-panel-B9aYsBfe.cjs → data-field-panel-Bc_4pQwc.cjs} +1 -1
  67. package/components/{data-field-panel-COHppDw6.js → data-field-panel-Dya_9wHn.js} +3 -3
  68. package/components/data-fields-select/index.cjs +1 -1
  69. package/components/data-fields-select/index.js +1 -1
  70. package/components/{data-fields-select-CvdABHum.js → data-fields-select-2Da7XC6m.js} +1 -1
  71. package/components/{data-fields-select-BMDWXAMz.cjs → data-fields-select-D4Sxxb_Z.cjs} +1 -1
  72. package/components/dataset-selector-list/index.cjs +1 -1
  73. package/components/dataset-selector-list/index.js +1 -1
  74. package/components/{dataset-selector-list-5y3eFlPa.js → dataset-selector-list-CK9KzC1a.js} +1 -1
  75. package/components/{dataset-selector-list-BWgvikkr.cjs → dataset-selector-list-m1XmVt8T.cjs} +1 -1
  76. package/components/dataset-selector-row/dataset-selector-row.d.ts +36 -5
  77. package/components/dataset-selector-row/index.cjs +1 -1
  78. package/components/dataset-selector-row/index.d.ts +1 -0
  79. package/components/dataset-selector-row/index.js +1 -1
  80. package/components/dataset-selector-row-B78ZLWQS.cjs +102 -0
  81. package/components/dataset-selector-row-gBQl1Bza.js +427 -0
  82. package/components/{de-CbIHJOex.js → de-_-1hLVI0.js} +3 -0
  83. package/components/de-g8uRTFxZ.cjs +20 -0
  84. package/components/display-settings/index.cjs +1 -1
  85. package/components/display-settings/index.js +1 -1
  86. package/components/{display-settings-B_sY5MXH.cjs → display-settings-DLWnhQe0.cjs} +1 -1
  87. package/components/{display-settings-DpPSk_da.js → display-settings-DgOPeUie.js} +2 -2
  88. package/components/display-settings-binning/index.cjs +1 -1
  89. package/components/display-settings-binning/index.js +1 -1
  90. package/components/{display-settings-binning-w2pMC3eK.js → display-settings-binning-CE4hmdtx.js} +2 -2
  91. package/components/{display-settings-binning-BGYyLt7_.cjs → display-settings-binning-CYM7FpXw.cjs} +1 -1
  92. package/components/display-settings-datetime/index.cjs +1 -1
  93. package/components/display-settings-datetime/index.js +1 -1
  94. package/components/{display-settings-datetime-Ditc8j2_.js → display-settings-datetime-D4f_o6NK.js} +2 -2
  95. package/components/{display-settings-datetime-l9LWhG3c.cjs → display-settings-datetime-h8CvoTZ8.cjs} +1 -1
  96. package/components/display-settings-grand-totals/index.cjs +1 -1
  97. package/components/display-settings-grand-totals/index.js +1 -1
  98. package/components/{display-settings-grand-totals-HcJLxYe2.js → display-settings-grand-totals-CnP8P-cu.js} +2 -2
  99. package/components/{display-settings-grand-totals-D-_CQpBV.cjs → display-settings-grand-totals-D0YsVbSs.cjs} +1 -1
  100. package/components/display-settings-numeric/index.cjs +1 -1
  101. package/components/display-settings-numeric/index.js +1 -1
  102. package/components/{display-settings-numeric-CShtLo7v.cjs → display-settings-numeric-DF4zjmZj.cjs} +1 -1
  103. package/components/{display-settings-numeric-FWO7hFLp.js → display-settings-numeric-DyAFuYTz.js} +2 -2
  104. package/components/display-settings-period-over-period/index.cjs +1 -1
  105. package/components/display-settings-period-over-period/index.js +1 -1
  106. package/components/{display-settings-period-over-period-B1dHBjlg.js → display-settings-period-over-period-B634a88N.js} +2 -2
  107. package/components/{display-settings-period-over-period-BdBYrWwJ.cjs → display-settings-period-over-period-DXuRHg-1.cjs} +1 -1
  108. package/components/{donut-chart-options.config-D5Wkh0nh.js → donut-chart-options.config-CPHgS1Wi.js} +8 -3
  109. package/components/donut-chart-options.config-LbmJpNlm.cjs +20 -0
  110. package/components/{donut-chart-positioning.config-DsHR-HET.cjs → donut-chart-positioning.config-BhIwOPI0.cjs} +1 -1
  111. package/components/{donut-chart-positioning.config-B-CWvQDP.js → donut-chart-positioning.config-Peq3v9qK.js} +1 -1
  112. package/components/es-C3dhJP2H.cjs +20 -0
  113. package/components/{es-bVLNpB-8.js → es-Cdl4GvQt.js} +3 -0
  114. package/components/{evolution-number-positioning.config-DWJlecZ8.cjs → evolution-number-positioning.config-ClGlayIt.cjs} +1 -1
  115. package/components/{evolution-number-positioning.config-DogBtixy.js → evolution-number-positioning.config-e90XUBQG.js} +1 -1
  116. package/components/filter-expression-picker/index.cjs +1 -1
  117. package/components/filter-expression-picker/index.js +1 -1
  118. package/components/{filter-expression-picker-vZcmpdhp.js → filter-expression-picker-BPAwOijt.js} +1 -1
  119. package/components/{filter-expression-picker-Dtd04YHa.cjs → filter-expression-picker-COCoT5LG.cjs} +1 -1
  120. package/components/filter-item/index.cjs +1 -1
  121. package/components/filter-item/index.js +1 -1
  122. package/components/{filter-item-DhWm1nZ2.js → filter-item-CbDbNmni.js} +5 -5
  123. package/components/{filter-item-QGXrunyl.cjs → filter-item-cyApfc9M.cjs} +1 -1
  124. package/components/filter-parameter-picker/index.cjs +1 -1
  125. package/components/filter-parameter-picker/index.js +1 -1
  126. package/components/{filter-parameter-picker-Dq7rskJq.js → filter-parameter-picker-CCd77cYS.js} +1 -1
  127. package/components/{filter-parameter-picker-_KpPQvwJ.cjs → filter-parameter-picker-F68BatwD.cjs} +1 -1
  128. package/components/filter-value-picker/index.cjs +1 -1
  129. package/components/filter-value-picker/index.js +1 -1
  130. package/components/{filter-value-picker-DL-XI9zN.js → filter-value-picker-CLUUhn1d.js} +4 -4
  131. package/components/{filter-value-picker-DUPgUphE.cjs → filter-value-picker-DADia7jo.cjs} +1 -1
  132. package/components/filter-value-picker-datetime/index.cjs +1 -1
  133. package/components/filter-value-picker-datetime/index.js +1 -1
  134. package/components/{filter-value-picker-datetime-BYosmOVo.cjs → filter-value-picker-datetime-CuMmWJFV.cjs} +1 -1
  135. package/components/{filter-value-picker-datetime-DrtBsmhk.js → filter-value-picker-datetime-DM2K7Nrv.js} +1 -1
  136. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  137. package/components/filter-value-picker-hierarchy/index.js +1 -1
  138. package/components/{filter-value-picker-hierarchy-Co7tEAF0.cjs → filter-value-picker-hierarchy-BQTrc0ZU.cjs} +1 -1
  139. package/components/{filter-value-picker-hierarchy-D9HPNjXi.js → filter-value-picker-hierarchy-W-a9ycWV.js} +2 -2
  140. package/components/filter-value-picker-numeric/index.cjs +1 -1
  141. package/components/filter-value-picker-numeric/index.js +1 -1
  142. package/components/{filter-value-picker-numeric-BCaSriJT.cjs → filter-value-picker-numeric-CXfgDZ4W.cjs} +1 -1
  143. package/components/{filter-value-picker-numeric-CLRBOcom.js → filter-value-picker-numeric-DL5cqR8I.js} +1 -1
  144. package/components/filters/index.cjs +1 -1
  145. package/components/filters/index.js +1 -1
  146. package/components/{filters-DPh6G5_6.cjs → filters-Dj4mQklp.cjs} +1 -1
  147. package/components/{filters-hIID3Ol5.js → filters-bruSosZt.js} +2 -2
  148. package/components/formula/index.cjs +1 -1
  149. package/components/formula/index.js +1 -1
  150. package/components/{formula-D6fZk242.js → formula-CbApVbw7.js} +2 -2
  151. package/components/{formula-DJa0m0vt.cjs → formula-DkANj6Hi.cjs} +1 -1
  152. package/components/{formula-codemirror-CS38irmY.js → formula-codemirror-C_wCMc2M.js} +4 -4
  153. package/components/{formula-codemirror-ClMjdWte.cjs → formula-codemirror-DGxXJYCi.cjs} +1 -1
  154. package/components/{formula-display-store-riWDbPmO.cjs → formula-display-store-B2DUrVwh.cjs} +1 -1
  155. package/components/{formula-display-store-BVCcrqMB.js → formula-display-store-SkrNDfyG.js} +3 -3
  156. package/components/formula-editor/index.cjs +1 -1
  157. package/components/formula-editor/index.js +3 -3
  158. package/components/{formula-editor-C63ifj9i.js → formula-editor-DX5FRb2v.js} +5 -5
  159. package/components/{formula-editor-KuJjGn6h.cjs → formula-editor-Dv4UIAe_.cjs} +1 -1
  160. package/components/formula-field/index.cjs +1 -1
  161. package/components/formula-field/index.js +1 -1
  162. package/components/{formula-field-CZu-WBKI.js → formula-field-CwnAHHpw.js} +1 -1
  163. package/components/{formula-field-BIseRR26.cjs → formula-field-tJsQsXic.cjs} +1 -1
  164. package/components/{formula-input-base-B1D56Klw.cjs → formula-input-base-6iVykYb0.cjs} +1 -1
  165. package/components/{formula-input-base-DhhV4mbQ.js → formula-input-base-mKhAiYM0.js} +1 -1
  166. package/components/fr-WdV_fXl_.cjs +20 -0
  167. package/components/{fr-BVATPudG.js → fr-qv7EjBRo.js} +3 -0
  168. package/components/{funnel-chart-options.config-Ca5-W17F.js → funnel-chart-options.config-D21WdHBI.js} +5 -3
  169. package/components/funnel-chart-options.config-DgpM8mWb.cjs +20 -0
  170. package/components/{funnel-chart-positioning.config-D7871iXX.js → funnel-chart-positioning.config-Havc4gNs.js} +1 -1
  171. package/components/{funnel-chart-positioning.config-DswPJ8VG.cjs → funnel-chart-positioning.config-PrEIQPXg.cjs} +1 -1
  172. package/components/get-dataset-name-BR_H1MNL.cjs +20 -0
  173. package/components/{get-dataset-name-CXdZ2oH_.js → get-dataset-name-CIf7x0nh.js} +9 -4
  174. package/components/{groupings-Dt2yC9fH.cjs → groupings-BKSBZ34s.cjs} +1 -1
  175. package/components/{groupings-BwzDflId.js → groupings-CIVQITJp.js} +1 -1
  176. package/components/{heat-map-positioning.config-sZTsAUnf.js → heat-map-positioning.config-CF6XNksR.js} +1 -1
  177. package/components/{heat-map-positioning.config-C9xyxr1p.cjs → heat-map-positioning.config-L91C9c0t.cjs} +1 -1
  178. package/components/{heat-table-options.config-DT3d8VS7.js → heat-table-options.config-BJP1jVB8.js} +20 -18
  179. package/components/heat-table-options.config-CugBuoUA.cjs +20 -0
  180. package/components/{heat-table-positioning.config-DSsD8apM.js → heat-table-positioning.config-0YNV-Whw.js} +1 -1
  181. package/components/{heat-table-positioning.config-B5XgRMIn.cjs → heat-table-positioning.config-BuH8txu-.cjs} +1 -1
  182. package/components/{hexbin-map-positioning.config-Dq2TuFz1.cjs → hexbin-map-positioning.config-Dx42tGRj.cjs} +1 -1
  183. package/components/{hexbin-map-positioning.config-Dc9wAdAv.js → hexbin-map-positioning.config-wKi8qbMF.js} +1 -1
  184. package/components/index.cjs +1 -1
  185. package/components/index.js +54 -54
  186. package/components/interactive-viz-item/index.cjs +1 -1
  187. package/components/interactive-viz-item/index.js +1 -1
  188. package/components/{interactive-viz-item-wZ0r8XHx.js → interactive-viz-item-DMOsdrLN.js} +5 -5
  189. package/components/{interactive-viz-item-CcIWn6Tz.cjs → interactive-viz-item-YwkjBGtN.cjs} +1 -1
  190. package/components/interactivity-options.config-BjEGNaIz.js +73 -0
  191. package/components/interactivity-options.config-Bzk2L-qh.cjs +20 -0
  192. package/components/interactivity-options.i18n-BsYv4Rh9.cjs +20 -0
  193. package/components/interactivity-options.i18n-UhOnnlBC.js +59 -0
  194. package/components/item-grid/index.cjs +1 -1
  195. package/components/item-grid/index.js +1 -1
  196. package/components/{item-grid-B8tT6ztQ.cjs → item-grid-B1ColM8x.cjs} +1 -1
  197. package/components/{item-grid-D7b0blK6.js → item-grid-iYxxuvvA.js} +1 -1
  198. package/components/item-option/index.cjs +1 -1
  199. package/components/item-option/index.js +1 -1
  200. package/components/{item-option-B0EzSGTP.js → item-option-BIWC5VRT.js} +38 -38
  201. package/components/{item-option-B-Rgy3_8.cjs → item-option-Cz10G9yw.cjs} +1 -1
  202. package/components/item-option-action-button-group/index.cjs +1 -1
  203. package/components/item-option-action-button-group/index.js +1 -1
  204. package/components/{item-option-action-button-group-BOOW6k_j.cjs → item-option-action-button-group-Dq6xKpHi.cjs} +1 -1
  205. package/components/{item-option-action-button-group-BhC0n29i.js → item-option-action-button-group-TPUU3sts.js} +1 -1
  206. package/components/{item-option-base-D1xRkleX.cjs → item-option-base-BKo7DBxK.cjs} +1 -1
  207. package/components/{item-option-base-IMMzUkdt.js → item-option-base-DcZILy3S.js} +1 -1
  208. package/components/item-option-color-palette-picker/index.cjs +1 -1
  209. package/components/item-option-color-palette-picker/index.js +1 -1
  210. package/components/{item-option-color-palette-picker-DBqNzR3N.cjs → item-option-color-palette-picker-C_Jx5Prb.cjs} +1 -1
  211. package/components/{item-option-color-palette-picker-D6xT_kWC.js → item-option-color-palette-picker-i6Tnv4qN.js} +1 -1
  212. package/components/item-option-color-picker/index.cjs +1 -1
  213. package/components/item-option-color-picker/index.js +1 -1
  214. package/components/{item-option-color-picker-7Dth27ei.js → item-option-color-picker-BSXsKzZ-.js} +1 -1
  215. package/components/{item-option-color-picker-BqjtUtrr.cjs → item-option-color-picker-Co3iTjwo.cjs} +1 -1
  216. package/components/item-option-color-range/index.cjs +1 -1
  217. package/components/item-option-color-range/index.js +1 -1
  218. package/components/{item-option-color-range-Cz1LuJmy.cjs → item-option-color-range-CUYGCwQG.cjs} +1 -1
  219. package/components/{item-option-color-range-Cj5tryJo.js → item-option-color-range-DE8-UNxr.js} +1 -1
  220. package/components/item-option-guidelines/index.cjs +1 -1
  221. package/components/item-option-guidelines/index.js +1 -1
  222. package/components/{item-option-guidelines-CgJEAiF5.cjs → item-option-guidelines-DUjfN-eB.cjs} +1 -1
  223. package/components/{item-option-guidelines-8v9MZ0FH.js → item-option-guidelines-DWdPS45K.js} +3 -3
  224. package/components/item-option-multi-language-field/index.cjs +1 -1
  225. package/components/item-option-multi-language-field/index.js +1 -1
  226. package/components/{item-option-multi-language-field-D9NK-noK.cjs → item-option-multi-language-field-CWE9WrxP.cjs} +1 -1
  227. package/components/{item-option-multi-language-field-BkqcX9zw.js → item-option-multi-language-field-D5e36e1G.js} +1 -1
  228. package/components/item-option-number-field/index.cjs +1 -1
  229. package/components/item-option-number-field/index.js +1 -1
  230. package/components/{item-option-number-field-DHl0phm5.js → item-option-number-field-BElZmdUU.js} +1 -1
  231. package/components/{item-option-number-field-BXZD_sC2.cjs → item-option-number-field-RJ88VAyR.cjs} +1 -1
  232. package/components/item-option-panel/index.cjs +1 -1
  233. package/components/item-option-panel/index.js +1 -1
  234. package/components/{item-option-panel-mHwmWhJY.cjs → item-option-panel-BmaT4y_2.cjs} +1 -1
  235. package/components/{item-option-panel-DOOOOgfV.js → item-option-panel-D7klHx03.js} +2 -2
  236. package/components/item-option-picker/index.cjs +1 -1
  237. package/components/item-option-picker/index.js +1 -1
  238. package/components/{item-option-picker-BUdP-MCI.cjs → item-option-picker-C3M-7kWF.cjs} +1 -1
  239. package/components/{item-option-picker-CmQFzBzN.js → item-option-picker-DnWKHPYS.js} +1 -1
  240. package/components/item-option-position-picker/index.cjs +1 -1
  241. package/components/item-option-position-picker/index.js +1 -1
  242. package/components/{item-option-position-picker-_2Dc6vhB.cjs → item-option-position-picker-B2qUrVJd.cjs} +1 -1
  243. package/components/{item-option-position-picker-CbnJ8Apk.js → item-option-position-picker-CUTrYLPj.js} +1 -1
  244. package/components/item-option-positions-number-field/index.cjs +1 -1
  245. package/components/item-option-positions-number-field/index.js +1 -1
  246. package/components/{item-option-positions-number-field-B6JzEtSc.js → item-option-positions-number-field-B4zcS62B.js} +1 -1
  247. package/components/{item-option-positions-number-field-C41FMT4C.cjs → item-option-positions-number-field-EXPp_Vr4.cjs} +1 -1
  248. package/components/item-option-radio-button-group/index.cjs +1 -1
  249. package/components/item-option-radio-button-group/index.js +1 -1
  250. package/components/{item-option-radio-button-group-rONmmmSf.js → item-option-radio-button-group-Cs1sSCVM.js} +1 -1
  251. package/components/{item-option-radio-button-group-CjdCLmtq.cjs → item-option-radio-button-group-D8GbkHVX.cjs} +1 -1
  252. package/components/item-option-slider/index.cjs +1 -1
  253. package/components/item-option-slider/index.js +1 -1
  254. package/components/{item-option-slider-CANy5MZL.cjs → item-option-slider-Bo1ALP8q.cjs} +1 -1
  255. package/components/{item-option-slider-slgdsaDM.js → item-option-slider-CcKLS-V5.js} +1 -1
  256. package/components/item-option-switch/index.cjs +1 -1
  257. package/components/item-option-switch/index.js +1 -1
  258. package/components/{item-option-switch-Cd9UA7J5.js → item-option-switch-Ch6u9CAm.js} +1 -1
  259. package/components/{item-option-switch-CS6kid_8.cjs → item-option-switch-CpeC7Eh7.cjs} +1 -1
  260. package/components/item-option-text-field/index.cjs +1 -1
  261. package/components/item-option-text-field/index.js +1 -1
  262. package/components/{item-option-text-field-6Y1zBJMK.cjs → item-option-text-field-BxvQAHf3.cjs} +1 -1
  263. package/components/{item-option-text-field-BFP8YnEc.js → item-option-text-field-DAbQegOZ.js} +1 -1
  264. package/components/item-options-configs.cjs +1 -1
  265. package/components/item-options-configs.js +21 -21
  266. package/components/item-slot-drop/index.cjs +1 -1
  267. package/components/item-slot-drop/index.js +1 -1
  268. package/components/{item-slot-drop-BL7DOudd.js → item-slot-drop-DDffbp-i.js} +5 -5
  269. package/components/{item-slot-drop-Ds06u_vn.cjs → item-slot-drop-mKhyjodt.cjs} +1 -1
  270. package/components/item-slot-drop-panel/index.cjs +1 -1
  271. package/components/item-slot-drop-panel/index.js +1 -1
  272. package/components/{item-slot-drop-panel-DkHylw7i.js → item-slot-drop-panel-BtrZehGL.js} +39 -39
  273. package/components/{item-slot-drop-panel-D_EFyM9J.cjs → item-slot-drop-panel-CKXMQCyt.cjs} +1 -1
  274. package/components/item-slot-picker/index.cjs +1 -1
  275. package/components/item-slot-picker/index.js +1 -1
  276. package/components/{item-slot-picker-CywUgvNX.js → item-slot-picker-CWqeOJ8R.js} +6 -6
  277. package/components/{item-slot-picker-BbpPIoIq.cjs → item-slot-picker-CwMjRpkT.cjs} +1 -1
  278. package/components/item-slot-picker-panel/index.cjs +1 -1
  279. package/components/item-slot-picker-panel/index.js +1 -1
  280. package/components/{item-slot-picker-panel-DQLwQXdI.cjs → item-slot-picker-panel-C6Hpc2rT.cjs} +1 -1
  281. package/components/{item-slot-picker-panel-Bi8xZaYc.js → item-slot-picker-panel-cD3DvPbA.js} +3 -3
  282. package/components/{line-chart-options.config-BMT_e6dk.js → line-chart-options.config-D8gRtfj3.js} +10 -5
  283. package/components/line-chart-options.config-RTYFJQSE.cjs +20 -0
  284. package/components/{line-chart-positioning.config-q_XJiQBO.js → line-chart-positioning.config-DoHg1rwA.js} +1 -1
  285. package/components/{line-chart-positioning.config-CCsZMpp-.cjs → line-chart-positioning.config-ZZid30rm.cjs} +1 -1
  286. package/components/{localized-mixin-D1ss6vE4.js → localized-mixin-CSF-kZFt.js} +1 -1
  287. package/components/{localized-mixin-BbOPy_BO.cjs → localized-mixin-DZFYG6RG.cjs} +1 -1
  288. package/components/{marker-map-positioning.config-B4GDDPUn.cjs → marker-map-positioning.config-DGZWoFAk.cjs} +1 -1
  289. package/components/{marker-map-positioning.config-qEo6YbOG.js → marker-map-positioning.config-DX6bFQld.js} +1 -1
  290. package/components/nl-D3gRr88b.cjs +20 -0
  291. package/components/{nl-D6PNT9zh.js → nl-MWgzbW0R.js} +3 -0
  292. package/components/{ohlc-chart-options.config-BrcfGxDw.cjs → ohlc-chart-options.config-Pqd5MFIv.cjs} +1 -1
  293. package/components/{ohlc-chart-options.config-BAB4pyo9.js → ohlc-chart-options.config-xgegn34C.js} +8 -3
  294. package/components/{ohlc-chart-positioning.config-TquTA1gZ.cjs → ohlc-chart-positioning.config-Bev8Atsx.cjs} +1 -1
  295. package/components/{ohlc-chart-positioning.config-CU7qaa8y.js → ohlc-chart-positioning.config-DaEUcXBJ.js} +1 -1
  296. package/components/{parallel-coordinates-plot-options.config-DFRL952-.cjs → parallel-coordinates-plot-options.config-2BbzNgJ9.cjs} +1 -1
  297. package/components/{parallel-coordinates-plot-options.config-BXsg-9wF.js → parallel-coordinates-plot-options.config-BUQLHO1k.js} +25 -20
  298. package/components/{parallel-coordinates-plot-options.de-WRF50oS3.js → parallel-coordinates-plot-options.de-BwbOcCnH.js} +2 -1
  299. package/components/{parallel-coordinates-plot-options.de-0P5Lyjc_.cjs → parallel-coordinates-plot-options.de-CDtIM_Z2.cjs} +1 -1
  300. package/components/{parallel-coordinates-plot-options.en-CttM0XeT.js → parallel-coordinates-plot-options.en-BlzPfF-b.js} +2 -1
  301. package/components/{parallel-coordinates-plot-options.en-CSn2MAT2.cjs → parallel-coordinates-plot-options.en-Bu7cMLrv.cjs} +1 -1
  302. package/components/{parallel-coordinates-plot-options.es-30M9dgQD.cjs → parallel-coordinates-plot-options.es-BPgUHedg.cjs} +1 -1
  303. package/components/{parallel-coordinates-plot-options.es-Bi2HrtUG.js → parallel-coordinates-plot-options.es-CPAqJPEY.js} +2 -1
  304. package/components/{parallel-coordinates-plot-options.fr-B3wy9Y-c.cjs → parallel-coordinates-plot-options.fr-BUxk85Ud.cjs} +1 -1
  305. package/components/{parallel-coordinates-plot-options.fr-wE6jc23K.js → parallel-coordinates-plot-options.fr-DRTOCvqg.js} +2 -1
  306. package/components/{parallel-coordinates-plot-options.nl-CK0Z_bEU.cjs → parallel-coordinates-plot-options.nl-CHuWgaYV.cjs} +1 -1
  307. package/components/{parallel-coordinates-plot-options.nl-ByxbF6Re.js → parallel-coordinates-plot-options.nl-DqXxaV_Z.js} +2 -1
  308. package/components/{parallel-coordinates-plot-positioning.config-C8_F3uzs.cjs → parallel-coordinates-plot-positioning.config-DJ7K-dVp.cjs} +1 -1
  309. package/components/{parallel-coordinates-plot-positioning.config-DuQWnPKv.js → parallel-coordinates-plot-positioning.config-NWEEOd4d.js} +1 -1
  310. package/components/pivot-table-options.config-D6Hdgnof.cjs +20 -0
  311. package/components/{pivot-table-options.config-tf8f5F-n.js → pivot-table-options.config-DW9UDipI.js} +5 -3
  312. package/components/{pivot-table-positioning.config-B6ra1dbJ.js → pivot-table-positioning.config-DpMiUVtd.js} +1 -1
  313. package/components/{pivot-table-positioning.config-DhtDGn-Z.cjs → pivot-table-positioning.config-U-M08Rwc.cjs} +1 -1
  314. package/components/{pyramid-chart-options.config-BnCfeT-K.js → pyramid-chart-options.config-Cbg351Yy.js} +5 -3
  315. package/components/pyramid-chart-options.config-ClLsv7PT.cjs +20 -0
  316. package/components/{pyramid-chart-positioning.config-5bWhJBP_.cjs → pyramid-chart-positioning.config-BpdI6jmg.cjs} +1 -1
  317. package/components/{pyramid-chart-positioning.config-C_KASxlG.js → pyramid-chart-positioning.config-CZwx_f40.js} +1 -1
  318. package/components/{radar-chart-positioning.config-l6ioKbxT.js → radar-chart-positioning.config-IFacftgi.js} +1 -1
  319. package/components/{radar-chart-positioning.config-D2NVgsg1.cjs → radar-chart-positioning.config-IcaEKe9Q.cjs} +1 -1
  320. package/components/{route-map-positioning.config-HDuhd3TI.js → route-map-positioning.config-CHfz0eM_.js} +1 -1
  321. package/components/{route-map-positioning.config-5Xju6VM-.cjs → route-map-positioning.config-DKZvRmfJ.cjs} +1 -1
  322. package/components/{sankey-diagram-options.config-CpNK2oK6.js → sankey-diagram-options.config-1lSECht4.js} +5 -3
  323. package/components/sankey-diagram-options.config-DZDqv5aI.cjs +20 -0
  324. package/components/{sankey-diagram-positioning.config-BKeksOQ2.js → sankey-diagram-positioning.config-BaCoBJXV.js} +1 -1
  325. package/components/{sankey-diagram-positioning.config-BXseVUED.cjs → sankey-diagram-positioning.config-DJaK2xJX.cjs} +1 -1
  326. package/components/{scatter-plot-options.config-BA_hVuhw.js → scatter-plot-options.config-9zL4v24E.js} +10 -5
  327. package/components/scatter-plot-options.config-DJW85uFv.cjs +20 -0
  328. package/components/{scatter-plot-positioning.config-Ci_UFZZ7.cjs → scatter-plot-positioning.config-DaNI54rh.cjs} +1 -1
  329. package/components/{scatter-plot-positioning.config-MFGPELRh.js → scatter-plot-positioning.config-PC47tloI.js} +1 -1
  330. package/components/{set-locale-B91FmqSp.js → set-locale-Jz3DhqaW.js} +4 -4
  331. package/components/{set-locale-8XQ-p5_N.cjs → set-locale-v6POkwmC.cjs} +1 -1
  332. package/components/{slicer-filter-positioning.config-CKyzt_nF.js → slicer-filter-positioning.config-DMqYOG9Z.js} +1 -1
  333. package/components/{slicer-filter-positioning.config-C2w10p-X.cjs → slicer-filter-positioning.config-KANe71ep.cjs} +1 -1
  334. package/components/slot-menu/index.cjs +1 -1
  335. package/components/slot-menu/index.js +1 -1
  336. package/components/{slot-menu-7Lsnn5mp.cjs → slot-menu-CWMA97fn.cjs} +1 -1
  337. package/components/{slot-menu-JcmVjv2g.js → slot-menu-Cwee5fNa.js} +3 -3
  338. package/components/slot-menu-list/index.cjs +1 -1
  339. package/components/slot-menu-list/index.js +1 -1
  340. package/components/{slot-menu-list-tyN6sguq.cjs → slot-menu-list-BEou0QhK.cjs} +1 -1
  341. package/components/{slot-menu-list-Bcm2lpwi.js → slot-menu-list-De2q0GGZ.js} +1 -1
  342. package/components/{speedometer-chart-positioning.config-BEWibjyH.js → speedometer-chart-positioning.config-CYVK0VnJ.js} +1 -1
  343. package/components/{speedometer-chart-positioning.config-Df5CIOwp.cjs → speedometer-chart-positioning.config-DW3dJD7n.cjs} +1 -1
  344. package/components/{spike-map-positioning.config-CdT1dVMG.js → spike-map-positioning.config-CfVFEygx.js} +1 -1
  345. package/components/{spike-map-positioning.config-C6aRn7nn.cjs → spike-map-positioning.config-Dl-Uf_O6.cjs} +1 -1
  346. package/components/{strip-plot-positioning.config-B8vN0A44.js → strip-plot-positioning.config-BMNtb-to.js} +1 -1
  347. package/components/{strip-plot-positioning.config-DXJci5zk.cjs → strip-plot-positioning.config-eJ5MbyBk.cjs} +1 -1
  348. package/components/{sunburst-chart-options.config-0GUoeJMb.js → sunburst-chart-options.config-CXOrVmIe.js} +5 -3
  349. package/components/sunburst-chart-options.config-DszAtggj.cjs +20 -0
  350. package/components/{sunburst-chart-positioning.config-D-qWT3sC.js → sunburst-chart-positioning.config-BRWF7dVf.js} +1 -1
  351. package/components/{sunburst-chart-positioning.config-XfxGkqp6.cjs → sunburst-chart-positioning.config-CJgmPm-9.cjs} +1 -1
  352. package/components/{symbol-map-positioning.config-BB8-Feba.cjs → symbol-map-positioning.config-ONSN27l9.cjs} +1 -1
  353. package/components/{symbol-map-positioning.config-CAC8XCec.js → symbol-map-positioning.config-_8L-oDxW.js} +1 -1
  354. package/components/{treemap-chart-options.config-CtpfX7hs.js → treemap-chart-options.config-6l3HzikF.js} +10 -8
  355. package/components/treemap-chart-options.config-Cpj6vD6I.cjs +20 -0
  356. package/components/{treemap-chart-positioning.config-CJKe5rf1.js → treemap-chart-positioning.config-Bggn7Mqz.js} +1 -1
  357. package/components/{treemap-chart-positioning.config-Daf9Kk3k.cjs → treemap-chart-positioning.config-DrCRoNzf.cjs} +1 -1
  358. package/components/utils/base.cjs +1 -1
  359. package/components/utils/base.js +2 -2
  360. package/components/{utils-BMmRy1Nn.js → utils-B2Eqs5i5.js} +1 -1
  361. package/components/{utils-D9CBsoMV.cjs → utils-CNH9xGyk.cjs} +1 -1
  362. package/components/utils.cjs +1 -1
  363. package/components/utils.js +2 -2
  364. package/components/{venn-diagram-positioning.config-DqxSgLGR.cjs → venn-diagram-positioning.config-B-prEVEc.cjs} +1 -1
  365. package/components/{venn-diagram-positioning.config-8pfbiReM.js → venn-diagram-positioning.config-BoH0wNEM.js} +1 -1
  366. package/components/viz-item-menu/index.cjs +1 -1
  367. package/components/viz-item-menu/index.js +1 -1
  368. package/components/{viz-item-menu-CPqpF_PR.js → viz-item-menu-BUSjo6j_.js} +1 -1
  369. package/components/{viz-item-menu-BSkDsdNg.cjs → viz-item-menu-C-kpX-Ft.cjs} +1 -1
  370. package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +20 -0
  371. package/components/{wordcloud-chart-options.config-Dxu7-YcG.js → wordcloud-chart-options.config-CpMtpG7q.js} +5 -3
  372. package/components/{wordcloud-chart-positioning.config-DUazjx5M.js → wordcloud-chart-positioning.config-B6pvD7_a.js} +1 -1
  373. package/components/{wordcloud-chart-positioning.config-Cb7lzr9N.cjs → wordcloud-chart-positioning.config-BJi5SVYf.cjs} +1 -1
  374. package/custom-elements.json +142 -12
  375. package/package.json +4 -4
  376. package/react/components/dataset-selector-row.component.ts +8 -2
  377. package/react/esm/components/dataset-selector-row.component.d.ts +5 -1
  378. package/react/esm/components/dataset-selector-row.component.js +5 -1
  379. package/react/luzmo-stub.d.ts +1 -0
  380. package/react/package.json +2 -2
  381. package/types/agent.types.d.ts +4 -0
  382. package/types.d.ts +1 -0
  383. package/utils/formatter/get-localized-name.d.ts +4 -0
  384. package/utils/formatter/tests/get-localized-name.test.d.ts +1 -0
  385. package/components/ai-chat-CQtzaiZ_.cjs +0 -319
  386. package/components/ai-interaction-textarea-CMz5ixwt.cjs +0 -95
  387. package/components/area-chart-options.config-CiPCKvh7.cjs +0 -20
  388. package/components/bar-chart-options.config-A5bcUHFc.cjs +0 -20
  389. package/components/box-plot-options.config-ZZ_mvqGk.cjs +0 -20
  390. package/components/bubble-chart-options.config-BbB5dj43.cjs +0 -20
  391. package/components/choropleth-map-options.config-CEGFnwKG.cjs +0 -20
  392. package/components/column-chart-options.config-iKKyzY3j.cjs +0 -20
  393. package/components/combination-chart-options.config-BqQlqnhf.cjs +0 -20
  394. package/components/dataset-selector-row-BjyeiTVy.cjs +0 -90
  395. package/components/dataset-selector-row-pEM8hLyJ.js +0 -316
  396. package/components/de-BZnsTnT9.cjs +0 -20
  397. package/components/donut-chart-options.config-DUIE-bdr.cjs +0 -20
  398. package/components/es-D3v9KL7a.cjs +0 -20
  399. package/components/fr-uvrkqpp_.cjs +0 -20
  400. package/components/funnel-chart-options.config-CMOM4QN2.cjs +0 -20
  401. package/components/get-dataset-name-CIt7of_Z.cjs +0 -20
  402. package/components/heat-table-options.config-Dl6GDA-m.cjs +0 -20
  403. package/components/line-chart-options.config-CL8SCDgU.cjs +0 -20
  404. package/components/nl-DwF8NHcr.cjs +0 -20
  405. package/components/pivot-table-options.config-B9ZfmFZH.cjs +0 -20
  406. package/components/pyramid-chart-options.config-LSOc6ALz.cjs +0 -20
  407. package/components/sankey-diagram-options.config-CuKQOPPW.cjs +0 -20
  408. package/components/scatter-plot-options.config-C-L2dJ2o.cjs +0 -20
  409. package/components/sunburst-chart-options.config-CCNYG73m.cjs +0 -20
  410. package/components/treemap-chart-options.config-pA93-9cX.cjs +0 -20
  411. package/components/wordcloud-chart-options.config-ConV1s49.cjs +0 -20
@@ -17,8 +17,8 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-uc14Goa4.js";
21
- import { i } from "./base-DPqRkMth.js";
20
+ import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-BbVH-aF4.js";
21
+ import { i } from "./base-BkD2CWTy.js";
22
22
  import { t as a } from "./decorate-DyMgX_Uh.js";
23
23
  import { msg as o } from "@lit/localize/lit-localize";
24
24
  import { luzmoEllipsisVertical as s, luzmoIcon as c, luzmoSpin as l } from "@luzmo/icons";
@@ -34,19 +34,25 @@ import { unsafeHTML as ee } from "lit/directives/unsafe-html.js";
34
34
  import "@luzmo/lucero/action-button";
35
35
  //#region node_modules/dompurify/dist/purify.es.mjs
36
36
  function h(e, t) {
37
+ this.v = e, this.k = t;
38
+ }
39
+ function g(e, t) {
37
40
  (t == null || t > e.length) && (t = e.length);
38
41
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
39
42
  return r;
40
43
  }
41
- function g(e) {
44
+ function te(e) {
42
45
  if (Array.isArray(e)) return e;
43
46
  }
44
- function te(e, t) {
47
+ function ne(e, t) {
45
48
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
46
49
  if (n != null) {
47
50
  var r, i, a, o, s = [], c = !0, l = !1;
48
51
  try {
49
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
52
+ if (a = (n = n.call(e)).next, t === 0) {
53
+ if (Object(n) !== n) return;
54
+ c = !1;
55
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
50
56
  } catch (e) {
51
57
  l = !0, i = e;
52
58
  } finally {
@@ -59,97 +65,148 @@ function te(e, t) {
59
65
  return s;
60
66
  }
61
67
  }
62
- function ne() {
68
+ function re() {
63
69
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
70
  }
65
- function re(e, t) {
66
- return g(e) || te(e, t) || ie(e, t) || ne();
67
- }
68
71
  function ie(e, t) {
72
+ return te(e) || ne(e, t) || ae(e, t) || re();
73
+ }
74
+ function ae(e, t) {
69
75
  if (e) {
70
- if (typeof e == "string") return h(e, t);
76
+ if (typeof e == "string") return g(e, t);
71
77
  var n = {}.toString.call(e).slice(8, -1);
72
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h(e, t) : void 0;
78
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g(e, t) : void 0;
73
79
  }
74
80
  }
75
- var ae = Object.entries, oe = Object.setPrototypeOf, se = Object.isFrozen, ce = Object.getPrototypeOf, _ = Object.getOwnPropertyDescriptor, v = Object.freeze, y = Object.seal, le = Object.create, b = typeof Reflect < "u" && Reflect, ue = b.apply, de = b.construct;
76
- v ||= function(e) {
81
+ function _(e) {
82
+ var t, n;
83
+ function r(t, n) {
84
+ try {
85
+ var a = e[t](n), o = a.value, s = o instanceof h;
86
+ Promise.resolve(s ? o.v : o).then(function(n) {
87
+ if (s) {
88
+ var c = t === "return" && o.k ? t : "next";
89
+ if (!o.k || n.done) return r(c, n);
90
+ n = e[c](n).value;
91
+ }
92
+ i(!!a.done, n);
93
+ }, function(e) {
94
+ r("throw", e);
95
+ });
96
+ } catch (e) {
97
+ i(2, e);
98
+ }
99
+ }
100
+ function i(e, i) {
101
+ e === 2 ? t.reject(i) : t.resolve({
102
+ value: i,
103
+ done: e
104
+ }), (t = t.next) ? r(t.key, t.arg) : n = null;
105
+ }
106
+ this._invoke = function(e, i) {
107
+ return new Promise(function(a, o) {
108
+ var s = {
109
+ key: e,
110
+ arg: i,
111
+ resolve: a,
112
+ reject: o,
113
+ next: null
114
+ };
115
+ n ? n = n.next = s : (t = n = s, r(e, i));
116
+ });
117
+ }, typeof e.return != "function" && (this.return = void 0);
118
+ }
119
+ _.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
120
+ return this;
121
+ }, _.prototype.next = function(e) {
122
+ return this._invoke("next", e);
123
+ }, _.prototype.throw = function(e) {
124
+ return this._invoke("throw", e);
125
+ }, _.prototype.return = function(e) {
126
+ return this._invoke("return", e);
127
+ };
128
+ var oe = Object.entries, se = Object.setPrototypeOf, v = Object.isFrozen, ce = Object.getPrototypeOf, le = Object.getOwnPropertyDescriptor, y = Object.freeze, b = Object.seal, ue = Object.create, de = typeof Reflect < "u" && Reflect, fe = de.apply, pe = de.construct;
129
+ y ||= function(e) {
77
130
  return e;
78
- }, y ||= function(e) {
131
+ }, b ||= function(e) {
79
132
  return e;
80
- }, ue ||= function(e, t) {
133
+ }, fe ||= function(e, t) {
81
134
  var n = [...arguments].slice(2);
82
135
  return e.apply(t, n);
83
- }, de ||= function(e) {
136
+ }, pe ||= function(e) {
84
137
  return new e(...[...arguments].slice(1));
85
138
  };
86
- var fe = w(Array.prototype.forEach), pe = w(Array.prototype.lastIndexOf), me = w(Array.prototype.pop), he = w(Array.prototype.push), ge = w(Array.prototype.splice), _e = Array.isArray, ve = w(String.prototype.toLowerCase), ye = w(String.prototype.toString), be = w(String.prototype.match), xe = w(String.prototype.replace), Se = w(String.prototype.indexOf), Ce = w(String.prototype.trim), we = w(Number.prototype.toString), Te = w(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), Ee = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), S = w(Object.prototype.hasOwnProperty), De = w(Object.prototype.toString), C = w(RegExp.prototype.test), Oe = ke(TypeError);
87
- function w(e) {
139
+ var me = C(Array.prototype.forEach);
140
+ Array.prototype.indexOf;
141
+ var he = C(Array.prototype.lastIndexOf), ge = C(Array.prototype.pop), _e = C(Array.prototype.push);
142
+ Array.prototype.slice;
143
+ var ve = C(Array.prototype.splice), ye = Array.isArray, be = C(String.prototype.toLowerCase), xe = C(String.prototype.toString), Se = C(String.prototype.match), Ce = C(String.prototype.replace), we = C(String.prototype.indexOf), Te = C(String.prototype.trim), Ee = C(Number.prototype.toString), De = C(Boolean.prototype.toString), Oe = typeof BigInt > "u" ? null : C(BigInt.prototype.toString), ke = typeof Symbol > "u" ? null : C(Symbol.prototype.toString), x = C(Object.prototype.hasOwnProperty), Ae = C(Object.prototype.toString), S = C(RegExp.prototype.test), je = Me(TypeError);
144
+ function C(e) {
88
145
  return function(t) {
89
146
  t instanceof RegExp && (t.lastIndex = 0);
90
147
  var n = [...arguments].slice(1);
91
- return ue(e, t, n);
148
+ return fe(e, t, n);
92
149
  };
93
150
  }
94
- function ke(e) {
151
+ function Me(e) {
95
152
  return function() {
96
- return de(e, [...arguments]);
153
+ return pe(e, [...arguments]);
97
154
  };
98
155
  }
99
- function T(e, t) {
100
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
101
- if (oe && oe(e, null), !_e(t)) return e;
156
+ function w(e, t) {
157
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be;
158
+ if (se && se(e, null), !ye(t)) return e;
102
159
  let r = t.length;
103
160
  for (; r--;) {
104
161
  let i = t[r];
105
162
  if (typeof i == "string") {
106
163
  let e = n(i);
107
- e !== i && (se(t) || (t[r] = e), i = e);
164
+ e !== i && (v(t) || (t[r] = e), i = e);
108
165
  }
109
166
  e[i] = !0;
110
167
  }
111
168
  return e;
112
169
  }
113
- function Ae(e) {
114
- for (let t = 0; t < e.length; t++) S(e, t) || (e[t] = null);
170
+ function Ne(e) {
171
+ for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
115
172
  return e;
116
173
  }
117
- function E(e) {
118
- let t = le(null);
119
- for (let r of ae(e)) {
120
- var n = re(r, 2);
174
+ function T(e) {
175
+ let t = ue(null);
176
+ for (let r of oe(e)) {
177
+ var n = ie(r, 2);
121
178
  let i = n[0], a = n[1];
122
- S(e, i) && (_e(a) ? t[i] = Ae(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = E(a) : t[i] = a);
179
+ x(e, i) && (ye(a) ? t[i] = Ne(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = T(a) : t[i] = a);
123
180
  }
124
181
  return t;
125
182
  }
126
- function je(e) {
183
+ function Pe(e) {
127
184
  switch (typeof e) {
128
185
  case "string": return e;
129
- case "number": return we(e);
130
- case "boolean": return Te(e);
131
- case "bigint": return x ? x(e) : "0";
132
- case "symbol": return Ee ? Ee(e) : "Symbol()";
133
- case "undefined": return De(e);
186
+ case "number": return Ee(e);
187
+ case "boolean": return De(e);
188
+ case "bigint": return Oe ? Oe(e) : "0";
189
+ case "symbol": return ke ? ke(e) : "Symbol()";
190
+ case "undefined": return Ae(e);
134
191
  case "function":
135
192
  case "object": {
136
- if (e === null) return De(e);
137
- let t = e, n = D(t, "toString");
193
+ if (e === null) return Ae(e);
194
+ let t = e, n = E(t, "toString");
138
195
  if (typeof n == "function") {
139
196
  let e = n(t);
140
- return typeof e == "string" ? e : De(e);
197
+ return typeof e == "string" ? e : Ae(e);
141
198
  }
142
- return De(e);
199
+ return Ae(e);
143
200
  }
144
- default: return De(e);
201
+ default: return Ae(e);
145
202
  }
146
203
  }
147
- function D(e, t) {
204
+ function E(e, t) {
148
205
  for (; e !== null;) {
149
- let n = _(e, t);
206
+ let n = le(e, t);
150
207
  if (n) {
151
- if (n.get) return w(n.get);
152
- if (typeof n.value == "function") return w(n.value);
208
+ if (n.get) return C(n.get);
209
+ if (typeof n.value == "function") return C(n.value);
153
210
  }
154
211
  e = ce(e);
155
212
  }
@@ -158,14 +215,14 @@ function D(e, t) {
158
215
  }
159
216
  return n;
160
217
  }
161
- function Me(e) {
218
+ function Fe(e) {
162
219
  try {
163
- return C(e, ""), !0;
220
+ return S(e, ""), !0;
164
221
  } catch {
165
222
  return !1;
166
223
  }
167
224
  }
168
- var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Pe = v(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Fe = v([
225
+ var Ie = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Le = y(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Re = y([
169
226
  "feBlend",
170
227
  "feColorMatrix",
171
228
  "feComponentTransfer",
@@ -191,7 +248,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
191
248
  "feSpotLight",
192
249
  "feTile",
193
250
  "feTurbulence"
194
- ]), Ie = v([
251
+ ]), ze = y([
195
252
  "animate",
196
253
  "color-profile",
197
254
  "cursor",
@@ -214,7 +271,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
214
271
  "solidcolor",
215
272
  "unknown",
216
273
  "use"
217
- ]), Le = v(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Re = v([
274
+ ]), Be = y(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ve = y([
218
275
  "maction",
219
276
  "maligngroup",
220
277
  "malignmark",
@@ -230,13 +287,13 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
230
287
  "annotation-xml",
231
288
  "mprescripts",
232
289
  "none"
233
- ]), ze = v(["#text"]), Be = v(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ve = v(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), He = v(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ue = v([
290
+ ]), He = y(["#text"]), Ue = y(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), We = y(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ge = y(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ke = y([
234
291
  "xlink:href",
235
292
  "xml:id",
236
293
  "xlink:title",
237
294
  "xml:space",
238
295
  "xmlns:xlink"
239
- ]), We = y(/{{[\w\W]*|^[\w\W]*}}/g), Ge = y(/<%[\w\W]*|^[\w\W]*%>/g), Ke = y(/\${[\w\W]*/g), qe = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), Je = y(/^aria-[\-\w]+$/), Ye = y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Xe = y(/^(?:\w+script|data):/i), Ze = y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Qe = y(/^html$/i), $e = y(/^[a-z][.\w]*(-[.\w]+)+$/i), et = y(/<[/\w!]/g), tt = y(/<[/\w]/g), nt = y(/<\/no(script|embed|frames)/i), rt = y(/\/>/i), O = {
296
+ ]), qe = b(/{{[\w\W]*|^[\w\W]*}}/g), Je = b(/<%[\w\W]*|^[\w\W]*%>/g), Ye = b(/\${[\w\W]*/g), Xe = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ze = b(/^aria-[\-\w]+$/), Qe = b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $e = b(/^(?:\w+script|data):/i), et = b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), tt = b(/^html$/i), nt = b(/^[a-z][.\w]*(-[.\w]+)+$/i), rt = b(/<[/\w!]/g), it = b(/<[/\w]/g), at = b(/<\/no(script|embed|frames)/i), ot = b(/\/>/i), D = {
240
297
  element: 1,
241
298
  attribute: 2,
242
299
  text: 3,
@@ -249,7 +306,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
249
306
  documentType: 10,
250
307
  documentFragment: 11,
251
308
  notation: 12
252
- }, it = [
309
+ }, st = [
253
310
  "style",
254
311
  "script",
255
312
  "xmp",
@@ -258,14 +315,14 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
258
315
  "noframes",
259
316
  "plaintext",
260
317
  "noscript"
261
- ], at = v(T({}, it)), ot = function() {
318
+ ], ct = y(w({}, st)), lt = function() {
262
319
  let e = {};
263
- return fe(it, (t) => {
264
- e[t] = y(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
265
- }), v(e);
266
- }(), st = function() {
320
+ return me(st, (t) => {
321
+ e[t] = b(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
322
+ }), y(e);
323
+ }(), ut = function() {
267
324
  return typeof window > "u" ? null : window;
268
- }, ct = function(e, t) {
325
+ }, dt = function(e, t) {
269
326
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
270
327
  let n = null, r = "data-tt-policy-suffix";
271
328
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -282,7 +339,7 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
282
339
  } catch {
283
340
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
284
341
  }
285
- }, lt = function() {
342
+ }, ft = function() {
286
343
  return {
287
344
  afterSanitizeAttributes: [],
288
345
  afterSanitizeElements: [],
@@ -294,60 +351,60 @@ var Ne = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
294
351
  uponSanitizeElement: [],
295
352
  uponSanitizeShadowNode: []
296
353
  };
297
- }, ut = function(e, t, n, r) {
298
- return S(e, t) && _e(e[t]) ? T(r.base ? E(r.base) : {}, e[t], r.transform) : n;
299
- }, dt = function(e, t, n) {
300
- let r = S(e, t) ? e[t] : void 0;
301
- return r && typeof r == "object" ? E(r) : n();
354
+ }, pt = function(e, t, n, r) {
355
+ return x(e, t) && ye(e[t]) ? w(r.base ? T(r.base) : {}, e[t], r.transform) : n;
356
+ }, mt = function(e, t, n) {
357
+ let r = x(e, t) ? e[t] : void 0;
358
+ return r && typeof r == "object" ? T(r) : n();
302
359
  };
303
- function ft() {
304
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : st(), t = (e) => ft(e);
305
- if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
360
+ function ht() {
361
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ut(), t = (e) => ht(e);
362
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== D.document || !e.Element) return t.isSupported = !1, t;
306
363
  let n = e.document, r = n, i = r.currentScript;
307
364
  e.DocumentFragment;
308
365
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
309
366
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
310
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = D(d, "cloneNode"), p = D(d, "remove"), m = D(d, "removeAttributeNode"), ee = D(d, "nextSibling"), h = D(d, "childNodes"), g = D(d, "parentNode"), te = D(d, "shadowRoot"), ne = D(d, "attributes"), re = o && o.prototype ? D(o.prototype, "nodeType") : null, ie = o && o.prototype ? D(o.prototype, "nodeName") : null, oe = o && o.prototype ? D(o.prototype, "ownerDocument") : null, se = function(e) {
367
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = E(d, "cloneNode"), p = E(d, "remove"), m = E(d, "removeAttributeNode"), ee = E(d, "nextSibling"), h = E(d, "childNodes"), g = E(d, "parentNode"), te = E(d, "shadowRoot"), ne = E(d, "attributes"), re = o && o.prototype ? E(o.prototype, "nodeType") : null, ie = o && o.prototype ? E(o.prototype, "nodeName") : null, ae = o && o.prototype ? E(o.prototype, "ownerDocument") : null, _ = function(e) {
311
368
  return re ? re(e) : e.nodeType;
312
- }, ce = function(e) {
369
+ }, se = function(e) {
313
370
  return ie ? ie(e) : e.nodeName;
314
371
  };
315
372
  if (typeof a == "function") {
316
373
  let e = n.createElement("template");
317
374
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
318
375
  }
319
- let _, b = "", ue, de = !1, we = 0, Te = function() {
320
- if (we > 0) throw Oe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
321
- }, x = function(e) {
322
- Te(), we++;
376
+ let v, ce = "", le, de = !1, fe = 0, pe = function() {
377
+ if (fe > 0) throw je("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
378
+ }, Ee = function(e) {
379
+ pe(), fe++;
323
380
  try {
324
- return _.createHTML(e);
381
+ return v.createHTML(e);
325
382
  } finally {
326
- we--;
383
+ fe--;
327
384
  }
328
- }, Ee = function(e) {
329
- Te(), we++;
385
+ }, De = function(e) {
386
+ pe(), fe++;
330
387
  try {
331
- return _.createScriptURL(e);
388
+ return v.createScriptURL(e);
332
389
  } finally {
333
- we--;
334
- }
335
- }, De = function() {
336
- return de ||= (ue = ct(u, i), !0), ue;
337
- }, w = n, ke = w.implementation, Ae = w.createNodeIterator, it = w.createDocumentFragment, pt = w.getElementsByTagName, mt = r.importNode, k = lt();
338
- t.isSupported = typeof ae == "function" && typeof g == "function" && ke && ke.createHTMLDocument !== void 0;
339
- let ht = We, A = Ge, gt = Ke, j = qe, _t = Je, M = Xe, vt = Ze, yt = $e, bt = Ye, N = null, xt = T({}, [
340
- ...Ne,
341
- ...Pe,
342
- ...Fe,
390
+ fe--;
391
+ }
392
+ }, Oe = function() {
393
+ return de ||= (le = dt(u, i), !0), le;
394
+ }, ke = n, Ae = ke.implementation, C = ke.createNodeIterator, Me = ke.createDocumentFragment, Ne = ke.getElementsByTagName, st = r.importNode, O = ft();
395
+ t.isSupported = typeof oe == "function" && typeof g == "function" && Ae && Ae.createHTMLDocument !== void 0;
396
+ let gt = qe, _t = Je, vt = Ye, yt = Xe, bt = Ze, k = $e, xt = et, A = nt, St = Qe, j = null, Ct = w({}, [
397
+ ...Ie,
343
398
  ...Le,
344
- ...ze
345
- ]), P = null, St = T({}, [
399
+ ...Re,
346
400
  ...Be,
347
- ...Ve,
348
- ...He,
349
- ...Ue
350
- ]), F = Object.seal(le(null, {
401
+ ...He
402
+ ]), M = null, wt = w({}, [
403
+ ...Ue,
404
+ ...We,
405
+ ...Ge,
406
+ ...Ke
407
+ ]), N = Object.seal(ue(null, {
351
408
  tagNameCheck: {
352
409
  writable: !0,
353
410
  configurable: !1,
@@ -366,7 +423,7 @@ function ft() {
366
423
  enumerable: !0,
367
424
  value: !1
368
425
  }
369
- })), Ct = null, wt = null, I = Object.seal(le(null, {
426
+ })), Tt = null, Et = null, P = Object.seal(ue(null, {
370
427
  tagCheck: {
371
428
  writable: !0,
372
429
  configurable: !1,
@@ -379,14 +436,14 @@ function ft() {
379
436
  enumerable: !0,
380
437
  value: null
381
438
  }
382
- })), Tt = !0, Et = !0, Dt = !1, Ot = !0, L = !1, R = !0, z = !1, kt = !1, At = null, jt = null, Mt = !1, Nt = !1, Pt = !1, Ft = !1, It = !0, B = !1, Lt = "user-content-", Rt = !0, zt = !1, V = {}, Bt = null, Vt = T({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ht = null, Ut = T({}, [
439
+ })), Dt = !0, Ot = !0, kt = !1, At = !0, F = !1, I = !0, L = !1, jt = !1, Mt = null, Nt = null, Pt = !1, Ft = !1, It = !1, Lt = !1, Rt = !0, zt = !1, Bt = "user-content-", R = !0, Vt = !1, z = {}, Ht = null, Ut = w({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Wt = null, Gt = w({}, [
383
440
  "audio",
384
441
  "video",
385
442
  "img",
386
443
  "source",
387
444
  "image",
388
445
  "track"
389
- ]), Wt = null, Gt = T({}, [
446
+ ]), Kt = null, qt = w({}, [
390
447
  "alt",
391
448
  "class",
392
449
  "for",
@@ -401,77 +458,77 @@ function ft() {
401
458
  "value",
402
459
  "style",
403
460
  "xmlns"
404
- ]), Kt = "http://www.w3.org/1998/Math/MathML", qt = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", Jt = H, Yt = !1, Xt = null, Zt = T({}, [
405
- Kt,
406
- qt,
407
- H
408
- ], ye), Qt = v([
461
+ ]), Jt = "http://www.w3.org/1998/Math/MathML", Yt = "http://www.w3.org/2000/svg", B = "http://www.w3.org/1999/xhtml", Xt = B, Zt = !1, Qt = null, $t = w({}, [
462
+ Jt,
463
+ Yt,
464
+ B
465
+ ], xe), en = y([
409
466
  "mi",
410
467
  "mo",
411
468
  "mn",
412
469
  "ms",
413
470
  "mtext"
414
- ]), $t = T({}, Qt), en = v(["annotation-xml"]), tn = T({}, en), nn = T({}, [
471
+ ]), tn = w({}, en), nn = y(["annotation-xml"]), rn = w({}, nn), an = w({}, [
415
472
  "title",
416
473
  "style",
417
474
  "font",
418
475
  "a",
419
476
  "script"
420
- ]), rn = null, an = ["application/xhtml+xml", "text/html"], U = null, on = null, sn = n.createElement("form"), cn = function(e) {
477
+ ]), V = null, on = ["application/xhtml+xml", "text/html"], H = null, sn = null, cn = n.createElement("form"), ln = function(e) {
421
478
  return e instanceof RegExp || e instanceof Function;
422
- }, ln = function() {
479
+ }, un = function() {
423
480
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
424
- if (on && on === e) return;
425
- (!e || typeof e != "object") && (e = {}), e = E(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, U = rn === "application/xhtml+xml" ? ye : ve, N = ut(e, "ALLOWED_TAGS", xt, { transform: U }), P = ut(e, "ALLOWED_ATTR", St, { transform: U }), Xt = ut(e, "ALLOWED_NAMESPACES", Zt, { transform: ye }), Wt = ut(e, "ADD_URI_SAFE_ATTR", Gt, {
426
- transform: U,
481
+ if (sn && sn === e) return;
482
+ (!e || typeof e != "object") && (e = {}), e = T(e), V = on.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, H = V === "application/xhtml+xml" ? xe : be, j = pt(e, "ALLOWED_TAGS", Ct, { transform: H }), M = pt(e, "ALLOWED_ATTR", wt, { transform: H }), Qt = pt(e, "ALLOWED_NAMESPACES", $t, { transform: xe }), Kt = pt(e, "ADD_URI_SAFE_ATTR", qt, {
483
+ transform: H,
484
+ base: qt
485
+ }), Wt = pt(e, "ADD_DATA_URI_TAGS", Gt, {
486
+ transform: H,
427
487
  base: Gt
428
- }), Ht = ut(e, "ADD_DATA_URI_TAGS", Ut, {
429
- transform: U,
430
- base: Ut
431
- }), Bt = ut(e, "FORBID_CONTENTS", Vt, { transform: U }), Ct = ut(e, "FORBID_TAGS", E({}), { transform: U }), wt = ut(e, "FORBID_ATTR", E({}), { transform: U }), V = S(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, Tt = e.ALLOW_ARIA_ATTR !== !1, Et = e.ALLOW_DATA_ATTR !== !1, Dt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ot = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, R = e.SAFE_FOR_XML !== !1, z = e.WHOLE_DOCUMENT || !1, Nt = e.RETURN_DOM || !1, Pt = e.RETURN_DOM_FRAGMENT || !1, Ft = e.RETURN_TRUSTED_TYPE || !1, Mt = e.FORCE_BODY || !1, It = e.SANITIZE_DOM !== !1, B = e.SANITIZE_NAMED_PROPS || !1, Rt = e.KEEP_CONTENT !== !1, zt = e.IN_PLACE || !1, bt = Me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ye, Jt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : H, $t = dt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => T({}, Qt)), tn = dt(e, "HTML_INTEGRATION_POINTS", () => T({}, en));
432
- let t = dt(e, "CUSTOM_ELEMENT_HANDLING", () => le(null));
433
- if (F = le(null), S(t, "tagNameCheck") && cn(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), S(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), S(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), y(F), L && (Et = !1), Pt && (Nt = !0), V && (N = T({}, ze), P = le(null), V.html === !0 && (T(N, Ne), T(P, Be)), V.svg === !0 && (T(N, Pe), T(P, Ve), T(P, Ue)), V.svgFilters === !0 && (T(N, Fe), T(P, Ve), T(P, Ue)), V.mathMl === !0 && (T(N, Le), T(P, He), T(P, Ue))), I.tagCheck = null, I.attributeCheck = null, S(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : _e(e.ADD_TAGS) && (N === xt && (N = E(N)), T(N, e.ADD_TAGS, U))), S(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : _e(e.ADD_ATTR) && (P === St && (P = E(P)), T(P, e.ADD_ATTR, U))), S(e, "ADD_FORBID_CONTENTS") && _e(e.ADD_FORBID_CONTENTS) && (Bt === Vt && (Bt = E(Bt)), T(Bt, e.ADD_FORBID_CONTENTS, U)), Rt && (N["#text"] = !0), z && T(N, [
488
+ }), Ht = pt(e, "FORBID_CONTENTS", Ut, { transform: H }), Tt = pt(e, "FORBID_TAGS", T({}), { transform: H }), Et = pt(e, "FORBID_ATTR", T({}), { transform: H }), z = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, Dt = e.ALLOW_ARIA_ATTR !== !1, Ot = e.ALLOW_DATA_ATTR !== !1, kt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, At = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, I = e.SAFE_FOR_XML !== !1, L = e.WHOLE_DOCUMENT || !1, Ft = e.RETURN_DOM || !1, It = e.RETURN_DOM_FRAGMENT || !1, Lt = e.RETURN_TRUSTED_TYPE || !1, Pt = e.FORCE_BODY || !1, Rt = e.SANITIZE_DOM !== !1, zt = e.SANITIZE_NAMED_PROPS || !1, R = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, St = Fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Qe, Xt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : B, tn = mt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => w({}, en)), rn = mt(e, "HTML_INTEGRATION_POINTS", () => w({}, nn));
489
+ let t = mt(e, "CUSTOM_ELEMENT_HANDLING", () => ue(null));
490
+ if (N = ue(null), x(t, "tagNameCheck") && ln(t.tagNameCheck) && (N.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (N.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), b(N), F && (Ot = !1), It && (Ft = !0), z && (j = w({}, He), M = ue(null), z.html === !0 && (w(j, Ie), w(M, Ue)), z.svg === !0 && (w(j, Le), w(M, We), w(M, Ke)), z.svgFilters === !0 && (w(j, Re), w(M, We), w(M, Ke)), z.mathMl === !0 && (w(j, Be), w(M, Ge), w(M, Ke))), P.tagCheck = null, P.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? P.tagCheck = e.ADD_TAGS : ye(e.ADD_TAGS) && (j === Ct && (j = T(j)), w(j, e.ADD_TAGS, H))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? P.attributeCheck = e.ADD_ATTR : ye(e.ADD_ATTR) && (M === wt && (M = T(M)), w(M, e.ADD_ATTR, H))), x(e, "ADD_FORBID_CONTENTS") && ye(e.ADD_FORBID_CONTENTS) && (Ht === Ut && (Ht = T(Ht)), w(Ht, e.ADD_FORBID_CONTENTS, H)), R && (j["#text"] = !0), L && w(j, [
434
491
  "html",
435
492
  "head",
436
493
  "body"
437
- ]), N.table && (T(N, ["tbody"]), delete Ct.tbody), e.TRUSTED_TYPES_POLICY) {
438
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
439
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
440
- let t = _;
441
- _ = e.TRUSTED_TYPES_POLICY;
494
+ ]), j.table && (w(j, ["tbody"]), delete Tt.tbody), e.TRUSTED_TYPES_POLICY) {
495
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw je("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
496
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw je("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
497
+ let t = v;
498
+ v = e.TRUSTED_TYPES_POLICY;
442
499
  try {
443
- b = x("");
500
+ ce = Ee("");
444
501
  } catch (e) {
445
- throw _ = t, e;
446
- }
447
- } else e.TRUSTED_TYPES_POLICY === null ? (_ = void 0, b = "") : (_ === void 0 && (_ = De()), _ && typeof b == "string" && (b = x("")));
448
- v && v(e), on = e;
449
- }, un = T({}, [
450
- ...Pe,
451
- ...Fe,
452
- ...Ie
453
- ]), dn = T({}, [...Le, ...Re]), fn = function(e, t, n) {
454
- return t.namespaceURI === H ? e === "svg" : t.namespaceURI === Kt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
455
- }, pn = function(e, t, n) {
456
- return t.namespaceURI === H ? e === "math" : t.namespaceURI === qt ? e === "math" && tn[n] : !!dn[e];
502
+ throw v = t, e;
503
+ }
504
+ } else e.TRUSTED_TYPES_POLICY === null ? (v = void 0, ce = "") : (v === void 0 && (v = Oe()), v && typeof ce == "string" && (ce = Ee("")));
505
+ y && y(e), sn = e;
506
+ }, dn = w({}, [
507
+ ...Le,
508
+ ...Re,
509
+ ...ze
510
+ ]), fn = w({}, [...Be, ...Ve]), pn = function(e, t, n) {
511
+ return t.namespaceURI === B ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || tn[n]) : !!dn[e];
457
512
  }, mn = function(e, t, n) {
458
- return t.namespaceURI === qt && !tn[n] || t.namespaceURI === Kt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
459
- }, W = function(e) {
513
+ return t.namespaceURI === B ? e === "math" : t.namespaceURI === Yt ? e === "math" && rn[n] : !!fn[e];
514
+ }, hn = function(e, t, n) {
515
+ return t.namespaceURI === Yt && !rn[n] || t.namespaceURI === Jt && !tn[n] ? !1 : !fn[e] && (an[e] || !dn[e]);
516
+ }, gn = function(e) {
460
517
  let t = g(e);
461
518
  (!t || !t.tagName) && (t = {
462
- namespaceURI: Jt,
519
+ namespaceURI: Xt,
463
520
  tagName: "template"
464
521
  });
465
- let n = ve(e.tagName), r = ve(t.tagName);
466
- return Xt[e.namespaceURI] ? e.namespaceURI === qt ? fn(n, t, r) : e.namespaceURI === Kt ? pn(n, t, r) : e.namespaceURI === H ? mn(n, t, r) : !!(rn === "application/xhtml+xml" && Xt[e.namespaceURI]) : !1;
467
- }, G = function(e) {
468
- he(t.removed, { element: e });
522
+ let n = be(e.tagName), r = be(t.tagName);
523
+ return Qt[e.namespaceURI] ? e.namespaceURI === Yt ? pn(n, t, r) : e.namespaceURI === Jt ? mn(n, t, r) : e.namespaceURI === B ? hn(n, t, r) : !!(V === "application/xhtml+xml" && Qt[e.namespaceURI]) : !1;
524
+ }, U = function(e) {
525
+ _e(t.removed, { element: e });
469
526
  try {
470
527
  g(e).removeChild(e);
471
528
  } catch {
472
- if (p(e), !g(e)) throw Oe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
529
+ if (p(e), !g(e)) throw je("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
473
530
  }
474
- }, hn = function(e, t, n) {
531
+ }, W = function(e, t, n) {
475
532
  try {
476
533
  m(e, t);
477
534
  } catch {
@@ -479,14 +536,14 @@ function ft() {
479
536
  e.removeAttribute(n);
480
537
  } catch {}
481
538
  }
482
- }, K = function(e) {
483
- _n(e);
539
+ }, _n = function(e) {
540
+ vn(e);
484
541
  let t = h(e);
485
542
  if (t) {
486
543
  let e = [];
487
- fe(t, (t) => {
488
- he(e, t);
489
- }), fe(e, (e) => {
544
+ me(t, (t) => {
545
+ _e(e, t);
546
+ }), me(e, (e) => {
490
547
  try {
491
548
  p(e);
492
549
  } catch {}
@@ -495,15 +552,15 @@ function ft() {
495
552
  let n = ne(e);
496
553
  if (n) for (let t = n.length - 1; t >= 0; --t) {
497
554
  let r = n[t], i = r && r.name;
498
- typeof i == "string" && hn(e, r, i);
555
+ typeof i == "string" && W(e, r, i);
499
556
  }
500
- }, q = function(e, n, r) {
557
+ }, G = function(e, n, r) {
501
558
  if (!r) try {
502
559
  r = n.getAttributeNode(e);
503
560
  } catch {
504
561
  r = null;
505
562
  }
506
- he(t.removed, {
563
+ _e(t.removed, {
507
564
  attribute: r || null,
508
565
  from: n
509
566
  });
@@ -514,92 +571,92 @@ function ft() {
514
571
  n.removeAttribute(e);
515
572
  } catch {}
516
573
  }
517
- if (e === "is") if (Nt || Pt) try {
518
- G(n);
574
+ if (e === "is") if (Ft || It) try {
575
+ U(n);
519
576
  } catch {}
520
577
  else try {
521
578
  n.setAttribute(e, "");
522
579
  } catch {}
523
- }, gn = function(e) {
580
+ }, K = function(e) {
524
581
  let t = ne(e);
525
582
  if (t) for (let n = t.length - 1; n >= 0; --n) {
526
583
  let r = t[n], i = r && r.name;
527
- typeof i != "string" || P[U(i)] || hn(e, r, i);
584
+ typeof i != "string" || M[H(i)] || W(e, r, i);
528
585
  }
529
- }, _n = function(e) {
586
+ }, vn = function(e) {
530
587
  let t = [e];
531
588
  for (; t.length > 0;) {
532
589
  let e = t.pop();
533
- se(e) === O.element && gn(e);
590
+ _(e) === D.element && K(e);
534
591
  let n = h(e);
535
592
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
536
593
  }
537
- }, vn = function(e, t) {
538
- return R ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
539
- }, yn = function(e) {
540
- if (!R) return;
594
+ }, yn = function(e, t) {
595
+ return I ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
596
+ }, bn = function(e) {
597
+ if (!I) return;
541
598
  let t = [e];
542
599
  for (; t.length > 0;) {
543
- let e = t.pop(), n = se(e);
544
- if (n === O.processingInstruction || n === O.comment && C(tt, e.data)) {
600
+ let e = t.pop(), n = _(e);
601
+ if (n === D.processingInstruction || n === D.comment && S(it, e.data)) {
545
602
  try {
546
603
  p(e);
547
604
  } catch {}
548
605
  continue;
549
606
  }
550
- if (n === O.element) {
551
- let t = e, n = U(ce(e));
607
+ if (n === D.element) {
608
+ let t = e, n = H(se(e));
552
609
  try {
553
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && vn("for", n) && t.removeAttribute("for");
610
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && yn("for", n) && t.removeAttribute("for");
554
611
  } catch {}
555
612
  }
556
613
  let r = h(e);
557
614
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
558
615
  }
559
- }, bn = function(e) {
616
+ }, xn = function(e) {
560
617
  let t = null, r = null;
561
- if (Mt) e = "<remove></remove>" + e;
618
+ if (Pt) e = "<remove></remove>" + e;
562
619
  else {
563
- let t = be(e, /^[\r\n\t ]+/);
620
+ let t = Se(e, /^[\r\n\t ]+/);
564
621
  r = t && t[0];
565
622
  }
566
- rn === "application/xhtml+xml" && Jt === H && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
567
- let i = _ ? x(e) : e;
568
- if (Jt === H) try {
569
- t = new l().parseFromString(i, rn);
623
+ V === "application/xhtml+xml" && Xt === B && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
624
+ let i = v ? Ee(e) : e;
625
+ if (Xt === B) try {
626
+ t = new l().parseFromString(i, V);
570
627
  } catch {}
571
628
  if (!t || !t.documentElement) {
572
- t = ke.createDocument(Jt, "template", null);
629
+ t = Ae.createDocument(Xt, "template", null);
573
630
  try {
574
- t.documentElement.innerHTML = Yt ? b : i;
631
+ t.documentElement.innerHTML = Zt ? ce : i;
575
632
  } catch {}
576
633
  }
577
634
  let a = t.body || t.documentElement;
578
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Jt === H ? pt.call(t, z ? "html" : "body")[0] : z ? t.documentElement : a;
579
- }, J = function(e) {
580
- let t = oe ? oe(e) : e.ownerDocument;
581
- return Ae.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
582
- }, xn = function(e) {
583
- return e = xe(e, ht, " "), e = xe(e, A, " "), e = xe(e, gt, " "), e;
635
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Xt === B ? Ne.call(t, L ? "html" : "body")[0] : L ? t.documentElement : a;
584
636
  }, Sn = function(e) {
637
+ let t = ae ? ae(e) : e.ownerDocument;
638
+ return C.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
639
+ }, Cn = function(e) {
640
+ return e = Ce(e, gt, " "), e = Ce(e, _t, " "), e = Ce(e, vt, " "), e;
641
+ }, q = function(e) {
585
642
  e.normalize();
586
- let t = oe ? oe(e) : e.ownerDocument, n = Ae.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
587
- for (; r;) r.data = xn(r.data), r = n.nextNode();
643
+ let t = ae ? ae(e) : e.ownerDocument, n = C.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
644
+ for (; r;) r.data = Cn(r.data), r = n.nextNode();
588
645
  let i = e.querySelectorAll?.call(e, "template");
589
- i && fe(i, (e) => {
590
- X(e.content) && Sn(e.content);
646
+ i && me(i, (e) => {
647
+ J(e.content) && q(e.content);
591
648
  });
592
- }, Y = function(e) {
649
+ }, wn = function(e) {
593
650
  let t = ie ? ie(e) : null;
594
- return typeof t != "string" || U(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ne(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== re(e) || e.childNodes !== h(e);
595
- }, X = function(e) {
651
+ return typeof t != "string" || H(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ne(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== re(e) || e.childNodes !== h(e);
652
+ }, J = function(e) {
596
653
  if (!re || typeof e != "object" || !e) return !1;
597
654
  try {
598
- return re(e) === O.documentFragment;
655
+ return re(e) === D.documentFragment;
599
656
  } catch {
600
657
  return !1;
601
658
  }
602
- }, Z = function(e) {
659
+ }, Y = function(e) {
603
660
  if (!re || typeof e != "object" || !e) return !1;
604
661
  try {
605
662
  return typeof re(e) == "number";
@@ -607,18 +664,18 @@ function ft() {
607
664
  return !1;
608
665
  }
609
666
  };
610
- function Q(e, n, r) {
611
- e.length !== 0 && fe(e, (e) => {
612
- e.call(t, n, r, on);
667
+ function X(e, n, r) {
668
+ e.length !== 0 && me(e, (e) => {
669
+ e.call(t, n, r, sn);
613
670
  });
614
671
  }
615
- let Cn = function(e, t) {
616
- return !!(R && e.hasChildNodes() && !Z(e.firstElementChild) && C(et, e.textContent) && C(et, e.innerHTML) || R && e.namespaceURI === H && at[t] && (Z(e.firstElementChild) || typeof e.textContent == "string" && C(ot[t], e.textContent)) || e.nodeType === O.processingInstruction || R && e.nodeType === O.comment && C(tt, e.data));
617
- }, wn = function(e, t) {
618
- return e instanceof RegExp ? C(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
619
- }, Tn = function(e, t, n) {
620
- if (!Ct[t] && jn(t) && wn(F.tagNameCheck, t)) return !1;
621
- if (Rt && !Bt[t]) {
672
+ let Tn = function(e, t) {
673
+ return !!(I && e.hasChildNodes() && !Y(e.firstElementChild) && S(rt, e.textContent) && S(rt, e.innerHTML) || I && e.namespaceURI === B && ct[t] && (Y(e.firstElementChild) || typeof e.textContent == "string" && S(lt[t], e.textContent)) || e.nodeType === D.processingInstruction || I && e.nodeType === D.comment && S(it, e.data));
674
+ }, Z = function(e, t) {
675
+ return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
676
+ }, En = function(e, t, n) {
677
+ if (!Tt[t] && jn(t) && Z(N.tagNameCheck, t)) return !1;
678
+ if (R && !Ht[t]) {
622
679
  let t = g(e), r = h(e);
623
680
  if (r && t) {
624
681
  let i = r.length;
@@ -628,35 +685,35 @@ function ft() {
628
685
  }
629
686
  }
630
687
  }
631
- return G(e), !0;
632
- }, En = function(e, t, n, r) {
633
- return e.length === 0 ? t : t === n || t === r ? E(t) : t;
634
- }, Dn = function(e, t) {
635
- return e === t || g(e) !== null ? !1 : (zt && _n(e), !0);
688
+ return U(e), !0;
689
+ }, Dn = function(e, t, n, r) {
690
+ return e.length === 0 ? t : t === n || t === r ? T(t) : t;
691
+ }, Q = function(e, t) {
692
+ return e === t || g(e) !== null ? !1 : (Vt && vn(e), !0);
636
693
  }, On = function(e, n) {
637
- if (Q(k.beforeSanitizeElements, e, null), Dn(e, n)) return !0;
638
- if (Y(e)) return G(e), !0;
639
- let r = U(ce(e));
640
- if (N = En(k.uponSanitizeElement, N, xt, At), Q(k.uponSanitizeElement, e, {
694
+ if (X(O.beforeSanitizeElements, e, null), Q(e, n)) return !0;
695
+ if (wn(e)) return U(e), !0;
696
+ let r = H(se(e));
697
+ if (j = Dn(O.uponSanitizeElement, j, Ct, Mt), X(O.uponSanitizeElement, e, {
641
698
  tagName: r,
642
- allowedTags: N
643
- }), Dn(e, n)) return !0;
644
- if (Cn(e, r)) return G(e), !0;
645
- if (Ct[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !N[r]) {
646
- let t = Tn(e, r, n);
647
- return t === !1 && Q(k.afterSanitizeElements, e, null), t;
648
- }
649
- if (se(e) === O.element && !W(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(nt, e.innerHTML)) return G(e), !0;
650
- if (L && e.nodeType === O.text) {
651
- let n = xn(e.textContent);
652
- e.textContent !== n && (he(t.removed, { element: e.cloneNode() }), e.textContent = n);
653
- }
654
- return Q(k.afterSanitizeElements, e, null), !1;
699
+ allowedTags: j
700
+ }), Q(e, n)) return !0;
701
+ if (Tn(e, r)) return U(e), !0;
702
+ if (Tt[r] || !(P.tagCheck instanceof Function && P.tagCheck(r)) && !j[r]) {
703
+ let t = En(e, r, n);
704
+ return t === !1 && (X(O.afterSanitizeElements, e, null), Q(e, n)) ? !0 : t;
705
+ }
706
+ if (_(e) === D.element && !gn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(at, e.innerHTML)) return U(e), !0;
707
+ if (F && e.nodeType === D.text) {
708
+ let n = Cn(e.textContent);
709
+ e.textContent !== n && (_e(t.removed, { element: e.cloneNode() }), e.textContent = n);
710
+ }
711
+ return X(O.afterSanitizeElements, e, null), Q(e, n);
655
712
  }, kn = function(e, t, r) {
656
- if (wt[t] || vn(t, e) || It && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
657
- let i = P[t] || I.attributeCheck instanceof Function && I.attributeCheck(t, e);
658
- return Et && C(j, t) || Tt && C(_t, t) ? !0 : i ? Wt[t] || C(bt, xe(r, vt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Se(r, "data:") === 0 && Ht[e] || Dt && !C(M, xe(r, vt, "")) ? !0 : !r : jn(e) && wn(F.tagNameCheck, e) && wn(F.attributeNameCheck, t, e) || t === "is" && F.allowCustomizedBuiltInElements && wn(F.tagNameCheck, r);
659
- }, An = T({}, [
713
+ if (Et[t] || yn(t, e) || Rt && (t === "id" || t === "name") && (r in n || r in cn)) return !1;
714
+ let i = M[t] || P.attributeCheck instanceof Function && P.attributeCheck(t, e);
715
+ return Ot && S(yt, t) || Dt && S(bt, t) ? !0 : i ? Kt[t] || S(St, Ce(r, xt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && we(r, "data:") === 0 && Wt[e] || kt && !S(k, Ce(r, xt, "")) ? !0 : !r : jn(e) && Z(N.tagNameCheck, e) && Z(N.attributeNameCheck, t, e) || t === "is" && N.allowCustomizedBuiltInElements && Z(N.tagNameCheck, r);
716
+ }, An = w({}, [
660
717
  "annotation-xml",
661
718
  "color-profile",
662
719
  "font-face",
@@ -666,65 +723,65 @@ function ft() {
666
723
  "font-face-uri",
667
724
  "missing-glyph"
668
725
  ]), jn = function(e) {
669
- return !An[ve(e)] && C(yt, e);
726
+ return !An[be(e)] && S(A, e);
670
727
  }, Mn = function(e, t, n, r) {
671
- if (_ && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
672
- case "TrustedHTML": return x(r);
673
- case "TrustedScriptURL": return Ee(r);
728
+ if (v && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
729
+ case "TrustedHTML": return Ee(r);
730
+ case "TrustedScriptURL": return De(r);
674
731
  }
675
732
  return r;
676
733
  }, Nn = function(e, t, n, r) {
677
734
  try {
678
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Y(e) ? (G(e), !1) : !0;
735
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), wn(e) ? (U(e), !1) : !0;
679
736
  } catch {
680
- return q(t, e), !1;
681
- }
682
- }, Pn = function(e) {
683
- Q(k.beforeSanitizeAttributes, e, null);
684
- let n = e.attributes;
685
- if (!n || Y(e)) return;
686
- P = En(k.uponSanitizeAttribute, P, St, jt);
687
- let r = {
737
+ return G(t, e), !1;
738
+ }
739
+ }, Pn = function(e, n) {
740
+ if (X(O.beforeSanitizeAttributes, e, null), Q(e, n)) return;
741
+ let r = e.attributes;
742
+ if (!r || wn(e)) return;
743
+ M = Dn(O.uponSanitizeAttribute, M, wt, Nt);
744
+ let i = {
688
745
  attrName: "",
689
746
  attrValue: "",
690
747
  keepAttr: !0,
691
- allowedAttributes: P,
748
+ allowedAttributes: M,
692
749
  forceKeepAttr: void 0
693
- }, i = n.length, a = U(e.nodeName);
694
- for (; i--;) {
695
- let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = U(s), d = l, f = s === "value" ? d : Ce(d), p = !1;
696
- if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(k.uponSanitizeAttribute, e, r), f = r.attrValue, B && (u === "id" || u === "name") && Se(f, Lt) !== 0 && (q(s, e, o), f = Lt + f, p = !0), R && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
697
- q(s, e, o);
750
+ }, a = r.length, o = H(e.nodeName);
751
+ for (; a--;) {
752
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = H(s), d = l, f = s === "value" ? d : Te(d), p = !1;
753
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, X(O.uponSanitizeAttribute, e, i), f = i.attrValue, zt && (u === "id" || u === "name") && we(f, Bt) !== 0 && (G(s, e, n), f = Bt + f, p = !0), I && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
754
+ G(s, e, n);
698
755
  continue;
699
756
  }
700
- if (u === "attributename" && be(f, "href")) {
701
- q(s, e, o);
757
+ if (u === "attributename" && Se(f, "href")) {
758
+ G(s, e, n);
702
759
  continue;
703
760
  }
704
- if (!r.forceKeepAttr) {
705
- if (!r.keepAttr) {
706
- q(s, e, o);
761
+ if (!i.forceKeepAttr) {
762
+ if (!i.keepAttr) {
763
+ G(s, e, n);
707
764
  continue;
708
765
  }
709
- if (!Ot && C(rt, f)) {
710
- q(s, e, o);
766
+ if (!At && S(ot, f)) {
767
+ G(s, e, n);
711
768
  continue;
712
769
  }
713
- if (L && (f = xn(f)), !kn(a, u, f)) {
714
- q(s, e, o);
770
+ if (F && (f = Cn(f)), !kn(o, u, f)) {
771
+ G(s, e, n);
715
772
  continue;
716
773
  }
717
- f = Mn(a, u, c, f), f !== d && Nn(e, s, c, f) && p && me(t.removed);
774
+ f = Mn(o, u, c, f), f !== d && Nn(e, s, c, f) && p && ge(t.removed);
718
775
  }
719
776
  }
720
- Q(k.afterSanitizeAttributes, e, null);
777
+ X(O.afterSanitizeAttributes, e, null), Q(e, n);
721
778
  }, Fn = function(e) {
722
- let t = null, n = J(e);
723
- for (Q(k.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(k.uponSanitizeShadowNode, t, null), On(t, e), Pn(t), X(t.content) && Fn(t.content), se(t) === O.element) {
779
+ let t = null, n = Sn(e);
780
+ for (X(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (X(O.uponSanitizeShadowNode, t, null), On(t, e), Pn(t, e), J(t.content) && Fn(t.content), _(t) === D.element) {
724
781
  let e = te(t);
725
- X(e) && (In(e), Fn(e));
782
+ J(e) && (In(e), Fn(e));
726
783
  }
727
- Q(k.afterSanitizeShadowDOM, e, null);
784
+ X(O.afterSanitizeShadowDOM, e, null);
728
785
  }, In = function(e) {
729
786
  let t = [{
730
787
  node: e,
@@ -736,16 +793,16 @@ function ft() {
736
793
  Fn(e.shadow);
737
794
  continue;
738
795
  }
739
- let n = e.node, r = se(n) === O.element, i = h(n);
796
+ let n = e.node, r = _(n) === D.element, i = h(n);
740
797
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
741
798
  node: i[e],
742
799
  shadow: null
743
800
  });
744
801
  if (r) {
745
802
  let e = ie ? ie(n) : null;
746
- if (typeof e == "string" && U(e) === "template") {
803
+ if (typeof e == "string" && H(e) === "template") {
747
804
  let e = n.content;
748
- X(e) && t.push({
805
+ J(e) && t.push({
749
806
  node: e,
750
807
  shadow: null
751
808
  });
@@ -753,7 +810,7 @@ function ft() {
753
810
  }
754
811
  if (r) {
755
812
  let e = te(n);
756
- X(e) && t.push({
813
+ J(e) && t.push({
757
814
  node: null,
758
815
  shadow: e
759
816
  }, {
@@ -765,77 +822,81 @@ function ft() {
765
822
  };
766
823
  return t.sanitize = function(e) {
767
824
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
768
- if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !Z(e) && (e = je(e), typeof e != "string")) throw Oe("dirty is not a string, aborting");
825
+ if (Zt = !e, Zt && (e = "<!-->"), typeof e != "string" && !Y(e) && (e = Pe(e), typeof e != "string")) throw je("dirty is not a string, aborting");
769
826
  if (!t.isSupported) return e;
770
- kt ? (N = At, P = jt) : ln(n), (k.uponSanitizeElement.length > 0 || k.uponSanitizeAttribute.length > 0) && (N = E(N)), k.uponSanitizeAttribute.length > 0 && (P = E(P)), t.removed = [];
771
- let c = zt && typeof e != "string" && Z(e);
827
+ jt ? (j = Mt, M = Nt) : un(n), (O.uponSanitizeElement.length > 0 || O.uponSanitizeAttribute.length > 0) && (j = T(j)), O.uponSanitizeAttribute.length > 0 && (M = T(M)), t.removed = [];
828
+ let c = Vt && typeof e != "string" && Y(e);
772
829
  if (c) {
773
- yn(e);
774
- let t = ce(e);
830
+ bn(e);
831
+ let t = se(e);
775
832
  if (typeof t == "string") {
776
- let n = U(t);
777
- if (!N[n] || Ct[n]) throw K(e), Oe("root node is forbidden and cannot be sanitized in-place");
833
+ let n = H(t);
834
+ if (!j[n] || Tt[n]) throw _n(e), je("root node is forbidden and cannot be sanitized in-place");
778
835
  }
779
- if (Y(e)) throw K(e), Oe("root node is clobbered and cannot be sanitized in-place");
836
+ if (wn(e)) throw _n(e), je("root node is clobbered and cannot be sanitized in-place");
780
837
  try {
781
838
  In(e);
782
839
  } catch (t) {
783
- throw K(e), t;
840
+ throw _n(e), t;
784
841
  }
785
- } else if (Z(e)) i = bn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), In(i);
842
+ } else if (Y(e)) i = xn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === D.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), In(i);
786
843
  else {
787
- if (!Nt && !L && !z && e.indexOf("<") === -1) return _ && Ft ? x(e) : e;
788
- if (i = bn(e), !i) return Nt ? null : Ft ? b : "";
844
+ if (!Ft && !F && !L && e.indexOf("<") === -1) return v && Lt ? Ee(e) : e;
845
+ if (i = xn(e), !i) return Ft ? null : Lt ? ce : "";
789
846
  }
790
- i && Mt && G(i.firstChild);
847
+ i && Pt && U(i.firstChild);
791
848
  let l = c ? e : i;
792
849
  try {
793
- let e = J(l);
794
- for (; o = e.nextNode();) On(o, l), Pn(o), X(o.content) && Fn(o.content);
850
+ let e = Sn(l);
851
+ for (; o = e.nextNode();) On(o, l), Pn(o, l), J(o.content) && Fn(o.content);
795
852
  } catch (n) {
796
- throw c && (K(e), fe(t.removed, (e) => {
797
- e.element && _n(e.element);
853
+ throw c && (_n(e), me(t.removed, (e) => {
854
+ e.element && vn(e.element);
798
855
  })), n;
799
856
  }
800
- if (c) return fe(t.removed, (e) => {
801
- e.element && _n(e.element);
802
- }), L && Sn(e), e;
803
- if (Nt) {
804
- if (L && Sn(i), Pt) for (s = it.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
857
+ if (c) {
858
+ let n = !1;
859
+ if (me(t.removed, (t) => {
860
+ t.element && (t.element === e && (n = !0), vn(t.element));
861
+ }), n) throw je("a node selected for removal could not be safely returned; refusing to sanitize in place");
862
+ return F && q(e), e;
863
+ }
864
+ if (Ft) {
865
+ if (F && q(i), It) for (s = Me.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
805
866
  else s = i;
806
- return (P.shadowroot || P.shadowrootmode) && (s = mt.call(r, s, !0)), s;
867
+ return (M.shadowroot || M.shadowrootmode) && (s = st.call(r, s, !0)), s;
807
868
  }
808
- let u = z ? i.outerHTML : i.innerHTML;
809
- return z && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Qe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), L && (u = xn(u)), _ && Ft ? x(u) : u;
869
+ let u = L ? i.outerHTML : i.innerHTML;
870
+ return L && j["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(tt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), F && (u = Cn(u)), v && Lt ? Ee(u) : u;
810
871
  }, t.setConfig = function() {
811
872
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
812
- ln(e), kt = !0, At = N, jt = P;
873
+ un(e), jt = !0, Mt = j, Nt = M;
813
874
  }, t.clearConfig = function() {
814
- on = null, kt = !1, At = null, jt = null, _ = ue, b = "";
875
+ sn = null, jt = !1, Mt = null, Nt = null, v = le, ce = "";
815
876
  }, t.isValidAttribute = function(e, t, n) {
816
- on || ln({});
817
- let r = U(e), i = U(t);
877
+ sn || un({});
878
+ let r = H(e), i = H(t);
818
879
  return kn(r, i, n);
819
880
  }, t.addHook = function(e, t) {
820
- typeof t == "function" && S(k, e) && he(k[e], t);
881
+ typeof t == "function" && x(O, e) && _e(O[e], t);
821
882
  }, t.removeHook = function(e, t) {
822
- if (S(k, e)) {
883
+ if (x(O, e)) {
823
884
  if (t !== void 0) {
824
- let n = pe(k[e], t);
825
- return n === -1 ? void 0 : ge(k[e], n, 1)[0];
885
+ let n = he(O[e], t);
886
+ return n === -1 ? void 0 : ve(O[e], n, 1)[0];
826
887
  }
827
- return me(k[e]);
888
+ return ge(O[e]);
828
889
  }
829
890
  }, t.removeHooks = function(e) {
830
- S(k, e) && (k[e] = []);
891
+ x(O, e) && (O[e] = []);
831
892
  }, t.removeAllHooks = function() {
832
- k = lt();
893
+ O = ft();
833
894
  }, t;
834
895
  }
835
- var pt = ft();
896
+ var O = ht();
836
897
  //#endregion
837
898
  //#region node_modules/marked/lib/marked.esm.js
838
- function mt() {
899
+ function gt() {
839
900
  return {
840
901
  async: !1,
841
902
  breaks: !1,
@@ -849,35 +910,35 @@ function mt() {
849
910
  walkTokens: null
850
911
  };
851
912
  }
852
- var k = mt();
853
- function ht(e) {
854
- k = e;
913
+ var _t = gt();
914
+ function vt(e) {
915
+ _t = e;
855
916
  }
856
- var A = { exec: () => null };
857
- function gt(e) {
917
+ var yt = { exec: () => null };
918
+ function bt(e) {
858
919
  let t = [];
859
920
  return (n) => {
860
921
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
861
922
  return i || (i = e(r), t[r] = i), i;
862
923
  };
863
924
  }
864
- function j(e, t = "") {
925
+ function k(e, t = "") {
865
926
  let n = typeof e == "string" ? e : e.source, r = {
866
927
  replace: (e, t) => {
867
928
  let i = typeof t == "string" ? t : t.source;
868
- return i = i.replace(M.caret, "$1"), n = n.replace(e, i), r;
929
+ return i = i.replace(A.caret, "$1"), n = n.replace(e, i), r;
869
930
  },
870
931
  getRegex: () => new RegExp(n, t)
871
932
  };
872
933
  return r;
873
934
  }
874
- var _t = ((e = "") => {
935
+ var xt = ((e = "") => {
875
936
  try {
876
937
  return !!RegExp("(?<=1)(?<!1)" + e);
877
938
  } catch {
878
939
  return !1;
879
940
  }
880
- })(), M = {
941
+ })(), A = {
881
942
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
882
943
  outputLinkReplace: /\\([\[\]])/g,
883
944
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -928,118 +989,118 @@ var _t = ((e = "") => {
928
989
  notSpaceStart: /^\S*/,
929
990
  endingNewline: /\n$/,
930
991
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
931
- nextBulletRegex: gt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
932
- hrRegex: gt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
933
- fencesBeginRegex: gt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
934
- headingBeginRegex: gt((e) => RegExp(`^ {0,${e}}#`)),
935
- htmlBeginRegex: gt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
936
- blockquoteBeginRegex: gt((e) => RegExp(`^ {0,${e}}>`))
937
- }, vt = /^(?:[ \t]*(?:\n|$))+/, yt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, bt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, N = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, xt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, P = / {0,3}(?:[*+-]|\d{1,9}[.)])/, St = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, F = j(St).replace(/bull/g, P).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ct = j(St).replace(/bull/g, P).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), wt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, I = /^[^\n]+/, Tt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Et = j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Tt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Dt = j(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, P).getRegex(), Ot = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", L = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, R = j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", L).replace("tag", Ot).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), z = j(wt).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ot).getRegex(), kt = {
938
- blockquote: j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", z).getRegex(),
939
- code: yt,
940
- def: Et,
941
- fences: bt,
942
- heading: xt,
943
- hr: N,
944
- html: R,
945
- lheading: F,
946
- list: Dt,
947
- newline: vt,
948
- paragraph: z,
949
- table: A,
950
- text: I
951
- }, At = j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ot).getRegex(), jt = {
952
- ...kt,
953
- lheading: Ct,
954
- table: At,
955
- paragraph: j(wt).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", At).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ot).getRegex()
956
- }, Mt = {
957
- ...kt,
958
- html: j("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", L).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
992
+ nextBulletRegex: bt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
993
+ hrRegex: bt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
994
+ fencesBeginRegex: bt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
995
+ headingBeginRegex: bt((e) => RegExp(`^ {0,${e}}#`)),
996
+ htmlBeginRegex: bt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
997
+ blockquoteBeginRegex: bt((e) => RegExp(`^ {0,${e}}>`))
998
+ }, St = /^(?:[ \t]*(?:\n|$))+/, j = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ct = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, M = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, wt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Tt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Et = k(Tt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), P = k(Tt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Dt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ot = /^[^\n]+/, kt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, At = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", kt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), F = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), I = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", L = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, jt = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", L).replace("tag", I).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Mt = k(Dt).replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), Nt = {
999
+ blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Mt).getRegex(),
1000
+ code: j,
1001
+ def: At,
1002
+ fences: Ct,
1003
+ heading: wt,
1004
+ hr: M,
1005
+ html: jt,
1006
+ lheading: Et,
1007
+ list: F,
1008
+ newline: St,
1009
+ paragraph: Mt,
1010
+ table: yt,
1011
+ text: Ot
1012
+ }, Pt = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), Ft = {
1013
+ ...Nt,
1014
+ lheading: P,
1015
+ table: Pt,
1016
+ paragraph: k(Dt).replace("hr", M).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex()
1017
+ }, It = {
1018
+ ...Nt,
1019
+ html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", L).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
959
1020
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
960
1021
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
961
- fences: A,
1022
+ fences: yt,
962
1023
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
963
- paragraph: j(wt).replace("hr", N).replace("heading", " *#{1,6} *[^\n]").replace("lheading", F).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
964
- }, Nt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ft = /^( {2,}|\\)\n(?!\s*$)/, It = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, B = /[\p{P}\p{S}]/u, Lt = /[\s\p{P}\p{S}]/u, Rt = /[^\s\p{P}\p{S}]/u, zt = j(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Lt).getRegex(), V = /(?!~)[\p{P}\p{S}]/u, Bt = /(?!~)[\s\p{P}\p{S}]/u, Vt = /(?:[^\s\p{P}\p{S}]|~)/u, Ht = j(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _t ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ut = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Wt = j(Ut, "u").replace(/punct/g, B).getRegex(), Gt = j(Ut, "u").replace(/punct/g, V).getRegex(), Kt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", qt = j(Kt, "gu").replace(/notPunctSpace/g, Rt).replace(/punctSpace/g, Lt).replace(/punct/g, B).getRegex(), H = j(Kt, "gu").replace(/notPunctSpace/g, Vt).replace(/punctSpace/g, Bt).replace(/punct/g, V).getRegex(), Jt = j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Rt).replace(/punctSpace/g, Lt).replace(/punct/g, B).getRegex(), Yt = j(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, B).getRegex(), Xt = j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Rt).replace(/punctSpace/g, Lt).replace(/punct/g, B).getRegex(), Zt = j(/\\(punct)/, "gu").replace(/punct/g, B).getRegex(), Qt = j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), $t = j(L).replace("(?:-->|$)", "-->").getRegex(), en = j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", $t).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), tn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, nn = j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", tn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), rn = j(/^!?\[(label)\]\[(ref)\]/).replace("label", tn).replace("ref", Tt).getRegex(), an = j(/^!?\[(ref)\](?:\[\])?/).replace("ref", Tt).getRegex(), U = j("reflink|nolink(?!\\()", "g").replace("reflink", rn).replace("nolink", an).getRegex(), on = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, sn = {
965
- _backpedal: A,
966
- anyPunctuation: Zt,
967
- autolink: Qt,
968
- blockSkip: Ht,
969
- br: Ft,
970
- code: Pt,
971
- del: A,
972
- delLDelim: A,
973
- delRDelim: A,
974
- emStrongLDelim: Wt,
975
- emStrongRDelimAst: qt,
976
- emStrongRDelimUnd: Jt,
977
- escape: Nt,
978
- link: nn,
979
- nolink: an,
980
- punctuation: zt,
981
- reflink: rn,
982
- reflinkSearch: U,
983
- tag: en,
984
- text: It,
985
- url: A
986
- }, cn = {
987
- ...sn,
988
- link: j(/^!?\[(label)\]\((.*?)\)/).replace("label", tn).getRegex(),
989
- reflink: j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", tn).getRegex()
990
- }, ln = {
991
- ...sn,
992
- emStrongRDelimAst: H,
993
- emStrongLDelim: Gt,
994
- delLDelim: Yt,
995
- delRDelim: Xt,
996
- url: j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", on).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
997
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
998
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
999
- text: j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", on).getRegex()
1000
- }, un = {
1001
- ...ln,
1002
- br: j(Ft).replace("{2,}", "*").getRegex(),
1003
- text: j(ln.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1024
+ paragraph: k(Dt).replace("hr", M).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Et).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1025
+ }, Lt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Rt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, zt = /^( {2,}|\\)\n(?!\s*$)/, Bt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, R = /[\p{P}\p{S}]/u, Vt = /[\s\p{P}\p{S}]/u, z = /[^\s\p{P}\p{S}]/u, Ht = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vt).getRegex(), Ut = /(?!~)[\p{P}\p{S}]/u, Wt = /(?!~)[\s\p{P}\p{S}]/u, Gt = /(?:[^\s\p{P}\p{S}]|~)/u, Kt = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xt ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), qt = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Jt = k(qt, "u").replace(/punct/g, R).getRegex(), Yt = k(qt, "u").replace(/punct/g, Ut).getRegex(), B = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xt = k(B, "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), Zt = k(B, "gu").replace(/notPunctSpace/g, Gt).replace(/punctSpace/g, Wt).replace(/punct/g, Ut).getRegex(), Qt = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), $t = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, R).getRegex(), en = k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, z).replace(/punctSpace/g, Vt).replace(/punct/g, R).getRegex(), tn = k(/\\(punct)/, "gu").replace(/punct/g, R).getRegex(), nn = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), rn = k(L).replace("(?:-->|$)", "-->").getRegex(), an = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", rn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, on = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", V).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), H = k(/^!?\[(label)\]\[(ref)\]/).replace("label", V).replace("ref", kt).getRegex(), sn = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", kt).getRegex(), cn = k("reflink|nolink(?!\\()", "g").replace("reflink", H).replace("nolink", sn).getRegex(), ln = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, un = {
1026
+ _backpedal: yt,
1027
+ anyPunctuation: tn,
1028
+ autolink: nn,
1029
+ blockSkip: Kt,
1030
+ br: zt,
1031
+ code: Rt,
1032
+ del: yt,
1033
+ delLDelim: yt,
1034
+ delRDelim: yt,
1035
+ emStrongLDelim: Jt,
1036
+ emStrongRDelimAst: Xt,
1037
+ emStrongRDelimUnd: Qt,
1038
+ escape: Lt,
1039
+ link: on,
1040
+ nolink: sn,
1041
+ punctuation: Ht,
1042
+ reflink: H,
1043
+ reflinkSearch: cn,
1044
+ tag: an,
1045
+ text: Bt,
1046
+ url: yt
1004
1047
  }, dn = {
1005
- normal: kt,
1006
- gfm: jt,
1007
- pedantic: Mt
1048
+ ...un,
1049
+ link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", V).getRegex(),
1050
+ reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", V).getRegex()
1008
1051
  }, fn = {
1009
- normal: sn,
1010
- gfm: ln,
1011
- breaks: un,
1012
- pedantic: cn
1052
+ ...un,
1053
+ emStrongRDelimAst: Zt,
1054
+ emStrongLDelim: Yt,
1055
+ delLDelim: $t,
1056
+ delRDelim: en,
1057
+ url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ln).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1058
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
1059
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
1060
+ text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ln).getRegex()
1013
1061
  }, pn = {
1062
+ ...fn,
1063
+ br: k(zt).replace("{2,}", "*").getRegex(),
1064
+ text: k(fn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1065
+ }, mn = {
1066
+ normal: Nt,
1067
+ gfm: Ft,
1068
+ pedantic: It
1069
+ }, hn = {
1070
+ normal: un,
1071
+ gfm: fn,
1072
+ breaks: pn,
1073
+ pedantic: dn
1074
+ }, gn = {
1014
1075
  "&": "&amp;",
1015
1076
  "<": "&lt;",
1016
1077
  ">": "&gt;",
1017
1078
  "\"": "&quot;",
1018
1079
  "'": "&#39;"
1019
- }, mn = (e) => pn[e];
1080
+ }, U = (e) => gn[e];
1020
1081
  function W(e, t) {
1021
1082
  if (t) {
1022
- if (M.escapeTest.test(e)) return e.replace(M.escapeReplace, mn);
1023
- } else if (M.escapeTestNoEncode.test(e)) return e.replace(M.escapeReplaceNoEncode, mn);
1083
+ if (A.escapeTest.test(e)) return e.replace(A.escapeReplace, U);
1084
+ } else if (A.escapeTestNoEncode.test(e)) return e.replace(A.escapeReplaceNoEncode, U);
1024
1085
  return e;
1025
1086
  }
1026
- function G(e) {
1087
+ function _n(e) {
1027
1088
  try {
1028
- e = encodeURI(e).replace(M.percentDecode, "%");
1089
+ e = encodeURI(e).replace(A.percentDecode, "%");
1029
1090
  } catch {
1030
1091
  return null;
1031
1092
  }
1032
1093
  return e;
1033
1094
  }
1034
- function hn(e, t) {
1035
- let n = e.replace(M.findPipe, (e, t, n) => {
1095
+ function G(e, t) {
1096
+ let n = e.replace(A.findPipe, (e, t, n) => {
1036
1097
  let r = !1, i = t;
1037
1098
  for (; --i >= 0 && n[i] === "\\";) r = !r;
1038
1099
  return r ? "|" : " |";
1039
- }).split(M.splitPipe), r = 0;
1100
+ }).split(A.splitPipe), r = 0;
1040
1101
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
1041
1102
  else for (; n.length < t;) n.push("");
1042
- for (; r < n.length; r++) n[r] = n[r].trim().replace(M.slashPipe, "|");
1103
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(A.slashPipe, "|");
1043
1104
  return n;
1044
1105
  }
1045
1106
  function K(e, t, n) {
@@ -1054,12 +1115,12 @@ function K(e, t, n) {
1054
1115
  }
1055
1116
  return e.slice(0, r - i);
1056
1117
  }
1057
- function q(e) {
1118
+ function vn(e) {
1058
1119
  let t = e.split("\n"), n = t.length - 1;
1059
- for (; n >= 0 && M.blankLine.test(t[n]);) n--;
1120
+ for (; n >= 0 && A.blankLine.test(t[n]);) n--;
1060
1121
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
1061
1122
  }
1062
- function gn(e, t) {
1123
+ function yn(e, t) {
1063
1124
  if (e.indexOf(t[1]) === -1) return -1;
1064
1125
  let n = 0;
1065
1126
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -1067,7 +1128,7 @@ function gn(e, t) {
1067
1128
  else if (e[r] === t[1] && (n--, n < 0)) return r;
1068
1129
  return n > 0 ? -2 : -1;
1069
1130
  }
1070
- function _n(e, t = 0) {
1131
+ function bn(e, t = 0) {
1071
1132
  let n = t, r = "";
1072
1133
  for (let t of e) if (t === " ") {
1073
1134
  let e = 4 - n % 4;
@@ -1075,7 +1136,7 @@ function _n(e, t = 0) {
1075
1136
  } else r += t, n++;
1076
1137
  return r;
1077
1138
  }
1078
- function vn(e, t, n, r, i) {
1139
+ function xn(e, t, n, r, i) {
1079
1140
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
1080
1141
  r.state.inLink = !0;
1081
1142
  let c = {
@@ -1088,7 +1149,7 @@ function vn(e, t, n, r, i) {
1088
1149
  };
1089
1150
  return r.state.inLink = !1, c;
1090
1151
  }
1091
- function yn(e, t, n) {
1152
+ function Sn(e, t, n) {
1092
1153
  let r = e.match(n.other.indentCodeCompensation);
1093
1154
  if (r === null) return t;
1094
1155
  let i = r[1];
@@ -1099,12 +1160,12 @@ function yn(e, t, n) {
1099
1160
  return r.length >= i.length ? e.slice(i.length) : e;
1100
1161
  }).join("\n");
1101
1162
  }
1102
- var bn = class {
1163
+ var Cn = class {
1103
1164
  options;
1104
1165
  rules;
1105
1166
  lexer;
1106
1167
  constructor(e) {
1107
- this.options = e || k;
1168
+ this.options = e || _t;
1108
1169
  }
1109
1170
  space(e) {
1110
1171
  let t = this.rules.block.newline.exec(e);
@@ -1116,7 +1177,7 @@ var bn = class {
1116
1177
  code(e) {
1117
1178
  let t = this.rules.block.code.exec(e);
1118
1179
  if (t) {
1119
- let e = this.options.pedantic ? t[0] : q(t[0]);
1180
+ let e = this.options.pedantic ? t[0] : vn(t[0]);
1120
1181
  return {
1121
1182
  type: "code",
1122
1183
  raw: e,
@@ -1128,7 +1189,7 @@ var bn = class {
1128
1189
  fences(e) {
1129
1190
  let t = this.rules.block.fences.exec(e);
1130
1191
  if (t) {
1131
- let e = t[0], n = yn(e, t[3] || "", this.rules);
1192
+ let e = t[0], n = Sn(e, t[3] || "", this.rules);
1132
1193
  return {
1133
1194
  type: "code",
1134
1195
  raw: e,
@@ -1214,7 +1275,7 @@ ${c}` : c;
1214
1275
  let n = !1, r = "", s = "";
1215
1276
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
1216
1277
  r = t[0], e = e.substring(r.length);
1217
- let c = _n(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1278
+ let c = bn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1218
1279
  if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
1219
1280
  let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
1220
1281
  for (; e;) {
@@ -1280,7 +1341,7 @@ ${c}` : c;
1280
1341
  html(e) {
1281
1342
  let t = this.rules.block.html.exec(e);
1282
1343
  if (t) {
1283
- let e = q(t[0]);
1344
+ let e = vn(t[0]);
1284
1345
  return {
1285
1346
  type: "html",
1286
1347
  block: !0,
@@ -1306,7 +1367,7 @@ ${c}` : c;
1306
1367
  table(e) {
1307
1368
  let t = this.rules.block.table.exec(e);
1308
1369
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
1309
- let n = hn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
1370
+ let n = G(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
1310
1371
  type: "table",
1311
1372
  raw: K(t[0], "\n"),
1312
1373
  header: [],
@@ -1321,7 +1382,7 @@ ${c}` : c;
1321
1382
  header: !0,
1322
1383
  align: a.align[e]
1323
1384
  });
1324
- for (let e of i) a.rows.push(hn(e, a.header.length).map((e, t) => ({
1385
+ for (let e of i) a.rows.push(G(e, a.header.length).map((e, t) => ({
1325
1386
  text: e,
1326
1387
  tokens: this.lexer.inline(e),
1327
1388
  header: !1,
@@ -1392,7 +1453,7 @@ ${c}` : c;
1392
1453
  let t = K(e.slice(0, -1), "\\");
1393
1454
  if ((e.length - t.length) % 2 == 0) return;
1394
1455
  } else {
1395
- let e = gn(t[2], "()");
1456
+ let e = yn(t[2], "()");
1396
1457
  if (e === -2) return;
1397
1458
  if (e > -1) {
1398
1459
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -1404,7 +1465,7 @@ ${c}` : c;
1404
1465
  let e = this.rules.other.pedanticHrefTitle.exec(n);
1405
1466
  e && (n = e[1], r = e[3]);
1406
1467
  } else r = t[3] ? t[3].slice(1, -1) : "";
1407
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), vn(t, {
1468
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), xn(t, {
1408
1469
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
1409
1470
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
1410
1471
  }, t[0], this.lexer, this.rules);
@@ -1422,7 +1483,7 @@ ${c}` : c;
1422
1483
  text: e
1423
1484
  };
1424
1485
  }
1425
- return vn(n, e, n[0], this.lexer, this.rules);
1486
+ return xn(n, e, n[0], this.lexer, this.rules);
1426
1487
  }
1427
1488
  }
1428
1489
  emStrong(e, t, n = "") {
@@ -1554,29 +1615,29 @@ ${c}` : c;
1554
1615
  };
1555
1616
  }
1556
1617
  }
1557
- }, J = class e {
1618
+ }, q = class e {
1558
1619
  tokens;
1559
1620
  options;
1560
1621
  state;
1561
1622
  inlineQueue;
1562
1623
  tokenizer;
1563
1624
  constructor(e) {
1564
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || k, this.options.tokenizer = this.options.tokenizer || new bn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1625
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _t, this.options.tokenizer = this.options.tokenizer || new Cn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1565
1626
  inLink: !1,
1566
1627
  inRawBlock: !1,
1567
1628
  top: !0
1568
1629
  };
1569
1630
  let t = {
1570
- other: M,
1571
- block: dn.normal,
1572
- inline: fn.normal
1631
+ other: A,
1632
+ block: mn.normal,
1633
+ inline: hn.normal
1573
1634
  };
1574
- this.options.pedantic ? (t.block = dn.pedantic, t.inline = fn.pedantic) : this.options.gfm && (t.block = dn.gfm, this.options.breaks ? t.inline = fn.breaks : t.inline = fn.gfm), this.tokenizer.rules = t;
1635
+ this.options.pedantic ? (t.block = mn.pedantic, t.inline = hn.pedantic) : this.options.gfm && (t.block = mn.gfm, this.options.breaks ? t.inline = hn.breaks : t.inline = hn.gfm), this.tokenizer.rules = t;
1575
1636
  }
1576
1637
  static get rules() {
1577
1638
  return {
1578
- block: dn,
1579
- inline: fn
1639
+ block: mn,
1640
+ inline: hn
1580
1641
  };
1581
1642
  }
1582
1643
  static lex(t, n) {
@@ -1586,7 +1647,7 @@ ${c}` : c;
1586
1647
  return new e(n).inlineTokens(t);
1587
1648
  }
1588
1649
  lex(e) {
1589
- e = e.replace(M.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1650
+ e = e.replace(A.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1590
1651
  for (let e = 0; e < this.inlineQueue.length; e++) {
1591
1652
  let t = this.inlineQueue[e];
1592
1653
  this.inlineTokens(t.src, t.tokens);
@@ -1594,7 +1655,7 @@ ${c}` : c;
1594
1655
  return this.inlineQueue = [], this.tokens;
1595
1656
  }
1596
1657
  blockTokens(e, t = [], n = !1) {
1597
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(M.tabCharGlobal, " ").replace(M.spaceLine, ""));
1658
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(A.tabCharGlobal, " ").replace(A.spaceLine, ""));
1598
1659
  let r = Infinity;
1599
1660
  for (; e;) {
1600
1661
  if (e.length < r) r = e.length;
@@ -1776,17 +1837,17 @@ ${c}` : c;
1776
1837
  if (this.options.silent) console.error(t);
1777
1838
  else throw Error(t);
1778
1839
  }
1779
- }, xn = class {
1840
+ }, wn = class {
1780
1841
  options;
1781
1842
  parser;
1782
1843
  constructor(e) {
1783
- this.options = e || k;
1844
+ this.options = e || _t;
1784
1845
  }
1785
1846
  space(e) {
1786
1847
  return "";
1787
1848
  }
1788
1849
  code({ text: e, lang: t, escaped: n }) {
1789
- let r = (t || "").match(M.notSpaceStart)?.[0], i = e.replace(M.endingNewline, "") + "\n";
1850
+ let r = (t || "").match(A.notSpaceStart)?.[0], i = e.replace(A.endingNewline, "") + "\n";
1790
1851
  return r ? "<pre><code class=\"language-" + W(r) + "\">" + (n ? i : W(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : W(i, !0)) + "</code></pre>\n";
1791
1852
  }
1792
1853
  blockquote({ tokens: e }) {
@@ -1866,7 +1927,7 @@ ${e}</tr>
1866
1927
  return `<del>${this.parser.parseInline(e)}</del>`;
1867
1928
  }
1868
1929
  link({ href: e, title: t, tokens: n }) {
1869
- let r = this.parser.parseInline(n), i = G(e);
1930
+ let r = this.parser.parseInline(n), i = _n(e);
1870
1931
  if (i === null) return r;
1871
1932
  e = i;
1872
1933
  let a = "<a href=\"" + e + "\"";
@@ -1874,7 +1935,7 @@ ${e}</tr>
1874
1935
  }
1875
1936
  image({ href: e, title: t, text: n, tokens: r }) {
1876
1937
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1877
- let i = G(e);
1938
+ let i = _n(e);
1878
1939
  if (i === null) return W(n);
1879
1940
  e = i;
1880
1941
  let a = `<img src="${e}" alt="${W(n)}"`;
@@ -1883,7 +1944,7 @@ ${e}</tr>
1883
1944
  text(e) {
1884
1945
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
1885
1946
  }
1886
- }, Sn = class {
1947
+ }, J = class {
1887
1948
  strong({ text: e }) {
1888
1949
  return e;
1889
1950
  }
@@ -1919,7 +1980,7 @@ ${e}</tr>
1919
1980
  renderer;
1920
1981
  textRenderer;
1921
1982
  constructor(e) {
1922
- this.options = e || k, this.options.renderer = this.options.renderer || new xn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Sn();
1983
+ this.options = e || _t, this.options.renderer = this.options.renderer || new wn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
1923
1984
  }
1924
1985
  static parse(t, n) {
1925
1986
  return new e(n).parse(t);
@@ -2069,7 +2130,7 @@ ${e}</tr>
2069
2130
  options;
2070
2131
  block;
2071
2132
  constructor(e) {
2072
- this.options = e || k;
2133
+ this.options = e || _t;
2073
2134
  }
2074
2135
  static passThroughHooks = /* @__PURE__ */ new Set([
2075
2136
  "preprocess",
@@ -2095,21 +2156,21 @@ ${e}</tr>
2095
2156
  return e;
2096
2157
  }
2097
2158
  provideLexer(e = this.block) {
2098
- return e ? J.lex : J.lexInline;
2159
+ return e ? q.lex : q.lexInline;
2099
2160
  }
2100
2161
  provideParser(e = this.block) {
2101
2162
  return e ? Y.parse : Y.parseInline;
2102
2163
  }
2103
- }, Z = new class {
2104
- defaults = mt();
2164
+ }, Tn = new class {
2165
+ defaults = gt();
2105
2166
  options = this.setOptions;
2106
2167
  parse = this.parseMarkdown(!0);
2107
2168
  parseInline = this.parseMarkdown(!1);
2108
2169
  Parser = Y;
2109
- Renderer = xn;
2110
- TextRenderer = Sn;
2111
- Lexer = J;
2112
- Tokenizer = bn;
2170
+ Renderer = wn;
2171
+ TextRenderer = J;
2172
+ Lexer = q;
2173
+ Tokenizer = Cn;
2113
2174
  Hooks = X;
2114
2175
  constructor(...e) {
2115
2176
  this.use(...e);
@@ -2161,7 +2222,7 @@ ${e}</tr>
2161
2222
  }
2162
2223
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
2163
2224
  }), n.extensions = t), e.renderer) {
2164
- let t = this.defaults.renderer || new xn(this.defaults);
2225
+ let t = this.defaults.renderer || new wn(this.defaults);
2165
2226
  for (let n in e.renderer) {
2166
2227
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
2167
2228
  if (["options", "parser"].includes(n)) continue;
@@ -2174,7 +2235,7 @@ ${e}</tr>
2174
2235
  n.renderer = t;
2175
2236
  }
2176
2237
  if (e.tokenizer) {
2177
- let t = this.defaults.tokenizer || new bn(this.defaults);
2238
+ let t = this.defaults.tokenizer || new Cn(this.defaults);
2178
2239
  for (let n in e.tokenizer) {
2179
2240
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
2180
2241
  if ([
@@ -2234,7 +2295,7 @@ ${e}</tr>
2234
2295
  }, this;
2235
2296
  }
2236
2297
  lexer(e, t) {
2237
- return J.lex(e, t ?? this.defaults);
2298
+ return q.lex(e, t ?? this.defaults);
2238
2299
  }
2239
2300
  parser(e, t) {
2240
2301
  return Y.parse(e, t ?? this.defaults);
@@ -2249,14 +2310,14 @@ ${e}</tr>
2249
2310
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
2250
2311
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
2251
2312
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
2252
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? J.lex : J.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
2313
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
2253
2314
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
2254
2315
  let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(a, i);
2255
2316
  return i.hooks ? await i.hooks.postprocess(o) : o;
2256
2317
  })().catch(a);
2257
2318
  try {
2258
2319
  i.hooks && (t = i.hooks.preprocess(t));
2259
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? J.lex : J.lexInline)(t, i);
2320
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(t, i);
2260
2321
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
2261
2322
  let r = (i.hooks ? i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(n, i);
2262
2323
  return i.hooks && (r = i.hooks.postprocess(r)), r;
@@ -2276,24 +2337,24 @@ ${e}</tr>
2276
2337
  };
2277
2338
  }
2278
2339
  }();
2279
- function Q(e, t) {
2280
- return Z.parse(e, t);
2281
- }
2282
- Q.options = Q.setOptions = function(e) {
2283
- return Z.setOptions(e), Q.defaults = Z.defaults, ht(Q.defaults), Q;
2284
- }, Q.getDefaults = mt, Q.defaults = k, Q.use = function(...e) {
2285
- return Z.use(...e), Q.defaults = Z.defaults, ht(Q.defaults), Q;
2286
- }, Q.walkTokens = function(e, t) {
2287
- return Z.walkTokens(e, t);
2288
- }, Q.parseInline = Z.parseInline, Q.Parser = Y, Q.parser = Y.parse, Q.Renderer = xn, Q.TextRenderer = Sn, Q.Lexer = J, Q.lexer = J.lex, Q.Tokenizer = bn, Q.Hooks = X, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, Y.parse, J.lex;
2340
+ function Z(e, t) {
2341
+ return Tn.parse(e, t);
2342
+ }
2343
+ Z.options = Z.setOptions = function(e) {
2344
+ return Tn.setOptions(e), Z.defaults = Tn.defaults, vt(Z.defaults), Z;
2345
+ }, Z.getDefaults = gt, Z.defaults = _t, Z.use = function(...e) {
2346
+ return Tn.use(...e), Z.defaults = Tn.defaults, vt(Z.defaults), Z;
2347
+ }, Z.walkTokens = function(e, t) {
2348
+ return Tn.walkTokens(e, t);
2349
+ }, Z.parseInline = Tn.parseInline, Z.Parser = Y, Z.parser = Y.parse, Z.Renderer = wn, Z.TextRenderer = J, Z.Lexer = q, Z.lexer = q.lex, Z.Tokenizer = Cn, Z.Hooks = X, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Y.parse, q.lex;
2289
2350
  //#endregion
2290
2351
  //#region src/components/ai-chat/ai-chat.module.scss?inline
2291
- var Cn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb), .08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:flex}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;align-items:flex-start}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.875rem;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:1rem;--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:1.5rem;--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s,12px);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-attachment-size:64px}", wn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color-hard);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}", Tn = class extends i {
2352
+ var En = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb), .08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:flex}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;align-items:flex-start}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.875rem;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:1rem;--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:1.5rem;--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s,12px);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-attachment-size:64px}", Dn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color-hard);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}", Q = class extends i {
2292
2353
  constructor(...e) {
2293
2354
  super(...e), this.title = o("What can I help you with?", { desc: "Title for the AI chat empty state" }), this.subtitle = "", this.suggestions = [], this.disabled = !1;
2294
2355
  }
2295
2356
  static {
2296
- this.styles = f(wn);
2357
+ this.styles = f(Dn);
2297
2358
  }
2298
2359
  static {
2299
2360
  this.tagName = "luzmo-ai-chat-empty-state";
@@ -2346,16 +2407,16 @@ var Cn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:10
2346
2407
  };
2347
2408
  //#endregion
2348
2409
  //#region src/components/ai-chat/empty-state/index.ts
2349
- a([p({ type: String })], Tn.prototype, "title", void 0), a([p({ type: String })], Tn.prototype, "subtitle", void 0), a([p({ type: Array })], Tn.prototype, "suggestions", void 0), a([p({
2410
+ a([p({ type: String })], Q.prototype, "title", void 0), a([p({ type: String })], Q.prototype, "subtitle", void 0), a([p({ type: Array })], Q.prototype, "suggestions", void 0), a([p({
2350
2411
  type: Boolean,
2351
2412
  reflect: !0
2352
- })], Tn.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Tn);
2413
+ })], Q.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Q);
2353
2414
  //#endregion
2354
2415
  //#region src/components/ai-chat/ai-chat-request.ts
2355
- function En(e, t) {
2416
+ function On(e, t) {
2356
2417
  return `${e.replace(/\/+$/, "")}/${t.replace(/^\/+|\/+$/g, "")}/aiprompt`;
2357
2418
  }
2358
- function Dn(e) {
2419
+ function kn(e) {
2359
2420
  return e.type === "placeholder" ? null : {
2360
2421
  ...e,
2361
2422
  version: e.version || "",
@@ -2364,7 +2425,7 @@ function Dn(e) {
2364
2425
  aichartId: e.aichartId || ""
2365
2426
  };
2366
2427
  }
2367
- function On(e, t, n = []) {
2428
+ function An(e, t, n = []) {
2368
2429
  return [
2369
2430
  {
2370
2431
  type: "text",
@@ -2380,7 +2441,7 @@ function On(e, t, n = []) {
2380
2441
  }))
2381
2442
  ];
2382
2443
  }
2383
- function kn(e) {
2444
+ function jn(e) {
2384
2445
  return {
2385
2446
  stream: e.stream ?? !0,
2386
2447
  response_mode: "mixed",
@@ -2388,43 +2449,43 @@ function kn(e) {
2388
2449
  ...e.localeId ? { locale_id: e.localeId } : {}
2389
2450
  };
2390
2451
  }
2391
- function An(e, t, n) {
2452
+ function Mn(e, t, n) {
2392
2453
  return {
2393
2454
  agent: e,
2394
2455
  task: t,
2395
- ...kn(n)
2456
+ ...jn(n)
2396
2457
  };
2397
2458
  }
2398
- function jn(e) {
2399
- let t = On(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? Dn(e.chart) : null;
2459
+ function Nn(e) {
2460
+ let t = An(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? kn(e.chart) : null;
2400
2461
  return n && t.push({
2401
2462
  type: "item",
2402
2463
  value: n
2403
2464
  }), {
2404
- ...An("item", e.task ?? "generate", e),
2465
+ ...Mn("item", e.task ?? "generate", e),
2405
2466
  input: t
2406
2467
  };
2407
2468
  }
2408
- function Mn(e) {
2409
- let t = On(e.prompt, e.datasetIds, e.attachmentUrls);
2469
+ function Pn(e) {
2470
+ let t = An(e.prompt, e.datasetIds, e.attachmentUrls);
2410
2471
  return e.dashboard && t.push({
2411
2472
  type: "dashboard",
2412
2473
  value: e.dashboard,
2413
2474
  ...e.currentScreenMode ? { current_screen_mode: e.currentScreenMode } : {}
2414
2475
  }), {
2415
- ...An("dashboard", "generate", e),
2476
+ ...Mn("dashboard", "generate", e),
2416
2477
  timezone_id: e.timezoneId ?? "UTC",
2417
2478
  input: t
2418
2479
  };
2419
2480
  }
2420
- function Nn(e) {
2481
+ function Fn(e) {
2421
2482
  return {
2422
- ...An("analyst", "generate", e),
2423
- input: On(e.prompt, e.datasetIds, e.attachmentUrls)
2483
+ ...Mn("analyst", "generate", e),
2484
+ input: An(e.prompt, e.datasetIds, e.attachmentUrls)
2424
2485
  };
2425
2486
  }
2426
- function Pn(e, t) {
2427
- let n = On(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? Dn(t.chart) : null;
2487
+ function In(e, t) {
2488
+ let n = An(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? kn(t.chart) : null;
2428
2489
  return r && n.push({
2429
2490
  type: "item",
2430
2491
  value: r
@@ -2434,29 +2495,29 @@ function Pn(e, t) {
2434
2495
  ...t.currentScreenMode ? { current_screen_mode: t.currentScreenMode } : {}
2435
2496
  }), {
2436
2497
  agent_id: e,
2437
- ...kn(t),
2498
+ ...jn(t),
2438
2499
  input: n
2439
2500
  };
2440
2501
  }
2441
- function Fn(e, t) {
2442
- if (t.agentId) return Pn(t.agentId, t);
2502
+ function Ln(e, t) {
2503
+ if (t.agentId) return In(t.agentId, t);
2443
2504
  switch (e) {
2444
- case "dashboard": return Mn(t);
2445
- case "analyst": return Nn(t);
2446
- default: return jn(t);
2505
+ case "dashboard": return Pn(t);
2506
+ case "analyst": return Fn(t);
2507
+ default: return Nn(t);
2447
2508
  }
2448
2509
  }
2449
- function In(e, n) {
2510
+ function Rn(e, n) {
2450
2511
  let { authKey: r, authToken: i, apiVersion: a = "0.1.0" } = n;
2451
2512
  return n.attachmentUrls?.length && t(n.attachmentUrls), {
2452
2513
  key: r,
2453
2514
  token: i,
2454
2515
  action: "create",
2455
2516
  version: a,
2456
- properties: Fn(e, n)
2517
+ properties: Ln(e, n)
2457
2518
  };
2458
2519
  }
2459
- function Ln(e, t, n, r = "0.1.0", i = null) {
2520
+ function zn(e, t, n, r = "0.1.0", i = null) {
2460
2521
  return {
2461
2522
  key: t,
2462
2523
  token: n,
@@ -2471,7 +2532,7 @@ function Ln(e, t, n, r = "0.1.0", i = null) {
2471
2532
  }
2472
2533
  //#endregion
2473
2534
  //#region src/components/ai-chat/stream/transport.ts
2474
- async function Rn(e) {
2535
+ async function Bn(e) {
2475
2536
  let t = await fetch(e.url, {
2476
2537
  method: "POST",
2477
2538
  headers: { "Content-Type": "application/json" },
@@ -2489,21 +2550,21 @@ async function Rn(e) {
2489
2550
  conversationId: t.headers.get("x-conversation-id")
2490
2551
  };
2491
2552
  }
2492
- function zn(e) {
2553
+ function Vn(e) {
2493
2554
  let t = e.trim();
2494
2555
  if (!t || t.startsWith(":") || t.startsWith("event:") || t.startsWith("id:")) return null;
2495
2556
  let n = t;
2496
2557
  return n.startsWith("data:") && (n = n.slice(5).trimStart()), !n || n === "[DONE]" ? null : JSON.parse(n);
2497
2558
  }
2498
- function Bn(e, t) {
2559
+ function Hn(e, t) {
2499
2560
  try {
2500
- let n = zn(e);
2561
+ let n = Vn(e);
2501
2562
  n && t(n);
2502
2563
  } catch {
2503
2564
  console.error("Failed to parse stream line");
2504
2565
  }
2505
2566
  }
2506
- async function Vn(e, t) {
2567
+ async function Un(e, t) {
2507
2568
  let n = e.getReader(), r = new TextDecoder(), i = "";
2508
2569
  try {
2509
2570
  for (;;) {
@@ -2512,18 +2573,18 @@ async function Vn(e, t) {
2512
2573
  i += r.decode(a, { stream: !0 });
2513
2574
  let o = i.split(/\r?\n/);
2514
2575
  i = o.pop() ?? "";
2515
- for (let e of o) Bn(e, t);
2576
+ for (let e of o) Hn(e, t);
2516
2577
  }
2517
2578
  i += r.decode();
2518
2579
  let e = i.trim();
2519
- e && Bn(e, t);
2580
+ e && Hn(e, t);
2520
2581
  } finally {
2521
2582
  n.releaseLock();
2522
2583
  }
2523
2584
  }
2524
2585
  //#endregion
2525
2586
  //#region src/components/ai-chat/stream/progress.ts
2526
- function Hn() {
2587
+ function Wn() {
2527
2588
  return {
2528
2589
  id: "root",
2529
2590
  step: "root",
@@ -2536,13 +2597,13 @@ function Hn() {
2536
2597
  }]
2537
2598
  };
2538
2599
  }
2539
- function Un(e) {
2600
+ function Gn(e) {
2540
2601
  let t = e.progress;
2541
2602
  return typeof t != "object" || !t ? !1 : "id" in t && "step" in t && "status" in t;
2542
2603
  }
2543
2604
  //#endregion
2544
2605
  //#region src/components/ai-chat/stream/chunk-extractors.ts
2545
- function Wn(e) {
2606
+ function Kn(e) {
2546
2607
  if (!e || typeof e != "object") return "";
2547
2608
  let t = e.assistant_message;
2548
2609
  if (!t || typeof t != "object") return "";
@@ -2552,75 +2613,75 @@ function Wn(e) {
2552
2613
  let n = t.content;
2553
2614
  return typeof n == "string" ? n : n && typeof n == "object" && typeof n.text == "string" ? n.text : "";
2554
2615
  }
2555
- function Gn(e) {
2616
+ function qn(e) {
2556
2617
  return e.type === "text_delta" && typeof e.delta == "string" ? e.delta : typeof e.text_delta == "string" ? e.text_delta : typeof e.chunk == "string" ? e.chunk : typeof e.message == "string" ? e.message : typeof e.summary == "string" ? e.summary : "";
2557
2618
  }
2558
- function Kn(e) {
2559
- return Wn(e.result);
2619
+ function Jn(e) {
2620
+ return Kn(e.result);
2560
2621
  }
2561
- function qn(e) {
2622
+ function Yn(e) {
2562
2623
  return !!e.done || e.type === "finish" || e.type === "done" || "question" in e;
2563
2624
  }
2564
- function Jn(e, t) {
2625
+ function Xn(e, t) {
2565
2626
  let n = typeof e.conversation_id == "string" && e.conversation_id || typeof e.conversationId == "string" && e.conversationId;
2566
2627
  n && t.callbacks.onConversationIdChange(n);
2567
2628
  }
2568
- function Yn(e) {
2629
+ function Zn(e) {
2569
2630
  for (let t of e) if (t && typeof t == "object" && t.type === "item") {
2570
2631
  let e = t.value;
2571
2632
  if (e && typeof e == "object") return e;
2572
2633
  }
2573
2634
  return null;
2574
2635
  }
2575
- function Xn(e) {
2636
+ function Qn(e) {
2576
2637
  let t = e.chart ?? e.generatedChart;
2577
2638
  if (t && typeof t == "object") return t;
2578
2639
  let n = e.aiMessageAssets ?? e.ai_message_assets;
2579
2640
  if (Array.isArray(n)) {
2580
- let e = Yn(n);
2641
+ let e = Zn(n);
2581
2642
  if (e) return e;
2582
2643
  }
2583
2644
  let r = e.result;
2584
2645
  if (r && typeof r == "object") {
2585
2646
  let e = r.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2586
- if (Array.isArray(t)) return Yn(t);
2647
+ if (Array.isArray(t)) return Zn(t);
2587
2648
  }
2588
2649
  return null;
2589
2650
  }
2590
- function Zn(e) {
2651
+ function $n(e) {
2591
2652
  for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2592
2653
  let e = t.value;
2593
2654
  if (e && typeof e == "object" && Array.isArray(e.views)) return e;
2594
2655
  }
2595
2656
  return null;
2596
2657
  }
2597
- function Qn(e) {
2658
+ function er(e) {
2598
2659
  for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2599
2660
  let e = t.name;
2600
2661
  if (e && typeof e == "object") return e;
2601
2662
  }
2602
2663
  }
2603
- function $n(...e) {
2664
+ function tr(...e) {
2604
2665
  return e.find(Array.isArray);
2605
2666
  }
2606
- function er(e) {
2667
+ function nr(e) {
2607
2668
  if (e.views && Array.isArray(e.views)) return e;
2608
2669
  let t = e.aiMessageAssets ?? e.ai_message_assets;
2609
- if (Array.isArray(t)) return Zn(t);
2670
+ if (Array.isArray(t)) return $n(t);
2610
2671
  let n = e.result;
2611
2672
  if (n && typeof n == "object") {
2612
2673
  let e = n.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2613
- if (Array.isArray(t)) return Zn(t);
2674
+ if (Array.isArray(t)) return $n(t);
2614
2675
  }
2615
2676
  return null;
2616
2677
  }
2617
- function tr(e) {
2618
- let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = $n(t, n?.aiMessageAssets ?? n?.ai_message_assets);
2619
- return r ? Qn(r) : void 0;
2678
+ function rr(e) {
2679
+ let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = tr(t, n?.aiMessageAssets ?? n?.ai_message_assets);
2680
+ return r ? er(r) : void 0;
2620
2681
  }
2621
2682
  //#endregion
2622
2683
  //#region src/components/ai-chat/stream/stream-processor.ts
2623
- var nr = /* @__PURE__ */ new Set([
2684
+ var ir = /* @__PURE__ */ new Set([
2624
2685
  "conversation-id",
2625
2686
  "conversation_id",
2626
2687
  "keepalive",
@@ -2628,7 +2689,7 @@ var nr = /* @__PURE__ */ new Set([
2628
2689
  "finish",
2629
2690
  "done"
2630
2691
  ]);
2631
- function rr(e, t, n) {
2692
+ function ar(e, t, n) {
2632
2693
  return {
2633
2694
  agent: n.agent,
2634
2695
  conversationId: t.callbacks.getConversationId(),
@@ -2636,128 +2697,128 @@ function rr(e, t, n) {
2636
2697
  raw: e
2637
2698
  };
2638
2699
  }
2639
- function ir(e, t, n, r, i) {
2700
+ function or(e, t, n, r, i) {
2640
2701
  let a = {
2641
- ...rr(n, e, t),
2702
+ ...ar(n, e, t),
2642
2703
  recognized: !0,
2643
2704
  type: r,
2644
2705
  data: i
2645
2706
  };
2646
2707
  e.callbacks.onStep(a);
2647
2708
  }
2648
- function ar(e, t, n, r, i) {
2709
+ function sr(e, t, n, r, i) {
2649
2710
  let a = {
2650
- ...rr(n, e, t),
2711
+ ...ar(n, e, t),
2651
2712
  recognized: !1,
2652
2713
  type: r,
2653
2714
  data: i
2654
2715
  };
2655
2716
  e.callbacks.onStep(a);
2656
2717
  }
2657
- function or(e) {
2718
+ function cr(e) {
2658
2719
  e.state.progressCollapsed || (e.state.progressCollapsed = !0, e.callbacks.onProgressCollapsed(!0));
2659
2720
  }
2660
- function sr(e, t) {
2661
- or(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
2721
+ function lr(e, t) {
2722
+ cr(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
2662
2723
  }
2663
- function cr(e) {
2724
+ function ur(e) {
2664
2725
  if (!e) return null;
2665
2726
  let t = e.descriptionMetadata?.decision;
2666
2727
  if (t === "create" || t === "edit" || t === "question") return t;
2667
2728
  for (let t of e.children ?? []) {
2668
- let e = cr(t);
2729
+ let e = ur(t);
2669
2730
  if (e) return e;
2670
2731
  }
2671
2732
  return null;
2672
2733
  }
2673
- function lr(e, t, n) {
2674
- if (!Un(e)) return !1;
2734
+ function dr(e, t, n) {
2735
+ if (!Gn(e)) return !1;
2675
2736
  let r = e.progress;
2676
- if (t.callbacks.onProgress(r), ir(t, n, e, "progress", r), t.state.decision === null) {
2677
- let i = cr(r);
2678
- i && (t.state.decision = i, ir(t, n, e, "decision", { decision: i }));
2737
+ if (t.callbacks.onProgress(r), or(t, n, e, "progress", r), t.state.decision === null) {
2738
+ let i = ur(r);
2739
+ i && (t.state.decision = i, or(t, n, e, "decision", { decision: i }));
2679
2740
  }
2680
2741
  return !0;
2681
2742
  }
2682
- function ur(e) {
2743
+ function fr(e) {
2683
2744
  return !!e.error || e.type === "error" || typeof e.error_text == "string";
2684
2745
  }
2685
- function dr(e) {
2746
+ function pr(e) {
2686
2747
  return typeof e.error_text == "string" && e.error_text ? e.error_text : typeof e.error == "string" && e.error ? e.error : o("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" });
2687
2748
  }
2688
- function fr(e, t, n) {
2689
- if (!ur(e)) return !1;
2690
- let r = dr(e);
2691
- return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage), Nr(e, t, n, e.error ?? r), !0;
2749
+ function mr(e, t, n) {
2750
+ if (!fr(e)) return !1;
2751
+ let r = pr(e);
2752
+ return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage), Fr(e, t, n, e.error ?? r), !0;
2692
2753
  }
2693
- function pr(e) {
2754
+ function hr(e) {
2694
2755
  return typeof e.question == "string" && e.question ? e.question : typeof e.text == "string" && e.text ? e.text : "";
2695
2756
  }
2696
- function mr(e, t, n) {
2757
+ function gr(e, t, n) {
2697
2758
  if (e.type !== "interrupt") return !1;
2698
- let r = pr(e);
2699
- return r && (t.state.interruptQuestion = r, sr(t, r), ir(t, n, e, "interrupt", { question: r })), Nr(e, t, n), !0;
2759
+ let r = hr(e);
2760
+ return r && (t.state.interruptQuestion = r, lr(t, r), or(t, n, e, "interrupt", { question: r })), Fr(e, t, n), !0;
2700
2761
  }
2701
- function hr(e) {
2762
+ function _r(e) {
2702
2763
  return typeof e.asset_id == "string" ? e.asset_id : typeof e.asset_type == "string" ? e.asset_type : "default";
2703
2764
  }
2704
- function gr(e) {
2765
+ function vr(e) {
2705
2766
  return typeof e.asset_type == "string" ? e.asset_type : "";
2706
2767
  }
2707
- function _r(e) {
2768
+ function yr(e) {
2708
2769
  return {
2709
- assetType: gr(e),
2770
+ assetType: vr(e),
2710
2771
  snapshot: {}
2711
2772
  };
2712
2773
  }
2713
- function vr(e, t) {
2774
+ function br(e, t) {
2714
2775
  return {
2715
2776
  ...e,
2716
2777
  ...t
2717
2778
  };
2718
2779
  }
2719
- function yr(e) {
2780
+ function xr(e) {
2720
2781
  let t = e.asset_delta ?? e.delta;
2721
2782
  return t && typeof t == "object" ? t : null;
2722
2783
  }
2723
- function br(e, t) {
2724
- t.state.assets[hr(e)] = _r(e);
2784
+ function Sr(e, t) {
2785
+ t.state.assets[_r(e)] = yr(e);
2725
2786
  }
2726
- function xr(e, t) {
2727
- let n = hr(e), r = t.state.assets[n] ?? _r(e), i = yr(e);
2728
- i && (r.snapshot = vr(r.snapshot, i)), t.state.assets[n] = r;
2787
+ function Cr(e, t) {
2788
+ let n = _r(e), r = t.state.assets[n] ?? yr(e), i = xr(e);
2789
+ i && (r.snapshot = br(r.snapshot, i)), t.state.assets[n] = r;
2729
2790
  }
2730
- function Sr(e, t) {
2791
+ function wr(e, t) {
2731
2792
  let n = e.asset ?? e.value ?? e.asset_delta ?? e.delta;
2732
- return n && typeof n == "object" ? vr(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
2793
+ return n && typeof n == "object" ? br(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
2733
2794
  }
2734
- function Cr(e, t, n) {
2735
- let r = hr(e), i = t.state.assets[r], a = i?.assetType || gr(e), o = Sr(e, i);
2736
- delete t.state.assets[r], Er(a, o, e, t, n);
2795
+ function Tr(e, t, n) {
2796
+ let r = _r(e), i = t.state.assets[r], a = i?.assetType || vr(e), o = wr(e, i);
2797
+ delete t.state.assets[r], Or(a, o, e, t, n);
2737
2798
  }
2738
- function wr(e, t, n) {
2799
+ function Er(e, t, n) {
2739
2800
  switch (e.type) {
2740
- case "asset_start": return br(e, t), !0;
2741
- case "asset_delta": return xr(e, t), !0;
2742
- case "asset_end": return Cr(e, t, n), !0;
2801
+ case "asset_start": return Sr(e, t), !0;
2802
+ case "asset_delta": return Cr(e, t), !0;
2803
+ case "asset_end": return Tr(e, t, n), !0;
2743
2804
  default: return !1;
2744
2805
  }
2745
2806
  }
2746
- function Tr(e, t, n, r) {
2747
- n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), ir(n, r, t, "chart", e);
2807
+ function Dr(e, t, n, r) {
2808
+ n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), or(n, r, t, "chart", e);
2748
2809
  }
2749
- function Er(e, t, n, r, i) {
2810
+ function Or(e, t, n, r, i) {
2750
2811
  switch (e) {
2751
2812
  case "dashboard-title": {
2752
2813
  let e = t.name;
2753
- e && typeof e == "object" && (r.state.dashboardName = e, ir(r, i, n, "dashboard-title", { name: e }));
2814
+ e && typeof e == "object" && (r.state.dashboardName = e, or(r, i, n, "dashboard-title", { name: e }));
2754
2815
  return;
2755
2816
  }
2756
2817
  case "dashboard-layout":
2757
- ir(r, i, n, "dashboard-layout", t);
2818
+ or(r, i, n, "dashboard-layout", t);
2758
2819
  return;
2759
2820
  case "dashboard-item":
2760
- ir(r, i, n, "dashboard-item", {
2821
+ or(r, i, n, "dashboard-item", {
2761
2822
  slot: Number(t.slot),
2762
2823
  chart: t.chart ?? t
2763
2824
  });
@@ -2765,68 +2826,68 @@ function Er(e, t, n, r, i) {
2765
2826
  case "dashboard":
2766
2827
  r.state.dashboardSnapshot = t;
2767
2828
  return;
2768
- default: Dr(e, t, n, r, i);
2829
+ default: kr(e, t, n, r, i);
2769
2830
  }
2770
2831
  }
2771
- function Dr(e, t, n, r, i) {
2832
+ function kr(e, t, n, r, i) {
2772
2833
  if (i.chartAssetType && e === i.chartAssetType) {
2773
- Tr(t, n, r, i);
2834
+ Dr(t, n, r, i);
2774
2835
  return;
2775
2836
  }
2776
2837
  if (i.dashboardAssetType && e === i.dashboardAssetType) {
2777
2838
  r.state.dashboardSnapshot = t;
2778
2839
  return;
2779
2840
  }
2780
- ar(r, i, n, e || "asset", t);
2841
+ sr(r, i, n, e || "asset", t);
2781
2842
  }
2782
- function Or(e, t, n) {
2843
+ function Ar(e, t, n) {
2783
2844
  let r = !1;
2784
2845
  if (n.dashboardAssetType) {
2785
- let n = er(e);
2846
+ let n = nr(e);
2786
2847
  if (n) {
2787
2848
  t.state.dashboardSnapshot = n;
2788
- let i = tr(e);
2849
+ let i = rr(e);
2789
2850
  i && (t.state.dashboardName = i), r = !0;
2790
2851
  }
2791
2852
  }
2792
2853
  if (n.chartAssetType && !t.state.chartSnapshot) {
2793
- let i = Xn(e);
2794
- i && (Tr(i, e, t, n), r = !0);
2854
+ let i = Qn(e);
2855
+ i && (Dr(i, e, t, n), r = !0);
2795
2856
  }
2796
2857
  return r;
2797
2858
  }
2798
- function kr(e, t, n) {
2859
+ function jr(e, t, n) {
2799
2860
  return {
2800
2861
  ...e,
2801
2862
  generatedChart: t,
2802
2863
  conversationId: n.callbacks.getConversationId()
2803
2864
  };
2804
2865
  }
2805
- function Ar(e, t, n) {
2866
+ function Mr(e, t, n) {
2806
2867
  for (let r of Object.keys(t.state.assets)) {
2807
2868
  let i = t.state.assets[r];
2808
- delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) && Er(i.assetType, i.snapshot, e, t, n);
2869
+ delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) && Or(i.assetType, i.snapshot, e, t, n);
2809
2870
  }
2810
2871
  }
2811
- function jr(e, t) {
2812
- let n = Kn(e);
2872
+ function Nr(e, t) {
2873
+ let n = Jn(e);
2813
2874
  !n || t.aiMessage.message === n || (t.aiMessage.message = n, t.callbacks.onMessageUpdate(t.aiMessage));
2814
2875
  }
2815
- function Mr(e, t, n) {
2816
- let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? er(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? Xn(e) : null);
2876
+ function Pr(e, t, n) {
2877
+ let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? nr(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? Qn(e) : null);
2817
2878
  return {
2818
2879
  agent: n.agent,
2819
2880
  conversationId: t.callbacks.getConversationId(),
2820
2881
  message: t.aiMessage,
2821
2882
  ...r ? { dashboard: r } : {},
2822
- ...i ? { chart: kr(e, i, t) } : {},
2883
+ ...i ? { chart: jr(e, i, t) } : {},
2823
2884
  ...t.state.dashboardName ? { name: t.state.dashboardName } : {},
2824
2885
  raw: e
2825
2886
  };
2826
2887
  }
2827
- function Nr(e, t, n, r) {
2888
+ function Fr(e, t, n, r) {
2828
2889
  if (!t.state.completed) {
2829
- if (t.state.completed = !0, Ar(e, t, n), or(t), r !== void 0) {
2890
+ if (t.state.completed = !0, Mr(e, t, n), cr(t), r !== void 0) {
2830
2891
  t.callbacks.onComplete({
2831
2892
  agent: n.agent,
2832
2893
  conversationId: t.callbacks.getConversationId(),
@@ -2836,32 +2897,32 @@ function Nr(e, t, n, r) {
2836
2897
  });
2837
2898
  return;
2838
2899
  }
2839
- jr(e, t), t.callbacks.onComplete(Mr(e, t, n));
2900
+ Nr(e, t), t.callbacks.onComplete(Pr(e, t, n));
2840
2901
  }
2841
2902
  }
2842
- function Pr(e) {
2903
+ function Ir(e) {
2843
2904
  return typeof e.type == "string" && e.type ? e.type : typeof e.asset_type == "string" && e.asset_type ? e.asset_type : "";
2844
2905
  }
2845
- function Fr(e, t, n) {
2846
- let r = Gn(e);
2847
- return r ? (t.state.accumulatedText += r, sr(t, r), ir(t, n, e, "text", {
2906
+ function Lr(e, t, n) {
2907
+ let r = qn(e);
2908
+ return r ? (t.state.accumulatedText += r, lr(t, r), or(t, n, e, "text", {
2848
2909
  delta: r,
2849
2910
  text: t.state.accumulatedText
2850
2911
  }), !0) : !1;
2851
2912
  }
2852
- function Ir(e, t, n, r, i) {
2913
+ function Rr(e, t, n, r, i) {
2853
2914
  if (r || i) return;
2854
- let a = Pr(e);
2855
- a && !nr.has(a) && ar(t, n, e, a, e);
2915
+ let a = Ir(e);
2916
+ a && !ir.has(a) && sr(t, n, e, a, e);
2856
2917
  }
2857
- function Lr(e, t, n) {
2858
- if (Jn(e, t), lr(e, t, n) || fr(e, t, n) || mr(e, t, n) || wr(e, t, n)) return;
2859
- let r = Fr(e, t, n), i = Or(e, t, n), a = r || i, o = qn(e);
2860
- Ir(e, t, n, a, o), o && Nr(e, t, n);
2918
+ function zr(e, t, n) {
2919
+ if (Xn(e, t), dr(e, t, n) || mr(e, t, n) || gr(e, t, n) || Er(e, t, n)) return;
2920
+ let r = Lr(e, t, n), i = Ar(e, t, n), a = r || i, o = Yn(e);
2921
+ Rr(e, t, n, a, o), o && Fr(e, t, n);
2861
2922
  }
2862
2923
  //#endregion
2863
2924
  //#region src/components/ai-chat/stream/registry.ts
2864
- function Rr(e) {
2925
+ function Br(e) {
2865
2926
  switch (e) {
2866
2927
  case "dashboard": return {
2867
2928
  agent: e,
@@ -2874,11 +2935,11 @@ function Rr(e) {
2874
2935
  default: return { agent: e };
2875
2936
  }
2876
2937
  }
2877
- function zr(e) {
2878
- let t = Rr(e);
2879
- return (e, n) => Lr(e, n, t);
2938
+ function Vr(e) {
2939
+ let t = Br(e);
2940
+ return (e, n) => zr(e, n, t);
2880
2941
  }
2881
- function Br() {
2942
+ function Hr() {
2882
2943
  return {
2883
2944
  progressCollapsed: !1,
2884
2945
  accumulatedText: "",
@@ -2893,10 +2954,10 @@ function Br() {
2893
2954
  }
2894
2955
  //#endregion
2895
2956
  //#region src/components/ai-chat/session/ai-chat-session.ts
2896
- function Vr() {
2957
+ function Ur() {
2897
2958
  return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
2898
2959
  }
2899
- var Hr = class {
2960
+ var Wr = class {
2900
2961
  constructor(e, t = {}) {
2901
2962
  this._uiBridgeCallbacks = {}, this._subscribers = /* @__PURE__ */ new Set(), this._state = {
2902
2963
  messages: [],
@@ -2965,20 +3026,20 @@ var Hr = class {
2965
3026
  let t = this._state.selectedDatasets.filter((t) => t.id !== e);
2966
3027
  t.length !== this._state.selectedDatasets.length && (this._patchState({ selectedDatasets: t }), this._emit("onDatasetsChanged", this._state.selectedDatasets));
2967
3028
  }
2968
- isDatasetRequirementMet() {
2969
- return !this._config.requireDataset || this._state.selectedDatasets.length > 0;
3029
+ isDatasetRequirementMet(e) {
3030
+ return !this._config.requireDataset || this._state.selectedDatasets.length > 0 || !!e;
2970
3031
  }
2971
3032
  getAiPromptUrl() {
2972
- return En(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
3033
+ return On(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
2973
3034
  }
2974
- buildRequestBody(e, t, n = []) {
2975
- return In(this._config.agent, {
3035
+ buildRequestBody(e, t, n = [], r = this._config.agentId) {
3036
+ return Rn(this._config.agent, {
2976
3037
  prompt: e,
2977
3038
  datasetIds: t,
2978
3039
  authKey: this._config.authKey,
2979
3040
  authToken: this._config.authToken,
2980
3041
  conversationId: this._state.conversationId,
2981
- agentId: this._config.agentId,
3042
+ agentId: r,
2982
3043
  chart: this._config.chart ?? null,
2983
3044
  dashboard: this._config.dashboard ?? null,
2984
3045
  currentScreenMode: this._config.currentScreenMode,
@@ -2998,7 +3059,7 @@ var Hr = class {
2998
3059
  selectedDatasets: e.selectedDatasets,
2999
3060
  datasetIds: e.datasetIds,
3000
3061
  agent: this._config.agent,
3001
- request: this.buildRequestBody(e.prompt, e.datasetIds, t),
3062
+ request: this.buildRequestBody(e.prompt, e.datasetIds, t, e.agentId),
3002
3063
  url: this.getAiPromptUrl(),
3003
3064
  ...e.signal ? { signal: e.signal } : {},
3004
3065
  ...e.attachments?.length ? { attachments: e.attachments } : {},
@@ -3033,7 +3094,7 @@ var Hr = class {
3033
3094
  }
3034
3095
  async submit(e) {
3035
3096
  let t = e.datasetIds ?? this._state.selectedDatasets.map((e) => e.id);
3036
- if (!this.isDatasetRequirementMet()) return;
3097
+ if (!this.isDatasetRequirementMet(e.agentId)) return;
3037
3098
  this._abortInflight();
3038
3099
  let n = new AbortController();
3039
3100
  this._abortController = n;
@@ -3046,13 +3107,13 @@ var Hr = class {
3046
3107
  }
3047
3108
  if (n.signal.aborted || this._abortController !== n) return;
3048
3109
  let i = {
3049
- id: e.aiMessageId ?? Vr(),
3110
+ id: e.aiMessageId ?? Ur(),
3050
3111
  type: "ai",
3051
3112
  message: ""
3052
3113
  }, a = [...this._state.messages];
3053
3114
  if (!e.skipUserMessage) {
3054
3115
  let t = {
3055
- id: Vr(),
3116
+ id: Ur(),
3056
3117
  type: "user",
3057
3118
  message: e.prompt,
3058
3119
  ...r.length ? { attachmentUrls: r } : {}
@@ -3062,7 +3123,7 @@ var Hr = class {
3062
3123
  a = [...a, i], this._inflightMessage = i, this._receivedProgress = !1, this._patchState({
3063
3124
  messages: a,
3064
3125
  isGenerating: !0,
3065
- progress: Hn(),
3126
+ progress: Wn(),
3066
3127
  progressCollapsed: !1,
3067
3128
  inflightMessage: i
3068
3129
  });
@@ -3074,7 +3135,8 @@ var Hr = class {
3074
3135
  datasetIds: o,
3075
3136
  signal: n.signal,
3076
3137
  attachments: e.attachments,
3077
- attachmentUrls: r
3138
+ attachmentUrls: r,
3139
+ agentId: e.agentId
3078
3140
  });
3079
3141
  try {
3080
3142
  await this._invokeCallback("onPromptSubmitted", t);
@@ -3083,18 +3145,18 @@ var Hr = class {
3083
3145
  }
3084
3146
  return;
3085
3147
  }
3086
- let c = this.buildRequestBody(e.prompt, t, r), l = zr(this._config.agent), u = {
3148
+ let c = this.buildRequestBody(e.prompt, t, r, e.agentId), l = Vr(this._config.agent), u = {
3087
3149
  aiMessage: i,
3088
3150
  callbacks: this._createStreamCallbacks(),
3089
- state: Br()
3090
- }, d = this._config.fetchStreaming ?? Rn, f = !1;
3151
+ state: Hr()
3152
+ }, d = this._config.fetchStreaming ?? Bn, f = !1;
3091
3153
  try {
3092
3154
  let { body: e, conversationId: t } = await d({
3093
3155
  url: this.getAiPromptUrl(),
3094
3156
  body: c,
3095
3157
  signal: n.signal
3096
3158
  });
3097
- t && this._setConversationId(t), await Vn(e, (e) => l(e, u)), f = !0;
3159
+ t && this._setConversationId(t), await Un(e, (e) => l(e, u)), f = !0;
3098
3160
  } catch (e) {
3099
3161
  e.name !== "AbortError" && (this._handleSubmitError(e, i), f = !0);
3100
3162
  } finally {
@@ -3103,7 +3165,7 @@ var Hr = class {
3103
3165
  }
3104
3166
  async restore(e) {
3105
3167
  if (this._config.agent !== "item") return {};
3106
- let t = Ln(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3168
+ let t = zn(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3107
3169
  if (this._patchState({
3108
3170
  isGenerating: !0,
3109
3171
  progress: null,
@@ -3133,7 +3195,7 @@ var Hr = class {
3133
3195
  let e = await n.json().catch(() => null);
3134
3196
  throw Error(e?.message || `API request failed with status ${n.status}`);
3135
3197
  }
3136
- let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? Xn(r) : null), a = {
3198
+ let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? Qn(r) : null), a = {
3137
3199
  ...typeof r?.message == "string" ? { message: r.message } : {},
3138
3200
  ...i ? { chart: {
3139
3201
  ...r,
@@ -3145,7 +3207,7 @@ var Hr = class {
3145
3207
  message: a.message
3146
3208
  }), this._patchState({ messages: [...o] }), a.chart || a.message) {
3147
3209
  let t = o[e.messageIndex], n = t?.type === "ai" ? t : {
3148
- id: Vr(),
3210
+ id: Ur(),
3149
3211
  type: "ai",
3150
3212
  message: a.message ?? ""
3151
3213
  };
@@ -3163,7 +3225,7 @@ var Hr = class {
3163
3225
  }
3164
3226
  }
3165
3227
  buildRestoreRequest(e) {
3166
- return Ln(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3228
+ return zn(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3167
3229
  }
3168
3230
  abort(e = {}) {
3169
3231
  this._abortController?.abort(), this._abortController = null, e.notify && this._inflightMessage ? this._markInflightCancelled(e.cancelledMessage) : this._discardInflightMessage(), this._patchState({
@@ -3267,12 +3329,12 @@ var Hr = class {
3267
3329
  });
3268
3330
  }
3269
3331
  };
3270
- function Ur(e, t) {
3271
- return new Hr(e, t);
3332
+ function Gr(e, t) {
3333
+ return new Wr(e, t);
3272
3334
  }
3273
3335
  //#endregion
3274
3336
  //#region src/components/ai-chat/session/ai-chat-session-controller.ts
3275
- var Wr = class {
3337
+ var Kr = class {
3276
3338
  constructor(e) {
3277
3339
  this.options = e, this._session = null, this._ownsSession = !1, this._seededFromProps = !1, this._unsubscribe = null;
3278
3340
  }
@@ -3341,7 +3403,7 @@ var Wr = class {
3341
3403
  _createSessionIfMissing() {
3342
3404
  if (this._session) return;
3343
3405
  let e = this.options.getSeed();
3344
- this._session = Ur({
3406
+ this._session = Gr({
3345
3407
  ...this.options.getConfig(),
3346
3408
  messages: e.messages.length > 0 ? [...e.messages] : void 0,
3347
3409
  selectedDatasets: e.selectedDatasets.length > 0 ? [...e.selectedDatasets] : void 0
@@ -3365,7 +3427,7 @@ var Wr = class {
3365
3427
  }
3366
3428
  }, $ = class t extends i {
3367
3429
  constructor(...e) {
3368
- super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._lastProcessedInitialPrompt = null, this._session = new Wr({
3430
+ super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.hideAgents = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._lastProcessedInitialPrompt = null, this._session = new Kr({
3369
3431
  getConfig: () => this._buildSessionConfig(),
3370
3432
  getSeed: () => ({
3371
3433
  messages: this.messages,
@@ -3384,7 +3446,7 @@ var Wr = class {
3384
3446
  };
3385
3447
  }
3386
3448
  static {
3387
- this.styles = f(Cn);
3449
+ this.styles = f(En);
3388
3450
  }
3389
3451
  static {
3390
3452
  this.tagName = "luzmo-ai-chat";
@@ -3447,6 +3509,9 @@ var Wr = class {
3447
3509
  ...typeof this.uploadAttachments == "function" ? { uploadAttachments: (e, t) => this.uploadAttachments(e, t) } : {}
3448
3510
  };
3449
3511
  }
3512
+ get _pickedAgentId() {
3513
+ if (!this.hideAgents) return this.shadowRoot?.querySelector("luzmo-ai-interaction-textarea")?.selectedAgent?.id;
3514
+ }
3450
3515
  get _resolvedAcceptedFileTypes() {
3451
3516
  return this.acceptedFileTypes.length > 0 ? this.acceptedFileTypes : this.allowImages ? [...e] : [];
3452
3517
  }
@@ -3496,9 +3561,12 @@ var Wr = class {
3496
3561
  _handleDatasetRemoved(e) {
3497
3562
  this._session.requireSession().removeDataset(e.detail.id);
3498
3563
  }
3564
+ _handleAgentSelected() {
3565
+ this._processInitialPrompt();
3566
+ }
3499
3567
  async _submitViaSession(e, t = {}) {
3500
3568
  let n = this._session.requireSession();
3501
- if (!n.isDatasetRequirementMet()) return !1;
3569
+ if (!n.isDatasetRequirementMet(t.agentId)) return !1;
3502
3570
  this._textareaValue = "";
3503
3571
  try {
3504
3572
  return await n.submit({
@@ -3513,7 +3581,8 @@ var Wr = class {
3513
3581
  let t = e.detail.prompt;
3514
3582
  await this._submitViaSession(t, {
3515
3583
  ...e.detail.attachments?.length ? { attachments: e.detail.attachments } : {},
3516
- ...e.detail.attachmentUrls?.length ? { attachmentUrls: e.detail.attachmentUrls } : {}
3584
+ ...e.detail.attachmentUrls?.length ? { attachmentUrls: e.detail.attachmentUrls } : {},
3585
+ ...e.detail.selectedAgent ? { agentId: e.detail.selectedAgent.id } : {}
3517
3586
  }) || (this._textareaValue = t);
3518
3587
  }
3519
3588
  _handlePromptStopped() {
@@ -3532,10 +3601,15 @@ var Wr = class {
3532
3601
  }
3533
3602
  async _handleEmptyStateSuggestionSelected(e) {
3534
3603
  let { prompt: t, selectedDatasets: n } = e.detail, r = this._session.requireSession();
3535
- n?.length && r.setSelectedDatasets(n), await this._submitViaSession(t);
3604
+ n?.length && r.setSelectedDatasets(n), await this._submitViaSession(t, { agentId: this._pickedAgentId });
3536
3605
  }
3537
3606
  async _processInitialPrompt() {
3538
- !this.initialPrompt || this.initialPrompt === this._lastProcessedInitialPrompt || this._session.requireSession().isDatasetRequirementMet() && (this._lastProcessedInitialPrompt = this.initialPrompt, await this._submitViaSession(this.initialPrompt, { skipUserMessage: !0 }));
3607
+ if (!this.initialPrompt || this.initialPrompt === this._lastProcessedInitialPrompt) return;
3608
+ let e = this._pickedAgentId;
3609
+ this._session.requireSession().isDatasetRequirementMet(e) && (this._lastProcessedInitialPrompt = this.initialPrompt, await this._submitViaSession(this.initialPrompt, {
3610
+ skipUserMessage: !0,
3611
+ agentId: e
3612
+ }));
3539
3613
  }
3540
3614
  connectedCallback() {
3541
3615
  super.connectedCallback(), this._session.connect();
@@ -3570,8 +3644,8 @@ var Wr = class {
3570
3644
  this.initialPrompt && this.initialPrompt !== this._lastProcessedInitialPrompt ? this._processInitialPrompt() : this.initialPrompt || (this._lastProcessedInitialPrompt = null);
3571
3645
  }
3572
3646
  _renderMarkdown(e) {
3573
- let t = String(Q.parse(e, { async: !1 }));
3574
- return pt.sanitize(t, {
3647
+ let t = String(Z.parse(e, { async: !1 }));
3648
+ return O.sanitize(t, {
3575
3649
  ALLOWED_TAGS: /* @__PURE__ */ "p.br.strong.em.b.i.u.s.code.pre.blockquote.hr.ul.ol.li.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td.a".split("."),
3576
3650
  ALLOWED_ATTR: [
3577
3651
  "href",
@@ -3911,6 +3985,7 @@ var Wr = class {
3911
3985
  ?hide-dataset-icons=${this.hideDatasetIcons}
3912
3986
  ?disable-dataset-modification=${this.disableDatasetModification}
3913
3987
  ?hide-selected-datasets=${this.hideSelectedDatasets}
3988
+ ?hide-agents=${this.hideAgents}
3914
3989
  ?disable-column-mentions=${this.disableColumnMentions}
3915
3990
  ?require-dataset=${this.requireDataset}
3916
3991
  ?allow-images=${this.allowImages}
@@ -3927,6 +4002,7 @@ var Wr = class {
3927
4002
  @prompt-stopped=${this._handlePromptStopped}
3928
4003
  @dataset-selected=${this._handleDatasetSelected}
3929
4004
  @dataset-removed=${this._handleDatasetRemoved}
4005
+ @luzmo-agent-selected=${this._handleAgentSelected}
3930
4006
  ></luzmo-ai-interaction-textarea>
3931
4007
  </div>
3932
4008
  `;
@@ -3976,6 +4052,10 @@ a([p({ type: Array })], $.prototype, "messages", void 0), a([p({
3976
4052
  type: Boolean,
3977
4053
  attribute: "hide-selected-datasets"
3978
4054
  })], $.prototype, "hideSelectedDatasets", void 0), a([p({
4055
+ type: Boolean,
4056
+ reflect: !0,
4057
+ attribute: "hide-agents"
4058
+ })], $.prototype, "hideAgents", void 0), a([p({
3979
4059
  type: Boolean,
3980
4060
  attribute: "disable-column-mentions"
3981
4061
  })], $.prototype, "disableColumnMentions", void 0), a([p({
@@ -4037,11 +4117,11 @@ a([p({ type: Array })], $.prototype, "messages", void 0), a([p({
4037
4117
  })], $.prototype, "emptyStateSuggestions", void 0), a([m()], $.prototype, "_textareaValue", void 0), a([m()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), a([m()], $.prototype, "_pendingAssistantMessageAction", void 0);
4038
4118
  //#endregion
4039
4119
  //#region src/components/ai-chat/ai-chat-events.ts
4040
- function Gr(e) {
4120
+ function qr(e) {
4041
4121
  return e.recognized === !0;
4042
4122
  }
4043
4123
  //#endregion
4044
4124
  //#region src/components/ai-chat/index.ts
4045
4125
  customElements.get("luzmo-ai-chat") || customElements.define("luzmo-ai-chat", $);
4046
4126
  //#endregion
4047
- export { Pn as C, Tn as E, jn as S, En as T, Ln as _, Ur as a, Nn as b, Rr as c, er as d, Hn as f, Vn as g, zn as h, Hr as i, Lr as l, Rn as m, $ as n, Br as o, Un as p, Wr as r, zr as s, Gr as t, Xn as u, Fn as v, Dn as w, Mn as x, In as y };
4127
+ export { In as C, Q as E, Nn as S, On as T, zn as _, Gr as a, Fn as b, Br as c, nr as d, Wn as f, Un as g, Vn as h, Wr as i, zr as l, Bn as m, $ as n, Hr as o, Gn as p, Kr as r, Vr as s, qr as t, Qn as u, Ln as v, kn as w, Pn as x, Rn as y };