homebridge-midea-platform 1.2.0-beta.7 → 1.2.1

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 (168) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/README.md +2 -2
  3. package/config.schema.json +1 -1
  4. package/dist/accessory/AccessoryFactory.d.ts +14 -15
  5. package/dist/accessory/AccessoryFactory.js +34 -40
  6. package/dist/accessory/AccessoryFactory.js.map +1 -1
  7. package/dist/accessory/AirConditionerAccessory.d.ts +98 -99
  8. package/dist/accessory/AirConditionerAccessory.js +666 -662
  9. package/dist/accessory/AirConditionerAccessory.js.map +1 -1
  10. package/dist/accessory/BaseAccessory.d.ts +11 -12
  11. package/dist/accessory/BaseAccessory.js +21 -21
  12. package/dist/accessory/BaseAccessory.js.map +1 -1
  13. package/dist/accessory/DehumidifierAccessory.d.ts +45 -46
  14. package/dist/accessory/DehumidifierAccessory.js +343 -344
  15. package/dist/accessory/DehumidifierAccessory.js.map +1 -1
  16. package/dist/accessory/DishwasherAccessory.d.ts +30 -31
  17. package/dist/accessory/DishwasherAccessory.js +59 -63
  18. package/dist/accessory/DishwasherAccessory.js.map +1 -1
  19. package/dist/accessory/ElectricWaterHeaterAccessory.d.ts +44 -45
  20. package/dist/accessory/ElectricWaterHeaterAccessory.js +172 -176
  21. package/dist/accessory/ElectricWaterHeaterAccessory.js.map +1 -1
  22. package/dist/accessory/FanAccessory.d.ts +39 -40
  23. package/dist/accessory/FanAccessory.js +120 -123
  24. package/dist/accessory/FanAccessory.js.map +1 -1
  25. package/dist/accessory/FrontLoadWasherAccessory.d.ts +30 -31
  26. package/dist/accessory/FrontLoadWasherAccessory.js +63 -66
  27. package/dist/accessory/FrontLoadWasherAccessory.js.map +1 -1
  28. package/dist/accessory/GasWaterHeaterAccessory.d.ts +51 -52
  29. package/dist/accessory/GasWaterHeaterAccessory.js +217 -216
  30. package/dist/accessory/GasWaterHeaterAccessory.js.map +1 -1
  31. package/dist/accessory/{HeatPumpWifiControllerAccessory.d.ts → HeatPumpWiFiControllerAccessory.d.ts} +34 -35
  32. package/dist/accessory/{HeatPumpWifiControllerAccessory.js → HeatPumpWiFiControllerAccessory.js} +55 -36
  33. package/dist/accessory/HeatPumpWiFiControllerAccessory.js.map +1 -0
  34. package/dist/core/MideaCloud.d.ts +34 -36
  35. package/dist/core/MideaCloud.js +349 -350
  36. package/dist/core/MideaCloud.js.map +1 -1
  37. package/dist/core/MideaConstants.d.ts +51 -52
  38. package/dist/core/MideaConstants.js +56 -59
  39. package/dist/core/MideaConstants.js.map +1 -1
  40. package/dist/core/MideaDevice.d.ts +75 -78
  41. package/dist/core/MideaDevice.js +430 -420
  42. package/dist/core/MideaDevice.js.map +1 -1
  43. package/dist/core/MideaDiscover.d.ts +34 -36
  44. package/dist/core/MideaDiscover.js +208 -212
  45. package/dist/core/MideaDiscover.js.map +1 -1
  46. package/dist/core/MideaMessage.d.ts +75 -76
  47. package/dist/core/MideaMessage.js +185 -184
  48. package/dist/core/MideaMessage.js.map +1 -1
  49. package/dist/core/MideaPacketBuilder.d.ts +9 -11
  50. package/dist/core/MideaPacketBuilder.js +60 -60
  51. package/dist/core/MideaPacketBuilder.js.map +1 -1
  52. package/dist/core/MideaSecurity.d.ts +62 -64
  53. package/dist/core/MideaSecurity.js +241 -251
  54. package/dist/core/MideaSecurity.js.map +1 -1
  55. package/dist/core/MideaUtils.d.ts +31 -33
  56. package/dist/core/MideaUtils.js +178 -181
  57. package/dist/core/MideaUtils.js.map +1 -1
  58. package/dist/devices/DeviceFactory.d.ts +14 -15
  59. package/dist/devices/DeviceFactory.js +34 -40
  60. package/dist/devices/DeviceFactory.js.map +1 -1
  61. package/dist/devices/a1/MideaA1Device.d.ts +75 -77
  62. package/dist/devices/a1/MideaA1Device.js +142 -145
  63. package/dist/devices/a1/MideaA1Device.js.map +1 -1
  64. package/dist/devices/a1/MideaA1Message.d.ts +39 -41
  65. package/dist/devices/a1/MideaA1Message.js +219 -198
  66. package/dist/devices/a1/MideaA1Message.js.map +1 -1
  67. package/dist/devices/ac/MideaACDevice.d.ts +105 -107
  68. package/dist/devices/ac/MideaACDevice.js +417 -400
  69. package/dist/devices/ac/MideaACDevice.js.map +1 -1
  70. package/dist/devices/ac/MideaACMessage.d.ts +97 -96
  71. package/dist/devices/ac/MideaACMessage.js +724 -621
  72. package/dist/devices/ac/MideaACMessage.js.map +1 -1
  73. package/dist/devices/c3/MideaC3Device.d.ts +73 -75
  74. package/dist/devices/c3/MideaC3Device.js +249 -255
  75. package/dist/devices/c3/MideaC3Device.js.map +1 -1
  76. package/dist/devices/c3/MideaC3Message.d.ts +81 -80
  77. package/dist/devices/c3/MideaC3Message.js +190 -152
  78. package/dist/devices/c3/MideaC3Message.js.map +1 -1
  79. package/dist/devices/db/MideaDBDevice.d.ts +28 -30
  80. package/dist/devices/db/MideaDBDevice.js +94 -100
  81. package/dist/devices/db/MideaDBDevice.js.map +1 -1
  82. package/dist/devices/db/MideaDBMessage.d.ts +31 -33
  83. package/dist/devices/db/MideaDBMessage.js +101 -101
  84. package/dist/devices/db/MideaDBMessage.js.map +1 -1
  85. package/dist/devices/e1/MideaE1Device.d.ts +55 -57
  86. package/dist/devices/e1/MideaE1Device.js +122 -128
  87. package/dist/devices/e1/MideaE1Device.js.map +1 -1
  88. package/dist/devices/e1/MideaE1Message.d.ts +27 -29
  89. package/dist/devices/e1/MideaE1Message.js +128 -107
  90. package/dist/devices/e1/MideaE1Message.js.map +1 -1
  91. package/dist/devices/e2/MideaE2Device.d.ts +43 -45
  92. package/dist/devices/e2/MideaE2Device.js +124 -129
  93. package/dist/devices/e2/MideaE2Device.js.map +1 -1
  94. package/dist/devices/e2/MideaE2Message.d.ts +34 -34
  95. package/dist/devices/e2/MideaE2Message.js +143 -132
  96. package/dist/devices/e2/MideaE2Message.js.map +1 -1
  97. package/dist/devices/e3/MideaE3Device.d.ts +42 -44
  98. package/dist/devices/e3/MideaE3Device.js +132 -137
  99. package/dist/devices/e3/MideaE3Device.js.map +1 -1
  100. package/dist/devices/e3/MideaE3Message.d.ts +51 -52
  101. package/dist/devices/e3/MideaE3Message.js +144 -136
  102. package/dist/devices/e3/MideaE3Message.js.map +1 -1
  103. package/dist/devices/fa/MideaFADevice.d.ts +35 -37
  104. package/dist/devices/fa/MideaFADevice.js +102 -106
  105. package/dist/devices/fa/MideaFADevice.js.map +1 -1
  106. package/dist/devices/fa/MideaFAMessage.d.ts +38 -39
  107. package/dist/devices/fa/MideaFAMessage.js +108 -98
  108. package/dist/devices/fa/MideaFAMessage.js.map +1 -1
  109. package/dist/index.d.ts +6 -7
  110. package/dist/index.js +8 -6
  111. package/dist/index.js.map +1 -1
  112. package/dist/platform.d.ts +61 -61
  113. package/dist/platform.js +232 -212
  114. package/dist/platform.js.map +1 -1
  115. package/dist/platformUtils.d.ts +116 -117
  116. package/dist/platformUtils.js +107 -110
  117. package/dist/platformUtils.js.map +1 -1
  118. package/dist/settings.d.ts +8 -9
  119. package/dist/settings.js +8 -11
  120. package/dist/settings.js.map +1 -1
  121. package/docs/download_lua.md +9 -0
  122. package/eslint.config.js +43 -0
  123. package/homebridge-ui/public/js/bootstrap.min.js +1179 -1
  124. package/homebridge-ui/{server.js → server.cjs} +30 -30
  125. package/package.json +21 -31
  126. package/.eslintignore +0 -3
  127. package/.husky/pre-commit +0 -5
  128. package/.prettierrc +0 -19
  129. package/dist/accessory/AccessoryFactory.d.ts.map +0 -1
  130. package/dist/accessory/AirConditionerAccessory.d.ts.map +0 -1
  131. package/dist/accessory/BaseAccessory.d.ts.map +0 -1
  132. package/dist/accessory/DehumidifierAccessory.d.ts.map +0 -1
  133. package/dist/accessory/DishwasherAccessory.d.ts.map +0 -1
  134. package/dist/accessory/ElectricWaterHeaterAccessory.d.ts.map +0 -1
  135. package/dist/accessory/FanAccessory.d.ts.map +0 -1
  136. package/dist/accessory/FrontLoadWasherAccessory.d.ts.map +0 -1
  137. package/dist/accessory/GasWaterHeaterAccessory.d.ts.map +0 -1
  138. package/dist/accessory/HeatPumpWifiControllerAccessory.d.ts.map +0 -1
  139. package/dist/accessory/HeatPumpWifiControllerAccessory.js.map +0 -1
  140. package/dist/core/MideaCloud.d.ts.map +0 -1
  141. package/dist/core/MideaConstants.d.ts.map +0 -1
  142. package/dist/core/MideaDevice.d.ts.map +0 -1
  143. package/dist/core/MideaDiscover.d.ts.map +0 -1
  144. package/dist/core/MideaMessage.d.ts.map +0 -1
  145. package/dist/core/MideaPacketBuilder.d.ts.map +0 -1
  146. package/dist/core/MideaSecurity.d.ts.map +0 -1
  147. package/dist/core/MideaUtils.d.ts.map +0 -1
  148. package/dist/devices/DeviceFactory.d.ts.map +0 -1
  149. package/dist/devices/a1/MideaA1Device.d.ts.map +0 -1
  150. package/dist/devices/a1/MideaA1Message.d.ts.map +0 -1
  151. package/dist/devices/ac/MideaACDevice.d.ts.map +0 -1
  152. package/dist/devices/ac/MideaACMessage.d.ts.map +0 -1
  153. package/dist/devices/c3/MideaC3Device.d.ts.map +0 -1
  154. package/dist/devices/c3/MideaC3Message.d.ts.map +0 -1
  155. package/dist/devices/db/MideaDBDevice.d.ts.map +0 -1
  156. package/dist/devices/db/MideaDBMessage.d.ts.map +0 -1
  157. package/dist/devices/e1/MideaE1Device.d.ts.map +0 -1
  158. package/dist/devices/e1/MideaE1Message.d.ts.map +0 -1
  159. package/dist/devices/e2/MideaE2Device.d.ts.map +0 -1
  160. package/dist/devices/e2/MideaE2Message.d.ts.map +0 -1
  161. package/dist/devices/e3/MideaE3Device.d.ts.map +0 -1
  162. package/dist/devices/e3/MideaE3Message.d.ts.map +0 -1
  163. package/dist/devices/fa/MideaFADevice.d.ts.map +0 -1
  164. package/dist/devices/fa/MideaFAMessage.d.ts.map +0 -1
  165. package/dist/index.d.ts.map +0 -1
  166. package/dist/platform.d.ts.map +0 -1
  167. package/dist/platformUtils.d.ts.map +0 -1
  168. package/dist/settings.d.ts.map +0 -1
