casjaysdev-jekyll-theme 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +0 -0
  3. data/.gitignore +96 -17
  4. data/.prettierrc.json +8 -0
  5. data/.vscode/settings.json +6 -0
  6. data/Gemfile +25 -15
  7. data/LICENSE.md +1 -1
  8. data/_config.yml +195 -105
  9. data/_data/nav/external.yml +1 -1
  10. data/_includes/ads/adsense.html +15 -0
  11. data/_includes/analytics/google.html +13 -0
  12. data/_includes/{casjaysdev/piwik.html → analytics/matomo.html} +5 -6
  13. data/_includes/casjays-footer.html +61 -43
  14. data/_includes/casjays-header.html +39 -1
  15. data/_includes/casjaysdev/clock.html +3 -12
  16. data/_includes/casjaysdev/eucookie.html +21 -30
  17. data/_includes/casjaysdev/legal.html +17 -38
  18. data/_includes/casjaysdev/rocketchat.html +3 -4
  19. data/_includes/casjaysdev/sharethis.html +6 -42
  20. data/_includes/casjaysdev/socialfooter.html +9 -85
  21. data/_includes/casjaysdev/sociallinks.html +51 -79
  22. data/_includes/casjaysdev/statcounter.html +8 -25
  23. data/_includes/casjaysdev/theme.html +9 -11
  24. data/_includes/casjaysdev/widgetbot.html +3 -1
  25. data/_includes/disqus.html +3 -7
  26. data/_includes/functions/blog.html +68 -0
  27. data/_includes/functions/default.html +3 -0
  28. data/{_pages → _includes/functions}/gallery/index.html +3 -5
  29. data/_includes/functions/gallery.html +44 -0
  30. data/_includes/functions/recipes.html +68 -0
  31. data/_includes/github.html +17 -7
  32. data/_includes/nav/external.html +10 -11
  33. data/_includes/nav/internal.html +14 -10
  34. data/_includes/nav/sidebars/right.html +2 -1
  35. data/_includes/nav/top.html +12 -19
  36. data/_includes/themes/blank/layouts/default.html +5 -20
  37. data/_includes/themes/blank/navigation.html +16 -18
  38. data/_includes/themes/hacker/layouts/default.html +32 -60
  39. data/_includes/themes/hacker/meta.html +2 -95
  40. data/_includes/themes/hacker/page_header.html +27 -0
  41. data/_layouts/default.html +32 -13
  42. data/_layouts/page.html +3 -3
  43. data/_layouts/post.html +1 -1
  44. data/_layouts/recipes.html +43 -0
  45. data/_pages/about/index.html +3 -5
  46. data/_pages/blog/catergories/catergories.html +6 -6
  47. data/_pages/blog/index.html +48 -44
  48. data/_pages/blog/tags/tags.html +6 -6
  49. data/_pages/contact/index.html +62 -160
  50. data/_pages/index.html +102 -7
  51. data/_pages/rss/index.xml +1 -0
  52. data/_posts/2021-07-31-welcome-to-your-new-site.md +14 -0
  53. data/_posts/2022-07-31-templates-update.md +14 -0
  54. data/_posts/2023-04-24-theme-rewrite.md +14 -0
  55. data/assets/css/bootstrap/bootstrap-icons.css +5994 -2002
  56. data/assets/css/bootstrap/font-awesome.css +6812 -3
  57. data/assets/css/errorpages/errorpages.css +8 -7
  58. data/assets/css/gh/ribbon.css +31 -18
  59. data/assets/css/hacker.css +41 -54
  60. data/assets/css/other/forms-min.css +316 -1
  61. data/assets/js/errorpages/homepage.js +4 -2
  62. data/assets/js/errorpages/isup.js +5 -2
  63. data/assets/js/errorpages/loaddomain.js +5 -2
  64. data/assets/js/fetch-url.js +1 -3
  65. data/assets/js/utils/bootstrap.bundle.min.js +4181 -6
  66. data/assets/js/utils/fetch.min.js +467 -1
  67. data/casjaysdev-jekyll-theme.gemspec +16 -6
  68. data/error/403.html +49 -0
  69. data/error/404.html +39 -34
  70. data/error/418.html +48 -0
  71. data/error/500.html +39 -34
  72. data/error/502.html +49 -0
  73. data/error/503.html +49 -0
  74. data/error/504.html +49 -0
  75. data/health/index.html +7 -0
  76. data/health/json +3 -0
  77. data/health/txt +1 -0
  78. metadata +259 -22
  79. data/.editorconfig +0 -8
  80. data/CNAME +0 -1
  81. data/Gemfile.lock +0 -310
  82. data/_includes/casjaysdev/ads.html +0 -24
  83. data/_includes/casjaysdev/google.html +0 -32
  84. data/_includes/image-gallery.html +0 -30
  85. data/_layouts/errors.html +0 -26
  86. data/images/.keep +0 -1
