/*! * Mekari UI v1.0.10 (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme) * Copyright 2011-2020 Mekari * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/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=t||self)["mekari-ui"]={},t.jQuery,t.Popper)}(this,function(t,e,i){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,i=i&&i.hasOwnProperty("default")?i.default:i;const n="transitionend";function s(t){let i=!1;return e(this).one(o.TRANSITION_END,()=>{i=!0}),setTimeout(()=>{i||o.triggerTransitionEnd(this)},t),this}const o={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"),n=e(t).css("transition-delay");const s=parseFloat(i),o=parseFloat(n);return s||o?(i=i.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(i)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger(n)},supportsTransitionEnd:()=>Boolean(n),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const r=i[s],l=e[s],a=l&&o.isElement(l)?"element":null===(n=l)||"undefined"==typeof n?`${n}`:{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new Error(`${t.toUpperCase()}: `+`Option "${s}" provided type "${a}" `+`but expected type "${r}".`)}var n},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?o.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")}};o.jQueryDetection(),e.fn.emulateTransitionEnd=s,e.event.special[o.TRANSITION_END]={bindType:n,delegateType:n,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const r="4.5.2",l="bs.alert",a=`.${l}`,c=e.fn.alert,h=`close${a}`,d=`closed${a}`,u=`click${a}.data-api`,g="alert",f="fade",m="show";class p{constructor(t){this._element=t}static get VERSION(){return r}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,l),this._element=null}_getRootElement(t){const i=o.getSelectorFromElement(t);let n=!1;return i&&(n=document.querySelector(i)),n||(n=e(t).closest(`.${g}`)[0]),n}_triggerCloseEvent(t){const i=e.Event(h);return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass(m),!e(t).hasClass(f))return void this._destroyElement(t);const i=o.getTransitionDurationFromElement(t);e(t).one(o.TRANSITION_END,e=>this._destroyElement(t,e)).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger(d).remove()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(l);n||(n=new p(this),i.data(l,n)),"close"===t&&n[t](this)})}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(u,'[data-dismiss="alert"]',p._handleDismiss(new p)),e.fn.alert=p._jQueryInterface,e.fn.alert.Constructor=p,e.fn.alert.noConflict=()=>(e.fn.alert=c,p._jQueryInterface);const _="4.5.2",v="bs.button",y=`.${v}`,E=e.fn.button,w="active",b='[data-toggle="buttons"]',C='input:not([type="hidden"])',T=".active",S=`click${y}.data-api`,$=`focus${y}.data-api `+`blur${y}.data-api`,A=`load${y}.data-api`;class D{constructor(t){this._element=t}static get VERSION(){return _}toggle(){let t=!0,i=!0;const n=e(this._element).closest(b)[0];if(n){const s=this._element.querySelector(C);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(w))t=!1;else{const t=n.querySelector(T);t&&e(t).removeClass(w)}t&&("checkbox"!==s.type&&"radio"!==s.type||(s.checked=!this._element.classList.contains(w)),e(s).trigger("change")),s.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(w)),t&&e(this._element).toggleClass(w))}dispose(){e.removeData(this._element,v),this._element=null}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(v);i||(i=new D(this),e(this).data(v,i)),"toggle"===t&&i[t]()})}}e(document).on(S,'[data-toggle^="button"]',t=>{let i=t.target;const n=i;if(e(i).hasClass("btn")||(i=e(i).closest(".btn")[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))t.preventDefault();else{const s=i.querySelector(C);if(s&&(s.hasAttribute("disabled")||s.classList.contains("disabled")))return void t.preventDefault();("LABEL"!==n.tagName||s&&"checkbox"!==s.type)&&D._jQueryInterface.call(e(i),"toggle")}}).on($,'[data-toggle^="button"]',t=>{const i=e(t.target).closest(".btn")[0];e(i).toggleClass("focus",/^focus(in)?$/.test(t.type))}),e(window).on(A,()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,i=t.length;e(e.fn.button=E,D._jQueryInterface);const N="carousel",k="4.5.2",I="bs.carousel",O=`.${I}`,j=e.fn[N],x=37,P=39,R=500,q=40,L={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",B="prev",H="left",M="right",U=`slide${O}`,W=`slid${O}`,V=`keydown${O}`,z=`mouseenter${O}`,K=`mouseleave${O}`,X=`touchstart${O}`,Y=`touchmove${O}`,J=`touchend${O}`,G=`pointerdown${O}`,Z=`pointerup${O}`,tt=`dragstart${O}`,et=`load${O}.data-api`,it=`click${O}.data-api`,nt="carousel",st="active",ot="slide",rt="carousel-item-right",lt="carousel-item-left",at="carousel-item-next",ct="carousel-item-prev",ht="pointer-event",dt=".active",ut=".active.carousel-item",gt=".carousel-item",ft=".carousel-item img",mt=".carousel-item-next, .carousel-item-prev",pt=".carousel-indicators",_t={TOUCH:"touch",PEN:"pen"};class vt{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(pt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return k}static get Default(){return L}next(){this._isSliding||this._slide(Q)}nextWhenVisible(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()}prev(){this._isSliding||this._slide(B)}pause(t){t||(this._isPaused=!0),this._element.querySelector(mt)&&(o.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._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(ut);const i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(W,()=>this.to(t));if(i===t)return this.pause(),void this.cycle();const n=t>i?Q:B;this._slide(n,this._items[t])}dispose(){e(this._element).off(O),e.removeData(this._element,I),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={...L,...t},o.typeCheckConfig(N,t,F),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=q)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(V,t=>this._keydown(t)),"hover"===this._config.pause&&e(this._element).on(z,t=>this.pause(t)).on(K,t=>this.cycle(t)),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&_t[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},i=t=>{t.originalEvent.touches&&t.originalEvent.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&_t[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),R+this._config.interval))};e(this._element.querySelectorAll(ft)).on(tt,t=>t.preventDefault()),this._pointerEvent?(e(this._element).on(G,e=>t(e)),e(this._element).on(Z,t=>n(t)),this._element.classList.add(ht)):(e(this._element).on(X,e=>t(e)),e(this._element).on(Y,t=>i(t)),e(this._element).on(J,t=>n(t)))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case x:t.preventDefault(),this.prev();break;case P:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(gt)):[],this._items.indexOf(t)}_getItemByDirection(t,e){const i=t===Q,n=t===B,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(t===B?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,i){const n=this._getItemIndex(t),s=this._getItemIndex(this._element.querySelector(ut)),o=e.Event(U,{relatedTarget:t,direction:i,from:s,to:n});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const i=[].slice.call(this._indicatorsElement.querySelectorAll(dt));e(i).removeClass(st);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(st)}}_slide(t,i){const n=this._element.querySelector(ut),s=this._getItemIndex(n),r=i||n&&this._getItemByDirection(t,n),l=this._getItemIndex(r),a=Boolean(this._interval);let c,h,d;if(t===Q?(c=lt,h=at,d=H):(c=rt,h=ct,d=M),r&&e(r).hasClass(st))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!n||!r)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(r);const u=e.Event(W,{relatedTarget:r,direction:d,from:s,to:l});if(e(this._element).hasClass(ot)){e(r).addClass(h),o.reflow(r),e(n).addClass(c),e(r).addClass(c);const t=parseInt(r.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval;const i=o.getTransitionDurationFromElement(n);e(n).one(o.TRANSITION_END,()=>{e(r).removeClass(`${c} ${h}`).addClass(st),e(n).removeClass(`${st} ${h} ${c}`),this._isSliding=!1,setTimeout(()=>e(this._element).trigger(u),0)}).emulateTransitionEnd(i)}else e(n).removeClass(st),e(r).addClass(st),this._isSliding=!1,e(this._element).trigger(u);a&&this.cycle()}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(I),n={...L,...e(this).data()};"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if(i||(i=new vt(this,n),e(this).data(I,i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())})}static _dataApiClickHandler(t){const i=o.getSelectorFromElement(this);if(!i)return;const n=e(i)[0];if(!n||!e(n).hasClass(nt))return;const s={...e(n).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(s.interval=!1),vt._jQueryInterface.call(e(n),s),r&&e(n).data(I).to(r),t.preventDefault()}}e(document).on(it,"[data-slide], [data-slide-to]",vt._dataApiClickHandler),e(window).on(et,()=>{const t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]'));for(let i=0,n=t.length;i(e.fn[N]=j,vt._jQueryInterface);const yt="collapse",Et="4.5.2",wt="bs.collapse",bt=`.${wt}`,Ct=e.fn[yt],Tt={toggle:!0,parent:""},St={toggle:"boolean",parent:"(string|element)"},$t=`show${bt}`,At=`shown${bt}`,Dt=`hide${bt}`,Nt=`hidden${bt}`,kt=`click${bt}.data-api`,It="show",Ot="collapse",jt="collapsing",xt="collapsed",Pt="width",Rt="height",qt=".show, .collapsing",Lt='[data-toggle="collapse"]';class Ft{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(Lt));for(let e=0,n=i.length;ee===t);null!==s&&r.length>0&&(this._selector=s,this._triggerArray.push(n))}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 Et}static get Default(){return Tt}toggle(){e(this._element).hasClass(It)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(It))return;let t,i;if(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(qt)).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(Ot))).length&&(t=null),t&&(i=e(t).not(this._selector).data(wt))&&i._isTransitioning)return;const n=e.Event($t);if(e(this._element).trigger(n),n.isDefaultPrevented())return;t&&(Ft._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(wt,null));const s=this._getDimension();e(this._element).removeClass(Ot).addClass(jt),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(xt).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${s[0].toUpperCase()+s.slice(1)}`,l=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,()=>{e(this._element).removeClass(jt).addClass(`${Ot} ${It}`),this._element.style[s]="",this.setTransitioning(!1),e(this._element).trigger(At)}).emulateTransitionEnd(l),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(It))return;const t=e.Event(Dt);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,o.reflow(this._element),e(this._element).addClass(jt).removeClass(`${Ot} ${It}`);const n=this._triggerArray.length;if(n>0)for(let t=0;t{this.setTransitioning(!1),e(this._element).removeClass(jt).addClass(Ot).trigger(Nt)}).emulateTransitionEnd(s)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,wt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...Tt,...t}).toggle=Boolean(t.toggle),o.typeCheckConfig(yt,t,St),t}_getDimension(){return e(this._element).hasClass(Pt)?Pt:Rt}_getParent(){let t;o.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}"]`,n=[].slice.call(t.querySelectorAll(i));return e(n).each((t,e)=>{this._addAriaAndCollapsedClass(Ft._getTargetFromElement(e),[e])}),t}_addAriaAndCollapsedClass(t,i){const n=e(t).hasClass(It);i.length&&e(i).toggleClass(xt,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=o.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(wt);const s={...Tt,...i.data(),..."object"==typeof t&&t?t:{}};if(!n&&s.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new Ft(this,s),i.data(wt,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on(kt,Lt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),n=o.getSelectorFromElement(this),s=[].slice.call(document.querySelectorAll(n));e(s).each(function(){const t=e(this),n=t.data(wt)?"toggle":i.data();Ft._jQueryInterface.call(t,n)})}),e.fn[yt]=Ft._jQueryInterface,e.fn[yt].Constructor=Ft,e.fn[yt].noConflict=()=>(e.fn[yt]=Ct,Ft._jQueryInterface);const Qt="dropdown",Bt="4.5.2",Ht="bs.dropdown",Mt=`.${Ht}`,Ut=e.fn[Qt],Wt=27,Vt=32,zt=9,Kt=38,Xt=40,Yt=3,Jt=new RegExp(`${Kt}|${Xt}|${Wt}`),Gt=`hide${Mt}`,Zt=`hidden${Mt}`,te=`show${Mt}`,ee=`shown${Mt}`,ie=`click${Mt}`,ne=`click${Mt}.data-api`,se=`keydown${Mt}.data-api`,oe=`keyup${Mt}.data-api`,re="disabled",le="show",ae="dropup",ce="dropright",he="dropleft",de="dropdown-menu-right",ue="position-static",ge='[data-toggle="dropdown"]',fe=".dropdown-menu",me=".navbar-nav",pe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",_e="top-start",ve="top-end",ye="bottom-start",Ee="bottom-end",we="right-start",be="left-start",Ce={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Te={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class Se{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 Bt}static get Default(){return Ce}static get DefaultType(){return Te}toggle(){if(this._element.disabled||e(this._element).hasClass(re))return;const t=e(this._menu).hasClass(le);Se._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||e(this._element).hasClass(re)||e(this._menu).hasClass(le))return;const n={relatedTarget:this._element},s=e.Event(te,n),r=Se._getParentFromElement(this._element);if(e(r).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&t){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");let t=this._element;"parent"===this._config.reference?t=r:o.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(ue),this._popper=new i(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(r).closest(me).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(le),e(r).toggleClass(le).trigger(e.Event(ee,n))}}hide(){if(this._element.disabled||e(this._element).hasClass(re)||!e(this._menu).hasClass(le))return;const t={relatedTarget:this._element},i=e.Event(Gt,t),n=Se._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(le),e(n).toggleClass(le).trigger(e.Event(Zt,t)))}dispose(){e.removeData(this._element,Ht),e(this._element).off(Mt),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(ie,t=>{t.preventDefault(),t.stopPropagation(),this.toggle()})}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},o.typeCheckConfig(Qt,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=Se._getParentFromElement(this._element);t&&(this._menu=t.querySelector(fe))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i=ye;return t.hasClass(ae)?i=e(this._menu).hasClass(de)?ve:_e:t.hasClass(ce)?i=we:t.hasClass(he)?i=be:e(this._menu).hasClass(de)&&(i=Ee),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(Ht);if(i||(i=new Se(this,"object"==typeof t?t:null),e(this).data(Ht,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}static _clearMenus(t){if(t&&(t.which===Yt||"keyup"===t.type&&t.which!==zt))return;const i=[].slice.call(document.querySelectorAll(ge));for(let n=0,s=i.length;ne(t).is(":visible"));if(0===s.length)return;let o=s.indexOf(t.target);t.which===Kt&&o>0&&o--,t.which===Xt&&o{t.stopPropagation()}),e.fn[Qt]=Se._jQueryInterface,e.fn[Qt].Constructor=Se,e.fn[Qt].noConflict=()=>(e.fn[Qt]=Ut,Se._jQueryInterface);const $e="modal",Ae="4.5.2",De="bs.modal",Ne=`.${De}`,ke=e.fn[$e],Ie=27,Oe={backdrop:!0,keyboard:!0,focus:!0,show:!0},je={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},xe=`hide${Ne}`,Pe=`hidePrevented${Ne}`,Re=`hidden${Ne}`,qe=`show${Ne}`,Le=`shown${Ne}`,Fe=`focusin${Ne}`,Qe=`resize${Ne}`,Be=`click.dismiss${Ne}`,He=`keydown.dismiss${Ne}`,Me=`mouseup.dismiss${Ne}`,Ue=`mousedown.dismiss${Ne}`,We=`click${Ne}.data-api`,Ve="modal-dialog-scrollable",ze="modal-scrollbar-measure",Ke="modal-backdrop",Xe="modal-open",Ye="fade",Je="show",Ge="modal-static",Ze=".modal-dialog",ti=".modal-body",ei='[data-dismiss="modal"]',ii=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ni=".sticky-top";class si{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Ze),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return Ae}static get Default(){return Oe}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;e(this._element).hasClass(Ye)&&(this._isTransitioning=!0);const i=e.Event(qe,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(Be,ei,t=>this.hide(t)),e(this._dialog).on(Ue,()=>{e(this._element).one(Me,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(xe);if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const n=e(this._element).hasClass(Ye);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Fe),e(this._element).removeClass(Je),e(this._element).off(Be),e(this._dialog).off(Ue),n){const t=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,t=>this._hideModal(t)).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach(t=>e(t).off(Ne)),e(document).off(Fe),e.removeData(this._element,De),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={...Oe,...t},o.typeCheckConfig($e,t,je),t}_triggerBackdropTransition(){if("static"===this._config.backdrop){const t=e.Event(Pe);if(e(this._element).trigger(t),t.defaultPrevented)return;const i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add(Ge);const n=o.getTransitionDurationFromElement(this._dialog);e(this._element).off(o.TRANSITION_END),e(this._element).one(o.TRANSITION_END,()=>{this._element.classList.remove(Ge),i||e(this._element).one(o.TRANSITION_END,()=>{this._element.style.overflowY=""}).emulateTransitionEnd(this._element,n)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()}_showElement(t){const i=e(this._element).hasClass(Ye),n=this._dialog?this._dialog.querySelector(ti):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(Ve)&&n?n.scrollTop=0:this._element.scrollTop=0,i&&o.reflow(this._element),e(this._element).addClass(Je),this._config.focus&&this._enforceFocus();const s=e.Event(Le,{relatedTarget:t}),r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(s)};if(i){const t=o.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(o.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_enforceFocus(){e(document).off(Fe).on(Fe,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(He,t=>{this._config.keyboard&&t.which===Ie?(t.preventDefault(),this.hide()):this._config.keyboard||t.which!==Ie||this._triggerBackdropTransition()}):this._isShown||e(this._element).off(He)}_setResizeEvent(){this._isShown?e(window).on(Qe,t=>this.handleUpdate(t)):e(window).off(Qe)}_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(Xe),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(Re)})}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(Ye)?Ye:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ke,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(Be,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&this._triggerBackdropTransition()}),i&&o.reflow(this._backdrop),e(this._backdrop).addClass(Je),!t)return;if(!i)return void t();const n=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(Je);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Ye)){const t=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.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){const n=i.style.paddingRight,s=e(i).css("padding-right");e(i).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}),e(i).each((t,i)=>{const n=i.style.marginRight,s=e(i).css("margin-right");e(i).data("margin-right",n).css("margin-right",`${parseFloat(s)-this._scrollbarWidth}px`)});const n=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}e(document.body).addClass(Xe)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(ii));e(t).each((t,i)=>{const n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""});const i=[].slice.call(document.querySelectorAll(`${ni}`));e(i).each((t,i)=>{const n=e(i).data("margin-right");"undefined"!=typeof n&&e(i).css("margin-right",n).removeData("margin-right")});const n=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className=ze,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 n=e(this).data(De);const s={...Oe,...e(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new si(this,s),e(this).data(De,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}else s.show&&n.show(i)})}}e(document).on(We,'[data-toggle="modal"]',function(t){let i;const n=o.getSelectorFromElement(this);n&&(i=document.querySelector(n));const s=e(i).data(De)?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(qe,t=>{t.isDefaultPrevented()||r.one(Re,()=>{e(this).is(":visible")&&this.focus()})});si._jQueryInterface.call(e(i),s,this)}),e.fn[$e]=si._jQueryInterface,e.fn[$e].Constructor=si,e.fn[$e].noConflict=()=>(e.fn[$e]=ke,si._jQueryInterface);const oi=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ri={"*":["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:[]},li=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,ai=/^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 ci(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===oi.indexOf(i)||Boolean(t.nodeValue.match(li)||t.nodeValue.match(ai));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t{ci(t,l)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const di="tooltip",ui="4.5.2",gi="bs.tooltip",fi=`.${gi}`,mi=e.fn[di],pi="bs-tooltip",_i=new RegExp(`(^|\\s)${pi}\\S+`,"g"),vi=["sanitize","whiteList","sanitizeFn"],yi={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)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Ei={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},wi={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ri,popperConfig:null},bi="show",Ci="out",Ti={HIDE:`hide${fi}`,HIDDEN:`hidden${fi}`,SHOW:`show${fi}`,SHOWN:`shown${fi}`,INSERTED:`inserted${fi}`,CLICK:`click${fi}`,FOCUSIN:`focusin${fi}`,FOCUSOUT:`focusout${fi}`,MOUSEENTER:`mouseenter${fi}`,MOUSELEAVE:`mouseleave${fi}`},Si="fade",$i="show",Ai=".tooltip-inner",Di=".arrow",Ni="hover",ki="focus",Ii="click",Oi="manual";class ji{constructor(t,e){if("undefined"==typeof i)throw new TypeError("Bootstrap's tooltips require Popper.js (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 ui}static get Default(){return wi}static get NAME(){return di}static get DATA_KEY(){return gi}static get Event(){return Ti}static get EVENT_KEY(){return fi}static get DefaultType(){return yi}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 n=e(t.currentTarget).data(i);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(e(this.getTipElement()).hasClass($i))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 n=o.findShadowRoot(this.element),s=e.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!s)return;const r=this.getTipElement(),l=o.getUID(this.constructor.NAME);r.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&e(r).addClass(Si);const a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(a);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($i),"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===Ci&&this._leave(null,this)};if(e(this.tip).hasClass(Si)){const t=o.getTransitionDurationFromElement(this.tip);e(this.tip).one(o.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const i=this.getTipElement(),n=e.Event(this.constructor.Event.HIDE),s=()=>{this._hoverState!==bi&&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(n),!n.isDefaultPrevented()){if(e(i).removeClass($i),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Ii]=!1,this._activeTrigger[ki]=!1,this._activeTrigger[Ni]=!1,e(this.tip).hasClass(Si)){const t=o.getTransitionDurationFromElement(i);e(i).one(o.TRANSITION_END,s).emulateTransitionEnd(t)}else s();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`${pi}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(Ai)),this.getTitle()),e(t).removeClass(`${Si} ${$i}`)}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=hi(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:Di},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:o.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return Ei[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(t!==Oi){const i=t===Ni?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Ni?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(i,this.config.selector,t=>this._enter(t)).on(n,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 n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusin"===t.type?ki:Ni]=!0),e(i.getTipElement()).hasClass($i)||i._hoverState===bi?i._hoverState=bi:(clearTimeout(i._timeout),i._hoverState=bi,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(()=>{i._hoverState===bi&&i.show()},i.config.delay.show):i.show())}_leave(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusout"===t.type?ki:Ni]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=Ci,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(()=>{i._hoverState===Ci&&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!==vi.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()),o.typeCheckConfig(di,t,this.constructor.DefaultType),t.sanitize&&(t.template=hi(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(_i);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(Si),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(gi);const n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new ji(this,n),e(this).data(gi,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[di]=ji._jQueryInterface,e.fn[di].Constructor=ji,e.fn[di].noConflict=()=>(e.fn[di]=mi,ji._jQueryInterface);const xi="popover",Pi="4.5.2",Ri="bs.popover",qi=`.${Ri}`,Li=e.fn[xi],Fi="bs-popover",Qi=new RegExp(`(^|\\s)${Fi}\\S+`,"g"),Bi={...ji.Default,placement:"right",trigger:"click",content:"",template:''},Hi={...ji.DefaultType,content:"(string|element|function)"},Mi="fade",Ui="show",Wi=".popover-header",Vi=".popover-body",zi={HIDE:`hide${qi}`,HIDDEN:`hidden${qi}`,SHOW:`show${qi}`,SHOWN:`shown${qi}`,INSERTED:`inserted${qi}`,CLICK:`click${qi}`,FOCUSIN:`focusin${qi}`,FOCUSOUT:`focusout${qi}`,MOUSEENTER:`mouseenter${qi}`,MOUSELEAVE:`mouseleave${qi}`};class Ki extends ji{static get VERSION(){return Pi}static get Default(){return Bi}static get NAME(){return xi}static get DATA_KEY(){return Ri}static get Event(){return zi}static get EVENT_KEY(){return qi}static get DefaultType(){return Hi}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Fi}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(Wi),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(Vi),i),t.removeClass(`${Mi} ${Ui}`)}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(Qi);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Ri);const n="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new Ki(this,n),e(this).data(Ri,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[xi]=Ki._jQueryInterface,e.fn[xi].Constructor=Ki,e.fn[xi].noConflict=()=>(e.fn[xi]=Li,Ki._jQueryInterface);const Xi="scrollspy",Yi="4.5.2",Ji="bs.scrollspy",Gi=`.${Ji}`,Zi=e.fn[Xi],tn={offset:10,method:"auto",target:""},en={offset:"number",method:"string",target:"(string|element)"},nn=`activate${Gi}`,sn=`scroll${Gi}`,on=`load${Gi}.data-api`,rn="dropdown-item",ln="active",an=".nav, .list-group",cn=".nav-link",hn=".nav-item",dn=".list-group-item",un=".dropdown",gn=".dropdown-item",fn=".dropdown-toggle",mn="offset",pn="position";class _n{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} ${cn},`+`${this._config.target} ${dn},`+`${this._config.target} ${gn}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(sn,t=>this._process(t)),this.refresh(),this._process()}static get VERSION(){return Yi}static get Default(){return tn}refresh(){const t=this._scrollElement===this._scrollElement.window?mn:pn,i="auto"===this._config.method?t:this._config.method,n=i===pn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(t=>{let s;const r=o.getSelectorFromElement(t);if(r&&(s=document.querySelector(r)),s){const t=s.getBoundingClientRect();if(t.width||t.height)return[e(s)[i]().top+n,r]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){e.removeData(this._element,Ji),e(this._scrollElement).off(Gi),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={...tn,..."object"==typeof t&&t?t:{}}).target&&o.isElement(t.target)){let i=e(t.target).attr("id");i||(i=o.getUID(Xi),e(t.target).attr("id",i)),t.target=`#${i}`}return o.typeCheckConfig(Xi,t,en),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&&t0)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`${e}[data-target="${t}"],${e}[href="${t}"]`),n=e([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass(rn)?(n.closest(un).find(fn).addClass(ln),n.addClass(ln)):(n.addClass(ln),n.parents(an).prev(`${cn}, ${dn}`).addClass(ln),n.parents(an).prev(hn).children(cn).addClass(ln)),e(this._scrollElement).trigger(nn,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(t=>t.classList.contains(ln)).forEach(t=>t.classList.remove(ln))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Ji);if(i||(i=new _n(this,"object"==typeof t&&t),e(this).data(Ji,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e(window).on(on,()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let i=t.length;i--;){const n=e(t[i]);_n._jQueryInterface.call(n,n.data())}}),e.fn[Xi]=_n._jQueryInterface,e.fn[Xi].Constructor=_n,e.fn[Xi].noConflict=()=>(e.fn[Xi]=Zi,_n._jQueryInterface);const vn="4.5.2",yn="bs.tab",En=`.${yn}`,wn=e.fn.tab,bn=`hide${En}`,Cn=`hidden${En}`,Tn=`show${En}`,Sn=`shown${En}`,$n=`click${En}.data-api`,An="dropdown-menu",Dn="active",Nn="disabled",kn="fade",In="show",On=".dropdown",jn=".nav, .list-group",xn=".active",Pn="> li > .active",Rn=".dropdown-toggle",qn="> .dropdown-menu .active";class Ln{constructor(t){this._element=t}static get VERSION(){return vn}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(Dn)||e(this._element).hasClass(Nn))return;let t,i;const n=e(this._element).closest(jn)[0],s=o.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Pn:xn;i=(i=e.makeArray(e(n).find(t)))[i.length-1]}const r=e.Event(bn,{relatedTarget:this._element}),l=e.Event(Tn,{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(l),l.isDefaultPrevented()||r.isDefaultPrevented())return;s&&(t=document.querySelector(s)),this._activate(this._element,n);const a=()=>{const t=e.Event(Cn,{relatedTarget:this._element}),n=e.Event(Sn,{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(n)};t?this._activate(t,t.parentNode,a):a()}dispose(){e.removeData(this._element,yn),this._element=null}_activate(t,i,n){const s=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(xn):e(i).find(Pn))[0],r=n&&s&&e(s).hasClass(kn),l=()=>this._transitionComplete(t,s,n);if(s&&r){const t=o.getTransitionDurationFromElement(s);e(s).removeClass(In).one(o.TRANSITION_END,l).emulateTransitionEnd(t)}else l()}_transitionComplete(t,i,n){if(i){e(i).removeClass(Dn);const t=e(i.parentNode).find(qn)[0];t&&e(t).removeClass(Dn),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(e(t).addClass(Dn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),o.reflow(t),t.classList.contains(kn)&&t.classList.add(In),t.parentNode&&e(t.parentNode).hasClass(An)){const i=e(t).closest(On)[0];if(i){const t=[].slice.call(i.querySelectorAll(Rn));e(t).addClass(Dn)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(yn);if(n||(n=new Ln(this),i.data(yn,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on($n,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Ln._jQueryInterface.call(e(this),"show")}),e.fn.tab=Ln._jQueryInterface,e.fn.tab.Constructor=Ln,e.fn.tab.noConflict=()=>(e.fn.tab=wn,Ln._jQueryInterface);var Fn=function(){var t=e(".dropdown-with-pill"),i=e(".dropdown-with-select"),n=e(".dropdown-action--search");t.each(function(){var t=e(this).find(".dropdown-selected-list"),i=e(this).find(".dropdown-menu-list"),n=i.attr("data-select-name"),s=e(this).find(".dropdown-menu .is-selected").map(function(){return e(this).attr("data-val")}).get();t.length||(e(this).append(""),t=e(this).find(".dropdown-selected-list"));var o=s,r=Array.isArray(o),l=0;for(o=r?o:o[Symbol.iterator]();;){var a;if(r){if(l>=o.length)break;a=o[l++]}else{if((l=o.next()).done)break;a=l.value}var c=a,h=e(this).find(".dropdown-item[data-val='"+c+"']").attr("data-id");t.append(""+c+" ")}var d=e(".dropdown-with-pill .badge .ic");Qn(d),i.bind("DOMNodeInserted",function(t){t.target!==i[0]&&t.target.addEventListener("click",Bn)})}),i.each(function(){var t=e(this).find(".dropdown-menu-list").attr("data-select-name"),i=e(this).find(".dropdown-menu .is-selected"),n=i.attr("data-id"),s=i.text();s?(e(this).find(".dropdown-toggle").html(s),e(this).append("")):e(this).append("")});var s=e(".dropdown-with-pill .dropdown-item"),o=e(".dropdown-with-select .dropdown-item");s.click(Bn),o.click(Bn),n.each(function(){var t=e(this).find("input[type='text']"),i=t.closest(".dropdown-menu");t.keyup(function(t){var n=i.find(".dropdown-menu-list .dropdown-item").not(".text-link"),s=t.currentTarget.value.toLocaleLowerCase();n.each(function(){e(this).text().toLocaleLowerCase().includes(s)?e(this).removeClass("d-none"):e(this).addClass("d-none")});var o=i.find(".dropdown-menu-list .dropdown-item.d-none").not(".text-link"),r=i.find("span.dropdown-not-found");o.length===n.length?r.length?r.removeClass("d-none"):i.append('No data found'):r.addClass("d-none")})})},Qn=function(t){t.click(function(){var t=e(this).closest(".badge"),i=t.attr("data-val"),n=t.attr("data-id");t.closest(".dropdown-selected-list").find("input[value='"+n+"']").remove(),t.closest(".dropdown-with-pill").find(".is-selected[data-val='"+i+"']").removeClass("is-selected"),t.remove()})},Bn=function(){var t,i=e(event.currentTarget);if(i.closest(".dropdown").hasClass("dropdown-with-select")?t=".dropdown-with-select":i.closest(".dropdown").hasClass("dropdown-with-pill")&&(t=".dropdown-with-pill"),!i.hasClass("dropdown-action")){var n=i.closest(t),s=n.find(".dropdown-selected-list");".dropdown-with-select"==t&&n.find(".dropdown-item").removeClass("is-selected"),i.addClass("is-selected");var o=i.attr("data-id"),r=n.find(".dropdown-menu-list").attr("data-select-name");if(".dropdown-with-pill"==t){var l=i.attr("data-val");s.append(""+l+" ");var a=s.find(".badge[data-val='"+l+"'] .ic");Qn(a)}else".dropdown-with-select"==t&&(n.find(".dropdown-toggle").addClass("selected").html(i.text()),s.html(""))}};e(document).ready(function(){Fn()});var Hn=function(){Mn()},Mn=function(){e(".checkallbox-wrapper").each(function(){var t=e(this).attr("data-checkall"),i=e(this).find(".checkallbox-parent[data-checkall = '"+t+"']"),n=e(this).find("input[type='checkbox'][data-checkall = '"+t+"']").not(".checkallbox-parent");Un(i,n),Wn(i,n),Vn(i,n)})},Un=function(t,i){var n=i.length;i.filter(function(){return!0===e(this).is(":checked")}).length===n&&n>0?t.prop("checked",!0):t.prop("checked",!1)},Wn=function(t,i){t.change(function(){e(this).is(":checked")?i.prop("checked",!0):i.prop("checked",!1)})},Vn=function(t,e){e.change(function(){Un(t,e)})};e(document).ready(function(){Hn()});var zn=function(){e('[data-toggle="tooltip"]').tooltip({trigger:"hover"})};e(document).ready(function(){zn()}),t.Alert=p,t.Button=D,t.Carousel=vt,t.Collapse=Ft,t.Dropdown=Se,t.MekariDropdown=Fn,t.MekariForm=Hn,t.MekariTooltip=zn,t.Modal=si,t.Popover=Ki,t.Scrollspy=_n,t.Tab=Ln,t.Tooltip=ji,t.Util=o,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=mekari-ui.min.js.map