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

@microsoft/dynamicproto-js

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/dynamicproto-js - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

microsoft-dynamicproto-js-1.1.6.tgz

45

lib/dist/amd/dynamicproto-js.js
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -57,6 +57,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -72,2 +68,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -89,2 +93,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -120,18 +128,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -145,5 +155,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -150,0 +159,0 @@ else {

4

lib/dist/amd/dynamicproto-js.min.js
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
define(function(){"use strict";var u="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,w="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",O="useBaseInst",m="setInstFuncs",o=Object,C=o.getPrototypeOf,F=0;function k(n,t){return n&&o[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===o[v]||n===Array[v])}function B(n){return b(n)||n===Function[v]}function D(n){if(n){if(C)return C(n);var t=n[r]||n[i]||n[v]||(n[u]?n[u][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function $(n,t){var r=[],u=o.getOwnPropertyNames;if(u)r=u(n);else for(var e in n)"string"==typeof e&&k(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function j(n,t,r){return t!==u&&typeof n[t]===h&&(r||k(n,t))}function x(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||e:((n||{})[u]||{}).name||t||e}function M(n,u,t,r){k(n,v)||x("theClass is an invalid class definition.");var e,i,o,f,s,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=D(u);r&&!B(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=D(r)}}(c)||x("["+E(n)+"] is not in class hierarchy of ["+E(u)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[w]),y=!!n[O],p=(y&&r&&r[O]!==undefined&&(y=!!r[O]),i={},$(e=u,function(n){!i[n]&&j(e,n,!1)&&(i[n]=e[n])}),i),y=(t(u,function(n,t,r,i){function u(n,t,r){var u,e=t[r];return e[d]&&i&&!1!==(u=n[_]||{})[P]&&(e=(u[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},o=($(r,function(n){e[n]=u(t,r,n)}),D(n)),f=[];o&&!B(o)&&!A(f,o);)$(o,function(n){!e[n]&&j(o,n,!C)&&(e[n]=u(t,o,n))}),f.push(o),o=D(o);return e}(c,u,p,y)),!!C&&!!n[m]);o=c,t=l,f=u,s=p,n=!1!==(y=y&&r?!!r[m]:y),b(o)||(c=f[_]=f[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),$(f,function(n){var r,u,e;j(f,n,!1)&&f[n]!==s[n]&&(a[n]=f[n],delete f[n],k(o,n)&&(!o[n]||o[n][d])||(o[n]=(r=o,u=n,(e=function(){var n,t;return(function(n,t,r,u){var e=null;if(n&&k(r,g)){var i=n[_]||{};if((e=(i[r[g]]||{})[t])||x("Missing ["+t+"] "+h),!e[I]&&!1!==i[P]){for(var o=!k(n,t),f=D(n),s=[];o&&f&&!B(f)&&!A(s,f);){var a=f[t];if(a){o=a===u;break}s.push(f),f=D(f)}try{o&&(n[t]=e),e[I]=1}catch(c){i[P]=!1}}}return e}(this,u,r,e)||(typeof(t=(t=r[n=u])===e?D(r)[n]:t)!==h&&x("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,e)))}))}return M[w]={setInstFuncs:!0,useBaseInst:!0},M});
define(function(){"use strict";var e="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,w="_dfOpts",r="_unknown_",u="__proto__",i="_dyn"+u,o="_dynInstProto",O="useBaseInst",m="setInstFuncs",f=Object,C=f.getPrototypeOf,s=f.getOwnPropertyNames,F=0;function k(n,t){return n&&f[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===f[v]||n===Array[v])}function B(n){return b(n)||n===Function[v]}function D(n){if(n){if(C)return C(n);var t=n[u]||n[v]||(n[e]?n[e][v]:null),r=n[i]||t;k(n,i)||(delete n[o],r=n[i]=n[o]||n[i],n[o]=t)}return r}function $(n,t){var r=[];if(s)r=s(n);else for(var e in n)"string"==typeof e&&k(n,e)&&r.push(e);if(r&&0<r.length)for(var u=0;u<r.length;u++)t(r[u])}function j(n,t,r){return t!==e&&typeof n[t]===h&&(r||k(n,t))}function x(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||r:((n||{})[e]||{}).name||t||r}function M(n,e,t,r){k(n,v)||x("theClass is an invalid class definition.");var u,i,o,f,s,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=D(e);r&&!B(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=D(r)}}(c)||x("["+E(n)+"] is not in class hierarchy of ["+E(e)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[w]),y=!!n[O],p=(y&&r&&r[O]!==undefined&&(y=!!r[O]),i={},$(u=e,function(n){!i[n]&&j(u,n,!1)&&(i[n]=u[n])}),i),y=(t(e,function(n,t,r,i){function e(n,t,r){var e,u=t[r];return u[d]&&i&&!1!==(e=n[_]||{})[P]&&(u=(e[t[g]]||{})[r]||u),function(){return u.apply(n,arguments)}}for(var u={},o=($(r,function(n){u[n]=e(t,r,n)}),D(n)),f=[];o&&!B(o)&&!A(f,o);)$(o,function(n){!u[n]&&j(o,n,!C)&&(u[n]=e(t,o,n))}),f.push(o),o=D(o);return u}(c,e,p,y)),!!C&&!!n[m]);o=c,t=l,f=e,s=p,n=!1!==(y=y&&r?!!r[m]:y),b(o)||(c=f[_]=f[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),$(f,function(n){var r,e,u;j(f,n,!1)&&f[n]!==s[n]&&(a[n]=f[n],delete f[n],k(o,n)&&(!o[n]||o[n][d])||(o[n]=(r=o,e=n,(u=function(){var n,t;return(function(n,t,r,e){var u=null;if(n&&k(r,g)){var i=n[_]||{};if((u=(i[r[g]]||{})[t])||x("Missing ["+t+"] "+h),!u[I]&&!1!==i[P]){for(var o=!k(n,t),f=D(n),s=[];o&&f&&!B(f)&&!A(s,f);){var a=f[t];if(a){o=a===e;break}s.push(f),f=D(f)}try{o&&(n[t]=u),u[I]=1}catch(c){i[P]=!1}}}return u}(this,e,r,u)||(typeof(t=(t=r[n=e])===u?D(r)[n]:t)!==h&&x("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,u)))}))}return M[w]={setInstFuncs:!0,useBaseInst:!0},M});
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -57,6 +57,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -72,2 +68,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -89,2 +93,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -120,18 +128,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -145,5 +155,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -150,0 +159,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";var u="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,m="_dfOpts",r="_dynProto",o="_unknown_",e="__proto__",w="useBaseInst",O="setInstFuncs",i=Object,C=i.getPrototypeOf,F=0;function k(n,t){return n&&i[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===i[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(C)return C(n);var t=n[r]||n[e]||n[v]||(n[u]?n[u][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],u=i.getOwnPropertyNames;if(u)r=u(n);else for(var o in n)"string"==typeof o&&k(n,o)&&r.push(o);if(r&&0<r.length)for(var e=0;e<r.length;e++)t(r[e])}function $(n,t,r){return t!==u&&typeof n[t]===h&&(r||k(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||o:((n||{})[u]||{}).name||t||o}function M(n,u,t,r){k(n,v)||j("theClass is an invalid class definition.");var o,e,i,f,s,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=B(u);r&&!x(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(c)||j("["+E(n)+"] is not in class hierarchy of ["+E(u)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[m]),y=!!n[w],p=(y&&r&&r[w]!==undefined&&(y=!!r[w]),e={},D(o=u,function(n){!e[n]&&$(o,n,!1)&&(e[n]=o[n])}),e),y=(t(u,function(n,t,r,e){function u(n,t,r){var u,o=t[r];return o[d]&&e&&!1!==(u=n[_]||{})[P]&&(o=(u[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},i=(D(r,function(n){o[n]=u(t,r,n)}),B(n)),f=[];i&&!x(i)&&!A(f,i);)D(i,function(n){!o[n]&&$(i,n,!C)&&(o[n]=u(t,i,n))}),f.push(i),i=B(i);return o}(c,u,p,y)),!!C&&!!n[O]);i=c,t=l,f=u,s=p,n=!1!==(y=y&&r?!!r[O]:y),b(i)||(c=f[_]=f[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),D(f,function(n){var r,u,o;$(f,n,!1)&&f[n]!==s[n]&&(a[n]=f[n],delete f[n],k(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,u=n,(o=function(){var n,t;return(function(n,t,r,u){var o=null;if(n&&k(r,g)){var e=n[_]||{};if((o=(e[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!o[I]&&!1!==e[P]){for(var i=!k(n,t),f=B(n),s=[];i&&f&&!x(f)&&!A(s,f);){var a=f[t];if(a){i=a===u;break}s.push(f),f=B(f)}try{i&&(n[t]=o),o[I]=1}catch(c){e[P]=!1}}}return o}(this,u,r,o)||(typeof(t=(t=r[n=u])===o?B(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,o)))}))}M[m]={setInstFuncs:!0,useBaseInst:!0},module.exports=M;
"use strict";var e="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,m="_dfOpts",r="_unknown_",o="__proto__",u="_dyn"+o,i="_dynInstProto",w="useBaseInst",O="setInstFuncs",s=Object,C=s.getPrototypeOf,f=s.getOwnPropertyNames,F=0;function k(n,t){return n&&s[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===s[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(C)return C(n);var t=n[o]||n[v]||(n[e]?n[e][v]:null),r=n[u]||t;k(n,u)||(delete n[i],r=n[u]=n[i]||n[u],n[i]=t)}return r}function D(n,t){var r=[];if(f)r=f(n);else for(var e in n)"string"==typeof e&&k(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function $(n,t,r){return t!==e&&typeof n[t]===h&&(r||k(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||r:((n||{})[e]||{}).name||t||r}function M(n,e,t,r){k(n,v)||j("theClass is an invalid class definition.");var o,u,i,s,f,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=B(e);r&&!x(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(c)||j("["+E(n)+"] is not in class hierarchy of ["+E(e)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[m]),y=!!n[w],p=(y&&r&&r[w]!==undefined&&(y=!!r[w]),u={},D(o=e,function(n){!u[n]&&$(o,n,!1)&&(u[n]=o[n])}),u),y=(t(e,function(n,t,r,u){function e(n,t,r){var e,o=t[r];return o[d]&&u&&!1!==(e=n[_]||{})[P]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},i=(D(r,function(n){o[n]=e(t,r,n)}),B(n)),s=[];i&&!x(i)&&!A(s,i);)D(i,function(n){!o[n]&&$(i,n,!C)&&(o[n]=e(t,i,n))}),s.push(i),i=B(i);return o}(c,e,p,y)),!!C&&!!n[O]);i=c,t=l,s=e,f=p,n=!1!==(y=y&&r?!!r[O]:y),b(i)||(c=s[_]=s[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),D(s,function(n){var r,e,o;$(s,n,!1)&&s[n]!==f[n]&&(a[n]=s[n],delete s[n],k(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&k(r,g)){var u=n[_]||{};if((o=(u[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!o[I]&&!1!==u[P]){for(var i=!k(n,t),s=B(n),f=[];i&&s&&!x(s)&&!A(f,s);){var a=s[t];if(a){i=a===e;break}f.push(s),s=B(s)}try{i&&(n[t]=o),o[I]=1}catch(c){u[P]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?B(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,o)))}))}M[m]={setInstFuncs:!0,useBaseInst:!0},module.exports=M;
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -55,6 +55,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -70,2 +66,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -87,2 +91,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -118,18 +126,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -143,5 +153,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -148,0 +157,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -55,6 +55,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -70,2 +66,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -87,2 +91,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -118,18 +126,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -143,5 +153,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -148,0 +157,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -59,6 +59,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -74,2 +70,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -91,2 +95,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -122,18 +130,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -147,5 +157,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -152,0 +161,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
this.Microsoft=this.Microsoft||{},this.Microsoft["DynamicProto-JS"]=function(){"use strict";var o="constructor",p="prototype",v="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",P="_dynInstChk",I=P,m="_dfOpts",r="_dynProto",i="_unknown_",u="__proto__",w="useBaseInst",O="setInstFuncs",e=Object,C=e.getPrototypeOf,F=0;function M(n,t){return n&&e[p].hasOwnProperty.call(n,t)}function k(n){return n&&(n===e[p]||n===Array[p])}function D(n){return k(n)||n===Function[p]}function b(n){if(n){if(C)return C(n);var t=n[r]||n[u]||n[p]||(n[o]?n[o][p]:null);if(t)return n[r]||(n[r]=t),t}return null}function B(n,t){var r=[],o=e.getOwnPropertyNames;if(o)r=o(n);else for(var i in n)"string"==typeof i&&M(n,i)&&r.push(i);if(r&&0<r.length)for(var u=0;u<r.length;u++)t(r[u])}function $(n,t,r){return t!==o&&typeof n[t]===v&&(r||M(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function x(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return M(n,p)?n.name||t||i:((n||{})[o]||{}).name||t||i}function E(n,o,t,r){M(n,p)||j("theClass is an invalid class definition.");var i,u,e,f,s,c,a=n[p],l=(function(n){if(!C)return 1;for(var t=[],r=b(o);r&&!D(r)&&!x(t,r);){if(r===n)return 1;t.push(r),r=b(r)}}(a)||j("["+A(n)+"] is not in class hierarchy of ["+A(o)+"]"),null),n=(M(a,g)?l=a[g]:(l="_dynCls$"+A(n,"_")+"$"+F,F++,a[g]=l),E[m]),y=!!n[w],h=(y&&r&&r[w]!==undefined&&(y=!!r[w]),u={},B(i=o,function(n){!u[n]&&$(i,n,!1)&&(u[n]=i[n])}),u),y=(t(o,function(n,t,r,u){function o(n,t,r){var o,i=t[r];return i[d]&&u&&!1!==(o=n[_]||{})[I]&&(i=(o[t[g]]||{})[r]||i),function(){return i.apply(n,arguments)}}for(var i={},e=(B(r,function(n){i[n]=o(t,r,n)}),b(n)),f=[];e&&!D(e)&&!x(f,e);)B(e,function(n){!i[n]&&$(e,n,!C)&&(i[n]=o(t,e,n))}),f.push(e),e=b(e);return i}(a,o,h,y)),!!C&&!!n[O]);e=a,t=l,f=o,s=h,n=!1!==(y=y&&r?!!r[O]:y),k(e)||(a=f[_]=f[_]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),B(f,function(n){var r,o,i;$(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],M(e,n)&&(!e[n]||e[n][d])||(e[n]=(r=e,o=n,(i=function(){var n,t;return(function(n,t,r,o){var i=null;if(n&&M(r,g)){var u=n[_]||{};if((i=(u[r[g]]||{})[t])||j("Missing ["+t+"] "+v),!i[P]&&!1!==u[I]){for(var e=!M(n,t),f=b(n),s=[];e&&f&&!D(f)&&!x(s,f);){var c=f[t];if(c){e=c===o;break}s.push(f),f=b(f)}try{e&&(n[t]=i),i[P]=1}catch(a){u[I]=!1}}}return i}(this,o,r,i)||(typeof(t=(t=r[n=o])===i?b(r)[n]:t)!==v&&j("["+n+"] is not a "+v),t)).apply(this,arguments)})[d]=1,i)))}))}return E[m]={setInstFuncs:!0,useBaseInst:!0},E}();
this.Microsoft=this.Microsoft||{},this.Microsoft["DynamicProto-JS"]=function(){"use strict";var o="constructor",p="prototype",v="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,m="_dfOpts",r="_unknown_",i="__proto__",e="_dyn"+i,u="_dynInstProto",w="useBaseInst",O="setInstFuncs",s=Object,C=s.getPrototypeOf,f=s.getOwnPropertyNames,F=0;function M(n,t){return n&&s[p].hasOwnProperty.call(n,t)}function k(n){return n&&(n===s[p]||n===Array[p])}function D(n){return k(n)||n===Function[p]}function b(n){if(n){if(C)return C(n);var t=n[i]||n[p]||(n[o]?n[o][p]:null),r=n[e]||t;M(n,e)||(delete n[u],r=n[e]=n[u]||n[e],n[u]=t)}return r}function B(n,t){var r=[];if(f)r=f(n);else for(var o in n)"string"==typeof o&&M(n,o)&&r.push(o);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function $(n,t,r){return t!==o&&typeof n[t]===v&&(r||M(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function x(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return M(n,p)?n.name||t||r:((n||{})[o]||{}).name||t||r}function E(n,o,t,r){M(n,p)||j("theClass is an invalid class definition.");var i,e,u,s,f,c,a=n[p],y=(function(n){if(!C)return 1;for(var t=[],r=b(o);r&&!D(r)&&!x(t,r);){if(r===n)return 1;t.push(r),r=b(r)}}(a)||j("["+A(n)+"] is not in class hierarchy of ["+A(o)+"]"),null),n=(M(a,g)?y=a[g]:(y="_dynCls$"+A(n,"_")+"$"+F,F++,a[g]=y),E[m]),l=!!n[w],h=(l&&r&&r[w]!==undefined&&(l=!!r[w]),e={},B(i=o,function(n){!e[n]&&$(i,n,!1)&&(e[n]=i[n])}),e),l=(t(o,function(n,t,r,e){function o(n,t,r){var o,i=t[r];return i[d]&&e&&!1!==(o=n[_]||{})[P]&&(i=(o[t[g]]||{})[r]||i),function(){return i.apply(n,arguments)}}for(var i={},u=(B(r,function(n){i[n]=o(t,r,n)}),b(n)),s=[];u&&!D(u)&&!x(s,u);)B(u,function(n){!i[n]&&$(u,n,!C)&&(i[n]=o(t,u,n))}),s.push(u),u=b(u);return i}(a,o,h,l)),!!C&&!!n[O]);u=a,t=y,s=o,f=h,n=!1!==(l=l&&r?!!r[O]:l),k(u)||(a=s[_]=s[_]||{},c=a[t]=a[t]||{},!1!==a[P]&&(a[P]=!!n),B(s,function(n){var r,o,i;$(s,n,!1)&&s[n]!==f[n]&&(c[n]=s[n],delete s[n],M(u,n)&&(!u[n]||u[n][d])||(u[n]=(r=u,o=n,(i=function(){var n,t;return(function(n,t,r,o){var i=null;if(n&&M(r,g)){var e=n[_]||{};if((i=(e[r[g]]||{})[t])||j("Missing ["+t+"] "+v),!i[I]&&!1!==e[P]){for(var u=!M(n,t),s=b(n),f=[];u&&s&&!D(s)&&!x(f,s);){var c=s[t];if(c){u=c===o;break}f.push(s),s=b(s)}try{u&&(n[t]=i),i[I]=1}catch(a){e[P]=!1}}}return i}(this,o,r,i)||(typeof(t=(t=r[n=o])===i?b(r)[n]:t)!==v&&j("["+n+"] is not a "+v),t)).apply(this,arguments)})[d]=1,i)))}))}return E[m]={setInstFuncs:!0,useBaseInst:!0},E}();
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -61,6 +61,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -76,2 +72,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -93,2 +97,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -124,18 +132,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -149,5 +159,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -154,0 +163,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var n=this,t=function(){"use strict";var o="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",P=m,I="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[r]||n[i]||n[d]||(n[o]?n[o][d]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],o=u.getOwnPropertyNames;if(o)r=o(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function T(n,t,r){return t!==o&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||e:((n||{})[o]||{}).name||t||e}function A(n,o,t,r){F(n,d)||j("theClass is an invalid class definition.");var e,i,u,f,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(o);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(o)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[I]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(e=o,function(n){!i[n]&&T(e,n,!1)&&(i[n]=e[n])}),i),y=(t(o,function(n,t,r,i){function o(n,t,r){var o,e=t[r];return e[_]&&i&&!1!==(o=n[v]||{})[P]&&(e=(o[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},u=(D(r,function(n){e[n]=o(t,r,n)}),x(n)),f=[];u&&!k(u)&&!B(f,u);)D(u,function(n){!e[n]&&T(u,n,!O)&&(e[n]=o(t,u,n))}),f.push(u),u=x(u);return e}(a,o,p,y)),!!O&&!!n[w]);u=a,t=l,f=o,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(u)||(a=f[v]=f[v]||{},c=a[t]=a[t]||{},!1!==a[P]&&(a[P]=!!n),D(f,function(n){var r,o,e;T(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],F(u,n)&&(!u[n]||u[n][_])||(u[n]=(r=u,o=n,(e=function(){var n,t;return(function(n,t,r,o){var e=null;if(n&&F(r,g)){var i=n[v]||{};if((e=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!e[m]&&!1!==i[P]){for(var u=!F(n,t),f=x(n),s=[];u&&f&&!k(f)&&!B(s,f);){var c=f[t];if(c){u=c===o;break}s.push(f),f=x(f)}try{u&&(n[t]=e),e[m]=1}catch(a){i[P]=!1}}}return e}(this,o,r,e)||(typeof(t=(t=r[n=o])===e?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,e)))}))}return A[I]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
var n=this,t=function(){"use strict";var e="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",I=m,P="_dfOpts",r="_unknown_",o="__proto__",i="_dyn"+o,f="_dynInstProto",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,s=u.getOwnPropertyNames,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[o]||n[d]||(n[e]?n[e][d]:null),r=n[i]||t;F(n,i)||(delete n[f],r=n[i]=n[f]||n[i],n[f]=t)}return r}function D(n,t){var r=[];if(s)r=s(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function T(n,t,r){return t!==e&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||r:((n||{})[e]||{}).name||t||r}function A(n,e,t,r){F(n,d)||j("theClass is an invalid class definition.");var o,i,f,u,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(e);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(e)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[P]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(o=e,function(n){!i[n]&&T(o,n,!1)&&(i[n]=o[n])}),i),y=(t(e,function(n,t,r,i){function e(n,t,r){var e,o=t[r];return o[_]&&i&&!1!==(e=n[v]||{})[I]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},f=(D(r,function(n){o[n]=e(t,r,n)}),x(n)),u=[];f&&!k(f)&&!B(u,f);)D(f,function(n){!o[n]&&T(f,n,!O)&&(o[n]=e(t,f,n))}),u.push(f),f=x(f);return o}(a,e,p,y)),!!O&&!!n[w]);f=a,t=l,u=e,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(f)||(a=u[v]=u[v]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),D(u,function(n){var r,e,o;T(u,n,!1)&&u[n]!==s[n]&&(c[n]=u[n],delete u[n],F(f,n)&&(!f[n]||f[n][_])||(f[n]=(r=f,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&F(r,g)){var i=n[v]||{};if((o=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!o[m]&&!1!==i[I]){for(var f=!F(n,t),u=x(n),s=[];f&&u&&!k(u)&&!B(s,u);){var c=u[t];if(c){f=c===e;break}s.push(u),u=x(u)}try{f&&(n[t]=o),o[m]=1}catch(a){i[I]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,o)))}))}return A[P]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -62,6 +62,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -77,2 +73,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -94,2 +98,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -125,18 +133,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -150,5 +160,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -155,0 +164,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
System.register("Microsoft.DynamicProto-JS",[],function(n){"use strict";return{execute:function(){n("default",E);var e="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",P="_dynCls$",m="_dynInstChk",I=m,w="_dfOpts",r="_dynProto",u="_unknown_",o="__proto__",O="useBaseInst",C="setInstFuncs",i=Object,F=i.getPrototypeOf,k=0;function D(n,t){return n&&i[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===i[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(F)return F(n);var t=n[r]||n[o]||n[v]||(n[e]?n[e][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function M(n,t){var r=[],e=i.getOwnPropertyNames;if(e)r=e(n);else for(var u in n)"string"==typeof u&&D(n,u)&&r.push(u);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function S(n,t,r){return t!==e&&typeof n[t]===h&&(r||D(n,t))}function $(n){throw new TypeError("DynamicProto: "+n)}function j(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return D(n,v)?n.name||t||u:((n||{})[e]||{}).name||t||u}function E(n,e,t,r){D(n,v)||$("theClass is an invalid class definition.");var u,o,i,f,s,c,a=n[v],l=(function(n){if(!F)return 1;for(var t=[],r=B(e);r&&!x(r)&&!j(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(a)||$("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]"),null),n=(D(a,g)?l=a[g]:(l=P+A(n,"_")+"$"+k,k++,a[g]=l),E[w]),y=!!n[O],p=(y&&r&&r[O]!==undefined&&(y=!!r[O]),o={},M(u=e,function(n){!o[n]&&S(u,n,!1)&&(o[n]=u[n])}),o),y=(t(e,function(n,t,r,o){function e(n,t,r){var e,u=t[r];return u[d]&&o&&!1!==(e=n[_]||{})[I]&&(u=(e[t[g]]||{})[r]||u),function(){return u.apply(n,arguments)}}for(var u={},i=(M(r,function(n){u[n]=e(t,r,n)}),B(n)),f=[];i&&!x(i)&&!j(f,i);)M(i,function(n){!u[n]&&S(i,n,!F)&&(u[n]=e(t,i,n))}),f.push(i),i=B(i);return u}(a,e,p,y)),!!F&&!!n[C]);i=a,t=l,f=e,s=p,n=!1!==(y=y&&r?!!r[C]:y),b(i)||(a=f[_]=f[_]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),M(f,function(n){var r,e,u;S(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],D(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,e=n,(u=function(){var n,t;return(function(n,t,r,e){var u=null;if(n&&D(r,g)){var o=n[_]||{};if((u=(o[r[g]]||{})[t])||$("Missing ["+t+"] "+h),!u[m]&&!1!==o[I]){for(var i=!D(n,t),f=B(n),s=[];i&&f&&!x(f)&&!j(s,f);){var c=f[t];if(c){i=c===e;break}s.push(f),f=B(f)}try{i&&(n[t]=u),u[m]=1}catch(a){o[I]=!1}}}return u}(this,e,r,u)||(typeof(t=(t=r[n=e])===u?B(r)[n]:t)!==h&&$("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,u)))}))}E[w]={setInstFuncs:!0,useBaseInst:!0}}}});
System.register("Microsoft.DynamicProto-JS",[],function(n){"use strict";return{execute:function(){n("default",E);var e="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynCls$",P="_dynInstChk",m=P,w="_dfOpts",r="_unknown_",o="__proto__",u="_dyn"+o,i="_dynInstProto",O="useBaseInst",C="setInstFuncs",f=Object,F=f.getPrototypeOf,s=f.getOwnPropertyNames,k=0;function D(n,t){return n&&f[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===f[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(F)return F(n);var t=n[o]||n[v]||(n[e]?n[e][v]:null),r=n[u]||t;D(n,u)||(delete n[i],r=n[u]=n[i]||n[u],n[i]=t)}return r}function M(n,t){var r=[];if(s)r=s(n);else for(var e in n)"string"==typeof e&&D(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function S(n,t,r){return t!==e&&typeof n[t]===h&&(r||D(n,t))}function $(n){throw new TypeError("DynamicProto: "+n)}function j(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return D(n,v)?n.name||t||r:((n||{})[e]||{}).name||t||r}function E(n,e,t,r){D(n,v)||$("theClass is an invalid class definition.");var o,u,i,f,s,c,a=n[v],y=(function(n){if(!F)return 1;for(var t=[],r=B(e);r&&!x(r)&&!j(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(a)||$("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]"),null),n=(D(a,g)?y=a[g]:(y=I+A(n,"_")+"$"+k,k++,a[g]=y),E[w]),l=!!n[O],p=(l&&r&&r[O]!==undefined&&(l=!!r[O]),u={},M(o=e,function(n){!u[n]&&S(o,n,!1)&&(u[n]=o[n])}),u),l=(t(e,function(n,t,r,u){function e(n,t,r){var e,o=t[r];return o[d]&&u&&!1!==(e=n[_]||{})[m]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},i=(M(r,function(n){o[n]=e(t,r,n)}),B(n)),f=[];i&&!x(i)&&!j(f,i);)M(i,function(n){!o[n]&&S(i,n,!F)&&(o[n]=e(t,i,n))}),f.push(i),i=B(i);return o}(a,e,p,l)),!!F&&!!n[C]);i=a,t=y,f=e,s=p,n=!1!==(l=l&&r?!!r[C]:l),b(i)||(a=f[_]=f[_]||{},c=a[t]=a[t]||{},!1!==a[m]&&(a[m]=!!n),M(f,function(n){var r,e,o;S(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],D(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&D(r,g)){var u=n[_]||{};if((o=(u[r[g]]||{})[t])||$("Missing ["+t+"] "+h),!o[P]&&!1!==u[m]){for(var i=!D(n,t),f=B(n),s=[];i&&f&&!x(f)&&!j(s,f);){var c=f[t];if(c){i=c===e;break}s.push(f),f=B(f)}try{i&&(n[t]=o),o[P]=1}catch(a){u[m]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?B(r)[n]:t)!==h&&$("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,o)))}))}E[w]={setInstFuncs:!0,useBaseInst:!0}}}});
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -61,6 +61,2 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -76,2 +72,10 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
var DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -93,2 +97,6 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
var _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -124,18 +132,20 @@ * @ignore

function _getObjProto(target) {
var newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {
return _objGetPrototypeOf(target);
}
// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -149,5 +159,4 @@ /**

var props = [];
var getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
}

@@ -154,0 +163,0 @@ else {

/*!
* Microsoft Dynamic Proto Utility, 1.1.5
* Microsoft Dynamic Proto Utility, 1.1.6
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var n=this,t=function(){"use strict";var o="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",P=m,I="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[r]||n[i]||n[d]||(n[o]?n[o][d]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],o=u.getOwnPropertyNames;if(o)r=o(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function T(n,t,r){return t!==o&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||e:((n||{})[o]||{}).name||t||e}function A(n,o,t,r){F(n,d)||j("theClass is an invalid class definition.");var e,i,u,f,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(o);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(o)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[I]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(e=o,function(n){!i[n]&&T(e,n,!1)&&(i[n]=e[n])}),i),y=(t(o,function(n,t,r,i){function o(n,t,r){var o,e=t[r];return e[_]&&i&&!1!==(o=n[v]||{})[P]&&(e=(o[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},u=(D(r,function(n){e[n]=o(t,r,n)}),x(n)),f=[];u&&!k(u)&&!B(f,u);)D(u,function(n){!e[n]&&T(u,n,!O)&&(e[n]=o(t,u,n))}),f.push(u),u=x(u);return e}(a,o,p,y)),!!O&&!!n[w]);u=a,t=l,f=o,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(u)||(a=f[v]=f[v]||{},c=a[t]=a[t]||{},!1!==a[P]&&(a[P]=!!n),D(f,function(n){var r,o,e;T(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],F(u,n)&&(!u[n]||u[n][_])||(u[n]=(r=u,o=n,(e=function(){var n,t;return(function(n,t,r,o){var e=null;if(n&&F(r,g)){var i=n[v]||{};if((e=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!e[m]&&!1!==i[P]){for(var u=!F(n,t),f=x(n),s=[];u&&f&&!k(f)&&!B(s,f);){var c=f[t];if(c){u=c===o;break}s.push(f),f=x(f)}try{u&&(n[t]=e),e[m]=1}catch(a){i[P]=!1}}}return e}(this,o,r,e)||(typeof(t=(t=r[n=o])===e?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,e)))}))}return A[I]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
var n=this,t=function(){"use strict";var e="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",I=m,P="_dfOpts",r="_unknown_",o="__proto__",i="_dyn"+o,f="_dynInstProto",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,s=u.getOwnPropertyNames,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[o]||n[d]||(n[e]?n[e][d]:null),r=n[i]||t;F(n,i)||(delete n[f],r=n[i]=n[f]||n[i],n[f]=t)}return r}function D(n,t){var r=[];if(s)r=s(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function T(n,t,r){return t!==e&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||r:((n||{})[e]||{}).name||t||r}function A(n,e,t,r){F(n,d)||j("theClass is an invalid class definition.");var o,i,f,u,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(e);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(e)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[P]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(o=e,function(n){!i[n]&&T(o,n,!1)&&(i[n]=o[n])}),i),y=(t(e,function(n,t,r,i){function e(n,t,r){var e,o=t[r];return o[_]&&i&&!1!==(e=n[v]||{})[I]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},f=(D(r,function(n){o[n]=e(t,r,n)}),x(n)),u=[];f&&!k(f)&&!B(u,f);)D(f,function(n){!o[n]&&T(f,n,!O)&&(o[n]=e(t,f,n))}),u.push(f),f=x(f);return o}(a,e,p,y)),!!O&&!!n[w]);f=a,t=l,u=e,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(f)||(a=u[v]=u[v]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),D(u,function(n){var r,e,o;T(u,n,!1)&&u[n]!==s[n]&&(c[n]=u[n],delete u[n],F(f,n)&&(!f[n]||f[n][_])||(f[n]=(r=f,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&F(r,g)){var i=n[v]||{};if((o=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!o[m]&&!1!==i[I]){for(var f=!F(n,t),u=x(n),s=[];f&&u&&!k(u)&&!B(s,u);){var c=u[t];if(c){f=c===e;break}s.push(u),u=x(u)}try{f&&(n[t]=o),o[m]=1}catch(a){i[I]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,o)))}))}return A[P]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
//# sourceMappingURL=dynamicproto-js.min.js.map

@@ -64,7 +64,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
const DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -82,2 +77,12 @@ * @ignore

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
const DynProtoBaseProto = "_dyn" + str__Proto;
/**
* Track the current prototype for IE8 as you can't look back to get the prototype
*/
const DynProtoCurrent = "_dynInstProto";
/**
* Constant string defined to support minimization

@@ -103,2 +108,7 @@ * @ignore

/**
* Pre-lookup to check for the existence of this function
*/
let _objGetOwnProps = Obj["getOwnPropertyNames"];
/**
* Internal Global used to generate a unique dynamic class name, every new class will increase this value

@@ -139,4 +149,6 @@ * @ignore

function _getObjProto(target:any) {
let newProto;
if (target) {
// This method doesn't existing in older browsers (e.g. IE8)
// This method doesn't exist in older browsers (e.g. IE8)
if (_objGetPrototypeOf) {

@@ -146,15 +158,16 @@ return _objGetPrototypeOf(target);

// target[Constructor] May break if the constructor has been changed or removed
let newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if(newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
let curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
return newProto;
// Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class
newProto = target[DynProtoBaseProto] || curProto;
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
// As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it
// so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)
delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
target[DynProtoCurrent] = curProto;
}
}
return null;
return newProto;
}

@@ -169,5 +182,4 @@

let props: string[] = [];
let getOwnProps = Obj["getOwnPropertyNames"];
if (getOwnProps) {
props = getOwnProps(target);
if (_objGetOwnProps) {
props = _objGetOwnProps(target);
} else {

@@ -174,0 +186,0 @@ for (let name in target) {

{
"name": "@microsoft/dynamicproto-js",
"description": "Microsoft Dynamic Proto Utility",
"version": "1.1.5",
"version": "1.1.6",
"keywords": [

@@ -6,0 +6,0 @@ "javascript",

# Releases
## 1.1.6 (May 4th, 2022)
- #50 [IE8] Fix in 1.1.5 only handles 2 levels of dynamically nested classes
## 1.1.5 (Apr 28th, 2022)

@@ -4,0 +8,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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