zudoku 0.0.0-f90a252 → 0.0.0-f9211eb

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 (735) hide show
  1. package/README.md +1 -1
  2. package/cli.js +3 -0
  3. package/dist/app/entry.client.d.ts +5 -0
  4. package/dist/app/entry.client.js +1 -0
  5. package/dist/app/entry.client.js.map +1 -1
  6. package/dist/app/entry.server.d.ts +8 -6
  7. package/dist/app/entry.server.js +12 -8
  8. package/dist/app/entry.server.js.map +1 -1
  9. package/dist/app/main.js +3 -1
  10. package/dist/app/main.js.map +1 -1
  11. package/dist/app/tailwind.js +20 -0
  12. package/dist/app/tailwind.js.map +1 -1
  13. package/dist/cli/build/handler.d.ts +1 -3
  14. package/dist/cli/build/handler.js +9 -1
  15. package/dist/cli/build/handler.js.map +1 -1
  16. package/dist/cli/cli.js +5 -0
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/cmds/build.d.ts +11 -3
  19. package/dist/cli/cmds/build.js +20 -13
  20. package/dist/cli/cmds/build.js.map +1 -1
  21. package/dist/cli/cmds/dev.d.ts +1 -1
  22. package/dist/cli/cmds/dev.js.map +1 -1
  23. package/dist/cli/cmds/preview.d.ts +16 -0
  24. package/dist/cli/cmds/preview.js +25 -0
  25. package/dist/cli/cmds/preview.js.map +1 -0
  26. package/dist/cli/dev/handler.js +2 -1
  27. package/dist/cli/dev/handler.js.map +1 -1
  28. package/dist/cli/preview/handler.d.ts +3 -0
  29. package/dist/cli/preview/handler.js +35 -0
  30. package/dist/cli/preview/handler.js.map +1 -0
  31. package/dist/config/common.d.ts +5 -3
  32. package/dist/config/config.d.ts +15 -15
  33. package/dist/config/loader.d.ts +6 -6
  34. package/dist/config/loader.js +20 -28
  35. package/dist/config/loader.js.map +1 -1
  36. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  37. package/dist/config/validators/InputSidebarSchema.js +10 -1
  38. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  39. package/dist/config/validators/common.d.ts +2993 -599
  40. package/dist/config/validators/common.js +107 -12
  41. package/dist/config/validators/common.js.map +1 -1
  42. package/dist/config/validators/icon-types.d.ts +1 -1
  43. package/dist/config/validators/validate.d.ts +1127 -284
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.js +1 -0
  46. package/dist/index.js.map +1 -1
  47. package/dist/lib/authentication/authentication.d.ts +1 -0
  48. package/dist/lib/authentication/hook.d.ts +1 -0
  49. package/dist/lib/authentication/hook.js +11 -1
  50. package/dist/lib/authentication/hook.js.map +1 -1
  51. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  52. package/dist/lib/authentication/providers/auth0.js +1 -0
  53. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  54. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  55. package/dist/lib/authentication/providers/clerk.js +25 -6
  56. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  57. package/dist/lib/authentication/providers/openid.d.ts +5 -3
  58. package/dist/lib/authentication/providers/openid.js +24 -10
  59. package/dist/lib/authentication/providers/openid.js.map +1 -1
  60. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  61. package/dist/lib/authentication/providers/supabase.js +117 -0
  62. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  63. package/dist/lib/authentication/state.d.ts +0 -26
  64. package/dist/lib/authentication/state.js +9 -18
  65. package/dist/lib/authentication/state.js.map +1 -1
  66. package/dist/lib/components/AnchorLink.d.ts +2 -2
  67. package/dist/lib/components/AnchorLink.js +5 -4
  68. package/dist/lib/components/AnchorLink.js.map +1 -1
  69. package/dist/lib/components/Banner.js +1 -1
  70. package/dist/lib/components/Banner.js.map +1 -1
  71. package/dist/lib/components/Bootstrap.d.ts +2 -1
  72. package/dist/lib/components/Bootstrap.js +3 -2
  73. package/dist/lib/components/Bootstrap.js.map +1 -1
  74. package/dist/lib/components/Footer.d.ts +1 -0
  75. package/dist/lib/components/Footer.js +32 -0
  76. package/dist/lib/components/Footer.js.map +1 -0
  77. package/dist/lib/components/Header.js +4 -4
  78. package/dist/lib/components/Header.js.map +1 -1
  79. package/dist/lib/components/Heading.d.ts +2 -2
  80. package/dist/lib/components/InlineCode.d.ts +2 -1
  81. package/dist/lib/components/InlineCode.js +2 -9
  82. package/dist/lib/components/InlineCode.js.map +1 -1
  83. package/dist/lib/components/Layout.js +8 -29
  84. package/dist/lib/components/Layout.js.map +1 -1
  85. package/dist/lib/components/Main.d.ts +2 -0
  86. package/dist/lib/components/Main.js +17 -0
  87. package/dist/lib/components/Main.js.map +1 -0
  88. package/dist/lib/components/MobileTopNavigation.js +6 -3
  89. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  90. package/dist/lib/components/Pagination.d.ts +11 -0
  91. package/dist/lib/components/Pagination.js +10 -0
  92. package/dist/lib/components/Pagination.js.map +1 -0
  93. package/dist/lib/components/ThemeSwitch.js +1 -1
  94. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  95. package/dist/lib/components/TopNavigation.d.ts +3 -2
  96. package/dist/lib/components/TopNavigation.js +28 -14
  97. package/dist/lib/components/TopNavigation.js.map +1 -1
  98. package/dist/lib/components/Zudoku.d.ts +1 -1
  99. package/dist/lib/components/Zudoku.js +15 -8
  100. package/dist/lib/components/Zudoku.js.map +1 -1
  101. package/dist/lib/components/cache.d.ts +7 -0
  102. package/dist/lib/components/cache.js +7 -0
  103. package/dist/lib/components/cache.js.map +1 -1
  104. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  105. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  106. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  107. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  108. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  109. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  110. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  111. package/dist/lib/components/context/ViewportAnchorContext.js +5 -10
  112. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  113. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  114. package/dist/lib/components/context/ZudokuContext.js +13 -7
  115. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  116. package/dist/lib/components/index.d.ts +7 -3
  117. package/dist/lib/components/index.js +2 -0
  118. package/dist/lib/components/index.js.map +1 -1
  119. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  120. package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
  121. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  122. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  123. package/dist/lib/components/navigation/Sidebar.js +1 -12
  124. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  125. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  126. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  127. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  128. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  129. package/dist/lib/components/navigation/SidebarCategory.js +10 -6
  130. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  131. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
  132. package/dist/lib/components/navigation/SidebarItem.js +17 -11
  133. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  134. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  135. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  136. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  137. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  138. package/dist/lib/components/navigation/Toc.js.map +1 -0
  139. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  140. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  141. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  142. package/dist/lib/core/RouteGuard.d.ts +2 -1
  143. package/dist/lib/core/RouteGuard.js +31 -11
  144. package/dist/lib/core/RouteGuard.js.map +1 -1
  145. package/dist/lib/core/ZudokuContext.d.ts +32 -6
  146. package/dist/lib/core/ZudokuContext.js +29 -6
  147. package/dist/lib/core/ZudokuContext.js.map +1 -1
  148. package/dist/lib/core/plugins.d.ts +15 -7
  149. package/dist/lib/core/plugins.js +1 -0
  150. package/dist/lib/core/plugins.js.map +1 -1
  151. package/dist/lib/errors/ErrorAlert.js +6 -1
  152. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  153. package/dist/lib/hooks/index.d.ts +3 -0
  154. package/dist/lib/hooks/index.js +5 -0
  155. package/dist/lib/hooks/index.js.map +1 -0
  156. package/dist/lib/hooks/useEvent.d.ts +11 -0
  157. package/dist/lib/hooks/useEvent.js +19 -0
  158. package/dist/lib/hooks/useEvent.js.map +1 -0
  159. package/dist/lib/hooks/useEvent.test.js +100 -0
  160. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  161. package/dist/lib/oas/graphql/index.d.ts +17 -4
  162. package/dist/lib/oas/graphql/index.js +151 -39
  163. package/dist/lib/oas/graphql/index.js.map +1 -1
  164. package/dist/lib/oas/parser/dereference/index.js +2 -0
  165. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  166. package/dist/lib/oas/parser/index.d.ts +5 -3
  167. package/dist/lib/oas/parser/index.js +0 -22
  168. package/dist/lib/oas/parser/index.js.map +1 -1
  169. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  170. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  171. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  172. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  173. package/dist/lib/plugins/api-catalog/index.js +39 -8
  174. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  175. package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
  176. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  177. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  178. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  179. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  180. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  181. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  182. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  183. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  184. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  185. package/dist/lib/plugins/openapi/OperationList.js +63 -18
  186. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  187. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  188. package/dist/lib/plugins/openapi/OperationListItem.js +7 -12
  189. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  190. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  191. package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
  192. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  193. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  194. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  195. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  196. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -4
  197. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  198. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
  199. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  200. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  201. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  202. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  203. package/dist/lib/plugins/openapi/Sidecar.js +39 -10
  204. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  205. package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
  206. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  207. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  208. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  209. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  210. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  211. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  212. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
  213. package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
  214. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  215. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  216. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  217. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  218. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  219. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  220. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  221. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  222. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  223. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  224. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  225. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  226. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  227. package/dist/lib/plugins/openapi/index.d.ts +6 -11
  228. package/dist/lib/plugins/openapi/index.js +41 -60
  229. package/dist/lib/plugins/openapi/index.js.map +1 -1
  230. package/dist/lib/plugins/openapi/interfaces.d.ts +36 -10
  231. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  232. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  233. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  234. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  235. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  236. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  237. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  238. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  239. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  240. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  241. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  242. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  243. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
  244. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  245. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
  246. package/dist/lib/plugins/openapi/playground/Playground.js +81 -27
  247. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  248. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  249. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  250. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  251. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  252. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  253. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  254. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  255. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  256. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
  257. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  258. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  259. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  260. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  261. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  262. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  263. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  264. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  265. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  266. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  267. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  268. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  269. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  270. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  271. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  272. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  273. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  274. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +18 -13
  275. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  276. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  277. package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -48
  278. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  279. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  280. package/dist/lib/plugins/openapi/schema/utils.js +3 -1
  281. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  282. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  283. package/dist/lib/plugins/openapi/state.js +18 -0
  284. package/dist/lib/plugins/openapi/state.js.map +1 -0
  285. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  286. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  287. package/dist/lib/plugins/openapi/util/getRoutes.js +9 -3
  288. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  289. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  290. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  291. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  292. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  293. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  294. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  295. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  296. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  297. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  298. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  299. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  300. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  301. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  302. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  303. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  304. package/dist/lib/ui/Badge.d.ts +1 -1
  305. package/dist/lib/ui/Button.d.ts +2 -2
  306. package/dist/lib/ui/Button.js +2 -1
  307. package/dist/lib/ui/Button.js.map +1 -1
  308. package/dist/lib/ui/Callout.d.ts +2 -1
  309. package/dist/lib/ui/Callout.js +3 -2
  310. package/dist/lib/ui/Callout.js.map +1 -1
  311. package/dist/lib/ui/Checkbox.d.ts +2 -8
  312. package/dist/lib/ui/Checkbox.js +1 -13
  313. package/dist/lib/ui/Checkbox.js.map +1 -1
  314. package/dist/lib/ui/Command.d.ts +7 -1
  315. package/dist/lib/ui/Command.js +2 -2
  316. package/dist/lib/ui/Command.js.map +1 -1
  317. package/dist/lib/ui/Select.js +1 -1
  318. package/dist/lib/ui/Select.js.map +1 -1
  319. package/dist/lib/ui/Stepper.d.ts +3 -0
  320. package/dist/lib/ui/Stepper.js +7 -0
  321. package/dist/lib/ui/Stepper.js.map +1 -0
  322. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  323. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  324. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  325. package/dist/lib/ui/util.d.ts +2 -0
  326. package/dist/lib/ui/util.js +3 -0
  327. package/dist/lib/ui/util.js.map +1 -0
  328. package/dist/lib/util/MdxComponents.d.ts +5 -2
  329. package/dist/lib/util/MdxComponents.js +6 -3
  330. package/dist/lib/util/MdxComponents.js.map +1 -1
  331. package/dist/lib/util/joinPath.d.ts +3 -0
  332. package/dist/lib/util/joinPath.js +3 -0
  333. package/dist/lib/util/joinPath.js.map +1 -1
  334. package/dist/lib/util/traverse.d.ts +2 -8
  335. package/dist/lib/util/traverse.js +2 -2
  336. package/dist/lib/util/traverse.js.map +1 -1
  337. package/dist/lib/util/types.d.ts +7 -0
  338. package/dist/lib/util/types.js +2 -0
  339. package/dist/lib/util/types.js.map +1 -0
  340. package/dist/lib/util/useOnScreen.d.ts +3 -2
  341. package/dist/lib/util/useOnScreen.js +3 -3
  342. package/dist/lib/util/useOnScreen.js.map +1 -1
  343. package/dist/lib/util/useScrollToAnchor.js +26 -20
  344. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  345. package/dist/vite/api/schema-codegen.d.ts +1 -1
  346. package/dist/vite/api/schema-codegen.js +31 -9
  347. package/dist/vite/api/schema-codegen.js.map +1 -1
  348. package/dist/vite/api/schema-codegen.test.js +66 -0
  349. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  350. package/dist/vite/build.js +2 -0
  351. package/dist/vite/build.js.map +1 -1
  352. package/dist/vite/config.d.ts +2 -5
  353. package/dist/vite/config.js +39 -56
  354. package/dist/vite/config.js.map +1 -1
  355. package/dist/vite/config.test.js +1 -1
  356. package/dist/vite/config.test.js.map +1 -1
  357. package/dist/vite/create-pagefind-index.d.ts +4 -0
  358. package/dist/vite/create-pagefind-index.js +12 -0
  359. package/dist/vite/create-pagefind-index.js.map +1 -0
  360. package/dist/vite/css/plugin.d.ts +2 -2
  361. package/dist/vite/css/plugin.js.map +1 -1
  362. package/dist/vite/dev-server.js +12 -4
  363. package/dist/vite/dev-server.js.map +1 -1
  364. package/dist/vite/plugin-api-keys.d.ts +2 -2
  365. package/dist/vite/plugin-api-keys.js +3 -3
  366. package/dist/vite/plugin-api-keys.js.map +1 -1
  367. package/dist/vite/plugin-api.d.ts +2 -2
  368. package/dist/vite/plugin-api.js +42 -35
  369. package/dist/vite/plugin-api.js.map +1 -1
  370. package/dist/vite/plugin-auth.d.ts +2 -2
  371. package/dist/vite/plugin-auth.js +3 -3
  372. package/dist/vite/plugin-auth.js.map +1 -1
  373. package/dist/vite/plugin-component.d.ts +2 -2
  374. package/dist/vite/plugin-component.js +7 -2
  375. package/dist/vite/plugin-component.js.map +1 -1
  376. package/dist/vite/plugin-config-reload.d.ts +4 -3
  377. package/dist/vite/plugin-config-reload.js +13 -6
  378. package/dist/vite/plugin-config-reload.js.map +1 -1
  379. package/dist/vite/plugin-config.d.ts +2 -2
  380. package/dist/vite/plugin-config.js +7 -4
  381. package/dist/vite/plugin-config.js.map +1 -1
  382. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  383. package/dist/vite/plugin-custom-pages.js +3 -3
  384. package/dist/vite/plugin-custom-pages.js.map +1 -1
  385. package/dist/vite/plugin-docs.d.ts +3 -3
  386. package/dist/vite/plugin-docs.js +23 -6
  387. package/dist/vite/plugin-docs.js.map +1 -1
  388. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  389. package/dist/vite/plugin-frontmatter.js +5 -4
  390. package/dist/vite/plugin-frontmatter.js.map +1 -1
  391. package/dist/vite/plugin-mdx.d.ts +2 -2
  392. package/dist/vite/plugin-mdx.js +1 -1
  393. package/dist/vite/plugin-mdx.js.map +1 -1
  394. package/dist/vite/plugin-redirect.d.ts +2 -2
  395. package/dist/vite/plugin-redirect.js +3 -3
  396. package/dist/vite/plugin-redirect.js.map +1 -1
  397. package/dist/vite/plugin-search.d.ts +2 -2
  398. package/dist/vite/plugin-search.js +5 -1
  399. package/dist/vite/plugin-search.js.map +1 -1
  400. package/dist/vite/plugin-sidebar.d.ts +2 -2
  401. package/dist/vite/plugin-sidebar.js +2 -2
  402. package/dist/vite/plugin-sidebar.js.map +1 -1
  403. package/dist/vite/plugin-theme-css.d.ts +2 -2
  404. package/dist/vite/plugin-theme-css.js.map +1 -1
  405. package/dist/vite/plugin.d.ts +2 -2
  406. package/dist/vite/plugin.js.map +1 -1
  407. package/dist/vite/prerender/FileWritingResponse.d.ts +11 -6
  408. package/dist/vite/prerender/FileWritingResponse.js +9 -6
  409. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  410. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  411. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  412. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  413. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  414. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  415. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  416. package/dist/vite/prerender/prerender.d.ts +1 -0
  417. package/dist/vite/prerender/prerender.js +34 -28
  418. package/dist/vite/prerender/prerender.js.map +1 -1
  419. package/dist/vite/prerender/worker.d.ts +1 -1
  420. package/dist/vite/prerender/worker.js +42 -12
  421. package/dist/vite/prerender/worker.js.map +1 -1
  422. package/dist/vite/sitemap.js +2 -1
  423. package/dist/vite/sitemap.js.map +1 -1
  424. package/dist/zuplo/with-zuplo.js +4 -0
  425. package/dist/zuplo/with-zuplo.js.map +1 -1
  426. package/lib/{AuthenticationPlugin-_YVa673u.js → AuthenticationPlugin-foqdvvkf.js} +4 -4
  427. package/lib/{AuthenticationPlugin-_YVa673u.js.map → AuthenticationPlugin-foqdvvkf.js.map} +1 -1
  428. package/lib/Button-Fp19CMUr.js +49 -0
  429. package/lib/Button-Fp19CMUr.js.map +1 -0
  430. package/lib/Callout-B2vsR09t.js +229 -0
  431. package/lib/Callout-B2vsR09t.js.map +1 -0
  432. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-DpB47wvk.js} +3 -3
  433. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  434. package/lib/Dialog-sbgekbjb.js +98 -0
  435. package/lib/Dialog-sbgekbjb.js.map +1 -0
  436. package/lib/Drawer-kDAfOq_2.js +1133 -0
  437. package/lib/Drawer-kDAfOq_2.js.map +1 -0
  438. package/lib/{Markdown-8mv9nhGd.js → Markdown-aF5FdsNi.js} +7822 -6052
  439. package/lib/Markdown-aF5FdsNi.js.map +1 -0
  440. package/lib/MdxPage-Vw_dc9Yz.js +85 -0
  441. package/lib/MdxPage-Vw_dc9Yz.js.map +1 -0
  442. package/lib/{OasProvider-IS9wBrb7.js → OasProvider-CjXTP-nz.js} +6 -6
  443. package/lib/{OasProvider-IS9wBrb7.js.map → OasProvider-CjXTP-nz.js.map} +1 -1
  444. package/lib/OperationList-BYemrDYk.js +5068 -0
  445. package/lib/OperationList-BYemrDYk.js.map +1 -0
  446. package/lib/Pagination-SdlocK96.js +48 -0
  447. package/lib/Pagination-SdlocK96.js.map +1 -0
  448. package/lib/{index.esm-9-TF9KQB.js → RouteGuard-CqZPoZYJ.js} +196 -144
  449. package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
  450. package/lib/SchemaList-CAeKy9pV.js +148 -0
  451. package/lib/SchemaList-CAeKy9pV.js.map +1 -0
  452. package/lib/SchemaView-B3fOPR4V.js +357 -0
  453. package/lib/SchemaView-B3fOPR4V.js.map +1 -0
  454. package/lib/{Select-D9CKL33X.js → Select-DVFRKf1R.js} +71 -71
  455. package/lib/{Select-D9CKL33X.js.map → Select-DVFRKf1R.js.map} +1 -1
  456. package/lib/SlotletProvider-DXvc0aY6.js +338 -0
  457. package/lib/SlotletProvider-DXvc0aY6.js.map +1 -0
  458. package/lib/Spinner-CE68iCm0.js +7 -0
  459. package/lib/Spinner-CE68iCm0.js.map +1 -0
  460. package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-BEoSoPEo.js} +496 -592
  461. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  462. package/lib/Toc-YBsgI72s.js +92 -0
  463. package/lib/Toc-YBsgI72s.js.map +1 -0
  464. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-HA7DTUK3-C4gP41vD.js} +560 -560
  465. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
  466. package/lib/{circular-DxaIIlWD.js → circular-ByJI6Mci.js} +5461 -4993
  467. package/lib/circular-ByJI6Mci.js.map +1 -0
  468. package/lib/context-DLCwaMXN.js +22 -0
  469. package/lib/{context-rwLGh-6_.js.map → context-DLCwaMXN.js.map} +1 -1
  470. package/lib/{createServer-DSQiPwjN.js → createServer-mYvGvmc0.js} +5062 -5209
  471. package/lib/createServer-mYvGvmc0.js.map +1 -0
  472. package/lib/{hook-C_t2ISLC.js → hook-CqpVYDqN.js} +495 -467
  473. package/lib/hook-CqpVYDqN.js.map +1 -0
  474. package/lib/index-Bn6Lc9tq.js +9 -0
  475. package/lib/index-Bn6Lc9tq.js.map +1 -0
  476. package/lib/index-C1OzjGUK.js +2227 -0
  477. package/lib/index-C1OzjGUK.js.map +1 -0
  478. package/lib/index-CPNSgwSb.js +36 -0
  479. package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
  480. package/lib/index-D48iOQvJ.js +1973 -0
  481. package/lib/index-D48iOQvJ.js.map +1 -0
  482. package/lib/index-DwT-v3zK.js +86 -0
  483. package/lib/index-DwT-v3zK.js.map +1 -0
  484. package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
  485. package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
  486. package/lib/index-gQD2h1wX.js +447 -0
  487. package/lib/index-gQD2h1wX.js.map +1 -0
  488. package/lib/{index.esm-CrSoEshU.js → index.esm--gIChbWs.js} +3 -3
  489. package/lib/{index.esm-CrSoEshU.js.map → index.esm--gIChbWs.js.map} +1 -1
  490. package/lib/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +99 -99
  491. package/lib/{jsx-runtime-Bdg6XQ1m.js.map → jsx-runtime-CYK1ROHF.js.map} +1 -1
  492. package/lib/{mutation-Cm3O9f3X.js → mutation-8LjrN7uz.js} +26 -26
  493. package/lib/{mutation-Cm3O9f3X.js.map → mutation-8LjrN7uz.js.map} +1 -1
  494. package/lib/objectEntries-yMIkr2mI.js +5 -0
  495. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  496. package/lib/post-processors/removeExtensions.js +4 -4
  497. package/lib/post-processors/traverse.js +2 -2
  498. package/lib/post-processors/traverse.js.map +1 -1
  499. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
  500. package/lib/prism-csharp.min-bQAo2pmx.js.map +1 -1
  501. package/lib/prism-java.min-BpvsOuIa.js.map +1 -1
  502. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  503. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  504. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  505. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  506. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
  507. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  508. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  509. package/lib/prism-ruby.min-Dx9KO9ds.js.map +1 -1
  510. package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
  511. package/lib/ui/Accordion.js +1 -1
  512. package/lib/ui/ActionButton.js +11 -10
  513. package/lib/ui/ActionButton.js.map +1 -1
  514. package/lib/ui/Alert.js +2 -2
  515. package/lib/ui/AlertDialog.js +1 -1
  516. package/lib/ui/Badge.js +2 -2
  517. package/lib/ui/Breadcrumb.js +4 -4
  518. package/lib/ui/Button.js +13 -12
  519. package/lib/ui/Button.js.map +1 -1
  520. package/lib/ui/Callout.js +39 -21
  521. package/lib/ui/Callout.js.map +1 -1
  522. package/lib/ui/Card.js +1 -1
  523. package/lib/ui/Carousel.js +1 -1
  524. package/lib/ui/Checkbox.js +16 -26
  525. package/lib/ui/Checkbox.js.map +1 -1
  526. package/lib/ui/Command.js +105 -78
  527. package/lib/ui/Command.js.map +1 -1
  528. package/lib/ui/Dialog.js +1 -1
  529. package/lib/ui/Drawer.js +14 -1151
  530. package/lib/ui/Drawer.js.map +1 -1
  531. package/lib/ui/DropdownMenu.js +1 -1
  532. package/lib/ui/Form.js +5 -5
  533. package/lib/ui/HoverCard.js +1 -1
  534. package/lib/ui/Input.js +1 -1
  535. package/lib/ui/Label.js +2 -2
  536. package/lib/ui/Pagination.js +10 -10
  537. package/lib/ui/Popover.js +1 -1
  538. package/lib/ui/Progress.js +1 -1
  539. package/lib/ui/RadioGroup.js +1 -1
  540. package/lib/ui/ScrollArea.js +1 -1
  541. package/lib/ui/Select.js +2 -2
  542. package/lib/ui/Select.js.map +1 -1
  543. package/lib/ui/Skeleton.js +1 -1
  544. package/lib/ui/Slider.js +1 -1
  545. package/lib/ui/Stepper.js +6 -0
  546. package/lib/ui/Stepper.js.map +1 -0
  547. package/lib/ui/Switch.js +1 -1
  548. package/lib/ui/SyntaxHighlight.js +11 -0
  549. package/lib/ui/SyntaxHighlight.js.map +1 -0
  550. package/lib/ui/Tabs.js +1 -1
  551. package/lib/ui/Textarea.js +1 -1
  552. package/lib/ui/Toggle.js +2 -2
  553. package/lib/ui/ToggleGroup.js +1 -1
  554. package/lib/ui/Tooltip.js +1 -1
  555. package/lib/ui/util.js +6 -0
  556. package/lib/ui/util.js.map +1 -0
  557. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-B9qXJedG.js} +2 -2
  558. package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
  559. package/lib/useLatest-hmRS46UF.js +11 -0
  560. package/lib/useLatest-hmRS46UF.js.map +1 -0
  561. package/lib/zudoku.auth-auth0.js +15 -14
  562. package/lib/zudoku.auth-auth0.js.map +1 -1
  563. package/lib/zudoku.auth-clerk.js +67 -49
  564. package/lib/zudoku.auth-clerk.js.map +1 -1
  565. package/lib/zudoku.auth-openid.js +370 -404
  566. package/lib/zudoku.auth-openid.js.map +1 -1
  567. package/lib/zudoku.components.js +32 -1334
  568. package/lib/zudoku.components.js.map +1 -1
  569. package/lib/zudoku.hooks.js +19 -0
  570. package/lib/zudoku.hooks.js.map +1 -0
  571. package/lib/zudoku.icons.js +1 -1
  572. package/lib/zudoku.plugin-api-catalog.js +106 -111
  573. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  574. package/lib/zudoku.plugin-api-keys.js +108 -106
  575. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  576. package/lib/zudoku.plugin-custom-pages.js +3 -3
  577. package/lib/zudoku.plugin-markdown.js +2 -2
  578. package/lib/zudoku.plugin-openapi.js +6 -8
  579. package/lib/zudoku.plugin-openapi.js.map +1 -1
  580. package/lib/zudoku.plugin-redirect.js +1 -1
  581. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  582. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  583. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  584. package/lib/zudoku.plugins.js +9 -8
  585. package/lib/zudoku.plugins.js.map +1 -1
  586. package/package.json +76 -56
  587. package/src/app/entry.client.tsx +8 -0
  588. package/src/app/entry.server.tsx +23 -13
  589. package/src/app/main.css +98 -57
  590. package/src/app/main.tsx +3 -1
  591. package/src/app/tailwind.ts +20 -0
  592. package/src/lib/authentication/authentication.ts +2 -0
  593. package/src/lib/authentication/hook.ts +12 -1
  594. package/src/lib/authentication/providers/auth0.tsx +3 -2
  595. package/src/lib/authentication/providers/clerk.tsx +32 -8
  596. package/src/lib/authentication/providers/openid.tsx +31 -15
  597. package/src/lib/authentication/providers/supabase.tsx +157 -0
  598. package/src/lib/authentication/state.ts +9 -37
  599. package/src/lib/components/AnchorLink.tsx +9 -7
  600. package/src/lib/components/Banner.tsx +1 -0
  601. package/src/lib/components/Bootstrap.tsx +13 -6
  602. package/src/lib/components/Footer.tsx +136 -0
  603. package/src/lib/components/Header.tsx +12 -8
  604. package/src/lib/components/Heading.tsx +1 -1
  605. package/src/lib/components/InlineCode.tsx +13 -16
  606. package/src/lib/components/Layout.tsx +22 -67
  607. package/src/lib/components/Main.tsx +50 -0
  608. package/src/lib/components/MobileTopNavigation.tsx +27 -18
  609. package/src/lib/components/Pagination.tsx +50 -0
  610. package/src/lib/components/ThemeSwitch.tsx +1 -1
  611. package/src/lib/components/TopNavigation.tsx +51 -24
  612. package/src/lib/components/Zudoku.tsx +20 -7
  613. package/src/lib/components/cache.ts +8 -0
  614. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  615. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  616. package/src/lib/components/context/ViewportAnchorContext.tsx +6 -15
  617. package/src/lib/components/context/ZudokuContext.ts +17 -8
  618. package/src/lib/components/index.ts +2 -0
  619. package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
  620. package/src/lib/components/navigation/Sidebar.tsx +30 -44
  621. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  622. package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
  623. package/src/lib/components/navigation/SidebarItem.tsx +22 -29
  624. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  625. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  626. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  627. package/src/lib/core/RouteGuard.tsx +69 -12
  628. package/src/lib/core/ZudokuContext.ts +63 -12
  629. package/src/lib/core/plugins.ts +21 -7
  630. package/src/lib/errors/ErrorAlert.tsx +24 -17
  631. package/src/lib/hooks/index.ts +5 -0
  632. package/src/lib/hooks/useEvent.test.tsx +149 -0
  633. package/src/lib/hooks/useEvent.ts +41 -0
  634. package/src/lib/oas/graphql/index.ts +206 -55
  635. package/src/lib/oas/parser/dereference/index.ts +2 -0
  636. package/src/lib/oas/parser/index.ts +7 -29
  637. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  638. package/src/lib/plugins/api-catalog/index.tsx +66 -15
  639. package/src/lib/plugins/api-keys/CreateApiKey.tsx +7 -3
  640. package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
  641. package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
  642. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  643. package/src/lib/plugins/openapi/OperationList.tsx +171 -81
  644. package/src/lib/plugins/openapi/OperationListItem.tsx +118 -104
  645. package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
  646. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  647. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -23
  648. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
  649. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  650. package/src/lib/plugins/openapi/Sidecar.tsx +50 -13
  651. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
  652. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  653. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  654. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
  655. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  656. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  657. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  658. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  659. package/src/lib/plugins/openapi/index.tsx +55 -87
  660. package/src/lib/plugins/openapi/interfaces.ts +44 -15
  661. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  662. package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
  663. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  664. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  665. package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
  666. package/src/lib/plugins/openapi/playground/Playground.tsx +176 -89
  667. package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
  668. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  669. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  670. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +25 -5
  671. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  672. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  673. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  674. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  675. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  676. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -50
  677. package/src/lib/plugins/openapi/schema/SchemaView.tsx +84 -138
  678. package/src/lib/plugins/openapi/schema/utils.ts +7 -1
  679. package/src/lib/plugins/openapi/state.ts +36 -0
  680. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  681. package/src/lib/plugins/openapi/util/getRoutes.tsx +9 -6
  682. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  683. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  684. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  685. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  686. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  687. package/src/lib/ui/Button.tsx +4 -2
  688. package/src/lib/ui/Callout.tsx +28 -10
  689. package/src/lib/ui/Checkbox.tsx +8 -24
  690. package/src/lib/ui/Command.tsx +25 -3
  691. package/src/lib/ui/Select.tsx +1 -1
  692. package/src/lib/ui/Stepper.tsx +8 -0
  693. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  694. package/src/lib/ui/util.tsx +3 -0
  695. package/src/lib/util/MdxComponents.tsx +7 -4
  696. package/src/lib/util/joinPath.tsx +3 -0
  697. package/src/lib/util/traverse.ts +4 -8
  698. package/src/lib/util/types.ts +7 -0
  699. package/src/lib/util/useOnScreen.ts +6 -4
  700. package/src/lib/util/useScrollToAnchor.ts +30 -20
  701. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  702. package/dist/lib/components/SyntaxHighlight.js +0 -53
  703. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  704. package/dist/lib/components/context/PluginSystem.js +0 -2
  705. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  706. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  707. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  708. package/lib/MdxPage-GM1T5jmO.js +0 -193
  709. package/lib/MdxPage-GM1T5jmO.js.map +0 -1
  710. package/lib/OperationList-BTmRbbXk.js +0 -5179
  711. package/lib/OperationList-BTmRbbXk.js.map +0 -1
  712. package/lib/SlotletProvider-D0mFmGJu.js +0 -221
  713. package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
  714. package/lib/Spinner-BlzrEEk1.js +0 -51
  715. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  716. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  717. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  718. package/lib/circular-DxaIIlWD.js.map +0 -1
  719. package/lib/context-rwLGh-6_.js +0 -22
  720. package/lib/createServer-DSQiPwjN.js.map +0 -1
  721. package/lib/hook-C_t2ISLC.js.map +0 -1
  722. package/lib/index-B7mqiOei.js +0 -509
  723. package/lib/index-B7mqiOei.js.map +0 -1
  724. package/lib/index-BANyVRgL.js +0 -2098
  725. package/lib/index-BANyVRgL.js.map +0 -1
  726. package/lib/index-Djenk2Hj.js +0 -36
  727. package/lib/index.esm-9-TF9KQB.js.map +0 -1
  728. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  729. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  730. package/lib/useScrollToAnchor-BGEcH3HM.js +0 -286
  731. package/lib/useScrollToAnchor-BGEcH3HM.js.map +0 -1
  732. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  733. package/src/lib/components/context/PluginSystem.ts +0 -0
  734. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  735. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
