reactjs-tiptap-editor 1.0.11 → 1.0.12

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 (208) hide show
  1. package/lib/{ActionMenuButton-DTXFBdGX.js → ActionMenuButton-BKqin6Kz.js} +17 -13
  2. package/lib/ActionMenuButton-CPPHERbq.cjs +1 -0
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +24 -21
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +7 -5
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +11 -9
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +14 -12
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +11 -9
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +842 -948
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +10 -8
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +20 -18
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +7 -5
  23. package/lib/{Drawer-D0yQ0wR7.js → Drawer-DUPsBE0H.js} +18 -17
  24. package/lib/Drawer-fplzqNI6.cjs +1 -0
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +3 -3
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +19 -17
  29. package/lib/{Excalidraw-CO4IRHmG.js → Excalidraw-BEzpvRLx.js} +33 -32
  30. package/lib/Excalidraw-qjnQspLq.cjs +1 -0
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +2 -2
  33. package/lib/ExportPdf.cjs +2 -2
  34. package/lib/ExportPdf.js +7 -5
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +7 -5
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +9 -8
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +13 -12
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +25 -24
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +9 -7
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +18 -15
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +7 -5
  49. package/lib/Icon-CiR8RqdQ.cjs +1 -0
  50. package/lib/Icon-ONE1AwKo.js +12 -0
  51. package/lib/{Iframe-BEO28NPs.js → Iframe-CBTnv2mk.js} +45 -43
  52. package/lib/Iframe-DsUNJ2n2.cjs +1 -0
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +2 -2
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +52 -50
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +55 -53
  59. package/lib/ImportWord.cjs +31 -31
  60. package/lib/ImportWord.js +12 -10
  61. package/lib/{Indent-CXurBbOr.js → Indent-B00o0P0M.js} +26 -24
  62. package/lib/Indent-CaGP0qTp.cjs +1 -0
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +12 -10
  67. package/lib/Katex-XsfpKgJU.cjs +4 -0
  68. package/lib/{Katex-Bvj469K1.js → Katex-x370CSXZ.js} +27 -25
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +2 -2
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +17 -15
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-DjXUEubR.js → LinkEditBlock-C_ipl3EA.js} +27 -25
  76. package/lib/{LinkEditBlock-8ePAZ-G1.cjs → LinkEditBlock-xt88G5fb.cjs} +2 -2
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +3 -3
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +29 -28
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +25 -22
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +10 -8
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +48 -46
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +6 -6
  89. package/lib/SlashCommandNodeView-BT5ystah.cjs +1 -0
  90. package/lib/{SlashCommandNodeView-CcqL8ymb.js → SlashCommandNodeView-DX6axvLs.js} +74 -65
  91. package/lib/Strike.cjs +1 -1
  92. package/lib/Strike.js +7 -5
  93. package/lib/Table-DSRSwtXx.cjs +9 -0
  94. package/lib/{Table-9Y0Cg8Ab.js → Table-DidusYID.js} +10 -8
  95. package/lib/Table.cjs +1 -1
  96. package/lib/Table.js +1 -1
  97. package/lib/TaskList.cjs +1 -1
  98. package/lib/TaskList.js +15 -13
  99. package/lib/TextAlign.cjs +1 -1
  100. package/lib/TextAlign.js +20 -17
  101. package/lib/TextDirection.cjs +1 -1
  102. package/lib/TextDirection.js +20 -17
  103. package/lib/TextUnderline.cjs +1 -1
  104. package/lib/TextUnderline.js +7 -5
  105. package/lib/Twitter-CBuVBQM1.cjs +1 -0
  106. package/lib/{Twitter-DWwd0vHR.js → Twitter-D58T0Zt3.js} +59 -57
  107. package/lib/Twitter.cjs +1 -1
  108. package/lib/Twitter.js +2 -2
  109. package/lib/Video.cjs +1 -1
  110. package/lib/Video.js +27 -25
  111. package/lib/bubble.cjs +4 -4
  112. package/lib/bubble.js +70 -68
  113. package/lib/{button-RnHbJfd-.js → button-9_8t7ca7.js} +4 -3
  114. package/lib/button-Cs9TroWr.cjs +1 -0
  115. package/lib/{checkbox-CTEN0q4y.cjs → checkbox-BQRKTXXr.cjs} +1 -1
  116. package/lib/{checkbox-CLSoR1Qj.js → checkbox-DnkkV6qo.js} +1 -1
  117. package/lib/{index-BBNITgNi.cjs → clsx-CXbNJWDD.cjs} +13 -13
  118. package/lib/{index-sVScpCFG.js → clsx-DmuN0U_8.js} +228 -228
  119. package/lib/{dialog-CMC9hsCo.cjs → dialog-BS3zm-T9.cjs} +1 -1
  120. package/lib/{dialog-D_HCtKvc.js → dialog-DhayAPvV.js} +1 -1
  121. package/lib/{dropdown-menu-DKSAS-w_.cjs → dropdown-menu-CxwWX0yj.cjs} +1 -1
  122. package/lib/{dropdown-menu-66q7Ofc5.js → dropdown-menu-DQqKeZcx.js} +1 -1
  123. package/lib/events.constant-Dq21NPdV.cjs +1 -0
  124. package/lib/events.constant-do95b767.js +21 -0
  125. package/lib/{index-CApXPpjF.cjs → index-BCzvbrf5.cjs} +1 -1
  126. package/lib/{index-0OnGZkVF.js → index-BDX1uE62.js} +78 -312
  127. package/lib/index-CBFmXCcU.cjs +1 -0
  128. package/lib/{index-DmPwbBqm.js → index-CKmT9KAQ.js} +1 -1
  129. package/lib/index-CVFzP1Dc.cjs +1 -0
  130. package/lib/index-CX4pNJlH.cjs +1 -0
  131. package/lib/index-CjhjjJsN.cjs +1 -0
  132. package/lib/index-Cs6cp0Y6.cjs +1 -0
  133. package/lib/{index-9A6-kVBM.js → index-D1jd7elj.js} +1 -1
  134. package/lib/{index-C3zg3DPB.js → index-D9JOHlso.js} +493 -1186
  135. package/lib/{index-DRHrDScg.js → index-DdEmgiAA.js} +1 -1
  136. package/lib/{index-DKt5wfAc.js → index-DvvwJvau.js} +23 -23
  137. package/lib/index-EAK64CCA.js +425 -0
  138. package/lib/{index--nUS7Y66.cjs → index-neeeY2o7.cjs} +3 -3
  139. package/lib/index.cjs +9 -2
  140. package/lib/index.js +142 -26
  141. package/lib/{input-D555880-.cjs → input-BJ7ihMq-.cjs} +1 -1
  142. package/lib/{input-CvyMYMZG.js → input-YoheBL2D.js} +1 -1
  143. package/lib/{isNumber-Bv1Qhmw8.cjs → isNumber-BTYSVlKo.cjs} +1 -1
  144. package/lib/{isNumber-DF0fU3ob.js → isNumber-DmQXlKp3.js} +1 -1
  145. package/lib/label-C8PLcjFI.js +19 -0
  146. package/lib/label-Y7_hvqf2.cjs +1 -0
  147. package/lib/locale-bundle.cjs +1 -1
  148. package/lib/locale-bundle.js +6 -7
  149. package/lib/locales/index.d.ts +3 -4316
  150. package/lib/{popover-BSzR_R01.cjs → popover-BiSrlM4j.cjs} +1 -1
  151. package/lib/{popover-B7ec5-u2.js → popover-CWmTzHSy.js} +1 -1
  152. package/lib/react-BEoMZB61.cjs +1 -0
  153. package/lib/react-c9FSfB30.js +27 -0
  154. package/lib/separator-C-DKMYmg.js +329 -0
  155. package/lib/separator-CJ_adziN.cjs +1 -0
  156. package/lib/store/EditorEditableReactive.d.ts +1 -0
  157. package/lib/store/ThemeColorReactive.d.ts +1 -0
  158. package/lib/store/commandList.d.ts +1 -1
  159. package/lib/store/store.d.ts +6 -7
  160. package/lib/store-BKMaw1AW.cjs +1 -0
  161. package/lib/store-DG7cMfET.js +10 -0
  162. package/lib/{tabs-BTwiZkWd.cjs → tabs-DpHSMyF_.cjs} +1 -1
  163. package/lib/{tabs-CWr9HYaM.js → tabs-DxlKKM-N.js} +1 -1
  164. package/lib/{textarea-BdeLXbp8.js → textarea-D7m-apUh.js} +1 -1
  165. package/lib/{textarea-Yetl_PZi.cjs → textarea-DU9RMi6u.cjs} +1 -1
  166. package/lib/theme/theme.d.ts +5 -0
  167. package/lib/theme.cjs +1 -1
  168. package/lib/theme.js +37 -8
  169. package/lib/{throttle-DsowOft0.js → throttle-BRtichEP.js} +1 -1
  170. package/lib/throttle-gTTvqDTW.cjs +1 -0
  171. package/lib/toggle-BYvLnjCL.cjs +1 -0
  172. package/lib/toggle-Bxwwb_Kp.js +99 -0
  173. package/lib/tooltip-BTy5CRrN.js +24 -0
  174. package/lib/tooltip-COvf4_R-.cjs +1 -0
  175. package/lib/{updatePosition-Bbd8ETMv.js → updatePosition-CUukgu-Q.js} +2 -2
  176. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  177. package/lib/{useButtonProps-cMoicZgd.js → useButtonProps-CfYtuEnd.js} +48 -36
  178. package/lib/useButtonProps-CydzndG1.cjs +1 -0
  179. package/lib/utils/customEvents/events.constant.d.ts +0 -5
  180. package/package.json +3 -3
  181. package/lib/ActionMenuButton-BLlse5KO.cjs +0 -1
  182. package/lib/Drawer-kv6BU_6O.cjs +0 -1
  183. package/lib/Excalidraw-B82ThkJA.cjs +0 -1
  184. package/lib/Icon-DRuJhcHK.js +0 -10
  185. package/lib/Icon-DXePECFW.cjs +0 -1
  186. package/lib/Iframe-03dn9wcM.cjs +0 -1
  187. package/lib/Indent-Cqjdn3Jt.cjs +0 -1
  188. package/lib/Katex-DdWTV5NJ.cjs +0 -4
  189. package/lib/SlashCommandNodeView-Bl_gwZJB.cjs +0 -1
  190. package/lib/Table-DBGjezZK.cjs +0 -9
  191. package/lib/Twitter-Cnvt7GBg.cjs +0 -1
  192. package/lib/button-BW5bDPz_.cjs +0 -1
  193. package/lib/events.constant-DQYeJpu5.cjs +0 -1
  194. package/lib/events.constant-wrlJ_7JZ.js +0 -26
  195. package/lib/index-BZ6DfR2r.cjs +0 -1
  196. package/lib/index-C838s-or.cjs +0 -8
  197. package/lib/index-Cv9Z6dyV.cjs +0 -1
  198. package/lib/index-FSRjMsxW.cjs +0 -1
  199. package/lib/label-DsOYPjAo.js +0 -18
  200. package/lib/label-E6jF3Xud.cjs +0 -1
  201. package/lib/separator-JaTTqb3J.js +0 -241
  202. package/lib/separator-PGnA-6Hr.cjs +0 -1
  203. package/lib/store/ProviderUniqueId.d.ts +0 -6
  204. package/lib/store-Cf7tFiiI.js +0 -10
  205. package/lib/store-oDk-lTPM.cjs +0 -1
  206. package/lib/throttle-BM3Bmbf_.cjs +0 -1
  207. package/lib/updatePosition-M2IyqkI1.cjs +0 -1
  208. package/lib/useButtonProps-DfnJiJLV.cjs +0 -1
package/lib/CodeBlock.js CHANGED
@@ -1,204 +1,98 @@
1
- import { q as oa, C as Le, N as la, t as Gt, u as ca, m as da } from "./index-sVScpCFG.js";
2
- import { jsxs as _e, jsx as k, Fragment as ua } from "react/jsx-runtime";
3
- import { c as ne, A as pa, k as fa } from "./index-C3zg3DPB.js";
4
- import * as ue from "react";
5
- import { useRef as zt, useCallback as it, useEffect as Ht } from "react";
6
- import * as F from "@radix-ui/react-select";
7
- import { ChevronDown as Nn, ChevronUp as ba, Check as ga } from "lucide-react";
8
- import { d as ma } from "./delete-node-IyVmiRbI.js";
9
- import { I as xe } from "./Icon-DRuJhcHK.js";
10
- import { u as ha, a as _a } from "./useButtonProps-cMoicZgd.js";
11
- const Vt = F.Root, Ea = F.Value, gt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
12
- F.Trigger,
13
- {
14
- ref: i,
15
- className: ne(
16
- "richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
17
- e
18
- ),
19
- ...n,
20
- children: [
21
- t,
22
- /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4 richtext-opacity-50" }) })
23
- ]
24
- }
25
- ));
26
- gt.displayName = F.Trigger.displayName;
27
- const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
28
- F.ScrollUpButton,
29
- {
30
- ref: n,
31
- className: ne(
32
- "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
33
- e
34
- ),
35
- ...t,
36
- children: /* @__PURE__ */ k(ba, { className: "richtext-size-4" })
37
- }
38
- ));
39
- On.displayName = F.ScrollUpButton.displayName;
40
- const Ln = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
41
- F.ScrollDownButton,
42
- {
43
- ref: n,
44
- className: ne(
45
- "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
46
- e
47
- ),
48
- ...t,
49
- children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4" })
50
- }
51
- ));
52
- Ln.displayName = F.ScrollDownButton.displayName;
53
- const mt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, l) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
54
- F.Content,
55
- {
56
- "data-richtext-portal": !0,
57
- position: n,
58
- ref: l,
59
- className: ne(
60
- "richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
61
- n === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
62
- e
63
- ),
64
- ...i,
65
- children: [
66
- /* @__PURE__ */ k(On, {}),
67
- /* @__PURE__ */ k(
68
- F.Viewport,
69
- {
70
- className: ne(
71
- "richtext-p-1",
72
- n === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
73
- ),
74
- children: t
75
- }
76
- ),
77
- /* @__PURE__ */ k(Ln, {})
78
- ]
79
- }
80
- ) }));
81
- mt.displayName = F.Content.displayName;
82
- const ya = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
83
- F.Label,
84
- {
85
- className: ne("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
86
- ref: n,
87
- ...t
88
- }
89
- ));
90
- ya.displayName = F.Label.displayName;
91
- const ht = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
92
- F.Item,
93
- {
94
- ref: i,
95
- className: ne(
96
- "richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
97
- e
98
- ),
99
- ...n,
100
- children: [
101
- /* @__PURE__ */ k("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ k(F.ItemIndicator, { children: /* @__PURE__ */ k(ga, { className: "richtext-size-4" }) }) }),
102
- /* @__PURE__ */ k(F.ItemText, { children: t })
103
- ]
104
- }
105
- ));
106
- ht.displayName = F.Item.displayName;
107
- const va = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
108
- F.Separator,
109
- {
110
- className: ne("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
111
- ref: n,
112
- ...t
113
- }
114
- ));
115
- va.displayName = F.Separator.displayName;
116
- function Ar() {
117
- const e = ha(sa.name), {
1
+ import { o as ta, B as Te, N as na, t as Pt, s as aa, m as ra } from "./clsx-DmuN0U_8.js";
2
+ import { jsx as C, Fragment as ia, jsxs as tt } from "react/jsx-runtime";
3
+ import { A as sa } from "./toggle-Bxwwb_Kp.js";
4
+ import { useRef as $t, useCallback as nt, useEffect as Dt } from "react";
5
+ import { a as oa, S as Ft, b as Ut, d as la, e as Bt, f as Gt } from "./index-D9JOHlso.js";
6
+ import "./theme.js";
7
+ import { d as ca } from "./delete-node-IyVmiRbI.js";
8
+ import { I as Ee } from "./Icon-ONE1AwKo.js";
9
+ import { u as da, a as ua } from "./useButtonProps-CfYtuEnd.js";
10
+ function gr() {
11
+ const e = da(ea.name), {
118
12
  icon: t = void 0,
119
13
  tooltip: n = void 0,
120
- tooltipOptions: i = {},
14
+ tooltipOptions: s = {},
121
15
  action: l = void 0,
122
16
  isActive: u = void 0
123
- } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: b, disabled: E, update: y } = _a(u), v = () => {
17
+ } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: f, disabled: E, update: y } = ua(u), v = () => {
124
18
  E || l && (l(), y());
125
19
  };
126
- return e ? /* @__PURE__ */ k(
127
- pa,
20
+ return e ? /* @__PURE__ */ C(
21
+ sa,
128
22
  {
129
23
  action: v,
130
- dataState: b,
24
+ dataState: f,
131
25
  disabled: E,
132
26
  icon: t,
133
27
  tooltip: n,
134
- tooltipOptions: i
28
+ tooltipOptions: s
135
29
  }
136
- ) : /* @__PURE__ */ k(ua, {});
30
+ ) : /* @__PURE__ */ C(ia, {});
137
31
  }
138
- var Ce = {}, Y = Symbol(), ee = Symbol(), Ct = (e) => typeof e == "string" ? _[e] : e, _ = {
139
- plain: Ce,
140
- plaintext: Ce,
141
- text: Ce,
142
- txt: Ce
143
- }, Ne = (e, t) => (t[ee] || Oe)(e, t), Oe = (e, t) => {
144
- for (var n = [e], i, l = [], u = 0; i = Ct(t[Y]); )
145
- delete t[Y], Object.assign(t, i);
146
- for (Pn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
32
+ var xe = {}, j = Symbol(), J = Symbol(), kt = (e) => typeof e == "string" ? _[e] : e, _ = {
33
+ plain: xe,
34
+ plaintext: xe,
35
+ text: xe,
36
+ txt: xe
37
+ }, Se = (e, t) => (t[J] || ke)(e, t), ke = (e, t) => {
38
+ for (var n = [e], s, l = [], u = 0; s = kt(t[j]); )
39
+ delete t[j], Object.assign(t, s);
40
+ for (xn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
147
41
  return l;
148
- }, Zt = "</span>", Me = "", Ae = "", Cn = (e) => {
149
- for (var t = "", n = e.length, i = 0; i < n; ) t += Mn(e[i++]);
42
+ }, zt = "</span>", Oe = "", ye = "", kn = (e) => {
43
+ for (var t = "", n = e.length, s = 0; s < n; ) t += Tn(e[s++]);
150
44
  return t;
151
- }, Mn = (e) => {
152
- if (e instanceof be) {
153
- var { type: t, alias: n, content: i } = e, l = Me, u = Ae, b = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof i == "string" ? " keyword-" + i : "")}">`;
154
- Ae += Zt, Me += b;
155
- var E = Mn(i);
156
- return Me = l, Ae = u, b + E + Zt;
45
+ }, Tn = (e) => {
46
+ if (e instanceof ue) {
47
+ var { type: t, alias: n, content: s } = e, l = Oe, u = ye, f = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof s == "string" ? " keyword-" + s : "")}">`;
48
+ ye += zt, Oe += f;
49
+ var E = Tn(s);
50
+ return Oe = l, ye = u, f + E + zt;
157
51
  }
158
- return typeof e != "string" ? Cn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
159
- `) ? e.replace(/\n/g, Ae + `
160
- ` + Me) : e);
161
- }, Pn = (e, t, n, i, l) => {
52
+ return typeof e != "string" ? kn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), ye && e.includes(`
53
+ `) ? e.replace(/\n/g, ye + `
54
+ ` + Oe) : e);
55
+ }, xn = (e, t, n, s, l) => {
162
56
  for (var u in t)
163
- if (t[u]) for (var b = 0, E = t[u], y = Array.isArray(E) ? E : [E]; b < y.length; ++b) {
164
- if (l && l[0] == u && l[1] == b)
57
+ if (t[u]) for (var f = 0, E = t[u], y = Array.isArray(E) ? E : [E]; f < y.length; ++f) {
58
+ if (l && l[0] == u && l[1] == f)
165
59
  return;
166
- for (var v = y[b], m = v.pattern || v, p = Ct(v.inside), c = v.lookbehind, f = v.greedy && m.global, g = v.alias, a = n, r = i; a && (!l || r < l[2]); r += a[0].length, a = a[1]) {
167
- var d = a[0], o = 0, s, h;
168
- if (!(d instanceof be)) {
169
- if (m.lastIndex = f ? r : 0, s = m.exec(f ? e : d), s && c && s[1] && (h = s[1].length, s.index += h, s[0] = s[0].slice(h)), f) {
170
- if (!s)
60
+ for (var v = y[f], m = v.pattern || v, p = kt(v.inside), c = v.lookbehind, b = v.greedy && m.global, g = v.alias, a = n, r = s; a && (!l || r < l[2]); r += a[0].length, a = a[1]) {
61
+ var d = a[0], o = 0, i, h;
62
+ if (!(d instanceof ue)) {
63
+ if (m.lastIndex = b ? r : 0, i = m.exec(b ? e : d), i && c && i[1] && (h = i[1].length, i.index += h, i[0] = i[0].slice(h)), b) {
64
+ if (!i)
171
65
  break;
172
- if (s[0]) {
173
- for (var S = s.index, R = S + s[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
174
- if (a[0] instanceof be)
66
+ if (i[0]) {
67
+ for (var k = i.index, S = k + i[0].length, I; k >= r + (I = a[0].length); a = a[1], r += I) ;
68
+ if (a[0] instanceof ue)
175
69
  continue;
176
- for (var w = a, E = r; (E += w[0].length) < R; w = w[1], o++) ;
177
- d = e.slice(r, E), s.index -= r;
70
+ for (var w = a, E = r; (E += w[0].length) < S; w = w[1], o++) ;
71
+ d = e.slice(r, E), i.index -= r;
178
72
  }
179
73
  }
180
- if (s && s[0]) {
181
- for (var S = s.index, N = s[0], T = d.slice(S + N.length), L = r + d.length, P = new be(u, p ? Ne(N, p) : N, N, g), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
182
- T && (!M || M[0] instanceof be ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? d.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (Pn(e, t, a, r, H = [u, b, L]), L = H[2]), l && L > l[2] && (l[2] = L);
74
+ if (i && i[0]) {
75
+ for (var k = i.index, x = i[0], T = d.slice(k + x.length), N = r + d.length, P = new ue(u, p ? Se(x, p) : x, x, g), M = a, V = 0, z; M = M[1], V++ < o; ) ;
76
+ T && (!M || M[0] instanceof ue ? M = [T, M] : M[0] = T + M[0]), r += k, a[0] = k ? d.slice(0, k) : P, k ? a = a[1] = [P, M] : a[1] = M, o && (xn(e, t, a, r, z = [u, f, N]), N = z[2]), l && N > l[2] && (l[2] = N);
183
77
  }
184
78
  }
185
79
  }
186
80
  }
187
81
  };
188
- function be(e, t, n, i) {
189
- this.type = e, this.content = t, this.alias = i, this.length = n.length;
82
+ function ue(e, t, n, s) {
83
+ this.type = e, this.content = t, this.alias = s, this.length = n.length;
190
84
  }
191
- var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", _t = {
85
+ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", pt = {
192
86
  pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
193
87
  lookbehind: !0,
194
88
  alias: "punctuation"
195
89
  // this looks reasonably well in all themes
196
- }, $n = {
90
+ }, On = {
197
91
  variable: /^\$\(|^`|\)$|`$/
198
- }, Pe = {
199
- bash: _t,
92
+ }, Ne = {
93
+ bash: pt,
200
94
  environment: {
201
- pattern: RegExp("\\$" + Ze),
95
+ pattern: RegExp("\\$" + Ge),
202
96
  alias: "constant"
203
97
  },
204
98
  variable: [
@@ -226,7 +120,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
226
120
  {
227
121
  pattern: /\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,
228
122
  greedy: !0,
229
- inside: $n
123
+ inside: On
230
124
  },
231
125
  // [2]: Brace expansion
232
126
  {
@@ -236,7 +130,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
236
130
  operator: /:[?=+-]?|[!/]|##?|%%?|\^\^?|,,?/,
237
131
  punctuation: /[[\]]/,
238
132
  environment: {
239
- pattern: RegExp("(\\{)" + Ze),
133
+ pattern: RegExp("(\\{)" + Ge),
240
134
  lookbehind: !0,
241
135
  alias: "constant"
242
136
  }
@@ -246,7 +140,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
246
140
  ],
247
141
  // Escape sequences from echo and printf's manuals, and escaped quotes.
248
142
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[a-fA-F\d]{8}|u[a-fA-F\d]{4}|x[a-fA-F\d]{1,2})/
249
- }, wa = _t.inside = _.sh = _.shell = _.bash = {
143
+ }, pa = pt.inside = _.sh = _.shell = _.bash = {
250
144
  shebang: {
251
145
  pattern: /^#!\s*\/.*/,
252
146
  alias: "important"
@@ -286,7 +180,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
286
180
  alias: "variable",
287
181
  inside: {
288
182
  environment: {
289
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ze),
183
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ge),
290
184
  lookbehind: !0,
291
185
  alias: "constant"
292
186
  }
@@ -304,7 +198,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
304
198
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[^]*?\n\2/g,
305
199
  lookbehind: !0,
306
200
  greedy: !0,
307
- inside: Pe
201
+ inside: Ne
308
202
  },
309
203
  // Here-document with quotes around the tag
310
204
  // → No expansion (so no “inside”).
@@ -313,7 +207,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
313
207
  lookbehind: !0,
314
208
  greedy: !0,
315
209
  inside: {
316
- bash: _t
210
+ bash: pt
317
211
  }
318
212
  },
319
213
  // “Normal” string
@@ -322,7 +216,7 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
322
216
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[^]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^\\"`$])*"/g,
323
217
  lookbehind: !0,
