Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zeanium/core

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeanium/core - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

dist/minx/core/builtin.js

@@ -1,1 +0,1 @@

!function(p){var _=Object.prototype.toString,o={isNull:function(e){return null==e},isNotNull:function(e){return null!=e},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var e=arguments,n=null,t=null;return e.length<2?e[0]:(n=(n=e[0]).toString?n.toString():n,t=e[1],c.each(t,function(e,t){null!=e&&(e=c.is(e,"object")?JSON.stringify(e):e.toString?e.toString():e,n=n.replace(new RegExp("\\{"+t+"\\}","gi"),e))}),n)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}).toUpperCase()},fix:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(e,t){var n=null,r=null;switch(_.call(t)){case"[object Object]":for(var i in t)switch(n=e[i],r=t[i],_.call(r)){case"[object Object]":"[object Object]"==_.call(n)?e[i]=this.deepAssign(n,r):e[i]=r;break;case"[object Array]":"[object Array]"==_.call(n)?e[i]=e[i].concat(r):e[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":e[i]=r}break;case"[object Array]":t.unshift(e),o.deepAssigns.apply(this,t)}return e},deepAssigns:function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)o.deepAssign(e,arguments[t]);return e},convertArrayArgv:function(e,t){for(var n=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,_={},c=!1,u=0,f=e.length;u<f;u++)if(-1!==(a=e[u]).indexOf(r))i[o=a.replace(r,"")]=!0,_[u+1]=o,c=c||!0;else if(c)if(_[u])i[_[u]]=a;else{for(var l=u-1;!_[l]&&0<l;)l-=1;if(_[l]){var s=i[_[l]];null!=s?"string"==typeof s?i[_[l]]=[s,a]:"object"==typeof s&&i[_[l]].push(a):i[_[l]]=a}}else n.push(a);return{env:n,argv:i}},overwrite:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(e,t,n){var r=e||{};if(t){var i,o=t.split("."),a=o.length,_=0;if(arguments.length<3)for(;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[_],r&&(r.__set__?r.__set__(i,n):r[i]=n,r=n)}}return r},invoke:function(e,t,n){if(e&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(e,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=e)[t],i&&i.apply(r,n)}},deepEachObject:function(e,t,n){if(c.is(e,"object")){var r,i=null;for(var o in e)i=e[o],c.is(i,"object")?this.deepEachObject(i,t,n):null!=(r=t&&t.call(n,i,o,e))&&(e[o]=r)}return e},arrayValueToObject:function(e,t,n){if(c.is(e,"array")){for(var r,i=null,o={},a=0,_=e.length;a<_;a++)i=e[a],null!=(r=t&&t.call(n,i,a,e,o))&&(o[i]=r);e=o}return e}},c={toString:function(e){return e&&e.toString?e.toString():_.call(e)},each:function(e,t,n){if(e&&t)if(e.__each__)e.__each__(t,n);else{var r=e.length,i=null;if(0<r&&"[object Array]"===_.call(e)){for(var o=0;o<r;o++)if(!1===(i=t.call(n,e[o],o)))return!1}else for(var a in e)if(e.hasOwnProperty(a)){if(!1===(i=t.call(n,e[a],a)))return!1;if(-1===i)continue}}},clone:function(e){if(e){if(e.__clone__)return e.__clone__();if(p.is(e,"array"))return e.slice(0);var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}return e},type:function(e){return e&&e.__type__?e.__type__:_.call(e).slice(8,-1).toLowerCase()},is:function(e,t){if(e&&e.__is__)return e.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return e&&e.constructor===Object;default:return this.type(e)===t}else if("function"==typeof t)return e instanceof t},may:function(e,t){return!!e&&(e.__may__?e.__may__(t):e.hasOwnProperty("on"+t))},can:function(e,t){return!!e&&(e.__can__?e.__can__(t):"function"==typeof e[t])},has:function(e,t){return!!e&&(e.__has__?e.__has__(t):e.hasOwnProperty(t))},get:function(e,t){if(e)return e.__get__?e.__get__(t):e[t]},set:function(e,t,n){e&&(e.__set__?e.__set__(t,n):e[t]=n)},gets:function(e){if(e){if(e.__gets__)return e.__gets__();var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},sets:function(e,t){if(e&&t)if(e.__sets__)e.__sets__(t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}};o.extend(p,o),o.extend(p,c)}(zn);
!function(p){var c=Object.prototype.toString,o={isNull:function(n){return null==n},isNotNull:function(n){return null!=n},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var n=arguments,e=null,t=null;return n.length<2?n[0]:(e=(e=n[0]).toString?e.toString():e,t=n[1],_.each(t,function(n,t){null!=n&&(n=_.is(n,"object")?JSON.stringify(n):n.toString?n.toString():n,e=e.replace(new RegExp("\\{"+t+"\\}","gi"),n))}),e)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)}).toUpperCase()},fix:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(n,t){var e=null,r=null;switch(c.call(t)){case"[object Object]":for(var i in t)switch(e=n[i],r=t[i],c.call(r)){case"[object Object]":"[object Object]"==c.call(e)?n[i]=this.deepAssign(e,r):n[i]=r;break;case"[object Array]":"[object Array]"==c.call(e)?n[i]=n[i].concat(r):n[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":n[i]=r}break;case"[object Array]":t.unshift(n),o.deepAssigns.apply(this,t)}return n},callOnce:function(n){var t=!1;return function(){t||(t=!0,n.apply(this,arguments))}},deepAssigns:function(){for(var n=arguments[0],t=1,e=arguments.length;t<e;t++)o.deepAssign(n,arguments[t]);return n},convertArrayArgv:function(n,t){for(var e=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,c={},_=!1,u=0,f=n.length;u<f;u++)if(-1!==(a=n[u]).indexOf(r))i[o=a.replace(r,"")]=!0,c[u+1]=o,_=_||!0;else if(_)if(c[u])i[c[u]]=a;else{for(var l=u-1;!c[l]&&0<l;)l-=1;if(c[l]){var s=i[c[l]];null!=s?"string"==typeof s?i[c[l]]=[s,a]:"object"==typeof s&&i[c[l]].push(a):i[c[l]]=a}}else e.push(a);return{env:e,argv:i}},overwrite:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(n,t,e){var r=n||{};if(t){var i,o=t.split("."),a=o.length,c=0;if(arguments.length<3)for(;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[c],r&&(r.__set__?r.__set__(i,e):r[i]=e,r=e)}}return r},invoke:function(n,t,e){if(n&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(n,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=n)[t],i&&i.apply(r,e)}},deepEachObject:function(n,t,e){if(_.is(n,"object")){var r,i=null;for(var o in n)i=n[o],_.is(i,"object")?this.deepEachObject(i,t,e):null!=(r=t&&t.call(e,i,o,n))&&(n[o]=r)}return n},arrayValueToObject:function(n,t,e){if(_.is(n,"array")){for(var r,i=null,o={},a=0,c=n.length;a<c;a++)i=n[a],null!=(r=t&&t.call(e,i,a,n,o))&&(o[i]=r);n=o}return n}},_={toString:function(n){return n&&n.toString?n.toString():c.call(n)},each:function(n,t,e){if(n&&t)if(n.__each__)n.__each__(t,e);else{var r=n.length,i=null;if(0<r&&"[object Array]"===c.call(n)){for(var o=0;o<r;o++)if(!1===(i=t.call(e,n[o],o)))return!1}else for(var a in n)if(n.hasOwnProperty(a)){if(!1===(i=t.call(e,n[a],a)))return!1;if(-1===i)continue}}},clone:function(n){if(n){if(n.__clone__)return n.__clone__();if(p.is(n,"array"))return n.slice(0);var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}return n},type:function(n){return n&&n.__type__?n.__type__:c.call(n).slice(8,-1).toLowerCase()},is:function(n,t){if(n&&n.__is__)return n.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return n&&n.constructor===Object;default:return this.type(n)===t}else if("function"==typeof t)return n instanceof t},may:function(n,t){return!!n&&(n.__may__?n.__may__(t):n.hasOwnProperty("on"+t))},can:function(n,t){return!!n&&(n.__can__?n.__can__(t):"function"==typeof n[t])},has:function(n,t){return!!n&&(n.__has__?n.__has__(t):n.hasOwnProperty(t))},get:function(n,t){if(n)return n.__get__?n.__get__(t):n[t]},set:function(n,t,e){n&&(n.__set__?n.__set__(t,e):n[t]=e)},gets:function(n){if(n){if(n.__gets__)return n.__gets__();var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}},sets:function(n,t){if(n&&t)if(n.__sets__)n.__sets__(t);else for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])}};o.extend(p,o),o.extend(p,_)}(zn);

@@ -194,2 +194,11 @@ /**

},
callOnce: function (fun){
var _called = false;
return function() {
if (!_called) {
_called = true;
fun.apply(this, arguments);
}
}
},
deepAssigns: function (){

@@ -196,0 +205,0 @@ var _target = arguments[0];

var __isServer="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0),zn={VERSION:"1.0.8",DEBUG:!0,ZN_PATH:"",PATH:"",GLOBAL:function(){return __isServer?global:window}.call(null),isServer:__isServer};if(zn.GLOBAL.zn=zn,__isServer)zn.ZN_PATH=__dirname,zn.PATH=process.cwd(),module.exports=zn;else{var _zn_url="";try{__a__=__b__}catch(r){r.fileName?_zn_url=r.fileName:r.sourceURL?_zn_url=r.sourceURL:r.stacktrace?console.error(r.stacktrace):r.stack?_zn_url=(_zn_url=(_zn_url=r.stack.split("\n")[1]).replace(/\s/g,"")).substring(2,_zn_url.length):console.error(r.toString())}if(!_zn_url)for(var _node,_scripts=document.getElementsByTagName("script"),_src="",i=0,_len=scripts.length;i<_len;i++)if((_node=scripts[i]).getAttribute&&("zn.js"===(_src=_node.getAttribute("src")||"").slice(-5)||"zn.minx.js"===_src.slice(-10))){_zn_url=_src;break}if(!_zn_url)throw new Error("zn.js has not been included, please do it first.");zn.ZN_PATH=_zn_url.substring(0,_zn_url.lastIndexOf("/")+1)}
!function(p){var _=Object.prototype.toString,o={isNull:function(e){return null==e},isNotNull:function(e){return null!=e},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var e=arguments,n=null,t=null;return e.length<2?e[0]:(n=(n=e[0]).toString?n.toString():n,t=e[1],c.each(t,function(e,t){null!=e&&(e=c.is(e,"object")?JSON.stringify(e):e.toString?e.toString():e,n=n.replace(new RegExp("\\{"+t+"\\}","gi"),e))}),n)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}).toUpperCase()},fix:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(e,t){var n=null,r=null;switch(_.call(t)){case"[object Object]":for(var i in t)switch(n=e[i],r=t[i],_.call(r)){case"[object Object]":"[object Object]"==_.call(n)?e[i]=this.deepAssign(n,r):e[i]=r;break;case"[object Array]":"[object Array]"==_.call(n)?e[i]=e[i].concat(r):e[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":e[i]=r}break;case"[object Array]":t.unshift(e),o.deepAssigns.apply(this,t)}return e},deepAssigns:function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)o.deepAssign(e,arguments[t]);return e},convertArrayArgv:function(e,t){for(var n=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,_={},c=!1,u=0,f=e.length;u<f;u++)if(-1!==(a=e[u]).indexOf(r))i[o=a.replace(r,"")]=!0,_[u+1]=o,c=c||!0;else if(c)if(_[u])i[_[u]]=a;else{for(var l=u-1;!_[l]&&0<l;)l-=1;if(_[l]){var s=i[_[l]];null!=s?"string"==typeof s?i[_[l]]=[s,a]:"object"==typeof s&&i[_[l]].push(a):i[_[l]]=a}}else n.push(a);return{env:n,argv:i}},overwrite:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(e,t,n){var r=e||{};if(t){var i,o=t.split("."),a=o.length,_=0;if(arguments.length<3)for(;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[_],r&&(r.__set__?r.__set__(i,n):r[i]=n,r=n)}}return r},invoke:function(e,t,n){if(e&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(e,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=e)[t],i&&i.apply(r,n)}},deepEachObject:function(e,t,n){if(c.is(e,"object")){var r,i=null;for(var o in e)i=e[o],c.is(i,"object")?this.deepEachObject(i,t,n):null!=(r=t&&t.call(n,i,o,e))&&(e[o]=r)}return e},arrayValueToObject:function(e,t,n){if(c.is(e,"array")){for(var r,i=null,o={},a=0,_=e.length;a<_;a++)i=e[a],null!=(r=t&&t.call(n,i,a,e,o))&&(o[i]=r);e=o}return e}},c={toString:function(e){return e&&e.toString?e.toString():_.call(e)},each:function(e,t,n){if(e&&t)if(e.__each__)e.__each__(t,n);else{var r=e.length,i=null;if(0<r&&"[object Array]"===_.call(e)){for(var o=0;o<r;o++)if(!1===(i=t.call(n,e[o],o)))return!1}else for(var a in e)if(e.hasOwnProperty(a)){if(!1===(i=t.call(n,e[a],a)))return!1;if(-1===i)continue}}},clone:function(e){if(e){if(e.__clone__)return e.__clone__();if(p.is(e,"array"))return e.slice(0);var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}return e},type:function(e){return e&&e.__type__?e.__type__:_.call(e).slice(8,-1).toLowerCase()},is:function(e,t){if(e&&e.__is__)return e.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return e&&e.constructor===Object;default:return this.type(e)===t}else if("function"==typeof t)return e instanceof t},may:function(e,t){return!!e&&(e.__may__?e.__may__(t):e.hasOwnProperty("on"+t))},can:function(e,t){return!!e&&(e.__can__?e.__can__(t):"function"==typeof e[t])},has:function(e,t){return!!e&&(e.__has__?e.__has__(t):e.hasOwnProperty(t))},get:function(e,t){if(e)return e.__get__?e.__get__(t):e[t]},set:function(e,t,n){e&&(e.__set__?e.__set__(t,n):e[t]=n)},gets:function(e){if(e){if(e.__gets__)return e.__gets__();var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},sets:function(e,t){if(e&&t)if(e.__sets__)e.__sets__(t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}};o.extend(p,o),o.extend(p,c)}(zn);
!function(p){var c=Object.prototype.toString,o={isNull:function(n){return null==n},isNotNull:function(n){return null!=n},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var n=arguments,e=null,t=null;return n.length<2?n[0]:(e=(e=n[0]).toString?e.toString():e,t=n[1],_.each(t,function(n,t){null!=n&&(n=_.is(n,"object")?JSON.stringify(n):n.toString?n.toString():n,e=e.replace(new RegExp("\\{"+t+"\\}","gi"),n))}),e)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)}).toUpperCase()},fix:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(n,t){var e=null,r=null;switch(c.call(t)){case"[object Object]":for(var i in t)switch(e=n[i],r=t[i],c.call(r)){case"[object Object]":"[object Object]"==c.call(e)?n[i]=this.deepAssign(e,r):n[i]=r;break;case"[object Array]":"[object Array]"==c.call(e)?n[i]=n[i].concat(r):n[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":n[i]=r}break;case"[object Array]":t.unshift(n),o.deepAssigns.apply(this,t)}return n},callOnce:function(n){var t=!1;return function(){t||(t=!0,n.apply(this,arguments))}},deepAssigns:function(){for(var n=arguments[0],t=1,e=arguments.length;t<e;t++)o.deepAssign(n,arguments[t]);return n},convertArrayArgv:function(n,t){for(var e=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,c={},_=!1,u=0,f=n.length;u<f;u++)if(-1!==(a=n[u]).indexOf(r))i[o=a.replace(r,"")]=!0,c[u+1]=o,_=_||!0;else if(_)if(c[u])i[c[u]]=a;else{for(var l=u-1;!c[l]&&0<l;)l-=1;if(c[l]){var s=i[c[l]];null!=s?"string"==typeof s?i[c[l]]=[s,a]:"object"==typeof s&&i[c[l]].push(a):i[c[l]]=a}}else e.push(a);return{env:e,argv:i}},overwrite:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(n,t,e){var r=n||{};if(t){var i,o=t.split("."),a=o.length,c=0;if(arguments.length<3)for(;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[c],r&&(r.__set__?r.__set__(i,e):r[i]=e,r=e)}}return r},invoke:function(n,t,e){if(n&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(n,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=n)[t],i&&i.apply(r,e)}},deepEachObject:function(n,t,e){if(_.is(n,"object")){var r,i=null;for(var o in n)i=n[o],_.is(i,"object")?this.deepEachObject(i,t,e):null!=(r=t&&t.call(e,i,o,n))&&(n[o]=r)}return n},arrayValueToObject:function(n,t,e){if(_.is(n,"array")){for(var r,i=null,o={},a=0,c=n.length;a<c;a++)i=n[a],null!=(r=t&&t.call(e,i,a,n,o))&&(o[i]=r);n=o}return n}},_={toString:function(n){return n&&n.toString?n.toString():c.call(n)},each:function(n,t,e){if(n&&t)if(n.__each__)n.__each__(t,e);else{var r=n.length,i=null;if(0<r&&"[object Array]"===c.call(n)){for(var o=0;o<r;o++)if(!1===(i=t.call(e,n[o],o)))return!1}else for(var a in n)if(n.hasOwnProperty(a)){if(!1===(i=t.call(e,n[a],a)))return!1;if(-1===i)continue}}},clone:function(n){if(n){if(n.__clone__)return n.__clone__();if(p.is(n,"array"))return n.slice(0);var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}return n},type:function(n){return n&&n.__type__?n.__type__:c.call(n).slice(8,-1).toLowerCase()},is:function(n,t){if(n&&n.__is__)return n.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return n&&n.constructor===Object;default:return this.type(n)===t}else if("function"==typeof t)return n instanceof t},may:function(n,t){return!!n&&(n.__may__?n.__may__(t):n.hasOwnProperty("on"+t))},can:function(n,t){return!!n&&(n.__can__?n.__can__(t):"function"==typeof n[t])},has:function(n,t){return!!n&&(n.__has__?n.__has__(t):n.hasOwnProperty(t))},get:function(n,t){if(n)return n.__get__?n.__get__(t):n[t]},set:function(n,t,e){n&&(n.__set__?n.__set__(t,e):n[t]=e)},gets:function(n){if(n){if(n.__gets__)return n.__gets__();var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}},sets:function(n,t){if(n&&t)if(n.__sets__)n.__sets__(t);else for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])}};o.extend(p,o),o.extend(p,_)}(zn);
!function(l){var o=l.GLOBAL,s=1,f=1,p={fixTargetCtor:function(t){return t instanceof c?t.constructor:t},fixTargetKey:function(t){return"@"+t},defineEvent:function(t,n,e){var r=p.fixTargetCtor(t),i=p.fixTargetKey(n),s=i in r,_={};return s||(_=Object.defineProperty(t,"on"+n.toLowerCase(),{get:function(){var t=this.__handlers__[n];return t?t[0].handler:null},set:function(t){var e=this.__handlers__;(e[n]=e[n]||[])[0]={owner:this,handler:t,context:null}}})),r[i]={name:n,type:"event",meta:e,descriptor:_},s},defineProperty:function(t,e,n){var r,i,s,_=p.fixTargetCtor(t),o=p.fixTargetKey(e),a=o in _;if("value"in n){var u=n.value,c="_"+e,h=n.get,f=n.set;i=h||function(){return c in this?this[c]:l.is(u,"function")?u.call(this):u},s=n.readonly?function(t,e){if(!e||!e.force)return!1;this[c]=t}:f||function(t){this[c]=t}}else i=n.get||function(){},s=n.set||function(){return!1};return a&&(i.__super__=_[o].getter,s.__super__=_[o].setter),r=Object.defineProperty(t,e,{get:i,set:s,configurable:!0}),_[o]={name:e,type:"property",meta:n,getter:i,setter:s,descriptor:r},a},defineMethod:function(t,e,n){var r=p.fixTargetCtor(t),i=p.fixTargetKey(e),s=i in r;return r[i]={name:e,type:"method",meta:n},e in t&&(n.value||(n.value=function(){}),n.value.__super__=t[e]),t[e]=n.value,s}},_={__handlers__:{},member:function(t,e){var n=p.fixTargetCtor(e||this),r=n[p.fixTargetKey(t)];return r||n===c?r:this.member(t,n._super_)},may:function(t){var e=this.member(t);return e&&"event"==e.type},has:function(t){var e=this.member(t);return e&&"property"==e.type},can:function(t){var e=this.member(t);return e&&"method"==e.type},get:function(t,e){var n=this.member(t);if(n&&n.getter)return n.getter.call(this,e)},set:function(t,e,n){var r=this.member(t);return r&&r.setter&&r.setter.call(this,e,n),this},gets:function(e){var n={},t=p.fixTargetCtor(this)._properties_;return l.each(t,function(t){n[t]=this.get(t,e)},this),n},sets:function(t,e,n){if(t){var r=null;for(var i in t)t.hasOwnProperty(i)&&(r=t[i],!1!==(n&&n(r,i,e))&&this.set(i,r,e))}return this},each:function(t,e){for(var n=p.fixTargetCtor(this)._properties_,r=0,i=n.length;r<i;r++){var s=n[r];if(!1===t.call(e,s,r,this.member(s),this.get(s)))return!1}return this},__may__:function(t){return this.may(t)},__has__:function(t){return this.has(t)},__can__:function(t){return this.can(t)},__get__:function(t){return this.get(t)},__gets__:function(){return this.gets()},__set__:function(t,e){this.set(t,e)},__sets__:function(t){this.sets(t)},__each__:function(t,e){return this.each(t,e)}},a={toString:function(){return JSON.stringify({ClassName:this._name_||"Anonymous",ClassID:this._id_})},createSelf:function(){return new this.constructor.apply(this,Array.prototype.slice.call(arguments))},getProperties:function(r,i){var s={};if(!this.getMeta||"ZNObject"==this._name_)return s;var t=this._super_,e=this._mixins_;return t&&l.extend(s,t.getProperties(r,i)),e&&e.length&&l.each(e,function(t){l.extend(s,t.getProperties(r,i))}),l.each(this.getMeta("properties"),function(t,e){var n=r&&r.call(i||this,t,e,s);if(!1===n||-1===n)return n;t.hidden||(s[e]=t)},this),s},getProperty:function(n){var r=null;return n&&this.getProperties(function(t,e){return n==e&&(r=field),-1}),r},existProperty:function(t){return!!this.getProperty(t)},getMeta:function(t){return t?this._meta_[t]:this._meta_},setMeta:function(t,e){return t&&e&&(this._meta_[t]=e),this},defineEvent:function(t,e,n){return p.defineEvent(n||this.prototype,t,e)||this._events_.push(t),this},defineProperty:function(t,e,n){return p.defineProperty(n||this.prototype,t,e)||this._properties_.push(t),this},defineMethod:function(t,e,n){return p.defineMethod(n||this.prototype,t,e)||this._methods_.push(t),this}},u={toString:function(){var t={ClassName:this.__name__||"Anonymous",InstanceID:this.__id__,Meta:this.constructor._meta_};return JSON.stringify(t)},toJson:function(){var n={};return l.each(this.constructor.getProperties(),function(t,e){n[e]=this.get(e)},this),n},getProperties:function(){return this.constructor.getProperties.apply(this,arguments)},getPropertie:function(t){return this.constructor.getPropertie(t)},upon:function(t,e,n){if(e){var r=this.__handlers__;(r[t]=r[t]||[])[0]=l.extend({owner:this,handler:e},n)}return this},on:function(t,e,n){if(e){var r=this.__handlers__;(r[t]=r[t]||[{owner:null,handler:null,context:null}]).push(l.extend({owner:this,handler:e},n))}return this},hasEventHandler:function(t){return!!(this.__handlers__[t]||[]).length},off:function(t,e,n){var r,i=this.__handlers__[t]||[],s=n&&n.context;if(e)for(var _=i.length-1;0<=_;_--)(r=i[_]).handler!==e||s&&r.context!==s||this.__handlers__[t].splice(_,1);else this.__handlers__[t]=[{owner:null,handler:null,context:null}];return this},offs:function(t){var e=Array.prototype.slice.call(arguments);return e.length?l.each(e,function(t){this.__handlers__[t]&&(this.__handlers__[t]=[{owner:null,handler:null,context:null}])}.bind(this)):this.__handlers__={},this},fire:function(t,e,n){var r,i=this.__handlers__[t],s=null,_=null;if(i)for(var o=0,a=i.length;o<a;o++)if((r=i[o])&&r.handler){if(!1===(_=n&&"apply"==n.method?r.handler.apply(r.context||r.owner,e):r.handler.call(r.context||r.owner,r.owner,e,n)))return!1;if(-1===_)continue;if(n&&n.overwrite)s=_;else if(_)return _}return s},dispose:function(){return this.__handlers__={},this},destroy:function(){return this.dispose()},super:function(){var t=this.super.caller.__super__;if(t)return t.apply(this,arguments)},is:function(t){if("string"==typeof t&&(t=l.path(o,t)),t){if(this instanceof t)return!0;for(var e=this.constructor._mixins_,n=0,r=e.length;n<r;n++){if(t===e[n])return!0}}return!1},__is__:function(t){return this.is(t)},__clone__:function(){}};function c(){}l.extend(c,_,a,{_id_:0,_name_:"ZNObject",_statics_:{},_events_:[],_properties_:[],_methods_:[],_mixins_:[],_meta_:{}}),l.extend(c.prototype,_,u),l.isZNObject=function(t){return t instanceof c};var d={_arguments:function(){var t,e,n,r=arguments,i=r.length,s=r[0];if(3===i){if(t=s,e=r[1],n=r[2],!l.is(e,"function"))throw new Error("Invalid _super class.")}else if(2===i){if(l.is(s,"string"))t=s,e=null;else{if(!l.is(s,"function"))throw new Error("Invalid _super class.");t=null,e=s}n=r[1]}else{if(1!==i)throw new Error("Invalid arguments.");if(e=t=null,n=s,!l.is(n,"object"))throw new Error("The meta argument must be an object.")}return{name:t=t||"",super:e=e||c,meta:n=l.overwrite(n||{},{static:!1,statics:[],partial:!1,abstract:!1,final:!1,mixins:[],events:[],properties:[],methods:[]})}},_meta:function(n,t){var e=t.name,r=t.super,i=t.meta;return l.extend(n,_,a,{_id_:s++,_name_:e,_super_:r,_partial_:i.partial,_abstract_:i.abstract,_static_:i.static,_final_:i.final,_statics_:l.extend({},r._statics_,i.statics),_events_:r._events_.slice(0),_properties_:r._properties_.slice(0),_methods_:r._methods_.slice(0),_mixins_:r._mixins_.concat(i.mixins),_meta_:i}),l.extend(n,n._statics_),i.static?(l.each(i.events,function(t){n.defineEvent(t,{},n)}),l.each(i.properties,function(t,e){n.defineProperty(e,l.is(t,"object")?t:{value:t},n)}),l.each(i.methods,function(t,e){n.defineMethod(e,l.is(t,"function")?{value:t}:t,n)}),i.methods.init&&i.methods.init.call(n,n)):(l.each(i.mixins,function(t){var e=t.prototype;l.each(t._events_,function(t){n.defineEvent(t,e.member(t).meta)}),l.each(t._properties_,function(t){n.defineProperty(t,e.member(t).meta)}),l.each(t._methods_,function(t){_[t]||u[t]||n.defineMethod(t,e.member(t).meta)})}),l.each(i.events,function(t){n.defineEvent(t,{})}),l.each(i.properties,function(t,e){n.defineProperty(e,l.is(t,"object")?t:{value:t})}),l.each(i.methods,function(t,e){n.defineMethod(e,l.is(t,"function")?{value:t}:t)})),n}},m=function(t,e,n){if(t&&t!==c){var r=t.member("init"),i=t._mixins_,s=null;return r&&r.meta.after&&e.__afters__.push({context:e,handler:r.meta.after}),i.length&&l.each(i,function(t){t["@init"]&&(s=t["@init"].meta,s=l.is(s,"function")?s:s.value,m(t.prototype.__super__,t.prototype,n),s&&s.call(e))}),r&&r.meta.auto&&r.meta.value.apply(e,n),arguments.callee(t._super_,e)}};l.Class=function(){var h,t,e,n=d._arguments.apply(this,arguments),r=n.name,i=n.super,s=n.meta,_=s.methods.init;if(s.properties=s.properties||s.props,s.props=null,delete s.props,i._static_)throw new Error("Static class cannot be inherited.");if(i._final_)throw new Error("Final class cannot be inherited.");if(r&&s.partial&&(h=l.path(o,r)),s.static){if(h){if(!h._static_)throw new Error('Partial class "'+r+'" must be static.')}else h=function(){throw new Error("Cannot instantiate static class.")};e=h.prototype}else{if(h){if(h._static_)throw new Error('Partial class "'+r+'" must not be static.');if(h._super_!==i&&h._super_!==c)throw new Error('Partial class "'+r+'" must have consistent super class.')}else(h=s.abstract?function(){throw new Error("Cannot instantiate abstract class.")}:function(){var t=h._mixins_||[],e=h._ctors_||[],n=null,r=arguments;this.__id__=f++,this.__handlers__={},this.__initializing__=!0,this.__afters__=[];for(var i=null,s=null,_=0,o=t.length;_<o;_++)(i=t[_])["@init"]?(s=i["@init"].meta,s=l.is(s,"function")?s:s.value,m(i.prototype.__super__,this,r),s&&s.call(this)):m(i.prototype.__super__,this,r);m(this.__super__,this,r);for(var a=0,u=e.length;a<u;a++)n=e[a],(n=l.is(n,"function")?n:n.value)&&n.apply(this,r);for(;0<this.__afters__.length;){var c=this.__afters__.pop();c.handler.apply(c.context,r)}this.__afters__=null,delete this.__afters__,this.__initializing__=!1})._ctors_=[];h._super_!==i?((t=function(){}).prototype=i.prototype,(e=new t).constructor=h,e.__type__=r||"Anonymous",e.__super__=i,h.prototype=e):e=h.prototype,e.class=e.constructor,_&&(h._ctors_.push(_),e.__ctor__||(e.__ctor__=_))}return d._meta(h,n),e.__define__&&e.__define__.call(h),r&&l.path(o,r,h),h}}(zn);
!function(n){var e=Array.prototype.slice,t=(Object.prototype.hasOwnProperty,Object.prototype.toString),r={format:function(){var t=arguments,e=this;return 1==t.length&&"object"==typeof t[0]&&(t=t[0]),n.each(t,function(t,r){null!=t&&(t="object"==n.type(t)?JSON.stringify(t):t.toString?t.toString():t,e=e.replace(new RegExp("\\{"+r+"\\}","gi"),t))}),e.toString()},firstUpperCase:function(t){return t.replace(/\b(\w)(\w*)/g,function(t,r,e){return r.toUpperCase()+e})}},i={isArray:function(t){return t&&"[object Array]"===n.toString(t)&&t.constructor===Array}},o={format:function(t,r){var e="\\d(?=(\\d{"+(r||3)+"})+"+(0<t?"\\.":"$")+")";return this.toFixed(Math.max(0,~~t)).replace(new RegExp(e,"g"),"$&,")},sectionThree:function(){return this.toString().replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},price:function(t){var r=n.extend({unit:1e4,unitText:"万",prefix:"",decimal:2,sections:3},t);return 1<this/r.unit&&this%100==0?(this/r.unit).sectionThree()+r.unitText:this.format(r.decimal,r.sections)}},s={bind:function(t){var r=this;return function(){return r.apply(t,e.call(arguments,1))}}};var u,a,c,f;u=t,a=Array.isArray,c={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},f=/[\\"\u0000-\u001F\u2028\u2029]/g;function h(t){return c[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)}var p={format:function(t){var r={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var e in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[e]:("00"+r[e]).substr((""+r[e]).length)));return t}};n.fix(Array,i),n.fix(Array.prototype,{forEach:function(t,r){if(!t)return!1;for(var e=0,n=this.length;e<n;e++)t.call(r,this[e],e);return this},indexOf:function(t){for(var r=0,e=this.length;r<e;r++)if(this[r]===t)return r;return-1},lastIndexOf:function(t){for(var r=this.length-1;0<=r;r--)if(this[r]===t)return r;return-1}}),n.fix(Function.prototype,s),n.fix(String.prototype,r),n.fix(Number.prototype,o),n.fix(Date.prototype,p)}(zn);
var __isServer="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0),zn={VERSION:"1.0.8",DEBUG:!0,ZN_PATH:"",PATH:"",GLOBAL:function(){return __isServer?global:window}.call(null),isServer:__isServer};if(zn.GLOBAL.zn=zn,__isServer)zn.ZN_PATH=__dirname,zn.PATH=process.cwd(),module.exports=zn;else{var _zn_url="";try{__a__=__b__}catch(r){r.fileName?_zn_url=r.fileName:r.sourceURL?_zn_url=r.sourceURL:r.stacktrace?console.error(r.stacktrace):r.stack?_zn_url=(_zn_url=(_zn_url=r.stack.split("\n")[1]).replace(/\s/g,"")).substring(2,_zn_url.length):console.error(r.toString())}if(!_zn_url)for(var _node,_scripts=document.getElementsByTagName("script"),_src="",i=0,_len=scripts.length;i<_len;i++)if((_node=scripts[i]).getAttribute&&("zn.js"===(_src=_node.getAttribute("src")||"").slice(-5)||"zn.minx.js"===_src.slice(-10))){_zn_url=_src;break}if(!_zn_url)throw new Error("zn.js has not been included, please do it first.");zn.ZN_PATH=_zn_url.substring(0,_zn_url.lastIndexOf("/")+1)}
!function(p){var _=Object.prototype.toString,o={isNull:function(e){return null==e},isNotNull:function(e){return null!=e},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var e=arguments,n=null,t=null;return e.length<2?e[0]:(n=(n=e[0]).toString?n.toString():n,t=e[1],c.each(t,function(e,t){null!=e&&(e=c.is(e,"object")?JSON.stringify(e):e.toString?e.toString():e,n=n.replace(new RegExp("\\{"+t+"\\}","gi"),e))}),n)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}).toUpperCase()},fix:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(e,t){var n=null,r=null;switch(_.call(t)){case"[object Object]":for(var i in t)switch(n=e[i],r=t[i],_.call(r)){case"[object Object]":"[object Object]"==_.call(n)?e[i]=this.deepAssign(n,r):e[i]=r;break;case"[object Array]":"[object Array]"==_.call(n)?e[i]=e[i].concat(r):e[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":e[i]=r}break;case"[object Array]":t.unshift(e),o.deepAssigns.apply(this,t)}return e},deepAssigns:function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)o.deepAssign(e,arguments[t]);return e},convertArrayArgv:function(e,t){for(var n=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,_={},c=!1,u=0,f=e.length;u<f;u++)if(-1!==(a=e[u]).indexOf(r))i[o=a.replace(r,"")]=!0,_[u+1]=o,c=c||!0;else if(c)if(_[u])i[_[u]]=a;else{for(var l=u-1;!_[l]&&0<l;)l-=1;if(_[l]){var s=i[_[l]];null!=s?"string"==typeof s?i[_[l]]=[s,a]:"object"==typeof s&&i[_[l]].push(a):i[_[l]]=a}}else n.push(a);return{env:n,argv:i}},overwrite:function(e){for(var t=e||{},n=1,r=arguments.length;n<r;n++){var i=arguments[n];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(e,t,n){var r=e||{};if(t){var i,o=t.split("."),a=o.length,_=0;if(arguments.length<3)for(;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&_<a;_++)i=o[_],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[_],r&&(r.__set__?r.__set__(i,n):r[i]=n,r=n)}}return r},invoke:function(e,t,n){if(e&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(e,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=e)[t],i&&i.apply(r,n)}},deepEachObject:function(e,t,n){if(c.is(e,"object")){var r,i=null;for(var o in e)i=e[o],c.is(i,"object")?this.deepEachObject(i,t,n):null!=(r=t&&t.call(n,i,o,e))&&(e[o]=r)}return e},arrayValueToObject:function(e,t,n){if(c.is(e,"array")){for(var r,i=null,o={},a=0,_=e.length;a<_;a++)i=e[a],null!=(r=t&&t.call(n,i,a,e,o))&&(o[i]=r);e=o}return e}},c={toString:function(e){return e&&e.toString?e.toString():_.call(e)},each:function(e,t,n){if(e&&t)if(e.__each__)e.__each__(t,n);else{var r=e.length,i=null;if(0<r&&"[object Array]"===_.call(e)){for(var o=0;o<r;o++)if(!1===(i=t.call(n,e[o],o)))return!1}else for(var a in e)if(e.hasOwnProperty(a)){if(!1===(i=t.call(n,e[a],a)))return!1;if(-1===i)continue}}},clone:function(e){if(e){if(e.__clone__)return e.__clone__();if(p.is(e,"array"))return e.slice(0);var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}return e},type:function(e){return e&&e.__type__?e.__type__:_.call(e).slice(8,-1).toLowerCase()},is:function(e,t){if(e&&e.__is__)return e.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return e&&e.constructor===Object;default:return this.type(e)===t}else if("function"==typeof t)return e instanceof t},may:function(e,t){return!!e&&(e.__may__?e.__may__(t):e.hasOwnProperty("on"+t))},can:function(e,t){return!!e&&(e.__can__?e.__can__(t):"function"==typeof e[t])},has:function(e,t){return!!e&&(e.__has__?e.__has__(t):e.hasOwnProperty(t))},get:function(e,t){if(e)return e.__get__?e.__get__(t):e[t]},set:function(e,t,n){e&&(e.__set__?e.__set__(t,n):e[t]=n)},gets:function(e){if(e){if(e.__gets__)return e.__gets__();var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},sets:function(e,t){if(e&&t)if(e.__sets__)e.__sets__(t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}};o.extend(p,o),o.extend(p,c)}(zn);
!function(p){var c=Object.prototype.toString,o={isNull:function(n){return null==n},isNotNull:function(n){return null!=n},idle:function(){},idleArray:function(){return[]},idleObject:function(){return{}},format:function(){var n=arguments,e=null,t=null;return n.length<2?n[0]:(e=(e=n[0]).toString?e.toString():e,t=n[1],_.each(t,function(n,t){null!=n&&(n=_.is(n,"object")?JSON.stringify(n):n.toString?n.toString():n,e=e.replace(new RegExp("\\{"+t+"\\}","gi"),n))}),e)},uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)}).toUpperCase()},fix:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&"function"!=typeof t[o]&&(t[o]=i[o])}return t},extend:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t},deepAssign:function(n,t){var e=null,r=null;switch(c.call(t)){case"[object Object]":for(var i in t)switch(e=n[i],r=t[i],c.call(r)){case"[object Object]":"[object Object]"==c.call(e)?n[i]=this.deepAssign(e,r):n[i]=r;break;case"[object Array]":"[object Array]"==c.call(e)?n[i]=n[i].concat(r):n[i]=r;break;case"[object Null]":case"[object Boolean]":case"[object Function]":case"[object Number]":case"[object String]":n[i]=r}break;case"[object Array]":t.unshift(n),o.deepAssigns.apply(this,t)}return n},callOnce:function(n){var t=!1;return function(){t||(t=!0,n.apply(this,arguments))}},deepAssigns:function(){for(var n=arguments[0],t=1,e=arguments.length;t<e;t++)o.deepAssign(n,arguments[t]);return n},convertArrayArgv:function(n,t){for(var e=[],r=p.extend({prefix:"--"},t).prefix,i={},o="",a=null,c={},_=!1,u=0,f=n.length;u<f;u++)if(-1!==(a=n[u]).indexOf(r))i[o=a.replace(r,"")]=!0,c[u+1]=o,_=_||!0;else if(_)if(c[u])i[c[u]]=a;else{for(var l=u-1;!c[l]&&0<l;)l-=1;if(c[l]){var s=i[c[l]];null!=s?"string"==typeof s?i[c[l]]=[s,a]:"object"==typeof s&&i[c[l]].push(a):i[c[l]]=a}}else e.push(a);return{env:e,argv:i}},overwrite:function(n){for(var t=n||{},e=1,r=arguments.length;e<r;e++){var i=arguments[e];for(var o in i)i.hasOwnProperty(o)&&void 0===t[o]&&(t[o]=i[o])}return t},path:function(n,t,e){var r=n||{};if(t){var i,o=t.split("."),a=o.length,c=0;if(arguments.length<3)for(;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i];else{for(a-=1;r&&c<a;c++)i=o[c],r=r.__get__?r.__get__(i):r[i]=r[i]||{};i=o[c],r&&(r.__set__?r.__set__(i,e):r[i]=e,r=e)}}return r},invoke:function(n,t,e){if(n&&t){var r,i,o=t.lastIndexOf(".");0<o?(r=p.path(n,t.substring(0,o)))&&(i=r[t.substring(o+1)]):i=(r=n)[t],i&&i.apply(r,e)}},deepEachObject:function(n,t,e){if(_.is(n,"object")){var r,i=null;for(var o in n)i=n[o],_.is(i,"object")?this.deepEachObject(i,t,e):null!=(r=t&&t.call(e,i,o,n))&&(n[o]=r)}return n},arrayValueToObject:function(n,t,e){if(_.is(n,"array")){for(var r,i=null,o={},a=0,c=n.length;a<c;a++)i=n[a],null!=(r=t&&t.call(e,i,a,n,o))&&(o[i]=r);n=o}return n}},_={toString:function(n){return n&&n.toString?n.toString():c.call(n)},each:function(n,t,e){if(n&&t)if(n.__each__)n.__each__(t,e);else{var r=n.length,i=null;if(0<r&&"[object Array]"===c.call(n)){for(var o=0;o<r;o++)if(!1===(i=t.call(e,n[o],o)))return!1}else for(var a in n)if(n.hasOwnProperty(a)){if(!1===(i=t.call(e,n[a],a)))return!1;if(-1===i)continue}}},clone:function(n){if(n){if(n.__clone__)return n.__clone__();if(p.is(n,"array"))return n.slice(0);var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}return n},type:function(n){return n&&n.__type__?n.__type__:c.call(n).slice(8,-1).toLowerCase()},is:function(n,t){if(n&&n.__is__)return n.__is__(t);if("string"==typeof t)switch(t.toLowerCase()){case"plain":return n&&n.constructor===Object;default:return this.type(n)===t}else if("function"==typeof t)return n instanceof t},may:function(n,t){return!!n&&(n.__may__?n.__may__(t):n.hasOwnProperty("on"+t))},can:function(n,t){return!!n&&(n.__can__?n.__can__(t):"function"==typeof n[t])},has:function(n,t){return!!n&&(n.__has__?n.__has__(t):n.hasOwnProperty(t))},get:function(n,t){if(n)return n.__get__?n.__get__(t):n[t]},set:function(n,t,e){n&&(n.__set__?n.__set__(t,e):n[t]=e)},gets:function(n){if(n){if(n.__gets__)return n.__gets__();var t={};for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}},sets:function(n,t){if(n&&t)if(n.__sets__)n.__sets__(t);else for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])}};o.extend(p,o),o.extend(p,_)}(zn);
!function(l){var o=l.GLOBAL,s=1,f=1,p={fixTargetCtor:function(t){return t instanceof c?t.constructor:t},fixTargetKey:function(t){return"@"+t},defineEvent:function(t,n,e){var r=p.fixTargetCtor(t),i=p.fixTargetKey(n),s=i in r,_={};return s||(_=Object.defineProperty(t,"on"+n.toLowerCase(),{get:function(){var t=this.__handlers__[n];return t?t[0].handler:null},set:function(t){var e=this.__handlers__;(e[n]=e[n]||[])[0]={owner:this,handler:t,context:null}}})),r[i]={name:n,type:"event",meta:e,descriptor:_},s},defineProperty:function(t,e,n){var r,i,s,_=p.fixTargetCtor(t),o=p.fixTargetKey(e),a=o in _;if("value"in n){var u=n.value,c="_"+e,h=n.get,f=n.set;i=h||function(){return c in this?this[c]:l.is(u,"function")?u.call(this):u},s=n.readonly?function(t,e){if(!e||!e.force)return!1;this[c]=t}:f||function(t){this[c]=t}}else i=n.get||function(){},s=n.set||function(){return!1};return a&&(i.__super__=_[o].getter,s.__super__=_[o].setter),r=Object.defineProperty(t,e,{get:i,set:s,configurable:!0}),_[o]={name:e,type:"property",meta:n,getter:i,setter:s,descriptor:r},a},defineMethod:function(t,e,n){var r=p.fixTargetCtor(t),i=p.fixTargetKey(e),s=i in r;return r[i]={name:e,type:"method",meta:n},e in t&&(n.value||(n.value=function(){}),n.value.__super__=t[e]),t[e]=n.value,s}},_={__handlers__:{},member:function(t,e){var n=p.fixTargetCtor(e||this),r=n[p.fixTargetKey(t)];return r||n===c?r:this.member(t,n._super_)},may:function(t){var e=this.member(t);return e&&"event"==e.type},has:function(t){var e=this.member(t);return e&&"property"==e.type},can:function(t){var e=this.member(t);return e&&"method"==e.type},get:function(t,e){var n=this.member(t);if(n&&n.getter)return n.getter.call(this,e)},set:function(t,e,n){var r=this.member(t);return r&&r.setter&&r.setter.call(this,e,n),this},gets:function(e){var n={},t=p.fixTargetCtor(this)._properties_;return l.each(t,function(t){n[t]=this.get(t,e)},this),n},sets:function(t,e,n){if(t){var r=null;for(var i in t)t.hasOwnProperty(i)&&(r=t[i],!1!==(n&&n(r,i,e))&&this.set(i,r,e))}return this},each:function(t,e){for(var n=p.fixTargetCtor(this)._properties_,r=0,i=n.length;r<i;r++){var s=n[r];if(!1===t.call(e,s,r,this.member(s),this.get(s)))return!1}return this},__may__:function(t){return this.may(t)},__has__:function(t){return this.has(t)},__can__:function(t){return this.can(t)},__get__:function(t){return this.get(t)},__gets__:function(){return this.gets()},__set__:function(t,e){this.set(t,e)},__sets__:function(t){this.sets(t)},__each__:function(t,e){return this.each(t,e)}},a={toString:function(){return JSON.stringify({ClassName:this._name_||"Anonymous",ClassID:this._id_})},createSelf:function(){return new this.constructor.apply(this,Array.prototype.slice.call(arguments))},getProperties:function(r,i){var s={};if(!this.getMeta||"ZNObject"==this._name_)return s;var t=this._super_,e=this._mixins_;return t&&l.extend(s,t.getProperties(r,i)),e&&e.length&&l.each(e,function(t){l.extend(s,t.getProperties(r,i))}),l.each(this.getMeta("properties"),function(t,e){var n=r&&r.call(i||this,t,e,s);if(!1===n||-1===n)return n;t.hidden||(s[e]=t)},this),s},getProperty:function(n){var r=null;return n&&this.getProperties(function(t,e){return n==e&&(r=field),-1}),r},existProperty:function(t){return!!this.getProperty(t)},getMeta:function(t){return t?this._meta_[t]:this._meta_},setMeta:function(t,e){return t&&e&&(this._meta_[t]=e),this},defineEvent:function(t,e,n){return p.defineEvent(n||this.prototype,t,e)||this._events_.push(t),this},defineProperty:function(t,e,n){return p.defineProperty(n||this.prototype,t,e)||this._properties_.push(t),this},defineMethod:function(t,e,n){return p.defineMethod(n||this.prototype,t,e)||this._methods_.push(t),this}},u={toString:function(){var t={ClassName:this.__name__||"Anonymous",InstanceID:this.__id__,Meta:this.constructor._meta_};return JSON.stringify(t)},toJson:function(){var n={};return l.each(this.constructor.getProperties(),function(t,e){n[e]=this.get(e)},this),n},getProperties:function(){return this.constructor.getProperties.apply(this,arguments)},getPropertie:function(t){return this.constructor.getPropertie(t)},upon:function(t,e,n){if(e){var r=this.__handlers__;(r[t]=r[t]||[])[0]=l.extend({owner:this,handler:e},n)}return this},on:function(t,e,n){if(e){var r=this.__handlers__;(r[t]=r[t]||[{owner:null,handler:null,context:null}]).push(l.extend({owner:this,handler:e},n))}return this},hasEventHandler:function(t){return!!(this.__handlers__[t]||[]).length},off:function(t,e,n){var r,i=this.__handlers__[t]||[],s=n&&n.context;if(e)for(var _=i.length-1;0<=_;_--)(r=i[_]).handler!==e||s&&r.context!==s||this.__handlers__[t].splice(_,1);else this.__handlers__[t]=[{owner:null,handler:null,context:null}];return this},offs:function(t){var e=Array.prototype.slice.call(arguments);return e.length?l.each(e,function(t){this.__handlers__[t]&&(this.__handlers__[t]=[{owner:null,handler:null,context:null}])}.bind(this)):this.__handlers__={},this},fire:function(t,e,n){var r,i=this.__handlers__[t],s=null,_=null;if(i)for(var o=0,a=i.length;o<a;o++)if((r=i[o])&&r.handler){if(!1===(_=n&&"apply"==n.method?r.handler.apply(r.context||r.owner,e):r.handler.call(r.context||r.owner,r.owner,e,n)))return!1;if(-1===_)continue;if(n&&n.overwrite)s=_;else if(_)return _}return s},dispose:function(){return this.__handlers__={},this},destroy:function(){return this.dispose()},super:function(){var t=this.super.caller.__super__;if(t)return t.apply(this,arguments)},is:function(t){if("string"==typeof t&&(t=l.path(o,t)),t){if(this instanceof t)return!0;for(var e=this.constructor._mixins_,n=0,r=e.length;n<r;n++){if(t===e[n])return!0}}return!1},__is__:function(t){return this.is(t)},__clone__:function(){}};function c(){}l.extend(c,_,a,{_id_:0,_name_:"ZNObject",_statics_:{},_events_:[],_properties_:[],_methods_:[],_mixins_:[],_meta_:{}}),l.extend(c.prototype,_,u),l.isZNObject=function(t){return t instanceof c};var d={_arguments:function(){var t,e,n,r=arguments,i=r.length,s=r[0];if(3===i){if(t=s,e=r[1],n=r[2],!l.is(e,"function"))throw new Error("Invalid _super class.")}else if(2===i){if(l.is(s,"string"))t=s,e=null;else{if(!l.is(s,"function"))throw new Error("Invalid _super class.");t=null,e=s}n=r[1]}else{if(1!==i)throw new Error("Invalid arguments.");if(e=t=null,n=s,!l.is(n,"object"))throw new Error("The meta argument must be an object.")}return{name:t=t||"",super:e=e||c,meta:n=l.overwrite(n||{},{static:!1,statics:[],partial:!1,abstract:!1,final:!1,mixins:[],events:[],properties:[],methods:[]})}},_meta:function(n,t){var e=t.name,r=t.super,i=t.meta;return l.extend(n,_,a,{_id_:s++,_name_:e,_super_:r,_partial_:i.partial,_abstract_:i.abstract,_static_:i.static,_final_:i.final,_statics_:l.extend({},r._statics_,i.statics),_events_:r._events_.slice(0),_properties_:r._properties_.slice(0),_methods_:r._methods_.slice(0),_mixins_:r._mixins_.concat(i.mixins),_meta_:i}),l.extend(n,n._statics_),i.static?(l.each(i.events,function(t){n.defineEvent(t,{},n)}),l.each(i.properties,function(t,e){n.defineProperty(e,l.is(t,"object")?t:{value:t},n)}),l.each(i.methods,function(t,e){n.defineMethod(e,l.is(t,"function")?{value:t}:t,n)}),i.methods.init&&i.methods.init.call(n,n)):(l.each(i.mixins,function(t){var e=t.prototype;l.each(t._events_,function(t){n.defineEvent(t,e.member(t).meta)}),l.each(t._properties_,function(t){n.defineProperty(t,e.member(t).meta)}),l.each(t._methods_,function(t){_[t]||u[t]||n.defineMethod(t,e.member(t).meta)})}),l.each(i.events,function(t){n.defineEvent(t,{})}),l.each(i.properties,function(t,e){n.defineProperty(e,l.is(t,"object")?t:{value:t})}),l.each(i.methods,function(t,e){n.defineMethod(e,l.is(t,"function")?{value:t}:t)})),n}},m=function(t,e,n){if(t&&t!==c){var r=t.member("init"),i=t._mixins_,s=null;return r&&r.meta.after&&e.__afters__.push({context:e,handler:r.meta.after}),i.length&&l.each(i,function(t){t["@init"]&&(s=t["@init"].meta,s=l.is(s,"function")?s:s.value,m(t.prototype.__super__,t.prototype,n),s&&s.call(e))}),r&&r.meta.auto&&r.meta.value.apply(e,n),arguments.callee(t._super_,e)}};l.Class=function(){var h,t,e,n=d._arguments.apply(this,arguments),r=n.name,i=n.super,s=n.meta,_=s.methods.init;if(s.properties=s.properties||s.props,s.props=null,delete s.props,i._static_)throw new Error("Static class cannot be inherited.");if(i._final_)throw new Error("Final class cannot be inherited.");if(r&&s.partial&&(h=l.path(o,r)),s.static){if(h){if(!h._static_)throw new Error('Partial class "'+r+'" must be static.')}else h=function(){throw new Error("Cannot instantiate static class.")};e=h.prototype}else{if(h){if(h._static_)throw new Error('Partial class "'+r+'" must not be static.');if(h._super_!==i&&h._super_!==c)throw new Error('Partial class "'+r+'" must have consistent super class.')}else(h=s.abstract?function(){throw new Error("Cannot instantiate abstract class.")}:function(){var t=h._mixins_||[],e=h._ctors_||[],n=null,r=arguments;this.__id__=f++,this.__handlers__={},this.__initializing__=!0,this.__afters__=[];for(var i=null,s=null,_=0,o=t.length;_<o;_++)(i=t[_])["@init"]?(s=i["@init"].meta,s=l.is(s,"function")?s:s.value,m(i.prototype.__super__,this,r),s&&s.call(this)):m(i.prototype.__super__,this,r);m(this.__super__,this,r);for(var a=0,u=e.length;a<u;a++)n=e[a],(n=l.is(n,"function")?n:n.value)&&n.apply(this,r);for(;0<this.__afters__.length;){var c=this.__afters__.pop();c.handler.apply(c.context,r)}this.__afters__=null,delete this.__afters__,this.__initializing__=!1})._ctors_=[];h._super_!==i?((t=function(){}).prototype=i.prototype,(e=new t).constructor=h,e.__type__=r||"Anonymous",e.__super__=i,h.prototype=e):e=h.prototype,e.class=e.constructor,_&&(h._ctors_.push(_),e.__ctor__||(e.__ctor__=_))}return d._meta(h,n),e.__define__&&e.__define__.call(h),r&&l.path(o,r,h),h}}(zn);

@@ -4,0 +4,0 @@ !function(n){var e=Array.prototype.slice,t=(Object.prototype.hasOwnProperty,Object.prototype.toString),r={format:function(){var t=arguments,e=this;return 1==t.length&&"object"==typeof t[0]&&(t=t[0]),n.each(t,function(t,r){null!=t&&(t="object"==n.type(t)?JSON.stringify(t):t.toString?t.toString():t,e=e.replace(new RegExp("\\{"+r+"\\}","gi"),t))}),e.toString()},firstUpperCase:function(t){return t.replace(/\b(\w)(\w*)/g,function(t,r,e){return r.toUpperCase()+e})}},i={isArray:function(t){return t&&"[object Array]"===n.toString(t)&&t.constructor===Array}},o={format:function(t,r){var e="\\d(?=(\\d{"+(r||3)+"})+"+(0<t?"\\.":"$")+")";return this.toFixed(Math.max(0,~~t)).replace(new RegExp(e,"g"),"$&,")},sectionThree:function(){return this.toString().replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},price:function(t){var r=n.extend({unit:1e4,unitText:"万",prefix:"",decimal:2,sections:3},t);return 1<this/r.unit&&this%100==0?(this/r.unit).sectionThree()+r.unitText:this.format(r.decimal,r.sections)}},s={bind:function(t){var r=this;return function(){return r.apply(t,e.call(arguments,1))}}};var u,a,c,f;u=t,a=Array.isArray,c={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},f=/[\\"\u0000-\u001F\u2028\u2029]/g;function h(t){return c[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)}var p={format:function(t){var r={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var e in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[e]:("00"+r[e]).substr((""+r[e]).length)));return t}};n.fix(Array,i),n.fix(Array.prototype,{forEach:function(t,r){if(!t)return!1;for(var e=0,n=this.length;e<n;e++)t.call(r,this[e],e);return this},indexOf:function(t){for(var r=0,e=this.length;r<e;r++)if(this[r]===t)return r;return-1},lastIndexOf:function(t){for(var r=this.length-1;0<=r;r--)if(this[r]===t)return r;return-1}}),n.fix(Function.prototype,s),n.fix(String.prototype,r),n.fix(Number.prototype,o),n.fix(Date.prototype,p)}(zn);

{
"name": "@zeanium/core",
"version": "1.0.9",
"version": "1.0.10",
"description": "Javascript OOP framework for Node.js and Browser, React Native.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc