@ebrains/components 0.0.1-alpha.0

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 (1089) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
  3. package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
  4. package/dist/cjs/bluesky-eb0d6051.js +16 -0
  5. package/dist/cjs/chevron-down-27344777.js +14 -0
  6. package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
  7. package/dist/cjs/chevron-right-6d95a117.js +7 -0
  8. package/dist/cjs/chevron-up-e37d7713.js +14 -0
  9. package/dist/cjs/close-51284af5.js +7 -0
  10. package/dist/cjs/color-ac51ccf7.js +342 -0
  11. package/dist/cjs/color-primary-palette.cjs.entry.js +43 -0
  12. package/dist/cjs/color-primary-palette_6.cjs.entry.js +327 -0
  13. package/dist/cjs/color-secondary-palette.cjs.entry.js +68 -0
  14. package/dist/cjs/color-support-palette.cjs.entry.js +59 -0
  15. package/dist/cjs/components.cjs.js +52 -0
  16. package/dist/cjs/copy-53102d0c.js +7 -0
  17. package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
  18. package/dist/cjs/eds-accordion.cjs.entry.js +92 -0
  19. package/dist/cjs/eds-accordion_23.cjs.entry.js +1886 -0
  20. package/dist/cjs/eds-alert.cjs.entry.js +95 -0
  21. package/dist/cjs/eds-avatar.cjs.entry.js +73 -0
  22. package/dist/cjs/eds-block-break.cjs.entry.js +20 -0
  23. package/dist/cjs/eds-breadcrumb.cjs.entry.js +152 -0
  24. package/dist/cjs/eds-button.cjs.entry.js +233 -0
  25. package/dist/cjs/eds-card-desc.cjs.entry.js +26 -0
  26. package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
  27. package/dist/cjs/eds-card-generic.cjs.entry.js +93 -0
  28. package/dist/cjs/eds-card-project.cjs.entry.js +67 -0
  29. package/dist/cjs/eds-card-section.cjs.entry.js +43 -0
  30. package/dist/cjs/eds-card-tags.cjs.entry.js +21 -0
  31. package/dist/cjs/eds-card-title.cjs.entry.js +56 -0
  32. package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
  33. package/dist/cjs/eds-card-wrapper.cjs.entry.js +32 -0
  34. package/dist/cjs/eds-code-block.cjs.entry.js +2472 -0
  35. package/dist/cjs/eds-components-section.cjs.entry.js +96 -0
  36. package/dist/cjs/eds-docs-palettes.cjs.entry.js +27 -0
  37. package/dist/cjs/eds-docs-tokens.cjs.entry.js +35 -0
  38. package/dist/cjs/eds-dropdown.cjs.entry.js +129 -0
  39. package/dist/cjs/eds-footer.cjs.entry.js +49 -0
  40. package/dist/cjs/eds-form.cjs.entry.js +249 -0
  41. package/dist/cjs/eds-frame.cjs.entry.js +91 -0
  42. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +99 -0
  43. package/dist/cjs/eds-header.cjs.entry.js +96 -0
  44. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
  47. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
  48. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
  49. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
  50. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
  51. package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
  52. package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
  53. package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
  54. package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
  55. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
  56. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
  57. package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
  58. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
  59. package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
  60. package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
  61. package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
  62. package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
  63. package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
  64. package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
  65. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +40 -0
  66. package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
  67. package/dist/cjs/eds-img.cjs.entry.js +57 -0
  68. package/dist/cjs/eds-input-field.cjs.entry.js +72 -0
  69. package/dist/cjs/eds-input-footer.cjs.entry.js +21 -0
  70. package/dist/cjs/eds-input-label.cjs.entry.js +20 -0
  71. package/dist/cjs/eds-input-range.cjs.entry.js +39 -0
  72. package/dist/cjs/eds-input-search.cjs.entry.js +41 -0
  73. package/dist/cjs/eds-input-select.cjs.entry.js +30 -0
  74. package/dist/cjs/eds-input.cjs.entry.js +68 -0
  75. package/dist/cjs/eds-link.cjs.entry.js +211 -0
  76. package/dist/cjs/eds-login.cjs.entry.js +72 -0
  77. package/dist/cjs/eds-logo.cjs.entry.js +76 -0
  78. package/dist/cjs/eds-matomo-notice.cjs.entry.js +109 -0
  79. package/dist/cjs/eds-modal.cjs.entry.js +46 -0
  80. package/dist/cjs/eds-navigator.cjs.entry.js +43 -0
  81. package/dist/cjs/eds-pagination.cjs.entry.js +211 -0
  82. package/dist/cjs/eds-progress-bar.cjs.entry.js +28 -0
  83. package/dist/cjs/eds-rating.cjs.entry.js +57 -0
  84. package/dist/cjs/eds-section-core.cjs.entry.js +23 -0
  85. package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
  86. package/dist/cjs/eds-section-heading.cjs.entry.js +41 -0
  87. package/dist/cjs/eds-social-networks.cjs.entry.js +65 -0
  88. package/dist/cjs/eds-svg-repository.cjs.entry.js +32 -0
  89. package/dist/cjs/eds-tab.cjs.entry.js +40 -0
  90. package/dist/cjs/eds-table.cjs.entry.js +142 -0
  91. package/dist/cjs/eds-tabs-content.cjs.entry.js +133 -0
  92. package/dist/cjs/eds-tabs.cjs.entry.js +122 -0
  93. package/dist/cjs/eds-tag.cjs.entry.js +44 -0
  94. package/dist/cjs/eds-toast-manager.cjs.entry.js +45 -0
  95. package/dist/cjs/eds-toast.cjs.entry.js +53 -0
  96. package/dist/cjs/eds-tooltip.cjs.entry.js +99 -0
  97. package/dist/cjs/eds-user-modal.cjs.entry.js +47 -0
  98. package/dist/cjs/eds-user.cjs.entry.js +90 -0
  99. package/dist/cjs/eu-b9665157.js +32 -0
  100. package/dist/cjs/facebook-7aa65e57.js +16 -0
  101. package/dist/cjs/gradient-primary-palette.cjs.entry.js +45 -0
  102. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +79 -0
  103. package/dist/cjs/gradient-support-palette.cjs.entry.js +63 -0
  104. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
  105. package/dist/cjs/index-1ff5f25c.js +48 -0
  106. package/dist/cjs/index-2cc3495f.js +2149 -0
  107. package/dist/cjs/index-383d2951.js +3449 -0
  108. package/dist/cjs/index-96a4261e.js +405 -0
  109. package/dist/cjs/index-ab9fbefe.js +48 -0
  110. package/dist/cjs/index-f62478aa.js +1837 -0
  111. package/dist/cjs/index.cjs.js +2 -0
  112. package/dist/cjs/keycloak-5aaa21af.js +1900 -0
  113. package/dist/cjs/keycloak-940b83c1.js +1910 -0
  114. package/dist/cjs/linkedin-46b0dd56.js +30 -0
  115. package/dist/cjs/loader-5efe2c21.js +35 -0
  116. package/dist/cjs/loader.cjs.js +15 -0
  117. package/dist/cjs/logo-color-6c787ac1.js +117 -0
  118. package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
  119. package/dist/cjs/logo-space.cjs.entry.js +20 -0
  120. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +30 -0
  121. package/dist/cjs/logo-variations-vertical.cjs.entry.js +30 -0
  122. package/dist/cjs/logo-white-no-bg-4a0e0f4b.js +1039 -0
  123. package/dist/cjs/logo-wrong-usage.cjs.entry.js +20 -0
  124. package/dist/cjs/mastodon-20c5bb7d.js +16 -0
  125. package/dist/cjs/menu-7050a6d1.js +13 -0
  126. package/dist/cjs/mono-2f3cd653.js +13 -0
  127. package/dist/cjs/more-1d3dd8bc.js +15 -0
  128. package/dist/cjs/search-5533d877.js +14 -0
  129. package/dist/cjs/shadow-css-988e4292.js +334 -0
  130. package/dist/cjs/success-ef661a11.js +20 -0
  131. package/dist/cjs/toastManager-1fb1a402.js +33 -0
  132. package/dist/cjs/token-list.cjs.entry.js +253 -0
  133. package/dist/cjs/token-list_3.cjs.entry.js +300 -0
  134. package/dist/cjs/token-radii.cjs.entry.js +25 -0
  135. package/dist/cjs/token-ratios.cjs.entry.js +29 -0
  136. package/dist/cjs/token-shadows.cjs.entry.js +34 -0
  137. package/dist/cjs/token-spacing.cjs.entry.js +16 -0
  138. package/dist/cjs/token-typography.cjs.entry.js +230 -0
  139. package/dist/cjs/twitter-73956e9a.js +16 -0
  140. package/dist/cjs/user-a3c2230f.js +18 -0
  141. package/dist/cjs/youtube-c238a461.js +16 -0
  142. package/dist/collection/collection-manifest.json +107 -0
  143. package/dist/collection/components/eds-accordion/eds-accordion.css +258 -0
  144. package/dist/collection/components/eds-accordion/eds-accordion.js +246 -0
  145. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
  146. package/dist/collection/components/eds-alert/eds-alert.css +607 -0
  147. package/dist/collection/components/eds-alert/eds-alert.js +204 -0
  148. package/dist/collection/components/eds-alert/eds-alert.stories.js +52 -0
  149. package/dist/collection/components/eds-avatar/eds-avatar.css +149 -0
  150. package/dist/collection/components/eds-avatar/eds-avatar.js +210 -0
  151. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +65 -0
  152. package/dist/collection/components/eds-block-break/eds-block-break.css +49 -0
  153. package/dist/collection/components/eds-block-break/eds-block-break.js +51 -0
  154. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +111 -0
  155. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +32 -0
  156. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +220 -0
  157. package/dist/collection/components/eds-button/eds-button.css +7140 -0
  158. package/dist/collection/components/eds-button/eds-button.js +487 -0
  159. package/dist/collection/components/eds-button/eds-button.stories.js +47 -0
  160. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +41 -0
  161. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +102 -0
  162. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.js +31 -0
  163. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
  164. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
  165. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
  166. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
  167. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +86 -0
  168. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +103 -0
  169. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +324 -0
  170. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +124 -0
  171. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +227 -0
  172. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
  173. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
  174. package/dist/collection/components/eds-code-block/eds-code-block.css +177 -0
  175. package/dist/collection/components/eds-code-block/eds-code-block.js +86 -0
  176. package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
  177. package/dist/collection/components/eds-dropdown/eds-dropdown.js +356 -0
  178. package/dist/collection/components/eds-form/eds-form.css +7143 -0
  179. package/dist/collection/components/eds-form/eds-form.js +482 -0
  180. package/dist/collection/components/eds-form/eds-form.stories.js +89 -0
  181. package/dist/collection/components/eds-frame/eds-frame.js +266 -0
  182. package/dist/collection/components/eds-frame/eds-frame.stories.js +67 -0
  183. package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
  184. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
  185. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
  186. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
  187. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
  188. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
  189. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
  190. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
  191. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
  192. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
  193. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
  194. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
  195. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
  196. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
  197. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
  198. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +36 -0
  199. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
  200. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
  201. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
  202. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
  203. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
  204. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
  205. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
  206. package/dist/collection/components/eds-img/eds-img.css +83 -0
  207. package/dist/collection/components/eds-img/eds-img.js +246 -0
  208. package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
  209. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +336 -0
  210. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
  211. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
  212. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +197 -0
  213. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +176 -0
  214. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +203 -0
  215. package/dist/collection/components/eds-input-field/eds-input-field.css +7151 -0
  216. package/dist/collection/components/eds-input-field/eds-input-field.js +419 -0
  217. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +205 -0
  218. package/dist/collection/components/eds-link/eds-link.css +7164 -0
  219. package/dist/collection/components/eds-link/eds-link.js +482 -0
  220. package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
  221. package/dist/collection/components/eds-logo/eds-logo.css +47 -0
  222. package/dist/collection/components/eds-logo/eds-logo.js +150 -0
  223. package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
  224. package/dist/collection/components/eds-modal/eds-modal.css +203 -0
  225. package/dist/collection/components/eds-modal/eds-modal.js +175 -0
  226. package/dist/collection/components/eds-modal/eds-modal.stories.js +64 -0
  227. package/dist/collection/components/eds-navigator/eds-navigator.js +147 -0
  228. package/dist/collection/components/eds-navigator/eds-navigator.stories.js +101 -0
  229. package/dist/collection/components/eds-pagination/eds-pagination.css +120 -0
  230. package/dist/collection/components/eds-pagination/eds-pagination.js +414 -0
  231. package/dist/collection/components/eds-pagination/eds-pagination.stories.js +141 -0
  232. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +62 -0
  233. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +79 -0
  234. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +25 -0
  235. package/dist/collection/components/eds-rating/eds-rating.css +74 -0
  236. package/dist/collection/components/eds-rating/eds-rating.js +138 -0
  237. package/dist/collection/components/eds-rating/eds-rating.stories.js +76 -0
  238. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
  239. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +91 -0
  240. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +74 -0
  241. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +137 -0
  242. package/dist/collection/components/eds-tab/eds-tab.js +109 -0
  243. package/dist/collection/components/eds-table/eds-table.css +138 -0
  244. package/dist/collection/components/eds-table/eds-table.js +281 -0
  245. package/dist/collection/components/eds-table/eds-table.stories.js +173 -0
  246. package/dist/collection/components/eds-tag/eds-tag.css +56 -0
  247. package/dist/collection/components/eds-tag/eds-tag.js +94 -0
  248. package/dist/collection/components/eds-tag/eds-tag.stories.js +27 -0
  249. package/dist/collection/components/eds-toast/eds-toast.js +108 -0
  250. package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
  251. package/dist/collection/components/eds-tooltip/eds-tooltip.css +94 -0
  252. package/dist/collection/components/eds-tooltip/eds-tooltip.js +170 -0
  253. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +21 -0
  254. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +39 -0
  255. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +85 -0
  256. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +55 -0
  257. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +41 -0
  258. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
  259. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
  260. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
  261. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +48 -0
  262. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
  263. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
  264. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +11 -0
  265. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
  266. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
  267. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
  268. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
  269. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +58 -0
  270. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +44 -0
  271. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +52 -0
  272. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +27 -0
  273. package/dist/collection/eds-docs-ui/functional/angular.js +2 -0
  274. package/dist/collection/eds-docs-ui/functional/installation.js +2 -0
  275. package/dist/collection/eds-docs-ui/functional/overview.js +2 -0
  276. package/dist/collection/eds-docs-ui/functional/react.js +2 -0
  277. package/dist/collection/eds-docs-ui/functional/usage.js +2 -0
  278. package/dist/collection/eds-docs-ui/functional/vue.js +2 -0
  279. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +53 -0
  280. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
  281. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +60 -0
  282. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +73 -0
  283. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +64 -0
  284. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +73 -0
  285. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +206 -0
  286. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
  287. package/dist/collection/index.js +1 -0
  288. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +153 -0
  289. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +93 -0
  290. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +74 -0
  291. package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -0
  292. package/dist/collection/shared-ui/eds-footer/eds-footer.js +214 -0
  293. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +50 -0
  294. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -0
  295. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +215 -0
  296. package/dist/collection/shared-ui/eds-header/eds-header.css +0 -0
  297. package/dist/collection/shared-ui/eds-header/eds-header.js +286 -0
  298. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +70 -0
  299. package/dist/collection/shared-ui/eds-login/eds-login.js +154 -0
  300. package/dist/collection/shared-ui/eds-login/eds-login.stories.js +37 -0
  301. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +105 -0
  302. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +164 -0
  303. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +34 -0
  304. package/dist/collection/shared-ui/eds-social-networks/eds-social-network.css +124 -0
  305. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
  306. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -0
  307. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +213 -0
  308. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +49 -0
  309. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +194 -0
  310. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.stories.js +112 -0
  311. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +37 -0
  312. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +50 -0
  313. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
  314. package/dist/collection/shared-ui/eds-user/eds-user.js +171 -0
  315. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  316. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +119 -0
  317. package/dist/collection/utils/keycloak.js +79 -0
  318. package/dist/collection/utils/toastManager.js +29 -0
  319. package/dist/components/analytics.js +43 -0
  320. package/dist/components/app-globals-0f993ce5.js +3 -0
  321. package/dist/components/arrow-diagonal-black.js +3 -0
  322. package/dist/components/arrow-right.js +5 -0
  323. package/dist/components/bluesky.js +14 -0
  324. package/dist/components/chevron-down.js +12 -0
  325. package/dist/components/chevron-left.js +11 -0
  326. package/dist/components/chevron-right.js +5 -0
  327. package/dist/components/chevron-up.js +12 -0
  328. package/dist/components/close.js +5 -0
  329. package/dist/components/color-primary-palette.d.ts +11 -0
  330. package/dist/components/color-primary-palette.entry.js +39 -0
  331. package/dist/components/color-primary-palette.js +6 -0
  332. package/dist/components/color-secondary-palette.d.ts +11 -0
  333. package/dist/components/color-secondary-palette.entry.js +64 -0
  334. package/dist/components/color-secondary-palette.js +6 -0
  335. package/dist/components/color-support-palette.d.ts +11 -0
  336. package/dist/components/color-support-palette.entry.js +55 -0
  337. package/dist/components/color-support-palette.js +6 -0
  338. package/dist/components/color.js +296 -0
  339. package/dist/components/components.css +7177 -0
  340. package/dist/components/components.esm.js +47 -0
  341. package/dist/components/copy.js +5 -0
  342. package/dist/components/correct-use-of-colors.d.ts +11 -0
  343. package/dist/components/correct-use-of-colors.entry.js +64 -0
  344. package/dist/components/correct-use-of-colors.js +93 -0
  345. package/dist/components/eds-accordion.d.ts +11 -0
  346. package/dist/components/eds-accordion.entry.js +88 -0
  347. package/dist/components/eds-accordion.js +6 -0
  348. package/dist/components/eds-accordion2.js +125 -0
  349. package/dist/components/eds-alert.d.ts +11 -0
  350. package/dist/components/eds-alert.entry.js +91 -0
  351. package/dist/components/eds-alert.js +6 -0
  352. package/dist/components/eds-alert2.js +125 -0
  353. package/dist/components/eds-avatar.d.ts +11 -0
  354. package/dist/components/eds-avatar.entry.js +69 -0
  355. package/dist/components/eds-avatar.js +6 -0
  356. package/dist/components/eds-avatar2.js +97 -0
  357. package/dist/components/eds-block-break.d.ts +11 -0
  358. package/dist/components/eds-block-break.entry.js +16 -0
  359. package/dist/components/eds-block-break.js +6 -0
  360. package/dist/components/eds-block-break2.js +33 -0
  361. package/dist/components/eds-breadcrumb.d.ts +11 -0
  362. package/dist/components/eds-breadcrumb.entry.js +148 -0
  363. package/dist/components/eds-breadcrumb.js +186 -0
  364. package/dist/components/eds-button.d.ts +11 -0
  365. package/dist/components/eds-button.entry.js +229 -0
  366. package/dist/components/eds-button.js +6 -0
  367. package/dist/components/eds-button2.js +264 -0
  368. package/dist/components/eds-card-desc.d.ts +11 -0
  369. package/dist/components/eds-card-desc.entry.js +22 -0
  370. package/dist/components/eds-card-desc.js +6 -0
  371. package/dist/components/eds-card-desc2.js +42 -0
  372. package/dist/components/eds-card-generic.d.ts +11 -0
  373. package/dist/components/eds-card-generic.entry.js +89 -0
  374. package/dist/components/eds-card-generic.js +6 -0
  375. package/dist/components/eds-card-generic2.js +147 -0
  376. package/dist/components/eds-card-project.d.ts +11 -0
  377. package/dist/components/eds-card-project.entry.js +63 -0
  378. package/dist/components/eds-card-project.js +108 -0
  379. package/dist/components/eds-card-section.d.ts +11 -0
  380. package/dist/components/eds-card-section.entry.js +39 -0
  381. package/dist/components/eds-card-section.js +96 -0
  382. package/dist/components/eds-card-tags.d.ts +11 -0
  383. package/dist/components/eds-card-tags.entry.js +17 -0
  384. package/dist/components/eds-card-tags.js +44 -0
  385. package/dist/components/eds-card-title.d.ts +11 -0
  386. package/dist/components/eds-card-title.entry.js +52 -0
  387. package/dist/components/eds-card-title.js +6 -0
  388. package/dist/components/eds-card-title2.js +74 -0
  389. package/dist/components/eds-card-tool.d.ts +11 -0
  390. package/dist/components/eds-card-tool.entry.js +75 -0
  391. package/dist/components/eds-card-tool.js +136 -0
  392. package/dist/components/eds-card-wrapper.d.ts +11 -0
  393. package/dist/components/eds-card-wrapper.entry.js +28 -0
  394. package/dist/components/eds-card-wrapper.js +49 -0
  395. package/dist/components/eds-code-block.d.ts +11 -0
  396. package/dist/components/eds-code-block.entry.js +2468 -0
  397. package/dist/components/eds-code-block.js +6 -0
  398. package/dist/components/eds-code-block2.js +2493 -0
  399. package/dist/components/eds-components-section.d.ts +11 -0
  400. package/dist/components/eds-components-section.entry.js +92 -0
  401. package/dist/components/eds-components-section.js +147 -0
  402. package/dist/components/eds-docs-palettes.d.ts +11 -0
  403. package/dist/components/eds-docs-palettes.entry.js +23 -0
  404. package/dist/components/eds-docs-palettes.js +96 -0
  405. package/dist/components/eds-docs-tokens.d.ts +11 -0
  406. package/dist/components/eds-docs-tokens.entry.js +31 -0
  407. package/dist/components/eds-docs-tokens.js +80 -0
  408. package/dist/components/eds-dropdown.d.ts +11 -0
  409. package/dist/components/eds-dropdown.entry.js +125 -0
  410. package/dist/components/eds-dropdown.js +6 -0
  411. package/dist/components/eds-dropdown2.js +163 -0
  412. package/dist/components/eds-footer.d.ts +11 -0
  413. package/dist/components/eds-footer.entry.js +45 -0
  414. package/dist/components/eds-footer.js +6 -0
  415. package/dist/components/eds-footer2.js +97 -0
  416. package/dist/components/eds-form.d.ts +11 -0
  417. package/dist/components/eds-form.entry.js +245 -0
  418. package/dist/components/eds-form.js +346 -0
  419. package/dist/components/eds-frame.d.ts +11 -0
  420. package/dist/components/eds-frame.entry.js +87 -0
  421. package/dist/components/eds-frame.js +127 -0
  422. package/dist/components/eds-fullscreen-menu.d.ts +11 -0
  423. package/dist/components/eds-fullscreen-menu.entry.js +95 -0
  424. package/dist/components/eds-fullscreen-menu.js +166 -0
  425. package/dist/components/eds-header.d.ts +11 -0
  426. package/dist/components/eds-header.entry.js +92 -0
  427. package/dist/components/eds-header.js +175 -0
  428. package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
  429. package/dist/components/eds-icon-arrow-diagonal.entry.js +14 -0
  430. package/dist/components/eds-icon-arrow-diagonal.js +33 -0
  431. package/dist/components/eds-icon-arrow-right.d.ts +11 -0
  432. package/dist/components/eds-icon-arrow-right.entry.js +14 -0
  433. package/dist/components/eds-icon-arrow-right.js +33 -0
  434. package/dist/components/eds-icon-bluesky.d.ts +11 -0
  435. package/dist/components/eds-icon-bluesky.entry.js +14 -0
  436. package/dist/components/eds-icon-bluesky.js +33 -0
  437. package/dist/components/eds-icon-chevron-down.d.ts +11 -0
  438. package/dist/components/eds-icon-chevron-down.entry.js +14 -0
  439. package/dist/components/eds-icon-chevron-down.js +33 -0
  440. package/dist/components/eds-icon-chevron-left.d.ts +11 -0
  441. package/dist/components/eds-icon-chevron-left.entry.js +14 -0
  442. package/dist/components/eds-icon-chevron-left.js +33 -0
  443. package/dist/components/eds-icon-chevron-right.d.ts +11 -0
  444. package/dist/components/eds-icon-chevron-right.entry.js +14 -0
  445. package/dist/components/eds-icon-chevron-right.js +33 -0
  446. package/dist/components/eds-icon-chevron-up.d.ts +11 -0
  447. package/dist/components/eds-icon-chevron-up.entry.js +14 -0
  448. package/dist/components/eds-icon-chevron-up.js +33 -0
  449. package/dist/components/eds-icon-close.d.ts +11 -0
  450. package/dist/components/eds-icon-close.entry.js +14 -0
  451. package/dist/components/eds-icon-close.js +33 -0
  452. package/dist/components/eds-icon-copy.d.ts +11 -0
  453. package/dist/components/eds-icon-copy.entry.js +14 -0
  454. package/dist/components/eds-icon-copy.js +33 -0
  455. package/dist/components/eds-icon-eu.d.ts +11 -0
  456. package/dist/components/eds-icon-eu.entry.js +14 -0
  457. package/dist/components/eds-icon-eu.js +33 -0
  458. package/dist/components/eds-icon-facebook.d.ts +11 -0
  459. package/dist/components/eds-icon-facebook.entry.js +14 -0
  460. package/dist/components/eds-icon-facebook.js +33 -0
  461. package/dist/components/eds-icon-gitlab.d.ts +11 -0
  462. package/dist/components/eds-icon-gitlab.entry.js +14 -0
  463. package/dist/components/eds-icon-gitlab.js +33 -0
  464. package/dist/components/eds-icon-linkedin.d.ts +11 -0
  465. package/dist/components/eds-icon-linkedin.entry.js +14 -0
  466. package/dist/components/eds-icon-linkedin.js +33 -0
  467. package/dist/components/eds-icon-loader.d.ts +11 -0
  468. package/dist/components/eds-icon-loader.entry.js +14 -0
  469. package/dist/components/eds-icon-loader.js +33 -0
  470. package/dist/components/eds-icon-mastodon.d.ts +11 -0
  471. package/dist/components/eds-icon-mastodon.entry.js +14 -0
  472. package/dist/components/eds-icon-mastodon.js +33 -0
  473. package/dist/components/eds-icon-menu.d.ts +11 -0
  474. package/dist/components/eds-icon-menu.entry.js +14 -0
  475. package/dist/components/eds-icon-menu.js +33 -0
  476. package/dist/components/eds-icon-more.d.ts +11 -0
  477. package/dist/components/eds-icon-more.entry.js +14 -0
  478. package/dist/components/eds-icon-more.js +33 -0
  479. package/dist/components/eds-icon-search.d.ts +11 -0
  480. package/dist/components/eds-icon-search.entry.js +14 -0
  481. package/dist/components/eds-icon-search.js +33 -0
  482. package/dist/components/eds-icon-success.d.ts +11 -0
  483. package/dist/components/eds-icon-success.entry.js +14 -0
  484. package/dist/components/eds-icon-success.js +33 -0
  485. package/dist/components/eds-icon-twitter.d.ts +11 -0
  486. package/dist/components/eds-icon-twitter.entry.js +14 -0
  487. package/dist/components/eds-icon-twitter.js +33 -0
  488. package/dist/components/eds-icon-user.d.ts +11 -0
  489. package/dist/components/eds-icon-user.entry.js +14 -0
  490. package/dist/components/eds-icon-user.js +33 -0
  491. package/dist/components/eds-icon-wrapper.d.ts +11 -0
  492. package/dist/components/eds-icon-wrapper.entry.js +36 -0
  493. package/dist/components/eds-icon-wrapper.js +6 -0
  494. package/dist/components/eds-icon-wrapper2.js +56 -0
  495. package/dist/components/eds-icon-youtube.d.ts +11 -0
  496. package/dist/components/eds-icon-youtube.entry.js +14 -0
  497. package/dist/components/eds-icon-youtube.js +33 -0
  498. package/dist/components/eds-img.d.ts +11 -0
  499. package/dist/components/eds-img.entry.js +53 -0
  500. package/dist/components/eds-img.js +6 -0
  501. package/dist/components/eds-img2.js +80 -0
  502. package/dist/components/eds-input-field.d.ts +11 -0
  503. package/dist/components/eds-input-field.entry.js +68 -0
  504. package/dist/components/eds-input-field.js +6 -0
  505. package/dist/components/eds-input-field2.js +145 -0
  506. package/dist/components/eds-input-footer.d.ts +11 -0
  507. package/dist/components/eds-input-footer.entry.js +17 -0
  508. package/dist/components/eds-input-footer.js +6 -0
  509. package/dist/components/eds-input-footer2.js +43 -0
  510. package/dist/components/eds-input-label.d.ts +11 -0
  511. package/dist/components/eds-input-label.entry.js +16 -0
  512. package/dist/components/eds-input-label.js +6 -0
  513. package/dist/components/eds-input-label2.js +35 -0
  514. package/dist/components/eds-input-range.d.ts +11 -0
  515. package/dist/components/eds-input-range.entry.js +35 -0
  516. package/dist/components/eds-input-range.js +6 -0
  517. package/dist/components/eds-input-range2.js +59 -0
  518. package/dist/components/eds-input-search.d.ts +11 -0
  519. package/dist/components/eds-input-search.entry.js +37 -0
  520. package/dist/components/eds-input-search.js +6 -0
  521. package/dist/components/eds-input-search2.js +65 -0
  522. package/dist/components/eds-input-select.d.ts +11 -0
  523. package/dist/components/eds-input-select.entry.js +26 -0
  524. package/dist/components/eds-input-select.js +6 -0
  525. package/dist/components/eds-input-select2.js +56 -0
  526. package/dist/components/eds-input.d.ts +11 -0
  527. package/dist/components/eds-input.entry.js +64 -0
  528. package/dist/components/eds-input.js +6 -0
  529. package/dist/components/eds-input2.js +103 -0
  530. package/dist/components/eds-link.d.ts +11 -0
  531. package/dist/components/eds-link.entry.js +207 -0
  532. package/dist/components/eds-link.js +6 -0
  533. package/dist/components/eds-link2.js +243 -0
  534. package/dist/components/eds-login.d.ts +11 -0
  535. package/dist/components/eds-login.entry.js +68 -0
  536. package/dist/components/eds-login.js +103 -0
  537. package/dist/components/eds-logo.d.ts +11 -0
  538. package/dist/components/eds-logo.entry.js +72 -0
  539. package/dist/components/eds-logo.js +6 -0
  540. package/dist/components/eds-logo2.js +90 -0
  541. package/dist/components/eds-matomo-notice.d.ts +11 -0
  542. package/dist/components/eds-matomo-notice.entry.js +105 -0
  543. package/dist/components/eds-matomo-notice.js +144 -0
  544. package/dist/components/eds-modal.d.ts +11 -0
  545. package/dist/components/eds-modal.entry.js +42 -0
  546. package/dist/components/eds-modal.js +80 -0
  547. package/dist/components/eds-navigator.d.ts +11 -0
  548. package/dist/components/eds-navigator.entry.js +39 -0
  549. package/dist/components/eds-navigator.js +75 -0
  550. package/dist/components/eds-pagination.d.ts +11 -0
  551. package/dist/components/eds-pagination.entry.js +207 -0
  552. package/dist/components/eds-pagination.js +6 -0
  553. package/dist/components/eds-pagination2.js +249 -0
  554. package/dist/components/eds-progress-bar.d.ts +11 -0
  555. package/dist/components/eds-progress-bar.entry.js +24 -0
  556. package/dist/components/eds-progress-bar.js +45 -0
  557. package/dist/components/eds-rating.d.ts +11 -0
  558. package/dist/components/eds-rating.entry.js +53 -0
  559. package/dist/components/eds-rating.js +76 -0
  560. package/dist/components/eds-section-core.d.ts +11 -0
  561. package/dist/components/eds-section-core.entry.js +19 -0
  562. package/dist/components/eds-section-core.js +6 -0
  563. package/dist/components/eds-section-core2.js +43 -0
  564. package/dist/components/eds-section-heading.d.ts +11 -0
  565. package/dist/components/eds-section-heading.entry.js +37 -0
  566. package/dist/components/eds-section-heading.js +6 -0
  567. package/dist/components/eds-section-heading2.js +57 -0
  568. package/dist/components/eds-social-networks.d.ts +11 -0
  569. package/dist/components/eds-social-networks.entry.js +61 -0
  570. package/dist/components/eds-social-networks.js +6 -0
  571. package/dist/components/eds-social-networks2.js +90 -0
  572. package/dist/components/eds-svg-repository.d.ts +11 -0
  573. package/dist/components/eds-svg-repository.entry.js +28 -0
  574. package/dist/components/eds-svg-repository.js +112 -0
  575. package/dist/components/eds-tab.d.ts +11 -0
  576. package/dist/components/eds-tab.entry.js +36 -0
  577. package/dist/components/eds-tab.js +6 -0
  578. package/dist/components/eds-tab2.js +55 -0
  579. package/dist/components/eds-table.d.ts +11 -0
  580. package/dist/components/eds-table.entry.js +138 -0
  581. package/dist/components/eds-table.js +6 -0
  582. package/dist/components/eds-table2.js +229 -0
  583. package/dist/components/eds-tabs-content.d.ts +11 -0
  584. package/dist/components/eds-tabs-content.entry.js +129 -0
  585. package/dist/components/eds-tabs-content.js +159 -0
  586. package/dist/components/eds-tabs.d.ts +11 -0
  587. package/dist/components/eds-tabs.entry.js +118 -0
  588. package/dist/components/eds-tabs.js +149 -0
  589. package/dist/components/eds-tag.d.ts +11 -0
  590. package/dist/components/eds-tag.entry.js +40 -0
  591. package/dist/components/eds-tag.js +6 -0
  592. package/dist/components/eds-tag2.js +58 -0
  593. package/dist/components/eds-toast-manager.d.ts +11 -0
  594. package/dist/components/eds-toast-manager.entry.js +41 -0
  595. package/dist/components/eds-toast-manager.js +78 -0
  596. package/dist/components/eds-toast.d.ts +11 -0
  597. package/dist/components/eds-toast.entry.js +49 -0
  598. package/dist/components/eds-toast.js +6 -0
  599. package/dist/components/eds-toast2.js +80 -0
  600. package/dist/components/eds-tooltip.d.ts +11 -0
  601. package/dist/components/eds-tooltip.entry.js +95 -0
  602. package/dist/components/eds-tooltip.js +119 -0
  603. package/dist/components/eds-user-modal.d.ts +11 -0
  604. package/dist/components/eds-user-modal.entry.js +43 -0
  605. package/dist/components/eds-user-modal.js +6 -0
  606. package/dist/components/eds-user-modal2.js +90 -0
  607. package/dist/components/eds-user.d.ts +11 -0
  608. package/dist/components/eds-user.entry.js +86 -0
  609. package/dist/components/eds-user.js +6 -0
  610. package/dist/components/eds-user2.js +150 -0
  611. package/dist/components/eu.js +30 -0
  612. package/dist/components/facebook.js +14 -0
  613. package/dist/components/gradient-primary-palette.d.ts +11 -0
  614. package/dist/components/gradient-primary-palette.entry.js +41 -0
  615. package/dist/components/gradient-primary-palette.js +6 -0
  616. package/dist/components/gradient-secondary-palette.d.ts +11 -0
  617. package/dist/components/gradient-secondary-palette.entry.js +75 -0
  618. package/dist/components/gradient-secondary-palette.js +6 -0
  619. package/dist/components/gradient-support-palette.d.ts +11 -0
  620. package/dist/components/gradient-support-palette.entry.js +59 -0
  621. package/dist/components/gradient-support-palette.js +6 -0
  622. package/dist/components/incorrect-use-of-colors.d.ts +11 -0
  623. package/dist/components/incorrect-use-of-colors.entry.js +46 -0
  624. package/dist/components/incorrect-use-of-colors.js +63 -0
  625. package/dist/components/index-144c9ae8.js +46 -0
  626. package/dist/components/index-360dc790.js +401 -0
  627. package/dist/components/index-a9afa43f.js +1802 -0
  628. package/dist/components/index-b384416e.js +3023 -0
  629. package/dist/components/index.d.ts +33 -0
  630. package/dist/components/index.esm.js +1 -0
  631. package/dist/components/index.js +1 -0
  632. package/dist/components/index2.js +401 -0
  633. package/dist/components/index3.js +46 -0
  634. package/dist/components/index4.js +1802 -0
  635. package/dist/components/keycloak-b647d452.js +1903 -0
  636. package/dist/components/keycloak.js +1903 -0
  637. package/dist/components/linkedin.js +28 -0
  638. package/dist/components/loader.js +33 -0
  639. package/dist/components/logo-color-margins.js +118 -0
  640. package/dist/components/logo-color.js +115 -0
  641. package/dist/components/logo-space.d.ts +11 -0
  642. package/dist/components/logo-space.entry.js +16 -0
  643. package/dist/components/logo-space.js +34 -0
  644. package/dist/components/logo-variations-horizontal.d.ts +11 -0
  645. package/dist/components/logo-variations-horizontal.entry.js +26 -0
  646. package/dist/components/logo-variations-horizontal.js +53 -0
  647. package/dist/components/logo-variations-vertical.d.ts +11 -0
  648. package/dist/components/logo-variations-vertical.entry.js +26 -0
  649. package/dist/components/logo-variations-vertical.js +53 -0
  650. package/dist/components/logo-white-no-bg.js +1029 -0
  651. package/dist/components/logo-wrong-usage.d.ts +11 -0
  652. package/dist/components/logo-wrong-usage.entry.js +16 -0
  653. package/dist/components/logo-wrong-usage.js +34 -0
  654. package/dist/components/mastodon.js +14 -0
  655. package/dist/components/menu.js +11 -0
  656. package/dist/components/mono.js +11 -0
  657. package/dist/components/more.js +13 -0
  658. package/dist/components/p-0611bbac.entry.js +1 -0
  659. package/dist/components/p-0a195bfe.entry.js +1 -0
  660. package/dist/components/p-0a6262b7.entry.js +1 -0
  661. package/dist/components/p-0be28996.js +1 -0
  662. package/dist/components/p-0e6d43c5.js +1 -0
  663. package/dist/components/p-112122d6.js +1 -0
  664. package/dist/components/p-11a4ef34.entry.js +1 -0
  665. package/dist/components/p-145d8e4d.entry.js +1 -0
  666. package/dist/components/p-1a1b8e28.entry.js +1 -0
  667. package/dist/components/p-1d94d663.entry.js +1 -0
  668. package/dist/components/p-1ded61bd.js +1 -0
  669. package/dist/components/p-200ad980.entry.js +9 -0
  670. package/dist/components/p-2066b033.js +1 -0
  671. package/dist/components/p-219d9f68.entry.js +1 -0
  672. package/dist/components/p-22ee5374.entry.js +1 -0
  673. package/dist/components/p-25eb1801.entry.js +1 -0
  674. package/dist/components/p-2692f93d.js +1 -0
  675. package/dist/components/p-2728a189.entry.js +1 -0
  676. package/dist/components/p-29041952.js +1 -0
  677. package/dist/components/p-2b14f03a.entry.js +1 -0
  678. package/dist/components/p-3048bdec.entry.js +1 -0
  679. package/dist/components/p-32e6c4df.js +1 -0
  680. package/dist/components/p-36c0f3ee.entry.js +1 -0
  681. package/dist/components/p-373119b3.js +1 -0
  682. package/dist/components/p-378d371f.entry.js +1 -0
  683. package/dist/components/p-3dbf2ac9.entry.js +1 -0
  684. package/dist/components/p-42dfb426.entry.js +1 -0
  685. package/dist/components/p-4541cb5f.entry.js +1 -0
  686. package/dist/components/p-4587d0ef.js +1 -0
  687. package/dist/components/p-4687b64c.js +1 -0
  688. package/dist/components/p-46d0716d.js +1 -0
  689. package/dist/components/p-49a5eef5.entry.js +1 -0
  690. package/dist/components/p-50e27321.js +1 -0
  691. package/dist/components/p-513bf756.entry.js +1 -0
  692. package/dist/components/p-52a487ee.entry.js +1 -0
  693. package/dist/components/p-54b8f143.js +1 -0
  694. package/dist/components/p-55444767.entry.js +1 -0
  695. package/dist/components/p-5ab1d64a.js +1 -0
  696. package/dist/components/p-5b900a2c.entry.js +1 -0
  697. package/dist/components/p-5d046674.js +1 -0
  698. package/dist/components/p-5edc806a.entry.js +1 -0
  699. package/dist/components/p-606d8f86.entry.js +1 -0
  700. package/dist/components/p-64d4a6e0.entry.js +1 -0
  701. package/dist/components/p-677f60bc.entry.js +1 -0
  702. package/dist/components/p-6bc00fad.entry.js +1 -0
  703. package/dist/components/p-6cb8c52d.entry.js +1 -0
  704. package/dist/components/p-6f601454.entry.js +1 -0
  705. package/dist/components/p-763cbe2f.entry.js +1 -0
  706. package/dist/components/p-77a81dfa.entry.js +1 -0
  707. package/dist/components/p-7a2b35b4.entry.js +1 -0
  708. package/dist/components/p-81899237.js +1 -0
  709. package/dist/components/p-81d2a9be.entry.js +1 -0
  710. package/dist/components/p-82453a66.entry.js +1 -0
  711. package/dist/components/p-83ff4a95.js +1 -0
  712. package/dist/components/p-877403df.entry.js +1 -0
  713. package/dist/components/p-8983de37.js +1 -0
  714. package/dist/components/p-8c1be2b6.entry.js +1 -0
  715. package/dist/components/p-923e4d23.entry.js +1 -0
  716. package/dist/components/p-94b74ae8.entry.js +1 -0
  717. package/dist/components/p-9c05e349.entry.js +1 -0
  718. package/dist/components/p-9c5a453b.js +1 -0
  719. package/dist/components/p-9c74a5dd.entry.js +1 -0
  720. package/dist/components/p-abcdf35f.js +1 -0
  721. package/dist/components/p-ac083317.entry.js +1 -0
  722. package/dist/components/p-ad79cc3c.entry.js +1 -0
  723. package/dist/components/p-aefcb641.js +1 -0
  724. package/dist/components/p-b4055691.entry.js +1 -0
  725. package/dist/components/p-b544f216.entry.js +1 -0
  726. package/dist/components/p-b822abb7.js +1 -0
  727. package/dist/components/p-b94318f2.entry.js +1 -0
  728. package/dist/components/p-bad2a33a.entry.js +1 -0
  729. package/dist/components/p-bfd2fdf1.entry.js +1 -0
  730. package/dist/components/p-c0afe524.entry.js +1 -0
  731. package/dist/components/p-c11d93cf.entry.js +1 -0
  732. package/dist/components/p-c16b3c0c.entry.js +1 -0
  733. package/dist/components/p-c3c61db1.entry.js +1 -0
  734. package/dist/components/p-c8e7c854.js +1 -0
  735. package/dist/components/p-c9c417de.js +1 -0
  736. package/dist/components/p-caf2af08.entry.js +1 -0
  737. package/dist/components/p-d80de13e.entry.js +1 -0
  738. package/dist/components/p-ddd005a3.entry.js +1 -0
  739. package/dist/components/p-e04097a2.entry.js +1 -0
  740. package/dist/components/p-e1255160.js +1 -0
  741. package/dist/components/p-e2e715a2.entry.js +1 -0
  742. package/dist/components/p-e639818b.entry.js +1 -0
  743. package/dist/components/p-e69ff916.entry.js +1 -0
  744. package/dist/components/p-e80f4f24.js +1 -0
  745. package/dist/components/p-e9a1fb1e.js +2 -0
  746. package/dist/components/p-ec95188c.entry.js +1 -0
  747. package/dist/components/p-ecbb679f.js +1 -0
  748. package/dist/components/p-ece618b3.js +1 -0
  749. package/dist/components/p-f04946a5.entry.js +1 -0
  750. package/dist/components/p-fa1276cc.entry.js +1 -0
  751. package/dist/components/p-ff6b25a1.entry.js +1 -0
  752. package/dist/components/primary.js +65 -0
  753. package/dist/components/primary2.js +67 -0
  754. package/dist/components/search.js +12 -0
  755. package/dist/components/secondary.js +92 -0
  756. package/dist/components/secondary2.js +107 -0
  757. package/dist/components/shadow-css-423dab2c.js +332 -0
  758. package/dist/components/success.js +18 -0
  759. package/dist/components/support.js +81 -0
  760. package/dist/components/support2.js +85 -0
  761. package/dist/components/toastManager-b716afd8.js +31 -0
  762. package/dist/components/toastManager.js +31 -0
  763. package/dist/components/token-list.d.ts +11 -0
  764. package/dist/components/token-list.entry.js +249 -0
  765. package/dist/components/token-list.js +6 -0
  766. package/dist/components/token-list2.js +277 -0
  767. package/dist/components/token-radii.d.ts +11 -0
  768. package/dist/components/token-radii.entry.js +21 -0
  769. package/dist/components/token-radii.js +6 -0
  770. package/dist/components/token-radii2.js +47 -0
  771. package/dist/components/token-ratios.d.ts +11 -0
  772. package/dist/components/token-ratios.entry.js +25 -0
  773. package/dist/components/token-ratios.js +54 -0
  774. package/dist/components/token-shadows.d.ts +11 -0
  775. package/dist/components/token-shadows.entry.js +30 -0
  776. package/dist/components/token-shadows.js +6 -0
  777. package/dist/components/token-shadows2.js +56 -0
  778. package/dist/components/token-spacing.d.ts +11 -0
  779. package/dist/components/token-spacing.entry.js +12 -0
  780. package/dist/components/token-spacing.js +29 -0
  781. package/dist/components/token-typography.d.ts +11 -0
  782. package/dist/components/token-typography.entry.js +226 -0
  783. package/dist/components/token-typography.js +255 -0
  784. package/dist/components/twitter.js +14 -0
  785. package/dist/components/user.js +16 -0
  786. package/dist/components/youtube.js +14 -0
  787. package/dist/esm/app-globals-0f993ce5.js +3 -0
  788. package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
  789. package/dist/esm/arrow-right-9322ba8a.js +5 -0
  790. package/dist/esm/bluesky-cc5edd2d.js +14 -0
  791. package/dist/esm/chevron-down-6144c823.js +12 -0
  792. package/dist/esm/chevron-left-ca6c66e1.js +11 -0
  793. package/dist/esm/chevron-right-b88ed2d4.js +5 -0
  794. package/dist/esm/chevron-up-c66bd477.js +12 -0
  795. package/dist/esm/close-87fc0d63.js +5 -0
  796. package/dist/esm/color-49aa977d.js +338 -0
  797. package/dist/esm/color-primary-palette.entry.js +39 -0
  798. package/dist/esm/color-primary-palette_6.entry.js +318 -0
  799. package/dist/esm/color-secondary-palette.entry.js +64 -0
  800. package/dist/esm/color-support-palette.entry.js +55 -0
  801. package/dist/esm/components.js +47 -0
  802. package/dist/esm/copy-03b72cb6.js +5 -0
  803. package/dist/esm/correct-use-of-colors.entry.js +64 -0
  804. package/dist/esm/eds-accordion.entry.js +88 -0
  805. package/dist/esm/eds-accordion_23.entry.js +1860 -0
  806. package/dist/esm/eds-alert.entry.js +91 -0
  807. package/dist/esm/eds-avatar.entry.js +69 -0
  808. package/dist/esm/eds-block-break.entry.js +16 -0
  809. package/dist/esm/eds-breadcrumb.entry.js +148 -0
  810. package/dist/esm/eds-button.entry.js +229 -0
  811. package/dist/esm/eds-card-desc.entry.js +22 -0
  812. package/dist/esm/eds-card-desc_3.entry.js +111 -0
  813. package/dist/esm/eds-card-generic.entry.js +89 -0
  814. package/dist/esm/eds-card-project.entry.js +63 -0
  815. package/dist/esm/eds-card-section.entry.js +39 -0
  816. package/dist/esm/eds-card-tags.entry.js +17 -0
  817. package/dist/esm/eds-card-title.entry.js +52 -0
  818. package/dist/esm/eds-card-tool.entry.js +75 -0
  819. package/dist/esm/eds-card-wrapper.entry.js +28 -0
  820. package/dist/esm/eds-code-block.entry.js +2468 -0
  821. package/dist/esm/eds-components-section.entry.js +92 -0
  822. package/dist/esm/eds-docs-palettes.entry.js +23 -0
  823. package/dist/esm/eds-docs-tokens.entry.js +31 -0
  824. package/dist/esm/eds-dropdown.entry.js +125 -0
  825. package/dist/esm/eds-footer.entry.js +45 -0
  826. package/dist/esm/eds-form.entry.js +245 -0
  827. package/dist/esm/eds-frame.entry.js +87 -0
  828. package/dist/esm/eds-fullscreen-menu.entry.js +95 -0
  829. package/dist/esm/eds-header.entry.js +92 -0
  830. package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
  831. package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
  832. package/dist/esm/eds-icon-bluesky.entry.js +14 -0
  833. package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
  834. package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
  835. package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
  836. package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
  837. package/dist/esm/eds-icon-close.entry.js +14 -0
  838. package/dist/esm/eds-icon-copy.entry.js +14 -0
  839. package/dist/esm/eds-icon-eu.entry.js +14 -0
  840. package/dist/esm/eds-icon-facebook.entry.js +14 -0
  841. package/dist/esm/eds-icon-gitlab.entry.js +14 -0
  842. package/dist/esm/eds-icon-linkedin.entry.js +14 -0
  843. package/dist/esm/eds-icon-loader.entry.js +14 -0
  844. package/dist/esm/eds-icon-mastodon.entry.js +14 -0
  845. package/dist/esm/eds-icon-menu.entry.js +14 -0
  846. package/dist/esm/eds-icon-more.entry.js +14 -0
  847. package/dist/esm/eds-icon-search.entry.js +14 -0
  848. package/dist/esm/eds-icon-success.entry.js +14 -0
  849. package/dist/esm/eds-icon-twitter.entry.js +14 -0
  850. package/dist/esm/eds-icon-user.entry.js +14 -0
  851. package/dist/esm/eds-icon-wrapper.entry.js +36 -0
  852. package/dist/esm/eds-icon-youtube.entry.js +14 -0
  853. package/dist/esm/eds-img.entry.js +53 -0
  854. package/dist/esm/eds-input-field.entry.js +68 -0
  855. package/dist/esm/eds-input-footer.entry.js +17 -0
  856. package/dist/esm/eds-input-label.entry.js +16 -0
  857. package/dist/esm/eds-input-range.entry.js +35 -0
  858. package/dist/esm/eds-input-search.entry.js +37 -0
  859. package/dist/esm/eds-input-select.entry.js +26 -0
  860. package/dist/esm/eds-input.entry.js +64 -0
  861. package/dist/esm/eds-link.entry.js +207 -0
  862. package/dist/esm/eds-login.entry.js +68 -0
  863. package/dist/esm/eds-logo.entry.js +72 -0
  864. package/dist/esm/eds-matomo-notice.entry.js +105 -0
  865. package/dist/esm/eds-modal.entry.js +42 -0
  866. package/dist/esm/eds-navigator.entry.js +39 -0
  867. package/dist/esm/eds-pagination.entry.js +207 -0
  868. package/dist/esm/eds-progress-bar.entry.js +24 -0
  869. package/dist/esm/eds-rating.entry.js +53 -0
  870. package/dist/esm/eds-section-core.entry.js +19 -0
  871. package/dist/esm/eds-section-core_2.entry.js +54 -0
  872. package/dist/esm/eds-section-heading.entry.js +37 -0
  873. package/dist/esm/eds-social-networks.entry.js +61 -0
  874. package/dist/esm/eds-svg-repository.entry.js +28 -0
  875. package/dist/esm/eds-tab.entry.js +36 -0
  876. package/dist/esm/eds-table.entry.js +138 -0
  877. package/dist/esm/eds-tabs-content.entry.js +129 -0
  878. package/dist/esm/eds-tabs.entry.js +118 -0
  879. package/dist/esm/eds-tag.entry.js +40 -0
  880. package/dist/esm/eds-toast-manager.entry.js +41 -0
  881. package/dist/esm/eds-toast.entry.js +49 -0
  882. package/dist/esm/eds-tooltip.entry.js +95 -0
  883. package/dist/esm/eds-user-modal.entry.js +43 -0
  884. package/dist/esm/eds-user.entry.js +86 -0
  885. package/dist/esm/eu-9ddde93a.js +30 -0
  886. package/dist/esm/facebook-9cb5c17f.js +14 -0
  887. package/dist/esm/gradient-primary-palette.entry.js +41 -0
  888. package/dist/esm/gradient-secondary-palette.entry.js +75 -0
  889. package/dist/esm/gradient-support-palette.entry.js +59 -0
  890. package/dist/esm/incorrect-use-of-colors.entry.js +46 -0
  891. package/dist/esm/index-144c9ae8.js +46 -0
  892. package/dist/esm/index-360dc790.js +401 -0
  893. package/dist/esm/index-39c58238.js +46 -0
  894. package/dist/esm/index-a9afa43f.js +1802 -0
  895. package/dist/esm/index-b384416e.js +3416 -0
  896. package/dist/esm/index-f1426055.js +2121 -0
  897. package/dist/esm/index.js +1 -0
  898. package/dist/esm/keycloak-13893af6.js +1893 -0
  899. package/dist/esm/keycloak-b647d452.js +1903 -0
  900. package/dist/esm/linkedin-e8650abb.js +28 -0
  901. package/dist/esm/loader-66341740.js +33 -0
  902. package/dist/esm/loader.js +11 -0
  903. package/dist/esm/logo-color-7f1fd803.js +115 -0
  904. package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
  905. package/dist/esm/logo-space.entry.js +16 -0
  906. package/dist/esm/logo-variations-horizontal.entry.js +26 -0
  907. package/dist/esm/logo-variations-vertical.entry.js +26 -0
  908. package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
  909. package/dist/esm/logo-wrong-usage.entry.js +16 -0
  910. package/dist/esm/mastodon-3703ec61.js +14 -0
  911. package/dist/esm/menu-340ea948.js +11 -0
  912. package/dist/esm/mono-53f70232.js +11 -0
  913. package/dist/esm/more-4449d549.js +13 -0
  914. package/dist/esm/search-fbcd79c2.js +12 -0
  915. package/dist/esm/shadow-css-423dab2c.js +332 -0
  916. package/dist/esm/success-443809da.js +18 -0
  917. package/dist/esm/toastManager-b716afd8.js +31 -0
  918. package/dist/esm/token-list.entry.js +249 -0
  919. package/dist/esm/token-list_3.entry.js +294 -0
  920. package/dist/esm/token-radii.entry.js +21 -0
  921. package/dist/esm/token-ratios.entry.js +25 -0
  922. package/dist/esm/token-shadows.entry.js +30 -0
  923. package/dist/esm/token-spacing.entry.js +12 -0
  924. package/dist/esm/token-typography.entry.js +226 -0
  925. package/dist/esm/twitter-ac21b505.js +14 -0
  926. package/dist/esm/user-71ebdc15.js +16 -0
  927. package/dist/esm/youtube-efbfbdc4.js +14 -0
  928. package/dist/hydrate/index.d.ts +242 -0
  929. package/dist/hydrate/index.js +31353 -0
  930. package/dist/hydrate/index.mjs +31345 -0
  931. package/dist/hydrate/package.json +12 -0
  932. package/dist/index.cjs.js +1 -0
  933. package/dist/index.js +1 -0
  934. package/dist/stencil.config.js +64 -0
  935. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/components/stencil.config.d.ts +2 -0
  936. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/index.d.ts +1 -0
  937. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +46 -0
  938. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +3 -0
  939. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/analytics.d.ts +23 -0
  940. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/color.d.ts +8 -0
  941. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +30 -0
  942. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +8 -0
  943. package/dist/types/components/eds-accordion/eds-accordion.d.ts +81 -0
  944. package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +61 -0
  945. package/dist/types/components/eds-alert/eds-alert.d.ts +43 -0
  946. package/dist/types/components/eds-alert/eds-alert.stories.d.ts +46 -0
  947. package/dist/types/components/eds-avatar/eds-avatar.d.ts +57 -0
  948. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +63 -0
  949. package/dist/types/components/eds-block-break/eds-block-break.d.ts +15 -0
  950. package/dist/types/components/eds-breadcrump/eds-breadcrumb.stories.d.ts +29 -0
  951. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +97 -0
  952. package/dist/types/components/eds-button/eds-button.d.ts +75 -0
  953. package/dist/types/components/eds-button/eds-button.stories.d.ts +62 -0
  954. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +23 -0
  955. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.d.ts +32 -0
  956. package/dist/types/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.d.ts +15 -0
  957. package/dist/types/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.d.ts +38 -0
  958. package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +23 -0
  959. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +87 -0
  960. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.stories.d.ts +94 -0
  961. package/dist/types/components/eds-cards/eds-card-project/eds-card-project.d.ts +54 -0
  962. package/dist/types/components/eds-cards/eds-card-tool/eds-card-tool.d.ts +79 -0
  963. package/dist/types/components/eds-code-block/eds-code-block.d.ts +15 -0
  964. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +120 -0
  965. package/dist/types/components/eds-form/eds-form.d.ts +112 -0
  966. package/dist/types/components/eds-form/eds-form.stories.d.ts +47 -0
  967. package/dist/types/components/eds-frame/eds-frame.d.ts +42 -0
  968. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +45 -0
  969. package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +28 -0
  970. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.d.ts +10 -0
  971. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.d.ts +10 -0
  972. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.d.ts +10 -0
  973. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.d.ts +10 -0
  974. package/dist/types/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.d.ts +10 -0
  975. package/dist/types/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.d.ts +10 -0
  976. package/dist/types/components/eds-icons/eds-icon-close/eds-icon-close.d.ts +10 -0
  977. package/dist/types/components/eds-icons/eds-icon-copy/eds-icon-copy.d.ts +10 -0
  978. package/dist/types/components/eds-icons/eds-icon-eu/eds-icon-eu.d.ts +10 -0
  979. package/dist/types/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.d.ts +10 -0
  980. package/dist/types/components/eds-icons/eds-icon-loader/eds-icon-loader.d.ts +10 -0
  981. package/dist/types/components/eds-icons/eds-icon-menu/eds-icon-menu.d.ts +10 -0
  982. package/dist/types/components/eds-icons/eds-icon-more/eds-icon-more.d.ts +10 -0
  983. package/dist/types/components/eds-icons/eds-icon-search/eds-icon-search.d.ts +10 -0
  984. package/dist/types/components/eds-icons/eds-icon-success/eds-icon-success.d.ts +10 -0
  985. package/dist/types/components/eds-icons/eds-icon-user/eds-icon-user.d.ts +10 -0
  986. package/dist/types/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.d.ts +10 -0
  987. package/dist/types/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.d.ts +10 -0
  988. package/dist/types/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.d.ts +10 -0
  989. package/dist/types/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.d.ts +10 -0
  990. package/dist/types/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.d.ts +10 -0
  991. package/dist/types/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.d.ts +10 -0
  992. package/dist/types/components/eds-img/eds-img.d.ts +70 -0
  993. package/dist/types/components/eds-img/eds-img.stories.d.ts +76 -0
  994. package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +35 -0
  995. package/dist/types/components/eds-input-elements/eds-input-footer/eds-input-footer.d.ts +14 -0
  996. package/dist/types/components/eds-input-elements/eds-input-label/eds-input-label.d.ts +10 -0
  997. package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +25 -0
  998. package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +25 -0
  999. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +21 -0
  1000. package/dist/types/components/eds-input-field/eds-input-field.d.ts +98 -0
  1001. package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +92 -0
  1002. package/dist/types/components/eds-link/eds-link.d.ts +83 -0
  1003. package/dist/types/components/eds-link/eds-link.stories.d.ts +74 -0
  1004. package/dist/types/components/eds-logo/eds-logo.d.ts +54 -0
  1005. package/dist/types/components/eds-logo/eds-logo.stories.d.ts +25 -0
  1006. package/dist/types/components/eds-modal/eds-modal.d.ts +44 -0
  1007. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +14 -0
  1008. package/dist/types/components/eds-navigator/eds-navigator.d.ts +42 -0
  1009. package/dist/types/components/eds-navigator/eds-navigator.stories.d.ts +46 -0
  1010. package/dist/types/components/eds-pagination/eds-pagination.d.ts +98 -0
  1011. package/dist/types/components/eds-pagination/eds-pagination.stories.d.ts +108 -0
  1012. package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +12 -0
  1013. package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +24 -0
  1014. package/dist/types/components/eds-rating/eds-rating.d.ts +36 -0
  1015. package/dist/types/components/eds-rating/eds-rating.stories.d.ts +51 -0
  1016. package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +28 -0
  1017. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +26 -0
  1018. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +38 -0
  1019. package/dist/types/components/eds-tab/eds-tab.d.ts +15 -0
  1020. package/dist/types/components/eds-table/eds-table.d.ts +66 -0
  1021. package/dist/types/components/eds-table/eds-table.stories.d.ts +147 -0
  1022. package/dist/types/components/eds-tag/eds-tag.d.ts +34 -0
  1023. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +28 -0
  1024. package/dist/types/components/eds-toast/eds-toast.d.ts +28 -0
  1025. package/dist/types/components/eds-toast/eds-toast.stories.d.ts +33 -0
  1026. package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +47 -0
  1027. package/dist/types/components/eds-tooltip/eds-tooltip.stories.d.ts +19 -0
  1028. package/dist/types/components.d.ts +4918 -0
  1029. package/dist/types/eds-docs-ui/colors/color-palette/primary.d.ts +7 -0
  1030. package/dist/types/eds-docs-ui/colors/color-palette/secondary.d.ts +8 -0
  1031. package/dist/types/eds-docs-ui/colors/color-palette/support.d.ts +7 -0
  1032. package/dist/types/eds-docs-ui/colors/gradient-palette/primary.d.ts +7 -0
  1033. package/dist/types/eds-docs-ui/colors/gradient-palette/secondary.d.ts +7 -0
  1034. package/dist/types/eds-docs-ui/colors/gradient-palette/support.d.ts +7 -0
  1035. package/dist/types/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.d.ts +10 -0
  1036. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +10 -0
  1037. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.d.ts +11 -0
  1038. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.stories.d.ts +25 -0
  1039. package/dist/types/eds-docs-ui/design-tokens/token-radii/token-radii.d.ts +6 -0
  1040. package/dist/types/eds-docs-ui/design-tokens/token-ratios/token-ratios.d.ts +6 -0
  1041. package/dist/types/eds-docs-ui/design-tokens/token-shadows/token-shadows.d.ts +6 -0
  1042. package/dist/types/eds-docs-ui/design-tokens/token-spacing/token-spacing.d.ts +6 -0
  1043. package/dist/types/eds-docs-ui/design-tokens/token-typography/token-typography.d.ts +6 -0
  1044. package/dist/types/eds-docs-ui/eds-components-section/eds-components-section.d.ts +9 -0
  1045. package/dist/types/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.d.ts +9 -0
  1046. package/dist/types/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.d.ts +9 -0
  1047. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +7 -0
  1048. package/dist/types/eds-docs-ui/functional/angular.d.ts +2 -0
  1049. package/dist/types/eds-docs-ui/functional/installation.d.ts +2 -0
  1050. package/dist/types/eds-docs-ui/functional/overview.d.ts +2 -0
  1051. package/dist/types/eds-docs-ui/functional/react.d.ts +2 -0
  1052. package/dist/types/eds-docs-ui/functional/usage.d.ts +2 -0
  1053. package/dist/types/eds-docs-ui/functional/vue.d.ts +2 -0
  1054. package/dist/types/eds-docs-ui/logo/logo-space/logo-space.d.ts +6 -0
  1055. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +12 -0
  1056. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +12 -0
  1057. package/dist/types/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.d.ts +6 -0
  1058. package/dist/types/index.d.ts +1 -0
  1059. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +43 -0
  1060. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +33 -0
  1061. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +74 -0
  1062. package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +43 -0
  1063. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +57 -0
  1064. package/dist/types/shared-ui/eds-header/eds-header.d.ts +98 -0
  1065. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +53 -0
  1066. package/dist/types/shared-ui/eds-login/eds-login.d.ts +50 -0
  1067. package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +33 -0
  1068. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +77 -0
  1069. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +30 -0
  1070. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +25 -0
  1071. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +43 -0
  1072. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +14 -0
  1073. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.d.ts +36 -0
  1074. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.stories.d.ts +16 -0
  1075. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.d.ts +19 -0
  1076. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.stories.d.ts +12 -0
  1077. package/dist/types/shared-ui/eds-user/eds-user.d.ts +81 -0
  1078. package/dist/types/shared-ui/eds-user-modal/eds-user-modal.d.ts +47 -0
  1079. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  1080. package/dist/types/types/global.d.ts +10 -0
  1081. package/dist/types/utils/keycloak.d.ts +31 -0
  1082. package/dist/types/utils/toastManager.d.ts +15 -0
  1083. package/loader/cdn.js +1 -0
  1084. package/loader/index.cjs.js +1 -0
  1085. package/loader/index.d.ts +24 -0
  1086. package/loader/index.es2017.js +1 -0
  1087. package/loader/index.js +2 -0
  1088. package/loader/package.json +11 -0
  1089. package/package.json +20 -0