@@ -1,50 +1,45 @@
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]);
1
+ import { j as _ } from "./jsx-runtime-CYK1ROHF.js";
2
+ import { createElement as de, useCallback as K, useMemo as ye, memo as fe, useState as be } from "react";
3
+ import { a as se, c as ee } from "./cn-qaFjX9_3.js";
4
+ import { CheckIcon as me, CopyIcon as he } from "lucide-react";
5
+ import { z as ve } from "./index-DwT-v3zK.js";
6
+ import { C as te } from "./ClientOnly-E7hGysn1.js";
7
+ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties, Ee = Object.getOwnPropertyDescriptor, xe = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertyNames, G = Object.getOwnPropertySymbols, Ae = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, ie = Object.prototype.propertyIsEnumerable, ae = (e, t, r) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, N = (e, t) => {
8
+ for (var r in t || (t = {}))
9
+ X.call(t, r) && ae(e, r, t[r]);
10
+ if (G)
11
+ for (var r of G(t))
12
+ ie.call(t, r) && ae(e, r, t[r]);
18
13
  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) => {
14
+ }, q = (e, t) => we(e, xe(t)), ue = (e, t) => {
15
+ var r = {};
16
+ for (var i in e)
17
+ X.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
18
+ if (e != null && G)
19
+ for (var i of G(e))
20
+ t.indexOf(i) < 0 && ie.call(e, i) && (r[i] = e[i]);
21
+ return r;
22
+ }, Se = (e, t) => function() {
23
+ return t || (0, e[le(e)[0]])((t = { exports: {} }).exports, t), t.exports;
24
+ }, _e = (e, t) => {
25
+ for (var r in t)
26
+ Z(e, r, { get: t[r], enumerable: !0 });
27
+ }, Fe = (e, t, r, i) => {
33
28
  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 });