@@ -1,7 +1,4182 @@
1
1
  /*!
2
- * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
3
- * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- */
6
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),s=t=>{t.dispatchEvent(new Event(i))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=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?c(t.parentNode):null},h=()=>{},d=t=>{t.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=u();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()})),f.push(e)):e()},g=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,_=(t,e,n=!0)=>{if(!n)return void g(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{r||s(e)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=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 O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function x(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function k(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function L(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=N(t);return C.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=L(e,i,n);if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return j(s,{delegateTarget:r}),n.oneOff&&P.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return j(n,{delegateTarget:t}),i.oneOff&&P.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function D(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function I(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&D(t,e,i,r.callable,r.delegationSelector)}function N(t){return t=t.replace(y,""),T[t]||t}const P={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=L(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))I(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(w,"");a&&!e.includes(s)||D(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;D(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=u();let s=null,o=!0,r=!0,a=!1;e!==N(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=j(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function j(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function M(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 F(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const H={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${F(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${F(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=M(t.dataset[n])}return e},getDataAttribute:(t,e)=>M(t.getAttribute(`data-bs-${F(e)}`))};class ${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 i=o(e)?H.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?H.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],r=o(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}var i}}class W extends ${constructor(t,i){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(i),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){_(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.0-alpha2"}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 B=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return n(e)},z={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 i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.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=>!l(t)&&a(t)))},getSelectorFromElement(t){const e=B(t);return e&&z.findOne(e)?e:null},getElementFromSelector(t){const e=B(t);return e?z.findOne(e):null},getMultipleElementsFromSelector(t){const e=B(t);return e?z.find(e):[]}},R=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;P.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const s=z.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))};class q extends W{static get NAME(){return"alert"}close(){if(P.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),P.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=q.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)}}))}}R(q,"close"),m(q);const V='[data-bs-toggle="button"]';class K extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=K.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}P.on(document,"click.bs.button.data-api",V,(t=>{t.preventDefault();const e=t.target.closest(V);K.getOrCreateInstance(e).toggle()})),m(K);const Q={endCallback:null,leftCallback:null,rightCallback:null},X={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Y extends ${constructor(t,e){super(),this._element=t,t&&Y.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Q}static get DefaultType(){return X}static get NAME(){return"swipe"}dispose(){P.off(this._element,".bs.swipe")}_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(),g(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<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(P.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),P.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classList.add("pointer-event")):(P.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),P.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),P.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const U="next",G="prev",J="left",Z="right",tt="slid.bs.carousel",et="carousel",it="active",nt={ArrowLeft:Z,ArrowRight:J},st={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ot={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class rt extends W{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===et&&this.cycle()}static get Default(){return st}static get DefaultType(){return ot}static get NAME(){return"carousel"}next(){this._slide(U)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(G)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?P.one(this._element,tt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void P.one(this._element,tt,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?U:G;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&P.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(P.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),P.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&Y.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of z.find(".carousel-item img",this._element))P.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(J)),rightCallback:()=>this._slide(this._directionToOrder(Z)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Y(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=nt[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=z.findOne(".active",this._indicatorsElement);e.classList.remove(it),e.removeAttribute("aria-current");const i=z.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(it),i.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 i=this._getActive(),n=t===U,s=e||b(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>P.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),d(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(it),i.classList.remove(it,c,l),this._isSliding=!1,r(tt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(".active.carousel-item",this._element)}_getItems(){return z.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return p()?t===J?G:U:t===J?U:G}_orderToDirection(t){return p()?t===G?J:Z:t===G?Z:J}static jQueryInterface(t){return this.each((function(){const e=rt.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)}))}}P.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=z.getElementFromSelector(this);if(!e||!e.classList.contains(et))return;t.preventDefault();const i=rt.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===H.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),P.on(window,"load.bs.carousel.data-api",(()=>{const t=z.find('[data-bs-ride="carousel"]');for(const e of t)rt.getOrCreateInstance(e)})),m(rt);const at="show",lt="collapse",ct="collapsing",ht='[data-bs-toggle="collapse"]',dt={parent:null,toggle:!0},ut={parent:"(null|element)",toggle:"boolean"};class ft extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=z.find(ht);for(const t of i){const e=z.getSelectorFromElement(t),i=z.find(e).filter((t=>t===this._element));null!==e&&i.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 dt}static get DefaultType(){return ut}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>ft.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(P.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(lt),this._element.classList.add(ct),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(lt,at),this._element.style[e]="",P.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(P.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,d(this._element),this._element.classList.add(ct),this._element.classList.remove(lt,at);for(const t of this._triggerArray){const e=z.getElementFromSelector(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(ct),this._element.classList.add(lt),P.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(at)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ht);for(const e of t){const t=z.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=z.find(":scope .collapse .collapse",this._config.parent);return z.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}P.on(document,"click.bs.collapse.data-api",ht,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of z.getMultipleElementsFromSelector(this))ft.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(ft);var pt="top",mt="bottom",gt="right",_t="left",bt="auto",vt=[pt,mt,gt,_t],yt="start",wt="end",At="clippingParents",Et="viewport",Tt="popper",Ct="reference",Ot=vt.reduce((function(t,e){return t.concat([e+"-"+yt,e+"-"+wt])}),[]),xt=[].concat(vt,[bt]).reduce((function(t,e){return t.concat([e,e+"-"+yt,e+"-"+wt])}),[]),kt="beforeRead",Lt="read",St="afterRead",Dt="beforeMain",It="main",Nt="afterMain",Pt="beforeWrite",jt="write",Mt="afterWrite",Ft=[kt,Lt,St,Dt,It,Nt,Pt,jt,Mt];function Ht(t){return t?(t.nodeName||"").toLowerCase():null}function $t(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Wt(t){return t instanceof $t(t).Element||t instanceof Element}function Bt(t){return t instanceof $t(t).HTMLElement||t instanceof HTMLElement}function zt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof $t(t).ShadowRoot||t instanceof ShadowRoot)}const Rt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Bt(s)&&Ht(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Bt(n)&&Ht(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function qt(t){return t.split("-")[0]}var Vt=Math.max,Kt=Math.min,Qt=Math.round;function Xt(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Yt(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Ut(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&Bt(t)&&(s=t.offsetWidth>0&&Qt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Qt(n.height)/t.offsetHeight||1);var r=(Wt(t)?$t(t):window).visualViewport,a=!Yt()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function Gt(t){var e=Ut(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Jt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&zt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zt(t){return $t(t).getComputedStyle(t)}function te(t){return["table","td","th"].indexOf(Ht(t))>=0}function ee(t){return((Wt(t)?t.ownerDocument:t.document)||window.document).documentElement}function ie(t){return"html"===Ht(t)?t:t.assignedSlot||t.parentNode||(zt(t)?t.host:null)||ee(t)}function ne(t){return Bt(t)&&"fixed"!==Zt(t).position?t.offsetParent:null}function se(t){for(var e=$t(t),i=ne(t);i&&te(i)&&"static"===Zt(i).position;)i=ne(i);return i&&("html"===Ht(i)||"body"===Ht(i)&&"static"===Zt(i).position)?e:i||function(t){var e=/firefox/i.test(Xt());if(/Trident/i.test(Xt())&&Bt(t)&&"fixed"===Zt(t).position)return null;var i=ie(t);for(zt(i)&&(i=i.host);Bt(i)&&["html","body"].indexOf(Ht(i))<0;){var n=Zt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function oe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function re(t,e,i){return Vt(t,Kt(e,i))}function ae(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function le(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const ce={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=qt(i.placement),l=oe(a),c=[_t,gt].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return ae("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:le(t,vt))}(s.padding,i),d=Gt(o),u="y"===l?pt:_t,f="y"===l?mt:gt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=se(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,A=re(v,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Jt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(t){return t.split("-")[1]}var de={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=_t,y=pt,w=window;if(c){var A=se(i),E="clientHeight",T="clientWidth";A===$t(i)&&"static"!==Zt(A=ee(i)).position&&"absolute"===a&&(E="scrollHeight",T="scrollWidth"),(s===pt||(s===_t||s===gt)&&o===wt)&&(y=mt,m-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1),s!==_t&&(s!==pt&&s!==mt||o!==wt)||(v=gt,f-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[T])-n.width,f*=l?1:-1)}var C,O=Object.assign({position:a},c&&de),x=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Qt(i*s)/s||0,y:Qt(n*s)/s||0}}({x:f,y:m},$t(i)):{x:f,y:m};return f=x.x,m=x.y,l?Object.assign({},O,((C={})[y]=b?"0":"",C[v]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((e={})[y]=b?m+"px":"",e[v]=_?f+"px":"",e.transform="",e))}const fe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:qt(e.placement),variation:he(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,ue(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ue(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var pe={passive:!0};const me={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=$t(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,pe)})),a&&l.addEventListener("resize",i.update,pe),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,pe)})),a&&l.removeEventListener("resize",i.update,pe)}},data:{}};var ge={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(t){return t.replace(/left|right|bottom|top/g,(function(t){return ge[t]}))}var be={start:"end",end:"start"};function ve(t){return t.replace(/start|end/g,(function(t){return be[t]}))}function ye(t){var e=$t(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function we(t){return Ut(ee(t)).left+ye(t).scrollLeft}function Ae(t){var e=Zt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ee(t){return["html","body","#document"].indexOf(Ht(t))>=0?t.ownerDocument.body:Bt(t)&&Ae(t)?t:Ee(ie(t))}function Te(t,e){var i;void 0===e&&(e=[]);var n=Ee(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=$t(n),r=s?[o].concat(o.visualViewport||[],Ae(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Te(ie(r)))}function Ce(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Oe(t,e,i){return e===Et?Ce(function(t,e){var i=$t(t),n=ee(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Yt();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+we(t),y:l}}(t,i)):Wt(e)?function(t,e){var i=Ut(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ce(function(t){var e,i=ee(t),n=ye(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Vt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Vt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+we(t),l=-n.scrollTop;return"rtl"===Zt(s||i).direction&&(a+=Vt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(ee(t)))}function xe(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?qt(s):null,r=s?he(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case pt:e={x:a,y:i.y-n.height};break;case mt:e={x:a,y:i.y+i.height};break;case gt:e={x:i.x+i.width,y:l};break;case _t:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?oe(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case yt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case wt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function ke(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?At:a,c=i.rootBoundary,h=void 0===c?Et:c,d=i.elementContext,u=void 0===d?Tt:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=ae("number"!=typeof g?g:le(g,vt)),b=u===Tt?Ct:Tt,v=t.rects.popper,y=t.elements[p?b:u],w=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=Te(ie(t)),i=["absolute","fixed"].indexOf(Zt(t).position)>=0&&Bt(t)?se(t):t;return Wt(i)?e.filter((function(t){return Wt(t)&&Jt(t,i)&&"body"!==Ht(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=Oe(t,i,n);return e.top=Vt(s.top,e.top),e.right=Kt(s.right,e.right),e.bottom=Kt(s.bottom,e.bottom),e.left=Vt(s.left,e.left),e}),Oe(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Wt(y)?y:y.contextElement||ee(t.elements.popper),l,h,r),A=Ut(t.elements.reference),E=xe({reference:A,element:v,strategy:"absolute",placement:s}),T=Ce(Object.assign({},v,E)),C=u===Tt?T:A,O={top:w.top-C.top+_.top,bottom:C.bottom-w.bottom+_.bottom,left:w.left-C.left+_.left,right:C.right-w.right+_.right},x=t.modifiersData.offset;if(u===Tt&&x){var k=x[s];Object.keys(O).forEach((function(t){var e=[gt,mt].indexOf(t)>=0?1:-1,i=[pt,mt].indexOf(t)>=0?"y":"x";O[t]+=k[i]*e}))}return O}function Le(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?xt:l,h=he(n),d=h?a?Ot:Ot.filter((function(t){return he(t)===h})):vt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=ke(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[qt(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const Se={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=qt(g),b=l||(_!==g&&p?function(t){if(qt(t)===bt)return[];var e=_e(t);return[ve(t),e,ve(e)]}(g):[_e(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat(qt(i)===bt?Le(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,T=v[0],C=0;C<v.length;C++){var O=v[C],x=qt(O),k=he(O)===yt,L=[pt,mt].indexOf(x)>=0,S=L?"width":"height",D=ke(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),I=L?k?gt:_t:k?mt:pt;y[S]>w[S]&&(I=_e(I));var N=_e(I),P=[];if(o&&P.push(D[x]<=0),a&&P.push(D[I]<=0,D[N]<=0),P.every((function(t){return t}))){T=O,E=!1;break}A.set(O,P)}if(E)for(var j=function(t){var e=v.find((function(e){var i=A.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},M=p?3:1;M>0&&"break"!==j(M);M--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function De(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ie(t){return[pt,gt,mt,_t].some((function(e){return t[e]>=0}))}const Ne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=ke(e,{elementContext:"reference"}),a=ke(e,{altBoundary:!0}),l=De(r,n),c=De(a,s,o),h=Ie(l),d=Ie(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Pe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=xt.reduce((function(t,i){return t[i]=function(t,e,i){var n=qt(t),s=[_t,pt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[_t,gt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},je={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ke(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=qt(e.placement),b=he(e.placement),v=!b,y=oe(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(o){var L,S="y"===y?pt:_t,D="y"===y?mt:gt,I="y"===y?"height":"width",N=A[y],P=N+g[S],j=N-g[D],M=f?-T[I]/2:0,F=b===yt?E[I]:T[I],H=b===yt?-T[I]:-E[I],$=e.elements.arrow,W=f&&$?Gt($):{width:0,height:0},B=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[S],R=B[D],q=re(0,E[I],W[I]),V=v?E[I]/2-M-q-z-O.mainAxis:F-q-z-O.mainAxis,K=v?-E[I]/2+M+q+R+O.mainAxis:H+q+R+O.mainAxis,Q=e.elements.arrow&&se(e.elements.arrow),X=Q?"y"===y?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(L=null==x?void 0:x[y])?L:0,U=N+K-Y,G=re(f?Kt(P,N+V-Y-X):P,N,f?Vt(j,U):j);A[y]=G,k[y]=G-N}if(a){var J,Z="x"===y?pt:_t,tt="x"===y?mt:gt,et=A[w],it="y"===w?"height":"width",nt=et+g[Z],st=et-g[tt],ot=-1!==[pt,_t].indexOf(_),rt=null!=(J=null==x?void 0:x[w])?J:0,at=ot?nt:et-E[it]-T[it]-rt+O.altAxis,lt=ot?et+E[it]+T[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=re(t,e,i);return n>i?i:n}(at,et,lt):re(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function Fe(t,e,i){void 0===i&&(i=!1);var n,s,o=Bt(e),r=Bt(e)&&function(t){var e=t.getBoundingClientRect(),i=Qt(e.width)/t.offsetWidth||1,n=Qt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=ee(e),l=Ut(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==Ht(e)||Ae(a))&&(c=(n=e)!==$t(n)&&Bt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ye(n)),Bt(e)?((h=Ut(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=we(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function He(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var $e={placement:"bottom",modifiers:[],strategy:"absolute"};function We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Be(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?$e:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$e,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Wt(t)?Te(t):t.contextElement?Te(t.contextElement):[],popper:Te(e)};var r,c,u=function(t){var e=He(t);return Ft.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(We(e,i)){a.rects={reference:Fe(e,se(i),"fixed"===a.options.strategy),popper:Gt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!We(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var ze=Be(),Re=Be({defaultModifiers:[me,je,fe,Rt]}),qe=Be({defaultModifiers:[me,je,fe,Rt,Pe,Se,Me,ce,Ne]});const Ve=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Nt,afterRead:St,afterWrite:Mt,applyStyles:Rt,arrow:ce,auto:bt,basePlacements:vt,beforeMain:Dt,beforeRead:kt,beforeWrite:Pt,bottom:mt,clippingParents:At,computeStyles:fe,createPopper:qe,createPopperBase:ze,createPopperLite:Re,detectOverflow:ke,end:wt,eventListeners:me,flip:Se,hide:Ne,left:_t,main:It,modifierPhases:Ft,offset:Pe,placements:xt,popper:Tt,popperGenerator:Be,popperOffsets:je,preventOverflow:Me,read:Lt,reference:Ct,right:gt,start:yt,top:pt,variationPlacements:Ot,viewport:Et,write:jt},Symbol.toStringTag,{value:"Module"})),Ke="dropdown",Qe="ArrowUp",Xe="ArrowDown",Ye="click.bs.dropdown.data-api",Ue="keydown.bs.dropdown.data-api",Ge="show",Je='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ze=`${Je}.show`,ti=".dropdown-menu",ei=p()?"top-end":"top-start",ii=p()?"top-start":"top-end",ni=p()?"bottom-end":"bottom-start",si=p()?"bottom-start":"bottom-end",oi=p()?"left-start":"right-start",ri=p()?"right-start":"left-start",ai={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},li={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ci extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,ti)[0]||z.prev(this._element,ti)[0]||z.findOne(ti,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ai}static get DefaultType(){return li}static get NAME(){return Ke}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!P.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))P.on(t,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ge),this._element.classList.add(Ge),P.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(l(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(!P.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))P.off(t,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ge),this._element.classList.remove(Ge),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),P.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ke.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Ve)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=qe(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ge)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return oi;if(t.classList.contains("dropstart"))return ri;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ii:ei:e?si:ni}_detectNavbar(){return null!==this._element.closest(".navbar")}_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)&&(H.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...g(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&b(i,e,t===Xe,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=ci.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(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=z.find(Ze);for(const i of e){const e=ci.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Qe,Xe].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Je)?this:z.prev(this,Je)[0]||z.next(this,Je)[0]||z.findOne(Je,t.delegateTarget.parentNode),o=ci.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}P.on(document,Ue,Je,ci.dataApiKeydownHandler),P.on(document,Ue,ti,ci.dataApiKeydownHandler),P.on(document,Ye,ci.clearMenus),P.on(document,"keyup.bs.dropdown.data-api",ci.clearMenus),P.on(document,Ye,Je,(function(t){t.preventDefault(),ci.getOrCreateInstance(this).toggle()})),m(ci);const hi="show",di="mousedown.bs.backdrop",ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},fi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pi extends ${constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ui}static get DefaultType(){return fi}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void g(t);this._append();const e=this._getElement();this._config.isAnimated&&d(e),e.classList.add(hi),this._emulateAnimation((()=>{g(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(hi),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}dispose(){this._isAppended&&(P.off(this._element,di),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("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=r(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),P.on(t,di,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){_(t,this._getElement(),this._config.isAnimated)}}const mi=".bs.focustrap",gi="backward",_i={autofocus:!0,trapElement:null},bi={autofocus:"boolean",trapElement:"element"};class vi extends ${constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _i}static get DefaultType(){return bi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),P.off(document,mi),P.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),P.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,P.off(document,mi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=z.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===gi?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?gi:"forward")}}const yi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wi=".sticky-top",Ai="padding-right",Ei="margin-right";class Ti{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,Ai,(e=>e+t)),this._setElementAttributes(yi,Ai,(e=>e+t)),this._setElementAttributes(wi,Ei,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ai),this._resetElementAttributes(yi,Ai),this._resetElementAttributes(wi,Ei)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&H.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=H.getDataAttribute(t,e);null!==i?(H.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of z.find(t,this._element))e(i)}}const Ci=".bs.modal",Oi="hidden.bs.modal",xi="show.bs.modal",ki="modal-open",Li="show",Si="modal-static",Di={backdrop:!0,focus:!0,keyboard:!0},Ii={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ni extends W{constructor(t,e){super(t,e),this._dialog=z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ti,this._addEventListeners()}static get Default(){return Di}static get DefaultType(){return Ii}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||P.trigger(this._element,xi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ki),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(P.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Li),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){P.off(window,Ci),P.off(this._dialog,Ci),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new pi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new vi({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=z.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),d(this._element),this._element.classList.add(Li),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,P.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){P.on(this._element,"keydown.dismiss.bs.modal",(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),P.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),P.on(this._element,"mousedown.dismiss.bs.modal",(t=>{P.one(this._element,"click.dismiss.bs.modal",(e=>{this._element===t.target&&this._element===e.target&&("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(ki),this._resetAdjustments(),this._scrollBar.reset(),P.trigger(this._element,Oi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(P.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Si)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Si),this._queueCallback((()=>{this._element.classList.remove(Si),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(),i=e>0;if(i&&!t){const t=p()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=p()?"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 i=Ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}P.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),P.one(e,xi,(t=>{t.defaultPrevented||P.one(e,Oi,(()=>{a(this)&&this.focus()}))}));const i=z.findOne(".modal.show");i&&Ni.getInstance(i).hide(),Ni.getOrCreateInstance(e).toggle(this)})),R(Ni),m(Ni);const Pi="show",ji="showing",Mi="hiding",Fi=".offcanvas.show",Hi="hidePrevented.bs.offcanvas",$i="hidden.bs.offcanvas",Wi={backdrop:!0,keyboard:!0,scroll:!1},Bi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zi extends W{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Wi}static get DefaultType(){return Bi}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||P.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ti).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ji),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Pi),this._element.classList.remove(ji),P.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(P.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Mi),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Pi,Mi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ti).reset(),P.trigger(this._element,$i)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new pi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():P.trigger(this._element,Hi)}:null})}_initializeFocusTrap(){return new vi({trapElement:this._element})}_addEventListeners(){P.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():P.trigger(this._element,Hi))}))}static jQueryInterface(t){return this.each((function(){const e=zi.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)}}))}}P.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this))return;P.one(e,$i,(()=>{a(this)&&this.focus()}));const i=z.findOne(Fi);i&&i!==e&&zi.getInstance(i).hide(),zi.getOrCreateInstance(e).toggle(this)})),P.on(window,"load.bs.offcanvas.data-api",(()=>{for(const t of z.find(Fi))zi.getOrCreateInstance(t).show()})),P.on(window,"resize.bs.offcanvas",(()=>{for(const t of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&zi.getOrCreateInstance(t).hide()})),R(zi),m(zi);const Ri=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Vi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ki=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Ri.has(i)||Boolean(qi.test(t.nodeValue)||Vi.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Qi={"*":["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:[]},Xi={allowList:Qi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Yi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ui={entry:"(string|element|function|null)",selector:"(string|element)"};class Gi extends ${constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Xi}static get DefaultType(){return Yi}static get NAME(){return"TemplateFactory"}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,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Ui)}_setContent(t,e,i){const n=z.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(r(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Ki(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return g(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Ji=new Set(["sanitize","allowList","sanitizeFn"]),Zi="fade",tn="show",en=".modal",nn="hide.bs.modal",sn="hover",on="focus",rn={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},an={allowList:Qi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],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"},ln={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 cn extends W{constructor(t,e){if(void 0===Ve)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return an}static get DefaultType(){return ln}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),P.off(this._element.closest(en),nn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),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=P.trigger(this._element,this.constructor.eventName("show")),e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),P.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(tn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))P.on(t,"mouseover",h);this._queueCallback((()=>{P.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!P.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(tn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))P.off(t,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),P.trigger(this._element,this.constructor.eventName("hidden")))}),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(Zi,tn),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Zi),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Gi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Zi)}_isShown(){return this.tip&&this.tip.classList.contains(tn)}_createPopper(t){const e=g(this._config.placement,[this,t,this._element]),i=rn[e.toUpperCase()];return qe(this._element,t,this._getPopperConfig(i))}_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 g(t,[this._element])}_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,...g(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)P.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===sn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===sn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");P.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?on:sn]=!0,e._enter()})),P.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?on:sn]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},P.on(this._element.closest(en),nn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",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=H.getDataAttributes(this._element);for(const t of Object.keys(e))Ji.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:r(t.container),"number"==typeof 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()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=cn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(cn);const hn={...cn.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"},dn={...cn.DefaultType,content:"(null|string|element|function)"};class un extends cn{static get Default(){return hn}static get DefaultType(){return dn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=un.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(un);const fn="click.bs.scrollspy",pn="active",mn="[href]",gn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},_n={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class bn extends W{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 gn}static get DefaultType(){return _n}static get NAME(){return"scrollspy"}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=r(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(P.off(this._config.target,fn),P.on(this._config.target,fn,mn,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=z.find(mn,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=z.findOne(e.hash,this._element);a(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(pn),this._activateParents(t),P.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(pn);else for(const e of z.parents(t,".nav, .list-group"))for(const t of z.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(pn)}_clearActiveClass(t){t.classList.remove(pn);const e=z.find("[href].active",t);for(const t of e)t.classList.remove(pn)}static jQueryInterface(t){return this.each((function(){const e=bn.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]()}}))}}P.on(window,"load.bs.scrollspy.data-api",(()=>{for(const t of z.find('[data-bs-spy="scroll"]'))bn.getOrCreateInstance(t)})),m(bn);const vn="ArrowLeft",yn="ArrowRight",wn="ArrowUp",An="ArrowDown",En="active",Tn="fade",Cn="show",On='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xn=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${On}`;class kn extends W{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),P.on(this._element,"keydown.bs.tab",(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?P.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;P.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(En),this._activate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),P.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(Cn)}),t,t.classList.contains(Tn)))}_deactivate(t,e){t&&(t.classList.remove(En),t.blur(),this._deactivate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),P.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(Cn)}),t,t.classList.contains(Tn)))}_keydown(t){if(![vn,yn,wn,An].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[yn,An].includes(t.key),i=b(this._getChildren().filter((t=>!l(t))),t.target,e,!0);i&&(i.focus({preventScroll:!0}),kn.getOrCreateInstance(i).show())}_getChildren(){return z.find(xn,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),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=z.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=z.findOne(t,i);s&&s.classList.toggle(n,e)};n(".dropdown-toggle",En),n(".dropdown-menu",Cn),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(En)}_getInnerElement(t){return t.matches(xn)?t:z.findOne(xn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=kn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}P.on(document,"click.bs.tab",On,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||kn.getOrCreateInstance(this).show()})),P.on(window,"load.bs.tab",(()=>{for(const t of z.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))kn.getOrCreateInstance(t)})),m(kn);const Ln="hide",Sn="show",Dn="showing",In={animation:"boolean",autohide:"boolean",delay:"number"},Nn={animation:!0,autohide:!0,delay:5e3};class Pn extends W{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Nn}static get DefaultType(){return In}static get NAME(){return"toast"}show(){P.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ln),d(this._element),this._element.classList.add(Sn,Dn),this._queueCallback((()=>{this._element.classList.remove(Dn),P.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(P.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Dn),this._queueCallback((()=>{this._element.classList.add(Ln),this._element.classList.remove(Dn,Sn),P.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Sn),super.dispose()}isShown(){return this._element.classList.contains(Sn)}_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 i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){P.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),P.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),P.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),P.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Pn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return R(Pn),m(Pn),{Alert:q,Button:K,Carousel:rt,Collapse:ft,Dropdown:ci,Modal:Ni,Offcanvas:zi,Popover:un,ScrollSpy:bn,Tab:kn,Toast:Pn,Tooltip:cn}}));
7
- //# sourceMappingURL=bootstrap.bundle.min.js.map
2
+ * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
3
+ * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */
6
+ !(function (t, e) {
7
+ "object" == typeof exports && "undefined" != typeof module
8
+ ? (module.exports = e())
9
+ : "function" == typeof define && define.amd
10
+ ? define(e)
11
+ : ((t =
12
+ "undefined" != typeof globalThis ? globalThis : t || self).bootstrap =
13
+ e());
14
+ })(this, function () {
15
+ "use strict";
16
+ const t = new Map(),
17
+ e = {
18
+ set(e, i, n) {
19
+ t.has(e) || t.set(e, new Map());
20
+ const s = t.get(e);
21
+ s.has(i) || 0 === s.size
22
+ ? s.set(i, n)
23
+ : console.error(
24
+ `Bootstrap doesn't allow more than one instance per element. Bound instance: ${
25
+ Array.from(s.keys())[0]
26
+ }.`
27
+ );
28
+ },
29
+ get: (e, i) => (t.has(e) && t.get(e).get(i)) || null,
30
+ remove(e, i) {
31
+ if (!t.has(e)) return;
32
+ const n = t.get(e);
33
+ n.delete(i), 0 === n.size && t.delete(e);
34
+ },
35
+ },
36
+ i = "transitionend",
37
+ n = (t) => (
38
+ t &&
39
+ window.CSS &&
40
+ window.CSS.escape &&
41
+ (t = t.replace(/#([^\s"#']+)/g, (t, e) => `#${CSS.escape(e)}`)),
42
+ t
43
+ ),
44
+ s = (t) => {
45
+ t.dispatchEvent(new Event(i));
46
+ },
47
+ o = (t) =>
48
+ !(!t || "object" != typeof t) &&
49
+ (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType),
50
+ r = (t) =>
51
+ o(t)
52
+ ? t.jquery
53
+ ? t[0]
54
+ : t
55
+ : "string" == typeof t && t.length > 0
56
+ ? document.querySelector(n(t))
57
+ : null,
58
+ a = (t) => {
59
+ if (!o(t) || 0 === t.getClientRects().length) return !1;
60
+ const e =
61
+ "visible" === getComputedStyle(t).getPropertyValue("visibility"),
62
+ i = t.closest("details:not([open])");
63
+ if (!i) return e;
64
+ if (i !== t) {
65
+ const e = t.closest("summary");
66
+ if (e && e.parentNode !== i) return !1;
67
+ if (null === e) return !1;
68
+ }
69
+ return e;
70
+ },
71
+ l = (t) =>
72
+ !t ||
73
+ t.nodeType !== Node.ELEMENT_NODE ||
74
+ !!t.classList.contains("disabled") ||
75
+ (void 0 !== t.disabled
76
+ ? t.disabled
77
+ : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled")),
78
+ c = (t) => {
79
+ if (!document.documentElement.attachShadow) return null;
80
+ if ("function" == typeof t.getRootNode) {
81
+ const e = t.getRootNode();
82
+ return e instanceof ShadowRoot ? e : null;
83
+ }
84
+ return t instanceof ShadowRoot
85
+ ? t
86
+ : t.parentNode
87
+ ? c(t.parentNode)
88
+ : null;
89
+ },
90
+ h = () => {},
91
+ d = (t) => {
92
+ t.offsetHeight;
93
+ },
94
+ u = () =>
95
+ window.jQuery && !document.body.hasAttribute("data-bs-no-jquery")
96
+ ? window.jQuery
97
+ : null,
98
+ f = [],
99
+ p = () => "rtl" === document.documentElement.dir,
100
+ m = (t) => {
101
+ var e;
102
+ (e = () => {
103
+ const e = u();
104
+ if (e) {
105
+ const i = t.NAME,
106
+ n = e.fn[i];
107
+ (e.fn[i] = t.jQueryInterface),
108
+ (e.fn[i].Constructor = t),
109
+ (e.fn[i].noConflict = () => ((e.fn[i] = n), t.jQueryInterface));
110
+ }
111
+ }),
112
+ "loading" === document.readyState
113
+ ? (f.length ||
114
+ document.addEventListener("DOMContentLoaded", () => {
115
+ for (const t of f) t();
116
+ }),
117
+ f.push(e))
118
+ : e();
119
+ },
120
+ g = (t, e = [], i = t) => ("function" == typeof t ? t(...e) : i),
121
+ _ = (t, e, n = !0) => {
122
+ if (!n) return void g(t);
123
+ const o =
124
+ ((t) => {
125
+ if (!t) return 0;
126
+ let { transitionDuration: e, transitionDelay: i } =
127
+ window.getComputedStyle(t);
128
+ const n = Number.parseFloat(e),
129
+ s = Number.parseFloat(i);
130
+ return n || s
131
+ ? ((e = e.split(",")[0]),
132
+ (i = i.split(",")[0]),
133
+ 1e3 * (Number.parseFloat(e) + Number.parseFloat(i)))
134
+ : 0;
135
+ })(e) + 5;
136
+ let r = !1;
137
+ const a = ({ target: n }) => {
138
+ n === e && ((r = !0), e.removeEventListener(i, a), g(t));
139
+ };
140
+ e.addEventListener(i, a),
141
+ setTimeout(() => {
142
+ r || s(e);
143
+ }, o);
144
+ },
145
+ b = (t, e, i, n) => {
146
+ const s = t.length;
147
+ let o = t.indexOf(e);
148
+ return -1 === o
149
+ ? !i && n
150
+ ? t[s - 1]
151
+ : t[0]
152
+ : ((o += i ? 1 : -1),
153
+ n && (o = (o + s) % s),
154
+ t[Math.max(0, Math.min(o, s - 1))]);
155
+ },
156
+ v = /[^.]*(?=\..*)\.|.*/,
157
+ y = /\..*/,
158
+ w = /::\d+$/,
159
+ A = {};
160
+ let E = 1;
161
+ const T = { mouseenter: "mouseover", mouseleave: "mouseout" },
162
+ C = new Set([
163
+ "click",
164
+ "dblclick",
165
+ "mouseup",
166
+ "mousedown",
167
+ "contextmenu",
168
+ "mousewheel",
169
+ "DOMMouseScroll",
170
+ "mouseover",
171
+ "mouseout",
172
+ "mousemove",
173
+ "selectstart",
174
+ "selectend",
175
+ "keydown",
176
+ "keypress",
177
+ "keyup",
178
+ "orientationchange",
179
+ "touchstart",
180
+ "touchmove",
181
+ "touchend",
182
+ "touchcancel",
183
+ "pointerdown",
184
+ "pointermove",
185
+ "pointerup",
186
+ "pointerleave",
187
+ "pointercancel",
188
+ "gesturestart",
189
+ "gesturechange",
190
+ "gestureend",
191
+ "focus",
192
+ "blur",
193
+ "change",
194
+ "reset",
195
+ "select",
196
+ "submit",
197
+ "focusin",
198
+ "focusout",
199
+ "load",
200
+ "unload",
201
+ "beforeunload",
202
+ "resize",
203
+ "move",
204
+ "DOMContentLoaded",
205
+ "readystatechange",
206
+ "error",
207
+ "abort",
208
+ "scroll",
209
+ ]);
210
+ function O(t, e) {
211
+ return (e && `${e}::${E++}`) || t.uidEvent || E++;
212
+ }
213
+ function x(t) {
214
+ const e = O(t);
215
+ return (t.uidEvent = e), (A[e] = A[e] || {}), A[e];
216
+ }
217
+ function k(t, e, i = null) {
218
+ return Object.values(t).find(
219
+ (t) => t.callable === e && t.delegationSelector === i
220
+ );
221
+ }
222
+ function L(t, e, i) {
223
+ const n = "string" == typeof e,
224
+ s = n ? i : e || i;
225
+ let o = N(t);
226
+ return C.has(o) || (o = t), [n, s, o];
227
+ }
228
+ function S(t, e, i, n, s) {
229
+ if ("string" != typeof e || !t) return;
230
+ let [o, r, a] = L(e, i, n);
231
+ if (e in T) {
232
+ const t = (t) =>
233
+ function (e) {
234
+ if (
235
+ !e.relatedTarget ||
236
+ (e.relatedTarget !== e.delegateTarget &&
237
+ !e.delegateTarget.contains(e.relatedTarget))
238
+ )
239
+ return t.call(this, e);
240
+ };
241
+ r = t(r);
242
+ }
243
+ const l = x(t),
244
+ c = l[a] || (l[a] = {}),
245
+ h = k(c, r, o ? i : null);
246
+ if (h) return void (h.oneOff = h.oneOff && s);
247
+ const d = O(r, e.replace(v, "")),
248
+ u = o
249
+ ? (function (t, e, i) {
250
+ return function n(s) {
251
+ const o = t.querySelectorAll(e);
252
+ for (let { target: r } = s; r && r !== this; r = r.parentNode)
253
+ for (const a of o)
254
+ if (a === r)
255
+ return (
256
+ j(s, { delegateTarget: r }),
257
+ n.oneOff && P.off(t, s.type, e, i),
258
+ i.apply(r, [s])
259
+ );
260
+ };
261
+ })(t, i, r)
262
+ : (function (t, e) {
263
+ return function i(n) {
264
+ return (
265
+ j(n, { delegateTarget: t }),
266
+ i.oneOff && P.off(t, n.type, e),
267
+ e.apply(t, [n])
268
+ );
269
+ };
270
+ })(t, r);
271
+ (u.delegationSelector = o ? i : null),
272
+ (u.callable = r),
273
+ (u.oneOff = s),
274
+ (u.uidEvent = d),
275
+ (c[d] = u),
276
+ t.addEventListener(a, u, o);
277
+ }
278
+ function D(t, e, i, n, s) {
279
+ const o = k(e[i], n, s);
280
+ o && (t.removeEventListener(i, o, Boolean(s)), delete e[i][o.uidEvent]);
281
+ }
282
+ function I(t, e, i, n) {
283
+ const s = e[i] || {};
284
+ for (const [o, r] of Object.entries(s))
285
+ o.includes(n) && D(t, e, i, r.callable, r.delegationSelector);
286
+ }
287
+ function N(t) {
288
+ return (t = t.replace(y, "")), T[t] || t;
289
+ }
290
+ const P = {
291
+ on(t, e, i, n) {
292
+ S(t, e, i, n, !1);
293
+ },
294
+ one(t, e, i, n) {
295
+ S(t, e, i, n, !0);
296
+ },
297
+ off(t, e, i, n) {
298
+ if ("string" != typeof e || !t) return;
299
+ const [s, o, r] = L(e, i, n),
300
+ a = r !== e,
301
+ l = x(t),
302
+ c = l[r] || {},
303
+ h = e.startsWith(".");
304
+ if (void 0 === o) {
305
+ if (h) for (const i of Object.keys(l)) I(t, l, i, e.slice(1));
306
+ for (const [i, n] of Object.entries(c)) {
307
+ const s = i.replace(w, "");
308
+ (a && !e.includes(s)) || D(t, l, r, n.callable, n.delegationSelector);
309
+ }
310
+ } else {
311
+ if (!Object.keys(c).length) return;
312
+ D(t, l, r, o, s ? i : null);
313
+ }
314
+ },
315
+ trigger(t, e, i) {
316
+ if ("string" != typeof e || !t) return null;
317
+ const n = u();
318
+ let s = null,
319
+ o = !0,
320
+ r = !0,
321
+ a = !1;
322
+ e !== N(e) &&
323
+ n &&
324
+ ((s = n.Event(e, i)),
325
+ n(t).trigger(s),
326
+ (o = !s.isPropagationStopped()),
327
+ (r = !s.isImmediatePropagationStopped()),
328
+ (a = s.isDefaultPrevented()));
329
+ const l = j(new Event(e, { bubbles: o, cancelable: !0 }), i);
330
+ return (
331
+ a && l.preventDefault(),
332
+ r && t.dispatchEvent(l),
333
+ l.defaultPrevented && s && s.preventDefault(),
334
+ l
335
+ );
336
+ },
337
+ };
338
+ function j(t, e = {}) {
339
+ for (const [i, n] of Object.entries(e))
340
+ try {
341
+ t[i] = n;
342
+ } catch (e) {
343
+ Object.defineProperty(t, i, { configurable: !0, get: () => n });
344
+ }
345
+ return t;
346
+ }
347
+ function M(t) {
348
+ if ("true" === t) return !0;
349
+ if ("false" === t) return !1;
350
+ if (t === Number(t).toString()) return Number(t);
351
+ if ("" === t || "null" === t) return null;
352
+ if ("string" != typeof t) return t;
353
+ try {
354
+ return JSON.parse(decodeURIComponent(t));
355
+ } catch (e) {
356
+ return t;
357
+ }
358
+ }
359
+ function F(t) {
360
+ return t.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
361
+ }
362
+ const H = {
363
+ setDataAttribute(t, e, i) {
364
+ t.setAttribute(`data-bs-${F(e)}`, i);
365
+ },
366
+ removeDataAttribute(t, e) {
367
+ t.removeAttribute(`data-bs-${F(e)}`);
368
+ },
369
+ getDataAttributes(t) {
370
+ if (!t) return {};
371
+ const e = {},
372
+ i = Object.keys(t.dataset).filter(
373
+ (t) => t.startsWith("bs") && !t.startsWith("bsConfig")
374
+ );
375
+ for (const n of i) {
376
+ let i = n.replace(/^bs/, "");
377
+ (i = i.charAt(0).toLowerCase() + i.slice(1, i.length)),
378
+ (e[i] = M(t.dataset[n]));
379
+ }
380
+ return e;
381
+ },
382
+ getDataAttribute: (t, e) => M(t.getAttribute(`data-bs-${F(e)}`)),
383
+ };
384
+ class $ {
385
+ static get Default() {
386
+ return {};
387
+ }
388
+ static get DefaultType() {
389
+ return {};
390
+ }
391
+ static get NAME() {
392
+ throw new Error(
393
+ 'You have to implement the static method "NAME", for each component!'
394
+ );
395
+ }
396
+ _getConfig(t) {
397
+ return (
398
+ (t = this._mergeConfigObj(t)),
399
+ (t = this._configAfterMerge(t)),
400
+ this._typeCheckConfig(t),
401
+ t
402
+ );
403
+ }
404
+ _configAfterMerge(t) {
405
+ return t;
406
+ }
407
+ _mergeConfigObj(t, e) {
408
+ const i = o(e) ? H.getDataAttribute(e, "config") : {};
409
+ return {
410
+ ...this.constructor.Default,
411
+ ...("object" == typeof i ? i : {}),
412
+ ...(o(e) ? H.getDataAttributes(e) : {}),
413
+ ...("object" == typeof t ? t : {}),
414
+ };
415
+ }
416
+ _typeCheckConfig(t, e = this.constructor.DefaultType) {
417
+ for (const [n, s] of Object.entries(e)) {
418
+ const e = t[n],
419
+ r = o(e)
420
+ ? "element"
421
+ : null == (i = e)
422
+ ? `${i}`
423
+ : Object.prototype.toString
424
+ .call(i)
425
+ .match(/\s([a-z]+)/i)[1]
426
+ .toLowerCase();
427
+ if (!new RegExp(s).test(r))
428
+ throw new TypeError(
429
+ `${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`
430
+ );
431
+ }
432
+ var i;
433
+ }
434
+ }
435
+ class W extends $ {
436
+ constructor(t, i) {
437
+ super(),
438
+ (t = r(t)) &&
439
+ ((this._element = t),
440
+ (this._config = this._getConfig(i)),
441
+ e.set(this._element, this.constructor.DATA_KEY, this));
442
+ }
443
+ dispose() {
444
+ e.remove(this._element, this.constructor.DATA_KEY),
445
+ P.off(this._element, this.constructor.EVENT_KEY);
446
+ for (const t of Object.getOwnPropertyNames(this)) this[t] = null;
447
+ }
448
+ _queueCallback(t, e, i = !0) {
449
+ _(t, e, i);
450
+ }
451
+ _getConfig(t) {
452
+ return (
453
+ (t = this._mergeConfigObj(t, this._element)),
454
+ (t = this._configAfterMerge(t)),
455
+ this._typeCheckConfig(t),
456
+ t
457
+ );
458
+ }
459
+ static getInstance(t) {
460
+ return e.get(r(t), this.DATA_KEY);
461
+ }
462
+ static getOrCreateInstance(t, e = {}) {
463
+ return (
464
+ this.getInstance(t) || new this(t, "object" == typeof e ? e : null)
465
+ );
466
+ }
467
+ static get VERSION() {
468
+ return "5.3.0-alpha2";
469
+ }
470
+ static get DATA_KEY() {
471
+ return `bs.${this.NAME}`;
472
+ }
473
+ static get EVENT_KEY() {
474
+ return `.${this.DATA_KEY}`;
475
+ }
476
+ static eventName(t) {
477
+ return `${t}${this.EVENT_KEY}`;
478
+ }
479
+ }
480
+ const B = (t) => {
481
+ let e = t.getAttribute("data-bs-target");
482
+ if (!e || "#" === e) {
483
+ let i = t.getAttribute("href");
484
+ if (!i || (!i.includes("#") && !i.startsWith("."))) return null;
485
+ i.includes("#") && !i.startsWith("#") && (i = `#${i.split("#")[1]}`),
486
+ (e = i && "#" !== i ? i.trim() : null);
487
+ }
488
+ return n(e);
489
+ },
490
+ z = {
491
+ find: (t, e = document.documentElement) =>
492
+ [].concat(...Element.prototype.querySelectorAll.call(e, t)),
493
+ findOne: (t, e = document.documentElement) =>
494
+ Element.prototype.querySelector.call(e, t),
495
+ children: (t, e) => [].concat(...t.children).filter((t) => t.matches(e)),
496
+ parents(t, e) {
497
+ const i = [];
498
+ let n = t.parentNode.closest(e);
499
+ for (; n; ) i.push(n), (n = n.parentNode.closest(e));
500
+ return i;
501
+ },
502
+ prev(t, e) {
503
+ let i = t.previousElementSibling;
504
+ for (; i; ) {
505
+ if (i.matches(e)) return [i];
506
+ i = i.previousElementSibling;
507
+ }
508
+ return [];
509
+ },
510
+ next(t, e) {
511
+ let i = t.nextElementSibling;
512
+ for (; i; ) {
513
+ if (i.matches(e)) return [i];
514
+ i = i.nextElementSibling;
515
+ }
516
+ return [];
517
+ },
518
+ focusableChildren(t) {
519
+ const e = [
520
+ "a",
521
+ "button",
522
+ "input",
523
+ "textarea",
524
+ "select",
525
+ "details",
526
+ "[tabindex]",
527
+ '[contenteditable="true"]',
528
+ ]
529
+ .map((t) => `${t}:not([tabindex^="-"])`)
530
+ .join(",");
531
+ return this.find(e, t).filter((t) => !l(t) && a(t));
532
+ },
533
+ getSelectorFromElement(t) {
534
+ const e = B(t);
535
+ return e && z.findOne(e) ? e : null;
536
+ },
537
+ getElementFromSelector(t) {
538
+ const e = B(t);
539
+ return e ? z.findOne(e) : null;
540
+ },
541
+ getMultipleElementsFromSelector(t) {
542
+ const e = B(t);
543
+ return e ? z.find(e) : [];
544
+ },
545
+ },
546
+ R = (t, e = "hide") => {
547
+ const i = `click.dismiss${t.EVENT_KEY}`,
548
+ n = t.NAME;
549
+ P.on(document, i, `[data-bs-dismiss="${n}"]`, function (i) {
550
+ if (
551
+ (["A", "AREA"].includes(this.tagName) && i.preventDefault(), l(this))
552
+ )
553
+ return;
554
+ const s = z.getElementFromSelector(this) || this.closest(`.${n}`);
555
+ t.getOrCreateInstance(s)[e]();
556
+ });
557
+ };
558
+ class q extends W {
559
+ static get NAME() {
560
+ return "alert";
561
+ }
562
+ close() {
563
+ if (P.trigger(this._element, "close.bs.alert").defaultPrevented) return;
564
+ this._element.classList.remove("show");
565
+ const t = this._element.classList.contains("fade");
566
+ this._queueCallback(() => this._destroyElement(), this._element, t);
567
+ }
568
+ _destroyElement() {
569
+ this._element.remove(),
570
+ P.trigger(this._element, "closed.bs.alert"),
571
+ this.dispose();
572
+ }
573
+ static jQueryInterface(t) {
574
+ return this.each(function () {
575
+ const e = q.getOrCreateInstance(this);
576
+ if ("string" == typeof t) {
577
+ if (void 0 === e[t] || t.startsWith("_") || "constructor" === t)
578
+ throw new TypeError(`No method named "${t}"`);
579
+ e[t](this);
580
+ }
581
+ });
582
+ }
583
+ }
584
+ R(q, "close"), m(q);
585
+ const V = '[data-bs-toggle="button"]';
586
+ class K extends W {
587
+ static get NAME() {
588
+ return "button";
589
+ }
590
+ toggle() {
591
+ this._element.setAttribute(
592
+ "aria-pressed",
593
+ this._element.classList.toggle("active")
594
+ );
595
+ }
596
+ static jQueryInterface(t) {
597
+ return this.each(function () {
598
+ const e = K.getOrCreateInstance(this);
599
+ "toggle" === t && e[t]();
600
+ });
601
+ }
602
+ }
603
+ P.on(document, "click.bs.button.data-api", V, (t) => {
604
+ t.preventDefault();
605
+ const e = t.target.closest(V);
606
+ K.getOrCreateInstance(e).toggle();
607
+ }),
608
+ m(K);
609
+ const Q = { endCallback: null, leftCallback: null, rightCallback: null },
610
+ X = {
611
+ endCallback: "(function|null)",
612
+ leftCallback: "(function|null)",
613
+ rightCallback: "(function|null)",
614
+ };
615
+ class Y extends $ {
616
+ constructor(t, e) {
617
+ super(),
618
+ (this._element = t),
619
+ t &&
620
+ Y.isSupported() &&
621
+ ((this._config = this._getConfig(e)),
622
+ (this._deltaX = 0),
623
+ (this._supportPointerEvents = Boolean(window.PointerEvent)),
624
+ this._initEvents());
625
+ }
626
+ static get Default() {
627
+ return Q;
628
+ }
629
+ static get DefaultType() {
630
+ return X;
631
+ }
632
+ static get NAME() {
633
+ return "swipe";
634
+ }
635
+ dispose() {
636
+ P.off(this._element, ".bs.swipe");
637
+ }
638
+ _start(t) {
639
+ this._supportPointerEvents
640
+ ? this._eventIsPointerPenTouch(t) && (this._deltaX = t.clientX)
641
+ : (this._deltaX = t.touches[0].clientX);
642
+ }
643
+ _end(t) {
644
+ this._eventIsPointerPenTouch(t) &&
645
+ (this._deltaX = t.clientX - this._deltaX),
646
+ this._handleSwipe(),
647
+ g(this._config.endCallback);
648
+ }
649
+ _move(t) {
650
+ this._deltaX =
651
+ t.touches && t.touches.length > 1
652
+ ? 0
653
+ : t.touches[0].clientX - this._deltaX;
654
+ }
655
+ _handleSwipe() {
656
+ const t = Math.abs(this._deltaX);
657
+ if (t <= 40) return;
658
+ const e = t / this._deltaX;
659
+ (this._deltaX = 0),
660
+ e && g(e > 0 ? this._config.rightCallback : this._config.leftCallback);
661
+ }
662
+ _initEvents() {
663
+ this._supportPointerEvents
664
+ ? (P.on(this._element, "pointerdown.bs.swipe", (t) => this._start(t)),
665
+ P.on(this._element, "pointerup.bs.swipe", (t) => this._end(t)),
666
+ this._element.classList.add("pointer-event"))
667
+ : (P.on(this._element, "touchstart.bs.swipe", (t) => this._start(t)),
668
+ P.on(this._element, "touchmove.bs.swipe", (t) => this._move(t)),
669
+ P.on(this._element, "touchend.bs.swipe", (t) => this._end(t)));
670
+ }
671
+ _eventIsPointerPenTouch(t) {
672
+ return (
673
+ this._supportPointerEvents &&
674
+ ("pen" === t.pointerType || "touch" === t.pointerType)
675
+ );
676
+ }
677
+ static isSupported() {
678
+ return (
679
+ "ontouchstart" in document.documentElement ||
680
+ navigator.maxTouchPoints > 0
681
+ );
682
+ }
683
+ }
684
+ const U = "next",
685
+ G = "prev",
686
+ J = "left",
687
+ Z = "right",
688
+ tt = "slid.bs.carousel",
689
+ et = "carousel",
690
+ it = "active",
691
+ nt = { ArrowLeft: Z, ArrowRight: J },
692
+ st = {
693
+ interval: 5e3,
694
+ keyboard: !0,
695
+ pause: "hover",
696
+ ride: !1,
697
+ touch: !0,
698
+ wrap: !0,
699
+ },
700
+ ot = {
701
+ interval: "(number|boolean)",
702
+ keyboard: "boolean",
703
+ pause: "(string|boolean)",
704
+ ride: "(boolean|string)",
705
+ touch: "boolean",
706
+ wrap: "boolean",
707
+ };
708
+ class rt extends W {
709
+ constructor(t, e) {
710
+ super(t, e),
711
+ (this._interval = null),
712
+ (this._activeElement = null),
713
+ (this._isSliding = !1),
714
+ (this.touchTimeout = null),
715
+ (this._swipeHelper = null),
716
+ (this._indicatorsElement = z.findOne(
717
+ ".carousel-indicators",
718
+ this._element
719
+ )),
720
+ this._addEventListeners(),
721
+ this._config.ride === et && this.cycle();
722
+ }
723
+ static get Default() {
724
+ return st;
725
+ }
726
+ static get DefaultType() {
727
+ return ot;
728
+ }
729
+ static get NAME() {
730
+ return "carousel";
731
+ }
732
+ next() {
733
+ this._slide(U);
734
+ }
735
+ nextWhenVisible() {
736
+ !document.hidden && a(this._element) && this.next();
737
+ }
738
+ prev() {
739
+ this._slide(G);
740
+ }
741
+ pause() {
742
+ this._isSliding && s(this._element), this._clearInterval();
743
+ }
744
+ cycle() {
745
+ this._clearInterval(),
746
+ this._updateInterval(),
747
+ (this._interval = setInterval(
748
+ () => this.nextWhenVisible(),
749
+ this._config.interval
750
+ ));
751
+ }
752
+ _maybeEnableCycle() {
753
+ this._config.ride &&
754
+ (this._isSliding
755
+ ? P.one(this._element, tt, () => this.cycle())
756
+ : this.cycle());
757
+ }
758
+ to(t) {
759
+ const e = this._getItems();
760
+ if (t > e.length - 1 || t < 0) return;
761
+ if (this._isSliding)
762
+ return void P.one(this._element, tt, () => this.to(t));
763
+ const i = this._getItemIndex(this._getActive());
764
+ if (i === t) return;
765
+ const n = t > i ? U : G;
766
+ this._slide(n, e[t]);
767
+ }
768
+ dispose() {
769
+ this._swipeHelper && this._swipeHelper.dispose(), super.dispose();
770
+ }
771
+ _configAfterMerge(t) {
772
+ return (t.defaultInterval = t.interval), t;
773
+ }
774
+ _addEventListeners() {
775
+ this._config.keyboard &&
776
+ P.on(this._element, "keydown.bs.carousel", (t) => this._keydown(t)),
777
+ "hover" === this._config.pause &&
778
+ (P.on(this._element, "mouseenter.bs.carousel", () => this.pause()),
779
+ P.on(this._element, "mouseleave.bs.carousel", () =>
780
+ this._maybeEnableCycle()
781
+ )),
782
+ this._config.touch && Y.isSupported() && this._addTouchEventListeners();
783
+ }
784
+ _addTouchEventListeners() {
785
+ for (const t of z.find(".carousel-item img", this._element))
786
+ P.on(t, "dragstart.bs.carousel", (t) => t.preventDefault());
787
+ const t = {
788
+ leftCallback: () => this._slide(this._directionToOrder(J)),
789
+ rightCallback: () => this._slide(this._directionToOrder(Z)),
790
+ endCallback: () => {
791
+ "hover" === this._config.pause &&
792
+ (this.pause(),
793
+ this.touchTimeout && clearTimeout(this.touchTimeout),
794
+ (this.touchTimeout = setTimeout(
795
+ () => this._maybeEnableCycle(),
796
+ 500 + this._config.interval
797
+ )));
798
+ },
799
+ };
800
+ this._swipeHelper = new Y(this._element, t);
801
+ }
802
+ _keydown(t) {
803
+ if (/input|textarea/i.test(t.target.tagName)) return;
804
+ const e = nt[t.key];
805
+ e && (t.preventDefault(), this._slide(this._directionToOrder(e)));
806
+ }
807
+ _getItemIndex(t) {
808
+ return this._getItems().indexOf(t);
809
+ }
810
+ _setActiveIndicatorElement(t) {
811
+ if (!this._indicatorsElement) return;
812
+ const e = z.findOne(".active", this._indicatorsElement);
813
+ e.classList.remove(it), e.removeAttribute("aria-current");
814
+ const i = z.findOne(`[data-bs-slide-to="${t}"]`, this._indicatorsElement);
815
+ i && (i.classList.add(it), i.setAttribute("aria-current", "true"));
816
+ }
817
+ _updateInterval() {
818
+ const t = this._activeElement || this._getActive();
819
+ if (!t) return;
820
+ const e = Number.parseInt(t.getAttribute("data-bs-interval"), 10);
821
+ this._config.interval = e || this._config.defaultInterval;
822
+ }
823
+ _slide(t, e = null) {
824
+ if (this._isSliding) return;
825
+ const i = this._getActive(),
826
+ n = t === U,
827
+ s = e || b(this._getItems(), i, n, this._config.wrap);
828
+ if (s === i) return;
829
+ const o = this._getItemIndex(s),
830
+ r = (e) =>
831
+ P.trigger(this._element, e, {
832
+ relatedTarget: s,
833
+ direction: this._orderToDirection(t),
834
+ from: this._getItemIndex(i),
835
+ to: o,
836
+ });
837
+ if (r("slide.bs.carousel").defaultPrevented) return;
838
+ if (!i || !s) return;
839
+ const a = Boolean(this._interval);
840
+ this.pause(),
841
+ (this._isSliding = !0),
842
+ this._setActiveIndicatorElement(o),
843
+ (this._activeElement = s);
844
+ const l = n ? "carousel-item-start" : "carousel-item-end",
845
+ c = n ? "carousel-item-next" : "carousel-item-prev";
846
+ s.classList.add(c),
847
+ d(s),
848
+ i.classList.add(l),
849
+ s.classList.add(l),
850
+ this._queueCallback(
851
+ () => {
852
+ s.classList.remove(l, c),
853
+ s.classList.add(it),
854
+ i.classList.remove(it, c, l),
855
+ (this._isSliding = !1),
856
+ r(tt);
857
+ },
858
+ i,
859
+ this._isAnimated()
860
+ ),
861
+ a && this.cycle();
862
+ }
863
+ _isAnimated() {
864
+ return this._element.classList.contains("slide");
865
+ }
866
+ _getActive() {
867
+ return z.findOne(".active.carousel-item", this._element);
868
+ }
869
+ _getItems() {
870
+ return z.find(".carousel-item", this._element);
871
+ }
872
+ _clearInterval() {
873
+ this._interval &&
874
+ (clearInterval(this._interval), (this._interval = null));
875
+ }
876
+ _directionToOrder(t) {
877
+ return p() ? (t === J ? G : U) : t === J ? U : G;
878
+ }
879
+ _orderToDirection(t) {
880
+ return p() ? (t === G ? J : Z) : t === G ? Z : J;
881
+ }
882
+ static jQueryInterface(t) {
883
+ return this.each(function () {
884
+ const e = rt.getOrCreateInstance(this, t);
885
+ if ("number" != typeof t) {
886
+ if ("string" == typeof t) {
887
+ if (void 0 === e[t] || t.startsWith("_") || "constructor" === t)
888
+ throw new TypeError(`No method named "${t}"`);
889
+ e[t]();
890
+ }
891
+ } else e.to(t);
892
+ });
893
+ }
894
+ }
895
+ P.on(
896
+ document,
897
+ "click.bs.carousel.data-api",
898
+ "[data-bs-slide], [data-bs-slide-to]",
899
+ function (t) {
900
+ const e = z.getElementFromSelector(this);
901
+ if (!e || !e.classList.contains(et)) return;
902
+ t.preventDefault();
903
+ const i = rt.getOrCreateInstance(e),
904
+ n = this.getAttribute("data-bs-slide-to");
905
+ return n
906
+ ? (i.to(n), void i._maybeEnableCycle())
907
+ : "next" === H.getDataAttribute(this, "slide")
908
+ ? (i.next(), void i._maybeEnableCycle())
909
+ : (i.prev(), void i._maybeEnableCycle());
910
+ }
911
+ ),
912
+ P.on(window, "load.bs.carousel.data-api", () => {
913
+ const t = z.find('[data-bs-ride="carousel"]');
914
+ for (const e of t) rt.getOrCreateInstance(e);
915
+ }),
916
+ m(rt);
917
+ const at = "show",
918
+ lt = "collapse",
919
+ ct = "collapsing",
920
+ ht = '[data-bs-toggle="collapse"]',
921
+ dt = { parent: null, toggle: !0 },
922
+ ut = { parent: "(null|element)", toggle: "boolean" };
923
+ class ft extends W {
924
+ constructor(t, e) {
925
+ super(t, e), (this._isTransitioning = !1), (this._triggerArray = []);
926
+ const i = z.find(ht);
927
+ for (const t of i) {
928
+ const e = z.getSelectorFromElement(t),
929
+ i = z.find(e).filter((t) => t === this._element);
930
+ null !== e && i.length && this._triggerArray.push(t);
931
+ }
932
+ this._initializeChildren(),
933
+ this._config.parent ||
934
+ this._addAriaAndCollapsedClass(this._triggerArray, this._isShown()),
935
+ this._config.toggle && this.toggle();
936
+ }
937
+ static get Default() {
938
+ return dt;
939
+ }
940
+ static get DefaultType() {
941
+ return ut;
942
+ }
943
+ static get NAME() {
944
+ return "collapse";
945
+ }
946
+ toggle() {
947
+ this._isShown() ? this.hide() : this.show();
948
+ }
949
+ show() {
950
+ if (this._isTransitioning || this._isShown()) return;
951
+ let t = [];
952
+ if (
953
+ (this._config.parent &&
954
+ (t = this._getFirstLevelChildren(
955
+ ".collapse.show, .collapse.collapsing"
956
+ )
957
+ .filter((t) => t !== this._element)
958
+ .map((t) => ft.getOrCreateInstance(t, { toggle: !1 }))),
959
+ t.length && t[0]._isTransitioning)
960
+ )
961
+ return;
962
+ if (P.trigger(this._element, "show.bs.collapse").defaultPrevented) return;
963
+ for (const e of t) e.hide();
964
+ const e = this._getDimension();
965
+ this._element.classList.remove(lt),
966
+ this._element.classList.add(ct),
967
+ (this._element.style[e] = 0),
968
+ this._addAriaAndCollapsedClass(this._triggerArray, !0),
969
+ (this._isTransitioning = !0);
970
+ const i = `scroll${e[0].toUpperCase() + e.slice(1)}`;
971
+ this._queueCallback(
972
+ () => {
973
+ (this._isTransitioning = !1),
974
+ this._element.classList.remove(ct),
975
+ this._element.classList.add(lt, at),
976
+ (this._element.style[e] = ""),
977
+ P.trigger(this._element, "shown.bs.collapse");
978
+ },
979
+ this._element,
980
+ !0
981
+ ),
982
+ (this._element.style[e] = `${this._element[i]}px`);
983
+ }
984
+ hide() {
985
+ if (this._isTransitioning || !this._isShown()) return;
986
+ if (P.trigger(this._element, "hide.bs.collapse").defaultPrevented) return;
987
+ const t = this._getDimension();
988
+ (this._element.style[t] = `${
989
+ this._element.getBoundingClientRect()[t]
990
+ }px`),
991
+ d(this._element),
992
+ this._element.classList.add(ct),
993
+ this._element.classList.remove(lt, at);
994
+ for (const t of this._triggerArray) {
995
+ const e = z.getElementFromSelector(t);
996
+ e && !this._isShown(e) && this._addAriaAndCollapsedClass([t], !1);
997
+ }
998
+ (this._isTransitioning = !0),
999
+ (this._element.style[t] = ""),
1000
+ this._queueCallback(
1001
+ () => {
1002
+ (this._isTransitioning = !1),
1003
+ this._element.classList.remove(ct),
1004
+ this._element.classList.add(lt),
1005
+ P.trigger(this._element, "hidden.bs.collapse");
1006
+ },
1007
+ this._element,
1008
+ !0
1009
+ );
1010
+ }
1011
+ _isShown(t = this._element) {
1012
+ return t.classList.contains(at);
1013
+ }
1014
+ _configAfterMerge(t) {
1015
+ return (t.toggle = Boolean(t.toggle)), (t.parent = r(t.parent)), t;
1016
+ }
1017
+ _getDimension() {
1018
+ return this._element.classList.contains("collapse-horizontal")
1019
+ ? "width"
1020
+ : "height";
1021
+ }
1022
+ _initializeChildren() {
1023
+ if (!this._config.parent) return;
1024
+ const t = this._getFirstLevelChildren(ht);
1025
+ for (const e of t) {
1026
+ const t = z.getElementFromSelector(e);
1027
+ t && this._addAriaAndCollapsedClass([e], this._isShown(t));
1028
+ }
1029
+ }
1030
+ _getFirstLevelChildren(t) {
1031
+ const e = z.find(":scope .collapse .collapse", this._config.parent);
1032
+ return z.find(t, this._config.parent).filter((t) => !e.includes(t));
1033
+ }
1034
+ _addAriaAndCollapsedClass(t, e) {
1035
+ if (t.length)
1036
+ for (const i of t)
1037
+ i.classList.toggle("collapsed", !e),
1038
+ i.setAttribute("aria-expanded", e);
1039
+ }
1040
+ static jQueryInterface(t) {
1041
+ const e = {};
1042
+ return (
1043
+ "string" == typeof t && /show|hide/.test(t) && (e.toggle = !1),
1044
+ this.each(function () {
1045
+ const i = ft.getOrCreateInstance(this, e);
1046
+ if ("string" == typeof t) {
1047
+ if (void 0 === i[t]) throw new TypeError(`No method named "${t}"`);
1048
+ i[t]();
1049
+ }
1050
+ })
1051
+ );
1052
+ }
1053
+ }
1054
+ P.on(document, "click.bs.collapse.data-api", ht, function (t) {
1055
+ ("A" === t.target.tagName ||
1056
+ (t.delegateTarget && "A" === t.delegateTarget.tagName)) &&
1057
+ t.preventDefault();
1058
+ for (const t of z.getMultipleElementsFromSelector(this))
1059
+ ft.getOrCreateInstance(t, { toggle: !1 }).toggle();
1060
+ }),
1061
+ m(ft);
1062
+ var pt = "top",
1063
+ mt = "bottom",
1064
+ gt = "right",
1065
+ _t = "left",
1066
+ bt = "auto",
1067
+ vt = [pt, mt, gt, _t],
1068
+ yt = "start",
1069
+ wt = "end",
1070
+ At = "clippingParents",
1071
+ Et = "viewport",
1072
+ Tt = "popper",
1073
+ Ct = "reference",
1074
+ Ot = vt.reduce(function (t, e) {
1075
+ return t.concat([e + "-" + yt, e + "-" + wt]);
1076
+ }, []),
1077
+ xt = [].concat(vt, [bt]).reduce(function (t, e) {
1078
+ return t.concat([e, e + "-" + yt, e + "-" + wt]);
1079
+ }, []),
1080
+ kt = "beforeRead",
1081
+ Lt = "read",
1082
+ St = "afterRead",
1083
+ Dt = "beforeMain",
1084
+ It = "main",
1085
+ Nt = "afterMain",
1086
+ Pt = "beforeWrite",
1087
+ jt = "write",
1088
+ Mt = "afterWrite",
1089
+ Ft = [kt, Lt, St, Dt, It, Nt, Pt, jt, Mt];
1090
+ function Ht(t) {
1091
+ return t ? (t.nodeName || "").toLowerCase() : null;
1092
+ }
1093
+ function $t(t) {
1094
+ if (null == t) return window;
1095
+ if ("[object Window]" !== t.toString()) {
1096
+ var e = t.ownerDocument;
1097
+ return (e && e.defaultView) || window;
1098
+ }
1099
+ return t;
1100
+ }
1101
+ function Wt(t) {
1102
+ return t instanceof $t(t).Element || t instanceof Element;
1103
+ }
1104
+ function Bt(t) {
1105
+ return t instanceof $t(t).HTMLElement || t instanceof HTMLElement;
1106
+ }
1107
+ function zt(t) {
1108
+ return (
1109
+ "undefined" != typeof ShadowRoot &&
1110
+ (t instanceof $t(t).ShadowRoot || t instanceof ShadowRoot)
1111
+ );
1112
+ }
1113
+ const Rt = {
1114
+ name: "applyStyles",
1115
+ enabled: !0,
1116
+ phase: "write",
1117
+ fn: function (t) {
1118
+ var e = t.state;
1119
+ Object.keys(e.elements).forEach(function (t) {
1120
+ var i = e.styles[t] || {},
1121
+ n = e.attributes[t] || {},
1122
+ s = e.elements[t];
1123
+ Bt(s) &&
1124
+ Ht(s) &&
1125
+ (Object.assign(s.style, i),
1126
+ Object.keys(n).forEach(function (t) {
1127
+ var e = n[t];
1128
+ !1 === e
1129
+ ? s.removeAttribute(t)
1130
+ : s.setAttribute(t, !0 === e ? "" : e);
1131
+ }));
1132
+ });
1133
+ },
1134
+ effect: function (t) {
1135
+ var e = t.state,
1136
+ i = {
1137
+ popper: {
1138
+ position: e.options.strategy,
1139
+ left: "0",
1140
+ top: "0",
1141
+ margin: "0",
1142
+ },
1143
+ arrow: { position: "absolute" },
1144
+ reference: {},
1145
+ };
1146
+ return (
1147
+ Object.assign(e.elements.popper.style, i.popper),
1148
+ (e.styles = i),
1149
+ e.elements.arrow && Object.assign(e.elements.arrow.style, i.arrow),
1150
+ function () {
1151
+ Object.keys(e.elements).forEach(function (t) {
1152
+ var n = e.elements[t],
1153
+ s = e.attributes[t] || {},
1154
+ o = Object.keys(
1155
+ e.styles.hasOwnProperty(t) ? e.styles[t] : i[t]
1156
+ ).reduce(function (t, e) {
1157
+ return (t[e] = ""), t;
1158
+ }, {});
1159
+ Bt(n) &&
1160
+ Ht(n) &&
1161
+ (Object.assign(n.style, o),
1162
+ Object.keys(s).forEach(function (t) {
1163
+ n.removeAttribute(t);
1164
+ }));
1165
+ });
1166
+ }
1167
+ );
1168
+ },
1169
+ requires: ["computeStyles"],
1170
+ };
1171
+ function qt(t) {
1172
+ return t.split("-")[0];
1173
+ }
1174
+ var Vt = Math.max,
1175
+ Kt = Math.min,
1176
+ Qt = Math.round;
1177
+ function Xt() {
1178
+ var t = navigator.userAgentData;
1179
+ return null != t && t.brands && Array.isArray(t.brands)
1180
+ ? t.brands
1181
+ .map(function (t) {
1182
+ return t.brand + "/" + t.version;
1183
+ })
1184
+ .join(" ")
1185
+ : navigator.userAgent;
1186
+ }
1187
+ function Yt() {
1188
+ return !/^((?!chrome|android).)*safari/i.test(Xt());
1189
+ }
1190
+ function Ut(t, e, i) {
1191
+ void 0 === e && (e = !1), void 0 === i && (i = !1);
1192
+ var n = t.getBoundingClientRect(),
1193
+ s = 1,
1194
+ o = 1;
1195
+ e &&
1196
+ Bt(t) &&
1197
+ ((s = (t.offsetWidth > 0 && Qt(n.width) / t.offsetWidth) || 1),
1198
+ (o = (t.offsetHeight > 0 && Qt(n.height) / t.offsetHeight) || 1));
1199
+ var r = (Wt(t) ? $t(t) : window).visualViewport,
1200
+ a = !Yt() && i,
1201
+ l = (n.left + (a && r ? r.offsetLeft : 0)) / s,
1202
+ c = (n.top + (a && r ? r.offsetTop : 0)) / o,
1203
+ h = n.width / s,
1204
+ d = n.height / o;
1205
+ return {
1206
+ width: h,
1207
+ height: d,
1208
+ top: c,
1209
+ right: l + h,
1210
+ bottom: c + d,
1211
+ left: l,
1212
+ x: l,
1213
+ y: c,
1214
+ };
1215
+ }
1216
+ function Gt(t) {
1217
+ var e = Ut(t),
1218
+ i = t.offsetWidth,
1219
+ n = t.offsetHeight;
1220
+ return (
1221
+ Math.abs(e.width - i) <= 1 && (i = e.width),
1222
+ Math.abs(e.height - n) <= 1 && (n = e.height),
1223
+ { x: t.offsetLeft, y: t.offsetTop, width: i, height: n }
1224
+ );
1225
+ }
1226
+ function Jt(t, e) {
1227
+ var i = e.getRootNode && e.getRootNode();
1228
+ if (t.contains(e)) return !0;
1229
+ if (i && zt(i)) {
1230
+ var n = e;
1231
+ do {
1232
+ if (n && t.isSameNode(n)) return !0;
1233
+ n = n.parentNode || n.host;
1234
+ } while (n);
1235
+ }
1236
+ return !1;
1237
+ }
1238
+ function Zt(t) {
1239
+ return $t(t).getComputedStyle(t);
1240
+ }
1241
+ function te(t) {
1242
+ return ["table", "td", "th"].indexOf(Ht(t)) >= 0;
1243
+ }
1244
+ function ee(t) {
1245
+ return (
1246
+ (Wt(t) ? t.ownerDocument : t.document) || window.document
1247
+ ).documentElement;
1248
+ }
1249
+ function ie(t) {
1250
+ return "html" === Ht(t)
1251
+ ? t
1252
+ : t.assignedSlot || t.parentNode || (zt(t) ? t.host : null) || ee(t);
1253
+ }
1254
+ function ne(t) {
1255
+ return Bt(t) && "fixed" !== Zt(t).position ? t.offsetParent : null;
1256
+ }
1257
+ function se(t) {
1258
+ for (var e = $t(t), i = ne(t); i && te(i) && "static" === Zt(i).position; )
1259
+ i = ne(i);
1260
+ return i &&
1261
+ ("html" === Ht(i) || ("body" === Ht(i) && "static" === Zt(i).position))
1262
+ ? e
1263
+ : i ||
1264
+ (function (t) {
1265
+ var e = /firefox/i.test(Xt());
1266
+ if (/Trident/i.test(Xt()) && Bt(t) && "fixed" === Zt(t).position)
1267
+ return null;
1268
+ var i = ie(t);
1269
+ for (
1270
+ zt(i) && (i = i.host);
1271
+ Bt(i) && ["html", "body"].indexOf(Ht(i)) < 0;
1272
+
1273
+ ) {
1274
+ var n = Zt(i);
1275
+ if (
1276
+ "none" !== n.transform ||
1277
+ "none" !== n.perspective ||
1278
+ "paint" === n.contain ||
1279
+ -1 !== ["transform", "perspective"].indexOf(n.willChange) ||
1280
+ (e && "filter" === n.willChange) ||
1281
+ (e && n.filter && "none" !== n.filter)
1282
+ )
1283
+ return i;
1284
+ i = i.parentNode;
1285
+ }
1286
+ return null;
1287
+ })(t) ||
1288
+ e;
1289
+ }
1290
+ function oe(t) {
1291
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
1292
+ }
1293
+ function re(t, e, i) {
1294
+ return Vt(t, Kt(e, i));
1295
+ }
1296
+ function ae(t) {
1297
+ return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, t);
1298
+ }
1299
+ function le(t, e) {
1300
+ return e.reduce(function (e, i) {
1301
+ return (e[i] = t), e;
1302
+ }, {});
1303
+ }
1304
+ const ce = {
1305
+ name: "arrow",
1306
+ enabled: !0,
1307
+ phase: "main",
1308
+ fn: function (t) {
1309
+ var e,
1310
+ i = t.state,
1311
+ n = t.name,
1312
+ s = t.options,
1313
+ o = i.elements.arrow,
1314
+ r = i.modifiersData.popperOffsets,
1315
+ a = qt(i.placement),
1316
+ l = oe(a),
1317
+ c = [_t, gt].indexOf(a) >= 0 ? "height" : "width";
1318
+ if (o && r) {
1319
+ var h = (function (t, e) {
1320
+ return ae(
1321
+ "number" !=
1322
+ typeof (t =
1323
+ "function" == typeof t
1324
+ ? t(Object.assign({}, e.rects, { placement: e.placement }))
1325
+ : t)
1326
+ ? t
1327
+ : le(t, vt)
1328
+ );
1329
+ })(s.padding, i),
1330
+ d = Gt(o),
1331
+ u = "y" === l ? pt : _t,
1332
+ f = "y" === l ? mt : gt,
1333
+ p =
1334
+ i.rects.reference[c] +
1335
+ i.rects.reference[l] -
1336
+ r[l] -
1337
+ i.rects.popper[c],
1338
+ m = r[l] - i.rects.reference[l],
1339
+ g = se(o),
1340
+ _ = g ? ("y" === l ? g.clientHeight || 0 : g.clientWidth || 0) : 0,
1341
+ b = p / 2 - m / 2,
1342
+ v = h[u],
1343
+ y = _ - d[c] - h[f],
1344
+ w = _ / 2 - d[c] / 2 + b,
1345
+ A = re(v, w, y),
1346
+ E = l;
1347
+ i.modifiersData[n] = (((e = {})[E] = A), (e.centerOffset = A - w), e);
1348
+ }
1349
+ },
1350
+ effect: function (t) {
1351
+ var e = t.state,
1352
+ i = t.options.element,
1353
+ n = void 0 === i ? "[data-popper-arrow]" : i;
1354
+ null != n &&
1355
+ ("string" != typeof n || (n = e.elements.popper.querySelector(n))) &&
1356
+ Jt(e.elements.popper, n) &&
1357
+ (e.elements.arrow = n);
1358
+ },
1359
+ requires: ["popperOffsets"],
1360
+ requiresIfExists: ["preventOverflow"],
1361
+ };
1362
+ function he(t) {
1363
+ return t.split("-")[1];
1364
+ }
1365
+ var de = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
1366
+ function ue(t) {
1367
+ var e,
1368
+ i = t.popper,
1369
+ n = t.popperRect,
1370
+ s = t.placement,
1371
+ o = t.variation,
1372
+ r = t.offsets,
1373
+ a = t.position,
1374
+ l = t.gpuAcceleration,
1375
+ c = t.adaptive,
1376
+ h = t.roundOffsets,
1377
+ d = t.isFixed,
1378
+ u = r.x,
1379
+ f = void 0 === u ? 0 : u,
1380
+ p = r.y,
1381
+ m = void 0 === p ? 0 : p,
1382
+ g = "function" == typeof h ? h({ x: f, y: m }) : { x: f, y: m };
1383
+ (f = g.x), (m = g.y);
1384
+ var _ = r.hasOwnProperty("x"),
1385
+ b = r.hasOwnProperty("y"),
1386
+ v = _t,
1387
+ y = pt,
1388
+ w = window;
1389
+ if (c) {
1390
+ var A = se(i),
1391
+ E = "clientHeight",
1392
+ T = "clientWidth";
1393
+ A === $t(i) &&
1394
+ "static" !== Zt((A = ee(i))).position &&
1395
+ "absolute" === a &&
1396
+ ((E = "scrollHeight"), (T = "scrollWidth")),
1397
+ (s === pt || ((s === _t || s === gt) && o === wt)) &&
1398
+ ((y = mt),
1399
+ (m -=
1400
+ (d && A === w && w.visualViewport
1401
+ ? w.visualViewport.height
1402
+ : A[E]) - n.height),
1403
+ (m *= l ? 1 : -1)),
1404
+ (s !== _t && ((s !== pt && s !== mt) || o !== wt)) ||
1405
+ ((v = gt),
1406
+ (f -=
1407
+ (d && A === w && w.visualViewport ? w.visualViewport.width : A[T]) -
1408
+ n.width),
1409
+ (f *= l ? 1 : -1));
1410
+ }
1411
+ var C,
1412
+ O = Object.assign({ position: a }, c && de),
1413
+ x =
1414
+ !0 === h
1415
+ ? (function (t, e) {
1416
+ var i = t.x,
1417
+ n = t.y,
1418
+ s = e.devicePixelRatio || 1;
1419
+ return { x: Qt(i * s) / s || 0, y: Qt(n * s) / s || 0 };
1420
+ })({ x: f, y: m }, $t(i))
1421
+ : { x: f, y: m };
1422
+ return (
1423
+ (f = x.x),
1424
+ (m = x.y),
1425
+ l
1426
+ ? Object.assign(
1427
+ {},
1428
+ O,
1429
+ (((C = {})[y] = b ? "0" : ""),
1430
+ (C[v] = _ ? "0" : ""),
1431
+ (C.transform =
1432
+ (w.devicePixelRatio || 1) <= 1
1433
+ ? "translate(" + f + "px, " + m + "px)"
1434
+ : "translate3d(" + f + "px, " + m + "px, 0)"),
1435
+ C)
1436
+ )
1437
+ : Object.assign(
1438
+ {},
1439
+ O,
1440
+ (((e = {})[y] = b ? m + "px" : ""),
1441
+ (e[v] = _ ? f + "px" : ""),
1442
+ (e.transform = ""),
1443
+ e)
1444
+ )
1445
+ );
1446
+ }
1447
+ const fe = {
1448
+ name: "computeStyles",
1449
+ enabled: !0,
1450
+ phase: "beforeWrite",
1451
+ fn: function (t) {
1452
+ var e = t.state,
1453
+ i = t.options,
1454
+ n = i.gpuAcceleration,
1455
+ s = void 0 === n || n,
1456
+ o = i.adaptive,
1457
+ r = void 0 === o || o,
1458
+ a = i.roundOffsets,
1459
+ l = void 0 === a || a,
1460
+ c = {
1461
+ placement: qt(e.placement),
1462
+ variation: he(e.placement),
1463
+ popper: e.elements.popper,
1464
+ popperRect: e.rects.popper,
1465
+ gpuAcceleration: s,
1466
+ isFixed: "fixed" === e.options.strategy,
1467
+ };
1468
+ null != e.modifiersData.popperOffsets &&
1469
+ (e.styles.popper = Object.assign(
1470
+ {},
1471
+ e.styles.popper,
1472
+ ue(
1473
+ Object.assign({}, c, {
1474
+ offsets: e.modifiersData.popperOffsets,
1475
+ position: e.options.strategy,
1476
+ adaptive: r,
1477
+ roundOffsets: l,
1478
+ })
1479
+ )
1480
+ )),
1481
+ null != e.modifiersData.arrow &&
1482
+ (e.styles.arrow = Object.assign(
1483
+ {},
1484
+ e.styles.arrow,
1485
+ ue(
1486
+ Object.assign({}, c, {
1487
+ offsets: e.modifiersData.arrow,
1488
+ position: "absolute",
1489
+ adaptive: !1,
1490
+ roundOffsets: l,
1491
+ })
1492
+ )
1493
+ )),
1494
+ (e.attributes.popper = Object.assign({}, e.attributes.popper, {
1495
+ "data-popper-placement": e.placement,
1496
+ }));
1497
+ },
1498
+ data: {},
1499
+ };
1500
+ var pe = { passive: !0 };
1501
+ const me = {
1502
+ name: "eventListeners",
1503
+ enabled: !0,
1504
+ phase: "write",
1505
+ fn: function () {},
1506
+ effect: function (t) {
1507
+ var e = t.state,
1508
+ i = t.instance,
1509
+ n = t.options,
1510
+ s = n.scroll,
1511
+ o = void 0 === s || s,
1512
+ r = n.resize,
1513
+ a = void 0 === r || r,
1514
+ l = $t(e.elements.popper),
1515
+ c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
1516
+ return (
1517
+ o &&
1518
+ c.forEach(function (t) {
1519
+ t.addEventListener("scroll", i.update, pe);
1520
+ }),
1521
+ a && l.addEventListener("resize", i.update, pe),
1522
+ function () {
1523
+ o &&
1524
+ c.forEach(function (t) {
1525
+ t.removeEventListener("scroll", i.update, pe);
1526
+ }),
1527
+ a && l.removeEventListener("resize", i.update, pe);
1528
+ }
1529
+ );
1530
+ },
1531
+ data: {},
1532
+ };
1533
+ var ge = { left: "right", right: "left", bottom: "top", top: "bottom" };
1534
+ function _e(t) {
1535
+ return t.replace(/left|right|bottom|top/g, function (t) {
1536
+ return ge[t];
1537
+ });
1538
+ }
1539
+ var be = { start: "end", end: "start" };
1540
+ function ve(t) {
1541
+ return t.replace(/start|end/g, function (t) {
1542
+ return be[t];
1543
+ });
1544
+ }
1545
+ function ye(t) {
1546
+ var e = $t(t);
1547
+ return { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
1548
+ }
1549
+ function we(t) {
1550
+ return Ut(ee(t)).left + ye(t).scrollLeft;
1551
+ }
1552
+ function Ae(t) {
1553
+ var e = Zt(t),
1554
+ i = e.overflow,
1555
+ n = e.overflowX,
1556
+ s = e.overflowY;
1557
+ return /auto|scroll|overlay|hidden/.test(i + s + n);
1558
+ }
1559
+ function Ee(t) {
1560
+ return ["html", "body", "#document"].indexOf(Ht(t)) >= 0
1561
+ ? t.ownerDocument.body
1562
+ : Bt(t) && Ae(t)
1563
+ ? t
1564
+ : Ee(ie(t));
1565
+ }
1566
+ function Te(t, e) {
1567
+ var i;
1568
+ void 0 === e && (e = []);
1569
+ var n = Ee(t),
1570
+ s = n === (null == (i = t.ownerDocument) ? void 0 : i.body),
1571
+ o = $t(n),
1572
+ r = s ? [o].concat(o.visualViewport || [], Ae(n) ? n : []) : n,
1573
+ a = e.concat(r);
1574
+ return s ? a : a.concat(Te(ie(r)));
1575
+ }
1576
+ function Ce(t) {
1577
+ return Object.assign({}, t, {
1578
+ left: t.x,
1579
+ top: t.y,
1580
+ right: t.x + t.width,
1581
+ bottom: t.y + t.height,
1582
+ });
1583
+ }
1584
+ function Oe(t, e, i) {
1585
+ return e === Et
1586
+ ? Ce(
1587
+ (function (t, e) {
1588
+ var i = $t(t),
1589
+ n = ee(t),
1590
+ s = i.visualViewport,
1591
+ o = n.clientWidth,
1592
+ r = n.clientHeight,
1593
+ a = 0,
1594
+ l = 0;
1595
+ if (s) {
1596
+ (o = s.width), (r = s.height);
1597
+ var c = Yt();
1598
+ (c || (!c && "fixed" === e)) &&
1599
+ ((a = s.offsetLeft), (l = s.offsetTop));
1600
+ }
1601
+ return { width: o, height: r, x: a + we(t), y: l };
1602
+ })(t, i)
1603
+ )
1604
+ : Wt(e)
1605
+ ? (function (t, e) {
1606
+ var i = Ut(t, !1, "fixed" === e);
1607
+ return (
1608
+ (i.top = i.top + t.clientTop),
1609
+ (i.left = i.left + t.clientLeft),
1610
+ (i.bottom = i.top + t.clientHeight),
1611
+ (i.right = i.left + t.clientWidth),
1612
+ (i.width = t.clientWidth),
1613
+ (i.height = t.clientHeight),
1614
+ (i.x = i.left),
1615
+ (i.y = i.top),
1616
+ i
1617
+ );
1618
+ })(e, i)
1619
+ : Ce(
1620
+ (function (t) {
1621
+ var e,
1622
+ i = ee(t),
1623
+ n = ye(t),
1624
+ s = null == (e = t.ownerDocument) ? void 0 : e.body,
1625
+ o = Vt(
1626
+ i.scrollWidth,
1627
+ i.clientWidth,
1628
+ s ? s.scrollWidth : 0,
1629
+ s ? s.clientWidth : 0
1630
+ ),
1631
+ r = Vt(
1632
+ i.scrollHeight,
1633
+ i.clientHeight,
1634
+ s ? s.scrollHeight : 0,
1635
+ s ? s.clientHeight : 0
1636
+ ),
1637
+ a = -n.scrollLeft + we(t),
1638
+ l = -n.scrollTop;
1639
+ return (
1640
+ "rtl" === Zt(s || i).direction &&
1641
+ (a += Vt(i.clientWidth, s ? s.clientWidth : 0) - o),
1642
+ { width: o, height: r, x: a, y: l }
1643
+ );
1644
+ })(ee(t))
1645
+ );
1646
+ }
1647
+ function xe(t) {
1648
+ var e,
1649
+ i = t.reference,
1650
+ n = t.element,
1651
+ s = t.placement,
1652
+ o = s ? qt(s) : null,
1653
+ r = s ? he(s) : null,
1654
+ a = i.x + i.width / 2 - n.width / 2,
1655
+ l = i.y + i.height / 2 - n.height / 2;
1656
+ switch (o) {
1657
+ case pt:
1658
+ e = { x: a, y: i.y - n.height };
1659
+ break;
1660
+ case mt:
1661
+ e = { x: a, y: i.y + i.height };
1662
+ break;
1663
+ case gt:
1664
+ e = { x: i.x + i.width, y: l };
1665
+ break;
1666
+ case _t:
1667
+ e = { x: i.x - n.width, y: l };
1668
+ break;
1669
+ default:
1670
+ e = { x: i.x, y: i.y };
1671
+ }
1672
+ var c = o ? oe(o) : null;
1673
+ if (null != c) {
1674
+ var h = "y" === c ? "height" : "width";
1675
+ switch (r) {
1676
+ case yt:
1677
+ e[c] = e[c] - (i[h] / 2 - n[h] / 2);
1678
+ break;
1679
+ case wt:
1680
+ e[c] = e[c] + (i[h] / 2 - n[h] / 2);
1681
+ }
1682
+ }
1683
+ return e;
1684
+ }
1685
+ function ke(t, e) {
1686
+ void 0 === e && (e = {});
1687
+ var i = e,
1688
+ n = i.placement,
1689
+ s = void 0 === n ? t.placement : n,
1690
+ o = i.strategy,
1691
+ r = void 0 === o ? t.strategy : o,
1692
+ a = i.boundary,
1693
+ l = void 0 === a ? At : a,
1694
+ c = i.rootBoundary,
1695
+ h = void 0 === c ? Et : c,
1696
+ d = i.elementContext,
1697
+ u = void 0 === d ? Tt : d,
1698
+ f = i.altBoundary,
1699
+ p = void 0 !== f && f,
1700
+ m = i.padding,
1701
+ g = void 0 === m ? 0 : m,
1702
+ _ = ae("number" != typeof g ? g : le(g, vt)),
1703
+ b = u === Tt ? Ct : Tt,
1704
+ v = t.rects.popper,
1705
+ y = t.elements[p ? b : u],
1706
+ w = (function (t, e, i, n) {
1707
+ var s =
1708
+ "clippingParents" === e
1709
+ ? (function (t) {
1710
+ var e = Te(ie(t)),
1711
+ i =
1712
+ ["absolute", "fixed"].indexOf(Zt(t).position) >= 0 &&
1713
+ Bt(t)
1714
+ ? se(t)
1715
+ : t;
1716
+ return Wt(i)
1717
+ ? e.filter(function (t) {
1718
+ return Wt(t) && Jt(t, i) && "body" !== Ht(t);
1719
+ })
1720
+ : [];
1721
+ })(t)
1722
+ : [].concat(e),
1723
+ o = [].concat(s, [i]),
1724
+ r = o[0],
1725
+ a = o.reduce(function (e, i) {
1726
+ var s = Oe(t, i, n);
1727
+ return (
1728
+ (e.top = Vt(s.top, e.top)),
1729
+ (e.right = Kt(s.right, e.right)),
1730
+ (e.bottom = Kt(s.bottom, e.bottom)),
1731
+ (e.left = Vt(s.left, e.left)),
1732
+ e
1733
+ );
1734
+ }, Oe(t, r, n));
1735
+ return (
1736
+ (a.width = a.right - a.left),
1737
+ (a.height = a.bottom - a.top),
1738
+ (a.x = a.left),
1739
+ (a.y = a.top),
1740
+ a
1741
+ );
1742
+ })(Wt(y) ? y : y.contextElement || ee(t.elements.popper), l, h, r),
1743
+ A = Ut(t.elements.reference),
1744
+ E = xe({ reference: A, element: v, strategy: "absolute", placement: s }),
1745
+ T = Ce(Object.assign({}, v, E)),
1746
+ C = u === Tt ? T : A,
1747
+ O = {
1748
+ top: w.top - C.top + _.top,
1749
+ bottom: C.bottom - w.bottom + _.bottom,
1750
+ left: w.left - C.left + _.left,
1751
+ right: C.right - w.right + _.right,
1752
+ },
1753
+ x = t.modifiersData.offset;
1754
+ if (u === Tt && x) {
1755
+ var k = x[s];
1756
+ Object.keys(O).forEach(function (t) {
1757
+ var e = [gt, mt].indexOf(t) >= 0 ? 1 : -1,
1758
+ i = [pt, mt].indexOf(t) >= 0 ? "y" : "x";
1759
+ O[t] += k[i] * e;
1760
+ });
1761
+ }
1762
+ return O;
1763
+ }
1764
+ function Le(t, e) {
1765
+ void 0 === e && (e = {});
1766
+ var i = e,
1767
+ n = i.placement,
1768
+ s = i.boundary,
1769
+ o = i.rootBoundary,
1770
+ r = i.padding,
1771
+ a = i.flipVariations,
1772
+ l = i.allowedAutoPlacements,
1773
+ c = void 0 === l ? xt : l,
1774
+ h = he(n),
1775
+ d = h
1776
+ ? a
1777
+ ? Ot
1778
+ : Ot.filter(function (t) {
1779
+ return he(t) === h;
1780
+ })
1781
+ : vt,
1782
+ u = d.filter(function (t) {
1783
+ return c.indexOf(t) >= 0;
1784
+ });
1785
+ 0 === u.length && (u = d);
1786
+ var f = u.reduce(function (e, i) {
1787
+ return (
1788
+ (e[i] = ke(t, {
1789
+ placement: i,
1790
+ boundary: s,
1791
+ rootBoundary: o,
1792
+ padding: r,
1793
+ })[qt(i)]),
1794
+ e
1795
+ );
1796
+ }, {});
1797
+ return Object.keys(f).sort(function (t, e) {
1798
+ return f[t] - f[e];
1799
+ });
1800
+ }
1801
+ const Se = {
1802
+ name: "flip",
1803
+ enabled: !0,
1804
+ phase: "main",
1805
+ fn: function (t) {
1806
+ var e = t.state,
1807
+ i = t.options,
1808
+ n = t.name;
1809
+ if (!e.modifiersData[n]._skip) {
1810
+ for (
1811
+ var s = i.mainAxis,
1812
+ o = void 0 === s || s,
1813
+ r = i.altAxis,
1814
+ a = void 0 === r || r,
1815
+ l = i.fallbackPlacements,
1816
+ c = i.padding,
1817
+ h = i.boundary,
1818
+ d = i.rootBoundary,
1819
+ u = i.altBoundary,
1820
+ f = i.flipVariations,
1821
+ p = void 0 === f || f,
1822
+ m = i.allowedAutoPlacements,
1823
+ g = e.options.placement,
1824
+ _ = qt(g),
1825
+ b =
1826
+ l ||
1827
+ (_ !== g && p
1828
+ ? (function (t) {
1829
+ if (qt(t) === bt) return [];
1830
+ var e = _e(t);
1831
+ return [ve(t), e, ve(e)];
1832
+ })(g)
1833
+ : [_e(g)]),
1834
+ v = [g].concat(b).reduce(function (t, i) {
1835
+ return t.concat(
1836
+ qt(i) === bt
1837
+ ? Le(e, {
1838
+ placement: i,
1839
+ boundary: h,
1840
+ rootBoundary: d,
1841
+ padding: c,
1842
+ flipVariations: p,
1843
+ allowedAutoPlacements: m,
1844
+ })
1845
+ : i
1846
+ );
1847
+ }, []),
1848
+ y = e.rects.reference,
1849
+ w = e.rects.popper,
1850
+ A = new Map(),
1851
+ E = !0,
1852
+ T = v[0],
1853
+ C = 0;
1854
+ C < v.length;
1855
+ C++
1856
+ ) {
1857
+ var O = v[C],
1858
+ x = qt(O),
1859
+ k = he(O) === yt,
1860
+ L = [pt, mt].indexOf(x) >= 0,
1861
+ S = L ? "width" : "height",
1862
+ D = ke(e, {
1863
+ placement: O,
1864
+ boundary: h,
1865
+ rootBoundary: d,
1866
+ altBoundary: u,
1867
+ padding: c,
1868
+ }),
1869
+ I = L ? (k ? gt : _t) : k ? mt : pt;
1870
+ y[S] > w[S] && (I = _e(I));
1871
+ var N = _e(I),
1872
+ P = [];
1873
+ if (
1874
+ (o && P.push(D[x] <= 0),
1875
+ a && P.push(D[I] <= 0, D[N] <= 0),
1876
+ P.every(function (t) {
1877
+ return t;
1878
+ }))
1879
+ ) {
1880
+ (T = O), (E = !1);
1881
+ break;
1882
+ }
1883
+ A.set(O, P);
1884
+ }
1885
+ if (E)
1886
+ for (
1887
+ var j = function (t) {
1888
+ var e = v.find(function (e) {
1889
+ var i = A.get(e);
1890
+ if (i)
1891
+ return i.slice(0, t).every(function (t) {
1892
+ return t;
1893
+ });
1894
+ });
1895
+ if (e) return (T = e), "break";
1896
+ },
1897
+ M = p ? 3 : 1;
1898
+ M > 0 && "break" !== j(M);
1899
+ M--
1900
+ );
1901
+ e.placement !== T &&
1902
+ ((e.modifiersData[n]._skip = !0), (e.placement = T), (e.reset = !0));
1903
+ }
1904
+ },
1905
+ requiresIfExists: ["offset"],
1906
+ data: { _skip: !1 },
1907
+ };
1908
+ function De(t, e, i) {
1909
+ return (
1910
+ void 0 === i && (i = { x: 0, y: 0 }),
1911
+ {
1912
+ top: t.top - e.height - i.y,
1913
+ right: t.right - e.width + i.x,
1914
+ bottom: t.bottom - e.height + i.y,
1915
+ left: t.left - e.width - i.x,
1916
+ }
1917
+ );
1918
+ }
1919
+ function Ie(t) {
1920
+ return [pt, gt, mt, _t].some(function (e) {
1921
+ return t[e] >= 0;
1922
+ });
1923
+ }
1924
+ const Ne = {
1925
+ name: "hide",
1926
+ enabled: !0,
1927
+ phase: "main",
1928
+ requiresIfExists: ["preventOverflow"],
1929
+ fn: function (t) {
1930
+ var e = t.state,
1931
+ i = t.name,
1932
+ n = e.rects.reference,
1933
+ s = e.rects.popper,
1934
+ o = e.modifiersData.preventOverflow,
1935
+ r = ke(e, { elementContext: "reference" }),
1936
+ a = ke(e, { altBoundary: !0 }),
1937
+ l = De(r, n),
1938
+ c = De(a, s, o),
1939
+ h = Ie(l),
1940
+ d = Ie(c);
1941
+ (e.modifiersData[i] = {
1942
+ referenceClippingOffsets: l,
1943
+ popperEscapeOffsets: c,
1944
+ isReferenceHidden: h,
1945
+ hasPopperEscaped: d,
1946
+ }),
1947
+ (e.attributes.popper = Object.assign({}, e.attributes.popper, {
1948
+ "data-popper-reference-hidden": h,
1949
+ "data-popper-escaped": d,
1950
+ }));
1951
+ },
1952
+ },
1953
+ Pe = {
1954
+ name: "offset",
1955
+ enabled: !0,
1956
+ phase: "main",
1957
+ requires: ["popperOffsets"],
1958
+ fn: function (t) {
1959
+ var e = t.state,
1960
+ i = t.options,
1961
+ n = t.name,
1962
+ s = i.offset,
1963
+ o = void 0 === s ? [0, 0] : s,
1964
+ r = xt.reduce(function (t, i) {
1965
+ return (
1966
+ (t[i] = (function (t, e, i) {
1967
+ var n = qt(t),
1968
+ s = [_t, pt].indexOf(n) >= 0 ? -1 : 1,
1969
+ o =
1970
+ "function" == typeof i
1971
+ ? i(Object.assign({}, e, { placement: t }))
1972
+ : i,
1973
+ r = o[0],
1974
+ a = o[1];
1975
+ return (
1976
+ (r = r || 0),
1977
+ (a = (a || 0) * s),
1978
+ [_t, gt].indexOf(n) >= 0 ? { x: a, y: r } : { x: r, y: a }
1979
+ );
1980
+ })(i, e.rects, o)),
1981
+ t
1982
+ );
1983
+ }, {}),
1984
+ a = r[e.placement],
1985
+ l = a.x,
1986
+ c = a.y;
1987
+ null != e.modifiersData.popperOffsets &&
1988
+ ((e.modifiersData.popperOffsets.x += l),
1989
+ (e.modifiersData.popperOffsets.y += c)),
1990
+ (e.modifiersData[n] = r);
1991
+ },
1992
+ },
1993
+ je = {
1994
+ name: "popperOffsets",
1995
+ enabled: !0,
1996
+ phase: "read",
1997
+ fn: function (t) {
1998
+ var e = t.state,
1999
+ i = t.name;
2000
+ e.modifiersData[i] = xe({
2001
+ reference: e.rects.reference,
2002
+ element: e.rects.popper,
2003
+ strategy: "absolute",
2004
+ placement: e.placement,
2005
+ });
2006
+ },
2007
+ data: {},
2008
+ },
2009
+ Me = {
2010
+ name: "preventOverflow",
2011
+ enabled: !0,
2012
+ phase: "main",
2013
+ fn: function (t) {
2014
+ var e = t.state,
2015
+ i = t.options,
2016
+ n = t.name,
2017
+ s = i.mainAxis,
2018
+ o = void 0 === s || s,
2019
+ r = i.altAxis,
2020
+ a = void 0 !== r && r,
2021
+ l = i.boundary,
2022
+ c = i.rootBoundary,
2023
+ h = i.altBoundary,
2024
+ d = i.padding,
2025
+ u = i.tether,
2026
+ f = void 0 === u || u,
2027
+ p = i.tetherOffset,
2028
+ m = void 0 === p ? 0 : p,
2029
+ g = ke(e, {
2030
+ boundary: l,
2031
+ rootBoundary: c,
2032
+ padding: d,
2033
+ altBoundary: h,
2034
+ }),
2035
+ _ = qt(e.placement),
2036
+ b = he(e.placement),
2037
+ v = !b,
2038
+ y = oe(_),
2039
+ w = "x" === y ? "y" : "x",
2040
+ A = e.modifiersData.popperOffsets,
2041
+ E = e.rects.reference,
2042
+ T = e.rects.popper,
2043
+ C =
2044
+ "function" == typeof m
2045
+ ? m(Object.assign({}, e.rects, { placement: e.placement }))
2046
+ : m,
2047
+ O =
2048
+ "number" == typeof C
2049
+ ? { mainAxis: C, altAxis: C }
2050
+ : Object.assign({ mainAxis: 0, altAxis: 0 }, C),
2051
+ x = e.modifiersData.offset
2052
+ ? e.modifiersData.offset[e.placement]
2053
+ : null,
2054
+ k = { x: 0, y: 0 };
2055
+ if (A) {
2056
+ if (o) {
2057
+ var L,
2058
+ S = "y" === y ? pt : _t,
2059
+ D = "y" === y ? mt : gt,
2060
+ I = "y" === y ? "height" : "width",
2061
+ N = A[y],
2062
+ P = N + g[S],
2063
+ j = N - g[D],
2064
+ M = f ? -T[I] / 2 : 0,
2065
+ F = b === yt ? E[I] : T[I],
2066
+ H = b === yt ? -T[I] : -E[I],
2067
+ $ = e.elements.arrow,
2068
+ W = f && $ ? Gt($) : { width: 0, height: 0 },
2069
+ B = e.modifiersData["arrow#persistent"]
2070
+ ? e.modifiersData["arrow#persistent"].padding
2071
+ : { top: 0, right: 0, bottom: 0, left: 0 },
2072
+ z = B[S],
2073
+ R = B[D],
2074
+ q = re(0, E[I], W[I]),
2075
+ V = v
2076
+ ? E[I] / 2 - M - q - z - O.mainAxis
2077
+ : F - q - z - O.mainAxis,
2078
+ K = v
2079
+ ? -E[I] / 2 + M + q + R + O.mainAxis
2080
+ : H + q + R + O.mainAxis,
2081
+ Q = e.elements.arrow && se(e.elements.arrow),
2082
+ X = Q ? ("y" === y ? Q.clientTop || 0 : Q.clientLeft || 0) : 0,
2083
+ Y = null != (L = null == x ? void 0 : x[y]) ? L : 0,
2084
+ U = N + K - Y,
2085
+ G = re(f ? Kt(P, N + V - Y - X) : P, N, f ? Vt(j, U) : j);
2086
+ (A[y] = G), (k[y] = G - N);
2087
+ }
2088
+ if (a) {
2089
+ var J,
2090
+ Z = "x" === y ? pt : _t,
2091
+ tt = "x" === y ? mt : gt,
2092
+ et = A[w],
2093
+ it = "y" === w ? "height" : "width",
2094
+ nt = et + g[Z],
2095
+ st = et - g[tt],
2096
+ ot = -1 !== [pt, _t].indexOf(_),
2097
+ rt = null != (J = null == x ? void 0 : x[w]) ? J : 0,
2098
+ at = ot ? nt : et - E[it] - T[it] - rt + O.altAxis,
2099
+ lt = ot ? et + E[it] + T[it] - rt - O.altAxis : st,
2100
+ ct =
2101
+ f && ot
2102
+ ? (function (t, e, i) {
2103
+ var n = re(t, e, i);
2104
+ return n > i ? i : n;
2105
+ })(at, et, lt)
2106
+ : re(f ? at : nt, et, f ? lt : st);
2107
+ (A[w] = ct), (k[w] = ct - et);
2108
+ }
2109
+ e.modifiersData[n] = k;
2110
+ }
2111
+ },
2112
+ requiresIfExists: ["offset"],
2113
+ };
2114
+ function Fe(t, e, i) {
2115
+ void 0 === i && (i = !1);
2116
+ var n,
2117
+ s,
2118
+ o = Bt(e),
2119
+ r =
2120
+ Bt(e) &&
2121
+ (function (t) {
2122
+ var e = t.getBoundingClientRect(),
2123
+ i = Qt(e.width) / t.offsetWidth || 1,
2124
+ n = Qt(e.height) / t.offsetHeight || 1;
2125
+ return 1 !== i || 1 !== n;
2126
+ })(e),
2127
+ a = ee(e),
2128
+ l = Ut(t, r, i),
2129
+ c = { scrollLeft: 0, scrollTop: 0 },
2130
+ h = { x: 0, y: 0 };
2131
+ return (
2132
+ (o || (!o && !i)) &&
2133
+ (("body" !== Ht(e) || Ae(a)) &&
2134
+ (c =
2135
+ (n = e) !== $t(n) && Bt(n)
2136
+ ? { scrollLeft: (s = n).scrollLeft, scrollTop: s.scrollTop }
2137
+ : ye(n)),
2138
+ Bt(e)
2139
+ ? (((h = Ut(e, !0)).x += e.clientLeft), (h.y += e.clientTop))
2140
+ : a && (h.x = we(a))),
2141
+ {
2142
+ x: l.left + c.scrollLeft - h.x,
2143
+ y: l.top + c.scrollTop - h.y,
2144
+ width: l.width,
2145
+ height: l.height,
2146
+ }
2147
+ );
2148
+ }
2149
+ function He(t) {
2150
+ var e = new Map(),
2151
+ i = new Set(),
2152
+ n = [];
2153
+ function s(t) {
2154
+ i.add(t.name),
2155
+ []
2156
+ .concat(t.requires || [], t.requiresIfExists || [])
2157
+ .forEach(function (t) {
2158
+ if (!i.has(t)) {
2159
+ var n = e.get(t);
2160
+ n && s(n);
2161
+ }
2162
+ }),
2163
+ n.push(t);
2164
+ }
2165
+ return (
2166
+ t.forEach(function (t) {
2167
+ e.set(t.name, t);
2168
+ }),
2169
+ t.forEach(function (t) {
2170
+ i.has(t.name) || s(t);
2171
+ }),
2172
+ n
2173
+ );
2174
+ }
2175
+ var $e = { placement: "bottom", modifiers: [], strategy: "absolute" };
2176
+ function We() {
2177
+ for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
2178
+ e[i] = arguments[i];
2179
+ return !e.some(function (t) {
2180
+ return !(t && "function" == typeof t.getBoundingClientRect);
2181
+ });
2182
+ }
2183
+ function Be(t) {
2184
+ void 0 === t && (t = {});
2185
+ var e = t,
2186
+ i = e.defaultModifiers,
2187
+ n = void 0 === i ? [] : i,
2188
+ s = e.defaultOptions,
2189
+ o = void 0 === s ? $e : s;
2190
+ return function (t, e, i) {
2191
+ void 0 === i && (i = o);
2192
+ var s,
2193
+ r,
2194
+ a = {
2195
+ placement: "bottom",
2196
+ orderedModifiers: [],
2197
+ options: Object.assign({}, $e, o),
2198
+ modifiersData: {},
2199
+ elements: { reference: t, popper: e },
2200
+ attributes: {},
2201
+ styles: {},
2202
+ },
2203
+ l = [],
2204
+ c = !1,
2205
+ h = {
2206
+ state: a,
2207
+ setOptions: function (i) {
2208
+ var s = "function" == typeof i ? i(a.options) : i;
2209
+ d(),
2210
+ (a.options = Object.assign({}, o, a.options, s)),
2211
+ (a.scrollParents = {
2212
+ reference: Wt(t)
2213
+ ? Te(t)
2214
+ : t.contextElement
2215
+ ? Te(t.contextElement)
2216
+ : [],
2217
+ popper: Te(e),
2218
+ });
2219
+ var r,
2220
+ c,
2221
+ u = (function (t) {
2222
+ var e = He(t);
2223
+ return Ft.reduce(function (t, i) {
2224
+ return t.concat(
2225
+ e.filter(function (t) {
2226
+ return t.phase === i;
2227
+ })
2228
+ );
2229
+ }, []);
2230
+ })(
2231
+ ((r = [].concat(n, a.options.modifiers)),
2232
+ (c = r.reduce(function (t, e) {
2233
+ var i = t[e.name];
2234
+ return (
2235
+ (t[e.name] = i
2236
+ ? Object.assign({}, i, e, {
2237
+ options: Object.assign({}, i.options, e.options),
2238
+ data: Object.assign({}, i.data, e.data),
2239
+ })
2240
+ : e),
2241
+ t
2242
+ );
2243
+ }, {})),
2244
+ Object.keys(c).map(function (t) {
2245
+ return c[t];
2246
+ }))
2247
+ );
2248
+ return (
2249
+ (a.orderedModifiers = u.filter(function (t) {
2250
+ return t.enabled;
2251
+ })),
2252
+ a.orderedModifiers.forEach(function (t) {
2253
+ var e = t.name,
2254
+ i = t.options,
2255
+ n = void 0 === i ? {} : i,
2256
+ s = t.effect;
2257
+ if ("function" == typeof s) {
2258
+ var o = s({ state: a, name: e, instance: h, options: n });
2259
+ l.push(o || function () {});
2260
+ }
2261
+ }),
2262
+ h.update()
2263
+ );
2264
+ },
2265
+ forceUpdate: function () {
2266
+ if (!c) {
2267
+ var t = a.elements,
2268
+ e = t.reference,
2269
+ i = t.popper;
2270
+ if (We(e, i)) {
2271
+ (a.rects = {
2272
+ reference: Fe(e, se(i), "fixed" === a.options.strategy),
2273
+ popper: Gt(i),
2274
+ }),
2275
+ (a.reset = !1),
2276
+ (a.placement = a.options.placement),
2277
+ a.orderedModifiers.forEach(function (t) {
2278
+ return (a.modifiersData[t.name] = Object.assign(
2279
+ {},
2280
+ t.data
2281
+ ));
2282
+ });
2283
+ for (var n = 0; n < a.orderedModifiers.length; n++)
2284
+ if (!0 !== a.reset) {
2285
+ var s = a.orderedModifiers[n],
2286
+ o = s.fn,
2287
+ r = s.options,
2288
+ l = void 0 === r ? {} : r,
2289
+ d = s.name;
2290
+ "function" == typeof o &&
2291
+ (a =
2292
+ o({ state: a, options: l, name: d, instance: h }) || a);
2293
+ } else (a.reset = !1), (n = -1);
2294
+ }
2295
+ }
2296
+ },
2297
+ update:
2298
+ ((s = function () {
2299
+ return new Promise(function (t) {
2300
+ h.forceUpdate(), t(a);
2301
+ });
2302
+ }),
2303
+ function () {
2304
+ return (
2305
+ r ||
2306
+ (r = new Promise(function (t) {
2307
+ Promise.resolve().then(function () {
2308
+ (r = void 0), t(s());
2309
+ });
2310
+ })),
2311
+ r
2312
+ );
2313
+ }),
2314
+ destroy: function () {
2315
+ d(), (c = !0);
2316
+ },
2317
+ };
2318
+ if (!We(t, e)) return h;
2319
+ function d() {
2320
+ l.forEach(function (t) {
2321
+ return t();
2322
+ }),
2323
+ (l = []);
2324
+ }
2325
+ return (
2326
+ h.setOptions(i).then(function (t) {
2327
+ !c && i.onFirstUpdate && i.onFirstUpdate(t);
2328
+ }),
2329
+ h
2330
+ );
2331
+ };
2332
+ }
2333
+ var ze = Be(),
2334
+ Re = Be({ defaultModifiers: [me, je, fe, Rt] }),
2335
+ qe = Be({ defaultModifiers: [me, je, fe, Rt, Pe, Se, Me, ce, Ne] });
2336
+ const Ve = Object.freeze(
2337
+ Object.defineProperty(
2338
+ {
2339
+ __proto__: null,
2340
+ afterMain: Nt,
2341
+ afterRead: St,
2342
+ afterWrite: Mt,
2343
+ applyStyles: Rt,
2344
+ arrow: ce,
2345
+ auto: bt,
2346
+ basePlacements: vt,
2347
+ beforeMain: Dt,
2348
+ beforeRead: kt,
2349
+ beforeWrite: Pt,
2350
+ bottom: mt,
2351
+ clippingParents: At,
2352
+ computeStyles: fe,
2353
+ createPopper: qe,
2354
+ createPopperBase: ze,
2355
+ createPopperLite: Re,
2356
+ detectOverflow: ke,
2357
+ end: wt,
2358
+ eventListeners: me,
2359
+ flip: Se,
2360
+ hide: Ne,
2361
+ left: _t,
2362
+ main: It,
2363
+ modifierPhases: Ft,
2364
+ offset: Pe,
2365
+ placements: xt,
2366
+ popper: Tt,
2367
+ popperGenerator: Be,
2368
+ popperOffsets: je,
2369
+ preventOverflow: Me,
2370
+ read: Lt,
2371
+ reference: Ct,
2372
+ right: gt,
2373
+ start: yt,
2374
+ top: pt,
2375
+ variationPlacements: Ot,
2376
+ viewport: Et,
2377
+ write: jt,
2378
+ },
2379
+ Symbol.toStringTag,
2380
+ { value: "Module" }
2381
+ )
2382
+ ),
2383
+ Ke = "dropdown",
2384
+ Qe = "ArrowUp",
2385
+ Xe = "ArrowDown",
2386
+ Ye = "click.bs.dropdown.data-api",
2387
+ Ue = "keydown.bs.dropdown.data-api",
2388
+ Ge = "show",
2389
+ Je = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',
2390
+ Ze = `${Je}.show`,
2391
+ ti = ".dropdown-menu",
2392
+ ei = p() ? "top-end" : "top-start",
2393
+ ii = p() ? "top-start" : "top-end",
2394
+ ni = p() ? "bottom-end" : "bottom-start",
2395
+ si = p() ? "bottom-start" : "bottom-end",
2396
+ oi = p() ? "left-start" : "right-start",
2397
+ ri = p() ? "right-start" : "left-start",
2398
+ ai = {
2399
+ autoClose: !0,
2400
+ boundary: "clippingParents",
2401
+ display: "dynamic",
2402
+ offset: [0, 2],
2403
+ popperConfig: null,
2404
+ reference: "toggle",
2405
+ },
2406
+ li = {
2407
+ autoClose: "(boolean|string)",
2408
+ boundary: "(string|element)",
2409
+ display: "string",
2410
+ offset: "(array|string|function)",
2411
+ popperConfig: "(null|object|function)",
2412
+ reference: "(string|element|object)",
2413
+ };
2414
+ class ci extends W {
2415
+ constructor(t, e) {
2416
+ super(t, e),
2417
+ (this._popper = null),
2418
+ (this._parent = this._element.parentNode),
2419
+ (this._menu =
2420
+ z.next(this._element, ti)[0] ||
2421
+ z.prev(this._element, ti)[0] ||
2422
+ z.findOne(ti, this._parent)),
2423
+ (this._inNavbar = this._detectNavbar());
2424
+ }
2425
+ static get Default() {
2426
+ return ai;
2427
+ }
2428
+ static get DefaultType() {
2429
+ return li;
2430
+ }
2431
+ static get NAME() {
2432
+ return Ke;
2433
+ }
2434
+ toggle() {
2435
+ return this._isShown() ? this.hide() : this.show();
2436
+ }
2437
+ show() {
2438
+ if (l(this._element) || this._isShown()) return;
2439
+ const t = { relatedTarget: this._element };
2440
+ if (!P.trigger(this._element, "show.bs.dropdown", t).defaultPrevented) {
2441
+ if (
2442
+ (this._createPopper(),
2443
+ "ontouchstart" in document.documentElement &&
2444
+ !this._parent.closest(".navbar-nav"))
2445
+ )
2446
+ for (const t of [].concat(...document.body.children))
2447
+ P.on(t, "mouseover", h);
2448
+ this._element.focus(),
2449
+ this._element.setAttribute("aria-expanded", !0),
2450
+ this._menu.classList.add(Ge),
2451
+ this._element.classList.add(Ge),
2452
+ P.trigger(this._element, "shown.bs.dropdown", t);
2453
+ }
2454
+ }
2455
+ hide() {
2456
+ if (l(this._element) || !this._isShown()) return;
2457
+ const t = { relatedTarget: this._element };
2458
+ this._completeHide(t);
2459
+ }
2460
+ dispose() {
2461
+ this._popper && this._popper.destroy(), super.dispose();
2462
+ }
2463
+ update() {
2464
+ (this._inNavbar = this._detectNavbar()),
2465
+ this._popper && this._popper.update();
2466
+ }
2467
+ _completeHide(t) {
2468
+ if (!P.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented) {
2469
+ if ("ontouchstart" in document.documentElement)
2470
+ for (const t of [].concat(...document.body.children))
2471
+ P.off(t, "mouseover", h);
2472
+ this._popper && this._popper.destroy(),
2473
+ this._menu.classList.remove(Ge),
2474
+ this._element.classList.remove(Ge),
2475
+ this._element.setAttribute("aria-expanded", "false"),
2476
+ H.removeDataAttribute(this._menu, "popper"),
2477
+ P.trigger(this._element, "hidden.bs.dropdown", t);
2478
+ }
2479
+ }
2480
+ _getConfig(t) {
2481
+ if (
2482
+ "object" == typeof (t = super._getConfig(t)).reference &&
2483
+ !o(t.reference) &&
2484
+ "function" != typeof t.reference.getBoundingClientRect
2485
+ )
2486
+ throw new TypeError(
2487
+ `${Ke.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`
2488
+ );
2489
+ return t;
2490
+ }
2491
+ _createPopper() {
2492
+ if (void 0 === Ve)
2493
+ throw new TypeError(
2494
+ "Bootstrap's dropdowns require Popper (https://popper.js.org)"
2495
+ );
2496
+ let t = this._element;
2497
+ "parent" === this._config.reference
2498
+ ? (t = this._parent)
2499
+ : o(this._config.reference)
2500
+ ? (t = r(this._config.reference))
2501
+ : "object" == typeof this._config.reference &&
2502
+ (t = this._config.reference);
2503
+ const e = this._getPopperConfig();
2504
+ this._popper = qe(t, this._menu, e);
2505
+ }
2506
+ _isShown() {
2507
+ return this._menu.classList.contains(Ge);
2508
+ }
2509
+ _getPlacement() {
2510
+ const t = this._parent;
2511
+ if (t.classList.contains("dropend")) return oi;
2512
+ if (t.classList.contains("dropstart")) return ri;
2513
+ if (t.classList.contains("dropup-center")) return "top";
2514
+ if (t.classList.contains("dropdown-center")) return "bottom";
2515
+ const e =
2516
+ "end" ===
2517
+ getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
2518
+ return t.classList.contains("dropup") ? (e ? ii : ei) : e ? si : ni;
2519
+ }
2520
+ _detectNavbar() {
2521
+ return null !== this._element.closest(".navbar");
2522
+ }
2523
+ _getOffset() {
2524
+ const { offset: t } = this._config;
2525
+ return "string" == typeof t
2526
+ ? t.split(",").map((t) => Number.parseInt(t, 10))
2527
+ : "function" == typeof t
2528
+ ? (e) => t(e, this._element)
2529
+ : t;
2530
+ }
2531
+ _getPopperConfig() {
2532
+ const t = {
2533
+ placement: this._getPlacement(),
2534
+ modifiers: [
2535
+ {
2536
+ name: "preventOverflow",
2537
+ options: { boundary: this._config.boundary },
2538
+ },
2539
+ { name: "offset", options: { offset: this._getOffset() } },
2540
+ ],
2541
+ };
2542
+ return (
2543
+ (this._inNavbar || "static" === this._config.display) &&
2544
+ (H.setDataAttribute(this._menu, "popper", "static"),
2545
+ (t.modifiers = [{ name: "applyStyles", enabled: !1 }])),
2546
+ { ...t, ...g(this._config.popperConfig, [t]) }
2547
+ );
2548
+ }
2549
+ _selectMenuItem({ key: t, target: e }) {
2550
+ const i = z
2551
+ .find(
2552
+ ".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",
2553
+ this._menu
2554
+ )
2555
+ .filter((t) => a(t));
2556
+ i.length && b(i, e, t === Xe, !i.includes(e)).focus();
2557
+ }
2558
+ static jQueryInterface(t) {
2559
+ return this.each(function () {
2560
+ const e = ci.getOrCreateInstance(this, t);
2561
+ if ("string" == typeof t) {
2562
+ if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`);
2563
+ e[t]();
2564
+ }
2565
+ });
2566
+ }
2567
+ static clearMenus(t) {
2568
+ if (2 === t.button || ("keyup" === t.type && "Tab" !== t.key)) return;
2569
+ const e = z.find(Ze);
2570
+ for (const i of e) {
2571
+ const e = ci.getInstance(i);
2572
+ if (!e || !1 === e._config.autoClose) continue;
2573
+ const n = t.composedPath(),
2574
+ s = n.includes(e._menu);
2575
+ if (
2576
+ n.includes(e._element) ||
2577
+ ("inside" === e._config.autoClose && !s) ||
2578
+ ("outside" === e._config.autoClose && s)
2579
+ )
2580
+ continue;
2581
+ if (
2582
+ e._menu.contains(t.target) &&
2583
+ (("keyup" === t.type && "Tab" === t.key) ||
2584
+ /input|select|option|textarea|form/i.test(t.target.tagName))
2585
+ )
2586
+ continue;
2587
+ const o = { relatedTarget: e._element };
2588
+ "click" === t.type && (o.clickEvent = t), e._completeHide(o);
2589
+ }
2590
+ }
2591
+ static dataApiKeydownHandler(t) {
2592
+ const e = /input|textarea/i.test(t.target.tagName),
2593
+ i = "Escape" === t.key,
2594
+ n = [Qe, Xe].includes(t.key);
2595
+ if (!n && !i) return;
2596
+ if (e && !i) return;
2597
+ t.preventDefault();
2598
+ const s = this.matches(Je)
2599
+ ? this
2600
+ : z.prev(this, Je)[0] ||
2601
+ z.next(this, Je)[0] ||
2602
+ z.findOne(Je, t.delegateTarget.parentNode),
2603
+ o = ci.getOrCreateInstance(s);
2604
+ if (n) return t.stopPropagation(), o.show(), void o._selectMenuItem(t);
2605
+ o._isShown() && (t.stopPropagation(), o.hide(), s.focus());
2606
+ }
2607
+ }
2608
+ P.on(document, Ue, Je, ci.dataApiKeydownHandler),
2609
+ P.on(document, Ue, ti, ci.dataApiKeydownHandler),
2610
+ P.on(document, Ye, ci.clearMenus),
2611
+ P.on(document, "keyup.bs.dropdown.data-api", ci.clearMenus),
2612
+ P.on(document, Ye, Je, function (t) {
2613
+ t.preventDefault(), ci.getOrCreateInstance(this).toggle();
2614
+ }),
2615
+ m(ci);
2616
+ const hi = "show",
2617
+ di = "mousedown.bs.backdrop",
2618
+ ui = {
2619
+ className: "modal-backdrop",
2620
+ clickCallback: null,
2621
+ isAnimated: !1,
2622
+ isVisible: !0,
2623
+ rootElement: "body",
2624
+ },
2625
+ fi = {
2626
+ className: "string",
2627
+ clickCallback: "(function|null)",
2628
+ isAnimated: "boolean",
2629
+ isVisible: "boolean",
2630
+ rootElement: "(element|string)",
2631
+ };
2632
+ class pi extends $ {
2633
+ constructor(t) {
2634
+ super(),
2635
+ (this._config = this._getConfig(t)),
2636
+ (this._isAppended = !1),
2637
+ (this._element = null);
2638
+ }
2639
+ static get Default() {
2640
+ return ui;
2641
+ }
2642
+ static get DefaultType() {
2643
+ return fi;
2644
+ }
2645
+ static get NAME() {
2646
+ return "backdrop";
2647
+ }
2648
+ show(t) {
2649
+ if (!this._config.isVisible) return void g(t);
2650
+ this._append();
2651
+ const e = this._getElement();
2652
+ this._config.isAnimated && d(e),
2653
+ e.classList.add(hi),
2654
+ this._emulateAnimation(() => {
2655
+ g(t);
2656
+ });
2657
+ }
2658
+ hide(t) {
2659
+ this._config.isVisible
2660
+ ? (this._getElement().classList.remove(hi),
2661
+ this._emulateAnimation(() => {
2662
+ this.dispose(), g(t);
2663
+ }))
2664
+ : g(t);
2665
+ }
2666
+ dispose() {
2667
+ this._isAppended &&
2668
+ (P.off(this._element, di),
2669
+ this._element.remove(),
2670
+ (this._isAppended = !1));
2671
+ }
2672
+ _getElement() {
2673
+ if (!this._element) {
2674
+ const t = document.createElement("div");
2675
+ (t.className = this._config.className),
2676
+ this._config.isAnimated && t.classList.add("fade"),
2677
+ (this._element = t);
2678
+ }
2679
+ return this._element;
2680
+ }
2681
+ _configAfterMerge(t) {
2682
+ return (t.rootElement = r(t.rootElement)), t;
2683
+ }
2684
+ _append() {
2685
+ if (this._isAppended) return;
2686
+ const t = this._getElement();
2687
+ this._config.rootElement.append(t),
2688
+ P.on(t, di, () => {
2689
+ g(this._config.clickCallback);
2690
+ }),
2691
+ (this._isAppended = !0);
2692
+ }
2693
+ _emulateAnimation(t) {
2694
+ _(t, this._getElement(), this._config.isAnimated);
2695
+ }
2696
+ }
2697
+ const mi = ".bs.focustrap",
2698
+ gi = "backward",
2699
+ _i = { autofocus: !0, trapElement: null },
2700
+ bi = { autofocus: "boolean", trapElement: "element" };
2701
+ class vi extends $ {
2702
+ constructor(t) {
2703
+ super(),
2704
+ (this._config = this._getConfig(t)),
2705
+ (this._isActive = !1),
2706
+ (this._lastTabNavDirection = null);
2707
+ }
2708
+ static get Default() {
2709
+ return _i;
2710
+ }
2711
+ static get DefaultType() {
2712
+ return bi;
2713
+ }
2714
+ static get NAME() {
2715
+ return "focustrap";
2716
+ }
2717
+ activate() {
2718
+ this._isActive ||
2719
+ (this._config.autofocus && this._config.trapElement.focus(),
2720
+ P.off(document, mi),
2721
+ P.on(document, "focusin.bs.focustrap", (t) => this._handleFocusin(t)),
2722
+ P.on(document, "keydown.tab.bs.focustrap", (t) =>
2723
+ this._handleKeydown(t)
2724
+ ),
2725
+ (this._isActive = !0));
2726
+ }
2727
+ deactivate() {
2728
+ this._isActive && ((this._isActive = !1), P.off(document, mi));
2729
+ }
2730
+ _handleFocusin(t) {
2731
+ const { trapElement: e } = this._config;
2732
+ if (t.target === document || t.target === e || e.contains(t.target))
2733
+ return;
2734
+ const i = z.focusableChildren(e);
2735
+ 0 === i.length
2736
+ ? e.focus()
2737
+ : this._lastTabNavDirection === gi
2738
+ ? i[i.length - 1].focus()
2739
+ : i[0].focus();
2740
+ }
2741
+ _handleKeydown(t) {
2742
+ "Tab" === t.key &&
2743
+ (this._lastTabNavDirection = t.shiftKey ? gi : "forward");
2744
+ }
2745
+ }
2746
+ const yi = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
2747
+ wi = ".sticky-top",
2748
+ Ai = "padding-right",
2749
+ Ei = "margin-right";
2750
+ class Ti {
2751
+ constructor() {
2752
+ this._element = document.body;
2753
+ }
2754
+ getWidth() {
2755
+ const t = document.documentElement.clientWidth;
2756
+ return Math.abs(window.innerWidth - t);
2757
+ }
2758
+ hide() {
2759
+ const t = this.getWidth();
2760
+ this._disableOverFlow(),
2761
+ this._setElementAttributes(this._element, Ai, (e) => e + t),
2762
+ this._setElementAttributes(yi, Ai, (e) => e + t),
2763
+ this._setElementAttributes(wi, Ei, (e) => e - t);
2764
+ }
2765
+ reset() {
2766
+ this._resetElementAttributes(this._element, "overflow"),
2767
+ this._resetElementAttributes(this._element, Ai),
2768
+ this._resetElementAttributes(yi, Ai),
2769
+ this._resetElementAttributes(wi, Ei);
2770
+ }
2771
+ isOverflowing() {
2772
+ return this.getWidth() > 0;
2773
+ }
2774
+ _disableOverFlow() {
2775
+ this._saveInitialAttribute(this._element, "overflow"),
2776
+ (this._element.style.overflow = "hidden");
2777
+ }
2778
+ _setElementAttributes(t, e, i) {
2779
+ const n = this.getWidth();
2780
+ this._applyManipulationCallback(t, (t) => {
2781
+ if (t !== this._element && window.innerWidth > t.clientWidth + n)
2782
+ return;
2783
+ this._saveInitialAttribute(t, e);
2784
+ const s = window.getComputedStyle(t).getPropertyValue(e);
2785
+ t.style.setProperty(e, `${i(Number.parseFloat(s))}px`);
2786
+ });
2787
+ }
2788
+ _saveInitialAttribute(t, e) {
2789
+ const i = t.style.getPropertyValue(e);
2790
+ i && H.setDataAttribute(t, e, i);
2791
+ }
2792
+ _resetElementAttributes(t, e) {
2793
+ this._applyManipulationCallback(t, (t) => {
2794
+ const i = H.getDataAttribute(t, e);
2795
+ null !== i
2796
+ ? (H.removeDataAttribute(t, e), t.style.setProperty(e, i))
2797
+ : t.style.removeProperty(e);
2798
+ });
2799
+ }
2800
+ _applyManipulationCallback(t, e) {
2801
+ if (o(t)) e(t);
2802
+ else for (const i of z.find(t, this._element)) e(i);
2803
+ }
2804
+ }
2805
+ const Ci = ".bs.modal",
2806
+ Oi = "hidden.bs.modal",
2807
+ xi = "show.bs.modal",
2808
+ ki = "modal-open",
2809
+ Li = "show",
2810
+ Si = "modal-static",
2811
+ Di = { backdrop: !0, focus: !0, keyboard: !0 },
2812
+ Ii = {
2813
+ backdrop: "(boolean|string)",
2814
+ focus: "boolean",
2815
+ keyboard: "boolean",
2816
+ };
2817
+ class Ni extends W {
2818
+ constructor(t, e) {
2819
+ super(t, e),
2820
+ (this._dialog = z.findOne(".modal-dialog", this._element)),
2821
+ (this._backdrop = this._initializeBackDrop()),
2822
+ (this._focustrap = this._initializeFocusTrap()),
2823
+ (this._isShown = !1),
2824
+ (this._isTransitioning = !1),
2825
+ (this._scrollBar = new Ti()),
2826
+ this._addEventListeners();
2827
+ }
2828
+ static get Default() {
2829
+ return Di;
2830
+ }
2831
+ static get DefaultType() {
2832
+ return Ii;
2833
+ }
2834
+ static get NAME() {
2835
+ return "modal";
2836
+ }
2837
+ toggle(t) {
2838
+ return this._isShown ? this.hide() : this.show(t);
2839
+ }
2840
+ show(t) {
2841
+ this._isShown ||
2842
+ this._isTransitioning ||
2843
+ P.trigger(this._element, xi, { relatedTarget: t }).defaultPrevented ||
2844
+ ((this._isShown = !0),
2845
+ (this._isTransitioning = !0),
2846
+ this._scrollBar.hide(),
2847
+ document.body.classList.add(ki),
2848
+ this._adjustDialog(),
2849
+ this._backdrop.show(() => this._showElement(t)));
2850
+ }
2851
+ hide() {
2852
+ this._isShown &&
2853
+ !this._isTransitioning &&
2854
+ (P.trigger(this._element, "hide.bs.modal").defaultPrevented ||
2855
+ ((this._isShown = !1),
2856
+ (this._isTransitioning = !0),
2857
+ this._focustrap.deactivate(),
2858
+ this._element.classList.remove(Li),
2859
+ this._queueCallback(
2860
+ () => this._hideModal(),
2861
+ this._element,
2862
+ this._isAnimated()
2863
+ )));
2864
+ }
2865
+ dispose() {
2866
+ P.off(window, Ci),
2867
+ P.off(this._dialog, Ci),
2868
+ this._backdrop.dispose(),
2869
+ this._focustrap.deactivate(),
2870
+ super.dispose();
2871
+ }
2872
+ handleUpdate() {
2873
+ this._adjustDialog();
2874
+ }
2875
+ _initializeBackDrop() {
2876
+ return new pi({
2877
+ isVisible: Boolean(this._config.backdrop),
2878
+ isAnimated: this._isAnimated(),
2879
+ });
2880
+ }
2881
+ _initializeFocusTrap() {
2882
+ return new vi({ trapElement: this._element });
2883
+ }
2884
+ _showElement(t) {
2885
+ document.body.contains(this._element) ||
2886
+ document.body.append(this._element),
2887
+ (this._element.style.display = "block"),
2888
+ this._element.removeAttribute("aria-hidden"),
2889
+ this._element.setAttribute("aria-modal", !0),
2890
+ this._element.setAttribute("role", "dialog"),
2891
+ (this._element.scrollTop = 0);
2892
+ const e = z.findOne(".modal-body", this._dialog);
2893
+ e && (e.scrollTop = 0),
2894
+ d(this._element),
2895
+ this._element.classList.add(Li),
2896
+ this._queueCallback(
2897
+ () => {
2898
+ this._config.focus && this._focustrap.activate(),
2899
+ (this._isTransitioning = !1),
2900
+ P.trigger(this._element, "shown.bs.modal", { relatedTarget: t });
2901
+ },
2902
+ this._dialog,
2903
+ this._isAnimated()
2904
+ );
2905
+ }
2906
+ _addEventListeners() {
2907
+ P.on(this._element, "keydown.dismiss.bs.modal", (t) => {
2908
+ "Escape" === t.key &&
2909
+ (this._config.keyboard
2910
+ ? this.hide()
2911
+ : this._triggerBackdropTransition());
2912
+ }),
2913
+ P.on(window, "resize.bs.modal", () => {
2914
+ this._isShown && !this._isTransitioning && this._adjustDialog();
2915
+ }),
2916
+ P.on(this._element, "mousedown.dismiss.bs.modal", (t) => {
2917
+ P.one(this._element, "click.dismiss.bs.modal", (e) => {
2918
+ this._element === t.target &&
2919
+ this._element === e.target &&
2920
+ ("static" !== this._config.backdrop
2921
+ ? this._config.backdrop && this.hide()
2922
+ : this._triggerBackdropTransition());
2923
+ });
2924
+ });
2925
+ }
2926
+ _hideModal() {
2927
+ (this._element.style.display = "none"),
2928
+ this._element.setAttribute("aria-hidden", !0),
2929
+ this._element.removeAttribute("aria-modal"),
2930
+ this._element.removeAttribute("role"),
2931
+ (this._isTransitioning = !1),
2932
+ this._backdrop.hide(() => {
2933
+ document.body.classList.remove(ki),
2934
+ this._resetAdjustments(),
2935
+ this._scrollBar.reset(),
2936
+ P.trigger(this._element, Oi);
2937
+ });
2938
+ }
2939
+ _isAnimated() {
2940
+ return this._element.classList.contains("fade");
2941
+ }
2942
+ _triggerBackdropTransition() {
2943
+ if (P.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented)
2944
+ return;
2945
+ const t =
2946
+ this._element.scrollHeight > document.documentElement.clientHeight,
2947
+ e = this._element.style.overflowY;
2948
+ "hidden" === e ||
2949
+ this._element.classList.contains(Si) ||
2950
+ (t || (this._element.style.overflowY = "hidden"),
2951
+ this._element.classList.add(Si),
2952
+ this._queueCallback(() => {
2953
+ this._element.classList.remove(Si),
2954
+ this._queueCallback(() => {
2955
+ this._element.style.overflowY = e;
2956
+ }, this._dialog);
2957
+ }, this._dialog),
2958
+ this._element.focus());
2959
+ }
2960
+ _adjustDialog() {
2961
+ const t =
2962
+ this._element.scrollHeight > document.documentElement.clientHeight,
2963
+ e = this._scrollBar.getWidth(),
2964
+ i = e > 0;
2965
+ if (i && !t) {
2966
+ const t = p() ? "paddingLeft" : "paddingRight";
2967
+ this._element.style[t] = `${e}px`;
2968
+ }
2969
+ if (!i && t) {
2970
+ const t = p() ? "paddingRight" : "paddingLeft";
2971
+ this._element.style[t] = `${e}px`;
2972
+ }
2973
+ }
2974
+ _resetAdjustments() {
2975
+ (this._element.style.paddingLeft = ""),
2976
+ (this._element.style.paddingRight = "");
2977
+ }
2978
+ static jQueryInterface(t, e) {
2979
+ return this.each(function () {
2980
+ const i = Ni.getOrCreateInstance(this, t);
2981
+ if ("string" == typeof t) {
2982
+ if (void 0 === i[t]) throw new TypeError(`No method named "${t}"`);
2983
+ i[t](e);
2984
+ }
2985
+ });
2986
+ }
2987
+ }
2988
+ P.on(
2989
+ document,
2990
+ "click.bs.modal.data-api",
2991
+ '[data-bs-toggle="modal"]',
2992
+ function (t) {
2993
+ const e = z.getElementFromSelector(this);
2994
+ ["A", "AREA"].includes(this.tagName) && t.preventDefault(),
2995
+ P.one(e, xi, (t) => {
2996
+ t.defaultPrevented ||
2997
+ P.one(e, Oi, () => {
2998
+ a(this) && this.focus();
2999
+ });
3000
+ });
3001
+ const i = z.findOne(".modal.show");
3002
+ i && Ni.getInstance(i).hide(), Ni.getOrCreateInstance(e).toggle(this);
3003
+ }
3004
+ ),
3005
+ R(Ni),
3006
+ m(Ni);
3007
+ const Pi = "show",
3008
+ ji = "showing",
3009
+ Mi = "hiding",
3010
+ Fi = ".offcanvas.show",
3011
+ Hi = "hidePrevented.bs.offcanvas",
3012
+ $i = "hidden.bs.offcanvas",
3013
+ Wi = { backdrop: !0, keyboard: !0, scroll: !1 },
3014
+ Bi = {
3015
+ backdrop: "(boolean|string)",
3016
+ keyboard: "boolean",
3017
+ scroll: "boolean",
3018
+ };
3019
+ class zi extends W {
3020
+ constructor(t, e) {
3021
+ super(t, e),
3022
+ (this._isShown = !1),
3023
+ (this._backdrop = this._initializeBackDrop()),
3024
+ (this._focustrap = this._initializeFocusTrap()),
3025
+ this._addEventListeners();
3026
+ }
3027
+ static get Default() {
3028
+ return Wi;
3029
+ }
3030
+ static get DefaultType() {
3031
+ return Bi;
3032
+ }
3033
+ static get NAME() {
3034
+ return "offcanvas";
3035
+ }
3036
+ toggle(t) {
3037
+ return this._isShown ? this.hide() : this.show(t);
3038
+ }
3039
+ show(t) {
3040
+ this._isShown ||
3041
+ P.trigger(this._element, "show.bs.offcanvas", { relatedTarget: t })
3042
+ .defaultPrevented ||
3043
+ ((this._isShown = !0),
3044
+ this._backdrop.show(),
3045
+ this._config.scroll || new Ti().hide(),
3046
+ this._element.setAttribute("aria-modal", !0),
3047
+ this._element.setAttribute("role", "dialog"),
3048
+ this._element.classList.add(ji),
3049
+ this._queueCallback(
3050
+ () => {
3051
+ (this._config.scroll && !this._config.backdrop) ||
3052
+ this._focustrap.activate(),
3053
+ this._element.classList.add(Pi),
3054
+ this._element.classList.remove(ji),
3055
+ P.trigger(this._element, "shown.bs.offcanvas", {
3056
+ relatedTarget: t,
3057
+ });
3058
+ },
3059
+ this._element,
3060
+ !0
3061
+ ));
3062
+ }
3063
+ hide() {
3064
+ this._isShown &&
3065
+ (P.trigger(this._element, "hide.bs.offcanvas").defaultPrevented ||
3066
+ (this._focustrap.deactivate(),
3067
+ this._element.blur(),
3068
+ (this._isShown = !1),
3069
+ this._element.classList.add(Mi),
3070
+ this._backdrop.hide(),
3071
+ this._queueCallback(
3072
+ () => {
3073
+ this._element.classList.remove(Pi, Mi),
3074
+ this._element.removeAttribute("aria-modal"),
3075
+ this._element.removeAttribute("role"),
3076
+ this._config.scroll || new Ti().reset(),
3077
+ P.trigger(this._element, $i);
3078
+ },
3079
+ this._element,
3080
+ !0
3081
+ )));
3082
+ }
3083
+ dispose() {
3084
+ this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose();
3085
+ }
3086
+ _initializeBackDrop() {
3087
+ const t = Boolean(this._config.backdrop);
3088
+ return new pi({
3089
+ className: "offcanvas-backdrop",
3090
+ isVisible: t,
3091
+ isAnimated: !0,
3092
+ rootElement: this._element.parentNode,
3093
+ clickCallback: t
3094
+ ? () => {
3095
+ "static" !== this._config.backdrop
3096
+ ? this.hide()
3097
+ : P.trigger(this._element, Hi);
3098
+ }
3099
+ : null,
3100
+ });
3101
+ }
3102
+ _initializeFocusTrap() {
3103
+ return new vi({ trapElement: this._element });
3104
+ }
3105
+ _addEventListeners() {
3106
+ P.on(this._element, "keydown.dismiss.bs.offcanvas", (t) => {
3107
+ "Escape" === t.key &&
3108
+ (this._config.keyboard ? this.hide() : P.trigger(this._element, Hi));
3109
+ });
3110
+ }
3111
+ static jQueryInterface(t) {
3112
+ return this.each(function () {
3113
+ const e = zi.getOrCreateInstance(this, t);
3114
+ if ("string" == typeof t) {
3115
+ if (void 0 === e[t] || t.startsWith("_") || "constructor" === t)
3116
+ throw new TypeError(`No method named "${t}"`);
3117
+ e[t](this);
3118
+ }
3119
+ });
3120
+ }
3121
+ }
3122
+ P.on(
3123
+ document,
3124
+ "click.bs.offcanvas.data-api",
3125
+ '[data-bs-toggle="offcanvas"]',
3126
+ function (t) {
3127
+ const e = z.getElementFromSelector(this);
3128
+ if ((["A", "AREA"].includes(this.tagName) && t.preventDefault(), l(this)))
3129
+ return;
3130
+ P.one(e, $i, () => {
3131
+ a(this) && this.focus();
3132
+ });
3133
+ const i = z.findOne(Fi);
3134
+ i && i !== e && zi.getInstance(i).hide(),
3135
+ zi.getOrCreateInstance(e).toggle(this);
3136
+ }
3137
+ ),
3138
+ P.on(window, "load.bs.offcanvas.data-api", () => {
3139
+ for (const t of z.find(Fi)) zi.getOrCreateInstance(t).show();
3140
+ }),
3141
+ P.on(window, "resize.bs.offcanvas", () => {
3142
+ for (const t of z.find("[aria-modal][class*=show][class*=offcanvas-]"))
3143
+ "fixed" !== getComputedStyle(t).position &&
3144
+ zi.getOrCreateInstance(t).hide();
3145
+ }),
3146
+ R(zi),
3147
+ m(zi);
3148
+ const Ri = new Set([
3149
+ "background",
3150
+ "cite",
3151
+ "href",
3152
+ "itemtype",
3153
+ "longdesc",
3154
+ "poster",
3155
+ "src",
3156
+ "xlink:href",
3157
+ ]),
3158
+ qi = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,
3159
+ Vi =
3160
+ /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,
3161
+ Ki = (t, e) => {
3162
+ const i = t.nodeName.toLowerCase();
3163
+ return e.includes(i)
3164
+ ? !Ri.has(i) || Boolean(qi.test(t.nodeValue) || Vi.test(t.nodeValue))
3165
+ : e.filter((t) => t instanceof RegExp).some((t) => t.test(i));
3166
+ },
3167
+ Qi = {
3168
+ "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i],
3169
+ a: ["target", "href", "title", "rel"],
3170
+ area: [],
3171
+ b: [],
3172
+ br: [],
3173
+ col: [],
3174
+ code: [],
3175
+ div: [],
3176
+ em: [],
3177
+ hr: [],
3178
+ h1: [],
3179
+ h2: [],
3180
+ h3: [],
3181
+ h4: [],
3182
+ h5: [],
3183
+ h6: [],
3184
+ i: [],
3185
+ img: ["src", "srcset", "alt", "title", "width", "height"],
3186
+ li: [],
3187
+ ol: [],
3188
+ p: [],
3189
+ pre: [],
3190
+ s: [],
3191
+ small: [],
3192
+ span: [],
3193
+ sub: [],
3194
+ sup: [],
3195
+ strong: [],
3196
+ u: [],
3197
+ ul: [],
3198
+ },
3199
+ Xi = {
3200
+ allowList: Qi,
3201
+ content: {},
3202
+ extraClass: "",
3203
+ html: !1,
3204
+ sanitize: !0,
3205
+ sanitizeFn: null,
3206
+ template: "<div></div>",
3207
+ },
3208
+ Yi = {
3209
+ allowList: "object",
3210
+ content: "object",
3211
+ extraClass: "(string|function)",
3212
+ html: "boolean",
3213
+ sanitize: "boolean",
3214
+ sanitizeFn: "(null|function)",
3215
+ template: "string",
3216
+ },
3217
+ Ui = {
3218
+ entry: "(string|element|function|null)",
3219
+ selector: "(string|element)",
3220
+ };
3221
+ class Gi extends $ {
3222
+ constructor(t) {
3223
+ super(), (this._config = this._getConfig(t));
3224
+ }
3225
+ static get Default() {
3226
+ return Xi;
3227
+ }
3228
+ static get DefaultType() {
3229
+ return Yi;
3230
+ }
3231
+ static get NAME() {
3232
+ return "TemplateFactory";
3233
+ }
3234
+ getContent() {
3235
+ return Object.values(this._config.content)
3236
+ .map((t) => this._resolvePossibleFunction(t))
3237
+ .filter(Boolean);
3238
+ }
3239
+ hasContent() {
3240
+ return this.getContent().length > 0;
3241
+ }
3242
+ changeContent(t) {
3243
+ return (
3244
+ this._checkContent(t),
3245
+ (this._config.content = { ...this._config.content, ...t }),
3246
+ this
3247
+ );
3248
+ }
3249
+ toHtml() {
3250
+ const t = document.createElement("div");
3251
+ t.innerHTML = this._maybeSanitize(this._config.template);
3252
+ for (const [e, i] of Object.entries(this._config.content))
3253
+ this._setContent(t, i, e);
3254
+ const e = t.children[0],
3255
+ i = this._resolvePossibleFunction(this._config.extraClass);
3256
+ return i && e.classList.add(...i.split(" ")), e;
3257
+ }
3258
+ _typeCheckConfig(t) {
3259
+ super._typeCheckConfig(t), this._checkContent(t.content);
3260
+ }
3261
+ _checkContent(t) {
3262
+ for (const [e, i] of Object.entries(t))
3263
+ super._typeCheckConfig({ selector: e, entry: i }, Ui);
3264
+ }
3265
+ _setContent(t, e, i) {
3266
+ const n = z.findOne(i, t);
3267
+ n &&
3268
+ ((e = this._resolvePossibleFunction(e))
3269
+ ? o(e)
3270
+ ? this._putElementInTemplate(r(e), n)
3271
+ : this._config.html
3272
+ ? (n.innerHTML = this._maybeSanitize(e))
3273
+ : (n.textContent = e)
3274
+ : n.remove());
3275
+ }
3276
+ _maybeSanitize(t) {
3277
+ return this._config.sanitize
3278
+ ? (function (t, e, i) {
3279
+ if (!t.length) return t;
3280
+ if (i && "function" == typeof i) return i(t);
3281
+ const n = new window.DOMParser().parseFromString(t, "text/html"),
3282
+ s = [].concat(...n.body.querySelectorAll("*"));
3283
+ for (const t of s) {
3284
+ const i = t.nodeName.toLowerCase();
3285
+ if (!Object.keys(e).includes(i)) {
3286
+ t.remove();
3287
+ continue;
3288
+ }
3289
+ const n = [].concat(...t.attributes),
3290
+ s = [].concat(e["*"] || [], e[i] || []);
3291
+ for (const e of n) Ki(e, s) || t.removeAttribute(e.nodeName);
3292
+ }
3293
+ return n.body.innerHTML;
3294
+ })(t, this._config.allowList, this._config.sanitizeFn)
3295
+ : t;
3296
+ }
3297
+ _resolvePossibleFunction(t) {
3298
+ return g(t, [this]);
3299
+ }
3300
+ _putElementInTemplate(t, e) {
3301
+ if (this._config.html) return (e.innerHTML = ""), void e.append(t);
3302
+ e.textContent = t.textContent;
3303
+ }
3304
+ }
3305
+ const Ji = new Set(["sanitize", "allowList", "sanitizeFn"]),
3306
+ Zi = "fade",
3307
+ tn = "show",
3308
+ en = ".modal",
3309
+ nn = "hide.bs.modal",
3310
+ sn = "hover",
3311
+ on = "focus",
3312
+ rn = {
3313
+ AUTO: "auto",
3314
+ TOP: "top",
3315
+ RIGHT: p() ? "left" : "right",
3316
+ BOTTOM: "bottom",
3317
+ LEFT: p() ? "right" : "left",
3318
+ },
3319
+ an = {
3320
+ allowList: Qi,
3321
+ animation: !0,
3322
+ boundary: "clippingParents",
3323
+ container: !1,
3324
+ customClass: "",
3325
+ delay: 0,
3326
+ fallbackPlacements: ["top", "right", "bottom", "left"],
3327
+ html: !1,
3328
+ offset: [0, 6],
3329
+ placement: "top",
3330
+ popperConfig: null,
3331
+ sanitize: !0,
3332
+ sanitizeFn: null,
3333
+ selector: !1,
3334
+ template:
3335
+ '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
3336
+ title: "",
3337
+ trigger: "hover focus",
3338
+ },
3339
+ ln = {
3340
+ allowList: "object",
3341
+ animation: "boolean",
3342
+ boundary: "(string|element)",
3343
+ container: "(string|element|boolean)",
3344
+ customClass: "(string|function)",
3345
+ delay: "(number|object)",
3346
+ fallbackPlacements: "array",
3347
+ html: "boolean",
3348
+ offset: "(array|string|function)",
3349
+ placement: "(string|function)",
3350
+ popperConfig: "(null|object|function)",
3351
+ sanitize: "boolean",
3352
+ sanitizeFn: "(null|function)",
3353
+ selector: "(string|boolean)",
3354
+ template: "string",
3355
+ title: "(string|element|function)",
3356
+ trigger: "string",
3357
+ };
3358
+ class cn extends W {
3359
+ constructor(t, e) {
3360
+ if (void 0 === Ve)
3361
+ throw new TypeError(
3362
+ "Bootstrap's tooltips require Popper (https://popper.js.org)"
3363
+ );
3364
+ super(t, e),
3365
+ (this._isEnabled = !0),
3366
+ (this._timeout = 0),
3367
+ (this._isHovered = null),
3368
+ (this._activeTrigger = {}),
3369
+ (this._popper = null),
3370
+ (this._templateFactory = null),
3371
+ (this._newContent = null),
3372
+ (this.tip = null),
3373
+ this._setListeners(),
3374
+ this._config.selector || this._fixTitle();
3375
+ }
3376
+ static get Default() {
3377
+ return an;
3378
+ }
3379
+ static get DefaultType() {
3380
+ return ln;
3381
+ }
3382
+ static get NAME() {
3383
+ return "tooltip";
3384
+ }
3385
+ enable() {
3386
+ this._isEnabled = !0;
3387
+ }
3388
+ disable() {
3389
+ this._isEnabled = !1;
3390
+ }
3391
+ toggleEnabled() {
3392
+ this._isEnabled = !this._isEnabled;
3393
+ }
3394
+ toggle() {
3395
+ this._isEnabled &&
3396
+ ((this._activeTrigger.click = !this._activeTrigger.click),
3397
+ this._isShown() ? this._leave() : this._enter());
3398
+ }
3399
+ dispose() {
3400
+ clearTimeout(this._timeout),
3401
+ P.off(this._element.closest(en), nn, this._hideModalHandler),
3402
+ this._element.getAttribute("data-bs-original-title") &&
3403
+ this._element.setAttribute(
3404
+ "title",
3405
+ this._element.getAttribute("data-bs-original-title")
3406
+ ),
3407
+ this._disposePopper(),
3408
+ super.dispose();
3409
+ }
3410
+ show() {
3411
+ if ("none" === this._element.style.display)
3412
+ throw new Error("Please use show on visible elements");
3413
+ if (!this._isWithContent() || !this._isEnabled) return;
3414
+ const t = P.trigger(this._element, this.constructor.eventName("show")),
3415
+ e = (
3416
+ c(this._element) || this._element.ownerDocument.documentElement
3417
+ ).contains(this._element);
3418
+ if (t.defaultPrevented || !e) return;
3419
+ this._disposePopper();
3420
+ const i = this._getTipElement();
3421
+ this._element.setAttribute("aria-describedby", i.getAttribute("id"));
3422
+ const { container: n } = this._config;
3423
+ if (
3424
+ (this._element.ownerDocument.documentElement.contains(this.tip) ||
3425
+ (n.append(i),
3426
+ P.trigger(this._element, this.constructor.eventName("inserted"))),
3427
+ (this._popper = this._createPopper(i)),
3428
+ i.classList.add(tn),
3429
+ "ontouchstart" in document.documentElement)
3430
+ )
3431
+ for (const t of [].concat(...document.body.children))
3432
+ P.on(t, "mouseover", h);
3433
+ this._queueCallback(
3434
+ () => {
3435
+ P.trigger(this._element, this.constructor.eventName("shown")),
3436
+ !1 === this._isHovered && this._leave(),
3437
+ (this._isHovered = !1);
3438
+ },
3439
+ this.tip,
3440
+ this._isAnimated()
3441
+ );
3442
+ }
3443
+ hide() {
3444
+ if (
3445
+ this._isShown() &&
3446
+ !P.trigger(this._element, this.constructor.eventName("hide"))
3447
+ .defaultPrevented
3448
+ ) {
3449
+ if (
3450
+ (this._getTipElement().classList.remove(tn),
3451
+ "ontouchstart" in document.documentElement)
3452
+ )
3453
+ for (const t of [].concat(...document.body.children))
3454
+ P.off(t, "mouseover", h);
3455
+ (this._activeTrigger.click = !1),
3456
+ (this._activeTrigger.focus = !1),
3457
+ (this._activeTrigger.hover = !1),
3458
+ (this._isHovered = null),
3459
+ this._queueCallback(
3460
+ () => {
3461
+ this._isWithActiveTrigger() ||
3462
+ (this._isHovered || this._disposePopper(),
3463
+ this._element.removeAttribute("aria-describedby"),
3464
+ P.trigger(this._element, this.constructor.eventName("hidden")));
3465
+ },
3466
+ this.tip,
3467
+ this._isAnimated()
3468
+ );
3469
+ }
3470
+ }
3471
+ update() {
3472
+ this._popper && this._popper.update();
3473
+ }
3474
+ _isWithContent() {
3475
+ return Boolean(this._getTitle());
3476
+ }
3477
+ _getTipElement() {
3478
+ return (
3479
+ this.tip ||
3480
+ (this.tip = this._createTipElement(
3481
+ this._newContent || this._getContentForTemplate()
3482
+ )),
3483
+ this.tip
3484
+ );
3485
+ }
3486
+ _createTipElement(t) {
3487
+ const e = this._getTemplateFactory(t).toHtml();
3488
+ if (!e) return null;
3489
+ e.classList.remove(Zi, tn),
3490
+ e.classList.add(`bs-${this.constructor.NAME}-auto`);
3491
+ const i = ((t) => {
3492
+ do {
3493
+ t += Math.floor(1e6 * Math.random());
3494
+ } while (document.getElementById(t));
3495
+ return t;
3496
+ })(this.constructor.NAME).toString();
3497
+ return (
3498
+ e.setAttribute("id", i), this._isAnimated() && e.classList.add(Zi), e
3499
+ );
3500
+ }
3501
+ setContent(t) {
3502
+ (this._newContent = t),
3503
+ this._isShown() && (this._disposePopper(), this.show());
3504
+ }
3505
+ _getTemplateFactory(t) {
3506
+ return (
3507
+ this._templateFactory
3508
+ ? this._templateFactory.changeContent(t)
3509
+ : (this._templateFactory = new Gi({
3510
+ ...this._config,
3511
+ content: t,
3512
+ extraClass: this._resolvePossibleFunction(
3513
+ this._config.customClass
3514
+ ),
3515
+ })),
3516
+ this._templateFactory
3517
+ );
3518
+ }
3519
+ _getContentForTemplate() {
3520
+ return { ".tooltip-inner": this._getTitle() };
3521
+ }
3522
+ _getTitle() {
3523
+ return (
3524
+ this._resolvePossibleFunction(this._config.title) ||
3525
+ this._element.getAttribute("data-bs-original-title")
3526
+ );
3527
+ }
3528
+ _initializeOnDelegatedTarget(t) {
3529
+ return this.constructor.getOrCreateInstance(
3530
+ t.delegateTarget,
3531
+ this._getDelegateConfig()
3532
+ );
3533
+ }
3534
+ _isAnimated() {
3535
+ return (
3536
+ this._config.animation || (this.tip && this.tip.classList.contains(Zi))
3537
+ );
3538
+ }
3539
+ _isShown() {
3540
+ return this.tip && this.tip.classList.contains(tn);
3541
+ }
3542
+ _createPopper(t) {
3543
+ const e = g(this._config.placement, [this, t, this._element]),
3544
+ i = rn[e.toUpperCase()];
3545
+ return qe(this._element, t, this._getPopperConfig(i));
3546
+ }
3547
+ _getOffset() {
3548
+ const { offset: t } = this._config;
3549
+ return "string" == typeof t
3550
+ ? t.split(",").map((t) => Number.parseInt(t, 10))
3551
+ : "function" == typeof t
3552
+ ? (e) => t(e, this._element)
3553
+ : t;
3554
+ }
3555
+ _resolvePossibleFunction(t) {
3556
+ return g(t, [this._element]);
3557
+ }
3558
+ _getPopperConfig(t) {
3559
+ const e = {
3560
+ placement: t,
3561
+ modifiers: [
3562
+ {
3563
+ name: "flip",
3564
+ options: { fallbackPlacements: this._config.fallbackPlacements },
3565
+ },
3566
+ { name: "offset", options: { offset: this._getOffset() } },
3567
+ {
3568
+ name: "preventOverflow",
3569
+ options: { boundary: this._config.boundary },
3570
+ },
3571
+ {
3572
+ name: "arrow",
3573
+ options: { element: `.${this.constructor.NAME}-arrow` },
3574
+ },
3575
+ {
3576
+ name: "preSetPlacement",
3577
+ enabled: !0,
3578
+ phase: "beforeMain",
3579
+ fn: (t) => {
3580
+ this._getTipElement().setAttribute(
3581
+ "data-popper-placement",
3582
+ t.state.placement
3583
+ );
3584
+ },
3585
+ },
3586
+ ],
3587
+ };
3588
+ return { ...e, ...g(this._config.popperConfig, [e]) };
3589
+ }
3590
+ _setListeners() {
3591
+ const t = this._config.trigger.split(" ");
3592
+ for (const e of t)
3593
+ if ("click" === e)
3594
+ P.on(
3595
+ this._element,
3596
+ this.constructor.eventName("click"),
3597
+ this._config.selector,
3598
+ (t) => {
3599
+ this._initializeOnDelegatedTarget(t).toggle();
3600
+ }
3601
+ );
3602
+ else if ("manual" !== e) {
3603
+ const t =
3604
+ e === sn
3605
+ ? this.constructor.eventName("mouseenter")
3606
+ : this.constructor.eventName("focusin"),
3607
+ i =
3608
+ e === sn
3609
+ ? this.constructor.eventName("mouseleave")
3610
+ : this.constructor.eventName("focusout");
3611
+ P.on(this._element, t, this._config.selector, (t) => {
3612
+ const e = this._initializeOnDelegatedTarget(t);
3613
+ (e._activeTrigger["focusin" === t.type ? on : sn] = !0), e._enter();
3614
+ }),
3615
+ P.on(this._element, i, this._config.selector, (t) => {
3616
+ const e = this._initializeOnDelegatedTarget(t);
3617
+ (e._activeTrigger["focusout" === t.type ? on : sn] =
3618
+ e._element.contains(t.relatedTarget)),
3619
+ e._leave();
3620
+ });
3621
+ }
3622
+ (this._hideModalHandler = () => {
3623
+ this._element && this.hide();
3624
+ }),
3625
+ P.on(this._element.closest(en), nn, this._hideModalHandler);
3626
+ }
3627
+ _fixTitle() {
3628
+ const t = this._element.getAttribute("title");
3629
+ t &&
3630
+ (this._element.getAttribute("aria-label") ||
3631
+ this._element.textContent.trim() ||
3632
+ this._element.setAttribute("aria-label", t),
3633
+ this._element.setAttribute("data-bs-original-title", t),
3634
+ this._element.removeAttribute("title"));
3635
+ }
3636
+ _enter() {
3637
+ this._isShown() || this._isHovered
3638
+ ? (this._isHovered = !0)
3639
+ : ((this._isHovered = !0),
3640
+ this._setTimeout(() => {
3641
+ this._isHovered && this.show();
3642
+ }, this._config.delay.show));
3643
+ }
3644
+ _leave() {
3645
+ this._isWithActiveTrigger() ||
3646
+ ((this._isHovered = !1),
3647
+ this._setTimeout(() => {
3648
+ this._isHovered || this.hide();
3649
+ }, this._config.delay.hide));
3650
+ }
3651
+ _setTimeout(t, e) {
3652
+ clearTimeout(this._timeout), (this._timeout = setTimeout(t, e));
3653
+ }
3654
+ _isWithActiveTrigger() {
3655
+ return Object.values(this._activeTrigger).includes(!0);
3656
+ }
3657
+ _getConfig(t) {
3658
+ const e = H.getDataAttributes(this._element);
3659
+ for (const t of Object.keys(e)) Ji.has(t) && delete e[t];
3660
+ return (
3661
+ (t = { ...e, ...("object" == typeof t && t ? t : {}) }),
3662
+ (t = this._mergeConfigObj(t)),
3663
+ (t = this._configAfterMerge(t)),
3664
+ this._typeCheckConfig(t),
3665
+ t
3666
+ );
3667
+ }
3668
+ _configAfterMerge(t) {
3669
+ return (
3670
+ (t.container = !1 === t.container ? document.body : r(t.container)),
3671
+ "number" == typeof t.delay &&
3672
+ (t.delay = { show: t.delay, hide: t.delay }),
3673
+ "number" == typeof t.title && (t.title = t.title.toString()),
3674
+ "number" == typeof t.content && (t.content = t.content.toString()),
3675
+ t
3676
+ );
3677
+ }
3678
+ _getDelegateConfig() {
3679
+ const t = {};
3680
+ for (const [e, i] of Object.entries(this._config))
3681
+ this.constructor.Default[e] !== i && (t[e] = i);
3682
+ return (t.selector = !1), (t.trigger = "manual"), t;
3683
+ }
3684
+ _disposePopper() {
3685
+ this._popper && (this._popper.destroy(), (this._popper = null)),
3686
+ this.tip && (this.tip.remove(), (this.tip = null));
3687
+ }
3688
+ static jQueryInterface(t) {
3689
+ return this.each(function () {
3690
+ const e = cn.getOrCreateInstance(this, t);
3691
+ if ("string" == typeof t) {
3692
+ if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`);
3693
+ e[t]();
3694
+ }
3695
+ });
3696
+ }
3697
+ }
3698
+ m(cn);
3699
+ const hn = {
3700
+ ...cn.Default,
3701
+ content: "",
3702
+ offset: [0, 8],
3703
+ placement: "right",
3704
+ template:
3705
+ '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',
3706
+ trigger: "click",
3707
+ },
3708
+ dn = { ...cn.DefaultType, content: "(null|string|element|function)" };
3709
+ class un extends cn {
3710
+ static get Default() {
3711
+ return hn;
3712
+ }
3713
+ static get DefaultType() {
3714
+ return dn;
3715
+ }
3716
+ static get NAME() {
3717
+ return "popover";
3718
+ }
3719
+ _isWithContent() {
3720
+ return this._getTitle() || this._getContent();
3721
+ }
3722
+ _getContentForTemplate() {
3723
+ return {
3724
+ ".popover-header": this._getTitle(),
3725
+ ".popover-body": this._getContent(),
3726
+ };
3727
+ }
3728
+ _getContent() {
3729
+ return this._resolvePossibleFunction(this._config.content);
3730
+ }
3731
+ static jQueryInterface(t) {
3732
+ return this.each(function () {
3733
+ const e = un.getOrCreateInstance(this, t);
3734
+ if ("string" == typeof t) {
3735
+ if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`);
3736
+ e[t]();
3737
+ }
3738
+ });
3739
+ }
3740
+ }
3741
+ m(un);
3742
+ const fn = "click.bs.scrollspy",
3743
+ pn = "active",
3744
+ mn = "[href]",
3745
+ gn = {
3746
+ offset: null,
3747
+ rootMargin: "0px 0px -25%",
3748
+ smoothScroll: !1,
3749
+ target: null,
3750
+ threshold: [0.1, 0.5, 1],
3751
+ },
3752
+ _n = {
3753
+ offset: "(number|null)",
3754
+ rootMargin: "string",
3755
+ smoothScroll: "boolean",
3756
+ target: "element",
3757
+ threshold: "array",
3758
+ };
3759
+ class bn extends W {
3760
+ constructor(t, e) {
3761
+ super(t, e),
3762
+ (this._targetLinks = new Map()),
3763
+ (this._observableSections = new Map()),
3764
+ (this._rootElement =
3765
+ "visible" === getComputedStyle(this._element).overflowY
3766
+ ? null
3767
+ : this._element),
3768
+ (this._activeTarget = null),
3769
+ (this._observer = null),
3770
+ (this._previousScrollData = { visibleEntryTop: 0, parentScrollTop: 0 }),
3771
+ this.refresh();
3772
+ }
3773
+ static get Default() {
3774
+ return gn;
3775
+ }
3776
+ static get DefaultType() {
3777
+ return _n;
3778
+ }
3779
+ static get NAME() {
3780
+ return "scrollspy";
3781
+ }
3782
+ refresh() {
3783
+ this._initializeTargetsAndObservables(),
3784
+ this._maybeEnableSmoothScroll(),
3785
+ this._observer
3786
+ ? this._observer.disconnect()
3787
+ : (this._observer = this._getNewObserver());
3788
+ for (const t of this._observableSections.values())
3789
+ this._observer.observe(t);
3790
+ }
3791
+ dispose() {
3792
+ this._observer.disconnect(), super.dispose();
3793
+ }
3794
+ _configAfterMerge(t) {
3795
+ return (
3796
+ (t.target = r(t.target) || document.body),
3797
+ (t.rootMargin = t.offset ? `${t.offset}px 0px -30%` : t.rootMargin),
3798
+ "string" == typeof t.threshold &&
3799
+ (t.threshold = t.threshold
3800
+ .split(",")
3801
+ .map((t) => Number.parseFloat(t))),
3802
+ t
3803
+ );
3804
+ }
3805
+ _maybeEnableSmoothScroll() {
3806
+ this._config.smoothScroll &&
3807
+ (P.off(this._config.target, fn),
3808
+ P.on(this._config.target, fn, mn, (t) => {
3809
+ const e = this._observableSections.get(t.target.hash);
3810
+ if (e) {
3811
+ t.preventDefault();
3812
+ const i = this._rootElement || window,
3813
+ n = e.offsetTop - this._element.offsetTop;
3814
+ if (i.scrollTo)
3815
+ return void i.scrollTo({ top: n, behavior: "smooth" });
3816
+ i.scrollTop = n;
3817
+ }
3818
+ }));
3819
+ }
3820
+ _getNewObserver() {
3821
+ const t = {
3822
+ root: this._rootElement,
3823
+ threshold: this._config.threshold,
3824
+ rootMargin: this._config.rootMargin,
3825
+ };
3826
+ return new IntersectionObserver((t) => this._observerCallback(t), t);
3827
+ }
3828
+ _observerCallback(t) {
3829
+ const e = (t) => this._targetLinks.get(`#${t.target.id}`),
3830
+ i = (t) => {
3831
+ (this._previousScrollData.visibleEntryTop = t.target.offsetTop),
3832
+ this._process(e(t));
3833
+ },
3834
+ n = (this._rootElement || document.documentElement).scrollTop,
3835
+ s = n >= this._previousScrollData.parentScrollTop;
3836
+ this._previousScrollData.parentScrollTop = n;
3837
+ for (const o of t) {
3838
+ if (!o.isIntersecting) {
3839
+ (this._activeTarget = null), this._clearActiveClass(e(o));
3840
+ continue;
3841
+ }
3842
+ const t =
3843
+ o.target.offsetTop >= this._previousScrollData.visibleEntryTop;
3844
+ if (s && t) {
3845
+ if ((i(o), !n)) return;
3846
+ } else s || t || i(o);
3847
+ }
3848
+ }
3849
+ _initializeTargetsAndObservables() {
3850
+ (this._targetLinks = new Map()), (this._observableSections = new Map());
3851
+ const t = z.find(mn, this._config.target);
3852
+ for (const e of t) {
3853
+ if (!e.hash || l(e)) continue;
3854
+ const t = z.findOne(e.hash, this._element);
3855
+ a(t) &&
3856
+ (this._targetLinks.set(e.hash, e),
3857
+ this._observableSections.set(e.hash, t));
3858
+ }
3859
+ }
3860
+ _process(t) {
3861
+ this._activeTarget !== t &&
3862
+ (this._clearActiveClass(this._config.target),
3863
+ (this._activeTarget = t),
3864
+ t.classList.add(pn),
3865
+ this._activateParents(t),
3866
+ P.trigger(this._element, "activate.bs.scrollspy", {
3867
+ relatedTarget: t,
3868
+ }));
3869
+ }
3870
+ _activateParents(t) {
3871
+ if (t.classList.contains("dropdown-item"))
3872
+ z.findOne(".dropdown-toggle", t.closest(".dropdown")).classList.add(pn);
3873
+ else
3874
+ for (const e of z.parents(t, ".nav, .list-group"))
3875
+ for (const t of z.prev(
3876
+ e,
3877
+ ".nav-link, .nav-item > .nav-link, .list-group-item"
3878
+ ))
3879
+ t.classList.add(pn);
3880
+ }
3881
+ _clearActiveClass(t) {
3882
+ t.classList.remove(pn);
3883
+ const e = z.find("[href].active", t);
3884
+ for (const t of e) t.classList.remove(pn);
3885
+ }
3886
+ static jQueryInterface(t) {
3887
+ return this.each(function () {
3888
+ const e = bn.getOrCreateInstance(this, t);
3889
+ if ("string" == typeof t) {
3890
+ if (void 0 === e[t] || t.startsWith("_") || "constructor" === t)
3891
+ throw new TypeError(`No method named "${t}"`);
3892
+ e[t]();
3893
+ }
3894
+ });
3895
+ }
3896
+ }
3897
+ P.on(window, "load.bs.scrollspy.data-api", () => {
3898
+ for (const t of z.find('[data-bs-spy="scroll"]')) bn.getOrCreateInstance(t);
3899
+ }),
3900
+ m(bn);
3901
+ const vn = "ArrowLeft",
3902
+ yn = "ArrowRight",
3903
+ wn = "ArrowUp",
3904
+ An = "ArrowDown",
3905
+ En = "active",
3906
+ Tn = "fade",
3907
+ Cn = "show",
3908
+ On =
3909
+ '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',
3910
+ xn = `.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${On}`;
3911
+ class kn extends W {
3912
+ constructor(t) {
3913
+ super(t),
3914
+ (this._parent = this._element.closest(
3915
+ '.list-group, .nav, [role="tablist"]'
3916
+ )),
3917
+ this._parent &&
3918
+ (this._setInitialAttributes(this._parent, this._getChildren()),
3919
+ P.on(this._element, "keydown.bs.tab", (t) => this._keydown(t)));
3920
+ }
3921
+ static get NAME() {
3922
+ return "tab";
3923
+ }
3924
+ show() {
3925
+ const t = this._element;
3926
+ if (this._elemIsActive(t)) return;
3927
+ const e = this._getActiveElem(),
3928
+ i = e ? P.trigger(e, "hide.bs.tab", { relatedTarget: t }) : null;
3929
+ P.trigger(t, "show.bs.tab", { relatedTarget: e }).defaultPrevented ||
3930
+ (i && i.defaultPrevented) ||
3931
+ (this._deactivate(e, t), this._activate(t, e));
3932
+ }
3933
+ _activate(t, e) {
3934
+ t &&
3935
+ (t.classList.add(En),
3936
+ this._activate(z.getElementFromSelector(t)),
3937
+ this._queueCallback(
3938
+ () => {
3939
+ "tab" === t.getAttribute("role")
3940
+ ? (t.removeAttribute("tabindex"),
3941
+ t.setAttribute("aria-selected", !0),
3942
+ this._toggleDropDown(t, !0),
3943
+ P.trigger(t, "shown.bs.tab", { relatedTarget: e }))
3944
+ : t.classList.add(Cn);
3945
+ },
3946
+ t,
3947
+ t.classList.contains(Tn)
3948
+ ));
3949
+ }
3950
+ _deactivate(t, e) {
3951
+ t &&
3952
+ (t.classList.remove(En),
3953
+ t.blur(),
3954
+ this._deactivate(z.getElementFromSelector(t)),
3955
+ this._queueCallback(
3956
+ () => {
3957
+ "tab" === t.getAttribute("role")
3958
+ ? (t.setAttribute("aria-selected", !1),
3959
+ t.setAttribute("tabindex", "-1"),
3960
+ this._toggleDropDown(t, !1),
3961
+ P.trigger(t, "hidden.bs.tab", { relatedTarget: e }))
3962
+ : t.classList.remove(Cn);
3963
+ },
3964
+ t,
3965
+ t.classList.contains(Tn)
3966
+ ));
3967
+ }
3968
+ _keydown(t) {
3969
+ if (![vn, yn, wn, An].includes(t.key)) return;
3970
+ t.stopPropagation(), t.preventDefault();
3971
+ const e = [yn, An].includes(t.key),
3972
+ i = b(
3973
+ this._getChildren().filter((t) => !l(t)),
3974
+ t.target,
3975
+ e,
3976
+ !0
3977
+ );
3978
+ i && (i.focus({ preventScroll: !0 }), kn.getOrCreateInstance(i).show());
3979
+ }
3980
+ _getChildren() {
3981
+ return z.find(xn, this._parent);
3982
+ }
3983
+ _getActiveElem() {
3984
+ return this._getChildren().find((t) => this._elemIsActive(t)) || null;
3985
+ }
3986
+ _setInitialAttributes(t, e) {
3987
+ this._setAttributeIfNotExists(t, "role", "tablist");
3988
+ for (const t of e) this._setInitialAttributesOnChild(t);
3989
+ }
3990
+ _setInitialAttributesOnChild(t) {
3991
+ t = this._getInnerElement(t);
3992
+ const e = this._elemIsActive(t),
3993
+ i = this._getOuterElement(t);
3994
+ t.setAttribute("aria-selected", e),
3995
+ i !== t && this._setAttributeIfNotExists(i, "role", "presentation"),
3996
+ e || t.setAttribute("tabindex", "-1"),
3997
+ this._setAttributeIfNotExists(t, "role", "tab"),
3998
+ this._setInitialAttributesOnTargetPanel(t);
3999
+ }
4000
+ _setInitialAttributesOnTargetPanel(t) {
4001
+ const e = z.getElementFromSelector(t);
4002
+ e &&
4003
+ (this._setAttributeIfNotExists(e, "role", "tabpanel"),
4004
+ t.id && this._setAttributeIfNotExists(e, "aria-labelledby", `${t.id}`));
4005
+ }
4006
+ _toggleDropDown(t, e) {
4007
+ const i = this._getOuterElement(t);
4008
+ if (!i.classList.contains("dropdown")) return;
4009
+ const n = (t, n) => {
4010
+ const s = z.findOne(t, i);
4011
+ s && s.classList.toggle(n, e);
4012
+ };
4013
+ n(".dropdown-toggle", En),
4014
+ n(".dropdown-menu", Cn),
4015
+ i.setAttribute("aria-expanded", e);
4016
+ }
4017
+ _setAttributeIfNotExists(t, e, i) {
4018
+ t.hasAttribute(e) || t.setAttribute(e, i);
4019
+ }
4020
+ _elemIsActive(t) {
4021
+ return t.classList.contains(En);
4022
+ }
4023
+ _getInnerElement(t) {
4024
+ return t.matches(xn) ? t : z.findOne(xn, t);
4025
+ }
4026
+ _getOuterElement(t) {
4027
+ return t.closest(".nav-item, .list-group-item") || t;
4028
+ }
4029
+ static jQueryInterface(t) {
4030
+ return this.each(function () {
4031
+ const e = kn.getOrCreateInstance(this);
4032
+ if ("string" == typeof t) {
4033
+ if (void 0 === e[t] || t.startsWith("_") || "constructor" === t)
4034
+ throw new TypeError(`No method named "${t}"`);
4035
+ e[t]();
4036
+ }
4037
+ });
4038
+ }
4039
+ }
4040
+ P.on(document, "click.bs.tab", On, function (t) {
4041
+ ["A", "AREA"].includes(this.tagName) && t.preventDefault(),
4042
+ l(this) || kn.getOrCreateInstance(this).show();
4043
+ }),
4044
+ P.on(window, "load.bs.tab", () => {
4045
+ for (const t of z.find(
4046
+ '.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'
4047
+ ))
4048
+ kn.getOrCreateInstance(t);
4049
+ }),
4050
+ m(kn);
4051
+ const Ln = "hide",
4052
+ Sn = "show",
4053
+ Dn = "showing",
4054
+ In = { animation: "boolean", autohide: "boolean", delay: "number" },
4055
+ Nn = { animation: !0, autohide: !0, delay: 5e3 };
4056
+ class Pn extends W {
4057
+ constructor(t, e) {
4058
+ super(t, e),
4059
+ (this._timeout = null),
4060
+ (this._hasMouseInteraction = !1),
4061
+ (this._hasKeyboardInteraction = !1),
4062
+ this._setListeners();
4063
+ }
4064
+ static get Default() {
4065
+ return Nn;
4066
+ }
4067
+ static get DefaultType() {
4068
+ return In;
4069
+ }
4070
+ static get NAME() {
4071
+ return "toast";
4072
+ }
4073
+ show() {
4074
+ P.trigger(this._element, "show.bs.toast").defaultPrevented ||
4075
+ (this._clearTimeout(),
4076
+ this._config.animation && this._element.classList.add("fade"),
4077
+ this._element.classList.remove(Ln),
4078
+ d(this._element),
4079
+ this._element.classList.add(Sn, Dn),
4080
+ this._queueCallback(
4081
+ () => {
4082
+ this._element.classList.remove(Dn),
4083
+ P.trigger(this._element, "shown.bs.toast"),
4084
+ this._maybeScheduleHide();
4085
+ },
4086
+ this._element,
4087
+ this._config.animation
4088
+ ));
4089
+ }
4090
+ hide() {
4091
+ this.isShown() &&
4092
+ (P.trigger(this._element, "hide.bs.toast").defaultPrevented ||
4093
+ (this._element.classList.add(Dn),
4094
+ this._queueCallback(
4095
+ () => {
4096
+ this._element.classList.add(Ln),
4097
+ this._element.classList.remove(Dn, Sn),
4098
+ P.trigger(this._element, "hidden.bs.toast");
4099
+ },
4100
+ this._element,
4101
+ this._config.animation
4102
+ )));
4103
+ }
4104
+ dispose() {
4105
+ this._clearTimeout(),
4106
+ this.isShown() && this._element.classList.remove(Sn),
4107
+ super.dispose();
4108
+ }
4109
+ isShown() {
4110
+ return this._element.classList.contains(Sn);
4111
+ }
4112
+ _maybeScheduleHide() {
4113
+ this._config.autohide &&
4114
+ (this._hasMouseInteraction ||
4115
+ this._hasKeyboardInteraction ||
4116
+ (this._timeout = setTimeout(() => {
4117
+ this.hide();
4118
+ }, this._config.delay)));
4119
+ }
4120
+ _onInteraction(t, e) {
4121
+ switch (t.type) {
4122
+ case "mouseover":
4123
+ case "mouseout":
4124
+ this._hasMouseInteraction = e;
4125
+ break;
4126
+ case "focusin":
4127
+ case "focusout":
4128
+ this._hasKeyboardInteraction = e;
4129
+ }
4130
+ if (e) return void this._clearTimeout();
4131
+ const i = t.relatedTarget;
4132
+ this._element === i ||
4133
+ this._element.contains(i) ||
4134
+ this._maybeScheduleHide();
4135
+ }
4136
+ _setListeners() {
4137
+ P.on(this._element, "mouseover.bs.toast", (t) =>
4138
+ this._onInteraction(t, !0)
4139
+ ),
4140
+ P.on(this._element, "mouseout.bs.toast", (t) =>
4141
+ this._onInteraction(t, !1)
4142
+ ),
4143
+ P.on(this._element, "focusin.bs.toast", (t) =>
4144
+ this._onInteraction(t, !0)
4145
+ ),
4146
+ P.on(this._element, "focusout.bs.toast", (t) =>
4147
+ this._onInteraction(t, !1)
4148
+ );
4149
+ }
4150
+ _clearTimeout() {
4151
+ clearTimeout(this._timeout), (this._timeout = null);
4152
+ }
4153
+ static jQueryInterface(t) {
4154
+ return this.each(function () {
4155
+ const e = Pn.getOrCreateInstance(this, t);
4156
+ if ("string" == typeof t) {
4157
+ if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`);
4158
+ e[t](this);
4159
+ }
4160
+ });
4161
+ }
4162
+ }
4163
+ return (
4164
+ R(Pn),
4165
+ m(Pn),
4166
+ {
4167
+ Alert: q,
4168
+ Button: K,
4169
+ Carousel: rt,
4170
+ Collapse: ft,
4171
+ Dropdown: ci,
4172
+ Modal: Ni,
4173
+ Offcanvas: zi,
4174
+ Popover: un,
4175
+ ScrollSpy: bn,
4176
+ Tab: kn,
4177
+ Toast: Pn,
4178
+ Tooltip: cn,
4179
+ }
4180
+ );
4181
+ });
4182
+ //# sourceMappingURL=bootstrap.bundle.min.js.map