324
218
  greedy: !0,
325
- inside: Pe
219
+ inside: Ne
326
220
  },
327
221
  {
328
222
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -335,15 +229,15 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
335
229
  pattern: /\$'(?:\\[^]|[^\\'])*'/g,
336
230
  greedy: !0,
337
231
  inside: {
338
- entity: Pe.entity
232
+ entity: Ne.entity
339
233
  }
340
234
  }
341
235
  ],
342
236
  environment: {
343
- pattern: RegExp("\\$?" + Ze),
237
+ pattern: RegExp("\\$?" + Ge),
344
238
  alias: "constant"
345
239
  },
346
- variable: Pe.variable,
240
+ variable: Ne.variable,
347
241
  function: {
348
242
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|c?fdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cron|crontab|c?split|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff3?|dig|dircolors|dirname|dirs?|dmesg|docker|docker-compose|du|[ef]?grep|eject|env|ethtool|expand|expect|expr|fdformat|fg|file|find|fmt|fold|format|free|fsck|fuser|g?awk|git|g?parted|groupadd|groupdel|groupmod|groups|grub-mkconfig|halt|head|hg|history|host|hostname|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|killall|less|link|ln|logname|logrotate|look|lpc|lprint[dq]?|lprm?|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mm?v|more|most|mtools|m?tr|mutt|nano|nc|netstat|nice|nl|node|nohup|notify-send|nslookup|op|open|passwd|paste|pathchk|ping|p?kill|p?npm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ra[mr]|reboot|remsync|rename|renice|rev|rmdir|rp?m|r?sync|[sr]?cp|screen|sdiff|se[dq]|sendmail|service|s?ftp|shellcheck|shuf|shutdown|sleep|s?locate|[sz]?sh|stat|strace|sudo|sum?|suspend|swapon|sysctl|tac|tail|tar|tee|time|timeout|h?top|touch|traceroute|t?sort|tty|u?mount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vim?|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|g?zip|zsh|zypper)(?=$|[)\s;|&])/,
349
243
  lookbehind: !0
@@ -399,8 +293,8 @@ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
399
293
  "operator",
400
294
  "punctuation",
401
295
  "number"
402
- ].forEach((e) => $n[e] = wa[e]);
403
- var Dn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = Dn.source, qt = {
296
+ ].forEach((e) => On[e] = pa[e]);
297
+ var Nn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Le = Nn.source, Ht = {
404
298
  rule: /^@[\w-]+/,
405
299
  "selector-function-argument": {
406
300
  pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,
@@ -413,32 +307,32 @@ var Dn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = Dn.source, qt
413
307
  }
414
308
  // See rest below
415
309
  };