29
+ for (let f of le(t))
30
+ !X.call(e, f) && f !== r && Z(e, f, { get: () => t[f], enumerable: !(i = Ee(t, f)) || i.enumerable });
36
31
  return e;
37
- }, Oe = (e, t, a) => (a = e != null ? Se(Te(e)) : {}, Le(
32
+ }, Te = (e, t, r) => (r = e != null ? ke(Ae(e)) : {}, Fe(
38
33
  // If the importer is in node compatibility mode or this is not an ESM
39
34
  // file that has been converted to a CommonJS file using a Babel-
40
35
  // compatible transform (i.e. "__esModule" has not been set), then set
41
36
  // "default" to the CommonJS "module.exports" for node compatibility.
42
- !e || !e.__esModule ? W(a, "default", { value: e, enumerable: !0 }) : a,
37
+ !e || !e.__esModule ? Z(r, "default", { value: e, enumerable: !0 }) : r,
43
38
  e
44
- )), Ce = Re({
39
+ )), Re = Se({
45
40
  "../../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 = {
41
+ var r = function() {
42
+ var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, f = 0, h = {}, u = {
48
43
  /**
49
44
  * A namespace for utility methods.
50
45
  *
@@ -55,8 +50,8 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
55
50
  * @memberof Prism
56
51
  */
57
52
  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, " ");
53
+ encode: function n(a) {
54
+ return a instanceof m ? new m(a.type, n(a.content), a.alias) : Array.isArray(a) ? a.map(n) : a.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
60
55
  },
61
56
  /**
62
57
  * Returns the name of the type of the given value.
@@ -84,7 +79,7 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
84
79
  * @returns {number}
85
80
  */
86
81
  objId: function(n) {
87
- return n.__id || Object.defineProperty(n, "__id", { value: ++d }), n.__id;
82
+ return n.__id || Object.defineProperty(n, "__id", { value: ++f }), n.__id;
88
83
  },
89
84
  /**
90
85
  * Creates a deep clone of the given object.
@@ -96,28 +91,28 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
96
91
  * @returns {T}
97
92
  * @template T
98
93
  */
99
- clone: function n(r, s) {
94
+ clone: function n(a, s) {
100
95
  s = s || {};
101
- var p, i;
102
- switch (u.util.type(r)) {
96
+ var c, l;
97
+ switch (u.util.type(a)) {
103
98
  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));
99
+ if (l = u.util.objId(a), s[l])
100
+ return s[l];
101
+ c = /** @type {Record<string, any>} */
102
+ {}, s[l] = c;
103
+ for (var d in a)
104
+ a.hasOwnProperty(d) && (c[d] = n(a[d], s));
110
105
  return (
111
106
  /** @type {any} */
112
- p
107
+ c
113
108
  );
114
109
  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);
110
+ return l = u.util.objId(a), s[l] ? s[l] : (c = [], s[l] = c, a.forEach(function(k, E) {
111
+ c[E] = n(k, s);
117
112
  }), /** @type {any} */
118
- p);
113
+ c);
119
114
  default:
120
- return r;
115
+ return a;
121
116
  }
122
117
  },
123
118
  /**
@@ -130,9 +125,9 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
130
125
  */
131
126
  getLanguage: function(n) {
132
127
  for (; n; ) {
133
- var r = l.exec(n.className);
134
- if (r)
135
- return r[1].toLowerCase();
128
+ var a = i.exec(n.className);
129
+ if (a)
130
+ return a[1].toLowerCase();
136
131
  n = n.parentElement;
137
132
  }
138
133
  return "none";
@@ -144,8 +139,8 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
144
139
  * @param {string} language
145
140
  * @returns {void}
146
141
  */
147
- setLanguage: function(n, r) {
148
- n.className = n.className.replace(RegExp(l, "gi"), ""), n.classList.add("language-" + r);
142
+ setLanguage: function(n, a) {
143
+ n.className = n.className.replace(RegExp(i, "gi"), ""), n.classList.add("language-" + a);
149
144
  },
150
145
  /**
151
146
  * Returns whether a given class is active for `element`.
@@ -166,12 +161,12 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
166
161
  * @param {boolean} [defaultActivation=false]
167
162
  * @returns {boolean}
168
163
  */
169
- isActive: function(n, r, s) {
170
- for (var p = "no-" + r; n; ) {
171
- var i = n.classList;
172
- if (i.contains(r))
164
+ isActive: function(n, a, s) {
165
+ for (var c = "no-" + a; n; ) {
166
+ var l = n.classList;
167
+ if (l.contains(a))
173
168
  return !0;
174
- if (i.contains(p))
169
+ if (l.contains(c))
175
170
  return !1;
176
171
  n = n.parentElement;
177
172
  }
@@ -221,10 +216,10 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
221
216
  * 'color': /\b(?:red|green|blue)\b/
222
217
  * });
223
218
  */
224
- extend: function(n, r) {
219
+ extend: function(n, a) {
225
220
  var s = u.util.clone(u.languages[n]);
226
- for (var p in r)
227
- s[p] = r[p];
221
+ for (var c in a)
222
+ s[c] = a[c];
228
223
  return s;
229
224
  },
230
225
  /**
@@ -302,31 +297,31 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
302
297
  * @returns {Grammar} The new grammar object.
303
298
  * @public
304
299
  */
305
- insertBefore: function(n, r, s, p) {
306
- p = p || /** @type {any} */
300
+ insertBefore: function(n, a, s, c) {
301
+ c = c || /** @type {any} */
307
302
  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]);
303
+ var l = c[n], d = {};
304
+ for (var k in l)
305
+ if (l.hasOwnProperty(k)) {
306
+ if (k == a)
307
+ for (var E in s)
308
+ s.hasOwnProperty(E) && (d[E] = s[E]);
309
+ s.hasOwnProperty(k) || (d[k] = l[k]);
315
310
  }
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;
311
+ var A = c[n];
312
+ return c[n] = d, u.languages.DFS(u.languages, function(x, F) {
313
+ F === A && x != n && (this[x] = d);
314
+ }), d;
320
315
  },
321
316
  // 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));
317
+ DFS: function n(a, s, c, l) {
318
+ l = l || {};
319
+ var d = u.util.objId;
320
+ for (var k in a)
321
+ if (a.hasOwnProperty(k)) {
322
+ s.call(a, k, a[k], c || k);
323
+ var E = a[k], A = u.util.type(E);
324
+ A === "Object" && !l[d(E)] ? (l[d(E)] = !0, n(E, s, null, l)) : A === "Array" && !l[d(E)] && (l[d(E)] = !0, n(E, s, k, l));
330
325
  }
331
326
  }
332
327
  },
@@ -351,15 +346,15 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
351
346
  * @example
352
347
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
353
348
  */
354
- highlight: function(n, r, s) {
355
- var p = {
349
+ highlight: function(n, a, s) {
350
+ var c = {
356
351
  code: n,
357
- grammar: r,
352
+ grammar: a,
358
353
  language: s
359
354
  };
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);
355
+ if (u.hooks.run("before-tokenize", c), !c.grammar)
356
+ throw new Error('The language "' + c.language + '" has no grammar.');
357
+ return c.tokens = u.tokenize(c.code, c.grammar), u.hooks.run("after-tokenize", c), m.stringify(u.util.encode(c.tokens), c.language);
363
358
  },
364
359
  /**
365
360
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -385,15 +380,15 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
385
380
  * }
386
381
  * });
387
382
  */
388
- tokenize: function(n, r) {
389
- var s = r.rest;
383
+ tokenize: function(n, a) {
384
+ var s = a.rest;
390
385
  if (s) {
391
- for (var p in s)
392
- r[p] = s[p];
393
- delete r.rest;
386
+ for (var c in s)
387
+ a[c] = s[c];
388
+ delete a.rest;
394
389
  }
395
- var i = new b();
396
- return y(i, i.head, n), g(n, i, r, i.head, 0), w(i);
390
+ var l = new b();
391
+ return y(l, l.head, n), g(n, l, a, l.head, 0), w(l);
397
392
  },
398
393
  /**
399
394
  * @namespace
@@ -414,9 +409,9 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
414
409
  * @param {HookCallback} callback The callback function which is given environment variables.
415
410
  * @public
416
411
  */
417
- add: function(n, r) {
412
+ add: function(n, a) {
418
413
  var s = u.hooks.all;
419
- s[n] = s[n] || [], s[n].push(r);
414
+ s[n] = s[n] || [], s[n].push(a);
420
415
  },
421
416
  /**
422
417
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -427,93 +422,93 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
427
422
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
428
423
  * @public
429
424
  */
430
- run: function(n, r) {
425
+ run: function(n, a) {
431
426
  var s = u.hooks.all[n];
432
427
  if (!(!s || !s.length))
433
- for (var p = 0, i; i = s[p++]; )
434
- i(r);
428
+ for (var c = 0, l; l = s[c++]; )
429
+ l(a);
435
430
  }
436
431
  },
437
432
  Token: m
438
433
  };
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;
434
+ function m(n, a, s, c) {
435
+ this.type = n, this.content = a, this.alias = s, this.length = (c || "").length | 0;
436
+ }
437
+ m.stringify = function n(a, s) {
438
+ if (typeof a == "string")
439
+ return a;
440
+ if (Array.isArray(a)) {
441
+ var c = "";
442
+ return a.forEach(function(A) {
443
+ c += n(A, s);
444
+ }), c;
450
445
  }
451
- var i = {
452
- type: r.type,
453
- content: n(r.content, s),
446
+ var l = {
447
+ type: a.type,
448
+ content: n(a.content, s),
454
449
  tag: "span",
455
- classes: ["token", r.type],
450
+ classes: ["token", a.type],
456
451
  attributes: {},
457
452
  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 + ">";
453
+ }, d = a.alias;
454
+ d && (Array.isArray(d) ? Array.prototype.push.apply(l.classes, d) : l.classes.push(d)), u.hooks.run("wrap", l);
455
+ var k = "";
456
+ for (var E in l.attributes)
457
+ k += " " + E + '="' + (l.attributes[E] || "").replace(/"/g, "&quot;") + '"';
458
+ return "<" + l.tag + ' class="' + l.classes.join(" ") + '"' + k + ">" + l.content + "</" + l.tag + ">";
464
459
  };
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);
460
+ function p(n, a, s, c) {
461
+ n.lastIndex = a;
462
+ var l = n.exec(s);
463
+ if (l && c && l[1]) {
464
+ var d = l[1].length;
465
+ l.index += d, l[0] = l[0].slice(d);
471
466
  }
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)
467
+ return l;
468
+ }
469
+ function g(n, a, s, c, l, d) {
470
+ for (var k in s)
471
+ if (!(!s.hasOwnProperty(k) || !s[k])) {
472
+ var E = s[k];
473
+ E = Array.isArray(E) ? E : [E];
474
+ for (var A = 0; A < E.length; ++A) {
475
+ if (d && d.cause == k + "," + A)
481
476
  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");
477
+ var x = E[A], F = x.inside, T = !!x.lookbehind, D = !!x.greedy, C = x.alias;
478
+ if (D && !x.pattern.global) {
479
+ var L = x.pattern.toString().match(/[imsuy]*$/)[0];
480
+ x.pattern = RegExp(x.pattern.source, L + "g");
486
481
  }
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)
482
+ for (var Q = x.pattern || x, S = c.next, O = l; S !== a.tail && !(d && O >= d.reach); O += S.value.length, S = S.next) {
483
+ var $ = S.value;
484
+ if (a.length > n.length)
490
485
  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)
486
+ if (!($ instanceof m)) {
487
+ var j = 1, I;
488
+ if (D) {
489
+ if (I = p(Q, O, n, T), !I || I.index >= n.length)
495
490
  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)
491
+ var z = I.index, pe = I.index + I[0].length, B = O;
492
+ for (B += S.value.length; z >= B; )
493
+ S = S.next, B += S.value.length;
494
+ if (B -= S.value.length, O = B, S.value instanceof m)
500
495
  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)
496
+ for (var P = S; P !== a.tail && (B < pe || typeof P.value == "string"); P = P.next)
497
+ j++, B += P.value.length;
498
+ j--, $ = n.slice(O, B), I.index -= O;
499
+ } else if (I = p(Q, 0, $, T), !I)
505
500
  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
501
+ var z = I.index, M = I[0], W = $.slice(0, z), J = $.slice(z + M.length), H = O + $.length;
502
+ d && H > d.reach && (d.reach = H);
503
+ var U = S.prev;
504
+ W && (U = y(a, U, W), O += W.length), v(a, U, j);
505
+ var ge = new m(k, F ? u.tokenize(M, F) : M, C, M);
506
+ if (S = y(a, U, ge), J && y(a, S, J), j > 1) {
507
+ var Y = {
508
+ cause: k + "," + A,
509
+ reach: H
515
510
  };
516
- g(n, r, s, R.prev, D, K), f && K.reach > f.reach && (f.reach = K.reach);
511
+ g(n, a, s, S.prev, O, Y), d && Y.reach > d.reach && (d.reach = Y.reach);
517
512
  }
518
513
  }
519
514
  }
@@ -521,57 +516,57 @@ var Se = Object.create, W = Object.defineProperty, Ae = Object.defineProperties,
521
516
  }
522
517
  }
523
518
  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;
519
+ var n = { value: null, prev: null, next: null }, a = { value: null, prev: n, next: null };
520
+ n.next = a, this.head = n, this.tail = a, this.length = 0;
526
521
  }
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;
522
+ function y(n, a, s) {
523
+ var c = a.next, l = { value: s, prev: a, next: c };
524
+ return a.next = l, c.prev = l, n.length++, l;
530
525
  }
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;
526
+ function v(n, a, s) {
527
+ for (var c = a.next, l = 0; l < s && c !== n.tail; l++)
528
+ c = c.next;
529
+ a.next = c, c.prev = a, n.length -= l;
535
530
  }
536
531
  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;
532
+ for (var a = [], s = n.head.next; s !== n.tail; )
533
+ a.push(s.value), s = s.next;
534
+ return a;
540
535
  }
541
536
  return u;
542
537
  }();
