ep-lib-ts 1.0.37 → 1.0.39

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 (276) hide show
  1. package/dist/BgAudio-BDO4Ln5y.js +4 -0
  2. package/dist/DisplayBox-Diko7_uH.js +4 -0
  3. package/dist/{Ep360Image-BZpa7qLl.js → Ep360Image-Dmwx7NrY.js} +1 -1
  4. package/dist/{Ep360Video-Wy_YWl7-.js → Ep360Video-b_stvC2Z.js} +1 -1
  5. package/dist/EpAlert-iWXSHupC.js +4 -0
  6. package/dist/EpAudio-Bnb1MIw6.js +4 -0
  7. package/dist/EpBadge-BcVkBKJK.js +4 -0
  8. package/dist/EpBarChart-D42B3a97.js +4 -0
  9. package/dist/{EpBranchingScenario-5sbzBXZ0.js → EpBranchingScenario-dEapAg2r.js} +1 -1
  10. package/dist/EpBtn-BtyunWne.js +4 -0
  11. package/dist/EpCard--mtof8hL.js +4 -0
  12. package/dist/{EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js → EpCheckbox-D-AiG1k1.js} +7 -7
  13. package/dist/EpChip-DitreF_J.js +4 -0
  14. package/dist/EpCodeblock-nBOawE0H.js +4 -0
  15. package/dist/EpConclusion-CcOvoC8e.js +4 -0
  16. package/dist/EpContentSlider-DpIiJmPt.js +4 -0
  17. package/dist/{EpDarkmode-CuVlLi72.js → EpDarkmode-DV-fRn1K.js} +1 -1
  18. package/dist/EpDescription-DeVW7LNL.js +4 -0
  19. package/dist/EpDivider-vEs9W9Km.js +4 -0
  20. package/dist/EpEdu-BC4BxjYR.js +4 -0
  21. package/dist/EpFlex-xdVOYg4a.js +4 -0
  22. package/dist/EpFunnelChart-CF1CM2id.js +4 -0
  23. package/dist/EpHeader-BMoXpQdW.js +4 -0
  24. package/dist/{EpHover-Kp8XbqYO.js → EpHover-CwOc7bvn.js} +1 -1
  25. package/dist/{EpHover.vue_vue_type_script_setup_true_lang-BxiamS7-.js → EpHover.vue_vue_type_script_setup_true_lang-DDLIDTha.js} +1 -1
  26. package/dist/{EpHoverCard-DRRYl4MK.js → EpHoverCard-BTWsiA2z.js} +2 -2
  27. package/dist/EpIcon-Cektqqle.js +4 -0
  28. package/dist/EpIframe-CFLSXU7z.js +4 -0
  29. package/dist/EpImg-Ct-KfkRp.js +4 -0
  30. package/dist/{EpInput-BKc_tU1_.js → EpInput-c9THhDCs.js} +1 -1
  31. package/dist/EpInstructions-BCFWkov8.js +4 -0
  32. package/dist/EpIntroduction-Cx1Tc920.js +4 -0
  33. package/dist/EpLineChart-BffNNoNj.js +4 -0
  34. package/dist/EpLink-Bx_E9Gjz.js +4 -0
  35. package/dist/EpLinkVersion-6CTPFhT5.js +4 -0
  36. package/dist/{EpList-B2x9zHps.js → EpList-CM3b-mLc.js} +1 -1
  37. package/dist/EpModal-DLG_mddB.js +4 -0
  38. package/dist/{EpNothing-D3fg3Krb.js → EpNothing-DVY_GKL6.js} +1 -1
  39. package/dist/EpObjective-DIWMrap_.js +4 -0
  40. package/dist/EpPieChart-CTDL07vZ.js +4 -0
  41. package/dist/EpQuestion-RzrZk_Op.js +4 -0
  42. package/dist/EpQuote-SaMcAmmL.js +4 -0
  43. package/dist/EpRadio-w5IkZmj5.js +4 -0
  44. package/dist/EpRadioSummative-BeZecHlR.js +4 -0
  45. package/dist/EpReading-CVgr9TGN.js +4 -0
  46. package/dist/EpResource-BEql6U6K.js +4 -0
  47. package/dist/EpScope-BAuTDV_B.js +4 -0
  48. package/dist/EpSection-CESMVDna.js +4 -0
  49. package/dist/EpSectionCols-CacYX-v3.js +4 -0
  50. package/dist/EpSkeleton-CuvqT7PL.js +4 -0
  51. package/dist/EpSoftware-LK_nIUJY.js +4 -0
  52. package/dist/EpSpecificObjective-BTavyAY9.js +4 -0
  53. package/dist/EpSpinner-CZo0f9Nx.js +4 -0
  54. package/dist/EpStackedList-DWkLmrqI.js +75 -0
  55. package/dist/EpSummativeTable-Dlhhgq1A.js +4 -0
  56. package/dist/EpSvg-CG-uua_J.js +4 -0
  57. package/dist/EpTable-DsXZI8Hm.js +4 -0
  58. package/dist/EpTerm-DGTKAJqq.js +4 -0
  59. package/dist/EpText-kB0vb1Da.js +4 -0
  60. package/dist/EpTimeLine-DK_bzCen.js +4 -0
  61. package/dist/EpVideo-CPN6M6cs.js +4 -0
  62. package/dist/EpVideoPanopto-UZckfqS1.js +4 -0
  63. package/dist/EpWordDef-dSnuxRtl.js +4 -0
  64. package/dist/components/basics/EpAvatar.vue.d.ts +35 -4
  65. package/dist/components/basics/EpBadge.vue.d.ts +28 -3
  66. package/dist/components/basics/EpBtn.vue.d.ts +38 -13
  67. package/dist/components/basics/EpCard.vue.d.ts +46 -14
  68. package/dist/components/basics/EpChip.vue.d.ts +38 -12
  69. package/dist/components/basics/EpDivider.vue.d.ts +33 -3
  70. package/dist/components/basics/EpFlex.vue.d.ts +2 -8
  71. package/dist/components/basics/EpHover.vue.d.ts +32 -10
  72. package/dist/components/basics/EpHoverCard.vue.d.ts +50 -14
  73. package/dist/components/basics/EpIcon.vue.d.ts +26 -3
  74. package/dist/components/basics/EpImg.vue.d.ts +38 -2
  75. package/dist/components/basics/EpList.vue.d.ts +11 -0
  76. package/dist/components/basics/EpListitem.vue.d.ts +45 -0
  77. package/dist/components/basics/EpSection.vue.d.ts +31 -10
  78. package/dist/components/basics/EpSectionCols.vue.d.ts +39 -11
  79. package/dist/components/basics/EpSpinner.vue.d.ts +29 -2
  80. package/dist/components/basics/EpStackedList.vue.d.ts +40 -2
  81. package/dist/components/basics/EpTable.vue.d.ts +18 -1
  82. package/dist/components/basics/EpText.vue.d.ts +33 -2
  83. package/dist/components/charts/EpBarChart.vue.d.ts +28 -2
  84. package/dist/components/charts/EpFunnelChart.vue.d.ts +35 -3
  85. package/dist/components/charts/EpLineChart.vue.d.ts +28 -2
  86. package/dist/components/charts/EpPieChart.vue.d.ts +31 -3
  87. package/dist/components/educationals/EpBranchingScenario.vue.d.ts +25 -2
  88. package/dist/components/educationals/EpCodeblock.vue.d.ts +33 -3
  89. package/dist/components/educationals/EpConclusion.vue.d.ts +25 -10
  90. package/dist/components/educationals/EpDescription.vue.d.ts +25 -10
  91. package/dist/components/educationals/EpEdu.vue.d.ts +37 -13
  92. package/dist/components/educationals/EpInstructions.vue.d.ts +23 -2
  93. package/dist/components/educationals/EpIntroduction.vue.d.ts +25 -10
  94. package/dist/components/educationals/EpObjective.vue.d.ts +25 -10
  95. package/dist/components/educationals/EpReading.vue.d.ts +49 -3
  96. package/dist/components/educationals/EpResource.vue.d.ts +24 -2
  97. package/dist/components/educationals/EpScope.vue.d.ts +19 -1
  98. package/dist/components/educationals/EpSpecificObjective.vue.d.ts +25 -2
  99. package/dist/components/forms/EpCheckbox.vue.d.ts +36 -5
  100. package/dist/components/forms/EpInput.vue.d.ts +44 -7
  101. package/dist/components/forms/EpRadio.vue.d.ts +39 -5
  102. package/dist/components/forms/EpRadioSummative.vue.d.ts +39 -5
  103. package/dist/components/forms/EpSelect.vue.d.ts +13 -12
  104. package/dist/components/forms/EpSwitch.vue.d.ts +58 -0
  105. package/dist/components/forms/EpTextarea.vue.d.ts +50 -7
  106. package/dist/components/forms/EpToggle.vue.d.ts +48 -7
  107. package/dist/components/interactions/Ep360Image.vue.d.ts +16 -0
  108. package/dist/components/interactions/Ep360Video.vue.d.ts +16 -0
  109. package/dist/components/interactions/EpAccordeon.vue.d.ts +34 -16
  110. package/dist/components/interactions/EpContentSlider.vue.d.ts +28 -2
  111. package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -3
  112. package/dist/components/interactions/EpHotsPot.vue.d.ts +47 -0
  113. package/dist/components/interactions/EpModal.vue.d.ts +39 -14
  114. package/dist/components/interactions/EpQuestion.vue.d.ts +38 -2
  115. package/dist/components/interactions/EpSummativeTable.vue.d.ts +24 -2
  116. package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
  117. package/dist/components/interactions/EpTooltip.vue.d.ts +51 -0
  118. package/dist/components/medias/EpAudio.vue.d.ts +30 -4
  119. package/dist/components/medias/EpCarousel.vue.d.ts +32 -2
  120. package/dist/components/medias/EpIframe.vue.d.ts +28 -2
  121. package/dist/components/medias/EpKatex.vue.d.ts +24 -4
  122. package/dist/components/medias/EpLink.vue.d.ts +26 -2
  123. package/dist/components/medias/EpLinkVersion.vue.d.ts +29 -2
  124. package/dist/components/medias/EpLottieSvg.vue.d.ts +38 -144
  125. package/dist/components/medias/EpSoftware.vue.d.ts +36 -2
  126. package/dist/components/medias/EpSvg.vue.d.ts +24 -2
  127. package/dist/components/medias/EpTerm.vue.d.ts +41 -10
  128. package/dist/components/medias/EpTimeLine.vue.d.ts +19 -1
  129. package/dist/components/medias/EpVideo.vue.d.ts +28 -4
  130. package/dist/components/medias/EpVideoPanopto.vue.d.ts +28 -2
  131. package/dist/components/medias/EpWordDef.vue.d.ts +33 -2
  132. package/dist/components/signages/EpAlert.vue.d.ts +31 -12
  133. package/dist/components/signages/EpBadge.vue.d.ts +59 -0
  134. package/dist/components/signages/EpHeader.vue.d.ts +62 -19
  135. package/dist/components/signages/EpNothing.vue.d.ts +1 -1
  136. package/dist/components/signages/EpQuote.vue.d.ts +31 -10
  137. package/dist/components/signages/EpSkeleton.vue.d.ts +32 -3
  138. package/dist/components/tools/BgAudio.vue.d.ts +26 -4
  139. package/dist/components/tools/DisplayBox.vue.d.ts +9 -19
  140. package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
  141. package/dist/components/tools/TimelineItem.vue.d.ts +28 -4
  142. package/dist/ep-lib-ts.js +1 -1
  143. package/dist/ep-lib-ts.umd.cjs +276 -275
  144. package/dist/{index-1vY3QtSb.js → index-Bw4yzGuc.js} +4060 -3874
  145. package/dist/{index-BkHXngnv.js → index-CPs4nmaJ.js} +5284 -5372
  146. package/dist/index.d.ts +1 -0
  147. package/dist/main.d.ts +1 -0
  148. package/dist/prism-DM8vlN3d.js +1182 -0
  149. package/dist/three.module-laS36oD-.js +48903 -0
  150. package/dist/types/Answer.d.ts +1 -0
  151. package/dist/types/Component.d.ts +10 -0
  152. package/dist/types/StackedList.d.ts +2 -28
  153. package/package.json +29 -30
  154. package/src/components/basics/EpStackedList.vue +20 -11
  155. package/src/components/educationals/EpCodeblock.vue +1 -1
  156. package/dist/App.vue.d.ts +0 -2
  157. package/dist/BgAudio-DezFnyKB.js +0 -4
  158. package/dist/DisplayBox-DYzeHzkr.js +0 -4
  159. package/dist/EpAlert-DdtU5nno.js +0 -4
  160. package/dist/EpAudio-vt4JUOf2.js +0 -4
  161. package/dist/EpBadge-BSMtvAqC.js +0 -4
  162. package/dist/EpBarChart-BA3EqJ-Z.js +0 -4
  163. package/dist/EpBtn-B1xGgn2Y.js +0 -4
  164. package/dist/EpCard-CEjoqwN4.js +0 -4
  165. package/dist/EpCheckbox-Da_2WoCs.js +0 -4
  166. package/dist/EpChip-d8r-FDqu.js +0 -4
  167. package/dist/EpCodeblock-Cu1MOvmi.js +0 -4
  168. package/dist/EpConclusion-Dk_FFixG.js +0 -4
  169. package/dist/EpContentSlider-dx8Hu4OS.js +0 -4
  170. package/dist/EpDescription-B00PjQg0.js +0 -4
  171. package/dist/EpDivider-CukqZw1a.js +0 -4
  172. package/dist/EpEdu-B5N7RG49.js +0 -4
  173. package/dist/EpFlex-DAtWa--7.js +0 -4
  174. package/dist/EpFunnelChart-jn5C9tAB.js +0 -4
  175. package/dist/EpHeader-Cwx5Qb6Q.js +0 -4
  176. package/dist/EpIcon-DitBbcuQ.js +0 -4
  177. package/dist/EpIframe-C5c1K8RE.js +0 -4
  178. package/dist/EpImg-YPH6mMcR.js +0 -4
  179. package/dist/EpInstructions-D8kw_rwC.js +0 -4
  180. package/dist/EpIntroduction-B2d2vChC.js +0 -4
  181. package/dist/EpLineChart-BjlCf9dW.js +0 -4
  182. package/dist/EpLink-CXIYlycG.js +0 -4
  183. package/dist/EpLinkVersion-Dn_Tid-r.js +0 -4
  184. package/dist/EpModal-CaPOVdQK.js +0 -4
  185. package/dist/EpObjective-czDKm1c4.js +0 -4
  186. package/dist/EpPieChart-DuW7EBmx.js +0 -4
  187. package/dist/EpQuestion-BuIkR2Ae.js +0 -4
  188. package/dist/EpQuote-5FQFWcfv.js +0 -4
  189. package/dist/EpRadio-BnPZeKpP.js +0 -4
  190. package/dist/EpRadioSummative-AtVwjeQ-.js +0 -4
  191. package/dist/EpReading-s2TQVAZ_.js +0 -4
  192. package/dist/EpResource-Cxx1lwrs.js +0 -4
  193. package/dist/EpScope-CG9n9QnC.js +0 -4
  194. package/dist/EpSection-cDQVtX9A.js +0 -4
  195. package/dist/EpSectionCols-DsH_iEem.js +0 -4
  196. package/dist/EpSkeleton-BQG8jrs6.js +0 -4
  197. package/dist/EpSoftware-DR1d7ezZ.js +0 -4
  198. package/dist/EpSpecificObjective-BS1QMNrt.js +0 -4
  199. package/dist/EpSpinner-O3kZ_dUO.js +0 -4
  200. package/dist/EpStackedList-CTU_KKMZ.js +0 -81
  201. package/dist/EpSummativeTable-iudwhrUL.js +0 -4
  202. package/dist/EpSvg-Bnj4H9sA.js +0 -4
  203. package/dist/EpTable-Byza5VY-.js +0 -4
  204. package/dist/EpTerm-BkpUPK_G.js +0 -4
  205. package/dist/EpText-J0qcEorF.js +0 -4
  206. package/dist/EpTimeLine-Czscwhgg.js +0 -4
  207. package/dist/EpVideo-0w267ZqV.js +0 -4
  208. package/dist/EpVideoPanopto-CDy_LUMi.js +0 -4
  209. package/dist/EpWordDef-qWt87mhg.js +0 -4
  210. package/dist/menu.vue.d.ts +0 -2
  211. package/dist/pages/Basics.vue.d.ts +0 -2
  212. package/dist/pages/CurrentDev.vue.d.ts +0 -2
  213. package/dist/pages/Educationals.vue.d.ts +0 -2
  214. package/dist/pages/Forms.vue.d.ts +0 -2
  215. package/dist/pages/Home.vue.d.ts +0 -2
  216. package/dist/pages/Interactions.vue.d.ts +0 -2
  217. package/dist/pages/Medias.vue.d.ts +0 -2
  218. package/dist/pages/NicDev.vue.d.ts +0 -2
  219. package/dist/pages/Signages.vue.d.ts +0 -2
  220. package/dist/pages/basics/EpBadgeView.vue.d.ts +0 -2
  221. package/dist/pages/basics/EpBtnView.vue.d.ts +0 -2
  222. package/dist/pages/basics/EpCardView.vue.d.ts +0 -2
  223. package/dist/pages/basics/EpChipView.vue.d.ts +0 -2
  224. package/dist/pages/basics/EpFlexView.vue.d.ts +0 -2
  225. package/dist/pages/basics/EpHoverCardView.vue.d.ts +0 -2
  226. package/dist/pages/basics/EpIconView.vue.d.ts +0 -2
  227. package/dist/pages/basics/EpImgView.vue.d.ts +0 -2
  228. package/dist/pages/basics/EpSectionColsView.vue.d.ts +0 -2
  229. package/dist/pages/basics/EpSectionView.vue.d.ts +0 -2
  230. package/dist/pages/basics/EpStackedListView.vue.d.ts +0 -2
  231. package/dist/pages/basics/EpTableView.vue.d.ts +0 -2
  232. package/dist/pages/basics/EpTextView.vue.d.ts +0 -2
  233. package/dist/pages/charts/EpBarChartView.vue.d.ts +0 -2
  234. package/dist/pages/charts/EpFunnelChartView.vue.d.ts +0 -2
  235. package/dist/pages/charts/EpLineChartView.vue.d.ts +0 -2
  236. package/dist/pages/charts/EpPieChartView.vue.d.ts +0 -2
  237. package/dist/pages/educationals/EpBranchingScenarioView.vue.d.ts +0 -2
  238. package/dist/pages/educationals/EpCodeBlockView.vue.d.ts +0 -2
  239. package/dist/pages/educationals/EpConclusionView.vue.d.ts +0 -2
  240. package/dist/pages/educationals/EpDescriptionView.vue.d.ts +0 -2
  241. package/dist/pages/educationals/EpEduView.vue.d.ts +0 -2
  242. package/dist/pages/educationals/EpInstructionsView.vue.d.ts +0 -2
  243. package/dist/pages/educationals/EpIntroductionView.vue.d.ts +0 -2
  244. package/dist/pages/educationals/EpObjectiveView.vue.d.ts +0 -2
  245. package/dist/pages/educationals/EpReadingView.vue.d.ts +0 -2
  246. package/dist/pages/educationals/EpResourceView.vue.d.ts +0 -2
  247. package/dist/pages/educationals/EpScopeView.vue.d.ts +0 -2
  248. package/dist/pages/educationals/EpSpecificObjectiveView.vue.d.ts +0 -2
  249. package/dist/pages/interactions/Ep360ImageView.vue.d.ts +0 -2
  250. package/dist/pages/interactions/Ep360VideoView.vue.d.ts +0 -2
  251. package/dist/pages/interactions/EpAccordeonView.vue.d.ts +0 -2
  252. package/dist/pages/interactions/EpContentSliderView.vue.d.ts +0 -2
  253. package/dist/pages/interactions/EpModalView.vue.d.ts +0 -2
  254. package/dist/pages/interactions/EpQuestionView.vue.d.ts +0 -2
  255. package/dist/pages/interactions/EpSummativeTableView.vue.d.ts +0 -2
  256. package/dist/pages/medias/EpAudioView.vue.d.ts +0 -2
  257. package/dist/pages/medias/EpCarouselView.vue.d.ts +0 -2
  258. package/dist/pages/medias/EpIframeView.vue.d.ts +0 -2
  259. package/dist/pages/medias/EpKatexView.vue.d.ts +0 -2
  260. package/dist/pages/medias/EpLinkVersionView.vue.d.ts +0 -2
  261. package/dist/pages/medias/EpLinkView.vue.d.ts +0 -2
  262. package/dist/pages/medias/EpLottieSvgView.vue.d.ts +0 -2
  263. package/dist/pages/medias/EpSoftwareView.vue.d.ts +0 -2
  264. package/dist/pages/medias/EpSvgView.vue.d.ts +0 -2
  265. package/dist/pages/medias/EpTermView.vue.d.ts +0 -2
  266. package/dist/pages/medias/EpTimeLineView.vue.d.ts +0 -2
  267. package/dist/pages/medias/EpVideoPanoptoView.vue.d.ts +0 -2
  268. package/dist/pages/medias/EpVideoView.vue.d.ts +0 -2
  269. package/dist/pages/medias/EpWordDefView.vue.d.ts +0 -2
  270. package/dist/pages/signages/EpAlertView.vue.d.ts +0 -2
  271. package/dist/pages/signages/EpHeaderView.vue.d.ts +0 -2
  272. package/dist/pages/signages/EpQuoteView.vue.d.ts +0 -2
  273. package/dist/pages/signages/EpSkeletonView.vue.d.ts +0 -2
  274. package/dist/prism-CvcYxWXz.js +0 -1184
  275. package/dist/three.core-ChKHLxK7.js +0 -48675
  276. /package/dist/{ep-lib-ts.css → style.css} +0 -0
