zudoku 0.0.0-f3f6db5 → 0.0.0-f40ea27

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 (1652) hide show
  1. package/README.md +1 -1
  2. package/cli.js +9 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +6 -5
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +5 -2
  9. package/dist/app/entry.client.js +37 -2
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +8 -8
  12. package/dist/app/entry.server.js +12 -10
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +1 -0
  18. package/dist/app/main.js +33 -38
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +7 -6
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.d.ts +1 -3
  23. package/dist/cli/build/handler.js +9 -1
  24. package/dist/cli/build/handler.js.map +1 -1
  25. package/dist/cli/cli.js +17 -1
  26. package/dist/cli/cli.js.map +1 -1
  27. package/dist/cli/cmds/build.d.ts +11 -3
  28. package/dist/cli/cmds/build.js +20 -13
  29. package/dist/cli/cmds/build.js.map +1 -1
  30. package/dist/cli/cmds/dev.d.ts +1 -1
  31. package/dist/cli/cmds/dev.js.map +1 -1
  32. package/dist/cli/cmds/preview.d.ts +16 -0
  33. package/dist/cli/cmds/preview.js +25 -0
  34. package/dist/cli/cmds/preview.js.map +1 -0
  35. package/dist/cli/common/machine-id/lib.js +1 -0
  36. package/dist/cli/common/machine-id/lib.js.map +1 -1
  37. package/dist/cli/common/output.js.map +1 -1
  38. package/dist/cli/common/utils/ports.d.ts +1 -1
  39. package/dist/cli/common/utils/ports.js +16 -15
  40. package/dist/cli/common/utils/ports.js.map +1 -1
  41. package/dist/cli/dev/handler.js +15 -12
  42. package/dist/cli/dev/handler.js.map +1 -1
  43. package/dist/cli/preview/handler.d.ts +3 -0
  44. package/dist/cli/preview/handler.js +35 -0
  45. package/dist/cli/preview/handler.js.map +1 -0
  46. package/dist/config/config.d.ts +27 -14
  47. package/dist/config/file-exists.d.ts +1 -0
  48. package/dist/config/file-exists.js +5 -0
  49. package/dist/config/file-exists.js.map +1 -0
  50. package/dist/config/loader.d.ts +19 -18
  51. package/dist/config/loader.js +107 -117
  52. package/dist/config/loader.js.map +1 -1
  53. package/dist/config/validators/BuildSchema.d.ts +36 -0
  54. package/dist/config/validators/BuildSchema.js +20 -0
  55. package/dist/config/validators/BuildSchema.js.map +1 -0
  56. package/dist/config/validators/InputNavigationSchema.d.ts +7369 -0
  57. package/dist/config/validators/InputNavigationSchema.js +74 -0
  58. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  59. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  61. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  62. package/dist/config/validators/NavigationSchema.js +95 -0
  63. package/dist/config/validators/NavigationSchema.js.map +1 -0
  64. package/dist/config/validators/icon-types.d.ts +2 -1
  65. package/dist/config/validators/icon-types.js +1813 -1
  66. package/dist/config/validators/icon-types.js.map +1 -1
  67. package/dist/config/validators/validate.d.ts +642 -1875
  68. package/dist/config/validators/validate.js +423 -15
  69. package/dist/config/validators/validate.js.map +1 -1
  70. package/dist/config/validators/validate.test.js +78 -0
  71. package/dist/config/validators/validate.test.js.map +1 -0
  72. package/dist/flat-config.d.ts +325 -0
  73. package/dist/index.d.ts +8 -4
  74. package/dist/index.js +4 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +2 -0
  77. package/dist/lib/MissingIcon.js +7 -0
  78. package/dist/lib/MissingIcon.js.map +1 -0
  79. package/dist/lib/auth/issuer.d.ts +2 -0
  80. package/dist/lib/auth/issuer.js +37 -0
  81. package/dist/lib/auth/issuer.js.map +1 -0
  82. package/dist/lib/auth/issuer.test.js +94 -0
  83. package/dist/lib/auth/issuer.test.js.map +1 -0
  84. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  85. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  86. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  87. package/dist/lib/authentication/authentication.d.ts +3 -4
  88. package/dist/lib/authentication/components/CallbackHandler.js +6 -2
  89. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  90. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  91. package/dist/lib/authentication/components/SignIn.js +5 -2
  92. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  93. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignUp.js +4 -1
  95. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  96. package/dist/lib/authentication/hook.d.ts +7 -0
  97. package/dist/lib/authentication/hook.js +11 -1
  98. package/dist/lib/authentication/hook.js.map +1 -1
  99. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  100. package/dist/lib/authentication/providers/auth0.js +3 -2
  101. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  102. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  103. package/dist/lib/authentication/providers/azureb2c.js +145 -0
  104. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  105. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  106. package/dist/lib/authentication/providers/clerk.js +92 -55
  107. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  108. package/dist/lib/authentication/providers/openid.d.ts +16 -19
  109. package/dist/lib/authentication/providers/openid.js +78 -43
  110. package/dist/lib/authentication/providers/openid.js.map +1 -1
  111. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  112. package/dist/lib/authentication/providers/supabase.js +108 -0
  113. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  114. package/dist/lib/authentication/state.d.ts +6 -22
  115. package/dist/lib/authentication/state.js +28 -13
  116. package/dist/lib/authentication/state.js.map +1 -1
  117. package/dist/lib/components/AnchorLink.d.ts +2 -2
  118. package/dist/lib/components/AnchorLink.js +5 -4
  119. package/dist/lib/components/AnchorLink.js.map +1 -1
  120. package/dist/lib/components/Autocomplete.d.ts +4 -3
  121. package/dist/lib/components/Autocomplete.js +5 -5
  122. package/dist/lib/components/Autocomplete.js.map +1 -1
  123. package/dist/lib/components/Banner.js +2 -2
  124. package/dist/lib/components/Banner.js.map +1 -1
  125. package/dist/lib/components/Bootstrap.d.ts +2 -1
  126. package/dist/lib/components/Bootstrap.js +3 -2
  127. package/dist/lib/components/Bootstrap.js.map +1 -1
  128. package/dist/lib/components/BuildCheck.d.ts +4 -0
  129. package/dist/lib/components/BuildCheck.js +38 -0
  130. package/dist/lib/components/BuildCheck.js.map +1 -0
  131. package/dist/lib/components/ErrorPage.js +2 -2
  132. package/dist/lib/components/ErrorPage.js.map +1 -1
  133. package/dist/lib/components/Footer.d.ts +1 -0
  134. package/dist/lib/components/Footer.js +32 -0
  135. package/dist/lib/components/Footer.js.map +1 -0
  136. package/dist/lib/components/Framed.d.ts +7 -0
  137. package/dist/lib/components/Framed.js +26 -0
  138. package/dist/lib/components/Framed.js.map +1 -0
  139. package/dist/lib/components/Header.js +25 -16
  140. package/dist/lib/components/Header.js.map +1 -1
  141. package/dist/lib/components/Heading.d.ts +9 -5
  142. package/dist/lib/components/Heading.js +7 -2
  143. package/dist/lib/components/Heading.js.map +1 -1
  144. package/dist/lib/components/InlineCode.d.ts +2 -1
  145. package/dist/lib/components/InlineCode.js +2 -9
  146. package/dist/lib/components/InlineCode.js.map +1 -1
  147. package/dist/lib/components/Layout.js +9 -29
  148. package/dist/lib/components/Layout.js.map +1 -1
  149. package/dist/lib/components/Main.d.ts +2 -0
  150. package/dist/lib/components/Main.js +18 -0
  151. package/dist/lib/components/Main.js.map +1 -0
  152. package/dist/lib/components/Markdown.d.ts +3 -2
  153. package/dist/lib/components/Markdown.js +14 -16
  154. package/dist/lib/components/Markdown.js.map +1 -1
  155. package/dist/lib/components/MobileTopNavigation.js +8 -3
  156. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  157. package/dist/lib/components/NotFoundPage.js +2 -2
  158. package/dist/lib/components/NotFoundPage.js.map +1 -1
  159. package/dist/lib/components/PageProgress.d.ts +1 -0
  160. package/dist/lib/components/PageProgress.js +20 -0
  161. package/dist/lib/components/PageProgress.js.map +1 -0
  162. package/dist/lib/components/Pagination.d.ts +11 -0
  163. package/dist/lib/components/Pagination.js +10 -0
  164. package/dist/lib/components/Pagination.js.map +1 -0
  165. package/dist/lib/components/PathRenderer.js +23 -20
  166. package/dist/lib/components/PathRenderer.js.map +1 -1
  167. package/dist/lib/components/Search.js +7 -1
  168. package/dist/lib/components/Search.js.map +1 -1
  169. package/dist/lib/components/Slot.d.ts +17 -0
  170. package/dist/lib/components/Slot.js +24 -0
  171. package/dist/lib/components/Slot.js.map +1 -0
  172. package/dist/lib/components/Slot.test.js +168 -0
  173. package/dist/lib/components/Slot.test.js.map +1 -0
  174. package/dist/lib/components/ThemeSwitch.js +8 -5
  175. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  176. package/dist/lib/components/TopNavigation.d.ts +2 -5
  177. package/dist/lib/components/TopNavigation.js +48 -41
  178. package/dist/lib/components/TopNavigation.js.map +1 -1
  179. package/dist/lib/components/Typography.d.ts +5 -0
  180. package/dist/lib/components/Typography.js +8 -0
  181. package/dist/lib/components/Typography.js.map +1 -0
  182. package/dist/lib/components/Zudoku.d.ts +1 -1
  183. package/dist/lib/components/Zudoku.js +14 -9
  184. package/dist/lib/components/Zudoku.js.map +1 -1
  185. package/dist/lib/components/cache.d.ts +7 -0
  186. package/dist/lib/components/cache.js +7 -0
  187. package/dist/lib/components/cache.js.map +1 -1
  188. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  189. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  190. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  191. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  192. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  193. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  194. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  195. package/dist/lib/components/context/SlotProvider.js +83 -0
  196. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  197. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  198. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  199. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  200. package/dist/lib/components/context/ZudokuContext.d.ts +4 -8
  201. package/dist/lib/components/context/ZudokuContext.js +50 -21
  202. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  203. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  204. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  205. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  206. package/dist/lib/components/index.d.ts +54 -25
  207. package/dist/lib/components/index.js +20 -6
  208. package/dist/lib/components/index.js.map +1 -1
  209. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  210. package/dist/lib/components/navigation/Navigation.js +12 -0
  211. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  212. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  213. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  214. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  215. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  216. package/dist/lib/components/navigation/NavigationCategory.js +61 -0
  217. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  218. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  219. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  220. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  221. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  222. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  223. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  224. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  225. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  226. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  227. package/dist/lib/components/navigation/Toc.js +46 -0
  228. package/dist/lib/components/navigation/Toc.js.map +1 -0
  229. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  230. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  231. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  232. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  233. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  234. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  235. package/dist/lib/components/navigation/utils.d.ts +12 -6
  236. package/dist/lib/components/navigation/utils.js +46 -18
  237. package/dist/lib/components/navigation/utils.js.map +1 -1
  238. package/dist/lib/core/RouteGuard.d.ts +2 -1
  239. package/dist/lib/core/RouteGuard.js +35 -11
  240. package/dist/lib/core/RouteGuard.js.map +1 -1
  241. package/dist/lib/core/ZudokuContext.d.ts +58 -21
  242. package/dist/lib/core/ZudokuContext.js +39 -17
  243. package/dist/lib/core/ZudokuContext.js.map +1 -1
  244. package/dist/lib/core/plugins.d.ts +22 -9
  245. package/dist/lib/core/plugins.js +4 -0
  246. package/dist/lib/core/plugins.js.map +1 -1
  247. package/dist/lib/errors/ErrorAlert.js +5 -1
  248. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  249. package/dist/lib/hooks/index.d.ts +28 -0
  250. package/dist/lib/hooks/index.js +16 -0
  251. package/dist/lib/hooks/index.js.map +1 -0
  252. package/dist/lib/hooks/useEvent.d.ts +11 -0
  253. package/dist/lib/hooks/useEvent.js +19 -0
  254. package/dist/lib/hooks/useEvent.js.map +1 -0
  255. package/dist/lib/hooks/useEvent.test.js +102 -0
  256. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  257. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  258. package/dist/lib/hooks/useHotkey.js +58 -0
  259. package/dist/lib/hooks/useHotkey.js.map +1 -0
  260. package/dist/lib/icons.d.ts +1 -0
  261. package/dist/lib/icons.js +1 -0
  262. package/dist/lib/icons.js.map +1 -1
  263. package/dist/lib/oas/graphql/circular.js +23 -18
  264. package/dist/lib/oas/graphql/circular.js.map +1 -1
  265. package/dist/lib/oas/graphql/index.d.ts +24 -4
  266. package/dist/lib/oas/graphql/index.js +163 -48
  267. package/dist/lib/oas/graphql/index.js.map +1 -1
  268. package/dist/lib/oas/parser/dereference/index.js +2 -0
  269. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  270. package/dist/lib/oas/parser/index.d.ts +8 -3
  271. package/dist/lib/oas/parser/index.js +7 -23
  272. package/dist/lib/oas/parser/index.js.map +1 -1
  273. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  274. package/dist/lib/oas/parser/upgrade/index.js +76 -23
  275. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  276. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  277. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  278. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  279. package/dist/lib/plugins/api-catalog/index.d.ts +7 -6
  280. package/dist/lib/plugins/api-catalog/index.js +39 -8
  281. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  282. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  283. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  284. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  285. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  286. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +150 -27
  287. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  288. package/dist/lib/plugins/api-keys/index.d.ts +21 -11
  289. package/dist/lib/plugins/api-keys/index.js +67 -32
  290. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  291. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  292. package/dist/lib/plugins/custom-pages/index.js +15 -10
  293. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  294. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  295. package/dist/lib/plugins/markdown/MdxPage.js +30 -17
  296. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  297. package/dist/lib/plugins/markdown/index.d.ts +11 -3
  298. package/dist/lib/plugins/markdown/index.js +9 -26
  299. package/dist/lib/plugins/markdown/index.js.map +1 -1
  300. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  301. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  302. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  303. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  304. package/dist/lib/plugins/openapi/Endpoint.js +6 -7
  305. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  306. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  307. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  308. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  309. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  310. package/dist/lib/plugins/openapi/OperationList.js +76 -26
  311. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  312. package/dist/lib/plugins/openapi/OperationListItem.d.ts +3 -2
  313. package/dist/lib/plugins/openapi/OperationListItem.js +11 -15
  314. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  315. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  316. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  317. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  318. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  319. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  320. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  321. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  322. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  323. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -2
  324. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +14 -4
  325. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  326. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  327. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  328. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  329. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  330. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  331. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  332. package/dist/lib/plugins/openapi/Sidecar.js +48 -69
  333. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  334. package/dist/lib/plugins/openapi/SidecarExamples.js +10 -2
  335. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  336. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  337. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  338. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  339. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  340. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  341. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  342. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  343. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  344. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  345. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  346. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  347. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  348. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  349. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  350. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  351. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  352. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  353. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  354. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  355. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  356. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  357. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  358. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  359. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +110 -41
  360. package/dist/lib/plugins/openapi/graphql/graphql.js +63 -24
  361. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  362. package/dist/lib/plugins/openapi/index.d.ts +10 -8
  363. package/dist/lib/plugins/openapi/index.js +65 -120
  364. package/dist/lib/plugins/openapi/index.js.map +1 -1
  365. package/dist/lib/plugins/openapi/interfaces.d.ts +41 -12
  366. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  367. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  368. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  369. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  370. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  371. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  372. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  373. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -5
  374. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  375. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  376. package/dist/lib/plugins/openapi/playground/Headers.js +68 -30
  377. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  378. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  379. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  380. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  381. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  382. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  383. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  384. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  385. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  386. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +4 -0
  387. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -1
  388. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  389. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  390. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -5
  391. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  392. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -3
  393. package/dist/lib/plugins/openapi/playground/Playground.js +150 -76
  394. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  395. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  396. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  397. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  398. package/dist/lib/plugins/openapi/playground/QueryParams.js +41 -26
  399. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  400. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  401. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  402. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  403. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  404. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  405. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  406. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  407. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  408. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  410. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  411. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  412. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  413. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  414. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  416. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  417. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  419. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  420. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  422. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  423. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  424. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  425. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +41 -33
  426. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -5
  428. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +9 -10
  429. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  430. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  431. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  432. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  433. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  434. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  435. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  436. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  437. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  438. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  439. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  440. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  441. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  442. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  443. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  444. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  445. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  446. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  447. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  448. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  449. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  450. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  451. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  452. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  453. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  454. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  455. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  456. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  457. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  458. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  459. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  460. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  461. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  462. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  463. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  464. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  465. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +25 -18
  466. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  467. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  468. package/dist/lib/plugins/openapi/schema/SchemaView.js +39 -51
  469. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  470. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  471. package/dist/lib/plugins/openapi/schema/utils.js +15 -5
  472. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  473. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  474. package/dist/lib/plugins/openapi/state.js +18 -0
  475. package/dist/lib/plugins/openapi/state.js.map +1 -0
  476. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  477. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  478. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  479. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  480. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
  481. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  482. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  483. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  484. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  485. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  486. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  487. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  488. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  489. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  490. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  491. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  492. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  493. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  494. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  495. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  496. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  497. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  498. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  499. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  500. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  501. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  502. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  503. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  504. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  505. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  506. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  507. package/dist/lib/shiki.d.ts +31 -0
  508. package/dist/lib/shiki.js +101 -0
  509. package/dist/lib/shiki.js.map +1 -0
  510. package/dist/lib/ui/Alert.d.ts +5 -4
  511. package/dist/lib/ui/Alert.js +12 -10
  512. package/dist/lib/ui/Alert.js.map +1 -1
  513. package/dist/lib/ui/Badge.d.ts +2 -2
  514. package/dist/lib/ui/Badge.js +1 -1
  515. package/dist/lib/ui/Badge.js.map +1 -1
  516. package/dist/lib/ui/Button.d.ts +3 -3
  517. package/dist/lib/ui/Button.js +9 -6
  518. package/dist/lib/ui/Button.js.map +1 -1
  519. package/dist/lib/ui/Callout.d.ts +2 -1
  520. package/dist/lib/ui/Callout.js +3 -2
  521. package/dist/lib/ui/Callout.js.map +1 -1
  522. package/dist/lib/ui/Card.js +1 -1
  523. package/dist/lib/ui/Checkbox.d.ts +2 -8
  524. package/dist/lib/ui/Checkbox.js +1 -13
  525. package/dist/lib/ui/Checkbox.js.map +1 -1
  526. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  527. package/dist/lib/ui/CodeBlock.js +17 -0
  528. package/dist/lib/ui/CodeBlock.js.map +1 -0
  529. package/dist/lib/ui/Command.d.ts +8 -2
  530. package/dist/lib/ui/Command.js +5 -5
  531. package/dist/lib/ui/Command.js.map +1 -1
  532. package/dist/lib/ui/Dialog.d.ts +3 -1
  533. package/dist/lib/ui/Dialog.js +2 -2
  534. package/dist/lib/ui/Dialog.js.map +1 -1
  535. package/dist/lib/ui/DropdownMenu.js +4 -4
  536. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  537. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  538. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  539. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  540. package/dist/lib/ui/Form.d.ts +1 -1
  541. package/dist/lib/ui/HoverCard.js +1 -1
  542. package/dist/lib/ui/HoverCard.js.map +1 -1
  543. package/dist/lib/ui/Input.d.ts +1 -2
  544. package/dist/lib/ui/Input.js +1 -1
  545. package/dist/lib/ui/Input.js.map +1 -1
  546. package/dist/lib/ui/Popover.js +1 -1
  547. package/dist/lib/ui/Popover.js.map +1 -1
  548. package/dist/lib/ui/RadioGroup.js +1 -1
  549. package/dist/lib/ui/RadioGroup.js.map +1 -1
  550. package/dist/lib/ui/Select.js +2 -2
  551. package/dist/lib/ui/Select.js.map +1 -1
  552. package/dist/lib/ui/Slider.js +1 -1
  553. package/dist/lib/ui/Slider.js.map +1 -1
  554. package/dist/lib/ui/Stepper.d.ts +3 -0
  555. package/dist/lib/ui/Stepper.js +7 -0
  556. package/dist/lib/ui/Stepper.js.map +1 -0
  557. package/dist/lib/ui/Switch.js +1 -1
  558. package/dist/lib/ui/Switch.js.map +1 -1
  559. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  560. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  561. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  562. package/dist/lib/ui/Tabs.js +2 -2
  563. package/dist/lib/ui/Tabs.js.map +1 -1
  564. package/dist/lib/ui/Textarea.js +1 -1
  565. package/dist/lib/ui/Textarea.js.map +1 -1
  566. package/dist/lib/ui/Toggle.js +1 -1
  567. package/dist/lib/ui/Toggle.js.map +1 -1
  568. package/dist/lib/ui/Tooltip.d.ts +2 -1
  569. package/dist/lib/ui/Tooltip.js +2 -1
  570. package/dist/lib/ui/Tooltip.js.map +1 -1
  571. package/dist/lib/ui/util.d.ts +2 -0
  572. package/dist/lib/ui/util.js +3 -0
  573. package/dist/lib/ui/util.js.map +1 -0
  574. package/dist/lib/util/MdxComponents.d.ts +22 -4
  575. package/dist/lib/util/MdxComponents.js +21 -15
  576. package/dist/lib/util/MdxComponents.js.map +1 -1
  577. package/dist/lib/util/detectOS.d.ts +1 -0
  578. package/dist/lib/util/detectOS.js +11 -0
  579. package/dist/lib/util/detectOS.js.map +1 -0
  580. package/dist/lib/util/ensureArray.d.ts +1 -0
  581. package/dist/lib/util/ensureArray.js +2 -0
  582. package/dist/lib/util/ensureArray.js.map +1 -0
  583. package/dist/lib/util/humanFileSize.d.ts +6 -0
  584. package/dist/lib/util/humanFileSize.js +14 -0
  585. package/dist/lib/util/humanFileSize.js.map +1 -0
  586. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  587. package/dist/lib/util/humanFileSize.test.js +22 -0
  588. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  589. package/dist/lib/util/joinPath.d.ts +3 -0
  590. package/dist/lib/util/joinPath.js +3 -0
  591. package/dist/lib/util/joinPath.js.map +1 -1
  592. package/dist/lib/util/os.d.ts +2 -0
  593. package/dist/lib/util/os.js +21 -0
  594. package/dist/lib/util/os.js.map +1 -0
  595. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  596. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  597. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  598. package/dist/lib/util/traverse.d.ts +3 -9
  599. package/dist/lib/util/traverse.js +7 -6
  600. package/dist/lib/util/traverse.js.map +1 -1
  601. package/dist/lib/util/types.d.ts +7 -0
  602. package/dist/lib/util/types.js +2 -0
  603. package/dist/lib/util/types.js.map +1 -0
  604. package/dist/lib/util/url.d.ts +4 -0
  605. package/dist/lib/util/url.js +13 -0
  606. package/dist/lib/util/url.js.map +1 -0
  607. package/dist/lib/util/url.test.d.ts +1 -0
  608. package/dist/lib/util/url.test.js +26 -0
  609. package/dist/lib/util/url.test.js.map +1 -0
  610. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  611. package/dist/lib/util/useCopyToClipboard.js +11 -0
  612. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  613. package/dist/lib/util/useExposedProps.d.ts +8 -1
  614. package/dist/lib/util/useExposedProps.js.map +1 -1
  615. package/dist/lib/util/useLatest.d.ts +1 -0
  616. package/dist/lib/util/useLatest.js +15 -0
  617. package/dist/lib/util/useLatest.js.map +1 -0
  618. package/dist/lib/util/useOnScreen.d.ts +3 -2
  619. package/dist/lib/util/useOnScreen.js +3 -3
  620. package/dist/lib/util/useOnScreen.js.map +1 -1
  621. package/dist/lib/util/useScrollToAnchor.js +28 -34
  622. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  623. package/dist/lib/util/useScrollToTop.js +6 -4
  624. package/dist/lib/util/useScrollToTop.js.map +1 -1
  625. package/dist/vite/api/SchemaManager.d.ts +36 -0
  626. package/dist/vite/api/SchemaManager.js +141 -0
  627. package/dist/vite/api/SchemaManager.js.map +1 -0
  628. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  629. package/dist/vite/api/SchemaManager.test.js +106 -0
  630. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  631. package/dist/vite/api/schema-codegen.d.ts +1 -1
  632. package/dist/vite/api/schema-codegen.js +73 -19
  633. package/dist/vite/api/schema-codegen.js.map +1 -1
  634. package/dist/vite/api/schema-codegen.test.js +148 -0
  635. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  636. package/dist/vite/build.js +42 -22
  637. package/dist/vite/build.js.map +1 -1
  638. package/dist/vite/config.d.ts +2 -12
  639. package/dist/vite/config.js +101 -150
  640. package/dist/vite/config.js.map +1 -1
  641. package/dist/vite/config.test.js +2 -2
  642. package/dist/vite/config.test.js.map +1 -1
  643. package/dist/vite/create-pagefind-index.d.ts +4 -0
  644. package/dist/vite/create-pagefind-index.js +12 -0
  645. package/dist/vite/create-pagefind-index.js.map +1 -0
  646. package/dist/vite/css/plugin.d.ts +1 -2
  647. package/dist/vite/css/plugin.js +14 -2
  648. package/dist/vite/css/plugin.js.map +1 -1
  649. package/dist/vite/dev-server.d.ts +4 -3
  650. package/dist/vite/dev-server.js +53 -22
  651. package/dist/vite/dev-server.js.map +1 -1
  652. package/dist/vite/error-handler.d.ts +1 -1
  653. package/dist/vite/error-handler.js +1 -1
  654. package/dist/vite/error-handler.js.map +1 -1
  655. package/dist/vite/html.d.ts +7 -3
  656. package/dist/vite/html.js +15 -9
  657. package/dist/vite/html.js.map +1 -1
  658. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  659. package/dist/vite/mdx/remark-last-modified.js +56 -0
  660. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  661. package/dist/vite/mdx/utils.d.ts +2 -0
  662. package/dist/vite/mdx/utils.js +31 -0
  663. package/dist/vite/mdx/utils.js.map +1 -0
  664. package/dist/vite/output.d.ts +14 -2
  665. package/dist/vite/output.js +12 -14
  666. package/dist/vite/output.js.map +1 -1
  667. package/dist/vite/plugin-api-keys.d.ts +1 -2
  668. package/dist/vite/plugin-api-keys.js +13 -7
  669. package/dist/vite/plugin-api-keys.js.map +1 -1
  670. package/dist/vite/plugin-api.d.ts +1 -2
  671. package/dist/vite/plugin-api.js +136 -162
  672. package/dist/vite/plugin-api.js.map +1 -1
  673. package/dist/vite/plugin-auth.d.ts +1 -2
  674. package/dist/vite/plugin-auth.js +6 -5
  675. package/dist/vite/plugin-auth.js.map +1 -1
  676. package/dist/vite/plugin-component.d.ts +1 -2
  677. package/dist/vite/plugin-component.js +10 -4
  678. package/dist/vite/plugin-component.js.map +1 -1
  679. package/dist/vite/plugin-config-reload.d.ts +3 -3
  680. package/dist/vite/plugin-config-reload.js +31 -23
  681. package/dist/vite/plugin-config-reload.js.map +1 -1
  682. package/dist/vite/plugin-config.d.ts +1 -2
  683. package/dist/vite/plugin-config.js +11 -6
  684. package/dist/vite/plugin-config.js.map +1 -1
  685. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  686. package/dist/vite/plugin-custom-pages.js +7 -6
  687. package/dist/vite/plugin-custom-pages.js.map +1 -1
  688. package/dist/vite/plugin-docs.d.ts +2 -3
  689. package/dist/vite/plugin-docs.js +66 -46
  690. package/dist/vite/plugin-docs.js.map +1 -1
  691. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  692. package/dist/vite/plugin-frontmatter.js +13 -7
  693. package/dist/vite/plugin-frontmatter.js.map +1 -1
  694. package/dist/vite/plugin-mdx.d.ts +1 -2
  695. package/dist/vite/plugin-mdx.js +49 -64
  696. package/dist/vite/plugin-mdx.js.map +1 -1
  697. package/dist/vite/plugin-navigation.d.ts +4 -0
  698. package/dist/vite/plugin-navigation.js +64 -0
  699. package/dist/vite/plugin-navigation.js.map +1 -0
  700. package/dist/vite/plugin-redirect.d.ts +1 -2
  701. package/dist/vite/plugin-redirect.js +6 -5
  702. package/dist/vite/plugin-redirect.js.map +1 -1
  703. package/dist/vite/plugin-search.d.ts +1 -2
  704. package/dist/vite/plugin-search.js +8 -3
  705. package/dist/vite/plugin-search.js.map +1 -1
  706. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  707. package/dist/vite/plugin-shiki-register.js +39 -0
  708. package/dist/vite/plugin-shiki-register.js.map +1 -0
  709. package/dist/vite/plugin-theme.d.ts +8 -0
  710. package/dist/vite/plugin-theme.js +235 -0
  711. package/dist/vite/plugin-theme.js.map +1 -0
  712. package/dist/vite/plugin-theme.test.d.ts +1 -0
  713. package/dist/vite/plugin-theme.test.js +291 -0
  714. package/dist/vite/plugin-theme.test.js.map +1 -0
  715. package/dist/vite/plugin.d.ts +1 -2
  716. package/dist/vite/plugin.js +23 -22
  717. package/dist/vite/plugin.js.map +1 -1
  718. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  719. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  720. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  721. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  722. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  723. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  724. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  725. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  726. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  727. package/dist/vite/prerender/prerender.d.ts +15 -0
  728. package/dist/vite/prerender/prerender.js +109 -0
  729. package/dist/vite/prerender/prerender.js.map +1 -0
  730. package/dist/vite/prerender/worker.d.ts +13 -0
  731. package/dist/vite/prerender/worker.js +59 -0
  732. package/dist/vite/prerender/worker.js.map +1 -0
  733. package/dist/vite/reporter.d.ts +3 -0
  734. package/dist/vite/reporter.js +33 -0
  735. package/dist/vite/reporter.js.map +1 -0
  736. package/dist/vite/shadcn-registry.d.ts +45 -0
  737. package/dist/vite/shadcn-registry.js +29 -0
  738. package/dist/vite/shadcn-registry.js.map +1 -0
  739. package/dist/vite/sitemap.d.ts +1 -1
  740. package/dist/vite/sitemap.js +2 -1
  741. package/dist/vite/sitemap.js.map +1 -1
  742. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  743. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  744. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  745. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  746. package/dist/zuplo/with-zuplo-processors.js +7 -7
  747. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  748. package/dist/zuplo/with-zuplo.d.ts +5 -2
  749. package/dist/zuplo/with-zuplo.js +6 -5
  750. package/dist/zuplo/with-zuplo.js.map +1 -1
  751. package/lib/Alert-CT_ViLrJ.js +161 -0
  752. package/lib/Alert-CT_ViLrJ.js.map +1 -0
  753. package/lib/Button-BE9IVkWV.js +51 -0
  754. package/lib/Button-BE9IVkWV.js.map +1 -0
  755. package/lib/Card-DPhGbYUM.js +61 -0
  756. package/lib/Card-DPhGbYUM.js.map +1 -0
  757. package/lib/CodeBlock-DAKxs_Tu.js +85 -0
  758. package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
  759. package/lib/Command-xsbs2uhf.js +140 -0
  760. package/lib/Command-xsbs2uhf.js.map +1 -0
  761. package/lib/Dialog-CiIdyz6a.js +99 -0
  762. package/lib/Dialog-CiIdyz6a.js.map +1 -0
  763. package/lib/Drawer-BzkOKwgC.js +1133 -0
  764. package/lib/Drawer-BzkOKwgC.js.map +1 -0
  765. package/lib/MdxPage-swXPJ0gf.js +110 -0
  766. package/lib/MdxPage-swXPJ0gf.js.map +1 -0
  767. package/lib/OasProvider-CDAM3TB1.js +35 -0
  768. package/lib/OasProvider-CDAM3TB1.js.map +1 -0
  769. package/lib/OperationList-C9Hb9ql8.js +5166 -0
  770. package/lib/OperationList-C9Hb9ql8.js.map +1 -0
  771. package/lib/Pagination-VGlgeCmS.js +36 -0
  772. package/lib/Pagination-VGlgeCmS.js.map +1 -0
  773. package/lib/RouteGuard-CbKd7_9h.js +737 -0
  774. package/lib/RouteGuard-CbKd7_9h.js.map +1 -0
  775. package/lib/SchemaList-BAbh1BXO.js +149 -0
  776. package/lib/SchemaList-BAbh1BXO.js.map +1 -0
  777. package/lib/SchemaView-C2Io712T.js +366 -0
  778. package/lib/SchemaView-C2Io712T.js.map +1 -0
  779. package/lib/SignUp-5RUdVhnq.js +63 -0
  780. package/lib/SignUp-5RUdVhnq.js.map +1 -0
  781. package/lib/Slot-DwZlQ-vX.js +15735 -0
  782. package/lib/Slot-DwZlQ-vX.js.map +1 -0
  783. package/lib/Spinner-mNLZ6awP.js +7 -0
  784. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  785. package/lib/SyntaxHighlight-CrjhGEwT.js +10306 -0
  786. package/lib/SyntaxHighlight-CrjhGEwT.js.map +1 -0
  787. package/lib/Toc-WCmwFkX-.js +92 -0
  788. package/lib/Toc-WCmwFkX-.js.map +1 -0
  789. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js +1839 -0
  790. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -0
  791. package/lib/circular-B42RaanD.js +14934 -0
  792. package/lib/circular-B42RaanD.js.map +1 -0
  793. package/lib/clerk-BDZ31hjU.js +25190 -0
  794. package/lib/clerk-BDZ31hjU.js.map +1 -0
  795. package/lib/clsx-OuTLNxxd.js +17 -0
  796. package/lib/clsx-OuTLNxxd.js.map +1 -0
  797. package/lib/cn-wvCW-ho6.js +2731 -0
  798. package/lib/cn-wvCW-ho6.js.map +1 -0
  799. package/lib/createServer-BKFsRuuk.js +12659 -0
  800. package/lib/createServer-BKFsRuuk.js.map +1 -0
  801. package/lib/errors-CF2X_x5o.js +78 -0
  802. package/lib/errors-CF2X_x5o.js.map +1 -0
  803. package/lib/hook-Bd0yS8M0.js +1503 -0
  804. package/lib/hook-Bd0yS8M0.js.map +1 -0
  805. package/lib/index-B6Re5_cx.js +3469 -0
  806. package/lib/index-B6Re5_cx.js.map +1 -0
  807. package/lib/index-CLy1XyH0.js +3919 -0
  808. package/lib/index-CLy1XyH0.js.map +1 -0
  809. package/lib/index-CcV90rin.js +2094 -0
  810. package/lib/index-CcV90rin.js.map +1 -0
  811. package/lib/index-ClhS5TxS.js +107 -0
  812. package/lib/index-ClhS5TxS.js.map +1 -0
  813. package/lib/index-CrcNWbel.js +316 -0
  814. package/lib/index-CrcNWbel.js.map +1 -0
  815. package/lib/index-DI5SPFK9.js +36 -0
  816. package/lib/index-DI5SPFK9.js.map +1 -0
  817. package/lib/index-DmNq2fbN.js +4827 -0
  818. package/lib/index-DmNq2fbN.js.map +1 -0
  819. package/lib/index.esm-Cp4wkyud.js +1236 -0
  820. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  821. package/lib/invariant-DAFpPywt.js +48 -0
  822. package/lib/invariant-DAFpPywt.js.map +1 -0
  823. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  824. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  825. package/lib/processors/removeExtensions.js +11 -0
  826. package/lib/processors/removeExtensions.js.map +1 -0
  827. package/lib/processors/removeParameters.js +47 -0
  828. package/lib/processors/removeParameters.js.map +1 -0
  829. package/lib/processors/removePaths.js +28 -0
  830. package/lib/processors/removePaths.js.map +1 -0
  831. package/lib/processors/traverse.js +17 -0
  832. package/lib/processors/traverse.js.map +1 -0
  833. package/lib/ui/Accordion.js +2 -2
  834. package/lib/ui/ActionButton.js +11 -10
  835. package/lib/ui/ActionButton.js.map +1 -1
  836. package/lib/ui/Alert.js +55 -39
  837. package/lib/ui/Alert.js.map +1 -1
  838. package/lib/ui/AlertDialog.js +2 -2
  839. package/lib/ui/Badge.js +4 -4
  840. package/lib/ui/Badge.js.map +1 -1
  841. package/lib/ui/Breadcrumb.js +5 -5
  842. package/lib/ui/Button.js +22 -19
  843. package/lib/ui/Button.js.map +1 -1
  844. package/lib/ui/Callout.js +40 -20
  845. package/lib/ui/Callout.js.map +1 -1
  846. package/lib/ui/Card.js +9 -9
  847. package/lib/ui/Card.js.map +1 -1
  848. package/lib/ui/Carousel.js +348 -348
  849. package/lib/ui/Carousel.js.map +1 -1
  850. package/lib/ui/Checkbox.js +16 -26
  851. package/lib/ui/Checkbox.js.map +1 -1
  852. package/lib/ui/CodeBlock.js +9 -0
  853. package/lib/ui/CodeBlock.js.map +1 -0
  854. package/lib/ui/Command.js +102 -75
  855. package/lib/ui/Command.js.map +1 -1
  856. package/lib/ui/Dialog.js +41 -41
  857. package/lib/ui/Dialog.js.map +1 -1
  858. package/lib/ui/Drawer.js +14 -1151
  859. package/lib/ui/Drawer.js.map +1 -1
  860. package/lib/ui/DropdownMenu.js +35 -35
  861. package/lib/ui/DropdownMenu.js.map +1 -1
  862. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  863. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  864. package/lib/ui/Form.js +6 -6
  865. package/lib/ui/HoverCard.js +6 -6
  866. package/lib/ui/HoverCard.js.map +1 -1
  867. package/lib/ui/Input.js +3 -3
  868. package/lib/ui/Input.js.map +1 -1
  869. package/lib/ui/Label.js +3 -3
  870. package/lib/ui/Pagination.js +11 -11
  871. package/lib/ui/Popover.js +3 -3
  872. package/lib/ui/Popover.js.map +1 -1
  873. package/lib/ui/Progress.js +2 -2
  874. package/lib/ui/RadioGroup.js +11 -11
  875. package/lib/ui/RadioGroup.js.map +1 -1
  876. package/lib/ui/ScrollArea.js +2 -2
  877. package/lib/ui/Select.js +32 -32
  878. package/lib/ui/Select.js.map +1 -1
  879. package/lib/ui/Skeleton.js +2 -2
  880. package/lib/ui/Slider.js +6 -6
  881. package/lib/ui/Slider.js.map +1 -1
  882. package/lib/ui/Stepper.js +6 -0
  883. package/lib/ui/Stepper.js.map +1 -0
  884. package/lib/ui/Switch.js +6 -6
  885. package/lib/ui/Switch.js.map +1 -1
  886. package/lib/ui/SyntaxHighlight.js +11 -0
  887. package/lib/ui/SyntaxHighlight.js.map +1 -0
  888. package/lib/ui/Tabs.js +17 -17
  889. package/lib/ui/Tabs.js.map +1 -1
  890. package/lib/ui/Textarea.js +6 -6
  891. package/lib/ui/Textarea.js.map +1 -1
  892. package/lib/ui/Toggle.js +8 -8
  893. package/lib/ui/Toggle.js.map +1 -1
  894. package/lib/ui/ToggleGroup.js +2 -2
  895. package/lib/ui/Tooltip.js +15 -8
  896. package/lib/ui/Tooltip.js.map +1 -1
  897. package/lib/ui/util.js +6 -0
  898. package/lib/ui/util.js.map +1 -0
  899. package/lib/useExposedProps-BIYjecPD.js +9 -0
  900. package/lib/useExposedProps-BIYjecPD.js.map +1 -0
  901. package/lib/zudoku.auth-auth0.js +34 -36
  902. package/lib/zudoku.auth-auth0.js.map +1 -1
  903. package/lib/zudoku.auth-azureb2c.js +9974 -0
  904. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  905. package/lib/zudoku.auth-clerk.js +104 -84
  906. package/lib/zudoku.auth-clerk.js.map +1 -1
  907. package/lib/zudoku.auth-openid.js +503 -543
  908. package/lib/zudoku.auth-openid.js.map +1 -1
  909. package/lib/zudoku.components.js +33 -1215
  910. package/lib/zudoku.components.js.map +1 -1
  911. package/lib/zudoku.hooks.js +27 -0
  912. package/lib/zudoku.hooks.js.map +1 -0
  913. package/lib/zudoku.icons.js +10 -0
  914. package/lib/zudoku.icons.js.map +1 -1
  915. package/lib/zudoku.plugin-api-catalog.js +108 -114
  916. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  917. package/lib/zudoku.plugin-api-keys.js +542 -205
  918. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  919. package/lib/zudoku.plugin-custom-pages.js +12 -18
  920. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  921. package/lib/zudoku.plugin-markdown.js +20 -94
  922. package/lib/zudoku.plugin-markdown.js.map +1 -1
  923. package/lib/zudoku.plugin-openapi.js +7 -7
  924. package/lib/zudoku.plugin-openapi.js.map +1 -1
  925. package/lib/zudoku.plugin-redirect.js +1 -1
  926. package/lib/zudoku.plugin-redirect.js.map +1 -1
  927. package/lib/zudoku.plugin-search-inkeep.js +25 -26
  928. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  929. package/lib/zudoku.plugin-search-pagefind.js +320 -0
  930. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  931. package/lib/zudoku.plugins.js +15 -0
  932. package/lib/zudoku.plugins.js.map +1 -0
  933. package/package.json +148 -90
  934. package/src/app/ZuploBuildConfig.ts +33 -0
  935. package/src/app/defaultTheme.css +73 -0
  936. package/src/app/demo-cdn.html +31 -31
  937. package/src/app/demo.html +1 -1
  938. package/src/app/demo.tsx +6 -5
  939. package/src/app/entry.client.tsx +51 -2
  940. package/src/app/entry.server.tsx +23 -15
  941. package/src/app/env.ts +43 -0
  942. package/src/app/font.geist.css +73 -0
  943. package/src/app/main.css +156 -143
  944. package/src/app/main.tsx +49 -41
  945. package/src/app/standalone.tsx +7 -6
  946. package/src/lib/MissingIcon.tsx +22 -0
  947. package/src/lib/auth/issuer.test.ts +120 -0
  948. package/src/lib/auth/issuer.ts +41 -0
  949. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  950. package/src/lib/authentication/authentication.ts +4 -5
  951. package/src/lib/authentication/components/CallbackHandler.tsx +12 -2
  952. package/src/lib/authentication/components/SignIn.tsx +35 -2
  953. package/src/lib/authentication/components/SignUp.tsx +35 -1
  954. package/src/lib/authentication/hook.ts +12 -1
  955. package/src/lib/authentication/providers/auth0.tsx +12 -5
  956. package/src/lib/authentication/providers/azureb2c.tsx +196 -0
  957. package/src/lib/authentication/providers/clerk.tsx +105 -62
  958. package/src/lib/authentication/providers/openid.tsx +112 -57
  959. package/src/lib/authentication/providers/supabase.tsx +150 -0
  960. package/src/lib/authentication/state.ts +46 -26
  961. package/src/lib/components/AnchorLink.tsx +9 -7
  962. package/src/lib/components/Autocomplete.tsx +9 -6
  963. package/src/lib/components/Banner.tsx +4 -3
  964. package/src/lib/components/Bootstrap.tsx +13 -6
  965. package/src/lib/components/BuildCheck.tsx +75 -0
  966. package/src/lib/components/ErrorPage.tsx +3 -3
  967. package/src/lib/components/Footer.tsx +136 -0
  968. package/src/lib/components/Framed.tsx +51 -0
  969. package/src/lib/components/Header.tsx +47 -43
  970. package/src/lib/components/Heading.tsx +18 -10
  971. package/src/lib/components/InlineCode.tsx +13 -16
  972. package/src/lib/components/Layout.tsx +30 -71
  973. package/src/lib/components/Main.tsx +51 -0
  974. package/src/lib/components/Markdown.tsx +40 -27
  975. package/src/lib/components/MobileTopNavigation.tsx +35 -20
  976. package/src/lib/components/NotFoundPage.tsx +3 -3
  977. package/src/lib/components/PageProgress.tsx +28 -0
  978. package/src/lib/components/Pagination.tsx +44 -0
  979. package/src/lib/components/PathRenderer.tsx +6 -4
  980. package/src/lib/components/Search.tsx +15 -4
  981. package/src/lib/components/Slot.test.tsx +465 -0
  982. package/src/lib/components/Slot.tsx +64 -0
  983. package/src/lib/components/ThemeSwitch.tsx +28 -8
  984. package/src/lib/components/TopNavigation.tsx +71 -65
  985. package/src/lib/components/Typography.tsx +14 -0
  986. package/src/lib/components/Zudoku.tsx +27 -16
  987. package/src/lib/components/cache.ts +8 -0
  988. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  989. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  990. package/src/lib/components/context/SlotProvider.tsx +149 -0
  991. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  992. package/src/lib/components/context/ZudokuContext.ts +62 -25
  993. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  994. package/src/lib/components/index.ts +21 -9
  995. package/src/lib/components/navigation/Navigation.tsx +50 -0
  996. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  997. package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
  998. package/src/lib/components/navigation/NavigationItem.tsx +151 -0
  999. package/src/lib/components/navigation/NavigationWrapper.tsx +46 -0
  1000. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1001. package/src/lib/components/navigation/Toc.tsx +126 -0
  1002. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1003. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1004. package/src/lib/components/navigation/utils.ts +63 -28
  1005. package/src/lib/core/RouteGuard.tsx +73 -12
  1006. package/src/lib/core/ZudokuContext.ts +94 -31
  1007. package/src/lib/core/plugins.ts +39 -9
  1008. package/src/lib/errors/ErrorAlert.tsx +19 -18
  1009. package/src/lib/hooks/index.ts +16 -0
  1010. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1011. package/src/lib/hooks/useEvent.ts +41 -0
  1012. package/src/lib/hooks/useHotkey.ts +70 -0
  1013. package/src/lib/icons.ts +1 -0
  1014. package/src/lib/oas/graphql/circular.ts +27 -19
  1015. package/src/lib/oas/graphql/index.ts +223 -73
  1016. package/src/lib/oas/parser/dereference/index.ts +2 -0
  1017. package/src/lib/oas/parser/index.ts +14 -30
  1018. package/src/lib/oas/parser/upgrade/index.ts +97 -26
  1019. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  1020. package/src/lib/plugins/api-catalog/index.tsx +72 -21
  1021. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  1022. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +459 -115
  1023. package/src/lib/plugins/api-keys/index.tsx +134 -58
  1024. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  1025. package/src/lib/plugins/markdown/MdxPage.tsx +84 -62
  1026. package/src/lib/plugins/markdown/index.tsx +29 -42
  1027. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  1028. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  1029. package/src/lib/plugins/openapi/Endpoint.tsx +11 -9
  1030. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1031. package/src/lib/plugins/openapi/OperationList.tsx +189 -91
  1032. package/src/lib/plugins/openapi/OperationListItem.tsx +106 -111
  1033. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1034. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1035. package/src/lib/plugins/openapi/ParameterListItem.tsx +71 -23
  1036. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +23 -5
  1037. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1038. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1039. package/src/lib/plugins/openapi/Sidecar.tsx +63 -79
  1040. package/src/lib/plugins/openapi/SidecarExamples.tsx +10 -4
  1041. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1042. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  1043. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  1044. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1045. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1046. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1047. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1048. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  1049. package/src/lib/plugins/openapi/graphql/graphql.ts +175 -65
  1050. package/src/lib/plugins/openapi/index.tsx +92 -153
  1051. package/src/lib/plugins/openapi/interfaces.ts +50 -25
  1052. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1053. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1054. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +37 -32
  1055. package/src/lib/plugins/openapi/playground/Headers.tsx +235 -102
  1056. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1057. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1058. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1059. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +6 -1
  1060. package/src/lib/plugins/openapi/playground/PathParams.tsx +19 -14
  1061. package/src/lib/plugins/openapi/playground/Playground.tsx +347 -281
  1062. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
  1063. package/src/lib/plugins/openapi/playground/QueryParams.tsx +144 -97
  1064. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1065. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1066. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1067. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1068. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1069. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1070. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1071. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  1072. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +150 -89
  1073. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +79 -78
  1074. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1075. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1076. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1077. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1078. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1079. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1080. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1081. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1082. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1083. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1084. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1085. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +71 -63
  1086. package/src/lib/plugins/openapi/schema/SchemaView.tsx +99 -143
  1087. package/src/lib/plugins/openapi/schema/utils.ts +30 -6
  1088. package/src/lib/plugins/openapi/state.ts +36 -0
  1089. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1090. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
  1091. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  1092. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1093. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1094. package/src/lib/plugins/redirect/index.tsx +1 -1
  1095. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1096. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1097. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1098. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1099. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1100. package/src/lib/shiki.ts +132 -0
  1101. package/src/lib/ui/Alert.tsx +44 -38
  1102. package/src/lib/ui/Badge.tsx +2 -2
  1103. package/src/lib/ui/Button.tsx +12 -7
  1104. package/src/lib/ui/Callout.tsx +30 -10
  1105. package/src/lib/ui/Card.tsx +1 -1
  1106. package/src/lib/ui/Checkbox.tsx +8 -24
  1107. package/src/lib/ui/CodeBlock.tsx +88 -0
  1108. package/src/lib/ui/Command.tsx +29 -7
  1109. package/src/lib/ui/Dialog.tsx +11 -7
  1110. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1111. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1112. package/src/lib/ui/HoverCard.tsx +1 -1
  1113. package/src/lib/ui/Input.tsx +2 -3
  1114. package/src/lib/ui/Popover.tsx +1 -1
  1115. package/src/lib/ui/RadioGroup.tsx +1 -1
  1116. package/src/lib/ui/Select.tsx +3 -3
  1117. package/src/lib/ui/Slider.tsx +1 -1
  1118. package/src/lib/ui/Stepper.tsx +8 -0
  1119. package/src/lib/ui/Switch.tsx +1 -1
  1120. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1121. package/src/lib/ui/Tabs.tsx +2 -2
  1122. package/src/lib/ui/Textarea.tsx +1 -1
  1123. package/src/lib/ui/Toggle.tsx +1 -1
  1124. package/src/lib/ui/Tooltip.tsx +16 -1
  1125. package/src/lib/ui/util.tsx +3 -0
  1126. package/src/lib/util/MdxComponents.tsx +49 -20
  1127. package/src/lib/util/detectOS.ts +9 -0
  1128. package/src/lib/util/ensureArray.ts +3 -0
  1129. package/src/lib/util/humanFileSize.test.ts +24 -0
  1130. package/src/lib/util/humanFileSize.ts +16 -0
  1131. package/src/lib/util/joinPath.tsx +3 -0
  1132. package/src/lib/util/os.ts +18 -0
  1133. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1134. package/src/lib/util/traverse.ts +12 -13
  1135. package/src/lib/util/types.ts +7 -0
  1136. package/src/lib/util/url.test.ts +51 -0
  1137. package/src/lib/util/url.ts +18 -0
  1138. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1139. package/src/lib/util/useExposedProps.tsx +12 -1
  1140. package/src/lib/util/useLatest.ts +18 -0
  1141. package/src/lib/util/useOnScreen.ts +6 -4
  1142. package/src/lib/util/useScrollToAnchor.ts +32 -40
  1143. package/src/lib/util/useScrollToTop.ts +8 -3
  1144. package/src/shiki/langs/abap.js +1 -0
  1145. package/src/shiki/langs/actionscript-3.js +1 -0
  1146. package/src/shiki/langs/ada.js +1 -0
  1147. package/src/shiki/langs/angular-expression.js +1 -0
  1148. package/src/shiki/langs/angular-html.js +1 -0
  1149. package/src/shiki/langs/angular-inline-style.js +1 -0
  1150. package/src/shiki/langs/angular-inline-template.js +1 -0
  1151. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1152. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1153. package/src/shiki/langs/angular-template.js +1 -0
  1154. package/src/shiki/langs/angular-ts.js +1 -0
  1155. package/src/shiki/langs/apache.js +1 -0
  1156. package/src/shiki/langs/apex.js +1 -0
  1157. package/src/shiki/langs/apl.js +1 -0
  1158. package/src/shiki/langs/applescript.js +1 -0
  1159. package/src/shiki/langs/ara.js +1 -0
  1160. package/src/shiki/langs/asciidoc.js +1 -0
  1161. package/src/shiki/langs/asm.js +1 -0
  1162. package/src/shiki/langs/astro.js +1 -0
  1163. package/src/shiki/langs/awk.js +1 -0
  1164. package/src/shiki/langs/ballerina.js +1 -0
  1165. package/src/shiki/langs/bat.js +1 -0
  1166. package/src/shiki/langs/beancount.js +1 -0
  1167. package/src/shiki/langs/berry.js +1 -0
  1168. package/src/shiki/langs/bibtex.js +1 -0
  1169. package/src/shiki/langs/bicep.js +1 -0
  1170. package/src/shiki/langs/blade.js +1 -0
  1171. package/src/shiki/langs/bsl.js +1 -0
  1172. package/src/shiki/langs/c.js +1 -0
  1173. package/src/shiki/langs/cadence.js +1 -0
  1174. package/src/shiki/langs/cairo.js +1 -0
  1175. package/src/shiki/langs/clarity.js +1 -0
  1176. package/src/shiki/langs/clojure.js +1 -0
  1177. package/src/shiki/langs/cmake.js +1 -0
  1178. package/src/shiki/langs/cobol.js +1 -0
  1179. package/src/shiki/langs/codeowners.js +1 -0
  1180. package/src/shiki/langs/codeql.js +1 -0
  1181. package/src/shiki/langs/coffee.js +1 -0
  1182. package/src/shiki/langs/common-lisp.js +1 -0
  1183. package/src/shiki/langs/coq.js +1 -0
  1184. package/src/shiki/langs/cpp-macro.js +1 -0
  1185. package/src/shiki/langs/cpp.js +1 -0
  1186. package/src/shiki/langs/crystal.js +1 -0
  1187. package/src/shiki/langs/csharp.js +1 -0
  1188. package/src/shiki/langs/css.js +1 -0
  1189. package/src/shiki/langs/csv.js +1 -0
  1190. package/src/shiki/langs/cue.js +1 -0
  1191. package/src/shiki/langs/cypher.js +1 -0
  1192. package/src/shiki/langs/d.js +1 -0
  1193. package/src/shiki/langs/dart.js +1 -0
  1194. package/src/shiki/langs/dax.js +1 -0
  1195. package/src/shiki/langs/desktop.js +1 -0
  1196. package/src/shiki/langs/diff.js +1 -0
  1197. package/src/shiki/langs/docker.js +1 -0
  1198. package/src/shiki/langs/dotenv.js +1 -0
  1199. package/src/shiki/langs/dream-maker.js +1 -0
  1200. package/src/shiki/langs/edge.js +1 -0
  1201. package/src/shiki/langs/elixir.js +1 -0
  1202. package/src/shiki/langs/elm.js +1 -0
  1203. package/src/shiki/langs/emacs-lisp.js +1 -0
  1204. package/src/shiki/langs/erb.js +1 -0
  1205. package/src/shiki/langs/erlang.js +1 -0
  1206. package/src/shiki/langs/es-tag-css.js +1 -0
  1207. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1208. package/src/shiki/langs/es-tag-html.js +1 -0
  1209. package/src/shiki/langs/es-tag-sql.js +1 -0
  1210. package/src/shiki/langs/es-tag-xml.js +1 -0
  1211. package/src/shiki/langs/fennel.js +1 -0
  1212. package/src/shiki/langs/fish.js +1 -0
  1213. package/src/shiki/langs/fluent.js +1 -0
  1214. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1215. package/src/shiki/langs/fortran-free-form.js +1 -0
  1216. package/src/shiki/langs/fsharp.js +1 -0
  1217. package/src/shiki/langs/gdresource.js +1 -0
  1218. package/src/shiki/langs/gdscript.js +1 -0
  1219. package/src/shiki/langs/gdshader.js +1 -0
  1220. package/src/shiki/langs/genie.js +1 -0
  1221. package/src/shiki/langs/gherkin.js +1 -0
  1222. package/src/shiki/langs/git-commit.js +1 -0
  1223. package/src/shiki/langs/git-rebase.js +1 -0
  1224. package/src/shiki/langs/gleam.js +1 -0
  1225. package/src/shiki/langs/glimmer-js.js +1 -0
  1226. package/src/shiki/langs/glimmer-ts.js +1 -0
  1227. package/src/shiki/langs/glsl.js +1 -0
  1228. package/src/shiki/langs/gnuplot.js +1 -0
  1229. package/src/shiki/langs/go.js +1 -0
  1230. package/src/shiki/langs/graphql.js +1 -0
  1231. package/src/shiki/langs/groovy.js +1 -0
  1232. package/src/shiki/langs/hack.js +1 -0
  1233. package/src/shiki/langs/haml.js +1 -0
  1234. package/src/shiki/langs/handlebars.js +1 -0
  1235. package/src/shiki/langs/haskell.js +1 -0
  1236. package/src/shiki/langs/haxe.js +1 -0
  1237. package/src/shiki/langs/hcl.js +1 -0
  1238. package/src/shiki/langs/hjson.js +1 -0
  1239. package/src/shiki/langs/hlsl.js +1 -0
  1240. package/src/shiki/langs/html-derivative.js +1 -0
  1241. package/src/shiki/langs/html.js +1 -0
  1242. package/src/shiki/langs/http.js +1 -0
  1243. package/src/shiki/langs/hxml.js +1 -0
  1244. package/src/shiki/langs/hy.js +1 -0
  1245. package/src/shiki/langs/imba.js +1 -0
  1246. package/src/shiki/langs/ini.js +1 -0
  1247. package/src/shiki/langs/java.js +1 -0
  1248. package/src/shiki/langs/javascript.js +1 -0
  1249. package/src/shiki/langs/jinja-html.js +1 -0
  1250. package/src/shiki/langs/jinja.js +1 -0
  1251. package/src/shiki/langs/jison.js +1 -0
  1252. package/src/shiki/langs/json.js +1 -0
  1253. package/src/shiki/langs/json5.js +1 -0
  1254. package/src/shiki/langs/jsonc.js +1 -0
  1255. package/src/shiki/langs/jsonl.js +1 -0
  1256. package/src/shiki/langs/jsonnet.js +1 -0
  1257. package/src/shiki/langs/jssm.js +1 -0
  1258. package/src/shiki/langs/jsx.js +1 -0
  1259. package/src/shiki/langs/julia.js +1 -0
  1260. package/src/shiki/langs/kotlin.js +1 -0
  1261. package/src/shiki/langs/kusto.js +1 -0
  1262. package/src/shiki/langs/latex.js +1 -0
  1263. package/src/shiki/langs/lean.js +1 -0
  1264. package/src/shiki/langs/less.js +1 -0
  1265. package/src/shiki/langs/liquid.js +1 -0
  1266. package/src/shiki/langs/llvm.js +1 -0
  1267. package/src/shiki/langs/log.js +1 -0
  1268. package/src/shiki/langs/logo.js +1 -0
  1269. package/src/shiki/langs/lua.js +1 -0
  1270. package/src/shiki/langs/luau.js +1 -0
  1271. package/src/shiki/langs/make.js +1 -0
  1272. package/src/shiki/langs/markdown-vue.js +1 -0
  1273. package/src/shiki/langs/markdown.js +1 -0
  1274. package/src/shiki/langs/marko.js +1 -0
  1275. package/src/shiki/langs/matlab.js +1 -0
  1276. package/src/shiki/langs/mdc.js +1 -0
  1277. package/src/shiki/langs/mdx.js +1 -0
  1278. package/src/shiki/langs/mermaid.js +1 -0
  1279. package/src/shiki/langs/mipsasm.js +1 -0
  1280. package/src/shiki/langs/mojo.js +1 -0
  1281. package/src/shiki/langs/move.js +1 -0
  1282. package/src/shiki/langs/narrat.js +1 -0
  1283. package/src/shiki/langs/nextflow.js +1 -0
  1284. package/src/shiki/langs/nginx.js +1 -0
  1285. package/src/shiki/langs/nim.js +1 -0
  1286. package/src/shiki/langs/nix.js +1 -0
  1287. package/src/shiki/langs/nushell.js +1 -0
  1288. package/src/shiki/langs/objective-c.js +1 -0
  1289. package/src/shiki/langs/objective-cpp.js +1 -0
  1290. package/src/shiki/langs/ocaml.js +1 -0
  1291. package/src/shiki/langs/pascal.js +1 -0
  1292. package/src/shiki/langs/perl.js +1 -0
  1293. package/src/shiki/langs/php.js +1 -0
  1294. package/src/shiki/langs/plsql.js +1 -0
  1295. package/src/shiki/langs/po.js +1 -0
  1296. package/src/shiki/langs/polar.js +1 -0
  1297. package/src/shiki/langs/postcss.js +1 -0
  1298. package/src/shiki/langs/powerquery.js +1 -0
  1299. package/src/shiki/langs/powershell.js +1 -0
  1300. package/src/shiki/langs/prisma.js +1 -0
  1301. package/src/shiki/langs/prolog.js +1 -0
  1302. package/src/shiki/langs/proto.js +1 -0
  1303. package/src/shiki/langs/pug.js +1 -0
  1304. package/src/shiki/langs/puppet.js +1 -0
  1305. package/src/shiki/langs/purescript.js +1 -0
  1306. package/src/shiki/langs/python.js +1 -0
  1307. package/src/shiki/langs/qml.js +1 -0
  1308. package/src/shiki/langs/qmldir.js +1 -0
  1309. package/src/shiki/langs/qss.js +1 -0
  1310. package/src/shiki/langs/r.js +1 -0
  1311. package/src/shiki/langs/racket.js +1 -0
  1312. package/src/shiki/langs/raku.js +1 -0
  1313. package/src/shiki/langs/razor.js +1 -0
  1314. package/src/shiki/langs/reg.js +1 -0
  1315. package/src/shiki/langs/regexp.js +1 -0
  1316. package/src/shiki/langs/rel.js +1 -0
  1317. package/src/shiki/langs/riscv.js +1 -0
  1318. package/src/shiki/langs/rst.js +1 -0
  1319. package/src/shiki/langs/ruby.js +1 -0
  1320. package/src/shiki/langs/rust.js +1 -0
  1321. package/src/shiki/langs/sas.js +1 -0
  1322. package/src/shiki/langs/sass.js +1 -0
  1323. package/src/shiki/langs/scala.js +1 -0
  1324. package/src/shiki/langs/scheme.js +1 -0
  1325. package/src/shiki/langs/scss.js +1 -0
  1326. package/src/shiki/langs/sdbl.js +1 -0
  1327. package/src/shiki/langs/shaderlab.js +1 -0
  1328. package/src/shiki/langs/shellscript.js +1 -0
  1329. package/src/shiki/langs/shellsession.js +1 -0
  1330. package/src/shiki/langs/smalltalk.js +1 -0
  1331. package/src/shiki/langs/solidity.js +1 -0
  1332. package/src/shiki/langs/soy.js +1 -0
  1333. package/src/shiki/langs/sparql.js +1 -0
  1334. package/src/shiki/langs/splunk.js +1 -0
  1335. package/src/shiki/langs/sql.js +1 -0
  1336. package/src/shiki/langs/ssh-config.js +1 -0
  1337. package/src/shiki/langs/stata.js +1 -0
  1338. package/src/shiki/langs/stylus.js +1 -0
  1339. package/src/shiki/langs/svelte.js +1 -0
  1340. package/src/shiki/langs/swift.js +1 -0
  1341. package/src/shiki/langs/system-verilog.js +1 -0
  1342. package/src/shiki/langs/systemd.js +1 -0
  1343. package/src/shiki/langs/talonscript.js +1 -0
  1344. package/src/shiki/langs/tasl.js +1 -0
  1345. package/src/shiki/langs/tcl.js +1 -0
  1346. package/src/shiki/langs/templ.js +1 -0
  1347. package/src/shiki/langs/terraform.js +1 -0
  1348. package/src/shiki/langs/tex.js +1 -0
  1349. package/src/shiki/langs/toml.js +1 -0
  1350. package/src/shiki/langs/ts-tags.js +1 -0
  1351. package/src/shiki/langs/tsv.js +1 -0
  1352. package/src/shiki/langs/tsx.js +1 -0
  1353. package/src/shiki/langs/turtle.js +1 -0
  1354. package/src/shiki/langs/twig.js +1 -0
  1355. package/src/shiki/langs/typescript.js +1 -0
  1356. package/src/shiki/langs/typespec.js +1 -0
  1357. package/src/shiki/langs/typst.js +1 -0
  1358. package/src/shiki/langs/v.js +1 -0
  1359. package/src/shiki/langs/vala.js +1 -0
  1360. package/src/shiki/langs/vb.js +1 -0
  1361. package/src/shiki/langs/verilog.js +1 -0
  1362. package/src/shiki/langs/vhdl.js +1 -0
  1363. package/src/shiki/langs/viml.js +1 -0
  1364. package/src/shiki/langs/vue-directives.js +1 -0
  1365. package/src/shiki/langs/vue-html.js +1 -0
  1366. package/src/shiki/langs/vue-interpolations.js +1 -0
  1367. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1368. package/src/shiki/langs/vue.js +1 -0
  1369. package/src/shiki/langs/vyper.js +1 -0
  1370. package/src/shiki/langs/wasm.js +1 -0
  1371. package/src/shiki/langs/wenyan.js +1 -0
  1372. package/src/shiki/langs/wgsl.js +1 -0
  1373. package/src/shiki/langs/wikitext.js +1 -0
  1374. package/src/shiki/langs/wit.js +1 -0
  1375. package/src/shiki/langs/wolfram.js +1 -0
  1376. package/src/shiki/langs/xml.js +1 -0
  1377. package/src/shiki/langs/xsl.js +1 -0
  1378. package/src/shiki/langs/yaml.js +1 -0
  1379. package/src/shiki/langs/zenscript.js +1 -0
  1380. package/src/shiki/langs/zig.js +1 -0
  1381. package/src/shiki/themes/andromeeda.js +1 -0
  1382. package/src/shiki/themes/aurora-x.js +1 -0
  1383. package/src/shiki/themes/ayu-dark.js +1 -0
  1384. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1385. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1386. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1387. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1388. package/src/shiki/themes/dark-plus.js +1 -0
  1389. package/src/shiki/themes/dracula-soft.js +1 -0
  1390. package/src/shiki/themes/dracula.js +1 -0
  1391. package/src/shiki/themes/everforest-dark.js +1 -0
  1392. package/src/shiki/themes/everforest-light.js +1 -0
  1393. package/src/shiki/themes/github-dark-default.js +1 -0
  1394. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1395. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1396. package/src/shiki/themes/github-dark.js +1 -0
  1397. package/src/shiki/themes/github-light-default.js +1 -0
  1398. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1399. package/src/shiki/themes/github-light.js +1 -0
  1400. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1401. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1402. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1403. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1404. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1405. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1406. package/src/shiki/themes/houston.js +1 -0
  1407. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1408. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1409. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1410. package/src/shiki/themes/laserwave.js +1 -0
  1411. package/src/shiki/themes/light-plus.js +1 -0
  1412. package/src/shiki/themes/material-theme-darker.js +1 -0
  1413. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1414. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1415. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1416. package/src/shiki/themes/material-theme.js +1 -0
  1417. package/src/shiki/themes/min-dark.js +1 -0
  1418. package/src/shiki/themes/min-light.js +1 -0
  1419. package/src/shiki/themes/monokai.js +1 -0
  1420. package/src/shiki/themes/night-owl.js +1 -0
  1421. package/src/shiki/themes/nord.js +1 -0
  1422. package/src/shiki/themes/one-dark-pro.js +1 -0
  1423. package/src/shiki/themes/one-light.js +1 -0
  1424. package/src/shiki/themes/plastic.js +1 -0
  1425. package/src/shiki/themes/poimandres.js +1 -0
  1426. package/src/shiki/themes/red.js +1 -0
  1427. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1428. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1429. package/src/shiki/themes/rose-pine.js +1 -0
  1430. package/src/shiki/themes/slack-dark.js +1 -0
  1431. package/src/shiki/themes/slack-ochin.js +1 -0
  1432. package/src/shiki/themes/snazzy-light.js +1 -0
  1433. package/src/shiki/themes/solarized-dark.js +1 -0
  1434. package/src/shiki/themes/solarized-light.js +1 -0
  1435. package/src/shiki/themes/synthwave-84.js +1 -0
  1436. package/src/shiki/themes/tokyo-night.js +1 -0
  1437. package/src/shiki/themes/vesper.js +1 -0
  1438. package/src/shiki/themes/vitesse-black.js +1 -0
  1439. package/src/shiki/themes/vitesse-dark.js +1 -0
  1440. package/src/shiki/themes/vitesse-light.js +1 -0
  1441. package/client.d.ts +0 -8
  1442. package/dist/app/tailwind.d.ts +0 -4
  1443. package/dist/app/tailwind.js +0 -77
  1444. package/dist/app/tailwind.js.map +0 -1
  1445. package/dist/config/common.d.ts +0 -8
  1446. package/dist/config/common.js +0 -2
  1447. package/dist/config/common.js.map +0 -1
  1448. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1449. package/dist/config/validators/InputSidebarSchema.js +0 -53
  1450. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1451. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1452. package/dist/config/validators/SidebarSchema.js +0 -118
  1453. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1454. package/dist/config/validators/common.d.ts +0 -5034
  1455. package/dist/config/validators/common.js +0 -287
  1456. package/dist/config/validators/common.js.map +0 -1
  1457. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1458. package/dist/lib/components/SlotletProvider.js +0 -18
  1459. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1460. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  1461. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1462. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1463. package/dist/lib/components/context/PluginSystem.js +0 -2
  1464. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1465. package/dist/lib/components/navigation/Sidebar.d.ts +0 -3
  1466. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1467. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1468. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -24
  1469. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1470. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1471. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1472. package/dist/lib/components/navigation/SidebarCategory.js +0 -51
  1473. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1474. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -10
  1475. package/dist/lib/components/navigation/SidebarItem.js +0 -43
  1476. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1477. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1478. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1479. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1480. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1481. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1482. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1483. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1484. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1485. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1486. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1487. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1488. package/dist/lib/plugins/openapi/OpenApiRoute.d.ts +0 -9
  1489. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  1490. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  1491. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1492. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1493. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1494. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1495. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1496. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1497. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1498. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1499. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1500. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1501. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +0 -16
  1502. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1503. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +0 -174
  1504. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1505. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +0 -10
  1506. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +0 -66
  1507. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1508. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +0 -131
  1509. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1510. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +0 -11
  1511. package/dist/lib/plugins/openapi/post-processors/removePaths.js +0 -33
  1512. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1513. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1514. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1515. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1516. package/dist/vite/plugin-docs.test.js +0 -22
  1517. package/dist/vite/plugin-docs.test.js.map +0 -1
  1518. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1519. package/dist/vite/plugin-sidebar.js +0 -47
  1520. package/dist/vite/plugin-sidebar.js.map +0 -1
  1521. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1522. package/dist/vite/plugin-theme-css.js +0 -114
  1523. package/dist/vite/plugin-theme-css.js.map +0 -1
  1524. package/dist/vite/prerender.d.ts +0 -22
  1525. package/dist/vite/prerender.js +0 -89
  1526. package/dist/vite/prerender.js.map +0 -1
  1527. package/dist/zuplo/env.d.ts +0 -7
  1528. package/dist/zuplo/env.js +0 -12
  1529. package/dist/zuplo/env.js.map +0 -1
  1530. package/lib/AuthenticationPlugin-Du8cLBSr.js +0 -58
  1531. package/lib/AuthenticationPlugin-Du8cLBSr.js.map +0 -1
  1532. package/lib/CategoryHeading-MYL1u_6K.js +0 -10
  1533. package/lib/CategoryHeading-MYL1u_6K.js.map +0 -1
  1534. package/lib/Markdown-Cyrx_JrO.js +0 -15212
  1535. package/lib/Markdown-Cyrx_JrO.js.map +0 -1
  1536. package/lib/MdxPage-BuG8Tuwc.js +0 -193
  1537. package/lib/MdxPage-BuG8Tuwc.js.map +0 -1
  1538. package/lib/OpenApiRoute-UrC_t0e5.js +0 -36
  1539. package/lib/OpenApiRoute-UrC_t0e5.js.map +0 -1
  1540. package/lib/OperationList-CDt1xdc4.js +0 -5169
  1541. package/lib/OperationList-CDt1xdc4.js.map +0 -1
  1542. package/lib/Select-CnCZ4WhS.js +0 -223
  1543. package/lib/Select-CnCZ4WhS.js.map +0 -1
  1544. package/lib/SlotletProvider-mQiPDQIH.js +0 -221
  1545. package/lib/SlotletProvider-mQiPDQIH.js.map +0 -1
  1546. package/lib/Spinner-BlzrEEk1.js +0 -51
  1547. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  1548. package/lib/SyntaxHighlight-B0L4SC_N.js +0 -2986
  1549. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  1550. package/lib/ZudokuContext-BTUJPpQl.js +0 -1229
  1551. package/lib/ZudokuContext-BTUJPpQl.js.map +0 -1
  1552. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1553. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1554. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1555. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1556. package/lib/chunk-SYFQ2XB5-BPvC-soB.js +0 -1821
  1557. package/lib/chunk-SYFQ2XB5-BPvC-soB.js.map +0 -1
  1558. package/lib/circular-DxaIIlWD.js +0 -15409
  1559. package/lib/circular-DxaIIlWD.js.map +0 -1
  1560. package/lib/cn-qaFjX9_3.js +0 -2279
  1561. package/lib/cn-qaFjX9_3.js.map +0 -1
  1562. package/lib/context-rwLGh-6_.js +0 -22
  1563. package/lib/context-rwLGh-6_.js.map +0 -1
  1564. package/lib/createServer-CjNktZzL.js +0 -12603
  1565. package/lib/createServer-CjNktZzL.js.map +0 -1
  1566. package/lib/hook-FT3SJLe_.js +0 -227
  1567. package/lib/hook-FT3SJLe_.js.map +0 -1
  1568. package/lib/index-B7mqiOei.js +0 -509
  1569. package/lib/index-B7mqiOei.js.map +0 -1
  1570. package/lib/index-CjJS0l4l.js +0 -2094
  1571. package/lib/index-CjJS0l4l.js.map +0 -1
  1572. package/lib/index-Djenk2Hj.js +0 -36
  1573. package/lib/index-Djenk2Hj.js.map +0 -1
  1574. package/lib/index-Dl3Yl0yb.js +0 -4837
  1575. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1576. package/lib/index-Eb1oiHbM.js +0 -1997
  1577. package/lib/index-Eb1oiHbM.js.map +0 -1
  1578. package/lib/index.esm-9-TF9KQB.js +0 -692
  1579. package/lib/index.esm-9-TF9KQB.js.map +0 -1
  1580. package/lib/index.esm-CrSoEshU.js +0 -1207
  1581. package/lib/index.esm-CrSoEshU.js.map +0 -1
  1582. package/lib/invariant-Caa8-XvF.js +0 -26
  1583. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1584. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  1585. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  1586. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  1587. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  1588. package/lib/post-processors/removeExtensions.js +0 -11
  1589. package/lib/post-processors/removeExtensions.js.map +0 -1
  1590. package/lib/post-processors/removeParameters.js +0 -48
  1591. package/lib/post-processors/removeParameters.js.map +0 -1
  1592. package/lib/post-processors/removePaths.js +0 -28
  1593. package/lib/post-processors/removePaths.js.map +0 -1
  1594. package/lib/post-processors/traverse.js +0 -15
  1595. package/lib/post-processors/traverse.js.map +0 -1
  1596. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1597. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1598. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1599. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1600. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1601. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1602. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1603. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1604. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1605. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1606. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1607. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1608. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1609. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1610. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1611. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1612. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1613. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1614. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1615. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1616. package/lib/state-mM7uaXTW.js +0 -202
  1617. package/lib/state-mM7uaXTW.js.map +0 -1
  1618. package/lib/useExposedProps-BLKFBylA.js +0 -9
  1619. package/lib/useExposedProps-BLKFBylA.js.map +0 -1
  1620. package/lib/useScrollToAnchor-BZsGmBng.js +0 -284
  1621. package/lib/useScrollToAnchor-BZsGmBng.js.map +0 -1
  1622. package/src/app/tailwind.ts +0 -83
  1623. package/src/lib/components/SlotletProvider.tsx +0 -55
  1624. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  1625. package/src/lib/components/context/PluginSystem.ts +0 -0
  1626. package/src/lib/components/navigation/Sidebar.tsx +0 -49
  1627. package/src/lib/components/navigation/SidebarBadge.tsx +0 -45
  1628. package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
  1629. package/src/lib/components/navigation/SidebarItem.tsx +0 -124
  1630. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -27
  1631. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1632. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1633. package/src/lib/plugins/markdown/resolver.ts +0 -90
  1634. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  1635. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1636. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1637. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1638. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +0 -202
  1639. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +0 -27
  1640. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +0 -148
  1641. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +0 -101
  1642. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1643. package/src/lib/plugins/openapi/post-processors/removePaths.ts +0 -55
  1644. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1645. /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/validate.test.d.ts} +0 -0
  1646. /package/dist/lib/{plugins/openapi/post-processors/removeParameters.test.d.ts → auth/issuer.test.d.ts} +0 -0
  1647. /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → components/Slot.test.d.ts} +0 -0
  1648. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1649. /package/dist/{vite/plugin-docs.test.d.ts → lib/hooks/useEvent.test.d.ts} +0 -0
  1650. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1651. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1652. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,2986 +0,0 @@