543
- t.exports = a, a.default = a;
538
+ t.exports = r, r.default = r;
544
539
  }
545
- }), o = Oe(Ce());
540
+ }), o = Te(Re());
546
541
  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
542
  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() {
543
+ }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, i) {
544
+ var r = {}, r = (r["language-" + i] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[i] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), i = (r["language-" + i] = { pattern: /[\s\S]+/, inside: o.languages[i] }, {});
545
+ i[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
551
546
  return e;
552
- }), "i"), lookbehind: !0, greedy: !0, inside: a }, o.languages.insertBefore("markup", "cdata", l);
547
+ }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", i);
553
548
  } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
554
549
  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
550
  } }), 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" } };
551
+ var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?: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]|.)/, i = "(?:[^\\\\-]|" + r.source + ")", i = RegExp(i + "-" + i), f = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
552
+ 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: i, inside: { escape: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "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": f } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": f } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
558
553
  }(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;
554
+ var t = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
555
+ e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], 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: r } } }), 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: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
561
556
  }(o), function(e) {
562
557
  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) {
558
+ Object.defineProperty(t, "addSupport", { value: function(r, i) {
559
+ (r = typeof r == "string" ? [r] : r).forEach(function(f) {
565
560
  var h = function(y) {
566
- y.inside || (y.inside = {}), y.inside.rest = l;
561
+ y.inside || (y.inside = {}), y.inside.rest = i;
567
562
  }, 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]);
563
+ if (m = e.languages[f]) {
564
+ var m, p = m[u];
565
+ if ((p = p || (m = e.languages.insertBefore(f, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[u]) instanceof RegExp && (p = m[u] = { pattern: p }), Array.isArray(p))
566
+ for (var g = 0, b = p.length; g < b; g++)
567
+ p[g] instanceof RegExp && (p[g] = { pattern: p[g] }), h(p[g]);
573
568
  else
574
- h(c);
569
+ h(p);
575
570
  }
576
571
  });
577
572
  } }), t.addSupport(["java", "javascript", "php"], t);
@@ -579,38 +574,38 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
579
574
  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
575
  t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
581
576
  }(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 });
