libs-js
Version:
2 lines (1 loc) • 5.09 kB
JavaScript
function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var _global=createCommonjsModule(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),_core=createCommonjsModule(function(t){var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)}),_core_1=_core.version,_isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_anObject=function(t){if(!_isObject(t))throw TypeError(t+" is not an object!");return t},_fails=function(t){try{return!!t()}catch(t){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document=_global.document,is=_isObject(document)&&_isObject(document.createElement),_domCreate=function(t){return is?document.createElement(t):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),_toPrimitive=function(t,e){if(!_isObject(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!_isObject(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!_isObject(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!_isObject(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},dP=Object.defineProperty,f=_descriptors?Object.defineProperty:function(t,e,n){if(_anObject(t),e=_toPrimitive(e,!0),_anObject(n),_ie8DomDefine)try{return dP(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t},_objectDp={f:f},_propertyDesc=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_hide=_descriptors?function(t,e,n){return _objectDp.f(t,e,_propertyDesc(1,n))}:function(t,e,n){return t[e]=n,t},hasOwnProperty={}.hasOwnProperty,_has=function(t,e){return hasOwnProperty.call(t,e)},id=0,px=Math.random(),_uid=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++id+px).toString(36))},_shared=createCommonjsModule(function(t){var e="__core-js_shared__",n=_global[e]||(_global[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:_core.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),_functionToString=_shared("native-function-to-string",Function.toString),_redefine=createCommonjsModule(function(t){var i=_uid("src"),e="toString",c=(""+_functionToString).split(e);_core.inspectSource=function(t){return _functionToString.call(t)},(t.exports=function(t,e,n,r){var o="function"==typeof n;o&&(_has(n,"name")||_hide(n,"name",e)),t[e]!==n&&(o&&(_has(n,i)||_hide(n,i,t[e]?""+t[e]:c.join(String(e)))),t===_global?t[e]=n:r?t[e]?t[e]=n:_hide(t,e,n):(delete t[e],_hide(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[i]||_functionToString.call(this)})}),_aFunction=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},_ctx=function(r,o,t){if(_aFunction(r),void 0===o)return r;switch(t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}},PROTOTYPE="prototype",$export=function(t,e,n){var r,o,i,c,u=t&$export.F,f=t&$export.G,a=t&$export.S,_=t&$export.P,l=t&$export.B,s=f?_global:a?_global[e]||(_global[e]={}):(_global[e]||{})[PROTOTYPE],p=f?_core:_core[e]||(_core[e]={}),d=p[PROTOTYPE]||(p[PROTOTYPE]={});for(r in f&&(n=e),n)i=((o=!u&&s&&void 0!==s[r])?s:n)[r],c=l&&o?_ctx(i,_global):_&&"function"==typeof i?_ctx(Function.call,i):i,s&&_redefine(s,r,i,t&$export.U),p[r]!=i&&_hide(p,r,c),_&&d[r]!=i&&(d[r]=i)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,toString={}.toString,_cof=function(t){return toString.call(t).slice(8,-1)},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==_cof(t)?t.split(""):Object(t)},_defined=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_toIobject=function(t){return _iobject(_defined(t))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(t){return isNaN(t=+t)?0:(0<t?floor:ceil)(t)},min=Math.min,_toLength=function(t){return 0<t?min(_toInteger(t),9007199254740991):0},_strictMethod=function(t,e){return!!t&&_fails(function(){e?t.call(null,function(){},1):t.call(null)})},$native=[].lastIndexOf,NEGATIVE_ZERO=!!$native&&1/[1].lastIndexOf(1,-0)<0;_export(_export.P+_export.F*(NEGATIVE_ZERO||!_strictMethod($native)),"Array",{lastIndexOf:function(t,e){if(NEGATIVE_ZERO)return $native.apply(this,arguments)||0;var n=_toIobject(this),r=_toLength(n.length),o=r-1;for(1<arguments.length&&(o=Math.min(o,_toInteger(e))),o<0&&(o=r+o);0<=o;o--)if(o in n&&n[o]===t)return o||0;return-1}});var getSuffixName=function(t){if("string"!=typeof t)return"";var e=t.lastIndexOf(".");return t.substr(e+1).toLocaleLowerCase()};module.exports=getSuffixName;
;