-
Notifications
You must be signed in to change notification settings - Fork 8
/
arizona-bootstrap.min.js
7 lines (7 loc) · 60.8 KB
/
arizona-bootstrap.min.js
1
2
3
4
5
6
7
/*!
* Arizona Bootstrap v2.0.18 (https://github.com/az-digital/arizona-bootstrap)
* Copyright 2022 The Arizona Board of Regents on behalf of The University of Arizona
* Licensed under MIT (https://github.com/az-digital/arizona-bootstrap/blob/main/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["arizona-bootstrap"]={},t.jQuery,t.Popper)}(this,(function(t,e,i){"use strict";const s="transitionend";const n={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let i=e(t).css("transition-duration"),s=e(t).css("transition-delay");const n=parseFloat(i),o=parseFloat(s);return n||o?(i=i.split(",")[0],s=s.split(",")[0],1e3*(parseFloat(i)+parseFloat(s))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger(s)},supportsTransitionEnd:()=>Boolean(s),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const r=i[o],a=e[o],l=a&&n.isElement(a)?"element":null===(s=a)||"undefined"==typeof s?`${s}`:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(l))throw new Error(`${t.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${r}".`)}var s},findShadowRoot(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?n.findShadowRoot(t.parentNode):null},jQueryDetection(){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};n.jQueryDetection(),e.fn.emulateTransitionEnd=function(t){let i=!1;return e(this).one(n.TRANSITION_END,(()=>{i=!0})),setTimeout((()=>{i||n.triggerTransitionEnd(this)}),t),this},e.event.special[n.TRANSITION_END]={bindType:s,delegateType:s,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const o="bs.alert",r=e.fn.alert;class a{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,o),this._element=null}_getRootElement(t){const i=n.getSelectorFromElement(t);let s=!1;return i&&(s=document.querySelector(i)),s||(s=e(t).closest(".alert")[0]),s}_triggerCloseEvent(t){const i=e.Event("close.bs.alert");return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass("show"),!e(t).hasClass("fade"))return void this._destroyElement(t);const i=n.getTransitionDurationFromElement(t);e(t).one(n.TRANSITION_END,(e=>this._destroyElement(t,e))).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger("closed.bs.alert").remove()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let s=i.data(o);s||(s=new a(this),i.data(o,s)),"close"===t&&s[t](this)}))}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',a._handleDismiss(new a)),e.fn.alert=a._jQueryInterface,e.fn.alert.Constructor=a,e.fn.alert.noConflict=()=>(e.fn.alert=r,a._jQueryInterface);const l="bs.button",c=e.fn.button,h="active",d='[data-toggle^="button"]',u='input:not([type="hidden"])',g=".btn";class f{constructor(t){this._element=t,this.shouldAvoidTriggerChange=!1}static get VERSION(){return"4.6.2"}toggle(){let t=!0,i=!0;const s=e(this._element).closest('[data-toggle="buttons"]')[0];if(s){const n=this._element.querySelector(u);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(h))t=!1;else{const t=s.querySelector(".active");t&&e(t).removeClass(h)}t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains(h)),this.shouldAvoidTriggerChange||e(n).trigger("change")),n.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(h)),t&&e(this._element).toggleClass(h))}dispose(){e.removeData(this._element,l),this._element=null}static _jQueryInterface(t,i){return this.each((function(){const s=e(this);let n=s.data(l);n||(n=new f(this),s.data(l,n)),n.shouldAvoidTriggerChange=i,"toggle"===t&&n[t]()}))}}e(document).on("click.bs.button.data-api",d,(t=>{let i=t.target;const s=i;if(e(i).hasClass("btn")||(i=e(i).closest(g)[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))t.preventDefault();else{const n=i.querySelector(u);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==s.tagName&&"LABEL"===i.tagName||f._jQueryInterface.call(e(i),"toggle","INPUT"===s.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",d,(t=>{const i=e(t.target).closest(g)[0];e(i).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,i=t.length;e<i;e++){const i=t[e],s=i.querySelector(u);s.checked||s.hasAttribute("checked")?i.classList.add(h):i.classList.remove(h)}t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'));for(let e=0,i=t.length;e<i;e++){const i=t[e];"true"===i.getAttribute("aria-pressed")?i.classList.add(h):i.classList.remove(h)}})),e.fn.button=f._jQueryInterface,e.fn.button.Constructor=f,e.fn.button.noConflict=()=>(e.fn.button=c,f._jQueryInterface);const m="carousel",_="bs.carousel",p=e.fn[m],v="active",b="next",y="prev",E="slid.bs.carousel",T=".active.carousel-item",C={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},w={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},S={TOUCH:"touch",PEN:"pen"};class A{constructor(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return"4.6.2"}static get Default(){return C}next(){this._isSliding||this._slide(b)}nextWhenVisible(){const t=e(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()}prev(){this._isSliding||this._slide(y)}pause(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(n.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(T);const i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(E,(()=>this.to(t)));if(i===t)return this.pause(),void this.cycle();const s=t>i?b:y;this._slide(s,this._items[t])}dispose(){e(this._element).off(".bs.carousel"),e.removeData(this._element,_),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...C,...t},n.typeCheckConfig(m,t,w),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(t=>this.pause(t))).on("mouseleave.bs.carousel",(t=>this.cycle(t))),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&S[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},i=t=>{this.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-this.touchStartX},s=t=>{this._pointerEvent&&S[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(t=>t.preventDefault())),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(e=>t(e))),e(this._element).on("pointerup.bs.carousel",(t=>s(t))),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(e=>t(e))),e(this._element).on("touchmove.bs.carousel",(t=>i(t))),e(this._element).on("touchend.bs.carousel",(t=>s(t))))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)}_getItemByDirection(t,e){const i=t===b,s=t===y,n=this._getItemIndex(e),o=this._items.length-1;if((s&&0===n||i&&n===o)&&!this._config.wrap)return e;const r=(n+(t===y?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,i){const s=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(T)),o=e.Event("slide.bs.carousel",{relatedTarget:t,direction:i,from:n,to:s});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const i=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(i).removeClass(v);const s=this._indicatorsElement.children[this._getItemIndex(t)];s&&e(s).addClass(v)}}_updateInterval(){const t=this._activeElement||this._element.querySelector(T);if(!t)return;const e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,i){const s=this._element.querySelector(T),o=this._getItemIndex(s),r=i||s&&this._getItemByDirection(t,s),a=this._getItemIndex(r),l=Boolean(this._interval);let c,h,d;if(t===b?(c="carousel-item-left",h="carousel-item-next",d="left"):(c="carousel-item-right",h="carousel-item-prev",d="right"),r&&e(r).hasClass(v))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!s||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const u=e.Event(E,{relatedTarget:r,direction:d,from:o,to:a});if(e(this._element).hasClass("slide")){e(r).addClass(h),n.reflow(r),e(s).addClass(c),e(r).addClass(c);const t=n.getTransitionDurationFromElement(s);e(s).one(n.TRANSITION_END,(()=>{e(r).removeClass(`${c} ${h}`).addClass(v),e(s).removeClass(`active ${h} ${c}`),this._isSliding=!1,setTimeout((()=>e(this._element).trigger(u)),0)})).emulateTransitionEnd(t)}else e(s).removeClass(v),e(r).addClass(v),this._isSliding=!1,e(this._element).trigger(u);l&&this.cycle()}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(_),s={...C,...e(this).data()};"object"==typeof t&&(s={...s,...t});const n="string"==typeof t?t:s.slide;if(i||(i=new A(this,s),e(this).data(_,i)),"number"==typeof t)i.to(t);else if("string"==typeof n){if("undefined"==typeof i[n])throw new TypeError(`No method named "${n}"`);i[n]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}))}static _dataApiClickHandler(t){const i=n.getSelectorFromElement(this);if(!i)return;const s=e(i)[0];if(!s||!e(s).hasClass("carousel"))return;const o={...e(s).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(o.interval=!1),A._jQueryInterface.call(e(s),o),r&&e(s).data(_).to(r),t.preventDefault()}}e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",A._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]'));for(let i=0,s=t.length;i<s;i++){const s=e(t[i]);A._jQueryInterface.call(s,s.data())}})),e.fn[m]=A._jQueryInterface,e.fn[m].Constructor=A,e.fn[m].noConflict=()=>(e.fn[m]=p,A._jQueryInterface);const N="collapse",D="bs.collapse",I=e.fn[N],k="show",j="collapse",O="collapsing",P="collapsed",x="width",L='[data-toggle="collapse"]',q={toggle:!0,parent:""},R={toggle:"boolean",parent:"(string|element)"};class F{constructor(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll(`[data-toggle="collapse"][href="#${t.id}"],[data-toggle="collapse"][data-target="#${t.id}"]`));const i=[].slice.call(document.querySelectorAll(L));for(let e=0,s=i.length;e<s;e++){const s=i[e],o=n.getSelectorFromElement(s),r=[].slice.call(document.querySelectorAll(o)).filter((e=>e===t));null!==o&&r.length>0&&(this._selector=o,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return"4.6.2"}static get Default(){return q}toggle(){e(this._element).hasClass(k)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(k))return;let t,i;if(this._parent&&(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(j))),0===t.length&&(t=null)),t&&(i=e(t).not(this._selector).data(D),i&&i._isTransitioning))return;const s=e.Event("show.bs.collapse");if(e(this._element).trigger(s),s.isDefaultPrevented())return;t&&(F._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(D,null));const o=this._getDimension();e(this._element).removeClass(j).addClass(O),this._element.style[o]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(P).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,a=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,(()=>{e(this._element).removeClass(O).addClass("collapse show"),this._element.style[o]="",this.setTransitioning(!1),e(this._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(a),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(k))return;const t=e.Event("hide.bs.collapse");if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,n.reflow(this._element),e(this._element).addClass(O).removeClass("collapse show");const s=this._triggerArray.length;if(s>0)for(let t=0;t<s;t++){const i=this._triggerArray[t],s=n.getSelectorFromElement(i);null!==s&&(e([].slice.call(document.querySelectorAll(s))).hasClass(k)||e(i).addClass(P).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";const o=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,(()=>{this.setTransitioning(!1),e(this._element).removeClass(O).addClass(j).trigger("hidden.bs.collapse")})).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,D),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...q,...t}).toggle=Boolean(t.toggle),n.typeCheckConfig(N,t,R),t}_getDimension(){return e(this._element).hasClass(x)?x:"height"}_getParent(){let t;n.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const i=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,s=[].slice.call(t.querySelectorAll(i));return e(s).each(((t,e)=>{this._addAriaAndCollapsedClass(F._getTargetFromElement(e),[e])})),t}_addAriaAndCollapsedClass(t,i){const s=e(t).hasClass(k);i.length&&e(i).toggleClass(P,!s).attr("aria-expanded",s)}static _getTargetFromElement(t){const e=n.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each((function(){const i=e(this);let s=i.data(D);const n={...q,...i.data(),..."object"==typeof t&&t?t:{}};if(!s&&n.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(n.toggle=!1),s||(s=new F(this,n),i.data(D,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError(`No method named "${t}"`);s[t]()}}))}}e(document).on("click.bs.collapse.data-api",L,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),s=n.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(s));e(o).each((function(){const t=e(this),s=t.data(D)?"toggle":i.data();F._jQueryInterface.call(t,s)}))})),e.fn[N]=F._jQueryInterface,e.fn[N].Constructor=F,e.fn[N].noConflict=()=>(e.fn[N]=I,F._jQueryInterface);const Q="dropdown",B="bs.dropdown",$=e.fn[Q],H=new RegExp("38|40|27"),U="disabled",M="show",W="dropdown-menu-right",z="hide.bs.dropdown",V="hidden.bs.dropdown",K="click.bs.dropdown.data-api",X="keydown.bs.dropdown.data-api",Y='[data-toggle="dropdown"]',J=".dropdown-menu",G={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Z={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class tt{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return"4.6.2"}static get Default(){return G}static get DefaultType(){return Z}toggle(){if(this._element.disabled||e(this._element).hasClass(U))return;const t=e(this._menu).hasClass(M);tt._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||e(this._element).hasClass(U)||e(this._menu).hasClass(M))return;const s={relatedTarget:this._element},o=e.Event("show.bs.dropdown",s),r=tt._getParentFromElement(this._element);if(e(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&t){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=r:n.isElement(this._config.reference)&&(t=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(r).addClass("position-static"),this._popper=new i(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(r).closest(".navbar-nav").length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(M),e(r).toggleClass(M).trigger(e.Event("shown.bs.dropdown",s))}}hide(){if(this._element.disabled||e(this._element).hasClass(U)||!e(this._menu).hasClass(M))return;const t={relatedTarget:this._element},i=e.Event(z,t),s=tt._getParentFromElement(this._element);e(s).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(M),e(s).toggleClass(M).trigger(e.Event(V,t)))}dispose(){e.removeData(this._element,B),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){e(this._element).on("click.bs.dropdown",(t=>{t.preventDefault(),t.stopPropagation(),this.toggle()}))}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},n.typeCheckConfig(Q,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=tt._getParentFromElement(this._element);t&&(this._menu=t.querySelector(J))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i="bottom-start";return t.hasClass("dropup")?i=e(this._menu).hasClass(W)?"top-end":"top-start":t.hasClass("dropright")?i="right-start":t.hasClass("dropleft")?i="left-start":e(this._menu).hasClass(W)&&(i="bottom-end"),i}_detectNavbar(){return e(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)},t):t.offset=this._config.offset,t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),{...t,...this._config.popperConfig}}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(B);if(i||(i=new tt(this,"object"==typeof t?t:null),e(this).data(B,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}static _clearMenus(t){if(t&&(3===t.which||"keyup"===t.type&&9!==t.which))return;const i=[].slice.call(document.querySelectorAll(Y));for(let s=0,n=i.length;s<n;s++){const n=tt._getParentFromElement(i[s]),o=e(i[s]).data(B),r={relatedTarget:i[s]};if(t&&"click"===t.type&&(r.clickEvent=t),!o)continue;const a=o._menu;if(!e(n).hasClass(M))continue;if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(n,t.target))continue;const l=e.Event(z,r);e(n).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),i[s].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),e(a).removeClass(M),e(n).removeClass(M).trigger(e.Event(V,r)))}}static _getParentFromElement(t){let e;const i=n.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode}static _dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(J).length):!H.test(t.which))return;if(this.disabled||e(this).hasClass(U))return;const i=tt._getParentFromElement(this),s=e(i).hasClass(M);if(!s&&27===t.which)return;if(t.preventDefault(),t.stopPropagation(),!s||27===t.which||32===t.which)return 27===t.which&&e(i.querySelector(Y)).trigger("focus"),void e(this).trigger("click");const n=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((t=>e(t).is(":visible")));if(0===n.length)return;let o=n.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<n.length-1&&o++,o<0&&(o=0),n[o].focus()}}e(document).on(X,Y,tt._dataApiKeydownHandler).on(X,J,tt._dataApiKeydownHandler).on(`${K} keyup.bs.dropdown.data-api`,tt._clearMenus).on(K,Y,(function(t){t.preventDefault(),t.stopPropagation(),tt._jQueryInterface.call(e(this),"toggle")})).on(K,".dropdown form",(t=>{t.stopPropagation()})),e.fn[Q]=tt._jQueryInterface,e.fn[Q].Constructor=tt,e.fn[Q].noConflict=()=>(e.fn[Q]=$,tt._jQueryInterface);const et="bs.modal",it=e.fn.modal,st="modal-open",nt="fade",ot="show",rt="modal-static",at="hidden.bs.modal",lt="show.bs.modal",ct="focusin.bs.modal",ht="resize.bs.modal",dt="click.dismiss.bs.modal",ut="keydown.dismiss.bs.modal",gt="mousedown.dismiss.bs.modal",ft=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mt={backdrop:!0,keyboard:!0,focus:!0,show:!0},_t={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"};class pt{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return"4.6.2"}static get Default(){return mt}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const i=e.Event(lt,{relatedTarget:t});e(this._element).trigger(i),i.isDefaultPrevented()||(this._isShown=!0,e(this._element).hasClass(nt)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(dt,'[data-dismiss="modal"]',(t=>this.hide(t))),e(this._dialog).on(gt,(()=>{e(this._element).one("mouseup.dismiss.bs.modal",(t=>{e(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const i=e.Event("hide.bs.modal");if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const s=e(this._element).hasClass(nt);if(s&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(ct),e(this._element).removeClass(ot),e(this._element).off(dt),e(this._dialog).off(gt),s){const t=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,(t=>this._hideModal(t))).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((t=>e(t).off(".bs.modal"))),e(document).off(ct),e.removeData(this._element,et),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={...mt,...t},n.typeCheckConfig("modal",t,_t),t}_triggerBackdropTransition(){const t=e.Event("hidePrevented.bs.modal");if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add(rt);const s=n.getTransitionDurationFromElement(this._dialog);e(this._element).off(n.TRANSITION_END),e(this._element).one(n.TRANSITION_END,(()=>{this._element.classList.remove(rt),i||e(this._element).one(n.TRANSITION_END,(()=>{this._element.style.overflowY=""})).emulateTransitionEnd(this._element,s)})).emulateTransitionEnd(s),this._element.focus()}_showElement(t){const i=e(this._element).hasClass(nt),s=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),e(this._dialog).hasClass("modal-dialog-scrollable")&&s?s.scrollTop=0:this._element.scrollTop=0,i&&n.reflow(this._element),e(this._element).addClass(ot),this._config.focus&&this._enforceFocus();const o=e.Event("shown.bs.modal",{relatedTarget:t}),r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(o)};if(i){const t=n.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_enforceFocus(){e(document).off(ct).on(ct,(t=>{document!==t.target&&this._element!==t.target&&0===e(this._element).has(t.target).length&&this._element.focus()}))}_setEscapeEvent(){this._isShown?e(this._element).on(ut,(t=>{this._config.keyboard&&27===t.which?(t.preventDefault(),this.hide()):this._config.keyboard||27!==t.which||this._triggerBackdropTransition()})):this._isShown||e(this._element).off(ut)}_setResizeEvent(){this._isShown?e(window).on(ht,(t=>this.handleUpdate(t))):e(window).off(ht)}_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._showBackdrop((()=>{e(document.body).removeClass(st),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(at)}))}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(nt)?nt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(dt,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),i&&n.reflow(this._backdrop),e(this._backdrop).addClass(ot),!t)return;if(!i)return void t();const s=n.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(s)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(ot);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(nt)){const t=n.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(n.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}else t&&t()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}_setScrollbar(){if(this._isBodyOverflowing){const t=[].slice.call(document.querySelectorAll(ft)),i=[].slice.call(document.querySelectorAll(".sticky-top"));e(t).each(((t,i)=>{const s=i.style.paddingRight,n=e(i).css("padding-right");e(i).data("padding-right",s).css("padding-right",`${parseFloat(n)+this._scrollbarWidth}px`)})),e(i).each(((t,i)=>{const s=i.style.marginRight,n=e(i).css("margin-right");e(i).data("margin-right",s).css("margin-right",parseFloat(n)-this._scrollbarWidth+"px")}));const s=document.body.style.paddingRight,n=e(document.body).css("padding-right");e(document.body).data("padding-right",s).css("padding-right",`${parseFloat(n)+this._scrollbarWidth}px`)}e(document.body).addClass(st)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(ft));e(t).each(((t,i)=>{const s=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=s||""}));const i=[].slice.call(document.querySelectorAll(".sticky-top"));e(i).each(((t,i)=>{const s=e(i).data("margin-right");"undefined"!=typeof s&&e(i).css("margin-right",s).removeData("margin-right")}));const s=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=s||""}_getScrollbarWidth(){const t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,i){return this.each((function(){let s=e(this).data(et);const n={...mt,...e(this).data(),..."object"==typeof t&&t?t:{}};if(s||(s=new pt(this,n),e(this).data(et,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError(`No method named "${t}"`);s[t](i)}else n.show&&s.show(i)}))}}e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){let i;const s=n.getSelectorFromElement(this);s&&(i=document.querySelector(s));const o=e(i).data(et)?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(lt,(t=>{t.isDefaultPrevented()||r.one(at,(()=>{e(this).is(":visible")&&this.focus()}))}));pt._jQueryInterface.call(e(i),o,this)})),e.fn.modal=pt._jQueryInterface,e.fn.modal.Constructor=pt,e.fn.modal.noConflict=()=>(e.fn.modal=it,pt._jQueryInterface);const vt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],bt=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,yt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Et(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===vt.indexOf(i)||Boolean(bt.test(t.nodeValue)||yt.test(t.nodeValue));const s=e.filter((t=>t instanceof RegExp));for(let t=0,e=s.length;t<e;t++)if(s[t].test(i))return!0;return!1}function Tt(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=Object.keys(e),o=[].slice.call(s.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],s=i.nodeName.toLowerCase();if(-1===n.indexOf(i.nodeName.toLowerCase())){i.parentNode.removeChild(i);continue}const r=[].slice.call(i.attributes),a=[].concat(e["*"]||[],e[s]||[]);r.forEach((t=>{Et(t,a)||i.removeAttribute(t.nodeName)}))}return s.body.innerHTML}const Ct="tooltip",wt="bs.tooltip",St=e.fn.tooltip,At=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Nt=["sanitize","whiteList","sanitizeFn"],Dt="fade",It="show",kt="show",jt="out",Ot="hover",Pt="focus",xt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Lt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},qt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Rt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class Ft{constructor(t,e){if("undefined"==typeof i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get VERSION(){return"4.6.2"}static get Default(){return Lt}static get NAME(){return Ct}static get DATA_KEY(){return wt}static get Event(){return Rt}static get EVENT_KEY(){return".bs.tooltip"}static get DefaultType(){return qt}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const i=this.constructor.DATA_KEY;let s=e(t.currentTarget).data(i);s||(s=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,s)),s._activeTrigger.click=!s._activeTrigger.click,s._isWithActiveTrigger()?s._enter(null,s):s._leave(null,s)}else{if(e(this.getTipElement()).hasClass(It))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");const t=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(t);const s=n.findShadowRoot(this.element),o=e.contains(null!==s?s:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!o)return;const r=this.getTipElement(),a=n.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass(Dt);const l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);const h=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(h),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,r,this._getPopperConfig(c)),e(r).addClass(It),e(r).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const d=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===jt&&this._leave(null,this)};if(e(this.tip).hasClass(Dt)){const t=n.getTransitionDurationFromElement(this.tip);e(this.tip).one(n.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const i=this.getTipElement(),s=e.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==kt&&i.parentNode&&i.parentNode.removeChild(i),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),e(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(e(this.element).trigger(s),!s.isDefaultPrevented()){if(e(i).removeClass(It),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass(Dt)){const t=n.getTransitionDurationFromElement(i);e(i).one(n.TRANSITION_END,o).emulateTransitionEnd(t)}else o();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`bs-tooltip-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=Tt(i,this.config.whiteList,this.config.sanitizeFn)),t.html(i)):t.text(i):this.config.html?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text())}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}_getPopperConfig(t){return{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t),...this.config.popperConfig}}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:n.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return xt[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((t=>{if("click"===t)e(this.element).on(this.constructor.Event.CLICK,this.config.selector,(t=>this.toggle(t)));else if("manual"!==t){const i=t===Ot?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s=t===Ot?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(i,this.config.selector,(t=>this._enter(t))).on(s,this.config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this.element&&this.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}_enter(t,i){const s=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(s))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(s,i)),t&&(i._activeTrigger["focusin"===t.type?Pt:Ot]=!0),e(i.getTipElement()).hasClass(It)||i._hoverState===kt?i._hoverState=kt:(clearTimeout(i._timeout),i._hoverState=kt,i.config.delay&&i.config.delay.show?i._timeout=setTimeout((()=>{i._hoverState===kt&&i.show()}),i.config.delay.show):i.show())}_leave(t,i){const s=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(s))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(s,i)),t&&(i._activeTrigger["focusout"===t.type?Pt:Ot]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=jt,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout((()=>{i._hoverState===jt&&i.hide()}),i.config.delay.hide):i.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const i=e(this.element).data();return Object.keys(i).forEach((t=>{-1!==Nt.indexOf(t)&&delete i[t]})),"number"==typeof(t={...this.constructor.Default,...i,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),n.typeCheckConfig(Ct,t,this.constructor.DefaultType),t.sanitize&&(t.template=Tt(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(At);null!==i&&i.length&&t.removeClass(i.join(""))}_handlePopperPlacementChange(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),i=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(Dt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each((function(){const i=e(this);let s=i.data(wt);const n="object"==typeof t&&t;if((s||!/dispose|hide/.test(t))&&(s||(s=new Ft(this,n),i.data(wt,s)),"string"==typeof t)){if("undefined"==typeof s[t])throw new TypeError(`No method named "${t}"`);s[t]()}}))}}e.fn.tooltip=Ft._jQueryInterface,e.fn.tooltip.Constructor=Ft,e.fn.tooltip.noConflict=()=>(e.fn.tooltip=St,Ft._jQueryInterface);const Qt="bs.popover",Bt=e.fn.popover,$t=new RegExp("(^|\\s)bs-popover\\S+","g"),Ht={...Ft.Default,placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Ut={...Ft.DefaultType,content:"(string|element|function)"},Mt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Wt extends Ft{static get VERSION(){return"4.6.2"}static get Default(){return Ht}static get NAME(){return"popover"}static get DATA_KEY(){return Qt}static get Event(){return Mt}static get EVENT_KEY(){return".bs.popover"}static get DefaultType(){return Ut}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`bs-popover-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(".popover-body"),i),t.removeClass("fade show")}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match($t);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(Qt);const s="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new Wt(this,s),e(this).data(Qt,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e.fn.popover=Wt._jQueryInterface,e.fn.popover.Constructor=Wt,e.fn.popover.noConflict=()=>(e.fn.popover=Bt,Wt._jQueryInterface);const zt="scrollspy",Vt="bs.scrollspy",Kt=e.fn[zt],Xt="active",Yt="position",Jt=".nav, .list-group",Gt={offset:10,method:"auto",target:""},Zt={offset:"number",method:"string",target:"(string|element)"};class te{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} .nav-link,${this._config.target} .list-group-item,${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(t=>this._process(t))),this.refresh(),this._process()}static get VERSION(){return"4.6.2"}static get Default(){return Gt}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":Yt,i="auto"===this._config.method?t:this._config.method,s=i===Yt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((t=>{let o;const r=n.getSelectorFromElement(t);if(r&&(o=document.querySelector(r)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[e(o)[i]().top+s,r]}return null})).filter(Boolean).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){e.removeData(this._element,Vt),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...Gt,..."object"==typeof t&&t?t:{}}).target&&n.isElement(t.target)){let i=e(t.target).attr("id");i||(i=n.getUID(zt),e(t.target).attr("id",i)),t.target=`#${i}`}return n.typeCheckConfig(zt,t,Zt),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const i=this._selector.split(",").map((e=>`${e}[data-target="${t}"],${e}[href="${t}"]`)),s=e([].slice.call(document.querySelectorAll(i.join(","))));s.hasClass("dropdown-item")?(s.closest(".dropdown").find(".dropdown-toggle").addClass(Xt),s.addClass(Xt)):(s.addClass(Xt),s.parents(Jt).prev(".nav-link, .list-group-item").addClass(Xt),s.parents(Jt).prev(".nav-item").children(".nav-link").addClass(Xt)),e(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter((t=>t.classList.contains(Xt))).forEach((t=>t.classList.remove(Xt)))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data(Vt);if(i||(i=new te(this,"object"==typeof t&&t),e(this).data(Vt,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e(window).on("load.bs.scrollspy.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let i=t.length;i--;){const s=e(t[i]);te._jQueryInterface.call(s,s.data())}})),e.fn[zt]=te._jQueryInterface,e.fn[zt].Constructor=te,e.fn[zt].noConflict=()=>(e.fn[zt]=Kt,te._jQueryInterface);const ee="bs.tab",ie=e.fn.tab,se="active",ne="fade",oe="show",re=".active",ae="> li > .active";class le{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(se)||e(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))return;let t,i;const s=e(this._element).closest(".nav, .list-group")[0],o=n.getSelectorFromElement(this._element);if(s){const t="UL"===s.nodeName||"OL"===s.nodeName?ae:re;i=e.makeArray(e(s).find(t)),i=i[i.length-1]}const r=e.Event("hide.bs.tab",{relatedTarget:this._element}),a=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,s);const l=()=>{const t=e.Event("hidden.bs.tab",{relatedTarget:this._element}),s=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(s)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,ee),this._element=null}_activate(t,i,s){const o=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(re):e(i).find(ae))[0],r=s&&o&&e(o).hasClass(ne),a=()=>this._transitionComplete(t,o,s);if(o&&r){const t=n.getTransitionDurationFromElement(o);e(o).removeClass(oe).one(n.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,i,s){if(i){e(i).removeClass(se);const t=e(i.parentNode).find("> .dropdown-menu .active")[0];t&&e(t).removeClass(se),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}e(t).addClass(se),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),n.reflow(t),t.classList.contains(ne)&&t.classList.add(oe);let o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&e(o).hasClass("dropdown-menu")){const i=e(t).closest(".dropdown")[0];if(i){const t=[].slice.call(i.querySelectorAll(".dropdown-toggle"));e(t).addClass(se)}t.setAttribute("aria-expanded",!0)}s&&s()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let s=i.data(ee);if(s||(s=new le(this),i.data(ee,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError(`No method named "${t}"`);s[t]()}}))}}e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),le._jQueryInterface.call(e(this),"show")})),e.fn.tab=le._jQueryInterface,e.fn.tab.Constructor=le,e.fn.tab.noConflict=()=>(e.fn.tab=ie,le._jQueryInterface);const ce="bs.toast",he=e.fn.toast,de="hide",ue="show",ge="showing",fe="click.dismiss.bs.toast",me={animation:!0,autohide:!0,delay:500},_e={animation:"boolean",autohide:"boolean",delay:"number"};class pe{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return"4.6.2"}static get DefaultType(){return _e}static get Default(){return me}show(){const t=e.Event("show.bs.toast");if(e(this._element).trigger(t),t.isDefaultPrevented())return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const i=()=>{this._element.classList.remove(ge),this._element.classList.add(ue),e(this._element).trigger("shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(de),n.reflow(this._element),this._element.classList.add(ge),this._config.animation){const t=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}hide(){if(!this._element.classList.contains(ue))return;const t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}dispose(){this._clearTimeout(),this._element.classList.contains(ue)&&this._element.classList.remove(ue),e(this._element).off(fe),e.removeData(this._element,ce),this._element=null,this._config=null}_getConfig(t){return t={...me,...e(this._element).data(),..."object"==typeof t&&t?t:{}},n.typeCheckConfig("toast",t,this.constructor.DefaultType),t}_setListeners(){e(this._element).on(fe,'[data-dismiss="toast"]',(()=>this.hide()))}_close(){const t=()=>{this._element.classList.add(de),e(this._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(ue),this._config.animation){const i=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,t).emulateTransitionEnd(i)}else t()}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static _jQueryInterface(t){return this.each((function(){const i=e(this);let s=i.data(ce);if(s||(s=new pe(this,"object"==typeof t&&t),i.data(ce,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError(`No method named "${t}"`);s[t](this)}}))}}function ve(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(n=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(s.key,"string"))?n:String(n)),s)}var n}function be(){return be=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},be.apply(this,arguments)}e.fn.toast=pe._jQueryInterface,e.fn.toast.Constructor=pe,e.fn.toast.noConflict=()=>(e.fn.toast=he,pe._jQueryInterface);var ye="offcanvasmenu",Ee="az.offcanvasmenu",Te=e.fn[ye],Ce={toggle:!0,parent:""},we={toggle:"boolean",parent:"(string|element)"},Se="open",Ae="offcanvas-toggle",Ne="closing",De="closed",Ie="offcanvas-toggle-body-freeze",ke='[data-toggle="offcanvas"]',je=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._backdrop=null,this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="offcanvas"][href="#'+t.id+'"],[data-toggle="offcanvas"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(ke)),s=0,o=i.length;s<o;s++){var r=i[s],a=n.getSelectorFromElement(r),l=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&l.length>0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndOffcanvasmenuClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var i,s,o=t.prototype;return o.toggle=function(){e(this._element).hasClass(Se)?this.close():this.open()},o._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},o.open=function(){var i,s,o=this;if(!(this._isTransitioning||e(this._element).hasClass(Se)||(this._parent&&0===(i=[].slice.call(this._parent.querySelectorAll(".open, .closing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(Ae)}))).length&&(i=null),i&&(s=e(i).not(this._selector).data(Ee))&&s._isTransitioning))){var r=e.Event("open.az.offcanvasmenu");if(e(this._element).trigger(r),!r.isDefaultPrevented()){i&&(t._jQueryInterface.call(e(i).not(this._selector),"close"),s||e(i).data(Ee,null)),this._backdrop=document.createElement("div"),this._backdrop.className="menu-backdrop",this._backdrop.setAttribute("data-toggle","offcanvas"),this._backdrop.setAttribute("aria-controls",this._config.target),this._backdrop.setAttribute("data-target",this._config.target),this._backdrop.setAttribute("aria-expanded","true"),e(this._backdrop).appendTo(document.body),this._backdrop.classList.add("show"),e(this._element).removeClass(Ae).addClass(Ne),this._triggerArray.length&&e(this._triggerArray).removeClass(De).attr("aria-expanded",!0),this.setTransitioning(!0);var a=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,(function(){e(o._element).removeClass(Ne).addClass("offcanvas-toggle open"),o.setTransitioning(!1),document.body.classList.add(Ie),e(o._element).trigger("opened.az.offcanvasmenu")})).emulateTransitionEnd(a)}}},o.close=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(Se)){var i=e.Event("close.az.offcanvasmenu");if(e(this._element).trigger(i),!i.isDefaultPrevented()){n.reflow(this._element),e(this._element).addClass(Ne).removeClass("offcanvas-toggle open");var s=this._triggerArray.length;if(s>0)for(var o=0;o<s;o++){var r=this._triggerArray[o],a=n.getSelectorFromElement(r);null!==a&&(e([].slice.call(document.querySelectorAll(a))).hasClass(Se)||e(r).addClass(De).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,(function(){t.setTransitioning(!1),t._removeBackdrop(),document.body.classList.remove(Ie),e(t._element).removeClass(Ne).addClass(Ae).trigger("closed.az.offcanvasmenu")})).emulateTransitionEnd(l)}}},o.setTransitioning=function(t){this._isTransitioning=t},o.dispose=function(){e.removeData(this._element,Ee),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},o._getConfig=function(t){return(t=be({},Ce,t)).toggle=Boolean(t.toggle),n.typeCheckConfig(ye,t,we),t},o._getParent=function(){var i,s=this;n.isElement(this._config.parent)?(i=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(i=this._config.parent[0])):i=document.querySelector(this._config.parent);var o='[data-toggle="offcanvas"][data-parent="'+this._config.parent+'"]',r=[].slice.call(i.querySelectorAll(o));return e(r).each((function(e,i){s._addAriaAndOffcanvasmenuClass(t._getTargetFromElement(i),[i])})),i},o._addAriaAndOffcanvasmenuClass=function(t,i){var s=e(t).hasClass(Se);i.length&&e(i).toggleClass(De,!s).attr("aria-expanded",s)},t._getTargetFromElement=function(t){var e=n.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(i){return this.each((function(){var s=e(this),n=s.data(Ee),o=be({},Ce,s.data(),"object"==typeof i&&i?i:{});if(!n&&o.toggle&&"string"==typeof i&&/open|close/.test(i)&&(o.toggle=!1),n||(n=new t(this,o),s.data(Ee,n)),"string"==typeof i){if("undefined"==typeof n[i])throw new TypeError('No method named "'+i+'"');n[i]()}}))},i=t,s=[{key:"AZ_VERSION",get:function(){return"v0.0.4"}},{key:"Default",get:function(){return Ce}}],null&&ve(i.prototype,null),s&&ve(i,s),Object.defineProperty(i,"prototype",{writable:!1}),t}();e(".dropdown.keep-open .dropdown-toggle").on("click",(function(t){(window.innerWidth||document.documentElement.clientWidth)<767&&("true"===e(this).attr("aria-expanded")?(e(this).parent().removeClass("show"),e(this).attr("aria-expanded",!1)):(e(this).parent().addClass("show"),e(this).attr("aria-expanded",!0)),e(this).next(".dropdown-menu").toggle(),t.stopPropagation())})),e(document).on("click.az.offcanvasmenu.data-api",ke,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=e(this),s=n.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(s));e(o).each((function(){var t=e(this),s=t.data(Ee)?"toggle":i.data();je._jQueryInterface.call(t,s)}))})),e.fn[ye]=je._jQueryInterface,e.fn[ye].Constructor=je,e.fn[ye].noConflict=function(){return e.fn[ye]=Te,je._jQueryInterface},t.Alert=a,t.Button=f,t.Carousel=A,t.Collapse=F,t.Dropdown=tt,t.Modal=pt,t.Offcanvasmenu=je,t.Popover=Wt,t.Scrollspy=te,t.Tab=le,t.Toast=pe,t.Tooltip=Ft,t.Util=n}));
//# sourceMappingURL=arizona-bootstrap.min.js.map