@plasmicpkgs/lottie-react 0.0.237 → 0.0.238
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/dist/lottie-react.cjs.development.js +120 -317
- package/dist/lottie-react.cjs.development.js.map +1 -1
- package/dist/lottie-react.cjs.production.min.js +1 -1
- package/dist/lottie-react.cjs.production.min.js.map +1 -1
- package/dist/lottie-react.esm.js +120 -317
- package/dist/lottie-react.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/lottie-react.esm.js
CHANGED
|
@@ -37,306 +37,113 @@ function _extends() {
|
|
|
37
37
|
return n;
|
|
38
38
|
}, _extends.apply(null, arguments);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return o(a, "_invoke", {
|
|
75
|
-
value: makeInvokeMethod(t, r, c)
|
|
76
|
-
}), a;
|
|
77
|
-
}
|
|
78
|
-
function tryCatch(t, e, r) {
|
|
79
|
-
try {
|
|
80
|
-
return {
|
|
81
|
-
type: "normal",
|
|
82
|
-
arg: t.call(e, r)
|
|
83
|
-
};
|
|
84
|
-
} catch (t) {
|
|
85
|
-
return {
|
|
86
|
-
type: "throw",
|
|
87
|
-
arg: t
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
e.wrap = wrap;
|
|
92
|
-
var h = "suspendedStart",
|
|
93
|
-
l = "suspendedYield",
|
|
94
|
-
f = "executing",
|
|
95
|
-
s = "completed",
|
|
96
|
-
y = {};
|
|
97
|
-
function Generator() {}
|
|
98
|
-
function GeneratorFunction() {}
|
|
99
|
-
function GeneratorFunctionPrototype() {}
|
|
100
|
-
var p = {};
|
|
101
|
-
define(p, a, function () {
|
|
102
|
-
return this;
|
|
103
|
-
});
|
|
104
|
-
var d = Object.getPrototypeOf,
|
|
105
|
-
v = d && d(d(values([])));
|
|
106
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
107
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
108
|
-
function defineIteratorMethods(t) {
|
|
109
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
110
|
-
define(t, e, function (t) {
|
|
111
|
-
return this._invoke(e, t);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function AsyncIterator(t, e) {
|
|
116
|
-
function invoke(r, o, i, a) {
|
|
117
|
-
var c = tryCatch(t[r], t, o);
|
|
118
|
-
if ("throw" !== c.type) {
|
|
119
|
-
var u = c.arg,
|
|
120
|
-
h = u.value;
|
|
121
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
122
|
-
invoke("next", t, i, a);
|
|
123
|
-
}, function (t) {
|
|
124
|
-
invoke("throw", t, i, a);
|
|
125
|
-
}) : e.resolve(h).then(function (t) {
|
|
126
|
-
u.value = t, i(u);
|
|
127
|
-
}, function (t) {
|
|
128
|
-
return invoke("throw", t, i, a);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
a(c.arg);
|
|
132
|
-
}
|
|
133
|
-
var r;
|
|
134
|
-
o(this, "_invoke", {
|
|
135
|
-
value: function (t, n) {
|
|
136
|
-
function callInvokeWithMethodAndArg() {
|
|
137
|
-
return new e(function (e, r) {
|
|
138
|
-
invoke(t, n, e, r);
|
|
139
|
-
});
|
|
40
|
+
function _regenerator() {
|
|
41
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
42
|
+
var e,
|
|
43
|
+
t,
|
|
44
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
45
|
+
n = r.iterator || "@@iterator",
|
|
46
|
+
o = r.toStringTag || "@@toStringTag";
|
|
47
|
+
function i(r, n, o, i) {
|
|
48
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
49
|
+
u = Object.create(c.prototype);
|
|
50
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
51
|
+
var i,
|
|
52
|
+
c,
|
|
53
|
+
u,
|
|
54
|
+
f = 0,
|
|
55
|
+
p = o || [],
|
|
56
|
+
y = !1,
|
|
57
|
+
G = {
|
|
58
|
+
p: 0,
|
|
59
|
+
n: 0,
|
|
60
|
+
v: e,
|
|
61
|
+
a: d,
|
|
62
|
+
f: d.bind(e, 4),
|
|
63
|
+
d: function (t, r) {
|
|
64
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
function d(r, n) {
|
|
68
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
69
|
+
var o,
|
|
70
|
+
i = p[t],
|
|
71
|
+
d = G.p,
|
|
72
|
+
l = i[2];
|
|
73
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
140
74
|
}
|
|
141
|
-
|
|
75
|
+
if (o || r > 1) return a;
|
|
76
|
+
throw y = !0, n;
|
|
142
77
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
78
|
+
return function (o, p, l) {
|
|
79
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
80
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
81
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
82
|
+
try {
|
|
83
|
+
if (f = 2, i) {
|
|
84
|
+
if (c || (o = "next"), t = i[o]) {
|
|
85
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
86
|
+
if (!t.done) return t;
|
|
87
|
+
u = t.value, c < 2 && (c = 0);
|
|
88
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
89
|
+
i = e;
|
|
90
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
91
|
+
} catch (t) {
|
|
92
|
+
i = e, c = 1, u = t;
|
|
93
|
+
} finally {
|
|
94
|
+
f = 1;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
151
97
|
return {
|
|
152
98
|
value: t,
|
|
153
|
-
done:
|
|
99
|
+
done: y
|
|
154
100
|
};
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
var c = n.delegate;
|
|
158
|
-
if (c) {
|
|
159
|
-
var u = maybeInvokeDelegate(c, n);
|
|
160
|
-
if (u) {
|
|
161
|
-
if (u === y) continue;
|
|
162
|
-
return u;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
166
|
-
if (o === h) throw o = s, n.arg;
|
|
167
|
-
n.dispatchException(n.arg);
|
|
168
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
169
|
-
o = f;
|
|
170
|
-
var p = tryCatch(e, r, n);
|
|
171
|
-
if ("normal" === p.type) {
|
|
172
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
173
|
-
return {
|
|
174
|
-
value: p.arg,
|
|
175
|
-
done: n.done
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
function maybeInvokeDelegate(e, r) {
|
|
183
|
-
var n = r.method,
|
|
184
|
-
o = e.iterator[n];
|
|
185
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
186
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
187
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
188
|
-
var a = i.arg;
|
|
189
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
190
|
-
}
|
|
191
|
-
function pushTryEntry(t) {
|
|
192
|
-
var e = {
|
|
193
|
-
tryLoc: t[0]
|
|
194
|
-
};
|
|
195
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
196
|
-
}
|
|
197
|
-
function resetTryEntry(t) {
|
|
198
|
-
var e = t.completion || {};
|
|
199
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
200
|
-
}
|
|
201
|
-
function Context(t) {
|
|
202
|
-
this.tryEntries = [{
|
|
203
|
-
tryLoc: "root"
|
|
204
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
101
|
+
};
|
|
102
|
+
}(r, o, i), !0), u;
|
|
205
103
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return i.next = i;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
104
|
+
var a = {};
|
|
105
|
+
function Generator() {}
|
|
106
|
+
function GeneratorFunction() {}
|
|
107
|
+
function GeneratorFunctionPrototype() {}
|
|
108
|
+
t = Object.getPrototypeOf;
|
|
109
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
110
|
+
return this;
|
|
111
|
+
}), t),
|
|
112
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
113
|
+
function f(e) {
|
|
114
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
221
115
|
}
|
|
222
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
223
|
-
value: GeneratorFunctionPrototype,
|
|
224
|
-
configurable: !0
|
|
225
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
226
|
-
value: GeneratorFunction,
|
|
227
|
-
configurable: !0
|
|
228
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
229
|
-
var e = "function" == typeof t && t.constructor;
|
|
230
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
231
|
-
}, e.mark = function (t) {
|
|
232
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
233
|
-
}, e.awrap = function (t) {
|
|
234
|
-
return {
|
|
235
|
-
__await: t
|
|
236
|
-
};
|
|
237
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
116
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
238
117
|
return this;
|
|
239
|
-
}),
|
|
240
|
-
void 0 === i && (i = Promise);
|
|
241
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
242
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
243
|
-
return t.done ? t.value : a.next();
|
|
244
|
-
});
|
|
245
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
246
|
-
return this;
|
|
247
|
-
}), define(g, "toString", function () {
|
|
118
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
248
119
|
return "[object Generator]";
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return r.reverse(), function next() {
|
|
254
|
-
for (; r.length;) {
|
|
255
|
-
var t = r.pop();
|
|
256
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
257
|
-
}
|
|
258
|
-
return next.done = !0, next;
|
|
120
|
+
}), (_regenerator = function () {
|
|
121
|
+
return {
|
|
122
|
+
w: i,
|
|
123
|
+
m: f
|
|
259
124
|
};
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
function handle(n, o) {
|
|
275
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
276
|
-
}
|
|
277
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
278
|
-
var i = this.tryEntries[o],
|
|
279
|
-
a = i.completion;
|
|
280
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
281
|
-
if (i.tryLoc <= this.prev) {
|
|
282
|
-
var c = n.call(i, "catchLoc"),
|
|
283
|
-
u = n.call(i, "finallyLoc");
|
|
284
|
-
if (c && u) {
|
|
285
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
286
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
287
|
-
} else if (c) {
|
|
288
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
289
|
-
} else {
|
|
290
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
291
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
abrupt: function (t, e) {
|
|
297
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
298
|
-
var o = this.tryEntries[r];
|
|
299
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
300
|
-
var i = o;
|
|
301
|
-
break;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
305
|
-
var a = i ? i.completion : {};
|
|
306
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
307
|
-
},
|
|
308
|
-
complete: function (t, e) {
|
|
309
|
-
if ("throw" === t.type) throw t.arg;
|
|
310
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
311
|
-
},
|
|
312
|
-
finish: function (t) {
|
|
313
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
314
|
-
var r = this.tryEntries[e];
|
|
315
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
catch: function (t) {
|
|
319
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
320
|
-
var r = this.tryEntries[e];
|
|
321
|
-
if (r.tryLoc === t) {
|
|
322
|
-
var n = r.completion;
|
|
323
|
-
if ("throw" === n.type) {
|
|
324
|
-
var o = n.arg;
|
|
325
|
-
resetTryEntry(r);
|
|
326
|
-
}
|
|
327
|
-
return o;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
throw Error("illegal catch attempt");
|
|
331
|
-
},
|
|
332
|
-
delegateYield: function (e, r, n) {
|
|
333
|
-
return this.delegate = {
|
|
334
|
-
iterator: values(e),
|
|
335
|
-
resultName: r,
|
|
336
|
-
nextLoc: n
|
|
337
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
125
|
+
})();
|
|
126
|
+
}
|
|
127
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
128
|
+
var i = Object.defineProperty;
|
|
129
|
+
try {
|
|
130
|
+
i({}, "", {});
|
|
131
|
+
} catch (e) {
|
|
132
|
+
i = 0;
|
|
133
|
+
}
|
|
134
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
135
|
+
function o(r, n) {
|
|
136
|
+
_regeneratorDefine(e, r, function (e) {
|
|
137
|
+
return this._invoke(r, n, e);
|
|
138
|
+
});
|
|
338
139
|
}
|
|
339
|
-
|
|
140
|
+
r ? i ? i(e, r, {
|
|
141
|
+
value: n,
|
|
142
|
+
enumerable: !t,
|
|
143
|
+
configurable: !t,
|
|
144
|
+
writable: !t
|
|
145
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
146
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
340
147
|
}
|
|
341
148
|
|
|
342
149
|
var isBrowser = typeof window !== "undefined";
|
|
@@ -975,54 +782,50 @@ function fetchAnimationData(_x) {
|
|
|
975
782
|
return _fetchAnimationData.apply(this, arguments);
|
|
976
783
|
}
|
|
977
784
|
function _fetchAnimationData() {
|
|
978
|
-
_fetchAnimationData = _asyncToGenerator(/*#__PURE__*/
|
|
979
|
-
return
|
|
980
|
-
while (1) switch (_context2.
|
|
785
|
+
_fetchAnimationData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(url) {
|
|
786
|
+
return _regenerator().w(function (_context2) {
|
|
787
|
+
while (1) switch (_context2.n) {
|
|
981
788
|
case 0:
|
|
982
789
|
if (!(url in DATA_CACHE)) {
|
|
983
|
-
_context2.
|
|
790
|
+
_context2.n = 1;
|
|
984
791
|
break;
|
|
985
792
|
}
|
|
986
|
-
return _context2.
|
|
987
|
-
case
|
|
793
|
+
return _context2.a(2, DATA_CACHE[url]);
|
|
794
|
+
case 1:
|
|
988
795
|
if (!(url in PROMISE_CACHE)) {
|
|
989
|
-
_context2.
|
|
796
|
+
_context2.n = 2;
|
|
990
797
|
break;
|
|
991
798
|
}
|
|
992
|
-
return _context2.
|
|
993
|
-
case
|
|
994
|
-
PROMISE_CACHE[url] = _asyncToGenerator(/*#__PURE__*/
|
|
799
|
+
return _context2.a(2, PROMISE_CACHE[url]);
|
|
800
|
+
case 2:
|
|
801
|
+
PROMISE_CACHE[url] = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
995
802
|
var resp, json;
|
|
996
|
-
return
|
|
997
|
-
while (1) switch (_context.
|
|
803
|
+
return _regenerator().w(function (_context) {
|
|
804
|
+
while (1) switch (_context.n) {
|
|
998
805
|
case 0:
|
|
999
|
-
_context.
|
|
806
|
+
_context.n = 1;
|
|
1000
807
|
return fetch(url);
|
|
1001
|
-
case
|
|
1002
|
-
resp = _context.
|
|
808
|
+
case 1:
|
|
809
|
+
resp = _context.v;
|
|
1003
810
|
if (resp.ok) {
|
|
1004
|
-
_context.
|
|
811
|
+
_context.n = 2;
|
|
1005
812
|
break;
|
|
1006
813
|
}
|
|
1007
814
|
throw new Error("Error downloading Lottie animation from " + url + ": " + resp.statusText);
|
|
1008
|
-
case
|
|
1009
|
-
_context.
|
|
815
|
+
case 2:
|
|
816
|
+
_context.n = 3;
|
|
1010
817
|
return resp.json();
|
|
1011
|
-
case
|
|
1012
|
-
json = _context.
|
|
818
|
+
case 3:
|
|
819
|
+
json = _context.v;
|
|
1013
820
|
// Only delete from PROMISE_CACHE upon success
|
|
1014
821
|
delete PROMISE_CACHE[url];
|
|
1015
|
-
return _context.
|
|
1016
|
-
case 10:
|
|
1017
|
-
case "end":
|
|
1018
|
-
return _context.stop();
|
|
822
|
+
return _context.a(2, json);
|
|
1019
823
|
}
|
|
1020
824
|
}, _callee);
|
|
1021
825
|
}))();
|
|
1022
|
-
return _context2.
|
|
1023
|
-
case
|
|
1024
|
-
|
|
1025
|
-
return _context2.stop();
|
|
826
|
+
return _context2.a(2, PROMISE_CACHE[url]);
|
|
827
|
+
case 3:
|
|
828
|
+
return _context2.a(2);
|
|
1026
829
|
}
|
|
1027
830
|
}, _callee2);
|
|
1028
831
|
}));
|