@luzmo/analytics-components-kit 1.0.5 → 1.0.7

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 (359) hide show
  1. package/README.md +17 -4
  2. package/angular/components/data-fields-select.ts +7 -0
  3. package/angular/components/filter-item.ts +15 -0
  4. package/angular/components/filter-parameter-picker.ts +70 -18
  5. package/angular/components/filters.ts +46 -6
  6. package/angular/esm/components/data-fields-select.d.ts +3 -1
  7. package/angular/esm/components/data-fields-select.js +9 -1
  8. package/angular/esm/components/filter-item.d.ts +7 -1
  9. package/angular/esm/components/filter-item.js +18 -2
  10. package/angular/esm/components/filter-parameter-picker.d.ts +22 -7
  11. package/angular/esm/components/filter-parameter-picker.js +63 -22
  12. package/angular/esm/components/filters.d.ts +21 -7
  13. package/angular/esm/components/filters.js +41 -5
  14. package/angular/package.json +2 -2
  15. package/angular/utils/formula/store/formula-display-store.d.ts +6 -0
  16. package/components/ai-chat/index.cjs +1 -1
  17. package/components/ai-chat/index.js +3 -3
  18. package/components/{ai-chat-BtQaM37y.js → ai-chat-CDSRFmJK.js} +713 -677
  19. package/components/ai-chat-CVNU2mCV.cjs +319 -0
  20. package/components/ai-interaction-textarea/index.cjs +1 -1
  21. package/components/ai-interaction-textarea/index.js +2 -2
  22. package/components/{ai-interaction-textarea-CQBP9-DW.cjs → ai-interaction-textarea-BXDeplJF.cjs} +1 -1
  23. package/components/{ai-interaction-textarea-Bgd3y_cP.js → ai-interaction-textarea-BiMbUGCy.js} +3 -3
  24. package/components/{area-chart-positioning.config-QGEo5sr-.js → area-chart-positioning.config-SLtTkKJB.js} +1 -1
  25. package/components/{area-chart-positioning.config-1YVSxjRa.cjs → area-chart-positioning.config-dwRUFC--.cjs} +1 -1
  26. package/components/{bar-chart-positioning.config-Cs56EAWY.cjs → bar-chart-positioning.config-CcQ2iQdl.cjs} +1 -1
  27. package/components/{bar-chart-positioning.config-KLzBnoCu.js → bar-chart-positioning.config-Ch4sVyJS.js} +1 -1
  28. package/components/{base-DMQUzJ4L.js → base-2sulw8ws.js} +1 -1
  29. package/components/{base-DRFleWoz.cjs → base-DYRe99_q.cjs} +1 -1
  30. package/components/{box-plot-positioning.config-DKGY1Qqb.js → box-plot-positioning.config-Bb7r-Rfl.js} +1 -1
  31. package/components/{box-plot-positioning.config-BpDEb4Uo.cjs → box-plot-positioning.config-Dwtiqho4.cjs} +1 -1
  32. package/components/{bubble-chart-positioning.config-BZsvCSyT.cjs → bubble-chart-positioning.config-Bp_l4Cw1.cjs} +1 -1
  33. package/components/{bubble-chart-positioning.config-CL3mDsC-.js → bubble-chart-positioning.config-Q7mIfpcz.js} +1 -1
  34. package/components/{bullet-chart-positioning.config-DxXEGnbz.js → bullet-chart-positioning.config-B7aXCajU.js} +1 -1
  35. package/components/{bullet-chart-positioning.config-DA-1zmsD.cjs → bullet-chart-positioning.config-sj7E3xEM.cjs} +1 -1
  36. package/components/{choropleth-map-positioning.config-BicHLfN0.js → choropleth-map-positioning.config-CtoJov9H.js} +1 -1
  37. package/components/{choropleth-map-positioning.config-D_1MCD5i.cjs → choropleth-map-positioning.config-DM-iNbgs.cjs} +1 -1
  38. package/components/{circle-pack-chart-positioning.config-a_vo4VFg.js → circle-pack-chart-positioning.config-BgxnBOQT.js} +1 -1
  39. package/components/{circle-pack-chart-positioning.config-oTUkvFFJ.cjs → circle-pack-chart-positioning.config-Cs9xMDpi.cjs} +1 -1
  40. package/components/{circular-gauge-positioning.config-TG1wPyHz.cjs → circular-gauge-positioning.config-Bzulob5F.cjs} +1 -1
  41. package/components/{circular-gauge-positioning.config-BEM85XhO.js → circular-gauge-positioning.config-FEkbw6hK.js} +1 -1
  42. package/components/{column-chart-positioning.config-D1kXKreT.cjs → column-chart-positioning.config-9ho9oUo8.cjs} +1 -1
  43. package/components/{column-chart-positioning.config-x-wEIoTZ.js → column-chart-positioning.config-BeVOSQaJ.js} +1 -1
  44. package/components/{combination-chart-positioning.config-COksdK7F.cjs → combination-chart-positioning.config-CaShl4vv.cjs} +1 -1
  45. package/components/{combination-chart-positioning.config-DLyPa1Im.js → combination-chart-positioning.config-D4VUK54k.js} +1 -1
  46. package/components/{conditional-number-positioning.config-5SBhp4Kh.cjs → conditional-number-positioning.config-BEMjjhdi.cjs} +1 -1
  47. package/components/{conditional-number-positioning.config-6ZQHIgAA.js → conditional-number-positioning.config-C-LpjCJN.js} +1 -1
  48. package/components/data-field/index.cjs +1 -1
  49. package/components/data-field/index.js +2 -2
  50. package/components/{data-field-D1lrRnLX.js → data-field-Dz0XFrep.js} +3 -3
  51. package/components/{data-field-D050EJkx.cjs → data-field-lGJ557o4.cjs} +1 -1
  52. package/components/data-field-level/index.cjs +1 -1
  53. package/components/data-field-level/index.js +2 -2
  54. package/components/{data-field-level-CKlijSjc.cjs → data-field-level-B9r4ucP6.cjs} +1 -1
  55. package/components/{data-field-level-Da8Pwva2.js → data-field-level-DJoidlHN.js} +1 -1
  56. package/components/data-field-panel/index.cjs +1 -1
  57. package/components/data-field-panel/index.js +2 -2
  58. package/components/{data-field-panel-47PGrrIi.cjs → data-field-panel-BzyjbJO5.cjs} +1 -1
  59. package/components/{data-field-panel-CgqJ1bLg.js → data-field-panel-CdeJxZCr.js} +3 -3
  60. package/components/data-fields-select/data-fields-select.d.ts +6 -0
  61. package/components/data-fields-select/index.cjs +1 -1
  62. package/components/data-fields-select/index.js +2 -2
  63. package/components/data-fields-select-BBzzUG2u.cjs +41 -0
  64. package/components/{data-fields-select-B40TXGd7.js → data-fields-select-BRBBrS-x.js} +23 -5
  65. package/components/dataset-icon/index.js +1 -1
  66. package/components/dataset-selector-list/index.cjs +1 -1
  67. package/components/dataset-selector-list/index.js +2 -2
  68. package/components/{dataset-selector-list-C0dheupb.js → dataset-selector-list-DGCh1bvb.js} +1 -1
  69. package/components/{dataset-selector-list-CKQ7OgMN.cjs → dataset-selector-list-xF3yKGan.cjs} +1 -1
  70. package/components/dataset-selector-row/index.cjs +1 -1
  71. package/components/dataset-selector-row/index.js +2 -2
  72. package/components/{dataset-selector-row-DP6QUWYs.js → dataset-selector-row-BbnjxfIz.js} +1 -1
  73. package/components/{dataset-selector-row-_FZPTBE1.cjs → dataset-selector-row-fmrY3y86.cjs} +1 -1
  74. package/components/de-BzcAVqyW.cjs +20 -0
  75. package/components/{de-CPcJgwTx.js → de-CRrCVuH7.js} +15 -0
  76. package/components/display-settings/index.cjs +1 -1
  77. package/components/display-settings/index.js +2 -2
  78. package/components/{display-settings-B-eamVdN.js → display-settings-C9OQ4Eou.js} +3 -3
  79. package/components/display-settings-binning/index.cjs +1 -1
  80. package/components/display-settings-binning/index.js +2 -2
  81. package/components/{display-settings-binning-BGtp0Wvl.js → display-settings-binning-B8E2H5cY.js} +2 -2
  82. package/components/{display-settings-binning-Cs8MS7BY.cjs → display-settings-binning-BBNL97l9.cjs} +1 -1
  83. package/components/display-settings-datetime/index.cjs +1 -1
  84. package/components/display-settings-datetime/index.js +2 -2
  85. package/components/{display-settings-datetime-CbTnG486.js → display-settings-datetime-BBzvzwl5.js} +2 -2
  86. package/components/{display-settings-datetime-q20qbrOL.cjs → display-settings-datetime-czjk5Msv.cjs} +1 -1
  87. package/components/display-settings-eSQCidqh.cjs +140 -0
  88. package/components/display-settings-grand-totals/index.cjs +1 -1
  89. package/components/display-settings-grand-totals/index.js +2 -2
  90. package/components/{display-settings-grand-totals-BDeeC6-h.js → display-settings-grand-totals-CF01m8x-.js} +2 -2
  91. package/components/{display-settings-grand-totals-DdEXs_mA.cjs → display-settings-grand-totals-RwMnGwFZ.cjs} +1 -1
  92. package/components/display-settings-numeric/index.cjs +1 -1
  93. package/components/display-settings-numeric/index.js +2 -2
  94. package/components/{display-settings-numeric-C5FlahN_.js → display-settings-numeric-BcpwYX16.js} +2 -2
  95. package/components/{display-settings-numeric-PtcxP80Z.cjs → display-settings-numeric-C4X7oOEU.cjs} +1 -1
  96. package/components/display-settings-period-over-period/index.cjs +1 -1
  97. package/components/display-settings-period-over-period/index.js +2 -2
  98. package/components/{display-settings-period-over-period-CUlsSQZv.js → display-settings-period-over-period-B8UNYZ0I.js} +2 -2
  99. package/components/{display-settings-period-over-period-Csv7Kwri.cjs → display-settings-period-over-period-BG9YAcCw.cjs} +1 -1
  100. package/components/{donut-chart-positioning.config-EudGY45O.js → donut-chart-positioning.config-CaADC7Qr.js} +1 -1
  101. package/components/{donut-chart-positioning.config-m_uVKoNn.cjs → donut-chart-positioning.config-Dfws3ojS.cjs} +1 -1
  102. package/components/{es-fXPjX3vY.js → es-BIgv-ijQ.js} +15 -0
  103. package/components/es-mPmtD7j4.cjs +20 -0
  104. package/components/{evolution-number-positioning.config-BcLsEydB.js → evolution-number-positioning.config-C-OV1wpL.js} +1 -1
  105. package/components/{evolution-number-positioning.config-CJii0q3V.cjs → evolution-number-positioning.config-CI_2m2Sr.cjs} +1 -1
  106. package/components/filter-expression-picker/index.cjs +1 -1
  107. package/components/filter-expression-picker/index.js +2 -2
  108. package/components/{filter-expression-picker-nW1Hff7C.js → filter-expression-picker-CH2Fna8C.js} +1 -1
  109. package/components/{filter-expression-picker-D28THjzU.cjs → filter-expression-picker-_mfcXZ-n.cjs} +1 -1
  110. package/components/filter-item/filter-item.d.ts +15 -0
  111. package/components/filter-item/index.cjs +1 -1
  112. package/components/filter-item/index.js +2 -2
  113. package/components/filter-item-5HCSM9cu.cjs +71 -0
  114. package/components/{filter-item-BoYKU9tK.js → filter-item-CL3S9HOx.js} +100 -41
  115. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +71 -9
  116. package/components/filter-parameter-picker/filter-parameter-picker.helpers.d.ts +8 -0
  117. package/components/filter-parameter-picker/index.cjs +1 -3
  118. package/components/filter-parameter-picker/index.d.ts +2 -0
  119. package/components/filter-parameter-picker/index.js +3 -33
  120. package/components/filter-parameter-picker/types.d.ts +4 -0
  121. package/components/filter-parameter-picker-CU48aEOS.js +363 -0
  122. package/components/filter-parameter-picker-CxbAY5hy.cjs +123 -0
  123. package/components/filter-value-picker/filter-value-picker.d.ts +1 -0
  124. package/components/filter-value-picker/index.cjs +1 -1
  125. package/components/filter-value-picker/index.js +2 -2
  126. package/components/{filter-value-picker-1kMJ9slB.js → filter-value-picker-CD8DjcHo.js} +5 -5
  127. package/components/{filter-value-picker-D08bAAKt.cjs → filter-value-picker-CRrUhngj.cjs} +1 -1
  128. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +2 -0
  129. package/components/filter-value-picker-datetime/index.cjs +1 -1
  130. package/components/filter-value-picker-datetime/index.js +2 -2
  131. package/components/{filter-value-picker-datetime-Cnwlipah.js → filter-value-picker-datetime-DS7IK9aN.js} +2 -2
  132. package/components/{filter-value-picker-datetime-OIgFSdU2.cjs → filter-value-picker-datetime-dXaHpCRX.cjs} +1 -1
  133. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +2 -0
  134. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  135. package/components/filter-value-picker-hierarchy/index.js +2 -2
  136. package/components/{filter-value-picker-hierarchy-DdMLbCO3.js → filter-value-picker-hierarchy-k0T56CvH.js} +3 -3
  137. package/components/{filter-value-picker-hierarchy-BGgHIji-.cjs → filter-value-picker-hierarchy-kwnEzxIk.cjs} +1 -1
  138. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +1 -0
  139. package/components/filter-value-picker-numeric/index.cjs +1 -1
  140. package/components/filter-value-picker-numeric/index.js +2 -2
  141. package/components/{filter-value-picker-numeric-BL2gD2ED.cjs → filter-value-picker-numeric-BVei4Vlc.cjs} +1 -1
  142. package/components/{filter-value-picker-numeric-BqrsENh6.js → filter-value-picker-numeric-BaQe4r82.js} +2 -2
  143. package/components/filters/filters.d.ts +38 -4
  144. package/components/filters/index.cjs +1 -1
  145. package/components/filters/index.d.ts +4 -1
  146. package/components/filters/index.js +3 -3
  147. package/components/filters/transformations/clean-filters.d.ts +37 -0
  148. package/components/filters/transformations/filter-format.d.ts +54 -0
  149. package/components/filters/transformations/transform-filters.d.ts +27 -12
  150. package/components/filters/types.d.ts +48 -3
  151. package/components/filters-B70hF2NT.js +742 -0
  152. package/components/filters-ms2gFstA.cjs +153 -0
  153. package/components/formula/index.cjs +1 -1
  154. package/components/formula/index.js +2 -2
  155. package/components/{formula-CNzBOTRQ.js → formula-DdgD312W.js} +2 -2
  156. package/components/{formula-codemirror-pnijOvXU.js → formula-codemirror-D3Z1Qa0J.js} +4 -4
  157. package/components/{formula-codemirror-D1hgPIW_.cjs → formula-codemirror-GoFCSp6r.cjs} +1 -1
  158. package/components/{formula-display-store-BBMmHCRp.js → formula-display-store-bPGDv_xk.js} +10 -7
  159. package/components/formula-display-store-eE3zaCyB.cjs +20 -0
  160. package/components/formula-editor/index.cjs +1 -1
  161. package/components/formula-editor/index.js +4 -4
  162. package/components/{formula-editor-Uejdzkm6.cjs → formula-editor-8wWzGGJr.cjs} +1 -1
  163. package/components/{formula-editor-DvDB6JYI.js → formula-editor-BnWiiFr5.js} +5 -5
  164. package/components/formula-field/index.cjs +1 -1
  165. package/components/formula-field/index.js +2 -2
  166. package/components/{formula-field-o_zZQACN.js → formula-field-DlEgUu58.js} +1 -1
  167. package/components/{formula-field-CNyKz9wY.cjs → formula-field-IHf6I8mL.cjs} +1 -1
  168. package/components/{formula-DeRjtboJ.cjs → formula-glPlLx_5.cjs} +1 -1
  169. package/components/{formula-input-base-DlVNZBUA.js → formula-input-base-7I069pOJ.js} +1 -1
  170. package/components/{formula-input-base-fTF1KXpl.cjs → formula-input-base-D5yx7RYX.cjs} +1 -1
  171. package/components/fr-BHUhOl6R.cjs +20 -0
  172. package/components/{fr-B50vb6LP.js → fr-CI9fC-NM.js} +15 -0
  173. package/components/{funnel-chart-positioning.config-B_C8nr1y.js → funnel-chart-positioning.config-CNEeOwuT.js} +1 -1
  174. package/components/{funnel-chart-positioning.config-DhrMsuyt.cjs → funnel-chart-positioning.config-Cz8gQRh_.cjs} +1 -1
  175. package/components/{get-dataset-name-DrTVBElb.cjs → get-dataset-name-Bae0I2_J.cjs} +1 -1
  176. package/components/{get-dataset-name-DYLJB67F.js → get-dataset-name-OJK38mEs.js} +1 -1
  177. package/components/{groupings-BPlu4GFe.cjs → groupings-B0qMZHSd.cjs} +1 -1
  178. package/components/{groupings-DAj2iFeA.js → groupings-BZJTnpwR.js} +1 -1
  179. package/components/{heat-map-positioning.config-Bya2_TR8.cjs → heat-map-positioning.config-CEH6qyrN.cjs} +1 -1
  180. package/components/{heat-map-positioning.config-Cxembqle.js → heat-map-positioning.config-D-Ba4Ts_.js} +1 -1
  181. package/components/{heat-table-positioning.config-CNeTnuHy.js → heat-table-positioning.config-DCnowqOc.js} +1 -1
  182. package/components/{heat-table-positioning.config-CYZr5ksc.cjs → heat-table-positioning.config-DWNETZMx.cjs} +1 -1
  183. package/components/{hexbin-map-positioning.config-Dfdgub0y.js → hexbin-map-positioning.config-Br0pjvMN.js} +1 -1
  184. package/components/{hexbin-map-positioning.config-bXZEY4nP.cjs → hexbin-map-positioning.config-DoiUVZ8h.cjs} +1 -1
  185. package/components/index.cjs +1 -1
  186. package/components/index.js +64 -63
  187. package/components/interactive-viz-item/index.cjs +1 -1
  188. package/components/interactive-viz-item/index.js +2 -2
  189. package/components/{interactive-viz-item-D-hR2G5x.cjs → interactive-viz-item-DZoRqeJW.cjs} +1 -1
  190. package/components/{interactive-viz-item-C3fzZq7j.js → interactive-viz-item-Dogksvpq.js} +5 -5
  191. package/components/item-grid/index.cjs +1 -1
  192. package/components/item-grid/index.js +2 -2
  193. package/components/{item-grid-BruAZOla.cjs → item-grid-VPRvzGCa.cjs} +1 -1
  194. package/components/{item-grid-cyMiRw7P.js → item-grid-ZQpp1brq.js} +1 -1
  195. package/components/item-option/index.cjs +1 -1
  196. package/components/item-option/index.js +2 -2
  197. package/components/{item-option-CZb01VJb.js → item-option-B9tALelF.js} +1 -1
  198. package/components/{item-option-BclNWwdZ.cjs → item-option-BRgOBMM0.cjs} +1 -1
  199. package/components/item-option-action-button-group/index.cjs +1 -1
  200. package/components/item-option-action-button-group/index.js +2 -2
  201. package/components/{item-option-action-button-group-AkMaJHuv.cjs → item-option-action-button-group-BYE7i8Zd.cjs} +1 -1
  202. package/components/{item-option-action-button-group-HfUtaTi9.js → item-option-action-button-group-WrHKP761.js} +1 -1
  203. package/components/{item-option-base-CZegYACf.cjs → item-option-base-CTBIeARi.cjs} +1 -1
  204. package/components/{item-option-base-DlHZAfWZ.js → item-option-base-CuxvyS-a.js} +1 -1
  205. package/components/item-option-color-palette-picker/index.cjs +1 -1
  206. package/components/item-option-color-palette-picker/index.js +2 -2
  207. package/components/{item-option-color-palette-picker-B336qQRk.cjs → item-option-color-palette-picker-CyailqDd.cjs} +1 -1
  208. package/components/{item-option-color-palette-picker-Dt4z0c4W.js → item-option-color-palette-picker-eYAyoXM1.js} +1 -1
  209. package/components/item-option-color-picker/index.cjs +1 -1
  210. package/components/item-option-color-picker/index.js +2 -2
  211. package/components/{item-option-color-picker-BRO416_T.js → item-option-color-picker-D_x6FgZy.js} +1 -1
  212. package/components/{item-option-color-picker-Hfu2fhRF.cjs → item-option-color-picker-DsfZKPDo.cjs} +1 -1
  213. package/components/item-option-color-range/index.cjs +1 -1
  214. package/components/item-option-color-range/index.js +2 -2
  215. package/components/{item-option-color-range-DgalNZ9b.js → item-option-color-range-CHSbql1w.js} +1 -1
  216. package/components/{item-option-color-range-DWoaz57E.cjs → item-option-color-range-tAMMKg6y.cjs} +1 -1
  217. package/components/item-option-multi-language-field/index.cjs +1 -1
  218. package/components/item-option-multi-language-field/index.js +2 -2
  219. package/components/{item-option-multi-language-field-BvJXIFgu.js → item-option-multi-language-field-D51cJ4BM.js} +1 -1
  220. package/components/{item-option-multi-language-field-IQP6fbgB.cjs → item-option-multi-language-field-DjWm-jWC.cjs} +1 -1
  221. package/components/item-option-number-field/index.cjs +1 -1
  222. package/components/item-option-number-field/index.js +2 -2
  223. package/components/{item-option-number-field-B07NhNSm.cjs → item-option-number-field-Dep43Ym5.cjs} +1 -1
  224. package/components/{item-option-number-field-CvGknDpu.js → item-option-number-field-Df56sivV.js} +1 -1
  225. package/components/item-option-panel/index.cjs +1 -1
  226. package/components/item-option-panel/index.js +2 -2
  227. package/components/{item-option-panel-RYdx8Hfk.js → item-option-panel-BYCfnDeP.js} +3 -3
  228. package/components/{item-option-panel-BWP9E8cW.cjs → item-option-panel-ClDspg51.cjs} +1 -1
  229. package/components/item-option-picker/index.cjs +1 -1
  230. package/components/item-option-picker/index.js +2 -2
  231. package/components/{item-option-picker-DM1pU3w9.js → item-option-picker-BCsB7psT.js} +1 -1
  232. package/components/{item-option-picker-C7SZfnLP.cjs → item-option-picker-CBfFgSKs.cjs} +1 -1
  233. package/components/item-option-position-picker/index.cjs +1 -1
  234. package/components/item-option-position-picker/index.js +2 -2
  235. package/components/{item-option-position-picker-BuDvx3SX.js → item-option-position-picker-CXJGmmWF.js} +1 -1
  236. package/components/{item-option-position-picker-M9CBH9NE.cjs → item-option-position-picker-CYoOkH1m.cjs} +1 -1
  237. package/components/item-option-positions-number-field/index.cjs +1 -1
  238. package/components/item-option-positions-number-field/index.js +2 -2
  239. package/components/{item-option-positions-number-field-C4zW5-Hc.cjs → item-option-positions-number-field-CNUCVm78.cjs} +1 -1
  240. package/components/{item-option-positions-number-field-RN5AG-Ic.js → item-option-positions-number-field-CkfSHCFO.js} +1 -1
  241. package/components/item-option-radio-button-group/index.cjs +1 -1
  242. package/components/item-option-radio-button-group/index.js +2 -2
  243. package/components/{item-option-radio-button-group-Ce780UyR.js → item-option-radio-button-group-CSyh4eS2.js} +1 -1
  244. package/components/{item-option-radio-button-group-DRiwqorh.cjs → item-option-radio-button-group-ZIvbpJf9.cjs} +1 -1
  245. package/components/item-option-slider/index.cjs +1 -1
  246. package/components/item-option-slider/index.js +2 -2
  247. package/components/item-option-slider/item-option-slider.d.ts +5 -0
  248. package/components/{item-option-slider-BUdWMAzT.js → item-option-slider-CTt5aYbb.js} +31 -16
  249. package/components/{item-option-slider-CycHQFnr.cjs → item-option-slider-CaxIGDWN.cjs} +3 -3
  250. package/components/item-option-switch/index.cjs +1 -1
  251. package/components/item-option-switch/index.js +2 -2
  252. package/components/{item-option-switch-CvcZSytb.js → item-option-switch-B91r65eW.js} +1 -1
  253. package/components/{item-option-switch-CM5R8wO_.cjs → item-option-switch-wEx5JkSe.cjs} +1 -1
  254. package/components/item-option-text-field/index.cjs +1 -1
  255. package/components/item-option-text-field/index.js +2 -2
  256. package/components/{item-option-text-field-BZjOilSu.cjs → item-option-text-field-BLcYkH-j.cjs} +1 -1
  257. package/components/{item-option-text-field-CyuYUITv.js → item-option-text-field-BvSCGhuH.js} +1 -1
  258. package/components/item-slot-drop/index.cjs +1 -1
  259. package/components/item-slot-drop/index.js +2 -2
  260. package/components/{item-slot-drop-C6DO5mPk.js → item-slot-drop-Box1wnvM.js} +5 -5
  261. package/components/{item-slot-drop-CrzFRobc.cjs → item-slot-drop-n-lD8Zyh.cjs} +1 -1
  262. package/components/item-slot-drop-panel/index.cjs +1 -1
  263. package/components/item-slot-drop-panel/index.js +2 -2
  264. package/components/{item-slot-drop-panel-DvmPk1pJ.js → item-slot-drop-panel-KtZKw0Ly.js} +39 -39
  265. package/components/{item-slot-drop-panel-ChazcNSe.cjs → item-slot-drop-panel-sCkQ0dUU.cjs} +1 -1
  266. package/components/item-slot-picker/index.cjs +1 -1
  267. package/components/item-slot-picker/index.js +2 -2
  268. package/components/{item-slot-picker-CmG71mGy.js → item-slot-picker-Cm8o4A00.js} +6 -6
  269. package/components/{item-slot-picker-DQkG3Lt7.cjs → item-slot-picker-DKPE2NQn.cjs} +1 -1
  270. package/components/item-slot-picker-panel/index.cjs +1 -1
  271. package/components/item-slot-picker-panel/index.js +2 -2
  272. package/components/{item-slot-picker-panel-Bi2jXvQA.cjs → item-slot-picker-panel-DK5jRBYs.cjs} +1 -1
  273. package/components/{item-slot-picker-panel-DmGYI5YI.js → item-slot-picker-panel-DOHi_8UO.js} +3 -3
  274. package/components/{line-chart-positioning.config-Cqnfz4Lc.cjs → line-chart-positioning.config-C05IZ4Jj.cjs} +1 -1
  275. package/components/{line-chart-positioning.config-CFHFq0wp.js → line-chart-positioning.config-DQfyOkWV.js} +1 -1
  276. package/components/{localized-mixin-CUuRZu9t.cjs → localized-mixin-BForHr3t.cjs} +1 -1
  277. package/components/{localized-mixin-B4fDdsF0.js → localized-mixin-D-vXCJuU.js} +1 -1
  278. package/components/{marker-map-positioning.config-x3KUsgzD.js → marker-map-positioning.config-CD7n0uLB.js} +1 -1
  279. package/components/{marker-map-positioning.config-BM-ZrmE9.cjs → marker-map-positioning.config-DOhXf-CR.cjs} +1 -1
  280. package/components/{nl-Do6FfV7U.js → nl-HLnZHvTS.js} +15 -0
  281. package/components/nl-NxeHJ8X8.cjs +20 -0
  282. package/components/{ohlc-chart-positioning.config-C-vx6lt-.js → ohlc-chart-positioning.config-Bl-ckdlQ.js} +1 -1
  283. package/components/{ohlc-chart-positioning.config-SIhJhFel.cjs → ohlc-chart-positioning.config-CDf77OgH.cjs} +1 -1
  284. package/components/{parallel-coordinates-plot-positioning.config-Br1OGTEZ.cjs → parallel-coordinates-plot-positioning.config-DfsKsUdv.cjs} +1 -1
  285. package/components/{parallel-coordinates-plot-positioning.config-BaofZgit.js → parallel-coordinates-plot-positioning.config-Tbzzr5L6.js} +1 -1
  286. package/components/{pivot-table-positioning.config-BaBkuXV0.cjs → pivot-table-positioning.config-DwuKN2xz.cjs} +1 -1
  287. package/components/{pivot-table-positioning.config-DeeS1MaO.js → pivot-table-positioning.config-_YDPeFQz.js} +1 -1
  288. package/components/{pyramid-chart-positioning.config-g55mkotb.cjs → pyramid-chart-positioning.config-7AJy2_zR.cjs} +1 -1
  289. package/components/{pyramid-chart-positioning.config-D14NnyH1.js → pyramid-chart-positioning.config-Btm_8m46.js} +1 -1
  290. package/components/{radar-chart-positioning.config-CWGfQ7-j.cjs → radar-chart-positioning.config-7Kx_uKbW.cjs} +1 -1
  291. package/components/{radar-chart-positioning.config-C9fiYOnB.js → radar-chart-positioning.config-DWziVqMW.js} +1 -1
  292. package/components/{route-map-positioning.config-Cd4azpuW.js → route-map-positioning.config-C4-2zLGp.js} +1 -1
  293. package/components/{route-map-positioning.config-Dswq4pH_.cjs → route-map-positioning.config-DDgEAW4k.cjs} +1 -1
  294. package/components/{sankey-diagram-positioning.config-CAHzdKBq.cjs → sankey-diagram-positioning.config-BxVJaOKN.cjs} +1 -1
  295. package/components/{sankey-diagram-positioning.config-CzGCvTeX.js → sankey-diagram-positioning.config-DQcUg8Cg.js} +1 -1
  296. package/components/{scatter-plot-positioning.config-CrVJZ-X9.cjs → scatter-plot-positioning.config-D3xI_5P8.cjs} +1 -1
  297. package/components/{scatter-plot-positioning.config-C7nu7quv.js → scatter-plot-positioning.config-DOgeShUF.js} +1 -1
  298. package/components/{set-locale-DBVSKk_b.js → set-locale-D9gR8t-s.js} +4 -4
  299. package/components/{set-locale-1r0lDa7J.cjs → set-locale-MQpiifTB.cjs} +1 -1
  300. package/components/{slicer-filter-positioning.config-7sucz3_y.js → slicer-filter-positioning.config-CiHfPrM5.js} +1 -1
  301. package/components/{slicer-filter-positioning.config-D9Tehydc.cjs → slicer-filter-positioning.config-bN36DdLc.cjs} +1 -1
  302. package/components/slot-menu/index.cjs +1 -1
  303. package/components/slot-menu/index.js +2 -2
  304. package/components/{slot-menu-AavTGkLk.cjs → slot-menu-K5QiEu6o.cjs} +1 -1
  305. package/components/{slot-menu-Dz-O1ypQ.js → slot-menu-Qy35BZZ_.js} +3 -3
  306. package/components/slot-menu-list/index.cjs +1 -1
  307. package/components/slot-menu-list/index.js +2 -2
  308. package/components/{slot-menu-list-BegM0w8C.js → slot-menu-list-BKMbIFg1.js} +1 -1
  309. package/components/{slot-menu-list-Cahst0TY.cjs → slot-menu-list-DmQe7882.cjs} +1 -1
  310. package/components/{speedometer-chart-positioning.config-DiDSe44G.js → speedometer-chart-positioning.config-B7M91sKN.js} +1 -1
  311. package/components/{speedometer-chart-positioning.config-CZgXkEsG.cjs → speedometer-chart-positioning.config-Ce70l0Ei.cjs} +1 -1
  312. package/components/{spike-map-positioning.config-RExJASrJ.cjs → spike-map-positioning.config-D3wIf0RU.cjs} +1 -1
  313. package/components/{spike-map-positioning.config-W-xJbchu.js → spike-map-positioning.config-Qf4LOPvB.js} +1 -1
  314. package/components/{strip-plot-positioning.config-C70pTRqg.cjs → strip-plot-positioning.config-BIoncLjm.cjs} +1 -1
  315. package/components/{strip-plot-positioning.config-DsKb9ton.js → strip-plot-positioning.config-MbfBVHf8.js} +1 -1
  316. package/components/{sunburst-chart-positioning.config-BAhEnZtE.js → sunburst-chart-positioning.config-CqyXZPxE.js} +1 -1
  317. package/components/{sunburst-chart-positioning.config-BHvaDZCC.cjs → sunburst-chart-positioning.config-zqPLL8yF.cjs} +1 -1
  318. package/components/{symbol-map-positioning.config-B2RZQPND.cjs → symbol-map-positioning.config-CQ4Vxu96.cjs} +1 -1
  319. package/components/{symbol-map-positioning.config-DNPiG975.js → symbol-map-positioning.config-plXDTBA3.js} +1 -1
  320. package/components/{treemap-chart-positioning.config-C0LbkC6B.js → treemap-chart-positioning.config-BTGBN1f9.js} +1 -1
  321. package/components/{treemap-chart-positioning.config-CIYguC9V.cjs → treemap-chart-positioning.config-CSZXzuT5.cjs} +1 -1
  322. package/components/utils/base.cjs +1 -1
  323. package/components/utils/base.js +2 -2
  324. package/components/{utils-Cx4X0PBr.cjs → utils-BDvDwAn7.cjs} +1 -1
  325. package/components/{utils-C8ATDm66.js → utils-Z9xbTTWG.js} +1 -1
  326. package/components/utils.cjs +1 -1
  327. package/components/utils.js +2 -2
  328. package/components/{venn-diagram-positioning.config-CGmfYuoj.cjs → venn-diagram-positioning.config-C4vcZDtW.cjs} +1 -1
  329. package/components/{venn-diagram-positioning.config-CPUT2LXS.js → venn-diagram-positioning.config-fPvrjtfX.js} +1 -1
  330. package/components/viz-item-menu/index.cjs +1 -1
  331. package/components/viz-item-menu/index.js +2 -2
  332. package/components/{viz-item-menu-BKXdr3_Q.cjs → viz-item-menu-DxA295eM.cjs} +1 -1
  333. package/components/{viz-item-menu-XoCSn7z_.js → viz-item-menu-vckPQBdf.js} +1 -1
  334. package/components/{wordcloud-chart-positioning.config-roHRUT_m.cjs → wordcloud-chart-positioning.config-Cf1ErL-B.cjs} +1 -1
  335. package/components/{wordcloud-chart-positioning.config-CqCOWKL4.js → wordcloud-chart-positioning.config-ChUx_Ahc.js} +1 -1
  336. package/custom-elements.json +1325 -122
  337. package/index.d.ts +1 -0
  338. package/package.json +5 -5
  339. package/react/components/filter-parameter-picker.component.ts +15 -4
  340. package/react/components/filters.component.ts +9 -3
  341. package/react/esm/components/filter-parameter-picker.component.d.ts +11 -3
  342. package/react/esm/components/filter-parameter-picker.component.js +9 -1
  343. package/react/esm/components/filters.component.d.ts +10 -2
  344. package/react/esm/components/filters.component.js +6 -2
  345. package/react/luzmo-stub.d.ts +2 -1
  346. package/react/package.json +2 -2
  347. package/storybook/register-components.d.ts +18 -13
  348. package/utils/formula/store/formula-display-store.d.ts +6 -0
  349. package/components/ai-chat-CBLWbv9C.cjs +0 -319
  350. package/components/data-fields-select-CQVqxMCS.cjs +0 -41
  351. package/components/de-CFFG1QN7.cjs +0 -20
  352. package/components/display-settings-1AdcENcv.cjs +0 -140
  353. package/components/es-Bd7rtLnM.cjs +0 -20
  354. package/components/filter-item-BirgEXGE.cjs +0 -58
  355. package/components/filters-BLss6wBx.js +0 -407
  356. package/components/filters-rjc5xsF_.cjs +0 -150
  357. package/components/formula-display-store-Dn7r5kK8.cjs +0 -20
  358. package/components/fr-kmzf1vls.cjs +0 -20
  359. package/components/nl-FcPtgtcL.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-Bgd3y_cP.js";