@@ -0,0 +1,2493 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$1 } from './eds-icon-wrapper2.js';
3
+
4
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+
6
+ function getDefaultExportFromCjs (x) {
7
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
+ }
9
+
10
+ function getDefaultExportFromNamespaceIfPresent (n) {
11
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
12
+ }
13
+
14
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
15
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
16
+ }
17
+
18
+ function getAugmentedNamespace(n) {
19
+ if (n.__esModule) return n;
20
+ var a = Object.defineProperty({}, '__esModule', {value: true});
21
+ Object.keys(n).forEach(function (k) {
22
+ var d = Object.getOwnPropertyDescriptor(n, k);
23
+ Object.defineProperty(a, k, d.get ? d : {
24
+ enumerable: true,
25
+ get: function () {
26
+ return n[k];
27
+ }
28
+ });
29
+ });
30
+ return a;
31
+ }
32
+
33
+ function commonjsRequire (path) {
34
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
35
+ }
36
+
37
+ var prism = {exports: {}};
38
+
39
+ (function (module) {
40
+ /* **********************************************
41
+ Begin prism-core.js
42
+ ********************************************** */
43
+
44
+ /// <reference lib="WebWorker"/>
45
+
46
+ var _self = (typeof window !== 'undefined')
47
+ ? window // if in browser
48
+ : (
49
+ (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
50
+ ? self // if in worker
51
+ : {} // if in node js
52
+ );
53
+
54
+ /**
55
+ * Prism: Lightweight, robust, elegant syntax highlighting
56
+ *
57
+ * @license MIT <https://opensource.org/licenses/MIT>
58
+ * @author Lea Verou <https://lea.verou.me>
59
+ * @namespace
60
+ * @public
61
+ */
62
+ var Prism = (function (_self) {
63
+
64
+ // Private helper vars
65
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
66
+ var uniqueId = 0;
67
+
68
+ // The grammar object for plaintext
69
+ var plainTextGrammar = {};
70
+
71
+
72
+ var _ = {
73
+ /**
74
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
75
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
76
+ * additional languages or plugins yourself.
77
+ *
78
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
79
+ *
80
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
81
+ * empty Prism object into the global scope before loading the Prism script like this:
82
+ *
83
+ * ```js
84
+ * window.Prism = window.Prism || {};
85
+ * Prism.manual = true;
86
+ * // add a new <script> to load Prism's script
87
+ * ```
88
+ *
89
+ * @default false
90
+ * @type {boolean}
91
+ * @memberof Prism
92
+ * @public
93
+ */
94
+ manual: _self.Prism && _self.Prism.manual,
95
+ /**
96
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
97
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
98
+ * own worker, you don't want it to do this.
99
+ *
100
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
101
+ *
102
+ * You obviously have to change this value before Prism executes. To do this, you can add an
103
+ * empty Prism object into the global scope before loading the Prism script like this:
104
+ *
105
+ * ```js
106
+ * window.Prism = window.Prism || {};
107
+ * Prism.disableWorkerMessageHandler = true;
108
+ * // Load Prism's script
109
+ * ```
110
+ *
111
+ * @default false
112
+ * @type {boolean}
113
+ * @memberof Prism
114
+ * @public
115
+ */
116
+ disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
117
+
118
+ /**
119
+ * A namespace for utility methods.
120
+ *
121
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
122
+ * change or disappear at any time.
123
+ *
124
+ * @namespace
125
+ * @memberof Prism
126
+ */
127
+ util: {
128
+ encode: function encode(tokens) {
129
+ if (tokens instanceof Token) {
130
+ return new Token(tokens.type, encode(tokens.content), tokens.alias);
131
+ } else if (Array.isArray(tokens)) {
132
+ return tokens.map(encode);
133
+ } else {
134
+ return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
135
+ }
136
+ },
137
+
138
+ /**
139
+ * Returns the name of the type of the given value.
140
+ *
141
+ * @param {any} o
142
+ * @returns {string}
143
+ * @example
144
+ * type(null) === 'Null'
145
+ * type(undefined) === 'Undefined'
146
+ * type(123) === 'Number'
147
+ * type('foo') === 'String'
148
+ * type(true) === 'Boolean'
149
+ * type([1, 2]) === 'Array'
150
+ * type({}) === 'Object'
151
+ * type(String) === 'Function'
152
+ * type(/abc+/) === 'RegExp'
153
+ */
154
+ type: function (o) {
155
+ return Object.prototype.toString.call(o).slice(8, -1);
156
+ },
157
+
158
+ /**
159
+ * Returns a unique number for the given object. Later calls will still return the same number.
160
+ *
161
+ * @param {Object} obj
162
+ * @returns {number}
163
+ */
164
+ objId: function (obj) {
165
+ if (!obj['__id']) {
166
+ Object.defineProperty(obj, '__id', { value: ++uniqueId });
167
+ }
168
+ return obj['__id'];
169
+ },
170
+
171
+ /**
172
+ * Creates a deep clone of the given object.
173
+ *
174
+ * The main intended use of this function is to clone language definitions.
175
+ *
176
+ * @param {T} o
177
+ * @param {Record<number, any>} [visited]
178
+ * @returns {T}
179
+ * @template T
180
+ */
181
+ clone: function deepClone(o, visited) {
182
+ visited = visited || {};
183
+
184
+ var clone; var id;
185
+ switch (_.util.type(o)) {
186
+ case 'Object':
187
+ id = _.util.objId(o);
188
+ if (visited[id]) {
189
+ return visited[id];
190
+ }
191
+ clone = /** @type {Record<string, any>} */ ({});
192
+ visited[id] = clone;
193
+
194
+ for (var key in o) {
195
+ if (o.hasOwnProperty(key)) {
196
+ clone[key] = deepClone(o[key], visited);
197
+ }
198
+ }
199
+
200
+ return /** @type {any} */ (clone);
201
+
202
+ case 'Array':
203
+ id = _.util.objId(o);
204
+ if (visited[id]) {
205
+ return visited[id];
206
+ }
207
+ clone = [];
208
+ visited[id] = clone;
209
+
210
+ (/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {
211
+ clone[i] = deepClone(v, visited);
212
+ });
213
+
214
+ return /** @type {any} */ (clone);
215
+
216
+ default:
217
+ return o;
218
+ }
219
+ },
220
+
221
+ /**
222
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
223
+ *
224
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
225
+ *
226
+ * @param {Element} element
227
+ * @returns {string}
228
+ */
229
+ getLanguage: function (element) {
230
+ while (element) {
231
+ var m = lang.exec(element.className);
232
+ if (m) {
233
+ return m[1].toLowerCase();
234
+ }
235
+ element = element.parentElement;
236
+ }
237
+ return 'none';
238
+ },
239
+
240
+ /**
241
+ * Sets the Prism `language-xxxx` class of the given element.
242
+ *
243
+ * @param {Element} element
244
+ * @param {string} language
245
+ * @returns {void}
246
+ */
247
+ setLanguage: function (element, language) {
248
+ // remove all `language-xxxx` classes
249
+ // (this might leave behind a leading space)
250
+ element.className = element.className.replace(RegExp(lang, 'gi'), '');
251
+
252
+ // add the new `language-xxxx` class
253
+ // (using `classList` will automatically clean up spaces for us)
254
+ element.classList.add('language-' + language);
255
+ },
256
+
257
+ /**
258
+ * Returns the script element that is currently executing.
259
+ *
260
+ * This does __not__ work for line script element.
261
+ *
262
+ * @returns {HTMLScriptElement | null}
263
+ */
264
+ currentScript: function () {
265
+ if (typeof document === 'undefined') {
266
+ return null;
267
+ }
268
+ if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
269
+ return /** @type {any} */ (document.currentScript);
270
+ }
271
+
272
+ // IE11 workaround
273
+ // we'll get the src of the current script by parsing IE11's error stack trace
274
+ // this will not work for inline scripts
275
+
276
+ try {
277
+ throw new Error();
278
+ } catch (err) {
279
+ // Get file src url from stack. Specifically works with the format of stack traces in IE.
280
+ // A stack will look like this:
281
+ //
282
+ // Error
283
+ // at _.util.currentScript (http://localhost/components/prism-core.js:119:5)
284
+ // at Global code (http://localhost/components/prism-core.js:606:1)
285
+
286
+ var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
287
+ if (src) {
288
+ var scripts = document.getElementsByTagName('script');
289
+ for (var i in scripts) {
290
+ if (scripts[i].src == src) {
291
+ return scripts[i];
292
+ }
293
+ }
294
+ }
295
+ return null;
296
+ }
297
+ },
298
+
299
+ /**
300
+ * Returns whether a given class is active for `element`.
301
+ *
302
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
303
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
304
+ * given class is just the given class with a `no-` prefix.
305
+ *
306
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
307
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
308
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
309
+ *
310
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
311
+ * version of it, the class is considered active.
312
+ *
313
+ * @param {Element} element
314
+ * @param {string} className
315
+ * @param {boolean} [defaultActivation=false]
316
+ * @returns {boolean}
317
+ */
318
+ isActive: function (element, className, defaultActivation) {
319
+ var no = 'no-' + className;
320
+
321
+ while (element) {
322
+ var classList = element.classList;
323
+ if (classList.contains(className)) {
324
+ return true;
325
+ }
326
+ if (classList.contains(no)) {
327
+ return false;
328
+ }
329
+ element = element.parentElement;
330
+ }
331
+ return !!defaultActivation;
332
+ }
333
+ },
334
+
335
+ /**
336
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
337
+ *
338
+ * @namespace
339
+ * @memberof Prism
340
+ * @public
341
+ */
342
+ languages: {
343
+ /**
344
+ * The grammar for plain, unformatted text.
345
+ */
346
+ plain: plainTextGrammar,
347
+ plaintext: plainTextGrammar,
348
+ text: plainTextGrammar,
349
+ txt: plainTextGrammar,
350
+
351
+ /**
352
+ * Creates a deep copy of the language with the given id and appends the given tokens.
353
+ *
354
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
355
+ * will be overwritten at its original position.
356
+ *
357
+ * ## Best practices
358
+ *
359
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
360
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
361
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
362
+ *
363
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
364
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
365
+ *
366
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
367
+ * @param {Grammar} redef The new tokens to append.
368
+ * @returns {Grammar} The new language created.
369
+ * @public
370
+ * @example
371
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
372
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
373
+ * // at its original position
374
+ * 'comment': { ... },
375
+ * // CSS doesn't have a 'color' token, so this token will be appended
376
+ * 'color': /\b(?:red|green|blue)\b/
377
+ * });
378
+ */
379
+ extend: function (id, redef) {
380
+ var lang = _.util.clone(_.languages[id]);
381
+
382
+ for (var key in redef) {
383
+ lang[key] = redef[key];
384
+ }
385
+
386
+ return lang;
387
+ },
388
+
389
+ /**
390
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
391
+ *
392
+ * ## Usage
393
+ *
394
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
395
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
396
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
397
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
398
+ * this:
399
+ *
400
+ * ```js
401
+ * Prism.languages.markup.style = {
402
+ * // token
403
+ * };
404
+ * ```
405
+ *
406
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
407
+ * before existing tokens. For the CSS example above, you would use it like this:
408
+ *
409
+ * ```js
410
+ * Prism.languages.insertBefore('markup', 'cdata', {
411
+ * 'style': {
412
+ * // token
413
+ * }
414
+ * });
415
+ * ```
416
+ *
417
+ * ## Special cases
418
+ *
419
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
420
+ * will be ignored.
421
+ *
422
+ * This behavior can be used to insert tokens after `before`:
423
+ *
424
+ * ```js
425
+ * Prism.languages.insertBefore('markup', 'comment', {
426
+ * 'comment': Prism.languages.markup.comment,
427
+ * // tokens after 'comment'
428
+ * });
429
+ * ```
430
+ *
431
+ * ## Limitations
432
+ *
433
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
434
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
435
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
436
+ * deleting properties which is necessary to insert at arbitrary positions.
437
+ *
438
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
439
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
440
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
441
+ *
442
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
443
+ * you hold the target object in a variable, then the value of the variable will not change.
444
+ *
445
+ * ```js
446
+ * var oldMarkup = Prism.languages.markup;
447
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
448
+ *
449
+ * assert(oldMarkup !== Prism.languages.markup);
450
+ * assert(newMarkup === Prism.languages.markup);
451
+ * ```
452
+ *
453
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
454
+ * object to be modified.
455
+ * @param {string} before The key to insert before.
456
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
457
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
458
+ * object to be modified.
459
+ *
460
+ * Defaults to `Prism.languages`.
461
+ * @returns {Grammar} The new grammar object.
462
+ * @public
463
+ */
464
+ insertBefore: function (inside, before, insert, root) {
465
+ root = root || /** @type {any} */ (_.languages);
466
+ var grammar = root[inside];
467
+ /** @type {Grammar} */
468
+ var ret = {};
469
+
470
+ for (var token in grammar) {
471
+ if (grammar.hasOwnProperty(token)) {
472
+
473
+ if (token == before) {
474
+ for (var newToken in insert) {
475
+ if (insert.hasOwnProperty(newToken)) {
476
+ ret[newToken] = insert[newToken];
477
+ }
478
+ }
479
+ }
480
+
481
+ // Do not insert token which also occur in insert. See #1525
482
+ if (!insert.hasOwnProperty(token)) {
483
+ ret[token] = grammar[token];
484
+ }
485
+ }
486
+ }
487
+
488
+ var old = root[inside];
489
+ root[inside] = ret;
490
+
491
+ // Update references in other language definitions
492
+ _.languages.DFS(_.languages, function (key, value) {
493
+ if (value === old && key != inside) {
494
+ this[key] = ret;
495
+ }
496
+ });
497
+
498
+ return ret;
499
+ },
500
+
501
+ // Traverse a language definition with Depth First Search
502
+ DFS: function DFS(o, callback, type, visited) {
503
+ visited = visited || {};
504
+
505
+ var objId = _.util.objId;
506
+
507
+ for (var i in o) {
508
+ if (o.hasOwnProperty(i)) {
509
+ callback.call(o, i, o[i], type || i);
510
+
511
+ var property = o[i];
512
+ var propertyType = _.util.type(property);
513
+
514
+ if (propertyType === 'Object' && !visited[objId(property)]) {
515
+ visited[objId(property)] = true;
516
+ DFS(property, callback, null, visited);
517
+ } else if (propertyType === 'Array' && !visited[objId(property)]) {
518
+ visited[objId(property)] = true;
519
+ DFS(property, callback, i, visited);
520
+ }
521
+ }
522
+ }
523
+ }
524
+ },
525
+
526
+ plugins: {},
527
+
528
+ /**
529
+ * This is the most high-level function in Prism’s API.
530
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
531
+ * each one of them.
532
+ *
533
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
534
+ *
535
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
536
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
537
+ * @memberof Prism
538
+ * @public
539
+ */
540
+ highlightAll: function (async, callback) {
541
+ _.highlightAllUnder(document, async, callback);
542
+ },
543
+
544
+ /**
545
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
546
+ * {@link Prism.highlightElement} on each one of them.
547
+ *
548
+ * The following hooks will be run:
549
+ * 1. `before-highlightall`
550
+ * 2. `before-all-elements-highlight`
551
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
552
+ *
553
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
554
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
555
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
556
+ * @memberof Prism
557
+ * @public
558
+ */
559
+ highlightAllUnder: function (container, async, callback) {
560
+ var env = {
561
+ callback: callback,
562
+ container: container,
563
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
564
+ };
565
+
566
+ _.hooks.run('before-highlightall', env);
567
+
568
+ env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
569
+
570
+ _.hooks.run('before-all-elements-highlight', env);
571
+
572
+ for (var i = 0, element; (element = env.elements[i++]);) {
573
+ _.highlightElement(element, async === true, env.callback);
574
+ }
575
+ },
576
+
577
+ /**
578
+ * Highlights the code inside a single element.
579
+ *
580
+ * The following hooks will be run:
581
+ * 1. `before-sanity-check`
582
+ * 2. `before-highlight`
583
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
584
+ * 4. `before-insert`
585
+ * 5. `after-highlight`
586
+ * 6. `complete`
587
+ *
588
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
589
+ * the element's language.
590
+ *
591
+ * @param {Element} element The element containing the code.
592
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
593
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
594
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
595
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
596
+ *
597
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
598
+ * asynchronous highlighting to work. You can build your own bundle on the
599
+ * [Download page](https://prismjs.com/download.html).
600
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
601
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
602
+ * @memberof Prism
603
+ * @public
604
+ */
605
+ highlightElement: function (element, async, callback) {
606
+ // Find language
607
+ var language = _.util.getLanguage(element);
608
+ var grammar = _.languages[language];
609
+
610
+ // Set language on the element, if not present
611
+ _.util.setLanguage(element, language);
612
+
613
+ // Set language on the parent, for styling
614
+ var parent = element.parentElement;
615
+ if (parent && parent.nodeName.toLowerCase() === 'pre') {
616
+ _.util.setLanguage(parent, language);
617
+ }
618
+
619
+ var code = element.textContent;
620
+
621
+ var env = {
622
+ element: element,
623
+ language: language,
624
+ grammar: grammar,
625
+ code: code
626
+ };
627
+
628
+ function insertHighlightedCode(highlightedCode) {
629
+ env.highlightedCode = highlightedCode;
630
+
631
+ _.hooks.run('before-insert', env);
632
+
633
+ env.element.innerHTML = env.highlightedCode;
634
+
635
+ _.hooks.run('after-highlight', env);
636
+ _.hooks.run('complete', env);
637
+ callback && callback.call(env.element);
638
+ }
639
+
640
+ _.hooks.run('before-sanity-check', env);
641
+
642
+ // plugins may change/add the parent/element
643
+ parent = env.element.parentElement;
644
+ if (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {
645
+ parent.setAttribute('tabindex', '0');
646
+ }
647
+
648
+ if (!env.code) {
649
+ _.hooks.run('complete', env);
650
+ callback && callback.call(env.element);
651
+ return;
652
+ }
653
+
654
+ _.hooks.run('before-highlight', env);
655
+
656
+ if (!env.grammar) {
657
+ insertHighlightedCode(_.util.encode(env.code));
658
+ return;
659
+ }
660
+
661
+ if (async && _self.Worker) {
662
+ var worker = new Worker(_.filename);
663
+
664
+ worker.onmessage = function (evt) {
665
+ insertHighlightedCode(evt.data);
666
+ };
667
+
668
+ worker.postMessage(JSON.stringify({
669
+ language: env.language,
670
+ code: env.code,
671
+ immediateClose: true
672
+ }));
673
+ } else {
674
+ insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
675
+ }
676
+ },
677
+
678
+ /**
679
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
680
+ * and the language definitions to use, and returns a string with the HTML produced.
681
+ *
682
+ * The following hooks will be run:
683
+ * 1. `before-tokenize`
684
+ * 2. `after-tokenize`
685
+ * 3. `wrap`: On each {@link Token}.
686
+ *
687
+ * @param {string} text A string with the code to be highlighted.
688
+ * @param {Grammar} grammar An object containing the tokens to use.
689
+ *
690
+ * Usually a language definition like `Prism.languages.markup`.
691
+ * @param {string} language The name of the language definition passed to `grammar`.
692
+ * @returns {string} The highlighted HTML.
693
+ * @memberof Prism
694
+ * @public
695
+ * @example
696
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
697
+ */
698
+ highlight: function (text, grammar, language) {
699
+ var env = {
700
+ code: text,
701
+ grammar: grammar,
702
+ language: language
703
+ };
704
+ _.hooks.run('before-tokenize', env);
705
+ if (!env.grammar) {
706
+ throw new Error('The language "' + env.language + '" has no grammar.');
707
+ }
708
+ env.tokens = _.tokenize(env.code, env.grammar);
709
+ _.hooks.run('after-tokenize', env);
710
+ return Token.stringify(_.util.encode(env.tokens), env.language);
711
+ },
712
+
713
+ /**
714
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
715
+ * and the language definitions to use, and returns an array with the tokenized code.
716
+ *
717
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
718
+ *
719
+ * This method could be useful in other contexts as well, as a very crude parser.
720
+ *
721
+ * @param {string} text A string with the code to be highlighted.
722
+ * @param {Grammar} grammar An object containing the tokens to use.
723
+ *
724
+ * Usually a language definition like `Prism.languages.markup`.
725
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
726
+ * @memberof Prism
727
+ * @public
728
+ * @example
729
+ * let code = `var foo = 0;`;
730
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
731
+ * tokens.forEach(token => {
732
+ * if (token instanceof Prism.Token && token.type === 'number') {
733
+ * console.log(`Found numeric literal: ${token.content}`);
734
+ * }
735
+ * });
736
+ */
737
+ tokenize: function (text, grammar) {
738
+ var rest = grammar.rest;
739
+ if (rest) {
740
+ for (var token in rest) {
741
+ grammar[token] = rest[token];
742
+ }
743
+
744
+ delete grammar.rest;
745
+ }
746
+
747
+ var tokenList = new LinkedList();
748
+ addAfter(tokenList, tokenList.head, text);
749
+
750
+ matchGrammar(text, tokenList, grammar, tokenList.head, 0);
751
+
752
+ return toArray(tokenList);
753
+ },
754
+
755
+ /**
756
+ * @namespace
757
+ * @memberof Prism
758
+ * @public
759
+ */
760
+ hooks: {
761
+ all: {},
762
+
763
+ /**
764
+ * Adds the given callback to the list of callbacks for the given hook.
765
+ *
766
+ * The callback will be invoked when the hook it is registered for is run.
767
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
768
+ *
769
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
770
+ *
771
+ * @param {string} name The name of the hook.
772
+ * @param {HookCallback} callback The callback function which is given environment variables.
773
+ * @public
774
+ */
775
+ add: function (name, callback) {
776
+ var hooks = _.hooks.all;
777
+
778
+ hooks[name] = hooks[name] || [];
779
+
780
+ hooks[name].push(callback);
781
+ },
782
+
783
+ /**
784
+ * Runs a hook invoking all registered callbacks with the given environment variables.
785
+ *
786
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
787
+ *
788
+ * @param {string} name The name of the hook.
789
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
790
+ * @public
791
+ */
792
+ run: function (name, env) {
793
+ var callbacks = _.hooks.all[name];
794
+
795
+ if (!callbacks || !callbacks.length) {
796
+ return;
797
+ }
798
+
799
+ for (var i = 0, callback; (callback = callbacks[i++]);) {
800
+ callback(env);
801
+ }
802
+ }
803
+ },
804
+
805
+ Token: Token
806
+ };
807
+ _self.Prism = _;
808
+
809
+
810
+ // Typescript note:
811
+ // The following can be used to import the Token type in JSDoc:
812
+ //
813
+ // @typedef {InstanceType<import("./prism-core")["Token"]>} Token
814
+
815
+ /**
816
+ * Creates a new token.
817
+ *
818
+ * @param {string} type See {@link Token#type type}
819
+ * @param {string | TokenStream} content See {@link Token#content content}
820
+ * @param {string|string[]} [alias] The alias(es) of the token.
821
+ * @param {string} [matchedStr=""] A copy of the full string this token was created from.
822
+ * @class
823
+ * @global
824
+ * @public
825
+ */
826
+ function Token(type, content, alias, matchedStr) {
827
+ /**
828
+ * The type of the token.
829
+ *
830
+ * This is usually the key of a pattern in a {@link Grammar}.
831
+ *
832
+ * @type {string}
833
+ * @see GrammarToken
834
+ * @public
835
+ */
836
+ this.type = type;
837
+ /**
838
+ * The strings or tokens contained by this token.
839
+ *
840
+ * This will be a token stream if the pattern matched also defined an `inside` grammar.
841
+ *
842
+ * @type {string | TokenStream}
843
+ * @public
844
+ */
845
+ this.content = content;
846
+ /**
847
+ * The alias(es) of the token.
848
+ *
849
+ * @type {string|string[]}
850
+ * @see GrammarToken
851
+ * @public
852
+ */
853
+ this.alias = alias;
854
+ // Copy of the full string this token was created from
855
+ this.length = (matchedStr || '').length | 0;
856
+ }
857
+
858
+ /**
859
+ * A token stream is an array of strings and {@link Token Token} objects.
860
+ *
861
+ * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process
862
+ * them.
863
+ *
864
+ * 1. No adjacent strings.
865
+ * 2. No empty strings.
866
+ *
867
+ * The only exception here is the token stream that only contains the empty string and nothing else.
868
+ *
869
+ * @typedef {Array<string | Token>} TokenStream
870
+ * @global
871
+ * @public
872
+ */
873
+
874
+ /**
875
+ * Converts the given token or token stream to an HTML representation.
876
+ *
877
+ * The following hooks will be run:
878
+ * 1. `wrap`: On each {@link Token}.
879
+ *
880
+ * @param {string | Token | TokenStream} o The token or token stream to be converted.
881
+ * @param {string} language The name of current language.
882
+ * @returns {string} The HTML representation of the token or token stream.
883
+ * @memberof Token
884
+ * @static
885
+ */
886
+ Token.stringify = function stringify(o, language) {
887
+ if (typeof o == 'string') {
888
+ return o;
889
+ }
890
+ if (Array.isArray(o)) {
891
+ var s = '';
892
+ o.forEach(function (e) {
893
+ s += stringify(e, language);
894
+ });
895
+ return s;
896
+ }
897
+
898
+ var env = {
899
+ type: o.type,
900
+ content: stringify(o.content, language),
901
+ tag: 'span',
902
+ classes: ['token', o.type],
903
+ attributes: {},
904
+ language: language
905
+ };
906
+
907
+ var aliases = o.alias;
908
+ if (aliases) {
909
+ if (Array.isArray(aliases)) {
910
+ Array.prototype.push.apply(env.classes, aliases);
911
+ } else {
912
+ env.classes.push(aliases);
913
+ }
914
+ }
915
+
916
+ _.hooks.run('wrap', env);
917
+
918
+ var attributes = '';
919
+ for (var name in env.attributes) {
920
+ attributes += ' ' + name + '="' + (env.attributes[name] || '').replace(/"/g, '&quot;') + '"';
921
+ }
922
+
923
+ return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + attributes + '>' + env.content + '</' + env.tag + '>';
924
+ };
925
+
926
+ /**
927
+ * @param {RegExp} pattern
928
+ * @param {number} pos
929
+ * @param {string} text
930
+ * @param {boolean} lookbehind
931
+ * @returns {RegExpExecArray | null}
932
+ */
933
+ function matchPattern(pattern, pos, text, lookbehind) {
934
+ pattern.lastIndex = pos;
935
+ var match = pattern.exec(text);
936
+ if (match && lookbehind && match[1]) {
937
+ // change the match to remove the text matched by the Prism lookbehind group
938
+ var lookbehindLength = match[1].length;
939
+ match.index += lookbehindLength;
940
+ match[0] = match[0].slice(lookbehindLength);
941
+ }
942
+ return match;
943
+ }
944
+
945
+ /**
946
+ * @param {string} text
947
+ * @param {LinkedList<string | Token>} tokenList
948
+ * @param {any} grammar
949
+ * @param {LinkedListNode<string | Token>} startNode
950
+ * @param {number} startPos
951
+ * @param {RematchOptions} [rematch]
952
+ * @returns {void}
953
+ * @private
954
+ *
955
+ * @typedef RematchOptions
956
+ * @property {string} cause
957
+ * @property {number} reach
958
+ */
959
+ function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
960
+ for (var token in grammar) {
961
+ if (!grammar.hasOwnProperty(token) || !grammar[token]) {
962
+ continue;
963
+ }
964
+
965
+ var patterns = grammar[token];
966
+ patterns = Array.isArray(patterns) ? patterns : [patterns];
967
+
968
+ for (var j = 0; j < patterns.length; ++j) {
969
+ if (rematch && rematch.cause == token + ',' + j) {
970
+ return;
971
+ }
972
+
973
+ var patternObj = patterns[j];
974
+ var inside = patternObj.inside;
975
+ var lookbehind = !!patternObj.lookbehind;
976
+ var greedy = !!patternObj.greedy;
977
+ var alias = patternObj.alias;
978
+
979
+ if (greedy && !patternObj.pattern.global) {
980
+ // Without the global flag, lastIndex won't work
981
+ var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
982
+ patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');
983
+ }
984
+
985
+ /** @type {RegExp} */
986
+ var pattern = patternObj.pattern || patternObj;
987
+
988
+ for ( // iterate the token list and keep track of the current token/string position
989
+ var currentNode = startNode.next, pos = startPos;
990
+ currentNode !== tokenList.tail;
991
+ pos += currentNode.value.length, currentNode = currentNode.next
992
+ ) {
993
+
994
+ if (rematch && pos >= rematch.reach) {
995
+ break;
996
+ }
997
+
998
+ var str = currentNode.value;
999
+
1000
+ if (tokenList.length > text.length) {
1001
+ // Something went terribly wrong, ABORT, ABORT!
1002
+ return;
1003
+ }
1004
+
1005
+ if (str instanceof Token) {
1006
+ continue;
1007
+ }
1008
+
1009
+ var removeCount = 1; // this is the to parameter of removeBetween
1010
+ var match;
1011
+
1012
+ if (greedy) {
1013
+ match = matchPattern(pattern, pos, text, lookbehind);
1014
+ if (!match || match.index >= text.length) {
1015
+ break;
1016
+ }
1017
+
1018
+ var from = match.index;
1019
+ var to = match.index + match[0].length;
1020
+ var p = pos;
1021
+
1022
+ // find the node that contains the match
1023
+ p += currentNode.value.length;
1024
+ while (from >= p) {
1025
+ currentNode = currentNode.next;
1026
+ p += currentNode.value.length;
1027
+ }
1028
+ // adjust pos (and p)
1029
+ p -= currentNode.value.length;
1030
+ pos = p;
1031
+
1032
+ // the current node is a Token, then the match starts inside another Token, which is invalid
1033
+ if (currentNode.value instanceof Token) {
1034
+ continue;
1035
+ }
1036
+
1037
+ // find the last node which is affected by this match
1038
+ for (
1039
+ var k = currentNode;
1040
+ k !== tokenList.tail && (p < to || typeof k.value === 'string');
1041
+ k = k.next
1042
+ ) {
1043
+ removeCount++;
1044
+ p += k.value.length;
1045
+ }
1046
+ removeCount--;
1047
+
1048
+ // replace with the new match
1049
+ str = text.slice(pos, p);
1050
+ match.index -= pos;
1051
+ } else {
1052
+ match = matchPattern(pattern, 0, str, lookbehind);
1053
+ if (!match) {
1054
+ continue;
1055
+ }
1056
+ }
1057
+
1058
+ // eslint-disable-next-line no-redeclare
1059
+ var from = match.index;
1060
+ var matchStr = match[0];
1061
+ var before = str.slice(0, from);
1062
+ var after = str.slice(from + matchStr.length);
1063
+
1064
+ var reach = pos + str.length;
1065
+ if (rematch && reach > rematch.reach) {
1066
+ rematch.reach = reach;
1067
+ }
1068
+
1069
+ var removeFrom = currentNode.prev;
1070
+
1071
+ if (before) {
1072
+ removeFrom = addAfter(tokenList, removeFrom, before);
1073
+ pos += before.length;
1074
+ }
1075
+
1076
+ removeRange(tokenList, removeFrom, removeCount);
1077
+
1078
+ var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
1079
+ currentNode = addAfter(tokenList, removeFrom, wrapped);
1080
+
1081
+ if (after) {
1082
+ addAfter(tokenList, currentNode, after);
1083
+ }
1084
+
1085
+ if (removeCount > 1) {
1086
+ // at least one Token object was removed, so we have to do some rematching
1087
+ // this can only happen if the current pattern is greedy
1088
+
1089
+ /** @type {RematchOptions} */
1090
+ var nestedRematch = {
1091
+ cause: token + ',' + j,
1092
+ reach: reach
1093
+ };
1094
+ matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
1095
+
1096
+ // the reach might have been extended because of the rematching
1097
+ if (rematch && nestedRematch.reach > rematch.reach) {
1098
+ rematch.reach = nestedRematch.reach;
1099
+ }
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+ }
1105
+
1106
+ /**
1107
+ * @typedef LinkedListNode
1108
+ * @property {T} value
1109
+ * @property {LinkedListNode<T> | null} prev The previous node.
1110
+ * @property {LinkedListNode<T> | null} next The next node.
1111
+ * @template T
1112
+ * @private
1113
+ */
1114
+
1115
+ /**
1116
+ * @template T
1117
+ * @private
1118
+ */
1119
+ function LinkedList() {
1120
+ /** @type {LinkedListNode<T>} */
1121
+ var head = { value: null, prev: null, next: null };
1122
+ /** @type {LinkedListNode<T>} */
1123
+ var tail = { value: null, prev: head, next: null };
1124
+ head.next = tail;
1125
+
1126
+ /** @type {LinkedListNode<T>} */
1127
+ this.head = head;
1128
+ /** @type {LinkedListNode<T>} */
1129
+ this.tail = tail;
1130
+ this.length = 0;
1131
+ }
1132
+
1133
+ /**
1134
+ * Adds a new node with the given value to the list.
1135
+ *
1136
+ * @param {LinkedList<T>} list
1137
+ * @param {LinkedListNode<T>} node
1138
+ * @param {T} value
1139
+ * @returns {LinkedListNode<T>} The added node.
1140
+ * @template T
1141
+ */
1142
+ function addAfter(list, node, value) {
1143
+ // assumes that node != list.tail && values.length >= 0
1144
+ var next = node.next;
1145
+
1146
+ var newNode = { value: value, prev: node, next: next };
1147
+ node.next = newNode;
1148
+ next.prev = newNode;
1149
+ list.length++;
1150
+
1151
+ return newNode;
1152
+ }
1153
+ /**
1154
+ * Removes `count` nodes after the given node. The given node will not be removed.
1155
+ *
1156
+ * @param {LinkedList<T>} list
1157
+ * @param {LinkedListNode<T>} node
1158
+ * @param {number} count
1159
+ * @template T
1160
+ */
1161
+ function removeRange(list, node, count) {
1162
+ var next = node.next;
1163
+ for (var i = 0; i < count && next !== list.tail; i++) {
1164
+ next = next.next;
1165
+ }
1166
+ node.next = next;
1167
+ next.prev = node;
1168
+ list.length -= i;
1169
+ }
1170
+ /**
1171
+ * @param {LinkedList<T>} list
1172
+ * @returns {T[]}
1173
+ * @template T
1174
+ */
1175
+ function toArray(list) {
1176
+ var array = [];
1177
+ var node = list.head.next;
1178
+ while (node !== list.tail) {
1179
+ array.push(node.value);
1180
+ node = node.next;
1181
+ }
1182
+ return array;
1183
+ }
1184
+
1185
+
1186
+ if (!_self.document) {
1187
+ if (!_self.addEventListener) {
1188
+ // in Node.js
1189
+ return _;
1190
+ }
1191
+
1192
+ if (!_.disableWorkerMessageHandler) {
1193
+ // In worker
1194
+ _self.addEventListener('message', function (evt) {
1195
+ var message = JSON.parse(evt.data);
1196
+ var lang = message.language;
1197
+ var code = message.code;
1198
+ var immediateClose = message.immediateClose;
1199
+
1200
+ _self.postMessage(_.highlight(code, _.languages[lang], lang));
1201
+ if (immediateClose) {
1202
+ _self.close();
1203
+ }
1204
+ }, false);
1205
+ }
1206
+
1207
+ return _;
1208
+ }
1209
+
1210
+ // Get current script and highlight
1211
+ var script = _.util.currentScript();
1212
+
1213
+ if (script) {
1214
+ _.filename = script.src;
1215
+
1216
+ if (script.hasAttribute('data-manual')) {
1217
+ _.manual = true;
1218
+ }
1219
+ }
1220
+
1221
+ function highlightAutomaticallyCallback() {
1222
+ if (!_.manual) {
1223
+ _.highlightAll();
1224
+ }
1225
+ }
1226
+
1227
+ if (!_.manual) {
1228
+ // If the document state is "loading", then we'll use DOMContentLoaded.
1229
+ // If the document state is "interactive" and the prism.js script is deferred, then we'll also use the
1230
+ // DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they
1231
+ // might take longer one animation frame to execute which can create a race condition where only some plugins have
1232
+ // been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.
1233
+ // See https://github.com/PrismJS/prism/issues/2102
1234
+ var readyState = document.readyState;
1235
+ if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
1236
+ document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
1237
+ } else {
1238
+ if (window.requestAnimationFrame) {
1239
+ window.requestAnimationFrame(highlightAutomaticallyCallback);
1240
+ } else {
1241
+ window.setTimeout(highlightAutomaticallyCallback, 16);
1242
+ }
1243
+ }
1244
+ }
1245
+
1246
+ return _;
1247
+
1248
+ }(_self));
1249
+
1250
+ if ('object' !== 'undefined' && module.exports) {
1251
+ module.exports = Prism;
1252
+ }
1253
+
1254
+ // hack for components to work correctly in node.js
1255
+ if (typeof commonjsGlobal !== 'undefined') {
1256
+ commonjsGlobal.Prism = Prism;
1257
+ }
1258
+
1259
+ // some additional documentation/types
1260
+
1261
+ /**
1262
+ * The expansion of a simple `RegExp` literal to support additional properties.
1263
+ *
1264
+ * @typedef GrammarToken
1265
+ * @property {RegExp} pattern The regular expression of the token.
1266
+ * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)
1267
+ * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.
1268
+ * @property {boolean} [greedy=false] Whether the token is greedy.
1269
+ * @property {string|string[]} [alias] An optional alias or list of aliases.
1270
+ * @property {Grammar} [inside] The nested grammar of this token.
1271
+ *
1272
+ * The `inside` grammar will be used to tokenize the text value of each token of this kind.
1273
+ *
1274
+ * This can be used to make nested and even recursive language definitions.
1275
+ *
1276
+ * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into
1277
+ * each another.
1278
+ * @global
1279
+ * @public
1280
+ */
1281
+
1282
+ /**
1283
+ * @typedef Grammar
1284
+ * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}
1285
+ * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.
1286
+ * @global
1287
+ * @public
1288
+ */
1289
+
1290
+ /**
1291
+ * A function which will invoked after an element was successfully highlighted.
1292
+ *
1293
+ * @callback HighlightCallback
1294
+ * @param {Element} element The element successfully highlighted.
1295
+ * @returns {void}
1296
+ * @global
1297
+ * @public
1298
+ */
1299
+
1300
+ /**
1301
+ * @callback HookCallback
1302
+ * @param {Object<string, any>} env The environment variables of the hook.
1303
+ * @returns {void}
1304
+ * @global
1305
+ * @public
1306
+ */
1307
+
1308
+
1309
+ /* **********************************************
1310
+ Begin prism-markup.js
1311
+ ********************************************** */
1312
+
1313
+ Prism.languages.markup = {
1314
+ 'comment': {
1315
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1316
+ greedy: true
1317
+ },
1318
+ 'prolog': {
1319
+ pattern: /<\?[\s\S]+?\?>/,
1320
+ greedy: true
1321
+ },
1322
+ 'doctype': {
1323
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
1324
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1325
+ greedy: true,
1326
+ inside: {
1327
+ 'internal-subset': {
1328
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1329
+ lookbehind: true,
1330
+ greedy: true,
1331
+ inside: null // see below
1332
+ },
1333
+ 'string': {
1334
+ pattern: /"[^"]*"|'[^']*'/,
1335
+ greedy: true
1336
+ },
1337
+ 'punctuation': /^<!|>$|[[\]]/,
1338
+ 'doctype-tag': /^DOCTYPE/i,
1339
+ 'name': /[^\s<>'"]+/
1340
+ }
1341
+ },
1342
+ 'cdata': {
1343
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1344
+ greedy: true
1345
+ },
1346
+ 'tag': {
1347
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1348
+ greedy: true,
1349
+ inside: {
1350
+ 'tag': {
1351
+ pattern: /^<\/?[^\s>\/]+/,
1352
+ inside: {
1353
+ 'punctuation': /^<\/?/,
1354
+ 'namespace': /^[^\s>\/:]+:/
1355
+ }
1356
+ },
1357
+ 'special-attr': [],
1358
+ 'attr-value': {
1359
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1360
+ inside: {
1361
+ 'punctuation': [
1362
+ {
1363
+ pattern: /^=/,
1364
+ alias: 'attr-equals'
1365
+ },
1366
+ {
1367
+ pattern: /^(\s*)["']|["']$/,
1368
+ lookbehind: true
1369
+ }
1370
+ ]
1371
+ }
1372
+ },
1373
+ 'punctuation': /\/?>/,
1374
+ 'attr-name': {
1375
+ pattern: /[^\s>\/]+/,
1376
+ inside: {
1377
+ 'namespace': /^[^\s>\/:]+:/
1378
+ }
1379
+ }
1380
+
1381
+ }
1382
+ },
1383
+ 'entity': [
1384
+ {
1385
+ pattern: /&[\da-z]{1,8};/i,
1386
+ alias: 'named-entity'
1387
+ },
1388
+ /&#x?[\da-f]{1,8};/i
1389
+ ]
1390
+ };
1391
+
1392
+ Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =
1393
+ Prism.languages.markup['entity'];
1394
+ Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;
1395
+
1396
+ // Plugin to make entity title show the real entity, idea by Roman Komarov
1397
+ Prism.hooks.add('wrap', function (env) {
1398
+
1399
+ if (env.type === 'entity') {
1400
+ env.attributes['title'] = env.content.replace(/&amp;/, '&');
1401
+ }
1402
+ });
1403
+
1404
+ Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
1405
+ /**
1406
+ * Adds an inlined language to markup.
1407
+ *
1408
+ * An example of an inlined language is CSS with `<style>` tags.
1409
+ *
1410
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
1411
+ * case insensitive.
1412
+ * @param {string} lang The language key.
1413
+ * @example
1414
+ * addInlined('style', 'css');
1415
+ */
1416
+ value: function addInlined(tagName, lang) {
1417
+ var includedCdataInside = {};
1418
+ includedCdataInside['language-' + lang] = {
1419
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1420
+ lookbehind: true,
1421
+ inside: Prism.languages[lang]
1422
+ };
1423
+ includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
1424
+
1425
+ var inside = {
1426
+ 'included-cdata': {
1427
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1428
+ inside: includedCdataInside
1429
+ }
1430
+ };
1431
+ inside['language-' + lang] = {
1432
+ pattern: /[\s\S]+/,
1433
+ inside: Prism.languages[lang]
1434
+ };
1435
+
1436
+ var def = {};
1437
+ def[tagName] = {
1438
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),
1439
+ lookbehind: true,
1440
+ greedy: true,
1441
+ inside: inside
1442
+ };
1443
+
1444
+ Prism.languages.insertBefore('markup', 'cdata', def);
1445
+ }
1446
+ });
1447
+ Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', {
1448
+ /**
1449
+ * Adds an pattern to highlight languages embedded in HTML attributes.
1450
+ *
1451
+ * An example of an inlined language is CSS with `style` attributes.
1452
+ *
1453
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
1454
+ * case insensitive.
1455
+ * @param {string} lang The language key.
1456
+ * @example
1457
+ * addAttribute('style', 'css');
1458
+ */
1459
+ value: function (attrName, lang) {
1460
+ Prism.languages.markup.tag.inside['special-attr'].push({
1461
+ pattern: RegExp(
1462
+ /(^|["'\s])/.source + '(?:' + attrName + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1463
+ 'i'
1464
+ ),
1465
+ lookbehind: true,
1466
+ inside: {
1467
+ 'attr-name': /^[^\s=]+/,
1468
+ 'attr-value': {
1469
+ pattern: /=[\s\S]+/,
1470
+ inside: {
1471
+ 'value': {
1472
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1473
+ lookbehind: true,
1474
+ alias: [lang, 'language-' + lang],
1475
+ inside: Prism.languages[lang]
1476
+ },
1477
+ 'punctuation': [
1478
+ {
1479
+ pattern: /^=/,
1480
+ alias: 'attr-equals'
1481
+ },
1482
+ /"|'/
1483
+ ]
1484
+ }
1485
+ }
1486
+ }
1487
+ });
1488
+ }
1489
+ });
1490
+
1491
+ Prism.languages.html = Prism.languages.markup;
1492
+ Prism.languages.mathml = Prism.languages.markup;
1493
+ Prism.languages.svg = Prism.languages.markup;
1494
+
1495
+ Prism.languages.xml = Prism.languages.extend('markup', {});
1496
+ Prism.languages.ssml = Prism.languages.xml;
1497
+ Prism.languages.atom = Prism.languages.xml;
1498
+ Prism.languages.rss = Prism.languages.xml;
1499
+
1500
+
1501
+ /* **********************************************
1502
+ Begin prism-css.js
1503
+ ********************************************** */
1504
+
1505
+ (function (Prism) {
1506
+
1507
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1508
+
1509
+ Prism.languages.css = {
1510
+ 'comment': /\/\*[\s\S]*?\*\//,
1511
+ 'atrule': {
1512
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
1513
+ inside: {
1514
+ 'rule': /^@[\w-]+/,
1515
+ 'selector-function-argument': {
1516
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
1517
+ lookbehind: true,
1518
+ alias: 'selector'
1519
+ },
1520
+ 'keyword': {
1521
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
1522
+ lookbehind: true
1523
+ }
1524
+ // See rest below
1525
+ }
1526
+ },
1527
+ 'url': {
1528
+ // https://drafts.csswg.org/css-values-3/#urls
1529
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
1530
+ greedy: true,
1531
+ inside: {
1532
+ 'function': /^url/i,
1533
+ 'punctuation': /^\(|\)$/,
1534
+ 'string': {
1535
+ pattern: RegExp('^' + string.source + '$'),
1536
+ alias: 'url'
1537
+ }
1538
+ }
1539
+ },
1540
+ 'selector': {
1541
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
1542
+ lookbehind: true
1543
+ },
1544
+ 'string': {
1545
+ pattern: string,
1546
+ greedy: true
1547
+ },
1548
+ 'property': {
1549
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
1550
+ lookbehind: true
1551
+ },
1552
+ 'important': /!important\b/i,
1553
+ 'function': {
1554
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
1555
+ lookbehind: true
1556
+ },
1557
+ 'punctuation': /[(){};:,]/
1558
+ };
1559
+
1560
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
1561
+
1562
+ var markup = Prism.languages.markup;
1563
+ if (markup) {
1564
+ markup.tag.addInlined('style', 'css');
1565
+ markup.tag.addAttribute('style', 'css');
1566
+ }
1567
+
1568
+ }(Prism));
1569
+
1570
+
1571
+ /* **********************************************
1572
+ Begin prism-clike.js
1573
+ ********************************************** */
1574
+
1575
+ Prism.languages.clike = {
1576
+ 'comment': [
1577
+ {
1578
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
1579
+ lookbehind: true,
1580
+ greedy: true
1581
+ },
1582
+ {
1583
+ pattern: /(^|[^\\:])\/\/.*/,
1584
+ lookbehind: true,
1585
+ greedy: true
1586
+ }
1587
+ ],
1588
+ 'string': {
1589
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
1590
+ greedy: true
1591
+ },
1592
+ 'class-name': {
1593
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1594
+ lookbehind: true,
1595
+ inside: {
1596
+ 'punctuation': /[.\\]/
1597
+ }
1598
+ },
1599
+ 'keyword': /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1600
+ 'boolean': /\b(?:false|true)\b/,
1601
+ 'function': /\b\w+(?=\()/,
1602
+ 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
1603
+ 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1604
+ 'punctuation': /[{}[\];(),.:]/
1605
+ };
1606
+
1607
+
1608
+ /* **********************************************
1609
+ Begin prism-javascript.js
1610
+ ********************************************** */
1611
+
1612
+ Prism.languages.javascript = Prism.languages.extend('clike', {
1613
+ 'class-name': [
1614
+ Prism.languages.clike['class-name'],
1615
+ {
1616
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
1617
+ lookbehind: true
1618
+ }
1619
+ ],
1620
+ 'keyword': [
1621
+ {
1622
+ pattern: /((?:^|\})\s*)catch\b/,
1623
+ lookbehind: true
1624
+ },
1625
+ {
1626
+ 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/,
1627
+ lookbehind: true
1628
+ },
1629
+ ],
1630
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1631
+ 'function': /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1632
+ 'number': {
1633
+ pattern: RegExp(
1634
+ /(^|[^\w$])/.source +
1635
+ '(?:' +
1636
+ (
1637
+ // constant
1638
+ /NaN|Infinity/.source +
1639
+ '|' +
1640
+ // binary integer
1641
+ /0[bB][01]+(?:_[01]+)*n?/.source +
1642
+ '|' +
1643
+ // octal integer
1644
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source +
1645
+ '|' +
1646
+ // hexadecimal integer
1647
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
1648
+ '|' +
1649
+ // decimal bigint
1650
+ /\d+(?:_\d+)*n/.source +
1651
+ '|' +
1652
+ // decimal number (integer or float) but no bigint
1653
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source
1654
+ ) +
1655
+ ')' +
1656
+ /(?![\w$])/.source
1657
+ ),
1658
+ lookbehind: true
1659
+ },
1660
+ 'operator': /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1661
+ });
1662
+
1663
+ Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
1664
+
1665
+ Prism.languages.insertBefore('javascript', 'keyword', {
1666
+ 'regex': {
1667
+ pattern: RegExp(
1668
+ // lookbehind
1669
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
1670
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source +
1671
+ // Regex pattern:
1672
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
1673
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
1674
+ // with the only syntax, so we have to define 2 different regex patterns.
1675
+ /\//.source +
1676
+ '(?:' +
1677
+ /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source +
1678
+ '|' +
1679
+ // `v` flag syntax. This supports 3 levels of nested character classes.
1680
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source +
1681
+ ')' +
1682
+ // lookahead
1683
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
1684
+ ),
1685
+ lookbehind: true,
1686
+ greedy: true,
1687
+ inside: {
1688
+ 'regex-source': {
1689
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1690
+ lookbehind: true,
1691
+ alias: 'language-regex',
1692
+ inside: Prism.languages.regex
1693
+ },
1694
+ 'regex-delimiter': /^\/|\/$/,
1695
+ 'regex-flags': /^[a-z]+$/,
1696
+ }
1697
+ },
1698
+ // This must be declared before keyword because we use "function" inside the look-forward
1699
+ 'function-variable': {
1700
+ 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*=>))/,
1701
+ alias: 'function'
1702
+ },
1703
+ 'parameter': [
1704
+ {
1705
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1706
+ lookbehind: true,
1707
+ inside: Prism.languages.javascript
1708
+ },
1709
+ {
1710
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1711
+ lookbehind: true,
1712
+ inside: Prism.languages.javascript
1713
+ },
1714
+ {
1715
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1716
+ lookbehind: true,
1717
+ inside: Prism.languages.javascript
1718
+ },
1719
+ {
1720
+ 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*\{)/,
1721
+ lookbehind: true,
1722
+ inside: Prism.languages.javascript
1723
+ }
1724
+ ],
1725
+ 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1726
+ });
1727
+
1728
+ Prism.languages.insertBefore('javascript', 'string', {
1729
+ 'hashbang': {
1730
+ pattern: /^#!.*/,
1731
+ greedy: true,
1732
+ alias: 'comment'
1733
+ },
1734
+ 'template-string': {
1735
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1736
+ greedy: true,
1737
+ inside: {
1738
+ 'template-punctuation': {
1739
+ pattern: /^`|`$/,
1740
+ alias: 'string'
1741
+ },
1742
+ 'interpolation': {
1743
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1744
+ lookbehind: true,
1745
+ inside: {
1746
+ 'interpolation-punctuation': {
1747
+ pattern: /^\$\{|\}$/,
1748
+ alias: 'punctuation'
1749
+ },
1750
+ rest: Prism.languages.javascript
1751
+ }
1752
+ },
1753
+ 'string': /[\s\S]+/
1754
+ }
1755
+ },
1756
+ 'string-property': {
1757
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1758
+ lookbehind: true,
1759
+ greedy: true,
1760
+ alias: 'property'
1761
+ }
1762
+ });
1763
+
1764
+ Prism.languages.insertBefore('javascript', 'operator', {
1765
+ 'literal-property': {
1766
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1767
+ lookbehind: true,
1768
+ alias: 'property'
1769
+ },
1770
+ });
1771
+
1772
+ if (Prism.languages.markup) {
1773
+ Prism.languages.markup.tag.addInlined('script', 'javascript');
1774
+
1775
+ // add attribute support for all DOM events.
1776
+ // https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events
1777
+ Prism.languages.markup.tag.addAttribute(
1778
+ /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,
1779
+ 'javascript'
1780
+ );
1781
+ }
1782
+
1783
+ Prism.languages.js = Prism.languages.javascript;
1784
+
1785
+
1786
+ /* **********************************************
1787
+ Begin prism-file-highlight.js
1788
+ ********************************************** */
1789
+
1790
+ (function () {
1791
+
1792
+ if (typeof Prism === 'undefined' || typeof document === 'undefined') {
1793
+ return;
1794
+ }
1795
+
1796
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill
1797
+ if (!Element.prototype.matches) {
1798
+ Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1799
+ }
1800
+
1801
+ var LOADING_MESSAGE = 'Loading…';
1802
+ var FAILURE_MESSAGE = function (status, message) {
1803
+ return '✖ Error ' + status + ' while fetching file: ' + message;
1804
+ };
1805
+ var FAILURE_EMPTY_MESSAGE = '✖ Error: File does not exist or is empty';
1806
+
1807
+ var EXTENSIONS = {
1808
+ 'js': 'javascript',
1809
+ 'py': 'python',
1810
+ 'rb': 'ruby',
1811
+ 'ps1': 'powershell',
1812
+ 'psm1': 'powershell',
1813
+ 'sh': 'bash',
1814
+ 'bat': 'batch',
1815
+ 'h': 'c',
1816
+ 'tex': 'latex'
1817
+ };
1818
+
1819
+ var STATUS_ATTR = 'data-src-status';
1820
+ var STATUS_LOADING = 'loading';
1821
+ var STATUS_LOADED = 'loaded';
1822
+ var STATUS_FAILED = 'failed';
1823
+
1824
+ var SELECTOR = 'pre[data-src]:not([' + STATUS_ATTR + '="' + STATUS_LOADED + '"])'
1825
+ + ':not([' + STATUS_ATTR + '="' + STATUS_LOADING + '"])';
1826
+
1827
+ /**
1828
+ * Loads the given file.
1829
+ *
1830
+ * @param {string} src The URL or path of the source file to load.
1831
+ * @param {(result: string) => void} success
1832
+ * @param {(reason: string) => void} error
1833
+ */
1834
+ function loadFile(src, success, error) {
1835
+ var xhr = new XMLHttpRequest();
1836
+ xhr.open('GET', src, true);
1837
+ xhr.onreadystatechange = function () {
1838
+ if (xhr.readyState == 4) {
1839
+ if (xhr.status < 400 && xhr.responseText) {
1840
+ success(xhr.responseText);
1841
+ } else {
1842
+ if (xhr.status >= 400) {
1843
+ error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
1844
+ } else {
1845
+ error(FAILURE_EMPTY_MESSAGE);
1846
+ }
1847
+ }
1848
+ }
1849
+ };
1850
+ xhr.send(null);
1851
+ }
1852
+
1853
+ /**
1854
+ * Parses the given range.
1855
+ *
1856
+ * This returns a range with inclusive ends.
1857
+ *
1858
+ * @param {string | null | undefined} range
1859
+ * @returns {[number, number | undefined] | undefined}
1860
+ */
1861
+ function parseRange(range) {
1862
+ var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(range || '');
1863
+ if (m) {
1864
+ var start = Number(m[1]);
1865
+ var comma = m[2];
1866
+ var end = m[3];
1867
+
1868
+ if (!comma) {
1869
+ return [start, start];
1870
+ }
1871
+ if (!end) {
1872
+ return [start, undefined];
1873
+ }
1874
+ return [start, Number(end)];
1875
+ }
1876
+ return undefined;
1877
+ }
1878
+
1879
+ Prism.hooks.add('before-highlightall', function (env) {
1880
+ env.selector += ', ' + SELECTOR;
1881
+ });
1882
+
1883
+ Prism.hooks.add('before-sanity-check', function (env) {
1884
+ var pre = /** @type {HTMLPreElement} */ (env.element);
1885
+ if (pre.matches(SELECTOR)) {
1886
+ env.code = ''; // fast-path the whole thing and go to complete
1887
+
1888
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADING); // mark as loading
1889
+
1890
+ // add code element with loading message
1891
+ var code = pre.appendChild(document.createElement('CODE'));
1892
+ code.textContent = LOADING_MESSAGE;
1893
+
1894
+ var src = pre.getAttribute('data-src');
1895
+
1896
+ var language = env.language;
1897
+ if (language === 'none') {
1898
+ // the language might be 'none' because there is no language set;
1899
+ // in this case, we want to use the extension as the language
1900
+ var extension = (/\.(\w+)$/.exec(src) || [, 'none'])[1];
1901
+ language = EXTENSIONS[extension] || extension;
1902
+ }
1903
+
1904
+ // set language classes
1905
+ Prism.util.setLanguage(code, language);
1906
+ Prism.util.setLanguage(pre, language);
1907
+
1908
+ // preload the language
1909
+ var autoloader = Prism.plugins.autoloader;
1910
+ if (autoloader) {
1911
+ autoloader.loadLanguages(language);
1912
+ }
1913
+
1914
+ // load file
1915
+ loadFile(
1916
+ src,
1917
+ function (text) {
1918
+ // mark as loaded
1919
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADED);
1920
+
1921
+ // handle data-range
1922
+ var range = parseRange(pre.getAttribute('data-range'));
1923
+ if (range) {
1924
+ var lines = text.split(/\r\n?|\n/g);
1925
+
1926
+ // the range is one-based and inclusive on both ends
1927
+ var start = range[0];
1928
+ var end = range[1] == null ? lines.length : range[1];
1929
+
1930
+ if (start < 0) { start += lines.length; }
1931
+ start = Math.max(0, Math.min(start - 1, lines.length));
1932
+ if (end < 0) { end += lines.length; }
1933
+ end = Math.max(0, Math.min(end, lines.length));
1934
+
1935
+ text = lines.slice(start, end).join('\n');
1936
+
1937
+ // add data-start for line numbers
1938
+ if (!pre.hasAttribute('data-start')) {
1939
+ pre.setAttribute('data-start', String(start + 1));
1940
+ }
1941
+ }
1942
+
1943
+ // highlight code
1944
+ code.textContent = text;
1945
+ Prism.highlightElement(code);
1946
+ },
1947
+ function (error) {
1948
+ // mark as failed
1949
+ pre.setAttribute(STATUS_ATTR, STATUS_FAILED);
1950
+
1951
+ code.textContent = error;
1952
+ }
1953
+ );
1954
+ }
1955
+ });
1956
+
1957
+ Prism.plugins.fileHighlight = {
1958
+ /**
1959
+ * Executes the File Highlight plugin for all matching `pre` elements under the given container.
1960
+ *
1961
+ * Note: Elements which are already loaded or currently loading will not be touched by this method.
1962
+ *
1963
+ * @param {ParentNode} [container=document]
1964
+ */
1965
+ highlight: function highlight(container) {
1966
+ var elements = (container || document).querySelectorAll(SELECTOR);
1967
+
1968
+ for (var i = 0, element; (element = elements[i++]);) {
1969
+ Prism.highlightElement(element);
1970
+ }
1971
+ }
1972
+ };
1973
+
1974
+ var logged = false;
1975
+ /** @deprecated Use `Prism.plugins.fileHighlight.highlight` instead. */
1976
+ Prism.fileHighlight = function () {
1977
+ if (!logged) {
1978
+ console.warn('Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.');
1979
+ logged = true;
1980
+ }
1981
+ Prism.plugins.fileHighlight.highlight.apply(this, arguments);
1982
+ };
1983
+
1984
+ }());
1985
+ }(prism));
1986
+
1987
+ const Prism$1 = prism.exports;
1988
+
1989
+ Prism.languages.python = {
1990
+ 'comment': {
1991
+ pattern: /(^|[^\\])#.*/,
1992
+ lookbehind: true,
1993
+ greedy: true
1994
+ },
1995
+ 'string-interpolation': {
1996
+ pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
1997
+ greedy: true,
1998
+ inside: {
1999
+ 'interpolation': {
2000
+ // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
2001
+ pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
2002
+ lookbehind: true,
2003
+ inside: {
2004
+ 'format-spec': {
2005
+ pattern: /(:)[^:(){}]+(?=\}$)/,
2006
+ lookbehind: true
2007
+ },
2008
+ 'conversion-option': {
2009
+ pattern: /![sra](?=[:}]$)/,
2010
+ alias: 'punctuation'
2011
+ },
2012
+ rest: null
2013
+ }
2014
+ },
2015
+ 'string': /[\s\S]+/
2016
+ }
2017
+ },
2018
+ 'triple-quoted-string': {
2019
+ pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
2020
+ greedy: true,
2021
+ alias: 'string'
2022
+ },
2023
+ 'string': {
2024
+ pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
2025
+ greedy: true
2026
+ },
2027
+ 'function': {
2028
+ pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
2029
+ lookbehind: true
2030
+ },
2031
+ 'class-name': {
2032
+ pattern: /(\bclass\s+)\w+/i,
2033
+ lookbehind: true
2034
+ },
2035
+ 'decorator': {
2036
+ pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
2037
+ lookbehind: true,
2038
+ alias: ['annotation', 'punctuation'],
2039
+ inside: {
2040
+ 'punctuation': /\./
2041
+ }
2042
+ },
2043
+ '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/,
2044
+ '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/,
2045
+ 'boolean': /\b(?:False|None|True)\b/,
2046
+ '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,
2047
+ 'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
2048
+ 'punctuation': /[{}[\];(),.:]/
2049
+ };
2050
+
2051
+ Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
2052
+
2053
+ Prism.languages.py = Prism.languages.python;
2054
+
2055
+ (function (Prism) {
2056
+ // $ set | grep '^[A-Z][^[:space:]]*=' | cut -d= -f1 | tr '\n' '|'
2057
+ // + LC_ALL, RANDOM, REPLY, SECONDS.
2058
+ // + make sure PS1..4 are here as they are not always set,
2059
+ // - some useless things.
2060
+ var envVars = '\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b';
2061
+
2062
+ var commandAfterHeredoc = {
2063
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
2064
+ lookbehind: true,
2065
+ alias: 'punctuation', // this looks reasonably well in all themes
2066
+ inside: null // see below
2067
+ };
2068
+
2069
+ var insideString = {
2070
+ 'bash': commandAfterHeredoc,
2071
+ 'environment': {
2072
+ pattern: RegExp('\\$' + envVars),
2073
+ alias: 'constant'
2074
+ },
2075
+ 'variable': [
2076
+ // [0]: Arithmetic Environment
2077
+ {
2078
+ pattern: /\$?\(\([\s\S]+?\)\)/,
2079
+ greedy: true,
2080
+ inside: {
2081
+ // If there is a $ sign at the beginning highlight $(( and )) as variable
2082
+ 'variable': [
2083
+ {
2084
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
2085
+ lookbehind: true
2086
+ },
2087
+ /^\$\(\(/
2088
+ ],
2089
+ 'number': /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
2090
+ // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
2091
+ 'operator': /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
2092
+ // If there is no $ sign at the beginning highlight (( and )) as punctuation
2093
+ 'punctuation': /\(\(?|\)\)?|,|;/
2094
+ }
2095
+ },
2096
+ // [1]: Command Substitution
2097
+ {
2098
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
2099
+ greedy: true,
2100
+ inside: {
2101
+ 'variable': /^\$\(|^`|\)$|`$/
2102
+ }
2103
+ },
2104
+ // [2]: Brace expansion
2105
+ {
2106
+ pattern: /\$\{[^}]+\}/,
2107
+ greedy: true,
2108
+ inside: {
2109
+ 'operator': /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2110
+ 'punctuation': /[\[\]]/,
2111
+ 'environment': {
2112
+ pattern: RegExp('(\\{)' + envVars),
2113
+ lookbehind: true,
2114
+ alias: 'constant'
2115
+ }
2116
+ }
2117
+ },
2118
+ /\$(?:\w+|[#?*!@$])/
2119
+ ],
2120
+ // Escape sequences from echo and printf's manuals, and escaped quotes.
2121
+ 'entity': /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
2122
+ };
2123
+
2124
+ Prism.languages.bash = {
2125
+ 'shebang': {
2126
+ pattern: /^#!\s*\/.*/,
2127
+ alias: 'important'
2128
+ },
2129
+ 'comment': {
2130
+ pattern: /(^|[^"{\\$])#.*/,
2131
+ lookbehind: true
2132
+ },
2133
+ 'function-name': [
2134
+ // a) function foo {
2135
+ // b) foo() {
2136
+ // c) function foo() {
2137
+ // but not “foo {”
2138
+ {
2139
+ // a) and c)
2140
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
2141
+ lookbehind: true,
2142
+ alias: 'function'
2143
+ },
2144
+ {
2145
+ // b)
2146
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
2147
+ alias: 'function'
2148
+ }
2149
+ ],
2150
+ // Highlight variable names as variables in for and select beginnings.
2151
+ 'for-or-select': {
2152
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
2153
+ alias: 'variable',
2154
+ lookbehind: true
2155
+ },
2156
+ // Highlight variable names as variables in the left-hand part
2157
+ // of assignments (“=” and “+=”).
2158
+ 'assign-left': {
2159
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2160
+ inside: {
2161
+ 'environment': {
2162
+ pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + envVars),
2163
+ lookbehind: true,
2164
+ alias: 'constant'
2165
+ }
2166
+ },
2167
+ alias: 'variable',
2168
+ lookbehind: true
2169
+ },
2170
+ // Highlight parameter names as variables
2171
+ 'parameter': {
2172
+ pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
2173
+ alias: 'variable',
2174
+ lookbehind: true
2175
+ },
2176
+ 'string': [
2177
+ // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
2178
+ {
2179
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
2180
+ lookbehind: true,
2181
+ greedy: true,
2182
+ inside: insideString
2183
+ },
2184
+ // Here-document with quotes around the tag
2185
+ // → No expansion (so no “inside”).
2186
+ {
2187
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
2188
+ lookbehind: true,
2189
+ greedy: true,
2190
+ inside: {
2191
+ 'bash': commandAfterHeredoc
2192
+ }
2193
+ },
2194
+ // “Normal” string
2195
+ {
2196
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
2197
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
2198
+ lookbehind: true,
2199
+ greedy: true,
2200
+ inside: insideString
2201
+ },
2202
+ {
2203
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
2204
+ pattern: /(^|[^$\\])'[^']*'/,
2205
+ lookbehind: true,
2206
+ greedy: true
2207
+ },
2208
+ {
2209
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
2210
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
2211
+ greedy: true,
2212
+ inside: {
2213
+ 'entity': insideString.entity
2214
+ }
2215
+ }
2216
+ ],
2217
+ 'environment': {
2218
+ pattern: RegExp('\\$?' + envVars),
2219
+ alias: 'constant'
2220
+ },
2221
+ 'variable': insideString.variable,
2222
+ 'function': {
2223
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
2224
+ lookbehind: true
2225
+ },
2226
+ 'keyword': {
2227
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
2228
+ lookbehind: true
2229
+ },
2230
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
2231
+ 'builtin': {
2232
+ pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
2233
+ lookbehind: true,
2234
+ // Alias added to make those easier to distinguish from strings.
2235
+ alias: 'class-name'
2236
+ },
2237
+ 'boolean': {
2238
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
2239
+ lookbehind: true
2240
+ },
2241
+ 'file-descriptor': {
2242
+ pattern: /\B&\d\b/,
2243
+ alias: 'important'
2244
+ },
2245
+ 'operator': {
2246
+ // Lots of redirections here, but not just that.
2247
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
2248
+ inside: {
2249
+ 'file-descriptor': {
2250
+ pattern: /^\d/,
2251
+ alias: 'important'
2252
+ }
2253
+ }
2254
+ },
2255
+ 'punctuation': /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
2256
+ 'number': {
2257
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
2258
+ lookbehind: true
2259
+ }
2260
+ };
2261
+
2262
+ commandAfterHeredoc.inside = Prism.languages.bash;
2263
+
2264
+ /* Patterns in command substitution. */
2265
+ var toBeCopied = [
2266
+ 'comment',
2267
+ 'function-name',
2268
+ 'for-or-select',
2269
+ 'assign-left',
2270
+ 'parameter',
2271
+ 'string',
2272
+ 'environment',
2273
+ 'function',
2274
+ 'keyword',
2275
+ 'builtin',
2276
+ 'boolean',
2277
+ 'file-descriptor',
2278
+ 'operator',
2279
+ 'punctuation',
2280
+ 'number'
2281
+ ];
2282
+ var inside = insideString.variable[1].inside;
2283
+ for (var i = 0; i < toBeCopied.length; i++) {
2284
+ inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
2285
+ }
2286
+
2287
+ Prism.languages.sh = Prism.languages.bash;
2288
+ Prism.languages.shell = Prism.languages.bash;
2289
+ }(Prism));
2290
+
2291
+ (function (Prism) {
2292
+
2293
+ // https://yaml.org/spec/1.2/spec.html#c-ns-anchor-property
2294
+ // https://yaml.org/spec/1.2/spec.html#c-ns-alias-node
2295
+ var anchorOrAlias = /[*&][^\s[\]{},]+/;
2296
+ // https://yaml.org/spec/1.2/spec.html#c-ns-tag-property
2297
+ var tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/;
2298
+ // https://yaml.org/spec/1.2/spec.html#c-ns-properties(n,c)
2299
+ var properties = '(?:' + tag.source + '(?:[ \t]+' + anchorOrAlias.source + ')?|'
2300
+ + anchorOrAlias.source + '(?:[ \t]+' + tag.source + ')?)';
2301
+ // https://yaml.org/spec/1.2/spec.html#ns-plain(n,c)
2302
+ // This is a simplified version that doesn't support "#" and multiline keys
2303
+ // All these long scarry character classes are simplified versions of YAML's characters
2304
+ var plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source
2305
+ .replace(/<PLAIN>/g, function () { return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; });
2306
+ var string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2307
+
2308
+ /**
2309
+ *
2310
+ * @param {string} value
2311
+ * @param {string} [flags]
2312
+ * @returns {RegExp}
2313
+ */
2314
+ function createValuePattern(value, flags) {
2315
+ flags = (flags || '').replace(/m/g, '') + 'm'; // add m flag
2316
+ var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source
2317
+ .replace(/<<prop>>/g, function () { return properties; }).replace(/<<value>>/g, function () { return value; });
2318
+ return RegExp(pattern, flags);
2319
+ }
2320
+
2321
+ Prism.languages.yaml = {
2322
+ 'scalar': {
2323
+ pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source
2324
+ .replace(/<<prop>>/g, function () { return properties; })),
2325
+ lookbehind: true,
2326
+ alias: 'string'
2327
+ },
2328
+ 'comment': /#.*/,
2329
+ 'key': {
2330
+ pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source
2331
+ .replace(/<<prop>>/g, function () { return properties; })
2332
+ .replace(/<<key>>/g, function () { return '(?:' + plainKey + '|' + string + ')'; })),
2333
+ lookbehind: true,
2334
+ greedy: true,
2335
+ alias: 'atrule'
2336
+ },
2337
+ 'directive': {
2338
+ pattern: /(^[ \t]*)%.+/m,
2339
+ lookbehind: true,
2340
+ alias: 'important'
2341
+ },
2342
+ 'datetime': {
2343
+ pattern: createValuePattern(/\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),
2344
+ lookbehind: true,
2345
+ alias: 'number'
2346
+ },
2347
+ 'boolean': {
2348
+ pattern: createValuePattern(/false|true/.source, 'i'),
2349
+ lookbehind: true,
2350
+ alias: 'important'
2351
+ },
2352
+ 'null': {
2353
+ pattern: createValuePattern(/null|~/.source, 'i'),
2354
+ lookbehind: true,
2355
+ alias: 'important'
2356
+ },
2357
+ 'string': {
2358
+ pattern: createValuePattern(string),
2359
+ lookbehind: true,
2360
+ greedy: true
2361
+ },
2362
+ 'number': {
2363
+ pattern: createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, 'i'),
2364
+ lookbehind: true
2365
+ },
2366
+ 'tag': tag,
2367
+ 'important': anchorOrAlias,
2368
+ 'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./
2369
+ };
2370
+
2371
+ Prism.languages.yml = Prism.languages.yaml;
2372
+
2373
+ }(Prism));
2374
+
2375
+ (function (Prism) {
2376
+
2377
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
2378
+
2379
+ Prism.languages.css = {
2380
+ 'comment': /\/\*[\s\S]*?\*\//,
2381
+ 'atrule': {
2382
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
2383
+ inside: {
2384
+ 'rule': /^@[\w-]+/,
2385
+ 'selector-function-argument': {
2386
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
2387
+ lookbehind: true,
2388
+ alias: 'selector'
2389
+ },
2390
+ 'keyword': {
2391
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
2392
+ lookbehind: true
2393
+ }
2394
+ // See rest below
2395
+ }
2396
+ },
2397
+ 'url': {
2398
+ // https://drafts.csswg.org/css-values-3/#urls
2399
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
2400
+ greedy: true,
2401
+ inside: {
2402
+ 'function': /^url/i,
2403
+ 'punctuation': /^\(|\)$/,
2404
+ 'string': {
2405
+ pattern: RegExp('^' + string.source + '$'),
2406
+ alias: 'url'
2407
+ }
2408
+ }
2409
+ },
2410
+ 'selector': {
2411
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
2412
+ lookbehind: true
2413
+ },
2414
+ 'string': {
2415
+ pattern: string,
2416
+ greedy: true
2417
+ },
2418
+ 'property': {
2419
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
2420
+ lookbehind: true
2421
+ },
2422
+ 'important': /!important\b/i,
2423
+ 'function': {
2424
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
2425
+ lookbehind: true
2426
+ },
2427
+ 'punctuation': /[(){};:,]/
2428
+ };
2429
+
2430
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
2431
+
2432
+ var markup = Prism.languages.markup;
2433
+ if (markup) {
2434
+ markup.tag.addInlined('style', 'css');
2435
+ markup.tag.addAttribute('style', 'css');
2436
+ }
2437
+
2438
+ }(Prism));
2439
+
2440
+ const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
2441
+
2442
+ const EdsCodeBlock = /*@__PURE__*/ proxyCustomElement(class EdsCodeBlock extends HTMLElement {
2443
+ constructor() {
2444
+ super();
2445
+ this.__registerHost();
2446
+ this.__attachShadow();
2447
+ this.code = undefined;
2448
+ this.language = undefined;
2449
+ this.copied = false;
2450
+ }
2451
+ copyToClipboard() {
2452
+ navigator.clipboard.writeText(this.code).then(() => {
2453
+ this.copied = true;
2454
+ setTimeout(() => (this.copied = false), 2000);
2455
+ });
2456
+ }
2457
+ getHighlightedCode() {
2458
+ if (this.language && Prism$1.languages[this.language]) {
2459
+ return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
2460
+ }
2461
+ // eslint-disable-next-line
2462
+ console.warn(`Unsupported or missing language: ${this.language}`);
2463
+ return this.code; // Fallback if language is not provided or unsupported
2464
+ }
2465
+ render() {
2466
+ return (h("div", { key: 'a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06', class: "relative bg-stronger rounded-sm" }, h("div", { key: '5856f9d30bb52f791e0d8bb03a6438bc01247f66', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: 'dfb0f69dbbd1032ace5afb7fe98d899816f36610', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: 'b399384638265f9fcc9a824c47fe73c75bcade33', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '47c2d00b2cf86b99522dbc438726e0fc57fb6a44', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: '038321e9d3d2a38963857ab8b719653f3e8385e3', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '72be161dd9781d9bc2f4d9495969175f34c19249', innerHTML: this.getHighlightedCode() })))));
2467
+ }
2468
+ static get style() { return edsCodeBlockCss; }
2469
+ }, [1, "eds-code-block", {
2470
+ "code": [1],
2471
+ "language": [1],
2472
+ "copied": [32]
2473
+ }]);
2474
+ function defineCustomElement() {
2475
+ if (typeof customElements === "undefined") {
2476
+ return;
2477
+ }
2478
+ const components = ["eds-code-block", "eds-icon-wrapper"];
2479
+ components.forEach(tagName => { switch (tagName) {
2480
+ case "eds-code-block":
2481
+ if (!customElements.get(tagName)) {
2482
+ customElements.define(tagName, EdsCodeBlock);
2483
+ }
2484
+ break;
2485
+ case "eds-icon-wrapper":
2486
+ if (!customElements.get(tagName)) {
2487
+ defineCustomElement$1();
2488
+ }
2489
+ break;
2490
+ } });
2491
+ }
2492
+
2493
+ export { EdsCodeBlock as E, defineCustomElement as d };