@covalent/components 8.23.1 → 9.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/{_commonjsHelpers-2f131a27.mjs → _commonjsHelpers-DjF3Plf2.mjs} +2 -4
  2. package/action-ribbon.js +5 -6
  3. package/action-ribbon.mjs +47 -51
  4. package/alert.js +5 -6
  5. package/alert.mjs +48 -52
  6. package/app-shell.js +1 -2
  7. package/app-shell.mjs +13 -30
  8. package/{async-directive-99a01ec7.mjs → async-directive-Cx1B9M5C.mjs} +11 -23
  9. package/{async-directive-4a34f75e.js → async-directive-y3fBDDSk.js} +1 -1
  10. package/badge.js +1 -2
  11. package/badge.mjs +10 -12
  12. package/{base-element-acf30176.mjs → base-element-C-U4OfWx.mjs} +2 -2
  13. package/{base-element-58a3f9ea.js → base-element-aUDWLn36.js} +1 -1
  14. package/button.js +2 -3
  15. package/button.mjs +18 -23
  16. package/card.js +8 -9
  17. package/card.mjs +36 -38
  18. package/check-list-item.js +11 -15
  19. package/check-list-item.mjs +53 -70
  20. package/checkbox.js +1 -2
  21. package/checkbox.mjs +15 -31
  22. package/{chip-c65a4549.js → chip-BsDYOEFW.js} +31 -32
  23. package/{chip-fb0ea5c5.mjs → chip-C8L37ovG.mjs} +110 -117
  24. package/chip-set.js +5 -6
  25. package/chip-set.mjs +73 -83
  26. package/chip.js +1 -1
  27. package/chip.mjs +4 -13
  28. package/circular-progress.js +1 -1
  29. package/circular-progress.mjs +9 -10
  30. package/{class-map-6e504a9a.mjs → class-map-C1SJpero.mjs} +4 -6
  31. package/{class-map-0a4c6ca9.js → class-map-C8G1ALWK.js} +1 -1
  32. package/{code-editor-712d0ce9.mjs → code-editor-CxQzms2S.mjs} +13485 -13720
  33. package/code-editor-hT6MTCL6.js +660 -0
  34. package/code-editor.js +1 -1
  35. package/code-editor.mjs +3 -6
  36. package/code-snippet.js +5 -6
  37. package/code-snippet.mjs +235 -284
  38. package/{dialog-78a9fd0e.mjs → dialog-BoNH4r3n.mjs} +23 -25
  39. package/{dialog-83104700.js → dialog-LUOzoMeO.js} +6 -7
  40. package/dialog.js +1 -1
  41. package/dialog.mjs +4 -13
  42. package/directive-C7oCP5Bh.js +5 -0
  43. package/{directive-helpers-e3ea6592.mjs → directive-helpers-CllkNDrI.mjs} +1 -1
  44. package/{directive-helpers-0ce1f995.js → directive-helpers-Duf3sfLn.js} +1 -1
  45. package/{directive-daf4e9b6.mjs → directive-oAbCiebi.mjs} +4 -4
  46. package/drawer.js +2 -3
  47. package/drawer.mjs +7 -17
  48. package/empty-state.js +2 -3
  49. package/empty-state.mjs +12 -15
  50. package/{event-options-3f5eb195.js → event-options-BH8ks-kz.js} +1 -1
  51. package/{event-options-78d6cf94.mjs → event-options-CNykeE2u.mjs} +1 -1
  52. package/expansion-panel-item.js +1 -2
  53. package/expansion-panel-item.mjs +6 -9
  54. package/expansion-panel.js +1 -1
  55. package/expansion-panel.mjs +2 -2
  56. package/focused-page.js +1 -2
  57. package/focused-page.mjs +13 -16
  58. package/{form-element-abadd335.mjs → form-element-CxSqbssX.mjs} +4 -4
  59. package/{form-element-c553d6f5.js → form-element-DwqUbs65.js} +1 -1
  60. package/formfield.js +6 -7
  61. package/formfield.mjs +19 -23
  62. package/{foundation-e980aa3d.js → foundation-CySCCTUE.js} +3 -3
  63. package/{foundation-d533452a.mjs → foundation-qQ4jzaAu.mjs} +11 -13
  64. package/full-screen-dialog.js +4 -5
  65. package/full-screen-dialog.mjs +13 -22
  66. package/{html-021d0b5b.mjs → html-BFM6gjw5.mjs} +13 -18
  67. package/html-BMgGKfr0.js +6 -0
  68. package/icon-button-toggle.js +11 -16
  69. package/icon-button-toggle.mjs +68 -78
  70. package/icon-button.js +6 -11
  71. package/icon-button.mjs +56 -66
  72. package/icon-check-toggle.js +6 -7
  73. package/icon-check-toggle.mjs +10 -23
  74. package/icon-radio-toggle.js +4 -5
  75. package/icon-radio-toggle.mjs +13 -29
  76. package/icon.js +1 -5
  77. package/icon.mjs +13 -20
  78. package/{if-defined-c367f208.mjs → if-defined-BsNkRMMG.mjs} +1 -1
  79. package/{if-defined-f1c45245.js → if-defined-D8C6ewRn.js} +1 -1
  80. package/index.js +1 -1
  81. package/index.mjs +110 -150
  82. package/{inert.esm-359d4581.mjs → inert.esm-BJ7IrRxy.mjs} +3 -4
  83. package/{javascript-5b83986c.js → javascript-20JK5_5Y.js} +1 -1
  84. package/{javascript-d2604785.mjs → javascript-BVQ0GGQP.mjs} +4 -10
  85. package/linear-progress.js +2 -3
  86. package/linear-progress.mjs +12 -14
  87. package/list-item-BZVW1fmJ.js +5 -0
  88. package/list-item-DCzzLVZh.mjs +11 -0
  89. package/list-item.js +5 -5
  90. package/list-item.mjs +21 -32
  91. package/list.js +3 -8
  92. package/list.mjs +18 -38
  93. package/menu.js +3 -8
  94. package/menu.mjs +18 -39
  95. package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-Cd0yCOHu.js} +42 -2
  96. package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-MBOzkrQg.mjs} +198 -3
  97. package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-D-48lqfn.js} +5 -5
  98. package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-Dgs9327G.mjs} +24 -26
  99. package/{mwc-icon-5227aec3.mjs → mwc-icon-BZRds8SY.mjs} +6 -5
  100. package/{mwc-icon-f87639bc.js → mwc-icon-BumH81hp.js} +2 -2
  101. package/mwc-icon-button.css-BtgKBOl3.js +5 -0
  102. package/mwc-icon-button.css-DJMY7U7e.mjs +10 -0
  103. package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-DvPWr3ER.js} +1 -1
  104. package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-zhm5Zc8i.mjs} +7 -7
  105. package/{list-item-8b940ec8.js → mwc-list-item.css-CtRq5wSu.js} +28 -6
  106. package/{list-item-ef175b93.mjs → mwc-list-item.css-g34xqhLC.mjs} +199 -9
  107. package/mwc-list.css-CaMJWsDp.js +111 -0
  108. package/{mwc-list-base-402e1d8e.mjs → mwc-list.css-DFOdJyFB.mjs} +213 -213
  109. package/{mwc-menu-base-04586160.mjs → mwc-menu.css-BEiPghgR.mjs} +90 -92
  110. package/{mwc-menu-base-08f54c38.js → mwc-menu.css-pxcxlTrh.js} +22 -22
  111. package/mwc-radio.css-CVMtIq-L.js +105 -0
  112. package/{mwc-radio-base-768b4221.mjs → mwc-radio.css-XRx0vL1k.mjs} +124 -118
  113. package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-2Bqk43z7.mjs} +200 -211
  114. package/{mwc-slider.css-c5f99704.js → mwc-slider.css-WrkrmqkL.js} +6 -6
  115. package/{mwc-tab-base-0814a3ef.mjs → mwc-tab.css-B9yQpkYf.mjs} +126 -122
  116. package/{mwc-tab-base-f2269fd1.js → mwc-tab.css-CgdXMZBB.js} +26 -22
  117. package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-B0EW9eNk.mjs} +13 -15
  118. package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-CSXRBOiX.js} +3 -3
  119. package/nav-list-item.js +4 -5
  120. package/nav-list-item.mjs +12 -23
  121. package/notebook-cell.js +8 -9
  122. package/notebook-cell.mjs +14 -29
  123. package/package.json +1 -1
  124. package/python-B8sEpp0H.js +6 -0
  125. package/{python-0707b744.mjs → python-BRZC-1dQ.mjs} +11 -16
  126. package/query-BBDQWsft.mjs +15 -0
  127. package/query-BxDs8ftQ.js +5 -0
  128. package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-DCt2xozt.mjs} +32 -57
  129. package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-B9zBfkh6.mjs} +1 -1
  130. package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-CckKHm2z.js} +1 -1
  131. package/radio-list-item.js +9 -13
  132. package/radio-list-item.mjs +50 -66
  133. package/radio.js +1 -2
  134. package/radio.mjs +15 -32
  135. package/{ripple-handlers-9fb4a31a.js → ripple-handlers-CzfSBjWo.js} +8 -8
  136. package/{ripple-handlers-8883e893.mjs → ripple-handlers-i3WPEBiO.mjs} +20 -25
  137. package/select.js +15 -20
  138. package/select.mjs +196 -213
  139. package/side-sheet.js +1 -2
  140. package/side-sheet.mjs +18 -27
  141. package/slider-range.js +1 -1
  142. package/slider-range.mjs +15 -19
  143. package/slider.js +1 -1
  144. package/slider.mjs +18 -26
  145. package/snackbar.js +9 -10
  146. package/snackbar.mjs +30 -33
  147. package/{state-0974a8e5.js → state-C3HoXfoa.js} +1 -1
  148. package/{state-b5e865db.mjs → state-DaD9o2aK.mjs} +1 -1
  149. package/status-dialog/status-dialog.d.ts.map +1 -1
  150. package/status-dialog.js +15 -37
  151. package/status-dialog.mjs +47 -116
  152. package/status-header-item.js +1 -2
  153. package/status-header-item.mjs +7 -8
  154. package/status-header.js +4 -5
  155. package/status-header.mjs +22 -24
  156. package/{style-map-a135c6ab.js → style-map-BJBXlSqn.js} +1 -1
  157. package/{style-map-e7ec6d41.mjs → style-map-CCsABR5m.mjs} +4 -6
  158. package/style.css +1 -1
  159. package/switch.js +6 -7
  160. package/switch.mjs +20 -29
  161. package/tab-bar.js +18 -22
  162. package/tab-bar.mjs +192 -205
  163. package/tab.js +1 -6
  164. package/tab.mjs +13 -31
  165. package/text-lockup.js +1 -2
  166. package/text-lockup.mjs +14 -16
  167. package/textarea.js +15 -19
  168. package/textarea.mjs +53 -68
  169. package/textfield-BwmiygD8.js +136 -0
  170. package/textfield-C6sUZIeA.mjs +927 -0
  171. package/textfield.js +3 -7
  172. package/textfield.mjs +17 -37
  173. package/toolbar.js +1 -2
  174. package/toolbar.mjs +6 -13
  175. package/tooltip.js +3 -4
  176. package/tooltip.mjs +29 -40
  177. package/{top-app-bar-f83386e0.mjs → top-app-bar-4SA3DjLX.mjs} +2 -3
  178. package/{top-app-bar-a531c1b4.js → top-app-bar-CGjBuyiD.js} +2 -3
  179. package/top-app-bar-fixed.js +6 -6
  180. package/top-app-bar-fixed.mjs +24 -32
  181. package/top-app-bar.js +3 -3
  182. package/top-app-bar.mjs +18 -25
  183. package/tree-list-item.js +1 -2
  184. package/tree-list-item.mjs +9 -13
  185. package/tree-list.js +1 -2
  186. package/tree-list.mjs +6 -7
  187. package/{tslib.es6-c4b0f3b1.mjs → tslib.es6-pPsSiLLK.mjs} +15 -26
  188. package/typescript-CqVUCaiQ.js +6 -0
  189. package/{typescript-399a453a.mjs → typescript-qqbekFoQ.mjs} +10 -15
  190. package/typography.js +1 -2
  191. package/typography.mjs +7 -8
  192. package/code-editor-b36fad77.js +0 -662
  193. package/directive-1186bc23.js +0 -5
  194. package/html-b2900c6a.js +0 -6
  195. package/mwc-checkbox-base-02b4eb91.mjs +0 -198
  196. package/mwc-checkbox-base-935d9566.js +0 -41
  197. package/mwc-list-base-22616d0a.js +0 -111
  198. package/mwc-list-item-base-06d93e6e.js +0 -28
  199. package/mwc-list-item-base-3c6a3bfb.mjs +0 -202
  200. package/mwc-radio-base-147cf999.js +0 -101
  201. package/mwc-radio.css-4e140252.js +0 -5
  202. package/mwc-radio.css-7454bb11.mjs +0 -10
  203. package/python-6a1f2ad7.js +0 -6
  204. package/query-680f1868.js +0 -5
  205. package/query-d843aa92.mjs +0 -25
  206. package/textfield-83e78e56.js +0 -133
  207. package/textfield-853ebae5.mjs +0 -933
  208. package/typescript-98fbdb3d.js +0 -6
  209. /package/{_commonjsHelpers-2367a3a2.js → _commonjsHelpers-6jR-N8xe.js} +0 -0
  210. /package/{aria-property-fa2717fe.mjs → aria-property-6O5bK0tV.mjs} +0 -0
  211. /package/{aria-property-849c8816.js → aria-property-Dl2ZKBbP.js} +0 -0
  212. /package/{css-9be95551.js → css-Bn4le2Sp.js} +0 -0
  213. /package/{css-5dd354ac.mjs → css-DjwjINlv.mjs} +0 -0
  214. /package/{foundation-2334d146.mjs → foundation-PL3XY-m_.mjs} +0 -0
  215. /package/{foundation-e830bd94.js → foundation-pgmPu2iJ.js} +0 -0
  216. /package/{inert.esm-2cee6f2e.js → inert.esm-CNFtJ8pb.js} +0 -0
  217. /package/{keyboard-983b121c.mjs → keyboard-BLpVBEDM.mjs} +0 -0
  218. /package/{keyboard-39125691.js → keyboard-CZlaSOb1.js} +0 -0
  219. /package/{markdown-eae8e3ba.js → markdown-CrnizovQ.js} +0 -0
  220. /package/{markdown-9b448c46.mjs → markdown-bAu8rWEZ.mjs} +0 -0
  221. /package/{observer-be7b92e2.mjs → observer-DQ8OfVDQ.mjs} +0 -0
  222. /package/{observer-a096ab43.js → observer-N9cgkDqh.js} +0 -0
  223. /package/{property-9b6ea53b.mjs → property-DJzm_oB9.mjs} +0 -0
  224. /package/{property-57f6f6fe.js → property-DYTC_2-m.js} +0 -0
  225. /package/{query-assigned-elements-f623705d.js → query-assigned-elements-4CafVNR8.js} +0 -0
  226. /package/{r-42c6f0aa.js → r-DKABafMl.js} +0 -0
  227. /package/{r-630f5d6b.mjs → r-rF4J5dF2.mjs} +0 -0
  228. /package/{sql-63ec8e76.mjs → sql-CL8qgBkR.mjs} +0 -0
  229. /package/{sql-faf05577.js → sql-CXm05EUD.js} +0 -0
  230. /package/{tslib.es6-98719205.js → tslib.es6-CHeFCc6E.js} +0 -0
  231. /package/{utils-dc65fdc9.mjs → utils-Dr5MegQq.mjs} +0 -0
  232. /package/{utils-a8190a39.js → utils-wMBJ9n_n.js} +0 -0
