@caweb/framework 1.9.11 → 1.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/build/delta.asset.php +1 -1
  2. package/build/delta.css +11 -0
  3. package/build/delta.css.map +1 -0
  4. package/build/delta.js +6600 -31
  5. package/build/delta.js.map +1 -0
  6. package/build/delta.min.asset.php +1 -0
  7. package/build/delta.min.css +23 -0
  8. package/build/delta.min.css.map +1 -0
  9. package/build/delta.min.js +2 -0
  10. package/build/delta.min.js.map +1 -0
  11. package/build/eureka.asset.php +1 -1
  12. package/build/eureka.css +11 -0
  13. package/build/eureka.css.map +1 -0
  14. package/build/eureka.js +6600 -31
  15. package/build/eureka.js.map +1 -0
  16. package/build/eureka.min.asset.php +1 -0
  17. package/build/eureka.min.css +23 -0
  18. package/build/eureka.min.css.map +1 -0
  19. package/build/eureka.min.js +2 -0
  20. package/build/eureka.min.js.map +1 -0
  21. package/build/mono.asset.php +1 -1
  22. package/build/mono.css +11 -0
  23. package/build/mono.css.map +1 -0
  24. package/build/mono.js +6600 -31
  25. package/build/mono.js.map +1 -0
  26. package/build/mono.min.asset.php +1 -0
  27. package/build/mono.min.css +23 -0
  28. package/build/mono.min.css.map +1 -0
  29. package/build/mono.min.js +2 -0
  30. package/build/mono.min.js.map +1 -0
  31. package/build/oceanside.asset.php +1 -1
  32. package/build/oceanside.css +11 -0
  33. package/build/oceanside.css.map +1 -0
  34. package/build/oceanside.js +6600 -31
  35. package/build/oceanside.js.map +1 -0
  36. package/build/oceanside.min.asset.php +1 -0
  37. package/build/oceanside.min.css +23 -0
  38. package/build/oceanside.min.css.map +1 -0
  39. package/build/oceanside.min.js +2 -0
  40. package/build/oceanside.min.js.map +1 -0
  41. package/build/orangecounty.asset.php +1 -1
  42. package/build/orangecounty.css +11 -0
  43. package/build/orangecounty.css.map +1 -0
  44. package/build/orangecounty.js +6600 -31
  45. package/build/orangecounty.js.map +1 -0
  46. package/build/orangecounty.min.asset.php +1 -0
  47. package/build/orangecounty.min.css +23 -0
  48. package/build/orangecounty.min.css.map +1 -0
  49. package/build/orangecounty.min.js +2 -0
  50. package/build/orangecounty.min.js.map +1 -0
  51. package/build/pasorobles.asset.php +1 -1
  52. package/build/pasorobles.css +11 -0
  53. package/build/pasorobles.css.map +1 -0
  54. package/build/pasorobles.js +6600 -31
  55. package/build/pasorobles.js.map +1 -0
  56. package/build/pasorobles.min.asset.php +1 -0
  57. package/build/pasorobles.min.css +23 -0
  58. package/build/pasorobles.min.css.map +1 -0
  59. package/build/pasorobles.min.js +2 -0
  60. package/build/pasorobles.min.js.map +1 -0
  61. package/build/sacramento.asset.php +1 -1
  62. package/build/sacramento.css +11 -0
  63. package/build/sacramento.css.map +1 -0
  64. package/build/sacramento.js +6600 -31
  65. package/build/sacramento.js.map +1 -0
  66. package/build/sacramento.min.asset.php +1 -0
  67. package/build/sacramento.min.css +23 -0
  68. package/build/sacramento.min.css.map +1 -0
  69. package/build/sacramento.min.js +2 -0
  70. package/build/sacramento.min.js.map +1 -0
  71. package/build/santabarbara.asset.php +1 -1
  72. package/build/santabarbara.css +11 -0
  73. package/build/santabarbara.css.map +1 -0
  74. package/build/santabarbara.js +6600 -31
  75. package/build/santabarbara.js.map +1 -0
  76. package/build/santabarbara.min.asset.php +1 -0
  77. package/build/santabarbara.min.css +23 -0
  78. package/build/santabarbara.min.css.map +1 -0
  79. package/build/santabarbara.min.js +2 -0
  80. package/build/santabarbara.min.js.map +1 -0
  81. package/build/santacruz.asset.php +1 -1
  82. package/build/santacruz.css +11 -0
  83. package/build/santacruz.css.map +1 -0
  84. package/build/santacruz.js +6600 -31
  85. package/build/santacruz.js.map +1 -0
  86. package/build/santacruz.min.asset.php +1 -0
  87. package/build/santacruz.min.css +23 -0
  88. package/build/santacruz.min.css.map +1 -0
  89. package/build/santacruz.min.js +2 -0
  90. package/build/santacruz.min.js.map +1 -0
  91. package/build/shasta.asset.php +1 -1
  92. package/build/shasta.css +11 -0
  93. package/build/shasta.css.map +1 -0
  94. package/build/shasta.js +6600 -31
  95. package/build/shasta.js.map +1 -0
  96. package/build/shasta.min.asset.php +1 -0
  97. package/build/shasta.min.css +23 -0
  98. package/build/shasta.min.css.map +1 -0
  99. package/build/shasta.min.js +2 -0
  100. package/build/shasta.min.js.map +1 -0
  101. package/build/sierra.asset.php +1 -1
  102. package/build/sierra.css +11 -0
  103. package/build/sierra.css.map +1 -0
  104. package/build/sierra.js +6600 -31
  105. package/build/sierra.js.map +1 -0
  106. package/build/sierra.min.asset.php +1 -0
  107. package/build/sierra.min.css +23 -0
  108. package/build/sierra.min.css.map +1 -0
  109. package/build/sierra.min.js +2 -0
  110. package/build/sierra.min.js.map +1 -0
  111. package/build/trinity.asset.php +1 -1
  112. package/build/trinity.css +11 -0
  113. package/build/trinity.css.map +1 -0
  114. package/build/trinity.js +6600 -31
  115. package/build/trinity.js.map +1 -0
  116. package/build/trinity.min.asset.php +1 -0
  117. package/build/trinity.min.css +23 -0
  118. package/build/trinity.min.css.map +1 -0
  119. package/build/trinity.min.js +2 -0
  120. package/build/trinity.min.js.map +1 -0
  121. package/package.json +3 -3
  122. package/src/scripts/components/header.js +1 -1
  123. package/src/styles/index.scss +3 -1
  124. package/src/styles/wp.scss +9 -0
