@qooxdoo/framework 7.7.2 → 7.9.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/Manifest.json +2 -2
- package/lib/compiler/compile-info.json +91 -89
- package/lib/compiler/index.js +2517 -1488
- package/lib/resource/qx/tool/schema/compile-1-0-0.json +13 -0
- package/lib/resource/qx/tool/website/build/404.html +3 -25
- package/lib/resource/qx/tool/website/build/about.html +3 -25
- package/lib/resource/qx/tool/website/build/assets/common.js +20 -0
- package/lib/resource/qx/tool/website/build/diagnostics/dependson.html +3 -25
- package/lib/resource/qx/tool/website/build/diagnostics/requiredby.html +3 -22
- package/lib/resource/qx/tool/website/build/index.html +3 -25
- package/lib/resource/qx/tool/website/partials/footer.html +3 -21
- package/lib/resource/qx/tool/website/partials/head.html +0 -1
- package/package.json +2 -2
- package/source/class/qx/Bootstrap.js +6 -3
- package/source/class/qx/Promise.js +93 -6964
- package/source/class/qx/bom/Label.js +82 -2
- package/source/class/qx/bom/webfonts/WebFont.js +1 -0
- package/source/class/qx/core/Environment.js +83 -1
- package/source/class/qx/data/controller/List.js +50 -21
- package/source/class/qx/data/controller/MSelection.js +45 -12
- package/source/class/qx/data/marshal/Json.js +64 -11
- package/source/class/qx/dev/unit/AsyncWrapper.js +8 -0
- package/source/class/qx/event/Manager.js +163 -124
- package/source/class/qx/io/ImageLoader.js +6 -3
- package/source/class/qx/io/exception/Transport.js +1 -0
- package/source/class/qx/io/jsonrpc/Client.js +64 -8
- package/source/class/qx/io/jsonrpc/protocol/Request.js +10 -6
- package/source/class/qx/lang/Type.js +36 -3
- package/source/class/qx/promise/BluebirdImpl.js +6918 -0
- package/source/class/qx/promise/NativeWrapper.js +738 -0
- package/source/class/qx/test/Promise.js +1145 -22
- package/source/class/qx/test/bom/client/Pdfjs.js +4 -0
- package/source/class/qx/test/bom/element/AnimationJs.js +3 -0
- package/source/class/qx/test/bom/element/Style.js +1 -0
- package/source/class/qx/test/bom/media/MediaTestCase.js +6 -0
- package/source/class/qx/test/core/Environment.js +44 -0
- package/source/class/qx/test/data/controller/List.js +6 -0
- package/source/class/qx/test/data/marshal/Json.js +29 -0
- package/source/class/qx/test/io/MAssert.js +94 -0
- package/source/class/qx/test/io/TestMAssert.js +47 -0
- package/source/class/qx/test/io/jsonrpc/Client.js +79 -19
- package/source/class/qx/test/io/jsonrpc/PostMessageClient.js +152 -0
- package/source/class/qx/test/io/jsonrpc/Protocol.js +1 -5
- package/source/class/qx/test/io/request/Xhr.js +16 -0
- package/source/class/qx/test/lang/Type.js +151 -0
- package/source/class/qx/test/ui/embed/Iframe.js +1 -1
- package/source/class/qx/test/ui/form/TextArea.js +4 -0
- package/source/class/qx/test/util/DeferredCall.js +6 -0
- package/source/class/qx/test/util/Function.js +2 -2
- package/source/class/qx/theme/indigo/ColorDark.js +1 -1
- package/source/class/qx/tool/cli/api/Test.js +22 -0
- package/source/class/qx/tool/cli/commands/Compile.js +17 -4
- package/source/class/qx/tool/cli/commands/Test.js +7 -1
- package/source/class/qx/tool/compiler/Analyser.js +7 -0
- package/source/class/qx/tool/compiler/ClassFile.js +3 -2
- package/source/class/qx/tool/compiler/MetaExtraction.js +0 -5
- package/source/class/qx/tool/compiler/targets/meta/Browserify.js +8 -2
- package/source/class/qx/ui/basic/Image.js +72 -8
- package/source/class/qx/ui/basic/Label.js +4 -6
- package/source/class/qx/ui/control/DateChooser.js +4 -6
- package/source/class/qx/ui/core/Blocker.js +4 -6
- package/source/class/qx/ui/core/LayoutItem.js +4 -6
- package/source/class/qx/ui/core/MPlacement.js +23 -1
- package/source/class/qx/ui/core/Widget.js +7 -5
- package/source/class/qx/ui/form/AbstractField.js +4 -6
- package/source/class/qx/ui/form/MForm.js +4 -6
- package/source/class/qx/ui/form/Spinner.js +4 -6
- package/source/class/qx/ui/form/renderer/AbstractRenderer.js +4 -6
- package/source/class/qx/ui/menu/AbstractButton.js +7 -11
- package/source/class/qx/ui/mobile/basic/Label.js +4 -6
- package/source/class/qx/ui/mobile/form/Label.js +4 -6
- package/source/class/qx/ui/mobile/list/List.js +4 -6
- package/source/class/qx/ui/progressive/renderer/table/Row.js +35 -7
- package/source/class/qx/ui/progressive/renderer/table/cell/Boolean.js +4 -6
- package/source/class/qx/ui/table/Table.js +4 -6
- package/source/class/qx/ui/table/cellrenderer/Abstract.js +4 -6
- package/source/class/qx/ui/table/cellrenderer/Boolean.js +4 -6
- package/source/class/qx/ui/table/pane/Scroller.js +1 -1
- package/source/class/qx/ui/table/rowrenderer/Default.js +4 -6
- package/source/class/qx/util/ConcurrencyLimiter.js +78 -0
- package/source/resource/qx/tool/schema/compile-1-0-0.json +13 -0
- package/source/resource/qx/tool/website/build/404.html +3 -25
- package/source/resource/qx/tool/website/build/about.html +3 -25
- package/source/resource/qx/tool/website/build/assets/common.js +20 -0
- package/source/resource/qx/tool/website/build/diagnostics/dependson.html +3 -25
- package/source/resource/qx/tool/website/build/diagnostics/requiredby.html +3 -22
- package/source/resource/qx/tool/website/build/index.html +3 -25
- package/source/resource/qx/tool/website/partials/footer.html +3 -21
- package/source/resource/qx/tool/website/partials/head.html +0 -1
- package/lib/resource/qx/tool/website/build/assets/bluebird.min.js +0 -4615
- package/lib/resource/qx/tool/website/src/assets/bluebird.min.js +0 -4615
- package/source/resource/qx/tool/website/build/assets/bluebird.min.js +0 -4615
- package/source/resource/qx/tool/website/src/assets/bluebird.min.js +0 -4615
|
@@ -1,4615 +0,0 @@
|
|
|
1
|
-
/* @preserve
|
|
2
|
-
* The MIT License (MIT)
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2013-2018 Petka Antonov
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in
|
|
14
|
-
* all copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
* THE SOFTWARE.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* bluebird build version 3.5.5
|
|
27
|
-
* Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each
|
|
28
|
-
*/
|
|
29
|
-
!(function (t) {
|
|
30
|
-
if ("object" == typeof exports && "undefined" != typeof module)
|
|
31
|
-
module.exports = t();
|
|
32
|
-
else if ("function" == typeof define && define.amd) define([], t);
|
|
33
|
-
else {
|
|
34
|
-
var e;
|
|
35
|
-
"undefined" != typeof window
|
|
36
|
-
? (e = window)
|
|
37
|
-
: "undefined" != typeof global
|
|
38
|
-
? (e = global)
|
|
39
|
-
: "undefined" != typeof self && (e = self),
|
|
40
|
-
(e.Promise = t());
|
|
41
|
-
}
|
|
42
|
-
})(function () {
|
|
43
|
-
var t, e, n;
|
|
44
|
-
return (function r(t, e, n) {
|
|
45
|
-
function i(s, a) {
|
|
46
|
-
if (!e[s]) {
|
|
47
|
-
if (!t[s]) {
|
|
48
|
-
var c = "function" == typeof _dereq_ && _dereq_;
|
|
49
|
-
if (!a && c) return c(s, !0);
|
|
50
|
-
if (o) return o(s, !0);
|
|
51
|
-
var l = new Error("Cannot find module '" + s + "'");
|
|
52
|
-
throw ((l.code = "MODULE_NOT_FOUND"), l);
|
|
53
|
-
}
|
|
54
|
-
var u = (e[s] = { exports: {} });
|
|
55
|
-
t[s][0].call(
|
|
56
|
-
u.exports,
|
|
57
|
-
function (e) {
|
|
58
|
-
var n = t[s][1][e];
|
|
59
|
-
return i(n ? n : e);
|
|
60
|
-
},
|
|
61
|
-
u,
|
|
62
|
-
u.exports,
|
|
63
|
-
r,
|
|
64
|
-
t,
|
|
65
|
-
e,
|
|
66
|
-
n
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
return e[s].exports;
|
|
70
|
-
}
|
|
71
|
-
for (
|
|
72
|
-
var o = "function" == typeof _dereq_ && _dereq_, s = 0;
|
|
73
|
-
s < n.length;
|
|
74
|
-
s++
|
|
75
|
-
)
|
|
76
|
-
i(n[s]);
|
|
77
|
-
return i;
|
|
78
|
-
})(
|
|
79
|
-
{
|
|
80
|
-
1: [
|
|
81
|
-
function (t, e, n) {
|
|
82
|
-
"use strict";
|
|
83
|
-
e.exports = function (t) {
|
|
84
|
-
function e(t) {
|
|
85
|
-
var e = new n(t),
|
|
86
|
-
r = e.promise();
|
|
87
|
-
return e.setHowMany(1), e.setUnwrap(), e.init(), r;
|
|
88
|
-
}
|
|
89
|
-
var n = t._SomePromiseArray;
|
|
90
|
-
(t.any = function (t) {
|
|
91
|
-
return e(t);
|
|
92
|
-
}),
|
|
93
|
-
(t.prototype.any = function () {
|
|
94
|
-
return e(this);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
{}
|
|
99
|
-
],
|
|
100
|
-
|
|
101
|
-
2: [
|
|
102
|
-
function (t, e, n) {
|
|
103
|
-
"use strict";
|
|
104
|
-
function r() {
|
|
105
|
-
(this._customScheduler = !1),
|
|
106
|
-
(this._isTickUsed = !1),
|
|
107
|
-
(this._lateQueue = new h(16)),
|
|
108
|
-
(this._normalQueue = new h(16)),
|
|
109
|
-
(this._haveDrainedQueues = !1),
|
|
110
|
-
(this._trampolineEnabled = !0);
|
|
111
|
-
var t = this;
|
|
112
|
-
(this.drainQueues = function () {
|
|
113
|
-
t._drainQueues();
|
|
114
|
-
}),
|
|
115
|
-
(this._schedule = p);
|
|
116
|
-
}
|
|
117
|
-
function i(t, e, n) {
|
|
118
|
-
this._lateQueue.push(t, e, n), this._queueTick();
|
|
119
|
-
}
|
|
120
|
-
function o(t, e, n) {
|
|
121
|
-
this._normalQueue.push(t, e, n), this._queueTick();
|
|
122
|
-
}
|
|
123
|
-
function s(t) {
|
|
124
|
-
this._normalQueue._pushOne(t), this._queueTick();
|
|
125
|
-
}
|
|
126
|
-
function a(t) {
|
|
127
|
-
for (; t.length() > 0; ) c(t);
|
|
128
|
-
}
|
|
129
|
-
function c(t) {
|
|
130
|
-
var e = t.shift();
|
|
131
|
-
if ("function" != typeof e) e._settlePromises();
|
|
132
|
-
else {
|
|
133
|
-
var n = t.shift(),
|
|
134
|
-
r = t.shift();
|
|
135
|
-
e.call(n, r);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
var l;
|
|
139
|
-
try {
|
|
140
|
-
throw new Error();
|
|
141
|
-
} catch (u) {
|
|
142
|
-
l = u;
|
|
143
|
-
}
|
|
144
|
-
var p = t("./schedule"),
|
|
145
|
-
h = t("./queue"),
|
|
146
|
-
f = t("./util");
|
|
147
|
-
(r.prototype.setScheduler = function (t) {
|
|
148
|
-
var e = this._schedule;
|
|
149
|
-
return (this._schedule = t), (this._customScheduler = !0), e;
|
|
150
|
-
}),
|
|
151
|
-
(r.prototype.hasCustomScheduler = function () {
|
|
152
|
-
return this._customScheduler;
|
|
153
|
-
}),
|
|
154
|
-
(r.prototype.enableTrampoline = function () {
|
|
155
|
-
this._trampolineEnabled = !0;
|
|
156
|
-
}),
|
|
157
|
-
(r.prototype.disableTrampolineIfNecessary = function () {
|
|
158
|
-
f.hasDevTools && (this._trampolineEnabled = !1);
|
|
159
|
-
}),
|
|
160
|
-
(r.prototype.haveItemsQueued = function () {
|
|
161
|
-
return this._isTickUsed || this._haveDrainedQueues;
|
|
162
|
-
}),
|
|
163
|
-
(r.prototype.fatalError = function (t, e) {
|
|
164
|
-
e
|
|
165
|
-
? (process.stderr.write(
|
|
166
|
-
"Fatal " + (t instanceof Error ? t.stack : t) + "\n"
|
|
167
|
-
),
|
|
168
|
-
process.exit(2))
|
|
169
|
-
: this.throwLater(t);
|
|
170
|
-
}),
|
|
171
|
-
(r.prototype.throwLater = function (t, e) {
|
|
172
|
-
if (
|
|
173
|
-
(1 === arguments.length &&
|
|
174
|
-
((e = t),
|
|
175
|
-
(t = function () {
|
|
176
|
-
throw e;
|
|
177
|
-
})),
|
|
178
|
-
"undefined" != typeof setTimeout)
|
|
179
|
-
)
|
|
180
|
-
setTimeout(function () {
|
|
181
|
-
t(e);
|
|
182
|
-
}, 0);
|
|
183
|
-
else
|
|
184
|
-
try {
|
|
185
|
-
this._schedule(function () {
|
|
186
|
-
t(e);
|
|
187
|
-
});
|
|
188
|
-
} catch (n) {
|
|
189
|
-
throw new Error(
|
|
190
|
-
"No async scheduler available\n\n See http://goo.gl/MqrFmX\n"
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
}),
|
|
194
|
-
f.hasDevTools
|
|
195
|
-
? ((r.prototype.invokeLater = function (t, e, n) {
|
|
196
|
-
this._trampolineEnabled
|
|
197
|
-
? i.call(this, t, e, n)
|
|
198
|
-
: this._schedule(function () {
|
|
199
|
-
setTimeout(function () {
|
|
200
|
-
t.call(e, n);
|
|
201
|
-
}, 100);
|
|
202
|
-
});
|
|
203
|
-
}),
|
|
204
|
-
(r.prototype.invoke = function (t, e, n) {
|
|
205
|
-
this._trampolineEnabled
|
|
206
|
-
? o.call(this, t, e, n)
|
|
207
|
-
: this._schedule(function () {
|
|
208
|
-
t.call(e, n);
|
|
209
|
-
});
|
|
210
|
-
}),
|
|
211
|
-
(r.prototype.settlePromises = function (t) {
|
|
212
|
-
this._trampolineEnabled
|
|
213
|
-
? s.call(this, t)
|
|
214
|
-
: this._schedule(function () {
|
|
215
|
-
t._settlePromises();
|
|
216
|
-
});
|
|
217
|
-
}))
|
|
218
|
-
: ((r.prototype.invokeLater = i),
|
|
219
|
-
(r.prototype.invoke = o),
|
|
220
|
-
(r.prototype.settlePromises = s)),
|
|
221
|
-
(r.prototype._drainQueues = function () {
|
|
222
|
-
a(this._normalQueue),
|
|
223
|
-
this._reset(),
|
|
224
|
-
(this._haveDrainedQueues = !0),
|
|
225
|
-
a(this._lateQueue);
|
|
226
|
-
}),
|
|
227
|
-
(r.prototype._queueTick = function () {
|
|
228
|
-
this._isTickUsed ||
|
|
229
|
-
((this._isTickUsed = !0), this._schedule(this.drainQueues));
|
|
230
|
-
}),
|
|
231
|
-
(r.prototype._reset = function () {
|
|
232
|
-
this._isTickUsed = !1;
|
|
233
|
-
}),
|
|
234
|
-
(e.exports = r),
|
|
235
|
-
(e.exports.firstLineError = l);
|
|
236
|
-
},
|
|
237
|
-
{ "./queue": 26, "./schedule": 29, "./util": 36 }
|
|
238
|
-
],
|
|
239
|
-
|
|
240
|
-
3: [
|
|
241
|
-
function (t, e, n) {
|
|
242
|
-
"use strict";
|
|
243
|
-
e.exports = function (t, e, n, r) {
|
|
244
|
-
var i = !1,
|
|
245
|
-
o = function (t, e) {
|
|
246
|
-
this._reject(e);
|
|
247
|
-
},
|
|
248
|
-
s = function (t, e) {
|
|
249
|
-
(e.promiseRejectionQueued = !0),
|
|
250
|
-
e.bindingPromise._then(o, o, null, this, t);
|
|
251
|
-
},
|
|
252
|
-
a = function (t, e) {
|
|
253
|
-
0 === (50397184 & this._bitField) &&
|
|
254
|
-
this._resolveCallback(e.target);
|
|
255
|
-
},
|
|
256
|
-
c = function (t, e) {
|
|
257
|
-
e.promiseRejectionQueued || this._reject(t);
|
|
258
|
-
};
|
|
259
|
-
(t.prototype.bind = function (o) {
|
|
260
|
-
i ||
|
|
261
|
-
((i = !0),
|
|
262
|
-
(t.prototype._propagateFrom = r.propagateFromFunction()),
|
|
263
|
-
(t.prototype._boundValue = r.boundValueFunction()));
|
|
264
|
-
var l = n(o),
|
|
265
|
-
u = new t(e);
|
|
266
|
-
u._propagateFrom(this, 1);
|
|
267
|
-
var p = this._target();
|
|
268
|
-
if ((u._setBoundTo(l), l instanceof t)) {
|
|
269
|
-
var h = {
|
|
270
|
-
promiseRejectionQueued: !1,
|
|
271
|
-
promise: u,
|
|
272
|
-
target: p,
|
|
273
|
-
bindingPromise: l
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
p._then(e, s, void 0, u, h),
|
|
277
|
-
l._then(a, c, void 0, u, h),
|
|
278
|
-
u._setOnCancel(l);
|
|
279
|
-
} else u._resolveCallback(p);
|
|
280
|
-
return u;
|
|
281
|
-
}),
|
|
282
|
-
(t.prototype._setBoundTo = function (t) {
|
|
283
|
-
void 0 !== t
|
|
284
|
-
? ((this._bitField = 2097152 | this._bitField),
|
|
285
|
-
(this._boundTo = t))
|
|
286
|
-
: (this._bitField = -2097153 & this._bitField);
|
|
287
|
-
}),
|
|
288
|
-
(t.prototype._isBound = function () {
|
|
289
|
-
return 2097152 === (2097152 & this._bitField);
|
|
290
|
-
}),
|
|
291
|
-
(t.bind = function (e, n) {
|
|
292
|
-
return t.resolve(n).bind(e);
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
},
|
|
296
|
-
{}
|
|
297
|
-
],
|
|
298
|
-
|
|
299
|
-
4: [
|
|
300
|
-
function (t, e, n) {
|
|
301
|
-
"use strict";
|
|
302
|
-
function r() {
|
|
303
|
-
try {
|
|
304
|
-
Promise === o && (Promise = i);
|
|
305
|
-
} catch (t) {}
|
|
306
|
-
return o;
|
|
307
|
-
}
|
|
308
|
-
var i;
|
|
309
|
-
"undefined" != typeof Promise && (i = Promise);
|
|
310
|
-
var o = t("./promise")();
|
|
311
|
-
(o.noConflict = r), (e.exports = o);
|
|
312
|
-
},
|
|
313
|
-
{ "./promise": 22 }
|
|
314
|
-
],
|
|
315
|
-
|
|
316
|
-
5: [
|
|
317
|
-
function (t, e, n) {
|
|
318
|
-
"use strict";
|
|
319
|
-
var r = Object.create;
|
|
320
|
-
if (r) {
|
|
321
|
-
var i = r(null),
|
|
322
|
-
o = r(null);
|
|
323
|
-
i[" size"] = o[" size"] = 0;
|
|
324
|
-
}
|
|
325
|
-
e.exports = function (e) {
|
|
326
|
-
function n(t, n) {
|
|
327
|
-
var r;
|
|
328
|
-
if ((null != t && (r = t[n]), "function" != typeof r)) {
|
|
329
|
-
var i =
|
|
330
|
-
"Object " +
|
|
331
|
-
a.classString(t) +
|
|
332
|
-
" has no method '" +
|
|
333
|
-
a.toString(n) +
|
|
334
|
-
"'";
|
|
335
|
-
throw new e.TypeError(i);
|
|
336
|
-
}
|
|
337
|
-
return r;
|
|
338
|
-
}
|
|
339
|
-
function r(t) {
|
|
340
|
-
var e = this.pop(),
|
|
341
|
-
r = n(t, e);
|
|
342
|
-
return r.apply(t, this);
|
|
343
|
-
}
|
|
344
|
-
function i(t) {
|
|
345
|
-
return t[this];
|
|
346
|
-
}
|
|
347
|
-
function o(t) {
|
|
348
|
-
var e = +this;
|
|
349
|
-
return 0 > e && (e = Math.max(0, e + t.length)), t[e];
|
|
350
|
-
}
|
|
351
|
-
var s,
|
|
352
|
-
a = t("./util"),
|
|
353
|
-
c = a.canEvaluate;
|
|
354
|
-
a.isIdentifier;
|
|
355
|
-
(e.prototype.call = function (t) {
|
|
356
|
-
var e = [].slice.call(arguments, 1);
|
|
357
|
-
return e.push(t), this._then(r, void 0, void 0, e, void 0);
|
|
358
|
-
}),
|
|
359
|
-
(e.prototype.get = function (t) {
|
|
360
|
-
var e,
|
|
361
|
-
n = "number" == typeof t;
|
|
362
|
-
if (n) e = o;
|
|
363
|
-
else if (c) {
|
|
364
|
-
var r = s(t);
|
|
365
|
-
e = null !== r ? r : i;
|
|
366
|
-
} else e = i;
|
|
367
|
-
return this._then(e, void 0, void 0, t, void 0);
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
},
|
|
371
|
-
{ "./util": 36 }
|
|
372
|
-
],
|
|
373
|
-
|
|
374
|
-
6: [
|
|
375
|
-
function (t, e, n) {
|
|
376
|
-
"use strict";
|
|
377
|
-
e.exports = function (e, n, r, i) {
|
|
378
|
-
var o = t("./util"),
|
|
379
|
-
s = o.tryCatch,
|
|
380
|
-
a = o.errorObj,
|
|
381
|
-
c = e._async;
|
|
382
|
-
(e.prototype["break"] = e.prototype.cancel =
|
|
383
|
-
function () {
|
|
384
|
-
if (!i.cancellation())
|
|
385
|
-
return this._warn("cancellation is disabled");
|
|
386
|
-
for (var t = this, e = t; t._isCancellable(); ) {
|
|
387
|
-
if (!t._cancelBy(e)) {
|
|
388
|
-
e._isFollowing()
|
|
389
|
-
? e._followee().cancel()
|
|
390
|
-
: e._cancelBranched();
|
|
391
|
-
break;
|
|
392
|
-
}
|
|
393
|
-
var n = t._cancellationParent;
|
|
394
|
-
if (null == n || !n._isCancellable()) {
|
|
395
|
-
t._isFollowing()
|
|
396
|
-
? t._followee().cancel()
|
|
397
|
-
: t._cancelBranched();
|
|
398
|
-
break;
|
|
399
|
-
}
|
|
400
|
-
t._isFollowing() && t._followee().cancel(),
|
|
401
|
-
t._setWillBeCancelled(),
|
|
402
|
-
(e = t),
|
|
403
|
-
(t = n);
|
|
404
|
-
}
|
|
405
|
-
}),
|
|
406
|
-
(e.prototype._branchHasCancelled = function () {
|
|
407
|
-
this._branchesRemainingToCancel--;
|
|
408
|
-
}),
|
|
409
|
-
(e.prototype._enoughBranchesHaveCancelled = function () {
|
|
410
|
-
return (
|
|
411
|
-
void 0 === this._branchesRemainingToCancel ||
|
|
412
|
-
this._branchesRemainingToCancel <= 0
|
|
413
|
-
);
|
|
414
|
-
}),
|
|
415
|
-
(e.prototype._cancelBy = function (t) {
|
|
416
|
-
return t === this
|
|
417
|
-
? ((this._branchesRemainingToCancel = 0),
|
|
418
|
-
this._invokeOnCancel(),
|
|
419
|
-
!0)
|
|
420
|
-
: (this._branchHasCancelled(),
|
|
421
|
-
this._enoughBranchesHaveCancelled()
|
|
422
|
-
? (this._invokeOnCancel(), !0)
|
|
423
|
-
: !1);
|
|
424
|
-
}),
|
|
425
|
-
(e.prototype._cancelBranched = function () {
|
|
426
|
-
this._enoughBranchesHaveCancelled() && this._cancel();
|
|
427
|
-
}),
|
|
428
|
-
(e.prototype._cancel = function () {
|
|
429
|
-
this._isCancellable() &&
|
|
430
|
-
(this._setCancelled(),
|
|
431
|
-
c.invoke(this._cancelPromises, this, void 0));
|
|
432
|
-
}),
|
|
433
|
-
(e.prototype._cancelPromises = function () {
|
|
434
|
-
this._length() > 0 && this._settlePromises();
|
|
435
|
-
}),
|
|
436
|
-
(e.prototype._unsetOnCancel = function () {
|
|
437
|
-
this._onCancelField = void 0;
|
|
438
|
-
}),
|
|
439
|
-
(e.prototype._isCancellable = function () {
|
|
440
|
-
return this.isPending() && !this._isCancelled();
|
|
441
|
-
}),
|
|
442
|
-
(e.prototype.isCancellable = function () {
|
|
443
|
-
return this.isPending() && !this.isCancelled();
|
|
444
|
-
}),
|
|
445
|
-
(e.prototype._doInvokeOnCancel = function (t, e) {
|
|
446
|
-
if (o.isArray(t))
|
|
447
|
-
for (var n = 0; n < t.length; ++n)
|
|
448
|
-
this._doInvokeOnCancel(t[n], e);
|
|
449
|
-
else if (void 0 !== t)
|
|
450
|
-
if ("function" == typeof t) {
|
|
451
|
-
if (!e) {
|
|
452
|
-
var r = s(t).call(this._boundValue());
|
|
453
|
-
r === a &&
|
|
454
|
-
(this._attachExtraTrace(r.e), c.throwLater(r.e));
|
|
455
|
-
}
|
|
456
|
-
} else t._resultCancelled(this);
|
|
457
|
-
}),
|
|
458
|
-
(e.prototype._invokeOnCancel = function () {
|
|
459
|
-
var t = this._onCancel();
|
|
460
|
-
this._unsetOnCancel(),
|
|
461
|
-
c.invoke(this._doInvokeOnCancel, this, t);
|
|
462
|
-
}),
|
|
463
|
-
(e.prototype._invokeInternalOnCancel = function () {
|
|
464
|
-
this._isCancellable() &&
|
|
465
|
-
(this._doInvokeOnCancel(this._onCancel(), !0),
|
|
466
|
-
this._unsetOnCancel());
|
|
467
|
-
}),
|
|
468
|
-
(e.prototype._resultCancelled = function () {
|
|
469
|
-
this.cancel();
|
|
470
|
-
});
|
|
471
|
-
};
|
|
472
|
-
},
|
|
473
|
-
{ "./util": 36 }
|
|
474
|
-
],
|
|
475
|
-
|
|
476
|
-
7: [
|
|
477
|
-
function (t, e, n) {
|
|
478
|
-
"use strict";
|
|
479
|
-
e.exports = function (e) {
|
|
480
|
-
function n(t, n, a) {
|
|
481
|
-
return function (c) {
|
|
482
|
-
var l = a._boundValue();
|
|
483
|
-
t: for (var u = 0; u < t.length; ++u) {
|
|
484
|
-
var p = t[u];
|
|
485
|
-
if (
|
|
486
|
-
p === Error ||
|
|
487
|
-
(null != p && p.prototype instanceof Error)
|
|
488
|
-
) {
|
|
489
|
-
if (c instanceof p) return o(n).call(l, c);
|
|
490
|
-
} else if ("function" == typeof p) {
|
|
491
|
-
var h = o(p).call(l, c);
|
|
492
|
-
if (h === s) return h;
|
|
493
|
-
if (h) return o(n).call(l, c);
|
|
494
|
-
} else if (r.isObject(c)) {
|
|
495
|
-
for (var f = i(p), _ = 0; _ < f.length; ++_) {
|
|
496
|
-
var d = f[_];
|
|
497
|
-
if (p[d] != c[d]) continue t;
|
|
498
|
-
}
|
|
499
|
-
return o(n).call(l, c);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
return e;
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
var r = t("./util"),
|
|
506
|
-
i = t("./es5").keys,
|
|
507
|
-
o = r.tryCatch,
|
|
508
|
-
s = r.errorObj;
|
|
509
|
-
return n;
|
|
510
|
-
};
|
|
511
|
-
},
|
|
512
|
-
{ "./es5": 13, "./util": 36 }
|
|
513
|
-
],
|
|
514
|
-
|
|
515
|
-
8: [
|
|
516
|
-
function (t, e, n) {
|
|
517
|
-
"use strict";
|
|
518
|
-
e.exports = function (t) {
|
|
519
|
-
function e() {
|
|
520
|
-
this._trace = new e.CapturedTrace(r());
|
|
521
|
-
}
|
|
522
|
-
function n() {
|
|
523
|
-
return i ? new e() : void 0;
|
|
524
|
-
}
|
|
525
|
-
function r() {
|
|
526
|
-
var t = o.length - 1;
|
|
527
|
-
return t >= 0 ? o[t] : void 0;
|
|
528
|
-
}
|
|
529
|
-
var i = !1,
|
|
530
|
-
o = [];
|
|
531
|
-
return (
|
|
532
|
-
(t.prototype._promiseCreated = function () {}),
|
|
533
|
-
(t.prototype._pushContext = function () {}),
|
|
534
|
-
(t.prototype._popContext = function () {
|
|
535
|
-
return null;
|
|
536
|
-
}),
|
|
537
|
-
(t._peekContext = t.prototype._peekContext = function () {}),
|
|
538
|
-
(e.prototype._pushContext = function () {
|
|
539
|
-
void 0 !== this._trace &&
|
|
540
|
-
((this._trace._promiseCreated = null), o.push(this._trace));
|
|
541
|
-
}),
|
|
542
|
-
(e.prototype._popContext = function () {
|
|
543
|
-
if (void 0 !== this._trace) {
|
|
544
|
-
var t = o.pop(),
|
|
545
|
-
e = t._promiseCreated;
|
|
546
|
-
return (t._promiseCreated = null), e;
|
|
547
|
-
}
|
|
548
|
-
return null;
|
|
549
|
-
}),
|
|
550
|
-
(e.CapturedTrace = null),
|
|
551
|
-
(e.create = n),
|
|
552
|
-
(e.deactivateLongStackTraces = function () {}),
|
|
553
|
-
(e.activateLongStackTraces = function () {
|
|
554
|
-
var n = t.prototype._pushContext,
|
|
555
|
-
o = t.prototype._popContext,
|
|
556
|
-
s = t._peekContext,
|
|
557
|
-
a = t.prototype._peekContext,
|
|
558
|
-
c = t.prototype._promiseCreated;
|
|
559
|
-
(e.deactivateLongStackTraces = function () {
|
|
560
|
-
(t.prototype._pushContext = n),
|
|
561
|
-
(t.prototype._popContext = o),
|
|
562
|
-
(t._peekContext = s),
|
|
563
|
-
(t.prototype._peekContext = a),
|
|
564
|
-
(t.prototype._promiseCreated = c),
|
|
565
|
-
(i = !1);
|
|
566
|
-
}),
|
|
567
|
-
(i = !0),
|
|
568
|
-
(t.prototype._pushContext = e.prototype._pushContext),
|
|
569
|
-
(t.prototype._popContext = e.prototype._popContext),
|
|
570
|
-
(t._peekContext = t.prototype._peekContext = r),
|
|
571
|
-
(t.prototype._promiseCreated = function () {
|
|
572
|
-
var t = this._peekContext();
|
|
573
|
-
t &&
|
|
574
|
-
null == t._promiseCreated &&
|
|
575
|
-
(t._promiseCreated = this);
|
|
576
|
-
});
|
|
577
|
-
}),
|
|
578
|
-
e
|
|
579
|
-
);
|
|
580
|
-
};
|
|
581
|
-
},
|
|
582
|
-
{}
|
|
583
|
-
],
|
|
584
|
-
|
|
585
|
-
9: [
|
|
586
|
-
function (t, e, n) {
|
|
587
|
-
"use strict";
|
|
588
|
-
e.exports = function (e, n) {
|
|
589
|
-
function r(t, e) {
|
|
590
|
-
return { promise: e };
|
|
591
|
-
}
|
|
592
|
-
function i() {
|
|
593
|
-
return !1;
|
|
594
|
-
}
|
|
595
|
-
function o(t, e, n) {
|
|
596
|
-
var r = this;
|
|
597
|
-
try {
|
|
598
|
-
t(e, n, function (t) {
|
|
599
|
-
if ("function" != typeof t)
|
|
600
|
-
throw new TypeError(
|
|
601
|
-
"onCancel must be a function, got: " + H.toString(t)
|
|
602
|
-
);
|
|
603
|
-
|
|
604
|
-
r._attachCancellationCallback(t);
|
|
605
|
-
});
|
|
606
|
-
} catch (i) {
|
|
607
|
-
return i;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
function s(t) {
|
|
611
|
-
if (!this._isCancellable()) return this;
|
|
612
|
-
var e = this._onCancel();
|
|
613
|
-
void 0 !== e
|
|
614
|
-
? H.isArray(e)
|
|
615
|
-
? e.push(t)
|
|
616
|
-
: this._setOnCancel([e, t])
|
|
617
|
-
: this._setOnCancel(t);
|
|
618
|
-
}
|
|
619
|
-
function a() {
|
|
620
|
-
return this._onCancelField;
|
|
621
|
-
}
|
|
622
|
-
function c(t) {
|
|
623
|
-
this._onCancelField = t;
|
|
624
|
-
}
|
|
625
|
-
function l() {
|
|
626
|
-
(this._cancellationParent = void 0),
|
|
627
|
-
(this._onCancelField = void 0);
|
|
628
|
-
}
|
|
629
|
-
function u(t, e) {
|
|
630
|
-
if (0 !== (1 & e)) {
|
|
631
|
-
this._cancellationParent = t;
|
|
632
|
-
var n = t._branchesRemainingToCancel;
|
|
633
|
-
void 0 === n && (n = 0), (t._branchesRemainingToCancel = n + 1);
|
|
634
|
-
}
|
|
635
|
-
0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo);
|
|
636
|
-
}
|
|
637
|
-
function p(t, e) {
|
|
638
|
-
0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo);
|
|
639
|
-
}
|
|
640
|
-
function h() {
|
|
641
|
-
var t = this._boundTo;
|
|
642
|
-
return void 0 !== t && t instanceof e
|
|
643
|
-
? t.isFulfilled()
|
|
644
|
-
? t.value()
|
|
645
|
-
: void 0
|
|
646
|
-
: t;
|
|
647
|
-
}
|
|
648
|
-
function f() {
|
|
649
|
-
this._trace = new O(this._peekContext());
|
|
650
|
-
}
|
|
651
|
-
function _(t, e) {
|
|
652
|
-
if (U(t)) {
|
|
653
|
-
var n = this._trace;
|
|
654
|
-
if ((void 0 !== n && e && (n = n._parent), void 0 !== n))
|
|
655
|
-
n.attachExtraTrace(t);
|
|
656
|
-
else if (!t.__stackCleaned__) {
|
|
657
|
-
var r = E(t);
|
|
658
|
-
H.notEnumerableProp(
|
|
659
|
-
t,
|
|
660
|
-
"stack",
|
|
661
|
-
r.message + "\n" + r.stack.join("\n")
|
|
662
|
-
),
|
|
663
|
-
H.notEnumerableProp(t, "__stackCleaned__", !0);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
function d() {
|
|
668
|
-
this._trace = void 0;
|
|
669
|
-
}
|
|
670
|
-
function v(t, e, n, r, i) {
|
|
671
|
-
if (void 0 === t && null !== e && J) {
|
|
672
|
-
if (void 0 !== i && i._returnedNonUndefined()) return;
|
|
673
|
-
if (0 === (65535 & r._bitField)) return;
|
|
674
|
-
n && (n += " ");
|
|
675
|
-
var o = "",
|
|
676
|
-
s = "";
|
|
677
|
-
if (e._trace) {
|
|
678
|
-
for (
|
|
679
|
-
var a = e._trace.stack.split("\n"),
|
|
680
|
-
c = C(a),
|
|
681
|
-
l = c.length - 1;
|
|
682
|
-
l >= 0;
|
|
683
|
-
--l
|
|
684
|
-
) {
|
|
685
|
-
var u = c[l];
|
|
686
|
-
if (!q.test(u)) {
|
|
687
|
-
var p = u.match($);
|
|
688
|
-
p && (o = "at " + p[1] + ":" + p[2] + ":" + p[3] + " ");
|
|
689
|
-
break;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
if (c.length > 0)
|
|
693
|
-
for (var h = c[0], l = 0; l < a.length; ++l)
|
|
694
|
-
if (a[l] === h) {
|
|
695
|
-
l > 0 && (s = "\n" + a[l - 1]);
|
|
696
|
-
break;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
var f =
|
|
700
|
-
"a promise was created in a " +
|
|
701
|
-
n +
|
|
702
|
-
"handler " +
|
|
703
|
-
o +
|
|
704
|
-
"but was not returned from it, see http://goo.gl/rRqMUw" +
|
|
705
|
-
s;
|
|
706
|
-
r._warn(f, !0, e);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
function y(t, e) {
|
|
710
|
-
var n =
|
|
711
|
-
t + " is deprecated and will be removed in a future version.";
|
|
712
|
-
return e && (n += " Use " + e + " instead."), m(n);
|
|
713
|
-
}
|
|
714
|
-
function m(t, n, r) {
|
|
715
|
-
if (at.warnings) {
|
|
716
|
-
var i,
|
|
717
|
-
o = new N(t);
|
|
718
|
-
if (n) r._attachExtraTrace(o);
|
|
719
|
-
else if (at.longStackTraces && (i = e._peekContext()))
|
|
720
|
-
i.attachExtraTrace(o);
|
|
721
|
-
else {
|
|
722
|
-
var s = E(o);
|
|
723
|
-
o.stack = s.message + "\n" + s.stack.join("\n");
|
|
724
|
-
}
|
|
725
|
-
nt("warning", o) || k(o, "", !0);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
function g(t, e) {
|
|
729
|
-
for (var n = 0; n < e.length - 1; ++n)
|
|
730
|
-
e[n].push("From previous event:"), (e[n] = e[n].join("\n"));
|
|
731
|
-
return (
|
|
732
|
-
n < e.length && (e[n] = e[n].join("\n")),
|
|
733
|
-
t + "\n" + e.join("\n")
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
function b(t) {
|
|
737
|
-
for (var e = 0; e < t.length; ++e)
|
|
738
|
-
(0 === t[e].length ||
|
|
739
|
-
(e + 1 < t.length && t[e][0] === t[e + 1][0])) &&
|
|
740
|
-
(t.splice(e, 1), e--);
|
|
741
|
-
}
|
|
742
|
-
function w(t) {
|
|
743
|
-
for (var e = t[0], n = 1; n < t.length; ++n) {
|
|
744
|
-
for (
|
|
745
|
-
var r = t[n],
|
|
746
|
-
i = e.length - 1,
|
|
747
|
-
o = e[i],
|
|
748
|
-
s = -1,
|
|
749
|
-
a = r.length - 1;
|
|
750
|
-
a >= 0;
|
|
751
|
-
--a
|
|
752
|
-
)
|
|
753
|
-
if (r[a] === o) {
|
|
754
|
-
s = a;
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
for (var a = s; a >= 0; --a) {
|
|
758
|
-
var c = r[a];
|
|
759
|
-
if (e[i] !== c) break;
|
|
760
|
-
e.pop(), i--;
|
|
761
|
-
}
|
|
762
|
-
e = r;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
function C(t) {
|
|
766
|
-
for (var e = [], n = 0; n < t.length; ++n) {
|
|
767
|
-
var r = t[n],
|
|
768
|
-
i = " (No stack trace)" === r || Q.test(r),
|
|
769
|
-
o = i && it(r);
|
|
770
|
-
i &&
|
|
771
|
-
!o &&
|
|
772
|
-
(z && " " !== r.charAt(0) && (r = " " + r), e.push(r));
|
|
773
|
-
}
|
|
774
|
-
return e;
|
|
775
|
-
}
|
|
776
|
-
function j(t) {
|
|
777
|
-
for (
|
|
778
|
-
var e = t.stack.replace(/\s+$/g, "").split("\n"), n = 0;
|
|
779
|
-
n < e.length;
|
|
780
|
-
++n
|
|
781
|
-
) {
|
|
782
|
-
var r = e[n];
|
|
783
|
-
if (" (No stack trace)" === r || Q.test(r)) break;
|
|
784
|
-
}
|
|
785
|
-
return n > 0 && "SyntaxError" != t.name && (e = e.slice(n)), e;
|
|
786
|
-
}
|
|
787
|
-
function E(t) {
|
|
788
|
-
var e = t.stack,
|
|
789
|
-
n = t.toString();
|
|
790
|
-
return (
|
|
791
|
-
(e =
|
|
792
|
-
"string" == typeof e && e.length > 0
|
|
793
|
-
? j(t)
|
|
794
|
-
: [" (No stack trace)"]),
|
|
795
|
-
{ message: n, stack: "SyntaxError" == t.name ? e : C(e) }
|
|
796
|
-
);
|
|
797
|
-
}
|
|
798
|
-
function k(t, e, n) {
|
|
799
|
-
if ("undefined" != typeof console) {
|
|
800
|
-
var r;
|
|
801
|
-
if (H.isObject(t)) {
|
|
802
|
-
var i = t.stack;
|
|
803
|
-
r = e + G(i, t);
|
|
804
|
-
} else r = e + String(t);
|
|
805
|
-
"function" == typeof V
|
|
806
|
-
? V(r, n)
|
|
807
|
-
: ("function" == typeof console.log ||
|
|
808
|
-
"object" == typeof console.log) &&
|
|
809
|
-
console.log(r);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
function F(t, e, n, r) {
|
|
813
|
-
var i = !1;
|
|
814
|
-
try {
|
|
815
|
-
"function" == typeof e &&
|
|
816
|
-
((i = !0), "rejectionHandled" === t ? e(r) : e(n, r));
|
|
817
|
-
} catch (o) {
|
|
818
|
-
L.throwLater(o);
|
|
819
|
-
}
|
|
820
|
-
"unhandledRejection" === t
|
|
821
|
-
? nt(t, n, r) || i || k(n, "Unhandled rejection ")
|
|
822
|
-
: nt(t, r);
|
|
823
|
-
}
|
|
824
|
-
function T(t) {
|
|
825
|
-
var e;
|
|
826
|
-
if ("function" == typeof t)
|
|
827
|
-
e = "[function " + (t.name || "anonymous") + "]";
|
|
828
|
-
else {
|
|
829
|
-
e =
|
|
830
|
-
t && "function" == typeof t.toString
|
|
831
|
-
? t.toString()
|
|
832
|
-
: H.toString(t);
|
|
833
|
-
var n = /\[object [a-zA-Z0-9$_]+\]/;
|
|
834
|
-
if (n.test(e))
|
|
835
|
-
try {
|
|
836
|
-
var r = JSON.stringify(t);
|
|
837
|
-
e = r;
|
|
838
|
-
} catch (i) {}
|
|
839
|
-
0 === e.length && (e = "(empty array)");
|
|
840
|
-
}
|
|
841
|
-
return "(<" + x(e) + ">, no stack trace)";
|
|
842
|
-
}
|
|
843
|
-
function x(t) {
|
|
844
|
-
var e = 41;
|
|
845
|
-
return t.length < e ? t : t.substr(0, e - 3) + "...";
|
|
846
|
-
}
|
|
847
|
-
function P() {
|
|
848
|
-
return "function" == typeof st;
|
|
849
|
-
}
|
|
850
|
-
function S(t) {
|
|
851
|
-
var e = t.match(ot);
|
|
852
|
-
return e ? { fileName: e[1], line: parseInt(e[2], 10) } : void 0;
|
|
853
|
-
}
|
|
854
|
-
function R(t, e) {
|
|
855
|
-
if (P()) {
|
|
856
|
-
for (
|
|
857
|
-
var n,
|
|
858
|
-
r,
|
|
859
|
-
i = (t.stack || "").split("\n"),
|
|
860
|
-
o = (e.stack || "").split("\n"),
|
|
861
|
-
s = -1,
|
|
862
|
-
a = -1,
|
|
863
|
-
c = 0;
|
|
864
|
-
c < i.length;
|
|
865
|
-
++c
|
|
866
|
-
) {
|
|
867
|
-
var l = S(i[c]);
|
|
868
|
-
if (l) {
|
|
869
|
-
(n = l.fileName), (s = l.line);
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
for (var c = 0; c < o.length; ++c) {
|
|
874
|
-
var l = S(o[c]);
|
|
875
|
-
if (l) {
|
|
876
|
-
(r = l.fileName), (a = l.line);
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
0 > s ||
|
|
881
|
-
0 > a ||
|
|
882
|
-
!n ||
|
|
883
|
-
!r ||
|
|
884
|
-
n !== r ||
|
|
885
|
-
s >= a ||
|
|
886
|
-
(it = function (t) {
|
|
887
|
-
if (M.test(t)) return !0;
|
|
888
|
-
var e = S(t);
|
|
889
|
-
return e && e.fileName === n && s <= e.line && e.line <= a
|
|
890
|
-
? !0
|
|
891
|
-
: !1;
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
function O(t) {
|
|
896
|
-
(this._parent = t), (this._promisesCreated = 0);
|
|
897
|
-
var e = (this._length = 1 + (void 0 === t ? 0 : t._length));
|
|
898
|
-
st(this, O), e > 32 && this.uncycle();
|
|
899
|
-
}
|
|
900
|
-
var A,
|
|
901
|
-
D,
|
|
902
|
-
V,
|
|
903
|
-
I = e._getDomain,
|
|
904
|
-
L = e._async,
|
|
905
|
-
N = t("./errors").Warning,
|
|
906
|
-
H = t("./util"),
|
|
907
|
-
B = t("./es5"),
|
|
908
|
-
U = H.canAttachTrace,
|
|
909
|
-
M = /[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,
|
|
910
|
-
q = /\((?:timers\.js):\d+:\d+\)/,
|
|
911
|
-
$ = /[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,
|
|
912
|
-
Q = null,
|
|
913
|
-
G = null,
|
|
914
|
-
z = !1,
|
|
915
|
-
X = !(
|
|
916
|
-
0 == H.env("BLUEBIRD_DEBUG") ||
|
|
917
|
-
(!H.env("BLUEBIRD_DEBUG") &&
|
|
918
|
-
"development" !== H.env("NODE_ENV"))
|
|
919
|
-
),
|
|
920
|
-
W = !(
|
|
921
|
-
0 == H.env("BLUEBIRD_WARNINGS") ||
|
|
922
|
-
(!X && !H.env("BLUEBIRD_WARNINGS"))
|
|
923
|
-
),
|
|
924
|
-
K = !(
|
|
925
|
-
0 == H.env("BLUEBIRD_LONG_STACK_TRACES") ||
|
|
926
|
-
(!X && !H.env("BLUEBIRD_LONG_STACK_TRACES"))
|
|
927
|
-
),
|
|
928
|
-
J =
|
|
929
|
-
0 != H.env("BLUEBIRD_W_FORGOTTEN_RETURN") &&
|
|
930
|
-
(W || !!H.env("BLUEBIRD_W_FORGOTTEN_RETURN"));
|
|
931
|
-
(e.prototype.suppressUnhandledRejections = function () {
|
|
932
|
-
var t = this._target();
|
|
933
|
-
t._bitField = (-1048577 & t._bitField) | 524288;
|
|
934
|
-
}),
|
|
935
|
-
(e.prototype._ensurePossibleRejectionHandled = function () {
|
|
936
|
-
if (0 === (524288 & this._bitField)) {
|
|
937
|
-
this._setRejectionIsUnhandled();
|
|
938
|
-
var t = this;
|
|
939
|
-
setTimeout(function () {
|
|
940
|
-
t._notifyUnhandledRejection();
|
|
941
|
-
}, 1);
|
|
942
|
-
}
|
|
943
|
-
}),
|
|
944
|
-
(e.prototype._notifyUnhandledRejectionIsHandled = function () {
|
|
945
|
-
F("rejectionHandled", A, void 0, this);
|
|
946
|
-
}),
|
|
947
|
-
(e.prototype._setReturnedNonUndefined = function () {
|
|
948
|
-
this._bitField = 268435456 | this._bitField;
|
|
949
|
-
}),
|
|
950
|
-
(e.prototype._returnedNonUndefined = function () {
|
|
951
|
-
return 0 !== (268435456 & this._bitField);
|
|
952
|
-
}),
|
|
953
|
-
(e.prototype._notifyUnhandledRejection = function () {
|
|
954
|
-
if (this._isRejectionUnhandled()) {
|
|
955
|
-
var t = this._settledValue();
|
|
956
|
-
this._setUnhandledRejectionIsNotified(),
|
|
957
|
-
F("unhandledRejection", D, t, this);
|
|
958
|
-
}
|
|
959
|
-
}),
|
|
960
|
-
(e.prototype._setUnhandledRejectionIsNotified = function () {
|
|
961
|
-
this._bitField = 262144 | this._bitField;
|
|
962
|
-
}),
|
|
963
|
-
(e.prototype._unsetUnhandledRejectionIsNotified = function () {
|
|
964
|
-
this._bitField = -262145 & this._bitField;
|
|
965
|
-
}),
|
|
966
|
-
(e.prototype._isUnhandledRejectionNotified = function () {
|
|
967
|
-
return (262144 & this._bitField) > 0;
|
|
968
|
-
}),
|
|
969
|
-
(e.prototype._setRejectionIsUnhandled = function () {
|
|
970
|
-
this._bitField = 1048576 | this._bitField;
|
|
971
|
-
}),
|
|
972
|
-
(e.prototype._unsetRejectionIsUnhandled = function () {
|
|
973
|
-
(this._bitField = -1048577 & this._bitField),
|
|
974
|
-
this._isUnhandledRejectionNotified() &&
|
|
975
|
-
(this._unsetUnhandledRejectionIsNotified(),
|
|
976
|
-
this._notifyUnhandledRejectionIsHandled());
|
|
977
|
-
}),
|
|
978
|
-
(e.prototype._isRejectionUnhandled = function () {
|
|
979
|
-
return (1048576 & this._bitField) > 0;
|
|
980
|
-
}),
|
|
981
|
-
(e.prototype._warn = function (t, e, n) {
|
|
982
|
-
return m(t, e, n || this);
|
|
983
|
-
}),
|
|
984
|
-
(e.onPossiblyUnhandledRejection = function (t) {
|
|
985
|
-
var e = I();
|
|
986
|
-
D =
|
|
987
|
-
"function" == typeof t
|
|
988
|
-
? null === e
|
|
989
|
-
? t
|
|
990
|
-
: H.domainBind(e, t)
|
|
991
|
-
: void 0;
|
|
992
|
-
}),
|
|
993
|
-
(e.onUnhandledRejectionHandled = function (t) {
|
|
994
|
-
var e = I();
|
|
995
|
-
A =
|
|
996
|
-
"function" == typeof t
|
|
997
|
-
? null === e
|
|
998
|
-
? t
|
|
999
|
-
: H.domainBind(e, t)
|
|
1000
|
-
: void 0;
|
|
1001
|
-
});
|
|
1002
|
-
var Y = function () {};
|
|
1003
|
-
(e.longStackTraces = function () {
|
|
1004
|
-
if (L.haveItemsQueued() && !at.longStackTraces)
|
|
1005
|
-
throw new Error(
|
|
1006
|
-
"cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n"
|
|
1007
|
-
);
|
|
1008
|
-
|
|
1009
|
-
if (!at.longStackTraces && P()) {
|
|
1010
|
-
var t = e.prototype._captureStackTrace,
|
|
1011
|
-
r = e.prototype._attachExtraTrace,
|
|
1012
|
-
i = e.prototype._dereferenceTrace;
|
|
1013
|
-
(at.longStackTraces = !0),
|
|
1014
|
-
(Y = function () {
|
|
1015
|
-
if (L.haveItemsQueued() && !at.longStackTraces)
|
|
1016
|
-
throw new Error(
|
|
1017
|
-
"cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n"
|
|
1018
|
-
);
|
|
1019
|
-
|
|
1020
|
-
(e.prototype._captureStackTrace = t),
|
|
1021
|
-
(e.prototype._attachExtraTrace = r),
|
|
1022
|
-
(e.prototype._dereferenceTrace = i),
|
|
1023
|
-
n.deactivateLongStackTraces(),
|
|
1024
|
-
L.enableTrampoline(),
|
|
1025
|
-
(at.longStackTraces = !1);
|
|
1026
|
-
}),
|
|
1027
|
-
(e.prototype._captureStackTrace = f),
|
|
1028
|
-
(e.prototype._attachExtraTrace = _),
|
|
1029
|
-
(e.prototype._dereferenceTrace = d),
|
|
1030
|
-
n.activateLongStackTraces(),
|
|
1031
|
-
L.disableTrampolineIfNecessary();
|
|
1032
|
-
}
|
|
1033
|
-
}),
|
|
1034
|
-
(e.hasLongStackTraces = function () {
|
|
1035
|
-
return at.longStackTraces && P();
|
|
1036
|
-
});
|
|
1037
|
-
var Z = (function () {
|
|
1038
|
-
try {
|
|
1039
|
-
if ("function" == typeof CustomEvent) {
|
|
1040
|
-
var t = new CustomEvent("CustomEvent");
|
|
1041
|
-
return (
|
|
1042
|
-
H.global.dispatchEvent(t),
|
|
1043
|
-
function (t, e) {
|
|
1044
|
-
var n = { detail: e, cancelable: !0 };
|
|
1045
|
-
B.defineProperty(n, "promise", { value: e.promise }),
|
|
1046
|
-
B.defineProperty(n, "reason", { value: e.reason });
|
|
1047
|
-
var r = new CustomEvent(t.toLowerCase(), n);
|
|
1048
|
-
return !H.global.dispatchEvent(r);
|
|
1049
|
-
}
|
|
1050
|
-
);
|
|
1051
|
-
}
|
|
1052
|
-
if ("function" == typeof Event) {
|
|
1053
|
-
var t = new Event("CustomEvent");
|
|
1054
|
-
return (
|
|
1055
|
-
H.global.dispatchEvent(t),
|
|
1056
|
-
function (t, e) {
|
|
1057
|
-
var n = new Event(t.toLowerCase(), { cancelable: !0 });
|
|
1058
|
-
return (
|
|
1059
|
-
(n.detail = e),
|
|
1060
|
-
B.defineProperty(n, "promise", { value: e.promise }),
|
|
1061
|
-
B.defineProperty(n, "reason", { value: e.reason }),
|
|
1062
|
-
!H.global.dispatchEvent(n)
|
|
1063
|
-
);
|
|
1064
|
-
}
|
|
1065
|
-
);
|
|
1066
|
-
}
|
|
1067
|
-
var t = document.createEvent("CustomEvent");
|
|
1068
|
-
return (
|
|
1069
|
-
t.initCustomEvent("testingtheevent", !1, !0, {}),
|
|
1070
|
-
H.global.dispatchEvent(t),
|
|
1071
|
-
function (t, e) {
|
|
1072
|
-
var n = document.createEvent("CustomEvent");
|
|
1073
|
-
return (
|
|
1074
|
-
n.initCustomEvent(t.toLowerCase(), !1, !0, e),
|
|
1075
|
-
!H.global.dispatchEvent(n)
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
|
-
);
|
|
1079
|
-
} catch (e) {}
|
|
1080
|
-
return function () {
|
|
1081
|
-
return !1;
|
|
1082
|
-
};
|
|
1083
|
-
})(),
|
|
1084
|
-
tt = (function () {
|
|
1085
|
-
return H.isNode
|
|
1086
|
-
? function () {
|
|
1087
|
-
return process.emit.apply(process, arguments);
|
|
1088
|
-
}
|
|
1089
|
-
: H.global
|
|
1090
|
-
? function (t) {
|
|
1091
|
-
var e = "on" + t.toLowerCase(),
|
|
1092
|
-
n = H.global[e];
|
|
1093
|
-
return n
|
|
1094
|
-
? (n.apply(H.global, [].slice.call(arguments, 1)), !0)
|
|
1095
|
-
: !1;
|
|
1096
|
-
}
|
|
1097
|
-
: function () {
|
|
1098
|
-
return !1;
|
|
1099
|
-
};
|
|
1100
|
-
})(),
|
|
1101
|
-
et = {
|
|
1102
|
-
promiseCreated: r,
|
|
1103
|
-
promiseFulfilled: r,
|
|
1104
|
-
promiseRejected: r,
|
|
1105
|
-
promiseResolved: r,
|
|
1106
|
-
promiseCancelled: r,
|
|
1107
|
-
promiseChained(t, e, n) {
|
|
1108
|
-
return { promise: e, child: n };
|
|
1109
|
-
},
|
|
1110
|
-
warning(t, e) {
|
|
1111
|
-
return { warning: e };
|
|
1112
|
-
},
|
|
1113
|
-
unhandledRejection(t, e, n) {
|
|
1114
|
-
return { reason: e, promise: n };
|
|
1115
|
-
},
|
|
1116
|
-
rejectionHandled: r
|
|
1117
|
-
},
|
|
1118
|
-
nt = function (t) {
|
|
1119
|
-
var e = !1;
|
|
1120
|
-
try {
|
|
1121
|
-
e = tt.apply(null, arguments);
|
|
1122
|
-
} catch (n) {
|
|
1123
|
-
L.throwLater(n), (e = !0);
|
|
1124
|
-
}
|
|
1125
|
-
var r = !1;
|
|
1126
|
-
try {
|
|
1127
|
-
r = Z(t, et[t].apply(null, arguments));
|
|
1128
|
-
} catch (n) {
|
|
1129
|
-
L.throwLater(n), (r = !0);
|
|
1130
|
-
}
|
|
1131
|
-
return r || e;
|
|
1132
|
-
};
|
|
1133
|
-
(e.config = function (t) {
|
|
1134
|
-
if (
|
|
1135
|
-
((t = Object(t)),
|
|
1136
|
-
"longStackTraces" in t &&
|
|
1137
|
-
(t.longStackTraces
|
|
1138
|
-
? e.longStackTraces()
|
|
1139
|
-
: !t.longStackTraces && e.hasLongStackTraces() && Y()),
|
|
1140
|
-
"warnings" in t)
|
|
1141
|
-
) {
|
|
1142
|
-
var n = t.warnings;
|
|
1143
|
-
(at.warnings = !!n),
|
|
1144
|
-
(J = at.warnings),
|
|
1145
|
-
H.isObject(n) &&
|
|
1146
|
-
"wForgottenReturn" in n &&
|
|
1147
|
-
(J = !!n.wForgottenReturn);
|
|
1148
|
-
}
|
|
1149
|
-
if ("cancellation" in t && t.cancellation && !at.cancellation) {
|
|
1150
|
-
if (L.haveItemsQueued())
|
|
1151
|
-
throw new Error(
|
|
1152
|
-
"cannot enable cancellation after promises are in use"
|
|
1153
|
-
);
|
|
1154
|
-
|
|
1155
|
-
(e.prototype._clearCancellationData = l),
|
|
1156
|
-
(e.prototype._propagateFrom = u),
|
|
1157
|
-
(e.prototype._onCancel = a),
|
|
1158
|
-
(e.prototype._setOnCancel = c),
|
|
1159
|
-
(e.prototype._attachCancellationCallback = s),
|
|
1160
|
-
(e.prototype._execute = o),
|
|
1161
|
-
(rt = u),
|
|
1162
|
-
(at.cancellation = !0);
|
|
1163
|
-
}
|
|
1164
|
-
return (
|
|
1165
|
-
"monitoring" in t &&
|
|
1166
|
-
(t.monitoring && !at.monitoring
|
|
1167
|
-
? ((at.monitoring = !0), (e.prototype._fireEvent = nt))
|
|
1168
|
-
: !t.monitoring &&
|
|
1169
|
-
at.monitoring &&
|
|
1170
|
-
((at.monitoring = !1), (e.prototype._fireEvent = i))),
|
|
1171
|
-
e
|
|
1172
|
-
);
|
|
1173
|
-
}),
|
|
1174
|
-
(e.prototype._fireEvent = i),
|
|
1175
|
-
(e.prototype._execute = function (t, e, n) {
|
|
1176
|
-
try {
|
|
1177
|
-
t(e, n);
|
|
1178
|
-
} catch (r) {
|
|
1179
|
-
return r;
|
|
1180
|
-
}
|
|
1181
|
-
}),
|
|
1182
|
-
(e.prototype._onCancel = function () {}),
|
|
1183
|
-
(e.prototype._setOnCancel = function (t) {}),
|
|
1184
|
-
(e.prototype._attachCancellationCallback = function (t) {}),
|
|
1185
|
-
(e.prototype._captureStackTrace = function () {}),
|
|
1186
|
-
(e.prototype._attachExtraTrace = function () {}),
|
|
1187
|
-
(e.prototype._dereferenceTrace = function () {}),
|
|
1188
|
-
(e.prototype._clearCancellationData = function () {}),
|
|
1189
|
-
(e.prototype._propagateFrom = function (t, e) {});
|
|
1190
|
-
var rt = p,
|
|
1191
|
-
it = function () {
|
|
1192
|
-
return !1;
|
|
1193
|
-
},
|
|
1194
|
-
ot = /[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;
|
|
1195
|
-
H.inherits(O, Error),
|
|
1196
|
-
(n.CapturedTrace = O),
|
|
1197
|
-
(O.prototype.uncycle = function () {
|
|
1198
|
-
var t = this._length;
|
|
1199
|
-
if (!(2 > t)) {
|
|
1200
|
-
for (var e = [], n = {}, r = 0, i = this; void 0 !== i; ++r)
|
|
1201
|
-
e.push(i), (i = i._parent);
|
|
1202
|
-
t = this._length = r;
|
|
1203
|
-
for (var r = t - 1; r >= 0; --r) {
|
|
1204
|
-
var o = e[r].stack;
|
|
1205
|
-
void 0 === n[o] && (n[o] = r);
|
|
1206
|
-
}
|
|
1207
|
-
for (var r = 0; t > r; ++r) {
|
|
1208
|
-
var s = e[r].stack,
|
|
1209
|
-
a = n[s];
|
|
1210
|
-
if (void 0 !== a && a !== r) {
|
|
1211
|
-
a > 0 &&
|
|
1212
|
-
((e[a - 1]._parent = void 0), (e[a - 1]._length = 1)),
|
|
1213
|
-
(e[r]._parent = void 0),
|
|
1214
|
-
(e[r]._length = 1);
|
|
1215
|
-
var c = r > 0 ? e[r - 1] : this;
|
|
1216
|
-
t - 1 > a
|
|
1217
|
-
? ((c._parent = e[a + 1]),
|
|
1218
|
-
c._parent.uncycle(),
|
|
1219
|
-
(c._length = c._parent._length + 1))
|
|
1220
|
-
: ((c._parent = void 0), (c._length = 1));
|
|
1221
|
-
for (var l = c._length + 1, u = r - 2; u >= 0; --u)
|
|
1222
|
-
(e[u]._length = l), l++;
|
|
1223
|
-
return;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}),
|
|
1228
|
-
(O.prototype.attachExtraTrace = function (t) {
|
|
1229
|
-
if (!t.__stackCleaned__) {
|
|
1230
|
-
this.uncycle();
|
|
1231
|
-
for (
|
|
1232
|
-
var e = E(t), n = e.message, r = [e.stack], i = this;
|
|
1233
|
-
void 0 !== i;
|
|
1234
|
-
|
|
1235
|
-
)
|
|
1236
|
-
r.push(C(i.stack.split("\n"))), (i = i._parent);
|
|
1237
|
-
w(r),
|
|
1238
|
-
b(r),
|
|
1239
|
-
H.notEnumerableProp(t, "stack", g(n, r)),
|
|
1240
|
-
H.notEnumerableProp(t, "__stackCleaned__", !0);
|
|
1241
|
-
}
|
|
1242
|
-
});
|
|
1243
|
-
var st = (function () {
|
|
1244
|
-
var t = /^\s*at\s*/,
|
|
1245
|
-
e = function (t, e) {
|
|
1246
|
-
return "string" == typeof t
|
|
1247
|
-
? t
|
|
1248
|
-
: void 0 !== e.name && void 0 !== e.message
|
|
1249
|
-
? e.toString()
|
|
1250
|
-
: T(e);
|
|
1251
|
-
};
|
|
1252
|
-
if (
|
|
1253
|
-
"number" == typeof Error.stackTraceLimit &&
|
|
1254
|
-
"function" == typeof Error.captureStackTrace
|
|
1255
|
-
) {
|
|
1256
|
-
(Error.stackTraceLimit += 6), (Q = t), (G = e);
|
|
1257
|
-
var n = Error.captureStackTrace;
|
|
1258
|
-
return (
|
|
1259
|
-
(it = function (t) {
|
|
1260
|
-
return M.test(t);
|
|
1261
|
-
}),
|
|
1262
|
-
function (t, e) {
|
|
1263
|
-
(Error.stackTraceLimit += 6),
|
|
1264
|
-
n(t, e),
|
|
1265
|
-
(Error.stackTraceLimit -= 6);
|
|
1266
|
-
}
|
|
1267
|
-
);
|
|
1268
|
-
}
|
|
1269
|
-
var r = new Error();
|
|
1270
|
-
if (
|
|
1271
|
-
"string" == typeof r.stack &&
|
|
1272
|
-
r.stack.split("\n")[0].indexOf("stackDetection@") >= 0
|
|
1273
|
-
)
|
|
1274
|
-
return (
|
|
1275
|
-
(Q = /@/),
|
|
1276
|
-
(G = e),
|
|
1277
|
-
(z = !0),
|
|
1278
|
-
function (t) {
|
|
1279
|
-
t.stack = new Error().stack;
|
|
1280
|
-
}
|
|
1281
|
-
);
|
|
1282
|
-
|
|
1283
|
-
var i;
|
|
1284
|
-
try {
|
|
1285
|
-
throw new Error();
|
|
1286
|
-
} catch (o) {
|
|
1287
|
-
i = "stack" in o;
|
|
1288
|
-
}
|
|
1289
|
-
return "stack" in r ||
|
|
1290
|
-
!i ||
|
|
1291
|
-
"number" != typeof Error.stackTraceLimit
|
|
1292
|
-
? ((G = function (t, e) {
|
|
1293
|
-
return "string" == typeof t
|
|
1294
|
-
? t
|
|
1295
|
-
: ("object" != typeof e && "function" != typeof e) ||
|
|
1296
|
-
void 0 === e.name ||
|
|
1297
|
-
void 0 === e.message
|
|
1298
|
-
? T(e)
|
|
1299
|
-
: e.toString();
|
|
1300
|
-
}),
|
|
1301
|
-
null)
|
|
1302
|
-
: ((Q = t),
|
|
1303
|
-
(G = e),
|
|
1304
|
-
function (t) {
|
|
1305
|
-
Error.stackTraceLimit += 6;
|
|
1306
|
-
try {
|
|
1307
|
-
throw new Error();
|
|
1308
|
-
} catch (e) {
|
|
1309
|
-
t.stack = e.stack;
|
|
1310
|
-
}
|
|
1311
|
-
Error.stackTraceLimit -= 6;
|
|
1312
|
-
});
|
|
1313
|
-
})([]);
|
|
1314
|
-
"undefined" != typeof console &&
|
|
1315
|
-
"undefined" != typeof console.warn &&
|
|
1316
|
-
((V = function (t) {
|
|
1317
|
-
console.warn(t);
|
|
1318
|
-
}),
|
|
1319
|
-
H.isNode && process.stderr.isTTY
|
|
1320
|
-
? (V = function (t, e) {
|
|
1321
|
-
var n = e ? "[33m" : "[31m";
|
|
1322
|
-
console.warn(n + t + "[0m\n");
|
|
1323
|
-
})
|
|
1324
|
-
: H.isNode ||
|
|
1325
|
-
"string" != typeof new Error().stack ||
|
|
1326
|
-
(V = function (t, e) {
|
|
1327
|
-
console.warn(
|
|
1328
|
-
"%c" + t,
|
|
1329
|
-
e ? "color: darkorange" : "color: red"
|
|
1330
|
-
);
|
|
1331
|
-
}));
|
|
1332
|
-
var at = {
|
|
1333
|
-
warnings: W,
|
|
1334
|
-
longStackTraces: !1,
|
|
1335
|
-
cancellation: !1,
|
|
1336
|
-
monitoring: !1
|
|
1337
|
-
};
|
|
1338
|
-
|
|
1339
|
-
return (
|
|
1340
|
-
K && e.longStackTraces(),
|
|
1341
|
-
{
|
|
1342
|
-
longStackTraces() {
|
|
1343
|
-
return at.longStackTraces;
|
|
1344
|
-
},
|
|
1345
|
-
warnings() {
|
|
1346
|
-
return at.warnings;
|
|
1347
|
-
},
|
|
1348
|
-
cancellation() {
|
|
1349
|
-
return at.cancellation;
|
|
1350
|
-
},
|
|
1351
|
-
monitoring() {
|
|
1352
|
-
return at.monitoring;
|
|
1353
|
-
},
|
|
1354
|
-
propagateFromFunction() {
|
|
1355
|
-
return rt;
|
|
1356
|
-
},
|
|
1357
|
-
boundValueFunction() {
|
|
1358
|
-
return h;
|
|
1359
|
-
},
|
|
1360
|
-
checkForgottenReturns: v,
|
|
1361
|
-
setBounds: R,
|
|
1362
|
-
warn: m,
|
|
1363
|
-
deprecated: y,
|
|
1364
|
-
CapturedTrace: O,
|
|
1365
|
-
fireDomEvent: Z,
|
|
1366
|
-
fireGlobalEvent: tt
|
|
1367
|
-
}
|
|
1368
|
-
);
|
|
1369
|
-
};
|
|
1370
|
-
},
|
|
1371
|
-
{ "./errors": 12, "./es5": 13, "./util": 36 }
|
|
1372
|
-
],
|
|
1373
|
-
|
|
1374
|
-
10: [
|
|
1375
|
-
function (t, e, n) {
|
|
1376
|
-
"use strict";
|
|
1377
|
-
e.exports = function (t) {
|
|
1378
|
-
function e() {
|
|
1379
|
-
return this.value;
|
|
1380
|
-
}
|
|
1381
|
-
function n() {
|
|
1382
|
-
throw this.reason;
|
|
1383
|
-
}
|
|
1384
|
-
(t.prototype["return"] = t.prototype.thenReturn =
|
|
1385
|
-
function (n) {
|
|
1386
|
-
return (
|
|
1387
|
-
n instanceof t && n.suppressUnhandledRejections(),
|
|
1388
|
-
this._then(e, void 0, void 0, { value: n }, void 0)
|
|
1389
|
-
);
|
|
1390
|
-
}),
|
|
1391
|
-
(t.prototype["throw"] = t.prototype.thenThrow =
|
|
1392
|
-
function (t) {
|
|
1393
|
-
return this._then(n, void 0, void 0, { reason: t }, void 0);
|
|
1394
|
-
}),
|
|
1395
|
-
(t.prototype.catchThrow = function (t) {
|
|
1396
|
-
if (arguments.length <= 1)
|
|
1397
|
-
return this._then(void 0, n, void 0, { reason: t }, void 0);
|
|
1398
|
-
var e = arguments[1],
|
|
1399
|
-
r = function () {
|
|
1400
|
-
throw e;
|
|
1401
|
-
};
|
|
1402
|
-
return this.caught(t, r);
|
|
1403
|
-
}),
|
|
1404
|
-
(t.prototype.catchReturn = function (n) {
|
|
1405
|
-
if (arguments.length <= 1)
|
|
1406
|
-
return (
|
|
1407
|
-
n instanceof t && n.suppressUnhandledRejections(),
|
|
1408
|
-
this._then(void 0, e, void 0, { value: n }, void 0)
|
|
1409
|
-
);
|
|
1410
|
-
|
|
1411
|
-
var r = arguments[1];
|
|
1412
|
-
r instanceof t && r.suppressUnhandledRejections();
|
|
1413
|
-
var i = function () {
|
|
1414
|
-
return r;
|
|
1415
|
-
};
|
|
1416
|
-
return this.caught(n, i);
|
|
1417
|
-
});
|
|
1418
|
-
};
|
|
1419
|
-
},
|
|
1420
|
-
{}
|
|
1421
|
-
],
|
|
1422
|
-
|
|
1423
|
-
11: [
|
|
1424
|
-
function (t, e, n) {
|
|
1425
|
-
"use strict";
|
|
1426
|
-
e.exports = function (t, e) {
|
|
1427
|
-
function n() {
|
|
1428
|
-
return o(this);
|
|
1429
|
-
}
|
|
1430
|
-
function r(t, n) {
|
|
1431
|
-
return i(t, n, e, e);
|
|
1432
|
-
}
|
|
1433
|
-
var i = t.reduce,
|
|
1434
|
-
o = t.all;
|
|
1435
|
-
(t.prototype.each = function (t) {
|
|
1436
|
-
return i(this, t, e, 0)._then(n, void 0, void 0, this, void 0);
|
|
1437
|
-
}),
|
|
1438
|
-
(t.prototype.mapSeries = function (t) {
|
|
1439
|
-
return i(this, t, e, e);
|
|
1440
|
-
}),
|
|
1441
|
-
(t.each = function (t, r) {
|
|
1442
|
-
return i(t, r, e, 0)._then(n, void 0, void 0, t, void 0);
|
|
1443
|
-
}),
|
|
1444
|
-
(t.mapSeries = r);
|
|
1445
|
-
};
|
|
1446
|
-
},
|
|
1447
|
-
{}
|
|
1448
|
-
],
|
|
1449
|
-
|
|
1450
|
-
12: [
|
|
1451
|
-
function (t, e, n) {
|
|
1452
|
-
"use strict";
|
|
1453
|
-
function r(t, e) {
|
|
1454
|
-
function n(r) {
|
|
1455
|
-
return this instanceof n
|
|
1456
|
-
? (p(this, "message", "string" == typeof r ? r : e),
|
|
1457
|
-
p(this, "name", t),
|
|
1458
|
-
void (Error.captureStackTrace
|
|
1459
|
-
? Error.captureStackTrace(this, this.constructor)
|
|
1460
|
-
: Error.call(this)))
|
|
1461
|
-
: new n(r);
|
|
1462
|
-
}
|
|
1463
|
-
return u(n, Error), n;
|
|
1464
|
-
}
|
|
1465
|
-
function i(t) {
|
|
1466
|
-
return this instanceof i
|
|
1467
|
-
? (p(this, "name", "OperationalError"),
|
|
1468
|
-
p(this, "message", t),
|
|
1469
|
-
(this.cause = t),
|
|
1470
|
-
(this.isOperational = !0),
|
|
1471
|
-
void (t instanceof Error
|
|
1472
|
-
? (p(this, "message", t.message), p(this, "stack", t.stack))
|
|
1473
|
-
: Error.captureStackTrace &&
|
|
1474
|
-
Error.captureStackTrace(this, this.constructor)))
|
|
1475
|
-
: new i(t);
|
|
1476
|
-
}
|
|
1477
|
-
var o,
|
|
1478
|
-
s,
|
|
1479
|
-
a = t("./es5"),
|
|
1480
|
-
c = a.freeze,
|
|
1481
|
-
l = t("./util"),
|
|
1482
|
-
u = l.inherits,
|
|
1483
|
-
p = l.notEnumerableProp,
|
|
1484
|
-
h = r("Warning", "warning"),
|
|
1485
|
-
f = r("CancellationError", "cancellation error"),
|
|
1486
|
-
_ = r("TimeoutError", "timeout error"),
|
|
1487
|
-
d = r("AggregateError", "aggregate error");
|
|
1488
|
-
try {
|
|
1489
|
-
(o = TypeError), (s = RangeError);
|
|
1490
|
-
} catch (v) {
|
|
1491
|
-
(o = r("TypeError", "type error")),
|
|
1492
|
-
(s = r("RangeError", "range error"));
|
|
1493
|
-
}
|
|
1494
|
-
for (
|
|
1495
|
-
var y =
|
|
1496
|
-
"join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(
|
|
1497
|
-
" "
|
|
1498
|
-
),
|
|
1499
|
-
m = 0;
|
|
1500
|
-
m < y.length;
|
|
1501
|
-
++m
|
|
1502
|
-
)
|
|
1503
|
-
"function" == typeof Array.prototype[y[m]] &&
|
|
1504
|
-
(d.prototype[y[m]] = Array.prototype[y[m]]);
|
|
1505
|
-
a.defineProperty(d.prototype, "length", {
|
|
1506
|
-
value: 0,
|
|
1507
|
-
configurable: !1,
|
|
1508
|
-
writable: !0,
|
|
1509
|
-
enumerable: !0
|
|
1510
|
-
}),
|
|
1511
|
-
(d.prototype.isOperational = !0);
|
|
1512
|
-
var g = 0;
|
|
1513
|
-
(d.prototype.toString = function () {
|
|
1514
|
-
var t = Array(4 * g + 1).join(" "),
|
|
1515
|
-
e = "\n" + t + "AggregateError of:\n";
|
|
1516
|
-
g++, (t = Array(4 * g + 1).join(" "));
|
|
1517
|
-
for (var n = 0; n < this.length; ++n) {
|
|
1518
|
-
for (
|
|
1519
|
-
var r =
|
|
1520
|
-
this[n] === this
|
|
1521
|
-
? "[Circular AggregateError]"
|
|
1522
|
-
: this[n] + "",
|
|
1523
|
-
i = r.split("\n"),
|
|
1524
|
-
o = 0;
|
|
1525
|
-
o < i.length;
|
|
1526
|
-
++o
|
|
1527
|
-
)
|
|
1528
|
-
i[o] = t + i[o];
|
|
1529
|
-
(r = i.join("\n")), (e += r + "\n");
|
|
1530
|
-
}
|
|
1531
|
-
return g--, e;
|
|
1532
|
-
}),
|
|
1533
|
-
u(i, Error);
|
|
1534
|
-
var b = Error.__BluebirdErrorTypes__;
|
|
1535
|
-
b ||
|
|
1536
|
-
((b = c({
|
|
1537
|
-
CancellationError: f,
|
|
1538
|
-
TimeoutError: _,
|
|
1539
|
-
OperationalError: i,
|
|
1540
|
-
RejectionError: i,
|
|
1541
|
-
AggregateError: d
|
|
1542
|
-
})),
|
|
1543
|
-
a.defineProperty(Error, "__BluebirdErrorTypes__", {
|
|
1544
|
-
value: b,
|
|
1545
|
-
writable: !1,
|
|
1546
|
-
enumerable: !1,
|
|
1547
|
-
configurable: !1
|
|
1548
|
-
})),
|
|
1549
|
-
(e.exports = {
|
|
1550
|
-
Error: Error,
|
|
1551
|
-
TypeError: o,
|
|
1552
|
-
RangeError: s,
|
|
1553
|
-
CancellationError: b.CancellationError,
|
|
1554
|
-
OperationalError: b.OperationalError,
|
|
1555
|
-
TimeoutError: b.TimeoutError,
|
|
1556
|
-
AggregateError: b.AggregateError,
|
|
1557
|
-
Warning: h
|
|
1558
|
-
});
|
|
1559
|
-
},
|
|
1560
|
-
{ "./es5": 13, "./util": 36 }
|
|
1561
|
-
],
|
|
1562
|
-
|
|
1563
|
-
13: [
|
|
1564
|
-
function (t, e, n) {
|
|
1565
|
-
var r = (function () {
|
|
1566
|
-
"use strict";
|
|
1567
|
-
return void 0 === this;
|
|
1568
|
-
})();
|
|
1569
|
-
if (r)
|
|
1570
|
-
e.exports = {
|
|
1571
|
-
freeze: Object.freeze,
|
|
1572
|
-
defineProperty: Object.defineProperty,
|
|
1573
|
-
getDescriptor: Object.getOwnPropertyDescriptor,
|
|
1574
|
-
keys: Object.keys,
|
|
1575
|
-
names: Object.getOwnPropertyNames,
|
|
1576
|
-
getPrototypeOf: Object.getPrototypeOf,
|
|
1577
|
-
isArray: Array.isArray,
|
|
1578
|
-
isES5: r,
|
|
1579
|
-
propertyIsWritable(t, e) {
|
|
1580
|
-
var n = Object.getOwnPropertyDescriptor(t, e);
|
|
1581
|
-
return !(n && !n.writable && !n.set);
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
else {
|
|
1585
|
-
var i = {}.hasOwnProperty,
|
|
1586
|
-
o = {}.toString,
|
|
1587
|
-
s = {}.constructor.prototype,
|
|
1588
|
-
a = function (t) {
|
|
1589
|
-
var e = [];
|
|
1590
|
-
for (var n in t) i.call(t, n) && e.push(n);
|
|
1591
|
-
return e;
|
|
1592
|
-
},
|
|
1593
|
-
c = function (t, e) {
|
|
1594
|
-
return { value: t[e] };
|
|
1595
|
-
},
|
|
1596
|
-
l = function (t, e, n) {
|
|
1597
|
-
return (t[e] = n.value), t;
|
|
1598
|
-
},
|
|
1599
|
-
u = function (t) {
|
|
1600
|
-
return t;
|
|
1601
|
-
},
|
|
1602
|
-
p = function (t) {
|
|
1603
|
-
try {
|
|
1604
|
-
return Object(t).constructor.prototype;
|
|
1605
|
-
} catch (e) {
|
|
1606
|
-
return s;
|
|
1607
|
-
}
|
|
1608
|
-
},
|
|
1609
|
-
h = function (t) {
|
|
1610
|
-
try {
|
|
1611
|
-
return "[object Array]" === o.call(t);
|
|
1612
|
-
} catch (e) {
|
|
1613
|
-
return !1;
|
|
1614
|
-
}
|
|
1615
|
-
};
|
|
1616
|
-
e.exports = {
|
|
1617
|
-
isArray: h,
|
|
1618
|
-
keys: a,
|
|
1619
|
-
names: a,
|
|
1620
|
-
defineProperty: l,
|
|
1621
|
-
getDescriptor: c,
|
|
1622
|
-
freeze: u,
|
|
1623
|
-
getPrototypeOf: p,
|
|
1624
|
-
isES5: r,
|
|
1625
|
-
propertyIsWritable() {
|
|
1626
|
-
return !0;
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
},
|
|
1631
|
-
{}
|
|
1632
|
-
],
|
|
1633
|
-
|
|
1634
|
-
14: [
|
|
1635
|
-
function (t, e, n) {
|
|
1636
|
-
"use strict";
|
|
1637
|
-
e.exports = function (t, e) {
|
|
1638
|
-
var n = t.map;
|
|
1639
|
-
(t.prototype.filter = function (t, r) {
|
|
1640
|
-
return n(this, t, r, e);
|
|
1641
|
-
}),
|
|
1642
|
-
(t.filter = function (t, r, i) {
|
|
1643
|
-
return n(t, r, i, e);
|
|
1644
|
-
});
|
|
1645
|
-
};
|
|
1646
|
-
},
|
|
1647
|
-
{}
|
|
1648
|
-
],
|
|
1649
|
-
|
|
1650
|
-
15: [
|
|
1651
|
-
function (t, e, n) {
|
|
1652
|
-
"use strict";
|
|
1653
|
-
e.exports = function (e, n, r) {
|
|
1654
|
-
function i(t, e, n) {
|
|
1655
|
-
(this.promise = t),
|
|
1656
|
-
(this.type = e),
|
|
1657
|
-
(this.handler = n),
|
|
1658
|
-
(this.called = !1),
|
|
1659
|
-
(this.cancelPromise = null);
|
|
1660
|
-
}
|
|
1661
|
-
function o(t) {
|
|
1662
|
-
this.finallyHandler = t;
|
|
1663
|
-
}
|
|
1664
|
-
function s(t, e) {
|
|
1665
|
-
return null != t.cancelPromise
|
|
1666
|
-
? (arguments.length > 1
|
|
1667
|
-
? t.cancelPromise._reject(e)
|
|
1668
|
-
: t.cancelPromise._cancel(),
|
|
1669
|
-
(t.cancelPromise = null),
|
|
1670
|
-
!0)
|
|
1671
|
-
: !1;
|
|
1672
|
-
}
|
|
1673
|
-
function a() {
|
|
1674
|
-
return l.call(this, this.promise._target()._settledValue());
|
|
1675
|
-
}
|
|
1676
|
-
function c(t) {
|
|
1677
|
-
return s(this, t) ? void 0 : ((h.e = t), h);
|
|
1678
|
-
}
|
|
1679
|
-
function l(t) {
|
|
1680
|
-
var i = this.promise,
|
|
1681
|
-
l = this.handler;
|
|
1682
|
-
if (!this.called) {
|
|
1683
|
-
this.called = !0;
|
|
1684
|
-
var u = this.isFinallyHandler()
|
|
1685
|
-
? l.call(i._boundValue())
|
|
1686
|
-
: l.call(i._boundValue(), t);
|
|
1687
|
-
if (u === r) return u;
|
|
1688
|
-
if (void 0 !== u) {
|
|
1689
|
-
i._setReturnedNonUndefined();
|
|
1690
|
-
var f = n(u, i);
|
|
1691
|
-
if (f instanceof e) {
|
|
1692
|
-
if (null != this.cancelPromise) {
|
|
1693
|
-
if (f._isCancelled()) {
|
|
1694
|
-
var _ = new p("late cancellation observer");
|
|
1695
|
-
return i._attachExtraTrace(_), (h.e = _), h;
|
|
1696
|
-
}
|
|
1697
|
-
f.isPending() &&
|
|
1698
|
-
f._attachCancellationCallback(new o(this));
|
|
1699
|
-
}
|
|
1700
|
-
return f._then(a, c, void 0, this, void 0);
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
return i.isRejected() ? (s(this), (h.e = t), h) : (s(this), t);
|
|
1705
|
-
}
|
|
1706
|
-
var u = t("./util"),
|
|
1707
|
-
p = e.CancellationError,
|
|
1708
|
-
h = u.errorObj,
|
|
1709
|
-
f = t("./catch_filter")(r);
|
|
1710
|
-
return (
|
|
1711
|
-
(i.prototype.isFinallyHandler = function () {
|
|
1712
|
-
return 0 === this.type;
|
|
1713
|
-
}),
|
|
1714
|
-
(o.prototype._resultCancelled = function () {
|
|
1715
|
-
s(this.finallyHandler);
|
|
1716
|
-
}),
|
|
1717
|
-
(e.prototype._passThrough = function (t, e, n, r) {
|
|
1718
|
-
return "function" != typeof t
|
|
1719
|
-
? this.then()
|
|
1720
|
-
: this._then(n, r, void 0, new i(this, e, t), void 0);
|
|
1721
|
-
}),
|
|
1722
|
-
(e.prototype.lastly = e.prototype["finally"] =
|
|
1723
|
-
function (t) {
|
|
1724
|
-
return this._passThrough(t, 0, l, l);
|
|
1725
|
-
}),
|
|
1726
|
-
(e.prototype.tap = function (t) {
|
|
1727
|
-
return this._passThrough(t, 1, l);
|
|
1728
|
-
}),
|
|
1729
|
-
(e.prototype.tapCatch = function (t) {
|
|
1730
|
-
var n = arguments.length;
|
|
1731
|
-
if (1 === n) return this._passThrough(t, 1, void 0, l);
|
|
1732
|
-
var r,
|
|
1733
|
-
i = new Array(n - 1),
|
|
1734
|
-
o = 0;
|
|
1735
|
-
for (r = 0; n - 1 > r; ++r) {
|
|
1736
|
-
var s = arguments[r];
|
|
1737
|
-
if (!u.isObject(s))
|
|
1738
|
-
return e.reject(
|
|
1739
|
-
new TypeError(
|
|
1740
|
-
"tapCatch statement predicate: expecting an object but got " +
|
|
1741
|
-
u.classString(s)
|
|
1742
|
-
)
|
|
1743
|
-
);
|
|
1744
|
-
|
|
1745
|
-
i[o++] = s;
|
|
1746
|
-
}
|
|
1747
|
-
i.length = o;
|
|
1748
|
-
var a = arguments[r];
|
|
1749
|
-
return this._passThrough(f(i, a, this), 1, void 0, l);
|
|
1750
|
-
}),
|
|
1751
|
-
i
|
|
1752
|
-
);
|
|
1753
|
-
};
|
|
1754
|
-
},
|
|
1755
|
-
{ "./catch_filter": 7, "./util": 36 }
|
|
1756
|
-
],
|
|
1757
|
-
|
|
1758
|
-
16: [
|
|
1759
|
-
function (t, e, n) {
|
|
1760
|
-
"use strict";
|
|
1761
|
-
e.exports = function (e, n, r, i, o, s) {
|
|
1762
|
-
function a(t, n, r) {
|
|
1763
|
-
for (var o = 0; o < n.length; ++o) {
|
|
1764
|
-
r._pushContext();
|
|
1765
|
-
var s = f(n[o])(t);
|
|
1766
|
-
if ((r._popContext(), s === h)) {
|
|
1767
|
-
r._pushContext();
|
|
1768
|
-
var a = e.reject(h.e);
|
|
1769
|
-
return r._popContext(), a;
|
|
1770
|
-
}
|
|
1771
|
-
var c = i(s, r);
|
|
1772
|
-
if (c instanceof e) return c;
|
|
1773
|
-
}
|
|
1774
|
-
return null;
|
|
1775
|
-
}
|
|
1776
|
-
function c(t, n, i, o) {
|
|
1777
|
-
if (s.cancellation()) {
|
|
1778
|
-
var a = new e(r),
|
|
1779
|
-
c = (this._finallyPromise = new e(r));
|
|
1780
|
-
(this._promise = a.lastly(function () {
|
|
1781
|
-
return c;
|
|
1782
|
-
})),
|
|
1783
|
-
a._captureStackTrace(),
|
|
1784
|
-
a._setOnCancel(this);
|
|
1785
|
-
} else {
|
|
1786
|
-
var l = (this._promise = new e(r));
|
|
1787
|
-
l._captureStackTrace();
|
|
1788
|
-
}
|
|
1789
|
-
(this._stack = o),
|
|
1790
|
-
(this._generatorFunction = t),
|
|
1791
|
-
(this._receiver = n),
|
|
1792
|
-
(this._generator = void 0),
|
|
1793
|
-
(this._yieldHandlers =
|
|
1794
|
-
"function" == typeof i ? [i].concat(_) : _),
|
|
1795
|
-
(this._yieldedPromise = null),
|
|
1796
|
-
(this._cancellationPhase = !1);
|
|
1797
|
-
}
|
|
1798
|
-
var l = t("./errors"),
|
|
1799
|
-
u = l.TypeError,
|
|
1800
|
-
p = t("./util"),
|
|
1801
|
-
h = p.errorObj,
|
|
1802
|
-
f = p.tryCatch,
|
|
1803
|
-
_ = [];
|
|
1804
|
-
p.inherits(c, o),
|
|
1805
|
-
(c.prototype._isResolved = function () {
|
|
1806
|
-
return null === this._promise;
|
|
1807
|
-
}),
|
|
1808
|
-
(c.prototype._cleanup = function () {
|
|
1809
|
-
(this._promise = this._generator = null),
|
|
1810
|
-
s.cancellation() &&
|
|
1811
|
-
null !== this._finallyPromise &&
|
|
1812
|
-
(this._finallyPromise._fulfill(),
|
|
1813
|
-
(this._finallyPromise = null));
|
|
1814
|
-
}),
|
|
1815
|
-
(c.prototype._promiseCancelled = function () {
|
|
1816
|
-
if (!this._isResolved()) {
|
|
1817
|
-
var t,
|
|
1818
|
-
n = "undefined" != typeof this._generator["return"];
|
|
1819
|
-
if (n)
|
|
1820
|
-
this._promise._pushContext(),
|
|
1821
|
-
(t = f(this._generator["return"]).call(
|
|
1822
|
-
this._generator,
|
|
1823
|
-
void 0
|
|
1824
|
-
)),
|
|
1825
|
-
this._promise._popContext();
|
|
1826
|
-
else {
|
|
1827
|
-
var r = new e.CancellationError(
|
|
1828
|
-
"generator .return() sentinel"
|
|
1829
|
-
);
|
|
1830
|
-
|
|
1831
|
-
(e.coroutine.returnSentinel = r),
|
|
1832
|
-
this._promise._attachExtraTrace(r),
|
|
1833
|
-
this._promise._pushContext(),
|
|
1834
|
-
(t = f(this._generator["throw"]).call(
|
|
1835
|
-
this._generator,
|
|
1836
|
-
r
|
|
1837
|
-
)),
|
|
1838
|
-
this._promise._popContext();
|
|
1839
|
-
}
|
|
1840
|
-
(this._cancellationPhase = !0),
|
|
1841
|
-
(this._yieldedPromise = null),
|
|
1842
|
-
this._continue(t);
|
|
1843
|
-
}
|
|
1844
|
-
}),
|
|
1845
|
-
(c.prototype._promiseFulfilled = function (t) {
|
|
1846
|
-
(this._yieldedPromise = null), this._promise._pushContext();
|
|
1847
|
-
var e = f(this._generator.next).call(this._generator, t);
|
|
1848
|
-
this._promise._popContext(), this._continue(e);
|
|
1849
|
-
}),
|
|
1850
|
-
(c.prototype._promiseRejected = function (t) {
|
|
1851
|
-
(this._yieldedPromise = null),
|
|
1852
|
-
this._promise._attachExtraTrace(t),
|
|
1853
|
-
this._promise._pushContext();
|
|
1854
|
-
var e = f(this._generator["throw"]).call(this._generator, t);
|
|
1855
|
-
this._promise._popContext(), this._continue(e);
|
|
1856
|
-
}),
|
|
1857
|
-
(c.prototype._resultCancelled = function () {
|
|
1858
|
-
if (this._yieldedPromise instanceof e) {
|
|
1859
|
-
var t = this._yieldedPromise;
|
|
1860
|
-
(this._yieldedPromise = null), t.cancel();
|
|
1861
|
-
}
|
|
1862
|
-
}),
|
|
1863
|
-
(c.prototype.promise = function () {
|
|
1864
|
-
return this._promise;
|
|
1865
|
-
}),
|
|
1866
|
-
(c.prototype._run = function () {
|
|
1867
|
-
(this._generator = this._generatorFunction.call(
|
|
1868
|
-
this._receiver
|
|
1869
|
-
)),
|
|
1870
|
-
(this._receiver = this._generatorFunction = void 0),
|
|
1871
|
-
this._promiseFulfilled(void 0);
|
|
1872
|
-
}),
|
|
1873
|
-
(c.prototype._continue = function (t) {
|
|
1874
|
-
var n = this._promise;
|
|
1875
|
-
if (t === h)
|
|
1876
|
-
return (
|
|
1877
|
-
this._cleanup(),
|
|
1878
|
-
this._cancellationPhase
|
|
1879
|
-
? n.cancel()
|
|
1880
|
-
: n._rejectCallback(t.e, !1)
|
|
1881
|
-
);
|
|
1882
|
-
|
|
1883
|
-
var r = t.value;
|
|
1884
|
-
if (t.done === !0)
|
|
1885
|
-
return (
|
|
1886
|
-
this._cleanup(),
|
|
1887
|
-
this._cancellationPhase ? n.cancel() : n._resolveCallback(r)
|
|
1888
|
-
);
|
|
1889
|
-
|
|
1890
|
-
var o = i(r, this._promise);
|
|
1891
|
-
if (
|
|
1892
|
-
!(o instanceof e) &&
|
|
1893
|
-
((o = a(o, this._yieldHandlers, this._promise)), null === o)
|
|
1894
|
-
)
|
|
1895
|
-
return void this._promiseRejected(
|
|
1896
|
-
new u(
|
|
1897
|
-
"A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace(
|
|
1898
|
-
"%s",
|
|
1899
|
-
String(r)
|
|
1900
|
-
) +
|
|
1901
|
-
"From coroutine:\n" +
|
|
1902
|
-
this._stack.split("\n").slice(1, -7).join("\n")
|
|
1903
|
-
)
|
|
1904
|
-
);
|
|
1905
|
-
|
|
1906
|
-
o = o._target();
|
|
1907
|
-
var s = o._bitField;
|
|
1908
|
-
0 === (50397184 & s)
|
|
1909
|
-
? ((this._yieldedPromise = o), o._proxy(this, null))
|
|
1910
|
-
: 0 !== (33554432 & s)
|
|
1911
|
-
? e._async.invoke(this._promiseFulfilled, this, o._value())
|
|
1912
|
-
: 0 !== (16777216 & s)
|
|
1913
|
-
? e._async.invoke(this._promiseRejected, this, o._reason())
|
|
1914
|
-
: this._promiseCancelled();
|
|
1915
|
-
}),
|
|
1916
|
-
(e.coroutine = function (t, e) {
|
|
1917
|
-
if ("function" != typeof t)
|
|
1918
|
-
throw new u(
|
|
1919
|
-
"generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n"
|
|
1920
|
-
);
|
|
1921
|
-
|
|
1922
|
-
var n = Object(e).yieldHandler,
|
|
1923
|
-
r = c,
|
|
1924
|
-
i = new Error().stack;
|
|
1925
|
-
return function () {
|
|
1926
|
-
var e = t.apply(this, arguments),
|
|
1927
|
-
o = new r(void 0, void 0, n, i),
|
|
1928
|
-
s = o.promise();
|
|
1929
|
-
return (o._generator = e), o._promiseFulfilled(void 0), s;
|
|
1930
|
-
};
|
|
1931
|
-
}),
|
|
1932
|
-
(e.coroutine.addYieldHandler = function (t) {
|
|
1933
|
-
if ("function" != typeof t)
|
|
1934
|
-
throw new u(
|
|
1935
|
-
"expecting a function but got " + p.classString(t)
|
|
1936
|
-
);
|
|
1937
|
-
|
|
1938
|
-
_.push(t);
|
|
1939
|
-
}),
|
|
1940
|
-
(e.spawn = function (t) {
|
|
1941
|
-
if (
|
|
1942
|
-
(s.deprecated("Promise.spawn()", "Promise.coroutine()"),
|
|
1943
|
-
"function" != typeof t)
|
|
1944
|
-
)
|
|
1945
|
-
return n(
|
|
1946
|
-
"generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n"
|
|
1947
|
-
);
|
|
1948
|
-
|
|
1949
|
-
var r = new c(t, this),
|
|
1950
|
-
i = r.promise();
|
|
1951
|
-
return r._run(e.spawn), i;
|
|
1952
|
-
});
|
|
1953
|
-
};
|
|
1954
|
-
},
|
|
1955
|
-
{ "./errors": 12, "./util": 36 }
|
|
1956
|
-
],
|
|
1957
|
-
|
|
1958
|
-
17: [
|
|
1959
|
-
function (t, e, n) {
|
|
1960
|
-
"use strict";
|
|
1961
|
-
e.exports = function (e, n, r, i, o, s) {
|
|
1962
|
-
var a = t("./util");
|
|
1963
|
-
a.canEvaluate, a.tryCatch, a.errorObj;
|
|
1964
|
-
e.join = function () {
|
|
1965
|
-
var t,
|
|
1966
|
-
e = arguments.length - 1;
|
|
1967
|
-
if (e > 0 && "function" == typeof arguments[e]) {
|
|
1968
|
-
t = arguments[e];
|
|
1969
|
-
var r;
|
|
1970
|
-
}
|
|
1971
|
-
var i = [].slice.call(arguments);
|
|
1972
|
-
t && i.pop();
|
|
1973
|
-
var r = new n(i).promise();
|
|
1974
|
-
return void 0 !== t ? r.spread(t) : r;
|
|
1975
|
-
};
|
|
1976
|
-
};
|
|
1977
|
-
},
|
|
1978
|
-
{ "./util": 36 }
|
|
1979
|
-
],
|
|
1980
|
-
|
|
1981
|
-
18: [
|
|
1982
|
-
function (t, e, n) {
|
|
1983
|
-
"use strict";
|
|
1984
|
-
e.exports = function (e, n, r, i, o, s) {
|
|
1985
|
-
function a(t, e, n, r) {
|
|
1986
|
-
this.constructor$(t), this._promise._captureStackTrace();
|
|
1987
|
-
var i = l();
|
|
1988
|
-
(this._callback = null === i ? e : u.domainBind(i, e)),
|
|
1989
|
-
(this._preservedValues =
|
|
1990
|
-
r === o ? new Array(this.length()) : null),
|
|
1991
|
-
(this._limit = n),
|
|
1992
|
-
(this._inFlight = 0),
|
|
1993
|
-
(this._queue = []),
|
|
1994
|
-
f.invoke(this._asyncInit, this, void 0);
|
|
1995
|
-
}
|
|
1996
|
-
function c(t, n, i, o) {
|
|
1997
|
-
if ("function" != typeof n)
|
|
1998
|
-
return r("expecting a function but got " + u.classString(n));
|
|
1999
|
-
var s = 0;
|
|
2000
|
-
if (void 0 !== i) {
|
|
2001
|
-
if ("object" != typeof i || null === i)
|
|
2002
|
-
return e.reject(
|
|
2003
|
-
new TypeError(
|
|
2004
|
-
"options argument must be an object but it is " +
|
|
2005
|
-
u.classString(i)
|
|
2006
|
-
)
|
|
2007
|
-
);
|
|
2008
|
-
|
|
2009
|
-
if ("number" != typeof i.concurrency)
|
|
2010
|
-
return e.reject(
|
|
2011
|
-
new TypeError(
|
|
2012
|
-
"'concurrency' must be a number but it is " +
|
|
2013
|
-
u.classString(i.concurrency)
|
|
2014
|
-
)
|
|
2015
|
-
);
|
|
2016
|
-
|
|
2017
|
-
s = i.concurrency;
|
|
2018
|
-
}
|
|
2019
|
-
return (
|
|
2020
|
-
(s = "number" == typeof s && isFinite(s) && s >= 1 ? s : 0),
|
|
2021
|
-
new a(t, n, s, o).promise()
|
|
2022
|
-
);
|
|
2023
|
-
}
|
|
2024
|
-
var l = e._getDomain,
|
|
2025
|
-
u = t("./util"),
|
|
2026
|
-
p = u.tryCatch,
|
|
2027
|
-
h = u.errorObj,
|
|
2028
|
-
f = e._async;
|
|
2029
|
-
u.inherits(a, n),
|
|
2030
|
-
(a.prototype._asyncInit = function () {
|
|
2031
|
-
this._init$(void 0, -2);
|
|
2032
|
-
}),
|
|
2033
|
-
(a.prototype._init = function () {}),
|
|
2034
|
-
(a.prototype._promiseFulfilled = function (t, n) {
|
|
2035
|
-
var r = this._values,
|
|
2036
|
-
o = this.length(),
|
|
2037
|
-
a = this._preservedValues,
|
|
2038
|
-
c = this._limit;
|
|
2039
|
-
if (0 > n) {
|
|
2040
|
-
if (
|
|
2041
|
-
((n = -1 * n - 1),
|
|
2042
|
-
(r[n] = t),
|
|
2043
|
-
c >= 1 &&
|
|
2044
|
-
(this._inFlight--,
|
|
2045
|
-
this._drainQueue(),
|
|
2046
|
-
this._isResolved()))
|
|
2047
|
-
)
|
|
2048
|
-
return !0;
|
|
2049
|
-
} else {
|
|
2050
|
-
if (c >= 1 && this._inFlight >= c)
|
|
2051
|
-
return (r[n] = t), this._queue.push(n), !1;
|
|
2052
|
-
null !== a && (a[n] = t);
|
|
2053
|
-
var l = this._promise,
|
|
2054
|
-
u = this._callback,
|
|
2055
|
-
f = l._boundValue();
|
|
2056
|
-
l._pushContext();
|
|
2057
|
-
var _ = p(u).call(f, t, n, o),
|
|
2058
|
-
d = l._popContext();
|
|
2059
|
-
if (
|
|
2060
|
-
(s.checkForgottenReturns(
|
|
2061
|
-
_,
|
|
2062
|
-
d,
|
|
2063
|
-
null !== a ? "Promise.filter" : "Promise.map",
|
|
2064
|
-
l
|
|
2065
|
-
),
|
|
2066
|
-
_ === h)
|
|
2067
|
-
)
|
|
2068
|
-
return this._reject(_.e), !0;
|
|
2069
|
-
var v = i(_, this._promise);
|
|
2070
|
-
if (v instanceof e) {
|
|
2071
|
-
v = v._target();
|
|
2072
|
-
var y = v._bitField;
|
|
2073
|
-
if (0 === (50397184 & y))
|
|
2074
|
-
return (
|
|
2075
|
-
c >= 1 && this._inFlight++,
|
|
2076
|
-
(r[n] = v),
|
|
2077
|
-
v._proxy(this, -1 * (n + 1)),
|
|
2078
|
-
!1
|
|
2079
|
-
);
|
|
2080
|
-
|
|
2081
|
-
if (0 === (33554432 & y))
|
|
2082
|
-
return 0 !== (16777216 & y)
|
|
2083
|
-
? (this._reject(v._reason()), !0)
|
|
2084
|
-
: (this._cancel(), !0);
|
|
2085
|
-
_ = v._value();
|
|
2086
|
-
}
|
|
2087
|
-
r[n] = _;
|
|
2088
|
-
}
|
|
2089
|
-
var m = ++this._totalResolved;
|
|
2090
|
-
return m >= o
|
|
2091
|
-
? (null !== a ? this._filter(r, a) : this._resolve(r), !0)
|
|
2092
|
-
: !1;
|
|
2093
|
-
}),
|
|
2094
|
-
(a.prototype._drainQueue = function () {
|
|
2095
|
-
for (
|
|
2096
|
-
var t = this._queue, e = this._limit, n = this._values;
|
|
2097
|
-
t.length > 0 && this._inFlight < e;
|
|
2098
|
-
|
|
2099
|
-
) {
|
|
2100
|
-
if (this._isResolved()) return;
|
|
2101
|
-
var r = t.pop();
|
|
2102
|
-
this._promiseFulfilled(n[r], r);
|
|
2103
|
-
}
|
|
2104
|
-
}),
|
|
2105
|
-
(a.prototype._filter = function (t, e) {
|
|
2106
|
-
for (
|
|
2107
|
-
var n = e.length, r = new Array(n), i = 0, o = 0;
|
|
2108
|
-
n > o;
|
|
2109
|
-
++o
|
|
2110
|
-
)
|
|
2111
|
-
t[o] && (r[i++] = e[o]);
|
|
2112
|
-
(r.length = i), this._resolve(r);
|
|
2113
|
-
}),
|
|
2114
|
-
(a.prototype.preservedValues = function () {
|
|
2115
|
-
return this._preservedValues;
|
|
2116
|
-
}),
|
|
2117
|
-
(e.prototype.map = function (t, e) {
|
|
2118
|
-
return c(this, t, e, null);
|
|
2119
|
-
}),
|
|
2120
|
-
(e.map = function (t, e, n, r) {
|
|
2121
|
-
return c(t, e, n, r);
|
|
2122
|
-
});
|
|
2123
|
-
};
|
|
2124
|
-
},
|
|
2125
|
-
{ "./util": 36 }
|
|
2126
|
-
],
|
|
2127
|
-
|
|
2128
|
-
19: [
|
|
2129
|
-
function (t, e, n) {
|
|
2130
|
-
"use strict";
|
|
2131
|
-
e.exports = function (e, n, r, i, o) {
|
|
2132
|
-
var s = t("./util"),
|
|
2133
|
-
a = s.tryCatch;
|
|
2134
|
-
(e.method = function (t) {
|
|
2135
|
-
if ("function" != typeof t)
|
|
2136
|
-
throw new e.TypeError(
|
|
2137
|
-
"expecting a function but got " + s.classString(t)
|
|
2138
|
-
);
|
|
2139
|
-
|
|
2140
|
-
return function () {
|
|
2141
|
-
var r = new e(n);
|
|
2142
|
-
r._captureStackTrace(), r._pushContext();
|
|
2143
|
-
var i = a(t).apply(this, arguments),
|
|
2144
|
-
s = r._popContext();
|
|
2145
|
-
return (
|
|
2146
|
-
o.checkForgottenReturns(i, s, "Promise.method", r),
|
|
2147
|
-
r._resolveFromSyncValue(i),
|
|
2148
|
-
r
|
|
2149
|
-
);
|
|
2150
|
-
};
|
|
2151
|
-
}),
|
|
2152
|
-
(e.attempt = e["try"] =
|
|
2153
|
-
function (t) {
|
|
2154
|
-
if ("function" != typeof t)
|
|
2155
|
-
return i(
|
|
2156
|
-
"expecting a function but got " + s.classString(t)
|
|
2157
|
-
);
|
|
2158
|
-
|
|
2159
|
-
var r = new e(n);
|
|
2160
|
-
r._captureStackTrace(), r._pushContext();
|
|
2161
|
-
var c;
|
|
2162
|
-
if (arguments.length > 1) {
|
|
2163
|
-
o.deprecated(
|
|
2164
|
-
"calling Promise.try with more than 1 argument"
|
|
2165
|
-
);
|
|
2166
|
-
|
|
2167
|
-
var l = arguments[1],
|
|
2168
|
-
u = arguments[2];
|
|
2169
|
-
c = s.isArray(l) ? a(t).apply(u, l) : a(t).call(u, l);
|
|
2170
|
-
} else c = a(t)();
|
|
2171
|
-
var p = r._popContext();
|
|
2172
|
-
return (
|
|
2173
|
-
o.checkForgottenReturns(c, p, "Promise.try", r),
|
|
2174
|
-
r._resolveFromSyncValue(c),
|
|
2175
|
-
r
|
|
2176
|
-
);
|
|
2177
|
-
}),
|
|
2178
|
-
(e.prototype._resolveFromSyncValue = function (t) {
|
|
2179
|
-
t === s.errorObj
|
|
2180
|
-
? this._rejectCallback(t.e, !1)
|
|
2181
|
-
: this._resolveCallback(t, !0);
|
|
2182
|
-
});
|
|
2183
|
-
};
|
|
2184
|
-
},
|
|
2185
|
-
{ "./util": 36 }
|
|
2186
|
-
],
|
|
2187
|
-
|
|
2188
|
-
20: [
|
|
2189
|
-
function (t, e, n) {
|
|
2190
|
-
"use strict";
|
|
2191
|
-
function r(t) {
|
|
2192
|
-
return (
|
|
2193
|
-
t instanceof Error && u.getPrototypeOf(t) === Error.prototype
|
|
2194
|
-
);
|
|
2195
|
-
}
|
|
2196
|
-
function i(t) {
|
|
2197
|
-
var e;
|
|
2198
|
-
if (r(t)) {
|
|
2199
|
-
(e = new l(t)),
|
|
2200
|
-
(e.name = t.name),
|
|
2201
|
-
(e.message = t.message),
|
|
2202
|
-
(e.stack = t.stack);
|
|
2203
|
-
for (var n = u.keys(t), i = 0; i < n.length; ++i) {
|
|
2204
|
-
var o = n[i];
|
|
2205
|
-
p.test(o) || (e[o] = t[o]);
|
|
2206
|
-
}
|
|
2207
|
-
return e;
|
|
2208
|
-
}
|
|
2209
|
-
return s.markAsOriginatingFromRejection(t), t;
|
|
2210
|
-
}
|
|
2211
|
-
function o(t, e) {
|
|
2212
|
-
return function (n, r) {
|
|
2213
|
-
if (null !== t) {
|
|
2214
|
-
if (n) {
|
|
2215
|
-
var o = i(a(n));
|
|
2216
|
-
t._attachExtraTrace(o), t._reject(o);
|
|
2217
|
-
} else if (e) {
|
|
2218
|
-
var s = [].slice.call(arguments, 1);
|
|
2219
|
-
t._fulfill(s);
|
|
2220
|
-
} else t._fulfill(r);
|
|
2221
|
-
t = null;
|
|
2222
|
-
}
|
|
2223
|
-
};
|
|
2224
|
-
}
|
|
2225
|
-
var s = t("./util"),
|
|
2226
|
-
a = s.maybeWrapAsError,
|
|
2227
|
-
c = t("./errors"),
|
|
2228
|
-
l = c.OperationalError,
|
|
2229
|
-
u = t("./es5"),
|
|
2230
|
-
p = /^(?:name|message|stack|cause)$/;
|
|
2231
|
-
e.exports = o;
|
|
2232
|
-
},
|
|
2233
|
-
{ "./errors": 12, "./es5": 13, "./util": 36 }
|
|
2234
|
-
],
|
|
2235
|
-
|
|
2236
|
-
21: [
|
|
2237
|
-
function (t, e, n) {
|
|
2238
|
-
"use strict";
|
|
2239
|
-
e.exports = function (e) {
|
|
2240
|
-
function n(t, e) {
|
|
2241
|
-
var n = this;
|
|
2242
|
-
if (!o.isArray(t)) return r.call(n, t, e);
|
|
2243
|
-
var i = a(e).apply(n._boundValue(), [null].concat(t));
|
|
2244
|
-
i === c && s.throwLater(i.e);
|
|
2245
|
-
}
|
|
2246
|
-
function r(t, e) {
|
|
2247
|
-
var n = this,
|
|
2248
|
-
r = n._boundValue(),
|
|
2249
|
-
i = void 0 === t ? a(e).call(r, null) : a(e).call(r, null, t);
|
|
2250
|
-
i === c && s.throwLater(i.e);
|
|
2251
|
-
}
|
|
2252
|
-
function i(t, e) {
|
|
2253
|
-
var n = this;
|
|
2254
|
-
if (!t) {
|
|
2255
|
-
var r = new Error(t + "");
|
|
2256
|
-
(r.cause = t), (t = r);
|
|
2257
|
-
}
|
|
2258
|
-
var i = a(e).call(n._boundValue(), t);
|
|
2259
|
-
i === c && s.throwLater(i.e);
|
|
2260
|
-
}
|
|
2261
|
-
var o = t("./util"),
|
|
2262
|
-
s = e._async,
|
|
2263
|
-
a = o.tryCatch,
|
|
2264
|
-
c = o.errorObj;
|
|
2265
|
-
e.prototype.asCallback = e.prototype.nodeify = function (t, e) {
|
|
2266
|
-
if ("function" == typeof t) {
|
|
2267
|
-
var o = r;
|
|
2268
|
-
void 0 !== e && Object(e).spread && (o = n),
|
|
2269
|
-
this._then(o, i, void 0, this, t);
|
|
2270
|
-
}
|
|
2271
|
-
return this;
|
|
2272
|
-
};
|
|
2273
|
-
};
|
|
2274
|
-
},
|
|
2275
|
-
{ "./util": 36 }
|
|
2276
|
-
],
|
|
2277
|
-
|
|
2278
|
-
22: [
|
|
2279
|
-
function (t, e, n) {
|
|
2280
|
-
"use strict";
|
|
2281
|
-
e.exports = function () {
|
|
2282
|
-
function n() {}
|
|
2283
|
-
function r(t, e) {
|
|
2284
|
-
if (null == t || t.constructor !== i)
|
|
2285
|
-
throw new m(
|
|
2286
|
-
"the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n"
|
|
2287
|
-
);
|
|
2288
|
-
|
|
2289
|
-
if ("function" != typeof e)
|
|
2290
|
-
throw new m("expecting a function but got " + f.classString(e));
|
|
2291
|
-
}
|
|
2292
|
-
function i(t) {
|
|
2293
|
-
t !== b && r(this, t),
|
|
2294
|
-
(this._bitField = 0),
|
|
2295
|
-
(this._fulfillmentHandler0 = void 0),
|
|
2296
|
-
(this._rejectionHandler0 = void 0),
|
|
2297
|
-
(this._promise0 = void 0),
|
|
2298
|
-
(this._receiver0 = void 0),
|
|
2299
|
-
this._resolveFromExecutor(t),
|
|
2300
|
-
this._promiseCreated(),
|
|
2301
|
-
this._fireEvent("promiseCreated", this);
|
|
2302
|
-
}
|
|
2303
|
-
function o(t) {
|
|
2304
|
-
this.promise._resolveCallback(t);
|
|
2305
|
-
}
|
|
2306
|
-
function s(t) {
|
|
2307
|
-
this.promise._rejectCallback(t, !1);
|
|
2308
|
-
}
|
|
2309
|
-
function a(t) {
|
|
2310
|
-
var e = new i(b);
|
|
2311
|
-
(e._fulfillmentHandler0 = t),
|
|
2312
|
-
(e._rejectionHandler0 = t),
|
|
2313
|
-
(e._promise0 = t),
|
|
2314
|
-
(e._receiver0 = t);
|
|
2315
|
-
}
|
|
2316
|
-
var c,
|
|
2317
|
-
l = function () {
|
|
2318
|
-
return new m(
|
|
2319
|
-
"circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n"
|
|
2320
|
-
);
|
|
2321
|
-
},
|
|
2322
|
-
u = function () {
|
|
2323
|
-
return new i.PromiseInspection(this._target());
|
|
2324
|
-
},
|
|
2325
|
-
p = function (t) {
|
|
2326
|
-
return i.reject(new m(t));
|
|
2327
|
-
},
|
|
2328
|
-
h = {},
|
|
2329
|
-
f = t("./util");
|
|
2330
|
-
(c = f.isNode
|
|
2331
|
-
? function () {
|
|
2332
|
-
var t = process.domain;
|
|
2333
|
-
return void 0 === t && (t = null), t;
|
|
2334
|
-
}
|
|
2335
|
-
: function () {
|
|
2336
|
-
return null;
|
|
2337
|
-
}),
|
|
2338
|
-
f.notEnumerableProp(i, "_getDomain", c);
|
|
2339
|
-
var _ = t("./es5"),
|
|
2340
|
-
d = t("./async"),
|
|
2341
|
-
v = new d();
|
|
2342
|
-
_.defineProperty(i, "_async", { value: v });
|
|
2343
|
-
var y = t("./errors"),
|
|
2344
|
-
m = (i.TypeError = y.TypeError);
|
|
2345
|
-
i.RangeError = y.RangeError;
|
|
2346
|
-
var g = (i.CancellationError = y.CancellationError);
|
|
2347
|
-
(i.TimeoutError = y.TimeoutError),
|
|
2348
|
-
(i.OperationalError = y.OperationalError),
|
|
2349
|
-
(i.RejectionError = y.OperationalError),
|
|
2350
|
-
(i.AggregateError = y.AggregateError);
|
|
2351
|
-
var b = function () {},
|
|
2352
|
-
w = {},
|
|
2353
|
-
C = {},
|
|
2354
|
-
j = t("./thenables")(i, b),
|
|
2355
|
-
E = t("./promise_array")(i, b, j, p, n),
|
|
2356
|
-
k = t("./context")(i),
|
|
2357
|
-
F = k.create,
|
|
2358
|
-
T = t("./debuggability")(i, k),
|
|
2359
|
-
x = (T.CapturedTrace, t("./finally")(i, j, C)),
|
|
2360
|
-
P = t("./catch_filter")(C),
|
|
2361
|
-
S = t("./nodeback"),
|
|
2362
|
-
R = f.errorObj,
|
|
2363
|
-
O = f.tryCatch;
|
|
2364
|
-
return (
|
|
2365
|
-
(i.prototype.toString = function () {
|
|
2366
|
-
return "[object Promise]";
|
|
2367
|
-
}),
|
|
2368
|
-
(i.prototype.caught = i.prototype["catch"] =
|
|
2369
|
-
function (t) {
|
|
2370
|
-
var e = arguments.length;
|
|
2371
|
-
if (e > 1) {
|
|
2372
|
-
var n,
|
|
2373
|
-
r = new Array(e - 1),
|
|
2374
|
-
i = 0;
|
|
2375
|
-
for (n = 0; e - 1 > n; ++n) {
|
|
2376
|
-
var o = arguments[n];
|
|
2377
|
-
if (!f.isObject(o))
|
|
2378
|
-
return p(
|
|
2379
|
-
"Catch statement predicate: expecting an object but got " +
|
|
2380
|
-
f.classString(o)
|
|
2381
|
-
);
|
|
2382
|
-
|
|
2383
|
-
r[i++] = o;
|
|
2384
|
-
}
|
|
2385
|
-
if (
|
|
2386
|
-
((r.length = i),
|
|
2387
|
-
(t = arguments[n]),
|
|
2388
|
-
"function" != typeof t)
|
|
2389
|
-
)
|
|
2390
|
-
throw new m(
|
|
2391
|
-
"The last argument to .catch() must be a function, got " +
|
|
2392
|
-
f.toString(t)
|
|
2393
|
-
);
|
|
2394
|
-
|
|
2395
|
-
return this.then(void 0, P(r, t, this));
|
|
2396
|
-
}
|
|
2397
|
-
return this.then(void 0, t);
|
|
2398
|
-
}),
|
|
2399
|
-
(i.prototype.reflect = function () {
|
|
2400
|
-
return this._then(u, u, void 0, this, void 0);
|
|
2401
|
-
}),
|
|
2402
|
-
(i.prototype.then = function (t, e) {
|
|
2403
|
-
if (
|
|
2404
|
-
T.warnings() &&
|
|
2405
|
-
arguments.length > 0 &&
|
|
2406
|
-
"function" != typeof t &&
|
|
2407
|
-
"function" != typeof e
|
|
2408
|
-
) {
|
|
2409
|
-
var n =
|
|
2410
|
-
".then() only accepts functions but was passed: " +
|
|
2411
|
-
f.classString(t);
|
|
2412
|
-
arguments.length > 1 && (n += ", " + f.classString(e)),
|
|
2413
|
-
this._warn(n);
|
|
2414
|
-
}
|
|
2415
|
-
return this._then(t, e, void 0, void 0, void 0);
|
|
2416
|
-
}),
|
|
2417
|
-
(i.prototype.done = function (t, e) {
|
|
2418
|
-
var n = this._then(t, e, void 0, void 0, void 0);
|
|
2419
|
-
n._setIsFinal();
|
|
2420
|
-
}),
|
|
2421
|
-
(i.prototype.spread = function (t) {
|
|
2422
|
-
return "function" != typeof t
|
|
2423
|
-
? p("expecting a function but got " + f.classString(t))
|
|
2424
|
-
: this.all()._then(t, void 0, void 0, w, void 0);
|
|
2425
|
-
}),
|
|
2426
|
-
(i.prototype.toJSON = function () {
|
|
2427
|
-
var t = {
|
|
2428
|
-
isFulfilled: !1,
|
|
2429
|
-
isRejected: !1,
|
|
2430
|
-
fulfillmentValue: void 0,
|
|
2431
|
-
rejectionReason: void 0
|
|
2432
|
-
};
|
|
2433
|
-
|
|
2434
|
-
return (
|
|
2435
|
-
this.isFulfilled()
|
|
2436
|
-
? ((t.fulfillmentValue = this.value()),
|
|
2437
|
-
(t.isFulfilled = !0))
|
|
2438
|
-
: this.isRejected() &&
|
|
2439
|
-
((t.rejectionReason = this.reason()),
|
|
2440
|
-
(t.isRejected = !0)),
|
|
2441
|
-
t
|
|
2442
|
-
);
|
|
2443
|
-
}),
|
|
2444
|
-
(i.prototype.all = function () {
|
|
2445
|
-
return (
|
|
2446
|
-
arguments.length > 0 &&
|
|
2447
|
-
this._warn(
|
|
2448
|
-
".all() was passed arguments but it does not take any"
|
|
2449
|
-
),
|
|
2450
|
-
new E(this).promise()
|
|
2451
|
-
);
|
|
2452
|
-
}),
|
|
2453
|
-
(i.prototype.error = function (t) {
|
|
2454
|
-
return this.caught(f.originatesFromRejection, t);
|
|
2455
|
-
}),
|
|
2456
|
-
(i.getNewLibraryCopy = e.exports),
|
|
2457
|
-
(i.is = function (t) {
|
|
2458
|
-
return t instanceof i;
|
|
2459
|
-
}),
|
|
2460
|
-
(i.fromNode = i.fromCallback =
|
|
2461
|
-
function (t) {
|
|
2462
|
-
var e = new i(b);
|
|
2463
|
-
e._captureStackTrace();
|
|
2464
|
-
var n =
|
|
2465
|
-
arguments.length > 1
|
|
2466
|
-
? !!Object(arguments[1]).multiArgs
|
|
2467
|
-
: !1,
|
|
2468
|
-
r = O(t)(S(e, n));
|
|
2469
|
-
return (
|
|
2470
|
-
r === R && e._rejectCallback(r.e, !0),
|
|
2471
|
-
e._isFateSealed() || e._setAsyncGuaranteed(),
|
|
2472
|
-
e
|
|
2473
|
-
);
|
|
2474
|
-
}),
|
|
2475
|
-
(i.all = function (t) {
|
|
2476
|
-
return new E(t).promise();
|
|
2477
|
-
}),
|
|
2478
|
-
(i.cast = function (t) {
|
|
2479
|
-
var e = j(t);
|
|
2480
|
-
return (
|
|
2481
|
-
e instanceof i ||
|
|
2482
|
-
((e = new i(b)),
|
|
2483
|
-
e._captureStackTrace(),
|
|
2484
|
-
e._setFulfilled(),
|
|
2485
|
-
(e._rejectionHandler0 = t)),
|
|
2486
|
-
e
|
|
2487
|
-
);
|
|
2488
|
-
}),
|
|
2489
|
-
(i.resolve = i.fulfilled = i.cast),
|
|
2490
|
-
(i.reject = i.rejected =
|
|
2491
|
-
function (t) {
|
|
2492
|
-
var e = new i(b);
|
|
2493
|
-
return e._captureStackTrace(), e._rejectCallback(t, !0), e;
|
|
2494
|
-
}),
|
|
2495
|
-
(i.setScheduler = function (t) {
|
|
2496
|
-
if ("function" != typeof t)
|
|
2497
|
-
throw new m(
|
|
2498
|
-
"expecting a function but got " + f.classString(t)
|
|
2499
|
-
);
|
|
2500
|
-
|
|
2501
|
-
return v.setScheduler(t);
|
|
2502
|
-
}),
|
|
2503
|
-
(i.prototype._then = function (t, e, n, r, o) {
|
|
2504
|
-
var s = void 0 !== o,
|
|
2505
|
-
a = s ? o : new i(b),
|
|
2506
|
-
l = this._target(),
|
|
2507
|
-
u = l._bitField;
|
|
2508
|
-
s ||
|
|
2509
|
-
(a._propagateFrom(this, 3),
|
|
2510
|
-
a._captureStackTrace(),
|
|
2511
|
-
void 0 === r &&
|
|
2512
|
-
0 !== (2097152 & this._bitField) &&
|
|
2513
|
-
(r =
|
|
2514
|
-
0 !== (50397184 & u)
|
|
2515
|
-
? this._boundValue()
|
|
2516
|
-
: l === this
|
|
2517
|
-
? void 0
|
|
2518
|
-
: this._boundTo),
|
|
2519
|
-
this._fireEvent("promiseChained", this, a));
|
|
2520
|
-
var p = c();
|
|
2521
|
-
if (0 !== (50397184 & u)) {
|
|
2522
|
-
var h,
|
|
2523
|
-
_,
|
|
2524
|
-
d = l._settlePromiseCtx;
|
|
2525
|
-
0 !== (33554432 & u)
|
|
2526
|
-
? ((_ = l._rejectionHandler0), (h = t))
|
|
2527
|
-
: 0 !== (16777216 & u)
|
|
2528
|
-
? ((_ = l._fulfillmentHandler0),
|
|
2529
|
-
(h = e),
|
|
2530
|
-
l._unsetRejectionIsUnhandled())
|
|
2531
|
-
: ((d = l._settlePromiseLateCancellationObserver),
|
|
2532
|
-
(_ = new g("late cancellation observer")),
|
|
2533
|
-
l._attachExtraTrace(_),
|
|
2534
|
-
(h = e)),
|
|
2535
|
-
v.invoke(d, l, {
|
|
2536
|
-
handler:
|
|
2537
|
-
null === p
|
|
2538
|
-
? h
|
|
2539
|
-
: "function" == typeof h && f.domainBind(p, h),
|
|
2540
|
-
promise: a,
|
|
2541
|
-
receiver: r,
|
|
2542
|
-
value: _
|
|
2543
|
-
});
|
|
2544
|
-
} else l._addCallbacks(t, e, a, r, p);
|
|
2545
|
-
return a;
|
|
2546
|
-
}),
|
|
2547
|
-
(i.prototype._length = function () {
|
|
2548
|
-
return 65535 & this._bitField;
|
|
2549
|
-
}),
|
|
2550
|
-
(i.prototype._isFateSealed = function () {
|
|
2551
|
-
return 0 !== (117506048 & this._bitField);
|
|
2552
|
-
}),
|
|
2553
|
-
(i.prototype._isFollowing = function () {
|
|
2554
|
-
return 67108864 === (67108864 & this._bitField);
|
|
2555
|
-
}),
|
|
2556
|
-
(i.prototype._setLength = function (t) {
|
|
2557
|
-
this._bitField = (-65536 & this._bitField) | (65535 & t);
|
|
2558
|
-
}),
|
|
2559
|
-
(i.prototype._setFulfilled = function () {
|
|
2560
|
-
(this._bitField = 33554432 | this._bitField),
|
|
2561
|
-
this._fireEvent("promiseFulfilled", this);
|
|
2562
|
-
}),
|
|
2563
|
-
(i.prototype._setRejected = function () {
|
|
2564
|
-
(this._bitField = 16777216 | this._bitField),
|
|
2565
|
-
this._fireEvent("promiseRejected", this);
|
|
2566
|
-
}),
|
|
2567
|
-
(i.prototype._setFollowing = function () {
|
|
2568
|
-
(this._bitField = 67108864 | this._bitField),
|
|
2569
|
-
this._fireEvent("promiseResolved", this);
|
|
2570
|
-
}),
|
|
2571
|
-
(i.prototype._setIsFinal = function () {
|
|
2572
|
-
this._bitField = 4194304 | this._bitField;
|
|
2573
|
-
}),
|
|
2574
|
-
(i.prototype._isFinal = function () {
|
|
2575
|
-
return (4194304 & this._bitField) > 0;
|
|
2576
|
-
}),
|
|
2577
|
-
(i.prototype._unsetCancelled = function () {
|
|
2578
|
-
this._bitField = -65537 & this._bitField;
|
|
2579
|
-
}),
|
|
2580
|
-
(i.prototype._setCancelled = function () {
|
|
2581
|
-
(this._bitField = 65536 | this._bitField),
|
|
2582
|
-
this._fireEvent("promiseCancelled", this);
|
|
2583
|
-
}),
|
|
2584
|
-
(i.prototype._setWillBeCancelled = function () {
|
|
2585
|
-
this._bitField = 8388608 | this._bitField;
|
|
2586
|
-
}),
|
|
2587
|
-
(i.prototype._setAsyncGuaranteed = function () {
|
|
2588
|
-
v.hasCustomScheduler() ||
|
|
2589
|
-
(this._bitField = 134217728 | this._bitField);
|
|
2590
|
-
}),
|
|
2591
|
-
(i.prototype._receiverAt = function (t) {
|
|
2592
|
-
var e = 0 === t ? this._receiver0 : this[4 * t - 4 + 3];
|
|
2593
|
-
return e === h
|
|
2594
|
-
? void 0
|
|
2595
|
-
: void 0 === e && this._isBound()
|
|
2596
|
-
? this._boundValue()
|
|
2597
|
-
: e;
|
|
2598
|
-
}),
|
|
2599
|
-
(i.prototype._promiseAt = function (t) {
|
|
2600
|
-
return this[4 * t - 4 + 2];
|
|
2601
|
-
}),
|
|
2602
|
-
(i.prototype._fulfillmentHandlerAt = function (t) {
|
|
2603
|
-
return this[4 * t - 4 + 0];
|
|
2604
|
-
}),
|
|
2605
|
-
(i.prototype._rejectionHandlerAt = function (t) {
|
|
2606
|
-
return this[4 * t - 4 + 1];
|
|
2607
|
-
}),
|
|
2608
|
-
(i.prototype._boundValue = function () {}),
|
|
2609
|
-
(i.prototype._migrateCallback0 = function (t) {
|
|
2610
|
-
var e = (t._bitField, t._fulfillmentHandler0),
|
|
2611
|
-
n = t._rejectionHandler0,
|
|
2612
|
-
r = t._promise0,
|
|
2613
|
-
i = t._receiverAt(0);
|
|
2614
|
-
void 0 === i && (i = h), this._addCallbacks(e, n, r, i, null);
|
|
2615
|
-
}),
|
|
2616
|
-
(i.prototype._migrateCallbackAt = function (t, e) {
|
|
2617
|
-
var n = t._fulfillmentHandlerAt(e),
|
|
2618
|
-
r = t._rejectionHandlerAt(e),
|
|
2619
|
-
i = t._promiseAt(e),
|
|
2620
|
-
o = t._receiverAt(e);
|
|
2621
|
-
void 0 === o && (o = h), this._addCallbacks(n, r, i, o, null);
|
|
2622
|
-
}),
|
|
2623
|
-
(i.prototype._addCallbacks = function (t, e, n, r, i) {
|
|
2624
|
-
var o = this._length();
|
|
2625
|
-
if ((o >= 65531 && ((o = 0), this._setLength(0)), 0 === o))
|
|
2626
|
-
(this._promise0 = n),
|
|
2627
|
-
(this._receiver0 = r),
|
|
2628
|
-
"function" == typeof t &&
|
|
2629
|
-
(this._fulfillmentHandler0 =
|
|
2630
|
-
null === i ? t : f.domainBind(i, t)),
|
|
2631
|
-
"function" == typeof e &&
|
|
2632
|
-
(this._rejectionHandler0 =
|
|
2633
|
-
null === i ? e : f.domainBind(i, e));
|
|
2634
|
-
else {
|
|
2635
|
-
var s = 4 * o - 4;
|
|
2636
|
-
(this[s + 2] = n),
|
|
2637
|
-
(this[s + 3] = r),
|
|
2638
|
-
"function" == typeof t &&
|
|
2639
|
-
(this[s + 0] = null === i ? t : f.domainBind(i, t)),
|
|
2640
|
-
"function" == typeof e &&
|
|
2641
|
-
(this[s + 1] = null === i ? e : f.domainBind(i, e));
|
|
2642
|
-
}
|
|
2643
|
-
return this._setLength(o + 1), o;
|
|
2644
|
-
}),
|
|
2645
|
-
(i.prototype._proxy = function (t, e) {
|
|
2646
|
-
this._addCallbacks(void 0, void 0, e, t, null);
|
|
2647
|
-
}),
|
|
2648
|
-
(i.prototype._resolveCallback = function (t, e) {
|
|
2649
|
-
if (0 === (117506048 & this._bitField)) {
|
|
2650
|
-
if (t === this) return this._rejectCallback(l(), !1);
|
|
2651
|
-
var n = j(t, this);
|
|
2652
|
-
if (!(n instanceof i)) return this._fulfill(t);
|
|
2653
|
-
e && this._propagateFrom(n, 2);
|
|
2654
|
-
var r = n._target();
|
|
2655
|
-
if (r === this) return void this._reject(l());
|
|
2656
|
-
var o = r._bitField;
|
|
2657
|
-
if (0 === (50397184 & o)) {
|
|
2658
|
-
var s = this._length();
|
|
2659
|
-
s > 0 && r._migrateCallback0(this);
|
|
2660
|
-
for (var a = 1; s > a; ++a) r._migrateCallbackAt(this, a);
|
|
2661
|
-
this._setFollowing(),
|
|
2662
|
-
this._setLength(0),
|
|
2663
|
-
this._setFollowee(r);
|
|
2664
|
-
} else if (0 !== (33554432 & o)) this._fulfill(r._value());
|
|
2665
|
-
else if (0 !== (16777216 & o)) this._reject(r._reason());
|
|
2666
|
-
else {
|
|
2667
|
-
var c = new g("late cancellation observer");
|
|
2668
|
-
r._attachExtraTrace(c), this._reject(c);
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
}),
|
|
2672
|
-
(i.prototype._rejectCallback = function (t, e, n) {
|
|
2673
|
-
var r = f.ensureErrorObject(t),
|
|
2674
|
-
i = r === t;
|
|
2675
|
-
if (!i && !n && T.warnings()) {
|
|
2676
|
-
var o =
|
|
2677
|
-
"a promise was rejected with a non-error: " +
|
|
2678
|
-
f.classString(t);
|
|
2679
|
-
this._warn(o, !0);
|
|
2680
|
-
}
|
|
2681
|
-
this._attachExtraTrace(r, e ? i : !1), this._reject(t);
|
|
2682
|
-
}),
|
|
2683
|
-
(i.prototype._resolveFromExecutor = function (t) {
|
|
2684
|
-
if (t !== b) {
|
|
2685
|
-
var e = this;
|
|
2686
|
-
this._captureStackTrace(), this._pushContext();
|
|
2687
|
-
var n = !0,
|
|
2688
|
-
r = this._execute(
|
|
2689
|
-
t,
|
|
2690
|
-
function (t) {
|
|
2691
|
-
e._resolveCallback(t);
|
|
2692
|
-
},
|
|
2693
|
-
function (t) {
|
|
2694
|
-
e._rejectCallback(t, n);
|
|
2695
|
-
}
|
|
2696
|
-
);
|
|
2697
|
-
|
|
2698
|
-
(n = !1),
|
|
2699
|
-
this._popContext(),
|
|
2700
|
-
void 0 !== r && e._rejectCallback(r, !0);
|
|
2701
|
-
}
|
|
2702
|
-
}),
|
|
2703
|
-
(i.prototype._settlePromiseFromHandler = function (t, e, n, r) {
|
|
2704
|
-
var i = r._bitField;
|
|
2705
|
-
if (0 === (65536 & i)) {
|
|
2706
|
-
r._pushContext();
|
|
2707
|
-
var o;
|
|
2708
|
-
e === w
|
|
2709
|
-
? n && "number" == typeof n.length
|
|
2710
|
-
? (o = O(t).apply(this._boundValue(), n))
|
|
2711
|
-
: ((o = R),
|
|
2712
|
-
(o.e = new m(
|
|
2713
|
-
"cannot .spread() a non-array: " + f.classString(n)
|
|
2714
|
-
)))
|
|
2715
|
-
: (o = O(t).call(e, n));
|
|
2716
|
-
var s = r._popContext();
|
|
2717
|
-
(i = r._bitField),
|
|
2718
|
-
0 === (65536 & i) &&
|
|
2719
|
-
(o === C
|
|
2720
|
-
? r._reject(n)
|
|
2721
|
-
: o === R
|
|
2722
|
-
? r._rejectCallback(o.e, !1)
|
|
2723
|
-
: (T.checkForgottenReturns(o, s, "", r, this),
|
|
2724
|
-
r._resolveCallback(o)));
|
|
2725
|
-
}
|
|
2726
|
-
}),
|
|
2727
|
-
(i.prototype._target = function () {
|
|
2728
|
-
for (var t = this; t._isFollowing(); ) t = t._followee();
|
|
2729
|
-
return t;
|
|
2730
|
-
}),
|
|
2731
|
-
(i.prototype._followee = function () {
|
|
2732
|
-
return this._rejectionHandler0;
|
|
2733
|
-
}),
|
|
2734
|
-
(i.prototype._setFollowee = function (t) {
|
|
2735
|
-
this._rejectionHandler0 = t;
|
|
2736
|
-
}),
|
|
2737
|
-
(i.prototype._settlePromise = function (t, e, r, o) {
|
|
2738
|
-
var s = t instanceof i,
|
|
2739
|
-
a = this._bitField,
|
|
2740
|
-
c = 0 !== (134217728 & a);
|
|
2741
|
-
0 !== (65536 & a)
|
|
2742
|
-
? (s && t._invokeInternalOnCancel(),
|
|
2743
|
-
r instanceof x && r.isFinallyHandler()
|
|
2744
|
-
? ((r.cancelPromise = t),
|
|
2745
|
-
O(e).call(r, o) === R && t._reject(R.e))
|
|
2746
|
-
: e === u
|
|
2747
|
-
? t._fulfill(u.call(r))
|
|
2748
|
-
: r instanceof n
|
|
2749
|
-
? r._promiseCancelled(t)
|
|
2750
|
-
: s || t instanceof E
|
|
2751
|
-
? t._cancel()
|
|
2752
|
-
: r.cancel())
|
|
2753
|
-
: "function" == typeof e
|
|
2754
|
-
? s
|
|
2755
|
-
? (c && t._setAsyncGuaranteed(),
|
|
2756
|
-
this._settlePromiseFromHandler(e, r, o, t))
|
|
2757
|
-
: e.call(r, o, t)
|
|
2758
|
-
: r instanceof n
|
|
2759
|
-
? r._isResolved() ||
|
|
2760
|
-
(0 !== (33554432 & a)
|
|
2761
|
-
? r._promiseFulfilled(o, t)
|
|
2762
|
-
: r._promiseRejected(o, t))
|
|
2763
|
-
: s &&
|
|
2764
|
-
(c && t._setAsyncGuaranteed(),
|
|
2765
|
-
0 !== (33554432 & a) ? t._fulfill(o) : t._reject(o));
|
|
2766
|
-
}),
|
|
2767
|
-
(i.prototype._settlePromiseLateCancellationObserver = function (
|
|
2768
|
-
t
|
|
2769
|
-
) {
|
|
2770
|
-
var e = t.handler,
|
|
2771
|
-
n = t.promise,
|
|
2772
|
-
r = t.receiver,
|
|
2773
|
-
o = t.value;
|
|
2774
|
-
"function" == typeof e
|
|
2775
|
-
? n instanceof i
|
|
2776
|
-
? this._settlePromiseFromHandler(e, r, o, n)
|
|
2777
|
-
: e.call(r, o, n)
|
|
2778
|
-
: n instanceof i && n._reject(o);
|
|
2779
|
-
}),
|
|
2780
|
-
(i.prototype._settlePromiseCtx = function (t) {
|
|
2781
|
-
this._settlePromise(t.promise, t.handler, t.receiver, t.value);
|
|
2782
|
-
}),
|
|
2783
|
-
(i.prototype._settlePromise0 = function (t, e, n) {
|
|
2784
|
-
var r = this._promise0,
|
|
2785
|
-
i = this._receiverAt(0);
|
|
2786
|
-
(this._promise0 = void 0),
|
|
2787
|
-
(this._receiver0 = void 0),
|
|
2788
|
-
this._settlePromise(r, t, i, e);
|
|
2789
|
-
}),
|
|
2790
|
-
(i.prototype._clearCallbackDataAtIndex = function (t) {
|
|
2791
|
-
var e = 4 * t - 4;
|
|
2792
|
-
this[e + 2] = this[e + 3] = this[e + 0] = this[e + 1] = void 0;
|
|
2793
|
-
}),
|
|
2794
|
-
(i.prototype._fulfill = function (t) {
|
|
2795
|
-
var e = this._bitField;
|
|
2796
|
-
if (!((117506048 & e) >>> 16)) {
|
|
2797
|
-
if (t === this) {
|
|
2798
|
-
var n = l();
|
|
2799
|
-
return this._attachExtraTrace(n), this._reject(n);
|
|
2800
|
-
}
|
|
2801
|
-
this._setFulfilled(),
|
|
2802
|
-
(this._rejectionHandler0 = t),
|
|
2803
|
-
(65535 & e) > 0 &&
|
|
2804
|
-
(0 !== (134217728 & e)
|
|
2805
|
-
? this._settlePromises()
|
|
2806
|
-
: v.settlePromises(this),
|
|
2807
|
-
this._dereferenceTrace());
|
|
2808
|
-
}
|
|
2809
|
-
}),
|
|
2810
|
-
(i.prototype._reject = function (t) {
|
|
2811
|
-
var e = this._bitField;
|
|
2812
|
-
if (!((117506048 & e) >>> 16))
|
|
2813
|
-
return (
|
|
2814
|
-
this._setRejected(),
|
|
2815
|
-
(this._fulfillmentHandler0 = t),
|
|
2816
|
-
this._isFinal()
|
|
2817
|
-
? v.fatalError(t, f.isNode)
|
|
2818
|
-
: void ((65535 & e) > 0
|
|
2819
|
-
? v.settlePromises(this)
|
|
2820
|
-
: this._ensurePossibleRejectionHandled())
|
|
2821
|
-
);
|
|
2822
|
-
}),
|
|
2823
|
-
(i.prototype._fulfillPromises = function (t, e) {
|
|
2824
|
-
for (var n = 1; t > n; n++) {
|
|
2825
|
-
var r = this._fulfillmentHandlerAt(n),
|
|
2826
|
-
i = this._promiseAt(n),
|
|
2827
|
-
o = this._receiverAt(n);
|
|
2828
|
-
this._clearCallbackDataAtIndex(n),
|
|
2829
|
-
this._settlePromise(i, r, o, e);
|
|
2830
|
-
}
|
|
2831
|
-
}),
|
|
2832
|
-
(i.prototype._rejectPromises = function (t, e) {
|
|
2833
|
-
for (var n = 1; t > n; n++) {
|
|
2834
|
-
var r = this._rejectionHandlerAt(n),
|
|
2835
|
-
i = this._promiseAt(n),
|
|
2836
|
-
o = this._receiverAt(n);
|
|
2837
|
-
this._clearCallbackDataAtIndex(n),
|
|
2838
|
-
this._settlePromise(i, r, o, e);
|
|
2839
|
-
}
|
|
2840
|
-
}),
|
|
2841
|
-
(i.prototype._settlePromises = function () {
|
|
2842
|
-
var t = this._bitField,
|
|
2843
|
-
e = 65535 & t;
|
|
2844
|
-
if (e > 0) {
|
|
2845
|
-
if (0 !== (16842752 & t)) {
|
|
2846
|
-
var n = this._fulfillmentHandler0;
|
|
2847
|
-
this._settlePromise0(this._rejectionHandler0, n, t),
|
|
2848
|
-
this._rejectPromises(e, n);
|
|
2849
|
-
} else {
|
|
2850
|
-
var r = this._rejectionHandler0;
|
|
2851
|
-
this._settlePromise0(this._fulfillmentHandler0, r, t),
|
|
2852
|
-
this._fulfillPromises(e, r);
|
|
2853
|
-
}
|
|
2854
|
-
this._setLength(0);
|
|
2855
|
-
}
|
|
2856
|
-
this._clearCancellationData();
|
|
2857
|
-
}),
|
|
2858
|
-
(i.prototype._settledValue = function () {
|
|
2859
|
-
var t = this._bitField;
|
|
2860
|
-
return 0 !== (33554432 & t)
|
|
2861
|
-
? this._rejectionHandler0
|
|
2862
|
-
: 0 !== (16777216 & t)
|
|
2863
|
-
? this._fulfillmentHandler0
|
|
2864
|
-
: void 0;
|
|
2865
|
-
}),
|
|
2866
|
-
"undefined" != typeof Symbol &&
|
|
2867
|
-
Symbol.toStringTag &&
|
|
2868
|
-
_.defineProperty(i.prototype, Symbol.toStringTag, {
|
|
2869
|
-
get() {
|
|
2870
|
-
return "Object";
|
|
2871
|
-
}
|
|
2872
|
-
}),
|
|
2873
|
-
(i.defer = i.pending =
|
|
2874
|
-
function () {
|
|
2875
|
-
T.deprecated("Promise.defer", "new Promise");
|
|
2876
|
-
var t = new i(b);
|
|
2877
|
-
return { promise: t, resolve: o, reject: s };
|
|
2878
|
-
}),
|
|
2879
|
-
f.notEnumerableProp(i, "_makeSelfResolutionError", l),
|
|
2880
|
-
t("./method")(i, b, j, p, T),
|
|
2881
|
-
t("./bind")(i, b, j, T),
|
|
2882
|
-
t("./cancel")(i, E, p, T),
|
|
2883
|
-
t("./direct_resolve")(i),
|
|
2884
|
-
t("./synchronous_inspection")(i),
|
|
2885
|
-
t("./join")(i, E, j, b, v, c),
|
|
2886
|
-
(i.Promise = i),
|
|
2887
|
-
(i.version = "3.5.5"),
|
|
2888
|
-
t("./call_get.js")(i),
|
|
2889
|
-
t("./generators.js")(i, p, b, j, n, T),
|
|
2890
|
-
t("./map.js")(i, E, p, j, b, T),
|
|
2891
|
-
t("./nodeify.js")(i),
|
|
2892
|
-
t("./promisify.js")(i, b),
|
|
2893
|
-
t("./props.js")(i, E, j, p),
|
|
2894
|
-
t("./race.js")(i, b, j, p),
|
|
2895
|
-
t("./reduce.js")(i, E, p, j, b, T),
|
|
2896
|
-
t("./settle.js")(i, E, T),
|
|
2897
|
-
t("./some.js")(i, E, p),
|
|
2898
|
-
t("./timers.js")(i, b, T),
|
|
2899
|
-
t("./using.js")(i, p, j, F, b, T),
|
|
2900
|
-
t("./any.js")(i),
|
|
2901
|
-
t("./each.js")(i, b),
|
|
2902
|
-
t("./filter.js")(i, b),
|
|
2903
|
-
f.toFastProperties(i),
|
|
2904
|
-
f.toFastProperties(i.prototype),
|
|
2905
|
-
a({ a: 1 }),
|
|
2906
|
-
a({ b: 2 }),
|
|
2907
|
-
a({ c: 3 }),
|
|
2908
|
-
a(1),
|
|
2909
|
-
a(function () {}),
|
|
2910
|
-
a(void 0),
|
|
2911
|
-
a(!1),
|
|
2912
|
-
a(new i(b)),
|
|
2913
|
-
T.setBounds(d.firstLineError, f.lastLineError),
|
|
2914
|
-
i
|
|
2915
|
-
);
|
|
2916
|
-
};
|
|
2917
|
-
},
|
|
2918
|
-
{
|
|
2919
|
-
"./any.js": 1,
|
|
2920
|
-
"./async": 2,
|
|
2921
|
-
"./bind": 3,
|
|
2922
|
-
"./call_get.js": 5,
|
|
2923
|
-
"./cancel": 6,
|
|
2924
|
-
"./catch_filter": 7,
|
|
2925
|
-
"./context": 8,
|
|
2926
|
-
"./debuggability": 9,
|
|
2927
|
-
"./direct_resolve": 10,
|
|
2928
|
-
"./each.js": 11,
|
|
2929
|
-
"./errors": 12,
|
|
2930
|
-
"./es5": 13,
|
|
2931
|
-
"./filter.js": 14,
|
|
2932
|
-
"./finally": 15,
|
|
2933
|
-
"./generators.js": 16,
|
|
2934
|
-
"./join": 17,
|
|
2935
|
-
"./map.js": 18,
|
|
2936
|
-
"./method": 19,
|
|
2937
|
-
"./nodeback": 20,
|
|
2938
|
-
"./nodeify.js": 21,
|
|
2939
|
-
"./promise_array": 23,
|
|
2940
|
-
"./promisify.js": 24,
|
|
2941
|
-
"./props.js": 25,
|
|
2942
|
-
"./race.js": 27,
|
|
2943
|
-
"./reduce.js": 28,
|
|
2944
|
-
"./settle.js": 30,
|
|
2945
|
-
"./some.js": 31,
|
|
2946
|
-
"./synchronous_inspection": 32,
|
|
2947
|
-
"./thenables": 33,
|
|
2948
|
-
"./timers.js": 34,
|
|
2949
|
-
"./using.js": 35,
|
|
2950
|
-
"./util": 36
|
|
2951
|
-
}
|
|
2952
|
-
],
|
|
2953
|
-
|
|
2954
|
-
23: [
|
|
2955
|
-
function (t, e, n) {
|
|
2956
|
-
"use strict";
|
|
2957
|
-
e.exports = function (e, n, r, i, o) {
|
|
2958
|
-
function s(t) {
|
|
2959
|
-
switch (t) {
|
|
2960
|
-
case -2:
|
|
2961
|
-
return [];
|
|
2962
|
-
case -3:
|
|
2963
|
-
return {};
|
|
2964
|
-
case -6:
|
|
2965
|
-
return new Map();
|
|
2966
|
-
}
|
|
2967
|
-
}
|
|
2968
|
-
function a(t) {
|
|
2969
|
-
var r = (this._promise = new e(n));
|
|
2970
|
-
t instanceof e && r._propagateFrom(t, 3),
|
|
2971
|
-
r._setOnCancel(this),
|
|
2972
|
-
(this._values = t),
|
|
2973
|
-
(this._length = 0),
|
|
2974
|
-
(this._totalResolved = 0),
|
|
2975
|
-
this._init(void 0, -2);
|
|
2976
|
-
}
|
|
2977
|
-
var c = t("./util");
|
|
2978
|
-
c.isArray;
|
|
2979
|
-
return (
|
|
2980
|
-
c.inherits(a, o),
|
|
2981
|
-
(a.prototype.length = function () {
|
|
2982
|
-
return this._length;
|
|
2983
|
-
}),
|
|
2984
|
-
(a.prototype.promise = function () {
|
|
2985
|
-
return this._promise;
|
|
2986
|
-
}),
|
|
2987
|
-
(a.prototype._init = function l(t, n) {
|
|
2988
|
-
var o = r(this._values, this._promise);
|
|
2989
|
-
if (o instanceof e) {
|
|
2990
|
-
o = o._target();
|
|
2991
|
-
var a = o._bitField;
|
|
2992
|
-
if (((this._values = o), 0 === (50397184 & a)))
|
|
2993
|
-
return (
|
|
2994
|
-
this._promise._setAsyncGuaranteed(),
|
|
2995
|
-
o._then(l, this._reject, void 0, this, n)
|
|
2996
|
-
);
|
|
2997
|
-
|
|
2998
|
-
if (0 === (33554432 & a))
|
|
2999
|
-
return 0 !== (16777216 & a)
|
|
3000
|
-
? this._reject(o._reason())
|
|
3001
|
-
: this._cancel();
|
|
3002
|
-
o = o._value();
|
|
3003
|
-
}
|
|
3004
|
-
if (((o = c.asArray(o)), null === o)) {
|
|
3005
|
-
var u = i(
|
|
3006
|
-
"expecting an array or an iterable object but got " +
|
|
3007
|
-
c.classString(o)
|
|
3008
|
-
).reason();
|
|
3009
|
-
return void this._promise._rejectCallback(u, !1);
|
|
3010
|
-
}
|
|
3011
|
-
return 0 === o.length
|
|
3012
|
-
? void (-5 === n
|
|
3013
|
-
? this._resolveEmptyArray()
|
|
3014
|
-
: this._resolve(s(n)))
|
|
3015
|
-
: void this._iterate(o);
|
|
3016
|
-
}),
|
|
3017
|
-
(a.prototype._iterate = function (t) {
|
|
3018
|
-
var n = this.getActualLength(t.length);
|
|
3019
|
-
(this._length = n),
|
|
3020
|
-
(this._values = this.shouldCopyValues()
|
|
3021
|
-
? new Array(n)
|
|
3022
|
-
: this._values);
|
|
3023
|
-
for (
|
|
3024
|
-
var i = this._promise, o = !1, s = null, a = 0;
|
|
3025
|
-
n > a;
|
|
3026
|
-
++a
|
|
3027
|
-
) {
|
|
3028
|
-
var c = r(t[a], i);
|
|
3029
|
-
c instanceof e
|
|
3030
|
-
? ((c = c._target()), (s = c._bitField))
|
|
3031
|
-
: (s = null),
|
|
3032
|
-
o
|
|
3033
|
-
? null !== s && c.suppressUnhandledRejections()
|
|
3034
|
-
: null !== s
|
|
3035
|
-
? 0 === (50397184 & s)
|
|
3036
|
-
? (c._proxy(this, a), (this._values[a] = c))
|
|
3037
|
-
: (o =
|
|
3038
|
-
0 !== (33554432 & s)
|
|
3039
|
-
? this._promiseFulfilled(c._value(), a)
|
|
3040
|
-
: 0 !== (16777216 & s)
|
|
3041
|
-
? this._promiseRejected(c._reason(), a)
|
|
3042
|
-
: this._promiseCancelled(a))
|
|
3043
|
-
: (o = this._promiseFulfilled(c, a));
|
|
3044
|
-
}
|
|
3045
|
-
o || i._setAsyncGuaranteed();
|
|
3046
|
-
}),
|
|
3047
|
-
(a.prototype._isResolved = function () {
|
|
3048
|
-
return null === this._values;
|
|
3049
|
-
}),
|
|
3050
|
-
(a.prototype._resolve = function (t) {
|
|
3051
|
-
(this._values = null), this._promise._fulfill(t);
|
|
3052
|
-
}),
|
|
3053
|
-
(a.prototype._cancel = function () {
|
|
3054
|
-
!this._isResolved() &&
|
|
3055
|
-
this._promise._isCancellable() &&
|
|
3056
|
-
((this._values = null), this._promise._cancel());
|
|
3057
|
-
}),
|
|
3058
|
-
(a.prototype._reject = function (t) {
|
|
3059
|
-
(this._values = null), this._promise._rejectCallback(t, !1);
|
|
3060
|
-
}),
|
|
3061
|
-
(a.prototype._promiseFulfilled = function (t, e) {
|
|
3062
|
-
this._values[e] = t;
|
|
3063
|
-
var n = ++this._totalResolved;
|
|
3064
|
-
return n >= this._length
|
|
3065
|
-
? (this._resolve(this._values), !0)
|
|
3066
|
-
: !1;
|
|
3067
|
-
}),
|
|
3068
|
-
(a.prototype._promiseCancelled = function () {
|
|
3069
|
-
return this._cancel(), !0;
|
|
3070
|
-
}),
|
|
3071
|
-
(a.prototype._promiseRejected = function (t) {
|
|
3072
|
-
return this._totalResolved++, this._reject(t), !0;
|
|
3073
|
-
}),
|
|
3074
|
-
(a.prototype._resultCancelled = function () {
|
|
3075
|
-
if (!this._isResolved()) {
|
|
3076
|
-
var t = this._values;
|
|
3077
|
-
if ((this._cancel(), t instanceof e)) t.cancel();
|
|
3078
|
-
else
|
|
3079
|
-
for (var n = 0; n < t.length; ++n)
|
|
3080
|
-
t[n] instanceof e && t[n].cancel();
|
|
3081
|
-
}
|
|
3082
|
-
}),
|
|
3083
|
-
(a.prototype.shouldCopyValues = function () {
|
|
3084
|
-
return !0;
|
|
3085
|
-
}),
|
|
3086
|
-
(a.prototype.getActualLength = function (t) {
|
|
3087
|
-
return t;
|
|
3088
|
-
}),
|
|
3089
|
-
a
|
|
3090
|
-
);
|
|
3091
|
-
};
|
|
3092
|
-
},
|
|
3093
|
-
{ "./util": 36 }
|
|
3094
|
-
],
|
|
3095
|
-
|
|
3096
|
-
24: [
|
|
3097
|
-
function (t, e, n) {
|
|
3098
|
-
"use strict";
|
|
3099
|
-
e.exports = function (e, n) {
|
|
3100
|
-
function r(t) {
|
|
3101
|
-
return !C.test(t);
|
|
3102
|
-
}
|
|
3103
|
-
function i(t) {
|
|
3104
|
-
try {
|
|
3105
|
-
return t.__isPromisified__ === !0;
|
|
3106
|
-
} catch (e) {
|
|
3107
|
-
return !1;
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
function o(t, e, n) {
|
|
3111
|
-
var r = f.getDataPropertyOrDefault(t, e + n, b);
|
|
3112
|
-
return r ? i(r) : !1;
|
|
3113
|
-
}
|
|
3114
|
-
function s(t, e, n) {
|
|
3115
|
-
for (var r = 0; r < t.length; r += 2) {
|
|
3116
|
-
var i = t[r];
|
|
3117
|
-
if (n.test(i))
|
|
3118
|
-
for (var o = i.replace(n, ""), s = 0; s < t.length; s += 2)
|
|
3119
|
-
if (t[s] === o)
|
|
3120
|
-
throw new m(
|
|
3121
|
-
"Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace(
|
|
3122
|
-
"%s",
|
|
3123
|
-
e
|
|
3124
|
-
)
|
|
3125
|
-
);
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
function a(t, e, n, r) {
|
|
3129
|
-
for (
|
|
3130
|
-
var a = f.inheritedDataKeys(t), c = [], l = 0;
|
|
3131
|
-
l < a.length;
|
|
3132
|
-
++l
|
|
3133
|
-
) {
|
|
3134
|
-
var u = a[l],
|
|
3135
|
-
p = t[u],
|
|
3136
|
-
h = r === j ? !0 : j(u, p, t);
|
|
3137
|
-
"function" != typeof p ||
|
|
3138
|
-
i(p) ||
|
|
3139
|
-
o(t, u, e) ||
|
|
3140
|
-
!r(u, p, t, h) ||
|
|
3141
|
-
c.push(u, p);
|
|
3142
|
-
}
|
|
3143
|
-
return s(c, e, n), c;
|
|
3144
|
-
}
|
|
3145
|
-
function c(t, r, i, o, s, a) {
|
|
3146
|
-
function c() {
|
|
3147
|
-
var i = r;
|
|
3148
|
-
r === h && (i = this);
|
|
3149
|
-
var o = new e(n);
|
|
3150
|
-
o._captureStackTrace();
|
|
3151
|
-
var s = "string" == typeof u && this !== l ? this[u] : t,
|
|
3152
|
-
c = _(o, a);
|
|
3153
|
-
try {
|
|
3154
|
-
s.apply(i, d(arguments, c));
|
|
3155
|
-
} catch (p) {
|
|
3156
|
-
o._rejectCallback(v(p), !0, !0);
|
|
3157
|
-
}
|
|
3158
|
-
return o._isFateSealed() || o._setAsyncGuaranteed(), o;
|
|
3159
|
-
}
|
|
3160
|
-
var l = (function () {
|
|
3161
|
-
return this;
|
|
3162
|
-
})(),
|
|
3163
|
-
u = t;
|
|
3164
|
-
return (
|
|
3165
|
-
"string" == typeof u && (t = o),
|
|
3166
|
-
f.notEnumerableProp(c, "__isPromisified__", !0),
|
|
3167
|
-
c
|
|
3168
|
-
);
|
|
3169
|
-
}
|
|
3170
|
-
function l(t, e, n, r, i) {
|
|
3171
|
-
for (
|
|
3172
|
-
var o = new RegExp(E(e) + "$"),
|
|
3173
|
-
s = a(t, e, o, n),
|
|
3174
|
-
c = 0,
|
|
3175
|
-
l = s.length;
|
|
3176
|
-
l > c;
|
|
3177
|
-
c += 2
|
|
3178
|
-
) {
|
|
3179
|
-
var u = s[c],
|
|
3180
|
-
p = s[c + 1],
|
|
3181
|
-
_ = u + e;
|
|
3182
|
-
if (r === k) t[_] = k(u, h, u, p, e, i);
|
|
3183
|
-
else {
|
|
3184
|
-
var d = r(p, function () {
|
|
3185
|
-
return k(u, h, u, p, e, i);
|
|
3186
|
-
});
|
|
3187
|
-
f.notEnumerableProp(d, "__isPromisified__", !0), (t[_] = d);
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
return f.toFastProperties(t), t;
|
|
3191
|
-
}
|
|
3192
|
-
function u(t, e, n) {
|
|
3193
|
-
return k(t, e, void 0, t, null, n);
|
|
3194
|
-
}
|
|
3195
|
-
var p,
|
|
3196
|
-
h = {},
|
|
3197
|
-
f = t("./util"),
|
|
3198
|
-
_ = t("./nodeback"),
|
|
3199
|
-
d = f.withAppended,
|
|
3200
|
-
v = f.maybeWrapAsError,
|
|
3201
|
-
y = f.canEvaluate,
|
|
3202
|
-
m = t("./errors").TypeError,
|
|
3203
|
-
g = "Async",
|
|
3204
|
-
b = { __isPromisified__: !0 },
|
|
3205
|
-
w = [
|
|
3206
|
-
"arity",
|
|
3207
|
-
"length",
|
|
3208
|
-
"name",
|
|
3209
|
-
"arguments",
|
|
3210
|
-
"caller",
|
|
3211
|
-
"callee",
|
|
3212
|
-
"prototype",
|
|
3213
|
-
"__isPromisified__"
|
|
3214
|
-
],
|
|
3215
|
-
C = new RegExp("^(?:" + w.join("|") + ")$"),
|
|
3216
|
-
j = function (t) {
|
|
3217
|
-
return (
|
|
3218
|
-
f.isIdentifier(t) &&
|
|
3219
|
-
"_" !== t.charAt(0) &&
|
|
3220
|
-
"constructor" !== t
|
|
3221
|
-
);
|
|
3222
|
-
},
|
|
3223
|
-
E = function (t) {
|
|
3224
|
-
return t.replace(/([$])/, "\\$");
|
|
3225
|
-
},
|
|
3226
|
-
k = y ? p : c;
|
|
3227
|
-
(e.promisify = function (t, e) {
|
|
3228
|
-
if ("function" != typeof t)
|
|
3229
|
-
throw new m("expecting a function but got " + f.classString(t));
|
|
3230
|
-
if (i(t)) return t;
|
|
3231
|
-
e = Object(e);
|
|
3232
|
-
var n = void 0 === e.context ? h : e.context,
|
|
3233
|
-
o = !!e.multiArgs,
|
|
3234
|
-
s = u(t, n, o);
|
|
3235
|
-
return f.copyDescriptors(t, s, r), s;
|
|
3236
|
-
}),
|
|
3237
|
-
(e.promisifyAll = function (t, e) {
|
|
3238
|
-
if ("function" != typeof t && "object" != typeof t)
|
|
3239
|
-
throw new m(
|
|
3240
|
-
"the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n"
|
|
3241
|
-
);
|
|
3242
|
-
|
|
3243
|
-
e = Object(e);
|
|
3244
|
-
var n = !!e.multiArgs,
|
|
3245
|
-
r = e.suffix;
|
|
3246
|
-
"string" != typeof r && (r = g);
|
|
3247
|
-
var i = e.filter;
|
|
3248
|
-
"function" != typeof i && (i = j);
|
|
3249
|
-
var o = e.promisifier;
|
|
3250
|
-
if (("function" != typeof o && (o = k), !f.isIdentifier(r)))
|
|
3251
|
-
throw new RangeError(
|
|
3252
|
-
"suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n"
|
|
3253
|
-
);
|
|
3254
|
-
|
|
3255
|
-
for (var s = f.inheritedDataKeys(t), a = 0; a < s.length; ++a) {
|
|
3256
|
-
var c = t[s[a]];
|
|
3257
|
-
"constructor" !== s[a] &&
|
|
3258
|
-
f.isClass(c) &&
|
|
3259
|
-
(l(c.prototype, r, i, o, n), l(c, r, i, o, n));
|
|
3260
|
-
}
|
|
3261
|
-
return l(t, r, i, o, n);
|
|
3262
|
-
});
|
|
3263
|
-
};
|
|
3264
|
-
},
|
|
3265
|
-
{ "./errors": 12, "./nodeback": 20, "./util": 36 }
|
|
3266
|
-
],
|
|
3267
|
-
|
|
3268
|
-
25: [
|
|
3269
|
-
function (t, e, n) {
|
|
3270
|
-
"use strict";
|
|
3271
|
-
e.exports = function (e, n, r, i) {
|
|
3272
|
-
function o(t) {
|
|
3273
|
-
var e,
|
|
3274
|
-
n = !1;
|
|
3275
|
-
if (void 0 !== a && t instanceof a) (e = p(t)), (n = !0);
|
|
3276
|
-
else {
|
|
3277
|
-
var r = u.keys(t),
|
|
3278
|
-
i = r.length;
|
|
3279
|
-
e = new Array(2 * i);
|
|
3280
|
-
for (var o = 0; i > o; ++o) {
|
|
3281
|
-
var s = r[o];
|
|
3282
|
-
(e[o] = t[s]), (e[o + i] = s);
|
|
3283
|
-
}
|
|
3284
|
-
}
|
|
3285
|
-
this.constructor$(e),
|
|
3286
|
-
(this._isMap = n),
|
|
3287
|
-
this._init$(void 0, n ? -6 : -3);
|
|
3288
|
-
}
|
|
3289
|
-
function s(t) {
|
|
3290
|
-
var n,
|
|
3291
|
-
s = r(t);
|
|
3292
|
-
return l(s)
|
|
3293
|
-
? ((n =
|
|
3294
|
-
s instanceof e
|
|
3295
|
-
? s._then(e.props, void 0, void 0, void 0, void 0)
|
|
3296
|
-
: new o(s).promise()),
|
|
3297
|
-
s instanceof e && n._propagateFrom(s, 2),
|
|
3298
|
-
n)
|
|
3299
|
-
: i(
|
|
3300
|
-
"cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n"
|
|
3301
|
-
);
|
|
3302
|
-
}
|
|
3303
|
-
var a,
|
|
3304
|
-
c = t("./util"),
|
|
3305
|
-
l = c.isObject,
|
|
3306
|
-
u = t("./es5");
|
|
3307
|
-
"function" == typeof Map && (a = Map);
|
|
3308
|
-
var p = (function () {
|
|
3309
|
-
function t(t, r) {
|
|
3310
|
-
(this[e] = t), (this[e + n] = r), e++;
|
|
3311
|
-
}
|
|
3312
|
-
var e = 0,
|
|
3313
|
-
n = 0;
|
|
3314
|
-
return function (r) {
|
|
3315
|
-
(n = r.size), (e = 0);
|
|
3316
|
-
var i = new Array(2 * r.size);
|
|
3317
|
-
return r.forEach(t, i), i;
|
|
3318
|
-
};
|
|
3319
|
-
})(),
|
|
3320
|
-
h = function (t) {
|
|
3321
|
-
for (
|
|
3322
|
-
var e = new a(), n = (t.length / 2) | 0, r = 0;
|
|
3323
|
-
n > r;
|
|
3324
|
-
++r
|
|
3325
|
-
) {
|
|
3326
|
-
var i = t[n + r],
|
|
3327
|
-
o = t[r];
|
|
3328
|
-
e.set(i, o);
|
|
3329
|
-
}
|
|
3330
|
-
return e;
|
|
3331
|
-
};
|
|
3332
|
-
c.inherits(o, n),
|
|
3333
|
-
(o.prototype._init = function () {}),
|
|
3334
|
-
(o.prototype._promiseFulfilled = function (t, e) {
|
|
3335
|
-
this._values[e] = t;
|
|
3336
|
-
var n = ++this._totalResolved;
|
|
3337
|
-
if (n >= this._length) {
|
|
3338
|
-
var r;
|
|
3339
|
-
if (this._isMap) r = h(this._values);
|
|
3340
|
-
else {
|
|
3341
|
-
r = {};
|
|
3342
|
-
for (
|
|
3343
|
-
var i = this.length(), o = 0, s = this.length();
|
|
3344
|
-
s > o;
|
|
3345
|
-
++o
|
|
3346
|
-
)
|
|
3347
|
-
r[this._values[o + i]] = this._values[o];
|
|
3348
|
-
}
|
|
3349
|
-
return this._resolve(r), !0;
|
|
3350
|
-
}
|
|
3351
|
-
return !1;
|
|
3352
|
-
}),
|
|
3353
|
-
(o.prototype.shouldCopyValues = function () {
|
|
3354
|
-
return !1;
|
|
3355
|
-
}),
|
|
3356
|
-
(o.prototype.getActualLength = function (t) {
|
|
3357
|
-
return t >> 1;
|
|
3358
|
-
}),
|
|
3359
|
-
(e.prototype.props = function () {
|
|
3360
|
-
return s(this);
|
|
3361
|
-
}),
|
|
3362
|
-
(e.props = function (t) {
|
|
3363
|
-
return s(t);
|
|
3364
|
-
});
|
|
3365
|
-
};
|
|
3366
|
-
},
|
|
3367
|
-
{ "./es5": 13, "./util": 36 }
|
|
3368
|
-
],
|
|
3369
|
-
|
|
3370
|
-
26: [
|
|
3371
|
-
function (t, e, n) {
|
|
3372
|
-
"use strict";
|
|
3373
|
-
function r(t, e, n, r, i) {
|
|
3374
|
-
for (var o = 0; i > o; ++o)
|
|
3375
|
-
(n[o + r] = t[o + e]), (t[o + e] = void 0);
|
|
3376
|
-
}
|
|
3377
|
-
function i(t) {
|
|
3378
|
-
(this._capacity = t), (this._length = 0), (this._front = 0);
|
|
3379
|
-
}
|
|
3380
|
-
(i.prototype._willBeOverCapacity = function (t) {
|
|
3381
|
-
return this._capacity < t;
|
|
3382
|
-
}),
|
|
3383
|
-
(i.prototype._pushOne = function (t) {
|
|
3384
|
-
var e = this.length();
|
|
3385
|
-
this._checkCapacity(e + 1);
|
|
3386
|
-
var n = (this._front + e) & (this._capacity - 1);
|
|
3387
|
-
(this[n] = t), (this._length = e + 1);
|
|
3388
|
-
}),
|
|
3389
|
-
(i.prototype.push = function (t, e, n) {
|
|
3390
|
-
var r = this.length() + 3;
|
|
3391
|
-
if (this._willBeOverCapacity(r))
|
|
3392
|
-
return (
|
|
3393
|
-
this._pushOne(t), this._pushOne(e), void this._pushOne(n)
|
|
3394
|
-
);
|
|
3395
|
-
|
|
3396
|
-
var i = this._front + r - 3;
|
|
3397
|
-
this._checkCapacity(r);
|
|
3398
|
-
var o = this._capacity - 1;
|
|
3399
|
-
(this[(i + 0) & o] = t),
|
|
3400
|
-
(this[(i + 1) & o] = e),
|
|
3401
|
-
(this[(i + 2) & o] = n),
|
|
3402
|
-
(this._length = r);
|
|
3403
|
-
}),
|
|
3404
|
-
(i.prototype.shift = function () {
|
|
3405
|
-
var t = this._front,
|
|
3406
|
-
e = this[t];
|
|
3407
|
-
return (
|
|
3408
|
-
(this[t] = void 0),
|
|
3409
|
-
(this._front = (t + 1) & (this._capacity - 1)),
|
|
3410
|
-
this._length--,
|
|
3411
|
-
e
|
|
3412
|
-
);
|
|
3413
|
-
}),
|
|
3414
|
-
(i.prototype.length = function () {
|
|
3415
|
-
return this._length;
|
|
3416
|
-
}),
|
|
3417
|
-
(i.prototype._checkCapacity = function (t) {
|
|
3418
|
-
this._capacity < t && this._resizeTo(this._capacity << 1);
|
|
3419
|
-
}),
|
|
3420
|
-
(i.prototype._resizeTo = function (t) {
|
|
3421
|
-
var e = this._capacity;
|
|
3422
|
-
this._capacity = t;
|
|
3423
|
-
var n = this._front,
|
|
3424
|
-
i = this._length,
|
|
3425
|
-
o = (n + i) & (e - 1);
|
|
3426
|
-
r(this, 0, this, e, o);
|
|
3427
|
-
}),
|
|
3428
|
-
(e.exports = i);
|
|
3429
|
-
},
|
|
3430
|
-
{}
|
|
3431
|
-
],
|
|
3432
|
-
|
|
3433
|
-
27: [
|
|
3434
|
-
function (t, e, n) {
|
|
3435
|
-
"use strict";
|
|
3436
|
-
e.exports = function (e, n, r, i) {
|
|
3437
|
-
function o(t, o) {
|
|
3438
|
-
var c = r(t);
|
|
3439
|
-
if (c instanceof e) return a(c);
|
|
3440
|
-
if (((t = s.asArray(t)), null === t))
|
|
3441
|
-
return i(
|
|
3442
|
-
"expecting an array or an iterable object but got " +
|
|
3443
|
-
s.classString(t)
|
|
3444
|
-
);
|
|
3445
|
-
|
|
3446
|
-
var l = new e(n);
|
|
3447
|
-
void 0 !== o && l._propagateFrom(o, 3);
|
|
3448
|
-
for (
|
|
3449
|
-
var u = l._fulfill, p = l._reject, h = 0, f = t.length;
|
|
3450
|
-
f > h;
|
|
3451
|
-
++h
|
|
3452
|
-
) {
|
|
3453
|
-
var _ = t[h];
|
|
3454
|
-
(void 0 !== _ || h in t) &&
|
|
3455
|
-
e.cast(_)._then(u, p, void 0, l, null);
|
|
3456
|
-
}
|
|
3457
|
-
return l;
|
|
3458
|
-
}
|
|
3459
|
-
var s = t("./util"),
|
|
3460
|
-
a = function (t) {
|
|
3461
|
-
return t.then(function (e) {
|
|
3462
|
-
return o(e, t);
|
|
3463
|
-
});
|
|
3464
|
-
};
|
|
3465
|
-
(e.race = function (t) {
|
|
3466
|
-
return o(t, void 0);
|
|
3467
|
-
}),
|
|
3468
|
-
(e.prototype.race = function () {
|
|
3469
|
-
return o(this, void 0);
|
|
3470
|
-
});
|
|
3471
|
-
};
|
|
3472
|
-
},
|
|
3473
|
-
{ "./util": 36 }
|
|
3474
|
-
],
|
|
3475
|
-
|
|
3476
|
-
28: [
|
|
3477
|
-
function (t, e, n) {
|
|
3478
|
-
"use strict";
|
|
3479
|
-
e.exports = function (e, n, r, i, o, s) {
|
|
3480
|
-
function a(t, n, r, i) {
|
|
3481
|
-
this.constructor$(t);
|
|
3482
|
-
var s = h();
|
|
3483
|
-
(this._fn = null === s ? n : f.domainBind(s, n)),
|
|
3484
|
-
void 0 !== r &&
|
|
3485
|
-
((r = e.resolve(r)), r._attachCancellationCallback(this)),
|
|
3486
|
-
(this._initialValue = r),
|
|
3487
|
-
(this._currentCancellable = null),
|
|
3488
|
-
i === o
|
|
3489
|
-
? (this._eachValues = Array(this._length))
|
|
3490
|
-
: 0 === i
|
|
3491
|
-
? (this._eachValues = null)
|
|
3492
|
-
: (this._eachValues = void 0),
|
|
3493
|
-
this._promise._captureStackTrace(),
|
|
3494
|
-
this._init$(void 0, -5);
|
|
3495
|
-
}
|
|
3496
|
-
function c(t, e) {
|
|
3497
|
-
this.isFulfilled() ? e._resolve(t) : e._reject(t);
|
|
3498
|
-
}
|
|
3499
|
-
function l(t, e, n, i) {
|
|
3500
|
-
if ("function" != typeof e)
|
|
3501
|
-
return r("expecting a function but got " + f.classString(e));
|
|
3502
|
-
var o = new a(t, e, n, i);
|
|
3503
|
-
return o.promise();
|
|
3504
|
-
}
|
|
3505
|
-
function u(t) {
|
|
3506
|
-
(this.accum = t), this.array._gotAccum(t);
|
|
3507
|
-
var n = i(this.value, this.array._promise);
|
|
3508
|
-
return n instanceof e
|
|
3509
|
-
? ((this.array._currentCancellable = n),
|
|
3510
|
-
n._then(p, void 0, void 0, this, void 0))
|
|
3511
|
-
: p.call(this, n);
|
|
3512
|
-
}
|
|
3513
|
-
function p(t) {
|
|
3514
|
-
var n = this.array,
|
|
3515
|
-
r = n._promise,
|
|
3516
|
-
i = _(n._fn);
|
|
3517
|
-
r._pushContext();
|
|
3518
|
-
var o;
|
|
3519
|
-
(o =
|
|
3520
|
-
void 0 !== n._eachValues
|
|
3521
|
-
? i.call(r._boundValue(), t, this.index, this.length)
|
|
3522
|
-
: i.call(
|
|
3523
|
-
r._boundValue(),
|
|
3524
|
-
this.accum,
|
|
3525
|
-
t,
|
|
3526
|
-
this.index,
|
|
3527
|
-
this.length
|
|
3528
|
-
)),
|
|
3529
|
-
o instanceof e && (n._currentCancellable = o);
|
|
3530
|
-
var a = r._popContext();
|
|
3531
|
-
return (
|
|
3532
|
-
s.checkForgottenReturns(
|
|
3533
|
-
o,
|
|
3534
|
-
a,
|
|
3535
|
-
void 0 !== n._eachValues ? "Promise.each" : "Promise.reduce",
|
|
3536
|
-
r
|
|
3537
|
-
),
|
|
3538
|
-
o
|
|
3539
|
-
);
|
|
3540
|
-
}
|
|
3541
|
-
var h = e._getDomain,
|
|
3542
|
-
f = t("./util"),
|
|
3543
|
-
_ = f.tryCatch;
|
|
3544
|
-
f.inherits(a, n),
|
|
3545
|
-
(a.prototype._gotAccum = function (t) {
|
|
3546
|
-
void 0 !== this._eachValues &&
|
|
3547
|
-
null !== this._eachValues &&
|
|
3548
|
-
t !== o &&
|
|
3549
|
-
this._eachValues.push(t);
|
|
3550
|
-
}),
|
|
3551
|
-
(a.prototype._eachComplete = function (t) {
|
|
3552
|
-
return (
|
|
3553
|
-
null !== this._eachValues && this._eachValues.push(t),
|
|
3554
|
-
this._eachValues
|
|
3555
|
-
);
|
|
3556
|
-
}),
|
|
3557
|
-
(a.prototype._init = function () {}),
|
|
3558
|
-
(a.prototype._resolveEmptyArray = function () {
|
|
3559
|
-
this._resolve(
|
|
3560
|
-
void 0 !== this._eachValues
|
|
3561
|
-
? this._eachValues
|
|
3562
|
-
: this._initialValue
|
|
3563
|
-
);
|
|
3564
|
-
}),
|
|
3565
|
-
(a.prototype.shouldCopyValues = function () {
|
|
3566
|
-
return !1;
|
|
3567
|
-
}),
|
|
3568
|
-
(a.prototype._resolve = function (t) {
|
|
3569
|
-
this._promise._resolveCallback(t), (this._values = null);
|
|
3570
|
-
}),
|
|
3571
|
-
(a.prototype._resultCancelled = function (t) {
|
|
3572
|
-
return t === this._initialValue
|
|
3573
|
-
? this._cancel()
|
|
3574
|
-
: void (
|
|
3575
|
-
this._isResolved() ||
|
|
3576
|
-
(this._resultCancelled$(),
|
|
3577
|
-
this._currentCancellable instanceof e &&
|
|
3578
|
-
this._currentCancellable.cancel(),
|
|
3579
|
-
this._initialValue instanceof e &&
|
|
3580
|
-
this._initialValue.cancel())
|
|
3581
|
-
);
|
|
3582
|
-
}),
|
|
3583
|
-
(a.prototype._iterate = function (t) {
|
|
3584
|
-
this._values = t;
|
|
3585
|
-
var n,
|
|
3586
|
-
r,
|
|
3587
|
-
i = t.length;
|
|
3588
|
-
if (
|
|
3589
|
-
(void 0 !== this._initialValue
|
|
3590
|
-
? ((n = this._initialValue), (r = 0))
|
|
3591
|
-
: ((n = e.resolve(t[0])), (r = 1)),
|
|
3592
|
-
(this._currentCancellable = n),
|
|
3593
|
-
!n.isRejected())
|
|
3594
|
-
)
|
|
3595
|
-
for (; i > r; ++r) {
|
|
3596
|
-
var o = {
|
|
3597
|
-
accum: null,
|
|
3598
|
-
value: t[r],
|
|
3599
|
-
index: r,
|
|
3600
|
-
length: i,
|
|
3601
|
-
array: this
|
|
3602
|
-
};
|
|
3603
|
-
|
|
3604
|
-
n = n._then(u, void 0, void 0, o, void 0);
|
|
3605
|
-
}
|
|
3606
|
-
void 0 !== this._eachValues &&
|
|
3607
|
-
(n = n._then(
|
|
3608
|
-
this._eachComplete,
|
|
3609
|
-
void 0,
|
|
3610
|
-
void 0,
|
|
3611
|
-
this,
|
|
3612
|
-
void 0
|
|
3613
|
-
)),
|
|
3614
|
-
n._then(c, c, void 0, n, this);
|
|
3615
|
-
}),
|
|
3616
|
-
(e.prototype.reduce = function (t, e) {
|
|
3617
|
-
return l(this, t, e, null);
|
|
3618
|
-
}),
|
|
3619
|
-
(e.reduce = function (t, e, n, r) {
|
|
3620
|
-
return l(t, e, n, r);
|
|
3621
|
-
});
|
|
3622
|
-
};
|
|
3623
|
-
},
|
|
3624
|
-
{ "./util": 36 }
|
|
3625
|
-
],
|
|
3626
|
-
|
|
3627
|
-
29: [
|
|
3628
|
-
function (t, e, n) {
|
|
3629
|
-
"use strict";
|
|
3630
|
-
var r,
|
|
3631
|
-
i = t("./util"),
|
|
3632
|
-
o = function () {
|
|
3633
|
-
throw new Error(
|
|
3634
|
-
"No async scheduler available\n\n See http://goo.gl/MqrFmX\n"
|
|
3635
|
-
);
|
|
3636
|
-
},
|
|
3637
|
-
s = i.getNativePromise();
|
|
3638
|
-
if (i.isNode && "undefined" == typeof MutationObserver) {
|
|
3639
|
-
var a = global.setImmediate,
|
|
3640
|
-
c = process.nextTick;
|
|
3641
|
-
r = i.isRecentNode
|
|
3642
|
-
? function (t) {
|
|
3643
|
-
a.call(global, t);
|
|
3644
|
-
}
|
|
3645
|
-
: function (t) {
|
|
3646
|
-
c.call(process, t);
|
|
3647
|
-
};
|
|
3648
|
-
} else if ("function" == typeof s && "function" == typeof s.resolve) {
|
|
3649
|
-
var l = s.resolve();
|
|
3650
|
-
r = function (t) {
|
|
3651
|
-
l.then(t);
|
|
3652
|
-
};
|
|
3653
|
-
} else
|
|
3654
|
-
r =
|
|
3655
|
-
"undefined" != typeof MutationObserver &&
|
|
3656
|
-
("undefined" == typeof window ||
|
|
3657
|
-
!window.navigator ||
|
|
3658
|
-
(!window.navigator.standalone && !window.cordova)) &&
|
|
3659
|
-
"classList" in document.documentElement
|
|
3660
|
-
? (function () {
|
|
3661
|
-
var t = document.createElement("div"),
|
|
3662
|
-
e = { attributes: !0 },
|
|
3663
|
-
n = !1,
|
|
3664
|
-
r = document.createElement("div"),
|
|
3665
|
-
i = new MutationObserver(function () {
|
|
3666
|
-
t.classList.toggle("foo"), (n = !1);
|
|
3667
|
-
});
|
|
3668
|
-
i.observe(r, e);
|
|
3669
|
-
var o = function () {
|
|
3670
|
-
n || ((n = !0), r.classList.toggle("foo"));
|
|
3671
|
-
};
|
|
3672
|
-
return function (n) {
|
|
3673
|
-
var r = new MutationObserver(function () {
|
|
3674
|
-
r.disconnect(), n();
|
|
3675
|
-
});
|
|
3676
|
-
r.observe(t, e), o();
|
|
3677
|
-
};
|
|
3678
|
-
})()
|
|
3679
|
-
: "undefined" != typeof setImmediate
|
|
3680
|
-
? function (t) {
|
|
3681
|
-
setImmediate(t);
|
|
3682
|
-
}
|
|
3683
|
-
: "undefined" != typeof setTimeout
|
|
3684
|
-
? function (t) {
|
|
3685
|
-
setTimeout(t, 0);
|
|
3686
|
-
}
|
|
3687
|
-
: o;
|
|
3688
|
-
e.exports = r;
|
|
3689
|
-
},
|
|
3690
|
-
{ "./util": 36 }
|
|
3691
|
-
],
|
|
3692
|
-
|
|
3693
|
-
30: [
|
|
3694
|
-
function (t, e, n) {
|
|
3695
|
-
"use strict";
|
|
3696
|
-
e.exports = function (e, n, r) {
|
|
3697
|
-
function i(t) {
|
|
3698
|
-
this.constructor$(t);
|
|
3699
|
-
}
|
|
3700
|
-
var o = e.PromiseInspection,
|
|
3701
|
-
s = t("./util");
|
|
3702
|
-
s.inherits(i, n),
|
|
3703
|
-
(i.prototype._promiseResolved = function (t, e) {
|
|
3704
|
-
this._values[t] = e;
|
|
3705
|
-
var n = ++this._totalResolved;
|
|
3706
|
-
return n >= this._length
|
|
3707
|
-
? (this._resolve(this._values), !0)
|
|
3708
|
-
: !1;
|
|
3709
|
-
}),
|
|
3710
|
-
(i.prototype._promiseFulfilled = function (t, e) {
|
|
3711
|
-
var n = new o();
|
|
3712
|
-
return (
|
|
3713
|
-
(n._bitField = 33554432),
|
|
3714
|
-
(n._settledValueField = t),
|
|
3715
|
-
this._promiseResolved(e, n)
|
|
3716
|
-
);
|
|
3717
|
-
}),
|
|
3718
|
-
(i.prototype._promiseRejected = function (t, e) {
|
|
3719
|
-
var n = new o();
|
|
3720
|
-
return (
|
|
3721
|
-
(n._bitField = 16777216),
|
|
3722
|
-
(n._settledValueField = t),
|
|
3723
|
-
this._promiseResolved(e, n)
|
|
3724
|
-
);
|
|
3725
|
-
}),
|
|
3726
|
-
(e.settle = function (t) {
|
|
3727
|
-
return (
|
|
3728
|
-
r.deprecated(".settle()", ".reflect()"), new i(t).promise()
|
|
3729
|
-
);
|
|
3730
|
-
}),
|
|
3731
|
-
(e.prototype.settle = function () {
|
|
3732
|
-
return e.settle(this);
|
|
3733
|
-
});
|
|
3734
|
-
};
|
|
3735
|
-
},
|
|
3736
|
-
{ "./util": 36 }
|
|
3737
|
-
],
|
|
3738
|
-
|
|
3739
|
-
31: [
|
|
3740
|
-
function (t, e, n) {
|
|
3741
|
-
"use strict";
|
|
3742
|
-
e.exports = function (e, n, r) {
|
|
3743
|
-
function i(t) {
|
|
3744
|
-
this.constructor$(t),
|
|
3745
|
-
(this._howMany = 0),
|
|
3746
|
-
(this._unwrap = !1),
|
|
3747
|
-
(this._initialized = !1);
|
|
3748
|
-
}
|
|
3749
|
-
function o(t, e) {
|
|
3750
|
-
if ((0 | e) !== e || 0 > e)
|
|
3751
|
-
return r(
|
|
3752
|
-
"expecting a positive integer\n\n See http://goo.gl/MqrFmX\n"
|
|
3753
|
-
);
|
|
3754
|
-
|
|
3755
|
-
var n = new i(t),
|
|
3756
|
-
o = n.promise();
|
|
3757
|
-
return n.setHowMany(e), n.init(), o;
|
|
3758
|
-
}
|
|
3759
|
-
var s = t("./util"),
|
|
3760
|
-
a = t("./errors").RangeError,
|
|
3761
|
-
c = t("./errors").AggregateError,
|
|
3762
|
-
l = s.isArray,
|
|
3763
|
-
u = {};
|
|
3764
|
-
s.inherits(i, n),
|
|
3765
|
-
(i.prototype._init = function () {
|
|
3766
|
-
if (this._initialized) {
|
|
3767
|
-
if (0 === this._howMany) return void this._resolve([]);
|
|
3768
|
-
this._init$(void 0, -5);
|
|
3769
|
-
var t = l(this._values);
|
|
3770
|
-
!this._isResolved() &&
|
|
3771
|
-
t &&
|
|
3772
|
-
this._howMany > this._canPossiblyFulfill() &&
|
|
3773
|
-
this._reject(this._getRangeError(this.length()));
|
|
3774
|
-
}
|
|
3775
|
-
}),
|
|
3776
|
-
(i.prototype.init = function () {
|
|
3777
|
-
(this._initialized = !0), this._init();
|
|
3778
|
-
}),
|
|
3779
|
-
(i.prototype.setUnwrap = function () {
|
|
3780
|
-
this._unwrap = !0;
|
|
3781
|
-
}),
|
|
3782
|
-
(i.prototype.howMany = function () {
|
|
3783
|
-
return this._howMany;
|
|
3784
|
-
}),
|
|
3785
|
-
(i.prototype.setHowMany = function (t) {
|
|
3786
|
-
this._howMany = t;
|
|
3787
|
-
}),
|
|
3788
|
-
(i.prototype._promiseFulfilled = function (t) {
|
|
3789
|
-
return (
|
|
3790
|
-
this._addFulfilled(t),
|
|
3791
|
-
this._fulfilled() === this.howMany()
|
|
3792
|
-
? ((this._values.length = this.howMany()),
|
|
3793
|
-
1 === this.howMany() && this._unwrap
|
|
3794
|
-
? this._resolve(this._values[0])
|
|
3795
|
-
: this._resolve(this._values),
|
|
3796
|
-
!0)
|
|
3797
|
-
: !1
|
|
3798
|
-
);
|
|
3799
|
-
}),
|
|
3800
|
-
(i.prototype._promiseRejected = function (t) {
|
|
3801
|
-
return this._addRejected(t), this._checkOutcome();
|
|
3802
|
-
}),
|
|
3803
|
-
(i.prototype._promiseCancelled = function () {
|
|
3804
|
-
return this._values instanceof e || null == this._values
|
|
3805
|
-
? this._cancel()
|
|
3806
|
-
: (this._addRejected(u), this._checkOutcome());
|
|
3807
|
-
}),
|
|
3808
|
-
(i.prototype._checkOutcome = function () {
|
|
3809
|
-
if (this.howMany() > this._canPossiblyFulfill()) {
|
|
3810
|
-
for (
|
|
3811
|
-
var t = new c(), e = this.length();
|
|
3812
|
-
e < this._values.length;
|
|
3813
|
-
++e
|
|
3814
|
-
)
|
|
3815
|
-
this._values[e] !== u && t.push(this._values[e]);
|
|
3816
|
-
return t.length > 0 ? this._reject(t) : this._cancel(), !0;
|
|
3817
|
-
}
|
|
3818
|
-
return !1;
|
|
3819
|
-
}),
|
|
3820
|
-
(i.prototype._fulfilled = function () {
|
|
3821
|
-
return this._totalResolved;
|
|
3822
|
-
}),
|
|
3823
|
-
(i.prototype._rejected = function () {
|
|
3824
|
-
return this._values.length - this.length();
|
|
3825
|
-
}),
|
|
3826
|
-
(i.prototype._addRejected = function (t) {
|
|
3827
|
-
this._values.push(t);
|
|
3828
|
-
}),
|
|
3829
|
-
(i.prototype._addFulfilled = function (t) {
|
|
3830
|
-
this._values[this._totalResolved++] = t;
|
|
3831
|
-
}),
|
|
3832
|
-
(i.prototype._canPossiblyFulfill = function () {
|
|
3833
|
-
return this.length() - this._rejected();
|
|
3834
|
-
}),
|
|
3835
|
-
(i.prototype._getRangeError = function (t) {
|
|
3836
|
-
var e =
|
|
3837
|
-
"Input array must contain at least " +
|
|
3838
|
-
this._howMany +
|
|
3839
|
-
" items but contains only " +
|
|
3840
|
-
t +
|
|
3841
|
-
" items";
|
|
3842
|
-
return new a(e);
|
|
3843
|
-
}),
|
|
3844
|
-
(i.prototype._resolveEmptyArray = function () {
|
|
3845
|
-
this._reject(this._getRangeError(0));
|
|
3846
|
-
}),
|
|
3847
|
-
(e.some = function (t, e) {
|
|
3848
|
-
return o(t, e);
|
|
3849
|
-
}),
|
|
3850
|
-
(e.prototype.some = function (t) {
|
|
3851
|
-
return o(this, t);
|
|
3852
|
-
}),
|
|
3853
|
-
(e._SomePromiseArray = i);
|
|
3854
|
-
};
|
|
3855
|
-
},
|
|
3856
|
-
{ "./errors": 12, "./util": 36 }
|
|
3857
|
-
],
|
|
3858
|
-
|
|
3859
|
-
32: [
|
|
3860
|
-
function (t, e, n) {
|
|
3861
|
-
"use strict";
|
|
3862
|
-
e.exports = function (t) {
|
|
3863
|
-
function e(t) {
|
|
3864
|
-
void 0 !== t
|
|
3865
|
-
? ((t = t._target()),
|
|
3866
|
-
(this._bitField = t._bitField),
|
|
3867
|
-
(this._settledValueField = t._isFateSealed()
|
|
3868
|
-
? t._settledValue()
|
|
3869
|
-
: void 0))
|
|
3870
|
-
: ((this._bitField = 0), (this._settledValueField = void 0));
|
|
3871
|
-
}
|
|
3872
|
-
e.prototype._settledValue = function () {
|
|
3873
|
-
return this._settledValueField;
|
|
3874
|
-
};
|
|
3875
|
-
var n = (e.prototype.value = function () {
|
|
3876
|
-
if (!this.isFulfilled())
|
|
3877
|
-
throw new TypeError(
|
|
3878
|
-
"cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n"
|
|
3879
|
-
);
|
|
3880
|
-
|
|
3881
|
-
return this._settledValue();
|
|
3882
|
-
}),
|
|
3883
|
-
r =
|
|
3884
|
-
(e.prototype.error =
|
|
3885
|
-
e.prototype.reason =
|
|
3886
|
-
function () {
|
|
3887
|
-
if (!this.isRejected())
|
|
3888
|
-
throw new TypeError(
|
|
3889
|
-
"cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n"
|
|
3890
|
-
);
|
|
3891
|
-
|
|
3892
|
-
return this._settledValue();
|
|
3893
|
-
}),
|
|
3894
|
-
i = (e.prototype.isFulfilled = function () {
|
|
3895
|
-
return 0 !== (33554432 & this._bitField);
|
|
3896
|
-
}),
|
|
3897
|
-
o = (e.prototype.isRejected = function () {
|
|
3898
|
-
return 0 !== (16777216 & this._bitField);
|
|
3899
|
-
}),
|
|
3900
|
-
s = (e.prototype.isPending = function () {
|
|
3901
|
-
return 0 === (50397184 & this._bitField);
|
|
3902
|
-
}),
|
|
3903
|
-
a = (e.prototype.isResolved = function () {
|
|
3904
|
-
return 0 !== (50331648 & this._bitField);
|
|
3905
|
-
});
|
|
3906
|
-
(e.prototype.isCancelled = function () {
|
|
3907
|
-
return 0 !== (8454144 & this._bitField);
|
|
3908
|
-
}),
|
|
3909
|
-
(t.prototype.__isCancelled = function () {
|
|
3910
|
-
return 65536 === (65536 & this._bitField);
|
|
3911
|
-
}),
|
|
3912
|
-
(t.prototype._isCancelled = function () {
|
|
3913
|
-
return this._target().__isCancelled();
|
|
3914
|
-
}),
|
|
3915
|
-
(t.prototype.isCancelled = function () {
|
|
3916
|
-
return 0 !== (8454144 & this._target()._bitField);
|
|
3917
|
-
}),
|
|
3918
|
-
(t.prototype.isPending = function () {
|
|
3919
|
-
return s.call(this._target());
|
|
3920
|
-
}),
|
|
3921
|
-
(t.prototype.isRejected = function () {
|
|
3922
|
-
return o.call(this._target());
|
|
3923
|
-
}),
|
|
3924
|
-
(t.prototype.isFulfilled = function () {
|
|
3925
|
-
return i.call(this._target());
|
|
3926
|
-
}),
|
|
3927
|
-
(t.prototype.isResolved = function () {
|
|
3928
|
-
return a.call(this._target());
|
|
3929
|
-
}),
|
|
3930
|
-
(t.prototype.value = function () {
|
|
3931
|
-
return n.call(this._target());
|
|
3932
|
-
}),
|
|
3933
|
-
(t.prototype.reason = function () {
|
|
3934
|
-
var t = this._target();
|
|
3935
|
-
return t._unsetRejectionIsUnhandled(), r.call(t);
|
|
3936
|
-
}),
|
|
3937
|
-
(t.prototype._value = function () {
|
|
3938
|
-
return this._settledValue();
|
|
3939
|
-
}),
|
|
3940
|
-
(t.prototype._reason = function () {
|
|
3941
|
-
return this._unsetRejectionIsUnhandled(), this._settledValue();
|
|
3942
|
-
}),
|
|
3943
|
-
(t.PromiseInspection = e);
|
|
3944
|
-
};
|
|
3945
|
-
},
|
|
3946
|
-
{}
|
|
3947
|
-
],
|
|
3948
|
-
|
|
3949
|
-
33: [
|
|
3950
|
-
function (t, e, n) {
|
|
3951
|
-
"use strict";
|
|
3952
|
-
e.exports = function (e, n) {
|
|
3953
|
-
function r(t, r) {
|
|
3954
|
-
if (u(t)) {
|
|
3955
|
-
if (t instanceof e) return t;
|
|
3956
|
-
var i = o(t);
|
|
3957
|
-
if (i === l) {
|
|
3958
|
-
r && r._pushContext();
|
|
3959
|
-
var c = e.reject(i.e);
|
|
3960
|
-
return r && r._popContext(), c;
|
|
3961
|
-
}
|
|
3962
|
-
if ("function" == typeof i) {
|
|
3963
|
-
if (s(t)) {
|
|
3964
|
-
var c = new e(n);
|
|
3965
|
-
return t._then(c._fulfill, c._reject, void 0, c, null), c;
|
|
3966
|
-
}
|
|
3967
|
-
return a(t, i, r);
|
|
3968
|
-
}
|
|
3969
|
-
}
|
|
3970
|
-
return t;
|
|
3971
|
-
}
|
|
3972
|
-
function i(t) {
|
|
3973
|
-
return t.then;
|
|
3974
|
-
}
|
|
3975
|
-
function o(t) {
|
|
3976
|
-
try {
|
|
3977
|
-
return i(t);
|
|
3978
|
-
} catch (e) {
|
|
3979
|
-
return (l.e = e), l;
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
function s(t) {
|
|
3983
|
-
try {
|
|
3984
|
-
return p.call(t, "_promise0");
|
|
3985
|
-
} catch (e) {
|
|
3986
|
-
return !1;
|
|
3987
|
-
}
|
|
3988
|
-
}
|
|
3989
|
-
function a(t, r, i) {
|
|
3990
|
-
function o(t) {
|
|
3991
|
-
a && (a._resolveCallback(t), (a = null));
|
|
3992
|
-
}
|
|
3993
|
-
function s(t) {
|
|
3994
|
-
a && (a._rejectCallback(t, p, !0), (a = null));
|
|
3995
|
-
}
|
|
3996
|
-
var a = new e(n),
|
|
3997
|
-
u = a;
|
|
3998
|
-
i && i._pushContext(),
|
|
3999
|
-
a._captureStackTrace(),
|
|
4000
|
-
i && i._popContext();
|
|
4001
|
-
var p = !0,
|
|
4002
|
-
h = c.tryCatch(r).call(t, o, s);
|
|
4003
|
-
return (
|
|
4004
|
-
(p = !1),
|
|
4005
|
-
a && h === l && (a._rejectCallback(h.e, !0, !0), (a = null)),
|
|
4006
|
-
u
|
|
4007
|
-
);
|
|
4008
|
-
}
|
|
4009
|
-
var c = t("./util"),
|
|
4010
|
-
l = c.errorObj,
|
|
4011
|
-
u = c.isObject,
|
|
4012
|
-
p = {}.hasOwnProperty;
|
|
4013
|
-
return r;
|
|
4014
|
-
};
|
|
4015
|
-
},
|
|
4016
|
-
{ "./util": 36 }
|
|
4017
|
-
],
|
|
4018
|
-
|
|
4019
|
-
34: [
|
|
4020
|
-
function (t, e, n) {
|
|
4021
|
-
"use strict";
|
|
4022
|
-
e.exports = function (e, n, r) {
|
|
4023
|
-
function i(t) {
|
|
4024
|
-
this.handle = t;
|
|
4025
|
-
}
|
|
4026
|
-
function o(t) {
|
|
4027
|
-
return clearTimeout(this.handle), t;
|
|
4028
|
-
}
|
|
4029
|
-
function s(t) {
|
|
4030
|
-
throw (clearTimeout(this.handle), t);
|
|
4031
|
-
}
|
|
4032
|
-
var a = t("./util"),
|
|
4033
|
-
c = e.TimeoutError;
|
|
4034
|
-
i.prototype._resultCancelled = function () {
|
|
4035
|
-
clearTimeout(this.handle);
|
|
4036
|
-
};
|
|
4037
|
-
var l = function (t) {
|
|
4038
|
-
return u(+this).thenReturn(t);
|
|
4039
|
-
},
|
|
4040
|
-
u = (e.delay = function (t, o) {
|
|
4041
|
-
var s, a;
|
|
4042
|
-
return (
|
|
4043
|
-
void 0 !== o
|
|
4044
|
-
? ((s = e.resolve(o)._then(l, null, null, t, void 0)),
|
|
4045
|
-
r.cancellation() && o instanceof e && s._setOnCancel(o))
|
|
4046
|
-
: ((s = new e(n)),
|
|
4047
|
-
(a = setTimeout(function () {
|
|
4048
|
-
s._fulfill();
|
|
4049
|
-
}, +t)),
|
|
4050
|
-
r.cancellation() && s._setOnCancel(new i(a)),
|
|
4051
|
-
s._captureStackTrace()),
|
|
4052
|
-
s._setAsyncGuaranteed(),
|
|
4053
|
-
s
|
|
4054
|
-
);
|
|
4055
|
-
});
|
|
4056
|
-
e.prototype.delay = function (t) {
|
|
4057
|
-
return u(t, this);
|
|
4058
|
-
};
|
|
4059
|
-
var p = function (t, e, n) {
|
|
4060
|
-
var r;
|
|
4061
|
-
(r =
|
|
4062
|
-
"string" != typeof e
|
|
4063
|
-
? e instanceof Error
|
|
4064
|
-
? e
|
|
4065
|
-
: new c("operation timed out")
|
|
4066
|
-
: new c(e)),
|
|
4067
|
-
a.markAsOriginatingFromRejection(r),
|
|
4068
|
-
t._attachExtraTrace(r),
|
|
4069
|
-
t._reject(r),
|
|
4070
|
-
null != n && n.cancel();
|
|
4071
|
-
};
|
|
4072
|
-
e.prototype.timeout = function (t, e) {
|
|
4073
|
-
t = +t;
|
|
4074
|
-
var n,
|
|
4075
|
-
a,
|
|
4076
|
-
c = new i(
|
|
4077
|
-
setTimeout(function () {
|
|
4078
|
-
n.isPending() && p(n, e, a);
|
|
4079
|
-
}, t)
|
|
4080
|
-
);
|
|
4081
|
-
|
|
4082
|
-
return (
|
|
4083
|
-
r.cancellation()
|
|
4084
|
-
? ((a = this.then()),
|
|
4085
|
-
(n = a._then(o, s, void 0, c, void 0)),
|
|
4086
|
-
n._setOnCancel(c))
|
|
4087
|
-
: (n = this._then(o, s, void 0, c, void 0)),
|
|
4088
|
-
n
|
|
4089
|
-
);
|
|
4090
|
-
};
|
|
4091
|
-
};
|
|
4092
|
-
},
|
|
4093
|
-
{ "./util": 36 }
|
|
4094
|
-
],
|
|
4095
|
-
|
|
4096
|
-
35: [
|
|
4097
|
-
function (t, e, n) {
|
|
4098
|
-
"use strict";
|
|
4099
|
-
e.exports = function (e, n, r, i, o, s) {
|
|
4100
|
-
function a(t) {
|
|
4101
|
-
setTimeout(function () {
|
|
4102
|
-
throw t;
|
|
4103
|
-
}, 0);
|
|
4104
|
-
}
|
|
4105
|
-
function c(t) {
|
|
4106
|
-
var e = r(t);
|
|
4107
|
-
return (
|
|
4108
|
-
e !== t &&
|
|
4109
|
-
"function" == typeof t._isDisposable &&
|
|
4110
|
-
"function" == typeof t._getDisposer &&
|
|
4111
|
-
t._isDisposable() &&
|
|
4112
|
-
e._setDisposable(t._getDisposer()),
|
|
4113
|
-
e
|
|
4114
|
-
);
|
|
4115
|
-
}
|
|
4116
|
-
function l(t, n) {
|
|
4117
|
-
function i() {
|
|
4118
|
-
if (s >= l) return u._fulfill();
|
|
4119
|
-
var o = c(t[s++]);
|
|
4120
|
-
if (o instanceof e && o._isDisposable()) {
|
|
4121
|
-
try {
|
|
4122
|
-
o = r(o._getDisposer().tryDispose(n), t.promise);
|
|
4123
|
-
} catch (p) {
|
|
4124
|
-
return a(p);
|
|
4125
|
-
}
|
|
4126
|
-
if (o instanceof e) return o._then(i, a, null, null, null);
|
|
4127
|
-
}
|
|
4128
|
-
i();
|
|
4129
|
-
}
|
|
4130
|
-
var s = 0,
|
|
4131
|
-
l = t.length,
|
|
4132
|
-
u = new e(o);
|
|
4133
|
-
return i(), u;
|
|
4134
|
-
}
|
|
4135
|
-
function u(t, e, n) {
|
|
4136
|
-
(this._data = t), (this._promise = e), (this._context = n);
|
|
4137
|
-
}
|
|
4138
|
-
function p(t, e, n) {
|
|
4139
|
-
this.constructor$(t, e, n);
|
|
4140
|
-
}
|
|
4141
|
-
function h(t) {
|
|
4142
|
-
return u.isDisposer(t)
|
|
4143
|
-
? (this.resources[this.index]._setDisposable(t), t.promise())
|
|
4144
|
-
: t;
|
|
4145
|
-
}
|
|
4146
|
-
function f(t) {
|
|
4147
|
-
(this.length = t), (this.promise = null), (this[t - 1] = null);
|
|
4148
|
-
}
|
|
4149
|
-
var _ = t("./util"),
|
|
4150
|
-
d = t("./errors").TypeError,
|
|
4151
|
-
v = t("./util").inherits,
|
|
4152
|
-
y = _.errorObj,
|
|
4153
|
-
m = _.tryCatch,
|
|
4154
|
-
g = {};
|
|
4155
|
-
(u.prototype.data = function () {
|
|
4156
|
-
return this._data;
|
|
4157
|
-
}),
|
|
4158
|
-
(u.prototype.promise = function () {
|
|
4159
|
-
return this._promise;
|
|
4160
|
-
}),
|
|
4161
|
-
(u.prototype.resource = function () {
|
|
4162
|
-
return this.promise().isFulfilled()
|
|
4163
|
-
? this.promise().value()
|
|
4164
|
-
: g;
|
|
4165
|
-
}),
|
|
4166
|
-
(u.prototype.tryDispose = function (t) {
|
|
4167
|
-
var e = this.resource(),
|
|
4168
|
-
n = this._context;
|
|
4169
|
-
void 0 !== n && n._pushContext();
|
|
4170
|
-
var r = e !== g ? this.doDispose(e, t) : null;
|
|
4171
|
-
return (
|
|
4172
|
-
void 0 !== n && n._popContext(),
|
|
4173
|
-
this._promise._unsetDisposable(),
|
|
4174
|
-
(this._data = null),
|
|
4175
|
-
r
|
|
4176
|
-
);
|
|
4177
|
-
}),
|
|
4178
|
-
(u.isDisposer = function (t) {
|
|
4179
|
-
return (
|
|
4180
|
-
null != t &&
|
|
4181
|
-
"function" == typeof t.resource &&
|
|
4182
|
-
"function" == typeof t.tryDispose
|
|
4183
|
-
);
|
|
4184
|
-
}),
|
|
4185
|
-
v(p, u),
|
|
4186
|
-
(p.prototype.doDispose = function (t, e) {
|
|
4187
|
-
var n = this.data();
|
|
4188
|
-
return n.call(t, t, e);
|
|
4189
|
-
}),
|
|
4190
|
-
(f.prototype._resultCancelled = function () {
|
|
4191
|
-
for (var t = this.length, n = 0; t > n; ++n) {
|
|
4192
|
-
var r = this[n];
|
|
4193
|
-
r instanceof e && r.cancel();
|
|
4194
|
-
}
|
|
4195
|
-
}),
|
|
4196
|
-
(e.using = function () {
|
|
4197
|
-
var t = arguments.length;
|
|
4198
|
-
if (2 > t)
|
|
4199
|
-
return n(
|
|
4200
|
-
"you must pass at least 2 arguments to Promise.using"
|
|
4201
|
-
);
|
|
4202
|
-
|
|
4203
|
-
var i = arguments[t - 1];
|
|
4204
|
-
if ("function" != typeof i)
|
|
4205
|
-
return n("expecting a function but got " + _.classString(i));
|
|
4206
|
-
var o,
|
|
4207
|
-
a = !0;
|
|
4208
|
-
2 === t && Array.isArray(arguments[0])
|
|
4209
|
-
? ((o = arguments[0]), (t = o.length), (a = !1))
|
|
4210
|
-
: ((o = arguments), t--);
|
|
4211
|
-
for (var c = new f(t), p = 0; t > p; ++p) {
|
|
4212
|
-
var d = o[p];
|
|
4213
|
-
if (u.isDisposer(d)) {
|
|
4214
|
-
var v = d;
|
|
4215
|
-
(d = d.promise()), d._setDisposable(v);
|
|
4216
|
-
} else {
|
|
4217
|
-
var g = r(d);
|
|
4218
|
-
g instanceof e &&
|
|
4219
|
-
(d = g._then(
|
|
4220
|
-
h,
|
|
4221
|
-
null,
|
|
4222
|
-
null,
|
|
4223
|
-
{ resources: c, index: p },
|
|
4224
|
-
void 0
|
|
4225
|
-
));
|
|
4226
|
-
}
|
|
4227
|
-
c[p] = d;
|
|
4228
|
-
}
|
|
4229
|
-
for (var b = new Array(c.length), p = 0; p < b.length; ++p)
|
|
4230
|
-
b[p] = e.resolve(c[p]).reflect();
|
|
4231
|
-
var w = e.all(b).then(function (t) {
|
|
4232
|
-
for (var e = 0; e < t.length; ++e) {
|
|
4233
|
-
var n = t[e];
|
|
4234
|
-
if (n.isRejected()) return (y.e = n.error()), y;
|
|
4235
|
-
if (!n.isFulfilled()) return void w.cancel();
|
|
4236
|
-
t[e] = n.value();
|
|
4237
|
-
}
|
|
4238
|
-
C._pushContext(), (i = m(i));
|
|
4239
|
-
var r = a ? i.apply(void 0, t) : i(t),
|
|
4240
|
-
o = C._popContext();
|
|
4241
|
-
return s.checkForgottenReturns(r, o, "Promise.using", C), r;
|
|
4242
|
-
}),
|
|
4243
|
-
C = w.lastly(function () {
|
|
4244
|
-
var t = new e.PromiseInspection(w);
|
|
4245
|
-
return l(c, t);
|
|
4246
|
-
});
|
|
4247
|
-
return (c.promise = C), C._setOnCancel(c), C;
|
|
4248
|
-
}),
|
|
4249
|
-
(e.prototype._setDisposable = function (t) {
|
|
4250
|
-
(this._bitField = 131072 | this._bitField),
|
|
4251
|
-
(this._disposer = t);
|
|
4252
|
-
}),
|
|
4253
|
-
(e.prototype._isDisposable = function () {
|
|
4254
|
-
return (131072 & this._bitField) > 0;
|
|
4255
|
-
}),
|
|
4256
|
-
(e.prototype._getDisposer = function () {
|
|
4257
|
-
return this._disposer;
|
|
4258
|
-
}),
|
|
4259
|
-
(e.prototype._unsetDisposable = function () {
|
|
4260
|
-
(this._bitField = -131073 & this._bitField),
|
|
4261
|
-
(this._disposer = void 0);
|
|
4262
|
-
}),
|
|
4263
|
-
(e.prototype.disposer = function (t) {
|
|
4264
|
-
if ("function" == typeof t) return new p(t, this, i());
|
|
4265
|
-
throw new d();
|
|
4266
|
-
});
|
|
4267
|
-
};
|
|
4268
|
-
},
|
|
4269
|
-
{ "./errors": 12, "./util": 36 }
|
|
4270
|
-
],
|
|
4271
|
-
|
|
4272
|
-
36: [
|
|
4273
|
-
function (t, e, n) {
|
|
4274
|
-
"use strict";
|
|
4275
|
-
function r() {
|
|
4276
|
-
try {
|
|
4277
|
-
var t = P;
|
|
4278
|
-
return (P = null), t.apply(this, arguments);
|
|
4279
|
-
} catch (e) {
|
|
4280
|
-
return (x.e = e), x;
|
|
4281
|
-
}
|
|
4282
|
-
}
|
|
4283
|
-
function i(t) {
|
|
4284
|
-
return (P = t), r;
|
|
4285
|
-
}
|
|
4286
|
-
function o(t) {
|
|
4287
|
-
return (
|
|
4288
|
-
null == t ||
|
|
4289
|
-
t === !0 ||
|
|
4290
|
-
t === !1 ||
|
|
4291
|
-
"string" == typeof t ||
|
|
4292
|
-
"number" == typeof t
|
|
4293
|
-
);
|
|
4294
|
-
}
|
|
4295
|
-
function s(t) {
|
|
4296
|
-
return (
|
|
4297
|
-
"function" == typeof t || ("object" == typeof t && null !== t)
|
|
4298
|
-
);
|
|
4299
|
-
}
|
|
4300
|
-
function a(t) {
|
|
4301
|
-
return o(t) ? new Error(v(t)) : t;
|
|
4302
|
-
}
|
|
4303
|
-
function c(t, e) {
|
|
4304
|
-
var n,
|
|
4305
|
-
r = t.length,
|
|
4306
|
-
i = new Array(r + 1);
|
|
4307
|
-
for (n = 0; r > n; ++n) i[n] = t[n];
|
|
4308
|
-
return (i[n] = e), i;
|
|
4309
|
-
}
|
|
4310
|
-
function l(t, e, n) {
|
|
4311
|
-
if (!F.isES5) return {}.hasOwnProperty.call(t, e) ? t[e] : void 0;
|
|
4312
|
-
var r = Object.getOwnPropertyDescriptor(t, e);
|
|
4313
|
-
return null != r
|
|
4314
|
-
? null == r.get && null == r.set
|
|
4315
|
-
? r.value
|
|
4316
|
-
: n
|
|
4317
|
-
: void 0;
|
|
4318
|
-
}
|
|
4319
|
-
function u(t, e, n) {
|
|
4320
|
-
if (o(t)) return t;
|
|
4321
|
-
var r = {
|
|
4322
|
-
value: n,
|
|
4323
|
-
configurable: !0,
|
|
4324
|
-
enumerable: !1,
|
|
4325
|
-
writable: !0
|
|
4326
|
-
};
|
|
4327
|
-
|
|
4328
|
-
return F.defineProperty(t, e, r), t;
|
|
4329
|
-
}
|
|
4330
|
-
function p(t) {
|
|
4331
|
-
throw t;
|
|
4332
|
-
}
|
|
4333
|
-
function h(t) {
|
|
4334
|
-
try {
|
|
4335
|
-
if ("function" == typeof t) {
|
|
4336
|
-
var e = F.names(t.prototype),
|
|
4337
|
-
n = F.isES5 && e.length > 1,
|
|
4338
|
-
r =
|
|
4339
|
-
e.length > 0 && !(1 === e.length && "constructor" === e[0]),
|
|
4340
|
-
i = A.test(t + "") && F.names(t).length > 0;
|
|
4341
|
-
if (n || r || i) return !0;
|
|
4342
|
-
}
|
|
4343
|
-
return !1;
|
|
4344
|
-
} catch (o) {
|
|
4345
|
-
return !1;
|
|
4346
|
-
}
|
|
4347
|
-
}
|
|
4348
|
-
function f(t) {
|
|
4349
|
-
function e() {}
|
|
4350
|
-
function n() {
|
|
4351
|
-
return typeof r.foo;
|
|
4352
|
-
}
|
|
4353
|
-
e.prototype = t;
|
|
4354
|
-
var r = new e();
|
|
4355
|
-
return n(), n(), t;
|
|
4356
|
-
}
|
|
4357
|
-
function _(t) {
|
|
4358
|
-
return D.test(t);
|
|
4359
|
-
}
|
|
4360
|
-
function d(t, e, n) {
|
|
4361
|
-
for (var r = new Array(t), i = 0; t > i; ++i) r[i] = e + i + n;
|
|
4362
|
-
return r;
|
|
4363
|
-
}
|
|
4364
|
-
function v(t) {
|
|
4365
|
-
try {
|
|
4366
|
-
return t + "";
|
|
4367
|
-
} catch (e) {
|
|
4368
|
-
return "[no string representation]";
|
|
4369
|
-
}
|
|
4370
|
-
}
|
|
4371
|
-
function y(t) {
|
|
4372
|
-
return (
|
|
4373
|
-
t instanceof Error ||
|
|
4374
|
-
(null !== t &&
|
|
4375
|
-
"object" == typeof t &&
|
|
4376
|
-
"string" == typeof t.message &&
|
|
4377
|
-
"string" == typeof t.name)
|
|
4378
|
-
);
|
|
4379
|
-
}
|
|
4380
|
-
function m(t) {
|
|
4381
|
-
try {
|
|
4382
|
-
u(t, "isOperational", !0);
|
|
4383
|
-
} catch (e) {}
|
|
4384
|
-
}
|
|
4385
|
-
function g(t) {
|
|
4386
|
-
return null == t
|
|
4387
|
-
? !1
|
|
4388
|
-
: t instanceof Error.__BluebirdErrorTypes__.OperationalError ||
|
|
4389
|
-
t.isOperational === !0;
|
|
4390
|
-
}
|
|
4391
|
-
function b(t) {
|
|
4392
|
-
return y(t) && F.propertyIsWritable(t, "stack");
|
|
4393
|
-
}
|
|
4394
|
-
function w(t) {
|
|
4395
|
-
return {}.toString.call(t);
|
|
4396
|
-
}
|
|
4397
|
-
function C(t, e, n) {
|
|
4398
|
-
for (var r = F.names(t), i = 0; i < r.length; ++i) {
|
|
4399
|
-
var o = r[i];
|
|
4400
|
-
if (n(o))
|
|
4401
|
-
try {
|
|
4402
|
-
F.defineProperty(e, o, F.getDescriptor(t, o));
|
|
4403
|
-
} catch (s) {}
|
|
4404
|
-
}
|
|
4405
|
-
}
|
|
4406
|
-
function j(t) {
|
|
4407
|
-
return H ? process.env[t] : void 0;
|
|
4408
|
-
}
|
|
4409
|
-
function E() {
|
|
4410
|
-
if ("function" == typeof Promise)
|
|
4411
|
-
try {
|
|
4412
|
-
var t = new Promise(function () {});
|
|
4413
|
-
if ("[object Promise]" === {}.toString.call(t)) return Promise;
|
|
4414
|
-
} catch (e) {}
|
|
4415
|
-
}
|
|
4416
|
-
function k(t, e) {
|
|
4417
|
-
return t.bind(e);
|
|
4418
|
-
}
|
|
4419
|
-
var F = t("./es5"),
|
|
4420
|
-
T = "undefined" == typeof navigator,
|
|
4421
|
-
x = { e: {} },
|
|
4422
|
-
P,
|
|
4423
|
-
S =
|
|
4424
|
-
"undefined" != typeof self
|
|
4425
|
-
? self
|
|
4426
|
-
: "undefined" != typeof window
|
|
4427
|
-
? window
|
|
4428
|
-
: "undefined" != typeof global
|
|
4429
|
-
? global
|
|
4430
|
-
: void 0 !== this
|
|
4431
|
-
? this
|
|
4432
|
-
: null,
|
|
4433
|
-
R = function (t, e) {
|
|
4434
|
-
function n() {
|
|
4435
|
-
(this.constructor = t), (this.constructor$ = e);
|
|
4436
|
-
for (var n in e.prototype)
|
|
4437
|
-
r.call(e.prototype, n) &&
|
|
4438
|
-
"$" !== n.charAt(n.length - 1) &&
|
|
4439
|
-
(this[n + "$"] = e.prototype[n]);
|
|
4440
|
-
}
|
|
4441
|
-
var r = {}.hasOwnProperty;
|
|
4442
|
-
return (
|
|
4443
|
-
(n.prototype = e.prototype),
|
|
4444
|
-
(t.prototype = new n()),
|
|
4445
|
-
t.prototype
|
|
4446
|
-
);
|
|
4447
|
-
},
|
|
4448
|
-
O = (function () {
|
|
4449
|
-
var t = [Array.prototype, Object.prototype, Function.prototype],
|
|
4450
|
-
e = function (e) {
|
|
4451
|
-
for (var n = 0; n < t.length; ++n) if (t[n] === e) return !0;
|
|
4452
|
-
return !1;
|
|
4453
|
-
};
|
|
4454
|
-
if (F.isES5) {
|
|
4455
|
-
var n = Object.getOwnPropertyNames;
|
|
4456
|
-
return function (t) {
|
|
4457
|
-
for (
|
|
4458
|
-
var r = [], i = Object.create(null);
|
|
4459
|
-
null != t && !e(t);
|
|
4460
|
-
|
|
4461
|
-
) {
|
|
4462
|
-
var o;
|
|
4463
|
-
try {
|
|
4464
|
-
o = n(t);
|
|
4465
|
-
} catch (s) {
|
|
4466
|
-
return r;
|
|
4467
|
-
}
|
|
4468
|
-
for (var a = 0; a < o.length; ++a) {
|
|
4469
|
-
var c = o[a];
|
|
4470
|
-
if (!i[c]) {
|
|
4471
|
-
i[c] = !0;
|
|
4472
|
-
var l = Object.getOwnPropertyDescriptor(t, c);
|
|
4473
|
-
null != l &&
|
|
4474
|
-
null == l.get &&
|
|
4475
|
-
null == l.set &&
|
|
4476
|
-
r.push(c);
|
|
4477
|
-
}
|
|
4478
|
-
}
|
|
4479
|
-
t = F.getPrototypeOf(t);
|
|
4480
|
-
}
|
|
4481
|
-
return r;
|
|
4482
|
-
};
|
|
4483
|
-
}
|
|
4484
|
-
var r = {}.hasOwnProperty;
|
|
4485
|
-
return function (n) {
|
|
4486
|
-
if (e(n)) return [];
|
|
4487
|
-
var i = [];
|
|
4488
|
-
t: for (var o in n)
|
|
4489
|
-
if (r.call(n, o)) i.push(o);
|
|
4490
|
-
else {
|
|
4491
|
-
for (var s = 0; s < t.length; ++s)
|
|
4492
|
-
if (r.call(t[s], o)) continue t;
|
|
4493
|
-
i.push(o);
|
|
4494
|
-
}
|
|
4495
|
-
return i;
|
|
4496
|
-
};
|
|
4497
|
-
})(),
|
|
4498
|
-
A = /this\s*\.\s*\S+\s*=/,
|
|
4499
|
-
D = /^[a-z$_][a-z$_0-9]*$/i,
|
|
4500
|
-
V = (function () {
|
|
4501
|
-
return "stack" in new Error()
|
|
4502
|
-
? function (t) {
|
|
4503
|
-
return b(t) ? t : new Error(v(t));
|
|
4504
|
-
}
|
|
4505
|
-
: function (t) {
|
|
4506
|
-
if (b(t)) return t;
|
|
4507
|
-
try {
|
|
4508
|
-
throw new Error(v(t));
|
|
4509
|
-
} catch (e) {
|
|
4510
|
-
return e;
|
|
4511
|
-
}
|
|
4512
|
-
};
|
|
4513
|
-
})(),
|
|
4514
|
-
I = function (t) {
|
|
4515
|
-
return F.isArray(t) ? t : null;
|
|
4516
|
-
};
|
|
4517
|
-
if ("undefined" != typeof Symbol && Symbol.iterator) {
|
|
4518
|
-
var L =
|
|
4519
|
-
"function" == typeof Array.from
|
|
4520
|
-
? function (t) {
|
|
4521
|
-
return Array.from(t);
|
|
4522
|
-
}
|
|
4523
|
-
: function (t) {
|
|
4524
|
-
for (
|
|
4525
|
-
var e, n = [], r = t[Symbol.iterator]();
|
|
4526
|
-
!(e = r.next()).done;
|
|
4527
|
-
|
|
4528
|
-
)
|
|
4529
|
-
n.push(e.value);
|
|
4530
|
-
return n;
|
|
4531
|
-
};
|
|
4532
|
-
I = function (t) {
|
|
4533
|
-
return F.isArray(t)
|
|
4534
|
-
? t
|
|
4535
|
-
: null != t && "function" == typeof t[Symbol.iterator]
|
|
4536
|
-
? L(t)
|
|
4537
|
-
: null;
|
|
4538
|
-
};
|
|
4539
|
-
}
|
|
4540
|
-
var N =
|
|
4541
|
-
"undefined" != typeof process &&
|
|
4542
|
-
"[object process]" === w(process).toLowerCase(),
|
|
4543
|
-
H =
|
|
4544
|
-
"undefined" != typeof process &&
|
|
4545
|
-
"undefined" != typeof process.env,
|
|
4546
|
-
B = {
|
|
4547
|
-
isClass: h,
|
|
4548
|
-
isIdentifier: _,
|
|
4549
|
-
inheritedDataKeys: O,
|
|
4550
|
-
getDataPropertyOrDefault: l,
|
|
4551
|
-
thrower: p,
|
|
4552
|
-
isArray: F.isArray,
|
|
4553
|
-
asArray: I,
|
|
4554
|
-
notEnumerableProp: u,
|
|
4555
|
-
isPrimitive: o,
|
|
4556
|
-
isObject: s,
|
|
4557
|
-
isError: y,
|
|
4558
|
-
canEvaluate: T,
|
|
4559
|
-
errorObj: x,
|
|
4560
|
-
tryCatch: i,
|
|
4561
|
-
inherits: R,
|
|
4562
|
-
withAppended: c,
|
|
4563
|
-
maybeWrapAsError: a,
|
|
4564
|
-
toFastProperties: f,
|
|
4565
|
-
filledRange: d,
|
|
4566
|
-
toString: v,
|
|
4567
|
-
canAttachTrace: b,
|
|
4568
|
-
ensureErrorObject: V,
|
|
4569
|
-
originatesFromRejection: g,
|
|
4570
|
-
markAsOriginatingFromRejection: m,
|
|
4571
|
-
classString: w,
|
|
4572
|
-
copyDescriptors: C,
|
|
4573
|
-
hasDevTools:
|
|
4574
|
-
"undefined" != typeof chrome &&
|
|
4575
|
-
chrome &&
|
|
4576
|
-
"function" == typeof chrome.loadTimes,
|
|
4577
|
-
isNode: N,
|
|
4578
|
-
hasEnvVariables: H,
|
|
4579
|
-
env: j,
|
|
4580
|
-
global: S,
|
|
4581
|
-
getNativePromise: E,
|
|
4582
|
-
domainBind: k
|
|
4583
|
-
};
|
|
4584
|
-
|
|
4585
|
-
(B.isRecentNode =
|
|
4586
|
-
B.isNode &&
|
|
4587
|
-
(function () {
|
|
4588
|
-
var t;
|
|
4589
|
-
return (
|
|
4590
|
-
process.versions && process.versions.node
|
|
4591
|
-
? (t = process.versions.node.split(".").map(Number))
|
|
4592
|
-
: process.version &&
|
|
4593
|
-
(t = process.version.split(".").map(Number)),
|
|
4594
|
-
(0 === t[0] && t[1] > 10) || t[0] > 0
|
|
4595
|
-
);
|
|
4596
|
-
})()),
|
|
4597
|
-
B.isNode && B.toFastProperties(process);
|
|
4598
|
-
try {
|
|
4599
|
-
throw new Error();
|
|
4600
|
-
} catch (U) {
|
|
4601
|
-
B.lastLineError = U;
|
|
4602
|
-
}
|
|
4603
|
-
e.exports = B;
|
|
4604
|
-
},
|
|
4605
|
-
{ "./es5": 13 }
|
|
4606
|
-
]
|
|
4607
|
-
},
|
|
4608
|
-
|
|
4609
|
-
{},
|
|
4610
|
-
[4]
|
|
4611
|
-
)(4);
|
|
4612
|
-
}),
|
|
4613
|
-
"undefined" != typeof window && null !== window
|
|
4614
|
-
? (window.P = window.Promise)
|
|
4615
|
-
: "undefined" != typeof self && null !== self && (self.P = self.Promise);
|