| /*! (C) Andrea Giammarchi - MIT Style License */ | ||
| var Class=Class||function(e){"use strict";function D(e,t,n,r){for(var s,o=[],u=0;u<e.length;u++)s=X(e[u]),d.call(s,i)&&o.push(s[i]),B(s,t,n,!1,!1,r);return o}function P(e){for(var t,n,r,i=y(N(e)),s=C(e),o=0;o<s.length;o++)t=s[o],n=E(e,t),d.call(n,f)&&j(n,P),w(i,t,n);return i}function H(e,t){for(var n,r,i,s,o=C(e),u=0;u<o.length;u++)n=o[u],r=E(e,n),d.call(t,n)?d.call(r,f)&&(i=r[f],z(i)&&(r=E(t,n),d.call(r,f)&&(s=r[f],z(s)&&H(i,s)))):(d.call(r,f)&&j(r,P),w(t,n,r))}function B(e,t,n,r,i,s){for(var o,u=typeof e!="function",a=C(e),f=0;f<a.length;f++)o=a[f],(u||A.call(L,o)<0)&&U(o,i)&&(d.call(t,o)&&J("duplicated: "+o.toString()),V(n,t,o,E(e,o),r,s))}function j(e,t){var n=e[f];z(n)&&(e[f]=t(n))}function F(e,t){var n=function(){};return e&&""+t!=""+n?function(){return t.apply(this,arguments)}:n}function I(e,t,n,r){var i=R(t,r);w(e,t,{enumerable:!1,configurable:i,writable:i,value:n})}function q(e){return e?(e<65||90<e)&&(e<97||122<e)&&e!==95:!0}function R(e,t){return t?!W(e):!0}function U(e,a){return e!==t&&e!==n&&e!==r&&e!==s&&e!==o&&e!==u&&e!==l&&(a||e!==i)}function z(e){return e!=null&&typeof e=="object"}function W(e){for(var t,n=0;n<e.length;n++){t=e.charCodeAt(n);if((t<65||90<t)&&t!==95)return!1}return!0}function X(t){if(z(t))return t;var n,r,s,o,u;if(t.isClass){t.length&&J((t.name||"Class")+" should not expect arguments");for(o={init:t},u=t.prototype;u&&u!==e.prototype;u=N(u))for(n=0,s=C(u);n<s.length;n++)r=s[n],U(r,!1)&&!d.call(o,r)&&w(o,r,E(u,r))}else for(n=0,o={},u=t({}),s=C(u);n<s.length;n++)r=s[n],r!==i&&(~r.toString().indexOf("mixin:init")&&k(u[r])?o.init=u[r][0]:w(o,r,E(u,r)));return o}function V(e,n,r,i,s,o){var u=d.call(i,f),a,l;if(s){if(d.call(n,r)){e&&z(n[r])&&z(e[t][r])&&H(e[t][r],n[r]);return}u&&j(i,P)}else u?(l=i[f],typeof l=="function"&&M(l)&&(i[f]=K(e,r,l,s))):o&&(Q(e,r,i,"get"),Q(e,r,i,"set"));a=R(r,s),i.enumerable=!1,i.configurable=a,u&&(i.writable=a),w(n,r,i)}function $(e,t){for(var n,r,i=0;i<e.length;i++){n=e[i];for(r in n)d.call(n,r)&&!d.call(t,r)&&J(r.toString()+" is not implemented")}}function J(e){try{console.warn(e)}catch(t){}}function K(e,t,n,r){return function(){d.call(this,u)||I(this,u,null,r);var i=this[u],s=this[u]=e[t],o=n.apply(this,arguments);return this[u]=i,o}}function Q(e,t,n,r,i){d.call(n,r)&&M(n[r])&&(n[r]=K(E(e,t),r,n[r],i))}var t="constructor",n="extends",r="implements",i="init",s="prototype",o="static",u="super",a="toString",f="value",l="with",c="__proto__",h=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString",a,"valueOf"],p=e[s],d=p[h[0]],v=p[a],m=p[h[2]]||function(e){for(var t in this)if(e===t)return d.call(this,e);return!1},g=!m.call({toString:0},a),y=e.create||function(e){var t=this instanceof y;return y[s]=t?b:e,t?this:new y},b=y[s],w=e.defineProperty,E=e.getOwnPropertyDescriptor,S=e.getOwnPropertyNames||function(e){var t=[],n,r;for(r in e)d.call(e,r)&&t.push(r);if(g)for(n=0;n<h.length;n++)r=h[n],d.call(e,r)&&t.push(r);return t},x=e.getOwnPropertySymbols||function(){return[]},T=e.getPrototypeOf,N=T||function(e){return e[c]||null},C=function(e){return S(e).concat(x(e))},k=Array.isArray||function(e){return v.call(e)==="[object Array]"},L=S(function(){}).concat("arguments"),A=L.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},O={value:!0},M=(""+function(){this["super"]()}).indexOf(u)<0?function(){return!0}:function(e){var t=""+e,n=t.indexOf(u);return n<0?!1:q(t.charCodeAt(n-1))&&q(t.charCodeAt(n+5))};try{w({},"{}",{})}catch(_){"__defineGetter__"in{}?(w=function(e,t,n){return d.call(n,f)?e[t]=n[f]:(d.call(n,"get")&&e.__defineGetter__(t,n.get),d.call(n,"set")&&e.__defineSetter__(t,n.set)),e},E=function(e,t){var n=e.__lookupGetter__(t),r=e.__lookupSetter__(t),i={};return n||r?(n&&(i.get=n),r&&(i.set=r)):i[f]=e[t],i}):(w=function(e,t,n){return e[t]=n[f],e},E=function(e,t){return{value:e[t]}})}return function(e){var i=d.call(e,t),u=d.call(e,n),a=u&&e[n],f=u&&typeof a=="function",h=f?a[s]:a,p=i?e[t]:F(f,a),m=u&&i&&M(p),g=u?y(h):p[s],b=v.call(h).indexOf(" GObject_")<0,E,S;return m&&b&&(p=K(h,t,p,!1)),d.call(e,l)&&(E=D([].concat(e[l]),g,h,b),S=E.length,S&&(p=function(e){return function(){var t=0;while(t<S)E[t++].call(this);return e.apply(this,arguments)}}(p),p[s]=g)),d.call(e,o)&&B(e[o],p,h,!0,!0,b),u&&(a!==h&&B(a,p,h,!0,!0,b),p[s]=g),g[t]!==p&&I(g,t,p,!1),B(e,g,h,!1,!0,b),d.call(e,r)&&$([].concat(e[r]),g),u&&!T&&I(g,c,h,!1),w(p,"isClass",O)}}(Object); | ||
| var Class=Class||function(e){"use strict";function D(e,t,n,r){for(var s,o=[],u=0;u<e.length;u++)s=X(e[u]),d.call(s,i)&&o.push(s[i]),B(s,t,n,!1,!1,r);return o}function P(e){for(var t,n,r,i=y(N(e)),s=C(e),o=0;o<s.length;o++)t=s[o],n=E(e,t),d.call(n,f)&&j(n,P),w(i,t,n);return i}function H(e,t){for(var n,r,i,s,o=C(e),u=0;u<o.length;u++)n=o[u],r=E(e,n),d.call(t,n)?d.call(r,f)&&(i=r[f],z(i)&&(r=E(t,n),d.call(r,f)&&(s=r[f],z(s)&&H(i,s)))):(d.call(r,f)&&j(r,P),w(t,n,r))}function B(e,t,n,r,i,s){for(var o,u=typeof e!="function",a=C(e),f=0;f<a.length;f++)o=a[f],(u||A.call(L,o)<0)&&U(o,i)&&(d.call(t,o)&&J("duplicated: "+o.toString()),V(n,t,o,E(e,o),r,s))}function j(e,t){var n=e[f];z(n)&&(e[f]=t(n))}function F(e,t){var n=function(){};return e&&""+t!=""+n?function(){return t.apply(this,arguments)}:n}function I(e,t,n,r){var i=R(t,r);w(e,t,{enumerable:!1,configurable:i,writable:i,value:n})}function q(e){return e?(e<65||90<e)&&(e<97||122<e)&&e!==95:!0}function R(e,t){return t?!W(e):!0}function U(e,a){return e!==t&&e!==n&&e!==r&&e!==s&&e!==o&&e!==u&&e!==l&&(a||e!==i)}function z(e){return e!=null&&typeof e=="object"}function W(e){for(var t,n=0;n<e.length;n++){t=e.charCodeAt(n);if((t<65||90<t)&&t!==95)return!1}return!0}function X(t){if(z(t))return t;var n,r,s,o,u;if(t.isClass){t.length&&J((t.name||"Class")+" should not expect arguments");for(o={init:t},u=t.prototype;u&&u!==e.prototype;u=N(u))for(n=0,s=C(u);n<s.length;n++)r=s[n],U(r,!1)&&!d.call(o,r)&&w(o,r,E(u,r))}else for(n=0,o={},u=t({}),s=C(u);n<s.length;n++)r=s[n],r!==i&&(~r.toString().indexOf("mixin:init")&&k(u[r])?o.init=u[r][0]:w(o,r,E(u,r)));return o}function V(e,n,r,i,s,o){var u=d.call(i,f),a,l;if(s){if(d.call(n,r)){e&&z(n[r])&&z(e[t][r])&&H(e[t][r],n[r]);return}u&&j(i,P)}else u?(l=i[f],typeof l=="function"&&M(l)&&(i[f]=K(e,r,l,s))):o&&(Q(e,r,i,"get"),Q(e,r,i,"set"));a=R(r,s),i.enumerable=!1,i.configurable=a,u&&(i.writable=a),w(n,r,i)}function $(e,t){for(var n,r,i=0;i<e.length;i++){n=e[i];for(r in n)d.call(n,r)&&!d.call(t,r)&&J(r.toString()+" is not implemented")}}function J(e){try{console.warn(e)}catch(t){}}function K(e,t,n,r){return function(){d.call(this,u)||I(this,u,null,r);var i=this[u],s=this[u]=e[t],o=n.apply(this,arguments);return this[u]=i,o}}function Q(e,t,n,r,i){d.call(n,r)&&M(n[r])&&(n[r]=K(E(e,t),r,n[r],i))}var t="constructor",n="extends",r="implements",i="init",s="prototype",o="static",u="super",a="toString",f="value",l="with",c="__proto__",h=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString",a,"valueOf"],p=e[s],d=p[h[0]],v=p[a],m=p[h[2]]||function(e){for(var t in this)if(e===t)return d.call(this,e);return!1},g=!m.call({toString:0},a),y=e.create||function(e){var t=this instanceof y;return y[s]=t?b:e||p,t?this:new y},b=y[s],w=e.defineProperty,E=e.getOwnPropertyDescriptor,S=e.getOwnPropertyNames||function(e){var t=[],n,r;for(r in e)d.call(e,r)&&t.push(r);if(g)for(n=0;n<h.length;n++)r=h[n],d.call(e,r)&&t.push(r);return t},x=e.getOwnPropertySymbols||function(){return[]},T=e.getPrototypeOf,N=T||function(e){return e[c]||null},C=function(e){return S(e).concat(x(e))},k=Array.isArray||function(e){return v.call(e)==="[object Array]"},L=S(function(){}).concat("arguments"),A=L.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},O={value:!0},M=(""+function(){this["super"]()}).indexOf(u)<0?function(){return!0}:function(e){var t=""+e,n=t.indexOf(u);return n<0?!1:q(t.charCodeAt(n-1))&&q(t.charCodeAt(n+5))};try{w({},"{}",{})}catch(_){"__defineGetter__"in{}?(w=function(e,t,n){return d.call(n,f)?e[t]=n[f]:(d.call(n,"get")&&e.__defineGetter__(t,n.get),d.call(n,"set")&&e.__defineSetter__(t,n.set)),e},E=function(e,t){var n=e.__lookupGetter__(t),r=e.__lookupSetter__(t),i={};return n||r?(n&&(i.get=n),r&&(i.set=r)):i[f]=e[t],i}):(w=function(e,t,n){return e[t]=n[f],e},E=function(e,t){return{value:e[t]}})}return function(e){var i=d.call(e,t),u=d.call(e,n),a=u&&e[n],f=u&&typeof a=="function",h=f?a[s]:a,p=i?e[t]:F(f,a),m=u&&i&&M(p),g=u?y(h):p[s],b=v.call(h).indexOf(" GObject_")<0,E,S;return m&&b&&(p=K(h,t,p,!1)),d.call(e,l)&&(E=D([].concat(e[l]),g,h,b),S=E.length,S&&(p=function(e){return function(){var t=0;while(t<S)E[t++].call(this);return e.apply(this,arguments)}}(p),p[s]=g)),d.call(e,o)&&B(e[o],p,h,!0,!0,b),u&&(a!==h&&B(a,p,h,!0,!0,b),p[s]=g),g[t]!==p&&I(g,t,p,!1),B(e,g,h,!1,!0,b),d.call(e,r)&&$([].concat(e[r]),g),u&&!T&&I(g,c,h,!1),w(p,"isClass",O)}}(Object); |
@@ -74,3 +74,3 @@ /*! | ||
| var isInstance = this instanceof create; | ||
| create[PROTOTYPE] = isInstance ? createPrototype : proto; | ||
| create[PROTOTYPE] = isInstance ? createPrototype : (proto || ObjectPrototype); | ||
| return isInstance ? this : new create(); | ||
@@ -77,0 +77,0 @@ }, |
+1
-1
| { | ||
| "version": "2.1.0", | ||
| "version": "2.1.1", | ||
| "license": "MIT", | ||
@@ -4,0 +4,0 @@ "name": "es-class", |
40279
0.06%