@@ -3,5 +3,1183 @@
3
3
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";function e(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const i=e(t),s=new Map,n={set(t,e,i){s.has(t)||s.set(t,new Map);const n=s.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>s.has(t)&&s.get(t).get(e)||null,remove(t,e){if(!s.has(t))return;const i=s.get(t);i.delete(e),0===i.size&&s.delete(t)}},o="transitionend",r=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),a=t=>{t.dispatchEvent(new Event(o))},l=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),c=t=>l(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null,h=t=>{if(!l(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},d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),u=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?u(t.parentNode):null},_=()=>{},g=t=>{t.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],p=()=>"rtl"===document.documentElement.dir,b=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of m)t()})),m.push(e)):e()},v=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,y=(t,e,i=!0)=>{if(!i)return void v(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let n=!1;const r=({target:i})=>{i===e&&(n=!0,e.removeEventListener(o,r),v(t))};e.addEventListener(o,r),setTimeout((()=>{n||a(e)}),s)},w=(t,e,i,s)=>{const n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},A=/[^.]*(?=\..*)\.|.*/,E=/\..*/,C=/::\d+$/,T={};let k=1;const $={mouseenter:"mouseover",mouseleave:"mouseout"},S=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 L(t,e){return e&&`${e}::${k++}`||t.uidEvent||k++}function O(t){const e=L(t);return t.uidEvent=e,T[e]=T[e]||{},T[e]}function I(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function D(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=M(t);return S.has(o)||(o=t),[s,n,o]}function N(t,e,i,s,n){if("string"!=typeof e||!t)return;let[o,r,a]=D(e,i,s);if(e in $){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=O(t),c=l[a]||(l[a]={}),h=I(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=L(r,e.replace(A,"")),u=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return F(n,{delegateTarget:r}),s.oneOff&&j.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return F(s,{delegateTarget:t}),i.oneOff&&j.off(t,s.type,e),e.apply(t,[s])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function P(t,e,i,s,n){const o=I(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function x(t,e,i,s){const n=e[i]||{};for(const[o,r]of Object.entries(n))o.includes(s)&&P(t,e,i,r.callable,r.delegationSelector)}function M(t){return t=t.replace(E,""),$[t]||t}const j={on(t,e,i,s){N(t,e,i,s,!1)},one(t,e,i,s){N(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=D(e,i,s),a=r!==e,l=O(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))x(t,l,i,e.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(C,"");a&&!e.includes(n)||P(t,l,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;P(t,l,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=f();let n=null,o=!0,r=!0,a=!1;e!==M(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=F(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function F(t,e={}){for(const[i,s]of Object.entries(e))try{t[i]=s}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function z(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 H(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const B={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${H(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=z(t.dataset[s])}return e},getDataAttribute:(t,e)=>z(t.getAttribute(`data-bs-${H(e)}`))};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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=l(e)?B.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...l(e)?B.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[s,n]of Object.entries(e)){const e=t[s],o=l(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${n}".`)}var i}}class W extends q{constructor(t,e){super(),(t=c(t))&&(this._element=t,this._config=this._getConfig(e),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){y(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return n.get(c(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.2"}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 R=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?r(i.trim()):null}return e},K={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 s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.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=>!d(t)&&h(t)))},getSelectorFromElement(t){const e=R(t);return e&&K.findOne(e)?e:null},getElementFromSelector(t){const e=R(t);return e?K.findOne(e):null},getMultipleElementsFromSelector(t){const e=R(t);return e?K.find(e):[]}},V=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;j.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),d(this))return;const n=K.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]()}))},Q=".bs.alert",X=`close${Q}`,Y=`closed${Q}`;class U extends W{static get NAME(){return"alert"}close(){if(j.trigger(this._element,X).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(),j.trigger(this._element,Y),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=U.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)}}))}}V(U,"close"),b(U);const G='[data-bs-toggle="button"]';class J 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=J.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}j.on(document,"click.bs.button.data-api",G,(t=>{t.preventDefault();const e=t.target.closest(G);J.getOrCreateInstance(e).toggle()})),b(J);const Z=".bs.swipe",tt=`touchstart${Z}`,et=`touchmove${Z}`,it=`touchend${Z}`,st=`pointerdown${Z}`,nt=`pointerup${Z}`,ot={endCallback:null,leftCallback:null,rightCallback:null},rt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class at extends q{constructor(t,e){super(),this._element=t,t&&at.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ot}static get DefaultType(){return rt}static get NAME(){return"swipe"}dispose(){j.off(this._element,Z)}_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(),v(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&&v(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(j.on(this._element,st,(t=>this._start(t))),j.on(this._element,nt,(t=>this._end(t))),this._element.classList.add("pointer-event")):(j.on(this._element,tt,(t=>this._start(t))),j.on(this._element,et,(t=>this._move(t))),j.on(this._element,it,(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 lt=".bs.carousel",ct=".data-api",ht="next",dt="prev",ut="left",_t="right",gt=`slide${lt}`,ft=`slid${lt}`,mt=`keydown${lt}`,pt=`mouseenter${lt}`,bt=`mouseleave${lt}`,vt=`dragstart${lt}`,yt=`load${lt}${ct}`,wt=`click${lt}${ct}`,At="carousel",Et="active",Ct=".active",Tt=".carousel-item",kt=Ct+Tt,$t={ArrowLeft:_t,ArrowRight:ut},St={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Lt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ot 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=K.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===At&&this.cycle()}static get Default(){return St}static get DefaultType(){return Lt}static get NAME(){return"carousel"}next(){this._slide(ht)}nextWhenVisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._slide(dt)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?j.one(this._element,ft,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void j.one(this._element,ft,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?ht:dt;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&j.on(this._element,mt,(t=>this._keydown(t))),"hover"===this._config.pause&&(j.on(this._element,pt,(()=>this.pause())),j.on(this._element,bt,(()=>this._maybeEnableCycle()))),this._config.touch&&at.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of K.find(".carousel-item img",this._element))j.on(t,vt,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(ut)),rightCallback:()=>this._slide(this._directionToOrder(_t)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new at(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=$t[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=K.findOne(Ct,this._indicatorsElement);e.classList.remove(Et),e.removeAttribute("aria-current");const i=K.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Et),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(),s=t===ht,n=e||w(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=e=>j.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(gt).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),g(n),i.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(Et),i.classList.remove(Et,c,l),this._isSliding=!1,r(ft)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return K.findOne(kt,this._element)}_getItems(){return K.find(Tt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return p()?t===ut?dt:ht:t===ut?ht:dt}_orderToDirection(t){return p()?t===dt?ut:_t:t===dt?_t:ut}static jQueryInterface(t){return this.each((function(){const e=Ot.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)}))}}j.on(document,wt,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=K.getElementFromSelector(this);if(!e||!e.classList.contains(At))return;t.preventDefault();const i=Ot.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===B.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),j.on(window,yt,(()=>{const t=K.find('[data-bs-ride="carousel"]');for(const e of t)Ot.getOrCreateInstance(e)})),b(Ot);const It=".bs.collapse",Dt=`show${It}`,Nt=`shown${It}`,Pt=`hide${It}`,xt=`hidden${It}`,Mt=`click${It}.data-api`,jt="show",Ft="collapse",zt="collapsing",Ht=`:scope .${Ft} .${Ft}`,Bt='[data-bs-toggle="collapse"]',qt={parent:null,toggle:!0},Wt={parent:"(null|element)",toggle:"boolean"};class Rt extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=K.find(Bt);for(const t of i){const e=K.getSelectorFromElement(t),i=K.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 qt}static get DefaultType(){return Wt}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=>Rt.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(j.trigger(this._element,Dt).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Ft),this._element.classList.add(zt),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(zt),this._element.classList.add(Ft,jt),this._element.style[e]="",j.trigger(this._element,Nt)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,Pt).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,g(this._element),this._element.classList.add(zt),this._element.classList.remove(Ft,jt);for(const t of this._triggerArray){const e=K.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(zt),this._element.classList.add(Ft),j.trigger(this._element,xt)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(jt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=c(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Bt);for(const e of t){const t=K.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=K.find(Ht,this._config.parent);return K.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=Rt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}j.on(document,Mt,Bt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of K.getMultipleElementsFromSelector(this))Rt.getOrCreateInstance(t,{toggle:!1}).toggle()})),b(Rt);const Kt="dropdown",Vt=".bs.dropdown",Qt=".data-api",Xt="ArrowUp",Yt="ArrowDown",Ut=`hide${Vt}`,Gt=`hidden${Vt}`,Jt=`show${Vt}`,Zt=`shown${Vt}`,te=`click${Vt}${Qt}`,ee=`keydown${Vt}${Qt}`,ie=`keyup${Vt}${Qt}`,se="show",ne='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oe=`${ne}.${se}`,re=".dropdown-menu",ae=p()?"top-end":"top-start",le=p()?"top-start":"top-end",ce=p()?"bottom-end":"bottom-start",he=p()?"bottom-start":"bottom-end",de=p()?"left-start":"right-start",ue=p()?"right-start":"left-start",_e={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ge={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class fe extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=K.next(this._element,re)[0]||K.prev(this._element,re)[0]||K.findOne(re,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return _e}static get DefaultType(){return ge}static get NAME(){return Kt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(d(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!j.trigger(this._element,Jt,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))j.on(t,"mouseover",_);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(se),this._element.classList.add(se),j.trigger(this._element,Zt,t)}}hide(){if(d(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(!j.trigger(this._element,Ut,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",_);this._popper&&this._popper.destroy(),this._menu.classList.remove(se),this._element.classList.remove(se),this._element.setAttribute("aria-expanded","false"),B.removeDataAttribute(this._menu,"popper"),j.trigger(this._element,Gt,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!l(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Kt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:l(this._config.reference)?t=c(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=i.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(se)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return de;if(t.classList.contains("dropstart"))return ue;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?le:ae:e?he:ce}_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)&&(B.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...v(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=K.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>h(t)));i.length&&w(i,e,t===Yt,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=fe.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=K.find(oe);for(const i of e){const e=fe.getInstance(i);if(!e||!1===e._config.autoClose)continue;const s=t.composedPath(),n=s.includes(e._menu);if(s.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)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,s=[Xt,Yt].includes(t.key);if(!s&&!i)return;if(e&&!i)return;t.preventDefault();const n=this.matches(ne)?this:K.prev(this,ne)[0]||K.next(this,ne)[0]||K.findOne(ne,t.delegateTarget.parentNode),o=fe.getOrCreateInstance(n);if(s)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),n.focus())}}j.on(document,ee,ne,fe.dataApiKeydownHandler),j.on(document,ee,re,fe.dataApiKeydownHandler),j.on(document,te,fe.clearMenus),j.on(document,ie,fe.clearMenus),j.on(document,te,ne,(function(t){t.preventDefault(),fe.getOrCreateInstance(this).toggle()})),b(fe);const me="backdrop",pe="show",be=`mousedown.bs.${me}`,ve={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ye={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class we extends q{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ve}static get DefaultType(){return ye}static get NAME(){return me}show(t){if(!this._config.isVisible)return void v(t);this._append();const e=this._getElement();this._config.isAnimated&&g(e),e.classList.add(pe),this._emulateAnimation((()=>{v(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(pe),this._emulateAnimation((()=>{this.dispose(),v(t)}))):v(t)}dispose(){this._isAppended&&(j.off(this._element,be),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=c(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),j.on(t,be,(()=>{v(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){y(t,this._getElement(),this._config.isAnimated)}}const Ae=".bs.focustrap",Ee=`focusin${Ae}`,Ce=`keydown.tab${Ae}`,Te="backward",ke={autofocus:!0,trapElement:null},$e={autofocus:"boolean",trapElement:"element"};class Se extends q{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ke}static get DefaultType(){return $e}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),j.off(document,Ae),j.on(document,Ee,(t=>this._handleFocusin(t))),j.on(document,Ce,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,j.off(document,Ae))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=K.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Te?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Te:"forward")}}const Le=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Oe=".sticky-top",Ie="padding-right",De="margin-right";class Ne{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,Ie,(e=>e+t)),this._setElementAttributes(Le,Ie,(e=>e+t)),this._setElementAttributes(Oe,De,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ie),this._resetElementAttributes(Le,Ie),this._resetElementAttributes(Oe,De)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&B.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=B.getDataAttribute(t,e);null!==i?(B.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(l(t))e(t);else for(const i of K.find(t,this._element))e(i)}}const Pe=".bs.modal",xe=`hide${Pe}`,Me=`hidePrevented${Pe}`,je=`hidden${Pe}`,Fe=`show${Pe}`,ze=`shown${Pe}`,He=`resize${Pe}`,Be=`click.dismiss${Pe}`,qe=`mousedown.dismiss${Pe}`,We=`keydown.dismiss${Pe}`,Re=`click${Pe}.data-api`,Ke="modal-open",Ve="show",Qe="modal-static",Xe={backdrop:!0,focus:!0,keyboard:!0},Ye={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ue extends W{constructor(t,e){super(t,e),this._dialog=K.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ne,this._addEventListeners()}static get Default(){return Xe}static get DefaultType(){return Ye}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||j.trigger(this._element,Fe,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ke),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(j.trigger(this._element,xe).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ve),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){j.off(window,Pe),j.off(this._dialog,Pe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new we({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Se({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=K.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),g(this._element),this._element.classList.add(Ve),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,j.trigger(this._element,ze,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){j.on(this._element,We,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),j.on(window,He,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),j.on(this._element,qe,(t=>{j.one(this._element,Be,(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(Ke),this._resetAdjustments(),this._scrollBar.reset(),j.trigger(this._element,je)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(j.trigger(this._element,Me).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Qe)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Qe),this._queueCallback((()=>{this._element.classList.remove(Qe),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=Ue.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}j.on(document,Re,'[data-bs-toggle="modal"]',(function(t){const e=K.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),j.one(e,Fe,(t=>{t.defaultPrevented||j.one(e,je,(()=>{h(this)&&this.focus()}))}));const i=K.findOne(".modal.show");i&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(e).toggle(this)})),V(Ue),b(Ue);const Ge=".bs.offcanvas",Je=".data-api",Ze=`load${Ge}${Je}`,ti="show",ei="showing",ii="hiding",si=".offcanvas.show",ni=`show${Ge}`,oi=`shown${Ge}`,ri=`hide${Ge}`,ai=`hidePrevented${Ge}`,li=`hidden${Ge}`,ci=`resize${Ge}`,hi=`click${Ge}${Je}`,di=`keydown.dismiss${Ge}`,ui={backdrop:!0,keyboard:!0,scroll:!1},_i={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class gi 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 ui}static get DefaultType(){return _i}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||j.trigger(this._element,ni,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ne).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ei),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ti),this._element.classList.remove(ei),j.trigger(this._element,oi,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(j.trigger(this._element,ri).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ii),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(ti,ii),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ne).reset(),j.trigger(this._element,li)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new we({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():j.trigger(this._element,ai)}:null})}_initializeFocusTrap(){return new Se({trapElement:this._element})}_addEventListeners(){j.on(this._element,di,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():j.trigger(this._element,ai))}))}static jQueryInterface(t){return this.each((function(){const e=gi.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)}}))}}j.on(document,hi,'[data-bs-toggle="offcanvas"]',(function(t){const e=K.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;j.one(e,li,(()=>{h(this)&&this.focus()}));const i=K.findOne(si);i&&i!==e&&gi.getInstance(i).hide(),gi.getOrCreateInstance(e).toggle(this)})),j.on(window,Ze,(()=>{for(const t of K.find(si))gi.getOrCreateInstance(t).show()})),j.on(window,ci,(()=>{for(const t of K.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&gi.getOrCreateInstance(t).hide()})),V(gi),b(gi);const fi={"*":["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:[]},mi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,bi=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!mi.has(i)||Boolean(pi.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},vi={allowList:fi,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"},wi={entry:"(string|element|function|null)",selector:"(string|element)"};class Ai extends q{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return vi}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},wi)}_setContent(t,e,i){const s=K.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?l(e)?this._putElementInTemplate(c(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.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 s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const t of n){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)bi(e,n)||t.removeAttribute(e.nodeName)}return s.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return v(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Ei=new Set(["sanitize","allowList","sanitizeFn"]),Ci="fade",Ti="show",ki=".modal",$i="hide.bs.modal",Si="hover",Li="focus",Oi={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},Ii={allowList:fi,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"},Di={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 Ni extends W{constructor(t,e){if(void 0===i)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 Ii}static get DefaultType(){return Di}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),j.off(this._element.closest(ki),$i,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=j.trigger(this._element,this.constructor.eventName("show")),e=(u(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:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),j.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Ti),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.on(t,"mouseover",_);this._queueCallback((()=>{j.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!j.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ti),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",_);this._activeTrigger.click=!1,this._activeTrigger[Li]=!1,this._activeTrigger[Si]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),j.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(Ci,Ti),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(Ci),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ai({...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(Ci)}_isShown(){return this.tip&&this.tip.classList.contains(Ti)}_createPopper(t){const e=v(this._config.placement,[this,t,this._element]),s=Oi[e.toUpperCase()];return i.createPopper(this._element,t,this._getPopperConfig(s))}_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 v(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,...v(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)j.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===Si?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Si?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");j.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Li:Si]=!0,e._enter()})),j.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Li:Si]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(ki),$i,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=B.getDataAttributes(this._element);for(const t of Object.keys(e))Ei.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:c(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=Ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(Ni);const Pi={...Ni.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"},xi={...Ni.DefaultType,content:"(null|string|element|function)"};class Mi extends Ni{static get Default(){return Pi}static get DefaultType(){return xi}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=Mi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(Mi);const ji=".bs.scrollspy",Fi=`activate${ji}`,zi=`click${ji}`,Hi=`load${ji}.data-api`,Bi="active",qi="[href]",Wi=".nav-link",Ri=`${Wi}, .nav-item > ${Wi}, .list-group-item`,Ki={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Vi={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Qi 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 Ki}static get DefaultType(){return Vi}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=c(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&&(j.off(this._config.target,zi),j.on(this._config.target,zi,qi,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_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))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;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(n&&t){if(i(o),!s)return}else n||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=K.find(qi,this._config.target);for(const e of t){if(!e.hash||d(e))continue;const t=K.findOne(decodeURI(e.hash),this._element);h(t)&&(this._targetLinks.set(decodeURI(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(Bi),this._activateParents(t),j.trigger(this._element,Fi,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))K.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Bi);else for(const e of K.parents(t,".nav, .list-group"))for(const t of K.prev(e,Ri))t.classList.add(Bi)}_clearActiveClass(t){t.classList.remove(Bi);const e=K.find(`${qi}.${Bi}`,t);for(const t of e)t.classList.remove(Bi)}static jQueryInterface(t){return this.each((function(){const e=Qi.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]()}}))}}j.on(window,Hi,(()=>{for(const t of K.find('[data-bs-spy="scroll"]'))Qi.getOrCreateInstance(t)})),b(Qi);const Xi=".bs.tab",Yi=`hide${Xi}`,Ui=`hidden${Xi}`,Gi=`show${Xi}`,Ji=`shown${Xi}`,Zi=`click${Xi}`,ts=`keydown${Xi}`,es=`load${Xi}`,is="ArrowLeft",ss="ArrowRight",ns="ArrowUp",os="ArrowDown",rs="Home",as="End",ls="active",cs="fade",hs="show",ds=".dropdown-toggle",us=`:not(${ds})`,_s='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gs=`.nav-link${us}, .list-group-item${us}, [role="tab"]${us}, ${_s}`,fs=`.${ls}[data-bs-toggle="tab"], .${ls}[data-bs-toggle="pill"], .${ls}[data-bs-toggle="list"]`;class ms extends W{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),j.on(this._element,ts,(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?j.trigger(e,Yi,{relatedTarget:t}):null;j.trigger(t,Gi,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(ls),this._activate(K.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),j.trigger(t,Ji,{relatedTarget:e})):t.classList.add(hs)}),t,t.classList.contains(cs)))}_deactivate(t,e){t&&(t.classList.remove(ls),t.blur(),this._deactivate(K.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),j.trigger(t,Ui,{relatedTarget:e})):t.classList.remove(hs)}),t,t.classList.contains(cs)))}_keydown(t){if(![is,ss,ns,os,rs,as].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!d(t)));let i;if([rs,as].includes(t.key))i=e[t.key===rs?0:e.length-1];else{const s=[ss,os].includes(t.key);i=w(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),ms.getOrCreateInstance(i).show())}_getChildren(){return K.find(gs,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=K.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 s=(t,s)=>{const n=K.findOne(t,i);n&&n.classList.toggle(s,e)};s(ds,ls),s(".dropdown-menu",hs),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ls)}_getInnerElement(t){return t.matches(gs)?t:K.findOne(gs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=ms.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}j.on(document,Zi,_s,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this)||ms.getOrCreateInstance(this).show()})),j.on(window,es,(()=>{for(const t of K.find(fs))ms.getOrCreateInstance(t)})),b(ms);const ps=".bs.toast",bs=`mouseover${ps}`,vs=`mouseout${ps}`,ys=`focusin${ps}`,ws=`focusout${ps}`,As=`hide${ps}`,Es=`hidden${ps}`,Cs=`show${ps}`,Ts=`shown${ps}`,ks="hide",$s="show",Ss="showing",Ls={animation:"boolean",autohide:"boolean",delay:"number"},Os={animation:!0,autohide:!0,delay:5e3};class Is extends W{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Os}static get DefaultType(){return Ls}static get NAME(){return"toast"}show(){j.trigger(this._element,Cs).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(ks),g(this._element),this._element.classList.add($s,Ss),this._queueCallback((()=>{this._element.classList.remove(Ss),j.trigger(this._element,Ts),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(j.trigger(this._element,As).defaultPrevented||(this._element.classList.add(Ss),this._queueCallback((()=>{this._element.classList.add(ks),this._element.classList.remove(Ss,$s),j.trigger(this._element,Es)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($s),super.dispose()}isShown(){return this._element.classList.contains($s)}_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(){j.on(this._element,bs,(t=>this._onInteraction(t,!0))),j.on(this._element,vs,(t=>this._onInteraction(t,!1))),j.on(this._element,ys,(t=>this._onInteraction(t,!0))),j.on(this._element,ws,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Is.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return V(Is),b(Is),{Alert:U,Button:J,Carousel:Ot,Collapse:Rt,Dropdown:fe,Modal:Ue,Offcanvas:gi,Popover:Mi,ScrollSpy:Qi,Tab:ms,Toast:Is,Tooltip:Ni}}));
6
+ !function(t,e){
7
+ 'object'==typeof exports&&'undefined'!=typeof module?module.exports=e(require('@popperjs/core')):'function'==typeof define&&define.amd?define(['@popperjs/core'],e):(t='undefined'!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper);
8
+ }(this,((t) =>{
9
+ 'use strict';function e(t){
10
+ const e=Object.create(null,{ [Symbol.toStringTag]:{ value:'Module' } });if(t){
11
+ for(const i in t){
12
+ if('default'!==i){
13
+ const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{ enumerable:!0,get:()=>t[i] });
14
+ }
15
+ }
16
+ }return e.default=t,Object.freeze(e);
17
+ }const i=e(t),s=new Map,n={ set(t,e,i){
18
+ s.has(t)||s.set(t,new Map);const n=s.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);
19
+ },get:(t,e)=>s.has(t)&&s.get(t).get(e)||null,remove(t,e){
20
+ if(!s.has(t)){
21
+ return;
22
+ }const i=s.get(t);i.delete(e),0===i.size&&s.delete(t);
23
+ } },o='transitionend',r=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),a=t=>{
24
+ t.dispatchEvent(new Event(o));
25
+ },l=t=>!(!t||'object'!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),c=t=>l(t)?t.jquery?t[0]:t:'string'==typeof t&&t.length>0?document.querySelector(r(t)):null,h=t=>{
26
+ if(!l(t)||0===t.getClientRects().length){
27
+ return!1;
28
+ }const e='visible'===getComputedStyle(t).getPropertyValue('visibility'),i=t.closest('details:not([open])');if(!i){
29
+ return e;
30
+ }if(i!==t){
31
+ const e=t.closest('summary');if(e&&e.parentNode!==i){
32
+ return!1;
33
+ }if(null===e){
34
+ return!1;
35
+ }
36
+ }return e;
37
+ },d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains('disabled')||(void 0!==t.disabled?t.disabled:t.hasAttribute('disabled')&&'false'!==t.getAttribute('disabled')),u=t=>{
38
+ if(!document.documentElement.attachShadow){
39
+ return null;
40
+ }if('function'==typeof t.getRootNode){
41
+ const e=t.getRootNode();return e instanceof ShadowRoot?e:null;
42
+ }return t instanceof ShadowRoot?t:t.parentNode?u(t.parentNode):null;
43
+ },_=()=>{},g=t=>{
44
+ t.offsetHeight;
45
+ },f=()=>window.jQuery&&!document.body.hasAttribute('data-bs-no-jquery')?window.jQuery:null,m=[],p=()=>'rtl'===document.documentElement.dir,b=t=>{
46
+ var e;e=()=>{
47
+ const e=f();if(e){
48
+ const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface);
49
+ }
50
+ },'loading'===document.readyState?(m.length||document.addEventListener('DOMContentLoaded',(()=>{
51
+ for(const t of m){
52
+ t();
53
+ }
54
+ })),m.push(e)):e();
55
+ },v=(t,e=[],i=t)=>'function'==typeof t?t(...e):i,y=(t,e,i=!0)=>{
56
+ if(!i){
57
+ return void v(t);
58
+ }const s=(t=>{
59
+ if(!t){
60
+ return 0;
61
+ }let{ transitionDuration:e,transitionDelay:i }=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(',')[0],i=i.split(',')[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0;
62
+ })(e)+5;let n=!1;const r=({ target:i })=>{
63
+ i===e&&(n=!0,e.removeEventListener(o,r),v(t));
64
+ };e.addEventListener(o,r),setTimeout((()=>{
65
+ n||a(e);
66
+ }),s);
67
+ },w=(t,e,i,s)=>{
68
+ const n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))]);
69
+ },A=/[^.]*(?=\..*)\.|.*/,E=/\..*/,C=/::\d+$/,T={};let k=1;const $={ mouseenter:'mouseover',mouseleave:'mouseout' },S=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 L(t,e){
70
+ return e&&`${e}::${k++}`||t.uidEvent||k++;
71
+ }function O(t){
72
+ const e=L(t);return t.uidEvent=e,T[e]=T[e]||{},T[e];
73
+ }function I(t,e,i=null){
74
+ return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i));
75
+ }function D(t,e,i){
76
+ const s='string'==typeof e,n=s?i:e||i;let o=M(t);return S.has(o)||(o=t),[s,n,o];
77
+ }function N(t,e,i,s,n){
78
+ if('string'!=typeof e||!t){
79
+ return;
80
+ }let[o,r,a]=D(e,i,s);if(e in $){
81
+ const t=t=>function(e){
82
+ if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget)){
83
+ return t.call(this,e);
84
+ }
85
+ };r=t(r);
86
+ }const l=O(t),c=l[a]||(l[a]={}),h=I(c,r,o?i:null);if(h){
87
+ return void(h.oneOff=h.oneOff&&n);
88
+ }const d=L(r,e.replace(A,'')),u=o?function(t,e,i){
89
+ return function s(n){
90
+ const o=t.querySelectorAll(e);for(let{ target:r }=n;r&&r!==this;r=r.parentNode){
91
+ for(const a of o){
92
+ if(a===r){
93
+ return F(n,{ delegateTarget:r }),s.oneOff&&j.off(t,n.type,e,i),i.apply(r,[n]);
94
+ }
95
+ }
96
+ }
97
+ };
98
+ }(t,i,r):function(t,e){
99
+ return function i(s){
100
+ return F(s,{ delegateTarget:t }),i.oneOff&&j.off(t,s.type,e),e.apply(t,[s]);
101
+ };
102
+ }(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o);
103
+ }function P(t,e,i,s,n){
104
+ const o=I(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent]);
105
+ }function x(t,e,i,s){
106
+ const n=e[i]||{};for(const[o,r]of Object.entries(n)){
107
+ o.includes(s)&&P(t,e,i,r.callable,r.delegationSelector);
108
+ }
109
+ }function M(t){
110
+ return t=t.replace(E,''),$[t]||t;
111
+ }const j={ on(t,e,i,s){
112
+ N(t,e,i,s,!1);
113
+ },one(t,e,i,s){
114
+ N(t,e,i,s,!0);
115
+ },off(t,e,i,s){
116
+ if('string'!=typeof e||!t){
117
+ return;
118
+ }const[n,o,r]=D(e,i,s),a=r!==e,l=O(t),c=l[r]||{},h=e.startsWith('.');if(void 0===o){
119
+ if(h){
120
+ for(const i of Object.keys(l)){
121
+ x(t,l,i,e.slice(1));
122
+ }
123
+ }for(const[i,s]of Object.entries(c)){
124
+ const n=i.replace(C,'');a&&!e.includes(n)||P(t,l,r,s.callable,s.delegationSelector);
125
+ }
126
+ }else{
127
+ if(!Object.keys(c).length){
128
+ return;
129
+ }P(t,l,r,o,n?i:null);
130
+ }
131
+ },trigger(t,e,i){
132
+ if('string'!=typeof e||!t){
133
+ return null;
134
+ }const s=f();let n=null,o=!0,r=!0,a=!1;e!==M(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=F(new Event(e,{ bubbles:o,cancelable:!0 }),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l;
135
+ } };function F(t,e={}){
136
+ for(const[i,s]of Object.entries(e)){
137
+ try{
138
+ t[i]=s;
139
+ }catch(e){
140
+ Object.defineProperty(t,i,{ configurable:!0,get:()=>s });
141
+ }
142
+ }return t;
143
+ }function z(t){
144
+ if('true'===t){
145
+ return!0;
146
+ }if('false'===t){
147
+ return!1;
148
+ }if(t===Number(t).toString()){
149
+ return Number(t);
150
+ }if(''===t||'null'===t){
151
+ return null;
152
+ }if('string'!=typeof t){
153
+ return t;
154
+ }try{
155
+ return JSON.parse(decodeURIComponent(t));
156
+ }catch(e){
157
+ return t;
158
+ }
159
+ }function H(t){
160
+ return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`));
161
+ }const B={ setDataAttribute(t,e,i){
162
+ t.setAttribute(`data-bs-${H(e)}`,i);
163
+ },removeDataAttribute(t,e){
164
+ t.removeAttribute(`data-bs-${H(e)}`);
165
+ },getDataAttributes(t){
166
+ if(!t){
167
+ return{};
168
+ }const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith('bs')&&!t.startsWith('bsConfig')));for(const s of i){
169
+ let i=s.replace(/^bs/,'');i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=z(t.dataset[s]);
170
+ }return e;
171
+ },getDataAttribute:(t,e)=>z(t.getAttribute(`data-bs-${H(e)}`)) };class q{
172
+ static get Default(){
173
+ return{};
174
+ }static get DefaultType(){
175
+ return{};
176
+ }static get NAME(){
177
+ throw new Error('You have to implement the static method "NAME", for each component!');
178
+ }_getConfig(t){
179
+ return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t;
180
+ }_configAfterMerge(t){
181
+ return t;
182
+ }_mergeConfigObj(t,e){
183
+ const i=l(e)?B.getDataAttribute(e,'config'):{};return{ ...this.constructor.Default,...'object'==typeof i?i:{},...l(e)?B.getDataAttributes(e):{},...'object'==typeof t?t:{} };
184
+ }_typeCheckConfig(t,e=this.constructor.DefaultType){
185
+ for(const[s,n]of Object.entries(e)){
186
+ const e=t[s],o=l(e)?'element':null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(o)){
187
+ throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${n}".`);
188
+ }
189
+ }var i;
190
+ }
191
+ }class W extends q{
192
+ constructor(t,e){
193
+ super(),(t=c(t))&&(this._element=t,this._config=this._getConfig(e),n.set(this._element,this.constructor.DATA_KEY,this));
194
+ }dispose(){
195
+ n.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this)){
196
+ this[t]=null;
197
+ }
198
+ }_queueCallback(t,e,i=!0){
199
+ y(t,e,i);
200
+ }_getConfig(t){
201
+ return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t;
202
+ }static getInstance(t){
203
+ return n.get(c(t),this.DATA_KEY);
204
+ }static getOrCreateInstance(t,e={}){
205
+ return this.getInstance(t)||new this(t,'object'==typeof e?e:null);
206
+ }static get VERSION(){
207
+ return'5.3.2';
208
+ }static get DATA_KEY(){
209
+ return`bs.${this.NAME}`;
210
+ }static get EVENT_KEY(){
211
+ return`.${this.DATA_KEY}`;
212
+ }static eventName(t){
213
+ return`${t}${this.EVENT_KEY}`;
214
+ }
215
+ }const R=t=>{
216
+ let e=t.getAttribute('data-bs-target');if(!e||'#'===e){
217
+ let i=t.getAttribute('href');if(!i||!i.includes('#')&&!i.startsWith('.')){
218
+ return null;
219
+ }i.includes('#')&&!i.startsWith('#')&&(i=`#${i.split('#')[1]}`),e=i&&'#'!==i?r(i.trim()):null;
220
+ }return e;
221
+ },K={ 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){
222
+ const i=[];let s=t.parentNode.closest(e);for(;s;){
223
+ i.push(s),s=s.parentNode.closest(e);
224
+ }return i;
225
+ },prev(t,e){
226
+ let i=t.previousElementSibling;for(;i;){
227
+ if(i.matches(e)){
228
+ return[i];
229
+ }i=i.previousElementSibling;
230
+ }return[];
231
+ },next(t,e){
232
+ let i=t.nextElementSibling;for(;i;){
233
+ if(i.matches(e)){
234
+ return[i];
235
+ }i=i.nextElementSibling;
236
+ }return[];
237
+ },focusableChildren(t){
238
+ const e=['a','button','input','textarea','select','details','[tabindex]','[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(',');return this.find(e,t).filter((t=>!d(t)&&h(t)));
239
+ },getSelectorFromElement(t){
240
+ const e=R(t);return e&&K.findOne(e)?e:null;
241
+ },getElementFromSelector(t){
242
+ const e=R(t);return e?K.findOne(e):null;
243
+ },getMultipleElementsFromSelector(t){
244
+ const e=R(t);return e?K.find(e):[];
245
+ } },V=(t,e='hide')=>{
246
+ const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;j.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){
247
+ if(['A','AREA'].includes(this.tagName)&&i.preventDefault(),d(this)){
248
+ return;
249
+ }const n=K.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]();
250
+ }));
251
+ },Q='.bs.alert',X=`close${Q}`,Y=`closed${Q}`;class U extends W{
252
+ static get NAME(){
253
+ return'alert';
254
+ }close(){
255
+ if(j.trigger(this._element,X).defaultPrevented){
256
+ return;
257
+ }this._element.classList.remove('show');const t=this._element.classList.contains('fade');this._queueCallback((()=>this._destroyElement()),this._element,t);
258
+ }_destroyElement(){
259
+ this._element.remove(),j.trigger(this._element,Y),this.dispose();
260
+ }static jQueryInterface(t){
261
+ return this.each((function(){
262
+ const e=U.getOrCreateInstance(this);if('string'==typeof t){
263
+ if(void 0===e[t]||t.startsWith('_')||'constructor'===t){
264
+ throw new TypeError(`No method named "${t}"`);
265
+ }e[t](this);
266
+ }
267
+ }));
268
+ }
269
+ }V(U,'close'),b(U);const G='[data-bs-toggle="button"]';class J extends W{
270
+ static get NAME(){
271
+ return'button';
272
+ }toggle(){
273
+ this._element.setAttribute('aria-pressed',this._element.classList.toggle('active'));
274
+ }static jQueryInterface(t){
275
+ return this.each((function(){
276
+ const e=J.getOrCreateInstance(this);'toggle'===t&&e[t]();
277
+ }));
278
+ }
279
+ }j.on(document,'click.bs.button.data-api',G,(t=>{
280
+ t.preventDefault();const e=t.target.closest(G);J.getOrCreateInstance(e).toggle();
281
+ })),b(J);const Z='.bs.swipe',tt=`touchstart${Z}`,et=`touchmove${Z}`,it=`touchend${Z}`,st=`pointerdown${Z}`,nt=`pointerup${Z}`,ot={ endCallback:null,leftCallback:null,rightCallback:null },rt={ endCallback:'(function|null)',leftCallback:'(function|null)',rightCallback:'(function|null)' };class at extends q{
282
+ constructor(t,e){
283
+ super(),this._element=t,t&&at.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents());
284
+ }static get Default(){
285
+ return ot;
286
+ }static get DefaultType(){
287
+ return rt;
288
+ }static get NAME(){
289
+ return'swipe';
290
+ }dispose(){
291
+ j.off(this._element,Z);
292
+ }_start(t){
293
+ this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX;
294
+ }_end(t){
295
+ this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),v(this._config.endCallback);
296
+ }_move(t){
297
+ this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX;
298
+ }_handleSwipe(){
299
+ const t=Math.abs(this._deltaX);if(t<=40){
300
+ return;
301
+ }const e=t/this._deltaX;this._deltaX=0,e&&v(e>0?this._config.rightCallback:this._config.leftCallback);
302
+ }_initEvents(){
303
+ this._supportPointerEvents?(j.on(this._element,st,(t=>this._start(t))),j.on(this._element,nt,(t=>this._end(t))),this._element.classList.add('pointer-event')):(j.on(this._element,tt,(t=>this._start(t))),j.on(this._element,et,(t=>this._move(t))),j.on(this._element,it,(t=>this._end(t))));
304
+ }_eventIsPointerPenTouch(t){
305
+ return this._supportPointerEvents&&('pen'===t.pointerType||'touch'===t.pointerType);
306
+ }static isSupported(){
307
+ return'ontouchstart'in document.documentElement||navigator.maxTouchPoints>0;
308
+ }
309
+ }const lt='.bs.carousel',ct='.data-api',ht='next',dt='prev',ut='left',_t='right',gt=`slide${lt}`,ft=`slid${lt}`,mt=`keydown${lt}`,pt=`mouseenter${lt}`,bt=`mouseleave${lt}`,vt=`dragstart${lt}`,yt=`load${lt}${ct}`,wt=`click${lt}${ct}`,At='carousel',Et='active',Ct='.active',Tt='.carousel-item',kt=Ct+Tt,$t={ ArrowLeft:_t,ArrowRight:ut },St={ interval:5e3,keyboard:!0,pause:'hover',ride:!1,touch:!0,wrap:!0 },Lt={ interval:'(number|boolean)',keyboard:'boolean',pause:'(string|boolean)',ride:'(boolean|string)',touch:'boolean',wrap:'boolean' };class Ot extends W{
310
+ constructor(t,e){
311
+ super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=K.findOne('.carousel-indicators',this._element),this._addEventListeners(),this._config.ride===At&&this.cycle();
312
+ }static get Default(){
313
+ return St;
314
+ }static get DefaultType(){
315
+ return Lt;
316
+ }static get NAME(){
317
+ return'carousel';
318
+ }next(){
319
+ this._slide(ht);
320
+ }nextWhenVisible(){
321
+ !document.hidden&&h(this._element)&&this.next();
322
+ }prev(){
323
+ this._slide(dt);
324
+ }pause(){
325
+ this._isSliding&&a(this._element),this._clearInterval();
326
+ }cycle(){
327
+ this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval);
328
+ }_maybeEnableCycle(){
329
+ this._config.ride&&(this._isSliding?j.one(this._element,ft,(()=>this.cycle())):this.cycle());
330
+ }to(t){
331
+ const e=this._getItems();if(t>e.length-1||t<0){
332
+ return;
333
+ }if(this._isSliding){
334
+ return void j.one(this._element,ft,(()=>this.to(t)));
335
+ }const i=this._getItemIndex(this._getActive());if(i===t){
336
+ return;
337
+ }const s=t>i?ht:dt;this._slide(s,e[t]);
338
+ }dispose(){
339
+ this._swipeHelper&&this._swipeHelper.dispose(),super.dispose();
340
+ }_configAfterMerge(t){
341
+ return t.defaultInterval=t.interval,t;
342
+ }_addEventListeners(){
343
+ this._config.keyboard&&j.on(this._element,mt,(t=>this._keydown(t))),'hover'===this._config.pause&&(j.on(this._element,pt,(()=>this.pause())),j.on(this._element,bt,(()=>this._maybeEnableCycle()))),this._config.touch&&at.isSupported()&&this._addTouchEventListeners();
344
+ }_addTouchEventListeners(){
345
+ for(const t of K.find('.carousel-item img',this._element)){
346
+ j.on(t,vt,(t=>t.preventDefault()));
347
+ }const t={ leftCallback:()=>this._slide(this._directionToOrder(ut)),rightCallback:()=>this._slide(this._directionToOrder(_t)),endCallback:()=>{
348
+ 'hover'===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval));
349
+ } };this._swipeHelper=new at(this._element,t);
350
+ }_keydown(t){
351
+ if(/input|textarea/i.test(t.target.tagName)){
352
+ return;
353
+ }const e=$t[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)));
354
+ }_getItemIndex(t){
355
+ return this._getItems().indexOf(t);
356
+ }_setActiveIndicatorElement(t){
357
+ if(!this._indicatorsElement){
358
+ return;
359
+ }const e=K.findOne(Ct,this._indicatorsElement);e.classList.remove(Et),e.removeAttribute('aria-current');const i=K.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Et),i.setAttribute('aria-current','true'));
360
+ }_updateInterval(){
361
+ const t=this._activeElement||this._getActive();if(!t){
362
+ return;
363
+ }const e=Number.parseInt(t.getAttribute('data-bs-interval'),10);this._config.interval=e||this._config.defaultInterval;
364
+ }_slide(t,e=null){
365
+ if(this._isSliding){
366
+ return;
367
+ }const i=this._getActive(),s=t===ht,n=e||w(this._getItems(),i,s,this._config.wrap);if(n===i){
368
+ return;
369
+ }const o=this._getItemIndex(n),r=e=>j.trigger(this._element,e,{ relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o });if(r(gt).defaultPrevented){
370
+ return;
371
+ }if(!i||!n){
372
+ return;
373
+ }const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?'carousel-item-start':'carousel-item-end',c=s?'carousel-item-next':'carousel-item-prev';n.classList.add(c),g(n),i.classList.add(l),n.classList.add(l),this._queueCallback((()=>{
374
+ n.classList.remove(l,c),n.classList.add(Et),i.classList.remove(Et,c,l),this._isSliding=!1,r(ft);
375
+ }),i,this._isAnimated()),a&&this.cycle();
376
+ }_isAnimated(){
377
+ return this._element.classList.contains('slide');
378
+ }_getActive(){
379
+ return K.findOne(kt,this._element);
380
+ }_getItems(){
381
+ return K.find(Tt,this._element);
382
+ }_clearInterval(){
383
+ this._interval&&(clearInterval(this._interval),this._interval=null);
384
+ }_directionToOrder(t){
385
+ return p()?t===ut?dt:ht:t===ut?ht:dt;
386
+ }_orderToDirection(t){
387
+ return p()?t===dt?ut:_t:t===dt?_t:ut;
388
+ }static jQueryInterface(t){
389
+ return this.each((function(){
390
+ const e=Ot.getOrCreateInstance(this,t);if('number'!=typeof t){
391
+ if('string'==typeof t){
392
+ if(void 0===e[t]||t.startsWith('_')||'constructor'===t){
393
+ throw new TypeError(`No method named "${t}"`);
394
+ }e[t]();
395
+ }
396
+ }else {
397
+ e.to(t);
398
+ }
399
+ }));
400
+ }
401
+ }j.on(document,wt,'[data-bs-slide], [data-bs-slide-to]',(function(t){
402
+ const e=K.getElementFromSelector(this);if(!e||!e.classList.contains(At)){
403
+ return;
404
+ }t.preventDefault();const i=Ot.getOrCreateInstance(e),s=this.getAttribute('data-bs-slide-to');return s?(i.to(s),void i._maybeEnableCycle()):'next'===B.getDataAttribute(this,'slide')?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle());
405
+ })),j.on(window,yt,(()=>{
406
+ const t=K.find('[data-bs-ride="carousel"]');for(const e of t){
407
+ Ot.getOrCreateInstance(e);
408
+ }
409
+ })),b(Ot);const It='.bs.collapse',Dt=`show${It}`,Nt=`shown${It}`,Pt=`hide${It}`,xt=`hidden${It}`,Mt=`click${It}.data-api`,jt='show',Ft='collapse',zt='collapsing',Ht=`:scope .${Ft} .${Ft}`,Bt='[data-bs-toggle="collapse"]',qt={ parent:null,toggle:!0 },Wt={ parent:'(null|element)',toggle:'boolean' };class Rt extends W{
410
+ constructor(t,e){
411
+ super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=K.find(Bt);for(const t of i){
412
+ const e=K.getSelectorFromElement(t),i=K.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t);
413
+ }this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle();
414
+ }static get Default(){
415
+ return qt;
416
+ }static get DefaultType(){
417
+ return Wt;
418
+ }static get NAME(){
419
+ return'collapse';
420
+ }toggle(){
421
+ this._isShown()?this.hide():this.show();
422
+ }show(){
423
+ if(this._isTransitioning||this._isShown()){
424
+ return;
425
+ }let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren('.collapse.show, .collapse.collapsing').filter((t=>t!==this._element)).map((t=>Rt.getOrCreateInstance(t,{ toggle:!1 })))),t.length&&t[0]._isTransitioning){
426
+ return;
427
+ }if(j.trigger(this._element,Dt).defaultPrevented){
428
+ return;
429
+ }for(const e of t){
430
+ e.hide();
431
+ }const e=this._getDimension();this._element.classList.remove(Ft),this._element.classList.add(zt),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{
432
+ this._isTransitioning=!1,this._element.classList.remove(zt),this._element.classList.add(Ft,jt),this._element.style[e]='',j.trigger(this._element,Nt);
433
+ }),this._element,!0),this._element.style[e]=`${this._element[i]}px`;
434
+ }hide(){
435
+ if(this._isTransitioning||!this._isShown()){
436
+ return;
437
+ }if(j.trigger(this._element,Pt).defaultPrevented){
438
+ return;
439
+ }const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,g(this._element),this._element.classList.add(zt),this._element.classList.remove(Ft,jt);for(const t of this._triggerArray){
440
+ const e=K.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1);
441
+ }this._isTransitioning=!0,this._element.style[t]='',this._queueCallback((()=>{
442
+ this._isTransitioning=!1,this._element.classList.remove(zt),this._element.classList.add(Ft),j.trigger(this._element,xt);
443
+ }),this._element,!0);
444
+ }_isShown(t=this._element){
445
+ return t.classList.contains(jt);
446
+ }_configAfterMerge(t){
447
+ return t.toggle=Boolean(t.toggle),t.parent=c(t.parent),t;
448
+ }_getDimension(){
449
+ return this._element.classList.contains('collapse-horizontal')?'width':'height';
450
+ }_initializeChildren(){
451
+ if(!this._config.parent){
452
+ return;
453
+ }const t=this._getFirstLevelChildren(Bt);for(const e of t){
454
+ const t=K.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t));
455
+ }
456
+ }_getFirstLevelChildren(t){
457
+ const e=K.find(Ht,this._config.parent);return K.find(t,this._config.parent).filter((t=>!e.includes(t)));
458
+ }_addAriaAndCollapsedClass(t,e){
459
+ if(t.length){
460
+ for(const i of t){
461
+ i.classList.toggle('collapsed',!e),i.setAttribute('aria-expanded',e);
462
+ }
463
+ }
464
+ }static jQueryInterface(t){
465
+ const e={};return'string'==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){
466
+ const i=Rt.getOrCreateInstance(this,e);if('string'==typeof t){
467
+ if(void 0===i[t]){
468
+ throw new TypeError(`No method named "${t}"`);
469
+ }i[t]();
470
+ }
471
+ }));
472
+ }
473
+ }j.on(document,Mt,Bt,(function(t){
474
+ ('A'===t.target.tagName||t.delegateTarget&&'A'===t.delegateTarget.tagName)&&t.preventDefault();for(const t of K.getMultipleElementsFromSelector(this)){
475
+ Rt.getOrCreateInstance(t,{ toggle:!1 }).toggle();
476
+ }
477
+ })),b(Rt);const Kt='dropdown',Vt='.bs.dropdown',Qt='.data-api',Xt='ArrowUp',Yt='ArrowDown',Ut=`hide${Vt}`,Gt=`hidden${Vt}`,Jt=`show${Vt}`,Zt=`shown${Vt}`,te=`click${Vt}${Qt}`,ee=`keydown${Vt}${Qt}`,ie=`keyup${Vt}${Qt}`,se='show',ne='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oe=`${ne}.${se}`,re='.dropdown-menu',ae=p()?'top-end':'top-start',le=p()?'top-start':'top-end',ce=p()?'bottom-end':'bottom-start',he=p()?'bottom-start':'bottom-end',de=p()?'left-start':'right-start',ue=p()?'right-start':'left-start',_e={ autoClose:!0,boundary:'clippingParents',display:'dynamic',offset:[0,2],popperConfig:null,reference:'toggle' },ge={ autoClose:'(boolean|string)',boundary:'(string|element)',display:'string',offset:'(array|string|function)',popperConfig:'(null|object|function)',reference:'(string|element|object)' };class fe extends W{
478
+ constructor(t,e){
479
+ super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=K.next(this._element,re)[0]||K.prev(this._element,re)[0]||K.findOne(re,this._parent),this._inNavbar=this._detectNavbar();
480
+ }static get Default(){
481
+ return _e;
482
+ }static get DefaultType(){
483
+ return ge;
484
+ }static get NAME(){
485
+ return Kt;
486
+ }toggle(){
487
+ return this._isShown()?this.hide():this.show();
488
+ }show(){
489
+ if(d(this._element)||this._isShown()){
490
+ return;
491
+ }const t={ relatedTarget:this._element };if(!j.trigger(this._element,Jt,t).defaultPrevented){
492
+ if(this._createPopper(),'ontouchstart'in document.documentElement&&!this._parent.closest('.navbar-nav')){
493
+ for(const t of[].concat(...document.body.children)){
494
+ j.on(t,'mouseover',_);
495
+ }
496
+ }this._element.focus(),this._element.setAttribute('aria-expanded',!0),this._menu.classList.add(se),this._element.classList.add(se),j.trigger(this._element,Zt,t);
497
+ }
498
+ }hide(){
499
+ if(d(this._element)||!this._isShown()){
500
+ return;
501
+ }const t={ relatedTarget:this._element };this._completeHide(t);
502
+ }dispose(){
503
+ this._popper&&this._popper.destroy(),super.dispose();
504
+ }update(){
505
+ this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update();
506
+ }_completeHide(t){
507
+ if(!j.trigger(this._element,Ut,t).defaultPrevented){
508
+ if('ontouchstart'in document.documentElement){
509
+ for(const t of[].concat(...document.body.children)){
510
+ j.off(t,'mouseover',_);
511
+ }
512
+ }this._popper&&this._popper.destroy(),this._menu.classList.remove(se),this._element.classList.remove(se),this._element.setAttribute('aria-expanded','false'),B.removeDataAttribute(this._menu,'popper'),j.trigger(this._element,Gt,t);
513
+ }
514
+ }_getConfig(t){
515
+ if('object'==typeof(t=super._getConfig(t)).reference&&!l(t.reference)&&'function'!=typeof t.reference.getBoundingClientRect){
516
+ throw new TypeError(`${Kt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);
517
+ }return t;
518
+ }_createPopper(){
519
+ if(void 0===i){
520
+ throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
521
+ }let t=this._element;'parent'===this._config.reference?t=this._parent:l(this._config.reference)?t=c(this._config.reference):'object'==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=i.createPopper(t,this._menu,e);
522
+ }_isShown(){
523
+ return this._menu.classList.contains(se);
524
+ }_getPlacement(){
525
+ const t=this._parent;if(t.classList.contains('dropend')){
526
+ return de;
527
+ }if(t.classList.contains('dropstart')){
528
+ return ue;
529
+ }if(t.classList.contains('dropup-center')){
530
+ return'top';
531
+ }if(t.classList.contains('dropdown-center')){
532
+ return'bottom';
533
+ }const e='end'===getComputedStyle(this._menu).getPropertyValue('--bs-position').trim();return t.classList.contains('dropup')?e?le:ae:e?he:ce;
534
+ }_detectNavbar(){
535
+ return null!==this._element.closest('.navbar');
536
+ }_getOffset(){
537
+ 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;
538
+ }_getPopperConfig(){
539
+ 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)&&(B.setDataAttribute(this._menu,'popper','static'),t.modifiers=[{ name:'applyStyles',enabled:!1 }]),{ ...t,...v(this._config.popperConfig,[t]) };
540
+ }_selectMenuItem({ key:t,target:e }){
541
+ const i=K.find('.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)',this._menu).filter((t=>h(t)));i.length&&w(i,e,t===Yt,!i.includes(e)).focus();
542
+ }static jQueryInterface(t){
543
+ return this.each((function(){
544
+ const e=fe.getOrCreateInstance(this,t);if('string'==typeof t){
545
+ if(void 0===e[t]){
546
+ throw new TypeError(`No method named "${t}"`);
547
+ }e[t]();
548
+ }
549
+ }));
550
+ }static clearMenus(t){
551
+ if(2===t.button||'keyup'===t.type&&'Tab'!==t.key){
552
+ return;
553
+ }const e=K.find(oe);for(const i of e){
554
+ const e=fe.getInstance(i);if(!e||!1===e._config.autoClose){
555
+ continue;
556
+ }const s=t.composedPath(),n=s.includes(e._menu);if(s.includes(e._element)||'inside'===e._config.autoClose&&!n||'outside'===e._config.autoClose&&n){
557
+ continue;
558
+ }if(e._menu.contains(t.target)&&('keyup'===t.type&&'Tab'===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))){
559
+ continue;
560
+ }const o={ relatedTarget:e._element };'click'===t.type&&(o.clickEvent=t),e._completeHide(o);
561
+ }
562
+ }static dataApiKeydownHandler(t){
563
+ const e=/input|textarea/i.test(t.target.tagName),i='Escape'===t.key,s=[Xt,Yt].includes(t.key);if(!s&&!i){
564
+ return;
565
+ }if(e&&!i){
566
+ return;
567
+ }t.preventDefault();const n=this.matches(ne)?this:K.prev(this,ne)[0]||K.next(this,ne)[0]||K.findOne(ne,t.delegateTarget.parentNode),o=fe.getOrCreateInstance(n);if(s){
568
+ return t.stopPropagation(),o.show(),void o._selectMenuItem(t);
569
+ }o._isShown()&&(t.stopPropagation(),o.hide(),n.focus());
570
+ }
571
+ }j.on(document,ee,ne,fe.dataApiKeydownHandler),j.on(document,ee,re,fe.dataApiKeydownHandler),j.on(document,te,fe.clearMenus),j.on(document,ie,fe.clearMenus),j.on(document,te,ne,(function(t){
572
+ t.preventDefault(),fe.getOrCreateInstance(this).toggle();
573
+ })),b(fe);const me='backdrop',pe='show',be=`mousedown.bs.${me}`,ve={ className:'modal-backdrop',clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:'body' },ye={ className:'string',clickCallback:'(function|null)',isAnimated:'boolean',isVisible:'boolean',rootElement:'(element|string)' };class we extends q{
574
+ constructor(t){
575
+ super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null;
576
+ }static get Default(){
577
+ return ve;
578
+ }static get DefaultType(){
579
+ return ye;
580
+ }static get NAME(){
581
+ return me;
582
+ }show(t){
583
+ if(!this._config.isVisible){
584
+ return void v(t);
585
+ }this._append();const e=this._getElement();this._config.isAnimated&&g(e),e.classList.add(pe),this._emulateAnimation((()=>{
586
+ v(t);
587
+ }));
588
+ }hide(t){
589
+ this._config.isVisible?(this._getElement().classList.remove(pe),this._emulateAnimation((()=>{
590
+ this.dispose(),v(t);
591
+ }))):v(t);
592
+ }dispose(){
593
+ this._isAppended&&(j.off(this._element,be),this._element.remove(),this._isAppended=!1);
594
+ }_getElement(){
595
+ if(!this._element){
596
+ const t=document.createElement('div');t.className=this._config.className,this._config.isAnimated&&t.classList.add('fade'),this._element=t;
597
+ }return this._element;
598
+ }_configAfterMerge(t){
599
+ return t.rootElement=c(t.rootElement),t;
600
+ }_append(){
601
+ if(this._isAppended){
602
+ return;
603
+ }const t=this._getElement();this._config.rootElement.append(t),j.on(t,be,(()=>{
604
+ v(this._config.clickCallback);
605
+ })),this._isAppended=!0;
606
+ }_emulateAnimation(t){
607
+ y(t,this._getElement(),this._config.isAnimated);
608
+ }
609
+ }const Ae='.bs.focustrap',Ee=`focusin${Ae}`,Ce=`keydown.tab${Ae}`,Te='backward',ke={ autofocus:!0,trapElement:null },$e={ autofocus:'boolean',trapElement:'element' };class Se extends q{
610
+ constructor(t){
611
+ super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null;
612
+ }static get Default(){
613
+ return ke;
614
+ }static get DefaultType(){
615
+ return $e;
616
+ }static get NAME(){
617
+ return'focustrap';
618
+ }activate(){
619
+ this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),j.off(document,Ae),j.on(document,Ee,(t=>this._handleFocusin(t))),j.on(document,Ce,(t=>this._handleKeydown(t))),this._isActive=!0);
620
+ }deactivate(){
621
+ this._isActive&&(this._isActive=!1,j.off(document,Ae));
622
+ }_handleFocusin(t){
623
+ const{ trapElement:e }=this._config;if(t.target===document||t.target===e||e.contains(t.target)){
624
+ return;
625
+ }const i=K.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Te?i[i.length-1].focus():i[0].focus();
626
+ }_handleKeydown(t){
627
+ 'Tab'===t.key&&(this._lastTabNavDirection=t.shiftKey?Te:'forward');
628
+ }
629
+ }const Le='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',Oe='.sticky-top',Ie='padding-right',De='margin-right';class Ne{
630
+ constructor(){
631
+ this._element=document.body;
632
+ }getWidth(){
633
+ const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t);
634
+ }hide(){
635
+ const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ie,(e=>e+t)),this._setElementAttributes(Le,Ie,(e=>e+t)),this._setElementAttributes(Oe,De,(e=>e-t));
636
+ }reset(){
637
+ this._resetElementAttributes(this._element,'overflow'),this._resetElementAttributes(this._element,Ie),this._resetElementAttributes(Le,Ie),this._resetElementAttributes(Oe,De);
638
+ }isOverflowing(){
639
+ return this.getWidth()>0;
640
+ }_disableOverFlow(){
641
+ this._saveInitialAttribute(this._element,'overflow'),this._element.style.overflow='hidden';
642
+ }_setElementAttributes(t,e,i){
643
+ const s=this.getWidth();this._applyManipulationCallback(t,(t=>{
644
+ if(t!==this._element&&window.innerWidth>t.clientWidth+s){
645
+ return;
646
+ }this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`);
647
+ }));
648
+ }_saveInitialAttribute(t,e){
649
+ const i=t.style.getPropertyValue(e);i&&B.setDataAttribute(t,e,i);
650
+ }_resetElementAttributes(t,e){
651
+ this._applyManipulationCallback(t,(t=>{
652
+ const i=B.getDataAttribute(t,e);null!==i?(B.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e);
653
+ }));
654
+ }_applyManipulationCallback(t,e){
655
+ if(l(t)){
656
+ e(t);
657
+ }else {
658
+ for(const i of K.find(t,this._element)){
659
+ e(i);
660
+ }
661
+ }
662
+ }
663
+ }const Pe='.bs.modal',xe=`hide${Pe}`,Me=`hidePrevented${Pe}`,je=`hidden${Pe}`,Fe=`show${Pe}`,ze=`shown${Pe}`,He=`resize${Pe}`,Be=`click.dismiss${Pe}`,qe=`mousedown.dismiss${Pe}`,We=`keydown.dismiss${Pe}`,Re=`click${Pe}.data-api`,Ke='modal-open',Ve='show',Qe='modal-static',Xe={ backdrop:!0,focus:!0,keyboard:!0 },Ye={ backdrop:'(boolean|string)',focus:'boolean',keyboard:'boolean' };class Ue extends W{
664
+ constructor(t,e){
665
+ super(t,e),this._dialog=K.findOne('.modal-dialog',this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ne,this._addEventListeners();
666
+ }static get Default(){
667
+ return Xe;
668
+ }static get DefaultType(){
669
+ return Ye;
670
+ }static get NAME(){
671
+ return'modal';
672
+ }toggle(t){
673
+ return this._isShown?this.hide():this.show(t);
674
+ }show(t){
675
+ this._isShown||this._isTransitioning||j.trigger(this._element,Fe,{ relatedTarget:t }).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ke),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))));
676
+ }hide(){
677
+ this._isShown&&!this._isTransitioning&&(j.trigger(this._element,xe).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ve),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())));
678
+ }dispose(){
679
+ j.off(window,Pe),j.off(this._dialog,Pe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();
680
+ }handleUpdate(){
681
+ this._adjustDialog();
682
+ }_initializeBackDrop(){
683
+ return new we({ isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated() });
684
+ }_initializeFocusTrap(){
685
+ return new Se({ trapElement:this._element });
686
+ }_showElement(t){
687
+ 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=K.findOne('.modal-body',this._dialog);e&&(e.scrollTop=0),g(this._element),this._element.classList.add(Ve),this._queueCallback((()=>{
688
+ this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,j.trigger(this._element,ze,{ relatedTarget:t });
689
+ }),this._dialog,this._isAnimated());
690
+ }_addEventListeners(){
691
+ j.on(this._element,We,(t=>{
692
+ 'Escape'===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition());
693
+ })),j.on(window,He,(()=>{
694
+ this._isShown&&!this._isTransitioning&&this._adjustDialog();
695
+ })),j.on(this._element,qe,(t=>{
696
+ j.one(this._element,Be,(e=>{
697
+ this._element===t.target&&this._element===e.target&&('static'!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition());
698
+ }));
699
+ }));
700
+ }_hideModal(){
701
+ 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((()=>{
702
+ document.body.classList.remove(Ke),this._resetAdjustments(),this._scrollBar.reset(),j.trigger(this._element,je);
703
+ }));
704
+ }_isAnimated(){
705
+ return this._element.classList.contains('fade');
706
+ }_triggerBackdropTransition(){
707
+ if(j.trigger(this._element,Me).defaultPrevented){
708
+ return;
709
+ }const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;'hidden'===e||this._element.classList.contains(Qe)||(t||(this._element.style.overflowY='hidden'),this._element.classList.add(Qe),this._queueCallback((()=>{
710
+ this._element.classList.remove(Qe),this._queueCallback((()=>{
711
+ this._element.style.overflowY=e;
712
+ }),this._dialog);
713
+ }),this._dialog),this._element.focus());
714
+ }_adjustDialog(){
715
+ const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){
716
+ const t=p()?'paddingLeft':'paddingRight';this._element.style[t]=`${e}px`;
717
+ }if(!i&&t){
718
+ const t=p()?'paddingRight':'paddingLeft';this._element.style[t]=`${e}px`;
719
+ }
720
+ }_resetAdjustments(){
721
+ this._element.style.paddingLeft='',this._element.style.paddingRight='';
722
+ }static jQueryInterface(t,e){
723
+ return this.each((function(){
724
+ const i=Ue.getOrCreateInstance(this,t);if('string'==typeof t){
725
+ if(void 0===i[t]){
726
+ throw new TypeError(`No method named "${t}"`);
727
+ }i[t](e);
728
+ }
729
+ }));
730
+ }
731
+ }j.on(document,Re,'[data-bs-toggle="modal"]',(function(t){
732
+ const e=K.getElementFromSelector(this);['A','AREA'].includes(this.tagName)&&t.preventDefault(),j.one(e,Fe,(t=>{
733
+ t.defaultPrevented||j.one(e,je,(()=>{
734
+ h(this)&&this.focus();
735
+ }));
736
+ }));const i=K.findOne('.modal.show');i&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(e).toggle(this);
737
+ })),V(Ue),b(Ue);const Ge='.bs.offcanvas',Je='.data-api',Ze=`load${Ge}${Je}`,ti='show',ei='showing',ii='hiding',si='.offcanvas.show',ni=`show${Ge}`,oi=`shown${Ge}`,ri=`hide${Ge}`,ai=`hidePrevented${Ge}`,li=`hidden${Ge}`,ci=`resize${Ge}`,hi=`click${Ge}${Je}`,di=`keydown.dismiss${Ge}`,ui={ backdrop:!0,keyboard:!0,scroll:!1 },_i={ backdrop:'(boolean|string)',keyboard:'boolean',scroll:'boolean' };class gi extends W{
738
+ constructor(t,e){
739
+ super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners();
740
+ }static get Default(){
741
+ return ui;
742
+ }static get DefaultType(){
743
+ return _i;
744
+ }static get NAME(){
745
+ return'offcanvas';
746
+ }toggle(t){
747
+ return this._isShown?this.hide():this.show(t);
748
+ }show(t){
749
+ this._isShown||j.trigger(this._element,ni,{ relatedTarget:t }).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ne).hide(),this._element.setAttribute('aria-modal',!0),this._element.setAttribute('role','dialog'),this._element.classList.add(ei),this._queueCallback((()=>{
750
+ this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ti),this._element.classList.remove(ei),j.trigger(this._element,oi,{ relatedTarget:t });
751
+ }),this._element,!0));
752
+ }hide(){
753
+ this._isShown&&(j.trigger(this._element,ri).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ii),this._backdrop.hide(),this._queueCallback((()=>{
754
+ this._element.classList.remove(ti,ii),this._element.removeAttribute('aria-modal'),this._element.removeAttribute('role'),this._config.scroll||(new Ne).reset(),j.trigger(this._element,li);
755
+ }),this._element,!0)));
756
+ }dispose(){
757
+ this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();
758
+ }_initializeBackDrop(){
759
+ const t=Boolean(this._config.backdrop);return new we({ className:'offcanvas-backdrop',isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{
760
+ 'static'!==this._config.backdrop?this.hide():j.trigger(this._element,ai);
761
+ }:null });
762
+ }_initializeFocusTrap(){
763
+ return new Se({ trapElement:this._element });
764
+ }_addEventListeners(){
765
+ j.on(this._element,di,(t=>{
766
+ 'Escape'===t.key&&(this._config.keyboard?this.hide():j.trigger(this._element,ai));
767
+ }));
768
+ }static jQueryInterface(t){
769
+ return this.each((function(){
770
+ const e=gi.getOrCreateInstance(this,t);if('string'==typeof t){
771
+ if(void 0===e[t]||t.startsWith('_')||'constructor'===t){
772
+ throw new TypeError(`No method named "${t}"`);
773
+ }e[t](this);
774
+ }
775
+ }));
776
+ }
777
+ }j.on(document,hi,'[data-bs-toggle="offcanvas"]',(function(t){
778
+ const e=K.getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)&&t.preventDefault(),d(this)){
779
+ return;
780
+ }j.one(e,li,(()=>{
781
+ h(this)&&this.focus();
782
+ }));const i=K.findOne(si);i&&i!==e&&gi.getInstance(i).hide(),gi.getOrCreateInstance(e).toggle(this);
783
+ })),j.on(window,Ze,(()=>{
784
+ for(const t of K.find(si)){
785
+ gi.getOrCreateInstance(t).show();
786
+ }
787
+ })),j.on(window,ci,(()=>{
788
+ for(const t of K.find('[aria-modal][class*=show][class*=offcanvas-]')){
789
+ 'fixed'!==getComputedStyle(t).position&&gi.getOrCreateInstance(t).hide();
790
+ }
791
+ })),V(gi),b(gi);const fi={ '*':['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:[] },mi=new Set(['background','cite','href','itemtype','longdesc','poster','src','xlink:href']),pi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,bi=(t,e)=>{
792
+ const i=t.nodeName.toLowerCase();return e.includes(i)?!mi.has(i)||Boolean(pi.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)));
793
+ },vi={ allowList:fi,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' },wi={ entry:'(string|element|function|null)',selector:'(string|element)' };class Ai extends q{
794
+ constructor(t){
795
+ super(),this._config=this._getConfig(t);
796
+ }static get Default(){
797
+ return vi;
798
+ }static get DefaultType(){
799
+ return yi;
800
+ }static get NAME(){
801
+ return'TemplateFactory';
802
+ }getContent(){
803
+ return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean);
804
+ }hasContent(){
805
+ return this.getContent().length>0;
806
+ }changeContent(t){
807
+ return this._checkContent(t),this._config.content={ ...this._config.content,...t },this;
808
+ }toHtml(){
809
+ const t=document.createElement('div');t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content)){
810
+ this._setContent(t,i,e);
811
+ }const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(' ')),e;
812
+ }_typeCheckConfig(t){
813
+ super._typeCheckConfig(t),this._checkContent(t.content);
814
+ }_checkContent(t){
815
+ for(const[e,i]of Object.entries(t)){
816
+ super._typeCheckConfig({ selector:e,entry:i },wi);
817
+ }
818
+ }_setContent(t,e,i){
819
+ const s=K.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?l(e)?this._putElementInTemplate(c(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.remove());
820
+ }_maybeSanitize(t){
821
+ return this._config.sanitize?function(t,e,i){
822
+ if(!t.length){
823
+ return t;
824
+ }if(i&&'function'==typeof i){
825
+ return i(t);
826
+ }const s=(new window.DOMParser).parseFromString(t,'text/html'),n=[].concat(...s.body.querySelectorAll('*'));for(const t of n){
827
+ const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){
828
+ t.remove();continue;
829
+ }const s=[].concat(...t.attributes),n=[].concat(e['*']||[],e[i]||[]);for(const e of s){
830
+ bi(e,n)||t.removeAttribute(e.nodeName);
831
+ }
832
+ }return s.body.innerHTML;
833
+ }(t,this._config.allowList,this._config.sanitizeFn):t;
834
+ }_resolvePossibleFunction(t){
835
+ return v(t,[this]);
836
+ }_putElementInTemplate(t,e){
837
+ if(this._config.html){
838
+ return e.innerHTML='',void e.append(t);
839
+ }e.textContent=t.textContent;
840
+ }
841
+ }const Ei=new Set(['sanitize','allowList','sanitizeFn']),Ci='fade',Ti='show',ki='.modal',$i='hide.bs.modal',Si='hover',Li='focus',Oi={ AUTO:'auto',TOP:'top',RIGHT:p()?'left':'right',BOTTOM:'bottom',LEFT:p()?'right':'left' },Ii={ allowList:fi,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' },Di={ 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 Ni extends W{
842
+ constructor(t,e){
843
+ if(void 0===i){
844
+ throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
845
+ }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();
846
+ }static get Default(){
847
+ return Ii;
848
+ }static get DefaultType(){
849
+ return Di;
850
+ }static get NAME(){
851
+ return'tooltip';
852
+ }enable(){
853
+ this._isEnabled=!0;
854
+ }disable(){
855
+ this._isEnabled=!1;
856
+ }toggleEnabled(){
857
+ this._isEnabled=!this._isEnabled;
858
+ }toggle(){
859
+ this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter());
860
+ }dispose(){
861
+ clearTimeout(this._timeout),j.off(this._element.closest(ki),$i,this._hideModalHandler),this._element.getAttribute('data-bs-original-title')&&this._element.setAttribute('title',this._element.getAttribute('data-bs-original-title')),this._disposePopper(),super.dispose();
862
+ }show(){
863
+ if('none'===this._element.style.display){
864
+ throw new Error('Please use show on visible elements');
865
+ }if(!this._isWithContent()||!this._isEnabled){
866
+ return;
867
+ }const t=j.trigger(this._element,this.constructor.eventName('show')),e=(u(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e){
868
+ return;
869
+ }this._disposePopper();const i=this._getTipElement();this._element.setAttribute('aria-describedby',i.getAttribute('id'));const{ container:s }=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),j.trigger(this._element,this.constructor.eventName('inserted'))),this._popper=this._createPopper(i),i.classList.add(Ti),'ontouchstart'in document.documentElement){
870
+ for(const t of[].concat(...document.body.children)){
871
+ j.on(t,'mouseover',_);
872
+ }
873
+ }this._queueCallback((()=>{
874
+ j.trigger(this._element,this.constructor.eventName('shown')),!1===this._isHovered&&this._leave(),this._isHovered=!1;
875
+ }),this.tip,this._isAnimated());
876
+ }hide(){
877
+ if(this._isShown()&&!j.trigger(this._element,this.constructor.eventName('hide')).defaultPrevented){
878
+ if(this._getTipElement().classList.remove(Ti),'ontouchstart'in document.documentElement){
879
+ for(const t of[].concat(...document.body.children)){
880
+ j.off(t,'mouseover',_);
881
+ }
882
+ }this._activeTrigger.click=!1,this._activeTrigger[Li]=!1,this._activeTrigger[Si]=!1,this._isHovered=null,this._queueCallback((()=>{
883
+ this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute('aria-describedby'),j.trigger(this._element,this.constructor.eventName('hidden')));
884
+ }),this.tip,this._isAnimated());
885
+ }
886
+ }update(){
887
+ this._popper&&this._popper.update();
888
+ }_isWithContent(){
889
+ return Boolean(this._getTitle());
890
+ }_getTipElement(){
891
+ return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip;
892
+ }_createTipElement(t){
893
+ const e=this._getTemplateFactory(t).toHtml();if(!e){
894
+ return null;
895
+ }e.classList.remove(Ci,Ti),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{
896
+ do{
897
+ t+=Math.floor(1e6*Math.random());
898
+ }while(document.getElementById(t));return t;
899
+ })(this.constructor.NAME).toString();return e.setAttribute('id',i),this._isAnimated()&&e.classList.add(Ci),e;
900
+ }setContent(t){
901
+ this._newContent=t,this._isShown()&&(this._disposePopper(),this.show());
902
+ }_getTemplateFactory(t){
903
+ return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ai({ ...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass) }),this._templateFactory;
904
+ }_getContentForTemplate(){
905
+ return{ '.tooltip-inner':this._getTitle() };
906
+ }_getTitle(){
907
+ return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute('data-bs-original-title');
908
+ }_initializeOnDelegatedTarget(t){
909
+ return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig());
910
+ }_isAnimated(){
911
+ return this._config.animation||this.tip&&this.tip.classList.contains(Ci);
912
+ }_isShown(){
913
+ return this.tip&&this.tip.classList.contains(Ti);
914
+ }_createPopper(t){
915
+ const e=v(this._config.placement,[this,t,this._element]),s=Oi[e.toUpperCase()];return i.createPopper(this._element,t,this._getPopperConfig(s));
916
+ }_getOffset(){
917
+ 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;
918
+ }_resolvePossibleFunction(t){
919
+ return v(t,[this._element]);
920
+ }_getPopperConfig(t){
921
+ 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=>{
922
+ this._getTipElement().setAttribute('data-popper-placement',t.state.placement);
923
+ } }] };return{ ...e,...v(this._config.popperConfig,[e]) };
924
+ }_setListeners(){
925
+ const t=this._config.trigger.split(' ');for(const e of t){
926
+ if('click'===e){
927
+ j.on(this._element,this.constructor.eventName('click'),this._config.selector,(t=>{
928
+ this._initializeOnDelegatedTarget(t).toggle();
929
+ }));
930
+ }else if('manual'!==e){
931
+ const t=e===Si?this.constructor.eventName('mouseenter'):this.constructor.eventName('focusin'),i=e===Si?this.constructor.eventName('mouseleave'):this.constructor.eventName('focusout');j.on(this._element,t,this._config.selector,(t=>{
932
+ const e=this._initializeOnDelegatedTarget(t);e._activeTrigger['focusin'===t.type?Li:Si]=!0,e._enter();
933
+ })),j.on(this._element,i,this._config.selector,(t=>{
934
+ const e=this._initializeOnDelegatedTarget(t);e._activeTrigger['focusout'===t.type?Li:Si]=e._element.contains(t.relatedTarget),e._leave();
935
+ }));
936
+ }
937
+ }this._hideModalHandler=()=>{
938
+ this._element&&this.hide();
939
+ },j.on(this._element.closest(ki),$i,this._hideModalHandler);
940
+ }_fixTitle(){
941
+ 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'));
942
+ }_enter(){
943
+ this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{
944
+ this._isHovered&&this.show();
945
+ }),this._config.delay.show));
946
+ }_leave(){
947
+ this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{
948
+ this._isHovered||this.hide();
949
+ }),this._config.delay.hide));
950
+ }_setTimeout(t,e){
951
+ clearTimeout(this._timeout),this._timeout=setTimeout(t,e);
952
+ }_isWithActiveTrigger(){
953
+ return Object.values(this._activeTrigger).includes(!0);
954
+ }_getConfig(t){
955
+ const e=B.getDataAttributes(this._element);for(const t of Object.keys(e)){
956
+ Ei.has(t)&&delete e[t];
957
+ }return t={ ...e,...'object'==typeof t&&t?t:{} },t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t;
958
+ }_configAfterMerge(t){
959
+ return t.container=!1===t.container?document.body:c(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;
960
+ }_getDelegateConfig(){
961
+ const t={};for(const[e,i]of Object.entries(this._config)){
962
+ this.constructor.Default[e]!==i&&(t[e]=i);
963
+ }return t.selector=!1,t.trigger='manual',t;
964
+ }_disposePopper(){
965
+ this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null);
966
+ }static jQueryInterface(t){
967
+ return this.each((function(){
968
+ const e=Ni.getOrCreateInstance(this,t);if('string'==typeof t){
969
+ if(void 0===e[t]){
970
+ throw new TypeError(`No method named "${t}"`);
971
+ }e[t]();
972
+ }
973
+ }));
974
+ }
975
+ }b(Ni);const Pi={ ...Ni.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' },xi={ ...Ni.DefaultType,content:'(null|string|element|function)' };class Mi extends Ni{
976
+ static get Default(){
977
+ return Pi;
978
+ }static get DefaultType(){
979
+ return xi;
980
+ }static get NAME(){
981
+ return'popover';
982
+ }_isWithContent(){
983
+ return this._getTitle()||this._getContent();
984
+ }_getContentForTemplate(){
985
+ return{ '.popover-header':this._getTitle(),'.popover-body':this._getContent() };
986
+ }_getContent(){
987
+ return this._resolvePossibleFunction(this._config.content);
988
+ }static jQueryInterface(t){
989
+ return this.each((function(){
990
+ const e=Mi.getOrCreateInstance(this,t);if('string'==typeof t){
991
+ if(void 0===e[t]){
992
+ throw new TypeError(`No method named "${t}"`);
993
+ }e[t]();
994
+ }
995
+ }));
996
+ }
997
+ }b(Mi);const ji='.bs.scrollspy',Fi=`activate${ji}`,zi=`click${ji}`,Hi=`load${ji}.data-api`,Bi='active',qi='[href]',Wi='.nav-link',Ri=`${Wi}, .nav-item > ${Wi}, .list-group-item`,Ki={ offset:null,rootMargin:'0px 0px -25%',smoothScroll:!1,target:null,threshold:[.1,.5,1] },Vi={ offset:'(number|null)',rootMargin:'string',smoothScroll:'boolean',target:'element',threshold:'array' };class Qi extends W{
998
+ constructor(t,e){
999
+ 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();
1000
+ }static get Default(){
1001
+ return Ki;
1002
+ }static get DefaultType(){
1003
+ return Vi;
1004
+ }static get NAME(){
1005
+ return'scrollspy';
1006
+ }refresh(){
1007
+ this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values()){
1008
+ this._observer.observe(t);
1009
+ }
1010
+ }dispose(){
1011
+ this._observer.disconnect(),super.dispose();
1012
+ }_configAfterMerge(t){
1013
+ return t.target=c(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;
1014
+ }_maybeEnableSmoothScroll(){
1015
+ this._config.smoothScroll&&(j.off(this._config.target,zi),j.on(this._config.target,zi,qi,(t=>{
1016
+ const e=this._observableSections.get(t.target.hash);if(e){
1017
+ t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){
1018
+ return void i.scrollTo({ top:s,behavior:'smooth' });
1019
+ }i.scrollTop=s;
1020
+ }
1021
+ })));
1022
+ }_getNewObserver(){
1023
+ const t={ root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin };return new IntersectionObserver((t=>this._observerCallback(t)),t);
1024
+ }_observerCallback(t){
1025
+ const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{
1026
+ this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t));
1027
+ },s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){
1028
+ if(!o.isIntersecting){
1029
+ this._activeTarget=null,this._clearActiveClass(e(o));continue;
1030
+ }const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){
1031
+ if(i(o),!s){
1032
+ return;
1033
+ }
1034
+ }else {
1035
+ n||t||i(o);
1036
+ }
1037
+ }
1038
+ }_initializeTargetsAndObservables(){
1039
+ this._targetLinks=new Map,this._observableSections=new Map;const t=K.find(qi,this._config.target);for(const e of t){
1040
+ if(!e.hash||d(e)){
1041
+ continue;
1042
+ }const t=K.findOne(decodeURI(e.hash),this._element);h(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t));
1043
+ }
1044
+ }_process(t){
1045
+ this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Bi),this._activateParents(t),j.trigger(this._element,Fi,{ relatedTarget:t }));
1046
+ }_activateParents(t){
1047
+ if(t.classList.contains('dropdown-item')){
1048
+ K.findOne('.dropdown-toggle',t.closest('.dropdown')).classList.add(Bi);
1049
+ }else {
1050
+ for(const e of K.parents(t,'.nav, .list-group')){
1051
+ for(const t of K.prev(e,Ri)){
1052
+ t.classList.add(Bi);
1053
+ }
1054
+ }
1055
+ }
1056
+ }_clearActiveClass(t){
1057
+ t.classList.remove(Bi);const e=K.find(`${qi}.${Bi}`,t);for(const t of e){
1058
+ t.classList.remove(Bi);
1059
+ }
1060
+ }static jQueryInterface(t){
1061
+ return this.each((function(){
1062
+ const e=Qi.getOrCreateInstance(this,t);if('string'==typeof t){
1063
+ if(void 0===e[t]||t.startsWith('_')||'constructor'===t){
1064
+ throw new TypeError(`No method named "${t}"`);
1065
+ }e[t]();
1066
+ }
1067
+ }));
1068
+ }
1069
+ }j.on(window,Hi,(()=>{
1070
+ for(const t of K.find('[data-bs-spy="scroll"]')){
1071
+ Qi.getOrCreateInstance(t);
1072
+ }
1073
+ })),b(Qi);const Xi='.bs.tab',Yi=`hide${Xi}`,Ui=`hidden${Xi}`,Gi=`show${Xi}`,Ji=`shown${Xi}`,Zi=`click${Xi}`,ts=`keydown${Xi}`,es=`load${Xi}`,is='ArrowLeft',ss='ArrowRight',ns='ArrowUp',os='ArrowDown',rs='Home',as='End',ls='active',cs='fade',hs='show',ds='.dropdown-toggle',us=`:not(${ds})`,_s='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gs=`.nav-link${us}, .list-group-item${us}, [role="tab"]${us}, ${_s}`,fs=`.${ls}[data-bs-toggle="tab"], .${ls}[data-bs-toggle="pill"], .${ls}[data-bs-toggle="list"]`;class ms extends W{
1074
+ constructor(t){
1075
+ super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),j.on(this._element,ts,(t=>this._keydown(t))));
1076
+ }static get NAME(){
1077
+ return'tab';
1078
+ }show(){
1079
+ const t=this._element;if(this._elemIsActive(t)){
1080
+ return;
1081
+ }const e=this._getActiveElem(),i=e?j.trigger(e,Yi,{ relatedTarget:t }):null;j.trigger(t,Gi,{ relatedTarget:e }).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e));
1082
+ }_activate(t,e){
1083
+ t&&(t.classList.add(ls),this._activate(K.getElementFromSelector(t)),this._queueCallback((()=>{
1084
+ 'tab'===t.getAttribute('role')?(t.removeAttribute('tabindex'),t.setAttribute('aria-selected',!0),this._toggleDropDown(t,!0),j.trigger(t,Ji,{ relatedTarget:e })):t.classList.add(hs);
1085
+ }),t,t.classList.contains(cs)));
1086
+ }_deactivate(t,e){
1087
+ t&&(t.classList.remove(ls),t.blur(),this._deactivate(K.getElementFromSelector(t)),this._queueCallback((()=>{
1088
+ 'tab'===t.getAttribute('role')?(t.setAttribute('aria-selected',!1),t.setAttribute('tabindex','-1'),this._toggleDropDown(t,!1),j.trigger(t,Ui,{ relatedTarget:e })):t.classList.remove(hs);
1089
+ }),t,t.classList.contains(cs)));
1090
+ }_keydown(t){
1091
+ if(![is,ss,ns,os,rs,as].includes(t.key)){
1092
+ return;
1093
+ }t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!d(t)));let i;if([rs,as].includes(t.key)){
1094
+ i=e[t.key===rs?0:e.length-1];
1095
+ }else{
1096
+ const s=[ss,os].includes(t.key);i=w(e,t.target,s,!0);
1097
+ }i&&(i.focus({ preventScroll:!0 }),ms.getOrCreateInstance(i).show());
1098
+ }_getChildren(){
1099
+ return K.find(gs,this._parent);
1100
+ }_getActiveElem(){
1101
+ return this._getChildren().find((t=>this._elemIsActive(t)))||null;
1102
+ }_setInitialAttributes(t,e){
1103
+ this._setAttributeIfNotExists(t,'role','tablist');for(const t of e){
1104
+ this._setInitialAttributesOnChild(t);
1105
+ }
1106
+ }_setInitialAttributesOnChild(t){
1107
+ 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);
1108
+ }_setInitialAttributesOnTargetPanel(t){
1109
+ const e=K.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,'role','tabpanel'),t.id&&this._setAttributeIfNotExists(e,'aria-labelledby',`${t.id}`));
1110
+ }_toggleDropDown(t,e){
1111
+ const i=this._getOuterElement(t);if(!i.classList.contains('dropdown')){
1112
+ return;
1113
+ }const s=(t,s)=>{
1114
+ const n=K.findOne(t,i);n&&n.classList.toggle(s,e);
1115
+ };s(ds,ls),s('.dropdown-menu',hs),i.setAttribute('aria-expanded',e);
1116
+ }_setAttributeIfNotExists(t,e,i){
1117
+ t.hasAttribute(e)||t.setAttribute(e,i);
1118
+ }_elemIsActive(t){
1119
+ return t.classList.contains(ls);
1120
+ }_getInnerElement(t){
1121
+ return t.matches(gs)?t:K.findOne(gs,t);
1122
+ }_getOuterElement(t){
1123
+ return t.closest('.nav-item, .list-group-item')||t;
1124
+ }static jQueryInterface(t){
1125
+ return this.each((function(){
1126
+ const e=ms.getOrCreateInstance(this);if('string'==typeof t){
1127
+ if(void 0===e[t]||t.startsWith('_')||'constructor'===t){
1128
+ throw new TypeError(`No method named "${t}"`);
1129
+ }e[t]();
1130
+ }
1131
+ }));
1132
+ }
1133
+ }j.on(document,Zi,_s,(function(t){
1134
+ ['A','AREA'].includes(this.tagName)&&t.preventDefault(),d(this)||ms.getOrCreateInstance(this).show();
1135
+ })),j.on(window,es,(()=>{
1136
+ for(const t of K.find(fs)){
1137
+ ms.getOrCreateInstance(t);
1138
+ }
1139
+ })),b(ms);const ps='.bs.toast',bs=`mouseover${ps}`,vs=`mouseout${ps}`,ys=`focusin${ps}`,ws=`focusout${ps}`,As=`hide${ps}`,Es=`hidden${ps}`,Cs=`show${ps}`,Ts=`shown${ps}`,ks='hide',$s='show',Ss='showing',Ls={ animation:'boolean',autohide:'boolean',delay:'number' },Os={ animation:!0,autohide:!0,delay:5e3 };class Is extends W{
1140
+ constructor(t,e){
1141
+ super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners();
1142
+ }static get Default(){
1143
+ return Os;
1144
+ }static get DefaultType(){
1145
+ return Ls;
1146
+ }static get NAME(){
1147
+ return'toast';
1148
+ }show(){
1149
+ j.trigger(this._element,Cs).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add('fade'),this._element.classList.remove(ks),g(this._element),this._element.classList.add($s,Ss),this._queueCallback((()=>{
1150
+ this._element.classList.remove(Ss),j.trigger(this._element,Ts),this._maybeScheduleHide();
1151
+ }),this._element,this._config.animation));
1152
+ }hide(){
1153
+ this.isShown()&&(j.trigger(this._element,As).defaultPrevented||(this._element.classList.add(Ss),this._queueCallback((()=>{
1154
+ this._element.classList.add(ks),this._element.classList.remove(Ss,$s),j.trigger(this._element,Es);
1155
+ }),this._element,this._config.animation)));
1156
+ }dispose(){
1157
+ this._clearTimeout(),this.isShown()&&this._element.classList.remove($s),super.dispose();
1158
+ }isShown(){
1159
+ return this._element.classList.contains($s);
1160
+ }_maybeScheduleHide(){
1161
+ this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{
1162
+ this.hide();
1163
+ }),this._config.delay)));
1164
+ }_onInteraction(t,e){
1165
+ switch(t.type){
1166
+ case'mouseover':case'mouseout':this._hasMouseInteraction=e;break;case'focusin':case'focusout':this._hasKeyboardInteraction=e;
1167
+ }if(e){
1168
+ return void this._clearTimeout();
1169
+ }const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide();
1170
+ }_setListeners(){
1171
+ j.on(this._element,bs,(t=>this._onInteraction(t,!0))),j.on(this._element,vs,(t=>this._onInteraction(t,!1))),j.on(this._element,ys,(t=>this._onInteraction(t,!0))),j.on(this._element,ws,(t=>this._onInteraction(t,!1)));
1172
+ }_clearTimeout(){
1173
+ clearTimeout(this._timeout),this._timeout=null;
1174
+ }static jQueryInterface(t){
1175
+ return this.each((function(){
1176
+ const e=Is.getOrCreateInstance(this,t);if('string'==typeof t){
1177
+ if(void 0===e[t]){
1178
+ throw new TypeError(`No method named "${t}"`);
1179
+ }e[t](this);
1180
+ }
1181
+ }));
1182
+ }
1183
+ }return V(Is),b(Is),{ Alert:U,Button:J,Carousel:Ot,Collapse:Rt,Dropdown:fe,Modal:Ue,Offcanvas:gi,Popover:Mi,ScrollSpy:Qi,Tab:ms,Toast:Is,Tooltip:Ni };
1184
+ }));
7
1185
  //# sourceMappingURL=bootstrap.min.js.map