@ebrains/vue 0.6.0-alpha.0 → 0.8.0-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 (250) hide show
  1. package/README.md +3 -3
  2. package/{color-primary-palette_6.entry-BJGrNiKE.mjs → color-primary-palette_6.entry-8IScvoTJ.mjs} +19 -19
  3. package/color-primary-palette_6.entry-8sRpfe4E.js +1 -0
  4. package/correct-use-of-colors.entry-CfU46fhX.js +1 -0
  5. package/correct-use-of-colors.entry-ClTcY5vo.mjs +59 -0
  6. package/eds-accordion_17.entry-BBnyn6EM.js +24029 -0
  7. package/eds-accordion_17.entry-BhCBvhXC.mjs +25134 -0
  8. package/{eds-alert.entry-HNjGFpMQ.js → eds-alert.entry-C7iR6Wau.js} +224 -93
  9. package/{eds-alert.entry-B9K7jZdM.mjs → eds-alert.entry-DHikCbw_.mjs} +233 -96
  10. package/eds-app-root.entry-YPigXe8_.mjs +25 -0
  11. package/eds-app-root.entry-rafdbiL3.js +1 -0
  12. package/{eds-breadcrumb.entry-nSQcSQxS.mjs → eds-breadcrumb.entry-Bfc36jaR.mjs} +12 -18
  13. package/eds-breadcrumb.entry-D065WE8j.js +1 -0
  14. package/eds-card-desc_3.entry-BJP_Vvul.mjs +83 -0
  15. package/eds-card-desc_3.entry-CPmEcD7h.js +1 -0
  16. package/eds-card-generic.entry-Bn3saq5k.mjs +56 -0
  17. package/eds-card-generic.entry-Ct8aLaT_.js +1 -0
  18. package/eds-card-project.entry-B7s198sC.js +1 -0
  19. package/{eds-card-project.entry-BMRVlg7J.mjs → eds-card-project.entry-CkmokKaR.mjs} +7 -7
  20. package/eds-card-section.entry-CE7UQ8HN.js +1 -0
  21. package/eds-card-section.entry-DKP7IjIj.mjs +30 -0
  22. package/eds-card-tags.entry-BNqaohHu.mjs +13 -0
  23. package/eds-card-tags.entry-wvkOqT1r.js +1 -0
  24. package/{eds-card-tool.entry-BPrlMiqY.mjs → eds-card-tool.entry-CR4SuPPR.mjs} +7 -7
  25. package/{eds-card-tool.entry-B0rDGNdA.js → eds-card-tool.entry-Df_qlYY5.js} +1 -1
  26. package/{eds-card-wrapper.entry-Ba4ljzon.mjs → eds-card-wrapper.entry-CosNbMgP.mjs} +4 -4
  27. package/{eds-card-wrapper.entry-DyPmlYoI.js → eds-card-wrapper.entry-DwcKQUDS.js} +1 -1
  28. package/{eds-code-block.entry-zX5MUsAS.mjs → eds-code-block.entry-Bfp7Moc7.mjs} +2 -2
  29. package/{eds-code-block.entry-B3RL-q6l.js → eds-code-block.entry-D5kDIIPG.js} +2 -2
  30. package/{eds-components-section.entry-xnXY70G_.mjs → eds-components-section.entry-CZzJEdYb.mjs} +42 -35
  31. package/eds-components-section.entry-DpGQLUDG.js +140 -0
  32. package/{eds-cookies-preference.entry-MAmSehJX.js → eds-cookies-preference.entry-DUwpfJG0.js} +1 -1
  33. package/{eds-cookies-preference.entry-DAQEpE8v.mjs → eds-cookies-preference.entry-ivi_kdZs.mjs} +5 -5
  34. package/{eds-docs-palettes.entry-BiC_mzap.js → eds-docs-palettes.entry-CvUsZJGt.js} +1 -1
  35. package/{eds-docs-palettes.entry-CFIZWB7Y.mjs → eds-docs-palettes.entry-DF_rAbne.mjs} +2 -2
  36. package/{eds-docs-tokens.entry-CCwf01ke.js → eds-docs-tokens.entry-C3AfntXW.js} +1 -1
  37. package/{eds-docs-tokens.entry-ClVBrRzm.mjs → eds-docs-tokens.entry-gPy71iZA.mjs} +2 -2
  38. package/eds-feedback.entry-Cii4Bgav.mjs +53 -0
  39. package/eds-feedback.entry-mS5rXykK.js +1 -0
  40. package/eds-form.entry-CNUo4guS.mjs +226 -0
  41. package/eds-form.entry-DmOYblLu.js +1 -0
  42. package/eds-frame.entry-BEG9Cq6f.mjs +73 -0
  43. package/eds-frame.entry-MuWFMQ5l.js +1 -0
  44. package/eds-icon-arrow-diagonal.entry-6WVlNQjt.mjs +13 -0
  45. package/eds-icon-arrow-diagonal.entry-zBfSFnaZ.js +1 -0
  46. package/eds-icon-arrow-right.entry-B01PWxxn.js +1 -0
  47. package/eds-icon-arrow-right.entry-CPfwKb_P.mjs +13 -0
  48. package/eds-icon-bluesky.entry-DKFty2p_.mjs +13 -0
  49. package/{eds-icon-bluesky.entry-BfYrb4Uv.js → eds-icon-bluesky.entry-DbVUYLJG.js} +1 -1
  50. package/eds-icon-chevron-down.entry-YrhsZIQb.js +1 -0
  51. package/eds-icon-chevron-down.entry-dCeiKlud.mjs +13 -0
  52. package/eds-icon-chevron-left.entry-CVk_b9kc.js +1 -0
  53. package/eds-icon-chevron-left.entry-CudVsOqq.mjs +13 -0
  54. package/{eds-icon-chevron-right.entry-YLnmNxjo.mjs → eds-icon-chevron-right.entry-Dg5UFoCU.mjs} +2 -2
  55. package/eds-icon-chevron-right.entry-r7aVtAwm.js +1 -0
  56. package/eds-icon-chevron-up.entry-C-WjO0ys.js +1 -0
  57. package/eds-icon-chevron-up.entry-CEfRA3Cn.mjs +13 -0
  58. package/eds-icon-close.entry-Cec0LlPI.mjs +13 -0
  59. package/{eds-icon-close.entry-BSSS65tZ.js → eds-icon-close.entry-eRRe-idl.js} +1 -1
  60. package/{eds-icon-copy.entry-PvAtojYn.js → eds-icon-copy.entry-B41dL0Pk.js} +1 -1
  61. package/eds-icon-copy.entry-Bv6gVwBn.mjs +13 -0
  62. package/eds-icon-eu.entry-CIYspbep.js +1 -0
  63. package/eds-icon-eu.entry-C_SYaSos.mjs +13 -0
  64. package/{eds-icon-facebook.entry-CKmUhO4W.mjs → eds-icon-facebook.entry-CxuQ9T-z.mjs} +2 -2
  65. package/{eds-icon-facebook.entry-DsPVhA3Z.js → eds-icon-facebook.entry-tLxBj2-p.js} +1 -1
  66. package/{eds-icon-gitlab.entry-D6VEWpO6.mjs → eds-icon-gitlab.entry-B4Y3IL_W.mjs} +2 -2
  67. package/{eds-icon-gitlab.entry-Dzq7ViR-.js → eds-icon-gitlab.entry-Bz32Y093.js} +1 -1
  68. package/{eds-icon-linkedin.entry-7PCeoMEi.js → eds-icon-linkedin.entry-BOJB8PtD.js} +1 -1
  69. package/eds-icon-linkedin.entry-C-OLKK80.mjs +13 -0
  70. package/eds-icon-loader.entry-Cnugn2v_.mjs +13 -0
  71. package/{eds-icon-loader.entry-Bp-ZxeW7.js → eds-icon-loader.entry-OpxpC-qI.js} +1 -1
  72. package/{eds-icon-mastodon.entry-DsU7dMbW.js → eds-icon-mastodon.entry-DYjzOc_S.js} +1 -1
  73. package/eds-icon-mastodon.entry-DfYxTk7y.mjs +13 -0
  74. package/eds-icon-menu.entry-4XLLYwtu.js +1 -0
  75. package/eds-icon-menu.entry-iM24FuKl.mjs +13 -0
  76. package/{eds-icon-more.entry-CqvnBXDu.mjs → eds-icon-more.entry-BIN9jdzF.mjs} +2 -2
  77. package/{eds-icon-more.entry-BOWM2H9H.js → eds-icon-more.entry-BdtfLgCV.js} +1 -1
  78. package/eds-icon-search.entry-CnqQ_vud.mjs +13 -0
  79. package/eds-icon-search.entry-Cw8zssoR.js +1 -0
  80. package/eds-icon-star.entry-BqWtt_VJ.mjs +13 -0
  81. package/eds-icon-star.entry-DhcygAni.js +1 -0
  82. package/{eds-icon-success.entry-CDwqLyts.js → eds-icon-success.entry-59uCWiA1.js} +1 -1
  83. package/eds-icon-success.entry-C0jA8lzW.mjs +13 -0
  84. package/eds-icon-thumbs-down.entry-BNUoStSy.js +1 -0
  85. package/eds-icon-thumbs-down.entry-BOvmhFfL.mjs +13 -0
  86. package/eds-icon-thumbs-up.entry-B5dIuh3_.mjs +13 -0
  87. package/eds-icon-thumbs-up.entry-Bn3MBFif.js +1 -0
  88. package/eds-icon-twitter.entry-CGsi8ynP.js +1 -0
  89. package/eds-icon-twitter.entry-CRA6F5rZ.mjs +13 -0
  90. package/eds-icon-user.entry-BQ64yR1z.js +1 -0
  91. package/eds-icon-user.entry-D-nrmq6-.mjs +13 -0
  92. package/eds-icon-youtube.entry-BCw69oaj.js +1 -0
  93. package/eds-icon-youtube.entry-DTLtxuVC.mjs +13 -0
  94. package/eds-input_7.entry-CSdmlGYi.mjs +7971 -0
  95. package/eds-input_7.entry-DdKDkmAq.js +7766 -0
  96. package/{keycloak-d502ec16-Ce0iGqyk.mjs → eds-login_2.entry-Be8tUQNx.mjs} +288 -210
  97. package/eds-login_2.entry-CiL5geMY.js +9 -0
  98. package/{eds-logo-variations.entry-AbwI_N4g.mjs → eds-logo-variations.entry-CBy11DlE.mjs} +2 -2
  99. package/{eds-logo-variations.entry-B7BEqih8.js → eds-logo-variations.entry-DGWNGIvb.js} +1 -1
  100. package/{eds-modal.entry-2mm8jzwO.mjs → eds-modal.entry-B3qjw7GE.mjs} +16 -4
  101. package/{eds-modal.entry-N0Zu-2yI.js → eds-modal.entry-KkENKOHe.js} +1 -1
  102. package/{eds-pagination_2.entry-T_lnxySd.mjs → eds-pagination_2.entry-B2q_5PRD.mjs} +36 -27
  103. package/eds-pagination_2.entry-BcBkkuEq.js +1 -0
  104. package/{eds-progress-bar.entry-BpqT4TGP.mjs → eds-progress-bar.entry-BWnPK-6o.mjs} +2 -2
  105. package/{eds-progress-bar.entry-C-qHC2dN.js → eds-progress-bar.entry-DMTDcZv8.js} +1 -1
  106. package/eds-rating.entry-CPCGEHHj.js +1 -0
  107. package/eds-rating.entry-CtRb0a5R.mjs +61 -0
  108. package/{eds-section-core_2.entry-BwoSUszo.mjs → eds-section-core_2.entry-BrIavUCN.mjs} +10 -10
  109. package/eds-section-core_2.entry-rRmNlbQR.js +1 -0
  110. package/eds-spinner.entry-BQ7NYZow.js +1 -0
  111. package/eds-spinner.entry-D58XgaXt.mjs +36 -0
  112. package/{eds-svg-repository.entry-BhAWpTfJ.js → eds-svg-repository.entry-B3RrcJof.js} +13 -13
  113. package/{eds-svg-repository.entry-DeKbE1sw.mjs → eds-svg-repository.entry-D1rRUteH.mjs} +78 -71
  114. package/{eds-switch.entry-6C-fiD1f.js → eds-switch.entry-CAzboLuJ.js} +1 -1
  115. package/{eds-switch.entry-LXqTebs4.mjs → eds-switch.entry-CgstZWMb.mjs} +3 -3
  116. package/{eds-input_7.entry-Bo9-yfaP.js → eds-tabs.entry-2CrdvmEM.mjs} +783 -88
  117. package/{eds-input_7.entry-CCX6iGUA.mjs → eds-tabs.entry-CxValIYM.js} +680 -294
  118. package/{eds-link.entry-B_t5O_EC.js → eds-timeline.entry-CFAb5Cd0.js} +535 -64
  119. package/{eds-link.entry-D4lqKj64.mjs → eds-timeline.entry-D9ZihmLu.mjs} +566 -216
  120. package/eds-toast-manager.entry-DNRGmKI4.js +1 -0
  121. package/eds-toast-manager.entry-mR3GXeEW.mjs +36 -0
  122. package/eds-toast.entry-BRfHKFao.js +3 -0
  123. package/eds-toast.entry-ubt1S3Kw.mjs +61 -0
  124. package/{eds-tooltip.entry-D9pRQyxl.js → eds-tooltip.entry-BS9OaOdx.js} +1 -1
  125. package/{eds-tooltip.entry-BSd2vlEo.mjs → eds-tooltip.entry-D0rqB_RZ.mjs} +6 -6
  126. package/eds-trl.entry-CwmhIRgh.mjs +34 -0
  127. package/eds-trl.entry-D_xUUWvL.js +1 -0
  128. package/generated/components.d.ts +4 -3
  129. package/incorrect-use-of-colors.entry-B5KDlGuR.mjs +42 -0
  130. package/incorrect-use-of-colors.entry-_H77f9zg.js +1 -0
  131. package/{index-Df31uHzU.mjs → index-DeCYK9qM.mjs} +379 -383
  132. package/index-QKKBbj1_.js +21 -0
  133. package/index.js +1 -1
  134. package/index.mjs +38 -37
  135. package/{logo-space.entry-q9Uznxi3.js → logo-space.entry-CGNHFbPE.js} +1 -1
  136. package/{logo-space.entry-CChbx8AS.mjs → logo-space.entry-NVMguJha.mjs} +7 -7
  137. package/logo-variations-horizontal_2.entry-CoHmkNBR.mjs +29 -0
  138. package/logo-variations-horizontal_2.entry-CykdymGd.js +7 -0
  139. package/logo-wrong-usage.entry-BozirNNs.mjs +14 -0
  140. package/logo-wrong-usage.entry-DCJHE7Y8.js +1 -0
  141. package/package.json +1 -1
  142. package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
  143. package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
  144. package/star-0da9b5e9-B3-jr0yE.js +3 -0
  145. package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
  146. package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
  147. package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
  148. package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
  149. package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
  150. package/{token-list_3.entry-B4bQ3_yz.js → token-list_3.entry-D8dKORAJ.js} +1 -1
  151. package/{token-list_3.entry-CJXI55T0.mjs → token-list_3.entry-uSQm6z8I.mjs} +4 -4
  152. package/{token-ratios.entry-LNQoHORe.mjs → token-ratios.entry-BiuicosE.mjs} +2 -2
  153. package/token-ratios.entry-CaKfU99x.js +1 -0
  154. package/token-spacing.entry-B9inIBOK.mjs +12 -0
  155. package/token-spacing.entry-BV0NaRVV.js +1 -0
  156. package/{token-typography.entry-DddK_fiy.js → token-typography.entry-Dn6NRvAR.js} +1 -1
  157. package/{token-typography.entry-qTyV0EeH.mjs → token-typography.entry-sTlt7Bpz.mjs} +2 -2
  158. package/color-primary-palette_6.entry-CYSEDId9.js +0 -1
  159. package/correct-use-of-colors.entry-B36yaMb6.js +0 -1
  160. package/correct-use-of-colors.entry-C2K5ii07.mjs +0 -59
  161. package/eds-accordion_13.entry-BwXBZQ7p.mjs +0 -8044
  162. package/eds-accordion_13.entry-DuX3jvBd.js +0 -7375
  163. package/eds-block-break.entry-1HfuhJmn.mjs +0 -13
  164. package/eds-block-break.entry-DQDjLThR.js +0 -1
  165. package/eds-breadcrumb.entry-Oe7Iu_rp.js +0 -1
  166. package/eds-card-project.entry-BQKGTSJB.js +0 -1
  167. package/eds-card-tags.entry-BjvxuQg1.mjs +0 -13
  168. package/eds-card-tags.entry-DAkoUUin.js +0 -1
  169. package/eds-components-section.entry-BsmIIcun.js +0 -141
  170. package/eds-dropdown_2.entry-Dhtc1LQe.js +0 -1
  171. package/eds-dropdown_2.entry-Ds54Abix.mjs +0 -115
  172. package/eds-footer.entry-CKr0MOpU.mjs +0 -22
  173. package/eds-footer.entry-DuNEl6BR.js +0 -1
  174. package/eds-form.entry-gO7sMMVG.js +0 -7153
  175. package/eds-form.entry-znKH1sqi.mjs +0 -7340
  176. package/eds-frame.entry-BE9_G-56.js +0 -1
  177. package/eds-frame.entry-COwMtc5z.mjs +0 -74
  178. package/eds-fullscreen-menu.entry-CRIb_lLm.js +0 -1
  179. package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +0 -74
  180. package/eds-header.entry-38uAVZoC.js +0 -2
  181. package/eds-header.entry-C0qfjzDY.mjs +0 -75
  182. package/eds-icon-arrow-diagonal.entry-BTLKc1cS.js +0 -1
  183. package/eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs +0 -13
  184. package/eds-icon-arrow-right.entry-Bv_6skZy.js +0 -1
  185. package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +0 -13
  186. package/eds-icon-bluesky.entry-B_WksyEk.mjs +0 -13
  187. package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +0 -13
  188. package/eds-icon-chevron-down.entry-OPmfChgp.js +0 -1
  189. package/eds-icon-chevron-left.entry-CRr4AWkS.mjs +0 -13
  190. package/eds-icon-chevron-left.entry-_zMMz-c9.js +0 -1
  191. package/eds-icon-chevron-right.entry-0FshDV46.js +0 -1
  192. package/eds-icon-chevron-up.entry-DGt49ffi.js +0 -1
  193. package/eds-icon-chevron-up.entry-NPODej6j.mjs +0 -13
  194. package/eds-icon-close.entry-BQULA4ki.mjs +0 -13
  195. package/eds-icon-copy.entry-Di_H0U8v.mjs +0 -13
  196. package/eds-icon-eu.entry-BTzpJByN.mjs +0 -13
  197. package/eds-icon-eu.entry-D77vjTJ9.js +0 -1
  198. package/eds-icon-linkedin.entry-BI2sjTDa.mjs +0 -13
  199. package/eds-icon-loader.entry-BoQTR6PV.mjs +0 -13
  200. package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +0 -13
  201. package/eds-icon-menu.entry-C7HmF2n5.mjs +0 -13
  202. package/eds-icon-menu.entry-DRd13IcH.js +0 -1
  203. package/eds-icon-search.entry-BrANR30M.mjs +0 -13
  204. package/eds-icon-search.entry-CubLvPO7.js +0 -1
  205. package/eds-icon-success.entry-CtMWWFTW.mjs +0 -13
  206. package/eds-icon-twitter.entry-BnhBJxrn.js +0 -1
  207. package/eds-icon-twitter.entry-DHTwTPKu.mjs +0 -13
  208. package/eds-icon-user.entry-GYJBVLsU.js +0 -1
  209. package/eds-icon-user.entry-LTXtb_m4.mjs +0 -13
  210. package/eds-icon-youtube.entry-BluzizaX.js +0 -1
  211. package/eds-icon-youtube.entry-BqP_g-Pb.mjs +0 -13
  212. package/eds-login.entry-CB_gy86p.mjs +0 -58
  213. package/eds-login.entry-CDj80EGl.js +0 -1
  214. package/eds-logo.entry-C4YV268f.mjs +0 -61
  215. package/eds-logo.entry-D-2GjdZl.js +0 -1
  216. package/eds-navigator.entry-Bd0BYBJE.js +0 -1
  217. package/eds-navigator.entry-DJHFUppb.mjs +0 -33
  218. package/eds-pagination_2.entry-N7stHjY-.js +0 -1
  219. package/eds-rating.entry-C1djorgY.js +0 -1
  220. package/eds-rating.entry-DJbkld-l.mjs +0 -48
  221. package/eds-section-core_2.entry-JyCa51Zs.js +0 -1
  222. package/eds-social-networks.entry-CWw8CODU.mjs +0 -50
  223. package/eds-social-networks.entry-CveQgGlC.js +0 -1
  224. package/eds-steps.entry-NC8mexCJ.js +0 -1
  225. package/eds-steps.entry-gPHX8t5y.mjs +0 -37
  226. package/eds-tab.entry-7_C7zAnd.mjs +0 -31
  227. package/eds-tab.entry-BI3X5Amp.js +0 -1
  228. package/eds-tabs-content.entry-BYK_ciTB.mjs +0 -106
  229. package/eds-tabs-content.entry-FqonRXn9.js +0 -1
  230. package/eds-tabs.entry-CCGBUoii.mjs +0 -112
  231. package/eds-tabs.entry-VauMxz1h.js +0 -1
  232. package/eds-timeline.entry-B-eABvy-.mjs +0 -51
  233. package/eds-timeline.entry-UjKckHoD.js +0 -1
  234. package/eds-trl.entry-C1CKXjzi.mjs +0 -34
  235. package/eds-trl.entry-DdPaX9aY.js +0 -1
  236. package/eds-user.entry-BX3nKCHB.mjs +0 -66
  237. package/eds-user.entry-CyEG-Wtm.js +0 -1
  238. package/eds-vertical-stepper.entry-CdmDXaW2.mjs +0 -27
  239. package/eds-vertical-stepper.entry-DphlSSa0.js +0 -1
  240. package/incorrect-use-of-colors.entry-BhygRTdu.js +0 -1
  241. package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +0 -42
  242. package/index-DvG3cC-8.js +0 -21
  243. package/keycloak-d502ec16-m7LwS-Gh.js +0 -9
  244. package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +0 -29
  245. package/logo-variations-horizontal_2.entry-G3ih093R.js +0 -7
  246. package/logo-wrong-usage.entry-BoBmwzLl.mjs +0 -14
  247. package/logo-wrong-usage.entry-l4pJC0KB.js +0 -1
  248. package/token-ratios.entry-hdef-MAq.js +0 -1
  249. package/token-spacing.entry-YXQwnYx0.mjs +0 -12
  250. package/token-spacing.entry-xhNHm9Tw.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./index-DvG3cC-8.js");var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},W={exports:{}};(function(f){var S=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./index-QKKBbj1_.js");var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},W={exports:{}};(function(f){var S=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
2
2
  * Prism: Lightweight, robust, elegant syntax highlighting
3
3
  *
4
4
  * @license MIT <https://opensource.org/licenses/MIT>
@@ -6,4 +6,4 @@
6
6
  * @namespace
7
7
  * @public
8
8
  */var i=function(u){var g=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,h={},s={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var l in e)e.hasOwnProperty(l)&&(n[l]=t(e[l],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(d,o){n[o]=t(d,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=g.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(g,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],l={};for(var d in r)if(r.hasOwnProperty(d)){if(d==e)for(var o in a)a.hasOwnProperty(o)&&(l[o]=a[o]);a.hasOwnProperty(d)||(l[d]=r[d])}var p=n[t];return n[t]=l,s.languages.DFS(s.languages,function(A,F){F===p&&A!=t&&(this[A]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=s.util.objId;for(var d in e)if(e.hasOwnProperty(d)){a.call(e,d,e[d],n||d);var o=e[d],p=s.util.type(o);p==="Object"&&!r[l(o)]?(r[l(o)]=!0,t(o,a,null,r)):p==="Array"&&!r[l(o)]&&(r[l(o)]=!0,t(o,a,d,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,l;l=n.elements[r++];)s.highlightElement(l,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(l,n);var d=t.textContent,o={element:t,language:n,grammar:r,code:d};function p(F){o.highlightedCode=F,s.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,s.hooks.run("after-highlight",o),s.hooks.run("complete",o),a&&a.call(o.element)}if(s.hooks.run("before-sanity-check",o),l=o.element.parentElement,l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!o.code){s.hooks.run("complete",o),a&&a.call(o.element);return}if(s.hooks.run("before-highlight",o),!o.grammar){p(s.util.encode(o.code));return}if(e&&u.Worker){var A=new Worker(s.filename);A.onmessage=function(F){p(F.data)},A.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))}else p(s.highlight(o.code,o.grammar,o.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new O;return I(r,r.head,t),R(t,r,e,r.head,0),D(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};u.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(p){n+=t(p,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},l=e.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(r.classes,l):r.classes.push(l)),s.hooks.run("wrap",r);var d="";for(var o in r.attributes)d+=" "+o+'="'+(r.attributes[o]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+d+">"+r.content+"</"+r.tag+">"};function T(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function R(t,e,a,n,r,l){for(var d in a)if(!(!a.hasOwnProperty(d)||!a[d])){var o=a[d];o=Array.isArray(o)?o:[o];for(var p=0;p<o.length;++p){if(l&&l.cause==d+","+p)return;var A=o[p],F=A.inside,j=!!A.lookbehind,X=!!A.greedy,V=A.alias;if(X&&!A.pattern.global){var J=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,J+"g")}for(var q=A.pattern||A,w=n.next,E=r;w!==e.tail&&!(l&&E>=l.reach);E+=w.value.length,w=w.next){var $=w.value;if(e.length>t.length)return;if(!($ instanceof m)){var L=1,k;if(X){if(k=T(q,E,t,j),!k||k.index>=t.length)break;var P=k.index,Q=k.index+k[0].length,_=E;for(_+=w.value.length;P>=_;)w=w.next,_+=w.value.length;if(_-=w.value.length,E=_,w.value instanceof m)continue;for(var C=w;C!==e.tail&&(_<Q||typeof C.value=="string");C=C.next)L++,_+=C.value.length;L--,$=t.slice(E,_),k.index-=E}else if(k=T(q,0,$,j),!k)continue;var P=k.index,N=k[0],G=$.slice(0,P),Y=$.slice(P+N.length),z=E+$.length;l&&z>l.reach&&(l.reach=z);var H=w.prev;G&&(H=I(e,H,G),E+=G.length),M(e,H,L);var ee=new m(d,F?s.tokenize(N,F):N,V,N);if(w=I(e,H,ee),Y&&I(e,w,Y),L>1){var B={cause:d+","+p,reach:z};R(t,e,a,w.prev,E,B),l&&B.reach>l.reach&&(l.reach=B.reach)}}}}}}function O(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function I(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function M(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function D(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!u.document)return u.addEventListener&&(s.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(s.highlight(n,s.languages[a],a)),r&&u.close()},!1)),s;var b=s.util.currentScript();b&&(s.filename=b.src,b.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var v=document.readyState;v==="loading"||v==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(S);f.exports&&(f.exports=i),typeof Z<"u"&&(Z.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&amp;/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(g,y){var h={};h["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},h.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:h}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[g]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return g}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(u,g){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[g,"language-"+g],inside:i.languages[g]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(u){var g=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+g.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+g.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+g.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+g.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:g,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var y=u.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",g=function(b,c){return"✖ Error "+b+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",h={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",T="loaded",R="failed",O="pre[data-src]:not(["+s+'="'+T+'"]):not(['+s+'="'+m+'"])';function I(b,c,v){var t=new XMLHttpRequest;t.open("GET",b,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?v(g(t.status,t.statusText)):v(y))},t.send(null)}function M(b){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(c){var v=Number(c[1]),t=c[2],e=c[3];return t?e?[v,Number(e)]:[v,void 0]:[v,v]}}i.hooks.add("before-highlightall",function(b){b.selector+=", "+O}),i.hooks.add("before-sanity-check",function(b){var c=b.element;if(c.matches(O)){b.code="",c.setAttribute(s,m);var v=c.appendChild(document.createElement("CODE"));v.textContent=u;var t=c.getAttribute("data-src"),e=b.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=h[a]||a}i.util.setLanguage(v,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),I(t,function(r){c.setAttribute(s,T);var l=M(c.getAttribute("data-range"));if(l){var d=r.split(/\r\n?|\n/g),o=l[0],p=l[1]==null?d.length:l[1];o<0&&(o+=d.length),o=Math.max(0,Math.min(o-1,d.length)),p<0&&(p+=d.length),p=Math.max(0,Math.min(p,d.length)),r=d.slice(o,p).join(`
9
- `),c.hasAttribute("data-start")||c.setAttribute("data-start",String(o+1))}v.textContent=r,i.highlightElement(v)},function(r){c.setAttribute(s,R),v.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var v=(c||document).querySelectorAll(O),t=0,e;e=v[t++];)i.highlightElement(e)}};var D=!1;i.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(W);const U=W.exports;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(f){var S="\\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",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:i,environment:{pattern:RegExp("\\$"+S),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+S),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],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})/};f.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+S),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+S),alias:"constant"},variable:u.variable,function:{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;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{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;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=f.languages.bash;for(var g=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],y=u.variable[1].inside,h=0;h<g.length;h++)y[g[h]]=f.languages.bash[g[h]];f.languages.sh=f.languages.bash,f.languages.shell=f.languages.bash})(Prism);(function(f){var S=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+i.source+"(?:[ ]+"+S.source+")?|"+S.source+"(?:[ ]+"+i.source+")?)",g=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),y=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(s,m){m=(m||"").replace(/m/g,"")+"m";var T=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return s});return RegExp(T,m)}f.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+g+"|"+y+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(y),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:S,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},f.languages.yml=f.languages.yaml})(Prism);(function(f){var S=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;f.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+S.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+S.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+S.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+S.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:S,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},f.languages.css.atrule.inside.rest=f.languages.css;var i=f.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(Prism);const te=`: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}`,ae=te,K=class{constructor(f){x.registerInstance(this,f),this.code=void 0,this.language=void 0,this.copied=!1}copyToClipboard(){navigator.clipboard.writeText(this.code).then(()=>{this.copied=!0,setTimeout(()=>this.copied=!1,2e3)})}getHighlightedCode(){return this.language&&U.languages[this.language]?U.highlight(this.code,U.languages[this.language],this.language):this.code}render(){return x.h("div",{key:"cb379e82bcf71345945b0b88397650ecd4992770",class:"relative bg-stronger rounded-sm"},x.h("div",{key:"945046d4fd747cd64a83155b421a897e380cc612",class:"text-inverse flex justify-between items-center p-8"},this.language?x.h("span",{class:"f-ui-03"},this.language.toUpperCase()):x.h("pre",{class:"bg-stronger pl-8",role:"region","aria-label":"Code block without language"},x.h("code",{innerHTML:this.getHighlightedCode()})),x.h("span",{key:"3f6c7e996101f0bb83fb8c9e6991a205a0b268c8","aria-hidden":"true",class:"w-20 h-20 mt-8"},x.h("eds-icon-wrapper",{key:"8ad9beb61058f29e688f6777233c61f7fb3ccfe8",icon:this.copied?"success":"copy",onClick:()=>this.copyToClipboard()})),x.h("span",{key:"a4f9a07906e1c2d9febb7ae789a3eed76dc422e9",class:"sr-only"},"Copy Code")),this.language&&x.h("pre",{key:"e31339126dd3cc885511aaa2bdf6f06f3a113c74",class:`language-${this.language} bg-stronger pl-8 pb-8`,role:"region","aria-label":`Code block in ${this.language}`},x.h("code",{key:"7efacd276f26a00f0f61793f6b8748259e1614b5",innerHTML:this.getHighlightedCode()})))}get el(){return x.getElement(this)}};K.style=ae;exports.eds_code_block=K;
9
+ `),c.hasAttribute("data-start")||c.setAttribute("data-start",String(o+1))}v.textContent=r,i.highlightElement(v)},function(r){c.setAttribute(s,R),v.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var v=(c||document).querySelectorAll(O),t=0,e;e=v[t++];)i.highlightElement(e)}};var D=!1;i.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(W);const U=W.exports;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(f){var S="\\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",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:i,environment:{pattern:RegExp("\\$"+S),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+S),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],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})/};f.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+S),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+S),alias:"constant"},variable:u.variable,function:{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;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{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;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=f.languages.bash;for(var g=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],y=u.variable[1].inside,h=0;h<g.length;h++)y[g[h]]=f.languages.bash[g[h]];f.languages.sh=f.languages.bash,f.languages.shell=f.languages.bash})(Prism);(function(f){var S=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+i.source+"(?:[ ]+"+S.source+")?|"+S.source+"(?:[ ]+"+i.source+")?)",g=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),y=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(s,m){m=(m||"").replace(/m/g,"")+"m";var T=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return s});return RegExp(T,m)}f.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+g+"|"+y+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(y),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:S,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},f.languages.yml=f.languages.yaml})(Prism);(function(f){var S=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;f.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+S.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+S.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+S.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+S.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:S,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},f.languages.css.atrule.inside.rest=f.languages.css;var i=f.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(Prism);const te=`: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}`,ae=te,K=class{constructor(f){x.registerInstance(this,f),this.code=void 0,this.language=void 0,this.copied=!1}copyToClipboard(){navigator.clipboard.writeText(this.code).then(()=>{this.copied=!0,setTimeout(()=>this.copied=!1,2e3)})}getHighlightedCode(){return this.language&&U.languages[this.language]?U.highlight(this.code,U.languages[this.language],this.language):this.code}render(){return x.h("div",{key:"98f5fe5e215e87c1eb024969b5e4f3ae1bd0cb0d",class:"relative bg-stronger rounded-sm"},x.h("div",{key:"173be873a0f41398bd080758d5a0bbdcc977dcf5",class:"text-inverse flex justify-between items-center p-8"},this.language?x.h("span",{class:"f-ui-03"},this.language.toUpperCase()):x.h("pre",{class:"bg-stronger pl-8",role:"region","aria-label":"Code block without language"},x.h("code",{innerHTML:this.getHighlightedCode()})),x.h("span",{key:"f8cb36cf89d19bf306c57168e61ccfde9a4d18ff","aria-hidden":"true",class:"w-20 h-20 mt-8"},x.h("eds-icon-wrapper",{key:"74f214c47dc647c2c254f3f9f96fba71e35133df",icon:this.copied?"success":"copy",onClick:()=>this.copyToClipboard()})),x.h("span",{key:"74e628574b481d68c2d2132a12fd07bb62c86fde",class:"sr-only"},"Copy Code")),this.language&&x.h("pre",{key:"19d2b813b6e86451a8a9047b954d99340fc3cd85",class:`language-${this.language} bg-stronger pl-8 pb-8`,role:"region","aria-label":`Code block in ${this.language}`},x.h("code",{key:"974eb2e2ef0d7dc90e012e421d64bf5b735761d1",innerHTML:this.getHighlightedCode()})))}get el(){return x.getElement(this)}};K.style=ae;exports.eds_code_block=K;
@@ -1,12 +1,12 @@
1
- import { r as t, h as e } from "./index-Df31uHzU.mjs";
2
- const a = () => e(
1
+ import { r as t, h as e } from "./index-DeCYK9qM.mjs";
2
+ const s = () => e(
3
3
  "div",
4
4
  { class: "static-content container" },
5
5
  e("h2", null, "Load the module"),
6
6
  e(
7
7
  "p",
8
8
  null,
9
- "Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
9
+ "Integrating the EBRAINS UI Components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
10
10
  " ",
11
11
  e("code", null, "head"),
12
12
  "."
@@ -16,6 +16,30 @@ const a = () => e(
16
16
  // Define custom elements
17
17
  defineCustomElements(window);
18
18
  <\/script>`, language: "javascript", "copy-label": "Copy Code" }),
19
+ e("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
20
+ e("eds-steps", { steps: [
21
+ {
22
+ title: "Import the Loader Module",
23
+ content: "The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components."
24
+ },
25
+ {
26
+ title: "Register Custom Elements",
27
+ content: "Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM."
28
+ },
29
+ {
30
+ title: "Lazy Loading in Action",
31
+ content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
32
+ },
33
+ {
34
+ title: "Optimized Performance",
35
+ content: "By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed."
36
+ }
37
+ ] }),
38
+ e("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
39
+ e("eds-code-block", { code: `<eds-button
40
+ label="my bytton"
41
+ intent="primary">
42
+ </eds-button>`, language: "html", "copy-label": "Copy Code" }),
19
43
  e("h2", null, "Load the styles"),
20
44
  e(
21
45
  "p",
@@ -25,26 +49,17 @@ const a = () => e(
25
49
  e("code", null, "head")
26
50
  ),
27
51
  e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
28
- e(
29
- "div",
30
- { class: "my-4" },
31
- e("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })
32
- ),
33
- e("h2", null, "Load the fonts"),
34
52
  e(
35
53
  "p",
36
54
  null,
37
- "To load the webfonts, add the tag below to the ",
55
+ "Note that, loading the predefined CSS framework above,",
56
+ " ",
57
+ e("b", null, "automatically loads the fonts so you can skip loading them separately"),
58
+ ". If you wish, however, to load the fonts, add the tag below to the ",
38
59
  e("code", null, "head")
39
60
  ),
40
- e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
41
- e("h2", null, "Component Usage"),
42
- e("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
43
- e("eds-code-block", { code: `<eds-button
44
- label="my bytton"
45
- intent="primary">
46
- </eds-button>`, language: "html", "copy-label": "Copy Code" })
47
- ), s = () => e(
61
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })
62
+ ), a = () => e(
48
63
  "div",
49
64
  null,
50
65
  e("p", null, "Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
@@ -77,12 +92,8 @@ const a = () => e(
77
92
  "div",
78
93
  null,
79
94
  e("h2", null, "React Wrappers"),
80
- e("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
81
- e(
82
- "div",
83
- { class: "my-8" },
84
- e("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })
85
- ),
95
+ e("p", null, "To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),
96
+ e("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
86
97
  e(
87
98
  "eds-section-core",
88
99
  { "section-title": "Example React App", "heading-level": "h3" },
@@ -184,12 +195,8 @@ export default App;
184
195
  "div",
185
196
  null,
186
197
  e("h2", null, "Vue Wrappers"),
187
- e("p", null, "Learn how to use our components in a Vue Application."),
188
- e("p", null, "Simply install the latest version of our NPM package."),
198
+ e("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
189
199
  e("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
190
- e("p", null, 'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),
191
- e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
192
- defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
193
200
  e(
194
201
  "h2",
195
202
  null,
@@ -208,7 +215,7 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
208
215
  e("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),
209
216
  e(
210
217
  "div",
211
- { class: "mt-8" },
218
+ { class: "my-8" },
212
219
  e("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })
213
220
  ),
214
221
  e("eds-code-block", { code: `<EdsAlert
@@ -219,7 +226,7 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
219
226
  ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
220
227
  e(
221
228
  "div",
222
- { class: "mt-8" },
229
+ { class: "my-8" },
223
230
  e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })
224
231
  ),
225
232
  e("eds-code-block", { code: `<EdsAlert
@@ -263,7 +270,7 @@ export default {
263
270
  "div",
264
271
  null,
265
272
  e("h2", null, "Angular Wrappers"),
266
- e("p", null, "Learn how to use our components in a Angular Application."),
273
+ e("p", null, "To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples."),
267
274
  e("eds-code-block", { code: "npm install @ebrains/angular", language: "javascript", "copy-label": "Copy Code" }),
268
275
  e("p", null, "Define the custom elements"),
269
276
  e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
@@ -292,9 +299,9 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
292
299
  renderContent() {
293
300
  switch (this.tabIndex) {
294
301
  case 0:
295
- return e(a, null);
296
- case 1:
297
302
  return e(s, null);
303
+ case 1:
304
+ return e(a, null);
298
305
  case 2:
299
306
  return e(o, null);
300
307
  case 3:
@@ -306,7 +313,7 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
306
313
  }
307
314
  }
308
315
  render() {
309
- return e("div", { key: "7e582a0eeafc2687229454532b5a7f66f91c1856", class: "container" }, this.renderContent());
316
+ return e("div", { key: "85fff494e98ff10bbcc630487a75d345e7cce78c", class: "container" }, this.renderContent());
310
317
  }
311
318
  };
312
319
  export {
@@ -0,0 +1,140 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QKKBbj1_.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating the EBRAINS UI Components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e.h("code",null,"head"),"."),e.h("eds-code-block",{code:`<script type='module'>
2
+ import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
3
+ // Define custom elements
4
+ defineCustomElements(window);
5
+ <\/script>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),e.h("eds-steps",{steps:[{title:"Import the Loader Module",content:"The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components."},{title:"Register Custom Elements",content:"Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM."},{title:"Lazy Loading in Action",content:"Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."},{title:"Optimized Performance",content:"By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed."}]}),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:`<eds-button
6
+ label="my bytton"
7
+ intent="primary">
8
+ </eds-button>`,language:"html","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("p",null,"Note that, loading the predefined CSS framework above,"," ",e.h("b",null,"automatically loads the fonts so you can skip loading them separately"),". If you wish, however, to load the fonts, add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"})),s=()=>e.h("div",null,e.h("p",null,"Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/assets",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"html","copy-label":"Copy Code"}))),a=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("eds-code-block",{code:`
9
+ import {
10
+ EdsHeader,
11
+ EdsFullscreenMenu,
12
+ EdsUser
13
+ } from "@ebrains/react";
14
+
15
+ interface User {
16
+ firstname: string;
17
+ lastname: string;
18
+ // Add any other properties your user object might have
19
+ }
20
+
21
+ interface AuthStatus {
22
+ authenticated: boolean;
23
+ user: User | null;
24
+ }
25
+
26
+ import { useEffect, useState } from "react";
27
+
28
+ export function App() {
29
+ const [authStatus, setAuthStatus] = useState<AuthStatus>({
30
+ authenticated: false,
31
+ user: null,
32
+ });
33
+ const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
34
+
35
+ // Use useEffect to render Stencil components dynamically after the component mounts
36
+ useEffect(() => {
37
+ const handleAuthStatusChange = (event: CustomEvent) => {
38
+ console.log(event.detail);
39
+ setAuthStatus(event.detail); // Set the entire object
40
+ };
41
+
42
+ document.addEventListener(
43
+ "authStatusChanged",
44
+ handleAuthStatusChange as EventListener,
45
+ );
46
+
47
+ return () => {
48
+ document.removeEventListener(
49
+ "authStatusChanged",
50
+ handleAuthStatusChange as EventListener,
51
+ );
52
+ };
53
+ }, []);
54
+
55
+ return (
56
+ <div>
57
+ <EdsHeader
58
+ homeUrl="/"
59
+ menuEnabled={true}
60
+ inverseHeader={false}
61
+ links={[
62
+ { label: "About", url: "#" },
63
+ { label: "Focus Areas", url: "#" },
64
+ { label: "News & Events", url: "#" },
65
+ { label: "Contact", url: "#" }
66
+ ]}
67
+ >
68
+ <div className="px-16">
69
+ <EdsUser
70
+ keycloak-url="http://localhost:8080"
71
+ keycloak-realm="nigeor-realm"
72
+ keycloak-client-id="stencil-app"
73
+ ></EdsUser>
74
+ </div>
75
+ </EdsHeader>
76
+
77
+ <EdsFullscreenMenu
78
+ home-url="/"
79
+ links={[
80
+ { label: "About", url: "#" },
81
+ { label: "Focus Areas", url: "#" },
82
+ { label: "News & Events", url: "#" },
83
+ { label: "Contact", url: "#" }
84
+ ]}
85
+ ></EdsFullscreenMenu>
86
+
87
+ <div>
88
+ User is{" "}
89
+ {authStatus.authenticated ? "authenticated" : "not authenticated"}
90
+ </div>
91
+ {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
92
+
93
+ <div id="main"></div>
94
+ </div>
95
+ );
96
+ }
97
+
98
+ export default App;
99
+
100
+ `,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
101
+ message="This is a default informational alert."
102
+ intent="default"
103
+ :pressableLabel="Press Me"
104
+ :pressableUrl="https://ebrains.eu"
105
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"success"})),e.h("eds-code-block",{code:`<EdsAlert
106
+ message="This is a default informational alert."
107
+ intent="default"
108
+ :pressableLabel.prop="Press Me"
109
+ :pressableUrl.prop="https://ebrains.eu"
110
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Using the ",e.h("b",null,".prop")," modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
111
+ <template>
112
+ <EdsHeader
113
+ :inverseHeader.prop="true"
114
+ :menuEnabled.prop="true">
115
+ </EdsHeader>
116
+ </template>
117
+
118
+ <script>
119
+
120
+ import { EdsHeader } from "@ebrains/vue";
121
+
122
+ export default {
123
+ name: "App",
124
+ components: {
125
+ EdsHeader,
126
+ }
127
+ };
128
+ <\/script>
129
+ `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Define the custom elements"),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
130
+ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Angular Custom Elements Schema"),e.h("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e.h("eds-code-block",{code:`
131
+ <div class="container">
132
+ <eds-breadcrumb
133
+ intent="tertiary"
134
+ items="[
135
+ { "label": "Home", "url": "#" },
136
+ { "label": "Products", "url": "#" },
137
+ ]">
138
+ </eds-breadcrumb>
139
+ <eds-footer></eds-footer>
140
+ </div>`,language:"javascript","copy-label":"Copy Code"}))),r=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(s,null);case 2:return e.h(a,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"85fff494e98ff10bbcc630487a75d345e7cce78c",class:"container"},this.renderContent())}};exports.eds_components_section=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),s="",i=s,t=class{constructor(o){e.registerInstance(this,o),this.buttonText="Cookies Preferences",this.intent=void 0,this.showMatomoNotice=!1,this.noticeKey=0}toggleCookiesPopup(){sessionStorage.removeItem("matomo-deferred"),this.showMatomoNotice?this.noticeKey=this.noticeKey+1:this.showMatomoNotice=!0}render(){return e.h("div",{key:"ca5d44522f94e9ea009c657c5eae6e357cd0d13a"},e.h("eds-link",{key:"563a369e2ed44d08a6dd47922c1c1c888e81543a",size:"small",intent:this.intent,label:this.buttonText,onClick:()=>this.toggleCookiesPopup()}),this.showMatomoNotice&&e.h("eds-matomo-notice",{"force-show":!0,key:this.noticeKey}))}};t.style=i;exports.eds_cookies_preference=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QKKBbj1_.js"),s="",i=s,t=class{constructor(o){e.registerInstance(this,o),this.buttonText="Cookies Preferences",this.intent=void 0,this.showMatomoNotice=!1,this.noticeKey=0}toggleCookiesPopup(){sessionStorage.removeItem("matomo-deferred"),this.showMatomoNotice?this.noticeKey=this.noticeKey+1:this.showMatomoNotice=!0}render(){return e.h("div",{key:"13e1244d4e151f091eaca1d22dbed009bcb97786"},e.h("eds-link",{key:"4cfc54b447c93824f98da1f990a28fdb61018afe",size:"small",intent:this.intent,label:this.buttonText,onClick:()=>this.toggleCookiesPopup()}),this.showMatomoNotice&&e.h("eds-matomo-notice",{"force-show":!0,key:this.noticeKey}))}};t.style=i;exports.eds_cookies_preference=t;
@@ -1,5 +1,5 @@
1
- import { r as t, h as e } from "./index-Df31uHzU.mjs";
2
- const s = "", i = s, c = class {
1
+ import { r as t, h as e } from "./index-DeCYK9qM.mjs";
2
+ const s = "", i = s, n = class {
3
3
  constructor(o) {
4
4
  t(this, o), this.buttonText = "Cookies Preferences", this.intent = void 0, this.showMatomoNotice = !1, this.noticeKey = 0;
5
5
  }
@@ -11,10 +11,10 @@ const s = "", i = s, c = class {
11
11
  sessionStorage.removeItem("matomo-deferred"), this.showMatomoNotice ? this.noticeKey = this.noticeKey + 1 : this.showMatomoNotice = !0;
12
12
  }
13
13
  render() {
14
- return e("div", { key: "ca5d44522f94e9ea009c657c5eae6e357cd0d13a" }, e("eds-link", { key: "563a369e2ed44d08a6dd47922c1c1c888e81543a", size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && e("eds-matomo-notice", { "force-show": !0, key: this.noticeKey }));
14
+ return e("div", { key: "13e1244d4e151f091eaca1d22dbed009bcb97786" }, e("eds-link", { key: "4cfc54b447c93824f98da1f990a28fdb61018afe", size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && e("eds-matomo-notice", { "force-show": !0, key: this.noticeKey }));
15
15
  }
16
16
  };
17
- c.style = i;
17
+ n.style = i;
18
18
  export {
19
- c as eds_cookies_preference
19
+ n as eds_cookies_preference
20
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QKKBbj1_.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"480cc269ee31de61190b4ae7502c3c17e673c3f9",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
@@ -1,4 +1,4 @@
1
- import { r as l, h as e } from "./index-Df31uHzU.mjs";
1
+ import { r as l, h as e } from "./index-DeCYK9qM.mjs";
2
2
  const r = class {
3
3
  constructor(t) {
4
4
  l(this, t), this.tabIndex = void 0;
@@ -14,7 +14,7 @@ const r = class {
14
14
  }
15
15
  }
16
16
  render() {
17
- return e("div", { key: "e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a", class: "container" }, this.renderContent());
17
+ return e("div", { key: "480cc269ee31de61190b4ae7502c3c17e673c3f9", class: "container" }, this.renderContent());
18
18
  }
19
19
  };
20
20
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"b140f7650e5e01711dc0778b04af83f9d004efc7",class:"container"},this.renderContent())}};exports.eds_docs_tokens=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QKKBbj1_.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"64ee8c20ec7dca1ea1a742ef53f0315c81107ead",class:"container"},this.renderContent())}};exports.eds_docs_tokens=n;
@@ -1,4 +1,4 @@
1
- import { r as n, h as e } from "./index-Df31uHzU.mjs";
1
+ import { r as n, h as e } from "./index-DeCYK9qM.mjs";
2
2
  const r = class {
3
3
  constructor(t) {
4
4
  n(this, t), this.tabIndex = void 0;
@@ -22,7 +22,7 @@ const r = class {
22
22
  }
23
23
  }
24
24
  render() {
25
- return e("div", { key: "b140f7650e5e01711dc0778b04af83f9d004efc7", class: "container" }, this.renderContent());
25
+ return e("div", { key: "64ee8c20ec7dca1ea1a742ef53f0315c81107ead", class: "container" }, this.renderContent());
26
26
  }
27
27
  };
28
28
  export {
@@ -0,0 +1,53 @@
1
+ import { r as a, c as n, h as t, g as r } from "./index-DeCYK9qM.mjs";
2
+ import { p as f } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
3
+ const o = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.inline{display:inline}.grid{display:grid}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}", g = o, h = class {
4
+ constructor(e) {
5
+ a(this, e), this.rating = n(this, "rating", 7), this.type = "star", this.count = 5, this.label = "Rate your Experience!", this.description = "This is a description!", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
6
+ }
7
+ /**
8
+ * Lifecycle method that runs when the component has fully loaded.
9
+ * It emits a custom event for each `eds-button` element contained within the breadcrumb.
10
+ */
11
+ componentDidLoad() {
12
+ this.el.shadowRoot.querySelectorAll("eds-button").forEach((i) => {
13
+ this.emitContext(i);
14
+ });
15
+ }
16
+ /**
17
+ * Emits a custom event called `parentContext` for a given link element.
18
+ * This event provides context information about the breadcrumb component.
19
+ *
20
+ * @param btnElement - The link element to which the event will be dispatched.
21
+ */
22
+ emitContext(e) {
23
+ const i = new CustomEvent("parentContext", {
24
+ detail: {
25
+ componentName: this.el.tagName.toLowerCase(),
26
+ identifier: this.selectedRating
27
+ }
28
+ });
29
+ e.dispatchEvent(i);
30
+ }
31
+ /**
32
+ * Parses the `textMapping` prop into an array of strings.
33
+ */
34
+ get parsedMappings() {
35
+ return f(this.textMapping);
36
+ }
37
+ /**
38
+ * Listens for global custom events to open the modal.
39
+ */
40
+ ratingUpdated(e) {
41
+ this.selectedRating = e.detail;
42
+ }
43
+ render() {
44
+ return t("div", { key: "3cdbbc2eb256ca4f2008f03e90ae9aacb6afbaac", class: "grid inline" }, t("p", { key: "afb5aa7ab4a8c3117a4db0a5cbeca0195ccec3e8", class: "f-heading-03 my-4" }, this.label), t("p", { key: "9b1b83b31d05d10943bcf9e9a413686caa9e49a7", class: "f-body-02 text-light" }, this.description), t("eds-rating", { key: "4535006f72ee21d168d9b42da6a5c3528417d2f4", "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "b90b59aaae1e2bc6071e1488f332d0c154bdb25a", class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]));
45
+ }
46
+ get el() {
47
+ return r(this);
48
+ }
49
+ };
50
+ h.style = g;
51
+ export {
52
+ h as eds_feedback
53
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QKKBbj1_.js"),n=require("./sharedUtils-a550989c-m4pF1Vqy.js"),r="h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.inline{display:inline}.grid{display:grid}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}",f=r,a=class{constructor(t){e.registerInstance(this,t),this.rating=e.createEvent(this,"rating",7),this.type="star",this.count=5,this.label="Rate your Experience!",this.description="This is a description!",this.textMapping=["Very Poor","Poor","Average","Good","Excellent"],this.selectedRating=0}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.selectedRating}});t.dispatchEvent(i)}get parsedMappings(){return n.parseData(this.textMapping)}ratingUpdated(t){this.selectedRating=t.detail}render(){return e.h("div",{key:"3cdbbc2eb256ca4f2008f03e90ae9aacb6afbaac",class:"grid inline"},e.h("p",{key:"afb5aa7ab4a8c3117a4db0a5cbeca0195ccec3e8",class:"f-heading-03 my-4"},this.label),e.h("p",{key:"9b1b83b31d05d10943bcf9e9a413686caa9e49a7",class:"f-body-02 text-light"},this.description),e.h("eds-rating",{key:"4535006f72ee21d168d9b42da6a5c3528417d2f4","rating-type":this.type,"rating-count":this.count}),this.selectedRating>0&&this.parsedMappings[this.selectedRating-1]&&e.h("span",{key:"b90b59aaae1e2bc6071e1488f332d0c154bdb25a",class:"f-ui-04 text-lighter"},this.parsedMappings[this.selectedRating-1]))}get el(){return e.getElement(this)}};a.style=f;exports.eds_feedback=a;