kero
Version:
2 lines • 86.1 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var n in a)("object"==typeof exports?exports:e)[n]=a[n]}}(this,function(){return function(e){function t(n){if(a[n])return a[n].exports;var r=a[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="",t(0)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataTable=t.u=void 0;var n=a(1),r=a(23),s=a(28),o=a(54),i=a(60);window.App=n.App,window.processXHRError=n.processXHRError,window.ServerEvent=r.ServerEvent,window.DataTable=s.DataTable,window.Page=o.Page,window.Row=i.Row,window.u=window.u||{},t.u=u=window.u,u.createApp=n.createApp,u.DataTable=s.DataTable,u.Row=i.Row,t.u=u,t.DataTable=s.DataTable},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=t.processXHRError=t.App=void 0;var r=a(2),s=a(12),o=a(13),i=a(14),u=a(15),l=a(16),c=a(17),d=a(18),f=a(20),h=a(21),p=a(22),g=function w(){n(this,w),this.init=r.init,this.dataTables={},this.adjustMetaFunc=s.adjustMetaFunc,this.addDataTable=o.addDataTable,this.getDataTable=o.getDataTable,this.getDataTables=o.getDataTables,this.createComp=i.createComp,this.getComp=i.getComp,this.getCompsByDataTable=i.getCompsByDataTable,this.getCompsByType=i.getCompsByType,this.getComps=i.getComps,this.showComp=i.showComp,this.compsValidate=u.compsValidate,this.compsValidateMultiParam=u.compsValidateMultiParam,this.setUserCache=l.setUserCache,this.getUserCache=l.getUserCache,this.removeUserCache=l.removeUserCache,this.setCache=l.setCache,this.getCache=l.getCache,this.removeCache=l.removeCache,this.setSessionCache=l.setSessionCache,this.getSessionCache=l.getSessionCache,this.removeSessionCache=l.removeSessionCache,this.getEnvironment=c.getEnvironment,this.setClientAttribute=c.setClientAttribute,this.getClientAttribute=c.getClientAttribute,this.ajax=d.ajax,this.serverEvent=h.serverEvent,this.setEnable=p.setEnable},v=function(){var e=new g;if(arguments.length>0){var t=arguments[0];e.init(t.model,t.el)}return e};t.App=g,t.processXHRError=f.processXHRError,t.createApp=v},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;var n=a(3),r=a(9),s=a(10),o=function(e,t,a){var o=this;t=t||document.body,(0,r.isArray)(t)||(t=[t]),this.elements=t,(0,r.each)(this.elements,function(t,r){"string"==typeof r&&(r=document.querySelector(r)),r&&r.querySelectorAll("[u-meta]").forEach(function(t){var a=JSON.parse(t.getAttribute("u-meta"));if(a.type=a.type||"string",a&&a.type){o.adjustFunc&&o.adjustFunc.call(o,a);var r=n.compMgr.createDataAdapter({el:t,options:a,model:e,app:o});t["u-meta"]=r}}),s.hotkeys&&s.hotkeys.scan(r),"undefined"!=typeof a&&1!=a||ko.applyBindings(e,r),n.compMgr.updateComp(r)}),i(this,e)},i=function(e,t){for(var a in t)t[a]&&t[a]instanceof u.DataTable&&(t[a].id=a,t[a].parent=t,e.addDataTable(t[a]))};t.init=o},function(e,t,a){"use strict";function n(e,t){for(var a=0;a<c.registeredControls.length;a++)if(c.registeredControls[a].className===e)return"undefined"!=typeof t&&(c.registeredControls[a]=t),c.registeredControls[a];return!1}function r(e){var t=e.getAttribute("data-upgraded");return null===t?[""]:t.split(",")}function s(e,t){var a=r(e);return a.indexOf(t)!=-1}function o(e,t){if(!("object"===("undefined"==typeof e?"undefined":u(e))&&e instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var a=r(e),o=[];if(t)s(e,t)||o.push(n(t));else for(var i=e.className,l=0;l<c.registeredControls.length;l++){var d=c.registeredControls[l];i.indexOf(d.cssClass)>-1&&o.indexOf(d)===-1&&!s(e,d.className)&&o.push(d)}for(var f,l=0,h=o.length;l<h;l++){if(f=o[l],!f)throw new Error("Unable to find a registered component for the given class.");if(!e[f.className]){a.push(f.className),e.setAttribute("data-upgraded",a.join(","));var p=new f.classConstructor(e);c.createdControls.push(p);for(var g=0,v=f.callbacks.length;g<v;g++)f.callbacks[g](e);e[f.className]=p}}}function i(e,t,a){if("undefined"==typeof e&&"undefined"==typeof t)for(var r=0;r<c.registeredControls.length;r++)i(c.registeredControls[r].className,registeredControls[r].cssClass,a);else{var s=e;if(!t){var u=n(s);u&&(t=u.cssClass)}var d;d=a?(0,l.hasClass)(a,t)?[a]:a.querySelectorAll("."+t):document.querySelectorAll("."+t);for(var f=0;f<d.length;f++)o(d[f],s)}}Object.defineProperty(t,"__esModule",{value:!0}),t.compMgr=void 0;var u="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},l=a(4),c={plugs:{},dataAdapters:{},registeredControls:[],createdControls:[],apply:function(e){if(e)var t=e.el||document.body,a=e.model;"string"==typeof t&&(t=document.body.querySelector(t)),null!=t&&"object"==("undefined"==typeof t?"undefined":u(t))||(t=document.body);var n=t.querySelectorAll("[u-meta]");n.forEach(function(e){if(!e.comp){var t=JSON.parse(e.getAttribute("u-meta"));if(t&&t.type){var n=c.createDataAdapter({el:e,options:t,model:a});n&&(e.adpt=n,e["u-meta"]=n)}}})},addPlug:function(e){var t=e.plug,a=e.name;if(this.plugs||(this.plugs={}),this.plugs[a])throw new Error("plug has exist:"+a);t.compType=a,this.plugs[a]=t},addDataAdapter:function(e){var t=e.adapter,a=e.name;if(this.dataAdapters||(dataAdapters={}),this.dataAdapters[a])throw new Error("dataAdapter has exist:"+a);this.dataAdapters[a]=t},getDataAdapter:function(e){if(e)return this.dataAdapters||(dataAdapters={}),this.dataAdapters[e]},createDataAdapter:function(e){var t=e.options,a=t.type,n=t.id,r=this.dataAdapters[a];if(!r)return null;var s=new r(e);return s.type=a,s.id=n,s},_createComp:function(e){var t=e.options,a=t.type,n=this.plugs[a];if(!n)return null;var r=new n(e);return r.type=a,r},regComp:function(e){var t={classConstructor:e.comp,className:e.compAsString||e.compAsString,cssClass:e.css||e.css,callbacks:[]};e.comp.prototype.compType=e.compAsString;for(var a=0;a<this.registeredControls.length;a++){var n=this.registeredControls[a];if(n.cssClass===t.cssClass)throw new Error("The provided cssClass has already been registered: "+n.cssClass);if(n.className===t.className)throw new Error("The provided className has already been registered")}this.registeredControls.push(t)},updateComp:function(e){for(var t=0;t<this.registeredControls.length;t++)i(this.registeredControls[t].className,null,e)}},d=c;t.compMgr=d},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showPanelByEle=t.getScroll=t.getOffset=t.makeModal=t.makeDOM=t.getZIndex=t.getStyle=t.wrap=t.css=t.closest=t.toggleClass=t.hasClass=t.removeClass=t.addClass=void 0;var n,r=a(5),s=function(e,t){return"undefined"==typeof e.classList?u._addClass&&u._addClass(e,t):e.classList.add(t),this},o=function(e,t){return"undefined"==typeof e.classList?u._removeClass&&u._removeClass(e,t):e.classList.remove(t),this},i=function(e,t){return!!e&&((!e.nodeName||"#text"!==e.nodeName&&"#comment"!==e.nodeName)&&("undefined"==typeof e.classList?!!u._hasClass&&u._hasClass(e,t):e.classList.contains(t)))},l=function(e,t){return"undefined"==typeof e.classList?u._toggleClass(e,t):e.classList.toggle(t)},c=function(e,t){for(var a=e;null!=a&&!i(a,t)&&a!=document.body;)a=a.parentNode;return a==document.body?null:a},d=function(e,t,a){if(t instanceof Object)for(var n in t){var r=t[n];["width","height","top","bottom","left","right"].indexOf(n)>-1&&isNumber(r)&&(r+="px"),e.style[n]=r}else{if(!(arguments.length>2))return h(e,t);e.style[t]=a}},f=function(e,t){var a=g(t);e.parentNode.insertBefore(a,e),a.appendChild(e)},h=function(e,t){var a;return a=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,void 0!==a[t]?a[t]:""},p=function(){return n||(n=2e3),n++},g=function(e){var t=document.createElement("div");t.innerHTML=e;var a=t.children[0];return a},v=function(e,t){var a=document.createElement("div");return s(a,"u-overlay"),a.style.zIndex=p(),t&&t!=document.body?(s(a,"hasPar"),t.appendChild(a)):document.body.appendChild(a),e.style.zIndex=p(),(0,r.on)(a,"click",function(e){(0,r.stopEvent)(e)}),a},w=function b(e,t){return t||(t={},t.top=0,t.left=0),e==document.body?t:(t.top+=e.offsetTop,t.left+=e.offsetLeft,e.offsetParent?b(e.offsetParent,t):t)},m=function _(e,t){return t||(t={},t.top=0,t.left=0),e==document.body?(t.top+=e.scrollTop||document.documentElement.scrollTop,t.left+=e.scrollLeft||document.documentElement.scrollLeft,t):(t.top+=e.scrollTop,t.left+=e.scrollLeft,e.parentNode?_(e.parentNode,t):t)},y=function(e){var t=(e.ele,e.panel),a=e.position,a=(document.body.clientWidth,document.body.clientHeight,a||"top"),n=e.ele.getBoundingClientRect(),r=e.panel.getBoundingClientRect(),s=n.width,o=n.height,i=n.left,u=n.top,l=r.width,c=r.height,d=document.documentElement.clientWidth,f=document.documentElement.clientHeight;"left"==a?(i-=l,u+=(o-c)/2):"right"==a?(i+=s,u+=(o-c)/2):"top"==a||"topCenter"==a?(i+=(s-l)/2,u-=c):"bottom"==a||"bottomCenter"==a?(i+=(s-l)/2,u+=o):"bottomLeft"==a&&(i=i,u+=o),i+l>d&&(i=d-l-10),i<0&&(i=0),u+c>f&&(u=f-c-10),u<0&&(u=0),t.style.left=i+"px",t.style.top=u+"px"};t.addClass=s,t.removeClass=o,t.hasClass=i,t.toggleClass=l,t.closest=c,t.css=d,t.wrap=f,t.getStyle=h,t.getZIndex=p,t.makeDOM=g,t.makeModal=v,t.getOffset=w,t.getScroll=m,t.showPanelByEle=y},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.event=t.stopEvent=t.trigger=t.off=t.on=void 0;var n=a(6),r={};r.event={};var s=n.env.hasTouch?"touchstart":"mousedown",o=n.env.hasTouch?"touchend":"mouseup",i=n.env.hasTouch?"touchmove":"mousemove";r.event.tap={tapholdThreshold:750,emitTapOnTaphold:!0,touchstartFun:function(){d(this,"vmousedown")},touchendFun:function(){d(this,"vmouseup"),d(this,"vclick")},setup:function(){var e=this,t=!1;l(e,"vmousedown",function(a){function n(){clearTimeout(i)}function s(){n(),c(e,"vclick"),c(e,"vmouseup"),c(document,"vmousecancel")}function o(a){s(),t||u!==a.target?t&&a.preventDefault():d(e,"tap")}if(t=!1,a.which&&1!==a.which)return!1;var i,u=a.target;l(e,"vmouseup",n),l(e,"vclick",o),l(document,"vmousecancel",s),i=setTimeout(function(){r.event.tap.emitTapOnTaphold||(t=!0),d(e,"taphold"),s()},r.event.tap.tapholdThreshold)}),l(e,"touchstart",r.event.tap.touchstartFun),l(e,"touchend",r.event.tap.touchendFun)},teardown:function(){c(thisObject,"vmousedown"),c(thisObject,"vclick"),c(thisObject,"vmouseup"),c(document,"vmousecancel")}},r.event.taphold=r.event.tap,r.event.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var t=window.pageXOffset,a=window.pageYOffset,n=e.clientX,r=e.clientY;return 0===e.pageY&&Math.floor(r)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(n)>Math.floor(e.pageX)?(n-=t,r-=a):(r<e.pageY-a||n<e.pageX-t)&&(n=e.pageX-t,r=e.pageY-a),{x:n,y:r}},start:function(e){var t=e.touches?e.touches[0]:e,a=r.event.swipe.getLocation(t);return{time:(new Date).getTime(),coords:[a.x,a.y],origin:e.target}},stop:function(e){var t=e.touches?e.touches[0]:e,a=r.event.swipe.getLocation(t);return{time:(new Date).getTime(),coords:[a.x,a.y]}},handleSwipe:function(e,t,a,n){if(t.time-e.time<r.event.swipe.durationThreshold&&Math.abs(e.coords[0]-t.coords[0])>r.event.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-t.coords[1])<r.event.swipe.verticalDistanceThreshold){var s=e.coords[0]>t.coords[0]?"swipeleft":"swiperight";return d(a,"swipe"),d(a,s),!0}return!1},eventInProgress:!1,setup:function(){var e,t=this,a={};e=t["mobile-events"],e||(e={length:0},t["mobile-events"]=e),e.length++,e.swipe=a,a.start=function(e){if(!r.event.swipe.eventInProgress){r.event.swipe.eventInProgress=!0;var n,s=r.event.swipe.start(e),u=e.target,d=!1;a.move=function(e){s&&(n=r.event.swipe.stop(e),d||(d=r.event.swipe.handleSwipe(s,n,t,u),d&&(r.event.swipe.eventInProgress=!1)),Math.abs(s.coords[0]-n.coords[0])>r.event.swipe.scrollSupressionThreshold&&e.preventDefault())},a.stop=function(){d=!0,r.event.swipe.eventInProgress=!1,c(document,i,a.move),a.move=null},l(document,i,a.move),l(document,o,a.stop)}},l(t,s,a.start)},teardown:function(){var e,t;e=thisObject["mobile-events"],e&&(t=e.swipe,delete e.swipe,e.length--,0===e.length&&(thisObject["mobile-events"]=null)),t&&(t.start&&c(thisObject,s,t.start),t.move&&c(document,i,t.move),t.stop&&c(document,o,t.stop))}},r.event.swipeleft=r.event.swipe,r.event.swiperight=r.event.swipe;var u=r.event,l=function(e,t,a,n){if(e){if(arguments.length<4)n=a,a=void 0;else var s=function(t){if(t){var r=e.querySelectorAll(a);r.forEach(function(e){e==t.target&&n.call(t.target,t)})}};if(e.uEvent||(e.uEvent={}),e.uEvent[t]){var o=a?s:n,i=!1;e.uEvent[t].forEach(function(e){e==o&&(i=!0)}),i||e.uEvent[t].push(a?s:n)}else e.uEvent[t]=[a?s:n],r.event&&r.event[t]&&r.event[t].setup&&r.event[t].setup.call(e),e.uEvent[t+"fn"]=function(a){a||(a="undefined"!=typeof u&&u?u:window.event),e.uEvent[t].forEach(function(t){try{a.target=a.target||a.srcElement}catch(a){}t&&t.call(e,a)})},e.addEventListener?e.addEventListener(t,e.uEvent[t+"fn"]):e.attachEvent?e.attachEvent("on"+t,e.uEvent[t+"fn"]):e["on"+t]=e.uEvent[t+"fn"]}},c=function(e,t,a){if(a)return void(e&&e.uEvent&&e.uEvent[t]&&e.uEvent[t].forEach(function(n,r){n==a&&e.uEvent[t].splice(r,1)}));var n=e.uEvent[t+"fn"];e.removeEventListener?e.removeEventListener(t,n):e.removeEvent?e.removeEvent("on"+t,n):delete e["on"+t],r.event&&r.event[t]&&r.event[t].teardown&&r.event[t].teardown.call(e),e.uEvent[t]=void 0,e.uEvent[t+"fn"]=void 0},d=function(e,t){e.uEvent&&e.uEvent[t]&&e.uEvent[t+"fn"]()},f=function(e){"undefined"!=typeof e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e&&e.preventDefault?e.preventDefault():window.event.returnValue=!1)};t.on=l,t.off=c,t.trigger=d,t.stopEvent=f,t.event=u},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;var n=a(7),r={};(0,n.extend)(r,{isIE:!1,isFF:!1,isOpera:!1,isChrome:!1,isSafari:!1,isWebkit:!1,isIE8_BEFORE:!1,isIE8:!1,isIE8_CORE:!1,isIE9:!1,isIE9_CORE:!1,isIE10:!1,isIE10_ABOVE:!1,isIE11:!1,isIOS:!1,isIphone:!1,isIPAD:!1,isStandard:!1,version:0,isWin:!1,isUnix:!1,isLinux:!1,isAndroid:!1,isMac:!1,hasTouch:!1,isMobile:!1}),function(){var e,t,a=navigator.userAgent,n=/(msie\s|trident.*rv:)([\w.]+)/,s=/(firefox)\/([\w.]+)/,o=/(opera).+version\/([\w.]+)/,i=/(chrome)\/([\w.]+)/,u=/version\/([\w.]+).*(safari)/,l=a.toLowerCase(),c={browser:"",version:""},d=n.exec(l);if(null!=d&&(c={browser:"IE",version:d[2]||"0"}),d=s.exec(l),null!=d&&(c={browser:d[1]||"",version:d[2]||"0"}),d=o.exec(l),null!=d&&(c={browser:d[1]||"",version:d[2]||"0"}),d=i.exec(l),null!=d&&(c={browser:d[1]||"",version:d[2]||"0"}),d=u.exec(l),null!=d&&(c={browser:d[2]||"",version:d[1]||"0"}),null!=d&&(c={browser:"",version:"0"}),(t=l.match(/opera.([\d.]+)/))?r.isOpera=!0:"IE"==c.browser&&11==c.version?(r.isIE11=!0,r.isIE=!0):(t=l.match(/chrome\/([\d.]+)/))?(r.isChrome=!0,r.isStandard=!0):(t=l.match(/version\/([\d.]+).*safari/))?(r.isSafari=!0,r.isStandard=!0):(t=l.match(/gecko/))?(r.isFF=!0,r.isStandard=!0):(t=l.match(/msie ([\d.]+)/))?r.isIE=!0:(t=l.match(/firefox\/([\d.]+)/))&&(r.isFF=!0,r.isStandard=!0),l.match(/webkit\/([\d.]+)/)&&(r.isWebkit=!0),l.match(/ipad/i)&&(r.isIOS=!0,r.isIPAD=!0,r.isStandard=!0),l.match(/iphone/i)&&(r.isIOS=!0,r.isIphone=!0),"Mac68K"!=navigator.platform&&"MacPPC"!=navigator.platform&&"Macintosh"!=navigator.platform&&"MacIntel"!=navigator.platform||(r.isMac=!0),"Win32"!=navigator.platform&&"Windows"!=navigator.platform&&"Win64"!=navigator.platform||(r.isWin=!0),"X11"!=navigator.platform||r.isWin||r.isMac||(r.isUnix=!0),String(navigator.platform).indexOf("Linux")>-1&&(r.isLinux=!0),(l.indexOf("Android")>-1||l.indexOf("android")>-1||l.indexOf("Adr")>-1||l.indexOf("adr")>-1)&&(r.isAndroid=!0),r.version=e&&c.version?c.version:0,r.isIE){var f=parseInt(r.version),h=document.documentMode;null==h?6!=f&&7!=f||(r.isIE8_BEFORE=!0):(7==h?r.isIE8_BEFORE=!0:8==h?r.isIE8=!0:9==h?(r.isIE9=!0,r.isSTANDARD=!0):10==h?(r.isIE10=!0,r.isSTANDARD=!0,r.isIE10_ABOVE=!0):r.isSTANDARD=!0,8==f?r.isIE8_CORE=!0:9==f?r.isIE9_CORE=!0:11==c.version&&(r.isIE11=!0))}"ontouchend"in document&&(r.hasTouch=!0),(r.isIOS||r.isAndroid)&&(r.isMobile=!0)}();var s=r;t.env=s},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extend=void 0;var n="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},r=a(8),s=function(e,t){var a,s=arguments;if(s.length>1)for(var o=1;o<s.length;o++)if(a=s[o],e&&a&&"object"===("undefined"==typeof a?"undefined":n(a))){var i,u,l;for(i in a)e[i]=a[i];if(r.enumerables)for(u=r.enumerables.length;u--;)l=r.enumerables[u],a.hasOwnProperty&&a.hasOwnProperty(l)&&(e[l]=a[l])}return e};t.extend=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="i_languages",n="u_theme",r="u_locale",s="usercode",o=!0,i={toString:1};Object.prototype.toString;for(var u in i)t.enumerables=o=null;o&&(t.enumerables=o=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]),t.enumerables=o,t.U_LANGUAGES=a,t.U_THEME=n,t.U_LOCALE=r,t.U_USERCODE=s},function(e,t){"use strict";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},n=function(e){var t=function(){};return t.prototype=e,new t},r=function(e,t,a){try{e.call(t,a)}catch(n){}},s=function(e,t){if(!t||"function"==typeof t)return t;if("function"==typeof e[t])return e[t];if("function"==typeof window[t])return window[t];if(t.indexOf(".")!=-1){var a=o(e,t);if("function"==typeof a)return a;if(a=o(window,t),"function"==typeof a)return a}return t},o=function(e,t){if(t){if("object"==("undefined"==typeof t?"undefined":a(t)))return t;for(var n=t.split("."),r=e,s=0;s<n.length;s++)if(r=r[n[s]],!r)return null;return r}},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date},u=function(e){return e-parseFloat(e)+1>=0},l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=function(e){var t;for(t in e)return!1;return!0},d=function(e,t){if(!t instanceof Array)throw"arguments is not Array";for(var a=0,n=t.length;a<n;a++)if(e==t[a])return!0;return!1},f=function(e){return window.HTMLElement?e instanceof HTMLElement:e&&e.tagName&&1===e.nodeType},h=function(e,t){if(e.forEach)e.forEach(function(e,a){t(a,e)});else{if(!(e instanceof Object))return;for(var a in e)t(a,e[a])}};NodeList.prototype.forEach=Array.prototype.forEach,String.prototype.lengthb=function(){var e=this.replace(/[^\x00-\xff]/g,"**");return e.length},String.prototype.replaceAll=function(e,t){var a=new RegExp(e,"g");return this.replace(a,t)},t.createShellObject=n,t.execIgnoreError=r,t.getFunction=s,t.getJSObject=o,t.isDate=i,t.isNumber=u,t.isArray=l,t.isEmptyObject=c,t.inArray=d,t.isDomElement=f,t.each=h},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hotkeys=void 0;var n=a(11),r=a(7),s=(a(9),{});s.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"},s.shift_nums={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},s.add=function(e,t,a){(0,n.isFunction)(t)&&(a=t,t={});var o={},i={type:"keydown",propagate:!1,disableInInput:!1,target:document.body,checkParent:!0},u=this;o=(0,r.extend)(o,i,t||{}),e=e.toLowerCase();var l=function(e){var t=this;if(t=3==t.nodeType?t.parentNode:t,o.disableInInput){var a=t;if("INPUT"==a.tagName||"TEXTAREA"==a.tagName)return}var n=e.which,r=e.type,s=String.fromCharCode(n).toLowerCase(),i=u.special_keys[n],l=e.shiftKey,c=e.ctrlKey,d=e.altKey,f=null;if(o.checkParent)for(;!t.hotkeys&&t.parentNode;)t=t.parentNode;var h=t.hotkeys.events[r].callbackMap;if(l||c||d){var p="";d&&(p+="alt+"),c&&(p+="ctrl+"),l&&(p+="shift+"),f=h[p+i]||h[p+s]||h[p+u.shift_nums[s]]}else f=h[i]||h[s];if(f&&(f.cb(e),!f.propagate))return e.stopPropagation(),e.preventDefault(),!1},c=o.target.hotkeys;return c||(o.target.hotkeys=c={events:{}}),c.events[o.type]||(c.events[o.type]={callbackMap:{}},on(o.target,o.type,l)),c.events[o.type].callbackMap[e]={cb:a,propagate:o.propagate},s},s.remove=function(e,t){t=t||{},target=t.target||document.body,type=t.type||"keydown",e=e.toLowerCase(),delete target.hotkeys.events[type].callbackMap[e]},s.scan=function(e,t){e=e||document.body,e.querySelectorAll("[u-enter]").forEach(function(a){var n=a.getAttribute("u-enter");if(n)if("#"==n.substring(0,1))s.add("enter",{target:this},function(){var t=e.querySelector(n);t&&t.focus()});else{t=t||window;var r=h(t,n);s.add("enter",{target:this},function(){r.call(this)})}}),e.querySelectorAll("[u-hotkey]").forEach(function(e){var t=e.getAttribute("u-hotkey");t&&s.add(t,function(){e.click()})})};var s=s;t.hotkeys=s},function(e,t){"use strict";function a(e){var t,a;for(t in e)a=e[t],o.Mutators.hasOwnProperty(t)?o.Mutators[t].call(this,a):this.prototype[t]=a}function n(e){return e.extend=o.extend,e.implement=a,e}function r(){}function s(e,t,a){for(var n in t)if(t.hasOwnProperty(n)){if(a&&d(a,n)===-1)continue;"prototype"!==n&&(e[n]=t[n])}}Object.defineProperty(t,"__esModule",{value:!0});var o=function f(e){if(!(this instanceof f)&&c(e))return n(e)};o.create=function(e,t){function r(){var t;return e.apply(this,arguments),this.constructor===r&&this.initialize&&(t=this.initialize.apply(this,arguments)),t?t:this}return c(e)||(t=e,e=null),t||(t={}),e||(e=t.Extends||o),t.Extends=e,e!==o&&s(r,e,e.StaticsWhiteList),a.call(r,t),n(r)},o.extend=function(e){return e||(e={}),e.Extends=this,o.create(e)},o.Mutators={Extends:function(e){var t=this.prototype,a=i(e.prototype);s(a,t),a.constructor=this,this.prototype=a,this.superclass=e.prototype},Implements:function(e){l(e)||(e=[e]);for(var t,a=this.prototype;t=e.shift();)s(a,t.prototype||t)},Statics:function(e){s(this,e)}};var i=Object.__proto__?function(e){return{__proto__:e}}:function(e){return r.prototype=e,new r},u=Object.prototype.toString,l=Array.isArray||function(e){return"[object Array]"===u.call(e)},c=function(e){return"[object Function]"===u.call(e)},d=function(e,t){if(Array.prototype.indexOf&&e.indexOf)return e.indexOf(t);for(var a=0,n=e.length;a<n;a++)if(e[a]===t)return a;return-1};t.Class=o,t.isFunction=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){this.adjustFunc=e};t.setAdjustMetaFunc=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return this.dataTables[e.id]=e,this},n=function(e){return this.dataTables[e]},r=function(){return this.dataTables};t.addDataTable=a,t.getDataTable=n,t.getDataTables=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showComp=t.getComps=t.getCompsByType=t.getCompsByDataTable=t.getComp=t.createComp=void 0;var n=a(3),r=a(9),s=a(4),o=function(e,t){var a=JSON.parse(e.getAttribute("u-meta"));if(a&&a.type){var r=n.compMgr.createDataAdapter({el:e,options:a,model:t,app:this});e["u-meta"]=r}return r},i=function(e){var t=null;return(0,r.each)(this.elements,function(a,n){"string"==typeof n&&(n=document.querySelector(n)),n&&n.querySelectorAll("[u-meta]").forEach(function(a){if(a["u-meta"]){var n=a["u-meta"];if(n.id===e)return t=n,!1}})}),t},u=function(e,t){for(var a=this.getComps(t),n=[],r=0;r<a.length;r++)(a[r].dataModel&&a[r].dataModel.id==e||a[r].dataTable&&a[r].dataTable.id==e)&&n.push(a[r]);return n},l=function(e,t){var a=t?t:this.elements,n=[];return(0,r.isArray)(a)||(a=[a]),(0,r.each)(a,function(t,a){a&&a.querySelectorAll("[u-meta]").forEach(function(t){if(t["u-meta"]){var a=t["u-meta"];a&&a.type==e&&n.push(a)}})}),n},c=function(e){var t=e?e:this.elements,a=[];return"string"==typeof t&&(t=document.querySelectorAll(t)),(0,r.isArray)(t)||t instanceof NodeList||(t=[t]),(0,r.each)(t,function(e,t){t&&t.querySelectorAll("[u-meta]").forEach(function(e){if(e["u-meta"]){var t=e["u-meta"];t&&a.push(t)}})}),a},d=function(e){var t=e.element,a=(0,s.getOffset)(t),n=(0,s.getScroll)(t),r=a.top-n.top,o=document.body.clientHeight,i=document.body.scrollTop;(r>o||r<0)&&(document.body.scrollTop=i+r)};t.createComp=o,t.getComp=i,t.getCompsByDataTable=u,t.getCompsByType=l,t.getComps=c,t.showComp=d},function(e,t){"use strict";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},n=function(e,t){for(var n=this.getComps(e),r=!0,s=[],o=0;o<n.length;o++)if(n[o].doValidate){var i=n[o].doValidate({trueValue:!0,showMsg:!0});i="object"===("undefined"==typeof i?"undefined":a(i))?i.passed:i,r=i&&r,i||s.push(n[o])}return t?s:r},r=function(e){for(var t=e.element,a=this.getComps(t),n=!0,r=e.showMsg,s=new Array,o=0;o<a.length;o++)a[o].doValidate&&(result=a[o].doValidate({trueValue:!0,showMsg:r}),n=result.passed&&n,result.passed||s.push(result));return{passed:n,notPassedArr:s}};t.compsValidate=n,t.compsValidateMultiParam=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){var a=this.getEnvironment().usercode;a&&localStorage.setItem(a+e,t)},n=function(e){var t=this.getEnvironment().usercode;if(t)return localStorage.getItem(t+e)},r=function(e){var t=this.getEnvironment().usercode;t&&localStorage.removeItem(t+e)},s=function(e,t){localStorage.setItem(e,t)},o=function(e){return localStorage.getItem(e)},i=function(e){localStorage.removeItem(e)},u=function(e,t){sessionStorage.setItem(e,t)},l=function(e){return sessionStorage.getItem(e)},c=function(e){sessionStorage.removeItem(e)};t.setUserCache=a,t.getUserCache=n,t.removeUserCache=r,t.setCache=s,t.getCache=o,t.removeCache=i,t.setSessionCache=u,t.getSessionCache=l,t.removeSessionCache=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return window.iweb.Core.collectEnvironment()},n=function(e,t){window.iweb.Core.setClientAttribute(e,t)},r=function(e){return window.iweb.Core.getClientAttributes()[e]};t.getEnvironment=a,t.setClientAttribute=n,t.getClientAttribute=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ajax=void 0;var n=a(19),r=function(e){e=this._wrapAjax(e),(0,n.ajax)(e)};t.ajax=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ajax=void 0;var n=a(6),r={get:"get",post:"post",reqCount:4,createXhr:function(){var e=null;return n.env.isIE8?e=new ActiveXObject("Microsoft.XMLHTTP"):n.env.isIE?e=new ActiveXObject("Msxml2.XMLHTTP"):window.XMLHttpRequest&&(e=new XMLHttpRequest),e},ajax:function(e){var t=e.url,a=e.success,n=void 0==e.async||e.async,s=e.error,o=e.data||{},i=(void 0==e.type?r.post:e.type).toLowerCase();o.compressType;t=r.serializeUrl(t),o=r.serializeParams(o),i==r.get&&null!=o&&(t+="&"+o,o=null);var u=r.createXhr();u.open(i,t,n),i==r.post&&u.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8");var l=0;n?(u.onreadystatechange=function(){l++,u.readyState==r.reqCount&&r.execBack(u,a,s)},u.send(o)):(u.send(o),r.execBack(u,a,s))},execBack:function(e,t,a){if(200==e.status||304==e.status||4==e.readyState)t(e.responseText,e.status,e);else if(a)a(e.responseText,e.status,e);else{var n="no error callback function!";e.responseText&&(n=e.responseText),alert(n)}},serializeUrl:function(e){var t="cache="+Math.random();return e+=e.indexOf("?")>0?"&"+t:"?"+t},serializeParams:function(e){var t=void 0;if(t==e||null==e||""==e)return null;if(e.constructor==Object){var a="";for(var n in e)a+=n+"="+encodeURIComponent(e[n])+"&";return a.substring(0,a.length-1)}return e}},s=r.ajax;t.ajax=s},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var processXHRError=function processXHRError(rsl,state,xhr){return"string"==typeof rsl&&(rsl=JSON.parse(rsl)),!xhr.getResponseHeader||!xhr.getResponseHeader("X-Error")||(u.showMessageDialog?u.showMessageDialog({type:"info",title:"提示",msg:rsl.message,backdrop:!0}):alert(rsl.message),rsl.operate&&eval(rsl.operate),!1)};exports.processXHRError=processXHRError},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return new ServerEvent(this)};t.serverEvent=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEnable=void 0;var n=a(9),r=function(e){(0,n.each)(this.elements,function(t,a){a&&a.querySelectorAll("[u-meta]").each(function(){if(this["u-meta"]){var t=this["u-meta"];t.setEnable&&t.setEnable(e)}})})};t.setEnable=r},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ServerEvent=void 0;var r=a(24),s=a(25),o=a(26),i=a(27),u=function l(e){n(this,l),this.app=e,this.datas={},this.params={},this.event=null,this.ent=window.iweb.Core.collectEnvironment(),iweb.debugMode||(this.compression=!0),this.addDataTable=r.addDataTable,this.addDataTables=r.addDataTables,this.addAllDataTables=r.addAllDataTables,this.updateDataTables=r.updateDataTables,this.fire=s.fire,this.setSuccessFunc=s.setSuccessFunc,this.processXHRError=o.processXHRError,this.setCompression=i.setCompression,this.addParameter=i.addParameter,this.setEvent=i.setEvent,this.getData=i.getData,this.updateDom=i.updateDom};u.DEFAULT={async:!0,singleton:!0,url:(window.$ctx||"/iwebap")+"/evt/dispatch"},t.ServerEvent=u},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateDataTables=t.addAllDataTables=t.addDataTables=t.addDataTable=void 0;var n=a(9),r=function(e,t){var a=this.app.getDataTable(e);return this.datas[e]=a.getDataByRule(t),this},s=function(e){if(2==arguments.length)for(var t=0;t<e.length;t++){var a;"string"==typeof arguments[1]?a=arguments[1]:(0,n.isArray)(arguments[1])&&(a=arguments[1][t]),this.addDataTable(e[t],a)}else for(var t=0;t<e.length;t++){var r=e[t];if("string"==typeof r)this.addDataTable(r);else for(key in r)this.addDataTable(key,r[key])}return this},o=function(e){for(var t=this.app.dataTables,a=0;a<t.length;a++)this.addDataTable(t[a].id,e)},i=function(e,t){for(var a in e){var n=this.app.getDataTable(a);n&&(n.setData(e[a]),n.updateMeta(e[a].meta))}};t.addDataTable=r,t.addDataTables=s,t.addAllDataTables=o,t.updateDataTables=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSuccessFunc=t.fire=void 0;var n=a(7),r=a(19),s=function(e){var t=this,a=this.getData();a.parameters=ko.utils.stringifyJson(this.params);var s={type:e.type||"POST",data:e.params||{},url:e.url||ServerEvent.DEFAULT.url,async:"undefined"==typeof e.async?ServerEvent.DEFAULT.async:e.async,singleton:e.singleton||ServerEvent.DEFAULT.singleton,success:e.success,error:e.error,dataType:"json"};s.data.ctrl=e.ctrl,s.data.method=e.method,this.event&&(s.data.event=ko.utils.stringifyJson(this.event));var o=e.preSuccess||function(){},i=e.success||function(){},u=s.error;this.orignError=u;var l=s.deferred;l&&l.resolve||(l={resolve:function(){},reject:function(){}}),s.success=function(e,a,n){"string"==typeof e&&(e=JSON.parse(e)),t.processXHRError(t,e,a,n)?(o.call(null,e),t._successFunc(e,l),i.call(null,e.custom),l.resolve()):l.reject()},s.error=function(e,a,n){"string"==typeof e&&(e=JSON.parse(e)),t.processXHRError(t,e,a,n)?u&&u.call(null,e.custom):l.reject();
},s.data=(0,n.extend)(s.data,a),(0,r.ajax)(s)},o=function(e){this._successFunc=e};t.fire=s,t.setSuccessFunc=o},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var processXHRError=function processXHRError(self,rsl,state,xhr){return"string"==typeof rsl&&(rsl=JSON.parse(rsl)),!xhr.getResponseHeader||!xhr.getResponseHeader("X-Error")||(self.orignError?self.orignError.call(self,rsl,state,xhr):(u.showMessageDialog?u.showMessageDialog({type:"info",title:"提示",msg:rsl.message,backdrop:!0}):alert(rsl.message),rsl.operate&&eval(rsl.operate)),!1)};exports.processXHRError=processXHRError},function(e,t,a){"use strict";function n(e,t){for(var a in t){var n=t[a];for(var e in n){var o=n[e];if("trigger"==e)(0,s.trigger)(e,o[0]);else if(u.isArray(o))(0,r.each)(o,function(t,a){e[t](a)});else try{e[a](n)}catch(i){e[a](n[a])}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateDom=t.getData=t.setEvent=t.addParameter=t.setCompression=void 0;var r=a(9),s=a(5),o=function(e){iweb.browser.isIE8||window.pako||1!=e?this.compression=e:iweb.log.error("can't compression, please include pako!")},i=function(e,t){return this.params[e]=t,this},l=function(e){return this.event=c(e),this},c=function(e){return e},d=function(){var e=ko.utils.stringifyJson(this.app.getEnvironment()),t=ko.utils.stringifyJson(this.datas,function(e,t){return"undefined"==typeof t||null==t?"":t}),a="",n=!1;return window.trimServerEventData&&(t=window.trimServerEventData(t)),this.compression&&!iweb.browser.isIE8&&window.pako&&(e=encodeBase64(window.pako.gzip(e)),t=encodeBase64(window.pako.gzip(t)),n=!0,a="gzip"),{environment:e,dataTables:t,compression:n,compressType:a}},f=function(){(0,r.each)(dom,function(e,t){var a=t.two,r=t.one;n(r,a)})};t.setCompression=o,t.addParameter=i,t.setEvent=l,t.getData=d,t.updateDom=f},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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}),t.DataTable=void 0;var o=a(29),i=a(31),l=a(32),c=a(33),d=a(34),f=a(35),h=a(36),p=a(37),g=a(38),v=a(39),w=a(40),m=a(41),y=a(42),b=a(43),_=a(44),R=a(45),C=a(46),S=a(48),E=a(49),I=a(50),T=a(51),D=a(52),M=a(53),O=a(47),A=function(e){function t(e){n(this,t);var a=r(this,Object.getPrototypeOf(t).call(this));return e=e||{},a.id=e.id,a.strict=e.strict||!1,a.meta=t.createMetaItems(e.meta),a.enable=e.enable||t.DEFAULTS.enable,a.pageSize=ko.observable(e.pageSize||t.DEFAULTS.pageSize),a.pageIndex=ko.observable(e.pageIndex||t.DEFAULTS.pageIndex),a.totalPages=ko.observable(e.totalPages||t.DEFAULTS.totalPages),a.totalRow=ko.observable(),a.pageCache=void 0===e.pageCache?t.DEFAULTS.pageCache:e.pageCache,a.rows=ko.observableArray([]),a.selectedIndices=ko.observableArray([]),a._oldCurrentIndex=-1,a.focusIndex=ko.observable(-1),a.cachedPages=[],a.metaChange={},a.valueChange={},a.currentRowChange=ko.observable(1),a.enableChange=ko.observable(1),a.params=e.params||{},a.master=e.master||"",a.allSelected=ko.observable(!1),e.root?a.root=e.root:a.root=a,e.ns?a.ns=e.ns:a.ns="",a.copyRow=i.copyRow,a.copyRows=i.copyRows,a.setData=l.setData,a.setValue=l.setValue,a.isEnable=c.isEnable,a.setEnable=c.setEnable,a.getData=f.getData,a.getDataByRule=f.getDataByRule,a.getRow=f.getRow,a.getRowByRowId=f.getRowByRowId,a.getRowIndex=f.getRowIndex,a.getRowsByField=f.getRowsByField,a.getRowByField=f.getRowByField,a.getAllRows=f.getAllRows,a.getAllPageRows=f.getAllPageRows,a.getChangedDatas=f.getChangedDatas,a.getChangedRows=f.getChangedRows,a.getValue=f.getValue,a.getIndexByRowId=f.getIndexByRowId,a.getAllDatas=f.getAllDatas,a.getRowIdsByIndices=f.getRowIdsByIndices,a.getCurrentRow=d.getCurrentRow,a.getCurrentIndex=d.getCurrentIndex,a.getFocusRow=h.getFocusRow,a.getFocusIndex=h.getFocusIndex,a.getMeta=p.getMeta,a.getRowMeta=p.getRowMeta,a.getPage=g.getPage,a.getPages=g.getPages,a.getParam=v.getParam,a.getSelectedIndex=w.getSelectedIndex,a.getSelectedIndices=w.getSelectedIndices,a.getSelectedIndexs=w.getSelectedIndexs,a.getSelectedDatas=w.getSelectedDatas,a.getSelectedRows=w.getSelectedRows,a.getSimpleData=m.getSimpleData,a.setMeta=y.setMeta,a.updateMeta=y.updateMeta,a.createField=y.createField,a.setCurrentPage=b.setCurrentPage,a.updatePages=b.updatePages,a.setPages=b.setPages,a.hasPage=b.hasPage,a.clearCache=b.clearCache,a.cacheCurrentPage=b.cacheCurrentPage,a.addParam=_.addParam,a.addParams=_.addParams,a.refSelectedRows=R.refSelectedRows,a.ref=R.ref,a.refMeta=R.refMeta,a.refRowMeta=R.refRowMeta,a.refEnable=R.refEnable,a.setRows=S.setRows,a.addRow=S.addRow,a.addRows=S.addRows,a.insertRow=S.insertRow,a.insertRows=S.insertRows,a.createEmptyRow=S.createEmptyRow,a.removeRowByRowId=C.removeRowByRowId,a.removeRow=C.removeRow,a.removeAllRows=C.removeAllRows,a.removeRows=C.removeRows,a.clear=C.clear,a.updateCurrIndex=E.updateCurrIndex,a.setRowDelete=I.setRowDelete,a.setAllRowsDelete=I.setAllRowsDelete,a.setRowsDelete=I.setRowsDelete,a.setRowFocus=D.setRowFocus,a.setRowUnFocus=D.setRowUnFocus,a.updateFocusIndex=D.updateFocusIndex,a.setAllRowsSelect=T.setAllRowsSelect,a.setRowSelect=T.setRowSelect,a.setRowsSelect=T.setRowsSelect,a.addRowSelect=T.addRowSelect,a.addRowsSelect=T.addRowsSelect,a.setAllRowsUnSelect=T.setAllRowsUnSelect,a.setRowUnSelect=T.setRowUnSelect,a.setRowsUnSelect=T.setRowsUnSelect,a.toggleAllSelect=T.toggleAllSelect,a.updateSelectedIndices=T.updateSelectedIndices,a.setSimpleData=M.setSimpleData,a.addSimpleData=M.addSimpleData,a.isChanged=O.isChanged,a}return s(t,e),t}(o.Events);A.DEFAULTS={pageSize:20,pageIndex:0,totalPages:20,pageCache:!1,enable:!0},A.META_DEFAULTS={enable:!0,required:!1,descs:{}},A.ON_ROW_SELECT="select",A.ON_ROW_UNSELECT="unSelect",A.ON_ROW_ALLSELECT="allSelect",A.ON_ROW_ALLUNSELECT="allUnselect",A.ON_VALUE_CHANGE="valueChange",A.ON_CURRENT_VALUE_CHANGE="currentValueChange",A.ON_INSERT="insert",A.ON_UPDATE="update",A.ON_CURRENT_UPDATE="currentUpdate",A.ON_DELETE="delete",A.ON_DELETE_ALL="deleteAll",A.ON_ROW_FOCUS="focus",A.ON_ROW_UNFOCUS="unFocus",A.ON_LOAD="load",A.ON_ENABLE_CHANGE="enableChange",A.ON_META_CHANGE="metaChange",A.ON_ROW_META_CHANGE="rowMetaChange",A.ON_CURRENT_META_CHANGE="currentMetaChange",A.ON_CURRENT_ROW_CHANGE="currentRowChange",A.SUBMIT={current:"current",focus:"focus",all:"all",select:"select",change:"change",empty:"empty",allSelect:"allSelect",allPages:"allPages"},A.createMetaItems=function(e){var t={};for(var a in e){var n=e[a];"string"==typeof n&&(n={}),t[a]=u.extend({},A.META_DEFAULTS,n)}return t},t.DataTable=A},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0;var r=a(30),s=function o(){n(this,o),this.on=r.on,this.off=r.off,this.one=r.one,this.trigger=r.trigger,this.getEvent=r.getEvent};t.Events=s},function(e,t){"use strict";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},n=function(e,t,n){var r=this,s=t;if("[object Array]"==Object.prototype.toString.call(e)){for(var o in e)this.on(e[o],t);return this}if("object"==("undefined"==typeof e?"undefined":a(e))){for(var i in e)this.on(i,e[i]);return this}n&&(t=function(){r.off(e,t),s.apply(this,arguments)}),e=e.toLowerCase(),this._events||(this._events={});var u=this._events[e]||(this._events[e]=[]);return u.push({callback:t}),this},r=function(e,t){if("[object Array]"==Object.prototype.toString.call(e)){for(var n in e)this.off(e[n],t);return this}if("object"==("undefined"==typeof e?"undefined":a(e))){for(var r in e)this.off(r,e[r]);return this}var s=this._events[e];if(!s)return this;if(t)for(var n=s.length-1;n>=0;n--)s[n]==t&&s.splice(n,1);else s=null;return this},s=function(e,t){this.on(e,t,1)},o=function(e){if(e=e.toLowerCase(),!this._events||!this._events[e])return this;for(var t=Array.prototype.slice.call(arguments,1),a=this._events[e],n=0,r=a.length;n<r;n++)a[n].callback.apply(this,t);return this},i=function(e){return e=e.toLowerCase(),this._events||(this._events={}),this._events[e]};t.on=n,t.off=r,t.one=s,t.trigger=o,t.getEvent=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){this.copyRows(e,[t])},n=function(e,t){for(var a=0;a<t.length;a++){var n=new Row({parent:this});t[a]&&n.setData(t[a].getData()),this.insertRows(void 0===e?this.rows().length:e,[n])}};t.copyRow=a,t.copyRows=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){if(e.pageIndex||0===e.pageIndex)var a=e.pageIndex;else var a=this.pageIndex();if(e.pageSize||0===e.pageSize)var n=e.pageSize;else var n=this.pageSize();if(e.totalPages||0===e.totalPages)var r=e.totalPages;else var r=this.totalPages();if(e.totalRow||0===e.totalRow)var s=e.totalRow;else var s=e.rows.length;var o,i,u=!!t&&t.unSelect;if(this.pageCache=e.pageCache||this.pageCache,this.pageCache===!0){if(this.updatePages(e.pages),a!=this.pageIndex())return this.setCurrentPage(a,!0),this.totalPages(r),void this.totalRow(s);o=this.getPage(a).selectedIndices,i=this.getPage(a).focus,this.setRows(this.getPage(a).rows)}else o=e.select||(u?[]:[0]),i=e.focus,this.setRows(e.rows);this.pageIndex(a),this.pageSize(n),this.totalPages(r),this.totalRow(s),this.updateSelectedIndices(),o&&o.length>0&&this.rows().length>0&&this.setRowsSelect(o),i&&this.setRowFocus(i)},n=function(e,t,a,n){1===arguments.length&&(t=e,e="$data"),a=a?a:this.getCurrentRow(),a&&a.setValue(e,t,n)};t.setData=a,t.setValue=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){var t=this.getMeta(e,"enable");return"undefined"!=typeof t&&null!=t||(t=!0),t&&this.enable},n=function(e){this.enable!=e&&(e=e!==!1,this.enable=e,this.enableChange(-this.enableChange()),this.trigger(DataTable.ON_ENABLE_CHANGE,{enable:this.enable}))};t.isEnable=a,t.setEnable=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){if(this.focusIndex()!=-1)return this.getFocusRow();var e=this.getSelectedIndex();return e==-1?null:this.getRow(e)},n=function(){if(this.focusIndex()!=-1)return this.focusIndex();var e=this.getSelectedIndex();return e==-1?-1:e};t.getCurrentRow=a,t.getCurrentIndex=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){for(var e=[],t=this.rows(),a=0;a<t.length;a++)e.push(t[a].getData());return e},n=function(e){var t,a={},n=null;if(a.meta=this.meta,a.params=this.params,e=e||DataTable.SUBMIT.current,e==DataTable.SUBMIT.current){n=[];var r=this.focusIndex();r==-1&&(r=this.getSelectedIndex()),t=this.rows();for(var s=0,o=t.length;s<o;s++)s==r?n.push(t[s].getData()):n.push(t[s].getEmptyData())}else if(e==DataTable.SUBMIT.focus){n=[],t=this.rows();for(var s=0,o=t.length;s<o;s++)s==this.focusIndex()?n.push(t[s].getData()):n.push(t[s].getEmptyData())}else e==DataTable.SUBMIT.all?n=this.getData():e==DataTable.SUBMIT.select?n=this.getSelectedDatas(!0):e==DataTable.SUBMIT.change?n=this.getChangedDatas():e===DataTable.SUBMIT.empty&&(n=[]);if(this.pageCache&&null!=n&&(n=[{index:this.pageIndex(),select:this.getSelectedIndexs(),focus:this.focusIndex(),rows:n}]),e==DataTable.SUBMIT.allSelect){n=[];for(var i=this.totalPages(),s=0;s<i;s++)if(s==this.pageIndex())n.push({index:this.pageIndex(),select:this.getSelectedIndexs(),focus:this.focusIndex(),rows:this.getSelectedDatas()});else{var u=this.cachedPages[s];u&&n.push({index:s,select:u.selectedIndices,focus:u.focus,rows:u.getSelectDatas()})}}else if(e==DataTable.SUBMIT.allPages){n=[];for(var i=this.totalPages(),s=0;s<i;s++)if(s==this.pageIndex())n.push({index:this.pageIndex(),select:this.getSelectedIndexs(),focus:this.focusIndex(),rows:this.getData()});else{var u=this.cachedPages[s];u&&n.push({index:s,select:u.selectedIndices,focus:u.focus,rows:u.getData()})}}return this.pageCache?a.pages=n:(a.rows=n,a.select=this.getSelectedIndexs(),a.focus=this.getFocusIndex()),a.pageSize=this.pageSize(),a.pageIndex=this.pageIndex(),a.isChanged=this.isChanged(),a.master=this.master,a.pageCache=this.pageCache,a},r=function(e){return this.rows.peek()[e]},s=function(e){for(var t=this.rows.peek(),a=0,n=t.length;a<n;a++)if(t[a].rowId==e)return t[a];return null},o=function(e){for(var t=this.rows.peek(),a=0,n=t.length;a<n;a++)if(t[a].rowId===e.rowId)return a;return-1},i=function(e,t){for(var a=this.rows.peek(),n=new Array,r=0,s=a.length;r<s;r++)a[r].getValue(e)===t&&n.push(a[r]);return n},u=function(e,t){for(var a=this.rows.peek(),n=0,r=a.length;n<r;n++)if(a[n].getValue(e)===t)return a[n];return null},l=function(){return this.rows.peek()},c=function(){for(var e,t=[],a=0;a<this.totalPages();a++){if(e=[],a==this.pageIndex())e=this.getData();else{var n=this.cachedPages[a];n&&(e=n.getData())}for(var r=0;r<e.length;r++)t.push(e[r])}return t},d=function(e){for(var t=[],a=this.rows(),n=0,r=a.length;n<r;n++)a[n]&&a[n].status!=Row.STATUS.NORMAL?t.push(a[n].getData()):1==e&&t.push(a[n].getEmptyData());return t},f=function(){for(var e=[],t=this.rows.peek(),a=0,n=t.length;a<n;a++)t[a]&&t[a].status!=Row.STATUS.NORMAL&&e.push(t[a]);return e},h=function(e,t){return t=t||this.getCurrentRow(),t?t.getValue(e):""},p=function(e){for(var t=this.rows(),a=0,n=t.length;a<n;a++)if(t[a].rowId==e)return a;return-1},g=function(){for(var e=this.getAllRows(),t=[],a=0,n=e.length;a<n;a++)e[a]&&t.push(e[a].getData());return t},v=function(e){for(var t=[],a=0;a<e.length;a++)t.push(this.getRow(e[a]).rowId);return t};t.getData=a,t.getDataByRule=n,t.getRow=r,t.getRowByRowId=s,t.getRowIndex=o,t.getRowsByField=i,t.getRowByField=u,t.getAllRows=l,t.getAllPageRows=c,t.getChangedDatas=d,t.getChangedRows=f,t.getValue=h,t.getIndexByRowId=p,t.getAllDatas=g,t.getRowIdsByIndices=v},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){return this.focusIndex()!=-1?this.getRow(this.focusIndex()):null},n=function(){return this.focusIndex()};t.getFocusRow=a,t.getFocusIndex=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){return 0===arguments.length?this.meta:1===arguments.length?this.meta[e]:this.meta[e]&&"undefined"!=typeof this.meta[e][t]?this.meta[e][t]:null},n=function(e,t){var a=this.getCurrentRow();return a?a.getMeta(e,t):this.getMeta(e,t)};t.getMeta=a,t.getRowMeta=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return this.pageCache?this.cachedPages[e]:-1},n=function(){return this.pageCache?this.cachedPages:[]};t.getPage=a,t.getPages=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return this.params[e]};t.getParam=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){var e=this.selectedIndices();return null==e||0==e.length?-1:e[0]},n=function(){var e=this.selectedIndices();return null==e||0==e.length?[]:e},r=function(){return this.getSelectedIndices()},s=function(e){for(var t=this.selectedIndices(),a=[],n=[],r=0,s=t.length;r<s;r++)n.push(t[r]);for(var o=this.rows(),r=0,s=o.length;r<s;r++)n.indexOf(r)!=-1?a.push(o[r].getData()):1==e&&a.push(o[r].getEmptyData());return a},o=function(){for(var e=this.selectedIndices(),t=[],a=this.rows.peek(),n=[],r=0,s=e.length;r<s;r++)n.push(e[r]);for(var r=0,s=a.length;r<s;r++)n.indexOf(r)!=-1&&t.push(a[r]);return t};t.getSelectedIndex=a,t.getSelectedIndices=n,t.getSelectedIndexs=r,t.getSelectedDatas=s,t.getSelectedRows=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){e=e||{};var t,a=[],n=e.type||"all",r=e.fields||null;if("all"===n)t=this.rows.peek();else if("current"===n){var s=this.getCurrentRow();t=null==s?[]:[s]}else if("focus"===n){var o=this.getFocusRow();t=null==o?[]:[o]}else"select"===n?t=this.getSelectedRows():"change"===n&&(t=this.getChangedRows());for(var i=0;i<t.length;i++)a.push(t[i].getSimpleData({fields:r}));return a};t.getSimpleData=a},function(e,t){"use strict";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},n=function(e,t,a){if(this.meta[e]){var n=this.meta[e][t],r=this.getCurrentRow();this.meta[e][t]=a,this.metaChange[e+"."+t]&&this.metaChange[e+"."+t](-this.metaChange[e+"."+t]()),"enable"==t&&this.enableChange(-this.enableChange()),this.trigger(DataTable.ON_META_CHANGE,{eventType:"dataTableEvent",dataTable:this.id,field:e,meta:t,oldValue:n,newValue:a}),r&&!r.getMeta(e,t,!1)&&this.trigger(e+"."+t+"."+DataTable.ON_CURRENT_META_CHANGE,{eventType:"dataTableEvent",dataTable:this.id,oldValue:n,newValue:a})}},r=function(e){if(e)for(var t in e)for(var a in e[t]){var n=this.meta[t][a],r=e[t][a];"default"===a?(this.meta[t]["default"]||(this.meta[t]["default"]={}),this.meta[t]["default"].value=e[t][a]):"display"===a?(this.meta[t]["default"]||(this.meta[t]["default"]={}),this.meta[t]["default"].display=e[t][a]):this.meta[t][a]=e[t][a],this.metaChange[t+"."+a]&&this.metaChange[t+"."+a](-this.metaChange[t+"."+a]()),this.trigger(DataTable.ON_META_CHANGE,{eventType:"dataTableEvent",dataTable:this.id,field:t,meta:a,oldValue:n,newValue:r})}},s=function(e,t){if(1!=this.root.strict){if(e.indexOf(".")!=-1)for(var n=e.split("."),r=n[0],s=0,o=n.length;s<o;s++){if(this.meta[r]&&"child"===t