@depay/widgets 6.30.0 → 6.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/esm/index.bundle.js +79 -109681
- package/dist/esm/index.js +246 -601
- package/dist/umd/index.bundle.js +95 -109705
- package/dist/umd/index.js +246 -601
- package/package.json +10 -10
package/dist/esm/index.js
CHANGED
|
@@ -68,763 +68,391 @@ function createCommonjsModule(fn) {
|
|
|
68
68
|
return fn(module, module.exports), module.exports;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
71
|
+
var _typeof_1 = createCommonjsModule(function (module) {
|
|
72
|
+
function _typeof(obj) {
|
|
73
|
+
"@babel/helpers - typeof";
|
|
77
74
|
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
76
|
+
return typeof obj;
|
|
77
|
+
} : function (obj) {
|
|
78
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
79
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
83
|
+
});
|
|
80
84
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
var regeneratorRuntime$1 = createCommonjsModule(function (module) {
|
|
86
|
+
var _typeof = _typeof_1["default"];
|
|
87
|
+
|
|
88
|
+
function _regeneratorRuntime() {
|
|
89
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
90
|
+
|
|
91
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
92
|
+
return exports;
|
|
93
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
94
|
+
var exports = {},
|
|
95
|
+
Op = Object.prototype,
|
|
96
|
+
hasOwn = Op.hasOwnProperty,
|
|
97
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
98
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
99
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
100
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
88
101
|
|
|
89
102
|
function define(obj, key, value) {
|
|
90
|
-
Object.defineProperty(obj, key, {
|
|
103
|
+
return Object.defineProperty(obj, key, {
|
|
91
104
|
value: value,
|
|
92
|
-
enumerable:
|
|
93
|
-
configurable:
|
|
94
|
-
writable:
|
|
95
|
-
});
|
|
96
|
-
return obj[key];
|
|
105
|
+
enumerable: !0,
|
|
106
|
+
configurable: !0,
|
|
107
|
+
writable: !0
|
|
108
|
+
}), obj[key];
|
|
97
109
|
}
|
|
110
|
+
|
|
98
111
|
try {
|
|
99
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
100
112
|
define({}, "");
|
|
101
113
|
} catch (err) {
|
|
102
|
-
define = function(obj, key, value) {
|
|
114
|
+
define = function define(obj, key, value) {
|
|
103
115
|
return obj[key] = value;
|
|
104
116
|
};
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
121
|
+
generator = Object.create(protoGenerator.prototype),
|
|
122
|
+
context = new Context(tryLocsList || []);
|
|
123
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
124
|
+
var state = "suspendedStart";
|
|
125
|
+
return function (method, arg) {
|
|
126
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
127
|
+
|
|
128
|
+
if ("completed" === state) {
|
|
129
|
+
if ("throw" === method) throw arg;
|
|
130
|
+
return doneResult();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
for (context.method = method, context.arg = arg;;) {
|
|
134
|
+
var delegate = context.delegate;
|
|
112
135
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
136
|
+
if (delegate) {
|
|
137
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
116
138
|
|
|
117
|
-
|
|
139
|
+
if (delegateResult) {
|
|
140
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
141
|
+
return delegateResult;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
146
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
147
|
+
context.dispatchException(context.arg);
|
|
148
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
149
|
+
state = "executing";
|
|
150
|
+
var record = tryCatch(innerFn, self, context);
|
|
151
|
+
|
|
152
|
+
if ("normal" === record.type) {
|
|
153
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
154
|
+
return {
|
|
155
|
+
value: record.arg,
|
|
156
|
+
done: context.done
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}(innerFn, self, context), generator;
|
|
118
164
|
}
|
|
119
|
-
exports.wrap = wrap;
|
|
120
165
|
|
|
121
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
122
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
123
|
-
// have been (and was previously) designed to take a closure to be
|
|
124
|
-
// invoked without arguments, but in all the cases we care about we
|
|
125
|
-
// already have an existing method we want to call, so there's no need
|
|
126
|
-
// to create a new function object. We can even get away with assuming
|
|
127
|
-
// the method takes exactly one argument, since that happens to be true
|
|
128
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
129
|
-
// only additional allocation required is the completion record, which
|
|
130
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
131
166
|
function tryCatch(fn, obj, arg) {
|
|
132
167
|
try {
|
|
133
|
-
return {
|
|
168
|
+
return {
|
|
169
|
+
type: "normal",
|
|
170
|
+
arg: fn.call(obj, arg)
|
|
171
|
+
};
|
|
134
172
|
} catch (err) {
|
|
135
|
-
return {
|
|
173
|
+
return {
|
|
174
|
+
type: "throw",
|
|
175
|
+
arg: err
|
|
176
|
+
};
|
|
136
177
|
}
|
|
137
178
|
}
|
|
138
179
|
|
|
139
|
-
|
|
140
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
141
|
-
var GenStateExecuting = "executing";
|
|
142
|
-
var GenStateCompleted = "completed";
|
|
143
|
-
|
|
144
|
-
// Returning this object from the innerFn has the same effect as
|
|
145
|
-
// breaking out of the dispatch switch statement.
|
|
180
|
+
exports.wrap = wrap;
|
|
146
181
|
var ContinueSentinel = {};
|
|
147
182
|
|
|
148
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
149
|
-
// .constructor.prototype properties for functions that return Generator
|
|
150
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
151
|
-
// minifier not to mangle the names of these two functions.
|
|
152
183
|
function Generator() {}
|
|
184
|
+
|
|
153
185
|
function GeneratorFunction() {}
|
|
186
|
+
|
|
154
187
|
function GeneratorFunctionPrototype() {}
|
|
155
188
|
|
|
156
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
157
|
-
// don't natively support it.
|
|
158
189
|
var IteratorPrototype = {};
|
|
159
190
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
160
191
|
return this;
|
|
161
192
|
});
|
|
193
|
+
var getProto = Object.getPrototypeOf,
|
|
194
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
195
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
196
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
162
197
|
|
|
163
|
-
var getProto = Object.getPrototypeOf;
|
|
164
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
165
|
-
if (NativeIteratorPrototype &&
|
|
166
|
-
NativeIteratorPrototype !== Op &&
|
|
167
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
168
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
169
|
-
// of the polyfill.
|
|
170
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
174
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
175
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
176
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
177
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
178
|
-
GeneratorFunction.displayName = define(
|
|
179
|
-
GeneratorFunctionPrototype,
|
|
180
|
-
toStringTagSymbol,
|
|
181
|
-
"GeneratorFunction"
|
|
182
|
-
);
|
|
183
|
-
|
|
184
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
185
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
186
198
|
function defineIteratorMethods(prototype) {
|
|
187
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
188
|
-
define(prototype, method, function(arg) {
|
|
199
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
200
|
+
define(prototype, method, function (arg) {
|
|
189
201
|
return this._invoke(method, arg);
|
|
190
202
|
});
|
|
191
203
|
});
|
|
192
204
|
}
|
|
193
205
|
|
|
194
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
195
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
196
|
-
return ctor
|
|
197
|
-
? ctor === GeneratorFunction ||
|
|
198
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
199
|
-
// do is to check its .name property.
|
|
200
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
201
|
-
: false;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
exports.mark = function(genFun) {
|
|
205
|
-
if (Object.setPrototypeOf) {
|
|
206
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
207
|
-
} else {
|
|
208
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
209
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
210
|
-
}
|
|
211
|
-
genFun.prototype = Object.create(Gp);
|
|
212
|
-
return genFun;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
// Within the body of any async function, `await x` is transformed to
|
|
216
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
217
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
218
|
-
// meant to be awaited.
|
|
219
|
-
exports.awrap = function(arg) {
|
|
220
|
-
return { __await: arg };
|
|
221
|
-
};
|
|
222
|
-
|
|
223
206
|
function AsyncIterator(generator, PromiseImpl) {
|
|
224
207
|
function invoke(method, arg, resolve, reject) {
|
|
225
208
|
var record = tryCatch(generator[method], generator, arg);
|
|
226
|
-
if (record.type === "throw") {
|
|
227
|
-
reject(record.arg);
|
|
228
|
-
} else {
|
|
229
|
-
var result = record.arg;
|
|
230
|
-
var value = result.value;
|
|
231
|
-
if (value &&
|
|
232
|
-
typeof value === "object" &&
|
|
233
|
-
hasOwn.call(value, "__await")) {
|
|
234
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
235
|
-
invoke("next", value, resolve, reject);
|
|
236
|
-
}, function(err) {
|
|
237
|
-
invoke("throw", err, resolve, reject);
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
209
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
210
|
+
if ("throw" !== record.type) {
|
|
211
|
+
var result = record.arg,
|
|
212
|
+
value = result.value;
|
|
213
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
214
|
+
invoke("next", value, resolve, reject);
|
|
215
|
+
}, function (err) {
|
|
216
|
+
invoke("throw", err, resolve, reject);
|
|
217
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
218
|
+
result.value = unwrapped, resolve(result);
|
|
219
|
+
}, function (error) {
|
|
250
220
|
return invoke("throw", error, resolve, reject);
|
|
251
221
|
});
|
|
252
222
|
}
|
|
223
|
+
|
|
224
|
+
reject(record.arg);
|
|
253
225
|
}
|
|
254
226
|
|
|
255
227
|
var previousPromise;
|
|
256
228
|
|
|
257
|
-
function
|
|
229
|
+
this._invoke = function (method, arg) {
|
|
258
230
|
function callInvokeWithMethodAndArg() {
|
|
259
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
231
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
260
232
|
invoke(method, arg, resolve, reject);
|
|
261
233
|
});
|
|
262
234
|
}
|
|
263
235
|
|
|
264
|
-
return previousPromise =
|
|
265
|
-
// If enqueue has been called before, then we want to wait until
|
|
266
|
-
// all previous Promises have been resolved before calling invoke,
|
|
267
|
-
// so that results are always delivered in the correct order. If
|
|
268
|
-
// enqueue has not been called before, then it is important to
|
|
269
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
270
|
-
// so that the async generator function has the opportunity to do
|
|
271
|
-
// any necessary setup in a predictable way. This predictability
|
|
272
|
-
// is why the Promise constructor synchronously invokes its
|
|
273
|
-
// executor callback, and why async functions synchronously
|
|
274
|
-
// execute code before the first await. Since we implement simple
|
|
275
|
-
// async functions in terms of async generators, it is especially
|
|
276
|
-
// important to get this right, even though it requires care.
|
|
277
|
-
previousPromise ? previousPromise.then(
|
|
278
|
-
callInvokeWithMethodAndArg,
|
|
279
|
-
// Avoid propagating failures to Promises returned by later
|
|
280
|
-
// invocations of the iterator.
|
|
281
|
-
callInvokeWithMethodAndArg
|
|
282
|
-
) : callInvokeWithMethodAndArg();
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// Define the unified helper method that is used to implement .next,
|
|
286
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
287
|
-
this._invoke = enqueue;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
291
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
292
|
-
return this;
|
|
293
|
-
});
|
|
294
|
-
exports.AsyncIterator = AsyncIterator;
|
|
295
|
-
|
|
296
|
-
// Note that simple async functions are implemented on top of
|
|
297
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
298
|
-
// the final result produced by the iterator.
|
|
299
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
300
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
301
|
-
|
|
302
|
-
var iter = new AsyncIterator(
|
|
303
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
304
|
-
PromiseImpl
|
|
305
|
-
);
|
|
306
|
-
|
|
307
|
-
return exports.isGeneratorFunction(outerFn)
|
|
308
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
309
|
-
: iter.next().then(function(result) {
|
|
310
|
-
return result.done ? result.value : iter.next();
|
|
311
|
-
});
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
315
|
-
var state = GenStateSuspendedStart;
|
|
316
|
-
|
|
317
|
-
return function invoke(method, arg) {
|
|
318
|
-
if (state === GenStateExecuting) {
|
|
319
|
-
throw new Error("Generator is already running");
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
if (state === GenStateCompleted) {
|
|
323
|
-
if (method === "throw") {
|
|
324
|
-
throw arg;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
328
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
329
|
-
return doneResult();
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
context.method = method;
|
|
333
|
-
context.arg = arg;
|
|
334
|
-
|
|
335
|
-
while (true) {
|
|
336
|
-
var delegate = context.delegate;
|
|
337
|
-
if (delegate) {
|
|
338
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
339
|
-
if (delegateResult) {
|
|
340
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
341
|
-
return delegateResult;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
if (context.method === "next") {
|
|
346
|
-
// Setting context._sent for legacy support of Babel's
|
|
347
|
-
// function.sent implementation.
|
|
348
|
-
context.sent = context._sent = context.arg;
|
|
349
|
-
|
|
350
|
-
} else if (context.method === "throw") {
|
|
351
|
-
if (state === GenStateSuspendedStart) {
|
|
352
|
-
state = GenStateCompleted;
|
|
353
|
-
throw context.arg;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
context.dispatchException(context.arg);
|
|
357
|
-
|
|
358
|
-
} else if (context.method === "return") {
|
|
359
|
-
context.abrupt("return", context.arg);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
state = GenStateExecuting;
|
|
363
|
-
|
|
364
|
-
var record = tryCatch(innerFn, self, context);
|
|
365
|
-
if (record.type === "normal") {
|
|
366
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
367
|
-
// GenStateExecuting and loop back for another invocation.
|
|
368
|
-
state = context.done
|
|
369
|
-
? GenStateCompleted
|
|
370
|
-
: GenStateSuspendedYield;
|
|
371
|
-
|
|
372
|
-
if (record.arg === ContinueSentinel) {
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
return {
|
|
377
|
-
value: record.arg,
|
|
378
|
-
done: context.done
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
} else if (record.type === "throw") {
|
|
382
|
-
state = GenStateCompleted;
|
|
383
|
-
// Dispatch the exception by looping back around to the
|
|
384
|
-
// context.dispatchException(context.arg) call above.
|
|
385
|
-
context.method = "throw";
|
|
386
|
-
context.arg = record.arg;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
236
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
389
237
|
};
|
|
390
238
|
}
|
|
391
239
|
|
|
392
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
393
|
-
// result, either by returning a { value, done } result from the
|
|
394
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
395
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
396
240
|
function maybeInvokeDelegate(delegate, context) {
|
|
397
241
|
var method = delegate.iterator[context.method];
|
|
398
|
-
if (method === undefined$1) {
|
|
399
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
400
|
-
// method always terminates the yield* loop.
|
|
401
|
-
context.delegate = null;
|
|
402
|
-
|
|
403
|
-
if (context.method === "throw") {
|
|
404
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
405
|
-
if (delegate.iterator["return"]) {
|
|
406
|
-
// If the delegate iterator has a return method, give it a
|
|
407
|
-
// chance to clean up.
|
|
408
|
-
context.method = "return";
|
|
409
|
-
context.arg = undefined$1;
|
|
410
|
-
maybeInvokeDelegate(delegate, context);
|
|
411
|
-
|
|
412
|
-
if (context.method === "throw") {
|
|
413
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
414
|
-
// "return" to "throw", let that override the TypeError below.
|
|
415
|
-
return ContinueSentinel;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
242
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
243
|
+
if (undefined === method) {
|
|
244
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
245
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
246
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
422
247
|
}
|
|
423
248
|
|
|
424
249
|
return ContinueSentinel;
|
|
425
250
|
}
|
|
426
251
|
|
|
427
252
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
428
|
-
|
|
429
|
-
if (record.type === "throw") {
|
|
430
|
-
context.method = "throw";
|
|
431
|
-
context.arg = record.arg;
|
|
432
|
-
context.delegate = null;
|
|
433
|
-
return ContinueSentinel;
|
|
434
|
-
}
|
|
435
|
-
|
|
253
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
436
254
|
var info = record.arg;
|
|
437
|
-
|
|
438
|
-
if (! info) {
|
|
439
|
-
context.method = "throw";
|
|
440
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
441
|
-
context.delegate = null;
|
|
442
|
-
return ContinueSentinel;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (info.done) {
|
|
446
|
-
// Assign the result of the finished delegate to the temporary
|
|
447
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
448
|
-
context[delegate.resultName] = info.value;
|
|
449
|
-
|
|
450
|
-
// Resume execution at the desired location (see delegateYield).
|
|
451
|
-
context.next = delegate.nextLoc;
|
|
452
|
-
|
|
453
|
-
// If context.method was "throw" but the delegate handled the
|
|
454
|
-
// exception, let the outer generator proceed normally. If
|
|
455
|
-
// context.method was "next", forget context.arg since it has been
|
|
456
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
457
|
-
// "return", allow the original .return call to continue in the
|
|
458
|
-
// outer generator.
|
|
459
|
-
if (context.method !== "return") {
|
|
460
|
-
context.method = "next";
|
|
461
|
-
context.arg = undefined$1;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
} else {
|
|
465
|
-
// Re-yield the result returned by the delegate method.
|
|
466
|
-
return info;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
470
|
-
// the outer generator.
|
|
471
|
-
context.delegate = null;
|
|
472
|
-
return ContinueSentinel;
|
|
255
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
473
256
|
}
|
|
474
257
|
|
|
475
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
476
|
-
// unified ._invoke helper method.
|
|
477
|
-
defineIteratorMethods(Gp);
|
|
478
|
-
|
|
479
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
480
|
-
|
|
481
|
-
// A Generator should always return itself as the iterator object when the
|
|
482
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
483
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
484
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
485
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
486
|
-
define(Gp, iteratorSymbol, function() {
|
|
487
|
-
return this;
|
|
488
|
-
});
|
|
489
|
-
|
|
490
|
-
define(Gp, "toString", function() {
|
|
491
|
-
return "[object Generator]";
|
|
492
|
-
});
|
|
493
|
-
|
|
494
258
|
function pushTryEntry(locs) {
|
|
495
|
-
var entry = {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
if (2 in locs) {
|
|
502
|
-
entry.finallyLoc = locs[2];
|
|
503
|
-
entry.afterLoc = locs[3];
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
this.tryEntries.push(entry);
|
|
259
|
+
var entry = {
|
|
260
|
+
tryLoc: locs[0]
|
|
261
|
+
};
|
|
262
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
507
263
|
}
|
|
508
264
|
|
|
509
265
|
function resetTryEntry(entry) {
|
|
510
266
|
var record = entry.completion || {};
|
|
511
|
-
record.type = "normal";
|
|
512
|
-
delete record.arg;
|
|
513
|
-
entry.completion = record;
|
|
267
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
514
268
|
}
|
|
515
269
|
|
|
516
270
|
function Context(tryLocsList) {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
521
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
522
|
-
this.reset(true);
|
|
271
|
+
this.tryEntries = [{
|
|
272
|
+
tryLoc: "root"
|
|
273
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
523
274
|
}
|
|
524
275
|
|
|
525
|
-
exports.keys = function(object) {
|
|
526
|
-
var keys = [];
|
|
527
|
-
for (var key in object) {
|
|
528
|
-
keys.push(key);
|
|
529
|
-
}
|
|
530
|
-
keys.reverse();
|
|
531
|
-
|
|
532
|
-
// Rather than returning an object with a next method, we keep
|
|
533
|
-
// things simple and return the next function itself.
|
|
534
|
-
return function next() {
|
|
535
|
-
while (keys.length) {
|
|
536
|
-
var key = keys.pop();
|
|
537
|
-
if (key in object) {
|
|
538
|
-
next.value = key;
|
|
539
|
-
next.done = false;
|
|
540
|
-
return next;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
// To avoid creating an additional object, we just hang the .value
|
|
545
|
-
// and .done properties off the next function object itself. This
|
|
546
|
-
// also ensures that the minifier will not anonymize the function.
|
|
547
|
-
next.done = true;
|
|
548
|
-
return next;
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
|
|
552
276
|
function values(iterable) {
|
|
553
277
|
if (iterable) {
|
|
554
278
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
555
|
-
if (iteratorMethod)
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
if (typeof iterable.next === "function") {
|
|
560
|
-
return iterable;
|
|
561
|
-
}
|
|
279
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
280
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
562
281
|
|
|
563
282
|
if (!isNaN(iterable.length)) {
|
|
564
|
-
var i = -1,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
next.done = false;
|
|
569
|
-
return next;
|
|
570
|
-
}
|
|
283
|
+
var i = -1,
|
|
284
|
+
next = function next() {
|
|
285
|
+
for (; ++i < iterable.length;) {
|
|
286
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
571
287
|
}
|
|
572
288
|
|
|
573
|
-
next.value = undefined
|
|
574
|
-
next.done = true;
|
|
575
|
-
|
|
576
|
-
return next;
|
|
289
|
+
return next.value = undefined, next.done = !0, next;
|
|
577
290
|
};
|
|
578
291
|
|
|
579
292
|
return next.next = next;
|
|
580
293
|
}
|
|
581
294
|
}
|
|
582
295
|
|
|
583
|
-
|
|
584
|
-
|
|
296
|
+
return {
|
|
297
|
+
next: doneResult
|
|
298
|
+
};
|
|
585
299
|
}
|
|
586
|
-
exports.values = values;
|
|
587
300
|
|
|
588
301
|
function doneResult() {
|
|
589
|
-
return {
|
|
302
|
+
return {
|
|
303
|
+
value: undefined,
|
|
304
|
+
done: !0
|
|
305
|
+
};
|
|
590
306
|
}
|
|
591
307
|
|
|
592
|
-
|
|
593
|
-
constructor
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
this[name] = undefined$1;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
},
|
|
308
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
309
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
310
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
311
|
+
}, exports.mark = function (genFun) {
|
|
312
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
313
|
+
}, exports.awrap = function (arg) {
|
|
314
|
+
return {
|
|
315
|
+
__await: arg
|
|
316
|
+
};
|
|
317
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
318
|
+
return this;
|
|
319
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
320
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
321
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
322
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
323
|
+
return result.done ? result.value : iter.next();
|
|
324
|
+
});
|
|
325
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
326
|
+
return this;
|
|
327
|
+
}), define(Gp, "toString", function () {
|
|
328
|
+
return "[object Generator]";
|
|
329
|
+
}), exports.keys = function (object) {
|
|
330
|
+
var keys = [];
|
|
620
331
|
|
|
621
|
-
|
|
622
|
-
|
|
332
|
+
for (var key in object) {
|
|
333
|
+
keys.push(key);
|
|
334
|
+
}
|
|
623
335
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
336
|
+
return keys.reverse(), function next() {
|
|
337
|
+
for (; keys.length;) {
|
|
338
|
+
var key = keys.pop();
|
|
339
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
628
340
|
}
|
|
629
341
|
|
|
342
|
+
return next.done = !0, next;
|
|
343
|
+
};
|
|
344
|
+
}, exports.values = values, Context.prototype = {
|
|
345
|
+
constructor: Context,
|
|
346
|
+
reset: function reset(skipTempReset) {
|
|
347
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
348
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
stop: function stop() {
|
|
352
|
+
this.done = !0;
|
|
353
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
354
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
630
355
|
return this.rval;
|
|
631
356
|
},
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
if (this.done) {
|
|
635
|
-
throw exception;
|
|
636
|
-
}
|
|
637
|
-
|
|
357
|
+
dispatchException: function dispatchException(exception) {
|
|
358
|
+
if (this.done) throw exception;
|
|
638
359
|
var context = this;
|
|
639
|
-
function handle(loc, caught) {
|
|
640
|
-
record.type = "throw";
|
|
641
|
-
record.arg = exception;
|
|
642
|
-
context.next = loc;
|
|
643
|
-
|
|
644
|
-
if (caught) {
|
|
645
|
-
// If the dispatched exception was caught by a catch block,
|
|
646
|
-
// then let that catch block handle the exception normally.
|
|
647
|
-
context.method = "next";
|
|
648
|
-
context.arg = undefined$1;
|
|
649
|
-
}
|
|
650
360
|
|
|
651
|
-
|
|
361
|
+
function handle(loc, caught) {
|
|
362
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
652
363
|
}
|
|
653
364
|
|
|
654
365
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
655
|
-
var entry = this.tryEntries[i]
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
if (entry.tryLoc === "root") {
|
|
659
|
-
// Exception thrown outside of any try block that could handle
|
|
660
|
-
// it, so set the completion value of the entire function to
|
|
661
|
-
// throw the exception.
|
|
662
|
-
return handle("end");
|
|
663
|
-
}
|
|
366
|
+
var entry = this.tryEntries[i],
|
|
367
|
+
record = entry.completion;
|
|
368
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
664
369
|
|
|
665
370
|
if (entry.tryLoc <= this.prev) {
|
|
666
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
667
|
-
|
|
371
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
372
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
668
373
|
|
|
669
374
|
if (hasCatch && hasFinally) {
|
|
670
|
-
if (this.prev < entry.catchLoc)
|
|
671
|
-
|
|
672
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
673
|
-
return handle(entry.finallyLoc);
|
|
674
|
-
}
|
|
675
|
-
|
|
375
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
376
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
676
377
|
} else if (hasCatch) {
|
|
677
|
-
if (this.prev < entry.catchLoc)
|
|
678
|
-
return handle(entry.catchLoc, true);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
} else if (hasFinally) {
|
|
682
|
-
if (this.prev < entry.finallyLoc) {
|
|
683
|
-
return handle(entry.finallyLoc);
|
|
684
|
-
}
|
|
685
|
-
|
|
378
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
686
379
|
} else {
|
|
687
|
-
throw new Error("try statement without catch or finally");
|
|
380
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
381
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
688
382
|
}
|
|
689
383
|
}
|
|
690
384
|
}
|
|
691
385
|
},
|
|
692
|
-
|
|
693
|
-
abrupt: function(type, arg) {
|
|
386
|
+
abrupt: function abrupt(type, arg) {
|
|
694
387
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
695
388
|
var entry = this.tryEntries[i];
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
this.prev < entry.finallyLoc) {
|
|
389
|
+
|
|
390
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
699
391
|
var finallyEntry = entry;
|
|
700
392
|
break;
|
|
701
393
|
}
|
|
702
394
|
}
|
|
703
395
|
|
|
704
|
-
|
|
705
|
-
(type === "break" ||
|
|
706
|
-
type === "continue") &&
|
|
707
|
-
finallyEntry.tryLoc <= arg &&
|
|
708
|
-
arg <= finallyEntry.finallyLoc) {
|
|
709
|
-
// Ignore the finally entry if control is not jumping to a
|
|
710
|
-
// location outside the try/catch block.
|
|
711
|
-
finallyEntry = null;
|
|
712
|
-
}
|
|
713
|
-
|
|
396
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
714
397
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
715
|
-
record.type = type;
|
|
716
|
-
record.arg = arg;
|
|
717
|
-
|
|
718
|
-
if (finallyEntry) {
|
|
719
|
-
this.method = "next";
|
|
720
|
-
this.next = finallyEntry.finallyLoc;
|
|
721
|
-
return ContinueSentinel;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
return this.complete(record);
|
|
398
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
725
399
|
},
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
throw record.arg;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
if (record.type === "break" ||
|
|
733
|
-
record.type === "continue") {
|
|
734
|
-
this.next = record.arg;
|
|
735
|
-
} else if (record.type === "return") {
|
|
736
|
-
this.rval = this.arg = record.arg;
|
|
737
|
-
this.method = "return";
|
|
738
|
-
this.next = "end";
|
|
739
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
740
|
-
this.next = afterLoc;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
return ContinueSentinel;
|
|
400
|
+
complete: function complete(record, afterLoc) {
|
|
401
|
+
if ("throw" === record.type) throw record.arg;
|
|
402
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
744
403
|
},
|
|
745
|
-
|
|
746
|
-
finish: function(finallyLoc) {
|
|
404
|
+
finish: function finish(finallyLoc) {
|
|
747
405
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
748
406
|
var entry = this.tryEntries[i];
|
|
749
|
-
if (entry.finallyLoc === finallyLoc)
|
|
750
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
751
|
-
resetTryEntry(entry);
|
|
752
|
-
return ContinueSentinel;
|
|
753
|
-
}
|
|
407
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
754
408
|
}
|
|
755
409
|
},
|
|
756
|
-
|
|
757
|
-
"catch": function(tryLoc) {
|
|
410
|
+
"catch": function _catch(tryLoc) {
|
|
758
411
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
759
412
|
var entry = this.tryEntries[i];
|
|
413
|
+
|
|
760
414
|
if (entry.tryLoc === tryLoc) {
|
|
761
415
|
var record = entry.completion;
|
|
762
|
-
|
|
416
|
+
|
|
417
|
+
if ("throw" === record.type) {
|
|
763
418
|
var thrown = record.arg;
|
|
764
419
|
resetTryEntry(entry);
|
|
765
420
|
}
|
|
421
|
+
|
|
766
422
|
return thrown;
|
|
767
423
|
}
|
|
768
424
|
}
|
|
769
425
|
|
|
770
|
-
// The context.catch method must only be called with a location
|
|
771
|
-
// argument that corresponds to a known catch block.
|
|
772
426
|
throw new Error("illegal catch attempt");
|
|
773
427
|
},
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
this.delegate = {
|
|
428
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
429
|
+
return this.delegate = {
|
|
777
430
|
iterator: values(iterable),
|
|
778
431
|
resultName: resultName,
|
|
779
432
|
nextLoc: nextLoc
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
if (this.method === "next") {
|
|
783
|
-
// Deliberately forget the last sent value so that we don't
|
|
784
|
-
// accidentally pass it on to the delegate.
|
|
785
|
-
this.arg = undefined$1;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
return ContinueSentinel;
|
|
433
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
789
434
|
}
|
|
790
|
-
};
|
|
435
|
+
}, exports;
|
|
436
|
+
}
|
|
791
437
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
return exports;
|
|
438
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
// TODO(Babel 8): Remove this file.
|
|
797
442
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
801
|
-
// object. Either way, the resulting object will be used to initialize
|
|
802
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
803
|
-
module.exports
|
|
804
|
-
));
|
|
443
|
+
var runtime = regeneratorRuntime$1();
|
|
444
|
+
var regenerator = runtime;
|
|
805
445
|
|
|
446
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
806
447
|
try {
|
|
807
448
|
regeneratorRuntime = runtime;
|
|
808
449
|
} catch (accidentalStrictMode) {
|
|
809
|
-
// This module should not be running in strict mode, so the above
|
|
810
|
-
// assignment should always work unless something is misconfigured. Just
|
|
811
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
812
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
813
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
814
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
815
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
816
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
817
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
818
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
819
450
|
if (typeof globalThis === "object") {
|
|
820
451
|
globalThis.regeneratorRuntime = runtime;
|
|
821
452
|
} else {
|
|
822
453
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
823
454
|
}
|
|
824
455
|
}
|
|
825
|
-
});
|
|
826
|
-
|
|
827
|
-
var regenerator = runtime_1;
|
|
828
456
|
|
|
829
457
|
function _arrayWithHoles(arr) {
|
|
830
458
|
if (Array.isArray(arr)) return arr;
|
|
@@ -1348,11 +976,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
1348
976
|
}
|
|
1349
977
|
|
|
1350
978
|
function _setPrototypeOf(o, p) {
|
|
1351
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
979
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1352
980
|
o.__proto__ = p;
|
|
1353
981
|
return o;
|
|
1354
982
|
};
|
|
1355
|
-
|
|
1356
983
|
return _setPrototypeOf(o, p);
|
|
1357
984
|
}
|
|
1358
985
|
|
|
@@ -1393,7 +1020,7 @@ function _possibleConstructorReturn(self, call) {
|
|
|
1393
1020
|
}
|
|
1394
1021
|
|
|
1395
1022
|
function _getPrototypeOf(o) {
|
|
1396
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
1023
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1397
1024
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1398
1025
|
};
|
|
1399
1026
|
return _getPrototypeOf(o);
|
|
@@ -1791,7 +1418,7 @@ var styleRenderer = (function (style) {
|
|
|
1791
1418
|
},
|
|
1792
1419
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
1793
1420
|
}, style);
|
|
1794
|
-
return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle(), SearchStyle(style), TokenImageStyle(), AlertStyle(), TableStyle(), LinkStyle(style), TooltipStyle(style)].join('');
|
|
1421
|
+
return [ResetStyle(), DialogStyle(style), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(style), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(style), TextButtonStyle(style), ImageStyle(style), BlockchainLogoStyle(style), SearchStyle(style), TokenImageStyle(style), AlertStyle(style), TableStyle(style), LinkStyle(style), TooltipStyle(style)].join('');
|
|
1795
1422
|
});
|
|
1796
1423
|
|
|
1797
1424
|
var mount = (function (_ref, content) {
|
|
@@ -3611,6 +3238,7 @@ var DonationOverviewDialog = (function (props) {
|
|
|
3611
3238
|
return /*#__PURE__*/React.createElement(DonationOverviewSkeleton, null);
|
|
3612
3239
|
}
|
|
3613
3240
|
|
|
3241
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
3614
3242
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
3615
3243
|
header: /*#__PURE__*/React.createElement("div", {
|
|
3616
3244
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -3660,6 +3288,11 @@ var DonationOverviewDialog = (function (props) {
|
|
|
3660
3288
|
}, /*#__PURE__*/React.createElement(TokenImage, {
|
|
3661
3289
|
blockchain: payment.route.blockchain,
|
|
3662
3290
|
address: payment.token
|
|
3291
|
+
}), /*#__PURE__*/React.createElement("img", {
|
|
3292
|
+
className: "BlockchainLogo small",
|
|
3293
|
+
src: blockchain.logo,
|
|
3294
|
+
alt: blockchain.label,
|
|
3295
|
+
title: blockchain.label
|
|
3663
3296
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3664
3297
|
className: "CardBody"
|
|
3665
3298
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4317,7 +3950,7 @@ var preflight$2 = /*#__PURE__*/function () {
|
|
|
4317
3950
|
throw 'You need to set the blockchain you want to receive the donation on!';
|
|
4318
3951
|
}
|
|
4319
3952
|
|
|
4320
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
3953
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
4321
3954
|
throw 'You need to set a supported blockchain!';
|
|
4322
3955
|
}
|
|
4323
3956
|
|
|
@@ -4702,6 +4335,7 @@ var PaymentOverviewDialog = (function (props) {
|
|
|
4702
4335
|
return /*#__PURE__*/React.createElement(PaymentOverviewSkeleton, null);
|
|
4703
4336
|
}
|
|
4704
4337
|
|
|
4338
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
4705
4339
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
4706
4340
|
header: /*#__PURE__*/React.createElement("div", {
|
|
4707
4341
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -4751,6 +4385,11 @@ var PaymentOverviewDialog = (function (props) {
|
|
|
4751
4385
|
}, /*#__PURE__*/React.createElement(TokenImage, {
|
|
4752
4386
|
blockchain: payment.blockchain,
|
|
4753
4387
|
address: payment.token
|
|
4388
|
+
}), /*#__PURE__*/React.createElement("img", {
|
|
4389
|
+
className: "BlockchainLogo small",
|
|
4390
|
+
src: blockchain.logo,
|
|
4391
|
+
alt: blockchain.label,
|
|
4392
|
+
title: blockchain.label
|
|
4754
4393
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4755
4394
|
className: "CardBody"
|
|
4756
4395
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4821,7 +4460,7 @@ var preflight$1 = /*#__PURE__*/function () {
|
|
|
4821
4460
|
throw 'You need to set the blockchain your want to receive the payment on!';
|
|
4822
4461
|
}
|
|
4823
4462
|
|
|
4824
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
4463
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
4825
4464
|
throw 'You need to set a supported blockchain!';
|
|
4826
4465
|
}
|
|
4827
4466
|
|
|
@@ -5140,6 +4779,7 @@ var SaleOverviewDialog = (function (props) {
|
|
|
5140
4779
|
});
|
|
5141
4780
|
}
|
|
5142
4781
|
|
|
4782
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
5143
4783
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
5144
4784
|
header: /*#__PURE__*/React.createElement("div", {
|
|
5145
4785
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -5161,7 +4801,12 @@ var SaleOverviewDialog = (function (props) {
|
|
|
5161
4801
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5162
4802
|
className: "CardImage",
|
|
5163
4803
|
title: payment.name
|
|
5164
|
-
}, tokenImageElement
|
|
4804
|
+
}, tokenImageElement, /*#__PURE__*/React.createElement("img", {
|
|
4805
|
+
className: "BlockchainLogo small",
|
|
4806
|
+
src: blockchain.logo,
|
|
4807
|
+
alt: blockchain.label,
|
|
4808
|
+
title: blockchain.label
|
|
4809
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
5165
4810
|
className: "CardBody"
|
|
5166
4811
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5167
4812
|
className: "CardBodyWrapper"
|
|
@@ -5531,7 +5176,7 @@ var SelectBlockchainDialog = (function (props) {
|
|
|
5531
5176
|
navigate = _useContext2.navigate;
|
|
5532
5177
|
|
|
5533
5178
|
var stacked = Object.keys(props.selection).length > 1;
|
|
5534
|
-
var blockchains = [Blockchain.findByName('ethereum'), Blockchain.findByName('bsc')];
|
|
5179
|
+
var blockchains = [Blockchain.findByName('ethereum'), Blockchain.findByName('bsc'), Blockchain.findByName('polygon')];
|
|
5535
5180
|
|
|
5536
5181
|
var selectBlockchain = function selectBlockchain(blockchain) {
|
|
5537
5182
|
setSelection(Object.assign(props.selection, {
|