1
- import { j as I } from "./jsx-runtime-Bdg6XQ1m.js";
2
- import * as _ from "react";
3
- import { createElement as he, useCallback as V, useMemo as ve, useState as ke } from "react";
4
- import { a as ce, c as ae } from "./cn-qaFjX9_3.js";
5
- import { CheckIcon as we, CopyIcon as Ee } from "lucide-react";
6
- import { C as xe } from "./ClientOnly-E7hGysn1.js";
7
- function Ut(e) {
8
- if (typeof e != "string")
9
- throw new TypeError("Expected a string");
10
- return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
11
- }
12
- var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties, _e = Object.getOwnPropertyDescriptor, Fe = Object.getOwnPropertyDescriptors, pe = Object.getOwnPropertyNames, Z = Object.getOwnPropertySymbols, Te = Object.getPrototypeOf, Q = Object.prototype.hasOwnProperty, de = Object.prototype.propertyIsEnumerable, ne = (e, t, a) => t in e ? W(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, B = (e, t) => {
13
- for (var a in t || (t = {}))
14
- Q.call(t, a) && ne(e, a, t[a]);
15
- if (Z)
16
- for (var a of Z(t))
17
- de.call(t, a) && ne(e, a, t[a]);
18
- return e;
19
- }, q = (e, t) => Ae(e, Fe(t)), ge = (e, t) => {
20
- var a = {};
21
- for (var l in e)
22
- Q.call(e, l) && t.indexOf(l) < 0 && (a[l] = e[l]);
23
- if (e != null && Z)
24
- for (var l of Z(e))
25
- t.indexOf(l) < 0 && de.call(e, l) && (a[l] = e[l]);
26
- return a;
27
- }, Re = (e, t) => function() {
28
- return t || (0, e[pe(e)[0]])((t = { exports: {} }).exports, t), t.exports;
29
- }, Ie = (e, t) => {
30
- for (var a in t)
31
- W(e, a, { get: t[a], enumerable: !0 });
32
- }, Le = (e, t, a, l) => {
33
- if (t && typeof t == "object" || typeof t == "function")
34
- for (let d of pe(t))
35
- !Q.call(e, d) && d !== a && W(e, d, { get: () => t[d], enumerable: !(l = _e(t, d)) || l.enumerable });
36
- return e;
37
- }, Oe = (e, t, a) => (a = e != null ? Se(Te(e)) : {}, Le(
38
- // If the importer is in node compatibility mode or this is not an ESM
39
- // file that has been converted to a CommonJS file using a Babel-
40
- // compatible transform (i.e. "__esModule" has not been set), then set
41
- // "default" to the CommonJS "module.exports" for node compatibility.
42
- !e || !e.__esModule ? W(a, "default", { value: e, enumerable: !0 }) : a,
43
- e
44
- )), Ce = Re({
45
- "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
46
- var a = function() {
47
- var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, d = 0, h = {}, u = {
48
- /**
49
- * A namespace for utility methods.
50
- *
51
- * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
52
- * change or disappear at any time.
53
- *
54
- * @namespace
55
- * @memberof Prism
56
- */
57
- util: {
58
- encode: function n(r) {
59
- return r instanceof m ? new m(r.type, n(r.content), r.alias) : Array.isArray(r) ? r.map(n) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
60
- },
61
- /**
62
- * Returns the name of the type of the given value.
63
- *
64
- * @param {any} o
65
- * @returns {string}
66
- * @example
67
- * type(null) === 'Null'
68
- * type(undefined) === 'Undefined'
69
- * type(123) === 'Number'
70
- * type('foo') === 'String'
71
- * type(true) === 'Boolean'
72
- * type([1, 2]) === 'Array'
73
- * type({}) === 'Object'
74
- * type(String) === 'Function'
75
- * type(/abc+/) === 'RegExp'
76
- */
77
- type: function(n) {
78
- return Object.prototype.toString.call(n).slice(8, -1);
79
- },
80
- /**
81
- * Returns a unique number for the given object. Later calls will still return the same number.
82
- *
83
- * @param {Object} obj
84
- * @returns {number}
85
- */
86
- objId: function(n) {
87
- return n.__id || Object.defineProperty(n, "__id", { value: ++d }), n.__id;
88
- },
89
- /**
90
- * Creates a deep clone of the given object.
91
- *
92
- * The main intended use of this function is to clone language definitions.
93
- *
94
- * @param {T} o
95
- * @param {Record<number, any>} [visited]
96
- * @returns {T}
97
- * @template T
98
- */
99
- clone: function n(r, s) {
100
- s = s || {};
101
- var p, i;
102
- switch (u.util.type(r)) {
103
- case "Object":
104
- if (i = u.util.objId(r), s[i])
105
- return s[i];
106
- p = /** @type {Record<string, any>} */
107
- {}, s[i] = p;
108
- for (var f in r)
109
- r.hasOwnProperty(f) && (p[f] = n(r[f], s));
110
- return (
111
- /** @type {any} */
112
- p
113
- );
114
- case "Array":
115
- return i = u.util.objId(r), s[i] ? s[i] : (p = [], s[i] = p, r.forEach(function(E, k) {
116
- p[k] = n(E, s);
117
- }), /** @type {any} */
118
- p);
119
- default:
120
- return r;
121
- }
122
- },
123
- /**
124
- * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
125
- *
126
- * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
127
- *
128
- * @param {Element} element
129
- * @returns {string}
130
- */
131
- getLanguage: function(n) {
132
- for (; n; ) {
133
- var r = l.exec(n.className);
134
- if (r)
135
- return r[1].toLowerCase();
136
- n = n.parentElement;
137
- }
138
- return "none";
139
- },
140
- /**
141
- * Sets the Prism `language-xxxx` class of the given element.
142
- *
143
- * @param {Element} element
144
- * @param {string} language
145
- * @returns {void}
146
- */
147
- setLanguage: function(n, r) {
148
- n.className = n.className.replace(RegExp(l, "gi"), ""), n.classList.add("language-" + r);
149
- },
150
- /**
151
- * Returns whether a given class is active for `element`.
152
- *
153
- * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
154
- * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
155
- * given class is just the given class with a `no-` prefix.
156
- *
157
- * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
158
- * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
159
- * ancestors have the given class or the negated version of it, then the default activation will be returned.
160
- *
161
- * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
162
- * version of it, the class is considered active.
163
- *
164
- * @param {Element} element
165
- * @param {string} className
166
- * @param {boolean} [defaultActivation=false]
167
- * @returns {boolean}
168
- */
169
- isActive: function(n, r, s) {
170
- for (var p = "no-" + r; n; ) {
171
- var i = n.classList;
172
- if (i.contains(r))
173
- return !0;
174
- if (i.contains(p))
175
- return !1;
176
- n = n.parentElement;
177
- }
178
- return !!s;
179
- }
180
- },
181
- /**
182
- * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
183
- *
184
- * @namespace
185
- * @memberof Prism
186
- * @public
187
- */
188
- languages: {
189
- /**
190
- * The grammar for plain, unformatted text.
191
- */
192
- plain: h,
193
- plaintext: h,
194
- text: h,
195
- txt: h,
196
- /**
197
- * Creates a deep copy of the language with the given id and appends the given tokens.
198
- *
199
- * If a token in `redef` also appears in the copied language, then the existing token in the copied language
200
- * will be overwritten at its original position.
201
- *
202
- * ## Best practices
203
- *
204
- * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
205
- * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
206
- * understand the language definition because, normally, the order of tokens matters in Prism grammars.
207
- *
208
- * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
209
- * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
210
- *
211
- * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
212
- * @param {Grammar} redef The new tokens to append.
213
- * @returns {Grammar} The new language created.
214
- * @public
215
- * @example
216
- * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
217
- * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
218
- * // at its original position
219
- * 'comment': { ... },
220
- * // CSS doesn't have a 'color' token, so this token will be appended
221
- * 'color': /\b(?:red|green|blue)\b/
222
- * });
223
- */
224
- extend: function(n, r) {
225
- var s = u.util.clone(u.languages[n]);
226
- for (var p in r)
227
- s[p] = r[p];
228
- return s;
229
- },
230
- /**
231
- * Inserts tokens _before_ another token in a language definition or any other grammar.
232
- *
233
- * ## Usage
234
- *
235
- * This helper method makes it easy to modify existing languages. For example, the CSS language definition
236
- * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
237
- * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
238
- * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
239
- * this:
240
- *
241
- * ```js
242
- * Prism.languages.markup.style = {
243
- * // token
244
- * };
245
- * ```
246
- *
247
- * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
248
- * before existing tokens. For the CSS example above, you would use it like this:
249
- *
250
- * ```js
251
- * Prism.languages.insertBefore('markup', 'cdata', {
252
- * 'style': {
253
- * // token
254
- * }
255
- * });
256
- * ```
257
- *
258
- * ## Special cases
259
- *
260
- * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
261
- * will be ignored.
262
- *
263
- * This behavior can be used to insert tokens after `before`:
264
- *
265
- * ```js
266
- * Prism.languages.insertBefore('markup', 'comment', {
267
- * 'comment': Prism.languages.markup.comment,
268
- * // tokens after 'comment'
269
- * });
270
- * ```
271
- *
272
- * ## Limitations
273
- *
274
- * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
275
- * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
276
- * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
277
- * deleting properties which is necessary to insert at arbitrary positions.
278
- *
279
- * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
280
- * Instead, it will create a new object and replace all references to the target object with the new one. This
281
- * can be done without temporarily deleting properties, so the iteration order is well-defined.
282
- *
283
- * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
284
- * you hold the target object in a variable, then the value of the variable will not change.
285
- *
286
- * ```js
287
- * var oldMarkup = Prism.languages.markup;
288
- * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
289
- *
290
- * assert(oldMarkup !== Prism.languages.markup);
291
- * assert(newMarkup === Prism.languages.markup);
292
- * ```
293
- *
294
- * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
295
- * object to be modified.
296
- * @param {string} before The key to insert before.
297
- * @param {Grammar} insert An object containing the key-value pairs to be inserted.
298
- * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
299
- * object to be modified.
300
- *
301
- * Defaults to `Prism.languages`.
302
- * @returns {Grammar} The new grammar object.
303
- * @public
304
- */
305
- insertBefore: function(n, r, s, p) {
306
- p = p || /** @type {any} */
307
- u.languages;
308
- var i = p[n], f = {};
309
- for (var E in i)
310
- if (i.hasOwnProperty(E)) {
311
- if (E == r)
312
- for (var k in s)
313
- s.hasOwnProperty(k) && (f[k] = s[k]);
314
- s.hasOwnProperty(E) || (f[E] = i[E]);
315
- }
316
- var x = p[n];
317
- return p[n] = f, u.languages.DFS(u.languages, function(S, F) {
318
- F === x && S != n && (this[S] = f);
319
- }), f;
320
- },
321
- // Traverse a language definition with Depth First Search
322
- DFS: function n(r, s, p, i) {
323
- i = i || {};
324
- var f = u.util.objId;
325
- for (var E in r)
326
- if (r.hasOwnProperty(E)) {
327
- s.call(r, E, r[E], p || E);
328
- var k = r[E], x = u.util.type(k);
329
- x === "Object" && !i[f(k)] ? (i[f(k)] = !0, n(k, s, null, i)) : x === "Array" && !i[f(k)] && (i[f(k)] = !0, n(k, s, E, i));
330
- }
331
- }
332
- },
333
- plugins: {},
334
- /**
335
- * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
336
- * and the language definitions to use, and returns a string with the HTML produced.
337
- *
338
- * The following hooks will be run:
339
- * 1. `before-tokenize`
340
- * 2. `after-tokenize`
341
- * 3. `wrap`: On each {@link Token}.
342
- *
343
- * @param {string} text A string with the code to be highlighted.
344
- * @param {Grammar} grammar An object containing the tokens to use.
345
- *
346
- * Usually a language definition like `Prism.languages.markup`.
347
- * @param {string} language The name of the language definition passed to `grammar`.
348
- * @returns {string} The highlighted HTML.
349
- * @memberof Prism
350
- * @public
351
- * @example
352
- * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
353
- */
354
- highlight: function(n, r, s) {
355
- var p = {
356
- code: n,
357
- grammar: r,
358
- language: s
359
- };
360
- if (u.hooks.run("before-tokenize", p), !p.grammar)
361
- throw new Error('The language "' + p.language + '" has no grammar.');
362
- return p.tokens = u.tokenize(p.code, p.grammar), u.hooks.run("after-tokenize", p), m.stringify(u.util.encode(p.tokens), p.language);
363
- },
364
- /**
365
- * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
366
- * and the language definitions to use, and returns an array with the tokenized code.
367
- *
368
- * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
369
- *
370
- * This method could be useful in other contexts as well, as a very crude parser.
371
- *
372
- * @param {string} text A string with the code to be highlighted.
373
- * @param {Grammar} grammar An object containing the tokens to use.
374
- *
375
- * Usually a language definition like `Prism.languages.markup`.
376
- * @returns {TokenStream} An array of strings and tokens, a token stream.
377
- * @memberof Prism
378
- * @public
379
- * @example
380
- * let code = `var foo = 0;`;
381
- * let tokens = Prism.tokenize(code, Prism.languages.javascript);
382
- * tokens.forEach(token => {
383
- * if (token instanceof Prism.Token && token.type === 'number') {
384
- * console.log(`Found numeric literal: ${token.content}`);
385
- * }
386
- * });
387
- */
388
- tokenize: function(n, r) {
389
- var s = r.rest;
390
- if (s) {
391
- for (var p in s)
392
- r[p] = s[p];
393
- delete r.rest;
394
- }
395
- var i = new b();
396
- return y(i, i.head, n), g(n, i, r, i.head, 0), w(i);
397
- },
398
- /**
399
- * @namespace
400
- * @memberof Prism
401
- * @public
402
- */
403
- hooks: {
404
- all: {},
405
- /**
406
- * Adds the given callback to the list of callbacks for the given hook.
407
- *
408
- * The callback will be invoked when the hook it is registered for is run.
409
- * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
410
- *
411
- * One callback function can be registered to multiple hooks and the same hook multiple times.
412
- *
413
- * @param {string} name The name of the hook.
414
- * @param {HookCallback} callback The callback function which is given environment variables.
415
- * @public
416
- */
417
- add: function(n, r) {
418
- var s = u.hooks.all;
419
- s[n] = s[n] || [], s[n].push(r);
420
- },
421
- /**
422
- * Runs a hook invoking all registered callbacks with the given environment variables.
423
- *
424
- * Callbacks will be invoked synchronously and in the order in which they were registered.
425
- *
426
- * @param {string} name The name of the hook.
427
- * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
428
- * @public
429
- */
430
- run: function(n, r) {
431
- var s = u.hooks.all[n];
432
- if (!(!s || !s.length))
433
- for (var p = 0, i; i = s[p++]; )
434
- i(r);
435
- }
436
- },
437
- Token: m
438
- };
439
- function m(n, r, s, p) {
440
- this.type = n, this.content = r, this.alias = s, this.length = (p || "").length | 0;
441
- }
442
- m.stringify = function n(r, s) {
443
- if (typeof r == "string")
444
- return r;
445
- if (Array.isArray(r)) {
446
- var p = "";
447
- return r.forEach(function(x) {
448
- p += n(x, s);
449
- }), p;
450
- }
451
- var i = {
452
- type: r.type,
453
- content: n(r.content, s),
454
- tag: "span",
455
- classes: ["token", r.type],
456
- attributes: {},
457
- language: s
458
- }, f = r.alias;
459
- f && (Array.isArray(f) ? Array.prototype.push.apply(i.classes, f) : i.classes.push(f)), u.hooks.run("wrap", i);
460
- var E = "";
461
- for (var k in i.attributes)
462
- E += " " + k + '="' + (i.attributes[k] || "").replace(/"/g, "&quot;") + '"';
463
- return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + E + ">" + i.content + "</" + i.tag + ">";
464
- };
465
- function c(n, r, s, p) {
466
- n.lastIndex = r;
467
- var i = n.exec(s);
468
- if (i && p && i[1]) {
469
- var f = i[1].length;
470
- i.index += f, i[0] = i[0].slice(f);
471
- }
472
- return i;
473
- }
474
- function g(n, r, s, p, i, f) {
475
- for (var E in s)
476
- if (!(!s.hasOwnProperty(E) || !s[E])) {
477
- var k = s[E];
478
- k = Array.isArray(k) ? k : [k];
479
- for (var x = 0; x < k.length; ++x) {
480
- if (f && f.cause == E + "," + x)
481
- return;
482
- var S = k[x], F = S.inside, A = !!S.lookbehind, C = !!S.greedy, T = S.alias;
483
- if (C && !S.pattern.global) {
484
- var O = S.pattern.toString().match(/[imsuy]*$/)[0];
485
- S.pattern = RegExp(S.pattern.source, O + "g");
486
- }
487
- for (var ee = S.pattern || S, R = p.next, D = i; R !== r.tail && !(f && D >= f.reach); D += R.value.length, R = R.next) {
488
- var P = R.value;
489
- if (r.length > n.length)
490
- return;
491
- if (!(P instanceof m)) {
492
- var z = 1, N;
493
- if (C) {
494
- if (N = c(ee, D, n, A), !N || N.index >= n.length)
495
- break;
496
- var M = N.index, be = N.index + N[0].length, $ = D;
497
- for ($ += R.value.length; M >= $; )
498
- R = R.next, $ += R.value.length;
499
- if ($ -= R.value.length, D = $, R.value instanceof m)
500
- continue;
501
- for (var j = R; j !== r.tail && ($ < be || typeof j.value == "string"); j = j.next)
502
- z++, $ += j.value.length;
503
- z--, P = n.slice(D, $), N.index -= D;
504
- } else if (N = c(ee, 0, P, A), !N)
505
- continue;
506
- var M = N.index, U = N[0], H = P.slice(0, M), te = P.slice(M + U.length), Y = D + P.length;
507
- f && Y > f.reach && (f.reach = Y);
508
- var G = R.prev;
509
- H && (G = y(r, G, H), D += H.length), v(r, G, z);
510
- var me = new m(E, F ? u.tokenize(U, F) : U, T, U);
511
- if (R = y(r, G, me), te && y(r, R, te), z > 1) {
512
- var K = {
513
- cause: E + "," + x,
514
- reach: Y
515
- };
516
- g(n, r, s, R.prev, D, K), f && K.reach > f.reach && (f.reach = K.reach);
517
- }
518
- }
519
- }
520
- }
521
- }
522
- }
523
- function b() {
524
- var n = { value: null, prev: null, next: null }, r = { value: null, prev: n, next: null };
525
- n.next = r, this.head = n, this.tail = r, this.length = 0;
526
- }
527
- function y(n, r, s) {
528
- var p = r.next, i = { value: s, prev: r, next: p };
529
- return r.next = i, p.prev = i, n.length++, i;
530
- }
531
- function v(n, r, s) {
532
- for (var p = r.next, i = 0; i < s && p !== n.tail; i++)
533
- p = p.next;
534
- r.next = p, p.prev = r, n.length -= i;
535
- }
536
- function w(n) {
537
- for (var r = [], s = n.head.next; s !== n.tail; )
538
- r.push(s.value), s = s.next;
539
- return r;
540
- }
541
- return u;
542
- }();
543
- t.exports = a, a.default = a;
544
- }
545
- }), o = Oe(Ce());
546
- o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, o.languages.markup.tag.inside["attr-value"].inside.entity = o.languages.markup.entity, o.languages.markup.doctype.inside["internal-subset"].inside = o.languages.markup, o.hooks.add("wrap", function(e) {
547
- e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
548
- }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, l) {
549
- var a = {}, a = (a["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[l] }, a.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: a } }), l = (a["language-" + l] = { pattern: /[\s\S]+/, inside: o.languages[l] }, {});
550
- l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
551
- return e;
552
- }), "i"), lookbehind: !0, greedy: !0, inside: a }, o.languages.insertBefore("markup", "cdata", l);
553
- } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
554
- o.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: o.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
555
- } }), o.languages.html = o.languages.markup, o.languages.mathml = o.languages.markup, o.languages.svg = o.languages.markup, o.languages.xml = o.languages.extend("markup", {}), o.languages.ssml = o.languages.xml, o.languages.atom = o.languages.xml, o.languages.rss = o.languages.xml, function(e) {
556
- var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, a = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, l = "(?:[^\\\\-]|" + a.source + ")", l = RegExp(l + "-" + l), d = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
557
- e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: l, inside: { escape: a, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: a } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": d } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: a, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": d } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
558
- }(o), o.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, o.languages.javascript = o.languages.extend("clike", { "class-name": [o.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { 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/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), o.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, o.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: o.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { 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*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: o.languages.javascript }, { 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*\{)/, lookbehind: !0, inside: o.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), o.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: o.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), o.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), o.languages.markup && (o.languages.markup.tag.addInlined("script", "javascript"), o.languages.markup.tag.addAttribute(/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, "javascript")), o.languages.js = o.languages.javascript, o.languages.actionscript = o.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), o.languages.actionscript["class-name"].alias = "function", delete o.languages.actionscript.parameter, delete o.languages.actionscript["literal-property"], o.languages.markup && o.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: o.languages.markup } }), function(e) {
559
- var t = /#(?!\{).+/, a = { pattern: /#\{[^}]+\}/, alias: "variable" };
560
- e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: a } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: a } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: a } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
561
- }(o), function(e) {
562
- var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
563
- Object.defineProperty(t, "addSupport", { value: function(a, l) {
564
- (a = typeof a == "string" ? [a] : a).forEach(function(d) {
565
- var h = function(y) {
566
- y.inside || (y.inside = {}), y.inside.rest = l;
567
- }, u = "doc-comment";
568
- if (m = e.languages[d]) {
569
- var m, c = m[u];
570
- if ((c = c || (m = e.languages.insertBefore(d, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[u]) instanceof RegExp && (c = m[u] = { pattern: c }), Array.isArray(c))
571
- for (var g = 0, b = c.length; g < b; g++)
572
- c[g] instanceof RegExp && (c[g] = { pattern: c[g] }), h(c[g]);
573
- else
574
- h(c);
575
- }
576
- });
577
- } }), t.addSupport(["java", "javascript", "php"], t);
578
- }(o), function(e) {
579
- var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
580
- t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
581
- }(o), function(e) {
582
- var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), a = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
583
- e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { 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, inside: { unit: t, number: a, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: a });
584
- }(o), function(e) {
585
- var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", d = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
586
- return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
587
- }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
588
- function u(m, c) {
589
- c = (c || "").replace(/m/g, "") + "m";
590
- var g = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
591
- return l;
592
- }).replace(/<<value>>/g, function() {
593
- return m;
594
- });
595
- return RegExp(g, c);
596
- }
597
- e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
598
- return l;
599
- })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
600
- return l;
601
- }).replace(/<<key>>/g, function() {
602
- return "(?:" + d + "|" + h + ")";
603
- })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: u(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: u(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: u(h), lookbehind: !0, greedy: !0 }, number: { pattern: u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: a, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
604
- }(o), function(e) {
605
- var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
606
- function a(g) {
607
- return g = g.replace(/<inner>/g, function() {
608
- return t;
609
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")");
610
- }
611
- var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, d = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
612
- return l;
613
- }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, u = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + d + h + "(?:" + d + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + d + h + ")(?:" + d + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + d + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + d + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: a(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(g) {
614
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
615
- g !== b && (e.languages.markdown[g].inside.content.inside[b] = e.languages.markdown[b]);
616
- });
617
- }), e.hooks.add("after-tokenize", function(g) {
618
- g.language !== "markdown" && g.language !== "md" || function b(y) {
619
- if (y && typeof y != "string")
620
- for (var v = 0, w = y.length; v < w; v++) {
621
- var n, r = y[v];
622
- r.type !== "code" ? b(r.content) : (n = r.content[1], r = r.content[3], n && r && n.type === "code-language" && r.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), r.alias ? typeof r.alias == "string" ? r.alias = [r.alias, n] : r.alias.push(n) : r.alias = [n]));
623
- }
624
- }(g.tokens);
625
- }), e.hooks.add("wrap", function(g) {
626
- if (g.type === "code-block") {
627
- for (var b = "", y = 0, v = g.classes.length; y < v; y++) {
628
- var w = g.classes[y], w = /language-(.+)/.exec(w);
629
- if (w) {
630
- b = w[1];
631
- break;
632
- }
633
- }
634
- var n, r = e.languages[b];
635
- r ? g.content = e.highlight(function(s) {
636
- return s = s.replace(u, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(p, i) {
637
- var f;
638
- return (i = i.toLowerCase())[0] === "#" ? (f = i[1] === "x" ? parseInt(i.slice(2), 16) : Number(i.slice(1)), c(f)) : m[i] || p;
639
- });
640
- }(g.content), r, b) : b && b !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), g.attributes.id = n, e.plugins.autoloader.loadLanguages(b, function() {
641
- var s = document.getElementById(n);
642
- s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
643
- }));
644
- }
645
- }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, c = String.fromCodePoint || String.fromCharCode;
646
- e.languages.md = e.languages.markdown;
647
- }(o), o.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: o.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, o.hooks.add("after-tokenize", function(e) {
648
- if (e.language === "graphql")
649
- for (var t = e.tokens.filter(function(n) {
650
- return typeof n != "string" && n.type !== "comment" && n.type !== "scalar";
651
- }), a = 0; a < t.length; ) {
652
- var l = t[a++];
653
- if (l.type === "keyword" && l.content === "mutation") {
654
- var d = [];
655
- if (y(["definition-mutation", "punctuation"]) && b(1).content === "(") {
656
- a += 2;
657
- var h = v(/^\($/, /^\)$/);
658
- if (h === -1)
659
- continue;
660
- for (; a < h; a++) {
661
- var u = b(0);
662
- u.type === "variable" && (w(u, "variable-input"), d.push(u.content));
663
- }
664
- a = h + 1;
665
- }
666
- if (y(["punctuation", "property-query"]) && b(0).content === "{" && (a++, w(b(0), "property-mutation"), 0 < d.length)) {
667
- var m = v(/^\{$/, /^\}$/);
668
- if (m !== -1)
669
- for (var c = a; c < m; c++) {
670
- var g = t[c];
671
- g.type === "variable" && 0 <= d.indexOf(g.content) && w(g, "variable-input");
672
- }
673
- }
674
- }
675
- }
676
- function b(n) {
677
- return t[a + n];
678
- }
679
- function y(n, r) {
680
- r = r || 0;
681
- for (var s = 0; s < n.length; s++) {
682
- var p = b(s + r);
683
- if (!p || p.type !== n[s])
684
- return;
685
- }
686
- return 1;
687
- }
688
- function v(n, r) {
689
- for (var s = 1, p = a; p < t.length; p++) {
690
- var i = t[p], f = i.content;
691
- if (i.type === "punctuation" && typeof f == "string") {
692
- if (n.test(f))
693
- s++;
694
- else if (r.test(f) && --s === 0)
695
- return p;
696
- }
697
- }
698
- return -1;
699
- }
700
- function w(n, r) {
701
- var s = n.alias;
702
- s ? Array.isArray(s) || (n.alias = s = [s]) : n.alias = s = [], s.push(r);
703
- }
704
- }), o.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
705
- var t = e.languages.javascript["template-string"], a = t.pattern.source, l = t.inside.interpolation, d = l.inside["interpolation-punctuation"], h = l.pattern.source;
706
- function u(y, v) {
707
- if (e.languages[y])
708
- return { pattern: RegExp("((?:" + v + ")\\s*)" + a), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: y } } };
709
- }
710
- function m(y, v, w) {
711
- return y = { code: y, grammar: v, language: w }, e.hooks.run("before-tokenize", y), y.tokens = e.tokenize(y.code, y.grammar), e.hooks.run("after-tokenize", y), y.tokens;
712
- }
713
- function c(y, v, w) {
714
- var s = e.tokenize(y, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), n = 0, r = {}, s = m(s.map(function(i) {
715
- if (typeof i == "string")
716
- return i;
717
- for (var f, E, i = i.content; y.indexOf((E = n++, f = "___" + w.toUpperCase() + "_" + E + "___")) !== -1; )
718
- ;
719
- return r[f] = i, f;
720
- }).join(""), v, w), p = Object.keys(r);
721
- return n = 0, function i(f) {
722
- for (var E = 0; E < f.length; E++) {
723
- if (n >= p.length)
724
- return;
725
- var k, x, S, F, A, C, T, O = f[E];
726
- typeof O == "string" || typeof O.content == "string" ? (k = p[n], (T = (C = typeof O == "string" ? O : O.content).indexOf(k)) !== -1 && (++n, x = C.substring(0, T), A = r[k], S = void 0, (F = {})["interpolation-punctuation"] = d, (F = e.tokenize(A, F)).length === 3 && ((S = [1, 1]).push.apply(S, m(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, S)), S = new e.Token("interpolation", F, l.alias, A), F = C.substring(T + k.length), A = [], x && A.push(x), A.push(S), F && (i(C = [F]), A.push.apply(A, C)), typeof O == "string" ? (f.splice.apply(f, [E, 1].concat(A)), E += A.length - 1) : O.content = A)) : (T = O.content, Array.isArray(T) ? i(T) : i([T]));
727
- }
728
- }(s), new e.Token(w, s, "language-" + w, y);
729
- }
730
- e.languages.javascript["template-string"] = [u("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), u("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), u("svg", /\bsvg/.source), u("markdown", /\b(?:markdown|md)/.source), u("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), u("sql", /\bsql/.source), t].filter(Boolean);
731
- var g = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
732
- function b(y) {
733
- return typeof y == "string" ? y : Array.isArray(y) ? y.map(b).join("") : b(y.content);
734
- }
735
- e.hooks.add("after-tokenize", function(y) {
736
- y.language in g && function v(w) {
737
- for (var n = 0, r = w.length; n < r; n++) {
738
- var s, p, i, f = w[n];
739
- typeof f != "string" && (s = f.content, Array.isArray(s) ? f.type === "template-string" ? (f = s[1], s.length === 3 && typeof f != "string" && f.type === "embedded-code" && (p = b(f), f = f.alias, f = Array.isArray(f) ? f[0] : f, i = e.languages[f]) && (s[1] = c(p, i, f))) : v(s) : typeof s != "string" && v([s]));
740
- }
741
- }(y.tokens);
742
- });
743
- }(o), function(e) {
744
- e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
745
- var t = e.languages.extend("typescript", {});
746
- delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
747
- }(o), function(e) {
748
- var t = e.languages.javascript, a = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + a + "\\s+)?)";
749
- e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
750
- return a;
751
- })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + a), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
752
- }(o), function(e) {
753
- e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
754
- }(o), o.languages.n4js = o.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), o.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), o.languages.n4jsd = o.languages.n4js, function(e) {
755
- function t(u, m) {
756
- return RegExp(u.replace(/<ID>/g, function() {
757
- return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
758
- }), m);
759
- }
760
- e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
761
- for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < a.length; l++) {
762
- var h = a[l], d = e.languages.javascript[h], h = (d = e.util.type(d) === "RegExp" ? e.languages.javascript[h] = { pattern: d } : d).inside || {};
763
- (d.inside = h)["maybe-class-name"] = /^[A-Z][\s\S]*/;
764
- }
765
- }(o), function(e) {
766
- var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, d = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
767
- function h(c, g) {
768
- return c = c.replace(/<S>/g, function() {
769
- return a;
770
- }).replace(/<BRACES>/g, function() {
771
- return l;
772
- }).replace(/<SPREAD>/g, function() {
773
- return d;
774
- }), RegExp(c, g);
775
- }
776
- d = h(d).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: h(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: h(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
777
- function u(c) {
778
- for (var g = [], b = 0; b < c.length; b++) {
779
- var y = c[b], v = !1;
780
- typeof y != "string" && (y.type === "tag" && y.content[0] && y.content[0].type === "tag" ? y.content[0].content[0].content === "</" ? 0 < g.length && g[g.length - 1].tagName === m(y.content[0].content[1]) && g.pop() : y.content[y.content.length - 1].content !== "/>" && g.push({ tagName: m(y.content[0].content[1]), openedBraces: 0 }) : 0 < g.length && y.type === "punctuation" && y.content === "{" ? g[g.length - 1].openedBraces++ : 0 < g.length && 0 < g[g.length - 1].openedBraces && y.type === "punctuation" && y.content === "}" ? g[g.length - 1].openedBraces-- : v = !0), (v || typeof y == "string") && 0 < g.length && g[g.length - 1].openedBraces === 0 && (v = m(y), b < c.length - 1 && (typeof c[b + 1] == "string" || c[b + 1].type === "plain-text") && (v += m(c[b + 1]), c.splice(b + 1, 1)), 0 < b && (typeof c[b - 1] == "string" || c[b - 1].type === "plain-text") && (v = m(c[b - 1]) + v, c.splice(b - 1, 1), b--), c[b] = new e.Token("plain-text", v, null, v)), y.content && typeof y.content != "string" && u(y.content);
781
- }
782
- }
783
- var m = function(c) {
784
- return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(m).join("") : "";
785
- };
786
- e.hooks.add("after-tokenize", function(c) {
787
- c.language !== "jsx" && c.language !== "tsx" || u(c.tokens);
788
- });
789
- }(o), function(e) {
790
- var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
791
- t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
792
- }(o), o.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|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|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, o.languages.swift["string-literal"].forEach(function(e) {
793
- e.inside.interpolation.inside = o.languages.swift;
794
- }), function(e) {
795
- e.languages.kotlin = e.languages.extend("clike", { keyword: { 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/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
796
- var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
797
- e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
798
- }(o), o.languages.c = o.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), o.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), o.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, o.languages.c.string], char: o.languages.c.char, comment: o.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: o.languages.c } } } }), o.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete o.languages.c.boolean, o.languages.objectivec = o.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete o.languages.objectivec["class-name"], o.languages.objc = o.languages.objectivec, o.languages.reason = o.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), o.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete o.languages.reason.function, function(e) {
799
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, a = 0; a < 2; a++)
800
- t = t.replace(/<self>/g, function() {
801
- return t;
802
- });
803
- t = t.replace(/<self>/g, function() {
804
- return /[^\s\S]/.source;
805
- }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
806
- }(o), o.languages.go = o.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, 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/ }), o.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete o.languages.go["class-name"], function(e) {
807
- var t = /\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/, a = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
808
- return t.source;
809
- });
810
- e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
811
- return t.source;
812
- })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
813
- return a;
814
- }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
815
- }(o), o.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, o.languages.python["string-interpolation"].inside.interpolation.inside.rest = o.languages.python, o.languages.py = o.languages.python, o.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, o.languages.webmanifest = o.languages.json;
816
- var X = {};
817
- Ie(X, {
818
- dracula: () => De,
819
- duotoneDark: () => $e,
820
- duotoneLight: () => je,
821
- github: () => Me,
822
- gruvboxMaterialDark: () => bt,
823
- gruvboxMaterialLight: () => ht,
824
- jettwaveDark: () => it,
825
- jettwaveLight: () => ct,
826
- nightOwl: () => Ge,
827
- nightOwlLight: () => We,
828
- oceanicNext: () => He,
829
- okaidia: () => Ke,
830
- oneDark: () => dt,
831
- oneLight: () => yt,
832
- palenight: () => Xe,
833
- shadesOfPurple: () => Je,
834
- synthwave84: () => tt,
835
- ultramin: () => nt,
836
- vsDark: () => ye,
837
- vsLight: () => st
838
- });
839
- var Ne = {
840
- plain: {
841
- color: "#F8F8F2",
842
- backgroundColor: "#282A36"
843
- },
844
- styles: [
845
- {
846
- types: ["prolog", "constant", "builtin"],
847
- style: {
848
- color: "rgb(189, 147, 249)"
849
- }
850
- },
851
- {
852
- types: ["inserted", "function"],
853
- style: {
854
- color: "rgb(80, 250, 123)"
855
- }
856
- },
857
- {
858
- types: ["deleted"],
859
- style: {
860
- color: "rgb(255, 85, 85)"
861
- }
862
- },
863
- {
864
- types: ["changed"],
865
- style: {
866
- color: "rgb(255, 184, 108)"
867
- }
868
- },
869
- {
870
- types: ["punctuation", "symbol"],
871
- style: {
872
- color: "rgb(248, 248, 242)"
873
- }
874
- },
875
- {
876
- types: ["string", "char", "tag", "selector"],
877
- style: {
878
- color: "rgb(255, 121, 198)"
879
- }
880
- },
881
- {
882
- types: ["keyword", "variable"],
883
- style: {
884
- color: "rgb(189, 147, 249)",
885
- fontStyle: "italic"
886
- }
887
- },
888
- {
889
- types: ["comment"],
890
- style: {
891
- color: "rgb(98, 114, 164)"
892
- }
893
- },
894
- {
895
- types: ["attr-name"],
896
- style: {
897
- color: "rgb(241, 250, 140)"
898
- }
899
- }
900
- ]
901
- }, De = Ne, Be = {
902
- plain: {
903
- backgroundColor: "#2a2734",
904
- color: "#9a86fd"
905
- },
906
- styles: [
907
- {
908
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
909
- style: {
910
- color: "#6c6783"
911
- }
912
- },
913
- {
914
- types: ["namespace"],
915
- style: {
916
- opacity: 0.7
917
- }
918
- },
919
- {
920
- types: ["tag", "operator", "number"],
921
- style: {
922
- color: "#e09142"
923
- }
924
- },
925
- {
926
- types: ["property", "function"],
927
- style: {
928
- color: "#9a86fd"
929
- }
930
- },
931
- {
932
- types: ["tag-id", "selector", "atrule-id"],
933
- style: {
934
- color: "#eeebff"
935
- }
936
- },
937
- {
938
- types: ["attr-name"],
939
- style: {
940
- color: "#c4b9fe"
941
- }
942
- },
943
- {
944
- types: [
945
- "boolean",
946
- "string",
947
- "entity",
948
- "url",
949
- "attr-value",
950
- "keyword",
951
- "control",
952
- "directive",
953
- "unit",
954
- "statement",
955
- "regex",
956
- "atrule",
957
- "placeholder",
958
- "variable"
959
- ],
960
- style: {
961
- color: "#ffcc99"
962
- }
963
- },
964
- {
965
- types: ["deleted"],
966
- style: {
967
- textDecorationLine: "line-through"
968
- }
969
- },
970
- {
971
- types: ["inserted"],
972
- style: {
973
- textDecorationLine: "underline"
974
- }
975
- },
976
- {
977
- types: ["italic"],
978
- style: {
979
- fontStyle: "italic"
980
- }
981
- },
982
- {
983
- types: ["important", "bold"],
984
- style: {
985
- fontWeight: "bold"
986
- }
987
- },
988
- {
989
- types: ["important"],
990
- style: {
991
- color: "#c4b9fe"
992
- }
993
- }
994
- ]
995
- }, $e = Be, Pe = {
996
- plain: {
997
- backgroundColor: "#faf8f5",
998
- color: "#728fcb"
999
- },
1000
- styles: [
1001
- {
1002
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1003
- style: {
1004
- color: "#b6ad9a"
1005
- }
1006
- },
1007
- {
1008
- types: ["namespace"],
1009
- style: {
1010
- opacity: 0.7
1011
- }
1012
- },
1013
- {
1014
- types: ["tag", "operator", "number"],
1015
- style: {
1016
- color: "#063289"
1017
- }
1018
- },
1019
- {
1020
- types: ["property", "function"],
1021
- style: {
1022
- color: "#b29762"
1023
- }
1024
- },
1025
- {
1026
- types: ["tag-id", "selector", "atrule-id"],
1027
- style: {
1028
- color: "#2d2006"
1029
- }
1030
- },
1031
- {
1032
- types: ["attr-name"],
1033
- style: {
1034
- color: "#896724"
1035
- }
1036
- },
1037
- {
1038
- types: [
1039
- "boolean",
1040
- "string",
1041
- "entity",
1042
- "url",
1043
- "attr-value",
1044
- "keyword",
1045
- "control",
1046
- "directive",
1047
- "unit",
1048
- "statement",
1049
- "regex",
1050
- "atrule"
1051
- ],
1052
- style: {
1053
- color: "#728fcb"
1054
- }
1055
- },
1056
- {
1057
- types: ["placeholder", "variable"],
1058
- style: {
1059
- color: "#93abdc"
1060
- }
1061
- },
1062
- {
1063
- types: ["deleted"],
1064
- style: {
1065
- textDecorationLine: "line-through"
1066
- }
1067
- },
1068
- {
1069
- types: ["inserted"],
1070
- style: {
1071
- textDecorationLine: "underline"
1072
- }
1073
- },
1074
- {
1075
- types: ["italic"],
1076
- style: {
1077
- fontStyle: "italic"
1078
- }
1079
- },
1080
- {
1081
- types: ["important", "bold"],
1082
- style: {
1083
- fontWeight: "bold"
1084
- }
1085
- },
1086
- {
1087
- types: ["important"],
1088
- style: {
1089
- color: "#896724"
1090
- }
1091
- }
1092
- ]
1093
- }, je = Pe, ze = {
1094
- plain: {
1095
- color: "#393A34",
1096
- backgroundColor: "#f6f8fa"
1097
- },
1098
- styles: [
1099
- {
1100
- types: ["comment", "prolog", "doctype", "cdata"],
1101
- style: {
1102
- color: "#999988",
1103
- fontStyle: "italic"
1104
- }
1105
- },
1106
- {
1107
- types: ["namespace"],
1108
- style: {
1109
- opacity: 0.7
1110
- }
1111
- },
1112
- {
1113
- types: ["string", "attr-value"],
1114
- style: {
1115
- color: "#e3116c"
1116
- }
1117
- },
1118
- {
1119
- types: ["punctuation", "operator"],
1120
- style: {
1121
- color: "#393A34"
1122
- }
1123
- },
1124
- {
1125
- types: [
1126
- "entity",
1127
- "url",
1128
- "symbol",
1129
- "number",
1130
- "boolean",
1131
- "variable",
1132
- "constant",
1133
- "property",
1134
- "regex",
1135
- "inserted"
1136
- ],
1137
- style: {
1138
- color: "#36acaa"
1139
- }
1140
- },
1141
- {
1142
- types: ["atrule", "keyword", "attr-name", "selector"],
1143
- style: {
1144
- color: "#00a4db"
1145
- }
1146
- },
1147
- {
1148
- types: ["function", "deleted", "tag"],
1149
- style: {
1150
- color: "#d73a49"
1151
- }
1152
- },
1153
- {
1154
- types: ["function-variable"],
1155
- style: {
1156
- color: "#6f42c1"
1157
- }
1158
- },
1159
- {
1160
- types: ["tag", "selector", "keyword"],
1161
- style: {
1162
- color: "#00009f"
1163
- }
1164
- }
1165
- ]
1166
- }, Me = ze, Ue = {
1167
- plain: {
1168
- color: "#d6deeb",
1169
- backgroundColor: "#011627"
1170
- },
1171
- styles: [
1172
- {
1173
- types: ["changed"],
1174
- style: {
1175
- color: "rgb(162, 191, 252)",
1176
- fontStyle: "italic"
1177
- }
1178
- },
1179
- {
1180
- types: ["deleted"],
1181
- style: {
1182
- color: "rgba(239, 83, 80, 0.56)",
1183
- fontStyle: "italic"
1184
- }
1185
- },
1186
- {
1187
- types: ["inserted", "attr-name"],
1188
- style: {
1189
- color: "rgb(173, 219, 103)",
1190
- fontStyle: "italic"
1191
- }
1192
- },
1193
- {
1194
- types: ["comment"],
1195
- style: {
1196
- color: "rgb(99, 119, 119)",
1197
- fontStyle: "italic"
1198
- }
1199
- },
1200
- {
1201
- types: ["string", "url"],
1202
- style: {
1203
- color: "rgb(173, 219, 103)"
1204
- }
1205
- },
1206
- {
1207
- types: ["variable"],
1208
- style: {
1209
- color: "rgb(214, 222, 235)"
1210
- }
1211
- },
1212
- {
1213
- types: ["number"],
1214
- style: {
1215
- color: "rgb(247, 140, 108)"
1216
- }
1217
- },
1218
- {
1219
- types: ["builtin", "char", "constant", "function"],
1220
- style: {
1221
- color: "rgb(130, 170, 255)"
1222
- }
1223
- },
1224
- {
1225
- // This was manually added after the auto-generation
1226
- // so that punctuations are not italicised
1227
- types: ["punctuation"],
1228
- style: {
1229
- color: "rgb(199, 146, 234)"
1230
- }
1231
- },
1232
- {
1233
- types: ["selector", "doctype"],
1234
- style: {
1235
- color: "rgb(199, 146, 234)",
1236
- fontStyle: "italic"
1237
- }
1238
- },
1239
- {
1240
- types: ["class-name"],
1241
- style: {
1242
- color: "rgb(255, 203, 139)"
1243
- }
1244
- },
1245
- {
1246
- types: ["tag", "operator", "keyword"],
1247
- style: {
1248
- color: "rgb(127, 219, 202)"
1249
- }
1250
- },
1251
- {
1252
- types: ["boolean"],
1253
- style: {
1254
- color: "rgb(255, 88, 116)"
1255
- }
1256
- },
1257
- {
1258
- types: ["property"],
1259
- style: {
1260
- color: "rgb(128, 203, 196)"
1261
- }
1262
- },
1263
- {
1264
- types: ["namespace"],
1265
- style: {
1266
- color: "rgb(178, 204, 214)"
1267
- }
1268
- }
1269
- ]
1270
- }, Ge = Ue, Ze = {
1271
- plain: {
1272
- color: "#403f53",
1273
- backgroundColor: "#FBFBFB"
1274
- },
1275
- styles: [
1276
- {
1277
- types: ["changed"],
1278
- style: {
1279
- color: "rgb(162, 191, 252)",
1280
- fontStyle: "italic"
1281
- }
1282
- },
1283
- {
1284
- types: ["deleted"],
1285
- style: {
1286
- color: "rgba(239, 83, 80, 0.56)",
1287
- fontStyle: "italic"
1288
- }
1289
- },
1290
- {
1291
- types: ["inserted", "attr-name"],
1292
- style: {
1293
- color: "rgb(72, 118, 214)",
1294
- fontStyle: "italic"
1295
- }
1296
- },
1297
- {
1298
- types: ["comment"],
1299
- style: {
1300
- color: "rgb(152, 159, 177)",
1301
- fontStyle: "italic"
1302
- }
1303
- },
1304
- {
1305
- types: ["string", "builtin", "char", "constant", "url"],
1306
- style: {
1307
- color: "rgb(72, 118, 214)"
1308
- }
1309
- },
1310
- {
1311
- types: ["variable"],
1312
- style: {
1313
- color: "rgb(201, 103, 101)"
1314
- }
1315
- },
1316
- {
1317
- types: ["number"],
1318
- style: {
1319
- color: "rgb(170, 9, 130)"
1320
- }
1321
- },
1322
- {
1323
- // This was manually added after the auto-generation
1324
- // so that punctuations are not italicised
1325
- types: ["punctuation"],
1326
- style: {
1327
- color: "rgb(153, 76, 195)"
1328
- }
1329
- },
1330
- {
1331
- types: ["function", "selector", "doctype"],
1332
- style: {
1333
- color: "rgb(153, 76, 195)",
1334
- fontStyle: "italic"
1335
- }
1336
- },
1337
- {
1338
- types: ["class-name"],
1339
- style: {
1340
- color: "rgb(17, 17, 17)"
1341
- }
1342
- },
1343
- {
1344
- types: ["tag"],
1345
- style: {
1346
- color: "rgb(153, 76, 195)"
1347
- }
1348
- },
1349
- {
1350
- types: ["operator", "property", "keyword", "namespace"],
1351
- style: {
1352
- color: "rgb(12, 150, 155)"
1353
- }
1354
- },
1355
- {
1356
- types: ["boolean"],
1357
- style: {
1358
- color: "rgb(188, 84, 84)"
1359
- }
1360
- }
1361
- ]
1362
- }, We = Ze, L = {
1363
- char: "#D8DEE9",
1364
- comment: "#999999",
1365
- keyword: "#c5a5c5",
1366
- primitive: "#5a9bcf",
1367
- string: "#8dc891",
1368
- variable: "#d7deea",
1369
- boolean: "#ff8b50",
1370
- punctuation: "#5FB3B3",
1371
- tag: "#fc929e",
1372
- function: "#79b6f2",
1373
- className: "#FAC863",
1374
- method: "#6699CC",
1375
- operator: "#fc929e"
1376
- }, qe = {
1377
- plain: {
1378
- backgroundColor: "#282c34",
1379
- color: "#ffffff"
1380
- },
1381
- styles: [
1382
- {
1383
- types: ["attr-name"],
1384
- style: {
1385
- color: L.keyword
1386
- }
1387
- },
1388
- {
1389
- types: ["attr-value"],
1390
- style: {
1391
- color: L.string
1392
- }
1393
- },
1394
- {
1395
- types: [
1396
- "comment",
1397
- "block-comment",
1398
- "prolog",
1399
- "doctype",
1400
- "cdata",
1401
- "shebang"
1402
- ],
1403
- style: {
1404
- color: L.comment
1405
- }
1406
- },
1407
- {
1408
- types: [
1409
- "property",
1410
- "number",
1411
- "function-name",
1412
- "constant",
1413
- "symbol",
1414
- "deleted"
1415
- ],
1416
- style: {
1417
- color: L.primitive
1418
- }
1419
- },
1420
- {
1421
- types: ["boolean"],
1422
- style: {
1423
- color: L.boolean
1424
- }
1425
- },
1426
- {
1427
- types: ["tag"],
1428
- style: {
1429
- color: L.tag
1430
- }
1431
- },
1432
- {
1433
- types: ["string"],
1434
- style: {
1435
- color: L.string
1436
- }
1437
- },
1438
- {
1439
- types: ["punctuation"],
1440
- style: {
1441
- color: L.string
1442
- }
1443
- },
1444
- {
1445
- types: ["selector", "char", "builtin", "inserted"],
1446
- style: {
1447
- color: L.char
1448
- }
1449
- },
1450
- {
1451
- types: ["function"],
1452
- style: {
1453
- color: L.function
1454
- }
1455
- },
1456
- {
1457
- types: ["operator", "entity", "url", "variable"],
1458
- style: {
1459
- color: L.variable
1460
- }
1461
- },
1462
- {
1463
- types: ["keyword"],
1464
- style: {
1465
- color: L.keyword
1466
- }
1467
- },
1468
- {
1469
- types: ["atrule", "class-name"],
1470
- style: {
1471
- color: L.className
1472
- }
1473
- },
1474
- {
1475
- types: ["important"],
1476
- style: {
1477
- fontWeight: "400"
1478
- }
1479
- },
1480
- {
1481
- types: ["bold"],
1482
- style: {
1483
- fontWeight: "bold"
1484
- }
1485
- },
1486
- {
1487
- types: ["italic"],
1488
- style: {
1489
- fontStyle: "italic"
1490
- }
1491
- },
1492
- {
1493
- types: ["namespace"],
1494
- style: {
1495
- opacity: 0.7
1496
- }
1497
- }
1498
- ]
1499
- }, He = qe, Ye = {
1500
- plain: {
1501
- color: "#f8f8f2",
1502
- backgroundColor: "#272822"
1503
- },
1504
- styles: [
1505
- {
1506
- types: ["changed"],
1507
- style: {
1508
- color: "rgb(162, 191, 252)",
1509
- fontStyle: "italic"
1510
- }
1511
- },
1512
- {
1513
- types: ["deleted"],
1514
- style: {
1515
- color: "#f92672",
1516
- fontStyle: "italic"
1517
- }
1518
- },
1519
- {
1520
- types: ["inserted"],
1521
- style: {
1522
- color: "rgb(173, 219, 103)",
1523
- fontStyle: "italic"
1524
- }
1525
- },
1526
- {
1527
- types: ["comment"],
1528
- style: {
1529
- color: "#8292a2",
1530
- fontStyle: "italic"
1531
- }
1532
- },
1533
- {
1534
- types: ["string", "url"],
1535
- style: {
1536
- color: "#a6e22e"
1537
- }
1538
- },
1539
- {
1540
- types: ["variable"],
1541
- style: {
1542
- color: "#f8f8f2"
1543
- }
1544
- },
1545
- {
1546
- types: ["number"],
1547
- style: {
1548
- color: "#ae81ff"
1549
- }
1550
- },
1551
- {
1552
- types: ["builtin", "char", "constant", "function", "class-name"],
1553
- style: {
1554
- color: "#e6db74"
1555
- }
1556
- },
1557
- {
1558
- types: ["punctuation"],
1559
- style: {
1560
- color: "#f8f8f2"
1561
- }
1562
- },
1563
- {
1564
- types: ["selector", "doctype"],
1565
- style: {
1566
- color: "#a6e22e",
1567
- fontStyle: "italic"
1568
- }
1569
- },
1570
- {
1571
- types: ["tag", "operator", "keyword"],
1572
- style: {
1573
- color: "#66d9ef"
1574
- }
1575
- },
1576
- {
1577
- types: ["boolean"],
1578
- style: {
1579
- color: "#ae81ff"
1580
- }
1581
- },
1582
- {
1583
- types: ["namespace"],
1584
- style: {
1585
- color: "rgb(178, 204, 214)",
1586
- opacity: 0.7
1587
- }
1588
- },
1589
- {
1590
- types: ["tag", "property"],
1591
- style: {
1592
- color: "#f92672"
1593
- }
1594
- },
1595
- {
1596
- types: ["attr-name"],
1597
- style: {
1598
- color: "#a6e22e !important"
1599
- }
1600
- },
1601
- {
1602
- types: ["doctype"],
1603
- style: {
1604
- color: "#8292a2"
1605
- }
1606
- },
1607
- {
1608
- types: ["rule"],
1609
- style: {
1610
- color: "#e6db74"
1611
- }
1612
- }
1613
- ]
1614
- }, Ke = Ye, Ve = {
1615
- plain: {
1616
- color: "#bfc7d5",
1617
- backgroundColor: "#292d3e"
1618
- },
1619
- styles: [
1620
- {
1621
- types: ["comment"],
1622
- style: {
1623
- color: "rgb(105, 112, 152)",
1624
- fontStyle: "italic"
1625
- }
1626
- },
1627
- {
1628
- types: ["string", "inserted"],
1629
- style: {
1630
- color: "rgb(195, 232, 141)"
1631
- }
1632
- },
1633
- {
1634
- types: ["number"],
1635
- style: {
1636
- color: "rgb(247, 140, 108)"
1637
- }
1638
- },
1639
- {
1640
- types: ["builtin", "char", "constant", "function"],
1641
- style: {
1642
- color: "rgb(130, 170, 255)"
1643
- }
1644
- },
1645
- {
1646
- types: ["punctuation", "selector"],
1647
- style: {
1648
- color: "rgb(199, 146, 234)"
1649
- }
1650
- },
1651
- {
1652
- types: ["variable"],
1653
- style: {
1654
- color: "rgb(191, 199, 213)"
1655
- }
1656
- },
1657
- {
1658
- types: ["class-name", "attr-name"],
1659
- style: {
1660
- color: "rgb(255, 203, 107)"
1661
- }
1662
- },
1663
- {
1664
- types: ["tag", "deleted"],
1665
- style: {
1666
- color: "rgb(255, 85, 114)"
1667
- }
1668
- },
1669
- {
1670
- types: ["operator"],
1671
- style: {
1672
- color: "rgb(137, 221, 255)"
1673
- }
1674
- },
1675
- {
1676
- types: ["boolean"],
1677
- style: {
1678
- color: "rgb(255, 88, 116)"
1679
- }
1680
- },
1681
- {
1682
- types: ["keyword"],
1683
- style: {
1684
- fontStyle: "italic"
1685
- }
1686
- },
1687
- {
1688
- types: ["doctype"],
1689
- style: {
1690
- color: "rgb(199, 146, 234)",
1691
- fontStyle: "italic"
1692
- }
1693
- },
1694
- {
1695
- types: ["namespace"],
1696
- style: {
1697
- color: "rgb(178, 204, 214)"
1698
- }
1699
- },
1700
- {
1701
- types: ["url"],
1702
- style: {
1703
- color: "rgb(221, 221, 221)"
1704
- }
1705
- }
1706
- ]
1707
- }, Xe = Ve, Qe = {
1708
- plain: {
1709
- color: "#9EFEFF",
1710
- backgroundColor: "#2D2A55"
1711
- },
1712
- styles: [
1713
- {
1714
- types: ["changed"],
1715
- style: {
1716
- color: "rgb(255, 238, 128)"
1717
- }
1718
- },
1719
- {
1720
- types: ["deleted"],
1721
- style: {
1722
- color: "rgba(239, 83, 80, 0.56)"
1723
- }
1724
- },
1725
- {
1726
- types: ["inserted"],
1727
- style: {
1728
- color: "rgb(173, 219, 103)"
1729
- }
1730
- },
1731
- {
1732
- types: ["comment"],
1733
- style: {
1734
- color: "rgb(179, 98, 255)",
1735
- fontStyle: "italic"
1736
- }
1737
- },
1738
- {
1739
- types: ["punctuation"],
1740
- style: {
1741
- color: "rgb(255, 255, 255)"
1742
- }
1743
- },
1744
- {
1745
- types: ["constant"],
1746
- style: {
1747
- color: "rgb(255, 98, 140)"
1748
- }
1749
- },
1750
- {
1751
- types: ["string", "url"],
1752
- style: {
1753
- color: "rgb(165, 255, 144)"
1754
- }
1755
- },
1756
- {
1757
- types: ["variable"],
1758
- style: {
1759
- color: "rgb(255, 238, 128)"
1760
- }
1761
- },
1762
- {
1763
- types: ["number", "boolean"],
1764
- style: {
1765
- color: "rgb(255, 98, 140)"
1766
- }
1767
- },
1768
- {
1769
- types: ["attr-name"],
1770
- style: {
1771
- color: "rgb(255, 180, 84)"
1772
- }
1773
- },
1774
- {
1775
- types: [
1776
- "keyword",
1777
- "operator",
1778
- "property",
1779
- "namespace",
1780
- "tag",
1781
- "selector",
1782
- "doctype"
1783
- ],
1784
- style: {
1785
- color: "rgb(255, 157, 0)"
1786
- }
1787
- },
1788
- {
1789
- types: ["builtin", "char", "constant", "function", "class-name"],
1790
- style: {
1791
- color: "rgb(250, 208, 0)"
1792
- }
1793
- }
1794
- ]
1795
- }, Je = Qe, et = {
1796
- plain: {
1797
- backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
1798
- backgroundImage: "#34294f",
1799
- color: "#f92aad",
1800
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1801
- },
1802
- styles: [
1803
- {
1804
- types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
1805
- style: {
1806
- color: "#495495",
1807
- fontStyle: "italic"
1808
- }
1809
- },
1810
- {
1811
- types: ["punctuation"],
1812
- style: {
1813
- color: "#ccc"
1814
- }
1815
- },
1816
- {
1817
- types: [
1818
- "tag",
1819
- "attr-name",
1820
- "namespace",
1821
- "number",
1822
- "unit",
1823
- "hexcode",
1824
- "deleted"
1825
- ],
1826
- style: {
1827
- color: "#e2777a"
1828
- }
1829
- },
1830
- {
1831
- types: ["property", "selector"],
1832
- style: {
1833
- color: "#72f1b8",
1834
- textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
1835
- }
1836
- },
1837
- {
1838
- types: ["function-name"],
1839
- style: {
1840
- color: "#6196cc"
1841
- }
1842
- },
1843
- {
1844
- types: ["boolean", "selector-id", "function"],
1845
- style: {
1846
- color: "#fdfdfd",
1847
- textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
1848
- }
1849
- },
1850
- {
1851
- types: ["class-name", "maybe-class-name", "builtin"],
1852
- style: {
1853
- color: "#fff5f6",
1854
- textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
1855
- }
1856
- },
1857
- {
1858
- types: ["constant", "symbol"],
1859
- style: {
1860
- color: "#f92aad",
1861
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
1862
- }
1863
- },
1864
- {
1865
- types: ["important", "atrule", "keyword", "selector-class"],
1866
- style: {
1867
- color: "#f4eee4",
1868
- textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
1869
- }
1870
- },
1871
- {
1872
- types: ["string", "char", "attr-value", "regex", "variable"],
1873
- style: {
1874
- color: "#f87c32"
1875
- }
1876
- },
1877
- {
1878
- types: ["parameter"],
1879
- style: {
1880
- fontStyle: "italic"
1881
- }
1882
- },
1883
- {
1884
- types: ["entity", "url"],
1885
- style: {
1886
- color: "#67cdcc"
1887
- }
1888
- },
1889
- {
1890
- types: ["operator"],
1891
- style: {
1892
- color: "ffffffee"
1893
- }
1894
- },
1895
- {
1896
- types: ["important", "bold"],
1897
- style: {
1898
- fontWeight: "bold"
1899
- }
1900
- },
1901
- {
1902
- types: ["italic"],
1903
- style: {
1904
- fontStyle: "italic"
1905
- }
1906
- },
1907
- {
1908
- types: ["entity"],
1909
- style: {
1910
- cursor: "help"
1911
- }
1912
- },
1913
- {
1914
- types: ["inserted"],
1915
- style: {
1916
- color: "green"
1917
- }
1918
- }
1919
- ]
1920
- }, tt = et, at = {
1921
- plain: {
1922
- color: "#282a2e",
1923
- backgroundColor: "#ffffff"
1924
- },
1925
- styles: [
1926
- {
1927
- types: ["comment"],
1928
- style: {
1929
- color: "rgb(197, 200, 198)"
1930
- }
1931
- },
1932
- {
1933
- types: ["string", "number", "builtin", "variable"],
1934
- style: {
1935
- color: "rgb(150, 152, 150)"
1936
- }
1937
- },
1938
- {
1939
- types: ["class-name", "function", "tag", "attr-name"],
1940
- style: {
1941
- color: "rgb(40, 42, 46)"
1942
- }
1943
- }
1944
- ]
1945
- }, nt = at, rt = {
1946
- plain: {
1947
- color: "#9CDCFE",
1948
- backgroundColor: "#1E1E1E"
1949
- },
1950
- styles: [
1951
- {
1952
- types: ["prolog"],
1953
- style: {
1954
- color: "rgb(0, 0, 128)"
1955
- }
1956
- },
1957
- {
1958
- types: ["comment"],
1959
- style: {
1960
- color: "rgb(106, 153, 85)"
1961
- }
1962
- },
1963
- {
1964
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
1965
- style: {
1966
- color: "rgb(86, 156, 214)"
1967
- }
1968
- },
1969
- {
1970
- types: ["number", "inserted"],
1971
- style: {
1972
- color: "rgb(181, 206, 168)"
1973
- }
1974
- },
1975
- {
1976
- types: ["constant"],
1977
- style: {
1978
- color: "rgb(100, 102, 149)"
1979
- }
1980
- },
1981
- {
1982
- types: ["attr-name", "variable"],
1983
- style: {
1984
- color: "rgb(156, 220, 254)"
1985
- }
1986
- },
1987
- {
1988
- types: ["deleted", "string", "attr-value", "template-punctuation"],
1989
- style: {
1990
- color: "rgb(206, 145, 120)"
1991
- }
1992
- },
1993
- {
1994
- types: ["selector"],
1995
- style: {
1996
- color: "rgb(215, 186, 125)"
1997
- }
1998
- },
1999
- {
2000
- // Fix tag color
2001
- types: ["tag"],
2002
- style: {
2003
- color: "rgb(78, 201, 176)"
2004
- }
2005
- },
2006
- {
2007
- // Fix tag color for HTML
2008
- types: ["tag"],
2009
- languages: ["markup"],
2010
- style: {
2011
- color: "rgb(86, 156, 214)"
2012
- }
2013
- },
2014
- {
2015
- types: ["punctuation", "operator"],
2016
- style: {
2017
- color: "rgb(212, 212, 212)"
2018
- }
2019
- },
2020
- {
2021
- // Fix punctuation color for HTML
2022
- types: ["punctuation"],
2023
- languages: ["markup"],
2024
- style: {
2025
- color: "#808080"
2026
- }
2027
- },
2028
- {
2029
- types: ["function"],
2030
- style: {
2031
- color: "rgb(220, 220, 170)"
2032
- }
2033
- },
2034
- {
2035
- types: ["class-name"],
2036
- style: {
2037
- color: "rgb(78, 201, 176)"
2038
- }
2039
- },
2040
- {
2041
- types: ["char"],
2042
- style: {
2043
- color: "rgb(209, 105, 105)"
2044
- }
2045
- }
2046
- ]
2047
- }, ye = rt, ot = {
2048
- plain: {
2049
- color: "#000000",
2050
- backgroundColor: "#ffffff"
2051
- },
2052
- styles: [
2053
- {
2054
- types: ["comment"],
2055
- style: {
2056
- color: "rgb(0, 128, 0)"
2057
- }
2058
- },
2059
- {
2060
- types: ["builtin"],
2061
- style: {
2062
- color: "rgb(0, 112, 193)"
2063
- }
2064
- },
2065
- {
2066
- types: ["number", "variable", "inserted"],
2067
- style: {
2068
- color: "rgb(9, 134, 88)"
2069
- }
2070
- },
2071
- {
2072
- types: ["operator"],
2073
- style: {
2074
- color: "rgb(0, 0, 0)"
2075
- }
2076
- },
2077
- {
2078
- types: ["constant", "char"],
2079
- style: {
2080
- color: "rgb(129, 31, 63)"
2081
- }
2082
- },
2083
- {
2084
- types: ["tag"],
2085
- style: {
2086
- color: "rgb(128, 0, 0)"
2087
- }
2088
- },
2089
- {
2090
- types: ["attr-name"],
2091
- style: {
2092
- color: "rgb(255, 0, 0)"
2093
- }
2094
- },
2095
- {
2096
- types: ["deleted", "string"],
2097
- style: {
2098
- color: "rgb(163, 21, 21)"
2099
- }
2100
- },
2101
- {
2102
- types: ["changed", "punctuation"],
2103
- style: {
2104
- color: "rgb(4, 81, 165)"
2105
- }
2106
- },
2107
- {
2108
- types: ["function", "keyword"],
2109
- style: {
2110
- color: "rgb(0, 0, 255)"
2111
- }
2112
- },
2113
- {
2114
- types: ["class-name"],
2115
- style: {
2116
- color: "rgb(38, 127, 153)"
2117
- }
2118
- }
2119
- ]
2120
- }, st = ot, lt = {
2121
- plain: {
2122
- color: "#f8fafc",
2123
- backgroundColor: "#011627"
2124
- },
2125
- styles: [
2126
- {
2127
- types: ["prolog"],
2128
- style: {
2129
- color: "#000080"
2130
- }
2131
- },
2132
- {
2133
- types: ["comment"],
2134
- style: {
2135
- color: "#6A9955"
2136
- }
2137
- },
2138
- {
2139
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2140
- style: {
2141
- color: "#569CD6"
2142
- }
2143
- },
2144
- {
2145
- types: ["number", "inserted"],
2146
- style: {
2147
- color: "#B5CEA8"
2148
- }
2149
- },
2150
- {
2151
- types: ["constant"],
2152
- style: {
2153
- color: "#f8fafc"
2154
- }
2155
- },
2156
- {
2157
- types: ["attr-name", "variable"],
2158
- style: {
2159
- color: "#9CDCFE"
2160
- }
2161
- },
2162
- {
2163
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2164
- style: {
2165
- color: "#cbd5e1"
2166
- }
2167
- },
2168
- {
2169
- types: ["selector"],
2170
- style: {
2171
- color: "#D7BA7D"
2172
- }
2173
- },
2174
- {
2175
- types: ["tag"],
2176
- style: {
2177
- color: "#0ea5e9"
2178
- }
2179
- },
2180
- {
2181
- types: ["tag"],
2182
- languages: ["markup"],
2183
- style: {
2184
- color: "#0ea5e9"
2185
- }
2186
- },
2187
- {
2188
- types: ["punctuation", "operator"],
2189
- style: {
2190
- color: "#D4D4D4"
2191
- }
2192
- },
2193
- {
2194
- types: ["punctuation"],
2195
- languages: ["markup"],
2196
- style: {
2197
- color: "#808080"
2198
- }
2199
- },
2200
- {
2201
- types: ["function"],
2202
- style: {
2203
- color: "#7dd3fc"
2204
- }
2205
- },
2206
- {
2207
- types: ["class-name"],
2208
- style: {
2209
- color: "#0ea5e9"
2210
- }
2211
- },
2212
- {
2213
- types: ["char"],
2214
- style: {
2215
- color: "#D16969"
2216
- }
2217
- }
2218
- ]
2219
- }, it = lt, ut = {
2220
- plain: {
2221
- color: "#0f172a",
2222
- backgroundColor: "#f1f5f9"
2223
- },
2224
- styles: [
2225
- {
2226
- types: ["prolog"],
2227
- style: {
2228
- color: "#000080"
2229
- }
2230
- },
2231
- {
2232
- types: ["comment"],
2233
- style: {
2234
- color: "#6A9955"
2235
- }
2236
- },
2237
- {
2238
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2239
- style: {
2240
- color: "#0c4a6e"
2241
- }
2242
- },
2243
- {
2244
- types: ["number", "inserted"],
2245
- style: {
2246
- color: "#B5CEA8"
2247
- }
2248
- },
2249
- {
2250
- types: ["constant"],
2251
- style: {
2252
- color: "#0f172a"
2253
- }
2254
- },
2255
- {
2256
- types: ["attr-name", "variable"],
2257
- style: {
2258
- color: "#0c4a6e"
2259
- }
2260
- },
2261
- {
2262
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2263
- style: {
2264
- color: "#64748b"
2265
- }
2266
- },
2267
- {
2268
- types: ["selector"],
2269
- style: {
2270
- color: "#D7BA7D"
2271
- }
2272
- },
2273
- {
2274
- types: ["tag"],
2275
- style: {
2276
- color: "#0ea5e9"
2277
- }
2278
- },
2279
- {
2280
- types: ["tag"],
2281
- languages: ["markup"],
2282
- style: {
2283
- color: "#0ea5e9"
2284
- }
2285
- },
2286
- {
2287
- types: ["punctuation", "operator"],
2288
- style: {
2289
- color: "#475569"
2290
- }
2291
- },
2292
- {
2293
- types: ["punctuation"],
2294
- languages: ["markup"],
2295
- style: {
2296
- color: "#808080"
2297
- }
2298
- },
2299
- {
2300
- types: ["function"],
2301
- style: {
2302
- color: "#0e7490"
2303
- }
2304
- },
2305
- {
2306
- types: ["class-name"],
2307
- style: {
2308
- color: "#0ea5e9"
2309
- }
2310
- },
2311
- {
2312
- types: ["char"],
2313
- style: {
2314
- color: "#D16969"
2315
- }
2316
- }
2317
- ]
2318
- }, ct = ut, pt = {
2319
- plain: {
2320
- backgroundColor: "hsl(220, 13%, 18%)",
2321
- color: "hsl(220, 14%, 71%)",
2322
- textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2323
- },
2324
- styles: [
2325
- {
2326
- types: ["comment", "prolog", "cdata"],
2327
- style: {
2328
- color: "hsl(220, 10%, 40%)"
2329
- }
2330
- },
2331
- {
2332
- types: ["doctype", "punctuation", "entity"],
2333
- style: {
2334
- color: "hsl(220, 14%, 71%)"
2335
- }
2336
- },
2337
- {
2338
- types: [
2339
- "attr-name",
2340
- "class-name",
2341
- "maybe-class-name",
2342
- "boolean",
2343
- "constant",
2344
- "number",
2345
- "atrule"
2346
- ],
2347
- style: { color: "hsl(29, 54%, 61%)" }
2348
- },
2349
- {
2350
- types: ["keyword"],
2351
- style: { color: "hsl(286, 60%, 67%)" }
2352
- },
2353
- {
2354
- types: ["property", "tag", "symbol", "deleted", "important"],
2355
- style: {
2356
- color: "hsl(355, 65%, 65%)"
2357
- }
2358
- },
2359
- {
2360
- types: [
2361
- "selector",
2362
- "string",
2363
- "char",
2364
- "builtin",
2365
- "inserted",
2366
- "regex",
2367
- "attr-value"
2368
- ],
2369
- style: {
2370
- color: "hsl(95, 38%, 62%)"
2371
- }
2372
- },
2373
- {
2374
- types: ["variable", "operator", "function"],
2375
- style: {
2376
- color: "hsl(207, 82%, 66%)"
2377
- }
2378
- },
2379
- {
2380
- types: ["url"],
2381
- style: {
2382
- color: "hsl(187, 47%, 55%)"
2383
- }
2384
- },
2385
- {
2386
- types: ["deleted"],
2387
- style: {
2388
- textDecorationLine: "line-through"
2389
- }
2390
- },
2391
- {
2392
- types: ["inserted"],
2393
- style: {
2394
- textDecorationLine: "underline"
2395
- }
2396
- },
2397
- {
2398
- types: ["italic"],
2399
- style: {
2400
- fontStyle: "italic"
2401
- }
2402
- },
2403
- {
2404
- types: ["important", "bold"],
2405
- style: {
2406
- fontWeight: "bold"
2407
- }
2408
- },
2409
- {
2410
- types: ["important"],
2411
- style: {
2412
- color: "hsl(220, 14%, 71%)"
2413
- }
2414
- }
2415
- ]
2416
- }, dt = pt, gt = {
2417
- plain: {
2418
- backgroundColor: "hsl(230, 1%, 98%)",
2419
- color: "hsl(230, 8%, 24%)"
2420
- },
2421
- styles: [
2422
- {
2423
- types: ["comment", "prolog", "cdata"],
2424
- style: {
2425
- color: "hsl(230, 4%, 64%)"
2426
- }
2427
- },
2428
- {
2429
- types: ["doctype", "punctuation", "entity"],
2430
- style: {
2431
- color: "hsl(230, 8%, 24%)"
2432
- }
2433
- },
2434
- {
2435
- types: [
2436
- "attr-name",
2437
- "class-name",
2438
- "boolean",
2439
- "constant",
2440
- "number",
2441
- "atrule"
2442
- ],
2443
- style: {
2444
- color: "hsl(35, 99%, 36%)"
2445
- }
2446
- },
2447
- {
2448
- types: ["keyword"],
2449
- style: {
2450
- color: "hsl(301, 63%, 40%)"
2451
- }
2452
- },
2453
- {
2454
- types: ["property", "tag", "symbol", "deleted", "important"],
2455
- style: {
2456
- color: "hsl(5, 74%, 59%)"
2457
- }
2458
- },
2459
- {
2460
- types: [
2461
- "selector",
2462
- "string",
2463
- "char",
2464
- "builtin",
2465
- "inserted",
2466
- "regex",
2467
- "attr-value",
2468
- "punctuation"
2469
- ],
2470
- style: {
2471
- color: "hsl(119, 34%, 47%)"
2472
- }
2473
- },
2474
- {
2475
- types: ["variable", "operator", "function"],
2476
- style: {
2477
- color: "hsl(221, 87%, 60%)"
2478
- }
2479
- },
2480
- {
2481
- types: ["url"],
2482
- style: {
2483
- color: "hsl(198, 99%, 37%)"
2484
- }
2485
- },
2486
- {
2487
- types: ["deleted"],
2488
- style: {
2489
- textDecorationLine: "line-through"
2490
- }
2491
- },
2492
- {
2493
- types: ["inserted"],
2494
- style: {
2495
- textDecorationLine: "underline"
2496
- }
2497
- },
2498
- {
2499
- types: ["italic"],
2500
- style: {
2501
- fontStyle: "italic"
2502
- }
2503
- },
2504
- {
2505
- types: ["important", "bold"],
2506
- style: {
2507
- fontWeight: "bold"
2508
- }
2509
- },
2510
- {
2511
- types: ["important"],
2512
- style: {
2513
- color: "hsl(230, 8%, 24%)"
2514
- }
2515
- }
2516
- ]
2517
- }, yt = gt, ft = {
2518
- plain: {
2519
- color: "#ebdbb2",
2520
- backgroundColor: "#292828"
2521
- },
2522
- styles: [
2523
- {
2524
- types: [
2525
- "imports",
2526
- "class-name",
2527
- "maybe-class-name",
2528
- "constant",
2529
- "doctype",
2530
- "builtin",
2531
- "function"
2532
- ],
2533
- style: {
2534
- color: "#d8a657"
2535
- }
2536
- },
2537
- {
2538
- types: ["property-access"],
2539
- style: {
2540
- color: "#7daea3"
2541
- }
2542
- },
2543
- {
2544
- types: ["tag"],
2545
- style: {
2546
- color: "#e78a4e"
2547
- }
2548
- },
2549
- {
2550
- types: ["attr-name", "char", "url", "regex"],
2551
- style: {
2552
- color: "#a9b665"
2553
- }
2554
- },
2555
- {
2556
- types: ["attr-value", "string"],
2557
- style: {
2558
- color: "#89b482"
2559
- }
2560
- },
2561
- {
2562
- types: ["comment", "prolog", "cdata", "operator", "inserted"],
2563
- style: {
2564
- color: "#a89984"
2565
- }
2566
- },
2567
- {
2568
- types: [
2569
- "delimiter",
2570
- "boolean",
2571
- "keyword",
2572
- "selector",
2573
- "important",
2574
- "atrule",
2575
- "property",
2576
- "variable",
2577
- "deleted"
2578
- ],
2579
- style: {
2580
- color: "#ea6962"
2581
- }
2582
- },
2583
- {
2584
- types: ["entity", "number", "symbol"],
2585
- style: {
2586
- color: "#d3869b"
2587
- }
2588
- }
2589
- ]
2590
- }, bt = ft, mt = {
2591
- plain: {
2592
- color: "#654735",
2593
- backgroundColor: "#f9f5d7"
2594
- },
2595
- styles: [
2596
- {
2597
- types: [
2598
- "delimiter",
2599
- "boolean",
2600
- "keyword",
2601
- "selector",
2602
- "important",
2603
- "atrule",
2604
- "property",
2605
- "variable",
2606
- "deleted"
2607
- ],
2608
- style: {
2609
- color: "#af2528"
2610
- }
2611
- },
2612
- {
2613
- types: [
2614
- "imports",
2615
- "class-name",
2616
- "maybe-class-name",
2617
- "constant",
2618
- "doctype",
2619
- "builtin"
2620
- ],
2621
- style: {
2622
- color: "#b4730e"
2623
- }
2624
- },
2625
- {
2626
- types: ["string", "attr-value"],
2627
- style: {
2628
- color: "#477a5b"
2629
- }
2630
- },
2631
- {
2632
- types: ["property-access"],
2633
- style: {
2634
- color: "#266b79"
2635
- }
2636
- },
2637
- {
2638
- types: ["function", "attr-name", "char", "url"],
2639
- style: {
2640
- color: "#72761e"
2641
- }
2642
- },
2643
- {
2644
- types: ["tag"],
2645
- style: {
2646
- color: "#b94c07"
2647
- }
2648
- },
2649
- {
2650
- types: ["comment", "prolog", "cdata", "operator", "inserted"],
2651
- style: {
2652
- color: "#a89984"
2653
- }
2654
- },
2655
- {
2656
- types: ["entity", "number", "symbol"],
2657
- style: {
2658
- color: "#924f79"
2659
- }
2660
- }
2661
- ]
2662
- }, ht = mt, vt = (e) => V(
2663
- (t) => {
2664
- var a = t, { className: l, style: d, line: h } = a, u = ge(a, ["className", "style", "line"]);
2665
- const m = q(B({}, u), {
2666
- className: ce("token-line", l)
2667
- });
2668
- return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof d == "object" && (m.style = B(B({}, m.style || {}), d)), m;
2669
- },
2670
- [e]
2671
- ), kt = (e) => {
2672
- const t = V(
2673
- ({ types: a, empty: l }) => {
2674
- if (e != null) {
2675
- {
2676
- if (a.length === 1 && a[0] === "plain")
2677
- return l != null ? { display: "inline-block" } : void 0;
2678
- if (a.length === 1 && l != null)
2679
- return e[a[0]];
2680
- }
2681
- return Object.assign(
2682
- l != null ? { display: "inline-block" } : {},
2683
- ...a.map((d) => e[d])
2684
- );
2685
- }
2686
- },
2687
- [e]
2688
- );
2689
- return V(
2690
- (a) => {
2691
- var l = a, { token: d, className: h, style: u } = l, m = ge(l, ["token", "className", "style"]);
2692
- const c = q(B({}, m), {
2693
- className: ce("token", ...d.types, h),
2694
- children: d.content,
2695
- style: t(d)
2696
- });
2697
- return u != null && (c.style = B(B({}, c.style || {}), u)), c;
2698
- },
2699
- [t]
2700
- );
2701
- }, wt = /\r\n|\r|\n/, re = (e) => {
2702
- e.length === 0 ? e.push({
2703
- types: ["plain"],
2704
- content: `
2705
- `,
2706
- empty: !0
2707
- }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2708
- `, e[0].empty = !0);
2709
- }, oe = (e, t) => {
2710
- const a = e.length;
2711
- return a > 0 && e[a - 1] === t ? e : e.concat(t);
2712
- }, Et = (e) => {
2713
- const t = [[]], a = [e], l = [0], d = [e.length];
2714
- let h = 0, u = 0, m = [];
2715
- const c = [m];
2716
- for (; u > -1; ) {
2717
- for (; (h = l[u]++) < d[u]; ) {
2718
- let g, b = t[u];
2719
- const v = a[u][h];
2720
- if (typeof v == "string" ? (b = u > 0 ? b : ["plain"], g = v) : (b = oe(b, v.type), v.alias && (b = oe(b, v.alias)), g = v.content), typeof g != "string") {
2721
- u++, t.push(b), a.push(g), l.push(0), d.push(g.length);
2722
- continue;
2723
- }
2724
- const w = g.split(wt), n = w.length;
2725
- m.push({
2726
- types: b,
2727
- content: w[0]
2728
- });
2729
- for (let r = 1; r < n; r++)
2730
- re(m), c.push(m = []), m.push({
2731
- types: b,
2732
- content: w[r]
2733
- });
2734
- }
2735
- u--, t.pop(), a.pop(), l.pop(), d.pop();
2736
- }
2737
- return re(m), c;
2738
- }, se = Et, xt = ({ prism: e, code: t, grammar: a, language: l }) => ve(() => {
2739
- if (a == null)
2740
- return se([t]);
2741
- const d = {
2742
- code: t,
2743
- grammar: a,
2744
- language: l,
2745
- tokens: []
2746
- };
2747
- return e.hooks.run("before-tokenize", d), d.tokens = e.tokenize(t, a), e.hooks.run("after-tokenize", d), se(d.tokens);
2748
- }, [
2749
- t,
2750
- a,
2751
- l,
2752
- // prism is a stable import
2753
- e
2754
- ]), St = (e, t) => {
2755
- const { plain: a } = e, l = e.styles.reduce((d, h) => {
2756
- const { languages: u, style: m } = h;
2757
- return u && !u.includes(t) || h.types.forEach((c) => {
2758
- const g = B(B({}, d[c]), m);
2759
- d[c] = g;
2760
- }), d;
2761
- }, {});
2762
- return l.root = a, l.plain = q(B({}, a), { backgroundColor: void 0 }), l;
2763
- }, At = St, _t = ({
2764
- children: e,
2765
- language: t,
2766
- code: a,
2767
- theme: l,
2768
- prism: d
2769
- }) => {
2770
- const h = t.toLowerCase(), u = At(l, h), m = vt(u), c = kt(u), g = d.languages[h], b = xt({ prism: d, language: h, code: a, grammar: g });
2771
- return e({
2772
- tokens: b,
2773
- className: `prism-code language-${h}`,
2774
- style: u != null ? u.root : {},
2775
- getLineProps: m,
2776
- getTokenProps: c
2777
- });
2778
- }, Ft = (e) => he(_t, q(B({}, e), {
2779
- prism: e.prism || o,
2780
- theme: e.theme || ye,
2781
- code: e.code,
2782
- language: e.language
2783
- }));
2784
- /*! Bundled license information:
2785
-
2786
- prismjs/prism.js:
2787
- (**
2788
- * Prism: Lightweight, robust, elegant syntax highlighting
2789
- *
2790
- * @license MIT <https://opensource.org/licenses/MIT>
2791
- * @author Lea Verou <https://lea.verou.me>
2792
- * @namespace
2793
- * @public
2794
- *)
2795
- */
2796
- var Tt = (e, t, a, l, d, h, u, m) => {
2797
- let c = document.documentElement, g = ["light", "dark"];
2798
- function b(w) {
2799
- (Array.isArray(e) ? e : [e]).forEach((n) => {
2800
- let r = n === "class", s = r && h ? d.map((p) => h[p] || p) : d;
2801
- r ? (c.classList.remove(...s), c.classList.add(w)) : c.setAttribute(n, w);
2802
- }), y(w);
2803
- }
2804
- function y(w) {
2805
- m && g.includes(w) && (c.style.colorScheme = w);
2806
- }
2807
- function v() {
2808
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2809
- }
2810
- if (l) b(l);
2811
- else try {
2812
- let w = localStorage.getItem(t) || a, n = u && w === "system" ? v() : w;
2813
- b(n);
2814
- } catch {
2815
- }
2816
- }, le = ["light", "dark"], fe = "(prefers-color-scheme: dark)", Rt = typeof window > "u", J = _.createContext(void 0), It = { setTheme: (e) => {
2817
- }, themes: [] }, Lt = () => {
2818
- var e;
2819
- return (e = _.useContext(J)) != null ? e : It;
2820
- }, Gt = (e) => _.useContext(J) ? _.createElement(_.Fragment, null, e.children) : _.createElement(Ct, { ...e }), Ot = ["light", "dark"], Ct = ({ forcedTheme: e, disableTransitionOnChange: t = !1, enableSystem: a = !0, enableColorScheme: l = !0, storageKey: d = "theme", themes: h = Ot, defaultTheme: u = a ? "system" : "light", attribute: m = "data-theme", value: c, children: g, nonce: b, scriptProps: y }) => {
2821
- let [v, w] = _.useState(() => ie(d, u)), [n, r] = _.useState(() => ie(d)), s = c ? Object.values(c) : h, p = _.useCallback((k) => {
2822
- let x = k;
2823
- if (!x) return;
2824
- k === "system" && a && (x = ue());
2825
- let S = c ? c[x] : x, F = t ? Dt(b) : null, A = document.documentElement, C = (T) => {
2826
- T === "class" ? (A.classList.remove(...s), S && A.classList.add(S)) : T.startsWith("data-") && (S ? A.setAttribute(T, S) : A.removeAttribute(T));
2827
- };
2828
- if (Array.isArray(m) ? m.forEach(C) : C(m), l) {
2829
- let T = le.includes(u) ? u : null, O = le.includes(x) ? x : T;
2830
- A.style.colorScheme = O;
2831
- }
2832
- F == null || F();
2833
- }, [b]), i = _.useCallback((k) => {
2834
- let x = typeof k == "function" ? k(v) : k;
2835
- w(x);
2836
- try {
2837
- localStorage.setItem(d, x);
2838
- } catch {
2839
- }
2840
- }, [v]), f = _.useCallback((k) => {
2841
- let x = ue(k);
2842
- r(x), v === "system" && a && !e && p("system");
2843
- }, [v, e]);
2844
- _.useEffect(() => {
2845
- let k = window.matchMedia(fe);
2846
- return k.addListener(f), f(k), () => k.removeListener(f);
2847
- }, [f]), _.useEffect(() => {
2848
- let k = (x) => {
2849
- x.key === d && (x.newValue ? w(x.newValue) : i(u));
2850
- };
2851
- return window.addEventListener("storage", k), () => window.removeEventListener("storage", k);
2852
- }, [i]), _.useEffect(() => {
2853
- p(e ?? v);
2854
- }, [e, v]);
2855
- let E = _.useMemo(() => ({ theme: v, setTheme: i, forcedTheme: e, resolvedTheme: v === "system" ? n : v, themes: a ? [...h, "system"] : h, systemTheme: a ? n : void 0 }), [v, i, e, n, a, h]);
2856
- return _.createElement(J.Provider, { value: E }, _.createElement(Nt, { forcedTheme: e, storageKey: d, attribute: m, enableSystem: a, enableColorScheme: l, defaultTheme: u, value: c, themes: h, nonce: b, scriptProps: y }), g);
2857
- }, Nt = _.memo(({ forcedTheme: e, storageKey: t, attribute: a, enableSystem: l, enableColorScheme: d, defaultTheme: h, value: u, themes: m, nonce: c, scriptProps: g }) => {
2858
- let b = JSON.stringify([a, t, h, e, m, u, l, d]).slice(1, -1);
2859
- return _.createElement("script", { ...g, suppressHydrationWarning: !0, nonce: typeof window > "u" ? c : "", dangerouslySetInnerHTML: { __html: `(${Tt.toString()})(${b})` } });
2860
- }), ie = (e, t) => {
2861
- if (Rt) return;
2862
- let a;
2863
- try {
2864
- a = localStorage.getItem(e) || void 0;
2865
- } catch {
2866
- }
2867
- return a || t;
2868
- }, Dt = (e) => {
2869
- let t = document.createElement("style");
2870
- return e && t.setAttribute("nonce", e), t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(t), () => {
2871
- window.getComputedStyle(document.body), setTimeout(() => {
2872
- document.head.removeChild(t);
2873
- }, 1);
2874
- };
2875
- }, ue = (e) => (e || (e = window.matchMedia(fe)), e.matches ? "dark" : "light");
2876
- globalThis.Prism = o;
2877
- import("./prism-bash.min-HHIMdNJ_.js");
2878
- import("./prism-ruby.min-Dx9KO9ds.js").then((e) => e.p);
2879
- import("./prism-markup-BNGj0Tvm.js");
2880
- import("./prism-json.min-B1GJqK1k.js");
2881
- import("./prism-java.min-BpvsOuIa.js").then((e) => e.p);
2882
- import("./prism-csharp.min-bQAo2pmx.js").then((e) => e.p);
2883
- import("./prism-objectivec.min-BXSWqpJJ.js");
2884
- import("./prism-markdown.min-C0Qn0m-5.js");
2885
- import("./prism-javascript.min-CEqHqgbm.js");
2886
- import("./prism-typescript.min-CD7H2IYQ.js").then((e) => e.p);
2887
- const Bt = {
2888
- mdx: "md"
2889
- }, Zt = ({
2890
- copyable: e = !0,
2891
- language: t = "plain",
2892
- title: a,
2893
- ...l
2894
- }) => {
2895
- const { resolvedTheme: d } = Lt(), [h, u] = ke(!1);
2896
- if (!l.code)
2897
- return null;
2898
- const m = d === "dark" ? X.vsDark : X.github;
2899
- return /* @__PURE__ */ I.jsx(
2900
- xe,
2901
- {
2902
- fallback: /* @__PURE__ */ I.jsxs("div", { className: "relative group", children: [
2903
- a && /* @__PURE__ */ I.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: a }),
2904
- /* @__PURE__ */ I.jsx(
2905
- "pre",
2906
- {
2907
- className: ae(
2908
- "relative scrollbar overflow-x-auto",
2909
- l.className,
2910
- l.noBackground ? "!bg-transparent" : "bg-[#f6f8fa] text-[#393a34] dark:bg-[#1e1e1e] dark:text-[#9cdcfe]",
2911
- l.wrapLines && "whitespace-pre-wrap break-words",
2912
- a && "pt-10"
2913
- ),
2914
- children: l.code
2915
- }
2916
- ),
2917
- l.showLanguageIndicator && /* @__PURE__ */ I.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t })
2918
- ] }),
2919
- children: /* @__PURE__ */ I.jsx(
2920
- Ft,
2921
- {
2922
- theme: m,
2923
- language: Bt[t] ?? t,
2924
- ...l,
2925
- children: ({ className: g, style: b, tokens: y, getLineProps: v, getTokenProps: w }) => /* @__PURE__ */ I.jsxs("div", { className: "relative group", children: [
2926
- a && /* @__PURE__ */ I.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: a }),
2927
- /* @__PURE__ */ I.jsx(
2928
- "pre",
2929
- {
2930
- className: ae(
2931
- "relative scrollbar overflow-x-auto",
2932
- g,
2933
- l.className,
2934
- l.noBackground && "!bg-transparent",
2935
- l.wrapLines && "whitespace-pre-wrap break-words",
2936
- a && "pt-10"
2937
- ),
2938
- style: b,
2939
- children: y.map((n, r) => (
2940
- // eslint-disable-next-line react/no-array-index-key
2941
- /* @__PURE__ */ I.jsx("div", { ...v({ line: n }), children: n.map((s, p) => (
2942
- // eslint-disable-next-line react/no-array-index-key
2943
- /* @__PURE__ */ I.jsx("span", { ...w({ token: s }) }, p)
2944
- )) }, r)
2945
- ))
2946
- }
2947
- ),
2948
- l.showLanguageIndicator && /* @__PURE__ */ I.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t }),
2949
- e && /* @__PURE__ */ I.jsx(
2950
- "button",
2951
- {
2952
- type: "button",
2953
- "aria-label": "Copy code",
2954
- title: "Copy code",
2955
- className: "absolute top-2 right-2 p-2 opacity-0 group-hover:opacity-100 group-hover:bg-zinc-100 group-hover:dark:bg-zinc-700 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400 transition",
2956
- disabled: h,
2957
- onClick: () => {
2958
- u(!0), navigator.clipboard.writeText(
2959
- y.map((n) => n.map(({ content: r }) => r).join("")).join(`
2960
- `)
2961
- ), setTimeout(() => u(!1), 2e3);
2962
- },
2963
- children: h ? /* @__PURE__ */ I.jsx(
2964
- we,
2965
- {
2966
- className: "text-emerald-600",
2967
- size: 16,
2968
- strokeWidth: 2.5,
2969
- absoluteStrokeWidth: !0
2970
- }
2971
- ) : /* @__PURE__ */ I.jsx(Ee, { size: 16 })
2972
- }
2973
- )
2974
- ] })
2975
- }
2976
- )
2977
- }
2978
- );
2979
- };
2980
- export {
2981
- Gt as J,
2982
- Zt as S,
2983
- Ut as e,
2984
- Lt as z
2985
- };
2986
- //# sourceMappingURL=SyntaxHighlight-B0L4SC_N.js.map