package/code-snippet.mjs CHANGED
@@ -1,11 +1,9 @@
1
- import { i as Rt, r as At, s as Mt, x as Me, e as Ct } from "./query-assigned-elements-4a39219d.mjs";
2
- import { n as Te } from "./property-9b6ea53b.mjs";
3
- import { o as It } from "./query-assigned-nodes-df691e78.mjs";
4
- import { o as kt } from "./class-map-6e504a9a.mjs";
5
- import { g as xt } from "./_commonjsHelpers-2f131a27.mjs";
6
- import "./directive-daf4e9b6.mjs";
7
- const Dt = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host .code-slot{display:none}:host pre{margin:0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:16px;display:block;overflow-x:auto;font-family:var(--cv-theme-code-font-family);font-size:var(--cv-theme-code-font-size);font-weight:var(--cv-theme-code-font-weight);line-height:var(--cv-theme-code-line-height)}:host .hljs{color:var(--cv-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cv-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cv-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cv-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cv-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cv-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cv-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cv-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cv-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
8
- `;
1
+ import { s as Rt, x as Me, i as At, r as Mt, e as Ct } from "./query-assigned-elements-DCt2xozt.mjs";
2
+ import { n as Se } from "./property-DJzm_oB9.mjs";
3
+ import { o as It } from "./query-assigned-nodes-B9zBfkh6.mjs";
4
+ import { o as kt } from "./class-map-C1SJpero.mjs";
5
+ import { g as xt } from "./_commonjsHelpers-DjF3Plf2.mjs";
6
+ const Dt = ":host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host .code-slot{display:none}:host pre{margin:0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:16px;display:block;overflow-x:auto;font-family:var(--cv-theme-code-font-family);font-size:var(--cv-theme-code-font-size);font-weight:var(--cv-theme-code-font-weight);line-height:var(--cv-theme-code-line-height)}:host .hljs{color:var(--cv-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cv-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cv-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cv-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cv-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cv-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cv-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cv-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cv-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}";
9
7
  function gt(n) {
10
8
  return n instanceof Map ? n.clear = n.delete = n.set = function() {
11
9
  throw new Error("map is read-only");
@@ -16,7 +14,7 @@ function gt(n) {
16
14
  (s === "object" || s === "function") && !Object.isFrozen(t) && gt(t);
17
15
  }), n;
18
16
  }
19
- class Sn {
17
+ class Tn {
20
18
  /**
21
19
  * @param {CompiledMode} mode
22
20
  */
@@ -40,7 +38,7 @@ function ge(n, ...e) {
40
38
  }), /** @type {T} */
41
39
  t;
42
40
  }
43
- const Lt = "</span>", Tn = (n) => !!n.scope, Bt = (n, { prefix: e }) => {
41
+ const Lt = "</span>", Sn = (n) => !!n.scope, Bt = (n, { prefix: e }) => {
44
42
  if (n.startsWith("language:"))
45
43
  return n.replace("language:", "language-");
46
44
  if (n.includes(".")) {
@@ -74,8 +72,7 @@ class Ut {
74
72
  *
75
73
  * @param {Node} node */
76
74
  openNode(e) {
77
- if (!Tn(e))
78
- return;
75
+ if (!Sn(e)) return;
79
76
  const t = Bt(
80
77
  e.scope,
81
78
  { prefix: this.classPrefix }
@@ -87,7 +84,7 @@ class Ut {
87
84
  *
88
85
  * @param {Node} node */
89
86
  closeNode(e) {
90
- Tn(e) && (this.buffer += Lt);
87
+ Sn(e) && (this.buffer += Lt);
91
88
  }
92
89
  /**
93
90
  * returns the accumulated buffer
@@ -104,13 +101,13 @@ class Ut {
104
101
  this.buffer += `<span class="${e}">`;
105
102
  }
106
103
  }
107
- const wn = (n = {}) => {
104
+ const On = (n = {}) => {
108
105
  const e = { children: [] };
109
106
  return Object.assign(e, n), e;
110
107
  };
111
108
  class hn {
112
109
  constructor() {
113
- this.rootNode = wn(), this.stack = [this.rootNode];
110
+ this.rootNode = On(), this.stack = [this.rootNode];
114
111
  }
115
112
  get top() {
116
113
  return this.stack[this.stack.length - 1];
@@ -124,7 +121,7 @@ class hn {
124
121
  }
125
122
  /** @param {string} scope */
126
123
  openNode(e) {
127
- const t = wn({ scope: e });
124
+ const t = On({ scope: e });
128
125
  this.add(t), this.stack.push(t);
129
126
  }
130
127
  closeNode() {
@@ -132,8 +129,7 @@ class hn {
132
129
  return this.stack.pop();
133
130
  }
134
131
  closeAllNodes() {
135
- for (; this.closeNode(); )
136
- ;
132
+ for (; this.closeNode(); ) ;
137
133
  }
138
134
  toJSON() {
139
135
  return JSON.stringify(this.rootNode, null, 4);
@@ -260,7 +256,7 @@ const Gt = /\b\B/, mt = "[a-zA-Z]\\w*", vn = "[a-zA-Z_]\\w*", Et = "\\b\\d+(\\.\
260
256
  t.index !== 0 && s.ignoreMatch();
261
257
  }
262
258
  }, n);
263
- }, Se = {
259
+ }, Te = {
264
260
  begin: "\\\\[\\s\\S]",
265
261
  relevance: 0
266
262
  }, Yt = {
@@ -268,13 +264,13 @@ const Gt = /\b\B/, mt = "[a-zA-Z]\\w*", vn = "[a-zA-Z_]\\w*", Et = "\\b\\d+(\\.\
268
264
  begin: "'",
269
265
  end: "'",
270
266
  illegal: "\\n",
271
- contains: [Se]
267
+ contains: [Te]
272
268
  }, Zt = {
273
269
  scope: "string",
274
270
  begin: '"',
275
271
  end: '"',
276
272
  illegal: "\\n",
277
- contains: [Se]
273
+ contains: [Te]
278
274
  }, Xt = {
279
275
  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/
280
276
  }, ke = function(n, e, t = {}) {
@@ -360,12 +356,12 @@ const Gt = /\b\B/, mt = "[a-zA-Z]\\w*", vn = "[a-zA-Z_]\\w*", Et = "\\b\\d+(\\.\
360
356
  begin: /\/(?=[^/\n]*\/)/,
361
357
  end: /\/[gimuy]*/,
362
358
  contains: [
363
- Se,
359
+ Te,
364
360
  {
365
361
  begin: /\[/,
366
362
  end: /\]/,
367
363
  relevance: 0,
368
- contains: [Se]
364
+ contains: [Te]
369
365
  }
370
366
  ]
371
367
  }, rr = {
@@ -398,7 +394,7 @@ const Gt = /\b\B/, mt = "[a-zA-Z]\\w*", vn = "[a-zA-Z_]\\w*", Et = "\\b\\d+(\\.\
398
394
  var Ce = /* @__PURE__ */ Object.freeze({
399
395
  __proto__: null,
400
396
  APOS_STRING_MODE: Yt,
401
- BACKSLASH_ESCAPE: Se,
397
+ BACKSLASH_ESCAPE: Te,
402
398
  BINARY_NUMBER_MODE: nr,
403
399
  BINARY_NUMBER_RE: ht,
404
400
  COMMENT: ke,
@@ -436,8 +432,7 @@ function dr(n, e) {
436
432
  }
437
433
  function ur(n, e) {
438
434
  if (n.match) {
439
- if (n.begin || n.end)
440
- throw new Error("begin & end are not supported with match");
435
+ if (n.begin || n.end) throw new Error("begin & end are not supported with match");
441
436
  n.begin = n.match, delete n.match;
442
437
  }
443
438
  }
@@ -445,10 +440,8 @@ function gr(n, e) {
445
440
  n.relevance === void 0 && (n.relevance = 1);
446
441
  }
447
442
  const br = (n, e) => {
448
- if (!n.beforeMatch)
449
- return;
450
- if (n.starts)
451
- throw new Error("beforeMatch cannot be used with starts");
443
+ if (!n.beforeMatch) return;
444
+ if (n.starts) throw new Error("beforeMatch cannot be used with starts");
452
445
  const t = Object.assign({}, n);
453
446
  Object.keys(n).forEach((s) => {
454
447
  delete n[s];
@@ -495,12 +488,12 @@ function mr(n, e) {
495
488
  function Er(n) {
496
489
  return pr.includes(n.toLowerCase());
497
490
  }
498
- const On = {}, pe = (n) => {
491
+ const wn = {}, pe = (n) => {
499
492
  console.error(n);
500
493
  }, Rn = (n, ...e) => {
501
494
  console.log(`WARN: ${n}`, ...e);
502
495
  }, he = (n, e) => {
503
- On[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), On[`${n}/${e}`] = !0);
496
+ wn[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), wn[`${n}/${e}`] = !0);
504
497
  }, Ie = new Error();
505
498
  function yt(n, e, { key: t }) {
506
499
  let s = 0;
@@ -569,8 +562,7 @@ function vr(n) {
569
562
  }
570
563
  // @ts-ignore
571
564
  getMatcher(r) {
572
- if (this.multiRegexes[r])
573
- return this.multiRegexes[r];
565
+ if (this.multiRegexes[r]) return this.multiRegexes[r];
574
566
  const i = new t();
575
567
  return this.rules.slice(r).forEach(([d, l]) => i.addRule(d, l)), i.compile(), this.multiRegexes[r] = i, i;
576
568
  }
@@ -605,8 +597,7 @@ function vr(n) {
605
597
  /** @type CompiledMode */
606
598
  a
607
599
  );
608
- if (a.isCompiled)
609
- return i;
600
+ if (a.isCompiled) return i;
610
601
  [
611
602
  cr,
612
603
  // do this early so compiler extensions generally don't have to worry about
@@ -627,7 +618,7 @@ function vr(n) {
627
618
  /** @type {RegExp | string} */
628
619
  a.illegal
629
620
  )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(l) {
630
- return Sr(l === "self" ? a : l);
621
+ return Tr(l === "self" ? a : l);
631
622
  })), a.contains.forEach(function(l) {
632
623
  o(
633
624
  /** @type Mode */
@@ -646,18 +637,18 @@ function vr(n) {
646
637
  function vt(n) {
647
638
  return n ? n.endsWithParent || vt(n.starts) : !1;
648
639
  }
649
- function Sr(n) {
640
+ function Tr(n) {
650
641
  return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
651
642
  return ge(n, { variants: null }, e);
652
643
  })), n.cachedVariants ? n.cachedVariants : vt(n) ? ge(n, { starts: n.starts ? ge(n.starts) : null }) : Object.isFrozen(n) ? ge(n) : n;
653
644
  }
654
- var Tr = "11.9.0";
655
- class wr extends Error {
645
+ var Sr = "11.9.0";
646
+ class Or extends Error {
656
647
  constructor(e, t) {
657
648
  super(e), this.name = "HTMLInjectionError", this.html = t;
658
649
  }
659
650
  }
660
- const Le = bt, An = ge, Mn = Symbol("nomatch"), Or = 7, St = function(n) {
651
+ const Le = bt, An = ge, Mn = Symbol("nomatch"), wr = 7, Tt = function(n) {
661
652
  const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
662
653
  let c = !0;
663
654
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -679,96 +670,95 @@ const Le = bt, An = ge, Mn = Symbol("nomatch"), Or = 7, St = function(n) {
679
670
  function d(u) {
680
671
  let f = u.className + " ";
681
672
  f += u.parentNode ? u.parentNode.className : "";
682
- const O = r.languageDetectRe.exec(f);
683
- if (O) {
684
- const k = I(O[1]);
685
- return k || (Rn(o.replace("{}", O[1])), Rn("Falling back to no-highlight mode for this block.", u)), k ? O[1] : "no-highlight";
673
+ const w = r.languageDetectRe.exec(f);
674
+ if (w) {
675
+ const k = I(w[1]);
676
+ return k || (Rn(o.replace("{}", w[1])), Rn("Falling back to no-highlight mode for this block.", u)), k ? w[1] : "no-highlight";
686
677
  }
687
678
  return f.split(/\s+/).find((k) => i(k) || I(k));
688
679
  }
689
- function l(u, f, O) {
680
+ function l(u, f, w) {
690
681
  let k = "", U = "";
691
- typeof f == "object" ? (k = u, O = f.ignoreIllegals, U = f.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
692
- https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O === void 0 && (O = !0);
682
+ typeof f == "object" ? (k = u, w = f.ignoreIllegals, U = f.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
683
+ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w === void 0 && (w = !0);
693
684
  const Y = {
694
685
  code: k,
695
686
  language: U
696
687
  };
697
688
  B("before:highlight", Y);
698
- const ne = Y.result ? Y.result : g(Y.language, Y.code, O);
689
+ const ne = Y.result ? Y.result : g(Y.language, Y.code, w);
699
690
  return ne.code = Y.code, B("after:highlight", ne), ne;
700
691
  }
701
- function g(u, f, O, k) {
692
+ function g(u, f, w, k) {
702
693
  const U = /* @__PURE__ */ Object.create(null);
703
694
  function Y(_, y) {
704
695
  return _.keywords[y];
705
696
  }
706
697
  function ne() {
707
- if (!S.keywords) {
698
+ if (!T.keywords) {
708
699
  G.addText(P);
709
700
  return;
710
701
  }
711
702
  let _ = 0;
712
- S.keywordPatternRe.lastIndex = 0;
713
- let y = S.keywordPatternRe.exec(P), T = "";
703
+ T.keywordPatternRe.lastIndex = 0;
704
+ let y = T.keywordPatternRe.exec(P), S = "";
714
705
  for (; y; ) {
715
- T += P.substring(_, y.index);
716
- const x = re.case_insensitive ? y[0].toLowerCase() : y[0], X = Y(S, x);
706
+ S += P.substring(_, y.index);
707
+ const x = re.case_insensitive ? y[0].toLowerCase() : y[0], X = Y(T, x);
717
708
  if (X) {
718
709
  const [se, xe] = X;
719
- if (G.addText(T), T = "", U[x] = (U[x] || 0) + 1, U[x] <= Or && (fe += xe), se.startsWith("_"))
720
- T += y[0];
710
+ if (G.addText(S), S = "", U[x] = (U[x] || 0) + 1, U[x] <= wr && (fe += xe), se.startsWith("_"))
711
+ S += y[0];
721
712
  else {
722
713
  const De = re.classNameAliases[se] || se;
723
714
  Z(y[0], De);
724
715
  }
725
716
  } else
726
- T += y[0];
727
- _ = S.keywordPatternRe.lastIndex, y = S.keywordPatternRe.exec(P);
717
+ S += y[0];
718
+ _ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(P);
728
719
  }
729
- T += P.substring(_), G.addText(T);
720
+ S += P.substring(_), G.addText(S);
730
721
  }
731
722
  function te() {
732
- if (P === "")
733
- return;
723
+ if (P === "") return;
734
724
  let _ = null;
735
- if (typeof S.subLanguage == "string") {
736
- if (!e[S.subLanguage]) {
725
+ if (typeof T.subLanguage == "string") {
726
+ if (!e[T.subLanguage]) {
737
727
  G.addText(P);
738
728
  return;
739
729
  }
740
- _ = g(S.subLanguage, P, !0, Re[S.subLanguage]), Re[S.subLanguage] = /** @type {CompiledMode} */
730
+ _ = g(T.subLanguage, P, !0, Re[T.subLanguage]), Re[T.subLanguage] = /** @type {CompiledMode} */
741
731
  _._top;
742
732
  } else
743
- _ = p(P, S.subLanguage.length ? S.subLanguage : null);
744
- S.relevance > 0 && (fe += _.relevance), G.__addSublanguage(_._emitter, _.language);
733
+ _ = p(P, T.subLanguage.length ? T.subLanguage : null);
734
+ T.relevance > 0 && (fe += _.relevance), G.__addSublanguage(_._emitter, _.language);
745
735
  }
746
736
  function z() {
747
- S.subLanguage != null ? te() : ne(), P = "";
737
+ T.subLanguage != null ? te() : ne(), P = "";
748
738
  }
749
739
  function Z(_, y) {
750
740
  _ !== "" && (G.startScope(y), G.addText(_), G.endScope());
751
741
  }
752
742
  function q(_, y) {
753
- let T = 1;
743
+ let S = 1;
754
744
  const x = y.length - 1;
755
- for (; T <= x; ) {
756
- if (!_._emit[T]) {
757
- T++;
745
+ for (; S <= x; ) {
746
+ if (!_._emit[S]) {
747
+ S++;
758
748
  continue;
759
749
  }
760
- const X = re.classNameAliases[_[T]] || _[T], se = y[T];
761
- X ? Z(se, X) : (P = se, ne(), P = ""), T++;
750
+ const X = re.classNameAliases[_[S]] || _[S], se = y[S];
751
+ X ? Z(se, X) : (P = se, ne(), P = ""), S++;
762
752
  }
763
753
  }
764
754
  function K(_, y) {
765
- return _.scope && typeof _.scope == "string" && G.openNode(re.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (Z(P, re.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), P = "") : _.beginScope._multi && (q(_.beginScope, y), P = "")), S = Object.create(_, { parent: { value: S } }), S;
755
+ return _.scope && typeof _.scope == "string" && G.openNode(re.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (Z(P, re.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), P = "") : _.beginScope._multi && (q(_.beginScope, y), P = "")), T = Object.create(_, { parent: { value: T } }), T;
766
756
  }
767
- function Q(_, y, T) {
768
- let x = Kt(_.endRe, T);
757
+ function Q(_, y, S) {
758
+ let x = Kt(_.endRe, S);
769
759
  if (x) {
770
760
  if (_["on:end"]) {
771
- const X = new Sn(_);
761
+ const X = new Tn(_);
772
762
  _["on:end"](y, X), X.isMatchIgnored && (x = !1);
773
763
  }
774
764
  if (x) {
@@ -778,41 +768,41 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
778
768
  }
779
769
  }
780
770
  if (_.endsWithParent)
781
- return Q(_.parent, y, T);
771
+ return Q(_.parent, y, S);
782
772
  }
783
773
  function j(_) {
784
- return S.matcher.regexIndex === 0 ? (P += _[0], 1) : (ce = !0, 0);
774
+ return T.matcher.regexIndex === 0 ? (P += _[0], 1) : (ce = !0, 0);
785
775
  }
786
776
  function ee(_) {
787
- const y = _[0], T = _.rule, x = new Sn(T), X = [T.__beforeBegin, T["on:begin"]];
777
+ const y = _[0], S = _.rule, x = new Tn(S), X = [S.__beforeBegin, S["on:begin"]];
788
778
  for (const se of X)
789
779
  if (se && (se(_, x), x.isMatchIgnored))
790
780
  return j(y);
791
- return T.skip ? P += y : (T.excludeBegin && (P += y), z(), !T.returnBegin && !T.excludeBegin && (P = y)), K(T, _), T.returnBegin ? 0 : y.length;
781
+ return S.skip ? P += y : (S.excludeBegin && (P += y), z(), !S.returnBegin && !S.excludeBegin && (P = y)), K(S, _), S.returnBegin ? 0 : y.length;
792
782
  }
793
783
  function ie(_) {
794
- const y = _[0], T = f.substring(_.index), x = Q(S, _, T);
784
+ const y = _[0], S = f.substring(_.index), x = Q(T, _, S);
795
785
  if (!x)
796
786
  return Mn;
797
- const X = S;
798
- S.endScope && S.endScope._wrap ? (z(), Z(y, S.endScope._wrap)) : S.endScope && S.endScope._multi ? (z(), q(S.endScope, _)) : X.skip ? P += y : (X.returnEnd || X.excludeEnd || (P += y), z(), X.excludeEnd && (P = y));
787
+ const X = T;
788
+ T.endScope && T.endScope._wrap ? (z(), Z(y, T.endScope._wrap)) : T.endScope && T.endScope._multi ? (z(), q(T.endScope, _)) : X.skip ? P += y : (X.returnEnd || X.excludeEnd || (P += y), z(), X.excludeEnd && (P = y));
799
789
  do
800
- S.scope && G.closeNode(), !S.skip && !S.subLanguage && (fe += S.relevance), S = S.parent;
801
- while (S !== x.parent);
790
+ T.scope && G.closeNode(), !T.skip && !T.subLanguage && (fe += T.relevance), T = T.parent;
791
+ while (T !== x.parent);
802
792
  return x.starts && K(x.starts, _), X.returnEnd ? 0 : y.length;
803
793
  }
804
794
  function oe() {
805
795
  const _ = [];
806
- for (let y = S; y !== re; y = y.parent)
796
+ for (let y = T; y !== re; y = y.parent)
807
797
  y.scope && _.unshift(y.scope);
808
798
  _.forEach((y) => G.openNode(y));
809
799
  }
810
800
  let be = {};
811
- function we(_, y) {
812
- const T = y && y[0];
813
- if (P += _, T == null)
801
+ function Oe(_, y) {
802
+ const S = y && y[0];
803
+ if (P += _, S == null)
814
804
  return z(), 0;
815
- if (be.type === "begin" && y.type === "end" && be.index === y.index && T === "") {
805
+ if (be.type === "begin" && y.type === "end" && be.index === y.index && S === "") {
816
806
  if (P += f.slice(y.index, y.index + 1), !c) {
817
807
  const x = new Error(`0 width match regex (${u})`);
818
808
  throw x.languageName = u, x.badRule = be.rule, x;
@@ -821,25 +811,25 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
821
811
  }
822
812
  if (be = y, y.type === "begin")
823
813
  return ee(y);
824
- if (y.type === "illegal" && !O) {
825
- const x = new Error('Illegal lexeme "' + T + '" for mode "' + (S.scope || "<unnamed>") + '"');
826
- throw x.mode = S, x;
814
+ if (y.type === "illegal" && !w) {
815
+ const x = new Error('Illegal lexeme "' + S + '" for mode "' + (T.scope || "<unnamed>") + '"');
816
+ throw x.mode = T, x;
827
817
  } else if (y.type === "end") {
828
818
  const x = ie(y);
829
819
  if (x !== Mn)
830
820
  return x;
831
821
  }
832
- if (y.type === "illegal" && T === "")
822
+ if (y.type === "illegal" && S === "")
833
823
  return 1;
834
824
  if (ue > 1e5 && ue > y.index * 3)
835
825
  throw new Error("potential infinite loop, way more iterations than matches");
836
- return P += T, T.length;
826
+ return P += S, S.length;
837
827
  }
838
828
  const re = I(u);
839
829
  if (!re)
840
830
  throw pe(o.replace("{}", u)), new Error('Unknown language: "' + u + '"');
841
- const Oe = vr(re);
842
- let Ee = "", S = k || Oe;
831
+ const we = vr(re);
832
+ let Ee = "", T = k || we;
843
833
  const Re = {}, G = new r.__emitter(r);
844
834
  oe();
845
835
  let P = "", fe = 0, de = 0, ue = 0, ce = !1;
@@ -847,15 +837,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
847
837
  if (re.__emitTokens)
848
838
  re.__emitTokens(f, G);
849
839
  else {
850
- for (S.matcher.considerAll(); ; ) {
851
- ue++, ce ? ce = !1 : S.matcher.considerAll(), S.matcher.lastIndex = de;
852
- const _ = S.matcher.exec(f);
853
- if (!_)
854
- break;
855
- const y = f.substring(de, _.index), T = we(y, _);
856
- de = _.index + T;
840
+ for (T.matcher.considerAll(); ; ) {
841
+ ue++, ce ? ce = !1 : T.matcher.considerAll(), T.matcher.lastIndex = de;
842
+ const _ = T.matcher.exec(f);
843
+ if (!_) break;
844
+ const y = f.substring(de, _.index), S = Oe(y, _);
845
+ de = _.index + S;
857
846
  }
858
- we(f.substring(de));
847
+ Oe(f.substring(de));
859
848
  }
860
849
  return G.finalize(), Ee = G.toHTML(), {
861
850
  language: u,
@@ -863,7 +852,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
863
852
  relevance: fe,
864
853
  illegal: !1,
865
854
  _emitter: G,
866
- _top: S
855
+ _top: T
867
856
  };
868
857
  } catch (_) {
869
858
  if (_.message && _.message.includes("Illegal"))
@@ -889,7 +878,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
889
878
  relevance: 0,
890
879
  errorRaised: _,
891
880
  _emitter: G,
892
- _top: S
881
+ _top: T
893
882
  };
894
883
  throw _;
895
884
  }
@@ -906,13 +895,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
906
895
  }
907
896
  function p(u, f) {
908
897
  f = f || r.languages || Object.keys(e);
909
- const O = b(u), k = f.filter(I).filter(F).map(
898
+ const w = b(u), k = f.filter(I).filter(F).map(
910
899
  (z) => g(z, u, !1)
911
900
  );
912
- k.unshift(O);
901
+ k.unshift(w);
913
902
  const U = k.sort((z, Z) => {
914
- if (z.relevance !== Z.relevance)
915
- return Z.relevance - z.relevance;
903
+ if (z.relevance !== Z.relevance) return Z.relevance - z.relevance;
916
904
  if (z.language && Z.language) {
917
905
  if (I(z.language).supersetOf === Z.language)
918
906
  return 1;
@@ -923,30 +911,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
923
911
  }), [Y, ne] = U, te = Y;
924
912
  return te.secondBest = ne, te;
925
913
  }
926
- function m(u, f, O) {
927
- const k = f && t[f] || O;
914
+ function m(u, f, w) {
915
+ const k = f && t[f] || w;
928
916
  u.classList.add("hljs"), u.classList.add(`language-${k}`);
929
917
  }
930
918
  function E(u) {
931
919
  let f = null;
932
- const O = d(u);
933
- if (i(O))
934
- return;
920
+ const w = d(u);
921
+ if (i(w)) return;
935
922
  if (B(
936
923
  "before:highlightElement",
937
- { el: u, language: O }
924
+ { el: u, language: w }
938
925
  ), u.dataset.highlighted) {
939
926
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", u);
940
927
  return;
941
928
  }
942
929
  if (u.children.length > 0 && (r.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(u)), r.throwUnescapedHTML))
943
- throw new wr(
930
+ throw new Or(
944
931
  "One of your code blocks includes unescaped HTML.",
945
932
  u.innerHTML
946
933
  );
947
934
  f = u;
948
- const k = f.textContent, U = O ? l(k, { language: O, ignoreIllegals: !0 }) : p(k);
949
- u.innerHTML = U.value, u.dataset.highlighted = "yes", m(u, O, U.language), u.result = {
935
+ const k = f.textContent, U = w ? l(k, { language: w, ignoreIllegals: !0 }) : p(k);
936
+ u.innerHTML = U.value, u.dataset.highlighted = "yes", m(u, w, U.language), u.result = {
950
937
  language: U.language,
951
938
  // TODO: remove with version 11.0
952
939
  re: U.relevance,
@@ -962,7 +949,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
962
949
  const h = () => {
963
950
  M(), he("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
964
951
  };
965
- function w() {
952
+ function O() {
966
953
  M(), he("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
967
954
  }
968
955
  let C = !1;
@@ -978,17 +965,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
978
965
  }
979
966
  typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", A, !1);
980
967
  function D(u, f) {
981
- let O = null;
968
+ let w = null;
982
969
  try {
983
- O = f(n);
970
+ w = f(n);
984
971
  } catch (k) {
985
972
  if (pe("Language definition for '{}' could not be registered.".replace("{}", u)), c)
986
973
  pe(k);
987
974
  else
988
975
  throw k;
989
- O = a;
976
+ w = a;
990
977
  }
991
- O.name || (O.name = u), e[u] = O, O.rawDefinition = f.bind(null, n), O.aliases && H(O.aliases, { languageName: u });
978
+ w.name || (w.name = u), e[u] = w, w.rawDefinition = f.bind(null, n), w.aliases && H(w.aliases, { languageName: u });
992
979
  }
993
980
  function L(u) {
994
981
  delete e[u];
@@ -1002,8 +989,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
1002
989
  return u = (u || "").toLowerCase(), e[u] || e[t[u]];
1003
990
  }
1004
991
  function H(u, { languageName: f }) {
1005
- typeof u == "string" && (u = [u]), u.forEach((O) => {
1006
- t[O.toLowerCase()] = f;
992
+ typeof u == "string" && (u = [u]), u.forEach((w) => {
993
+ t[w.toLowerCase()] = f;
1007
994
  });
1008
995
  }
1009
996
  function F(u) {
@@ -1029,9 +1016,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
1029
1016
  f !== -1 && s.splice(f, 1);
1030
1017
  }
1031
1018
  function B(u, f) {
1032
- const O = u;
1019
+ const w = u;
1033
1020
  s.forEach(function(k) {
1034
- k[O] && k[O](f);
1021
+ k[w] && k[w](f);
1035
1022
  });
1036
1023
  }
1037
1024
  function V(u) {
@@ -1046,7 +1033,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
1046
1033
  highlightBlock: V,
1047
1034
  configure: N,
1048
1035
  initHighlighting: h,
1049
- initHighlightingOnLoad: w,
1036
+ initHighlightingOnLoad: O,
1050
1037
  registerLanguage: D,
1051
1038
  unregisterLanguage: L,
1052
1039
  listLanguages: v,
@@ -1060,7 +1047,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
1060
1047
  c = !1;
1061
1048
  }, n.safeMode = function() {
1062
1049
  c = !0;
1063
- }, n.versionString = Tr, n.regex = {
1050
+ }, n.versionString = Sr, n.regex = {
1064
1051
  concat: _e,
1065
1052
  lookahead: pt,
1066
1053
  either: Nn,
@@ -1070,15 +1057,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O ===
1070
1057
  for (const u in Ce)
1071
1058
  typeof Ce[u] == "object" && gt(Ce[u]);
1072
1059
  return Object.assign(n, Ce), n;
1073
- }, Ne = St({});
1074
- Ne.newInstance = () => St({});
1060
+ }, Ne = Tt({});
1061
+ Ne.newInstance = () => Tt({});
1075
1062
  var Rr = Ne;
1076
1063
  Ne.HighlightJS = Ne;
1077
1064
  Ne.default = Ne;
1078
1065
  var Be, Cn;
1079
1066
  function Ar() {
1080
- if (Cn)
1081
- return Be;
1067
+ if (Cn) return Be;
1082
1068
  Cn = 1;
1083
1069
  function n(e) {
1084
1070
  const t = e.regex, s = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), c = /[\p{L}0-9._:-]+/u, o = {
@@ -1300,8 +1286,7 @@ function Ar() {
1300
1286
  }
1301
1287
  var Ue, In;
1302
1288
  function Mr() {
1303
- if (In)
1304
- return Ue;
1289
+ if (In) return Ue;
1305
1290
  In = 1;
1306
1291
  function n(e) {
1307
1292
  const t = e.regex, s = {}, c = {
@@ -1410,7 +1395,7 @@ function Mr() {
1410
1395
  ], N = [
1411
1396
  "true",
1412
1397
  "false"
1413
- ], h = { match: /(\/[a-z._-]+)+/ }, w = [
1398
+ ], h = { match: /(\/[a-z._-]+)+/ }, O = [
1414
1399
  "break",
1415
1400
  "cd",
1416
1401
  "continue",
@@ -1633,7 +1618,7 @@ function Mr() {
1633
1618
  keyword: E,
1634
1619
  literal: N,
1635
1620
  built_in: [
1636
- ...w,
1621
+ ...O,
1637
1622
  ...C,
1638
1623
  // Shell modifiers
1639
1624
  "set",
@@ -1664,17 +1649,16 @@ function Mr() {
1664
1649
  }
1665
1650
  var Pe, kn;
1666
1651
  function Cr() {
1667
- if (kn)
1668
- return Pe;
1652
+ if (kn) return Pe;
1669
1653
  kn = 1;
1670
1654
  function n(e) {
1671
- const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
1655
+ const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", r = "(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", i = {
1672
1656
  className: "type",
1673
1657
  variants: [
1674
1658
  { begin: "\\b[a-z\\d_]*_t\\b" },
1675
1659
  { match: /\batomic_[a-z]{3,6}\b/ }
1676
1660
  ]
1677
- }, d = "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)", l = {
1661
+ }, l = {
1678
1662
  className: "string",
1679
1663
  variants: [
1680
1664
  {
@@ -1684,7 +1668,7 @@ function Cr() {
1684
1668
  contains: [e.BACKSLASH_ESCAPE]
1685
1669
  },
1686
1670
  {
1687
- begin: "(u8?|U|L)?'(" + d + "|.)",
1671
+ begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
1688
1672
  end: "'",
1689
1673
  illegal: "."
1690
1674
  },
@@ -1793,7 +1777,7 @@ function Cr() {
1793
1777
  literal: "true false NULL",
1794
1778
  // TODO: apply hinting work similar to what was done in cpp.js
1795
1779
  built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
1796
- }, w = [
1780
+ }, O = [
1797
1781
  b,
1798
1782
  i,
1799
1783
  s,
@@ -1819,12 +1803,12 @@ function Cr() {
1819
1803
  }
1820
1804
  ],
1821
1805
  keywords: h,
1822
- contains: w.concat([
1806
+ contains: O.concat([
1823
1807
  {
1824
1808
  begin: /\(/,
1825
1809
  end: /\)/,
1826
1810
  keywords: h,
1827
- contains: w.concat(["self"]),
1811
+ contains: O.concat(["self"]),
1828
1812
  relevance: 0
1829
1813
  }
1830
1814
  ]),
@@ -1901,7 +1885,7 @@ function Cr() {
1901
1885
  contains: [].concat(
1902
1886
  C,
1903
1887
  M,
1904
- w,
1888
+ O,
1905
1889
  [
1906
1890
  b,
1907
1891
  {
@@ -1930,14 +1914,13 @@ function Cr() {
1930
1914
  }
1931
1915
  var Fe, xn;
1932
1916
  function Ir() {
1933
- if (xn)
1934
- return Fe;
1917
+ if (xn) return Fe;
1935
1918
  xn = 1;
1936
1919
  function n(e) {
1937
- const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(?!struct)(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
1920
+ const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", r = "(?!struct)(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", i = {
1938
1921
  className: "type",
1939
1922
  begin: "\\b[a-z\\d_]*_t\\b"
1940
- }, d = "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)", l = {
1923
+ }, l = {
1941
1924
  className: "string",
1942
1925
  variants: [
1943
1926
  {
@@ -1947,7 +1930,7 @@ function Ir() {
1947
1930
  contains: [e.BACKSLASH_ESCAPE]
1948
1931
  },
1949
1932
  {
1950
- begin: "(u8?|U|L)?'(" + d + "|.)",
1933
+ begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
1951
1934
  end: "'",
1952
1935
  illegal: "."
1953
1936
  },
@@ -2147,7 +2130,7 @@ function Ir() {
2147
2130
  "weak_ptr",
2148
2131
  "wstring",
2149
2132
  "wstring_view"
2150
- ], w = [
2133
+ ], O = [
2151
2134
  "abort",
2152
2135
  "abs",
2153
2136
  "acos",
@@ -2265,7 +2248,7 @@ function Ir() {
2265
2248
  relevance: 0,
2266
2249
  keywords: {
2267
2250
  // Only for relevance, not highlighting.
2268
- _hint: w
2251
+ _hint: O
2269
2252
  },
2270
2253
  begin: t.concat(
2271
2254
  /\b/,
@@ -2446,8 +2429,7 @@ function Ir() {
2446
2429
  }
2447
2430
  var $e, Dn;
2448
2431
  function kr() {
2449
- if (Dn)
2450
- return $e;
2432
+ if (Dn) return $e;
2451
2433
  Dn = 1;
2452
2434
  function n(e) {
2453
2435
  const t = [
@@ -2660,7 +2642,7 @@ function kr() {
2660
2642
  l,
2661
2643
  e.APOS_STRING_MODE,
2662
2644
  e.QUOTE_STRING_MODE
2663
- ] }, w = {
2645
+ ] }, O = {
2664
2646
  begin: "<",
2665
2647
  end: ">",
2666
2648
  contains: [
@@ -2723,7 +2705,7 @@ function kr() {
2723
2705
  contains: [
2724
2706
  { beginKeywords: "where class" },
2725
2707
  i,
2726
- w,
2708
+ O,
2727
2709
  e.C_LINE_COMMENT_MODE,
2728
2710
  e.C_BLOCK_COMMENT_MODE
2729
2711
  ]
@@ -2746,7 +2728,7 @@ function kr() {
2746
2728
  illegal: /[^\s:]/,
2747
2729
  contains: [
2748
2730
  i,
2749
- w,
2731
+ O,
2750
2732
  e.C_LINE_COMMENT_MODE,
2751
2733
  e.C_BLOCK_COMMENT_MODE
2752
2734
  ]
@@ -2790,7 +2772,7 @@ function kr() {
2790
2772
  returnBegin: !0,
2791
2773
  contains: [
2792
2774
  e.TITLE_MODE,
2793
- w
2775
+ O
2794
2776
  ],
2795
2777
  relevance: 0
2796
2778
  },
@@ -2821,8 +2803,7 @@ function kr() {
2821
2803
  }
2822
2804
  var ze, Ln;
2823
2805
  function xr() {
2824
- if (Ln)
2825
- return ze;
2806
+ if (Ln) return ze;
2826
2807
  Ln = 1;
2827
2808
  const n = (r) => ({
2828
2809
  IMPORTANT: {
@@ -3544,8 +3525,7 @@ function xr() {
3544
3525
  }
3545
3526
  var Ke, Bn;
3546
3527
  function Dr() {
3547
- if (Bn)
3548
- return Ke;
3528
+ if (Bn) return Ke;
3549
3529
  Bn = 1;
3550
3530
  function n(e) {
3551
3531
  const t = e.regex, s = {
@@ -3759,8 +3739,7 @@ function Dr() {
3759
3739
  }
3760
3740
  var qe, Un;
3761
3741
  function Lr() {
3762
- if (Un)
3763
- return qe;
3742
+ if (Un) return qe;
3764
3743
  Un = 1;
3765
3744
  function n(e) {
3766
3745
  const t = e.regex;
@@ -3817,8 +3796,7 @@ function Lr() {
3817
3796
  }
3818
3797
  var Ge, Pn;
3819
3798
  function Br() {
3820
- if (Pn)
3821
- return Ge;
3799
+ if (Pn) return Ge;
3822
3800
  Pn = 1;
3823
3801
  function n(e) {
3824
3802
  const t = e.regex, s = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", c = t.either(
@@ -4173,7 +4151,7 @@ function Br() {
4173
4151
  }
4174
4152
  ].concat(d, l);
4175
4153
  g.contains = L, N.contains = L;
4176
- const v = "[>?]>", I = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", H = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", F = [
4154
+ const F = [
4177
4155
  {
4178
4156
  begin: /^\s*=>/,
4179
4157
  starts: {
@@ -4183,7 +4161,7 @@ function Br() {
4183
4161
  },
4184
4162
  {
4185
4163
  className: "meta.prompt",
4186
- begin: "^(" + v + "|" + I + "|" + H + ")(?=[ ])",
4164
+ begin: "^(" + "[>?]>" + "|" + "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]" + "|" + "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>" + ")(?=[ ])",
4187
4165
  starts: {
4188
4166
  end: "$",
4189
4167
  keywords: r,
@@ -4209,8 +4187,7 @@ function Br() {
4209
4187
  }
4210
4188
  var He, Fn;
4211
4189
  function Ur() {
4212
- if (Fn)
4213
- return He;
4190
+ if (Fn) return He;
4214
4191
  Fn = 1;
4215
4192
  function n(e) {
4216
4193
  const a = {
@@ -4344,8 +4321,7 @@ function Ur() {
4344
4321
  }
4345
4322
  var We, $n;
4346
4323
  function Pr() {
4347
- if ($n)
4348
- return We;
4324
+ if ($n) return We;
4349
4325
  $n = 1;
4350
4326
  function n(e) {
4351
4327
  const t = e.regex, s = /[_A-Za-z][_0-9A-Za-z]*/;
@@ -4418,8 +4394,7 @@ function Pr() {
4418
4394
  }
4419
4395
  var Ye, zn;
4420
4396
  function Fr() {
4421
- if (zn)
4422
- return Ye;
4397
+ if (zn) return Ye;
4423
4398
  zn = 1;
4424
4399
  function n(e) {
4425
4400
  const t = e.regex, s = {
@@ -4529,8 +4504,7 @@ function Fr() {
4529
4504
  }
4530
4505
  var Ze, Kn;
4531
4506
  function $r() {
4532
- if (Kn)
4533
- return Ze;
4507
+ if (Kn) return Ze;
4534
4508
  Kn = 1;
4535
4509
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
4536
4510
  className: "number",
@@ -4771,8 +4745,7 @@ function $r() {
4771
4745
  }
4772
4746
  var Xe, qn;
4773
4747
  function zr() {
4774
- if (qn)
4775
- return Xe;
4748
+ if (qn) return Xe;
4776
4749
  qn = 1;
4777
4750
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
4778
4751
  "as",
@@ -4963,12 +4936,12 @@ function zr() {
4963
4936
  literal: t,
4964
4937
  built_in: r,
4965
4938
  "variable.language": a
4966
- }, h = "[0-9](_?[0-9])*", w = `\\.(${h})`, C = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
4939
+ }, h = "[0-9](_?[0-9])*", O = `\\.(${h})`, C = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
4967
4940
  className: "number",
4968
4941
  variants: [
4969
4942
  // DecimalLiteral
4970
- { begin: `(\\b(${C})((${w})|\\.)?|(${w}))[eE][+-]?(${h})\\b` },
4971
- { begin: `\\b(${C})\\b((${w})\\b|\\.)?|(${w})\\b` },
4943
+ { begin: `(\\b(${C})((${O})|\\.)?|(${O}))[eE][+-]?(${h})\\b` },
4944
+ { begin: `\\b(${C})\\b((${O})\\b|\\.)?|(${O})\\b` },
4972
4945
  // DecimalBigIntegerLiteral
4973
4946
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
4974
4947
  // NonDecimalIntegerLiteral
@@ -5178,7 +5151,7 @@ function zr() {
5178
5151
  className: "meta",
5179
5152
  relevance: 10,
5180
5153
  begin: /^\s*['"]use (strict|asm)['"]/
5181
- }, O = {
5154
+ }, w = {
5182
5155
  variants: [
5183
5156
  {
5184
5157
  match: [
@@ -5377,7 +5350,7 @@ function zr() {
5377
5350
  }
5378
5351
  ]
5379
5352
  },
5380
- O,
5353
+ w,
5381
5354
  {
5382
5355
  // prevent this from getting swallowed up by function
5383
5356
  // since they appear "function like"
@@ -5429,8 +5402,7 @@ function zr() {
5429
5402
  }
5430
5403
  var Ve, Gn;
5431
5404
  function Kr() {
5432
- if (Gn)
5433
- return Ve;
5405
+ if (Gn) return Ve;
5434
5406
  Gn = 1;
5435
5407
  function n(e) {
5436
5408
  const t = {
@@ -5470,8 +5442,7 @@ function Kr() {
5470
5442
  }
5471
5443
  var Qe, Hn;
5472
5444
  function qr() {
5473
- if (Hn)
5474
- return Qe;
5445
+ if (Hn) return Qe;
5475
5446
  Hn = 1;
5476
5447
  var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
5477
5448
  className: "number",
@@ -5716,8 +5687,7 @@ function qr() {
5716
5687
  }
5717
5688
  var Je, Wn;
5718
5689
  function Gr() {
5719
- if (Wn)
5720
- return Je;
5690
+ if (Wn) return Je;
5721
5691
  Wn = 1;
5722
5692
  const n = (i) => ({
5723
5693
  IMPORTANT: {
@@ -6325,7 +6295,7 @@ function Gr() {
6325
6295
  begin: J,
6326
6296
  relevance: ae
6327
6297
  };
6328
- }, w = {
6298
+ }, O = {
6329
6299
  $pattern: /[a-z-]+/,
6330
6300
  keyword: g,
6331
6301
  attribute: t.join(" ")
@@ -6334,7 +6304,7 @@ function Gr() {
6334
6304
  begin: "\\(",
6335
6305
  end: "\\)",
6336
6306
  contains: E,
6337
- keywords: w,
6307
+ keywords: O,
6338
6308
  relevance: 0
6339
6309
  };
6340
6310
  E.push(
@@ -6404,7 +6374,7 @@ function Gr() {
6404
6374
  begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
6405
6375
  starts: {
6406
6376
  end: "[;{}]",
6407
- keywords: w,
6377
+ keywords: O,
6408
6378
  returnEnd: !0,
6409
6379
  contains: E,
6410
6380
  relevance: 0
@@ -6508,8 +6478,7 @@ function Gr() {
6508
6478
  }
6509
6479
  var je, Yn;
6510
6480
  function Hr() {
6511
- if (Yn)
6512
- return je;
6481
+ if (Yn) return je;
6513
6482
  Yn = 1;
6514
6483
  function n(e) {
6515
6484
  const t = "\\[=*\\[", s = "\\]=*\\]", c = {
@@ -6570,8 +6539,7 @@ function Hr() {
6570
6539
  }
6571
6540
  var en, Zn;
6572
6541
  function Wr() {
6573
- if (Zn)
6574
- return en;
6542
+ if (Zn) return en;
6575
6543
  Zn = 1;
6576
6544
  function n(e) {
6577
6545
  const t = {
@@ -6637,8 +6605,7 @@ function Wr() {
6637
6605
  }
6638
6606
  var nn, Xn;
6639
6607
  function Yr() {
6640
- if (Xn)
6641
- return nn;
6608
+ if (Xn) return nn;
6642
6609
  Xn = 1;
6643
6610
  function n(e) {
6644
6611
  const t = e.regex, s = [
@@ -7078,8 +7045,7 @@ function Yr() {
7078
7045
  }
7079
7046
  var tn, Vn;
7080
7047
  function Zr() {
7081
- if (Vn)
7082
- return tn;
7048
+ if (Vn) return tn;
7083
7049
  Vn = 1;
7084
7050
  function n(e) {
7085
7051
  const t = {
@@ -7319,8 +7285,7 @@ function Zr() {
7319
7285
  }
7320
7286
  var rn, Qn;
7321
7287
  function Xr() {
7322
- if (Qn)
7323
- return rn;
7288
+ if (Qn) return rn;
7324
7289
  Qn = 1;
7325
7290
  function n(e) {
7326
7291
  const t = e.regex, s = /(?![A-Za-z0-9])(?![$])/, c = t.concat(
@@ -7494,7 +7459,7 @@ function Xr() {
7494
7459
  "while",
7495
7460
  "xor",
7496
7461
  "yield"
7497
- ], w = [
7462
+ ], O = [
7498
7463
  // Standard PHP library:
7499
7464
  // <https://www.php.net/manual/en/book.spl.php>
7500
7465
  "Error|0",
@@ -7597,14 +7562,14 @@ function Xr() {
7597
7562
  B.push(V), V.toLowerCase() === V ? B.push(V.toUpperCase()) : B.push(V.toLowerCase());
7598
7563
  }), B;
7599
7564
  })(N),
7600
- built_in: w
7565
+ built_in: O
7601
7566
  }, A = (W) => W.map((B) => B.replace(/\|\d+$/, "")), D = { variants: [
7602
7567
  {
7603
7568
  match: [
7604
7569
  /new/,
7605
7570
  t.concat(p, "+"),
7606
7571
  // to prevent built ins from being confused as the class constructor call
7607
- t.concat("(?!", A(w).join("\\b|"), "\\b)"),
7572
+ t.concat("(?!", A(O).join("\\b|"), "\\b)"),
7608
7573
  o
7609
7574
  ],
7610
7575
  scope: {
@@ -7687,7 +7652,7 @@ function Xr() {
7687
7652
  match: [
7688
7653
  /\b/,
7689
7654
  // to prevent keywords from being confused as the function title
7690
- t.concat("(?!fn\\b|function\\b|", A(h).join("\\b|"), "|", A(w).join("\\b|"), "\\b)"),
7655
+ t.concat("(?!fn\\b|function\\b|", A(h).join("\\b|"), "|", A(O).join("\\b|"), "\\b)"),
7691
7656
  c,
7692
7657
  t.concat(p, "*"),
7693
7658
  t.lookahead(/(?=\()/)
@@ -7876,8 +7841,7 @@ function Xr() {
7876
7841
  }
7877
7842
  var an, Jn;
7878
7843
  function Vr() {
7879
- if (Jn)
7880
- return an;
7844
+ if (Jn) return an;
7881
7845
  Jn = 1;
7882
7846
  function n(e) {
7883
7847
  return {
@@ -7927,8 +7891,7 @@ function Vr() {
7927
7891
  }
7928
7892
  var sn, jn;
7929
7893
  function Qr() {
7930
- if (jn)
7931
- return sn;
7894
+ if (jn) return sn;
7932
7895
  jn = 1;
7933
7896
  function n(e) {
7934
7897
  return {
@@ -7944,11 +7907,10 @@ function Qr() {
7944
7907
  }
7945
7908
  var on, et;
7946
7909
  function Jr() {
7947
- if (et)
7948
- return on;
7910
+ if (et) return on;
7949
7911
  et = 1;
7950
7912
  function n(e) {
7951
- const t = e.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, c = [
7913
+ const t = e.regex, s = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), c = [
7952
7914
  "and",
7953
7915
  "as",
7954
7916
  "assert",
@@ -8234,7 +8196,7 @@ function Jr() {
8234
8196
  endsWithParent: !0
8235
8197
  }
8236
8198
  ]
8237
- }, w = {
8199
+ }, O = {
8238
8200
  className: "params",
8239
8201
  variants: [
8240
8202
  // Exclude params in functions without params
@@ -8299,7 +8261,7 @@ function Jr() {
8299
8261
  1: "keyword",
8300
8262
  3: "title.function"
8301
8263
  },
8302
- contains: [w]
8264
+ contains: [O]
8303
8265
  },
8304
8266
  {
8305
8267
  variants: [
@@ -8334,7 +8296,7 @@ function Jr() {
8334
8296
  end: /(?=#)|$/,
8335
8297
  contains: [
8336
8298
  N,
8337
- w,
8299
+ O,
8338
8300
  b
8339
8301
  ]
8340
8302
  }
@@ -8345,8 +8307,7 @@ function Jr() {
8345
8307
  }
8346
8308
  var cn, nt;
8347
8309
  function jr() {
8348
- if (nt)
8349
- return cn;
8310
+ if (nt) return cn;
8350
8311
  nt = 1;
8351
8312
  function n(e) {
8352
8313
  return {
@@ -8375,8 +8336,7 @@ function jr() {
8375
8336
  }
8376
8337
  var ln, tt;
8377
8338
  function ea() {
8378
- if (tt)
8379
- return ln;
8339
+ if (tt) return ln;
8380
8340
  tt = 1;
8381
8341
  function n(e) {
8382
8342
  const t = e.regex, s = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, c = t.either(
@@ -8586,8 +8546,7 @@ function ea() {
8586
8546
  }
8587
8547
  var dn, rt;
8588
8548
  function na() {
8589
- if (rt)
8590
- return dn;
8549
+ if (rt) return dn;
8591
8550
  rt = 1;
8592
8551
  function n(e) {
8593
8552
  const t = e.regex, s = {
@@ -8881,8 +8840,7 @@ function na() {
8881
8840
  }
8882
8841
  var un, at;
8883
8842
  function ta() {
8884
- if (at)
8885
- return un;
8843
+ if (at) return un;
8886
8844
  at = 1;
8887
8845
  const n = (r) => ({
8888
8846
  IMPORTANT: {
@@ -9589,8 +9547,7 @@ function ta() {
9589
9547
  }
9590
9548
  var gn, it;
9591
9549
  function ra() {
9592
- if (it)
9593
- return gn;
9550
+ if (it) return gn;
9594
9551
  it = 1;
9595
9552
  function n(e) {
9596
9553
  return {
@@ -9618,8 +9575,7 @@ function ra() {
9618
9575
  }
9619
9576
  var bn, st;
9620
9577
  function aa() {
9621
- if (st)
9622
- return bn;
9578
+ if (st) return bn;
9623
9579
  st = 1;
9624
9580
  function n(e) {
9625
9581
  const t = e.regex, s = e.COMMENT("--", "$"), c = {
@@ -10180,7 +10136,7 @@ function aa() {
10180
10136
  className: "operator",
10181
10137
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
10182
10138
  relevance: 0
10183
- }, w = {
10139
+ }, O = {
10184
10140
  begin: t.concat(/\b/, t.either(...m), /\s*\(/),
10185
10141
  relevance: 0,
10186
10142
  keywords: { built_in: m }
@@ -10219,7 +10175,7 @@ function aa() {
10219
10175
  className: "type",
10220
10176
  begin: t.either(...r)
10221
10177
  },
10222
- w,
10178
+ O,
10223
10179
  N,
10224
10180
  c,
10225
10181
  o,
@@ -10234,8 +10190,7 @@ function aa() {
10234
10190
  }
10235
10191
  var pn, ot;
10236
10192
  function ia() {
10237
- if (ot)
10238
- return pn;
10193
+ if (ot) return pn;
10239
10194
  ot = 1;
10240
10195
  function n(v) {
10241
10196
  return v ? typeof v == "string" ? v : v.source : null;
@@ -10516,11 +10471,11 @@ function ia() {
10516
10471
  // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
10517
10472
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
10518
10473
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
10519
- ), w = c(
10474
+ ), O = c(
10520
10475
  h,
10521
10476
  /\d/,
10522
10477
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
10523
- ), C = t(h, w, "*"), M = t(/[A-Z]/, w, "*"), A = [
10478
+ ), C = t(h, O, "*"), M = t(/[A-Z]/, O, "*"), A = [
10524
10479
  "attached",
10525
10480
  "autoclosure",
10526
10481
  t(/convention\(/, c("swift", "block", "c"), /\)/),
@@ -10607,7 +10562,7 @@ function ia() {
10607
10562
  J,
10608
10563
  ae,
10609
10564
  V
10610
- ], O = {
10565
+ ], w = {
10611
10566
  // Consume .built_in to prevent highlighting properties and methods.
10612
10567
  match: t(/\./, c(...p)),
10613
10568
  relevance: 0
@@ -10615,7 +10570,7 @@ function ia() {
10615
10570
  className: "built_in",
10616
10571
  match: t(/\b/, c(...p), /(?=\()/)
10617
10572
  }, U = [
10618
- O,
10573
+ w,
10619
10574
  k
10620
10575
  ], Y = {
10621
10576
  // Prevent -> from being highlighting as an operator.
@@ -10698,7 +10653,7 @@ function ia() {
10698
10653
  relevance: 0,
10699
10654
  contains: [v.BACKSLASH_ESCAPE]
10700
10655
  }
10701
- ], we = {
10656
+ ], Oe = {
10702
10657
  begin: /\/[^\s](?=[^/\n]*\/)/,
10703
10658
  end: /\//,
10704
10659
  contains: be
@@ -10716,23 +10671,23 @@ function ia() {
10716
10671
  }
10717
10672
  ]
10718
10673
  };
10719
- }, Oe = {
10674
+ }, we = {
10720
10675
  scope: "regexp",
10721
10676
  variants: [
10722
10677
  re("###"),
10723
10678
  re("##"),
10724
10679
  re("#"),
10725
- we
10680
+ Oe
10726
10681
  ]
10727
- }, Ee = { match: t(/`/, C, /`/) }, S = {
10682
+ }, Ee = { match: t(/`/, C, /`/) }, T = {
10728
10683
  className: "variable",
10729
10684
  match: /\$\d+/
10730
10685
  }, Re = {
10731
10686
  className: "variable",
10732
- match: `\\$${w}+`
10687
+ match: `\\$${O}+`
10733
10688
  }, G = [
10734
10689
  Ee,
10735
- S,
10690
+ T,
10736
10691
  Re
10737
10692
  ], P = {
10738
10693
  match: /(@|#(un)?)available/,
@@ -10766,7 +10721,7 @@ function ia() {
10766
10721
  {
10767
10722
  // Common Apple frameworks, for relevance boost
10768
10723
  className: "type",
10769
- match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, w, "+")
10724
+ match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, O, "+")
10770
10725
  },
10771
10726
  {
10772
10727
  // Type identifier
@@ -10807,7 +10762,7 @@ function ia() {
10807
10762
  match: t(C, /\s*:/),
10808
10763
  keywords: "_|0",
10809
10764
  relevance: 0
10810
- }, T = {
10765
+ }, S = {
10811
10766
  begin: /\(/,
10812
10767
  end: /\)/,
10813
10768
  relevance: 0,
@@ -10816,7 +10771,7 @@ function ia() {
10816
10771
  "self",
10817
10772
  y,
10818
10773
  ...F,
10819
- Oe,
10774
+ we,
10820
10775
  ...f,
10821
10776
  ...U,
10822
10777
  ...te,
@@ -10864,7 +10819,7 @@ function ia() {
10864
10819
  oe,
10865
10820
  ...ue,
10866
10821
  ce,
10867
- T
10822
+ S
10868
10823
  ],
10869
10824
  endsParent: !0,
10870
10825
  illegal: /["']/
@@ -10899,7 +10854,7 @@ function ia() {
10899
10854
  I
10900
10855
  ],
10901
10856
  illegal: /\[|%/
10902
- }, Tt = {
10857
+ }, St = {
10903
10858
  match: [
10904
10859
  /operator/,
10905
10860
  /\s+/,
@@ -10909,7 +10864,7 @@ function ia() {
10909
10864
  1: "keyword",
10910
10865
  3: "title"
10911
10866
  }
10912
- }, wt = {
10867
+ }, Ot = {
10913
10868
  begin: [
10914
10869
  /precedencegroup/,
10915
10870
  /\s+/,
@@ -10927,7 +10882,7 @@ function ia() {
10927
10882
  end: /}/
10928
10883
  };
10929
10884
  for (const $ of oe.variants) {
10930
- const Ae = $.contains.find((Ot) => Ot.label === "interpol");
10885
+ const Ae = $.contains.find((wt) => wt.label === "interpol");
10931
10886
  Ae.keywords = u;
10932
10887
  const ye = [
10933
10888
  ...f,
@@ -10969,15 +10924,15 @@ function ia() {
10969
10924
  ...f
10970
10925
  ]
10971
10926
  },
10972
- Tt,
10973
- wt,
10927
+ St,
10928
+ Ot,
10974
10929
  {
10975
10930
  beginKeywords: "import",
10976
10931
  end: /$/,
10977
10932
  contains: [...F],
10978
10933
  relevance: 0
10979
10934
  },
10980
- Oe,
10935
+ we,
10981
10936
  ...f,
10982
10937
  ...U,
10983
10938
  ...te,
@@ -10986,7 +10941,7 @@ function ia() {
10986
10941
  ...G,
10987
10942
  ...ue,
10988
10943
  ce,
10989
- T
10944
+ S
10990
10945
  ]
10991
10946
  };
10992
10947
  }
@@ -10994,8 +10949,7 @@ function ia() {
10994
10949
  }
10995
10950
  var _n, ct;
10996
10951
  function sa() {
10997
- if (ct)
10998
- return _n;
10952
+ if (ct) return _n;
10999
10953
  ct = 1;
11000
10954
  function n(e) {
11001
10955
  const t = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", c = {
@@ -11053,9 +11007,9 @@ function sa() {
11053
11007
  end: /"/
11054
11008
  },
11055
11009
  { begin: /[^\s,{}[\]]+/ }
11056
- ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", d = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", l = "(\\.[0-9]*)?", g = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", b = {
11010
+ ] }), b = {
11057
11011
  className: "number",
11058
- begin: "\\b" + i + d + l + g + "\\b"
11012
+ begin: "\\b" + "[0-9]{4}(-[0-9][0-9]){0,2}" + "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?" + "(\\.[0-9]*)?" + "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?" + "\\b"
11059
11013
  }, p = {
11060
11014
  end: ",",
11061
11015
  endsWithParent: !0,
@@ -11165,8 +11119,7 @@ function sa() {
11165
11119
  }
11166
11120
  var mn, lt;
11167
11121
  function oa() {
11168
- if (lt)
11169
- return mn;
11122
+ if (lt) return mn;
11170
11123
  lt = 1;
11171
11124
  const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
11172
11125
  "as",
@@ -11357,11 +11310,11 @@ function oa() {
11357
11310
  literal: t,
11358
11311
  built_in: r,
11359
11312
  "variable.language": a
11360
- }, w = "[0-9](_?[0-9])*", C = `\\.(${w})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
11313
+ }, O = "[0-9](_?[0-9])*", C = `\\.(${O})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
11361
11314
  className: "number",
11362
11315
  variants: [
11363
11316
  // DecimalLiteral
11364
- { begin: `(\\b(${M})((${C})|\\.)?|(${C}))[eE][+-]?(${w})\\b` },
11317
+ { begin: `(\\b(${M})((${C})|\\.)?|(${C}))[eE][+-]?(${O})\\b` },
11365
11318
  { begin: `\\b(${M})\\b((${C})\\b|\\.)?|(${C})\\b` },
11366
11319
  // DecimalBigIntegerLiteral
11367
11320
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
@@ -11567,7 +11520,7 @@ function oa() {
11567
11520
  ...c
11568
11521
  ]
11569
11522
  }
11570
- }, O = {
11523
+ }, w = {
11571
11524
  label: "use_strict",
11572
11525
  className: "meta",
11573
11526
  relevance: 10,
@@ -11678,7 +11631,7 @@ function oa() {
11678
11631
  binary: "node",
11679
11632
  relevance: 5
11680
11633
  }),
11681
- O,
11634
+ w,
11682
11635
  l.APOS_STRING_MODE,
11683
11636
  l.QUOTE_STRING_MODE,
11684
11637
  L,
@@ -11862,7 +11815,7 @@ function oa() {
11862
11815
  "readonly",
11863
11816
  "enum",
11864
11817
  "override"
11865
- ], w = {
11818
+ ], O = {
11866
11819
  $pattern: n,
11867
11820
  keyword: e.concat(h),
11868
11821
  literal: t,
@@ -11877,7 +11830,7 @@ function oa() {
11877
11830
  throw new Error("can not find mode to replace");
11878
11831
  D.contains.splice(I, 1, v);
11879
11832
  };
11880
- Object.assign(g.keywords, w), g.exports.PARAMS_CONTAINS.push(C), g.contains = g.contains.concat([
11833
+ Object.assign(g.keywords, O), g.exports.PARAMS_CONTAINS.push(C), g.contains = g.contains.concat([
11881
11834
  C,
11882
11835
  m,
11883
11836
  E
@@ -11897,8 +11850,7 @@ function oa() {
11897
11850
  }
11898
11851
  var En, dt;
11899
11852
  function ca() {
11900
- if (dt)
11901
- return En;
11853
+ if (dt) return En;
11902
11854
  dt = 1;
11903
11855
  function n(e) {
11904
11856
  const t = e.regex, s = {
@@ -12023,8 +11975,7 @@ function ca() {
12023
11975
  }
12024
11976
  var fn, ut;
12025
11977
  function la() {
12026
- if (ut)
12027
- return fn;
11978
+ if (ut) return fn;
12028
11979
  ut = 1;
12029
11980
  function n(e) {
12030
11981
  e.regex;
@@ -12185,7 +12136,7 @@ var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, me = (n, e
12185
12136
  (a = n[o]) && (c = (s ? a(e, t, c) : a(c)) || c);
12186
12137
  return s && c && ga(e, t, c), c;
12187
12138
  };
12188
- let le = class extends Mt {
12139
+ let le = class extends Rt {
12189
12140
  constructor() {
12190
12141
  super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
12191
12142
  }
@@ -12227,33 +12178,33 @@ let le = class extends Mt {
12227
12178
  }
12228
12179
  };
12229
12180
  le.styles = [
12230
- Rt`
12231
- ${At(Dt)}
12181
+ At`
12182
+ ${Mt(Dt)}
12232
12183
  `
12233
12184
  ];
12234
12185
  me([
12235
- Te()
12186
+ Se()
12236
12187
  ], le.prototype, "language", 2);
12237
12188
  me([
12238
- Te()
12189
+ Se()
12239
12190
  ], le.prototype, "label", 2);
12240
12191
  me([
12241
- Te({ type: Boolean, reflect: !0 })
12192
+ Se({ type: Boolean, reflect: !0 })
12242
12193
  ], le.prototype, "inline", 2);
12243
12194
  me([
12244
- Te({ type: Boolean, reflect: !0 })
12195
+ Se({ type: Boolean, reflect: !0 })
12245
12196
  ], le.prototype, "hideHeader", 2);
12246
12197
  me([
12247
12198
  It({})
12248
12199
  ], le.prototype, "_codeItems", 2);
12249
12200
  me([
12250
- Te()
12201
+ Se()
12251
12202
  ], le.prototype, "maxHeight", 2);
12252
12203
  le = me([
12253
12204
  Ct("cv-code-snippet")
12254
12205
  ], le);
12255
- const Na = le;
12206
+ const ha = le;
12256
12207
  export {
12257
12208
  le as CovalentCodeSnippet,
12258
- Na as default
12209
+ ha as default
12259
12210
  };