source: imaps-frontend/node_modules/babel-plugin-polyfill-corejs3/lib/built-in-definitions.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 31.6 KB
RevLine 
[79a0317]1"use strict";
2
3exports.__esModule = true;
4exports.StaticProperties = exports.PromiseDependenciesWithIterators = exports.PromiseDependencies = exports.InstanceProperties = exports.DecoratorMetadataDependencies = exports.CommonIterators = exports.BuiltIns = void 0;
5var _data = _interopRequireDefault(require("../core-js-compat/data.js"));
6function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8const polyfillsOrder = {};
9Object.keys(_data.default).forEach((name, index) => {
10 polyfillsOrder[name] = index;
11});
12const define = (pure, global, name = global[0], exclude) => {
13 return {
14 name,
15 pure,
16 global: global.sort((a, b) => polyfillsOrder[a] - polyfillsOrder[b]),
17 exclude
18 };
19};
20const typed = (...modules) => define(null, [...modules, ...TypedArrayDependencies]);
21const ArrayNatureIterators = ["es.array.iterator", "web.dom-collections.iterator"];
22const CommonIterators = ["es.string.iterator", ...ArrayNatureIterators];
23exports.CommonIterators = CommonIterators;
24const ArrayNatureIteratorsWithTag = ["es.object.to-string", ...ArrayNatureIterators];
25const CommonIteratorsWithTag = ["es.object.to-string", ...CommonIterators];
26const ErrorDependencies = ["es.error.cause", "es.error.to-string"];
27const SuppressedErrorDependencies = ["esnext.suppressed-error.constructor", ...ErrorDependencies];
28const ArrayBufferDependencies = ["es.array-buffer.constructor", "es.array-buffer.slice", "es.data-view", "es.array-buffer.detached", "es.array-buffer.transfer", "es.array-buffer.transfer-to-fixed-length", "es.object.to-string"];
29const TypedArrayDependencies = ["es.typed-array.at", "es.typed-array.copy-within", "es.typed-array.every", "es.typed-array.fill", "es.typed-array.filter", "es.typed-array.find", "es.typed-array.find-index", "es.typed-array.find-last", "es.typed-array.find-last-index", "es.typed-array.for-each", "es.typed-array.includes", "es.typed-array.index-of", "es.typed-array.iterator", "es.typed-array.join", "es.typed-array.last-index-of", "es.typed-array.map", "es.typed-array.reduce", "es.typed-array.reduce-right", "es.typed-array.reverse", "es.typed-array.set", "es.typed-array.slice", "es.typed-array.some", "es.typed-array.sort", "es.typed-array.subarray", "es.typed-array.to-locale-string", "es.typed-array.to-reversed", "es.typed-array.to-sorted", "es.typed-array.to-string", "es.typed-array.with", "es.object.to-string", "es.array.iterator", "esnext.typed-array.filter-reject", "esnext.typed-array.group-by", "esnext.typed-array.to-spliced", "esnext.typed-array.unique-by", ...ArrayBufferDependencies];
30const PromiseDependencies = ["es.promise", "es.object.to-string"];
31exports.PromiseDependencies = PromiseDependencies;
32const PromiseDependenciesWithIterators = [...PromiseDependencies, ...CommonIterators];
33exports.PromiseDependenciesWithIterators = PromiseDependenciesWithIterators;
34const SymbolDependencies = ["es.symbol", "es.symbol.description", "es.object.to-string"];
35const MapDependencies = ["es.map", "esnext.map.delete-all", "esnext.map.emplace", "esnext.map.every", "esnext.map.filter", "esnext.map.find", "esnext.map.find-key", "esnext.map.includes", "esnext.map.key-of", "esnext.map.map-keys", "esnext.map.map-values", "esnext.map.merge", "esnext.map.reduce", "esnext.map.some", "esnext.map.update", ...CommonIteratorsWithTag];
36const SetDependencies = ["es.set", "es.set.difference.v2", "es.set.intersection.v2", "es.set.is-disjoint-from.v2", "es.set.is-subset-of.v2", "es.set.is-superset-of.v2", "es.set.symmetric-difference.v2", "es.set.union.v2", "esnext.set.add-all", "esnext.set.delete-all", "esnext.set.difference", "esnext.set.every", "esnext.set.filter", "esnext.set.find", "esnext.set.intersection", "esnext.set.is-disjoint-from", "esnext.set.is-subset-of", "esnext.set.is-superset-of", "esnext.set.join", "esnext.set.map", "esnext.set.reduce", "esnext.set.some", "esnext.set.symmetric-difference", "esnext.set.union", ...CommonIteratorsWithTag];
37const WeakMapDependencies = ["es.weak-map", "esnext.weak-map.delete-all", "esnext.weak-map.emplace", ...CommonIteratorsWithTag];
38const WeakSetDependencies = ["es.weak-set", "esnext.weak-set.add-all", "esnext.weak-set.delete-all", ...CommonIteratorsWithTag];
39const DOMExceptionDependencies = ["web.dom-exception.constructor", "web.dom-exception.stack", "web.dom-exception.to-string-tag", "es.error.to-string"];
40const URLSearchParamsDependencies = ["web.url-search-params", "web.url-search-params.delete", "web.url-search-params.has", "web.url-search-params.size", ...CommonIteratorsWithTag];
41const AsyncIteratorDependencies = ["esnext.async-iterator.constructor", ...PromiseDependencies];
42const AsyncIteratorProblemMethods = ["esnext.async-iterator.every", "esnext.async-iterator.filter", "esnext.async-iterator.find", "esnext.async-iterator.flat-map", "esnext.async-iterator.for-each", "esnext.async-iterator.map", "esnext.async-iterator.reduce", "esnext.async-iterator.some"];
43const IteratorDependencies = ["esnext.iterator.constructor", "es.object.to-string"];
44const DecoratorMetadataDependencies = ["esnext.symbol.metadata", "esnext.function.metadata"];
45exports.DecoratorMetadataDependencies = DecoratorMetadataDependencies;
46const TypedArrayStaticMethods = base => ({
47 from: define(null, ["es.typed-array.from", base, ...TypedArrayDependencies]),
48 fromAsync: define(null, ["esnext.typed-array.from-async", base, ...PromiseDependenciesWithIterators, ...TypedArrayDependencies]),
49 of: define(null, ["es.typed-array.of", base, ...TypedArrayDependencies])
50});
51const DataViewDependencies = ["es.data-view", ...ArrayBufferDependencies];
52const BuiltIns = {
53 AsyncDisposableStack: define("async-disposable-stack/index", ["esnext.async-disposable-stack.constructor", "es.object.to-string", "esnext.async-iterator.async-dispose", "esnext.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]),
54 AsyncIterator: define("async-iterator/index", AsyncIteratorDependencies),
55 AggregateError: define("aggregate-error", ["es.aggregate-error", ...ErrorDependencies, ...CommonIteratorsWithTag, "es.aggregate-error.cause"]),
56 ArrayBuffer: define(null, ArrayBufferDependencies),
57 DataView: define(null, DataViewDependencies),
58 Date: define(null, ["es.date.to-string"]),
59 DOMException: define("dom-exception/index", DOMExceptionDependencies),
60 DisposableStack: define("disposable-stack/index", ["esnext.disposable-stack.constructor", "es.object.to-string", "esnext.iterator.dispose", ...SuppressedErrorDependencies]),
61 Error: define(null, ErrorDependencies),
62 EvalError: define(null, ErrorDependencies),
63 Float32Array: typed("es.typed-array.float32-array"),
64 Float64Array: typed("es.typed-array.float64-array"),
65 Int8Array: typed("es.typed-array.int8-array"),
66 Int16Array: typed("es.typed-array.int16-array"),
67 Int32Array: typed("es.typed-array.int32-array"),
68 Iterator: define("iterator/index", IteratorDependencies),
69 Uint8Array: typed("es.typed-array.uint8-array", "esnext.uint8-array.set-from-base64", "esnext.uint8-array.set-from-hex", "esnext.uint8-array.to-base64", "esnext.uint8-array.to-hex"),
70 Uint8ClampedArray: typed("es.typed-array.uint8-clamped-array"),
71 Uint16Array: typed("es.typed-array.uint16-array"),
72 Uint32Array: typed("es.typed-array.uint32-array"),
73 Map: define("map/index", MapDependencies),
74 Number: define(null, ["es.number.constructor"]),
75 Observable: define("observable/index", ["esnext.observable", "esnext.symbol.observable", "es.object.to-string", ...CommonIteratorsWithTag]),
76 Promise: define("promise/index", PromiseDependencies),
77 RangeError: define(null, ErrorDependencies),
78 ReferenceError: define(null, ErrorDependencies),
79 Reflect: define(null, ["es.reflect.to-string-tag", "es.object.to-string"]),
80 RegExp: define(null, ["es.regexp.constructor", "es.regexp.dot-all", "es.regexp.exec", "es.regexp.sticky", "es.regexp.to-string"]),
81 Set: define("set/index", SetDependencies),
82 SuppressedError: define("suppressed-error", SuppressedErrorDependencies),
83 Symbol: define("symbol/index", SymbolDependencies),
84 SyntaxError: define(null, ErrorDependencies),
85 TypeError: define(null, ErrorDependencies),
86 URIError: define(null, ErrorDependencies),
87 URL: define("url/index", ["web.url", "web.url.to-json", ...URLSearchParamsDependencies]),
88 URLSearchParams: define("url-search-params/index", URLSearchParamsDependencies),
89 WeakMap: define("weak-map/index", WeakMapDependencies),
90 WeakSet: define("weak-set/index", WeakSetDependencies),
91 atob: define("atob", ["web.atob", ...DOMExceptionDependencies]),
92 btoa: define("btoa", ["web.btoa", ...DOMExceptionDependencies]),
93 clearImmediate: define("clear-immediate", ["web.immediate"]),
94 compositeKey: define("composite-key", ["esnext.composite-key"]),
95 compositeSymbol: define("composite-symbol", ["esnext.composite-symbol"]),
96 escape: define("escape", ["es.escape"]),
97 fetch: define(null, PromiseDependencies),
98 globalThis: define("global-this", ["es.global-this"]),
99 parseFloat: define("parse-float", ["es.parse-float"]),
100 parseInt: define("parse-int", ["es.parse-int"]),
101 queueMicrotask: define("queue-microtask", ["web.queue-microtask"]),
102 self: define("self", ["web.self"]),
103 setImmediate: define("set-immediate", ["web.immediate"]),
104 setInterval: define("set-interval", ["web.timers"]),
105 setTimeout: define("set-timeout", ["web.timers"]),
106 structuredClone: define("structured-clone", ["web.structured-clone", ...DOMExceptionDependencies, "es.array.iterator", "es.object.keys", "es.object.to-string", "es.map", "es.set"]),
107 unescape: define("unescape", ["es.unescape"])
108};
109exports.BuiltIns = BuiltIns;
110const StaticProperties = {
111 AsyncIterator: {
112 from: define("async-iterator/from", ["esnext.async-iterator.from", ...AsyncIteratorDependencies, ...AsyncIteratorProblemMethods, ...CommonIterators])
113 },
114 Array: {
115 from: define("array/from", ["es.array.from", "es.string.iterator"]),
116 fromAsync: define("array/from-async", ["esnext.array.from-async", ...PromiseDependenciesWithIterators]),
117 isArray: define("array/is-array", ["es.array.is-array"]),
118 isTemplateObject: define("array/is-template-object", ["esnext.array.is-template-object"]),
119 of: define("array/of", ["es.array.of"])
120 },
121 ArrayBuffer: {
122 isView: define(null, ["es.array-buffer.is-view"])
123 },
124 BigInt: {
125 range: define("bigint/range", ["esnext.bigint.range", "es.object.to-string"])
126 },
127 Date: {
128 now: define("date/now", ["es.date.now"])
129 },
130 Function: {
131 isCallable: define("function/is-callable", ["esnext.function.is-callable"]),
132 isConstructor: define("function/is-constructor", ["esnext.function.is-constructor"])
133 },
134 Iterator: {
135 from: define("iterator/from", ["esnext.iterator.from", ...IteratorDependencies, ...CommonIterators]),
136 range: define("iterator/range", ["esnext.iterator.range", "es.object.to-string"])
137 },
138 JSON: {
139 isRawJSON: define("json/is-raw-json", ["esnext.json.is-raw-json"]),
140 parse: define("json/parse", ["esnext.json.parse", "es.object.keys"]),
141 rawJSON: define("json/raw-json", ["esnext.json.raw-json", "es.object.create", "es.object.freeze"]),
142 stringify: define("json/stringify", ["es.json.stringify", "es.date.to-json"], "es.symbol")
143 },
144 Math: {
145 DEG_PER_RAD: define("math/deg-per-rad", ["esnext.math.deg-per-rad"]),
146 RAD_PER_DEG: define("math/rad-per-deg", ["esnext.math.rad-per-deg"]),
147 acosh: define("math/acosh", ["es.math.acosh"]),
148 asinh: define("math/asinh", ["es.math.asinh"]),
149 atanh: define("math/atanh", ["es.math.atanh"]),
150 cbrt: define("math/cbrt", ["es.math.cbrt"]),
151 clamp: define("math/clamp", ["esnext.math.clamp"]),
152 clz32: define("math/clz32", ["es.math.clz32"]),
153 cosh: define("math/cosh", ["es.math.cosh"]),
154 degrees: define("math/degrees", ["esnext.math.degrees"]),
155 expm1: define("math/expm1", ["es.math.expm1"]),
156 fround: define("math/fround", ["es.math.fround"]),
157 f16round: define("math/f16round", ["esnext.math.f16round"]),
158 fscale: define("math/fscale", ["esnext.math.fscale"]),
159 hypot: define("math/hypot", ["es.math.hypot"]),
160 iaddh: define("math/iaddh", ["esnext.math.iaddh"]),
161 imul: define("math/imul", ["es.math.imul"]),
162 imulh: define("math/imulh", ["esnext.math.imulh"]),
163 isubh: define("math/isubh", ["esnext.math.isubh"]),
164 log10: define("math/log10", ["es.math.log10"]),
165 log1p: define("math/log1p", ["es.math.log1p"]),
166 log2: define("math/log2", ["es.math.log2"]),
167 radians: define("math/radians", ["esnext.math.radians"]),
168 scale: define("math/scale", ["esnext.math.scale"]),
169 seededPRNG: define("math/seeded-prng", ["esnext.math.seeded-prng"]),
170 sign: define("math/sign", ["es.math.sign"]),
171 signbit: define("math/signbit", ["esnext.math.signbit"]),
172 sinh: define("math/sinh", ["es.math.sinh"]),
173 sumPrecise: define("math/sum-precise", ["esnext.math.sum-precise", "es.array.iterator"]),
174 tanh: define("math/tanh", ["es.math.tanh"]),
175 trunc: define("math/trunc", ["es.math.trunc"]),
176 umulh: define("math/umulh", ["esnext.math.umulh"])
177 },
178 Map: {
179 from: define("map/from", ["esnext.map.from", ...MapDependencies]),
180 groupBy: define("map/group-by", ["es.map.group-by", ...MapDependencies]),
181 keyBy: define("map/key-by", ["esnext.map.key-by", ...MapDependencies]),
182 of: define("map/of", ["esnext.map.of", ...MapDependencies])
183 },
184 Number: {
185 EPSILON: define("number/epsilon", ["es.number.epsilon"]),
186 MAX_SAFE_INTEGER: define("number/max-safe-integer", ["es.number.max-safe-integer"]),
187 MIN_SAFE_INTEGER: define("number/min-safe-integer", ["es.number.min-safe-integer"]),
188 fromString: define("number/from-string", ["esnext.number.from-string"]),
189 isFinite: define("number/is-finite", ["es.number.is-finite"]),
190 isInteger: define("number/is-integer", ["es.number.is-integer"]),
191 isNaN: define("number/is-nan", ["es.number.is-nan"]),
192 isSafeInteger: define("number/is-safe-integer", ["es.number.is-safe-integer"]),
193 parseFloat: define("number/parse-float", ["es.number.parse-float"]),
194 parseInt: define("number/parse-int", ["es.number.parse-int"]),
195 range: define("number/range", ["esnext.number.range", "es.object.to-string"])
196 },
197 Object: {
198 assign: define("object/assign", ["es.object.assign"]),
199 create: define("object/create", ["es.object.create"]),
200 defineProperties: define("object/define-properties", ["es.object.define-properties"]),
201 defineProperty: define("object/define-property", ["es.object.define-property"]),
202 entries: define("object/entries", ["es.object.entries"]),
203 freeze: define("object/freeze", ["es.object.freeze"]),
204 fromEntries: define("object/from-entries", ["es.object.from-entries", "es.array.iterator"]),
205 getOwnPropertyDescriptor: define("object/get-own-property-descriptor", ["es.object.get-own-property-descriptor"]),
206 getOwnPropertyDescriptors: define("object/get-own-property-descriptors", ["es.object.get-own-property-descriptors"]),
207 getOwnPropertyNames: define("object/get-own-property-names", ["es.object.get-own-property-names"]),
208 getOwnPropertySymbols: define("object/get-own-property-symbols", ["es.symbol"]),
209 getPrototypeOf: define("object/get-prototype-of", ["es.object.get-prototype-of"]),
210 groupBy: define("object/group-by", ["es.object.group-by", "es.object.create"]),
211 hasOwn: define("object/has-own", ["es.object.has-own"]),
212 is: define("object/is", ["es.object.is"]),
213 isExtensible: define("object/is-extensible", ["es.object.is-extensible"]),
214 isFrozen: define("object/is-frozen", ["es.object.is-frozen"]),
215 isSealed: define("object/is-sealed", ["es.object.is-sealed"]),
216 keys: define("object/keys", ["es.object.keys"]),
217 preventExtensions: define("object/prevent-extensions", ["es.object.prevent-extensions"]),
218 seal: define("object/seal", ["es.object.seal"]),
219 setPrototypeOf: define("object/set-prototype-of", ["es.object.set-prototype-of"]),
220 values: define("object/values", ["es.object.values"])
221 },
222 Promise: {
223 all: define(null, PromiseDependenciesWithIterators),
224 allSettled: define("promise/all-settled", ["es.promise.all-settled", ...PromiseDependenciesWithIterators]),
225 any: define("promise/any", ["es.promise.any", "es.aggregate-error", ...PromiseDependenciesWithIterators]),
226 race: define(null, PromiseDependenciesWithIterators),
227 try: define("promise/try", ["esnext.promise.try", ...PromiseDependencies]),
228 withResolvers: define("promise/with-resolvers", ["es.promise.with-resolvers", ...PromiseDependencies])
229 },
230 Reflect: {
231 apply: define("reflect/apply", ["es.reflect.apply"]),
232 construct: define("reflect/construct", ["es.reflect.construct"]),
233 defineMetadata: define("reflect/define-metadata", ["esnext.reflect.define-metadata"]),
234 defineProperty: define("reflect/define-property", ["es.reflect.define-property"]),
235 deleteMetadata: define("reflect/delete-metadata", ["esnext.reflect.delete-metadata"]),
236 deleteProperty: define("reflect/delete-property", ["es.reflect.delete-property"]),
237 get: define("reflect/get", ["es.reflect.get"]),
238 getMetadata: define("reflect/get-metadata", ["esnext.reflect.get-metadata"]),
239 getMetadataKeys: define("reflect/get-metadata-keys", ["esnext.reflect.get-metadata-keys"]),
240 getOwnMetadata: define("reflect/get-own-metadata", ["esnext.reflect.get-own-metadata"]),
241 getOwnMetadataKeys: define("reflect/get-own-metadata-keys", ["esnext.reflect.get-own-metadata-keys"]),
242 getOwnPropertyDescriptor: define("reflect/get-own-property-descriptor", ["es.reflect.get-own-property-descriptor"]),
243 getPrototypeOf: define("reflect/get-prototype-of", ["es.reflect.get-prototype-of"]),
244 has: define("reflect/has", ["es.reflect.has"]),
245 hasMetadata: define("reflect/has-metadata", ["esnext.reflect.has-metadata"]),
246 hasOwnMetadata: define("reflect/has-own-metadata", ["esnext.reflect.has-own-metadata"]),
247 isExtensible: define("reflect/is-extensible", ["es.reflect.is-extensible"]),
248 metadata: define("reflect/metadata", ["esnext.reflect.metadata"]),
249 ownKeys: define("reflect/own-keys", ["es.reflect.own-keys"]),
250 preventExtensions: define("reflect/prevent-extensions", ["es.reflect.prevent-extensions"]),
251 set: define("reflect/set", ["es.reflect.set"]),
252 setPrototypeOf: define("reflect/set-prototype-of", ["es.reflect.set-prototype-of"])
253 },
254 RegExp: {
255 escape: define("regexp/escape", ["esnext.regexp.escape"])
256 },
257 Set: {
258 from: define("set/from", ["esnext.set.from", ...SetDependencies]),
259 of: define("set/of", ["esnext.set.of", ...SetDependencies])
260 },
261 String: {
262 cooked: define("string/cooked", ["esnext.string.cooked"]),
263 dedent: define("string/dedent", ["esnext.string.dedent", "es.string.from-code-point", "es.weak-map"]),
264 fromCodePoint: define("string/from-code-point", ["es.string.from-code-point"]),
265 raw: define("string/raw", ["es.string.raw"])
266 },
267 Symbol: {
268 asyncDispose: define("symbol/async-dispose", ["esnext.symbol.async-dispose", "esnext.async-iterator.async-dispose"]),
269 asyncIterator: define("symbol/async-iterator", ["es.symbol.async-iterator"]),
270 customMatcher: define("symbol/custom-matcher", ["esnext.symbol.custom-matcher"]),
271 dispose: define("symbol/dispose", ["esnext.symbol.dispose", "esnext.iterator.dispose"]),
272 for: define("symbol/for", [], "es.symbol"),
273 hasInstance: define("symbol/has-instance", ["es.symbol.has-instance", "es.function.has-instance"]),
274 isConcatSpreadable: define("symbol/is-concat-spreadable", ["es.symbol.is-concat-spreadable", "es.array.concat"]),
275 isRegistered: define("symbol/is-registered", ["esnext.symbol.is-registered", "es.symbol"]),
276 isRegisteredSymbol: define("symbol/is-registered-symbol", ["esnext.symbol.is-registered-symbol", "es.symbol"]),
277 isWellKnown: define("symbol/is-well-known", ["esnext.symbol.is-well-known", "es.symbol"]),
278 isWellKnownSymbol: define("symbol/is-well-known-symbol", ["esnext.symbol.is-well-known-symbol", "es.symbol"]),
279 iterator: define("symbol/iterator", ["es.symbol.iterator", ...CommonIteratorsWithTag]),
280 keyFor: define("symbol/key-for", [], "es.symbol"),
281 match: define("symbol/match", ["es.symbol.match", "es.string.match"]),
282 matcher: define("symbol/matcher", ["esnext.symbol.matcher"]),
283 matchAll: define("symbol/match-all", ["es.symbol.match-all", "es.string.match-all"]),
284 metadata: define("symbol/metadata", DecoratorMetadataDependencies),
285 metadataKey: define("symbol/metadata-key", ["esnext.symbol.metadata-key"]),
286 observable: define("symbol/observable", ["esnext.symbol.observable"]),
287 patternMatch: define("symbol/pattern-match", ["esnext.symbol.pattern-match"]),
288 replace: define("symbol/replace", ["es.symbol.replace", "es.string.replace"]),
289 search: define("symbol/search", ["es.symbol.search", "es.string.search"]),
290 species: define("symbol/species", ["es.symbol.species", "es.array.species"]),
291 split: define("symbol/split", ["es.symbol.split", "es.string.split"]),
292 toPrimitive: define("symbol/to-primitive", ["es.symbol.to-primitive", "es.date.to-primitive"]),
293 toStringTag: define("symbol/to-string-tag", ["es.symbol.to-string-tag", "es.object.to-string", "es.math.to-string-tag", "es.json.to-string-tag"]),
294 unscopables: define("symbol/unscopables", ["es.symbol.unscopables"])
295 },
296 URL: {
297 canParse: define("url/can-parse", ["web.url.can-parse", "web.url"]),
298 parse: define("url/parse", ["web.url.parse", "web.url"])
299 },
300 WeakMap: {
301 from: define("weak-map/from", ["esnext.weak-map.from", ...WeakMapDependencies]),
302 of: define("weak-map/of", ["esnext.weak-map.of", ...WeakMapDependencies])
303 },
304 WeakSet: {
305 from: define("weak-set/from", ["esnext.weak-set.from", ...WeakSetDependencies]),
306 of: define("weak-set/of", ["esnext.weak-set.of", ...WeakSetDependencies])
307 },
308 Int8Array: TypedArrayStaticMethods("es.typed-array.int8-array"),
309 Uint8Array: _extends({
310 fromBase64: define(null, ["esnext.uint8-array.from-base64", ...TypedArrayDependencies]),
311 fromHex: define(null, ["esnext.uint8-array.from-hex", ...TypedArrayDependencies])
312 }, TypedArrayStaticMethods("es.typed-array.uint8-array")),
313 Uint8ClampedArray: TypedArrayStaticMethods("es.typed-array.uint8-clamped-array"),
314 Int16Array: TypedArrayStaticMethods("es.typed-array.int16-array"),
315 Uint16Array: TypedArrayStaticMethods("es.typed-array.uint16-array"),
316 Int32Array: TypedArrayStaticMethods("es.typed-array.int32-array"),
317 Uint32Array: TypedArrayStaticMethods("es.typed-array.uint32-array"),
318 Float32Array: TypedArrayStaticMethods("es.typed-array.float32-array"),
319 Float64Array: TypedArrayStaticMethods("es.typed-array.float64-array"),
320 WebAssembly: {
321 CompileError: define(null, ErrorDependencies),
322 LinkError: define(null, ErrorDependencies),
323 RuntimeError: define(null, ErrorDependencies)
324 }
325};
326exports.StaticProperties = StaticProperties;
327const InstanceProperties = {
328 asIndexedPairs: define(null, ["esnext.async-iterator.as-indexed-pairs", ...AsyncIteratorDependencies, "esnext.iterator.as-indexed-pairs", ...IteratorDependencies]),
329 at: define("instance/at", [
330 // TODO: We should introduce overloaded instance methods definition
331 // Before that is implemented, the `esnext.string.at` must be the first
332 // In pure mode, the provider resolves the descriptor as a "pure" `esnext.string.at`
333 // and treats the compat-data of `esnext.string.at` as the compat-data of
334 // pure import `instance/at`. The first polyfill here should have the lowest corejs
335 // supported versions.
336 "esnext.string.at", "es.string.at-alternative", "es.array.at"]),
337 anchor: define(null, ["es.string.anchor"]),
338 big: define(null, ["es.string.big"]),
339 bind: define("instance/bind", ["es.function.bind"]),
340 blink: define(null, ["es.string.blink"]),
341 bold: define(null, ["es.string.bold"]),
342 codePointAt: define("instance/code-point-at", ["es.string.code-point-at"]),
343 codePoints: define("instance/code-points", ["esnext.string.code-points"]),
344 concat: define("instance/concat", ["es.array.concat"], undefined, ["String"]),
345 copyWithin: define("instance/copy-within", ["es.array.copy-within"]),
346 demethodize: define("instance/demethodize", ["esnext.function.demethodize"]),
347 description: define(null, ["es.symbol", "es.symbol.description"]),
348 dotAll: define(null, ["es.regexp.dot-all"]),
349 drop: define(null, ["esnext.async-iterator.drop", ...AsyncIteratorDependencies, "esnext.iterator.drop", ...IteratorDependencies]),
350 emplace: define("instance/emplace", ["esnext.map.emplace", "esnext.weak-map.emplace"]),
351 endsWith: define("instance/ends-with", ["es.string.ends-with"]),
352 entries: define("instance/entries", ArrayNatureIteratorsWithTag),
353 every: define("instance/every", ["es.array.every", "esnext.async-iterator.every",
354 // TODO: add async iterator dependencies when we support sub-dependencies
355 // esnext.async-iterator.every depends on es.promise
356 // but we don't want to pull es.promise when esnext.async-iterator is disabled
357 //
358 // ...AsyncIteratorDependencies
359 "esnext.iterator.every", ...IteratorDependencies]),
360 exec: define(null, ["es.regexp.exec"]),
361 fill: define("instance/fill", ["es.array.fill"]),
362 filter: define("instance/filter", ["es.array.filter", "esnext.async-iterator.filter", "esnext.iterator.filter", ...IteratorDependencies]),
363 filterReject: define("instance/filterReject", ["esnext.array.filter-reject"]),
364 finally: define(null, ["es.promise.finally", ...PromiseDependencies]),
365 find: define("instance/find", ["es.array.find", "esnext.async-iterator.find", "esnext.iterator.find", ...IteratorDependencies]),
366 findIndex: define("instance/find-index", ["es.array.find-index"]),
367 findLast: define("instance/find-last", ["es.array.find-last"]),
368 findLastIndex: define("instance/find-last-index", ["es.array.find-last-index"]),
369 fixed: define(null, ["es.string.fixed"]),
370 flags: define("instance/flags", ["es.regexp.flags"]),
371 flatMap: define("instance/flat-map", ["es.array.flat-map", "es.array.unscopables.flat-map", "esnext.async-iterator.flat-map", "esnext.iterator.flat-map", ...IteratorDependencies]),
372 flat: define("instance/flat", ["es.array.flat", "es.array.unscopables.flat"]),
373 getFloat16: define(null, ["esnext.data-view.get-float16", ...DataViewDependencies]),
374 getUint8Clamped: define(null, ["esnext.data-view.get-uint8-clamped", ...DataViewDependencies]),
375 getYear: define(null, ["es.date.get-year"]),
376 group: define("instance/group", ["esnext.array.group"]),
377 groupBy: define("instance/group-by", ["esnext.array.group-by"]),
378 groupByToMap: define("instance/group-by-to-map", ["esnext.array.group-by-to-map", "es.map", "es.object.to-string"]),
379 groupToMap: define("instance/group-to-map", ["esnext.array.group-to-map", "es.map", "es.object.to-string"]),
380 fontcolor: define(null, ["es.string.fontcolor"]),
381 fontsize: define(null, ["es.string.fontsize"]),
382 forEach: define("instance/for-each", ["es.array.for-each", "esnext.async-iterator.for-each", "esnext.iterator.for-each", ...IteratorDependencies, "web.dom-collections.for-each"]),
383 includes: define("instance/includes", ["es.array.includes", "es.string.includes"]),
384 indexed: define(null, ["esnext.async-iterator.indexed", ...AsyncIteratorDependencies, "esnext.iterator.indexed", ...IteratorDependencies]),
385 indexOf: define("instance/index-of", ["es.array.index-of"]),
386 isWellFormed: define("instance/is-well-formed", ["es.string.is-well-formed"]),
387 italic: define(null, ["es.string.italics"]),
388 join: define(null, ["es.array.join"]),
389 keys: define("instance/keys", ArrayNatureIteratorsWithTag),
390 lastIndex: define(null, ["esnext.array.last-index"]),
391 lastIndexOf: define("instance/last-index-of", ["es.array.last-index-of"]),
392 lastItem: define(null, ["esnext.array.last-item"]),
393 link: define(null, ["es.string.link"]),
394 map: define("instance/map", ["es.array.map", "esnext.async-iterator.map", "esnext.iterator.map"]),
395 match: define(null, ["es.string.match", "es.regexp.exec"]),
396 matchAll: define("instance/match-all", ["es.string.match-all", "es.regexp.exec"]),
397 name: define(null, ["es.function.name"]),
398 padEnd: define("instance/pad-end", ["es.string.pad-end"]),
399 padStart: define("instance/pad-start", ["es.string.pad-start"]),
400 push: define("instance/push", ["es.array.push"]),
401 reduce: define("instance/reduce", ["es.array.reduce", "esnext.async-iterator.reduce", "esnext.iterator.reduce", ...IteratorDependencies]),
402 reduceRight: define("instance/reduce-right", ["es.array.reduce-right"]),
403 repeat: define("instance/repeat", ["es.string.repeat"]),
404 replace: define(null, ["es.string.replace", "es.regexp.exec"]),
405 replaceAll: define("instance/replace-all", ["es.string.replace-all", "es.string.replace", "es.regexp.exec"]),
406 reverse: define("instance/reverse", ["es.array.reverse"]),
407 search: define(null, ["es.string.search", "es.regexp.exec"]),
408 setFloat16: define(null, ["esnext.data-view.set-float16", ...DataViewDependencies]),
409 setUint8Clamped: define(null, ["esnext.data-view.set-uint8-clamped", ...DataViewDependencies]),
410 setYear: define(null, ["es.date.set-year"]),
411 slice: define("instance/slice", ["es.array.slice"]),
412 small: define(null, ["es.string.small"]),
413 some: define("instance/some", ["es.array.some", "esnext.async-iterator.some", "esnext.iterator.some", ...IteratorDependencies]),
414 sort: define("instance/sort", ["es.array.sort"]),
415 splice: define("instance/splice", ["es.array.splice"]),
416 split: define(null, ["es.string.split", "es.regexp.exec"]),
417 startsWith: define("instance/starts-with", ["es.string.starts-with"]),
418 sticky: define(null, ["es.regexp.sticky"]),
419 strike: define(null, ["es.string.strike"]),
420 sub: define(null, ["es.string.sub"]),
421 substr: define(null, ["es.string.substr"]),
422 sup: define(null, ["es.string.sup"]),
423 take: define(null, ["esnext.async-iterator.take", ...AsyncIteratorDependencies, "esnext.iterator.take", ...IteratorDependencies]),
424 test: define(null, ["es.regexp.test", "es.regexp.exec"]),
425 toArray: define(null, ["esnext.async-iterator.to-array", ...AsyncIteratorDependencies, "esnext.iterator.to-array", ...IteratorDependencies]),
426 toAsync: define(null, ["esnext.iterator.to-async", ...IteratorDependencies, ...AsyncIteratorDependencies, ...AsyncIteratorProblemMethods]),
427 toExponential: define(null, ["es.number.to-exponential"]),
428 toFixed: define(null, ["es.number.to-fixed"]),
429 toGMTString: define(null, ["es.date.to-gmt-string"]),
430 toISOString: define(null, ["es.date.to-iso-string"]),
431 toJSON: define(null, ["es.date.to-json"]),
432 toPrecision: define(null, ["es.number.to-precision"]),
433 toReversed: define("instance/to-reversed", ["es.array.to-reversed"]),
434 toSorted: define("instance/to-sorted", ["es.array.to-sorted", "es.array.sort"]),
435 toSpliced: define("instance/to-spliced", ["es.array.to-spliced"]),
436 toString: define(null, ["es.object.to-string", "es.error.to-string", "es.date.to-string", "es.regexp.to-string"]),
437 toWellFormed: define("instance/to-well-formed", ["es.string.to-well-formed"]),
438 trim: define("instance/trim", ["es.string.trim"]),
439 trimEnd: define("instance/trim-end", ["es.string.trim-end"]),
440 trimLeft: define("instance/trim-left", ["es.string.trim-start"]),
441 trimRight: define("instance/trim-right", ["es.string.trim-end"]),
442 trimStart: define("instance/trim-start", ["es.string.trim-start"]),
443 uniqueBy: define("instance/unique-by", ["esnext.array.unique-by", "es.map"]),
444 unshift: define("instance/unshift", ["es.array.unshift"]),
445 unThis: define("instance/un-this", ["esnext.function.un-this"]),
446 values: define("instance/values", ArrayNatureIteratorsWithTag),
447 with: define("instance/with", ["es.array.with"]),
448 __defineGetter__: define(null, ["es.object.define-getter"]),
449 __defineSetter__: define(null, ["es.object.define-setter"]),
450 __lookupGetter__: define(null, ["es.object.lookup-getter"]),
451 __lookupSetter__: define(null, ["es.object.lookup-setter"]),
452 ["__proto__"]: define(null, ["es.object.proto"])
453};
454exports.InstanceProperties = InstanceProperties;
Note: See TracBrowser for help on using the repository browser.