577
+ 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 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
578
+ 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: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: r });
584
579
  }(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() {
580
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", f = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
586
581
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
587
582
  }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
588
- function u(m, c) {
589
- c = (c || "").replace(/m/g, "") + "m";
583
+ function u(m, p) {
584
+ p = (p || "").replace(/m/g, "") + "m";
590
585
  var g = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
591
- return l;
586
+ return i;
592
587
  }).replace(/<<value>>/g, function() {
593
588
  return m;
594
589
  });
595
- return RegExp(g, c);
590
+ return RegExp(g, p);
596
591
  }
597
592
  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;
593
+ return i;
599
594
  })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
600
- return l;
595
+ return i;
601
596
  }).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;
597
+ return "(?:" + f + "|" + h + ")";
598
+ })), 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: r, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
604
599
  }(o), function(e) {
605
600
  var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
606
- function a(g) {
601
+ function r(g) {
607
602
  return g = g.replace(/<inner>/g, function() {
608
603
  return t;
609
604
  }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")");
610
605
  }
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) {
606
+ var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, f = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
607
+ return i;
608
+ }), 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("^" + f + h + "(?:" + f + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + f + h + ")(?:" + f + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + f + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + f + "$"), inside: { "table-header": { pattern: RegExp(i), 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: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<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: r(/!?\[(?:(?!\])<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
609
  ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
615
610
  g !== b && (e.languages.markdown[g].inside.content.inside[b] = e.languages.markdown[b]);
616
611
  });
@@ -618,8 +613,8 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
618
613
  g.language !== "markdown" && g.language !== "md" || function b(y) {
619
614
  if (y && typeof y != "string")
620
615
  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]));
616
+ var n, a = y[v];
617
+ a.type !== "code" ? b(a.content) : (n = a.content[1], a = a.content[3], n && a && n.type === "code-language" && a.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()), a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, n] : a.alias.push(n) : a.alias = [n]));
623
618
  }
624
619
  }(g.tokens);
