@mhmo91/schmancy 0.2.199 → 0.2.200

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 (280) hide show
  1. package/dist/_commonjsHelpers-Dw9sPFZy.js +7 -0
  2. package/dist/_commonjsHelpers-Dw9sPFZy.js.map +1 -0
  3. package/dist/_commonjsHelpers-k2hpEU-q.cjs +2 -0
  4. package/dist/_commonjsHelpers-k2hpEU-q.cjs.map +1 -0
  5. package/dist/{animated-text-Cb07SP6h.js → animated-text-BZWvzqEZ.js} +3 -3
  6. package/dist/{animated-text-Cb07SP6h.js.map → animated-text-BZWvzqEZ.js.map} +1 -1
  7. package/dist/{animated-text-DML1qmmR.cjs → animated-text-BgLktXr-.cjs} +2 -2
  8. package/dist/{animated-text-DML1qmmR.cjs.map → animated-text-BgLktXr-.cjs.map} +1 -1
  9. package/dist/animated-text.cjs +1 -1
  10. package/dist/animated-text.js +1 -1
  11. package/dist/area.cjs +1 -1
  12. package/dist/{area.component-Psgv50Lq.cjs → area.component-CqKoQRDp.cjs} +2 -2
  13. package/dist/{area.component-Psgv50Lq.cjs.map → area.component-CqKoQRDp.cjs.map} +1 -1
  14. package/dist/{area.component-CdFovqHE.js → area.component-zvrF1R-P.js} +3 -3
  15. package/dist/{area.component-CdFovqHE.js.map → area.component-zvrF1R-P.js.map} +1 -1
  16. package/dist/area.js +1 -1
  17. package/dist/{autocomplete-B4F-i4IH.cjs → autocomplete-BCE9oBkO.cjs} +2 -2
  18. package/dist/{autocomplete-B4F-i4IH.cjs.map → autocomplete-BCE9oBkO.cjs.map} +1 -1
  19. package/dist/{autocomplete-87RcHRRv.js → autocomplete-CpYDECg0.js} +3 -3
  20. package/dist/{autocomplete-87RcHRRv.js.map → autocomplete-CpYDECg0.js.map} +1 -1
  21. package/dist/autocomplete.cjs +1 -1
  22. package/dist/autocomplete.js +1 -1
  23. package/dist/{avatar-Dx-kdZaM.js → avatar-B_BubJYb.js} +46 -45
  24. package/dist/{avatar-Dx-kdZaM.js.map → avatar-B_BubJYb.js.map} +1 -1
  25. package/dist/{avatar-DI6tP5aD.cjs → avatar-B_y2vLrR.cjs} +2 -2
  26. package/dist/{avatar-DI6tP5aD.cjs.map → avatar-B_y2vLrR.cjs.map} +1 -1
  27. package/dist/badge.cjs +1 -1
  28. package/dist/badge.js +1 -1
  29. package/dist/busy.cjs +1 -1
  30. package/dist/busy.js +1 -1
  31. package/dist/button.cjs +1 -1
  32. package/dist/button.js +1 -1
  33. package/dist/card.cjs +1 -1
  34. package/dist/card.js +1 -1
  35. package/dist/{checkbox-Cntlr_eV.js → checkbox-CJ6x-G_b.js} +2 -2
  36. package/dist/{checkbox-Cntlr_eV.js.map → checkbox-CJ6x-G_b.js.map} +1 -1
  37. package/dist/{checkbox-C80YxaCN.cjs → checkbox-DATn1US_.cjs} +2 -2
  38. package/dist/{checkbox-C80YxaCN.cjs.map → checkbox-DATn1US_.cjs.map} +1 -1
  39. package/dist/checkbox.cjs +1 -1
  40. package/dist/checkbox.js +1 -1
  41. package/dist/{chips-CI-fsAqX.cjs → chips-BbWIMKDU.cjs} +2 -2
  42. package/dist/{chips-CI-fsAqX.cjs.map → chips-BbWIMKDU.cjs.map} +1 -1
  43. package/dist/{chips-vMtInVGX.js → chips-CcT1N7--.js} +9 -9
  44. package/dist/{chips-vMtInVGX.js.map → chips-CcT1N7--.js.map} +1 -1
  45. package/dist/chips.cjs +1 -1
  46. package/dist/chips.js +1 -1
  47. package/dist/{circular-progress-8LR4RVjD.js → circular-progress-Cs3G6PHo.js} +3 -3
  48. package/dist/{circular-progress-8LR4RVjD.js.map → circular-progress-Cs3G6PHo.js.map} +1 -1
  49. package/dist/{circular-progress-CSWSAcU6.cjs → circular-progress-JGc2_9ef.cjs} +2 -2
  50. package/dist/{circular-progress-CSWSAcU6.cjs.map → circular-progress-JGc2_9ef.cjs.map} +1 -1
  51. package/dist/circular-progress.cjs +1 -1
  52. package/dist/circular-progress.js +1 -1
  53. package/dist/code-highlight.cjs +2 -0
  54. package/dist/code-highlight.cjs.map +1 -0
  55. package/dist/code-highlight.js +7 -0
  56. package/dist/code-highlight.js.map +1 -0
  57. package/dist/code-preview-BZ-uk6y1.js +876 -0
  58. package/dist/code-preview-BZ-uk6y1.js.map +1 -0
  59. package/dist/code-preview-DXf_SN2X.cjs +133 -0
  60. package/dist/code-preview-DXf_SN2X.cjs.map +1 -0
  61. package/dist/components.cjs +1 -1
  62. package/dist/components.js +1 -1
  63. package/dist/content-drawer.cjs +1 -1
  64. package/dist/content-drawer.js +1 -1
  65. package/dist/date-range-D85imfq-.cjs +121 -0
  66. package/dist/{date-range-BkVCslGl.cjs.map → date-range-D85imfq-.cjs.map} +1 -1
  67. package/dist/{date-range-ChsdVWRV.js → date-range-Dt9V5MyB.js} +62 -64
  68. package/dist/{date-range-ChsdVWRV.js.map → date-range-Dt9V5MyB.js.map} +1 -1
  69. package/dist/date-range.cjs +1 -1
  70. package/dist/date-range.js +1 -1
  71. package/dist/{delay-D6UmIwSa.cjs → delay-BH-y0tJg.cjs} +2 -2
  72. package/dist/{delay-D6UmIwSa.cjs.map → delay-BH-y0tJg.cjs.map} +1 -1
  73. package/dist/{delay-DJMIbnvL.js → delay-CE3iPMYG.js} +11 -11
  74. package/dist/{delay-DJMIbnvL.js.map → delay-CE3iPMYG.js.map} +1 -1
  75. package/dist/delay.cjs +1 -1
  76. package/dist/delay.js +1 -1
  77. package/dist/{dialog-content-Cw1Al_Re.cjs → dialog-content-BQN75NSZ.cjs} +2 -2
  78. package/dist/{dialog-content-Cw1Al_Re.cjs.map → dialog-content-BQN75NSZ.cjs.map} +1 -1
  79. package/dist/{dialog-content-CWvxqVsr.js → dialog-content-E5R1XfK5.js} +3 -3
  80. package/dist/{dialog-content-CWvxqVsr.js.map → dialog-content-E5R1XfK5.js.map} +1 -1
  81. package/dist/dialog.cjs +1 -1
  82. package/dist/dialog.js +1 -1
  83. package/dist/{divider-Cp6EXlTN.cjs → divider-BEtL0P-_.cjs} +2 -2
  84. package/dist/{divider-Cp6EXlTN.cjs.map → divider-BEtL0P-_.cjs.map} +1 -1
  85. package/dist/{divider-BGo7hglJ.js → divider-BlSi0WWi.js} +3 -3
  86. package/dist/{divider-BGo7hglJ.js.map → divider-BlSi0WWi.js.map} +1 -1
  87. package/dist/divider.cjs +1 -1
  88. package/dist/divider.js +1 -1
  89. package/dist/{dropdown-content-CTWWDRgy.js → dropdown-content-DkKciM_R.js} +3 -3
  90. package/dist/{dropdown-content-CTWWDRgy.js.map → dropdown-content-DkKciM_R.js.map} +1 -1
  91. package/dist/{dropdown-content-CmCumNjC.cjs → dropdown-content-HRI7Jkak.cjs} +2 -2
  92. package/dist/{dropdown-content-CmCumNjC.cjs.map → dropdown-content-HRI7Jkak.cjs.map} +1 -1
  93. package/dist/dropdown.cjs +1 -1
  94. package/dist/dropdown.js +1 -1
  95. package/dist/extra.cjs +1 -1
  96. package/dist/extra.js +1 -1
  97. package/dist/{flex-Dyfn6mxF.cjs → flex-CwTn3AfA.cjs} +2 -2
  98. package/dist/{flex-Dyfn6mxF.cjs.map → flex-CwTn3AfA.cjs.map} +1 -1
  99. package/dist/{flex-CKtJkkxU.js → flex-DHA02Mfw.js} +2 -2
  100. package/dist/{flex-CKtJkkxU.js.map → flex-DHA02Mfw.js.map} +1 -1
  101. package/dist/{form-BbQRONBu.cjs → form-C9llOgOw.cjs} +2 -2
  102. package/dist/{form-BbQRONBu.cjs.map → form-C9llOgOw.cjs.map} +1 -1
  103. package/dist/{form-BZdw3XUt.js → form-DsprWndI.js} +2 -2
  104. package/dist/{form-BZdw3XUt.js.map → form-DsprWndI.js.map} +1 -1
  105. package/dist/form.cjs +1 -1
  106. package/dist/form.js +1 -1
  107. package/dist/{icon-CNkK3oMH.cjs → icon-B1vaqlkD.cjs} +2 -2
  108. package/dist/icon-B1vaqlkD.cjs.map +1 -0
  109. package/dist/{icon-PZTHZSsC.js → icon-D967cxey.js} +2 -3
  110. package/dist/icon-D967cxey.js.map +1 -0
  111. package/dist/{icon-button-5_uidIo2.js → icon-button-C_OqjQfc.js} +3 -3
  112. package/dist/{icon-button-5_uidIo2.js.map → icon-button-C_OqjQfc.js.map} +1 -1
  113. package/dist/{icon-button-L6UzTqIn.cjs → icon-button-D6RzSEQb.cjs} +2 -2
  114. package/dist/{icon-button-L6UzTqIn.cjs.map → icon-button-D6RzSEQb.cjs.map} +1 -1
  115. package/dist/icons.cjs +1 -1
  116. package/dist/icons.js +1 -1
  117. package/dist/index.cjs +1 -1
  118. package/dist/index.js +156 -152
  119. package/dist/index.js.map +1 -1
  120. package/dist/{input-cvO-mD1t.js → input-4heVsnGw.js} +2 -2
  121. package/dist/{input-cvO-mD1t.js.map → input-4heVsnGw.js.map} +1 -1
  122. package/dist/{input-GETorvfT.cjs → input-DschQCBp.cjs} +2 -2
  123. package/dist/{input-GETorvfT.cjs.map → input-DschQCBp.cjs.map} +1 -1
  124. package/dist/input.cjs +1 -1
  125. package/dist/input.js +1 -1
  126. package/dist/layout.cjs +1 -1
  127. package/dist/layout.js +1 -1
  128. package/dist/{list-BPQwn2ZD.cjs → list-B1bxSmd5.cjs} +2 -2
  129. package/dist/{list-BPQwn2ZD.cjs.map → list-B1bxSmd5.cjs.map} +1 -1
  130. package/dist/{list-CjVW-XS-.js → list-DE1otSG3.js} +2 -2
  131. package/dist/{list-CjVW-XS-.js.map → list-DE1otSG3.js.map} +1 -1
  132. package/dist/list.cjs +1 -1
  133. package/dist/list.js +1 -1
  134. package/dist/{litElement.mixin-BKgKxczr.js → litElement.mixin-1-y-wwQg.js} +2 -2
  135. package/dist/{litElement.mixin-BKgKxczr.js.map → litElement.mixin-1-y-wwQg.js.map} +1 -1
  136. package/dist/{litElement.mixin-0pIFA8ru.cjs → litElement.mixin-CB6DWbFn.cjs} +2 -2
  137. package/dist/{litElement.mixin-0pIFA8ru.cjs.map → litElement.mixin-CB6DWbFn.cjs.map} +1 -1
  138. package/dist/{menu-Bj9xX6Hn.js → menu-B1qPlV2t.js} +3 -3
  139. package/dist/{menu-Bj9xX6Hn.js.map → menu-B1qPlV2t.js.map} +1 -1
  140. package/dist/{menu-BpjaKAXC.cjs → menu-TDH53RmV.cjs} +2 -2
  141. package/dist/{menu-BpjaKAXC.cjs.map → menu-TDH53RmV.cjs.map} +1 -1
  142. package/dist/menu.cjs +1 -1
  143. package/dist/menu.js +1 -1
  144. package/dist/nav-drawer.cjs +1 -1
  145. package/dist/nav-drawer.js +1 -1
  146. package/dist/{notification-service-BFAKagab.cjs → notification-service-BKSRwonz.cjs} +2 -2
  147. package/dist/{notification-service-BFAKagab.cjs.map → notification-service-BKSRwonz.cjs.map} +1 -1
  148. package/dist/{notification-service-ITb5rmvM.js → notification-service-D2pgTqTS.js} +3 -3
  149. package/dist/{notification-service-ITb5rmvM.js.map → notification-service-D2pgTqTS.js.map} +1 -1
  150. package/dist/notification.cjs +1 -1
  151. package/dist/notification.js +1 -1
  152. package/dist/{option-_DZj4_on.js → option-CLY6hO5V.js} +2 -2
  153. package/dist/{option-_DZj4_on.js.map → option-CLY6hO5V.js.map} +1 -1
  154. package/dist/{option-vszqrPbH.cjs → option-Q6l-t3es.cjs} +2 -2
  155. package/dist/{option-vszqrPbH.cjs.map → option-Q6l-t3es.cjs.map} +1 -1
  156. package/dist/option.cjs +1 -1
  157. package/dist/option.js +1 -1
  158. package/dist/{payment-card-form-CxhMa60Q.js → payment-card-form-BpaCnjrt.js} +3 -3
  159. package/dist/{payment-card-form-CxhMa60Q.js.map → payment-card-form-BpaCnjrt.js.map} +1 -1
  160. package/dist/{payment-card-form-DgFUnANa.cjs → payment-card-form-V5eIamA9.cjs} +2 -2
  161. package/dist/{payment-card-form-DgFUnANa.cjs.map → payment-card-form-V5eIamA9.cjs.map} +1 -1
  162. package/dist/{radio-button-svaVfPn8.js → radio-button-CuTpkLr8.js} +2 -2
  163. package/dist/{radio-button-svaVfPn8.js.map → radio-button-CuTpkLr8.js.map} +1 -1
  164. package/dist/{radio-button-ChM1WZDg.cjs → radio-button-Dm2I9Ic4.cjs} +2 -2
  165. package/dist/{radio-button-ChM1WZDg.cjs.map → radio-button-Dm2I9Ic4.cjs.map} +1 -1
  166. package/dist/radio-group.cjs +1 -1
  167. package/dist/radio-group.js +1 -1
  168. package/dist/{schmancy-steps-container-C_-PFkRy.cjs → schmancy-steps-container-DO4tx0KH.cjs} +2 -2
  169. package/dist/{schmancy-steps-container-C_-PFkRy.cjs.map → schmancy-steps-container-DO4tx0KH.cjs.map} +1 -1
  170. package/dist/{schmancy-steps-container-9fHGNLHd.js → schmancy-steps-container-SrnYbTe-.js} +2 -2
  171. package/dist/{schmancy-steps-container-9fHGNLHd.js.map → schmancy-steps-container-SrnYbTe-.js.map} +1 -1
  172. package/dist/{select-DEd1YJF0.cjs → select-BJdRm5US.cjs} +2 -2
  173. package/dist/{select-DEd1YJF0.cjs.map → select-BJdRm5US.cjs.map} +1 -1
  174. package/dist/{select-CWulYSxd.js → select-DfemPf0w.js} +3 -3
  175. package/dist/{select-CWulYSxd.js.map → select-DfemPf0w.js.map} +1 -1
  176. package/dist/select.cjs +1 -1
  177. package/dist/select.js +1 -1
  178. package/dist/{sheet-BhKQmvCN.cjs → sheet-BtaT1eui.cjs} +2 -2
  179. package/dist/{sheet-BhKQmvCN.cjs.map → sheet-BtaT1eui.cjs.map} +1 -1
  180. package/dist/{sheet-C2f1XwT3.js → sheet-Bvj7tapP.js} +3 -3
  181. package/dist/{sheet-C2f1XwT3.js.map → sheet-Bvj7tapP.js.map} +1 -1
  182. package/dist/sheet.cjs +1 -1
  183. package/dist/sheet.js +1 -1
  184. package/dist/{slider-CetPyN3J.cjs → slider-AQvRuZ-m.cjs} +2 -2
  185. package/dist/{slider-CetPyN3J.cjs.map → slider-AQvRuZ-m.cjs.map} +1 -1
  186. package/dist/{slider-CmJGqDDU.js → slider-DAwHA6Az.js} +3 -3
  187. package/dist/{slider-CmJGqDDU.js.map → slider-DAwHA6Az.js.map} +1 -1
  188. package/dist/slider.cjs +1 -1
  189. package/dist/slider.js +1 -1
  190. package/dist/{spinner-CLfAy0cd.cjs → spinner-BLy3-lqb.cjs} +2 -2
  191. package/dist/{spinner-CLfAy0cd.cjs.map → spinner-BLy3-lqb.cjs.map} +1 -1
  192. package/dist/{spinner-CmJk8fIO.js → spinner-DrZuae0L.js} +3 -3
  193. package/dist/{spinner-CmJk8fIO.js.map → spinner-DrZuae0L.js.map} +1 -1
  194. package/dist/steps.cjs +1 -1
  195. package/dist/steps.js +1 -1
  196. package/dist/{surface-ChxX03-I.cjs → surface-BOerTano.cjs} +2 -2
  197. package/dist/{surface-ChxX03-I.cjs.map → surface-BOerTano.cjs.map} +1 -1
  198. package/dist/{surface-BnlEKr-d.js → surface-CAlEVfSs.js} +2 -2
  199. package/dist/{surface-BnlEKr-d.js.map → surface-CAlEVfSs.js.map} +1 -1
  200. package/dist/surface.cjs +1 -1
  201. package/dist/surface.js +1 -1
  202. package/dist/{table-CzD7rJ5o.cjs → table-B3VrNQUV.cjs} +2 -2
  203. package/dist/{table-CzD7rJ5o.cjs.map → table-B3VrNQUV.cjs.map} +1 -1
  204. package/dist/{table-CZJ14ZEI.js → table-hjsAGpRq.js} +2 -2
  205. package/dist/{table-CZJ14ZEI.js.map → table-hjsAGpRq.js.map} +1 -1
  206. package/dist/table.cjs +1 -1
  207. package/dist/table.js +1 -1
  208. package/dist/{tabs-compatibility-DHkghYmL.js → tabs-compatibility-D9ajXdXz.js} +2 -2
  209. package/dist/{tabs-compatibility-DHkghYmL.js.map → tabs-compatibility-D9ajXdXz.js.map} +1 -1
  210. package/dist/{tabs-compatibility-BviE0FdA.cjs → tabs-compatibility-DdXO8DcF.cjs} +2 -2
  211. package/dist/{tabs-compatibility-BviE0FdA.cjs.map → tabs-compatibility-DdXO8DcF.cjs.map} +1 -1
  212. package/dist/tabs.cjs +1 -1
  213. package/dist/tabs.js +1 -1
  214. package/dist/tailwind.mixin-DPUboU_5.js +43 -0
  215. package/dist/{tailwind.mixin-k9HTphsu.js.map → tailwind.mixin-DPUboU_5.js.map} +1 -1
  216. package/dist/tailwind.mixin-mxyACxyp.cjs +2 -0
  217. package/dist/{tailwind.mixin-DFxMrwgk.cjs.map → tailwind.mixin-mxyACxyp.cjs.map} +1 -1
  218. package/dist/teleport.cjs +1 -1
  219. package/dist/teleport.js +1 -1
  220. package/dist/{textarea-qNzKErHX.cjs → textarea-C16vg4ME.cjs} +2 -2
  221. package/dist/{textarea-qNzKErHX.cjs.map → textarea-C16vg4ME.cjs.map} +1 -1
  222. package/dist/{textarea-kTwx4MAh.js → textarea-DqFx1pM1.js} +2 -2
  223. package/dist/{textarea-kTwx4MAh.js.map → textarea-DqFx1pM1.js.map} +1 -1
  224. package/dist/textarea.cjs +1 -1
  225. package/dist/textarea.js +1 -1
  226. package/dist/{theme-button-Dt3WQdd4.cjs → theme-button-CgZ5qc7_.cjs} +2 -2
  227. package/dist/{theme-button-Dt3WQdd4.cjs.map → theme-button-CgZ5qc7_.cjs.map} +1 -1
  228. package/dist/{theme-button-CCwPpArv.js → theme-button-D5fnf2QD.js} +2 -2
  229. package/dist/{theme-button-CCwPpArv.js.map → theme-button-D5fnf2QD.js.map} +1 -1
  230. package/dist/theme-button.cjs +1 -1
  231. package/dist/theme-button.js +1 -1
  232. package/dist/theme.cjs +1 -1
  233. package/dist/{theme.component-Drq675ta.cjs → theme.component-B5uMqEbH.cjs} +2 -2
  234. package/dist/{theme.component-Drq675ta.cjs.map → theme.component-B5uMqEbH.cjs.map} +1 -1
  235. package/dist/{theme.component-CJHr6wNa.js → theme.component-BOnjDUB3.js} +2 -2
  236. package/dist/{theme.component-CJHr6wNa.js.map → theme.component-BOnjDUB3.js.map} +1 -1
  237. package/dist/theme.js +1 -1
  238. package/dist/{timezone-oZ1r5Z54.cjs → timezone-CdAu8QsM.cjs} +2 -2
  239. package/dist/{timezone-oZ1r5Z54.cjs.map → timezone-CdAu8QsM.cjs.map} +1 -1
  240. package/dist/{timezone-B53HOn4a.js → timezone-DwU-YCRw.js} +3 -3
  241. package/dist/{timezone-B53HOn4a.js.map → timezone-DwU-YCRw.js.map} +1 -1
  242. package/dist/{tooltip-Bfcu9uoC.js → tooltip-Bn-UWxd4.js} +2 -2
  243. package/dist/{tooltip-Bfcu9uoC.js.map → tooltip-Bn-UWxd4.js.map} +1 -1
  244. package/dist/{tooltip-DrLzz4rf.cjs → tooltip-CyI3NYzI.cjs} +2 -2
  245. package/dist/{tooltip-DrLzz4rf.cjs.map → tooltip-CyI3NYzI.cjs.map} +1 -1
  246. package/dist/tooltip.cjs +1 -1
  247. package/dist/tooltip.js +1 -1
  248. package/dist/{tree-n0KxiiWX.js → tree-D2g2zq2B.js} +2 -2
  249. package/dist/{tree-n0KxiiWX.js.map → tree-D2g2zq2B.js.map} +1 -1
  250. package/dist/{tree-Buf-0IQD.cjs → tree-DdXcAF6S.cjs} +2 -2
  251. package/dist/{tree-Buf-0IQD.cjs.map → tree-DdXcAF6S.cjs.map} +1 -1
  252. package/dist/tree.cjs +1 -1
  253. package/dist/tree.js +1 -1
  254. package/dist/{typewriter-W7Rj384X.js → typewriter-3w_PiJFo.js} +16 -16
  255. package/dist/{typewriter-W7Rj384X.js.map → typewriter-3w_PiJFo.js.map} +1 -1
  256. package/dist/{typewriter-DSUU_7wv.cjs → typewriter-RVqJuWSv.cjs} +2 -2
  257. package/dist/{typewriter-DSUU_7wv.cjs.map → typewriter-RVqJuWSv.cjs.map} +1 -1
  258. package/dist/typewriter.cjs +1 -1
  259. package/dist/typewriter.js +1 -1
  260. package/dist/typography-BLJPXhuT.cjs +10 -0
  261. package/dist/typography-BLJPXhuT.cjs.map +1 -0
  262. package/dist/typography-izBBu-t8.js +37 -0
  263. package/dist/typography-izBBu-t8.js.map +1 -0
  264. package/dist/typography.cjs +1 -1
  265. package/dist/typography.js +1 -1
  266. package/package.json +2 -1
  267. package/types/src/code-highlight/code-highlight.d.ts +39 -0
  268. package/types/src/code-highlight/code-preview.d.ts +25 -0
  269. package/types/src/code-highlight/index.d.ts +3 -0
  270. package/types/src/icons/icon.d.ts +1 -1
  271. package/types/src/index.d.ts +1 -0
  272. package/dist/date-range-BkVCslGl.cjs +0 -121
  273. package/dist/icon-CNkK3oMH.cjs.map +0 -1
  274. package/dist/icon-PZTHZSsC.js.map +0 -1
  275. package/dist/tailwind.mixin-DFxMrwgk.cjs +0 -2
  276. package/dist/tailwind.mixin-k9HTphsu.js +0 -43
  277. package/dist/typography-DaN7dGA2.cjs +0 -6
  278. package/dist/typography-DaN7dGA2.cjs.map +0 -1
  279. package/dist/typography-XkeTnrP9.js +0 -29
  280. package/dist/typography-XkeTnrP9.js.map +0 -1
