native-fn
Version:
2 lines (1 loc) • 1.87 kB
JavaScript
var t="1.0.85";function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object(t[0]),o=1;o<t.length;o++){var a=t[o];if(null!=a)for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(r[n]=a[n])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var a=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(a,r.prototype):a.__proto__=r.prototype,a.name=t,void 0!==o&&(a.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(a,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(a,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(a,r);else try{var n=new e;n.stack&&(a.stack=n.stack)}catch(t){}return a}void 0===e&&(e=Error),r.prototype=Object.create(e.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(e){try{r.prototype.name=t}catch(t){}}try{Object.defineProperty(r,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}return r}("PluginNotExtendedError");!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var t=__getGlobalThis__;Object.defineProperty(t,"globalThis",{value:t,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var o={Version:t,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(t){return t.installed||(this.Constants=e(this.Constants,t.Constants),this.Errors=e(this.Errors,t.Errors),this[t.name]=t.module,t.installed=!0),this}};export{o as default};