@contributte/datagrid 0.0.0-20260106-7d36e11 → 0.0.0-20260107-f4445c3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/datagrid-full.ts
CHANGED
package/dist/datagrid-full.js
CHANGED
|
@@ -16,5 +16,5 @@ const t=t=>{"loading"===document.readyState?document.addEventListener("DOMConten
|
|
|
16
16
|
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
17
17
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
18
18
|
*/
|
|
19
|
-
const Go=new Map,Jo={set(t,e,i){Go.has(t)||Go.set(t,new Map);const n=Go.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)=>Go.has(t)&&Go.get(t).get(e)||null,remove(t,e){if(!Go.has(t))return;const i=Go.get(t);i.delete(e),0===i.size&&Go.delete(t)}},Zo="transitionend",ta=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),ea=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),ia=t=>{t.dispatchEvent(new Event(Zo))},na=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),ra=t=>na(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(ta(t)):null,sa=t=>{if(!na(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},oa=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),aa=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?aa(t.parentNode):null},la=()=>{},ca=t=>{t.offsetHeight},da=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ua=[],ha=()=>"rtl"===document.documentElement.dir,pa=t=>{var e;e=()=>{const $=da();if($){const e=t.NAME,i=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=i,t.jQueryInterface)}},"loading"===document.readyState?(ua.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of ua)t()}),ua.push(e)):e()},fa=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,ga=(t,e,i=!0)=>{if(!i)return void fa(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const s=({target:i})=>{i===e&&(r=!0,e.removeEventListener(Zo,s),fa(t))};e.addEventListener(Zo,s),setTimeout(()=>{r||ia(e)},n)},ma=(t,e,i,n)=>{const r=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[r-1]:t[0]:(s+=i?1:-1,n&&(s=(s+r)%r),t[Math.max(0,Math.min(s,r-1))])},va=/[^.]*(?=\..*)\.|.*/,ba=/\..*/,ya=/::\d+$/,_a={};let wa=1;const Ea={mouseenter:"mouseover",mouseleave:"mouseout"},Aa=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 Sa(t,e){return e&&`${e}::${wa++}`||t.uidEvent||wa++}function ka(t){const e=Sa(t);return t.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function Ca(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function Oa(t,e,i){const n="string"==typeof e,r=n?i:e||i;let s=La(t);return Aa.has(s)||(s=t),[n,r,s]}function Da(t,e,i,n,r){if("string"!=typeof e||!t)return;let[s,o,a]=Oa(e,i,n);if(e in Ea){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};o=t(o)}const l=ka(t),c=l[a]||(l[a]={}),d=Ca(c,o,s?i:null);if(d)return void(d.oneOff=d.oneOff&&r);const u=Sa(o,e.replace(va,"")),h=s?function(t,e,i){return function n(r){const s=t.querySelectorAll(e);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return Ma(r,{delegateTarget:o}),n.oneOff&&Ia.off(t,r.type,e,i),i.apply(o,[r])}}(t,i,o):function(t,e){return function i(n){return Ma(n,{delegateTarget:t}),i.oneOff&&Ia.off(t,n.type,e),e.apply(t,[n])}}(t,o);h.delegationSelector=s?i:null,h.callable=o,h.oneOff=r,h.uidEvent=u,c[u]=h,t.addEventListener(a,h,s)}function xa(t,e,i,n,r){const s=Ca(e[i],n,r);s&&(t.removeEventListener(i,s,Boolean(r)),delete e[i][s.uidEvent])}function Ta(t,e,i,n){const r=e[i]||{};for(const[s,o]of Object.entries(r))s.includes(n)&&xa(t,e,i,o.callable,o.delegationSelector)}function La(t){return t=t.replace(ba,""),Ea[t]||t}const Ia={on(t,e,i,n){Da(t,e,i,n,!1)},one(t,e,i,n){Da(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[r,s,o]=Oa(e,i,n),a=o!==e,l=ka(t),c=l[o]||{},d=e.startsWith(".");if(void 0===s){if(d)for(const i of Object.keys(l))Ta(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const r=i.replace(ya,"");a&&!e.includes(r)||xa(t,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;xa(t,l,o,s,r?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const $=da();let n=null,r=!0,s=!0,o=!1;e!==La(e)&&$&&(n=$.Event(e,i),$(t).trigger(n),r=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),o=n.isDefaultPrevented());const a=Ma(new Event(e,{bubbles:r,cancelable:!0}),i);return o&&a.preventDefault(),s&&t.dispatchEvent(a),a.defaultPrevented&&n&&n.preventDefault(),a}};function Ma(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function Fa(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 Na(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ja={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${Na(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Na(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=Fa(t.dataset[n])}return e},getDataAttribute:(t,e)=>Fa(t.getAttribute(`data-bs-${Na(e)}`))};class Pa{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=na(e)?ja.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...na(e)?ja.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i],r=na(e)?"element":ea(e);if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}}class $a extends Pa{constructor(t,e){super(),(t=ra(t))&&(this._element=t,this._config=this._getConfig(e),Jo.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Jo.remove(this._element,this.constructor.DATA_KEY),Ia.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){ga(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Jo.get(ra(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.8"}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 Ha=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>ta(t)).join(","):null},qa={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!oa(t)&&sa(t))},getSelectorFromElement(t){const e=Ha(t);return e&&qa.findOne(e)?e:null},getElementFromSelector(t){const e=Ha(t);return e?qa.findOne(e):null},getMultipleElementsFromSelector(t){const e=Ha(t);return e?qa.find(e):[]}},Ra=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ia.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oa(this))return;const r=qa.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()})},Ba=".bs.alert",Va=`close${Ba}`,za=`closed${Ba}`;class Wa extends $a{static get NAME(){return"alert"}close(){if(Ia.trigger(this._element,Va).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(),Ia.trigger(this._element,za),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Wa.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)}})}}Ra(Wa,"close"),pa(Wa);const Ya='[data-bs-toggle="button"]';class Ka extends $a{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=Ka.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}Ia.on(document,"click.bs.button.data-api",Ya,t=>{t.preventDefault();const e=t.target.closest(Ya);Ka.getOrCreateInstance(e).toggle()}),pa(Ka);const Ua=".bs.swipe",Xa=`touchstart${Ua}`,Qa=`touchmove${Ua}`,Ga=`touchend${Ua}`,Ja=`pointerdown${Ua}`,Za=`pointerup${Ua}`,tl={endCallback:null,leftCallback:null,rightCallback:null},el={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class il extends Pa{constructor(t,e){super(),this._element=t,t&&il.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return tl}static get DefaultType(){return el}static get NAME(){return"swipe"}dispose(){Ia.off(this._element,Ua)}_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(),fa(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&&fa(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ia.on(this._element,Ja,t=>this._start(t)),Ia.on(this._element,Za,t=>this._end(t)),this._element.classList.add("pointer-event")):(Ia.on(this._element,Xa,t=>this._start(t)),Ia.on(this._element,Qa,t=>this._move(t)),Ia.on(this._element,Ga,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 nl=".bs.carousel",rl=".data-api",sl="ArrowLeft",ol="ArrowRight",al="next",ll="prev",cl="left",dl="right",ul=`slide${nl}`,hl=`slid${nl}`,pl=`keydown${nl}`,fl=`mouseenter${nl}`,gl=`mouseleave${nl}`,ml=`dragstart${nl}`,vl=`load${nl}${rl}`,bl=`click${nl}${rl}`,yl="carousel",_l="active",wl=".active",El=".carousel-item",Al=wl+El,Sl={[sl]:dl,[ol]:cl},kl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Cl={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ol extends $a{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=qa.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===yl&&this.cycle()}static get Default(){return kl}static get DefaultType(){return Cl}static get NAME(){return"carousel"}next(){this._slide(al)}nextWhenVisible(){!document.hidden&&sa(this._element)&&this.next()}prev(){this._slide(ll)}pause(){this._isSliding&&ia(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Ia.one(this._element,hl,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void Ia.one(this._element,hl,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?al:ll;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&Ia.on(this._element,pl,t=>this._keydown(t)),"hover"===this._config.pause&&(Ia.on(this._element,fl,()=>this.pause()),Ia.on(this._element,gl,()=>this._maybeEnableCycle())),this._config.touch&&il.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of qa.find(".carousel-item img",this._element))Ia.on(t,ml,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(cl)),rightCallback:()=>this._slide(this._directionToOrder(dl)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new il(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Sl[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=qa.findOne(wl,this._indicatorsElement);e.classList.remove(_l),e.removeAttribute("aria-current");const i=qa.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(_l),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===al,r=e||ma(this._getItems(),i,n,this._config.wrap);if(r===i)return;const s=this._getItemIndex(r),o=e=>Ia.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(o(ul).defaultPrevented)return;if(!i||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";r.classList.add(c),ca(r),i.classList.add(l),r.classList.add(l);this._queueCallback(()=>{r.classList.remove(l,c),r.classList.add(_l),i.classList.remove(_l,c,l),this._isSliding=!1,o(hl)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return qa.findOne(Al,this._element)}_getItems(){return qa.find(El,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ha()?t===cl?ll:al:t===cl?al:ll}_orderToDirection(t){return ha()?t===ll?cl:dl:t===ll?dl:cl}static jQueryInterface(t){return this.each(function(){const e=Ol.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)})}}Ia.on(document,bl,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=qa.getElementFromSelector(this);if(!e||!e.classList.contains(yl))return;t.preventDefault();const i=Ol.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===ja.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),Ia.on(window,vl,()=>{const t=qa.find('[data-bs-ride="carousel"]');for(const e of t)Ol.getOrCreateInstance(e)}),pa(Ol);const Dl=".bs.collapse",xl=`show${Dl}`,Tl=`shown${Dl}`,Ll=`hide${Dl}`,Il=`hidden${Dl}`,Ml=`click${Dl}.data-api`,Fl="show",Nl="collapse",jl="collapsing",Pl=`:scope .${Nl} .${Nl}`,$l='[data-bs-toggle="collapse"]',Hl={parent:null,toggle:!0},ql={parent:"(null|element)",toggle:"boolean"};class Rl extends $a{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=qa.find($l);for(const t of i){const e=qa.getSelectorFromElement(t),i=qa.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 Hl}static get DefaultType(){return ql}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=>Rl.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(Ia.trigger(this._element,xl).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Nl),this._element.classList.add(jl),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(jl),this._element.classList.add(Nl,Fl),this._element.style[e]="",Ia.trigger(this._element,Tl)},this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Ia.trigger(this._element,Ll).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ca(this._element),this._element.classList.add(jl),this._element.classList.remove(Nl,Fl);for(const t of this._triggerArray){const e=qa.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(jl),this._element.classList.add(Nl),Ia.trigger(this._element,Il)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Fl)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=ra(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren($l);for(const e of t){const t=qa.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=qa.find(Pl,this._config.parent);return qa.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=Rl.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}Ia.on(document,Ml,$l,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of qa.getMultipleElementsFromSelector(this))Rl.getOrCreateInstance(t,{toggle:!1}).toggle()}),pa(Rl);const Bl="dropdown",Vl=".bs.dropdown",zl=".data-api",Wl="ArrowUp",Yl="ArrowDown",Kl=`hide${Vl}`,Ul=`hidden${Vl}`,Xl=`show${Vl}`,Ql=`shown${Vl}`,Gl=`click${Vl}${zl}`,Jl=`keydown${Vl}${zl}`,Zl=`keyup${Vl}${zl}`,tc="show",ec='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ic=`${ec}.${tc}`,nc=".dropdown-menu",rc=ha()?"top-end":"top-start",sc=ha()?"top-start":"top-end",oc=ha()?"bottom-end":"bottom-start",ac=ha()?"bottom-start":"bottom-end",lc=ha()?"left-start":"right-start",cc=ha()?"right-start":"left-start",dc={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},uc={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class hc extends $a{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=qa.next(this._element,nc)[0]||qa.prev(this._element,nc)[0]||qa.findOne(nc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dc}static get DefaultType(){return uc}static get NAME(){return Bl}toggle(){return this._isShown()?this.hide():this.show()}show(){if(oa(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!Ia.trigger(this._element,Xl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))Ia.on(t,"mouseover",la);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(tc),this._element.classList.add(tc),Ia.trigger(this._element,Ql,t)}}hide(){if(oa(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(!Ia.trigger(this._element,Kl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.off(t,"mouseover",la);this._popper&&this._popper.destroy(),this._menu.classList.remove(tc),this._element.classList.remove(tc),this._element.setAttribute("aria-expanded","false"),ja.removeDataAttribute(this._menu,"popper"),Ia.trigger(this._element,Ul,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!na(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Bl.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Qo)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:na(this._config.reference)?t=ra(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Xo(t,this._menu,e)}_isShown(){return this._menu.classList.contains(tc)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return lc;if(t.classList.contains("dropstart"))return cc;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?sc:rc:e?ac:oc}_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)&&(ja.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fa(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=qa.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>sa(t));i.length&&ma(i,e,t===Yl,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=hc.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=qa.find(ic);for(const i of e){const e=hc.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),r=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)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 s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Wl,Yl].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const r=this.matches(ec)?this:qa.prev(this,ec)[0]||qa.next(this,ec)[0]||qa.findOne(ec,t.delegateTarget.parentNode),s=hc.getOrCreateInstance(r);if(n)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),r.focus())}}Ia.on(document,Jl,ec,hc.dataApiKeydownHandler),Ia.on(document,Jl,nc,hc.dataApiKeydownHandler),Ia.on(document,Gl,hc.clearMenus),Ia.on(document,Zl,hc.clearMenus),Ia.on(document,Gl,ec,function(t){t.preventDefault(),hc.getOrCreateInstance(this).toggle()}),pa(hc);const pc="backdrop",fc="show",gc=`mousedown.bs.${pc}`,mc={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},vc={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class bc extends Pa{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return mc}static get DefaultType(){return vc}static get NAME(){return pc}show(t){if(!this._config.isVisible)return void fa(t);this._append();const e=this._getElement();this._config.isAnimated&&ca(e),e.classList.add(fc),this._emulateAnimation(()=>{fa(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(fc),this._emulateAnimation(()=>{this.dispose(),fa(t)})):fa(t)}dispose(){this._isAppended&&(Ia.off(this._element,gc),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=ra(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),Ia.on(t,gc,()=>{fa(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){ga(t,this._getElement(),this._config.isAnimated)}}const yc=".bs.focustrap",_c=`focusin${yc}`,wc=`keydown.tab${yc}`,Ec="backward",Ac={autofocus:!0,trapElement:null},Sc={autofocus:"boolean",trapElement:"element"};class kc extends Pa{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ac}static get DefaultType(){return Sc}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ia.off(document,yc),Ia.on(document,_c,t=>this._handleFocusin(t)),Ia.on(document,wc,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ia.off(document,yc))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=qa.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Ec?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ec:"forward")}}const Cc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Oc=".sticky-top",Dc="padding-right",xc="margin-right";class Tc{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,Dc,e=>e+t),this._setElementAttributes(Cc,Dc,e=>e+t),this._setElementAttributes(Oc,xc,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Dc),this._resetElementAttributes(Cc,Dc),this._resetElementAttributes(Oc,xc)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(r))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&ja.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=ja.getDataAttribute(t,e);null!==i?(ja.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(na(t))e(t);else for(const i of qa.find(t,this._element))e(i)}}const Lc=".bs.modal",Ic=`hide${Lc}`,Mc=`hidePrevented${Lc}`,Fc=`hidden${Lc}`,Nc=`show${Lc}`,jc=`shown${Lc}`,Pc=`resize${Lc}`,$c=`click.dismiss${Lc}`,Hc=`mousedown.dismiss${Lc}`,qc=`keydown.dismiss${Lc}`,Rc=`click${Lc}.data-api`,Bc="modal-open",Vc="show",zc="modal-static",Wc={backdrop:!0,focus:!0,keyboard:!0},Yc={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Kc extends $a{constructor(t,e){super(t,e),this._dialog=qa.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Tc,this._addEventListeners()}static get Default(){return Wc}static get DefaultType(){return Yc}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;Ia.trigger(this._element,Nc,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Bc),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;Ia.trigger(this._element,Ic).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Vc),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ia.off(window,Lc),Ia.off(this._dialog,Lc),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bc({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new kc({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=qa.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),ca(this._element),this._element.classList.add(Vc);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ia.trigger(this._element,jc,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){Ia.on(this._element,qc,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),Ia.on(window,Pc,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ia.on(this._element,Hc,t=>{Ia.one(this._element,$c,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(Bc),this._resetAdjustments(),this._scrollBar.reset(),Ia.trigger(this._element,Fc)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Ia.trigger(this._element,Mc).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(zc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(zc),this._queueCallback(()=>{this._element.classList.remove(zc),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=ha()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=ha()?"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=Kc.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}Ia.on(document,Rc,'[data-bs-toggle="modal"]',function(t){const e=qa.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ia.one(e,Nc,t=>{t.defaultPrevented||Ia.one(e,Fc,()=>{sa(this)&&this.focus()})});const i=qa.findOne(".modal.show");i&&Kc.getInstance(i).hide();Kc.getOrCreateInstance(e).toggle(this)}),Ra(Kc),pa(Kc);const Uc=".bs.offcanvas",Xc=".data-api",Qc=`load${Uc}${Xc}`,Gc="show",Jc="showing",Zc="hiding",td=".offcanvas.show",ed=`show${Uc}`,id=`shown${Uc}`,nd=`hide${Uc}`,rd=`hidePrevented${Uc}`,sd=`hidden${Uc}`,od=`resize${Uc}`,ad=`click${Uc}${Xc}`,ld=`keydown.dismiss${Uc}`,cd={backdrop:!0,keyboard:!0,scroll:!1},dd={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ud extends $a{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cd}static get DefaultType(){return dd}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(Ia.trigger(this._element,ed,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Tc).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Jc);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Gc),this._element.classList.remove(Jc),Ia.trigger(this._element,id,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;if(Ia.trigger(this._element,nd).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Zc),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Gc,Zc),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Tc).reset(),Ia.trigger(this._element,sd)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new bc({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():Ia.trigger(this._element,rd)}:null})}_initializeFocusTrap(){return new kc({trapElement:this._element})}_addEventListeners(){Ia.on(this._element,ld,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():Ia.trigger(this._element,rd))})}static jQueryInterface(t){return this.each(function(){const e=ud.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)}})}}Ia.on(document,ad,'[data-bs-toggle="offcanvas"]',function(t){const e=qa.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),oa(this))return;Ia.one(e,sd,()=>{sa(this)&&this.focus()});const i=qa.findOne(td);i&&i!==e&&ud.getInstance(i).hide();ud.getOrCreateInstance(e).toggle(this)}),Ia.on(window,Qc,()=>{for(const t of qa.find(td))ud.getOrCreateInstance(t).show()}),Ia.on(window,od,()=>{for(const t of qa.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&ud.getOrCreateInstance(t).hide()}),Ra(ud),pa(ud);const hd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pd=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,gd=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!pd.has(i)||Boolean(fd.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))};const md={allowList:hd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},vd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},bd={entry:"(string|element|function|null)",selector:"(string|element)"};class yd extends Pa{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return md}static get DefaultType(){return vd}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},bd)}_setContent(t,e,i){const n=qa.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?na(e)?this._putElementInTemplate(ra(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const t of r){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[i]||[]);for(const e of n)gd(e,r)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fa(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const _d=new Set(["sanitize","allowList","sanitizeFn"]),wd="fade",Ed="show",Ad=".tooltip-inner",Sd=".modal",kd="hide.bs.modal",Cd="hover",Od="focus",Dd="click",xd={AUTO:"auto",TOP:"top",RIGHT:ha()?"left":"right",BOTTOM:"bottom",LEFT:ha()?"right":"left"},Td={allowList:hd,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"},Ld={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 Id extends $a{constructor(t,e){if(void 0===Qo)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 Td}static get DefaultType(){return Ld}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Ia.off(this._element.closest(Sd),kd,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=Ia.trigger(this._element,this.constructor.eventName("show")),e=(aa(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),Ia.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Ed),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.on(t,"mouseover",la);this._queueCallback(()=>{Ia.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(Ia.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ed),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.off(t,"mouseover",la);this._activeTrigger[Dd]=!1,this._activeTrigger[Od]=!1,this._activeTrigger[Cd]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ia.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(wd,Ed),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(wd),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new yd({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ad]: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(wd)}_isShown(){return this.tip&&this.tip.classList.contains(Ed)}_createPopper(t){const e=fa(this._config.placement,[this,t,this._element]),i=xd[e.toUpperCase()];return Xo(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return fa(t,[this._element,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,...fa(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)Ia.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Dd]=!(e._isShown()&&e._activeTrigger[Dd]),e.toggle()});else if("manual"!==e){const t=e===Cd?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Cd?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Ia.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Od:Cd]=!0,e._enter()}),Ia.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Od:Cd]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ia.on(this._element.closest(Sd),kd,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=ja.getDataAttributes(this._element);for(const t of Object.keys(e))_d.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:ra(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=Id.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}pa(Id);const Md=".popover-header",Fd=".popover-body",Nd={...Id.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"},jd={...Id.DefaultType,content:"(null|string|element|function)"};class Pd extends Id{static get Default(){return Nd}static get DefaultType(){return jd}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Md]:this._getTitle(),[Fd]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Pd.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}pa(Pd);const $d=".bs.scrollspy",Hd=`activate${$d}`,qd=`click${$d}`,Rd=`load${$d}.data-api`,Bd="active",Vd="[href]",zd=".nav-link",Wd=`${zd}, .nav-item > ${zd}, .list-group-item`,Yd={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Kd={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ud extends $a{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 Yd}static get DefaultType(){return Kd}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=ra(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&&(Ia.off(this._config.target,qd),Ia.on(this._config.target,qd,Vd,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(i(s),!n)return}else r||t||i(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=qa.find(Vd,this._config.target);for(const e of t){if(!e.hash||oa(e))continue;const t=qa.findOne(decodeURI(e.hash),this._element);sa(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(Bd),this._activateParents(t),Ia.trigger(this._element,Hd,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))qa.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Bd);else for(const e of qa.parents(t,".nav, .list-group"))for(const t of qa.prev(e,Wd))t.classList.add(Bd)}_clearActiveClass(t){t.classList.remove(Bd);const e=qa.find(`${Vd}.${Bd}`,t);for(const t of e)t.classList.remove(Bd)}static jQueryInterface(t){return this.each(function(){const e=Ud.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]()}})}}Ia.on(window,Rd,()=>{for(const t of qa.find('[data-bs-spy="scroll"]'))Ud.getOrCreateInstance(t)}),pa(Ud);const Xd=".bs.tab",Qd=`hide${Xd}`,Gd=`hidden${Xd}`,Jd=`show${Xd}`,Zd=`shown${Xd}`,tu=`click${Xd}`,eu=`keydown${Xd}`,iu=`load${Xd}`,nu="ArrowLeft",ru="ArrowRight",su="ArrowUp",ou="ArrowDown",au="Home",lu="End",cu="active",du="fade",uu="show",hu=".dropdown-toggle",pu=`:not(${hu})`,fu='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gu=`${`.nav-link${pu}, .list-group-item${pu}, [role="tab"]${pu}`}, ${fu}`,mu=`.${cu}[data-bs-toggle="tab"], .${cu}[data-bs-toggle="pill"], .${cu}[data-bs-toggle="list"]`;class vu extends $a{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ia.on(this._element,eu,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?Ia.trigger(e,Qd,{relatedTarget:t}):null;Ia.trigger(t,Jd,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(cu),this._activate(qa.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),Ia.trigger(t,Zd,{relatedTarget:e})):t.classList.add(uu)},t,t.classList.contains(du))}_deactivate(t,e){if(!t)return;t.classList.remove(cu),t.blur(),this._deactivate(qa.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),Ia.trigger(t,Gd,{relatedTarget:e})):t.classList.remove(uu)},t,t.classList.contains(du))}_keydown(t){if(![nu,ru,su,ou,au,lu].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!oa(t));let i;if([au,lu].includes(t.key))i=e[t.key===au?0:e.length-1];else{const n=[ru,ou].includes(t.key);i=ma(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),vu.getOrCreateInstance(i).show())}_getChildren(){return qa.find(gu,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=qa.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const r=qa.findOne(t,i);r&&r.classList.toggle(n,e)};n(hu,cu),n(".dropdown-menu",uu),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(cu)}_getInnerElement(t){return t.matches(gu)?t:qa.findOne(gu,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=vu.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}Ia.on(document,tu,fu,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),oa(this)||vu.getOrCreateInstance(this).show()}),Ia.on(window,iu,()=>{for(const t of qa.find(mu))vu.getOrCreateInstance(t)}),pa(vu);const bu=".bs.toast",yu=`mouseover${bu}`,_u=`mouseout${bu}`,wu=`focusin${bu}`,Eu=`focusout${bu}`,Au=`hide${bu}`,Su=`hidden${bu}`,ku=`show${bu}`,Cu=`shown${bu}`,Ou="hide",Du="show",xu="showing",Tu={animation:"boolean",autohide:"boolean",delay:"number"},Lu={animation:!0,autohide:!0,delay:5e3};class Iu extends $a{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Lu}static get DefaultType(){return Tu}static get NAME(){return"toast"}show(){if(Ia.trigger(this._element,ku).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ou),ca(this._element),this._element.classList.add(Du,xu),this._queueCallback(()=>{this._element.classList.remove(xu),Ia.trigger(this._element,Cu),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(Ia.trigger(this._element,Au).defaultPrevented)return;this._element.classList.add(xu),this._queueCallback(()=>{this._element.classList.add(Ou),this._element.classList.remove(xu,Du),Ia.trigger(this._element,Su)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Du),super.dispose()}isShown(){return this._element.classList.contains(Du)}_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(){Ia.on(this._element,yu,t=>this._onInteraction(t,!0)),Ia.on(this._element,_u,t=>this._onInteraction(t,!1)),Ia.on(this._element,wu,t=>this._onInteraction(t,!0)),Ia.on(this._element,Eu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Iu.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ra(Iu),pa(Iu),document.addEventListener("DOMContentLoaded",()=>{Array.from(document.querySelectorAll(".dropdown")).forEach(t=>new hc(t)),f.formsHandler.netteForms=y,f.initialize(),((t,e={})=>{new gs(t,e)})(new ms(f),{datagrid:{plugins:[new se,new oe,new le,new de,new ue,new he,new ie(y),new re(new bn),new ee(new ps({buttonClass:"btn"})),new ne(new yn(Mt)),new pe]}})});
|
|
19
|
+
const Go=new Map,Jo={set(t,e,i){Go.has(t)||Go.set(t,new Map);const n=Go.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)=>Go.has(t)&&Go.get(t).get(e)||null,remove(t,e){if(!Go.has(t))return;const i=Go.get(t);i.delete(e),0===i.size&&Go.delete(t)}},Zo="transitionend",ta=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),ea=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),ia=t=>{t.dispatchEvent(new Event(Zo))},na=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),ra=t=>na(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(ta(t)):null,sa=t=>{if(!na(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},oa=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),aa=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?aa(t.parentNode):null},la=()=>{},ca=t=>{t.offsetHeight},da=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ua=[],ha=()=>"rtl"===document.documentElement.dir,pa=t=>{var e;e=()=>{const $=da();if($){const e=t.NAME,i=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=i,t.jQueryInterface)}},"loading"===document.readyState?(ua.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of ua)t()}),ua.push(e)):e()},fa=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,ga=(t,e,i=!0)=>{if(!i)return void fa(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const s=({target:i})=>{i===e&&(r=!0,e.removeEventListener(Zo,s),fa(t))};e.addEventListener(Zo,s),setTimeout(()=>{r||ia(e)},n)},ma=(t,e,i,n)=>{const r=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[r-1]:t[0]:(s+=i?1:-1,n&&(s=(s+r)%r),t[Math.max(0,Math.min(s,r-1))])},va=/[^.]*(?=\..*)\.|.*/,ba=/\..*/,ya=/::\d+$/,_a={};let wa=1;const Ea={mouseenter:"mouseover",mouseleave:"mouseout"},Aa=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 Sa(t,e){return e&&`${e}::${wa++}`||t.uidEvent||wa++}function ka(t){const e=Sa(t);return t.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function Ca(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function Oa(t,e,i){const n="string"==typeof e,r=n?i:e||i;let s=La(t);return Aa.has(s)||(s=t),[n,r,s]}function Da(t,e,i,n,r){if("string"!=typeof e||!t)return;let[s,o,a]=Oa(e,i,n);if(e in Ea){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};o=t(o)}const l=ka(t),c=l[a]||(l[a]={}),d=Ca(c,o,s?i:null);if(d)return void(d.oneOff=d.oneOff&&r);const u=Sa(o,e.replace(va,"")),h=s?function(t,e,i){return function n(r){const s=t.querySelectorAll(e);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return Ma(r,{delegateTarget:o}),n.oneOff&&Ia.off(t,r.type,e,i),i.apply(o,[r])}}(t,i,o):function(t,e){return function i(n){return Ma(n,{delegateTarget:t}),i.oneOff&&Ia.off(t,n.type,e),e.apply(t,[n])}}(t,o);h.delegationSelector=s?i:null,h.callable=o,h.oneOff=r,h.uidEvent=u,c[u]=h,t.addEventListener(a,h,s)}function xa(t,e,i,n,r){const s=Ca(e[i],n,r);s&&(t.removeEventListener(i,s,Boolean(r)),delete e[i][s.uidEvent])}function Ta(t,e,i,n){const r=e[i]||{};for(const[s,o]of Object.entries(r))s.includes(n)&&xa(t,e,i,o.callable,o.delegationSelector)}function La(t){return t=t.replace(ba,""),Ea[t]||t}const Ia={on(t,e,i,n){Da(t,e,i,n,!1)},one(t,e,i,n){Da(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[r,s,o]=Oa(e,i,n),a=o!==e,l=ka(t),c=l[o]||{},d=e.startsWith(".");if(void 0===s){if(d)for(const i of Object.keys(l))Ta(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const r=i.replace(ya,"");a&&!e.includes(r)||xa(t,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;xa(t,l,o,s,r?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const $=da();let n=null,r=!0,s=!0,o=!1;e!==La(e)&&$&&(n=$.Event(e,i),$(t).trigger(n),r=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),o=n.isDefaultPrevented());const a=Ma(new Event(e,{bubbles:r,cancelable:!0}),i);return o&&a.preventDefault(),s&&t.dispatchEvent(a),a.defaultPrevented&&n&&n.preventDefault(),a}};function Ma(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function Fa(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 Na(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ja={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${Na(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Na(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=Fa(t.dataset[n])}return e},getDataAttribute:(t,e)=>Fa(t.getAttribute(`data-bs-${Na(e)}`))};class Pa{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=na(e)?ja.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...na(e)?ja.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i],r=na(e)?"element":ea(e);if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}}class $a extends Pa{constructor(t,e){super(),(t=ra(t))&&(this._element=t,this._config=this._getConfig(e),Jo.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Jo.remove(this._element,this.constructor.DATA_KEY),Ia.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){ga(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Jo.get(ra(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.8"}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 Ha=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>ta(t)).join(","):null},qa={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!oa(t)&&sa(t))},getSelectorFromElement(t){const e=Ha(t);return e&&qa.findOne(e)?e:null},getElementFromSelector(t){const e=Ha(t);return e?qa.findOne(e):null},getMultipleElementsFromSelector(t){const e=Ha(t);return e?qa.find(e):[]}},Ra=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ia.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oa(this))return;const r=qa.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()})},Ba=".bs.alert",Va=`close${Ba}`,za=`closed${Ba}`;class Wa extends $a{static get NAME(){return"alert"}close(){if(Ia.trigger(this._element,Va).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(),Ia.trigger(this._element,za),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Wa.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)}})}}Ra(Wa,"close"),pa(Wa);const Ya='[data-bs-toggle="button"]';class Ka extends $a{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=Ka.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}Ia.on(document,"click.bs.button.data-api",Ya,t=>{t.preventDefault();const e=t.target.closest(Ya);Ka.getOrCreateInstance(e).toggle()}),pa(Ka);const Ua=".bs.swipe",Xa=`touchstart${Ua}`,Qa=`touchmove${Ua}`,Ga=`touchend${Ua}`,Ja=`pointerdown${Ua}`,Za=`pointerup${Ua}`,tl={endCallback:null,leftCallback:null,rightCallback:null},el={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class il extends Pa{constructor(t,e){super(),this._element=t,t&&il.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return tl}static get DefaultType(){return el}static get NAME(){return"swipe"}dispose(){Ia.off(this._element,Ua)}_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(),fa(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&&fa(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ia.on(this._element,Ja,t=>this._start(t)),Ia.on(this._element,Za,t=>this._end(t)),this._element.classList.add("pointer-event")):(Ia.on(this._element,Xa,t=>this._start(t)),Ia.on(this._element,Qa,t=>this._move(t)),Ia.on(this._element,Ga,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 nl=".bs.carousel",rl=".data-api",sl="ArrowLeft",ol="ArrowRight",al="next",ll="prev",cl="left",dl="right",ul=`slide${nl}`,hl=`slid${nl}`,pl=`keydown${nl}`,fl=`mouseenter${nl}`,gl=`mouseleave${nl}`,ml=`dragstart${nl}`,vl=`load${nl}${rl}`,bl=`click${nl}${rl}`,yl="carousel",_l="active",wl=".active",El=".carousel-item",Al=wl+El,Sl={[sl]:dl,[ol]:cl},kl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Cl={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ol extends $a{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=qa.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===yl&&this.cycle()}static get Default(){return kl}static get DefaultType(){return Cl}static get NAME(){return"carousel"}next(){this._slide(al)}nextWhenVisible(){!document.hidden&&sa(this._element)&&this.next()}prev(){this._slide(ll)}pause(){this._isSliding&&ia(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Ia.one(this._element,hl,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void Ia.one(this._element,hl,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?al:ll;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&Ia.on(this._element,pl,t=>this._keydown(t)),"hover"===this._config.pause&&(Ia.on(this._element,fl,()=>this.pause()),Ia.on(this._element,gl,()=>this._maybeEnableCycle())),this._config.touch&&il.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of qa.find(".carousel-item img",this._element))Ia.on(t,ml,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(cl)),rightCallback:()=>this._slide(this._directionToOrder(dl)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new il(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Sl[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=qa.findOne(wl,this._indicatorsElement);e.classList.remove(_l),e.removeAttribute("aria-current");const i=qa.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(_l),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===al,r=e||ma(this._getItems(),i,n,this._config.wrap);if(r===i)return;const s=this._getItemIndex(r),o=e=>Ia.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(o(ul).defaultPrevented)return;if(!i||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";r.classList.add(c),ca(r),i.classList.add(l),r.classList.add(l);this._queueCallback(()=>{r.classList.remove(l,c),r.classList.add(_l),i.classList.remove(_l,c,l),this._isSliding=!1,o(hl)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return qa.findOne(Al,this._element)}_getItems(){return qa.find(El,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ha()?t===cl?ll:al:t===cl?al:ll}_orderToDirection(t){return ha()?t===ll?cl:dl:t===ll?dl:cl}static jQueryInterface(t){return this.each(function(){const e=Ol.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)})}}Ia.on(document,bl,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=qa.getElementFromSelector(this);if(!e||!e.classList.contains(yl))return;t.preventDefault();const i=Ol.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===ja.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),Ia.on(window,vl,()=>{const t=qa.find('[data-bs-ride="carousel"]');for(const e of t)Ol.getOrCreateInstance(e)}),pa(Ol);const Dl=".bs.collapse",xl=`show${Dl}`,Tl=`shown${Dl}`,Ll=`hide${Dl}`,Il=`hidden${Dl}`,Ml=`click${Dl}.data-api`,Fl="show",Nl="collapse",jl="collapsing",Pl=`:scope .${Nl} .${Nl}`,$l='[data-bs-toggle="collapse"]',Hl={parent:null,toggle:!0},ql={parent:"(null|element)",toggle:"boolean"};class Rl extends $a{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=qa.find($l);for(const t of i){const e=qa.getSelectorFromElement(t),i=qa.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 Hl}static get DefaultType(){return ql}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=>Rl.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(Ia.trigger(this._element,xl).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Nl),this._element.classList.add(jl),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(jl),this._element.classList.add(Nl,Fl),this._element.style[e]="",Ia.trigger(this._element,Tl)},this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Ia.trigger(this._element,Ll).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ca(this._element),this._element.classList.add(jl),this._element.classList.remove(Nl,Fl);for(const t of this._triggerArray){const e=qa.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(jl),this._element.classList.add(Nl),Ia.trigger(this._element,Il)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Fl)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=ra(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren($l);for(const e of t){const t=qa.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=qa.find(Pl,this._config.parent);return qa.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=Rl.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}Ia.on(document,Ml,$l,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of qa.getMultipleElementsFromSelector(this))Rl.getOrCreateInstance(t,{toggle:!1}).toggle()}),pa(Rl);const Bl="dropdown",Vl=".bs.dropdown",zl=".data-api",Wl="ArrowUp",Yl="ArrowDown",Kl=`hide${Vl}`,Ul=`hidden${Vl}`,Xl=`show${Vl}`,Ql=`shown${Vl}`,Gl=`click${Vl}${zl}`,Jl=`keydown${Vl}${zl}`,Zl=`keyup${Vl}${zl}`,tc="show",ec='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ic=`${ec}.${tc}`,nc=".dropdown-menu",rc=ha()?"top-end":"top-start",sc=ha()?"top-start":"top-end",oc=ha()?"bottom-end":"bottom-start",ac=ha()?"bottom-start":"bottom-end",lc=ha()?"left-start":"right-start",cc=ha()?"right-start":"left-start",dc={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},uc={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class hc extends $a{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=qa.next(this._element,nc)[0]||qa.prev(this._element,nc)[0]||qa.findOne(nc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dc}static get DefaultType(){return uc}static get NAME(){return Bl}toggle(){return this._isShown()?this.hide():this.show()}show(){if(oa(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!Ia.trigger(this._element,Xl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))Ia.on(t,"mouseover",la);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(tc),this._element.classList.add(tc),Ia.trigger(this._element,Ql,t)}}hide(){if(oa(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(!Ia.trigger(this._element,Kl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.off(t,"mouseover",la);this._popper&&this._popper.destroy(),this._menu.classList.remove(tc),this._element.classList.remove(tc),this._element.setAttribute("aria-expanded","false"),ja.removeDataAttribute(this._menu,"popper"),Ia.trigger(this._element,Ul,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!na(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Bl.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Qo)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:na(this._config.reference)?t=ra(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Xo(t,this._menu,e)}_isShown(){return this._menu.classList.contains(tc)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return lc;if(t.classList.contains("dropstart"))return cc;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?sc:rc:e?ac:oc}_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)&&(ja.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fa(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=qa.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>sa(t));i.length&&ma(i,e,t===Yl,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=hc.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=qa.find(ic);for(const i of e){const e=hc.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),r=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)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 s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Wl,Yl].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const r=this.matches(ec)?this:qa.prev(this,ec)[0]||qa.next(this,ec)[0]||qa.findOne(ec,t.delegateTarget.parentNode),s=hc.getOrCreateInstance(r);if(n)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),r.focus())}}Ia.on(document,Jl,ec,hc.dataApiKeydownHandler),Ia.on(document,Jl,nc,hc.dataApiKeydownHandler),Ia.on(document,Gl,hc.clearMenus),Ia.on(document,Zl,hc.clearMenus),Ia.on(document,Gl,ec,function(t){t.preventDefault(),hc.getOrCreateInstance(this).toggle()}),pa(hc);const pc="backdrop",fc="show",gc=`mousedown.bs.${pc}`,mc={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},vc={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class bc extends Pa{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return mc}static get DefaultType(){return vc}static get NAME(){return pc}show(t){if(!this._config.isVisible)return void fa(t);this._append();const e=this._getElement();this._config.isAnimated&&ca(e),e.classList.add(fc),this._emulateAnimation(()=>{fa(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(fc),this._emulateAnimation(()=>{this.dispose(),fa(t)})):fa(t)}dispose(){this._isAppended&&(Ia.off(this._element,gc),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=ra(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),Ia.on(t,gc,()=>{fa(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){ga(t,this._getElement(),this._config.isAnimated)}}const yc=".bs.focustrap",_c=`focusin${yc}`,wc=`keydown.tab${yc}`,Ec="backward",Ac={autofocus:!0,trapElement:null},Sc={autofocus:"boolean",trapElement:"element"};class kc extends Pa{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ac}static get DefaultType(){return Sc}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ia.off(document,yc),Ia.on(document,_c,t=>this._handleFocusin(t)),Ia.on(document,wc,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ia.off(document,yc))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=qa.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Ec?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ec:"forward")}}const Cc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Oc=".sticky-top",Dc="padding-right",xc="margin-right";class Tc{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,Dc,e=>e+t),this._setElementAttributes(Cc,Dc,e=>e+t),this._setElementAttributes(Oc,xc,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Dc),this._resetElementAttributes(Cc,Dc),this._resetElementAttributes(Oc,xc)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(r))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&ja.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=ja.getDataAttribute(t,e);null!==i?(ja.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(na(t))e(t);else for(const i of qa.find(t,this._element))e(i)}}const Lc=".bs.modal",Ic=`hide${Lc}`,Mc=`hidePrevented${Lc}`,Fc=`hidden${Lc}`,Nc=`show${Lc}`,jc=`shown${Lc}`,Pc=`resize${Lc}`,$c=`click.dismiss${Lc}`,Hc=`mousedown.dismiss${Lc}`,qc=`keydown.dismiss${Lc}`,Rc=`click${Lc}.data-api`,Bc="modal-open",Vc="show",zc="modal-static",Wc={backdrop:!0,focus:!0,keyboard:!0},Yc={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Kc extends $a{constructor(t,e){super(t,e),this._dialog=qa.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Tc,this._addEventListeners()}static get Default(){return Wc}static get DefaultType(){return Yc}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;Ia.trigger(this._element,Nc,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Bc),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;Ia.trigger(this._element,Ic).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Vc),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ia.off(window,Lc),Ia.off(this._dialog,Lc),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bc({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new kc({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=qa.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),ca(this._element),this._element.classList.add(Vc);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ia.trigger(this._element,jc,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){Ia.on(this._element,qc,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),Ia.on(window,Pc,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ia.on(this._element,Hc,t=>{Ia.one(this._element,$c,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(Bc),this._resetAdjustments(),this._scrollBar.reset(),Ia.trigger(this._element,Fc)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Ia.trigger(this._element,Mc).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(zc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(zc),this._queueCallback(()=>{this._element.classList.remove(zc),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=ha()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=ha()?"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=Kc.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}Ia.on(document,Rc,'[data-bs-toggle="modal"]',function(t){const e=qa.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ia.one(e,Nc,t=>{t.defaultPrevented||Ia.one(e,Fc,()=>{sa(this)&&this.focus()})});const i=qa.findOne(".modal.show");i&&Kc.getInstance(i).hide();Kc.getOrCreateInstance(e).toggle(this)}),Ra(Kc),pa(Kc);const Uc=".bs.offcanvas",Xc=".data-api",Qc=`load${Uc}${Xc}`,Gc="show",Jc="showing",Zc="hiding",td=".offcanvas.show",ed=`show${Uc}`,id=`shown${Uc}`,nd=`hide${Uc}`,rd=`hidePrevented${Uc}`,sd=`hidden${Uc}`,od=`resize${Uc}`,ad=`click${Uc}${Xc}`,ld=`keydown.dismiss${Uc}`,cd={backdrop:!0,keyboard:!0,scroll:!1},dd={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ud extends $a{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cd}static get DefaultType(){return dd}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(Ia.trigger(this._element,ed,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Tc).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Jc);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Gc),this._element.classList.remove(Jc),Ia.trigger(this._element,id,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;if(Ia.trigger(this._element,nd).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Zc),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Gc,Zc),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Tc).reset(),Ia.trigger(this._element,sd)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new bc({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():Ia.trigger(this._element,rd)}:null})}_initializeFocusTrap(){return new kc({trapElement:this._element})}_addEventListeners(){Ia.on(this._element,ld,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():Ia.trigger(this._element,rd))})}static jQueryInterface(t){return this.each(function(){const e=ud.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)}})}}Ia.on(document,ad,'[data-bs-toggle="offcanvas"]',function(t){const e=qa.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),oa(this))return;Ia.one(e,sd,()=>{sa(this)&&this.focus()});const i=qa.findOne(td);i&&i!==e&&ud.getInstance(i).hide();ud.getOrCreateInstance(e).toggle(this)}),Ia.on(window,Qc,()=>{for(const t of qa.find(td))ud.getOrCreateInstance(t).show()}),Ia.on(window,od,()=>{for(const t of qa.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&ud.getOrCreateInstance(t).hide()}),Ra(ud),pa(ud);const hd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pd=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,gd=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!pd.has(i)||Boolean(fd.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))};const md={allowList:hd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},vd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},bd={entry:"(string|element|function|null)",selector:"(string|element)"};class yd extends Pa{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return md}static get DefaultType(){return vd}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},bd)}_setContent(t,e,i){const n=qa.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?na(e)?this._putElementInTemplate(ra(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const t of r){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[i]||[]);for(const e of n)gd(e,r)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fa(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const _d=new Set(["sanitize","allowList","sanitizeFn"]),wd="fade",Ed="show",Ad=".tooltip-inner",Sd=".modal",kd="hide.bs.modal",Cd="hover",Od="focus",Dd="click",xd={AUTO:"auto",TOP:"top",RIGHT:ha()?"left":"right",BOTTOM:"bottom",LEFT:ha()?"right":"left"},Td={allowList:hd,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"},Ld={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 Id extends $a{constructor(t,e){if(void 0===Qo)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 Td}static get DefaultType(){return Ld}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Ia.off(this._element.closest(Sd),kd,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=Ia.trigger(this._element,this.constructor.eventName("show")),e=(aa(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),Ia.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Ed),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.on(t,"mouseover",la);this._queueCallback(()=>{Ia.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(Ia.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ed),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))Ia.off(t,"mouseover",la);this._activeTrigger[Dd]=!1,this._activeTrigger[Od]=!1,this._activeTrigger[Cd]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ia.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(wd,Ed),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(wd),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new yd({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ad]: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(wd)}_isShown(){return this.tip&&this.tip.classList.contains(Ed)}_createPopper(t){const e=fa(this._config.placement,[this,t,this._element]),i=xd[e.toUpperCase()];return Xo(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return fa(t,[this._element,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,...fa(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)Ia.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Dd]=!(e._isShown()&&e._activeTrigger[Dd]),e.toggle()});else if("manual"!==e){const t=e===Cd?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Cd?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Ia.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Od:Cd]=!0,e._enter()}),Ia.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Od:Cd]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ia.on(this._element.closest(Sd),kd,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=ja.getDataAttributes(this._element);for(const t of Object.keys(e))_d.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:ra(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=Id.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}pa(Id);const Md=".popover-header",Fd=".popover-body",Nd={...Id.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"},jd={...Id.DefaultType,content:"(null|string|element|function)"};class Pd extends Id{static get Default(){return Nd}static get DefaultType(){return jd}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Md]:this._getTitle(),[Fd]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Pd.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}pa(Pd);const $d=".bs.scrollspy",Hd=`activate${$d}`,qd=`click${$d}`,Rd=`load${$d}.data-api`,Bd="active",Vd="[href]",zd=".nav-link",Wd=`${zd}, .nav-item > ${zd}, .list-group-item`,Yd={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Kd={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ud extends $a{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 Yd}static get DefaultType(){return Kd}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=ra(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&&(Ia.off(this._config.target,qd),Ia.on(this._config.target,qd,Vd,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(i(s),!n)return}else r||t||i(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=qa.find(Vd,this._config.target);for(const e of t){if(!e.hash||oa(e))continue;const t=qa.findOne(decodeURI(e.hash),this._element);sa(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(Bd),this._activateParents(t),Ia.trigger(this._element,Hd,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))qa.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Bd);else for(const e of qa.parents(t,".nav, .list-group"))for(const t of qa.prev(e,Wd))t.classList.add(Bd)}_clearActiveClass(t){t.classList.remove(Bd);const e=qa.find(`${Vd}.${Bd}`,t);for(const t of e)t.classList.remove(Bd)}static jQueryInterface(t){return this.each(function(){const e=Ud.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]()}})}}Ia.on(window,Rd,()=>{for(const t of qa.find('[data-bs-spy="scroll"]'))Ud.getOrCreateInstance(t)}),pa(Ud);const Xd=".bs.tab",Qd=`hide${Xd}`,Gd=`hidden${Xd}`,Jd=`show${Xd}`,Zd=`shown${Xd}`,tu=`click${Xd}`,eu=`keydown${Xd}`,iu=`load${Xd}`,nu="ArrowLeft",ru="ArrowRight",su="ArrowUp",ou="ArrowDown",au="Home",lu="End",cu="active",du="fade",uu="show",hu=".dropdown-toggle",pu=`:not(${hu})`,fu='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',gu=`${`.nav-link${pu}, .list-group-item${pu}, [role="tab"]${pu}`}, ${fu}`,mu=`.${cu}[data-bs-toggle="tab"], .${cu}[data-bs-toggle="pill"], .${cu}[data-bs-toggle="list"]`;class vu extends $a{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ia.on(this._element,eu,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?Ia.trigger(e,Qd,{relatedTarget:t}):null;Ia.trigger(t,Jd,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(cu),this._activate(qa.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),Ia.trigger(t,Zd,{relatedTarget:e})):t.classList.add(uu)},t,t.classList.contains(du))}_deactivate(t,e){if(!t)return;t.classList.remove(cu),t.blur(),this._deactivate(qa.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),Ia.trigger(t,Gd,{relatedTarget:e})):t.classList.remove(uu)},t,t.classList.contains(du))}_keydown(t){if(![nu,ru,su,ou,au,lu].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!oa(t));let i;if([au,lu].includes(t.key))i=e[t.key===au?0:e.length-1];else{const n=[ru,ou].includes(t.key);i=ma(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),vu.getOrCreateInstance(i).show())}_getChildren(){return qa.find(gu,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=qa.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const r=qa.findOne(t,i);r&&r.classList.toggle(n,e)};n(hu,cu),n(".dropdown-menu",uu),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(cu)}_getInnerElement(t){return t.matches(gu)?t:qa.findOne(gu,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=vu.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}Ia.on(document,tu,fu,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),oa(this)||vu.getOrCreateInstance(this).show()}),Ia.on(window,iu,()=>{for(const t of qa.find(mu))vu.getOrCreateInstance(t)}),pa(vu);const bu=".bs.toast",yu=`mouseover${bu}`,_u=`mouseout${bu}`,wu=`focusin${bu}`,Eu=`focusout${bu}`,Au=`hide${bu}`,Su=`hidden${bu}`,ku=`show${bu}`,Cu=`shown${bu}`,Ou="hide",Du="show",xu="showing",Tu={animation:"boolean",autohide:"boolean",delay:"number"},Lu={animation:!0,autohide:!0,delay:5e3};class Iu extends $a{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Lu}static get DefaultType(){return Tu}static get NAME(){return"toast"}show(){if(Ia.trigger(this._element,ku).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ou),ca(this._element),this._element.classList.add(Du,xu),this._queueCallback(()=>{this._element.classList.remove(xu),Ia.trigger(this._element,Cu),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(Ia.trigger(this._element,Au).defaultPrevented)return;this._element.classList.add(xu),this._queueCallback(()=>{this._element.classList.add(Ou),this._element.classList.remove(xu,Du),Ia.trigger(this._element,Su)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Du),super.dispose()}isShown(){return this._element.classList.contains(Du)}_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(){Ia.on(this._element,yu,t=>this._onInteraction(t,!0)),Ia.on(this._element,_u,t=>this._onInteraction(t,!1)),Ia.on(this._element,wu,t=>this._onInteraction(t,!0)),Ia.on(this._element,Eu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Iu.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ra(Iu),pa(Iu),document.addEventListener("DOMContentLoaded",()=>{Array.from(document.querySelectorAll(".dropdown")).forEach(t=>new hc(t)),f.defaultOptions.history=!1,f.formsHandler.netteForms=y,f.initialize(),((t,e={})=>{new gs(t,e)})(new ms(f),{datagrid:{plugins:[new se,new oe,new le,new de,new ue,new he,new ie(y),new re(new bn),new ee(new ps({buttonClass:"btn"})),new ne(new yn(Mt)),new pe]}})});
|
|
20
20
|
//# sourceMappingURL=datagrid-full.js.map
|