@@ -0,0 +1,876 @@
1
+ import "rxjs";
2
+ import "lit/directives/class-map.js";
3
+ import "lit/directives/style-map.js";
4
+ import { T as sn } from "./tailwind.mixin-DPUboU_5.js";
5
+ import { css as Cn, html as He } from "lit";
6
+ import { property as ye, state as on, customElement as cn } from "lit/decorators.js";
7
+ import { g as In } from "./_commonjsHelpers-Dw9sPFZy.js";
8
+ var Ue, tn;
9
+ function Ln() {
10
+ if (tn) return Ue;
11
+ function t(e) {
12
+ return e instanceof Map ? e.clear = e.delete = e.set = function() {
13
+ throw new Error("map is read-only");
14
+ } : e instanceof Set && (e.add = e.clear = e.delete = function() {
15
+ throw new Error("set is read-only");
16
+ }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((n) => {
17
+ const a = e[n], d = typeof a;
18
+ d !== "object" && d !== "function" || Object.isFrozen(a) || t(a);
19
+ }), e;
20
+ }
21
+ tn = 1;
22
+ class l {
23
+ constructor(n) {
24
+ n.data === void 0 && (n.data = {}), this.data = n.data, this.isMatchIgnored = !1;
25
+ }
26
+ ignoreMatch() {
27
+ this.isMatchIgnored = !0;
28
+ }
29
+ }
30
+ function i(e) {
31
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
32
+ }
33
+ function f(e, ...n) {
34
+ const a = /* @__PURE__ */ Object.create(null);
35
+ for (const d in e) a[d] = e[d];
36
+ return n.forEach(function(d) {
37
+ for (const E in d) a[E] = d[E];
38
+ }), a;
39
+ }
40
+ const m = (e) => !!e.scope;
41
+ class b {
42
+ constructor(n, a) {
43
+ this.buffer = "", this.classPrefix = a.classPrefix, n.walk(this);
44
+ }
45
+ addText(n) {
46
+ this.buffer += i(n);
47
+ }
48
+ openNode(n) {
49
+ if (!m(n)) return;
50
+ const a = ((d, { prefix: E }) => {
51
+ if (d.startsWith("language:")) return d.replace("language:", "language-");
52
+ if (d.includes(".")) {
53
+ const r = d.split(".");
54
+ return [`${E}${r.shift()}`, ...r.map((u, c) => `${u}${"_".repeat(c + 1)}`)].join(" ");
55
+ }
56
+ return `${E}${d}`;
57
+ })(n.scope, { prefix: this.classPrefix });
58
+ this.span(a);
59
+ }
60
+ closeNode(n) {
61
+ m(n) && (this.buffer += "</span>");
62
+ }
63
+ value() {
64
+ return this.buffer;
65
+ }
66
+ span(n) {
67
+ this.buffer += `<span class="${n}">`;
68
+ }
69
+ }
70
+ const v = (e = {}) => {
71
+ const n = { children: [] };
72
+ return Object.assign(n, e), n;
73
+ };
74
+ class A {
75
+ constructor() {
76
+ this.rootNode = v(), this.stack = [this.rootNode];
77
+ }
78
+ get top() {
79
+ return this.stack[this.stack.length - 1];
80
+ }
81
+ get root() {
82
+ return this.rootNode;
83
+ }
84
+ add(n) {
85
+ this.top.children.push(n);
86
+ }
87
+ openNode(n) {
88
+ const a = v({ scope: n });
89
+ this.add(a), this.stack.push(a);
90
+ }
91
+ closeNode() {
92
+ if (this.stack.length > 1) return this.stack.pop();
93
+ }
94
+ closeAllNodes() {
95
+ for (; this.closeNode(); ) ;
96
+ }
97
+ toJSON() {
98
+ return JSON.stringify(this.rootNode, null, 4);
99
+ }
100
+ walk(n) {
101
+ return this.constructor._walk(n, this.rootNode);
102
+ }
103
+ static _walk(n, a) {
104
+ return typeof a == "string" ? n.addText(a) : a.children && (n.openNode(a), a.children.forEach((d) => this._walk(n, d)), n.closeNode(a)), n;
105
+ }
106
+ static _collapse(n) {
107
+ typeof n != "string" && n.children && (n.children.every((a) => typeof a == "string") ? n.children = [n.children.join("")] : n.children.forEach((a) => {
108
+ A._collapse(a);
109
+ }));
110
+ }
111
+ }
112
+ class M extends A {
113
+ constructor(n) {
114
+ super(), this.options = n;
115
+ }
116
+ addText(n) {
117
+ n !== "" && this.add(n);
118
+ }
119
+ startScope(n) {
120
+ this.openNode(n);
121
+ }
122
+ endScope() {
123
+ this.closeNode();
124
+ }
125
+ t(n, a) {
126
+ const d = n.root;
127
+ a && (d.scope = `language:${a}`), this.add(d);
128
+ }
129
+ toHTML() {
130
+ return new b(this, this.options).value();
131
+ }
132
+ finalize() {
133
+ return this.closeAllNodes(), !0;
134
+ }
135
+ }
136
+ function D(e) {
137
+ return e ? typeof e == "string" ? e : e.source : null;
138
+ }
139
+ function G(e) {
140
+ return P("(?=", e, ")");
141
+ }
142
+ function T(e) {
143
+ return P("(?:", e, ")*");
144
+ }
145
+ function U(e) {
146
+ return P("(?:", e, ")?");
147
+ }
148
+ function P(...e) {
149
+ return e.map((n) => D(n)).join("");
150
+ }
151
+ function F(...e) {
152
+ return "(" + (function(a) {
153
+ const d = a[a.length - 1];
154
+ return typeof d == "object" && d.constructor === Object ? (a.splice(a.length - 1, 1), d) : {};
155
+ }(e).capture ? "" : "?:") + e.map((a) => D(a)).join("|") + ")";
156
+ }
157
+ function K(e) {
158
+ return new RegExp(e.toString() + "|").exec("").length - 1;
159
+ }
160
+ const X = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
161
+ function V(e, { joinWith: n }) {
162
+ let a = 0;
163
+ return e.map((d) => {
164
+ a += 1;
165
+ const E = a;
166
+ let r = D(d), u = "";
167
+ for (; r.length > 0; ) {
168
+ const c = X.exec(r);
169
+ if (!c) {
170
+ u += r;
171
+ break;
172
+ }
173
+ u += r.substring(0, c.index), r = r.substring(c.index + c[0].length), c[0][0] === "\\" && c[1] ? u += "\\" + String(Number(c[1]) + E) : (u += c[0], c[0] === "(" && a++);
174
+ }
175
+ return u;
176
+ }).map((d) => `(${d})`).join(n);
177
+ }
178
+ const re = "[a-zA-Z]\\w*", W = "[a-zA-Z_]\\w*", H = "\\b\\d+(\\.\\d+)?", ve = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", se = "\\b(0b[01]+)", Q = { begin: "\\\\[\\s\\S]", relevance: 0 }, xe = { scope: "string", begin: "'", end: "'", illegal: "\\n", contains: [Q] }, ue = { scope: "string", begin: '"', end: '"', illegal: "\\n", contains: [Q] }, oe = function(e, n, a = {}) {
179
+ const d = f({ scope: "comment", begin: e, end: n, contains: [] }, a);
180
+ d.contains.push({ scope: "doctag", begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, excludeBegin: !0, relevance: 0 });
181
+ const E = F("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
182
+ return d.contains.push({ begin: P(/[ ]+/, "(", E, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), d;
183
+ }, ke = oe("//", "$"), he = oe("/\\*", "\\*/"), _e = oe("#", "$"), L = { scope: "number", begin: H, relevance: 0 }, Y = { scope: "number", begin: ve, relevance: 0 }, ee = { scope: "number", begin: se, relevance: 0 }, ne = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [Q, { begin: /\[/, end: /\]/, relevance: 0, contains: [Q] }] }, te = { scope: "title", begin: re, relevance: 0 }, pe = { scope: "title", begin: W, relevance: 0 }, me = { begin: "\\.\\s*" + W, relevance: 0 };
184
+ var ce = Object.freeze({ __proto__: null, APOS_STRING_MODE: xe, BACKSLASH_ESCAPE: Q, BINARY_NUMBER_MODE: ee, BINARY_NUMBER_RE: se, COMMENT: oe, C_BLOCK_COMMENT_MODE: he, C_LINE_COMMENT_MODE: ke, C_NUMBER_MODE: Y, C_NUMBER_RE: ve, END_SAME_AS_BEGIN: function(e) {
185
+ return Object.assign(e, { "on:begin": (n, a) => {
186
+ a.data._beginMatch = n[1];
187
+ }, "on:end": (n, a) => {
188
+ a.data._beginMatch !== n[1] && a.ignoreMatch();
189
+ } });
190
+ }, HASH_COMMENT_MODE: _e, IDENT_RE: re, MATCH_NOTHING_RE: /\b\B/, METHOD_GUARD: me, NUMBER_MODE: L, NUMBER_RE: H, PHRASAL_WORDS_MODE: { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, QUOTE_STRING_MODE: ue, REGEXP_MODE: ne, RE_STARTERS_RE: "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", SHEBANG: (e = {}) => {
191
+ const n = /^#![ ]*\//;
192
+ return e.binary && (e.begin = P(n, /.*\b/, e.binary, /\b.*/)), f({ scope: "meta", begin: n, end: /$/, relevance: 0, "on:begin": (a, d) => {
193
+ a.index !== 0 && d.ignoreMatch();
194
+ } }, e);
195
+ }, TITLE_MODE: te, UNDERSCORE_IDENT_RE: W, UNDERSCORE_TITLE_MODE: pe });
196
+ function Ne(e, n) {
197
+ e.input[e.index - 1] === "." && n.ignoreMatch();
198
+ }
199
+ function vn(e, n) {
200
+ e.className !== void 0 && (e.scope = e.className, delete e.className);
201
+ }
202
+ function wn(e, n) {
203
+ n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.i = Ne, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
204
+ }
205
+ function En(e, n) {
206
+ Array.isArray(e.illegal) && (e.illegal = F(...e.illegal));
207
+ }
208
+ function xn(e, n) {
209
+ if (e.match) {
210
+ if (e.begin || e.end) throw new Error("begin & end are not supported with match");
211
+ e.begin = e.match, delete e.match;
212
+ }
213
+ }
214
+ function kn(e, n) {
215
+ e.relevance === void 0 && (e.relevance = 1);
216
+ }
217
+ const _n = (e, n) => {
218
+ if (!e.beforeMatch) return;
219
+ if (e.starts) throw new Error("beforeMatch cannot be used with starts");
220
+ const a = Object.assign({}, e);
221
+ Object.keys(e).forEach((d) => {
222
+ delete e[d];
223
+ }), e.keywords = a.keywords, e.begin = P(a.beforeMatch, G(a.begin)), e.starts = { relevance: 0, contains: [Object.assign(a, { endsParent: !0 })] }, e.relevance = 0, delete a.beforeMatch;
224
+ }, Nn = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"];
225
+ function Ze(e, n, a = "keyword") {
226
+ const d = /* @__PURE__ */ Object.create(null);
227
+ return typeof e == "string" ? E(a, e.split(" ")) : Array.isArray(e) ? E(a, e) : Object.keys(e).forEach(function(r) {
228
+ Object.assign(d, Ze(e[r], n, r));
229
+ }), d;
230
+ function E(r, u) {
231
+ n && (u = u.map((c) => c.toLowerCase())), u.forEach(function(c) {
232
+ const j = c.split("|");
233
+ d[j[0]] = [r, An(j[0], j[1])];
234
+ });
235
+ }
236
+ }
237
+ function An(e, n) {
238
+ return n ? Number(n) : function(a) {
239
+ return Nn.includes(a.toLowerCase());
240
+ }(e) ? 0 : 1;
241
+ }
242
+ const Ge = {}, we = (e, n) => {
243
+ Ge[`${e}/${n}`] || (Ge[`${e}/${n}`] = !0);
244
+ }, Se = new Error();
245
+ function Fe(e, n, { key: a }) {
246
+ let d = 0;
247
+ const E = e[a], r = {}, u = {};
248
+ for (let c = 1; c <= n.length; c++) u[c + d] = E[c], r[c + d] = !0, d += K(n[c - 1]);
249
+ e[a] = u, e[a]._emit = r, e[a]._multi = !0;
250
+ }
251
+ function Sn(e) {
252
+ (function(n) {
253
+ n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
254
+ })(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), function(n) {
255
+ if (Array.isArray(n.begin)) {
256
+ if (n.skip || n.excludeBegin || n.returnBegin || typeof n.beginScope != "object" || n.beginScope === null) throw Se;
257
+ Fe(n, n.begin, { key: "beginScope" }), n.begin = V(n.begin, { joinWith: "" });
258
+ }
259
+ }(e), function(n) {
260
+ if (Array.isArray(n.end)) {
261
+ if (n.skip || n.excludeEnd || n.returnEnd || typeof n.endScope != "object" || n.endScope === null) throw Se;
262
+ Fe(n, n.end, { key: "endScope" }), n.end = V(n.end, { joinWith: "" });
263
+ }
264
+ }(e);
265
+ }
266
+ function On(e) {
267
+ function n(E, r) {
268
+ return new RegExp(D(E), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
269
+ }
270
+ class a {
271
+ constructor() {
272
+ this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
273
+ }
274
+ addRule(r, u) {
275
+ u.position = this.position++, this.matchIndexes[this.matchAt] = u, this.regexes.push([u, r]), this.matchAt += K(r) + 1;
276
+ }
277
+ compile() {
278
+ this.regexes.length === 0 && (this.exec = () => null);
279
+ const r = this.regexes.map((u) => u[1]);
280
+ this.matcherRe = n(V(r, { joinWith: "|" }), !0), this.lastIndex = 0;
281
+ }
282
+ exec(r) {
283
+ this.matcherRe.lastIndex = this.lastIndex;
284
+ const u = this.matcherRe.exec(r);
285
+ if (!u) return null;
286
+ const c = u.findIndex((S, _) => _ > 0 && S !== void 0), j = this.matchIndexes[c];
287
+ return u.splice(0, c), Object.assign(u, j);
288
+ }
289
+ }
290
+ class d {
291
+ constructor() {
292
+ this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
293
+ }
294
+ getMatcher(r) {
295
+ if (this.multiRegexes[r]) return this.multiRegexes[r];
296
+ const u = new a();
297
+ return this.rules.slice(r).forEach(([c, j]) => u.addRule(c, j)), u.compile(), this.multiRegexes[r] = u, u;
298
+ }
299
+ resumingScanAtSamePosition() {
300
+ return this.regexIndex !== 0;
301
+ }
302
+ considerAll() {
303
+ this.regexIndex = 0;
304
+ }
305
+ addRule(r, u) {
306
+ this.rules.push([r, u]), u.type === "begin" && this.count++;
307
+ }
308
+ exec(r) {
309
+ const u = this.getMatcher(this.regexIndex);
310
+ u.lastIndex = this.lastIndex;
311
+ let c = u.exec(r);
312
+ if (this.resumingScanAtSamePosition() && !(c && c.index === this.lastIndex)) {
313
+ const j = this.getMatcher(0);
314
+ j.lastIndex = this.lastIndex + 1, c = j.exec(r);
315
+ }
316
+ return c && (this.regexIndex += c.position + 1, this.regexIndex === this.count && this.considerAll()), c;
317
+ }
318
+ }
319
+ if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
320
+ return e.classNameAliases = f(e.classNameAliases || {}), function E(r, u) {
321
+ const c = r;
322
+ if (r.isCompiled) return c;
323
+ [vn, xn, Sn, _n].forEach((S) => S(r, u)), e.compilerExtensions.forEach((S) => S(r, u)), r.i = null, [wn, En, kn].forEach((S) => S(r, u)), r.isCompiled = !0;
324
+ let j = null;
325
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), j = r.keywords.$pattern, delete r.keywords.$pattern), j = j || /\w+/, r.keywords && (r.keywords = Ze(r.keywords, e.case_insensitive)), c.keywordPatternRe = n(j, !0), u && (r.begin || (r.begin = /\B|\b/), c.beginRe = n(c.begin), r.end || r.endsWithParent || (r.end = /\B|\b/), r.end && (c.endRe = n(c.end)), c.terminatorEnd = D(c.end) || "", r.endsWithParent && u.terminatorEnd && (c.terminatorEnd += (r.end ? "|" : "") + u.terminatorEnd)), r.illegal && (c.illegalRe = n(r.illegal)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(S) {
326
+ return function(_) {
327
+ return _.variants && !_.cachedVariants && (_.cachedVariants = _.variants.map(function(le) {
328
+ return f(_, { variants: null }, le);
329
+ })), _.cachedVariants ? _.cachedVariants : Ke(_) ? f(_, { starts: _.starts ? f(_.starts) : null }) : Object.isFrozen(_) ? f(_) : _;
330
+ }(S === "self" ? r : S);
331
+ })), r.contains.forEach(function(S) {
332
+ E(S, c);
333
+ }), r.starts && E(r.starts, u), c.matcher = function(S) {
334
+ const _ = new d();
335
+ return S.contains.forEach((le) => _.addRule(le.begin, { rule: le, type: "begin" })), S.terminatorEnd && _.addRule(S.terminatorEnd, { type: "end" }), S.illegal && _.addRule(S.illegal, { type: "illegal" }), _;
336
+ }(c), c;
337
+ }(e);
338
+ }
339
+ function Ke(e) {
340
+ return !!e && (e.endsWithParent || Ke(e.starts));
341
+ }
342
+ class Mn extends Error {
343
+ constructor(n, a) {
344
+ super(n), this.name = "HTMLInjectionError", this.html = a;
345
+ }
346
+ }
347
+ const Le = i, Xe = f, We = Symbol("nomatch"), qe = function(e) {
348
+ const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), d = [];
349
+ let E = !0;
350
+ const r = "Could not find the language '{}', did you forget to load/include a language module?", u = { disableAutodetect: !0, name: "Plain text", contains: [] };
351
+ let c = { ignoreUnescapedHTML: !1, throwUnescapedHTML: !1, noHighlightRe: /^(no-?highlight)$/i, languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, classPrefix: "hljs-", cssSelector: "pre code", languages: null, o: M };
352
+ function j(o) {
353
+ return c.noHighlightRe.test(o);
354
+ }
355
+ function S(o, h, y) {
356
+ let B = "", R = "";
357
+ typeof h == "object" ? (B = o, y = h.ignoreIllegals, R = h.language) : (we("10.7.0", "highlight(lang, code, ...args) has been deprecated."), we("10.7.0", `Please use highlight(code, options) instead.
358
+ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y === void 0 && (y = !0);
359
+ const C = { code: B, language: R };
360
+ Me("before:highlight", C);
361
+ const I = C.result ? C.result : _(C.language, C.code, y);
362
+ return I.code = C.code, Me("after:highlight", I), I;
363
+ }
364
+ function _(o, h, y, B) {
365
+ const R = /* @__PURE__ */ Object.create(null);
366
+ function C() {
367
+ if (!p.keywords) return void z.addText(k);
368
+ let s = 0;
369
+ p.keywordPatternRe.lastIndex = 0;
370
+ let g = p.keywordPatternRe.exec(k), x = "";
371
+ for (; g; ) {
372
+ x += k.substring(s, g.index);
373
+ const N = J.case_insensitive ? g[0].toLowerCase() : g[0], $ = (w = N, p.keywords[w]);
374
+ if ($) {
375
+ const [ie, Pe] = $;
376
+ if (z.addText(x), x = "", R[N] = (R[N] || 0) + 1, R[N] <= 7 && (Te += Pe), ie.startsWith("_")) x += g[0];
377
+ else {
378
+ const je = J.classNameAliases[ie] || ie;
379
+ Z(g[0], je);
380
+ }
381
+ } else x += g[0];
382
+ s = p.keywordPatternRe.lastIndex, g = p.keywordPatternRe.exec(k);
383
+ }
384
+ var w;
385
+ x += k.substring(s), z.addText(x);
386
+ }
387
+ function I() {
388
+ p.subLanguage != null ? function() {
389
+ if (k === "") return;
390
+ let s = null;
391
+ if (typeof p.subLanguage == "string") {
392
+ if (!n[p.subLanguage]) return void z.addText(k);
393
+ s = _(p.subLanguage, k, !0, nn[p.subLanguage]), nn[p.subLanguage] = s._top;
394
+ } else s = le(k, p.subLanguage.length ? p.subLanguage : null);
395
+ p.relevance > 0 && (Te += s.relevance), z.t(s._emitter, s.language);
396
+ }() : C(), k = "";
397
+ }
398
+ function Z(s, g) {
399
+ s !== "" && (z.startScope(g), z.addText(s), z.endScope());
400
+ }
401
+ function O(s, g) {
402
+ let x = 1;
403
+ const w = g.length - 1;
404
+ for (; x <= w; ) {
405
+ if (!s._emit[x]) {
406
+ x++;
407
+ continue;
408
+ }
409
+ const N = J.classNameAliases[s[x]] || s[x], $ = g[x];
410
+ N ? Z($, N) : (k = $, C(), k = ""), x++;
411
+ }
412
+ }
413
+ function q(s, g) {
414
+ return s.scope && typeof s.scope == "string" && z.openNode(J.classNameAliases[s.scope] || s.scope), s.beginScope && (s.beginScope._wrap ? (Z(k, J.classNameAliases[s.beginScope._wrap] || s.beginScope._wrap), k = "") : s.beginScope._multi && (O(s.beginScope, g), k = "")), p = Object.create(s, { parent: { value: p } }), p;
415
+ }
416
+ function Ye(s, g, x) {
417
+ let w = function(N, $) {
418
+ const ie = N && N.exec($);
419
+ return ie && ie.index === 0;
420
+ }(s.endRe, x);
421
+ if (w) {
422
+ if (s["on:end"]) {
423
+ const N = new l(s);
424
+ s["on:end"](g, N), N.isMatchIgnored && (w = !1);
425
+ }
426
+ if (w) {
427
+ for (; s.endsParent && s.parent; ) s = s.parent;
428
+ return s;
429
+ }
430
+ }
431
+ if (s.endsWithParent) return Ye(s.parent, g, x);
432
+ }
433
+ function Rn(s) {
434
+ return p.matcher.regexIndex === 0 ? (k += s[0], 1) : (De = !0, 0);
435
+ }
436
+ function Tn(s) {
437
+ const g = s[0], x = h.substring(s.index), w = Ye(p, s, x);
438
+ if (!w) return We;
439
+ const N = p;
440
+ p.endScope && p.endScope._wrap ? (I(), Z(g, p.endScope._wrap)) : p.endScope && p.endScope._multi ? (I(), O(p.endScope, s)) : N.skip ? k += g : (N.returnEnd || N.excludeEnd || (k += g), I(), N.excludeEnd && (k = g));
441
+ do
442
+ p.scope && z.closeNode(), p.skip || p.subLanguage || (Te += p.relevance), p = p.parent;
443
+ while (p !== w.parent);
444
+ return w.starts && q(w.starts, s), N.returnEnd ? 0 : g.length;
445
+ }
446
+ let Re = {};
447
+ function en(s, g) {
448
+ const x = g && g[0];
449
+ if (k += s, x == null) return I(), 0;
450
+ if (Re.type === "begin" && g.type === "end" && Re.index === g.index && x === "") {
451
+ if (k += h.slice(g.index, g.index + 1), !E) {
452
+ const w = new Error(`0 width match regex (${o})`);
453
+ throw w.languageName = o, w.badRule = Re.rule, w;
454
+ }
455
+ return 1;
456
+ }
457
+ if (Re = g, g.type === "begin") return function(w) {
458
+ const N = w[0], $ = w.rule, ie = new l($), Pe = [$.i, $["on:begin"]];
459
+ for (const je of Pe) if (je && (je(w, ie), ie.isMatchIgnored)) return Rn(N);
460
+ return $.skip ? k += N : ($.excludeBegin && (k += N), I(), $.returnBegin || $.excludeBegin || (k = N)), q($, w), $.returnBegin ? 0 : N.length;
461
+ }(g);
462
+ if (g.type === "illegal" && !y) {
463
+ const w = new Error('Illegal lexeme "' + x + '" for mode "' + (p.scope || "<unnamed>") + '"');
464
+ throw w.mode = p, w;
465
+ }
466
+ if (g.type === "end") {
467
+ const w = Tn(g);
468
+ if (w !== We) return w;
469
+ }
470
+ if (g.type === "illegal" && x === "") return k += `
471
+ `, 1;
472
+ if ($e > 1e5 && $e > 3 * g.index)
473
+ throw new Error("potential infinite loop, way more iterations than matches");
474
+ return k += x, x.length;
475
+ }
476
+ const J = de(o);
477
+ if (!J) throw r.replace("{}", o), new Error('Unknown language: "' + o + '"');
478
+ const jn = On(J);
479
+ let ze = "", p = B || jn;
480
+ const nn = {}, z = new c.o(c);
481
+ (function() {
482
+ const s = [];
483
+ for (let g = p; g !== J; g = g.parent) g.scope && s.unshift(g.scope);
484
+ s.forEach((g) => z.openNode(g));
485
+ })();
486
+ let k = "", Te = 0, be = 0, $e = 0, De = !1;
487
+ try {
488
+ if (J.l) J.l(h, z);
489
+ else {
490
+ for (p.matcher.considerAll(); ; ) {
491
+ $e++, De ? De = !1 : p.matcher.considerAll(), p.matcher.lastIndex = be;
492
+ const s = p.matcher.exec(h);
493
+ if (!s) break;
494
+ const g = en(h.substring(be, s.index), s);
495
+ be = s.index + g;
496
+ }
497
+ en(h.substring(be));
498
+ }
499
+ return z.finalize(), ze = z.toHTML(), { language: o, value: ze, relevance: Te, illegal: !1, _emitter: z, _top: p };
500
+ } catch (s) {
501
+ if (s.message && s.message.includes("Illegal")) return { language: o, value: Le(h), illegal: !0, relevance: 0, _illegalBy: { message: s.message, index: be, context: h.slice(be - 100, be + 100), mode: s.mode, resultSoFar: ze }, _emitter: z };
502
+ if (E) return { language: o, value: Le(h), illegal: !1, relevance: 0, errorRaised: s, _emitter: z, _top: p };
503
+ throw s;
504
+ }
505
+ }
506
+ function le(o, h) {
507
+ h = h || c.languages || Object.keys(n);
508
+ const y = function(O) {
509
+ const q = { value: Le(O), illegal: !1, relevance: 0, _top: u, _emitter: new c.o(c) };
510
+ return q._emitter.addText(O), q;
511
+ }(o), B = h.filter(de).filter(Qe).map((O) => _(O, o, !1));
512
+ B.unshift(y);
513
+ const R = B.sort((O, q) => {
514
+ if (O.relevance !== q.relevance) return q.relevance - O.relevance;
515
+ if (O.language && q.language) {
516
+ if (de(O.language).supersetOf === q.language) return 1;
517
+ if (de(q.language).supersetOf === O.language) return -1;
518
+ }
519
+ return 0;
520
+ }), [C, I] = R, Z = C;
521
+ return Z.secondBest = I, Z;
522
+ }
523
+ function Be(o) {
524
+ let h = null;
525
+ const y = function(C) {
526
+ let I = C.className + " ";
527
+ I += C.parentNode ? C.parentNode.className : "";
528
+ const Z = c.languageDetectRe.exec(I);
529
+ if (Z) {
530
+ const O = de(Z[1]);
531
+ return O || r.replace("{}", Z[1]), O ? Z[1] : "no-highlight";
532
+ }
533
+ return I.split(/\s+/).find((O) => j(O) || de(O));
534
+ }(o);
535
+ if (j(y) || (Me("before:highlightElement", { el: o, language: y }), o.dataset.highlighted)) return;
536
+ if (o.children.length > 0 && (c.ignoreUnescapedHTML, c.throwUnescapedHTML))
537
+ throw new Mn("One of your code blocks includes unescaped HTML.", o.innerHTML);
538
+ h = o;
539
+ const B = h.textContent, R = y ? S(B, { language: y, ignoreIllegals: !0 }) : le(B);
540
+ o.innerHTML = R.value, o.dataset.highlighted = "yes", function(C, I, Z) {
541
+ const O = I && a[I] || Z;
542
+ C.classList.add("hljs"), C.classList.add(`language-${O}`);
543
+ }(o, y, R.language), o.result = { language: R.language, re: R.relevance, relevance: R.relevance }, R.secondBest && (o.secondBest = { language: R.secondBest.language, relevance: R.secondBest.relevance }), Me("after:highlightElement", { el: o, result: R, text: B });
544
+ }
545
+ let Je = !1;
546
+ function Oe() {
547
+ if (document.readyState === "loading") return Je || window.addEventListener("DOMContentLoaded", function() {
548
+ Oe();
549
+ }, !1), void (Je = !0);
550
+ document.querySelectorAll(c.cssSelector).forEach(Be);
551
+ }
552
+ function de(o) {
553
+ return o = (o || "").toLowerCase(), n[o] || n[a[o]];
554
+ }
555
+ function Ve(o, { languageName: h }) {
556
+ typeof o == "string" && (o = [o]), o.forEach((y) => {
557
+ a[y.toLowerCase()] = h;
558
+ });
559
+ }
560
+ function Qe(o) {
561
+ const h = de(o);
562
+ return h && !h.disableAutodetect;
563
+ }
564
+ function Me(o, h) {
565
+ const y = o;
566
+ d.forEach(function(B) {
567
+ B[y] && B[y](h);
568
+ });
569
+ }
570
+ Object.assign(e, { highlight: S, highlightAuto: le, highlightAll: Oe, highlightElement: Be, highlightBlock: function(o) {
571
+ return we("10.7.0", "highlightBlock will be removed entirely in v12.0"), we("10.7.0", "Please use highlightElement now."), Be(o);
572
+ }, configure: function(o) {
573
+ c = Xe(c, o);
574
+ }, initHighlighting: () => {
575
+ Oe(), we("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
576
+ }, initHighlightingOnLoad: function() {
577
+ Oe(), we("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
578
+ }, registerLanguage: function(o, h) {
579
+ let y = null;
580
+ try {
581
+ y = h(e);
582
+ } catch (B) {
583
+ if ("Language definition for '{}' could not be registered.".replace("{}", o), !E) throw B;
584
+ y = u;
585
+ }
586
+ y.name || (y.name = o), n[o] = y, y.rawDefinition = h.bind(null, e), y.aliases && Ve(y.aliases, { languageName: o });
587
+ }, unregisterLanguage: function(o) {
588
+ delete n[o];
589
+ for (const h of Object.keys(a)) a[h] === o && delete a[h];
590
+ }, listLanguages: function() {
591
+ return Object.keys(n);
592
+ }, getLanguage: de, registerAliases: Ve, autoDetection: Qe, inherit: Xe, addPlugin: function(o) {
593
+ (function(h) {
594
+ h["before:highlightBlock"] && !h["before:highlightElement"] && (h["before:highlightElement"] = (y) => {
595
+ h["before:highlightBlock"](Object.assign({ block: y.el }, y));
596
+ }), h["after:highlightBlock"] && !h["after:highlightElement"] && (h["after:highlightElement"] = (y) => {
597
+ h["after:highlightBlock"](Object.assign({ block: y.el }, y));
598
+ });
599
+ })(o), d.push(o);
600
+ }, removePlugin: function(o) {
601
+ const h = d.indexOf(o);
602
+ h !== -1 && d.splice(h, 1);
603
+ } }), e.debugMode = function() {
604
+ E = !1;
605
+ }, e.safeMode = function() {
606
+ E = !0;
607
+ }, e.versionString = "11.11.1", e.regex = { concat: P, lookahead: G, either: F, optional: U, anyNumberOfTimes: T };
608
+ for (const o in ce) typeof ce[o] == "object" && t(ce[o]);
609
+ return Object.assign(e, ce), e;
610
+ }, Ee = qe({});
611
+ return Ee.newInstance = () => qe({}), Ue = Ee, Ee.HighlightJS = Ee, Ee.default = Ee, Ue;
612
+ }
613
+ const ae = In(Ln());
614
+ function an(t) {
615
+ const l = t.regex, i = l.concat(/[\p{L}_]/u, l.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = { className: "symbol", begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ }, m = { begin: /\s/, contains: [{ className: "keyword", begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] }, b = t.inherit(m, { begin: /\(/, end: /\)/ }), v = t.inherit(t.APOS_STRING_MODE, { className: "string" }), A = t.inherit(t.QUOTE_STRING_MODE, { className: "string" }), M = { endsWithParent: !0, illegal: /</, relevance: 0, contains: [{ className: "attr", begin: /[\p{L}0-9._:-]+/u, relevance: 0 }, { begin: /=\s*/, relevance: 0, contains: [{ className: "string", endsParent: !0, variants: [{ begin: /"/, end: /"/, contains: [f] }, { begin: /'/, end: /'/, contains: [f] }, { begin: /[^\s"'=<>`]+/ }] }] }] };
616
+ return { name: "HTML, XML", aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist", "wsf", "svg"], case_insensitive: !0, unicodeRegex: !0, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, relevance: 10, contains: [m, A, v, b, { begin: /\[/, end: /\]/, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, contains: [m, b, A, v] }] }] }, t.COMMENT(/<!--/, /-->/, { relevance: 10 }), { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 }, f, { className: "meta", end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [A] }, { begin: /<\?[a-z][a-z0-9]+/ }] }, { className: "tag", begin: /<style(?=\s|>)/, end: />/, keywords: { name: "style" }, contains: [M], starts: { end: /<\/style>/, returnEnd: !0, subLanguage: ["css", "xml"] } }, { className: "tag", begin: /<script(?=\s|>)/, end: />/, keywords: { name: "script" }, contains: [M], starts: { end: /<\/script>/, returnEnd: !0, subLanguage: ["javascript", "handlebars", "xml"] } }, { className: "tag", begin: /<>|<\/>/ }, { className: "tag", begin: l.concat(/</, l.lookahead(l.concat(i, l.either(/\/>/, />/, /\s/)))), end: /\/?>/, contains: [{ className: "name", begin: i, relevance: 0, starts: M }] }, { className: "tag", begin: l.concat(/<\//, l.lookahead(l.concat(i, />/))), contains: [{ className: "name", begin: i, relevance: 0 }, { begin: />/, relevance: 0, endsParent: !0 }] }] };
617
+ }
618
+ const rn = "[A-Za-z$_][0-9A-Za-z$_]*", Bn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], zn = ["true", "false", "null", "undefined", "NaN", "Infinity"], ln = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], dn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], gn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], $n = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], Dn = [].concat(gn, ln, dn), Ie = "[A-Za-z$_][0-9A-Za-z$_]*", un = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], hn = ["true", "false", "null", "undefined", "NaN", "Infinity"], pn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], mn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], bn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], fn = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], yn = [].concat(bn, pn, mn);
619
+ function Pn(t) {
620
+ const l = t.regex, i = Ie, f = "<>", m = "</>", b = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, Y) => {
621
+ const ee = L[0].length + L.index, ne = L.input[ee];
622
+ if (ne === "<" || ne === ",") return void Y.ignoreMatch();
623
+ let te;
624
+ ne === ">" && (((me, { after: ce }) => {
625
+ const Ne = "</" + me[0].slice(1);
626
+ return me.input.indexOf(Ne, ce) !== -1;
627
+ })(L, { after: ee }) || Y.ignoreMatch());
628
+ const pe = L.input.substring(ee);
629
+ ((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
630
+ } }, v = { $pattern: Ie, keyword: un, literal: hn, built_in: yn, "variable.language": fn }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
631
+ T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
632
+ const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, se = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...pn, ...mn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...bn, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
633
+ var ue;
634
+ const oe = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
635
+ return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: se }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, se, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, oe, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
636
+ }
637
+ const Un = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video", "defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Hn = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), Zn = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), Gn = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), Fn = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse();
638
+ var Kn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, fe = (t, l, i, f) => {
639
+ for (var m, b = f > 1 ? void 0 : f ? Xn(l, i) : l, v = t.length - 1; v >= 0; v--) (m = t[v]) && (b = (f ? m(l, i, b) : m(b)) || b);
640
+ return f && b && Kn(l, i, b), b;
641
+ };
642
+ ae.registerLanguage("xml", an), ae.registerLanguage("html", an), ae.registerLanguage("javascript", function(t) {
643
+ const l = t.regex, i = rn, f = "<>", m = "</>", b = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, Y) => {
644
+ const ee = L[0].length + L.index, ne = L.input[ee];
645
+ if (ne === "<" || ne === ",") return void Y.ignoreMatch();
646
+ let te;
647
+ ne === ">" && (((me, { after: ce }) => {
648
+ const Ne = "</" + me[0].slice(1);
649
+ return me.input.indexOf(Ne, ce) !== -1;
650
+ })(L, { after: ee }) || Y.ignoreMatch());
651
+ const pe = L.input.substring(ee);
652
+ ((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
653
+ } }, v = { $pattern: rn, keyword: Bn, literal: zn, built_in: Dn, "variable.language": $n }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
654
+ T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
655
+ const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, se = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...ln, ...dn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...gn, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
656
+ var ue;
657
+ const oe = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
658
+ return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: se }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, se, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, oe, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
659
+ }), ae.registerLanguage("typescript", function(t) {
660
+ const l = t.regex, i = Pn(t), f = Ie, m = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], b = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, v = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: m }, contains: [i.exports.CLASS_REFERENCE] }, A = { $pattern: Ie, keyword: un.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: hn, built_in: yn.concat(m), "variable.language": fn }, M = { className: "meta", begin: "@" + f }, D = (U, P, F) => {
661
+ const K = U.contains.findIndex((X) => X.label === P);
662
+ if (K === -1) throw new Error("can not find mode to replace");
663
+ U.contains.splice(K, 1, F);
664
+ };
665
+ Object.assign(i.keywords, A), i.exports.PARAMS_CONTAINS.push(M);
666
+ const G = i.contains.find((U) => U.scope === "attr"), T = Object.assign({}, G, { match: l.concat(f, l.lookahead(/\s*\?:/)) });
667
+ return i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE, G, T]), i.contains = i.contains.concat([M, b, v, T]), D(i, "shebang", t.SHEBANG()), D(i, "use_strict", { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }), i.contains.find((U) => U.label === "func.def").relevance = 0, Object.assign(i, { name: "TypeScript", aliases: ["ts", "tsx", "mts", "cts"] }), i;
668
+ }), ae.registerLanguage("css", function(t) {
669
+ const l = t.regex, i = ((m) => ({ IMPORTANT: { scope: "meta", begin: "!important" }, BLOCK_COMMENT: m.C_BLOCK_COMMENT_MODE, HEXCOLOR: { scope: "number", begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ }, FUNCTION_DISPATCH: { className: "built_in", begin: /[\w-]+(?=\()/ }, ATTRIBUTE_SELECTOR_MODE: { scope: "selector-attr", begin: /\[/, end: /\]/, illegal: "$", contains: [m.APOS_STRING_MODE, m.QUOTE_STRING_MODE] }, CSS_NUMBER_MODE: { scope: "number", begin: m.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", relevance: 0 }, CSS_VARIABLE: { className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } }))(t), f = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE];
670
+ return { name: "CSS", case_insensitive: !0, illegal: /[=|'\$]/, keywords: { keyframePosition: "from to" }, classNameAliases: { keyframePosition: "selector-tag" }, contains: [i.BLOCK_COMMENT, { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i.CSS_NUMBER_MODE, { className: "selector-id", begin: /#[A-Za-z0-9_-]+/, relevance: 0 }, { className: "selector-class", begin: "\\.[a-zA-Z-][a-zA-Z0-9_-]*", relevance: 0 }, i.ATTRIBUTE_SELECTOR_MODE, { className: "selector-pseudo", variants: [{ begin: ":(" + Zn.join("|") + ")" }, { begin: ":(:)?(" + Gn.join("|") + ")" }] }, i.CSS_VARIABLE, { className: "attribute", begin: "\\b(" + Fn.join("|") + ")\\b" }, { begin: /:/, end: /[;}{]/, contains: [i.BLOCK_COMMENT, i.HEXCOLOR, i.IMPORTANT, i.CSS_NUMBER_MODE, ...f, { begin: /(url|data-uri)\(/, end: /\)/, relevance: 0, keywords: { built_in: "url data-uri" }, contains: [...f, { className: "string", begin: /[^)]/, endsWithParent: !0, excludeEnd: !0 }] }, i.FUNCTION_DISPATCH] }, { begin: l.lookahead(/@/), end: "[{;]", relevance: 0, illegal: /:/, contains: [{ className: "keyword", begin: /@-?\w[\w]*(-\w+)*/ }, { begin: /\s/, endsWithParent: !0, excludeEnd: !0, relevance: 0, keywords: { $pattern: /[a-z-]+/, keyword: "and or not only", attribute: Hn.join(" ") }, contains: [{ begin: /[a-z-]+(?=:)/, className: "attribute" }, ...f, i.CSS_NUMBER_MODE] }] }, { className: "selector-tag", begin: "\\b(" + Un.join("|") + ")\\b" }] };
671
+ }), ae.registerLanguage("json", function(t) {
672
+ const l = ["true", "false", "null"], i = { scope: "literal", beginKeywords: l.join(" ") };
673
+ return { name: "JSON", aliases: ["jsonc"], keywords: { literal: l }, contains: [{ className: "attr", begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, relevance: 1.01 }, { match: /[{}[\],:]/, className: "punctuation", relevance: 0 }, t.QUOTE_STRING_MODE, i, t.C_NUMBER_MODE, t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE], illegal: "\\S" };
674
+ }), ae.registerLanguage("bash", function(t) {
675
+ const l = t.regex, i = {}, f = { begin: /\$\{/, end: /\}/, contains: ["self", { begin: /:-/, contains: [i] }] };
676
+ Object.assign(i, { className: "variable", variants: [{ begin: l.concat(/\$[\w\d#@][\w\d_]*/, "(?![\\w\\d])(?![$])") }, f] });
677
+ const m = { className: "subst", begin: /\$\(/, end: /\)/, contains: [t.BACKSLASH_ESCAPE] }, b = t.inherit(t.COMMENT(), { match: [/(^|\s)/, /#.*$/], scope: { 2: "comment" } }), v = { begin: /<<-?\s*(?=\w+)/, starts: { contains: [t.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: "string" })] } }, A = { className: "string", begin: /"/, end: /"/, contains: [t.BACKSLASH_ESCAPE, i, m] };
678
+ m.contains.push(A);
679
+ const M = { begin: /\$?\(\(/, end: /\)\)/, contains: [{ begin: /\d+#[0-9a-f]+/, className: "number" }, t.NUMBER_MODE, i] }, D = t.SHEBANG({ binary: `(${["fish", "bash", "zsh", "sh", "csh", "ksh", "tcsh", "dash", "scsh"].join("|")})`, relevance: 10 }), G = { className: "function", begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, returnBegin: !0, contains: [t.inherit(t.TITLE_MODE, { begin: /\w[\w\d_]*/ })], relevance: 0 };
680
+ return { name: "Bash", aliases: ["sh", "zsh"], keywords: { $pattern: /\b[a-z][a-z0-9._-]+\b/, keyword: ["if", "then", "else", "elif", "fi", "time", "for", "while", "until", "in", "do", "done", "case", "esac", "coproc", "function", "select"], literal: ["true", "false"], built_in: ["break", "cd", "continue", "eval", "exec", "exit", "export", "getopts", "hash", "pwd", "readonly", "return", "shift", "test", "times", "trap", "umask", "unset", "alias", "bind", "builtin", "caller", "command", "declare", "echo", "enable", "help", "let", "local", "logout", "mapfile", "printf", "read", "readarray", "source", "sudo", "type", "typeset", "ulimit", "unalias", "set", "shopt", "autoload", "bg", "bindkey", "bye", "cap", "chdir", "clone", "comparguments", "compcall", "compctl", "compdescribe", "compfiles", "compgroups", "compquote", "comptags", "comptry", "compvalues", "dirs", "disable", "disown", "echotc", "echoti", "emulate", "fc", "fg", "float", "functions", "getcap", "getln", "history", "integer", "jobs", "kill", "limit", "log", "noglob", "popd", "print", "pushd", "pushln", "rehash", "sched", "setcap", "setopt", "stat", "suspend", "ttyctl", "unfunction", "unhash", "unlimit", "unsetopt", "vared", "wait", "whence", "where", "which", "zcompile", "zformat", "zftp", "zle", "zmodload", "zparseopts", "zprof", "zpty", "zregexparse", "zsocket", "zstyle", "ztcp", "chcon", "chgrp", "chown", "chmod", "cp", "dd", "df", "dir", "dircolors", "ln", "ls", "mkdir", "mkfifo", "mknod", "mktemp", "mv", "realpath", "rm", "rmdir", "shred", "sync", "touch", "truncate", "vdir", "b2sum", "base32", "base64", "cat", "cksum", "comm", "csplit", "cut", "expand", "fmt", "fold", "head", "join", "md5sum", "nl", "numfmt", "od", "paste", "ptx", "pr", "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "shuf", "sort", "split", "sum", "tac", "tail", "tr", "tsort", "unexpand", "uniq", "wc", "arch", "basename", "chroot", "date", "dirname", "du", "echo", "env", "expr", "factor", "groups", "hostid", "id", "link", "logname", "nice", "nohup", "nproc", "pathchk", "pinky", "printenv", "printf", "pwd", "readlink", "runcon", "seq", "sleep", "stat", "stdbuf", "stty", "tee", "test", "timeout", "tty", "uname", "unlink", "uptime", "users", "who", "whoami", "yes"] }, contains: [D, t.SHEBANG(), G, M, b, v, { match: /(\/[a-z._-]+)+/ }, A, { match: /\\"/ }, { className: "string", begin: /'/, end: /'/ }, { match: /\\'/ }, i] };
681
+ });
682
+ let ge = class extends sn(Cn`
683
+ :host {
684
+ display: block;
685
+ width: 100%;
686
+ overflow: hidden;
687
+ }
688
+
689
+ /* Highlight.js theme using Schmancy colors */
690
+ .hljs {
691
+ color: var(--schmancy-sys-color-surface-on);
692
+ background: transparent;
693
+ }
694
+ .hljs-comment,
695
+ .hljs-quote,
696
+ .hljs-deletion {
697
+ color: var(--schmancy-sys-color-surface-onVariant);
698
+ opacity: 0.6;
699
+ font-style: italic;
700
+ }
701
+ .hljs-keyword,
702
+ .hljs-selector-tag,
703
+ .hljs-built_in,
704
+ .hljs-tag .hljs-name {
705
+ color: var(--schmancy-sys-color-primary-default);
706
+ font-weight: 500;
707
+ }
708
+ .hljs-string,
709
+ .hljs-regexp,
710
+ .hljs-addition,
711
+ .hljs-selector-attr,
712
+ .hljs-selector-pseudo {
713
+ color: var(--schmancy-sys-color-success-default);
714
+ }
715
+ .hljs-number,
716
+ .hljs-literal,
717
+ .hljs-variable,
718
+ .hljs-template-variable,
719
+ .hljs-tag .hljs-attr {
720
+ color: var(--schmancy-sys-color-tertiary-default);
721
+ }
722
+ .hljs-title,
723
+ .hljs-section,
724
+ .hljs-selector-id,
725
+ .hljs-function .hljs-title {
726
+ color: var(--schmancy-sys-color-secondary-default);
727
+ font-weight: 500;
728
+ }
729
+ .hljs-type,
730
+ .hljs-class .hljs-title,
731
+ .hljs-title.class_,
732
+ .hljs-doctag {
733
+ color: var(--schmancy-sys-color-secondary-container);
734
+ font-weight: 500;
735
+ }
736
+ .hljs-attribute,
737
+ .hljs-attr,
738
+ .hljs-meta {
739
+ color: var(--schmancy-sys-color-primary-container);
740
+ }
741
+ .hljs-punctuation {
742
+ color: var(--schmancy-sys-color-surface-onVariant);
743
+ opacity: 0.8;
744
+ }
745
+ .hljs-tag {
746
+ color: var(--schmancy-sys-color-surface-onVariant);
747
+ }
748
+ .hljs-strong,
749
+ .hljs-name {
750
+ font-weight: 600;
751
+ }
752
+ .hljs-emphasis {
753
+ font-style: italic;
754
+ }
755
+ .hljs-link {
756
+ color: var(--schmancy-sys-color-primary-default);
757
+ text-decoration: underline;
758
+ }
759
+ `) {
760
+ constructor() {
761
+ super(...arguments), this.language = "javascript", this.code = "", this.lineNumbers = !1, this.copyButton = !0, this.copied = !1;
762
+ }
763
+ get highlightedCode() {
764
+ if (!this.code) return "";
765
+ try {
766
+ const t = ae.highlight(this.code.trim(), { language: this.language });
767
+ return this.lineNumbers ? this.addLineNumbers(t.value) : t.value;
768
+ } catch {
769
+ const t = ae.highlightAuto(this.code.trim());
770
+ return this.lineNumbers ? this.addLineNumbers(t.value) : t.value;
771
+ }
772
+ }
773
+ addLineNumbers(t) {
774
+ return t.split(`
775
+ `).map((l, i) => `<span class="block"><span class="inline-block w-12 pr-4 text-right text-surface-onVariant opacity-50 select-none text-sm">${i + 1}</span>${l}</span>`).join(`
776
+ `);
777
+ }
778
+ async copyCode() {
779
+ try {
780
+ await navigator.clipboard.writeText(this.code), this.copied = !0, setTimeout(() => {
781
+ this.copied = !1;
782
+ }, 2e3);
783
+ } catch {
784
+ }
785
+ }
786
+ getLanguageLabel() {
787
+ return this.filename ? this.filename : { javascript: "JavaScript", typescript: "TypeScript", html: "HTML", xml: "XML", css: "CSS", json: "JSON", bash: "Bash", sh: "Shell", jsx: "JSX", tsx: "TSX" }[this.language] || this.language.toUpperCase();
788
+ }
789
+ render() {
790
+ return He`
791
+ <schmancy-theme mode="dark">
792
+ <div class="border border-outline rounded-lg bg-surface-dim overflow-hidden">
793
+ <!-- Header -->
794
+ <div class="flex items-center justify-between px-4 py-3 bg-surface-container border-b border-outline">
795
+ <span class="text-sm font-medium text-surface-onVariant opacity-80">
796
+ ${this.getLanguageLabel()}
797
+ </span>
798
+ ${this.copyButton ? He`
799
+ <schmancy-button
800
+ .variant="${this.copied ? "filled" : "outlined"}"
801
+ @click=${this.copyCode}
802
+ >
803
+ <schmancy-icon size="16px">
804
+ ${this.copied ? "check" : "content_copy"}
805
+ </schmancy-icon>
806
+ ${this.copied ? "Copied!" : "Copy"}
807
+ </schmancy-button>
808
+ ` : ""}
809
+ </div>
810
+
811
+ <!-- Code -->
812
+ <div class="overflow-x-auto">
813
+ <pre class="p-6 m-0 min-w-0"><code class="text-sm whitespace-pre" .innerHTML=${this.highlightedCode}></code></pre>
814
+ </div>
815
+ </div>
816
+ </schmancy-theme>
817
+ `;
818
+ }
819
+ };
820
+ fe([ye({ type: String })], ge.prototype, "language", 2), fe([ye({ type: String })], ge.prototype, "code", 2), fe([ye({ type: String })], ge.prototype, "filename", 2), fe([ye({ type: Boolean })], ge.prototype, "lineNumbers", 2), fe([ye({ type: Boolean })], ge.prototype, "copyButton", 2), fe([on()], ge.prototype, "copied", 2), ge = fe([cn("schmancy-code")], ge);
821
+ var Wn = Object.defineProperty, qn = Object.getOwnPropertyDescriptor, Ce = (t, l, i, f) => {
822
+ for (var m, b = f > 1 ? void 0 : f ? qn(l, i) : l, v = t.length - 1; v >= 0; v--) (m = t[v]) && (b = (f ? m(l, i, b) : m(b)) || b);
823
+ return f && b && Wn(l, i, b), b;
824
+ };
825
+ let Ae = class extends sn() {
826
+ constructor() {
827
+ super(...arguments), this.language = "html", this.layout = "vertical", this.slotContent = "";
828
+ }
829
+ connectedCallback() {
830
+ super.connectedCallback(), setTimeout(() => {
831
+ var l;
832
+ const t = (l = this.shadowRoot) == null ? void 0 : l.querySelector("slot");
833
+ if (t) {
834
+ const i = t.assignedNodes({ flatten: !0 }).map((m) => m.nodeType === Node.ELEMENT_NODE ? m.outerHTML : m.nodeType === Node.TEXT_NODE && m.textContent || "").join("").split(`
835
+ `), f = i.filter((m) => m.trim().length > 0).reduce((m, b) => {
836
+ var A;
837
+ const v = ((A = b.match(/^(\s*)/)) == null ? void 0 : A[1].length) || 0;
838
+ return Math.min(m, v);
839
+ }, 1 / 0);
840
+ this.slotContent = i.map((m) => m.slice(f)).join(`
841
+ `).trim();
842
+ }
843
+ }, 0);
844
+ }
845
+ render() {
846
+ const t = this.layout === "horizontal" ? "grid grid-cols-1 lg:grid-cols-2 gap-0" : "flex flex-col";
847
+ return He`
848
+ <schmancy-surface class="rounded-lg overflow-hidden">
849
+ <div class="${t}">
850
+ <!-- Code section with proper overflow handling -->
851
+ <div class="min-w-0 overflow-hidden">
852
+ <schmancy-code
853
+ language="${this.language}"
854
+ .code="${this.slotContent}"
855
+ ?copyButton="${!0}"
856
+ class="block w-full"
857
+ ></schmancy-code>
858
+ </div>
859
+
860
+ <!-- Preview section with proper overflow handling -->
861
+ <div class="min-w-0 overflow-auto">
862
+ <schmancy-surface type="surfaceBright" class="p-6 h-full">
863
+ <slot></slot>
864
+ </schmancy-surface>
865
+ </div>
866
+ </div>
867
+ </schmancy-surface>
868
+ `;
869
+ }
870
+ };
871
+ Ce([ye({ type: String })], Ae.prototype, "language", 2), Ce([ye({ type: String })], Ae.prototype, "layout", 2), Ce([on()], Ae.prototype, "slotContent", 2), Ae = Ce([cn("schmancy-code-preview")], Ae);
872
+ export {
873
+ ge as S,
874
+ Ae as a
875
+ };
876
+ //# sourceMappingURL=code-preview-BZ-uk6y1.js.map