dep-ace95160.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
  2. import { dirname as __cjs_dirname } from 'node:path';
  3. import { createRequire as __cjs_createRequire } from 'node:module';
  4. const __filename = __cjs_fileURLToPath(import.meta.url);
  5. const __dirname = __cjs_dirname(__filename);
  6. const require = __cjs_createRequire(import.meta.url);
  7. const __require = require;
  8. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  9. function getDefaultExportFromCjs (x) {
  10. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  11. }
  12. function getAugmentedNamespace(n) {
  13. if (n.__esModule) return n;
  14. var f = n.default;
  15. if (typeof f == "function") {
  16. var a = function a () {
  17. if (this instanceof a) {
  18. var args = [null];
  19. args.push.apply(args, arguments);
  20. var Ctor = Function.bind.apply(f, args);
  21. return new Ctor();
  22. }
  23. return f.apply(this, arguments);
  24. };
  25. a.prototype = f.prototype;
  26. } else a = {};
  27. Object.defineProperty(a, '__esModule', {value: true});
  28. Object.keys(n).forEach(function (k) {
  29. var d = Object.getOwnPropertyDescriptor(n, k);
  30. Object.defineProperty(a, k, d.get ? d : {
  31. enumerable: true,
  32. get: function () {
  33. return n[k];
  34. }
  35. });
  36. });
  37. return a;
  38. }
  39. export { getAugmentedNamespace as a, commonjsGlobal as c, getDefaultExportFromCjs as g };