储能智慧云小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. module.exports = (function() {
  2. var __MODS__ = {};
  3. var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
  4. var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
  5. var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
  6. var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
  7. __DEFINE__(1729044221103, function(require, module, exports) {
  8. var $defineProperty = require('es-define-property');
  9. var $SyntaxError = require('es-errors/syntax');
  10. var $TypeError = require('es-errors/type');
  11. var gopd = require('gopd');
  12. /** @type {import('.')} */
  13. module.exports = function defineDataProperty(
  14. obj,
  15. property,
  16. value
  17. ) {
  18. if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
  19. throw new $TypeError('`obj` must be an object or a function`');
  20. }
  21. if (typeof property !== 'string' && typeof property !== 'symbol') {
  22. throw new $TypeError('`property` must be a string or a symbol`');
  23. }
  24. if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
  25. throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
  26. }
  27. if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
  28. throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
  29. }
  30. if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
  31. throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
  32. }
  33. if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
  34. throw new $TypeError('`loose`, if provided, must be a boolean');
  35. }
  36. var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
  37. var nonWritable = arguments.length > 4 ? arguments[4] : null;
  38. var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
  39. var loose = arguments.length > 6 ? arguments[6] : false;
  40. /* @type {false | TypedPropertyDescriptor<unknown>} */
  41. var desc = !!gopd && gopd(obj, property);
  42. if ($defineProperty) {
  43. $defineProperty(obj, property, {
  44. configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
  45. enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
  46. value: value,
  47. writable: nonWritable === null && desc ? desc.writable : !nonWritable
  48. });
  49. } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
  50. // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
  51. obj[property] = value; // eslint-disable-line no-param-reassign
  52. } else {
  53. throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
  54. }
  55. };
  56. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  57. return __REQUIRE__(1729044221103);
  58. })()
  59. //miniprogram-npm-outsideDeps=["es-define-property","es-errors/syntax","es-errors/type","gopd"]
  60. //# sourceMappingURL=index.js.map