text: !function(t){"use strict";function e(t,e){for(var r=0;r<m.registeredControls.length;r++)if(m.registeredControls[r].className===t)return void 0!==e&&(m.registeredControls[r]=e),m.registeredControls[r];return!1}function r(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function n(t,e){return-1!=r(t).indexOf(e)}function o(t,o){if(!("object"===(void 0===t?"undefined":y(t))&&t instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var a=r(t),s=[];if(o)n(t,o)||s.push(e(o));else for(var i=t.className,c=0;c<m.registeredControls.length;c++){var u=m.registeredControls[c];i.indexOf(u.cssClass)>-1&&-1===s.indexOf(u)&&!n(t,u.className)&&s.push(u)}for(var l,c=0,p=s.length;c<p;c++){if(!(l=s[c]))throw new Error("Unable to find a registered component for the given class.");if(!t[l.className]){a.push(l.className),t.setAttribute("data-upgraded",a.join(","));var f=new l.classConstructor(t);m.createdControls.push(f);for(var d=0,h=l.callbacks.length;d<h;d++)l.callbacks[d](t);t[l.className]=f}}}function a(t,r,n){if(void 0===t&&void 0===r)for(var s=0;s<m.registeredControls.length;s++)a(m.registeredControls[s].className,registeredControls[s].cssClass,n);else{var i=t;if(!r){var c=e(i);c&&(r=c.cssClass)}var u;u=n?p(n,r)?[n]:n.querySelectorAll("."+r):document.querySelectorAll("."+r);for(var l=0;l<u.length;l++)o(u[l],i)}}function s(t){var e,r;for(e in t)r=t[e],S.Mutators.hasOwnProperty(e)?S.Mutators[e].call(this,r):this.prototype[e]=r}function i(t){return t.extend=S.extend,t.implement=s,t}function c(){}function l(t,e,r){for(var n in e)if(e.hasOwnProperty(n)){if(r&&-1===_(r,n))continue;"prototype"!==n&&(t[n]=e[n])}}var p=function(t,e){return!!t&&((!t.nodeName||"#text"!==t.nodeName&&"#comment"!==t.nodeName)&&(void 0===t.classList?u._hasClass?u._hasClass(t,e):$(t).hasClass(e):t.classList.contains(e)))},f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},d=function(t,e){if(!e instanceof Array)throw"arguments is not Array";for(var r=0,n=e.length;r<n;r++)if(t==e[r])return!0;return!1},v=function(t,e){if(t.forEach)t.forEach(function(t,r){e(r,t)});else{if(!(t instanceof Object))return;for(var r in t)e(r,t[r])}};try{NodeList.prototype.forEach=Array.prototype.forEach}catch(t){}String.prototype.lengthb=function(){return this.replace(/[^\x00-\xff]/g,"**").length},String.prototype.replaceAll=function(t,e){var r=new RegExp(t,"g");return this.replace(r,e)};var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},m={plugs:{},dataAdapters:{},registeredControls:[],createdControls:[],apply:function(t){if(t)var e=t.el||document.body,r=t.model;"string"==typeof e&&(e=document.body.querySelector(e)),null!=e&&"object"==(void 0===e?"undefined":y(e))||(e=document.body),e.querySelectorAll("[u-meta]").forEach(function(t){if(!t.comp){var e=JSON.parse(t.getAttribute("u-meta"));if(e&&e.type){var n=m.createDataAdapter({el:t,options:e,model:r});n&&(t.adpt=n,t["u-meta"]=n)}}})},addPlug:function(t){var e=t.plug,r=t.name;if(this.plugs||(this.plugs={}),this.plugs[r])throw new Error("plug has exist:"+r);e.compType=r,this.plugs[r]=e},addDataAdapter:function(t){var e=t.adapter,r=t.name;if(this.dataAdapters||(dataAdapters={}),this.dataAdapters[r])throw new Error("dataAdapter has exist:"+r);this.dataAdapters[r]=e},getDataAdapter:function(t){if(t)return this.dataAdapters||(dataAdapters={}),this.dataAdapters[t]},createDataAdapter:function(t){var e=t.options,r=e.type,n=e.id,o=this.dataAdapters[r];if(!o)return null;var a=new o(t);return a.type=r,a.id=n,a},_createComp:function(t){var e=t.options,r=e.type,n=this.plugs[r];if(!n)return null;var o=new n(t);return o.type=r,o},regComp:function(t){var e={classConstructor:t.comp,className:t.compAsString||t.compAsString,cssClass:t.css||t.css,callbacks:[],dependencies:t.dependencies||[]};t.comp.prototype.compType=t.compAsString;for(var r=0;r<this.registeredControls.length;r++){var n=this.registeredControls[r];if(n.cssClass===e.cssClass)throw new Error("The provided cssClass has already been registered: "+n.cssClass);if(n.className===e.className)throw new Error("The provided className has already been registered")}this.registeredControls.push(e)},updateComp:function(t){this._reorderComps();for(var e=0;e<this.registeredControls.length;e++)a(this.registeredControls[e].className,null,t)},_reorderComps:function(){function t(n){if(!d(n,e)){if(n.dependencies.length>0)for(var o=0,a=n.dependencies.length;o<a;o++){var s=r[n.dependencies[o]];t(s)}e.push(n)}}for(var e=[],r={},n=0;n<this.registeredControls.length;n++)r[this.registeredControls[n].className]=this.registeredControls[n];for(var n=0;n<this.registeredControls.length;n++)t(this.registeredControls[n]);this.registeredControls=e}},b=m,w=!0,C={toString:1};for(var A in C)w=null;w&&(w=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]);var E=function(t,e){var r,n=arguments;if(n.length>1)for(var o=1;o<n.length;o++)if(r=n[o],t&&r&&"object"==typeof r){var a,s,i;for(a in r)t[a]=r[a];if(w)for(s=w.length;s--;)i=w[s],r.hasOwnProperty&&r.hasOwnProperty(i)&&(t[i]=r[i])}return t};Object.assign||(Object.assign=E);var S=function(t){if(!(this instanceof S)&&x(t))return i(t)};S.create=function(t,e){function r(){var e;return t.apply(this,arguments),this.constructor===r&&this.initialize&&(e=this.initialize.apply(this,arguments)),e||this}return x(t)||(e=t,t=null),e||(e={}),t||(t=e.Extends||S),e.Extends=t,t!==S&&l(r,t,t.StaticsWhiteList),s.call(r,e),i(r)},S.extend=function(t){return t||(t={}),t.Extends=this,S.create(t)},S.Mutators={Extends:function(t){var e=this.prototype,r=k(t.prototype);l(r,e),r.constructor=this,this.prototype=r,this.superclass=t.prototype},Implements:function(t){O(t)||(t=[t]);for(var e,r=this.prototype;e=t.shift();)l(r,e.prototype||e)},Statics:function(t){l(this,t)}};var k=Object.__proto__?function(t){return{__proto__:t}}:function(t){return c.prototype=t,new c},N=Object.prototype.toString,O=Array.isArray||function(t){return"[object Array]"===N.call(t)},x=function(t){return"[object Function]"===N.call(t)},_=function(t,e){if(Array.prototype.indexOf&&t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},j={};j.special_keys={27:"esc",9:"tab",32:"space",13:"enter",8:"backspace",145:"scroll",20:"capslock",144:"numlock",19:"pause",45:"insert",36:"home",46:"del",35:"end",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12"},j.shift_nums={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},j.add=function(t,e,r){x(e)&&(r=e,e={});var n={},o={type:"keydown",propagate:!1,disableInInput:!1,target:document.body,checkParent:!0},a=this;n=E(n,o,e||{}),t=t.toLowerCase();var s=function(t){var e=this;if(e=3==e.nodeType?e.parentNode:e,n.disableInInput){var r=e;if("INPUT"==r.tagName||"TEXTAREA"==r.tagName)return}var o=t.which,s=t.type,i=String.fromCharCode(o).toLowerCase(),c=a.special_keys[o],u=t.shiftKey,l=t.ctrlKey,p=t.altKey,f=null;if(n.checkParent)for(;!e.hotkeys&&e.parentNode;)e=e.parentNode;var d=e.hotkeys.events[s].callbackMap;if(u||l||p){var h="";p&&(h+="alt+"),l&&(h+="ctrl+"),u&&(h+="shift+"),f=d[h+c]||d[h+i]||d[h+a.shift_nums[i]]}else f=d[c]||d[i];if(f&&(f.cb(t),!f.propagate))return t.stopPropagation(),t.preventDefault(),!1},i=n.target.hotkeys;return i||(n.target.hotkeys=i={events:{}}),i.events[n.type]||(i.events[n.type]={callbackMap:{}},on(n.target,n.type,s)),i.events[n.type].callbackMap[t]={cb:r,propagate:n.propagate},j},j.remove=function(t,e){e=e||{},target=e.target||document.body,type=e.type||"keydown",t=t.toLowerCase(),delete target.hotkeys.events[type].callbackMap[t]},j.scan=function(t,e){t=t||document.body,t.querySelectorAll("[u-enter]").forEach(function(r){var n=r.getAttribute("u-enter");if(n)if("#"==n.substring(0,1))j.add("enter",{target:this},function(){var e=t.querySelector(n);e&&e.focus()});else{e=e||window;var o=h(e,n);j.add("enter",{target:this},function(){o.call(this)})}}),t.querySelectorAll("[u-hotkey]").forEach(function(t){var e=t.getAttribute("u-hotkey");e&&j.add(e,function(){t.click()})})};var j=j,T=function t(){g(this,t),this.init=L,this.dataTables={}},L=function(t,e,r){var n=this;e=e||document.body,f(e)||(e=[e]),this.elements=e,this.comps=[],v(this.elements,function(e,o){"string"==typeof o&&(o=document.querySelector(o)),o&&o.querySelectorAll("[u-meta]").forEach(function(e){var r=JSON.parse(e.getAttribute("u-meta"));if(r.type=r.type||"string",r&&r.type){n.adjustFunc&&n.adjustFunc.call(n,r);var o=b.createDataAdapter({el:e,options:r,model:t,app:n});e["u-meta"]=o,n.comps.push(o)}}),j&&j.scan(o),void 0!==r&&1!=r||ko.applyBindings(t,o),b.updateComp(o)}),P(this,t)},P=function(t,e){for(var r in e)e[r]&&e[r]instanceof u.DataTable&&(e[r].id=r,e[r].parent=e,t.addDataTable(e[r]))},q=function(){var t=new T;if(arguments.length>0){var e=arguments[0];t.init(e.model,e.el)}return t};window.App=T;var D={createApp:q,compMgr:b};document.readyState&&"complete"===document.readyState?b.updateComp():function(t,e,r,n){if(t){if(arguments.length<4)n=r,r=void 0;else var o=function(e){if(e){t.querySelectorAll(r).forEach(function(t){t==e.target&&n.call(e.target,e)})}};if(t.uEvent||(t.uEvent={}),t.uEvent[e]){var a=r?o:n,s=!1;t.uEvent[e].forEach(function(t){t==a&&(s=!0)}),s||t.uEvent[e].push(r?o:n)}else t.uEvent[e]=[r?o:n],u.event&&u.event[e]&&u.event[e].setup&&u.event[e].setup.call(t),t.uEvent[e+"fn"]=function(r){r||(r="undefined"!=typeof event&&event?event:window.event),t.uEvent[e].forEach(function(e){try{r.target=r.target||r.srcElement}catch(t){}e&&e.call(t,r)})},t.addEventListener?t.addEventListener(e,t.uEvent[e+"fn"]):t.attachEvent?t.attachEvent("on"+e,t.uEvent[e+"fn"]):t["on"+e]=t.uEvent[e+"fn"]}}(window,"load",function(){b.updateComp()}),E(D,window.u||{}),window.u=D,window.iweb={},window.iweb.browser=window.u,t.u=D}(this.bar=this.bar||{});
  