mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 09:03:37 +03:00
4 lines
14 KiB
TypeScript
4 lines
14 KiB
TypeScript
|
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/deps/@jspm/core@1.1.0/nodelibs/chunk-dac557ba.js
|
||
|
|
||
|
|
||
|
import {h as h$1}from'./chunk-0c2d1322.js';var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,e=Object.prototype.toString,o=function(o){return !(t&&o&&"object"==typeof o&&Symbol.toStringTag in o)&&"[object Arguments]"===e.call(o)},n=function(t){return !!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==e.call(t)&&"[object Function]"===e.call(t.callee)},r=function(){return o(arguments)}();o.isLegacyArguments=n;var l=r?o:n;var t$1=Object.prototype.toString,o$1=Function.prototype.toString,n$1=/^\s*(?:function)?\*/,e$1="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r$1=Object.getPrototypeOf,c=function(){if(!e$1)return !1;try{return Function("return function*() {}")()}catch(t){}}(),u=c?r$1(c):{},i=function(c){return "function"==typeof c&&(!!n$1.test(o$1.call(c))||(e$1?r$1(c)===u:"[object GeneratorFunction]"===t$1.call(c)))};var t$2="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}));}:function(t,e){if(e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t;}};var i$1=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},o$2={},u$1=i$1,f=l,a=i;function c$1(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,p="undefined"!=typeof Symbol,y=p&&void 0!==Symbol.toStringTag,l$1="undefined"!=typeof Uint8Array,d="undefined"!=typeof ArrayBuffer;if(l$1&&y)var g=Object.getPrototypeOf(Uint8Array.prototype),b=c$1(Object.getOwnPropertyDescriptor(g,Symbol.toStringTag).get);var m=c$1(Object.prototype.toString),h=c$1(Number.prototype.valueOf),j=c$1(String.prototype.valueOf),A=c$1(Boolean.prototype.valueOf);if(s)var w=c$1(BigInt.prototype.valueOf);if(p)var v=c$1(Symbol.prototype.valueOf);function O(e,t){if("object"!=typeof e)return !1;try{return t(e),!0}catch(e){return !1}}function S(e){return l$1&&y?void 0!==b(e):B(e)||k(e)||E(e)||D(e)||U(e)||P(e)||x(e)||I(e)||M(e)||z(e)||F(e)}function B(e){return l$1&&y?"Uint8Array"===b(e):"[object Uint8Array]"===m(e)||u$1(e)&&void 0!==e.buffer}function k(e){return l$1&&y?"Uint8ClampedArray"===b(e):"[object Uint8ClampedArray]"===m(e)}function E(e){return l$1&&y?"Uint16Array"===b(e):"[object Uint16Array]"===m(e)}function D(e){return l$1&&y?"Uint32Array"===b(e):"[object Uint32Array]"===m(e)}function U(e){return l$1&&y?"Int8Array"===b(e):"[object Int8Array]"===m(e)}function P(e){return l$1&&y?"Int16Array"===b(e):"[object Int16Array]"===m(e)}function x(e){return l$1&&y?"Int32Array"===b(e):"[object Int32Array]"===m(e)}function I(e){return l$1&&y?"Float32Array"===b(e):"[object Float32Array]"===m(e)}function M(e){return l$1&&y?"Float64Array"===b(e):"[object Float64Array]"===m(e)}function z(e){return l$1&&y?"BigInt64Array"===b(e):"[object BigInt64Array]"===m(e)}function F(e){return l$1&&y?"BigUint64Array"===b(e):"[object BigUint64Array]"===m(e)}function T(e){return "[object Map]"===m(e)}function N(e){return "[object Set]"===m(e)}function W(e){return "[object WeakMap]"===m(e)}function $(e){return "[object WeakSet]"===m(e)}function C(e){return "[object ArrayBuffer]"===m(e)}function V(e){return "undefined"!=typeof ArrayBuffer&&(C.working?C(e):e instanceof ArrayBuffer)}function G(e){return "[object DataView]"===m(e)}function R(e){return "undefined"!=typeof DataView&&(G.working?G(e):e instanceof DataView)}function J(e){return "[object SharedArrayBuffer]"===m(e)}function _(e){return "undefined"!=typeof SharedArrayBuffer&&(J.working?J(e):e instanceof SharedArrayBuffer)}function H(e){return O(e,h)}function Z(e){return O(e,j)}function q(e){return O(e,A)}function K(e){return s&&O(e,w)}function L(e){return p&&O(e,v)}o$2.isArgumentsObject=f,o$2.isGeneratorFunction=a,o$2.isPromise=function(e){return "undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},o$2.isArrayBufferView=function(e){return d&&ArrayBuffer.isView?ArrayBuffer.isView(e
|