21
- import { i } from "./base-DMQUzJ4L.js";
20
+ import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-BiMbUGCy.js";
21
+ import { i } from "./base-2sulw8ws.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";
@@ -28,20 +28,20 @@ import "@luzmo/lucero/icon";
28
28
  import "@luzmo/lucero/overlay";
29
29
  import "@luzmo/lucero/popover";
30
30
  import "@luzmo/lucero/progress-steps";
31
- import { html as u, nothing as d, unsafeCSS as ee } from "lit";
32
- import { property as f, state as p } from "lit/decorators.js";
33
- import { unsafeHTML as te } from "lit/directives/unsafe-html.js";
31
+ import { html as u, nothing as d, unsafeCSS as f } from "lit";
32
+ import { property as p, state as m } from "lit/decorators.js";
33
+ 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
- function m(e, t) {
36
+ function h(e, t) {
37
37
  (t == null || t > e.length) && (t = e.length);
38
38
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
39
39
  return r;
40
40
  }
41
- function ne(e) {
41
+ function g(e) {
42
42
  if (Array.isArray(e)) return e;
43
43
  }
44
- function re(e, t) {
44
+ function te(e, t) {
45
45
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
46
46
  if (n != null) {
47
47
  var r, i, a, o, s = [], c = !0, l = !1;
@@ -59,23 +59,23 @@ function re(e, t) {
59
59
  return s;
60
60
  }
61
61
  }
62
- function h() {
62
+ function ne() {
63
63
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
64
  }
65
- function g(e, t) {
66
- return ne(e) || re(e, t) || _(e, t) || h();
65
+ function re(e, t) {
66
+ return g(e) || te(e, t) || ie(e, t) || ne();
67
67
  }
68
- function _(e, t) {
68
+ function ie(e, t) {
69
69
  if (e) {
70
- if (typeof e == "string") return m(e, t);
70
+ if (typeof e == "string") return h(e, t);
71
71
  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) ? m(e, t) : void 0;
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;
73
73
  }
74
74
  }
75
- var ie = Object.entries, v = Object.setPrototypeOf, ae = Object.isFrozen, oe = Object.getPrototypeOf, se = Object.getOwnPropertyDescriptor, y = Object.freeze, b = Object.seal, ce = Object.create, le = typeof Reflect < "u" && Reflect, ue = le.apply, de = le.construct;
76
- y ||= function(e) {
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) {
77
77
  return e;
78
- }, b ||= function(e) {
78
+ }, y ||= function(e) {
79
79
  return e;
80
80
  }, ue ||= function(e, t) {
81
81
  var n = [...arguments].slice(2);
@@ -83,43 +83,43 @@ y ||= function(e) {
83
83
  }, de ||= function(e) {
84
84
  return new e(...[...arguments].slice(1));
85
85
  };
86
- var fe = C(Array.prototype.forEach), pe = C(Array.prototype.lastIndexOf), me = C(Array.prototype.pop), he = C(Array.prototype.push), ge = C(Array.prototype.splice), _e = Array.isArray, ve = C(String.prototype.toLowerCase), ye = C(String.prototype.toString), be = C(String.prototype.match), xe = C(String.prototype.replace), Se = C(String.prototype.indexOf), Ce = C(String.prototype.trim), we = C(Number.prototype.toString), Te = C(Boolean.prototype.toString), Ee = typeof BigInt > "u" ? null : C(BigInt.prototype.toString), De = typeof Symbol > "u" ? null : C(Symbol.prototype.toString), x = C(Object.prototype.hasOwnProperty), Oe = C(Object.prototype.toString), S = C(RegExp.prototype.test), ke = Ae(TypeError);
87
- function C(e) {
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) {
88
88
  return function(t) {
89
89
  t instanceof RegExp && (t.lastIndex = 0);
90
90
  var n = [...arguments].slice(1);
91
91
  return ue(e, t, n);
92
92
  };
93
93
  }
94
- function Ae(e) {
94
+ function ke(e) {
95
95
  return function() {
96
96
  return de(e, [...arguments]);
97
97
  };
98
98
  }
99
- function w(e, t) {
99
+ function T(e, t) {
100
100
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
101
- if (v && v(e, null), !_e(t)) return e;
101
+ if (oe && oe(e, null), !_e(t)) return e;
102
102
  let r = t.length;
103
103
  for (; r--;) {
104
104
  let i = t[r];
105
105
  if (typeof i == "string") {
106
106
  let e = n(i);
107
- e !== i && (ae(t) || (t[r] = e), i = e);
107
+ e !== i && (se(t) || (t[r] = e), i = e);
108
108
  }
109
109
  e[i] = !0;
110
110
  }
111
111
  return e;
112
112
  }
113
- function T(e) {
114
- for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
113
+ function Ae(e) {
114
+ for (let t = 0; t < e.length; t++) S(e, t) || (e[t] = null);
115
115
  return e;
116
116
  }
117
117
  function E(e) {
118
- let t = ce(null);
119
- for (let r of ie(e)) {
120
- var n = g(r, 2);
118
+ let t = le(null);
119
+ for (let r of ae(e)) {
120
+ var n = re(r, 2);
121
121
  let i = n[0], a = n[1];
122
- x(e, i) && (_e(a) ? t[i] = T(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = E(a) : t[i] = a);
122
+ S(e, i) && (_e(a) ? t[i] = Ae(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = E(a) : t[i] = a);
123
123
  }
124
124
  return t;
125
125
  }
@@ -128,30 +128,30 @@ function je(e) {
128
128
  case "string": return e;
129
129
  case "number": return we(e);
130
130
  case "boolean": return Te(e);
131
- case "bigint": return Ee ? Ee(e) : "0";
132
- case "symbol": return De ? De(e) : "Symbol()";
133
- case "undefined": return Oe(e);
131
+ case "bigint": return x ? x(e) : "0";
132
+ case "symbol": return Ee ? Ee(e) : "Symbol()";
133
+ case "undefined": return De(e);
134
134
  case "function":
135
135
  case "object": {
136
- if (e === null) return Oe(e);
136
+ if (e === null) return De(e);
137
137
  let t = e, n = D(t, "toString");
138
138
  if (typeof n == "function") {
139
139
  let e = n(t);
140
- return typeof e == "string" ? e : Oe(e);
140
+ return typeof e == "string" ? e : De(e);
141
141
  }
142
- return Oe(e);
142
+ return De(e);
143
143
  }
144
- default: return Oe(e);
144
+ default: return De(e);
145
145
  }
146
146
  }
147
147
  function D(e, t) {
148
148
  for (; e !== null;) {
149
- let n = se(e, t);
149
+ let n = _(e, t);
150
150
  if (n) {
151
- if (n.get) return C(n.get);
152
- if (typeof n.value == "function") return C(n.value);
151
+ if (n.get) return w(n.get);
152
+ if (typeof n.value == "function") return w(n.value);
153
153
  }
154
- e = oe(e);
154
+ e = ce(e);
155
155
  }
156
156
  function n() {
157
157
  return null;
@@ -160,12 +160,12 @@ function D(e, t) {
160
160
  }
161
161
  function Me(e) {
162
162
  try {
163
- return S(e, ""), !0;
163
+ return C(e, ""), !0;
164
164
  } catch {
165
165
  return !1;
166
166
  }
167
167
  }
168
- var Ne = 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(".")), Pe = 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(".")), Fe = y([
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([
169
169
  "feBlend",
170
170
  "feColorMatrix",
171
171
  "feComponentTransfer",
@@ -191,7 +191,7 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
191
191
  "feSpotLight",
192
192
  "feTile",
193
193
  "feTurbulence"
194
- ]), Ie = y([
194
+ ]), Ie = v([
195
195
  "animate",
196
196
  "color-profile",
197
197
  "cursor",
@@ -214,7 +214,7 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
214
214
  "solidcolor",
215
215
  "unknown",
216
216
  "use"
217
- ]), Le = 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(".")), Re = y([
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([
218
218
  "maction",
219
219
  "maligngroup",
220
220
  "malignmark",
@@ -230,13 +230,13 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
230
230
  "annotation-xml",
231
231
  "mprescripts",
232
232
  "none"
233
- ]), ze = y(["#text"]), Be = 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(".")), Ve = 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.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.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 = 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(".")), Ue = y([
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([
234
234
  "xlink:href",
235
235
  "xml:id",
236
236
  "xlink:title",
237
237
  "xml:space",
238
238
  "xmlns:xlink"
239
- ]), We = b(/{{[\w\W]*|^[\w\W]*}}/g), Ge = b(/<%[\w\W]*|^[\w\W]*%>/g), Ke = b(/\${[\w\W]*/g), qe = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), Je = b(/^aria-[\-\w]+$/), Ye = b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Xe = b(/^(?:\w+script|data):/i), Ze = b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Qe = b(/^html$/i), $e = b(/^[a-z][.\w]*(-[.\w]+)+$/i), et = b(/<[/\w!]/g), tt = b(/<[/\w]/g), nt = b(/<\/no(script|embed|frames)/i), rt = b(/\/>/i), O = {
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 = {
240
240
  element: 1,
241
241
  attribute: 2,
242
242
  text: 3,
@@ -249,9 +249,23 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
249
249
  documentType: 10,
250
250
  documentFragment: 11,
251
251
  notation: 12
252
- }, it = function() {
252
+ }, it = [
253
+ "style",
254
+ "script",
255
+ "xmp",
256
+ "iframe",
257
+ "noembed",
258
+ "noframes",
259
+ "plaintext",
260
+ "noscript"
261
+ ], at = v(T({}, it)), ot = function() {
262
+ let e = {};
263
+ return fe(it, (t) => {
264
+ e[t] = y(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
265
+ }), v(e);
266
+ }(), st = function() {
253
267
  return typeof window > "u" ? null : window;
254
- }, at = function(e, t) {
268
+ }, ct = function(e, t) {
255
269
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
256
270
  let n = null, r = "data-tt-policy-suffix";
257
271
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -268,7 +282,7 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
268
282
  } catch {
269
283
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
270
284
  }
271
- }, ot = function() {
285
+ }, lt = function() {
272
286
  return {
273
287
  afterSanitizeAttributes: [],
274
288
  afterSanitizeElements: [],
@@ -280,53 +294,60 @@ var Ne = y(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
280
294
  uponSanitizeElement: [],
281
295
  uponSanitizeShadowNode: []
282
296
  };
283
- }, st = function(e, t, n, r) {
284
- return x(e, t) && _e(e[t]) ? w(r.base ? E(r.base) : {}, e[t], r.transform) : n;
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();
285
302
  };
286
- function ct() {
287
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it(), t = (e) => ct(e);
288
- if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
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;
289
306
  let n = e.document, r = n, i = r.currentScript;
290
307
  e.DocumentFragment;
291
308
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
292
309
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
293
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = D(d, "cloneNode"), f = D(d, "remove"), p = D(d, "nextSibling"), te = D(d, "childNodes"), m = D(d, "parentNode"), ne = D(d, "shadowRoot"), re = D(d, "attributes"), h = o && o.prototype ? D(o.prototype, "nodeType") : null, g = o && o.prototype ? D(o.prototype, "nodeName") : null;
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) {
311
+ return re ? re(e) : e.nodeType;
312
+ }, ce = function(e) {
313
+ return ie ? ie(e) : e.nodeName;
314
+ };
294
315
  if (typeof a == "function") {
295
316
  let e = n.createElement("template");
296
317
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
297
318
  }
298
- let _, v = "", ae, oe = !1, se = 0, le = function() {
299
- if (se > 0) throw ke("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.");
300
- }, ue = function(e) {
301
- le(), se++;
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++;
302
323
  try {
303
324
  return _.createHTML(e);
304
325
  } finally {
305
- se--;
326
+ we--;
306
327
  }
307
- }, de = function(e) {
308
- le(), se++;
328
+ }, Ee = function(e) {
329
+ Te(), we++;
309
330
  try {
310
331
  return _.createScriptURL(e);
311
332
  } finally {
312
- se--;
333
+ we--;
313
334
  }
314
- }, we = function() {
315
- return oe ||= (ae = at(u, i), !0), ae;
316
- }, Te = n, Ee = Te.implementation, De = Te.createNodeIterator, Oe = Te.createDocumentFragment, C = Te.getElementsByTagName, Ae = r.importNode, T = ot();
317
- t.isSupported = typeof ie == "function" && typeof m == "function" && Ee && Ee.createHTMLDocument !== void 0;
318
- let lt = We, ut = Ge, dt = Ke, ft = qe, pt = Je, mt = Xe, k = Ze, ht = $e, A = Ye, j = null, gt = w({}, [
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({}, [
319
340
  ...Ne,
320
341
  ...Pe,
321
342
  ...Fe,
322
343
  ...Le,
323
344
  ...ze
324
- ]), M = null, _t = w({}, [
345
+ ]), P = null, St = T({}, [
325
346
  ...Be,
326
347
  ...Ve,
327
348
  ...He,
328
349
  ...Ue
329
- ]), N = Object.seal(ce(null, {
350
+ ]), F = Object.seal(le(null, {
330
351
  tagNameCheck: {
331
352
  writable: !0,
332
353
  configurable: !1,
@@ -345,7 +366,7 @@ function ct() {
345
366
  enumerable: !0,
346
367
  value: !1
347
368
  }
348
- })), P = null, vt = null, F = Object.seal(ce(null, {
369
+ })), Ct = null, wt = null, I = Object.seal(le(null, {
349
370
  tagCheck: {
350
371
  writable: !0,
351
372
  configurable: !1,
@@ -358,14 +379,14 @@ function ct() {
358
379
  enumerable: !0,
359
380
  value: null
360
381
  }
361
- })), yt = !0, bt = !0, xt = !1, St = !0, I = !1, L = !0, R = !1, Ct = !1, wt = null, Tt = null, Et = !1, Dt = !1, Ot = !1, kt = !1, At = !0, jt = !1, Mt = "user-content-", Nt = !0, z = !1, B = {}, V = null, Pt = 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(".")), Ft = null, It = w({}, [
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({}, [
362
383
  "audio",
363
384
  "video",
364
385
  "img",
365
386
  "source",
366
387
  "image",
367
388
  "track"
368
- ]), Lt = null, Rt = w({}, [
389
+ ]), Wt = null, Gt = T({}, [
369
390
  "alt",
370
391
  "class",
371
392
  "for",
@@ -380,249 +401,262 @@ function ct() {
380
401
  "value",
381
402
  "style",
382
403
  "xmlns"
383
- ]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", Vt = H, Ht = !1, Ut = null, Wt = w({}, [
384
- zt,
385
- Bt,
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,
386
407
  H
387
- ], ye), Gt = y([
408
+ ], ye), Qt = v([
388
409
  "mi",
389
410
  "mo",
390
411
  "mn",
391
412
  "ms",
392
413
  "mtext"
393
- ]), Kt = w({}, Gt), qt = y(["annotation-xml"]), Jt = w({}, qt), Yt = w({}, [
414
+ ]), $t = T({}, Qt), en = v(["annotation-xml"]), tn = T({}, en), nn = T({}, [
394
415
  "title",
395
416
  "style",
396
417
  "font",
397
418
  "a",
398
419
  "script"
399
- ]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], U = null, Qt = null, $t = n.createElement("form"), en = function(e) {
420
+ ]), rn = null, an = ["application/xhtml+xml", "text/html"], U = null, on = null, sn = n.createElement("form"), cn = function(e) {
400
421
  return e instanceof RegExp || e instanceof Function;
401
- }, tn = function() {
422
+ }, ln = function() {
402
423
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
403
- if (Qt && Qt === e) return;
404
- (!e || typeof e != "object") && (e = {}), e = E(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, U = Xt === "application/xhtml+xml" ? ye : ve, j = st(e, "ALLOWED_TAGS", gt, { transform: U }), M = st(e, "ALLOWED_ATTR", _t, { transform: U }), Ut = st(e, "ALLOWED_NAMESPACES", Wt, { transform: ye }), Lt = st(e, "ADD_URI_SAFE_ATTR", Rt, {
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, {
405
426
  transform: U,
406
- base: Rt
407
- }), Ft = st(e, "ADD_DATA_URI_TAGS", It, {
427
+ base: Gt
428
+ }), Ht = ut(e, "ADD_DATA_URI_TAGS", Ut, {
408
429
  transform: U,
409
- base: It
410
- }), V = st(e, "FORBID_CONTENTS", Pt, { transform: U }), P = st(e, "FORBID_TAGS", E({}), { transform: U }), vt = st(e, "FORBID_ATTR", E({}), { transform: U }), B = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, yt = e.ALLOW_ARIA_ATTR !== !1, bt = e.ALLOW_DATA_ATTR !== !1, xt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, St = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = e.SAFE_FOR_TEMPLATES || !1, L = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, Dt = e.RETURN_DOM || !1, Ot = e.RETURN_DOM_FRAGMENT || !1, kt = e.RETURN_TRUSTED_TYPE || !1, Et = e.FORCE_BODY || !1, At = e.SANITIZE_DOM !== !1, jt = e.SANITIZE_NAMED_PROPS || !1, Nt = e.KEEP_CONTENT !== !1, z = e.IN_PLACE || !1, A = Me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ye, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : H, Kt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? E(e.MATHML_TEXT_INTEGRATION_POINTS) : w({}, Gt), Jt = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? E(e.HTML_INTEGRATION_POINTS) : w({}, qt);
411
- let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? E(e.CUSTOM_ELEMENT_HANDLING) : ce(null);
412
- if (N = ce(null), x(t, "tagNameCheck") && en(t.tagNameCheck) && (N.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && en(t.attributeNameCheck) && (N.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), b(N), I && (bt = !1), Ot && (Dt = !0), B && (j = w({}, ze), M = ce(null), B.html === !0 && (w(j, Ne), w(M, Be)), B.svg === !0 && (w(j, Pe), w(M, Ve), w(M, Ue)), B.svgFilters === !0 && (w(j, Fe), w(M, Ve), w(M, Ue)), B.mathMl === !0 && (w(j, Le), w(M, He), w(M, Ue))), F.tagCheck = null, F.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? F.tagCheck = e.ADD_TAGS : _e(e.ADD_TAGS) && (j === gt && (j = E(j)), w(j, e.ADD_TAGS, U))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? F.attributeCheck = e.ADD_ATTR : _e(e.ADD_ATTR) && (M === _t && (M = E(M)), w(M, e.ADD_ATTR, U))), x(e, "ADD_URI_SAFE_ATTR") && _e(e.ADD_URI_SAFE_ATTR) && w(Lt, e.ADD_URI_SAFE_ATTR, U), x(e, "FORBID_CONTENTS") && _e(e.FORBID_CONTENTS) && (V === Pt && (V = E(V)), w(V, e.FORBID_CONTENTS, U)), x(e, "ADD_FORBID_CONTENTS") && _e(e.ADD_FORBID_CONTENTS) && (V === Pt && (V = E(V)), w(V, e.ADD_FORBID_CONTENTS, U)), Nt && (j["#text"] = !0), R && w(j, [
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, [
413
434
  "html",
414
435
  "head",
415
436
  "body"
416
- ]), j.table && (w(j, ["tbody"]), delete P.tbody), e.TRUSTED_TYPES_POLICY) {
417
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ke("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
418
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ke("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
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.");
419
440
  let t = _;
420
441
  _ = e.TRUSTED_TYPES_POLICY;
421
442
  try {
422
- v = ue("");
443
+ b = x("");
423
444
  } catch (e) {
424
445
  throw _ = t, e;
425
446
  }
426
- } else e.TRUSTED_TYPES_POLICY === null ? (_ = void 0, v = "") : (_ === void 0 && (_ = we()), _ && typeof v == "string" && (v = ue("")));
427
- y && y(e), Qt = e;
428
- }, nn = w({}, [
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({}, [
429
450
  ...Pe,
430
451
  ...Fe,
431
452
  ...Ie
432
- ]), rn = w({}, [...Le, ...Re]), an = function(e, t, n) {
433
- return t.namespaceURI === H ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
434
- }, on = function(e, t, n) {
435
- return t.namespaceURI === H ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
436
- }, sn = function(e, t, n) {
437
- return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
438
- }, cn = function(e) {
439
- let t = m(e);
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];
457
+ }, 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) {
460
+ let t = g(e);
440
461
  (!t || !t.tagName) && (t = {
441
- namespaceURI: Vt,
462
+ namespaceURI: Jt,
442
463
  tagName: "template"
443
464
  });
444
465
  let n = ve(e.tagName), r = ve(t.tagName);
445
- return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === H ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
446
- }, ln = function(e) {
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) {
447
468
  he(t.removed, { element: e });
448
469
  try {
449
- m(e).removeChild(e);
470
+ g(e).removeChild(e);
450
471
  } catch {
451
- if (f(e), !m(e)) throw ke("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
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");
452
473
  }
453
- }, un = function(e) {
454
- fn(e);
455
- let t = te(e);
474
+ }, hn = function(e, t, n) {
475
+ try {
476
+ m(e, t);
477
+ } catch {
478
+ try {
479
+ e.removeAttribute(n);
480
+ } catch {}
481
+ }
482
+ }, K = function(e) {
483
+ _n(e);
484
+ let t = h(e);
456
485
  if (t) {
457
486
  let e = [];
458
487
  fe(t, (t) => {
459
488
  he(e, t);
460
489
  }), fe(e, (e) => {
461
490
  try {
462
- f(e);
491
+ p(e);
463
492
  } catch {}
464
493
  });
465
494
  }
466
- let n = re(e);
495
+ let n = ne(e);
467
496
  if (n) for (let t = n.length - 1; t >= 0; --t) {
468
497
  let r = n[t], i = r && r.name;
469
- if (typeof i == "string") try {
470
- e.removeAttribute(i);
471
- } catch {}
498
+ typeof i == "string" && hn(e, r, i);
499
+ }
500
+ }, q = function(e, n, r) {
501
+ if (!r) try {
502
+ r = n.getAttributeNode(e);
503
+ } catch {
504
+ r = null;
472
505
  }
473
- }, W = function(e, n) {
506
+ he(t.removed, {
507
+ attribute: r || null,
508
+ from: n
509
+ });
474
510
  try {
475
- he(t.removed, {
476
- attribute: n.getAttributeNode(e),
477
- from: n
478
- });
511
+ r ? m(n, r) : n.removeAttribute(e);
479
512
  } catch {
480
- he(t.removed, {
481
- attribute: null,
482
- from: n
483
- });
513
+ try {
514
+ n.removeAttribute(e);
515
+ } catch {}
484
516
  }
485
- if (n.removeAttribute(e), e === "is") if (Dt || Ot) try {
486
- ln(n);
517
+ if (e === "is") if (Nt || Pt) try {
518
+ G(n);
487
519
  } catch {}
488
520
  else try {
489
521
  n.setAttribute(e, "");
490
522
  } catch {}
491
- }, dn = function(e) {
492
- let t = re(e);
523
+ }, gn = function(e) {
524
+ let t = ne(e);
493
525
  if (t) for (let n = t.length - 1; n >= 0; --n) {
494
526
  let r = t[n], i = r && r.name;
495
- if (!(typeof i != "string" || M[U(i)])) try {
496
- e.removeAttribute(i);
497
- } catch {}
527
+ typeof i != "string" || P[U(i)] || hn(e, r, i);
498
528
  }
499
- }, fn = function(e) {
529
+ }, _n = function(e) {
500
530
  let t = [e];
501
531
  for (; t.length > 0;) {
502
532
  let e = t.pop();
503
- (h ? h(e) : e.nodeType) === O.element && dn(e);
504
- let n = te(e);
533
+ se(e) === O.element && gn(e);
534
+ let n = h(e);
505
535
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
506
536
  }
507
- }, G = function(e) {
508
- if (!L) return;
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;
509
541
  let t = [e];
510
542
  for (; t.length > 0;) {
511
- let e = t.pop(), n = h ? h(e) : e.nodeType;
512
- if (n === O.processingInstruction || n === O.comment && S(tt, e.data)) {
543
+ let e = t.pop(), n = se(e);
544
+ if (n === O.processingInstruction || n === O.comment && C(tt, e.data)) {
513
545
  try {
514
- f(e);
546
+ p(e);
515
547
  } catch {}
516
548
  continue;
517
549
  }
518
550
  if (n === O.element) {
519
- let t = e, n = U(g ? g(e) : e.nodeName);
551
+ let t = e, n = U(ce(e));
520
552
  try {
521
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
553
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && vn("for", n) && t.removeAttribute("for");
522
554
  } catch {}
523
555
  }
524
- let r = te(e);
556
+ let r = h(e);
525
557
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
526
558
  }
527
- }, pn = function(e) {
559
+ }, bn = function(e) {
528
560
  let t = null, r = null;
529
- if (Et) e = "<remove></remove>" + e;
561
+ if (Mt) e = "<remove></remove>" + e;
530
562
  else {
531
563
  let t = be(e, /^[\r\n\t ]+/);
532
564
  r = t && t[0];
533
565
  }
534
- Xt === "application/xhtml+xml" && Vt === H && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
535
- let i = _ ? ue(e) : e;
536
- if (Vt === H) try {
537
- t = new l().parseFromString(i, Xt);
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);
538
570
  } catch {}
539
571
  if (!t || !t.documentElement) {
540
- t = Ee.createDocument(Vt, "template", null);
572
+ t = ke.createDocument(Jt, "template", null);
541
573
  try {
542
- t.documentElement.innerHTML = Ht ? v : i;
574
+ t.documentElement.innerHTML = Yt ? b : i;
543
575
  } catch {}
544
576
  }
545
577
  let a = t.body || t.documentElement;
546
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === H ? C.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
547
- }, mn = function(e) {
548
- return De.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
549
- }, hn = function(e) {
550
- return e = xe(e, lt, " "), e = xe(e, ut, " "), e = xe(e, dt, " "), e;
551
- }, gn = function(e) {
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;
584
+ }, Sn = function(e) {
552
585
  e.normalize();
553
- let t = De.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
554
- for (; n;) n.data = hn(n.data), n = t.nextNode();
555
- let r = e.querySelectorAll?.call(e, "template");
556
- r && fe(r, (e) => {
557
- K(e.content) && gn(e.content);
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();
588
+ let i = e.querySelectorAll?.call(e, "template");
589
+ i && fe(i, (e) => {
590
+ X(e.content) && Sn(e.content);
558
591
  });
559
- }, _n = function(e) {
560
- let t = g ? g(e) : null;
561
- return typeof t != "string" || U(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== h(e) || e.childNodes !== te(e);
562
- }, K = function(e) {
563
- if (!h || typeof e != "object" || !e) return !1;
592
+ }, Y = function(e) {
593
+ 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) {
596
+ if (!re || typeof e != "object" || !e) return !1;
564
597
  try {
565
- return h(e) === O.documentFragment;
598
+ return re(e) === O.documentFragment;
566
599
  } catch {
567
600
  return !1;
568
601
  }
569
- }, q = function(e) {
570
- if (!h || typeof e != "object" || !e) return !1;
602
+ }, Z = function(e) {
603
+ if (!re || typeof e != "object" || !e) return !1;
571
604
  try {
572
- return typeof h(e) == "number";
605
+ return typeof re(e) == "number";
573
606
  } catch {
574
607
  return !1;
575
608
  }
576
609
  };
577
- function J(e, n, r) {
610
+ function Q(e, n, r) {
578
611
  e.length !== 0 && fe(e, (e) => {
579
- e.call(t, n, r, Qt);
612
+ e.call(t, n, r, on);
580
613
  });
581
614
  }
582
- let vn = function(e, t) {
583
- return !!(L && e.hasChildNodes() && !q(e.firstElementChild) && S(et, e.textContent) && S(et, e.innerHTML) || L && e.namespaceURI === H && t === "style" && q(e.firstElementChild) || e.nodeType === O.processingInstruction || L && e.nodeType === O.comment && S(tt, e.data));
584
- }, Y = function(e, t) {
585
- if (!P[t] && bn(t) && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, t) || N.tagNameCheck instanceof Function && N.tagNameCheck(t))) return !1;
586
- if (Nt && !V[t]) {
587
- let t = m(e), n = te(e);
588
- if (n && t) {
589
- let r = n.length;
590
- for (let i = r - 1; i >= 0; --i) {
591
- let r = z ? n[i] : ee(n[i], !0);
592
- t.insertBefore(r, p(e));
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]) {
622
+ let t = g(e), r = h(e);
623
+ if (r && t) {
624
+ let i = r.length;
625
+ for (let a = i - 1; a >= 0; --a) {
626
+ let i = e === n ? f(r[a], !0) : r[a];
627
+ t.insertBefore(i, ee(e));
593
628
  }
594
629
  }
595
630
  }
596
- return ln(e), !0;
597
- }, yn = function(e, n) {
598
- if (J(T.beforeSanitizeElements, e, null), e !== n && m(e) === null) return !0;
599
- if (_n(e)) return ln(e), !0;
600
- let r = U(g ? g(e) : e.nodeName);
601
- if (J(T.uponSanitizeElement, e, {
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);
636
+ }, 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, {
602
641
  tagName: r,
603
- allowedTags: j
604
- }), e !== n && m(e) === null) return !0;
605
- if (vn(e, r)) return ln(e), !0;
606
- if (P[r] || !(F.tagCheck instanceof Function && F.tagCheck(r)) && !j[r]) {
607
- let t = Y(e, r);
608
- return t === !1 && J(T.afterSanitizeElements, e, null), t;
609
- }
610
- if ((h ? h(e) : e.nodeType) === O.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(nt, e.innerHTML)) return ln(e), !0;
611
- if (I && e.nodeType === O.text) {
612
- let n = hn(e.textContent);
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);
613
652
  e.textContent !== n && (he(t.removed, { element: e.cloneNode() }), e.textContent = n);
614
653
  }
615
- return J(T.afterSanitizeElements, e, null), !1;
616
- }, X = function(e, t, r) {
617
- if (vt[t] || L && t === "patchsrc" || L && t === "for" && e !== "label" && e !== "output" || At && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
618
- let i = M[t] || F.attributeCheck instanceof Function && F.attributeCheck(t, e);
619
- if (!(bt && S(ft, t)) && !(yt && S(pt, t))) {
620
- if (!i) {
621
- if (!(bn(e) && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, e) || N.tagNameCheck instanceof Function && N.tagNameCheck(e)) && (N.attributeNameCheck instanceof RegExp && S(N.attributeNameCheck, t) || N.attributeNameCheck instanceof Function && N.attributeNameCheck(t, e)) || t === "is" && N.allowCustomizedBuiltInElements && (N.tagNameCheck instanceof RegExp && S(N.tagNameCheck, r) || N.tagNameCheck instanceof Function && N.tagNameCheck(r)))) return !1;
622
- } else if (!Lt[t] && !S(A, xe(r, k, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Se(r, "data:") === 0 && Ft[e]) && !(xt && !S(mt, xe(r, k, ""))) && r) return !1;
623
- }
624
- return !0;
625
- }, Z = w({}, [
654
+ return Q(k.afterSanitizeElements, e, null), !1;
655
+ }, 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({}, [
626
660
  "annotation-xml",
627
661
  "color-profile",
628
662
  "font-face",
@@ -631,66 +665,67 @@ function ct() {
631
665
  "font-face-src",
632
666
  "font-face-uri",
633
667
  "missing-glyph"
634
- ]), bn = function(e) {
635
- return !Z[ve(e)] && S(ht, e);
636
- }, xn = function(e, t, n, r) {
668
+ ]), jn = function(e) {
669
+ return !An[ve(e)] && C(yt, e);
670
+ }, Mn = function(e, t, n, r) {
637
671
  if (_ && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
638
- case "TrustedHTML": return ue(r);
639
- case "TrustedScriptURL": return de(r);
672
+ case "TrustedHTML": return x(r);
673
+ case "TrustedScriptURL": return Ee(r);
640
674
  }
641
675
  return r;
642
- }, Sn = function(e, n, r, i) {
676
+ }, Nn = function(e, t, n, r) {
643
677
  try {
644
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), _n(e) ? ln(e) : me(t.removed);
678
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Y(e) ? (G(e), !1) : !0;
645
679
  } catch {
646
- W(n, e);
647
- }
648
- }, Cn = function(e) {
649
- J(T.beforeSanitizeAttributes, e, null);
650
- let t = e.attributes;
651
- if (!t || _n(e)) return;
652
- let n = {
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 = {
653
688
  attrName: "",
654
689
  attrValue: "",
655
690
  keepAttr: !0,
656
- allowedAttributes: M,
691
+ allowedAttributes: P,
657
692
  forceKeepAttr: void 0
658
- }, r = t.length, i = U(e.nodeName);
659
- for (; r--;) {
660
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = U(o), u = c, d = o === "value" ? u : Ce(u);
661
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, J(T.uponSanitizeAttribute, e, n), d = n.attrValue, jt && (l === "id" || l === "name") && Se(d, Mt) !== 0 && (W(o, e), d = Mt + d), L && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
662
- W(o, e);
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);
663
698
  continue;
664
699
  }
665
- if (l === "attributename" && be(d, "href")) {
666
- W(o, e);
700
+ if (u === "attributename" && be(f, "href")) {
701
+ q(s, e, o);
667
702
  continue;
668
703
  }
669
- if (!n.forceKeepAttr) {
670
- if (!n.keepAttr) {
671
- W(o, e);
704
+ if (!r.forceKeepAttr) {
705
+ if (!r.keepAttr) {
706
+ q(s, e, o);
672
707
  continue;
673
708
  }
674
- if (!St && S(rt, d)) {
675
- W(o, e);
709
+ if (!Ot && C(rt, f)) {
710
+ q(s, e, o);
676
711
  continue;
677
712
  }
678
- if (I && (d = hn(d)), !X(i, l, d)) {
679
- W(o, e);
713
+ if (L && (f = xn(f)), !kn(a, u, f)) {
714
+ q(s, e, o);
680
715
  continue;
681
716
  }
682
- d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
717
+ f = Mn(a, u, c, f), f !== d && Nn(e, s, c, f) && p && me(t.removed);
683
718
  }
684
719
  }
685
- J(T.afterSanitizeAttributes, e, null);
686
- }, wn = function(e) {
687
- let t = null, n = mn(e);
688
- for (J(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (J(T.uponSanitizeShadowNode, t, null), yn(t, e), Cn(t), K(t.content) && wn(t.content), (h ? h(t) : t.nodeType) === O.element) {
689
- let e = ne(t);
690
- K(e) && (Tn(e), wn(e));
720
+ Q(k.afterSanitizeAttributes, e, null);
721
+ }, 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) {
724
+ let e = te(t);
725
+ X(e) && (In(e), Fn(e));
691
726
  }
692
- J(T.afterSanitizeShadowDOM, e, null);
693
- }, Tn = function(e) {
727
+ Q(k.afterSanitizeShadowDOM, e, null);
728
+ }, In = function(e) {
694
729
  let t = [{
695
730
  node: e,
696
731
  shadow: null
@@ -698,27 +733,27 @@ function ct() {
698
733
  for (; t.length > 0;) {
699
734
  let e = t.pop();
700
735
  if (e.shadow) {
701
- wn(e.shadow);
736
+ Fn(e.shadow);
702
737
  continue;
703
738
  }
704
- let n = e.node, r = (h ? h(n) : n.nodeType) === O.element, i = te(n);
739
+ let n = e.node, r = se(n) === O.element, i = h(n);
705
740
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
706
741
  node: i[e],
707
742
  shadow: null
708
743
  });
709
744
  if (r) {
710
- let e = g ? g(n) : null;
745
+ let e = ie ? ie(n) : null;
711
746
  if (typeof e == "string" && U(e) === "template") {
712
747
  let e = n.content;
713
- K(e) && t.push({
748
+ X(e) && t.push({
714
749
  node: e,
715
750
  shadow: null
716
751
  });
717
752
  }
718
753
  }
719
754
  if (r) {
720
- let e = ne(n);
721
- K(e) && t.push({
755
+ let e = te(n);
756
+ X(e) && t.push({
722
757
  node: null,
723
758
  shadow: e
724
759
  }, {
@@ -730,76 +765,77 @@ function ct() {
730
765
  };
731
766
  return t.sanitize = function(e) {
732
767
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
733
- if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !q(e) && (e = je(e), typeof e != "string")) throw ke("dirty is not a string, aborting");
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");
734
769
  if (!t.isSupported) return e;
735
- Ct ? (j = wt, M = Tt) : tn(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (j = E(j)), T.uponSanitizeAttribute.length > 0 && (M = E(M)), t.removed = [];
736
- let c = z && typeof e != "string" && q(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);
737
772
  if (c) {
738
- G(e);
739
- let t = g ? g(e) : e.nodeName;
773
+ yn(e);
774
+ let t = ce(e);
740
775
  if (typeof t == "string") {
741
776
  let n = U(t);
742
- if (!j[n] || P[n]) throw un(e), ke("root node is forbidden and cannot be sanitized in-place");
777
+ if (!N[n] || Ct[n]) throw K(e), Oe("root node is forbidden and cannot be sanitized in-place");
743
778
  }
744
- if (_n(e)) throw un(e), ke("root node is clobbered and cannot be sanitized in-place");
779
+ if (Y(e)) throw K(e), Oe("root node is clobbered and cannot be sanitized in-place");
745
780
  try {
746
- Tn(e);
781
+ In(e);
747
782
  } catch (t) {
748
- throw un(e), t;
783
+ throw K(e), t;
749
784
  }
750
- } else if (q(e)) i = pn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
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);
751
786
  else {
752
- if (!Dt && !I && !R && e.indexOf("<") === -1) return _ && kt ? ue(e) : e;
753
- if (i = pn(e), !i) return Dt ? null : kt ? v : "";
787
+ if (!Nt && !L && !z && e.indexOf("<") === -1) return _ && Ft ? x(e) : e;
788
+ if (i = bn(e), !i) return Nt ? null : Ft ? b : "";
754
789
  }
755
- i && Et && ln(i.firstChild);
756
- let l = c ? e : i, u = mn(l);
790
+ i && Mt && G(i.firstChild);
791
+ let l = c ? e : i;
757
792
  try {
758
- for (; o = u.nextNode();) yn(o, l), Cn(o), K(o.content) && wn(o.content);
793
+ let e = J(l);
794
+ for (; o = e.nextNode();) On(o, l), Pn(o), X(o.content) && Fn(o.content);
759
795
  } catch (n) {
760
- throw c && (un(e), fe(t.removed, (e) => {
761
- e.element && fn(e.element);
796
+ throw c && (K(e), fe(t.removed, (e) => {
797
+ e.element && _n(e.element);
762
798
  })), n;
763
799
  }
764
800
  if (c) return fe(t.removed, (e) => {
765
- e.element && fn(e.element);
766
- }), I && gn(e), e;
767
- if (Dt) {
768
- if (I && gn(i), Ot) for (s = Oe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
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);
769
805
  else s = i;
770
- return (M.shadowroot || M.shadowrootmode) && (s = Ae.call(r, s, !0)), s;
806
+ return (P.shadowroot || P.shadowrootmode) && (s = mt.call(r, s, !0)), s;
771
807
  }
772
- let d = R ? i.outerHTML : i.innerHTML;
773
- return R && j["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Qe, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), I && (d = hn(d)), _ && kt ? ue(d) : d;
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;
774
810
  }, t.setConfig = function() {
775
811
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
776
- tn(e), Ct = !0, wt = j, Tt = M;
812
+ ln(e), kt = !0, At = N, jt = P;
777
813
  }, t.clearConfig = function() {
778
- Qt = null, Ct = !1, wt = null, Tt = null, _ = ae, v = "";
814
+ on = null, kt = !1, At = null, jt = null, _ = ue, b = "";
779
815
  }, t.isValidAttribute = function(e, t, n) {
780
- Qt || tn({});
816
+ on || ln({});
781
817
  let r = U(e), i = U(t);
782
- return X(r, i, n);
818
+ return kn(r, i, n);
783
819
  }, t.addHook = function(e, t) {
784
- typeof t == "function" && x(T, e) && he(T[e], t);
820
+ typeof t == "function" && S(k, e) && he(k[e], t);
785
821
  }, t.removeHook = function(e, t) {
786
- if (x(T, e)) {
822
+ if (S(k, e)) {
787
823
  if (t !== void 0) {
788
- let n = pe(T[e], t);
789
- return n === -1 ? void 0 : ge(T[e], n, 1)[0];
824
+ let n = pe(k[e], t);
825
+ return n === -1 ? void 0 : ge(k[e], n, 1)[0];
790
826
  }
791
- return me(T[e]);
827
+ return me(k[e]);
792
828
  }
793
829
  }, t.removeHooks = function(e) {
794
- x(T, e) && (T[e] = []);
830
+ S(k, e) && (k[e] = []);
795
831
  }, t.removeAllHooks = function() {
796
- T = ot();
832
+ k = lt();
797
833
  }, t;
798
834
  }
799
- var lt = ct();
835
+ var pt = ft();
800
836
  //#endregion
801
837
  //#region node_modules/marked/lib/marked.esm.js
802
- function ut() {
838
+ function mt() {
803
839
  return {
804
840
  async: !1,
805
841
  breaks: !1,
@@ -813,35 +849,35 @@ function ut() {
813
849
  walkTokens: null
814
850
  };
815
851
  }
816
- var dt = ut();
817
- function ft(e) {
818
- dt = e;
852
+ var k = mt();
853
+ function ht(e) {
854
+ k = e;
819
855
  }
820
- var pt = { exec: () => null };
821
- function mt(e) {
856
+ var A = { exec: () => null };
857
+ function gt(e) {
822
858
  let t = [];
823
859
  return (n) => {
824
860
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
825
861
  return i || (i = e(r), t[r] = i), i;
826
862
  };
827
863
  }
828
- function k(e, t = "") {
864
+ function j(e, t = "") {
829
865
  let n = typeof e == "string" ? e : e.source, r = {
830
866
  replace: (e, t) => {
831
867
  let i = typeof t == "string" ? t : t.source;
832
- return i = i.replace(A.caret, "$1"), n = n.replace(e, i), r;
868
+ return i = i.replace(M.caret, "$1"), n = n.replace(e, i), r;
833
869
  },
834
870
  getRegex: () => new RegExp(n, t)
835
871
  };
836
872
  return r;
837
873
  }
838
- var ht = ((e = "") => {
874
+ var _t = ((e = "") => {
839
875
  try {
840
876
  return !!RegExp("(?<=1)(?<!1)" + e);
841
877
  } catch {
842
878
  return !1;
843
879
  }
844
- })(), A = {
880
+ })(), M = {
845
881
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
846
882
  outputLinkReplace: /\\([\[\]])/g,
847
883
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -892,121 +928,121 @@ var ht = ((e = "") => {
892
928
  notSpaceStart: /^\S*/,
893
929
  endingNewline: /\n$/,
894
930
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
895
- nextBulletRegex: mt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
896
- hrRegex: mt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
897
- fencesBeginRegex: mt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
898
- headingBeginRegex: mt((e) => RegExp(`^ {0,${e}}#`)),
899
- htmlBeginRegex: mt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
900
- blockquoteBeginRegex: mt((e) => RegExp(`^ {0,${e}}>`))
901
- }, j = /^(?:[ \t]*(?:\n|$))+/, gt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, M = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _t = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, N = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, P = / {0,3}(?:[*+-]|\d{1,9}[.)])/, vt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, F = k(vt).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(), yt = k(vt).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(), bt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, xt = /^[^\n]+/, St = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, I = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", St).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), L = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, P).getRegex(), R = "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", Ct = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, wt = 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", Ct).replace("tag", R).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Tt = k(bt).replace("hr", _t).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", R).getRegex(), Et = {
902
- blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Tt).getRegex(),
903
- code: gt,
904
- def: I,
905
- fences: M,
906
- heading: N,
907
- hr: _t,
908
- html: wt,
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,
909
945
  lheading: F,
910
- list: L,
911
- newline: j,
912
- paragraph: Tt,
913
- table: pt,
914
- text: xt
915
- }, Dt = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", _t).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", R).getRegex(), Ot = {
916
- ...Et,
917
- lheading: yt,
918
- table: Dt,
919
- paragraph: k(bt).replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Dt).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", R).getRegex()
920
- }, kt = {
921
- ...Et,
922
- html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ct).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(),
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(),
923
959
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
924
960
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
925
- fences: pt,
961
+ fences: A,
926
962
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
927
- paragraph: k(bt).replace("hr", _t).replace("heading", " *#{1,6} *[^\n]").replace("lheading", F).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
928
- }, At = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, jt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Mt = /^( {2,}|\\)\n(?!\s*$)/, Nt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, B = /[\s\p{P}\p{S}]/u, V = /[^\s\p{P}\p{S}]/u, Pt = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, B).getRegex(), Ft = /(?!~)[\p{P}\p{S}]/u, It = /(?!~)[\s\p{P}\p{S}]/u, Lt = /(?:[^\s\p{P}\p{S}]|~)/u, Rt = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ht ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), zt = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Bt = k(zt, "u").replace(/punct/g, z).getRegex(), H = k(zt, "u").replace(/punct/g, Ft).getRegex(), Vt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ht = k(Vt, "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Ut = k(Vt, "gu").replace(/notPunctSpace/g, Lt).replace(/punctSpace/g, It).replace(/punct/g, Ft).getRegex(), Wt = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Gt = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), Kt = k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), qt = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), Jt = 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(), Yt = k(Ct).replace("(?:-->|$)", "-->").getRegex(), Xt = 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", Yt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, U = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Zt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Qt = k(/^!?\[(label)\]\[(ref)\]/).replace("label", Zt).replace("ref", St).getRegex(), $t = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", St).getRegex(), en = k("reflink|nolink(?!\\()", "g").replace("reflink", Qt).replace("nolink", $t).getRegex(), tn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nn = {
929
- _backpedal: pt,
930
- anyPunctuation: qt,
931
- autolink: Jt,
932
- blockSkip: Rt,
933
- br: Mt,
934
- code: jt,
935
- del: pt,
936
- delLDelim: pt,
937
- delRDelim: pt,
938
- emStrongLDelim: Bt,
939
- emStrongRDelimAst: Ht,
940
- emStrongRDelimUnd: Wt,
941
- escape: At,
942
- link: U,
943
- nolink: $t,
944
- punctuation: Pt,
945
- reflink: Qt,
946
- reflinkSearch: en,
947
- tag: Xt,
948
- text: Nt,
949
- url: pt
950
- }, rn = {
951
- ...nn,
952
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", Zt).getRegex(),
953
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zt).getRegex()
954
- }, an = {
955
- ...nn,
956
- emStrongRDelimAst: Ut,
957
- emStrongLDelim: H,
958
- delLDelim: Gt,
959
- delRDelim: Kt,
960
- url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", tn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
961
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
962
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
963
- 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", tn).getRegex()
964
- }, on = {
965
- ...an,
966
- br: k(Mt).replace("{2,}", "*").getRegex(),
967
- text: k(an.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
968
- }, sn = {
969
- normal: Et,
970
- gfm: Ot,
971
- pedantic: kt
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
972
986
  }, cn = {
973
- normal: nn,
974
- gfm: an,
975
- breaks: on,
976
- pedantic: rn
987
+ ...sn,
988
+ link: j(/^!?\[(label)\]\((.*?)\)/).replace("label", tn).getRegex(),
989
+ reflink: j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", tn).getRegex()
977
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()
1004
+ }, dn = {
1005
+ normal: kt,
1006
+ gfm: jt,
1007
+ pedantic: Mt
1008
+ }, fn = {
1009
+ normal: sn,
1010
+ gfm: ln,
1011
+ breaks: un,
1012
+ pedantic: cn
1013
+ }, pn = {
978
1014
  "&": "&amp;",
979
1015
  "<": "&lt;",
980
1016
  ">": "&gt;",
981
1017
  "\"": "&quot;",
982
1018
  "'": "&#39;"
983
- }, un = (e) => ln[e];
1019
+ }, mn = (e) => pn[e];
984
1020
  function W(e, t) {
985
1021
  if (t) {
986
- if (A.escapeTest.test(e)) return e.replace(A.escapeReplace, un);
987
- } else if (A.escapeTestNoEncode.test(e)) return e.replace(A.escapeReplaceNoEncode, un);
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);
988
1024
  return e;
989
1025
  }
990
- function dn(e) {
1026
+ function G(e) {
991
1027
  try {
992
- e = encodeURI(e).replace(A.percentDecode, "%");
1028
+ e = encodeURI(e).replace(M.percentDecode, "%");
993
1029
  } catch {
994
1030
  return null;
995
1031
  }
996
1032
  return e;
997
1033
  }
998
- function fn(e, t) {
999
- let n = e.replace(A.findPipe, (e, t, n) => {
1034
+ function hn(e, t) {
1035
+ let n = e.replace(M.findPipe, (e, t, n) => {
1000
1036
  let r = !1, i = t;
1001
1037
  for (; --i >= 0 && n[i] === "\\";) r = !r;
1002
1038
  return r ? "|" : " |";
1003
- }).split(A.splitPipe), r = 0;
1039
+ }).split(M.splitPipe), r = 0;
1004
1040
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
1005
1041
  else for (; n.length < t;) n.push("");
1006
- for (; r < n.length; r++) n[r] = n[r].trim().replace(A.slashPipe, "|");
1042
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(M.slashPipe, "|");
1007
1043
  return n;
1008
1044
  }
1009
- function G(e, t, n) {
1045
+ function K(e, t, n) {
1010
1046
  let r = e.length;
1011
1047
  if (r === 0) return "";
1012
1048
  let i = 0;
@@ -1018,12 +1054,12 @@ function G(e, t, n) {
1018
1054
  }
1019
1055
  return e.slice(0, r - i);
1020
1056
  }
1021
- function pn(e) {
1057
+ function q(e) {
1022
1058
  let t = e.split("\n"), n = t.length - 1;
1023
- for (; n >= 0 && A.blankLine.test(t[n]);) n--;
1059
+ for (; n >= 0 && M.blankLine.test(t[n]);) n--;
1024
1060
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
1025
1061
  }
1026
- function mn(e, t) {
1062
+ function gn(e, t) {
1027
1063
  if (e.indexOf(t[1]) === -1) return -1;
1028
1064
  let n = 0;
1029
1065
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -1031,7 +1067,7 @@ function mn(e, t) {
1031
1067
  else if (e[r] === t[1] && (n--, n < 0)) return r;
1032
1068
  return n > 0 ? -2 : -1;
1033
1069
  }
1034
- function hn(e, t = 0) {
1070
+ function _n(e, t = 0) {
1035
1071
  let n = t, r = "";
1036
1072
  for (let t of e) if (t === " ") {
1037
1073
  let e = 4 - n % 4;
@@ -1039,7 +1075,7 @@ function hn(e, t = 0) {
1039
1075
  } else r += t, n++;
1040
1076
  return r;
1041
1077
  }
1042
- function gn(e, t, n, r, i) {
1078
+ function vn(e, t, n, r, i) {
1043
1079
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
1044
1080
  r.state.inLink = !0;
1045
1081
  let c = {
@@ -1052,7 +1088,7 @@ function gn(e, t, n, r, i) {
1052
1088
  };
1053
1089
  return r.state.inLink = !1, c;
1054
1090
  }
1055
- function _n(e, t, n) {
1091
+ function yn(e, t, n) {
1056
1092
  let r = e.match(n.other.indentCodeCompensation);
1057
1093
  if (r === null) return t;
1058
1094
  let i = r[1];
@@ -1063,12 +1099,12 @@ function _n(e, t, n) {
1063
1099
  return r.length >= i.length ? e.slice(i.length) : e;
1064
1100
  }).join("\n");
1065
1101
  }
1066
- var K = class {
1102
+ var bn = class {
1067
1103
  options;
1068
1104
  rules;
1069
1105
  lexer;
1070
1106
  constructor(e) {
1071
- this.options = e || dt;
1107
+ this.options = e || k;
1072
1108
  }
1073
1109
  space(e) {
1074
1110
  let t = this.rules.block.newline.exec(e);
@@ -1080,7 +1116,7 @@ var K = class {
1080
1116
  code(e) {
1081
1117
  let t = this.rules.block.code.exec(e);
1082
1118
  if (t) {
1083
- let e = this.options.pedantic ? t[0] : pn(t[0]);
1119
+ let e = this.options.pedantic ? t[0] : q(t[0]);
1084
1120
  return {
1085
1121
  type: "code",
1086
1122
  raw: e,
@@ -1092,7 +1128,7 @@ var K = class {
1092
1128
  fences(e) {
1093
1129
  let t = this.rules.block.fences.exec(e);
1094
1130
  if (t) {
1095
- let e = t[0], n = _n(e, t[3] || "", this.rules);
1131
+ let e = t[0], n = yn(e, t[3] || "", this.rules);
1096
1132
  return {
1097
1133
  type: "code",
1098
1134
  raw: e,
@@ -1106,12 +1142,12 @@ var K = class {
1106
1142
  if (t) {
1107
1143
  let e = t[2].trim();
1108
1144
  if (this.rules.other.endingHash.test(e)) {
1109
- let t = G(e, "#");
1145
+ let t = K(e, "#");
1110
1146
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
1111
1147
  }
1112
1148
  return {
1113
1149
  type: "heading",
1114
- raw: G(t[0], "\n"),
1150
+ raw: K(t[0], "\n"),
1115
1151
  depth: t[1].length,
1116
1152
  text: e,
1117
1153
  tokens: this.lexer.inline(e)
@@ -1122,13 +1158,13 @@ var K = class {
1122
1158
  let t = this.rules.block.hr.exec(e);
1123
1159
  if (t) return {
1124
1160
  type: "hr",
1125
- raw: G(t[0], "\n")
1161
+ raw: K(t[0], "\n")
1126
1162
  };
1127
1163
  }
1128
1164
  blockquote(e) {
1129
1165
  let t = this.rules.block.blockquote.exec(e);
1130
1166
  if (t) {
1131
- let e = G(t[0], "\n").split("\n"), n = "", r = "", i = [];
1167
+ let e = K(t[0], "\n").split("\n"), n = "", r = "", i = [];
1132
1168
  for (; e.length > 0;) {
1133
1169
  let t = !1, a = [], o;
1134
1170
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -1178,18 +1214,18 @@ ${c}` : c;
1178
1214
  let n = !1, r = "", s = "";
1179
1215
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
1180
1216
  r = t[0], e = e.substring(r.length);
1181
- let c = hn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1217
+ let c = _n(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1182
1218
  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) {
1183
- 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), ee = this.rules.other.blockquoteBeginRegex(d);
1219
+ 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);
1184
1220
  for (; e;) {
1185
- let f = e.split("\n", 1)[0], p;
1186
- if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || ee.test(l) || t.test(l) || n.test(l)) break;
1187
- if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
1221
+ let p = e.split("\n", 1)[0], m;
1222
+ if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), m = l) : m = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || f.test(l) || t.test(l) || n.test(l)) break;
1223
+ if (m.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + m.slice(d);
1188
1224
  else {
1189
1225
  if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
1190
1226
  s += "\n" + l;
1191
1227
  }
1192
- u = !l.trim(), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
1228
+ u = !l.trim(), r += p + "\n", e = e.substring(p.length + 1), c = m.slice(d);
1193
1229
  }
1194
1230
  }
1195
1231
  i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
@@ -1244,7 +1280,7 @@ ${c}` : c;
1244
1280
  html(e) {
1245
1281
  let t = this.rules.block.html.exec(e);
1246
1282
  if (t) {
1247
- let e = pn(t[0]);
1283
+ let e = q(t[0]);
1248
1284
  return {
1249
1285
  type: "html",
1250
1286
  block: !0,
@@ -1261,7 +1297,7 @@ ${c}` : c;
1261
1297
  return {
1262
1298
  type: "def",
1263
1299
  tag: e,
1264
- raw: G(t[0], "\n"),
1300
+ raw: K(t[0], "\n"),
1265
1301
  href: n,
1266
1302
  title: r
1267
1303
  };
@@ -1270,9 +1306,9 @@ ${c}` : c;
1270
1306
  table(e) {
1271
1307
  let t = this.rules.block.table.exec(e);
1272
1308
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
1273
- let n = fn(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 = {
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 = {
1274
1310
  type: "table",
1275
- raw: G(t[0], "\n"),
1311
+ raw: K(t[0], "\n"),
1276
1312
  header: [],
1277
1313
  align: [],
1278
1314
  rows: []
@@ -1285,7 +1321,7 @@ ${c}` : c;
1285
1321
  header: !0,
1286
1322
  align: a.align[e]
1287
1323
  });
1288
- for (let e of i) a.rows.push(fn(e, a.header.length).map((e, t) => ({
1324
+ for (let e of i) a.rows.push(hn(e, a.header.length).map((e, t) => ({
1289
1325
  text: e,
1290
1326
  tokens: this.lexer.inline(e),
1291
1327
  header: !1,
@@ -1300,7 +1336,7 @@ ${c}` : c;
1300
1336
  let e = t[1].trim();
1301
1337
  return {
1302
1338
  type: "heading",
1303
- raw: G(t[0], "\n"),
1339
+ raw: K(t[0], "\n"),
1304
1340
  depth: t[2].charAt(0) === "=" ? 1 : 2,
1305
1341
  text: e,
1306
1342
  tokens: this.lexer.inline(e)
@@ -1353,10 +1389,10 @@ ${c}` : c;
1353
1389
  let e = t[2].trim();
1354
1390
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
1355
1391
  if (!this.rules.other.endAngleBracket.test(e)) return;
1356
- let t = G(e.slice(0, -1), "\\");
1392
+ let t = K(e.slice(0, -1), "\\");
1357
1393
  if ((e.length - t.length) % 2 == 0) return;
1358
1394
  } else {
1359
- let e = mn(t[2], "()");
1395
+ let e = gn(t[2], "()");
1360
1396
  if (e === -2) return;
1361
1397
  if (e > -1) {
1362
1398
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -1368,7 +1404,7 @@ ${c}` : c;
1368
1404
  let e = this.rules.other.pedanticHrefTitle.exec(n);
1369
1405
  e && (n = e[1], r = e[3]);
1370
1406
  } else r = t[3] ? t[3].slice(1, -1) : "";
1371
- 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)), gn(t, {
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, {
1372
1408
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
1373
1409
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
1374
1410
  }, t[0], this.lexer, this.rules);
@@ -1386,7 +1422,7 @@ ${c}` : c;
1386
1422
  text: e
1387
1423
  };
1388
1424
  }
1389
- return gn(n, e, n[0], this.lexer, this.rules);
1425
+ return vn(n, e, n[0], this.lexer, this.rules);
1390
1426
  }
1391
1427
  }
1392
1428
  emStrong(e, t, n = "") {
@@ -1518,29 +1554,29 @@ ${c}` : c;
1518
1554
  };
1519
1555
  }
1520
1556
  }
1521
- }, q = class e {
1557
+ }, J = class e {
1522
1558
  tokens;
1523
1559
  options;
1524
1560
  state;
1525
1561
  inlineQueue;
1526
1562
  tokenizer;
1527
1563
  constructor(e) {
1528
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || dt, this.options.tokenizer = this.options.tokenizer || new K(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
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 = {
1529
1565
  inLink: !1,
1530
1566
  inRawBlock: !1,
1531
1567
  top: !0
1532
1568
  };
1533
1569
  let t = {
1534
- other: A,
1535
- block: sn.normal,
1536
- inline: cn.normal
1570
+ other: M,
1571
+ block: dn.normal,
1572
+ inline: fn.normal
1537
1573
  };
1538
- this.options.pedantic ? (t.block = sn.pedantic, t.inline = cn.pedantic) : this.options.gfm && (t.block = sn.gfm, this.options.breaks ? t.inline = cn.breaks : t.inline = cn.gfm), this.tokenizer.rules = t;
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;
1539
1575
  }
1540
1576
  static get rules() {
1541
1577
  return {
1542
- block: sn,
1543
- inline: cn
1578
+ block: dn,
1579
+ inline: fn
1544
1580
  };
1545
1581
  }
1546
1582
  static lex(t, n) {
@@ -1550,7 +1586,7 @@ ${c}` : c;
1550
1586
  return new e(n).inlineTokens(t);
1551
1587
  }
1552
1588
  lex(e) {
1553
- e = e.replace(A.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1589
+ e = e.replace(M.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
1554
1590
  for (let e = 0; e < this.inlineQueue.length; e++) {
1555
1591
  let t = this.inlineQueue[e];
1556
1592
  this.inlineTokens(t.src, t.tokens);
@@ -1558,7 +1594,7 @@ ${c}` : c;
1558
1594
  return this.inlineQueue = [], this.tokens;
1559
1595
  }
1560
1596
  blockTokens(e, t = [], n = !1) {
1561
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(A.tabCharGlobal, " ").replace(A.spaceLine, ""));
1597
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(M.tabCharGlobal, " ").replace(M.spaceLine, ""));
1562
1598
  let r = Infinity;
1563
1599
  for (; e;) {
1564
1600
  if (e.length < r) r = e.length;
@@ -1740,17 +1776,17 @@ ${c}` : c;
1740
1776
  if (this.options.silent) console.error(t);
1741
1777
  else throw Error(t);
1742
1778
  }
1743
- }, J = class {
1779
+ }, xn = class {
1744
1780
  options;
1745
1781
  parser;
1746
1782
  constructor(e) {
1747
- this.options = e || dt;
1783
+ this.options = e || k;
1748
1784
  }
1749
1785
  space(e) {
1750
1786
  return "";
1751
1787
  }
1752
1788
  code({ text: e, lang: t, escaped: n }) {
1753
- let r = (t || "").match(A.notSpaceStart)?.[0], i = e.replace(A.endingNewline, "") + "\n";
1789
+ let r = (t || "").match(M.notSpaceStart)?.[0], i = e.replace(M.endingNewline, "") + "\n";
1754
1790
  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";
1755
1791
  }
1756
1792
  blockquote({ tokens: e }) {
@@ -1830,7 +1866,7 @@ ${e}</tr>
1830
1866
  return `<del>${this.parser.parseInline(e)}</del>`;
1831
1867
  }
1832
1868
  link({ href: e, title: t, tokens: n }) {
1833
- let r = this.parser.parseInline(n), i = dn(e);
1869
+ let r = this.parser.parseInline(n), i = G(e);
1834
1870
  if (i === null) return r;
1835
1871
  e = i;
1836
1872
  let a = "<a href=\"" + e + "\"";
@@ -1838,7 +1874,7 @@ ${e}</tr>
1838
1874
  }
1839
1875
  image({ href: e, title: t, text: n, tokens: r }) {
1840
1876
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1841
- let i = dn(e);
1877
+ let i = G(e);
1842
1878
  if (i === null) return W(n);
1843
1879
  e = i;
1844
1880
  let a = `<img src="${e}" alt="${W(n)}"`;
@@ -1847,7 +1883,7 @@ ${e}</tr>
1847
1883
  text(e) {
1848
1884
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
1849
1885
  }
1850
- }, vn = class {
1886
+ }, Sn = class {
1851
1887
  strong({ text: e }) {
1852
1888
  return e;
1853
1889
  }
@@ -1883,7 +1919,7 @@ ${e}</tr>
1883
1919
  renderer;
1884
1920
  textRenderer;
1885
1921
  constructor(e) {
1886
- this.options = e || dt, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new vn();
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();
1887
1923
  }
1888
1924
  static parse(t, n) {
1889
1925
  return new e(n).parse(t);
@@ -2029,11 +2065,11 @@ ${e}</tr>
2029
2065
  }
2030
2066
  return n;
2031
2067
  }
2032
- }, yn = class {
2068
+ }, X = class {
2033
2069
  options;
2034
2070
  block;
2035
2071
  constructor(e) {
2036
- this.options = e || dt;
2072
+ this.options = e || k;
2037
2073
  }
2038
2074
  static passThroughHooks = /* @__PURE__ */ new Set([
2039
2075
  "preprocess",
@@ -2059,22 +2095,22 @@ ${e}</tr>
2059
2095
  return e;
2060
2096
  }
2061
2097
  provideLexer(e = this.block) {
2062
- return e ? q.lex : q.lexInline;
2098
+ return e ? J.lex : J.lexInline;
2063
2099
  }
2064
2100
  provideParser(e = this.block) {
2065
2101
  return e ? Y.parse : Y.parseInline;
2066
2102
  }
2067
- }, X = new class {
2068
- defaults = ut();
2103
+ }, Z = new class {
2104
+ defaults = mt();
2069
2105
  options = this.setOptions;
2070
2106
  parse = this.parseMarkdown(!0);
2071
2107
  parseInline = this.parseMarkdown(!1);
2072
2108
  Parser = Y;
2073
- Renderer = J;
2074
- TextRenderer = vn;
2075
- Lexer = q;
2076
- Tokenizer = K;
2077
- Hooks = yn;
2109
+ Renderer = xn;
2110
+ TextRenderer = Sn;
2111
+ Lexer = J;
2112
+ Tokenizer = bn;
2113
+ Hooks = X;
2078
2114
  constructor(...e) {
2079
2115
  this.use(...e);
2080
2116
  }
@@ -2125,7 +2161,7 @@ ${e}</tr>
2125
2161
  }
2126
2162
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
2127
2163
  }), n.extensions = t), e.renderer) {
2128
- let t = this.defaults.renderer || new J(this.defaults);
2164
+ let t = this.defaults.renderer || new xn(this.defaults);
2129
2165
  for (let n in e.renderer) {
2130
2166
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
2131
2167
  if (["options", "parser"].includes(n)) continue;
@@ -2138,7 +2174,7 @@ ${e}</tr>
2138
2174
  n.renderer = t;
2139
2175
  }
2140
2176
  if (e.tokenizer) {
2141
- let t = this.defaults.tokenizer || new K(this.defaults);
2177
+ let t = this.defaults.tokenizer || new bn(this.defaults);
2142
2178
  for (let n in e.tokenizer) {
2143
2179
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
2144
2180
  if ([
@@ -2155,13 +2191,13 @@ ${e}</tr>
2155
2191
  n.tokenizer = t;
2156
2192
  }
2157
2193
  if (e.hooks) {
2158
- let t = this.defaults.hooks || new yn();
2194
+ let t = this.defaults.hooks || new X();
2159
2195
  for (let n in e.hooks) {
2160
2196
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
2161
2197
  if (["options", "block"].includes(n)) continue;
2162
2198
  let r = n, i = e.hooks[r], a = t[r];
2163
- yn.passThroughHooks.has(n) ? t[r] = (e) => {
2164
- if (this.defaults.async && yn.passThroughHooksRespectAsync.has(n)) return (async () => {
2199
+ X.passThroughHooks.has(n) ? t[r] = (e) => {
2200
+ if (this.defaults.async && X.passThroughHooksRespectAsync.has(n)) return (async () => {
2165
2201
  let n = await i.call(t, e);
2166
2202
  return a.call(t, n);
2167
2203
  })();
@@ -2198,7 +2234,7 @@ ${e}</tr>
2198
2234
  }, this;
2199
2235
  }
2200
2236
  lexer(e, t) {
2201
- return q.lex(e, t ?? this.defaults);
2237
+ return J.lex(e, t ?? this.defaults);
2202
2238
  }
2203
2239
  parser(e, t) {
2204
2240
  return Y.parse(e, t ?? this.defaults);
@@ -2213,14 +2249,14 @@ ${e}</tr>
2213
2249
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
2214
2250
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
2215
2251
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
2216
- 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;
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;
2217
2253
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
2218
2254
  let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(a, i);
2219
2255
  return i.hooks ? await i.hooks.postprocess(o) : o;
2220
2256
  })().catch(a);
2221
2257
  try {
2222
2258
  i.hooks && (t = i.hooks.preprocess(t));
2223
- let n = (i.hooks ? i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(t, i);
2259
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? J.lex : J.lexInline)(t, i);
2224
2260
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
2225
2261
  let r = (i.hooks ? i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(n, i);
2226
2262
  return i.hooks && (r = i.hooks.postprocess(r)), r;
@@ -2240,24 +2276,24 @@ ${e}</tr>
2240
2276
  };
2241
2277
  }
2242
2278
  }();
2243
- function Z(e, t) {
2244
- return X.parse(e, t);
2245
- }
2246
- Z.options = Z.setOptions = function(e) {
2247
- return X.setOptions(e), Z.defaults = X.defaults, ft(Z.defaults), Z;
2248
- }, Z.getDefaults = ut, Z.defaults = dt, Z.use = function(...e) {
2249
- return X.use(...e), Z.defaults = X.defaults, ft(Z.defaults), Z;
2250
- }, Z.walkTokens = function(e, t) {
2251
- return X.walkTokens(e, t);
2252
- }, Z.parseInline = X.parseInline, Z.Parser = Y, Z.parser = Y.parse, Z.Renderer = J, Z.TextRenderer = vn, Z.Lexer = q, Z.lexer = q.lex, Z.Tokenizer = K, Z.Hooks = yn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Y.parse, q.lex;
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;
2253
2289
  //#endregion
2254
2290
  //#region src/components/ai-chat/ai-chat.module.scss?inline
2255
- var bn = ":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}", xn = ":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))}", Sn = class extends i {
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 {
2256
2292
  constructor(...e) {
2257
2293
  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;
2258
2294
  }
2259
2295
  static {
2260
- this.styles = ee(xn);
2296
+ this.styles = f(wn);
2261
2297
  }
2262
2298
  static {
2263
2299
  this.tagName = "luzmo-ai-chat-empty-state";
@@ -2310,16 +2346,16 @@ var bn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:10
2310
2346
  };
2311
2347
  //#endregion
2312
2348
  //#region src/components/ai-chat/empty-state/index.ts
2313
- a([f({ type: String })], Sn.prototype, "title", void 0), a([f({ type: String })], Sn.prototype, "subtitle", void 0), a([f({ type: Array })], Sn.prototype, "suggestions", void 0), a([f({
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({
2314
2350
  type: Boolean,
2315
2351
  reflect: !0
2316
- })], Sn.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Sn);
2352
+ })], Tn.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", Tn);
2317
2353
  //#endregion
2318
2354
  //#region src/components/ai-chat/ai-chat-request.ts
2319
- function Cn(e, t) {
2355
+ function En(e, t) {
2320
2356
  return `${e.replace(/\/+$/, "")}/${t.replace(/^\/+|\/+$/g, "")}/aiprompt`;
2321
2357
  }
2322
- function wn(e) {
2358
+ function Dn(e) {
2323
2359
  return e.type === "placeholder" ? null : {
2324
2360
  ...e,
2325
2361
  version: e.version || "",
@@ -2328,7 +2364,7 @@ function wn(e) {
2328
2364
  aichartId: e.aichartId || ""
2329
2365
  };
2330
2366
  }
2331
- function Tn(e, t, n = []) {
2367
+ function On(e, t, n = []) {
2332
2368
  return [
2333
2369
  {
2334
2370
  type: "text",
@@ -2344,7 +2380,7 @@ function Tn(e, t, n = []) {
2344
2380
  }))
2345
2381
  ];
2346
2382
  }
2347
- function En(e) {
2383
+ function kn(e) {
2348
2384
  return {
2349
2385
  stream: e.stream ?? !0,
2350
2386
  response_mode: "mixed",
@@ -2352,43 +2388,43 @@ function En(e) {
2352
2388
  ...e.localeId ? { locale_id: e.localeId } : {}
2353
2389
  };
2354
2390
  }
2355
- function Dn(e, t, n) {
2391
+ function An(e, t, n) {
2356
2392
  return {
2357
2393
  agent: e,
2358
2394
  task: t,
2359
- ...En(n)
2395
+ ...kn(n)
2360
2396
  };
2361
2397
  }
2362
- function On(e) {
2363
- let t = Tn(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? wn(e.chart) : null;
2398
+ function jn(e) {
2399
+ let t = On(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? Dn(e.chart) : null;
2364
2400
  return n && t.push({
2365
2401
  type: "item",
2366
2402
  value: n
2367
2403
  }), {
2368
- ...Dn("item", e.task ?? "generate", e),
2404
+ ...An("item", e.task ?? "generate", e),
2369
2405
  input: t
2370
2406
  };
2371
2407
  }
2372
- function kn(e) {
2373
- let t = Tn(e.prompt, e.datasetIds, e.attachmentUrls);
2408
+ function Mn(e) {
2409
+ let t = On(e.prompt, e.datasetIds, e.attachmentUrls);
2374
2410
  return e.dashboard && t.push({
2375
2411
  type: "dashboard",
2376
2412
  value: e.dashboard,
2377
2413
  ...e.currentScreenMode ? { current_screen_mode: e.currentScreenMode } : {}
2378
2414
  }), {
2379
- ...Dn("dashboard", "generate", e),
2415
+ ...An("dashboard", "generate", e),
2380
2416
  timezone_id: e.timezoneId ?? "UTC",
2381
2417
  input: t
2382
2418
  };
2383
2419
  }
2384
- function An(e) {
2420
+ function Nn(e) {
2385
2421
  return {
2386
- ...Dn("analyst", "generate", e),
2387
- input: Tn(e.prompt, e.datasetIds, e.attachmentUrls)
2422
+ ...An("analyst", "generate", e),
2423
+ input: On(e.prompt, e.datasetIds, e.attachmentUrls)
2388
2424
  };
2389
2425
  }
2390
- function jn(e, t) {
2391
- let n = Tn(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? wn(t.chart) : null;
2426
+ function Pn(e, t) {
2427
+ let n = On(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? Dn(t.chart) : null;
2392
2428
  return r && n.push({
2393
2429
  type: "item",
2394
2430
  value: r
@@ -2398,29 +2434,29 @@ function jn(e, t) {
2398
2434
  ...t.currentScreenMode ? { current_screen_mode: t.currentScreenMode } : {}
2399
2435
  }), {
2400
2436
  agent_id: e,
2401
- ...En(t),
2437
+ ...kn(t),
2402
2438
  input: n
2403
2439
  };
2404
2440
  }
2405
- function Mn(e, t) {
2406
- if (t.agentId) return jn(t.agentId, t);
2441
+ function Fn(e, t) {
2442
+ if (t.agentId) return Pn(t.agentId, t);
2407
2443
  switch (e) {
2408
- case "dashboard": return kn(t);
2409
- case "analyst": return An(t);
2410
- default: return On(t);
2444
+ case "dashboard": return Mn(t);
2445
+ case "analyst": return Nn(t);
2446
+ default: return jn(t);
2411
2447
  }
2412
2448
  }
2413
- function Nn(e, n) {
2449
+ function In(e, n) {
2414
2450
  let { authKey: r, authToken: i, apiVersion: a = "0.1.0" } = n;
2415
2451
  return n.attachmentUrls?.length && t(n.attachmentUrls), {
2416
2452
  key: r,
2417
2453
  token: i,
2418
2454
  action: "create",
2419
2455
  version: a,
2420
- properties: Mn(e, n)
2456
+ properties: Fn(e, n)
2421
2457
  };
2422
2458
  }
2423
- function Pn(e, t, n, r = "0.1.0", i = null) {
2459
+ function Ln(e, t, n, r = "0.1.0", i = null) {
2424
2460
  return {
2425
2461
  key: t,
2426
2462
  token: n,
@@ -2435,7 +2471,7 @@ function Pn(e, t, n, r = "0.1.0", i = null) {
2435
2471
  }
2436
2472
  //#endregion
2437
2473
  //#region src/components/ai-chat/stream/transport.ts
2438
- async function Fn(e) {
2474
+ async function Rn(e) {
2439
2475
  let t = await fetch(e.url, {
2440
2476
  method: "POST",
2441
2477
  headers: { "Content-Type": "application/json" },
@@ -2453,21 +2489,21 @@ async function Fn(e) {
2453
2489
  conversationId: t.headers.get("x-conversation-id")
2454
2490
  };
2455
2491
  }
2456
- function In(e) {
2492
+ function zn(e) {
2457
2493
  let t = e.trim();
2458
2494
  if (!t || t.startsWith(":") || t.startsWith("event:") || t.startsWith("id:")) return null;
2459
2495
  let n = t;
2460
2496
  return n.startsWith("data:") && (n = n.slice(5).trimStart()), !n || n === "[DONE]" ? null : JSON.parse(n);
2461
2497
  }
2462
- function Ln(e, t) {
2498
+ function Bn(e, t) {
2463
2499
  try {
2464
- let n = In(e);
2500
+ let n = zn(e);
2465
2501
  n && t(n);
2466
2502
  } catch {
2467
2503
  console.error("Failed to parse stream line");
2468
2504
  }
2469
2505
  }
2470
- async function Rn(e, t) {
2506
+ async function Vn(e, t) {
2471
2507
  let n = e.getReader(), r = new TextDecoder(), i = "";
2472
2508
  try {
2473
2509
  for (;;) {
@@ -2476,18 +2512,18 @@ async function Rn(e, t) {
2476
2512
  i += r.decode(a, { stream: !0 });
2477
2513
  let o = i.split(/\r?\n/);
2478
2514
  i = o.pop() ?? "";
2479
- for (let e of o) Ln(e, t);
2515
+ for (let e of o) Bn(e, t);
2480
2516
  }
2481
2517
  i += r.decode();
2482
2518
  let e = i.trim();
2483
- e && Ln(e, t);
2519
+ e && Bn(e, t);
2484
2520
  } finally {
2485
2521
  n.releaseLock();
2486
2522
  }
2487
2523
  }
2488
2524
  //#endregion
2489
2525
  //#region src/components/ai-chat/stream/progress.ts
2490
- function zn() {
2526
+ function Hn() {
2491
2527
  return {
2492
2528
  id: "root",
2493
2529
  step: "root",
@@ -2500,13 +2536,13 @@ function zn() {
2500
2536
  }]
2501
2537
  };
2502
2538
  }
2503
- function Bn(e) {
2539
+ function Un(e) {
2504
2540
  let t = e.progress;
2505
2541
  return typeof t != "object" || !t ? !1 : "id" in t && "step" in t && "status" in t;
2506
2542
  }
2507
2543
  //#endregion
2508
2544
  //#region src/components/ai-chat/stream/chunk-extractors.ts
2509
- function Vn(e) {
2545
+ function Wn(e) {
2510
2546
  if (!e || typeof e != "object") return "";
2511
2547
  let t = e.assistant_message;
2512
2548
  if (!t || typeof t != "object") return "";
@@ -2516,75 +2552,75 @@ function Vn(e) {
2516
2552
  let n = t.content;
2517
2553
  return typeof n == "string" ? n : n && typeof n == "object" && typeof n.text == "string" ? n.text : "";
2518
2554
  }
2519
- function Hn(e) {
2555
+ function Gn(e) {
2520
2556
  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 : "";
2521
2557
  }
2522
- function Un(e) {
2523
- return Vn(e.result);
2558
+ function Kn(e) {
2559
+ return Wn(e.result);
2524
2560
  }
2525
- function Wn(e) {
2561
+ function qn(e) {
2526
2562
  return !!e.done || e.type === "finish" || e.type === "done" || "question" in e;
2527
2563
  }
2528
- function Gn(e, t) {
2564
+ function Jn(e, t) {
2529
2565
  let n = typeof e.conversation_id == "string" && e.conversation_id || typeof e.conversationId == "string" && e.conversationId;
2530
2566
  n && t.callbacks.onConversationIdChange(n);
2531
2567
  }
2532
- function Kn(e) {
2568
+ function Yn(e) {
2533
2569
  for (let t of e) if (t && typeof t == "object" && t.type === "item") {
2534
2570
  let e = t.value;
2535
2571
  if (e && typeof e == "object") return e;
2536
2572
  }
2537
2573
  return null;
2538
2574
  }
2539
- function qn(e) {
2575
+ function Xn(e) {
2540
2576
  let t = e.chart ?? e.generatedChart;
2541
2577
  if (t && typeof t == "object") return t;
2542
2578
  let n = e.aiMessageAssets ?? e.ai_message_assets;
2543
2579
  if (Array.isArray(n)) {
2544
- let e = Kn(n);
2580
+ let e = Yn(n);
2545
2581
  if (e) return e;
2546
2582
  }
2547
2583
  let r = e.result;
2548
2584
  if (r && typeof r == "object") {
2549
2585
  let e = r.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2550
- if (Array.isArray(t)) return Kn(t);
2586
+ if (Array.isArray(t)) return Yn(t);
2551
2587
  }
2552
2588
  return null;
2553
2589
  }
2554
- function Jn(e) {
2590
+ function Zn(e) {
2555
2591
  for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2556
2592
  let e = t.value;
2557
2593
  if (e && typeof e == "object" && Array.isArray(e.views)) return e;
2558
2594
  }
2559
2595
  return null;
2560
2596
  }
2561
- function Yn(e) {
2597
+ function Qn(e) {
2562
2598
  for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
2563
2599
  let e = t.name;
2564
2600
  if (e && typeof e == "object") return e;
2565
2601
  }
2566
2602
  }
2567
- function Xn(...e) {
2603
+ function $n(...e) {
2568
2604
  return e.find(Array.isArray);
2569
2605
  }
2570
- function Zn(e) {
2606
+ function er(e) {
2571
2607
  if (e.views && Array.isArray(e.views)) return e;
2572
2608
  let t = e.aiMessageAssets ?? e.ai_message_assets;
2573
- if (Array.isArray(t)) return Jn(t);
2609
+ if (Array.isArray(t)) return Zn(t);
2574
2610
  let n = e.result;
2575
2611
  if (n && typeof n == "object") {
2576
2612
  let e = n.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
2577
- if (Array.isArray(t)) return Jn(t);
2613
+ if (Array.isArray(t)) return Zn(t);
2578
2614
  }
2579
2615
  return null;
2580
2616
  }
2581
- function Qn(e) {
2582
- let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = Xn(t, n?.aiMessageAssets ?? n?.ai_message_assets);
2583
- return r ? Yn(r) : void 0;
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;
2584
2620
  }
2585
2621
  //#endregion
2586
2622
  //#region src/components/ai-chat/stream/stream-processor.ts
2587
- var $n = /* @__PURE__ */ new Set([
2623
+ var nr = /* @__PURE__ */ new Set([
2588
2624
  "conversation-id",
2589
2625
  "conversation_id",
2590
2626
  "keepalive",
@@ -2592,7 +2628,7 @@ var $n = /* @__PURE__ */ new Set([
2592
2628
  "finish",
2593
2629
  "done"
2594
2630
  ]);
2595
- function er(e, t, n) {
2631
+ function rr(e, t, n) {
2596
2632
  return {
2597
2633
  agent: n.agent,
2598
2634
  conversationId: t.callbacks.getConversationId(),
@@ -2600,128 +2636,128 @@ function er(e, t, n) {
2600
2636
  raw: e
2601
2637
  };
2602
2638
  }
2603
- function Q(e, t, n, r, i) {
2639
+ function ir(e, t, n, r, i) {
2604
2640
  let a = {
2605
- ...er(n, e, t),
2641
+ ...rr(n, e, t),
2606
2642
  recognized: !0,
2607
2643
  type: r,
2608
2644
  data: i
2609
2645
  };
2610
2646
  e.callbacks.onStep(a);
2611
2647
  }
2612
- function tr(e, t, n, r, i) {
2648
+ function ar(e, t, n, r, i) {
2613
2649
  let a = {
2614
- ...er(n, e, t),
2650
+ ...rr(n, e, t),
2615
2651
  recognized: !1,
2616
2652
  type: r,
2617
2653
  data: i
2618
2654
  };
2619
2655
  e.callbacks.onStep(a);
2620
2656
  }
2621
- function nr(e) {
2657
+ function or(e) {
2622
2658
  e.state.progressCollapsed || (e.state.progressCollapsed = !0, e.callbacks.onProgressCollapsed(!0));
2623
2659
  }
2624
- function rr(e, t) {
2625
- nr(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
2660
+ function sr(e, t) {
2661
+ or(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
2626
2662
  }
2627
- function ir(e) {
2663
+ function cr(e) {
2628
2664
  if (!e) return null;
2629
2665
  let t = e.descriptionMetadata?.decision;
2630
2666
  if (t === "create" || t === "edit" || t === "question") return t;
2631
2667
  for (let t of e.children ?? []) {
2632
- let e = ir(t);
2668
+ let e = cr(t);
2633
2669
  if (e) return e;
2634
2670
  }
2635
2671
  return null;
2636
2672
  }
2637
- function ar(e, t, n) {
2638
- if (!Bn(e)) return !1;
2673
+ function lr(e, t, n) {
2674
+ if (!Un(e)) return !1;
2639
2675
  let r = e.progress;
2640
- if (t.callbacks.onProgress(r), Q(t, n, e, "progress", r), t.state.decision === null) {
2641
- let i = ir(r);
2642
- i && (t.state.decision = i, Q(t, n, e, "decision", { decision: i }));
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 }));
2643
2679
  }
2644
2680
  return !0;
2645
2681
  }
2646
- function or(e) {
2682
+ function ur(e) {
2647
2683
  return !!e.error || e.type === "error" || typeof e.error_text == "string";
2648
2684
  }
2649
- function sr(e) {
2685
+ function dr(e) {
2650
2686
  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" });
2651
2687
  }
2652
- function cr(e, t, n) {
2653
- if (!or(e)) return !1;
2654
- let r = sr(e);
2655
- return t.aiMessage.message = r, t.aiMessage.isError = !0, t.callbacks.onMessageUpdate(t.aiMessage), kr(e, t, n, e.error ?? r), !0;
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;
2656
2692
  }
2657
- function lr(e) {
2693
+ function pr(e) {
2658
2694
  return typeof e.question == "string" && e.question ? e.question : typeof e.text == "string" && e.text ? e.text : "";
2659
2695
  }
2660
- function ur(e, t, n) {
2696
+ function mr(e, t, n) {
2661
2697
  if (e.type !== "interrupt") return !1;
2662
- let r = lr(e);
2663
- return r && (t.state.interruptQuestion = r, rr(t, r), Q(t, n, e, "interrupt", { question: r })), kr(e, t, n), !0;
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;
2664
2700
  }
2665
- function dr(e) {
2701
+ function hr(e) {
2666
2702
  return typeof e.asset_id == "string" ? e.asset_id : typeof e.asset_type == "string" ? e.asset_type : "default";
2667
2703
  }
2668
- function fr(e) {
2704
+ function gr(e) {
2669
2705
  return typeof e.asset_type == "string" ? e.asset_type : "";
2670
2706
  }
2671
- function pr(e) {
2707
+ function _r(e) {
2672
2708
  return {
2673
- assetType: fr(e),
2709
+ assetType: gr(e),
2674
2710
  snapshot: {}
2675
2711
  };
2676
2712
  }
2677
- function mr(e, t) {
2713
+ function vr(e, t) {
2678
2714
  return {
2679
2715
  ...e,
2680
2716
  ...t
2681
2717
  };
2682
2718
  }
2683
- function hr(e) {
2719
+ function yr(e) {
2684
2720
  let t = e.asset_delta ?? e.delta;
2685
2721
  return t && typeof t == "object" ? t : null;
2686
2722
  }
2687
- function gr(e, t) {
2688
- t.state.assets[dr(e)] = pr(e);
2723
+ function br(e, t) {
2724
+ t.state.assets[hr(e)] = _r(e);
2689
2725
  }
2690
- function _r(e, t) {
2691
- let n = dr(e), r = t.state.assets[n] ?? pr(e), i = hr(e);
2692
- i && (r.snapshot = mr(r.snapshot, i)), t.state.assets[n] = r;
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;
2693
2729
  }
2694
- function vr(e, t) {
2730
+ function Sr(e, t) {
2695
2731
  let n = e.asset ?? e.value ?? e.asset_delta ?? e.delta;
2696
- return n && typeof n == "object" ? mr(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
2732
+ return n && typeof n == "object" ? vr(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
2697
2733
  }
2698
- function yr(e, t, n) {
2699
- let r = dr(e), i = t.state.assets[r], a = i?.assetType || fr(e), o = vr(e, i);
2700
- delete t.state.assets[r], Sr(a, o, e, t, n);
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);
2701
2737
  }
2702
- function br(e, t, n) {
2738
+ function wr(e, t, n) {
2703
2739
  switch (e.type) {
2704
- case "asset_start": return gr(e, t), !0;
2705
- case "asset_delta": return _r(e, t), !0;
2706
- case "asset_end": return yr(e, t, n), !0;
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;
2707
2743
  default: return !1;
2708
2744
  }
2709
2745
  }
2710
- function xr(e, t, n, r) {
2711
- n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), Q(n, r, t, "chart", e);
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);
2712
2748
  }
2713
- function Sr(e, t, n, r, i) {
2749
+ function Er(e, t, n, r, i) {
2714
2750
  switch (e) {
2715
2751
  case "dashboard-title": {
2716
2752
  let e = t.name;
2717
- e && typeof e == "object" && (r.state.dashboardName = e, Q(r, i, n, "dashboard-title", { name: e }));
2753
+ e && typeof e == "object" && (r.state.dashboardName = e, ir(r, i, n, "dashboard-title", { name: e }));
2718
2754
  return;
2719
2755
  }
2720
2756
  case "dashboard-layout":
2721
- Q(r, i, n, "dashboard-layout", t);
2757
+ ir(r, i, n, "dashboard-layout", t);
2722
2758
  return;
2723
2759
  case "dashboard-item":
2724
- Q(r, i, n, "dashboard-item", {
2760
+ ir(r, i, n, "dashboard-item", {
2725
2761
  slot: Number(t.slot),
2726
2762
  chart: t.chart ?? t
2727
2763
  });
@@ -2729,68 +2765,68 @@ function Sr(e, t, n, r, i) {
2729
2765
  case "dashboard":
2730
2766
  r.state.dashboardSnapshot = t;
2731
2767
  return;
2732
- default: Cr(e, t, n, r, i);
2768
+ default: Dr(e, t, n, r, i);
2733
2769
  }
2734
2770
  }
2735
- function Cr(e, t, n, r, i) {
2771
+ function Dr(e, t, n, r, i) {
2736
2772
  if (i.chartAssetType && e === i.chartAssetType) {
2737
- xr(t, n, r, i);
2773
+ Tr(t, n, r, i);
2738
2774
  return;
2739
2775
  }
2740
2776
  if (i.dashboardAssetType && e === i.dashboardAssetType) {
2741
2777
  r.state.dashboardSnapshot = t;
2742
2778
  return;
2743
2779
  }
2744
- tr(r, i, n, e || "asset", t);
2780
+ ar(r, i, n, e || "asset", t);
2745
2781
  }
2746
- function wr(e, t, n) {
2782
+ function Or(e, t, n) {
2747
2783
  let r = !1;
2748
2784
  if (n.dashboardAssetType) {
2749
- let n = Zn(e);
2785
+ let n = er(e);
2750
2786
  if (n) {
2751
2787
  t.state.dashboardSnapshot = n;
2752
- let i = Qn(e);
2788
+ let i = tr(e);
2753
2789
  i && (t.state.dashboardName = i), r = !0;
2754
2790
  }
2755
2791
  }
2756
2792
  if (n.chartAssetType && !t.state.chartSnapshot) {
2757
- let i = qn(e);
2758
- i && (xr(i, e, t, n), r = !0);
2793
+ let i = Xn(e);
2794
+ i && (Tr(i, e, t, n), r = !0);
2759
2795
  }
2760
2796
  return r;
2761
2797
  }
2762
- function Tr(e, t, n) {
2798
+ function kr(e, t, n) {
2763
2799
  return {
2764
2800
  ...e,
2765
2801
  generatedChart: t,
2766
2802
  conversationId: n.callbacks.getConversationId()
2767
2803
  };
2768
2804
  }
2769
- function Er(e, t, n) {
2805
+ function Ar(e, t, n) {
2770
2806
  for (let r of Object.keys(t.state.assets)) {
2771
2807
  let i = t.state.assets[r];
2772
- delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot) && Sr(i.assetType, i.snapshot, e, t, n);
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);
2773
2809
  }
2774
2810
  }
2775
- function Dr(e, t) {
2776
- let n = Un(e);
2811
+ function jr(e, t) {
2812
+ let n = Kn(e);
2777
2813
  !n || t.aiMessage.message === n || (t.aiMessage.message = n, t.callbacks.onMessageUpdate(t.aiMessage));
2778
2814
  }
2779
- function Or(e, t, n) {
2780
- let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? Zn(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? qn(e) : null);
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);
2781
2817
  return {
2782
2818
  agent: n.agent,
2783
2819
  conversationId: t.callbacks.getConversationId(),
2784
2820
  message: t.aiMessage,
2785
2821
  ...r ? { dashboard: r } : {},
2786
- ...i ? { chart: Tr(e, i, t) } : {},
2822
+ ...i ? { chart: kr(e, i, t) } : {},
2787
2823
  ...t.state.dashboardName ? { name: t.state.dashboardName } : {},
2788
2824
  raw: e
2789
2825
  };
2790
2826
  }
2791
- function kr(e, t, n, r) {
2827
+ function Nr(e, t, n, r) {
2792
2828
  if (!t.state.completed) {
2793
- if (t.state.completed = !0, Er(e, t, n), nr(t), r !== void 0) {
2829
+ if (t.state.completed = !0, Ar(e, t, n), or(t), r !== void 0) {
2794
2830
  t.callbacks.onComplete({
2795
2831
  agent: n.agent,
2796
2832
  conversationId: t.callbacks.getConversationId(),
@@ -2800,32 +2836,32 @@ function kr(e, t, n, r) {
2800
2836
  });
2801
2837
  return;
2802
2838
  }
2803
- Dr(e, t), t.callbacks.onComplete(Or(e, t, n));
2839
+ jr(e, t), t.callbacks.onComplete(Mr(e, t, n));
2804
2840
  }
2805
2841
  }
2806
- function Ar(e) {
2842
+ function Pr(e) {
2807
2843
  return typeof e.type == "string" && e.type ? e.type : typeof e.asset_type == "string" && e.asset_type ? e.asset_type : "";
2808
2844
  }
2809
- function jr(e, t, n) {
2810
- let r = Hn(e);
2811
- return r ? (t.state.accumulatedText += r, rr(t, r), Q(t, n, e, "text", {
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", {
2812
2848
  delta: r,
2813
2849
  text: t.state.accumulatedText
2814
2850
  }), !0) : !1;
2815
2851
  }
2816
- function Mr(e, t, n, r, i) {
2852
+ function Ir(e, t, n, r, i) {
2817
2853
  if (r || i) return;
2818
- let a = Ar(e);
2819
- a && !$n.has(a) && tr(t, n, e, a, e);
2854
+ let a = Pr(e);
2855
+ a && !nr.has(a) && ar(t, n, e, a, e);
2820
2856
  }
2821
- function Nr(e, t, n) {
2822
- if (Gn(e, t), ar(e, t, n) || cr(e, t, n) || ur(e, t, n) || br(e, t, n)) return;
2823
- let r = jr(e, t, n), i = wr(e, t, n), a = r || i, o = Wn(e);
2824
- Mr(e, t, n, a, o), o && kr(e, t, n);
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);
2825
2861
  }
2826
2862
  //#endregion
2827
2863
  //#region src/components/ai-chat/stream/registry.ts
2828
- function Pr(e) {
2864
+ function Rr(e) {
2829
2865
  switch (e) {
2830
2866
  case "dashboard": return {
2831
2867
  agent: e,
@@ -2838,11 +2874,11 @@ function Pr(e) {
2838
2874
  default: return { agent: e };
2839
2875
  }
2840
2876
  }
2841
- function Fr(e) {
2842
- let t = Pr(e);
2843
- return (e, n) => Nr(e, n, t);
2877
+ function zr(e) {
2878
+ let t = Rr(e);
2879
+ return (e, n) => Lr(e, n, t);
2844
2880
  }
2845
- function Ir() {
2881
+ function Br() {
2846
2882
  return {
2847
2883
  progressCollapsed: !1,
2848
2884
  accumulatedText: "",
@@ -2857,10 +2893,10 @@ function Ir() {
2857
2893
  }
2858
2894
  //#endregion
2859
2895
  //#region src/components/ai-chat/session/ai-chat-session.ts
2860
- function Lr() {
2896
+ function Vr() {
2861
2897
  return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
2862
2898
  }
2863
- var Rr = class {
2899
+ var Hr = class {
2864
2900
  constructor(e, t = {}) {
2865
2901
  this._uiBridgeCallbacks = {}, this._subscribers = /* @__PURE__ */ new Set(), this._state = {
2866
2902
  messages: [],
@@ -2933,10 +2969,10 @@ var Rr = class {
2933
2969
  return !this._config.requireDataset || this._state.selectedDatasets.length > 0;
2934
2970
  }
2935
2971
  getAiPromptUrl() {
2936
- return Cn(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
2972
+ return En(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
2937
2973
  }
2938
2974
  buildRequestBody(e, t, n = []) {
2939
- return Nn(this._config.agent, {
2975
+ return In(this._config.agent, {
2940
2976
  prompt: e,
2941
2977
  datasetIds: t,
2942
2978
  authKey: this._config.authKey,
@@ -3010,13 +3046,13 @@ var Rr = class {
3010
3046
  }
3011
3047
  if (n.signal.aborted || this._abortController !== n) return;
3012
3048
  let i = {
3013
- id: e.aiMessageId ?? Lr(),
3049
+ id: e.aiMessageId ?? Vr(),
3014
3050
  type: "ai",
3015
3051
  message: ""
3016
3052
  }, a = [...this._state.messages];
3017
3053
  if (!e.skipUserMessage) {
3018
3054
  let t = {
3019
- id: Lr(),
3055
+ id: Vr(),
3020
3056
  type: "user",
3021
3057
  message: e.prompt,
3022
3058
  ...r.length ? { attachmentUrls: r } : {}
@@ -3026,7 +3062,7 @@ var Rr = class {
3026
3062
  a = [...a, i], this._inflightMessage = i, this._receivedProgress = !1, this._patchState({
3027
3063
  messages: a,
3028
3064
  isGenerating: !0,
3029
- progress: zn(),
3065
+ progress: Hn(),
3030
3066
  progressCollapsed: !1,
3031
3067
  inflightMessage: i
3032
3068
  });
@@ -3047,27 +3083,27 @@ var Rr = class {
3047
3083
  }
3048
3084
  return;
3049
3085
  }
3050
- let c = this.buildRequestBody(e.prompt, t, r), l = Fr(this._config.agent), u = {
3086
+ let c = this.buildRequestBody(e.prompt, t, r), l = zr(this._config.agent), u = {
3051
3087
  aiMessage: i,
3052
3088
  callbacks: this._createStreamCallbacks(),
3053
- state: Ir()
3054
- }, d = this._config.fetchStreaming ?? Fn, ee = !1;
3089
+ state: Br()
3090
+ }, d = this._config.fetchStreaming ?? Rn, f = !1;
3055
3091
  try {
3056
3092
  let { body: e, conversationId: t } = await d({
3057
3093
  url: this.getAiPromptUrl(),
3058
3094
  body: c,
3059
3095
  signal: n.signal
3060
3096
  });
3061
- t && this._setConversationId(t), await Rn(e, (e) => l(e, u)), ee = !0;
3097
+ t && this._setConversationId(t), await Vn(e, (e) => l(e, u)), f = !0;
3062
3098
  } catch (e) {
3063
- e.name !== "AbortError" && (this._handleSubmitError(e, i), ee = !0);
3099
+ e.name !== "AbortError" && (this._handleSubmitError(e, i), f = !0);
3064
3100
  } finally {
3065
- this._abortController === n && (ee ? this._finalizeInflightMessage() : this._discardInflightMessage(), this._patchState({ isGenerating: !1 }), this._abortController = null);
3101
+ this._abortController === n && (f ? this._finalizeInflightMessage() : this._discardInflightMessage(), this._patchState({ isGenerating: !1 }), this._abortController = null);
3066
3102
  }
3067
3103
  }
3068
3104
  async restore(e) {
3069
3105
  if (this._config.agent !== "item") return {};
3070
- let t = Pn(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3106
+ let t = Ln(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3071
3107
  if (this._patchState({
3072
3108
  isGenerating: !0,
3073
3109
  progress: null,
@@ -3097,7 +3133,7 @@ var Rr = class {
3097
3133
  let e = await n.json().catch(() => null);
3098
3134
  throw Error(e?.message || `API request failed with status ${n.status}`);
3099
3135
  }
3100
- let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? qn(r) : null), a = {
3136
+ let r = await n.json().catch(() => null), i = r?.generatedChart ?? (r ? Xn(r) : null), a = {
3101
3137
  ...typeof r?.message == "string" ? { message: r.message } : {},
3102
3138
  ...i ? { chart: {
3103
3139
  ...r,
@@ -3109,7 +3145,7 @@ var Rr = class {
3109
3145
  message: a.message
3110
3146
  }), this._patchState({ messages: [...o] }), a.chart || a.message) {
3111
3147
  let t = o[e.messageIndex], n = t?.type === "ai" ? t : {
3112
- id: Lr(),
3148
+ id: Vr(),
3113
3149
  type: "ai",
3114
3150
  message: a.message ?? ""
3115
3151
  };
@@ -3127,7 +3163,7 @@ var Rr = class {
3127
3163
  }
3128
3164
  }
3129
3165
  buildRestoreRequest(e) {
3130
- return Pn(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3166
+ return Ln(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
3131
3167
  }
3132
3168
  abort(e = {}) {
3133
3169
  this._abortController?.abort(), this._abortController = null, e.notify && this._inflightMessage ? this._markInflightCancelled(e.cancelledMessage) : this._discardInflightMessage(), this._patchState({
@@ -3231,12 +3267,12 @@ var Rr = class {
3231
3267
  });
3232
3268
  }
3233
3269
  };
3234
- function zr(e, t) {
3235
- return new Rr(e, t);
3270
+ function Ur(e, t) {
3271
+ return new Hr(e, t);
3236
3272
  }
3237
3273
  //#endregion
3238
3274
  //#region src/components/ai-chat/session/ai-chat-session-controller.ts
3239
- var Br = class {
3275
+ var Wr = class {
3240
3276
  constructor(e) {
3241
3277
  this.options = e, this._session = null, this._ownsSession = !1, this._seededFromProps = !1, this._unsubscribe = null;
3242
3278
  }
@@ -3302,7 +3338,7 @@ var Br = class {
3302
3338
  _createSessionIfMissing() {
3303
3339
  if (this._session) return;
3304
3340
  let e = this.options.getSeed();
3305
- this._session = zr({
3341
+ this._session = Ur({
3306
3342
  ...this.options.getConfig(),
3307
3343
  messages: e.messages.length > 0 ? [...e.messages] : void 0,
3308
3344
  selectedDatasets: e.selectedDatasets.length > 0 ? [...e.selectedDatasets] : void 0
@@ -3326,7 +3362,7 @@ var Br = class {
3326
3362
  }
3327
3363
  }, $ = class t extends i {
3328
3364
  constructor(...e) {
3329
- 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.flagOpendata = !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 Br({
3365
+ 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.flagOpendata = !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({
3330
3366
  getConfig: () => this._buildSessionConfig(),
3331
3367
  getSeed: () => ({
3332
3368
  messages: this.messages,
@@ -3345,7 +3381,7 @@ var Br = class {
3345
3381
  };
3346
3382
  }
3347
3383
  static {
3348
- this.styles = ee(bn);
3384
+ this.styles = f(Cn);
3349
3385
  }
3350
3386
  static {
3351
3387
  this.tagName = "luzmo-ai-chat";
@@ -3525,8 +3561,8 @@ var Br = class {
3525
3561
  this.initialPrompt && this.initialPrompt !== this._lastProcessedInitialPrompt ? this._processInitialPrompt() : this.initialPrompt || (this._lastProcessedInitialPrompt = null);
3526
3562
  }
3527
3563
  _renderMarkdown(e) {
3528
- let t = String(Z.parse(e, { async: !1 }));
3529
- return lt.sanitize(t, {
3564
+ let t = String(Q.parse(e, { async: !1 }));
3565
+ return pt.sanitize(t, {
3530
3566
  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("."),
3531
3567
  ALLOWED_ATTR: [
3532
3568
  "href",
@@ -3736,10 +3772,10 @@ var Br = class {
3736
3772
  _renderMessages() {
3737
3773
  let { messages: e, inflightMessage: t, isGenerating: n } = this._getRenderState(), r = t !== null, i = e.filter((e) => !t || e.id !== t.id), a = [...i].reverse().find((e) => e.type === "ai"), s = a?.id;
3738
3774
  return i.map((t) => {
3739
- let c = !!t.progress?.children?.length, l = c && this._isLastAiMessageWithProgress(t, i), ee = c && (r || n || !l), f = c ? u`
3775
+ let c = !!t.progress?.children?.length, l = c && this._isLastAiMessageWithProgress(t, i), f = c && (r || n || !l), p = c ? u`
3740
3776
  <luzmo-progress-steps
3741
3777
  .progress=${t.progress}
3742
- ?condensed=${ee}
3778
+ ?condensed=${f}
3743
3779
  collapsed
3744
3780
  no-animate
3745
3781
  size="s"
@@ -3773,23 +3809,23 @@ var Br = class {
3773
3809
  </luzmo-chat-message>
3774
3810
  `;
3775
3811
  }
3776
- let p = e.indexOf(t), m = t.isError ? "error" : t.isCancelled ? "cancelled" : "", ne = t.isCancelled ? t.message : u`<div class="markdown-content">${te(this._renderMarkdown(t.message))}</div>`;
3812
+ let m = e.indexOf(t), h = t.isError ? "error" : t.isCancelled ? "cancelled" : "", g = t.isCancelled ? t.message : u`<div class="markdown-content">${ee(this._renderMarkdown(t.message))}</div>`;
3777
3813
  return u`
3778
- ${f}
3814
+ ${p}
3779
3815
  <div class="assistant-message-wrapper">
3780
3816
  <div class="assistant-message-body">
3781
3817
  <luzmo-chat-message
3782
- class=${m}
3818
+ class=${h}
3783
3819
  role=${t.isError ? "alert" : d}
3784
3820
  avatar-placement="bottom"
3785
3821
  position="left"
3786
3822
  quiet
3787
3823
  size="s"
3788
3824
  >
3789
- ${ne}
3825
+ ${g}
3790
3826
  </luzmo-chat-message>
3791
3827
 
3792
- ${this._renderRestoreMenu(t, p, s, r)}
3828
+ ${this._renderRestoreMenu(t, m, s, r)}
3793
3829
  </div>
3794
3830
 
3795
3831
  ${this._renderAssistantMessageActions(t, a)}
@@ -3806,7 +3842,7 @@ var Br = class {
3806
3842
  quiet
3807
3843
  size="s"
3808
3844
  >
3809
- <div class="markdown-content">${te(this._renderMarkdown(e.message))}</div>
3845
+ <div class="markdown-content">${ee(this._renderMarkdown(e.message))}</div>
3810
3846
  </luzmo-chat-message>
3811
3847
  ` : d;
3812
3848
  }
@@ -3887,112 +3923,112 @@ var Br = class {
3887
3923
  `;
3888
3924
  }
3889
3925
  };
3890
- a([f({ type: Array })], $.prototype, "messages", void 0), a([f({
3926
+ a([p({ type: Array })], $.prototype, "messages", void 0), a([p({
3891
3927
  type: Array,
3892
3928
  attribute: "selected-datasets"
3893
- })], $.prototype, "selectedDatasets", void 0), a([f({ type: String })], $.prototype, "placeholder", void 0), a([f({
3929
+ })], $.prototype, "selectedDatasets", void 0), a([p({ type: String })], $.prototype, "placeholder", void 0), a([p({
3894
3930
  type: Boolean,
3895
3931
  reflect: !0
3896
- })], $.prototype, "disabled", void 0), a([f({
3932
+ })], $.prototype, "disabled", void 0), a([p({
3897
3933
  type: Boolean,
3898
3934
  reflect: !0
3899
- })], $.prototype, "stoppable", void 0), a([f({
3935
+ })], $.prototype, "stoppable", void 0), a([p({
3900
3936
  type: Boolean,
3901
3937
  attribute: "show-assistant-context-menu"
3902
- })], $.prototype, "showAssistantContextMenu", void 0), a([f({
3938
+ })], $.prototype, "showAssistantContextMenu", void 0), a([p({
3903
3939
  type: String,
3904
3940
  attribute: "auth-key"
3905
- })], $.prototype, "authKey", void 0), a([f({
3941
+ })], $.prototype, "authKey", void 0), a([p({
3906
3942
  type: String,
3907
3943
  attribute: "auth-token"
3908
- })], $.prototype, "authToken", void 0), a([f({
3944
+ })], $.prototype, "authToken", void 0), a([p({
3909
3945
  type: String,
3910
3946
  attribute: "api-url"
3911
- })], $.prototype, "apiUrl", void 0), a([f({
3947
+ })], $.prototype, "apiUrl", void 0), a([p({
3912
3948
  type: String,
3913
3949
  attribute: "app-server"
3914
- })], $.prototype, "appServer", void 0), a([f({
3950
+ })], $.prototype, "appServer", void 0), a([p({
3915
3951
  type: Boolean,
3916
3952
  attribute: "flag-opendata"
3917
- })], $.prototype, "flagOpendata", void 0), a([f({
3953
+ })], $.prototype, "flagOpendata", void 0), a([p({
3918
3954
  type: Boolean,
3919
3955
  attribute: "hide-dataset-button"
3920
- })], $.prototype, "hideDatasetButton", void 0), a([f({
3956
+ })], $.prototype, "hideDatasetButton", void 0), a([p({
3921
3957
  type: Boolean,
3922
3958
  attribute: "hide-dataset-icons"
3923
- })], $.prototype, "hideDatasetIcons", void 0), a([f({
3959
+ })], $.prototype, "hideDatasetIcons", void 0), a([p({
3924
3960
  type: Boolean,
3925
3961
  attribute: "disable-dataset-modification"
3926
- })], $.prototype, "disableDatasetModification", void 0), a([f({
3962
+ })], $.prototype, "disableDatasetModification", void 0), a([p({
3927
3963
  type: Boolean,
3928
3964
  attribute: "hide-selected-datasets"
3929
- })], $.prototype, "hideSelectedDatasets", void 0), a([f({
3965
+ })], $.prototype, "hideSelectedDatasets", void 0), a([p({
3930
3966
  type: Boolean,
3931
3967
  attribute: "disable-column-mentions"
3932
- })], $.prototype, "disableColumnMentions", void 0), a([f({
3968
+ })], $.prototype, "disableColumnMentions", void 0), a([p({
3933
3969
  type: Boolean,
3934
3970
  attribute: "require-dataset"
3935
- })], $.prototype, "requireDataset", void 0), a([f({
3971
+ })], $.prototype, "requireDataset", void 0), a([p({
3936
3972
  type: Boolean,
3937
3973
  reflect: !0,
3938
3974
  attribute: "allow-images"
3939
- })], $.prototype, "allowImages", void 0), a([f({
3975
+ })], $.prototype, "allowImages", void 0), a([p({
3940
3976
  type: Boolean,
3941
3977
  reflect: !0,
3942
3978
  attribute: "allow-voice-input"
3943
- })], $.prototype, "allowVoiceInput", void 0), a([f({
3979
+ })], $.prototype, "allowVoiceInput", void 0), a([p({
3944
3980
  type: Array,
3945
3981
  attribute: "accepted-file-types"
3946
- })], $.prototype, "acceptedFileTypes", void 0), a([f({ attribute: !1 })], $.prototype, "uploadAttachments", void 0), a([f({ type: String })], $.prototype, "agent", void 0), a([f({
3982
+ })], $.prototype, "acceptedFileTypes", void 0), a([p({ attribute: !1 })], $.prototype, "uploadAttachments", void 0), a([p({ type: String })], $.prototype, "agent", void 0), a([p({
3947
3983
  type: String,
3948
3984
  attribute: "agent-id"
3949
- })], $.prototype, "agentId", void 0), a([f({ type: String })], $.prototype, "task", void 0), a([f({
3985
+ })], $.prototype, "agentId", void 0), a([p({ type: String })], $.prototype, "task", void 0), a([p({
3950
3986
  type: String,
3951
3987
  attribute: "model-preference"
3952
- })], $.prototype, "modelPreference", void 0), a([f({ attribute: !1 })], $.prototype, "chatSession", void 0), a([f({
3988
+ })], $.prototype, "modelPreference", void 0), a([p({ attribute: !1 })], $.prototype, "chatSession", void 0), a([p({
3953
3989
  type: String,
3954
3990
  attribute: "conversation-id"
3955
- })], $.prototype, "conversationId", void 0), a([f({
3991
+ })], $.prototype, "conversationId", void 0), a([p({
3956
3992
  type: Object,
3957
3993
  attribute: "chart"
3958
- })], $.prototype, "chart", void 0), a([f({ type: Object })], $.prototype, "dashboard", void 0), a([f({
3994
+ })], $.prototype, "chart", void 0), a([p({ type: Object })], $.prototype, "dashboard", void 0), a([p({
3959
3995
  type: String,
3960
3996
  attribute: "current-screen-mode"
3961
- })], $.prototype, "currentScreenMode", void 0), a([f({
3997
+ })], $.prototype, "currentScreenMode", void 0), a([p({
3962
3998
  type: String,
3963
3999
  attribute: "locale-id"
3964
- })], $.prototype, "localeId", void 0), a([f({
4000
+ })], $.prototype, "localeId", void 0), a([p({
3965
4001
  type: String,
3966
4002
  attribute: "timezone-id"
3967
- })], $.prototype, "timezoneId", void 0), a([f({
4003
+ })], $.prototype, "timezoneId", void 0), a([p({
3968
4004
  type: String,
3969
4005
  attribute: "api-version"
3970
- })], $.prototype, "apiVersion", void 0), a([f({ converter: { fromAttribute: (e) => e !== "false" && e !== null } })], $.prototype, "stream", void 0), a([f({
4006
+ })], $.prototype, "apiVersion", void 0), a([p({ converter: { fromAttribute: (e) => e !== "false" && e !== null } })], $.prototype, "stream", void 0), a([p({
3971
4007
  type: String,
3972
4008
  attribute: "loading-message"
3973
- })], $.prototype, "loadingMessage", void 0), a([f({
4009
+ })], $.prototype, "loadingMessage", void 0), a([p({
3974
4010
  type: String,
3975
4011
  attribute: "cancelled-message"
3976
- })], $.prototype, "cancelledMessage", void 0), a([f({
4012
+ })], $.prototype, "cancelledMessage", void 0), a([p({
3977
4013
  type: String,
3978
4014
  attribute: "initial-prompt"
3979
- })], $.prototype, "initialPrompt", void 0), a([f({
4015
+ })], $.prototype, "initialPrompt", void 0), a([p({
3980
4016
  type: String,
3981
4017
  attribute: "empty-state-title"
3982
- })], $.prototype, "emptyStateTitle", void 0), a([f({
4018
+ })], $.prototype, "emptyStateTitle", void 0), a([p({
3983
4019
  type: String,
3984
4020
  attribute: "empty-state-subtitle"
3985
- })], $.prototype, "emptyStateSubtitle", void 0), a([f({
4021
+ })], $.prototype, "emptyStateSubtitle", void 0), a([p({
3986
4022
  type: Array,
3987
4023
  attribute: !1
3988
- })], $.prototype, "emptyStateSuggestions", void 0), a([p()], $.prototype, "_textareaValue", void 0), a([p()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), a([p()], $.prototype, "_pendingAssistantMessageAction", void 0);
4024
+ })], $.prototype, "emptyStateSuggestions", void 0), a([m()], $.prototype, "_textareaValue", void 0), a([m()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), a([m()], $.prototype, "_pendingAssistantMessageAction", void 0);
3989
4025
  //#endregion
3990
4026
  //#region src/components/ai-chat/ai-chat-events.ts
3991
- function Vr(e) {
4027
+ function Gr(e) {
3992
4028
  return e.recognized === !0;
3993
4029
  }
3994
4030
  //#endregion
3995
4031
  //#region src/components/ai-chat/index.ts
3996
4032
  customElements.get("luzmo-ai-chat") || customElements.define("luzmo-ai-chat", $);
3997
4033
  //#endregion
3998
- export { jn as C, Sn as E, On as S, Cn as T, Pn as _, zr as a, An as b, Pr as c, Zn as d, zn as f, Rn as g, In as h, Rr as i, Nr as l, Fn as m, $ as n, Ir as o, Bn as p, Br as r, Fr as s, Vr as t, qn as u, Mn as v, wn as w, kn as x, Nn as y };
4034
+ 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 };