text: var BluemixComponents=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Table=t.NumberInput=t.Card=t.Dropdown=t.Loading=t.Toolbars=t.HeaderNav=t.Modal=t.OverflowMenu=t.Tab=t.ContentSwitcher=t.FileUploader=t.FabButton=t.settings=void 0,n(1);var i=n(2),r=o(i),a=n(3),s=o(a),l=n(5),c=o(l),u=n(9),d=o(u),f=n(11),h=o(f),v=n(12),m=o(v),p=n(14),y=o(p),b=n(15),g=o(b),E=n(16),w=o(E),N=n(17),T=o(N),k=n(18),O=o(k),M=n(19),_=o(M),D=n(20),L=o(D),A={};t.settings=A,t.FabButton=s["default"],t.FileUploader=r["default"],t.ContentSwitcher=c["default"],t.Tab=d["default"],t.OverflowMenu=h["default"],t.Modal=m["default"],t.HeaderNav=y["default"],t.Toolbars=g["default"],t.Loading=w["default"],t.Dropdown=T["default"],t.Card=O["default"],t.NumberInput=_["default"],t.Table=L["default"];var S=function(){A.disableAutoInit||(s["default"].init(),r["default"].init(),c["default"].init(),d["default"].init(),h["default"].init(),m["default"].init(),g["default"].init(),w["default"].init(),T["default"].init(),O["default"].init(),_["default"].init(),L["default"].init())};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",S):setTimeout(S,0)},function(e,t){/*!
  	 * @copyright Copyright (c) 2016 IcoMoon.io
  	 * @license   Licensed under MIT license
  	 *            See https://github.com/Keyamoon/svgxuse
  	 * @version   1.1.16
  	 */
  !function(){"use strict";if(window&&window.addEventListener){var e,t,n=Object.create(null),o=function(){clearTimeout(t),t=setTimeout(e,100)},i=function(){},r=function(){var e;window.addEventListener("resize",o,!1),window.addEventListener("orientationchange",o,!1),window.MutationObserver?(e=new MutationObserver(o),e.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),i=function(){try{e.disconnect(),window.removeEventListener("resize",o,!1),window.removeEventListener("orientationchange",o,!1)}catch(t){}}):(document.documentElement.addEventListener("DOMSubtreeModified",o,!1),i=function(){document.documentElement.removeEventListener("DOMSubtreeModified",o,!1),window.removeEventListener("resize",o,!1),window.removeEventListener("orientationchange",o,!1)})},a="http://www.w3.org/1999/xlink";e=function(){function e(){b-=1,0===b&&r()}function t(e){return function(){n[e.base]!==!0&&e.useEl.setAttributeNS(a,"xlink:href","#"+e.hash)}}function o(t){return function(){var n,o=document.body,i=document.createElement("x");t.onload=null,i.innerHTML=t.responseText,n=i.getElementsByTagName("svg")[0],n&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",o.insertBefore(n,o.firstChild)),e()}}function s(t){return function(){t.onerror=null,t.ontimeout=null,e()}}var l,c,u,d,f,h,v,m,p,y="",b=0;if(window.XMLHttpRequest&&(f=new XMLHttpRequest,f=void 0!==f.withCredentials?XMLHttpRequest:XDomainRequest||void 0),void 0!==f){for(i(),m=document.getElementsByTagName("use"),d=0;d<m.length;d+=1){try{c=m[d].getBoundingClientRect()}catch(g){c=!1}v=m[d].getAttributeNS(a,"href").split("#"),l=v[0],u=v[1],h=c&&0===c.left&&0===c.right&&0===c.top&&0===c.bottom,c&&0===c.width&&0===c.height&&!h?(y&&!l.length&&u&&!document.getElementById(u)&&(l=y),l.length&&(p=n[l],p!==!0&&setTimeout(t({useEl:m[d],base:l,hash:u}),0),void 0===p&&(p=new f,n[l]=p,p.onload=o(p),p.onerror=s(p),p.ontimeout=s(p),p.open("GET",l),p.send(),b+=1))):h||(void 0===n[l]?n[l]=!0:n[l].onload&&(n[l].abort(),n[l].onload=void 0,n[l]=!0))}m="",b+=1,e()}},window.addEventListener("load",function s(){window.removeEventListener("load",s,!1),t=setTimeout(e,0)},!1)}}()},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t){var n=this,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(o(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t;var r=i.labelSelector||t.dataset.label;this.labelNode=t.parentNode.querySelector(r)||t.nextElementSibling,this.constructor.components.set(this.element,this),t.addEventListener("change",function(e){return n.updateLabel(e)})}return i(e,[{key:"updateLabel",value:function(e){var t="",n=this.element;t=n.files&&n.files.length>1?(n.dataset.multipleCaption||"").replace("{count}",n.files.length):e.target.value.split("\\").pop(),t&&(this.labelNode.textContent=t)}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],o=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.fileInput?this.create(t,o):[].concat(n(t.querySelectorAll("[data-file-uploader]"))).forEach(function(t){return e.create(t,o)})}}]),e}();t["default"]=r,r.components=new WeakMap},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(4),l=o(s),c=function(){function e(t){var n=this;if(i(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.constructor.components.set(this.element,this),t.addEventListener("click",function(e){return n.toggle(e)})}return a(e,[{key:"toggle",value:function(e){"A"===this.element.tagName&&e.preventDefault(),"closed"===this.element.dataset.state?this.element.dataset.state="open":this.element.dataset.state="closed"}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");if(t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.fab)this.create(t);else{var n=function(){var n=function(t){var n=(0,l["default"])(t,"[data-fab]");n&&!e.components.has(n)&&e.create(n).toggle(t)};return t.addEventListener("click",n),{v:{release:function(){return t.removeEventListener("click",n)}}}}();if("object"===("undefined"==typeof n?"undefined":r(n)))return n.v}}},{key:"create",value:function(e){return this.components.get(e)||new this(e)}}]),e}();t["default"]=c,c.components=new WeakMap},function(e,t){"use strict";function n(e,t){if("function"==typeof e.target[o]){if(e.target[o](t))return e.target;if(e.target[o](t+" *"))for(var n=e.target;n&&n!==e.currentTarget;n=n.parentNode)if(n[o](t))return n}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var o=["matches","webkitMatchesSelector","msMatchesSelector"].filter(function(e){return"function"==typeof document.documentElement[e]})[0]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(4),l=o(s);n(6),n(7);var c=n(8),u=o(c),d=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({selectorButton:'input[type="radio"]',selectorButtonSelected:'input[type="radio"].bx--content-switcher--selected',classActive:"bx--content-switcher--selected",eventBeforeSelected:"content-switcher-beingselected",eventAfterSelected:"content-switcher-selected"},o),this.constructor.components.set(this.element,this),this.element.addEventListener("click",function(e){return n.handleClick(e)}),[].concat(i(t.querySelectorAll("input"))).forEach(function(e){e.checked&&n._changeActive(e)})}return a(e,[{key:"handleClick",value:function(e){var t=(0,l["default"])(e,this.options.selectorButton);t&&this.setActive(t)}},{key:"_changeActive",value:function(e){var t=this,n=e.querySelector(this.options.selectorLink);n&&([].concat(i(this.element.querySelectorAll(this.options.selectorLink))).forEach(function(e){e!==n&&e.setAttribute("aria-selected","false")}),n.setAttribute("aria-selected","true")),[].concat(i(this.element.querySelectorAll(this.options.selectorButton))).forEach(function(n){n!==e&&((0,u["default"])(n,t.options.classActive,!1),[].concat(i(n.ownerDocument.querySelectorAll(n.dataset.target))).forEach(function(e){return e.setAttribute("hidden","")}))}),(0,u["default"])(e,this.options.classActive,!0),[].concat(i(e.ownerDocument.querySelectorAll(e.dataset.target))).forEach(function(e){return e.removeAttribute("hidden")})}},{key:"setActive",value:function(e,t){var n=new CustomEvent(this.options.eventBeforeSelected,{bubbles:!0,cancelable:!0,detail:{item:e}});if(this.element.dispatchEvent(n))this._changeActive(e),this.element.dispatchEvent(new CustomEvent(this.options.eventAfterSelected,{bubbles:!0,cancelable:!0,detail:{item:e}})),t&&t(null,e);else{var o=new Error("Switching active item has been canceled.");o.canceled=!0,o.item=e,t&&t(o)}}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.contentSwitcher?this.create(t,n):[].concat(i(document.querySelectorAll("[data-content-switcher]"))).forEach(function(t){return e.create(t,n)})}}]),e}();t["default"]=d,d.components=new WeakMap},function(e,t){"use strict";Array.from=Array.from||function(e){return Array.prototype.slice.call(e)}},function(e,t){"use strict";Object.assign=Object.assign||function(e){if(null==e)throw new TypeError("Can't convert to object: ${dst}");var t=Object(e);return[].concat(Array.prototype.slice.call(arguments)).slice(1).forEach(function(e){Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}},function(e,t){"use strict";function n(e,t,n){e.classList.contains(t)===!n&&e.classList[n?"add":"remove"](t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function m(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:m(i,t,n)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(n)},u=n(4),d=o(u);n(6),n(10),n(7);var f=n(5),h=o(f),v=function(e){function t(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];r(this,t);var o=a(this,Object.getPrototypeOf(t).call(this,e,Object.assign({selectorMenu:".bx--tabs__nav",selectorTrigger:".bx--tabs__trigger",selectorTriggerText:".bx--tabs__trigger-text",selectorButton:".bx--tabs__nav-item",selectorButtonSelected:".bx--tabs__nav-item.bx--tabs--selected",selectorLink:".bx--tabs__nav-link",classActive:"bx--tabs--selected",classHidden:"bx--tabs--hidden",eventBeforeSelected:"tab-beingselected",eventAfterSelected:"tab-selected"},n)));o.element.addEventListener("keydown",function(e){return o.handleKeyDown(e)});var i=o.element.querySelector(o.options.selectorButtonSelected);return i&&o.updateTriggerText(i),o}return s(t,e),l(t,[{key:"_changeActive",value:function(e){c(Object.getPrototypeOf(t.prototype),"_changeActive",this).call(this,e),this.updateTriggerText(e)}},{key:"handleClick",value:function(e){c(Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e);var n=(0,d["default"])(e,this.options.selectorButton),o=(0,d["default"])(e,this.options.selectorTrigger);n&&(c(Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e),this.updateMenuState()),o&&this.updateMenuState()}},{key:"handleKeyDown",value:function(e){var t=this,n=this.element.querySelector(this.options.selectorTrigger);if(!n||!n.offsetParent){var o={Left:-1,Right:1,ArrowLeft:-1,ArrowRight:1}[e.key||e.keyIdentifier];if(o){var r=[].concat(i(this.element.querySelectorAll(this.options.selectorButton))),a=this.element.querySelector(this.options.selectorButtonSelected),s=Math.max(r.indexOf(a)+o,-1),l=s>=0&&s<r.length?s:s-Math.sign(s)*r.length;this.setActive(r[l],function(e,n){if(n){var o=n.querySelector(t.options.selectorLink);o&&o.focus()}}),e.preventDefault()}}}},{key:"updateMenuState",value:function(){this.element.querySelector(this.options.selectorMenu).classList.toggle(this.options.classHidden)}},{key:"updateTriggerText",value:function(e){this.element.querySelector(this.options.selectorTriggerText).textContent=e.textContent}}],[{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.tabs?this.create(t,n):[].concat(i(t.querySelectorAll("[data-tabs]"))).forEach(function(t){return e.create(t,n)})}}]),t}(h["default"]);t["default"]=v,v.components=new WeakMap},function(e,t){"use strict";Math.sign=Math.sign||function(e){var t=+e;return 0===t?t:t/Math.abs(t)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(6);var s=n(8),l=o(s),c=function(){function e(t){var n=this;if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.constructor.components.set(this.element,this),this.element.ownerDocument.addEventListener("click",function(e){return n.handleDocumentClick(e)}),this.element.ownerDocument.addEventListener("keypress",function(e){return n.handleKeyPress(e)})}return a(e,[{key:"handleDocumentClick",value:function(e){var t=this.element.contains(e.target),n=t&&!this.element.classList.contains("bx--overflow-menu--open");t&&"A"===this.element.tagName&&e.preventDefault(),(0,l["default"])(this.element,"bx--overflow-menu--open",n)}},{key:"handleKeyPress",value:function(e){var t=e.key||e.which;if("Enter"===t||13===t){var n=this.element.contains(e.target),o=n&&!this.element.classList.contains("bx--overflow-menu--open");n&&"A"===this.element.tagName&&e.preventDefault(),(0,l["default"])(this.element,"bx--overflow-menu--open",o)}}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e){return this.components.get(e)||new this(e)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.overflowMenu?this.create(t):[].concat(i(t.querySelectorAll("[data-overflow-menu]"))).forEach(function(t){return e.create(t)})}}]),e}();t["default"]=c,c.components=new WeakMap},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(6),n(7),n(13);var l=n(4),c=o(l),u=n(8),d=o(u),f=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({classVisible:"is-visible",eventBeforeShown:"modal-beingshown",eventAfterShown:"modal-shown",eventBeforeHidden:"modal-beinghidden",eventAfterHidden:"modal-hidden"},n),this.constructor.components.set(this.element,this),this.hookCloseActions()}return s(e,[{key:"hookCloseActions",value:function(){var e=this;this.element.addEventListener("click",function(t){t.currentTarget===t.target&&e.hide()}),this.keydownHandler&&(this.element.ownerDocument.body.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.keydownHandler=function(t){27===t.which&&e.hide()},this.element.ownerDocument.body.addEventListener("keydown",this.keydownHandler),[].concat(i(this.element.querySelectorAll("[data-modal-close]"))).forEach(function(t){t.addEventListener("click",function(){e.hide()})})}},{key:"_changeState",value:function(e,t){var n=this,o=void 0,i=function a(){o||(o=!0,n.element.removeEventListener("transitionend",a),t())};this.element.addEventListener("transitionend",i),(0,d["default"])(this.element,this.options.classVisible,e);var r=parseFloat(this.element.ownerDocument.defaultView.getComputedStyle(this.element).transitionDuration);(isNaN(r)||0===r)&&i()}},{key:"show",value:function(e,t){var n=this;if("function"==typeof e&&(t=e,e=null),e&&!e.nodeType)throw new TypeError("DOM Node should be given for launchingElement.");if(this.element.classList.contains(this.options.classVisible))return void(t&&t(null,!0));var o=new CustomEvent(this.options.eventBeforeShown,{bubbles:!0,cancelable:!0,detail:{launchingElement:e}});if(this.element.dispatchEvent(o))this._changeState(!0,function(){n.element.dispatchEvent(new CustomEvent(n.options.eventAfterShown,{bubbles:!0,cancelable:!0,detail:{launchingElement:e}})),t&&t()});else{var i=new Error("Showing dialog has been canceled.");i.canceled=!0,t&&t(i)}}},{key:"hide",value:function(e){var t=this;if(!this.element.classList.contains(this.options.classVisible))return void(e&&e(null,!0));var n=new CustomEvent(this.options.eventBeforeHidden,{bubbles:!0,cancelable:!0});if(this.element.dispatchEvent(n))this._changeState(!1,function(){t.element.dispatchEvent(new CustomEvent(t.options.eventAfterHidden),{bubbles:!0,cancelable:!0}),e&&e()});else{var o=new Error("Hiding dialog has been canceled.");o.canceled=!0,e&&e(o)}}},{key:"release",value:function(){this.keydownHandler&&(this.element.ownerDocument.body.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");if(t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.modal)this.create(t,n);else{var o=function(){var o=function(t){var o=(0,c["default"])(t,"[data-modal-target]");if(o){var r=[].concat(i(o.ownerDocument.querySelectorAll(o.dataset.modalTarget)));if(r.length>1)throw new Error("Target modal must be unique.");1===r.length&&!function(){"A"===o.tagName&&t.preventDefault();var i=e.create(r[0],n);i.show(o,function(e,t){!e&&!t&&i.element.offsetWidth>0&&i.element.offsetHeight>0&&i.element.focus()})}()}};return t.addEventListener("click",o),{v:{release:function(){return t.removeEventListener("click",o)}}}}();if("object"===("undefined"==typeof o?"undefined":a(o)))return o.v}}},{key:"hook",value:function(){console.warn("Modals.hook() is deprecated. Use Modals.init() instead.")}}]),e}();t["default"]=f,f.components=new WeakMap},function(e,t){"use strict";var n=function(){try{new CustomEvent("test-event")}catch(e){return!0}}();n&&(window.CustomEvent=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=document.createEvent("HTMLEvents");return n.initEvent(e,t.bubbles,t.cancelable),t.detail&&(n.detail=t.detail),n})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(6),n(7),n(13);var l=n(4),c=o(l),u=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({selectorTriggerLabel:".current-taxonomy",classActive:"taxonomy-nav--active",selectorMenu:".taxonomy-menu",selectorItem:".taxonomy-item",selectorItemLink:".taxonomy-item--taxonomy-menu",selectorLabel:".taxonomy-item__label",eventBeforeShown:"header-beingshown",eventAfterShown:"header-shown",eventBeforeHidden:"header-beinghidden",eventAfterHidden:"header-hidden",eventBeforeSelected:"header-beingselected",eventAfterSelected:"header-selected"},o),this.constructor.components.set(this.element,this),this.menuNode=this.element.querySelector(this.options.selectorMenu),this.element.addEventListener("keydown",function(e){return n.toggleNav(e)}),[].concat(i(this.element.querySelectorAll(this.options.selectorItemLink))).forEach(function(e){e.addEventListener("click",function(e){return n.select(e)})})}return s(e,[{key:"toggleNav",value:function(e){var t=this.element.classList.contains(this.options.classActive),n=void 0;if("click"===e.type||"keydown"===e.type&&40===e.which)n=!t;else{if("keydown"!==e.type||27!==e.which)return;n=!1}var o=(0,c["default"])(e,"[data-nav-target]")||e.currentTarget;"A"===o.tagName&&e.preventDefault();var i=new CustomEvent(this.options[n?"eventBeforeShown":"eventBeforeHidden"],{bubbles:!0,cancelable:!0,detail:{launchingElement:o}}),r=this.element.dispatchEvent(i);n&&(this.triggerNode=o,this.triggerLabelNode=this.triggerNode.querySelector(this.options.selectorTriggerLabel)),r&&(this.element.classList[n?"add":"remove"](this.options.classActive),(this.element.classList.contains(this.options.classActive)?this.menuNode:this.triggerNode).focus(),this.element.dispatchEvent(new CustomEvent(this.options[n?"eventAfterShown":"eventAfterHidden"],{bubbles:!0,cancelable:!0,detail:{launchingElement:o}})))}},{key:"select",value:function(e){var t=e.currentTarget,n=new CustomEvent(this.options.eventBeforeSelected,{bubbles:!0,cancelable:!0,detail:{initiatingEvent:e,itemElement:t}});this.element.dispatchEvent(n)&&([].concat(i(this.element.querySelectorAll(this.options.selectorItem))).forEach(function(e){e.contains(t)?e.classList.add("selected"):e.classList.contains("selected")&&e.classList.remove("selected")}),t.classList.add("selected"),this.triggerLabelNode&&(this.triggerLabelNode.textContent=t.querySelector(this.options.selectorLabel).textContent),this.element.dispatchEvent(new CustomEvent(this.options.eventAfterSelected,{bubbles:!0,cancelable:!0,detail:{itemElement:t}})))}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");if(t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.nav)this.create(t,n);else{var o=function(){var o=function(t){var o=(0,c["default"])(t,"[data-nav-target]");if(o){var r=[].concat(i(o.ownerDocument.querySelectorAll(o.dataset.navTarget)));if(r.length>1)throw new Error("Target header must be unique.");1===r.length&&("A"===o.tagName&&t.preventDefault(),e.create(r[0],n).toggleNav(t))}};return t.addEventListener("click",o),t.addEventListener("keydown",o),{v:{release:function(){t.removeEventListener("keydown",o),t.removeEventListener("click",o)}}}}();if("object"===("undefined"==typeof o?"undefined":a(o)))return o.v}}},{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"hook",value:function(){console.warn("HeaderNav.hook() is deprecated. Use HeaderNav.init() instead.")}}]),e}();t["default"]=u,u.components=new WeakMap},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t){var n=this;if(o(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.searchFieldNode=this.element.ownerDocument.querySelector(this.element.dataset.listIconsSearchActionTarget),this.constructor.components.set(this.element,this),this.element.addEventListener("click",function(e){return n.handleActionClick(e)})}return i(e,[{key:"handleActionClick",value:function(e){var t=e.currentTarget;"A"===t.tagName&&e.preventDefault(),this.element.classList.toggle("show-search"),this.searchFieldNode&&(this.searchFieldNode.classList.toggle("show-search"),this.searchFieldNode.value="")}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e){return this.components.get(e)||new this(e)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.listIconsSearchActionTarget?this.create(t):[].concat(n(t.querySelectorAll("[data-list-icons-search-action-target]"))).forEach(function(t){return e.create(t)})}}]),e}();t["default"]=r,r.components=new WeakMap},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(8),l=o(s),c=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{active:!0}:arguments[1];if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.active="active"in n?n.active:!0,this.ie=!1,(n.ie||window.ActiveXObject||"ActiveXObject"in window)&&(this.ie=!0,this.element.classList.add("bx--loading--ie")),this.constructor.components.set(this.element,this),this.set(this.active)}return a(e,[{key:"set",value:function(e){if("boolean"!=typeof e)throw new TypeError("set expects a boolean.");return this.active=e,this.ie&&(0,l["default"])(this.element,"bx--loading--stop--ie",!this.active),(0,l["default"])(this.element,"bx--loading--stop",!this.active),this}},{key:"toggle",value:function(){return this.set(!this.active)}},{key:"isActive",value:function(){return this.active}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e){return this.components.get(e)||new this(e)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.loading?this.create(t,n):[].concat(i(t.querySelectorAll("[data-loading]"))).forEach(function(t){return e.create(t,n)})}}]),e}();t["default"]=c,c.components=new WeakMap},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(6),n(7),n(13);var a=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(i(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({selectorItem:"[data-option] > .bx--dropdown__link",selectorItemSelected:"[data-option] > .bx--dropdown__link.bx--dropdown--selected",classSelected:"bx--dropdown--selected",eventBeforeSelected:"dropdown-beingselected",eventAfterSelected:"dropdown-selected"},o),this.element.dataset.dropdown="",this.constructor.components.set(this.element,this),this.element.ownerDocument.addEventListener("click",function(e){
  return n.toggle(e)}),this.element.addEventListener("keypress",function(e){return n.toggle(e)}),this.element.addEventListener("click",function(e){return n.selected(e)})}return r(e,[{key:"release",value:function(){this.constructor.components["delete"](this.element)}},{key:"toggle",value:function(e){var t=this.element.contains(e.target);t?this.element.classList.toggle("bx--dropdown--open"):!t&&this.element.classList.contains("bx--dropdown--open")&&this.element.classList.remove("bx--dropdown--open")}},{key:"selected",value:function(e){var t=this,n=e.target;if(void 0!==n.parentElement.dataset.option){var i=new CustomEvent(this.options.eventBeforeSelected,{bubbles:!0,cancelable:!0,detail:{item:n}});this.element.dispatchEvent(i)&&(this.element.firstElementChild.textContent=n.textContent,this.element.dataset.value=n.parentElement.dataset.value,[].concat(o(this.element.querySelectorAll(this.options.selectorItemSelected))).forEach(function(e){n!==e&&e.classList.remove(t.options.classSelected)}),n.classList.add(this.options.classSelected),this.element.dispatchEvent(new CustomEvent(this.options.eventAfterSelected,{bubbles:!0,cancelable:!0,detail:{item:n}})))}}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.loading?this.create(t,n):[].concat(o(t.querySelectorAll("[data-dropdown]"))).forEach(function(t){return e.create(t,n)})}}]),e}();t["default"]=a,a.components=new WeakMap},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(4),l=o(s);n(6),n(7),n(10);var c=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({selectorCard:".bx--card"},o),this.constructor.components.set(this.element,this),this.element.addEventListener("keydown",function(e){return n.cardKeyPress(e)})}return a(e,[{key:"cardKeyPress",value:function(e){var t={Left:-1,Right:1,ArrowLeft:-1,ArrowRight:1}[e.key||e.keyIdentifier],n=(0,l["default"])(e,this.options.selectorCard);if(t&&n&&n===document.activeElement){var o=[].concat(i(this.element.querySelectorAll(this.options.selectorCard))),r=Math.max(o.indexOf(n)+t,-1),a=r>=0&&r<o.length?r:r-Math.sign(r)*o.length;o[a].focus()}}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.cardList?this.create(t,n):[].concat(i(t.querySelectorAll("[data-card-list]"))).forEach(function(t){return e.create(t,n)})}}]),e}();t["default"]=c,c.components=new WeakMap},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(6);var a=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(i(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.options=o,this.options.ie=this.options.ie||"ActiveXObject"in window,this.element=t,this.constructor.components.set(this.element,this),this.element.querySelector(".bx--number__arrow--up").addEventListener("click",function(e){return n.handleClick(e)}),this.element.querySelector(".bx--number__arrow--down").addEventListener("click",function(e){return n.handleClick(e)})}return r(e,[{key:"handleClick",value:function(e){var t=e.currentTarget.classList,n=this.element.querySelector(".bx--number__input");t.contains("bx--number__arrow--icon-up")?this.options.ie?++n.value:n.stepUp():t.contains("bx--number__arrow--icon-down")&&(this.options.ie?n.value>0&&--n.value:n.stepDown())}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e){return this.components.get(e)||new this(e)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.numberinput?this.create(t):[].concat(o(t.querySelectorAll("[data-numberinput]"))).forEach(function(t){return e.create(t)})}}]),e}();t["default"]=a,a.components=new WeakMap},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(4),l=o(s);n(7);var c=n(8),u=o(c),d=function(){function e(t){var n=this,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(i(this,e),!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=t,this.options=Object.assign({selectorTitle:".bx--table__column-title",selectorRow:".bx--table__row",selectorCheckbox:".bx--checkbox",classSortState:"bx--table__column-title--rotated",classCheckState:"bx--table__row--checked",eventBeforeSortToggled:"table-sort-beingtoggled",eventAfterSortToggled:"table-sort-toggled",eventBeforeCheckToggled:"table-check-beingtoggled",eventAfterCheckToggled:"table-check-toggled"},o),this.constructor.components.set(this.element,this),this.element.addEventListener("click",function(e){return n.handleClick(e)})}return a(e,[{key:"handleClick",value:function(e){var t=(0,l["default"])(e,this.options.selectorTitle),n=(0,l["default"])(e,this.options.selectorRow),o=(0,l["default"])(e,this.options.selectorCheckbox);t&&this.toggleState("Sort",t),n&&o&&this.toggleState("Check",n)}},{key:"toggleState",value:function(e,t,n){var o=!t.classList.contains(this.options["class"+e+"State"]),i=new CustomEvent(this.options["eventBefore"+e+"Toggled"],{bubbles:!0,cancelable:!0,detail:{newState:o}});if(t.dispatchEvent(i))(0,u["default"])(t,this.options["class"+e+"State"],o),t.dispatchEvent(new CustomEvent(this.options["eventAfter"+e+"Toggled"],{bubbles:!0,cancelable:!0,detail:{newState:o}})),n&&n(null,t,o);else{var r=new Error("Toggling on table has been canceled.");r.canceled=!0,r.element=t,r.newState=o,n&&n(r)}}},{key:"release",value:function(){this.constructor.components["delete"](this.element)}}],[{key:"create",value:function(e,t){return this.components.get(e)||new this(e,t)}},{key:"init",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?document:arguments[0],n=arguments[1];if(t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE)throw new Error("DOM document or DOM element should be given to search for and initialize this widget.");if(t.nodeType===Node.ELEMENT_NODE&&void 0!==t.dataset.table)this.create(t,n);else{var o=function(){var o=function(t){var o=(0,l["default"])(t,"[data-table]");o&&!e.components.has(o)&&e.create(o,n).handleClick(t)};return t.addEventListener("click",o),{v:{release:function(){return t.removeEventListener("click",o)}}}}();if("object"===("undefined"==typeof o?"undefined":r(o)))return o.v}}}]),e}();t["default"]=d,d.components=new WeakMap}]);
  //# sourceMappingURL=bluemix-components.min.js.map