@@ -0,0 +1,1182 @@
1
+ import { a4 as V, a5 as W } from "./index-CPs4nmaJ.js";
2
+ function ee(S, P) {
3
+ for (var i = 0; i < P.length; i++) {
4
+ const g = P[i];
5
+ if (typeof g != "string" && !Array.isArray(g)) {
6
+ for (const d in g)
7
+ if (d !== "default" && !(d in S)) {
8
+ const v = Object.getOwnPropertyDescriptor(g, d);
9
+ v && Object.defineProperty(S, d, v.get ? v : {
10
+ enumerable: !0,
11
+ get: () => g[d]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ var X = { exports: {} };
19
+ (function(S) {
20
+ var P = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
21
+ /**
22
+ * Prism: Lightweight, robust, elegant syntax highlighting
23
+ *
24
+ * @license MIT <https://opensource.org/licenses/MIT>
25
+ * @author Lea Verou <https://lea.verou.me>
26
+ * @namespace
27
+ * @public
28
+ */
29
+ var i = function(g) {
30
+ var d = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, v = 0, x = {}, s = {
31
+ /**
32
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
33
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
34
+ * additional languages or plugins yourself.
35
+ *
36
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
37
+ *
38
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
39
+ * empty Prism object into the global scope before loading the Prism script like this:
40
+ *
41
+ * ```js
42
+ * window.Prism = window.Prism || {};
43
+ * Prism.manual = true;
44
+ * // add a new <script> to load Prism's script
45
+ * ```
46
+ *
47
+ * @default false
48
+ * @type {boolean}
49
+ * @memberof Prism
50
+ * @public
51
+ */
52
+ manual: g.Prism && g.Prism.manual,
53
+ /**
54
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
55
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
56
+ * own worker, you don't want it to do this.
57
+ *
58
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
59
+ *
60
+ * You obviously have to change this value before Prism executes. To do this, you can add an
61
+ * empty Prism object into the global scope before loading the Prism script like this:
62
+ *
63
+ * ```js
64
+ * window.Prism = window.Prism || {};
65
+ * Prism.disableWorkerMessageHandler = true;
66
+ * // Load Prism's script
67
+ * ```
68
+ *
69
+ * @default false
70
+ * @type {boolean}
71
+ * @memberof Prism
72
+ * @public
73
+ */
74
+ disableWorkerMessageHandler: g.Prism && g.Prism.disableWorkerMessageHandler,
75
+ /**
76
+ * A namespace for utility methods.
77
+ *
78
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
79
+ * change or disappear at any time.
80
+ *
81
+ * @namespace
82
+ * @memberof Prism
83
+ */
84
+ util: {
85
+ encode: function a(e) {
86
+ return e instanceof b ? new b(e.type, a(e.content), e.alias) : Array.isArray(e) ? e.map(a) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
87
+ },
88
+ /**
89
+ * Returns the name of the type of the given value.
90
+ *
91
+ * @param {any} o
92
+ * @returns {string}
93
+ * @example
94
+ * type(null) === 'Null'
95
+ * type(undefined) === 'Undefined'
96
+ * type(123) === 'Number'
97
+ * type('foo') === 'String'
98
+ * type(true) === 'Boolean'
99
+ * type([1, 2]) === 'Array'
100
+ * type({}) === 'Object'
101
+ * type(String) === 'Function'
102
+ * type(/abc+/) === 'RegExp'
103
+ */
104
+ type: function(a) {
105
+ return Object.prototype.toString.call(a).slice(8, -1);
106
+ },
107
+ /**
108
+ * Returns a unique number for the given object. Later calls will still return the same number.
109
+ *
110
+ * @param {Object} obj
111
+ * @returns {number}
112
+ */
113
+ objId: function(a) {
114
+ return a.__id || Object.defineProperty(a, "__id", { value: ++v }), a.__id;
115
+ },
116
+ /**
117
+ * Creates a deep clone of the given object.
118
+ *
119
+ * The main intended use of this function is to clone language definitions.
120
+ *
121
+ * @param {T} o
122
+ * @param {Record<number, any>} [visited]
123
+ * @returns {T}
124
+ * @template T
125
+ */
126
+ clone: function a(e, t) {
127
+ t = t || {};
128
+ var n, r;
129
+ switch (s.util.type(e)) {
130
+ case "Object":
131
+ if (r = s.util.objId(e), t[r])
132
+ return t[r];
133
+ n = /** @type {Record<string, any>} */
134
+ {}, t[r] = n;
135
+ for (var l in e)
136
+ e.hasOwnProperty(l) && (n[l] = a(e[l], t));
137
+ return (
138
+ /** @type {any} */
139
+ n
140
+ );
141
+ case "Array":
142
+ return r = s.util.objId(e), t[r] ? t[r] : (n = [], t[r] = n, /** @type {Array} */
143
+ /** @type {any} */
144
+ e.forEach(function(o, u) {
145
+ n[u] = a(o, t);
146
+ }), /** @type {any} */
147
+ n);
148
+ default:
149
+ return e;
150
+ }
151
+ },
152
+ /**
153
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
154
+ *
155
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
156
+ *
157
+ * @param {Element} element
158
+ * @returns {string}
159
+ */
160
+ getLanguage: function(a) {
161
+ for (; a; ) {
162
+ var e = d.exec(a.className);
163
+ if (e)
164
+ return e[1].toLowerCase();
165
+ a = a.parentElement;
166
+ }
167
+ return "none";
168
+ },
169
+ /**
170
+ * Sets the Prism `language-xxxx` class of the given element.
171
+ *
172
+ * @param {Element} element
173
+ * @param {string} language
174
+ * @returns {void}
175
+ */
176
+ setLanguage: function(a, e) {
177
+ a.className = a.className.replace(RegExp(d, "gi"), ""), a.classList.add("language-" + e);
178
+ },
179
+ /**
180
+ * Returns the script element that is currently executing.
181
+ *
182
+ * This does __not__ work for line script element.
183
+ *
184
+ * @returns {HTMLScriptElement | null}
185
+ */
186
+ currentScript: function() {
187
+ if (typeof document > "u")
188
+ return null;
189
+ if ("currentScript" in document)
190
+ return (
191
+ /** @type {any} */
192
+ document.currentScript
193
+ );
194
+ try {
195
+ throw new Error();
196
+ } catch (n) {
197
+ var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack) || [])[1];
198
+ if (a) {
199
+ var e = document.getElementsByTagName("script");
200
+ for (var t in e)
201
+ if (e[t].src == a)
202
+ return e[t];
203
+ }
204
+ return null;
205
+ }
206
+ },
207
+ /**
208
+ * Returns whether a given class is active for `element`.
209
+ *
210
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
211
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
212
+ * given class is just the given class with a `no-` prefix.
213
+ *
214
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
215
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
216
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
217
+ *
218
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
219
+ * version of it, the class is considered active.
220
+ *
221
+ * @param {Element} element
222
+ * @param {string} className
223
+ * @param {boolean} [defaultActivation=false]
224
+ * @returns {boolean}
225
+ */
226
+ isActive: function(a, e, t) {
227
+ for (var n = "no-" + e; a; ) {
228
+ var r = a.classList;
229
+ if (r.contains(e))
230
+ return !0;
231
+ if (r.contains(n))
232
+ return !1;
233
+ a = a.parentElement;
234
+ }
235
+ return !!t;
236
+ }
237
+ },
238
+ /**
239
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
240
+ *
241
+ * @namespace
242
+ * @memberof Prism
243
+ * @public
244
+ */
245
+ languages: {
246
+ /**
247
+ * The grammar for plain, unformatted text.
248
+ */
249
+ plain: x,
250
+ plaintext: x,
251
+ text: x,
252
+ txt: x,
253
+ /**
254
+ * Creates a deep copy of the language with the given id and appends the given tokens.
255
+ *
256
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
257
+ * will be overwritten at its original position.
258
+ *
259
+ * ## Best practices
260
+ *
261
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
262
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
263
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
264
+ *
265
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
266
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
267
+ *
268
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
269
+ * @param {Grammar} redef The new tokens to append.
270
+ * @returns {Grammar} The new language created.
271
+ * @public
272
+ * @example
273
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
274
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
275
+ * // at its original position
276
+ * 'comment': { ... },
277
+ * // CSS doesn't have a 'color' token, so this token will be appended
278
+ * 'color': /\b(?:red|green|blue)\b/
279
+ * });
280
+ */
281
+ extend: function(a, e) {
282
+ var t = s.util.clone(s.languages[a]);
283
+ for (var n in e)
284
+ t[n] = e[n];
285
+ return t;
286
+ },
287
+ /**
288
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
289
+ *
290
+ * ## Usage
291
+ *
292
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
293
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
294
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
295
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
296
+ * this:
297
+ *
298
+ * ```js
299
+ * Prism.languages.markup.style = {
300
+ * // token
301
+ * };
302
+ * ```
303
+ *
304
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
305
+ * before existing tokens. For the CSS example above, you would use it like this:
306
+ *
307
+ * ```js
308
+ * Prism.languages.insertBefore('markup', 'cdata', {
309
+ * 'style': {
310
+ * // token
311
+ * }
312
+ * });
313
+ * ```
314
+ *
315
+ * ## Special cases
316
+ *
317
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
318
+ * will be ignored.
319
+ *
320
+ * This behavior can be used to insert tokens after `before`:
321
+ *
322
+ * ```js
323
+ * Prism.languages.insertBefore('markup', 'comment', {
324
+ * 'comment': Prism.languages.markup.comment,
325
+ * // tokens after 'comment'
326
+ * });
327
+ * ```
328
+ *
329
+ * ## Limitations
330
+ *
331
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
332
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
333
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
334
+ * deleting properties which is necessary to insert at arbitrary positions.
335
+ *
336
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
337
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
338
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
339
+ *
340
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
341
+ * you hold the target object in a variable, then the value of the variable will not change.
342
+ *
343
+ * ```js
344
+ * var oldMarkup = Prism.languages.markup;
345
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
346
+ *
347
+ * assert(oldMarkup !== Prism.languages.markup);
348
+ * assert(newMarkup === Prism.languages.markup);
349
+ * ```
350
+ *
351
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
352
+ * object to be modified.
353
+ * @param {string} before The key to insert before.
354
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
355
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
356
+ * object to be modified.
357
+ *
358
+ * Defaults to `Prism.languages`.
359
+ * @returns {Grammar} The new grammar object.
360
+ * @public
361
+ */
362
+ insertBefore: function(a, e, t, n) {
363
+ n = n || /** @type {any} */
364
+ s.languages;
365
+ var r = n[a], l = {};
366
+ for (var o in r)
367
+ if (r.hasOwnProperty(o)) {
368
+ if (o == e)
369
+ for (var u in t)
370
+ t.hasOwnProperty(u) && (l[u] = t[u]);
371
+ t.hasOwnProperty(o) || (l[o] = r[o]);
372
+ }
373
+ var f = n[a];
374
+ return n[a] = l, s.languages.DFS(s.languages, function(m, w) {
375
+ w === f && m != a && (this[m] = l);
376
+ }), l;
377
+ },
378
+ // Traverse a language definition with Depth First Search
379
+ DFS: function a(e, t, n, r) {
380
+ r = r || {};
381
+ var l = s.util.objId;
382
+ for (var o in e)
383
+ if (e.hasOwnProperty(o)) {
384
+ t.call(e, o, e[o], n || o);
385
+ var u = e[o], f = s.util.type(u);
386
+ f === "Object" && !r[l(u)] ? (r[l(u)] = !0, a(u, t, null, r)) : f === "Array" && !r[l(u)] && (r[l(u)] = !0, a(u, t, o, r));
387
+ }
388
+ }
389
+ },
390
+ plugins: {},
391
+ /**
392
+ * This is the most high-level function in Prism’s API.
393
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
394
+ * each one of them.
395
+ *
396
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
397
+ *
398
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
399
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
400
+ * @memberof Prism
401
+ * @public
402
+ */
403
+ highlightAll: function(a, e) {
404
+ s.highlightAllUnder(document, a, e);
405
+ },
406
+ /**
407
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
408
+ * {@link Prism.highlightElement} on each one of them.
409
+ *
410
+ * The following hooks will be run:
411
+ * 1. `before-highlightall`
412
+ * 2. `before-all-elements-highlight`
413
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
414
+ *
415
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
416
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
417
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
418
+ * @memberof Prism
419
+ * @public
420
+ */
421
+ highlightAllUnder: function(a, e, t) {
422
+ var n = {
423
+ callback: t,
424
+ container: a,
425
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
426
+ };
427
+ s.hooks.run("before-highlightall", n), n.elements = Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)), s.hooks.run("before-all-elements-highlight", n);
428
+ for (var r = 0, l; l = n.elements[r++]; )
429
+ s.highlightElement(l, e === !0, n.callback);
430
+ },
431
+ /**
432
+ * Highlights the code inside a single element.
433
+ *
434
+ * The following hooks will be run:
435
+ * 1. `before-sanity-check`
436
+ * 2. `before-highlight`
437
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
438
+ * 4. `before-insert`
439
+ * 5. `after-highlight`
440
+ * 6. `complete`
441
+ *
442
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
443
+ * the element's language.
444
+ *
445
+ * @param {Element} element The element containing the code.
446
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
447
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
448
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
449
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
450
+ *
451
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
452
+ * asynchronous highlighting to work. You can build your own bundle on the
453
+ * [Download page](https://prismjs.com/download.html).
454
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
455
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
456
+ * @memberof Prism
457
+ * @public
458
+ */
459
+ highlightElement: function(a, e, t) {
460
+ var n = s.util.getLanguage(a), r = s.languages[n];
461
+ s.util.setLanguage(a, n);
462
+ var l = a.parentElement;
463
+ l && l.nodeName.toLowerCase() === "pre" && s.util.setLanguage(l, n);
464
+ var o = a.textContent, u = {
465
+ element: a,
466
+ language: n,
467
+ grammar: r,
468
+ code: o
469
+ };
470
+ function f(w) {
471
+ u.highlightedCode = w, s.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, s.hooks.run("after-highlight", u), s.hooks.run("complete", u), t && t.call(u.element);
472
+ }
473
+ if (s.hooks.run("before-sanity-check", u), l = u.element.parentElement, l && l.nodeName.toLowerCase() === "pre" && !l.hasAttribute("tabindex") && l.setAttribute("tabindex", "0"), !u.code) {
474
+ s.hooks.run("complete", u), t && t.call(u.element);
475
+ return;
476
+ }
477
+ if (s.hooks.run("before-highlight", u), !u.grammar) {
478
+ f(s.util.encode(u.code));
479
+ return;
480
+ }
481
+ if (e && g.Worker) {
482
+ var m = new Worker(s.filename);
483
+ m.onmessage = function(w) {
484
+ f(w.data);
485
+ }, m.postMessage(JSON.stringify({
486
+ language: u.language,
487
+ code: u.code,
488
+ immediateClose: !0
489
+ }));
490
+ } else
491
+ f(s.highlight(u.code, u.grammar, u.language));
492
+ },
493
+ /**
494
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
495
+ * and the language definitions to use, and returns a string with the HTML produced.
496
+ *
497
+ * The following hooks will be run:
498
+ * 1. `before-tokenize`
499
+ * 2. `after-tokenize`
500
+ * 3. `wrap`: On each {@link Token}.
501
+ *
502
+ * @param {string} text A string with the code to be highlighted.
503
+ * @param {Grammar} grammar An object containing the tokens to use.
504
+ *
505
+ * Usually a language definition like `Prism.languages.markup`.
506
+ * @param {string} language The name of the language definition passed to `grammar`.
507
+ * @returns {string} The highlighted HTML.
508
+ * @memberof Prism
509
+ * @public
510
+ * @example
511
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
512
+ */
513
+ highlight: function(a, e, t) {
514
+ var n = {
515
+ code: a,
516
+ grammar: e,
517
+ language: t
518
+ };
519
+ if (s.hooks.run("before-tokenize", n), !n.grammar)
520
+ throw new Error('The language "' + n.language + '" has no grammar.');
521
+ return n.tokens = s.tokenize(n.code, n.grammar), s.hooks.run("after-tokenize", n), b.stringify(s.util.encode(n.tokens), n.language);
522
+ },
523
+ /**
524
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
525
+ * and the language definitions to use, and returns an array with the tokenized code.
526
+ *
527
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
528
+ *
529
+ * This method could be useful in other contexts as well, as a very crude parser.
530
+ *
531
+ * @param {string} text A string with the code to be highlighted.
532
+ * @param {Grammar} grammar An object containing the tokens to use.
533
+ *
534
+ * Usually a language definition like `Prism.languages.markup`.
535
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
536
+ * @memberof Prism
537
+ * @public
538
+ * @example
539
+ * let code = `var foo = 0;`;
540
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
541
+ * tokens.forEach(token => {
542
+ * if (token instanceof Prism.Token && token.type === 'number') {
543
+ * console.log(`Found numeric literal: ${token.content}`);
544
+ * }
545
+ * });
546
+ */
547
+ tokenize: function(a, e) {
548
+ var t = e.rest;
549
+ if (t) {
550
+ for (var n in t)
551
+ e[n] = t[n];
552
+ delete e.rest;
553
+ }
554
+ var r = new T();
555
+ return E(r, r.head, a), L(a, r, e, r.head, 0), j(r);
556
+ },
557
+ /**
558
+ * @namespace
559
+ * @memberof Prism
560
+ * @public
561
+ */
562
+ hooks: {
563
+ all: {},
564
+ /**
565
+ * Adds the given callback to the list of callbacks for the given hook.
566
+ *
567
+ * The callback will be invoked when the hook it is registered for is run.
568
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
569
+ *
570
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
571
+ *
572
+ * @param {string} name The name of the hook.
573
+ * @param {HookCallback} callback The callback function which is given environment variables.
574
+ * @public
575
+ */
576
+ add: function(a, e) {
577
+ var t = s.hooks.all;
578
+ t[a] = t[a] || [], t[a].push(e);
579
+ },
580
+ /**
581
+ * Runs a hook invoking all registered callbacks with the given environment variables.
582
+ *
583
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
584
+ *
585
+ * @param {string} name The name of the hook.
586
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
587
+ * @public
588
+ */
589
+ run: function(a, e) {
590
+ var t = s.hooks.all[a];
591
+ if (!(!t || !t.length))
592
+ for (var n = 0, r; r = t[n++]; )
593
+ r(e);
594
+ }
595
+ },
596
+ Token: b
597
+ };
598
+ g.Prism = s;
599
+ function b(a, e, t, n) {
600
+ this.type = a, this.content = e, this.alias = t, this.length = (n || "").length | 0;
601
+ }
602
+ b.stringify = function a(e, t) {
603
+ if (typeof e == "string")
604
+ return e;
605
+ if (Array.isArray(e)) {
606
+ var n = "";
607
+ return e.forEach(function(f) {
608
+ n += a(f, t);
609
+ }), n;
610
+ }
611
+ var r = {
612
+ type: e.type,
613
+ content: a(e.content, t),
614
+ tag: "span",
615
+ classes: ["token", e.type],
616
+ attributes: {},
617
+ language: t
618
+ }, l = e.alias;
619
+ l && (Array.isArray(l) ? Array.prototype.push.apply(r.classes, l) : r.classes.push(l)), s.hooks.run("wrap", r);
620
+ var o = "";
621
+ for (var u in r.attributes)
622
+ o += " " + u + '="' + (r.attributes[u] || "").replace(/"/g, "&quot;") + '"';
623
+ return "<" + r.tag + ' class="' + r.classes.join(" ") + '"' + o + ">" + r.content + "</" + r.tag + ">";
624
+ };
625
+ function _(a, e, t, n) {
626
+ a.lastIndex = e;
627
+ var r = a.exec(t);
628
+ if (r && n && r[1]) {
629
+ var l = r[1].length;
630
+ r.index += l, r[0] = r[0].slice(l);
631
+ }
632
+ return r;
633
+ }
634
+ function L(a, e, t, n, r, l) {
635
+ for (var o in t)
636
+ if (!(!t.hasOwnProperty(o) || !t[o])) {
637
+ var u = t[o];
638
+ u = Array.isArray(u) ? u : [u];
639
+ for (var f = 0; f < u.length; ++f) {
640
+ if (l && l.cause == o + "," + f)
641
+ return;
642
+ var m = u[f], w = m.inside, q = !!m.lookbehind, U = !!m.greedy, J = m.alias;
643
+ if (U && !m.pattern.global) {
644
+ var N = m.pattern.toString().match(/[imsuy]*$/)[0];
645
+ m.pattern = RegExp(m.pattern.source, N + "g");
646
+ }
647
+ for (var Z = m.pattern || m, y = n.next, A = r; y !== e.tail && !(l && A >= l.reach); A += y.value.length, y = y.next) {
648
+ var $ = y.value;
649
+ if (e.length > a.length)
650
+ return;
651
+ if (!($ instanceof b)) {
652
+ var z = 1, F;
653
+ if (U) {
654
+ if (F = _(Z, A, a, q), !F || F.index >= a.length)
655
+ break;
656
+ var D = F.index, K = F.index + F[0].length, k = A;
657
+ for (k += y.value.length; D >= k; )
658
+ y = y.next, k += y.value.length;
659
+ if (k -= y.value.length, A = k, y.value instanceof b)
660
+ continue;
661
+ for (var C = y; C !== e.tail && (k < K || typeof C.value == "string"); C = C.next)
662
+ z++, k += C.value.length;
663
+ z--, $ = a.slice(A, k), F.index -= A;
664
+ } else if (F = _(Z, 0, $, q), !F)
665
+ continue;
666
+ var D = F.index, O = F[0], R = $.slice(0, D), B = $.slice(D + O.length), G = A + $.length;
667
+ l && G > l.reach && (l.reach = G);
668
+ var I = y.prev;
669
+ R && (I = E(e, I, R), A += R.length), M(e, I, z);
670
+ var Q = new b(o, w ? s.tokenize(O, w) : O, J, O);
671
+ if (y = E(e, I, Q), B && E(e, y, B), z > 1) {
672
+ var H = {
673
+ cause: o + "," + f,
674
+ reach: G
675
+ };
676
+ L(a, e, t, y.prev, A, H), l && H.reach > l.reach && (l.reach = H.reach);
677
+ }
678
+ }
679
+ }
680
+ }
681
+ }
682
+ }
683
+ function T() {
684
+ var a = { value: null, prev: null, next: null }, e = { value: null, prev: a, next: null };
685
+ a.next = e, this.head = a, this.tail = e, this.length = 0;
686
+ }
687
+ function E(a, e, t) {
688
+ var n = e.next, r = { value: t, prev: e, next: n };
689
+ return e.next = r, n.prev = r, a.length++, r;
690
+ }
691
+ function M(a, e, t) {
692
+ for (var n = e.next, r = 0; r < t && n !== a.tail; r++)
693
+ n = n.next;
694
+ e.next = n, n.prev = e, a.length -= r;
695
+ }
696
+ function j(a) {
697
+ for (var e = [], t = a.head.next; t !== a.tail; )
698
+ e.push(t.value), t = t.next;
699
+ return e;
700
+ }
701
+ if (!g.document)
702
+ return g.addEventListener && (s.disableWorkerMessageHandler || g.addEventListener("message", function(a) {
703
+ var e = JSON.parse(a.data), t = e.language, n = e.code, r = e.immediateClose;
704
+ g.postMessage(s.highlight(n, s.languages[t], t)), r && g.close();
705
+ }, !1)), s;
706
+ var p = s.util.currentScript();
707
+ p && (s.filename = p.src, p.hasAttribute("data-manual") && (s.manual = !0));
708
+ function c() {
709
+ s.manual || s.highlightAll();
710
+ }
711
+ if (!s.manual) {
712
+ var h = document.readyState;
713
+ h === "loading" || h === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
714
+ }
715
+ return s;
716
+ }(P);
717
+ S.exports && (S.exports = i), typeof W < "u" && (W.Prism = i), i.languages.markup = {
718
+ comment: {
719
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
720
+ greedy: !0
721
+ },
722
+ prolog: {
723
+ pattern: /<\?[\s\S]+?\?>/,
724
+ greedy: !0
725
+ },
726
+ doctype: {
727
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
728
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
729
+ greedy: !0,
730
+ inside: {
731
+ "internal-subset": {
732
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
733
+ lookbehind: !0,
734
+ greedy: !0,
735
+ inside: null
736
+ // see below
737
+ },
738
+ string: {
739
+ pattern: /"[^"]*"|'[^']*'/,
740
+ greedy: !0
741
+ },
742
+ punctuation: /^<!|>$|[[\]]/,
743
+ "doctype-tag": /^DOCTYPE/i,
744
+ name: /[^\s<>'"]+/
745
+ }
746
+ },
747
+ cdata: {
748
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
749
+ greedy: !0
750
+ },
751
+ tag: {
752
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
753
+ greedy: !0,
754
+ inside: {
755
+ tag: {
756
+ pattern: /^<\/?[^\s>\/]+/,
757
+ inside: {
758
+ punctuation: /^<\/?/,
759
+ namespace: /^[^\s>\/:]+:/
760
+ }
761
+ },
762
+ "special-attr": [],
763
+ "attr-value": {
764
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
765
+ inside: {
766
+ punctuation: [
767
+ {
768
+ pattern: /^=/,
769
+ alias: "attr-equals"
770
+ },
771
+ {
772
+ pattern: /^(\s*)["']|["']$/,
773
+ lookbehind: !0
774
+ }
775
+ ]
776
+ }
777
+ },
778
+ punctuation: /\/?>/,
779
+ "attr-name": {
780
+ pattern: /[^\s>\/]+/,
781
+ inside: {
782
+ namespace: /^[^\s>\/:]+:/
783
+ }
784
+ }
785
+ }
786
+ },
787
+ entity: [
788
+ {
789
+ pattern: /&[\da-z]{1,8};/i,
790
+ alias: "named-entity"
791
+ },
792
+ /&#x?[\da-f]{1,8};/i
793
+ ]
794
+ }, i.languages.markup.tag.inside["attr-value"].inside.entity = i.languages.markup.entity, i.languages.markup.doctype.inside["internal-subset"].inside = i.languages.markup, i.hooks.add("wrap", function(g) {
795
+ g.type === "entity" && (g.attributes.title = g.content.replace(/&amp;/, "&"));
796
+ }), Object.defineProperty(i.languages.markup.tag, "addInlined", {
797
+ /**
798
+ * Adds an inlined language to markup.
799
+ *
800
+ * An example of an inlined language is CSS with `<style>` tags.
801
+ *
802
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
803
+ * case insensitive.
804
+ * @param {string} lang The language key.
805
+ * @example
806
+ * addInlined('style', 'css');
807
+ */
808
+ value: function(d, v) {
809
+ var x = {};
810
+ x["language-" + v] = {
811
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
812
+ lookbehind: !0,
813
+ inside: i.languages[v]
814
+ }, x.cdata = /^<!\[CDATA\[|\]\]>$/i;
815
+ var s = {
816
+ "included-cdata": {
817
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
818
+ inside: x
819
+ }
820
+ };
821
+ s["language-" + v] = {
822
+ pattern: /[\s\S]+/,
823
+ inside: i.languages[v]
824
+ };
825
+ var b = {};
826
+ b[d] = {
827
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
828
+ return d;
829
+ }), "i"),
830
+ lookbehind: !0,
831
+ greedy: !0,
832
+ inside: s
833
+ }, i.languages.insertBefore("markup", "cdata", b);
834
+ }
835
+ }), Object.defineProperty(i.languages.markup.tag, "addAttribute", {
836
+ /**
837
+ * Adds an pattern to highlight languages embedded in HTML attributes.
838
+ *
839
+ * An example of an inlined language is CSS with `style` attributes.
840
+ *
841
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
842
+ * case insensitive.
843
+ * @param {string} lang The language key.
844
+ * @example
845
+ * addAttribute('style', 'css');
846
+ */
847
+ value: function(g, d) {
848
+ i.languages.markup.tag.inside["special-attr"].push({
849
+ pattern: RegExp(
850
+ /(^|["'\s])/.source + "(?:" + g + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
851
+ "i"
852
+ ),
853
+ lookbehind: !0,
854
+ inside: {
855
+ "attr-name": /^[^\s=]+/,
856
+ "attr-value": {
857
+ pattern: /=[\s\S]+/,
858
+ inside: {
859
+ value: {
860
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
861
+ lookbehind: !0,
862
+ alias: [d, "language-" + d],
863
+ inside: i.languages[d]
864
+ },
865
+ punctuation: [
866
+ {
867
+ pattern: /^=/,
868
+ alias: "attr-equals"
869
+ },
870
+ /"|'/
871
+ ]
872
+ }
873
+ }
874
+ }
875
+ });
876
+ }
877
+ }), i.languages.html = i.languages.markup, i.languages.mathml = i.languages.markup, i.languages.svg = i.languages.markup, i.languages.xml = i.languages.extend("markup", {}), i.languages.ssml = i.languages.xml, i.languages.atom = i.languages.xml, i.languages.rss = i.languages.xml, function(g) {
878
+ var d = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
879
+ g.languages.css = {
880
+ comment: /\/\*[\s\S]*?\*\//,
881
+ atrule: {
882
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + d.source + ")*?" + /(?:;|(?=\s*\{))/.source),
883
+ inside: {
884
+ rule: /^@[\w-]+/,
885
+ "selector-function-argument": {
886
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
887
+ lookbehind: !0,
888
+ alias: "selector"
889
+ },
890
+ keyword: {
891
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
892
+ lookbehind: !0
893
+ }
894
+ // See rest below
895
+ }
896
+ },
897
+ url: {
898
+ // https://drafts.csswg.org/css-values-3/#urls
899
+ pattern: RegExp("\\burl\\((?:" + d.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
900
+ greedy: !0,
901
+ inside: {
902
+ function: /^url/i,
903
+ punctuation: /^\(|\)$/,
904
+ string: {
905
+ pattern: RegExp("^" + d.source + "$"),
906
+ alias: "url"
907
+ }
908
+ }
909
+ },
910
+ selector: {
911
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + d.source + ")*(?=\\s*\\{)"),
912
+ lookbehind: !0
913
+ },
914
+ string: {
915
+ pattern: d,
916
+ greedy: !0
917
+ },
918
+ property: {
919
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
920
+ lookbehind: !0
921
+ },
922
+ important: /!important\b/i,
923
+ function: {
924
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
925
+ lookbehind: !0
926
+ },
927
+ punctuation: /[(){};:,]/
928
+ }, g.languages.css.atrule.inside.rest = g.languages.css;
929
+ var v = g.languages.markup;
930
+ v && (v.tag.addInlined("style", "css"), v.tag.addAttribute("style", "css"));
931
+ }(i), i.languages.clike = {
932
+ comment: [
933
+ {
934
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
935
+ lookbehind: !0,
936
+ greedy: !0
937
+ },
938
+ {
939
+ pattern: /(^|[^\\:])\/\/.*/,
940
+ lookbehind: !0,
941
+ greedy: !0
942
+ }
943
+ ],
944
+ string: {
945
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
946
+ greedy: !0
947
+ },
948
+ "class-name": {
949
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
950
+ lookbehind: !0,
951
+ inside: {
952
+ punctuation: /[.\\]/
953
+ }
954
+ },
955
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
956
+ boolean: /\b(?:false|true)\b/,
957
+ function: /\b\w+(?=\()/,
958
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
959
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
960
+ punctuation: /[{}[\];(),.:]/
961
+ }, i.languages.javascript = i.languages.extend("clike", {
962
+ "class-name": [
963
+ i.languages.clike["class-name"],
964
+ {
965
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
966
+ lookbehind: !0
967
+ }
968
+ ],
969
+ keyword: [
970
+ {
971
+ pattern: /((?:^|\})\s*)catch\b/,
972
+ lookbehind: !0
973
+ },
974
+ {
975
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
976
+ lookbehind: !0
977
+ }
978
+ ],
979
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
980
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
981
+ number: {
982
+ pattern: RegExp(
983
+ /(^|[^\w$])/.source + "(?:" + // constant
984
+ (/NaN|Infinity/.source + "|" + // binary integer
985
+ /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
986
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
987
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
988
+ /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
989
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
990
+ ),
991
+ lookbehind: !0
992
+ },
993
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
994
+ }), i.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, i.languages.insertBefore("javascript", "keyword", {
995
+ regex: {
996
+ pattern: RegExp(
997
+ // lookbehind
998
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
999
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
1000
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
1001
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
1002
+ // with the only syntax, so we have to define 2 different regex patterns.
1003
+ /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
1004
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
1005
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
1006
+ ),
1007
+ lookbehind: !0,
1008
+ greedy: !0,
1009
+ inside: {
1010
+ "regex-source": {
1011
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1012
+ lookbehind: !0,
1013
+ alias: "language-regex",
1014
+ inside: i.languages.regex
1015
+ },
1016
+ "regex-delimiter": /^\/|\/$/,
1017
+ "regex-flags": /^[a-z]+$/
1018
+ }
1019
+ },
1020
+ // This must be declared before keyword because we use "function" inside the look-forward
1021
+ "function-variable": {
1022
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
1023
+ alias: "function"
1024
+ },
1025
+ parameter: [
1026
+ {
1027
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1028
+ lookbehind: !0,
1029
+ inside: i.languages.javascript
1030
+ },
1031
+ {
1032
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1033
+ lookbehind: !0,
1034
+ inside: i.languages.javascript
1035
+ },
1036
+ {
1037
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1038
+ lookbehind: !0,
1039
+ inside: i.languages.javascript
1040
+ },
1041
+ {
1042
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
1043
+ lookbehind: !0,
1044
+ inside: i.languages.javascript
1045
+ }
1046
+ ],
1047
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1048
+ }), i.languages.insertBefore("javascript", "string", {
1049
+ hashbang: {
1050
+ pattern: /^#!.*/,
1051
+ greedy: !0,
1052
+ alias: "comment"
1053
+ },
1054
+ "template-string": {
1055
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1056
+ greedy: !0,
1057
+ inside: {
1058
+ "template-punctuation": {
1059
+ pattern: /^`|`$/,
1060
+ alias: "string"
1061
+ },
1062
+ interpolation: {
1063
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1064
+ lookbehind: !0,
1065
+ inside: {
1066
+ "interpolation-punctuation": {
1067
+ pattern: /^\$\{|\}$/,
1068
+ alias: "punctuation"
1069
+ },
1070
+ rest: i.languages.javascript
1071
+ }
1072
+ },
1073
+ string: /[\s\S]+/
1074
+ }
1075
+ },
1076
+ "string-property": {
1077
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1078
+ lookbehind: !0,
1079
+ greedy: !0,
1080
+ alias: "property"
1081
+ }
1082
+ }), i.languages.insertBefore("javascript", "operator", {
1083
+ "literal-property": {
1084
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1085
+ lookbehind: !0,
1086
+ alias: "property"
1087
+ }
1088
+ }), i.languages.markup && (i.languages.markup.tag.addInlined("script", "javascript"), i.languages.markup.tag.addAttribute(
1089
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
1090
+ "javascript"
1091
+ )), i.languages.js = i.languages.javascript, function() {
1092
+ if (typeof i > "u" || typeof document > "u")
1093
+ return;
1094
+ Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1095
+ var g = "Loading…", d = function(p, c) {
1096
+ return "✖ Error " + p + " while fetching file: " + c;
1097
+ }, v = "✖ Error: File does not exist or is empty", x = {
1098
+ js: "javascript",
1099
+ py: "python",
1100
+ rb: "ruby",
1101
+ ps1: "powershell",
1102
+ psm1: "powershell",
1103
+ sh: "bash",
1104
+ bat: "batch",
1105
+ h: "c",
1106
+ tex: "latex"
1107
+ }, s = "data-src-status", b = "loading", _ = "loaded", L = "failed", T = "pre[data-src]:not([" + s + '="' + _ + '"]):not([' + s + '="' + b + '"])';
1108
+ function E(p, c, h) {
1109
+ var a = new XMLHttpRequest();
1110
+ a.open("GET", p, !0), a.onreadystatechange = function() {
1111
+ a.readyState == 4 && (a.status < 400 && a.responseText ? c(a.responseText) : a.status >= 400 ? h(d(a.status, a.statusText)) : h(v));
1112
+ }, a.send(null);
1113
+ }
1114
+ function M(p) {
1115
+ var c = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p || "");
1116
+ if (c) {
1117
+ var h = Number(c[1]), a = c[2], e = c[3];
1118
+ return a ? e ? [h, Number(e)] : [h, void 0] : [h, h];
1119
+ }
1120
+ }
1121
+ i.hooks.add("before-highlightall", function(p) {
1122
+ p.selector += ", " + T;
1123
+ }), i.hooks.add("before-sanity-check", function(p) {
1124
+ var c = (
1125
+ /** @type {HTMLPreElement} */
1126
+ p.element
1127
+ );
1128
+ if (c.matches(T)) {
1129
+ p.code = "", c.setAttribute(s, b);
1130
+ var h = c.appendChild(document.createElement("CODE"));
1131
+ h.textContent = g;
1132
+ var a = c.getAttribute("data-src"), e = p.language;
1133
+ if (e === "none") {
1134
+ var t = (/\.(\w+)$/.exec(a) || [, "none"])[1];
1135
+ e = x[t] || t;
1136
+ }
1137
+ i.util.setLanguage(h, e), i.util.setLanguage(c, e);
1138
+ var n = i.plugins.autoloader;
1139
+ n && n.loadLanguages(e), E(
1140
+ a,
1141
+ function(r) {
1142
+ c.setAttribute(s, _);
1143
+ var l = M(c.getAttribute("data-range"));
1144
+ if (l) {
1145
+ var o = r.split(/\r\n?|\n/g), u = l[0], f = l[1] == null ? o.length : l[1];
1146
+ u < 0 && (u += o.length), u = Math.max(0, Math.min(u - 1, o.length)), f < 0 && (f += o.length), f = Math.max(0, Math.min(f, o.length)), r = o.slice(u, f).join(`
1147
+ `), c.hasAttribute("data-start") || c.setAttribute("data-start", String(u + 1));
1148
+ }
1149
+ h.textContent = r, i.highlightElement(h);
1150
+ },
1151
+ function(r) {
1152
+ c.setAttribute(s, L), h.textContent = r;
1153
+ }
1154
+ );
1155
+ }
1156
+ }), i.plugins.fileHighlight = {
1157
+ /**
1158
+ * Executes the File Highlight plugin for all matching `pre` elements under the given container.
1159
+ *
1160
+ * Note: Elements which are already loaded or currently loading will not be touched by this method.
1161
+ *
1162
+ * @param {ParentNode} [container=document]
1163
+ */
1164
+ highlight: function(c) {
1165
+ for (var h = (c || document).querySelectorAll(T), a = 0, e; e = h[a++]; )
1166
+ i.highlightElement(e);
1167
+ }
1168
+ };
1169
+ var j = !1;
1170
+ i.fileHighlight = function() {
1171
+ j || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), j = !0), i.plugins.fileHighlight.highlight.apply(this, arguments);
1172
+ };
1173
+ }();
1174
+ })(X);
1175
+ var Y = X.exports;
1176
+ const ae = /* @__PURE__ */ V(Y), ne = /* @__PURE__ */ ee({
1177
+ __proto__: null,
1178
+ default: ae
1179
+ }, [Y]);
1180
+ export {
1181
+ ne as p
1182
+ };