416
- qt[Y] = _.css = {
310
+ Ht[j] = _.css = {
417
311
  comment: /\/\*[^]*?\*\//,
418
312
  atrule: {
419
- pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),
420
- inside: qt
313
+ pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${Le})*?(?:;|(?=\\s*\\{))`),
314
+ inside: Ht
421
315
  },
422
316
  url: {
423
317
  // https://drafts.csswg.org/css-values-3/#urls
424
- pattern: RegExp(`\\burl\\((?:${$e}|(?:[^\\\\
318
+ pattern: RegExp(`\\burl\\((?:${Le}|(?:[^\\\\
425
319
  "')=]|\\\\[^])*)\\)`, "gi"),
426
320
  greedy: !0,
427
321
  inside: {
428
322
  function: /^url/i,
429
323
  punctuation: /^\(|\)$/,
430
324
  string: {
431
- pattern: RegExp("^" + $e + "$"),
325
+ pattern: RegExp("^" + Le + "$"),
432
326
  alias: "url"
433
327
  }
434
328
  }
435
329
  },
436
330
  selector: {
437
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${$e})*(?=\\s*\\{)`),
331
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${Le})*(?=\\s*\\{)`),
438
332
  lookbehind: !0
439
333
  },
440
334
  string: {
441
- pattern: Dn,
335
+ pattern: Nn,
442
336
  greedy: !0
443
337
  },
444
338
  property: {
@@ -452,34 +346,34 @@ qt[Y] = _.css = {
452
346
  },
453
347
  punctuation: /[(){},:;]/
454
348
  };
455
- var Be = (e, t) => {
349
+ var $e = (e, t) => {
456
350
  if (t.has(e)) return t.get(e);
457
- var n = e, i = xa.call(e).slice(8, -1);
458
- if (i == "Object") {
351
+ var n = e, s = ba.call(e).slice(8, -1);
352
+ if (s == "Object") {
459
353
  t.set(e, n = {});
460
354
  for (var l in e)
461
- n[l] = Be(e[l], t);
462
- e[Y] && (n[Y] = Be(e[Y], t)), e[ee] && (n[ee] = e[ee]);
463
- } else if (i == "Array") {
355
+ n[l] = $e(e[l], t);
356
+ e[j] && (n[j] = $e(e[j], t)), e[J] && (n[J] = e[J]);
357
+ } else if (s == "Array") {
464
358
  t.set(e, n = []);
465
- for (var u = 0, b = e.length; u < b; u++)
466
- n[u] = Be(e[u], t);
359
+ for (var u = 0, f = e.length; u < f; u++)
360
+ n[u] = $e(e[u], t);
467
361
  }
468
362
  return n;
469
- }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(_[e]), t), $ = (e, t, n) => {
470
- var i = {};
363
+ }, Ye = (e) => $e(e, /* @__PURE__ */ new Map()), ae = (e, t) => Object.assign(Ye(_[e]), t), $ = (e, t, n) => {
364
+ var s = {};
471
365
  for (var l in e)
472
- i[l] = e[l], delete e[l];
473
- for (var l in i)
474
- l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = i[l]);
475
- }, xa = {}.toString, qe = _.css, Kt = {
366
+ s[l] = e[l], delete e[l];
367
+ for (var l in s)
368
+ l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = s[l]);
369
+ }, ba = {}.toString, ze = _.css, Vt = {
476
370
  pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/,
477
371
  lookbehind: !0
478
- }, Wt = {
372
+ }, Zt = {
479
373
  pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
480
374
  lookbehind: !0
481
375
  };
482
- qe.selector.inside = qe.atrule.inside["selector-function-argument"].inside = {
376
+ ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
483
377
  "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
484
378
  "pseudo-class": /:[-\w]+/,
485
379
  class: /\.[-\w]+/,
@@ -532,13 +426,13 @@ qe.selector.inside = qe.atrule.inside["selector-function-argument"].inside = {
532
426
  // if you want to add it, please read https://github.com/PrismJS/prism/pull/2373 first.
533
427
  punctuation: /[(),]/
534
428
  };
535
- $(qe, "property", {
429
+ $(ze, "property", {
536
430
  variable: {
537
431
  pattern: /(^|[^-\w\xa0-\uffff])--(?!\d)(?:(?!\s)[-\w\xa0-\uffff])*/i,
538
432
  lookbehind: !0
539
433
  }
540
434
  });
541
- $(qe, "function", {
435
+ $(ze, "function", {
542
436
  operator: {
543
437
  pattern: /(\s)[/*+-](?!\S)/,
544
438
  lookbehind: !0
@@ -558,16 +452,16 @@ $(qe, "function", {
558
452
  pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,
559
453
  inside: {
560
454
  function: /^[^(]+/,
561
- unit: Kt,
562
- number: Wt,
455
+ unit: Vt,
456
+ number: Zt,
563
457
  punctuation: /[(),]/
564
458
  }
565
459
  }
566
460
  ],
567
461
  // it's important that there is no boundary assertion after the hex digits
568
462
  entity: /\\[a-f\d]{1,8}/i,
569
- unit: Kt,
570
- number: Wt
463
+ unit: Vt,
464
+ number: Zt
571
465
  });
572
466
  _.ini = {
573
467
  /**
@@ -609,13 +503,13 @@ _.ini = {
609
503
  },
610
504
  punctuation: /=/
611
505
  };
612
- var se = () => ({
506
+ var re = () => ({
613
507
  pattern: /\/\/.*|\/\*[^]*?(?:\*\/|$)/g,
614
508
  greedy: !0
615
- }), Mt = () => ({
509
+ }), Tt = () => ({
616
510
  pattern: /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,
617
511
  greedy: !0
618
- }), Fn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, st = {
512
+ }), Ln = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, te = /[()[\]{}.,:;]/, q = /\b(?:false|true)\b/, at = {
619
513
  "interpolation-punctuation": {
620
514
  pattern: /^\$\{?|\}$/,
621
515
  alias: "punctuation"
@@ -624,7 +518,7 @@ var se = () => ({
624
518
  pattern: /[^]+/
625
519
  }
626
520
  };
627
- st.expression.inside = _.kts = _.kt = _.kotlin = {
521
+ at.expression.inside = _.kts = _.kt = _.kotlin = {
628
522
  // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
629
523
  "string-literal": [
630
524
  {
@@ -633,7 +527,7 @@ st.expression.inside = _.kts = _.kt = _.kotlin = {
633
527
  inside: {
634
528
  interpolation: {
635
529
  pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i,
636
- inside: st
530
+ inside: at
637
531
  },
638
532
  string: /[^]+/
639
533
  }
@@ -645,7 +539,7 @@ st.expression.inside = _.kts = _.kt = _.kotlin = {
645
539
  interpolation: {
646
540
  pattern: /((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,
647
541
  lookbehind: !0,
648
- inside: st
542
+ inside: at
649
543
  },
650
544
  string: /[^]+/
651
545
  }
@@ -656,7 +550,7 @@ st.expression.inside = _.kts = _.kt = _.kotlin = {
656
550
  pattern: /'(?:[^\\\n']|\\(?:.|u[a-fA-F\d]{0,4}))'/g,
657
551
  greedy: !0
658
552
  },
659
- comment: se(),
553
+ comment: re(),
660
554
  annotation: {
661
555
  pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,
662
556
  alias: "builtin"
@@ -666,7 +560,7 @@ st.expression.inside = _.kts = _.kt = _.kotlin = {
666
560
  pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,
667
561
  lookbehind: !0
668
562
  },
669
- boolean: K,
563
+ boolean: q,
670
564
  label: {
671
565
  pattern: /\b\w+@|@\w+/,
672
566
  alias: "symbol"
@@ -678,15 +572,15 @@ st.expression.inside = _.kts = _.kt = _.kotlin = {
678
572
  },
679
573
  number: /\b(?:0[xX][a-fA-F\d]+(?:_[a-fA-F\d]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,
680
574
  operator: /--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,
681
- punctuation: ae
575
+ punctuation: te
682
576
  };
683
- var Un = [
577
+ var Cn = [
684
578
  {
685
579
  pattern: /&[a-z\d]{1,8};/i,
686
580
  alias: "named-entity"
687
581
  },
688
582
  /&#x?[a-f\d]{1,8};/i
689
- ], Aa = {
583
+ ], fa = {
690
584
  pattern: /<\/?(?!\d)[^\s/=>$<%]+(?:\s(?:\s*[^\s/=>]+(?:\s*=\s*(?!\s)(?:"[^"]*"|'[^']*'|[^\s"'=>]+(?=[\s>]))?|(?=[\s/>])))+)?\s*\/?>/g,
691
585
  greedy: !0,
692
586
  inside: {
@@ -703,7 +597,7 @@ var Un = [
703
597
  greedy: !0,
704
598
  inside: {
705
599
  punctuation: /^["']|["']$/,
706
- entity: Un
600
+ entity: Cn
707
601
  }
708
602
  }],
709
603
  "attr-equals": /=/,
@@ -744,43 +638,43 @@ _.rss = _.atom = _.ssml = _.xml = {
744
638
  pattern: /<!\[CDATA\[[^]*?\]\]>/gi,
745
639
  greedy: !0
746
640
  },
747
- tag: Aa,
748
- entity: Un,
641
+ tag: fa,
642
+ entity: Cn,
749
643
  "markup-bracket": {
750
644
  pattern: /[()[\]{}]/,
751
645
  alias: "punctuation"
752
646
  }
753
647
  };
754
- var Et = (e, t) => (e["language-" + t] = {
648
+ var bt = (e, t) => (e["language-" + t] = {
755
649
  pattern: /[^]+/,
756
650
  inside: t
757
- }, e), jt = (e, t) => ({
651
+ }, e), qt = (e, t) => ({
758
652
  pattern: RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`, "gi"),
759
653
  lookbehind: !0,
760
654
  greedy: !0,
761
- inside: Et({
655
+ inside: bt({
762
656
  "included-cdata": {
763
657
  pattern: /<!\[CDATA\[[^]*?\]\]>/i,
764
- inside: Et({
658
+ inside: bt({
765
659
  cdata: /^<!\[CDATA\[|\]\]>$/i
766
660
  }, t)
767
661
  }
768
662
  }, t)
769
- }), Yt = (e, t) => ({
663
+ }), Kt = (e, t) => ({
770
664
  pattern: RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`, "gi"),
771
665
  lookbehind: !0,
772
666
  greedy: !0,
773
- inside: Et({
667
+ inside: bt({
774
668
  punctuation: /^["']|["']$/
775
669
  }, t)
776
- }), Bn = _.svg = _.mathml = _.html = _.markup = et(_.xml);
777
- Bn.tag.inside["attr-value"].unshift(
778
- Yt("style", "css"),
779
- Yt("on[a-z]+", "javascript")
670
+ }), Mn = _.svg = _.mathml = _.html = _.markup = Ye(_.xml);
671
+ Mn.tag.inside["attr-value"].unshift(
672
+ Kt("style", "css"),
673
+ Kt("on[a-z]+", "javascript")
780
674
  );
781
- $(Bn, "cdata", {
782
- style: jt("style", "css"),
783
- script: jt("script", "javascript")
675
+ $(Mn, "cdata", {
676
+ style: qt("style", "css"),
677
+ script: qt("script", "javascript")
784
678
  });
785
679
  _.r = {
786
680
  comment: /#.*/,
@@ -821,7 +715,7 @@ _.basic = {
821
715
  operator: /<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,
822
716
  punctuation: /[(),:;]/
823
717
  };
824
- _.vbnet = ie("basic", {
718
+ _.vbnet = ae("basic", {
825
719
  comment: {
826
720
  pattern: /(?:!|'|rem\b).*/i,
827
721
  inside: {
@@ -836,23 +730,23 @@ _.vbnet = ie("basic", {
836
730
  keyword: /(?:\b(?:addhandler|addressof|alias|and|andalso|as|beep|bload|boolean|bsave|byref|byval|call absolute|call|case|catch|cbool|c?byte|cc?har|c?date|cdbl|cdec|chain|chdir|cu?int|class|clear|close|cls|cobj|com|common|const|continue|c?sbyte|c?u?short|c?sng|cstr|c?type|cu?lng|data|decimal|declare|def(?: fn| seg|dbl|int|lng|sng|str)|default|delegate|dim|directcast|do|double|else|elseif|enum|environ|erase|error|event|exit|false|true|field|files|finally|for each|for|friend|function|[gls]et|gettype|getxmlnamespace|global|gosub|goto|handles|i[fns]|implements|imports|inherits|input|interface|ioctl|isnot|key|kill|lib|like|line input|locate|lock|loop|[lr]set|me|mkdir|mod|module|mustinherit|mustoverride|mybase|myclass|name|namespace|narrowing|new|next|not|nothing|notinheritable|notoverridable|object|off?|on (?:com|error|key|timer)|on|open|operator|option base|option|optional|orelse|out|overloads|overridable|overrides|paramarray|partial|poke|private|property|protected|public|put|raiseevent|read|readonly|redim|removehandler|restore|resume|return|rmdir|run|select case|select|shadows|shared|shell|single|sleep|static|step|stop|string|structure|sub|swap|synclock|system|[tw]hen|throw|timer|to|troff|tron|try|trycast|typeof|u?integer|u?long|unlock|until|using|view print|wait|w?end|while|widening|with|withevents|write|writeonly|x?or)|\B#(?:const|else|elseif|end|if))(?:\$|\b)/i,
837
731
  punctuation: /[(){},:;]/
838
732
  });
839
- var Xt = {
733
+ var Wt = {
840
734
  // https://en.cppreference.com/w/c/language/character_constant
841
735
  pattern: /'(?:\\[^]|[^\\\n']){0,32}'/g,
842
736
  greedy: !0
843
- }, Qt = {
737
+ }, jt = {
844
738
  pattern: /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,
845
739
  greedy: !0
846
- }, Jt = {
740
+ }, Yt = {
847
741
  // https://en.cppreference.com/w/c/language/string_literal
848
742
  pattern: /"(?:\\[^]|[^\\\n"])*"/g,
849
743
  greedy: !0
850
- }, en = {
744
+ }, Xt = {
851
745
  pattern: /\S[^]*/
852
746
  };
853
- en.inside = _.c = {
854
- comment: Qt,
855
- char: Xt,
747
+ Xt.inside = _.c = {
748
+ comment: jt,
749
+ char: Wt,
856
750
  macro: {
857
751
  // allow for multiline macro definitions
858
752
  // spaces after the # character compile fine with gcc
@@ -867,10 +761,10 @@ en.inside = _.c = {
867
761
  pattern: /^(#\s*include\s*)<[^>]+>/,
868
762
  lookbehind: !0
869
763
  },
870
- Jt
764
+ Yt
871
765
  ],
872
- char: Xt,
873
- comment: Qt,
766
+ char: Wt,
767
+ comment: jt,
874
768
  "macro-name": [
875
769
  {
876
770
  pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
@@ -890,10 +784,10 @@ en.inside = _.c = {
890
784
  },
891
785
  "directive-hash": /^#/,
892
786
  punctuation: /##|\\(?=\n)/,
893
- expression: en
787
+ expression: Xt
894
788
  }
895
789
  },
896
- string: Jt,
790
+ string: Yt,
897
791
  "class-name": {
898
792
  pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
899
793
  lookbehind: !0
@@ -904,17 +798,17 @@ en.inside = _.c = {
904
798
  function: /\b[a-z_]\w*(?=\s*\()/i,
905
799
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
906
800
  operator: /->|([&|:+-])\1|[?:~]|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
907
- punctuation: ae
801
+ punctuation: te
908
802
  };
909
803
  $(
910
- _.opencl = ie("c", {
804
+ _.opencl = ae("c", {
911
805
  // Extracted from the official specs (2.0) and http://streamcomputing.eu/downloads/?opencl.lang (opencl-keywords, opencl-types) and http://sourceforge.net/tracker/?func=detail&aid=2957794&group_id=95717&atid=612384 (Words2, partly Words3)
912
806
  keyword: /\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,
913
807
  // Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
914
808
  // Math Constants: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/mathConstants.html
915
809
  // Macros and Limits: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/macroLimits.html
916
810
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,
917
- boolean: K,
811
+ boolean: q,
918
812
  "constant-opencl-kernel": {
919
813
  pattern: /\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN2|LN10|LOG2E?|LOG10E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,
920
814
  alias: "constant"
@@ -930,7 +824,7 @@ $(
930
824
  }
931
825
  }
932
826
  );
933
- var yt = {
827
+ var ft = {
934
828
  // Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
935
829
  "type-opencl-host": {
936
830
  pattern: /\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:[2348]|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,
@@ -951,18 +845,18 @@ var yt = {
951
845
  alias: "function"
952
846
  }
953
847
  };
954
- $(_.c, "keyword", yt);
955
- _.cpp && (yt["type-opencl-host-cpp"] = {
848
+ $(_.c, "keyword", ft);
849
+ _.cpp && (ft["type-opencl-host-cpp"] = {
956
850
  pattern: /\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image(?:[123]D|[12]DArray|1DBuffer|[23]DGL|Format|GL)?|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTrait(?:Atomic|Coarse|Fine|ReadOnly|ReadWrite|WriteOnly)|Sampler|UserEvent)\b/,
957
851
  alias: "keyword"
958
- }, $(_.cpp, "keyword", yt));
959
- var Ia = _.diff = {
852
+ }, $(_.cpp, "keyword", ft));
853
+ var ga = _.diff = {
960
854
  // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
961
855
  // Match "@@ ... @@" coord lines in unified diff.
962
856
  // Match coord lines in normal diff (starts with a number).
963
857
  coord: /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m
964
858
  // deleted, inserted, unchanged, diff
965
- }, ot = {
859
+ }, rt = {
966
860
  "deleted-sign": "-",
967
861
  "deleted-arrow": "<",
968
862
  "inserted-sign": "+",
@@ -970,33 +864,33 @@ var Ia = _.diff = {
970
864
  unchanged: " ",
971
865
  diff: "!"
972
866
  };
973
- for (var pe in ot) {
974
- var lt = pe.split("-")[0];
975
- Ia[pe] = {
976
- pattern: RegExp("^(?:[" + ot[pe] + `].*$
867
+ for (var ce in rt) {
868
+ var it = ce.split("-")[0];
869
+ ga[ce] = {
870
+ pattern: RegExp("^(?:[" + rt[ce] + `].*$
977
871
  ?)+`, "m"),
978
- alias: lt != pe ? lt : pe == "diff" ? "bold" : void 0,
872
+ alias: it != ce ? it : ce == "diff" ? "bold" : void 0,
979
873
  inside: {
980
874
  prefix: {
981
- pattern: RegExp("^[" + ot[pe] + "]", "mg"),
875
+ pattern: RegExp("^[" + rt[ce] + "]", "mg"),
982
876
  greedy: !0,
983
- alias: lt
877
+ alias: it
984
878
  }
985
879
  }
986
880
  };
987
881
  }
988
- var ct = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Se = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", vt = {
882
+ var st = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Ae = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", gt = {
989
883
  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
990
884
  inside: {
991
885
  punctuation: /\./
992
886
  }
993
- }, wt = {
994
- namespace: vt,
887
+ }, mt = {
888
+ namespace: gt,
995
889
  punctuation: /\./
996
- }, tn = {
997
- pattern: RegExp(`(^|[^\\w.])${Se}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
890
+ }, Qt = {
891
+ pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
998
892
  lookbehind: !0,
999
- inside: wt
893
+ inside: mt
1000
894
  };
1001
895
  _.java = {
1002
896
  "doc-comment": {
@@ -1005,7 +899,7 @@ _.java = {
1005
899
  alias: "comment",
1006
900
  inside: "javadoc"
1007
901
  },
1008
- comment: se(),
902
+ comment: re(),
1009
903
  "triple-quoted-string": {
1010
904
  // http://openjdk.java.net/jeps/355#Description
1011
905
  pattern: /"""[ ]*\n(?:\\.|[^\\])*?"""/g,
@@ -1029,29 +923,29 @@ _.java = {
1029
923
  generics: {
1030
924
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1031
925
  inside: {
1032
- "class-name": tn,
1033
- keyword: ct,
926
+ "class-name": Qt,
927
+ keyword: st,
1034
928
  punctuation: /[().,:<>]/,
1035
929
  operator: /[?&|]/
1036
930
  }
1037
931
  },
1038
932
  import: [
1039
933
  {
1040
- pattern: RegExp(`(\\bimport\\s+)${Se}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
934
+ pattern: RegExp(`(\\bimport\\s+)${Ae}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1041
935
  lookbehind: !0,
1042
936
  inside: {
1043
- namespace: vt,
937
+ namespace: gt,
1044
938
  punctuation: /\./,
1045
939
  operator: /\*/,
1046
940
  "class-name": /\w+/
1047
941
  }
1048
942
  },
1049
943
  {
1050
- pattern: RegExp(`(\\bimport\\s+static\\s+)${Se}(?:\\w+|\\*)(?=\\s*;)`),
944
+ pattern: RegExp(`(\\bimport\\s+static\\s+)${Ae}(?:\\w+|\\*)(?=\\s*;)`),
1051
945
  lookbehind: !0,
1052
946
  alias: "static",
1053
947
  inside: {
1054
- namespace: vt,
948
+ namespace: gt,
1055
949
  static: /\b\w+$/,
1056
950
  punctuation: /\./,
1057
951
  operator: /\*/,
@@ -1061,7 +955,7 @@ _.java = {
1061
955
  ],
1062
956
  namespace: {
1063
957
  pattern: RegExp(
1064
- `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${ct.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
958
+ `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${st.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1065
959
  ),
1066
960
  lookbehind: !0,
1067
961
  inside: {
@@ -1069,24 +963,24 @@ _.java = {
1069
963
  }
1070
964
  },
1071
965
  "class-name": [
1072
- tn,
966
+ Qt,
1073
967
  {
1074
968
  // variables, parameters, and constructor references
1075
969
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1076
- pattern: RegExp(`(^|[^\\w.])${Se}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
970
+ pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1077
971
  lookbehind: !0,
1078
- inside: wt
972
+ inside: mt
1079
973
  },
1080
974
  {
1081
975
  // class names based on keyword
1082
976
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1083
- pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Se}[A-Z]\\w*\\b`),
977
+ pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Ae}[A-Z]\\w*\\b`),
1084
978
  lookbehind: !0,
1085
- inside: wt
979
+ inside: mt
1086
980
  }
1087
981
  ],
1088
- keyword: ct,
1089
- boolean: K,
982
+ keyword: st,
983
+ boolean: q,
1090
984
  function: {
1091
985
  pattern: /\b\w+(?=\()|(::\s*)[a-z_]\w*/,
1092
986
  lookbehind: !0
@@ -1097,11 +991,11 @@ _.java = {
1097
991
  pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[%&|^!=<>/*+-]=?)/m,
1098
992
  lookbehind: !0
1099
993
  },
1100
- punctuation: ae
994
+ punctuation: te
1101
995
  };
1102
996
  $(
1103
- _.less = ie("css", {
1104
- comment: se(),
997
+ _.less = ae("css", {
998
+ comment: re(),
1105
999
  atrule: {
1106
1000
  pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
1107
1001
  inside: {
@@ -1139,7 +1033,7 @@ $(
1139
1033
  }
1140
1034
  }
1141
1035
  );
1142
- _.objc = _.objectivec = ie("c", {
1036
+ _.objc = _.objectivec = ae("c", {
1143
1037
  string: {
1144
1038
  pattern: /@?"(?:\\[^]|[^\\\n"])*"/g,
1145
1039
  greedy: !0
@@ -1148,32 +1042,32 @@ _.objc = _.objectivec = ie("c", {
1148
1042
  operator: /-[->]?|\+\+?|!=?|==?|>>?=?|<<?=?|&&?|\|\|?|[~^@%?/*]/
1149
1043
  });
1150
1044
  delete _.objc["class-name"];
1151
- var Gn = {
1045
+ var Pn = {
1152
1046
  pattern: /^(..)[^]+(?=.)/,
1153
1047
  lookbehind: !0
1154
- }, dt = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", nn = `(?:"(?:\\\\.|[^\\\\
1155
- "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, oe = {
1048
+ }, ot = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", Jt = `(?:"(?:\\\\.|[^\\\\
1049
+ "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, ie = {
1156
1050
  pattern: /((?:^|[^\\])(?:\\\\)*)#\{(?:[^{}]|\{[^}]*\})*\}/,
1157
1051
  lookbehind: !0,
1158
1052
  inside: {
1159
- content: Gn,
1053
+ content: Pn,
1160
1054
  delimiter: {
1161
1055
  pattern: /.+/,
1162
1056
  alias: "punctuation"
1163
1057
  }
1164
1058
  }
1165
1059
  };
1166
- Gn.inside = _.rb = _.ruby = {
1060
+ Pn.inside = _.rb = _.ruby = {
1167
1061
  comment: {
1168
1062
  pattern: /#.*|^=begin\s[^]*?^=end/mg,
1169
1063
  greedy: !0
1170
1064
  },
1171
1065
  "string-literal": [
1172
1066
  {
1173
- pattern: RegExp("%[qQiIwWs]?" + dt, "g"),
1067
+ pattern: RegExp("%[qQiIwWs]?" + ot, "g"),
1174
1068
  greedy: !0,
1175
1069
  inside: {
1176
- interpolation: oe,
1070
+ interpolation: ie,
1177
1071
  string: /[^]+/
1178
1072
  }
1179
1073
  },
@@ -1181,7 +1075,7 @@ Gn.inside = _.rb = _.ruby = {
1181
1075
  pattern: /(["'])(?:#\{[^}]+\}|#(?!\{)|\\[^]|(?!\1)[^\\#\n])*\1/g,
1182
1076
  greedy: !0,
1183
1077
  inside: {
1184
- interpolation: oe,
1078
+ interpolation: ie,
1185
1079
  string: /[^]+/
1186
1080
  }
1187
1081
  },
@@ -1197,7 +1091,7 @@ Gn.inside = _.rb = _.ruby = {
1197
1091
  punctuation: /^<<[-~]?/
1198
1092
  }
1199
1093
  },
1200
- interpolation: oe,
1094
+ interpolation: ie,
1201
1095
  string: /[^]+/
1202
1096
  }
1203
1097
  },
@@ -1219,10 +1113,10 @@ Gn.inside = _.rb = _.ruby = {
1219
1113
  ],
1220
1114
  "command-literal": [
1221
1115
  {
1222
- pattern: RegExp("%x" + dt, "g"),
1116
+ pattern: RegExp("%x" + ot, "g"),
1223
1117
  greedy: !0,
1224
1118
  inside: {
1225
- interpolation: oe,
1119
+ interpolation: ie,
1226
1120
  command: {
1227
1121
  pattern: /[^]+/,
1228
1122
  alias: "string"
@@ -1233,7 +1127,7 @@ Gn.inside = _.rb = _.ruby = {
1233
1127
  pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\[^]|[^\\`#\n])*`/g,
1234
1128
  greedy: !0,
1235
1129
  inside: {
1236
- interpolation: oe,
1130
+ interpolation: ie,
1237
1131
  command: {
1238
1132
  pattern: /[^]+/,
1239
1133
  alias: "string"
@@ -1250,10 +1144,10 @@ Gn.inside = _.rb = _.ruby = {
1250
1144
  },
1251
1145
  "regex-literal": [
1252
1146
  {
1253
- pattern: RegExp(`%r${dt}[egimnosux]{0,6}`, "g"),
1147
+ pattern: RegExp(`%r${ot}[egimnosux]{0,6}`, "g"),
1254
1148
  greedy: !0,
1255
1149
  inside: {
1256
- interpolation: oe,
1150
+ interpolation: ie,
1257
1151
  regex: /[^]+/
1258
1152
  }
1259
1153
  },
@@ -1262,7 +1156,7 @@ Gn.inside = _.rb = _.ruby = {
1262
1156
  lookbehind: !0,
1263
1157
  greedy: !0,
1264
1158
  inside: {
1265
- interpolation: oe,
1159
+ interpolation: ie,
1266
1160
  regex: /[^]+/
1267
1161
  }
1268
1162
  }
@@ -1270,13 +1164,13 @@ Gn.inside = _.rb = _.ruby = {
1270
1164
  variable: /[@$]+(?!\d)\w+(?:[?!]|\b)/,
1271
1165
  symbol: [
1272
1166
  {
1273
- pattern: RegExp("(^|[^:]):" + nn, "g"),
1167
+ pattern: RegExp("(^|[^:]):" + Jt, "g"),
1274
1168
  lookbehind: !0,
1275
1169
  greedy: !0
1276
1170
  },
1277
1171
  {
1278
1172
  pattern: RegExp(`([
1279
- {(,][ ]*)` + nn + "(?=:(?!:))", "g"),
1173
+ {(,][ ]*)` + Jt + "(?=:(?!:))", "g"),
1280
1174
  lookbehind: !0,
1281
1175
  greedy: !0
1282
1176
  }
@@ -1292,10 +1186,10 @@ Gn.inside = _.rb = _.ruby = {
1292
1186
  }
1293
1187
  },
1294
1188
  keyword: /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|f?or|if|in|include|module|new|next|nil|not|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|[tw]hen|throw|undef|unless|until|while|yield)\b/,
1295
- boolean: K,
1189
+ boolean: q,
1296
1190
  builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
1297
1191
  constant: /\b[A-Z][A-Z\d_]*(?:[?!]|\b)/,
1298
- number: Fn,
1192
+ number: Ln,
1299
1193
  "double-colon": {
1300
1194
  pattern: /::/,
1301
1195
  alias: "punctuation"
@@ -1358,14 +1252,14 @@ _.wasm = {
1358
1252
  number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[a-fA-F\d](?:_?[a-fA-F\d])*(?:\.[a-fA-F\d](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[a-fA-F\d](?:_?[\da-fA-D])*)?\b/,
1359
1253
  punctuation: /[()]/
1360
1254
  };
1361
- var ye = (e, t) => {
1255
+ var me = (e, t) => {
1362
1256
  for (var n = 0; n < t; n++)
1363
1257
  e = e.replace(/<self>/g, `(?:${e})`);
1364
1258
  return e.replace(/<self>/g, "[]");
1365
- }, U = (e, t) => e.replace(/<(\d+)>/g, (n, i) => `(?:${t[+i]})`), O = (e, t, n) => RegExp(U(e, t), n), xt = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, Ee = _.cpp = ie("c", {
1259
+ }, F = (e, t) => e.replace(/<(\d+)>/g, (n, s) => `(?:${t[+s]})`), O = (e, t, n) => RegExp(F(e, t), n), ht = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, ge = _.cpp = ae("c", {
1366
1260
  "class-name": [
1367
1261
  {
1368
- pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${xt.source})\\w+`),
1262
+ pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${ht.source})\\w+`),
1369
1263
  lookbehind: !0
1370
1264
  },
1371
1265
  // This is intended to capture the class name of method implementations like:
@@ -1380,22 +1274,22 @@ var ye = (e, t) => {
1380
1274
  // parameters, so it can't be a namespace (until C++ adds generic namespaces).
1381
1275
  /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1382
1276
  ],
1383
- keyword: xt,
1277
+ keyword: ht,
1384
1278
  number: {
1385
1279
  pattern: /(?:\b0b[01']+|\b0x(?:[a-f\d']+(?:\.[a-f\d']*)?|\.[a-f\d']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/gi,
1386
1280
  greedy: !0
1387
1281
  },
1388
1282
  operator: /->|--|\+\+|&&|\|\||[?:~]|<=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|x?or|x?or_eq)\b/,
1389
- boolean: K
1283
+ boolean: q
1390
1284
  });
1391
- $(Ee, "string", {
1285
+ $(ge, "string", {
1392
1286
  module: {
1393
1287
  // https://en.cppreference.com/w/cpp/language/modules
1394
1288
  pattern: O(
1395
1289
  `(\\b(?:import|module)\\s+)(?:"(?:\\\\[\\s\\S]|[^\\\\
1396
1290
  "])*"|<[^<>
1397
1291
  ]*>|<0>(?:\\s*:\\s*<0>)?|:\\s*<0>)`,
1398
- [`\\b(?!${xt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1292
+ [`\\b(?!${ht.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1399
1293
  "g"
1400
1294
  ),
1401
1295
  lookbehind: !0,
@@ -1412,7 +1306,7 @@ $(Ee, "string", {
1412
1306
  alias: "string"
1413
1307
  }
1414
1308
  });
1415
- $(Ee, "keyword", {
1309
+ $(ge, "keyword", {
1416
1310
  "generic-function": {
1417
1311
  pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
1418
1312
  inside: {
@@ -1420,34 +1314,34 @@ $(Ee, "keyword", {
1420
1314
  generic: {
1421
1315
  pattern: /<[^]+/,
1422
1316
  alias: "class-name",
1423
- inside: Ee
1317
+ inside: ge
1424
1318
  }
1425
1319
  }
1426
1320
  }
1427
1321
  });
1428
- $(Ee, "operator", {
1322
+ $(ge, "operator", {
1429
1323
  "double-colon": {
1430
1324
  pattern: /::/,
1431
1325
  alias: "punctuation"
1432
1326
  }
1433
1327
  });
1434
- var zn = Object.assign({}, Ee);
1435
- $(Ee, "class-name", {
1328
+ var $n = Object.assign({}, ge);
1329
+ $(ge, "class-name", {
1436
1330
  // the base clause is an optional list of parent classes
1437
1331
  // https://en.cppreference.com/w/cpp/language/class
1438
1332
  "base-clause": {
1439
1333
  pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/g,
1440
1334
  lookbehind: !0,
1441
1335
  greedy: !0,
1442
- inside: zn
1336
+ inside: $n
1443
1337
  }
1444
1338
  });
1445
- $(zn, "double-colon", {
1339
+ $($n, "double-colon", {
1446
1340
  // All untokenized words that are not namespaces should be class names
1447
1341
  "class-name": /\b[a-z_]\w*\b(?!\s*::)/i
1448
1342
  });
1449
1343
  _.go = {
1450
- comment: se(),
1344
+ comment: re(),
1451
1345
  char: {
1452
1346
  pattern: /'(?:\\.|[^\\\n']){0,10}'/g,
1453
1347
  greedy: !0
@@ -1469,18 +1363,18 @@ _.go = {
1469
1363
  /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
1470
1364
  ],
1471
1365
  operator: /--|\+\+|&&|\|\||&\^=?|<-|<<=?|>>=?|[%&|^!=<>/*+-]=?|:=|\.{3}/,
1472
- punctuation: ae,
1366
+ punctuation: te,
1473
1367
  builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
1474
1368
  };
1475
- var ut = {};
1476
- _.js = _.javascript = Object.assign(ut, {
1369
+ var lt = {};
1370
+ _.js = _.javascript = Object.assign(lt, {
1477
1371
  "doc-comment": {
1478
1372
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
1479
1373
  greedy: !0,
1480
1374
  alias: "comment",
1481
1375
  inside: "jsdoc"
1482
1376
  },
1483
- comment: se(),
1377
+ comment: re(),
1484
1378
  hashbang: {
1485
1379
  pattern: /^#!.*/g,
1486
1380
  greedy: !0,
@@ -1502,7 +1396,7 @@ _.js = _.javascript = Object.assign(ut, {
1502
1396
  pattern: /^\$\{|\}$/,
1503
1397
  alias: "punctuation"
1504
1398
  },
1505
- [Y]: ut
1399
+ [j]: lt
1506
1400
  }
1507
1401
  },
1508
1402
  string: /[^]+/
@@ -1514,7 +1408,7 @@ _.js = _.javascript = Object.assign(ut, {
1514
1408
  greedy: !0,
1515
1409
  alias: "property"
1516
1410
  },
1517
- string: Mt(),
1411
+ string: Tt(),
1518
1412
  regex: {
1519
1413
  pattern: /((?:^|[^$\w\xa0-\uffff"'`.)\]\s]|\b(?:return|yield))\s*)\/(?:(?:\[(?:\\.|[^\\\n\]])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}|(?:\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]])*\])*\])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?!\/\*|[^()[\]{}.,:;?`\n%&|^!=<>/*+-]))/g,
1520
1414
  lookbehind: !0,
@@ -1558,7 +1452,7 @@ _.js = _.javascript = Object.assign(ut, {
1558
1452
  ].map((e) => ({
1559
1453
  pattern: e,
1560
1454
  lookbehind: !0,
1561
- inside: ut
1455
+ inside: lt
1562
1456
  })),
1563
1457
  constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
1564
1458
  keyword: [
@@ -1577,7 +1471,7 @@ _.js = _.javascript = Object.assign(ut, {
1577
1471
  lookbehind: !0
1578
1472
  }
1579
1473
  ],
1580
- boolean: K,
1474
+ boolean: q,
1581
1475
  // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1582
1476
  function: {
1583
1477
  pattern: /#?(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
@@ -1614,26 +1508,26 @@ _.js = _.javascript = Object.assign(ut, {
1614
1508
  },
1615
1509
  punctuation: /\?\.|[()[\]{}.,:;]/
1616
1510
  });
1617
- var Hn = (e) => (t, n) => {
1618
- for (var i = Ct(e), l = "", u = [], b = 0, E = Oe(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1511
+ var Dn = (e) => (t, n) => {
1512
+ for (var s = kt(e), l = "", u = [], f = 0, E = ke(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1619
1513
  var m = E[y++], p = m.length, c = m.type;
1620
- c && c.slice(0, 6) != "ignore" ? (u[b++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1514
+ c && c.slice(0, 6) != "ignore" ? (u[f++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1621
1515
  }
1622
- var f = 0, g = 0, a = (d) => {
1623
- for (var o = 0; f < b && o < d.length; o++) {
1624
- var s = d[o], h = s.content;
1516
+ var b = 0, g = 0, a = (d) => {
1517
+ for (var o = 0; b < f && o < d.length; o++) {
1518
+ var i = d[o], h = i.content;
1625
1519
  if (Array.isArray(h))
1626
1520
  a(h);
1627
1521
  else {
1628
- for (var R = s.length, A = [], w, S, N = 0, T = g; ([w, S] = u[f], w >= g && w < g + R) && (T < w && (A[N++] = l.slice(T, w)), T = w + S.length, A[N++] = S, ++f != b); )
1522
+ for (var S = i.length, I = [], w, k, x = 0, T = g; ([w, k] = u[b], w >= g && w < g + S) && (T < w && (I[x++] = l.slice(T, w)), T = w + k.length, I[x++] = k, ++b != f); )
1629
1523
  ;
1630
- g += R, N && (T < g && (A[N++] = l.slice(T, g)), h ? s.content = A : (d.splice(o, 1, ...A), o += N - 1));
1524
+ g += S, x && (T < g && (I[x++] = l.slice(T, g)), h ? i.content = I : (d.splice(o, 1, ...I), o += x - 1));
1631
1525
  }
1632
1526
  }
1633
- }, r = i ? Ne(l, i) : [l];
1527
+ }, r = s ? Se(l, s) : [l];
1634
1528
  return a(r), r;
1635
- }, Vn = _.js, Pt = Vn["template-string"], Ra = Pt.pattern.source, Sa = Pt.inside.interpolation.pattern, fe = (e, t) => ({
1636
- pattern: RegExp("((?:" + t + ")\\s*)" + Ra, "g"),
1529
+ }, Fn = _.js, xt = Fn["template-string"], ma = xt.pattern.source, ha = xt.inside.interpolation.pattern, de = (e, t) => ({
1530
+ pattern: RegExp("((?:" + t + ")\\s*)" + ma, "g"),
1637
1531
  lookbehind: !0,
1638
1532
  greedy: !0,
1639
1533
  inside: {
@@ -1645,7 +1539,7 @@ var Hn = (e) => (t, n) => {
1645
1539
  pattern: /[^]+/,
1646
1540
  inside: {
1647
1541
  interpolation: {
1648
- pattern: Sa,
1542
+ pattern: ha,
1649
1543
  lookbehind: !0,
1650
1544
  alias: "language-javascript",
1651
1545
  inside: {
@@ -1653,46 +1547,46 @@ var Hn = (e) => (t, n) => {
1653
1547
  pattern: /^\$\{|\}$/,
1654
1548
  alias: "punctuation"
1655
1549
  },
1656
- [Y]: "js"
1550
+ [j]: "js"
1657
1551
  }
1658
1552
  },
1659
- [ee]: Hn(e)
1553
+ [J]: Dn(e)
1660
1554
  }
1661
1555
  }
1662
1556
  }
1663
1557
  });
1664
- Vn["template-string"] = [
1558
+ Fn["template-string"] = [
1665
1559
  // styled-jsx:
1666
1560
  // css`a { color: #25F; }`
1667
1561
  // styled-components:
1668
1562
  // styled.h1`color: red;`
1669
- fe("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1563
+ de("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1670
1564
  // html`<p></p>`
1671
1565
  // div.innerHTML = `<p></p>`
1672
- fe("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1566
+ de("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1673
1567
  // svg`<path fill="#fff" d="M55.37 ..."/>`
1674
- fe("svg", "\\bsvg"),
1568
+ de("svg", "\\bsvg"),
1675
1569
  // md`# h1`, markdown`## h2`
1676
- fe("markdown", "\\b(?:markdown|md)"),
1570
+ de("markdown", "\\b(?:markdown|md)"),
1677
1571
  // gql`...`, graphql`...`, graphql.experimental`...`
1678
- fe("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1572
+ de("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1679
1573
  // sql`...`
1680
- fe("sql", "\\bsql"),
1574
+ de("sql", "\\bsql"),
1681
1575
  // vanilla template string
1682
- Pt
1576
+ xt
1683
1577
  ];
1684
- var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", an = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, At]), rn = (e) => e && (!e.type || e.type == "plain-text"), ka = (e, t, n) => {
1685
- for (var i = 0, l = [], u = 0; i < e.length; i++) {
1686
- var b = e[i], E = b.length, y = b.type, v = !y, m, p, c, f, g;
1687
- y && (g = b.content, y == "tag" ? (c = g[0].length, p = g[2] ? t.substr(n + c, g[1].length) : "", c > 1 ? u && l[u - 1][0] == p && u-- : g[g.length - 1].length < 2 && (l[u++] = [p, 0])) : u && y == "punctuation" ? (m = l[u - 1], g == "{" ? m[1]++ : m[1] && g == "}" ? m[1]-- : v = !"}()[]".includes(g)) : v = !0), v && u && !l[u - 1][1] && (c = n, rn(e[i + 1]) && (E += e[i + 1].length, e.splice(i + 1, 1)), rn(e[i - 1]) && (c -= e[--i].length, e.splice(i, 1)), f = t.slice(c, n + E), e[i] = new be("plain-text", f, f)), n += E;
1578
+ var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", en = F("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [De, _t]), tn = (e) => e && (!e.type || e.type == "plain-text"), _a = (e, t, n) => {
1579
+ for (var s = 0, l = [], u = 0; s < e.length; s++) {
1580
+ var f = e[s], E = f.length, y = f.type, v = !y, m, p, c, b, g;
1581
+ y && (g = f.content, y == "tag" ? (c = g[0].length, p = g[2] ? t.substr(n + c, g[1].length) : "", c > 1 ? u && l[u - 1][0] == p && u-- : g[g.length - 1].length < 2 && (l[u++] = [p, 0])) : u && y == "punctuation" ? (m = l[u - 1], g == "{" ? m[1]++ : m[1] && g == "}" ? m[1]-- : v = !"}()[]".includes(g)) : v = !0), v && u && !l[u - 1][1] && (c = n, tn(e[s + 1]) && (E += e[s + 1].length, e.splice(s + 1, 1)), tn(e[s - 1]) && (c -= e[--s].length, e.splice(s, 1)), b = t.slice(c, n + E), e[s] = new ue("plain-text", b, b)), n += E;
1688
1582
  }
1689
1583
  return e;
1690
- }, Zn = (e, t) => {
1691
- $(_[t] = e = et(e), "regex", {
1584
+ }, Un = (e, t) => {
1585
+ $(_[t] = e = Ye(e), "regex", {
1692
1586
  tag: {
1693
1587
  pattern: O(
1694
1588
  `</?(?:(?!\\d)[^\\s/=><%]+(?:<0>(?:<0>*(?:[^\\s<>/={*]+(?:<0>*=<0>*(?!\\s)(?:"[^"]*"|'[^']*'|<1>)?|(?=[\\s/>]))|<2>))+)?<0>*/?)?>`,
1695
- [Ge, At, an],
1589
+ [De, _t, en],
1696
1590
  "g"
1697
1591
  ),
1698
1592
  greedy: !0,
@@ -1707,18 +1601,18 @@ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{
1707
1601
  },
1708
1602
  script: {
1709
1603
  // Allow for two levels of nesting
1710
- pattern: O("(=<0>*)<1>", [Ge, At]),
1604
+ pattern: O("(=<0>*)<1>", [De, _t]),
1711
1605
  lookbehind: !0,
1712
1606
  alias: t = "language-" + t,
1713
1607
  inside: e
1714
1608
  },
1715
1609
  spread: {
1716
- pattern: RegExp(an),
1610
+ pattern: RegExp(en),
1717
1611
  alias: t,
1718
1612
  inside: e
1719
1613
  },
1720
1614
  "attr-value": {
1721
- pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [Ge]),
1615
+ pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [De]),
1722
1616
  lookbehind: !0,
1723
1617
  inside: {
1724
1618
  punctuation: /^["']|["']$/
@@ -1734,9 +1628,9 @@ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{
1734
1628
  }
1735
1629
  }
1736
1630
  }
1737
- }), e[ee] = (n, i) => ka(Oe(n, i), n, 0);
1631
+ }), e[J] = (n, s) => _a(ke(n, s), n, 0);
1738
1632
  };
1739
- Zn(_.js, "jsx");
1633
+ Un(_.js, "jsx");
1740
1634
  _.lua = {
1741
1635
  comment: /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
1742
1636
  // \z may be used to skip the following space
@@ -1754,7 +1648,7 @@ _.lua = {
1754
1648
  },
1755
1649
  punctuation: /[()[\]{},;]|\.+|:+/
1756
1650
  };
1757
- var De = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", sn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1651
+ var Ce = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", nn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1758
1652
  _.perl = {
1759
1653
  comment: [
1760
1654
  {
@@ -1772,7 +1666,7 @@ _.perl = {
1772
1666
  // TODO Could be nice to handle Heredoc too.
1773
1667
  string: {
1774
1668
  pattern: RegExp(
1775
- `\\bq[qwx]?${sn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1669
+ `\\bq[qwx]?${nn}|${Ce})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1776
1670
  '])*'`,
1777
1671
  "g"
1778
1672
  ),
@@ -1781,7 +1675,7 @@ _.perl = {
1781
1675
  regex: [
1782
1676
  {
1783
1677
  pattern: RegExp(
1784
- `\\b(?:m|qr)${sn}|${De})[msixpodualngc]*`,
1678
+ `\\b(?:m|qr)${nn}|${Ce})[msixpodualngc]*`,
1785
1679
  "g"
1786
1680
  ),
1787
1681
  greedy: !0
@@ -1789,7 +1683,7 @@ _.perl = {
1789
1683
  // The lookbehinds prevent -s from breaking
1790
1684
  {
1791
1685
  pattern: RegExp(
1792
- `(^|[^-])\\b(?:s|tr|y)(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|([a-zA-Zd])(?:\\\\[^]|(?!\\3)[^\\\\])*\\3(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|${De}\\s*${De})[msixpodualngcer]*`,
1686
+ `(^|[^-])\\b(?:s|tr|y)(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|([a-zA-Zd])(?:\\\\[^]|(?!\\3)[^\\\\])*\\3(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|${Ce}\\s*${Ce})[msixpodualngcer]*`,
1793
1687
  "g"
1794
1688
  ),
1795
1689
  lookbehind: !0,
@@ -1825,7 +1719,7 @@ _.perl = {
1825
1719
  operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|->|=>|=~|~~|<=>?|!~|--|\+\+|(?:\*\*|\/\/|&&|\|\||<<|>>|[~%&|^!=<>/*+-])=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|[gl][et]|ne|not|x?or)\b/,
1826
1720
  punctuation: /[()[\]{},:;]/
1827
1721
  };
1828
- var on = {
1722
+ var an = {
1829
1723
  "format-spec": {
1830
1724
  pattern: /(:)[^(){}:]+(?=\}$)/,
1831
1725
  lookbehind: !0
@@ -1835,7 +1729,7 @@ var on = {
1835
1729
  alias: "punctuation"
1836
1730
  }
1837
1731
  };
1838
- on[Y] = _.py = _.python = {
1732
+ an[j] = _.py = _.python = {
1839
1733
  comment: {
1840
1734
  pattern: /#.*/g,
1841
1735
  greedy: !0
@@ -1848,7 +1742,7 @@ on[Y] = _.py = _.python = {
1848
1742
  // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
1849
1743
  pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}/,
1850
1744
  lookbehind: !0,
1851
- inside: on
1745
+ inside: an
1852
1746
  },
1853
1747
  string: /[^]+/
1854
1748
  }
@@ -1883,23 +1777,23 @@ on[Y] = _.py = _.python = {
1883
1777
  boolean: /\b(?:False|True|None)\b/,
1884
1778
  number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f\d])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
1885
1779
  operator: /!=|:=|\*\*=?|\/\/=?|<>|>>|<<|[%=<>/*+-]=?|[&|^~]/,
1886
- punctuation: ae
1780
+ punctuation: te
1887
1781
  };
1888
- var Ta = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), ln = {
1782
+ var Ea = me("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), rn = {
1889
1783
  pattern: /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g,
1890
1784
  greedy: !0
1891
- }, cn = {
1785
+ }, sn = {
1892
1786
  "closure-punctuation": {
1893
1787
  pattern: /^\||\|$/,
1894
1788
  alias: "punctuation"
1895
1789
  }
1896
1790
  };
1897
- cn[Y] = _.rust = {
1791
+ sn[j] = _.rust = {
1898
1792
  comment: {
1899
- pattern: RegExp("//.*|" + Ta, "g"),
1793
+ pattern: RegExp("//.*|" + Ea, "g"),
1900
1794
  greedy: !0
1901
1795
  },
1902
- string: ln,
1796
+ string: rn,
1903
1797
  char: {
1904
1798
  pattern: /b?'(?:\\(?:x[0-7][a-fA-F\d]|u\{(?:[a-fA-F\d]_*){1,6}\}|.)|[^\\\n '])'/g,
1905
1799
  greedy: !0
@@ -1909,7 +1803,7 @@ cn[Y] = _.rust = {
1909
1803
  greedy: !0,
1910
1804
  alias: "attr-name",
1911
1805
  inside: {
1912
- string: ln
1806
+ string: rn
1913
1807
  }
1914
1808
  },
1915
1809
  // Closure params should not be confused with bitwise OR |
@@ -1917,7 +1811,7 @@ cn[Y] = _.rust = {
1917
1811
  pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/g,
1918
1812
  lookbehind: !0,
1919
1813
  greedy: !0,
1920
- inside: cn
1814
+ inside: sn
1921
1815
  },
1922
1816
  "lifetime-annotation": {
1923
1817
  pattern: /'\w+/,
@@ -1976,11 +1870,11 @@ cn[Y] = _.rust = {
1976
1870
  },
1977
1871
  // Hex, oct, bin, dec numbers with visual separators and type suffix
1978
1872
  number: /\b(?:0x[a-fA-F\d](?:_?[a-fA-F\d])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
1979
- boolean: K,
1873
+ boolean: q,
1980
1874
  punctuation: /->|\.\.=|\.{1,3}|::|[()[\]{},:;]/,
1981
1875
  operator: /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
1982
1876
  };
1983
- var dn = _.swift = {
1877
+ var on = _.swift = {
1984
1878
  comment: {
1985
1879
  // Nested comments are supported up to 2 levels
1986
1880
  pattern: /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
@@ -2028,7 +1922,7 @@ var dn = _.swift = {
2028
1922
  alias: "property",
2029
1923
  inside: {
2030
1924
  "directive-name": /^#\w+/,
2031
- boolean: K,
1925
+ boolean: q,
2032
1926
  number: /\b\d+(?:\.\d+)*\b/,
2033
1927
  operator: /!|&&|\|\||[<>]=?/,
2034
1928
  punctuation: /[(),]/
@@ -2058,7 +1952,7 @@ var dn = _.swift = {
2058
1952
  alias: "important"
2059
1953
  },
2060
1954
  keyword: /\b(?:Any|[Pp]rotocol|[Ss]elf|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|[gs]et|guard|higherThan|i[fns]|import|indirect|infix|init|inout|internal|isolated|lazy|lef?t|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|public|repeat|required|rethrows|return|right|safe|some|static|struct|subscript|super|switch|throws?|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
2061
- boolean: K,
1955
+ boolean: q,
2062
1956
  nil: {
2063
1957
  pattern: /\bnil\b/,
2064
1958
  alias: "constant"
@@ -2079,12 +1973,12 @@ var dn = _.swift = {
2079
1973
  operator: /[~?%&|^!=<>/*+-]+|\.[.~?%&|^!=<>/*+-]+/,
2080
1974
  punctuation: /[()[\]{}.,:;\\]/
2081
1975
  };
2082
- dn["string-literal"].forEach((e) => {
2083
- e.inside.interpolation.inside = dn;
1976
+ on["string-literal"].forEach((e) => {
1977
+ e.inside.interpolation.inside = on;
2084
1978
  });
2085
1979
  _.clike = {
2086
- comment: se(),
2087
- string: Mt(),
1980
+ comment: re(),
1981
+ string: Tt(),
2088
1982
  "class-name": {
2089
1983
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
2090
1984
  lookbehind: !0,
@@ -2093,26 +1987,26 @@ _.clike = {
2093
1987
  }
2094
1988
  },
2095
1989
  keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
2096
- boolean: K,
1990
+ boolean: q,
2097
1991
  function: /\b\w+(?=\()/,
2098
- number: Fn,
1992
+ number: Ln,
2099
1993
  operator: /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
2100
- punctuation: ae
1994
+ punctuation: te
2101
1995
  };
2102
- var tt = (e) => `\\b(?:${e})\\b`, qn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", nt = "class|enum|interface|record|struct", Kn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", $t = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", Wn = tt(nt), Ke = RegExp(tt(qn + "|" + nt + "|" + Kn + "|" + $t)), Na = tt(nt + "|" + Kn + "|" + $t), Oa = tt(qn + "|" + nt + "|" + $t), We = ye("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), ze = ye("\\((?:[^()]|<self>)*\\)", 2), J = "@?\\b(?!\\d)\\w+\\b", je = U("<0>(?:\\s*<1>)?", [J, We]), de = U("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [Na, je]), Dt = "\\[\\s*(?:,\\s*)*\\]", La = U("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [de, Dt]), Ca = U("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [We, ze, Dt]), Ma = U("\\(<0>+(?:,<0>+)+\\)", [Ca]), ge = U("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Ma, de, Dt]), j = {
2103
- keyword: Ke,
1996
+ var Xe = (e) => `\\b(?:${e})\\b`, Bn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", Qe = "class|enum|interface|record|struct", Gn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", Ot = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", zn = Xe(Qe), He = RegExp(Xe(Bn + "|" + Qe + "|" + Gn + "|" + Ot)), ya = Xe(Qe + "|" + Gn + "|" + Ot), va = Xe(Bn + "|" + Qe + "|" + Ot), Ve = me("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), Fe = me("\\((?:[^()]|<self>)*\\)", 2), Q = "@?\\b(?!\\d)\\w+\\b", Ze = F("<0>(?:\\s*<1>)?", [Q, Ve]), le = F("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [ya, Ze]), Nt = "\\[\\s*(?:,\\s*)*\\]", wa = F("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [le, Nt]), Aa = F("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [Ve, Fe, Nt]), Ia = F("\\(<0>+(?:,<0>+)+\\)", [Aa]), pe = F("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Ia, le, Nt]), W = {
1997
+ keyword: He,
2104
1998
  punctuation: /[()[\].,:<>?]/
2105
- }, jn = `'(?:\\\\.|[^
2106
- '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Yn = `"(?:\\\\.|[^\\\\
2107
- "])*"`, Pa = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = _.dotnet = _.cs = _.csharp = ie("clike", {
1999
+ }, Hn = `'(?:\\\\.|[^
2000
+ '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Vn = `"(?:\\\\.|[^\\\\
2001
+ "])*"`, Ra = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', ne = _.dotnet = _.cs = _.csharp = ae("clike", {
2108
2002
  string: [
2109
2003
  {
2110
- pattern: O("(^|[^$\\\\])<0>", [Pa], "g"),
2004
+ pattern: O("(^|[^$\\\\])<0>", [Ra], "g"),
2111
2005
  lookbehind: !0,
2112
2006
  greedy: !0
2113
2007
  },
2114
2008
  {
2115
- pattern: O("(^|[^@$\\\\])<0>", [Yn], "g"),
2009
+ pattern: O("(^|[^@$\\\\])<0>", [Vn], "g"),
2116
2010
  lookbehind: !0,
2117
2011
  greedy: !0
2118
2012
  }
@@ -2121,84 +2015,84 @@ var tt = (e) => `\\b(?:${e})\\b`, qn = "bool|char|decimal|double|dynamic|float|o
2121
2015
  {
2122
2016
  // Using static
2123
2017
  // using static System.Math;
2124
- pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [de]),
2018
+ pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [le]),
2125
2019
  lookbehind: !0,
2126
- inside: j
2020
+ inside: W
2127
2021
  },
2128
2022
  {
2129
2023
  // Using alias (type)
2130
2024
  // using Project = PC.MyCompany.Project;
2131
- pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [J, ge]),
2025
+ pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [Q, pe]),
2132
2026
  lookbehind: !0,
2133
- inside: j
2027
+ inside: W
2134
2028
  },
2135
2029
  {
2136
2030
  // Using alias (alias)
2137
2031
  // using Project = PC.MyCompany.Project;
2138
- pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [J]),
2032
+ pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [Q]),
2139
2033
  lookbehind: !0
2140
2034
  },
2141
2035
  {
2142
2036
  // Type declarations
2143
2037
  // class Foo<A, B>
2144
2038
  // interface Foo<out A, B>
2145
- pattern: O("(\\b<0>\\s+)<1>", [Wn, je]),
2039
+ pattern: O("(\\b<0>\\s+)<1>", [zn, Ze]),
2146
2040
  lookbehind: !0,
2147
- inside: j
2041
+ inside: W
2148
2042
  },
2149
2043
  {
2150
2044
  // Single catch exception declaration
2151
2045
  // catch(Foo)
2152
2046
  // (things like catch(Foo e) is covered by variable declaration)
2153
- pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [de]),
2047
+ pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [le]),
2154
2048
  lookbehind: !0,
2155
- inside: j
2049
+ inside: W
2156
2050
  },
2157
2051
  {
2158
2052
  // Name of the type parameter of generic constraints
2159
2053
  // where Foo : class
2160
- pattern: O("(\\bwhere\\s+)<0>", [J]),
2054
+ pattern: O("(\\bwhere\\s+)<0>", [Q]),
2161
2055
  lookbehind: !0
2162
2056
  },
2163
2057
  {
2164
2058
  // Casts and checks via as and is.
2165
2059
  // as Foo<A>, is Bar<B>
2166
2060
  // (things like if(a is Foo b) is covered by variable declaration)
2167
- pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [La]),
2061
+ pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [wa]),
2168
2062
  lookbehind: !0,
2169
- inside: j
2063
+ inside: W
2170
2064
  },
2171
2065
  {
2172
2066
  // Variable, field and parameter declaration
2173
2067
  // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
2174
- pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [ge, Oa, J]),
2175
- inside: j
2068
+ pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [pe, va, Q]),
2069
+ inside: W
2176
2070
  }
2177
2071
  ],
2178
- keyword: Ke,
2072
+ keyword: He,
2179
2073
  // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
2180
2074
  number: /(?:\b0(?:x[a-f\d_]*[a-f\d]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[+-]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
2181
2075
  operator: /[=-]>|([&|+-])\1|~|\?\?=?|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
2182
2076
  punctuation: /\?\.?|::|[()[\]{}.,:;]/
2183
2077
  });
2184
- $(re, "number", {
2078
+ $(ne, "number", {
2185
2079
  range: {
2186
2080
  pattern: /\.\./,
2187
2081
  alias: "operator"
2188
2082
  }
2189
2083
  });
2190
- $(re, "punctuation", {
2084
+ $(ne, "punctuation", {
2191
2085
  "named-parameter": {
2192
- pattern: O("([(,]\\s*)<0>(?=\\s*:)", [J]),
2086
+ pattern: O("([(,]\\s*)<0>(?=\\s*:)", [Q]),
2193
2087
  lookbehind: !0,
2194
2088
  alias: "punctuation"
2195
2089
  }
2196
2090
  });
2197
- $(re, "class-name", {
2091
+ $(ne, "class-name", {
2198
2092
  namespace: {
2199
2093
  // namespace Foo.Bar {}
2200
2094
  // using Foo.Bar;
2201
- pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [J]),
2095
+ pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [Q]),
2202
2096
  lookbehind: !0,
2203
2097
  inside: {
2204
2098
  punctuation: /\./
@@ -2206,25 +2100,25 @@ $(re, "class-name", {
2206
2100
  },
2207
2101
  "type-expression": {
2208
2102
  // default(Foo), typeof(Foo<Bar>), sizeof(int)
2209
- pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [ze]),
2103
+ pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [Fe]),
2210
2104
  lookbehind: !0,
2211
2105
  alias: "class-name",
2212
- inside: j
2106
+ inside: W
2213
2107
  },
2214
2108
  "return-type": {
2215
2109
  // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
2216
2110
  // int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
2217
2111
  // int Foo => 0; int Foo { get; set } = 0;
2218
- pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [ge, de]),
2112
+ pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [pe, le]),
2219
2113
  alias: "class-name",
2220
- inside: j
2114
+ inside: W
2221
2115
  },
2222
2116
  "constructor-invocation": {
2223
2117
  // new List<Foo<Bar[]>> { }
2224
- pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [ge]),
2118
+ pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [pe]),
2225
2119
  lookbehind: !0,
2226
2120
  alias: "class-name",
2227
- inside: j
2121
+ inside: W
2228
2122
  },
2229
2123
  /*'explicit-implementation': {
2230
2124
  // int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
@@ -2234,13 +2128,13 @@ $(re, "class-name", {
2234
2128
  },*/
2235
2129
  "generic-method": {
2236
2130
  // foo<Bar>()
2237
- pattern: O("<0>\\s*<1>(?=\\s*\\()", [J, We]),
2131
+ pattern: O("<0>\\s*<1>(?=\\s*\\()", [Q, Ve]),
2238
2132
  inside: {
2239
- function: O("^<0>", [J]),
2133
+ function: O("^<0>", [Q]),
2240
2134
  generic: {
2241
- pattern: RegExp(We),
2135
+ pattern: RegExp(Ve),
2242
2136
  alias: "class-name",
2243
- inside: j
2137
+ inside: W
2244
2138
  }
2245
2139
  }
2246
2140
  },
@@ -2250,21 +2144,21 @@ $(re, "class-name", {
2250
2144
  // where F : Bar, IList<int>
2251
2145
  pattern: O(
2252
2146
  "\\b((?:<0>\\s+<1>|record\\s+<1>\\s*<5>|where\\s+<2>)\\s*:\\s*)(?:<3>|<4>|<1>\\s*<5>|<6>)(?:\\s*,\\s*(?:<3>|<4>|<6>))*(?=\\s*(?:where|[{;]|=>|$))",
2253
- [Wn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2147
+ [zn, Ze, Q, pe, He.source, Fe, "\\bnew\\s*\\(\\s*\\)"]
2254
2148
  ),
2255
2149
  lookbehind: !0,
2256
2150
  inside: {
2257
2151
  "record-arguments": {
2258
- pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [je, ze], "g"),
2152
+ pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [Ze, Fe], "g"),
2259
2153
  lookbehind: !0,
2260
2154
  greedy: !0,
2261
- inside: re
2155
+ inside: ne
2262
2156
  },
2263
- keyword: Ke,
2157
+ keyword: He,
2264
2158
  "class-name": {
2265
- pattern: RegExp(ge, "g"),
2159
+ pattern: RegExp(pe, "g"),
2266
2160
  greedy: !0,
2267
- inside: j
2161
+ inside: W
2268
2162
  },
2269
2163
  punctuation: /[(),]/
2270
2164
  }
@@ -2283,16 +2177,16 @@ $(re, "class-name", {
2283
2177
  }
2284
2178
  }
2285
2179
  });
2286
- var Xn = Yn + "|" + jn, Qn = U(`/(?![*/])|//[^
2180
+ var Zn = Vn + "|" + Hn, qn = F(`/(?![*/])|//[^
2287
2181
  ]*
2288
- |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Xn]), Jn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), un = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", $a = U("<0>(?:\\s*\\(<1>*\\))?", [de, Jn]), Ft = `:[^
2289
- }]+`, ea = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), pn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ea, Ft]), ta = ye(U(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Xn]), 2), fn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ta, Ft]), bn = (e, t) => ({
2182
+ |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Zn]), Kn = me(F(`[^()"'/]|<0>|\\(<self>*\\)`, [qn]), 2), ln = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", Sa = F("<0>(?:\\s*\\(<1>*\\))?", [le, Kn]), Lt = `:[^
2183
+ }]+`, Wn = me(F(`[^()"'/]|<0>|\\(<self>*\\)`, [qn]), 2), cn = F("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [Wn, Lt]), jn = me(F(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Zn]), 2), dn = F("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [jn, Lt]), un = (e, t) => ({
2290
2184
  interpolation: {
2291
2185
  pattern: O("((?:^|[^{])(?:\\{\\{)*)<0>", [e]),
2292
2186
  lookbehind: !0,
2293
2187
  inside: {
2294
2188
  "format-string": {
2295
- pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Ft]),
2189
+ pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Lt]),
2296
2190
  lookbehind: !0,
2297
2191
  inside: {
2298
2192
  punctuation: /^:/
@@ -2302,30 +2196,30 @@ var Xn = Yn + "|" + jn, Qn = U(`/(?![*/])|//[^
2302
2196
  expression: {
2303
2197
  pattern: /[^]+/,
2304
2198
  alias: "language-csharp",
2305
- inside: re
2199
+ inside: ne
2306
2200
  }
2307
2201
  }
2308
2202
  },
2309
2203
  string: /[^]+/
2310
2204
  });
2311
- $(re, "class-name", {
2205
+ $(ne, "class-name", {
2312
2206
  attribute: {
2313
2207
  // Attributes
2314
2208
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
2315
- pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [un, $a], "g"),
2209
+ pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [ln, Sa], "g"),
2316
2210
  lookbehind: !0,
2317
2211
  greedy: !0,
2318
2212
  inside: {
2319
2213
  target: {
2320
- pattern: O("^<0>(?=\\s*:)", [un]),
2214
+ pattern: O("^<0>(?=\\s*:)", [ln]),
2321
2215
  alias: "keyword"
2322
2216
  },
2323
2217
  "attribute-arguments": {
2324
- pattern: O("\\(<0>*\\)", [Jn]),
2325
- inside: re
2218
+ pattern: O("\\(<0>*\\)", [Kn]),
2219
+ inside: ne
2326
2220
  },
2327
2221
  "class-name": {
2328
- pattern: RegExp(de),
2222
+ pattern: RegExp(le),
2329
2223
  inside: {
2330
2224
  punctuation: /\./
2331
2225
  }
@@ -2334,23 +2228,23 @@ $(re, "class-name", {
2334
2228
  }
2335
2229
  }
2336
2230
  });
2337
- $(re, "string", {
2231
+ $(ne, "string", {
2338
2232
  "interpolation-string": [
2339
2233
  {
2340
- pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [pn], "g"),
2234
+ pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [cn], "g"),
2341
2235
  lookbehind: !0,
2342
2236
  greedy: !0,
2343
- inside: bn(pn, ea)
2237
+ inside: un(cn, Wn)
2344
2238
  },
2345
2239
  {
2346
- pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [fn], "g"),
2240
+ pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [dn], "g"),
2347
2241
  lookbehind: !0,
2348
2242
  greedy: !0,
2349
- inside: bn(fn, ta)
2243
+ inside: un(dn, jn)
2350
2244
  }
2351
2245
  ],
2352
2246
  char: {
2353
- pattern: RegExp(jn, "g"),
2247
+ pattern: RegExp(Hn, "g"),
2354
2248
  greedy: !0
2355
2249
  }
2356
2250
  });
@@ -2373,7 +2267,7 @@ _.graphql = {
2373
2267
  greedy: !0
2374
2268
  },
2375
2269
  number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2376
- boolean: K,
2270
+ boolean: q,
2377
2271
  variable: /\$[a-z_]\w*/i,
2378
2272
  directive: {
2379
2273
  pattern: /@[a-z_]\w*/i,
@@ -2414,15 +2308,15 @@ _.graphql = {
2414
2308
  object: /\w+(?=\s*\{)/,
2415
2309
  punctuation: /[()[\]{},:!=]/,
2416
2310
  property: /\w+/,
2417
- [ee](e, t) {
2418
- for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = i.length, u = 0, b = (a) => {
2311
+ [J](e, t) {
2312
+ for (var n = ke(e, t), s = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = s.length, u = 0, f = (a) => {
2419
2313
  for (var r = 0; r < a.length; r++)
2420
- if (u + r == l || i[u + r].type != a[r])
2314
+ if (u + r == l || s[u + r].type != a[r])
2421
2315
  return !0;
2422
2316
  }, E = (a, r) => {
2423
2317
  for (var d = 1, o = u; o < l; o++) {
2424
- var s = i[o], h = s.content;
2425
- if (s.type == "punctuation") {
2318
+ var i = s[o], h = i.content;
2319
+ if (i.type == "punctuation") {
2426
2320
  if (a == h)
2427
2321
  d++;
2428
2322
  else if (r == h && !--d)
@@ -2430,23 +2324,23 @@ _.graphql = {
2430
2324
  }
2431
2325
  }
2432
2326
  }; u < l; ) {
2433
- var y = i[u++];
2327
+ var y = s[u++];
2434
2328
  if (y.type == "keyword" && y.content == "mutation") {
2435
2329
  var v = [];
2436
- if (!b(["definition-mutation", "punctuation"]) && i[u + 1].content == "(") {
2330
+ if (!f(["definition-mutation", "punctuation"]) && s[u + 1].content == "(") {
2437
2331
  u += 2;
2438
2332
  var m = E("(", ")");
2439
2333
  if (!m) continue;
2440
2334
  for (; u < m; u++) {
2441
- var p = i[u];
2335
+ var p = s[u];
2442
2336
  p.type == "variable" && (p.alias = "variable-input", v.push(p.content));
2443
2337
  }
2444
2338
  u = m + 1;
2445
2339
  }
2446
- if (!b(["punctuation", "property-query"]) && i[u].content == "{" && (i[++u].alias = "property-mutation", v[0])) {
2340
+ if (!f(["punctuation", "property-query"]) && s[u].content == "{" && (s[++u].alias = "property-mutation", v[0])) {
2447
2341
  var c = E("{", "}");
2448
- if (c) for (var f = u; f < c; f++) {
2449
- var g = i[f];
2342
+ if (c) for (var b = u; b < c; b++) {
2343
+ var g = s[b];
2450
2344
  g.type == "variable" && v.indexOf(g.content) >= 0 && (g.alias = "variable-input");
2451
2345
  }
2452
2346
  }
@@ -2464,11 +2358,11 @@ _.webmanifest = _.json = {
2464
2358
  pattern: /"(?:\\.|[^\\\n"])*"/g,
2465
2359
  greedy: !0
2466
2360
  },
2467
- comment: se(),
2361
+ comment: re(),
2468
2362
  number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2469
2363
  operator: /:/,
2470
2364
  punctuation: /[[\]{},]/,
2471
- boolean: K,
2365
+ boolean: q,
2472
2366
  null: {
2473
2367
  pattern: /\bnull\b/,
2474
2368
  alias: "keyword"
@@ -2476,7 +2370,7 @@ _.webmanifest = _.json = {
2476
2370
  };
2477
2371
  _.makefile = {
2478
2372
  comment: /#(?:\\[^]|[^\\\n])*/,
2479
- string: Mt(),
2373
+ string: Tt(),
2480
2374
  "builtin-target": {
2481
2375
  pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
2482
2376
  alias: "builtin"
@@ -2498,13 +2392,13 @@ _.makefile = {
2498
2392
  operator: /(?:::|[?:+!])?=|[|@]/,
2499
2393
  punctuation: /[:;(){}]/
2500
2394
  };
2501
- var Ut = _.scss = ie("css", {
2502
- comment: se(),
2395
+ var Ct = _.scss = ae("css", {
2396
+ comment: re(),
2503
2397
  atrule: {
2504
2398
  pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
2505
2399
  inside: {
2506
2400
  rule: /@[\w-]+/,
2507
- [Y]: "scss"
2401
+ [j]: "scss"
2508
2402
  }
2509
2403
  },
2510
2404
  // url, compassified
@@ -2535,7 +2429,7 @@ var Ut = _.scss = ie("css", {
2535
2429
  }
2536
2430
  }
2537
2431
  });
2538
- $(Ut, "atrule", {
2432
+ $(Ct, "atrule", {
2539
2433
  keyword: [
2540
2434
  /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
2541
2435
  {
@@ -2544,11 +2438,11 @@ $(Ut, "atrule", {
2544
2438
  }
2545
2439
  ]
2546
2440
  });
2547
- $(Ut, "important", {
2441
+ $(Ct, "important", {
2548
2442
  // var and interpolated vars
2549
2443
  variable: /\$[-\w]+|#\{\$[-\w]+\}/
2550
2444
  });
2551
- $(Ut, "function", {
2445
+ $(Ct, "function", {
2552
2446
  "module-modifier": {
2553
2447
  pattern: /\b(?:as|hide|show|with)\b/i,
2554
2448
  alias: "keyword"
@@ -2561,7 +2455,7 @@ $(Ut, "function", {
2561
2455
  pattern: /\B!(?:default|optional)\b/i,
2562
2456
  alias: "keyword"
2563
2457
  },
2564
- boolean: K,
2458
+ boolean: q,
2565
2459
  null: {
2566
2460
  pattern: /\bnull\b/,
2567
2461
  alias: "keyword"
@@ -2571,25 +2465,25 @@ $(Ut, "function", {
2571
2465
  lookbehind: !0
2572
2466
  }
2573
2467
  });
2574
- var na = {
2468
+ var Yn = {
2575
2469
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
2576
2470
  lookbehind: !0,
2577
2471
  greedy: !0
2578
- }, ve = _.ts = _.typescript = ie("js", {
2579
- "class-name": na
2472
+ }, he = _.ts = _.typescript = ae("js", {
2473
+ "class-name": Yn
2580
2474
  });
2581
- $(ve, "operator", {
2475
+ $(he, "operator", {
2582
2476
  builtin: /\b(?:Array|Function|Promise|any|boolean|never|number|string|symbol|unknown)\b/
2583
2477
  });
2584
- ve.keyword.push(
2478
+ he.keyword.push(
2585
2479
  /\b(?:abstract|declare|is|keyof|readonly|require)\b|\b(?:asserts|infer|interface|module|namespace|type)\b(?!\s*[^\s{_$a-zA-Z\xa0-\uffff])|\btype(?=\s*\*)/
2586
2480
  );
2587
- delete ve.parameter;
2588
- delete ve["literal-property"];
2589
- var Bt = na.inside = Object.assign({}, ve);
2590
- delete Bt["class-name"];
2591
- delete Bt["maybe-class-name"];
2592
- $(ve, "function", {
2481
+ delete he.parameter;
2482
+ delete he["literal-property"];
2483
+ var Mt = Yn.inside = Object.assign({}, he);
2484
+ delete Mt["class-name"];
2485
+ delete Mt["maybe-class-name"];
2486
+ $(he, "function", {
2593
2487
  decorator: {
2594
2488
  pattern: /@[$\w\xa0-\uffff]+/,
2595
2489
  inside: {
@@ -2609,35 +2503,35 @@ $(ve, "function", {
2609
2503
  pattern: /<[^]+/,
2610
2504
  // everything after the first <
2611
2505
  alias: "class-name",
2612
- inside: Bt
2506
+ inside: Mt
2613
2507
  },
2614
2508
  function: /\S+/
2615
2509
  }
2616
2510
  }
2617
2511
  });
2618
- Zn(_.ts, "tsx");
2619
- var It = _.tsx.tag, aa = "(?:^|(";
2512
+ Un(_.ts, "tsx");
2513
+ var Et = _.tsx.tag, Xn = "(?:^|(";
2620
2514
  try {
2621
- RegExp("(?<=)"), aa += "?<=";
2515
+ RegExp("(?<=)"), Xn += "?<=";
2622
2516
  } catch {
2623
- It.lookbehind = !0;
2517
+ Et.lookbehind = !0;
2624
2518
  }
2625
- It.pattern = RegExp(aa + `[^\\w$])|(?=</))${It.pattern.source}`, "g");
2626
- var Rt = /[*&][^\s[\]{},]+/, St = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, kt = `(?:${St.source}(?:[ ]+${Rt.source})?|${Rt.source}(?:[ ]+${St.source})?)`, Da = U(
2519
+ Et.pattern = RegExp(Xn + `[^\\w$])|(?=</))${Et.pattern.source}`, "g");
2520
+ var yt = /[*&][^\s[\]{},]+/, vt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, wt = `(?:${vt.source}(?:[ ]+${yt.source})?|${yt.source}(?:[ ]+${vt.source})?)`, ka = F(
2627
2521
  "(?:[^\\s\0-\\x08\\x0e-\\x1f!\"#%&'*,:>?@[\\]{}`|\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff-]|[?:-]<0>)(?:[ ]*(?:(?![#:])<0>|:<0>))*",
2628
2522
  ["[^\\s\0-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"]
2629
- ), gn = `"(?:\\\\.|[^\\\\
2523
+ ), pn = `"(?:\\\\.|[^\\\\
2630
2524
  "])*"|'(?:\\\\.|[^\\\\
2631
- '])*'`, Ie = (e, t) => O(
2525
+ '])*'`, ve = (e, t) => O(
2632
2526
  `([:,[{-]\\s*(?:\\s<0>[ ]+)?)<1>(?=[ ]*(?:$|,|\\]|\\}|(?:
2633
2527
  \\s*)?#))`,
2634
- [kt, e],
2528
+ [wt, e],
2635
2529
  t
2636
2530
  );
2637
2531
  _.yml = _.yaml = {
2638
2532
  scalar: {
2639
2533
  pattern: O(`([:-]\\s*(?:\\s<0>[ ]+)?[|>])[ ]*(?:(
2640
- [ ]+)\\S.*(?:\\2.+)*)`, [kt]),
2534
+ [ ]+)\\S.*(?:\\2.+)*)`, [wt]),
2641
2535
  lookbehind: !0,
2642
2536
  alias: "string"
2643
2537
  },
@@ -2646,7 +2540,7 @@ _.yml = _.yaml = {
2646
2540
  pattern: O(
2647
2541
  `((?:^|[:,[{
2648
2542
  ?-])[ ]*(?:<0>[ ]+)?)<1>(?=\\s*:\\s)`,
2649
- [kt, "(?:" + Da + "|" + gn + ")"],
2543
+ [wt, "(?:" + ka + "|" + pn + ")"],
2650
2544
  "g"
2651
2545
  ),
2652
2546
  lookbehind: !0,
@@ -2659,43 +2553,43 @@ _.yml = _.yaml = {
2659
2553
  alias: "important"
2660
2554
  },
2661
2555
  datetime: {
2662
- pattern: Ie("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*)?(?:[ ]*(?:Z|[+-]\\d\\d?(?::\\d\\d)?))?|\\d{4}-\\d\\d-\\d\\d|\\d\\d?:\\d\\d(?::\\d\\d(?:\\.\\d*)?)?", "m"),
2556
+ pattern: ve("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*)?(?:[ ]*(?:Z|[+-]\\d\\d?(?::\\d\\d)?))?|\\d{4}-\\d\\d-\\d\\d|\\d\\d?:\\d\\d(?::\\d\\d(?:\\.\\d*)?)?", "m"),
2663
2557
  lookbehind: !0,
2664
2558
  alias: "number"
2665
2559
  },
2666
2560
  boolean: {
2667
- pattern: Ie("false|true", "im"),
2561
+ pattern: ve("false|true", "im"),
2668
2562
  lookbehind: !0,
2669
2563
  alias: "important"
2670
2564
  },
2671
2565
  null: {
2672
- pattern: Ie("null|~", "im"),
2566
+ pattern: ve("null|~", "im"),
2673
2567
  lookbehind: !0,
2674
2568
  alias: "important"
2675
2569
  },
2676
2570
  string: {
2677
- pattern: Ie(gn, "mg"),
2571
+ pattern: ve(pn, "mg"),
2678
2572
  lookbehind: !0,
2679
2573
  greedy: !0
2680
2574
  },
2681
2575
  number: {
2682
- pattern: Ie("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2576
+ pattern: ve("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2683
2577
  lookbehind: !0
2684
2578
  },
2685
- tag: St,
2686
- important: Rt,
2579
+ tag: vt,
2580
+ important: yt,
2687
2581
  punctuation: /---|[:[\]{},|>?-]|\.{3}/
2688
2582
  };
2689
- var mn = {
2583
+ var bn = {
2690
2584
  pattern: /\\[\\()[\]{}^$+*?|.]/,
2691
2585
  alias: "escape"
2692
- }, He = /\\(?:x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|u\{[a-fA-F\d]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, Fa = {
2586
+ }, Ue = /\\(?:x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|u\{[a-fA-F\d]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, Ta = {
2693
2587
  pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
2694
2588
  alias: "class-name"
2695
- }, Ua = {
2589
+ }, xa = {
2696
2590
  pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
2697
2591
  alias: "class-name"
2698
- }, hn = "(?:[^\\\\-]|" + He.source + ")", Ba = RegExp(hn + "-" + hn), _n = {
2592
+ }, fn = "(?:[^\\\\-]|" + Ue.source + ")", Oa = RegExp(fn + "-" + fn), gn = {
2699
2593
  pattern: /(<|')[^<>']+(?=[>']$)/,
2700
2594
  lookbehind: !0,
2701
2595
  alias: "variable"
@@ -2715,22 +2609,22 @@ _.regex = {
2715
2609
  alias: "operator"
2716
2610
  },
2717
2611
  range: {
2718
- pattern: Ba,
2612
+ pattern: Oa,
2719
2613
  inside: {
2720
- escape: He,
2614
+ escape: Ue,
2721
2615
  "range-punctuation": {
2722
2616
  pattern: /-/,
2723
2617
  alias: "operator"
2724
2618
  }
2725
2619
  }
2726
2620
  },
2727
- "special-escape": mn,
2728
- "char-set": Ua,
2729
- escape: He
2621
+ "special-escape": bn,
2622
+ "char-set": xa,
2623
+ escape: Ue
2730
2624
  }
2731
2625
  },
2732
- "special-escape": mn,
2733
- "char-set": Fa,
2626
+ "special-escape": bn,
2627
+ "char-set": Ta,
2734
2628
  backreference: [
2735
2629
  {
2736
2630
  // a backreference which is not an octal escape
@@ -2741,7 +2635,7 @@ _.regex = {
2741
2635
  pattern: /\\k<[^<>']+>/,
2742
2636
  alias: "keyword",
2743
2637
  inside: {
2744
- "group-name": _n
2638
+ "group-name": gn
2745
2639
  }
2746
2640
  }
2747
2641
  ],
@@ -2749,7 +2643,7 @@ _.regex = {
2749
2643
  pattern: /[$^]|\\[ABbGZz]/,
2750
2644
  alias: "function"
2751
2645
  },
2752
- escape: He,
2646
+ escape: Ue,
2753
2647
  group: [
2754
2648
  {
2755
2649
  // https://docs.oracle.com/javase/10/docs/api/java/util/regex/Pattern.html
@@ -2758,7 +2652,7 @@ _.regex = {
2758
2652
  pattern: /(\()\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[!=]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?)/,
2759
2653
  lookbehind: !0,
2760
2654
  inside: {
2761
- "group-name": _n
2655
+ "group-name": gn
2762
2656
  }
2763
2657
  },
2764
2658
  {
@@ -2775,7 +2669,7 @@ _.regex = {
2775
2669
  alias: "keyword"
2776
2670
  }
2777
2671
  };
2778
- var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2672
+ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2779
2673
  {
2780
2674
  pattern: /\b(?:false|true)\b/i,
2781
2675
  alias: "boolean"
@@ -2792,10 +2686,10 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2792
2686
  },
2793
2687
  /\b(?:null)\b/i,
2794
2688
  /\b[A-Z_][A-Z\d_]*\b(?!\s*\()/
2795
- ], vn = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, wn = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, Tt = {
2689
+ ], _n = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, En = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, At = {
2796
2690
  pattern: /\{\$(?:[^{}]|\{(?:[^{}]|\{[^}]+\})*\})*\}|(^|[^\\{])\$+(?:\w+(?:\[[^\n[\]]*\]|->\w+)?)/,
2797
2691
  lookbehind: !0
2798
- }, xn = [
2692
+ }, yn = [
2799
2693
  {
2800
2694
  pattern: /<<<'([^']+)'\n(?:.*\n)*?\1;/g,
2801
2695
  alias: "nowdoc-string",
@@ -2822,7 +2716,7 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2822
2716
  punctuation: /^<<<"?|[";]$/
2823
2717
  }
2824
2718
  },
2825
- interpolation: Tt
2719
+ interpolation: At
2826
2720
  }
2827
2721
  },
2828
2722
  {
@@ -2840,10 +2734,10 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2840
2734
  greedy: !0,
2841
2735
  alias: "double-quoted-string",
2842
2736
  inside: {
2843
- interpolation: Tt
2737
+ interpolation: At
2844
2738
  }
2845
2739
  }
2846
- ], An = Tt.inside = {
2740
+ ], vn = At.inside = {
2847
2741
  delimiter: {
2848
2742
  pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
2849
2743
  alias: "important"
@@ -2854,8 +2748,8 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2854
2748
  alias: "comment",
2855
2749
  inside: "phpdoc"
2856
2750
  },
2857
- comment: En,
2858
- string: xn,
2751
+ comment: mn,
2752
+ string: yn,
2859
2753
  attribute: {
2860
2754
  pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*')+\](?=\s*[a-z$#])/img,
2861
2755
  greedy: !0,
@@ -2865,8 +2759,8 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2865
2759
  lookbehind: !0,
2866
2760
  // inside can appear subset of php
2867
2761
  inside: {
2868
- comment: En,
2869
- string: xn,
2762
+ comment: mn,
2763
+ string: yn,
2870
2764
  "attribute-class-name": [
2871
2765
  {
2872
2766
  pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/gi,
@@ -2884,10 +2778,10 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2884
2778
  }
2885
2779
  }
2886
2780
  ],
2887
- constant: yn,
2888
- number: vn,
2889
- operator: wn,
2890
- punctuation: ae
2781
+ constant: hn,
2782
+ number: _n,
2783
+ operator: En,
2784
+ punctuation: te
2891
2785
  }
2892
2786
  },
2893
2787
  delimiter: {
@@ -3067,7 +2961,7 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
3067
2961
  }
3068
2962
  }
3069
2963
  ],
3070
- constant: yn,
2964
+ constant: hn,
3071
2965
  function: {
3072
2966
  pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
3073
2967
  lookbehind: !0,
@@ -3079,25 +2973,25 @@ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
3079
2973
  pattern: /(->\s*)\w+/,
3080
2974
  lookbehind: !0
3081
2975
  },
3082
- number: vn,
3083
- operator: wn,
3084
- punctuation: ae
3085
- }, Ga = Hn("html");
2976
+ number: _n,
2977
+ operator: En,
2978
+ punctuation: te
2979
+ }, Na = Dn("html");
3086
2980
  _.php = {
3087
2981
  php: {
3088
2982
  pattern: /<\?(?:[^"'/#]|\/(?![*/])|(["'])(?:\\[^]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^\n?]|\?(?!>))*(?=$|\?>|\n)|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/,
3089
2983
  alias: "language-php",
3090
- inside: An
2984
+ inside: vn
3091
2985
  },
3092
- [ee]: (e, t) => e.includes("<?") ? Ga(e, t) : Ne(e, An)
2986
+ [J]: (e, t) => e.includes("<?") ? Na(e, t) : Se(e, vn)
3093
2987
  };
3094
- var za = [`(?:\\\\.|[^\\\\
2988
+ var La = [`(?:\\\\.|[^\\\\
3095
2989
  ]|
3096
2990
  (?!
3097
- ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, za, "g"), Nt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, In = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3098
- |(?![\\s\\S]))`, [Nt.source]), Ha = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3099
- `, me = _.md = _.markdown = et(_.html);
3100
- $(me, "prolog", {
2991
+ ))`], Me = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, La, "g"), It = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, wn = F(`\\|?<0>(?:\\|<0>)+\\|?(?:
2992
+ |(?![\\s\\S]))`, [It.source]), Ca = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
2993
+ `, be = _.md = _.markdown = Ye(_.html);
2994
+ $(be, "prolog", {
3101
2995
  "front-matter-block": {
3102
2996
  pattern: /(^(?:\s*\n)?)---(?!.)[^]*?\n---(?!.)/g,
3103
2997
  lookbehind: !0,
@@ -3117,15 +3011,15 @@ $(me, "prolog", {
3117
3011
  alias: "punctuation"
3118
3012
  },
3119
3013
  table: {
3120
- pattern: RegExp("^" + In + Ha + "(?:" + In + ")*", "m"),
3014
+ pattern: RegExp("^" + wn + Ca + "(?:" + wn + ")*", "m"),
3121
3015
  inside: {
3122
3016
  "table-header-row": {
3123
3017
  pattern: /^.+/,
3124
3018
  inside: {
3125
3019
  "table-header": {
3126
- pattern: Nt,
3020
+ pattern: It,
3127
3021
  alias: "important",
3128
- inside: me
3022
+ inside: be
3129
3023
  },
3130
3024
  punctuation: /\|/
3131
3025
  }
@@ -3135,8 +3029,8 @@ $(me, "prolog", {
3135
3029
  lookbehind: !0,
3136
3030
  inside: {
3137
3031
  "table-data": {
3138
- pattern: Nt,
3139
- inside: me
3032
+ pattern: It,
3033
+ inside: be
3140
3034
  },
3141
3035
  punctuation: /\|/
3142
3036
  }
@@ -3166,11 +3060,11 @@ $(me, "prolog", {
3166
3060
  punctuation: /^`+|`+$/,
3167
3061
  "code-language": /^.+/,
3168
3062
  "code-block": /(?!^)[^]+(?=\n)/,
3169
- [ee](e, t) {
3170
- var n = Oe(e, t), i;
3171
- return n[5] && (i = (/[a-z][\w-]*/i.exec(
3063
+ [J](e, t) {
3064
+ var n = ke(e, t), s;
3065
+ return n[5] && (s = (/[a-z][\w-]*/i.exec(
3172
3066
  n[1].content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp")
3173
- ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = _[i]) && (n[3].content = Ne(n[3].content, t))), n;
3067
+ ) || [""])[0].toLowerCase(), n[3].alias = "language-" + s, (t = _[s]) && (n[3].content = Se(n[3].content, t))), n;
3174
3068
  }
3175
3069
  }
3176
3070
  }
@@ -3236,7 +3130,7 @@ $(me, "prolog", {
3236
3130
  // **strong**
3237
3131
  // __strong__
3238
3132
  // allow one nested instance of italic text using the same delimiter
3239
- pattern: Fe("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3133
+ pattern: Me("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3240
3134
  lookbehind: !0,
3241
3135
  greedy: !0,
3242
3136
  inside: {
@@ -3253,7 +3147,7 @@ $(me, "prolog", {
3253
3147
  // *em*
3254
3148
  // _em_
3255
3149
  // allow one nested instance of bold text using the same delimiter
3256
- pattern: Fe("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3150
+ pattern: Me("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3257
3151
  lookbehind: !0,
3258
3152
  greedy: !0,
3259
3153
  inside: {
@@ -3269,7 +3163,7 @@ $(me, "prolog", {
3269
3163
  // ~~strike through~~
3270
3164
  // ~strike~
3271
3165
  // eslint-disable-next-line regexp/strict
3272
- pattern: Fe("(~~?)(?:(?!~)<0>)+\\2"),
3166
+ pattern: Me("(~~?)(?:(?!~)<0>)+\\2"),
3273
3167
  lookbehind: !0,
3274
3168
  greedy: !0,
3275
3169
  inside: {
@@ -3293,7 +3187,7 @@ $(me, "prolog", {
3293
3187
  // [example](http://example.com "Optional title")
3294
3188
  // [example][id]
3295
3189
  // [example] [id]
3296
- pattern: Fe('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3190
+ pattern: Me('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3297
3191
  lookbehind: !0,
3298
3192
  greedy: !0,
3299
3193
  inside: {
@@ -3316,78 +3210,78 @@ $(me, "prolog", {
3316
3210
  pattern: /(^[ ]+)"(?:\\.|[^\\"])*"(?=\)$)/,
3317
3211
  lookbehind: !0
3318
3212
  },
3319
- "markup-bracket": me["markup-bracket"]
3213
+ "markup-bracket": be["markup-bracket"]
3320
3214
  }
3321
3215
  }
3322
3216
  });
3323
3217
  ["url", "bold", "italic", "strike"].forEach((e) => {
3324
3218
  ["url", "bold", "italic", "strike", "code-snippet", "markup-bracket"].forEach((t) => {
3325
- e != t && (me[e].inside.content.inside[t] = me[t]);
3219
+ e != t && (be[e].inside.content.inside[t] = be[t]);
3326
3220
  });
3327
3221
  });
3328
- const Va = (e, t, ...n) => {
3329
- var X;
3330
- let i, l, u = [], b, E = "", y, v = !1, m = !1, p = !0, c = [], f, g = 0;
3331
- const a = qa(), r = a.firstChild, d = r.children, o = d[0], s = o.firstChild, h = { language: "text", value: E }, R = new Set(n), A = {}, w = (x) => {
3332
- if (Object.assign(h, x), E = x.value ?? E, i = h.language, !_[i]) throw Error(`Language '${i}' has no grammar.`);
3333
- f = !!h.readOnly, a.style.tabSize = h.tabSize || 2, s.inputMode = f ? "none" : "", s.setAttribute("aria-readonly", f), T(), N(), (l != (l = _[i]) || E != s.value) && (Z(), s.value = E, s.selectionEnd = 0, S());
3334
- }, S = () => {
3335
- c = Ne(E = s.value, l), H("tokenize", c, i, E);
3336
- let x = Cn(c).split(`
3337
- `), I = 0, C = g, q = g = x.length;
3338
- for (; x[I] == u[I] && I < q; ) ++I;
3339
- for (; q && x[--q] == u[--C]; ) ;
3340
- if (I == q && I == C) d[I + 1].innerHTML = x[I] + `
3222
+ const Ma = (e, t, ...n) => {
3223
+ var Y;
3224
+ let s, l, u = [], f, E = "", y, v = !1, m = !1, p = !0, c = [], b, g = 0;
3225
+ const a = $a(), r = a.firstChild, d = r.children, o = d[0], i = o.firstChild, h = { language: "text", value: E }, S = new Set(n), I = {}, w = (A) => {
3226
+ if (Object.assign(h, A), E = A.value ?? E, s = h.language, !_[s]) throw Error(`Language '${s}' has no grammar.`);
3227
+ b = !!h.readOnly, a.style.tabSize = h.tabSize || 2, i.inputMode = b ? "none" : "", i.setAttribute("aria-readonly", b), T(), x(), (l != (l = _[s]) || E != i.value) && (V(), i.value = E, i.selectionEnd = 0, k());
3228
+ }, k = () => {
3229
+ c = Se(E = i.value, l), z("tokenize", c, s, E);
3230
+ let A = kn(c).split(`
3231
+ `), R = 0, L = g, Z = g = A.length;
3232
+ for (; A[R] == u[R] && R < Z; ) ++R;
3233
+ for (; Z && A[--Z] == u[--L]; ) ;
3234
+ if (R == Z && R == L) d[R + 1].innerHTML = A[R] + `
3341
3235
  `;
3342
3236
  else {
3343
- let Q = C < I ? C : I - 1, W = Q, we = "";
3344
- for (; W < q; ) we += `<div class=pce-line aria-hidden=true>${x[++W]}
3237
+ let X = L < R ? L : R - 1, K = X, _e = "";
3238
+ for (; K < Z; ) _e += `<div class=pce-line aria-hidden=true>${A[++K]}
3345
3239
  </div>`;
3346
- for (W = q < I ? q : I - 1; W < C; W++) d[I + 1].remove();
3347
- for (we && d[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < g; ) d[++W].setAttribute("data-line", W);
3240
+ for (K = Z < R ? Z : R - 1; K < L; K++) d[R + 1].remove();
3241
+ for (_e && d[X + 1].insertAdjacentHTML("afterend", _e), K = X + 1; K < g; ) d[++K].setAttribute("data-line", K);
3348
3242
  a.style.setProperty(
3349
3243
  "--number-width",
3350
3244
  Math.ceil(Math.log10(g + 1)) + ".001ch"
3351
3245
  );
3352
3246
  }
3353
- H("update", E), B(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = x, p = !1;
3354
- }, N = (x) => {
3355
- (x || R).forEach((I) => {
3356
- typeof I == "object" ? (I.update(D, h), x && R.add(I)) : (I(D, h), x || R.delete(I));
3247
+ z("update", E), U(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = A, p = !1;
3248
+ }, x = (A) => {
3249
+ (A || S).forEach((R) => {
3250
+ typeof R == "object" ? (R.update(D, h), A && S.add(R)) : (R(D, h), A || S.delete(R));
3357
3251
  });
3358
- }, T = ([x, I] = L()) => {
3359
- a.className = `prism-code-editor language-${i}${h.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${h.wordWrap ? "" : "no"}wrap${h.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${m ? " pce-focus" : ""}${f ? " pce-readonly" : ""}`;
3360
- }, L = () => [
3361
- s.selectionStart,
3362
- s.selectionEnd,
3363
- s.selectionDirection
3252
+ }, T = ([A, R] = N()) => {
3253
+ a.className = `prism-code-editor language-${s}${h.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${h.wordWrap ? "" : "no"}wrap${h.rtl ? " pce-rtl" : ""} pce-${A < R ? "has" : "no"}-selection${m ? " pce-focus" : ""}${b ? " pce-readonly" : ""}`;
3254
+ }, N = () => [
3255
+ i.selectionStart,
3256
+ i.selectionEnd,
3257
+ i.selectionDirection
3364
3258
  ], P = {
3365
3259
  Escape() {
3366
- s.blur();
3260
+ i.blur();
3367
3261
  }
3368
- }, M = {}, Z = () => Ve && !m && z(
3262
+ }, M = {}, V = () => Be && !m && G(
3369
3263
  D,
3370
3264
  "focus",
3371
- (x) => {
3372
- let I = x.relatedTarget;
3373
- I ? I.focus() : s.blur();
3265
+ (A) => {
3266
+ let R = A.relatedTarget;
3267
+ R ? R.focus() : i.blur();
3374
3268
  },
3375
3269
  { once: !0 }
3376
- ), H = (x, ...I) => {
3377
- var C, q;
3378
- (C = A[x]) == null || C.forEach((Q) => Q.apply(D, I)), (q = h["on" + x[0].toUpperCase() + x.slice(1)]) == null || q.apply(D, I);
3379
- }, B = (x) => {
3380
- if (x || p) {
3381
- const I = L(), C = d[y = ia(E, 0, I[I[2] < "f" ? 0 : 1])];
3382
- C != b && (b == null || b.classList.remove("active-line"), C.classList.add("active-line"), b = C), T(I), H("selectionChange", I, E);
3270
+ ), z = (A, ...R) => {
3271
+ var L, Z;
3272
+ (L = I[A]) == null || L.forEach((X) => X.apply(D, R)), (Z = h["on" + A[0].toUpperCase() + A.slice(1)]) == null || Z.apply(D, R);
3273
+ }, U = (A) => {
3274
+ if (A || p) {
3275
+ const R = N(), L = d[y = Jn(E, 0, R[R[2] < "f" ? 0 : 1])];
3276
+ L != f && (f == null || f.classList.remove("active-line"), L.classList.add("active-line"), f = L), T(R), z("selectionChange", R, E);
3383
3277
  }
3384
3278
  }, D = {
3385
3279
  scrollContainer: a,
3386
3280
  wrapper: r,
3387
3281
  overlays: o,
3388
- textarea: s,
3282
+ textarea: i,
3389
3283
  get activeLine() {
3390
- return b;
3284
+ return f;
3391
3285
  },
3392
3286
  get activeLineNumber() {
3393
3287
  return y;
@@ -3409,281 +3303,281 @@ const Va = (e, t, ...n) => {
3409
3303
  keyCommandMap: P,
3410
3304
  extensions: {},
3411
3305
  setOptions: w,
3412
- update: S,
3413
- getSelection: L,
3414
- setSelection(x, I = x, C) {
3415
- Z(), s.setSelectionRange(x, I, C), B(!0);
3306
+ update: k,
3307
+ getSelection: N,
3308
+ setSelection(A, R = A, L) {
3309
+ V(), i.setSelectionRange(A, R, L), U(!0);
3416
3310
  },
3417
- addExtensions(...x) {
3418
- N(x);
3311
+ addExtensions(...A) {
3312
+ x(A);
3419
3313
  },
3420
- addListener(x, I) {
3421
- (A[x] || (A[x] = /* @__PURE__ */ new Set())).add(I);
3314
+ addListener(A, R) {
3315
+ (I[A] || (I[A] = /* @__PURE__ */ new Set())).add(R);
3422
3316
  },
3423
- removeListener(x, I) {
3424
- var C;
3425
- (C = A[x]) == null || C.delete(I);
3317
+ removeListener(A, R) {
3318
+ var L;
3319
+ (L = I[A]) == null || L.delete(R);
3426
3320
  },
3427
3321
  remove() {
3428
3322
  a.remove(), v = !0;
3429
3323
  }
3430
3324
  };
3431
- return z(D, "keydown", (x) => {
3432
- var I;
3433
- (I = P[x.key]) != null && I.call(P, x, L(), E) && G(x);
3434
- }), z(D, "beforeinput", (x) => {
3435
- var I;
3436
- (f || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), E))) && G(x);
3437
- }), z(D, "input", S), z(D, "blur", () => {
3438
- Te = null, m = !1, T();
3439
- }), z(D, "focus", () => {
3440
- Te = B, m = !0, T();
3441
- }), z(D, "selectionchange", (x) => {
3442
- B(), G(x);
3443
- }), (X = Za(e)) == null || X.append(a), t && w(t), D;
3444
- }, Rn = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3445
- Rn.innerHTML = e;
3446
- const t = Rn.firstChild;
3325
+ return G(D, "keydown", (A) => {
3326
+ var R;
3327
+ (R = P[A.key]) != null && R.call(P, A, N(), E) && B(A);
3328
+ }), G(D, "beforeinput", (A) => {
3329
+ var R;
3330
+ (b || A.inputType == "insertText" && ((R = M[A.data]) != null && R.call(M, A, N(), E))) && B(A);
3331
+ }), G(D, "input", k), G(D, "blur", () => {
3332
+ Re = null, m = !1, T();
3333
+ }), G(D, "focus", () => {
3334
+ Re = U, m = !0, T();
3335
+ }), G(D, "selectionchange", (A) => {
3336
+ U(), B(A);
3337
+ }), (Y = Pa(e)) == null || Y.append(a), t && w(t), D;
3338
+ }, An = /* @__PURE__ */ document.createElement("div"), Je = (e) => {
3339
+ An.innerHTML = e;
3340
+ const t = An.firstChild;
3447
3341
  return () => t.cloneNode(!0);
3448
- }, z = (e, t, n, i) => e.textarea.addEventListener(t, n, i), Za = (e) => typeof e == "string" ? document.querySelector(e) : e, ra = navigator.userAgent, Ye = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Xe = /Chrome\//.test(ra), Ve = !Xe && /AppleWebKit\//.test(ra), ia = (e, t = 0, n = 1 / 0) => {
3449
- let i = 1;
3342
+ }, G = (e, t, n, s) => e.textarea.addEventListener(t, n, s), Pa = (e) => typeof e == "string" ? document.querySelector(e) : e, Qn = navigator.userAgent, qe = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Ke = /Chrome\//.test(Qn), Be = !Ke && /AppleWebKit\//.test(Qn), Jn = (e, t = 0, n = 1 / 0) => {
3343
+ let s = 1;
3450
3344
  for (; (t = e.indexOf(`
3451
- `, t) + 1) && t <= n; i++) ;
3452
- return i;
3453
- }, pt = {}, qa = /* @__PURE__ */ at(
3345
+ `, t) + 1) && t <= n; s++) ;
3346
+ return s;
3347
+ }, ct = {}, $a = /* @__PURE__ */ Je(
3454
3348
  "<div><div class=pce-wrapper><div class=pce-overlays><textarea spellcheck=false autocapitalize=off autocomplete=off>"
3455
- ), G = (e) => {
3349
+ ), B = (e) => {
3456
3350
  e.preventDefault(), e.stopImmediatePropagation();
3457
3351
  };
3458
- let Te;
3459
- document.addEventListener("selectionchange", () => Te == null ? void 0 : Te());
3460
- const Ka = (e, t, n = 0) => {
3461
- const i = e.scrollContainer.style, l = document.documentElement.style;
3462
- i.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = l.scrollPaddingBlock = "";
3463
- }, Qe = (e, t) => t ? e.lastIndexOf(`
3464
- `, t - 1) + 1 : 0, rt = (e, t) => (t = e.indexOf(`
3465
- `, t)) + 1 ? t : e.length, Wa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), ja = (e, t) => parseFloat(getComputedStyle(e)[t]);
3466
- let he;
3467
- const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Ot = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3468
- e.slice(t = Qe(e, t), n = rt(e, n)).split(`
3352
+ let Re;
3353
+ document.addEventListener("selectionchange", () => Re == null ? void 0 : Re());
3354
+ const Da = (e, t, n = 0) => {
3355
+ const s = e.scrollContainer.style, l = document.documentElement.style;
3356
+ s.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Ke && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), s.scrollPaddingBlock = l.scrollPaddingBlock = "";
3357
+ }, We = (e, t) => t ? e.lastIndexOf(`
3358
+ `, t - 1) + 1 : 0, et = (e, t) => (t = e.indexOf(`
3359
+ `, t)) + 1 ? t : e.length, Fa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), Ua = (e, t) => parseFloat(getComputedStyle(e)[t]);
3360
+ let fe;
3361
+ const we = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Rt = (e, t) => e.slice(We(e, t), t), ee = (e, t, n = t) => [
3362
+ e.slice(t = We(e, t), n = et(e, n)).split(`
3469
3363
  `),
3470
3364
  t,
3471
3365
  n
3472
- ], Je = (e, t, n = 0, i = n, l = e.getSelection()[0]) => {
3366
+ ], je = (e, t, n = 0, s = n, l = e.getSelection()[0]) => {
3473
3367
  var m;
3474
- const u = e.value, b = e.wrapper.children[ia(u, 0, l)], E = document.createTreeWalker(b, 5);
3475
- let y = E.lastChild(), v = rt(u, l) + 1 - l - y.length;
3476
- for (; -v <= i && (y = E.previousNode()); )
3368
+ const u = e.value, f = e.wrapper.children[Jn(u, 0, l)], E = document.createTreeWalker(f, 5);
3369
+ let y = E.lastChild(), v = et(u, l) + 1 - l - y.length;
3370
+ for (; -v <= s && (y = E.previousNode()); )
3477
3371
  if (!y.lastChild && (v -= y.length || 0, v <= n)) {
3478
- for (; y != b; y = y.parentNode)
3372
+ for (; y != f; y = y.parentNode)
3479
3373
  if ((m = y.matches) != null && m.call(y, t)) return y;
3480
3374
  }
3481
- }, ft = (e, t) => {
3375
+ }, dt = (e, t) => {
3482
3376
  var n;
3483
- return ((n = Je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3377
+ return ((n = je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3484
3378
  /language-(\S*)/
3485
3379
  )[1]) || e.options.language;
3486
- }, V = (e, t, n, i, l, u) => {
3380
+ }, H = (e, t, n, s, l, u) => {
3487
3381
  if (e.options.readOnly) return;
3488
- he = e.getSelection(), i ?? (i = n);
3489
- let b = e.textarea, E = e.value, y = Xe && !E[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3490
- e.focused || b.focus(), n != null && b.setSelectionRange(n, i), l != null && (v = Wa(e, "update", () => {
3491
- b.setSelectionRange(
3382
+ fe = e.getSelection(), s ?? (s = n);
3383
+ let f = e.textarea, E = e.value, y = Ke && !E[s ?? fe[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3384
+ e.focused || f.focus(), n != null && f.setSelectionRange(n, s), l != null && (v = Fa(e, "update", () => {
3385
+ f.setSelectionRange(
3492
3386
  l,
3493
3387
  u ?? l,
3494
- he[2]
3388
+ fe[2]
3495
3389
  ), v();
3496
- })), Ve || b.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (y && (b.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
3390
+ })), Be || f.dispatchEvent(new InputEvent("beforeinput", { data: t })), Ke || Be ? (y && (f.selectionEnd--, t = t.slice(0, -1)), Be && (t += `
3497
3391
  `), document.execCommand(
3498
3392
  t ? "insertHTML" : "delete",
3499
3393
  !1,
3500
3394
  t.replace(/&/g, "&amp;").replace(/</g, "&lt;")
3501
- ), y && b.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3502
- }, ke = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3503
- let Lt = !1;
3504
- const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ya = (e) => Lt = e, le = (e) => e.search(/\S|$/), Xa = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, i) => {
3395
+ ), y && f.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), fe = 0;
3396
+ }, Ie = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3397
+ let St = !1;
3398
+ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => St = e, se = (e) => e.search(/\S|$/), Ga = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, s) => {
3505
3399
  let l;
3506
- const { keyCommandMap: u, inputCommandMap: b, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3400
+ const { keyCommandMap: u, inputCommandMap: f, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = s) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3507
3401
  var a;
3508
- return !i.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3509
- }, p = ([a, r], [d, o], s, h) => (a < r || !h && t.test((s[r - 1] || " ") + d + (s[r] || " "))) && !V(n, d + s.slice(a, r) + o, null, null, a + 1, r + 1), c = ([a, r], d, o) => a == r && o[r] == d && !n.setSelection(a + 1), f = (a, r, d, o, s, h) => {
3510
- let R = r.join(`
3402
+ return !s.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3403
+ }, p = ([a, r], [d, o], i, h) => (a < r || !h && t.test((i[r - 1] || " ") + d + (i[r] || " "))) && !H(n, d + i.slice(a, r) + o, null, null, a + 1, r + 1), c = ([a, r], d, o) => a == r && o[r] == d && !n.setSelection(a + 1), b = (a, r, d, o, i, h) => {
3404
+ let S = r.join(`
3511
3405
  `);
3512
- if (R != a.join(`
3406
+ if (S != a.join(`
3513
3407
  `)) {
3514
- const A = a.length - 1, w = r[A], S = a[A], N = S.length - w.length, T = r[0].length - a[0].length, L = d + le((T < 0 ? r : a)[0]), P = o - S.length + le(N > 0 ? w : S), M = d - o + R.length + N, Z = L > s ? s : Math.max(L, s + T), H = h + d - o + R.length;
3515
- V(
3408
+ const I = a.length - 1, w = r[I], k = a[I], x = k.length - w.length, T = r[0].length - a[0].length, N = d + se((T < 0 ? r : a)[0]), P = o - k.length + se(x > 0 ? w : k), M = d - o + S.length + x, V = N > i ? i : Math.max(N, i + T), z = h + d - o + S.length;
3409
+ H(
3516
3410
  n,
3517
- R,
3411
+ S,
3518
3412
  d,
3519
3413
  o,
3520
- Z,
3521
- h < P ? H + N : Math.max(P + M, H)
3414
+ V,
3415
+ h < P ? z + x : Math.max(P + M, z)
3522
3416
  );
3523
3417
  }
3524
- }, g = (a, r, d, o, s, h, R, A) => {
3525
- f(
3418
+ }, g = (a, r, d, o, i, h, S, I) => {
3419
+ b(
3526
3420
  r,
3527
3421
  r.map(
3528
- a ? (w) => w.slice(le(w) ? A - le(w) % A : 0) : (w) => w && R.repeat(A - le(w) % A) + w
3422
+ a ? (w) => w.slice(se(w) ? I - se(w) % I : 0) : (w) => w && S.repeat(I - se(w) % I) + w
3529
3423
  ),
3530
3424
  d,
3531
3425
  o,
3532
- s,
3426
+ i,
3533
3427
  h
3534
3428
  );
3535
3429
  };
3536
- b["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3430
+ f["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3537
3431
  const d = a == r;
3538
- b[a] = (o, s, h) => (d && c(s, r, h) || p(s, a + r, h)) && m(), d || (b[r] = (o, s, h) => c(s, r, h) && m());
3539
- }), b[">"] = (a, r, d) => {
3540
- var s, h;
3541
- const o = (h = (s = pt[ft(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : h.call(s, r, d, n);
3542
- o && (V(n, ">" + o, null, null, r[0] + 1), G(a));
3432
+ f[a] = (o, i, h) => (d && c(i, r, h) || p(i, a + r, h)) && m(), d || (f[r] = (o, i, h) => c(i, r, h) && m());
3433
+ }), f[">"] = (a, r, d) => {
3434
+ var i, h;
3435
+ const o = (h = (i = ct[dt(n)]) == null ? void 0 : i.autoCloseTags) == null ? void 0 : h.call(i, r, d, n);
3436
+ o && (H(n, ">" + o, null, null, r[0] + 1), B(a));
3543
3437
  }, u.Tab = (a, [r, d], o) => {
3544
- if (Lt || i.readOnly || ke(a) & 6) return;
3545
- const [s, h] = v(i), R = a.shiftKey, [A, w, S] = te(o, r, d);
3546
- return r < d || R ? g(R, A, w, S, r, d, s, h) : V(n, s.repeat(h - (r - w) % h)), m();
3438
+ if (St || s.readOnly || Ie(a) & 6) return;
3439
+ const [i, h] = v(s), S = a.shiftKey, [I, w, k] = ee(o, r, d);
3440
+ return r < d || S ? g(S, I, w, k, r, d, i, h) : H(n, i.repeat(h - (r - w) % h)), m();
3547
3441
  }, u.Enter = (a, r, d) => {
3548
- var s, h, R;
3549
- const o = ke(a) & 7;
3550
- if (!o || o == ce) {
3551
- o && (r[0] = r[1] = te(d, r[1])[2]);
3552
- const [A, w] = v(), [S, N] = r, T = (s = pt[ft(n)]) == null ? void 0 : s.autoIndent, L = Math.floor(le(Ot(d, S)) / w) * w, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? w : 0, M = (R = T == null ? void 0 : T[1]) == null ? void 0 : R.call(T, r, d, n), Z = `
3553
- ` + A.repeat(L + P) + (M ? `
3554
- ` + A.repeat(L) : "");
3555
- if (Z[1] || d[N])
3556
- return V(n, Z, S, N, S + L + P + 1), m();
3442
+ var i, h, S;
3443
+ const o = Ie(a) & 7;
3444
+ if (!o || o == oe) {
3445
+ o && (r[0] = r[1] = ee(d, r[1])[2]);
3446
+ const [I, w] = v(), [k, x] = r, T = (i = ct[dt(n)]) == null ? void 0 : i.autoIndent, N = Math.floor(se(Rt(d, k)) / w) * w, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? w : 0, M = (S = T == null ? void 0 : T[1]) == null ? void 0 : S.call(T, r, d, n), V = `
3447
+ ` + I.repeat(N + P) + (M ? `
3448
+ ` + I.repeat(N) : "");
3449
+ if (V[1] || d[x])
3450
+ return H(n, V, k, x, k + N + P + 1), m();
3557
3451
  }
3558
3452
  }, u.Backspace = (a, [r, d], o) => {
3559
3453
  if (r == d) {
3560
- const s = Ot(o, r), h = i.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(s) ? 0 : (s.length - 1) % h + 1;
3561
- if (R || A > 1)
3562
- return V(n, "", r - (R ? 1 : A), r + R), m();
3454
+ const i = Rt(o, r), h = s.tabSize || 2, S = e.includes(o.slice(r - 1, r + 1)), I = /[^ ]/.test(i) ? 0 : (i.length - 1) % h + 1;
3455
+ if (S || I > 1)
3456
+ return H(n, "", r - (S ? 1 : I), r + S), m();
3563
3457
  }
3564
3458
  };
3565
3459
  for (let a = 0; a < 2; a++)
3566
- u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], s) => {
3567
- const h = ke(r);
3460
+ u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], i) => {
3461
+ const h = Ie(r);
3568
3462
  if (h == 1) {
3569
- const R = a ? d : Qe(s, d) - 1, A = a ? s.indexOf(`
3463
+ const S = a ? d : We(i, d) - 1, I = a ? i.indexOf(`
3570
3464
  `, o) + 1 : o;
3571
- if (R > -1 && A > 0) {
3572
- const [w, S, N] = te(s, R, A), T = w[a ? "pop" : "shift"](), L = (T.length + 1) * (a ? 1 : -1);
3573
- w[a ? "unshift" : "push"](T), V(n, w.join(`
3574
- `), S, N, d + L, o + L);
3465
+ if (S > -1 && I > 0) {
3466
+ const [w, k, x] = ee(i, S, I), T = w[a ? "pop" : "shift"](), N = (T.length + 1) * (a ? 1 : -1);
3467
+ w[a ? "unshift" : "push"](T), H(n, w.join(`
3468
+ `), k, x, d + N, o + N);
3575
3469
  }
3576
3470
  return m();
3577
3471
  } else if (h == 9) {
3578
- const [R, A, w] = te(s, d, o), S = R.join(`
3579
- `), N = a ? S.length + 1 : 0;
3580
- return V(n, S + `
3581
- ` + S, A, w, d + N, o + N), m();
3582
- } else if (h == 2 && !Ye)
3583
- return y.scrollBy(0, ja(y, "lineHeight") * (a ? 1 : -1)), !0;
3472
+ const [S, I, w] = ee(i, d, o), k = S.join(`
3473
+ `), x = a ? k.length + 1 : 0;
3474
+ return H(n, k + `
3475
+ ` + k, I, w, d + x, o + x), m();
3476
+ } else if (h == 2 && !qe)
3477
+ return y.scrollBy(0, Ua(y, "lineHeight") * (a ? 1 : -1)), !0;
3584
3478
  };
3585
- z(n, "keydown", (a) => {
3586
- var R;
3587
- const r = ke(a), d = a.keyCode, [o, s, h] = E();
3588
- if (r == ce && (d == 221 || d == 219))
3589
- g(d == 219, ...te(n.value, o, s), o, s, ...v()), m(), G(a);
3590
- else if (r == (Ye ? 10 : 2) && d == 77)
3591
- Ya(!Lt), G(a);
3592
- else if (d == 191 && r == ce || d == 65 && r == 9) {
3593
- const A = n.value, w = r == 9, S = w ? o : Qe(A, o), N = pt[ft(n, S)] || {}, { line: T, block: L } = ((R = N.getComments) == null ? void 0 : R.call(N, n, S, A)) || N.comments || {}, [P, M, Z] = te(A, o, s), H = P.length - 1;
3479
+ G(n, "keydown", (a) => {
3480
+ var S;
3481
+ const r = Ie(a), d = a.keyCode, [o, i, h] = E();
3482
+ if (r == oe && (d == 221 || d == 219))
3483
+ g(d == 219, ...ee(n.value, o, i), o, i, ...v()), m(), B(a);
3484
+ else if (r == (qe ? 10 : 2) && d == 77)
3485
+ Ba(!St), B(a);
3486
+ else if (d == 191 && r == oe || d == 65 && r == 9) {
3487
+ const I = n.value, w = r == 9, k = w ? o : We(I, o), x = ct[dt(n, k)] || {}, { line: T, block: N } = ((S = x.getComments) == null ? void 0 : S.call(x, n, k, I)) || x.comments || {}, [P, M, V] = ee(I, o, i), z = P.length - 1;
3594
3488
  if (w) {
3595
- if (L) {
3596
- const [B, D] = L, X = A.slice(o, s), x = A.slice(0, o).search(Re(B) + " ?$"), I = RegExp("^ ?" + Re(D)).test(A.slice(s));
3597
- x + 1 && I ? V(
3489
+ if (N) {
3490
+ const [U, D] = N, Y = I.slice(o, i), A = I.slice(0, o).search(we(U) + " ?$"), R = RegExp("^ ?" + we(D)).test(I.slice(i));
3491
+ A + 1 && R ? H(
3598
3492
  n,
3599
- X,
3600
- x,
3601
- s + +(A[s] == " ") + D.length,
3602
- x,
3603
- x + s - o
3604
- ) : V(
3493
+ Y,
3494
+ A,
3495
+ i + +(I[i] == " ") + D.length,
3496
+ A,
3497
+ A + i - o
3498
+ ) : H(
3605
3499
  n,
3606
- `${B} ${X} ${D}`,
3500
+ `${U} ${Y} ${D}`,
3607
3501
  o,
3608
- s,
3609
- o + B.length + 1,
3610
- s + B.length + 1
3611
- ), m(), G(a);
3502
+ i,
3503
+ o + U.length + 1,
3504
+ i + U.length + 1
3505
+ ), m(), B(a);
3612
3506
  }
3613
3507
  } else if (T) {
3614
- const B = Re(T), D = RegExp(`^\\s*(${B} ?|$)`), X = RegExp(B + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3615
- P.every((C) => D.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${T} `) : C
3508
+ const U = we(T), D = RegExp(`^\\s*(${U} ?|$)`), Y = RegExp(U + " ?"), A = !/\S/.test(I.slice(M, V)), R = P.map(
3509
+ P.every((L) => D.test(L)) && !A ? (L) => L.replace(Y, "") : (L) => A || /\S/.test(L) ? L.replace(/^\s*/, `$&${T} `) : L
3616
3510
  );
3617
- f(P, I, M, Z, o, s), m(), G(a);
3618
- } else if (L) {
3619
- const [B, D] = L, X = le(P[0]), x = P[0].startsWith(B, X) && P[H].endsWith(D), I = P.slice();
3620
- I[0] = P[0].replace(
3621
- x ? RegExp(Re(B) + " ?") : /(?=\S)|$/,
3622
- x ? "" : B + " "
3511
+ b(P, R, M, V, o, i), m(), B(a);
3512
+ } else if (N) {
3513
+ const [U, D] = N, Y = se(P[0]), A = P[0].startsWith(U, Y) && P[z].endsWith(D), R = P.slice();
3514
+ R[0] = P[0].replace(
3515
+ A ? RegExp(we(U) + " ?") : /(?=\S)|$/,
3516
+ A ? "" : U + " "
3623
3517
  );
3624
- let C = I[0].length - P[0].length;
3625
- I[H] = x ? I[H].replace(RegExp(`( ?${Re(D)})?$`), "") : I[H] + " " + D;
3626
- let q = I.join(`
3627
- `), Q = X + M, W = Q > o ? o : Math.max(o + C, Q), we = Q > s - (o != s) ? s : Math.min(Math.max(Q, s + C), M + q.length);
3628
- V(n, q, M, Z, W, Math.max(W, we)), m(), G(a);
3518
+ let L = R[0].length - P[0].length;
3519
+ R[z] = A ? R[z].replace(RegExp(`( ?${we(D)})?$`), "") : R[z] + " " + D;
3520
+ let Z = R.join(`
3521
+ `), X = Y + M, K = X > o ? o : Math.max(o + L, X), _e = X > i - (o != i) ? i : Math.min(Math.max(X, i + L), M + Z.length);
3522
+ H(n, Z, M, V, K, Math.max(K, _e)), m(), B(a);
3629
3523
  }
3630
- } else if (r == 8 + ce && d == 75) {
3631
- const A = n.value, [w, S, N] = te(A, o, s), T = h > "f" ? s - N + w.pop().length : o - S, L = rt(A, N + 1) - N - 1;
3632
- V(
3524
+ } else if (r == 8 + oe && d == 75) {
3525
+ const I = n.value, [w, k, x] = ee(I, o, i), T = h > "f" ? i - x + w.pop().length : o - k, N = et(I, x + 1) - x - 1;
3526
+ H(
3633
3527
  n,
3634
3528
  "",
3635
- S - !!S,
3636
- N + !S,
3637
- S + Math.min(T, L)
3638
- ), m(), G(a);
3529
+ k - !!k,
3530
+ x + !k,
3531
+ k + Math.min(T, N)
3532
+ ), m(), B(a);
3639
3533
  }
3640
3534
  }), ["copy", "cut", "paste"].forEach(
3641
- (a) => z(n, a, (r) => {
3535
+ (a) => G(n, a, (r) => {
3642
3536
  const [d, o] = E();
3643
- if (d == o && Sn) {
3644
- const [[s], h, R] = te(n.value, d, o);
3645
- a == "paste" ? r.clipboardData.getData("text/plain") == l && (V(n, l + `
3646
- `, h, h, d + l.length + 1), m(), G(r)) : (Sn.writeText(l = s), a == "cut" && (V(n, "", h, R + 1), m()), G(r));
3537
+ if (d == o && In) {
3538
+ const [[i], h, S] = ee(n.value, d, o);
3539
+ a == "paste" ? r.clipboardData.getData("text/plain") == l && (H(n, l + `
3540
+ `, h, h, d + l.length + 1), m(), B(r)) : (In.writeText(l = i), a == "cut" && (H(n, "", h, S + 1), m()), B(r));
3647
3541
  }
3648
3542
  })
3649
3543
  );
3650
- }, Qa = (e = 999) => {
3651
- let t = 0, n, i, l = !1, u, b, E, y, v, m;
3544
+ }, za = (e = 999) => {
3545
+ let t = 0, n, s, l = !1, u, f, E, y, v, m;
3652
3546
  const p = [], c = (a) => {
3653
3547
  a >= e && (a--, p.shift()), p.splice(t = a, e, [n.value, m(), m()]);
3654
- }, f = (a) => {
3548
+ }, b = (a) => {
3655
3549
  var r;
3656
- p[a] && (v.value = p[a][0], v.setSelectionRange(...p[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, i = !1);
3550
+ p[a] && (v.value = p[a][0], v.setSelectionRange(...p[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, s = !1);
3657
3551
  }, g = (a, r) => {
3658
3552
  a.extensions.history = g, n = a, m = a.getSelection, v || c(0), v = a.textarea, a.addListener("selectionChange", () => {
3659
- i = l, l = !1;
3660
- }), z(a, "beforeinput", (d) => {
3661
- let o = d.data, s = d.inputType, h = d.timeStamp;
3662
- /history/.test(s) ? (f(t + (s[7] == "U" ? -1 : 1)), G(d)) : (y = i && (u == s || h - E < 99 && s.slice(-4) == "Drop") && !he && (o != " " || b == o)) || (p[t][2] = he || m()), l = !0, b = o, E = h, u = s;
3663
- }), z(a, "input", () => c(t + !y)), z(a, "keydown", (d) => {
3553
+ s = l, l = !1;
3554
+ }), G(a, "beforeinput", (d) => {
3555
+ let o = d.data, i = d.inputType, h = d.timeStamp;
3556
+ /history/.test(i) ? (b(t + (i[7] == "U" ? -1 : 1)), B(d)) : (y = s && (u == i || h - E < 99 && i.slice(-4) == "Drop") && !fe && (o != " " || f == o)) || (p[t][2] = fe || m()), l = !0, f = o, E = h, u = i;
3557
+ }), G(a, "input", () => c(t + !y)), G(a, "keydown", (d) => {
3664
3558
  if (!r.readOnly) {
3665
- const o = ke(d), s = d.keyCode, h = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3666
- h ? (f(t - 1), G(d)) : R && (f(t + 1), G(d));
3559
+ const o = Ie(d), i = d.keyCode, h = o == oe && i == 90, S = o == oe + 8 && i == 90 || !qe && o == oe && i == 89;
3560
+ h ? (b(t - 1), B(d)) : S && (b(t + 1), B(d));
3667
3561
  }
3668
3562
  });
3669
3563
  };
3670
3564
  return g.clear = () => {
3671
- c(0), i = !1;
3672
- }, g.has = (a) => t + a in p, g.go = (a) => f(t + a), g;
3673
- }, Ja = at(
3565
+ c(0), s = !1;
3566
+ }, g.has = (a) => t + a in p, g.go = (a) => b(t + a), g;
3567
+ }, Ha = Je(
3674
3568
  "<div style=position:absolute;top:0;opacity:0;padding:inherit> <span><span></span> "
3675
- ), er = () => {
3569
+ ), Va = () => {
3676
3570
  let e, t = " ", n = " ";
3677
- const i = Ja(), [l, u] = i.childNodes, [b, E] = u.childNodes, y = (p) => {
3678
- let { value: c, activeLine: f } = e, g = p[p[2] < "f" ? 0 : 1], a = Ot(c, g), r = c.slice(g, rt(c, g));
3679
- !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), i.parentNode != f && f.prepend(i);
3680
- }, v = () => Ka(e, b), m = (p) => {
3681
- p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, z(p, "input", (c) => {
3571
+ const s = Ha(), [l, u] = s.childNodes, [f, E] = u.childNodes, y = (p) => {
3572
+ let { value: c, activeLine: b } = e, g = p[p[2] < "f" ? 0 : 1], a = Rt(c, g), r = c.slice(g, et(c, g));
3573
+ !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), s.parentNode != b && b.prepend(s);
3574
+ }, v = () => Da(e, f), m = (p) => {
3575
+ p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, G(p, "input", (c) => {
3682
3576
  /history/.test(c.inputType) && v();
3683
3577
  }), p.activeLine && y(p.getSelection());
3684
3578
  };
3685
3579
  return m.getPosition = () => {
3686
- const p = b.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3580
+ const p = f.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3687
3581
  return {
3688
3582
  top: p.y - c.y,
3689
3583
  bottom: c.bottom - p.bottom,
@@ -3691,143 +3585,143 @@ const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ya = (e) => Lt = e, le = (e) =>
3691
3585
  right: c.right - p.x,
3692
3586
  height: p.height
3693
3587
  };
3694
- }, m.scrollIntoView = v, m.element = b, m;
3695
- }, tr = at(
3588
+ }, m.scrollIntoView = v, m.element = f, m;
3589
+ }, Za = Je(
3696
3590
  "<div class=guide-indents style=left:var(--padding-left);bottom:auto;right:auto> "
3697
- ), nr = at(
3591
+ ), qa = Je(
3698
3592
  "<div style=width:1px;position:absolute;background:var(--bg-guide-indent)>"
3699
- ), ar = () => {
3700
- let e, t = 0, n, i = -1, l;
3701
- const u = [], b = [], E = tr(), y = [], v = (f) => {
3593
+ ), Ka = () => {
3594
+ let e, t = 0, n, s = -1, l;
3595
+ const u = [], f = [], E = Za(), y = [], v = (b) => {
3702
3596
  n = [];
3703
- const g = p(f.split(`
3597
+ const g = p(b.split(`
3704
3598
  `)), a = g.length;
3705
3599
  for (let r = 0, d = [], o = g[0]; o; r++) {
3706
- const s = (u[r] || (u[r] = nr())).style, [h, R, A] = o, w = b[r];
3707
- o = g[r + 1], h != (w == null ? void 0 : w[0]) && (s.top = h + "00%"), R != (w == null ? void 0 : w[1]) && (s.height = R + "00%"), A != (w == null ? void 0 : w[2]) && (s.left = A * 100 + "%");
3708
- const S = d[0] != h && (o == null ? void 0 : o[0]) != h, N = d[0] + d[1] != h + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + R;
3709
- for (let T = -S, L = R + N; T < L; T++)
3600
+ const i = (u[r] || (u[r] = qa())).style, [h, S, I] = o, w = f[r];
3601
+ o = g[r + 1], h != (w == null ? void 0 : w[0]) && (i.top = h + "00%"), S != (w == null ? void 0 : w[1]) && (i.height = S + "00%"), I != (w == null ? void 0 : w[2]) && (i.left = I * 100 + "%");
3602
+ const k = d[0] != h && (o == null ? void 0 : o[0]) != h, x = d[0] + d[1] != h + S && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + S;
3603
+ for (let T = -k, N = S + x; T < N; T++)
3710
3604
  n[T + h] = r;
3711
- d = b[r] = g[r];
3605
+ d = f[r] = g[r];
3712
3606
  }
3713
3607
  for (let r = t; r > a; ) u[--r].remove();
3714
3608
  E.append(...u.slice(t, t = a));
3715
3609
  }, m = () => {
3716
- const f = n[l.activeLineNumber - 1] ?? -1;
3717
- f != i && (i > -1 && (u[i].className = ""), f > -1 && (u[f].className = "active")), i = f;
3718
- }, p = (f) => {
3719
- const g = f.length, a = [], r = [];
3720
- for (let d = 0, o = -1, s = 0, h = 0; ; s++) {
3721
- const R = s == g, A = R ? 0 : y[s] = c(f[s]);
3722
- if (A < 0)
3723
- o < 0 && (o = s);
3610
+ const b = n[l.activeLineNumber - 1] ?? -1;
3611
+ b != s && (s > -1 && (u[s].className = ""), b > -1 && (u[b].className = "active")), s = b;
3612
+ }, p = (b) => {
3613
+ const g = b.length, a = [], r = [];
3614
+ for (let d = 0, o = -1, i = 0, h = 0; ; i++) {
3615
+ const S = i == g, I = S ? 0 : y[i] = c(b[i]);
3616
+ if (I < 0)
3617
+ o < 0 && (o = i);
3724
3618
  else {
3725
- for (let w = A; w < d; w++)
3726
- a[w][1] = (o < 0 || w == A && !R ? s : o) - a[w][0];
3727
- for (let w = d; w < A; )
3619
+ for (let w = I; w < d; w++)
3620
+ a[w][1] = (o < 0 || w == I && !S ? i : o) - a[w][0];
3621
+ for (let w = d; w < I; )
3728
3622
  r[h++] = a[w] = [
3729
- o < 0 || w > d ? s : o,
3623
+ o < 0 || w > d ? i : o,
3730
3624
  0,
3731
3625
  w++ * e
3732
3626
  ];
3733
- o = -1, d = A;
3627
+ o = -1, d = I;
3734
3628
  }
3735
- if (R) break;
3629
+ if (S) break;
3736
3630
  }
3737
3631
  return y.length = g, r;
3738
- }, c = (f) => {
3739
- let g = f.search(/\S/), a = 0;
3632
+ }, c = (b) => {
3633
+ let g = b.search(/\S/), a = 0;
3740
3634
  if (g < 0) return g;
3741
3635
  for (let r = 0; r < g; )
3742
- a += f[r++] == " " ? e - a % e : 1;
3636
+ a += b[r++] == " " ? e - a % e : 1;
3743
3637
  return Math.ceil(a / e);
3744
3638
  };
3745
3639
  return {
3746
3640
  lines: E.children,
3747
3641
  indentLevels: y,
3748
- update(f, g) {
3749
- l || (l = f, f.extensions.indentGuides = this, f.overlays.append(E), f.addListener("update", v), f.addListener("selectionChange", m)), E.style.display = g.wordWrap ? "none" : "", e != (e = g.tabSize || 2) && (v(f.value), m());
3642
+ update(b, g) {
3643
+ l || (l = b, b.extensions.indentGuides = this, b.overlays.append(E), b.addListener("update", v), b.addListener("selectionChange", m)), E.style.display = g.wordWrap ? "none" : "", e != (e = g.tabSize || 2) && (v(b.value), m());
3750
3644
  }
3751
3645
  };
3752
- }, rr = () => (e) => {
3753
- let t, n, i, l = -1, u = [], b = () => {
3646
+ }, Wa = () => (e) => {
3647
+ let t, n, s, l = -1, u = [], f = () => {
3754
3648
  n || (n = e.extensions.matchBrackets);
3755
3649
  let [v, m] = e.getSelection(), p = v == m && e.focused && n && E(m) || -1;
3756
3650
  if (p != l) {
3757
3651
  if (y(), p + 1) {
3758
- let c = t[i[p]], f = t[p];
3759
- u = [c, f].map(
3760
- (g) => Je(e, ".punctuation", 0, -1, g[1])
3761
- ), u[0] != u[1] && c[1] + c[3].length == f[1] && (u[0].textContent += u[1].textContent, u[1].textContent = "", u[1] = u[0]), y(!0);
3652
+ let c = t[s[p]], b = t[p];
3653
+ u = [c, b].map(
3654
+ (g) => je(e, ".punctuation", 0, -1, g[1])
3655
+ ), u[0] != u[1] && c[1] + c[3].length == b[1] && (u[0].textContent += u[1].textContent, u[1].textContent = "", u[1] = u[0]), y(!0);
3762
3656
  } else u = [];
3763
3657
  l = p;
3764
3658
  }
3765
3659
  }, E = (v) => {
3766
3660
  var m;
3767
- ({ brackets: t, pairs: i } = n);
3661
+ ({ brackets: t, pairs: s } = n);
3768
3662
  for (let p = 0, c; c = t[++p]; )
3769
- if (!c[4] && c[5] >= v && ((m = t[i[p]]) == null ? void 0 : m[1]) <= v)
3663
+ if (!c[4] && c[5] >= v && ((m = t[s[p]]) == null ? void 0 : m[1]) <= v)
3770
3664
  return p;
3771
3665
  }, y = (v) => u.forEach((m) => m.classList.toggle("active-bracket", !!v));
3772
- z(e, "focus", b), z(e, "blur", b), e.addListener("selectionChange", b), e.addListener("update", () => {
3666
+ G(e, "focus", f), G(e, "blur", f), e.addListener("selectionChange", f), e.addListener("update", () => {
3773
3667
  y(), l = -1;
3774
3668
  });
3775
- }, ir = (e = !0, t = "([{", n = ")]}") => {
3776
- let i, l;
3777
- const u = [], b = (p) => {
3778
- p.extensions.matchBrackets = b, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3779
- }, E = b.brackets = [], y = b.pairs = [], v = (p) => {
3780
- if (y.length = E.length = l = i = 0, m(p, 0), e)
3781
- for (let c = 0, f; f = E[c]; ) {
3782
- let g = f[0].alias;
3783
- f[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + f[2] % 12 : "error"}`;
3669
+ }, ja = (e = !0, t = "([{", n = ")]}") => {
3670
+ let s, l;
3671
+ const u = [], f = (p) => {
3672
+ p.extensions.matchBrackets = f, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3673
+ }, E = f.brackets = [], y = f.pairs = [], v = (p) => {
3674
+ if (y.length = E.length = l = s = 0, m(p, 0), e)
3675
+ for (let c = 0, b; b = E[c]; ) {
3676
+ let g = b[0].alias;
3677
+ b[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + b[2] % 12 : "error"}`;
3784
3678
  }
3785
3679
  }, m = (p, c) => {
3786
- let f, g = 0;
3787
- for (; f = p[g++]; ) {
3788
- let a = f.length;
3789
- if (typeof f != "string") {
3790
- let r = f.content;
3680
+ let b, g = 0;
3681
+ for (; b = p[g++]; ) {
3682
+ let a = b.length;
3683
+ if (typeof b != "string") {
3684
+ let r = b.content;
3791
3685
  if (Array.isArray(r))
3792
3686
  m(r, c);
3793
- else if ((f.alias || f.type) == "punctuation") {
3794
- let d = kn(r, t, a - 1), o = d || kn(r, n, a - 1);
3687
+ else if ((b.alias || b.type) == "punctuation") {
3688
+ let d = Rn(r, t, a - 1), o = d || Rn(r, n, a - 1);
3795
3689
  if (o) {
3796
- if (E[i] = [f, c, 0, r, !!d, c + a], d) u[l++] = [i, d];
3690
+ if (E[s] = [b, c, 0, r, !!d, c + a], d) u[l++] = [s, d];
3797
3691
  else
3798
- for (let s = l; s; ) {
3799
- let [h, R] = u[--s];
3800
- o == R && (y[y[i] = h] = i, E[i][2] = E[h][2] = l = s, s = 0);
3692
+ for (let i = l; i; ) {
3693
+ let [h, S] = u[--i];
3694
+ o == S && (y[y[s] = h] = s, E[s][2] = E[h][2] = l = i, i = 0);
3801
3695
  }
3802
- i++;
3696
+ s++;
3803
3697
  }
3804
3698
  }
3805
3699
  }
3806
3700
  c += a;
3807
3701
  }
3808
3702
  };
3809
- return b;
3810
- }, kn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, sr = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), or = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, lr = (e) => {
3811
- let t = [], n, i = [], l, u, b = [], E = (v, m, p) => {
3812
- n = p, i.length = t.length = l = u = 0, y(v, m, 0);
3703
+ return f;
3704
+ }, Rn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, Ya = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), Xa = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, Qa = (e) => {
3705
+ let t = [], n, s = [], l, u, f = [], E = (v, m, p) => {
3706
+ n = p, s.length = t.length = l = u = 0, y(v, m, 0);
3813
3707
  }, y = (v, m, p) => {
3814
- let c = sr.includes(m), f = 0, g = v.length;
3815
- for (; f < g; ) {
3816
- const a = v[f++], r = a.content, d = a.length;
3708
+ let c = Ya.includes(m), b = 0, g = v.length;
3709
+ for (; b < g; ) {
3710
+ const a = v[b++], r = a.content, d = a.length;
3817
3711
  if (Array.isArray(r))
3818
3712
  if (a.type == "tag" && n[p] == "<") {
3819
- const o = r[0].length, s = r[2] ? n.substr(p + o, r[1].length) : "", h = r[r.length - 1].length < 2 && (c || !or.test(s));
3713
+ const o = r[0].length, i = r[2] ? n.substr(p + o, r[1].length) : "", h = r[r.length - 1].length < 2 && (c || !Xa.test(i));
3820
3714
  if (r[2] && c && y(r, m, p), h)
3821
3715
  if (o > 1)
3822
- for (let R = u; R; )
3823
- s == b[--R][1] && (t[t[l] = b[u = R][0]] = l, R = 0);
3716
+ for (let S = u; S; )
3717
+ i == f[--S][1] && (t[t[l] = f[u = S][0]] = l, S = 0);
3824
3718
  else
3825
- b[u++] = [l, s];
3826
- i[l++] = [
3719
+ f[u++] = [l, i];
3720
+ s[l++] = [
3827
3721
  a,
3828
3722
  p,
3829
3723
  p + d,
3830
- s,
3724
+ i,
3831
3725
  o > 1,
3832
3726
  h
3833
3727
  ];
@@ -3843,25 +3737,25 @@ const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ya = (e) => Lt = e, le = (e) =>
3843
3737
  }
3844
3738
  };
3845
3739
  return e.addListener("tokenize", E), E(e.tokens, e.options.language, e.value), {
3846
- tags: i,
3740
+ tags: s,
3847
3741
  pairs: t
3848
3742
  };
3849
- }, cr = (e, t) => {
3850
- for (let n = 0, i = t.length; n < i; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3851
- }, dr = () => (e) => {
3743
+ }, Ja = (e, t) => {
3744
+ for (let n = 0, s = t.length; n < s; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3745
+ }, er = () => (e) => {
3852
3746
  var t;
3853
- let n, i;
3854
- const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = lr(e)), b = (E) => [n, i].forEach((y) => {
3747
+ let n, s;
3748
+ const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = Qa(e)), f = (E) => [n, s].forEach((y) => {
3855
3749
  y && y.classList.toggle("active-tagname", !E);
3856
3750
  });
3857
3751
  e.addListener("selectionChange", ([E, y]) => {
3858
3752
  let v, m, p;
3859
- E == y && e.focused && (p = cr(E, l), p + 1 && (p = u[p], p + 1 && (v = Je(e, ".tag>.tag")) && (m = Je(e, ".tag>.tag", 2, 0, l[p][1])))), n != v && (b(!0), n = v, i = m, b());
3753
+ E == y && e.focused && (p = Ja(E, l), p + 1 && (p = u[p], p + 1 && (v = je(e, ".tag>.tag")) && (m = je(e, ".tag>.tag", 2, 0, l[p][1])))), n != v && (f(!0), n = v, s = m, f());
3860
3754
  });
3861
- }, ur = "_wrap_1x3wi_1", pr = "_blockInfoEditable_1x3wi_30", Tn = {
3862
- wrap: ur,
3863
- blockInfoEditable: pr
3864
- }, Ue = [
3755
+ }, tr = "_wrap_1x3wi_1", nr = "_blockInfoEditable_1x3wi_30", Sn = {
3756
+ wrap: tr,
3757
+ blockInfoEditable: nr
3758
+ }, Pe = [
3865
3759
  { value: "plaintext", label: "plaintext" },
3866
3760
  { value: "javascript", label: "JavaScript" },
3867
3761
  { value: "typescript", label: "TypeScript" },
@@ -3878,12 +3772,12 @@ const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ya = (e) => Lt = e, le = (e) =>
3878
3772
  { value: "markdown", label: "Markdown" },
3879
3773
  { value: "bash", label: "Bash" },
3880
3774
  { value: "php", label: "PHP" }
3881
- ], bt = [2, 4, 8];
3882
- function fr(e) {
3883
- const t = fa(), n = zt(null), i = it(() => ma(sa.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = zt(null), u = e.node.attrs.code || e.node.textContent || "", b = it((c) => {
3775
+ ], ut = [2, 4, 8];
3776
+ function ar(e) {
3777
+ const t = oa(), n = $t(null), s = nt(() => ca(ea.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = $t(null), u = e.node.attrs.code || e.node.textContent || "", f = nt((c) => {
3884
3778
  c == null || c.stopPropagation(), setTimeout(() => {
3885
- var f, g, a;
3886
- (a = (g = (f = l.current) == null ? void 0 : f.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3779
+ var b, g, a;
3780
+ (a = (g = (b = l.current) == null ? void 0 : b.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3887
3781
  }, 0);
3888
3782
  }, []), E = async () => {
3889
3783
  if (u)
@@ -3897,28 +3791,28 @@ function fr(e) {
3897
3791
  } catch (c) {
3898
3792
  console.error("Error:", c);
3899
3793
  } finally {
3900
- b();
3794
+ f();
3901
3795
  }
3902
3796
  }, y = () => {
3903
3797
  e.updateAttributes({
3904
3798
  lineNumbers: !e.node.attrs.lineNumbers
3905
- }), b();
3799
+ }), f();
3906
3800
  }, v = () => {
3907
3801
  e.updateAttributes({
3908
3802
  wordWrap: !e.node.attrs.wordWrap
3909
- }), b();
3803
+ }), f();
3910
3804
  }, m = (c) => {
3911
- const f = { ...c };
3912
- return f.language && !Ue.some((g) => g.value === f.language) && (f.language = "plaintext", e.updateAttributes({
3805
+ const b = { ...c };
3806
+ return b.language && !Pe.some((g) => g.value === b.language) && (b.language = "plaintext", e.updateAttributes({
3913
3807
  language: "plaintext"
3914
- })), f;
3915
- }, p = it((c) => {
3916
- b(c);
3917
- }, [b]);
3918
- return Ht(() => {
3808
+ })), b;
3809
+ }, p = nt((c) => {
3810
+ f(c);
3811
+ }, [f]);
3812
+ return Dt(() => {
3919
3813
  if (n.current) {
3920
3814
  const c = m(e.node.attrs);
3921
- l.current = Va(n.current, {
3815
+ l.current = Ma(n.current, {
3922
3816
  readOnly: !t,
3923
3817
  language: c.language || "plaintext",
3924
3818
  tabSize: c.tabSize ?? 2,
@@ -3926,63 +3820,63 @@ function fr(e) {
3926
3820
  wordWrap: c.wordWrap ?? !1,
3927
3821
  value: u,
3928
3822
  rtl: !1,
3929
- onUpdate(f) {
3823
+ onUpdate(b) {
3930
3824
  queueMicrotask(() => {
3931
- e.updateAttributes({ code: f });
3825
+ e.updateAttributes({ code: b });
3932
3826
  });
3933
3827
  }
3934
3828
  }), l.current.addExtensions(
3935
- ir(),
3936
- dr(),
3937
- ar(),
3938
- rr(),
3829
+ ja(),
3939
3830
  er(),
3940
- Xa(),
3941
- Qa()
3831
+ Ka(),
3832
+ Wa(),
3833
+ Va(),
3834
+ Ga(),
3835
+ za()
3942
3836
  ), e.node.attrs.shouldFocus && setTimeout(() => {
3943
- b(), e.updateAttributes({
3837
+ f(), e.updateAttributes({
3944
3838
  shouldFocus: !1
3945
3839
  });
3946
3840
  }, 0);
3947
3841
  }
3948
3842
  return () => {
3949
- var c, f;
3950
- (c = l.current) != null && c.remove && ((f = l.current) == null || f.remove());
3843
+ var c, b;
3844
+ (c = l.current) != null && c.remove && ((b = l.current) == null || b.remove());
3951
3845
  };
3952
- }, [n]), Ht(() => {
3953
- var c, f;
3846
+ }, [n]), Dt(() => {
3847
+ var c, b;
3954
3848
  if ((c = l.current) != null && c.setOptions) {
3955
3849
  const g = m(e.node.attrs);
3956
- (f = l.current) == null || f.setOptions(g);
3850
+ (b = l.current) == null || b.setOptions(g);
3957
3851
  }
3958
- }, [l, e.node.attrs]), /* @__PURE__ */ k(oa, { className: Le(Tn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3852
+ }, [l, e.node.attrs]), /* @__PURE__ */ C(ta, { className: Te(Sn.wrap, "render-wrapper"), children: /* @__PURE__ */ C(
3959
3853
  "div",
3960
3854
  {
3961
3855
  onClick: p,
3962
3856
  ref: n,
3963
- className: Le("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3964
- [Tn.blockInfoEditable]: !t
3857
+ className: Te("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3858
+ [Sn.blockInfoEditable]: !t
3965
3859
  }),
3966
- children: /* @__PURE__ */ _e("div", { className: "richtext-code-block-toolbar", children: [
3967
- /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
3968
- Vt,
3860
+ children: /* @__PURE__ */ tt("div", { className: "richtext-code-block-toolbar", children: [
3861
+ /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3862
+ Ft,
3969
3863
  {
3970
3864
  defaultValue: e.node.attrs.language,
3971
3865
  disabled: !t,
3972
3866
  onValueChange: (c) => {
3973
3867
  e.updateAttributes({
3974
3868
  language: c
3975
- }), b();
3869
+ }), f();
3976
3870
  },
3977
3871
  children: [
3978
- /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(Ea, { placeholder: "Select language" }) }),
3979
- /* @__PURE__ */ k(
3980
- mt,
3872
+ /* @__PURE__ */ C(Ut, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ C(la, { placeholder: "Select language" }) }),
3873
+ /* @__PURE__ */ C(
3874
+ Bt,
3981
3875
  {
3982
3876
  onCloseAutoFocus: (c) => c.preventDefault(),
3983
- children: Ue == null ? void 0 : Ue.map(
3984
- (c) => /* @__PURE__ */ k(
3985
- ht,
3877
+ children: Pe == null ? void 0 : Pe.map(
3878
+ (c) => /* @__PURE__ */ C(
3879
+ Gt,
3986
3880
  {
3987
3881
  value: c.value,
3988
3882
  children: c.label
@@ -3995,14 +3889,14 @@ function fr(e) {
3995
3889
  ]
3996
3890
  }
3997
3891
  ) }),
3998
- /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
3999
- /* @__PURE__ */ k(
3892
+ /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3893
+ /* @__PURE__ */ C(
4000
3894
  "div",
4001
3895
  {
4002
3896
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
4003
3897
  onClick: E,
4004
- children: /* @__PURE__ */ k(
4005
- xe,
3898
+ children: /* @__PURE__ */ C(
3899
+ Ee,
4006
3900
  {
4007
3901
  className: "richtext-size-4",
4008
3902
  name: "Copy"
@@ -4010,16 +3904,16 @@ function fr(e) {
4010
3904
  )
4011
3905
  }
4012
3906
  ),
4013
- /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4014
- /* @__PURE__ */ k(
3907
+ /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3908
+ /* @__PURE__ */ C(
4015
3909
  "div",
4016
3910
  {
4017
3911
  onClick: y,
4018
- className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3912
+ className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4019
3913
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.lineNumbers
4020
3914
  }),
4021
- children: /* @__PURE__ */ k(
4022
- xe,
3915
+ children: /* @__PURE__ */ C(
3916
+ Ee,
4023
3917
  {
4024
3918
  className: "richtext-size-4",
4025
3919
  name: "List"
@@ -4027,16 +3921,16 @@ function fr(e) {
4027
3921
  )
4028
3922
  }
4029
3923
  ),
4030
- /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4031
- /* @__PURE__ */ k(
3924
+ /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3925
+ /* @__PURE__ */ C(
4032
3926
  "div",
4033
3927
  {
4034
3928
  onClick: v,
4035
- className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3929
+ className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4036
3930
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.wordWrap
4037
3931
  }),
4038
- children: /* @__PURE__ */ k(
4039
- xe,
3932
+ children: /* @__PURE__ */ C(
3933
+ Ee,
4040
3934
  {
4041
3935
  className: "richtext-size-4",
4042
3936
  name: "WrapText"
@@ -4044,31 +3938,31 @@ function fr(e) {
4044
3938
  )
4045
3939
  }
4046
3940
  ),
4047
- /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4048
- /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
4049
- Vt,
3941
+ /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3942
+ /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3943
+ Ft,
4050
3944
  {
4051
3945
  defaultValue: e.node.attrs.tabSize,
4052
3946
  disabled: !t,
4053
3947
  onValueChange: (c) => {
4054
3948
  e.updateAttributes({
4055
3949
  tabSize: c
4056
- }), b();
3950
+ }), f();
4057
3951
  },
4058
3952
  children: [
4059
- /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(
4060
- xe,
3953
+ /* @__PURE__ */ C(Ut, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ C(
3954
+ Ee,
4061
3955
  {
4062
3956
  className: "richtext-size-4",
4063
3957
  name: "IndentIncrease"
4064
3958
  }
4065
3959
  ) }),
4066
- /* @__PURE__ */ k(
4067
- mt,
3960
+ /* @__PURE__ */ C(
3961
+ Bt,
4068
3962
  {
4069
3963
  onCloseAutoFocus: (c) => c.preventDefault(),
4070
- children: bt == null ? void 0 : bt.map((c) => /* @__PURE__ */ k(
4071
- ht,
3964
+ children: ut == null ? void 0 : ut.map((c) => /* @__PURE__ */ C(
3965
+ Gt,
4072
3966
  {
4073
3967
  value: c,
4074
3968
  children: c
@@ -4080,14 +3974,14 @@ function fr(e) {
4080
3974
  ]
4081
3975
  }
4082
3976
  ) }),
4083
- /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4084
- /* @__PURE__ */ k(
3977
+ /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3978
+ /* @__PURE__ */ C(
4085
3979
  "div",
4086
3980
  {
4087
3981
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
4088
- onClick: i,
4089
- children: /* @__PURE__ */ k(
4090
- xe,
3982
+ onClick: s,
3983
+ children: /* @__PURE__ */ C(
3984
+ Ee,
4091
3985
  {
4092
3986
  className: "richtext-size-4",
4093
3987
  name: "Trash2"
@@ -4099,7 +3993,7 @@ function fr(e) {
4099
3993
  }
4100
3994
  ) });
4101
3995
  }
4102
- const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ la.create({
3996
+ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ na.create({
4103
3997
  name: "codeBlock",
4104
3998
  group: "block",
4105
3999
  atom: !0,
@@ -4164,16 +4058,16 @@ const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ l
4164
4058
  ];
4165
4059
  },
4166
4060
  renderHTML({ HTMLAttributes: e, node: t }) {
4167
- var i;
4168
- const n = t.attrs.code || ((i = t.content.firstChild) == null ? void 0 : i.text) || "";
4061
+ var s;
4062
+ const n = t.attrs.code || ((s = t.content.firstChild) == null ? void 0 : s.text) || "";
4169
4063
  return [
4170
4064
  "pre",
4171
- da(this.options.HTMLAttributes, e),
4065
+ ra(this.options.HTMLAttributes, e),
4172
4066
  ["code", {}, n]
4173
4067
  ];
4174
4068
  },
4175
4069
  addNodeView() {
4176
- return ca(fr);
4070
+ return aa(ar);
4177
4071
  },
4178
4072
  addCommands() {
4179
4073
  return {
@@ -4193,15 +4087,15 @@ const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ l
4193
4087
  },
4194
4088
  addInputRules() {
4195
4089
  return [
4196
- Gt({
4197
- find: br,
4090
+ Pt({
4091
+ find: rr,
4198
4092
  type: this.type,
4199
4093
  getAttributes: (e) => ({
4200
4094
  language: e[1]
4201
4095
  })
4202
4096
  }),
4203
- Gt({
4204
- find: gr,
4097
+ Pt({
4098
+ find: ir,
4205
4099
  type: this.type,
4206
4100
  getAttributes: (e) => ({
4207
4101
  language: e[1]
@@ -4211,8 +4105,8 @@ const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ l
4211
4105
  }
4212
4106
  });
4213
4107
  export {
4214
- sa as CodeBlock,
4215
- Ar as RichTextCodeBlock,
4216
- br as backtickInputRegex,
4217
- gr as tildeInputRegex
4108
+ ea as CodeBlock,
4109
+ gr as RichTextCodeBlock,
4110
+ rr as backtickInputRegex,
4111
+ ir as tildeInputRegex
4218
4112
  };