<commit_before>!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){const i=n(2);document.querySelector("#createModal").addEventListener("click",function(){i.modal({title:"Modal title",message:"Modal body text goes here."}).show()})},function(t,e,n){
/*!
  * Phonon v2.0.0-alpha.1 (https://github.com/quark-dev/Phonon-Framework)
  * Copyright 2015-2019 qathom
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
t.exports=function(){"use strict";
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
    See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};function e(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}function n(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(s,a)}l((i=i.apply(t,e||[])).next())})}function i(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var r={elementEvent:function(t,e,n,i){void 0===i&&(i={});var r=e+".ph."+n;t.dispatchEvent(new CustomEvent(r,{detail:i}))},pageEvent:function(t,e,n){void 0===n&&(n={});var i=e+"."+t;window.dispatchEvent(new CustomEvent(i,{detail:n})),document.dispatchEvent(new CustomEvent(i,{detail:n}))},winDocEvent:function(t,e,n){void 0===n&&(n={});var i=t+".ph."+e;window.dispatchEvent(new CustomEvent(i,{detail:n})),document.dispatchEvent(new CustomEvent(i,{detail:n}))}},o=["mousedown","mousemove","mouseup"],s=!1;"undefined"!=typeof window&&(("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)&&(s=!0,o=["touchstart","touchmove","touchend","touchcancel"]),window.navigator.pointerEnabled?o=["pointerdown","pointermove","pointerup","pointercancel"]:window.navigator.msPointerEnabled&&(o=["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"]));var a=window.document.createElement("div"),l=[{name:"transition",start:"transitionstart",end:"transitionend"},{name:"MozTransition",start:"transitionstart",end:"transitionend"},{name:"msTransition",start:"msTransitionStart",end:"msTransitionEnd"},{name:"WebkitTransition",start:"webkitTransitionStart",end:"webkitTransitionEnd"}].find(function(t){return void 0!==a.style[t.name]}),c=[{name:"animation",start:"animationstart",end:"animationend"},{name:"MozAnimation",start:"animationstart",end:"animationend"},{name:"msAnimation",start:"msAnimationStart",end:"msAnimationEnd"},{name:"WebkitAnimation",start:"webkitAnimationStart",end:"webkitAnimationEnd"}].find(function(t){return void 0!==a.style[t.name]}),d=l?l.start:"transitionstart",u=l?l.end:"transitionend",h=c?c.start:"animationstart",v=c?c.end:"animationend",p={TOUCH_SCREEN:s,NETWORK_ONLINE:"online",NETWORK_OFFLINE:"offline",NETWORK_RECONNECTING:"reconnecting",NETWORK_RECONNECTING_SUCCESS:"reconnect.success",NETWORK_RECONNECTING_FAILURE:"reconnect.failure",SHOW:"show",SHOWN:"shown",HIDE:"hide",HIDDEN:"hidden",HASH:"hash",START:o[0],MOVE:o[1],END:o[2],CANCEL:void 0===o[3]?null:o[3],CLICK:"click",TRANSITION_START:d,TRANSITION_END:u,ANIMATION_START:h,ANIMATION_END:v,ITEM_SELECTED:"itemSelected"};function m(t){return 1===t.nodeType}var f={attrConfig:function(t){if(!t)return null;var e=t.getAttribute("data-config");if(!e)return null;try{var n=JSON.parse(e);return n}catch(t){}var i=(e.match(/(\w+)\s*:\s*(["'])?/gim)||[]).map(function(t){return t.replace(/(\w+)\s*:\s*(["'])?/gim,"$1")}),r=e.match(/[^:]+(?=,|$)/gim)||[],o={};return i.forEach(function(t,e){var n=r[e].replace(/ /g,"").replace(/\'|"/g,""),i="";i="true"===n||"false"===n?"true"===n:isNaN(n)?n:parseFloat(n),o[t]=i}),o},removeClasses:function(t,e,n){void 0===n&&(n=null),e.forEach(function(e){var i=n?n+"-"+e:e;t.classList.contains(i)&&t.classList.remove(i)})},closest:function(t,e){Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var n=t;do{if(n.matches(e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null},isElement:m},g={};function E(t){return"string"==typeof t?t.toLowerCase():t.constructor.name.toLowerCase()}var y={addComponent:function(t){var e=E(t);g[e]||(g[e]=[]),g[e].push(t)},getComponent:function(t,e){var n=E(t),i=e.element;if(!i)return null;var r="string"==typeof i?document.querySelector(i):i,o=(g[n]||[]).find(function(t){return t.getElement()===r});return o?(e&&o.updateProps(e),o):null},removeComponent:function(t,e){var n=E(t),i=(g[n]||[]).findIndex(function(t){return t.getElement()===e});-1!==i&&(g[n][i].destroy(),g[n].splice(i,1))}},b=[];function S(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=t[e];r&&r.apply(r,n)}function L(t,e){void 0===e&&(e=!0),function(t,e){void 0===e&&(e=!0);var n=t,i=n.className.split(" "),r=b.find(function(t){return i.indexOf(t.componentClass)>-1});if(r){var o=e?"onAdded":"onRemoved",s=e?[n,y.addComponent]:[n,y.removeComponent];S.apply(void 0,[r,o].concat(s))}}(t,e);for(var n=t.firstElementChild;n;){var i=n.nextElementSibling;m(n)&&L(n,e),n=i}}function w(t){return Array.from(t).filter(function(t){return m(t)&&!t.getAttribute("data-no-boot")})}function A(){new MutationObserver(function(t){return t.forEach(function(t){if("attributes"!==t.type){var e=t.addedNodes,n=t.removedNodes;w(e).forEach(function(t){return L(t,!0)}),w(n).forEach(function(t){return L(t,!1)})}})}).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}!function(){if("MutationObserver"in window)if(document.body)A();else{var t=new MutationObserver(function(){document.body&&(t.disconnect(),A())});t.observe(document,{childList:!0,subtree:!0})}}();var I={subscribe:function(t){b.push(t),document.body&&Array.from(document.body.querySelectorAll("."+t.componentClass)||[]).filter(function(t){return!t.getAttribute("data-no-boot")}).forEach(function(e){S(t,"onAdded",e,y.addComponent)})},getComponent:y.getComponent};"undefined"!=typeof window&&window.addEventListener("error",function(t){console.error("-- Phonon Error --"),console.error("An error has occured! You can pen an issue here: https://github.com/quark-dev/Phonon-Framework/issues"),console.error(JSON.stringify(t))});var C={sleep:function(t){return new Promise(function(e){setTimeout(e,t)})},Event:p,Dispatch:r,Selector:f,Observer:I},T=function(){function t(t,e,n){var i=this;this.template="",this.id=null,this.eventHandlers=[],this.registeredElements=[],this.name=t;var r="string"==typeof n.element?document.querySelector(n.element):n.element,o={};if(r){var s=C.Selector.attrConfig(r);s&&(o=s)}this.defaultProps=e,this.props=Object.assign(e,o,n,{element:r}),this.id=this.uid(),this.elementListener=function(t){return i.onBeforeElementEvent(t)},this.setEventsHandler()}return t.prototype.setTemplate=function(t){this.template=t},t.prototype.getTemplate=function(){return this.template},t.prototype.getElement=function(){return this.getProp("element")||null},t.prototype.setElement=function(t){this.props.element=t},t.prototype.getId=function(){return this.id},t.prototype.uid=function(){return Math.random().toString(36).substr(2,10)},t.prototype.getName=function(){return this.name},t.prototype.getProps=function(){return this.props},t.prototype.getProp=function(t){var e=this.defaultProps[t];return void 0!==this.props[t]?this.props[t]:e},t.prototype.updateProps=function(t){var e=Object.assign({},t);delete e.element,this.props=Object.assign(this.props,e)},t.prototype.registerElements=function(t){var e=this;t.forEach(function(t){return e.registerElement(t)})},t.prototype.registerElement=function(t){t.target.addEventListener(t.event,this.elementListener),this.registeredElements.push(t)},t.prototype.unregisterElements=function(){var t=this;this.registeredElements.forEach(function(e){t.unregisterElement(e)})},t.prototype.unregisterElement=function(t){var e=this.registeredElements.findIndex(function(e){return e.target===t.target&&e.event===t.event});e>-1?(t.target.removeEventListener(t.event,this.elementListener),this.registeredElements.splice(e,1)):console.error("Warning! Could not remove element: "+t.target+" with event: "+t.event+".")},t.prototype.triggerEvent=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.split(".").reduce(function(t,e,n){return 0===n?e:t+e.charAt(0).toUpperCase()+e.slice(1)}),o="on"+r.charAt(0).toUpperCase()+r.slice(1),s=this.getProps();if(this.eventHandlers.forEach(function(t){"function"==typeof t[r]&&t[r].apply(i,[e]),"function"==typeof t[o]&&s[o].apply(i,[e])}),!n){var a=this.getElement();a?C.Dispatch.elementEvent(a,t,this.name,e):C.Dispatch.winDocEvent(t,this.name,e)}},t.prototype.preventClosable=function(){return!1},t.prototype.destroy=function(){this.unregisterElements()},t.prototype.onElementEvent=function(t){},t.prototype.setEventsHandler=function(){var t=this.getProps(),e=Object.keys(t).reduce(function(e,n){return"function"==typeof t[n]&&(e[n]=t[n]),e},{});Object.keys(e).length>0&&this.eventHandlers.push(e)},t.prototype.onBeforeElementEvent=function(t){this.preventClosable()||this.onElementEvent(t)},t}(),N=function(t){function n(e){void 0===e&&(e={toggle:!1});var n=t.call(this,"collapse",{toggle:!1},e)||this,i=n.getProp("toggle");return i&&n.toggle(),n}return e(n,t),n.attachDOM=function(){Array.from(document.querySelectorAll(".collapse")||[]),document.addEventListener(C.Event.CLICK,function(t){if(t.target){var e=C.Selector.closest(t.target,"[data-toggle]");if(e){var n=e.getAttribute("data-toggle");if(n&&"collapse"===n){var i=e.getAttribute("data-target")||e.getAttribute("href");if(!i)return;t.preventDefault();var r=document.querySelector(i);if(!r)return}}}})},n.prototype.getHeight=function(){return this.getElement().getBoundingClientRect(this.getElement()).height},n.prototype.toggle=function(){return this.isVisible()?this.hide():this.show()},n.prototype.show=function(){var t=this,e=this.getElement();if(e.classList.contains("collapsing")||this.isVisible())return!1;this.triggerEvent(C.Event.SHOW),e.classList.contains("collapsing")||e.classList.add("collapsing"),e.addEventListener(C.Event.TRANSITION_END,function n(){t.triggerEvent(C.Event.SHOWN),e.classList.add("show"),e.classList.remove("collapsing"),e.removeEventListener(C.Event.TRANSITION_END,n),e.setAttribute("aria-expanded",!0),e.style.height="auto"});var n=this.getHeight();return e.style.height="0px",setTimeout(function(){e.style.height=n+"px"},20),!0},n.prototype.hide=function(){var t=this,e=this.getElement();return!e.classList.contains("collapsing")&&(!!e.classList.contains("show")&&(this.triggerEvent(C.Event.HIDE),e.style.height=e.offsetHeight+"px",setTimeout(function(){e.style.height="0px"},20),e.addEventListener(C.Event.TRANSITION_END,function n(){t.triggerEvent(C.Event.HIDDEN),e.classList.remove("collapsing"),e.style.height="auto",e.removeEventListener(C.Event.TRANSITION_END,n),e.setAttribute("aria-expanded",!1)}),e.classList.contains("collapsing")||e.classList.add("collapsing"),e.classList.remove("show"),!0))},n.prototype.isVisible=function(){return this.getElement().classList.contains("show")},n}(T);N.attachDOM();var O=function(t){function n(e){var n=t.call(this,"accordion",{multiple:!1},e)||this;n.collapses=[];var i=n.getElement(),r=Array.from(i.querySelectorAll('[data-toggle="accordion"]')||[]);return r.forEach(function(t){var e=t.getAttribute("href")||t.getAttribute("data-target");if(null===e)throw new Error("Accordion: collapse is missing href or data-target attribute");var i=document.querySelector(e);i&&n.addCollapse(i)}),n.registerElement({target:i,event:C.Event.CLICK}),n}return e(n,t),n.attachDOM=function(){C.Observer.subscribe({componentClass:"accordion",onAdded:function(t,e){e(new n({element:t}))},onRemoved:function(t,e){e("Accordion",t)}})},n.prototype.addCollapse=function(t){var e=new N({element:t});return this.collapses.push(e),e},n.prototype.getCollapse=function(t){var e=this.getElement(),n=this.collapses.find(function(n){return e.getAttribute("id")===t.getAttribute("id")});return n||(n=this.addCollapse(t)),n},n.prototype.getCollapses=function(){return this.collapses},n.prototype.setCollapses=function(t){var e=this,n=(this.getElement(),this.getCollapse(t)),i=this.getProp("multiple");i||this.collapses.filter(function(t){return t.getElement()!==n.getElement()}).forEach(function(t){e.toggleIcon(t.getElement(),"icon-minus","icon-plus"),t.hide()});var r=n.isVisible();this.toggleIcon(n.getElement(),r?"icon-minus":"icon-plus",r?"icon-plus":"icon-minus"),n.toggle()},n.prototype.onElementEvent=function(t){var e=t.target,n=C.Selector.closest(e,'[data-toggle="accordion"]');if(n){var i=n.getAttribute("data-target")||n.getAttribute("href");if(i){var r=document.querySelector(i),o=C.Selector.closest(n,".accordion");o&&r&&(t.preventDefault(),this.show(r))}}},n.prototype.toggleIcon=function(t,e,n){var i=t.getAttribute("id"),r='[data-toggle="accordion"][href="#'+i+'"] .collapse-toggle',o=document.querySelector(r);o&&o.classList.contains(e)&&(o.classList.remove(e),o.classList.add(n))},n.prototype.show=function(t){var e=t;if("string"==typeof t&&(e=document.querySelector(t)),!e)throw new Error("The collapsible "+t+" is an invalid HTMLElement.");return this.setCollapses(e),!0},n.prototype.hide=function(t){var e=t;if("string"==typeof t&&(e=document.querySelector(t)),!e)throw new Error("The collapsible "+t+" is an invalid HTMLElement.");var n=this.getCollapse(e);return n.hide()},n}(T);O.attachDOM();var x,D,k,P=function(t){function n(e){void 0===e&&(e={fade:!0});var n=t.call(this,"alert",{fade:!0},e)||this;if(n.onTransition=!1,0!==n.getOpacity()){var i=n.getElement().querySelector('[data-dismiss="alert"]');i&&n.registerElement({target:i,event:C.Event.CLICK})}return n}return e(n,t),n.attachDOM=function(){C.Observer.subscribe({componentClass:"alert",onAdded:function(t,e){e(new n({element:t}))},onRemoved:function(t,e){e("Alert",t)}})},n.prototype.show=function(){var t=this;if(this.onTransition)return!1;var e=this.getElement();if(e.classList.contains("show")&&0!==this.getOpacity())return!1;this.onTransition=!0,this.triggerEvent(C.Event.SHOW);var n=function n(){t.triggerEvent(C.Event.SHOWN),e.classList.contains("fade")&&e.classList.remove("fade");var i=C.Selector.closest(t.getElement(),'[data-dismiss="alert"]');i&&t.registerElement({target:i,event:C.Event.CLICK}),e.removeEventListener(C.Event.TRANSITION_END,n),t.onTransition=!1},i=this.getProp("fade");return i&&!e.classList.contains("fade")&&e.classList.add("fade"),e.classList.add("show"),e.addEventListener(C.Event.TRANSITION_END,n),e.classList.contains("hide")&&e.classList.remove("hide"),i||n(),!0},n.prototype.hide=function(t){var e=this;if(this.onTransition||0===this.getOpacity())return!1;this.onTransition=!0;var n=t||this.getElement();this.triggerEvent(C.Event.HIDE);var i=function t(){e.triggerEvent(C.Event.HIDDEN),n.removeEventListener(C.Event.TRANSITION_END,t),e.onTransition=!1},r=this.getProp("fade");return r&&!n.classList.contains("fade")&&n.classList.add("fade"),n.addEventListener(C.Event.TRANSITION_END,i),n.classList.contains("hide")||n.classList.add("hide"),n.classList.contains("show")&&n.classList.remove("show"),r||i(),!0},n.prototype.onElementEvent=function(t){t.type===C.Event.CLICK&&this.hide()},n.prototype.destroy=function(){this.unregisterElements(),this.hide()},n.prototype.getOpacity=function(){var t=this.getElement(),e=window.getComputedStyle(t).opacity;return parseFloat(e||"")},n}(T);P.attachDOM(),function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"}(x||(x={})),function(t){t.primary="primary",t.secondary="secondary",t.success="success",t.warning="warning",t.danger="danger"}(D||(D={})),function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left"}(k||(k={}));var q=function(t){function n(e){return void 0===e&&(e={color:D.primary,size:x.md}),t.call(this,"loader",{fade:!0,size:x.md,color:D.primary},e)||this}return e(n,t),n.prototype.show=function(){var t=this.getElement();t.classList.contains("hide")&&t.classList.remove("hide"),this.triggerEvent(C.Event.SHOW);var e=this.getProp("size");C.Selector.removeClasses(t,Object.values(x),"loader"),t.classList.add("loader-"+e);var n=this.getProp("color"),i=this.getSpinner();return C.Selector.removeClasses(i,Object.values(D),"loader"),i.classList.add("loader-"+n),this.triggerEvent(C.Event.SHOWN),!0},n.prototype.animate=function(t){void 0===t&&(t=!0),t?this.show():this.hide();var e=this.getSpinner();return t&&!e.classList.contains("loader-spinner-animated")?(e.classList.add("loader-spinner-animated"),!0):(!t&&e.classList.contains("loader-spinner-animated")&&e.classList.remove("loader-spinner-animated"),!0)},n.prototype.hide=function(){var t=this.getElement();return t.classList.contains("hide")||t.classList.add("hide"),this.triggerEvent(C.Event.HIDE),this.triggerEvent(C.Event.HIDDEN),!0},n.prototype.getSpinner=function(){return this.getElement().querySelector(".loader-spinner")},n}(T),H=function(t){function r(e,n){void 0===n&&(n=!0);var i=t.call(this,"modal",{title:null,message:null,cancelable:!0,background:null,cancelableKeyCodes:[27,13],buttons:[{event:"confirm",text:"Ok",dismiss:!0,class:"btn btn-primary"}],center:!0},e)||this;return i.backdropSelector="modal-backdrop",i.elementGenerated=!1,i.setTemplate('<div class="modal" tabindex="-1" role="modal" data-no-boot><div class="modal-inner" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="icon-close" data-dismiss="modal" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="modal-body"><p></p></div><div class="modal-footer"></div></div></div></div>'),n&&null===i.getElement()&&i.build(),i}return e(r,t),r.attachDOM=function(){C.Observer.subscribe({componentClass:"modal",onAdded:function(t,e){e(new r({element:t}))},onRemoved:function(t,e){e("Modal",t)}}),document.addEventListener(C.Event.CLICK,function(t){var e=t.target;if(e){var n=e.getAttribute("data-toggle");if(n&&"modal"===n){var i=e.getAttribute("data-target");if(!i)return;var r=document.querySelector(i);if(!r)return;var o=C.Observer.getComponent("modal",{element:r});if(!o)return;e.blur(),o.show()}}})},r.prototype.build=function(){var t=this;this.elementGenerated=!0;var e=document.createElement("div");e.innerHTML=this.getTemplate(),this.setElement(e.firstChild);var n=this.getElement(),i=this.getProp("title");null!==i&&(n.querySelector(".modal-title").innerHTML=i);var r=this.getProp("message");null!==r?n.querySelector(".modal-body").firstChild.innerHTML=r:this.removeTextBody();var o=this.getProp("cancelable");o||(n.querySelector(".close").style.display="none");var s=this.getProp("buttons");Array.isArray(s)&&s.length>0?s.forEach(function(e){n.querySelector(".modal-footer").appendChild(t.buildButton(e))}):this.removeFooter(),document.body.appendChild(n)},r.prototype.show=function(){var t=this,e=this.getElement();return null===e&&this.build(),!e.classList.contains("show")&&(document.body.style.overflow="hidden",n(t,void 0,void 0,function(){var t,n=this;return i(this,function(i){switch(i.label){case 0:return[4,C.sleep(20)];case 1:return i.sent(),this.triggerEvent(C.Event.SHOW),this.buildBackdrop(),this.attachEvents(),t=function(){n.triggerEvent(C.Event.SHOWN),e.removeEventListener(C.Event.TRANSITION_END,t)},e.addEventListener(C.Event.TRANSITION_END,t),this.getProp("center")&&this.center(),e.classList.add("show"),[2]}})}),!0)},r.prototype.hide=function(){var t=this,e=this.getElement();if(!e.classList.contains("show"))return!1;document.body.style.overflow="visible",this.triggerEvent(C.Event.HIDE),this.detachEvents(),e.classList.add("hide"),e.classList.remove("show");var n=this.getBackdrop();return n&&(n.addEventListener(C.Event.TRANSITION_END,function i(){n&&(document.body.removeChild(n),n.removeEventListener(C.Event.TRANSITION_END,i)),e.classList.remove("hide"),t.triggerEvent(C.Event.HIDDEN),t.elementGenerated&&document.body.removeChild(e)}),n.classList.add("fadeout")),!0},r.prototype.onElementEvent=function(t){if("keyup"!==t.type)if(t.type!==C.Event.START){if(t.type===C.Event.CLICK){var e=t.target.getAttribute("data-event");e&&this.triggerEvent(e);var n=C.Selector.closest(t.target,"[data-dismiss]");n&&"modal"===n.getAttribute("data-dismiss")&&this.hide()}}else this.hide();else{var i=this.getProp("cancelableKeyCodes");i.find(function(e){return e===t.keyCode})&&this.hide()}},r.prototype.setBackgroud=function(){var t=this.getElement(),e=this.getProp("background");e&&(t.classList.contains("modal-"+e)||t.classList.add("modal-"+e),t.classList.contains("text-white")||t.classList.add("text-white"))},r.prototype.buildButton=function(t){var e=document.createElement("button");return e.setAttribute("type","button"),e.setAttribute("class",t.class||"btn"),e.setAttribute("data-event",t.event),e.innerHTML=t.text,t.dismiss&&e.setAttribute("data-dismiss","modal"),e},r.prototype.buildBackdrop=function(){var t=document.createElement("div");t.setAttribute("data-id",this.getId()),t.classList.add(this.backdropSelector),document.body.appendChild(t)},r.prototype.getBackdrop=function(){return document.querySelector("."+this.backdropSelector+'[data-id="'+this.getId()+'"]')},r.prototype.removeTextBody=function(){var t=this.getElement();t.querySelector(".modal-body").removeChild(t.querySelector(".modal-body").firstChild)},r.prototype.removeFooter=function(){var t=this.getElement(),e=t.querySelector(".modal-footer");t.querySelector(".modal-content").removeChild(e)},r.prototype.center=function(){var t=this.getElement(),e=window.getComputedStyle(t);if(e&&e.height){var n=e.height.slice(0,e.height.length-2),i=window.innerHeight/2-parseFloat(n)/2;t.style.top=i+"px"}},r.prototype.attachEvents=function(){var t=this,e=this.getElement(),n=Array.from(e.querySelectorAll("[data-dismiss], .modal-footer button")||[]);n.forEach(function(e){return t.registerElement({target:e,event:C.Event.CLICK})});var i=this.getProp("cancelable"),r=this.getBackdrop();i&&r&&(this.registerElement({target:r,event:C.Event.START}),this.registerElement({target:document,event:"keyup"}))},r.prototype.detachEvents=function(){var t=this,e=this.getElement(),n=Array.from(e.querySelectorAll("[data-dismiss], .modal-footer button")||[]);n.forEach(function(e){return t.unregisterElement({target:e,event:C.Event.CLICK})});var i=this.getProp("cancelable");if(i){var r=this.getBackdrop();this.unregisterElement({target:r,event:C.Event.START}),this.unregisterElement({target:document,event:"keyup"})}},r}(T);H.attachDOM();var M=function(t){function n(e){var n=t.call(this,Object.assign({buttons:[{event:"cancel",text:"Cancel",dismiss:!0,class:"btn btn-secondary"},{event:"confirm",text:"Ok",dismiss:!0,class:"btn btn-primary"}]},e),!1)||this;return n.setTemplate('<div class="modal" tabindex="-1" role="modal" data-no-boot><div class="modal-inner" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="icon-close" data-dismiss="modal" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="modal-body"><p></p></div><div class="modal-footer"></div></div></div></div>'),null===n.getElement()&&n.build(),n}return e(n,t),n}(H),R=function(t){function n(e){var n=t.call(this,Object.assign({buttons:[{event:"cancel",text:"Cancel",dismiss:!0,class:"btn btn-secondary"},{event:"confirm",text:"Ok",dismiss:!0,class:"btn btn-primary"}]},e),!1)||this;return n.loader=null,n.setTemplate('<div class="modal" tabindex="-1" role="modal" data-no-boot><div class="modal-inner" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="icon-close" data-dismiss="modal" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="modal-body"><p></p><div class="mx-auto text-center"><div class="loader mx-auto d-block"><div class="loader-spinner"></div></div></div></div><div class="modal-footer"></div></div></div></div>'),null===n.getElement()&&n.build(),n}return e(n,t),n.prototype.show=function(){return t.prototype.show.call(this),console.log(this.getElement()),this.loader=new q({element:this.getElement().querySelector(".loader")}),this.loader.animate(!0),!0},n.prototype.hide=function(){return t.prototype.hide.call(this),this.loader&&this.loader.animate(!1),this.loader=null,!0},n}(H),_=function(t){function n(e){var n=t.call(this,Object.assign({buttons:[{event:"cancel",text:"Cancel",dismiss:!0,class:"btn btn-secondary"},{event:"confirm",text:"Ok",dismiss:!0,class:"btn btn-primary"}],inputValue:""},e),!1)||this;return n.setTemplate('<div class="modal" tabindex="-1" role="modal" data-no-boot><div class="modal-inner" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="icon-close" data-dismiss="modal" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="modal-body"><p></p><input class="form-control" type="text" value=""></div><div class="modal-footer"></div></div></div></div>'),null===n.getElement()&&n.build(),n}return e(n,t),n.prototype.show=function(){t.prototype.show.call(this);var e=this.getProp("inputValue");return"string"==typeof e&&this.setInputValue(e),this.attachInputEvent(),!0},n.prototype.hide=function(){return t.prototype.hide.call(this),this.detachInputEvent(),!0},n.prototype.setInputValue=function(t){void 0===t&&(t=""),this.getInput().value=t},n.prototype.getInputValue=function(){return this.getInput().value},n.prototype.onElementEvent=function(e){e.target!==this.getInput()&&t.prototype.onElementEvent.call(this,e)},n.prototype.getInput=function(){return this.getElement().querySelector(".form-control")},n.prototype.attachInputEvent=function(){this.registerElement({target:this.getInput(),event:"keyup"})},n.prototype.detachInputEvent=function(){this.unregisterElement({target:this.getInput(),event:"keyup"})},n}(H),W=function(t){function r(e){void 0===e&&(e={element:null,title:"",button:!0});var n=t.call(this,"notification",{button:!0,timeout:null,title:"",message:null,background:"primary",appendIn:document.body,directionX:"right",directionY:"top",offsetX:0,offsetY:0},e)||this;return n.timeoutCallback=null,n.elementGenerated=!1,n.setTemplate('<div class="notification" data-no-boot><div class="notification-inner"><div class="notification-header"><h5 class="notification-title"></h5><button type="button" class="icon-close" data-dismiss="notification" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="notification-body"></div></div></div>'),null===n.getElement()&&n.build(),n}return e(r,t),r.attachDOM=function(){C.Observer.subscribe({componentClass:"notification",onAdded:function(t,e){e(new r({element:t}))},onRemoved:function(t,e){e("Notification",t)}})},r.prototype.build=function(){this.elementGenerated=!0;var t=document.createElement("div");t.innerHTML=this.getTemplate(),this.setElement(t.firstChild);var e=this.getElement();e.querySelector(".notification-title").innerHTML=this.getProp("title"),this.getProp("message")?e.querySelector(".notification-body").innerHTML=this.getProp("message"):e.querySelector(".notification-body").style.display="none",this.getProp("button")||(e.querySelector("button").style.display="none");var n=this.getProp("appendIn");n.appendChild(e)},r.prototype.setPosition=function(){var t=this.getProp("directionX"),e=this.getProp("directionY"),n=this.getProp("offsetX"),i=this.getProp("offsetY"),r=this.getElement();C.Selector.removeClasses(r,Object.values(k)),r.style.marginLeft="0px",r.style.marginRight="0px",r.classList.add("notification-"+t),r.classList.add("notification-"+e);var o=Array.from(document.querySelectorAll(".notification.show")||[]),s=0;o.forEach(function(t){if(r!==t){var e=getComputedStyle(t),n=parseInt(e.marginTop,10),i=parseInt(e.marginBottom,10);s+=t.offsetHeight+n+i}}),r.style.transform="translateY("+("top"===e?"":"-")+s+"px)",r.style["margin"+t.replace(/^\w/,function(t){return t.toUpperCase()})]=n+"px",r.style["margin"+e.replace(/^\w/,function(t){return t.toUpperCase()})]=i+"px"},r.prototype.show=function(){var t=this;null===this.getElement()&&this.build();var e=this.getElement();if(e.classList.contains("show"))return!1;var r=this.getProp("background");r&&(e.removeAttribute("class"),e.setAttribute("class","notification"),e.classList.add("notification-"+r),e.querySelector("button").classList.add("btn-"+r));var o=e.querySelector("button[data-dismiss]"),s=this.getProp("button");return s&&o&&this.registerElement({target:o,event:C.Event.CLICK}),e.querySelector("button[data-dismiss]"),this.registerElement({target:o,event:C.Event.CLICK}),n(t,void 0,void 0,function(){var t,n,r=this;return i(this,function(i){switch(i.label){case 0:return[4,C.sleep(20)];case 1:return i.sent(),this.setPosition(),t=this.getProp("timeout"),Number.isInteger(t)&&t>0&&(this.timeoutCallback=setTimeout(function(){r.hide()},t+1)),e.classList.add("show"),this.triggerEvent(C.Event.SHOW),n=function(){r.triggerEvent(C.Event.SHOWN),e.removeEventListener(C.Event.TRANSITION_END,n)},e.addEventListener(C.Event.TRANSITION_END,n),[2]}})}),!0},r.prototype.hideBody=function(){var t=this.getElement().querySelector(".notification-body");t.classList.contains("show")&&t.classList.remov("show")},r.prototype.hide=function(){var t=this;this.timeoutCallback&&(clearTimeout(this.timeoutCallback),this.timeoutCallback=null);var e=this.getElement();if(!e.classList.contains("show"))return!1;this.triggerEvent(C.Event.HIDE);var n=this.getProp("button"),i=e.querySelector("button[data-dismiss]");return n&&i&&this.unregisterElement({target:i,event:C.Event.CLICK}),e.classList.remove("show"),e.classList.add("hide"),this.hideBody(),e.addEventListener(C.Event.TRANSITION_END,function n(){e.removeEventListener(C.Event.TRANSITION_END,n),e.classList.remove("hide"),t.triggerEvent(C.Event.HIDDEN),t.elementGenerated&&document.body.removeChild(e)}),!0},r.prototype.onElementEvent=function(){this.hide()},r}(T),K=function(t){function r(e){var n=t.call(this,"off-canvas",{toggle:!1,closableKeyCodes:[27],container:document.body,aside:{md:!1,lg:!0,xl:!0}},e)||this;n.currentWidthName=null,n.animate=!0,n.showAside=!1,n.directions=["left","right"],n.direction=null,n.sizes=[],n.backdropSelector="offcanvas-backdrop";var i={name:"sm",media:window.matchMedia("(min-width: 1px)")},r={name:"md",media:window.matchMedia("(min-width: 768px)")},o={name:"lg",media:window.matchMedia("(min-width: 992px)")},s={name:"xl",media:window.matchMedia("(min-width: 1200px)")};n.sizes=[i,r,o,s].reverse(),n.checkDirection(),n.checkWidth();var a=n.getProp("toggle");return a&&n.toggle(),window.addEventListener("resize",function(){return n.checkWidth()},!1),n}return e(r,t),r.attachDOM=function(){C.Observer.subscribe({componentClass:"offcanvas",onAdded:function(t,e){e(new r({element:t}))},onRemoved:function(t,e){e("OffCanvas",t)}}),document.addEventListener(C.Event.CLICK,function(t){var e=t.target;if(e){var n=e.getAttribute("data-toggle");if(n&&"offcanvas"===n){var i=e.getAttribute("data-target");if(!i)return;var r=document.querySelector(i);if(!r)return;var o=C.Observer.getComponent("offcanvas",{element:r});if(!o)return;e.blur(),o.toggle()}}})},r.prototype.checkDirection=function(){var t=this,e=this.getElement();this.directions.every(function(n){return!e.classList.contains("offcanvas-"+n)||(t.direction=n,!1)})},r.prototype.checkWidth=function(){if("matchMedia"in window){var t=this.sizes.find(function(t){var e=t.media,n=e.media.match(/[a-z]?-width:\s?([0-9]+)/);return!(!n||!e.matches)});t&&this.setAside(t.name)}},r.prototype.setAside=function(t){if(this.currentWidthName!==t){this.currentWidthName=t;var e=this.getProp("container"),n=this.getProp("aside");this.showAside=!0===n[t],!0===n[t]?(e.classList.contains("offcanvas-aside-"+this.direction)||e.classList.add("offcanvas-aside-"+this.direction),this.animate=!1,this.getBackdrop()&&this.removeBackdrop(),this.isVisible()&&!e.classList.contains("show")?e.classList.add("show"):!this.isVisible()&&e.classList.contains("show")&&e.classList.remove("show")):(e.classList.contains("offcanvas-aside-"+this.direction)&&e.classList.remove("offcanvas-aside-"+this.direction),this.animate=!0,this.hide())}},r.prototype.onElementEvent=function(t){var e=this.getProp("closableKeyCodes");("keyup"!==t.type||e.find(function(e){return e===t.keyCode}))&&this.hide()},r.prototype.isVisible=function(){return this.getElement().classList.contains("show")},r.prototype.show=function(){var t=this;return!this.getElement().classList.contains("show")&&(this.triggerEvent(C.Event.SHOW),this.showAside||this.createBackdrop(),n(t,void 0,void 0,function(){var t,e,n,r=this;return i(this,function(i){switch(i.label){case 0:return[4,C.sleep(20)];case 1:return i.sent(),this.attachEvents(),t=function(){if(r.triggerEvent(C.Event.SHOWN),r.animate){var e=r.getElement();e.removeEventListener(C.Event.TRANSITION_END,t),e.classList.remove("animate")}},this.showAside&&((e=this.getProp("container")).classList.contains("show")||e.classList.add("show")),n=this.getElement(),this.animate?(n.addEventListener(C.Event.TRANSITION_END,t),n.classList.add("animate")):t(),n.classList.add("show"),[2]}})}),!0)},r.prototype.hide=function(){var t=this,e=this.getElement();if(!e.classList.contains("show"))return!1;if(this.triggerEvent(C.Event.HIDE),this.detachEvents(),this.animate&&e.classList.add("animate"),e.classList.remove("show"),this.showAside){var n=this.getProp("container");n.classList.contains("show")&&n.classList.remove("show")}if(!this.showAside){var i=this.getBackdrop();if(!i)return;i&&(i.addEventListener(C.Event.TRANSITION_END,function n(){t.animate&&e.classList.remove("animate"),i.removeEventListener(C.Event.TRANSITION_END,n),t.triggerEvent(C.Event.HIDDEN),t.removeBackdrop()}),i.classList.add("fadeout"))}return!0},r.prototype.toggle=function(){return this.isVisible()?this.hide():this.show()},r.prototype.createBackdrop=function(){var t=document.createElement("div"),e=this.getId();e&&t.setAttribute("data-id",e),t.classList.add(this.backdropSelector);var n=this.getProp("container");n.appendChild(t)},r.prototype.getBackdrop=function(){return document.querySelector("."+this.backdropSelector+'[data-id="'+this.getId()+'"]')},r.prototype.removeBackdrop=function(){var t=this.getBackdrop();if(t){var e=this.getProp("container");e.removeChild(t)}},r.prototype.attachEvents=function(){var t=this,e=this.getElement();Array.from(e.querySelectorAll("[data-dismiss]")||[]).forEach(function(e){return t.registerElement({target:e,event:C.Event.CLICK})});var n=this.getBackdrop();!this.showAside&&n&&this.registerElement({target:n,event:C.Event.START}),this.registerElement({target:document,event:"keyup"})},r.prototype.detachEvents=function(){var t=this,e=this.getElement(),n=e.querySelectorAll("[data-dismiss]");n&&Array.from(n).forEach(function(e){return t.unregisterElement({target:e,event:C.Event.CLICK})});var i=this.getBackdrop();!this.showAside&&i&&this.unregisterElement({target:i,event:C.Event.START}),this.unregisterElement({target:document,event:"keyup"})},r}(T);K.attachDOM();var B=function(t){function n(e){var n=t.call(this,"selectbox",{name:null,selectable:!0,search:!1,filterItems:null,multiple:!1,tag:!1,initSelection:!1},e)||this;if(n.filterItemsHandler=function(t){var e=t.target;if(e){var i=e.value;""!==i?n.getItems().forEach(function(t){var e=n.getProp("filterItems"),r="function"==typeof e?e:n.filterItems;r(i,t)?t.element.style.display="block":t.element.style.display="none"}):n.showItems()}},n.registerElement({target:n.getElement(),event:C.Event.CLICK}),n.searchInputInContainer=null!==n.getElement().querySelector(".selectbox-input-container .input-select-one"),n.getProp("initSelection")){var i=n.getItemData(n.getElement().querySelector("[data-selected]"));return n.setSelected(i.value,i.text),n}return n}return e(n,t),n.attachDOM=function(){C.Observer.subscribe({componentClass:"selectbox",onAdded:function(t,e){e(new n({element:t}))},onRemoved:function(t,e){e("Selectbox",t)}})},n.prototype.getSearchInput=function(){return this.getElement().querySelector(".input-select-one")},n.prototype.filterItems=function(t,e){return void 0===t&&(t=""),e.value.indexOf(t)>-1||e.text.indexOf(t)>-1},n.prototype.showItems=function(){this.getItems().forEach(function(t){t.element.style.display="block"})},n.prototype.getItems=function(){var t=this,e=Array.from(this.getElement().querySelectorAll(".selectbox-menu-item")||[]);return e.map(function(e){var n=t.getItemData(e);return{text:n.text,value:n.value,element:e}})},n.prototype.setSelected=function(t,e){void 0===t&&(t=""),void 0===e&&(e="");var n=this.getProp("selectable");if(!n)return!1;var i=this.getElement(),r=this.getProp("multiple");if(r)this.addItemSelection(t);else{var o=Array.from(i.querySelectorAll(".selectbox-item-selection .item-selected")||[]);0===o.length&&this.addItemSelection(t)}var s=i.querySelector(".selectbox-item-selection .item-selected:last-child"),a=s.querySelector("[data-value]");a?a.innerHTML=e:s.innerHTML=e;var l=Array.from(this.getElement().querySelectorAll('input[type="hidden"]')||[]),c=l.slice(-1).pop();return c&&c.setAttribute("value",t),this.updateActiveList(),this.setSearchInputWidth(),this.getSearchInput(),""===t?this.showPlaceholder():this.showPlaceholder(!1),!0},n.prototype.getSelected=function(){var t=Array.from(this.getElement().querySelectorAll('input[type="hidden"]')||[]);return this.getProp("multiple")?t.map(function(t){return t.value}):t.length>0?t[0].value:""},n.prototype.setSearchInputWidth=function(){if(this.searchInputInContainer){var t=this.getElement(),e=t.querySelector(".selectbox-item-selection"),n=t.offsetWidth-e.offsetWidth,i=this.getSearchInput(),r=Array.from(t.querySelectorAll(".item-selected")||[]).reduce(function(t,e){return t+e.offsetWidth},0);n>0&&(i.style.width="calc(100% - "+(r+15)+"px)"),i.style.left=r+"px"}},n.prototype.getItemData=function(t){void 0===t&&(t=null);var e="",n="";if(t){e=t.getAttribute("data-text")||t.innerHTML;var i=t.querySelector(".text");i&&(e=i.innerHTML),n=t.getAttribute("data-value")||""}return{text:e,value:n}},n.prototype.onElementEvent=function(t){if(t.type===C.Event.START){var e=C.Selector.closest(t.target,".selectbox");e&&e===this.getElement()||this.hide()}else if(t.type===C.Event.CLICK){var n=t.target.getAttribute("data-toggle");if(n&&"selectbox"===n)return void this.toggle();var i=C.Selector.closest(t.target,'[data-dismiss="selectbox"]');if(i)return void this.hide();var r=C.Selector.closest(t.target,".icon-close");if(r)return void this.removeSelected(r.parentNode);var o=C.Selector.closest(t.target,".selectbox-menu-item");if(o&&!o.classList.contains("disabled")){var s=this.getItemData(o);if(this.getSelected()!==s.value){console.log("selected"),this.setSelected(s.value,s.text),this.getElement().querySelector(".input-select-one").value="";var a={item:o,text:s.text,value:s.value};this.triggerEvent(C.Event.ITEM_SELECTED,a)}return void this.hide()}var l=C.Selector.closest(t.target,".selectbox-menu");if(l)return;this.toggle()}else if("keyup"===t.type&&8===t.keyCode&&""===t.target.value){if(!this.searchInputInContainer)return;this.removeLastSelected()}},n.prototype.addItemSelection=function(t){var e=document.createElement("div");if(e.classList.add("item-selected"),this.getProp("tag")){e.classList.add("tag");var n=document.createElement("span");n.setAttribute("data-value","true"),e.appendChild(n);var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("icon-close");var r=document.createElement("span");r.setAttribute("class","icon"),r.setAttribute("aria-hidden","true"),i.appendChild(r),e.appendChild(i)}var o=this.getElement();o.querySelector(".selectbox-item-selection").appendChild(e);var s=this.getElement(),a=Array.from(s.querySelectorAll('input[type="hidden"]')||[]),l=a.length>0?a[a.length-1]:null;if(!this.getProp("multiple")&&!l||this.getProp("multiple")){var c=document.createElement("input");c.setAttribute("type","hidden");var d=this.getProp("name");c.setAttribute("name",this.getProp("multiple")?d+"[]":d),c.setAttribute("value",t),s.insertBefore(c,l?l.nextSibling:s.firstChild)}},n.prototype.removeLastSelected=function(){var t=this.getElement(),e=Array.from(t.querySelectorAll(".selectbox-item-selection .item-selected")||[]);if(0!==e.length){var n=e[e.length-1];this.removeSelected(n)}},n.prototype.removeSelected=function(t){var e=this.getElement(),n=Array.from(e.querySelectorAll(".selectbox-item-selection .item-selected")||[]);if(0!==n.length){if(console.log("removed"),e.querySelector(".selectbox-item-selection").removeChild(t),this.getProp("multiple")){var i=this.getSelected(),r=e.querySelector('input[type="hidden"][value="'+i.slice(-1).pop()+'"]');this.getElement().removeChild(r)}else{var r=e.querySelector('input[type="hidden"]');!this.getProp("multiple")&&r&&r.setAttribute("value","")}this.updateActiveList(),this.setSearchInputWidth(),1===n.length&&this.showPlaceholder()}},n.prototype.showPlaceholder=function(t){void 0===t&&(t=!0);var e=this.getSearchInput();t&&e.classList.contains("hide-placeholder")?e.classList.remove("hide-placeholder"):t||e.classList.contains("hide-placeholder")||e.classList.add("hide-placeholder")},n.prototype.updateActiveList=function(){var t=this,e=this.getSelected(),n=Array.isArray(e)?e:[e],i=Array.from(this.getElement().querySelectorAll(".selectbox-menu-item")||[]);i.forEach(function(e){var i=t.getItemData(e);n.indexOf(i.value)>-1?e.classList.contains("selected")||e.classList.add("selected"):e.classList.contains("selected")&&e.classList.remove("selected")})},n.prototype.toggle=function(){return this.getElement().classList.contains("active")?this.hide():this.show()},n.prototype.show=function(){var t=this.getElement();if(t.classList.contains("active"))return!1;t.classList.add("active");var e=t.querySelector(".selectbox-menu"),n=this.getSearchInput();e.scrollTop=0,this.triggerEvent(C.Event.SHOW),this.triggerEvent(C.Event.SHOWN),this.registerElement({target:document.body,event:C.Event.START}),this.registerElement({target:n,event:"keyup"});var i=t.querySelector('[data-dismiss="selectbox"]');return i&&this.registerElement({target:i,event:C.Event.CLICK}),n.addEventListener("keyup",this.filterItemsHandler),n.focus(),!0},n.prototype.hide=function(){var t=this.getElement();if(!t.classList.contains("active"))return!1;t.classList.remove("active"),this.triggerEvent(C.Event.HIDE),this.triggerEvent(C.Event.HIDDEN),this.unregisterElement({target:document.body,event:C.Event.START});var e=t.querySelector('[data-dismiss="selectbox"]');e&&this.unregisterElement({target:e,event:C.Event.CLICK});var n=this.getSearchInput();return n.removeEventListener("keyup",this.filterItemsHandler),n.value="",this.showItems(),this.unregisterElement({target:n,event:"keyup"}),!0},n}(T);B.attachDOM();var j=function(t){function r(e){var n=t.call(this,"tab",{},e)||this;return n.tabSelector="tab",n.tabItemSelector="tab-item",n.tabContentSelector="tab-pane",n.onAnimation=!1,n.registerElement({target:n.getElement(),event:C.Event.CLICK}),n}return e(r,t),r.attachDOM=function(){C.Observer.subscribe({componentClass:"tabs",onAdded:function(t,e){e(new r({element:t}))},onRemoved:function(t,e){e("Tab",t)}})},r.prototype.onElementEvent=function(t){var e=t.target;if(e){var n=e.getAttribute("data-toggle");if(n){var i=e.getAttribute("href")||e.getAttribute("data-target");if(!i)return;t.preventDefault(),this.show(e)}}},r.prototype.show=function(t){var e=this;if(this.onAnimation)return!1;var r=C.Selector.closest(t,"."+this.tabItemSelector);if(!r||r.classList.contains("active"))return!1;var o=t.getAttribute("href")||t.getAttribute("data-target");if(!o)return!1;var s=this.getElement(),a=Array.from(s.querySelectorAll(".tab-item")||[]);a.forEach(function(t){t.classList.contains("active")&&t.classList.remove("active");var e=t.querySelector(".tab-link");e&&e.setAttribute("aria-selected","false")}),this.onAnimation=!0,r.classList.add("active"),t.setAttribute("aria-selected","true");var l=document.querySelector(o);if(!l)return!1;var c=l.parentNode;if(!c)return!1;var d=Array.from(c.querySelectorAll("."+this.tabContentSelector)||[]),u=s.querySelector(".tab-item.active");d.forEach(function(t){t.classList.contains("active")&&t.classList.remove("active")}),l.classList.add("showing"),this.triggerEvent(C.Event.SHOW,this.getTabEvent(t)),u&&this.triggerEvent(C.Event.HIDE,this.getTabEvent(u));var h=function n(){l.classList.remove("animate"),l.classList.add("active"),l.classList.remove("showing"),e.triggerEvent(C.Event.SHOWN,e.getTabEvent(t)),u&&e.triggerEvent(C.Event.HIDDEN,e.getTabEvent(u)),e.onAnimation=!1,l.removeEventListener(C.Event.TRANSITION_END,n)};return n(e,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,C.sleep(20)];case 1:return t.sent(),l.addEventListener(C.Event.TRANSITION_END,h),l.classList.add("animate"),[2]}})}),!0},r.prototype.getTabEvent=function(t){return{id:t.getAttribute("href")||t.getAttribute("data-target"),target:t}},r.prototype.destroy=function(){this.registerElement({target:this.getElement(),event:C.Event.CLICK})},r}(T);j.attachDOM();var V=function(t,e){return void 0===e&&(e={}),C.Observer.getComponent(t,e)||new t(e)},z={accordion:function(t){return V(O,t)},alert:function(t){return V(P,t)},modal:function(t){return V(H,t)},modalConfirm:function(t){return V(M,t)},modalLoader:function(t){return V(R,t)},modalPrompt:function(t){return V(_,t)},loader:function(t){return V(q,t)},collapse:function(t){return V(N,t)},notification:function(t){return V(W,t)},offCanvas:function(t){return V(K,t)},tab:function(t){return V(j,t)},selectbox:function(t){return V(B,t)}};return Object.assign(z,C)}()}]);<commit_msg>Updated dist<commit_after>!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){const o=n(2);document.querySelector("#createModal").addEventListener("click",function(){new o({title:"Modal title",message:"Modal body text goes here."}).show()})},function(t,e,n){"use strict";
/*!
  * Modal v2.0.0-alpha.1 (https://github.com/quark-dev/Phonon-Framework)
  * Copyright 2015-2019 qathom
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */var o,r=(o=n(3))&&"object"==typeof o&&"default"in o?o.default:o,i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function a(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var s=function(t){function e(e,n){void 0===n&&(n=!0);var o=t.call(this,"modal",{title:null,message:null,cancelable:!0,background:null,cancelableKeyCodes:[27,13],buttons:[{event:"confirm",text:"Ok",dismiss:!0,class:"btn btn-primary"}],center:!0},e)||this;return o.backdropSelector="modal-backdrop",o.elementGenerated=!1,o.setTemplate('<div class="modal" tabindex="-1" role="modal" data-no-boot><div class="modal-inner" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="icon-close" data-dismiss="modal" aria-label="Close"><span class="icon" aria-hidden="true"></span></button></div><div class="modal-body"><p></p></div><div class="modal-footer"></div></div></div></div>'),n&&null===o.getElement()&&o.build(),o}return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.attachDOM=function(){r.Observer.subscribe({componentClass:"modal",onAdded:function(t,n){n(new e({element:t}))},onRemoved:function(t,e){e("Modal",t)}}),document.addEventListener(r.Event.CLICK,function(t){var e=t.target;if(e){var n=e.getAttribute("data-toggle");if(n&&"modal"===n){var o=e.getAttribute("data-target");if(!o)return;var i=document.querySelector(o);if(!i)return;var a=r.Observer.getComponent("modal",{element:i});if(!a)return;e.blur(),a.show()}}})},e.prototype.build=function(){var t=this;this.elementGenerated=!0;var e=document.createElement("div");e.innerHTML=this.getTemplate(),this.setElement(e.firstChild);var n=this.getElement(),o=this.getProp("title");null!==o&&(n.querySelector(".modal-title").innerHTML=o);var r=this.getProp("message");null!==r?n.querySelector(".modal-body").firstChild.innerHTML=r:this.removeTextBody(),this.getProp("cancelable")||(n.querySelector(".close").style.display="none");var i=this.getProp("buttons");Array.isArray(i)&&i.length>0?i.forEach(function(e){n.querySelector(".modal-footer").appendChild(t.buildButton(e))}):this.removeFooter(),document.body.appendChild(n)},e.prototype.show=function(){var t,e,n,o,i=this,s=this.getElement();return null===s&&this.build(),!s.classList.contains("show")&&(document.body.style.overflow="hidden",t=i,e=void 0,o=function(){var t,e=this;return a(this,function(n){switch(n.label){case 0:return[4,r.sleep(20)];case 1:return n.sent(),this.triggerEvent(r.Event.SHOW),this.buildBackdrop(),this.attachEvents(),t=function(){e.triggerEvent(r.Event.SHOWN),s.removeEventListener(r.Event.TRANSITION_END,t)},s.addEventListener(r.Event.TRANSITION_END,t),this.getProp("center")&&this.center(),s.classList.add("show"),[2]}})},new((n=void 0)||(n=Promise))(function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(a,s)}c((o=o.apply(t,e||[])).next())}),!0)},e.prototype.hide=function(){var t=this,e=this.getElement();if(!e.classList.contains("show"))return!1;document.body.style.overflow="visible",this.triggerEvent(r.Event.HIDE),this.detachEvents(),e.classList.add("hide"),e.classList.remove("show");var n=this.getBackdrop();return n&&(n.addEventListener(r.Event.TRANSITION_END,function o(){n&&(document.body.removeChild(n),n.removeEventListener(r.Event.TRANSITION_END,o)),e.classList.remove("hide"),t.triggerEvent(r.Event.HIDDEN),t.elementGenerated&&document.body.removeChild(e)}),n.classList.add("fadeout")),!0},e.prototype.onElementEvent=function(t){if("keyup"!==t.type)if(t.type!==r.Event.START){if(t.type===r.Event.CLICK){var e=t.target,n=e.getAttribute("data-event");n&&this.triggerEvent(n);var o=r.Selector.closest(e,"[data-dismiss]");o&&"modal"===o.getAttribute("data-dismiss")&&this.hide()}}else this.hide();else this.getProp("cancelableKeyCodes").find(function(e){return e===t.keyCode})&&this.hide()},e.prototype.setBackgroud=function(){var t=this.getElement(),e=this.getProp("background");e&&(t.classList.contains("modal-"+e)||t.classList.add("modal-"+e),t.classList.contains("text-white")||t.classList.add("text-white"))},e.prototype.buildButton=function(t){var e=document.createElement("button");return e.setAttribute("type","button"),e.setAttribute("class",t.class||"btn"),e.setAttribute("data-event",t.event),e.innerHTML=t.text,t.dismiss&&e.setAttribute("data-dismiss","modal"),e},e.prototype.buildBackdrop=function(){var t=document.createElement("div");t.setAttribute("data-id",this.getId()),t.classList.add(this.backdropSelector),document.body.appendChild(t)},e.prototype.getBackdrop=function(){return document.querySelector("."+this.backdropSelector+'[data-id="'+this.getId()+'"]')},e.prototype.removeTextBody=function(){var t=this.getElement();t.querySelector(".modal-body").removeChild(t.querySelector(".modal-body").firstChild)},e.prototype.removeFooter=function(){var t=this.getElement(),e=t.querySelector(".modal-footer");t.querySelector(".modal-content").removeChild(e)},e.prototype.center=function(){var t=this.getElement(),e=window.getComputedStyle(t);if(e&&e.height){var n=e.height.slice(0,e.height.length-2),o=window.innerHeight/2-parseFloat(n)/2;t.style.top=o+"px"}},e.prototype.attachEvents=function(){var t=this,e=this.getElement();Array.from(e.querySelectorAll("[data-dismiss], .modal-footer button")||[]).forEach(function(e){return t.registerElement({target:e,event:r.Event.CLICK})});var n=this.getProp("cancelable"),o=this.getBackdrop();n&&o&&(this.registerElement({target:o,event:r.Event.START}),this.registerElement({target:document,event:"keyup"}))},e.prototype.detachEvents=function(){var t=this,e=this.getElement();if(Array.from(e.querySelectorAll("[data-dismiss], .modal-footer button")||[]).forEach(function(e){return t.unregisterElement({target:e,event:r.Event.CLICK})}),this.getProp("cancelable")){var n=this.getBackdrop();this.unregisterElement({target:n,event:r.Event.START}),this.unregisterElement({target:document,event:"keyup"})}},e}(function(){function t(t,e,n){var o=this;this.template="",this.id=null,this.eventHandlers=[],this.registeredElements=[],this.name=t;var i="string"==typeof n.element?document.querySelector(n.element):n.element,a={};if(i){var s=r.Selector.attrConfig(i);s&&(a=s)}this.defaultProps=e,this.props=Object.assign(e,a,n,{element:i}),this.id=this.uid(),this.elementListener=function(t){return o.onBeforeElementEvent(t)},this.setEventsHandler()}return t.prototype.setTemplate=function(t){this.template=t},t.prototype.getTemplate=function(){return this.template},t.prototype.getElement=function(){return this.getProp("element")||null},t.prototype.setElement=function(t){this.props.element=t},t.prototype.getId=function(){return this.id},t.prototype.uid=function(){return Math.random().toString(36).substr(2,10)},t.prototype.getName=function(){return this.name},t.prototype.getProps=function(){return this.props},t.prototype.getProp=function(t){var e=this.defaultProps[t];return void 0!==this.props[t]?this.props[t]:e},t.prototype.updateProps=function(t){var e=Object.assign({},t);delete e.element,this.props=Object.assign(this.props,e)},t.prototype.registerElements=function(t){var e=this;t.forEach(function(t){return e.registerElement(t)})},t.prototype.registerElement=function(t){t.target.addEventListener(t.event,this.elementListener),this.registeredElements.push(t)},t.prototype.unregisterElements=function(){var t=this;this.registeredElements.forEach(function(e){t.unregisterElement(e)})},t.prototype.unregisterElement=function(t){var e=this.registeredElements.findIndex(function(e){return e.target===t.target&&e.event===t.event});e>-1?(t.target.removeEventListener(t.event,this.elementListener),this.registeredElements.splice(e,1)):console.error("Warning! Could not remove element: "+t.target+" with event: "+t.event+".")},t.prototype.triggerEvent=function(t,e,n){var o=this;void 0===e&&(e={}),void 0===n&&(n=!1);var i=t.split(".").reduce(function(t,e,n){return 0===n?e:t+e.charAt(0).toUpperCase()+e.slice(1)}),a="on"+i.charAt(0).toUpperCase()+i.slice(1),s=this.getProps();if(this.eventHandlers.forEach(function(t){"function"==typeof t[i]&&t[i].apply(o,[e]),"function"==typeof t[a]&&s[a].apply(o,[e])}),!n){var c=this.getElement();c?r.Dispatch.elementEvent(c,t,this.name,e):r.Dispatch.winDocEvent(t,this.name,e)}},t.prototype.preventClosable=function(){return!1},t.prototype.destroy=function(){this.unregisterElements()},t.prototype.onElementEvent=function(t){},t.prototype.setEventsHandler=function(){var t=this.getProps(),e=Object.keys(t).reduce(function(e,n){return"function"==typeof t[n]&&(e[n]=t[n]),e},{});Object.keys(e).length>0&&this.eventHandlers.push(e)},t.prototype.onBeforeElementEvent=function(t){this.preventClosable()||this.onElementEvent(t)},t}());s.attachDOM(),t.exports=s},function(t,e,n){"use strict";
/*!
  * Util v2.0.0-alpha.1 (https://github.com/quark-dev/Phonon-Framework)
  * Copyright 2015-2019 qathom
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */var o={elementEvent:function(t,e,n,o){void 0===o&&(o={});var r=e+".ph."+n;t.dispatchEvent(new CustomEvent(r,{detail:o}))},pageEvent:function(t,e,n){void 0===n&&(n={});var o=e+"."+t;window.dispatchEvent(new CustomEvent(o,{detail:n})),document.dispatchEvent(new CustomEvent(o,{detail:n}))},winDocEvent:function(t,e,n){void 0===n&&(n={});var o=t+".ph."+e;window.dispatchEvent(new CustomEvent(o,{detail:n})),document.dispatchEvent(new CustomEvent(o,{detail:n}))}};var r=["mousedown","mousemove","mouseup"],i=!1;"undefined"!=typeof window&&(("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)&&(i=!0,r=["touchstart","touchmove","touchend","touchcancel"]),window.navigator.pointerEnabled?r=["pointerdown","pointermove","pointerup","pointercancel"]:window.navigator.msPointerEnabled&&(r=["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"]));var a=window.document.createElement("div"),s=[{name:"transition",start:"transitionstart",end:"transitionend"},{name:"MozTransition",start:"transitionstart",end:"transitionend"},{name:"msTransition",start:"msTransitionStart",end:"msTransitionEnd"},{name:"WebkitTransition",start:"webkitTransitionStart",end:"webkitTransitionEnd"}].find(function(t){return void 0!==a.style[t.name]}),c=[{name:"animation",start:"animationstart",end:"animationend"},{name:"MozAnimation",start:"animationstart",end:"animationend"},{name:"msAnimation",start:"msAnimationStart",end:"msAnimationEnd"},{name:"WebkitAnimation",start:"webkitAnimationStart",end:"webkitAnimationEnd"}].find(function(t){return void 0!==a.style[t.name]}),u=s?s.start:"transitionstart",l=s?s.end:"transitionend",d=c?c.start:"animationstart",p=c?c.end:"animationend",m={TOUCH_SCREEN:i,NETWORK_ONLINE:"online",NETWORK_OFFLINE:"offline",NETWORK_RECONNECTING:"reconnecting",NETWORK_RECONNECTING_SUCCESS:"reconnect.success",NETWORK_RECONNECTING_FAILURE:"reconnect.failure",SHOW:"show",SHOWN:"shown",HIDE:"hide",HIDDEN:"hidden",HASH:"hash",START:r[0],MOVE:r[1],END:r[2],CANCEL:void 0===r[3]?null:r[3],CLICK:"click",TRANSITION_START:u,TRANSITION_END:l,ANIMATION_START:d,ANIMATION_END:p,ITEM_SELECTED:"itemSelected"};function f(t){return 1===t.nodeType}var v={attrConfig:function(t){if(!t)return null;var e=t.getAttribute("data-config");if(!e)return null;try{return JSON.parse(e)}catch(t){}var n=(e.match(/(\w+)\s*:\s*(["'])?/gim)||[]).map(function(t){return t.replace(/(\w+)\s*:\s*(["'])?/gim,"$1")}),o=e.match(/[^:]+(?=,|$)/gim)||[],r={};return n.forEach(function(t,e){var n=o[e].replace(/ /g,"").replace(/\'|"/g,""),i="";i="true"===n||"false"===n?"true"===n:isNaN(n)?n:parseFloat(n),r[t]=i}),r},removeClasses:function(t,e,n){void 0===n&&(n=null),e.forEach(function(e){var o=n?n+"-"+e:e;t.classList.contains(o)&&t.classList.remove(o)})},closest:function(t,e){Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var n=t;do{if(n.matches(e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null},isElement:f},h={};function E(t){return"string"==typeof t?t.toLowerCase():t.constructor.name.toLowerCase()}var y={addComponent:function(t){var e=E(t);h[e]||(h[e]=[]),h[e].push(t)},getComponent:function(t,e){var n=E(t),o=e.element;if(!o)return null;var r="string"==typeof o?document.querySelector(o):o,i=(h[n]||[]).find(function(t){return t.getElement()===r});return i?(e&&i.updateProps(e),i):null},removeComponent:function(t,e){var n=E(t),o=(h[n]||[]).findIndex(function(t){return t.getElement()===e});-1!==o&&(h[n][o].destroy(),h[n].splice(o,1))}},g=[];function b(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=t[e];r&&r.apply(r,n)}function w(t,e){void 0===e&&(e=!0),function(t,e){void 0===e&&(e=!0);var n=t,o=n.className.split(" "),r=g.find(function(t){return o.indexOf(t.componentClass)>-1});if(r){var i=e?"onAdded":"onRemoved",a=e?[n,y.addComponent]:[n,y.removeComponent];b.apply(void 0,[r,i].concat(a))}}(t,e);for(var n=t.firstElementChild;n;){var o=n.nextElementSibling;f(n)&&w(n,e),n=o}}function C(t){return Array.from(t).filter(function(t){return f(t)&&!t.getAttribute("data-no-boot")})}function S(){new MutationObserver(function(t){return t.forEach(function(t){if("attributes"!==t.type){var e=t.addedNodes,n=t.removedNodes;C(e).forEach(function(t){return w(t,!0)}),C(n).forEach(function(t){return w(t,!1)})}})}).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}!function(){if("MutationObserver"in window)if(document.body)S();else{var t=new MutationObserver(function(){document.body&&(t.disconnect(),S())});t.observe(document,{childList:!0,subtree:!0})}}();var T={subscribe:function(t){g.push(t),document.body&&Array.from(document.body.querySelectorAll("."+t.componentClass)||[]).filter(function(t){return!t.getAttribute("data-no-boot")}).forEach(function(e){b(t,"onAdded",e,y.addComponent)})},getComponent:y.getComponent};"undefined"!=typeof window&&window.addEventListener("error",function(t){console.error("-- Phonon Error --"),console.error("An error has occured! You can pen an issue here: https://github.com/quark-dev/Phonon-Framework/issues"),console.error(JSON.stringify(t))});var N={sleep:function(t){return new Promise(function(e){setTimeout(e,t)})},Event:m,Dispatch:o,Selector:v,Observer:T};t.exports=N}]);
{'fraction_non_alphanumeric': 0.2533476732913233, 'fraction_numerical': 0.008285870092098885, 'mean_word_length': 14.464277348325135, 'pattern_counts': {'":': 7, '<': 132, '<?xml version=': 0, '>': 143, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7293894', 'n_tokens_mistral': 23496, 'n_tokens_neox': 23530, 'n_words': 1190}