mp-front-cli 1.0.0 → 2.0.0-canary.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/dist/core/errors/error-catalog.d.ts +7 -7
- package/dist/core/interfaces/api-response.d.ts +0 -1
- package/dist/core/interfaces/api-response.d.ts.map +1 -1
- package/dist/core/utils/Terminal/constants/index.d.ts +1 -1
- package/dist/core/utils/Terminal/index.d.ts +1 -1
- package/dist/core/utils/custom-adapter.d.ts.map +1 -1
- package/dist/core/utils/custom-cache.d.ts +2 -2
- package/dist/fetch-service-fe-Bn43l_lH.js +1574 -0
- package/dist/loading-handler-Br21zGTA.js +46 -0
- package/dist/mp-front-cli-adapter.es.js +73 -84
- package/dist/mp-front-cli-all.es.js +11 -22
- package/dist/mp-front-cli-cache.es.js +33 -38
- package/dist/mp-front-cli-core.es.js +11 -1582
- package/dist/mp-front-cli-encoder.es.js +3535 -3537
- package/dist/mp-front-cli-encrypter.es.js +11 -14
- package/dist/mp-front-cli-header.es.js +13 -17
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/dist/mp-front-cli-logger.es.js +1 -1
- package/dist/mp-front-cli-services.es.js +2 -4
- package/dist/mp-front-cli-utils-rxjs.es.js +3 -43
- package/dist/service-token-D8bum6H0.js +811 -0
- package/package.json +10 -10
- package/dist/index-a6a5a26e.js +0 -849
- /package/dist/{custom-redis-bee66564.js → custom-redis-BMPP_XZi.js} +0 -0
- /package/dist/{i18n-3dcfe704.js → i18n-CniHhItS.js} +0 -0
- /package/dist/{stringify-788d71a0.js → stringify-93tp0umt.js} +0 -0
package/dist/index-a6a5a26e.js
DELETED
|
@@ -1,849 +0,0 @@
|
|
|
1
|
-
var q = Object.defineProperty;
|
|
2
|
-
var W = (r, t, e) => t in r ? q(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
-
var m = (r, t, e) => (W(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { switchMap as j, of as L, catchError as Q } from "rxjs";
|
|
5
|
-
import { CustomLogger as X } from "./mp-front-cli-logger.es.js";
|
|
6
|
-
var I = function(r, t) {
|
|
7
|
-
return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
8
|
-
e.__proto__ = n;
|
|
9
|
-
} || function(e, n) {
|
|
10
|
-
for (var i in n)
|
|
11
|
-
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
12
|
-
}, I(r, t);
|
|
13
|
-
};
|
|
14
|
-
function x(r, t) {
|
|
15
|
-
if (typeof t != "function" && t !== null)
|
|
16
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
17
|
-
I(r, t);
|
|
18
|
-
function e() {
|
|
19
|
-
this.constructor = r;
|
|
20
|
-
}
|
|
21
|
-
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
22
|
-
}
|
|
23
|
-
var w = function() {
|
|
24
|
-
return w = Object.assign || function(t) {
|
|
25
|
-
for (var e, n = 1, i = arguments.length; n < i; n++) {
|
|
26
|
-
e = arguments[n];
|
|
27
|
-
for (var o in e)
|
|
28
|
-
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
}, w.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
function Z(r, t) {
|
|
34
|
-
var e = {};
|
|
35
|
-
for (var n in r)
|
|
36
|
-
Object.prototype.hasOwnProperty.call(r, n) && t.indexOf(n) < 0 && (e[n] = r[n]);
|
|
37
|
-
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
38
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
|
|
39
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (e[n[i]] = r[n[i]]);
|
|
40
|
-
return e;
|
|
41
|
-
}
|
|
42
|
-
function z(r, t, e, n) {
|
|
43
|
-
function i(o) {
|
|
44
|
-
return o instanceof e ? o : new e(function(u) {
|
|
45
|
-
u(o);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return new (e || (e = Promise))(function(o, u) {
|
|
49
|
-
function s(f) {
|
|
50
|
-
try {
|
|
51
|
-
c(n.next(f));
|
|
52
|
-
} catch (y) {
|
|
53
|
-
u(y);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function a(f) {
|
|
57
|
-
try {
|
|
58
|
-
c(n.throw(f));
|
|
59
|
-
} catch (y) {
|
|
60
|
-
u(y);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function c(f) {
|
|
64
|
-
f.done ? o(f.value) : i(f.value).then(s, a);
|
|
65
|
-
}
|
|
66
|
-
c((n = n.apply(r, t || [])).next());
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function F(r, t) {
|
|
70
|
-
var e = { label: 0, sent: function() {
|
|
71
|
-
if (o[0] & 1)
|
|
72
|
-
throw o[1];
|
|
73
|
-
return o[1];
|
|
74
|
-
}, trys: [], ops: [] }, n, i, o, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
75
|
-
return u.next = s(0), u.throw = s(1), u.return = s(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
76
|
-
return this;
|
|
77
|
-
}), u;
|
|
78
|
-
function s(c) {
|
|
79
|
-
return function(f) {
|
|
80
|
-
return a([c, f]);
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function a(c) {
|
|
84
|
-
if (n)
|
|
85
|
-
throw new TypeError("Generator is already executing.");
|
|
86
|
-
for (; u && (u = 0, c[0] && (e = 0)), e; )
|
|
87
|
-
try {
|
|
88
|
-
if (n = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
|
|
89
|
-
return o;
|
|
90
|
-
switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
|
|
91
|
-
case 0:
|
|
92
|
-
case 1:
|
|
93
|
-
o = c;
|
|
94
|
-
break;
|
|
95
|
-
case 4:
|
|
96
|
-
return e.label++, { value: c[1], done: !1 };
|
|
97
|
-
case 5:
|
|
98
|
-
e.label++, i = c[1], c = [0];
|
|
99
|
-
continue;
|
|
100
|
-
case 7:
|
|
101
|
-
c = e.ops.pop(), e.trys.pop();
|
|
102
|
-
continue;
|
|
103
|
-
default:
|
|
104
|
-
if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
105
|
-
e = 0;
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
|
|
109
|
-
e.label = c[1];
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
if (c[0] === 6 && e.label < o[1]) {
|
|
113
|
-
e.label = o[1], o = c;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
if (o && e.label < o[2]) {
|
|
117
|
-
e.label = o[2], e.ops.push(c);
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
o[2] && e.ops.pop(), e.trys.pop();
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
c = t.call(r, e);
|
|
124
|
-
} catch (f) {
|
|
125
|
-
c = [6, f], i = 0;
|
|
126
|
-
} finally {
|
|
127
|
-
n = o = 0;
|
|
128
|
-
}
|
|
129
|
-
if (c[0] & 5)
|
|
130
|
-
throw c[1];
|
|
131
|
-
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function S(r) {
|
|
135
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
136
|
-
if (e)
|
|
137
|
-
return e.call(r);
|
|
138
|
-
if (r && typeof r.length == "number")
|
|
139
|
-
return {
|
|
140
|
-
next: function() {
|
|
141
|
-
return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
145
|
-
}
|
|
146
|
-
function g(r, t) {
|
|
147
|
-
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
148
|
-
if (!e)
|
|
149
|
-
return r;
|
|
150
|
-
var n = e.call(r), i, o = [], u;
|
|
151
|
-
try {
|
|
152
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
153
|
-
o.push(i.value);
|
|
154
|
-
} catch (s) {
|
|
155
|
-
u = { error: s };
|
|
156
|
-
} finally {
|
|
157
|
-
try {
|
|
158
|
-
i && !i.done && (e = n.return) && e.call(n);
|
|
159
|
-
} finally {
|
|
160
|
-
if (u)
|
|
161
|
-
throw u.error;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return o;
|
|
165
|
-
}
|
|
166
|
-
function T(r, t, e) {
|
|
167
|
-
if (e || arguments.length === 2)
|
|
168
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
169
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
170
|
-
return r.concat(o || Array.prototype.slice.call(t));
|
|
171
|
-
}
|
|
172
|
-
function A(r) {
|
|
173
|
-
return this instanceof A ? (this.v = r, this) : new A(r);
|
|
174
|
-
}
|
|
175
|
-
function N(r, t, e) {
|
|
176
|
-
if (!Symbol.asyncIterator)
|
|
177
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
178
|
-
var n = e.apply(r, t || []), i, o = [];
|
|
179
|
-
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", u), i[Symbol.asyncIterator] = function() {
|
|
180
|
-
return this;
|
|
181
|
-
}, i;
|
|
182
|
-
function u(l) {
|
|
183
|
-
return function(v) {
|
|
184
|
-
return Promise.resolve(v).then(l, y);
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function s(l, v) {
|
|
188
|
-
n[l] && (i[l] = function(h) {
|
|
189
|
-
return new Promise(function(J, V) {
|
|
190
|
-
o.push([l, h, J, V]) > 1 || a(l, h);
|
|
191
|
-
});
|
|
192
|
-
}, v && (i[l] = v(i[l])));
|
|
193
|
-
}
|
|
194
|
-
function a(l, v) {
|
|
195
|
-
try {
|
|
196
|
-
c(n[l](v));
|
|
197
|
-
} catch (h) {
|
|
198
|
-
d(o[0][3], h);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function c(l) {
|
|
202
|
-
l.value instanceof A ? Promise.resolve(l.value.v).then(f, y) : d(o[0][2], l);
|
|
203
|
-
}
|
|
204
|
-
function f(l) {
|
|
205
|
-
a("next", l);
|
|
206
|
-
}
|
|
207
|
-
function y(l) {
|
|
208
|
-
a("throw", l);
|
|
209
|
-
}
|
|
210
|
-
function d(l, v) {
|
|
211
|
-
l(v), o.shift(), o.length && a(o[0][0], o[0][1]);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
function rr(r) {
|
|
215
|
-
if (!Symbol.asyncIterator)
|
|
216
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
217
|
-
var t = r[Symbol.asyncIterator], e;
|
|
218
|
-
return t ? t.call(r) : (r = typeof S == "function" ? S(r) : r[Symbol.iterator](), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
|
|
219
|
-
return this;
|
|
220
|
-
}, e);
|
|
221
|
-
function n(o) {
|
|
222
|
-
e[o] = r[o] && function(u) {
|
|
223
|
-
return new Promise(function(s, a) {
|
|
224
|
-
u = r[o](u), i(s, a, u.done, u.value);
|
|
225
|
-
});
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function i(o, u, s, a) {
|
|
229
|
-
Promise.resolve(a).then(function(c) {
|
|
230
|
-
o({ value: c, done: s });
|
|
231
|
-
}, u);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
function p(r) {
|
|
235
|
-
return typeof r == "function";
|
|
236
|
-
}
|
|
237
|
-
function er(r) {
|
|
238
|
-
var t = function(n) {
|
|
239
|
-
Error.call(n), n.stack = new Error().stack;
|
|
240
|
-
}, e = r(t);
|
|
241
|
-
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
242
|
-
}
|
|
243
|
-
var E = er(function(r) {
|
|
244
|
-
return function(e) {
|
|
245
|
-
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
246
|
-
` + e.map(function(n, i) {
|
|
247
|
-
return i + 1 + ") " + n.toString();
|
|
248
|
-
}).join(`
|
|
249
|
-
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
250
|
-
};
|
|
251
|
-
});
|
|
252
|
-
function k(r, t) {
|
|
253
|
-
if (r) {
|
|
254
|
-
var e = r.indexOf(t);
|
|
255
|
-
0 <= e && r.splice(e, 1);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
var R = function() {
|
|
259
|
-
function r(t) {
|
|
260
|
-
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
261
|
-
}
|
|
262
|
-
return r.prototype.unsubscribe = function() {
|
|
263
|
-
var t, e, n, i, o;
|
|
264
|
-
if (!this.closed) {
|
|
265
|
-
this.closed = !0;
|
|
266
|
-
var u = this._parentage;
|
|
267
|
-
if (u)
|
|
268
|
-
if (this._parentage = null, Array.isArray(u))
|
|
269
|
-
try {
|
|
270
|
-
for (var s = S(u), a = s.next(); !a.done; a = s.next()) {
|
|
271
|
-
var c = a.value;
|
|
272
|
-
c.remove(this);
|
|
273
|
-
}
|
|
274
|
-
} catch (h) {
|
|
275
|
-
t = { error: h };
|
|
276
|
-
} finally {
|
|
277
|
-
try {
|
|
278
|
-
a && !a.done && (e = s.return) && e.call(s);
|
|
279
|
-
} finally {
|
|
280
|
-
if (t)
|
|
281
|
-
throw t.error;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
else
|
|
285
|
-
u.remove(this);
|
|
286
|
-
var f = this.initialTeardown;
|
|
287
|
-
if (p(f))
|
|
288
|
-
try {
|
|
289
|
-
f();
|
|
290
|
-
} catch (h) {
|
|
291
|
-
o = h instanceof E ? h.errors : [h];
|
|
292
|
-
}
|
|
293
|
-
var y = this._finalizers;
|
|
294
|
-
if (y) {
|
|
295
|
-
this._finalizers = null;
|
|
296
|
-
try {
|
|
297
|
-
for (var d = S(y), l = d.next(); !l.done; l = d.next()) {
|
|
298
|
-
var v = l.value;
|
|
299
|
-
try {
|
|
300
|
-
C(v);
|
|
301
|
-
} catch (h) {
|
|
302
|
-
o = o ?? [], h instanceof E ? o = T(T([], g(o)), g(h.errors)) : o.push(h);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
} catch (h) {
|
|
306
|
-
n = { error: h };
|
|
307
|
-
} finally {
|
|
308
|
-
try {
|
|
309
|
-
l && !l.done && (i = d.return) && i.call(d);
|
|
310
|
-
} finally {
|
|
311
|
-
if (n)
|
|
312
|
-
throw n.error;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
if (o)
|
|
317
|
-
throw new E(o);
|
|
318
|
-
}
|
|
319
|
-
}, r.prototype.add = function(t) {
|
|
320
|
-
var e;
|
|
321
|
-
if (t && t !== this)
|
|
322
|
-
if (this.closed)
|
|
323
|
-
C(t);
|
|
324
|
-
else {
|
|
325
|
-
if (t instanceof r) {
|
|
326
|
-
if (t.closed || t._hasParent(this))
|
|
327
|
-
return;
|
|
328
|
-
t._addParent(this);
|
|
329
|
-
}
|
|
330
|
-
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
|
331
|
-
}
|
|
332
|
-
}, r.prototype._hasParent = function(t) {
|
|
333
|
-
var e = this._parentage;
|
|
334
|
-
return e === t || Array.isArray(e) && e.includes(t);
|
|
335
|
-
}, r.prototype._addParent = function(t) {
|
|
336
|
-
var e = this._parentage;
|
|
337
|
-
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
338
|
-
}, r.prototype._removeParent = function(t) {
|
|
339
|
-
var e = this._parentage;
|
|
340
|
-
e === t ? this._parentage = null : Array.isArray(e) && k(e, t);
|
|
341
|
-
}, r.prototype.remove = function(t) {
|
|
342
|
-
var e = this._finalizers;
|
|
343
|
-
e && k(e, t), t instanceof r && t._removeParent(this);
|
|
344
|
-
}, r.EMPTY = function() {
|
|
345
|
-
var t = new r();
|
|
346
|
-
return t.closed = !0, t;
|
|
347
|
-
}(), r;
|
|
348
|
-
}();
|
|
349
|
-
R.EMPTY;
|
|
350
|
-
function M(r) {
|
|
351
|
-
return r instanceof R || r && "closed" in r && p(r.remove) && p(r.add) && p(r.unsubscribe);
|
|
352
|
-
}
|
|
353
|
-
function C(r) {
|
|
354
|
-
p(r) ? r() : r.unsubscribe();
|
|
355
|
-
}
|
|
356
|
-
var Y = {
|
|
357
|
-
onUnhandledError: null,
|
|
358
|
-
onStoppedNotification: null,
|
|
359
|
-
Promise: void 0,
|
|
360
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
361
|
-
useDeprecatedNextContext: !1
|
|
362
|
-
}, O = {
|
|
363
|
-
setTimeout: function(r, t) {
|
|
364
|
-
for (var e = [], n = 2; n < arguments.length; n++)
|
|
365
|
-
e[n - 2] = arguments[n];
|
|
366
|
-
var i = O.delegate;
|
|
367
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i, T([r, t], g(e))) : setTimeout.apply(void 0, T([r, t], g(e)));
|
|
368
|
-
},
|
|
369
|
-
clearTimeout: function(r) {
|
|
370
|
-
var t = O.delegate;
|
|
371
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
|
372
|
-
},
|
|
373
|
-
delegate: void 0
|
|
374
|
-
};
|
|
375
|
-
function $(r) {
|
|
376
|
-
O.setTimeout(function() {
|
|
377
|
-
throw r;
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
function D() {
|
|
381
|
-
}
|
|
382
|
-
function tr(r) {
|
|
383
|
-
r();
|
|
384
|
-
}
|
|
385
|
-
var H = function(r) {
|
|
386
|
-
x(t, r);
|
|
387
|
-
function t(e) {
|
|
388
|
-
var n = r.call(this) || this;
|
|
389
|
-
return n.isStopped = !1, e ? (n.destination = e, M(e) && e.add(n)) : n.destination = ur, n;
|
|
390
|
-
}
|
|
391
|
-
return t.create = function(e, n, i) {
|
|
392
|
-
return new U(e, n, i);
|
|
393
|
-
}, t.prototype.next = function(e) {
|
|
394
|
-
this.isStopped || this._next(e);
|
|
395
|
-
}, t.prototype.error = function(e) {
|
|
396
|
-
this.isStopped || (this.isStopped = !0, this._error(e));
|
|
397
|
-
}, t.prototype.complete = function() {
|
|
398
|
-
this.isStopped || (this.isStopped = !0, this._complete());
|
|
399
|
-
}, t.prototype.unsubscribe = function() {
|
|
400
|
-
this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
|
|
401
|
-
}, t.prototype._next = function(e) {
|
|
402
|
-
this.destination.next(e);
|
|
403
|
-
}, t.prototype._error = function(e) {
|
|
404
|
-
try {
|
|
405
|
-
this.destination.error(e);
|
|
406
|
-
} finally {
|
|
407
|
-
this.unsubscribe();
|
|
408
|
-
}
|
|
409
|
-
}, t.prototype._complete = function() {
|
|
410
|
-
try {
|
|
411
|
-
this.destination.complete();
|
|
412
|
-
} finally {
|
|
413
|
-
this.unsubscribe();
|
|
414
|
-
}
|
|
415
|
-
}, t;
|
|
416
|
-
}(R), nr = Function.prototype.bind;
|
|
417
|
-
function P(r, t) {
|
|
418
|
-
return nr.call(r, t);
|
|
419
|
-
}
|
|
420
|
-
var or = function() {
|
|
421
|
-
function r(t) {
|
|
422
|
-
this.partialObserver = t;
|
|
423
|
-
}
|
|
424
|
-
return r.prototype.next = function(t) {
|
|
425
|
-
var e = this.partialObserver;
|
|
426
|
-
if (e.next)
|
|
427
|
-
try {
|
|
428
|
-
e.next(t);
|
|
429
|
-
} catch (n) {
|
|
430
|
-
_(n);
|
|
431
|
-
}
|
|
432
|
-
}, r.prototype.error = function(t) {
|
|
433
|
-
var e = this.partialObserver;
|
|
434
|
-
if (e.error)
|
|
435
|
-
try {
|
|
436
|
-
e.error(t);
|
|
437
|
-
} catch (n) {
|
|
438
|
-
_(n);
|
|
439
|
-
}
|
|
440
|
-
else
|
|
441
|
-
_(t);
|
|
442
|
-
}, r.prototype.complete = function() {
|
|
443
|
-
var t = this.partialObserver;
|
|
444
|
-
if (t.complete)
|
|
445
|
-
try {
|
|
446
|
-
t.complete();
|
|
447
|
-
} catch (e) {
|
|
448
|
-
_(e);
|
|
449
|
-
}
|
|
450
|
-
}, r;
|
|
451
|
-
}(), U = function(r) {
|
|
452
|
-
x(t, r);
|
|
453
|
-
function t(e, n, i) {
|
|
454
|
-
var o = r.call(this) || this, u;
|
|
455
|
-
if (p(e) || !e)
|
|
456
|
-
u = {
|
|
457
|
-
next: e ?? void 0,
|
|
458
|
-
error: n ?? void 0,
|
|
459
|
-
complete: i ?? void 0
|
|
460
|
-
};
|
|
461
|
-
else {
|
|
462
|
-
var s;
|
|
463
|
-
o && Y.useDeprecatedNextContext ? (s = Object.create(e), s.unsubscribe = function() {
|
|
464
|
-
return o.unsubscribe();
|
|
465
|
-
}, u = {
|
|
466
|
-
next: e.next && P(e.next, s),
|
|
467
|
-
error: e.error && P(e.error, s),
|
|
468
|
-
complete: e.complete && P(e.complete, s)
|
|
469
|
-
}) : u = e;
|
|
470
|
-
}
|
|
471
|
-
return o.destination = new or(u), o;
|
|
472
|
-
}
|
|
473
|
-
return t;
|
|
474
|
-
}(H);
|
|
475
|
-
function _(r) {
|
|
476
|
-
$(r);
|
|
477
|
-
}
|
|
478
|
-
function ir(r) {
|
|
479
|
-
throw r;
|
|
480
|
-
}
|
|
481
|
-
var ur = {
|
|
482
|
-
closed: !0,
|
|
483
|
-
next: D,
|
|
484
|
-
error: ir,
|
|
485
|
-
complete: D
|
|
486
|
-
};
|
|
487
|
-
function cr(r, t, e, n, i) {
|
|
488
|
-
return new ar(r, t, e, n, i);
|
|
489
|
-
}
|
|
490
|
-
var ar = function(r) {
|
|
491
|
-
x(t, r);
|
|
492
|
-
function t(e, n, i, o, u, s) {
|
|
493
|
-
var a = r.call(this, e) || this;
|
|
494
|
-
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
|
|
495
|
-
try {
|
|
496
|
-
n(c);
|
|
497
|
-
} catch (f) {
|
|
498
|
-
e.error(f);
|
|
499
|
-
}
|
|
500
|
-
} : r.prototype._next, a._error = o ? function(c) {
|
|
501
|
-
try {
|
|
502
|
-
o(c);
|
|
503
|
-
} catch (f) {
|
|
504
|
-
e.error(f);
|
|
505
|
-
} finally {
|
|
506
|
-
this.unsubscribe();
|
|
507
|
-
}
|
|
508
|
-
} : r.prototype._error, a._complete = i ? function() {
|
|
509
|
-
try {
|
|
510
|
-
i();
|
|
511
|
-
} catch (c) {
|
|
512
|
-
e.error(c);
|
|
513
|
-
} finally {
|
|
514
|
-
this.unsubscribe();
|
|
515
|
-
}
|
|
516
|
-
} : r.prototype._complete, a;
|
|
517
|
-
}
|
|
518
|
-
return t.prototype.unsubscribe = function() {
|
|
519
|
-
var e;
|
|
520
|
-
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
521
|
-
var n = this.closed;
|
|
522
|
-
r.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
523
|
-
}
|
|
524
|
-
}, t;
|
|
525
|
-
}(H), B = function() {
|
|
526
|
-
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
527
|
-
}();
|
|
528
|
-
function sr(r) {
|
|
529
|
-
return r;
|
|
530
|
-
}
|
|
531
|
-
function lr(r) {
|
|
532
|
-
return r.length === 0 ? sr : r.length === 1 ? r[0] : function(e) {
|
|
533
|
-
return r.reduce(function(n, i) {
|
|
534
|
-
return i(n);
|
|
535
|
-
}, e);
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
var b = function() {
|
|
539
|
-
function r(t) {
|
|
540
|
-
t && (this._subscribe = t);
|
|
541
|
-
}
|
|
542
|
-
return r.prototype.lift = function(t) {
|
|
543
|
-
var e = new r();
|
|
544
|
-
return e.source = this, e.operator = t, e;
|
|
545
|
-
}, r.prototype.subscribe = function(t, e, n) {
|
|
546
|
-
var i = this, o = hr(t) ? t : new U(t, e, n);
|
|
547
|
-
return tr(function() {
|
|
548
|
-
var u = i, s = u.operator, a = u.source;
|
|
549
|
-
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
550
|
-
}), o;
|
|
551
|
-
}, r.prototype._trySubscribe = function(t) {
|
|
552
|
-
try {
|
|
553
|
-
return this._subscribe(t);
|
|
554
|
-
} catch (e) {
|
|
555
|
-
t.error(e);
|
|
556
|
-
}
|
|
557
|
-
}, r.prototype.forEach = function(t, e) {
|
|
558
|
-
var n = this;
|
|
559
|
-
return e = K(e), new e(function(i, o) {
|
|
560
|
-
var u = new U({
|
|
561
|
-
next: function(s) {
|
|
562
|
-
try {
|
|
563
|
-
t(s);
|
|
564
|
-
} catch (a) {
|
|
565
|
-
o(a), u.unsubscribe();
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
error: o,
|
|
569
|
-
complete: i
|
|
570
|
-
});
|
|
571
|
-
n.subscribe(u);
|
|
572
|
-
});
|
|
573
|
-
}, r.prototype._subscribe = function(t) {
|
|
574
|
-
var e;
|
|
575
|
-
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
576
|
-
}, r.prototype[B] = function() {
|
|
577
|
-
return this;
|
|
578
|
-
}, r.prototype.pipe = function() {
|
|
579
|
-
for (var t = [], e = 0; e < arguments.length; e++)
|
|
580
|
-
t[e] = arguments[e];
|
|
581
|
-
return lr(t)(this);
|
|
582
|
-
}, r.prototype.toPromise = function(t) {
|
|
583
|
-
var e = this;
|
|
584
|
-
return t = K(t), new t(function(n, i) {
|
|
585
|
-
var o;
|
|
586
|
-
e.subscribe(function(u) {
|
|
587
|
-
return o = u;
|
|
588
|
-
}, function(u) {
|
|
589
|
-
return i(u);
|
|
590
|
-
}, function() {
|
|
591
|
-
return n(o);
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
}, r.create = function(t) {
|
|
595
|
-
return new r(t);
|
|
596
|
-
}, r;
|
|
597
|
-
}();
|
|
598
|
-
function K(r) {
|
|
599
|
-
var t;
|
|
600
|
-
return (t = r ?? Y.Promise) !== null && t !== void 0 ? t : Promise;
|
|
601
|
-
}
|
|
602
|
-
function fr(r) {
|
|
603
|
-
return r && p(r.next) && p(r.error) && p(r.complete);
|
|
604
|
-
}
|
|
605
|
-
function hr(r) {
|
|
606
|
-
return r && r instanceof H || fr(r) && M(r);
|
|
607
|
-
}
|
|
608
|
-
var pr = function(r) {
|
|
609
|
-
return r && typeof r.length == "number" && typeof r != "function";
|
|
610
|
-
};
|
|
611
|
-
function yr(r) {
|
|
612
|
-
return p(r == null ? void 0 : r.then);
|
|
613
|
-
}
|
|
614
|
-
function dr(r) {
|
|
615
|
-
return p(r[B]);
|
|
616
|
-
}
|
|
617
|
-
function vr(r) {
|
|
618
|
-
return Symbol.asyncIterator && p(r == null ? void 0 : r[Symbol.asyncIterator]);
|
|
619
|
-
}
|
|
620
|
-
function br(r) {
|
|
621
|
-
return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
622
|
-
}
|
|
623
|
-
function mr() {
|
|
624
|
-
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
625
|
-
}
|
|
626
|
-
var Ar = mr();
|
|
627
|
-
function Sr(r) {
|
|
628
|
-
return p(r == null ? void 0 : r[Ar]);
|
|
629
|
-
}
|
|
630
|
-
function _r(r) {
|
|
631
|
-
return N(this, arguments, function() {
|
|
632
|
-
var e, n, i, o;
|
|
633
|
-
return F(this, function(u) {
|
|
634
|
-
switch (u.label) {
|
|
635
|
-
case 0:
|
|
636
|
-
e = r.getReader(), u.label = 1;
|
|
637
|
-
case 1:
|
|
638
|
-
u.trys.push([1, , 9, 10]), u.label = 2;
|
|
639
|
-
case 2:
|
|
640
|
-
return [4, A(e.read())];
|
|
641
|
-
case 3:
|
|
642
|
-
return n = u.sent(), i = n.value, o = n.done, o ? [4, A(void 0)] : [3, 5];
|
|
643
|
-
case 4:
|
|
644
|
-
return [2, u.sent()];
|
|
645
|
-
case 5:
|
|
646
|
-
return [4, A(i)];
|
|
647
|
-
case 6:
|
|
648
|
-
return [4, u.sent()];
|
|
649
|
-
case 7:
|
|
650
|
-
return u.sent(), [3, 2];
|
|
651
|
-
case 8:
|
|
652
|
-
return [3, 10];
|
|
653
|
-
case 9:
|
|
654
|
-
return e.releaseLock(), [7];
|
|
655
|
-
case 10:
|
|
656
|
-
return [2];
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
function wr(r) {
|
|
662
|
-
return p(r == null ? void 0 : r.getReader);
|
|
663
|
-
}
|
|
664
|
-
function gr(r) {
|
|
665
|
-
if (r instanceof b)
|
|
666
|
-
return r;
|
|
667
|
-
if (r != null) {
|
|
668
|
-
if (dr(r))
|
|
669
|
-
return Tr(r);
|
|
670
|
-
if (pr(r))
|
|
671
|
-
return Er(r);
|
|
672
|
-
if (yr(r))
|
|
673
|
-
return Pr(r);
|
|
674
|
-
if (vr(r))
|
|
675
|
-
return G(r);
|
|
676
|
-
if (Sr(r))
|
|
677
|
-
return Ir(r);
|
|
678
|
-
if (wr(r))
|
|
679
|
-
return Or(r);
|
|
680
|
-
}
|
|
681
|
-
throw br(r);
|
|
682
|
-
}
|
|
683
|
-
function Tr(r) {
|
|
684
|
-
return new b(function(t) {
|
|
685
|
-
var e = r[B]();
|
|
686
|
-
if (p(e.subscribe))
|
|
687
|
-
return e.subscribe(t);
|
|
688
|
-
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
function Er(r) {
|
|
692
|
-
return new b(function(t) {
|
|
693
|
-
for (var e = 0; e < r.length && !t.closed; e++)
|
|
694
|
-
t.next(r[e]);
|
|
695
|
-
t.complete();
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
function Pr(r) {
|
|
699
|
-
return new b(function(t) {
|
|
700
|
-
r.then(function(e) {
|
|
701
|
-
t.closed || (t.next(e), t.complete());
|
|
702
|
-
}, function(e) {
|
|
703
|
-
return t.error(e);
|
|
704
|
-
}).then(null, $);
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
function Ir(r) {
|
|
708
|
-
return new b(function(t) {
|
|
709
|
-
var e, n;
|
|
710
|
-
try {
|
|
711
|
-
for (var i = S(r), o = i.next(); !o.done; o = i.next()) {
|
|
712
|
-
var u = o.value;
|
|
713
|
-
if (t.next(u), t.closed)
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
} catch (s) {
|
|
717
|
-
e = { error: s };
|
|
718
|
-
} finally {
|
|
719
|
-
try {
|
|
720
|
-
o && !o.done && (n = i.return) && n.call(i);
|
|
721
|
-
} finally {
|
|
722
|
-
if (e)
|
|
723
|
-
throw e.error;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
t.complete();
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
function G(r) {
|
|
730
|
-
return new b(function(t) {
|
|
731
|
-
Ur(r, t).catch(function(e) {
|
|
732
|
-
return t.error(e);
|
|
733
|
-
});
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
function Or(r) {
|
|
737
|
-
return G(_r(r));
|
|
738
|
-
}
|
|
739
|
-
function Ur(r, t) {
|
|
740
|
-
var e, n, i, o;
|
|
741
|
-
return z(this, void 0, void 0, function() {
|
|
742
|
-
var u, s;
|
|
743
|
-
return F(this, function(a) {
|
|
744
|
-
switch (a.label) {
|
|
745
|
-
case 0:
|
|
746
|
-
a.trys.push([0, 5, 6, 11]), e = rr(r), a.label = 1;
|
|
747
|
-
case 1:
|
|
748
|
-
return [4, e.next()];
|
|
749
|
-
case 2:
|
|
750
|
-
if (n = a.sent(), !!n.done)
|
|
751
|
-
return [3, 4];
|
|
752
|
-
if (u = n.value, t.next(u), t.closed)
|
|
753
|
-
return [2];
|
|
754
|
-
a.label = 3;
|
|
755
|
-
case 3:
|
|
756
|
-
return [3, 1];
|
|
757
|
-
case 4:
|
|
758
|
-
return [3, 11];
|
|
759
|
-
case 5:
|
|
760
|
-
return s = a.sent(), i = { error: s }, [3, 11];
|
|
761
|
-
case 6:
|
|
762
|
-
return a.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
|
|
763
|
-
case 7:
|
|
764
|
-
a.sent(), a.label = 8;
|
|
765
|
-
case 8:
|
|
766
|
-
return [3, 10];
|
|
767
|
-
case 9:
|
|
768
|
-
if (i)
|
|
769
|
-
throw i.error;
|
|
770
|
-
return [7];
|
|
771
|
-
case 10:
|
|
772
|
-
return [7];
|
|
773
|
-
case 11:
|
|
774
|
-
return t.complete(), [2];
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
function xr(r, t) {
|
|
780
|
-
t === void 0 && (t = {});
|
|
781
|
-
var e = t.selector, n = Z(t, ["selector"]);
|
|
782
|
-
return new b(function(i) {
|
|
783
|
-
var o = new AbortController(), u = o.signal, s = !0, a = n.signal;
|
|
784
|
-
if (a)
|
|
785
|
-
if (a.aborted)
|
|
786
|
-
o.abort();
|
|
787
|
-
else {
|
|
788
|
-
var c = function() {
|
|
789
|
-
u.aborted || o.abort();
|
|
790
|
-
};
|
|
791
|
-
a.addEventListener("abort", c), i.add(function() {
|
|
792
|
-
return a.removeEventListener("abort", c);
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
var f = w(w({}, n), { signal: u }), y = function(d) {
|
|
796
|
-
s = !1, i.error(d);
|
|
797
|
-
};
|
|
798
|
-
return fetch(r, f).then(function(d) {
|
|
799
|
-
e ? gr(e(d)).subscribe(cr(i, void 0, function() {
|
|
800
|
-
s = !1, i.complete();
|
|
801
|
-
}, y)) : (s = !1, i.next(d), i.complete());
|
|
802
|
-
}).catch(y), function() {
|
|
803
|
-
s && o.abort();
|
|
804
|
-
};
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
class jr extends X {
|
|
808
|
-
constructor() {
|
|
809
|
-
super();
|
|
810
|
-
m(this, "API_AUTH_BACK_URL");
|
|
811
|
-
m(this, "API_AUTH_BACK_USERNAME_AUTH");
|
|
812
|
-
m(this, "API_AUTH_BACK_PASSWORD_AUTH");
|
|
813
|
-
m(this, "headers");
|
|
814
|
-
m(this, "ID", process.env.ID_FRONT ?? "NOT_AVAILABLE");
|
|
815
|
-
this.API_AUTH_BACK_URL = process.env.API_AUTH_BACK_URL, this.API_AUTH_BACK_USERNAME_AUTH = process.env.API_AUTH_BACK_USERNAME_AUTH, this.API_AUTH_BACK_PASSWORD_AUTH = process.env.API_AUTH_BACK_PASSWORD_AUTH, this.headers = {
|
|
816
|
-
Accept: "application/json",
|
|
817
|
-
"Content-Type": "application/vnd.api+json"
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
get() {
|
|
821
|
-
return this.logDebug("get ServiceToken"), xr(this.API_AUTH_BACK_URL, {
|
|
822
|
-
method: "POST",
|
|
823
|
-
headers: this.headers,
|
|
824
|
-
body: JSON.stringify({
|
|
825
|
-
data: {
|
|
826
|
-
id: this.ID,
|
|
827
|
-
type: "AuthUser",
|
|
828
|
-
attributes: {
|
|
829
|
-
username: this.API_AUTH_BACK_USERNAME_AUTH,
|
|
830
|
-
password: this.API_AUTH_BACK_PASSWORD_AUTH
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
})
|
|
834
|
-
}).pipe(
|
|
835
|
-
j((e) => e.json()),
|
|
836
|
-
j((e) => {
|
|
837
|
-
var n;
|
|
838
|
-
return this.logDebug(
|
|
839
|
-
`ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m`
|
|
840
|
-
), L(((n = e == null ? void 0 : e.data.attributes) == null ? void 0 : n.token) || "");
|
|
841
|
-
}),
|
|
842
|
-
Q((e) => (this.logError(`ServiceToken ${e}`), L("")))
|
|
843
|
-
);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
export {
|
|
847
|
-
jr as S,
|
|
848
|
-
xr as f
|
|
849
|
-
};
|