625
620
  }), e.hooks.add("wrap", function(g) {
@@ -631,99 +626,99 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
631
626
  break;
632
627
  }
633
628
  }
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;
629
+ var n, a = e.languages[b];
630
+ a ? g.content = e.highlight(function(s) {
631
+ return s = s.replace(u, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(c, l) {
632
+ var d;
633
+ return (l = l.toLowerCase())[0] === "#" ? (d = l[1] === "x" ? parseInt(l.slice(2), 16) : Number(l.slice(1)), p(d)) : m[l] || c;
639
634
  });
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() {
635
+ }(g.content), a, 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
636
  var s = document.getElementById(n);
642
637
  s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
643
638
  }));
644
639
  }
645
- }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, c = String.fromCodePoint || String.fromCharCode;
640
+ }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, p = String.fromCodePoint || String.fromCharCode;
646
641
  e.languages.md = e.languages.markdown;
647
642
  }(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
643
  if (e.language === "graphql")
649
644
  for (var t = e.tokens.filter(function(n) {
650
645
  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 = [];
646
+ }), r = 0; r < t.length; ) {
647
+ var i = t[r++];
648
+ if (i.type === "keyword" && i.content === "mutation") {
649
+ var f = [];
655
650
  if (y(["definition-mutation", "punctuation"]) && b(1).content === "(") {
656
- a += 2;
651
+ r += 2;
657
652
  var h = v(/^\($/, /^\)$/);
658
653
  if (h === -1)
659
654
  continue;
660
- for (; a < h; a++) {
655
+ for (; r < h; r++) {
661
656
  var u = b(0);
662
- u.type === "variable" && (w(u, "variable-input"), d.push(u.content));
657
+ u.type === "variable" && (w(u, "variable-input"), f.push(u.content));
663
658
  }
664
- a = h + 1;
659
+ r = h + 1;
665
660
  }
666
- if (y(["punctuation", "property-query"]) && b(0).content === "{" && (a++, w(b(0), "property-mutation"), 0 < d.length)) {
661
+ if (y(["punctuation", "property-query"]) && b(0).content === "{" && (r++, w(b(0), "property-mutation"), 0 < f.length)) {
667
662
  var m = v(/^\{$/, /^\}$/);
668
663
  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");
664
+ for (var p = r; p < m; p++) {
665
+ var g = t[p];
666
+ g.type === "variable" && 0 <= f.indexOf(g.content) && w(g, "variable-input");
672
667
  }
673
668
  }
674
669
  }
675
670
  }
676
671
  function b(n) {
677
- return t[a + n];
672
+ return t[r + n];
678
673
  }
679
- function y(n, r) {
680
- r = r || 0;
674
+ function y(n, a) {
675
+ a = a || 0;
681
676
  for (var s = 0; s < n.length; s++) {
682
- var p = b(s + r);
683
- if (!p || p.type !== n[s])
677
+ var c = b(s + a);
678
+ if (!c || c.type !== n[s])
684
679
  return;
685
680
  }
686
681
  return 1;
687
682
  }
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))
683
+ function v(n, a) {
684
+ for (var s = 1, c = r; c < t.length; c++) {
685
+ var l = t[c], d = l.content;
686
+ if (l.type === "punctuation" && typeof d == "string") {
687
+ if (n.test(d))
693
688
  s++;
694
- else if (r.test(f) && --s === 0)
695
- return p;
689
+ else if (a.test(d) && --s === 0)
690
+ return c;
696
691
  }
697
692
  }
698
693
  return -1;
699
694
  }
700
- function w(n, r) {
695
+ function w(n, a) {
701
696
  var s = n.alias;
702
- s ? Array.isArray(s) || (n.alias = s = [s]) : n.alias = s = [], s.push(r);
697
+ s ? Array.isArray(s) || (n.alias = s = [s]) : n.alias = s = [], s.push(a);
703
698
  }
704
699
  }), 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;
700
+ var t = e.languages.javascript["template-string"], r = t.pattern.source, i = t.inside.interpolation, f = i.inside["interpolation-punctuation"], h = i.pattern.source;
706
701
  function u(y, v) {
707
702
  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 } } };
703
+ return { pattern: RegExp("((?:" + v + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: y } } };
709
704
  }
710
705
  function m(y, v, w) {
711
706
  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
707
  }
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; )
708
+ function p(y, v, w) {
709
+ var s = e.tokenize(y, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), n = 0, a = {}, s = m(s.map(function(l) {
710
+ if (typeof l == "string")
711
+ return l;
712
+ for (var d, k, l = l.content; y.indexOf((k = n++, d = "___" + w.toUpperCase() + "_" + k + "___")) !== -1; )
718
713
  ;
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)
714
+ return a[d] = l, d;
715
+ }).join(""), v, w), c = Object.keys(a);
716
+ return n = 0, function l(d) {
717
+ for (var k = 0; k < d.length; k++) {
718
+ if (n >= c.length)
724
719
  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]));
720
+ var E, A, x, F, T, D, C, L = d[k];
721
+ typeof L == "string" || typeof L.content == "string" ? (E = c[n], (C = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++n, A = D.substring(0, C), T = a[E], x = void 0, (F = {})["interpolation-punctuation"] = f, (F = e.tokenize(T, F)).length === 3 && ((x = [1, 1]).push.apply(x, m(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, x)), x = new e.Token("interpolation", F, i.alias, T), F = D.substring(C + E.length), T = [], A && T.push(A), T.push(x), F && (l(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (d.splice.apply(d, [k, 1].concat(T)), k += T.length - 1) : L.content = T)) : (C = L.content, Array.isArray(C) ? l(C) : l([C]));
727
722
  }
728
723
  }(s), new e.Token(w, s, "language-" + w, y);
729
724
  }
@@ -734,9 +729,9 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
734
729
  }
735
730
  e.hooks.add("after-tokenize", function(y) {
736
731
  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]));
732
+ for (var n = 0, a = w.length; n < a; n++) {
733
+ var s, c, l, d = w[n];
734
+ typeof d != "string" && (s = d.content, Array.isArray(s) ? d.type === "template-string" ? (d = s[1], s.length === 3 && typeof d != "string" && d.type === "embedded-code" && (c = b(d), d = d.alias, d = Array.isArray(d) ? d[0] : d, l = e.languages[d]) && (s[1] = p(c, l, d))) : v(s) : typeof s != "string" && v([s]));
740
735
  }
741
736
  }(y.tokens);
742
737
  });
@@ -745,10 +740,10 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
745
740
  var t = e.languages.extend("typescript", {});
746
741
  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
742
  }(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);
743
+ var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, i = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
744
+ e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(i + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(i + /\[(?:(?!\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() {
745
+ return r;
746
+ })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), 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
747
  }(o), function(e) {
753
748
  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
749
  }(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) {
@@ -758,33 +753,33 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
758
753
  }), m);
759
754
  }
760
755
  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]*/;
756
+ for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], i = 0; i < r.length; i++) {
757
+ var h = r[i], f = e.languages.javascript[h], h = (f = e.util.type(f) === "RegExp" ? e.languages.javascript[h] = { pattern: f } : f).inside || {};
758
+ (f.inside = h)["maybe-class-name"] = /^[A-Z][\s\S]*/;
764
759
  }
765
760
  }(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;
761
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, f = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
762
+ function h(p, g) {
763
+ return p = p.replace(/<S>/g, function() {
764
+ return r;
770
765
  }).replace(/<BRACES>/g, function() {
771
- return l;
766
+ return i;
772
767
  }).replace(/<SPREAD>/g, function() {
773
- return d;
774
- }), RegExp(c, g);
768
+ return f;
769
+ }), RegExp(p, g);
775
770
  }
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);
771
+ f = h(f).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);
772
+ function u(p) {
773
+ for (var g = [], b = 0; b < p.length; b++) {
774
+ var y = p[b], v = !1;
775
+ 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 < p.length - 1 && (typeof p[b + 1] == "string" || p[b + 1].type === "plain-text") && (v += m(p[b + 1]), p.splice(b + 1, 1)), 0 < b && (typeof p[b - 1] == "string" || p[b - 1].type === "plain-text") && (v = m(p[b - 1]) + v, p.splice(b - 1, 1), b--), p[b] = new e.Token("plain-text", v, null, v)), y.content && typeof y.content != "string" && u(y.content);
781
776
  }
782
777
  }
783
- var m = function(c) {
784
- return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(m).join("") : "";
778
+ var m = function(p) {
779
+ return p ? typeof p == "string" ? p : typeof p.content == "string" ? p.content : p.content.map(m).join("") : "";
785
780
  };
786
- e.hooks.add("after-tokenize", function(c) {
787
- c.language !== "jsx" && c.language !== "tsx" || u(c.tokens);
781
+ e.hooks.add("after-tokenize", function(p) {
782
+ p.language !== "jsx" && p.language !== "tsx" || u(p.tokens);
788
783
  });
789
784
  }(o), function(e) {
790
785
  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);
@@ -796,7 +791,7 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
796
791
  var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
797
792
  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
793
  }(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++)
794
+ for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
800
795
  t = t.replace(/<self>/g, function() {
801
796
  return t;
802
797
  });
@@ -804,39 +799,39 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
804
799
  return /[^\s\S]/.source;
805
800
  }), 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
801
  }(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() {
802
+ 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/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
808
803
  return t.source;
809
804
  });
810
805
  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
806
  return t.source;
812
807
  })), 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;
808
+ return r;
814
809
  }) + ")"), 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
810
  }(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
811
+ var V = {};
812
+ _e(V, {
813
+ dracula: () => Le,
814
+ duotoneDark: () => Ne,
815
+ duotoneLight: () => De,
816
+ github: () => $e,
817
+ gruvboxMaterialDark: () => gt,
818
+ gruvboxMaterialLight: () => yt,
819
+ jettwaveDark: () => rt,
820
+ jettwaveLight: () => st,
821
+ nightOwl: () => je,
822
+ nightOwlLight: () => Me,
823
+ oceanicNext: () => Ge,
824
+ okaidia: () => qe,
825
+ oneDark: () => it,
826
+ oneLight: () => ct,
827
+ palenight: () => He,
828
+ shadesOfPurple: () => Ke,
829
+ synthwave84: () => Xe,
830
+ ultramin: () => Je,
831
+ vsDark: () => ce,
832
+ vsLight: () => at
838
833
  });
839
- var Ne = {
834
+ var Ie = {
840
835
  plain: {
841
836
  color: "#F8F8F2",
842
837
  backgroundColor: "#282A36"
@@ -898,7 +893,7 @@ var Ne = {
898
893
  }
899
894
  }
900
895
  ]
901
- }, De = Ne, Be = {
896
+ }, Le = Ie, Oe = {
902
897
  plain: {
903
898
  backgroundColor: "#2a2734",
904
899
  color: "#9a86fd"
@@ -992,7 +987,7 @@ var Ne = {
992
987
  }
993
988
  }
994
989
  ]
995
- }, $e = Be, Pe = {
990
+ }, Ne = Oe, Ce = {
996
991
  plain: {
997
992
  backgroundColor: "#faf8f5",
998
993
  color: "#728fcb"
@@ -1090,7 +1085,7 @@ var Ne = {
1090
1085
  }
1091
1086
  }
1092
1087
  ]
