UNPKG

saagie-ui

Version:

Saagie UI from Saagie Design System

1 lines 76.5 kB
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).saagieUi=e()}(function(){return function i(s,a,l){function u(t,e){if(!a[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var r=a[t]={exports:{}};s[t][0].call(r.exports,function(e){return u(s[t][1][e]||e)},r,r.exports,i,s,a,l)}return a[t].exports}for(var f="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,n){t.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},{}],2:[function(e,t,n){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},{}],3:[function(e,t,n){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}t.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},{}],4:[function(e,o,t){var i=e("./superPropBase");function r(e,t,n){return"undefined"!=typeof Reflect&&Reflect.get?o.exports=r=Reflect.get:o.exports=r=function(e,t,n){var o=i(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}},r(e,t,n||e)}o.exports=r},{"./superPropBase":10}],5:[function(e,t,n){function o(e){return t.exports=o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.exports=o},{}],6:[function(e,t,n){var o=e("./setPrototypeOf");t.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},{"./setPrototypeOf":9}],7:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],8:[function(e,t,n){var o=e("../helpers/typeof"),r=e("./assertThisInitialized");t.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(e):t}},{"../helpers/typeof":11,"./assertThisInitialized":1}],9:[function(e,n,t){function o(e,t){return n.exports=o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}n.exports=o},{}],10:[function(e,t,n){var o=e("./getPrototypeOf");t.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}},{"./getPrototypeOf":5}],11:[function(e,t,n){function o(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=o=function(e){return typeof e}:t.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.exports=o},{}],12:[function(e,t,n){var o,r;o=this,r=function(){"use strict";function n(e){for(var t=e.length,n=new Array(t),o=0;o<t;o++)n[o]=e[o];return n}function f(e,t,n){var o=e.length;if(void 0!==o&&void 0===e.nodeType)for(var r=0;r<o;r++)t.call(n,e[r],r,e);else t.call(n,e,0,e);return e}function o(n){for(var e=arguments.length,t=Array(1<e?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return t.forEach(function(e){for(var t in e)n[t]=e[t]}),n}function r(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function e(t){var n=[];return f(this,function(e){return f(m(t,e),function(e){-1===n.indexOf(e)&&n.push(e)})}),d(n)}function t(e,t){return f(this,e,t)}var i,s,a="undefined"!=typeof window?window:{},l=!1,u=/^\s*<(\w+|!)[^>]*>/,c=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/^[.#]?[\w-]*$/,d=function(e,t){var n=1<arguments.length&&void 0!==t?t:document,o=void 0;if(e){if(e instanceof g)return e;o="string"!=typeof e?e.nodeType||e===window?[e]:e:u.test(e)?v(e):(n="string"==typeof n?document.querySelector(n):n.length?n[0]:n,m(e,n))}else o=document.querySelectorAll(null);return b(o)},h=(i="undefined"!=typeof Element?Element.prototype:a,s=i.matches||i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector,function(e,t){return s.call(e,t)}),m=function(e,t){if(p.test(e)){if("#"!==e[0])return"."===e[0]?t.getElementsByClassName(e.slice(1)):t.getElementsByTagName(e);var n=(t.getElementById?t:document).getElementById(e.slice(1));return n?[n]:[]}return t.querySelectorAll(e)},v=function(e){if(c.test(e))return[document.createElement(RegExp.$1)];var t=[],n=document.createElement("div"),o=n.childNodes;n.innerHTML=e;for(var r=0,i=o.length;r<i;r++)t.push(o[r]);return t},b=function(e){return l||(g.prototype=d.fn,g.prototype.constructor=g,l=!0),new g(e)},g=function(e){for(var t=0,n=e.length;t<n;)this[t]=e[t++];this.length=n},y=Object.freeze({$:d,find:e,matches:h,DOMtastic:g}),w=Array.prototype,E=w.every,O=w.indexOf,_=w.map,x=w.pop,C=w.push,k=w.reduce,T=w.reduceRight,D=w.shift,N=w.some,L=w.unshift,P=Object.freeze({every:E,filter:function(t,e){var n="function"==typeof t?t:function(e){return h(e,t)};return d(w.filter.call(this,n,e))},forEach:t,each:t,indexOf:O,map:_,pop:x,push:C,reduce:k,reduceRight:T,reverse:function(){return d(n(this).reverse())},shift:D,some:N,unshift:L});function M(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g.call(this,d.apply(void 0,arguments))}return o(t.prototype,e),t}function j(e){return e.replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function S(e,t){return!(!e||!t||e===t)&&(e.contains?e.contains(t):!!e.compareDocumentPosition&&!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_DISCONNECTED))}var A=Object.freeze({css:function(e,t){var n,o=void 0,r=void 0,i=void 0;if("string"==typeof e){if(e=j(e),void 0===t){var s=this.nodeType?this:this[0];return s?(i=s.style[e],n=i,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(i):i):void 0}(o={})[e]=t}else for(r in o=e)i=o[r],delete o[r],o[j(r)]=i;return f(this,function(e){for(r in o)o[r]||0===o[r]?e.style[r]=o[r]:e.style.removeProperty(r.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase())}),this}}),R=Array.prototype.forEach,I=function(e){var t;return this instanceof Node?"string"==typeof e?this.insertAdjacentHTML("beforeend",e):e instanceof Node?this.appendChild(e):(t=e instanceof NodeList?n(e):e,R.call(t,this.appendChild.bind(this))):q(this,I,e),this},H=function(e){var t;return this instanceof Node?"string"==typeof e?this.insertAdjacentHTML("afterbegin",e):e instanceof Node?this.insertBefore(e,this.firstChild):(t=e instanceof NodeList?n(e):e,R.call(t.reverse(),H.bind(this))):q(this,H,e),this},B=function(e){var t;return this instanceof Node?"string"==typeof e?this.insertAdjacentHTML("beforebegin",e):e instanceof Node?this.parentNode.insertBefore(e,this):(t=e instanceof NodeList?n(e):e,R.call(t,B.bind(this))):q(this,B,e),this},F=function(e){var t;return this instanceof Node?"string"==typeof e?this.insertAdjacentHTML("afterend",e):e instanceof Node?this.parentNode.insertBefore(e,this.nextSibling):(t=e instanceof NodeList?n(e):e,R.call(t.reverse(),F.bind(this))):q(this,F,e),this},W=function(e){return"string"==typeof e?e:e instanceof Node?e.cloneNode(!0):"length"in e?[].map.call(e,function(e){return e.cloneNode(!0)}):e},q=function(e,t,n){for(var o=e.length;o--;){var r=0===o?n:W(n);t.call(e[o],r)}},$=Object.freeze({append:I,prepend:H,before:B,after:F,clone:function(){return d(W(this))},_clone:W,_each:q}),z=Object.freeze({attr:function(n,o){if("string"!=typeof n||void 0!==o)return f(this,function(e){if("object"==typeof n)for(var t in n)e.setAttribute(t,n[t]);else e.setAttribute(n,o)});var e=this.nodeType?this:this[0];return e?e.getAttribute(n):void 0},removeAttr:function(t){return f(this,function(e){return e.removeAttribute(t)})}}),U=function(t,n){return f(this,function(e){return e.classList[t](n)})},Y=Object.freeze({addClass:function(e){return e&&e.length&&f(e.split(" "),U.bind(this,"add")),this},removeClass:function(e){return e&&e.length&&f(e.split(" "),U.bind(this,"remove")),this},toggleClass:function(e,t){var n;return e&&e.length&&(n="boolean"==typeof t?t?"add":"remove":"toggle",f(e.split(" "),U.bind(this,n))),this},hasClass:function(t){return(this.nodeType?[this]:this).some(function(e){return e.classList.contains(t)})}}),K=Object.freeze({contains:S}),V="undefined"!=typeof document&&"dataset"in document.documentElement,G=V?"dataset":"__DOMTASTIC_DATA__",X=Object.freeze({data:function(t,n){if("string"!=typeof t||void 0!==n)return f(this,function(e){V||(e[G]=e[G]||{}),e[G][t]=n});var e=this.nodeType?this:this[0];return e&&G in e?e[G][t]:void 0},prop:function(t,n){if("string"!=typeof t||void 0!==n)return f(this,function(e){return e[t]=n});var e=this.nodeType?this:this[0];return e&&e?e[t]:void 0}}),Z=Object.freeze({appendTo:function(e){var t="string"==typeof e?d(e):e;return I.call(t,this),this},empty:function(){return f(this,function(e){return e.innerHTML=""})},remove:function(){return f(this,function(e){e.parentNode&&e.parentNode.removeChild(e)})},replaceWith:function(){return B.apply(this,arguments).remove()},text:function(t){return void 0===t?this[0].textContent:f(this,function(e){return e.textContent=""+t})},val:function(t){return void 0===t?0<this.length?this[0].value:void 0:f(this,function(e){return e.value=t})}}),J=Object.freeze({html:function(t){if(void 0!==t)return f(this,function(e){return e.innerHTML=t});var e=this.nodeType?this:this[0];return e?e.innerHTML:void 0}}),Q="undefined"!=typeof Element&&Element.prototype.closest?function(n,e){if(e)return ee.call(this,n,e);var o=[];return f(this,function(e){var t=e.closest(n);t&&o.push(t)}),d(r(o))}:ee;function ee(t,n){var o=[];return f(this,function(e){for(;e&&e!==n;){if(h(e,t)){o.push(e);break}e=e.parentElement}}),d(r(o))}function te(o,r,i,s,a){var t=this;"function"==typeof r&&(i=r,r=null);var n,l,u=void 0;return o.split(" ").forEach(function(e){e=(n=e.split("."))[0]||null,l=n[1]||null,u=de(i),f(t,function(t){var n;r&&(u=ve.bind(t,r,u)),a&&(n=u,u=function(e){se.call(t,o,r,i,s),n.call(t,e)}),t.addEventListener(e,u,s||!1),ce(t).push({eventName:e,handler:i,eventListener:u,selector:r,namespace:l})})},this),this}function ne(){return!0}function oe(){return!1}function re(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=e.bubbles,r=void 0===o||o,i=e.cancelable,s=void 0===i||i,a=e.preventDefault,l=void 0!==a&&a,u=new(we(t))(t,{bubbles:r,cancelable:s,preventDefault:l,detail:n});return u._preventDefault=l,f(this,function(e){!r||Le||Ee(e)?xe(e,u):Oe(e,t,{bubbles:r,cancelable:s,preventDefault:l,detail:n})})}var ie=Object.freeze({closest:Q}),se=function(){var o=arguments[1],e=this,r=arguments[2],i=arguments[3];"function"==typeof o&&(r=o,o=null);var t,s,a=void 0;return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").split(" ").forEach(function(n){return n=(t=n.split("."))[0]||null,s=t[1]||null,f(e,function(t){a=ce(t),f(a.filter(function(e){return!(n&&e.eventName!==n||s&&e.namespace!==s||r&&e.handler!==r||o&&e.selector!==o)}),function(e){t.removeEventListener(e.eventName,e.eventListener,i||!1),a.splice(a.indexOf(e),1)}),(n||s||o||r)&&0!==a.length||pe(t)})},this),this},ae="__domtastic_event__",le=1,ue={},fe=[],ce=function(e){e[ae]||(e[ae]=0===fe.length?++le:fe.pop());var t=e[ae];return ue[t]||(ue[t]=[])},pe=function(e){var t=e[ae];ue[t]&&(ue[t]=null,e[ae]=null,fe.push(t))},de=function(t){return function(e){return t.call(this,me(e))}},he={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},me=function(n){if(!n.isDefaultPrevented||n.stopImmediatePropagation||n.stopPropagation){for(var o in he)!function(e,t){n[o]=function(){return this[e]=ne,t&&t.apply(this,arguments)},n[e]=oe}(he[o],n[o]);n._preventDefault&&n.preventDefault()}return n},ve=function(e,t,n){var o=n._target||n.target,r=Q.call([o],e,this)[0];r&&r!==this&&(r!==o&&n.isPropagationStopped&&n.isPropagationStopped()||t.call(r,n))},be=Object.freeze({on:te,off:se,one:function(e,t,n,o){return te.call(this,e,t,n,o,1)},getHandlers:ce,clearHandlers:pe,proxyHandler:de,delegateHandler:ve,bind:te,unbind:se}),ge=/^(?:mouse|pointer|contextmenu)|click/,ye=/^key/,we=function(e){return Pe?ge.test(e)?MouseEvent:ye.test(e)?KeyboardEvent:CustomEvent:CustomEvent},Ee=function(e){return e===window||e===document||S(e.ownerDocument.documentElement,e)},Oe=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};n.bubbles=!1;var o=new CustomEvent(t,n);for(o._target=e;xe(e,o),e=e.parentNode;);},_e=["blur","focus","select","submit"],xe=function(e,t){-1===_e.indexOf(t.type)||"function"!=typeof e[t.type]||t._preventDefault||t.cancelable?e.dispatchEvent(t):e[t.type]()};function Ce(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}Ce.prototype=a.CustomEvent&&a.CustomEvent.prototype,a.CustomEvent=Ce;var ke,Te,De,Ne,Le=(De=!1,(Ne=a.document)&&(Te=(ke=Ne.createElement("div")).cloneNode(),ke.appendChild(Te),ke.addEventListener("e",function(){De=!0}),Te.dispatchEvent(new CustomEvent("e",{bubbles:!0}))),De),Pe=function(){try{new MouseEvent("click")}catch(e){return!1}return!0}(),Me=Object.freeze({trigger:re,triggerHandler:function(e,t){this[0]&&re.call(this[0],e,t,{bubbles:!1,preventDefault:!0})}}),je=Object.freeze({ready:function(e){return/complete|loaded|interactive/.test(document.readyState)&&document.body?e():document.addEventListener("DOMContentLoaded",e,!1),this}}),Se=a.$,Ae=Object.freeze({noConflict:function(){return a.$=Se,this}}),Re=function(e,t){return d([].slice.apply(this,arguments))},Ie=Object.freeze({children:function(t){var n=[];return f(this,function(e){e.children&&f(e.children,function(e){(!t||t&&h(e,t))&&n.push(e)})}),d(n)},concat:function(e){var t=this;return f(d(e),function(e){-1===[].indexOf.call(t,e)&&[].push.call(t,e)}),this},contents:function(){var t=[];return f(this,function(e){return t.push.apply(t,n(e.childNodes))}),d(t)},eq:function(e){return Re.call(this,e,e+1)},first:function(){return Re.call(this,0,1)},get:function(e){return this[e]},parent:function(t){var n=[];return f(this,function(e){(!t||t&&h(e.parentNode,t))&&n.push(e.parentNode)}),d(n)},siblings:function(n){var o=[];return f(this,function(t){return f(t.parentNode.children,function(e){e!==t&&(!n||n&&h(e,n))&&o.push(e)})}),d(o)},slice:Re}),He=Array.isArray,Be=Object.freeze({isFunction:function(e){return"function"==typeof e},isArray:He}),Fe={},We={};return void 0!==y&&((We=d).matches=h,Fe.find=e),o(We,K,Ae,Be),o(Fe,P,A,z,$,Y,X,Z,J,be,Me,je,ie,Ie),We.fn=Fe,We.version="0.15.2",We.extend=o,void 0!==M&&(We.BaseClass=M(We.fn)),We},"object"==typeof n&&void 0!==t?t.exports=r():o.$=r()},{}],13:[function(e,n,o){(function(J){var e,t;e=this,t=function(){"use strict";for(var e="undefined"!=typeof window&&"undefined"!=typeof document,t=["Edge","Trident","Firefox"],n=0,o=0;o<t.length;o+=1)if(e&&0<=navigator.userAgent.indexOf(t[o])){n=1;break}var i=e&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},n))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function g(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function y(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll)/.test(n+r+o)?e:y(g(e))}function E(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===w(t,"position")?E(t):t:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function O(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,a,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&E(s.firstElementChild)!==s?E(l):l;var u=f(e);return u.host?O(u.host,t):O(e,f(t).host)}function _(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"!==o&&"HTML"!==o)return e[n];var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[n]}function c(e,t){var n="x"===t?"Left":"Top",o="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}var r=void 0,d=function(){return void 0===r&&(r=-1!==navigator.appVersion.indexOf("MSIE 10")),r};function a(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d()?n["offset"+e]+o["margin"+("Height"===e?"Top":"Left")]+o["margin"+("Height"===e?"Bottom":"Right")]:0)}function x(){var e=document.body,t=document.documentElement,n=d()&&getComputedStyle(t);return{height:a("Height",e,t,n),width:a("Width",e,t,n)}}var l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e};function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function T(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function D(e){var t={};if(d())try{t=e.getBoundingClientRect();var n=_(e,"top"),o=_(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}catch(e){}else t=e.getBoundingClientRect();var r,i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===e.nodeName?x():{},a=s.width||e.clientWidth||i.right-i.left,l=s.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-a,f=e.offsetHeight-l;return(u||f)&&(u-=c(r=w(e),"x"),f-=c(r,"y"),i.width-=u,i.height-=f),T(i)}function N(e,t){var n,o,r=d(),i="HTML"===t.nodeName,s=D(e),a=D(t),l=y(e),u=w(t),f=parseFloat(u.borderTopWidth,10),c=parseFloat(u.borderLeftWidth,10),p=T({top:s.top-a.top-f,left:s.left-a.left-c,width:s.width,height:s.height});return p.marginTop=0,p.marginLeft=0,!r&&i&&(n=parseFloat(u.marginTop,10),o=parseFloat(u.marginLeft,10),p.top-=f-n,p.bottom-=f-n,p.left-=c-o,p.right-=c-o,p.marginTop=n,p.marginLeft=o),(r?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t,n){var o=2<arguments.length&&void 0!==n&&n,r=_(t,"top"),i=_(t,"left"),s=o?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}(p,t)),p}function L(e,t,n,o){var r,i,s,a,l,u,f,c,p,d,h,m,v={top:0,left:0},b=O(e,t);return"viewport"===o?(f=(u=b).ownerDocument.documentElement,c=N(u,f),p=Math.max(f.clientWidth,window.innerWidth||0),d=Math.max(f.clientHeight,window.innerHeight||0),h=_(f),m=_(f,"left"),v=T({top:h-c.top+c.marginTop,left:m-c.left+c.marginLeft,width:p,height:d})):(r=void 0,"scrollParent"===o?"BODY"===(r=y(g(t))).nodeName&&(r=e.ownerDocument.documentElement):r="window"===o?e.ownerDocument.documentElement:o,i=N(r,b),"HTML"!==r.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===w(t,"position")||e(g(t)))}(b)?v=i:(a=(s=x()).height,l=s.width,v.top+=i.top-i.marginTop,v.bottom=a+i.top,v.left+=i.left-i.marginLeft,v.right=l+i.left)),v.left+=n,v.top+=n,v.right-=n,v.bottom-=n,v}function h(e,t,o,n,r,i){var s=5<arguments.length&&void 0!==i?i:0;if(-1===e.indexOf("auto"))return e;var a=L(o,n,s,r),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(l).map(function(e){return k({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),f=u.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),c=0<f.length?f[0].key:u[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function m(e,t,n){return N(n,O(t,n))}function P(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function j(e,t,n){n=n.split("-")[0];var o=P(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return r[s]=t[s]+t[l]/2-o[l]/2,r[a]=n===a?t[a]-o[u]:t[M(a)],r}function S(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var o=S(e,function(e){return e[t]===n});return e.indexOf(o)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&s(t)&&(n.offsets.popper=T(n.offsets.popper),n.offsets.reference=T(n.offsets.reference),n=t(n,e))}),n}function R(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function I(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length-1;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function v(e){var t=e.ownerDocument;return t?t.defaultView:window}function b(e,t,n,o){n.updateBound=o,v(e).addEventListener("resize",n.updateBound,{passive:!0});var r=y(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,s=i?t.ownerDocument.defaultView:t;s.addEventListener(n,o,{passive:!0}),i||e(y(s.parentNode),n,o,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function H(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,v(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(n,o){Object.keys(o).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&B(o[e])&&(t="px"),n.style[e]=o[e]+t})}function W(e,t,n){var o,r,i=S(e,function(e){return e.name===t}),s=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});return s||(o="`"+t+"`",r="`"+n+"`",console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),s}var q=["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"],$=q.slice(3);function z(e,t){var n=1<arguments.length&&void 0!==t&&t,o=$.indexOf(e),r=$.slice(o+1).concat($.slice(0,o));return n?r.reverse():r}var U="flip",Y="clockwise",K="counterclockwise";function V(e,r,i,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),o=n.indexOf(S(n,function(e){return-1!==e.search(/,|\s/)}));n[o]&&-1===n[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/;return(-1!==o?[n.slice(0,o).concat([n[o].split(l)[0]]),[n[o].split(l)[1]].concat(n.slice(o+1))]:[n]).map(function(e,t){var n=(1===t?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],s=r[2];if(!i)return e;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?i:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=o}return T(a)[t]/100*i}(e,n,r,i)})}).forEach(function(n,o){n.forEach(function(e,t){B(e)&&(s[o]+=e*("-"===n[t-1]?-1:1))})}),s}var G={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,o,r,i,s,a,l=e.placement,u=l.split("-")[0],f=l.split("-")[1];return f&&(n=(t=e.offsets).reference,o=t.popper,s=(r=-1!==["bottom","top"].indexOf(u))?"width":"height",a={start:C({},i=r?"left":"top",n[i]),end:C({},i,n[i]+n[s]-o[s])},e.offsets.popper=k({},o,a[f])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,s=r.reference,a=o.split("-")[0],l=void 0,l=B(+n)?[+n,0]:V(n,i,s,a);return"left"===a?(i.top+=l[0],i.left-=l[1]):"right"===a?(i.top+=l[0],i.left+=l[1]):"top"===a?(i.left+=l[0],i.top-=l[1]):"bottom"===a&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,o){var t=o.boundariesElement||E(e.instance.popper);e.instance.reference===t&&(t=E(t));var r=L(e.instance.popper,e.instance.reference,o.padding,t);o.boundaries=r;var n=o.priority,i=e.offsets.popper,s={primary:function(e){var t=i[e];return i[e]<r[e]&&!o.escapeWithReference&&(t=Math.max(i[e],r[e])),C({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=i[t];return i[e]>r[e]&&!o.escapeWithReference&&(n=Math.min(i[t],r[e]-("right"===e?i.width:i.height))),C({},t,n)}};return n.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";i=k({},i,s[t](e))}),e.offsets.popper=i,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[u]),n[l]>i(o[a])&&(e.offsets.popper[l]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!W(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(r),u=l?"height":"width",f=l?"Top":"Left",c=f.toLowerCase(),p=l?"left":"top",d=l?"bottom":"right",h=P(o)[u];a[d]-h<s[c]&&(e.offsets.popper[c]-=s[c]-(a[d]-h)),a[c]+h>s[d]&&(e.offsets.popper[c]+=a[c]+h-s[d]),e.offsets.popper=T(e.offsets.popper);var m=a[c]+a[u]/2-h/2,v=w(e.instance.popper),b=parseFloat(v["margin"+f],10),g=parseFloat(v["border"+f+"Width"],10),y=m-e.offsets.popper[c]-b-g,y=Math.max(Math.min(s[u]-h,y),0);return e.arrowElement=o,e.offsets.arrow=(C(n={},c,Math.round(y)),C(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(h,m){if(R(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var v=L(h.instance.popper,h.instance.reference,m.padding,m.boundariesElement),b=h.placement.split("-")[0],g=M(b),y=h.placement.split("-")[1]||"",w=[];switch(m.behavior){case U:w=[b,g];break;case Y:w=z(b);break;case K:w=z(b,!0);break;default:w=m.behavior}return w.forEach(function(e,t){if(b!==e||w.length===t+1)return h;b=h.placement.split("-")[0],g=M(b);var n,o=h.offsets.popper,r=h.offsets.reference,i=Math.floor,s="left"===b&&i(o.right)>i(r.left)||"right"===b&&i(o.left)<i(r.right)||"top"===b&&i(o.bottom)>i(r.top)||"bottom"===b&&i(o.top)<i(r.bottom),a=i(o.left)<i(v.left),l=i(o.right)>i(v.right),u=i(o.top)<i(v.top),f=i(o.bottom)>i(v.bottom),c="left"===b&&a||"right"===b&&l||"top"===b&&u||"bottom"===b&&f,p=-1!==["top","bottom"].indexOf(b),d=!!m.flipVariations&&(p&&"start"===y&&a||p&&"end"===y&&l||!p&&"start"===y&&u||!p&&"end"===y&&f);(s||c||d)&&(h.flipped=!0,(s||c)&&(b=w[t+1]),d&&(y="end"===(n=y)?"start":"start"===n?"end":n),h.placement=b+(y?"-"+y:""),h.offsets.popper=k({},h.offsets.popper,j(h.instance.popper,h.offsets.reference,h.placement)),h=A(h.instance.modifiers,h,"flip"))}),h},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=i[n]-(a?r[s?"width":"height"]:0),e.placement=M(t),e.offsets.popper=T(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!W(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=S(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=S(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,l=void 0!==i?i:t.gpuAcceleration,u=D(E(e.instance.popper)),f={position:r.position},c={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},p="bottom"===n?"top":"bottom",d="right"===o?"left":"right",h=I("transform"),m=void 0,v=void 0,v="bottom"==p?-u.height+c.bottom:c.top,m="right"==d?-u.width+c.right:c.left;l&&h?(f[h]="translate3d("+m+"px, "+v+"px, 0)",f[p]=0,f[d]=0,f.willChange="transform"):(s="bottom"==p?-1:1,a="right"==d?-1:1,f[p]=v*s,f[d]=m*a,f.willChange=p+", "+d);var b={"x-placement":e.placement};return e.attributes=k({},b,e.attributes),e.styles=k({},f,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return F(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=m(0,t,e),s=h(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),F(t,{position:"absolute"}),n},gpuAcceleration:void 0}}},X=(u(Z,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=m(this.state,this.popper,this.reference),e.placement=h(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=j(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=A(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[I("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=b(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),Z);function Z(e,t){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};l(this,Z),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=i(this.update.bind(this)),this.options=k({},Z.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(k({},Z.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=k({},Z.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return k({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return X.Utils=("undefined"!=typeof window?window:J).PopperUtils,X.placements=q,X.Defaults=G,X},"object"==typeof o&&void 0!==n?n.exports=t():e.Popper=t()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(e,t,n){var o,r;o=this,r=function(i){"use strict";i=i&&"default"in i?i.default:i;var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},t=(e(l,[{key:"_create",value:function(e,t,n,o){var r=window.document.createElement("div");r.innerHTML=t.trim();var i=r.childNodes[0];i.id="tooltip_"+Math.random().toString(36).substr(2,10),i.setAttribute("aria-hidden","false");var s,a,l=r.querySelector(this.innerSelector);return 1===n.nodeType||11===n.nodeType?o&&l.appendChild(n):(a=n)&&"[object Function]"==={}.toString.call(a)?(s=n.call(e),o?l.innerHTML=s:l.innerText=s):o?l.innerHTML=n:l.innerText=n,i}},{key:"_show",value:function(e,t){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var n=e.getAttribute("title")||t.title;if(!n)return this;var o=this._create(e,t.template,n,t.html);e.setAttribute("aria-describedby",o.id);var r=this._findContainer(t.container,e);return this._append(o,r),this._popperOptions=s({},t.popperOptions,{placement:t.placement}),this._popperOptions.modifiers=s({},this._popperOptions.modifiers,{arrow:{element:this.arrowSelector},offset:{offset:t.offset}}),t.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new i(e,o,this._popperOptions),this._tooltipNode=o,this}},{key:"_hide",value:function(){return this._isOpen&&(this._isOpen=!1,this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true")),this}},{key:"_dispose",value:function(){var o=this;return this._events.forEach(function(e){var t=e.func,n=e.event;o.reference.removeEventListener(n,t)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(n,e,o){var r=this,t=[],i=[];e.forEach(function(e){switch(e){case"hover":t.push("mouseenter"),i.push("mouseleave");break;case"focus":t.push("focus"),i.push("blur");break;case"click":t.push("click"),i.push("click")}}),t.forEach(function(e){function t(e){!0!==r._isOpening&&(e.usedByTooltip=!0,r._scheduleShow(n,o.delay,o,e))}r._events.push({event:e,func:t}),n.addEventListener(e,t)}),i.forEach(function(e){function t(e){!0!==e.usedByTooltip&&r._scheduleHide(n,o.delay,o,e)}r._events.push({event:e,func:t}),n.addEventListener(e,t)})}},{key:"_scheduleShow",value:function(e,t,n){var o=this;this._isOpening=!0;var r=t&&t.show||t||0;this._showTimeout=window.setTimeout(function(){return o._show(e,n)},r)}},{key:"_scheduleHide",value:function(e,t,n,o){var r=this;this._isOpening=!1;var i=t&&t.hide||t||0;window.setTimeout(function(){if(window.clearTimeout(r._showTimeout),!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if("mouseleave"===o.type)if(r._setTooltipNodeEvent(o,e,t,n))return;r._hide(e,n)}},i)}}]),l);function l(e,t){o(this,l),u.call(this),t=s({},a,t),e.jquery&&(e=e[0]),this.reference=e;var n="string"==typeof(this.options=t).trigger?t.trigger.split(" ").filter(function(e){return-1!==["click","hover","focus"].indexOf(e)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(e,n,t)}var u=function(){var s=this;this.show=function(){return s._show(s.reference,s.options)},this.hide=function(){return s._hide()},this.dispose=function(){return s._dispose()},this.toggle=function(){return s._isOpen?s.hide():s.show()},this.arrowSelector=".tooltip-arrow, .tooltip__arrow",this.innerSelector=".tooltip-inner, .tooltip__inner",this._events=[],this._setTooltipNodeEvent=function(o,r,e,i){var t=o.relatedreference||o.toElement||o.relatedTarget;return!!s._tooltipNode.contains(t)&&(s._tooltipNode.addEventListener(o.type,function e(t){var n=t.relatedreference||t.toElement||t.relatedTarget;s._tooltipNode.removeEventListener(o.type,e),r.contains(n)||s._scheduleHide(r,i.delay,i,t)}),!0)}};return t},"object"==typeof n&&void 0!==t?t.exports=r(e("popper.js")):o.Tooltip=r(o.Popper)},{"popper.js":15}],15:[function(e,n,o){(function(te){var e,t;e=this,t=function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},o))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function m(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:m(h(e))}function v(e){return e&&e.referenceNode?e.referenceNode:e}var t=n&&!(!window.MSInputMethodContext||!document.documentMode),r=n&&/MSIE 10/.test(navigator.userAgent);function b(e){return 11===e?t:10!==e&&t||r}function y(e){if(!e)return document.documentElement;for(var t=b(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?y(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,a,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&y(s.firstElementChild)!==s?y(l):l;var u=f(e);return u.host?g(u.host,t):g(e,f(t).host)}function E(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"!==o&&"HTML"!==o)return e[n];var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[n]}function c(e,t){var n="x"===t?"Left":"Top",o="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function a(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,o=b(10)&&getComputedStyle(n);return{height:a("Height",t,n,o),width:a("Width",t,n,o)}}var l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e};function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function C(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t,n,o={};try{b(10)?(o=e.getBoundingClientRect(),t=E(e,"top"),n=E(e,"left"),o.top+=t,o.left+=n,o.bottom+=t,o.right+=n):o=e.getBoundingClientRect()}catch(e){}var r,i={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s="HTML"===e.nodeName?O(e.ownerDocument):{},a=s.width||e.clientWidth||i.width,l=s.height||e.clientHeight||i.height,u=e.offsetWidth-a,f=e.offsetHeight-l;return(u||f)&&(u-=c(r=w(e),"x"),f-=c(r,"y"),i.width-=u,i.height-=f),C(i)}function T(e,t,n){var o=2<arguments.length&&void 0!==n&&n,r=b(10),i="HTML"===t.nodeName,s=k(e),a=k(t),l=m(e),u=w(t),f=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);o&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p,d,h=C({top:s.top-a.top-f,left:s.left-a.left-c,width:s.width,height:s.height});return h.marginTop=0,h.marginLeft=0,!r&&i&&(p=parseFloat(u.marginTop),d=parseFloat(u.marginLeft),h.top-=f-p,h.bottom-=f-p,h.left-=c-d,h.right-=c-d,h.marginTop=p,h.marginLeft=d),(r&&!o?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var o=2<arguments.length&&void 0!==n&&n,r=E(t,"top"),i=E(t,"left"),s=o?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}(h,t)),h}function D(e){if(!e||!e.parentElement||b())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function d(e,t,n,o,r){var i,s,a,l,u,f=4<arguments.length&&void 0!==r&&r,c={top:0,left:0},p=f?D(e):g(e,v(t));"viewport"===o?c=function(e,t){var n=1<arguments.length&&void 0!==t&&t,o=e.ownerDocument.documentElement,r=T(e,o),i=Math.max(o.clientWidth,window.innerWidth||0),s=Math.max(o.clientHeight,window.innerHeight||0),a=n?0:E(o),l=n?0:E(o,"left");return C({top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:i,height:s})}(p,f):(i=void 0,"scrollParent"===o?"BODY"===(i=m(h(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===o?e.ownerDocument.documentElement:o,s=T(i,p,f),"HTML"!==i.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===w(t,"position"))return!0;var o=h(t);return!!o&&e(o)}(p)?c=s:(l=(a=O(e.ownerDocument)).height,u=a.width,c.top+=s.top-s.marginTop,c.bottom=l+s.top,c.left+=s.left-s.marginLeft,c.right=u+s.left));var d="number"==typeof(n=n||0);return c.left+=d?n:n.left||0,c.top+=d?n:n.top||0,c.right-=d?n:n.right||0,c.bottom-=d?n:n.bottom||0,c}function p(e,t,o,n,r,i){var s=5<arguments.length&&void 0!==i?i:0;if(-1===e.indexOf("auto"))return e;var a=d(o,n,s,r),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(l).map(function(e){return x({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),f=u.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),c=0<f.length?f[0].key:u[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function N(e,t,n,o){var r=3<arguments.length&&void 0!==o?o:null;return T(n,r?D(t):g(t,v(n)),r)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function P(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function M(e,t,n){n=n.split("-")[0];var o=L(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return r[s]=t[s]+t[l]/2-o[l]/2,r[a]=n===a?t[a]-o[u]:t[P(a)],r}function j(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function S(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var o=j(e,function(e){return e[t]===n});return e.indexOf(o)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&s(t)&&(n.offsets.popper=C(n.offsets.popper),n.offsets.reference=C(n.offsets.reference),n=t(n,e))}),n}function A(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function I(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,n,o){n.updateBound=o,I(e).addEventListener("resize",n.updateBound,{passive:!0});var r=m(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,s=i?t.ownerDocument.defaultView:t;s.addEventListener(n,o,{passive:!0}),i||e(m(s.parentNode),n,o,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function B(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,I(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function F(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(n,o){Object.keys(o).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&F(o[e])&&(t="px"),n.style[e]=o[e]+t})}function q(e,t){function n(e){return e}var o=e.offsets,r=o.popper,i=o.reference,s=Math.round,a=Math.floor,l=s(i.width),u=s(r.width),f=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),p=t?f||c||l%2==u%2?s:a:n,d=t?s:n;return{left:p(l%2==1&&u%2==1&&!c&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:p(r.right)}}var $=n&&/Firefox/i.test(navigator.userAgent);function z(e,t,n){var o,r,i=j(e,function(e){return e.name===t}),s=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});return s||(o="`"+t+"`",r="`"+n+"`",console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),s}var U=["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"],Y=U.slice(3);function K(e,t){var n=1<arguments.length&&void 0!==t&&t,o=Y.indexOf(e),r=Y.slice(o+1).concat(Y.slice(0,o));return n?r.reverse():r}var V="flip",G="clockwise",X="counterclockwise";function Z(e,r,i,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),o=n.indexOf(j(n,function(e){return-1!==e.search(/,|\s/)}));n[o]&&-1===n[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/;return(-1!==o?[n.slice(0,o).concat([n[o].split(l)[0]]),[n[o].split(l)[1]].concat(n.slice(o+1))]:[n]).map(function(e,t){var n=(1===t?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],s=r[2];if(!i)return e;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?i:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=o}return C(a)[t]/100*i}(e,n,r,i)})}).forEach(function(n,o){n.forEach(function(e,t){F(e)&&(s[o]+=e*("-"===n[t-1]?-1:1))})}),s}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,o,r,i,s,a,l=e.placement,u=l.split("-")[0],f=l.split("-")[1];return f&&(n=(t=e.offsets).reference,o=t.popper,s=(r=-1!