@holoviz/panel 0.14.4 → 1.0.0-a.2

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 (364) hide show
  1. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.iife.min.js +217 -0
  2. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.js +28286 -0
  3. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.min.js +217 -0
  4. package/dist/bundled/bootstrap/css/bootstrap.css +688 -0
  5. package/dist/bundled/bootstrap5/css/bootstrap-grid.css +4226 -0
  6. package/dist/bundled/bootstrap5/css/bootstrap-grid.min.css +6 -0
  7. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.css +4225 -0
  8. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.min.css +6 -0
  9. package/dist/bundled/bootstrap5/css/bootstrap-reboot.css +591 -0
  10. package/dist/bundled/bootstrap5/css/bootstrap-reboot.min.css +6 -0
  11. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.css +588 -0
  12. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.min.css +6 -0
  13. package/dist/bundled/bootstrap5/css/bootstrap-utilities.css +5099 -0
  14. package/dist/bundled/bootstrap5/css/bootstrap-utilities.min.css +6 -0
  15. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.css +5090 -0
  16. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.min.css +6 -0
  17. package/dist/bundled/bootstrap5/css/bootstrap.css +11783 -0
  18. package/dist/bundled/bootstrap5/css/bootstrap.min.css +6 -0
  19. package/dist/bundled/bootstrap5/css/bootstrap.rtl.css +11747 -0
  20. package/dist/bundled/bootstrap5/css/bootstrap.rtl.min.css +6 -0
  21. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js +6295 -0
  22. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js.map +1 -0
  23. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +7 -0
  24. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js.map +1 -0
  25. package/dist/bundled/bootstrap5/js/bootstrap.esm.js +4422 -0
  26. package/dist/bundled/bootstrap5/js/bootstrap.esm.js.map +1 -0
  27. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js +7 -0
  28. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js.map +1 -0
  29. package/dist/bundled/bootstrap5/js/bootstrap.js +4468 -0
  30. package/dist/bundled/bootstrap5/js/bootstrap.js.map +1 -0
  31. package/dist/bundled/bootstrap5/js/bootstrap.min.js +7 -0
  32. package/dist/bundled/bootstrap5/js/bootstrap.min.js.map +1 -0
  33. package/dist/bundled/bootstrapdarktheme/bootstrap_dark.css +170 -0
  34. package/dist/bundled/bootstrapdefaulttheme/bootstrap_default.css +120 -0
  35. package/dist/bundled/bootstraptemplate/bootstrap.css +119 -77
  36. package/dist/bundled/darktheme/dark.css +33 -106
  37. package/dist/bundled/datatabulator/luxon/build/global/luxon.min.js.map +1 -1
  38. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator.min.css +2 -0
  39. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bootstrap3.min.css +2 -0
  40. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bootstrap4.min.css +2 -0
  41. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bulma.min.css +2 -0
  42. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_fast.min.css +1 -0
  43. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_materialize.min.css +2 -0
  44. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_midnight.min.css +2 -0
  45. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_modern.min.css +2 -0
  46. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_semanticui.min.css +2 -0
  47. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_simple.min.css +2 -0
  48. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_site.min.css +2 -0
  49. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/js/tabulator.js +26077 -0
  50. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/js/tabulator.js.map +1 -0
  51. package/dist/bundled/defaulttheme/default.css +33 -2
  52. package/dist/bundled/fast/css/fast.css +919 -0
  53. package/dist/bundled/fast/js/fast_design.js +87 -0
  54. package/dist/bundled/fastbasetemplate/fast.css +335 -0
  55. package/dist/bundled/fastgridtemplate/fast_grid_template.css +256 -232
  56. package/dist/bundled/golden-layout@1.5.9/dist/css/goldenlayout-base.css +1 -0
  57. package/dist/bundled/golden-layout@1.5.9/dist/css/theme/goldenlayout-dark-theme.css +1 -0
  58. package/dist/bundled/goldentemplate/golden.css +2 -22
  59. package/dist/bundled/material/css/material.css +443 -0
  60. package/dist/bundled/materialtemplate/dark.css +2 -20
  61. package/dist/bundled/materialtemplate/default.css +2 -17
  62. package/dist/bundled/materialtemplate/material.css +119 -114
  63. package/dist/bundled/materialthememixin/material_variables.css +19 -0
  64. package/dist/bundled/native/css/native.css +34 -0
  65. package/dist/bundled/notificationarea/panel/1.0.0-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
  66. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
  67. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
  68. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
  69. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
  70. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/fonts.css +1 -0
  71. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material-dark.css +1 -0
  72. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material.css +1 -0
  73. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/monokai.css +1 -0
  74. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized-dark.css +1 -0
  75. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized.css +1 -0
  76. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/themes.css +1 -0
  77. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/vaporwave.css +1 -0
  78. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/variables.css +0 -0
  79. package/dist/bundled/plotlyplot/panel/1.0.0-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
  80. package/dist/bundled/react-dom@17/umd/react-dom.production.min.js +245 -0
  81. package/dist/bundled/react@17/umd/react.production.min.js +31 -0
  82. package/dist/bundled/reacttemplate/react.css +0 -12
  83. package/dist/bundled/vanillatemplate/vanilla.css +129 -134
  84. package/dist/css/alerts.css +64 -64
  85. package/dist/css/booleanstatus.css +48 -0
  86. package/dist/css/card.css +55 -39
  87. package/dist/css/dataframe.css +7 -2
  88. package/dist/css/debugger.css +16 -10
  89. package/dist/css/divider.css +10 -0
  90. package/dist/css/editable_slider.css +22 -0
  91. package/dist/css/katex.css +3 -0
  92. package/dist/css/loading.css +5 -6
  93. package/dist/css/loadingspinner.css +119 -0
  94. package/dist/css/markdown.css +2 -1
  95. package/dist/css/perspective-datatable.css +504 -0
  96. package/dist/css/plotly.css +246 -0
  97. package/dist/css/progress.css +209 -0
  98. package/dist/css/widgetbox.css +9 -0
  99. package/dist/css/widgets.css +0 -305
  100. package/dist/dts/styles/alerts.css.d.ts +3 -0
  101. package/dist/dts/styles/booleanstatus.css.d.ts +3 -0
  102. package/dist/dts/styles/card.css.d.ts +3 -0
  103. package/dist/dts/styles/dataframe.css.d.ts +3 -0
  104. package/dist/dts/styles/debugger.css.d.ts +3 -0
  105. package/dist/dts/styles/divider.css.d.ts +4 -0
  106. package/dist/dts/styles/editable_slider.css.d.ts +8 -0
  107. package/dist/dts/styles/json.css.d.ts +3 -0
  108. package/dist/dts/styles/katex.css.d.ts +3 -0
  109. package/dist/dts/styles/loading.css.d.ts +3 -0
  110. package/dist/dts/styles/loadingspinner.css.d.ts +3 -0
  111. package/dist/dts/styles/markdown.css.d.ts +3 -0
  112. package/dist/dts/styles/perspective-datatable.css.d.ts +3 -0
  113. package/dist/dts/styles/plotly.css.d.ts +3 -0
  114. package/dist/dts/styles/progress.css.d.ts +3 -0
  115. package/dist/dts/styles/widgetbox.css.d.ts +3 -0
  116. package/dist/dts/styles/widgets.css.d.ts +4 -0
  117. package/dist/lib/models/ace.d.ts +3 -5
  118. package/dist/lib/models/ace.js +24 -23
  119. package/dist/lib/models/ace.js.map +1 -1
  120. package/dist/lib/models/audio.d.ts +2 -4
  121. package/dist/lib/models/audio.js +18 -18
  122. package/dist/lib/models/audio.js.map +1 -1
  123. package/dist/lib/models/card.d.ts +3 -3
  124. package/dist/lib/models/card.js +54 -63
  125. package/dist/lib/models/card.js.map +1 -1
  126. package/dist/lib/models/comm_manager.d.ts +2 -2
  127. package/dist/lib/models/comm_manager.js +20 -19
  128. package/dist/lib/models/comm_manager.js.map +1 -1
  129. package/dist/lib/models/data.js +1 -1
  130. package/dist/lib/models/data.js.map +1 -1
  131. package/dist/lib/models/datetime_picker.d.ts +8 -7
  132. package/dist/lib/models/datetime_picker.js +130 -36
  133. package/dist/lib/models/datetime_picker.js.map +1 -1
  134. package/dist/lib/models/deckgl.d.ts +2 -4
  135. package/dist/lib/models/deckgl.js +24 -25
  136. package/dist/lib/models/deckgl.js.map +1 -1
  137. package/dist/lib/models/echarts.d.ts +3 -2
  138. package/dist/lib/models/echarts.js +22 -12
  139. package/dist/lib/models/echarts.js.map +1 -1
  140. package/dist/lib/models/file_download.d.ts +2 -2
  141. package/dist/lib/models/file_download.js +20 -19
  142. package/dist/lib/models/file_download.js.map +1 -1
  143. package/dist/lib/models/html.d.ts +4 -4
  144. package/dist/lib/models/html.js +23 -17
  145. package/dist/lib/models/html.js.map +1 -1
  146. package/dist/lib/models/index.d.ts +1 -2
  147. package/dist/lib/models/index.js +1 -2
  148. package/dist/lib/models/index.js.map +1 -1
  149. package/dist/lib/models/ipywidget.d.ts +2 -6
  150. package/dist/lib/models/ipywidget.js +14 -24
  151. package/dist/lib/models/ipywidget.js.map +1 -1
  152. package/dist/lib/models/json.d.ts +1 -1
  153. package/dist/lib/models/json.js +14 -12
  154. package/dist/lib/models/json.js.map +1 -1
  155. package/dist/lib/models/jsoneditor.d.ts +8 -7
  156. package/dist/lib/models/jsoneditor.js +30 -19
  157. package/dist/lib/models/jsoneditor.js.map +1 -1
  158. package/dist/lib/models/katex.d.ts +0 -1
  159. package/dist/lib/models/katex.js +7 -6
  160. package/dist/lib/models/katex.js.map +1 -1
  161. package/dist/lib/models/layout.d.ts +25 -22
  162. package/dist/lib/models/layout.js +75 -81
  163. package/dist/lib/models/layout.js.map +1 -1
  164. package/dist/lib/models/location.d.ts +0 -1
  165. package/dist/lib/models/location.js +15 -14
  166. package/dist/lib/models/location.js.map +1 -1
  167. package/dist/lib/models/mathjax.d.ts +0 -3
  168. package/dist/lib/models/mathjax.js +6 -16
  169. package/dist/lib/models/mathjax.js.map +1 -1
  170. package/dist/lib/models/pdf.d.ts +24 -0
  171. package/dist/lib/models/pdf.js +62 -0
  172. package/dist/lib/models/pdf.js.map +1 -0
  173. package/dist/lib/models/perspective.d.ts +5 -10
  174. package/dist/lib/models/perspective.js +75 -87
  175. package/dist/lib/models/perspective.js.map +1 -1
  176. package/dist/lib/models/player.d.ts +0 -1
  177. package/dist/lib/models/player.js +18 -17
  178. package/dist/lib/models/player.js.map +1 -1
  179. package/dist/lib/models/plotly.d.ts +3 -7
  180. package/dist/lib/models/plotly.js +60 -67
  181. package/dist/lib/models/plotly.js.map +1 -1
  182. package/dist/lib/models/progress.d.ts +4 -7
  183. package/dist/lib/models/progress.js +28 -32
  184. package/dist/lib/models/progress.js.map +1 -1
  185. package/dist/lib/models/quill.d.ts +3 -6
  186. package/dist/lib/models/quill.js +25 -24
  187. package/dist/lib/models/quill.js.map +1 -1
  188. package/dist/lib/models/reactive_html.d.ts +6 -12
  189. package/dist/lib/models/reactive_html.js +45 -121
  190. package/dist/lib/models/reactive_html.js.map +1 -1
  191. package/dist/lib/models/singleselect.d.ts +0 -1
  192. package/dist/lib/models/singleselect.js +11 -10
  193. package/dist/lib/models/singleselect.js.map +1 -1
  194. package/dist/lib/models/speech_to_text.d.ts +1 -2
  195. package/dist/lib/models/speech_to_text.js +27 -26
  196. package/dist/lib/models/speech_to_text.js.map +1 -1
  197. package/dist/lib/models/state.d.ts +0 -2
  198. package/dist/lib/models/state.js +12 -13
  199. package/dist/lib/models/state.js.map +1 -1
  200. package/dist/lib/models/tabulator.d.ts +9 -16
  201. package/dist/lib/models/tabulator.js +111 -196
  202. package/dist/lib/models/tabulator.js.map +1 -1
  203. package/dist/lib/models/terminal.d.ts +5 -8
  204. package/dist/lib/models/terminal.js +23 -27
  205. package/dist/lib/models/terminal.js.map +1 -1
  206. package/dist/lib/models/text_to_speech.d.ts +1 -2
  207. package/dist/lib/models/text_to_speech.js +16 -15
  208. package/dist/lib/models/text_to_speech.js.map +1 -1
  209. package/dist/lib/models/trend.d.ts +1 -2
  210. package/dist/lib/models/trend.js +24 -23
  211. package/dist/lib/models/trend.js.map +1 -1
  212. package/dist/lib/models/vega.d.ts +6 -7
  213. package/dist/lib/models/vega.js +34 -37
  214. package/dist/lib/models/vega.js.map +1 -1
  215. package/dist/lib/models/video.d.ts +2 -4
  216. package/dist/lib/models/video.js +18 -18
  217. package/dist/lib/models/video.js.map +1 -1
  218. package/dist/lib/models/videostream.d.ts +2 -4
  219. package/dist/lib/models/videostream.js +19 -19
  220. package/dist/lib/models/videostream.js.map +1 -1
  221. package/dist/lib/models/vtk/util.d.ts +4 -4
  222. package/dist/lib/models/vtk/vtkaxes.d.ts +1 -2
  223. package/dist/lib/models/vtk/vtkaxes.js +15 -14
  224. package/dist/lib/models/vtk/vtkaxes.js.map +1 -1
  225. package/dist/lib/models/vtk/vtkjs.d.ts +0 -1
  226. package/dist/lib/models/vtk/vtkjs.js +9 -8
  227. package/dist/lib/models/vtk/vtkjs.js.map +1 -1
  228. package/dist/lib/models/vtk/vtklayout.d.ts +2 -5
  229. package/dist/lib/models/vtk/vtklayout.js +24 -30
  230. package/dist/lib/models/vtk/vtklayout.js.map +1 -1
  231. package/dist/lib/models/vtk/vtksynchronized.d.ts +0 -1
  232. package/dist/lib/models/vtk/vtksynchronized.js +17 -16
  233. package/dist/lib/models/vtk/vtksynchronized.js.map +1 -1
  234. package/dist/lib/models/vtk/vtkvolume.d.ts +0 -1
  235. package/dist/lib/models/vtk/vtkvolume.js +27 -26
  236. package/dist/lib/models/vtk/vtkvolume.js.map +1 -1
  237. package/dist/lib/styles/alerts.css.d.ts +1 -2
  238. package/dist/lib/styles/alerts.css.js +1 -139
  239. package/dist/lib/styles/booleanstatus.css.d.ts +1 -0
  240. package/dist/lib/styles/booleanstatus.css.js +1 -0
  241. package/dist/lib/styles/card.css.d.ts +1 -2
  242. package/dist/lib/styles/card.css.js +1 -43
  243. package/dist/lib/styles/dataframe.css.d.ts +1 -2
  244. package/dist/lib/styles/dataframe.css.js +1 -44
  245. package/dist/lib/styles/debugger.css.d.ts +1 -2
  246. package/dist/lib/styles/debugger.css.js +1 -68
  247. package/dist/lib/styles/divider.css.d.ts +2 -0
  248. package/dist/lib/styles/divider.css.js +2 -0
  249. package/dist/lib/styles/editable_slider.css.d.ts +6 -0
  250. package/dist/lib/styles/editable_slider.css.js +6 -0
  251. package/dist/lib/styles/json.css.d.ts +1 -2
  252. package/dist/lib/styles/json.css.js +1 -197
  253. package/dist/lib/styles/katex.css.d.ts +1 -0
  254. package/dist/lib/styles/katex.css.js +1 -0
  255. package/dist/lib/styles/loading.css.d.ts +1 -2
  256. package/dist/lib/styles/loading.css.js +1 -31
  257. package/dist/lib/styles/loadingspinner.css.d.ts +1 -0
  258. package/dist/lib/styles/loadingspinner.css.js +17 -0
  259. package/dist/lib/styles/markdown.css.d.ts +1 -2
  260. package/dist/lib/styles/markdown.css.js +1 -91
  261. package/dist/lib/styles/perspective-datatable.css.d.ts +1 -0
  262. package/dist/lib/styles/perspective-datatable.css.js +1 -0
  263. package/dist/lib/styles/plotly.css.d.ts +1 -0
  264. package/dist/lib/styles/plotly.css.js +1 -0
  265. package/dist/lib/styles/progress.css.d.ts +1 -0
  266. package/dist/lib/styles/progress.css.js +22 -0
  267. package/dist/lib/styles/widgetbox.css.d.ts +1 -0
  268. package/dist/lib/styles/widgetbox.css.js +1 -0
  269. package/dist/lib/styles/widgets.css.d.ts +2 -2
  270. package/dist/lib/styles/widgets.css.js +2 -320
  271. package/dist/panel.js +4648 -6067
  272. package/dist/panel.js.map +1 -1
  273. package/dist/panel.json +1 -1
  274. package/dist/panel.min.js +65 -102
  275. package/dist/wheels/bokeh-3.1.0rc1-py3-none-any.whl +0 -0
  276. package/dist/wheels/{panel-0.14.4-py3-none-any.whl → panel-1.0.0a2-py3-none-any.whl} +0 -0
  277. package/package.json +5 -4
  278. package/dist/bundled/bootstraptemplate/dark.css +0 -19
  279. package/dist/bundled/css/golden-layout@1.5.9/src/css/goldenlayout-base.css +0 -1
  280. package/dist/bundled/css/panel/0.14.4/dist/bundled/bootstrap4/css/bootstrap.min.css +0 -2
  281. package/dist/bundled/css/panel/0.14.4/dist/bundled/font-awesome/css/all.min.css +0 -2
  282. package/dist/bundled/datatabulator/@holoviz/panel@0.14.4/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  283. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  284. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator.min.css +0 -2
  285. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bootstrap3.min.css +0 -2
  286. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bootstrap4.min.css +0 -2
  287. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bulma.min.css +0 -2
  288. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_materialize.min.css +0 -2
  289. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_midnight.min.css +0 -2
  290. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_modern.min.css +0 -2
  291. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_semanticui.min.css +0 -2
  292. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_simple.min.css +0 -2
  293. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_site.min.css +0 -2
  294. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/js/tabulator.js +0 -27481
  295. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/js/tabulator.js.map +0 -1
  296. package/dist/bundled/fastbasetemplate/fast_awesome.css +0 -13
  297. package/dist/bundled/fastbasetemplate/fast_bokeh.css +0 -1646
  298. package/dist/bundled/fastbasetemplate/fast_bokeh_slickgrid.css +0 -200
  299. package/dist/bundled/fastbasetemplate/fast_panel.css +0 -53
  300. package/dist/bundled/fastbasetemplate/fast_panel_dataframe.css +0 -14
  301. package/dist/bundled/fastbasetemplate/fast_panel_markdown.css +0 -23
  302. package/dist/bundled/fastbasetemplate/fast_panel_widgets.css +0 -301
  303. package/dist/bundled/fastbasetemplate/fast_root.css +0 -41
  304. package/dist/bundled/fastdarktheme/fast_root_dark.css +0 -4
  305. package/dist/bundled/fastdefaulttheme/fast_root_default.css +0 -4
  306. package/dist/bundled/fastgridtemplate/dark.css +0 -26
  307. package/dist/bundled/fastgridtemplate/default.css +0 -4
  308. package/dist/bundled/fastlisttemplate/dark.css +0 -13
  309. package/dist/bundled/fastlisttemplate/default.css +0 -1
  310. package/dist/bundled/fastlisttemplate/fast_list_template.css +0 -237
  311. package/dist/bundled/goldentemplate/dark.css +0 -26
  312. package/dist/bundled/goldentemplate/default.css +0 -23
  313. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/array-pixel-blob.js +0 -39
  314. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-blending.js +0 -270
  315. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-converters.js +0 -524
  316. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsl.js +0 -42
  317. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsv.js +0 -42
  318. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-interpolation.js +0 -133
  319. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lab.js +0 -47
  320. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lch.js +0 -50
  321. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-palette.js +0 -285
  322. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-quantization.js +0 -135
  323. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-rgba-64.js +0 -95
  324. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-scale.js +0 -176
  325. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-xyz.js +0 -50
  326. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/component-state-color-palette.js +0 -113
  327. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/histogram.js +0 -76
  328. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/index.js +0 -19
  329. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/math-utilities.js +0 -138
  330. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/named-colors.js +0 -743
  331. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/palette-extractor.js +0 -134
  332. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/parse-color.js +0 -219
  333. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-blob.js +0 -72
  334. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-box.js +0 -249
  335. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/harness.js +0 -33
  336. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/server.js +0 -36
  337. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.iife.min.js +0 -19
  338. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.js +0 -25813
  339. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.min.js +0 -19
  340. package/dist/bundled/js/panel/0.14.4/dist/bundled/bootstrap4/js/bootstrap.bundle.min.js +0 -2
  341. package/dist/bundled/js/panel/0.14.4/dist/bundled/jquery/jquery.slim.min.js +0 -2
  342. package/dist/bundled/js/react-dom@18/umd/react-dom.production.min.js +0 -267
  343. package/dist/bundled/js/react@18/umd/react.production.min.js +0 -31
  344. package/dist/bundled/notificationarea/panel/0.14.4/dist/bundled/font-awesome/css/all.min.css +0 -2
  345. package/dist/bundled/plotlyplot/panel/0.14.4/dist/bundled/jquery/jquery.slim.min.js +0 -2
  346. package/dist/bundled/reacttemplate/dark.css +0 -18
  347. package/dist/bundled/reacttemplate/default.css +0 -12
  348. package/dist/bundled/theme/dark.css +0 -107
  349. package/dist/bundled/theme/default.css +0 -3
  350. package/dist/bundled/vanillatemplate/default.css +0 -8
  351. package/dist/idom/package.json +0 -38
  352. package/dist/lib/models/idom.d.ts +0 -36
  353. package/dist/lib/models/idom.js +0 -239
  354. package/dist/lib/models/idom.js.map +0 -1
  355. package/dist/lib/models/tabs.d.ts +0 -24
  356. package/dist/lib/models/tabs.js +0 -231
  357. package/dist/lib/models/tabs.js.map +0 -1
  358. package/dist/wheels/bokeh-2.4.3-py3-none-any.whl +0 -0
  359. /package/dist/bundled/{js/babel-standalone@latest → babel-standalone@latest}/babel.min.js +0 -0
  360. /package/dist/bundled/{js/golden-layout@1.5.9 → golden-layout@1.5.9}/dist/goldenlayout.min.js +0 -0
  361. /package/dist/bundled/{css/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.css +0 -0
  362. /package/dist/bundled/{js/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.js +0 -0
  363. /package/dist/bundled/{js/react-grid-layout@1.3.4 → react-grid-layout@1.3.4}/dist/react-grid-layout.min.js +0 -0
  364. /package/dist/bundled/{js/react-grid-layout@1.3.4 → react-grid-layout@1.3.4}/dist/react-grid-layout.min.js.map +0 -0
@@ -0,0 +1,4422 @@
1
+ /*!
2
+ * Bootstrap v5.3.0-alpha1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */
6
+ import * as Popper from '@popperjs/core';
7
+
8
+ /**
9
+ * --------------------------------------------------------------------------
10
+ * Bootstrap (v5.3.0-alpha1): util/index.js
11
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
12
+ * --------------------------------------------------------------------------
13
+ */
14
+
15
+ const MAX_UID = 1000000;
16
+ const MILLISECONDS_MULTIPLIER = 1000;
17
+ const TRANSITION_END = 'transitionend';
18
+
19
+ /**
20
+ * Properly escape IDs selectors to handle weird IDs
21
+ * @param {string} selector
22
+ * @returns {string}
23
+ */
24
+ const parseSelector = selector => {
25
+ if (selector && window.CSS && window.CSS.escape) {
26
+ // document.querySelector needs escaping to handle IDs (html5+) containing for instance /
27
+ selector = selector.replace(/#([^\s"#']+)/g, (match, id) => `#${CSS.escape(id)}`);
28
+ }
29
+ return selector;
30
+ };
31
+
32
+ // Shout-out Angus Croll (https://goo.gl/pxwQGp)
33
+ const toType = object => {
34
+ if (object === null || object === undefined) {
35
+ return `${object}`;
36
+ }
37
+ return Object.prototype.toString.call(object).match(/\s([a-z]+)/i)[1].toLowerCase();
38
+ };
39
+
40
+ /**
41
+ * Public Util API
42
+ */
43
+
44
+ const getUID = prefix => {
45
+ do {
46
+ prefix += Math.floor(Math.random() * MAX_UID);
47
+ } while (document.getElementById(prefix));
48
+ return prefix;
49
+ };
50
+ const getTransitionDurationFromElement = element => {
51
+ if (!element) {
52
+ return 0;
53
+ }
54
+
55
+ // Get transition-duration of the element
56
+ let {
57
+ transitionDuration,
58
+ transitionDelay
59
+ } = window.getComputedStyle(element);
60
+ const floatTransitionDuration = Number.parseFloat(transitionDuration);
61
+ const floatTransitionDelay = Number.parseFloat(transitionDelay);
62
+
63
+ // Return 0 if element or transition duration is not found
64
+ if (!floatTransitionDuration && !floatTransitionDelay) {
65
+ return 0;
66
+ }
67
+
68
+ // If multiple durations are defined, take the first
69
+ transitionDuration = transitionDuration.split(',')[0];
70
+ transitionDelay = transitionDelay.split(',')[0];
71
+ return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
72
+ };
73
+ const triggerTransitionEnd = element => {
74
+ element.dispatchEvent(new Event(TRANSITION_END));
75
+ };
76
+ const isElement = object => {
77
+ if (!object || typeof object !== 'object') {
78
+ return false;
79
+ }
80
+ if (typeof object.jquery !== 'undefined') {
81
+ object = object[0];
82
+ }
83
+ return typeof object.nodeType !== 'undefined';
84
+ };
85
+ const getElement = object => {
86
+ // it's a jQuery object or a node element
87
+ if (isElement(object)) {
88
+ return object.jquery ? object[0] : object;
89
+ }
90
+ if (typeof object === 'string' && object.length > 0) {
91
+ return document.querySelector(parseSelector(object));
92
+ }
93
+ return null;
94
+ };
95
+ const isVisible = element => {
96
+ if (!isElement(element) || element.getClientRects().length === 0) {
97
+ return false;
98
+ }
99
+ const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible';
100
+ // Handle `details` element as its content may falsie appear visible when it is closed
101
+ const closedDetails = element.closest('details:not([open])');
102
+ if (!closedDetails) {
103
+ return elementIsVisible;
104
+ }
105
+ if (closedDetails !== element) {
106
+ const summary = element.closest('summary');
107
+ if (summary && summary.parentNode !== closedDetails) {
108
+ return false;
109
+ }
110
+ if (summary === null) {
111
+ return false;
112
+ }
113
+ }
114
+ return elementIsVisible;
115
+ };
116
+ const isDisabled = element => {
117
+ if (!element || element.nodeType !== Node.ELEMENT_NODE) {
118
+ return true;
119
+ }
120
+ if (element.classList.contains('disabled')) {
121
+ return true;
122
+ }
123
+ if (typeof element.disabled !== 'undefined') {
124
+ return element.disabled;
125
+ }
126
+ return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';
127
+ };
128
+ const findShadowRoot = element => {
129
+ if (!document.documentElement.attachShadow) {
130
+ return null;
131
+ }
132
+
133
+ // Can find the shadow root otherwise it'll return the document
134
+ if (typeof element.getRootNode === 'function') {
135
+ const root = element.getRootNode();
136
+ return root instanceof ShadowRoot ? root : null;
137
+ }
138
+ if (element instanceof ShadowRoot) {
139
+ return element;
140
+ }
141
+
142
+ // when we don't find a shadow root
143
+ if (!element.parentNode) {
144
+ return null;
145
+ }
146
+ return findShadowRoot(element.parentNode);
147
+ };
148
+ const noop = () => {};
149
+
150
+ /**
151
+ * Trick to restart an element's animation
152
+ *
153
+ * @param {HTMLElement} element
154
+ * @return void
155
+ *
156
+ * @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
157
+ */
158
+ const reflow = element => {
159
+ element.offsetHeight; // eslint-disable-line no-unused-expressions
160
+ };
161
+
162
+ const getjQuery = () => {
163
+ if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
164
+ return window.jQuery;
165
+ }
166
+ return null;
167
+ };
168
+ const DOMContentLoadedCallbacks = [];
169
+ const onDOMContentLoaded = callback => {
170
+ if (document.readyState === 'loading') {
171
+ // add listener on the first call when the document is in loading state
172
+ if (!DOMContentLoadedCallbacks.length) {
173
+ document.addEventListener('DOMContentLoaded', () => {
174
+ for (const callback of DOMContentLoadedCallbacks) {
175
+ callback();
176
+ }
177
+ });
178
+ }
179
+ DOMContentLoadedCallbacks.push(callback);
180
+ } else {
181
+ callback();
182
+ }
183
+ };
184
+ const isRTL = () => document.documentElement.dir === 'rtl';
185
+ const defineJQueryPlugin = plugin => {
186
+ onDOMContentLoaded(() => {
187
+ const $ = getjQuery();
188
+ /* istanbul ignore if */
189
+ if ($) {
190
+ const name = plugin.NAME;
191
+ const JQUERY_NO_CONFLICT = $.fn[name];
192
+ $.fn[name] = plugin.jQueryInterface;
193
+ $.fn[name].Constructor = plugin;
194
+ $.fn[name].noConflict = () => {
195
+ $.fn[name] = JQUERY_NO_CONFLICT;
196
+ return plugin.jQueryInterface;
197
+ };
198
+ }
199
+ });
200
+ };
201
+ const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
202
+ return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
203
+ };
204
+ const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
205
+ if (!waitForTransition) {
206
+ execute(callback);
207
+ return;
208
+ }
209
+ const durationPadding = 5;
210
+ const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding;
211
+ let called = false;
212
+ const handler = ({
213
+ target
214
+ }) => {
215
+ if (target !== transitionElement) {
216
+ return;
217
+ }
218
+ called = true;
219
+ transitionElement.removeEventListener(TRANSITION_END, handler);
220
+ execute(callback);
221
+ };
222
+ transitionElement.addEventListener(TRANSITION_END, handler);
223
+ setTimeout(() => {
224
+ if (!called) {
225
+ triggerTransitionEnd(transitionElement);
226
+ }
227
+ }, emulatedDuration);
228
+ };
229
+
230
+ /**
231
+ * Return the previous/next element of a list.
232
+ *
233
+ * @param {array} list The list of elements
234
+ * @param activeElement The active element
235
+ * @param shouldGetNext Choose to get next or previous element
236
+ * @param isCycleAllowed
237
+ * @return {Element|elem} The proper element
238
+ */
239
+ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {
240
+ const listLength = list.length;
241
+ let index = list.indexOf(activeElement);
242
+
243
+ // if the element does not exist in the list return an element
244
+ // depending on the direction and if cycle is allowed
245
+ if (index === -1) {
246
+ return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0];
247
+ }
248
+ index += shouldGetNext ? 1 : -1;
249
+ if (isCycleAllowed) {
250
+ index = (index + listLength) % listLength;
251
+ }
252
+ return list[Math.max(0, Math.min(index, listLength - 1))];
253
+ };
254
+
255
+ /**
256
+ * --------------------------------------------------------------------------
257
+ * Bootstrap (v5.3.0-alpha1): dom/event-handler.js
258
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
259
+ * --------------------------------------------------------------------------
260
+ */
261
+
262
+ /**
263
+ * Constants
264
+ */
265
+
266
+ const namespaceRegex = /[^.]*(?=\..*)\.|.*/;
267
+ const stripNameRegex = /\..*/;
268
+ const stripUidRegex = /::\d+$/;
269
+ const eventRegistry = {}; // Events storage
270
+ let uidEvent = 1;
271
+ const customEvents = {
272
+ mouseenter: 'mouseover',
273
+ mouseleave: 'mouseout'
274
+ };
275
+ const nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);
276
+
277
+ /**
278
+ * Private methods
279
+ */
280
+
281
+ function makeEventUid(element, uid) {
282
+ return uid && `${uid}::${uidEvent++}` || element.uidEvent || uidEvent++;
283
+ }
284
+ function getElementEvents(element) {
285
+ const uid = makeEventUid(element);
286
+ element.uidEvent = uid;
287
+ eventRegistry[uid] = eventRegistry[uid] || {};
288
+ return eventRegistry[uid];
289
+ }
290
+ function bootstrapHandler(element, fn) {
291
+ return function handler(event) {
292
+ hydrateObj(event, {
293
+ delegateTarget: element
294
+ });
295
+ if (handler.oneOff) {
296
+ EventHandler.off(element, event.type, fn);
297
+ }
298
+ return fn.apply(element, [event]);
299
+ };
300
+ }
301
+ function bootstrapDelegationHandler(element, selector, fn) {
302
+ return function handler(event) {
303
+ const domElements = element.querySelectorAll(selector);
304
+ for (let {
305
+ target
306
+ } = event; target && target !== this; target = target.parentNode) {
307
+ for (const domElement of domElements) {
308
+ if (domElement !== target) {
309
+ continue;
310
+ }
311
+ hydrateObj(event, {
312
+ delegateTarget: target
313
+ });
314
+ if (handler.oneOff) {
315
+ EventHandler.off(element, event.type, selector, fn);
316
+ }
317
+ return fn.apply(target, [event]);
318
+ }
319
+ }
320
+ };
321
+ }
322
+ function findHandler(events, callable, delegationSelector = null) {
323
+ return Object.values(events).find(event => event.callable === callable && event.delegationSelector === delegationSelector);
324
+ }
325
+ function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
326
+ const isDelegated = typeof handler === 'string';
327
+ // todo: tooltip passes `false` instead of selector, so we need to check
328
+ const callable = isDelegated ? delegationFunction : handler || delegationFunction;
329
+ let typeEvent = getTypeEvent(originalTypeEvent);
330
+ if (!nativeEvents.has(typeEvent)) {
331
+ typeEvent = originalTypeEvent;
332
+ }
333
+ return [isDelegated, callable, typeEvent];
334
+ }
335
+ function addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {
336
+ if (typeof originalTypeEvent !== 'string' || !element) {
337
+ return;
338
+ }
339
+ let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);
340
+
341
+ // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position
342
+ // this prevents the handler from being dispatched the same way as mouseover or mouseout does
343
+ if (originalTypeEvent in customEvents) {
344
+ const wrapFunction = fn => {
345
+ return function (event) {
346
+ if (!event.relatedTarget || event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget)) {
347
+ return fn.call(this, event);
348
+ }
349
+ };
350
+ };
351
+ callable = wrapFunction(callable);
352
+ }
353
+ const events = getElementEvents(element);
354
+ const handlers = events[typeEvent] || (events[typeEvent] = {});
355
+ const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null);
356
+ if (previousFunction) {
357
+ previousFunction.oneOff = previousFunction.oneOff && oneOff;
358
+ return;
359
+ }
360
+ const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''));
361
+ const fn = isDelegated ? bootstrapDelegationHandler(element, handler, callable) : bootstrapHandler(element, callable);
362
+ fn.delegationSelector = isDelegated ? handler : null;
363
+ fn.callable = callable;
364
+ fn.oneOff = oneOff;
365
+ fn.uidEvent = uid;
366
+ handlers[uid] = fn;
367
+ element.addEventListener(typeEvent, fn, isDelegated);
368
+ }
369
+ function removeHandler(element, events, typeEvent, handler, delegationSelector) {
370
+ const fn = findHandler(events[typeEvent], handler, delegationSelector);
371
+ if (!fn) {
372
+ return;
373
+ }
374
+ element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));
375
+ delete events[typeEvent][fn.uidEvent];
376
+ }
377
+ function removeNamespacedHandlers(element, events, typeEvent, namespace) {
378
+ const storeElementEvent = events[typeEvent] || {};
379
+ for (const [handlerKey, event] of Object.entries(storeElementEvent)) {
380
+ if (handlerKey.includes(namespace)) {
381
+ removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);
382
+ }
383
+ }
384
+ }
385
+ function getTypeEvent(event) {
386
+ // allow to get the native events from namespaced events ('click.bs.button' --> 'click')
387
+ event = event.replace(stripNameRegex, '');
388
+ return customEvents[event] || event;
389
+ }
390
+ const EventHandler = {
391
+ on(element, event, handler, delegationFunction) {
392
+ addHandler(element, event, handler, delegationFunction, false);
393
+ },
394
+ one(element, event, handler, delegationFunction) {
395
+ addHandler(element, event, handler, delegationFunction, true);
396
+ },
397
+ off(element, originalTypeEvent, handler, delegationFunction) {
398
+ if (typeof originalTypeEvent !== 'string' || !element) {
399
+ return;
400
+ }
401
+ const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);
402
+ const inNamespace = typeEvent !== originalTypeEvent;
403
+ const events = getElementEvents(element);
404
+ const storeElementEvent = events[typeEvent] || {};
405
+ const isNamespace = originalTypeEvent.startsWith('.');
406
+ if (typeof callable !== 'undefined') {
407
+ // Simplest case: handler is passed, remove that listener ONLY.
408
+ if (!Object.keys(storeElementEvent).length) {
409
+ return;
410
+ }
411
+ removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null);
412
+ return;
413
+ }
414
+ if (isNamespace) {
415
+ for (const elementEvent of Object.keys(events)) {
416
+ removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));
417
+ }
418
+ }
419
+ for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {
420
+ const handlerKey = keyHandlers.replace(stripUidRegex, '');
421
+ if (!inNamespace || originalTypeEvent.includes(handlerKey)) {
422
+ removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);
423
+ }
424
+ }
425
+ },
426
+ trigger(element, event, args) {
427
+ if (typeof event !== 'string' || !element) {
428
+ return null;
429
+ }
430
+ const $ = getjQuery();
431
+ const typeEvent = getTypeEvent(event);
432
+ const inNamespace = event !== typeEvent;
433
+ let jQueryEvent = null;
434
+ let bubbles = true;
435
+ let nativeDispatch = true;
436
+ let defaultPrevented = false;
437
+ if (inNamespace && $) {
438
+ jQueryEvent = $.Event(event, args);
439
+ $(element).trigger(jQueryEvent);
440
+ bubbles = !jQueryEvent.isPropagationStopped();
441
+ nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
442
+ defaultPrevented = jQueryEvent.isDefaultPrevented();
443
+ }
444
+ let evt = new Event(event, {
445
+ bubbles,
446
+ cancelable: true
447
+ });
448
+ evt = hydrateObj(evt, args);
449
+ if (defaultPrevented) {
450
+ evt.preventDefault();
451
+ }
452
+ if (nativeDispatch) {
453
+ element.dispatchEvent(evt);
454
+ }
455
+ if (evt.defaultPrevented && jQueryEvent) {
456
+ jQueryEvent.preventDefault();
457
+ }
458
+ return evt;
459
+ }
460
+ };
461
+ function hydrateObj(obj, meta = {}) {
462
+ for (const [key, value] of Object.entries(meta)) {
463
+ try {
464
+ obj[key] = value;
465
+ } catch (_unused) {
466
+ Object.defineProperty(obj, key, {
467
+ configurable: true,
468
+ get() {
469
+ return value;
470
+ }
471
+ });
472
+ }
473
+ }
474
+ return obj;
475
+ }
476
+
477
+ /**
478
+ * --------------------------------------------------------------------------
479
+ * Bootstrap (v5.3.0-alpha1): dom/data.js
480
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
481
+ * --------------------------------------------------------------------------
482
+ */
483
+
484
+ /**
485
+ * Constants
486
+ */
487
+
488
+ const elementMap = new Map();
489
+ const Data = {
490
+ set(element, key, instance) {
491
+ if (!elementMap.has(element)) {
492
+ elementMap.set(element, new Map());
493
+ }
494
+ const instanceMap = elementMap.get(element);
495
+
496
+ // make it clear we only want one instance per element
497
+ // can be removed later when multiple key/instances are fine to be used
498
+ if (!instanceMap.has(key) && instanceMap.size !== 0) {
499
+ // eslint-disable-next-line no-console
500
+ console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
501
+ return;
502
+ }
503
+ instanceMap.set(key, instance);
504
+ },
505
+ get(element, key) {
506
+ if (elementMap.has(element)) {
507
+ return elementMap.get(element).get(key) || null;
508
+ }
509
+ return null;
510
+ },
511
+ remove(element, key) {
512
+ if (!elementMap.has(element)) {
513
+ return;
514
+ }
515
+ const instanceMap = elementMap.get(element);
516
+ instanceMap.delete(key);
517
+
518
+ // free up element references if there are no instances left for an element
519
+ if (instanceMap.size === 0) {
520
+ elementMap.delete(element);
521
+ }
522
+ }
523
+ };
524
+
525
+ /**
526
+ * --------------------------------------------------------------------------
527
+ * Bootstrap (v5.3.0-alpha1): dom/manipulator.js
528
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
529
+ * --------------------------------------------------------------------------
530
+ */
531
+
532
+ function normalizeData(value) {
533
+ if (value === 'true') {
534
+ return true;
535
+ }
536
+ if (value === 'false') {
537
+ return false;
538
+ }
539
+ if (value === Number(value).toString()) {
540
+ return Number(value);
541
+ }
542
+ if (value === '' || value === 'null') {
543
+ return null;
544
+ }
545
+ if (typeof value !== 'string') {
546
+ return value;
547
+ }
548
+ try {
549
+ return JSON.parse(decodeURIComponent(value));
550
+ } catch (_unused) {
551
+ return value;
552
+ }
553
+ }
554
+ function normalizeDataKey(key) {
555
+ return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`);
556
+ }
557
+ const Manipulator = {
558
+ setDataAttribute(element, key, value) {
559
+ element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value);
560
+ },
561
+ removeDataAttribute(element, key) {
562
+ element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);
563
+ },
564
+ getDataAttributes(element) {
565
+ if (!element) {
566
+ return {};
567
+ }
568
+ const attributes = {};
569
+ const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
570
+ for (const key of bsKeys) {
571
+ let pureKey = key.replace(/^bs/, '');
572
+ pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);
573
+ attributes[pureKey] = normalizeData(element.dataset[key]);
574
+ }
575
+ return attributes;
576
+ },
577
+ getDataAttribute(element, key) {
578
+ return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));
579
+ }
580
+ };
581
+
582
+ /**
583
+ * --------------------------------------------------------------------------
584
+ * Bootstrap (v5.3.0-alpha1): util/config.js
585
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
586
+ * --------------------------------------------------------------------------
587
+ */
588
+
589
+ /**
590
+ * Class definition
591
+ */
592
+
593
+ class Config {
594
+ // Getters
595
+ static get Default() {
596
+ return {};
597
+ }
598
+ static get DefaultType() {
599
+ return {};
600
+ }
601
+ static get NAME() {
602
+ throw new Error('You have to implement the static method "NAME", for each component!');
603
+ }
604
+ _getConfig(config) {
605
+ config = this._mergeConfigObj(config);
606
+ config = this._configAfterMerge(config);
607
+ this._typeCheckConfig(config);
608
+ return config;
609
+ }
610
+ _configAfterMerge(config) {
611
+ return config;
612
+ }
613
+ _mergeConfigObj(config, element) {
614
+ const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {}; // try to parse
615
+
616
+ return {
617
+ ...this.constructor.Default,
618
+ ...(typeof jsonConfig === 'object' ? jsonConfig : {}),
619
+ ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),
620
+ ...(typeof config === 'object' ? config : {})
621
+ };
622
+ }
623
+ _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {
624
+ for (const [property, expectedTypes] of Object.entries(configTypes)) {
625
+ const value = config[property];
626
+ const valueType = isElement(value) ? 'element' : toType(value);
627
+ if (!new RegExp(expectedTypes).test(valueType)) {
628
+ throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`);
629
+ }
630
+ }
631
+ }
632
+ }
633
+
634
+ /**
635
+ * --------------------------------------------------------------------------
636
+ * Bootstrap (v5.3.0-alpha1): base-component.js
637
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
638
+ * --------------------------------------------------------------------------
639
+ */
640
+
641
+ /**
642
+ * Constants
643
+ */
644
+
645
+ const VERSION = '5.3.0-alpha1';
646
+
647
+ /**
648
+ * Class definition
649
+ */
650
+
651
+ class BaseComponent extends Config {
652
+ constructor(element, config) {
653
+ super();
654
+ element = getElement(element);
655
+ if (!element) {
656
+ return;
657
+ }
658
+ this._element = element;
659
+ this._config = this._getConfig(config);
660
+ Data.set(this._element, this.constructor.DATA_KEY, this);
661
+ }
662
+
663
+ // Public
664
+ dispose() {
665
+ Data.remove(this._element, this.constructor.DATA_KEY);
666
+ EventHandler.off(this._element, this.constructor.EVENT_KEY);
667
+ for (const propertyName of Object.getOwnPropertyNames(this)) {
668
+ this[propertyName] = null;
669
+ }
670
+ }
671
+ _queueCallback(callback, element, isAnimated = true) {
672
+ executeAfterTransition(callback, element, isAnimated);
673
+ }
674
+ _getConfig(config) {
675
+ config = this._mergeConfigObj(config, this._element);
676
+ config = this._configAfterMerge(config);
677
+ this._typeCheckConfig(config);
678
+ return config;
679
+ }
680
+
681
+ // Static
682
+ static getInstance(element) {
683
+ return Data.get(getElement(element), this.DATA_KEY);
684
+ }
685
+ static getOrCreateInstance(element, config = {}) {
686
+ return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null);
687
+ }
688
+ static get VERSION() {
689
+ return VERSION;
690
+ }
691
+ static get DATA_KEY() {
692
+ return `bs.${this.NAME}`;
693
+ }
694
+ static get EVENT_KEY() {
695
+ return `.${this.DATA_KEY}`;
696
+ }
697
+ static eventName(name) {
698
+ return `${name}${this.EVENT_KEY}`;
699
+ }
700
+ }
701
+
702
+ /**
703
+ * --------------------------------------------------------------------------
704
+ * Bootstrap (v5.3.0-alpha1): dom/selector-engine.js
705
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
706
+ * --------------------------------------------------------------------------
707
+ */
708
+ const getSelector = element => {
709
+ let selector = element.getAttribute('data-bs-target');
710
+ if (!selector || selector === '#') {
711
+ let hrefAttribute = element.getAttribute('href');
712
+
713
+ // The only valid content that could double as a selector are IDs or classes,
714
+ // so everything starting with `#` or `.`. If a "real" URL is used as the selector,
715
+ // `document.querySelector` will rightfully complain it is invalid.
716
+ // See https://github.com/twbs/bootstrap/issues/32273
717
+ if (!hrefAttribute || !hrefAttribute.includes('#') && !hrefAttribute.startsWith('.')) {
718
+ return null;
719
+ }
720
+
721
+ // Just in case some CMS puts out a full URL with the anchor appended
722
+ if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {
723
+ hrefAttribute = `#${hrefAttribute.split('#')[1]}`;
724
+ }
725
+ selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null;
726
+ }
727
+ return parseSelector(selector);
728
+ };
729
+ const SelectorEngine = {
730
+ find(selector, element = document.documentElement) {
731
+ return [].concat(...Element.prototype.querySelectorAll.call(element, selector));
732
+ },
733
+ findOne(selector, element = document.documentElement) {
734
+ return Element.prototype.querySelector.call(element, selector);
735
+ },
736
+ children(element, selector) {
737
+ return [].concat(...element.children).filter(child => child.matches(selector));
738
+ },
739
+ parents(element, selector) {
740
+ const parents = [];
741
+ let ancestor = element.parentNode.closest(selector);
742
+ while (ancestor) {
743
+ parents.push(ancestor);
744
+ ancestor = ancestor.parentNode.closest(selector);
745
+ }
746
+ return parents;
747
+ },
748
+ prev(element, selector) {
749
+ let previous = element.previousElementSibling;
750
+ while (previous) {
751
+ if (previous.matches(selector)) {
752
+ return [previous];
753
+ }
754
+ previous = previous.previousElementSibling;
755
+ }
756
+ return [];
757
+ },
758
+ // TODO: this is now unused; remove later along with prev()
759
+ next(element, selector) {
760
+ let next = element.nextElementSibling;
761
+ while (next) {
762
+ if (next.matches(selector)) {
763
+ return [next];
764
+ }
765
+ next = next.nextElementSibling;
766
+ }
767
+ return [];
768
+ },
769
+ focusableChildren(element) {
770
+ const focusables = ['a', 'button', 'input', 'textarea', 'select', 'details', '[tabindex]', '[contenteditable="true"]'].map(selector => `${selector}:not([tabindex^="-"])`).join(',');
771
+ return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el));
772
+ },
773
+ getSelectorFromElement(element) {
774
+ const selector = getSelector(element);
775
+ if (selector) {
776
+ return SelectorEngine.findOne(selector) ? selector : null;
777
+ }
778
+ return null;
779
+ },
780
+ getElementFromSelector(element) {
781
+ const selector = getSelector(element);
782
+ return selector ? SelectorEngine.findOne(selector) : null;
783
+ },
784
+ getMultipleElementsFromSelector(element) {
785
+ const selector = getSelector(element);
786
+ return selector ? SelectorEngine.find(selector) : [];
787
+ }
788
+ };
789
+
790
+ /**
791
+ * --------------------------------------------------------------------------
792
+ * Bootstrap (v5.3.0-alpha1): util/component-functions.js
793
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
794
+ * --------------------------------------------------------------------------
795
+ */
796
+ const enableDismissTrigger = (component, method = 'hide') => {
797
+ const clickEvent = `click.dismiss${component.EVENT_KEY}`;
798
+ const name = component.NAME;
799
+ EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) {
800
+ if (['A', 'AREA'].includes(this.tagName)) {
801
+ event.preventDefault();
802
+ }
803
+ if (isDisabled(this)) {
804
+ return;
805
+ }
806
+ const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`);
807
+ const instance = component.getOrCreateInstance(target);
808
+
809
+ // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method
810
+ instance[method]();
811
+ });
812
+ };
813
+
814
+ /**
815
+ * --------------------------------------------------------------------------
816
+ * Bootstrap (v5.3.0-alpha1): alert.js
817
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
818
+ * --------------------------------------------------------------------------
819
+ */
820
+
821
+ /**
822
+ * Constants
823
+ */
824
+
825
+ const NAME$f = 'alert';
826
+ const DATA_KEY$a = 'bs.alert';
827
+ const EVENT_KEY$b = `.${DATA_KEY$a}`;
828
+ const EVENT_CLOSE = `close${EVENT_KEY$b}`;
829
+ const EVENT_CLOSED = `closed${EVENT_KEY$b}`;
830
+ const CLASS_NAME_FADE$5 = 'fade';
831
+ const CLASS_NAME_SHOW$8 = 'show';
832
+
833
+ /**
834
+ * Class definition
835
+ */
836
+
837
+ class Alert extends BaseComponent {
838
+ // Getters
839
+ static get NAME() {
840
+ return NAME$f;
841
+ }
842
+
843
+ // Public
844
+ close() {
845
+ const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);
846
+ if (closeEvent.defaultPrevented) {
847
+ return;
848
+ }
849
+ this._element.classList.remove(CLASS_NAME_SHOW$8);
850
+ const isAnimated = this._element.classList.contains(CLASS_NAME_FADE$5);
851
+ this._queueCallback(() => this._destroyElement(), this._element, isAnimated);
852
+ }
853
+
854
+ // Private
855
+ _destroyElement() {
856
+ this._element.remove();
857
+ EventHandler.trigger(this._element, EVENT_CLOSED);
858
+ this.dispose();
859
+ }
860
+
861
+ // Static
862
+ static jQueryInterface(config) {
863
+ return this.each(function () {
864
+ const data = Alert.getOrCreateInstance(this);
865
+ if (typeof config !== 'string') {
866
+ return;
867
+ }
868
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
869
+ throw new TypeError(`No method named "${config}"`);
870
+ }
871
+ data[config](this);
872
+ });
873
+ }
874
+ }
875
+
876
+ /**
877
+ * Data API implementation
878
+ */
879
+
880
+ enableDismissTrigger(Alert, 'close');
881
+
882
+ /**
883
+ * jQuery
884
+ */
885
+
886
+ defineJQueryPlugin(Alert);
887
+
888
+ /**
889
+ * --------------------------------------------------------------------------
890
+ * Bootstrap (v5.3.0-alpha1): button.js
891
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
892
+ * --------------------------------------------------------------------------
893
+ */
894
+
895
+ /**
896
+ * Constants
897
+ */
898
+
899
+ const NAME$e = 'button';
900
+ const DATA_KEY$9 = 'bs.button';
901
+ const EVENT_KEY$a = `.${DATA_KEY$9}`;
902
+ const DATA_API_KEY$6 = '.data-api';
903
+ const CLASS_NAME_ACTIVE$3 = 'active';
904
+ const SELECTOR_DATA_TOGGLE$5 = '[data-bs-toggle="button"]';
905
+ const EVENT_CLICK_DATA_API$6 = `click${EVENT_KEY$a}${DATA_API_KEY$6}`;
906
+
907
+ /**
908
+ * Class definition
909
+ */
910
+
911
+ class Button extends BaseComponent {
912
+ // Getters
913
+ static get NAME() {
914
+ return NAME$e;
915
+ }
916
+
917
+ // Public
918
+ toggle() {
919
+ // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
920
+ this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE$3));
921
+ }
922
+
923
+ // Static
924
+ static jQueryInterface(config) {
925
+ return this.each(function () {
926
+ const data = Button.getOrCreateInstance(this);
927
+ if (config === 'toggle') {
928
+ data[config]();
929
+ }
930
+ });
931
+ }
932
+ }
933
+
934
+ /**
935
+ * Data API implementation
936
+ */
937
+
938
+ EventHandler.on(document, EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$5, event => {
939
+ event.preventDefault();
940
+ const button = event.target.closest(SELECTOR_DATA_TOGGLE$5);
941
+ const data = Button.getOrCreateInstance(button);
942
+ data.toggle();
943
+ });
944
+
945
+ /**
946
+ * jQuery
947
+ */
948
+
949
+ defineJQueryPlugin(Button);
950
+
951
+ /**
952
+ * --------------------------------------------------------------------------
953
+ * Bootstrap (v5.3.0-alpha1): util/swipe.js
954
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
955
+ * --------------------------------------------------------------------------
956
+ */
957
+
958
+ /**
959
+ * Constants
960
+ */
961
+
962
+ const NAME$d = 'swipe';
963
+ const EVENT_KEY$9 = '.bs.swipe';
964
+ const EVENT_TOUCHSTART = `touchstart${EVENT_KEY$9}`;
965
+ const EVENT_TOUCHMOVE = `touchmove${EVENT_KEY$9}`;
966
+ const EVENT_TOUCHEND = `touchend${EVENT_KEY$9}`;
967
+ const EVENT_POINTERDOWN = `pointerdown${EVENT_KEY$9}`;
968
+ const EVENT_POINTERUP = `pointerup${EVENT_KEY$9}`;
969
+ const POINTER_TYPE_TOUCH = 'touch';
970
+ const POINTER_TYPE_PEN = 'pen';
971
+ const CLASS_NAME_POINTER_EVENT = 'pointer-event';
972
+ const SWIPE_THRESHOLD = 40;
973
+ const Default$c = {
974
+ endCallback: null,
975
+ leftCallback: null,
976
+ rightCallback: null
977
+ };
978
+ const DefaultType$c = {
979
+ endCallback: '(function|null)',
980
+ leftCallback: '(function|null)',
981
+ rightCallback: '(function|null)'
982
+ };
983
+
984
+ /**
985
+ * Class definition
986
+ */
987
+
988
+ class Swipe extends Config {
989
+ constructor(element, config) {
990
+ super();
991
+ this._element = element;
992
+ if (!element || !Swipe.isSupported()) {
993
+ return;
994
+ }
995
+ this._config = this._getConfig(config);
996
+ this._deltaX = 0;
997
+ this._supportPointerEvents = Boolean(window.PointerEvent);
998
+ this._initEvents();
999
+ }
1000
+
1001
+ // Getters
1002
+ static get Default() {
1003
+ return Default$c;
1004
+ }
1005
+ static get DefaultType() {
1006
+ return DefaultType$c;
1007
+ }
1008
+ static get NAME() {
1009
+ return NAME$d;
1010
+ }
1011
+
1012
+ // Public
1013
+ dispose() {
1014
+ EventHandler.off(this._element, EVENT_KEY$9);
1015
+ }
1016
+
1017
+ // Private
1018
+ _start(event) {
1019
+ if (!this._supportPointerEvents) {
1020
+ this._deltaX = event.touches[0].clientX;
1021
+ return;
1022
+ }
1023
+ if (this._eventIsPointerPenTouch(event)) {
1024
+ this._deltaX = event.clientX;
1025
+ }
1026
+ }
1027
+ _end(event) {
1028
+ if (this._eventIsPointerPenTouch(event)) {
1029
+ this._deltaX = event.clientX - this._deltaX;
1030
+ }
1031
+ this._handleSwipe();
1032
+ execute(this._config.endCallback);
1033
+ }
1034
+ _move(event) {
1035
+ this._deltaX = event.touches && event.touches.length > 1 ? 0 : event.touches[0].clientX - this._deltaX;
1036
+ }
1037
+ _handleSwipe() {
1038
+ const absDeltaX = Math.abs(this._deltaX);
1039
+ if (absDeltaX <= SWIPE_THRESHOLD) {
1040
+ return;
1041
+ }
1042
+ const direction = absDeltaX / this._deltaX;
1043
+ this._deltaX = 0;
1044
+ if (!direction) {
1045
+ return;
1046
+ }
1047
+ execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback);
1048
+ }
1049
+ _initEvents() {
1050
+ if (this._supportPointerEvents) {
1051
+ EventHandler.on(this._element, EVENT_POINTERDOWN, event => this._start(event));
1052
+ EventHandler.on(this._element, EVENT_POINTERUP, event => this._end(event));
1053
+ this._element.classList.add(CLASS_NAME_POINTER_EVENT);
1054
+ } else {
1055
+ EventHandler.on(this._element, EVENT_TOUCHSTART, event => this._start(event));
1056
+ EventHandler.on(this._element, EVENT_TOUCHMOVE, event => this._move(event));
1057
+ EventHandler.on(this._element, EVENT_TOUCHEND, event => this._end(event));
1058
+ }
1059
+ }
1060
+ _eventIsPointerPenTouch(event) {
1061
+ return this._supportPointerEvents && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH);
1062
+ }
1063
+
1064
+ // Static
1065
+ static isSupported() {
1066
+ return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
1067
+ }
1068
+ }
1069
+
1070
+ /**
1071
+ * --------------------------------------------------------------------------
1072
+ * Bootstrap (v5.3.0-alpha1): carousel.js
1073
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1074
+ * --------------------------------------------------------------------------
1075
+ */
1076
+
1077
+ /**
1078
+ * Constants
1079
+ */
1080
+
1081
+ const NAME$c = 'carousel';
1082
+ const DATA_KEY$8 = 'bs.carousel';
1083
+ const EVENT_KEY$8 = `.${DATA_KEY$8}`;
1084
+ const DATA_API_KEY$5 = '.data-api';
1085
+ const ARROW_LEFT_KEY$1 = 'ArrowLeft';
1086
+ const ARROW_RIGHT_KEY$1 = 'ArrowRight';
1087
+ const TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
1088
+
1089
+ const ORDER_NEXT = 'next';
1090
+ const ORDER_PREV = 'prev';
1091
+ const DIRECTION_LEFT = 'left';
1092
+ const DIRECTION_RIGHT = 'right';
1093
+ const EVENT_SLIDE = `slide${EVENT_KEY$8}`;
1094
+ const EVENT_SLID = `slid${EVENT_KEY$8}`;
1095
+ const EVENT_KEYDOWN$1 = `keydown${EVENT_KEY$8}`;
1096
+ const EVENT_MOUSEENTER$1 = `mouseenter${EVENT_KEY$8}`;
1097
+ const EVENT_MOUSELEAVE$1 = `mouseleave${EVENT_KEY$8}`;
1098
+ const EVENT_DRAG_START = `dragstart${EVENT_KEY$8}`;
1099
+ const EVENT_LOAD_DATA_API$3 = `load${EVENT_KEY$8}${DATA_API_KEY$5}`;
1100
+ const EVENT_CLICK_DATA_API$5 = `click${EVENT_KEY$8}${DATA_API_KEY$5}`;
1101
+ const CLASS_NAME_CAROUSEL = 'carousel';
1102
+ const CLASS_NAME_ACTIVE$2 = 'active';
1103
+ const CLASS_NAME_SLIDE = 'slide';
1104
+ const CLASS_NAME_END = 'carousel-item-end';
1105
+ const CLASS_NAME_START = 'carousel-item-start';
1106
+ const CLASS_NAME_NEXT = 'carousel-item-next';
1107
+ const CLASS_NAME_PREV = 'carousel-item-prev';
1108
+ const SELECTOR_ACTIVE = '.active';
1109
+ const SELECTOR_ITEM = '.carousel-item';
1110
+ const SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM;
1111
+ const SELECTOR_ITEM_IMG = '.carousel-item img';
1112
+ const SELECTOR_INDICATORS = '.carousel-indicators';
1113
+ const SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
1114
+ const SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
1115
+ const KEY_TO_DIRECTION = {
1116
+ [ARROW_LEFT_KEY$1]: DIRECTION_RIGHT,
1117
+ [ARROW_RIGHT_KEY$1]: DIRECTION_LEFT
1118
+ };
1119
+ const Default$b = {
1120
+ interval: 5000,
1121
+ keyboard: true,
1122
+ pause: 'hover',
1123
+ ride: false,
1124
+ touch: true,
1125
+ wrap: true
1126
+ };
1127
+ const DefaultType$b = {
1128
+ interval: '(number|boolean)',
1129
+ // TODO:v6 remove boolean support
1130
+ keyboard: 'boolean',
1131
+ pause: '(string|boolean)',
1132
+ ride: '(boolean|string)',
1133
+ touch: 'boolean',
1134
+ wrap: 'boolean'
1135
+ };
1136
+
1137
+ /**
1138
+ * Class definition
1139
+ */
1140
+
1141
+ class Carousel extends BaseComponent {
1142
+ constructor(element, config) {
1143
+ super(element, config);
1144
+ this._interval = null;
1145
+ this._activeElement = null;
1146
+ this._isSliding = false;
1147
+ this.touchTimeout = null;
1148
+ this._swipeHelper = null;
1149
+ this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);
1150
+ this._addEventListeners();
1151
+ if (this._config.ride === CLASS_NAME_CAROUSEL) {
1152
+ this.cycle();
1153
+ }
1154
+ }
1155
+
1156
+ // Getters
1157
+ static get Default() {
1158
+ return Default$b;
1159
+ }
1160
+ static get DefaultType() {
1161
+ return DefaultType$b;
1162
+ }
1163
+ static get NAME() {
1164
+ return NAME$c;
1165
+ }
1166
+
1167
+ // Public
1168
+ next() {
1169
+ this._slide(ORDER_NEXT);
1170
+ }
1171
+ nextWhenVisible() {
1172
+ // FIXME TODO use `document.visibilityState`
1173
+ // Don't call next when the page isn't visible
1174
+ // or the carousel or its parent isn't visible
1175
+ if (!document.hidden && isVisible(this._element)) {
1176
+ this.next();
1177
+ }
1178
+ }
1179
+ prev() {
1180
+ this._slide(ORDER_PREV);
1181
+ }
1182
+ pause() {
1183
+ if (this._isSliding) {
1184
+ triggerTransitionEnd(this._element);
1185
+ }
1186
+ this._clearInterval();
1187
+ }
1188
+ cycle() {
1189
+ this._clearInterval();
1190
+ this._updateInterval();
1191
+ this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);
1192
+ }
1193
+ _maybeEnableCycle() {
1194
+ if (!this._config.ride) {
1195
+ return;
1196
+ }
1197
+ if (this._isSliding) {
1198
+ EventHandler.one(this._element, EVENT_SLID, () => this.cycle());
1199
+ return;
1200
+ }
1201
+ this.cycle();
1202
+ }
1203
+ to(index) {
1204
+ const items = this._getItems();
1205
+ if (index > items.length - 1 || index < 0) {
1206
+ return;
1207
+ }
1208
+ if (this._isSliding) {
1209
+ EventHandler.one(this._element, EVENT_SLID, () => this.to(index));
1210
+ return;
1211
+ }
1212
+ const activeIndex = this._getItemIndex(this._getActive());
1213
+ if (activeIndex === index) {
1214
+ return;
1215
+ }
1216
+ const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV;
1217
+ this._slide(order, items[index]);
1218
+ }
1219
+ dispose() {
1220
+ if (this._swipeHelper) {
1221
+ this._swipeHelper.dispose();
1222
+ }
1223
+ super.dispose();
1224
+ }
1225
+
1226
+ // Private
1227
+ _configAfterMerge(config) {
1228
+ config.defaultInterval = config.interval;
1229
+ return config;
1230
+ }
1231
+ _addEventListeners() {
1232
+ if (this._config.keyboard) {
1233
+ EventHandler.on(this._element, EVENT_KEYDOWN$1, event => this._keydown(event));
1234
+ }
1235
+ if (this._config.pause === 'hover') {
1236
+ EventHandler.on(this._element, EVENT_MOUSEENTER$1, () => this.pause());
1237
+ EventHandler.on(this._element, EVENT_MOUSELEAVE$1, () => this._maybeEnableCycle());
1238
+ }
1239
+ if (this._config.touch && Swipe.isSupported()) {
1240
+ this._addTouchEventListeners();
1241
+ }
1242
+ }
1243
+ _addTouchEventListeners() {
1244
+ for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {
1245
+ EventHandler.on(img, EVENT_DRAG_START, event => event.preventDefault());
1246
+ }
1247
+ const endCallBack = () => {
1248
+ if (this._config.pause !== 'hover') {
1249
+ return;
1250
+ }
1251
+
1252
+ // If it's a touch-enabled device, mouseenter/leave are fired as
1253
+ // part of the mouse compatibility events on first tap - the carousel
1254
+ // would stop cycling until user tapped out of it;
1255
+ // here, we listen for touchend, explicitly pause the carousel
1256
+ // (as if it's the second time we tap on it, mouseenter compat event
1257
+ // is NOT fired) and after a timeout (to allow for mouse compatibility
1258
+ // events to fire) we explicitly restart cycling
1259
+
1260
+ this.pause();
1261
+ if (this.touchTimeout) {
1262
+ clearTimeout(this.touchTimeout);
1263
+ }
1264
+ this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), TOUCHEVENT_COMPAT_WAIT + this._config.interval);
1265
+ };
1266
+ const swipeConfig = {
1267
+ leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),
1268
+ rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),
1269
+ endCallback: endCallBack
1270
+ };
1271
+ this._swipeHelper = new Swipe(this._element, swipeConfig);
1272
+ }
1273
+ _keydown(event) {
1274
+ if (/input|textarea/i.test(event.target.tagName)) {
1275
+ return;
1276
+ }
1277
+ const direction = KEY_TO_DIRECTION[event.key];
1278
+ if (direction) {
1279
+ event.preventDefault();
1280
+ this._slide(this._directionToOrder(direction));
1281
+ }
1282
+ }
1283
+ _getItemIndex(element) {
1284
+ return this._getItems().indexOf(element);
1285
+ }
1286
+ _setActiveIndicatorElement(index) {
1287
+ if (!this._indicatorsElement) {
1288
+ return;
1289
+ }
1290
+ const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);
1291
+ activeIndicator.classList.remove(CLASS_NAME_ACTIVE$2);
1292
+ activeIndicator.removeAttribute('aria-current');
1293
+ const newActiveIndicator = SelectorEngine.findOne(`[data-bs-slide-to="${index}"]`, this._indicatorsElement);
1294
+ if (newActiveIndicator) {
1295
+ newActiveIndicator.classList.add(CLASS_NAME_ACTIVE$2);
1296
+ newActiveIndicator.setAttribute('aria-current', 'true');
1297
+ }
1298
+ }
1299
+ _updateInterval() {
1300
+ const element = this._activeElement || this._getActive();
1301
+ if (!element) {
1302
+ return;
1303
+ }
1304
+ const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);
1305
+ this._config.interval = elementInterval || this._config.defaultInterval;
1306
+ }
1307
+ _slide(order, element = null) {
1308
+ if (this._isSliding) {
1309
+ return;
1310
+ }
1311
+ const activeElement = this._getActive();
1312
+ const isNext = order === ORDER_NEXT;
1313
+ const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap);
1314
+ if (nextElement === activeElement) {
1315
+ return;
1316
+ }
1317
+ const nextElementIndex = this._getItemIndex(nextElement);
1318
+ const triggerEvent = eventName => {
1319
+ return EventHandler.trigger(this._element, eventName, {
1320
+ relatedTarget: nextElement,
1321
+ direction: this._orderToDirection(order),
1322
+ from: this._getItemIndex(activeElement),
1323
+ to: nextElementIndex
1324
+ });
1325
+ };
1326
+ const slideEvent = triggerEvent(EVENT_SLIDE);
1327
+ if (slideEvent.defaultPrevented) {
1328
+ return;
1329
+ }
1330
+ if (!activeElement || !nextElement) {
1331
+ // Some weirdness is happening, so we bail
1332
+ // todo: change tests that use empty divs to avoid this check
1333
+ return;
1334
+ }
1335
+ const isCycling = Boolean(this._interval);
1336
+ this.pause();
1337
+ this._isSliding = true;
1338
+ this._setActiveIndicatorElement(nextElementIndex);
1339
+ this._activeElement = nextElement;
1340
+ const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END;
1341
+ const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
1342
+ nextElement.classList.add(orderClassName);
1343
+ reflow(nextElement);
1344
+ activeElement.classList.add(directionalClassName);
1345
+ nextElement.classList.add(directionalClassName);
1346
+ const completeCallBack = () => {
1347
+ nextElement.classList.remove(directionalClassName, orderClassName);
1348
+ nextElement.classList.add(CLASS_NAME_ACTIVE$2);
1349
+ activeElement.classList.remove(CLASS_NAME_ACTIVE$2, orderClassName, directionalClassName);
1350
+ this._isSliding = false;
1351
+ triggerEvent(EVENT_SLID);
1352
+ };
1353
+ this._queueCallback(completeCallBack, activeElement, this._isAnimated());
1354
+ if (isCycling) {
1355
+ this.cycle();
1356
+ }
1357
+ }
1358
+ _isAnimated() {
1359
+ return this._element.classList.contains(CLASS_NAME_SLIDE);
1360
+ }
1361
+ _getActive() {
1362
+ return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
1363
+ }
1364
+ _getItems() {
1365
+ return SelectorEngine.find(SELECTOR_ITEM, this._element);
1366
+ }
1367
+ _clearInterval() {
1368
+ if (this._interval) {
1369
+ clearInterval(this._interval);
1370
+ this._interval = null;
1371
+ }
1372
+ }
1373
+ _directionToOrder(direction) {
1374
+ if (isRTL()) {
1375
+ return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT;
1376
+ }
1377
+ return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV;
1378
+ }
1379
+ _orderToDirection(order) {
1380
+ if (isRTL()) {
1381
+ return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;
1382
+ }
1383
+ return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;
1384
+ }
1385
+
1386
+ // Static
1387
+ static jQueryInterface(config) {
1388
+ return this.each(function () {
1389
+ const data = Carousel.getOrCreateInstance(this, config);
1390
+ if (typeof config === 'number') {
1391
+ data.to(config);
1392
+ return;
1393
+ }
1394
+ if (typeof config === 'string') {
1395
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
1396
+ throw new TypeError(`No method named "${config}"`);
1397
+ }
1398
+ data[config]();
1399
+ }
1400
+ });
1401
+ }
1402
+ }
1403
+
1404
+ /**
1405
+ * Data API implementation
1406
+ */
1407
+
1408
+ EventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_SLIDE, function (event) {
1409
+ const target = SelectorEngine.getElementFromSelector(this);
1410
+ if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {
1411
+ return;
1412
+ }
1413
+ event.preventDefault();
1414
+ const carousel = Carousel.getOrCreateInstance(target);
1415
+ const slideIndex = this.getAttribute('data-bs-slide-to');
1416
+ if (slideIndex) {
1417
+ carousel.to(slideIndex);
1418
+ carousel._maybeEnableCycle();
1419
+ return;
1420
+ }
1421
+ if (Manipulator.getDataAttribute(this, 'slide') === 'next') {
1422
+ carousel.next();
1423
+ carousel._maybeEnableCycle();
1424
+ return;
1425
+ }
1426
+ carousel.prev();
1427
+ carousel._maybeEnableCycle();
1428
+ });
1429
+ EventHandler.on(window, EVENT_LOAD_DATA_API$3, () => {
1430
+ const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);
1431
+ for (const carousel of carousels) {
1432
+ Carousel.getOrCreateInstance(carousel);
1433
+ }
1434
+ });
1435
+
1436
+ /**
1437
+ * jQuery
1438
+ */
1439
+
1440
+ defineJQueryPlugin(Carousel);
1441
+
1442
+ /**
1443
+ * --------------------------------------------------------------------------
1444
+ * Bootstrap (v5.3.0-alpha1): collapse.js
1445
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1446
+ * --------------------------------------------------------------------------
1447
+ */
1448
+
1449
+ /**
1450
+ * Constants
1451
+ */
1452
+
1453
+ const NAME$b = 'collapse';
1454
+ const DATA_KEY$7 = 'bs.collapse';
1455
+ const EVENT_KEY$7 = `.${DATA_KEY$7}`;
1456
+ const DATA_API_KEY$4 = '.data-api';
1457
+ const EVENT_SHOW$6 = `show${EVENT_KEY$7}`;
1458
+ const EVENT_SHOWN$6 = `shown${EVENT_KEY$7}`;
1459
+ const EVENT_HIDE$6 = `hide${EVENT_KEY$7}`;
1460
+ const EVENT_HIDDEN$6 = `hidden${EVENT_KEY$7}`;
1461
+ const EVENT_CLICK_DATA_API$4 = `click${EVENT_KEY$7}${DATA_API_KEY$4}`;
1462
+ const CLASS_NAME_SHOW$7 = 'show';
1463
+ const CLASS_NAME_COLLAPSE = 'collapse';
1464
+ const CLASS_NAME_COLLAPSING = 'collapsing';
1465
+ const CLASS_NAME_COLLAPSED = 'collapsed';
1466
+ const CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;
1467
+ const CLASS_NAME_HORIZONTAL = 'collapse-horizontal';
1468
+ const WIDTH = 'width';
1469
+ const HEIGHT = 'height';
1470
+ const SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';
1471
+ const SELECTOR_DATA_TOGGLE$4 = '[data-bs-toggle="collapse"]';
1472
+ const Default$a = {
1473
+ parent: null,
1474
+ toggle: true
1475
+ };
1476
+ const DefaultType$a = {
1477
+ parent: '(null|element)',
1478
+ toggle: 'boolean'
1479
+ };
1480
+
1481
+ /**
1482
+ * Class definition
1483
+ */
1484
+
1485
+ class Collapse extends BaseComponent {
1486
+ constructor(element, config) {
1487
+ super(element, config);
1488
+ this._isTransitioning = false;
1489
+ this._triggerArray = [];
1490
+ const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);
1491
+ for (const elem of toggleList) {
1492
+ const selector = SelectorEngine.getSelectorFromElement(elem);
1493
+ const filterElement = SelectorEngine.find(selector).filter(foundElement => foundElement === this._element);
1494
+ if (selector !== null && filterElement.length) {
1495
+ this._triggerArray.push(elem);
1496
+ }
1497
+ }
1498
+ this._initializeChildren();
1499
+ if (!this._config.parent) {
1500
+ this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());
1501
+ }
1502
+ if (this._config.toggle) {
1503
+ this.toggle();
1504
+ }
1505
+ }
1506
+
1507
+ // Getters
1508
+ static get Default() {
1509
+ return Default$a;
1510
+ }
1511
+ static get DefaultType() {
1512
+ return DefaultType$a;
1513
+ }
1514
+ static get NAME() {
1515
+ return NAME$b;
1516
+ }
1517
+
1518
+ // Public
1519
+ toggle() {
1520
+ if (this._isShown()) {
1521
+ this.hide();
1522
+ } else {
1523
+ this.show();
1524
+ }
1525
+ }
1526
+ show() {
1527
+ if (this._isTransitioning || this._isShown()) {
1528
+ return;
1529
+ }
1530
+ let activeChildren = [];
1531
+
1532
+ // find active children
1533
+ if (this._config.parent) {
1534
+ activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(element => element !== this._element).map(element => Collapse.getOrCreateInstance(element, {
1535
+ toggle: false
1536
+ }));
1537
+ }
1538
+ if (activeChildren.length && activeChildren[0]._isTransitioning) {
1539
+ return;
1540
+ }
1541
+ const startEvent = EventHandler.trigger(this._element, EVENT_SHOW$6);
1542
+ if (startEvent.defaultPrevented) {
1543
+ return;
1544
+ }
1545
+ for (const activeInstance of activeChildren) {
1546
+ activeInstance.hide();
1547
+ }
1548
+ const dimension = this._getDimension();
1549
+ this._element.classList.remove(CLASS_NAME_COLLAPSE);
1550
+ this._element.classList.add(CLASS_NAME_COLLAPSING);
1551
+ this._element.style[dimension] = 0;
1552
+ this._addAriaAndCollapsedClass(this._triggerArray, true);
1553
+ this._isTransitioning = true;
1554
+ const complete = () => {
1555
+ this._isTransitioning = false;
1556
+ this._element.classList.remove(CLASS_NAME_COLLAPSING);
1557
+ this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);
1558
+ this._element.style[dimension] = '';
1559
+ EventHandler.trigger(this._element, EVENT_SHOWN$6);
1560
+ };
1561
+ const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
1562
+ const scrollSize = `scroll${capitalizedDimension}`;
1563
+ this._queueCallback(complete, this._element, true);
1564
+ this._element.style[dimension] = `${this._element[scrollSize]}px`;
1565
+ }
1566
+ hide() {
1567
+ if (this._isTransitioning || !this._isShown()) {
1568
+ return;
1569
+ }
1570
+ const startEvent = EventHandler.trigger(this._element, EVENT_HIDE$6);
1571
+ if (startEvent.defaultPrevented) {
1572
+ return;
1573
+ }
1574
+ const dimension = this._getDimension();
1575
+ this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`;
1576
+ reflow(this._element);
1577
+ this._element.classList.add(CLASS_NAME_COLLAPSING);
1578
+ this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);
1579
+ for (const trigger of this._triggerArray) {
1580
+ const element = SelectorEngine.getElementFromSelector(trigger);
1581
+ if (element && !this._isShown(element)) {
1582
+ this._addAriaAndCollapsedClass([trigger], false);
1583
+ }
1584
+ }
1585
+ this._isTransitioning = true;
1586
+ const complete = () => {
1587
+ this._isTransitioning = false;
1588
+ this._element.classList.remove(CLASS_NAME_COLLAPSING);
1589
+ this._element.classList.add(CLASS_NAME_COLLAPSE);
1590
+ EventHandler.trigger(this._element, EVENT_HIDDEN$6);
1591
+ };
1592
+ this._element.style[dimension] = '';
1593
+ this._queueCallback(complete, this._element, true);
1594
+ }
1595
+ _isShown(element = this._element) {
1596
+ return element.classList.contains(CLASS_NAME_SHOW$7);
1597
+ }
1598
+
1599
+ // Private
1600
+ _configAfterMerge(config) {
1601
+ config.toggle = Boolean(config.toggle); // Coerce string values
1602
+ config.parent = getElement(config.parent);
1603
+ return config;
1604
+ }
1605
+ _getDimension() {
1606
+ return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT;
1607
+ }
1608
+ _initializeChildren() {
1609
+ if (!this._config.parent) {
1610
+ return;
1611
+ }
1612
+ const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);
1613
+ for (const element of children) {
1614
+ const selected = SelectorEngine.getElementFromSelector(element);
1615
+ if (selected) {
1616
+ this._addAriaAndCollapsedClass([element], this._isShown(selected));
1617
+ }
1618
+ }
1619
+ }
1620
+ _getFirstLevelChildren(selector) {
1621
+ const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent);
1622
+ // remove children if greater depth
1623
+ return SelectorEngine.find(selector, this._config.parent).filter(element => !children.includes(element));
1624
+ }
1625
+ _addAriaAndCollapsedClass(triggerArray, isOpen) {
1626
+ if (!triggerArray.length) {
1627
+ return;
1628
+ }
1629
+ for (const element of triggerArray) {
1630
+ element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen);
1631
+ element.setAttribute('aria-expanded', isOpen);
1632
+ }
1633
+ }
1634
+
1635
+ // Static
1636
+ static jQueryInterface(config) {
1637
+ const _config = {};
1638
+ if (typeof config === 'string' && /show|hide/.test(config)) {
1639
+ _config.toggle = false;
1640
+ }
1641
+ return this.each(function () {
1642
+ const data = Collapse.getOrCreateInstance(this, _config);
1643
+ if (typeof config === 'string') {
1644
+ if (typeof data[config] === 'undefined') {
1645
+ throw new TypeError(`No method named "${config}"`);
1646
+ }
1647
+ data[config]();
1648
+ }
1649
+ });
1650
+ }
1651
+ }
1652
+
1653
+ /**
1654
+ * Data API implementation
1655
+ */
1656
+
1657
+ EventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$4, function (event) {
1658
+ // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
1659
+ if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
1660
+ event.preventDefault();
1661
+ }
1662
+ for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {
1663
+ Collapse.getOrCreateInstance(element, {
1664
+ toggle: false
1665
+ }).toggle();
1666
+ }
1667
+ });
1668
+
1669
+ /**
1670
+ * jQuery
1671
+ */
1672
+
1673
+ defineJQueryPlugin(Collapse);
1674
+
1675
+ /**
1676
+ * --------------------------------------------------------------------------
1677
+ * Bootstrap (v5.3.0-alpha1): dropdown.js
1678
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1679
+ * --------------------------------------------------------------------------
1680
+ */
1681
+
1682
+ /**
1683
+ * Constants
1684
+ */
1685
+
1686
+ const NAME$a = 'dropdown';
1687
+ const DATA_KEY$6 = 'bs.dropdown';
1688
+ const EVENT_KEY$6 = `.${DATA_KEY$6}`;
1689
+ const DATA_API_KEY$3 = '.data-api';
1690
+ const ESCAPE_KEY$2 = 'Escape';
1691
+ const TAB_KEY$1 = 'Tab';
1692
+ const ARROW_UP_KEY$1 = 'ArrowUp';
1693
+ const ARROW_DOWN_KEY$1 = 'ArrowDown';
1694
+ const RIGHT_MOUSE_BUTTON = 2; // MouseEvent.button value for the secondary button, usually the right button
1695
+
1696
+ const EVENT_HIDE$5 = `hide${EVENT_KEY$6}`;
1697
+ const EVENT_HIDDEN$5 = `hidden${EVENT_KEY$6}`;
1698
+ const EVENT_SHOW$5 = `show${EVENT_KEY$6}`;
1699
+ const EVENT_SHOWN$5 = `shown${EVENT_KEY$6}`;
1700
+ const EVENT_CLICK_DATA_API$3 = `click${EVENT_KEY$6}${DATA_API_KEY$3}`;
1701
+ const EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY$6}${DATA_API_KEY$3}`;
1702
+ const EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY$6}${DATA_API_KEY$3}`;
1703
+ const CLASS_NAME_SHOW$6 = 'show';
1704
+ const CLASS_NAME_DROPUP = 'dropup';
1705
+ const CLASS_NAME_DROPEND = 'dropend';
1706
+ const CLASS_NAME_DROPSTART = 'dropstart';
1707
+ const CLASS_NAME_DROPUP_CENTER = 'dropup-center';
1708
+ const CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center';
1709
+ const SELECTOR_DATA_TOGGLE$3 = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)';
1710
+ const SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`;
1711
+ const SELECTOR_MENU = '.dropdown-menu';
1712
+ const SELECTOR_NAVBAR = '.navbar';
1713
+ const SELECTOR_NAVBAR_NAV = '.navbar-nav';
1714
+ const SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
1715
+ const PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start';
1716
+ const PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end';
1717
+ const PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start';
1718
+ const PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end';
1719
+ const PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start';
1720
+ const PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start';
1721
+ const PLACEMENT_TOPCENTER = 'top';
1722
+ const PLACEMENT_BOTTOMCENTER = 'bottom';
1723
+ const Default$9 = {
1724
+ autoClose: true,
1725
+ boundary: 'clippingParents',
1726
+ display: 'dynamic',
1727
+ offset: [0, 2],
1728
+ popperConfig: null,
1729
+ reference: 'toggle'
1730
+ };
1731
+ const DefaultType$9 = {
1732
+ autoClose: '(boolean|string)',
1733
+ boundary: '(string|element)',
1734
+ display: 'string',
1735
+ offset: '(array|string|function)',
1736
+ popperConfig: '(null|object|function)',
1737
+ reference: '(string|element|object)'
1738
+ };
1739
+
1740
+ /**
1741
+ * Class definition
1742
+ */
1743
+
1744
+ class Dropdown extends BaseComponent {
1745
+ constructor(element, config) {
1746
+ super(element, config);
1747
+ this._popper = null;
1748
+ this._parent = this._element.parentNode; // dropdown wrapper
1749
+ // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
1750
+ this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
1751
+ this._inNavbar = this._detectNavbar();
1752
+ }
1753
+
1754
+ // Getters
1755
+ static get Default() {
1756
+ return Default$9;
1757
+ }
1758
+ static get DefaultType() {
1759
+ return DefaultType$9;
1760
+ }
1761
+ static get NAME() {
1762
+ return NAME$a;
1763
+ }
1764
+
1765
+ // Public
1766
+ toggle() {
1767
+ return this._isShown() ? this.hide() : this.show();
1768
+ }
1769
+ show() {
1770
+ if (isDisabled(this._element) || this._isShown()) {
1771
+ return;
1772
+ }
1773
+ const relatedTarget = {
1774
+ relatedTarget: this._element
1775
+ };
1776
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$5, relatedTarget);
1777
+ if (showEvent.defaultPrevented) {
1778
+ return;
1779
+ }
1780
+ this._createPopper();
1781
+
1782
+ // If this is a touch-enabled device we add extra
1783
+ // empty mouseover listeners to the body's immediate children;
1784
+ // only needed because of broken event delegation on iOS
1785
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1786
+ if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {
1787
+ for (const element of [].concat(...document.body.children)) {
1788
+ EventHandler.on(element, 'mouseover', noop);
1789
+ }
1790
+ }
1791
+ this._element.focus();
1792
+ this._element.setAttribute('aria-expanded', true);
1793
+ this._menu.classList.add(CLASS_NAME_SHOW$6);
1794
+ this._element.classList.add(CLASS_NAME_SHOW$6);
1795
+ EventHandler.trigger(this._element, EVENT_SHOWN$5, relatedTarget);
1796
+ }
1797
+ hide() {
1798
+ if (isDisabled(this._element) || !this._isShown()) {
1799
+ return;
1800
+ }
1801
+ const relatedTarget = {
1802
+ relatedTarget: this._element
1803
+ };
1804
+ this._completeHide(relatedTarget);
1805
+ }
1806
+ dispose() {
1807
+ if (this._popper) {
1808
+ this._popper.destroy();
1809
+ }
1810
+ super.dispose();
1811
+ }
1812
+ update() {
1813
+ this._inNavbar = this._detectNavbar();
1814
+ if (this._popper) {
1815
+ this._popper.update();
1816
+ }
1817
+ }
1818
+
1819
+ // Private
1820
+ _completeHide(relatedTarget) {
1821
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$5, relatedTarget);
1822
+ if (hideEvent.defaultPrevented) {
1823
+ return;
1824
+ }
1825
+
1826
+ // If this is a touch-enabled device we remove the extra
1827
+ // empty mouseover listeners we added for iOS support
1828
+ if ('ontouchstart' in document.documentElement) {
1829
+ for (const element of [].concat(...document.body.children)) {
1830
+ EventHandler.off(element, 'mouseover', noop);
1831
+ }
1832
+ }
1833
+ if (this._popper) {
1834
+ this._popper.destroy();
1835
+ }
1836
+ this._menu.classList.remove(CLASS_NAME_SHOW$6);
1837
+ this._element.classList.remove(CLASS_NAME_SHOW$6);
1838
+ this._element.setAttribute('aria-expanded', 'false');
1839
+ Manipulator.removeDataAttribute(this._menu, 'popper');
1840
+ EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
1841
+ }
1842
+ _getConfig(config) {
1843
+ config = super._getConfig(config);
1844
+ if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
1845
+ // Popper virtual elements require a getBoundingClientRect method
1846
+ throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);
1847
+ }
1848
+ return config;
1849
+ }
1850
+ _createPopper() {
1851
+ if (typeof Popper === 'undefined') {
1852
+ throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
1853
+ }
1854
+ let referenceElement = this._element;
1855
+ if (this._config.reference === 'parent') {
1856
+ referenceElement = this._parent;
1857
+ } else if (isElement(this._config.reference)) {
1858
+ referenceElement = getElement(this._config.reference);
1859
+ } else if (typeof this._config.reference === 'object') {
1860
+ referenceElement = this._config.reference;
1861
+ }
1862
+ const popperConfig = this._getPopperConfig();
1863
+ this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);
1864
+ }
1865
+ _isShown() {
1866
+ return this._menu.classList.contains(CLASS_NAME_SHOW$6);
1867
+ }
1868
+ _getPlacement() {
1869
+ const parentDropdown = this._parent;
1870
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
1871
+ return PLACEMENT_RIGHT;
1872
+ }
1873
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
1874
+ return PLACEMENT_LEFT;
1875
+ }
1876
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {
1877
+ return PLACEMENT_TOPCENTER;
1878
+ }
1879
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {
1880
+ return PLACEMENT_BOTTOMCENTER;
1881
+ }
1882
+
1883
+ // We need to trim the value because custom properties can also include spaces
1884
+ const isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
1885
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
1886
+ return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
1887
+ }
1888
+ return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
1889
+ }
1890
+ _detectNavbar() {
1891
+ return this._element.closest(SELECTOR_NAVBAR) !== null;
1892
+ }
1893
+ _getOffset() {
1894
+ const {
1895
+ offset
1896
+ } = this._config;
1897
+ if (typeof offset === 'string') {
1898
+ return offset.split(',').map(value => Number.parseInt(value, 10));
1899
+ }
1900
+ if (typeof offset === 'function') {
1901
+ return popperData => offset(popperData, this._element);
1902
+ }
1903
+ return offset;
1904
+ }
1905
+ _getPopperConfig() {
1906
+ const defaultBsPopperConfig = {
1907
+ placement: this._getPlacement(),
1908
+ modifiers: [{
1909
+ name: 'preventOverflow',
1910
+ options: {
1911
+ boundary: this._config.boundary
1912
+ }
1913
+ }, {
1914
+ name: 'offset',
1915
+ options: {
1916
+ offset: this._getOffset()
1917
+ }
1918
+ }]
1919
+ };
1920
+
1921
+ // Disable Popper if we have a static display or Dropdown is in Navbar
1922
+ if (this._inNavbar || this._config.display === 'static') {
1923
+ Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // todo:v6 remove
1924
+ defaultBsPopperConfig.modifiers = [{
1925
+ name: 'applyStyles',
1926
+ enabled: false
1927
+ }];
1928
+ }
1929
+ return {
1930
+ ...defaultBsPopperConfig,
1931
+ ...execute(this._config.popperConfig, [defaultBsPopperConfig])
1932
+ };
1933
+ }
1934
+ _selectMenuItem({
1935
+ key,
1936
+ target
1937
+ }) {
1938
+ const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(element => isVisible(element));
1939
+ if (!items.length) {
1940
+ return;
1941
+ }
1942
+
1943
+ // if target isn't included in items (e.g. when expanding the dropdown)
1944
+ // allow cycling to get the last item in case key equals ARROW_UP_KEY
1945
+ getNextActiveElement(items, target, key === ARROW_DOWN_KEY$1, !items.includes(target)).focus();
1946
+ }
1947
+
1948
+ // Static
1949
+ static jQueryInterface(config) {
1950
+ return this.each(function () {
1951
+ const data = Dropdown.getOrCreateInstance(this, config);
1952
+ if (typeof config !== 'string') {
1953
+ return;
1954
+ }
1955
+ if (typeof data[config] === 'undefined') {
1956
+ throw new TypeError(`No method named "${config}"`);
1957
+ }
1958
+ data[config]();
1959
+ });
1960
+ }
1961
+ static clearMenus(event) {
1962
+ if (event.button === RIGHT_MOUSE_BUTTON || event.type === 'keyup' && event.key !== TAB_KEY$1) {
1963
+ return;
1964
+ }
1965
+ const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);
1966
+ for (const toggle of openToggles) {
1967
+ const context = Dropdown.getInstance(toggle);
1968
+ if (!context || context._config.autoClose === false) {
1969
+ continue;
1970
+ }
1971
+ const composedPath = event.composedPath();
1972
+ const isMenuTarget = composedPath.includes(context._menu);
1973
+ if (composedPath.includes(context._element) || context._config.autoClose === 'inside' && !isMenuTarget || context._config.autoClose === 'outside' && isMenuTarget) {
1974
+ continue;
1975
+ }
1976
+
1977
+ // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu
1978
+ if (context._menu.contains(event.target) && (event.type === 'keyup' && event.key === TAB_KEY$1 || /input|select|option|textarea|form/i.test(event.target.tagName))) {
1979
+ continue;
1980
+ }
1981
+ const relatedTarget = {
1982
+ relatedTarget: context._element
1983
+ };
1984
+ if (event.type === 'click') {
1985
+ relatedTarget.clickEvent = event;
1986
+ }
1987
+ context._completeHide(relatedTarget);
1988
+ }
1989
+ }
1990
+ static dataApiKeydownHandler(event) {
1991
+ // If not an UP | DOWN | ESCAPE key => not a dropdown command
1992
+ // If input/textarea && if key is other than ESCAPE => not a dropdown command
1993
+
1994
+ const isInput = /input|textarea/i.test(event.target.tagName);
1995
+ const isEscapeEvent = event.key === ESCAPE_KEY$2;
1996
+ const isUpOrDownEvent = [ARROW_UP_KEY$1, ARROW_DOWN_KEY$1].includes(event.key);
1997
+ if (!isUpOrDownEvent && !isEscapeEvent) {
1998
+ return;
1999
+ }
2000
+ if (isInput && !isEscapeEvent) {
2001
+ return;
2002
+ }
2003
+ event.preventDefault();
2004
+
2005
+ // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
2006
+ const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);
2007
+ const instance = Dropdown.getOrCreateInstance(getToggleButton);
2008
+ if (isUpOrDownEvent) {
2009
+ event.stopPropagation();
2010
+ instance.show();
2011
+ instance._selectMenuItem(event);
2012
+ return;
2013
+ }
2014
+ if (instance._isShown()) {
2015
+ // else is escape and we check if it is shown
2016
+ event.stopPropagation();
2017
+ instance.hide();
2018
+ getToggleButton.focus();
2019
+ }
2020
+ }
2021
+ }
2022
+
2023
+ /**
2024
+ * Data API implementation
2025
+ */
2026
+
2027
+ EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$3, Dropdown.dataApiKeydownHandler);
2028
+ EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);
2029
+ EventHandler.on(document, EVENT_CLICK_DATA_API$3, Dropdown.clearMenus);
2030
+ EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);
2031
+ EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {
2032
+ event.preventDefault();
2033
+ Dropdown.getOrCreateInstance(this).toggle();
2034
+ });
2035
+
2036
+ /**
2037
+ * jQuery
2038
+ */
2039
+
2040
+ defineJQueryPlugin(Dropdown);
2041
+
2042
+ /**
2043
+ * --------------------------------------------------------------------------
2044
+ * Bootstrap (v5.3.0-alpha1): util/scrollBar.js
2045
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2046
+ * --------------------------------------------------------------------------
2047
+ */
2048
+
2049
+ /**
2050
+ * Constants
2051
+ */
2052
+
2053
+ const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
2054
+ const SELECTOR_STICKY_CONTENT = '.sticky-top';
2055
+ const PROPERTY_PADDING = 'padding-right';
2056
+ const PROPERTY_MARGIN = 'margin-right';
2057
+
2058
+ /**
2059
+ * Class definition
2060
+ */
2061
+
2062
+ class ScrollBarHelper {
2063
+ constructor() {
2064
+ this._element = document.body;
2065
+ }
2066
+
2067
+ // Public
2068
+ getWidth() {
2069
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
2070
+ const documentWidth = document.documentElement.clientWidth;
2071
+ return Math.abs(window.innerWidth - documentWidth);
2072
+ }
2073
+ hide() {
2074
+ const width = this.getWidth();
2075
+ this._disableOverFlow();
2076
+ // give padding to element to balance the hidden scrollbar width
2077
+ this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
2078
+ // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
2079
+ this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
2080
+ this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
2081
+ }
2082
+ reset() {
2083
+ this._resetElementAttributes(this._element, 'overflow');
2084
+ this._resetElementAttributes(this._element, PROPERTY_PADDING);
2085
+ this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
2086
+ this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
2087
+ }
2088
+ isOverflowing() {
2089
+ return this.getWidth() > 0;
2090
+ }
2091
+
2092
+ // Private
2093
+ _disableOverFlow() {
2094
+ this._saveInitialAttribute(this._element, 'overflow');
2095
+ this._element.style.overflow = 'hidden';
2096
+ }
2097
+ _setElementAttributes(selector, styleProperty, callback) {
2098
+ const scrollbarWidth = this.getWidth();
2099
+ const manipulationCallBack = element => {
2100
+ if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
2101
+ return;
2102
+ }
2103
+ this._saveInitialAttribute(element, styleProperty);
2104
+ const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
2105
+ element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
2106
+ };
2107
+ this._applyManipulationCallback(selector, manipulationCallBack);
2108
+ }
2109
+ _saveInitialAttribute(element, styleProperty) {
2110
+ const actualValue = element.style.getPropertyValue(styleProperty);
2111
+ if (actualValue) {
2112
+ Manipulator.setDataAttribute(element, styleProperty, actualValue);
2113
+ }
2114
+ }
2115
+ _resetElementAttributes(selector, styleProperty) {
2116
+ const manipulationCallBack = element => {
2117
+ const value = Manipulator.getDataAttribute(element, styleProperty);
2118
+ // We only want to remove the property if the value is `null`; the value can also be zero
2119
+ if (value === null) {
2120
+ element.style.removeProperty(styleProperty);
2121
+ return;
2122
+ }
2123
+ Manipulator.removeDataAttribute(element, styleProperty);
2124
+ element.style.setProperty(styleProperty, value);
2125
+ };
2126
+ this._applyManipulationCallback(selector, manipulationCallBack);
2127
+ }
2128
+ _applyManipulationCallback(selector, callBack) {
2129
+ if (isElement(selector)) {
2130
+ callBack(selector);
2131
+ return;
2132
+ }
2133
+ for (const sel of SelectorEngine.find(selector, this._element)) {
2134
+ callBack(sel);
2135
+ }
2136
+ }
2137
+ }
2138
+
2139
+ /**
2140
+ * --------------------------------------------------------------------------
2141
+ * Bootstrap (v5.3.0-alpha1): util/backdrop.js
2142
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2143
+ * --------------------------------------------------------------------------
2144
+ */
2145
+
2146
+ /**
2147
+ * Constants
2148
+ */
2149
+
2150
+ const NAME$9 = 'backdrop';
2151
+ const CLASS_NAME_FADE$4 = 'fade';
2152
+ const CLASS_NAME_SHOW$5 = 'show';
2153
+ const EVENT_MOUSEDOWN = `mousedown.bs.${NAME$9}`;
2154
+ const Default$8 = {
2155
+ className: 'modal-backdrop',
2156
+ clickCallback: null,
2157
+ isAnimated: false,
2158
+ isVisible: true,
2159
+ // if false, we use the backdrop helper without adding any element to the dom
2160
+ rootElement: 'body' // give the choice to place backdrop under different elements
2161
+ };
2162
+
2163
+ const DefaultType$8 = {
2164
+ className: 'string',
2165
+ clickCallback: '(function|null)',
2166
+ isAnimated: 'boolean',
2167
+ isVisible: 'boolean',
2168
+ rootElement: '(element|string)'
2169
+ };
2170
+
2171
+ /**
2172
+ * Class definition
2173
+ */
2174
+
2175
+ class Backdrop extends Config {
2176
+ constructor(config) {
2177
+ super();
2178
+ this._config = this._getConfig(config);
2179
+ this._isAppended = false;
2180
+ this._element = null;
2181
+ }
2182
+
2183
+ // Getters
2184
+ static get Default() {
2185
+ return Default$8;
2186
+ }
2187
+ static get DefaultType() {
2188
+ return DefaultType$8;
2189
+ }
2190
+ static get NAME() {
2191
+ return NAME$9;
2192
+ }
2193
+
2194
+ // Public
2195
+ show(callback) {
2196
+ if (!this._config.isVisible) {
2197
+ execute(callback);
2198
+ return;
2199
+ }
2200
+ this._append();
2201
+ const element = this._getElement();
2202
+ if (this._config.isAnimated) {
2203
+ reflow(element);
2204
+ }
2205
+ element.classList.add(CLASS_NAME_SHOW$5);
2206
+ this._emulateAnimation(() => {
2207
+ execute(callback);
2208
+ });
2209
+ }
2210
+ hide(callback) {
2211
+ if (!this._config.isVisible) {
2212
+ execute(callback);
2213
+ return;
2214
+ }
2215
+ this._getElement().classList.remove(CLASS_NAME_SHOW$5);
2216
+ this._emulateAnimation(() => {
2217
+ this.dispose();
2218
+ execute(callback);
2219
+ });
2220
+ }
2221
+ dispose() {
2222
+ if (!this._isAppended) {
2223
+ return;
2224
+ }
2225
+ EventHandler.off(this._element, EVENT_MOUSEDOWN);
2226
+ this._element.remove();
2227
+ this._isAppended = false;
2228
+ }
2229
+
2230
+ // Private
2231
+ _getElement() {
2232
+ if (!this._element) {
2233
+ const backdrop = document.createElement('div');
2234
+ backdrop.className = this._config.className;
2235
+ if (this._config.isAnimated) {
2236
+ backdrop.classList.add(CLASS_NAME_FADE$4);
2237
+ }
2238
+ this._element = backdrop;
2239
+ }
2240
+ return this._element;
2241
+ }
2242
+ _configAfterMerge(config) {
2243
+ // use getElement() with the default "body" to get a fresh Element on each instantiation
2244
+ config.rootElement = getElement(config.rootElement);
2245
+ return config;
2246
+ }
2247
+ _append() {
2248
+ if (this._isAppended) {
2249
+ return;
2250
+ }
2251
+ const element = this._getElement();
2252
+ this._config.rootElement.append(element);
2253
+ EventHandler.on(element, EVENT_MOUSEDOWN, () => {
2254
+ execute(this._config.clickCallback);
2255
+ });
2256
+ this._isAppended = true;
2257
+ }
2258
+ _emulateAnimation(callback) {
2259
+ executeAfterTransition(callback, this._getElement(), this._config.isAnimated);
2260
+ }
2261
+ }
2262
+
2263
+ /**
2264
+ * --------------------------------------------------------------------------
2265
+ * Bootstrap (v5.3.0-alpha1): util/focustrap.js
2266
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2267
+ * --------------------------------------------------------------------------
2268
+ */
2269
+
2270
+ /**
2271
+ * Constants
2272
+ */
2273
+
2274
+ const NAME$8 = 'focustrap';
2275
+ const DATA_KEY$5 = 'bs.focustrap';
2276
+ const EVENT_KEY$5 = `.${DATA_KEY$5}`;
2277
+ const EVENT_FOCUSIN$2 = `focusin${EVENT_KEY$5}`;
2278
+ const EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY$5}`;
2279
+ const TAB_KEY = 'Tab';
2280
+ const TAB_NAV_FORWARD = 'forward';
2281
+ const TAB_NAV_BACKWARD = 'backward';
2282
+ const Default$7 = {
2283
+ autofocus: true,
2284
+ trapElement: null // The element to trap focus inside of
2285
+ };
2286
+
2287
+ const DefaultType$7 = {
2288
+ autofocus: 'boolean',
2289
+ trapElement: 'element'
2290
+ };
2291
+
2292
+ /**
2293
+ * Class definition
2294
+ */
2295
+
2296
+ class FocusTrap extends Config {
2297
+ constructor(config) {
2298
+ super();
2299
+ this._config = this._getConfig(config);
2300
+ this._isActive = false;
2301
+ this._lastTabNavDirection = null;
2302
+ }
2303
+
2304
+ // Getters
2305
+ static get Default() {
2306
+ return Default$7;
2307
+ }
2308
+ static get DefaultType() {
2309
+ return DefaultType$7;
2310
+ }
2311
+ static get NAME() {
2312
+ return NAME$8;
2313
+ }
2314
+
2315
+ // Public
2316
+ activate() {
2317
+ if (this._isActive) {
2318
+ return;
2319
+ }
2320
+ if (this._config.autofocus) {
2321
+ this._config.trapElement.focus();
2322
+ }
2323
+ EventHandler.off(document, EVENT_KEY$5); // guard against infinite focus loop
2324
+ EventHandler.on(document, EVENT_FOCUSIN$2, event => this._handleFocusin(event));
2325
+ EventHandler.on(document, EVENT_KEYDOWN_TAB, event => this._handleKeydown(event));
2326
+ this._isActive = true;
2327
+ }
2328
+ deactivate() {
2329
+ if (!this._isActive) {
2330
+ return;
2331
+ }
2332
+ this._isActive = false;
2333
+ EventHandler.off(document, EVENT_KEY$5);
2334
+ }
2335
+
2336
+ // Private
2337
+ _handleFocusin(event) {
2338
+ const {
2339
+ trapElement
2340
+ } = this._config;
2341
+ if (event.target === document || event.target === trapElement || trapElement.contains(event.target)) {
2342
+ return;
2343
+ }
2344
+ const elements = SelectorEngine.focusableChildren(trapElement);
2345
+ if (elements.length === 0) {
2346
+ trapElement.focus();
2347
+ } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {
2348
+ elements[elements.length - 1].focus();
2349
+ } else {
2350
+ elements[0].focus();
2351
+ }
2352
+ }
2353
+ _handleKeydown(event) {
2354
+ if (event.key !== TAB_KEY) {
2355
+ return;
2356
+ }
2357
+ this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD;
2358
+ }
2359
+ }
2360
+
2361
+ /**
2362
+ * --------------------------------------------------------------------------
2363
+ * Bootstrap (v5.3.0-alpha1): modal.js
2364
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2365
+ * --------------------------------------------------------------------------
2366
+ */
2367
+
2368
+ /**
2369
+ * Constants
2370
+ */
2371
+
2372
+ const NAME$7 = 'modal';
2373
+ const DATA_KEY$4 = 'bs.modal';
2374
+ const EVENT_KEY$4 = `.${DATA_KEY$4}`;
2375
+ const DATA_API_KEY$2 = '.data-api';
2376
+ const ESCAPE_KEY$1 = 'Escape';
2377
+ const EVENT_HIDE$4 = `hide${EVENT_KEY$4}`;
2378
+ const EVENT_HIDE_PREVENTED$1 = `hidePrevented${EVENT_KEY$4}`;
2379
+ const EVENT_HIDDEN$4 = `hidden${EVENT_KEY$4}`;
2380
+ const EVENT_SHOW$4 = `show${EVENT_KEY$4}`;
2381
+ const EVENT_SHOWN$4 = `shown${EVENT_KEY$4}`;
2382
+ const EVENT_RESIZE$1 = `resize${EVENT_KEY$4}`;
2383
+ const EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY$4}`;
2384
+ const EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY$4}`;
2385
+ const EVENT_KEYDOWN_DISMISS$1 = `keydown.dismiss${EVENT_KEY$4}`;
2386
+ const EVENT_CLICK_DATA_API$2 = `click${EVENT_KEY$4}${DATA_API_KEY$2}`;
2387
+ const CLASS_NAME_OPEN = 'modal-open';
2388
+ const CLASS_NAME_FADE$3 = 'fade';
2389
+ const CLASS_NAME_SHOW$4 = 'show';
2390
+ const CLASS_NAME_STATIC = 'modal-static';
2391
+ const OPEN_SELECTOR$1 = '.modal.show';
2392
+ const SELECTOR_DIALOG = '.modal-dialog';
2393
+ const SELECTOR_MODAL_BODY = '.modal-body';
2394
+ const SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="modal"]';
2395
+ const Default$6 = {
2396
+ backdrop: true,
2397
+ focus: true,
2398
+ keyboard: true
2399
+ };
2400
+ const DefaultType$6 = {
2401
+ backdrop: '(boolean|string)',
2402
+ focus: 'boolean',
2403
+ keyboard: 'boolean'
2404
+ };
2405
+
2406
+ /**
2407
+ * Class definition
2408
+ */
2409
+
2410
+ class Modal extends BaseComponent {
2411
+ constructor(element, config) {
2412
+ super(element, config);
2413
+ this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element);
2414
+ this._backdrop = this._initializeBackDrop();
2415
+ this._focustrap = this._initializeFocusTrap();
2416
+ this._isShown = false;
2417
+ this._isTransitioning = false;
2418
+ this._scrollBar = new ScrollBarHelper();
2419
+ this._addEventListeners();
2420
+ }
2421
+
2422
+ // Getters
2423
+ static get Default() {
2424
+ return Default$6;
2425
+ }
2426
+ static get DefaultType() {
2427
+ return DefaultType$6;
2428
+ }
2429
+ static get NAME() {
2430
+ return NAME$7;
2431
+ }
2432
+
2433
+ // Public
2434
+ toggle(relatedTarget) {
2435
+ return this._isShown ? this.hide() : this.show(relatedTarget);
2436
+ }
2437
+ show(relatedTarget) {
2438
+ if (this._isShown || this._isTransitioning) {
2439
+ return;
2440
+ }
2441
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {
2442
+ relatedTarget
2443
+ });
2444
+ if (showEvent.defaultPrevented) {
2445
+ return;
2446
+ }
2447
+ this._isShown = true;
2448
+ this._isTransitioning = true;
2449
+ this._scrollBar.hide();
2450
+ document.body.classList.add(CLASS_NAME_OPEN);
2451
+ this._adjustDialog();
2452
+ this._backdrop.show(() => this._showElement(relatedTarget));
2453
+ }
2454
+ hide() {
2455
+ if (!this._isShown || this._isTransitioning) {
2456
+ return;
2457
+ }
2458
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4);
2459
+ if (hideEvent.defaultPrevented) {
2460
+ return;
2461
+ }
2462
+ this._isShown = false;
2463
+ this._isTransitioning = true;
2464
+ this._focustrap.deactivate();
2465
+ this._element.classList.remove(CLASS_NAME_SHOW$4);
2466
+ this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());
2467
+ }
2468
+ dispose() {
2469
+ for (const htmlElement of [window, this._dialog]) {
2470
+ EventHandler.off(htmlElement, EVENT_KEY$4);
2471
+ }
2472
+ this._backdrop.dispose();
2473
+ this._focustrap.deactivate();
2474
+ super.dispose();
2475
+ }
2476
+ handleUpdate() {
2477
+ this._adjustDialog();
2478
+ }
2479
+
2480
+ // Private
2481
+ _initializeBackDrop() {
2482
+ return new Backdrop({
2483
+ isVisible: Boolean(this._config.backdrop),
2484
+ // 'static' option will be translated to true, and booleans will keep their value,
2485
+ isAnimated: this._isAnimated()
2486
+ });
2487
+ }
2488
+ _initializeFocusTrap() {
2489
+ return new FocusTrap({
2490
+ trapElement: this._element
2491
+ });
2492
+ }
2493
+ _showElement(relatedTarget) {
2494
+ // try to append dynamic modal
2495
+ if (!document.body.contains(this._element)) {
2496
+ document.body.append(this._element);
2497
+ }
2498
+ this._element.style.display = 'block';
2499
+ this._element.removeAttribute('aria-hidden');
2500
+ this._element.setAttribute('aria-modal', true);
2501
+ this._element.setAttribute('role', 'dialog');
2502
+ this._element.scrollTop = 0;
2503
+ const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
2504
+ if (modalBody) {
2505
+ modalBody.scrollTop = 0;
2506
+ }
2507
+ reflow(this._element);
2508
+ this._element.classList.add(CLASS_NAME_SHOW$4);
2509
+ const transitionComplete = () => {
2510
+ if (this._config.focus) {
2511
+ this._focustrap.activate();
2512
+ }
2513
+ this._isTransitioning = false;
2514
+ EventHandler.trigger(this._element, EVENT_SHOWN$4, {
2515
+ relatedTarget
2516
+ });
2517
+ };
2518
+ this._queueCallback(transitionComplete, this._dialog, this._isAnimated());
2519
+ }
2520
+ _addEventListeners() {
2521
+ EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS$1, event => {
2522
+ if (event.key !== ESCAPE_KEY$1) {
2523
+ return;
2524
+ }
2525
+ if (this._config.keyboard) {
2526
+ event.preventDefault();
2527
+ this.hide();
2528
+ return;
2529
+ }
2530
+ this._triggerBackdropTransition();
2531
+ });
2532
+ EventHandler.on(window, EVENT_RESIZE$1, () => {
2533
+ if (this._isShown && !this._isTransitioning) {
2534
+ this._adjustDialog();
2535
+ }
2536
+ });
2537
+ EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
2538
+ // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
2539
+ EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {
2540
+ if (this._element !== event.target || this._element !== event2.target) {
2541
+ return;
2542
+ }
2543
+ if (this._config.backdrop === 'static') {
2544
+ this._triggerBackdropTransition();
2545
+ return;
2546
+ }
2547
+ if (this._config.backdrop) {
2548
+ this.hide();
2549
+ }
2550
+ });
2551
+ });
2552
+ }
2553
+ _hideModal() {
2554
+ this._element.style.display = 'none';
2555
+ this._element.setAttribute('aria-hidden', true);
2556
+ this._element.removeAttribute('aria-modal');
2557
+ this._element.removeAttribute('role');
2558
+ this._isTransitioning = false;
2559
+ this._backdrop.hide(() => {
2560
+ document.body.classList.remove(CLASS_NAME_OPEN);
2561
+ this._resetAdjustments();
2562
+ this._scrollBar.reset();
2563
+ EventHandler.trigger(this._element, EVENT_HIDDEN$4);
2564
+ });
2565
+ }
2566
+ _isAnimated() {
2567
+ return this._element.classList.contains(CLASS_NAME_FADE$3);
2568
+ }
2569
+ _triggerBackdropTransition() {
2570
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED$1);
2571
+ if (hideEvent.defaultPrevented) {
2572
+ return;
2573
+ }
2574
+ const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2575
+ const initialOverflowY = this._element.style.overflowY;
2576
+ // return if the following background transition hasn't yet completed
2577
+ if (initialOverflowY === 'hidden' || this._element.classList.contains(CLASS_NAME_STATIC)) {
2578
+ return;
2579
+ }
2580
+ if (!isModalOverflowing) {
2581
+ this._element.style.overflowY = 'hidden';
2582
+ }
2583
+ this._element.classList.add(CLASS_NAME_STATIC);
2584
+ this._queueCallback(() => {
2585
+ this._element.classList.remove(CLASS_NAME_STATIC);
2586
+ this._queueCallback(() => {
2587
+ this._element.style.overflowY = initialOverflowY;
2588
+ }, this._dialog);
2589
+ }, this._dialog);
2590
+ this._element.focus();
2591
+ }
2592
+
2593
+ /**
2594
+ * The following methods are used to handle overflowing modals
2595
+ */
2596
+
2597
+ _adjustDialog() {
2598
+ const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2599
+ const scrollbarWidth = this._scrollBar.getWidth();
2600
+ const isBodyOverflowing = scrollbarWidth > 0;
2601
+ if (isBodyOverflowing && !isModalOverflowing) {
2602
+ const property = isRTL() ? 'paddingLeft' : 'paddingRight';
2603
+ this._element.style[property] = `${scrollbarWidth}px`;
2604
+ }
2605
+ if (!isBodyOverflowing && isModalOverflowing) {
2606
+ const property = isRTL() ? 'paddingRight' : 'paddingLeft';
2607
+ this._element.style[property] = `${scrollbarWidth}px`;
2608
+ }
2609
+ }
2610
+ _resetAdjustments() {
2611
+ this._element.style.paddingLeft = '';
2612
+ this._element.style.paddingRight = '';
2613
+ }
2614
+
2615
+ // Static
2616
+ static jQueryInterface(config, relatedTarget) {
2617
+ return this.each(function () {
2618
+ const data = Modal.getOrCreateInstance(this, config);
2619
+ if (typeof config !== 'string') {
2620
+ return;
2621
+ }
2622
+ if (typeof data[config] === 'undefined') {
2623
+ throw new TypeError(`No method named "${config}"`);
2624
+ }
2625
+ data[config](relatedTarget);
2626
+ });
2627
+ }
2628
+ }
2629
+
2630
+ /**
2631
+ * Data API implementation
2632
+ */
2633
+
2634
+ EventHandler.on(document, EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {
2635
+ const target = SelectorEngine.getElementFromSelector(this);
2636
+ if (['A', 'AREA'].includes(this.tagName)) {
2637
+ event.preventDefault();
2638
+ }
2639
+ EventHandler.one(target, EVENT_SHOW$4, showEvent => {
2640
+ if (showEvent.defaultPrevented) {
2641
+ // only register focus restorer if modal will actually get shown
2642
+ return;
2643
+ }
2644
+ EventHandler.one(target, EVENT_HIDDEN$4, () => {
2645
+ if (isVisible(this)) {
2646
+ this.focus();
2647
+ }
2648
+ });
2649
+ });
2650
+
2651
+ // avoid conflict when clicking modal toggler while another one is open
2652
+ const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR$1);
2653
+ if (alreadyOpen) {
2654
+ Modal.getInstance(alreadyOpen).hide();
2655
+ }
2656
+ const data = Modal.getOrCreateInstance(target);
2657
+ data.toggle(this);
2658
+ });
2659
+ enableDismissTrigger(Modal);
2660
+
2661
+ /**
2662
+ * jQuery
2663
+ */
2664
+
2665
+ defineJQueryPlugin(Modal);
2666
+
2667
+ /**
2668
+ * --------------------------------------------------------------------------
2669
+ * Bootstrap (v5.3.0-alpha1): offcanvas.js
2670
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2671
+ * --------------------------------------------------------------------------
2672
+ */
2673
+
2674
+ /**
2675
+ * Constants
2676
+ */
2677
+
2678
+ const NAME$6 = 'offcanvas';
2679
+ const DATA_KEY$3 = 'bs.offcanvas';
2680
+ const EVENT_KEY$3 = `.${DATA_KEY$3}`;
2681
+ const DATA_API_KEY$1 = '.data-api';
2682
+ const EVENT_LOAD_DATA_API$2 = `load${EVENT_KEY$3}${DATA_API_KEY$1}`;
2683
+ const ESCAPE_KEY = 'Escape';
2684
+ const CLASS_NAME_SHOW$3 = 'show';
2685
+ const CLASS_NAME_SHOWING$1 = 'showing';
2686
+ const CLASS_NAME_HIDING = 'hiding';
2687
+ const CLASS_NAME_BACKDROP = 'offcanvas-backdrop';
2688
+ const OPEN_SELECTOR = '.offcanvas.show';
2689
+ const EVENT_SHOW$3 = `show${EVENT_KEY$3}`;
2690
+ const EVENT_SHOWN$3 = `shown${EVENT_KEY$3}`;
2691
+ const EVENT_HIDE$3 = `hide${EVENT_KEY$3}`;
2692
+ const EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY$3}`;
2693
+ const EVENT_HIDDEN$3 = `hidden${EVENT_KEY$3}`;
2694
+ const EVENT_RESIZE = `resize${EVENT_KEY$3}`;
2695
+ const EVENT_CLICK_DATA_API$1 = `click${EVENT_KEY$3}${DATA_API_KEY$1}`;
2696
+ const EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY$3}`;
2697
+ const SELECTOR_DATA_TOGGLE$1 = '[data-bs-toggle="offcanvas"]';
2698
+ const Default$5 = {
2699
+ backdrop: true,
2700
+ keyboard: true,
2701
+ scroll: false
2702
+ };
2703
+ const DefaultType$5 = {
2704
+ backdrop: '(boolean|string)',
2705
+ keyboard: 'boolean',
2706
+ scroll: 'boolean'
2707
+ };
2708
+
2709
+ /**
2710
+ * Class definition
2711
+ */
2712
+
2713
+ class Offcanvas extends BaseComponent {
2714
+ constructor(element, config) {
2715
+ super(element, config);
2716
+ this._isShown = false;
2717
+ this._backdrop = this._initializeBackDrop();
2718
+ this._focustrap = this._initializeFocusTrap();
2719
+ this._addEventListeners();
2720
+ }
2721
+
2722
+ // Getters
2723
+ static get Default() {
2724
+ return Default$5;
2725
+ }
2726
+ static get DefaultType() {
2727
+ return DefaultType$5;
2728
+ }
2729
+ static get NAME() {
2730
+ return NAME$6;
2731
+ }
2732
+
2733
+ // Public
2734
+ toggle(relatedTarget) {
2735
+ return this._isShown ? this.hide() : this.show(relatedTarget);
2736
+ }
2737
+ show(relatedTarget) {
2738
+ if (this._isShown) {
2739
+ return;
2740
+ }
2741
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
2742
+ relatedTarget
2743
+ });
2744
+ if (showEvent.defaultPrevented) {
2745
+ return;
2746
+ }
2747
+ this._isShown = true;
2748
+ this._backdrop.show();
2749
+ if (!this._config.scroll) {
2750
+ new ScrollBarHelper().hide();
2751
+ }
2752
+ this._element.setAttribute('aria-modal', true);
2753
+ this._element.setAttribute('role', 'dialog');
2754
+ this._element.classList.add(CLASS_NAME_SHOWING$1);
2755
+ const completeCallBack = () => {
2756
+ if (!this._config.scroll || this._config.backdrop) {
2757
+ this._focustrap.activate();
2758
+ }
2759
+ this._element.classList.add(CLASS_NAME_SHOW$3);
2760
+ this._element.classList.remove(CLASS_NAME_SHOWING$1);
2761
+ EventHandler.trigger(this._element, EVENT_SHOWN$3, {
2762
+ relatedTarget
2763
+ });
2764
+ };
2765
+ this._queueCallback(completeCallBack, this._element, true);
2766
+ }
2767
+ hide() {
2768
+ if (!this._isShown) {
2769
+ return;
2770
+ }
2771
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$3);
2772
+ if (hideEvent.defaultPrevented) {
2773
+ return;
2774
+ }
2775
+ this._focustrap.deactivate();
2776
+ this._element.blur();
2777
+ this._isShown = false;
2778
+ this._element.classList.add(CLASS_NAME_HIDING);
2779
+ this._backdrop.hide();
2780
+ const completeCallback = () => {
2781
+ this._element.classList.remove(CLASS_NAME_SHOW$3, CLASS_NAME_HIDING);
2782
+ this._element.removeAttribute('aria-modal');
2783
+ this._element.removeAttribute('role');
2784
+ if (!this._config.scroll) {
2785
+ new ScrollBarHelper().reset();
2786
+ }
2787
+ EventHandler.trigger(this._element, EVENT_HIDDEN$3);
2788
+ };
2789
+ this._queueCallback(completeCallback, this._element, true);
2790
+ }
2791
+ dispose() {
2792
+ this._backdrop.dispose();
2793
+ this._focustrap.deactivate();
2794
+ super.dispose();
2795
+ }
2796
+
2797
+ // Private
2798
+ _initializeBackDrop() {
2799
+ const clickCallback = () => {
2800
+ if (this._config.backdrop === 'static') {
2801
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2802
+ return;
2803
+ }
2804
+ this.hide();
2805
+ };
2806
+
2807
+ // 'static' option will be translated to true, and booleans will keep their value
2808
+ const isVisible = Boolean(this._config.backdrop);
2809
+ return new Backdrop({
2810
+ className: CLASS_NAME_BACKDROP,
2811
+ isVisible,
2812
+ isAnimated: true,
2813
+ rootElement: this._element.parentNode,
2814
+ clickCallback: isVisible ? clickCallback : null
2815
+ });
2816
+ }
2817
+ _initializeFocusTrap() {
2818
+ return new FocusTrap({
2819
+ trapElement: this._element
2820
+ });
2821
+ }
2822
+ _addEventListeners() {
2823
+ EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {
2824
+ if (event.key !== ESCAPE_KEY) {
2825
+ return;
2826
+ }
2827
+ if (!this._config.keyboard) {
2828
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2829
+ return;
2830
+ }
2831
+ this.hide();
2832
+ });
2833
+ }
2834
+
2835
+ // Static
2836
+ static jQueryInterface(config) {
2837
+ return this.each(function () {
2838
+ const data = Offcanvas.getOrCreateInstance(this, config);
2839
+ if (typeof config !== 'string') {
2840
+ return;
2841
+ }
2842
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
2843
+ throw new TypeError(`No method named "${config}"`);
2844
+ }
2845
+ data[config](this);
2846
+ });
2847
+ }
2848
+ }
2849
+
2850
+ /**
2851
+ * Data API implementation
2852
+ */
2853
+
2854
+ EventHandler.on(document, EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {
2855
+ const target = SelectorEngine.getElementFromSelector(this);
2856
+ if (['A', 'AREA'].includes(this.tagName)) {
2857
+ event.preventDefault();
2858
+ }
2859
+ if (isDisabled(this)) {
2860
+ return;
2861
+ }
2862
+ EventHandler.one(target, EVENT_HIDDEN$3, () => {
2863
+ // focus on trigger when it is closed
2864
+ if (isVisible(this)) {
2865
+ this.focus();
2866
+ }
2867
+ });
2868
+
2869
+ // avoid conflict when clicking a toggler of an offcanvas, while another is open
2870
+ const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR);
2871
+ if (alreadyOpen && alreadyOpen !== target) {
2872
+ Offcanvas.getInstance(alreadyOpen).hide();
2873
+ }
2874
+ const data = Offcanvas.getOrCreateInstance(target);
2875
+ data.toggle(this);
2876
+ });
2877
+ EventHandler.on(window, EVENT_LOAD_DATA_API$2, () => {
2878
+ for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {
2879
+ Offcanvas.getOrCreateInstance(selector).show();
2880
+ }
2881
+ });
2882
+ EventHandler.on(window, EVENT_RESIZE, () => {
2883
+ for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {
2884
+ if (getComputedStyle(element).position !== 'fixed') {
2885
+ Offcanvas.getOrCreateInstance(element).hide();
2886
+ }
2887
+ }
2888
+ });
2889
+ enableDismissTrigger(Offcanvas);
2890
+
2891
+ /**
2892
+ * jQuery
2893
+ */
2894
+
2895
+ defineJQueryPlugin(Offcanvas);
2896
+
2897
+ /**
2898
+ * --------------------------------------------------------------------------
2899
+ * Bootstrap (v5.3.0-alpha1): util/sanitizer.js
2900
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2901
+ * --------------------------------------------------------------------------
2902
+ */
2903
+
2904
+ const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
2905
+ const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2906
+
2907
+ /**
2908
+ * A pattern that recognizes a commonly useful subset of URLs that are safe.
2909
+ *
2910
+ * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
2911
+ */
2912
+ const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
2913
+
2914
+ /**
2915
+ * A pattern that matches safe data URLs. Only matches image, video and audio types.
2916
+ *
2917
+ * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
2918
+ */
2919
+ const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
2920
+ const allowedAttribute = (attribute, allowedAttributeList) => {
2921
+ const attributeName = attribute.nodeName.toLowerCase();
2922
+ if (allowedAttributeList.includes(attributeName)) {
2923
+ if (uriAttributes.has(attributeName)) {
2924
+ return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue) || DATA_URL_PATTERN.test(attribute.nodeValue));
2925
+ }
2926
+ return true;
2927
+ }
2928
+
2929
+ // Check if a regular expression validates the attribute.
2930
+ return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
2931
+ };
2932
+ const DefaultAllowlist = {
2933
+ // Global attributes allowed on any supplied element below.
2934
+ '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
2935
+ a: ['target', 'href', 'title', 'rel'],
2936
+ area: [],
2937
+ b: [],
2938
+ br: [],
2939
+ col: [],
2940
+ code: [],
2941
+ div: [],
2942
+ em: [],
2943
+ hr: [],
2944
+ h1: [],
2945
+ h2: [],
2946
+ h3: [],
2947
+ h4: [],
2948
+ h5: [],
2949
+ h6: [],
2950
+ i: [],
2951
+ img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
2952
+ li: [],
2953
+ ol: [],
2954
+ p: [],
2955
+ pre: [],
2956
+ s: [],
2957
+ small: [],
2958
+ span: [],
2959
+ sub: [],
2960
+ sup: [],
2961
+ strong: [],
2962
+ u: [],
2963
+ ul: []
2964
+ };
2965
+ function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2966
+ if (!unsafeHtml.length) {
2967
+ return unsafeHtml;
2968
+ }
2969
+ if (sanitizeFunction && typeof sanitizeFunction === 'function') {
2970
+ return sanitizeFunction(unsafeHtml);
2971
+ }
2972
+ const domParser = new window.DOMParser();
2973
+ const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
2974
+ const elements = [].concat(...createdDocument.body.querySelectorAll('*'));
2975
+ for (const element of elements) {
2976
+ const elementName = element.nodeName.toLowerCase();
2977
+ if (!Object.keys(allowList).includes(elementName)) {
2978
+ element.remove();
2979
+ continue;
2980
+ }
2981
+ const attributeList = [].concat(...element.attributes);
2982
+ const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || []);
2983
+ for (const attribute of attributeList) {
2984
+ if (!allowedAttribute(attribute, allowedAttributes)) {
2985
+ element.removeAttribute(attribute.nodeName);
2986
+ }
2987
+ }
2988
+ }
2989
+ return createdDocument.body.innerHTML;
2990
+ }
2991
+
2992
+ /**
2993
+ * --------------------------------------------------------------------------
2994
+ * Bootstrap (v5.3.0-alpha1): util/template-factory.js
2995
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2996
+ * --------------------------------------------------------------------------
2997
+ */
2998
+
2999
+ /**
3000
+ * Constants
3001
+ */
3002
+
3003
+ const NAME$5 = 'TemplateFactory';
3004
+ const Default$4 = {
3005
+ allowList: DefaultAllowlist,
3006
+ content: {},
3007
+ // { selector : text , selector2 : text2 , }
3008
+ extraClass: '',
3009
+ html: false,
3010
+ sanitize: true,
3011
+ sanitizeFn: null,
3012
+ template: '<div></div>'
3013
+ };
3014
+ const DefaultType$4 = {
3015
+ allowList: 'object',
3016
+ content: 'object',
3017
+ extraClass: '(string|function)',
3018
+ html: 'boolean',
3019
+ sanitize: 'boolean',
3020
+ sanitizeFn: '(null|function)',
3021
+ template: 'string'
3022
+ };
3023
+ const DefaultContentType = {
3024
+ entry: '(string|element|function|null)',
3025
+ selector: '(string|element)'
3026
+ };
3027
+
3028
+ /**
3029
+ * Class definition
3030
+ */
3031
+
3032
+ class TemplateFactory extends Config {
3033
+ constructor(config) {
3034
+ super();
3035
+ this._config = this._getConfig(config);
3036
+ }
3037
+
3038
+ // Getters
3039
+ static get Default() {
3040
+ return Default$4;
3041
+ }
3042
+ static get DefaultType() {
3043
+ return DefaultType$4;
3044
+ }
3045
+ static get NAME() {
3046
+ return NAME$5;
3047
+ }
3048
+
3049
+ // Public
3050
+ getContent() {
3051
+ return Object.values(this._config.content).map(config => this._resolvePossibleFunction(config)).filter(Boolean);
3052
+ }
3053
+ hasContent() {
3054
+ return this.getContent().length > 0;
3055
+ }
3056
+ changeContent(content) {
3057
+ this._checkContent(content);
3058
+ this._config.content = {
3059
+ ...this._config.content,
3060
+ ...content
3061
+ };
3062
+ return this;
3063
+ }
3064
+ toHtml() {
3065
+ const templateWrapper = document.createElement('div');
3066
+ templateWrapper.innerHTML = this._maybeSanitize(this._config.template);
3067
+ for (const [selector, text] of Object.entries(this._config.content)) {
3068
+ this._setContent(templateWrapper, text, selector);
3069
+ }
3070
+ const template = templateWrapper.children[0];
3071
+ const extraClass = this._resolvePossibleFunction(this._config.extraClass);
3072
+ if (extraClass) {
3073
+ template.classList.add(...extraClass.split(' '));
3074
+ }
3075
+ return template;
3076
+ }
3077
+
3078
+ // Private
3079
+ _typeCheckConfig(config) {
3080
+ super._typeCheckConfig(config);
3081
+ this._checkContent(config.content);
3082
+ }
3083
+ _checkContent(arg) {
3084
+ for (const [selector, content] of Object.entries(arg)) {
3085
+ super._typeCheckConfig({
3086
+ selector,
3087
+ entry: content
3088
+ }, DefaultContentType);
3089
+ }
3090
+ }
3091
+ _setContent(template, content, selector) {
3092
+ const templateElement = SelectorEngine.findOne(selector, template);
3093
+ if (!templateElement) {
3094
+ return;
3095
+ }
3096
+ content = this._resolvePossibleFunction(content);
3097
+ if (!content) {
3098
+ templateElement.remove();
3099
+ return;
3100
+ }
3101
+ if (isElement(content)) {
3102
+ this._putElementInTemplate(getElement(content), templateElement);
3103
+ return;
3104
+ }
3105
+ if (this._config.html) {
3106
+ templateElement.innerHTML = this._maybeSanitize(content);
3107
+ return;
3108
+ }
3109
+ templateElement.textContent = content;
3110
+ }
3111
+ _maybeSanitize(arg) {
3112
+ return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
3113
+ }
3114
+ _resolvePossibleFunction(arg) {
3115
+ return execute(arg, [this]);
3116
+ }
3117
+ _putElementInTemplate(element, templateElement) {
3118
+ if (this._config.html) {
3119
+ templateElement.innerHTML = '';
3120
+ templateElement.append(element);
3121
+ return;
3122
+ }
3123
+ templateElement.textContent = element.textContent;
3124
+ }
3125
+ }
3126
+
3127
+ /**
3128
+ * --------------------------------------------------------------------------
3129
+ * Bootstrap (v5.3.0-alpha1): tooltip.js
3130
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3131
+ * --------------------------------------------------------------------------
3132
+ */
3133
+
3134
+ /**
3135
+ * Constants
3136
+ */
3137
+
3138
+ const NAME$4 = 'tooltip';
3139
+ const DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);
3140
+ const CLASS_NAME_FADE$2 = 'fade';
3141
+ const CLASS_NAME_MODAL = 'modal';
3142
+ const CLASS_NAME_SHOW$2 = 'show';
3143
+ const SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
3144
+ const SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;
3145
+ const EVENT_MODAL_HIDE = 'hide.bs.modal';
3146
+ const TRIGGER_HOVER = 'hover';
3147
+ const TRIGGER_FOCUS = 'focus';
3148
+ const TRIGGER_CLICK = 'click';
3149
+ const TRIGGER_MANUAL = 'manual';
3150
+ const EVENT_HIDE$2 = 'hide';
3151
+ const EVENT_HIDDEN$2 = 'hidden';
3152
+ const EVENT_SHOW$2 = 'show';
3153
+ const EVENT_SHOWN$2 = 'shown';
3154
+ const EVENT_INSERTED = 'inserted';
3155
+ const EVENT_CLICK$1 = 'click';
3156
+ const EVENT_FOCUSIN$1 = 'focusin';
3157
+ const EVENT_FOCUSOUT$1 = 'focusout';
3158
+ const EVENT_MOUSEENTER = 'mouseenter';
3159
+ const EVENT_MOUSELEAVE = 'mouseleave';
3160
+ const AttachmentMap = {
3161
+ AUTO: 'auto',
3162
+ TOP: 'top',
3163
+ RIGHT: isRTL() ? 'left' : 'right',
3164
+ BOTTOM: 'bottom',
3165
+ LEFT: isRTL() ? 'right' : 'left'
3166
+ };
3167
+ const Default$3 = {
3168
+ allowList: DefaultAllowlist,
3169
+ animation: true,
3170
+ boundary: 'clippingParents',
3171
+ container: false,
3172
+ customClass: '',
3173
+ delay: 0,
3174
+ fallbackPlacements: ['top', 'right', 'bottom', 'left'],
3175
+ html: false,
3176
+ offset: [0, 0],
3177
+ placement: 'top',
3178
+ popperConfig: null,
3179
+ sanitize: true,
3180
+ sanitizeFn: null,
3181
+ selector: false,
3182
+ template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-arrow"></div>' + '<div class="tooltip-inner"></div>' + '</div>',
3183
+ title: '',
3184
+ trigger: 'hover focus'
3185
+ };
3186
+ const DefaultType$3 = {
3187
+ allowList: 'object',
3188
+ animation: 'boolean',
3189
+ boundary: '(string|element)',
3190
+ container: '(string|element|boolean)',
3191
+ customClass: '(string|function)',
3192
+ delay: '(number|object)',
3193
+ fallbackPlacements: 'array',
3194
+ html: 'boolean',
3195
+ offset: '(array|string|function)',
3196
+ placement: '(string|function)',
3197
+ popperConfig: '(null|object|function)',
3198
+ sanitize: 'boolean',
3199
+ sanitizeFn: '(null|function)',
3200
+ selector: '(string|boolean)',
3201
+ template: 'string',
3202
+ title: '(string|element|function)',
3203
+ trigger: 'string'
3204
+ };
3205
+
3206
+ /**
3207
+ * Class definition
3208
+ */
3209
+
3210
+ class Tooltip extends BaseComponent {
3211
+ constructor(element, config) {
3212
+ if (typeof Popper === 'undefined') {
3213
+ throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
3214
+ }
3215
+ super(element, config);
3216
+
3217
+ // Private
3218
+ this._isEnabled = true;
3219
+ this._timeout = 0;
3220
+ this._isHovered = null;
3221
+ this._activeTrigger = {};
3222
+ this._popper = null;
3223
+ this._templateFactory = null;
3224
+ this._newContent = null;
3225
+
3226
+ // Protected
3227
+ this.tip = null;
3228
+ this._setListeners();
3229
+ if (!this._config.selector) {
3230
+ this._fixTitle();
3231
+ }
3232
+ }
3233
+
3234
+ // Getters
3235
+ static get Default() {
3236
+ return Default$3;
3237
+ }
3238
+ static get DefaultType() {
3239
+ return DefaultType$3;
3240
+ }
3241
+ static get NAME() {
3242
+ return NAME$4;
3243
+ }
3244
+
3245
+ // Public
3246
+ enable() {
3247
+ this._isEnabled = true;
3248
+ }
3249
+ disable() {
3250
+ this._isEnabled = false;
3251
+ }
3252
+ toggleEnabled() {
3253
+ this._isEnabled = !this._isEnabled;
3254
+ }
3255
+ toggle() {
3256
+ if (!this._isEnabled) {
3257
+ return;
3258
+ }
3259
+ this._activeTrigger.click = !this._activeTrigger.click;
3260
+ if (this._isShown()) {
3261
+ this._leave();
3262
+ return;
3263
+ }
3264
+ this._enter();
3265
+ }
3266
+ dispose() {
3267
+ clearTimeout(this._timeout);
3268
+ EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
3269
+ if (this._element.getAttribute('data-bs-original-title')) {
3270
+ this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
3271
+ }
3272
+ this._disposePopper();
3273
+ super.dispose();
3274
+ }
3275
+ show() {
3276
+ if (this._element.style.display === 'none') {
3277
+ throw new Error('Please use show on visible elements');
3278
+ }
3279
+ if (!(this._isWithContent() && this._isEnabled)) {
3280
+ return;
3281
+ }
3282
+ const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW$2));
3283
+ const shadowRoot = findShadowRoot(this._element);
3284
+ const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element);
3285
+ if (showEvent.defaultPrevented || !isInTheDom) {
3286
+ return;
3287
+ }
3288
+
3289
+ // todo v6 remove this OR make it optional
3290
+ this._disposePopper();
3291
+ const tip = this._getTipElement();
3292
+ this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
3293
+ const {
3294
+ container
3295
+ } = this._config;
3296
+ if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
3297
+ container.append(tip);
3298
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));
3299
+ }
3300
+ this._popper = this._createPopper(tip);
3301
+ tip.classList.add(CLASS_NAME_SHOW$2);
3302
+
3303
+ // If this is a touch-enabled device we add extra
3304
+ // empty mouseover listeners to the body's immediate children;
3305
+ // only needed because of broken event delegation on iOS
3306
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
3307
+ if ('ontouchstart' in document.documentElement) {
3308
+ for (const element of [].concat(...document.body.children)) {
3309
+ EventHandler.on(element, 'mouseover', noop);
3310
+ }
3311
+ }
3312
+ const complete = () => {
3313
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN$2));
3314
+ if (this._isHovered === false) {
3315
+ this._leave();
3316
+ }
3317
+ this._isHovered = false;
3318
+ };
3319
+ this._queueCallback(complete, this.tip, this._isAnimated());
3320
+ }
3321
+ hide() {
3322
+ if (!this._isShown()) {
3323
+ return;
3324
+ }
3325
+ const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE$2));
3326
+ if (hideEvent.defaultPrevented) {
3327
+ return;
3328
+ }
3329
+ const tip = this._getTipElement();
3330
+ tip.classList.remove(CLASS_NAME_SHOW$2);
3331
+
3332
+ // If this is a touch-enabled device we remove the extra
3333
+ // empty mouseover listeners we added for iOS support
3334
+ if ('ontouchstart' in document.documentElement) {
3335
+ for (const element of [].concat(...document.body.children)) {
3336
+ EventHandler.off(element, 'mouseover', noop);
3337
+ }
3338
+ }
3339
+ this._activeTrigger[TRIGGER_CLICK] = false;
3340
+ this._activeTrigger[TRIGGER_FOCUS] = false;
3341
+ this._activeTrigger[TRIGGER_HOVER] = false;
3342
+ this._isHovered = null; // it is a trick to support manual triggering
3343
+
3344
+ const complete = () => {
3345
+ if (this._isWithActiveTrigger()) {
3346
+ return;
3347
+ }
3348
+ if (!this._isHovered) {
3349
+ this._disposePopper();
3350
+ }
3351
+ this._element.removeAttribute('aria-describedby');
3352
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN$2));
3353
+ };
3354
+ this._queueCallback(complete, this.tip, this._isAnimated());
3355
+ }
3356
+ update() {
3357
+ if (this._popper) {
3358
+ this._popper.update();
3359
+ }
3360
+ }
3361
+
3362
+ // Protected
3363
+ _isWithContent() {
3364
+ return Boolean(this._getTitle());
3365
+ }
3366
+ _getTipElement() {
3367
+ if (!this.tip) {
3368
+ this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());
3369
+ }
3370
+ return this.tip;
3371
+ }
3372
+ _createTipElement(content) {
3373
+ const tip = this._getTemplateFactory(content).toHtml();
3374
+
3375
+ // todo: remove this check on v6
3376
+ if (!tip) {
3377
+ return null;
3378
+ }
3379
+ tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);
3380
+ // todo: on v6 the following can be achieved with CSS only
3381
+ tip.classList.add(`bs-${this.constructor.NAME}-auto`);
3382
+ const tipId = getUID(this.constructor.NAME).toString();
3383
+ tip.setAttribute('id', tipId);
3384
+ if (this._isAnimated()) {
3385
+ tip.classList.add(CLASS_NAME_FADE$2);
3386
+ }
3387
+ return tip;
3388
+ }
3389
+ setContent(content) {
3390
+ this._newContent = content;
3391
+ if (this._isShown()) {
3392
+ this._disposePopper();
3393
+ this.show();
3394
+ }
3395
+ }
3396
+ _getTemplateFactory(content) {
3397
+ if (this._templateFactory) {
3398
+ this._templateFactory.changeContent(content);
3399
+ } else {
3400
+ this._templateFactory = new TemplateFactory({
3401
+ ...this._config,
3402
+ // the `content` var has to be after `this._config`
3403
+ // to override config.content in case of popover
3404
+ content,
3405
+ extraClass: this._resolvePossibleFunction(this._config.customClass)
3406
+ });
3407
+ }
3408
+ return this._templateFactory;
3409
+ }
3410
+ _getContentForTemplate() {
3411
+ return {
3412
+ [SELECTOR_TOOLTIP_INNER]: this._getTitle()
3413
+ };
3414
+ }
3415
+ _getTitle() {
3416
+ return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');
3417
+ }
3418
+
3419
+ // Private
3420
+ _initializeOnDelegatedTarget(event) {
3421
+ return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig());
3422
+ }
3423
+ _isAnimated() {
3424
+ return this._config.animation || this.tip && this.tip.classList.contains(CLASS_NAME_FADE$2);
3425
+ }
3426
+ _isShown() {
3427
+ return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW$2);
3428
+ }
3429
+ _createPopper(tip) {
3430
+ const placement = execute(this._config.placement, [this, tip, this._element]);
3431
+ const attachment = AttachmentMap[placement.toUpperCase()];
3432
+ return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
3433
+ }
3434
+ _getOffset() {
3435
+ const {
3436
+ offset
3437
+ } = this._config;
3438
+ if (typeof offset === 'string') {
3439
+ return offset.split(',').map(value => Number.parseInt(value, 10));
3440
+ }
3441
+ if (typeof offset === 'function') {
3442
+ return popperData => offset(popperData, this._element);
3443
+ }
3444
+ return offset;
3445
+ }
3446
+ _resolvePossibleFunction(arg) {
3447
+ return execute(arg, [this._element]);
3448
+ }
3449
+ _getPopperConfig(attachment) {
3450
+ const defaultBsPopperConfig = {
3451
+ placement: attachment,
3452
+ modifiers: [{
3453
+ name: 'flip',
3454
+ options: {
3455
+ fallbackPlacements: this._config.fallbackPlacements
3456
+ }
3457
+ }, {
3458
+ name: 'offset',
3459
+ options: {
3460
+ offset: this._getOffset()
3461
+ }
3462
+ }, {
3463
+ name: 'preventOverflow',
3464
+ options: {
3465
+ boundary: this._config.boundary
3466
+ }
3467
+ }, {
3468
+ name: 'arrow',
3469
+ options: {
3470
+ element: `.${this.constructor.NAME}-arrow`
3471
+ }
3472
+ }, {
3473
+ name: 'preSetPlacement',
3474
+ enabled: true,
3475
+ phase: 'beforeMain',
3476
+ fn: data => {
3477
+ // Pre-set Popper's placement attribute in order to read the arrow sizes properly.
3478
+ // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement
3479
+ this._getTipElement().setAttribute('data-popper-placement', data.state.placement);
3480
+ }
3481
+ }]
3482
+ };
3483
+ return {
3484
+ ...defaultBsPopperConfig,
3485
+ ...execute(this._config.popperConfig, [defaultBsPopperConfig])
3486
+ };
3487
+ }
3488
+ _setListeners() {
3489
+ const triggers = this._config.trigger.split(' ');
3490
+ for (const trigger of triggers) {
3491
+ if (trigger === 'click') {
3492
+ EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {
3493
+ const context = this._initializeOnDelegatedTarget(event);
3494
+ context.toggle();
3495
+ });
3496
+ } else if (trigger !== TRIGGER_MANUAL) {
3497
+ const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN$1);
3498
+ const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT$1);
3499
+ EventHandler.on(this._element, eventIn, this._config.selector, event => {
3500
+ const context = this._initializeOnDelegatedTarget(event);
3501
+ context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
3502
+ context._enter();
3503
+ });
3504
+ EventHandler.on(this._element, eventOut, this._config.selector, event => {
3505
+ const context = this._initializeOnDelegatedTarget(event);
3506
+ context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget);
3507
+ context._leave();
3508
+ });
3509
+ }
3510
+ }
3511
+ this._hideModalHandler = () => {
3512
+ if (this._element) {
3513
+ this.hide();
3514
+ }
3515
+ };
3516
+ EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
3517
+ }
3518
+ _fixTitle() {
3519
+ const title = this._element.getAttribute('title');
3520
+ if (!title) {
3521
+ return;
3522
+ }
3523
+ if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {
3524
+ this._element.setAttribute('aria-label', title);
3525
+ }
3526
+ this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility
3527
+ this._element.removeAttribute('title');
3528
+ }
3529
+ _enter() {
3530
+ if (this._isShown() || this._isHovered) {
3531
+ this._isHovered = true;
3532
+ return;
3533
+ }
3534
+ this._isHovered = true;
3535
+ this._setTimeout(() => {
3536
+ if (this._isHovered) {
3537
+ this.show();
3538
+ }
3539
+ }, this._config.delay.show);
3540
+ }
3541
+ _leave() {
3542
+ if (this._isWithActiveTrigger()) {
3543
+ return;
3544
+ }
3545
+ this._isHovered = false;
3546
+ this._setTimeout(() => {
3547
+ if (!this._isHovered) {
3548
+ this.hide();
3549
+ }
3550
+ }, this._config.delay.hide);
3551
+ }
3552
+ _setTimeout(handler, timeout) {
3553
+ clearTimeout(this._timeout);
3554
+ this._timeout = setTimeout(handler, timeout);
3555
+ }
3556
+ _isWithActiveTrigger() {
3557
+ return Object.values(this._activeTrigger).includes(true);
3558
+ }
3559
+ _getConfig(config) {
3560
+ const dataAttributes = Manipulator.getDataAttributes(this._element);
3561
+ for (const dataAttribute of Object.keys(dataAttributes)) {
3562
+ if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {
3563
+ delete dataAttributes[dataAttribute];
3564
+ }
3565
+ }
3566
+ config = {
3567
+ ...dataAttributes,
3568
+ ...(typeof config === 'object' && config ? config : {})
3569
+ };
3570
+ config = this._mergeConfigObj(config);
3571
+ config = this._configAfterMerge(config);
3572
+ this._typeCheckConfig(config);
3573
+ return config;
3574
+ }
3575
+ _configAfterMerge(config) {
3576
+ config.container = config.container === false ? document.body : getElement(config.container);
3577
+ if (typeof config.delay === 'number') {
3578
+ config.delay = {
3579
+ show: config.delay,
3580
+ hide: config.delay
3581
+ };
3582
+ }
3583
+ if (typeof config.title === 'number') {
3584
+ config.title = config.title.toString();
3585
+ }
3586
+ if (typeof config.content === 'number') {
3587
+ config.content = config.content.toString();
3588
+ }
3589
+ return config;
3590
+ }
3591
+ _getDelegateConfig() {
3592
+ const config = {};
3593
+ for (const [key, value] of Object.entries(this._config)) {
3594
+ if (this.constructor.Default[key] !== value) {
3595
+ config[key] = value;
3596
+ }
3597
+ }
3598
+ config.selector = false;
3599
+ config.trigger = 'manual';
3600
+
3601
+ // In the future can be replaced with:
3602
+ // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])
3603
+ // `Object.fromEntries(keysWithDifferentValues)`
3604
+ return config;
3605
+ }
3606
+ _disposePopper() {
3607
+ if (this._popper) {
3608
+ this._popper.destroy();
3609
+ this._popper = null;
3610
+ }
3611
+ if (this.tip) {
3612
+ this.tip.remove();
3613
+ this.tip = null;
3614
+ }
3615
+ }
3616
+
3617
+ // Static
3618
+ static jQueryInterface(config) {
3619
+ return this.each(function () {
3620
+ const data = Tooltip.getOrCreateInstance(this, config);
3621
+ if (typeof config !== 'string') {
3622
+ return;
3623
+ }
3624
+ if (typeof data[config] === 'undefined') {
3625
+ throw new TypeError(`No method named "${config}"`);
3626
+ }
3627
+ data[config]();
3628
+ });
3629
+ }
3630
+ }
3631
+
3632
+ /**
3633
+ * jQuery
3634
+ */
3635
+
3636
+ defineJQueryPlugin(Tooltip);
3637
+
3638
+ /**
3639
+ * --------------------------------------------------------------------------
3640
+ * Bootstrap (v5.3.0-alpha1): popover.js
3641
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3642
+ * --------------------------------------------------------------------------
3643
+ */
3644
+
3645
+ /**
3646
+ * Constants
3647
+ */
3648
+
3649
+ const NAME$3 = 'popover';
3650
+ const SELECTOR_TITLE = '.popover-header';
3651
+ const SELECTOR_CONTENT = '.popover-body';
3652
+ const Default$2 = {
3653
+ ...Tooltip.Default,
3654
+ content: '',
3655
+ offset: [0, 8],
3656
+ placement: 'right',
3657
+ template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>',
3658
+ trigger: 'click'
3659
+ };
3660
+ const DefaultType$2 = {
3661
+ ...Tooltip.DefaultType,
3662
+ content: '(null|string|element|function)'
3663
+ };
3664
+
3665
+ /**
3666
+ * Class definition
3667
+ */
3668
+
3669
+ class Popover extends Tooltip {
3670
+ // Getters
3671
+ static get Default() {
3672
+ return Default$2;
3673
+ }
3674
+ static get DefaultType() {
3675
+ return DefaultType$2;
3676
+ }
3677
+ static get NAME() {
3678
+ return NAME$3;
3679
+ }
3680
+
3681
+ // Overrides
3682
+ _isWithContent() {
3683
+ return this._getTitle() || this._getContent();
3684
+ }
3685
+
3686
+ // Private
3687
+ _getContentForTemplate() {
3688
+ return {
3689
+ [SELECTOR_TITLE]: this._getTitle(),
3690
+ [SELECTOR_CONTENT]: this._getContent()
3691
+ };
3692
+ }
3693
+ _getContent() {
3694
+ return this._resolvePossibleFunction(this._config.content);
3695
+ }
3696
+
3697
+ // Static
3698
+ static jQueryInterface(config) {
3699
+ return this.each(function () {
3700
+ const data = Popover.getOrCreateInstance(this, config);
3701
+ if (typeof config !== 'string') {
3702
+ return;
3703
+ }
3704
+ if (typeof data[config] === 'undefined') {
3705
+ throw new TypeError(`No method named "${config}"`);
3706
+ }
3707
+ data[config]();
3708
+ });
3709
+ }
3710
+ }
3711
+
3712
+ /**
3713
+ * jQuery
3714
+ */
3715
+
3716
+ defineJQueryPlugin(Popover);
3717
+
3718
+ /**
3719
+ * --------------------------------------------------------------------------
3720
+ * Bootstrap (v5.3.0-alpha1): scrollspy.js
3721
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3722
+ * --------------------------------------------------------------------------
3723
+ */
3724
+
3725
+ /**
3726
+ * Constants
3727
+ */
3728
+
3729
+ const NAME$2 = 'scrollspy';
3730
+ const DATA_KEY$2 = 'bs.scrollspy';
3731
+ const EVENT_KEY$2 = `.${DATA_KEY$2}`;
3732
+ const DATA_API_KEY = '.data-api';
3733
+ const EVENT_ACTIVATE = `activate${EVENT_KEY$2}`;
3734
+ const EVENT_CLICK = `click${EVENT_KEY$2}`;
3735
+ const EVENT_LOAD_DATA_API$1 = `load${EVENT_KEY$2}${DATA_API_KEY}`;
3736
+ const CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
3737
+ const CLASS_NAME_ACTIVE$1 = 'active';
3738
+ const SELECTOR_DATA_SPY = '[data-bs-spy="scroll"]';
3739
+ const SELECTOR_TARGET_LINKS = '[href]';
3740
+ const SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
3741
+ const SELECTOR_NAV_LINKS = '.nav-link';
3742
+ const SELECTOR_NAV_ITEMS = '.nav-item';
3743
+ const SELECTOR_LIST_ITEMS = '.list-group-item';
3744
+ const SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`;
3745
+ const SELECTOR_DROPDOWN = '.dropdown';
3746
+ const SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
3747
+ const Default$1 = {
3748
+ offset: null,
3749
+ // TODO: v6 @deprecated, keep it for backwards compatibility reasons
3750
+ rootMargin: '0px 0px -25%',
3751
+ smoothScroll: false,
3752
+ target: null,
3753
+ threshold: [0.1, 0.5, 1]
3754
+ };
3755
+ const DefaultType$1 = {
3756
+ offset: '(number|null)',
3757
+ // TODO v6 @deprecated, keep it for backwards compatibility reasons
3758
+ rootMargin: 'string',
3759
+ smoothScroll: 'boolean',
3760
+ target: 'element',
3761
+ threshold: 'array'
3762
+ };
3763
+
3764
+ /**
3765
+ * Class definition
3766
+ */
3767
+
3768
+ class ScrollSpy extends BaseComponent {
3769
+ constructor(element, config) {
3770
+ super(element, config);
3771
+
3772
+ // this._element is the observablesContainer and config.target the menu links wrapper
3773
+ this._targetLinks = new Map();
3774
+ this._observableSections = new Map();
3775
+ this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element;
3776
+ this._activeTarget = null;
3777
+ this._observer = null;
3778
+ this._previousScrollData = {
3779
+ visibleEntryTop: 0,
3780
+ parentScrollTop: 0
3781
+ };
3782
+ this.refresh(); // initialize
3783
+ }
3784
+
3785
+ // Getters
3786
+ static get Default() {
3787
+ return Default$1;
3788
+ }
3789
+ static get DefaultType() {
3790
+ return DefaultType$1;
3791
+ }
3792
+ static get NAME() {
3793
+ return NAME$2;
3794
+ }
3795
+
3796
+ // Public
3797
+ refresh() {
3798
+ this._initializeTargetsAndObservables();
3799
+ this._maybeEnableSmoothScroll();
3800
+ if (this._observer) {
3801
+ this._observer.disconnect();
3802
+ } else {
3803
+ this._observer = this._getNewObserver();
3804
+ }
3805
+ for (const section of this._observableSections.values()) {
3806
+ this._observer.observe(section);
3807
+ }
3808
+ }
3809
+ dispose() {
3810
+ this._observer.disconnect();
3811
+ super.dispose();
3812
+ }
3813
+
3814
+ // Private
3815
+ _configAfterMerge(config) {
3816
+ // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case
3817
+ config.target = getElement(config.target) || document.body;
3818
+
3819
+ // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only
3820
+ config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin;
3821
+ if (typeof config.threshold === 'string') {
3822
+ config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value));
3823
+ }
3824
+ return config;
3825
+ }
3826
+ _maybeEnableSmoothScroll() {
3827
+ if (!this._config.smoothScroll) {
3828
+ return;
3829
+ }
3830
+
3831
+ // unregister any previous listeners
3832
+ EventHandler.off(this._config.target, EVENT_CLICK);
3833
+ EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {
3834
+ const observableSection = this._observableSections.get(event.target.hash);
3835
+ if (observableSection) {
3836
+ event.preventDefault();
3837
+ const root = this._rootElement || window;
3838
+ const height = observableSection.offsetTop - this._element.offsetTop;
3839
+ if (root.scrollTo) {
3840
+ root.scrollTo({
3841
+ top: height,
3842
+ behavior: 'smooth'
3843
+ });
3844
+ return;
3845
+ }
3846
+
3847
+ // Chrome 60 doesn't support `scrollTo`
3848
+ root.scrollTop = height;
3849
+ }
3850
+ });
3851
+ }
3852
+ _getNewObserver() {
3853
+ const options = {
3854
+ root: this._rootElement,
3855
+ threshold: this._config.threshold,
3856
+ rootMargin: this._config.rootMargin
3857
+ };
3858
+ return new IntersectionObserver(entries => this._observerCallback(entries), options);
3859
+ }
3860
+
3861
+ // The logic of selection
3862
+ _observerCallback(entries) {
3863
+ const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`);
3864
+ const activate = entry => {
3865
+ this._previousScrollData.visibleEntryTop = entry.target.offsetTop;
3866
+ this._process(targetElement(entry));
3867
+ };
3868
+ const parentScrollTop = (this._rootElement || document.documentElement).scrollTop;
3869
+ const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop;
3870
+ this._previousScrollData.parentScrollTop = parentScrollTop;
3871
+ for (const entry of entries) {
3872
+ if (!entry.isIntersecting) {
3873
+ this._activeTarget = null;
3874
+ this._clearActiveClass(targetElement(entry));
3875
+ continue;
3876
+ }
3877
+ const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop;
3878
+ // if we are scrolling down, pick the bigger offsetTop
3879
+ if (userScrollsDown && entryIsLowerThanPrevious) {
3880
+ activate(entry);
3881
+ // if parent isn't scrolled, let's keep the first visible item, breaking the iteration
3882
+ if (!parentScrollTop) {
3883
+ return;
3884
+ }
3885
+ continue;
3886
+ }
3887
+
3888
+ // if we are scrolling up, pick the smallest offsetTop
3889
+ if (!userScrollsDown && !entryIsLowerThanPrevious) {
3890
+ activate(entry);
3891
+ }
3892
+ }
3893
+ }
3894
+ _initializeTargetsAndObservables() {
3895
+ this._targetLinks = new Map();
3896
+ this._observableSections = new Map();
3897
+ const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target);
3898
+ for (const anchor of targetLinks) {
3899
+ // ensure that the anchor has an id and is not disabled
3900
+ if (!anchor.hash || isDisabled(anchor)) {
3901
+ continue;
3902
+ }
3903
+ const observableSection = SelectorEngine.findOne(anchor.hash, this._element);
3904
+
3905
+ // ensure that the observableSection exists & is visible
3906
+ if (isVisible(observableSection)) {
3907
+ this._targetLinks.set(anchor.hash, anchor);
3908
+ this._observableSections.set(anchor.hash, observableSection);
3909
+ }
3910
+ }
3911
+ }
3912
+ _process(target) {
3913
+ if (this._activeTarget === target) {
3914
+ return;
3915
+ }
3916
+ this._clearActiveClass(this._config.target);
3917
+ this._activeTarget = target;
3918
+ target.classList.add(CLASS_NAME_ACTIVE$1);
3919
+ this._activateParents(target);
3920
+ EventHandler.trigger(this._element, EVENT_ACTIVATE, {
3921
+ relatedTarget: target
3922
+ });
3923
+ }
3924
+ _activateParents(target) {
3925
+ // Activate dropdown parents
3926
+ if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {
3927
+ SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1, target.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);
3928
+ return;
3929
+ }
3930
+ for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {
3931
+ // Set triggered links parents as active
3932
+ // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
3933
+ for (const item of SelectorEngine.prev(listGroup, SELECTOR_LINK_ITEMS)) {
3934
+ item.classList.add(CLASS_NAME_ACTIVE$1);
3935
+ }
3936
+ }
3937
+ }
3938
+ _clearActiveClass(parent) {
3939
+ parent.classList.remove(CLASS_NAME_ACTIVE$1);
3940
+ const activeNodes = SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`, parent);
3941
+ for (const node of activeNodes) {
3942
+ node.classList.remove(CLASS_NAME_ACTIVE$1);
3943
+ }
3944
+ }
3945
+
3946
+ // Static
3947
+ static jQueryInterface(config) {
3948
+ return this.each(function () {
3949
+ const data = ScrollSpy.getOrCreateInstance(this, config);
3950
+ if (typeof config !== 'string') {
3951
+ return;
3952
+ }
3953
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
3954
+ throw new TypeError(`No method named "${config}"`);
3955
+ }
3956
+ data[config]();
3957
+ });
3958
+ }
3959
+ }
3960
+
3961
+ /**
3962
+ * Data API implementation
3963
+ */
3964
+
3965
+ EventHandler.on(window, EVENT_LOAD_DATA_API$1, () => {
3966
+ for (const spy of SelectorEngine.find(SELECTOR_DATA_SPY)) {
3967
+ ScrollSpy.getOrCreateInstance(spy);
3968
+ }
3969
+ });
3970
+
3971
+ /**
3972
+ * jQuery
3973
+ */
3974
+
3975
+ defineJQueryPlugin(ScrollSpy);
3976
+
3977
+ /**
3978
+ * --------------------------------------------------------------------------
3979
+ * Bootstrap (v5.3.0-alpha1): tab.js
3980
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3981
+ * --------------------------------------------------------------------------
3982
+ */
3983
+
3984
+ /**
3985
+ * Constants
3986
+ */
3987
+
3988
+ const NAME$1 = 'tab';
3989
+ const DATA_KEY$1 = 'bs.tab';
3990
+ const EVENT_KEY$1 = `.${DATA_KEY$1}`;
3991
+ const EVENT_HIDE$1 = `hide${EVENT_KEY$1}`;
3992
+ const EVENT_HIDDEN$1 = `hidden${EVENT_KEY$1}`;
3993
+ const EVENT_SHOW$1 = `show${EVENT_KEY$1}`;
3994
+ const EVENT_SHOWN$1 = `shown${EVENT_KEY$1}`;
3995
+ const EVENT_CLICK_DATA_API = `click${EVENT_KEY$1}`;
3996
+ const EVENT_KEYDOWN = `keydown${EVENT_KEY$1}`;
3997
+ const EVENT_LOAD_DATA_API = `load${EVENT_KEY$1}`;
3998
+ const ARROW_LEFT_KEY = 'ArrowLeft';
3999
+ const ARROW_RIGHT_KEY = 'ArrowRight';
4000
+ const ARROW_UP_KEY = 'ArrowUp';
4001
+ const ARROW_DOWN_KEY = 'ArrowDown';
4002
+ const CLASS_NAME_ACTIVE = 'active';
4003
+ const CLASS_NAME_FADE$1 = 'fade';
4004
+ const CLASS_NAME_SHOW$1 = 'show';
4005
+ const CLASS_DROPDOWN = 'dropdown';
4006
+ const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
4007
+ const SELECTOR_DROPDOWN_MENU = '.dropdown-menu';
4008
+ const NOT_SELECTOR_DROPDOWN_TOGGLE = ':not(.dropdown-toggle)';
4009
+ const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
4010
+ const SELECTOR_OUTER = '.nav-item, .list-group-item';
4011
+ const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;
4012
+ const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // todo:v6: could be only `tab`
4013
+ const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;
4014
+ const SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;
4015
+
4016
+ /**
4017
+ * Class definition
4018
+ */
4019
+
4020
+ class Tab extends BaseComponent {
4021
+ constructor(element) {
4022
+ super(element);
4023
+ this._parent = this._element.closest(SELECTOR_TAB_PANEL);
4024
+ if (!this._parent) {
4025
+ return;
4026
+ // todo: should Throw exception on v6
4027
+ // throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)
4028
+ }
4029
+
4030
+ // Set up initial aria attributes
4031
+ this._setInitialAttributes(this._parent, this._getChildren());
4032
+ EventHandler.on(this._element, EVENT_KEYDOWN, event => this._keydown(event));
4033
+ }
4034
+
4035
+ // Getters
4036
+ static get NAME() {
4037
+ return NAME$1;
4038
+ }
4039
+
4040
+ // Public
4041
+ show() {
4042
+ // Shows this elem and deactivate the active sibling if exists
4043
+ const innerElem = this._element;
4044
+ if (this._elemIsActive(innerElem)) {
4045
+ return;
4046
+ }
4047
+
4048
+ // Search for active tab on same parent to deactivate it
4049
+ const active = this._getActiveElem();
4050
+ const hideEvent = active ? EventHandler.trigger(active, EVENT_HIDE$1, {
4051
+ relatedTarget: innerElem
4052
+ }) : null;
4053
+ const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW$1, {
4054
+ relatedTarget: active
4055
+ });
4056
+ if (showEvent.defaultPrevented || hideEvent && hideEvent.defaultPrevented) {
4057
+ return;
4058
+ }
4059
+ this._deactivate(active, innerElem);
4060
+ this._activate(innerElem, active);
4061
+ }
4062
+
4063
+ // Private
4064
+ _activate(element, relatedElem) {
4065
+ if (!element) {
4066
+ return;
4067
+ }
4068
+ element.classList.add(CLASS_NAME_ACTIVE);
4069
+ this._activate(SelectorEngine.getElementFromSelector(element)); // Search and activate/show the proper section
4070
+
4071
+ const complete = () => {
4072
+ if (element.getAttribute('role') !== 'tab') {
4073
+ element.classList.add(CLASS_NAME_SHOW$1);
4074
+ return;
4075
+ }
4076
+ element.removeAttribute('tabindex');
4077
+ element.setAttribute('aria-selected', true);
4078
+ this._toggleDropDown(element, true);
4079
+ EventHandler.trigger(element, EVENT_SHOWN$1, {
4080
+ relatedTarget: relatedElem
4081
+ });
4082
+ };
4083
+ this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE$1));
4084
+ }
4085
+ _deactivate(element, relatedElem) {
4086
+ if (!element) {
4087
+ return;
4088
+ }
4089
+ element.classList.remove(CLASS_NAME_ACTIVE);
4090
+ element.blur();
4091
+ this._deactivate(SelectorEngine.getElementFromSelector(element)); // Search and deactivate the shown section too
4092
+
4093
+ const complete = () => {
4094
+ if (element.getAttribute('role') !== 'tab') {
4095
+ element.classList.remove(CLASS_NAME_SHOW$1);
4096
+ return;
4097
+ }
4098
+ element.setAttribute('aria-selected', false);
4099
+ element.setAttribute('tabindex', '-1');
4100
+ this._toggleDropDown(element, false);
4101
+ EventHandler.trigger(element, EVENT_HIDDEN$1, {
4102
+ relatedTarget: relatedElem
4103
+ });
4104
+ };
4105
+ this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE$1));
4106
+ }
4107
+ _keydown(event) {
4108
+ if (![ARROW_LEFT_KEY, ARROW_RIGHT_KEY, ARROW_UP_KEY, ARROW_DOWN_KEY].includes(event.key)) {
4109
+ return;
4110
+ }
4111
+ event.stopPropagation(); // stopPropagation/preventDefault both added to support up/down keys without scrolling the page
4112
+ event.preventDefault();
4113
+ const isNext = [ARROW_RIGHT_KEY, ARROW_DOWN_KEY].includes(event.key);
4114
+ const nextActiveElement = getNextActiveElement(this._getChildren().filter(element => !isDisabled(element)), event.target, isNext, true);
4115
+ if (nextActiveElement) {
4116
+ nextActiveElement.focus({
4117
+ preventScroll: true
4118
+ });
4119
+ Tab.getOrCreateInstance(nextActiveElement).show();
4120
+ }
4121
+ }
4122
+ _getChildren() {
4123
+ // collection of inner elements
4124
+ return SelectorEngine.find(SELECTOR_INNER_ELEM, this._parent);
4125
+ }
4126
+ _getActiveElem() {
4127
+ return this._getChildren().find(child => this._elemIsActive(child)) || null;
4128
+ }
4129
+ _setInitialAttributes(parent, children) {
4130
+ this._setAttributeIfNotExists(parent, 'role', 'tablist');
4131
+ for (const child of children) {
4132
+ this._setInitialAttributesOnChild(child);
4133
+ }
4134
+ }
4135
+ _setInitialAttributesOnChild(child) {
4136
+ child = this._getInnerElement(child);
4137
+ const isActive = this._elemIsActive(child);
4138
+ const outerElem = this._getOuterElement(child);
4139
+ child.setAttribute('aria-selected', isActive);
4140
+ if (outerElem !== child) {
4141
+ this._setAttributeIfNotExists(outerElem, 'role', 'presentation');
4142
+ }
4143
+ if (!isActive) {
4144
+ child.setAttribute('tabindex', '-1');
4145
+ }
4146
+ this._setAttributeIfNotExists(child, 'role', 'tab');
4147
+
4148
+ // set attributes to the related panel too
4149
+ this._setInitialAttributesOnTargetPanel(child);
4150
+ }
4151
+ _setInitialAttributesOnTargetPanel(child) {
4152
+ const target = SelectorEngine.getElementFromSelector(child);
4153
+ if (!target) {
4154
+ return;
4155
+ }
4156
+ this._setAttributeIfNotExists(target, 'role', 'tabpanel');
4157
+ if (child.id) {
4158
+ this._setAttributeIfNotExists(target, 'aria-labelledby', `#${child.id}`);
4159
+ }
4160
+ }
4161
+ _toggleDropDown(element, open) {
4162
+ const outerElem = this._getOuterElement(element);
4163
+ if (!outerElem.classList.contains(CLASS_DROPDOWN)) {
4164
+ return;
4165
+ }
4166
+ const toggle = (selector, className) => {
4167
+ const element = SelectorEngine.findOne(selector, outerElem);
4168
+ if (element) {
4169
+ element.classList.toggle(className, open);
4170
+ }
4171
+ };
4172
+ toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE);
4173
+ toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW$1);
4174
+ outerElem.setAttribute('aria-expanded', open);
4175
+ }
4176
+ _setAttributeIfNotExists(element, attribute, value) {
4177
+ if (!element.hasAttribute(attribute)) {
4178
+ element.setAttribute(attribute, value);
4179
+ }
4180
+ }
4181
+ _elemIsActive(elem) {
4182
+ return elem.classList.contains(CLASS_NAME_ACTIVE);
4183
+ }
4184
+
4185
+ // Try to get the inner element (usually the .nav-link)
4186
+ _getInnerElement(elem) {
4187
+ return elem.matches(SELECTOR_INNER_ELEM) ? elem : SelectorEngine.findOne(SELECTOR_INNER_ELEM, elem);
4188
+ }
4189
+
4190
+ // Try to get the outer element (usually the .nav-item)
4191
+ _getOuterElement(elem) {
4192
+ return elem.closest(SELECTOR_OUTER) || elem;
4193
+ }
4194
+
4195
+ // Static
4196
+ static jQueryInterface(config) {
4197
+ return this.each(function () {
4198
+ const data = Tab.getOrCreateInstance(this);
4199
+ if (typeof config !== 'string') {
4200
+ return;
4201
+ }
4202
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
4203
+ throw new TypeError(`No method named "${config}"`);
4204
+ }
4205
+ data[config]();
4206
+ });
4207
+ }
4208
+ }
4209
+
4210
+ /**
4211
+ * Data API implementation
4212
+ */
4213
+
4214
+ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
4215
+ if (['A', 'AREA'].includes(this.tagName)) {
4216
+ event.preventDefault();
4217
+ }
4218
+ if (isDisabled(this)) {
4219
+ return;
4220
+ }
4221
+ Tab.getOrCreateInstance(this).show();
4222
+ });
4223
+
4224
+ /**
4225
+ * Initialize on focus
4226
+ */
4227
+ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
4228
+ for (const element of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE)) {
4229
+ Tab.getOrCreateInstance(element);
4230
+ }
4231
+ });
4232
+ /**
4233
+ * jQuery
4234
+ */
4235
+
4236
+ defineJQueryPlugin(Tab);
4237
+
4238
+ /**
4239
+ * --------------------------------------------------------------------------
4240
+ * Bootstrap (v5.3.0-alpha1): toast.js
4241
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4242
+ * --------------------------------------------------------------------------
4243
+ */
4244
+
4245
+ /**
4246
+ * Constants
4247
+ */
4248
+
4249
+ const NAME = 'toast';
4250
+ const DATA_KEY = 'bs.toast';
4251
+ const EVENT_KEY = `.${DATA_KEY}`;
4252
+ const EVENT_MOUSEOVER = `mouseover${EVENT_KEY}`;
4253
+ const EVENT_MOUSEOUT = `mouseout${EVENT_KEY}`;
4254
+ const EVENT_FOCUSIN = `focusin${EVENT_KEY}`;
4255
+ const EVENT_FOCUSOUT = `focusout${EVENT_KEY}`;
4256
+ const EVENT_HIDE = `hide${EVENT_KEY}`;
4257
+ const EVENT_HIDDEN = `hidden${EVENT_KEY}`;
4258
+ const EVENT_SHOW = `show${EVENT_KEY}`;
4259
+ const EVENT_SHOWN = `shown${EVENT_KEY}`;
4260
+ const CLASS_NAME_FADE = 'fade';
4261
+ const CLASS_NAME_HIDE = 'hide'; // @deprecated - kept here only for backwards compatibility
4262
+ const CLASS_NAME_SHOW = 'show';
4263
+ const CLASS_NAME_SHOWING = 'showing';
4264
+ const DefaultType = {
4265
+ animation: 'boolean',
4266
+ autohide: 'boolean',
4267
+ delay: 'number'
4268
+ };
4269
+ const Default = {
4270
+ animation: true,
4271
+ autohide: true,
4272
+ delay: 5000
4273
+ };
4274
+
4275
+ /**
4276
+ * Class definition
4277
+ */
4278
+
4279
+ class Toast extends BaseComponent {
4280
+ constructor(element, config) {
4281
+ super(element, config);
4282
+ this._timeout = null;
4283
+ this._hasMouseInteraction = false;
4284
+ this._hasKeyboardInteraction = false;
4285
+ this._setListeners();
4286
+ }
4287
+
4288
+ // Getters
4289
+ static get Default() {
4290
+ return Default;
4291
+ }
4292
+ static get DefaultType() {
4293
+ return DefaultType;
4294
+ }
4295
+ static get NAME() {
4296
+ return NAME;
4297
+ }
4298
+
4299
+ // Public
4300
+ show() {
4301
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW);
4302
+ if (showEvent.defaultPrevented) {
4303
+ return;
4304
+ }
4305
+ this._clearTimeout();
4306
+ if (this._config.animation) {
4307
+ this._element.classList.add(CLASS_NAME_FADE);
4308
+ }
4309
+ const complete = () => {
4310
+ this._element.classList.remove(CLASS_NAME_SHOWING);
4311
+ EventHandler.trigger(this._element, EVENT_SHOWN);
4312
+ this._maybeScheduleHide();
4313
+ };
4314
+ this._element.classList.remove(CLASS_NAME_HIDE); // @deprecated
4315
+ reflow(this._element);
4316
+ this._element.classList.add(CLASS_NAME_SHOW, CLASS_NAME_SHOWING);
4317
+ this._queueCallback(complete, this._element, this._config.animation);
4318
+ }
4319
+ hide() {
4320
+ if (!this.isShown()) {
4321
+ return;
4322
+ }
4323
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE);
4324
+ if (hideEvent.defaultPrevented) {
4325
+ return;
4326
+ }
4327
+ const complete = () => {
4328
+ this._element.classList.add(CLASS_NAME_HIDE); // @deprecated
4329
+ this._element.classList.remove(CLASS_NAME_SHOWING, CLASS_NAME_SHOW);
4330
+ EventHandler.trigger(this._element, EVENT_HIDDEN);
4331
+ };
4332
+ this._element.classList.add(CLASS_NAME_SHOWING);
4333
+ this._queueCallback(complete, this._element, this._config.animation);
4334
+ }
4335
+ dispose() {
4336
+ this._clearTimeout();
4337
+ if (this.isShown()) {
4338
+ this._element.classList.remove(CLASS_NAME_SHOW);
4339
+ }
4340
+ super.dispose();
4341
+ }
4342
+ isShown() {
4343
+ return this._element.classList.contains(CLASS_NAME_SHOW);
4344
+ }
4345
+
4346
+ // Private
4347
+
4348
+ _maybeScheduleHide() {
4349
+ if (!this._config.autohide) {
4350
+ return;
4351
+ }
4352
+ if (this._hasMouseInteraction || this._hasKeyboardInteraction) {
4353
+ return;
4354
+ }
4355
+ this._timeout = setTimeout(() => {
4356
+ this.hide();
4357
+ }, this._config.delay);
4358
+ }
4359
+ _onInteraction(event, isInteracting) {
4360
+ switch (event.type) {
4361
+ case 'mouseover':
4362
+ case 'mouseout':
4363
+ {
4364
+ this._hasMouseInteraction = isInteracting;
4365
+ break;
4366
+ }
4367
+ case 'focusin':
4368
+ case 'focusout':
4369
+ {
4370
+ this._hasKeyboardInteraction = isInteracting;
4371
+ break;
4372
+ }
4373
+ }
4374
+ if (isInteracting) {
4375
+ this._clearTimeout();
4376
+ return;
4377
+ }
4378
+ const nextElement = event.relatedTarget;
4379
+ if (this._element === nextElement || this._element.contains(nextElement)) {
4380
+ return;
4381
+ }
4382
+ this._maybeScheduleHide();
4383
+ }
4384
+ _setListeners() {
4385
+ EventHandler.on(this._element, EVENT_MOUSEOVER, event => this._onInteraction(event, true));
4386
+ EventHandler.on(this._element, EVENT_MOUSEOUT, event => this._onInteraction(event, false));
4387
+ EventHandler.on(this._element, EVENT_FOCUSIN, event => this._onInteraction(event, true));
4388
+ EventHandler.on(this._element, EVENT_FOCUSOUT, event => this._onInteraction(event, false));
4389
+ }
4390
+ _clearTimeout() {
4391
+ clearTimeout(this._timeout);
4392
+ this._timeout = null;
4393
+ }
4394
+
4395
+ // Static
4396
+ static jQueryInterface(config) {
4397
+ return this.each(function () {
4398
+ const data = Toast.getOrCreateInstance(this, config);
4399
+ if (typeof config === 'string') {
4400
+ if (typeof data[config] === 'undefined') {
4401
+ throw new TypeError(`No method named "${config}"`);
4402
+ }
4403
+ data[config](this);
4404
+ }
4405
+ });
4406
+ }
4407
+ }
4408
+
4409
+ /**
4410
+ * Data API implementation
4411
+ */
4412
+
4413
+ enableDismissTrigger(Toast);
4414
+
4415
+ /**
4416
+ * jQuery
4417
+ */
4418
+
4419
+ defineJQueryPlugin(Toast);
4420
+
4421
+ export { Alert, Button, Carousel, Collapse, Dropdown, Modal, Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip };
4422
+ //# sourceMappingURL=bootstrap.esm.js.map