1093
- }, je = Pe, ze = {
1088
+ }, De = Ce, Be = {
1094
1089
  plain: {
1095
1090
  color: "#393A34",
1096
1091
  backgroundColor: "#f6f8fa"
@@ -1163,7 +1158,7 @@ var Ne = {
1163
1158
  }
1164
1159
  }
1165
1160
  ]
1166
- }, Me = ze, Ue = {
1161
+ }, $e = Be, Pe = {
1167
1162
  plain: {
1168
1163
  color: "#d6deeb",
1169
1164
  backgroundColor: "#011627"
@@ -1267,7 +1262,7 @@ var Ne = {
1267
1262
  }
1268
1263
  }
1269
1264
  ]
1270
- }, Ge = Ue, Ze = {
1265
+ }, je = Pe, ze = {
1271
1266
  plain: {
1272
1267
  color: "#403f53",
1273
1268
  backgroundColor: "#FBFBFB"
@@ -1359,7 +1354,7 @@ var Ne = {
1359
1354
  }
1360
1355
  }
1361
1356
  ]
1362
- }, We = Ze, L = {
1357
+ }, Me = ze, R = {
1363
1358
  char: "#D8DEE9",
1364
1359
  comment: "#999999",
1365
1360
  keyword: "#c5a5c5",
@@ -1367,13 +1362,10 @@ var Ne = {
1367
1362
  string: "#8dc891",
1368
1363
  variable: "#d7deea",
1369
1364
  boolean: "#ff8b50",
1370
- punctuation: "#5FB3B3",
1371
1365
  tag: "#fc929e",
1372
1366
  function: "#79b6f2",
1373
- className: "#FAC863",
1374
- method: "#6699CC",
1375
- operator: "#fc929e"
1376
- }, qe = {
1367
+ className: "#FAC863"
1368
+ }, Ue = {
1377
1369
  plain: {
1378
1370
  backgroundColor: "#282c34",
1379
1371
  color: "#ffffff"
@@ -1382,13 +1374,13 @@ var Ne = {
1382
1374
  {
1383
1375
  types: ["attr-name"],
1384
1376
  style: {
1385
- color: L.keyword
1377
+ color: R.keyword
1386
1378
  }
1387
1379
  },
1388
1380
  {
1389
1381
  types: ["attr-value"],
1390
1382
  style: {
1391
- color: L.string
1383
+ color: R.string
1392
1384
  }
1393
1385
  },
1394
1386
  {
@@ -1401,7 +1393,7 @@ var Ne = {
1401
1393
  "shebang"
1402
1394
  ],
1403
1395
  style: {
1404
- color: L.comment
1396
+ color: R.comment
1405
1397
  }
1406
1398
  },
1407
1399
  {
@@ -1414,61 +1406,61 @@ var Ne = {
1414
1406
  "deleted"
1415
1407
  ],
1416
1408
  style: {
1417
- color: L.primitive
1409
+ color: R.primitive
1418
1410
  }
1419
1411
  },
1420
1412
  {
1421
1413
  types: ["boolean"],
1422
1414
  style: {
1423
- color: L.boolean
1415
+ color: R.boolean
1424
1416
  }
1425
1417
  },
1426
1418
  {
1427
1419
  types: ["tag"],
1428
1420
  style: {
1429
- color: L.tag
1421
+ color: R.tag
1430
1422
  }
1431
1423
  },
1432
1424
  {
1433
1425
  types: ["string"],
1434
1426
  style: {
1435
- color: L.string
1427
+ color: R.string
1436
1428
  }
1437
1429
  },
1438
1430
  {
1439
1431
  types: ["punctuation"],
1440
1432
  style: {
1441
- color: L.string
1433
+ color: R.string
1442
1434
  }
1443
1435
  },
1444
1436
  {
1445
1437
  types: ["selector", "char", "builtin", "inserted"],
1446
1438
  style: {
1447
- color: L.char
1439
+ color: R.char
1448
1440
  }
1449
1441
  },
1450
1442
  {
1451
1443
  types: ["function"],
1452
1444
  style: {
1453
- color: L.function
1445
+ color: R.function
1454
1446
  }
1455
1447
  },
1456
1448
  {
1457
1449
  types: ["operator", "entity", "url", "variable"],
1458
1450
  style: {
1459
- color: L.variable
1451
+ color: R.variable
1460
1452
  }
1461
1453
  },
1462
1454
  {
1463
1455
  types: ["keyword"],
1464
1456
  style: {
1465
- color: L.keyword
1457
+ color: R.keyword
1466
1458
  }
1467
1459
  },
1468
1460
  {
1469
1461
  types: ["atrule", "class-name"],
1470
1462
  style: {
1471
- color: L.className
1463
+ color: R.className
1472
1464
  }
1473
1465
  },
1474
1466
  {
@@ -1496,7 +1488,7 @@ var Ne = {
1496
1488
  }
1497
1489
  }
1498
1490
  ]
1499
- }, He = qe, Ye = {
1491
+ }, Ge = Ue, Ze = {
1500
1492
  plain: {
1501
1493
  color: "#f8f8f2",
1502
1494
  backgroundColor: "#272822"
@@ -1611,7 +1603,7 @@ var Ne = {
1611
1603
  }
1612
1604
  }
1613
1605
  ]
1614
- }, Ke = Ye, Ve = {
1606
+ }, qe = Ze, We = {
1615
1607
  plain: {
1616
1608
  color: "#bfc7d5",
1617
1609
  backgroundColor: "#292d3e"
@@ -1704,7 +1696,7 @@ var Ne = {
1704
1696
  }
1705
1697
  }
1706
1698
  ]
1707
- }, Xe = Ve, Qe = {
1699
+ }, He = We, Ye = {
1708
1700
  plain: {
1709
1701
  color: "#9EFEFF",
1710
1702
  backgroundColor: "#2D2A55"
@@ -1792,7 +1784,7 @@ var Ne = {
1792
1784
  }
1793
1785
  }
1794
1786
  ]
1795
- }, Je = Qe, et = {
1787
+ }, Ke = Ye, Ve = {
1796
1788
  plain: {
1797
1789
  backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
1798
1790
  backgroundImage: "#34294f",
@@ -1917,7 +1909,7 @@ var Ne = {
1917
1909
  }
1918
1910
  }
1919
1911
  ]
1920
- }, tt = et, at = {
1912
+ }, Xe = Ve, Qe = {
1921
1913
  plain: {
1922
1914
  color: "#282a2e",
1923
1915
  backgroundColor: "#ffffff"
@@ -1942,7 +1934,7 @@ var Ne = {
1942
1934
  }
1943
1935
  }
1944
1936
  ]
1945
- }, nt = at, rt = {
1937
+ }, Je = Qe, et = {
1946
1938
  plain: {
1947
1939
  color: "#9CDCFE",
1948
1940
  backgroundColor: "#1E1E1E"
@@ -2044,7 +2036,7 @@ var Ne = {
2044
2036
  }
2045
2037
  }
2046
2038
  ]
2047
- }, ye = rt, ot = {
2039
+ }, ce = et, tt = {
2048
2040
  plain: {
2049
2041
  color: "#000000",
2050
2042
  backgroundColor: "#ffffff"
@@ -2117,7 +2109,7 @@ var Ne = {
2117
2109
  }
2118
2110
  }
2119
2111
  ]
2120
- }, st = ot, lt = {
2112
+ }, at = tt, nt = {
2121
2113
  plain: {
2122
2114
  color: "#f8fafc",
2123
2115
  backgroundColor: "#011627"
@@ -2216,7 +2208,7 @@ var Ne = {
2216
2208
  }
2217
2209
  }
2218
2210
  ]
2219
- }, it = lt, ut = {
2211
+ }, rt = nt, ot = {
2220
2212
  plain: {
2221
2213
  color: "#0f172a",
2222
2214
  backgroundColor: "#f1f5f9"
@@ -2315,7 +2307,7 @@ var Ne = {
2315
2307
  }
2316
2308
  }
2317
2309
  ]
2318
- }, ct = ut, pt = {
2310
+ }, st = ot, lt = {
2319
2311
  plain: {
2320
2312
  backgroundColor: "hsl(220, 13%, 18%)",
2321
2313
  color: "hsl(220, 14%, 71%)",
@@ -2413,7 +2405,7 @@ var Ne = {
2413
2405
  }
2414
2406
  }
2415
2407
  ]
2416
- }, dt = pt, gt = {
2408
+ }, it = lt, ut = {
2417
2409
  plain: {
2418
2410
  backgroundColor: "hsl(230, 1%, 98%)",
2419
2411
  color: "hsl(230, 8%, 24%)"
@@ -2514,7 +2506,7 @@ var Ne = {
2514
2506
  }
2515
2507
  }
2516
2508
  ]
2517
- }, yt = gt, ft = {
2509
+ }, ct = ut, pt = {
2518
2510
  plain: {
2519
2511
  color: "#ebdbb2",
2520
2512
  backgroundColor: "#292828"
@@ -2587,7 +2579,7 @@ var Ne = {
2587
2579
  }
2588
2580
  }
2589
2581
  ]
2590
- }, bt = ft, mt = {
2582
+ }, gt = pt, dt = {
2591
2583
  plain: {
2592
2584
  color: "#654735",
2593
2585
  backgroundColor: "#f9f5d7"
@@ -2659,46 +2651,46 @@ var Ne = {
2659
2651
  }
2660
2652
  }
2661
2653
  ]
2662
- }, ht = mt, vt = (e) => V(
2654
+ }, yt = dt, ft = (e) => K(
2663
2655
  (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)
2656
+ var r = t, { className: i, style: f, line: h } = r, u = ue(r, ["className", "style", "line"]);
2657
+ const m = q(N({}, u), {
2658
+ className: se("token-line", i)
2667
2659
  });
2668
- return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof d == "object" && (m.style = B(B({}, m.style || {}), d)), m;
2660
+ return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof f == "object" && (m.style = N(N({}, m.style || {}), f)), m;
2669
2661
  },
2670
2662
  [e]
2671
- ), kt = (e) => {
2672
- const t = V(
2673
- ({ types: a, empty: l }) => {
2663
+ ), bt = (e) => {
2664
+ const t = K(
2665
+ ({ types: r, empty: i }) => {
2674
2666
  if (e != null) {
2675
2667
  {
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]];
2668
+ if (r.length === 1 && r[0] === "plain")
2669
+ return i != null ? { display: "inline-block" } : void 0;
2670
+ if (r.length === 1 && i != null)
2671
+ return e[r[0]];
2680
2672
  }
2681
2673
  return Object.assign(
2682
- l != null ? { display: "inline-block" } : {},
2683
- ...a.map((d) => e[d])
2674
+ i != null ? { display: "inline-block" } : {},
2675
+ ...r.map((f) => e[f])
2684
2676
  );
2685
2677
  }
2686
2678
  },
2687
2679
  [e]
2688
2680
  );
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)
2681
+ return K(
2682
+ (r) => {
2683
+ var i = r, { token: f, className: h, style: u } = i, m = ue(i, ["token", "className", "style"]);
2684
+ const p = q(N({}, m), {
2685
+ className: se("token", ...f.types, h),
2686
+ children: f.content,
2687
+ style: t(f)
2696
2688
  });
2697
- return u != null && (c.style = B(B({}, c.style || {}), u)), c;
2689
+ return u != null && (p.style = N(N({}, p.style || {}), u)), p;
2698
2690
  },
2699
2691
  [t]
2700
2692
  );
