@tapni/auth 0.0.168 → 0.0.170
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/.vite/manifest.json +6 -6
- package/dist/{Account-uZVmDKkt.js → Account-6F9eRo1R.js} +1 -1
- package/dist/{QR-UQySwgoT.js → QR-2Izy5Dj4.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +3 -3
- package/dist/{install-KFv1Z6O7.js → install-co2F1hxN.js} +699 -683
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Language.vue +25 -15
- package/src/components/LinkIcon.vue +1 -1
- package/src/mixins/okta.mixin.js +1 -1
- package/src/mixins/saml.mixin.js +1 -1
- package/src/store/locales/cn.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Qr, readonly as zi, resolveComponent as Fn, openBlock as N, createElementBlock as x, createElementVNode as _, toDisplayString as Q, createCommentVNode as pe, createVNode as
|
|
1
|
+
import { reactive as Qr, readonly as zi, resolveComponent as Fn, openBlock as N, createElementBlock as x, createElementVNode as _, toDisplayString as Q, createCommentVNode as pe, createVNode as Ue, withCtx as Gt, createTextVNode as ke, pushScopeId as qn, popScopeId as Kn, createStaticVNode as xi, nextTick as So, withModifiers as Ve, normalizeStyle as xn, withDirectives as Ie, withKeys as fn, vModelText as mn, vModelDynamic as _r, vShow as Jt, createBlock as ht, normalizeClass as Ke, vModelCheckbox as Ui, watch as Bi, unref as Di } from "vue";
|
|
2
2
|
import { createRouter as Hi, createWebHistory as ji, RouterView as Fi } from "vue-router";
|
|
3
3
|
import { createNamespacedHelpers as qi, createStore as Ki } from "vuex";
|
|
4
4
|
import { Capacitor as Yn, registerPlugin as ar, WebPlugin as Gi } from "@capacitor/core";
|
|
@@ -61,18 +61,18 @@ function Yi(n) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Xt = [], Un = !1, kn,
|
|
64
|
+
var Xt = [], Un = !1, kn, gr = -1;
|
|
65
65
|
function Wi() {
|
|
66
|
-
!Un || !kn || (Un = !1, kn.length ? Xt = kn.concat(Xt) :
|
|
66
|
+
!Un || !kn || (Un = !1, kn.length ? Xt = kn.concat(Xt) : gr = -1, Xt.length && ei());
|
|
67
67
|
}
|
|
68
68
|
function ei() {
|
|
69
69
|
if (!Un) {
|
|
70
70
|
var n = Zo(Wi);
|
|
71
71
|
Un = !0;
|
|
72
72
|
for (var e = Xt.length; e; ) {
|
|
73
|
-
for (kn = Xt, Xt = []; ++
|
|
74
|
-
kn && kn[
|
|
75
|
-
|
|
73
|
+
for (kn = Xt, Xt = []; ++gr < e; )
|
|
74
|
+
kn && kn[gr].run();
|
|
75
|
+
gr = -1, e = Xt.length;
|
|
76
76
|
}
|
|
77
77
|
kn = null, Un = !1, Yi(n);
|
|
78
78
|
}
|
|
@@ -175,10 +175,10 @@ function ia(n) {
|
|
|
175
175
|
var uo = {};
|
|
176
176
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
177
177
|
uo.read = function(n, e, t, r, o) {
|
|
178
|
-
var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, l = -7,
|
|
179
|
-
for (
|
|
178
|
+
var i, a, s = o * 8 - r - 1, u = (1 << s) - 1, p = u >> 1, l = -7, g = t ? o - 1 : 0, f = t ? -1 : 1, k = n[e + g];
|
|
179
|
+
for (g += f, i = k & (1 << -l) - 1, k >>= -l, l += s; l > 0; i = i * 256 + n[e + g], g += f, l -= 8)
|
|
180
180
|
;
|
|
181
|
-
for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e +
|
|
181
|
+
for (a = i & (1 << -l) - 1, i >>= -l, l += r; l > 0; a = a * 256 + n[e + g], g += f, l -= 8)
|
|
182
182
|
;
|
|
183
183
|
if (i === 0)
|
|
184
184
|
i = 1 - p;
|
|
@@ -190,8 +190,8 @@ uo.read = function(n, e, t, r, o) {
|
|
|
190
190
|
return (k ? -1 : 1) * a * Math.pow(2, i - r);
|
|
191
191
|
};
|
|
192
192
|
uo.write = function(n, e, t, r, o, i) {
|
|
193
|
-
var a, s, u, p = i * 8 - o - 1, l = (1 << p) - 1,
|
|
194
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = l) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a +
|
|
193
|
+
var a, s, u, p = i * 8 - o - 1, l = (1 << p) - 1, g = l >> 1, f = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
194
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = l) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + g >= 1 ? e += f / u : e += f * Math.pow(2, 1 - g), e * u >= 2 && (a++, u /= 2), a + g >= l ? (s = 0, a = l) : a + g >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + g) : (s = e * Math.pow(2, g - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
|
|
195
195
|
;
|
|
196
196
|
for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
|
|
197
197
|
;
|
|
@@ -249,10 +249,10 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
249
249
|
);
|
|
250
250
|
return E(h);
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return g(h, c, d);
|
|
253
253
|
}
|
|
254
254
|
l.poolSize = 8192;
|
|
255
|
-
function
|
|
255
|
+
function g(h, c, d) {
|
|
256
256
|
if (typeof h == "string")
|
|
257
257
|
return P(h, c);
|
|
258
258
|
if (a.isView(h))
|
|
@@ -267,9 +267,9 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
267
267
|
throw new TypeError(
|
|
268
268
|
'The "value" argument must not be of type number. Received type number'
|
|
269
269
|
);
|
|
270
|
-
const
|
|
271
|
-
if (
|
|
272
|
-
return l.from(
|
|
270
|
+
const m = h.valueOf && h.valueOf();
|
|
271
|
+
if (m != null && m !== h)
|
|
272
|
+
return l.from(m, c, d);
|
|
273
273
|
const b = T(h);
|
|
274
274
|
if (b)
|
|
275
275
|
return b;
|
|
@@ -280,7 +280,7 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
282
|
l.from = function(h, c, d) {
|
|
283
|
-
return
|
|
283
|
+
return g(h, c, d);
|
|
284
284
|
}, Object.setPrototypeOf(l.prototype, i.prototype), Object.setPrototypeOf(l, i);
|
|
285
285
|
function f(h) {
|
|
286
286
|
if (typeof h != "number")
|
|
@@ -306,14 +306,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
306
306
|
if ((typeof c != "string" || c === "") && (c = "utf8"), !l.isEncoding(c))
|
|
307
307
|
throw new TypeError("Unknown encoding: " + c);
|
|
308
308
|
const d = J(h, c) | 0;
|
|
309
|
-
let
|
|
310
|
-
const b =
|
|
311
|
-
return b !== d && (
|
|
309
|
+
let m = p(d);
|
|
310
|
+
const b = m.write(h, c);
|
|
311
|
+
return b !== d && (m = m.slice(0, b)), m;
|
|
312
312
|
}
|
|
313
313
|
function j(h) {
|
|
314
314
|
const c = h.length < 0 ? 0 : D(h.length) | 0, d = p(c);
|
|
315
|
-
for (let
|
|
316
|
-
d[
|
|
315
|
+
for (let m = 0; m < c; m += 1)
|
|
316
|
+
d[m] = h[m] & 255;
|
|
317
317
|
return d;
|
|
318
318
|
}
|
|
319
319
|
function K(h) {
|
|
@@ -328,8 +328,8 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
328
328
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
329
329
|
if (h.byteLength < c + (d || 0))
|
|
330
330
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
331
|
-
let
|
|
332
|
-
return c === void 0 && d === void 0 ?
|
|
331
|
+
let m;
|
|
332
|
+
return c === void 0 && d === void 0 ? m = new i(h) : d === void 0 ? m = new i(h, c) : m = new i(h, c, d), Object.setPrototypeOf(m, l.prototype), m;
|
|
333
333
|
}
|
|
334
334
|
function T(h) {
|
|
335
335
|
if (l.isBuffer(h)) {
|
|
@@ -358,13 +358,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
358
358
|
);
|
|
359
359
|
if (c === d)
|
|
360
360
|
return 0;
|
|
361
|
-
let
|
|
362
|
-
for (let S = 0, R = Math.min(
|
|
361
|
+
let m = c.length, b = d.length;
|
|
362
|
+
for (let S = 0, R = Math.min(m, b); S < R; ++S)
|
|
363
363
|
if (c[S] !== d[S]) {
|
|
364
|
-
|
|
364
|
+
m = c[S], b = d[S];
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
|
-
return
|
|
367
|
+
return m < b ? -1 : b < m ? 1 : 0;
|
|
368
368
|
}, l.isEncoding = function(c) {
|
|
369
369
|
switch (String(c).toLowerCase()) {
|
|
370
370
|
case "hex":
|
|
@@ -387,14 +387,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
387
387
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
388
388
|
if (c.length === 0)
|
|
389
389
|
return l.alloc(0);
|
|
390
|
-
let
|
|
390
|
+
let m;
|
|
391
391
|
if (d === void 0)
|
|
392
|
-
for (d = 0,
|
|
393
|
-
d += c[
|
|
392
|
+
for (d = 0, m = 0; m < c.length; ++m)
|
|
393
|
+
d += c[m].length;
|
|
394
394
|
const b = l.allocUnsafe(d);
|
|
395
395
|
let S = 0;
|
|
396
|
-
for (
|
|
397
|
-
let R = c[
|
|
396
|
+
for (m = 0; m < c.length; ++m) {
|
|
397
|
+
let R = c[m];
|
|
398
398
|
if (ze(R, i))
|
|
399
399
|
S + R.length > b.length ? (l.isBuffer(R) || (R = l.from(R)), R.copy(b, S)) : i.prototype.set.call(
|
|
400
400
|
b,
|
|
@@ -418,8 +418,8 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
418
418
|
throw new TypeError(
|
|
419
419
|
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof h
|
|
420
420
|
);
|
|
421
|
-
const d = h.length,
|
|
422
|
-
if (!
|
|
421
|
+
const d = h.length, m = arguments.length > 2 && arguments[2] === !0;
|
|
422
|
+
if (!m && d === 0)
|
|
423
423
|
return 0;
|
|
424
424
|
let b = !1;
|
|
425
425
|
for (; ; )
|
|
@@ -442,13 +442,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
442
442
|
return je(h).length;
|
|
443
443
|
default:
|
|
444
444
|
if (b)
|
|
445
|
-
return
|
|
445
|
+
return m ? -1 : _t(h).length;
|
|
446
446
|
c = ("" + c).toLowerCase(), b = !0;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
l.byteLength = J;
|
|
450
450
|
function te(h, c, d) {
|
|
451
|
-
let
|
|
451
|
+
let m = !1;
|
|
452
452
|
if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((d === void 0 || d > this.length) && (d = this.length), d <= 0) || (d >>>= 0, c >>>= 0, d <= c))
|
|
453
453
|
return "";
|
|
454
454
|
for (h || (h = "utf8"); ; )
|
|
@@ -471,15 +471,15 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
471
471
|
case "utf-16le":
|
|
472
472
|
return An(this, c, d);
|
|
473
473
|
default:
|
|
474
|
-
if (
|
|
474
|
+
if (m)
|
|
475
475
|
throw new TypeError("Unknown encoding: " + h);
|
|
476
|
-
h = (h + "").toLowerCase(),
|
|
476
|
+
h = (h + "").toLowerCase(), m = !0;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
l.prototype._isBuffer = !0;
|
|
480
480
|
function Z(h, c, d) {
|
|
481
|
-
const
|
|
482
|
-
h[c] = h[d], h[d] =
|
|
481
|
+
const m = h[c];
|
|
482
|
+
h[c] = h[d], h[d] = m;
|
|
483
483
|
}
|
|
484
484
|
l.prototype.swap16 = function() {
|
|
485
485
|
const c = this.length;
|
|
@@ -513,34 +513,34 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
513
513
|
let c = "";
|
|
514
514
|
const d = n.INSPECT_MAX_BYTES;
|
|
515
515
|
return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
|
|
516
|
-
}, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d,
|
|
516
|
+
}, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(c, d, m, b, S) {
|
|
517
517
|
if (ze(c, i) && (c = l.from(c, c.offset, c.byteLength)), !l.isBuffer(c))
|
|
518
518
|
throw new TypeError(
|
|
519
519
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
520
520
|
);
|
|
521
|
-
if (d === void 0 && (d = 0),
|
|
521
|
+
if (d === void 0 && (d = 0), m === void 0 && (m = c ? c.length : 0), b === void 0 && (b = 0), S === void 0 && (S = this.length), d < 0 || m > c.length || b < 0 || S > this.length)
|
|
522
522
|
throw new RangeError("out of range index");
|
|
523
|
-
if (b >= S && d >=
|
|
523
|
+
if (b >= S && d >= m)
|
|
524
524
|
return 0;
|
|
525
525
|
if (b >= S)
|
|
526
526
|
return -1;
|
|
527
|
-
if (d >=
|
|
527
|
+
if (d >= m)
|
|
528
528
|
return 1;
|
|
529
|
-
if (d >>>= 0,
|
|
529
|
+
if (d >>>= 0, m >>>= 0, b >>>= 0, S >>>= 0, this === c)
|
|
530
530
|
return 0;
|
|
531
|
-
let R = S - b, se =
|
|
532
|
-
const we = Math.min(R, se),
|
|
531
|
+
let R = S - b, se = m - d;
|
|
532
|
+
const we = Math.min(R, se), ge = this.slice(b, S), be = c.slice(d, m);
|
|
533
533
|
for (let he = 0; he < we; ++he)
|
|
534
|
-
if (
|
|
535
|
-
R =
|
|
534
|
+
if (ge[he] !== be[he]) {
|
|
535
|
+
R = ge[he], se = be[he];
|
|
536
536
|
break;
|
|
537
537
|
}
|
|
538
538
|
return R < se ? -1 : se < R ? 1 : 0;
|
|
539
539
|
};
|
|
540
|
-
function ve(h, c, d,
|
|
540
|
+
function ve(h, c, d, m, b) {
|
|
541
541
|
if (h.length === 0)
|
|
542
542
|
return -1;
|
|
543
|
-
if (typeof d == "string" ? (
|
|
543
|
+
if (typeof d == "string" ? (m = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, dt(d) && (d = b ? 0 : h.length - 1), d < 0 && (d = h.length + d), d >= h.length) {
|
|
544
544
|
if (b)
|
|
545
545
|
return -1;
|
|
546
546
|
d = h.length - 1;
|
|
@@ -549,15 +549,15 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
549
549
|
d = 0;
|
|
550
550
|
else
|
|
551
551
|
return -1;
|
|
552
|
-
if (typeof c == "string" && (c = l.from(c,
|
|
553
|
-
return c.length === 0 ? -1 : Se(h, c, d,
|
|
552
|
+
if (typeof c == "string" && (c = l.from(c, m)), l.isBuffer(c))
|
|
553
|
+
return c.length === 0 ? -1 : Se(h, c, d, m, b);
|
|
554
554
|
if (typeof c == "number")
|
|
555
|
-
return c = c & 255, typeof i.prototype.indexOf == "function" ? b ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : Se(h, [c], d,
|
|
555
|
+
return c = c & 255, typeof i.prototype.indexOf == "function" ? b ? i.prototype.indexOf.call(h, c, d) : i.prototype.lastIndexOf.call(h, c, d) : Se(h, [c], d, m, b);
|
|
556
556
|
throw new TypeError("val must be string, number or Buffer");
|
|
557
557
|
}
|
|
558
|
-
function Se(h, c, d,
|
|
558
|
+
function Se(h, c, d, m, b) {
|
|
559
559
|
let S = 1, R = h.length, se = c.length;
|
|
560
|
-
if (
|
|
560
|
+
if (m !== void 0 && (m = String(m).toLowerCase(), m === "ucs2" || m === "ucs-2" || m === "utf16le" || m === "utf-16le")) {
|
|
561
561
|
if (h.length < 2 || c.length < 2)
|
|
562
562
|
return -1;
|
|
563
563
|
S = 2, R /= 2, se /= 2, d /= 2;
|
|
@@ -565,43 +565,43 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
565
565
|
function we(be, he) {
|
|
566
566
|
return S === 1 ? be[he] : be.readUInt16BE(he * S);
|
|
567
567
|
}
|
|
568
|
-
let
|
|
568
|
+
let ge;
|
|
569
569
|
if (b) {
|
|
570
570
|
let be = -1;
|
|
571
|
-
for (
|
|
572
|
-
if (we(h,
|
|
573
|
-
if (be === -1 && (be =
|
|
571
|
+
for (ge = d; ge < R; ge++)
|
|
572
|
+
if (we(h, ge) === we(c, be === -1 ? 0 : ge - be)) {
|
|
573
|
+
if (be === -1 && (be = ge), ge - be + 1 === se)
|
|
574
574
|
return be * S;
|
|
575
575
|
} else
|
|
576
|
-
be !== -1 && (
|
|
576
|
+
be !== -1 && (ge -= ge - be), be = -1;
|
|
577
577
|
} else
|
|
578
|
-
for (d + se > R && (d = R - se),
|
|
578
|
+
for (d + se > R && (d = R - se), ge = d; ge >= 0; ge--) {
|
|
579
579
|
let be = !0;
|
|
580
580
|
for (let he = 0; he < se; he++)
|
|
581
|
-
if (we(h,
|
|
581
|
+
if (we(h, ge + he) !== we(c, he)) {
|
|
582
582
|
be = !1;
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
if (be)
|
|
586
|
-
return
|
|
586
|
+
return ge;
|
|
587
587
|
}
|
|
588
588
|
return -1;
|
|
589
589
|
}
|
|
590
|
-
l.prototype.includes = function(c, d,
|
|
591
|
-
return this.indexOf(c, d,
|
|
592
|
-
}, l.prototype.indexOf = function(c, d,
|
|
593
|
-
return ve(this, c, d,
|
|
594
|
-
}, l.prototype.lastIndexOf = function(c, d,
|
|
595
|
-
return ve(this, c, d,
|
|
590
|
+
l.prototype.includes = function(c, d, m) {
|
|
591
|
+
return this.indexOf(c, d, m) !== -1;
|
|
592
|
+
}, l.prototype.indexOf = function(c, d, m) {
|
|
593
|
+
return ve(this, c, d, m, !0);
|
|
594
|
+
}, l.prototype.lastIndexOf = function(c, d, m) {
|
|
595
|
+
return ve(this, c, d, m, !1);
|
|
596
596
|
};
|
|
597
|
-
function ye(h, c, d,
|
|
597
|
+
function ye(h, c, d, m) {
|
|
598
598
|
d = Number(d) || 0;
|
|
599
599
|
const b = h.length - d;
|
|
600
|
-
|
|
600
|
+
m ? (m = Number(m), m > b && (m = b)) : m = b;
|
|
601
601
|
const S = c.length;
|
|
602
|
-
|
|
602
|
+
m > S / 2 && (m = S / 2);
|
|
603
603
|
let R;
|
|
604
|
-
for (R = 0; R <
|
|
604
|
+
for (R = 0; R < m; ++R) {
|
|
605
605
|
const se = parseInt(c.substr(R * 2, 2), 16);
|
|
606
606
|
if (dt(se))
|
|
607
607
|
return R;
|
|
@@ -609,52 +609,52 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
609
609
|
}
|
|
610
610
|
return R;
|
|
611
611
|
}
|
|
612
|
-
function Ne(h, c, d,
|
|
613
|
-
return vt(_t(c, h.length - d), h, d,
|
|
612
|
+
function Ne(h, c, d, m) {
|
|
613
|
+
return vt(_t(c, h.length - d), h, d, m);
|
|
614
614
|
}
|
|
615
|
-
function Qt(h, c, d,
|
|
616
|
-
return vt(vn(c), h, d,
|
|
615
|
+
function Qt(h, c, d, m) {
|
|
616
|
+
return vt(vn(c), h, d, m);
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return vt(je(c), h, d,
|
|
618
|
+
function Ye(h, c, d, m) {
|
|
619
|
+
return vt(je(c), h, d, m);
|
|
620
620
|
}
|
|
621
|
-
function an(h, c, d,
|
|
622
|
-
return vt(Tt(c, h.length - d), h, d,
|
|
621
|
+
function an(h, c, d, m) {
|
|
622
|
+
return vt(Tt(c, h.length - d), h, d, m);
|
|
623
623
|
}
|
|
624
|
-
l.prototype.write = function(c, d,
|
|
624
|
+
l.prototype.write = function(c, d, m, b) {
|
|
625
625
|
if (d === void 0)
|
|
626
|
-
b = "utf8",
|
|
627
|
-
else if (
|
|
628
|
-
b = d,
|
|
626
|
+
b = "utf8", m = this.length, d = 0;
|
|
627
|
+
else if (m === void 0 && typeof d == "string")
|
|
628
|
+
b = d, m = this.length, d = 0;
|
|
629
629
|
else if (isFinite(d))
|
|
630
|
-
d = d >>> 0, isFinite(
|
|
630
|
+
d = d >>> 0, isFinite(m) ? (m = m >>> 0, b === void 0 && (b = "utf8")) : (b = m, m = void 0);
|
|
631
631
|
else
|
|
632
632
|
throw new Error(
|
|
633
633
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
634
634
|
);
|
|
635
635
|
const S = this.length - d;
|
|
636
|
-
if ((
|
|
636
|
+
if ((m === void 0 || m > S) && (m = S), c.length > 0 && (m < 0 || d < 0) || d > this.length)
|
|
637
637
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
638
638
|
b || (b = "utf8");
|
|
639
639
|
let R = !1;
|
|
640
640
|
for (; ; )
|
|
641
641
|
switch (b) {
|
|
642
642
|
case "hex":
|
|
643
|
-
return ye(this, c, d,
|
|
643
|
+
return ye(this, c, d, m);
|
|
644
644
|
case "utf8":
|
|
645
645
|
case "utf-8":
|
|
646
|
-
return Ne(this, c, d,
|
|
646
|
+
return Ne(this, c, d, m);
|
|
647
647
|
case "ascii":
|
|
648
648
|
case "latin1":
|
|
649
649
|
case "binary":
|
|
650
|
-
return Qt(this, c, d,
|
|
650
|
+
return Qt(this, c, d, m);
|
|
651
651
|
case "base64":
|
|
652
|
-
return
|
|
652
|
+
return Ye(this, c, d, m);
|
|
653
653
|
case "ucs2":
|
|
654
654
|
case "ucs-2":
|
|
655
655
|
case "utf16le":
|
|
656
656
|
case "utf-16le":
|
|
657
|
-
return an(this, c, d,
|
|
657
|
+
return an(this, c, d, m);
|
|
658
658
|
default:
|
|
659
659
|
if (R)
|
|
660
660
|
throw new TypeError("Unknown encoding: " + b);
|
|
@@ -671,13 +671,13 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
671
671
|
}
|
|
672
672
|
function Nt(h, c, d) {
|
|
673
673
|
d = Math.min(h.length, d);
|
|
674
|
-
const
|
|
674
|
+
const m = [];
|
|
675
675
|
let b = c;
|
|
676
676
|
for (; b < d; ) {
|
|
677
677
|
const S = h[b];
|
|
678
678
|
let R = null, se = S > 239 ? 4 : S > 223 ? 3 : S > 191 ? 2 : 1;
|
|
679
679
|
if (b + se <= d) {
|
|
680
|
-
let we,
|
|
680
|
+
let we, ge, be, he;
|
|
681
681
|
switch (se) {
|
|
682
682
|
case 1:
|
|
683
683
|
S < 128 && (R = S);
|
|
@@ -686,61 +686,61 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
686
686
|
we = h[b + 1], (we & 192) === 128 && (he = (S & 31) << 6 | we & 63, he > 127 && (R = he));
|
|
687
687
|
break;
|
|
688
688
|
case 3:
|
|
689
|
-
we = h[b + 1],
|
|
689
|
+
we = h[b + 1], ge = h[b + 2], (we & 192) === 128 && (ge & 192) === 128 && (he = (S & 15) << 12 | (we & 63) << 6 | ge & 63, he > 2047 && (he < 55296 || he > 57343) && (R = he));
|
|
690
690
|
break;
|
|
691
691
|
case 4:
|
|
692
|
-
we = h[b + 1],
|
|
692
|
+
we = h[b + 1], ge = h[b + 2], be = h[b + 3], (we & 192) === 128 && (ge & 192) === 128 && (be & 192) === 128 && (he = (S & 15) << 18 | (we & 63) << 12 | (ge & 63) << 6 | be & 63, he > 65535 && he < 1114112 && (R = he));
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
R === null ? (R = 65533, se = 1) : R > 65535 && (R -= 65536,
|
|
695
|
+
R === null ? (R = 65533, se = 1) : R > 65535 && (R -= 65536, m.push(R >>> 10 & 1023 | 55296), R = 56320 | R & 1023), m.push(R), b += se;
|
|
696
696
|
}
|
|
697
|
-
return
|
|
697
|
+
return gn(m);
|
|
698
698
|
}
|
|
699
699
|
const ct = 4096;
|
|
700
|
-
function
|
|
700
|
+
function gn(h) {
|
|
701
701
|
const c = h.length;
|
|
702
702
|
if (c <= ct)
|
|
703
703
|
return String.fromCharCode.apply(String, h);
|
|
704
|
-
let d = "",
|
|
705
|
-
for (;
|
|
704
|
+
let d = "", m = 0;
|
|
705
|
+
for (; m < c; )
|
|
706
706
|
d += String.fromCharCode.apply(
|
|
707
707
|
String,
|
|
708
|
-
h.slice(
|
|
708
|
+
h.slice(m, m += ct)
|
|
709
709
|
);
|
|
710
710
|
return d;
|
|
711
711
|
}
|
|
712
712
|
function sn(h, c, d) {
|
|
713
|
-
let
|
|
713
|
+
let m = "";
|
|
714
714
|
d = Math.min(h.length, d);
|
|
715
715
|
for (let b = c; b < d; ++b)
|
|
716
|
-
|
|
717
|
-
return
|
|
716
|
+
m += String.fromCharCode(h[b] & 127);
|
|
717
|
+
return m;
|
|
718
718
|
}
|
|
719
719
|
function _n(h, c, d) {
|
|
720
|
-
let
|
|
720
|
+
let m = "";
|
|
721
721
|
d = Math.min(h.length, d);
|
|
722
722
|
for (let b = c; b < d; ++b)
|
|
723
|
-
|
|
724
|
-
return
|
|
723
|
+
m += String.fromCharCode(h[b]);
|
|
724
|
+
return m;
|
|
725
725
|
}
|
|
726
726
|
function cn(h, c, d) {
|
|
727
|
-
const
|
|
728
|
-
(!c || c < 0) && (c = 0), (!d || d < 0 || d >
|
|
727
|
+
const m = h.length;
|
|
728
|
+
(!c || c < 0) && (c = 0), (!d || d < 0 || d > m) && (d = m);
|
|
729
729
|
let b = "";
|
|
730
730
|
for (let S = c; S < d; ++S)
|
|
731
731
|
b += yn[h[S]];
|
|
732
732
|
return b;
|
|
733
733
|
}
|
|
734
734
|
function An(h, c, d) {
|
|
735
|
-
const
|
|
735
|
+
const m = h.slice(c, d);
|
|
736
736
|
let b = "";
|
|
737
|
-
for (let S = 0; S <
|
|
738
|
-
b += String.fromCharCode(
|
|
737
|
+
for (let S = 0; S < m.length - 1; S += 2)
|
|
738
|
+
b += String.fromCharCode(m[S] + m[S + 1] * 256);
|
|
739
739
|
return b;
|
|
740
740
|
}
|
|
741
741
|
l.prototype.slice = function(c, d) {
|
|
742
|
-
const
|
|
743
|
-
c = ~~c, d = d === void 0 ?
|
|
742
|
+
const m = this.length;
|
|
743
|
+
c = ~~c, d = d === void 0 ? m : ~~d, c < 0 ? (c += m, c < 0 && (c = 0)) : c > m && (c = m), d < 0 ? (d += m, d < 0 && (d = 0)) : d > m && (d = m), d < c && (d = c);
|
|
744
744
|
const b = this.subarray(c, d);
|
|
745
745
|
return Object.setPrototypeOf(b, l.prototype), b;
|
|
746
746
|
};
|
|
@@ -750,14 +750,14 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
750
750
|
if (h + c > d)
|
|
751
751
|
throw new RangeError("Trying to access beyond buffer length");
|
|
752
752
|
}
|
|
753
|
-
l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d,
|
|
754
|
-
c = c >>> 0, d = d >>> 0,
|
|
753
|
+
l.prototype.readUintLE = l.prototype.readUIntLE = function(c, d, m) {
|
|
754
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
755
755
|
let b = this[c], S = 1, R = 0;
|
|
756
756
|
for (; ++R < d && (S *= 256); )
|
|
757
757
|
b += this[c + R] * S;
|
|
758
758
|
return b;
|
|
759
|
-
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d,
|
|
760
|
-
c = c >>> 0, d = d >>> 0,
|
|
759
|
+
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(c, d, m) {
|
|
760
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
761
761
|
let b = this[c + --d], S = 1;
|
|
762
762
|
for (; d > 0 && (S *= 256); )
|
|
763
763
|
b += this[c + --d] * S;
|
|
@@ -774,24 +774,24 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
774
774
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
|
|
775
775
|
}, l.prototype.readBigUInt64LE = Fe(function(c) {
|
|
776
776
|
c = c >>> 0, Pe(c, "offset");
|
|
777
|
-
const d = this[c],
|
|
778
|
-
(d === void 0 ||
|
|
779
|
-
const b = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 +
|
|
777
|
+
const d = this[c], m = this[c + 7];
|
|
778
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
779
|
+
const b = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + m * 2 ** 24;
|
|
780
780
|
return BigInt(b) + (BigInt(S) << BigInt(32));
|
|
781
781
|
}), l.prototype.readBigUInt64BE = Fe(function(c) {
|
|
782
782
|
c = c >>> 0, Pe(c, "offset");
|
|
783
|
-
const d = this[c],
|
|
784
|
-
(d === void 0 ||
|
|
785
|
-
const b = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 +
|
|
783
|
+
const d = this[c], m = this[c + 7];
|
|
784
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
785
|
+
const b = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
|
|
786
786
|
return (BigInt(b) << BigInt(32)) + BigInt(S);
|
|
787
|
-
}), l.prototype.readIntLE = function(c, d,
|
|
788
|
-
c = c >>> 0, d = d >>> 0,
|
|
787
|
+
}), l.prototype.readIntLE = function(c, d, m) {
|
|
788
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
789
789
|
let b = this[c], S = 1, R = 0;
|
|
790
790
|
for (; ++R < d && (S *= 256); )
|
|
791
791
|
b += this[c + R] * S;
|
|
792
792
|
return S *= 128, b >= S && (b -= Math.pow(2, 8 * d)), b;
|
|
793
|
-
}, l.prototype.readIntBE = function(c, d,
|
|
794
|
-
c = c >>> 0, d = d >>> 0,
|
|
793
|
+
}, l.prototype.readIntBE = function(c, d, m) {
|
|
794
|
+
c = c >>> 0, d = d >>> 0, m || Te(c, d, this.length);
|
|
795
795
|
let b = d, S = 1, R = this[c + --b];
|
|
796
796
|
for (; b > 0 && (S *= 256); )
|
|
797
797
|
R += this[c + --b] * S;
|
|
@@ -800,29 +800,29 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
800
800
|
return c = c >>> 0, d || Te(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
801
801
|
}, l.prototype.readInt16LE = function(c, d) {
|
|
802
802
|
c = c >>> 0, d || Te(c, 2, this.length);
|
|
803
|
-
const
|
|
804
|
-
return
|
|
803
|
+
const m = this[c] | this[c + 1] << 8;
|
|
804
|
+
return m & 32768 ? m | 4294901760 : m;
|
|
805
805
|
}, l.prototype.readInt16BE = function(c, d) {
|
|
806
806
|
c = c >>> 0, d || Te(c, 2, this.length);
|
|
807
|
-
const
|
|
808
|
-
return
|
|
807
|
+
const m = this[c + 1] | this[c] << 8;
|
|
808
|
+
return m & 32768 ? m | 4294901760 : m;
|
|
809
809
|
}, l.prototype.readInt32LE = function(c, d) {
|
|
810
810
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
|
|
811
811
|
}, l.prototype.readInt32BE = function(c, d) {
|
|
812
812
|
return c = c >>> 0, d || Te(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
|
|
813
813
|
}, l.prototype.readBigInt64LE = Fe(function(c) {
|
|
814
814
|
c = c >>> 0, Pe(c, "offset");
|
|
815
|
-
const d = this[c],
|
|
816
|
-
(d === void 0 ||
|
|
817
|
-
const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (
|
|
815
|
+
const d = this[c], m = this[c + 7];
|
|
816
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
817
|
+
const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (m << 24);
|
|
818
818
|
return (BigInt(b) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
|
|
819
819
|
}), l.prototype.readBigInt64BE = Fe(function(c) {
|
|
820
820
|
c = c >>> 0, Pe(c, "offset");
|
|
821
|
-
const d = this[c],
|
|
822
|
-
(d === void 0 ||
|
|
821
|
+
const d = this[c], m = this[c + 7];
|
|
822
|
+
(d === void 0 || m === void 0) && ut(c, this.length - 8);
|
|
823
823
|
const b = (d << 24) + // Overflow
|
|
824
824
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
825
|
-
return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 +
|
|
825
|
+
return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
826
826
|
}), l.prototype.readFloatLE = function(c, d) {
|
|
827
827
|
return c = c >>> 0, d || Te(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
828
828
|
}, l.prototype.readFloatBE = function(c, d) {
|
|
@@ -832,52 +832,52 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
832
832
|
}, l.prototype.readDoubleBE = function(c, d) {
|
|
833
833
|
return c = c >>> 0, d || Te(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
834
834
|
};
|
|
835
|
-
function Re(h, c, d,
|
|
835
|
+
function Re(h, c, d, m, b, S) {
|
|
836
836
|
if (!l.isBuffer(h))
|
|
837
837
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
838
838
|
if (c > b || c < S)
|
|
839
839
|
throw new RangeError('"value" argument is out of bounds');
|
|
840
|
-
if (d +
|
|
840
|
+
if (d + m > h.length)
|
|
841
841
|
throw new RangeError("Index out of range");
|
|
842
842
|
}
|
|
843
|
-
l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d,
|
|
844
|
-
if (c = +c, d = d >>> 0,
|
|
845
|
-
const se = Math.pow(2, 8 *
|
|
846
|
-
Re(this, c, d,
|
|
843
|
+
l.prototype.writeUintLE = l.prototype.writeUIntLE = function(c, d, m, b) {
|
|
844
|
+
if (c = +c, d = d >>> 0, m = m >>> 0, !b) {
|
|
845
|
+
const se = Math.pow(2, 8 * m) - 1;
|
|
846
|
+
Re(this, c, d, m, se, 0);
|
|
847
847
|
}
|
|
848
848
|
let S = 1, R = 0;
|
|
849
|
-
for (this[d] = c & 255; ++R <
|
|
849
|
+
for (this[d] = c & 255; ++R < m && (S *= 256); )
|
|
850
850
|
this[d + R] = c / S & 255;
|
|
851
|
-
return d +
|
|
852
|
-
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d,
|
|
853
|
-
if (c = +c, d = d >>> 0,
|
|
854
|
-
const se = Math.pow(2, 8 *
|
|
855
|
-
Re(this, c, d,
|
|
851
|
+
return d + m;
|
|
852
|
+
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(c, d, m, b) {
|
|
853
|
+
if (c = +c, d = d >>> 0, m = m >>> 0, !b) {
|
|
854
|
+
const se = Math.pow(2, 8 * m) - 1;
|
|
855
|
+
Re(this, c, d, m, se, 0);
|
|
856
856
|
}
|
|
857
|
-
let S =
|
|
857
|
+
let S = m - 1, R = 1;
|
|
858
858
|
for (this[d + S] = c & 255; --S >= 0 && (R *= 256); )
|
|
859
859
|
this[d + S] = c / R & 255;
|
|
860
|
-
return d +
|
|
861
|
-
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d,
|
|
862
|
-
return c = +c, d = d >>> 0,
|
|
863
|
-
}, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d,
|
|
864
|
-
return c = +c, d = d >>> 0,
|
|
865
|
-
}, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d,
|
|
866
|
-
return c = +c, d = d >>> 0,
|
|
867
|
-
}, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d,
|
|
868
|
-
return c = +c, d = d >>> 0,
|
|
869
|
-
}, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d,
|
|
870
|
-
return c = +c, d = d >>> 0,
|
|
860
|
+
return d + m;
|
|
861
|
+
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(c, d, m) {
|
|
862
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
|
|
863
|
+
}, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(c, d, m) {
|
|
864
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
|
|
865
|
+
}, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(c, d, m) {
|
|
866
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 65535, 0), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
|
|
867
|
+
}, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(c, d, m) {
|
|
868
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d + 3] = c >>> 24, this[d + 2] = c >>> 16, this[d + 1] = c >>> 8, this[d] = c & 255, d + 4;
|
|
869
|
+
}, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(c, d, m) {
|
|
870
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
|
|
871
871
|
};
|
|
872
|
-
function Yt(h, c, d,
|
|
873
|
-
|
|
872
|
+
function Yt(h, c, d, m, b) {
|
|
873
|
+
We(c, m, b, h, d, 7);
|
|
874
874
|
let S = Number(c & BigInt(4294967295));
|
|
875
875
|
h[d++] = S, S = S >> 8, h[d++] = S, S = S >> 8, h[d++] = S, S = S >> 8, h[d++] = S;
|
|
876
876
|
let R = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
877
877
|
return h[d++] = R, R = R >> 8, h[d++] = R, R = R >> 8, h[d++] = R, R = R >> 8, h[d++] = R, d;
|
|
878
878
|
}
|
|
879
|
-
function He(h, c, d,
|
|
880
|
-
|
|
879
|
+
function He(h, c, d, m, b) {
|
|
880
|
+
We(c, m, b, h, d, 7);
|
|
881
881
|
let S = Number(c & BigInt(4294967295));
|
|
882
882
|
h[d + 7] = S, S = S >> 8, h[d + 6] = S, S = S >> 8, h[d + 5] = S, S = S >> 8, h[d + 4] = S;
|
|
883
883
|
let R = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
@@ -887,81 +887,81 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
887
887
|
return Yt(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
888
888
|
}), l.prototype.writeBigUInt64BE = Fe(function(c, d = 0) {
|
|
889
889
|
return He(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
890
|
-
}), l.prototype.writeIntLE = function(c, d,
|
|
890
|
+
}), l.prototype.writeIntLE = function(c, d, m, b) {
|
|
891
891
|
if (c = +c, d = d >>> 0, !b) {
|
|
892
|
-
const we = Math.pow(2, 8 *
|
|
893
|
-
Re(this, c, d,
|
|
892
|
+
const we = Math.pow(2, 8 * m - 1);
|
|
893
|
+
Re(this, c, d, m, we - 1, -we);
|
|
894
894
|
}
|
|
895
895
|
let S = 0, R = 1, se = 0;
|
|
896
|
-
for (this[d] = c & 255; ++S <
|
|
896
|
+
for (this[d] = c & 255; ++S < m && (R *= 256); )
|
|
897
897
|
c < 0 && se === 0 && this[d + S - 1] !== 0 && (se = 1), this[d + S] = (c / R >> 0) - se & 255;
|
|
898
|
-
return d +
|
|
899
|
-
}, l.prototype.writeIntBE = function(c, d,
|
|
898
|
+
return d + m;
|
|
899
|
+
}, l.prototype.writeIntBE = function(c, d, m, b) {
|
|
900
900
|
if (c = +c, d = d >>> 0, !b) {
|
|
901
|
-
const we = Math.pow(2, 8 *
|
|
902
|
-
Re(this, c, d,
|
|
901
|
+
const we = Math.pow(2, 8 * m - 1);
|
|
902
|
+
Re(this, c, d, m, we - 1, -we);
|
|
903
903
|
}
|
|
904
|
-
let S =
|
|
904
|
+
let S = m - 1, R = 1, se = 0;
|
|
905
905
|
for (this[d + S] = c & 255; --S >= 0 && (R *= 256); )
|
|
906
906
|
c < 0 && se === 0 && this[d + S + 1] !== 0 && (se = 1), this[d + S] = (c / R >> 0) - se & 255;
|
|
907
|
-
return d +
|
|
908
|
-
}, l.prototype.writeInt8 = function(c, d,
|
|
909
|
-
return c = +c, d = d >>> 0,
|
|
910
|
-
}, l.prototype.writeInt16LE = function(c, d,
|
|
911
|
-
return c = +c, d = d >>> 0,
|
|
912
|
-
}, l.prototype.writeInt16BE = function(c, d,
|
|
913
|
-
return c = +c, d = d >>> 0,
|
|
914
|
-
}, l.prototype.writeInt32LE = function(c, d,
|
|
915
|
-
return c = +c, d = d >>> 0,
|
|
916
|
-
}, l.prototype.writeInt32BE = function(c, d,
|
|
917
|
-
return c = +c, d = d >>> 0,
|
|
907
|
+
return d + m;
|
|
908
|
+
}, l.prototype.writeInt8 = function(c, d, m) {
|
|
909
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
|
|
910
|
+
}, l.prototype.writeInt16LE = function(c, d, m) {
|
|
911
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c & 255, this[d + 1] = c >>> 8, d + 2;
|
|
912
|
+
}, l.prototype.writeInt16BE = function(c, d, m) {
|
|
913
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 2, 32767, -32768), this[d] = c >>> 8, this[d + 1] = c & 255, d + 2;
|
|
914
|
+
}, l.prototype.writeInt32LE = function(c, d, m) {
|
|
915
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), this[d] = c & 255, this[d + 1] = c >>> 8, this[d + 2] = c >>> 16, this[d + 3] = c >>> 24, d + 4;
|
|
916
|
+
}, l.prototype.writeInt32BE = function(c, d, m) {
|
|
917
|
+
return c = +c, d = d >>> 0, m || Re(this, c, d, 4, 2147483647, -2147483648), c < 0 && (c = 4294967295 + c + 1), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
|
|
918
918
|
}, l.prototype.writeBigInt64LE = Fe(function(c, d = 0) {
|
|
919
919
|
return Yt(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
920
920
|
}), l.prototype.writeBigInt64BE = Fe(function(c, d = 0) {
|
|
921
921
|
return He(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
922
922
|
});
|
|
923
|
-
function Le(h, c, d,
|
|
924
|
-
if (d +
|
|
923
|
+
function Le(h, c, d, m, b, S) {
|
|
924
|
+
if (d + m > h.length)
|
|
925
925
|
throw new RangeError("Index out of range");
|
|
926
926
|
if (d < 0)
|
|
927
927
|
throw new RangeError("Index out of range");
|
|
928
928
|
}
|
|
929
|
-
function Ot(h, c, d,
|
|
930
|
-
return c = +c, d = d >>> 0, b || Le(h, c, d, 4), t.write(h, c, d,
|
|
929
|
+
function Ot(h, c, d, m, b) {
|
|
930
|
+
return c = +c, d = d >>> 0, b || Le(h, c, d, 4), t.write(h, c, d, m, 23, 4), d + 4;
|
|
931
931
|
}
|
|
932
|
-
l.prototype.writeFloatLE = function(c, d,
|
|
933
|
-
return Ot(this, c, d, !0,
|
|
934
|
-
}, l.prototype.writeFloatBE = function(c, d,
|
|
935
|
-
return Ot(this, c, d, !1,
|
|
932
|
+
l.prototype.writeFloatLE = function(c, d, m) {
|
|
933
|
+
return Ot(this, c, d, !0, m);
|
|
934
|
+
}, l.prototype.writeFloatBE = function(c, d, m) {
|
|
935
|
+
return Ot(this, c, d, !1, m);
|
|
936
936
|
};
|
|
937
|
-
function Et(h, c, d,
|
|
938
|
-
return c = +c, d = d >>> 0, b || Le(h, c, d, 8), t.write(h, c, d,
|
|
937
|
+
function Et(h, c, d, m, b) {
|
|
938
|
+
return c = +c, d = d >>> 0, b || Le(h, c, d, 8), t.write(h, c, d, m, 52, 8), d + 8;
|
|
939
939
|
}
|
|
940
|
-
l.prototype.writeDoubleLE = function(c, d,
|
|
941
|
-
return Et(this, c, d, !0,
|
|
942
|
-
}, l.prototype.writeDoubleBE = function(c, d,
|
|
943
|
-
return Et(this, c, d, !1,
|
|
944
|
-
}, l.prototype.copy = function(c, d,
|
|
940
|
+
l.prototype.writeDoubleLE = function(c, d, m) {
|
|
941
|
+
return Et(this, c, d, !0, m);
|
|
942
|
+
}, l.prototype.writeDoubleBE = function(c, d, m) {
|
|
943
|
+
return Et(this, c, d, !1, m);
|
|
944
|
+
}, l.prototype.copy = function(c, d, m, b) {
|
|
945
945
|
if (!l.isBuffer(c))
|
|
946
946
|
throw new TypeError("argument should be a Buffer");
|
|
947
|
-
if (
|
|
947
|
+
if (m || (m = 0), !b && b !== 0 && (b = this.length), d >= c.length && (d = c.length), d || (d = 0), b > 0 && b < m && (b = m), b === m || c.length === 0 || this.length === 0)
|
|
948
948
|
return 0;
|
|
949
949
|
if (d < 0)
|
|
950
950
|
throw new RangeError("targetStart out of bounds");
|
|
951
|
-
if (
|
|
951
|
+
if (m < 0 || m >= this.length)
|
|
952
952
|
throw new RangeError("Index out of range");
|
|
953
953
|
if (b < 0)
|
|
954
954
|
throw new RangeError("sourceEnd out of bounds");
|
|
955
|
-
b > this.length && (b = this.length), c.length - d < b -
|
|
956
|
-
const S = b -
|
|
957
|
-
return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(d,
|
|
955
|
+
b > this.length && (b = this.length), c.length - d < b - m && (b = c.length - d + m);
|
|
956
|
+
const S = b - m;
|
|
957
|
+
return this === c && typeof i.prototype.copyWithin == "function" ? this.copyWithin(d, m, b) : i.prototype.set.call(
|
|
958
958
|
c,
|
|
959
|
-
this.subarray(
|
|
959
|
+
this.subarray(m, b),
|
|
960
960
|
d
|
|
961
961
|
), S;
|
|
962
|
-
}, l.prototype.fill = function(c, d,
|
|
962
|
+
}, l.prototype.fill = function(c, d, m, b) {
|
|
963
963
|
if (typeof c == "string") {
|
|
964
|
-
if (typeof d == "string" ? (b = d, d = 0,
|
|
964
|
+
if (typeof d == "string" ? (b = d, d = 0, m = this.length) : typeof m == "string" && (b = m, m = this.length), b !== void 0 && typeof b != "string")
|
|
965
965
|
throw new TypeError("encoding must be a string");
|
|
966
966
|
if (typeof b == "string" && !l.isEncoding(b))
|
|
967
967
|
throw new TypeError("Unknown encoding: " + b);
|
|
@@ -971,20 +971,20 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
971
971
|
}
|
|
972
972
|
} else
|
|
973
973
|
typeof c == "number" ? c = c & 255 : typeof c == "boolean" && (c = Number(c));
|
|
974
|
-
if (d < 0 || this.length < d || this.length <
|
|
974
|
+
if (d < 0 || this.length < d || this.length < m)
|
|
975
975
|
throw new RangeError("Out of range index");
|
|
976
|
-
if (
|
|
976
|
+
if (m <= d)
|
|
977
977
|
return this;
|
|
978
|
-
d = d >>> 0,
|
|
978
|
+
d = d >>> 0, m = m === void 0 ? this.length : m >>> 0, c || (c = 0);
|
|
979
979
|
let S;
|
|
980
980
|
if (typeof c == "number")
|
|
981
|
-
for (S = d; S <
|
|
981
|
+
for (S = d; S < m; ++S)
|
|
982
982
|
this[S] = c;
|
|
983
983
|
else {
|
|
984
984
|
const R = l.isBuffer(c) ? c : l.from(c, b), se = R.length;
|
|
985
985
|
if (se === 0)
|
|
986
986
|
throw new TypeError('The value "' + c + '" is invalid for argument "value"');
|
|
987
|
-
for (S = 0; S <
|
|
987
|
+
for (S = 0; S < m - d; ++S)
|
|
988
988
|
this[S + d] = R[S % se];
|
|
989
989
|
}
|
|
990
990
|
return this;
|
|
@@ -1030,28 +1030,28 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1030
1030
|
), lt(
|
|
1031
1031
|
"ERR_OUT_OF_RANGE",
|
|
1032
1032
|
function(h, c, d) {
|
|
1033
|
-
let
|
|
1034
|
-
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? b = Wt(String(d)) : typeof d == "bigint" && (b = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (b = Wt(b)), b += "n"),
|
|
1033
|
+
let m = `The value of "${h}" is out of range.`, b = d;
|
|
1034
|
+
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? b = Wt(String(d)) : typeof d == "bigint" && (b = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (b = Wt(b)), b += "n"), m += ` It must be ${c}. Received ${b}`, m;
|
|
1035
1035
|
},
|
|
1036
1036
|
RangeError
|
|
1037
1037
|
);
|
|
1038
1038
|
function Wt(h) {
|
|
1039
1039
|
let c = "", d = h.length;
|
|
1040
|
-
const
|
|
1041
|
-
for (; d >=
|
|
1040
|
+
const m = h[0] === "-" ? 1 : 0;
|
|
1041
|
+
for (; d >= m + 4; d -= 3)
|
|
1042
1042
|
c = `_${h.slice(d - 3, d)}${c}`;
|
|
1043
1043
|
return `${h.slice(0, d)}${c}`;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Lt(h, c, d) {
|
|
1046
1046
|
Pe(c, "offset"), (h[c] === void 0 || h[c + d] === void 0) && ut(c, h.length - (d + 1));
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function We(h, c, d, m, b, S) {
|
|
1049
1049
|
if (h > d || h < c) {
|
|
1050
1050
|
const R = typeof c == "bigint" ? "n" : "";
|
|
1051
1051
|
let se;
|
|
1052
1052
|
throw S > 3 ? c === 0 || c === BigInt(0) ? se = `>= 0${R} and < 2${R} ** ${(S + 1) * 8}${R}` : se = `>= -(2${R} ** ${(S + 1) * 8 - 1}${R}) and < 2 ** ${(S + 1) * 8 - 1}${R}` : se = `>= ${c}${R} and <= ${d}${R}`, new et.ERR_OUT_OF_RANGE("value", se, h);
|
|
1053
1053
|
}
|
|
1054
|
-
Lt(
|
|
1054
|
+
Lt(m, b, S);
|
|
1055
1055
|
}
|
|
1056
1056
|
function Pe(h, c) {
|
|
1057
1057
|
if (typeof h != "number")
|
|
@@ -1075,16 +1075,16 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1075
1075
|
function _t(h, c) {
|
|
1076
1076
|
c = c || 1 / 0;
|
|
1077
1077
|
let d;
|
|
1078
|
-
const
|
|
1078
|
+
const m = h.length;
|
|
1079
1079
|
let b = null;
|
|
1080
1080
|
const S = [];
|
|
1081
|
-
for (let R = 0; R <
|
|
1081
|
+
for (let R = 0; R < m; ++R) {
|
|
1082
1082
|
if (d = h.charCodeAt(R), d > 55295 && d < 57344) {
|
|
1083
1083
|
if (!b) {
|
|
1084
1084
|
if (d > 56319) {
|
|
1085
1085
|
(c -= 3) > -1 && S.push(239, 191, 189);
|
|
1086
1086
|
continue;
|
|
1087
|
-
} else if (R + 1 ===
|
|
1087
|
+
} else if (R + 1 === m) {
|
|
1088
1088
|
(c -= 3) > -1 && S.push(239, 191, 189);
|
|
1089
1089
|
continue;
|
|
1090
1090
|
}
|
|
@@ -1138,18 +1138,18 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1138
1138
|
return c;
|
|
1139
1139
|
}
|
|
1140
1140
|
function Tt(h, c) {
|
|
1141
|
-
let d,
|
|
1141
|
+
let d, m, b;
|
|
1142
1142
|
const S = [];
|
|
1143
1143
|
for (let R = 0; R < h.length && !((c -= 2) < 0); ++R)
|
|
1144
|
-
d = h.charCodeAt(R),
|
|
1144
|
+
d = h.charCodeAt(R), m = d >> 8, b = d % 256, S.push(b), S.push(m);
|
|
1145
1145
|
return S;
|
|
1146
1146
|
}
|
|
1147
1147
|
function je(h) {
|
|
1148
1148
|
return e.toByteArray(xt(h));
|
|
1149
1149
|
}
|
|
1150
|
-
function vt(h, c, d,
|
|
1150
|
+
function vt(h, c, d, m) {
|
|
1151
1151
|
let b;
|
|
1152
|
-
for (b = 0; b <
|
|
1152
|
+
for (b = 0; b < m && !(b + d >= c.length || b >= h.length); ++b)
|
|
1153
1153
|
c[b + d] = h[b];
|
|
1154
1154
|
return b;
|
|
1155
1155
|
}
|
|
@@ -1162,9 +1162,9 @@ uo.write = function(n, e, t, r, o, i) {
|
|
|
1162
1162
|
const yn = function() {
|
|
1163
1163
|
const h = "0123456789abcdef", c = new Array(256);
|
|
1164
1164
|
for (let d = 0; d < 16; ++d) {
|
|
1165
|
-
const
|
|
1165
|
+
const m = d * 16;
|
|
1166
1166
|
for (let b = 0; b < 16; ++b)
|
|
1167
|
-
c[
|
|
1167
|
+
c[m + b] = h[d] + h[b];
|
|
1168
1168
|
}
|
|
1169
1169
|
return c;
|
|
1170
1170
|
}();
|
|
@@ -1328,7 +1328,7 @@ const sa = {
|
|
|
1328
1328
|
deep: !0
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
},
|
|
1331
|
+
}, gt = (n, e) => {
|
|
1332
1332
|
const t = n.__vccOpts || n;
|
|
1333
1333
|
for (const [r, o] of e)
|
|
1334
1334
|
t[r] = o;
|
|
@@ -1361,9 +1361,9 @@ const sa = {
|
|
|
1361
1361
|
}, ha = ["autoplay"], fa = /* @__PURE__ */ ri(() => /* @__PURE__ */ _("source", {
|
|
1362
1362
|
src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
|
|
1363
1363
|
type: "video/mp4"
|
|
1364
|
-
}, null, -1)),
|
|
1364
|
+
}, null, -1)), ma = [
|
|
1365
1365
|
fa
|
|
1366
|
-
],
|
|
1366
|
+
], ga = { class: "bold full-top no-bottom center-text" }, _a = { class: "full-bottom half-top center-text color-black font-16" }, va = { class: "page-login-links center-text" }, ya = /* @__PURE__ */ ri(() => /* @__PURE__ */ _("div", { class: "clear" }, null, -1)), wa = {
|
|
1367
1367
|
key: 2,
|
|
1368
1368
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
1369
1369
|
}, ba = /* @__PURE__ */ xi('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a>', 3), ka = [
|
|
@@ -1380,12 +1380,12 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1380
1380
|
width: "350",
|
|
1381
1381
|
style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
|
|
1382
1382
|
autoplay: n.isNative
|
|
1383
|
-
},
|
|
1384
|
-
_("h1",
|
|
1383
|
+
}, ma, 8, ha),
|
|
1384
|
+
_("h1", ga, Q(n.ssoLang[this.appLanguage].welcome), 1),
|
|
1385
1385
|
_("p", _a, Q(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
1386
1386
|
pe("", !0),
|
|
1387
1387
|
pe("", !0),
|
|
1388
|
-
|
|
1388
|
+
Ue(a, {
|
|
1389
1389
|
to: "register",
|
|
1390
1390
|
exact: "",
|
|
1391
1391
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
@@ -1396,7 +1396,7 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1396
1396
|
_: 1
|
|
1397
1397
|
}),
|
|
1398
1398
|
_("div", va, [
|
|
1399
|
-
|
|
1399
|
+
Ue(a, { to: "/login" }, {
|
|
1400
1400
|
default: Gt(() => [
|
|
1401
1401
|
ke(Q(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
1402
1402
|
_("b", null, Q(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
@@ -1408,10 +1408,10 @@ function Ca(n, e, t, r, o, i) {
|
|
|
1408
1408
|
this.isNative ? pe("", !0) : (N(), x("div", wa, ka))
|
|
1409
1409
|
]);
|
|
1410
1410
|
}
|
|
1411
|
-
const po = /* @__PURE__ */
|
|
1411
|
+
const po = /* @__PURE__ */ gt(da, [["render", Ca], ["__scopeId", "data-v-615ed484"]]), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1412
1412
|
__proto__: null,
|
|
1413
1413
|
default: po
|
|
1414
|
-
}, Symbol.toStringTag, { value: "Module" })), Ta = "0.0.
|
|
1414
|
+
}, Symbol.toStringTag, { value: "Module" })), Ta = "0.0.170", hr = {
|
|
1415
1415
|
getMe() {
|
|
1416
1416
|
return ce().get("/users/me");
|
|
1417
1417
|
},
|
|
@@ -4657,7 +4657,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
4657
4657
|
french: "法文",
|
|
4658
4658
|
serbian: "塞尔维亚文",
|
|
4659
4659
|
turkish: "土耳其文",
|
|
4660
|
-
chinese: "
|
|
4660
|
+
chinese: "簡体中文",
|
|
4661
4661
|
app_language: "语言",
|
|
4662
4662
|
profile_preview: "个人资料预览",
|
|
4663
4663
|
edit_profile: "编辑个人资料",
|
|
@@ -5552,7 +5552,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5552
5552
|
choose_other_login_methods: "다른 로그인 방법 선택하기",
|
|
5553
5553
|
no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
|
|
5554
5554
|
}
|
|
5555
|
-
}, Ao = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => qc), Aa = () => Promise.resolve().then(() => Ul), Ra = () => Promise.resolve().then(() => wd), Pa = () => import("./Account-
|
|
5555
|
+
}, Ao = () => Promise.resolve().then(() => Ea), Ia = () => Promise.resolve().then(() => qc), Aa = () => Promise.resolve().then(() => Ul), Ra = () => Promise.resolve().then(() => wd), Pa = () => import("./Account-6F9eRo1R.js"), Ma = () => Promise.resolve().then(() => du), Na = () => Promise.resolve().then(() => Id), Oa = () => import("./QR-2Izy5Dj4.js"), La = () => Promise.resolve().then(() => xu), za = [
|
|
5556
5556
|
{
|
|
5557
5557
|
path: "/welcome",
|
|
5558
5558
|
name: "AuthWelcome",
|
|
@@ -5718,7 +5718,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5718
5718
|
actions: {
|
|
5719
5719
|
async getAccountSettings({ state: n, commit: e, dispatch: t }) {
|
|
5720
5720
|
const [r, o] = await fe(
|
|
5721
|
-
|
|
5721
|
+
Je.getAccountSettings()
|
|
5722
5722
|
);
|
|
5723
5723
|
if (r)
|
|
5724
5724
|
return t("errorHandler", r);
|
|
@@ -5796,7 +5796,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5796
5796
|
return null;
|
|
5797
5797
|
t.refreshing = !0;
|
|
5798
5798
|
const [i, a] = await fe(
|
|
5799
|
-
|
|
5799
|
+
Je.refreshToken({
|
|
5800
5800
|
id: o.id,
|
|
5801
5801
|
refreshToken: r.refreshTokens[0],
|
|
5802
5802
|
refreshTokenAction: !0
|
|
@@ -5807,7 +5807,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5807
5807
|
a && a.data && (e("setToken", a.data.token), F.$emit("ssoEvent", { name: "setStorage", data: t.$storex })), t.refreshing = !1;
|
|
5808
5808
|
},
|
|
5809
5809
|
async login({ commit: n, state: e, dispatch: t }, r) {
|
|
5810
|
-
const [o, i] = await fe(
|
|
5810
|
+
const [o, i] = await fe(Je.login(r));
|
|
5811
5811
|
if (o)
|
|
5812
5812
|
return t("errorHandler", o);
|
|
5813
5813
|
if (i.data.success)
|
|
@@ -5838,31 +5838,31 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5838
5838
|
},
|
|
5839
5839
|
async register({ commit: n, dispatch: e }, t) {
|
|
5840
5840
|
const [r, o] = await fe(
|
|
5841
|
-
|
|
5841
|
+
Je.register(t)
|
|
5842
5842
|
);
|
|
5843
5843
|
return r ? e("errorHandler", r) : o;
|
|
5844
5844
|
},
|
|
5845
5845
|
async verify({ commit: n, dispatch: e }, t) {
|
|
5846
|
-
const [r, o] = await fe(
|
|
5846
|
+
const [r, o] = await fe(Je.verify(t));
|
|
5847
5847
|
return r ? e("errorHandler", r) : o;
|
|
5848
5848
|
},
|
|
5849
5849
|
async reset({ commit: n, state: e, getters: t, dispatch: r }, o) {
|
|
5850
5850
|
const [i, a] = await fe(
|
|
5851
|
-
|
|
5851
|
+
Je.sendResetEmail(o)
|
|
5852
5852
|
);
|
|
5853
5853
|
if (i)
|
|
5854
5854
|
return r("errorHandler", i);
|
|
5855
5855
|
a.data.success && r("successSnack", e.ssoLang[t.appLanguage].password_reset_success);
|
|
5856
5856
|
},
|
|
5857
5857
|
async exchangeAuthCode({ commit: n, dispatch: e }, t) {
|
|
5858
|
-
const [r, o] = await fe(
|
|
5858
|
+
const [r, o] = await fe(Je.exchangeAuthCode(t));
|
|
5859
5859
|
if (r)
|
|
5860
5860
|
return e("errorHandler", r);
|
|
5861
5861
|
await e("loginSetup", o), await e("getLoggedInAccounts"), e("loginSuccess", o);
|
|
5862
5862
|
},
|
|
5863
5863
|
async changePassword({ commit: n, dispatch: e }, t) {
|
|
5864
5864
|
const [r, o] = await fe(
|
|
5865
|
-
|
|
5865
|
+
Je.changePassword(t)
|
|
5866
5866
|
);
|
|
5867
5867
|
return r ? e("errorHandler", r) : o.data.success;
|
|
5868
5868
|
},
|
|
@@ -5910,7 +5910,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5910
5910
|
return r ? e("errorHandler", r) : o;
|
|
5911
5911
|
},
|
|
5912
5912
|
async logout({ commit: n, dispatch: e, state: t }, { refreshToken: r, sendRequest: o = !0 }) {
|
|
5913
|
-
o && r &&
|
|
5913
|
+
o && r && Je.logout({ token: r }), t.$storex && (t.$storex.username = "", t.$storex.UserId = "", t.$storex.localUser = "", n("setToken", "")), n("setLoggedInUserId", "");
|
|
5914
5914
|
const i = await e("unsetRefreshToken", r);
|
|
5915
5915
|
if (i.length >= 1)
|
|
5916
5916
|
Object.keys(t.loggedInAccounts).forEach((a) => {
|
|
@@ -5940,7 +5940,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5940
5940
|
async getLoggedInAccounts({ getters: n, dispatch: e }) {
|
|
5941
5941
|
if (n.refreshTokens && n.refreshTokens.length >= 1) {
|
|
5942
5942
|
const [t, r] = await fe(
|
|
5943
|
-
|
|
5943
|
+
Je.getLoggedInAccounts({ refreshTokens: n.refreshTokens })
|
|
5944
5944
|
);
|
|
5945
5945
|
if (t)
|
|
5946
5946
|
return e("errorHandler", t);
|
|
@@ -6041,7 +6041,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
6041
6041
|
};
|
|
6042
6042
|
let yt;
|
|
6043
6043
|
vr.getId().then((n) => yt = n.uuid);
|
|
6044
|
-
const
|
|
6044
|
+
const Je = {
|
|
6045
6045
|
register(n) {
|
|
6046
6046
|
return n.device_id = yt, ce().post("/users/register", n);
|
|
6047
6047
|
},
|
|
@@ -6129,7 +6129,7 @@ const $e = {
|
|
|
6129
6129
|
return this.googleLoad = !1;
|
|
6130
6130
|
if (this.referral && (e.ref = this.referral), e.authentication && (e.authentication.accessToken || e.authentication.idToken)) {
|
|
6131
6131
|
this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
6132
|
-
const [r, o] = await fe(
|
|
6132
|
+
const [r, o] = await fe(Je.googleSDK(e, this.$storex));
|
|
6133
6133
|
if (r)
|
|
6134
6134
|
return this.googleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
6135
6135
|
if (o.data.success) {
|
|
@@ -6184,7 +6184,7 @@ const hi = {
|
|
|
6184
6184
|
if (e)
|
|
6185
6185
|
return this.facebookLoad = !1;
|
|
6186
6186
|
if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
|
|
6187
|
-
const [o, i] = await fe(
|
|
6187
|
+
const [o, i] = await fe(Je.facebookSDK(t, this.$storex));
|
|
6188
6188
|
if (o)
|
|
6189
6189
|
return this.facebookLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
|
|
6190
6190
|
if (i.data.success) {
|
|
@@ -6225,7 +6225,7 @@ const hi = {
|
|
|
6225
6225
|
return this.appleLoad = !1;
|
|
6226
6226
|
if (e.response.tokenData = $o(e.response.identityToken), e && e.response && e.response.identityToken) {
|
|
6227
6227
|
this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
6228
|
-
const [r, o] = await fe(
|
|
6228
|
+
const [r, o] = await fe(Je.appleSDK(e.response, this.$storex));
|
|
6229
6229
|
if (r)
|
|
6230
6230
|
return this.appleLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
6231
6231
|
if (o.data.success) {
|
|
@@ -6264,7 +6264,7 @@ var Jr = function(n, e) {
|
|
|
6264
6264
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
6265
6265
|
}, Jr(n, e);
|
|
6266
6266
|
};
|
|
6267
|
-
function
|
|
6267
|
+
function Qe(n, e) {
|
|
6268
6268
|
Jr(n, e);
|
|
6269
6269
|
function t() {
|
|
6270
6270
|
this.constructor = n;
|
|
@@ -6300,15 +6300,15 @@ function O(n, e, t, r) {
|
|
|
6300
6300
|
function s(l) {
|
|
6301
6301
|
try {
|
|
6302
6302
|
p(r.next(l));
|
|
6303
|
-
} catch (
|
|
6304
|
-
a(
|
|
6303
|
+
} catch (g) {
|
|
6304
|
+
a(g);
|
|
6305
6305
|
}
|
|
6306
6306
|
}
|
|
6307
6307
|
function u(l) {
|
|
6308
6308
|
try {
|
|
6309
6309
|
p(r.throw(l));
|
|
6310
|
-
} catch (
|
|
6311
|
-
a(
|
|
6310
|
+
} catch (g) {
|
|
6311
|
+
a(g);
|
|
6312
6312
|
}
|
|
6313
6313
|
}
|
|
6314
6314
|
function p(l) {
|
|
@@ -6437,15 +6437,15 @@ function st(n, e) {
|
|
|
6437
6437
|
}
|
|
6438
6438
|
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
6439
6439
|
}
|
|
6440
|
-
var
|
|
6441
|
-
return
|
|
6440
|
+
var me = function() {
|
|
6441
|
+
return me = Object.assign || function(e) {
|
|
6442
6442
|
for (var t, r = 1, o = arguments.length; r < o; r++) {
|
|
6443
6443
|
t = arguments[r];
|
|
6444
6444
|
for (var i in t)
|
|
6445
6445
|
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
6446
6446
|
}
|
|
6447
6447
|
return e;
|
|
6448
|
-
},
|
|
6448
|
+
}, me.apply(this, arguments);
|
|
6449
6449
|
};
|
|
6450
6450
|
function oe(n, e, t, r) {
|
|
6451
6451
|
function o(i) {
|
|
@@ -6457,15 +6457,15 @@ function oe(n, e, t, r) {
|
|
|
6457
6457
|
function s(l) {
|
|
6458
6458
|
try {
|
|
6459
6459
|
p(r.next(l));
|
|
6460
|
-
} catch (
|
|
6461
|
-
a(
|
|
6460
|
+
} catch (g) {
|
|
6461
|
+
a(g);
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
6464
6464
|
function u(l) {
|
|
6465
6465
|
try {
|
|
6466
6466
|
p(r.throw(l));
|
|
6467
|
-
} catch (
|
|
6468
|
-
a(
|
|
6467
|
+
} catch (g) {
|
|
6468
|
+
a(g);
|
|
6469
6469
|
}
|
|
6470
6470
|
}
|
|
6471
6471
|
function p(l) {
|
|
@@ -6607,10 +6607,10 @@ var w = {
|
|
|
6607
6607
|
w.OFFLINE_ACCESS_SCOPE
|
|
6608
6608
|
], No = Or(sr, [
|
|
6609
6609
|
w.EMAIL_SCOPE
|
|
6610
|
-
]),
|
|
6610
|
+
]), mt;
|
|
6611
6611
|
(function(n) {
|
|
6612
6612
|
n.CONTENT_TYPE = "Content-Type", n.RETRY_AFTER = "Retry-After", n.CCS_HEADER = "X-AnchorMailbox", n.WWWAuthenticate = "WWW-Authenticate", n.AuthenticationInfo = "Authentication-Info", n.X_MS_REQUEST_ID = "x-ms-request-id", n.X_MS_HTTP_VERSION = "x-ms-httpver";
|
|
6613
|
-
})(
|
|
6613
|
+
})(mt || (mt = {}));
|
|
6614
6614
|
var xe;
|
|
6615
6615
|
(function(n) {
|
|
6616
6616
|
n.ID_TOKEN = "idtoken", n.CLIENT_INFO = "client.info", n.ADAL_ID_TOKEN = "adal.idtoken", n.ERROR = "error", n.ERROR_DESC = "error.description", n.ACTIVE_ACCOUNT = "active-account", n.ACTIVE_ACCOUNT_FILTERS = "active-account-filters";
|
|
@@ -6653,10 +6653,10 @@ var $t;
|
|
|
6653
6653
|
(function(n) {
|
|
6654
6654
|
n.MSSTS_ACCOUNT_TYPE = "MSSTS", n.ADFS_ACCOUNT_TYPE = "ADFS", n.MSAV1_ACCOUNT_TYPE = "MSA", n.GENERIC_ACCOUNT_TYPE = "Generic";
|
|
6655
6655
|
})($t || ($t = {}));
|
|
6656
|
-
var
|
|
6656
|
+
var Be;
|
|
6657
6657
|
(function(n) {
|
|
6658
6658
|
n.CACHE_KEY_SEPARATOR = "-", n.CLIENT_INFO_SEPARATOR = ".";
|
|
6659
|
-
})(
|
|
6659
|
+
})(Be || (Be = {}));
|
|
6660
6660
|
var ee;
|
|
6661
6661
|
(function(n) {
|
|
6662
6662
|
n.ID_TOKEN = "IdToken", n.ACCESS_TOKEN = "AccessToken", n.ACCESS_TOKEN_WITH_AUTH_SCHEME = "AccessToken_With_AuthScheme", n.REFRESH_TOKEN = "RefreshToken";
|
|
@@ -7182,25 +7182,25 @@ var V = (
|
|
|
7182
7182
|
}()
|
|
7183
7183
|
);
|
|
7184
7184
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7185
|
-
var
|
|
7185
|
+
var De;
|
|
7186
7186
|
(function(n) {
|
|
7187
7187
|
n[n.Error = 0] = "Error", n[n.Warning = 1] = "Warning", n[n.Info = 2] = "Info", n[n.Verbose = 3] = "Verbose", n[n.Trace = 4] = "Trace";
|
|
7188
|
-
})(
|
|
7189
|
-
var
|
|
7188
|
+
})(De || (De = {}));
|
|
7189
|
+
var mo = (
|
|
7190
7190
|
/** @class */
|
|
7191
7191
|
function() {
|
|
7192
7192
|
function n(e, t, r) {
|
|
7193
|
-
this.level =
|
|
7193
|
+
this.level = De.Info;
|
|
7194
7194
|
var o = function() {
|
|
7195
7195
|
}, i = e || n.createDefaultLoggerOptions();
|
|
7196
|
-
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel :
|
|
7196
|
+
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel : De.Info, this.correlationId = i.correlationId || w.EMPTY_STRING, this.packageName = t || w.EMPTY_STRING, this.packageVersion = r || w.EMPTY_STRING;
|
|
7197
7197
|
}
|
|
7198
7198
|
return n.createDefaultLoggerOptions = function() {
|
|
7199
7199
|
return {
|
|
7200
7200
|
loggerCallback: function() {
|
|
7201
7201
|
},
|
|
7202
7202
|
piiLoggingEnabled: !1,
|
|
7203
|
-
logLevel:
|
|
7203
|
+
logLevel: De.Info
|
|
7204
7204
|
};
|
|
7205
7205
|
}, n.prototype.clone = function(e, t, r) {
|
|
7206
7206
|
return new n({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: r || this.correlationId }, e, t);
|
|
@@ -7208,68 +7208,68 @@ var go = (
|
|
|
7208
7208
|
if (!(t.logLevel > this.level || !this.piiLoggingEnabled && t.containsPii)) {
|
|
7209
7209
|
var r = (/* @__PURE__ */ new Date()).toUTCString(), o;
|
|
7210
7210
|
V.isEmpty(t.correlationId) ? V.isEmpty(this.correlationId) ? o = "[" + r + "]" : o = "[" + r + "] : [" + this.correlationId + "]" : o = "[" + r + "] : [" + t.correlationId + "]";
|
|
7211
|
-
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " +
|
|
7211
|
+
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " + De[t.logLevel] + " - " + e;
|
|
7212
7212
|
this.executeCallback(t.logLevel, i, t.containsPii || !1);
|
|
7213
7213
|
}
|
|
7214
7214
|
}, n.prototype.executeCallback = function(e, t, r) {
|
|
7215
7215
|
this.localCallback && this.localCallback(e, t, r);
|
|
7216
7216
|
}, n.prototype.error = function(e, t) {
|
|
7217
7217
|
this.logMessage(e, {
|
|
7218
|
-
logLevel:
|
|
7218
|
+
logLevel: De.Error,
|
|
7219
7219
|
containsPii: !1,
|
|
7220
7220
|
correlationId: t || w.EMPTY_STRING
|
|
7221
7221
|
});
|
|
7222
7222
|
}, n.prototype.errorPii = function(e, t) {
|
|
7223
7223
|
this.logMessage(e, {
|
|
7224
|
-
logLevel:
|
|
7224
|
+
logLevel: De.Error,
|
|
7225
7225
|
containsPii: !0,
|
|
7226
7226
|
correlationId: t || w.EMPTY_STRING
|
|
7227
7227
|
});
|
|
7228
7228
|
}, n.prototype.warning = function(e, t) {
|
|
7229
7229
|
this.logMessage(e, {
|
|
7230
|
-
logLevel:
|
|
7230
|
+
logLevel: De.Warning,
|
|
7231
7231
|
containsPii: !1,
|
|
7232
7232
|
correlationId: t || w.EMPTY_STRING
|
|
7233
7233
|
});
|
|
7234
7234
|
}, n.prototype.warningPii = function(e, t) {
|
|
7235
7235
|
this.logMessage(e, {
|
|
7236
|
-
logLevel:
|
|
7236
|
+
logLevel: De.Warning,
|
|
7237
7237
|
containsPii: !0,
|
|
7238
7238
|
correlationId: t || w.EMPTY_STRING
|
|
7239
7239
|
});
|
|
7240
7240
|
}, n.prototype.info = function(e, t) {
|
|
7241
7241
|
this.logMessage(e, {
|
|
7242
|
-
logLevel:
|
|
7242
|
+
logLevel: De.Info,
|
|
7243
7243
|
containsPii: !1,
|
|
7244
7244
|
correlationId: t || w.EMPTY_STRING
|
|
7245
7245
|
});
|
|
7246
7246
|
}, n.prototype.infoPii = function(e, t) {
|
|
7247
7247
|
this.logMessage(e, {
|
|
7248
|
-
logLevel:
|
|
7248
|
+
logLevel: De.Info,
|
|
7249
7249
|
containsPii: !0,
|
|
7250
7250
|
correlationId: t || w.EMPTY_STRING
|
|
7251
7251
|
});
|
|
7252
7252
|
}, n.prototype.verbose = function(e, t) {
|
|
7253
7253
|
this.logMessage(e, {
|
|
7254
|
-
logLevel:
|
|
7254
|
+
logLevel: De.Verbose,
|
|
7255
7255
|
containsPii: !1,
|
|
7256
7256
|
correlationId: t || w.EMPTY_STRING
|
|
7257
7257
|
});
|
|
7258
7258
|
}, n.prototype.verbosePii = function(e, t) {
|
|
7259
7259
|
this.logMessage(e, {
|
|
7260
|
-
logLevel:
|
|
7260
|
+
logLevel: De.Verbose,
|
|
7261
7261
|
containsPii: !0,
|
|
7262
7262
|
correlationId: t || w.EMPTY_STRING
|
|
7263
7263
|
});
|
|
7264
7264
|
}, n.prototype.trace = function(e, t) {
|
|
7265
7265
|
this.logMessage(e, {
|
|
7266
|
-
logLevel:
|
|
7266
|
+
logLevel: De.Trace,
|
|
7267
7267
|
containsPii: !1,
|
|
7268
7268
|
correlationId: t || w.EMPTY_STRING
|
|
7269
7269
|
});
|
|
7270
7270
|
}, n.prototype.tracePii = function(e, t) {
|
|
7271
7271
|
this.logMessage(e, {
|
|
7272
|
-
logLevel:
|
|
7272
|
+
logLevel: De.Trace,
|
|
7273
7273
|
containsPii: !0,
|
|
7274
7274
|
correlationId: t || w.EMPTY_STRING
|
|
7275
7275
|
});
|
|
@@ -7279,7 +7279,7 @@ var go = (
|
|
|
7279
7279
|
}()
|
|
7280
7280
|
);
|
|
7281
7281
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7282
|
-
var
|
|
7282
|
+
var mi = "@azure/msal-common", go = "13.3.1";
|
|
7283
7283
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7284
7284
|
var rr;
|
|
7285
7285
|
(function(n) {
|
|
@@ -7539,7 +7539,7 @@ function Er(n, e) {
|
|
|
7539
7539
|
function Nn(n) {
|
|
7540
7540
|
if (V.isEmpty(n))
|
|
7541
7541
|
throw Y.createClientInfoDecodingError("Home account ID was empty.");
|
|
7542
|
-
var e = n.split(
|
|
7542
|
+
var e = n.split(Be.CLIENT_INFO_SEPARATOR, 2);
|
|
7543
7543
|
return {
|
|
7544
7544
|
uid: e[0],
|
|
7545
7545
|
utid: e.length < 2 ? w.EMPTY_STRING : e[1]
|
|
@@ -7551,14 +7551,14 @@ var tt;
|
|
|
7551
7551
|
n[n.Default = 0] = "Default", n[n.Adfs = 1] = "Adfs", n[n.Dsts = 2] = "Dsts", n[n.Ciam = 3] = "Ciam";
|
|
7552
7552
|
})(tt || (tt = {}));
|
|
7553
7553
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7554
|
-
var
|
|
7554
|
+
var Ge = (
|
|
7555
7555
|
/** @class */
|
|
7556
7556
|
function() {
|
|
7557
7557
|
function n() {
|
|
7558
7558
|
}
|
|
7559
7559
|
return n.prototype.generateAccountId = function() {
|
|
7560
7560
|
var e = [this.homeAccountId, this.environment];
|
|
7561
|
-
return e.join(
|
|
7561
|
+
return e.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7562
7562
|
}, n.prototype.generateAccountKey = function() {
|
|
7563
7563
|
return n.generateAccountCacheKey({
|
|
7564
7564
|
homeAccountId: this.homeAccountId,
|
|
@@ -7597,26 +7597,26 @@ var Ke = (
|
|
|
7597
7597
|
e.environment || w.EMPTY_STRING,
|
|
7598
7598
|
e.tenantId || w.EMPTY_STRING
|
|
7599
7599
|
];
|
|
7600
|
-
return t.join(
|
|
7600
|
+
return t.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7601
7601
|
}, n.createAccount = function(e, t, r, o, i, a, s, u) {
|
|
7602
|
-
var p, l,
|
|
7602
|
+
var p, l, g, f, k, E, P = new n();
|
|
7603
7603
|
P.authorityType = $t.MSSTS_ACCOUNT_TYPE, P.clientInfo = e, P.homeAccountId = t, P.nativeAccountId = u;
|
|
7604
7604
|
var j = s || o && o.getPreferredCache();
|
|
7605
7605
|
if (!j)
|
|
7606
7606
|
throw Y.createInvalidCacheEnvironmentError();
|
|
7607
7607
|
if (P.environment = j, P.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || w.EMPTY_STRING, r) {
|
|
7608
|
-
P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((
|
|
7608
|
+
P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((g = r == null ? void 0 : r.claims) === null || g === void 0 ? void 0 : g.sub) || w.EMPTY_STRING;
|
|
7609
7609
|
var K = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, z = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
|
|
7610
7610
|
P.username = K || z || w.EMPTY_STRING, P.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
|
|
7611
7611
|
}
|
|
7612
7612
|
return P.cloudGraphHostName = i, P.msGraphHost = a, P;
|
|
7613
7613
|
}, n.createGenericAccount = function(e, t, r, o, i, a) {
|
|
7614
|
-
var s, u, p, l,
|
|
7615
|
-
|
|
7614
|
+
var s, u, p, l, g = new n();
|
|
7615
|
+
g.authorityType = r && r.authorityType === tt.Adfs ? $t.ADFS_ACCOUNT_TYPE : $t.GENERIC_ACCOUNT_TYPE, g.homeAccountId = e, g.realm = w.EMPTY_STRING;
|
|
7616
7616
|
var f = a || r && r.getPreferredCache();
|
|
7617
7617
|
if (!f)
|
|
7618
7618
|
throw Y.createInvalidCacheEnvironmentError();
|
|
7619
|
-
return t && (
|
|
7619
|
+
return t && (g.localAccountId = ((s = t == null ? void 0 : t.claims) === null || s === void 0 ? void 0 : s.oid) || ((u = t == null ? void 0 : t.claims) === null || u === void 0 ? void 0 : u.sub) || w.EMPTY_STRING, g.username = ((p = t == null ? void 0 : t.claims) === null || p === void 0 ? void 0 : p.upn) || w.EMPTY_STRING, g.name = ((l = t == null ? void 0 : t.claims) === null || l === void 0 ? void 0 : l.name) || w.EMPTY_STRING, g.idTokenClaims = t == null ? void 0 : t.claims), g.environment = f, g.cloudGraphHostName = o, g.msGraphHost = i, g;
|
|
7620
7620
|
}, n.generateHomeAccountId = function(e, t, r, o, i) {
|
|
7621
7621
|
var a, s = !((a = i == null ? void 0 : i.claims) === null || a === void 0) && a.sub ? i.claims.sub : w.EMPTY_STRING;
|
|
7622
7622
|
if (t === tt.Adfs || t === tt.Dsts)
|
|
@@ -7625,7 +7625,7 @@ var Ke = (
|
|
|
7625
7625
|
try {
|
|
7626
7626
|
var u = Er(e, o);
|
|
7627
7627
|
if (!V.isEmpty(u.uid) && !V.isEmpty(u.utid))
|
|
7628
|
-
return "" + u.uid +
|
|
7628
|
+
return "" + u.uid + Be.CLIENT_INFO_SEPARATOR + u.utid;
|
|
7629
7629
|
} catch {
|
|
7630
7630
|
}
|
|
7631
7631
|
return r.verbose("No client info in response"), s;
|
|
@@ -7672,7 +7672,7 @@ var ot = (
|
|
|
7672
7672
|
/** @class */
|
|
7673
7673
|
function() {
|
|
7674
7674
|
function n(e, t, r) {
|
|
7675
|
-
this.clientId = e, this.cryptoImpl = t, this.commonLogger = r.clone(
|
|
7675
|
+
this.clientId = e, this.cryptoImpl = t, this.commonLogger = r.clone(mi, go);
|
|
7676
7676
|
}
|
|
7677
7677
|
return n.prototype.getAllAccounts = function() {
|
|
7678
7678
|
var e = this, t = this.getAccountKeys();
|
|
@@ -7752,15 +7752,15 @@ var ot = (
|
|
|
7752
7752
|
}
|
|
7753
7753
|
}), o;
|
|
7754
7754
|
}, n.prototype.isAccountKey = function(e, t, r) {
|
|
7755
|
-
return !(e.split(
|
|
7755
|
+
return !(e.split(Be.CACHE_KEY_SEPARATOR).length < 3 || t && !e.toLowerCase().includes(t.toLowerCase()) || r && !e.toLowerCase().includes(r.toLowerCase()));
|
|
7756
7756
|
}, n.prototype.isCredentialKey = function(e) {
|
|
7757
|
-
if (e.split(
|
|
7757
|
+
if (e.split(Be.CACHE_KEY_SEPARATOR).length < 6)
|
|
7758
7758
|
return !1;
|
|
7759
7759
|
var t = e.toLowerCase();
|
|
7760
7760
|
if (t.indexOf(ee.ID_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN.toLowerCase()) === -1 && t.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 && t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) === -1)
|
|
7761
7761
|
return !1;
|
|
7762
7762
|
if (t.indexOf(ee.REFRESH_TOKEN.toLowerCase()) > -1) {
|
|
7763
|
-
var r = "" + ee.REFRESH_TOKEN +
|
|
7763
|
+
var r = "" + ee.REFRESH_TOKEN + Be.CACHE_KEY_SEPARATOR + this.clientId + Be.CACHE_KEY_SEPARATOR, o = "" + ee.REFRESH_TOKEN + Be.CACHE_KEY_SEPARATOR + $n + Be.CACHE_KEY_SEPARATOR;
|
|
7764
7764
|
if (t.indexOf(r.toLowerCase()) === -1 && t.indexOf(o.toLowerCase()) === -1)
|
|
7765
7765
|
return !1;
|
|
7766
7766
|
} else if (t.indexOf(this.clientId.toLowerCase()) === -1)
|
|
@@ -7885,7 +7885,7 @@ var ot = (
|
|
|
7885
7885
|
appMetadata: p
|
|
7886
7886
|
};
|
|
7887
7887
|
}, n.prototype.readAccountFromCache = function(e) {
|
|
7888
|
-
var t =
|
|
7888
|
+
var t = Ge.generateAccountCacheKey(e);
|
|
7889
7889
|
return this.getAccount(t);
|
|
7890
7890
|
}, n.prototype.getIdToken = function(e, t) {
|
|
7891
7891
|
var r = this;
|
|
@@ -7903,7 +7903,7 @@ var ot = (
|
|
|
7903
7903
|
}, n.prototype.getIdTokensByFilter = function(e, t) {
|
|
7904
7904
|
var r = this, o = t && t.idToken || this.getTokenKeys().idToken, i = [];
|
|
7905
7905
|
return o.forEach(function(a) {
|
|
7906
|
-
if (r.idTokenKeyMatchesFilter(a,
|
|
7906
|
+
if (r.idTokenKeyMatchesFilter(a, me({ clientId: r.clientId }, e))) {
|
|
7907
7907
|
var s = r.getIdTokenCredential(a);
|
|
7908
7908
|
s && r.credentialMatchesFilter(s, e) && i.push(s);
|
|
7909
7909
|
}
|
|
@@ -7935,8 +7935,8 @@ var ot = (
|
|
|
7935
7935
|
k && o.credentialMatchesFilter(k, u) && l.push(k);
|
|
7936
7936
|
}
|
|
7937
7937
|
});
|
|
7938
|
-
var
|
|
7939
|
-
return
|
|
7938
|
+
var g = l.length;
|
|
7939
|
+
return g < 1 ? (this.commonLogger.info("CacheManager:getAccessToken - No token found"), null) : g > 1 ? (this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"), l.forEach(function(f) {
|
|
7940
7940
|
o.removeAccessToken(f.generateCredentialKey());
|
|
7941
7941
|
}), null) : (this.commonLogger.info("CacheManager:getAccessToken - Returning access token"), l[0]);
|
|
7942
7942
|
}, n.prototype.accessTokenKeyMatchesFilter = function(e, t, r) {
|
|
@@ -7971,8 +7971,8 @@ var ot = (
|
|
|
7971
7971
|
}, s = r && r.refreshToken || this.getTokenKeys().refreshToken, u = [];
|
|
7972
7972
|
s.forEach(function(l) {
|
|
7973
7973
|
if (o.refreshTokenKeyMatchesFilter(l, a)) {
|
|
7974
|
-
var
|
|
7975
|
-
|
|
7974
|
+
var g = o.getRefreshTokenCredential(l);
|
|
7975
|
+
g && o.credentialMatchesFilter(g, a) && u.push(g);
|
|
7976
7976
|
}
|
|
7977
7977
|
});
|
|
7978
7978
|
var p = u.length;
|
|
@@ -8125,14 +8125,14 @@ var ot = (
|
|
|
8125
8125
|
}(ot)
|
|
8126
8126
|
);
|
|
8127
8127
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8128
|
-
var ja = 300,
|
|
8128
|
+
var ja = 300, gi = {
|
|
8129
8129
|
tokenRenewalOffsetSeconds: ja,
|
|
8130
8130
|
preventCorsPreflight: !1
|
|
8131
8131
|
}, Fa = {
|
|
8132
8132
|
loggerCallback: function() {
|
|
8133
8133
|
},
|
|
8134
8134
|
piiLoggingEnabled: !1,
|
|
8135
|
-
logLevel:
|
|
8135
|
+
logLevel: De.Info,
|
|
8136
8136
|
correlationId: w.EMPTY_STRING
|
|
8137
8137
|
}, qa = {
|
|
8138
8138
|
claimsBasedCachingEnabled: !0
|
|
@@ -8155,7 +8155,7 @@ var ja = 300, mi = {
|
|
|
8155
8155
|
}
|
|
8156
8156
|
}, Ga = {
|
|
8157
8157
|
sku: w.SKU,
|
|
8158
|
-
version:
|
|
8158
|
+
version: go,
|
|
8159
8159
|
cpu: w.EMPTY_STRING,
|
|
8160
8160
|
os: w.EMPTY_STRING
|
|
8161
8161
|
}, Va = {
|
|
@@ -8171,25 +8171,25 @@ var ja = 300, mi = {
|
|
|
8171
8171
|
}
|
|
8172
8172
|
};
|
|
8173
8173
|
function Wa(n) {
|
|
8174
|
-
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, l = n.telemetry,
|
|
8174
|
+
var e = n.authOptions, t = n.systemOptions, r = n.loggerOptions, o = n.cacheOptions, i = n.storageInterface, a = n.networkInterface, s = n.cryptoInterface, u = n.clientCredentials, p = n.libraryInfo, l = n.telemetry, g = n.serverTelemetryManager, f = n.persistencePlugin, k = n.serializableCache, E = me(me({}, Fa), r);
|
|
8175
8175
|
return {
|
|
8176
8176
|
authOptions: $a(e),
|
|
8177
|
-
systemOptions:
|
|
8177
|
+
systemOptions: me(me({}, gi), t),
|
|
8178
8178
|
loggerOptions: E,
|
|
8179
|
-
cacheOptions:
|
|
8180
|
-
storageInterface: i || new Ha(e.clientId, Cr, new
|
|
8179
|
+
cacheOptions: me(me({}, qa), o),
|
|
8180
|
+
storageInterface: i || new Ha(e.clientId, Cr, new mo(E)),
|
|
8181
8181
|
networkInterface: a || Ka,
|
|
8182
8182
|
cryptoInterface: s || Cr,
|
|
8183
8183
|
clientCredentials: u || Va,
|
|
8184
|
-
libraryInfo:
|
|
8185
|
-
telemetry:
|
|
8186
|
-
serverTelemetryManager:
|
|
8184
|
+
libraryInfo: me(me({}, Ga), p),
|
|
8185
|
+
telemetry: me(me({}, Ya), l),
|
|
8186
|
+
serverTelemetryManager: g || null,
|
|
8187
8187
|
persistencePlugin: f || null,
|
|
8188
8188
|
serializableCache: k || null
|
|
8189
8189
|
};
|
|
8190
8190
|
}
|
|
8191
8191
|
function $a(n) {
|
|
8192
|
-
return
|
|
8192
|
+
return me({ clientCapabilities: [], azureCloudOptions: Qa, skipAuthorityMetadataCache: !1 }, n);
|
|
8193
8193
|
}
|
|
8194
8194
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8195
8195
|
var In = (
|
|
@@ -8223,7 +8223,7 @@ var Tr = (
|
|
|
8223
8223
|
}, n.postProcess = function(e, t, r) {
|
|
8224
8224
|
if (n.checkResponseStatus(r) || n.checkResponseForRetryAfter(r)) {
|
|
8225
8225
|
var o = {
|
|
8226
|
-
throttleTime: n.calculateThrottleTime(parseInt(r.headers[
|
|
8226
|
+
throttleTime: n.calculateThrottleTime(parseInt(r.headers[mt.RETRY_AFTER])),
|
|
8227
8227
|
error: r.body.error,
|
|
8228
8228
|
errorCodes: r.body.error_codes,
|
|
8229
8229
|
errorMessage: r.body.error_description,
|
|
@@ -8234,7 +8234,7 @@ var Tr = (
|
|
|
8234
8234
|
}, n.checkResponseStatus = function(e) {
|
|
8235
8235
|
return e.status === 429 || e.status >= 500 && e.status < 600;
|
|
8236
8236
|
}, n.checkResponseForRetryAfter = function(e) {
|
|
8237
|
-
return e.headers ? e.headers.hasOwnProperty(
|
|
8237
|
+
return e.headers ? e.headers.hasOwnProperty(mt.RETRY_AFTER) && (e.status < 200 || e.status >= 300) : !1;
|
|
8238
8238
|
}, n.calculateThrottleTime = function(e) {
|
|
8239
8239
|
var t = e <= 0 ? 0 : e, r = Date.now() / 1e3;
|
|
8240
8240
|
return Math.floor(Math.min(r + (t || Xn.DEFAULT_THROTTLE_TIME_SECONDS), r + Xn.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1e3);
|
|
@@ -8361,9 +8361,9 @@ var er = (
|
|
|
8361
8361
|
}, n.prototype.addLoginHint = function(e) {
|
|
8362
8362
|
this.parameters.set(Wn.LOGIN_HINT, encodeURIComponent(e));
|
|
8363
8363
|
}, n.prototype.addCcsUpn = function(e) {
|
|
8364
|
-
this.parameters.set(
|
|
8364
|
+
this.parameters.set(mt.CCS_HEADER, encodeURIComponent("UPN:" + e));
|
|
8365
8365
|
}, n.prototype.addCcsOid = function(e) {
|
|
8366
|
-
this.parameters.set(
|
|
8366
|
+
this.parameters.set(mt.CCS_HEADER, encodeURIComponent("Oid:" + e.uid + "@" + e.utid));
|
|
8367
8367
|
}, n.prototype.addSid = function(e) {
|
|
8368
8368
|
this.parameters.set(Wn.SID, encodeURIComponent(e));
|
|
8369
8369
|
}, n.prototype.addClaims = function(e, t) {
|
|
@@ -8453,22 +8453,22 @@ var _o = (
|
|
|
8453
8453
|
/** @class */
|
|
8454
8454
|
function() {
|
|
8455
8455
|
function n(e, t) {
|
|
8456
|
-
this.config = Wa(e), this.logger = new
|
|
8456
|
+
this.config = Wa(e), this.logger = new mo(this.config.loggerOptions, mi, go), this.cryptoUtils = this.config.cryptoInterface, this.cacheManager = this.config.storageInterface, this.networkClient = this.config.networkInterface, this.networkManager = new Ja(this.networkClient, this.cacheManager), this.serverTelemetryManager = this.config.serverTelemetryManager, this.authority = this.config.authOptions.authority, this.performanceClient = t;
|
|
8457
8457
|
}
|
|
8458
8458
|
return n.prototype.createTokenRequestHeaders = function(e) {
|
|
8459
8459
|
var t = {};
|
|
8460
|
-
if (t[
|
|
8460
|
+
if (t[mt.CONTENT_TYPE] = w.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
|
|
8461
8461
|
switch (e.type) {
|
|
8462
8462
|
case ft.HOME_ACCOUNT_ID:
|
|
8463
8463
|
try {
|
|
8464
8464
|
var r = Nn(e.credential);
|
|
8465
|
-
t[
|
|
8465
|
+
t[mt.CCS_HEADER] = "Oid:" + r.uid + "@" + r.utid;
|
|
8466
8466
|
} catch (o) {
|
|
8467
8467
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + o);
|
|
8468
8468
|
}
|
|
8469
8469
|
break;
|
|
8470
8470
|
case ft.UPN:
|
|
8471
|
-
t[
|
|
8471
|
+
t[mt.CCS_HEADER] = "UPN: " + e.credential;
|
|
8472
8472
|
break;
|
|
8473
8473
|
}
|
|
8474
8474
|
return t;
|
|
@@ -8528,17 +8528,17 @@ var vo = (
|
|
|
8528
8528
|
this.generateClaimsHashForCacheKey(p),
|
|
8529
8529
|
this.generateSchemeForCacheKey(u)
|
|
8530
8530
|
];
|
|
8531
|
-
return l.join(
|
|
8531
|
+
return l.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8532
8532
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
8533
8533
|
var r = [e, t];
|
|
8534
|
-
return r.join(
|
|
8534
|
+
return r.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8535
8535
|
}, n.generateCredentialIdForCacheKey = function(e, t, r, o) {
|
|
8536
8536
|
var i = e === ee.REFRESH_TOKEN && o || t, a = [
|
|
8537
8537
|
e,
|
|
8538
8538
|
i,
|
|
8539
8539
|
r || w.EMPTY_STRING
|
|
8540
8540
|
];
|
|
8541
|
-
return a.join(
|
|
8541
|
+
return a.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8542
8542
|
}, n.generateTargetForCacheKey = function(e) {
|
|
8543
8543
|
return (e || w.EMPTY_STRING).toLowerCase();
|
|
8544
8544
|
}, n.generateClaimsHashForCacheKey = function(e) {
|
|
@@ -8595,11 +8595,11 @@ var En = (
|
|
|
8595
8595
|
function e() {
|
|
8596
8596
|
return n !== null && n.apply(this, arguments) || this;
|
|
8597
8597
|
}
|
|
8598
|
-
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l,
|
|
8598
|
+
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, g, f, k, E, P, j) {
|
|
8599
8599
|
var K, z, T = new e();
|
|
8600
8600
|
T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
|
|
8601
8601
|
var D = kt.nowSeconds();
|
|
8602
|
-
if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(),
|
|
8602
|
+
if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(), g && (T.refreshOn = g.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = V.isEmpty(f) ? _e.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = j), ((K = T.tokenType) === null || K === void 0 ? void 0 : K.toLowerCase()) !== _e.BEARER.toLowerCase())
|
|
8603
8603
|
switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
|
|
8604
8604
|
case _e.POP:
|
|
8605
8605
|
var G = Vt.extractTokenClaims(o, l);
|
|
@@ -8886,12 +8886,12 @@ var Hn = (
|
|
|
8886
8886
|
}, n.prototype.signPayload = function(e, t, r, o) {
|
|
8887
8887
|
return oe(this, void 0, void 0, function() {
|
|
8888
8888
|
var i, a, s, u, p, l;
|
|
8889
|
-
return ie(this, function(
|
|
8890
|
-
switch (
|
|
8889
|
+
return ie(this, function(g) {
|
|
8890
|
+
switch (g.label) {
|
|
8891
8891
|
case 0:
|
|
8892
|
-
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new le(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(
|
|
8892
|
+
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new le(a) : void 0, l = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(me({ at: e, ts: kt.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: l == null ? void 0 : l.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: l == null ? void 0 : l.AbsolutePath, q: l != null && l.QueryString ? [[], l.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
|
|
8893
8893
|
case 1:
|
|
8894
|
-
return [2,
|
|
8894
|
+
return [2, g.sent()];
|
|
8895
8895
|
}
|
|
8896
8896
|
});
|
|
8897
8897
|
});
|
|
@@ -8912,7 +8912,7 @@ var no = (
|
|
|
8912
8912
|
e,
|
|
8913
8913
|
t
|
|
8914
8914
|
];
|
|
8915
|
-
return r.join(
|
|
8915
|
+
return r.join(Be.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
8916
8916
|
}, n.createAppMetadataEntity = function(e, t, r) {
|
|
8917
8917
|
var o = new n();
|
|
8918
8918
|
return o.clientId = e, o.environment = t, r && (o.familyId = r), o;
|
|
@@ -8974,26 +8974,26 @@ var Ir = (
|
|
|
8974
8974
|
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
|
|
8975
8975
|
var l;
|
|
8976
8976
|
return oe(this, void 0, void 0, function() {
|
|
8977
|
-
var
|
|
8977
|
+
var g, f, k, E, P, j, K;
|
|
8978
8978
|
return ie(this, function(z) {
|
|
8979
8979
|
switch (z.label) {
|
|
8980
8980
|
case 0:
|
|
8981
8981
|
if ((l = this.performanceClient) === null || l === void 0 || l.addQueueMeasurement(A.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
8982
|
-
if (
|
|
8982
|
+
if (g = new Vt(e.id_token || w.EMPTY_STRING, this.cryptoObj), i && !V.isEmpty(i.nonce) && g.claims.nonce !== i.nonce)
|
|
8983
8983
|
throw Y.createNonceMismatchError();
|
|
8984
8984
|
if (o.maxAge || o.maxAge === 0) {
|
|
8985
|
-
if (f =
|
|
8985
|
+
if (f = g.claims.auth_time, !f)
|
|
8986
8986
|
throw Y.createAuthTimeNotFoundError();
|
|
8987
8987
|
Vt.checkMaxAge(f, o.maxAge);
|
|
8988
8988
|
}
|
|
8989
8989
|
}
|
|
8990
|
-
this.homeAccountIdentifier =
|
|
8990
|
+
this.homeAccountIdentifier = Ge.generateHomeAccountId(e.client_info || w.EMPTY_STRING, t.authorityType, this.logger, this.cryptoObj, g), i && i.state && (k = tn.parseRequestState(this.cryptoObj, i.state)), e.key_id = e.key_id || o.sshKid || void 0, E = this.generateCacheRecord(e, t, r, o, g, a, i), z.label = 1;
|
|
8991
8991
|
case 1:
|
|
8992
8992
|
return z.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"), P = new es(this.serializableCache, !0), [4, this.persistencePlugin.beforeCacheAccess(P)]) : [3, 3];
|
|
8993
8993
|
case 2:
|
|
8994
8994
|
z.sent(), z.label = 3;
|
|
8995
8995
|
case 3:
|
|
8996
|
-
return s && !u && E.account && (j = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(j), !K) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o,
|
|
8996
|
+
return s && !u && E.account && (j = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(j), !K) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, g, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
|
|
8997
8997
|
case 4:
|
|
8998
8998
|
return z.sent(), [3, 8];
|
|
8999
8999
|
case 5:
|
|
@@ -9006,7 +9006,7 @@ var Ir = (
|
|
|
9006
9006
|
/*endfinally*/
|
|
9007
9007
|
];
|
|
9008
9008
|
case 8:
|
|
9009
|
-
return [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o,
|
|
9009
|
+
return [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, g, k, e, p)];
|
|
9010
9010
|
}
|
|
9011
9011
|
});
|
|
9012
9012
|
});
|
|
@@ -9016,24 +9016,24 @@ var Ir = (
|
|
|
9016
9016
|
throw Y.createInvalidCacheEnvironmentError();
|
|
9017
9017
|
var p, l;
|
|
9018
9018
|
!V.isEmpty(e.id_token) && i && (p = Cn.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
|
|
9019
|
-
var
|
|
9019
|
+
var g = null;
|
|
9020
9020
|
if (!V.isEmpty(e.access_token)) {
|
|
9021
9021
|
var f = e.scope ? Xe.fromString(e.scope) : new Xe(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, P = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, j = r + k, K = j + E, z = P && P > 0 ? r + P : void 0;
|
|
9022
|
-
|
|
9022
|
+
g = En.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), j, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
|
|
9023
9023
|
}
|
|
9024
9024
|
var T = null;
|
|
9025
9025
|
V.isEmpty(e.refresh_token) || (T = On.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
|
|
9026
9026
|
var D = null;
|
|
9027
|
-
return V.isEmpty(e.foci) || (D = no.createAppMetadataEntity(this.clientId, u, e.foci)), new tr(l, p,
|
|
9027
|
+
return V.isEmpty(e.foci) || (D = no.createAppMetadataEntity(this.clientId, u, e.foci)), new tr(l, p, g, T, D);
|
|
9028
9028
|
}, n.prototype.generateAccountEntity = function(e, t, r, o) {
|
|
9029
9029
|
var i = r.authorityType, a = o ? o.cloud_graph_host_name : w.EMPTY_STRING, s = o ? o.msgraph_host : w.EMPTY_STRING;
|
|
9030
9030
|
if (i === tt.Adfs)
|
|
9031
|
-
return this.logger.verbose("Authority type is ADFS, creating ADFS account"),
|
|
9031
|
+
return this.logger.verbose("Authority type is ADFS, creating ADFS account"), Ge.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
9032
9032
|
if (V.isEmpty(e.client_info) && r.protocolMode === "AAD")
|
|
9033
9033
|
throw Y.createClientInfoEmptyError();
|
|
9034
|
-
return e.client_info ?
|
|
9034
|
+
return e.client_info ? Ge.createAccount(e.client_info, this.homeAccountIdentifier, t, r, a, s) : Ge.createGenericAccount(this.homeAccountIdentifier, t, r, a, s);
|
|
9035
9035
|
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
|
|
9036
|
-
var l,
|
|
9036
|
+
var l, g, f;
|
|
9037
9037
|
return oe(this, void 0, void 0, function() {
|
|
9038
9038
|
var k, E, P, j, K, z, T, D, G, J, te;
|
|
9039
9039
|
return ie(this, function(Z) {
|
|
@@ -9070,7 +9070,7 @@ var Ir = (
|
|
|
9070
9070
|
familyId: K,
|
|
9071
9071
|
tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || w.EMPTY_STRING,
|
|
9072
9072
|
state: s ? s.userRequestState : w.EMPTY_STRING,
|
|
9073
|
-
cloudGraphHostName: ((
|
|
9073
|
+
cloudGraphHostName: ((g = r.account) === null || g === void 0 ? void 0 : g.cloudGraphHostName) || w.EMPTY_STRING,
|
|
9074
9074
|
msGraphHost: ((f = r.account) === null || f === void 0 ? void 0 : f.msGraphHost) || w.EMPTY_STRING,
|
|
9075
9075
|
code: u == null ? void 0 : u.spa_code,
|
|
9076
9076
|
fromNativeBroker: !1
|
|
@@ -9106,17 +9106,17 @@ var _i = (
|
|
|
9106
9106
|
}, e.prototype.acquireToken = function(t, r) {
|
|
9107
9107
|
var o, i, a, s, u, p;
|
|
9108
9108
|
return oe(this, void 0, void 0, function() {
|
|
9109
|
-
var l,
|
|
9109
|
+
var l, g, f, k, E, P, j = this;
|
|
9110
9110
|
return ie(this, function(K) {
|
|
9111
9111
|
switch (K.label) {
|
|
9112
9112
|
case 0:
|
|
9113
9113
|
if (!t || !t.code)
|
|
9114
9114
|
throw Y.createTokenRequestCannotBeMadeError();
|
|
9115
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"),
|
|
9115
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), g = kt.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
|
|
9116
9116
|
case 1:
|
|
9117
|
-
return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[
|
|
9117
|
+
return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[mt.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
|
|
9118
9118
|
httpVerAuthority: E
|
|
9119
|
-
})), P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority,
|
|
9119
|
+
})), P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, g, t, r, void 0, void 0, void 0, k).then(function(z) {
|
|
9120
9120
|
return l == null || l.endMeasurement({
|
|
9121
9121
|
success: !0
|
|
9122
9122
|
}), z;
|
|
@@ -9134,7 +9134,7 @@ var _i = (
|
|
|
9134
9134
|
var o = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, null, null), i = new le(t), a = le.getDeserializedHash(i.getHash());
|
|
9135
9135
|
if (o.validateServerAuthorizationCodeResponse(a, r, this.cryptoUtils), !a.code)
|
|
9136
9136
|
throw Y.createNoAuthCodeInServerResponseError();
|
|
9137
|
-
return
|
|
9137
|
+
return me(me({}, a), {
|
|
9138
9138
|
// Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod
|
|
9139
9139
|
code: a.code
|
|
9140
9140
|
});
|
|
@@ -9146,7 +9146,7 @@ var _i = (
|
|
|
9146
9146
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
9147
9147
|
var o, i;
|
|
9148
9148
|
return oe(this, void 0, void 0, function() {
|
|
9149
|
-
var a, s, u, p, l,
|
|
9149
|
+
var a, s, u, p, l, g, f;
|
|
9150
9150
|
return ie(this, function(k) {
|
|
9151
9151
|
switch (k.label) {
|
|
9152
9152
|
case 0:
|
|
@@ -9155,13 +9155,13 @@ var _i = (
|
|
|
9155
9155
|
if (u = k.sent(), p = void 0, r.clientInfo)
|
|
9156
9156
|
try {
|
|
9157
9157
|
l = Er(r.clientInfo, this.cryptoUtils), p = {
|
|
9158
|
-
credential: "" + l.uid +
|
|
9158
|
+
credential: "" + l.uid + Be.CLIENT_INFO_SEPARATOR + l.utid,
|
|
9159
9159
|
type: ft.HOME_ACCOUNT_ID
|
|
9160
9160
|
};
|
|
9161
9161
|
} catch (E) {
|
|
9162
9162
|
this.logger.verbose("Could not parse client info for CCS Header: " + E);
|
|
9163
9163
|
}
|
|
9164
|
-
return
|
|
9164
|
+
return g = this.createTokenRequestHeaders(p || r.ccsCredential), f = {
|
|
9165
9165
|
clientId: this.config.authOptions.clientId,
|
|
9166
9166
|
authority: t.canonicalAuthority,
|
|
9167
9167
|
scopes: r.scopes,
|
|
@@ -9171,14 +9171,14 @@ var _i = (
|
|
|
9171
9171
|
resourceRequestUri: r.resourceRequestUri,
|
|
9172
9172
|
shrClaims: r.shrClaims,
|
|
9173
9173
|
sshKid: r.sshKid
|
|
9174
|
-
}, [2, this.executePostToTokenEndpoint(s, u,
|
|
9174
|
+
}, [2, this.executePostToTokenEndpoint(s, u, g, f)];
|
|
9175
9175
|
}
|
|
9176
9176
|
});
|
|
9177
9177
|
});
|
|
9178
9178
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
9179
9179
|
var r, o;
|
|
9180
9180
|
return oe(this, void 0, void 0, function() {
|
|
9181
|
-
var i, a, s, u, p, l,
|
|
9181
|
+
var i, a, s, u, p, l, g, g, f;
|
|
9182
9182
|
return ie(this, function(k) {
|
|
9183
9183
|
switch (k.label) {
|
|
9184
9184
|
case 0:
|
|
@@ -9195,8 +9195,8 @@ var _i = (
|
|
|
9195
9195
|
case 3:
|
|
9196
9196
|
if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!V.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), l = void 0, t.clientInfo)
|
|
9197
9197
|
try {
|
|
9198
|
-
|
|
9199
|
-
credential: "" +
|
|
9198
|
+
g = Er(t.clientInfo, this.cryptoUtils), l = {
|
|
9199
|
+
credential: "" + g.uid + Be.CLIENT_INFO_SEPARATOR + g.utid,
|
|
9200
9200
|
type: ft.HOME_ACCOUNT_ID
|
|
9201
9201
|
};
|
|
9202
9202
|
} catch (E) {
|
|
@@ -9208,7 +9208,7 @@ var _i = (
|
|
|
9208
9208
|
switch (l.type) {
|
|
9209
9209
|
case ft.HOME_ACCOUNT_ID:
|
|
9210
9210
|
try {
|
|
9211
|
-
|
|
9211
|
+
g = Nn(l.credential), i.addCcsOid(g);
|
|
9212
9212
|
} catch (E) {
|
|
9213
9213
|
this.logger.verbose("Could not parse home account ID for CCS Header: " + E);
|
|
9214
9214
|
}
|
|
@@ -9224,7 +9224,7 @@ var _i = (
|
|
|
9224
9224
|
}, e.prototype.createAuthCodeUrlQueryString = function(t) {
|
|
9225
9225
|
var r;
|
|
9226
9226
|
return oe(this, void 0, void 0, function() {
|
|
9227
|
-
var o, i, a, s, u, p, p, p, l,
|
|
9227
|
+
var o, i, a, s, u, p, p, p, l, g;
|
|
9228
9228
|
return ie(this, function(f) {
|
|
9229
9229
|
switch (f.label) {
|
|
9230
9230
|
case 0:
|
|
@@ -9262,7 +9262,7 @@ var _i = (
|
|
|
9262
9262
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
|
|
9263
9263
|
return t.nonce && o.addNonce(t.nonce), t.state && o.addState(t.state), (!V.isEmpty(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && o.addClaims(t.claims, this.config.authOptions.clientCapabilities), t.extraQueryParameters && o.addExtraQueryParameters(t.extraQueryParameters), t.nativeBroker ? (o.addNativeBroker(), t.authenticationScheme !== _e.POP ? [3, 2] : (l = new Hn(this.cryptoUtils), [4, l.generateCnf(t)])) : [3, 2];
|
|
9264
9264
|
case 1:
|
|
9265
|
-
|
|
9265
|
+
g = f.sent(), o.addPopToken(g.reqCnfString), f.label = 2;
|
|
9266
9266
|
case 2:
|
|
9267
9267
|
return [2, o.createQueryString()];
|
|
9268
9268
|
}
|
|
@@ -9291,17 +9291,17 @@ var vi = (
|
|
|
9291
9291
|
return e.prototype.acquireToken = function(t) {
|
|
9292
9292
|
var r, o, i, a, s, u, p;
|
|
9293
9293
|
return oe(this, void 0, void 0, function() {
|
|
9294
|
-
var l,
|
|
9294
|
+
var l, g, f, k, E, P, j = this;
|
|
9295
9295
|
return ie(this, function(K) {
|
|
9296
9296
|
switch (K.label) {
|
|
9297
9297
|
case 0:
|
|
9298
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId),
|
|
9298
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), g = kt.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
|
|
9299
9299
|
case 1:
|
|
9300
|
-
return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[
|
|
9300
|
+
return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[mt.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
|
|
9301
9301
|
refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
9302
9302
|
}), k && (l == null || l.addStaticFields({
|
|
9303
9303
|
httpVerToken: k
|
|
9304
|
-
})), E = (u = f.headers) === null || u === void 0 ? void 0 : u[
|
|
9304
|
+
})), E = (u = f.headers) === null || u === void 0 ? void 0 : u[mt.X_MS_REQUEST_ID], P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, g, t, void 0, void 0, !0, t.forceCache, E).then(function(z) {
|
|
9305
9305
|
return l == null || l.endMeasurement({
|
|
9306
9306
|
success: !0
|
|
9307
9307
|
}), z;
|
|
@@ -9327,10 +9327,10 @@ var vi = (
|
|
|
9327
9327
|
if (s = this.cacheManager.isAppMetadataFOCI(t.account.environment), s)
|
|
9328
9328
|
try {
|
|
9329
9329
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
9330
|
-
} catch (
|
|
9331
|
-
if (u =
|
|
9330
|
+
} catch (g) {
|
|
9331
|
+
if (u = g instanceof Pt && g.errorCode === Ln.noTokensFoundError.code, p = g instanceof In && g.errorCode === Lo.INVALID_GRANT_ERROR && g.subError === Lo.CLIENT_MISMATCH_ERROR, u || p)
|
|
9332
9332
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
9333
|
-
throw
|
|
9333
|
+
throw g;
|
|
9334
9334
|
}
|
|
9335
9335
|
return (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
9336
9336
|
});
|
|
@@ -9344,7 +9344,7 @@ var vi = (
|
|
|
9344
9344
|
throw s == null || s.discardMeasurement(), Pt.createNoTokensFoundError();
|
|
9345
9345
|
return s == null || s.endMeasurement({
|
|
9346
9346
|
success: !0
|
|
9347
|
-
}), p =
|
|
9347
|
+
}), p = me(me({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || _e.BEARER, ccsCredential: {
|
|
9348
9348
|
credential: t.account.homeAccountId,
|
|
9349
9349
|
type: ft.HOME_ACCOUNT_ID
|
|
9350
9350
|
} }), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientAcquireToken, t.correlationId), [2, this.acquireToken(p)];
|
|
@@ -9353,13 +9353,13 @@ var vi = (
|
|
|
9353
9353
|
}, e.prototype.executeTokenRequest = function(t, r) {
|
|
9354
9354
|
var o, i, a;
|
|
9355
9355
|
return oe(this, void 0, void 0, function() {
|
|
9356
|
-
var s, u, p, l,
|
|
9356
|
+
var s, u, p, l, g, f;
|
|
9357
9357
|
return ie(this, function(k) {
|
|
9358
9358
|
switch (k.label) {
|
|
9359
9359
|
case 0:
|
|
9360
9360
|
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), u = this.createTokenQueryParameters(t), p = le.appendQueryString(r.tokenEndpoint, u), [4, this.createTokenRequestBody(t)];
|
|
9361
9361
|
case 1:
|
|
9362
|
-
return l = k.sent(),
|
|
9362
|
+
return l = k.sent(), g = this.createTokenRequestHeaders(t.ccsCredential), f = {
|
|
9363
9363
|
clientId: this.config.authOptions.clientId,
|
|
9364
9364
|
authority: r.canonicalAuthority,
|
|
9365
9365
|
scopes: t.scopes,
|
|
@@ -9369,7 +9369,7 @@ var vi = (
|
|
|
9369
9369
|
resourceRequestUri: t.resourceRequestUri,
|
|
9370
9370
|
shrClaims: t.shrClaims,
|
|
9371
9371
|
sshKid: t.sshKid
|
|
9372
|
-
}, [2, this.executePostToTokenEndpoint(p, l,
|
|
9372
|
+
}, [2, this.executePostToTokenEndpoint(p, l, g, f).then(function(E) {
|
|
9373
9373
|
return s == null || s.endMeasurement({
|
|
9374
9374
|
success: !0
|
|
9375
9375
|
}), E;
|
|
@@ -9384,13 +9384,13 @@ var vi = (
|
|
|
9384
9384
|
}, e.prototype.createTokenRequestBody = function(t) {
|
|
9385
9385
|
var r, o, i;
|
|
9386
9386
|
return oe(this, void 0, void 0, function() {
|
|
9387
|
-
var a, s, u, p, l,
|
|
9387
|
+
var a, s, u, p, l, g, f;
|
|
9388
9388
|
return ie(this, function(k) {
|
|
9389
9389
|
switch (k.label) {
|
|
9390
9390
|
case 0:
|
|
9391
9391
|
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientCreateTokenRequestBody, t.correlationId), a = t.correlationId, s = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.BaseClientCreateTokenRequestHeaders, a), u = new er(), u.addClientId(this.config.authOptions.clientId), u.addScopes(t.scopes), u.addGrantType(br.REFRESH_TOKEN_GRANT), u.addClientInfo(), u.addLibraryInfo(this.config.libraryInfo), u.addApplicationTelemetry(this.config.telemetry.application), u.addThrottling(), this.serverTelemetryManager && u.addServerTelemetry(this.serverTelemetryManager), u.addCorrelationId(a), u.addRefreshToken(t.refreshToken), this.config.clientCredentials.clientSecret && u.addClientSecret(this.config.clientCredentials.clientSecret), this.config.clientCredentials.clientAssertion && (p = this.config.clientCredentials.clientAssertion, u.addClientAssertion(p.assertion), u.addClientAssertionType(p.assertionType)), t.authenticationScheme !== _e.POP ? [3, 2] : (l = new Hn(this.cryptoUtils, this.performanceClient), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.PopTokenGenerateCnf, t.correlationId), [4, l.generateCnf(t)]);
|
|
9392
9392
|
case 1:
|
|
9393
|
-
return
|
|
9393
|
+
return g = k.sent(), u.addPopToken(g.reqCnfString), [3, 3];
|
|
9394
9394
|
case 2:
|
|
9395
9395
|
if (t.authenticationScheme === _e.SSH)
|
|
9396
9396
|
if (t.sshJwk)
|
|
@@ -9551,7 +9551,7 @@ var is = (
|
|
|
9551
9551
|
return n.prototype.detectRegion = function(e, t) {
|
|
9552
9552
|
var r, o, i, a;
|
|
9553
9553
|
return oe(this, void 0, void 0, function() {
|
|
9554
|
-
var s, u, p, l,
|
|
9554
|
+
var s, u, p, l, g;
|
|
9555
9555
|
return ie(this, function(f) {
|
|
9556
9556
|
switch (f.label) {
|
|
9557
9557
|
case 0:
|
|
@@ -9565,7 +9565,7 @@ var is = (
|
|
|
9565
9565
|
case 3:
|
|
9566
9566
|
return l = f.sent(), l ? ((a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.RegionDiscoveryGetRegionFromIMDS, this.correlationId), [4, this.getRegionFromIMDS(l, u)]) : (t.region_source = dn.FAILED_AUTO_DETECTION, [2, null]);
|
|
9567
9567
|
case 4:
|
|
9568
|
-
|
|
9568
|
+
g = f.sent(), g.status === Mn.httpSuccess && (s = g.body, t.region_source = dn.IMDS), f.label = 5;
|
|
9569
9569
|
case 5:
|
|
9570
9570
|
return [3, 7];
|
|
9571
9571
|
case 6:
|
|
@@ -9776,8 +9776,8 @@ var ir = (
|
|
|
9776
9776
|
return s.forEach(function(u, p) {
|
|
9777
9777
|
var l = a[p];
|
|
9778
9778
|
if (p === 0 && t.canReplaceTenant(i)) {
|
|
9779
|
-
var
|
|
9780
|
-
l !==
|
|
9779
|
+
var g = new le(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
9780
|
+
l !== g && (t.logger.verbose("Replacing tenant domain name " + l + " with id " + g), l = g);
|
|
9781
9781
|
}
|
|
9782
9782
|
u !== l && (r = r.replace("/" + l + "/", "/" + u + "/"));
|
|
9783
9783
|
}), this.replaceTenant(r);
|
|
@@ -9991,7 +9991,7 @@ Error Description: ` + p.message)), [2, null];
|
|
|
9991
9991
|
o.validateAsUri();
|
|
9992
9992
|
var i = o.getUrlComponents(), a = t + "." + i.HostNameAndPort;
|
|
9993
9993
|
this.isPublicCloudAuthority(i.HostNameAndPort) && (a = t + "." + w.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);
|
|
9994
|
-
var s = le.constructAuthorityUriFromObject(
|
|
9994
|
+
var s = le.constructAuthorityUriFromObject(me(me({}, o.getUrlComponents()), { HostNameAndPort: a })).urlString;
|
|
9995
9995
|
return r ? s + "?" + r : s;
|
|
9996
9996
|
}, n.replaceWithRegionalInformation = function(e, t) {
|
|
9997
9997
|
return e.authorization_endpoint = n.buildRegionalAuthorityString(e.authorization_endpoint, t), e.token_endpoint = n.buildRegionalAuthorityString(e.token_endpoint, t, w.REGIONAL_AUTH_NON_MSI_QUERY_STRING), e.end_session_endpoint && (e.end_session_endpoint = n.buildRegionalAuthorityString(e.end_session_endpoint, t)), e;
|
|
@@ -10020,16 +10020,16 @@ var Ar = (
|
|
|
10020
10020
|
return n.createDiscoveredInstance = function(e, t, r, o, i, a, s) {
|
|
10021
10021
|
return oe(this, void 0, void 0, function() {
|
|
10022
10022
|
var u, p, l;
|
|
10023
|
-
return ie(this, function(
|
|
10024
|
-
switch (
|
|
10023
|
+
return ie(this, function(g) {
|
|
10024
|
+
switch (g.label) {
|
|
10025
10025
|
case 0:
|
|
10026
|
-
a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), u = ir.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s),
|
|
10026
|
+
a == null || a.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance, s), u = ir.transformCIAMAuthority(e), p = n.createInstance(u, t, r, o, i, a, s), g.label = 1;
|
|
10027
10027
|
case 1:
|
|
10028
|
-
return
|
|
10028
|
+
return g.trys.push([1, 3, , 4]), a == null || a.setPreQueueTime(A.AuthorityResolveEndpointsAsync, s), [4, p.resolveEndpointsAsync()];
|
|
10029
10029
|
case 2:
|
|
10030
|
-
return
|
|
10030
|
+
return g.sent(), [2, p];
|
|
10031
10031
|
case 3:
|
|
10032
|
-
throw l =
|
|
10032
|
+
throw l = g.sent(), Y.createEndpointDiscoveryIncompleteError(l);
|
|
10033
10033
|
case 4:
|
|
10034
10034
|
return [
|
|
10035
10035
|
2
|
|
@@ -10084,7 +10084,7 @@ var as = {
|
|
|
10084
10084
|
}
|
|
10085
10085
|
};
|
|
10086
10086
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
10087
|
-
var
|
|
10087
|
+
var mr = {
|
|
10088
10088
|
missingKidError: {
|
|
10089
10089
|
code: "missing_kid_error",
|
|
10090
10090
|
desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."
|
|
@@ -10102,9 +10102,9 @@ var gr = {
|
|
|
10102
10102
|
return o.name = "JoseHeaderError", Object.setPrototypeOf(o, e.prototype), o;
|
|
10103
10103
|
}
|
|
10104
10104
|
return e.createMissingKidError = function() {
|
|
10105
|
-
return new e(
|
|
10105
|
+
return new e(mr.missingKidError.code, mr.missingKidError.desc);
|
|
10106
10106
|
}, e.createMissingAlgError = function() {
|
|
10107
|
-
return new e(
|
|
10107
|
+
return new e(mr.missingAlgError.code, mr.missingAlgError.desc);
|
|
10108
10108
|
}, e;
|
|
10109
10109
|
}(X)
|
|
10110
10110
|
);
|
|
@@ -10135,7 +10135,7 @@ var cs = (
|
|
|
10135
10135
|
/** @class */
|
|
10136
10136
|
function() {
|
|
10137
10137
|
function n(e, t) {
|
|
10138
|
-
this.cacheOutcome = hn.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || w.EMPTY_STRING, this.wrapperVer = e.wrapperVer || w.EMPTY_STRING, this.telemetryCacheKey = qe.CACHE_KEY +
|
|
10138
|
+
this.cacheOutcome = hn.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || w.EMPTY_STRING, this.wrapperVer = e.wrapperVer || w.EMPTY_STRING, this.telemetryCacheKey = qe.CACHE_KEY + Be.CACHE_KEY_SEPARATOR + e.clientId;
|
|
10139
10139
|
}
|
|
10140
10140
|
return n.prototype.generateCurrentRequestHeaderValue = function() {
|
|
10141
10141
|
var e = "" + this.apiId + qe.VALUE_SEPARATOR + this.cacheOutcome, t = [this.wrapperSKU, this.wrapperVer].join(qe.VALUE_SEPARATOR), r = this.getRegionDiscoveryFields(), o = [e, r].join(qe.VALUE_SEPARATOR);
|
|
@@ -10247,7 +10247,7 @@ var wi = (
|
|
|
10247
10247
|
};
|
|
10248
10248
|
return this.cacheEventByCorrelationId(u), {
|
|
10249
10249
|
endMeasurement: function(p) {
|
|
10250
|
-
return r.endMeasurement(
|
|
10250
|
+
return r.endMeasurement(me(me({}, u), p), s);
|
|
10251
10251
|
},
|
|
10252
10252
|
discardMeasurement: function() {
|
|
10253
10253
|
return r.discardMeasurements(u.correlationId);
|
|
@@ -10275,15 +10275,15 @@ var wi = (
|
|
|
10275
10275
|
if (!p)
|
|
10276
10276
|
return this.logger.trace("PerformanceClient: Performance measurement not taken", a.correlationId), null;
|
|
10277
10277
|
if (this.logger.trace("PerformanceClient: Performance measurement ended for " + e.name + ": " + p + " ms", e.correlationId), !s)
|
|
10278
|
-
return a[e.name + "DurationMs"] = Math.floor(p),
|
|
10279
|
-
var l =
|
|
10278
|
+
return a[e.name + "DurationMs"] = Math.floor(p), me({}, a);
|
|
10279
|
+
var l = me(me({}, a), e), g = 0;
|
|
10280
10280
|
return (i = l.incompleteSubMeasurements) === null || i === void 0 || i.forEach(function(f) {
|
|
10281
|
-
r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId),
|
|
10282
|
-
}), l.incompleteSubMeasurements = void 0, l =
|
|
10281
|
+
r.logger.trace("PerformanceClient: Incomplete submeasurement " + f.name + " found for " + e.name, l.correlationId), g++;
|
|
10282
|
+
}), l.incompleteSubMeasurements = void 0, l = me(me({}, l), { durationMs: Math.round(p), queuedTimeMs: u.totalQueueTime, queuedCount: u.totalQueueCount, queuedManuallyCompletedCount: u.manuallyCompletedCount, status: Sr.Completed, incompleteSubsCount: g }), this.truncateIntegralFields(l, this.getIntFields()), this.emitEvents([l], e.correlationId), l;
|
|
10283
10283
|
}, n.prototype.addStaticFields = function(e, t) {
|
|
10284
10284
|
this.logger.trace("PerformanceClient: Updating static fields");
|
|
10285
10285
|
var r = this.eventsByCorrelationId.get(t);
|
|
10286
|
-
r ? this.eventsByCorrelationId.set(t,
|
|
10286
|
+
r ? this.eventsByCorrelationId.set(t, me(me({}, r), e)) : this.logger.trace("PerformanceClient: Event not found for", t);
|
|
10287
10287
|
}, n.prototype.increment = function(e, t) {
|
|
10288
10288
|
this.logger.trace("PerformanceClient: Updating counters");
|
|
10289
10289
|
var r = this.eventsByCorrelationId.get(t);
|
|
@@ -10294,7 +10294,7 @@ var wi = (
|
|
|
10294
10294
|
this.logger.trace("PerformanceClient: Event not found for", t);
|
|
10295
10295
|
}, n.prototype.cacheEventByCorrelationId = function(e) {
|
|
10296
10296
|
var t = this.eventsByCorrelationId.get(e.correlationId);
|
|
10297
|
-
t ? (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " added/updated", e.correlationId), t.incompleteSubMeasurements = t.incompleteSubMeasurements || /* @__PURE__ */ new Map(), t.incompleteSubMeasurements.set(e.eventId, { name: e.name, startTimeMs: e.startTimeMs })) : (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " started", e.correlationId), this.eventsByCorrelationId.set(e.correlationId,
|
|
10297
|
+
t ? (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " added/updated", e.correlationId), t.incompleteSubMeasurements = t.incompleteSubMeasurements || /* @__PURE__ */ new Map(), t.incompleteSubMeasurements.set(e.eventId, { name: e.name, startTimeMs: e.startTimeMs })) : (this.logger.trace("PerformanceClient: Performance measurement for " + e.name + " started", e.correlationId), this.eventsByCorrelationId.set(e.correlationId, me({}, e)));
|
|
10298
10298
|
}, n.prototype.getQueueInfo = function(e) {
|
|
10299
10299
|
var t = this.queueMeasurements.get(e);
|
|
10300
10300
|
t || this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: " + e);
|
|
@@ -10545,7 +10545,7 @@ var U = {
|
|
|
10545
10545
|
}, q = (
|
|
10546
10546
|
/** @class */
|
|
10547
10547
|
function(n) {
|
|
10548
|
-
|
|
10548
|
+
Qe(e, n);
|
|
10549
10549
|
function e(t, r) {
|
|
10550
10550
|
var o = n.call(this, t, r) || this;
|
|
10551
10551
|
return Object.setPrototypeOf(o, e.prototype), o.name = "BrowserAuthError", o;
|
|
@@ -10761,7 +10761,7 @@ var rt = {
|
|
|
10761
10761
|
}, Pr = (
|
|
10762
10762
|
/** @class */
|
|
10763
10763
|
function(n) {
|
|
10764
|
-
|
|
10764
|
+
Qe(e, n);
|
|
10765
10765
|
function e(t, r) {
|
|
10766
10766
|
var o = n.call(this, t, r) || this;
|
|
10767
10767
|
return o.name = "BrowserConfigurationAuthError", Object.setPrototypeOf(o, e.prototype), o;
|
|
@@ -10861,7 +10861,7 @@ var bi = (
|
|
|
10861
10861
|
var ao = (
|
|
10862
10862
|
/** @class */
|
|
10863
10863
|
function(n) {
|
|
10864
|
-
|
|
10864
|
+
Qe(e, n);
|
|
10865
10865
|
function e(t, r, o, i) {
|
|
10866
10866
|
var a = n.call(this, t, o, i) || this;
|
|
10867
10867
|
return a.COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1e3, a.cacheConfig = r, a.logger = i, a.internalStorage = new io(), a.browserStorage = a.setupBrowserStorage(a.cacheConfig.cacheLocation), a.temporaryCacheStorage = a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation, a.cacheConfig.cacheLocation), r.cacheMigrationEnabled && (a.migrateCacheEntries(), a.createKeyMaps()), a;
|
|
@@ -10892,9 +10892,9 @@ var ao = (
|
|
|
10892
10892
|
return this.internalStorage;
|
|
10893
10893
|
}
|
|
10894
10894
|
}, e.prototype.migrateCacheEntries = function() {
|
|
10895
|
-
var t = this, r = w.CACHE_PREFIX + "." + xe.ID_TOKEN, o = w.CACHE_PREFIX + "." + xe.CLIENT_INFO, i = w.CACHE_PREFIX + "." + xe.ERROR, a = w.CACHE_PREFIX + "." + xe.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), l = this.browserStorage.getItem(a),
|
|
10895
|
+
var t = this, r = w.CACHE_PREFIX + "." + xe.ID_TOKEN, o = w.CACHE_PREFIX + "." + xe.CLIENT_INFO, i = w.CACHE_PREFIX + "." + xe.ERROR, a = w.CACHE_PREFIX + "." + xe.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), l = this.browserStorage.getItem(a), g = [s, u, p, l], f = [xe.ID_TOKEN, xe.CLIENT_INFO, xe.ERROR, xe.ERROR_DESC];
|
|
10896
10896
|
f.forEach(function(k, E) {
|
|
10897
|
-
return t.migrateCacheEntry(k,
|
|
10897
|
+
return t.migrateCacheEntry(k, g[E]);
|
|
10898
10898
|
});
|
|
10899
10899
|
}, e.prototype.migrateCacheEntry = function(t, r) {
|
|
10900
10900
|
r && this.setTemporaryCache(t, r, !0);
|
|
@@ -10927,7 +10927,7 @@ var ao = (
|
|
|
10927
10927
|
case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
10928
10928
|
if (En.isAccessTokenEntity(u)) {
|
|
10929
10929
|
t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
|
|
10930
|
-
var
|
|
10930
|
+
var g = ot.toObject(new En(), u), l = t.updateCredentialCacheKey(a, g);
|
|
10931
10931
|
t.addTokenKey(l, ee.ACCESS_TOKEN);
|
|
10932
10932
|
return;
|
|
10933
10933
|
} else
|
|
@@ -10949,7 +10949,7 @@ var ao = (
|
|
|
10949
10949
|
var s = t.getItem(a);
|
|
10950
10950
|
if (s) {
|
|
10951
10951
|
var k = t.validateAndParseJson(s);
|
|
10952
|
-
k &&
|
|
10952
|
+
k && Ge.isAccountEntity(k) && (t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: " + a + " found, saving key to account key map"), t.addAccountKeyToMap(a));
|
|
10953
10953
|
}
|
|
10954
10954
|
}
|
|
10955
10955
|
});
|
|
@@ -10970,7 +10970,7 @@ var ao = (
|
|
|
10970
10970
|
if (!r)
|
|
10971
10971
|
return this.removeAccountKeyFromMap(t), null;
|
|
10972
10972
|
var o = this.validateAndParseJson(r);
|
|
10973
|
-
return !o || !
|
|
10973
|
+
return !o || !Ge.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) : ot.toObject(new Ge(), o);
|
|
10974
10974
|
}, e.prototype.setAccount = function(t) {
|
|
10975
10975
|
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
10976
10976
|
var r = t.generateAccountKey();
|
|
@@ -11627,9 +11627,9 @@ var ki = (
|
|
|
11627
11627
|
case 0:
|
|
11628
11628
|
if (!e)
|
|
11629
11629
|
return [3, 5];
|
|
11630
|
-
|
|
11630
|
+
Ge.accountInfoIsEqual(e, this.browserStorage.getActiveAccount(), !1) && (this.logger.verbose("Setting active account to null"), this.browserStorage.setActiveAccount(null)), t.label = 1;
|
|
11631
11631
|
case 1:
|
|
11632
|
-
return t.trys.push([1, 3, , 4]), [4, this.browserStorage.removeAccount(
|
|
11632
|
+
return t.trys.push([1, 3, , 4]), [4, this.browserStorage.removeAccount(Ge.generateAccountCacheKey(e))];
|
|
11633
11633
|
case 2:
|
|
11634
11634
|
return t.sent(), this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."), [3, 4];
|
|
11635
11635
|
case 3:
|
|
@@ -11745,7 +11745,7 @@ var ki = (
|
|
|
11745
11745
|
var Gn = (
|
|
11746
11746
|
/** @class */
|
|
11747
11747
|
function(n) {
|
|
11748
|
-
|
|
11748
|
+
Qe(e, n);
|
|
11749
11749
|
function e() {
|
|
11750
11750
|
return n !== null && n.apply(this, arguments) || this;
|
|
11751
11751
|
}
|
|
@@ -11879,14 +11879,14 @@ var Gn = (
|
|
|
11879
11879
|
}, e.prototype.initializeAuthorizationRequest = function(t, r) {
|
|
11880
11880
|
return O(this, void 0, void 0, function() {
|
|
11881
11881
|
var o, i, a, s, u, p, l;
|
|
11882
|
-
return L(this, function(
|
|
11883
|
-
switch (
|
|
11882
|
+
return L(this, function(g) {
|
|
11883
|
+
switch (g.label) {
|
|
11884
11884
|
case 0:
|
|
11885
11885
|
return this.performanceClient.addQueueMeasurement(A.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId), this.logger.verbose("initializeAuthorizationRequest called", this.correlationId), o = this.getRedirectUri(t.redirectUri), i = {
|
|
11886
11886
|
interactionType: r
|
|
11887
11887
|
}, a = tn.setRequestState(this.browserCrypto, t && t.state || w.EMPTY_STRING, i), this.performanceClient.setPreQueueTime(A.InitializeBaseRequest, this.correlationId), u = [{}], [4, this.initializeBaseRequest(t)];
|
|
11888
11888
|
case 1:
|
|
11889
|
-
return s = $.apply(void 0, [$.apply(void 0, u.concat([
|
|
11889
|
+
return s = $.apply(void 0, [$.apply(void 0, u.concat([g.sent()])), { redirectUri: o, state: a, nonce: t.nonce || this.browserCrypto.createNewGuid(), responseMode: wr.FRAGMENT }]), p = t.account || this.browserStorage.getActiveAccount(), p && (this.logger.verbose("Setting validated request account", this.correlationId), this.logger.verbosePii("Setting validated request account: " + p.homeAccountId, this.correlationId), s.account = p), V.isEmpty(s.loginHint) && !p && (l = this.browserStorage.getLegacyLoginHint(), l && (s.loginHint = l)), [2, s];
|
|
11890
11890
|
}
|
|
11891
11891
|
});
|
|
11892
11892
|
});
|
|
@@ -11918,7 +11918,7 @@ var yo = (
|
|
|
11918
11918
|
});
|
|
11919
11919
|
}, n.prototype.handleCodeResponseFromServer = function(e, t, r, o, i) {
|
|
11920
11920
|
return i === void 0 && (i = !0), O(this, void 0, void 0, function() {
|
|
11921
|
-
var a, s, u, p, l,
|
|
11921
|
+
var a, s, u, p, l, g;
|
|
11922
11922
|
return L(this, function(f) {
|
|
11923
11923
|
switch (f.label) {
|
|
11924
11924
|
case 0:
|
|
@@ -11930,7 +11930,7 @@ var yo = (
|
|
|
11930
11930
|
case 2:
|
|
11931
11931
|
return i && (e.nonce = p || void 0), e.state = s, e.client_info ? this.authCodeRequest.clientInfo = e.client_info : (l = this.checkCcsCredentials(), l && (this.authCodeRequest.ccsCredential = l)), this.performanceClient.setPreQueueTime(A.AuthClientAcquireToken, this.authCodeRequest.correlationId), [4, this.authModule.acquireToken(this.authCodeRequest, e)];
|
|
11932
11932
|
case 3:
|
|
11933
|
-
return
|
|
11933
|
+
return g = f.sent(), this.browserStorage.cleanRequestByState(t), [2, g];
|
|
11934
11934
|
}
|
|
11935
11935
|
});
|
|
11936
11936
|
});
|
|
@@ -11965,7 +11965,7 @@ var yo = (
|
|
|
11965
11965
|
var Go = (
|
|
11966
11966
|
/** @class */
|
|
11967
11967
|
function(n) {
|
|
11968
|
-
|
|
11968
|
+
Qe(e, n);
|
|
11969
11969
|
function e(t, r, o, i, a, s) {
|
|
11970
11970
|
var u = n.call(this, t, r, o, i, s) || this;
|
|
11971
11971
|
return u.browserCrypto = a, u;
|
|
@@ -12014,7 +12014,7 @@ var Go = (
|
|
|
12014
12014
|
});
|
|
12015
12015
|
}, e.prototype.handleCodeResponseFromHash = function(t, r, o, i) {
|
|
12016
12016
|
return O(this, void 0, void 0, function() {
|
|
12017
|
-
var a, s, u, p, l,
|
|
12017
|
+
var a, s, u, p, l, g, f;
|
|
12018
12018
|
return L(this, function(k) {
|
|
12019
12019
|
switch (k.label) {
|
|
12020
12020
|
case 0:
|
|
@@ -12031,7 +12031,7 @@ var Go = (
|
|
|
12031
12031
|
case 1:
|
|
12032
12032
|
k.sent(), k.label = 2;
|
|
12033
12033
|
case 2:
|
|
12034
|
-
return u.nonce = l || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (
|
|
12034
|
+
return u.nonce = l || void 0, u.state = s, u.client_info ? this.authCodeRequest.clientInfo = u.client_info : (g = this.checkCcsCredentials(), g && (this.authCodeRequest.ccsCredential = g)), [4, this.authModule.acquireToken(this.authCodeRequest, u)];
|
|
12035
12035
|
case 3:
|
|
12036
12036
|
return f = k.sent(), this.browserStorage.cleanRequestByState(r), [2, f];
|
|
12037
12037
|
}
|
|
@@ -12065,7 +12065,7 @@ var Vn = {
|
|
|
12065
12065
|
}, Kt = (
|
|
12066
12066
|
/** @class */
|
|
12067
12067
|
function(n) {
|
|
12068
|
-
|
|
12068
|
+
Qe(e, n);
|
|
12069
12069
|
function e(t, r, o) {
|
|
12070
12070
|
var i = n.call(this, t, r) || this;
|
|
12071
12071
|
return Object.setPrototypeOf(i, e.prototype), i.name = "NativeAuthError", i.ext = o, i;
|
|
@@ -12103,7 +12103,7 @@ var Vn = {
|
|
|
12103
12103
|
var Ci = (
|
|
12104
12104
|
/** @class */
|
|
12105
12105
|
function(n) {
|
|
12106
|
-
|
|
12106
|
+
Qe(e, n);
|
|
12107
12107
|
function e() {
|
|
12108
12108
|
return n !== null && n.apply(this, arguments) || this;
|
|
12109
12109
|
}
|
|
@@ -12170,10 +12170,10 @@ var Ci = (
|
|
|
12170
12170
|
var Bn = (
|
|
12171
12171
|
/** @class */
|
|
12172
12172
|
function(n) {
|
|
12173
|
-
|
|
12174
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12173
|
+
Qe(e, n);
|
|
12174
|
+
function e(t, r, o, i, a, s, u, p, l, g, f, k) {
|
|
12175
12175
|
var E = n.call(this, t, r, o, i, a, s, p, l, k) || this;
|
|
12176
|
-
return E.apiId = u, E.accountId =
|
|
12176
|
+
return E.apiId = u, E.accountId = g, E.nativeMessageHandler = l, E.nativeStorageManager = f, E.silentCacheClient = new Ci(t, E.nativeStorageManager, o, i, a, s, p, l, k), E;
|
|
12177
12177
|
}
|
|
12178
12178
|
return e.prototype.acquireToken = function(t) {
|
|
12179
12179
|
return O(this, void 0, void 0, function() {
|
|
@@ -12200,19 +12200,19 @@ var Bn = (
|
|
|
12200
12200
|
request: i
|
|
12201
12201
|
}, [4, this.nativeMessageHandler.sendMessage(s)];
|
|
12202
12202
|
case 6:
|
|
12203
|
-
return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(
|
|
12203
|
+
return u = l.sent(), p = this.validateNativeResponse(u), [2, this.handleNativeResponse(p, i, o).then(function(g) {
|
|
12204
12204
|
return r.endMeasurement({
|
|
12205
12205
|
success: !0,
|
|
12206
12206
|
isNativeBroker: !0,
|
|
12207
|
-
requestId:
|
|
12208
|
-
}),
|
|
12209
|
-
}).catch(function(
|
|
12207
|
+
requestId: g.requestId
|
|
12208
|
+
}), g;
|
|
12209
|
+
}).catch(function(g) {
|
|
12210
12210
|
throw r.endMeasurement({
|
|
12211
12211
|
success: !1,
|
|
12212
|
-
errorCode:
|
|
12213
|
-
subErrorCode:
|
|
12212
|
+
errorCode: g.errorCode,
|
|
12213
|
+
subErrorCode: g.subError,
|
|
12214
12214
|
isNativeBroker: !0
|
|
12215
|
-
}),
|
|
12215
|
+
}), g;
|
|
12216
12216
|
})];
|
|
12217
12217
|
}
|
|
12218
12218
|
});
|
|
@@ -12317,26 +12317,26 @@ var Bn = (
|
|
|
12317
12317
|
}, e.prototype.handleNativeResponse = function(t, r, o) {
|
|
12318
12318
|
return O(this, void 0, void 0, function() {
|
|
12319
12319
|
var i, a, s, u, p, l;
|
|
12320
|
-
return L(this, function(
|
|
12321
|
-
switch (
|
|
12320
|
+
return L(this, function(g) {
|
|
12321
|
+
switch (g.label) {
|
|
12322
12322
|
case 0:
|
|
12323
12323
|
if (this.logger.trace("NativeInteractionClient - handleNativeResponse called."), t.account.id !== r.accountId)
|
|
12324
12324
|
throw Kt.createUserSwitchError();
|
|
12325
12325
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
12326
12326
|
case 1:
|
|
12327
|
-
return i =
|
|
12327
|
+
return i = g.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
|
|
12328
12328
|
case 2:
|
|
12329
|
-
return l =
|
|
12329
|
+
return l = g.sent(), this.cacheAccount(p), this.cacheNativeTokens(t, r, u, p, s, l.accessToken, l.tenantId, o), [2, l];
|
|
12330
12330
|
}
|
|
12331
12331
|
});
|
|
12332
12332
|
});
|
|
12333
12333
|
}, e.prototype.createIdTokenObj = function(t) {
|
|
12334
12334
|
return new Vt(t.id_token || w.EMPTY_STRING, this.browserCrypto);
|
|
12335
12335
|
}, e.prototype.createHomeAccountIdentifier = function(t, r) {
|
|
12336
|
-
var o =
|
|
12336
|
+
var o = Ge.generateHomeAccountId(t.client_info || w.EMPTY_STRING, tt.Default, this.logger, this.browserCrypto, r);
|
|
12337
12337
|
return o;
|
|
12338
12338
|
}, e.prototype.createAccountEntity = function(t, r, o, i) {
|
|
12339
|
-
return
|
|
12339
|
+
return Ge.createAccount(t.client_info, r, o, void 0, void 0, void 0, i, t.account.id);
|
|
12340
12340
|
}, e.prototype.generateScopes = function(t, r) {
|
|
12341
12341
|
return t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope);
|
|
12342
12342
|
}, e.prototype.generatePopAccessToken = function(t, r) {
|
|
@@ -12366,15 +12366,15 @@ var Bn = (
|
|
|
12366
12366
|
});
|
|
12367
12367
|
}, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
|
|
12368
12368
|
return O(this, void 0, void 0, function() {
|
|
12369
|
-
var u, p, l,
|
|
12369
|
+
var u, p, l, g, f, k, E, P;
|
|
12370
12370
|
return L(this, function(j) {
|
|
12371
12371
|
switch (j.label) {
|
|
12372
12372
|
case 0:
|
|
12373
|
-
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope), l = t.account.properties || {},
|
|
12373
|
+
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Xe.fromString(t.scope) : Xe.fromString(r.scope), l = t.account.properties || {}, g = l.UID || o.claims.oid || o.claims.sub || w.EMPTY_STRING, f = l.TenantId || o.claims.tid || w.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
|
|
12374
12374
|
case 1:
|
|
12375
12375
|
return k = j.sent(), E = r.tokenType === _e.POP ? _e.POP : _e.BEARER, P = {
|
|
12376
12376
|
authority: a,
|
|
12377
|
-
uniqueId:
|
|
12377
|
+
uniqueId: g,
|
|
12378
12378
|
tenantId: f,
|
|
12379
12379
|
scopes: p.asArray(),
|
|
12380
12380
|
account: i.getAccountInfo(),
|
|
@@ -12397,7 +12397,7 @@ var Bn = (
|
|
|
12397
12397
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
12398
12398
|
});
|
|
12399
12399
|
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
|
|
12400
|
-
var l = Cn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING),
|
|
12400
|
+
var l = Cn.createIdTokenEntity(o, r.authority, t.id_token || w.EMPTY_STRING, r.clientId, a.claims.tid || w.EMPTY_STRING), g = r.tokenType === _e.POP ? w.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, f = p + g, k = this.generateScopes(t, r), E = En.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || w.EMPTY_STRING : u, k.printScopes(), f, 0, this.browserCrypto), P = new tr(i, l, E);
|
|
12401
12401
|
this.nativeStorageManager.saveCacheRecord(P);
|
|
12402
12402
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
12403
12403
|
var r = this.getMATSFromResponse(t);
|
|
@@ -12434,7 +12434,7 @@ var Bn = (
|
|
|
12434
12434
|
return typeof t.is_cached > "u" ? (this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."), !1) : !!t.is_cached;
|
|
12435
12435
|
}, e.prototype.initializeNativeRequest = function(t) {
|
|
12436
12436
|
return O(this, void 0, void 0, function() {
|
|
12437
|
-
var r, o, i, a, s, u, p, l,
|
|
12437
|
+
var r, o, i, a, s, u, p, l, g, f, k = this;
|
|
12438
12438
|
return L(this, function(E) {
|
|
12439
12439
|
switch (E.label) {
|
|
12440
12440
|
case 0:
|
|
@@ -12478,7 +12478,7 @@ var Bn = (
|
|
|
12478
12478
|
resourceRequestMethod: t.resourceRequestMethod,
|
|
12479
12479
|
shrClaims: t.shrClaims,
|
|
12480
12480
|
shrNonce: t.shrNonce
|
|
12481
|
-
},
|
|
12481
|
+
}, g = new Hn(this.browserCrypto), [4, g.generateCnf(l)]);
|
|
12482
12482
|
case 3:
|
|
12483
12483
|
f = E.sent(), p.reqCnf = f.reqCnfString, p.keyId = f.kid, E.label = 4;
|
|
12484
12484
|
case 4:
|
|
@@ -12611,17 +12611,17 @@ var Sn = (
|
|
|
12611
12611
|
}()
|
|
12612
12612
|
);
|
|
12613
12613
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12614
|
-
var
|
|
12614
|
+
var ms = (
|
|
12615
12615
|
/** @class */
|
|
12616
12616
|
function(n) {
|
|
12617
|
-
|
|
12618
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12619
|
-
var f = n.call(this, t, r, o, i, a, s, u, l,
|
|
12617
|
+
Qe(e, n);
|
|
12618
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
12619
|
+
var f = n.call(this, t, r, o, i, a, s, u, l, g) || this;
|
|
12620
12620
|
return f.nativeStorage = p, f;
|
|
12621
12621
|
}
|
|
12622
12622
|
return e.prototype.acquireToken = function(t) {
|
|
12623
12623
|
return O(this, void 0, void 0, function() {
|
|
12624
|
-
var r, o, i, a, s, u, p, l,
|
|
12624
|
+
var r, o, i, a, s, u, p, l, g, f = this;
|
|
12625
12625
|
return L(this, function(k) {
|
|
12626
12626
|
switch (k.label) {
|
|
12627
12627
|
case 0:
|
|
@@ -12646,7 +12646,7 @@ var gs = (
|
|
|
12646
12646
|
case 6:
|
|
12647
12647
|
return [2, k.sent()];
|
|
12648
12648
|
case 7:
|
|
12649
|
-
throw
|
|
12649
|
+
throw g = k.sent(), g instanceof X && g.setCorrelationId(this.correlationId), window.removeEventListener("pageshow", i), o.cacheFailedRequest(g), this.browserStorage.cleanRequestByState(r.state), g;
|
|
12650
12650
|
case 8:
|
|
12651
12651
|
return [
|
|
12652
12652
|
2
|
|
@@ -12657,7 +12657,7 @@ var gs = (
|
|
|
12657
12657
|
});
|
|
12658
12658
|
}, e.prototype.handleRedirectPromise = function(t) {
|
|
12659
12659
|
return O(this, void 0, void 0, function() {
|
|
12660
|
-
var r, o, i, a, s, u, p, l,
|
|
12660
|
+
var r, o, i, a, s, u, p, l, g, f, k, E;
|
|
12661
12661
|
return L(this, function(P) {
|
|
12662
12662
|
switch (P.label) {
|
|
12663
12663
|
case 0:
|
|
@@ -12679,15 +12679,15 @@ var gs = (
|
|
|
12679
12679
|
case 3:
|
|
12680
12680
|
return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
|
|
12681
12681
|
case 4:
|
|
12682
|
-
return !Ae.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(ue.URL_HASH, o, !0),
|
|
12682
|
+
return !Ae.isInIframe() || this.config.system.allowRedirectInIframe ? (this.browserStorage.setTemporaryCache(ue.URL_HASH, o, !0), g = {
|
|
12683
12683
|
apiId: Ce.handleRedirectPromise,
|
|
12684
12684
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
12685
12685
|
noHistory: !0
|
|
12686
|
-
}, f = !0, !s || s === "null" ? (k = Ae.getHomepage(), this.browserStorage.setTemporaryCache(ue.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k,
|
|
12686
|
+
}, f = !0, !s || s === "null" ? (k = Ae.getHomepage(), this.browserStorage.setTemporaryCache(ue.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, g)]) : [3, 6]) : [3, 9];
|
|
12687
12687
|
case 5:
|
|
12688
12688
|
return f = P.sent(), [3, 8];
|
|
12689
12689
|
case 6:
|
|
12690
|
-
return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s,
|
|
12690
|
+
return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s, g)];
|
|
12691
12691
|
case 7:
|
|
12692
12692
|
f = P.sent(), P.label = 8;
|
|
12693
12693
|
case 8:
|
|
@@ -12715,7 +12715,7 @@ var gs = (
|
|
|
12715
12715
|
return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ue.URL_HASH)), this.logger.verbose("Hash does not contain known properties, returning cached hash"), o;
|
|
12716
12716
|
}, e.prototype.handleHash = function(t, r, o) {
|
|
12717
12717
|
return O(this, void 0, void 0, function() {
|
|
12718
|
-
var i, a, s, u, p, l,
|
|
12718
|
+
var i, a, s, u, p, l, g, f = this;
|
|
12719
12719
|
return L(this, function(k) {
|
|
12720
12720
|
switch (k.label) {
|
|
12721
12721
|
case 0:
|
|
@@ -12734,7 +12734,7 @@ var gs = (
|
|
|
12734
12734
|
throw q.createNoCachedAuthorityError();
|
|
12735
12735
|
return this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
|
|
12736
12736
|
case 1:
|
|
12737
|
-
return l = k.sent(), this.logger.verbose("Auth code client created"), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, i),
|
|
12737
|
+
return l = k.sent(), this.logger.verbose("Auth code client created"), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, i), g = new Go(l, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, g.handleCodeResponseFromHash(t, r, l.authority, this.networkClient)];
|
|
12738
12738
|
case 2:
|
|
12739
12739
|
return [2, k.sent()];
|
|
12740
12740
|
}
|
|
@@ -12792,12 +12792,12 @@ var gs = (
|
|
|
12792
12792
|
}(Gn)
|
|
12793
12793
|
);
|
|
12794
12794
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
12795
|
-
var
|
|
12795
|
+
var gs = (
|
|
12796
12796
|
/** @class */
|
|
12797
12797
|
function(n) {
|
|
12798
|
-
|
|
12799
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
12800
|
-
var f = n.call(this, t, r, o, i, a, s, u, l,
|
|
12798
|
+
Qe(e, n);
|
|
12799
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
12800
|
+
var f = n.call(this, t, r, o, i, a, s, u, l, g) || this;
|
|
12801
12801
|
return f.unloadWindow = f.unloadWindow.bind(f), f.nativeStorage = p, f;
|
|
12802
12802
|
}
|
|
12803
12803
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -12825,7 +12825,7 @@ var ms = (
|
|
|
12825
12825
|
}
|
|
12826
12826
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
12827
12827
|
return O(this, void 0, void 0, function() {
|
|
12828
|
-
var a, s, u, p, l,
|
|
12828
|
+
var a, s, u, p, l, g, f, k, E, P, j, K, z, T, D, G, J, te = this;
|
|
12829
12829
|
return L(this, function(Z) {
|
|
12830
12830
|
switch (Z.label) {
|
|
12831
12831
|
case 0:
|
|
@@ -12837,7 +12837,7 @@ var ms = (
|
|
|
12837
12837
|
case 3:
|
|
12838
12838
|
return u = Z.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(a, s.authority, s.azureCloudOptions)];
|
|
12839
12839
|
case 4:
|
|
12840
|
-
return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme),
|
|
12840
|
+
return p = Z.sent(), this.logger.verbose("Auth code client created"), l = Sn.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, t.authenticationScheme), g = void 0, l && (g = this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker, t.correlationId)), [4, p.getAuthCodeUrl($($({}, s), { nativeBroker: l }))];
|
|
12841
12841
|
case 5:
|
|
12842
12842
|
return f = Z.sent(), k = new yo(p, this.browserStorage, u, this.logger, this.performanceClient), E = {
|
|
12843
12843
|
popup: i,
|
|
@@ -12846,7 +12846,7 @@ var ms = (
|
|
|
12846
12846
|
}, P = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: P }, null), [4, this.monitorPopupForHash(P)];
|
|
12847
12847
|
case 6:
|
|
12848
12848
|
if (j = Z.sent(), K = le.getDeserializedHash(j), z = this.validateAndExtractStateFromHash(K, W.Popup, s.correlationId), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, u), K.accountId) {
|
|
12849
|
-
if (this.logger.verbose("Account id found in hash, calling WAM for token"),
|
|
12849
|
+
if (this.logger.verbose("Account id found in hash, calling WAM for token"), g && g.endMeasurement({
|
|
12850
12850
|
success: !0,
|
|
12851
12851
|
isNativeBroker: !0
|
|
12852
12852
|
}), !this.nativeMessageHandler)
|
|
@@ -12874,7 +12874,7 @@ var ms = (
|
|
|
12874
12874
|
});
|
|
12875
12875
|
}, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
|
|
12876
12876
|
return O(this, void 0, void 0, function() {
|
|
12877
|
-
var u, p, l,
|
|
12877
|
+
var u, p, l, g, f, k, E;
|
|
12878
12878
|
return L(this, function(P) {
|
|
12879
12879
|
switch (P.label) {
|
|
12880
12880
|
case 0:
|
|
@@ -12884,7 +12884,7 @@ var ms = (
|
|
|
12884
12884
|
case 2:
|
|
12885
12885
|
return P.sent(), this.performanceClient.setPreQueueTime(A.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
|
|
12886
12886
|
case 3:
|
|
12887
|
-
return p = P.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t),
|
|
12887
|
+
return p = P.sent(), this.logger.verbose("Auth code client created"), l = p.getLogoutUri(t), this.eventHandler.emitEvent(ne.LOGOUT_SUCCESS, W.Popup, t), g = this.openPopup(l, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: g }, null), [4, this.waitForLogoutPopup(g)];
|
|
12888
12888
|
case 4:
|
|
12889
12889
|
return P.sent(), s ? (f = {
|
|
12890
12890
|
apiId: Ce.logoutPopup,
|
|
@@ -12947,8 +12947,8 @@ var ms = (
|
|
|
12947
12947
|
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), q.createPopupWindowError(i.toString());
|
|
12948
12948
|
}
|
|
12949
12949
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
12950
|
-
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, l = window.screenTop ? window.screenTop : window.screenY,
|
|
12951
|
-
return (!k || k < 0 || k >
|
|
12950
|
+
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, l = window.screenTop ? window.screenTop : window.screenY, g = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, f = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, P = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, j = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
|
|
12951
|
+
return (!k || k < 0 || k > g) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Rt.POPUP_WIDTH), (!E || E < 0 || E > f) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Rt.POPUP_HEIGHT), (!P || P < 0 || P > f) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), P = Math.max(0, f / 2 - Rt.POPUP_HEIGHT / 2 + l)), (!j || j < 0 || j > g) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), j = Math.max(0, g / 2 - Rt.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + P + ", left=" + j + ", scrollbars=yes");
|
|
12952
12952
|
}, e.prototype.unloadWindow = function(t) {
|
|
12953
12953
|
this.browserStorage.cleanRequestByInteractionType(W.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
12954
12954
|
}, e.prototype.cleanPopup = function(t) {
|
|
@@ -13011,9 +13011,9 @@ function bs(n, e) {
|
|
|
13011
13011
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
13012
13012
|
loggerCallback: function() {
|
|
13013
13013
|
},
|
|
13014
|
-
logLevel:
|
|
13014
|
+
logLevel: De.Info,
|
|
13015
13015
|
piiLoggingEnabled: !1
|
|
13016
|
-
}, p = $($({},
|
|
13016
|
+
}, p = $($({}, gi), {
|
|
13017
13017
|
loggerOptions: u,
|
|
13018
13018
|
networkClient: e ? Ae.getBrowserNetworkClient() : as,
|
|
13019
13019
|
navigationClient: new _s(),
|
|
@@ -13032,7 +13032,7 @@ function bs(n, e) {
|
|
|
13032
13032
|
useMsrCrypto: !1,
|
|
13033
13033
|
entropy: void 0
|
|
13034
13034
|
}
|
|
13035
|
-
}), l = $($({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }),
|
|
13035
|
+
}), l = $($({}, o), { loggerOptions: (o == null ? void 0 : o.loggerOptions) || u }), g = {
|
|
13036
13036
|
application: {
|
|
13037
13037
|
appName: w.EMPTY_STRING,
|
|
13038
13038
|
appVersion: w.EMPTY_STRING
|
|
@@ -13041,7 +13041,7 @@ function bs(n, e) {
|
|
|
13041
13041
|
auth: $($({}, a), t),
|
|
13042
13042
|
cache: $($({}, s), r),
|
|
13043
13043
|
system: $($({}, p), l),
|
|
13044
|
-
telemetry: $($({},
|
|
13044
|
+
telemetry: $($({}, g), i)
|
|
13045
13045
|
};
|
|
13046
13046
|
return f;
|
|
13047
13047
|
}
|
|
@@ -13049,7 +13049,7 @@ function bs(n, e) {
|
|
|
13049
13049
|
var Ei = (
|
|
13050
13050
|
/** @class */
|
|
13051
13051
|
function(n) {
|
|
13052
|
-
|
|
13052
|
+
Qe(e, n);
|
|
13053
13053
|
function e(t, r, o, i, a, s) {
|
|
13054
13054
|
var u = n.call(this, t, r, o, i, s) || this;
|
|
13055
13055
|
return u.navigateFrameWait = a.navigateFrameWait, u.pollIntervalMilliseconds = a.pollIntervalMilliseconds, u;
|
|
@@ -13078,13 +13078,13 @@ var Ei = (
|
|
|
13078
13078
|
o.removeHiddenIframe(t), clearInterval(p), a(q.createMonitorIframeTimeoutError());
|
|
13079
13079
|
return;
|
|
13080
13080
|
}
|
|
13081
|
-
var l = w.EMPTY_STRING,
|
|
13081
|
+
var l = w.EMPTY_STRING, g = t.contentWindow;
|
|
13082
13082
|
try {
|
|
13083
|
-
l =
|
|
13083
|
+
l = g ? g.location.href : w.EMPTY_STRING;
|
|
13084
13084
|
} catch {
|
|
13085
13085
|
}
|
|
13086
13086
|
if (!V.isEmpty(l)) {
|
|
13087
|
-
var f =
|
|
13087
|
+
var f = g ? g.location.hash : w.EMPTY_STRING;
|
|
13088
13088
|
if (le.hashContainsKnownProperties(f)) {
|
|
13089
13089
|
o.removeHiddenIframe(t), clearInterval(p), i(f);
|
|
13090
13090
|
return;
|
|
@@ -13119,9 +13119,9 @@ var Ei = (
|
|
|
13119
13119
|
var ks = (
|
|
13120
13120
|
/** @class */
|
|
13121
13121
|
function(n) {
|
|
13122
|
-
|
|
13123
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
13124
|
-
var k = n.call(this, t, r, o, i, a, s, p,
|
|
13122
|
+
Qe(e, n);
|
|
13123
|
+
function e(t, r, o, i, a, s, u, p, l, g, f) {
|
|
13124
|
+
var k = n.call(this, t, r, o, i, a, s, p, g, f) || this;
|
|
13125
13125
|
return k.apiId = u, k.nativeStorage = l, k;
|
|
13126
13126
|
}
|
|
13127
13127
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -13167,7 +13167,7 @@ var ks = (
|
|
|
13167
13167
|
return Promise.reject(q.createSilentLogoutUnsupportedError());
|
|
13168
13168
|
}, e.prototype.silentTokenHelper = function(t, r) {
|
|
13169
13169
|
return O(this, void 0, void 0, function() {
|
|
13170
|
-
var o, i, a, s, u, p, l,
|
|
13170
|
+
var o, i, a, s, u, p, l, g, f, k = this;
|
|
13171
13171
|
return L(this, function(E) {
|
|
13172
13172
|
switch (E.label) {
|
|
13173
13173
|
case 0:
|
|
@@ -13182,7 +13182,7 @@ var ks = (
|
|
|
13182
13182
|
if (u = E.sent(), p = le.getDeserializedHash(u), l = this.validateAndExtractStateFromHash(p, W.Silent, o.correlationId), p.accountId) {
|
|
13183
13183
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
13184
13184
|
throw q.createNativeConnectionNotEstablishedError();
|
|
13185
|
-
return
|
|
13185
|
+
return g = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), f = tn.parseRequestState(this.browserCrypto, l).userRequestState, [2, g.acquireToken($($({}, r), { state: f, prompt: r.prompt || Ze.NONE })).finally(function() {
|
|
13186
13186
|
k.browserStorage.cleanRequestByState(l);
|
|
13187
13187
|
})];
|
|
13188
13188
|
}
|
|
@@ -13197,7 +13197,7 @@ var ks = (
|
|
|
13197
13197
|
var Cs = (
|
|
13198
13198
|
/** @class */
|
|
13199
13199
|
function(n) {
|
|
13200
|
-
|
|
13200
|
+
Qe(e, n);
|
|
13201
13201
|
function e() {
|
|
13202
13202
|
return n !== null && n.apply(this, arguments) || this;
|
|
13203
13203
|
}
|
|
@@ -13283,9 +13283,9 @@ var Es = (
|
|
|
13283
13283
|
if (!t)
|
|
13284
13284
|
return;
|
|
13285
13285
|
var r = JSON.parse(t);
|
|
13286
|
-
if (typeof r != "object" || !
|
|
13286
|
+
if (typeof r != "object" || !Ge.isAccountEntity(r))
|
|
13287
13287
|
return;
|
|
13288
|
-
var o = ot.toObject(new
|
|
13288
|
+
var o = ot.toObject(new Ge(), r), i = o.getAccountInfo();
|
|
13289
13289
|
!e.oldValue && e.newValue ? (this.logger.info("Account was added to cache in a different window"), this.emitEvent(ne.ACCOUNT_ADDED, void 0, i)) : !e.newValue && e.oldValue && (this.logger.info("Account was removed from cache in a different window"), this.emitEvent(ne.ACCOUNT_REMOVED, void 0, i));
|
|
13290
13290
|
} catch {
|
|
13291
13291
|
return;
|
|
@@ -13294,7 +13294,7 @@ var Es = (
|
|
|
13294
13294
|
}()
|
|
13295
13295
|
);
|
|
13296
13296
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
13297
|
-
var
|
|
13297
|
+
var $e = (
|
|
13298
13298
|
/** @class */
|
|
13299
13299
|
function() {
|
|
13300
13300
|
function n() {
|
|
@@ -13316,7 +13316,7 @@ var Ti = (
|
|
|
13316
13316
|
return n.prototype.generateGuid = function() {
|
|
13317
13317
|
try {
|
|
13318
13318
|
var e = new Uint8Array(16);
|
|
13319
|
-
return this.cryptoObj.getRandomValues(e), e[6] |= 64, e[6] &= 79, e[8] |= 128, e[8] &= 191,
|
|
13319
|
+
return this.cryptoObj.getRandomValues(e), e[6] |= 64, e[6] &= 79, e[8] |= 128, e[8] &= 191, $e.decimalToHex(e[0]) + $e.decimalToHex(e[1]) + $e.decimalToHex(e[2]) + $e.decimalToHex(e[3]) + "-" + $e.decimalToHex(e[4]) + $e.decimalToHex(e[5]) + "-" + $e.decimalToHex(e[6]) + $e.decimalToHex(e[7]) + "-" + $e.decimalToHex(e[8]) + $e.decimalToHex(e[9]) + "-" + $e.decimalToHex(e[10]) + $e.decimalToHex(e[11]) + $e.decimalToHex(e[12]) + $e.decimalToHex(e[13]) + $e.decimalToHex(e[14]) + $e.decimalToHex(e[15]);
|
|
13320
13320
|
} catch {
|
|
13321
13321
|
for (var t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", r = "0123456789abcdef", o = 0, i = w.EMPTY_STRING, a = 0; a < 36; a++)
|
|
13322
13322
|
t[a] !== "-" && t[a] !== "4" && (o = Math.random() * 16 | 0), t[a] === "x" ? i += r[o] : t[a] === "y" ? (o &= 3, o |= 8, i += r[o]) : i += t[a];
|
|
@@ -13418,8 +13418,8 @@ var Ts = (
|
|
|
13418
13418
|
var r = this.base64DecToArr(t);
|
|
13419
13419
|
return nn.utf8ArrToString(r);
|
|
13420
13420
|
}, n.prototype.base64DecToArr = function(e, t) {
|
|
13421
|
-
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, l = 0,
|
|
13422
|
-
if (u =
|
|
13421
|
+
for (var r = e.replace(/[^A-Za-z0-9\+\/]/g, w.EMPTY_STRING), o = r.length, i = t ? Math.ceil((o * 3 + 1 >>> 2) / t) * t : o * 3 + 1 >>> 2, a = new Uint8Array(i), s = void 0, u = void 0, p = 0, l = 0, g = 0; g < o; g++)
|
|
13422
|
+
if (u = g & 3, p |= this.b64ToUint6(r.charCodeAt(g)) << 18 - 6 * u, u === 3 || o - g === 1) {
|
|
13423
13423
|
for (s = 0; s < 3 && l < i; s++, l++)
|
|
13424
13424
|
a[l] = p >>> (16 >>> s & 24) & 255;
|
|
13425
13425
|
p = 0;
|
|
@@ -13612,10 +13612,10 @@ var Ps = (
|
|
|
13612
13612
|
return L(this, function(s) {
|
|
13613
13613
|
return i = nn.getSortedObjectString(e), a = nn.stringToArrayBuffer(i), [2, new Promise(function(u, p) {
|
|
13614
13614
|
var l = window.msCrypto.subtle.importKey(jn, a, t, r, o);
|
|
13615
|
-
l.addEventListener("complete", function(
|
|
13616
|
-
u(
|
|
13617
|
-
}), l.addEventListener("error", function(
|
|
13618
|
-
p(
|
|
13615
|
+
l.addEventListener("complete", function(g) {
|
|
13616
|
+
u(g.target.result);
|
|
13617
|
+
}), l.addEventListener("error", function(g) {
|
|
13618
|
+
p(g);
|
|
13619
13619
|
});
|
|
13620
13620
|
})];
|
|
13621
13621
|
});
|
|
@@ -14083,31 +14083,31 @@ var xs = (
|
|
|
14083
14083
|
var t;
|
|
14084
14084
|
return O(this, void 0, void 0, function() {
|
|
14085
14085
|
var r, o, i, a, s, u, p, l;
|
|
14086
|
-
return L(this, function(
|
|
14087
|
-
switch (
|
|
14086
|
+
return L(this, function(g) {
|
|
14087
|
+
switch (g.label) {
|
|
14088
14088
|
case 0:
|
|
14089
14089
|
return r = (t = this.performanceClient) === null || t === void 0 ? void 0 : t.startMeasurement(A.CryptoOptsGetPublicKeyThumbprint, e.correlationId), [4, this.browserCrypto.generateKeyPair(n.EXTRACTABLE, n.POP_KEY_USAGES)];
|
|
14090
14090
|
case 1:
|
|
14091
|
-
return o =
|
|
14091
|
+
return o = g.sent(), [4, this.browserCrypto.exportJwk(o.publicKey)];
|
|
14092
14092
|
case 2:
|
|
14093
|
-
return i =
|
|
14093
|
+
return i = g.sent(), a = {
|
|
14094
14094
|
e: i.e,
|
|
14095
14095
|
kty: i.kty,
|
|
14096
14096
|
n: i.n
|
|
14097
14097
|
}, s = nn.getSortedObjectString(a), [4, this.hashString(s)];
|
|
14098
14098
|
case 3:
|
|
14099
|
-
return u =
|
|
14099
|
+
return u = g.sent(), [4, this.browserCrypto.exportJwk(o.privateKey)];
|
|
14100
14100
|
case 4:
|
|
14101
|
-
return p =
|
|
14101
|
+
return p = g.sent(), [4, this.browserCrypto.importJwk(p, !1, ["sign"])];
|
|
14102
14102
|
case 5:
|
|
14103
|
-
return l =
|
|
14103
|
+
return l = g.sent(), [4, this.cache.asymmetricKeys.setItem(u, {
|
|
14104
14104
|
privateKey: l,
|
|
14105
14105
|
publicKey: o.publicKey,
|
|
14106
14106
|
requestMethod: e.resourceRequestMethod,
|
|
14107
14107
|
requestUri: e.resourceRequestUri
|
|
14108
14108
|
})];
|
|
14109
14109
|
case 6:
|
|
14110
|
-
return
|
|
14110
|
+
return g.sent(), r && r.endMeasurement({
|
|
14111
14111
|
success: !0
|
|
14112
14112
|
}), [2, u];
|
|
14113
14113
|
}
|
|
@@ -14141,7 +14141,7 @@ var xs = (
|
|
|
14141
14141
|
}, n.prototype.signJwt = function(e, t, r) {
|
|
14142
14142
|
var o;
|
|
14143
14143
|
return O(this, void 0, void 0, function() {
|
|
14144
|
-
var i, a, s, u, p, l,
|
|
14144
|
+
var i, a, s, u, p, l, g, f, k, E, P, j, K;
|
|
14145
14145
|
return L(this, function(z) {
|
|
14146
14146
|
switch (z.label) {
|
|
14147
14147
|
case 0:
|
|
@@ -14151,9 +14151,9 @@ var xs = (
|
|
|
14151
14151
|
throw q.createSigningKeyNotFoundInStorageError(t);
|
|
14152
14152
|
return [4, this.browserCrypto.exportJwk(a.publicKey)];
|
|
14153
14153
|
case 2:
|
|
14154
|
-
return s = z.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = ss.getShrHeaderString({ kid: p, alg: s.alg }),
|
|
14154
|
+
return s = z.sent(), u = nn.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), l = ss.getShrHeaderString({ kid: p, alg: s.alg }), g = this.b64Encode.urlEncode(l), e.cnf = {
|
|
14155
14155
|
jwk: JSON.parse(u)
|
|
14156
|
-
}, f = this.b64Encode.urlEncode(JSON.stringify(e)), k =
|
|
14156
|
+
}, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = g + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
|
|
14157
14157
|
case 3:
|
|
14158
14158
|
return P = z.sent(), j = this.b64Encode.urlEncodeArr(new Uint8Array(P)), K = k + "." + j, i && i.endMeasurement({
|
|
14159
14159
|
success: !0
|
|
@@ -14230,7 +14230,7 @@ var Yo = (
|
|
|
14230
14230
|
var Us = (
|
|
14231
14231
|
/** @class */
|
|
14232
14232
|
function(n) {
|
|
14233
|
-
|
|
14233
|
+
Qe(e, n);
|
|
14234
14234
|
function e(t, r, o, i, a, s, u) {
|
|
14235
14235
|
var p = n.call(this, t, r, o, i, a, s) || this;
|
|
14236
14236
|
return p.browserCrypto = new Ii(p.logger, u), p.guidGenerator = new Ti(p.browserCrypto), p;
|
|
@@ -14322,9 +14322,9 @@ var Bs = (
|
|
|
14322
14322
|
return this.generateAuthenticationResult(e, o, i, a);
|
|
14323
14323
|
}, n.prototype.loadAccount = function(e, t, r, o, i) {
|
|
14324
14324
|
var a;
|
|
14325
|
-
if (i ? a = i : o !== void 0 && r && (a =
|
|
14325
|
+
if (i ? a = i : o !== void 0 && r && (a = Ge.generateHomeAccountId(r, o, this.logger, this.cryptoObj, e)), !a)
|
|
14326
14326
|
throw q.createUnableToLoadTokenError("Unexpected missing homeAccountId");
|
|
14327
|
-
var s = r ?
|
|
14327
|
+
var s = r ? Ge.createAccount(r, a, e, void 0, void 0, void 0, t) : Ge.createGenericAccount(a, e, void 0, void 0, void 0, t);
|
|
14328
14328
|
if (this.isBrowserEnvironment)
|
|
14329
14329
|
return this.logger.verbose("TokenCache - loading account"), this.storage.setAccount(s), s;
|
|
14330
14330
|
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
@@ -14352,8 +14352,8 @@ var Bs = (
|
|
|
14352
14352
|
return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
|
|
14353
14353
|
throw q.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
14354
14354
|
}, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
|
|
14355
|
-
var i, a, s, u = w.EMPTY_STRING, p = [], l = null,
|
|
14356
|
-
r != null && r.accessToken && (u = r.accessToken.secret, p = Xe.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3),
|
|
14355
|
+
var i, a, s, u = w.EMPTY_STRING, p = [], l = null, g;
|
|
14356
|
+
r != null && r.accessToken && (u = r.accessToken.secret, p = Xe.fromString(r.accessToken.target).asArray(), l = new Date(Number(r.accessToken.expiresOn) * 1e3), g = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
|
|
14357
14357
|
var f = (t == null ? void 0 : t.claims.oid) || (t == null ? void 0 : t.claims.sub) || w.EMPTY_STRING, k = (t == null ? void 0 : t.claims.tid) || w.EMPTY_STRING;
|
|
14358
14358
|
return {
|
|
14359
14359
|
authority: o ? o.canonicalAuthority : w.EMPTY_STRING,
|
|
@@ -14368,7 +14368,7 @@ var Bs = (
|
|
|
14368
14368
|
expiresOn: l,
|
|
14369
14369
|
correlationId: e.correlationId || w.EMPTY_STRING,
|
|
14370
14370
|
requestId: w.EMPTY_STRING,
|
|
14371
|
-
extExpiresOn:
|
|
14371
|
+
extExpiresOn: g,
|
|
14372
14372
|
familyId: w.EMPTY_STRING,
|
|
14373
14373
|
tokenType: ((i = r == null ? void 0 : r.accessToken) === null || i === void 0 ? void 0 : i.tokenType) || w.EMPTY_STRING,
|
|
14374
14374
|
state: w.EMPTY_STRING,
|
|
@@ -14384,7 +14384,7 @@ var Bs = (
|
|
|
14384
14384
|
var Ds = (
|
|
14385
14385
|
/** @class */
|
|
14386
14386
|
function(n) {
|
|
14387
|
-
|
|
14387
|
+
Qe(e, n);
|
|
14388
14388
|
function e(t) {
|
|
14389
14389
|
var r = n.call(this, t) || this;
|
|
14390
14390
|
return r.includeRedirectUri = !1, r;
|
|
@@ -14396,9 +14396,9 @@ var Ds = (
|
|
|
14396
14396
|
var Hs = (
|
|
14397
14397
|
/** @class */
|
|
14398
14398
|
function(n) {
|
|
14399
|
-
|
|
14400
|
-
function e(t, r, o, i, a, s, u, p, l,
|
|
14401
|
-
var f = n.call(this, t, r, o, i, a, s, p, l,
|
|
14399
|
+
Qe(e, n);
|
|
14400
|
+
function e(t, r, o, i, a, s, u, p, l, g) {
|
|
14401
|
+
var f = n.call(this, t, r, o, i, a, s, p, l, g) || this;
|
|
14402
14402
|
return f.apiId = u, f;
|
|
14403
14403
|
}
|
|
14404
14404
|
return e.prototype.acquireToken = function(t) {
|
|
@@ -14441,7 +14441,7 @@ var js = (
|
|
|
14441
14441
|
/** @class */
|
|
14442
14442
|
function() {
|
|
14443
14443
|
function n(e) {
|
|
14444
|
-
this.isBrowserEnvironment = typeof window < "u", this.config = bs(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new
|
|
14444
|
+
this.isBrowserEnvironment = typeof window < "u", this.config = bs(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new mo(this.config.system.loggerOptions, Gr, nr), this.networkClient = this.config.system.networkClient, this.navigationClient = this.config.system.navigationClient, this.redirectResponse = /* @__PURE__ */ new Map(), this.hybridAuthCodeResponses = /* @__PURE__ */ new Map(), this.performanceClient = this.isBrowserEnvironment ? new Us(this.config.auth.clientId, this.config.auth.authority, this.logger, Gr, nr, this.config.telemetry.application, this.config.system.cryptoOptions) : new ls(this.config.auth.clientId, this.config.auth.authority, this.logger, Gr, nr, this.config.telemetry.application), this.browserCrypto = this.isBrowserEnvironment ? new xs(this.logger, this.performanceClient, this.config.system.cryptoOptions) : Cr, this.eventHandler = new Es(this.logger, this.browserCrypto), this.browserStorage = this.isBrowserEnvironment ? new ao(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : ps(this.config.auth.clientId, this.logger);
|
|
14445
14445
|
var t = {
|
|
14446
14446
|
cacheLocation: Oe.MemoryStorage,
|
|
14447
14447
|
temporaryCacheLocation: Oe.MemoryStorage,
|
|
@@ -14487,7 +14487,7 @@ var js = (
|
|
|
14487
14487
|
}, n.prototype.handleRedirectPromise = function(e) {
|
|
14488
14488
|
return O(this, void 0, void 0, function() {
|
|
14489
14489
|
var t, r, o, i, a, s, u, p, l = this;
|
|
14490
|
-
return L(this, function(
|
|
14490
|
+
return L(this, function(g) {
|
|
14491
14491
|
return this.logger.verbose("handleRedirectPromise called"), Ae.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), t = this.getAllAccounts(), this.isBrowserEnvironment ? (r = e || w.EMPTY_STRING, o = this.redirectResponse.get(r), typeof o > "u" ? (this.eventHandler.emitEvent(ne.HANDLE_REDIRECT_START, W.Redirect), this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"), i = this.browserStorage.getCachedNativeRequest(), a = void 0, i && Sn.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !e ? (this.logger.trace("handleRedirectPromise - acquiring token from native platform"), s = new Bn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, i.accountId, this.nativeInternalStorage, i.correlationId), a = s.handleRedirectPromise()) : (this.logger.trace("handleRedirectPromise - acquiring token from web flow"), u = this.browserStorage.getTemporaryCache(ue.CORRELATION_ID, !0) || w.EMPTY_STRING, p = this.createRedirectClient(u), a = p.handleRedirectPromise(e)), o = a.then(function(f) {
|
|
14492
14492
|
if (f) {
|
|
14493
14493
|
var k = t.length < l.getAllAccounts().length;
|
|
@@ -14592,11 +14592,11 @@ var js = (
|
|
|
14592
14592
|
}
|
|
14593
14593
|
throw p;
|
|
14594
14594
|
}) : (a = this.createSilentIframeClient(o.correlationId), i = a.acquireToken(o)), [2, i.then(function(p) {
|
|
14595
|
-
var l,
|
|
14595
|
+
var l, g;
|
|
14596
14596
|
return s.eventHandler.emitEvent(ne.SSO_SILENT_SUCCESS, W.Silent, p), (l = s.ssoSilentMeasurement) === null || l === void 0 || l.addStaticFields({
|
|
14597
14597
|
accessTokenSize: p.accessToken.length,
|
|
14598
14598
|
idTokenSize: p.idToken.length
|
|
14599
|
-
}), (
|
|
14599
|
+
}), (g = s.ssoSilentMeasurement) === null || g === void 0 || g.endMeasurement({
|
|
14600
14600
|
success: !0,
|
|
14601
14601
|
isNativeBroker: p.fromNativeBroker,
|
|
14602
14602
|
requestId: p.requestId
|
|
@@ -14811,9 +14811,9 @@ var js = (
|
|
|
14811
14811
|
var t = e.account || this.browserStorage.getAccountInfoByHints(e.loginHint, e.sid) || this.getActiveAccount();
|
|
14812
14812
|
return t && t.nativeAccountId || "";
|
|
14813
14813
|
}, n.prototype.createPopupClient = function(e) {
|
|
14814
|
-
return new ms(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14815
|
-
}, n.prototype.createRedirectClient = function(e) {
|
|
14816
14814
|
return new gs(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14815
|
+
}, n.prototype.createRedirectClient = function(e) {
|
|
14816
|
+
return new ms(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14817
14817
|
}, n.prototype.createSilentIframeClient = function(e) {
|
|
14818
14818
|
return new ks(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.ssoSilent, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, e);
|
|
14819
14819
|
}, n.prototype.createSilentCacheClient = function(e) {
|
|
@@ -14855,7 +14855,7 @@ var js = (
|
|
|
14855
14855
|
var Fs = (
|
|
14856
14856
|
/** @class */
|
|
14857
14857
|
function(n) {
|
|
14858
|
-
|
|
14858
|
+
Qe(e, n);
|
|
14859
14859
|
function e(t) {
|
|
14860
14860
|
var r = n.call(this, t) || this;
|
|
14861
14861
|
return r.astsAsyncMeasurement = void 0, r.activeSilentTokenRequests = /* @__PURE__ */ new Map(), r.trackPageVisibility = r.trackPageVisibility.bind(r), r;
|
|
@@ -14873,7 +14873,7 @@ var Fs = (
|
|
|
14873
14873
|
}, e.prototype.acquireTokenSilent = function(t) {
|
|
14874
14874
|
return O(this, void 0, void 0, function() {
|
|
14875
14875
|
var r, o, i, a, s, u, p, l = this;
|
|
14876
|
-
return L(this, function(
|
|
14876
|
+
return L(this, function(g) {
|
|
14877
14877
|
if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(A.AcquireTokenSilent, r), o.addStaticFields({
|
|
14878
14878
|
cacheLookupPolicy: t.cacheLookupPolicy
|
|
14879
14879
|
}), this.preflightBrowserEnvironmentCheck(W.Silent), this.logger.verbose("acquireTokenSilent called", r), i = t.account || this.getActiveAccount(), !i)
|
|
@@ -14917,8 +14917,8 @@ var Fs = (
|
|
|
14917
14917
|
var o;
|
|
14918
14918
|
return O(this, void 0, void 0, function() {
|
|
14919
14919
|
var i, a, s, u, p, l = this;
|
|
14920
|
-
return L(this, function(
|
|
14921
|
-
switch (
|
|
14920
|
+
return L(this, function(g) {
|
|
14921
|
+
switch (g.label) {
|
|
14922
14922
|
case 0:
|
|
14923
14923
|
return this.performanceClient.addQueueMeasurement(A.AcquireTokenSilentAsync, t.correlationId), this.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_START, W.Silent, t), this.astsAsyncMeasurement = this.performanceClient.startMeasurement(A.AcquireTokenSilentAsync, t.correlationId), (o = this.astsAsyncMeasurement) === null || o === void 0 || o.increment({
|
|
14924
14924
|
visibilityChangeCount: 0
|
|
@@ -14935,7 +14935,7 @@ var Fs = (
|
|
|
14935
14935
|
case 1:
|
|
14936
14936
|
return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"), s = this.createSilentCacheClient(t.correlationId), this.performanceClient.setPreQueueTime(A.InitializeSilentRequest, t.correlationId), [4, s.initializeSilentRequest(t, r)];
|
|
14937
14937
|
case 2:
|
|
14938
|
-
u =
|
|
14938
|
+
u = g.sent(), p = $($({}, t), {
|
|
14939
14939
|
// set the request's CacheLookupPolicy to Default if it was not optionally passed in
|
|
14940
14940
|
cacheLookupPolicy: t.cacheLookupPolicy || it.Default
|
|
14941
14941
|
}), this.performanceClient.setPreQueueTime(A.AcquireTokenFromCache, u.correlationId), i = this.acquireTokenFromCache(s, u, p).catch(function(f) {
|
|
@@ -14947,7 +14947,7 @@ var Fs = (
|
|
|
14947
14947
|
throw k;
|
|
14948
14948
|
return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
|
|
14949
14949
|
});
|
|
14950
|
-
}),
|
|
14950
|
+
}), g.label = 3;
|
|
14951
14951
|
case 3:
|
|
14952
14952
|
return [2, i.then(function(f) {
|
|
14953
14953
|
var k;
|
|
@@ -15056,7 +15056,7 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15056
15056
|
return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
|
|
15057
15057
|
if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
|
|
15058
15058
|
const [i, a] = await fe(
|
|
15059
|
-
|
|
15059
|
+
Je.microsoftSDK(r, this.$storex)
|
|
15060
15060
|
);
|
|
15061
15061
|
if (i)
|
|
15062
15062
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
|
|
@@ -15129,8 +15129,8 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15129
15129
|
t.src = "data:image/jpeg;base64," + n, t.onload = () => {
|
|
15130
15130
|
const i = t.width, a = t.width / 1.65, s = 0, u = t.height / 2 - a / 2, p = i, l = a;
|
|
15131
15131
|
r.width = p, r.height = l, o.drawImage(t, s, u, i, a, 0, 0, p, l);
|
|
15132
|
-
const
|
|
15133
|
-
return e(
|
|
15132
|
+
const g = r.toDataURL();
|
|
15133
|
+
return e(g), g;
|
|
15134
15134
|
};
|
|
15135
15135
|
},
|
|
15136
15136
|
generateRandomString(n) {
|
|
@@ -15187,7 +15187,7 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15187
15187
|
return this.errorHandler(e);
|
|
15188
15188
|
localStorage.removeItem("pkce_code_verifier");
|
|
15189
15189
|
let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
|
|
15190
|
-
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await fe(
|
|
15190
|
+
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await fe(Je.oktaSDK(r, this.$storex)), e)
|
|
15191
15191
|
return this.oktaLoad = !1, F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
|
|
15192
15192
|
if (t.data.success) {
|
|
15193
15193
|
if (this.display === "popup")
|
|
@@ -15218,7 +15218,7 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15218
15218
|
const a = new URLSearchParams(e);
|
|
15219
15219
|
t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
|
|
15220
15220
|
}
|
|
15221
|
-
window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.
|
|
15221
|
+
window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isiOS && await yr.close(), F.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), F.$emit("ssoEvent", { name: "setLoading", data: !1 }));
|
|
15222
15222
|
}
|
|
15223
15223
|
}
|
|
15224
15224
|
}, xr = {
|
|
@@ -15260,7 +15260,7 @@ const Ks = ar("MsAuthPlugin", {
|
|
|
15260
15260
|
if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
|
|
15261
15261
|
window.opener.postMessage(e, location.origin), window.close();
|
|
15262
15262
|
else {
|
|
15263
|
-
if (this.isNative && this.
|
|
15263
|
+
if (this.isNative && this.isiOS && await yr.close(), F.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
|
|
15264
15264
|
if (this.display === "popup")
|
|
15265
15265
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
|
|
15266
15266
|
await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
|
|
@@ -15317,7 +15317,7 @@ var Ai = { exports: {} };
|
|
|
15317
15317
|
var G;
|
|
15318
15318
|
return T.prototype = D, G = new T(), T.prototype = null, G;
|
|
15319
15319
|
};
|
|
15320
|
-
}(), p = {}, l = p.lib = {},
|
|
15320
|
+
}(), p = {}, l = p.lib = {}, g = l.Base = { extend: function(T) {
|
|
15321
15321
|
var D = u(this);
|
|
15322
15322
|
return T && D.mixIn(T), D.hasOwnProperty("init") && this.init !== D.init || (D.init = function() {
|
|
15323
15323
|
D.$super.init.apply(this, arguments);
|
|
@@ -15332,7 +15332,7 @@ var Ai = { exports: {} };
|
|
|
15332
15332
|
T.hasOwnProperty("toString") && (this.toString = T.toString);
|
|
15333
15333
|
}, clone: function() {
|
|
15334
15334
|
return this.init.prototype.extend(this);
|
|
15335
|
-
} }, f = l.WordArray =
|
|
15335
|
+
} }, f = l.WordArray = g.extend({ init: function(T, D) {
|
|
15336
15336
|
T = this.words = T || [], this.sigBytes = D ?? 4 * T.length;
|
|
15337
15337
|
}, toString: function(T) {
|
|
15338
15338
|
return (T || E).stringify(this);
|
|
@@ -15351,7 +15351,7 @@ var Ai = { exports: {} };
|
|
|
15351
15351
|
var T = this.words, D = this.sigBytes;
|
|
15352
15352
|
T[D >>> 2] &= 4294967295 << 32 - D % 4 * 8, T.length = a.ceil(D / 4);
|
|
15353
15353
|
}, clone: function() {
|
|
15354
|
-
var T =
|
|
15354
|
+
var T = g.clone.call(this);
|
|
15355
15355
|
return T.words = this.words.slice(0), T;
|
|
15356
15356
|
}, random: function(T) {
|
|
15357
15357
|
for (var D, G = [], J = function(ve) {
|
|
@@ -15394,7 +15394,7 @@ var Ai = { exports: {} };
|
|
|
15394
15394
|
}
|
|
15395
15395
|
}, parse: function(T) {
|
|
15396
15396
|
return P.parse(unescape(encodeURIComponent(T)));
|
|
15397
|
-
} }, K = l.BufferedBlockAlgorithm =
|
|
15397
|
+
} }, K = l.BufferedBlockAlgorithm = g.extend({ reset: function() {
|
|
15398
15398
|
this._data = new f.init(), this._nDataBytes = 0;
|
|
15399
15399
|
}, _append: function(T) {
|
|
15400
15400
|
typeof T == "string" && (T = j.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
|
|
@@ -15408,9 +15408,9 @@ var Ai = { exports: {} };
|
|
|
15408
15408
|
}
|
|
15409
15409
|
return new f.init(Ne, Se);
|
|
15410
15410
|
}, clone: function() {
|
|
15411
|
-
var T =
|
|
15411
|
+
var T = g.clone.call(this);
|
|
15412
15412
|
return T._data = this._data.clone(), T;
|
|
15413
|
-
}, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg:
|
|
15413
|
+
}, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg: g.extend(), init: function(T) {
|
|
15414
15414
|
this.cfg = this.cfg.extend(T), this.reset();
|
|
15415
15415
|
}, reset: function() {
|
|
15416
15416
|
K.reset.call(this), this._doReset();
|
|
@@ -15433,9 +15433,9 @@ var Ai = { exports: {} };
|
|
|
15433
15433
|
var i, a, s, u;
|
|
15434
15434
|
t.exports = (i = o(0), s = (a = i).lib.Base, u = a.enc.Utf8, void (a.algo.HMAC = s.extend({ init: function(p, l) {
|
|
15435
15435
|
p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
|
|
15436
|
-
var
|
|
15436
|
+
var g = p.blockSize, f = 4 * g;
|
|
15437
15437
|
l.sigBytes > f && (l = p.finalize(l)), l.clamp();
|
|
15438
|
-
for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, K = 0; K <
|
|
15438
|
+
for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, K = 0; K < g; K++)
|
|
15439
15439
|
P[K] ^= 1549556828, j[K] ^= 909522486;
|
|
15440
15440
|
k.sigBytes = E.sigBytes = f, this.reset();
|
|
15441
15441
|
}, reset: function() {
|
|
@@ -15444,28 +15444,28 @@ var Ai = { exports: {} };
|
|
|
15444
15444
|
}, update: function(p) {
|
|
15445
15445
|
return this._hasher.update(p), this;
|
|
15446
15446
|
}, finalize: function(p) {
|
|
15447
|
-
var l = this._hasher,
|
|
15448
|
-
return l.reset(), l.finalize(this._oKey.clone().concat(
|
|
15447
|
+
var l = this._hasher, g = l.finalize(p);
|
|
15448
|
+
return l.reset(), l.finalize(this._oKey.clone().concat(g));
|
|
15449
15449
|
} })));
|
|
15450
15450
|
}, function(t, r, o) {
|
|
15451
15451
|
var i;
|
|
15452
15452
|
t.exports = (i = o(0), i.enc.Hex);
|
|
15453
15453
|
}, function(t, r, o) {
|
|
15454
15454
|
var i, a, s, u, p, l;
|
|
15455
|
-
t.exports = (l = o(0), a = (i = l).lib, s = a.Base, u = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(
|
|
15456
|
-
this.high =
|
|
15457
|
-
} }), p.WordArray = s.extend({ init: function(
|
|
15458
|
-
|
|
15455
|
+
t.exports = (l = o(0), a = (i = l).lib, s = a.Base, u = a.WordArray, (p = i.x64 = {}).Word = s.extend({ init: function(g, f) {
|
|
15456
|
+
this.high = g, this.low = f;
|
|
15457
|
+
} }), p.WordArray = s.extend({ init: function(g, f) {
|
|
15458
|
+
g = this.words = g || [], this.sigBytes = f ?? 8 * g.length;
|
|
15459
15459
|
}, toX32: function() {
|
|
15460
|
-
for (var
|
|
15461
|
-
var P =
|
|
15460
|
+
for (var g = this.words, f = g.length, k = [], E = 0; E < f; E++) {
|
|
15461
|
+
var P = g[E];
|
|
15462
15462
|
k.push(P.high), k.push(P.low);
|
|
15463
15463
|
}
|
|
15464
15464
|
return u.create(k, this.sigBytes);
|
|
15465
15465
|
}, clone: function() {
|
|
15466
|
-
for (var
|
|
15466
|
+
for (var g = s.clone.call(this), f = g.words = this.words.slice(0), k = f.length, E = 0; E < k; E++)
|
|
15467
15467
|
f[E] = f[E].clone();
|
|
15468
|
-
return
|
|
15468
|
+
return g;
|
|
15469
15469
|
} }), l);
|
|
15470
15470
|
}, function(t, r, o) {
|
|
15471
15471
|
var i;
|
|
@@ -15499,8 +15499,8 @@ var Ai = { exports: {} };
|
|
|
15499
15499
|
default:
|
|
15500
15500
|
throw new Error("Unknown base32 variant: " + a);
|
|
15501
15501
|
}
|
|
15502
|
-
for (var u = i.length, p = 0, l = 0,
|
|
15503
|
-
l = l << 5 | o(s, i[k]), (p += 5) >= 8 && (f[
|
|
15502
|
+
for (var u = i.length, p = 0, l = 0, g = 0, f = new Uint8Array(5 * u / 8 | 0), k = 0; k < u; k++)
|
|
15503
|
+
l = l << 5 | o(s, i[k]), (p += 5) >= 8 && (f[g++] = l >>> p - 8 & 255, p -= 8);
|
|
15504
15504
|
return f.buffer;
|
|
15505
15505
|
};
|
|
15506
15506
|
}, function(t, r) {
|
|
@@ -15520,8 +15520,8 @@ var Ai = { exports: {} };
|
|
|
15520
15520
|
default:
|
|
15521
15521
|
throw new Error("Unknown base32 variant: " + i);
|
|
15522
15522
|
}
|
|
15523
|
-
for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength,
|
|
15524
|
-
for (k = k << 8 |
|
|
15523
|
+
for (var p = a.padding !== void 0 ? a.padding : u, l = o.byteLength, g = new Uint8Array(o), f = 0, k = 0, E = "", P = 0; P < l; P++)
|
|
15524
|
+
for (k = k << 8 | g[P], f += 8; f >= 5; )
|
|
15525
15525
|
E += s[k >>> f - 5 & 31], f -= 5;
|
|
15526
15526
|
if (f > 0 && (E += s[k << 5 - f & 31]), p)
|
|
15527
15527
|
for (; E.length % 8 != 0; )
|
|
@@ -15529,8 +15529,8 @@ var Ai = { exports: {} };
|
|
|
15529
15529
|
return E;
|
|
15530
15530
|
};
|
|
15531
15531
|
}, function(t, r, o) {
|
|
15532
|
-
var i, a, s, u, p, l,
|
|
15533
|
-
t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [],
|
|
15532
|
+
var i, a, s, u, p, l, g, f;
|
|
15533
|
+
t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [], g = p.SHA1 = u.extend({ _doReset: function() {
|
|
15534
15534
|
this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
15535
15535
|
}, _doProcessBlock: function(k, E) {
|
|
15536
15536
|
for (var P = this._hash.words, j = P[0], K = P[1], z = P[2], T = P[3], D = P[4], G = 0; G < 80; G++) {
|
|
@@ -15550,11 +15550,11 @@ var Ai = { exports: {} };
|
|
|
15550
15550
|
}, clone: function() {
|
|
15551
15551
|
var k = u.clone.call(this);
|
|
15552
15552
|
return k._hash = this._hash.clone(), k;
|
|
15553
|
-
} }), i.SHA1 = u._createHelper(
|
|
15553
|
+
} }), i.SHA1 = u._createHelper(g), i.HmacSHA1 = u._createHmacHelper(g), f.SHA1);
|
|
15554
15554
|
}, function(t, r, o) {
|
|
15555
15555
|
var i;
|
|
15556
15556
|
t.exports = (i = o(0), function(a) {
|
|
15557
|
-
var s = i, u = s.lib, p = u.WordArray, l = u.Hasher,
|
|
15557
|
+
var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, g = s.algo, f = [], k = [];
|
|
15558
15558
|
(function() {
|
|
15559
15559
|
function j(D) {
|
|
15560
15560
|
for (var G = a.sqrt(D), J = 2; J <= G; J++)
|
|
@@ -15568,14 +15568,14 @@ var Ai = { exports: {} };
|
|
|
15568
15568
|
for (var z = 2, T = 0; T < 64; )
|
|
15569
15569
|
j(z) && (T < 8 && (f[T] = K(a.pow(z, 0.5))), k[T] = K(a.pow(z, 1 / 3)), T++), z++;
|
|
15570
15570
|
})();
|
|
15571
|
-
var E = [], P =
|
|
15571
|
+
var E = [], P = g.SHA256 = l.extend({ _doReset: function() {
|
|
15572
15572
|
this._hash = new p.init(f.slice(0));
|
|
15573
15573
|
}, _doProcessBlock: function(j, K) {
|
|
15574
15574
|
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = 0; ye < 64; ye++) {
|
|
15575
15575
|
if (ye < 16)
|
|
15576
15576
|
E[ye] = 0 | j[K + ye];
|
|
15577
15577
|
else {
|
|
15578
|
-
var Ne = E[ye - 15], Qt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3,
|
|
15578
|
+
var Ne = E[ye - 15], Qt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3, Ye = E[ye - 2], an = (Ye << 15 | Ye >>> 17) ^ (Ye << 13 | Ye >>> 19) ^ Ye >>> 10;
|
|
15579
15579
|
E[ye] = Qt + E[ye - 7] + an + E[ye - 16];
|
|
15580
15580
|
}
|
|
15581
15581
|
var Mt = T & D ^ T & G ^ D & G, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), ct = Se + ((te << 26 | te >>> 6) ^ (te << 21 | te >>> 11) ^ (te << 7 | te >>> 25)) + (te & Z ^ ~te & ve) + k[ye] + E[ye];
|
|
@@ -15594,7 +15594,7 @@ var Ai = { exports: {} };
|
|
|
15594
15594
|
}, function(t, r, o) {
|
|
15595
15595
|
var i;
|
|
15596
15596
|
t.exports = (i = o(0), o(3), function() {
|
|
15597
|
-
var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray,
|
|
15597
|
+
var a = i, s = a.lib.Hasher, u = a.x64, p = u.Word, l = u.WordArray, g = a.algo;
|
|
15598
15598
|
function f() {
|
|
15599
15599
|
return p.create.apply(p, arguments);
|
|
15600
15600
|
}
|
|
@@ -15603,21 +15603,21 @@ var Ai = { exports: {} };
|
|
|
15603
15603
|
for (var j = 0; j < 80; j++)
|
|
15604
15604
|
E[j] = f();
|
|
15605
15605
|
})();
|
|
15606
|
-
var P =
|
|
15606
|
+
var P = g.SHA512 = s.extend({ _doReset: function() {
|
|
15607
15607
|
this._hash = new l.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
|
|
15608
15608
|
}, _doProcessBlock: function(j, K) {
|
|
15609
|
-
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high,
|
|
15609
|
+
for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high, Ye = D.low, an = G.high, Mt = G.low, Nt = J.high, ct = J.low, gn = te.high, sn = te.low, _n = Z.high, cn = Z.low, An = ve.high, Te = ve.low, Re = Se.high, Yt = Se.low, He = ye, Le = Ne, Ot = Qt, Et = Ye, et = an, lt = Mt, Wt = Nt, Lt = ct, We = gn, Pe = sn, ut = _n, zt = cn, xt = An, _t = Te, vn = Re, Tt = Yt, je = 0; je < 80; je++) {
|
|
15610
15610
|
var vt = E[je];
|
|
15611
15611
|
if (je < 16)
|
|
15612
15612
|
var ze = vt.high = 0 | j[K + 2 * je], dt = vt.low = 0 | j[K + 2 * je + 1];
|
|
15613
15613
|
else {
|
|
15614
|
-
var yn = E[je - 15], Fe = yn.high, Ut = yn.low, h = (Fe >>> 1 | Ut << 31) ^ (Fe >>> 8 | Ut << 24) ^ Fe >>> 7, c = (Ut >>> 1 | Fe << 31) ^ (Ut >>> 8 | Fe << 24) ^ (Ut >>> 7 | Fe << 25), d = E[je - 2],
|
|
15615
|
-
ze = (ze = (ze = h + we + ((dt = c +
|
|
15614
|
+
var yn = E[je - 15], Fe = yn.high, Ut = yn.low, h = (Fe >>> 1 | Ut << 31) ^ (Fe >>> 8 | Ut << 24) ^ Fe >>> 7, c = (Ut >>> 1 | Fe << 31) ^ (Ut >>> 8 | Fe << 24) ^ (Ut >>> 7 | Fe << 25), d = E[je - 2], m = d.high, b = d.low, S = (m >>> 19 | b << 13) ^ (m << 3 | b >>> 29) ^ m >>> 6, R = (b >>> 19 | m << 13) ^ (b << 3 | m >>> 29) ^ (b >>> 6 | m << 26), se = E[je - 7], we = se.high, ge = se.low, be = E[je - 16], he = be.high, cr = be.low;
|
|
15615
|
+
ze = (ze = (ze = h + we + ((dt = c + ge) >>> 0 < c >>> 0 ? 1 : 0)) + S + ((dt += R) >>> 0 < R >>> 0 ? 1 : 0)) + he + ((dt += cr) >>> 0 < cr >>> 0 ? 1 : 0), vt.high = ze, vt.low = dt;
|
|
15616
15616
|
}
|
|
15617
|
-
var St, Br =
|
|
15618
|
-
vn = xt, Tt = _t, xt = ut, _t = zt, ut =
|
|
15617
|
+
var St, Br = We & ut ^ ~We & xt, lr = Pe & zt ^ ~Pe & _t, Dr = He & Ot ^ He & et ^ Ot & et, Hr = Le & Et ^ Le & lt ^ Et & lt, ur = (He >>> 28 | Le << 4) ^ (He << 30 | Le >>> 2) ^ (He << 25 | Le >>> 7), dr = (Le >>> 28 | He << 4) ^ (Le << 30 | He >>> 2) ^ (Le << 25 | He >>> 7), jr = (We >>> 14 | Pe << 18) ^ (We >>> 18 | Pe << 14) ^ (We << 23 | Pe >>> 9), Fr = (Pe >>> 14 | We << 18) ^ (Pe >>> 18 | We << 14) ^ (Pe << 23 | We >>> 9), v = k[je], y = v.high, C = v.low, I = vn + jr + ((St = Tt + Fr) >>> 0 < Tt >>> 0 ? 1 : 0), M = dr + Hr;
|
|
15618
|
+
vn = xt, Tt = _t, xt = ut, _t = zt, ut = We, zt = Pe, We = Wt + (I = (I = (I = I + Br + ((St += lr) >>> 0 < lr >>> 0 ? 1 : 0)) + y + ((St += C) >>> 0 < C >>> 0 ? 1 : 0)) + ze + ((St += dt) >>> 0 < dt >>> 0 ? 1 : 0)) + ((Pe = Lt + St | 0) >>> 0 < Lt >>> 0 ? 1 : 0) | 0, Wt = et, Lt = lt, et = Ot, lt = Et, Ot = He, Et = Le, He = I + (ur + Dr + (M >>> 0 < dr >>> 0 ? 1 : 0)) + ((Le = St + M | 0) >>> 0 < St >>> 0 ? 1 : 0) | 0;
|
|
15619
15619
|
}
|
|
15620
|
-
Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0),
|
|
15620
|
+
Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0), Ye = D.low = Ye + Et, D.high = Qt + Ot + (Ye >>> 0 < Et >>> 0 ? 1 : 0), Mt = G.low = Mt + lt, G.high = an + et + (Mt >>> 0 < lt >>> 0 ? 1 : 0), ct = J.low = ct + Lt, J.high = Nt + Wt + (ct >>> 0 < Lt >>> 0 ? 1 : 0), sn = te.low = sn + Pe, te.high = gn + We + (sn >>> 0 < Pe >>> 0 ? 1 : 0), cn = Z.low = cn + zt, Z.high = _n + ut + (cn >>> 0 < zt >>> 0 ? 1 : 0), Te = ve.low = Te + _t, ve.high = An + xt + (Te >>> 0 < _t >>> 0 ? 1 : 0), Yt = Se.low = Yt + Tt, Se.high = Re + vn + (Yt >>> 0 < Tt >>> 0 ? 1 : 0);
|
|
15621
15621
|
}, _doFinalize: function() {
|
|
15622
15622
|
var j = this._data, K = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
|
|
15623
15623
|
return K[T >>> 5] |= 128 << 24 - T % 32, K[30 + (T + 128 >>> 10 << 5)] = Math.floor(z / 4294967296), K[31 + (T + 128 >>> 10 << 5)] = z, j.sigBytes = 4 * K.length, this._process(), this._hash.toX32();
|
|
@@ -15629,7 +15629,7 @@ var Ai = { exports: {} };
|
|
|
15629
15629
|
}(), i.SHA512);
|
|
15630
15630
|
}, function(t, r, o) {
|
|
15631
15631
|
o.r(r);
|
|
15632
|
-
var i, a = o(0), s = o.n(a), u = o(4), p = o.n(u), l = o(5),
|
|
15632
|
+
var i, a = o(0), s = o.n(a), u = o(4), p = o.n(u), l = o(5), g = o.n(l), f = o(6), k = o.n(f), E = o(2), P = o.n(E);
|
|
15633
15633
|
function j(v, y) {
|
|
15634
15634
|
var C = Object.keys(v);
|
|
15635
15635
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -15699,8 +15699,8 @@ var Ai = { exports: {} };
|
|
|
15699
15699
|
}
|
|
15700
15700
|
return v.type === "totp" && v.step && C.push("&period=".concat(v.step)), v.digits && C.push("&digits=".concat(v.digits)), v.algorithm && C.push("&algorithm=".concat(v.algorithm.toUpperCase())), v.issuer && C.push("&issuer=".concat(encodeURIComponent(v.issuer))), y.replace("{labelPrefix}", encodeURIComponent(v.issuer || v.accountName)).replace("{accountName}", encodeURIComponent(v.accountName)).replace("{secret}", v.secret).replace("{query}", C.join(""));
|
|
15701
15701
|
}
|
|
15702
|
-
function
|
|
15703
|
-
return (
|
|
15702
|
+
function Ye(v) {
|
|
15703
|
+
return (Ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
|
|
15704
15704
|
return typeof y;
|
|
15705
15705
|
} : function(y) {
|
|
15706
15706
|
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
@@ -15713,7 +15713,7 @@ var Ai = { exports: {} };
|
|
|
15713
15713
|
}
|
|
15714
15714
|
}
|
|
15715
15715
|
function Mt(v, y) {
|
|
15716
|
-
return !y ||
|
|
15716
|
+
return !y || Ye(y) !== "object" && typeof y != "function" ? function(C) {
|
|
15717
15717
|
if (C === void 0)
|
|
15718
15718
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15719
15719
|
return C;
|
|
@@ -15729,7 +15729,7 @@ var Ai = { exports: {} };
|
|
|
15729
15729
|
return C.__proto__ = I, C;
|
|
15730
15730
|
})(v, y);
|
|
15731
15731
|
}
|
|
15732
|
-
function
|
|
15732
|
+
function gn(v, y) {
|
|
15733
15733
|
var C = Object.keys(v);
|
|
15734
15734
|
if (Object.getOwnPropertySymbols) {
|
|
15735
15735
|
var I = Object.getOwnPropertySymbols(v);
|
|
@@ -15761,9 +15761,9 @@ var Ai = { exports: {} };
|
|
|
15761
15761
|
var y = function(C) {
|
|
15762
15762
|
for (var I = 1; I < arguments.length; I++) {
|
|
15763
15763
|
var M = arguments[I] != null ? arguments[I] : {};
|
|
15764
|
-
I % 2 ?
|
|
15764
|
+
I % 2 ? gn(Object(M), !0).forEach(function(H) {
|
|
15765
15765
|
sn(C, H, M[H]);
|
|
15766
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) :
|
|
15766
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(C, Object.getOwnPropertyDescriptors(M)) : gn(Object(M)).forEach(function(H) {
|
|
15767
15767
|
Object.defineProperty(C, H, Object.getOwnPropertyDescriptor(M, H));
|
|
15768
15768
|
});
|
|
15769
15769
|
}
|
|
@@ -15810,7 +15810,7 @@ var Ai = { exports: {} };
|
|
|
15810
15810
|
return !!ye(nt) && nt === Re(Bt, ln, qr);
|
|
15811
15811
|
}(M, H, de, this.allOptions());
|
|
15812
15812
|
} }, { key: "verify", value: function(M) {
|
|
15813
|
-
if (
|
|
15813
|
+
if (Ye(M) !== "object")
|
|
15814
15814
|
throw new Error("Expecting argument 0 of verify to be an object");
|
|
15815
15815
|
return this.check(M.token, M.secret, M.counter);
|
|
15816
15816
|
} }, { key: "keyuri", value: function(M, H, de, nt) {
|
|
@@ -15885,14 +15885,14 @@ var Ai = { exports: {} };
|
|
|
15885
15885
|
for (var y = 1; y < arguments.length; y++) {
|
|
15886
15886
|
var C = arguments[y] != null ? arguments[y] : {};
|
|
15887
15887
|
y % 2 ? Wt(Object(C), !0).forEach(function(I) {
|
|
15888
|
-
|
|
15888
|
+
We(v, I, C[I]);
|
|
15889
15889
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(C)) : Wt(Object(C)).forEach(function(I) {
|
|
15890
15890
|
Object.defineProperty(v, I, Object.getOwnPropertyDescriptor(C, I));
|
|
15891
15891
|
});
|
|
15892
15892
|
}
|
|
15893
15893
|
return v;
|
|
15894
15894
|
}
|
|
15895
|
-
function
|
|
15895
|
+
function We(v, y, C) {
|
|
15896
15896
|
return y in v ? Object.defineProperty(v, y, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : v[y] = C, v;
|
|
15897
15897
|
}
|
|
15898
15898
|
function Pe(v, y) {
|
|
@@ -16052,8 +16052,8 @@ var Ai = { exports: {} };
|
|
|
16052
16052
|
return C;
|
|
16053
16053
|
}(v) : y;
|
|
16054
16054
|
}
|
|
16055
|
-
function
|
|
16056
|
-
return (
|
|
16055
|
+
function m(v) {
|
|
16056
|
+
return (m = Object.setPrototypeOf ? Object.getPrototypeOf : function(y) {
|
|
16057
16057
|
return y.__proto__ || Object.getPrototypeOf(y);
|
|
16058
16058
|
})(v);
|
|
16059
16059
|
}
|
|
@@ -16097,7 +16097,7 @@ var Ai = { exports: {} };
|
|
|
16097
16097
|
function we(v, y) {
|
|
16098
16098
|
return y.keyEncoder(v, y.encoding);
|
|
16099
16099
|
}
|
|
16100
|
-
function
|
|
16100
|
+
function ge(v, y) {
|
|
16101
16101
|
return y.keyDecoder(v, y.encoding);
|
|
16102
16102
|
}
|
|
16103
16103
|
function be(v, y) {
|
|
@@ -16108,7 +16108,7 @@ var Ai = { exports: {} };
|
|
|
16108
16108
|
return function(M, H) {
|
|
16109
16109
|
if (!(M instanceof H))
|
|
16110
16110
|
throw new TypeError("Cannot call a class as a function");
|
|
16111
|
-
}(this, y), d(this,
|
|
16111
|
+
}(this, y), d(this, m(y).apply(this, arguments));
|
|
16112
16112
|
}
|
|
16113
16113
|
var C, I;
|
|
16114
16114
|
return function(M, H) {
|
|
@@ -16122,16 +16122,16 @@ var Ai = { exports: {} };
|
|
|
16122
16122
|
return se(this.options);
|
|
16123
16123
|
} }, { key: "generate", value: function(M) {
|
|
16124
16124
|
return function(H, de) {
|
|
16125
|
-
return Tt(
|
|
16125
|
+
return Tt(ge(H, de), de);
|
|
16126
16126
|
}(M, this.allOptions());
|
|
16127
16127
|
} }, { key: "checkDelta", value: function(M, H) {
|
|
16128
16128
|
return function(de, nt, Bt) {
|
|
16129
|
-
return dt(de,
|
|
16129
|
+
return dt(de, ge(nt, Bt), Bt);
|
|
16130
16130
|
}(M, H, this.allOptions());
|
|
16131
16131
|
} }, { key: "encode", value: function(M) {
|
|
16132
16132
|
return we(M, this.allOptions());
|
|
16133
16133
|
} }, { key: "decode", value: function(M) {
|
|
16134
|
-
return
|
|
16134
|
+
return ge(M, this.allOptions());
|
|
16135
16135
|
} }, { key: "generateSecret", value: function() {
|
|
16136
16136
|
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
|
|
16137
16137
|
return be(M, this.allOptions());
|
|
@@ -16142,7 +16142,7 @@ var Ai = { exports: {} };
|
|
|
16142
16142
|
case i.SHA1:
|
|
16143
16143
|
return p.a;
|
|
16144
16144
|
case i.SHA256:
|
|
16145
|
-
return
|
|
16145
|
+
return g.a;
|
|
16146
16146
|
case i.SHA512:
|
|
16147
16147
|
return k.a;
|
|
16148
16148
|
default:
|
|
@@ -16434,7 +16434,7 @@ const Ri = {
|
|
|
16434
16434
|
}, fc = /* @__PURE__ */ _("img", {
|
|
16435
16435
|
src: "https://cdn.tapni.co/icons/g-logo.png",
|
|
16436
16436
|
style: { position: "absolute", "margin-left": "-10px", padding: "8px 0", height: "100%" }
|
|
16437
|
-
}, null, -1),
|
|
16437
|
+
}, null, -1), mc = { key: 0 }, gc = {
|
|
16438
16438
|
key: 1,
|
|
16439
16439
|
class: "button--loading-black button__loader"
|
|
16440
16440
|
}, _c = /* @__PURE__ */ _("img", {
|
|
@@ -16478,7 +16478,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16478
16478
|
const a = Fn("router-link");
|
|
16479
16479
|
return N(), x("form", {
|
|
16480
16480
|
class: "page-login content-boxed content-boxed-padding",
|
|
16481
|
-
onSubmit: e[14] || (e[14] =
|
|
16481
|
+
onSubmit: e[14] || (e[14] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
16482
16482
|
autocomplete: "on",
|
|
16483
16483
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
16484
16484
|
}, [
|
|
@@ -16495,7 +16495,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16495
16495
|
Zs,
|
|
16496
16496
|
Ie(_("input", {
|
|
16497
16497
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.emailOrUsername = s),
|
|
16498
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
16498
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
16499
16499
|
}, ["prevent"]), ["space"])),
|
|
16500
16500
|
autocorrect: "off",
|
|
16501
16501
|
autocapitalize: "off",
|
|
@@ -16505,7 +16505,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16505
16505
|
placeholder: n.ssoLang[this.appLanguage].email_username,
|
|
16506
16506
|
required: ""
|
|
16507
16507
|
}, null, 40, ec), [
|
|
16508
|
-
[
|
|
16508
|
+
[mn, o.emailOrUsername]
|
|
16509
16509
|
]),
|
|
16510
16510
|
tc
|
|
16511
16511
|
]),
|
|
@@ -16552,7 +16552,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16552
16552
|
class: "button-center button button-90 google-button pointer"
|
|
16553
16553
|
}, [
|
|
16554
16554
|
fc,
|
|
16555
|
-
n.googleLoad ? (N(), x("span",
|
|
16555
|
+
n.googleLoad ? (N(), x("span", gc)) : (N(), x("span", mc, Q(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
|
|
16556
16556
|
])) : pe("", !0),
|
|
16557
16557
|
n.displayFacebookLogin ? (N(), x("a", {
|
|
16558
16558
|
key: 4,
|
|
@@ -16647,7 +16647,7 @@ function Fc(n, e, t, r, o, i) {
|
|
|
16647
16647
|
]))
|
|
16648
16648
|
], 36);
|
|
16649
16649
|
}
|
|
16650
|
-
const wo = /* @__PURE__ */
|
|
16650
|
+
const wo = /* @__PURE__ */ gt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16651
16651
|
__proto__: null,
|
|
16652
16652
|
default: wo
|
|
16653
16653
|
}, Symbol.toStringTag, { value: "Module" })), Kc = {
|
|
@@ -16758,10 +16758,10 @@ const wo = /* @__PURE__ */ mt(Vs, [["render", Fc]]), qc = /* @__PURE__ */ Object
|
|
|
16758
16758
|
}, pl = { key: 0 }, hl = {
|
|
16759
16759
|
key: 1,
|
|
16760
16760
|
class: "button--loading button__loader"
|
|
16761
|
-
}, fl = /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1),
|
|
16761
|
+
}, fl = /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), ml = /* @__PURE__ */ _("img", {
|
|
16762
16762
|
src: "https://cdn.tapni.co/icons/apple-logo.png",
|
|
16763
16763
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16764
|
-
}, null, -1),
|
|
16764
|
+
}, null, -1), gl = { key: 0 }, _l = {
|
|
16765
16765
|
key: 1,
|
|
16766
16766
|
class: "button--loading-black button__loader"
|
|
16767
16767
|
}, vl = /* @__PURE__ */ _("img", {
|
|
@@ -16790,7 +16790,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16790
16790
|
const a = Fn("router-link");
|
|
16791
16791
|
return N(), x("form", {
|
|
16792
16792
|
class: "page-login content-boxed content-boxed-padding",
|
|
16793
|
-
onSubmit: e[12] || (e[12] =
|
|
16793
|
+
onSubmit: e[12] || (e[12] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
16794
16794
|
autocomplete: "on",
|
|
16795
16795
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
16796
16796
|
}, [
|
|
@@ -16812,14 +16812,14 @@ function xl(n, e, t, r, o, i) {
|
|
|
16812
16812
|
Zc,
|
|
16813
16813
|
Ie(_("input", {
|
|
16814
16814
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
16815
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
16815
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
16816
16816
|
}, ["prevent"]), ["space"])),
|
|
16817
16817
|
type: "email",
|
|
16818
16818
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
16819
16819
|
name: "email",
|
|
16820
16820
|
required: ""
|
|
16821
16821
|
}, null, 40, el), [
|
|
16822
|
-
[
|
|
16822
|
+
[mn, o.email]
|
|
16823
16823
|
]),
|
|
16824
16824
|
tl
|
|
16825
16825
|
]),
|
|
@@ -16827,7 +16827,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16827
16827
|
rl,
|
|
16828
16828
|
Ie(_("input", {
|
|
16829
16829
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.username = s),
|
|
16830
|
-
onKeydown: e[4] || (e[4] = fn(
|
|
16830
|
+
onKeydown: e[4] || (e[4] = fn(Ve(() => {
|
|
16831
16831
|
}, ["prevent"]), ["space"])),
|
|
16832
16832
|
type: "text",
|
|
16833
16833
|
autocorrect: "off",
|
|
@@ -16837,9 +16837,9 @@ function xl(n, e, t, r, o, i) {
|
|
|
16837
16837
|
name: "username",
|
|
16838
16838
|
required: "",
|
|
16839
16839
|
disabled: o.usernameRegister,
|
|
16840
|
-
class:
|
|
16840
|
+
class: Ke({ "input-disabled": o.usernameRegister })
|
|
16841
16841
|
}, null, 42, ol), [
|
|
16842
|
-
[
|
|
16842
|
+
[mn, o.username]
|
|
16843
16843
|
]),
|
|
16844
16844
|
il
|
|
16845
16845
|
]),
|
|
@@ -16877,8 +16877,8 @@ function xl(n, e, t, r, o, i) {
|
|
|
16877
16877
|
onClick: e[7] || (e[7] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
16878
16878
|
class: "button-center button button-90 google-button pointer"
|
|
16879
16879
|
}, [
|
|
16880
|
-
|
|
16881
|
-
n.appleLoad ? (N(), x("span", _l)) : (N(), x("span",
|
|
16880
|
+
ml,
|
|
16881
|
+
n.appleLoad ? (N(), x("span", _l)) : (N(), x("span", gl, Q(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
|
|
16882
16882
|
])) : pe("", !0),
|
|
16883
16883
|
_("a", {
|
|
16884
16884
|
onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
@@ -16924,7 +16924,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16924
16924
|
]),
|
|
16925
16925
|
zl
|
|
16926
16926
|
])) : (N(), x("div", Ml, [
|
|
16927
|
-
|
|
16927
|
+
Ue(a, {
|
|
16928
16928
|
class: "create float-right",
|
|
16929
16929
|
to: "/verify"
|
|
16930
16930
|
}, {
|
|
@@ -16933,7 +16933,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16933
16933
|
]),
|
|
16934
16934
|
_: 1
|
|
16935
16935
|
}),
|
|
16936
|
-
|
|
16936
|
+
Ue(a, {
|
|
16937
16937
|
class: "forgot float-left",
|
|
16938
16938
|
to: "/login"
|
|
16939
16939
|
}, {
|
|
@@ -16946,7 +16946,7 @@ function xl(n, e, t, r, o, i) {
|
|
|
16946
16946
|
]))
|
|
16947
16947
|
], 36);
|
|
16948
16948
|
}
|
|
16949
|
-
const bo = /* @__PURE__ */
|
|
16949
|
+
const bo = /* @__PURE__ */ gt(Kc, [["render", xl]]), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16950
16950
|
__proto__: null,
|
|
16951
16951
|
default: bo
|
|
16952
16952
|
}, Symbol.toStringTag, { value: "Module" })), Bl = {
|
|
@@ -17052,7 +17052,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17052
17052
|
const a = Fn("router-link");
|
|
17053
17053
|
return N(), x("form", {
|
|
17054
17054
|
class: "page-login content-boxed content-boxed-padding",
|
|
17055
|
-
onSubmit: e[6] || (e[6] =
|
|
17055
|
+
onSubmit: e[6] || (e[6] = Ve((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
17056
17056
|
style: xn(t.isModal ? "max-width: 500px;" : "")
|
|
17057
17057
|
}, [
|
|
17058
17058
|
t.isModal ? (N(), x("a", {
|
|
@@ -17068,13 +17068,13 @@ function uu(n, e, t, r, o, i) {
|
|
|
17068
17068
|
Ie(_("input", {
|
|
17069
17069
|
id: "emailInput",
|
|
17070
17070
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
17071
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17071
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17072
17072
|
}, ["prevent"]), ["space"])),
|
|
17073
17073
|
type: "email",
|
|
17074
17074
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
17075
17075
|
required: ""
|
|
17076
17076
|
}, null, 40, Gl), [
|
|
17077
|
-
[
|
|
17077
|
+
[mn, o.email]
|
|
17078
17078
|
]),
|
|
17079
17079
|
Vl
|
|
17080
17080
|
]),
|
|
@@ -17083,13 +17083,13 @@ function uu(n, e, t, r, o, i) {
|
|
|
17083
17083
|
Ie(_("input", {
|
|
17084
17084
|
id: "codeInput",
|
|
17085
17085
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.code = s),
|
|
17086
|
-
onKeydown: e[4] || (e[4] = fn(
|
|
17086
|
+
onKeydown: e[4] || (e[4] = fn(Ve(() => {
|
|
17087
17087
|
}, ["prevent"]), ["space"])),
|
|
17088
17088
|
type: "tel",
|
|
17089
17089
|
placeholder: n.ssoLang[this.appLanguage].code,
|
|
17090
17090
|
required: ""
|
|
17091
17091
|
}, null, 40, Wl), [
|
|
17092
|
-
[
|
|
17092
|
+
[mn, o.code]
|
|
17093
17093
|
]),
|
|
17094
17094
|
$l
|
|
17095
17095
|
]),
|
|
@@ -17116,7 +17116,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17116
17116
|
]),
|
|
17117
17117
|
lu
|
|
17118
17118
|
])) : (N(), x("div", iu, [
|
|
17119
|
-
|
|
17119
|
+
Ue(a, {
|
|
17120
17120
|
class: "create float-right",
|
|
17121
17121
|
to: "/register"
|
|
17122
17122
|
}, {
|
|
@@ -17125,7 +17125,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17125
17125
|
]),
|
|
17126
17126
|
_: 1
|
|
17127
17127
|
}),
|
|
17128
|
-
|
|
17128
|
+
Ue(a, {
|
|
17129
17129
|
class: "forgot float-left",
|
|
17130
17130
|
to: "/login"
|
|
17131
17131
|
}, {
|
|
@@ -17138,7 +17138,7 @@ function uu(n, e, t, r, o, i) {
|
|
|
17138
17138
|
]))
|
|
17139
17139
|
], 36);
|
|
17140
17140
|
}
|
|
17141
|
-
const ko = /* @__PURE__ */
|
|
17141
|
+
const ko = /* @__PURE__ */ gt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef3"]]), du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17142
17142
|
__proto__: null,
|
|
17143
17143
|
default: ko
|
|
17144
17144
|
}, Symbol.toStringTag, { value: "Module" })), pu = {
|
|
@@ -17164,7 +17164,7 @@ const ko = /* @__PURE__ */ mt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef
|
|
|
17164
17164
|
enable: this.mfaEnable
|
|
17165
17165
|
};
|
|
17166
17166
|
this.mfaEnable || delete n.otpSecret, this.loading = !0;
|
|
17167
|
-
const [e, t] = await fe(
|
|
17167
|
+
const [e, t] = await fe(Je.setMfa(n, this.$storex));
|
|
17168
17168
|
if (this.loading = !1, e)
|
|
17169
17169
|
return F.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
|
|
17170
17170
|
t.data.success && (this.getAccountSettings(), this.successSnack(t.data.message));
|
|
@@ -17176,9 +17176,9 @@ const ko = /* @__PURE__ */ mt(Bl, [["render", uu], ["__scopeId", "data-v-89d98ef
|
|
|
17176
17176
|
class: "responsive-image",
|
|
17177
17177
|
style: { width: "35%" }
|
|
17178
17178
|
})
|
|
17179
|
-
], -1),
|
|
17179
|
+
], -1), mu = [
|
|
17180
17180
|
fu
|
|
17181
|
-
],
|
|
17181
|
+
], gu = /* @__PURE__ */ _("h4", { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "50px" } }, " 2-Step Verification ", -1), _u = /* @__PURE__ */ _("br", null, null, -1), vu = { class: "qrCodeLoginContainer center-text" }, yu = {
|
|
17182
17182
|
class: "ios-switch",
|
|
17183
17183
|
style: { display: "inline-block", float: "right" }
|
|
17184
17184
|
}, wu = /* @__PURE__ */ _("label", {
|
|
@@ -17214,8 +17214,8 @@ function zu(n, e, t, r, o, i) {
|
|
|
17214
17214
|
onClick: e[0] || (e[0] = (...a) => i.close && i.close(...a)),
|
|
17215
17215
|
class: "color-black pull-right pointer",
|
|
17216
17216
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
17217
|
-
},
|
|
17218
|
-
|
|
17217
|
+
}, mu)) : pe("", !0),
|
|
17218
|
+
gu,
|
|
17219
17219
|
_u,
|
|
17220
17220
|
_("div", vu, [
|
|
17221
17221
|
_("div", null, [
|
|
@@ -17249,7 +17249,7 @@ function zu(n, e, t, r, o, i) {
|
|
|
17249
17249
|
]),
|
|
17250
17250
|
n.account.mfaEnabled !== n.mfaEnable ? (N(), x("form", {
|
|
17251
17251
|
key: 0,
|
|
17252
|
-
onSubmit: e[4] || (e[4] =
|
|
17252
|
+
onSubmit: e[4] || (e[4] = Ve((...a) => n.validateMFA && n.validateMFA(...a), ["prevent"]))
|
|
17253
17253
|
}, [
|
|
17254
17254
|
_("button", Au, [
|
|
17255
17255
|
n.loading ? (N(), x("span", Pu)) : (N(), x("span", Ru, Q(n.ssoLang[n.appLanguage].continue), 1))
|
|
@@ -17275,7 +17275,7 @@ function zu(n, e, t, r, o, i) {
|
|
|
17275
17275
|
])
|
|
17276
17276
|
]);
|
|
17277
17277
|
}
|
|
17278
|
-
const Co = /* @__PURE__ */
|
|
17278
|
+
const Co = /* @__PURE__ */ gt(pu, [["render", zu]]), xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17279
17279
|
__proto__: null,
|
|
17280
17280
|
default: Co
|
|
17281
17281
|
}, Symbol.toStringTag, { value: "Module" })), Uu = {
|
|
@@ -17386,13 +17386,13 @@ const Co = /* @__PURE__ */ mt(pu, [["render", zu]]), xu = /* @__PURE__ */ Object
|
|
|
17386
17386
|
}, fd = {
|
|
17387
17387
|
key: 1,
|
|
17388
17388
|
class: "button--loading button__loader"
|
|
17389
|
-
},
|
|
17389
|
+
}, md = /* @__PURE__ */ on(() => /* @__PURE__ */ _("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), gd = { class: "close-text center-text half-top color-black" }, _d = ["innerHTML"], vd = ["href"];
|
|
17390
17390
|
function yd(n, e, t, r, o, i) {
|
|
17391
17391
|
const a = Fn("router-link");
|
|
17392
17392
|
return o.passwordChange ? (N(), x("form", {
|
|
17393
17393
|
key: 1,
|
|
17394
17394
|
class: "page-login content-boxed content-boxed-padding",
|
|
17395
|
-
onSubmit: e[7] || (e[7] =
|
|
17395
|
+
onSubmit: e[7] || (e[7] = Ve((...s) => i.changePw && i.changePw(...s), ["prevent"]))
|
|
17396
17396
|
}, [
|
|
17397
17397
|
_("h3", ed, Q(n.ssoLang[this.appLanguage].password_change), 1),
|
|
17398
17398
|
_("p", td, Q(n.ssoLang[this.appLanguage].password_new), 1),
|
|
@@ -17441,8 +17441,8 @@ function yd(n, e, t, r, o, i) {
|
|
|
17441
17441
|
_("button", pd, [
|
|
17442
17442
|
o.submitted ? (N(), x("span", fd)) : (N(), x("span", hd, Q(n.ssoLang[this.appLanguage].password_change), 1))
|
|
17443
17443
|
]),
|
|
17444
|
-
|
|
17445
|
-
_("p",
|
|
17444
|
+
md,
|
|
17445
|
+
_("p", gd, [
|
|
17446
17446
|
_("span", {
|
|
17447
17447
|
innerHTML: n.ssoLang[this.appLanguage].reset_password_p2
|
|
17448
17448
|
}, null, 8, _d),
|
|
@@ -17454,7 +17454,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17454
17454
|
], 32)) : (N(), x("form", {
|
|
17455
17455
|
key: 0,
|
|
17456
17456
|
class: "page-login content-boxed content-boxed-padding",
|
|
17457
|
-
onSubmit: e[2] || (e[2] =
|
|
17457
|
+
onSubmit: e[2] || (e[2] = Ve((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
|
|
17458
17458
|
autocomplete: "on"
|
|
17459
17459
|
}, [
|
|
17460
17460
|
_("h3", Bu, Q(n.ssoLang[this.appLanguage].reset_password), 1),
|
|
@@ -17464,13 +17464,13 @@ function yd(n, e, t, r, o, i) {
|
|
|
17464
17464
|
Ie(_("input", {
|
|
17465
17465
|
id: "emailInput",
|
|
17466
17466
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.email = s),
|
|
17467
|
-
onKeydown: e[1] || (e[1] = fn(
|
|
17467
|
+
onKeydown: e[1] || (e[1] = fn(Ve(() => {
|
|
17468
17468
|
}, ["prevent"]), ["space"])),
|
|
17469
17469
|
type: "email",
|
|
17470
17470
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
17471
17471
|
required: ""
|
|
17472
17472
|
}, null, 40, Fu), [
|
|
17473
|
-
[
|
|
17473
|
+
[mn, o.email]
|
|
17474
17474
|
]),
|
|
17475
17475
|
qu
|
|
17476
17476
|
]),
|
|
@@ -17488,7 +17488,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17488
17488
|
]),
|
|
17489
17489
|
Ju,
|
|
17490
17490
|
_("div", Xu, [
|
|
17491
|
-
|
|
17491
|
+
Ue(a, {
|
|
17492
17492
|
class: "create float-right",
|
|
17493
17493
|
to: "/verify"
|
|
17494
17494
|
}, {
|
|
@@ -17497,7 +17497,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17497
17497
|
]),
|
|
17498
17498
|
_: 1
|
|
17499
17499
|
}),
|
|
17500
|
-
|
|
17500
|
+
Ue(a, {
|
|
17501
17501
|
class: "forgot float-left",
|
|
17502
17502
|
to: "/login"
|
|
17503
17503
|
}, {
|
|
@@ -17510,7 +17510,7 @@ function yd(n, e, t, r, o, i) {
|
|
|
17510
17510
|
])
|
|
17511
17511
|
], 32));
|
|
17512
17512
|
}
|
|
17513
|
-
const Eo = /* @__PURE__ */
|
|
17513
|
+
const Eo = /* @__PURE__ */ gt(Uu, [["render", yd], ["__scopeId", "data-v-69a9cfa3"]]), wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17514
17514
|
__proto__: null,
|
|
17515
17515
|
default: Eo
|
|
17516
17516
|
}, Symbol.toStringTag, { value: "Module" })), bd = {
|
|
@@ -17554,7 +17554,7 @@ function Sd(n, e, t, r, o, i) {
|
|
|
17554
17554
|
])) : (N(), x("h4", Td, Q(n.ssoLang[this.appLanguage].please_wait), 1))
|
|
17555
17555
|
]);
|
|
17556
17556
|
}
|
|
17557
|
-
const To = /* @__PURE__ */
|
|
17557
|
+
const To = /* @__PURE__ */ gt(bd, [["render", Sd]]), Id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17558
17558
|
__proto__: null,
|
|
17559
17559
|
default: To
|
|
17560
17560
|
}, Symbol.toStringTag, { value: "Module" })), Ad = {
|
|
@@ -17584,11 +17584,11 @@ const To = /* @__PURE__ */ mt(bd, [["render", Sd]]), Id = /* @__PURE__ */ Object
|
|
|
17584
17584
|
};
|
|
17585
17585
|
function Rd(n, e, t, r, o, i) {
|
|
17586
17586
|
return N(), x("div", {
|
|
17587
|
-
class:
|
|
17587
|
+
class: Ke({ "pointer delete-menu": !0, "delete-menu-active": o.toggle }),
|
|
17588
17588
|
onClick: e[0] || (e[0] = (...a) => i.toggleEmit && i.toggleEmit(...a))
|
|
17589
17589
|
}, null, 2);
|
|
17590
17590
|
}
|
|
17591
|
-
const Pi = /* @__PURE__ */
|
|
17591
|
+
const Pi = /* @__PURE__ */ gt(Ad, [["render", Rd], ["__scopeId", "data-v-17c95816"]]), Pd = {
|
|
17592
17592
|
name: "SSO",
|
|
17593
17593
|
mixins: [Lr, zr, xr, at],
|
|
17594
17594
|
data() {
|
|
@@ -17649,8 +17649,8 @@ const Pi = /* @__PURE__ */ mt(Ad, [["render", Rd], ["__scopeId", "data-v-17c9581
|
|
|
17649
17649
|
};
|
|
17650
17650
|
function Dd(n, e, t, r, o, i) {
|
|
17651
17651
|
return N(), x("form", {
|
|
17652
|
-
onSubmit: e[3] || (e[3] =
|
|
17653
|
-
class:
|
|
17652
|
+
onSubmit: e[3] || (e[3] = Ve((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
17653
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17654
17654
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17655
17655
|
}, [
|
|
17656
17656
|
_("a", {
|
|
@@ -17671,10 +17671,10 @@ function Dd(n, e, t, r, o, i) {
|
|
|
17671
17671
|
class: "edit-input h-40 lh-40",
|
|
17672
17672
|
style: { width: "80%" },
|
|
17673
17673
|
required: "",
|
|
17674
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17674
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17675
17675
|
}, ["prevent"]), ["space"]))
|
|
17676
17676
|
}, null, 40, zd), [
|
|
17677
|
-
[
|
|
17677
|
+
[mn, o.email]
|
|
17678
17678
|
])
|
|
17679
17679
|
]),
|
|
17680
17680
|
_("button", xd, [
|
|
@@ -17682,7 +17682,7 @@ function Dd(n, e, t, r, o, i) {
|
|
|
17682
17682
|
])
|
|
17683
17683
|
], 34);
|
|
17684
17684
|
}
|
|
17685
|
-
const Mi = /* @__PURE__ */
|
|
17685
|
+
const Mi = /* @__PURE__ */ gt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a09"]]), Hd = {
|
|
17686
17686
|
name: "OTP",
|
|
17687
17687
|
mixins: [at],
|
|
17688
17688
|
data() {
|
|
@@ -17734,8 +17734,8 @@ const Mi = /* @__PURE__ */ mt(Pd, [["render", Dd], ["__scopeId", "data-v-11f19a0
|
|
|
17734
17734
|
}, $d = { class: "close-text center-text half-top color-black" }, Jd = ["innerHTML"], Xd = /* @__PURE__ */ _("a", { href: "mailto:support@tapni.com?subject=MFA Authentication Problem" }, " support@tapni.com", -1);
|
|
17735
17735
|
function Zd(n, e, t, r, o, i) {
|
|
17736
17736
|
return N(), x("form", {
|
|
17737
|
-
onSubmit: e[3] || (e[3] =
|
|
17738
|
-
class:
|
|
17737
|
+
onSubmit: e[3] || (e[3] = Ve((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
17738
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17739
17739
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17740
17740
|
}, [
|
|
17741
17741
|
_("a", {
|
|
@@ -17761,10 +17761,10 @@ function Zd(n, e, t, r, o, i) {
|
|
|
17761
17761
|
class: "edit-input h-40 lh-40",
|
|
17762
17762
|
style: { width: "80%", margin: "0 auto", height: "25px" },
|
|
17763
17763
|
required: "",
|
|
17764
|
-
onKeydown: e[2] || (e[2] = fn(
|
|
17764
|
+
onKeydown: e[2] || (e[2] = fn(Ve(() => {
|
|
17765
17765
|
}, ["prevent"]), ["space"]))
|
|
17766
17766
|
}, null, 40, Vd), [
|
|
17767
|
-
[
|
|
17767
|
+
[mn, o.otp]
|
|
17768
17768
|
])
|
|
17769
17769
|
]),
|
|
17770
17770
|
_("button", Qd, [
|
|
@@ -17778,7 +17778,7 @@ function Zd(n, e, t, r, o, i) {
|
|
|
17778
17778
|
])
|
|
17779
17779
|
], 34);
|
|
17780
17780
|
}
|
|
17781
|
-
const Ni = /* @__PURE__ */
|
|
17781
|
+
const Ni = /* @__PURE__ */ gt(Hd, [["render", Zd]]), ep = {
|
|
17782
17782
|
name: "SSOPick",
|
|
17783
17783
|
mixins: [Lr, zr, xr, at],
|
|
17784
17784
|
data() {
|
|
@@ -17843,9 +17843,9 @@ const Ni = /* @__PURE__ */ mt(Hd, [["render", Zd]]), ep = {
|
|
|
17843
17843
|
function hp(n, e, t, r, o, i) {
|
|
17844
17844
|
var a, s, u;
|
|
17845
17845
|
return N(), x("form", {
|
|
17846
|
-
onSubmit: e[4] || (e[4] =
|
|
17846
|
+
onSubmit: e[4] || (e[4] = Ve(() => {
|
|
17847
17847
|
}, ["prevent"])),
|
|
17848
|
-
class:
|
|
17848
|
+
class: Ke(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
17849
17849
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
17850
17850
|
}, [
|
|
17851
17851
|
_("a", {
|
|
@@ -17880,7 +17880,7 @@ function hp(n, e, t, r, o, i) {
|
|
|
17880
17880
|
])) : pe("", !0)
|
|
17881
17881
|
], 34);
|
|
17882
17882
|
}
|
|
17883
|
-
const Oi = /* @__PURE__ */
|
|
17883
|
+
const Oi = /* @__PURE__ */ gt(ep, [["render", hp], ["__scopeId", "data-v-4f821f65"]]), fp = {
|
|
17884
17884
|
name: "LinkIcon",
|
|
17885
17885
|
mixins: [at],
|
|
17886
17886
|
props: {
|
|
@@ -17952,17 +17952,17 @@ const Oi = /* @__PURE__ */ mt(ep, [["render", hp], ["__scopeId", "data-v-4f821f6
|
|
|
17952
17952
|
}
|
|
17953
17953
|
},
|
|
17954
17954
|
methods: {}
|
|
17955
|
-
},
|
|
17955
|
+
}, mp = ["src", "alt"], gp = ["src", "alt"], _p = ["src", "alt"], vp = ["src", "alt"];
|
|
17956
17956
|
function yp(n, e, t, r, o, i) {
|
|
17957
17957
|
var a, s;
|
|
17958
17958
|
return N(), x("a", {
|
|
17959
|
-
class:
|
|
17959
|
+
class: Ke(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
17960
17960
|
style: xn(
|
|
17961
|
-
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
|
|
17961
|
+
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible; margin-top: 5px;"
|
|
17962
17962
|
)
|
|
17963
17963
|
}, [
|
|
17964
17964
|
_("span", {
|
|
17965
|
-
class:
|
|
17965
|
+
class: Ke({
|
|
17966
17966
|
"user-link-img": !0,
|
|
17967
17967
|
"pulse pulse-border": t.pulse,
|
|
17968
17968
|
"link-drag": t.editing
|
|
@@ -17976,14 +17976,14 @@ function yp(n, e, t, r, o, i) {
|
|
|
17976
17976
|
alt: t.data.text,
|
|
17977
17977
|
onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
|
|
17978
17978
|
onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
|
|
17979
|
-
}, null, 40,
|
|
17979
|
+
}, null, 40, mp)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (N(), x("img", {
|
|
17980
17980
|
key: 1,
|
|
17981
17981
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
17982
17982
|
class: "responsive-image",
|
|
17983
17983
|
alt: t.data.text,
|
|
17984
17984
|
onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
|
|
17985
17985
|
onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
|
|
17986
|
-
}, null, 40,
|
|
17986
|
+
}, null, 40, gp)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (N(), x("img", {
|
|
17987
17987
|
key: 2,
|
|
17988
17988
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
17989
17989
|
class: "responsive-image",
|
|
@@ -18006,7 +18006,7 @@ function yp(n, e, t, r, o, i) {
|
|
|
18006
18006
|
}, Q(i.linkText), 5)
|
|
18007
18007
|
], 6);
|
|
18008
18008
|
}
|
|
18009
|
-
const wp = /* @__PURE__ */
|
|
18009
|
+
const wp = /* @__PURE__ */ gt(fp, [["render", yp]]), bp = {
|
|
18010
18010
|
ANDROID_VERSION: "5.6",
|
|
18011
18011
|
IOS_VERSION: "5.6",
|
|
18012
18012
|
WEB_VERSION: "5.6.0",
|
|
@@ -18046,7 +18046,7 @@ const wp = /* @__PURE__ */ mt(fp, [["render", yp]]), bp = {
|
|
|
18046
18046
|
this.toggle = !this.toggle;
|
|
18047
18047
|
}
|
|
18048
18048
|
}
|
|
18049
|
-
}, Cp = (n) => (qn("data-v-
|
|
18049
|
+
}, Cp = (n) => (qn("data-v-7477a961"), n = n(), Kn(), n), Ep = /* @__PURE__ */ Cp(() => /* @__PURE__ */ _("i", { class: "font-17 fa color-black" }, [
|
|
18050
18050
|
/* @__PURE__ */ _("img", {
|
|
18051
18051
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
18052
18052
|
class: "fa responsive-image",
|
|
@@ -18058,7 +18058,7 @@ const wp = /* @__PURE__ */ mt(fp, [["render", yp]]), bp = {
|
|
|
18058
18058
|
function Ip(n, e, t, r, o, i) {
|
|
18059
18059
|
const a = Fn("LinkIcon");
|
|
18060
18060
|
return N(), x("div", {
|
|
18061
|
-
class:
|
|
18061
|
+
class: Ke(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
18062
18062
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
18063
18063
|
}, [
|
|
18064
18064
|
_("a", {
|
|
@@ -18067,65 +18067,81 @@ function Ip(n, e, t, r, o, i) {
|
|
|
18067
18067
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
18068
18068
|
}, Tp),
|
|
18069
18069
|
_("h3", Sp, Q(n.ssoLang[n.appLanguage].app_language), 1),
|
|
18070
|
-
|
|
18070
|
+
Ue(a, {
|
|
18071
18071
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
18072
|
-
"link-style": "link-
|
|
18072
|
+
"link-style": "link-list",
|
|
18073
18073
|
data: { type: "lang/en", text: n.ssoLang[this.appLanguage].english },
|
|
18074
18074
|
editing: !1,
|
|
18075
|
-
class:
|
|
18075
|
+
class: Ke({ "add-button": !0 }),
|
|
18076
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18076
18077
|
}, null, 8, ["data"]),
|
|
18077
|
-
|
|
18078
|
+
Ue(a, {
|
|
18078
18079
|
onClick: e[2] || (e[2] = (s) => i.updateLanguage("es")),
|
|
18079
|
-
"link-style": "link-
|
|
18080
|
+
"link-style": "link-list",
|
|
18080
18081
|
data: { type: "lang/es", text: n.ssoLang[this.appLanguage].spanish },
|
|
18081
18082
|
editing: !1,
|
|
18082
|
-
class:
|
|
18083
|
+
class: Ke({ "add-button": !0 }),
|
|
18084
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18083
18085
|
}, null, 8, ["data"]),
|
|
18084
|
-
|
|
18086
|
+
Ue(a, {
|
|
18085
18087
|
onClick: e[3] || (e[3] = (s) => i.updateLanguage("de")),
|
|
18086
|
-
"link-style": "link-
|
|
18088
|
+
"link-style": "link-list",
|
|
18087
18089
|
data: { type: "lang/de", text: n.ssoLang[this.appLanguage].german },
|
|
18088
18090
|
editing: !1,
|
|
18089
|
-
class:
|
|
18091
|
+
class: Ke({ "add-button": !0 }),
|
|
18092
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18090
18093
|
}, null, 8, ["data"]),
|
|
18091
|
-
|
|
18094
|
+
Ue(a, {
|
|
18092
18095
|
onClick: e[4] || (e[4] = (s) => i.updateLanguage("it")),
|
|
18093
|
-
"link-style": "link-
|
|
18096
|
+
"link-style": "link-list",
|
|
18094
18097
|
data: { type: "lang/it", text: n.ssoLang[this.appLanguage].italian },
|
|
18095
18098
|
editing: !1,
|
|
18096
|
-
class:
|
|
18099
|
+
class: Ke({ "add-button": !0 }),
|
|
18100
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18097
18101
|
}, null, 8, ["data"]),
|
|
18098
|
-
|
|
18102
|
+
Ue(a, {
|
|
18099
18103
|
onClick: e[5] || (e[5] = (s) => i.updateLanguage("fr")),
|
|
18100
|
-
"link-style": "link-
|
|
18104
|
+
"link-style": "link-list",
|
|
18101
18105
|
data: { type: "lang/fr", text: n.ssoLang[this.appLanguage].french },
|
|
18102
18106
|
editing: !1,
|
|
18103
|
-
class:
|
|
18107
|
+
class: Ke({ "add-button": !0 }),
|
|
18108
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18104
18109
|
}, null, 8, ["data"]),
|
|
18105
|
-
|
|
18110
|
+
Ue(a, {
|
|
18106
18111
|
onClick: e[6] || (e[6] = (s) => i.updateLanguage("kr")),
|
|
18107
|
-
"link-style": "link-
|
|
18112
|
+
"link-style": "link-list",
|
|
18108
18113
|
data: { type: "lang/kr", text: n.ssoLang[this.appLanguage].korean },
|
|
18109
18114
|
editing: !1,
|
|
18110
|
-
class:
|
|
18115
|
+
class: Ke({ "add-button": !0 }),
|
|
18116
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18111
18117
|
}, null, 8, ["data"]),
|
|
18112
|
-
|
|
18118
|
+
Ue(a, {
|
|
18113
18119
|
onClick: e[7] || (e[7] = (s) => i.updateLanguage("sr")),
|
|
18114
|
-
"link-style": "link-
|
|
18120
|
+
"link-style": "link-list",
|
|
18115
18121
|
data: { type: "lang/sr", text: n.ssoLang[this.appLanguage].serbian },
|
|
18116
18122
|
editing: !1,
|
|
18117
|
-
class:
|
|
18123
|
+
class: Ke({ "add-button": !0 }),
|
|
18124
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18118
18125
|
}, null, 8, ["data"]),
|
|
18119
|
-
|
|
18126
|
+
Ue(a, {
|
|
18120
18127
|
onClick: e[8] || (e[8] = (s) => i.updateLanguage("tr")),
|
|
18121
|
-
"link-style": "link-
|
|
18128
|
+
"link-style": "link-list",
|
|
18122
18129
|
data: { type: "lang/tr", text: n.ssoLang[this.appLanguage].turkish },
|
|
18123
18130
|
editing: !1,
|
|
18124
|
-
class:
|
|
18131
|
+
class: Ke({ "add-button": !0 }),
|
|
18132
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18133
|
+
}, null, 8, ["data"]),
|
|
18134
|
+
Ue(a, {
|
|
18135
|
+
onClick: e[9] || (e[9] = (s) => i.updateLanguage("cn")),
|
|
18136
|
+
"link-style": "link-list",
|
|
18137
|
+
data: { type: "lang/cn", text: n.ssoLang[this.appLanguage].chinese },
|
|
18138
|
+
editing: !1,
|
|
18139
|
+
class: Ke({ "add-button": !0 }),
|
|
18140
|
+
customLinkStyle: { linkIcon: { display: "none" } }
|
|
18125
18141
|
}, null, 8, ["data"])
|
|
18126
18142
|
], 2);
|
|
18127
18143
|
}
|
|
18128
|
-
const Li = /* @__PURE__ */
|
|
18144
|
+
const Li = /* @__PURE__ */ gt(kp, [["render", Ip], ["__scopeId", "data-v-7477a961"]]), un = ar("Preferences", {
|
|
18129
18145
|
web: () => import("./web-AImUTDQQ.js").then((n) => new n.PreferencesWeb())
|
|
18130
18146
|
}), At = {
|
|
18131
18147
|
async setObject(n, e) {
|
|
@@ -18391,11 +18407,11 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18391
18407
|
}, [
|
|
18392
18408
|
_("span", Lp, Q(e.appLanguage.toUpperCase()), 1)
|
|
18393
18409
|
])) : pe("", !0),
|
|
18394
|
-
|
|
18410
|
+
Ue(Pi),
|
|
18395
18411
|
n.isModal ? pe("", !0) : (N(), ht(Li, { key: 2 })),
|
|
18396
18412
|
n.isModal ? pe("", !0) : (N(), ht(Mi, { key: 3 })),
|
|
18397
18413
|
n.isModal ? pe("", !0) : (N(), ht(Oi, { key: 4 })),
|
|
18398
|
-
|
|
18414
|
+
Ue(Ni),
|
|
18399
18415
|
e.initialized && e.renderView === "AuthWelcome" ? (N(), ht(po, { key: 5 })) : e.initialized && e.renderView === "AuthLogin" ? (N(), ht(wo, {
|
|
18400
18416
|
key: 6,
|
|
18401
18417
|
isModal: n.isModal
|
|
@@ -18437,6 +18453,6 @@ export {
|
|
|
18437
18453
|
at as A,
|
|
18438
18454
|
F as E,
|
|
18439
18455
|
Gs as Q,
|
|
18440
|
-
|
|
18456
|
+
gt as _,
|
|
18441
18457
|
oh as i
|
|
18442
18458
|
};
|