_commonjsHelpers-8c19dec8.js 838 B

123456789101112131415161718192021
  1. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  2. function getDefaultExportFromCjs (x) {
  3. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  4. }
  5. function createCommonjsModule(fn, basedir, module) {
  6. return module = {
  7. path: basedir,
  8. exports: {},
  9. require: function (path, base) {
  10. return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
  11. }
  12. }, fn(module, module.exports), module.exports;
  13. }
  14. function commonjsRequire () {
  15. throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
  16. }
  17. export { commonjsGlobal as a, createCommonjsModule as c, getDefaultExportFromCjs as g };