/*!
  * Mekari UI v1.0.0-beta (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")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self)["mekari-ui"]={},t.jQuery)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;const n="transitionend";function i(t){let n=!1;return e(this).one(s.TRANSITION_END,()=>{n=!0}),setTimeout(()=>{n||s.triggerTransitionEnd(this)},t),this}const s={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 n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let n=e(t).css("transition-duration"),i=e(t).css("transition-delay");const s=parseFloat(n),o=parseFloat(i);return s||o?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger(n)},supportsTransitionEnd:()=>Boolean(n),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const r=n[o],a=e[o],l=a&&s.isElement(a)?"element":(i=a,{}.toString.call(i).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 i},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?s.findShadowRoot(t.parentNode):null}};e.fn.emulateTransitionEnd=i,e.event.special[s.TRANSITION_END]={bindType:n,delegateType:n,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const o="4.3.1",r="bs.alert",a=`.${r}`,l=e.fn.alert,c={CLOSE:`close${a}`,CLOSED:`closed${a}`,CLICK_DATA_API:`click${a}.data-api`},h={ALERT:"alert",FADE:"fade",SHOW:"show"};class d{constructor(t){this._element=t}static get VERSION(){return o}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,r),this._element=null}_getRootElement(t){const n=s.getSelectorFromElement(t);let i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(`.${h.ALERT}`)[0]),i}_triggerCloseEvent(t){const n=e.Event(c.CLOSE);return e(t).trigger(n),n}_removeElement(t){if(e(t).removeClass(h.SHOW),!e(t).hasClass(h.FADE))return void this._destroyElement(t);const n=s.getTransitionDurationFromElement(t);e(t).one(s.TRANSITION_END,e=>this._destroyElement(t,e)).emulateTransitionEnd(n)}_destroyElement(t){e(t).detach().trigger(c.CLOSED).remove()}static _jQueryInterface(t){return this.each(function(){const n=e(this);let i=n.data(r);i||(i=new d(this),n.data(r,i)),"close"===t&&i[t](this)})}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(c.CLICK_DATA_API,'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn.alert=d._jQueryInterface,e.fn.alert.Constructor=d,e.fn.alert.noConflict=()=>(e.fn.alert=l,d._jQueryInterface);const f="4.3.1",u="bs.button",p=`.${u}`,m=e.fn.button,g={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},_={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:'input:not([type="hidden"])',ACTIVE:".active",BUTTON:".btn"},E={CLICK_DATA_API:`click${p}.data-api`,FOCUS_BLUR_DATA_API:`focus${p}.data-api `+`blur${p}.data-api`};class T{constructor(t){this._element=t}static get VERSION(){return f}toggle(){let t=!0,n=!0;const i=e(this._element).closest(_.DATA_TOGGLE)[0];if(i){const s=this._element.querySelector(_.INPUT);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(g.ACTIVE))t=!1;else{const t=i.querySelector(_.ACTIVE);t&&e(t).removeClass(g.ACTIVE)}if(t){if(s.hasAttribute("disabled")||i.hasAttribute("disabled")||s.classList.contains("disabled")||i.classList.contains("disabled"))return;s.checked=!this._element.classList.contains(g.ACTIVE),e(s).trigger("change")}s.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g.ACTIVE)),t&&e(this._element).toggleClass(g.ACTIVE)}dispose(){e.removeData(this._element,u),this._element=null}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(u);n||(n=new T(this),e(this).data(u,n)),"toggle"===t&&n[t]()})}}e(document).on(E.CLICK_DATA_API,_.DATA_TOGGLE_CARROT,t=>{t.preventDefault();let n=t.target;e(n).hasClass(g.BUTTON)||(n=e(n).closest(_.BUTTON)),T._jQueryInterface.call(e(n),"toggle")}).on(E.FOCUS_BLUR_DATA_API,_.DATA_TOGGLE_CARROT,t=>{const n=e(t.target).closest(_.BUTTON)[0];e(n).toggleClass(g.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn.button=T._jQueryInterface,e.fn.button.Constructor=T,e.fn.button.noConflict=()=>(e.fn.button=m,T._jQueryInterface);const v="carousel",C="4.3.1",S="bs.carousel",I=`.${S}`,O=e.fn[v],A=37,y=39,D=500,b=40,w={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},N={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},L={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},H={SLIDE:`slide${I}`,SLID:`slid${I}`,KEYDOWN:`keydown${I}`,MOUSEENTER:`mouseenter${I}`,MOUSELEAVE:`mouseleave${I}`,TOUCHSTART:`touchstart${I}`,TOUCHMOVE:`touchmove${I}`,TOUCHEND:`touchend${I}`,POINTERDOWN:`pointerdown${I}`,POINTERUP:`pointerup${I}`,DRAG_START:`dragstart${I}`,LOAD_DATA_API:`load${I}.data-api`,CLICK_DATA_API:`click${I}.data-api`},P={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item",POINTER_EVENT:"pointer-event"},R={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",ITEM_IMG:".carousel-item img",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},W={TOUCH:"touch",PEN:"pen"};class k{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(R.INDICATORS),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return C}static get Default(){return w}next(){this._isSliding||this._slide(L.NEXT)}nextWhenVisible(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()}prev(){this._isSliding||this._slide(L.PREV)}pause(t){t||(this._isPaused=!0),this._element.querySelector(R.NEXT_PREV)&&(s.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(R.ACTIVE_ITEM);const n=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(H.SLID,()=>this.to(t));if(n===t)return this.pause(),void this.cycle();const i=t>n?L.NEXT:L.PREV;this._slide(i,this._items[t])}dispose(){e(this._element).off(I),e.removeData(this._element,S),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={...w,...t},s.typeCheckConfig(v,t,N),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=b)return;const e=t/this.touchDeltaX;e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&e(this._element).on(H.KEYDOWN,t=>this._keydown(t)),"hover"===this._config.pause&&e(this._element).on(H.MOUSEENTER,t=>this.pause(t)).on(H.MOUSELEAVE,t=>this.cycle(t)),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&W[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},n=t=>{t.originalEvent.touches&&t.originalEvent.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.originalEvent.touches[0].clientX-this.touchStartX},i=t=>{this._pointerEvent&&W[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),D+this._config.interval))};e(this._element.querySelectorAll(R.ITEM_IMG)).on(H.DRAG_START,t=>t.preventDefault()),this._pointerEvent?(e(this._element).on(H.POINTERDOWN,e=>t(e)),e(this._element).on(H.POINTERUP,t=>i(t)),this._element.classList.add(P.POINTER_EVENT)):(e(this._element).on(H.TOUCHSTART,e=>t(e)),e(this._element).on(H.TOUCHMOVE,t=>n(t)),e(this._element).on(H.TOUCHEND,t=>i(t)))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case A:t.preventDefault(),this.prev();break;case y:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(R.ITEM)):[],this._items.indexOf(t)}_getItemByDirection(t,e){const n=t===L.NEXT,i=t===L.PREV,s=this._getItemIndex(e),o=this._items.length-1;if((i&&0===s||n&&s===o)&&!this._config.wrap)return e;const r=(s+(t===L.PREV?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,n){const i=this._getItemIndex(t),s=this._getItemIndex(this._element.querySelector(R.ACTIVE_ITEM)),o=e.Event(H.SLIDE,{relatedTarget:t,direction:n,from:s,to:i});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const n=[].slice.call(this._indicatorsElement.querySelectorAll(R.ACTIVE));e(n).removeClass(P.ACTIVE);const i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass(P.ACTIVE)}}_slide(t,n){const i=this._element.querySelector(R.ACTIVE_ITEM),o=this._getItemIndex(i),r=n||i&&this._getItemByDirection(t,i),a=this._getItemIndex(r),l=Boolean(this._interval);let c,h,d;if(t===L.NEXT?(c=P.LEFT,h=P.NEXT,d=L.LEFT):(c=P.RIGHT,h=P.PREV,d=L.RIGHT),r&&e(r).hasClass(P.ACTIVE))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!i||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r);const f=e.Event(H.SLID,{relatedTarget:r,direction:d,from:o,to:a});if(e(this._element).hasClass(P.SLIDE)){e(r).addClass(h),s.reflow(r),e(i).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 n=s.getTransitionDurationFromElement(i);e(i).one(s.TRANSITION_END,()=>{e(r).removeClass(`${c} ${h}`).addClass(P.ACTIVE),e(i).removeClass(`${P.ACTIVE} ${h} ${c}`),this._isSliding=!1,setTimeout(()=>e(this._element).trigger(f),0)}).emulateTransitionEnd(n)}else e(i).removeClass(P.ACTIVE),e(r).addClass(P.ACTIVE),this._isSliding=!1,e(this._element).trigger(f);l&&this.cycle()}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(S),i={...w,...e(this).data()};"object"==typeof t&&(i={...i,...t});const s="string"==typeof t?t:i.slide;if(n||(n=new k(this,i),e(this).data(S,n)),"number"==typeof t)n.to(t);else if("string"==typeof s){if("undefined"==typeof n[s])throw new TypeError(`No method named "${s}"`);n[s]()}else i.interval&&i.ride&&(n.pause(),n.cycle())})}static _dataApiClickHandler(t){const n=s.getSelectorFromElement(this);if(!n)return;const i=e(n)[0];if(!i||!e(i).hasClass(P.CAROUSEL))return;const o={...e(i).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(o.interval=!1),k._jQueryInterface.call(e(i),o),r&&e(i).data(S).to(r),t.preventDefault()}}e(document).on(H.CLICK_DATA_API,R.DATA_SLIDE,k._dataApiClickHandler),e(window).on(H.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll(R.DATA_RIDE));for(let n=0,i=t.length;n<i;n++){const i=e(t[n]);k._jQueryInterface.call(i,i.data())}}),e.fn[v]=k._jQueryInterface,e.fn[v].Constructor=k,e.fn[v].noConflict=()=>(e.fn[v]=O,k._jQueryInterface);const $="collapse",F="4.3.1",M="bs.collapse",x=`.${M}`,U=e.fn[$],V={toggle:!0,parent:""},j={toggle:"boolean",parent:"(string|element)"},B={SHOW:`show${x}`,SHOWN:`shown${x}`,HIDE:`hide${x}`,HIDDEN:`hidden${x}`,CLICK_DATA_API:`click${x}.data-api`},G={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},K={WIDTH:"width",HEIGHT:"height"},q={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'};class Q{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 n=[].slice.call(document.querySelectorAll(q.DATA_TOGGLE));for(let e=0,i=n.length;e<i;e++){const i=n[e],o=s.getSelectorFromElement(i),r=[].slice.call(document.querySelectorAll(o)).filter(e=>e===t);null!==o&&r.length>0&&(this._selector=o,this._triggerArray.push(i))}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 F}static get Default(){return V}toggle(){e(this._element).hasClass(G.SHOW)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(G.SHOW))return;let t,n;if(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(q.ACTIVES)).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(G.COLLAPSE))).length&&(t=null),t&&(n=e(t).not(this._selector).data(M))&&n._isTransitioning)return;const i=e.Event(B.SHOW);if(e(this._element).trigger(i),i.isDefaultPrevented())return;t&&(Q._jQueryInterface.call(e(t).not(this._selector),"hide"),n||e(t).data(M,null));const o=this._getDimension();e(this._element).removeClass(G.COLLAPSE).addClass(G.COLLAPSING),this._element.style[o]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(G.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,a=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,()=>{e(this._element).removeClass(G.COLLAPSING).addClass(G.COLLAPSE).addClass(G.SHOW),this._element.style[o]="",this.setTransitioning(!1),e(this._element).trigger(B.SHOWN)}).emulateTransitionEnd(a),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(G.SHOW))return;const t=e.Event(B.HIDE);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,s.reflow(this._element),e(this._element).addClass(G.COLLAPSING).removeClass(G.COLLAPSE).removeClass(G.SHOW);const i=this._triggerArray.length;if(i>0)for(let t=0;t<i;t++){const n=this._triggerArray[t],i=s.getSelectorFromElement(n);if(null!==i){e([].slice.call(document.querySelectorAll(i))).hasClass(G.SHOW)||e(n).addClass(G.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);this._element.style[n]="";const o=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,()=>{this.setTransitioning(!1),e(this._element).removeClass(G.COLLAPSING).addClass(G.COLLAPSE).trigger(B.HIDDEN)}).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,M),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...V,...t}).toggle=Boolean(t.toggle),s.typeCheckConfig($,t,j),t}_getDimension(){return e(this._element).hasClass(K.WIDTH)?K.WIDTH:K.HEIGHT}_getParent(){let t;s.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 n=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,i=[].slice.call(t.querySelectorAll(n));return e(i).each((t,e)=>{this._addAriaAndCollapsedClass(Q._getTargetFromElement(e),[e])}),t}_addAriaAndCollapsedClass(t,n){const i=e(t).hasClass(G.SHOW);n.length&&e(n).toggleClass(G.COLLAPSED,!i).attr("aria-expanded",i)}static _getTargetFromElement(t){const e=s.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each(function(){const n=e(this);let i=n.data(M);const s={...V,...n.data(),..."object"==typeof t&&t?t:{}};if(!i&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),i||(i=new Q(this,s),n.data(M,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e(document).on(B.CLICK_DATA_API,q.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const n=e(this),i=s.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(i));e(o).each(function(){const t=e(this),i=t.data(M)?"toggle":n.data();Q._jQueryInterface.call(t,i)})}),e.fn[$]=Q._jQueryInterface,e.fn[$].Constructor=Q,e.fn[$].noConflict=()=>(e.fn[$]=U,Q._jQueryInterface);for(var Y="undefined"!=typeof window&&"undefined"!=typeof document,X=["Edge","Trident","Firefox"],z=0,Z=0;Z<X.length;Z+=1)if(Y&&navigator.userAgent.indexOf(X[Z])>=0){z=1;break}var J=Y&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},z))}};function tt(t){return t&&"[object Function]"==={}.toString.call(t)}function et(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function nt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function it(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=et(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(n+s+i)?t:it(nt(t))}var st=Y&&!(!window.MSInputMethodContext||!document.documentMode),ot=Y&&/MSIE 10/.test(navigator.userAgent);function rt(t){return 11===t?st:10===t?ot:st||ot}function at(t){if(!t)return document.documentElement;for(var e=rt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===et(n,"position")?at(n):n:t?t.ownerDocument.documentElement:document.documentElement}function lt(t){return null!==t.parentNode?lt(t.parentNode):t}function ct(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,s=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(s,0);var r,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(s))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&at(r.firstElementChild)!==r?at(l):l;var c=lt(t);return c.host?ct(c.host,e):ct(t,lt(e).host)}function ht(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function dt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function ft(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],rt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function ut(t){var e=t.body,n=t.documentElement,i=rt(10)&&getComputedStyle(n);return{height:ft("Height",e,n,i),width:ft("Width",e,n,i)}}var pt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},mt=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),gt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},_t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function Et(t){return _t({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Tt(t){var e={};try{if(rt(10)){e=t.getBoundingClientRect();var n=ht(t,"top"),i=ht(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var s={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?ut(t.ownerDocument):{},r=o.width||t.clientWidth||s.right-s.left,a=o.height||t.clientHeight||s.bottom-s.top,l=t.offsetWidth-r,c=t.offsetHeight-a;if(l||c){var h=et(t);l-=dt(h,"x"),c-=dt(h,"y"),s.width-=l,s.height-=c}return Et(s)}function vt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=rt(10),s="HTML"===e.nodeName,o=Tt(t),r=Tt(e),a=it(t),l=et(e),c=parseFloat(l.borderTopWidth,10),h=parseFloat(l.borderLeftWidth,10);n&&s&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=Et({top:o.top-r.top-c,left:o.left-r.left-h,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!i&&s){var f=parseFloat(l.marginTop,10),u=parseFloat(l.marginLeft,10);d.top-=c-f,d.bottom-=c-f,d.left-=h-u,d.right-=h-u,d.marginTop=f,d.marginLeft=u}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ht(e,"top"),s=ht(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=s*o,t.right+=s*o,t}(d,e)),d}function Ct(t){if(!t||!t.parentElement||rt())return document.documentElement;for(var e=t.parentElement;e&&"none"===et(e,"transform");)e=e.parentElement;return e||document.documentElement}function St(t,e,n,i){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},r=s?Ct(t):ct(t,e);if("viewport"===i)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=vt(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:ht(n),a=e?0:ht(n,"left");return Et({top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:s,height:o})}(r,s);else{var a=void 0;"scrollParent"===i?"BODY"===(a=it(nt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=vt(a,r,s);if("HTML"!==a.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===et(e,"position"))return!0;var i=nt(e);return!!i&&t(i)}(r))o=l;else{var c=ut(t.ownerDocument),h=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var f="number"==typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function It(t,e,n,i,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=St(n,i,o,s),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map(function(t){return _t({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),h=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return h+(d?"-"+d:"")}function Ot(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return vt(n,i?Ct(e):ct(e,n),i)}function At(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function yt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function Dt(t,e,n){n=n.split("-")[0];var i=At(t),s={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[r]=e[r]+e[l]/2-i[l]/2,s[a]=n===a?e[a]-i[c]:e[yt(a)],s}function bt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function wt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=bt(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&tt(n)&&(e.offsets.popper=Et(e.offsets.popper),e.offsets.reference=Et(e.offsets.reference),e=n(e,t))}),e}function Nt(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function Lt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var s=e[i],o=s?""+s+n:t;if("undefined"!=typeof document.body.style[o])return o}return null}function Ht(t){var e=t.ownerDocument;return e?e.defaultView:window}function Pt(t,e,n,i){n.updateBound=i,Ht(t).addEventListener("resize",n.updateBound,{passive:!0});var s=it(t);return function t(e,n,i,s){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(n,i,{passive:!0}),o||t(it(r.parentNode),n,i,s),s.push(r)}(s,"scroll",n.updateBound,n.scrollParents),n.scrollElement=s,n.eventsEnabled=!0,n}function Rt(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Ht(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Wt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function kt(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Wt(e[n])&&(i="px"),t.style[n]=e[n]+i})}var $t=Y&&/Firefox/i.test(navigator.userAgent);function Ft(t,e,n){var i=bt(t,function(t){return t.name===e}),s=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!s){var o="`"+e+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return s}var Mt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],xt=Mt.slice(3);function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xt.indexOf(t),i=xt.slice(n+1).concat(xt.slice(0,n));return e?i.reverse():i}var Vt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function jt(t,e,n,i){var s=[0,0],o=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=r.indexOf(bt(r,function(t){return-1!==t.search(/,|\s/)}));r[a]&&-1===r[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(c=c.map(function(t,i){var s=(1===i?!o:o)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],r=s[2];if(!o)return t;if(0===r.indexOf("%")){var a=void 0;switch(r){case"%p":a=n;break;case"%":case"%r":default:a=i}return Et(a)[e]/100*o}if("vh"===r||"vw"===r){return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(t,s,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){Wt(n)&&(s[e]+=n*("-"===t[i-1]?-1:1))})}),s}var Bt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:gt({},l,o[l]),end:gt({},l,o[l]+o[c]-r[c])};t.offsets.popper=_t({},r,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,s=t.offsets,o=s.popper,r=s.reference,a=i.split("-")[0],l=void 0;return l=Wt(+n)?[+n,0]:jt(n,o,r,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||at(t.instance.popper);t.instance.reference===n&&(n=at(n));var i=Lt("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[i];s.top="",s.left="",s[i]="";var l=St(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);s.top=o,s.left=r,s[i]=a,e.boundaries=l;var c=e.priority,h=t.offsets.popper,d={primary:function(t){var n=h[t];return h[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(h[t],l[t])),gt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=h[n];return h[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(h[n],l[t]-("right"===t?h.width:h.height))),gt({},n,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=_t({},h,d[e](t))}),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Ft(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),c=l?"height":"width",h=l?"Top":"Left",d=h.toLowerCase(),f=l?"left":"top",u=l?"bottom":"right",p=At(i)[c];a[u]-p<r[d]&&(t.offsets.popper[d]-=r[d]-(a[u]-p)),a[d]+p>r[u]&&(t.offsets.popper[d]+=a[d]+p-r[u]),t.offsets.popper=Et(t.offsets.popper);var m=a[d]+a[c]/2-p/2,g=et(t.instance.popper),_=parseFloat(g["margin"+h],10),E=parseFloat(g["border"+h+"Width"],10),T=m-t.offsets.popper[d]-_-E;return T=Math.max(Math.min(r[c]-p,T),0),t.arrowElement=i,t.offsets.arrow=(gt(n={},d,Math.round(T)),gt(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Nt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=St(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],s=yt(i),o=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case Vt.FLIP:r=[i,s];break;case Vt.CLOCKWISE:r=Ut(i);break;case Vt.COUNTERCLOCKWISE:r=Ut(i,!0);break;default:r=e.behavior}return r.forEach(function(a,l){if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],s=yt(i);var c=t.offsets.popper,h=t.offsets.reference,d=Math.floor,f="left"===i&&d(c.right)>d(h.left)||"right"===i&&d(c.left)<d(h.right)||"top"===i&&d(c.bottom)>d(h.top)||"bottom"===i&&d(c.top)<d(h.bottom),u=d(c.left)<d(n.left),p=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),_="left"===i&&u||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,E=-1!==["top","bottom"].indexOf(i),T=!!e.flipVariations&&(E&&"start"===o&&u||E&&"end"===o&&p||!E&&"start"===o&&m||!E&&"end"===o&&g),v=!!e.flipVariationsByContent&&(E&&"start"===o&&p||E&&"end"===o&&u||!E&&"start"===o&&g||!E&&"end"===o&&m),C=T||v;(f||_||C)&&(t.flipped=!0,(f||_)&&(i=r[l+1]),C&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=_t({},t.offsets.popper,Dt(t.instance.popper,t.offsets.reference,t.placement)),t=wt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,s=i.popper,o=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return s[r?"left":"top"]=o[n]-(a?s[r?"width":"height"]:0),t.placement=yt(e),t.offsets.popper=Et(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Ft(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=bt(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,s=t.offsets.popper,o=bt(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r=void 0!==o?o:e.gpuAcceleration,a=at(t.instance.popper),l=Tt(a),c={position:s.position},h=function(t,e){var n=t.offsets,i=n.popper,s=n.reference,o=Math.round,r=Math.floor,a=function(t){return t},l=o(s.width),c=o(i.width),h=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),f=e?h||d||l%2==c%2?o:r:a,u=e?o:a;return{left:f(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:f(i.right)}}(t,window.devicePixelRatio<2||!$t),d="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=Lt("transform"),p=void 0,m=void 0;if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+h.bottom:-l.height+h.bottom:h.top,p="right"===f?"HTML"===a.nodeName?-a.clientWidth+h.right:-l.width+h.right:h.left,r&&u)c[u]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,_="right"===f?-1:1;c[d]=m*g,c[f]=p*_,c.willChange=d+", "+f}var E={"x-placement":t.placement};return t.attributes=_t({},E,t.attributes),t.styles=_t({},c,t.styles),t.arrowStyles=_t({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return kt(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&kt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,s){var o=Ot(s,e,t,n.positionFixed),r=It(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),kt(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Gt=function(){function t(e,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=J(this.update.bind(this)),this.options=_t({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_t({},t.Defaults.modifiers,s.modifiers)).forEach(function(e){i.options.modifiers[e]=_t({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return _t({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&tt(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return mt(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Ot(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=It(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Dt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=wt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Nt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Lt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=Pt(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Rt.call(this)}}]),t}();Gt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Gt.placements=Mt,Gt.Defaults=Bt;const Kt="dropdown",qt="4.3.1",Qt="bs.dropdown",Yt=`.${Qt}`,Xt=e.fn[Kt],zt=27,Zt=32,Jt=9,te=38,ee=40,ne=3,ie=new RegExp(`${te}|${ee}|${zt}`),se={HIDE:`hide${Yt}`,HIDDEN:`hidden${Yt}`,SHOW:`show${Yt}`,SHOWN:`shown${Yt}`,CLICK:`click${Yt}`,CLICK_DATA_API:`click${Yt}.data-api`,KEYDOWN_DATA_API:`keydown${Yt}.data-api`,KEYUP_DATA_API:`keyup${Yt}.data-api`},oe={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},re={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},ae={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},le={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},ce={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"};class he{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 qt}static get Default(){return le}static get DefaultType(){return ce}toggle(){if(this._element.disabled||e(this._element).hasClass(oe.DISABLED))return;const t=he._getParentFromElement(this._element),n=e(this._menu).hasClass(oe.SHOW);if(he._clearMenus(),n)return;const i={relatedTarget:this._element},o=e.Event(se.SHOW,i);if(e(t).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Gt)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");let n=this._element;"parent"===this._config.reference?n=t:s.isElement(this._config.reference)&&(n=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(n=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(t).addClass(oe.POSITION_STATIC),this._popper=new Gt(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(re.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(oe.SHOW),e(t).toggleClass(oe.SHOW).trigger(e.Event(se.SHOWN,i))}}show(){if(this._element.disabled||e(this._element).hasClass(oe.DISABLED)||e(this._menu).hasClass(oe.SHOW))return;const t={relatedTarget:this._element},n=e.Event(se.SHOW,t),i=he._getParentFromElement(this._element);e(i).trigger(n),n.isDefaultPrevented()||(e(this._menu).toggleClass(oe.SHOW),e(i).toggleClass(oe.SHOW).trigger(e.Event(se.SHOWN,t)))}hide(){if(this._element.disabled||e(this._element).hasClass(oe.DISABLED)||!e(this._menu).hasClass(oe.SHOW))return;const t={relatedTarget:this._element},n=e.Event(se.HIDE,t),i=he._getParentFromElement(this._element);e(i).trigger(n),n.isDefaultPrevented()||(e(this._menu).toggleClass(oe.SHOW),e(i).toggleClass(oe.SHOW).trigger(e.Event(se.HIDDEN,t)))}dispose(){e.removeData(this._element,Qt),e(this._element).off(Yt),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(se.CLICK,t=>{t.preventDefault(),t.stopPropagation(),this.toggle()})}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},s.typeCheckConfig(Kt,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=he._getParentFromElement(this._element);t&&(this._menu=t.querySelector(re.MENU))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let n=ae.BOTTOM;return t.hasClass(oe.DROPUP)?(n=ae.TOP,e(this._menu).hasClass(oe.MENURIGHT)&&(n=ae.TOPEND)):t.hasClass(oe.DROPRIGHT)?n=ae.RIGHT:t.hasClass(oe.DROPLEFT)?n=ae.LEFT:e(this._menu).hasClass(oe.MENURIGHT)&&(n=ae.BOTTOMEND),n}_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}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(Qt);if(n||(n=new he(this,"object"==typeof t?t:null),e(this).data(Qt,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}static _clearMenus(t){if(t&&(t.which===ne||"keyup"===t.type&&t.which!==Jt))return;const n=[].slice.call(document.querySelectorAll(re.DATA_TOGGLE));for(let i=0,s=n.length;i<s;i++){const s=he._getParentFromElement(n[i]),o=e(n[i]).data(Qt),r={relatedTarget:n[i]};if(t&&"click"===t.type&&(r.clickEvent=t),!o)continue;const a=o._menu;if(!e(s).hasClass(oe.SHOW))continue;if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===Jt)&&e.contains(s,t.target))continue;const l=e.Event(se.HIDE,r);e(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),n[i].setAttribute("aria-expanded","false"),e(a).removeClass(oe.SHOW),e(s).removeClass(oe.SHOW).trigger(e.Event(se.HIDDEN,r)))}}static _getParentFromElement(t){let e;const n=s.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode}static _dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.which===Zt||t.which!==zt&&(t.which!==ee&&t.which!==te||e(t.target).closest(re.MENU).length):!ie.test(t.which))return;if(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(oe.DISABLED))return;const n=he._getParentFromElement(this),i=e(n).hasClass(oe.SHOW);if(!i||i&&(t.which===zt||t.which===Zt)){if(t.which===zt){const t=n.querySelector(re.DATA_TOGGLE);e(t).trigger("focus")}return void e(this).trigger("click")}const s=[].slice.call(n.querySelectorAll(re.VISIBLE_ITEMS));if(0===s.length)return;let o=s.indexOf(t.target);t.which===te&&o>0&&o--,t.which===ee&&o<s.length-1&&o++,o<0&&(o=0),s[o].focus()}}e(document).on(se.KEYDOWN_DATA_API,re.DATA_TOGGLE,he._dataApiKeydownHandler).on(se.KEYDOWN_DATA_API,re.MENU,he._dataApiKeydownHandler).on(`${se.CLICK_DATA_API} ${se.KEYUP_DATA_API}`,he._clearMenus).on(se.CLICK_DATA_API,re.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),he._jQueryInterface.call(e(this),"toggle")}).on(se.CLICK_DATA_API,re.FORM_CHILD,t=>{t.stopPropagation()}),e.fn[Kt]=he._jQueryInterface,e.fn[Kt].Constructor=he,e.fn[Kt].noConflict=()=>(e.fn[Kt]=Xt,he._jQueryInterface);const de="modal",fe="4.3.1",ue="bs.modal",pe=`.${ue}`,me=e.fn[de],ge=27,_e={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ee={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Te={HIDE:`hide${pe}`,HIDDEN:`hidden${pe}`,SHOW:`show${pe}`,SHOWN:`shown${pe}`,FOCUSIN:`focusin${pe}`,RESIZE:`resize${pe}`,CLICK_DISMISS:`click.dismiss${pe}`,KEYDOWN_DISMISS:`keydown.dismiss${pe}`,MOUSEUP_DISMISS:`mouseup.dismiss${pe}`,MOUSEDOWN_DISMISS:`mousedown.dismiss${pe}`,CLICK_DATA_API:`click${pe}.data-api`},ve={SCROLLABLE:"modal-dialog-scrollable",SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},Ce={DIALOG:".modal-dialog",MODAL_BODY:".modal-body",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"};class Se{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Ce.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return fe}static get Default(){return _e}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;e(this._element).hasClass(ve.FADE)&&(this._isTransitioning=!0);const n=e.Event(Te.SHOW,{relatedTarget:t});e(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(Te.CLICK_DISMISS,Ce.DATA_DISMISS,t=>this.hide(t)),e(this._dialog).on(Te.MOUSEDOWN_DISMISS,()=>{e(this._element).one(Te.MOUSEUP_DISMISS,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 n=e.Event(Te.HIDE);if(e(this._element).trigger(n),!this._isShown||n.isDefaultPrevented())return;this._isShown=!1;const i=e(this._element).hasClass(ve.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Te.FOCUSIN),e(this._element).removeClass(ve.SHOW),e(this._element).off(Te.CLICK_DISMISS),e(this._dialog).off(Te.MOUSEDOWN_DISMISS),i){const t=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,t=>this._hideModal(t)).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach(t=>e(t).off(pe)),e(document).off(Te.FOCUSIN),e.removeData(this._element,ue),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={..._e,...t},s.typeCheckConfig(de,t,Ee),t}_showElement(t){const n=e(this._element).hasClass(ve.FADE);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),e(this._dialog).hasClass(ve.SCROLLABLE)?this._dialog.querySelector(Ce.MODAL_BODY).scrollTop=0:this._element.scrollTop=0,n&&s.reflow(this._element),e(this._element).addClass(ve.SHOW),this._config.focus&&this._enforceFocus();const i=e.Event(Te.SHOWN,{relatedTarget:t}),o=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(i)};if(n){const t=s.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(s.TRANSITION_END,o).emulateTransitionEnd(t)}else o()}_enforceFocus(){e(document).off(Te.FOCUSIN).on(Te.FOCUSIN,t=>{document!==t.target&&this._element!==t.target&&0===e(this._element).has(t.target).length&&this._element.focus()})}_setEscapeEvent(){this._isShown&&this._config.keyboard?e(this._element).on(Te.KEYDOWN_DISMISS,t=>{t.which===ge&&(t.preventDefault(),this.hide())}):this._isShown||e(this._element).off(Te.KEYDOWN_DISMISS)}_setResizeEvent(){this._isShown?e(window).on(Te.RESIZE,t=>this.handleUpdate(t)):e(window).off(Te.RESIZE)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(()=>{e(document.body).removeClass(ve.OPEN),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(Te.HIDDEN)})}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const n=e(this._element).hasClass(ve.FADE)?ve.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ve.BACKDROP,n&&this._backdrop.classList.add(n),e(this._backdrop).appendTo(document.body),e(this._element).on(Te.CLICK_DISMISS,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._element.focus():this.hide())}),n&&s.reflow(this._backdrop),e(this._backdrop).addClass(ve.SHOW),!t)return;if(!n)return void t();const i=s.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(s.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(ve.SHOW);const n=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(ve.FADE)){const t=s.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(s.TRANSITION_END,n).emulateTransitionEnd(t)}else n()}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=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}_setScrollbar(){if(this._isBodyOverflowing){const t=[].slice.call(document.querySelectorAll(Ce.FIXED_CONTENT)),n=[].slice.call(document.querySelectorAll(Ce.STICKY_CONTENT));e(t).each((t,n)=>{const i=n.style.paddingRight,s=e(n).css("padding-right");e(n).data("padding-right",i).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}),e(n).each((t,n)=>{const i=n.style.marginRight,s=e(n).css("margin-right");e(n).data("margin-right",i).css("margin-right",`${parseFloat(s)-this._scrollbarWidth}px`)});const i=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",i).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}e(document.body).addClass(ve.OPEN)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(Ce.FIXED_CONTENT));e(t).each((t,n)=>{const i=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=i||""});const n=[].slice.call(document.querySelectorAll(`${Ce.STICKY_CONTENT}`));e(n).each((t,n)=>{const i=e(n).data("margin-right");"undefined"!=typeof i&&e(n).css("margin-right",i).removeData("margin-right")});const i=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""}_getScrollbarWidth(){const t=document.createElement("div");t.className=ve.SCROLLBAR_MEASURER,document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,n){return this.each(function(){let i=e(this).data(ue);const s={..._e,...e(this).data(),..."object"==typeof t&&t?t:{}};if(i||(i=new Se(this,s),e(this).data(ue,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t](n)}else s.show&&i.show(n)})}}e(document).on(Te.CLICK_DATA_API,Ce.DATA_TOGGLE,function(t){let n;const i=s.getSelectorFromElement(this);i&&(n=document.querySelector(i));const o=e(n).data(ue)?"toggle":{...e(n).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(n).one(Te.SHOW,t=>{t.isDefaultPrevented()||r.one(Te.HIDDEN,()=>{e(this).is(":visible")&&this.focus()})});Se._jQueryInterface.call(e(n),o,this)}),e.fn[de]=Se._jQueryInterface,e.fn[de].Constructor=Se,e.fn[de].noConflict=()=>(e.fn[de]=me,Se._jQueryInterface);const Ie=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Oe={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ae=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,ye=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function De(t,e){const n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Ie.indexOf(n)||Boolean(t.nodeValue.match(Ae)||t.nodeValue.match(ye));const i=e.filter(t=>t instanceof RegExp);for(let t=0,e=i.length;t<e;t++)if(n.match(i[t]))return!0;return!1}function be(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].slice.call(i.body.querySelectorAll("*"));for(let t=0,n=o.length;t<n;t++){const n=o[t],i=n.nodeName.toLowerCase();if(-1===s.indexOf(n.nodeName.toLowerCase())){n.parentNode.removeChild(n);continue}const r=[].slice.call(n.attributes),a=[].concat(e["*"]||[],e[i]||[]);r.forEach(t=>{De(t,a)||n.removeAttribute(t.nodeName)})}return i.body.innerHTML}const we="tooltip",Ne="4.3.1",Le="bs.tooltip",He=`.${Le}`,Pe=e.fn[we],Re="bs-tooltip",We=new RegExp(`(^|\\s)${Re}\\S+`,"g"),ke=["sanitize","whiteList","sanitizeFn"],$e={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"},Fe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Me={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",sanitize:!0,sanitizeFn:null,whiteList:Oe},xe={SHOW:"show",OUT:"out"},Ue={HIDE:`hide${He}`,HIDDEN:`hidden${He}`,SHOW:`show${He}`,SHOWN:`shown${He}`,INSERTED:`inserted${He}`,CLICK:`click${He}`,FOCUSIN:`focusin${He}`,FOCUSOUT:`focusout${He}`,MOUSEENTER:`mouseenter${He}`,MOUSELEAVE:`mouseleave${He}`},Ve={FADE:"fade",SHOW:"show"},je={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},Be={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"};class Ge{constructor(t,e){if("undefined"==typeof Gt)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 Ne}static get Default(){return Me}static get NAME(){return we}static get DATA_KEY(){return Le}static get Event(){return Ue}static get EVENT_KEY(){return He}static get DefaultType(){return $e}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const n=this.constructor.DATA_KEY;let i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(Ve.SHOW))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.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,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=s.findShadowRoot(this.element),i=e.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;const o=this.getTipElement(),r=s.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&e(o).addClass(Ve.FADE);const a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);const c=this._getContainer();e(o).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(o).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Gt(this.element,o,{placement:l,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:je.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)}),e(o).addClass(Ve.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const h=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===xe.OUT&&this._leave(null,this)};if(e(this.tip).hasClass(Ve.FADE)){const t=s.getTransitionDurationFromElement(this.tip);e(this.tip).one(s.TRANSITION_END,h).emulateTransitionEnd(t)}else h()}}hide(t){const n=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==xe.SHOW&&n.parentNode&&n.parentNode.removeChild(n),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(i),!i.isDefaultPrevented()){if(e(n).removeClass(Ve.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Be.CLICK]=!1,this._activeTrigger[Be.FOCUS]=!1,this._activeTrigger[Be.HOVER]=!1,e(this.tip).hasClass(Ve.FADE)){const t=s.getTransitionDurationFromElement(n);e(n).one(s.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(`${Re}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(je.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(`${Ve.FADE} ${Ve.SHOW}`)}setElementContent(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=be(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).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}_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:s.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return Fe[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!==Be.MANUAL){const n=t===Be.HOVER?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===Be.HOVER?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(n,this.config.selector,t=>this._enter(t)).on(i,this.config.selector,t=>this._leave(t))}}),e(this.element).closest(".modal").on("hide.bs.modal",()=>{this.element&&this.hide()}),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,n){const i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?Be.FOCUS:Be.HOVER]=!0),e(n.getTipElement()).hasClass(Ve.SHOW)||n._hoverState===xe.SHOW?n._hoverState=xe.SHOW:(clearTimeout(n._timeout),n._hoverState=xe.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(()=>{n._hoverState===xe.SHOW&&n.show()},n.config.delay.show):n.show())}_leave(t,n){const i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?Be.FOCUS:Be.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=xe.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(()=>{n._hoverState===xe.OUT&&n.hide()},n.config.delay.hide):n.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const n=e(this.element).data();return Object.keys(n).forEach(t=>{-1!==ke.indexOf(t)&&delete n[t]}),"number"==typeof(t={...this.constructor.Default,...n,..."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()),s.typeCheckConfig(we,t,this.constructor.DefaultType),t.sanitize&&(t.template=be(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()),n=t.attr("class").match(We);null!==n&&n.length&&t.removeClass(n.join(""))}_handlePopperPlacementChange(t){const e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(Ve.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(Le);const i="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new Ge(this,i),e(this).data(Le,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e.fn[we]=Ge._jQueryInterface,e.fn[we].Constructor=Ge,e.fn[we].noConflict=()=>(e.fn[we]=Pe,Ge._jQueryInterface);const Ke="popover",qe="4.3.1",Qe="bs.popover",Ye=`.${Qe}`,Xe=e.fn[Ke],ze="bs-popover",Ze=new RegExp(`(^|\\s)${ze}\\S+`,"g"),Je={...Ge.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>'},tn={...Ge.DefaultType,content:"(string|element|function)"},en={FADE:"fade",SHOW:"show"},nn={TITLE:".popover-header",CONTENT:".popover-body"},sn={HIDE:`hide${Ye}`,HIDDEN:`hidden${Ye}`,SHOW:`show${Ye}`,SHOWN:`shown${Ye}`,INSERTED:`inserted${Ye}`,CLICK:`click${Ye}`,FOCUSIN:`focusin${Ye}`,FOCUSOUT:`focusout${Ye}`,MOUSEENTER:`mouseenter${Ye}`,MOUSELEAVE:`mouseleave${Ye}`};class on extends Ge{static get VERSION(){return qe}static get Default(){return Je}static get NAME(){return Ke}static get DATA_KEY(){return Qe}static get Event(){return sn}static get EVENT_KEY(){return Ye}static get DefaultType(){return tn}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`${ze}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(nn.TITLE),this.getTitle());let n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(nn.CONTENT),n),t.removeClass(`${en.FADE} ${en.SHOW}`)}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),n=t.attr("class").match(Ze);null!==n&&n.length>0&&t.removeClass(n.join(""))}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(Qe);const i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new on(this,i),e(this).data(Qe,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e.fn[Ke]=on._jQueryInterface,e.fn[Ke].Constructor=on,e.fn[Ke].noConflict=()=>(e.fn[Ke]=Xe,on._jQueryInterface);const rn="scrollspy",an="4.3.1",ln="bs.scrollspy",cn=`.${ln}`,hn=e.fn[rn],dn={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},un={ACTIVATE:`activate${cn}`,SCROLL:`scroll${cn}`,LOAD_DATA_API:`load${cn}.data-api`},pn={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},mn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},gn={OFFSET:"offset",POSITION:"position"};class _n{constructor(t,n){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=`${this._config.target} ${mn.NAV_LINKS},`+`${this._config.target} ${mn.LIST_ITEMS},`+`${this._config.target} ${mn.DROPDOWN_ITEMS}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(un.SCROLL,t=>this._process(t)),this.refresh(),this._process()}static get VERSION(){return an}static get Default(){return dn}refresh(){const t=this._scrollElement===this._scrollElement.window?gn.OFFSET:gn.POSITION,n="auto"===this._config.method?t:this._config.method,i=n===gn.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(t=>{let o;const r=s.getSelectorFromElement(t);if(r&&(o=document.querySelector(r)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[e(o)[n]().top+i,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,ln),e(this._scrollElement).off(cn),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={...dn,..."object"==typeof t&&t?t:{}}).target){let n=e(t.target).attr("id");n||(n=s.getUID(rn),e(t.target).attr("id",n)),t.target=`#${n}`}return s.typeCheckConfig(rn,t,fn),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(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){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 n=this._selector.split(",").map(e=>`${e}[data-target="${t}"],${e}[href="${t}"]`),i=e([].slice.call(document.querySelectorAll(n.join(","))));i.hasClass(pn.DROPDOWN_ITEM)?(i.closest(mn.DROPDOWN).find(mn.DROPDOWN_TOGGLE).addClass(pn.ACTIVE),i.addClass(pn.ACTIVE)):(i.addClass(pn.ACTIVE),i.parents(mn.NAV_LIST_GROUP).prev(`${mn.NAV_LINKS}, ${mn.LIST_ITEMS}`).addClass(pn.ACTIVE),i.parents(mn.NAV_LIST_GROUP).prev(mn.NAV_ITEMS).children(mn.NAV_LINKS).addClass(pn.ACTIVE)),e(this._scrollElement).trigger(un.ACTIVATE,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(t=>t.classList.contains(pn.ACTIVE)).forEach(t=>t.classList.remove(pn.ACTIVE))}static _jQueryInterface(t){return this.each(function(){let n=e(this).data(ln);if(n||(n=new _n(this,"object"==typeof t&&t),e(this).data(ln,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(window).on(un.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll(mn.DATA_SPY));for(let n=t.length;n--;){const i=e(t[n]);_n._jQueryInterface.call(i,i.data())}}),e.fn[rn]=_n._jQueryInterface,e.fn[rn].Constructor=_n,e.fn[rn].noConflict=()=>(e.fn[rn]=hn,_n._jQueryInterface);const En="4.3.1",Tn="bs.tab",vn=`.${Tn}`,Cn=e.fn.tab,Sn={HIDE:`hide${vn}`,HIDDEN:`hidden${vn}`,SHOW:`show${vn}`,SHOWN:`shown${vn}`,CLICK_DATA_API:`click${vn}.data-api`},In={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},On={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"};class An{constructor(t){this._element=t}static get VERSION(){return En}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(In.ACTIVE)||e(this._element).hasClass(In.DISABLED))return;let t,n;const i=e(this._element).closest(On.NAV_LIST_GROUP)[0],o=s.getSelectorFromElement(this._element);if(i){const t="UL"===i.nodeName||"OL"===i.nodeName?On.ACTIVE_UL:On.ACTIVE;n=(n=e.makeArray(e(i).find(t)))[n.length-1]}const r=e.Event(Sn.HIDE,{relatedTarget:this._element}),a=e.Event(Sn.SHOW,{relatedTarget:n});if(n&&e(n).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,i);const l=()=>{const t=e.Event(Sn.HIDDEN,{relatedTarget:this._element}),i=e.Event(Sn.SHOWN,{relatedTarget:n});e(n).trigger(t),e(this._element).trigger(i)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,Tn),this._element=null}_activate(t,n,i){const o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(On.ACTIVE):e(n).find(On.ACTIVE_UL))[0],r=i&&o&&e(o).hasClass(In.FADE),a=()=>this._transitionComplete(t,o,i);if(o&&r){const t=s.getTransitionDurationFromElement(o);e(o).removeClass(In.SHOW).one(s.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,n,i){if(n){e(n).removeClass(In.ACTIVE);const t=e(n.parentNode).find(On.DROPDOWN_ACTIVE_CHILD)[0];t&&e(t).removeClass(In.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(In.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),s.reflow(t),t.classList.contains(In.FADE)&&t.classList.add(In.SHOW),t.parentNode&&e(t.parentNode).hasClass(In.DROPDOWN_MENU)){const n=e(t).closest(On.DROPDOWN)[0];if(n){const t=[].slice.call(n.querySelectorAll(On.DROPDOWN_TOGGLE));e(t).addClass(In.ACTIVE)}t.setAttribute("aria-expanded",!0)}i&&i()}static _jQueryInterface(t){return this.each(function(){const n=e(this);let i=n.data(Tn);if(i||(i=new An(this),n.data(Tn,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e(document).on(Sn.CLICK_DATA_API,On.DATA_TOGGLE,function(t){t.preventDefault(),An._jQueryInterface.call(e(this),"show")}),e.fn.tab=An._jQueryInterface,e.fn.tab.Constructor=An,e.fn.tab.noConflict=()=>(e.fn.tab=Cn,An._jQueryInterface);const yn="toast",Dn="4.3.1",bn="bs.toast",wn=`.${bn}`,Nn=e.fn[yn],Ln={CLICK_DISMISS:`click.dismiss${wn}`,HIDE:`hide${wn}`,HIDDEN:`hidden${wn}`,SHOW:`show${wn}`,SHOWN:`shown${wn}`},Hn={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"},Pn={animation:"boolean",autohide:"boolean",delay:"number"},Rn={animation:!0,autohide:!0,delay:500},Wn={DATA_DISMISS:'[data-dismiss="toast"]'};class kn{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return Dn}static get DefaultType(){return Pn}static get Default(){return Rn}show(){e(this._element).trigger(Ln.SHOW),this._config.animation&&this._element.classList.add(Hn.FADE);const t=()=>{this._element.classList.remove(Hn.SHOWING),this._element.classList.add(Hn.SHOW),e(this._element).trigger(Ln.SHOWN),this._config.autohide&&this.hide()};if(this._element.classList.remove(Hn.HIDE),this._element.classList.add(Hn.SHOWING),this._config.animation){const n=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,t).emulateTransitionEnd(n)}else t()}hide(t){this._element.classList.contains(Hn.SHOW)&&(e(this._element).trigger(Ln.HIDE),t?this._close():this._timeout=setTimeout(()=>{this._close()},this._config.delay))}dispose(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Hn.SHOW)&&this._element.classList.remove(Hn.SHOW),e(this._element).off(Ln.CLICK_DISMISS),e.removeData(this._element,bn),this._element=null,this._config=null}_getConfig(t){return t={...Rn,...e(this._element).data(),..."object"==typeof t&&t?t:{}},s.typeCheckConfig(yn,t,this.constructor.DefaultType),t}_setListeners(){e(this._element).on(Ln.CLICK_DISMISS,Wn.DATA_DISMISS,()=>this.hide(!0))}_close(){const t=()=>{this._element.classList.add(Hn.HIDE),e(this._element).trigger(Ln.HIDDEN)};if(this._element.classList.remove(Hn.SHOW),this._config.animation){const n=s.getTransitionDurationFromElement(this._element);e(this._element).one(s.TRANSITION_END,t).emulateTransitionEnd(n)}else t()}static _jQueryInterface(t){return this.each(function(){const n=e(this);let i=n.data(bn);if(i||(i=new kn(this,"object"==typeof t&&t),n.data(bn,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t](this)}})}}e.fn[yn]=kn._jQueryInterface,e.fn[yn].Constructor=kn,e.fn[yn].noConflict=()=>(e.fn[yn]=Nn,kn._jQueryInterface);var $n=function(){var t=e(".dropdown-with-pill"),n=e(".dropdown-with-select"),i=e(".dropdown-action--search");t.each(function(){var t=e(this).find(".dropdown-selected-list"),n=e(this).find(".dropdown-menu-list"),i=n.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("<div class='dropdown-selected-list'></div>"),t=e(this).find(".dropdown-selected-list"));var o=s,r=Array.isArray(o),a=0;for(o=r?o:o[Symbol.iterator]();;){var l;if(r){if(a>=o.length)break;l=o[a++]}else{if((a=o.next()).done)break;l=a.value}var c=l,h=e(this).find(".dropdown-item[data-val='"+c+"']").attr("data-id");t.append("<span class='badge badge-smoke' data-id='"+h+"' data-val='"+c+"'>"+c+" <i class='ic ic-reset'></i></span><input type='hidden' value='"+h+"' name='"+i+"'>")}var d=e(".dropdown-with-pill .badge .ic");Fn(d),n.bind("DOMNodeInserted",function(t){t.target!==n[0]&&t.target.addEventListener("click",Mn)})}),n.each(function(){var t=e(this).find(".dropdown-menu-list").attr("data-select-name"),n=e(this).find(".dropdown-menu .is-selected"),i=n.attr("data-id"),s=n.text();s?(e(this).find(".dropdown-toggle").html(s),e(this).append("<div class='dropdown-selected-list'><input type='hidden' value='"+i+"' name='"+t+"'></div>")):e(this).append("<div class='dropdown-selected-list'><input type='hidden' value='' name='"+t+"'></div>")});var s=e(".dropdown-with-pill .dropdown-item"),o=e(".dropdown-with-select .dropdown-item");s.click(Mn),o.click(Mn),i.each(function(){var t=e(this).find("input[type='text']"),n=t.closest(".dropdown-menu");t.keyup(function(t){var i=n.find(".dropdown-menu-list .dropdown-item").not(".text-link"),s=t.currentTarget.value.toLocaleLowerCase();i.each(function(){e(this).text().toLocaleLowerCase().includes(s)?e(this).removeClass("d-none"):e(this).addClass("d-none")});var o=n.find(".dropdown-menu-list .dropdown-item.d-none").not(".text-link"),r=n.find("span.dropdown-not-found");o.length===i.length?r.length?r.removeClass("d-none"):n.append('<span class="dropdown-not-found">No data found</span>'):r.addClass("d-none")})})},Fn=function(t){t.click(function(){var t=e(this).closest(".badge"),n=t.attr("data-val"),i=t.attr("data-id");t.closest(".dropdown-selected-list").find("input[value='"+i+"']").remove(),t.closest(".dropdown-with-pill").find(".is-selected[data-val='"+n+"']").removeClass("is-selected"),t.remove()})},Mn=function(){var t,n=e(event.currentTarget);if(n.closest(".dropdown").hasClass("dropdown-with-select")?t=".dropdown-with-select":n.closest(".dropdown").hasClass("dropdown-with-pill")&&(t=".dropdown-with-pill"),!n.hasClass("dropdown-action")){var i=n.closest(t),s=i.find(".dropdown-selected-list");".dropdown-with-select"==t&&i.find(".dropdown-item").removeClass("is-selected"),n.addClass("is-selected");var o=n.attr("data-id"),r=i.find(".dropdown-menu-list").attr("data-select-name");if(".dropdown-with-pill"==t){var a=n.attr("data-val");s.append("<span class='badge badge-smoke' data-id='"+o+"' data-val='"+a+"'>"+a+"<i class='ic ic-reset'></i></span> <input type='hidden' value='"+o+"' name='"+r+"'>");var l=s.find(".badge[data-val='"+a+"'] .ic");Fn(l)}else".dropdown-with-select"==t&&(i.find(".dropdown-toggle").addClass("selected").html(n.text()),s.html("<input type='hidden' value='"+o+"' name='"+r+"'>"))}};e(document).ready(function(){$n()});var xn=function(){Un()},Un=function(){e(".checkallbox-wrapper").each(function(){var t=e(this).attr("data-checkall"),n=e(this).find(".checkallbox-parent[data-checkall = '"+t+"']"),i=e(this).find("input[type='checkbox'][data-checkall = '"+t+"']").not(".checkallbox-parent");Vn(n,i),jn(n,i),Bn(n,i)})},Vn=function(t,n){var i=n.length;n.filter(function(){return!0===e(this).is(":checked")}).length===i&&i>0?t.prop("checked",!0):t.prop("checked",!1)},jn=function(t,n){t.change(function(){e(this).is(":checked")?n.prop("checked",!0):n.prop("checked",!1)})},Bn=function(t,e){e.change(function(){Vn(t,e)})};e(document).ready(function(){xn()});var Gn=function(){e('[data-toggle="tooltip"]').tooltip({trigger:"hover"})};e(document).ready(function(){Gn()}),t.Alert=d,t.Button=T,t.Carousel=k,t.Collapse=Q,t.Dropdown=he,t.MekariDropdown=$n,t.MekariForm=xn,t.MekariTooltip=Gn,t.Modal=Se,t.Popover=on,t.Scrollspy=_n,t.Tab=An,t.Toast=kn,t.Tooltip=Ge,t.Util=s,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=mekari-ui.bundle.min.js.map