@@ -0,0 +1,2 @@
1
+ (()=>{var e={414(e){e.exports=function(){"use strict";const e=new Map,t={set(t,i,n){e.has(t)||e.set(t,new Map);const s=e.get(t);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:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;const n=e.get(t);n.delete(i),0===n.size&&e.delete(t)}},i="transitionend",n=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),s=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),o=e=>{e.dispatchEvent(new Event(i))},r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),a=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(n(e)):null,l=e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},h=()=>{},u=e=>{e.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],m=()=>"rtl"===document.documentElement.dir,g=e=>{var t;t=()=>{const t=f();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of p)e()}),p.push(t)):t()},_=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,b=(e,t,n=!0)=>{if(!n)return void _(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let r=!1;const a=({target:n})=>{n===t&&(r=!0,t.removeEventListener(i,a),_(e))};t.addEventListener(i,a),setTimeout(()=>{r||o(t)},s)},v=(e,t,i,n)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,A={};let T=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},O=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 x(e,t){return t&&`${t}::${T++}`||e.uidEvent||T++}function L(e){const t=x(e);return e.uidEvent=t,A[t]=A[t]||{},A[t]}function k(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function S(e,t,i){const n="string"==typeof t,s=n?i:t||i;let o=N(e);return O.has(o)||(o=e),[n,s,o]}function D(e,t,i,n,s){if("string"!=typeof t||!e)return;let[o,r,a]=S(t,i,n);if(t in C){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=L(e),c=l[a]||(l[a]={}),d=k(c,r,o?i:null);if(d)return void(d.oneOff=d.oneOff&&s);const h=x(r,t.replace(y,"")),u=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return P(s,{delegateTarget:r}),n.oneOff&&M.off(e,s.type,t,i),i.apply(r,[s])}}(e,i,r):function(e,t){return function i(n){return P(n,{delegateTarget:e}),i.oneOff&&M.off(e,n.type,t),t.apply(e,[n])}}(e,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=h,c[h]=u,e.addEventListener(a,u,o)}function $(e,t,i,n,s){const o=k(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function I(e,t,i,n){const s=t[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&$(e,t,i,r.callable,r.delegationSelector)}function N(e){return e=e.replace(w,""),C[e]||e}const M={on(e,t,i,n){D(e,t,i,n,!1)},one(e,t,i,n){D(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=S(t,i,n),a=r!==t,l=L(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const i of Object.keys(l))I(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(E,"");a&&!t.includes(s)||$(e,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;$(e,l,r,o,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=f();let s=null,o=!0,r=!0,a=!1;t!==N(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=P(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function P(e,t={}){for(const[i,n]of Object.entries(t))try{e[i]=n}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function j(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function H(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const F={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${H(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${H(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=j(e.dataset[n])}return t},getDataAttribute:(e,t)=>j(e.getAttribute(`data-bs-${H(t)}`))};class q{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=r(t)?F.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...r(t)?F.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,n]of Object.entries(t)){const t=e[i],o=r(t)?"element":s(t);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}class B extends q{constructor(e,i){super(),(e=a(e))&&(this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),M.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){b(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(a(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const W=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map(e=>n(e)).join(","):null},z={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!c(e)&&l(e))},getSelectorFromElement(e){const t=W(e);return t&&z.findOne(t)?t:null},getElementFromSelector(e){const t=W(e);return t?z.findOne(t):null},getMultipleElementsFromSelector(e){const t=W(e);return t?z.find(t):[]}},R=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;M.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const s=z.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()})},V=".bs.alert",K=`close${V}`,Y=`closed${V}`;class Q extends B{static get NAME(){return"alert"}close(){if(M.trigger(this._element,K).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),M.trigger(this._element,Y),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Q.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}R(Q,"close"),g(Q);const X='[data-bs-toggle="button"]';class U extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=U.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}M.on(document,"click.bs.button.data-api",X,e=>{e.preventDefault();const t=e.target.closest(X);U.getOrCreateInstance(t).toggle()}),g(U);const G=".bs.swipe",J=`touchstart${G}`,Z=`touchmove${G}`,ee=`touchend${G}`,te=`pointerdown${G}`,ie=`pointerup${G}`,ne={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class oe extends q{constructor(e,t){super(),this._element=e,e&&oe.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ne}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){M.off(this._element,G)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&_(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(M.on(this._element,te,e=>this._start(e)),M.on(this._element,ie,e=>this._end(e)),this._element.classList.add("pointer-event")):(M.on(this._element,J,e=>this._start(e)),M.on(this._element,Z,e=>this._move(e)),M.on(this._element,ee,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",ae=".data-api",le="ArrowLeft",ce="ArrowRight",de="next",he="prev",ue="left",fe="right",pe=`slide${re}`,me=`slid${re}`,ge=`keydown${re}`,_e=`mouseenter${re}`,be=`mouseleave${re}`,ve=`dragstart${re}`,ye=`load${re}${ae}`,we=`click${re}${ae}`,Ee="carousel",Ae="active",Te=".active",Ce=".carousel-item",Oe=Te+Ce,xe={[le]:fe,[ce]:ue},Le={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ke={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Se extends B{constructor(e,t){super(e,t),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===Ee&&this.cycle()}static get Default(){return Le}static get DefaultType(){return ke}static get NAME(){return"carousel"}next(){this._slide(de)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(he)}pause(){this._isSliding&&o(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?M.one(this._element,me,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void M.one(this._element,me,()=>this.to(e));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?de:he;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&M.on(this._element,ge,e=>this._keydown(e)),"hover"===this._config.pause&&(M.on(this._element,_e,()=>this.pause()),M.on(this._element,be,()=>this._maybeEnableCycle())),this._config.touch&&oe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of z.find(".carousel-item img",this._element))M.on(e,ve,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ue)),rightCallback:()=>this._slide(this._directionToOrder(fe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new oe(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=xe[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=z.findOne(Te,this._indicatorsElement);t.classList.remove(Ae),t.removeAttribute("aria-current");const i=z.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(Ae),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===de,s=t||v(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=t=>M.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r(pe).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),u(s),i.classList.add(l),s.classList.add(l);this._queueCallback(()=>{s.classList.remove(l,c),s.classList.add(Ae),i.classList.remove(Ae,c,l),this._isSliding=!1,r(me)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(Oe,this._element)}_getItems(){return z.find(Ce,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return m()?e===ue?he:de:e===ue?de:he}_orderToDirection(e){return m()?e===he?ue:fe:e===he?fe:ue}static jQueryInterface(e){return this.each(function(){const t=Se.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}M.on(document,we,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=z.getElementFromSelector(this);if(!t||!t.classList.contains(Ee))return;e.preventDefault();const i=Se.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===F.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),M.on(window,ye,()=>{const e=z.find('[data-bs-ride="carousel"]');for(const t of e)Se.getOrCreateInstance(t)}),g(Se);const De=".bs.collapse",$e=`show${De}`,Ie=`shown${De}`,Ne=`hide${De}`,Me=`hidden${De}`,Pe=`click${De}.data-api`,je="show",He="collapse",Fe="collapsing",qe=`:scope .${He} .${He}`,Be='[data-bs-toggle="collapse"]',We={parent:null,toggle:!0},ze={parent:"(null|element)",toggle:"boolean"};class Re extends B{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=z.find(Be);for(const e of i){const t=z.getSelectorFromElement(e),i=z.find(t).filter(e=>e===this._element);null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return We}static get DefaultType(){return ze}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>Re.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(M.trigger(this._element,$e).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(He),this._element.classList.add(Fe),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Fe),this._element.classList.add(He,je),this._element.style[t]="",M.trigger(this._element,Ie)},this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(M.trigger(this._element,Ne).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(Fe),this._element.classList.remove(He,je);for(const e of this._triggerArray){const t=z.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Fe),this._element.classList.add(He),M.trigger(this._element,Me)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(je)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=a(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Be);for(const t of e){const e=z.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=z.find(qe,this._config.parent);return z.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const i=Re.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}}M.on(document,Pe,Be,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of z.getMultipleElementsFromSelector(this))Re.getOrCreateInstance(e,{toggle:!1}).toggle()}),g(Re);var Ve="top",Ke="bottom",Ye="right",Qe="left",Xe="auto",Ue=[Ve,Ke,Ye,Qe],Ge="start",Je="end",Ze="clippingParents",et="viewport",tt="popper",it="reference",nt=Ue.reduce(function(e,t){return e.concat([t+"-"+Ge,t+"-"+Je])},[]),st=[].concat(Ue,[Xe]).reduce(function(e,t){return e.concat([t,t+"-"+Ge,t+"-"+Je])},[]),ot="beforeRead",rt="read",at="afterRead",lt="beforeMain",ct="main",dt="afterMain",ht="beforeWrite",ut="write",ft="afterWrite",pt=[ot,rt,at,lt,ct,dt,ht,ut,ft];function mt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _t(e){return e instanceof gt(e).Element||e instanceof Element}function bt(e){return e instanceof gt(e).HTMLElement||e instanceof HTMLElement}function vt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof gt(e).ShadowRoot||e instanceof ShadowRoot)}const yt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];bt(s)&&mt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});bt(n)&&mt(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var Et=Math.max,At=Math.min,Tt=Math.round;function Ct(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ot(){return!/^((?!chrome|android).)*safari/i.test(Ct())}function xt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1;t&&bt(e)&&(s=e.offsetWidth>0&&Tt(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tt(n.height)/e.offsetHeight||1);var r=(_t(e)?gt(e):window).visualViewport,a=!Ot()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,d=n.width/s,h=n.height/o;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function Lt(e){var t=xt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function kt(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&vt(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function St(e){return gt(e).getComputedStyle(e)}function Dt(e){return["table","td","th"].indexOf(mt(e))>=0}function $t(e){return((_t(e)?e.ownerDocument:e.document)||window.document).documentElement}function It(e){return"html"===mt(e)?e:e.assignedSlot||e.parentNode||(vt(e)?e.host:null)||$t(e)}function Nt(e){return bt(e)&&"fixed"!==St(e).position?e.offsetParent:null}function Mt(e){for(var t=gt(e),i=Nt(e);i&&Dt(i)&&"static"===St(i).position;)i=Nt(i);return i&&("html"===mt(i)||"body"===mt(i)&&"static"===St(i).position)?t:i||function(e){var t=/firefox/i.test(Ct());if(/Trident/i.test(Ct())&&bt(e)&&"fixed"===St(e).position)return null;var i=It(e);for(vt(i)&&(i=i.host);bt(i)&&["html","body"].indexOf(mt(i))<0;){var n=St(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function Pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jt(e,t,i){return Et(e,At(t,i))}function Ht(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ft(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}const qt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=wt(i.placement),l=Pt(a),c=[Qe,Ye].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return Ht("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ft(e,Ue))}(s.padding,i),h=Lt(o),u="y"===l?Ve:Qe,f="y"===l?Ke:Ye,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=Mt(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=d[u],y=_-h[c]-d[f],w=_/2-h[c]/2+b,E=jt(v,w,y),A=l;i.modifiersData[n]=((t={})[A]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&kt(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bt(e){return e.split("-")[1]}var Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zt(e){var t,i=e.popper,n=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof d?d({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=Qe,y=Ve,w=window;if(c){var E=Mt(i),A="clientHeight",T="clientWidth";E===gt(i)&&"static"!==St(E=$t(i)).position&&"absolute"===a&&(A="scrollHeight",T="scrollWidth"),(s===Ve||(s===Qe||s===Ye)&&o===Je)&&(y=Ke,m-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[A])-n.height,m*=l?1:-1),s!==Qe&&(s!==Ve&&s!==Ke||o!==Je)||(v=Ye,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[T])-n.width,f*=l?1:-1)}var C,O=Object.assign({position:a},c&&Wt),x=!0===d?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Tt(i*s)/s||0,y:Tt(n*s)/s||0}}({x:f,y:m},gt(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,((t={})[y]=b?m+"px":"",t[v]=_?f+"px":"",t.transform="",t))}const Rt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.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:wt(t.placement),variation:Bt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Vt={passive:!0};const Kt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",i.update,Vt)}),a&&l.addEventListener("resize",i.update,Vt),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",i.update,Vt)}),a&&l.removeEventListener("resize",i.update,Vt)}},data:{}};var Yt={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(e){return e.replace(/left|right|bottom|top/g,function(e){return Yt[e]})}var Xt={start:"end",end:"start"};function Ut(e){return e.replace(/start|end/g,function(e){return Xt[e]})}function Gt(e){var t=gt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jt(e){return xt($t(e)).left+Gt(e).scrollLeft}function Zt(e){var t=St(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ei(e){return["html","body","#document"].indexOf(mt(e))>=0?e.ownerDocument.body:bt(e)&&Zt(e)?e:ei(It(e))}function ti(e,t){var i;void 0===t&&(t=[]);var n=ei(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=gt(n),r=s?[o].concat(o.visualViewport||[],Zt(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(ti(It(r)))}function ii(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ni(e,t,i){return t===et?ii(function(e,t){var i=gt(e),n=$t(e),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ot();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Jt(e),y:l}}(e,i)):_t(t)?function(e,t){var i=xt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):ii(function(e){var t,i=$t(e),n=Gt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=Et(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Et(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Jt(e),l=-n.scrollTop;return"rtl"===St(s||i).direction&&(a+=Et(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}($t(e)))}function si(e,t,i,n){var s="clippingParents"===t?function(e){var t=ti(It(e)),i=["absolute","fixed"].indexOf(St(e).position)>=0&&bt(e)?Mt(e):e;return _t(i)?t.filter(function(e){return _t(e)&&kt(e,i)&&"body"!==mt(e)}):[]}(e):[].concat(t),o=[].concat(s,[i]),r=o[0],a=o.reduce(function(t,i){var s=ni(e,i,n);return t.top=Et(s.top,t.top),t.right=At(s.right,t.right),t.bottom=At(s.bottom,t.bottom),t.left=Et(s.left,t.left),t},ni(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oi(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?wt(s):null,r=s?Bt(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Ve:t={x:a,y:i.y-n.height};break;case Ke:t={x:a,y:i.y+i.height};break;case Ye:t={x:i.x+i.width,y:l};break;case Qe:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=o?Pt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Ge:t[c]=t[c]-(i[d]/2-n[d]/2);break;case Je:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}function ri(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.strategy,r=void 0===o?e.strategy:o,a=i.boundary,l=void 0===a?Ze:a,c=i.rootBoundary,d=void 0===c?et:c,h=i.elementContext,u=void 0===h?tt:h,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=Ht("number"!=typeof g?g:Ft(g,Ue)),b=u===tt?it:tt,v=e.rects.popper,y=e.elements[p?b:u],w=si(_t(y)?y:y.contextElement||$t(e.elements.popper),l,d,r),E=xt(e.elements.reference),A=oi({reference:E,element:v,placement:s}),T=ii(Object.assign({},v,A)),C=u===tt?T:E,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=e.modifiersData.offset;if(u===tt&&x){var L=x[s];Object.keys(O).forEach(function(e){var t=[Ye,Ke].indexOf(e)>=0?1:-1,i=[Ve,Ke].indexOf(e)>=0?"y":"x";O[e]+=L[i]*t})}return O}function ai(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?st:l,d=Bt(n),h=d?a?nt:nt.filter(function(e){return Bt(e)===d}):Ue,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var f=u.reduce(function(t,i){return t[i]=ri(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[wt(i)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}const li={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.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,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,_=wt(g),b=l||(_!==g&&p?function(e){if(wt(e)===Xe)return[];var t=Qt(e);return[Ut(e),t,Ut(t)]}(g):[Qt(g)]),v=[g].concat(b).reduce(function(e,i){return e.concat(wt(i)===Xe?ai(t,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=t.rects.reference,w=t.rects.popper,E=new Map,A=!0,T=v[0],C=0;C<v.length;C++){var O=v[C],x=wt(O),L=Bt(O)===Ge,k=[Ve,Ke].indexOf(x)>=0,S=k?"width":"height",D=ri(t,{placement:O,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),$=k?L?Ye:Qe:L?Ke:Ve;y[S]>w[S]&&($=Qt($));var I=Qt($),N=[];if(o&&N.push(D[x]<=0),a&&N.push(D[$]<=0,D[I]<=0),N.every(function(e){return e})){T=O,A=!1;break}E.set(O,N)}if(A)for(var M=function(e){var t=v.find(function(t){var i=E.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},P=p?3:1;P>0&&"break"!==M(P);P--);t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ci(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function di(e){return[Ve,Ye,Ke,Qe].some(function(t){return e[t]>=0})}const hi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=ri(t,{elementContext:"reference"}),a=ri(t,{altBoundary:!0}),l=ci(r,n),c=ci(a,s,o),d=di(l),h=di(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}};const ui={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=st.reduce(function(e,i){return e[i]=function(e,t,i){var n=wt(e),s=[Qe,Ve].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Qe,Ye].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,o),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}};const fi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=oi({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const pi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ri(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),_=wt(t.placement),b=Bt(t.placement),v=!b,y=Pt(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,A=t.rects.reference,T=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(o){var k,S="y"===y?Ve:Qe,D="y"===y?Ke:Ye,$="y"===y?"height":"width",I=E[y],N=I+g[S],M=I-g[D],P=f?-T[$]/2:0,j=b===Ge?A[$]:T[$],H=b===Ge?-T[$]:-A[$],F=t.elements.arrow,q=f&&F?Lt(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[S],z=B[D],R=jt(0,A[$],q[$]),V=v?A[$]/2-P-R-W-O.mainAxis:j-R-W-O.mainAxis,K=v?-A[$]/2+P+R+z+O.mainAxis:H+R+z+O.mainAxis,Y=t.elements.arrow&&Mt(t.elements.arrow),Q=Y?"y"===y?Y.clientTop||0:Y.clientLeft||0:0,X=null!=(k=null==x?void 0:x[y])?k:0,U=I+K-X,G=jt(f?At(N,I+V-X-Q):N,I,f?Et(M,U):M);E[y]=G,L[y]=G-I}if(a){var J,Z="x"===y?Ve:Qe,ee="x"===y?Ke:Ye,te=E[w],ie="y"===w?"height":"width",ne=te+g[Z],se=te-g[ee],oe=-1!==[Ve,Qe].indexOf(_),re=null!=(J=null==x?void 0:x[w])?J:0,ae=oe?ne:te-A[ie]-T[ie]-re+O.altAxis,le=oe?te+A[ie]+T[ie]-re-O.altAxis:se,ce=f&&oe?function(e,t,i){var n=jt(e,t,i);return n>i?i:n}(ae,te,le):jt(f?ae:ne,te,f?le:se);E[w]=ce,L[w]=ce-te}t.modifiersData[n]=L}},requiresIfExists:["offset"]};function mi(e,t,i){void 0===i&&(i=!1);var n,s,o=bt(t),r=bt(t)&&function(e){var t=e.getBoundingClientRect(),i=Tt(t.width)/e.offsetWidth||1,n=Tt(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=$t(t),l=xt(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!i)&&(("body"!==mt(t)||Zt(a))&&(c=(n=t)!==gt(n)&&bt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Gt(n)),bt(t)?((d=xt(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Jt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function gi(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||s(e)}),n}var _i={placement:"bottom",modifiers:[],strategy:"absolute"};function bi(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function vi(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?_i:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},_i,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:_t(e)?ti(e):e.contextElement?ti(e.contextElement):[],popper:ti(t)};var r,c,u=function(e){var t=gi(e);return pt.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}((r=[].concat(n,a.options.modifiers),c=r.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=u.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:n}),r=function(){};l.push(o||r)}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(bi(t,i)){a.rects={reference:mi(t,Mt(i),"fixed"===a.options.strategy),popper:Lt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.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,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(s())})})),r}),destroy:function(){h(),c=!0}};if(!bi(e,t))return d;function h(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(i).then(function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)}),d}}var yi=vi(),wi=vi({defaultModifiers:[Kt,fi,Rt,yt]}),Ei=vi({defaultModifiers:[Kt,fi,Rt,yt,ui,li,pi,qt,hi]});const Ai=Object.freeze(Object.defineProperty({__proto__:null,afterMain:dt,afterRead:at,afterWrite:ft,applyStyles:yt,arrow:qt,auto:Xe,basePlacements:Ue,beforeMain:lt,beforeRead:ot,beforeWrite:ht,bottom:Ke,clippingParents:Ze,computeStyles:Rt,createPopper:Ei,createPopperBase:yi,createPopperLite:wi,detectOverflow:ri,end:Je,eventListeners:Kt,flip:li,hide:hi,left:Qe,main:ct,modifierPhases:pt,offset:ui,placements:st,popper:tt,popperGenerator:vi,popperOffsets:fi,preventOverflow:pi,read:rt,reference:it,right:Ye,start:Ge,top:Ve,variationPlacements:nt,viewport:et,write:ut},Symbol.toStringTag,{value:"Module"})),Ti="dropdown",Ci=".bs.dropdown",Oi=".data-api",xi="ArrowUp",Li="ArrowDown",ki=`hide${Ci}`,Si=`hidden${Ci}`,Di=`show${Ci}`,$i=`shown${Ci}`,Ii=`click${Ci}${Oi}`,Ni=`keydown${Ci}${Oi}`,Mi=`keyup${Ci}${Oi}`,Pi="show",ji='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hi=`${ji}.${Pi}`,Fi=".dropdown-menu",qi=m()?"top-end":"top-start",Bi=m()?"top-start":"top-end",Wi=m()?"bottom-end":"bottom-start",zi=m()?"bottom-start":"bottom-end",Ri=m()?"left-start":"right-start",Vi=m()?"right-start":"left-start",Ki={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Qi extends B{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,Fi)[0]||z.prev(this._element,Fi)[0]||z.findOne(Fi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ki}static get DefaultType(){return Yi}static get NAME(){return Ti}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!M.trigger(this._element,Di,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))M.on(e,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Pi),this._element.classList.add(Pi),M.trigger(this._element,$i,e)}}hide(){if(c(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!M.trigger(this._element,ki,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))M.off(e,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(Pi),this._element.classList.remove(Pi),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),M.trigger(this._element,Si,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!r(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ti.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Ai)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:r(this._config.reference)?e=a(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Ei(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Pi)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ri;if(e.classList.contains("dropstart"))return Vi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Bi:qi:t?zi:Wi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..._(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>l(e));i.length&&v(i,t,e===Li,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=z.find(Hi);for(const i of t){const t=Qi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),s=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[xi,Li].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const s=this.matches(ji)?this:z.prev(this,ji)[0]||z.next(this,ji)[0]||z.findOne(ji,e.delegateTarget.parentNode),o=Qi.getOrCreateInstance(s);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}M.on(document,Ni,ji,Qi.dataApiKeydownHandler),M.on(document,Ni,Fi,Qi.dataApiKeydownHandler),M.on(document,Ii,Qi.clearMenus),M.on(document,Mi,Qi.clearMenus),M.on(document,Ii,ji,function(e){e.preventDefault(),Qi.getOrCreateInstance(this).toggle()}),g(Qi);const Xi="backdrop",Ui="show",Gi=`mousedown.bs.${Xi}`,Ji={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class en extends q{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ji}static get DefaultType(){return Zi}static get NAME(){return Xi}show(e){if(!this._config.isVisible)return void _(e);this._append();const t=this._getElement();this._config.isAnimated&&u(t),t.classList.add(Ui),this._emulateAnimation(()=>{_(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Ui),this._emulateAnimation(()=>{this.dispose(),_(e)})):_(e)}dispose(){this._isAppended&&(M.off(this._element,Gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=a(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),M.on(e,Gi,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const tn=".bs.focustrap",nn=`focusin${tn}`,sn=`keydown.tab${tn}`,on="backward",rn={autofocus:!0,trapElement:null},an={autofocus:"boolean",trapElement:"element"};class ln extends q{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rn}static get DefaultType(){return an}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),M.off(document,tn),M.on(document,nn,e=>this._handleFocusin(e)),M.on(document,sn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,M.off(document,tn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=z.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===on?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?on:"forward")}}const cn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dn=".sticky-top",hn="padding-right",un="margin-right";class fn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hn,t=>t+e),this._setElementAttributes(cn,hn,t=>t+e),this._setElementAttributes(dn,un,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hn),this._resetElementAttributes(cn,hn),this._resetElementAttributes(dn,un)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&F.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const i=F.getDataAttribute(e,t);null!==i?(F.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const i of z.find(e,this._element))t(i)}}const pn=".bs.modal",mn=`hide${pn}`,gn=`hidePrevented${pn}`,bn=`hidden${pn}`,vn=`show${pn}`,yn=`shown${pn}`,wn=`resize${pn}`,En=`click.dismiss${pn}`,An=`mousedown.dismiss${pn}`,Tn=`keydown.dismiss${pn}`,Cn=`click${pn}.data-api`,On="modal-open",xn="show",Ln="modal-static",kn={backdrop:!0,focus:!0,keyboard:!0},Sn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Dn extends B{constructor(e,t){super(e,t),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 fn,this._addEventListeners()}static get Default(){return kn}static get DefaultType(){return Sn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||M.trigger(this._element,vn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(On),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(M.trigger(this._element,mn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){M.off(window,pn),M.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new en({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ln({trapElement:this._element})}_showElement(e){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 t=z.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),u(this._element),this._element.classList.add(xn);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,M.trigger(this._element,yn,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){M.on(this._element,Tn,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),M.on(window,wn,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),M.on(this._element,An,e=>{M.one(this._element,En,t=>{this._element===e.target&&this._element===t.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(On),this._resetAdjustments(),this._scrollBar.reset(),M.trigger(this._element,bn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(M.trigger(this._element,gn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ln)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ln),this._queueCallback(()=>{this._element.classList.remove(Ln),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=m()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=m()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const i=Dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}})}}M.on(document,Cn,'[data-bs-toggle="modal"]',function(e){const t=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),M.one(t,vn,e=>{e.defaultPrevented||M.one(t,bn,()=>{l(this)&&this.focus()})});const i=z.findOne(".modal.show");i&&Dn.getInstance(i).hide(),Dn.getOrCreateInstance(t).toggle(this)}),R(Dn),g(Dn);const $n=".bs.offcanvas",In=".data-api",Nn=`load${$n}${In}`,Mn="show",Pn="showing",jn="hiding",Hn=".offcanvas.show",Fn=`show${$n}`,qn=`shown${$n}`,Bn=`hide${$n}`,Wn=`hidePrevented${$n}`,zn=`hidden${$n}`,Rn=`resize${$n}`,Vn=`click${$n}${In}`,Kn=`keydown.dismiss${$n}`,Yn={backdrop:!0,keyboard:!0,scroll:!1},Qn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xn extends B{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Yn}static get DefaultType(){return Qn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(M.trigger(this._element,Fn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Pn);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Mn),this._element.classList.remove(Pn),M.trigger(this._element,qn,{relatedTarget:e})},this._element,!0)}hide(){if(!this._isShown)return;if(M.trigger(this._element,Bn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(jn),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Mn,jn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fn).reset(),M.trigger(this._element,zn)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new en({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():M.trigger(this._element,Wn)}:null})}_initializeFocusTrap(){return new ln({trapElement:this._element})}_addEventListeners(){M.on(this._element,Kn,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():M.trigger(this._element,Wn))})}static jQueryInterface(e){return this.each(function(){const t=Xn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}M.on(document,Vn,'[data-bs-toggle="offcanvas"]',function(e){const t=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;M.one(t,zn,()=>{l(this)&&this.focus()});const i=z.findOne(Hn);i&&i!==t&&Xn.getInstance(i).hide(),Xn.getOrCreateInstance(t).toggle(this)}),M.on(window,Nn,()=>{for(const e of z.find(Hn))Xn.getOrCreateInstance(e).show()}),M.on(window,Rn,()=>{for(const e of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Xn.getOrCreateInstance(e).hide()}),R(Xn),g(Xn);const Un={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Gn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Jn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zn=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Gn.has(i)||Boolean(Jn.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))};const es={allowList:Un,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ts={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},is={entry:"(string|element|function|null)",selector:"(string|element)"};class ns extends q{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return es}static get DefaultType(){return ts}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},is)}_setContent(e,t,i){const n=z.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(a(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const e of s){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[i]||[]);for(const t of n)Zn(t,s)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return _(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ss=new Set(["sanitize","allowList","sanitizeFn"]),os="fade",rs="show",as=".tooltip-inner",ls=".modal",cs="hide.bs.modal",ds="hover",hs="focus",us="click",fs={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},ps={allowList:Un,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"},ms={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 gs extends B{constructor(e,t){if(void 0===Ai)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),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 ps}static get DefaultType(){return ms}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),M.off(this._element.closest(ls),cs,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 e=M.trigger(this._element,this.constructor.eventName("show")),t=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)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),M.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(rs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))M.on(e,"mouseover",h);this._queueCallback(()=>{M.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(M.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(rs),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))M.off(e,"mouseover",h);this._activeTrigger[us]=!1,this._activeTrigger[hs]=!1,this._activeTrigger[ds]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),M.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(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(os,rs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(os),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ns({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[as]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(os)}_isShown(){return this.tip&&this.tip.classList.contains(rs)}_createPopper(e){const t=_(this._config.placement,[this,e,this._element]),i=fs[t.toUpperCase()];return Ei(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return _(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,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:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,..._(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)M.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[us]=!(t._isShown()&&t._activeTrigger[us]),t.toggle()});else if("manual"!==t){const e=t===ds?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===ds?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");M.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?hs:ds]=!0,t._enter()}),M.on(this._element,i,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?hs:ds]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},M.on(this._element.closest(ls),cs,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=F.getDataAttributes(this._element);for(const e of Object.keys(t))ss.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:a(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=gs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}g(gs);const _s=".popover-header",bs=".popover-body",vs={...gs.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"},ys={...gs.DefaultType,content:"(null|string|element|function)"};class ws extends gs{static get Default(){return vs}static get DefaultType(){return ys}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_s]:this._getTitle(),[bs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ws.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}g(ws);const Es=".bs.scrollspy",As=`activate${Es}`,Ts=`click${Es}`,Cs=`load${Es}.data-api`,Os="active",xs="[href]",Ls=".nav-link",ks=`${Ls}, .nav-item > ${Ls}, .list-group-item`,Ss={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ds={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class $s extends B{constructor(e,t){super(e,t),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 Ss}static get DefaultType(){return Ds}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=a(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(M.off(this._config.target,Ts),M.on(this._config.target,Ts,xs,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return}else s||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=z.find(xs,this._config.target);for(const t of e){if(!t.hash||c(t))continue;const e=z.findOne(decodeURI(t.hash),this._element);l(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Os),this._activateParents(e),M.trigger(this._element,As,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Os);else for(const t of z.parents(e,".nav, .list-group"))for(const e of z.prev(t,ks))e.classList.add(Os)}_clearActiveClass(e){e.classList.remove(Os);const t=z.find(`${xs}.${Os}`,e);for(const e of t)e.classList.remove(Os)}static jQueryInterface(e){return this.each(function(){const t=$s.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}M.on(window,Cs,()=>{for(const e of z.find('[data-bs-spy="scroll"]'))$s.getOrCreateInstance(e)}),g($s);const Is=".bs.tab",Ns=`hide${Is}`,Ms=`hidden${Is}`,Ps=`show${Is}`,js=`shown${Is}`,Hs=`click${Is}`,Fs=`keydown${Is}`,qs=`load${Is}`,Bs="ArrowLeft",Ws="ArrowRight",zs="ArrowUp",Rs="ArrowDown",Vs="Home",Ks="End",Ys="active",Qs="fade",Xs="show",Us=".dropdown-toggle",Gs=`:not(${Us})`,Js='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Zs=`.nav-link${Gs}, .list-group-item${Gs}, [role="tab"]${Gs}, ${Js}`,eo=`.${Ys}[data-bs-toggle="tab"], .${Ys}[data-bs-toggle="pill"], .${Ys}[data-bs-toggle="list"]`;class to extends B{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),M.on(this._element,Fs,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?M.trigger(t,Ns,{relatedTarget:e}):null;M.trigger(e,Ps,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ys),this._activate(z.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),M.trigger(e,js,{relatedTarget:t})):e.classList.add(Xs)},e,e.classList.contains(Qs))}_deactivate(e,t){if(!e)return;e.classList.remove(Ys),e.blur(),this._deactivate(z.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),M.trigger(e,Ms,{relatedTarget:t})):e.classList.remove(Xs)},e,e.classList.contains(Qs))}_keydown(e){if(![Bs,Ws,zs,Rs,Vs,Ks].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!c(e));let i;if([Vs,Ks].includes(e.key))i=t[e.key===Vs?0:t.length-1];else{const n=[Ws,Rs].includes(e.key);i=v(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),to.getOrCreateInstance(i).show())}_getChildren(){return z.find(Zs,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=z.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const s=z.findOne(e,i);s&&s.classList.toggle(n,t)};n(Us,Ys),n(".dropdown-menu",Xs),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Ys)}_getInnerElement(e){return e.matches(Zs)?e:z.findOne(Zs,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=to.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}M.on(document,Hs,Js,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||to.getOrCreateInstance(this).show()}),M.on(window,qs,()=>{for(const e of z.find(eo))to.getOrCreateInstance(e)}),g(to);const io=".bs.toast",no=`mouseover${io}`,so=`mouseout${io}`,oo=`focusin${io}`,ro=`focusout${io}`,ao=`hide${io}`,lo=`hidden${io}`,co=`show${io}`,ho=`shown${io}`,uo="hide",fo="show",po="showing",mo={animation:"boolean",autohide:"boolean",delay:"number"},go={animation:!0,autohide:!0,delay:5e3};class _o extends B{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return go}static get DefaultType(){return mo}static get NAME(){return"toast"}show(){if(M.trigger(this._element,co).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(uo),u(this._element),this._element.classList.add(fo,po),this._queueCallback(()=>{this._element.classList.remove(po),M.trigger(this._element,ho),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(M.trigger(this._element,ao).defaultPrevented)return;this._element.classList.add(po),this._queueCallback(()=>{this._element.classList.add(uo),this._element.classList.remove(po,fo),M.trigger(this._element,lo)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(fo),super.dispose()}isShown(){return this._element.classList.contains(fo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){M.on(this._element,no,e=>this._onInteraction(e,!0)),M.on(this._element,so,e=>this._onInteraction(e,!1)),M.on(this._element,oo,e=>this._onInteraction(e,!0)),M.on(this._element,ro,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=_o.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return R(_o),g(_o),{Alert:Q,Button:U,Carousel:Se,Collapse:Re,Dropdown:Qi,Modal:Dn,Offcanvas:Xn,Popover:ws,ScrollSpy:$s,Tab:to,Toast:_o,Tooltip:gs}}()},985(){"use strict";window.addEventListener("DOMContentLoaded",()=>{const e=":not(code *):not(.cagov-logo)";document.querySelectorAll(`main a${e}, .footer-links a${e}`).forEach(e=>{const t=e;"_blank"===e.getAttribute("target")&&(t.innerHTML+='<span class="ca-gov-icon-external-link" aria-hidden="true"></span><span class="sr-only">opens in a new window</span>')})})},582(){"use strict";window.addEventListener("DOMContentLoaded",()=>{let e=window.location.hash.replace(/(\|)/g,"\\$1");const t=document.querySelector("header"),i=document.querySelector("#page-container"),n=[document.querySelector(".alerts"),document.querySelector(".utility-header")].filter(Boolean),s=()=>n.reduce((e,t)=>t instanceof HTMLElement?e+t.clientHeight:e,0);let o=s(),r=0,a=t?.previousElementSibling;for(;a;)a instanceof HTMLElement&&"fixed"===window.getComputedStyle(a).position&&(r+=a.clientHeight),a=a.previousElementSibling;if(e){let t=document.getElementById(e.substring(1));requestAnimationFrame(()=>{t?.scrollIntoView({behavior:"smooth"})})}if(!t)return;const l=()=>{document.body.scrollTop>=t.offsetHeight||document.documentElement.scrollTop>=t.offsetHeight?t.style.top=`-${o-r}px`:(t&&(t.style.top=`${r}px`),i&&HTMLElement)};document.querySelectorAll('header .alerts [data-bs-dismiss="alert"]').forEach(e=>{e.addEventListener("click",()=>{o=s(),document.querySelectorAll("#page-container [id]").forEach(c)})});const c=e=>{if(e instanceof HTMLElement){let i=t.clientHeight+r;e.offsetTop>i+i/2&&(i-=o),e.style.scrollMarginTop=`${i}px`}};document.querySelectorAll("#page-container [id]").forEach(c),window.addEventListener("scroll",l),l()})},452(){"use strict";window.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector("header"),t=e?.querySelector(".mobile-controlled.overlay"),i=e?.querySelector(".search-container"),n=e?.querySelector(".navigation"),s=n?.querySelector(".nav"),o=e?.querySelector(".mobile-control.ca-gov-icon-menu"),r=e?.querySelector(".mobile-control.ca-gov-icon-close-mark"),a=()=>{window.innerWidth>992?(n&&(n.classList.add("show"),s&&s.classList.remove("flex-column"),t.after(n)),i&&e.querySelector(".header-organization-banner")?.after(i)):"true"===r.getAttribute("aria-expanded")?r.click():(i&&t.append(i),n&&(t.append(n),s?.classList.add("flex-column")))};window.addEventListener("resize",a),e?.addEventListener("mouseup",({target:e})=>{[...e.classList].includes("global-header")&&"true"===r.getAttribute("aria-expanded")&&r.click()}),document.addEventListener("keydown",e=>{"Escape"===e.key&&"true"===r.getAttribute("aria-expanded")&&r.click()}),t?.addEventListener("shown.bs.collapse",()=>{r.focus(),e.classList.add("overlay"),n?.classList.add("visible"),i?.classList.add("visible"),document.body.classList.add("overflow-hidden")}),t?.addEventListener("hide.bs.collapse",()=>{o.focus(),e.classList.remove("overlay"),document.body.classList.remove("overflow-hidden")}),a()})},439(){"use strict";window.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".return-top").forEach(e=>e.addEventListener("click",()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0}));let e=0,t=0;const i=document.querySelector(".return-top");window.addEventListener("scroll",()=>{if(!i)return;const n=document.documentElement.scrollTop;n>t?i.classList.remove("visible"):document.body.scrollTop>=400||document.documentElement.scrollTop>=400?(e&&window.clearTimeout(e),i.classList.add("visible"),e=window.setTimeout(()=>{i.classList.remove("visible")},2e3)):i.classList.remove("visible"),t=n<=0?0:n},!1),window.addEventListener("scroll",()=>{i&&(window.innerHeight,window.scrollY,document.body.offsetHeight)})})}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}(()=>{"use strict";i(414),i(452),i(439),i(985),i(582)})()})();
2
+ //# sourceMappingURL=trinity.min.js.map