@tabler/core 1.0.0-alpha.24 → 1.0.0-beta11
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.
- package/LICENSE +1 -1
- package/README.md +44 -11
- package/dist/.DS_Store +0 -0
- package/dist/css/demo.css +399 -240
- package/dist/css/demo.min.css +5 -5
- package/dist/css/demo.rtl.css +399 -240
- package/dist/css/demo.rtl.min.css +5 -5
- package/dist/css/tabler-flags.css +535 -268
- package/dist/css/tabler-flags.min.css +5 -5
- package/dist/css/tabler-flags.rtl.css +535 -268
- package/dist/css/tabler-flags.rtl.min.css +5 -5
- package/dist/css/tabler-payments.css +258 -129
- package/dist/css/tabler-payments.min.css +5 -5
- package/dist/css/tabler-payments.rtl.css +258 -129
- package/dist/css/tabler-payments.rtl.min.css +5 -5
- package/dist/css/tabler-vendors.css +1010 -475
- package/dist/css/tabler-vendors.min.css +5 -5
- package/dist/css/tabler-vendors.rtl.css +1010 -475
- package/dist/css/tabler-vendors.rtl.min.css +5 -5
- package/dist/css/tabler.css +17800 -8221
- package/dist/css/tabler.min.css +10 -5
- package/dist/css/tabler.rtl.css +17487 -7925
- package/dist/css/tabler.rtl.min.css +10 -5
- package/dist/js/demo.js +151 -0
- package/dist/js/demo.min.js +9 -0
- package/dist/js/tabler.esm.js +8236 -0
- package/dist/js/tabler.esm.min.js +9 -0
- package/dist/js/tabler.js +4040 -3891
- package/dist/js/tabler.min.js +5 -5
- package/dist/libs/apexcharts/dist/apexcharts.amd.js +2 -0
- package/dist/libs/apexcharts/dist/apexcharts.common.js +14 -0
- package/dist/libs/apexcharts/dist/apexcharts.css +691 -0
- package/dist/libs/apexcharts/dist/apexcharts.esm.js +14 -0
- package/dist/libs/apexcharts/dist/apexcharts.js +31960 -0
- package/dist/libs/apexcharts/dist/apexcharts.min.js +5 -5
- package/dist/libs/apexcharts/dist/locales/ar.json +63 -0
- package/dist/libs/apexcharts/dist/locales/ca.json +55 -0
- package/dist/libs/apexcharts/dist/locales/cs.json +55 -0
- package/dist/libs/apexcharts/dist/locales/de.json +55 -0
- package/dist/libs/apexcharts/dist/locales/el.json +55 -0
- package/dist/libs/apexcharts/dist/locales/en.json +55 -0
- package/dist/libs/apexcharts/dist/locales/es.json +55 -0
- package/dist/libs/apexcharts/dist/locales/et.json +63 -0
- package/dist/libs/apexcharts/dist/locales/fa.json +55 -0
- package/dist/libs/apexcharts/dist/locales/fi.json +55 -0
- package/dist/libs/apexcharts/dist/locales/fr.json +55 -0
- package/dist/libs/apexcharts/dist/locales/he.json +55 -0
- package/dist/libs/apexcharts/dist/locales/hi.json +55 -0
- package/dist/libs/apexcharts/dist/locales/hr.json +55 -0
- package/dist/libs/apexcharts/dist/locales/hu.json +64 -0
- package/dist/libs/apexcharts/dist/locales/hy.json +55 -0
- package/dist/libs/apexcharts/dist/locales/id.json +47 -0
- package/dist/libs/apexcharts/dist/locales/it.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ja.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ka.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ko.json +55 -0
- package/dist/libs/apexcharts/dist/locales/lt.json +55 -0
- package/dist/libs/apexcharts/dist/locales/lv.json +64 -0
- package/dist/libs/apexcharts/dist/locales/nb.json +55 -0
- package/dist/libs/apexcharts/dist/locales/nl.json +55 -0
- package/dist/libs/apexcharts/dist/locales/pl.json +55 -0
- package/dist/libs/apexcharts/dist/locales/pt-br.json +55 -0
- package/dist/libs/apexcharts/dist/locales/pt.json +55 -0
- package/dist/libs/apexcharts/dist/locales/rs.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ru.json +55 -0
- package/dist/libs/apexcharts/dist/locales/se.json +55 -0
- package/dist/libs/apexcharts/dist/locales/sk.json +55 -0
- package/dist/libs/apexcharts/dist/locales/sl.json +55 -0
- package/dist/libs/apexcharts/dist/locales/sq.json +55 -0
- package/dist/libs/apexcharts/dist/locales/th.json +55 -0
- package/dist/libs/apexcharts/dist/locales/tr.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ua.json +55 -0
- package/dist/libs/apexcharts/dist/locales/zh-cn.json +55 -0
- package/dist/libs/apexcharts/dist/locales/zh-tw.json +55 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js +7066 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js.map +1 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js +5204 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js.map +1 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js +7 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.js +5251 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.js.map +1 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js +7 -0
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js.map +1 -0
- package/dist/libs/countup.js/dist/countUp.d.ts +61 -0
- package/dist/libs/countup.js/dist/countUp.js +56 -22
- package/dist/libs/countup.js/dist/countUp.min.js +1 -0
- package/dist/libs/countup.js/dist/countUp.umd.js +293 -0
- package/dist/libs/countup.js/dist/countUp.withPolyfill.min.js +1 -0
- package/dist/libs/dropzone/dist/basic.css +1 -0
- package/dist/libs/dropzone/dist/basic.css.map +1 -0
- package/dist/libs/dropzone/dist/dropzone-min.js +2 -0
- package/dist/libs/dropzone/dist/dropzone-min.js.map +1 -0
- package/dist/libs/dropzone/dist/dropzone.css +1 -0
- package/dist/libs/dropzone/dist/dropzone.css.map +1 -0
- package/dist/libs/dropzone/dist/dropzone.js +3068 -0
- package/dist/libs/dropzone/dist/dropzone.js.map +1 -0
- package/dist/libs/dropzone/dist/dropzone.mjs +2111 -0
- package/dist/libs/dropzone/dist/dropzone.mjs.map +1 -0
- package/dist/libs/fslightbox/LICENSE +21 -0
- package/dist/libs/fslightbox/README.md +62 -0
- package/dist/libs/fslightbox/index.js +1 -0
- package/dist/libs/fslightbox/jest-setup.js +1 -0
- package/dist/libs/fslightbox/package.json +72 -0
- package/dist/libs/jsvectormap/dist/js/jsvectormap.js +2663 -0
- package/dist/libs/jsvectormap/dist/js/jsvectormap.min.js +1 -0
- package/dist/libs/jsvectormap/dist/maps/world-merc.js +1 -0
- package/dist/libs/jsvectormap/dist/maps/world.js +1 -0
- package/dist/libs/list.js/dist/list.js +2020 -0
- package/dist/libs/list.js/dist/list.js.map +1 -0
- package/dist/libs/list.js/dist/list.min.js +2 -0
- package/dist/libs/list.js/dist/list.min.js.map +1 -0
- package/dist/libs/litepicker/dist/bundle.js +52 -0
- package/dist/libs/litepicker/dist/css/litepicker.css +13 -0
- package/dist/libs/litepicker/dist/css/plugins/keyboardnav.js.css +12 -0
- package/dist/libs/litepicker/dist/css/plugins/mobilefriendly.js.css +133 -0
- package/dist/libs/litepicker/dist/css/plugins/multiselect.js.css +54 -0
- package/dist/libs/litepicker/dist/css/plugins/ranges.js.css +81 -0
- package/dist/libs/litepicker/dist/js/main.js +13 -0
- package/dist/libs/litepicker/dist/litepicker.amd.js +12 -0
- package/dist/libs/litepicker/dist/litepicker.commonjs2.js +12 -0
- package/dist/libs/litepicker/dist/litepicker.js +3 -3
- package/dist/libs/litepicker/dist/litepicker.umd.js +12 -0
- package/dist/libs/litepicker/dist/nocss/litepicker.amd.js +12 -0
- package/dist/libs/litepicker/dist/nocss/litepicker.commonjs2.js +12 -0
- package/dist/libs/litepicker/dist/nocss/litepicker.js +12 -0
- package/dist/libs/litepicker/dist/nocss/litepicker.umd.js +12 -0
- package/dist/libs/litepicker/dist/nocss/plugins/keyboardnav.js +11 -0
- package/dist/libs/litepicker/dist/nocss/plugins/mobilefriendly.js +11 -0
- package/dist/libs/litepicker/dist/nocss/plugins/multiselect.js +11 -0
- package/dist/libs/litepicker/dist/nocss/plugins/ranges.js +11 -0
- package/dist/libs/litepicker/dist/plugins/keyboardnav.js +11 -0
- package/dist/libs/litepicker/dist/plugins/mobilefriendly.js +11 -0
- package/dist/libs/litepicker/dist/plugins/multiselect.js +11 -0
- package/dist/libs/litepicker/dist/plugins/ranges.js +11 -0
- package/dist/libs/litepicker/dist/types/calendar.d.ts +14 -0
- package/dist/libs/litepicker/dist/types/core.d.ts +23 -0
- package/dist/libs/litepicker/dist/types/datetime.d.ts +41 -0
- package/dist/libs/litepicker/dist/types/index.d.ts +4 -0
- package/dist/libs/litepicker/dist/types/interfaces.d.ts +80 -0
- package/dist/libs/litepicker/dist/types/litepicker.d.ts +25 -0
- package/dist/libs/litepicker/dist/types/methods.d.ts +20 -0
- package/dist/libs/litepicker/dist/types/utils.d.ts +4 -0
- package/dist/libs/litepicker/dist/types/window.d.ts +6 -0
- package/dist/libs/nouislider/dist/nouislider.css +304 -0
- package/dist/libs/nouislider/dist/nouislider.d.ts +198 -0
- package/dist/libs/nouislider/dist/nouislider.js +2254 -0
- package/dist/libs/nouislider/dist/nouislider.min.css +1 -0
- package/dist/libs/nouislider/dist/nouislider.min.js +1 -0
- package/dist/libs/nouislider/dist/nouislider.min.mjs +1 -0
- package/dist/libs/nouislider/dist/nouislider.mjs +2243 -0
- package/dist/libs/plyr/dist/plyr.css +1 -0
- package/dist/libs/plyr/dist/plyr.js +8764 -0
- package/dist/libs/plyr/dist/plyr.min.js +2 -0
- package/dist/libs/plyr/dist/plyr.min.js.map +1 -0
- package/dist/libs/plyr/dist/plyr.min.mjs +1 -0
- package/dist/libs/plyr/dist/plyr.min.mjs.map +1 -0
- package/dist/libs/plyr/dist/plyr.mjs +8756 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.js +9301 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.min.js +2 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.min.js.map +1 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.min.mjs +1 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.min.mjs.map +1 -0
- package/dist/libs/plyr/dist/plyr.polyfilled.mjs +9293 -0
- package/dist/libs/plyr/dist/plyr.svg +1 -0
- package/dist/libs/tinymce/CHANGELOG.md +2957 -0
- package/dist/libs/tinymce/README.md +71 -0
- package/dist/libs/tinymce/bower.json +27 -0
- package/dist/libs/tinymce/composer.json +52 -0
- package/dist/libs/tinymce/icons/default/icons.js +182 -0
- package/dist/libs/tinymce/icons/default/icons.min.js +1 -0
- package/dist/libs/tinymce/icons/default/index.js +7 -0
- package/dist/libs/tinymce/license.txt +21 -0
- package/dist/libs/tinymce/models/dom/index.js +7 -0
- package/dist/libs/tinymce/models/dom/model.js +7975 -0
- package/dist/libs/tinymce/models/dom/model.min.js +4 -0
- package/dist/libs/tinymce/package.json +32 -0
- package/dist/libs/tinymce/plugins/advlist/index.js +7 -0
- package/dist/libs/tinymce/plugins/advlist/plugin.js +246 -0
- package/dist/libs/tinymce/plugins/advlist/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/anchor/index.js +7 -0
- package/dist/libs/tinymce/plugins/anchor/plugin.js +195 -0
- package/dist/libs/tinymce/plugins/anchor/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/autolink/index.js +7 -0
- package/dist/libs/tinymce/plugins/autolink/plugin.js +232 -0
- package/dist/libs/tinymce/plugins/autolink/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/autoresize/index.js +7 -0
- package/dist/libs/tinymce/plugins/autoresize/plugin.js +156 -0
- package/dist/libs/tinymce/plugins/autoresize/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/autosave/index.js +7 -0
- package/dist/libs/tinymce/plugins/autosave/plugin.js +232 -0
- package/dist/libs/tinymce/plugins/autosave/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/charmap/index.js +7 -0
- package/dist/libs/tinymce/plugins/charmap/plugin.js +1636 -0
- package/dist/libs/tinymce/plugins/charmap/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/code/index.js +7 -0
- package/dist/libs/tinymce/plugins/code/plugin.js +85 -0
- package/dist/libs/tinymce/plugins/code/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/codesample/index.js +7 -0
- package/dist/libs/tinymce/plugins/codesample/plugin.js +2451 -0
- package/dist/libs/tinymce/plugins/codesample/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/directionality/index.js +7 -0
- package/dist/libs/tinymce/plugins/directionality/plugin.js +384 -0
- package/dist/libs/tinymce/plugins/directionality/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/emoticons/index.js +7 -0
- package/dist/libs/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
- package/dist/libs/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/dist/libs/tinymce/plugins/emoticons/js/emojis.js +1 -0
- package/dist/libs/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/dist/libs/tinymce/plugins/emoticons/plugin.js +577 -0
- package/dist/libs/tinymce/plugins/emoticons/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/fullscreen/index.js +7 -0
- package/dist/libs/tinymce/plugins/fullscreen/plugin.js +1190 -0
- package/dist/libs/tinymce/plugins/fullscreen/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/help/index.js +7 -0
- package/dist/libs/tinymce/plugins/help/plugin.js +848 -0
- package/dist/libs/tinymce/plugins/help/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/image/index.js +7 -0
- package/dist/libs/tinymce/plugins/image/plugin.js +1475 -0
- package/dist/libs/tinymce/plugins/image/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/importcss/index.js +7 -0
- package/dist/libs/tinymce/plugins/importcss/plugin.js +342 -0
- package/dist/libs/tinymce/plugins/importcss/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/insertdatetime/index.js +7 -0
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.js +176 -0
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/link/index.js +7 -0
- package/dist/libs/tinymce/plugins/link/plugin.js +1190 -0
- package/dist/libs/tinymce/plugins/link/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/lists/index.js +7 -0
- package/dist/libs/tinymce/plugins/lists/plugin.js +1820 -0
- package/dist/libs/tinymce/plugins/lists/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/media/index.js +7 -0
- package/dist/libs/tinymce/plugins/media/plugin.js +1157 -0
- package/dist/libs/tinymce/plugins/media/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/nonbreaking/index.js +7 -0
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.js +111 -0
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/pagebreak/index.js +7 -0
- package/dist/libs/tinymce/plugins/pagebreak/plugin.js +105 -0
- package/dist/libs/tinymce/plugins/pagebreak/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/preview/index.js +7 -0
- package/dist/libs/tinymce/plugins/preview/plugin.js +97 -0
- package/dist/libs/tinymce/plugins/preview/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/quickbars/index.js +7 -0
- package/dist/libs/tinymce/plugins/quickbars/plugin.js +421 -0
- package/dist/libs/tinymce/plugins/quickbars/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/save/index.js +7 -0
- package/dist/libs/tinymce/plugins/save/plugin.js +118 -0
- package/dist/libs/tinymce/plugins/save/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/searchreplace/index.js +7 -0
- package/dist/libs/tinymce/plugins/searchreplace/plugin.js +1079 -0
- package/dist/libs/tinymce/plugins/searchreplace/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/table/index.js +7 -0
- package/dist/libs/tinymce/plugins/table/plugin.js +3393 -0
- package/dist/libs/tinymce/plugins/table/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/template/index.js +7 -0
- package/dist/libs/tinymce/plugins/template/plugin.js +548 -0
- package/dist/libs/tinymce/plugins/template/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/visualblocks/index.js +7 -0
- package/dist/libs/tinymce/plugins/visualblocks/plugin.js +98 -0
- package/dist/libs/tinymce/plugins/visualblocks/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/visualchars/index.js +7 -0
- package/dist/libs/tinymce/plugins/visualchars/plugin.js +506 -0
- package/dist/libs/tinymce/plugins/visualchars/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/wordcount/index.js +7 -0
- package/dist/libs/tinymce/plugins/wordcount/plugin.js +404 -0
- package/dist/libs/tinymce/plugins/wordcount/plugin.min.js +4 -0
- package/dist/libs/tinymce/skins/content/dark/content.css +66 -0
- package/dist/libs/tinymce/skins/content/dark/content.min.css +1 -0
- package/dist/libs/tinymce/skins/content/default/content.css +61 -0
- package/dist/libs/tinymce/skins/content/default/content.min.css +1 -0
- package/dist/libs/tinymce/skins/content/document/content.css +66 -0
- package/dist/libs/tinymce/skins/content/document/content.min.css +1 -0
- package/dist/libs/tinymce/skins/content/tinymce-5/content.css +61 -0
- package/dist/libs/tinymce/skins/content/tinymce-5/content.min.css +1 -0
- package/dist/libs/tinymce/skins/content/tinymce-5-dark/content.css +66 -0
- package/dist/libs/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
- package/dist/libs/tinymce/skins/content/writer/content.css +62 -0
- package/dist/libs/tinymce/skins/content/writer/content.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.css +747 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.inline.css +741 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/skin.css +3074 -0
- package/dist/libs/tinymce/skins/ui/oxide/skin.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
- package/dist/libs/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.css +728 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.inline.css +741 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.css +3077 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.css +747 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.inline.css +741 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.css +3158 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.css +728 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.inline.css +741 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.css +3158 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
- package/dist/libs/tinymce/themes/silver/index.js +7 -0
- package/dist/libs/tinymce/themes/silver/theme.js +26184 -0
- package/dist/libs/tinymce/themes/silver/theme.min.js +4 -0
- package/dist/libs/tinymce/tinymce.d.ts +2895 -0
- package/dist/libs/tinymce/tinymce.js +29400 -0
- package/dist/libs/tinymce/tinymce.min.js +4 -0
- package/dist/libs/tom-select/dist/js/plugins/caret_position.js +170 -0
- package/dist/libs/tom-select/dist/js/plugins/caret_position.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/change_listener.js +58 -0
- package/dist/libs/tom-select/dist/js/plugins/change_listener.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/checkbox_options.js +182 -0
- package/dist/libs/tom-select/dist/js/plugins/checkbox_options.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/clear_button.js +99 -0
- package/dist/libs/tom-select/dist/js/plugins/clear_button.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/drag_drop.js +70 -0
- package/dist/libs/tom-select/dist/js/plugins/drag_drop.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/dropdown_header.js +126 -0
- package/dist/libs/tom-select/dist/js/plugins/dropdown_header.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/dropdown_input.js +240 -0
- package/dist/libs/tom-select/dist/js/plugins/dropdown_input.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/input_autogrow.js +84 -0
- package/dist/libs/tom-select/dist/js/plugins/input_autogrow.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/no_active_items.js +33 -0
- package/dist/libs/tom-select/dist/js/plugins/no_active_items.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/no_backspace_delete.js +40 -0
- package/dist/libs/tom-select/dist/js/plugins/no_backspace_delete.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/optgroup_columns.js +117 -0
- package/dist/libs/tom-select/dist/js/plugins/optgroup_columns.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/remove_button.js +154 -0
- package/dist/libs/tom-select/dist/js/plugins/remove_button.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/restore_on_backspace.js +51 -0
- package/dist/libs/tom-select/dist/js/plugins/restore_on_backspace.js.map +1 -0
- package/dist/libs/tom-select/dist/js/plugins/virtual_scroll.js +279 -0
- package/dist/libs/tom-select/dist/js/plugins/virtual_scroll.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.base.js +4165 -0
- package/dist/libs/tom-select/dist/js/tom-select.base.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.base.min.js +303 -0
- package/dist/libs/tom-select/dist/js/tom-select.base.min.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.complete.js +4978 -0
- package/dist/libs/tom-select/dist/js/tom-select.complete.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.complete.min.js +363 -0
- package/dist/libs/tom-select/dist/js/tom-select.complete.min.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.popular.js +4419 -0
- package/dist/libs/tom-select/dist/js/tom-select.popular.js.map +1 -0
- package/dist/libs/tom-select/dist/js/tom-select.popular.min.js +323 -0
- package/dist/libs/tom-select/dist/js/tom-select.popular.min.js.map +1 -0
- package/package.json +115 -32
- package/src/js/demo.js +97 -0
- package/src/js/{autosize.js → src/autosize.js} +0 -0
- package/src/js/src/dropdown.js +9 -0
- package/src/js/{input-mask.js → src/input-mask.js} +0 -0
- package/src/js/{popover.js → src/popover.js} +0 -0
- package/src/js/{switch-icon.js → src/switch-icon.js} +0 -0
- package/src/js/src/tab.js +16 -0
- package/src/js/{toast.js → src/toast.js} +0 -0
- package/src/js/{tooltip.js → src/tooltip.js} +0 -0
- package/src/js/tabler.esm.js +10 -0
- package/src/js/tabler.js +10 -7
- package/src/scss/_bootstrap-components.scss +3 -0
- package/src/scss/_bootstrap-config.scss +2 -0
- package/src/scss/{_tabler-core.scss → _core.scss} +6 -2
- package/src/scss/_mixins-override.scss +29 -29
- package/src/scss/_utilities.scss +18 -23
- package/src/scss/_variables.scss +183 -95
- package/src/scss/demo/_examples.scss +11 -2
- package/src/scss/demo/_highlight.scss +0 -1
- package/src/scss/demo.scss +33 -4
- package/src/scss/fonts/_webfonts.scss +56 -6
- package/src/scss/layout/_core.scss +63 -5
- package/src/scss/layout/_dark.scss +199 -0
- package/src/scss/layout/_footer.scss +2 -5
- package/src/scss/layout/_navbar.scss +32 -20
- package/src/scss/layout/_page.scss +80 -15
- package/src/scss/mixins/_functions.scss +2 -6
- package/src/scss/mixins/_mixins.scss +47 -32
- package/src/scss/tabler-vendors.scss +7 -2
- package/src/scss/tabler.scss +1 -1
- package/src/scss/ui/_accordion.scss +5 -0
- package/src/scss/ui/_alerts.scss +14 -9
- package/src/scss/ui/_avatars.scss +21 -16
- package/src/scss/ui/_badges.scss +19 -6
- package/src/scss/ui/_breadcrumbs.scss +9 -17
- package/src/scss/ui/_buttons.scss +123 -112
- package/src/scss/ui/_calendars.scss +3 -3
- package/src/scss/ui/_cards.scss +189 -77
- package/src/scss/ui/_carousel.scss +68 -0
- package/src/scss/ui/_datagrid.scss +17 -0
- package/src/scss/ui/_dropdowns.scss +1 -0
- package/src/scss/ui/_flags.scss +1 -1
- package/src/scss/ui/_forms.scss +19 -10
- package/src/scss/ui/_grid.scss +23 -9
- package/src/scss/ui/_icons.scss +10 -3
- package/src/scss/ui/_images.scss +1 -1
- package/src/scss/ui/_legend.scss +1 -1
- package/src/scss/ui/_lists.scss +28 -2
- package/src/scss/ui/_markdown.scss +14 -28
- package/src/scss/ui/_modals.scss +2 -2
- package/src/scss/ui/_nav.scss +26 -36
- package/src/scss/ui/_offcanvas.scss +21 -0
- package/src/scss/ui/_placeholder.scss +9 -0
- package/src/scss/ui/_progress.scss +2 -1
- package/src/scss/ui/_ribbons.scss +7 -2
- package/src/scss/ui/_status.scss +173 -0
- package/src/scss/ui/_steps.scss +2 -2
- package/src/scss/ui/_switch-icon.scss +6 -5
- package/src/scss/ui/_tables.scss +53 -6
- package/src/scss/ui/_toasts.scss +17 -4
- package/src/scss/ui/_type.scss +9 -9
- package/src/scss/ui/forms/_form-check.scss +11 -3
- package/src/scss/ui/forms/_form-colorinput.scss +1 -1
- package/src/scss/ui/forms/_form-custom.scss +12 -0
- package/src/scss/ui/forms/_form-imagecheck.scss +5 -5
- package/src/scss/ui/forms/_form-selectgroup.scss +9 -3
- package/src/scss/ui/forms/_validation.scss +1 -1
- package/src/scss/utils/_background.scss +2 -2
- package/src/scss/utils/_colors.scss +10 -23
- package/src/scss/utils/_opacity.scss +1 -1
- package/src/scss/vendor/_apexcharts.scss +1 -47
- package/src/scss/vendor/_dropzone.scss +27 -0
- package/src/scss/vendor/_fslightbox.scss +13 -0
- package/src/scss/vendor/_jsvectormap.scss +48 -0
- package/src/scss/vendor/_litepicker.scss +8 -3
- package/src/scss/vendor/_nouislider.scss +3 -3
- package/src/scss/vendor/_plyr.scss +3 -0
- package/src/scss/vendor/_tinymce.scss +25 -0
- package/src/scss/vendor/_tom-select.scss +14 -0
- package/dist/libs/choices.js/public/assets/scripts/choices.js +0 -5603
- package/dist/libs/nouislider/distribute/nouislider.min.js +0 -2
- package/src/js/dropdown.js +0 -40
- package/src/scss/_dark.scss +0 -105
- package/src/scss/ui/_skeleton.scss +0 -98
- package/src/scss/vendor/_choices.scss +0 -61
package/dist/js/tabler.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Tabler v1.0.0-
|
|
3
|
-
* @version 1.0.0-
|
|
2
|
+
* Tabler v1.0.0-beta11 (https://tabler.io)
|
|
3
|
+
* @version 1.0.0-beta11
|
|
4
4
|
* @link https://tabler.io
|
|
5
|
-
* Copyright 2018-
|
|
6
|
-
* Copyright 2018-
|
|
5
|
+
* Copyright 2018-2022 The Tabler Authors
|
|
6
|
+
* Copyright 2018-2022 codecalm.net Paweł Kuna
|
|
7
7
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
8
8
|
*/
|
|
9
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t,e=(function(t,e){!function(t,e){var n,i,r="function"==typeof Map?new Map:(n=[],i=[],{has:function(t){return n.indexOf(t)>-1},get:function(t){return i[n.indexOf(t)]},set:function(t,e){-1===n.indexOf(t)&&(n.push(t),i.push(e))},delete:function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i.splice(e,1))}}),o=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){o=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function s(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!r.has(t)){var e=null,n=null,i=null,s=function(){t.clientWidth!==n&&h()},a=function(e){window.removeEventListener("resize",s,!1),t.removeEventListener("input",h,!1),t.removeEventListener("keyup",h,!1),t.removeEventListener("autosize:destroy",a,!1),t.removeEventListener("autosize:update",h,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),r.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",h,!1),window.addEventListener("resize",s,!1),t.addEventListener("input",h,!1),t.addEventListener("autosize:update",h,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",r.set(t,{destroy:a,update:h}),"vertical"===(u=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===u.resize&&(t.style.resize="horizontal"),e="content-box"===u.boxSizing?-(parseFloat(u.paddingTop)+parseFloat(u.paddingBottom)):parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth),isNaN(e)&&(e=0),h()}var u;function l(e){var n=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=n,t.style.overflowY=e}function c(){if(0!==t.scrollHeight){var i=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),r=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",n=t.clientWidth,i.forEach(function(t){t.node.scrollTop=t.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function h(){c();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(r<e?"hidden"===n.overflowY&&(l("scroll"),c(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),c(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),i!==r){i=r;var s=o("autosize:resized");try{t.dispatchEvent(s)}catch(t){}}}}function a(t){var e=r.get(t);e&&e.destroy()}function u(t){var e=r.get(t);e&&e.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(t){return t}).destroy=function(t){return t},l.update=function(t){return t}):((l=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return s(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],a),t},l.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],u),t}),e.default=l,t.exports=e.default}(t,e)}(t={exports:{}},t.exports),t.exports),n=document.querySelectorAll('[data-bs-toggle="autosize"]');function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function h(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=f(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function p(t,e,n,i){return(p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,i){var r,o=f(t,e);if(o){if((r=Object.getOwnPropertyDescriptor(o,e)).set)return r.set.call(i,n),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(i,e)){if(!r.writable)return!1;r.value=n,Object.defineProperty(i,e,r)}else!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(i,e,n);return!0})(t,e,n,i)}function g(t,e,n,i,r){if(!p(t,e,n,i||t)&&r)throw new Error("failed to set property");return n}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(t){return"string"==typeof t||t instanceof String}n.length&&n.forEach(function(t){e(t)});var _={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function y(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}var b=function(){function t(e,n,i,o){for(r(this,t),this.value=e,this.cursorPos=n,this.oldValue=i,this.oldSelection=o;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return s(t,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?_.NONE:this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos?_.RIGHT:_.LEFT}}]),t}(),k=function(){function t(e){r(this,t),Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}return s(t,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),t}(),E=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;r(this,t),this.value=e,this.from=n,this.stop=i}return s(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.value.length)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}}]),t}();function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new w.InputMask(t,e)}var A=function(){function t(e){r(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,{},e)),this.isInitialized=!0}return s(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"reset",value:function(){this._value=""}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new E(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return m(t)&&(t=new E(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t=this.doPrepare(t,e))?(this._value+=t,new k({inserted:t,rawInserted:t})):new k}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=this.state,r=this._appendCharRaw(t,e);if(r.inserted){var o,s=!1!==this.doValidate(e);if(s&&null!=n){var a=this.state;this.overwrite&&(o=n.state,n.shiftBefore(this.value.length));var u=this.appendTail(n);(s=u.rawInserted===n.toString())&&u.inserted&&(this.state=a)}s||(r=new k,this.state=i,n&&o&&(n.state=o))}return r}},{key:"_appendPlaceholder",value:function(){return new k}},{key:"append",value:function(t,e,n){if(!m(t))throw new Error("value should be string");var i=new k,r=m(n)?new E(String(n)):n;e.tail&&(e._beforeTailState=this.state);for(var o=0;o<t.length;++o)i.aggregate(this._appendChar(t[o],e,r));return null!=r&&(i.tailShift+=this.appendTail(r).tailShift),i}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new k}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=e,this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,i}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,n=t(this);return this.state=e,delete this._isolated,n}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,n,i){var r=t+e,o=this.extractTail(r),s=this.nearestInputPos(t,i);return new k({tailShift:s-t}).aggregate(this.remove(s)).aggregate(this.append(n,{input:!0},o))}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}}]),t}();function C(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?w.MaskedRegExp:m(t)?w.MaskedPattern:t instanceof Date||t===Date?w.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?w.MaskedNumber:Array.isArray(t)||t===Array?w.MaskedDynamic:w.Masked&&t.prototype instanceof w.Masked?t:t instanceof Function?w.MaskedFunction:t instanceof w.Masked?t.constructor:(console.warn("Mask not found for mask",t),w.Masked)}function D(t){if(w.Masked&&t instanceof w.Masked)return t;var e=(t=Object.assign({},t)).mask;if(w.Masked&&e instanceof w.Masked)return e;var n=C(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}A.DEFAULTS={format:function(t){return t},parse:function(t){return t}},w.Masked=A,w.createMask=D;var S={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},T=function(){function t(e){r(this,t);var n=e.mask,i=c(e,["mask"]);this.masked=D({mask:n}),Object.assign(this,i)}return s(t,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this._isFilled=!1,this.masked.remove(t,e)):new k}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new k;var n=this.masked.state,i=this.masked._appendChar(t,e);return i.inserted&&!1===this.doValidate(e)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||e.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this._isFilled=Boolean(i.inserted),i}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new k;return this._isFilled||this.isOptional?t:(this._isFilled=!0,t.inserted=this.placeholderChar,t)}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.NONE,n=this.value.length,i=Math.min(Math.max(t,0),n);switch(e){case _.LEFT:case _.FORCE_LEFT:return this.isComplete?i:0;case _.RIGHT:case _.FORCE_RIGHT:return this.isComplete?i:n;case _.NONE:default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"value",get:function(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"state",get:function(){return{masked:this.masked.state,_isFilled:this._isFilled}},set:function(t){this.masked.state=t.masked,this._isFilled=t._isFilled}}]),t}(),F=function(){function t(e){r(this,t),Object.assign(this,e),this._value=""}return s(t,[{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new k}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.NONE,n=this._value.length;switch(e){case _.LEFT:case _.FORCE_LEFT:return 0;case _.NONE:case _.RIGHT:case _.FORCE_RIGHT:default:return n}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new k;if(this._value)return n;var i=this.char===t[0]&&(this.isUnmasking||e.input||e.raw)&&!e.tail;return i&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),n}},{key:"_appendPlaceholder",value:function(){var t=new k;return this._value?t:(this._value=t.inserted=this.char,t)}},{key:"extractTail",value:function(){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,new E("")}},{key:"appendTail",value:function(t){return m(t)&&(t=new E(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var i=this._appendChar(t,e);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}},{key:"doCommit",value:function(){}},{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"isComplete",get:function(){return!0}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;r(this,t),this.chunks=e,this.from=n}return s(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){m(e)&&(e=new E(String(e)));var n=this.chunks[this.chunks.length-1],i=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof E)i?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var r;e.chunks.length&&null==e.chunks[0].stop;)(r=e.chunks.shift()).from+=e.from,this.extend(r);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof w.MaskedPattern))return new E(this.toString()).appendTo(e);for(var n=new k,i=0;i<this.chunks.length&&!n.skip;++i){var r=this.chunks[i],o=e._mapPosToBlock(e.value.length),s=r.stop,a=void 0;if(null!=s&&(!o||o.index<=s)&&((r instanceof t||e._stops.indexOf(s)>=0)&&n.aggregate(e._appendPlaceholder(s)),a=r instanceof t&&e._blocks[s]),a){var u=a.appendTail(r);u.skip=!1,n.aggregate(u),e._value+=u.inserted;var l=r.toString().slice(u.rawInserted.length);l&&n.aggregate(e.append(l,{tail:!0}))}else n.aggregate(e.append(r.toString(),{tail:!0}))}return n}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.chunks.length)return"";for(var e=t-this.from,n=0;n<this.chunks.length;){var i=this.chunks[n],r=i.shiftBefore(e);if(i.toString()){if(!r)break;++n}else this.chunks.splice(n,1);if(r)return r}return""}},{key:"state",get:function(){return{chunks:this.chunks.map(function(t){return t.state}),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var n=e.chunks,i=c(e,["chunks"]);Object.assign(this,i),this.chunks=n.map(function(e){var n="chunks"in e?new t:new E;return n.state=e,n})}}]),t}(),x=function(t){function e(){return r(this,e),h(this,u(e).apply(this,arguments))}return a(e,A),s(e,[{key:"_update",value:function(t){t.mask&&(t.validate=function(e){return e.search(t.mask)>=0}),d(u(e.prototype),"_update",this).call(this,t)}}]),e}();w.MaskedRegExp=x;var L=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(this,e),t.definitions=Object.assign({},S,t.definitions),h(this,u(e).call(this,Object.assign({},e.DEFAULTS,{},t)))}return a(e,A),s(e,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),d(u(e.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,n=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var i=this.mask;if(i&&n)for(var r=!1,o=!1,s=0;s<i.length;++s){if(this.blocks)if("continue"===function(){var e=i.slice(s),n=Object.keys(t.blocks).filter(function(t){return 0===e.indexOf(t)});n.sort(function(t,e){return e.length-t.length});var r=n[0];if(r){var o=D(Object.assign({parent:t,lazy:t.lazy,placeholderChar:t.placeholderChar,overwrite:t.overwrite},t.blocks[r]));return o&&(t._blocks.push(o),t._maskedBlocks[r]||(t._maskedBlocks[r]=[]),t._maskedBlocks[r].push(t._blocks.length-1)),s+=r.length-1,"continue"}}())continue;var a=i[s],u=a in n;if(a!==e.STOP_CHAR)if("{"!==a&&"}"!==a)if("["!==a&&"]"!==a){if(a===e.ESCAPE_CHAR){if(!(a=i[++s]))break;u=!1}var l=u?new T({parent:this,lazy:this.lazy,placeholderChar:this.placeholderChar,mask:n[a],isOptional:o}):new F({char:a,isUnmasking:r});this._blocks.push(l)}else o=!o;else r=!r;else this._stops.push(this._blocks.length)}}},{key:"reset",value:function(){d(u(e.prototype),"reset",this).call(this),this._blocks.forEach(function(t){return t.reset()})}},{key:"doCommit",value:function(){this._blocks.forEach(function(t){return t.doCommit()}),d(u(e.prototype),"doCommit",this).call(this)}},{key:"appendTail",value:function(t){return d(u(e.prototype),"appendTail",this).call(this,t).aggregate(this._appendPlaceholder())}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=this.doPrepare(t,e);var n=this._mapPosToBlock(this.value.length),i=new k;if(!n)return i;for(var r=n.index;;++r){var o=this._blocks[r];if(!o)break;var s=o._appendChar(t,e),a=s.skip;if(i.aggregate(s),a||s.rawInserted)break}return i}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=new O;return e===n?i:(this._forEachBlocksInRange(e,n,function(e,n,r,o){var s=e.extractTail(r,o);s.stop=t._findStopBefore(n),s.from=t._blockStartPos(n),s instanceof O&&(s.blockIndex=n),i.extend(s)}),i)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var i="";return this._forEachBlocksInRange(t,e,function(t,e,r,o){i+=t.extractInput(r,o,n)}),i}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n<this._stops.length;++n){var i=this._stops[n];if(!(i<=t))break;e=i}return e}},{key:"_appendPlaceholder",value:function(t){var e=this,n=new k;if(this.lazy&&null==t)return n;var i=this._mapPosToBlock(this.value.length);if(!i)return n;var r=i.index,o=null!=t?t:this._blocks.length;return this._blocks.slice(r,o).forEach(function(i){if(!i.lazy||null!=t){var r=null!=i._blocks?[i._blocks.length]:[],o=i._appendPlaceholder.apply(i,r);e._value+=o.inserted,n.aggregate(o)}}),n}},{key:"_mapPosToBlock",value:function(t){for(var e="",n=0;n<this._blocks.length;++n){var i=this._blocks[n],r=e.length;if(t<=(e+=i.value).length)return{index:n,offset:t-r}}}},{key:"_blockStartPos",value:function(t){return this._blocks.slice(0,t).reduce(function(t,e){return t+e.value.length},0)}},{key:"_forEachBlocksInRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,i=this._mapPosToBlock(t);if(i){var r=this._mapPosToBlock(e),o=r&&i.index===r.index,s=i.offset,a=r&&o?r.offset:this._blocks[i.index].value.length;if(n(this._blocks[i.index],i.index,s,a),r&&!o){for(var u=i.index+1;u<r.index;++u)n(this._blocks[u],u,0,this._blocks[u].value.length);n(this._blocks[r.index],r.index,0,r.offset)}}}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=d(u(e.prototype),"remove",this).call(this,t,n);return this._forEachBlocksInRange(t,n,function(t,e,n,r){i.aggregate(t.remove(n,r))}),i}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.NONE,n=this._mapPosToBlock(t)||{index:0,offset:0},i=n.offset,r=n.index,o=this._blocks[r];if(!o)return t;var s=i;0!==s&&s<o.value.length&&(s=o.nearestInputPos(i,function(t){switch(t){case _.LEFT:return _.FORCE_LEFT;case _.RIGHT:return _.FORCE_RIGHT;default:return t}}(e)));var a=s===o.value.length;if(!(0===s)&&!a)return this._blockStartPos(r)+s;var u=a?r+1:r;if(e===_.NONE){if(u>0){var l=u-1,c=this._blocks[l],h=c.nearestInputPos(0,_.NONE);if(!c.value.length||h!==c.value.length)return this._blockStartPos(u)}for(var f=u;f<this._blocks.length;++f){var d=this._blocks[f],p=d.nearestInputPos(0,_.NONE);if(!d.value.length||p!==d.value.length)return this._blockStartPos(f)+p}for(var g=u-1;g>=0;--g){var v=this._blocks[g],m=v.nearestInputPos(0,_.NONE);if(!v.value.length||m!==v.value.length)return this._blockStartPos(g)+v.value.length}return t}if(e===_.LEFT||e===_.FORCE_LEFT){for(var y,b=u;b<this._blocks.length;++b)if(this._blocks[b].value){y=b;break}if(null!=y){var k=this._blocks[y],E=k.nearestInputPos(0,_.RIGHT);if(0===E&&k.unmaskedValue.length)return this._blockStartPos(y)+E}for(var w,A=-1,C=u-1;C>=0;--C){var D=this._blocks[C],S=D.nearestInputPos(D.value.length,_.FORCE_LEFT);if(D.value&&0===S||(w=C),0!==S){if(S!==D.value.length)return this._blockStartPos(C)+S;A=C;break}}if(e===_.LEFT)for(var T=A+1;T<=Math.min(u,this._blocks.length-1);++T){var F=this._blocks[T],O=F.nearestInputPos(0,_.NONE),x=this._blockStartPos(T)+O;if(x>t)break;if(O!==F.value.length)return x}if(A>=0)return this._blockStartPos(A)+this._blocks[A].value.length;if(e===_.FORCE_LEFT||this.lazy&&!this.extractInput()&&!function(t){if(!t)return!1;var e=t.value;return!e||t.nearestInputPos(0,_.NONE)!==e.length}(this._blocks[u]))return 0;if(null!=w)return this._blockStartPos(w);for(var L=u;L<this._blocks.length;++L){var B=this._blocks[L],P=B.nearestInputPos(0,_.NONE);if(!B.value.length||P!==B.value.length)return this._blockStartPos(L)+P}return 0}if(e===_.RIGHT||e===_.FORCE_RIGHT){for(var I,M,j=u;j<this._blocks.length;++j){var N=this._blocks[j],R=N.nearestInputPos(0,_.NONE);if(R!==N.value.length){M=this._blockStartPos(j)+R,I=j;break}}if(null!=I&&null!=M){for(var V=I;V<this._blocks.length;++V){var H=this._blocks[V],z=H.nearestInputPos(0,_.FORCE_RIGHT);if(z!==H.value.length)return this._blockStartPos(V)+z}return e===_.FORCE_RIGHT?this.value.length:M}for(var W=Math.min(u,this._blocks.length-1);W>=0;--W){var U=this._blocks[W],Y=U.nearestInputPos(U.value.length,_.LEFT);if(0!==Y){var K=this._blockStartPos(W)+Y;if(K>=t)return K;break}}}return t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map(function(t){return e._blocks[t]}):[]}},{key:"state",get:function(){return Object.assign({},d(u(e.prototype),"state",this),{_blocks:this._blocks.map(function(t){return t.state})})},set:function(t){var n=t._blocks,i=c(t,["_blocks"]);this._blocks.forEach(function(t,e){return t.state=n[e]}),g(u(e.prototype),"state",i,this,!0)}},{key:"isComplete",get:function(){return this._blocks.every(function(t){return t.isComplete})}},{key:"unmaskedValue",get:function(){return this._blocks.reduce(function(t,e){return t+e.unmaskedValue},"")},set:function(t){g(u(e.prototype),"unmaskedValue",t,this,!0)}},{key:"value",get:function(){return this._blocks.reduce(function(t,e){return t+e.value},"")},set:function(t){g(u(e.prototype),"value",t,this,!0)}}]),e}();L.DEFAULTS={lazy:!0,placeholderChar:"_"},L.STOP_CHAR="`",L.ESCAPE_CHAR="\\",L.InputDefinition=T,L.FixedDefinition=F,w.MaskedPattern=L;var B=function(t){function e(){return r(this,e),h(this,u(e).apply(this,arguments))}return a(e,L),s(e,[{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0},t);var n=String(t.to).length;null!=t.maxLength&&(n=Math.max(n,t.maxLength)),t.maxLength=n;for(var i=String(t.from).padStart(n,"0"),r=String(t.to).padStart(n,"0"),o=0;o<r.length&&r[o]===i[o];)++o;t.mask=r.slice(0,o).replace(/0/g,"\\0")+"0".repeat(n-o),d(u(e.prototype),"_update",this).call(this,t)}},{key:"boundaries",value:function(t){var e="",n="",i=v(t.match(/^(\D*)(\d*)(\D*)/)||[],3),r=i[1],o=i[2];return o&&(e="0".repeat(r.length)+o,n="9".repeat(r.length)+o),[e=e.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9")]}},{key:"doPrepare",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=d(u(e.prototype),"doPrepare",this).call(this,t,n).replace(/\D/g,""),!this.autofix)return t;for(var i=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0"),o=this.value,s="",a=0;a<t.length;++a){var l=o+s+t[a],c=v(this.boundaries(l),2),h=c[0],f=c[1];Number(f)<this.from?s+=i[l.length-1]:Number(h)>this.to?s+=r[l.length-1]:s+=t[a]}return s}},{key:"doValidate",value:function(){var t,n=this.value;if(-1===n.search(/[^0]/)&&n.length<=this._matchFrom)return!0;for(var i=v(this.boundaries(n),2),r=i[0],o=i[1],s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return this.from<=Number(o)&&Number(r)<=this.to&&(t=d(u(e.prototype),"doValidate",this)).call.apply(t,[this].concat(a))}},{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"isComplete",get:function(){return d(u(e.prototype),"isComplete",this)&&Boolean(this.value)}}]),e}();w.MaskedRange=B;var P=function(t){function e(t){return r(this,e),h(this,u(e).call(this,Object.assign({},e.DEFAULTS,{},t)))}return a(e,L),s(e,[{key:"_update",value:function(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern);var n=t.blocks;t.blocks=Object.assign({},e.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Object.assign(t.blocks,n),Object.keys(t.blocks).forEach(function(e){var n=t.blocks[e];"autofix"in n||(n.autofix=t.autofix)}),d(u(e.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,n=this.date,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=d(u(e.prototype),"doValidate",this)).call.apply(t,[this].concat(r))&&(!this.isComplete||this.isDateExist(this.value)&&null!=n&&(null==this.min||this.min<=n)&&(null==this.max||n<=this.max))}},{key:"isDateExist",value:function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?d(u(e.prototype),"typedValue",this):null},set:function(t){g(u(e.prototype),"typedValue",t,this,!0)}}]),e}();P.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join(".")},parse:function(t){var e=v(t.split("."),3),n=e[0],i=e[1],r=e[2];return new Date(r,i-1,n)}},P.GET_DEFAULT_BLOCKS=function(){return{d:{mask:B,from:1,to:31,maxLength:2},m:{mask:B,from:1,to:12,maxLength:2},Y:{mask:B,from:1900,to:9999}}},w.MaskedDate=P;var I=function(){function t(){r(this,t)}return s(t,[{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}},{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"isActive",get:function(){return!1}}]),t}();w.MaskElement=I;var M=function(t){function e(t){var n;return r(this,e),(n=h(this,u(e).call(this))).input=t,n._handlers={},n}return a(e,I),s(e,[{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"bindEvents",value:function(t){var n=this;Object.keys(t).forEach(function(i){return n._toggleEventHandler(e.EVENTS_MAP[i],t[i])})}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach(function(e){return t._toggleEventHandler(e)})}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}},{key:"rootElement",get:function(){return this.input.getRootNode?this.input.getRootNode():document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}}]),e}();M.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},w.HTMLMaskElement=M;var j=function(t){function e(){return r(this,e),h(this,u(e).apply(this,arguments))}return a(e,M),s(e,[{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,e);var i=this.rootElement,r=i.getSelection&&i.getSelection();r&&(r.removeAllRanges(),r.addRange(n))}}},{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&e.anchorOffset}},{key:"_unsafeSelectionEnd",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&this._unsafeSelectionStart+String(e).length}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),e}();w.HTMLContenteditableMaskElement=j;var N=function(){function t(e,n){r(this,t),this.el=e instanceof I?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new j(e):new M(e),this.masked=D(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return s(t,[{key:"maskEquals",value:function(t){return null==t||t===this.masked.mask||t===Date&&this.masked instanceof P}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=this._listeners[t];r&&r.forEach(function(t){return t.apply(void 0,n)})}},{key:"_saveSelection",value:function(){this.value!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}},{key:"updateValue",value:function(){this.masked.value=this.el.value,this._value=this.masked.value}},{key:"updateControl",value:function(){var t=this.masked.unmaskedValue,e=this.masked.value,n=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==e&&(this.el.value=e),n&&this._fireChangeEvents()}},{key:"updateOptions",value:function(t){var e=t.mask,n=c(t,["mask"]),r=!this.maskEquals(e),o=!function t(e,n){if(n===e)return!0;var r,o=Array.isArray(n),s=Array.isArray(e);if(o&&s){if(n.length!=e.length)return!1;for(r=0;r<n.length;r++)if(!t(n[r],e[r]))return!1;return!0}if(o!=s)return!1;if(n&&e&&"object"===i(n)&&"object"===i(e)){var a=n instanceof Date,u=e instanceof Date;if(a&&u)return n.getTime()==e.getTime();if(a!=u)return!1;var l=n instanceof RegExp,c=e instanceof RegExp;if(l&&c)return n.toString()==e.toString();if(l!=c)return!1;var h=Object.keys(n);for(r=0;r<h.length;r++)if(!Object.prototype.hasOwnProperty.call(e,h[r]))return!1;for(r=0;r<h.length;r++)if(!t(e[h[r]],n[h[r]]))return!1;return!0}return!(!n||!e||"function"!=typeof n||"function"!=typeof e)&&n.toString()===e.toString()}(this.masked,n);r&&(this.mask=e),o&&this.masked.updateOptions(n),(r||o)&&this.updateControl()}},{key:"updateCursor",value:function(t){null!=t&&(this.cursorPos=t,this._delayUpdateCursor(t))}},{key:"_delayUpdateCursor",value:function(t){var e=this;this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(function(){e.el&&(e.cursorPos=e._changingCursorPos,e._abortUpdateCursor())},10)}},{key:"_fireChangeEvents",value:function(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}},{key:"_abortUpdateCursor",value:function(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}},{key:"alignCursor",value:function(){this.cursorPos=this.masked.nearestInputPos(this.cursorPos,_.LEFT)}},{key:"alignCursorFriendly",value:function(){this.selectionStart===this.cursorPos&&this.alignCursor()}},{key:"on",value:function(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}},{key:"off",value:function(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;var n=this._listeners[t].indexOf(e);return n>=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new b(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,i=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,r=n===this.masked.rawInputValue?e.removeDirection:_.NONE,o=this.masked.nearestInputPos(e.startChangePos+i,r);this.updateControl(),this.updateCursor(o),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}},{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof w.Masked||this.masked.constructor!==C(t)){var e=D({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"selectionStart",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}},{key:"cursorPos",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){this.el&&this.el.isActive&&(this.el.select(t,t),this._saveSelection())}}]),t}();w.InputMask=N;var R=function(t){function e(){return r(this,e),h(this,u(e).apply(this,arguments))}return a(e,L),s(e,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),d(u(e.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,n=this,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return this.enum.some(function(t){return t.indexOf(n.unmaskedValue)>=0})&&(t=d(u(e.prototype),"doValidate",this)).call.apply(t,[this].concat(r))}}]),e}();w.MaskedEnum=R;var V=function(t){function e(t){return r(this,e),h(this,u(e).call(this,Object.assign({},e.DEFAULTS,{},t)))}return a(e,A),s(e,[{key:"_update",value:function(t){d(u(e.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+y(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(y).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(y(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){for(var n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return(n=d(u(e.prototype),"doPrepare",this)).call.apply(n,[this,this._removeThousandsSeparators(t.replace(this._mapToRadixRegExp,this.radix))].concat(r))}},{key:"_separatorsCount",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,e&&(t+=this.thousandsSeparator.length));return n}},{key:"_separatorsCountFromSlice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0,r=v(this._adjustRangeWithSeparators(t,n),2);return t=r[0],n=r[1],this._removeThousandsSeparators(d(u(e.prototype),"extractInput",this).call(this,t,n,i))}},{key:"_appendCharRaw",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return d(u(e.prototype),"_appendCharRaw",this).call(this,t,n);var i=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,r=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);var o=d(u(e.prototype),"_appendCharRaw",this).call(this,t,n);this._value=this._insertThousandsSeparators(this._value);var s=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(s);return o.tailShift+=(a-r)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,e);if(n<=t)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var i=this._findSeparatorAround(e);return i>=0&&(e=i+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=v(this._adjustRangeWithSeparators(t,e),2);t=n[0],e=n[1];var i=this.value.slice(0,t),r=this.value.slice(e),o=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+r));var s=this._separatorsCountFromSlice(i);return new k({tailShift:(s-o)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case _.NONE:case _.LEFT:case _.FORCE_LEFT:var n=this._findSeparatorAround(t-1);if(n>=0){var i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||e===_.FORCE_LEFT)return n}break;case _.RIGHT:case _.FORCE_RIGHT:var r=this._findSeparatorAround(t);if(r>=0)return r+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var n=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(n){var i=this.number;n=n&&!isNaN(i)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return n&&d(u(e.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,n=t;null!=this.min&&(n=Math.max(n,this.min)),null!=this.max&&(n=Math.min(n,this.max)),n!==t&&(this.unmaskedValue=String(n));var i=this.value;this.normalizeZeros&&(i=this._normalizeZeros(i)),this.padFractionalZeros&&(i=this._padFractionalZeros(i)),this._value=i}d(u(e.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,function(t,e,n,i){return e+i}),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){g(u(e.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){g(u(e.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),e}();V.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},w.MaskedNumber=V;var H=function(t){function e(){return r(this,e),h(this,u(e).apply(this,arguments))}return a(e,A),s(e,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),d(u(e.prototype),"_update",this).call(this,t)}}]),e}();w.MaskedFunction=H;var z=function(t){function e(t){var n;return r(this,e),(n=h(this,u(e).call(this,Object.assign({},e.DEFAULTS,{},t)))).currentMask=null,n}return a(e,A),s(e,[{key:"_update",value:function(t){d(u(e.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(function(t){return D(t)}):[])}},{key:"_appendCharRaw",value:function(){var t,e=this._applyDispatch.apply(this,arguments);this.currentMask&&e.aggregate((t=this.currentMask)._appendChar.apply(t,arguments));return e}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,i=this.rawInputValue,r=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:i,o=i.slice(r.length),s=this.currentMask,a=new k,u=s&&s.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==s){this.currentMask.reset();var l=this.currentMask.append(r,{raw:!0});a.tailShift=l.inserted.length-n.length,o&&(a.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return a}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=d(u(e.prototype),"doValidate",this)).call.apply(t,[this].concat(r))&&(!this.currentMask||(n=this.currentMask).doValidate.apply(n,r))}},{key:"reset",value:function(){this.currentMask&&this.currentMask.reset(),this.compiledMasks.forEach(function(t){return t.reset()})}},{key:"remove",value:function(){var t,e=new k;this.currentMask&&e.aggregate((t=this.currentMask).remove.apply(t,arguments)).aggregate(this._applyDispatch());return e}},{key:"extractInput",value:function(){var t;return this.currentMask?(t=this.currentMask).extractInput.apply(t,arguments):""}},{key:"extractTail",value:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return this.currentMask?(t=this.currentMask).extractTail.apply(t,r):(n=d(u(e.prototype),"extractTail",this)).call.apply(n,[this].concat(r))}},{key:"doCommit",value:function(){this.currentMask&&this.currentMask.doCommit(),d(u(e.prototype),"doCommit",this).call(this)}},{key:"nearestInputPos",value:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return this.currentMask?(t=this.currentMask).nearestInputPos.apply(t,r):(n=d(u(e.prototype),"nearestInputPos",this)).call.apply(n,[this].concat(r))}},{key:"value",get:function(){return this.currentMask?this.currentMask.value:""},set:function(t){g(u(e.prototype),"value",t,this,!0)}},{key:"unmaskedValue",get:function(){return this.currentMask?this.currentMask.unmaskedValue:""},set:function(t){g(u(e.prototype),"unmaskedValue",t,this,!0)}},{key:"typedValue",get:function(){return this.currentMask?this.currentMask.typedValue:""},set:function(t){var e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}},{key:"isComplete",get:function(){return!!this.currentMask&&this.currentMask.isComplete}},{key:"state",get:function(){return Object.assign({},d(u(e.prototype),"state",this),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(function(t){return t.state}),currentMaskRef:this.currentMask,currentMask:this.currentMask&&this.currentMask.state})},set:function(t){var n=t.compiledMasks,i=t.currentMaskRef,r=t.currentMask,o=c(t,["compiledMasks","currentMaskRef","currentMask"]);this.compiledMasks.forEach(function(t,e){return t.state=n[e]}),null!=i&&(this.currentMask=i,this.currentMask.state=r),g(u(e.prototype),"state",o,this,!0)}},{key:"overwrite",get:function(){return this.currentMask?this.currentMask.overwrite:d(u(e.prototype),"overwrite",this)},set:function(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}}]),e}();z.DEFAULTS={dispatch:function(t,e,n){if(e.compiledMasks.length){var i=e.rawInputValue,r=e.compiledMasks.map(function(e,r){return e.reset(),e.append(i,{raw:!0}),e.append(t,n),{weight:e.rawInputValue.length,index:r}});return r.sort(function(t,e){return e.weight-t.weight}),e.compiledMasks[r[0].index]}}},w.MaskedDynamic=z;var W={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.MASKED,i=D(t);return function(t){return i.runIsolated(function(i){return i[e]=t,i[n]})}}w.PIPE_TYPE=W,w.createPipe=U,w.pipe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return U.apply(void 0,n)(t)};try{globalThis.IMask=w}catch(t){}[].slice.call(document.querySelectorAll("[data-mask]")).map(function(t){return new w(t,{mask:t.dataset.mask,lazy:"true"===t.dataset["mask-visible"]})});var Y="top",K="bottom",q="right",Q="left",X="auto",G=[Y,K,q,Q],Z="start",$="end",J="clippingParents",tt="viewport",et="popper",nt="reference",it=G.reduce(function(t,e){return t.concat([e+"-"+Z,e+"-"+$])},[]),rt=[].concat(G,[X]).reduce(function(t,e){return t.concat([e,e+"-"+Z,e+"-"+$])},[]),ot=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function st(t){return t?(t.nodeName||"").toLowerCase():null}function at(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){return t instanceof at(t).Element||t instanceof Element}function lt(t){return t instanceof at(t).HTMLElement||t instanceof HTMLElement}var ct={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];lt(r)&&st(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});lt(i)&&st(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function ht(t){return t.split("-")[0]}function ft(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function dt(t,e){var n,i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&((n=i)instanceof at(n).ShadowRoot||n instanceof ShadowRoot)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pt(t){return at(t).getComputedStyle(t)}function gt(t){return["table","td","th"].indexOf(st(t))>=0}function vt(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function mt(t){return"html"===st(t)?t:t.assignedSlot||t.parentNode||t.host||vt(t)}function _t(t){if(!lt(t)||"fixed"===pt(t).position)return null;var e=t.offsetParent;if(e){var n=vt(e);if("body"===st(e)&&"static"===pt(e).position&&"static"!==pt(n).position)return n}return e}function yt(t){for(var e=at(t),n=_t(t);n&>(n)&&"static"===pt(n).position;)n=_t(n);return n&&"body"===st(n)&&"static"===pt(n).position?e:n||function(t){for(var e=mt(t);lt(e)&&["html","body"].indexOf(st(e))<0;){var n=pt(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function bt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,n){return Math.max(t,Math.min(e,n))}function Et(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function wt(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var At={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ht(n.placement),a=bt(s),u=[Q,q].indexOf(s)>=0?"height":"width";if(r&&o){var l=n.modifiersData[i+"#persistent"].padding,c=ft(r),h="y"===a?Y:Q,f="y"===a?K:q,d=n.rects.reference[u]+n.rects.reference[a]-o[a]-n.rects.popper[u],p=o[a]-n.rects.reference[a],g=yt(r),v=g?"y"===a?g.clientHeight||0:g.clientWidth||0:0,m=d/2-p/2,_=l[h],y=v-c[u]-l[f],b=v/2-c[u]/2+m,k=kt(_,b,y),E=a;n.modifiersData[i]=((e={})[E]=k,e.centerOffset=k-b,e)}},effect:function(t){var e=t.state,n=t.options,i=t.name,r=n.element,o=void 0===r?"[data-popper-arrow]":r,s=n.padding,a=void 0===s?0:s;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&dt(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[i+"#persistent"]={padding:Et("number"!=typeof a?a:wt(a,G))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.offsets,s=t.position,a=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Math.round(e*i)/i||0,y:Math.round(n*i)/i||0}}(o):o,c=l.x,h=void 0===c?0:c,f=l.y,d=void 0===f?0:f,p=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),v=Q,m=Y,_=window;if(u){var y=yt(n);y===at(n)&&(y=vt(n)),r===Y&&(m=K,d-=y.clientHeight-i.height,d*=a?1:-1),r===Q&&(v=q,h-=y.clientWidth-i.width,h*=a?1:-1)}var b,k=Object.assign({position:s},u&&Ct);return a?Object.assign(Object.assign({},k),{},((b={})[m]=g?"0":"",b[v]=p?"0":"",b.transform=(_.devicePixelRatio||1)<2?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},k),{},((e={})[m]=g?d+"px":"",e[v]=p?h+"px":"",e.transform="",e))}var St={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,u=void 0===a||a,l={placement:ht(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Dt(Object.assign(Object.assign({},l),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Dt(Object.assign(Object.assign({},l),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},Tt={passive:!0};var Ft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,u=at(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(t){t.addEventListener("scroll",n.update,Tt)}),a&&u.addEventListener("resize",n.update,Tt),function(){o&&l.forEach(function(t){t.removeEventListener("scroll",n.update,Tt)}),a&&u.removeEventListener("resize",n.update,Tt)}},data:{}},Ot={left:"right",right:"left",bottom:"top",top:"bottom"};function xt(t){return t.replace(/left|right|bottom|top/g,function(t){return Ot[t]})}var Lt={start:"end",end:"start"};function Bt(t){return t.replace(/start|end/g,function(t){return Lt[t]})}function Pt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function It(t){var e=at(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mt(t){return Pt(vt(t)).left+It(t).scrollLeft}function jt(t){var e=pt(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Nt(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(st(e))>=0?e.ownerDocument.body:lt(e)&&jt(e)?e:t(mt(e))}(t),i="body"===st(n),r=at(n),o=i?[r].concat(r.visualViewport||[],jt(n)?n:[]):n,s=e.concat(o);return i?s:s.concat(Nt(mt(o)))}function Rt(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vt(t,e){return e===tt?Rt(function(t){var e=at(t),n=vt(t),i=e.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,a=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:r,height:o,x:s+Mt(t),y:a}}(t)):lt(e)?function(t){var e=Pt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Rt(function(t){var e=vt(t),n=It(t),i=t.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Mt(t),a=-n.scrollTop;return"rtl"===pt(i||e).direction&&(s+=Math.max(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:s,y:a}}(vt(t)))}function Ht(t,e,n){var i="clippingParents"===e?function(t){var e=Nt(mt(t)),n=["absolute","fixed"].indexOf(pt(t).position)>=0&<(t)?yt(t):t;return ut(n)?e.filter(function(t){return ut(t)&&dt(t,n)&&"body"!==st(t)}):[]}(t):[].concat(e),r=[].concat(i,[n]),o=r[0],s=r.reduce(function(e,n){var i=Vt(t,n);return e.top=Math.max(i.top,e.top),e.right=Math.min(i.right,e.right),e.bottom=Math.min(i.bottom,e.bottom),e.left=Math.max(i.left,e.left),e},Vt(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zt(t){return t.split("-")[1]}function Wt(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?ht(r):null,s=r?zt(r):null,a=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(o){case Y:e={x:a,y:n.y-i.height};break;case K:e={x:a,y:n.y+n.height};break;case q:e={x:n.x+n.width,y:u};break;case Q:e={x:n.x-i.width,y:u};break;default:e={x:n.x,y:n.y}}var l=o?bt(o):null;if(null!=l){var c="y"===l?"height":"width";switch(s){case Z:e[l]=e[l]-(n[c]/2-i[c]/2);break;case $:e[l]=e[l]+(n[c]/2-i[c]/2)}}return e}function Ut(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,s=void 0===o?J:o,a=n.rootBoundary,u=void 0===a?tt:a,l=n.elementContext,c=void 0===l?et:l,h=n.altBoundary,f=void 0!==h&&h,d=n.padding,p=void 0===d?0:d,g=Et("number"!=typeof p?p:wt(p,G)),v=c===et?nt:et,m=t.elements.reference,_=t.rects.popper,y=t.elements[f?v:c],b=Ht(ut(y)?y:y.contextElement||vt(t.elements.popper),s,u),k=Pt(m),E=Wt({reference:k,element:_,strategy:"absolute",placement:r}),w=Rt(Object.assign(Object.assign({},_),E)),A=c===et?w:k,C={top:b.top-A.top+g.top,bottom:A.bottom-b.bottom+g.bottom,left:b.left-A.left+g.left,right:A.right-b.right+g.right},D=t.modifiersData.offset;if(c===et&&D){var S=D[r];Object.keys(C).forEach(function(t){var e=[q,K].indexOf(t)>=0?1:-1,n=[Y,K].indexOf(t)>=0?"y":"x";C[t]+=S[n]*e})}return C}function Yt(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?rt:u,c=zt(i),h=c?a?it:it.filter(function(t){return zt(t)===c}):G,f=h.filter(function(t){return l.indexOf(t)>=0});0===f.length&&(f=h);var d=f.reduce(function(e,n){return e[n]=Ut(t,{placement:n,boundary:r,rootBoundary:o,padding:s})[ht(n)],e},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}var Kt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,h=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,p=void 0===d||d,g=n.allowedAutoPlacements,v=e.options.placement,m=ht(v),_=u||(m!==v&&p?function(t){if(ht(t)===X)return[];var e=xt(t);return[Bt(t),e,Bt(e)]}(v):[xt(v)]),y=[v].concat(_).reduce(function(t,n){return t.concat(ht(n)===X?Yt(e,{placement:n,boundary:c,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),b=e.rects.reference,k=e.rects.popper,E=new Map,w=!0,A=y[0],C=0;C<y.length;C++){var D=y[C],S=ht(D),T=zt(D)===Z,F=[Y,K].indexOf(S)>=0,O=F?"width":"height",x=Ut(e,{placement:D,boundary:c,rootBoundary:h,altBoundary:f,padding:l}),L=F?T?q:Q:T?K:Y;b[O]>k[O]&&(L=xt(L));var B=xt(L),P=[];if(o&&P.push(x[S]<=0),a&&P.push(x[L]<=0,x[B]<=0),P.every(function(t){return t})){A=D,w=!1;break}E.set(D,P)}if(w)for(var I=function(t){var e=y.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},M=p?3:1;M>0&&"break"!==I(M);M--);e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Qt(t){return[Y,q,K,Q].some(function(e){return t[e]>=0})}var Xt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ut(e,{elementContext:"reference"}),a=Ut(e,{altBoundary:!0}),u=qt(s,i),l=qt(a,r,o),c=Qt(u),h=Qt(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":h})}};var Gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,s=rt.reduce(function(t,n){return t[n]=function(t,e,n){var i=ht(t),r=[Q,Y].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign(Object.assign({},e),{},{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Q,q].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t},{}),a=s[e.placement],u=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}};var Zt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Wt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var $t={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,h=n.padding,f=n.tether,d=void 0===f||f,p=n.tetherOffset,g=void 0===p?0:p,v=Ut(e,{boundary:u,rootBoundary:l,padding:h,altBoundary:c}),m=ht(e.placement),_=zt(e.placement),y=!_,b=bt(m),k="x"===b?"y":"x",E=e.modifiersData.popperOffsets,w=e.rects.reference,A=e.rects.popper,C="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,D={x:0,y:0};if(E){if(o){var S="y"===b?Y:Q,T="y"===b?K:q,F="y"===b?"height":"width",O=E[b],x=E[b]+v[S],L=E[b]-v[T],B=d?-A[F]/2:0,P=_===Z?w[F]:A[F],I=_===Z?-A[F]:-w[F],M=e.elements.arrow,j=d&&M?ft(M):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=N[S],V=N[T],H=kt(0,w[F],j[F]),z=y?w[F]/2-B-H-R-C:P-H-R-C,W=y?-w[F]/2+B+H+V+C:I+H+V+C,U=e.elements.arrow&&yt(e.elements.arrow),X=U?"y"===b?U.clientTop||0:U.clientLeft||0:0,G=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,$=E[b]+z-G-X,J=E[b]+W-G,tt=kt(d?Math.min(x,$):x,O,d?Math.max(L,J):L);E[b]=tt,D[b]=tt-O}if(a){var et="x"===b?Y:Q,nt="x"===b?K:q,it=E[k],rt=kt(it+v[et],it,it-v[nt]);E[k]=rt,D[k]=rt-it}e.modifiersData[i]=D}},requiresIfExists:["offset"]};function Jt(t,e,n){void 0===n&&(n=!1);var i,r,o=vt(e),s=Pt(t),a=lt(e),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&(("body"!==st(e)||jt(o))&&(u=(i=e)!==at(i)&<(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:It(i)),lt(e)?((l=Pt(e)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Mt(o))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function te(t){var e=new Map,n=new Set,i=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}}),i.push(r)}(t)}),i}var ee={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function ie(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?ee:r;return function(t,e,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ee),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],l=!1,c={state:a,setOptions:function(n){h(),a.options=Object.assign(Object.assign(Object.assign({},o),a.options),n),a.scrollParents={reference:ut(t)?Nt(t):t.contextElement?Nt(t.contextElement):[],popper:Nt(e)};var r,s,l=function(t){var e=te(t);return ot.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((r=[].concat(i,a.options.modifiers),s=r.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign(Object.assign(Object.assign({},n),e),{},{options:Object.assign(Object.assign({},n.options),e.options),data:Object.assign(Object.assign({},n.data),e.data)}):e,t},{}),Object.keys(s).map(function(t){return s[t]})));return a.orderedModifiers=l.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:c,options:i});u.push(o||function(){})}}),c.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(ne(e,n)){a.rects={reference:Jt(e,yt(n),"fixed"===a.options.strategy),popper:ft(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,u=void 0===s?{}:s,h=r.name;"function"==typeof o&&(a=o({state:a,options:u,name:h,instance:c})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(t){c.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(r())})})),s}),destroy:function(){h(),l=!0}};if(!ne(t,e))return c;function h(){u.forEach(function(t){return t()}),u=[]}return c.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),c}}var re=ie(),oe=ie({defaultModifiers:[Ft,Zt,St,ct]}),se=ie({defaultModifiers:[Ft,Zt,St,ct,Gt,Kt,$t,At,Xt]}),ae=Object.freeze({__proto__:null,popperGenerator:ie,detectOverflow:Ut,createPopperBase:re,createPopper:se,createPopperLite:oe,top:Y,bottom:K,right:q,left:Q,auto:X,basePlacements:G,start:Z,end:$,clippingParents:J,viewport:tt,popper:et,reference:nt,variationPlacements:it,placements:rt,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:ot,applyStyles:ct,arrow:At,computeStyles:St,eventListeners:Ft,flip:Kt,hide:Xt,offset:Gt,popperOffsets:Zt,preventOverflow:$t});function ue(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function le(t,e,n){return e&&ue(t.prototype,e),n&&ue(t,n),t}function ce(){return(ce=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function he(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var fe,de,pe="transitionend",ge=function(t){do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},ve=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():null}return e},me=function(t){var e=ve(t);return e&&document.querySelector(e)?e:null},_e=function(t){var e=ve(t);return e?document.querySelector(e):null},ye=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,r=Number.parseFloat(n),o=Number.parseFloat(i);return r||o?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0},be=function(t){t.dispatchEvent(new Event(pe))},ke=function(t){return(t[0]||t).nodeType},Ee=function(t,e){var n=!1,i=e+5;t.addEventListener(pe,function e(){n=!0,t.removeEventListener(pe,e)}),setTimeout(function(){n||be(t)},i)},we=function(t,e,n){Object.keys(n).forEach(function(i){var r,o=n[i],s=e[i],a=s&&ke(s)?"element":null==(r=s)?""+r:{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')})},Ae=function(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),n=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==n.display&&"hidden"!==e.visibility}return!1},Ce=function(){return function(){}},De=function(t){return t.offsetHeight},Se=function(){var t=window.jQuery;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},Te=function(t){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()},Fe="rtl"===document.documentElement.dir,Oe=(fe={},de=1,{set:function(t,e,n){void 0===t.bsKey&&(t.bsKey={key:e,id:de},de++),fe[t.bsKey.id]=n},get:function(t,e){if(!t||void 0===t.bsKey)return null;var n=t.bsKey;return n.key===e?fe[n.id]:null},delete:function(t,e){if(void 0!==t.bsKey){var n=t.bsKey;n.key===e&&(delete fe[n.id],delete t.bsKey)}}}),xe={setData:function(t,e,n){Oe.set(t,e,n)},getData:function(t,e){return Oe.get(t,e)},removeData:function(t,e){Oe.delete(t,e)}},Le=/[^.]*(?=\..*)\.|.*/,Be=/\..*/,Pe=/::\d+$/,Ie={},Me=1,je={mouseenter:"mouseover",mouseleave:"mouseout"},Ne=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"]);function Re(t,e){return e&&e+"::"+Me++||t.uidEvent||Me++}function Ve(t){var e=Re(t);return t.uidEvent=e,Ie[e]=Ie[e]||{},Ie[e]}function He(t,e,n){void 0===n&&(n=null);for(var i=Object.keys(t),r=0,o=i.length;r<o;r++){var s=t[i[r]];if(s.originalHandler===e&&s.delegationSelector===n)return s}return null}function ze(t,e,n){var i="string"==typeof e,r=i?n:e,o=t.replace(Be,""),s=je[o];return s&&(o=s),Ne.has(o)||(o=t),[i,r,o]}function We(t,e,n,i,r){if("string"==typeof e&&t){n||(n=i,i=null);var o=ze(e,n,i),s=o[0],a=o[1],u=o[2],l=Ve(t),c=l[u]||(l[u]={}),h=He(c,a,s?n:null);if(h)h.oneOff=h.oneOff&&r;else{var f=Re(a,e.replace(Le,"")),d=s?function(t,e,n){return function i(r){for(var o=t.querySelectorAll(e),s=r.target;s&&s!==this;s=s.parentNode)for(var a=o.length;a--;)if(o[a]===s)return r.delegateTarget=s,i.oneOff&&Ye.off(t,r.type,n),n.apply(s,[r]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&Ye.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=s?n:null,d.originalHandler=a,d.oneOff=r,d.uidEvent=f,c[f]=d,t.addEventListener(u,d,s)}}}function Ue(t,e,n,i,r){var o=He(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}var Ye={on:function(t,e,n,i){We(t,e,n,i,!1)},one:function(t,e,n,i){We(t,e,n,i,!0)},off:function(t,e,n,i){if("string"==typeof e&&t){var r=ze(e,n,i),o=r[0],s=r[1],a=r[2],u=a!==e,l=Ve(t),c=e.startsWith(".");if(void 0===s){c&&Object.keys(l).forEach(function(n){!function(t,e,n,i){var r=e[n]||{};Object.keys(r).forEach(function(o){if(o.includes(i)){var s=r[o];Ue(t,e,n,s.originalHandler,s.delegationSelector)}})}(t,l,n,e.slice(1))});var h=l[a]||{};Object.keys(h).forEach(function(n){var i=n.replace(Pe,"");if(!u||e.includes(i)){var r=h[n];Ue(t,l,a,r.originalHandler,r.delegationSelector)}})}else{if(!l||!l[a])return;Ue(t,l,a,s,o?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||!t)return null;var i,r=Se(),o=e.replace(Be,""),s=e!==o,a=Ne.has(o),u=!0,l=!0,c=!1,h=null;return s&&r&&(i=r.Event(e,n),r(t).trigger(i),u=!i.isPropagationStopped(),l=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented()),a?(h=document.createEvent("HTMLEvents")).initEvent(o,u,!0):h=new CustomEvent(e,{bubbles:u,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(function(t){Object.defineProperty(h,t,{get:function(){return n[t]}})}),c&&h.preventDefault(),l&&t.dispatchEvent(h),h.defaultPrevented&&void 0!==i&&i.preventDefault(),h}},Ke=function(){function t(t){t&&(this._element=t,xe.setData(t,this.constructor.DATA_KEY,this))}return t.prototype.dispose=function(){xe.removeData(this._element,this.constructor.DATA_KEY),this._element=null},t.getInstance=function(t){return xe.getData(t,this.DATA_KEY)},le(t,null,[{key:"VERSION",get:function(){return"5.0.0-beta1"}}]),t}(),qe=function(t){function e(){return t.apply(this,arguments)||this}he(e,t);var n=e.prototype;return n.close=function(t){var e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)},n._getRootElement=function(t){return _e(t)||t.closest(".alert")},n._triggerCloseEvent=function(t){return Ye.trigger(t,"close.bs.alert")},n._removeElement=function(t){var e=this;if(t.classList.remove("show"),t.classList.contains("fade")){var n=ye(t);Ye.one(t,pe,function(){return e._destroyElement(t)}),Ee(t,n)}else this._destroyElement(t)},n._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),Ye.trigger(t,"closed.bs.alert")},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.alert");n||(n=new e(this)),"close"===t&&n[t](this)})},e.handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},le(e,null,[{key:"DATA_KEY",get:function(){return"bs.alert"}}]),e}(Ke);Ye.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',qe.handleDismiss(new qe)),Te(function(){var t=Se();if(t){var e=t.fn.alert;t.fn.alert=qe.jQueryInterface,t.fn.alert.Constructor=qe,t.fn.alert.noConflict=function(){return t.fn.alert=e,qe.jQueryInterface}}});var Qe=function(t){function e(){return t.apply(this,arguments)||this}return he(e,t),e.prototype.toggle=function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.button");n||(n=new e(this)),"toggle"===t&&n[t]()})},le(e,null,[{key:"DATA_KEY",get:function(){return"bs.button"}}]),e}(Ke);function Xe(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function Ge(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}Ye.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',function(t){t.preventDefault();var e=t.target.closest('[data-bs-toggle="button"]'),n=xe.getData(e,"bs.button");n||(n=new Qe(e)),n.toggle()}),Te(function(){var t=Se();if(t){var e=t.fn.button;t.fn.button=Qe.jQueryInterface,t.fn.button.Constructor=Qe,t.fn.button.noConflict=function(){return t.fn.button=e,Qe.jQueryInterface}}});var Ze={setDataAttribute:function(t,e,n){t.setAttribute("data-bs-"+Ge(e),n)},removeDataAttribute:function(t,e){t.removeAttribute("data-bs-"+Ge(e))},getDataAttributes:function(t){if(!t)return{};var e={};return Object.keys(t.dataset).filter(function(t){return t.startsWith("bs")}).forEach(function(n){var i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Xe(t.dataset[n])}),e},getDataAttribute:function(t,e){return Xe(t.getAttribute("data-bs-"+Ge(e)))},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:function(t){return{top:t.offsetTop,left:t.offsetLeft}}},$e={matches:function(t,e){return t.matches(e)},find:function(t,e){var n;return void 0===e&&(e=document.documentElement),(n=[]).concat.apply(n,Element.prototype.querySelectorAll.call(e,t))},findOne:function(t,e){return void 0===e&&(e=document.documentElement),Element.prototype.querySelector.call(e,t)},children:function(t,e){var n,i=(n=[]).concat.apply(n,t.children);return i.filter(function(t){return t.matches(e)})},parents:function(t,e){for(var n=[],i=t.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)this.matches(i,e)&&n.push(i),i=i.parentNode;return n},prev:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next:function(t,e){for(var n=t.nextElementSibling;n;){if(this.matches(n,e))return[n];n=n.nextElementSibling}return[]}},Je="carousel",tn=".bs.carousel",en={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},nn={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},rn=".carousel-indicators",on={TOUCH:"touch",PEN:"pen"},sn=function(t){function e(e,n){var i;return(i=t.call(this,e)||this)._items=null,i._interval=null,i._activeElement=null,i._isPaused=!1,i._isSliding=!1,i.touchTimeout=null,i.touchStartX=0,i.touchDeltaX=0,i._config=i._getConfig(n),i._indicatorsElement=$e.findOne(rn,i._element),i._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,i._pointerEvent=Boolean(window.PointerEvent),i._addEventListeners(),i}he(e,t);var n=e.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&Ae(this._element)&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),$e.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(be(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var e=this;this._activeElement=$e.findOne(".active.carousel-item",this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)Ye.one(this._element,"slid.bs.carousel",function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},n.dispose=function(){t.prototype.dispose.call(this),Ye.off(this._element,tn),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=ce({},en,t),we(Je,t,nn),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&Ye.on(this._element,"keydown.bs.carousel",function(e){return t._keydown(e)}),"hover"===this._config.pause&&(Ye.on(this._element,"mouseenter.bs.carousel",function(e){return t.pause(e)}),Ye.on(this._element,"mouseleave.bs.carousel",function(e){return t.cycle(e)})),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&on[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},n=function(e){t._pointerEvent&&on[e.pointerType.toUpperCase()]&&(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};$e.find(".carousel-item img",this._element).forEach(function(t){Ye.on(t,"dragstart.bs.carousel",function(t){return t.preventDefault()})}),this._pointerEvent?(Ye.on(this._element,"pointerdown.bs.carousel",function(t){return e(t)}),Ye.on(this._element,"pointerup.bs.carousel",function(t){return n(t)}),this._element.classList.add("pointer-event")):(Ye.on(this._element,"touchstart.bs.carousel",function(t){return e(t)}),Ye.on(this._element,"touchmove.bs.carousel",function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)}),Ye.on(this._element,"touchend.bs.carousel",function(t){return n(t)}))},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.key){case"ArrowLeft":t.preventDefault(),this.prev();break;case"ArrowRight":t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?$e.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},n._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex($e.findOne(".active.carousel-item",this._element));return Ye.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=$e.find(".active",this._indicatorsElement),n=0;n<e.length;n++)e[n].classList.remove("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&i.classList.add("active")}},n._updateInterval=function(){var t=this._activeElement||$e.findOne(".active.carousel-item",this._element);if(t){var e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},n._slide=function(t,e){var n,i,r,o=this,s=$e.findOne(".active.carousel-item",this._element),a=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),l=this._getItemIndex(u),c=Boolean(this._interval);if("next"===t?(n="carousel-item-start",i="carousel-item-next",r="left"):(n="carousel-item-end",i="carousel-item-prev",r="right"),u&&u.classList.contains("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).defaultPrevented&&s&&u){if(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u,this._element.classList.contains("slide")){u.classList.add(i),De(u),s.classList.add(n),u.classList.add(n);var h=ye(s);Ye.one(s,pe,function(){u.classList.remove(n,i),u.classList.add("active"),s.classList.remove("active",i,n),o._isSliding=!1,setTimeout(function(){Ye.trigger(o._element,"slid.bs.carousel",{relatedTarget:u,direction:r,from:a,to:l})},0)}),Ee(s,h)}else s.classList.remove("active"),u.classList.add("active"),this._isSliding=!1,Ye.trigger(this._element,"slid.bs.carousel",{relatedTarget:u,direction:r,from:a,to:l});c&&this.cycle()}},e.carouselInterface=function(t,n){var i=xe.getData(t,"bs.carousel"),r=ce({},en,Ze.getDataAttributes(t));"object"==typeof n&&(r=ce({},r,n));var o="string"==typeof n?n:r.slide;if(i||(i=new e(t,r)),"number"==typeof n)i.to(n);else if("string"==typeof o){if(void 0===i[o])throw new TypeError('No method named "'+o+'"');i[o]()}else r.interval&&r.ride&&(i.pause(),i.cycle())},e.jQueryInterface=function(t){return this.each(function(){e.carouselInterface(this,t)})},e.dataApiClickHandler=function(t){var n=_e(this);if(n&&n.classList.contains("carousel")){var i=ce({},Ze.getDataAttributes(n),Ze.getDataAttributes(this)),r=this.getAttribute("data-bs-slide-to");r&&(i.interval=!1),e.carouselInterface(n,i),r&&xe.getData(n,"bs.carousel").to(r),t.preventDefault()}},le(e,null,[{key:"Default",get:function(){return en}},{key:"DATA_KEY",get:function(){return"bs.carousel"}}]),e}(Ke);Ye.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",sn.dataApiClickHandler),Ye.on(window,"load.bs.carousel.data-api",function(){for(var t=$e.find('[data-bs-ride="carousel"]'),e=0,n=t.length;e<n;e++)sn.carouselInterface(t[e],xe.getData(t[e],"bs.carousel"))}),Te(function(){var t=Se();if(t){var e=t.fn[Je];t.fn[Je]=sn.jQueryInterface,t.fn[Je].Constructor=sn,t.fn[Je].noConflict=function(){return t.fn[Je]=e,sn.jQueryInterface}}});var an="collapse",un={toggle:!0,parent:""},ln={toggle:"boolean",parent:"(string|element)"},cn='[data-bs-toggle="collapse"]',hn=function(t){function e(e,n){var i;(i=t.call(this,e)||this)._isTransitioning=!1,i._config=i._getConfig(n),i._triggerArray=$e.find(cn+'[href="#'+e.id+'"],'+cn+'[data-bs-target="#'+e.id+'"]');for(var r=$e.find(cn),o=0,s=r.length;o<s;o++){var a=r[o],u=me(a),l=$e.find(u).filter(function(t){return t===e});null!==u&&l.length&&(i._selector=u,i._triggerArray.push(a))}return i._parent=i._config.parent?i._getParent():null,i._config.parent||i._addAriaAndCollapsedClass(i._element,i._triggerArray),i._config.toggle&&i.toggle(),i}he(e,t);var n=e.prototype;return n.toggle=function(){this._element.classList.contains("show")?this.hide():this.show()},n.show=function(){var t=this;if(!this._isTransitioning&&!this._element.classList.contains("show")){var n,i;this._parent&&0===(n=$e.find(".show, .collapsing",this._parent).filter(function(e){return"string"==typeof t._config.parent?e.getAttribute("data-bs-parent")===t._config.parent:e.classList.contains("collapse")})).length&&(n=null);var r=$e.findOne(this._selector);if(n){var o=n.find(function(t){return r!==t});if((i=o?xe.getData(o,"bs.collapse"):null)&&i._isTransitioning)return}if(!Ye.trigger(this._element,"show.bs.collapse").defaultPrevented){n&&n.forEach(function(t){r!==t&&e.collapseInterface(t,"hide"),i||xe.setData(t,"bs.collapse",null)});var s=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(function(t){t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),u=ye(this._element);Ye.one(this._element,pe,function(){t._element.classList.remove("collapsing"),t._element.classList.add("collapse","show"),t._element.style[s]="",t.setTransitioning(!1),Ye.trigger(t._element,"shown.bs.collapse")}),Ee(this._element,u),this._element.style[s]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&this._element.classList.contains("show")&&!Ye.trigger(this._element,"hide.bs.collapse").defaultPrevented){var e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",De(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");var n=this._triggerArray.length;if(n>0)for(var i=0;i<n;i++){var r=this._triggerArray[i],o=_e(r);o&&!o.classList.contains("show")&&(r.classList.add("collapsed"),r.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[e]="";var s=ye(this._element);Ye.one(this._element,pe,function(){t.setTransitioning(!1),t._element.classList.remove("collapsing"),t._element.classList.add("collapse"),Ye.trigger(t._element,"hidden.bs.collapse")}),Ee(this._element,s)}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){t.prototype.dispose.call(this),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return(t=ce({},un,t)).toggle=Boolean(t.toggle),we(an,t,ln),t},n._getDimension=function(){return this._element.classList.contains("width")?"width":"height"},n._getParent=function(){var t=this,e=this._config.parent;ke(e)?void 0===e.jquery&&void 0===e[0]||(e=e[0]):e=$e.findOne(e);var n=cn+'[data-bs-parent="'+e+'"]';return $e.find(n,e).forEach(function(e){var n=_e(e);t._addAriaAndCollapsedClass(n,[e])}),e},n._addAriaAndCollapsedClass=function(t,e){if(t&&e.length){var n=t.classList.contains("show");e.forEach(function(t){n?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",n)})}},e.collapseInterface=function(t,n){var i=xe.getData(t,"bs.collapse"),r=ce({},un,Ze.getDataAttributes(t),"object"==typeof n&&n?n:{});if(!i&&r.toggle&&"string"==typeof n&&/show|hide/.test(n)&&(r.toggle=!1),i||(i=new e(t,r)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},e.jQueryInterface=function(t){return this.each(function(){e.collapseInterface(this,t)})},le(e,null,[{key:"Default",get:function(){return un}},{key:"DATA_KEY",get:function(){return"bs.collapse"}}]),e}(Ke);Ye.on(document,"click.bs.collapse.data-api",cn,function(t){"A"===t.target.tagName&&t.preventDefault();var e=Ze.getDataAttributes(this),n=me(this);$e.find(n).forEach(function(t){var n,i=xe.getData(t,"bs.collapse");i?(null===i._parent&&"string"==typeof e.parent&&(i._config.parent=e.parent,i._parent=i._getParent()),n="toggle"):n=e,hn.collapseInterface(t,n)})}),Te(function(){var t=Se();if(t){var e=t.fn[an];t.fn[an]=hn.jQueryInterface,t.fn[an].Constructor=hn,t.fn[an].noConflict=function(){return t.fn[an]=e,hn.jQueryInterface}}});var fn="dropdown",dn=new RegExp("ArrowUp|ArrowDown|Escape"),pn=Fe?"top-end":"top-start",gn=Fe?"top-start":"top-end",vn=Fe?"bottom-end":"bottom-start",mn=Fe?"bottom-start":"bottom-end",_n=Fe?"left-start":"right-start",yn=Fe?"right-start":"left-start",bn={offset:0,flip:!0,boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null},kn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},En=function(t){function e(e,n){var i;return(i=t.call(this,e)||this)._popper=null,i._config=i._getConfig(n),i._menu=i._getMenuElement(),i._inNavbar=i._detectNavbar(),i._addEventListeners(),i}he(e,t);var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!this._element.classList.contains("disabled")){var t=this._element.classList.contains("show");e.clearMenus(),t||this.show()}},n.show=function(){if(!(this._element.disabled||this._element.classList.contains("disabled")||this._menu.classList.contains("show"))){var t=e.getParentFromElement(this._element),n={relatedTarget:this._element};if(!Ye.trigger(this._element,"show.bs.dropdown",n).defaultPrevented){if(!this._inNavbar){if(void 0===ae)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var i=this._element;"parent"===this._config.reference?i=t:ke(this._config.reference)&&(i=this._config.reference,void 0!==this._config.reference.jquery&&(i=this._config.reference[0])),this._popper=se(i,this._menu,this._getPopperConfig())}var r;if("ontouchstart"in document.documentElement&&!t.closest(".navbar-nav"))(r=[]).concat.apply(r,document.body.children).forEach(function(t){return Ye.on(t,"mouseover",null,function(){})});this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),Ye.trigger(t,"shown.bs.dropdown",n)}}},n.hide=function(){if(!this._element.disabled&&!this._element.classList.contains("disabled")&&this._menu.classList.contains("show")){var t=e.getParentFromElement(this._element),n={relatedTarget:this._element};Ye.trigger(t,"hide.bs.dropdown",n).defaultPrevented||(this._popper&&this._popper.destroy(),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),Ye.trigger(t,"hidden.bs.dropdown",n))}},n.dispose=function(){t.prototype.dispose.call(this),Ye.off(this._element,".bs.dropdown"),this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()},n._addEventListeners=function(){var t=this;Ye.on(this._element,"click.bs.dropdown",function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},n._getConfig=function(t){return t=ce({},this.constructor.Default,Ze.getDataAttributes(this._element),t),we(fn,t,this.constructor.DefaultType),t},n._getMenuElement=function(){return $e.next(this._element,".dropdown-menu")[0]},n._getPlacement=function(){var t=this._element.parentNode;if(t.classList.contains("dropend"))return _n;if(t.classList.contains("dropstart"))return yn;var e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?gn:pn:e?mn:vn},n._detectNavbar=function(){return null!==this._element.closest(".navbar")},n._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{altBoundary:this._config.flip,rootBoundary:this._config.boundary}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),ce({},t,this._config.popperConfig)},e.dropdownInterface=function(t,n){var i=xe.getData(t,"bs.dropdown");if(i||(i=new e(t,"object"==typeof n?n:null)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},e.jQueryInterface=function(t){return this.each(function(){e.dropdownInterface(this,t)})},e.clearMenus=function(t){if(!t||2!==t.button&&("keyup"!==t.type||"Tab"===t.key))for(var n=$e.find('[data-bs-toggle="dropdown"]'),i=0,r=n.length;i<r;i++){var o=e.getParentFromElement(n[i]),s=xe.getData(n[i],"bs.dropdown"),a={relatedTarget:n[i]};if(t&&"click"===t.type&&(a.clickEvent=t),s){var u=s._menu;if(n[i].classList.contains("show"))if(!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&"Tab"===t.key)&&u.contains(t.target)))if(!Ye.trigger(o,"hide.bs.dropdown",a).defaultPrevented){var l;if("ontouchstart"in document.documentElement)(l=[]).concat.apply(l,document.body.children).forEach(function(t){return Ye.off(t,"mouseover",null,function(){})});n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),u.classList.remove("show"),n[i].classList.remove("show"),Ye.trigger(o,"hidden.bs.dropdown",a)}}}},e.getParentFromElement=function(t){return _e(t)||t.parentNode},e.dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!("Space"===t.key||"Escape"!==t.key&&("ArrowDown"!==t.key&&"ArrowUp"!==t.key||t.target.closest(".dropdown-menu"))):dn.test(t.key))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.classList.contains("disabled"))){var n=e.getParentFromElement(this),i=this.classList.contains("show");if("Escape"===t.key)return(this.matches('[data-bs-toggle="dropdown"]')?this:$e.prev(this,'[data-bs-toggle="dropdown"]')[0]).focus(),void e.clearMenus();if(i&&"Space"!==t.key){var r=$e.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",n).filter(Ae);if(r.length){var o=r.indexOf(t.target);"ArrowUp"===t.key&&o>0&&o--,"ArrowDown"===t.key&&o<r.length-1&&o++,r[o=-1===o?0:o].focus()}}else e.clearMenus()}},le(e,null,[{key:"Default",get:function(){return bn}},{key:"DefaultType",get:function(){return kn}},{key:"DATA_KEY",get:function(){return"bs.dropdown"}}]),e}(Ke);Ye.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',En.dataApiKeydownHandler),Ye.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",En.dataApiKeydownHandler),Ye.on(document,"click.bs.dropdown.data-api",En.clearMenus),Ye.on(document,"keyup.bs.dropdown.data-api",En.clearMenus),Ye.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',function(t){t.preventDefault(),t.stopPropagation(),En.dropdownInterface(this,"toggle")}),Ye.on(document,"click.bs.dropdown.data-api",".dropdown form",function(t){return t.stopPropagation()}),Te(function(){var t=Se();if(t){var e=t.fn[fn];t.fn[fn]=En.jQueryInterface,t.fn[fn].Constructor=En,t.fn[fn].noConflict=function(){return t.fn[fn]=e,En.jQueryInterface}}});var wn={backdrop:!0,keyboard:!0,focus:!0},An={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Cn=".modal-dialog",Dn=function(t){function e(e,n){var i;return(i=t.call(this,e)||this)._config=i._getConfig(n),i._dialog=$e.findOne(Cn,e),i._backdrop=null,i._isShown=!1,i._isBodyOverflowing=!1,i._ignoreBackdropClick=!1,i._isTransitioning=!1,i._scrollbarWidth=0,i}he(e,t);var n=e.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){this._element.classList.contains("fade")&&(this._isTransitioning=!0);var n=Ye.trigger(this._element,"show.bs.modal",{relatedTarget:t});this._isShown||n.defaultPrevented||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Ye.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',function(t){return e.hide(t)}),Ye.on(this._dialog,"mousedown.dismiss.bs.modal",function(){Ye.one(e._element,"mouseup.dismiss.bs.modal",function(t){t.target===e._element&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},n.hide=function(t){var e=this;if((t&&t.preventDefault(),this._isShown&&!this._isTransitioning)&&!Ye.trigger(this._element,"hide.bs.modal").defaultPrevented){this._isShown=!1;var n=this._element.classList.contains("fade");if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Ye.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),Ye.off(this._element,"click.dismiss.bs.modal"),Ye.off(this._dialog,"mousedown.dismiss.bs.modal"),n){var i=ye(this._element);Ye.one(this._element,pe,function(t){return e._hideModal(t)}),Ee(this._element,i)}else this._hideModal()}},n.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return Ye.off(t,".bs.modal")}),t.prototype.dispose.call(this),Ye.off(document,"focusin.bs.modal"),this._config=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=ce({},wn,t),we("modal",t,An),t},n._showElement=function(t){var e=this,n=this._element.classList.contains("fade"),i=$e.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),n&&De(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus();var r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,Ye.trigger(e._element,"shown.bs.modal",{relatedTarget:t})};if(n){var o=ye(this._dialog);Ye.one(this._dialog,pe,r),Ee(this._dialog,o)}else r()},n._enforceFocus=function(){var t=this;Ye.off(document,"focusin.bs.modal"),Ye.on(document,"focusin.bs.modal",function(e){document===e.target||t._element===e.target||t._element.contains(e.target)||t._element.focus()})},n._setEscapeEvent=function(){var t=this;this._isShown?Ye.on(this._element,"keydown.dismiss.bs.modal",function(e){t._config.keyboard&&"Escape"===e.key?(e.preventDefault(),t.hide()):t._config.keyboard||"Escape"!==e.key||t._triggerBackdropTransition()}):Ye.off(this._element,"keydown.dismiss.bs.modal")},n._setResizeEvent=function(){var t=this;this._isShown?Ye.on(window,"resize.bs.modal",function(){return t._adjustDialog()}):Ye.off(window,"resize.bs.modal")},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){document.body.classList.remove("modal-open"),t._resetAdjustments(),t._resetScrollbar(),Ye.trigger(t._element,"hidden.bs.modal")})},n._removeBackdrop=function(){this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null},n._showBackdrop=function(t){var e=this,n=this._element.classList.contains("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),document.body.appendChild(this._backdrop),Ye.on(this._element,"click.dismiss.bs.modal",function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())}),n&&De(this._backdrop),this._backdrop.classList.add("show"),!n)return void t();var i=ye(this._backdrop);Ye.one(this._backdrop,pe,t),Ee(this._backdrop,i)}else if(!this._isShown&&this._backdrop){this._backdrop.classList.remove("show");var r=function(){e._removeBackdrop(),t()};if(this._element.classList.contains("fade")){var o=ye(this._backdrop);Ye.one(this._backdrop,pe,r),Ee(this._backdrop,o)}else r()}else t()},n._triggerBackdropTransition=function(){var t=this;if(!Ye.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){var e=this._element.scrollHeight>document.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=ye(this._dialog);Ye.off(this._element,pe),Ye.one(this._element,pe,function(){t._element.classList.remove("modal-static"),e||(Ye.one(t._element,pe,function(){t._element.style.overflowY=""}),Ee(t._element,n))}),Ee(this._element,n),this._element.focus()}},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&t&&!Fe||this._isBodyOverflowing&&!t&&Fe)&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),(this._isBodyOverflowing&&!t&&!Fe||!this._isBodyOverflowing&&t&&Fe)&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){$e.find(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top").forEach(function(e){var n=e.style.paddingRight,i=window.getComputedStyle(e)["padding-right"];Ze.setDataAttribute(e,"padding-right",n),e.style.paddingRight=Number.parseFloat(i)+t._scrollbarWidth+"px"}),$e.find(".sticky-top").forEach(function(e){var n=e.style.marginRight,i=window.getComputedStyle(e)["margin-right"];Ze.setDataAttribute(e,"margin-right",n),e.style.marginRight=Number.parseFloat(i)-t._scrollbarWidth+"px"});var e=document.body.style.paddingRight,n=window.getComputedStyle(document.body)["padding-right"];Ze.setDataAttribute(document.body,"padding-right",e),document.body.style.paddingRight=Number.parseFloat(n)+this._scrollbarWidth+"px"}document.body.classList.add("modal-open")},n._resetScrollbar=function(){$e.find(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top").forEach(function(t){var e=Ze.getDataAttribute(t,"padding-right");void 0!==e&&(Ze.removeDataAttribute(t,"padding-right"),t.style.paddingRight=e)}),$e.find(".sticky-top").forEach(function(t){var e=Ze.getDataAttribute(t,"margin-right");void 0!==e&&(Ze.removeDataAttribute(t,"margin-right"),t.style.marginRight=e)});var t=Ze.getDataAttribute(document.body,"padding-right");void 0===t?document.body.style.paddingRight="":(Ze.removeDataAttribute(document.body,"padding-right"),document.body.style.paddingRight=t)},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},e.jQueryInterface=function(t,n){return this.each(function(){var i=xe.getData(this,"bs.modal"),r=ce({},wn,Ze.getDataAttributes(this),"object"==typeof t&&t?t:{});if(i||(i=new e(this,r)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](n)}})},le(e,null,[{key:"Default",get:function(){return wn}},{key:"DATA_KEY",get:function(){return"bs.modal"}}]),e}(Ke);Ye.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){var e=this,n=_e(this);"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault(),Ye.one(n,"show.bs.modal",function(t){t.defaultPrevented||Ye.one(n,"hidden.bs.modal",function(){Ae(e)&&e.focus()})});var i=xe.getData(n,"bs.modal");if(!i){var r=ce({},Ze.getDataAttributes(n),Ze.getDataAttributes(this));i=new Dn(n,r)}i.show(this)}),Te(function(){var t=Se();if(t){var e=t.fn.modal;t.fn.modal=Dn.jQueryInterface,t.fn.modal.Constructor=Dn,t.fn.modal.noConflict=function(){return t.fn.modal=e,Dn.jQueryInterface}}});var Sn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Fn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,On=function(t,e){var n=t.nodeName.toLowerCase();if(e.includes(n))return!Sn.has(n)||Boolean(t.nodeValue.match(Tn)||t.nodeValue.match(Fn));for(var i=e.filter(function(t){return t instanceof RegExp}),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return!0;return!1},xn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Ln(t,e,n){var i;if(!t.length)return t;if(n&&"function"==typeof n)return n(t);for(var r=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=(i=[]).concat.apply(i,r.body.querySelectorAll("*")),a=function(t,n){var i,r=s[t],a=r.nodeName.toLowerCase();if(!o.includes(a))return r.parentNode.removeChild(r),"continue";var u=(i=[]).concat.apply(i,r.attributes),l=[].concat(e["*"]||[],e[a]||[]);u.forEach(function(t){On(t,l)||r.removeAttribute(t.nodeName)})},u=0,l=s.length;u<l;u++)a(u);return r.body.innerHTML}var Bn="tooltip",Pn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),In=new Set(["sanitize","allowList","sanitizeFn"]),Mn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",container:"(string|element|boolean)",fallbackPlacements:"(null|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object)"},jn={AUTO:"auto",TOP:"top",RIGHT:Fe?"left":"right",BOTTOM:"bottom",LEFT:Fe?"right":"left"},Nn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",container:!1,fallbackPlacements:null,boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:xn,popperConfig:null},Rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Vn=function(t){function e(e,n){var i;if(void 0===ae)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=t.call(this,e)||this)._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i.config=i._getConfig(n),i.tip=null,i._setListeners(),i}he(e,t);var n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=xe.getData(t.delegateTarget,e);n||(n=new this.constructor(t.delegateTarget,this._getDelegateConfig()),xe.setData(t.delegateTarget,e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),Ye.off(this._element,this.constructor.EVENT_KEY),Ye.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,t.prototype.dispose.call(this)},n.show=function(){var t=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=Ye.trigger(this._element,this.constructor.Event.SHOW),n=function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}return e instanceof ShadowRoot?e:e.parentNode?t(e.parentNode):null}(this._element),i=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(e.defaultPrevented||!i)return;var r=this.getTipElement(),o=ge(this.constructor.NAME);r.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&r.classList.add("fade");var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this._element):this.config.placement,a=this._getAttachment(s);this._addAttachmentClass(a);var u=this._getContainer();xe.setData(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||u.appendChild(r),Ye.trigger(this._element,this.constructor.Event.INSERTED),this._popper=se(this._element,r,this._getPopperConfig(a)),r.classList.add("show");var l,c,h="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;if(h)(l=r.classList).add.apply(l,h.split(" "));if("ontouchstart"in document.documentElement)(c=[]).concat.apply(c,document.body.children).forEach(function(t){Ye.on(t,"mouseover",function(){})});var f=function(){var e=t._hoverState;t._hoverState=null,Ye.trigger(t._element,t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(this.tip.classList.contains("fade")){var d=ye(this.tip);Ye.one(this.tip,pe,f),Ee(this.tip,d)}else f()}},n.hide=function(){var t=this;if(this._popper){var e=this.getTipElement(),n=function(){"show"!==t._hoverState&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t._element.removeAttribute("aria-describedby"),Ye.trigger(t._element,t.constructor.Event.HIDDEN),t._popper&&(t._popper.destroy(),t._popper=null)};if(!Ye.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var i;if(e.classList.remove("show"),"ontouchstart"in document.documentElement)(i=[]).concat.apply(i,document.body.children).forEach(function(t){return Ye.off(t,"mouseover",Ce)});if(this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){var r=ye(e);Ye.one(e,pe,n),Ee(e,r)}else n();this._hoverState=""}}},n.update=function(){null!==this._popper&&this._popper.update()},n.isWithContent=function(){return Boolean(this.getTitle())},n.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent($e.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")},n.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&ke(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=Ln(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},n.getTitle=function(){var t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t},n.updateAttachment=function(t){return"right"===t?"end":"left"===t?"start":t},n._getPopperConfig=function(t){var e=this,n={name:"flip",options:{altBoundary:!0}};return this.config.fallbackPlacements&&(n.options.fallbackPlacements=this.config.fallbackPlacements),ce({},{placement:t,modifiers:[n,{name:"preventOverflow",options:{rootBoundary:this.config.boundary}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(t){return e._handlePopperPlacementChange(t)}}],onFirstUpdate:function(t){t.options.placement!==t.placement&&e._handlePopperPlacementChange(t)}},this.config.popperConfig)},n._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))},n._getContainer=function(){return!1===this.config.container?document.body:ke(this.config.container)?this.config.container:$e.findOne(this.config.container)},n._getAttachment=function(t){return jn[t.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)Ye.on(t._element,t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;Ye.on(t._element,n,t.config.selector,function(e){return t._enter(e)}),Ye.on(t._element,i,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t._element&&t.hide()},Ye.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=ce({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||xe.getData(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),xe.setData(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){"show"===e._hoverState&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||xe.getData(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),xe.setData(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){var e=Ze.getDataAttributes(this._element);return Object.keys(e).forEach(function(t){In.has(t)&&delete e[t]}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=ce({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),we(Bn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ln(t.template,t.allowList,t.sanitizeFn)),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(Pn);null!==e&&e.length>0&&e.map(function(t){return t.trim()}).forEach(function(e){return t.classList.remove(e)})},n._handlePopperPlacementChange=function(t){var e=t.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.tooltip"),i="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},le(e,null,[{key:"Default",get:function(){return Nn}},{key:"NAME",get:function(){return Bn}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Rn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Mn}}]),e}(Ke);Te(function(){var t=Se();if(t){var e=t.fn.tooltip;t.fn.tooltip=Vn.jQueryInterface,t.fn.tooltip.Constructor=Vn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=e,Vn.jQueryInterface}}});var Hn="popover",zn=new RegExp("(^|\\s)bs-popover\\S+","g"),Wn=ce({},Vn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Un=ce({},Vn.DefaultType,{content:"(string|element|function)"}),Yn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Kn=function(t){function e(){return t.apply(this,arguments)||this}he(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.setContent=function(){var t=this.getTipElement();this.setElementContent($e.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent($e.findOne(".popover-body",t),e),t.classList.remove("fade","show")},n._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))},n._getContent=function(){return this._element.getAttribute("data-bs-content")||this.config.content},n._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(zn);null!==e&&e.length>0&&e.map(function(t){return t.trim()}).forEach(function(e){return t.classList.remove(e)})},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),xe.setData(this,"bs.popover",n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},le(e,null,[{key:"Default",get:function(){return Wn}},{key:"NAME",get:function(){return Hn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Yn}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Un}}]),e}(Vn);Te(function(){var t=Se();if(t){var e=t.fn.popover;t.fn.popover=Kn.jQueryInterface,t.fn.popover.Constructor=Kn,t.fn.popover.noConflict=function(){return t.fn.popover=e,Kn.jQueryInterface}}});var qn="scrollspy",Qn={offset:10,method:"auto",target:""},Xn={offset:"number",method:"string",target:"(string|element)"},Gn="scroll.bs.scrollspy",Zn="dropdown-item",$n=".nav-link",Jn=".list-group-item",ti=function(t){function e(e,n){var i;return(i=t.call(this,e)||this)._scrollElement="BODY"===e.tagName?window:e,i._config=i._getConfig(n),i._selector=i._config.target+" "+$n+", "+i._config.target+" "+Jn+", "+i._config.target+" ."+Zn,i._offsets=[],i._targets=[],i._activeTarget=null,i._scrollHeight=0,Ye.on(i._scrollElement,Gn,function(t){return i._process(t)}),i.refresh(),i._process(),i}he(e,t);var n=e.prototype;return n.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),$e.find(this._selector).map(function(t){var e=me(t),r=e?$e.findOne(e):null;if(r){var o=r.getBoundingClientRect();if(o.width||o.height)return[Ze[n](r).top+i,e]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},n.dispose=function(){t.prototype.dispose.call(this),Ye.off(this._scrollElement,".bs.scrollspy"),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=ce({},Qn,"object"==typeof t&&t?t:{})).target&&ke(t.target)){var e=t.target.id;e||(e=ge(qn),t.target.id=e),t.target="#"+e}return we(qn,t,Xn),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},n._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-bs-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=$e.findOne(e.join(","));n.classList.contains(Zn)?($e.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add("active"),n.classList.add("active")):(n.classList.add("active"),$e.parents(n,".nav, .list-group").forEach(function(t){$e.prev(t,$n+", "+Jn).forEach(function(t){return t.classList.add("active")}),$e.prev(t,".nav-item").forEach(function(t){$e.children(t,$n).forEach(function(t){return t.classList.add("active")})})})),Ye.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})},n._clear=function(){$e.find(this._selector).filter(function(t){return t.classList.contains("active")}).forEach(function(t){return t.classList.remove("active")})},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.scrollspy");if(n||(n=new e(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},le(e,null,[{key:"Default",get:function(){return Qn}},{key:"DATA_KEY",get:function(){return"bs.scrollspy"}}]),e}(Ke);Ye.on(window,"load.bs.scrollspy.data-api",function(){$e.find('[data-bs-spy="scroll"]').forEach(function(t){return new ti(t,Ze.getDataAttributes(t))})}),Te(function(){var t=Se();if(t){var e=t.fn[qn];t.fn[qn]=ti.jQueryInterface,t.fn[qn].Constructor=ti,t.fn[qn].noConflict=function(){return t.fn[qn]=e,ti.jQueryInterface}}});var ei=function(t){function e(){return t.apply(this,arguments)||this}he(e,t);var n=e.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active")||this._element.classList.contains("disabled"))){var e,n=_e(this._element),i=this._element.closest(".nav, .list-group");if(i){var r="UL"===i.nodeName||"OL"===i.nodeName?":scope > li > .active":".active";e=(e=$e.find(r,i))[e.length-1]}var o=null;if(e&&(o=Ye.trigger(e,"hide.bs.tab",{relatedTarget:this._element})),!(Ye.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==o&&o.defaultPrevented)){this._activate(this._element,i);var s=function(){Ye.trigger(e,"hidden.bs.tab",{relatedTarget:t._element}),Ye.trigger(t._element,"shown.bs.tab",{relatedTarget:e})};n?this._activate(n,n.parentNode,s):s()}}},n._activate=function(t,e,n){var i=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?$e.children(e,".active"):$e.find(":scope > li > .active",e))[0],o=n&&r&&r.classList.contains("fade"),s=function(){return i._transitionComplete(t,r,n)};if(r&&o){var a=ye(r);r.classList.remove("show"),Ye.one(r,pe,s),Ee(r,a)}else s()},n._transitionComplete=function(t,e,n){if(e){e.classList.remove("active");var i=$e.findOne(":scope > .dropdown-menu .active",e.parentNode);i&&i.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}(t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),De(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu"))&&(t.closest(".dropdown")&&$e.find(".dropdown-toggle").forEach(function(t){return t.classList.add("active")}),t.setAttribute("aria-expanded",!0));n&&n()},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.tab")||new e(this);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},le(e,null,[{key:"DATA_KEY",get:function(){return"bs.tab"}}]),e}(Ke);Ye.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){t.preventDefault(),(xe.getData(this,"bs.tab")||new ei(this)).show()}),Te(function(){var t=Se();if(t){var e=t.fn.tab;t.fn.tab=ei.jQueryInterface,t.fn.tab.Constructor=ei,t.fn.tab.noConflict=function(){return t.fn.tab=e,ei.jQueryInterface}}});var ni={animation:"boolean",autohide:"boolean",delay:"number"},ii={animation:!0,autohide:!0,delay:5e3},ri=function(t){function e(e,n){var i;return(i=t.call(this,e)||this)._config=i._getConfig(n),i._timeout=null,i._setListeners(),i}he(e,t);var n=e.prototype;return n.show=function(){var t=this;if(!Ye.trigger(this._element,"show.bs.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),Ye.trigger(t._element,"shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove("hide"),De(this._element),this._element.classList.add("showing"),this._config.animation){var n=ye(this._element);Ye.one(this._element,pe,e),Ee(this._element,n)}else e()}},n.hide=function(){var t=this;if(this._element.classList.contains("show")&&!Ye.trigger(this._element,"hide.bs.toast").defaultPrevented){var e=function(){t._element.classList.add("hide"),Ye.trigger(t._element,"hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=ye(this._element);Ye.one(this._element,pe,e),Ee(this._element,n)}else e()}},n.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),Ye.off(this._element,"click.dismiss.bs.toast"),t.prototype.dispose.call(this),this._config=null},n._getConfig=function(t){return t=ce({},ii,Ze.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),we("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;Ye.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',function(){return t.hide()})},n._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e.jQueryInterface=function(t){return this.each(function(){var n=xe.getData(this,"bs.toast");if(n||(n=new e(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](this)}})},le(e,null,[{key:"DefaultType",get:function(){return ni}},{key:"Default",get:function(){return ii}},{key:"DATA_KEY",get:function(){return"bs.toast"}}]),e}(Ke);Te(function(){var t=Se();if(t){var e=t.fn.toast;t.fn.toast=ri.jQueryInterface,t.fn.toast.Constructor=ri,t.fn.toast.noConflict=function(){return t.fn.toast=e,ri.jQueryInterface}}}),[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(t){return new En(t)});var oi=".dropdown, .dropup, .dropend, .dropstart",si=document.querySelectorAll(oi),ai=void 0;si.forEach(function(t){t.addEventListener("mousedown",function(t){t.stopPropagation(),t.target.dataset.bsToggle&&"dropdown"===t.target.dataset.bsToggle&&(ai=t.currentTarget)}),t.addEventListener("hide.bs.dropdown",function(e){e.stopPropagation();var n=ai?ai.parentElement.closest(oi):void 0;n&&n===t&&e.preventDefault(),ai=void 0})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new Vn(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new Kn(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]')).map(function(t){t.addEventListener("click",function(e){e.stopPropagation(),t.classList.toggle("active")})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]')).map(function(t){return new ri(t)})});
|
|
9
|
+
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";var t,e,n="function"==typeof Map?new Map:(t=[],e=[],{has:function(e){return t.indexOf(e)>-1},get:function(n){return e[t.indexOf(n)]},set:function(n,i){-1===t.indexOf(n)&&(t.push(n),e.push(i))},delete:function(n){var i=t.indexOf(n);i>-1&&(t.splice(i,1),e.splice(i,1))}}),i=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){i=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function s(t){var e=n.get(t);e&&e.destroy()}function r(t){var e=n.get(t);e&&e.update()}var o=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((o=function(t){return t}).destroy=function(t){return t},o.update=function(t){return t}):((o=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!n.has(t)){var e,s=null,r=null,o=null,a=function(){t.clientWidth!==r&&h()},u=function(e){window.removeEventListener("resize",a,!1),t.removeEventListener("input",h,!1),t.removeEventListener("keyup",h,!1),t.removeEventListener("autosize:destroy",u,!1),t.removeEventListener("autosize:update",h,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),n.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",u,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",h,!1),window.addEventListener("resize",a,!1),t.addEventListener("input",h,!1),t.addEventListener("autosize:update",h,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",n.set(t,{destroy:u,update:h}),"vertical"===(e=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),s="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(s)&&(s=0),h()}function l(e){var n=t.style.width;t.style.width="0px",t.style.width=n,t.style.overflowY=e}function c(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),n=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+s+"px",r=t.clientWidth,e.forEach(function(t){t.node.scrollTop=t.scrollTop}),n&&(document.documentElement.scrollTop=n)}}function h(){c();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),s="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(s<e?"hidden"===n.overflowY&&(l("scroll"),c(),s="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),c(),s="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),o!==s){o=s;var r=i("autosize:resized");try{t.dispatchEvent(r)}catch(t){}}}}(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],s),t},o.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],r),t});var a=o,u=document.querySelectorAll('[data-bs-toggle="autosize"]');function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){if(null==t)return{};var n,i,s=function(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function v(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var s=p(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return v(this,n)}}function y(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=y(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}}).apply(this,arguments)}function k(t,e,n,i){return(k="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,i){var s,r=y(t,e);if(r){if((s=Object.getOwnPropertyDescriptor(r,e)).set)return s.set.call(i,n),!0;if(!s.writable)return!1}if(s=Object.getOwnPropertyDescriptor(i,e)){if(!s.writable)return!1;s.value=n,Object.defineProperty(i,e,s)}else!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(i,e,n);return!0})(t,e,n,i)}function w(t,e,n,i,s){if(!k(t,e,n,i||t)&&s)throw new Error("failed to set property");return n}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,s,r=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);o=!0);}catch(t){a=!0,s=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw s}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}u.length&&u.forEach(function(t){a(t)});var C=function(){function t(e){c(this,t),Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}return d(t,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),t}();function T(t){return"string"==typeof t||t instanceof String}var x={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function F(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function S(t){return Array.isArray(t)?t:[t,new C]}var O=function(){function t(e,n,i,s){for(c(this,t),this.value=e,this.cursorPos=n,this.oldValue=i,this.oldSelection=s;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return d(t,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?x.NONE:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?x.LEFT:x.RIGHT}}]),t}(),D=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;c(this,t),this.value=e,this.from=n,this.stop=i}return d(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}},{key:"unshift",value:function(t){if(!this.value.length||null!=t&&this.from>=t)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"shift",value:function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}]),t}();function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new B.InputMask(t,e)}var I=function(){function t(e){c(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,e)),this.isInitialized=!0}return d(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"reset",value:function(){this._value=""}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return this.isComplete}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new D(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return T(t)&&(t=new D(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){return t?(this._value+=t,new C({inserted:t,rawInserted:t})):new C}},{key:"_appendChar",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,s=this.state,r=A(S(this.doPrepare(t,n)),2);if(t=r[0],(e=(e=r[1]).aggregate(this._appendCharRaw(t,n))).inserted){var o,a=!1!==this.doValidate(n);if(a&&null!=i){var u=this.state;!0===this.overwrite&&(o=i.state,i.unshift(this.value.length));var l=this.appendTail(i);(a=l.rawInserted===i.toString())&&l.inserted||"shift"!==this.overwrite||(this.state=u,o=i.state,i.shift(),a=(l=this.appendTail(i)).rawInserted===i.toString()),a&&l.inserted&&(this.state=u)}a||(e=new C,this.state=s,i&&o&&(i.state=o))}return e}},{key:"_appendPlaceholder",value:function(){return new C}},{key:"_appendEager",value:function(){return new C}},{key:"append",value:function(t,e,n){if(!T(t))throw new Error("value should be string");var i=new C,s=T(n)?new D(String(n)):n;e&&e.tail&&(e._beforeTailState=this.state);for(var r=0;r<t.length;++r)i.aggregate(this._appendChar(t[r],e,s));return null!=s&&(i.tailShift+=this.appendTail(s).tailShift),this.eager&&null!=e&&e.input&&t&&i.aggregate(this._appendEager()),i}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new C}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=e,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,i}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,n=t(this);return this.state=e,delete this._isolated,n}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,n,i){var s,r=t+e,o=this.extractTail(r);this.eager&&(i=function(t){switch(t){case x.LEFT:return x.FORCE_LEFT;case x.RIGHT:return x.FORCE_RIGHT;default:return t}}(i),s=this.extractInput(0,r,{raw:!0}));var a=this.nearestInputPos(t,e>1&&0!==t&&!this.eager?x.NONE:i),u=new C({tailShift:a-t}).aggregate(this.remove(a));if(this.eager&&i!==x.NONE&&s===this.rawInputValue)if(i===x.FORCE_LEFT)for(var l;s===this.rawInputValue&&(l=this.value.length);)u.aggregate(new C({tailShift:-1})).aggregate(this.remove(l-1));else i===x.FORCE_RIGHT&&o.unshift();return u.aggregate(this.append(n,{input:!0},o))}},{key:"maskEquals",value:function(t){return this.mask===t}}]),t}();function L(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?B.MaskedRegExp:T(t)?B.MaskedPattern:t instanceof Date||t===Date?B.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?B.MaskedNumber:Array.isArray(t)||t===Array?B.MaskedDynamic:B.Masked&&t.prototype instanceof B.Masked?t:t instanceof B.Masked?t.constructor:t instanceof Function?B.MaskedFunction:(console.warn("Mask not found for mask",t),B.Masked)}function M(t){if(B.Masked&&t instanceof B.Masked)return t;var e=(t=Object.assign({},t)).mask;if(B.Masked&&e instanceof B.Masked)return e;var n=L(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}I.DEFAULTS={format:function(t){return t},parse:function(t){return t}},B.Masked=I,B.createMask=M;var P=["mask"],N={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},R=function(){function t(e){c(this,t);var n=e.mask,i=m(e,P);this.masked=M({mask:n}),Object.assign(this,i)}return d(t,[{key:"reset",value:function(){this.isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new C}},{key:"value",get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new C;var n=this.masked.state,i=this.masked._appendChar(t,e);return i.inserted&&!1===this.doValidate(e)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||e.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=Boolean(i.inserted),i}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new C;return this.isFilled||this.isOptional?t:(this.isFilled=!0,t.inserted=this.placeholderChar,t)}},{key:"_appendEager",value:function(){return new C}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.NONE,n=this.value.length,i=Math.min(Math.max(t,0),n);switch(e){case x.LEFT:case x.FORCE_LEFT:return this.isComplete?i:0;case x.RIGHT:case x.FORCE_RIGHT:return this.isComplete?i:n;case x.NONE:default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"state",get:function(){return{masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked,this.isFilled=t.isFilled}}]),t}(),j=function(){function t(e){c(this,t),Object.assign(this,e),this._value="",this.isFixed=!0}return d(t,[{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new C}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.NONE,n=this._value.length;switch(e){case x.LEFT:case x.FORCE_LEFT:return 0;case x.NONE:case x.RIGHT:case x.FORCE_RIGHT:default:return n}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return Boolean(this._value)}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new C;if(this._value)return n;var i=this.char===t&&(this.isUnmasking||e.input||e.raw)&&!this.eager&&!e.tail;return i&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),n}},{key:"_appendEager",value:function(){return this._appendChar(this.char)}},{key:"_appendPlaceholder",value:function(){var t=new C;return this._value?t:(this._value=t.inserted=this.char,t)}},{key:"extractTail",value:function(){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,new D("")}},{key:"appendTail",value:function(t){return T(t)&&(t=new D(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var i=this._appendChar(t[0],e);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}},{key:"doCommit",value:function(){}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),V=["chunks"],H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.chunks=e,this.from=n}return d(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){T(e)&&(e=new D(String(e)));var n=this.chunks[this.chunks.length-1],i=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof D)i?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var s;e.chunks.length&&null==e.chunks[0].stop;)(s=e.chunks.shift()).from+=e.from,this.extend(s);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof B.MaskedPattern))return new D(this.toString()).appendTo(e);for(var n=new C,i=0;i<this.chunks.length&&!n.skip;++i){var s=this.chunks[i],r=e._mapPosToBlock(e.value.length),o=s.stop,a=void 0;if(null!=o&&(!r||r.index<=o)&&((s instanceof t||e._stops.indexOf(o)>=0)&&n.aggregate(e._appendPlaceholder(o)),a=s instanceof t&&e._blocks[o]),a){var u=a.appendTail(s);u.skip=!1,n.aggregate(u),e._value+=u.inserted;var l=s.toString().slice(u.rawInserted.length);l&&n.aggregate(e.append(l,{tail:!0}))}else n.aggregate(e.append(s.toString(),{tail:!0}))}return n}},{key:"state",get:function(){return{chunks:this.chunks.map(function(t){return t.state}),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var n=e.chunks,i=m(e,V);Object.assign(this,i),this.chunks=n.map(function(e){var n="chunks"in e?new t:new D;return n.state=e,n})}},{key:"unshift",value:function(t){if(!this.chunks.length||null!=t&&this.from>=t)return"";for(var e=null!=t?t-this.from:t,n=0;n<this.chunks.length;){var i=this.chunks[n],s=i.unshift(e);if(i.toString()){if(!s)break;++n}else this.chunks.splice(n,1);if(s)return s}return""}},{key:"shift",value:function(){if(!this.chunks.length)return"";for(var t=this.chunks.length-1;0<=t;){var e=this.chunks[t],n=e.shift();if(e.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}]),t}(),z=function(){function t(e,n){c(this,t),this.masked=e,this._log=[];var i=e._mapPosToBlock(n)||(n<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),s=i.offset,r=i.index;this.offset=s,this.index=r,this.ok=!1}return d(t,[{key:"block",get:function(){return this.masked._blocks[this.index]}},{key:"pos",get:function(){return this.masked._blockStartPos(this.index)+this.offset}},{key:"state",get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)}},{key:"pushState",value:function(){this._log.push(this.state)}},{key:"popState",value:function(){var t=this._log.pop();return this.state=t,t}},{key:"bindBlock",value:function(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}},{key:"_pushLeft",value:function(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(e=this.block)||void 0===e?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}},{key:"_pushRight",value:function(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}},{key:"pushLeftBeforeFilled",value:function(){var t=this;return this._pushLeft(function(){if(!t.block.isFixed&&t.block.value)return t.offset=t.block.nearestInputPos(t.offset,x.FORCE_LEFT),0!==t.offset||void 0})}},{key:"pushLeftBeforeInput",value:function(){var t=this;return this._pushLeft(function(){if(!t.block.isFixed)return t.offset=t.block.nearestInputPos(t.offset,x.LEFT),!0})}},{key:"pushLeftBeforeRequired",value:function(){var t=this;return this._pushLeft(function(){if(!(t.block.isFixed||t.block.isOptional&&!t.block.value))return t.offset=t.block.nearestInputPos(t.offset,x.LEFT),!0})}},{key:"pushRightBeforeFilled",value:function(){var t=this;return this._pushRight(function(){if(!t.block.isFixed&&t.block.value)return t.offset=t.block.nearestInputPos(t.offset,x.FORCE_RIGHT),t.offset!==t.block.value.length||void 0})}},{key:"pushRightBeforeInput",value:function(){var t=this;return this._pushRight(function(){if(!t.block.isFixed)return t.offset=t.block.nearestInputPos(t.offset,x.NONE),!0})}},{key:"pushRightBeforeRequired",value:function(){var t=this;return this._pushRight(function(){if(!(t.block.isFixed||t.block.isOptional&&!t.block.value))return t.offset=t.block.nearestInputPos(t.offset,x.NONE),!0})}}]),t}(),$=function(t){f(n,I);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_update",value:function(t){t.mask&&(t.validate=function(e){return e.search(t.mask)>=0}),b(p(n.prototype),"_update",this).call(this,t)}}]),n}();B.MaskedRegExp=$;var q=["_blocks"],W=function(t){f(n,I);var e=_(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),t.definitions=Object.assign({},N,t.definitions),e.call(this,Object.assign({},n.DEFAULTS,t))}return d(n,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),b(p(n.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var i=this.mask;if(i&&e)for(var s=!1,r=!1,o=0;o<i.length;++o){if(this.blocks)if("continue"===function(){var e=i.slice(o),n=Object.keys(t.blocks).filter(function(t){return 0===e.indexOf(t)});n.sort(function(t,e){return e.length-t.length});var s=n[0];if(s){var r=M(Object.assign({parent:t,lazy:t.lazy,eager:t.eager,placeholderChar:t.placeholderChar,overwrite:t.overwrite},t.blocks[s]));return r&&(t._blocks.push(r),t._maskedBlocks[s]||(t._maskedBlocks[s]=[]),t._maskedBlocks[s].push(t._blocks.length-1)),o+=s.length-1,"continue"}}())continue;var a=i[o],u=a in e;if(a!==n.STOP_CHAR)if("{"!==a&&"}"!==a)if("["!==a&&"]"!==a){if(a===n.ESCAPE_CHAR){if(!(a=i[++o]))break;u=!1}var l=u?new R({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,mask:e[a],isOptional:r}):new j({char:a,eager:this.eager,isUnmasking:s});this._blocks.push(l)}else r=!r;else s=!s;else this._stops.push(this._blocks.length)}}},{key:"state",get:function(){return Object.assign({},b(p(n.prototype),"state",this),{_blocks:this._blocks.map(function(t){return t.state})})},set:function(t){var e=t._blocks,i=m(t,q);this._blocks.forEach(function(t,n){return t.state=e[n]}),w(p(n.prototype),"state",i,this,!0)}},{key:"reset",value:function(){b(p(n.prototype),"reset",this).call(this),this._blocks.forEach(function(t){return t.reset()})}},{key:"isComplete",get:function(){return this._blocks.every(function(t){return t.isComplete})}},{key:"isFilled",get:function(){return this._blocks.every(function(t){return t.isFilled})}},{key:"isFixed",get:function(){return this._blocks.every(function(t){return t.isFixed})}},{key:"isOptional",get:function(){return this._blocks.every(function(t){return t.isOptional})}},{key:"doCommit",value:function(){this._blocks.forEach(function(t){return t.doCommit()}),b(p(n.prototype),"doCommit",this).call(this)}},{key:"unmaskedValue",get:function(){return this._blocks.reduce(function(t,e){return t+e.unmaskedValue},"")},set:function(t){w(p(n.prototype),"unmaskedValue",t,this,!0)}},{key:"value",get:function(){return this._blocks.reduce(function(t,e){return t+e.value},"")},set:function(t){w(p(n.prototype),"value",t,this,!0)}},{key:"appendTail",value:function(t){return b(p(n.prototype),"appendTail",this).call(this,t).aggregate(this._appendPlaceholder())}},{key:"_appendEager",value:function(){var t,e=new C,n=null===(t=this._mapPosToBlock(this.value.length))||void 0===t?void 0:t.index;if(null==n)return e;this._blocks[n].isFilled&&++n;for(var i=n;i<this._blocks.length;++i){var s=this._blocks[i]._appendEager();if(!s.inserted)break;e.aggregate(s)}return e}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._mapPosToBlock(this.value.length),i=new C;if(!n)return i;for(var s=n.index;;++s){var r,o=this._blocks[s];if(!o)break;var a=o._appendChar(t,Object.assign({},e,{_beforeTailState:null===(r=e._beforeTailState)||void 0===r?void 0:r._blocks[s]})),u=a.skip;if(i.aggregate(a),u||a.rawInserted)break}return i}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=new H;return e===n?i:(this._forEachBlocksInRange(e,n,function(e,n,s,r){var o=e.extractTail(s,r);o.stop=t._findStopBefore(n),o.from=t._blockStartPos(n),o instanceof H&&(o.blockIndex=n),i.extend(o)}),i)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var i="";return this._forEachBlocksInRange(t,e,function(t,e,s,r){i+=t.extractInput(s,r,n)}),i}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n<this._stops.length;++n){var i=this._stops[n];if(!(i<=t))break;e=i}return e}},{key:"_appendPlaceholder",value:function(t){var e=this,n=new C;if(this.lazy&&null==t)return n;var i=this._mapPosToBlock(this.value.length);if(!i)return n;var s=i.index,r=null!=t?t:this._blocks.length;return this._blocks.slice(s,r).forEach(function(i){if(!i.lazy||null!=t){var s=null!=i._blocks?[i._blocks.length]:[],r=i._appendPlaceholder.apply(i,s);e._value+=r.inserted,n.aggregate(r)}}),n}},{key:"_mapPosToBlock",value:function(t){for(var e="",n=0;n<this._blocks.length;++n){var i=this._blocks[n],s=e.length;if(t<=(e+=i.value).length)return{index:n,offset:t-s}}}},{key:"_blockStartPos",value:function(t){return this._blocks.slice(0,t).reduce(function(t,e){return t+e.value.length},0)}},{key:"_forEachBlocksInRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,i=this._mapPosToBlock(t);if(i){var s=this._mapPosToBlock(e),r=s&&i.index===s.index,o=i.offset,a=s&&r?s.offset:this._blocks[i.index].value.length;if(n(this._blocks[i.index],i.index,o,a),s&&!r){for(var u=i.index+1;u<s.index;++u)n(this._blocks[u],u,0,this._blocks[u].value.length);n(this._blocks[s.index],s.index,0,s.offset)}}}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=b(p(n.prototype),"remove",this).call(this,t,e);return this._forEachBlocksInRange(t,e,function(t,e,n,s){i.aggregate(t.remove(n,s))}),i}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.NONE;if(!this._blocks.length)return 0;var n=new z(this,t);if(e===x.NONE)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.value.length);if(e===x.LEFT||e===x.FORCE_LEFT){if(e===x.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),e===x.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t)return n.pos;if(n.popState(),n.ok&&n.pos<=t)return n.pos;n.popState()}return n.ok?n.pos:e===x.FORCE_LEFT?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return e===x.RIGHT||e===x.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:e===x.FORCE_RIGHT?this.value.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(t,x.LEFT)))):t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map(function(t){return e._blocks[t]}):[]}}]),n}();W.DEFAULTS={lazy:!0,placeholderChar:"_"},W.STOP_CHAR="`",W.ESCAPE_CHAR="\\",W.InputDefinition=R,W.FixedDefinition=j,B.MaskedPattern=W;var U=function(t){f(n,W);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);var e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;for(var i=String(t.from).padStart(e,"0"),s=String(t.to).padStart(e,"0"),r=0;r<s.length&&s[r]===i[r];)++r;t.mask=s.slice(0,r).replace(/0/g,"\\0")+"0".repeat(e-r),b(p(n.prototype),"_update",this).call(this,t)}},{key:"isComplete",get:function(){return b(p(n.prototype),"isComplete",this)&&Boolean(this.value)}},{key:"boundaries",value:function(t){var e="",n="",i=A(t.match(/^(\D*)(\d*)(\D*)/)||[],3),s=i[1],r=i[2];return r&&(e="0".repeat(s.length)+r,n="9".repeat(s.length)+r),[e=e.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9")]}},{key:"doPrepare",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=A(S(b(p(n.prototype),"doPrepare",this).call(this,t.replace(/\D/g,""),i)),2);if(t=s[0],e=s[1],!this.autofix||!t)return t;var r=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),a=this.value+t;if(a.length>this.maxLength)return"";var u=A(this.boundaries(a),2),l=u[0],c=u[1];return Number(c)<this.from?r[a.length-1]:Number(l)>this.to?"pad"===this.autofix&&a.length<this.maxLength?["",e.aggregate(this.append(r[a.length-1]+t,i))]:o[a.length-1]:t}},{key:"doValidate",value:function(){var t,e=this.value;if(-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;for(var i=A(this.boundaries(e),2),s=i[0],r=i[1],o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return this.from<=Number(r)&&Number(s)<=this.to&&(t=b(p(n.prototype),"doValidate",this)).call.apply(t,[this].concat(a))}}]),n}();B.MaskedRange=U;var Y=function(t){f(n,W);var e=_(n);function n(t){return c(this,n),e.call(this,Object.assign({},n.DEFAULTS,t))}return d(n,[{key:"_update",value:function(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern);var e=t.blocks;t.blocks=Object.assign({},n.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Object.assign(t.blocks,this.blocks,e),Object.keys(t.blocks).forEach(function(e){var n=t.blocks[e];!("autofix"in n)&&"autofix"in t&&(n.autofix=t.autofix)}),b(p(n.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this.date,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return(t=b(p(n.prototype),"doValidate",this)).call.apply(t,[this].concat(s))&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}},{key:"isDateExist",value:function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?b(p(n.prototype),"typedValue",this):null},set:function(t){w(p(n.prototype),"typedValue",t,this,!0)}},{key:"maskEquals",value:function(t){return t===Date||b(p(n.prototype),"maskEquals",this).call(this,t)}}]),n}();Y.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return t?[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join("."):""},parse:function(t){var e=A(t.split("."),3),n=e[0],i=e[1],s=e[2];return new Date(s,i-1,n)}},Y.GET_DEFAULT_BLOCKS=function(){return{d:{mask:U,from:1,to:31,maxLength:2},m:{mask:U,from:1,to:12,maxLength:2},Y:{mask:U,from:1900,to:9999}}},B.MaskedDate=Y;var K=function(){function t(){c(this,t)}return d(t,[{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"isActive",get:function(){return!1}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}}]),t}();B.MaskElement=K;var G=function(t){f(n,K);var e=_(n);function n(t){var i;return c(this,n),(i=e.call(this)).input=t,i._handlers={},i}return d(n,[{key:"rootElement",get:function(){var t,e,n;return null!==(t=null===(e=(n=this.input).getRootNode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}},{key:"bindEvents",value:function(t){var e=this;Object.keys(t).forEach(function(i){return e._toggleEventHandler(n.EVENTS_MAP[i],t[i])})}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach(function(e){return t._toggleEventHandler(e)})}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}]),n}();G.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},B.HTMLMaskElement=G;var X=function(t){f(n,G);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection(),n=e&&e.anchorOffset,i=e&&e.focusOffset;return null==i||null==n||n<i?n:i}},{key:"_unsafeSelectionEnd",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection(),n=e&&e.anchorOffset,i=e&&e.focusOffset;return null==i||null==n||n>i?n:i}},{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,e);var i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),n}();B.HTMLContenteditableMaskElement=X;var Q=["mask"],Z=function(){function t(e,n){c(this,t),this.el=e instanceof K?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new X(e):new G(e),this.masked=M(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return d(t,[{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof B.Masked||this.masked.constructor!==L(t)){var e=M({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"maskEquals",value:function(t){var e;return null==t||(null===(e=this.masked)||void 0===e?void 0:e.maskEquals(t))}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var s=this._listeners[t];s&&s.forEach(function(t){return t.apply(void 0,n)})}},{key:"selectionStart",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}},{key:"cursorPos",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){this.el&&this.el.isActive&&(this.el.select(t,t),this._saveSelection())}},{key:"_saveSelection",value:function(){this.value!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}},{key:"updateValue",value:function(){this.masked.value=this.el.value,this._value=this.masked.value}},{key:"updateControl",value:function(){var t=this.masked.unmaskedValue,e=this.masked.value,n=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==e&&(this.el.value=e),n&&this._fireChangeEvents()}},{key:"updateOptions",value:function(t){var e=t.mask,n=m(t,Q),i=!this.maskEquals(e),s=!function t(e,n){if(n===e)return!0;var i,s=Array.isArray(n),r=Array.isArray(e);if(s&&r){if(n.length!=e.length)return!1;for(i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}if(s!=r)return!1;if(n&&e&&"object"===l(n)&&"object"===l(e)){var o=n instanceof Date,a=e instanceof Date;if(o&&a)return n.getTime()==e.getTime();if(o!=a)return!1;var u=n instanceof RegExp,c=e instanceof RegExp;if(u&&c)return n.toString()==e.toString();if(u!=c)return!1;var h=Object.keys(n);for(i=0;i<h.length;i++)if(!Object.prototype.hasOwnProperty.call(e,h[i]))return!1;for(i=0;i<h.length;i++)if(!t(e[h[i]],n[h[i]]))return!1;return!0}return!(!n||!e||"function"!=typeof n||"function"!=typeof e)&&n.toString()===e.toString()}(this.masked,n);i&&(this.mask=e),s&&this.masked.updateOptions(n),(i||s)&&this.updateControl()}},{key:"updateCursor",value:function(t){null!=t&&(this.cursorPos=t,this._delayUpdateCursor(t))}},{key:"_delayUpdateCursor",value:function(t){var e=this;this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(function(){e.el&&(e.cursorPos=e._changingCursorPos,e._abortUpdateCursor())},10)}},{key:"_fireChangeEvents",value:function(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}},{key:"_abortUpdateCursor",value:function(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}},{key:"alignCursor",value:function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,x.LEFT))}},{key:"alignCursorFriendly",value:function(){this.selectionStart===this.cursorPos&&this.alignCursor()}},{key:"on",value:function(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}},{key:"off",value:function(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;var n=this._listeners[t].indexOf(e);return n>=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new O(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,i=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,s=n===this.masked.rawInputValue?e.removeDirection:x.NONE,r=this.masked.nearestInputPos(e.startChangePos+i,s);s!==x.NONE&&(r=this.masked.nearestInputPos(r,x.NONE)),this.updateControl(),this.updateCursor(r),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}}]),t}();B.InputMask=Z;var J=function(t){f(n,W);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),b(p(n.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return this.enum.some(function(t){return t.indexOf(e.unmaskedValue)>=0})&&(t=b(p(n.prototype),"doValidate",this)).call.apply(t,[this].concat(s))}}]),n}();B.MaskedEnum=J;var tt=function(t){f(n,I);var e=_(n);function n(t){return c(this,n),e.call(this,Object.assign({},n.DEFAULTS,t))}return d(n,[{key:"_update",value:function(t){b(p(n.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+F(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(F).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(F(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){var e;t=t.replace(this._mapToRadixRegExp,this.radix);for(var i=this._removeThousandsSeparators(t),s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];var a=A(S((e=b(p(n.prototype),"doPrepare",this)).call.apply(e,[this,i].concat(r))),2),u=a[0],l=a[1];return t&&!i&&(l.skip=!0),[u,l]}},{key:"_separatorsCount",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,e&&(t+=this.thousandsSeparator.length));return n}},{key:"_separatorsCountFromSlice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0,s=A(this._adjustRangeWithSeparators(t,e),2);return t=s[0],e=s[1],this._removeThousandsSeparators(b(p(n.prototype),"extractInput",this).call(this,t,e,i))}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return b(p(n.prototype),"_appendCharRaw",this).call(this,t,e);var i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);var r=b(p(n.prototype),"_appendCharRaw",this).call(this,t,e);this._value=this._insertThousandsSeparators(this._value);var o=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return r.tailShift+=(a-s)*this.thousandsSeparator.length,r.skip=!r.rawInserted&&t===this.thousandsSeparator,r}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,e);if(n<=t)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var i=this._findSeparatorAround(e);return i>=0&&(e=i+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=A(this._adjustRangeWithSeparators(t,e),2);t=n[0],e=n[1];var i=this.value.slice(0,t),s=this.value.slice(e),r=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));var o=this._separatorsCountFromSlice(i);return new C({tailShift:(o-r)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case x.NONE:case x.LEFT:case x.FORCE_LEFT:var n=this._findSeparatorAround(t-1);if(n>=0){var i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||e===x.FORCE_LEFT)return n}break;case x.RIGHT:case x.FORCE_RIGHT:var s=this._findSeparatorAround(t);if(s>=0)return s+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var e=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(e){var i=this.number;e=e&&!isNaN(i)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&b(p(n.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=String(e));var i=this.value;this.normalizeZeros&&(i=this._normalizeZeros(i)),this.padFractionalZeros&&this.scale>0&&(i=this._padFractionalZeros(i)),this._value=i}b(p(n.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,function(t,e,n,i){return e+i}),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){w(p(n.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){w(p(n.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),n}();tt.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},B.MaskedNumber=tt;var et=function(t){f(n,I);var e=_(n);function n(){return c(this,n),e.apply(this,arguments)}return d(n,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),b(p(n.prototype),"_update",this).call(this,t)}}]),n}();B.MaskedFunction=et;var nt=["compiledMasks","currentMaskRef","currentMask"],it=function(t){f(n,I);var e=_(n);function n(t){var i;return c(this,n),(i=e.call(this,Object.assign({},n.DEFAULTS,t))).currentMask=null,i}return d(n,[{key:"_update",value:function(t){b(p(n.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(function(t){return M(t)}):[])}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._applyDispatch(t,e);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,e)),n}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,i=this.rawInputValue,s=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:i,r=i.slice(s.length),o=this.currentMask,a=new C,u=o&&o.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==o){if(this.currentMask.reset(),s){var l=this.currentMask.append(s,{raw:!0});a.tailShift=l.inserted.length-n.length}r&&(a.tailShift+=this.currentMask.append(r,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return a}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"_appendEager",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,e,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return(t=b(p(n.prototype),"doValidate",this)).call.apply(t,[this].concat(s))&&(!this.currentMask||(e=this.currentMask).doValidate.apply(e,s))}},{key:"reset",value:function(){var t;null===(t=this.currentMask)||void 0===t||t.reset(),this.compiledMasks.forEach(function(t){return t.reset()})}},{key:"value",get:function(){return this.currentMask?this.currentMask.value:""},set:function(t){w(p(n.prototype),"value",t,this,!0)}},{key:"unmaskedValue",get:function(){return this.currentMask?this.currentMask.unmaskedValue:""},set:function(t){w(p(n.prototype),"unmaskedValue",t,this,!0)}},{key:"typedValue",get:function(){return this.currentMask?this.currentMask.typedValue:""},set:function(t){var e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}},{key:"isComplete",get:function(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isComplete)}},{key:"isFilled",get:function(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isFilled)}},{key:"remove",value:function(){var t,e=new C;this.currentMask&&e.aggregate((t=this.currentMask).remove.apply(t,arguments)).aggregate(this._applyDispatch());return e}},{key:"state",get:function(){return Object.assign({},b(p(n.prototype),"state",this),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(function(t){return t.state}),currentMaskRef:this.currentMask,currentMask:this.currentMask&&this.currentMask.state})},set:function(t){var e=t.compiledMasks,i=t.currentMaskRef,s=t.currentMask,r=m(t,nt);this.compiledMasks.forEach(function(t,n){return t.state=e[n]}),null!=i&&(this.currentMask=i,this.currentMask.state=s),w(p(n.prototype),"state",r,this,!0)}},{key:"extractInput",value:function(){var t;return this.currentMask?(t=this.currentMask).extractInput.apply(t,arguments):""}},{key:"extractTail",value:function(){for(var t,e,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return this.currentMask?(t=this.currentMask).extractTail.apply(t,s):(e=b(p(n.prototype),"extractTail",this)).call.apply(e,[this].concat(s))}},{key:"doCommit",value:function(){this.currentMask&&this.currentMask.doCommit(),b(p(n.prototype),"doCommit",this).call(this)}},{key:"nearestInputPos",value:function(){for(var t,e,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return this.currentMask?(t=this.currentMask).nearestInputPos.apply(t,s):(e=b(p(n.prototype),"nearestInputPos",this)).call.apply(e,[this].concat(s))}},{key:"overwrite",get:function(){return this.currentMask?this.currentMask.overwrite:b(p(n.prototype),"overwrite",this)},set:function(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}},{key:"eager",get:function(){return this.currentMask?this.currentMask.eager:b(p(n.prototype),"eager",this)},set:function(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}},{key:"maskEquals",value:function(t){return Array.isArray(t)&&this.compiledMasks.every(function(e,n){var i;return e.maskEquals(null===(i=t[n])||void 0===i?void 0:i.mask)})}}]),n}();it.DEFAULTS={dispatch:function(t,e,n){if(e.compiledMasks.length){var i=e.rawInputValue,s=e.compiledMasks.map(function(e,s){return e.reset(),e.append(i,{raw:!0}),e.append(t,n),{weight:e.rawInputValue.length,index:s}});return s.sort(function(t,e){return e.weight-t.weight}),e.compiledMasks[s[0].index]}}},B.MaskedDynamic=it;var st={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st.MASKED,i=M(t);return function(t){return i.runIsolated(function(i){return i[e]=t,i[n]})}}B.PIPE_TYPE=st,B.createPipe=rt,B.pipe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return rt.apply(void 0,n)(t)};try{globalThis.IMask=B}catch(t){}[].slice.call(document.querySelectorAll("[data-mask]")).map(function(t){return new B(t,{mask:t.dataset.mask,lazy:"true"===t.dataset["mask-visible"]})});var ot="top",at="bottom",ut="right",lt="left",ct="auto",ht=[ot,at,ut,lt],dt="start",ft="end",pt="clippingParents",gt="viewport",mt="popper",vt="reference",_t=ht.reduce(function(t,e){return t.concat([e+"-"+dt,e+"-"+ft])},[]),yt=[].concat(ht,[ct]).reduce(function(t,e){return t.concat([e,e+"-"+dt,e+"-"+ft])},[]),bt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kt(t){return t?(t.nodeName||"").toLowerCase():null}function wt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function At(t){return t instanceof wt(t).Element||t instanceof Element}function Et(t){return t instanceof wt(t).HTMLElement||t instanceof HTMLElement}function Ct(t){return"undefined"!=typeof ShadowRoot&&(t instanceof wt(t).ShadowRoot||t instanceof ShadowRoot)}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];Et(s)&&kt(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Et(i)&&kt(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function xt(t){return t.split("-")[0]}var Ft=Math.max,St=Math.min,Ot=Math.round;function Dt(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),i=1,s=1;if(Et(t)&&e){var r=t.offsetHeight,o=t.offsetWidth;o>0&&(i=Ot(n.width)/o||1),r>0&&(s=Ot(n.height)/r||1)}return{width:n.width/i,height:n.height/s,top:n.top/s,right:n.right/i,bottom:n.bottom/s,left:n.left/i,x:n.left/i,y:n.top/s}}function Bt(t){var e=Dt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function It(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ct(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Lt(t){return wt(t).getComputedStyle(t)}function Mt(t){return["table","td","th"].indexOf(kt(t))>=0}function Pt(t){return((At(t)?t.ownerDocument:t.document)||window.document).documentElement}function Nt(t){return"html"===kt(t)?t:t.assignedSlot||t.parentNode||(Ct(t)?t.host:null)||Pt(t)}function Rt(t){return Et(t)&&"fixed"!==Lt(t).position?t.offsetParent:null}function jt(t){for(var e=wt(t),n=Rt(t);n&&Mt(n)&&"static"===Lt(n).position;)n=Rt(n);return n&&("html"===kt(n)||"body"===kt(n)&&"static"===Lt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Et(t)&&"fixed"===Lt(t).position)return null;var n=Nt(t);for(Ct(n)&&(n=n.host);Et(n)&&["html","body"].indexOf(kt(n))<0;){var i=Lt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Vt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ht(t,e,n){return Ft(t,St(e,n))}function zt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $t(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var qt=function(t,e){return zt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:$t(t,ht))};var Wt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=xt(n.placement),u=Vt(a),l=[lt,ut].indexOf(a)>=0?"height":"width";if(r&&o){var c=qt(s.padding,n),h=Bt(r),d="y"===u?ot:lt,f="y"===u?at:ut,p=n.rects.reference[l]+n.rects.reference[u]-o[u]-n.rects.popper[l],g=o[u]-n.rects.reference[u],m=jt(r),v=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,y=c[d],b=v-h[l]-c[f],k=v/2-h[l]/2+_,w=Ht(y,k,b),A=u;n.modifiersData[i]=((e={})[A]=w,e.centerOffset=w-k,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&It(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ut(t){return t.split("-")[1]}var Yt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kt(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,g=void 0===p?0:p,m="function"==typeof c?c({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var v=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),y=lt,b=ot,k=window;if(l){var w=jt(n),A="clientHeight",E="clientWidth";if(w===wt(n)&&"static"!==Lt(w=Pt(n)).position&&"absolute"===a&&(A="scrollHeight",E="scrollWidth"),w=w,s===ot||(s===lt||s===ut)&&r===ft)b=at,g-=(h&&w===k&&k.visualViewport?k.visualViewport.height:w[A])-i.height,g*=u?1:-1;if(s===lt||(s===ot||s===at)&&r===ft)y=ut,f-=(h&&w===k&&k.visualViewport?k.visualViewport.width:w[E])-i.width,f*=u?1:-1}var C,T=Object.assign({position:a},l&&Yt),x=!0===c?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Ot(e*i)/i||0,y:Ot(n*i)/i||0}}({x:f,y:g}):{x:f,y:g};return f=x.x,g=x.y,u?Object.assign({},T,((C={})[b]=_?"0":"",C[y]=v?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",C)):Object.assign({},T,((e={})[b]=_?g+"px":"",e[y]=v?f+"px":"",e.transform="",e))}var Gt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,u=void 0===a||a,l={placement:xt(e.placement),variation:Ut(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Kt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Xt={passive:!0};var Qt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,u=wt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,Xt)}),a&&u.addEventListener("resize",n.update,Xt),function(){r&&l.forEach(function(t){t.removeEventListener("scroll",n.update,Xt)}),a&&u.removeEventListener("resize",n.update,Xt)}},data:{}},Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(t){return t.replace(/left|right|bottom|top/g,function(t){return Zt[t]})}var te={start:"end",end:"start"};function ee(t){return t.replace(/start|end/g,function(t){return te[t]})}function ne(t){var e=wt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(t){return Dt(Pt(t)).left+ne(t).scrollLeft}function se(t){var e=Lt(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function re(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(kt(e))>=0?e.ownerDocument.body:Et(e)&&se(e)?e:t(Nt(e))}(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),r=wt(i),o=s?[r].concat(r.visualViewport||[],se(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(re(Nt(o)))}function oe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ae(t,e){return e===gt?oe(function(t){var e=wt(t),n=Pt(t),i=e.visualViewport,s=n.clientWidth,r=n.clientHeight,o=0,a=0;return i&&(s=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:s,height:r,x:o+ie(t),y:a}}(t)):At(e)?function(t){var e=Dt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):oe(function(t){var e,n=Pt(t),i=ne(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=Ft(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Ft(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+ie(t),u=-i.scrollTop;return"rtl"===Lt(s||n).direction&&(a+=Ft(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:u}}(Pt(t)))}function ue(t,e,n){var i="clippingParents"===e?function(t){var e=re(Nt(t)),n=["absolute","fixed"].indexOf(Lt(t).position)>=0&&Et(t)?jt(t):t;return At(n)?e.filter(function(t){return At(t)&&It(t,n)&&"body"!==kt(t)}):[]}(t):[].concat(e),s=[].concat(i,[n]),r=s[0],o=s.reduce(function(e,n){var i=ae(t,n);return e.top=Ft(i.top,e.top),e.right=St(i.right,e.right),e.bottom=St(i.bottom,e.bottom),e.left=Ft(i.left,e.left),e},ae(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function le(t){var e,n=t.reference,i=t.element,s=t.placement,r=s?xt(s):null,o=s?Ut(s):null,a=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(r){case ot:e={x:a,y:n.y-i.height};break;case at:e={x:a,y:n.y+n.height};break;case ut:e={x:n.x+n.width,y:u};break;case lt:e={x:n.x-i.width,y:u};break;default:e={x:n.x,y:n.y}}var l=r?Vt(r):null;if(null!=l){var c="y"===l?"height":"width";switch(o){case dt:e[l]=e[l]-(n[c]/2-i[c]/2);break;case ft:e[l]=e[l]+(n[c]/2-i[c]/2)}}return e}function ce(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=void 0===i?t.placement:i,r=n.boundary,o=void 0===r?pt:r,a=n.rootBoundary,u=void 0===a?gt:a,l=n.elementContext,c=void 0===l?mt:l,h=n.altBoundary,d=void 0!==h&&h,f=n.padding,p=void 0===f?0:f,g=zt("number"!=typeof p?p:$t(p,ht)),m=c===mt?vt:mt,v=t.rects.popper,_=t.elements[d?m:c],y=ue(At(_)?_:_.contextElement||Pt(t.elements.popper),o,u),b=Dt(t.elements.reference),k=le({reference:b,element:v,strategy:"absolute",placement:s}),w=oe(Object.assign({},v,k)),A=c===mt?w:b,E={top:y.top-A.top+g.top,bottom:A.bottom-y.bottom+g.bottom,left:y.left-A.left+g.left,right:A.right-y.right+g.right},C=t.modifiersData.offset;if(c===mt&&C){var T=C[s];Object.keys(E).forEach(function(t){var e=[ut,at].indexOf(t)>=0?1:-1,n=[ot,at].indexOf(t)>=0?"y":"x";E[t]+=T[n]*e})}return E}function he(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?yt:u,c=Ut(i),h=c?a?_t:_t.filter(function(t){return Ut(t)===c}):ht,d=h.filter(function(t){return l.indexOf(t)>=0});0===d.length&&(d=h);var f=d.reduce(function(e,n){return e[n]=ce(t,{placement:n,boundary:s,rootBoundary:r,padding:o})[xt(n)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var de={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,u=n.fallbackPlacements,l=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=e.options.placement,v=xt(m),_=u||(v!==m&&p?function(t){if(xt(t)===ct)return[];var e=Jt(t);return[ee(t),e,ee(e)]}(m):[Jt(m)]),y=[m].concat(_).reduce(function(t,n){return t.concat(xt(n)===ct?he(e,{placement:n,boundary:c,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),b=e.rects.reference,k=e.rects.popper,w=new Map,A=!0,E=y[0],C=0;C<y.length;C++){var T=y[C],x=xt(T),F=Ut(T)===dt,S=[ot,at].indexOf(x)>=0,O=S?"width":"height",D=ce(e,{placement:T,boundary:c,rootBoundary:h,altBoundary:d,padding:l}),B=S?F?ut:lt:F?at:ot;b[O]>k[O]&&(B=Jt(B));var I=Jt(B),L=[];if(r&&L.push(D[x]<=0),a&&L.push(D[B]<=0,D[I]<=0),L.every(function(t){return t})){E=T,A=!1;break}w.set(T,L)}if(A)for(var M=function(t){var e=y.find(function(e){var n=w.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return E=e,"break"},P=p?3:1;P>0&&"break"!==M(P);P--);e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fe(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function pe(t){return[ot,ut,at,lt].some(function(e){return t[e]>=0})}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=ce(e,{elementContext:"reference"}),a=ce(e,{altBoundary:!0}),u=fe(o,i),l=fe(a,s,r),c=pe(u),h=pe(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}};var me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=void 0===s?[0,0]:s,o=yt.reduce(function(t,n){return t[n]=function(t,e,n){var i=xt(t),s=[lt,ot].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[lt,ut].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,e.rects,r),t},{}),a=o[e.placement],u=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=o}};var ve={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=le({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var _e={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=ce(e,{boundary:u,rootBoundary:l,padding:h,altBoundary:c}),v=xt(e.placement),_=Ut(e.placement),y=!_,b=Vt(v),k="x"===b?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,E=e.rects.popper,C="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(w){if(r){var S,O="y"===b?ot:lt,D="y"===b?at:ut,B="y"===b?"height":"width",I=w[b],L=I+m[O],M=I-m[D],P=f?-E[B]/2:0,N=_===dt?A[B]:E[B],R=_===dt?-E[B]:-A[B],j=e.elements.arrow,V=f&&j?Bt(j):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=H[O],$=H[D],q=Ht(0,A[B],V[B]),W=y?A[B]/2-P-q-z-T.mainAxis:N-q-z-T.mainAxis,U=y?-A[B]/2+P+q+$+T.mainAxis:R+q+$+T.mainAxis,Y=e.elements.arrow&&jt(e.elements.arrow),K=Y?"y"===b?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(S=null==x?void 0:x[b])?S:0,X=I+U-G,Q=Ht(f?St(L,I+W-G-K):L,I,f?Ft(M,X):M);w[b]=Q,F[b]=Q-I}if(a){var Z,J="x"===b?ot:lt,tt="x"===b?at:ut,et=w[k],nt="y"===k?"height":"width",it=et+m[J],st=et-m[tt],rt=-1!==[ot,lt].indexOf(v),ct=null!=(Z=null==x?void 0:x[k])?Z:0,ht=rt?it:et-A[nt]-E[nt]-ct+T.altAxis,ft=rt?et+A[nt]+E[nt]-ct-T.altAxis:st,pt=f&&rt?function(t,e,n){var i=Ht(t,e,n);return i>n?n:i}(ht,et,ft):Ht(f?ht:it,et,f?ft:st);w[k]=pt,F[k]=pt-et}e.modifiersData[i]=F}},requiresIfExists:["offset"]};function ye(t,e,n){void 0===n&&(n=!1);var i,s,r=Et(e),o=Et(e)&&function(t){var e=t.getBoundingClientRect(),n=Ot(e.width)/t.offsetWidth||1,i=Ot(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Pt(e),u=Dt(t,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==kt(e)||se(a))&&(l=(i=e)!==wt(i)&&Et(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ne(i)),Et(e)?((c=Dt(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=ie(a))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function be(t){var e=new Map,n=new Set,i=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(s){n.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(i){if(!n.has(i)){var s=e.get(i);s&&t(s)}}),i.push(s)}(t)}),i}var ke={placement:"bottom",modifiers:[],strategy:"absolute"};function we(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Ae(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,s=e.defaultOptions,r=void 0===s?ke:s;return function(t,e,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ke,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],l=!1,c={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:At(t)?re(t):t.contextElement?re(t.contextElement):[],popper:re(e)};var o,l,d=function(t){var e=be(t);return bt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),l=o.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var r=s({state:a,name:e,instance:c,options:i});u.push(r||function(){})}}),c.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(we(e,n)){a.rects={reference:ye(e,jt(n),"fixed"===a.options.strategy),popper:Bt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,u=void 0===o?{}:o,h=s.name;"function"==typeof r&&(a=r({state:a,options:u,name:h,instance:c})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(t){c.forceUpdate(),t(a)})},function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(s())})})),o}),destroy:function(){h(),l=!0}};if(!we(t,e))return c;function h(){u.forEach(function(t){return t()}),u=[]}return c.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),c}}var Ee=Ae(),Ce=Ae({defaultModifiers:[Qt,ve,Gt,Tt]}),Te=Ae({defaultModifiers:[Qt,ve,Gt,Tt,me,de,_e,Wt,ge]}),xe=Object.freeze({__proto__:null,popperGenerator:Ae,detectOverflow:ce,createPopperBase:Ee,createPopper:Te,createPopperLite:Ce,top:ot,bottom:at,right:ut,left:lt,auto:ct,basePlacements:ht,start:dt,end:ft,clippingParents:pt,viewport:gt,popper:mt,reference:vt,variationPlacements:_t,placements:yt,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:bt,applyStyles:Tt,arrow:Wt,computeStyles:Gt,eventListeners:Qt,flip:de,hide:ge,offset:me,popperOffsets:ve,preventOverflow:_e});const Fe=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Se=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},Oe=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e},De=t=>{const e=Oe(t);return e&&document.querySelector(e)?e:null},Be=t=>{const e=Oe(t);return e?document.querySelector(e):null},Ie=t=>{t.dispatchEvent(new Event("transitionend"))},Le=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Me=t=>Le(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,Pe=t=>{if(!Le(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},Ne=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Re=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Re(t.parentNode):null},je=()=>{},Ve=t=>{t.offsetHeight},He=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ze=[],$e=()=>"rtl"===document.documentElement.dir,qe=t=>{(t=>{"loading"===document.readyState?(ze.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of ze)t()}),ze.push(t)):t()})(()=>{const e=He();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=(()=>(e.fn[n]=i,t.jQueryInterface))}})},We=t=>{"function"==typeof t&&t()},Ue=(t,e,n=!0)=>{if(!n)return void We(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),s=Number.parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let s=!1;const r=({target:n})=>{n===e&&(s=!0,e.removeEventListener("transitionend",r),We(t))};e.addEventListener("transitionend",r),setTimeout(()=>{s||Ie(e)},i)},Ye=(t,e,n,i)=>{const s=t.length;let r=t.indexOf(e);return-1===r?!n&&i?t[s-1]:t[0]:(r+=n?1:-1,i&&(r=(r+s)%s),t[Math.max(0,Math.min(r,s-1))])},Ke=/[^.]*(?=\..*)\.|.*/,Ge=/\..*/,Xe=/::\d+$/,Qe={};let Ze=1;const Je={mouseenter:"mouseover",mouseleave:"mouseout"},tn=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"]);function en(t,e){return e&&`${e}::${Ze++}`||t.uidEvent||Ze++}function nn(t){const e=en(t);return t.uidEvent=e,Qe[e]=Qe[e]||{},Qe[e]}function sn(t,e,n=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function rn(t,e,n){const i="string"==typeof e,s=i?n:e||n;let r=ln(t);return tn.has(r)||(r=t),[i,s,r]}function on(t,e,n,i,s){if("string"!=typeof e||!t)return;let[r,o,a]=rn(e,n,i);if(e in Je){o=(t=>(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)}))(o)}const u=nn(t),l=u[a]||(u[a]={}),c=sn(l,o,r?n:null);if(c)return void(c.oneOff=c.oneOff&&s);const h=en(o,e.replace(Ke,"")),d=r?function(t,e,n){return function i(s){const r=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return hn(s,{delegateTarget:o}),i.oneOff&&cn.off(t,s.type,e,n),n.apply(o,[s])}}(t,n,o):function(t,e){return function n(i){return hn(i,{delegateTarget:t}),n.oneOff&&cn.off(t,i.type,e),e.apply(t,[i])}}(t,o);d.delegationSelector=r?n:null,d.callable=o,d.oneOff=s,d.uidEvent=h,l[h]=d,t.addEventListener(a,d,r)}function an(t,e,n,i,s){const r=sn(e[n],i,s);r&&(t.removeEventListener(n,r,Boolean(s)),delete e[n][r.uidEvent])}function un(t,e,n,i){const s=e[n]||{};for(const r of Object.keys(s))if(r.includes(i)){const i=s[r];an(t,e,n,i.callable,i.delegationSelector)}}function ln(t){return t=t.replace(Ge,""),Je[t]||t}const cn={on(t,e,n,i){on(t,e,n,i,!1)},one(t,e,n,i){on(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[s,r,o]=rn(e,n,i),a=o!==e,u=nn(t),l=u[o]||{},c=e.startsWith(".");if(void 0===r){if(c)for(const n of Object.keys(u))un(t,u,n,e.slice(1));for(const n of Object.keys(l)){const i=n.replace(Xe,"");if(!a||e.includes(i)){const e=l[n];an(t,u,o,e.callable,e.delegationSelector)}}}else{if(!Object.keys(l).length)return;an(t,u,o,r,s?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=He();let s=null,r=!0,o=!0,a=!1;e!==ln(e)&&i&&(s=i.Event(e,n),i(t).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let u=new Event(e,{bubbles:r,cancelable:!0});return u=hn(u,n),a&&u.preventDefault(),o&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function hn(t,e){for(const[n,i]of Object.entries(e||{}))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}const dn=new Map,fn={set(t,e,n){dn.has(t)||dn.set(t,new Map);const i=dn.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>dn.has(t)&&dn.get(t).get(e)||null,remove(t,e){if(!dn.has(t))return;const n=dn.get(t);n.delete(e),0===n.size&&dn.delete(t)}};function pn(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function gn(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const mn={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${gn(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${gn(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");e[n=n.charAt(0).toLowerCase()+n.slice(1,n.length)]=pn(t.dataset[i])}return e},getDataAttribute:(t,e)=>pn(t.getAttribute(`data-bs-${gn(e)}`))};class vn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=Le(e)?mn.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Le(e)?mn.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const i=e[n],s=t[n],r=Le(s)?"element":Fe(s);if(!new RegExp(i).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${i}".`)}}}const _n="5.2.0";class yn extends vn{constructor(t,e){super(),(t=Me(t))&&(this._element=t,this._config=this._getConfig(e),fn.set(this._element,this.constructor.DATA_KEY,this))}dispose(){fn.remove(this._element,this.constructor.DATA_KEY),cn.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){Ue(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return fn.get(Me(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return _n}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const bn=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;cn.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Ne(this))return;const s=Be(this)||this.closest(`.${i}`);t.getOrCreateInstance(s)[e]()})},kn="alert",wn="close.bs.alert",An="closed.bs.alert",En="fade",Cn="show";class Tn extends yn{static get NAME(){return kn}close(){if(cn.trigger(this._element,wn).defaultPrevented)return;this._element.classList.remove(Cn);const t=this._element.classList.contains(En);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),cn.trigger(this._element,An),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Tn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}bn(Tn,"close"),qe(Tn);const xn="button",Fn="active";class Sn extends yn{static get NAME(){return xn}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Fn))}static jQueryInterface(t){return this.each(function(){const e=Sn.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}cn.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');Sn.getOrCreateInstance(e).toggle()}),qe(Sn);const On={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!Ne(t)&&Pe(t))}},Dn="swipe",Bn=".bs.swipe",In=`touchstart${Bn}`,Ln=`touchmove${Bn}`,Mn=`touchend${Bn}`,Pn=`pointerdown${Bn}`,Nn=`pointerup${Bn}`,Rn="touch",jn="pen",Vn="pointer-event",Hn=40,zn={endCallback:null,leftCallback:null,rightCallback:null},$n={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class qn extends vn{constructor(t,e){super(),this._element=t,t&&qn.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return zn}static get DefaultType(){return $n}static get NAME(){return Dn}dispose(){cn.off(this._element,Bn)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),We(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Hn)return;const e=t/this._deltaX;this._deltaX=0,e&&We(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(cn.on(this._element,Pn,t=>this._start(t)),cn.on(this._element,Nn,t=>this._end(t)),this._element.classList.add(Vn)):(cn.on(this._element,In,t=>this._start(t)),cn.on(this._element,Ln,t=>this._move(t)),cn.on(this._element,Mn,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===jn||t.pointerType===Rn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Wn="carousel",Un=500,Yn="next",Kn="prev",Gn="left",Xn="right",Qn="slide.bs.carousel",Zn="slid.bs.carousel",Jn="keydown.bs.carousel",ti="mouseenter.bs.carousel",ei="mouseleave.bs.carousel",ni="dragstart.bs.carousel",ii="carousel",si="active",ri="slide",oi="carousel-item-end",ai="carousel-item-start",ui="carousel-item-next",li="carousel-item-prev",ci=".active",hi=".carousel-item",di=ci+hi,fi=".carousel-item img",pi=".carousel-indicators",gi={ArrowLeft:Xn,ArrowRight:Gn},mi={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},vi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class _i extends yn{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=On.findOne(pi,this._element),this._addEventListeners(),this._config.ride===ii&&this.cycle()}static get Default(){return mi}static get DefaultType(){return vi}static get NAME(){return Wn}next(){this._slide(Yn)}nextWhenVisible(){!document.hidden&&Pe(this._element)&&this.next()}prev(){this._slide(Kn)}pause(){this._isSliding&&Ie(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?cn.one(this._element,Zn,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void cn.one(this._element,Zn,()=>this.to(t));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?Yn:Kn;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&cn.on(this._element,Jn,t=>this._keydown(t)),"hover"===this._config.pause&&(cn.on(this._element,ti,()=>this.pause()),cn.on(this._element,ei,()=>this._maybeEnableCycle())),this._config.touch&&qn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of On.find(fi,this._element))cn.on(t,ni,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Gn)),rightCallback:()=>this._slide(this._directionToOrder(Xn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Un+this._config.interval))}};this._swipeHelper=new qn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=gi[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=On.findOne(ci,this._indicatorsElement);e.classList.remove(si),e.removeAttribute("aria-current");const n=On.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(si),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===Yn,s=e||Ye(this._getItems(),n,i,this._config.wrap);if(s===n)return;const r=this._getItemIndex(s),o=e=>cn.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:r});if(o(Qn).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const u=i?ai:oi,l=i?ui:li;s.classList.add(l),Ve(s),n.classList.add(u),s.classList.add(u);this._queueCallback(()=>{s.classList.remove(u,l),s.classList.add(si),n.classList.remove(si,l,u),this._isSliding=!1,o(Zn)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains(ri)}_getActive(){return On.findOne(di,this._element)}_getItems(){return On.find(hi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return $e()?t===Gn?Kn:Yn:t===Gn?Yn:Kn}_orderToDirection(t){return $e()?t===Kn?Gn:Xn:t===Kn?Xn:Gn}static jQueryInterface(t){return this.each(function(){const e=_i.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}cn.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(t){const e=Be(this);if(!e||!e.classList.contains(ii))return;t.preventDefault();const n=_i.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===mn.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),cn.on(window,"load.bs.carousel.data-api",()=>{const t=On.find('[data-bs-ride="carousel"]');for(const e of t)_i.getOrCreateInstance(e)}),qe(_i);const yi="collapse",bi="show.bs.collapse",ki="shown.bs.collapse",wi="hide.bs.collapse",Ai="hidden.bs.collapse",Ei="show",Ci="collapse",Ti="collapsing",xi="collapsed",Fi=`:scope .${Ci} .${Ci}`,Si="collapse-horizontal",Oi="width",Di="height",Bi=".collapse.show, .collapse.collapsing",Ii='[data-bs-toggle="collapse"]',Li={parent:null,toggle:!0},Mi={parent:"(null|element)",toggle:"boolean"};class Pi extends yn{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=On.find(Ii);for(const t of n){const e=De(t),n=On.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Li}static get DefaultType(){return Mi}static get NAME(){return yi}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Bi).filter(t=>t!==this._element).map(t=>Pi.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(cn.trigger(this._element,bi).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Ci),this._element.classList.add(Ti),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ti),this._element.classList.add(Ci,Ei),this._element.style[e]="",cn.trigger(this._element,ki)},this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(cn.trigger(this._element,wi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ve(this._element),this._element.classList.add(Ti),this._element.classList.remove(Ci,Ei);for(const t of this._triggerArray){const e=Be(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ti),this._element.classList.add(Ci),cn.trigger(this._element,Ai)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ei)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Me(t.parent),t}_getDimension(){return this._element.classList.contains(Si)?Oi:Di}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ii);for(const e of t){const t=Be(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=On.find(Fi,this._config.parent);return On.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(xi,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=Pi.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}cn.on(document,"click.bs.collapse.data-api",Ii,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=De(this),n=On.find(e);for(const t of n)Pi.getOrCreateInstance(t,{toggle:!1}).toggle()}),qe(Pi);const Ni="dropdown",Ri="Escape",ji="Tab",Vi="ArrowUp",Hi="ArrowDown",zi=2,$i="hide.bs.dropdown",qi="hidden.bs.dropdown",Wi="show.bs.dropdown",Ui="shown.bs.dropdown",Yi="show",Ki="dropup",Gi="dropend",Xi="dropstart",Qi="dropup-center",Zi="dropdown-center",Ji='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ts=`${Ji}.${Yi}`,es=".dropdown-menu",ns=".navbar",is=".navbar-nav",ss=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rs=$e()?"top-end":"top-start",os=$e()?"top-start":"top-end",as=$e()?"bottom-end":"bottom-start",us=$e()?"bottom-start":"bottom-end",ls=$e()?"left-start":"right-start",cs=$e()?"right-start":"left-start",hs="top",ds="bottom",fs={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ps={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class gs extends yn{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=On.findOne(es,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return fs}static get DefaultType(){return ps}static get NAME(){return Ni}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ne(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!cn.trigger(this._element,Wi,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(is))for(const t of[].concat(...document.body.children))cn.on(t,"mouseover",je);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yi),this._element.classList.add(Yi),cn.trigger(this._element,Ui,t)}}hide(){if(Ne(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!cn.trigger(this._element,$i,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))cn.off(t,"mouseover",je);this._popper&&this._popper.destroy(),this._menu.classList.remove(Yi),this._element.classList.remove(Yi),this._element.setAttribute("aria-expanded","false"),mn.removeDataAttribute(this._menu,"popper"),cn.trigger(this._element,qi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Le(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ni.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===xe)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Le(this._config.reference)?t=Me(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Te(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Yi)}_getPlacement(){const t=this._parent;if(t.classList.contains(Gi))return ls;if(t.classList.contains(Xi))return cs;if(t.classList.contains(Qi))return hs;if(t.classList.contains(Zi))return ds;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Ki)?e?os:rs:e?us:as}_detectNavbar(){return null!==this._element.closest(ns)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(mn.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const n=On.find(ss,this._menu).filter(t=>Pe(t));n.length&&Ye(n,e,t===Hi,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=gs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===zi||"keyup"===t.type&&t.key!==ji)return;const e=On.find(ts);for(const n of e){const e=gs.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),s=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===ji||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const r={relatedTarget:e._element};"click"===t.type&&(r.clickEvent=t),e._completeHide(r)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===Ri,i=[Vi,Hi].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const s=On.findOne(Ji,t.delegateTarget.parentNode),r=gs.getOrCreateInstance(s);if(i)return t.stopPropagation(),r.show(),void r._selectMenuItem(t);r._isShown()&&(t.stopPropagation(),r.hide(),s.focus())}}cn.on(document,"keydown.bs.dropdown.data-api",Ji,gs.dataApiKeydownHandler),cn.on(document,"keydown.bs.dropdown.data-api",es,gs.dataApiKeydownHandler),cn.on(document,"click.bs.dropdown.data-api",gs.clearMenus),cn.on(document,"keyup.bs.dropdown.data-api",gs.clearMenus),cn.on(document,"click.bs.dropdown.data-api",Ji,function(t){t.preventDefault(),gs.getOrCreateInstance(this).toggle()}),qe(gs);const ms=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vs=".sticky-top",_s="padding-right",ys="margin-right";class bs{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,_s,e=>e+t),this._setElementAttributes(ms,_s,e=>e+t),this._setElementAttributes(vs,ys,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_s),this._resetElementAttributes(ms,_s),this._resetElementAttributes(vs,ys)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&mn.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=mn.getDataAttribute(t,e);null!==n?(mn.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(Le(t))e(t);else for(const n of On.find(t,this._element))e(n)}}const ks="backdrop",ws="fade",As="show",Es=`mousedown.bs.${ks}`,Cs={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ts={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class xs extends vn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Cs}static get DefaultType(){return Ts}static get NAME(){return ks}show(t){if(!this._config.isVisible)return void We(t);this._append();const e=this._getElement();this._config.isAnimated&&Ve(e),e.classList.add(As),this._emulateAnimation(()=>{We(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(As),this._emulateAnimation(()=>{this.dispose(),We(t)})):We(t)}dispose(){this._isAppended&&(cn.off(this._element,Es),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(ws),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Me(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),cn.on(t,Es,()=>{We(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ue(t,this._getElement(),this._config.isAnimated)}}const Fs="focustrap",Ss=".bs.focustrap",Os=`focusin${Ss}`,Ds=`keydown.tab${Ss}`,Bs="Tab",Is="forward",Ls="backward",Ms={autofocus:!0,trapElement:null},Ps={autofocus:"boolean",trapElement:"element"};class Ns extends vn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ms}static get DefaultType(){return Ps}static get NAME(){return Fs}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),cn.off(document,Ss),cn.on(document,Os,t=>this._handleFocusin(t)),cn.on(document,Ds,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,cn.off(document,Ss))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=On.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===Ls?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Bs&&(this._lastTabNavDirection=t.shiftKey?Ls:Is)}}const Rs="modal",js=".bs.modal",Vs="Escape",Hs=`hide${js}`,zs=`hidePrevented${js}`,$s=`hidden${js}`,qs=`show${js}`,Ws=`shown${js}`,Us=`resize${js}`,Ys=`mousedown.dismiss${js}`,Ks=`keydown.dismiss${js}`,Gs=`click${js}.data-api`,Xs="modal-open",Qs="fade",Zs="show",Js="modal-static",tr=".modal-dialog",er=".modal-body",nr={backdrop:!0,focus:!0,keyboard:!0},ir={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class sr extends yn{constructor(t,e){super(t,e),this._dialog=On.findOne(tr,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new bs,this._addEventListeners()}static get Default(){return nr}static get DefaultType(){return ir}static get NAME(){return Rs}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;cn.trigger(this._element,qs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Xs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;cn.trigger(this._element,Hs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zs),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])cn.off(t,js);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new xs({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ns({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=On.findOne(er,this._dialog);e&&(e.scrollTop=0),Ve(this._element),this._element.classList.add(Zs);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,cn.trigger(this._element,Ws,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){cn.on(this._element,Ks,t=>{if(t.key===Vs)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()}),cn.on(window,Us,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),cn.on(this._element,Ys,t=>{t.target===t.currentTarget&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Xs),this._resetAdjustments(),this._scrollBar.reset(),cn.trigger(this._element,$s)})}_isAnimated(){return this._element.classList.contains(Qs)}_triggerBackdropTransition(){if(cn.trigger(this._element,zs).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Js)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Js),this._queueCallback(()=>{this._element.classList.remove(Js),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=$e()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=$e()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=sr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}})}}cn.on(document,Gs,'[data-bs-toggle="modal"]',function(t){const e=Be(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),cn.one(e,qs,t=>{t.defaultPrevented||cn.one(e,$s,()=>{Pe(this)&&this.focus()})});const n=On.findOne(".modal.show");n&&sr.getInstance(n).hide(),sr.getOrCreateInstance(e).toggle(this)}),bn(sr),qe(sr);const rr="offcanvas",or="Escape",ar="show",ur="showing",lr="hiding",cr="offcanvas-backdrop",hr="show.bs.offcanvas",dr="shown.bs.offcanvas",fr="hide.bs.offcanvas",pr="hidePrevented.bs.offcanvas",gr="hidden.bs.offcanvas",mr="keydown.dismiss.bs.offcanvas",vr={backdrop:!0,keyboard:!0,scroll:!1},_r={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class yr extends yn{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return vr}static get DefaultType(){return _r}static get NAME(){return rr}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(cn.trigger(this._element,hr,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new bs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ur);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ar),this._element.classList.remove(ur),cn.trigger(this._element,dr,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;if(cn.trigger(this._element,fr).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(lr),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(ar,lr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new bs).reset(),cn.trigger(this._element,gr)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new xs({className:cr,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():cn.trigger(this._element,pr)}:null})}_initializeFocusTrap(){return new Ns({trapElement:this._element})}_addEventListeners(){cn.on(this._element,mr,t=>{t.key===or&&(this._config.keyboard?this.hide():cn.trigger(this._element,pr))})}static jQueryInterface(t){return this.each(function(){const e=yr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}cn.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){const e=Be(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ne(this))return;cn.one(e,gr,()=>{Pe(this)&&this.focus()});const n=On.findOne(".offcanvas.show");n&&n!==e&&yr.getInstance(n).hide(),yr.getOrCreateInstance(e).toggle(this)}),cn.on(window,"load.bs.offcanvas.data-api",()=>{for(const t of On.find(".offcanvas.show"))yr.getOrCreateInstance(t).show()}),cn.on(window,"resize.bs.offcanvas",()=>{for(const t of On.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&yr.getOrCreateInstance(t).hide()}),bn(yr),qe(yr);const br=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),kr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,wr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ar=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!br.has(n)||Boolean(kr.test(t.nodeValue)||wr.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))},Er={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const Cr="TemplateFactory",Tr={allowList:Er,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},xr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Fr={entry:"(string|element|function|null)",selector:"(string|element)"};class Sr extends vn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Tr}static get DefaultType(){return xr}static get NAME(){return Cr}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},Fr)}_setContent(t,e,n){const i=On.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?Le(e)?this._putElementInTemplate(Me(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const t of s){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[n]||[]);for(const e of i)Ar(e,s)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Or="tooltip",Dr=new Set(["sanitize","allowList","sanitizeFn"]),Br="fade",Ir="show",Lr=".tooltip-inner",Mr=".modal",Pr="hide.bs.modal",Nr="hover",Rr="focus",jr="click",Vr="manual",Hr="hide",zr="hidden",$r="show",qr="shown",Wr="inserted",Ur="click",Yr="focusin",Kr="focusout",Gr="mouseenter",Xr="mouseleave",Qr={AUTO:"auto",TOP:"top",RIGHT:$e()?"left":"right",BOTTOM:"bottom",LEFT:$e()?"right":"left"},Zr={allowList:Er,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Jr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class to extends yn{constructor(t,e){if(void 0===xe)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return Zr}static get DefaultType(){return Jr}static get NAME(){return Or}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled){if(t){const e=this._initializeOnDelegatedTarget(t);return e._activeTrigger.click=!e._activeTrigger.click,void(e._isWithActiveTrigger()?e._enter():e._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),cn.off(this._element.closest(Mr),Pr,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=cn.trigger(this._element,this.constructor.eventName($r)),e=(Re(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this.tip&&(this.tip.remove(),this.tip=null);const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),cn.trigger(this._element,this.constructor.eventName(Wr))),this._popper?this._popper.update():this._popper=this._createPopper(n),n.classList.add(Ir),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))cn.on(t,"mouseover",je);this._queueCallback(()=>{const t=this._isHovered;this._isHovered=!1,cn.trigger(this._element,this.constructor.eventName(qr)),t&&this._leave()},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(cn.trigger(this._element,this.constructor.eventName(Hr)).defaultPrevented)return;const t=this._getTipElement();if(t.classList.remove(Ir),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))cn.off(t,"mouseover",je);this._activeTrigger[jr]=!1,this._activeTrigger[Rr]=!1,this._activeTrigger[Nr]=!1,this._isHovered=!1;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||t.remove(),this._element.removeAttribute("aria-describedby"),cn.trigger(this._element,this.constructor.eventName(zr)),this._disposePopper())},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Br,Ir),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=Se(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Br),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Sr({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Lr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._config.originalTitle}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Br)}_isShown(){return this.tip&&this.tip.classList.contains(Ir)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,n=Qr[e.toUpperCase()];return Te(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)cn.on(this._element,this.constructor.eventName(Ur),this._config.selector,t=>this.toggle(t));else if(e!==Vr){const t=e===Nr?this.constructor.eventName(Gr):this.constructor.eventName(Yr),n=e===Nr?this.constructor.eventName(Xr):this.constructor.eventName(Kr);cn.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Rr:Nr]=!0,e._enter()}),cn.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Rr:Nr]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=(()=>{this._element&&this.hide()}),cn.on(this._element.closest(Mr),Pr,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._config.originalTitle;t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=mn.getDataAttributes(this._element);for(const t of Object.keys(e))Dr.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Me(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.originalTitle=this._element.getAttribute("title")||"","number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=to.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}qe(to);const eo="popover",no=".popover-header",io=".popover-body",so={...to.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ro={...to.DefaultType,content:"(null|string|element|function)"};class oo extends to{static get Default(){return so}static get DefaultType(){return ro}static get NAME(){return eo}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[no]:this._getTitle(),[io]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=oo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}qe(oo);const ao="scrollspy",uo="activate.bs.scrollspy",lo="click.bs.scrollspy",co="dropdown-item",ho="active",fo="[href]",po=".nav, .list-group",go=".nav-link, .nav-item > .nav-link, .list-group-item",mo=".dropdown",vo=".dropdown-toggle",_o={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null},yo={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element"};class bo extends yn{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _o}static get DefaultType(){return yo}static get NAME(){return ao}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Me(t.target)||document.body,t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(cn.off(this._config.target,lo),cn.on(this._config.target,lo,fo,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:[.1,.5,1],rootMargin:this._getRootMargin()};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const t=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(n(r),!i)return}else s||t||n(r)}}_getRootMargin(){return this._config.offset?`${this._config.offset}px 0px -30%`:this._config.rootMargin}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=On.find(fo,this._config.target);for(const e of t){if(!e.hash||Ne(e))continue;const t=On.findOne(e.hash,this._element);Pe(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(ho),this._activateParents(t),cn.trigger(this._element,uo,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(co))On.findOne(vo,t.closest(mo)).classList.add(ho);else for(const e of On.parents(t,po))for(const t of On.prev(e,go))t.classList.add(ho)}_clearActiveClass(t){t.classList.remove(ho);const e=On.find(`${fo}.${ho}`,t);for(const t of e)t.classList.remove(ho)}static jQueryInterface(t){return this.each(function(){const e=bo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}cn.on(window,"load.bs.scrollspy.data-api",()=>{for(const t of On.find('[data-bs-spy="scroll"]'))bo.getOrCreateInstance(t)}),qe(bo);const ko="tab",wo="hide.bs.tab",Ao="hidden.bs.tab",Eo="show.bs.tab",Co="shown.bs.tab",To="keydown.bs.tab",xo="ArrowLeft",Fo="ArrowRight",So="ArrowUp",Oo="ArrowDown",Do="active",Bo="fade",Io="show",Lo="dropdown",Mo=".dropdown-toggle",Po=".dropdown-menu",No=".dropdown-item",Ro='.list-group, .nav, [role="tablist"]',jo=".nav-item, .list-group-item",Vo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ho=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Vo}`,zo=`.${Do}[data-bs-toggle="tab"], .${Do}[data-bs-toggle="pill"], .${Do}[data-bs-toggle="list"]`;class $o extends yn{constructor(t){super(t),this._parent=this._element.closest(Ro),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),cn.on(this._element,To,t=>this._keydown(t)))}static get NAME(){return ko}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?cn.trigger(e,wo,{relatedTarget:t}):null;cn.trigger(t,Eo,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Do),this._activate(Be(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),cn.trigger(t,Co,{relatedTarget:e})):t.classList.add(Io)},t,t.classList.contains(Bo))}_deactivate(t,e){if(!t)return;t.classList.remove(Do),t.blur(),this._deactivate(Be(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),cn.trigger(t,Ao,{relatedTarget:e})):t.classList.remove(Io)},t,t.classList.contains(Bo))}_keydown(t){if(![xo,Fo,So,Oo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[Fo,Oo].includes(t.key),n=Ye(this._getChildren().filter(t=>!Ne(t)),t.target,e,!0);n&&$o.getOrCreateInstance(n).show()}_getChildren(){return On.find(Ho,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Be(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(Lo))return;const i=(t,i)=>{const s=On.findOne(t,n);s&&s.classList.toggle(i,e)};i(Mo,Do),i(Po,Io),i(No,Do),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Do)}_getInnerElement(t){return t.matches(Ho)?t:On.findOne(Ho,t)}_getOuterElement(t){return t.closest(jo)||t}static jQueryInterface(t){return this.each(function(){const e=$o.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}cn.on(document,"click.bs.tab",Vo,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ne(this)||$o.getOrCreateInstance(this).show()}),cn.on(window,"load.bs.tab",()=>{for(const t of On.find(zo))$o.getOrCreateInstance(t)}),qe($o);const qo="toast",Wo="mouseover.bs.toast",Uo="mouseout.bs.toast",Yo="focusin.bs.toast",Ko="focusout.bs.toast",Go="hide.bs.toast",Xo="hidden.bs.toast",Qo="show.bs.toast",Zo="shown.bs.toast",Jo="fade",ta="hide",ea="show",na="showing",ia={animation:"boolean",autohide:"boolean",delay:"number"},sa={animation:!0,autohide:!0,delay:5e3};class ra extends yn{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return sa}static get DefaultType(){return ia}static get NAME(){return qo}show(){if(cn.trigger(this._element,Qo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Jo);this._element.classList.remove(ta),Ve(this._element),this._element.classList.add(ea,na),this._queueCallback(()=>{this._element.classList.remove(na),cn.trigger(this._element,Zo),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(cn.trigger(this._element,Go).defaultPrevented)return;this._element.classList.add(na),this._queueCallback(()=>{this._element.classList.add(ta),this._element.classList.remove(na,ea),cn.trigger(this._element,Xo)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ea),super.dispose()}isShown(){return this._element.classList.contains(ea)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){cn.on(this._element,Wo,t=>this._onInteraction(t,!0)),cn.on(this._element,Uo,t=>this._onInteraction(t,!1)),cn.on(this._element,Yo,t=>this._onInteraction(t,!0)),cn.on(this._element,Ko,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ra.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}bn(ra),qe(ra);var oa=Object.freeze({__proto__:null,Alert:Tn,Button:Sn,Carousel:_i,Collapse:Pi,Dropdown:gs,Modal:sr,Offcanvas:yr,Popover:oo,ScrollSpy:bo,Tab:$o,Toast:ra,Tooltip:to});[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(t){return new gs(t)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new to(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(t){var e,n,i={delay:{show:50,hide:50},html:null!==(e="true"===t.getAttribute("data-bs-html"))&&void 0!==e&&e,placement:null!==(n=t.getAttribute("data-bs-placement"))&&void 0!==n?n:"auto"};return new oo(t,i)}),[].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]')).map(function(t){t.addEventListener("click",function(e){e.stopPropagation(),t.classList.toggle("active")})});var aa;(aa=window.location.hash)&&[].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter(function(t){return t.hash===aa}).map(function(t){new $o(t).show()}),[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]')).map(function(t){return new ra(t)}),window.bootstrap=oa});
|