construct-ui
Version:
A Mithril.js UI library
2 lines • 186 kB
JavaScript
/*! For license information please see construct-ui.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("m")):"function"==typeof define&&define.amd?define("CUI",["m"],t):"object"==typeof exports?exports.CUI=t(require("m")):e.CUI=t(e.m)}(self,(function(e){return function(){var t={4184:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1296:function(e,t,n){var i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),p=Object.prototype.toString,d=Math.max,f=Math.min,h=function(){return u.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=r.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i,o,r,a,s,l,c=0,u=!1,p=!1,E=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,r=o;return i=o=void 0,c=t,a=e.apply(r,n)}function m(e){return c=e,s=setTimeout(O,t),u?v(e):a}function x(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=r}function O(){var e=h();if(x(e))return C(e);s=setTimeout(O,function(e){var n=t-(e-l);return p?f(n,r-(e-c)):n}(e))}function C(e){return s=void 0,E&&i?v(e):(i=o=void 0,a)}function g(){var e=h(),n=x(e);if(i=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(p)return s=setTimeout(O,t),v(l)}return void 0===s&&(s=setTimeout(O,t)),a}return t=_(t)||0,y(n)&&(u=!!n.leading,r=(p="maxWait"in n)?d(_(n.maxWait)||0,t):r,E="trailing"in n?!!n.trailing:E),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=o=s=void 0},g.flush=function(){return void 0===s?a:C(h())},g}},7469:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CSSTransition=void 0;var r=o(n(8230)),a=n(713),s=n(7341),l=function(){function e(){var e=this;this.onEnter=function(t,n){e.removeClasses(t,n,"exit"),t.classList.add(n.transitionClass+"-enter"),s.safeCall(n.onEnter,t)},this.onEntering=function(t,n){e.removeClasses(t,n,"exit"),t.classList.add(n.transitionClass+"-enter-active"),t.scrollTop,s.safeCall(n.onEntering,t)},this.onEntered=function(t,n){e.removeClasses(t,n,"enter"),s.safeCall(n.onEntered,t)},this.onExit=function(t,n){e.removeClasses(t,n,"enter"),t.classList.add(n.transitionClass+"-exit"),s.safeCall(n.onExit,t)},this.onExiting=function(t,n){e.removeClasses(t,n,"enter"),t.classList.add(n.transitionClass+"-exit-active"),t.scrollTop,s.safeCall(n.onExiting,t)},this.onExited=function(t,n){e.removeClasses(t,n,"exit"),s.safeCall(n.onExited,t)}}return e.prototype.view=function(e){var t=this,n=e.attrs;return r.default(a.Transition,i(i({},n),{onEnter:function(e){return t.onEnter(e,n)},onEntering:function(e){return t.onEntering(e,n)},onEntered:function(e){return t.onEntered(e,n)},onExit:function(e){return t.onExit(e,n)},onExiting:function(e){return t.onExiting(e,n)},onExited:function(e){return t.onExited(e,n)}}))},e.prototype.removeClasses=function(e,t,n){e.classList.remove(t.transitionClass+"-"+n),e.classList.remove(t.transitionClass+"-"+n+"-active")},e}();t.CSSTransition=l},713:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transition=t.TransitionState=void 0;var o,r=i(n(8230)),a=n(7341);!function(e){e.UNMOUNTED="unmounted",e.EXITED="exited",e.ENTERING="entering",e.ENTERED="entered",e.EXITING="exiting"}(o=t.TransitionState||(t.TransitionState={}));var s=function(){function e(){var e=this;this.status=o.UNMOUNTED,this.nextStatus=null,this.node=null,this.timeoutStack=[],this.clearTimeouts=function(){e.timeoutStack.length&&(e.timeoutStack.map((function(e){return clearTimeout(e)})),e.timeoutStack=[])}}return e.prototype.oninit=function(e){e.attrs.isVisible&&(this.status=o.EXITED,this.nextStatus=o.ENTERING)},e.prototype.oncreate=function(e){var t=e.attrs,n=e.dom;this.node=n,this.updateStatus(t)},e.prototype.onupdate=function(e){var t=e.attrs,n=e.dom;this.node=n,this.updateStatus(t)},e.prototype.onbeforeupdate=function(e,t){var n=e.attrs.isVisible;n&&this.status===o.UNMOUNTED?(this.status=o.EXITED,this.nextStatus=o.ENTERING):n&&!t.attrs.isVisible?(this.clearTimeouts(),this.nextStatus=o.ENTERING):!n&&t.attrs.isVisible&&(this.clearTimeouts(),this.nextStatus=o.EXITING)},e.prototype.onbeforeremove=function(){this.clearTimeouts()},e.prototype.view=function(e){var t=e.attrs;return this.status===o.UNMOUNTED?null:"function"==typeof t.content?t.content(this.status):t.content},e.prototype.getTimeouts=function(e){var t,n,i=e.timeout;return n=t=i,null!==i&&"number"!=typeof i&&(t=i.enter,n=i.exit),{enter:t,exit:n}},e.prototype.updateStatus=function(e,t){void 0===t&&(t=!1),this.nextStatus===o.ENTERING?this.performEnter(e):this.nextStatus===o.EXITING?this.performExit(e):this.nextStatus===o.UNMOUNTED&&this.performUnmount()},e.prototype.performEnter=function(e){var t=this,n=this.getTimeouts(e);a.safeCall(e.onEnter,this.node),this.setTimeout((function(){t.status=o.ENTERING,t.nextStatus=o.ENTERED,r.default.redraw(),a.safeCall(e.onEntering,t.node)}),17),this.setTimeout((function(){t.status=o.ENTERED,t.nextStatus=null,r.default.redraw(),a.safeCall(e.onEntered,t.node)}),n.enter+17)},e.prototype.performExit=function(e){var t=this,n=this.getTimeouts(e);a.safeCall(e.onExit,this.node),this.setTimeout((function(){t.status=o.EXITING,t.nextStatus=o.EXITED,r.default.redraw(),a.safeCall(e.onExiting,t.node)}),17),this.setTimeout((function(){t.status=o.EXITED,t.nextStatus=o.UNMOUNTED,r.default.redraw(),a.safeCall(e.onExited,t.node)}),n.exit+17)},e.prototype.performUnmount=function(){this.status=o.UNMOUNTED,this.nextStatus=null,r.default.redraw()},e.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutStack.push(n),function(){return clearTimeout(n)}},e}();t.Transition=s},8047:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CSSTransition=t.TransitionState=t.Transition=void 0;var i=n(713);Object.defineProperty(t,"Transition",{enumerable:!0,get:function(){return i.Transition}}),Object.defineProperty(t,"TransitionState",{enumerable:!0,get:function(){return i.TransitionState}});var o=n(7469);Object.defineProperty(t,"CSSTransition",{enumerable:!0,get:function(){return o.CSSTransition}})},7341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeCall=void 0,t.safeCall=function(e,t){"function"==typeof e&&e(t)}},8981:function(e,t,n){"use strict";n.r(t);var i="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(i&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),r=i&&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 a(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:c(l(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var p=i&&!(!window.MSInputMethodContext||!document.documentMode),d=i&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?p:10===e?d:p||d}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){return null!==e.parentNode?y(e.parentNode):e}function _(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(l):l;var c=y(e);return c.host?_(c.host,t):_(e,y(t).host)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||o;return r[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=E(t,"top"),o=E(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function m(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function x(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,i=f(10)&&getComputedStyle(n);return{height:x("Height",t,n,i),width:x("Width",t,n,i)}}var C=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function I(e){return A({},e,{right:e.left+e.width,bottom:e.top+e.height})}function R(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=E(e,"top"),i=E(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?O(e.ownerDocument):{},a=r.width||e.clientWidth||o.width,l=r.height||e.clientHeight||o.height,c=e.offsetWidth-a,u=e.offsetHeight-l;if(c||u){var p=s(e);c-=m(p,"x"),u-=m(p,"y"),o.width-=c,o.height-=u}return I(o)}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(10),o="HTML"===t.nodeName,r=R(e),a=R(t),l=c(e),u=s(t),p=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=I({top:r.top-a.top-p,left:r.left-a.left-d,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var y=parseFloat(u.marginTop),_=parseFloat(u.marginLeft);h.top-=p-y,h.bottom-=p-y,h.left-=d-_,h.right-=d-_,h.marginTop=y,h.marginLeft=_}return(i&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=v(h,t)),h}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=L(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:E(n),s=t?0:E(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return I(l)}function S(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=l(e);return!!n&&S(n)}function D(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?D(e):_(e,u(t));if("viewport"===i)r=b(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var p=L(s,a,o);if("HTML"!==s.nodeName||S(a))r=p;else{var d=O(e.ownerDocument),f=d.height,h=d.width;r.top+=p.top-p.marginTop,r.bottom=f+p.top,r.left+=p.left-p.marginLeft,r.right=h+p.left}}var y="number"==typeof(n=n||0);return r.left+=y?n:n.left||0,r.top+=y?n:n.top||0,r.right-=y?n:n.right||0,r.bottom-=y?n:n.bottom||0,r}function M(e){return e.width*e.height}function w(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=N(n,i,r,o),s={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}},l=Object.keys(s).map((function(e){return A({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function P(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?D(t):_(t,u(n));return L(n,o,i)}function U(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function B(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 F(e,t,n){n=n.split("-")[0];var i=U(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=t[a]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[c]:t[B(s)],o}function H(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function G(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var i=H(e,(function(e){return e.name===n}));return e.indexOf(i)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=I(t.offsets.popper),t.offsets.reference=I(t.offsets.reference),t=n(t,e))})),t}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=w(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.positionFixed=this.options.positionFixed,e.offsets.popper=F(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=G(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function j(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function z(){return this.state.isDestroyed=!0,V(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[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function K(e,t,n,i){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),o||K(c(r.parentNode),t,n,i),i.push(r)}function Y(e,t,n,i){n.updateBound=i,W(e).addEventListener("resize",n.updateBound,{passive:!0});var o=c(e);return K(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function X(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(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 Q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Q(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var $=i&&/Firefox/i.test(navigator.userAgent);function J(e,t,n){var i=H(e,(function(e){return e.name===t})),o=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!o){var r="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var ee=["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"],te=ee.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=te.indexOf(e),i=te.slice(n+1).concat(te.slice(0,n));return t?i.reverse():i}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:T({},l,r[l]),end:T({},l,r[l]+r[c]-a[c])};e.offsets.popper=A({},a,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,o=e.placement,r=e.offsets,a=r.popper,s=r.reference,l=o.split("-")[0];return n=Q(+i)?[+i,0]:function(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(H(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,i){var o=(1===i?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];return r?0===a.indexOf("%")?I("%p"===a?n:i)[t]/100*r:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e}(e,o,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){Q(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}(i,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var i=j("transform"),o=e.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=N(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=a,o[i]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),T({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),T({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=A({},u,p[t](e))})),e.offsets.popper=u,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,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(e.offsets.popper[l]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,a=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",p=c?"Top":"Left",d=p.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",y=U(i)[u];l[h]-y<a[d]&&(e.offsets.popper[d]-=a[d]-(l[h]-y)),l[d]+y>a[h]&&(e.offsets.popper[d]+=l[d]+y-a[h]),e.offsets.popper=I(e.offsets.popper);var _=l[d]+l[u]/2-y/2,E=s(e.instance.popper),v=parseFloat(E["margin"+p]),m=parseFloat(E["border"+p+"Width"]),x=_-e.offsets.popper[d]-v-m;return x=Math.max(Math.min(a[u]-y,x),0),e.arrowElement=i,e.offsets.arrow=(T(n={},d,Math.round(x)),T(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=N(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=B(i),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[i,o];break;case"clockwise":a=ne(i);break;case"counterclockwise":a=ne(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],o=B(i);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,d="left"===i&&p(c.right)>p(u.left)||"right"===i&&p(c.left)<p(u.right)||"top"===i&&p(c.bottom)>p(u.top)||"bottom"===i&&p(c.top)<p(u.bottom),f=p(c.left)<p(n.left),h=p(c.right)>p(n.right),y=p(c.top)<p(n.top),_=p(c.bottom)>p(n.bottom),E="left"===i&&f||"right"===i&&h||"top"===i&&y||"bottom"===i&&_,v=-1!==["top","bottom"].indexOf(i),m=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&y||!v&&"end"===r&&_),x=!!t.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&_||!v&&"end"===r&&y),O=m||x;(d||E||O)&&(e.flipped=!0,(d||E)&&(i=a[l+1]),O&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=A({},e.offsets.popper,F(e.instance.popper,e.offsets.reference,e.placement)),e=G(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=B(t),e.offsets.popper=I(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=H(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,i=t.y,o=e.offsets.popper,r=H(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==r?r:t.gpuAcceleration,c=h(e.instance.popper),u=R(c),p={position:o.position},d=function(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},l=r(o.width),c=r(i.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),d=t?u||p||l%2==c%2?r:a:s,f=t?r:s;return{left:d(l%2==1&&c%2==1&&!p&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:d(i.right)}}(e,window.devicePixelRatio<2||!$),f="bottom"===n?"top":"bottom",y="right"===i?"left":"right",_=j("transform");if(s="bottom"===f?"HTML"===c.nodeName?-c.clientHeight+d.bottom:-u.height+d.bottom:d.top,a="right"===y?"HTML"===c.nodeName?-c.clientWidth+d.right:-u.width+d.right:d.left,l&&_)p[_]="translate3d("+a+"px, "+s+"px, 0)",p[f]=0,p[y]=0,p.willChange="transform";else{var E="bottom"===f?-1:1,v="right"===y?-1:1;p[f]=s*E,p[y]=a*v,p.willChange=f+", "+y}var m={"x-placement":e.placement};return e.attributes=A({},m,e.attributes),e.styles=A({},p,e.styles),e.arrowStyles=A({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Z(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&&Z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=P(o,t,e,n.positionFixed),a=w(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Z(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},oe=function(){function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};C(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=A({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=A({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return A({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return g(e,[{key:"update",value:function(){return k.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),e}();oe.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,oe.placements=ee,oe.Defaults=ie,t.default=oe},7986:function(e){e.exports=function(){"use strict";function e(e,t){e.forEach((function(e){return e(t)}))}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),i=[],o=function(){},r=function(){function r(e){if(t(this,r),this.id=e.id||Math.random().toString(36).substr(2,9),this.query=e.query||"all",this.options=Object.assign({},{onEnter:[],onLeave:[],onResize:[],onFirstRun:[]},e),"function"==typeof this.options.onEnter&&(this.options.onEnter=[this.options.onEnter]),"function"==typeof this.options.onLeave&&(this.options.onLeave=[this.options.onLeave]),"function"==typeof this.options.onResize&&(this.options.onResize=[this.options.onResize]),"function"==typeof this.options.onFirstRun&&(this.options.onFirstRun=[this.options.onFirstRun]),!1===this.testConfigOptions("once"))return this.valid=!1,!1;this.valid=!0,this.active=!1,this.init()}return n(r,[{key:"init",value:function(){var e=this;this.test=window.matchMedia(this.query),this.test.matches&&this.testConfigOptions("match")&&this.enterState(),this.listener=function(t){var n=!1;t.matches?e.testConfigOptions("match")&&(e.enterState(),n=!0):(e.leaveState(),n=!0),n&&o()},this.test.addListener(this.listener)}},{key:"enterState",value:function(){e(this.options.onFirstRun,this.eventData("firstRun")),e(this.options.onEnter,this.eventData("enter")),this.options.onFirstRun=[],this.active=!0}},{key:"leaveState",value:function(){e(this.options.onLeave,this.eventData("leave")),this.active=!1}},{key:"resizeState",value:function(){this.testConfigOptions("resize")&&e(this.options.onResize,this.eventData("resize"))}},{key:"destroy",value:function(){this.test.removeListener(this.listener)}},{key:"attachCallback",value:function(e,t,n){switch(e){case"enter":this.options.onEnter.push(t);break;case"leave":this.options.onLeave.push(t);break;case"resize":this.options.onResize.push(t)}"enter"===e&&n&&this.active&&t(this.eventData(e))}},{key:"testConfigOptions",value:function(e){var t=this,n=!0;return i.forEach((function(i){void 0!==t.options[i.name]&&i.when===e&&!1===i.test.bind(t)()&&(n=!1)})),n}},{key:"eventData",value:function(e){return{eventType:e,state:this}}}],[{key:"addConfigOption",value:function(e){i.push(e)}},{key:"getConfigOptions",value:function(){return i}},{key:"removeConfigOption",value:function(e){i.forEach((function(t,n){t.name===e&&i.splice(n,1)}))}},{key:"setStateChangeMethod",value:function(e){if("function"!=typeof e)throw new Error("Not a function");o=e}}]),r}();return new(function(){function e(){t(this,e),this.states=[],this.resizeTimer=null,this.configOptions=[],window.addEventListener("resize",function(e){var t=this,n=void 0;return function(){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];n&&window.cancelAnimationFrame(n),n=window.requestAnimationFrame((function(){n=null,e.apply(t,o)}))}}(this.resizeBrowser.bind(this)),!0)}return n(e,[{key:"addState",value:function(e){var t=new r(e);return t.valid&&this.states.push(t),t}},{key:"addStates",value:function(e){var t=this;e.forEach((function(e){return t.addState(e)}))}},{key:"getState",value:function(e){return this.states.filter((function(t){return t.id===e}))[0]||!1}},{key:"isActive",value:function(e){return(this.getState(e)||{}).active||!1}},{key:"getStates",value:function(e){var t=this;return void 0===e?this.states:e.map((function(e){return t.getState(e)}))}},{key:"removeState",value:function(e){var t=this;this.states.forEach((function(n,i){n.id===e&&(n.destroy(),t.states.splice(i,1))}))}},{key:"removeStates",value:function(e){var t=this;e.forEach((function(e){return t.removeState(e)}))}},{key:"removeAllStates",value:function(){this.states.forEach((function(e){return e.destroy()})),this.states=[]}},{key:"addConfigOption",value:function(e){var t=e.name,n=void 0===t?"":t,i=e.test,o=void 0===i?null:i,a=e.when,s=void 0===a?"resize":a;""!==n&&null!==o&&r.addConfigOption({name:n,test:o,when:s})}},{key:"removeConfigOption",value:function(e){r.removeConfigOption(e)}},{key:"getConfigOptions",value:function(e){var t=r.getConfigOptions();return"string"==typeof e?t.filter((function(t){return t.name===e})):t}},{key:"resizeBrowser",value:function(){var e,t;(e=this.states,t="active",!0,e.filter((function(e){return e[t]&&true===e[t]}))).forEach((function(e){e.resizeState()}))}},{key:"stateChange",value:function(e){r.setStateChangeMethod(e)}}]),e}())}()},7615:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Align=void 0,t.Align={LEFT:"left",CENTER:"center",RIGHT:"right"}},6657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Classes=void 0,t.Classes={XS:"cui-xs",SM:"cui-sm",LG:"cui-lg",XL:"cui-xl",PRIMARY:"cui-primary",NEGATIVE:"cui-negative",POSITIVE:"cui-positive",WARNING:"cui-warning",ACTIVE:"cui-active",DISABLED:"cui-disabled",LOADING:"cui-loading",BASIC:"cui-basic",OUTLINED:"cui-outlined",ROUNDED:"cui-rounded",READONLY:"cui-readonly",SELECTED:"cui-selected",INTERACTIVE:"cui-interactive",ELEVATION:"cui-elevation",HIDDEN:"cui-hidden",H1:"cui-h1",H2:"cui-h2",H3:"cui-h3",H4:"cui-h4",H5:"cui-h5",H6:"cui-h6",ALIGN:"cui-align",ALIGN_RIGHT:"cui-align-right",ALIGN_LEFT:"cui-align-left",FLUID:"cui-fluid",TEXT_MUTED:"cui-text-muted",TEXT_DISABLED:"cui-text-disabled",FOCUS_DISABLED:"cui-focus-disabled",COMPACT:"cui-compact",BREADCRUMB:"cui-breadcrumb",BREADCRUMB_ITEM:"cui-breadcrumb-item",BREADCRUMB_SEPERATOR:"cui-breadcrumb-seperator",BUTTON:"cui-button",BUTTON_LABEL:"cui-button-label",BUTTON_SUBLABEL:"cui-button-sublabel",BUTTON_GROUP:"cui-button-group",BUTTON_ICON:"cui-button-icon",CARD:"cui-card",CARD_INTERACTIVE:"cui-card-interactive",CALLOUT:"cui-callout",CALLOUT_HEADER:"cui-callout-header",CALLOUT_CONTENT:"cui-callout-content",CALLOUT_ICON:"cui-callout-icon",CALLOUT_DISMISS_ICON:"cui-callout-dismiss",CHECKBOX:"cui-checkbox",COLLAPSE:"cui-collapse",COLLAPSE_BODY:"cui-collapse-body",CONTEXT_MENU:"cui-context-menu",CONTROL:"cui-control",CONTROL_INDICATOR:"cui-control-indicator",CONTROL_GROUP:"cui-control-group",CUSTOM_SELECT:"cui-custom-select",CUSTOM_SELECT_TRIGGER:"cui-custom-select-trigger",CUSTOM_SELECT_INPUT:"cui-custom-select-input",CUSTOM_SELECT_HIDDEN:"cui-custom-select-hidden",DIALOG:"cui-dialog",DIALOG_CLOSE_BUTTON:"cui-dialog-close-button",DIALOG_CONTENT:"cui-dialog-content",DIALOG_HEADER:"cui-dialog-header",DIALOG_BODY:"cui-dialog-body",DIALOG_FOOTER:"cui-dialog-footer",DRAWER:"cui-drawer",DRAWER_CONTENT:"cui-drawer-content",EMPTY_STATE:"cui-empty-state",EMPTY_STATE_ICON:"cui-empty-state-icon",EMPTY_STATE_CONTENT:"cui-empty-state-content",EMPTY_STATE_HEADER:"cui-empty-state-header",EMPTY_STATE_FILL:"cui-empty-state-fill",FORM:"cui-form",FORM_GROUP:"cui-form-group",FORM_LABEL:"cui-form-label",GRID:"cui-grid",COL:"cui-col",INPUT_FILE:"cui-input-file",INPUT_FILE_CONTENT:"cui-input-file-content",INPUT_FILE_TEXT:"cui-input-file-text",INPUT_FILE_BUTTON:"cui-input-file-button",ICON:"cui-icon",ICON_ACTION:"cui-icon-action",INPUT:"cui-input",INPUT_GROUP:"cui-input-group",INPUT_POPOVER:"cui-input-popover",INPUT_POPOVER_CONTENT:"cui-input-popover-content",INPUT_SELECT:"cui-input-select",LIST:"cui-list",LIST_ITEM:"cui-list-item",LIST_ITEM_LABEL:"cui-list-item-label",LIST_ITEM_CONTENT_LEFT:"cui-list-item-content-left",LIST_ITEM_CONTENT_RIGHT:"cui-list-item-content-right",MENU:"cui-menu",MENU_ITEM:"cui-menu-item",MENU_DIVIDER:"cui-menu-divider",MENU_HEADING:"cui-menu-heading",OVERLAY:"cui-overlay",OVERLAY_CONTENT:"cui-overlay-content",OVERLAY_BACKDROP:"cui-overlay-backdrop",OVERLAY_OPEN:"cui-overlay-open",OVERLAY_INLINE:"cui-overlay-inline",OVERLAY_SCROLL_CONTAINER:"cui-overlay-scroll-container",POPOVER:"cui-popover",POPOVER_OPEN:"cui-popover-open",POPOVER_CONTENT:"cui-popover-content",POPOVER_ARROW:"cui-popover-arrow",POPOVER_TRIGGER_ACTIVE:"cui-popover-trigger-active",POPOVER_BACKDROP:"cui-popover-backdrop",POPOVER_DISSMISS:"cui-popover-dismiss",POPOVER_MENU:"cui-popover-menu",PORTAL:"cui-portal",QUERY_LIST:"cui-query-list",QUERY_LIST_CHECKMARK:"cui-query-list-checkmark",QUERY_LIST_EMPTY:"cui-query-list-empty",QUERY_LIST_INITIAL:"cui-query-list-initial",QUERY_LIST_MESSAGE:"cui-query-list-message",RADIO:"cui-radio",RADIO_GROUP:"cui-radio-group",SELECT:"cui-select",SELECT_ARROW:"cui-select-arrow",SELECT_LIST:"cui-select-list",SPINNER:"cui-spinner",SPINNER_CONTENT:"cui-spinner-content",SPINNER_ICON:"cui-spinner-icon",SPINNER_MESSAGE:"cui-spinner-message",SPINNER_FILL:"cui-spinner-fill",SPINNER_ACTIVE:"cui-spinner-active",SPINNER_BG:"cui-spinner-bg",SWITCH:"cui-switch",TABLE:"cui-table",TABLE_BORDERED:"cui-table-bordered",TABLE_STRIPED:"cui-table-striped",TABLE_INTERACTIVE:"cui-table-interactive",TAG:"cui-tag",TAG_REMOVABLE:"cui-tag-removable",TAG_INPUT:"cui-tag-input",TAG_INPUT_VALUES:"cui-tag-input-values",TABS:"cui-tabs",TABS_BORDERED:"cui-tabs-bordered",TABS_ITEM:"cui-tabs-item",TEXT_AREA:"cui-text-area",TOAST:"cui-toast",TOAST_MESSAGE:"cui-toast-message",TOASTER:"cui-toaster",TOASTER_INLINE:"cui-toaster-inline",TOOLTIP:"cui-tooltip",TREE:"cui-tree",TREE_NODE:"cui-tree-node",TREE_NODE_LIST:"cui-tree-node-list",TREE_NODE_CONTENT:"cui-tree-node-content",TREE_NODE_CARET:"cui-tree-node-caret",TREE_NODE_CARET_OPEN:"cui-tree-node-caret-open",TREE_NODE_CARET_CLOSED:"cui-tree-node-caret-closed",TREE_NODE_CARET_NONE:"cui-tree-node-caret-none",TREE_NODE_SELECTED:"cui-tree-node-selected",TREE_NODE_EXPANDED:"cui-tree-node-expanded",TREE_NODE_LABEL:"cui-tree-node-label",TREE_NODE_CONTENT_RIGHT:"cui-tree-node-content-right",TREE_NODE_CONTENT_LEFT:"cui-tree-node-content-left"}},3737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Colors=void 0,t.Colors={WHITE:"#FFFFFF",GREY50:"#FAFAFA",GREY100:"#F5F5F5",GREY200:"#EEEEEE",GREY300:"#E0E0E0",GREY400:"#BDBDBD",GREY500:"#9E9E9E",GREY600:"#757575",GREY700:"#616161",GREY800:"#424242",GREY900:"#212121",BLUE_GREY50:"#E4E9EB",BLUE_GREY100:"#CFD8DC",BLUE_GREY200:"#B0BEC5",BLUE_GREY300:"#90A4AE",BLUE_GREY400:"#78909C",BLUE_GREY500:"#607D8B",BLUE_GREY600:"#546E7A",BLUE_GREY700:"#455A64",BLUE_GREY800:"#37474F",BLUE_GREY900:"#263238",RED50:"#FFEBEE",RED100:"#FFCDD2",RED200:"#EF9A9A",RED300:"#E57373",RED400:"#EF5350",RED500:"#F44336",RED600:"#E53935",RED700:"#D32F2F",RED800:"#C62828",RED900:"#B71C1C",PURPLE50:"#F3E5F5",PURPLE100:"#E1BEE7",PURPLE200:"#CE93D8",PURPLE300:"#BA68C8",PURPLE400:"#AB47BC",PURPLE500:"#9C27B0",PURPLE600:"#8E24AA",PURPLE700:"#7B1FA2",PURPLE800:"#6A1B9A",PURPLE900:"#4A148C",DEEP_PURPLE50:"#EDE7F6",DEEP_PURPLE100:"#D1C4E9",DEEP_PURPLE200:"#B39DDB",DEEP_PURPLE300:"#9575CD",DEEP_PURPLE400:"#7E57C2",DEEP_PURPLE500:"#673AB7",DEEP_PURPLE600:"#5E35B1",DEEP_PURPLE700:"#512DA8",DEEP_PURPLE800:"#4527A0",DEEP_PURPLE900:"#311B92",INDIGO50:"#E8EAF6",INDIGO100:"#C5CAE9",INDIGO200:"#9FA8DA",INDIGO300:"#7986CB",INDIGO400:"#5C6BC0",INDIGO500:"#3F51B5",INDIGO600:"#3949AB",INDIGO700:"#303F9F",INDIGO800:"#283593",INDIGO900:"#1A237E",BLUE50:"#E3F2FD",BLUE100:"#BBDEFB",BLUE200:"#90CAF9",BLUE300:"#64B5F6",BLUE400:"#42A5F5",BLUE500:"#2196F3",BLUE600:"#1E88E5",BLUE700:"#1976D2",BLUE800:"#1565C0",BLUE900:"#0D47A1",LIGHT_BLUE50:"#E1F5FE",LIGHT_BLUE100:"#B3E5FC",LIGHT_BLUE200:"#81D4FA",LIGHT_BLUE300:"#4FC3F7",LIGHT_BLUE400:"#29B6F6",LIGHT_BLUE500:"#03A9F4",LIGHT_BLUE600:"#039BE5",LIGHT_BLUE700:"#0288D1",LIGHT_BLUE800:"#0277BD",LIGHT_BLUE900:"#01579B",CYAN50:"#E0F7FA",CYAN100:"#B2EBF2",CYAN200:"#80DEEA",CYAN300:"#4DD0E1",CYAN400:"#26C6DA",CYAN500:"#00BCD4",CYAN600:"#00ACC1",CYAN700:"#0097A7",CYAN800:"#00838F",CYAN900:"#006064",TEAL50:"#E0F2F1",TEAL100:"#B2DFDB",TEAL200:"#80CBC4",TEAL300:"#4DB6AC",TEAL400:"#26A69A",TEAL500:"#009688",TEAL600:"#00897B",TEAL700:"#00796B",TEAL800:"#00695C",TEAL900:"#004D40",GREEN50:"#E8F5E9",GREEN100:"#C8E6C9",GREEN200:"#A5D6A7",GREEN300:"#81C784",GREEN400:"#66BB6A",GREEN500:"#4CAF50",GREEN600:"#43A047",GREEN700:"#388E3C",GREEN800:"#2E7D32",GREEN900:"#1B5E20",LIGHT_GREEN50:"#F1F8E9",LIGHT_GREEN100:"#DCEDC8",LIGHT_GREEN200:"#C5E1A5",LIGHT_GREEN300:"#AED581",LIGHT_GREEN400:"#9CCC65",LIGHT_GREEN500:"#8BC34A",LIGHT_GREEN600:"#7CB342",LIGHT_GREEN700:"#689F38",LIGHT_GREEN800:"#558B2F",LIGHT_GREEN900:"#33691E",ORANGE50:"#FFF3E0",ORANGE100:"#FFE0B2",ORANGE200:"#FFCC80",ORANGE300:"#FFB74D",ORANGE400:"#FFA726",ORANGE500:"#FF9800",ORANGE600:"#FB8C00",ORANGE700:"#F57C00",ORANGE800:"#EF6C00",ORANGE900:"#E65100"}},4619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Colors=t.Classes=void 0;var i=n(655);i.__exportStar(n(7615),t),i.__exportStar(n(6657),t);var o=n(7346);Object.defineProperty(t,"Classes",{enumerable:!0,get:function(){return o.Classes}});var r=n(3737);Object.defineProperty(t,"Colors",{enumerable:!0,get:function(){return r.Colors}}),i.__exportStar(n(1980),t),i.__exportStar(n(6439),t),i.__exportStar(n(4762),t),i.__exportStar(n(1818),t),i.__exportStar(n(873),t)},1980:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Intent=void 0,t.Intent={NONE:"none",PRIMARY:"primary",NEGATIVE:"negative",POSITIVE:"positive",WARNING:"warning"}},6439:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Keys=void 0,t.Keys={TAB:9,ENTER:13,SHIFT:16,ESCAPE:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40}},4762:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breakpoints=void 0,t.Breakpoints={xs:"(max-width: 575.98px)",sm:"(min-width: 576px) and (max-width: 767.98px)",md:"(min-width: 768px) and (max-width: 991.98px)",lg:"(min-width: 992px) and (max-width: 1199.98px)",xl:"(min-width: 1200px)"}},1818:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0,t.Size={XS:"xs",SM:"sm",DEFAULT:"default",LG:"lg",XL:"xl"}},873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullOrEmpty=t.updateElementGroupPadding=t.normalizeStyle=t.elementIsOrContains=t.hasScrollbar=t.getScrollbarWidth=t.getClosest=t.safeCall=t.isFunction=void 0;var i=n(4619);function o(e){return"function"==typeof e}function r(e){return e&&!e.classList.contains(i.Classes.ICON)&&!e.classList.contains(i.Classes.SPINNER)&&!e.classList.contains(i.Classes.BUTTON_ICON)}t.isFunction=o,t.safeCall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(o(e))return e.apply(void 0,t)},t.getClosest=function(e,t){if(e.matches(t))return e;for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null},t.getScrollbarWidth=function(){var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},t.hasScrollbar=function(e){return e.scrollHeight>window.innerHeight},t.elementIsOrContains=function(e,t){return e===t||e.contains(t)},t.normalizeStyle=function(e){if("string"==typeof e){for(var t={},n=e.replace(/\s/g,"").split(";"),i=0;i<n.length;i++){var o=n[i].split(":");t[o.splice(0,1)[0]]=o.join(":")}return t}return e},t.updateElementGroupPadding=function(e,t,n){if(e){var i=Math.floor(e.clientHeight/1.6);if(t){var o=t.dom;e.style.paddingLeft=r(o)?"".concat(o.clientWidth+i,"px"):""}else e.style.paddingLeft="";if(n){var a=n.dom;e.style.paddingRight=r(a)?"".concat(a.clientWidth+i,"px"):""}else e.style.paddingRight=""}},t.isNullOrEmpty=function(e){return null==e||""===e||!1===e}},6749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractComponent=void 0;var i=n(655),o=function(){function e(){var e=this;this.timeoutStack=[],this.attrs={},this.setTimeout=function(t,n){var i=window.setTimeout(t,n);return e.timeoutStack.push(i),function(){return window.clearTimeout(i)}},this.clearTimeouts=function(){e.timeoutStack.length&&(e.timeoutStack.map((function(e){return clearTimeout(e)})),e.timeoutStack=[])}}return e.prototype.oninit=function(e){e.attrs=e.attrs||{},this.setAttrs(e)},e.prototype.onbeforeupdate=function(e,t){this.setAttrs(e),this.prevAttrs=t.attrs},e.prototype.setAttrs=function(e){e.attrs=this.getAttrs(e.attrs),this.attrs=e.attrs},e.prototype.getAttrs=function(e){return i.__assign(i.__assign({},this.getDefaultAttrs()),e)},e}();t.AbstractComponent=o},5152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseControl=void 0;var i=n(655),o=i.__importDefault(n(4184)),r=i.__importDefault(n(8230)),a=n(4619),s=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=t.class,s=t.containerAttrs,l=void 0===s?{}:s,c=t.intent,u=t.label,p=t.size,d=t.type,f=t.typeClass,h=t.style,y=i.__rest(t,["class","containerAttrs","intent","label","size","type","typeClass","style"]),_=(0,o.default)(a.Classes.CONTROL,f,y.disabled&&a.Classes.DISABLED,c&&"cui-".concat(c),p&&"cui-".concat(p),n),E=[(0,r.default)("input",i.__assign(i.__assign({},y),{disabled:y.disabled||y.readonly,type:d})),(0,r.default)("span.".concat(a.Classes.CONTROL_INDICATOR)),u];return(0,r.default)("label",i.__assign({class:_,style:h},l),E)},e}();t.BaseControl=s},9611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breadcrumb=void 0;var i=n(655),o=i.__importDefault(n(4184)),r=i.__importDefault(n(8230)),a=n(4619),s=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=e.children,s=t.class,l=(t.seperator,t.size),c=i.__rest(t,["class","seperator","size"]),u=(0,o.default)(a.Classes.BREADCRUMB,l&&"cui-".concat(l),s);return(0,r.default)("",i.__assign(i.__assign({},c),{class:u}),this.renderChildren(n,t))},e.prototype.renderChildren=function(e,t){var n=t.seperator;return e.filter((function(e){return null!=e})).map((function(e){return[e,(0,r.default)("span.".concat(a.Classes.BREADCRUMB_SEPERATOR),n)]}))},e}();t.Breadcrumb=s},7930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadcrumbItem=void 0;var i=n(655),o=i.__importDefault(n(8230)),r=i.__importDefault(n(4184)),a=n(4619),s=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=e.children,s=t.class,l=i.__rest(t,["class"]),c=null!=l.href?"a":"span",u=(0,r.default)(a.Classes.BREADCRUMB_ITEM,s);return(0,o.default)(c,i.__assign(i.__assign({},l),{class:u}),n)},e}();t.BreadcrumbItem=s},3103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(655);i.__exportStar(n(9611),t),i.__exportStar(n(7930),t)},6119:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroup=void 0;var i=n(655),o=i.__importDefault(n(8230)),r=i.__importDefault(n(4184)),a=n(4619),s=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=e.children,s=t.class,l=t.size,c=t.fluid,u=t.intent,p=t.rounded,d=t.outlined,f=t.basic,h=i.__rest(t,["class","size","fluid","intent","rounded","outlined","basic"]);return(0,o.default)("",i.__assign(i.__assign({},h),{class:(0,r.default)(a.Classes.BUTTON_GROUP,p&&a.Classes.ROUNDED,c&&a.Classes.FLUID,f&&a.Classes.BASIC,d&&a.Classes.OUTLINED,u&&"cui-".concat(u),l&&"cui-".concat(l),s)}),n)},e}();t.ButtonGroup=s},8329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;var i=n(655),o=i.__importDefault(n(4184)),r=i.__importDefault(n(8230)),a=n(6185),s=n(731),l=n(4619),c=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=t.align,c=void 0===n?"center":n,u=t.active,p=t.basic,d=t.compact,f=t.class,h=t.disabled,y=t.fluid,_=t.href,E=t.iconLeft,v=t.iconLeftAttrs,m=t.iconRight,x=t.iconRightAttrs,O=t.intent,C=t.loading,g=t.label,T=t.onclick,A=t.outlined,I=t.rounded,R=t.size,L=t.sublabel,b=i.__rest(t,["align","active","basic","compact","class","disabled","fluid","href","iconLeft","iconLeftAttrs","iconRight","iconRightAttrs","intent","loading","label","onclick","outlined","rounded","size","sublabel"]),S=_?"a":"button",D="a"===S,N=(0,o.default)(l.Classes.BUTTON,c&&"".concat(l.Classes.ALIGN,"-").concat(c),u&&l.Classes.ACTIVE,d&&l.Classes.COMPACT,h&&l.Classes.DISABLED,y&&l.Classes.FLUID,C&&l.Classes.LOADING,R&&"cui-".concat(R),O&&"cui-".concat(O),I&&l.Classes.ROUNDED,p&&l.Classes.BASIC,A&&l.Classes.OUTLINED,(0,l.isNullOrEmpty)(g)&&(0,l.isNullOrEmpty)(L)&&(!E||!m)&&l.Classes.BUTTON_ICON,f),M=[C&&(0,r.default)(s.Spinner,{active:!0,fill:!0}),E&&(0,r.default)(a.Icon,i.__assign({name:E},v)),!(0,l.isNullOrEmpty)(L)&&(0,r.default)("span",{class:l.Classes.BUTTON_SUBLABEL},L),!(0,l.isNullOrEmpty)(g)&&(0,r.default)("span",{class:l.Classes.BUTTON_LABEL},g),m&&(0,r.default)(a.Icon,i.__assign({name:m},x))];return(0,r.default)(S,i.__assign(i.__assign({type:D?void 0:"button",role:D?"button":void 0},b),{class:N,disabled:h,href:h?void 0:_,onclick:h?void 0:T,tabIndex:h?void 0:b.tabIndex}),M)},e}();t.Button=c},6249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Callout=void 0;var i=n(655),o=i.__importDefault(n(8230)),r=i.__importDefault(n(4184)),a=n(4619),s=n(6185),l=function(){function e(){}return e.prototype.view=function(e){var t=e.attrs,n=t.content,l=t.header,c=t.icon,u=t.intent,p=t.onDismiss,d=t.size,f=i.__rest(t,["content","header","icon","i