2701
- }, wt = /\r\n|\r|\n/, re = (e) => {
2693
+ }, mt = /\r\n|\r|\n/, ne = (e) => {
2702
2694
  e.length === 0 ? e.push({
2703
2695
  types: ["plain"],
2704
2696
  content: `
@@ -2706,78 +2698,78 @@ var Ne = {
2706
2698
  empty: !0
2707
2699
  }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2708
2700
  `, 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];
2701
+ }, re = (e, t) => {
2702
+ const r = e.length;
2703
+ return r > 0 && e[r - 1] === t ? e : e.concat(t);
2704
+ }, ht = (e) => {
2705
+ const t = [[]], r = [e], i = [0], f = [e.length];
2714
2706
  let h = 0, u = 0, m = [];
2715
- const c = [m];
2707
+ const p = [m];
2716
2708
  for (; u > -1; ) {
2717
- for (; (h = l[u]++) < d[u]; ) {
2709
+ for (; (h = i[u]++) < f[u]; ) {
2718
2710
  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);
2711
+ const v = r[u][h];
2712
+ if (typeof v == "string" ? (b = u > 0 ? b : ["plain"], g = v) : (b = re(b, v.type), v.alias && (b = re(b, v.alias)), g = v.content), typeof g != "string") {
2713
+ u++, t.push(b), r.push(g), i.push(0), f.push(g.length);
2722
2714
  continue;
2723
2715
  }
2724
- const w = g.split(wt), n = w.length;
2716
+ const w = g.split(mt), n = w.length;
2725
2717
  m.push({
2726
2718
  types: b,
2727
2719
  content: w[0]
2728
2720
  });
2729
- for (let r = 1; r < n; r++)
2730
- re(m), c.push(m = []), m.push({
2721
+ for (let a = 1; a < n; a++)
2722
+ ne(m), p.push(m = []), m.push({
2731
2723
  types: b,
2732
- content: w[r]
2724
+ content: w[a]
2733
2725
  });
2734
2726
  }
2735
- u--, t.pop(), a.pop(), l.pop(), d.pop();
2727
+ u--, t.pop(), r.pop(), i.pop(), f.pop();
2736
2728
  }
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 = {
2729
+ return ne(m), p;
2730
+ }, oe = ht, vt = ({ prism: e, code: t, grammar: r, language: i }) => ye(() => {
2731
+ if (r == null)
2732
+ return oe([t]);
2733
+ const f = {
2742
2734
  code: t,
2743
- grammar: a,
2744
- language: l,
2735
+ grammar: r,
2736
+ language: i,
2745
2737
  tokens: []
2746
2738
  };
2747
- return e.hooks.run("before-tokenize", d), d.tokens = e.tokenize(t, a), e.hooks.run("after-tokenize", d), se(d.tokens);
2739
+ return e.hooks.run("before-tokenize", f), f.tokens = e.tokenize(t, r), e.hooks.run("after-tokenize", f), oe(f.tokens);
2748
2740
  }, [
2749
2741
  t,
2750
- a,
2751
- l,
2742
+ r,
2743
+ i,
2752
2744
  // prism is a stable import
2753
2745
  e
2754
- ]), St = (e, t) => {
2755
- const { plain: a } = e, l = e.styles.reduce((d, h) => {
2746
+ ]), kt = (e, t) => {
2747
+ const { plain: r } = e, i = e.styles.reduce((f, h) => {
2756
2748
  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;
2749
+ return u && !u.includes(t) || h.types.forEach((p) => {
2750
+ const g = N(N({}, f[p]), m);
2751
+ f[p] = g;
2752
+ }), f;
2761
2753
  }, {});
2762
- return l.root = a, l.plain = q(B({}, a), { backgroundColor: void 0 }), l;
2763
- }, At = St, _t = ({
2754
+ return i.root = r, i.plain = q(N({}, r), { backgroundColor: void 0 }), i;
2755
+ }, wt = kt, Et = ({
2764
2756
  children: e,
2765
2757
  language: t,
2766
- code: a,
2767
- theme: l,
2768
- prism: d
2758
+ code: r,
2759
+ theme: i,
2760
+ prism: f
2769
2761
  }) => {
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 });
2762
+ const h = t.toLowerCase(), u = wt(i, h), m = ft(u), p = bt(u), g = f.languages[h], b = vt({ prism: f, language: h, code: r, grammar: g });
2771
2763
  return e({
2772
2764
  tokens: b,
2773
2765
  className: `prism-code language-${h}`,
2774
2766
  style: u != null ? u.root : {},
2775
2767
  getLineProps: m,
2776
- getTokenProps: c
2768
+ getTokenProps: p
2777
2769
  });
2778
- }, Ft = (e) => he(_t, q(B({}, e), {
2770
+ }, xt = (e) => de(Et, q(N({}, e), {
2779
2771
  prism: e.prism || o,
2780
- theme: e.theme || ye,
2772
+ theme: e.theme || ce,
2781
2773
  code: e.code,
2782
2774
  language: e.language
2783
2775
  }));
@@ -2793,86 +2785,6 @@ prismjs/prism.js:
2793
2785
  * @public
2794
2786
  *)
2795
2787
  */
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
2788
  globalThis.Prism = o;
2877
2789
  import("./prism-bash.min-HHIMdNJ_.js");
2878
2790
  import("./prism-ruby.min-Dx9KO9ds.js").then((e) => e.p);
@@ -2884,103 +2796,95 @@ import("./prism-objectivec.min-BXSWqpJJ.js");
2884
2796
  import("./prism-markdown.min-C0Qn0m-5.js");
2885
2797
  import("./prism-javascript.min-CEqHqgbm.js");
2886
2798
  import("./prism-typescript.min-CD7H2IYQ.js").then((e) => e.p);
2887
- const Bt = {
2799
+ import("./prism-jsstacktrace.min-BfobCF2F.js");
2800
+ const At = {
2888
2801
  mdx: "md"
2889
- }, Zt = ({
2890
- copyable: e = !0,
2891
- language: t = "plain",
2892
- title: a,
2893
- ...l
2802
+ }, St = ({
2803
+ language: e = "plain",
2804
+ showCopy: t = "hover",
2805
+ showCopyText: r,
2806
+ title: i,
2807
+ children: f,
2808
+ disabled: h,
2809
+ ...u
2894
2810
  }) => {
2895
- const { resolvedTheme: d } = Lt(), [h, u] = ke(!1);
2896
- if (!l.code)
2811
+ const { resolvedTheme: m } = ve(), [p, g] = be(!1), b = f ?? u.code;
2812
+ if (!b)
2897
2813
  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
- }
2814
+ const y = m === "dark" ? V.vsDark : V.github, v = "bg-[#f6f8fa] text-[#393a34] dark:bg-[#1e1e1e] dark:text-[#9cdcfe]", w = ({
2815
+ children: n,
2816
+ className: a,
2817
+ style: s
2818
+ }) => /* @__PURE__ */ _.jsxs("div", { className: "relative group", children: [
2819
+ i && /* @__PURE__ */ _.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: i }),
2820
+ /* @__PURE__ */ _.jsx(
2821
+ "pre",
2822
+ {
2823
+ className: ee(
2824
+ "relative scrollbar overflow-x-auto",
2825
+ u.className,
2826
+ u.noBackground ? "!bg-transparent" : v,
2827
+ u.wrapLines && "whitespace-pre-wrap break-words",
2828
+ i && "pt-10",
2829
+ a
2916
2830
  ),
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
- )
2831
+ style: s,
2832
+ children: n
2833
+ }
2834
+ ),
2835
+ u.showLanguageIndicator && /* @__PURE__ */ _.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e }),
2836
+ t !== "never" && /* @__PURE__ */ _.jsxs(
2837
+ "button",
2838
+ {
2839
+ type: "button",
2840
+ "aria-label": "Copy code",
2841
+ title: "Copy code",
2842
+ className: ee(
2843
+ "absolute top-2 right-2 p-2 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-muted-foreground transition",
2844
+ t === "hover" ? "opacity-0 group-hover:opacity-100 group-hover:bg-zinc-100 group-hover:dark:bg-zinc-700" : "bg-zinc-100 dark:bg-zinc-700",
2845
+ r && "flex gap-2 items-center font-medium"
2846
+ ),
2847
+ disabled: p,
2848
+ onClick: () => {
2849
+ g(!0), navigator.clipboard.writeText(b), setTimeout(() => g(!1), 2e3);
2850
+ },
2851
+ children: [
2852
+ p ? /* @__PURE__ */ _.jsx(
2853
+ me,
2854
+ {
2855
+ className: "text-emerald-600",
2856
+ size: 16,
2857
+ strokeWidth: 2.5,
2858
+ absoluteStrokeWidth: !0
2859
+ }
2860
+ ) : /* @__PURE__ */ _.jsx(he, { size: 16 }),
2861
+ r && "Copy"
2862
+ ]
2863
+ }
2864
+ )
2865
+ ] });
2866
+ return h ? /* @__PURE__ */ _.jsx(te, { fallback: /* @__PURE__ */ _.jsx(w, { children: b }), children: /* @__PURE__ */ _.jsx(w, { children: b }) }) : /* @__PURE__ */ _.jsx(te, { fallback: /* @__PURE__ */ _.jsx(w, { children: b }), children: /* @__PURE__ */ _.jsx(
2867
+ xt,
2868
+ {
2869
+ theme: y,
2870
+ language: At[e] ?? e,
2871
+ ...u,
2872
+ code: b,
2873
+ children: ({ className: n, style: a, tokens: s, getLineProps: c, getTokenProps: l }) => /* @__PURE__ */ _.jsx(w, { className: n, style: a, children: s.map((d, k) => (
2874
+ // eslint-disable-next-line react/no-array-index-key
2875
+ /* @__PURE__ */ _.jsx("div", { ...c({ line: d }), children: d.map((E, A) => (
2876
+ // eslint-disable-next-line react/no-array-index-key
2877
+ /* @__PURE__ */ _.jsx("span", { ...l({ token: E }) }, A)
2878
+ )) }, k)
2879
+ )) })
2977
2880
  }
2978
- );
2979
- };
2881
+ ) });
2882
+ }, _t = fe(St);
2883
+ _t.displayName = "SyntaxHighlight";
2980
2884
  export {
2981
- Gt as J,
2982
- Zt as S,
2983
- Ut as e,
2984
- Lt as z
2885
+ xt as H,
2886
+ o as P,
2887
+ _t as S,
2888
+ V as t
2985
2889
  };
2986
- //# sourceMappingURL=SyntaxHighlight-B0L4SC_N.js.map
2890
+ //# sourceMappingURL=SyntaxHighlight-BEoSoPEo.js.map