@mapsindoors/map-template 1.36.3 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/{combo-box-item.entry-a8da1eb2.mjs → combo-box-item.entry-669afb36.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +19 -19
- package/dist/mapsindoors-webcomponent.es.js +867 -861
- package/dist/mapsindoors-webcomponent.umd.js +18 -18
- package/dist/{mi-card_2.entry-df1ce762.mjs → mi-card_2.entry-6b8d205a.mjs} +1 -1
- package/dist/{mi-chip.entry-197de37c.mjs → mi-chip.entry-ec831719.mjs} +1 -1
- package/dist/{mi-column.entry-5a9cf6bd.mjs → mi-column.entry-29d82a18.mjs} +1 -1
- package/dist/{mi-combo-box.entry-f257f857.mjs → mi-combo-box.entry-e6f1f500.mjs} +1 -1
- package/dist/{mi-data-table.entry-3dec6a4e.mjs → mi-data-table.entry-a05443e8.mjs} +1 -1
- package/dist/{mi-distance_2.entry-d550f85a.mjs → mi-distance_2.entry-fdd5ad5b.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-2a3b1fe9.mjs → mi-dropdown-item.entry-b571823a.mjs} +1 -1
- package/dist/{mi-dropdown.entry-7385e704.mjs → mi-dropdown.entry-e4ff4259.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-299ac3d8.mjs → mi-floor-selector.entry-3e15b96f.mjs} +1 -1
- package/dist/{mi-keyboard.entry-87cc3cda.mjs → mi-keyboard.entry-da17a45f.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-2ad7e530.mjs → mi-list-item-category.entry-5b3702e6.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-bb959a5b.mjs → mi-list-item-location.entry-9002eeef.mjs} +1 -1
- package/dist/{mi-list.entry-d9e954d8.mjs → mi-list.entry-c644f17d.mjs} +1 -1
- package/dist/{mi-location-booking.entry-0fddb3bb.mjs → mi-location-booking.entry-a92d9047.mjs} +1 -1
- package/dist/{mi-location-info.entry-11ef0b20.mjs → mi-location-info.entry-8cd7745e.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-568d65cb.mjs → mi-map-googlemaps.entry-30906197.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-708b6d23.mjs → mi-map-mapbox.entry-5552cd3f.mjs} +1 -1
- package/dist/{mi-metric-card.entry-0e26ae28.mjs → mi-metric-card.entry-1dfb7bb8.mjs} +1 -1
- package/dist/{mi-my-position.entry-b42743e7.mjs → mi-my-position.entry-562214b9.mjs} +1 -1
- package/dist/{mi-notification.entry-d1a8779f.mjs → mi-notification.entry-1622a905.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-9fe18478.mjs → mi-route-instructions-heading.entry-7ecb2334.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-c7d16491.mjs → mi-route-instructions-maneuver-legacy.entry-2624dd54.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-33a20308.mjs → mi-route-instructions-maneuver.entry-a4c78da8.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-b62757d0.mjs → mi-route-instructions-step-legacy.entry-860de5f0.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-e4aa44b0.mjs → mi-route-instructions-step.entry-8e27535d.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-8738360a.mjs → mi-route-instructions.entry-7519e8e3.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-d44c3783.mjs → mi-scroll-buttons.entry-41eda1a8.mjs} +1 -1
- package/dist/{mi-search.entry-db0a2f80.mjs → mi-search.entry-d37b5e17.mjs} +1 -1
- package/dist/{mi-share-sms.entry-d24114cc.mjs → mi-share-sms.entry-f972947b.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-57e57f1c.mjs → mi-step-switcher.entry-7da99625.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-afc5817f.mjs → mi-tab-panel.entry-c273f84c.mjs} +1 -1
- package/dist/{mi-tab.entry-d6ca36c0.mjs → mi-tab.entry-59ea6ca7.mjs} +1 -1
- package/dist/{mi-tabs.entry-dd5b6589.mjs → mi-tabs.entry-e71e79ad.mjs} +1 -1
- package/dist/{mi-time.entry-37c98677.mjs → mi-time.entry-4345a9c2.mjs} +1 -1
- package/dist/{reactcomponent-8018fe70.mjs → reactcomponent-f1d6f085.mjs} +1514 -1508
- package/package.json +1 -1
|
@@ -341,7 +341,7 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
341
341
|
function $(Ne) {
|
|
342
342
|
if (R = !1, V(Ne), !L)
|
|
343
343
|
if (a(m) !== null)
|
|
344
|
-
L = !0,
|
|
344
|
+
L = !0, Ie(te);
|
|
345
345
|
else {
|
|
346
346
|
var Le = a(I);
|
|
347
347
|
Le !== null && ke($, Le.startTime - Ne);
|
|
@@ -351,7 +351,7 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
351
351
|
L = !1, R && (R = !1, B(fe), fe = -1), z = !0;
|
|
352
352
|
var ue = C;
|
|
353
353
|
try {
|
|
354
|
-
for (V(Le), S = a(m); S !== null && (!(S.expirationTime > Le) || Ne && !
|
|
354
|
+
for (V(Le), S = a(m); S !== null && (!(S.expirationTime > Le) || Ne && !Ae()); ) {
|
|
355
355
|
var ee = S.callback;
|
|
356
356
|
if (typeof ee == "function") {
|
|
357
357
|
S.callback = null, C = S.priorityLevel;
|
|
@@ -373,7 +373,7 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
var ce = !1, le = null, fe = -1, Z = 5, _e = -1;
|
|
376
|
-
function
|
|
376
|
+
function Ae() {
|
|
377
377
|
return !(i.unstable_now() - _e < Z);
|
|
378
378
|
}
|
|
379
379
|
function Qe() {
|
|
@@ -395,15 +395,15 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
395
395
|
U(Qe);
|
|
396
396
|
};
|
|
397
397
|
else if (typeof MessageChannel < "u") {
|
|
398
|
-
var Ze = new MessageChannel(),
|
|
398
|
+
var Ze = new MessageChannel(), Ce = Ze.port2;
|
|
399
399
|
Ze.port1.onmessage = Qe, we = function() {
|
|
400
|
-
|
|
400
|
+
Ce.postMessage(null);
|
|
401
401
|
};
|
|
402
402
|
} else
|
|
403
403
|
we = function() {
|
|
404
404
|
Y(Qe, 0);
|
|
405
405
|
};
|
|
406
|
-
function
|
|
406
|
+
function Ie(Ne) {
|
|
407
407
|
le = Ne, ce || (ce = !0, we());
|
|
408
408
|
}
|
|
409
409
|
function ke(Ne, Le) {
|
|
@@ -414,7 +414,7 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
414
414
|
i.unstable_IdlePriority = 5, i.unstable_ImmediatePriority = 1, i.unstable_LowPriority = 4, i.unstable_NormalPriority = 3, i.unstable_Profiling = null, i.unstable_UserBlockingPriority = 2, i.unstable_cancelCallback = function(Ne) {
|
|
415
415
|
Ne.callback = null;
|
|
416
416
|
}, i.unstable_continueExecution = function() {
|
|
417
|
-
L || z || (L = !0,
|
|
417
|
+
L || z || (L = !0, Ie(te));
|
|
418
418
|
}, i.unstable_forceFrameRate = function(Ne) {
|
|
419
419
|
0 > Ne || 125 < Ne ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : Z = 0 < Ne ? Math.floor(1e3 / Ne) : 5;
|
|
420
420
|
}, i.unstable_getCurrentPriorityLevel = function() {
|
|
@@ -476,8 +476,8 @@ var kM = {}, W8 = { exports: {} }, _o = {}, q8 = { exports: {} }, K8 = {};
|
|
|
476
476
|
default:
|
|
477
477
|
K = 5e3;
|
|
478
478
|
}
|
|
479
|
-
return K = ue + K, Ne = { id: A++, callback: Le, priorityLevel: Ne, startTime: ue, expirationTime: K, sortIndex: -1 }, ue > ee ? (Ne.sortIndex = ue, o(I, Ne), a(m) === null && Ne === a(I) && (R ? (B(fe), fe = -1) : R = !0, ke($, ue - ee))) : (Ne.sortIndex = K, o(m, Ne), L || z || (L = !0,
|
|
480
|
-
}, i.unstable_shouldYield =
|
|
479
|
+
return K = ue + K, Ne = { id: A++, callback: Le, priorityLevel: Ne, startTime: ue, expirationTime: K, sortIndex: -1 }, ue > ee ? (Ne.sortIndex = ue, o(I, Ne), a(m) === null && Ne === a(I) && (R ? (B(fe), fe = -1) : R = !0, ke($, ue - ee))) : (Ne.sortIndex = K, o(m, Ne), L || z || (L = !0, Ie(te))), Ne;
|
|
480
|
+
}, i.unstable_shouldYield = Ae, i.unstable_wrapCallback = function(Ne) {
|
|
481
481
|
var Le = C;
|
|
482
482
|
return function() {
|
|
483
483
|
var ue = C;
|
|
@@ -3040,8 +3040,8 @@ function nL(i) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
for (le = u(B, le); fe < V.length; fe++)
|
|
3042
3042
|
Z = z(le, B, fe, V[fe], $), Z !== null && (i && Z.alternate !== null && le.delete(Z.key === null ? fe : Z.key), U = g(Z, U, fe), ce === null ? te = Z : ce.sibling = Z, ce = Z);
|
|
3043
|
-
return i && le.forEach(function(
|
|
3044
|
-
return o(B,
|
|
3043
|
+
return i && le.forEach(function(Ae) {
|
|
3044
|
+
return o(B, Ae);
|
|
3045
3045
|
}), Oi && $l(B, fe), te;
|
|
3046
3046
|
}
|
|
3047
3047
|
function R(B, U, V, $) {
|
|
@@ -3052,12 +3052,12 @@ function nL(i) {
|
|
|
3052
3052
|
throw Error(jt(151));
|
|
3053
3053
|
for (var ce = te = null, le = U, fe = U = 0, Z = null, _e = V.next(); le !== null && !_e.done; fe++, _e = V.next()) {
|
|
3054
3054
|
le.index > fe ? (Z = le, le = null) : Z = le.sibling;
|
|
3055
|
-
var
|
|
3056
|
-
if (
|
|
3055
|
+
var Ae = C(B, le, _e.value, $);
|
|
3056
|
+
if (Ae === null) {
|
|
3057
3057
|
le === null && (le = Z);
|
|
3058
3058
|
break;
|
|
3059
3059
|
}
|
|
3060
|
-
i && le &&
|
|
3060
|
+
i && le && Ae.alternate === null && o(B, le), U = g(Ae, U, fe), ce === null ? te = Ae : ce.sibling = Ae, ce = Ae, le = Z;
|
|
3061
3061
|
}
|
|
3062
3062
|
if (_e.done)
|
|
3063
3063
|
return a(
|
|
@@ -6867,10 +6867,10 @@ var gG = pG(function(i) {
|
|
|
6867
6867
|
at[St--] = at[St];
|
|
6868
6868
|
return at[wt] = Ut, at;
|
|
6869
6869
|
}
|
|
6870
|
-
for (var Pt = 0,
|
|
6871
|
-
Ue[
|
|
6870
|
+
for (var Pt = 0, De = 0, Ue = new Array(bt + 1); Pt < wt; )
|
|
6871
|
+
Ue[De++] = at[Pt++];
|
|
6872
6872
|
for (Ue[wt] = Ut; Pt < bt; )
|
|
6873
|
-
Ue[++
|
|
6873
|
+
Ue[++De] = at[Pt++];
|
|
6874
6874
|
return Ue;
|
|
6875
6875
|
}, U = 1, V = 2, $ = 3, te = 4, ce = {
|
|
6876
6876
|
__hamt_isEmpty: !0
|
|
@@ -6901,7 +6901,7 @@ var gG = pG(function(i) {
|
|
|
6901
6901
|
children: Ut,
|
|
6902
6902
|
_modify: ue
|
|
6903
6903
|
};
|
|
6904
|
-
},
|
|
6904
|
+
}, Ae = function(Be, wt, Ut) {
|
|
6905
6905
|
return {
|
|
6906
6906
|
type: te,
|
|
6907
6907
|
edit: Be,
|
|
@@ -6912,52 +6912,52 @@ var gG = pG(function(i) {
|
|
|
6912
6912
|
}, Qe = function(Be) {
|
|
6913
6913
|
return Be === ce || Be.type === U || Be.type === V;
|
|
6914
6914
|
}, we = function(Be, wt, Ut, at, bt) {
|
|
6915
|
-
for (var St = [], Pt = at,
|
|
6916
|
-
Pt & 1 && (St[Ue] = bt[
|
|
6917
|
-
return St[wt] = Ut,
|
|
6915
|
+
for (var St = [], Pt = at, De = 0, Ue = 0; Pt; ++Ue)
|
|
6916
|
+
Pt & 1 && (St[Ue] = bt[De++]), Pt >>>= 1;
|
|
6917
|
+
return St[wt] = Ut, Ae(Be, De + 1, St);
|
|
6918
6918
|
}, Ze = function(Be, wt, Ut, at) {
|
|
6919
|
-
for (var bt = new Array(wt - 1), St = 0, Pt = 0,
|
|
6920
|
-
if (
|
|
6921
|
-
var it = at[
|
|
6922
|
-
it && !le(it) && (bt[St++] = it, Pt |= 1 <<
|
|
6919
|
+
for (var bt = new Array(wt - 1), St = 0, Pt = 0, De = 0, Ue = at.length; De < Ue; ++De)
|
|
6920
|
+
if (De !== Ut) {
|
|
6921
|
+
var it = at[De];
|
|
6922
|
+
it && !le(it) && (bt[St++] = it, Pt |= 1 << De);
|
|
6923
6923
|
}
|
|
6924
6924
|
return _e(Be, Pt, bt);
|
|
6925
|
-
},
|
|
6925
|
+
}, Ce = function We(Be, wt, Ut, at, bt, St) {
|
|
6926
6926
|
if (Ut === bt)
|
|
6927
6927
|
return Z(Be, Ut, [St, at]);
|
|
6928
|
-
var Pt = C(wt, Ut),
|
|
6929
|
-
return _e(Be, z(Pt) | z(
|
|
6930
|
-
},
|
|
6928
|
+
var Pt = C(wt, Ut), De = C(wt, bt);
|
|
6929
|
+
return _e(Be, z(Pt) | z(De), Pt === De ? [We(Be, wt + u, Ut, at, bt, St)] : Pt < De ? [at, St] : [St, at]);
|
|
6930
|
+
}, Ie = function(Be, wt, Ut, at, bt, St, Pt, De) {
|
|
6931
6931
|
for (var Ue = bt.length, it = 0; it < Ue; ++it) {
|
|
6932
6932
|
var ct = bt[it];
|
|
6933
6933
|
if (Ut(Pt, ct.key)) {
|
|
6934
6934
|
var lt = ct.value, _t = St(lt);
|
|
6935
|
-
return _t === lt ? bt : _t === m ? (--
|
|
6935
|
+
return _t === lt ? bt : _t === m ? (--De.value, Y(Be, it, bt)) : R(Be, it, fe(wt, at, Pt, _t), bt);
|
|
6936
6936
|
}
|
|
6937
6937
|
}
|
|
6938
6938
|
var xt = St();
|
|
6939
|
-
return xt === m ? bt : (++
|
|
6939
|
+
return xt === m ? bt : (++De.value, R(Be, Ue, fe(wt, at, Pt, xt), bt));
|
|
6940
6940
|
}, ke = function(Be, wt) {
|
|
6941
6941
|
return Be === wt.edit;
|
|
6942
6942
|
}, Ne = function(Be, wt, Ut, at, bt, St, Pt) {
|
|
6943
6943
|
if (wt(St, this.key)) {
|
|
6944
|
-
var
|
|
6945
|
-
return
|
|
6944
|
+
var De = at(this.value);
|
|
6945
|
+
return De === this.value ? this : De === m ? (--Pt.value, ce) : ke(Be, this) ? (this.value = De, this) : fe(Be, bt, St, De);
|
|
6946
6946
|
}
|
|
6947
6947
|
var Ue = at();
|
|
6948
|
-
return Ue === m ? this : (++Pt.value,
|
|
6948
|
+
return Ue === m ? this : (++Pt.value, Ce(Be, Ut, this.hash, this, bt, fe(Be, bt, St, Ue)));
|
|
6949
6949
|
}, Le = function(Be, wt, Ut, at, bt, St, Pt) {
|
|
6950
6950
|
if (bt === this.hash) {
|
|
6951
|
-
var
|
|
6951
|
+
var De = ke(Be, this), Ue = Ie(De, Be, wt, this.hash, this.children, at, St, Pt);
|
|
6952
6952
|
return Ue === this.children ? this : Ue.length > 1 ? Z(Be, this.hash, Ue) : Ue[0];
|
|
6953
6953
|
}
|
|
6954
6954
|
var it = at();
|
|
6955
|
-
return it === m ? this : (++Pt.value,
|
|
6955
|
+
return it === m ? this : (++Pt.value, Ce(Be, Ut, this.hash, this, bt, fe(Be, bt, St, it)));
|
|
6956
6956
|
}, ue = function(Be, wt, Ut, at, bt, St, Pt) {
|
|
6957
|
-
var
|
|
6957
|
+
var De = this.mask, Ue = this.children, it = C(Ut, bt), ct = z(it), lt = L(De, ct), _t = De & ct, xt = _t ? Ue[lt] : ce, vt = xt._modify(Be, wt, Ut + u, at, bt, St, Pt);
|
|
6958
6958
|
if (xt === vt)
|
|
6959
6959
|
return this;
|
|
6960
|
-
var Et = ke(Be, this), Mt =
|
|
6960
|
+
var Et = ke(Be, this), Mt = De, qt = void 0;
|
|
6961
6961
|
if (_t && le(vt)) {
|
|
6962
6962
|
if (Mt &= ~ct, !Mt)
|
|
6963
6963
|
return ce;
|
|
@@ -6966,25 +6966,25 @@ var gG = pG(function(i) {
|
|
|
6966
6966
|
qt = Y(Et, lt, Ue);
|
|
6967
6967
|
} else if (!_t && !le(vt)) {
|
|
6968
6968
|
if (Ue.length >= _)
|
|
6969
|
-
return we(Be, it, vt,
|
|
6969
|
+
return we(Be, it, vt, De, Ue);
|
|
6970
6970
|
Mt |= ct, qt = B(Et, lt, vt, Ue);
|
|
6971
6971
|
} else
|
|
6972
6972
|
qt = R(Et, lt, vt, Ue);
|
|
6973
6973
|
return Et ? (this.mask = Mt, this.children = qt, this) : _e(Be, Mt, qt);
|
|
6974
6974
|
}, ee = function(Be, wt, Ut, at, bt, St, Pt) {
|
|
6975
|
-
var
|
|
6975
|
+
var De = this.size, Ue = this.children, it = C(Ut, bt), ct = Ue[it], lt = (ct || ce)._modify(Be, wt, Ut + u, at, bt, St, Pt);
|
|
6976
6976
|
if (ct === lt)
|
|
6977
6977
|
return this;
|
|
6978
6978
|
var _t = ke(Be, this), xt = void 0;
|
|
6979
6979
|
if (le(ct) && !le(lt))
|
|
6980
|
-
++
|
|
6980
|
+
++De, xt = R(_t, it, lt, Ue);
|
|
6981
6981
|
else if (!le(ct) && le(lt)) {
|
|
6982
|
-
if (--
|
|
6983
|
-
return Ze(Be,
|
|
6982
|
+
if (--De, De <= b)
|
|
6983
|
+
return Ze(Be, De, it, Ue);
|
|
6984
6984
|
xt = R(_t, it, ce, Ue);
|
|
6985
6985
|
} else
|
|
6986
6986
|
xt = R(_t, it, lt, Ue);
|
|
6987
|
-
return _t ? (this.size =
|
|
6987
|
+
return _t ? (this.size = De, this.children = xt, this) : Ae(Be, De, xt);
|
|
6988
6988
|
};
|
|
6989
6989
|
ce._modify = function(We, Be, wt, Ut, at, bt, St) {
|
|
6990
6990
|
var Pt = Ut();
|
|
@@ -7003,8 +7003,8 @@ var gG = pG(function(i) {
|
|
|
7003
7003
|
return St(wt, at.key) ? at.value : We;
|
|
7004
7004
|
case V: {
|
|
7005
7005
|
if (Be === at.hash)
|
|
7006
|
-
for (var Pt = at.children,
|
|
7007
|
-
var it = Pt[
|
|
7006
|
+
for (var Pt = at.children, De = 0, Ue = Pt.length; De < Ue; ++De) {
|
|
7007
|
+
var it = Pt[De];
|
|
7008
7008
|
if (St(wt, it.key))
|
|
7009
7009
|
return it.value;
|
|
7010
7010
|
}
|
|
@@ -7060,12 +7060,12 @@ var gG = pG(function(i) {
|
|
|
7060
7060
|
K.prototype.has = function(We) {
|
|
7061
7061
|
return he(We, this);
|
|
7062
7062
|
};
|
|
7063
|
-
var
|
|
7063
|
+
var Se = function(Be, wt) {
|
|
7064
7064
|
return Be === wt;
|
|
7065
7065
|
};
|
|
7066
7066
|
a.make = function(We) {
|
|
7067
7067
|
return new K(0, 0, {
|
|
7068
|
-
keyEq: We && We.keyEq ||
|
|
7068
|
+
keyEq: We && We.keyEq || Se,
|
|
7069
7069
|
hash: We && We.hash || A
|
|
7070
7070
|
}, ce, 0);
|
|
7071
7071
|
}, a.empty = a.make();
|
|
@@ -7108,11 +7108,11 @@ var gG = pG(function(i) {
|
|
|
7108
7108
|
K.prototype.removeHash = K.prototype.deleteHash = function(We, Be) {
|
|
7109
7109
|
return ht(We, Be, this);
|
|
7110
7110
|
};
|
|
7111
|
-
var
|
|
7111
|
+
var Te = a.remove = function(We, Be) {
|
|
7112
7112
|
return ht(Be._config.hash(We), We, Be);
|
|
7113
7113
|
};
|
|
7114
7114
|
K.prototype.remove = K.prototype.delete = function(We) {
|
|
7115
|
-
return
|
|
7115
|
+
return Te(We, this);
|
|
7116
7116
|
};
|
|
7117
7117
|
var X = a.beginMutation = function(We) {
|
|
7118
7118
|
return new K(We._editable + 1, We._edit + 1, We._config, We._root, We._size);
|
|
@@ -7203,8 +7203,8 @@ var gG = pG(function(i) {
|
|
|
7203
7203
|
return We(Be, Ut.value, Ut.key);
|
|
7204
7204
|
for (var at = [Ut.children], bt = void 0; bt = at.pop(); )
|
|
7205
7205
|
for (var St = 0, Pt = bt.length; St < Pt; ) {
|
|
7206
|
-
var
|
|
7207
|
-
|
|
7206
|
+
var De = bt[St++];
|
|
7207
|
+
De && De.type && (De.type === U ? Be = We(Be, De.value, De.key) : at.push(De.children));
|
|
7208
7208
|
}
|
|
7209
7209
|
return Be;
|
|
7210
7210
|
};
|
|
@@ -9629,7 +9629,7 @@ function pO(i) {
|
|
|
9629
9629
|
return JX(a) !== void 0 && !S();
|
|
9630
9630
|
}
|
|
9631
9631
|
function L(K, F, H, ae, W) {
|
|
9632
|
-
|
|
9632
|
+
Ie(F, ae, W), R(K, H);
|
|
9633
9633
|
}
|
|
9634
9634
|
function R(K, F) {
|
|
9635
9635
|
Ze(K, F) && we(K), B(F, !0);
|
|
@@ -9650,25 +9650,25 @@ function pO(i) {
|
|
|
9650
9650
|
H == null && Em.set(F, H = /* @__PURE__ */ new Set()), H.add(K);
|
|
9651
9651
|
}
|
|
9652
9652
|
function V(K, F, H, ae, W, he) {
|
|
9653
|
-
return F.then((
|
|
9653
|
+
return F.then((Se) => {
|
|
9654
9654
|
if (!S())
|
|
9655
9655
|
throw we(K), Ed;
|
|
9656
|
-
const Me = yM(
|
|
9657
|
-
return L(K, H, W, Me, ae),
|
|
9658
|
-
}).catch((
|
|
9656
|
+
const Me = yM(Se);
|
|
9657
|
+
return L(K, H, W, Me, ae), Se;
|
|
9658
|
+
}).catch((Se) => {
|
|
9659
9659
|
if (!S())
|
|
9660
9660
|
throw we(K), Ed;
|
|
9661
|
-
if (Di(
|
|
9662
|
-
return $(K,
|
|
9663
|
-
const Me = Cm(
|
|
9664
|
-
throw L(K, H, W, Me, ae),
|
|
9661
|
+
if (Di(Se))
|
|
9662
|
+
return $(K, Se, H, ae, W, he);
|
|
9663
|
+
const Me = Cm(Se);
|
|
9664
|
+
throw L(K, H, W, Me, ae), Se;
|
|
9665
9665
|
});
|
|
9666
9666
|
}
|
|
9667
9667
|
function $(K, F, H, ae, W, he) {
|
|
9668
|
-
return F.then((
|
|
9668
|
+
return F.then((Se) => {
|
|
9669
9669
|
if (!S())
|
|
9670
9670
|
throw we(K), Ed;
|
|
9671
|
-
he.loadingDepKey != null && he.loadingDepPromise === F ? H.atomValues.set(he.loadingDepKey, yM(
|
|
9671
|
+
he.loadingDepKey != null && he.loadingDepPromise === F ? H.atomValues.set(he.loadingDepKey, yM(Se)) : K.getState().knownSelectors.forEach((mt) => {
|
|
9672
9672
|
H.atomValues.delete(mt);
|
|
9673
9673
|
});
|
|
9674
9674
|
const Me = le(K, H);
|
|
@@ -9686,18 +9686,18 @@ function pO(i) {
|
|
|
9686
9686
|
if (je.state !== "loading" && L(K, H, W, je, Ke), je.state === "hasError")
|
|
9687
9687
|
throw je.contents;
|
|
9688
9688
|
return je.contents;
|
|
9689
|
-
}).catch((
|
|
9690
|
-
if (
|
|
9689
|
+
}).catch((Se) => {
|
|
9690
|
+
if (Se instanceof fO)
|
|
9691
9691
|
throw Ed;
|
|
9692
9692
|
if (!S())
|
|
9693
9693
|
throw we(K), Ed;
|
|
9694
|
-
const Me = Cm(
|
|
9695
|
-
throw L(K, H, W, Me, ae),
|
|
9694
|
+
const Me = Cm(Se);
|
|
9695
|
+
throw L(K, H, W, Me, ae), Se;
|
|
9696
9696
|
});
|
|
9697
9697
|
}
|
|
9698
9698
|
function te(K, F, H, ae) {
|
|
9699
|
-
var W, he,
|
|
9700
|
-
if (Ze(K, ae) || F.version === ((W = K.getState()) === null || W === void 0 || (he = W.currentTree) === null || he === void 0 ? void 0 : he.version) || F.version === ((
|
|
9699
|
+
var W, he, Se, Me;
|
|
9700
|
+
if (Ze(K, ae) || F.version === ((W = K.getState()) === null || W === void 0 || (he = W.currentTree) === null || he === void 0 ? void 0 : he.version) || F.version === ((Se = K.getState()) === null || Se === void 0 || (Me = Se.nextTree) === null || Me === void 0 ? void 0 : Me.version)) {
|
|
9701
9701
|
var je, Ke, mt;
|
|
9702
9702
|
KX(a, H, K, (je = (Ke = K.getState()) === null || Ke === void 0 || (mt = Ke.nextTree) === null || mt === void 0 ? void 0 : mt.version) !== null && je !== void 0 ? je : K.getState().currentTree.version);
|
|
9703
9703
|
}
|
|
@@ -9707,7 +9707,7 @@ function pO(i) {
|
|
|
9707
9707
|
function ce(K, F, H) {
|
|
9708
9708
|
const ae = rJ(a);
|
|
9709
9709
|
let W = !0, he = !0;
|
|
9710
|
-
const
|
|
9710
|
+
const Se = () => {
|
|
9711
9711
|
ae(), he = !1;
|
|
9712
9712
|
};
|
|
9713
9713
|
let Me, je = !1, Ke;
|
|
@@ -9716,25 +9716,25 @@ function pO(i) {
|
|
|
9716
9716
|
loadingDepPromise: null
|
|
9717
9717
|
}, Ye = /* @__PURE__ */ new Map();
|
|
9718
9718
|
function rt({
|
|
9719
|
-
key:
|
|
9719
|
+
key: Te
|
|
9720
9720
|
}) {
|
|
9721
|
-
const X = Sm(K, F,
|
|
9722
|
-
switch (Ye.set(
|
|
9721
|
+
const X = Sm(K, F, Te);
|
|
9722
|
+
switch (Ye.set(Te, X), W || (te(K, F, new Set(Ye.keys()), H), Y(K, H)), X.state) {
|
|
9723
9723
|
case "hasValue":
|
|
9724
9724
|
return X.contents;
|
|
9725
9725
|
case "hasError":
|
|
9726
9726
|
throw X.contents;
|
|
9727
9727
|
case "loading":
|
|
9728
|
-
throw mt.loadingDepKey =
|
|
9728
|
+
throw mt.loadingDepKey = Te, mt.loadingDepPromise = X.contents, X.contents;
|
|
9729
9729
|
}
|
|
9730
9730
|
throw Bn("Invalid Loadable state");
|
|
9731
9731
|
}
|
|
9732
|
-
const ht = (
|
|
9732
|
+
const ht = (Te) => (...X) => {
|
|
9733
9733
|
if (he)
|
|
9734
9734
|
throw Bn("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");
|
|
9735
9735
|
return o == null && Qd(!1), iJ(
|
|
9736
9736
|
K,
|
|
9737
|
-
|
|
9737
|
+
Te,
|
|
9738
9738
|
X,
|
|
9739
9739
|
{
|
|
9740
9740
|
node: o
|
|
@@ -9746,9 +9746,9 @@ function pO(i) {
|
|
|
9746
9746
|
Me = u({
|
|
9747
9747
|
get: rt,
|
|
9748
9748
|
getCallback: ht
|
|
9749
|
-
}), Me = tJ(Me) ? rt(Me) : Me, ZX(Me) && (Me.state === "hasError" && (je = !0), Me = Me.contents), Di(Me) ? Me = V(K, Me, F, Ye, H, mt).finally(
|
|
9750
|
-
} catch (
|
|
9751
|
-
Me =
|
|
9749
|
+
}), Me = tJ(Me) ? rt(Me) : Me, ZX(Me) && (Me.state === "hasError" && (je = !0), Me = Me.contents), Di(Me) ? Me = V(K, Me, F, Ye, H, mt).finally(Se) : Se(), Me = Me instanceof dO ? Me.value : Me;
|
|
9750
|
+
} catch (Te) {
|
|
9751
|
+
Me = Te, Di(Me) ? Me = $(K, Me, F, Ye, H, mt).finally(Se) : (je = !0, Se());
|
|
9752
9752
|
}
|
|
9753
9753
|
return je ? Ke = Cm(Me) : Di(Me) ? Ke = GX(Me) : Ke = yM(Me), W = !1, Qe(K, H, Ye), te(K, F, new Set(Ye.keys()), H), [Ke, Ye];
|
|
9754
9754
|
}
|
|
@@ -9781,14 +9781,14 @@ function pO(i) {
|
|
|
9781
9781
|
var W;
|
|
9782
9782
|
return ((W = ae.loadingLoadable) === null || W === void 0 ? void 0 : W.state) === "loading" && U(K, ae.executionID), ae.loadingLoadable;
|
|
9783
9783
|
}
|
|
9784
|
-
const he = oJ(), [
|
|
9785
|
-
return
|
|
9784
|
+
const he = oJ(), [Se, Me] = ce(K, F, he);
|
|
9785
|
+
return Se.state === "loading" ? (Ae(K, he, Se, Me, F), U(K, he)) : (we(K), Ie(F, Se, Me)), Se;
|
|
9786
9786
|
}
|
|
9787
9787
|
function Z(K, F) {
|
|
9788
9788
|
const H = k7([I.has(K) ? [ji(I.get(K))] : [], My(pw(I, ([W]) => W !== K), ([, W]) => W)]);
|
|
9789
9789
|
function ae(W) {
|
|
9790
|
-
for (const [he,
|
|
9791
|
-
if (!Sm(K, F, he).is(
|
|
9790
|
+
for (const [he, Se] of W)
|
|
9791
|
+
if (!Sm(K, F, he).is(Se))
|
|
9792
9792
|
return !0;
|
|
9793
9793
|
return !1;
|
|
9794
9794
|
}
|
|
@@ -9806,7 +9806,7 @@ function pO(i) {
|
|
|
9806
9806
|
function _e(K) {
|
|
9807
9807
|
return I.get(K);
|
|
9808
9808
|
}
|
|
9809
|
-
function
|
|
9809
|
+
function Ae(K, F, H, ae, W) {
|
|
9810
9810
|
I.set(K, {
|
|
9811
9811
|
depValuesDiscoveredSoFarDuringAsyncWork: ae,
|
|
9812
9812
|
executionID: F,
|
|
@@ -9827,13 +9827,13 @@ function pO(i) {
|
|
|
9827
9827
|
var H;
|
|
9828
9828
|
return F === ((H = _e(K)) === null || H === void 0 ? void 0 : H.executionID);
|
|
9829
9829
|
}
|
|
9830
|
-
function
|
|
9830
|
+
function Ce(K) {
|
|
9831
9831
|
return Array.from(K.entries()).map(([F, H]) => [F, H.contents]);
|
|
9832
9832
|
}
|
|
9833
|
-
function
|
|
9833
|
+
function Ie(K, F, H) {
|
|
9834
9834
|
K.atomValues.set(a, F);
|
|
9835
9835
|
try {
|
|
9836
|
-
b.set(
|
|
9836
|
+
b.set(Ce(H), F);
|
|
9837
9837
|
} catch (ae) {
|
|
9838
9838
|
throw Bn(`Problem with setting cache for selector "${a}": ${ae.message}`);
|
|
9839
9839
|
}
|
|
@@ -9880,7 +9880,7 @@ function pO(i) {
|
|
|
9880
9880
|
set: (F, H, ae) => {
|
|
9881
9881
|
let W = !1;
|
|
9882
9882
|
const he = /* @__PURE__ */ new Map();
|
|
9883
|
-
function
|
|
9883
|
+
function Se({
|
|
9884
9884
|
key: mt
|
|
9885
9885
|
}) {
|
|
9886
9886
|
if (W)
|
|
@@ -9900,16 +9900,16 @@ function pO(i) {
|
|
|
9900
9900
|
const rt = typeof Ye == "function" ? (
|
|
9901
9901
|
// cast to any because we can't restrict type S from being a function itself without losing support for opaque types
|
|
9902
9902
|
// flowlint-next-line unclear-type:off
|
|
9903
|
-
Ye(
|
|
9903
|
+
Ye(Se(mt))
|
|
9904
9904
|
) : Ye;
|
|
9905
|
-
qX(F, H, mt.key, rt).forEach((
|
|
9905
|
+
qX(F, H, mt.key, rt).forEach((Te, X) => he.set(X, Te));
|
|
9906
9906
|
}
|
|
9907
9907
|
function je(mt) {
|
|
9908
9908
|
Me(mt, XX);
|
|
9909
9909
|
}
|
|
9910
9910
|
const Ke = g({
|
|
9911
9911
|
set: Me,
|
|
9912
|
-
get:
|
|
9912
|
+
get: Se,
|
|
9913
9913
|
reset: je
|
|
9914
9914
|
}, ae);
|
|
9915
9915
|
if (Ke !== void 0)
|
|
@@ -10000,19 +10000,19 @@ function gJ(i) {
|
|
|
10000
10000
|
d++;
|
|
10001
10001
|
const ce = () => {
|
|
10002
10002
|
var _e;
|
|
10003
|
-
d--, (_e = m.get(U)) === null || _e === void 0 || _e.forEach((
|
|
10003
|
+
d--, (_e = m.get(U)) === null || _e === void 0 || _e.forEach((Ae) => Ae()), m.delete(U);
|
|
10004
10004
|
};
|
|
10005
10005
|
if (U.getState().knownAtoms.add(o), _.state === "loading") {
|
|
10006
10006
|
const _e = () => {
|
|
10007
|
-
var
|
|
10008
|
-
((
|
|
10007
|
+
var Ae;
|
|
10008
|
+
((Ae = U.getState().nextTree) !== null && Ae !== void 0 ? Ae : U.getState().currentTree).atomValues.has(o) || dJ(U, B);
|
|
10009
10009
|
};
|
|
10010
10010
|
_.contents.finally(_e);
|
|
10011
10011
|
}
|
|
10012
10012
|
const le = (te = i.effects) !== null && te !== void 0 ? te : i.effects_UNSTABLE;
|
|
10013
10013
|
if (le != null) {
|
|
10014
10014
|
let Ze = function(ue) {
|
|
10015
|
-
if (
|
|
10015
|
+
if (Ae && ue.key === o) {
|
|
10016
10016
|
const ee = _e;
|
|
10017
10017
|
return ee instanceof Ga ? C(U, V) : Di(ee) ? vM(ee.then((K) => K instanceof Ga ? (
|
|
10018
10018
|
// Cast T to S
|
|
@@ -10023,19 +10023,19 @@ function gJ(i) {
|
|
|
10023
10023
|
);
|
|
10024
10024
|
}
|
|
10025
10025
|
return hJ(U, ue);
|
|
10026
|
-
},
|
|
10026
|
+
}, Ce = function(ue) {
|
|
10027
10027
|
return Ze(ue).toPromise();
|
|
10028
|
-
},
|
|
10028
|
+
}, Ie = function(ue) {
|
|
10029
10029
|
var ee;
|
|
10030
10030
|
const K = aJ(U, (ee = U.getState().nextTree) !== null && ee !== void 0 ? ee : U.getState().currentTree, ue.key);
|
|
10031
|
-
return
|
|
10031
|
+
return Ae && ue.key === o && !(_e instanceof Ga) ? {
|
|
10032
10032
|
...K,
|
|
10033
10033
|
isSet: !0,
|
|
10034
10034
|
loadable: Ze(ue)
|
|
10035
10035
|
} : K;
|
|
10036
|
-
}, _e = ql,
|
|
10036
|
+
}, _e = ql, Ae = !0, Qe = !1, we = null;
|
|
10037
10037
|
const ke = (ue) => (ee) => {
|
|
10038
|
-
if (
|
|
10038
|
+
if (Ae) {
|
|
10039
10039
|
const K = Ze(B), F = K.state === "hasValue" ? K.contents : ql;
|
|
10040
10040
|
_e = typeof ee == "function" ? (
|
|
10041
10041
|
// cast to any because we can't restrict T from being a function without losing support for opaque types
|
|
@@ -10073,10 +10073,10 @@ function gJ(i) {
|
|
|
10073
10073
|
previousTree: he
|
|
10074
10074
|
} = H.getState();
|
|
10075
10075
|
he || (he = W);
|
|
10076
|
-
const
|
|
10077
|
-
if (
|
|
10076
|
+
const Se = (ae = W.atomValues.get(o)) !== null && ae !== void 0 ? ae : _;
|
|
10077
|
+
if (Se.state === "hasValue") {
|
|
10078
10078
|
var Me, je, Ke, mt;
|
|
10079
|
-
const Ye =
|
|
10079
|
+
const Ye = Se.contents, rt = (Me = he.atomValues.get(o)) !== null && Me !== void 0 ? Me : _, ht = rt.state === "hasValue" ? rt.contents : ql;
|
|
10080
10080
|
((je = we) === null || je === void 0 ? void 0 : je.effect) !== ue || ((Ke = we) === null || Ke === void 0 ? void 0 : Ke.value) !== Ye ? ee(Ye, ht, !W.atomValues.has(o)) : ((mt = we) === null || mt === void 0 ? void 0 : mt.effect) === ue && (we = null);
|
|
10081
10081
|
}
|
|
10082
10082
|
}, o);
|
|
@@ -10092,9 +10092,9 @@ function gJ(i) {
|
|
|
10092
10092
|
setSelf: ke(ue),
|
|
10093
10093
|
resetSelf: Ne(ue),
|
|
10094
10094
|
onSet: Le(ue),
|
|
10095
|
-
getPromise:
|
|
10095
|
+
getPromise: Ce,
|
|
10096
10096
|
getLoadable: Ze,
|
|
10097
|
-
getInfo_UNSTABLE:
|
|
10097
|
+
getInfo_UNSTABLE: Ie
|
|
10098
10098
|
});
|
|
10099
10099
|
if (ee != null) {
|
|
10100
10100
|
var fe;
|
|
@@ -10103,7 +10103,7 @@ function gJ(i) {
|
|
|
10103
10103
|
} catch (ee) {
|
|
10104
10104
|
_e = ee, Qe = !0;
|
|
10105
10105
|
}
|
|
10106
|
-
if (
|
|
10106
|
+
if (Ae = !1, !(_e instanceof Ga)) {
|
|
10107
10107
|
var Z;
|
|
10108
10108
|
const ue = Qe ? _M(_e) : Di(_e) ? vM(A(U, _e)) : uu(zd(_e));
|
|
10109
10109
|
ue.contents, V.atomValues.set(o, ue), (Z = U.getState().nextTree) === null || Z === void 0 || Z.atomValues.set(o, ue);
|
|
@@ -11464,21 +11464,21 @@ class m0 extends Ry {
|
|
|
11464
11464
|
ke && ke.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
11465
11465
|
}
|
|
11466
11466
|
let Ze = [];
|
|
11467
|
-
const
|
|
11468
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
11469
|
-
for (let ke = 0; ke <
|
|
11470
|
-
Ze.push(
|
|
11467
|
+
const Ce = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
11468
|
+
if (this.options.saveMissingTo === "fallback" && Ce && Ce[0])
|
|
11469
|
+
for (let ke = 0; ke < Ce.length; ke++)
|
|
11470
|
+
Ze.push(Ce[ke]);
|
|
11471
11471
|
else
|
|
11472
11472
|
this.options.saveMissingTo === "all" ? Ze = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Ze.push(a.lng || this.language);
|
|
11473
|
-
const
|
|
11473
|
+
const Ie = (ke, Ne, Le) => {
|
|
11474
11474
|
const ue = le && Le !== C ? Le : Qe;
|
|
11475
11475
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(ke, m, Ne, ue, we, a) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(ke, m, Ne, ue, we, a), this.emit("missingKey", ke, m, Ne, C);
|
|
11476
11476
|
};
|
|
11477
11477
|
this.options.saveMissing && (this.options.saveMissingPlurals && ce ? Ze.forEach((ke) => {
|
|
11478
11478
|
this.pluralResolver.getSuffixes(ke, a).forEach((Ne) => {
|
|
11479
|
-
|
|
11479
|
+
Ie([ke], _ + Ne, a[`defaultValue${Ne}`] || _e);
|
|
11480
11480
|
});
|
|
11481
|
-
}) :
|
|
11481
|
+
}) : Ie(Ze, _, _e));
|
|
11482
11482
|
}
|
|
11483
11483
|
C = this.extendTranslation(C, o, a, S, u), te && C === _ && this.options.appendNamespaceToMissingKey && (C = `${m}:${_}`), (te || $) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${m}:${_}` : _, $ ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
|
11484
11484
|
}
|
|
@@ -13560,15 +13560,15 @@ var YO = { exports: {} };
|
|
|
13560
13560
|
}
|
|
13561
13561
|
return t === e;
|
|
13562
13562
|
}
|
|
13563
|
-
const
|
|
13563
|
+
const Ae = Math.PI / 180, Qe = 180 / Math.PI;
|
|
13564
13564
|
function we(t) {
|
|
13565
|
-
return t *
|
|
13565
|
+
return t * Ae;
|
|
13566
13566
|
}
|
|
13567
13567
|
function Ze(t) {
|
|
13568
13568
|
return t * Qe;
|
|
13569
13569
|
}
|
|
13570
|
-
const
|
|
13571
|
-
function
|
|
13570
|
+
const Ce = [[0, 0], [1, 0], [1, 1], [0, 1]];
|
|
13571
|
+
function Ie(t) {
|
|
13572
13572
|
if (t <= 0)
|
|
13573
13573
|
return 0;
|
|
13574
13574
|
if (t >= 1)
|
|
@@ -13635,9 +13635,9 @@ var YO = { exports: {} };
|
|
|
13635
13635
|
}
|
|
13636
13636
|
return n;
|
|
13637
13637
|
}
|
|
13638
|
-
let
|
|
13638
|
+
let Se = 1;
|
|
13639
13639
|
function Me() {
|
|
13640
|
-
return
|
|
13640
|
+
return Se++;
|
|
13641
13641
|
}
|
|
13642
13642
|
function je() {
|
|
13643
13643
|
return function t(e) {
|
|
@@ -13664,7 +13664,7 @@ var YO = { exports: {} };
|
|
|
13664
13664
|
r[s] = e.call(n || this, t[s], s, t);
|
|
13665
13665
|
return r;
|
|
13666
13666
|
}
|
|
13667
|
-
function
|
|
13667
|
+
function Te(t, e, n) {
|
|
13668
13668
|
const r = {};
|
|
13669
13669
|
for (const s in t)
|
|
13670
13670
|
e.call(n || this, t[s], s, t) && (r[s] = t[s]);
|
|
@@ -13761,8 +13761,8 @@ var YO = { exports: {} };
|
|
|
13761
13761
|
function Pt(t) {
|
|
13762
13762
|
St++, St > We && (t.getActor().send("enforceCacheSizeLimit", Kn), St = 0);
|
|
13763
13763
|
}
|
|
13764
|
-
const
|
|
13765
|
-
typeof Object.freeze == "function" && Object.freeze(
|
|
13764
|
+
const De = { Unknown: "Unknown", Style: "Style", Source: "Source", Tile: "Tile", Glyphs: "Glyphs", SpriteImage: "SpriteImage", SpriteJSON: "SpriteJSON", Image: "Image", Model: "Model" };
|
|
13765
|
+
typeof Object.freeze == "function" && Object.freeze(De);
|
|
13766
13766
|
class Ue extends Error {
|
|
13767
13767
|
constructor(e, n, r) {
|
|
13768
13768
|
n === 401 && Dn(r) && (e += ": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"), super(e), this.status = n, this.url = r;
|
|
@@ -18054,7 +18054,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
18054
18054
|
return c.possiblyEvaluate(e, n, r);
|
|
18055
18055
|
{
|
|
18056
18056
|
const h = (s - this.begin) / (this.end - this.begin);
|
|
18057
|
-
return this.property.interpolate(c.possiblyEvaluate(e, n, r), l,
|
|
18057
|
+
return this.property.interpolate(c.possiblyEvaluate(e, n, r), l, Ie(h));
|
|
18058
18058
|
}
|
|
18059
18059
|
}
|
|
18060
18060
|
return l;
|
|
@@ -18261,7 +18261,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
18261
18261
|
this._unevaluatedLayout && (this.layout = this._unevaluatedLayout.possiblyEvaluate(e, void 0, n)), this.paint = this._transitioningPaint.possiblyEvaluate(e, void 0, n);
|
|
18262
18262
|
}
|
|
18263
18263
|
serialize() {
|
|
18264
|
-
return
|
|
18264
|
+
return Te({ id: this.id, type: this.type, slot: this.slot, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() }, (e, n) => !(e === void 0 || n === "layout" && !Object.keys(e).length || n === "paint" && !Object.keys(e).length));
|
|
18265
18265
|
}
|
|
18266
18266
|
_validate(e, n, r, s, l = {}) {
|
|
18267
18267
|
return (!l || l.validate !== !1) && wp(this, e.call(Ec, { key: n, layerType: this.type, objectKey: r, value: s, styleSpec: Oe, style: { glyphs: !0, sprite: !0 } }));
|
|
@@ -24125,7 +24125,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
24125
24125
|
}
|
|
24126
24126
|
}
|
|
24127
24127
|
Wc.loadGlyphRange = function(t, e, n, r, s) {
|
|
24128
|
-
const l = 256 * e, c = l + 255, h = r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}", t).replace("{range}", `${l}-${c}`),
|
|
24128
|
+
const l = 256 * e, c = l + 255, h = r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}", t).replace("{range}", `${l}-${c}`), De.Glyphs);
|
|
24129
24129
|
_t(h, (f, p) => {
|
|
24130
24130
|
if (f)
|
|
24131
24131
|
s(f);
|
|
@@ -27712,7 +27712,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
27712
27712
|
e.isTerrainDEM || (It = $e.getMinMaxForTile(Re.tileID)), It || (It = { min: P, max: O });
|
|
27713
27713
|
const Tt = function(zt) {
|
|
27714
27714
|
const Gt = Math.round((zt + 45 + 360) % 360 / 90) % 4;
|
|
27715
|
-
return
|
|
27715
|
+
return Ce[Gt];
|
|
27716
27716
|
}(this.rotation), At = [Tt[0] * He, Tt[1] * He, It.max];
|
|
27717
27717
|
de.transformMat4(At, At, st), tt = (1 - At[1]) * this.height * 0.5 < ye;
|
|
27718
27718
|
}
|
|
@@ -29471,7 +29471,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
29471
29471
|
load(e, n) {
|
|
29472
29472
|
if (this._loaded = n || !1, this.fire(new gt("dataloading", { dataType: "source" })), this.url = this.options.url, !this.url)
|
|
29473
29473
|
return e && (this.coordinates = e), this._loaded = !0, void this._finishLoading();
|
|
29474
|
-
this._imageRequest = qt(this.map._requestManager.transformRequest(this.url,
|
|
29474
|
+
this._imageRequest = qt(this.map._requestManager.transformRequest(this.url, De.Image), (r, s) => {
|
|
29475
29475
|
if (this._imageRequest = null, this._loaded = !0, r)
|
|
29476
29476
|
this.fire(new en(r));
|
|
29477
29477
|
else if (s) {
|
|
@@ -30606,7 +30606,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
30606
30606
|
h.vector_layers && (f.vectorLayers = h.vector_layers, f.vectorLayerIds = f.vectorLayers.map((p) => p.id)), f.tiles = e.canonicalizeTileset(f, t.url), s(null, f);
|
|
30607
30607
|
}
|
|
30608
30608
|
};
|
|
30609
|
-
return t.url ? lt(e.transformRequest(e.normalizeSourceURL(t.url, null, n, r),
|
|
30609
|
+
return t.url ? lt(e.transformRequest(e.normalizeSourceURL(t.url, null, n, r), De.Source), l) : nn.frame(() => l(null, t));
|
|
30610
30610
|
}
|
|
30611
30611
|
class Rg {
|
|
30612
30612
|
constructor(e, n, r) {
|
|
@@ -30875,7 +30875,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
30875
30875
|
return W({}, this._options);
|
|
30876
30876
|
}
|
|
30877
30877
|
loadTile(e, n) {
|
|
30878
|
-
const r = this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles, this.scheme)), s = { request: this.map._requestManager.transformRequest(r,
|
|
30878
|
+
const r = this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles, this.scheme)), s = { request: this.map._requestManager.transformRequest(r, De.Tile), data: void 0, uid: e.uid, tileID: e.tileID, tileZoom: e.tileZoom, zoom: e.tileID.overscaledZ, tileSize: this.tileSize * e.tileID.overscaleFactor(), type: this.type, source: this.id, scope: this.scope, pixelRatio: nn.devicePixelRatio, showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId, isSymbolTile: e.isSymbolTile, brightness: this.map.style && this.map.style.getBrightness() || 0, extraShadowCaster: e.isExtraShadowCaster };
|
|
30879
30879
|
if (s.request.collectResourceTiming = this._collectResourceTiming, e.actor && e.state !== "expired")
|
|
30880
30880
|
e.state === "loading" ? e.reloadCallback = n : e.request = e.actor.send("reloadTile", s, l.bind(this));
|
|
30881
30881
|
else if (e.actor = this._tileWorkers[r] = this._tileWorkers[r] || this.dispatcher.getActor(), this.dispatcher.ready)
|
|
@@ -30943,7 +30943,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
30943
30943
|
}
|
|
30944
30944
|
loadTile(e, n) {
|
|
30945
30945
|
const r = nn.devicePixelRatio >= 2, s = this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles, this.scheme), r, this.tileSize);
|
|
30946
|
-
e.request = qt(this.map._requestManager.transformRequest(s,
|
|
30946
|
+
e.request = qt(this.map._requestManager.transformRequest(s, De.Tile), (l, c, h, f) => (delete e.request, e.aborted ? (e.state = "unloaded", n(null)) : l ? (e.state = "errored", n(l)) : c ? (this.map._refreshExpiredTiles && e.setExpiryData({ cacheControl: h, expires: f }), e.setTexture(c, this.map.painter), e.state = "loaded", Pt(this.dispatcher), void n(null)) : n(null)));
|
|
30947
30947
|
}
|
|
30948
30948
|
abortTile(e, n) {
|
|
30949
30949
|
e.request && (e.request.cancel(), delete e.request), n();
|
|
@@ -31446,7 +31446,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
31446
31446
|
function r(s, l) {
|
|
31447
31447
|
s && (t.state = "errored", e(s)), l && (t.dem = l, t.dem.onDeserialize(), t.needsHillshadePrepare = !0, t.needsDEMTextureUpload = !0, t.state = "loaded", e(null));
|
|
31448
31448
|
}
|
|
31449
|
-
t.request = qt(this.map._requestManager.transformRequest(n,
|
|
31449
|
+
t.request = qt(this.map._requestManager.transformRequest(n, De.Tile), function(s, l, c, h) {
|
|
31450
31450
|
if (delete t.request, t.aborted)
|
|
31451
31451
|
t.state = "unloaded", e(null);
|
|
31452
31452
|
else if (s)
|
|
@@ -31493,7 +31493,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
31493
31493
|
const t = W({}, this.workerOptions);
|
|
31494
31494
|
t.scope = this.scope;
|
|
31495
31495
|
const e = this._data;
|
|
31496
|
-
typeof e == "string" ? (t.request = this.map._requestManager.transformRequest(nn.resolveURL(e),
|
|
31496
|
+
typeof e == "string" ? (t.request = this.map._requestManager.transformRequest(nn.resolveURL(e), De.Source), t.request.collectResourceTiming = this._collectResourceTiming) : t.data = JSON.stringify(e), this._pendingLoad = this.actor.send(`${this.type}.loadData`, t, (n, r) => {
|
|
31497
31497
|
if (this._loaded = !0, this._pendingLoad = null, n)
|
|
31498
31498
|
this.fire(new en(n));
|
|
31499
31499
|
else {
|
|
@@ -31536,7 +31536,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
31536
31536
|
const t = this.options;
|
|
31537
31537
|
this.urls = [];
|
|
31538
31538
|
for (const e of t.urls)
|
|
31539
|
-
this.urls.push(this.map._requestManager.transformRequest(e,
|
|
31539
|
+
this.urls.push(this.map._requestManager.transformRequest(e, De.Source).url);
|
|
31540
31540
|
(function(e, n) {
|
|
31541
31541
|
const r = m.document.createElement("video");
|
|
31542
31542
|
r.muted = !0, r.onloadstart = function() {
|
|
@@ -31589,7 +31589,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
31589
31589
|
load() {
|
|
31590
31590
|
const t = [];
|
|
31591
31591
|
for (const e in this._options.models) {
|
|
31592
|
-
const n = this._options.models[e], r = DC(this.map._requestManager.transformRequest(n.uri,
|
|
31592
|
+
const n = this._options.models[e], r = DC(this.map._requestManager.transformRequest(n.uri, De.Model).url).then((s) => {
|
|
31593
31593
|
if (!s)
|
|
31594
31594
|
return;
|
|
31595
31595
|
const l = h2(s), c = new bA(e, n.position, n.orientation, l);
|
|
@@ -31646,7 +31646,7 @@ Use an identity property function instead: ${M}.`)];
|
|
|
31646
31646
|
return this._loaded;
|
|
31647
31647
|
}
|
|
31648
31648
|
loadTile(t, e) {
|
|
31649
|
-
const n = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme)), r = { request: this.map._requestManager.transformRequest(n,
|
|
31649
|
+
const n = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme)), r = { request: this.map._requestManager.transformRequest(n, De.Tile), data: void 0, uid: t.uid, tileID: t.tileID, tileZoom: t.tileZoom, zoom: t.tileID.overscaledZ, tileSize: this.tileSize * t.tileID.overscaleFactor(), type: this.type, source: this.id, scope: this.scope, showCollisionBoxes: this.map.showCollisionBoxes, isSymbolTile: t.isSymbolTile, brightness: this.map.style && this.map.style.getBrightness() || 0 };
|
|
31650
31650
|
if (t.actor && t.state !== "expired")
|
|
31651
31651
|
if (t.state === "loading")
|
|
31652
31652
|
t.reloadCallback = e;
|
|
@@ -35329,7 +35329,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
35329
35329
|
const Ee = v.getTile(xe), ge = fn.disabled, ye = y.prevTerrainTileForTile[xe.key], Re = y.terrainTileForTile[xe.key];
|
|
35330
35330
|
iS(ye, Re) && ou.newMorphing(xe.key, ye, Re, M, 250), w.activeTexture.set(T.TEXTURE0), Ee.texture && Ee.texture.bind(T.LINEAR, T.CLAMP_TO_EDGE);
|
|
35331
35331
|
const Ve = ou.getMorphValuesForProxy(xe.key), Fe = Ve ? 1 : 0;
|
|
35332
|
-
Ve && js(re, { morphing: { srcDemTile: Ve.from, dstDemTile: Ve.to, phase:
|
|
35332
|
+
Ve && js(re, { morphing: { srcDemTile: Ve.from, dstDemTile: Ve.to, phase: Ie(Ve.phase) } });
|
|
35333
35333
|
const qe = Vp(xe.canonical), Xe = DR(qe.getCenter().lat), tt = ND(xe.canonical, qe, Xe, pe.worldSize / pe._pixelsPerMercatorPixel), $e = Sa(uo(xe.canonical)), st = nS(pe.expandedFarZProjMatrix, ie, Q, $e, qi(pe.zoom), G, pe.frustumCorners.TL, pe.frustumCorners.TR, pe.frustumCorners.BR, pe.frustumCorners.BL, pe.globeCenterInViewSpace, pe.globeRadius, J, ne, tt);
|
|
35334
35334
|
if (k(xe, Fe), D && (y.setupElevationDraw(Ee, D, re), p.uploadCommonUniforms(w, D, xe.toUnwrapped()), q)) {
|
|
35335
35335
|
const [It, Tt, At] = q.getGridBuffers(Xe, ne !== 0);
|
|
@@ -35376,7 +35376,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
35376
35376
|
iS(ie, re) && ou.newMorphing(G.key, ie, re, f, 250), p.activeTexture.set(y.TEXTURE0), q.texture && q.texture.bind(y.LINEAR, y.CLAMP_TO_EDGE);
|
|
35377
35377
|
const pe = ou.getMorphValuesForProxy(G.key), ne = pe ? 1 : 0;
|
|
35378
35378
|
let me;
|
|
35379
|
-
pe && (me = { morphing: { srcDemTile: pe.from, dstDemTile: pe.to, phase:
|
|
35379
|
+
pe && (me = { morphing: { srcDemTile: pe.from, dstDemTile: pe.to, phase: Ie(pe.phase) } });
|
|
35380
35380
|
const xe = tS(G.projMatrix, nQ(G.canonical, N.renderWorldCopies) ? j / 10 : j, k);
|
|
35381
35381
|
if (T(ne), !v)
|
|
35382
35382
|
continue;
|
|
@@ -37927,7 +37927,7 @@ ${r.vertexSource}`;
|
|
|
37927
37927
|
super(), this.requestManager = e, this.models = { "": {} }, this.numModelsLoading = {};
|
|
37928
37928
|
}
|
|
37929
37929
|
loadModel(e, n) {
|
|
37930
|
-
return DC(this.requestManager.transformRequest(n,
|
|
37930
|
+
return DC(this.requestManager.transformRequest(n, De.Model).url).then((r) => {
|
|
37931
37931
|
if (!r)
|
|
37932
37932
|
return;
|
|
37933
37933
|
const s = h2(r), l = new bA(e, void 0, void 0, s);
|
|
@@ -38019,7 +38019,7 @@ ${r.vertexSource}`;
|
|
|
38019
38019
|
const s = this.importsCache.get(e);
|
|
38020
38020
|
if (s)
|
|
38021
38021
|
return this._load(s, r);
|
|
38022
|
-
const l = this.map._requestManager.transformRequest(e,
|
|
38022
|
+
const l = this.map._requestManager.transformRequest(e, De.Style);
|
|
38023
38023
|
this._request = lt(l, (c, h) => {
|
|
38024
38024
|
if (this._request = null, c)
|
|
38025
38025
|
this.fire(new en(c));
|
|
@@ -38194,9 +38194,9 @@ ${r.vertexSource}`;
|
|
|
38194
38194
|
this._spriteRequest = function(n, r, s) {
|
|
38195
38195
|
let l, c, h;
|
|
38196
38196
|
const f = nn.devicePixelRatio > 1 ? "@2x" : "";
|
|
38197
|
-
let p = lt(r.transformRequest(r.normalizeSpriteURL(n, f, ".json"),
|
|
38197
|
+
let p = lt(r.transformRequest(r.normalizeSpriteURL(n, f, ".json"), De.SpriteJSON), (x, M) => {
|
|
38198
38198
|
p = null, h || (h = x, l = M, v());
|
|
38199
|
-
}), y = qt(r.transformRequest(r.normalizeSpriteURL(n, f, ".png"),
|
|
38199
|
+
}), y = qt(r.transformRequest(r.normalizeSpriteURL(n, f, ".png"), De.SpriteImage), (x, M) => {
|
|
38200
38200
|
y = null, h || (h = x, c = M, v());
|
|
38201
38201
|
});
|
|
38202
38202
|
function v() {
|
|
@@ -38801,7 +38801,7 @@ ${r.vertexSource}`;
|
|
|
38801
38801
|
serialize() {
|
|
38802
38802
|
this._checkLoaded();
|
|
38803
38803
|
const e = this.getTerrain(), n = e && this.terrain && this.terrain.scope === this.scope ? e : this.stylesheet.terrain;
|
|
38804
|
-
return
|
|
38804
|
+
return Te({ version: this.stylesheet.version, name: this.stylesheet.name, metadata: this.stylesheet.metadata, imports: this._serializeImports(), schema: this.stylesheet.schema, camera: this.stylesheet.camera, light: this.stylesheet.light, lights: this.stylesheet.lights, terrain: n, fog: this.stylesheet.fog, center: this.stylesheet.center, zoom: this.stylesheet.zoom, bearing: this.stylesheet.bearing, pitch: this.stylesheet.pitch, sprite: this.stylesheet.sprite, glyphs: this.stylesheet.glyphs, transition: this.stylesheet.transition, projection: this.stylesheet.projection, sources: this._serializeSources(), layers: this._serializeLayers(this._order) }, (r) => r !== void 0);
|
|
38805
38805
|
}
|
|
38806
38806
|
_updateLayer(e) {
|
|
38807
38807
|
this._changes.updateLayer(e);
|
|
@@ -41115,7 +41115,7 @@ ${r.vertexSource}`;
|
|
|
41115
41115
|
return this._start;
|
|
41116
41116
|
if (e >= this._endTime)
|
|
41117
41117
|
return this._end;
|
|
41118
|
-
const n =
|
|
41118
|
+
const n = Ie((e - this._startTime) / (this._endTime - this._startTime));
|
|
41119
41119
|
return this._start * (1 - n) + this._end * n;
|
|
41120
41120
|
}
|
|
41121
41121
|
isEasing(e) {
|
|
@@ -41485,7 +41485,7 @@ ${r.vertexSource}`;
|
|
|
41485
41485
|
}
|
|
41486
41486
|
_diffStyle(t, e) {
|
|
41487
41487
|
if (typeof t == "string") {
|
|
41488
|
-
const n = this._requestManager.normalizeStyleURL(t), r = this._requestManager.transformRequest(n,
|
|
41488
|
+
const n = this._requestManager.normalizeStyleURL(t), r = this._requestManager.transformRequest(n, De.Style);
|
|
41489
41489
|
lt(r, (s, l) => {
|
|
41490
41490
|
s ? this.fire(new en(s)) : l && this._updateDiff(l, e);
|
|
41491
41491
|
});
|
|
@@ -41564,7 +41564,7 @@ ${r.vertexSource}`;
|
|
|
41564
41564
|
this.style.removeImage(t);
|
|
41565
41565
|
}
|
|
41566
41566
|
loadImage(t, e) {
|
|
41567
|
-
qt(this._requestManager.transformRequest(t,
|
|
41567
|
+
qt(this._requestManager.transformRequest(t, De.Image), (n, r) => {
|
|
41568
41568
|
e(n, r instanceof m.HTMLImageElement ? nn.getImageData(r) : r);
|
|
41569
41569
|
});
|
|
41570
41570
|
}
|
|
@@ -42484,24 +42484,24 @@ ${r.vertexSource}`;
|
|
|
42484
42484
|
});
|
|
42485
42485
|
}, b.r = EC, b.s = am, b.t = Qh, b.v = ae, b.w = m;
|
|
42486
42486
|
}), g(["./shared"], function(b) {
|
|
42487
|
-
function m(
|
|
42488
|
-
if (typeof
|
|
42489
|
-
return JSON.stringify(
|
|
42490
|
-
if (Array.isArray(
|
|
42487
|
+
function m(Te) {
|
|
42488
|
+
if (typeof Te == "number" || typeof Te == "boolean" || typeof Te == "string" || Te == null)
|
|
42489
|
+
return JSON.stringify(Te);
|
|
42490
|
+
if (Array.isArray(Te)) {
|
|
42491
42491
|
let oe = "[";
|
|
42492
|
-
for (const se of
|
|
42492
|
+
for (const se of Te)
|
|
42493
42493
|
oe += `${m(se)},`;
|
|
42494
42494
|
return `${oe}]`;
|
|
42495
42495
|
}
|
|
42496
42496
|
let X = "{";
|
|
42497
|
-
for (const oe of Object.keys(
|
|
42498
|
-
X += `${oe}:${m(
|
|
42497
|
+
for (const oe of Object.keys(Te).sort())
|
|
42498
|
+
X += `${oe}:${m(Te[oe])},`;
|
|
42499
42499
|
return `${X}}`;
|
|
42500
42500
|
}
|
|
42501
|
-
function I(
|
|
42501
|
+
function I(Te) {
|
|
42502
42502
|
let X = "";
|
|
42503
42503
|
for (const oe of b.r)
|
|
42504
|
-
X += `/${m(
|
|
42504
|
+
X += `/${m(Te[oe])}`;
|
|
42505
42505
|
return X;
|
|
42506
42506
|
}
|
|
42507
42507
|
class A {
|
|
@@ -42558,30 +42558,30 @@ ${r.vertexSource}`;
|
|
|
42558
42558
|
return this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height), se;
|
|
42559
42559
|
}
|
|
42560
42560
|
}
|
|
42561
|
-
function C(
|
|
42562
|
-
if (
|
|
42563
|
-
z(
|
|
42564
|
-
for (var oe = 1; oe <
|
|
42565
|
-
z(
|
|
42561
|
+
function C(Te, X) {
|
|
42562
|
+
if (Te.length !== 0) {
|
|
42563
|
+
z(Te[0], X);
|
|
42564
|
+
for (var oe = 1; oe < Te.length; oe++)
|
|
42565
|
+
z(Te[oe], !X);
|
|
42566
42566
|
}
|
|
42567
42567
|
}
|
|
42568
|
-
function z(
|
|
42569
|
-
for (var oe = 0, se = 0, Ge = 0, et =
|
|
42570
|
-
var Dt = (
|
|
42568
|
+
function z(Te, X) {
|
|
42569
|
+
for (var oe = 0, se = 0, Ge = 0, et = Te.length, ot = et - 1; Ge < et; ot = Ge++) {
|
|
42570
|
+
var Dt = (Te[Ge][0] - Te[ot][0]) * (Te[ot][1] + Te[Ge][1]), Je = oe + Dt;
|
|
42571
42571
|
se += Math.abs(oe) >= Math.abs(Dt) ? oe - Je + Dt : Dt - Je + oe, oe = Je;
|
|
42572
42572
|
}
|
|
42573
|
-
oe + se >= 0 != !!X &&
|
|
42573
|
+
oe + se >= 0 != !!X && Te.reverse();
|
|
42574
42574
|
}
|
|
42575
|
-
var L = b.g(function
|
|
42575
|
+
var L = b.g(function Te(X, oe) {
|
|
42576
42576
|
var se, Ge = X && X.type;
|
|
42577
42577
|
if (Ge === "FeatureCollection")
|
|
42578
42578
|
for (se = 0; se < X.features.length; se++)
|
|
42579
|
-
|
|
42579
|
+
Te(X.features[se], oe);
|
|
42580
42580
|
else if (Ge === "GeometryCollection")
|
|
42581
42581
|
for (se = 0; se < X.geometries.length; se++)
|
|
42582
|
-
|
|
42582
|
+
Te(X.geometries[se], oe);
|
|
42583
42583
|
else if (Ge === "Feature")
|
|
42584
|
-
|
|
42584
|
+
Te(X.geometry, oe);
|
|
42585
42585
|
else if (Ge === "Polygon")
|
|
42586
42586
|
C(X.coordinates, oe);
|
|
42587
42587
|
else if (Ge === "MultiPolygon")
|
|
@@ -42591,59 +42591,59 @@ ${r.vertexSource}`;
|
|
|
42591
42591
|
});
|
|
42592
42592
|
const R = b.V.prototype.toGeoJSON;
|
|
42593
42593
|
var Y = { exports: {} }, B = b.p, U = b.a.VectorTileFeature, V = $;
|
|
42594
|
-
function $(
|
|
42595
|
-
this.options = X || {}, this.features =
|
|
42594
|
+
function $(Te, X) {
|
|
42595
|
+
this.options = X || {}, this.features = Te, this.length = Te.length;
|
|
42596
42596
|
}
|
|
42597
|
-
function te(
|
|
42598
|
-
this.id = typeof
|
|
42597
|
+
function te(Te, X) {
|
|
42598
|
+
this.id = typeof Te.id == "number" ? Te.id : void 0, this.type = Te.type, this.rawGeometry = Te.type === 1 ? [Te.geometry] : Te.geometry, this.properties = Te.tags, this.extent = X || 4096;
|
|
42599
42599
|
}
|
|
42600
|
-
$.prototype.feature = function(
|
|
42601
|
-
return new te(this.features[
|
|
42600
|
+
$.prototype.feature = function(Te) {
|
|
42601
|
+
return new te(this.features[Te], this.options.extent);
|
|
42602
42602
|
}, te.prototype.loadGeometry = function() {
|
|
42603
|
-
var
|
|
42603
|
+
var Te = this.rawGeometry;
|
|
42604
42604
|
this.geometry = [];
|
|
42605
|
-
for (var X = 0; X <
|
|
42606
|
-
for (var oe =
|
|
42605
|
+
for (var X = 0; X < Te.length; X++) {
|
|
42606
|
+
for (var oe = Te[X], se = [], Ge = 0; Ge < oe.length; Ge++)
|
|
42607
42607
|
se.push(new B(oe[Ge][0], oe[Ge][1]));
|
|
42608
42608
|
this.geometry.push(se);
|
|
42609
42609
|
}
|
|
42610
42610
|
return this.geometry;
|
|
42611
42611
|
}, te.prototype.bbox = function() {
|
|
42612
42612
|
this.geometry || this.loadGeometry();
|
|
42613
|
-
for (var
|
|
42614
|
-
for (var ot =
|
|
42613
|
+
for (var Te = this.geometry, X = 1 / 0, oe = -1 / 0, se = 1 / 0, Ge = -1 / 0, et = 0; et < Te.length; et++)
|
|
42614
|
+
for (var ot = Te[et], Dt = 0; Dt < ot.length; Dt++) {
|
|
42615
42615
|
var Je = ot[Dt];
|
|
42616
42616
|
X = Math.min(X, Je.x), oe = Math.max(oe, Je.x), se = Math.min(se, Je.y), Ge = Math.max(Ge, Je.y);
|
|
42617
42617
|
}
|
|
42618
42618
|
return [X, se, oe, Ge];
|
|
42619
42619
|
}, te.prototype.toGeoJSON = U.prototype.toGeoJSON;
|
|
42620
42620
|
var ce = b.b, le = V;
|
|
42621
|
-
function fe(
|
|
42621
|
+
function fe(Te) {
|
|
42622
42622
|
var X = new ce();
|
|
42623
42623
|
return function(oe, se) {
|
|
42624
42624
|
for (var Ge in oe.layers)
|
|
42625
42625
|
se.writeMessage(3, Z, oe.layers[Ge]);
|
|
42626
|
-
}(
|
|
42626
|
+
}(Te, X), X.finish();
|
|
42627
42627
|
}
|
|
42628
|
-
function Z(
|
|
42628
|
+
function Z(Te, X) {
|
|
42629
42629
|
var oe;
|
|
42630
|
-
X.writeVarintField(15,
|
|
42630
|
+
X.writeVarintField(15, Te.version || 1), X.writeStringField(1, Te.name || ""), X.writeVarintField(5, Te.extent || 4096);
|
|
42631
42631
|
var se = { keys: [], values: [], keycache: {}, valuecache: {} };
|
|
42632
|
-
for (oe = 0; oe <
|
|
42633
|
-
se.feature =
|
|
42632
|
+
for (oe = 0; oe < Te.length; oe++)
|
|
42633
|
+
se.feature = Te.feature(oe), X.writeMessage(2, _e, se);
|
|
42634
42634
|
var Ge = se.keys;
|
|
42635
42635
|
for (oe = 0; oe < Ge.length; oe++)
|
|
42636
42636
|
X.writeStringField(3, Ge[oe]);
|
|
42637
42637
|
var et = se.values;
|
|
42638
42638
|
for (oe = 0; oe < et.length; oe++)
|
|
42639
|
-
X.writeMessage(4,
|
|
42639
|
+
X.writeMessage(4, Ce, et[oe]);
|
|
42640
42640
|
}
|
|
42641
|
-
function _e(
|
|
42642
|
-
var oe =
|
|
42643
|
-
oe.id !== void 0 && X.writeVarintField(1, oe.id), X.writeMessage(2,
|
|
42641
|
+
function _e(Te, X) {
|
|
42642
|
+
var oe = Te.feature;
|
|
42643
|
+
oe.id !== void 0 && X.writeVarintField(1, oe.id), X.writeMessage(2, Ae, Te), X.writeVarintField(3, oe.type), X.writeMessage(4, Ze, oe);
|
|
42644
42644
|
}
|
|
42645
|
-
function
|
|
42646
|
-
var oe =
|
|
42645
|
+
function Ae(Te, X) {
|
|
42646
|
+
var oe = Te.feature, se = Te.keys, Ge = Te.values, et = Te.keycache, ot = Te.valuecache;
|
|
42647
42647
|
for (var Dt in oe.properties) {
|
|
42648
42648
|
var Je = oe.properties[Dt], ft = et[Dt];
|
|
42649
42649
|
if (Je !== null) {
|
|
@@ -42655,14 +42655,14 @@ ${r.vertexSource}`;
|
|
|
42655
42655
|
}
|
|
42656
42656
|
}
|
|
42657
42657
|
}
|
|
42658
|
-
function Qe(
|
|
42659
|
-
return (X << 3) + (7 &
|
|
42658
|
+
function Qe(Te, X) {
|
|
42659
|
+
return (X << 3) + (7 & Te);
|
|
42660
42660
|
}
|
|
42661
|
-
function we(
|
|
42662
|
-
return
|
|
42661
|
+
function we(Te) {
|
|
42662
|
+
return Te << 1 ^ Te >> 31;
|
|
42663
42663
|
}
|
|
42664
|
-
function Ze(
|
|
42665
|
-
for (var oe =
|
|
42664
|
+
function Ze(Te, X) {
|
|
42665
|
+
for (var oe = Te.loadGeometry(), se = Te.type, Ge = 0, et = 0, ot = oe.length, Dt = 0; Dt < ot; Dt++) {
|
|
42666
42666
|
var Je = oe[Dt], ft = 1;
|
|
42667
42667
|
se === 1 && (ft = Je.length), X.writeVarint(Qe(1, ft));
|
|
42668
42668
|
for (var pt = se === 3 ? Je.length - 1 : Je.length, nt = 0; nt < pt; nt++) {
|
|
@@ -42673,19 +42673,19 @@ ${r.vertexSource}`;
|
|
|
42673
42673
|
se === 3 && X.writeVarint(Qe(7, 1));
|
|
42674
42674
|
}
|
|
42675
42675
|
}
|
|
42676
|
-
function
|
|
42677
|
-
var oe = typeof
|
|
42678
|
-
oe === "string" ? X.writeStringField(1,
|
|
42676
|
+
function Ce(Te, X) {
|
|
42677
|
+
var oe = typeof Te;
|
|
42678
|
+
oe === "string" ? X.writeStringField(1, Te) : oe === "boolean" ? X.writeBooleanField(7, Te) : oe === "number" && (Te % 1 != 0 ? X.writeDoubleField(3, Te) : Te < 0 ? X.writeSVarintField(6, Te) : X.writeVarintField(5, Te));
|
|
42679
42679
|
}
|
|
42680
|
-
Y.exports = fe, Y.exports.fromVectorTileJs = fe, Y.exports.fromGeojsonVt = function(
|
|
42680
|
+
Y.exports = fe, Y.exports.fromVectorTileJs = fe, Y.exports.fromGeojsonVt = function(Te, X) {
|
|
42681
42681
|
X = X || {};
|
|
42682
42682
|
var oe = {};
|
|
42683
|
-
for (var se in
|
|
42684
|
-
oe[se] = new le(
|
|
42683
|
+
for (var se in Te)
|
|
42684
|
+
oe[se] = new le(Te[se].features, X), oe[se].name = se, oe[se].version = X.version, oe[se].extent = X.extent;
|
|
42685
42685
|
return fe({ layers: oe });
|
|
42686
42686
|
}, Y.exports.GeoJSONWrapper = le;
|
|
42687
|
-
var
|
|
42688
|
-
const ke = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (
|
|
42687
|
+
var Ie = b.g(Y.exports);
|
|
42688
|
+
const ke = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (Te) => Te }, Ne = Math.fround || (Le = new Float32Array(1), (Te) => (Le[0] = +Te, Le[0]));
|
|
42689
42689
|
var Le;
|
|
42690
42690
|
const ue = 3, ee = 5, K = 6;
|
|
42691
42691
|
class F {
|
|
@@ -42855,30 +42855,30 @@ ${r.vertexSource}`;
|
|
|
42855
42855
|
return se && et === Ge ? Object.assign({}, et) : et;
|
|
42856
42856
|
}
|
|
42857
42857
|
}
|
|
42858
|
-
function H(
|
|
42859
|
-
return { type: "Feature", id:
|
|
42858
|
+
function H(Te, X, oe) {
|
|
42859
|
+
return { type: "Feature", id: Te[X + ue], properties: ae(Te, X, oe), geometry: { type: "Point", coordinates: [(se = Te[X], 360 * (se - 0.5)), Se(Te[X + 1])] } };
|
|
42860
42860
|
var se;
|
|
42861
42861
|
}
|
|
42862
|
-
function ae(
|
|
42863
|
-
const se =
|
|
42864
|
-
return Object.assign(ot, { cluster: !0, cluster_id:
|
|
42862
|
+
function ae(Te, X, oe) {
|
|
42863
|
+
const se = Te[X + ee], Ge = se >= 1e4 ? `${Math.round(se / 1e3)}k` : se >= 1e3 ? Math.round(se / 100) / 10 + "k" : se, et = Te[X + K], ot = et === -1 ? {} : Object.assign({}, oe[et]);
|
|
42864
|
+
return Object.assign(ot, { cluster: !0, cluster_id: Te[X + ue], point_count: se, point_count_abbreviated: Ge });
|
|
42865
42865
|
}
|
|
42866
|
-
function W(
|
|
42867
|
-
return
|
|
42866
|
+
function W(Te) {
|
|
42867
|
+
return Te / 360 + 0.5;
|
|
42868
42868
|
}
|
|
42869
|
-
function he(
|
|
42870
|
-
const X = Math.sin(
|
|
42869
|
+
function he(Te) {
|
|
42870
|
+
const X = Math.sin(Te * Math.PI / 180), oe = 0.5 - 0.25 * Math.log((1 + X) / (1 - X)) / Math.PI;
|
|
42871
42871
|
return oe < 0 ? 0 : oe > 1 ? 1 : oe;
|
|
42872
42872
|
}
|
|
42873
|
-
function
|
|
42874
|
-
const X = (180 - 360 *
|
|
42873
|
+
function Se(Te) {
|
|
42874
|
+
const X = (180 - 360 * Te) * Math.PI / 180;
|
|
42875
42875
|
return 360 * Math.atan(Math.exp(X)) / Math.PI - 90;
|
|
42876
42876
|
}
|
|
42877
42877
|
var Me = { exports: {} };
|
|
42878
42878
|
Me.exports = function() {
|
|
42879
|
-
function
|
|
42880
|
-
for (var lt, _t = ct, xt = it - Ue >> 1, vt = it - Ue, Et =
|
|
42881
|
-
var Ht = X(
|
|
42879
|
+
function Te(De, Ue, it, ct) {
|
|
42880
|
+
for (var lt, _t = ct, xt = it - Ue >> 1, vt = it - Ue, Et = De[Ue], Mt = De[Ue + 1], qt = De[it], Rn = De[it + 1], yt = Ue + 3; yt < it; yt += 3) {
|
|
42881
|
+
var Ht = X(De[yt], De[yt + 1], Et, Mt, qt, Rn);
|
|
42882
42882
|
if (Ht > _t)
|
|
42883
42883
|
lt = yt, _t = Ht;
|
|
42884
42884
|
else if (Ht === _t) {
|
|
@@ -42886,18 +42886,18 @@ ${r.vertexSource}`;
|
|
|
42886
42886
|
Dn < vt && (lt = yt, vt = Dn);
|
|
42887
42887
|
}
|
|
42888
42888
|
}
|
|
42889
|
-
_t > ct && (lt - Ue > 3 &&
|
|
42889
|
+
_t > ct && (lt - Ue > 3 && Te(De, Ue, lt, ct), De[lt + 2] = _t, it - lt > 3 && Te(De, lt, it, ct));
|
|
42890
42890
|
}
|
|
42891
|
-
function X(
|
|
42891
|
+
function X(De, Ue, it, ct, lt, _t) {
|
|
42892
42892
|
var xt = lt - it, vt = _t - ct;
|
|
42893
42893
|
if (xt !== 0 || vt !== 0) {
|
|
42894
|
-
var Et = ((
|
|
42894
|
+
var Et = ((De - it) * xt + (Ue - ct) * vt) / (xt * xt + vt * vt);
|
|
42895
42895
|
Et > 1 ? (it = lt, ct = _t) : Et > 0 && (it += xt * Et, ct += vt * Et);
|
|
42896
42896
|
}
|
|
42897
|
-
return (xt =
|
|
42897
|
+
return (xt = De - it) * xt + (vt = Ue - ct) * vt;
|
|
42898
42898
|
}
|
|
42899
|
-
function oe(
|
|
42900
|
-
var lt = { id:
|
|
42899
|
+
function oe(De, Ue, it, ct) {
|
|
42900
|
+
var lt = { id: De === void 0 ? null : De, type: Ue, geometry: it, tags: ct, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
42901
42901
|
return function(_t) {
|
|
42902
42902
|
var xt = _t.geometry, vt = _t.type;
|
|
42903
42903
|
if (vt === "Point" || vt === "MultiPoint" || vt === "LineString")
|
|
@@ -42911,11 +42911,11 @@ ${r.vertexSource}`;
|
|
|
42911
42911
|
se(_t, xt[Et][Mt]);
|
|
42912
42912
|
}(lt), lt;
|
|
42913
42913
|
}
|
|
42914
|
-
function se(
|
|
42914
|
+
function se(De, Ue) {
|
|
42915
42915
|
for (var it = 0; it < Ue.length; it += 3)
|
|
42916
|
-
|
|
42916
|
+
De.minX = Math.min(De.minX, Ue[it]), De.minY = Math.min(De.minY, Ue[it + 1]), De.maxX = Math.max(De.maxX, Ue[it]), De.maxY = Math.max(De.maxY, Ue[it + 1]);
|
|
42917
42917
|
}
|
|
42918
|
-
function Ge(
|
|
42918
|
+
function Ge(De, Ue, it, ct) {
|
|
42919
42919
|
if (Ue.geometry) {
|
|
42920
42920
|
var lt = Ue.geometry.coordinates, _t = Ue.geometry.type, xt = Math.pow(it.tolerance / ((1 << it.maxZoom) * it.extent), 2), vt = [], Et = Ue.id;
|
|
42921
42921
|
if (it.promoteId ? Et = Ue.properties[it.promoteId] : it.generateId && (Et = ct || 0), _t === "Point")
|
|
@@ -42928,7 +42928,7 @@ ${r.vertexSource}`;
|
|
|
42928
42928
|
else if (_t === "MultiLineString") {
|
|
42929
42929
|
if (it.lineMetrics) {
|
|
42930
42930
|
for (Mt = 0; Mt < lt.length; Mt++)
|
|
42931
|
-
ot(lt[Mt], vt = [], xt, !1),
|
|
42931
|
+
ot(lt[Mt], vt = [], xt, !1), De.push(oe(Et, "LineString", vt, Ue.properties));
|
|
42932
42932
|
return;
|
|
42933
42933
|
}
|
|
42934
42934
|
Dt(lt, vt, xt, !1);
|
|
@@ -42938,7 +42938,7 @@ ${r.vertexSource}`;
|
|
|
42938
42938
|
if (_t !== "MultiPolygon") {
|
|
42939
42939
|
if (_t === "GeometryCollection") {
|
|
42940
42940
|
for (Mt = 0; Mt < Ue.geometry.geometries.length; Mt++)
|
|
42941
|
-
Ge(
|
|
42941
|
+
Ge(De, { id: Et, geometry: Ue.geometry.geometries[Mt], properties: Ue.properties }, it, ct);
|
|
42942
42942
|
return;
|
|
42943
42943
|
}
|
|
42944
42944
|
throw new Error("Input data is not a valid GeoJSON object.");
|
|
@@ -42948,40 +42948,40 @@ ${r.vertexSource}`;
|
|
|
42948
42948
|
Dt(lt[Mt], qt, xt, !0), vt.push(qt);
|
|
42949
42949
|
}
|
|
42950
42950
|
}
|
|
42951
|
-
|
|
42951
|
+
De.push(oe(Et, _t, vt, Ue.properties));
|
|
42952
42952
|
}
|
|
42953
42953
|
}
|
|
42954
|
-
function et(
|
|
42955
|
-
Ue.push(Je(
|
|
42954
|
+
function et(De, Ue) {
|
|
42955
|
+
Ue.push(Je(De[0])), Ue.push(ft(De[1])), Ue.push(0);
|
|
42956
42956
|
}
|
|
42957
|
-
function ot(
|
|
42958
|
-
for (var lt, _t, xt = 0, vt = 0; vt <
|
|
42959
|
-
var Et = Je(
|
|
42957
|
+
function ot(De, Ue, it, ct) {
|
|
42958
|
+
for (var lt, _t, xt = 0, vt = 0; vt < De.length; vt++) {
|
|
42959
|
+
var Et = Je(De[vt][0]), Mt = ft(De[vt][1]);
|
|
42960
42960
|
Ue.push(Et), Ue.push(Mt), Ue.push(0), vt > 0 && (xt += ct ? (lt * Mt - Et * _t) / 2 : Math.sqrt(Math.pow(Et - lt, 2) + Math.pow(Mt - _t, 2))), lt = Et, _t = Mt;
|
|
42961
42961
|
}
|
|
42962
42962
|
var qt = Ue.length - 3;
|
|
42963
|
-
Ue[2] = 1,
|
|
42963
|
+
Ue[2] = 1, Te(Ue, 0, qt, it), Ue[qt + 2] = 1, Ue.size = Math.abs(xt), Ue.start = 0, Ue.end = Ue.size;
|
|
42964
42964
|
}
|
|
42965
|
-
function Dt(
|
|
42966
|
-
for (var lt = 0; lt <
|
|
42965
|
+
function Dt(De, Ue, it, ct) {
|
|
42966
|
+
for (var lt = 0; lt < De.length; lt++) {
|
|
42967
42967
|
var _t = [];
|
|
42968
|
-
ot(
|
|
42968
|
+
ot(De[lt], _t, it, ct), Ue.push(_t);
|
|
42969
42969
|
}
|
|
42970
42970
|
}
|
|
42971
|
-
function Je(
|
|
42972
|
-
return
|
|
42971
|
+
function Je(De) {
|
|
42972
|
+
return De / 360 + 0.5;
|
|
42973
42973
|
}
|
|
42974
|
-
function ft(
|
|
42975
|
-
var Ue = Math.sin(
|
|
42974
|
+
function ft(De) {
|
|
42975
|
+
var Ue = Math.sin(De * Math.PI / 180), it = 0.5 - 0.25 * Math.log((1 + Ue) / (1 - Ue)) / Math.PI;
|
|
42976
42976
|
return it < 0 ? 0 : it > 1 ? 1 : it;
|
|
42977
42977
|
}
|
|
42978
|
-
function pt(
|
|
42978
|
+
function pt(De, Ue, it, ct, lt, _t, xt, vt) {
|
|
42979
42979
|
if (ct /= Ue, _t >= (it /= Ue) && xt < ct)
|
|
42980
|
-
return
|
|
42980
|
+
return De;
|
|
42981
42981
|
if (xt < it || _t >= ct)
|
|
42982
42982
|
return null;
|
|
42983
|
-
for (var Et = [], Mt = 0; Mt <
|
|
42984
|
-
var qt =
|
|
42983
|
+
for (var Et = [], Mt = 0; Mt < De.length; Mt++) {
|
|
42984
|
+
var qt = De[Mt], Rn = qt.geometry, yt = qt.type, Ht = lt === 0 ? qt.minX : qt.minY, Dn = lt === 0 ? qt.maxX : qt.maxY;
|
|
42985
42985
|
if (Ht >= it && Dn < ct)
|
|
42986
42986
|
Et.push(qt);
|
|
42987
42987
|
else if (!(Dn < it || Ht >= ct)) {
|
|
@@ -43011,42 +43011,42 @@ ${r.vertexSource}`;
|
|
|
43011
43011
|
}
|
|
43012
43012
|
return Et.length ? Et : null;
|
|
43013
43013
|
}
|
|
43014
|
-
function nt(
|
|
43015
|
-
for (var _t = 0; _t <
|
|
43016
|
-
var xt =
|
|
43017
|
-
xt >= it && xt <= ct && (Ue.push(
|
|
43014
|
+
function nt(De, Ue, it, ct, lt) {
|
|
43015
|
+
for (var _t = 0; _t < De.length; _t += 3) {
|
|
43016
|
+
var xt = De[_t + lt];
|
|
43017
|
+
xt >= it && xt <= ct && (Ue.push(De[_t]), Ue.push(De[_t + 1]), Ue.push(De[_t + 2]));
|
|
43018
43018
|
}
|
|
43019
43019
|
}
|
|
43020
|
-
function Yt(
|
|
43021
|
-
for (var vt, Et, Mt = cn(
|
|
43022
|
-
var Ht =
|
|
43023
|
-
xt && (vt = Math.sqrt(Math.pow(Ht - oi, 2) + Math.pow(Dn - Ci, 2))), Ir < it ? Hi > it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), xt && (Mt.start = Rn + vt * Et)) : Ir > ct ? Hi < ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), xt && (Mt.start = Rn + vt * Et)) : Qt(Mt, Ht, Dn, ni), Hi < it && Ir >= it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), Er = !0), Hi > ct && Ir <= ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), Er = !0), !_t && Er && (xt && (Mt.end = Rn + vt * Et), Ue.push(Mt), Mt = cn(
|
|
43020
|
+
function Yt(De, Ue, it, ct, lt, _t, xt) {
|
|
43021
|
+
for (var vt, Et, Mt = cn(De), qt = lt === 0 ? Bt : un, Rn = De.start, yt = 0; yt < De.length - 3; yt += 3) {
|
|
43022
|
+
var Ht = De[yt], Dn = De[yt + 1], ni = De[yt + 2], oi = De[yt + 3], Ci = De[yt + 4], Ir = lt === 0 ? Ht : Dn, Hi = lt === 0 ? oi : Ci, Er = !1;
|
|
43023
|
+
xt && (vt = Math.sqrt(Math.pow(Ht - oi, 2) + Math.pow(Dn - Ci, 2))), Ir < it ? Hi > it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), xt && (Mt.start = Rn + vt * Et)) : Ir > ct ? Hi < ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), xt && (Mt.start = Rn + vt * Et)) : Qt(Mt, Ht, Dn, ni), Hi < it && Ir >= it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), Er = !0), Hi > ct && Ir <= ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), Er = !0), !_t && Er && (xt && (Mt.end = Rn + vt * Et), Ue.push(Mt), Mt = cn(De)), xt && (Rn += vt);
|
|
43024
43024
|
}
|
|
43025
|
-
var yr =
|
|
43026
|
-
Ht =
|
|
43025
|
+
var yr = De.length - 3;
|
|
43026
|
+
Ht = De[yr], Dn = De[yr + 1], ni = De[yr + 2], (Ir = lt === 0 ? Ht : Dn) >= it && Ir <= ct && Qt(Mt, Ht, Dn, ni), yr = Mt.length - 3, _t && yr >= 3 && (Mt[yr] !== Mt[0] || Mt[yr + 1] !== Mt[1]) && Qt(Mt, Mt[0], Mt[1], Mt[2]), Mt.length && Ue.push(Mt);
|
|
43027
43027
|
}
|
|
43028
|
-
function cn(
|
|
43028
|
+
function cn(De) {
|
|
43029
43029
|
var Ue = [];
|
|
43030
|
-
return Ue.size =
|
|
43030
|
+
return Ue.size = De.size, Ue.start = De.start, Ue.end = De.end, Ue;
|
|
43031
43031
|
}
|
|
43032
|
-
function In(
|
|
43033
|
-
for (var xt = 0; xt <
|
|
43034
|
-
Yt(
|
|
43032
|
+
function In(De, Ue, it, ct, lt, _t) {
|
|
43033
|
+
for (var xt = 0; xt < De.length; xt++)
|
|
43034
|
+
Yt(De[xt], Ue, it, ct, lt, _t, !1);
|
|
43035
43035
|
}
|
|
43036
|
-
function Qt(
|
|
43037
|
-
|
|
43036
|
+
function Qt(De, Ue, it, ct) {
|
|
43037
|
+
De.push(Ue), De.push(it), De.push(ct);
|
|
43038
43038
|
}
|
|
43039
|
-
function Bt(
|
|
43039
|
+
function Bt(De, Ue, it, ct, lt, _t) {
|
|
43040
43040
|
var xt = (_t - Ue) / (ct - Ue);
|
|
43041
|
-
return
|
|
43041
|
+
return De.push(_t), De.push(it + (lt - it) * xt), De.push(1), xt;
|
|
43042
43042
|
}
|
|
43043
|
-
function un(
|
|
43043
|
+
function un(De, Ue, it, ct, lt, _t) {
|
|
43044
43044
|
var xt = (_t - it) / (lt - it);
|
|
43045
|
-
return
|
|
43045
|
+
return De.push(Ue + (ct - Ue) * xt), De.push(_t), De.push(1), xt;
|
|
43046
43046
|
}
|
|
43047
|
-
function Kn(
|
|
43048
|
-
for (var it = [], ct = 0; ct <
|
|
43049
|
-
var lt, _t =
|
|
43047
|
+
function Kn(De, Ue) {
|
|
43048
|
+
for (var it = [], ct = 0; ct < De.length; ct++) {
|
|
43049
|
+
var lt, _t = De[ct], xt = _t.type;
|
|
43050
43050
|
if (xt === "Point" || xt === "MultiPoint" || xt === "LineString")
|
|
43051
43051
|
lt = We(_t.geometry, Ue);
|
|
43052
43052
|
else if (xt === "MultiLineString" || xt === "Polygon") {
|
|
@@ -43063,19 +43063,19 @@ ${r.vertexSource}`;
|
|
|
43063
43063
|
}
|
|
43064
43064
|
return it;
|
|
43065
43065
|
}
|
|
43066
|
-
function We(
|
|
43066
|
+
function We(De, Ue) {
|
|
43067
43067
|
var it = [];
|
|
43068
|
-
it.size =
|
|
43069
|
-
for (var ct = 0; ct <
|
|
43070
|
-
it.push(
|
|
43068
|
+
it.size = De.size, De.start !== void 0 && (it.start = De.start, it.end = De.end);
|
|
43069
|
+
for (var ct = 0; ct < De.length; ct += 3)
|
|
43070
|
+
it.push(De[ct] + Ue, De[ct + 1], De[ct + 2]);
|
|
43071
43071
|
return it;
|
|
43072
43072
|
}
|
|
43073
|
-
function Be(
|
|
43074
|
-
if (
|
|
43075
|
-
return
|
|
43076
|
-
var it, ct, lt, _t = 1 <<
|
|
43077
|
-
for (it = 0; it <
|
|
43078
|
-
var Et =
|
|
43073
|
+
function Be(De, Ue) {
|
|
43074
|
+
if (De.transformed)
|
|
43075
|
+
return De;
|
|
43076
|
+
var it, ct, lt, _t = 1 << De.z, xt = De.x, vt = De.y;
|
|
43077
|
+
for (it = 0; it < De.features.length; it++) {
|
|
43078
|
+
var Et = De.features[it], Mt = Et.geometry, qt = Et.type;
|
|
43079
43079
|
if (Et.geometry = [], qt === 1)
|
|
43080
43080
|
for (ct = 0; ct < Mt.length; ct += 2)
|
|
43081
43081
|
Et.geometry.push(wt(Mt[ct], Mt[ct + 1], Ue, _t, xt, vt));
|
|
@@ -43087,34 +43087,34 @@ ${r.vertexSource}`;
|
|
|
43087
43087
|
Et.geometry.push(Rn);
|
|
43088
43088
|
}
|
|
43089
43089
|
}
|
|
43090
|
-
return
|
|
43090
|
+
return De.transformed = !0, De;
|
|
43091
43091
|
}
|
|
43092
|
-
function wt(
|
|
43093
|
-
return [Math.round(it * (
|
|
43092
|
+
function wt(De, Ue, it, ct, lt, _t) {
|
|
43093
|
+
return [Math.round(it * (De * ct - lt)), Math.round(it * (Ue * ct - _t))];
|
|
43094
43094
|
}
|
|
43095
|
-
function Ut(
|
|
43096
|
-
for (var _t = Ue === lt.maxZoom ? 0 : lt.tolerance / ((1 << Ue) * lt.extent), xt = { features: [], numPoints: 0, numSimplified: 0, numFeatures: 0, source: null, x: it, y: ct, z: Ue, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 }, vt = 0; vt <
|
|
43097
|
-
xt.numFeatures++, at(xt,
|
|
43098
|
-
var Et =
|
|
43095
|
+
function Ut(De, Ue, it, ct, lt) {
|
|
43096
|
+
for (var _t = Ue === lt.maxZoom ? 0 : lt.tolerance / ((1 << Ue) * lt.extent), xt = { features: [], numPoints: 0, numSimplified: 0, numFeatures: 0, source: null, x: it, y: ct, z: Ue, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 }, vt = 0; vt < De.length; vt++) {
|
|
43097
|
+
xt.numFeatures++, at(xt, De[vt], _t, lt);
|
|
43098
|
+
var Et = De[vt].minX, Mt = De[vt].minY, qt = De[vt].maxX, Rn = De[vt].maxY;
|
|
43099
43099
|
Et < xt.minX && (xt.minX = Et), Mt < xt.minY && (xt.minY = Mt), qt > xt.maxX && (xt.maxX = qt), Rn > xt.maxY && (xt.maxY = Rn);
|
|
43100
43100
|
}
|
|
43101
43101
|
return xt;
|
|
43102
43102
|
}
|
|
43103
|
-
function at(
|
|
43103
|
+
function at(De, Ue, it, ct) {
|
|
43104
43104
|
var lt = Ue.geometry, _t = Ue.type, xt = [];
|
|
43105
43105
|
if (_t === "Point" || _t === "MultiPoint")
|
|
43106
43106
|
for (var vt = 0; vt < lt.length; vt += 3)
|
|
43107
|
-
xt.push(lt[vt]), xt.push(lt[vt + 1]),
|
|
43107
|
+
xt.push(lt[vt]), xt.push(lt[vt + 1]), De.numPoints++, De.numSimplified++;
|
|
43108
43108
|
else if (_t === "LineString")
|
|
43109
|
-
bt(xt, lt,
|
|
43109
|
+
bt(xt, lt, De, it, !1, !1);
|
|
43110
43110
|
else if (_t === "MultiLineString" || _t === "Polygon")
|
|
43111
43111
|
for (vt = 0; vt < lt.length; vt++)
|
|
43112
|
-
bt(xt, lt[vt],
|
|
43112
|
+
bt(xt, lt[vt], De, it, _t === "Polygon", vt === 0);
|
|
43113
43113
|
else if (_t === "MultiPolygon")
|
|
43114
43114
|
for (var Et = 0; Et < lt.length; Et++) {
|
|
43115
43115
|
var Mt = lt[Et];
|
|
43116
43116
|
for (vt = 0; vt < Mt.length; vt++)
|
|
43117
|
-
bt(xt, Mt[vt],
|
|
43117
|
+
bt(xt, Mt[vt], De, it, !0, vt === 0);
|
|
43118
43118
|
}
|
|
43119
43119
|
if (xt.length) {
|
|
43120
43120
|
var qt = Ue.tags || null;
|
|
@@ -43124,10 +43124,10 @@ ${r.vertexSource}`;
|
|
|
43124
43124
|
qt.mapbox_clip_start = lt.start / lt.size, qt.mapbox_clip_end = lt.end / lt.size;
|
|
43125
43125
|
}
|
|
43126
43126
|
var yt = { geometry: xt, type: _t === "Polygon" || _t === "MultiPolygon" ? 3 : _t === "LineString" || _t === "MultiLineString" ? 2 : 1, tags: qt };
|
|
43127
|
-
Ue.id !== null && (yt.id = Ue.id),
|
|
43127
|
+
Ue.id !== null && (yt.id = Ue.id), De.features.push(yt);
|
|
43128
43128
|
}
|
|
43129
43129
|
}
|
|
43130
|
-
function bt(
|
|
43130
|
+
function bt(De, Ue, it, ct, lt, _t) {
|
|
43131
43131
|
var xt = ct * ct;
|
|
43132
43132
|
if (ct > 0 && Ue.size < (lt ? xt : ct))
|
|
43133
43133
|
it.numPoints += Ue.length / 3;
|
|
@@ -43142,10 +43142,10 @@ ${r.vertexSource}`;
|
|
|
43142
43142
|
var ni = Mt[yt], oi = Mt[yt + 1];
|
|
43143
43143
|
Mt[yt] = Mt[Ht - 2 - yt], Mt[yt + 1] = Mt[Ht - 1 - yt], Mt[Ht - 2 - yt] = ni, Mt[Ht - 1 - yt] = oi;
|
|
43144
43144
|
}
|
|
43145
|
-
}(vt, _t),
|
|
43145
|
+
}(vt, _t), De.push(vt);
|
|
43146
43146
|
}
|
|
43147
43147
|
}
|
|
43148
|
-
function St(
|
|
43148
|
+
function St(De, Ue) {
|
|
43149
43149
|
var it = (Ue = this.options = function(lt, _t) {
|
|
43150
43150
|
for (var xt in _t)
|
|
43151
43151
|
lt[xt] = _t[xt];
|
|
@@ -43163,25 +43163,25 @@ ${r.vertexSource}`;
|
|
|
43163
43163
|
else
|
|
43164
43164
|
Ge(xt, lt.type === "Feature" ? lt : { geometry: lt }, _t);
|
|
43165
43165
|
return xt;
|
|
43166
|
-
}(
|
|
43166
|
+
}(De, Ue);
|
|
43167
43167
|
this.tiles = {}, this.tileCoords = [], it && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", Ue.indexMaxZoom, Ue.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), (ct = function(lt, _t) {
|
|
43168
43168
|
var xt = _t.buffer / _t.extent, vt = lt, Et = pt(lt, 1, -1 - xt, xt, 0, -1, 2, _t), Mt = pt(lt, 1, 1 - xt, 2 + xt, 0, -1, 2, _t);
|
|
43169
43169
|
return (Et || Mt) && (vt = pt(lt, 1, -xt, 1 + xt, 0, -1, 2, _t) || [], Et && (vt = Kn(Et, 1).concat(vt)), Mt && (vt = vt.concat(Kn(Mt, -1)))), vt;
|
|
43170
43170
|
}(ct, Ue)).length && this.splitTile(ct, 0, 0, 0), it && (ct.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
|
|
43171
43171
|
}
|
|
43172
|
-
function Pt(
|
|
43173
|
-
return 32 * ((1 <<
|
|
43172
|
+
function Pt(De, Ue, it) {
|
|
43173
|
+
return 32 * ((1 << De) * it + Ue) + De;
|
|
43174
43174
|
}
|
|
43175
|
-
return St.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, St.prototype.splitTile = function(
|
|
43176
|
-
for (var vt = [
|
|
43177
|
-
ct = vt.pop(), it = vt.pop(), Ue = vt.pop(),
|
|
43175
|
+
return St.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, St.prototype.splitTile = function(De, Ue, it, ct, lt, _t, xt) {
|
|
43176
|
+
for (var vt = [De, Ue, it, ct], Et = this.options, Mt = Et.debug; vt.length; ) {
|
|
43177
|
+
ct = vt.pop(), it = vt.pop(), Ue = vt.pop(), De = vt.pop();
|
|
43178
43178
|
var qt = 1 << Ue, Rn = Pt(Ue, it, ct), yt = this.tiles[Rn];
|
|
43179
|
-
if (!yt && (Mt > 1 && console.time("creation"), yt = this.tiles[Rn] = Ut(
|
|
43179
|
+
if (!yt && (Mt > 1 && console.time("creation"), yt = this.tiles[Rn] = Ut(De, Ue, it, ct, Et), this.tileCoords.push({ z: Ue, x: it, y: ct }), Mt)) {
|
|
43180
43180
|
Mt > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", Ue, it, ct, yt.numFeatures, yt.numPoints, yt.numSimplified), console.timeEnd("creation"));
|
|
43181
43181
|
var Ht = "z" + Ue;
|
|
43182
43182
|
this.stats[Ht] = (this.stats[Ht] || 0) + 1, this.total++;
|
|
43183
43183
|
}
|
|
43184
|
-
if (yt.source =
|
|
43184
|
+
if (yt.source = De, lt) {
|
|
43185
43185
|
if (Ue === Et.maxZoom || Ue === lt)
|
|
43186
43186
|
continue;
|
|
43187
43187
|
var Dn = 1 << lt - Ue;
|
|
@@ -43189,30 +43189,30 @@ ${r.vertexSource}`;
|
|
|
43189
43189
|
continue;
|
|
43190
43190
|
} else if (Ue === Et.indexMaxZoom || yt.numPoints <= Et.indexMaxPoints)
|
|
43191
43191
|
continue;
|
|
43192
|
-
if (yt.source = null,
|
|
43192
|
+
if (yt.source = null, De.length !== 0) {
|
|
43193
43193
|
Mt > 1 && console.time("clipping");
|
|
43194
43194
|
var ni, oi, Ci, Ir, Hi, Er, yr = 0.5 * Et.buffer / Et.extent, yc = 0.5 - yr, ma = 0.5 + yr, _c = 1 + yr;
|
|
43195
|
-
ni = oi = Ci = Ir = null, Hi = pt(
|
|
43195
|
+
ni = oi = Ci = Ir = null, Hi = pt(De, qt, it - yr, it + ma, 0, yt.minX, yt.maxX, Et), Er = pt(De, qt, it + yc, it + _c, 0, yt.minX, yt.maxX, Et), De = null, Hi && (ni = pt(Hi, qt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), oi = pt(Hi, qt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Hi = null), Er && (Ci = pt(Er, qt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), Ir = pt(Er, qt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Er = null), Mt > 1 && console.timeEnd("clipping"), vt.push(ni || [], Ue + 1, 2 * it, 2 * ct), vt.push(oi || [], Ue + 1, 2 * it, 2 * ct + 1), vt.push(Ci || [], Ue + 1, 2 * it + 1, 2 * ct), vt.push(Ir || [], Ue + 1, 2 * it + 1, 2 * ct + 1);
|
|
43196
43196
|
}
|
|
43197
43197
|
}
|
|
43198
|
-
}, St.prototype.getTile = function(
|
|
43198
|
+
}, St.prototype.getTile = function(De, Ue, it) {
|
|
43199
43199
|
var ct = this.options, lt = ct.extent, _t = ct.debug;
|
|
43200
|
-
if (
|
|
43200
|
+
if (De < 0 || De > 24)
|
|
43201
43201
|
return null;
|
|
43202
|
-
var xt = 1 <<
|
|
43202
|
+
var xt = 1 << De, vt = Pt(De, Ue = (Ue % xt + xt) % xt, it);
|
|
43203
43203
|
if (this.tiles[vt])
|
|
43204
43204
|
return Be(this.tiles[vt], lt);
|
|
43205
|
-
_t > 1 && console.log("drilling down to z%d-%d-%d",
|
|
43206
|
-
for (var Et, Mt =
|
|
43205
|
+
_t > 1 && console.log("drilling down to z%d-%d-%d", De, Ue, it);
|
|
43206
|
+
for (var Et, Mt = De, qt = Ue, Rn = it; !Et && Mt > 0; )
|
|
43207
43207
|
Mt--, qt = Math.floor(qt / 2), Rn = Math.floor(Rn / 2), Et = this.tiles[Pt(Mt, qt, Rn)];
|
|
43208
|
-
return Et && Et.source ? (_t > 1 && console.log("found parent tile z%d-%d-%d", Mt, qt, Rn), _t > 1 && console.time("drilling down"), this.splitTile(Et.source, Mt, qt, Rn,
|
|
43209
|
-
}, function(
|
|
43210
|
-
return new St(
|
|
43208
|
+
return Et && Et.source ? (_t > 1 && console.log("found parent tile z%d-%d-%d", Mt, qt, Rn), _t > 1 && console.time("drilling down"), this.splitTile(Et.source, Mt, qt, Rn, De, Ue, it), _t > 1 && console.timeEnd("drilling down"), this.tiles[vt] ? Be(this.tiles[vt], lt) : null) : null;
|
|
43209
|
+
}, function(De, Ue) {
|
|
43210
|
+
return new St(De, Ue);
|
|
43211
43211
|
};
|
|
43212
43212
|
}();
|
|
43213
43213
|
var je = b.g(Me.exports);
|
|
43214
|
-
function Ke(
|
|
43215
|
-
const oe =
|
|
43214
|
+
function Ke(Te, X) {
|
|
43215
|
+
const oe = Te.tileID.canonical;
|
|
43216
43216
|
if (!this._geoJSONIndex)
|
|
43217
43217
|
return X(null, null);
|
|
43218
43218
|
const se = this._geoJSONIndex.getTile(oe.z, oe.x, oe.y);
|
|
@@ -43251,7 +43251,7 @@ ${r.vertexSource}`;
|
|
|
43251
43251
|
}(this._features[ot]);
|
|
43252
43252
|
}
|
|
43253
43253
|
}(se.features);
|
|
43254
|
-
let et =
|
|
43254
|
+
let et = Ie(Ge);
|
|
43255
43255
|
et.byteOffset === 0 && et.byteLength === et.buffer.byteLength || (et = new Uint8Array(et)), X(null, { vectorTile: Ge, rawData: et.buffer });
|
|
43256
43256
|
}
|
|
43257
43257
|
class mt extends b.d {
|
|
@@ -44011,42 +44011,46 @@ function une({ onLocationClick: i, onVenueChangedOnMap: o, useMapProviderModule:
|
|
|
44011
44011
|
be.useEffect(() => {
|
|
44012
44012
|
if (!V || g === null && _ === null)
|
|
44013
44013
|
return;
|
|
44014
|
-
let
|
|
44014
|
+
let Ae;
|
|
44015
44015
|
const Qe = V.modules.map((we) => we.toLowerCase()).includes("mapbox");
|
|
44016
|
-
a ? Qe ? _ && (
|
|
44016
|
+
a ? Qe ? _ && (Ae = jr.Mapbox) : g && (Ae = jr.Google) : _ ? Ae = jr.Mapbox : Ae = jr.Google, Ae ? m(Ae) : ($({ text: "Please provide a Mapbox Access Token or Google Maps API key to show a map.", type: "error" }), m(void 0));
|
|
44017
44017
|
}, [g, _, V]), be.useEffect(() => {
|
|
44018
44018
|
te && u();
|
|
44019
44019
|
}, [te]), be.useEffect(() => {
|
|
44020
44020
|
ce && o(ce);
|
|
44021
44021
|
}, [ce]), be.useEffect(() => {
|
|
44022
|
-
I && (z ? I.highlight ? I.highlight(z.map((
|
|
44022
|
+
I && (z ? I.highlight ? I.highlight(z.map((Ae) => Ae.id)) : I.filter && I.filter(z.map((Ae) => Ae.id)) : L && (I.highlight ? I.highlight(L.map((Ae) => Ae.id)) : I.filter && I.filter(L.map((Ae) => Ae.id))));
|
|
44023
44023
|
}, [z, L, I]), be.useEffect(() => {
|
|
44024
44024
|
I && (isNaN(parseInt(B)) || I.getMapView().tilt(parseInt(B)), isNaN(parseInt(Y)) || I.getMapView().rotate(parseInt(Y)));
|
|
44025
44025
|
}, [Y, B, I]);
|
|
44026
|
-
const le = (
|
|
44027
|
-
fe(
|
|
44028
|
-
}, fe = (
|
|
44029
|
-
if (
|
|
44030
|
-
let Qe =
|
|
44026
|
+
const le = (Ae) => {
|
|
44027
|
+
fe(Ae);
|
|
44028
|
+
}, fe = (Ae) => {
|
|
44029
|
+
if (Ae && wM) {
|
|
44030
|
+
let Qe = Ae.getTileURL();
|
|
44031
44031
|
if (Qe) {
|
|
44032
|
-
Qe =
|
|
44033
|
-
const we = Qe == null ? void 0 : Qe.replace("{floor}",
|
|
44034
|
-
|
|
44032
|
+
Qe = Ae.getTileURL().replace("default", wM);
|
|
44033
|
+
const we = Qe == null ? void 0 : Qe.replace("{floor}", Ae.getFloor());
|
|
44034
|
+
Ae.getMapView().setMapsIndoorsTileURL(we);
|
|
44035
44035
|
}
|
|
44036
44036
|
}
|
|
44037
|
-
}, Z = async (
|
|
44037
|
+
}, Z = async (Ae, Qe) => {
|
|
44038
44038
|
const we = new window.mapsindoors.MapsIndoors({
|
|
44039
|
-
mapView:
|
|
44039
|
+
mapView: Ae
|
|
44040
44040
|
});
|
|
44041
|
-
we.
|
|
44041
|
+
we.on("mouseenter", () => {
|
|
44042
|
+
var Ie;
|
|
44043
|
+
const Ce = we.getHoveredLocation();
|
|
44044
|
+
((Ie = Ce == null ? void 0 : Ce.properties.locationSettings) == null ? void 0 : Ie.selectable) === !1 && we.unhoverLocation();
|
|
44045
|
+
}), we.setDisplayRule(["MI_BUILDING_OUTLINE"], { visible: !1 }), we.on("click", (Ce) => i(Ce)), we.once("building_changed", () => le(we)), we.on("floor_changed", () => fe(we)), A(we);
|
|
44042
44046
|
const Ze = new window.mapsindoors.services.DirectionsService(Qe);
|
|
44043
44047
|
C(Ze);
|
|
44044
|
-
}, _e = (
|
|
44045
|
-
|
|
44048
|
+
}, _e = (Ae) => {
|
|
44049
|
+
Ae.nodeName === "MI-MY-POSITION" ? Ae.addEventListener("position_received", (Qe) => {
|
|
44046
44050
|
Qe.detail.accurate === !0 && S(Qe.detail.position);
|
|
44047
|
-
}) :
|
|
44051
|
+
}) : Ae.on("position_received", (Qe) => {
|
|
44048
44052
|
Qe.accurate === !0 && S(Qe.position);
|
|
44049
|
-
}), U(
|
|
44053
|
+
}), U(Ae);
|
|
44050
44054
|
};
|
|
44051
44055
|
return be.useEffect(() => {
|
|
44052
44056
|
wM = R || "default", fe(I);
|
|
@@ -44427,7 +44431,7 @@ function Sne(i, o) {
|
|
|
44427
44431
|
const { clientX: L, clientY: R } = z ? A.touches[0] : A, [Y, B] = f9([L, R], C.rotationAngle), U = Y - S.xy[0], V = B - S.xy[1], $ = Math.abs(U), te = Math.abs(V), ce = (A.timeStamp || 0) - S.start, le = Math.sqrt($ * $ + te * te) / (ce || 1), fe = [U / (ce || 1), V / (ce || 1)], Z = Cne($, te, U, V), _e = typeof C.delta == "number" ? C.delta : C.delta[Z.toLowerCase()] || Eu.delta;
|
|
44428
44432
|
if ($ < _e && te < _e && !S.swiping)
|
|
44429
44433
|
return S;
|
|
44430
|
-
const
|
|
44434
|
+
const Ae = {
|
|
44431
44435
|
absX: $,
|
|
44432
44436
|
absY: te,
|
|
44433
44437
|
deltaX: U,
|
|
@@ -44439,12 +44443,12 @@ function Sne(i, o) {
|
|
|
44439
44443
|
velocity: le,
|
|
44440
44444
|
vxvy: fe
|
|
44441
44445
|
};
|
|
44442
|
-
|
|
44446
|
+
Ae.first && C.onSwipeStart && C.onSwipeStart(Ae), C.onSwiping && C.onSwiping(Ae);
|
|
44443
44447
|
let Qe = !1;
|
|
44444
44448
|
return (C.onSwiping || C.onSwiped || C[`onSwiped${Z}`]) && (Qe = !0), Qe && C.preventScrollOnSwipe && C.trackTouch && A.cancelable && A.preventDefault(), Object.assign(Object.assign({}, S), {
|
|
44445
44449
|
// first is now always false
|
|
44446
44450
|
first: !1,
|
|
44447
|
-
eventData:
|
|
44451
|
+
eventData: Ae,
|
|
44448
44452
|
swiping: !0
|
|
44449
44453
|
});
|
|
44450
44454
|
});
|
|
@@ -44630,7 +44634,7 @@ const Hy = Cn({
|
|
|
44630
44634
|
default: !1
|
|
44631
44635
|
});
|
|
44632
44636
|
function fj({ onBack: i, onStartWayfinding: o, onSetSize: a, snapPointSwiped: u, onStartDirections: d }) {
|
|
44633
|
-
const { t: g } = rs(), _ = be.useRef(null), b = be.useRef(null), m = be.useRef(null), [I, A] = be.useState(!1), [S, C] = be.useState(!1), [z, L] = be.useState(!1), [R, Y] = be.useState(null), B = Ct(so), U = Ct(ml), [V, $] = Nne(U, m), te = hh(), ce = Ct(zs), le = Ct(ga), fe = Ct(Sw), [Z, _e] = be.useState(), [
|
|
44637
|
+
const { t: g } = rs(), _ = be.useRef(null), b = be.useRef(null), m = be.useRef(null), [I, A] = be.useState(!1), [S, C] = be.useState(!1), [z, L] = be.useState(!1), [R, Y] = be.useState(null), B = Ct(so), U = Ct(ml), [V, $] = Nne(U, m), te = hh(), ce = Ct(zs), le = Ct(ga), fe = Ct(Sw), [Z, _e] = be.useState(), [Ae, Qe] = be.useState(), we = fa(), Ze = Ct(Zy), Ce = Ct(Gy), [, , Ie] = dj(Ae, Z, fe, Ze, Ce);
|
|
44634
44638
|
be.useEffect(() => {
|
|
44635
44639
|
A(!1), C(!1), L(!1), Y(null), U && (_.current.location = U, Y(B.getDisplayRule(U)), _e(U)), le && Qe(le);
|
|
44636
44640
|
}, [U, B, le]);
|
|
@@ -44679,9 +44683,9 @@ function fj({ onBack: i, onStartWayfinding: o, onSetSize: a, snapPointSwiped: u,
|
|
|
44679
44683
|
] }),
|
|
44680
44684
|
/* @__PURE__ */ Pe.jsxs("div", { ref: b, onScroll: (W) => ee(), className: "location-details__details", children: [
|
|
44681
44685
|
U.properties.imageURL && /* @__PURE__ */ Pe.jsx("img", { alt: "", src: U.properties.imageURL, className: "location-details__image" }),
|
|
44682
|
-
Object.keys(U.properties.categories).length > 0 && /* @__PURE__ */ Pe.jsx("p", { className: "location-details__categories", children: Object.values(U.properties.categories).map((W, he,
|
|
44686
|
+
Object.keys(U.properties.categories).length > 0 && /* @__PURE__ */ Pe.jsx("p", { className: "location-details__categories", children: Object.values(U.properties.categories).map((W, he, Se) => /* @__PURE__ */ Pe.jsxs(ti.Fragment, { children: [
|
|
44683
44687
|
W,
|
|
44684
|
-
he <
|
|
44688
|
+
he < Se.length - 1 && /* @__PURE__ */ Pe.jsx(Pe.Fragment, { children: "・" })
|
|
44685
44689
|
] }, W)) }),
|
|
44686
44690
|
U.properties.description && !I && /* @__PURE__ */ Pe.jsxs("section", { className: "location-details__description", children: [
|
|
44687
44691
|
/* @__PURE__ */ Pe.jsx("div", { ref: m, children: U.properties.description }),
|
|
@@ -44695,11 +44699,11 @@ function fj({ onBack: i, onStartWayfinding: o, onSetSize: a, snapPointSwiped: u,
|
|
|
44695
44699
|
le && we ? /* @__PURE__ */ Pe.jsx(
|
|
44696
44700
|
"button",
|
|
44697
44701
|
{
|
|
44698
|
-
disabled: !
|
|
44702
|
+
disabled: !Ie,
|
|
44699
44703
|
onClick: () => H(),
|
|
44700
|
-
className: `location-details__wayfinding ${
|
|
44704
|
+
className: `location-details__wayfinding ${Ie ? "" : "location-details--no-route"}`,
|
|
44701
44705
|
style: { background: ce },
|
|
44702
|
-
children: g(
|
|
44706
|
+
children: g(Ie ? "Start directions" : "Directions not available")
|
|
44703
44707
|
}
|
|
44704
44708
|
) : /* @__PURE__ */ Pe.jsx(
|
|
44705
44709
|
"button",
|
|
@@ -44717,9 +44721,11 @@ function Qw({ location: i, locationClicked: o, icon: a, isHovered: u }) {
|
|
|
44717
44721
|
const { t: d } = rs(), g = be.useRef(), _ = Ct(so);
|
|
44718
44722
|
return be.useEffect(() => {
|
|
44719
44723
|
const b = (S) => o(S.detail), m = () => {
|
|
44720
|
-
|
|
44724
|
+
var S;
|
|
44725
|
+
((S = i.properties.locationSettings) == null ? void 0 : S.selectable) !== !1 && _.hoverLocation(i);
|
|
44721
44726
|
}, I = () => {
|
|
44722
|
-
|
|
44727
|
+
var S;
|
|
44728
|
+
(S = i.properties.locationSettings) != null && S.selectable || _.unhoverLocation(i);
|
|
44723
44729
|
}, { current: A } = g;
|
|
44724
44730
|
return A.location = i, A.icon = a || _.getDisplayRule(i).icon, A.addEventListener("locationClicked", b), A.addEventListener("mouseover", m), A.addEventListener("mouseout", I), u ? g.current.classList.add("hovered") : g.current.classList.remove("hovered"), () => {
|
|
44725
44731
|
A.removeEventListener("locationClicked", b), A.removeEventListener("mouseover", m), A.removeEventListener("mouseout", I);
|
|
@@ -44888,7 +44894,7 @@ const cr = {
|
|
|
44888
44894
|
FROM: "FROM"
|
|
44889
44895
|
}, Qne = "data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";
|
|
44890
44896
|
function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directionsFromLocation: u, onSetSize: d, isActive: g }) {
|
|
44891
|
-
const { t: _ } = rs(), b = be.useRef(), m = be.useRef(), I = be.useRef(), A = be.useRef(), S = Ct(Sw), C = Ct(By), z = Ct(ml), L = Ct(Ew), R = Ct(zs), [Y, B] = be.useState(), [, U] = tn(Vw), [V, $] = be.useState(!0), [te, ce] = be.useState(!1), [le, fe] = be.useState([]), [Z, _e] = be.useState(), [
|
|
44897
|
+
const { t: _ } = rs(), b = be.useRef(), m = be.useRef(), I = be.useRef(), A = be.useRef(), S = Ct(Sw), C = Ct(By), z = Ct(ml), L = Ct(Ew), R = Ct(zs), [Y, B] = be.useState(), [, U] = tn(Vw), [V, $] = be.useState(!0), [te, ce] = be.useState(!1), [le, fe] = be.useState([]), [Z, _e] = be.useState(), [Ae, Qe] = be.useState(), we = Ct(Gy), Ze = hh(), [Ce, Ie] = be.useState(!1), [ke, Ne] = tn(Zy), [Le, ue] = be.useState(!1), ee = Ct(Ff), K = Ct(Bne), [F, H, ae] = dj(Ae, Z, S, ke, we);
|
|
44892
44898
|
function W(se) {
|
|
44893
44899
|
return L === jr.Google && se.properties.type === "google_places" ? jne(se) : L === jr.Mapbox && se.properties.type === "mapbox_places" ? Une(se, ee) : Promise.resolve(se);
|
|
44894
44900
|
}
|
|
@@ -44897,15 +44903,15 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
44897
44903
|
_e(Ge), I.current.setDisplayText(Ge.properties.name);
|
|
44898
44904
|
}, () => U(!1)) : Y === cr.FROM && W(se).then((Ge) => {
|
|
44899
44905
|
Qe(Ge), A.current.setDisplayText(Ge.properties.name);
|
|
44900
|
-
}, () => U(!1)),
|
|
44906
|
+
}, () => U(!1)), Ie(!1), ce(!1), fe([]), ue(!1);
|
|
44901
44907
|
}
|
|
44902
|
-
function
|
|
44908
|
+
function Se(se, Ge) {
|
|
44903
44909
|
if (B(Ge), U(!0), se.length === 0)
|
|
44904
|
-
$(!1),
|
|
44910
|
+
$(!1), Ie(!1), fe([]);
|
|
44905
44911
|
else {
|
|
44906
44912
|
$(!0), fe(se);
|
|
44907
44913
|
const et = se.filter((ot) => ot.properties.type === "google_places").length > 0;
|
|
44908
|
-
|
|
44914
|
+
Ie(et);
|
|
44909
44915
|
}
|
|
44910
44916
|
}
|
|
44911
44917
|
function Me(se) {
|
|
@@ -44913,28 +44919,28 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
44913
44919
|
}
|
|
44914
44920
|
function je() {
|
|
44915
44921
|
const se = q3(C);
|
|
44916
|
-
Y === cr.TO ? (I.current.setDisplayText(se.properties.name), _e(se)) : Y === cr.FROM && (A.current.setDisplayText(se.properties.name), Qe(se)), fe([]), U(!0), $(!0),
|
|
44922
|
+
Y === cr.TO ? (I.current.setDisplayText(se.properties.name), _e(se)) : Y === cr.FROM && (A.current.setDisplayText(se.properties.name), Qe(se)), fe([]), U(!0), $(!0), Ie(!1), ce(!1), ue(!1);
|
|
44917
44923
|
}
|
|
44918
44924
|
function Ke(se) {
|
|
44919
|
-
(
|
|
44925
|
+
(Ae == null ? void 0 : Ae.id) === "USER_POSITION" && se === cr.TO || (Z == null ? void 0 : Z.id) === "USER_POSITION" && se === cr.FROM ? ue(!1) : ue(!0);
|
|
44920
44926
|
}
|
|
44921
44927
|
function mt(se) {
|
|
44922
44928
|
Ke(se);
|
|
44923
44929
|
}
|
|
44924
44930
|
function Ye(se) {
|
|
44925
|
-
B(se),
|
|
44931
|
+
B(se), Te(se), U(!0), Ie(!1), Ke(se);
|
|
44926
44932
|
}
|
|
44927
44933
|
function rt(se) {
|
|
44928
|
-
ue(!0), B(se), ht(se), fe([]), U(!0),
|
|
44934
|
+
ue(!0), B(se), ht(se), fe([]), U(!0), Ie(!1), $(!0);
|
|
44929
44935
|
}
|
|
44930
44936
|
function ht(se) {
|
|
44931
44937
|
se === cr.TO ? _e() : se === cr.FROM && Qe();
|
|
44932
44938
|
}
|
|
44933
|
-
function
|
|
44939
|
+
function Te(se) {
|
|
44934
44940
|
se === cr.TO ? (fe([]), I.current.getValue() && (ce(!0), I.current.triggerSearch())) : se === cr.FROM && (fe([]), A.current.getValue() && (ce(!0), A.current.triggerSearch()));
|
|
44935
44941
|
}
|
|
44936
44942
|
function X() {
|
|
44937
|
-
(Z ||
|
|
44943
|
+
(Z || Ae) && (Ae ? I.current.setDisplayText(Ae.properties.name) : I.current.clear(), Z ? A.current.setDisplayText(Z.properties.name) : A.current.clear(), _e(Ae), Qe(Z));
|
|
44938
44944
|
}
|
|
44939
44945
|
function oe() {
|
|
44940
44946
|
Qe(), A.current.setDisplayText(""), o();
|
|
@@ -44943,17 +44949,17 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
44943
44949
|
var Ge;
|
|
44944
44950
|
Me(Li.MAX);
|
|
44945
44951
|
let se = !1;
|
|
44946
|
-
if ((u == null ? void 0 : u.id) === "USER_POSITION" && (a == null ? void 0 : a.id) === "USER_POSITION" && (a = void 0), a != null && a.properties && !z && (I.current.setDisplayText(a.properties.name), _e(a)), u != null && u.properties ?
|
|
44952
|
+
if ((u == null ? void 0 : u.id) === "USER_POSITION" && (a == null ? void 0 : a.id) === "USER_POSITION" && (a = void 0), a != null && a.properties && !z && (I.current.setDisplayText(a.properties.name), _e(a)), u != null && u.properties ? Ae || (A.current.setDisplayText(u.properties.name), Qe(u), se = !0) : B(cr.FROM), g && !((Ge = A.current) != null && Ge.getValue())) {
|
|
44947
44953
|
const et = b.current.closest(".sheet");
|
|
44948
44954
|
if (et ? et.addEventListener("transitionend", () => {
|
|
44949
44955
|
u !== "USER_POSITION_PENDING" && (a == null ? void 0 : a.id) !== "USER_POSITION" && A.current.focusInput();
|
|
44950
|
-
}, { once: !0 }) : u !== "USER_POSITION_PENDING" && (a == null ? void 0 : a.id) !== "USER_POSITION" && A.current.focusInput(), C && !
|
|
44956
|
+
}, { once: !0 }) : u !== "USER_POSITION_PENDING" && (a == null ? void 0 : a.id) !== "USER_POSITION" && A.current.focusInput(), C && !Ae && (a == null ? void 0 : a.id) !== "USER_POSITION" && !se) {
|
|
44951
44957
|
const ot = q3(C);
|
|
44952
44958
|
A.current.setDisplayText(ot.properties.name), Qe(ot), U(!0), $(!0), fe([]);
|
|
44953
44959
|
}
|
|
44954
44960
|
}
|
|
44955
44961
|
}, [g, a, u]), be.useEffect(() => {
|
|
44956
|
-
L === jr.Mapbox && (
|
|
44962
|
+
L === jr.Mapbox && (Ie(!1), fe(le.filter((se) => se.properties.type !== "google_places")));
|
|
44957
44963
|
}, [L]), be.useEffect(() => {
|
|
44958
44964
|
z && (_e(z), I.current.setDisplayText(z.properties.name));
|
|
44959
44965
|
}, [z]), /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding", ref: b, children: [
|
|
@@ -44979,7 +44985,7 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
44979
44985
|
google: L === jr.Google,
|
|
44980
44986
|
mapbox: L === jr.Mapbox,
|
|
44981
44987
|
placeholder: _("Search by name, category, building..."),
|
|
44982
|
-
results: (se) =>
|
|
44988
|
+
results: (se) => Se(se, cr.FROM),
|
|
44983
44989
|
clicked: () => Ye(cr.FROM),
|
|
44984
44990
|
cleared: () => rt(cr.FROM),
|
|
44985
44991
|
changed: () => mt(cr.FROM)
|
|
@@ -45005,7 +45011,7 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
45005
45011
|
google: L === jr.Google,
|
|
45006
45012
|
mapbox: L === jr.Mapbox,
|
|
45007
45013
|
placeholder: _("Search by name, category, building..."),
|
|
45008
|
-
results: (se) =>
|
|
45014
|
+
results: (se) => Se(se, cr.TO),
|
|
45009
45015
|
clicked: () => Ye(cr.TO),
|
|
45010
45016
|
cleared: () => rt(cr.TO),
|
|
45011
45017
|
changed: () => mt(cr.TO)
|
|
@@ -45032,9 +45038,9 @@ function mj({ onStartDirections: i, onBack: o, directionsToLocation: a, directio
|
|
|
45032
45038
|
se.id
|
|
45033
45039
|
)
|
|
45034
45040
|
),
|
|
45035
|
-
|
|
45041
|
+
Ce && /* @__PURE__ */ Pe.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: kne })
|
|
45036
45042
|
] }) }),
|
|
45037
|
-
!te && !Le && ae && !
|
|
45043
|
+
!te && !Le && ae && !Ce && Ae && Z && /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__details", ref: m, children: [
|
|
45038
45044
|
/* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__settings", children: [
|
|
45039
45045
|
/* @__PURE__ */ Pe.jsx(gj, {}),
|
|
45040
45046
|
/* @__PURE__ */ Pe.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ Pe.jsxs(Rne, { selectionChanged: (se) => Ne(se[0].value), children: [
|
|
@@ -45276,7 +45282,7 @@ function _j({ isOpen: i, onBack: o, onSetSize: a, snapPointSwiped: u, onRouteFin
|
|
|
45276
45282
|
function _e() {
|
|
45277
45283
|
rr && rr.nextStep();
|
|
45278
45284
|
}
|
|
45279
|
-
function
|
|
45285
|
+
function Ae() {
|
|
45280
45286
|
rr && rr.previousStep();
|
|
45281
45287
|
}
|
|
45282
45288
|
function Qe() {
|
|
@@ -45286,16 +45292,16 @@ function _j({ isOpen: i, onBack: o, onSetSize: a, snapPointSwiped: u, onRouteFin
|
|
|
45286
45292
|
rr == null || rr.setRoute(null), rr = null;
|
|
45287
45293
|
}
|
|
45288
45294
|
function Ze() {
|
|
45289
|
-
L(0), Y(!1),
|
|
45295
|
+
L(0), Y(!1), Ie(Li.FIT);
|
|
45290
45296
|
}
|
|
45291
|
-
function
|
|
45297
|
+
function Ce() {
|
|
45292
45298
|
Ze(), we(), o();
|
|
45293
45299
|
}
|
|
45294
|
-
function
|
|
45300
|
+
function Ie(ke) {
|
|
45295
45301
|
typeof a == "function" && a(ke);
|
|
45296
45302
|
}
|
|
45297
45303
|
return be.useEffect(() => {
|
|
45298
|
-
|
|
45304
|
+
Ie(R ? Li.MAX : Li.FIT);
|
|
45299
45305
|
}, [R]), be.useEffect(() => {
|
|
45300
45306
|
i && u && Y(u === Li.MAX);
|
|
45301
45307
|
}, [i, u]), /* @__PURE__ */ Pe.jsxs("div", { className: "directions", style: { display: ce ? "block" : "grid" }, children: [
|
|
@@ -45308,7 +45314,7 @@ function _j({ isOpen: i, onBack: o, onSetSize: a, snapPointSwiped: u, onRouteFin
|
|
|
45308
45314
|
originLocation: z == null ? void 0 : z.originLocation,
|
|
45309
45315
|
onNextStep: () => _e(),
|
|
45310
45316
|
isOpen: i,
|
|
45311
|
-
onPreviousStep: () =>
|
|
45317
|
+
onPreviousStep: () => Ae(),
|
|
45312
45318
|
onFitCurrentDirections: () => Qe()
|
|
45313
45319
|
}
|
|
45314
45320
|
)
|
|
@@ -45331,7 +45337,7 @@ function _j({ isOpen: i, onBack: o, onSetSize: a, snapPointSwiped: u, onRouteFin
|
|
|
45331
45337
|
/* @__PURE__ */ Pe.jsx("mi-location-info", { ref: m, "show-external-id": !1 })
|
|
45332
45338
|
] })
|
|
45333
45339
|
] }) }),
|
|
45334
|
-
$ ? /* @__PURE__ */ Pe.jsx("button", { className: "directions__finish", onClick: () => d(), style: { background: te }, children: g("Finish route") }) : /* @__PURE__ */ Pe.jsx("button", { className: "directions__cancel", onClick: () =>
|
|
45340
|
+
$ ? /* @__PURE__ */ Pe.jsx("button", { className: "directions__finish", onClick: () => d(), style: { background: te }, children: g("Finish route") }) : /* @__PURE__ */ Pe.jsx("button", { className: "directions__cancel", onClick: () => Ce(), children: g("Cancel route") })
|
|
45335
45341
|
] })
|
|
45336
45342
|
] });
|
|
45337
45343
|
}
|
|
@@ -45410,11 +45416,11 @@ function eie({ onSetSize: i, getFilteredLocations: o, searchFieldRef: a }) {
|
|
|
45410
45416
|
] }) });
|
|
45411
45417
|
}
|
|
45412
45418
|
function Mj({ onSetSize: i, isOpen: o }) {
|
|
45413
|
-
const { t: a } = rs(), u = be.useRef(), d = be.useRef(), g = be.useRef(), _ = be.useRef(), [b, m] = be.useState(!0), [I, A] = tn($w), S = Ct(Vf), C = Ct(vj), [z, L] = be.useState(!1), [R, Y] = tn(xj), B = hh(), [U, V] = be.useState(), $ = Ct(so), [, te] = tn(Fy), [, ce] = tn(ml), [, le] = tn(Fw), [fe, Z] = tn(Qy), _e = Ct(Qf),
|
|
45419
|
+
const { t: a } = rs(), u = be.useRef(), d = be.useRef(), g = be.useRef(), _ = be.useRef(), [b, m] = be.useState(!0), [I, A] = tn($w), S = Ct(Vf), C = Ct(vj), [z, L] = be.useState(!1), [R, Y] = tn(xj), B = hh(), [U, V] = be.useState(), $ = Ct(so), [, te] = tn(Fy), [, ce] = tn(ml), [, le] = tn(Fw), [fe, Z] = tn(Qy), _e = Ct(Qf), Ae = fa(), Qe = Ct(ga), [we, Ze] = be.useState(!1), Ce = Ct(pj), Ie = Yf();
|
|
45414
45420
|
function ke(he) {
|
|
45415
45421
|
window.mapsindoors.services.LocationsService.getLocations({
|
|
45416
45422
|
categories: he,
|
|
45417
|
-
venue: Qe &&
|
|
45423
|
+
venue: Qe && Ie ? Qe.properties.venueId : void 0
|
|
45418
45424
|
}).then(Le);
|
|
45419
45425
|
}
|
|
45420
45426
|
function Ne(he) {
|
|
@@ -45438,25 +45444,25 @@ function Mj({ onSetSize: i, isOpen: o }) {
|
|
|
45438
45444
|
}
|
|
45439
45445
|
function F(he) {
|
|
45440
45446
|
ce(he), he.properties.venueId !== fe && (Z(he.properties.venueId), le(!0));
|
|
45441
|
-
const
|
|
45442
|
-
Me !==
|
|
45447
|
+
const Se = $.getFloor(), Me = he.properties.floor;
|
|
45448
|
+
Me !== Se && $.setFloor(Me), Promise.all([H(), ae()]).then(([je, Ke]) => {
|
|
45443
45449
|
cj(he, $, je, Ke);
|
|
45444
45450
|
});
|
|
45445
45451
|
}
|
|
45446
45452
|
function H() {
|
|
45447
45453
|
return new Promise((he) => {
|
|
45448
|
-
|
|
45454
|
+
Ae ? Qe ? Ow().then((Se) => he(Se)) : he(0) : he(200);
|
|
45449
45455
|
});
|
|
45450
45456
|
}
|
|
45451
45457
|
function ae() {
|
|
45452
45458
|
return new Promise((he) => {
|
|
45453
|
-
|
|
45459
|
+
Ae ? Qe ? he(0) : kw().then((Se) => he(Se)) : he(0);
|
|
45454
45460
|
});
|
|
45455
45461
|
}
|
|
45456
45462
|
function W() {
|
|
45457
45463
|
if (I.length > 0) {
|
|
45458
45464
|
let he;
|
|
45459
|
-
return
|
|
45465
|
+
return Ae ? he = document.querySelector(".mapsindoors-map").clientHeight * 0.6 + "px" : he = "100%", { display: "flex", flexDirection: "column", maxHeight: he, overflow: "hidden" };
|
|
45460
45466
|
} else
|
|
45461
45467
|
return { minHeight: S.length > 0 ? "136px" : "80px" };
|
|
45462
45468
|
}
|
|
@@ -45469,14 +45475,14 @@ function Mj({ onSetSize: i, isOpen: o }) {
|
|
|
45469
45475
|
}, [_e]), be.useEffect(() => ($.on("mouseenter", K), () => {
|
|
45470
45476
|
$.off("mouseenter", K);
|
|
45471
45477
|
})), be.useEffect(() => {
|
|
45472
|
-
if (o &&
|
|
45478
|
+
if (o && Ie && I.length > 0) {
|
|
45473
45479
|
const he = document.querySelector(".mapsindoors-map .search__results");
|
|
45474
45480
|
d.current.scrollContainerElementRef = he;
|
|
45475
45481
|
}
|
|
45476
45482
|
}, [I, o]), be.useEffect(() => {
|
|
45477
45483
|
if (C) {
|
|
45478
|
-
const he = (
|
|
45479
|
-
|
|
45484
|
+
const he = (Se) => {
|
|
45485
|
+
Se.target.closest("mi-keyboard") || Se.target.tagName.toUpperCase() === "MI-SEARCH" || Se.target.tagName.toUpperCase() === "INPUT" ? Ze(!0) : Ze(!1);
|
|
45480
45486
|
};
|
|
45481
45487
|
return window.addEventListener("click", he, !1), () => {
|
|
45482
45488
|
window.removeEventListener("click", he, !1);
|
|
@@ -45523,8 +45529,8 @@ function Mj({ onSetSize: i, isOpen: o }) {
|
|
|
45523
45529
|
},
|
|
45524
45530
|
he.id
|
|
45525
45531
|
)) }),
|
|
45526
|
-
we &&
|
|
45527
|
-
o &&
|
|
45532
|
+
we && Ae && /* @__PURE__ */ Pe.jsx(Kne, { ref: _, searchInputElement: Ce }),
|
|
45533
|
+
o && Ie && I.length > 0 && lw.createPortal(
|
|
45528
45534
|
/* @__PURE__ */ Pe.jsx("div", { className: "search__scroll-buttons", children: /* @__PURE__ */ Pe.jsx("mi-scroll-buttons", { ref: d }) }),
|
|
45529
45535
|
document.querySelector(".mapsindoors-map")
|
|
45530
45536
|
)
|
|
@@ -45565,7 +45571,7 @@ function tie({ directionsFromLocation: i, directionsToLocation: o, pushAppView:
|
|
|
45565
45571
|
be.useEffect(() => {
|
|
45566
45572
|
i && o && u === d.DIRECTIONS || (i && o || i ? a(d.WAYFINDING) : ce ? a(d.LOCATION_DETAILS, ce) : (fe == null ? void 0 : fe.length) > 1 ? a(d.EXTERNALIDS) : (fe == null ? void 0 : fe.length) === 1 ? (le(fe[0]), _e(fe[0].id)) : a(d.SEARCH));
|
|
45567
45573
|
}, [ce, i, o, fe]);
|
|
45568
|
-
function
|
|
45574
|
+
function Ae() {
|
|
45569
45575
|
(fe == null ? void 0 : fe.length) > 1 ? (a(d.EXTERNALIDS), le()) : (fe == null ? void 0 : fe.length) === 1 ? (a(d.SEARCH), le(), Z([])) : (a(d.SEARCH), le());
|
|
45570
45576
|
}
|
|
45571
45577
|
function Qe() {
|
|
@@ -45618,7 +45624,7 @@ function tie({ directionsFromLocation: i, directionsToLocation: o, pushAppView:
|
|
|
45618
45624
|
{
|
|
45619
45625
|
onSetSize: (Ze) => m(Ze),
|
|
45620
45626
|
onStartWayfinding: () => a(d.WAYFINDING),
|
|
45621
|
-
onBack: () =>
|
|
45627
|
+
onBack: () => Ae(),
|
|
45622
45628
|
snapPointSwiped: I,
|
|
45623
45629
|
onStartDirections: () => a(d.DIRECTIONS)
|
|
45624
45630
|
}
|
|
@@ -46966,11 +46972,11 @@ var Eie = jj.exports;
|
|
|
46966
46972
|
for (let ce = 0; ce < B.length; ce++) {
|
|
46967
46973
|
const le = B[ce], fe = [];
|
|
46968
46974
|
for (let Z = 0; Z < le.length; Z++) {
|
|
46969
|
-
const _e = le[Z],
|
|
46970
|
-
fe.push(
|
|
46975
|
+
const _e = le[Z], Ae = "" + ce + Z;
|
|
46976
|
+
fe.push(Ae), V[Ae] = { node: _e, lastCount: 0 }, $[Ae] = {};
|
|
46971
46977
|
for (let Qe = 0; Qe < te.length; Qe++) {
|
|
46972
46978
|
const we = te[Qe];
|
|
46973
|
-
V[we] && V[we].node.mode === _e.mode ? ($[we][
|
|
46979
|
+
V[we] && V[we].node.mode === _e.mode ? ($[we][Ae] = C(V[we].lastCount + _e.length, _e.mode) - C(V[we].lastCount, _e.mode), V[we].lastCount += _e.length) : (V[we] && (V[we].lastCount = _e.length), $[we][Ae] = C(_e.length, _e.mode) + 4 + o.getCharCountIndicator(_e.mode, U));
|
|
46974
46980
|
}
|
|
46975
46981
|
}
|
|
46976
46982
|
te = fe;
|
|
@@ -47321,7 +47327,7 @@ const Kie = Cn({
|
|
|
47321
47327
|
});
|
|
47322
47328
|
ete();
|
|
47323
47329
|
function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationId: d, primaryColor: g, logo: _, appUserRoles: b, directionsFrom: m, directionsTo: I, externalIDs: A, tileStyle: S, startZoomLevel: C, bearing: z, pitch: L, gmMapId: R, useMapProviderModule: Y, kioskOriginLocationId: B, language: U, supportsUrlParameters: V, useKeyboard: $, timeout: te, miTransitionLevel: ce }) {
|
|
47324
|
-
const [, le] = tn(Nw), [, fe] = tn(Uy), [, Z] = tn(Ff), [_e,
|
|
47330
|
+
const [, le] = tn(Nw), [, fe] = tn(Uy), [, Z] = tn(Ff), [_e, Ae] = tn(Pw), [Qe, we] = tn(jw), [, Ze] = tn(ej), [Ce, Ie] = tn(ml), [ke, Ne] = tn(Vf), [, Le] = tn(Yy), [, ue] = tn(zs), [, ee] = tn(Uw), [, K] = tn(VO), F = Ct(so), [H, ae] = tn(Qf), [, W] = tn(ga), [, he] = tn(XO), [, Se] = tn(nj), Me = ij(), [, je] = tn(Kie), [, Ke] = tn(vj), [, mt] = tn(HO), [Ye, rt] = be.useState(!0), [ht, Te] = be.useState(!0), X = _9(m), oe = _9(I), [se, Ge] = be.useState(!1), [, et] = tn(Vy), [ot, Dt] = tn(Fy), [Je, ft] = be.useState(), [pt, nt] = be.useState(), [, Yt] = tn(zw), [, cn] = tn(ZO), [, In] = tn(JO), [, Qt] = tn(Uf), [, Bt] = tn(Bf), un = fa(), Kn = QO("(max-width: 991px)"), We = rie(), Be = Rw(), [wt, Ut, at, bt, St, Pt] = iie(), De = be.useRef(), [Ue, it] = be.useState(!1), ct = Ct(Wy), [lt, _t] = be.useState(0);
|
|
47325
47331
|
function xt() {
|
|
47326
47332
|
return new Promise((yt) => {
|
|
47327
47333
|
if (window.mapsindoors !== void 0)
|
|
@@ -47344,11 +47350,11 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
|
|
|
47344
47350
|
window.mapsindoors.MapsIndoors.setLanguage(yt), window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
47345
47351
|
ke.length > 0 && Mt(u), Qe.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((Ht) => {
|
|
47346
47352
|
Ht = Ht.map((Dn) => (Dn.image = pt.venueImages[Dn.name.toLowerCase()], Dn)), we(Ht);
|
|
47347
|
-
}),
|
|
47353
|
+
}), Ce && window.mapsindoors.services.LocationsService.getLocation(Ce.id).then((Ht) => Ie(Ht));
|
|
47348
47354
|
}), H ? wr.changeLanguage(yt) : Bte(yt), ae(yt);
|
|
47349
47355
|
}
|
|
47350
47356
|
}, [U, Ue]), be.useEffect(() => {
|
|
47351
|
-
Ue && (le(i),
|
|
47357
|
+
Ue && (le(i), Ae(!1), window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(i), Promise.all([
|
|
47352
47358
|
// Fetch all Venues in the Solution
|
|
47353
47359
|
window.mapsindoors.services.VenuesService.getVenues(),
|
|
47354
47360
|
// Fetch the App Config belonging to the given API key. This is needed for checking access tokens and Venue images.
|
|
@@ -47359,7 +47365,7 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
|
|
|
47359
47365
|
new Promise((yt) => setTimeout(yt, 3e3))
|
|
47360
47366
|
]).then(([yt, Ht]) => {
|
|
47361
47367
|
yt = yt.map((Dn) => (Dn.image = Ht.venueImages[Dn.name.toLowerCase()], Dn)), we(yt);
|
|
47362
|
-
}),
|
|
47368
|
+
}), Ae(!1));
|
|
47363
47369
|
}, [i, Ue]), be.useEffect(() => {
|
|
47364
47370
|
var yt, Ht;
|
|
47365
47371
|
Ue && pt && (Z(a || ((yt = pt.appSettings) == null ? void 0 : yt.mapboxAccessToken)), fe(o || ((Ht = pt.appSettings) == null ? void 0 : Ht.gmKey)));
|
|
@@ -47374,12 +47380,12 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
|
|
|
47374
47380
|
}) : et([]));
|
|
47375
47381
|
}, [A, Ue]), be.useEffect(() => {
|
|
47376
47382
|
Ue && (Le(d), d && window.mapsindoors.services.LocationsService.getLocation(d).then((yt) => {
|
|
47377
|
-
yt && (Be(yt.properties.venueId),
|
|
47383
|
+
yt && (Be(yt.properties.venueId), Ie(yt));
|
|
47378
47384
|
}));
|
|
47379
47385
|
}, [d, Ue, lt]), be.useEffect(() => {
|
|
47380
47386
|
Ue && K(R);
|
|
47381
47387
|
}, [R, Ue]), be.useEffect(() => {
|
|
47382
|
-
at === St.LOCATION_DETAILS && bt && !
|
|
47388
|
+
at === St.LOCATION_DETAILS && bt && !Ce && Ie(bt), De.current = at === St.DIRECTIONS, De.current ? (ft(ot), Dt([])) : Dt(Je);
|
|
47383
47389
|
}, [at]), be.useEffect(() => {
|
|
47384
47390
|
Ze(u), Be(u);
|
|
47385
47391
|
}, [u]), be.useEffect(() => {
|
|
@@ -47397,23 +47403,23 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
|
|
|
47397
47403
|
}, [_]), be.useEffect(() => {
|
|
47398
47404
|
mt(ce);
|
|
47399
47405
|
}, [ce]), be.useEffect(() => {
|
|
47400
|
-
|
|
47401
|
-
}, [
|
|
47406
|
+
Ce && Ce.id !== B ? F != null && F.selectLocation && F.selectLocation(Ce) : F != null && F.deselectLocation && F.deselectLocation();
|
|
47407
|
+
}, [Ce]), be.useEffect(() => {
|
|
47402
47408
|
Ue && (he(B), B ? window.mapsindoors.services.LocationsService.getLocation(B).then((yt) => {
|
|
47403
47409
|
Be(yt.properties.venueId), W(yt);
|
|
47404
|
-
}) : W(), B && un ? (rt(!1),
|
|
47410
|
+
}) : W(), B && un ? (rt(!1), Te(!1)) : (rt(!0), Te(!0)));
|
|
47405
47411
|
}, [B, Ue]), be.useEffect(() => {
|
|
47406
|
-
|
|
47412
|
+
Se(te);
|
|
47407
47413
|
}, [te]), be.useEffect(() => {
|
|
47408
47414
|
je(V);
|
|
47409
47415
|
}, [V]), be.useEffect(() => {
|
|
47410
47416
|
Ue && $ && B && Ke($);
|
|
47411
47417
|
}, [$, B, Ue]);
|
|
47412
47418
|
function vt(yt) {
|
|
47413
|
-
_e === !1 &&
|
|
47419
|
+
_e === !1 && Ae(!0), Mt(yt.name);
|
|
47414
47420
|
}
|
|
47415
47421
|
function Et(yt) {
|
|
47416
|
-
|
|
47422
|
+
De.current !== !0 && yt.id !== B && Ie(yt);
|
|
47417
47423
|
}
|
|
47418
47424
|
function Mt(yt) {
|
|
47419
47425
|
window.mapsindoors.services.LocationsService.getLocations({}).then((Ht) => {
|
|
@@ -47439,7 +47445,7 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
|
|
|
47439
47445
|
}
|
|
47440
47446
|
Ht = Array.from(Ht).sort((Dn, ni) => ni[1].count - Dn[1].count), Ne(Ht);
|
|
47441
47447
|
}
|
|
47442
|
-
return /* @__PURE__ */ Pe.jsxs("div", { className: `mapsindoors-map ${
|
|
47448
|
+
return /* @__PURE__ */ Pe.jsxs("div", { className: `mapsindoors-map ${De.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"} ${ht ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, children: [
|
|
47443
47449
|
/* @__PURE__ */ Pe.jsx(sie, {}),
|
|
47444
47450
|
!_e && /* @__PURE__ */ Pe.jsx(hne, {}),
|
|
47445
47451
|
Qe.length > 1 && Ye && /* @__PURE__ */ Pe.jsx(
|
|
@@ -47498,7 +47504,7 @@ function Uj(i) {
|
|
|
47498
47504
|
// --brand-colors-dark-pine-100 from MIDT
|
|
47499
47505
|
useMapProviderModule: !1,
|
|
47500
47506
|
useKeyboard: !1
|
|
47501
|
-
}, _ = d.get("apiKey"), b = d.get("venue"), m = d.get("locationId"), I = d.get("logo"), A = d.get("directionsFrom"), S = d.get("directionsTo"), C = d.get("tileStyle"), z = d.get("startZoomLevel"), L = d.get("pitch"), R = d.get("bearing"), Y = d.get("gmApiKey"), B = d.get("mapboxAccessToken"), U = d.get("primaryColor"), V = (Qe = d.get("appUserRoles")) == null ? void 0 : Qe.split(","), $ = (we = d.get("externalIDs")) == null ? void 0 : we.split(","), te = d.get("gmMapId"), ce = b9(d.get("useMapProviderModule")), le = d.get("kioskOriginLocationId"), fe = d.get("timeout"), Z = d.get("language"), _e = b9(d.get("useKeyboard")),
|
|
47507
|
+
}, _ = d.get("apiKey"), b = d.get("venue"), m = d.get("locationId"), I = d.get("logo"), A = d.get("directionsFrom"), S = d.get("directionsTo"), C = d.get("tileStyle"), z = d.get("startZoomLevel"), L = d.get("pitch"), R = d.get("bearing"), Y = d.get("gmApiKey"), B = d.get("mapboxAccessToken"), U = d.get("primaryColor"), V = (Qe = d.get("appUserRoles")) == null ? void 0 : Qe.split(","), $ = (we = d.get("externalIDs")) == null ? void 0 : we.split(","), te = d.get("gmMapId"), ce = b9(d.get("useMapProviderModule")), le = d.get("kioskOriginLocationId"), fe = d.get("timeout"), Z = d.get("language"), _e = b9(d.get("useKeyboard")), Ae = d.get("miTransitionLevel");
|
|
47502
47508
|
a({
|
|
47503
47509
|
apiKey: i.supportsUrlParameters && _ ? _ : i.apiKey || g.apiKey,
|
|
47504
47510
|
venue: i.supportsUrlParameters && b ? b : i.venue || g.venue,
|
|
@@ -47522,7 +47528,7 @@ function Uj(i) {
|
|
|
47522
47528
|
language: i.supportsUrlParameters && Z ? Z : i.language,
|
|
47523
47529
|
supportsUrlParameters: i.supportsUrlParameters,
|
|
47524
47530
|
useKeyboard: i.supportsUrlParameters && _e ? _e : i.useKeyboard || g.useKeyboard,
|
|
47525
|
-
miTransitionLevel: i.supportsUrlParameters &&
|
|
47531
|
+
miTransitionLevel: i.supportsUrlParameters && Ae ? Ae : i.miTransitionLevel
|
|
47526
47532
|
});
|
|
47527
47533
|
}, [i]), /* @__PURE__ */ Pe.jsx(_ee, { children: o && /* @__PURE__ */ Pe.jsx(Xie, { ...o }) });
|
|
47528
47534
|
}
|
|
@@ -47636,38 +47642,38 @@ var Yj = Gf(function(i) {
|
|
|
47636
47642
|
((o, a) => {
|
|
47637
47643
|
i.exports ? i.exports = a() : o.fuzzysort = a();
|
|
47638
47644
|
})(Kw, (o) => {
|
|
47639
|
-
var a = (
|
|
47640
|
-
if (
|
|
47645
|
+
var a = (Ce, Ie) => {
|
|
47646
|
+
if (Ce == "farzher")
|
|
47641
47647
|
return { target: "farzher was here (^-^*)/", score: 0, _indexes: [0] };
|
|
47642
|
-
if (!
|
|
47648
|
+
if (!Ce || !Ie)
|
|
47643
47649
|
return Qe;
|
|
47644
|
-
var ke = A(
|
|
47645
|
-
fe(
|
|
47650
|
+
var ke = A(Ce);
|
|
47651
|
+
fe(Ie) || (Ie = I(Ie));
|
|
47646
47652
|
var Ne = ke.bitflags;
|
|
47647
|
-
return (Ne &
|
|
47648
|
-
}, u = (
|
|
47649
|
-
if (
|
|
47650
|
-
return [{ target: "farzher was here (^-^*)/", score: 0, _indexes: [0], obj:
|
|
47651
|
-
if (!
|
|
47652
|
-
return ke && ke.all ? S(
|
|
47653
|
-
var Ne = A(
|
|
47653
|
+
return (Ne & Ie._bitflags) !== Ne ? Qe : C(ke, Ie);
|
|
47654
|
+
}, u = (Ce, Ie, ke) => {
|
|
47655
|
+
if (Ce == "farzher")
|
|
47656
|
+
return [{ target: "farzher was here (^-^*)/", score: 0, _indexes: [0], obj: Ie ? Ie[0] : Qe }];
|
|
47657
|
+
if (!Ce)
|
|
47658
|
+
return ke && ke.all ? S(Ce, Ie, ke) : Ae;
|
|
47659
|
+
var Ne = A(Ce), Le = Ne.bitflags, ue = ke && ke.threshold || _e, ee = ke && ke.limit || Z, K = 0, F = 0, H = Ie.length;
|
|
47654
47660
|
if (ke && ke.key)
|
|
47655
47661
|
for (var ae = ke.key, W = 0; W < H; ++W) {
|
|
47656
|
-
var he =
|
|
47657
|
-
if (
|
|
47658
|
-
var Me = C(Ne,
|
|
47662
|
+
var he = Ie[W], Se = le(he, ae);
|
|
47663
|
+
if (Se && (fe(Se) || (Se = I(Se)), (Le & Se._bitflags) === Le)) {
|
|
47664
|
+
var Me = C(Ne, Se);
|
|
47659
47665
|
Me !== Qe && (Me.score < ue || (Me = { target: Me.target, _targetLower: "", _targetLowerCodes: Qe, _nextBeginningIndexes: Qe, _bitflags: 0, score: Me.score, _indexes: Me._indexes, obj: he }, K < ee ? (Ze.add(Me), ++K) : (++F, Me.score > Ze.peek().score && Ze.replaceTop(Me))));
|
|
47660
47666
|
}
|
|
47661
47667
|
}
|
|
47662
47668
|
else if (ke && ke.keys)
|
|
47663
47669
|
for (var je = ke.scoreFn || ce, Ke = ke.keys, mt = Ke.length, W = 0; W < H; ++W) {
|
|
47664
|
-
for (var he =
|
|
47665
|
-
var ae = Ke[rt],
|
|
47666
|
-
if (!
|
|
47670
|
+
for (var he = Ie[W], Ye = new Array(mt), rt = 0; rt < mt; ++rt) {
|
|
47671
|
+
var ae = Ke[rt], Se = le(he, ae);
|
|
47672
|
+
if (!Se) {
|
|
47667
47673
|
Ye[rt] = Qe;
|
|
47668
47674
|
continue;
|
|
47669
47675
|
}
|
|
47670
|
-
fe(
|
|
47676
|
+
fe(Se) || (Se = I(Se)), (Le & Se._bitflags) !== Le ? Ye[rt] = Qe : Ye[rt] = C(Ne, Se);
|
|
47671
47677
|
}
|
|
47672
47678
|
Ye.obj = he;
|
|
47673
47679
|
var ht = je(Ye);
|
|
@@ -47675,29 +47681,29 @@ var Yj = Gf(function(i) {
|
|
|
47675
47681
|
}
|
|
47676
47682
|
else
|
|
47677
47683
|
for (var W = 0; W < H; ++W) {
|
|
47678
|
-
var
|
|
47679
|
-
if (
|
|
47680
|
-
var Me = C(Ne,
|
|
47684
|
+
var Se = Ie[W];
|
|
47685
|
+
if (Se && (fe(Se) || (Se = I(Se)), (Le & Se._bitflags) === Le)) {
|
|
47686
|
+
var Me = C(Ne, Se);
|
|
47681
47687
|
Me !== Qe && (Me.score < ue || (K < ee ? (Ze.add(Me), ++K) : (++F, Me.score > Ze.peek().score && Ze.replaceTop(Me))));
|
|
47682
47688
|
}
|
|
47683
47689
|
}
|
|
47684
47690
|
if (K === 0)
|
|
47685
|
-
return
|
|
47686
|
-
for (var
|
|
47687
|
-
|
|
47688
|
-
return
|
|
47689
|
-
}, d = (
|
|
47690
|
-
if (typeof
|
|
47691
|
-
return g(
|
|
47692
|
-
if (
|
|
47691
|
+
return Ae;
|
|
47692
|
+
for (var Te = new Array(K), W = K - 1; W >= 0; --W)
|
|
47693
|
+
Te[W] = Ze.poll();
|
|
47694
|
+
return Te.total = K + F, Te;
|
|
47695
|
+
}, d = (Ce, Ie, ke) => {
|
|
47696
|
+
if (typeof Ie == "function")
|
|
47697
|
+
return g(Ce, Ie);
|
|
47698
|
+
if (Ce === Qe)
|
|
47693
47699
|
return Qe;
|
|
47694
|
-
|
|
47695
|
-
var Ne = "", Le = 0, ue = !1, ee =
|
|
47700
|
+
Ie === void 0 && (Ie = "<b>"), ke === void 0 && (ke = "</b>");
|
|
47701
|
+
var Ne = "", Le = 0, ue = !1, ee = Ce.target, K = ee.length, F = Ce._indexes;
|
|
47696
47702
|
F = F.slice(0, F.len).sort((W, he) => W - he);
|
|
47697
47703
|
for (var H = 0; H < K; ++H) {
|
|
47698
47704
|
var ae = ee[H];
|
|
47699
47705
|
if (F[Le] === H) {
|
|
47700
|
-
if (++Le, ue || (ue = !0, Ne +=
|
|
47706
|
+
if (++Le, ue || (ue = !0, Ne += Ie), Le === F.length) {
|
|
47701
47707
|
Ne += ae + ke + ee.substr(H + 1);
|
|
47702
47708
|
break;
|
|
47703
47709
|
}
|
|
@@ -47706,32 +47712,32 @@ var Yj = Gf(function(i) {
|
|
|
47706
47712
|
Ne += ae;
|
|
47707
47713
|
}
|
|
47708
47714
|
return Ne;
|
|
47709
|
-
}, g = (H,
|
|
47715
|
+
}, g = (H, Ie) => {
|
|
47710
47716
|
if (H === Qe)
|
|
47711
47717
|
return Qe;
|
|
47712
47718
|
var ke = H.target, Ne = ke.length, Le = H._indexes;
|
|
47713
|
-
Le = Le.slice(0, Le.len).sort((he,
|
|
47719
|
+
Le = Le.slice(0, Le.len).sort((he, Se) => he - Se);
|
|
47714
47720
|
for (var ue = "", ee = 0, K = 0, F = !1, H = [], ae = 0; ae < Ne; ++ae) {
|
|
47715
47721
|
var W = ke[ae];
|
|
47716
47722
|
if (Le[K] === ae) {
|
|
47717
47723
|
if (++K, F || (F = !0, H.push(ue), ue = ""), K === Le.length) {
|
|
47718
|
-
ue += W, H.push(
|
|
47724
|
+
ue += W, H.push(Ie(ue, ee++)), ue = "", H.push(ke.substr(ae + 1));
|
|
47719
47725
|
break;
|
|
47720
47726
|
}
|
|
47721
47727
|
} else
|
|
47722
|
-
F && (F = !1, H.push(
|
|
47728
|
+
F && (F = !1, H.push(Ie(ue, ee++)), ue = "");
|
|
47723
47729
|
ue += W;
|
|
47724
47730
|
}
|
|
47725
47731
|
return H;
|
|
47726
|
-
}, _ = (
|
|
47727
|
-
typeof
|
|
47728
|
-
var
|
|
47729
|
-
return { target:
|
|
47730
|
-
}, m = (
|
|
47731
|
-
typeof
|
|
47732
|
-
var
|
|
47733
|
-
if (
|
|
47734
|
-
var Ne =
|
|
47732
|
+
}, _ = (Ce) => Ce._indexes.slice(0, Ce._indexes.len).sort((Ie, ke) => Ie - ke), b = (Ce) => {
|
|
47733
|
+
typeof Ce != "string" && (Ce = "");
|
|
47734
|
+
var Ie = L(Ce);
|
|
47735
|
+
return { target: Ce, _targetLower: Ie._lower, _targetLowerCodes: Ie.lowerCodes, _nextBeginningIndexes: Qe, _bitflags: Ie.bitflags, score: Qe, _indexes: [0], obj: Qe };
|
|
47736
|
+
}, m = (Ce) => {
|
|
47737
|
+
typeof Ce != "string" && (Ce = ""), Ce = Ce.trim();
|
|
47738
|
+
var Ie = L(Ce), ke = [];
|
|
47739
|
+
if (Ie.containsSpace) {
|
|
47740
|
+
var Ne = Ce.split(/\s+/);
|
|
47735
47741
|
Ne = [...new Set(Ne)];
|
|
47736
47742
|
for (var Le = 0; Le < Ne.length; Le++)
|
|
47737
47743
|
if (Ne[Le] !== "") {
|
|
@@ -47739,24 +47745,24 @@ var Yj = Gf(function(i) {
|
|
|
47739
47745
|
ke.push({ lowerCodes: ue.lowerCodes, _lower: Ne[Le].toLowerCase(), containsSpace: !1 });
|
|
47740
47746
|
}
|
|
47741
47747
|
}
|
|
47742
|
-
return { lowerCodes:
|
|
47743
|
-
}, I = (
|
|
47744
|
-
if (
|
|
47745
|
-
return b(
|
|
47746
|
-
var
|
|
47747
|
-
return
|
|
47748
|
-
}, A = (
|
|
47749
|
-
if (
|
|
47750
|
-
return m(
|
|
47751
|
-
var
|
|
47752
|
-
return
|
|
47753
|
-
}, S = (
|
|
47748
|
+
return { lowerCodes: Ie.lowerCodes, bitflags: Ie.bitflags, containsSpace: Ie.containsSpace, _lower: Ie._lower, spaceSearches: ke };
|
|
47749
|
+
}, I = (Ce) => {
|
|
47750
|
+
if (Ce.length > 999)
|
|
47751
|
+
return b(Ce);
|
|
47752
|
+
var Ie = U.get(Ce);
|
|
47753
|
+
return Ie !== void 0 || (Ie = b(Ce), U.set(Ce, Ie)), Ie;
|
|
47754
|
+
}, A = (Ce) => {
|
|
47755
|
+
if (Ce.length > 999)
|
|
47756
|
+
return m(Ce);
|
|
47757
|
+
var Ie = V.get(Ce);
|
|
47758
|
+
return Ie !== void 0 || (Ie = m(Ce), V.set(Ce, Ie)), Ie;
|
|
47759
|
+
}, S = (Ce, Ie, ke) => {
|
|
47754
47760
|
var Ne = [];
|
|
47755
|
-
Ne.total =
|
|
47761
|
+
Ne.total = Ie.length;
|
|
47756
47762
|
var Le = ke && ke.limit || Z;
|
|
47757
47763
|
if (ke && ke.key)
|
|
47758
|
-
for (var ue = 0; ue <
|
|
47759
|
-
var ee =
|
|
47764
|
+
for (var ue = 0; ue < Ie.length; ue++) {
|
|
47765
|
+
var ee = Ie[ue], K = le(ee, ke.key);
|
|
47760
47766
|
if (K) {
|
|
47761
47767
|
fe(K) || (K = I(K)), K.score = _e, K._indexes.len = 0;
|
|
47762
47768
|
var F = K;
|
|
@@ -47765,8 +47771,8 @@ var Yj = Gf(function(i) {
|
|
|
47765
47771
|
}
|
|
47766
47772
|
}
|
|
47767
47773
|
else if (ke && ke.keys)
|
|
47768
|
-
for (var ue = 0; ue <
|
|
47769
|
-
for (var ee =
|
|
47774
|
+
for (var ue = 0; ue < Ie.length; ue++) {
|
|
47775
|
+
for (var ee = Ie[ue], H = new Array(ke.keys.length), ae = ke.keys.length - 1; ae >= 0; --ae) {
|
|
47770
47776
|
var K = le(ee, ke.keys[ae]);
|
|
47771
47777
|
if (!K) {
|
|
47772
47778
|
H[ae] = Qe;
|
|
@@ -47778,16 +47784,16 @@ var Yj = Gf(function(i) {
|
|
|
47778
47784
|
return Ne;
|
|
47779
47785
|
}
|
|
47780
47786
|
else
|
|
47781
|
-
for (var ue = 0; ue <
|
|
47782
|
-
var K =
|
|
47787
|
+
for (var ue = 0; ue < Ie.length; ue++) {
|
|
47788
|
+
var K = Ie[ue];
|
|
47783
47789
|
if (K && (fe(K) || (K = I(K)), K.score = _e, K._indexes.len = 0, Ne.push(K), Ne.length >= Le))
|
|
47784
47790
|
return Ne;
|
|
47785
47791
|
}
|
|
47786
47792
|
return Ne;
|
|
47787
|
-
}, C = (
|
|
47788
|
-
if (ke === !1 &&
|
|
47789
|
-
return z(
|
|
47790
|
-
for (var Ne =
|
|
47793
|
+
}, C = (Ce, Ie, ke = !1) => {
|
|
47794
|
+
if (ke === !1 && Ce.containsSpace)
|
|
47795
|
+
return z(Ce, Ie);
|
|
47796
|
+
for (var Ne = Ce._lower, Le = Ce.lowerCodes, ue = Le[0], ee = Ie._targetLowerCodes, K = Le.length, F = ee.length, he = 0, H = 0, ae = 0; ; ) {
|
|
47791
47797
|
var W = ue === ee[H];
|
|
47792
47798
|
if (W) {
|
|
47793
47799
|
if ($[ae++] = H, ++he, he === K)
|
|
@@ -47797,8 +47803,8 @@ var Yj = Gf(function(i) {
|
|
|
47797
47803
|
if (++H, H >= F)
|
|
47798
47804
|
return Qe;
|
|
47799
47805
|
}
|
|
47800
|
-
var he = 0,
|
|
47801
|
-
je === Qe && (je =
|
|
47806
|
+
var he = 0, Se = !1, Me = 0, je = Ie._nextBeginningIndexes;
|
|
47807
|
+
je === Qe && (je = Ie._nextBeginningIndexes = Y(Ie.target)), H = $[0] === 0 ? 0 : je[$[0] - 1];
|
|
47802
47808
|
var Ke = 0;
|
|
47803
47809
|
if (H !== F)
|
|
47804
47810
|
for (; ; )
|
|
@@ -47812,51 +47818,51 @@ var Yj = Gf(function(i) {
|
|
|
47812
47818
|
var W = Le[he] === ee[H];
|
|
47813
47819
|
if (W) {
|
|
47814
47820
|
if (te[Me++] = H, ++he, he === K) {
|
|
47815
|
-
|
|
47821
|
+
Se = !0;
|
|
47816
47822
|
break;
|
|
47817
47823
|
}
|
|
47818
47824
|
++H;
|
|
47819
47825
|
} else
|
|
47820
47826
|
H = je[H];
|
|
47821
47827
|
}
|
|
47822
|
-
var Ye =
|
|
47823
|
-
if (rt && !
|
|
47828
|
+
var Ye = Ie._targetLower.indexOf(Ne, $[0]), rt = ~Ye;
|
|
47829
|
+
if (rt && !Se)
|
|
47824
47830
|
for (var ht = 0; ht < ae; ++ht)
|
|
47825
47831
|
$[ht] = Ye + ht;
|
|
47826
|
-
var
|
|
47827
|
-
rt && (
|
|
47832
|
+
var Te = !1;
|
|
47833
|
+
rt && (Te = Ie._nextBeginningIndexes[Ye - 1] === Ye);
|
|
47828
47834
|
{
|
|
47829
|
-
if (
|
|
47835
|
+
if (Se)
|
|
47830
47836
|
var X = te, oe = Me;
|
|
47831
47837
|
else
|
|
47832
47838
|
var X = $, oe = ae;
|
|
47833
47839
|
for (var se = 0, Ge = 0, ht = 1; ht < K; ++ht)
|
|
47834
47840
|
X[ht] - X[ht - 1] !== 1 && (se -= X[ht], ++Ge);
|
|
47835
47841
|
var et = X[K - 1] - X[0] - (K - 1);
|
|
47836
|
-
if (se -= (12 + et) * Ge, X[0] !== 0 && (se -= X[0] * X[0] * 0.2), !
|
|
47842
|
+
if (se -= (12 + et) * Ge, X[0] !== 0 && (se -= X[0] * X[0] * 0.2), !Se)
|
|
47837
47843
|
se *= 1e3;
|
|
47838
47844
|
else {
|
|
47839
47845
|
for (var ot = 1, ht = je[0]; ht < F; ht = je[ht])
|
|
47840
47846
|
++ot;
|
|
47841
47847
|
ot > 24 && (se *= (ot - 24) * 10);
|
|
47842
47848
|
}
|
|
47843
|
-
rt && (se /= 1 + K * K * 1),
|
|
47849
|
+
rt && (se /= 1 + K * K * 1), Te && (se /= 1 + K * K * 1), se -= F - K, Ie.score = se;
|
|
47844
47850
|
for (var ht = 0; ht < oe; ++ht)
|
|
47845
|
-
|
|
47846
|
-
return
|
|
47851
|
+
Ie._indexes[ht] = X[ht];
|
|
47852
|
+
return Ie._indexes.len = oe, Ie;
|
|
47847
47853
|
}
|
|
47848
|
-
}, z = (
|
|
47849
|
-
for (var ke = /* @__PURE__ */ new Set(), Ne = 0, Le = Qe, ue = 0, ee =
|
|
47854
|
+
}, z = (Ce, Ie) => {
|
|
47855
|
+
for (var ke = /* @__PURE__ */ new Set(), Ne = 0, Le = Qe, ue = 0, ee = Ce.spaceSearches, ae = 0; ae < ee.length; ++ae) {
|
|
47850
47856
|
var K = ee[ae];
|
|
47851
|
-
if (Le = C(K,
|
|
47857
|
+
if (Le = C(K, Ie), Le === Qe)
|
|
47852
47858
|
return Qe;
|
|
47853
47859
|
Ne += Le.score, Le._indexes[0] < ue && (Ne -= ue - Le._indexes[0]), ue = Le._indexes[0];
|
|
47854
47860
|
for (var F = 0; F < Le._indexes.len; ++F)
|
|
47855
47861
|
ke.add(Le._indexes[F]);
|
|
47856
47862
|
}
|
|
47857
47863
|
var H = C(
|
|
47858
|
-
|
|
47859
|
-
|
|
47864
|
+
Ce,
|
|
47865
|
+
Ie,
|
|
47860
47866
|
/*allowSpaces=*/
|
|
47861
47867
|
!0
|
|
47862
47868
|
);
|
|
@@ -47867,8 +47873,8 @@ var Yj = Gf(function(i) {
|
|
|
47867
47873
|
for (let W of ke)
|
|
47868
47874
|
Le._indexes[ae++] = W;
|
|
47869
47875
|
return Le._indexes.len = ae, Le;
|
|
47870
|
-
}, L = (
|
|
47871
|
-
for (var
|
|
47876
|
+
}, L = (Ce) => {
|
|
47877
|
+
for (var Ie = Ce.length, ke = Ce.toLowerCase(), Ne = [], Le = 0, ue = !1, ee = 0; ee < Ie; ++ee) {
|
|
47872
47878
|
var K = Ne[ee] = ke.charCodeAt(ee);
|
|
47873
47879
|
if (K === 32) {
|
|
47874
47880
|
ue = !0;
|
|
@@ -47878,64 +47884,64 @@ var Yj = Gf(function(i) {
|
|
|
47878
47884
|
Le |= 1 << F;
|
|
47879
47885
|
}
|
|
47880
47886
|
return { lowerCodes: Ne, bitflags: Le, containsSpace: ue, _lower: ke };
|
|
47881
|
-
}, R = (
|
|
47882
|
-
for (var
|
|
47883
|
-
var K =
|
|
47887
|
+
}, R = (Ce) => {
|
|
47888
|
+
for (var Ie = Ce.length, ke = [], Ne = 0, Le = !1, ue = !1, ee = 0; ee < Ie; ++ee) {
|
|
47889
|
+
var K = Ce.charCodeAt(ee), F = K >= 65 && K <= 90, H = F || K >= 97 && K <= 122 || K >= 48 && K <= 57, ae = F && !Le || !ue || !H;
|
|
47884
47890
|
Le = F, ue = H, ae && (ke[Ne++] = ee);
|
|
47885
47891
|
}
|
|
47886
47892
|
return ke;
|
|
47887
|
-
}, Y = (
|
|
47888
|
-
for (var
|
|
47889
|
-
Le > ee ? Ne[ee] = Le : (Le = ke[++ue], Ne[ee] = Le === void 0 ?
|
|
47893
|
+
}, Y = (Ce) => {
|
|
47894
|
+
for (var Ie = Ce.length, ke = R(Ce), Ne = [], Le = ke[0], ue = 0, ee = 0; ee < Ie; ++ee)
|
|
47895
|
+
Le > ee ? Ne[ee] = Le : (Le = ke[++ue], Ne[ee] = Le === void 0 ? Ie : Le);
|
|
47890
47896
|
return Ne;
|
|
47891
47897
|
}, B = () => {
|
|
47892
47898
|
U.clear(), V.clear(), $ = [], te = [];
|
|
47893
|
-
}, U = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), $ = [], te = [], ce = (
|
|
47894
|
-
for (var
|
|
47895
|
-
var Le =
|
|
47899
|
+
}, U = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), $ = [], te = [], ce = (Ce) => {
|
|
47900
|
+
for (var Ie = _e, ke = Ce.length, Ne = 0; Ne < ke; ++Ne) {
|
|
47901
|
+
var Le = Ce[Ne];
|
|
47896
47902
|
if (Le !== Qe) {
|
|
47897
47903
|
var ue = Le.score;
|
|
47898
|
-
ue >
|
|
47904
|
+
ue > Ie && (Ie = ue);
|
|
47899
47905
|
}
|
|
47900
47906
|
}
|
|
47901
|
-
return
|
|
47902
|
-
}, le = (
|
|
47903
|
-
var ke =
|
|
47907
|
+
return Ie === _e ? Qe : Ie;
|
|
47908
|
+
}, le = (Ce, Ie) => {
|
|
47909
|
+
var ke = Ce[Ie];
|
|
47904
47910
|
if (ke !== void 0)
|
|
47905
47911
|
return ke;
|
|
47906
|
-
var Ne =
|
|
47907
|
-
Array.isArray(
|
|
47908
|
-
for (var Le = Ne.length, ue = -1;
|
|
47909
|
-
|
|
47910
|
-
return
|
|
47911
|
-
}, fe = (
|
|
47912
|
-
|
|
47913
|
-
var Qe = null, we = (
|
|
47914
|
-
var
|
|
47915
|
-
for (var ee = 0, K =
|
|
47912
|
+
var Ne = Ie;
|
|
47913
|
+
Array.isArray(Ie) || (Ne = Ie.split("."));
|
|
47914
|
+
for (var Le = Ne.length, ue = -1; Ce && ++ue < Le; )
|
|
47915
|
+
Ce = Ce[Ne[ue]];
|
|
47916
|
+
return Ce;
|
|
47917
|
+
}, fe = (Ce) => typeof Ce == "object", Z = 1 / 0, _e = -Z, Ae = [];
|
|
47918
|
+
Ae.total = 0;
|
|
47919
|
+
var Qe = null, we = (Ce) => {
|
|
47920
|
+
var Ie = [], ke = 0, Ne = {}, Le = (ue) => {
|
|
47921
|
+
for (var ee = 0, K = Ie[ee], F = 1; F < ke; ) {
|
|
47916
47922
|
var H = F + 1;
|
|
47917
|
-
ee = F, H < ke &&
|
|
47923
|
+
ee = F, H < ke && Ie[H].score < Ie[F].score && (ee = H), Ie[ee - 1 >> 1] = Ie[ee], F = 1 + (ee << 1);
|
|
47918
47924
|
}
|
|
47919
|
-
for (var ae = ee - 1 >> 1; ee > 0 && K.score <
|
|
47920
|
-
|
|
47921
|
-
|
|
47925
|
+
for (var ae = ee - 1 >> 1; ee > 0 && K.score < Ie[ae].score; ae = (ee = ae) - 1 >> 1)
|
|
47926
|
+
Ie[ee] = Ie[ae];
|
|
47927
|
+
Ie[ee] = K;
|
|
47922
47928
|
};
|
|
47923
47929
|
return Ne.add = (ue) => {
|
|
47924
47930
|
var ee = ke;
|
|
47925
|
-
|
|
47926
|
-
for (var K = ee - 1 >> 1; ee > 0 && ue.score <
|
|
47927
|
-
|
|
47928
|
-
|
|
47931
|
+
Ie[ke++] = ue;
|
|
47932
|
+
for (var K = ee - 1 >> 1; ee > 0 && ue.score < Ie[K].score; K = (ee = K) - 1 >> 1)
|
|
47933
|
+
Ie[ee] = Ie[K];
|
|
47934
|
+
Ie[ee] = ue;
|
|
47929
47935
|
}, Ne.poll = (ue) => {
|
|
47930
47936
|
if (ke !== 0) {
|
|
47931
|
-
var ee =
|
|
47932
|
-
return
|
|
47937
|
+
var ee = Ie[0];
|
|
47938
|
+
return Ie[0] = Ie[--ke], Le(), ee;
|
|
47933
47939
|
}
|
|
47934
47940
|
}, Ne.peek = (ue) => {
|
|
47935
47941
|
if (ke !== 0)
|
|
47936
|
-
return
|
|
47942
|
+
return Ie[0];
|
|
47937
47943
|
}, Ne.replaceTop = (ue) => {
|
|
47938
|
-
|
|
47944
|
+
Ie[0] = ue, Le();
|
|
47939
47945
|
}, Ne;
|
|
47940
47946
|
}, Ze = we();
|
|
47941
47947
|
return { single: a, go: u, highlight: d, prepare: b, indexes: _, cleanup: B };
|
|
@@ -49260,14 +49266,14 @@ var Cre = Gf(function(i, o) {
|
|
|
49260
49266
|
_.exports = function($) {
|
|
49261
49267
|
var te = S($), ce = L(this), le = arguments.length, fe = le > 1 ? arguments[1] : void 0, Z = fe !== void 0;
|
|
49262
49268
|
Z && (fe = I(fe, le > 2 ? arguments[2] : void 0));
|
|
49263
|
-
var _e,
|
|
49264
|
-
if (!
|
|
49265
|
-
for (_e = R(te),
|
|
49266
|
-
|
|
49269
|
+
var _e, Ae, Qe, we, Ze, Ce, Ie = U(te), ke = 0;
|
|
49270
|
+
if (!Ie || this === V && z(Ie))
|
|
49271
|
+
for (_e = R(te), Ae = ce ? new this(_e) : V(_e); _e > ke; ke++)
|
|
49272
|
+
Ce = Z ? fe(te[ke], ke) : te[ke], Y(Ae, ke, Ce);
|
|
49267
49273
|
else
|
|
49268
|
-
for (Ze = (we = B(te,
|
|
49269
|
-
|
|
49270
|
-
return
|
|
49274
|
+
for (Ze = (we = B(te, Ie)).next, Ae = ce ? new this() : []; !(Qe = A(Ze, we)).done; ke++)
|
|
49275
|
+
Ce = Z ? C(we, fe, [Qe.value, ke], !0) : Qe.value, Y(Ae, ke, Ce);
|
|
49276
|
+
return Ae.length = ke, Ae;
|
|
49271
49277
|
};
|
|
49272
49278
|
}, 4328: function(_, b, m) {
|
|
49273
49279
|
var I = m(5290), A = m(7578), S = m(6310), C = function(z) {
|
|
@@ -49288,9 +49294,9 @@ var Cre = Gf(function(i, o) {
|
|
|
49288
49294
|
}, 2960: function(_, b, m) {
|
|
49289
49295
|
var I = m(4071), A = m(8844), S = m(4413), C = m(690), z = m(6310), L = m(7120), R = A([].push), Y = function(B) {
|
|
49290
49296
|
var U = B === 1, V = B === 2, $ = B === 3, te = B === 4, ce = B === 6, le = B === 7, fe = B === 5 || ce;
|
|
49291
|
-
return function(Z, _e,
|
|
49292
|
-
for (var we, Ze,
|
|
49293
|
-
if ((fe || Le in
|
|
49297
|
+
return function(Z, _e, Ae, Qe) {
|
|
49298
|
+
for (var we, Ze, Ce = C(Z), Ie = S(Ce), ke = I(_e, Ae), Ne = z(Ie), Le = 0, ue = Qe || L, ee = U ? ue(Z, Ne) : V || le ? ue(Z, 0) : void 0; Ne > Le; Le++)
|
|
49299
|
+
if ((fe || Le in Ie) && (Ze = ke(we = Ie[Le], Le, Ce), B))
|
|
49294
49300
|
if (U)
|
|
49295
49301
|
ee[Le] = Ze;
|
|
49296
49302
|
else if (Ze)
|
|
@@ -49645,17 +49651,17 @@ var Cre = Gf(function(i, o) {
|
|
|
49645
49651
|
return 7;
|
|
49646
49652
|
}, ""[B](_e) !== 7;
|
|
49647
49653
|
}), le = ce && !C(function() {
|
|
49648
|
-
var _e = !1,
|
|
49649
|
-
return B === "split" && ((
|
|
49650
|
-
return
|
|
49651
|
-
},
|
|
49654
|
+
var _e = !1, Ae = /a/;
|
|
49655
|
+
return B === "split" && ((Ae = {}).constructor = {}, Ae.constructor[R] = function() {
|
|
49656
|
+
return Ae;
|
|
49657
|
+
}, Ae.flags = "", Ae[te] = /./[te]), Ae.exec = function() {
|
|
49652
49658
|
return _e = !0, null;
|
|
49653
|
-
},
|
|
49659
|
+
}, Ae[te](""), !_e;
|
|
49654
49660
|
});
|
|
49655
49661
|
if (!ce || !le || V) {
|
|
49656
|
-
var fe = I(/./[te]), Z = U(te, ""[B], function(_e,
|
|
49657
|
-
var
|
|
49658
|
-
return
|
|
49662
|
+
var fe = I(/./[te]), Z = U(te, ""[B], function(_e, Ae, Qe, we, Ze) {
|
|
49663
|
+
var Ce = I(_e), Ie = Ae.exec;
|
|
49664
|
+
return Ie === S || Ie === Y.exec ? ce && !Ze ? { done: !0, value: fe(Ae, Qe, we) } : { done: !0, value: Ce(Qe, Ae, we) } : { done: !1 };
|
|
49659
49665
|
});
|
|
49660
49666
|
A(String.prototype, B, Z[0]), A(Y, te, Z[1]);
|
|
49661
49667
|
}
|
|
@@ -49762,9 +49768,9 @@ var Cre = Gf(function(i, o) {
|
|
|
49762
49768
|
var I = m(8844), A = m(690), S = Math.floor, C = I("".charAt), z = I("".replace), L = I("".slice), R = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Y = /\$([$&'`]|\d{1,2})/g;
|
|
49763
49769
|
_.exports = function(B, U, V, $, te, ce) {
|
|
49764
49770
|
var le = V + B.length, fe = $.length, Z = Y;
|
|
49765
|
-
return te !== void 0 && (te = A(te), Z = R), z(ce, Z, function(_e,
|
|
49771
|
+
return te !== void 0 && (te = A(te), Z = R), z(ce, Z, function(_e, Ae) {
|
|
49766
49772
|
var Qe;
|
|
49767
|
-
switch (C(
|
|
49773
|
+
switch (C(Ae, 0)) {
|
|
49768
49774
|
case "$":
|
|
49769
49775
|
return "$";
|
|
49770
49776
|
case "&":
|
|
@@ -49774,15 +49780,15 @@ var Cre = Gf(function(i, o) {
|
|
|
49774
49780
|
case "'":
|
|
49775
49781
|
return L(U, le);
|
|
49776
49782
|
case "<":
|
|
49777
|
-
Qe = te[L(
|
|
49783
|
+
Qe = te[L(Ae, 1, -1)];
|
|
49778
49784
|
break;
|
|
49779
49785
|
default:
|
|
49780
|
-
var we = +
|
|
49786
|
+
var we = +Ae;
|
|
49781
49787
|
if (we === 0)
|
|
49782
49788
|
return _e;
|
|
49783
49789
|
if (we > fe) {
|
|
49784
49790
|
var Ze = S(we / 10);
|
|
49785
|
-
return Ze === 0 ? _e : Ze <= fe ? $[Ze - 1] === void 0 ? C(
|
|
49791
|
+
return Ze === 0 ? _e : Ze <= fe ? $[Ze - 1] === void 0 ? C(Ae, 1) : $[Ze - 1] + C(Ae, 1) : _e;
|
|
49786
49792
|
}
|
|
49787
49793
|
Qe = $[we - 1];
|
|
49788
49794
|
}
|
|
@@ -49860,10 +49866,10 @@ var Cre = Gf(function(i, o) {
|
|
|
49860
49866
|
return S(Z) ? A(Z) : I(Z, {});
|
|
49861
49867
|
}, getterFor: function(Z) {
|
|
49862
49868
|
return function(_e) {
|
|
49863
|
-
var
|
|
49864
|
-
if (!L(_e) || (
|
|
49869
|
+
var Ae;
|
|
49870
|
+
if (!L(_e) || (Ae = A(_e)).type !== Z)
|
|
49865
49871
|
throw new te("Incompatible receiver, " + Z + " required");
|
|
49866
|
-
return
|
|
49872
|
+
return Ae;
|
|
49867
49873
|
};
|
|
49868
49874
|
} };
|
|
49869
49875
|
}, 3292: function(_, b, m) {
|
|
@@ -49984,10 +49990,10 @@ var Cre = Gf(function(i, o) {
|
|
|
49984
49990
|
return R.prototype = A(I, { next: S(+!U, B) }), C(R, V, !1, !0), z[V] = L, R;
|
|
49985
49991
|
};
|
|
49986
49992
|
}, 1934: function(_, b, m) {
|
|
49987
|
-
var I = m(9989), A = m(2615), S = m(3931), C = m(1236), z = m(9985), L = m(974), R = m(1868), Y = m(9385), B = m(5997), U = m(5773), V = m(1880), $ = m(4201), te = m(9478), ce = m(2013), le = C.PROPER, fe = C.CONFIGURABLE, Z = ce.IteratorPrototype, _e = ce.BUGGY_SAFARI_ITERATORS,
|
|
49993
|
+
var I = m(9989), A = m(2615), S = m(3931), C = m(1236), z = m(9985), L = m(974), R = m(1868), Y = m(9385), B = m(5997), U = m(5773), V = m(1880), $ = m(4201), te = m(9478), ce = m(2013), le = C.PROPER, fe = C.CONFIGURABLE, Z = ce.IteratorPrototype, _e = ce.BUGGY_SAFARI_ITERATORS, Ae = $("iterator"), Qe = "keys", we = "values", Ze = "entries", Ce = function() {
|
|
49988
49994
|
return this;
|
|
49989
49995
|
};
|
|
49990
|
-
_.exports = function(
|
|
49996
|
+
_.exports = function(Ie, ke, Ne, Le, ue, ee, K) {
|
|
49991
49997
|
L(Ne, ke, Le);
|
|
49992
49998
|
var F, H, ae, W = function(Ye) {
|
|
49993
49999
|
if (Ye === ue && Ke)
|
|
@@ -50005,16 +50011,16 @@ var Cre = Gf(function(i, o) {
|
|
|
50005
50011
|
return function() {
|
|
50006
50012
|
return new Ne(this);
|
|
50007
50013
|
};
|
|
50008
|
-
}, he = ke + " Iterator",
|
|
50009
|
-
if (mt && (F = R(mt.call(new
|
|
50014
|
+
}, he = ke + " Iterator", Se = !1, Me = Ie.prototype, je = Me[Ae] || Me["@@iterator"] || ue && Me[ue], Ke = !_e && je || W(ue), mt = ke === "Array" && Me.entries || je;
|
|
50015
|
+
if (mt && (F = R(mt.call(new Ie()))) !== Object.prototype && F.next && (S || R(F) === Z || (Y ? Y(F, Z) : z(F[Ae]) || V(F, Ae, Ce)), B(F, he, !0, !0), S && (te[he] = Ce)), le && ue === we && je && je.name !== we && (!S && fe ? U(Me, "name", we) : (Se = !0, Ke = function() {
|
|
50010
50016
|
return A(je, this);
|
|
50011
50017
|
})), ue)
|
|
50012
50018
|
if (H = { values: W(we), keys: ee ? Ke : W(Qe), entries: W(Ze) }, K)
|
|
50013
50019
|
for (ae in H)
|
|
50014
|
-
(_e ||
|
|
50020
|
+
(_e || Se || !(ae in Me)) && V(Me, ae, H[ae]);
|
|
50015
50021
|
else
|
|
50016
|
-
I({ target: ke, proto: !0, forced: _e ||
|
|
50017
|
-
return S && !K || Me[
|
|
50022
|
+
I({ target: ke, proto: !0, forced: _e || Se }, H);
|
|
50023
|
+
return S && !K || Me[Ae] === Ke || V(Me, Ae, Ke, { name: ue }), te[ke] = Ke, H;
|
|
50018
50024
|
};
|
|
50019
50025
|
}, 2013: function(_, b, m) {
|
|
50020
50026
|
var I, A, S, C = m(3689), z = m(9985), L = m(8999), R = m(5391), Y = m(1868), B = m(1880), U = m(4201), V = m(3931), $ = U("iterator"), te = !1;
|
|
@@ -50035,14 +50041,14 @@ var Cre = Gf(function(i, o) {
|
|
|
50035
50041
|
var I = m(8844), A = m(3689), S = m(9985), C = m(6812), z = m(7697), L = m(1236).CONFIGURABLE, R = m(6738), Y = m(618), B = Y.enforce, U = Y.get, V = String, $ = Object.defineProperty, te = I("".slice), ce = I("".replace), le = I([].join), fe = z && !A(function() {
|
|
50036
50042
|
return $(function() {
|
|
50037
50043
|
}, "length", { value: 8 }).length !== 8;
|
|
50038
|
-
}), Z = String(String).split("String"), _e = _.exports = function(
|
|
50039
|
-
te(V(Qe), 0, 7) === "Symbol(" && (Qe = "[" + ce(V(Qe), /^Symbol\(([^)]*)\)/, "$1") + "]"), we && we.getter && (Qe = "get " + Qe), we && we.setter && (Qe = "set " + Qe), (!C(
|
|
50044
|
+
}), Z = String(String).split("String"), _e = _.exports = function(Ae, Qe, we) {
|
|
50045
|
+
te(V(Qe), 0, 7) === "Symbol(" && (Qe = "[" + ce(V(Qe), /^Symbol\(([^)]*)\)/, "$1") + "]"), we && we.getter && (Qe = "get " + Qe), we && we.setter && (Qe = "set " + Qe), (!C(Ae, "name") || L && Ae.name !== Qe) && (z ? $(Ae, "name", { value: Qe, configurable: !0 }) : Ae.name = Qe), fe && we && C(we, "arity") && Ae.length !== we.arity && $(Ae, "length", { value: we.arity });
|
|
50040
50046
|
try {
|
|
50041
|
-
we && C(we, "constructor") && we.constructor ? z && $(
|
|
50047
|
+
we && C(we, "constructor") && we.constructor ? z && $(Ae, "prototype", { writable: !1 }) : Ae.prototype && (Ae.prototype = void 0);
|
|
50042
50048
|
} catch {
|
|
50043
50049
|
}
|
|
50044
|
-
var Ze = B(
|
|
50045
|
-
return C(Ze, "source") || (Ze.source = le(Z, typeof Qe == "string" ? Qe : "")),
|
|
50050
|
+
var Ze = B(Ae);
|
|
50051
|
+
return C(Ze, "source") || (Ze.source = le(Z, typeof Qe == "string" ? Qe : "")), Ae;
|
|
50046
50052
|
};
|
|
50047
50053
|
Function.prototype.toString = _e(function() {
|
|
50048
50054
|
return S(this) && U(this).source || R(this);
|
|
@@ -50072,9 +50078,9 @@ var Cre = Gf(function(i, o) {
|
|
|
50072
50078
|
ce[Z] = Z;
|
|
50073
50079
|
}), U({}, te)[le] !== 7 || z(U({}, ce)).join("") !== fe;
|
|
50074
50080
|
}) ? function(te, ce) {
|
|
50075
|
-
for (var le = Y(te), fe = arguments.length, Z = 1, _e = L.f,
|
|
50076
|
-
for (var Qe, we = B(arguments[Z++]), Ze = _e ? $(z(we), _e(we)) : z(we),
|
|
50077
|
-
Qe = Ze[
|
|
50081
|
+
for (var le = Y(te), fe = arguments.length, Z = 1, _e = L.f, Ae = R.f; fe > Z; )
|
|
50082
|
+
for (var Qe, we = B(arguments[Z++]), Ze = _e ? $(z(we), _e(we)) : z(we), Ce = Ze.length, Ie = 0; Ce > Ie; )
|
|
50083
|
+
Qe = Ze[Ie++], I && !S(Ae, we, Qe) || (le[Qe] = we[Qe]);
|
|
50078
50084
|
return le;
|
|
50079
50085
|
} : U;
|
|
50080
50086
|
}, 5391: function(_, b, m) {
|
|
@@ -50092,8 +50098,8 @@ var Cre = Gf(function(i, o) {
|
|
|
50092
50098
|
}
|
|
50093
50099
|
var fe, Z, _e;
|
|
50094
50100
|
le = typeof document < "u" ? document.domain && I ? ce(I) : (Z = R("iframe"), _e = "java" + U + ":", Z.style.display = "none", L.appendChild(Z), Z.src = String(_e), (fe = Z.contentWindow.document).open(), fe.write(te("document.F=Object")), fe.close(), fe.F) : ce(I);
|
|
50095
|
-
for (var
|
|
50096
|
-
delete le[B][C[
|
|
50101
|
+
for (var Ae = C.length; Ae--; )
|
|
50102
|
+
delete le[B][C[Ae]];
|
|
50097
50103
|
return le();
|
|
50098
50104
|
};
|
|
50099
50105
|
z[V] = !0, _.exports = Object.create || function(fe, Z) {
|
|
@@ -50253,14 +50259,14 @@ var Cre = Gf(function(i, o) {
|
|
|
50253
50259
|
throw new L("RegExp#exec called on incompatible receiver");
|
|
50254
50260
|
};
|
|
50255
50261
|
}, 6308: function(_, b, m) {
|
|
50256
|
-
var I, A, S = m(2615), C = m(8844), z = m(4327), L = m(9633), R = m(7901), Y = m(3430), B = m(5391), U = m(618).get, V = m(2100), $ = m(6422), te = Y("native-string-replace", String.prototype.replace), ce = RegExp.prototype.exec, le = ce, fe = C("".charAt), Z = C("".indexOf), _e = C("".replace),
|
|
50257
|
-
(Qe || Ze || we || V || $) && (le = function(
|
|
50258
|
-
var
|
|
50262
|
+
var I, A, S = m(2615), C = m(8844), z = m(4327), L = m(9633), R = m(7901), Y = m(3430), B = m(5391), U = m(618).get, V = m(2100), $ = m(6422), te = Y("native-string-replace", String.prototype.replace), ce = RegExp.prototype.exec, le = ce, fe = C("".charAt), Z = C("".indexOf), _e = C("".replace), Ae = C("".slice), Qe = (A = /b*/g, S(ce, I = /a/, "a"), S(ce, A, "a"), I.lastIndex !== 0 || A.lastIndex !== 0), we = R.BROKEN_CARET, Ze = /()??/.exec("")[1] !== void 0;
|
|
50263
|
+
(Qe || Ze || we || V || $) && (le = function(Ce) {
|
|
50264
|
+
var Ie, ke, Ne, Le, ue, ee, K, F = this, H = U(F), ae = z(Ce), W = H.raw;
|
|
50259
50265
|
if (W)
|
|
50260
|
-
return W.lastIndex = F.lastIndex,
|
|
50261
|
-
var he = H.groups,
|
|
50262
|
-
if (
|
|
50263
|
-
`) && (je = "(?: " + je + ")", mt = " " + mt, Ke++), ke = new RegExp("^(?:" + je + ")", Me)), Ze && (ke = new RegExp("^" + je + "$(?!\\s)", Me)), Qe && (Ne = F.lastIndex), Le = S(ce,
|
|
50266
|
+
return W.lastIndex = F.lastIndex, Ie = S(le, W, ae), F.lastIndex = W.lastIndex, Ie;
|
|
50267
|
+
var he = H.groups, Se = we && F.sticky, Me = S(L, F), je = F.source, Ke = 0, mt = ae;
|
|
50268
|
+
if (Se && (Me = _e(Me, "y", ""), Z(Me, "g") === -1 && (Me += "g"), mt = Ae(ae, F.lastIndex), F.lastIndex > 0 && (!F.multiline || F.multiline && fe(ae, F.lastIndex - 1) !== `
|
|
50269
|
+
`) && (je = "(?: " + je + ")", mt = " " + mt, Ke++), ke = new RegExp("^(?:" + je + ")", Me)), Ze && (ke = new RegExp("^" + je + "$(?!\\s)", Me)), Qe && (Ne = F.lastIndex), Le = S(ce, Se ? ke : F, mt), Se ? Le ? (Le.input = Ae(Le.input, Ke), Le[0] = Ae(Le[0], Ke), Le.index = F.lastIndex, F.lastIndex += Le[0].length) : F.lastIndex = 0 : Qe && Le && (F.lastIndex = F.global ? Le.index + Le[0].length : Ne), Ze && Le && Le.length > 1 && S(te, Le[0], ke, function() {
|
|
50264
50270
|
for (ue = 1; ue < arguments.length - 2; ue++)
|
|
50265
50271
|
arguments[ue] === void 0 && (Le[ue] = void 0);
|
|
50266
50272
|
}), Le && he)
|
|
@@ -50496,14 +50502,14 @@ var Cre = Gf(function(i, o) {
|
|
|
50496
50502
|
return Z !== void 0 ? !!Z : S(fe);
|
|
50497
50503
|
};
|
|
50498
50504
|
I({ target: "Array", proto: !0, arity: 1, forced: !ce || !U("concat") }, { concat: function(fe) {
|
|
50499
|
-
var Z, _e,
|
|
50500
|
-
for (Z = -1,
|
|
50505
|
+
var Z, _e, Ae, Qe, we, Ze = z(this), Ce = B(Ze, 0), Ie = 0;
|
|
50506
|
+
for (Z = -1, Ae = arguments.length; Z < Ae; Z++)
|
|
50501
50507
|
if (le(we = Z === -1 ? Ze : arguments[Z]))
|
|
50502
|
-
for (Qe = L(we), R(
|
|
50503
|
-
_e in we && Y(
|
|
50508
|
+
for (Qe = L(we), R(Ie + Qe), _e = 0; _e < Qe; _e++, Ie++)
|
|
50509
|
+
_e in we && Y(Ce, Ie, we[_e]);
|
|
50504
50510
|
else
|
|
50505
|
-
R(
|
|
50506
|
-
return
|
|
50511
|
+
R(Ie + 1), Y(Ce, Ie++, we);
|
|
50512
|
+
return Ce.length = Ie, Ce;
|
|
50507
50513
|
} });
|
|
50508
50514
|
}, 8077: function(_, b, m) {
|
|
50509
50515
|
var I = m(9989), A = m(2960).filter;
|
|
@@ -50569,17 +50575,17 @@ var Cre = Gf(function(i, o) {
|
|
|
50569
50575
|
}, 9730: function(_, b, m) {
|
|
50570
50576
|
var I = m(9989), A = m(2297), S = m(9429), C = m(8999), z = m(7578), L = m(6310), R = m(5290), Y = m(6522), B = m(4201), U = m(9042), V = m(6004), $ = U("slice"), te = B("species"), ce = Array, le = Math.max;
|
|
50571
50577
|
I({ target: "Array", proto: !0, forced: !$ }, { slice: function(fe, Z) {
|
|
50572
|
-
var _e,
|
|
50578
|
+
var _e, Ae, Qe, we = R(this), Ze = L(we), Ce = z(fe, Ze), Ie = z(Z === void 0 ? Ze : Z, Ze);
|
|
50573
50579
|
if (A(we) && (_e = we.constructor, (S(_e) && (_e === ce || A(_e.prototype)) || C(_e) && (_e = _e[te]) === null) && (_e = void 0), _e === ce || _e === void 0))
|
|
50574
|
-
return V(we,
|
|
50575
|
-
for (
|
|
50576
|
-
|
|
50577
|
-
return
|
|
50580
|
+
return V(we, Ce, Ie);
|
|
50581
|
+
for (Ae = new (_e === void 0 ? ce : _e)(le(Ie - Ce, 0)), Qe = 0; Ce < Ie; Ce++, Qe++)
|
|
50582
|
+
Ce in we && Y(Ae, Qe, we[Ce]);
|
|
50583
|
+
return Ae.length = Qe, Ae;
|
|
50578
50584
|
} });
|
|
50579
50585
|
}, 5137: function(_, b, m) {
|
|
50580
50586
|
var I = m(9989), A = m(8844), S = m(509), C = m(690), z = m(6310), L = m(8494), R = m(4327), Y = m(3689), B = m(382), U = m(6834), V = m(7365), $ = m(7298), te = m(3615), ce = m(7922), le = [], fe = A(le.sort), Z = A(le.push), _e = Y(function() {
|
|
50581
50587
|
le.sort(void 0);
|
|
50582
|
-
}),
|
|
50588
|
+
}), Ae = Y(function() {
|
|
50583
50589
|
le.sort(null);
|
|
50584
50590
|
}), Qe = U("sort"), we = !Y(function() {
|
|
50585
50591
|
if (te)
|
|
@@ -50589,67 +50595,67 @@ var Cre = Gf(function(i, o) {
|
|
|
50589
50595
|
return !0;
|
|
50590
50596
|
if (ce)
|
|
50591
50597
|
return ce < 603;
|
|
50592
|
-
var Ze,
|
|
50598
|
+
var Ze, Ce, Ie, ke, Ne = "";
|
|
50593
50599
|
for (Ze = 65; Ze < 76; Ze++) {
|
|
50594
|
-
switch (
|
|
50600
|
+
switch (Ce = String.fromCharCode(Ze), Ze) {
|
|
50595
50601
|
case 66:
|
|
50596
50602
|
case 69:
|
|
50597
50603
|
case 70:
|
|
50598
50604
|
case 72:
|
|
50599
|
-
|
|
50605
|
+
Ie = 3;
|
|
50600
50606
|
break;
|
|
50601
50607
|
case 68:
|
|
50602
50608
|
case 71:
|
|
50603
|
-
|
|
50609
|
+
Ie = 4;
|
|
50604
50610
|
break;
|
|
50605
50611
|
default:
|
|
50606
|
-
|
|
50612
|
+
Ie = 2;
|
|
50607
50613
|
}
|
|
50608
50614
|
for (ke = 0; ke < 47; ke++)
|
|
50609
|
-
le.push({ k:
|
|
50615
|
+
le.push({ k: Ce + ke, v: Ie });
|
|
50610
50616
|
}
|
|
50611
50617
|
for (le.sort(function(Le, ue) {
|
|
50612
50618
|
return ue.v - Le.v;
|
|
50613
50619
|
}), ke = 0; ke < le.length; ke++)
|
|
50614
|
-
|
|
50620
|
+
Ce = le[ke].k.charAt(0), Ne.charAt(Ne.length - 1) !== Ce && (Ne += Ce);
|
|
50615
50621
|
return Ne !== "DGBEFHACIJK";
|
|
50616
50622
|
}
|
|
50617
50623
|
});
|
|
50618
|
-
I({ target: "Array", proto: !0, forced: _e || !
|
|
50624
|
+
I({ target: "Array", proto: !0, forced: _e || !Ae || !Qe || !we }, { sort: function(Ze) {
|
|
50619
50625
|
Ze !== void 0 && S(Ze);
|
|
50620
|
-
var
|
|
50626
|
+
var Ce = C(this);
|
|
50621
50627
|
if (we)
|
|
50622
|
-
return Ze === void 0 ? fe(
|
|
50623
|
-
var
|
|
50628
|
+
return Ze === void 0 ? fe(Ce) : fe(Ce, Ze);
|
|
50629
|
+
var Ie, ke, Ne = [], Le = z(Ce);
|
|
50624
50630
|
for (ke = 0; ke < Le; ke++)
|
|
50625
|
-
ke in
|
|
50631
|
+
ke in Ce && Z(Ne, Ce[ke]);
|
|
50626
50632
|
for (B(Ne, function(ue) {
|
|
50627
50633
|
return function(ee, K) {
|
|
50628
50634
|
return K === void 0 ? -1 : ee === void 0 ? 1 : ue !== void 0 ? +ue(ee, K) || 0 : R(ee) > R(K) ? 1 : -1;
|
|
50629
50635
|
};
|
|
50630
|
-
}(Ze)),
|
|
50631
|
-
|
|
50636
|
+
}(Ze)), Ie = z(Ne), ke = 0; ke < Ie; )
|
|
50637
|
+
Ce[ke] = Ne[ke++];
|
|
50632
50638
|
for (; ke < Le; )
|
|
50633
|
-
L(
|
|
50634
|
-
return
|
|
50639
|
+
L(Ce, ke++);
|
|
50640
|
+
return Ce;
|
|
50635
50641
|
} });
|
|
50636
50642
|
}, 2506: function(_, b, m) {
|
|
50637
50643
|
var I = m(9989), A = m(690), S = m(7578), C = m(8700), z = m(6310), L = m(5649), R = m(5565), Y = m(7120), B = m(6522), U = m(8494), V = m(9042)("splice"), $ = Math.max, te = Math.min;
|
|
50638
50644
|
I({ target: "Array", proto: !0, forced: !V }, { splice: function(ce, le) {
|
|
50639
|
-
var fe, Z, _e,
|
|
50640
|
-
for (ke === 0 ? fe = Z = 0 : ke === 1 ? (fe = 0, Z =
|
|
50641
|
-
(Qe =
|
|
50645
|
+
var fe, Z, _e, Ae, Qe, we, Ze = A(this), Ce = z(Ze), Ie = S(ce, Ce), ke = arguments.length;
|
|
50646
|
+
for (ke === 0 ? fe = Z = 0 : ke === 1 ? (fe = 0, Z = Ce - Ie) : (fe = ke - 2, Z = te($(C(le), 0), Ce - Ie)), R(Ce + fe - Z), _e = Y(Ze, Z), Ae = 0; Ae < Z; Ae++)
|
|
50647
|
+
(Qe = Ie + Ae) in Ze && B(_e, Ae, Ze[Qe]);
|
|
50642
50648
|
if (_e.length = Z, fe < Z) {
|
|
50643
|
-
for (
|
|
50644
|
-
we =
|
|
50645
|
-
for (
|
|
50646
|
-
U(Ze,
|
|
50649
|
+
for (Ae = Ie; Ae < Ce - Z; Ae++)
|
|
50650
|
+
we = Ae + fe, (Qe = Ae + Z) in Ze ? Ze[we] = Ze[Qe] : U(Ze, we);
|
|
50651
|
+
for (Ae = Ce; Ae > Ce - Z + fe; Ae--)
|
|
50652
|
+
U(Ze, Ae - 1);
|
|
50647
50653
|
} else if (fe > Z)
|
|
50648
|
-
for (
|
|
50649
|
-
we =
|
|
50650
|
-
for (
|
|
50651
|
-
Ze[
|
|
50652
|
-
return L(Ze,
|
|
50654
|
+
for (Ae = Ce - Z; Ae > Ie; Ae--)
|
|
50655
|
+
we = Ae + fe - 1, (Qe = Ae + Z - 1) in Ze ? Ze[we] = Ze[Qe] : U(Ze, we);
|
|
50656
|
+
for (Ae = 0; Ae < fe; Ae++)
|
|
50657
|
+
Ze[Ae + Ie] = arguments[Ae + 2];
|
|
50658
|
+
return L(Ze, Ce - Z + fe), _e;
|
|
50653
50659
|
} });
|
|
50654
50660
|
}, 9903: function(_, b, m) {
|
|
50655
50661
|
var I = m(6812), A = m(1880), S = m(1797), C = m(4201)("toPrimitive"), z = Date.prototype;
|
|
@@ -50664,12 +50670,12 @@ var Cre = Gf(function(i, o) {
|
|
|
50664
50670
|
}
|
|
50665
50671
|
} });
|
|
50666
50672
|
}, 8324: function(_, b, m) {
|
|
50667
|
-
var I = m(9989), A = m(6058), S = m(1735), C = m(2615), z = m(8844), L = m(3689), R = m(9985), Y = m(734), B = m(6004), U = m(2643), V = m(146), $ = String, te = A("JSON", "stringify"), ce = z(/./.exec), le = z("".charAt), fe = z("".charCodeAt), Z = z("".replace), _e = z(1 .toString),
|
|
50673
|
+
var I = m(9989), A = m(6058), S = m(1735), C = m(2615), z = m(8844), L = m(3689), R = m(9985), Y = m(734), B = m(6004), U = m(2643), V = m(146), $ = String, te = A("JSON", "stringify"), ce = z(/./.exec), le = z("".charAt), fe = z("".charCodeAt), Z = z("".replace), _e = z(1 .toString), Ae = /[\uD800-\uDFFF]/g, Qe = /^[\uD800-\uDBFF]$/, we = /^[\uDC00-\uDFFF]$/, Ze = !V || L(function() {
|
|
50668
50674
|
var Ne = A("Symbol")("stringify detection");
|
|
50669
50675
|
return te([Ne]) !== "[null]" || te({ a: Ne }) !== "{}" || te(Object(Ne)) !== "{}";
|
|
50670
|
-
}),
|
|
50676
|
+
}), Ce = L(function() {
|
|
50671
50677
|
return te("\uDF06\uD834") !== '"\\udf06\\ud834"' || te("\uDEAD") !== '"\\udead"';
|
|
50672
|
-
}),
|
|
50678
|
+
}), Ie = function(Ne, Le) {
|
|
50673
50679
|
var ue = B(arguments), ee = U(Le);
|
|
50674
50680
|
if (R(ee) || Ne !== void 0 && !Y(Ne))
|
|
50675
50681
|
return ue[1] = function(K, F) {
|
|
@@ -50680,15 +50686,15 @@ var Cre = Gf(function(i, o) {
|
|
|
50680
50686
|
var ee = le(ue, Le - 1), K = le(ue, Le + 1);
|
|
50681
50687
|
return ce(Qe, Ne) && !ce(we, K) || ce(we, Ne) && !ce(Qe, ee) ? "\\u" + _e(fe(Ne, 0), 16) : Ne;
|
|
50682
50688
|
};
|
|
50683
|
-
te && I({ target: "JSON", stat: !0, arity: 3, forced: Ze ||
|
|
50684
|
-
var ee = B(arguments), K = S(Ze ?
|
|
50685
|
-
return
|
|
50689
|
+
te && I({ target: "JSON", stat: !0, arity: 3, forced: Ze || Ce }, { stringify: function(Ne, Le, ue) {
|
|
50690
|
+
var ee = B(arguments), K = S(Ze ? Ie : te, null, ee);
|
|
50691
|
+
return Ce && typeof K == "string" ? Z(K, Ae, ke) : K;
|
|
50686
50692
|
} });
|
|
50687
50693
|
}, 9288: function(_, b, m) {
|
|
50688
|
-
var I = m(9989), A = m(3931), S = m(7697), C = m(9037), z = m(496), L = m(8844), R = m(5266), Y = m(6812), B = m(3457), U = m(3622), V = m(734), $ = m(8732), te = m(3689), ce = m(2741).f, le = m(2474).f, fe = m(2560).f, Z = m(3648), _e = m(1435).trim,
|
|
50689
|
-
var F, H, ae, W, he,
|
|
50694
|
+
var I = m(9989), A = m(3931), S = m(7697), C = m(9037), z = m(496), L = m(8844), R = m(5266), Y = m(6812), B = m(3457), U = m(3622), V = m(734), $ = m(8732), te = m(3689), ce = m(2741).f, le = m(2474).f, fe = m(2560).f, Z = m(3648), _e = m(1435).trim, Ae = "Number", Qe = C[Ae], we = z[Ae], Ze = Qe.prototype, Ce = C.TypeError, Ie = L("".slice), ke = L("".charCodeAt), Ne = function(K) {
|
|
50695
|
+
var F, H, ae, W, he, Se, Me, je, Ke = $(K, "number");
|
|
50690
50696
|
if (V(Ke))
|
|
50691
|
-
throw new
|
|
50697
|
+
throw new Ce("Cannot convert a Symbol value to a number");
|
|
50692
50698
|
if (typeof Ke == "string" && Ke.length > 2) {
|
|
50693
50699
|
if (Ke = _e(Ke), (F = ke(Ke, 0)) === 43 || F === 45) {
|
|
50694
50700
|
if ((H = ke(Ke, 2)) === 88 || H === 120)
|
|
@@ -50706,14 +50712,14 @@ var Cre = Gf(function(i, o) {
|
|
|
50706
50712
|
default:
|
|
50707
50713
|
return +Ke;
|
|
50708
50714
|
}
|
|
50709
|
-
for (
|
|
50715
|
+
for (Se = (he = Ie(Ke, 2)).length, Me = 0; Me < Se; Me++)
|
|
50710
50716
|
if ((je = ke(he, Me)) < 48 || je > W)
|
|
50711
50717
|
return NaN;
|
|
50712
50718
|
return parseInt(he, ae);
|
|
50713
50719
|
}
|
|
50714
50720
|
}
|
|
50715
50721
|
return +Ke;
|
|
50716
|
-
}, Le = R(
|
|
50722
|
+
}, Le = R(Ae, !Qe(" 0o1") || !Qe("0b1") || Qe("+0x1")), ue = function(K) {
|
|
50717
50723
|
var F, H = arguments.length < 1 ? 0 : Qe(function(ae) {
|
|
50718
50724
|
var W = $(ae, "number");
|
|
50719
50725
|
return typeof W == "bigint" ? W : Ne(W);
|
|
@@ -50727,7 +50733,7 @@ var Cre = Gf(function(i, o) {
|
|
|
50727
50733
|
for (var H, ae = S ? ce(F) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","), W = 0; ae.length > W; W++)
|
|
50728
50734
|
Y(F, H = ae[W]) && !Y(K, H) && fe(K, H, le(F, H));
|
|
50729
50735
|
};
|
|
50730
|
-
A && we && ee(z[
|
|
50736
|
+
A && we && ee(z[Ae], we), (Le || A) && ee(z[Ae], Qe);
|
|
50731
50737
|
}, 5765: function(_, b, m) {
|
|
50732
50738
|
m(9989)({ target: "Number", stat: !0 }, { isInteger: m(1973) });
|
|
50733
50739
|
}, 429: function(_, b, m) {
|
|
@@ -50776,15 +50782,15 @@ var Cre = Gf(function(i, o) {
|
|
|
50776
50782
|
var I = m(3043), A = m(1880), S = m(5073);
|
|
50777
50783
|
I || A(Object.prototype, "toString", S, { unsafe: !0 });
|
|
50778
50784
|
}, 2003: function(_, b, m) {
|
|
50779
|
-
var I = m(7697), A = m(9037), S = m(8844), C = m(5266), z = m(3457), L = m(5773), R = m(2741).f, Y = m(3622), B = m(1245), U = m(4327), V = m(3477), $ = m(7901), te = m(8055), ce = m(1880), le = m(3689), fe = m(6812), Z = m(618).enforce, _e = m(4241),
|
|
50780
|
-
return ae[Ze] = !1,
|
|
50785
|
+
var I = m(7697), A = m(9037), S = m(8844), C = m(5266), z = m(3457), L = m(5773), R = m(2741).f, Y = m(3622), B = m(1245), U = m(4327), V = m(3477), $ = m(7901), te = m(8055), ce = m(1880), le = m(3689), fe = m(6812), Z = m(618).enforce, _e = m(4241), Ae = m(4201), Qe = m(2100), we = m(6422), Ze = Ae("match"), Ce = A.RegExp, Ie = Ce.prototype, ke = A.SyntaxError, Ne = S(Ie.exec), Le = S("".charAt), ue = S("".replace), ee = S("".indexOf), K = S("".slice), F = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, H = /a/g, ae = /a/g, W = new Ce(H) !== H, he = $.MISSED_STICKY, Se = $.UNSUPPORTED_Y, Me = I && (!W || he || Qe || we || le(function() {
|
|
50786
|
+
return ae[Ze] = !1, Ce(H) !== H || Ce(ae) === ae || String(Ce(H, "i")) !== "/a/i";
|
|
50781
50787
|
}));
|
|
50782
50788
|
if (C("RegExp", Me)) {
|
|
50783
50789
|
for (var je = function(Ye, rt) {
|
|
50784
|
-
var ht,
|
|
50790
|
+
var ht, Te, X, oe, se, Ge, et = Y(Ie, this), ot = B(Ye), Dt = rt === void 0, Je = [], ft = Ye;
|
|
50785
50791
|
if (!et && ot && Dt && Ye.constructor === je)
|
|
50786
50792
|
return Ye;
|
|
50787
|
-
if ((ot || Y(
|
|
50793
|
+
if ((ot || Y(Ie, Ye)) && (Ye = Ye.source, Dt && (rt = V(ft))), Ye = Ye === void 0 ? "" : U(Ye), rt = rt === void 0 ? "" : U(rt), ft = Ye, Qe && "dotAll" in H && (Te = !!rt && ee(rt, "s") > -1) && (rt = ue(rt, /s/g, "")), ht = rt, he && "sticky" in H && (X = !!rt && ee(rt, "y") > -1) && Se && (rt = ue(rt, /y/g, "")), we && (oe = function(pt) {
|
|
50788
50794
|
for (var nt, Yt = pt.length, cn = 0, In = "", Qt = [], Bt = {}, un = !1, Kn = !1, We = 0, Be = ""; cn <= Yt; cn++) {
|
|
50789
50795
|
if ((nt = Le(pt, cn)) === "\\")
|
|
50790
50796
|
nt += Le(pt, ++cn);
|
|
@@ -50807,7 +50813,7 @@ var Cre = Gf(function(i, o) {
|
|
|
50807
50813
|
Kn ? Be += nt : In += nt;
|
|
50808
50814
|
}
|
|
50809
50815
|
return [In, Qt];
|
|
50810
|
-
}(Ye), Ye = oe[0], Je = oe[1]), se = z(
|
|
50816
|
+
}(Ye), Ye = oe[0], Je = oe[1]), se = z(Ce(Ye, rt), et ? this : Ie, je), (Te || X || Je.length) && (Ge = Z(se), Te && (Ge.dotAll = !0, Ge.raw = je(function(pt) {
|
|
50811
50817
|
for (var nt, Yt = pt.length, cn = 0, In = "", Qt = !1; cn <= Yt; cn++)
|
|
50812
50818
|
(nt = Le(pt, cn)) !== "\\" ? Qt || nt !== "." ? (nt === "[" ? Qt = !0 : nt === "]" && (Qt = !1), In += nt) : In += "[\\s\\S]" : In += nt + Le(pt, ++cn);
|
|
50813
50819
|
return In;
|
|
@@ -50817,9 +50823,9 @@ var Cre = Gf(function(i, o) {
|
|
|
50817
50823
|
} catch {
|
|
50818
50824
|
}
|
|
50819
50825
|
return se;
|
|
50820
|
-
}, Ke = R(
|
|
50821
|
-
te(je,
|
|
50822
|
-
|
|
50826
|
+
}, Ke = R(Ce), mt = 0; Ke.length > mt; )
|
|
50827
|
+
te(je, Ce, Ke[mt++]);
|
|
50828
|
+
Ie.constructor = je, je.prototype = Ie, ce(A, "RegExp", je, { constructor: !0 });
|
|
50823
50829
|
}
|
|
50824
50830
|
_e("RegExp");
|
|
50825
50831
|
}, 4043: function(_, b, m) {
|
|
@@ -50847,35 +50853,35 @@ var Cre = Gf(function(i, o) {
|
|
|
50847
50853
|
return $ >= V.length ? z(void 0, !0) : (B = I(V, $), U.index += B.length, z(B, !1));
|
|
50848
50854
|
});
|
|
50849
50855
|
}, 9866: function(_, b, m) {
|
|
50850
|
-
var I = m(9989), A = m(2615), S = m(6576), C = m(974), z = m(7807), L = m(4684), R = m(3126), Y = m(4327), B = m(5027), U = m(981), V = m(6648), $ = m(1245), te = m(3477), ce = m(4849), le = m(1880), fe = m(3689), Z = m(4201), _e = m(6373),
|
|
50856
|
+
var I = m(9989), A = m(2615), S = m(6576), C = m(974), z = m(7807), L = m(4684), R = m(3126), Y = m(4327), B = m(5027), U = m(981), V = m(6648), $ = m(1245), te = m(3477), ce = m(4849), le = m(1880), fe = m(3689), Z = m(4201), _e = m(6373), Ae = m(1514), Qe = m(6100), we = m(618), Ze = m(3931), Ce = Z("matchAll"), Ie = "RegExp String", ke = Ie + " Iterator", Ne = we.set, Le = we.getterFor(ke), ue = RegExp.prototype, ee = TypeError, K = S("".indexOf), F = S("".matchAll), H = !!F && !fe(function() {
|
|
50851
50857
|
F("a", /./);
|
|
50852
|
-
}), ae = C(function(he,
|
|
50853
|
-
Ne(this, { type: ke, regexp: he, string:
|
|
50854
|
-
},
|
|
50858
|
+
}), ae = C(function(he, Se, Me, je) {
|
|
50859
|
+
Ne(this, { type: ke, regexp: he, string: Se, global: Me, unicode: je, done: !1 });
|
|
50860
|
+
}, Ie, function() {
|
|
50855
50861
|
var he = Le(this);
|
|
50856
50862
|
if (he.done)
|
|
50857
50863
|
return z(void 0, !0);
|
|
50858
|
-
var
|
|
50859
|
-
return je === null ? (he.done = !0, z(void 0, !0)) : he.global ? (Y(je[0]) === "" && (
|
|
50864
|
+
var Se = he.regexp, Me = he.string, je = Qe(Se, Me);
|
|
50865
|
+
return je === null ? (he.done = !0, z(void 0, !0)) : he.global ? (Y(je[0]) === "" && (Se.lastIndex = Ae(Me, R(Se.lastIndex), he.unicode)), z(je, !1)) : (he.done = !0, z(je, !1));
|
|
50860
50866
|
}), W = function(he) {
|
|
50861
|
-
var
|
|
50862
|
-
return
|
|
50867
|
+
var Se, Me, je, Ke = B(this), mt = Y(he), Ye = _e(Ke, RegExp), rt = Y(te(Ke));
|
|
50868
|
+
return Se = new Ye(Ye === RegExp ? Ke.source : Ke, rt), Me = !!~K(rt, "g"), je = !!~K(rt, "u"), Se.lastIndex = R(Ke.lastIndex), new ae(Se, mt, Me, je);
|
|
50863
50869
|
};
|
|
50864
50870
|
I({ target: "String", proto: !0, forced: H }, { matchAll: function(he) {
|
|
50865
|
-
var
|
|
50871
|
+
var Se, Me, je, Ke, mt = L(this);
|
|
50866
50872
|
if (U(he)) {
|
|
50867
50873
|
if (H)
|
|
50868
50874
|
return F(mt, he);
|
|
50869
50875
|
} else {
|
|
50870
|
-
if ($(he) && (
|
|
50876
|
+
if ($(he) && (Se = Y(L(te(he))), !~K(Se, "g")))
|
|
50871
50877
|
throw new ee("`.matchAll` does not allow non-global regexes");
|
|
50872
50878
|
if (H)
|
|
50873
50879
|
return F(mt, he);
|
|
50874
|
-
if ((je = ce(he,
|
|
50880
|
+
if ((je = ce(he, Ce)) === void 0 && Ze && V(he) === "RegExp" && (je = W), je)
|
|
50875
50881
|
return A(je, he, mt);
|
|
50876
50882
|
}
|
|
50877
|
-
return Me = Y(mt), Ke = new RegExp(he, "g"), Ze ? A(W, Ke, Me) : Ke[
|
|
50878
|
-
} }), Ze ||
|
|
50883
|
+
return Me = Y(mt), Ke = new RegExp(he, "g"), Ze ? A(W, Ke, Me) : Ke[Ce](Me);
|
|
50884
|
+
} }), Ze || Ce in ue || le(ue, Ce, W);
|
|
50879
50885
|
}, 2462: function(_, b, m) {
|
|
50880
50886
|
var I = m(2615), A = m(8678), S = m(5027), C = m(981), z = m(3126), L = m(4327), R = m(4684), Y = m(4849), B = m(1514), U = m(6100);
|
|
50881
50887
|
A("match", function(V, $, te) {
|
|
@@ -50890,15 +50896,15 @@ var Cre = Gf(function(i, o) {
|
|
|
50890
50896
|
return U(le, fe);
|
|
50891
50897
|
var _e = le.unicode;
|
|
50892
50898
|
le.lastIndex = 0;
|
|
50893
|
-
for (var
|
|
50894
|
-
var Ze = L(
|
|
50899
|
+
for (var Ae, Qe = [], we = 0; (Ae = U(le, fe)) !== null; ) {
|
|
50900
|
+
var Ze = L(Ae[0]);
|
|
50895
50901
|
Qe[we] = Ze, Ze === "" && (le.lastIndex = B(fe, z(le.lastIndex), _e)), we++;
|
|
50896
50902
|
}
|
|
50897
50903
|
return we === 0 ? null : Qe;
|
|
50898
50904
|
}];
|
|
50899
50905
|
});
|
|
50900
50906
|
}, 7267: function(_, b, m) {
|
|
50901
|
-
var I = m(1735), A = m(2615), S = m(8844), C = m(8678), z = m(3689), L = m(5027), R = m(9985), Y = m(981), B = m(8700), U = m(3126), V = m(4327), $ = m(4684), te = m(1514), ce = m(4849), le = m(7017), fe = m(6100), Z = m(4201)("replace"), _e = Math.max,
|
|
50907
|
+
var I = m(1735), A = m(2615), S = m(8844), C = m(8678), z = m(3689), L = m(5027), R = m(9985), Y = m(981), B = m(8700), U = m(3126), V = m(4327), $ = m(4684), te = m(1514), ce = m(4849), le = m(7017), fe = m(6100), Z = m(4201)("replace"), _e = Math.max, Ae = Math.min, Qe = S([].concat), we = S([].push), Ze = S("".indexOf), Ce = S("".slice), Ie = "a".replace(/./, "$0") === "$0", ke = !!/./[Z] && /./[Z]("a", "$0") === "";
|
|
50902
50908
|
C("replace", function(Ne, Le, ue) {
|
|
50903
50909
|
var ee = ke ? "$" : "$0";
|
|
50904
50910
|
return [function(K, F) {
|
|
@@ -50913,22 +50919,22 @@ var Cre = Gf(function(i, o) {
|
|
|
50913
50919
|
}
|
|
50914
50920
|
var he = R(F);
|
|
50915
50921
|
he || (F = V(F));
|
|
50916
|
-
var
|
|
50917
|
-
Me && (
|
|
50922
|
+
var Se, Me = H.global;
|
|
50923
|
+
Me && (Se = H.unicode, H.lastIndex = 0);
|
|
50918
50924
|
for (var je, Ke = []; (je = fe(H, ae)) !== null && (we(Ke, je), Me); )
|
|
50919
|
-
V(je[0]) === "" && (H.lastIndex = te(ae, U(H.lastIndex),
|
|
50925
|
+
V(je[0]) === "" && (H.lastIndex = te(ae, U(H.lastIndex), Se));
|
|
50920
50926
|
for (var mt, Ye = "", rt = 0, ht = 0; ht < Ke.length; ht++) {
|
|
50921
|
-
for (var
|
|
50927
|
+
for (var Te, X = V((je = Ke[ht])[0]), oe = _e(Ae(B(je.index), ae.length), 0), se = [], Ge = 1; Ge < je.length; Ge++)
|
|
50922
50928
|
we(se, (mt = je[Ge]) === void 0 ? mt : String(mt));
|
|
50923
50929
|
var et = je.groups;
|
|
50924
50930
|
if (he) {
|
|
50925
50931
|
var ot = Qe([X], se, oe, ae);
|
|
50926
|
-
et !== void 0 && we(ot, et),
|
|
50932
|
+
et !== void 0 && we(ot, et), Te = V(I(F, void 0, ot));
|
|
50927
50933
|
} else
|
|
50928
|
-
|
|
50929
|
-
oe >= rt && (Ye +=
|
|
50934
|
+
Te = le(X, ae, oe, se, et, F);
|
|
50935
|
+
oe >= rt && (Ye += Ce(ae, rt, oe) + Te, rt = oe + X.length);
|
|
50930
50936
|
}
|
|
50931
|
-
return Ye +
|
|
50937
|
+
return Ye + Ce(ae, rt);
|
|
50932
50938
|
}];
|
|
50933
50939
|
}, !!z(function() {
|
|
50934
50940
|
var Ne = /./;
|
|
@@ -50936,9 +50942,9 @@ var Cre = Gf(function(i, o) {
|
|
|
50936
50942
|
var Le = [];
|
|
50937
50943
|
return Le.groups = { a: "7" }, Le;
|
|
50938
50944
|
}, "".replace(Ne, "$<a>") !== "7";
|
|
50939
|
-
}) || !
|
|
50945
|
+
}) || !Ie || ke);
|
|
50940
50946
|
}, 9873: function(_, b, m) {
|
|
50941
|
-
var I = m(1735), A = m(2615), S = m(8844), C = m(8678), z = m(5027), L = m(981), R = m(1245), Y = m(4684), B = m(6373), U = m(1514), V = m(3126), $ = m(4327), te = m(4849), ce = m(9015), le = m(6100), fe = m(6308), Z = m(7901), _e = m(3689),
|
|
50947
|
+
var I = m(1735), A = m(2615), S = m(8844), C = m(8678), z = m(5027), L = m(981), R = m(1245), Y = m(4684), B = m(6373), U = m(1514), V = m(3126), $ = m(4327), te = m(4849), ce = m(9015), le = m(6100), fe = m(6308), Z = m(7901), _e = m(3689), Ae = Z.UNSUPPORTED_Y, Qe = 4294967295, we = Math.min, Ze = [].push, Ce = S(/./.exec), Ie = S(Ze), ke = S("".slice), Ne = !_e(function() {
|
|
50942
50948
|
var Le = /(?:)/, ue = Le.exec;
|
|
50943
50949
|
Le.exec = function() {
|
|
50944
50950
|
return ue.apply(this, arguments);
|
|
@@ -50956,9 +50962,9 @@ var Cre = Gf(function(i, o) {
|
|
|
50956
50962
|
return [ae];
|
|
50957
50963
|
if (!R(F))
|
|
50958
50964
|
return A(ue, ae, F, W);
|
|
50959
|
-
for (var he,
|
|
50965
|
+
for (var he, Se, Me, je = [], Ke = (F.ignoreCase ? "i" : "") + (F.multiline ? "m" : "") + (F.unicode ? "u" : "") + (F.sticky ? "y" : ""), mt = 0, Ye = new RegExp(F.source, Ke + "g"); (he = A(fe, Ye, ae)) && !((Se = Ye.lastIndex) > mt && (Ie(je, ke(ae, mt, he.index)), he.length > 1 && he.index < ae.length && I(Ze, je, ce(he, 1)), Me = he[0].length, mt = Se, je.length >= W)); )
|
|
50960
50966
|
Ye.lastIndex === he.index && Ye.lastIndex++;
|
|
50961
|
-
return mt === ae.length ? !Me &&
|
|
50967
|
+
return mt === ae.length ? !Me && Ce(Ye, "") || Ie(je, "") : Ie(je, ke(ae, mt)), je.length > W ? ce(je, 0, W) : je;
|
|
50962
50968
|
} : "0".split(void 0, 0).length ? function(F, H) {
|
|
50963
50969
|
return F === void 0 && H === 0 ? [] : A(ue, this, F, H);
|
|
50964
50970
|
} : ue, [function(F, H) {
|
|
@@ -50968,35 +50974,35 @@ var Cre = Gf(function(i, o) {
|
|
|
50968
50974
|
var ae = z(this), W = $(F), he = ee(K, ae, W, H, K !== ue);
|
|
50969
50975
|
if (he.done)
|
|
50970
50976
|
return he.value;
|
|
50971
|
-
var
|
|
50977
|
+
var Se = B(ae, RegExp), Me = ae.unicode, je = (ae.ignoreCase ? "i" : "") + (ae.multiline ? "m" : "") + (ae.unicode ? "u" : "") + (Ae ? "g" : "y"), Ke = new Se(Ae ? "^(?:" + ae.source + ")" : ae, je), mt = H === void 0 ? Qe : H >>> 0;
|
|
50972
50978
|
if (mt === 0)
|
|
50973
50979
|
return [];
|
|
50974
50980
|
if (W.length === 0)
|
|
50975
50981
|
return le(Ke, W) === null ? [W] : [];
|
|
50976
50982
|
for (var Ye = 0, rt = 0, ht = []; rt < W.length; ) {
|
|
50977
|
-
Ke.lastIndex =
|
|
50978
|
-
var
|
|
50979
|
-
if (X === null || (
|
|
50983
|
+
Ke.lastIndex = Ae ? 0 : rt;
|
|
50984
|
+
var Te, X = le(Ke, Ae ? ke(W, rt) : W);
|
|
50985
|
+
if (X === null || (Te = we(V(Ke.lastIndex + (Ae ? rt : 0)), W.length)) === Ye)
|
|
50980
50986
|
rt = U(W, rt, Me);
|
|
50981
50987
|
else {
|
|
50982
|
-
if (
|
|
50988
|
+
if (Ie(ht, ke(W, Ye, rt)), ht.length === mt)
|
|
50983
50989
|
return ht;
|
|
50984
50990
|
for (var oe = 1; oe <= X.length - 1; oe++)
|
|
50985
|
-
if (
|
|
50991
|
+
if (Ie(ht, X[oe]), ht.length === mt)
|
|
50986
50992
|
return ht;
|
|
50987
|
-
rt = Ye =
|
|
50993
|
+
rt = Ye = Te;
|
|
50988
50994
|
}
|
|
50989
50995
|
}
|
|
50990
|
-
return
|
|
50996
|
+
return Ie(ht, ke(W, Ye)), ht;
|
|
50991
50997
|
}];
|
|
50992
|
-
}, !Ne,
|
|
50998
|
+
}, !Ne, Ae);
|
|
50993
50999
|
}, 8436: function(_, b, m) {
|
|
50994
51000
|
var I = m(9989), A = m(1435).trim;
|
|
50995
51001
|
I({ target: "String", proto: !0, forced: m(5984)("trim") }, { trim: function() {
|
|
50996
51002
|
return A(this);
|
|
50997
51003
|
} });
|
|
50998
51004
|
}, 7855: function(_, b, m) {
|
|
50999
|
-
var I = m(9989), A = m(9037), S = m(2615), C = m(8844), z = m(3931), L = m(7697), R = m(146), Y = m(3689), B = m(6812), U = m(3622), V = m(5027), $ = m(5290), te = m(8360), ce = m(4327), le = m(5684), fe = m(5391), Z = m(300), _e = m(2741),
|
|
51005
|
+
var I = m(9989), A = m(9037), S = m(2615), C = m(8844), z = m(3931), L = m(7697), R = m(146), Y = m(3689), B = m(6812), U = m(3622), V = m(5027), $ = m(5290), te = m(8360), ce = m(4327), le = m(5684), fe = m(5391), Z = m(300), _e = m(2741), Ae = m(6062), Qe = m(7518), we = m(2474), Ze = m(2560), Ce = m(8920), Ie = m(9556), ke = m(1880), Ne = m(2148), Le = m(3430), ue = m(2713), ee = m(7248), K = m(4630), F = m(4201), H = m(6145), ae = m(5405), W = m(3032), he = m(5997), Se = m(618), Me = m(2960).forEach, je = ue("hidden"), Ke = "Symbol", mt = "prototype", Ye = Se.set, rt = Se.getterFor(Ke), ht = Object[mt], Te = A.Symbol, X = Te && Te[mt], oe = A.RangeError, se = A.TypeError, Ge = A.QObject, et = we.f, ot = Ze.f, Dt = Ae.f, Je = Ie.f, ft = C([].push), pt = Le("symbols"), nt = Le("op-symbols"), Yt = Le("wks"), cn = !Ge || !Ge[mt] || !Ge[mt].findChild, In = function(at, bt, St) {
|
|
51000
51006
|
var Pt = et(ht, bt);
|
|
51001
51007
|
Pt && delete ht[bt], ot(at, bt, St), Pt && at !== ht && ot(ht, bt, Pt);
|
|
51002
51008
|
}, Qt = L && Y(function() {
|
|
@@ -51013,8 +51019,8 @@ var Cre = Gf(function(i, o) {
|
|
|
51013
51019
|
}, Kn = function(at, bt) {
|
|
51014
51020
|
V(at);
|
|
51015
51021
|
var St = $(bt), Pt = Z(St).concat(Ut(St));
|
|
51016
|
-
return Me(Pt, function(
|
|
51017
|
-
L && !S(We, St,
|
|
51022
|
+
return Me(Pt, function(De) {
|
|
51023
|
+
L && !S(We, St, De) || un(at, De, St[De]);
|
|
51018
51024
|
}), at;
|
|
51019
51025
|
}, We = function(at) {
|
|
51020
51026
|
var bt = te(at), St = S(Je, this, bt);
|
|
@@ -51022,8 +51028,8 @@ var Cre = Gf(function(i, o) {
|
|
|
51022
51028
|
}, Be = function(at, bt) {
|
|
51023
51029
|
var St = $(at), Pt = te(bt);
|
|
51024
51030
|
if (St !== ht || !B(pt, Pt) || B(nt, Pt)) {
|
|
51025
|
-
var
|
|
51026
|
-
return !
|
|
51031
|
+
var De = et(St, Pt);
|
|
51032
|
+
return !De || !B(pt, Pt) || B(St, je) && St[je][Pt] || (De.enumerable = !0), De;
|
|
51027
51033
|
}
|
|
51028
51034
|
}, wt = function(at) {
|
|
51029
51035
|
var bt = Dt($(at)), St = [];
|
|
@@ -51032,35 +51038,35 @@ var Cre = Gf(function(i, o) {
|
|
|
51032
51038
|
}), St;
|
|
51033
51039
|
}, Ut = function(at) {
|
|
51034
51040
|
var bt = at === ht, St = Dt(bt ? nt : $(at)), Pt = [];
|
|
51035
|
-
return Me(St, function(
|
|
51036
|
-
!B(pt,
|
|
51041
|
+
return Me(St, function(De) {
|
|
51042
|
+
!B(pt, De) || bt && !B(ht, De) || ft(Pt, pt[De]);
|
|
51037
51043
|
}), Pt;
|
|
51038
51044
|
};
|
|
51039
|
-
R || (
|
|
51045
|
+
R || (Te = function() {
|
|
51040
51046
|
if (U(X, this))
|
|
51041
51047
|
throw new se("Symbol is not a constructor");
|
|
51042
51048
|
var at = arguments.length && arguments[0] !== void 0 ? ce(arguments[0]) : void 0, bt = K(at), St = function(Pt) {
|
|
51043
|
-
var
|
|
51044
|
-
|
|
51049
|
+
var De = this === void 0 ? A : this;
|
|
51050
|
+
De === ht && S(St, nt, Pt), B(De, je) && B(De[je], bt) && (De[je][bt] = !1);
|
|
51045
51051
|
var Ue = le(1, Pt);
|
|
51046
51052
|
try {
|
|
51047
|
-
Qt(
|
|
51053
|
+
Qt(De, bt, Ue);
|
|
51048
51054
|
} catch (it) {
|
|
51049
51055
|
if (!(it instanceof oe))
|
|
51050
51056
|
throw it;
|
|
51051
|
-
In(
|
|
51057
|
+
In(De, bt, Ue);
|
|
51052
51058
|
}
|
|
51053
51059
|
};
|
|
51054
51060
|
return L && cn && Qt(ht, bt, { configurable: !0, set: St }), Bt(bt, at);
|
|
51055
|
-
}, ke(X =
|
|
51061
|
+
}, ke(X = Te[mt], "toString", function() {
|
|
51056
51062
|
return rt(this).tag;
|
|
51057
|
-
}), ke(
|
|
51063
|
+
}), ke(Te, "withoutSetter", function(at) {
|
|
51058
51064
|
return Bt(K(at), at);
|
|
51059
|
-
}),
|
|
51065
|
+
}), Ie.f = We, Ze.f = un, Ce.f = Kn, we.f = Be, _e.f = Ae.f = wt, Qe.f = Ut, H.f = function(at) {
|
|
51060
51066
|
return Bt(F(at), at);
|
|
51061
51067
|
}, L && (Ne(X, "description", { configurable: !0, get: function() {
|
|
51062
51068
|
return rt(this).description;
|
|
51063
|
-
} }), z || ke(ht, "propertyIsEnumerable", We, { unsafe: !0 }))), I({ global: !0, constructor: !0, wrap: !0, forced: !R, sham: !R }, { Symbol:
|
|
51069
|
+
} }), z || ke(ht, "propertyIsEnumerable", We, { unsafe: !0 }))), I({ global: !0, constructor: !0, wrap: !0, forced: !R, sham: !R }, { Symbol: Te }), Me(Z(Yt), function(at) {
|
|
51064
51070
|
ae(at);
|
|
51065
51071
|
}), I({ target: Ke, stat: !0, forced: !R }, { useSetter: function() {
|
|
51066
51072
|
cn = !0;
|
|
@@ -51068,7 +51074,7 @@ var Cre = Gf(function(i, o) {
|
|
|
51068
51074
|
cn = !1;
|
|
51069
51075
|
} }), I({ target: "Object", stat: !0, forced: !R, sham: !L }, { create: function(at, bt) {
|
|
51070
51076
|
return bt === void 0 ? fe(at) : Kn(fe(at), bt);
|
|
51071
|
-
}, defineProperty: un, defineProperties: Kn, getOwnPropertyDescriptor: Be }), I({ target: "Object", stat: !0, forced: !R }, { getOwnPropertyNames: wt }), W(), he(
|
|
51077
|
+
}, defineProperty: un, defineProperties: Kn, getOwnPropertyDescriptor: Be }), I({ target: "Object", stat: !0, forced: !R }, { getOwnPropertyNames: wt }), W(), he(Te, Ke), ee[je] = !0;
|
|
51072
51078
|
}, 6544: function(_, b, m) {
|
|
51073
51079
|
var I = m(9989), A = m(7697), S = m(9037), C = m(8844), z = m(6812), L = m(9985), R = m(3622), Y = m(4327), B = m(2148), U = m(8758), V = S.Symbol, $ = V && V.prototype;
|
|
51074
51080
|
if (A && L(V) && (!("description" in $) || V().description !== void 0)) {
|
|
@@ -51077,13 +51083,13 @@ var Cre = Gf(function(i, o) {
|
|
|
51077
51083
|
return we === "" && (te[Ze] = !0), Ze;
|
|
51078
51084
|
};
|
|
51079
51085
|
U(ce, V), ce.prototype = $, $.constructor = ce;
|
|
51080
|
-
var le = String(V("description detection")) === "Symbol(description detection)", fe = C($.valueOf), Z = C($.toString), _e = /^Symbol\((.*)\)[^)]+$/,
|
|
51086
|
+
var le = String(V("description detection")) === "Symbol(description detection)", fe = C($.valueOf), Z = C($.toString), _e = /^Symbol\((.*)\)[^)]+$/, Ae = C("".replace), Qe = C("".slice);
|
|
51081
51087
|
B($, "description", { configurable: !0, get: function() {
|
|
51082
51088
|
var we = fe(this);
|
|
51083
51089
|
if (z(te, we))
|
|
51084
51090
|
return "";
|
|
51085
|
-
var Ze = Z(we),
|
|
51086
|
-
return
|
|
51091
|
+
var Ze = Z(we), Ce = le ? Qe(Ze, 7, -1) : Ae(Ze, _e, "$1");
|
|
51092
|
+
return Ce === "" ? void 0 : Ce;
|
|
51087
51093
|
} }), I({ global: !0, constructor: !0, forced: !0 }, { Symbol: ce });
|
|
51088
51094
|
}
|
|
51089
51095
|
}, 3975: function(_, b, m) {
|
|
@@ -51191,15 +51197,15 @@ var Cre = Gf(function(i, o) {
|
|
|
51191
51197
|
return -1;
|
|
51192
51198
|
}, he = function(Ye, rt) {
|
|
51193
51199
|
this.name = Ye, this.code = DOMException[Ye], this.message = rt;
|
|
51194
|
-
},
|
|
51200
|
+
}, Se = function(Ye, rt) {
|
|
51195
51201
|
if (rt === "")
|
|
51196
51202
|
throw new he("SYNTAX_ERR", "The token must not be empty.");
|
|
51197
51203
|
if (/\s/.test(rt))
|
|
51198
51204
|
throw new he("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
|
|
51199
51205
|
return W.call(Ye, rt);
|
|
51200
51206
|
}, Me = function(Ye) {
|
|
51201
|
-
for (var rt = ae.call(Ye.getAttribute("class") || ""), ht = rt ? rt.split(/\s+/) : [],
|
|
51202
|
-
this.push(ht[
|
|
51207
|
+
for (var rt = ae.call(Ye.getAttribute("class") || ""), ht = rt ? rt.split(/\s+/) : [], Te = 0, X = ht.length; Te < X; Te++)
|
|
51208
|
+
this.push(ht[Te]);
|
|
51203
51209
|
this._updateClassName = function() {
|
|
51204
51210
|
Ye.setAttribute("class", this.toString());
|
|
51205
51211
|
};
|
|
@@ -51209,25 +51215,25 @@ var Cre = Gf(function(i, o) {
|
|
|
51209
51215
|
if (he[K] = Error[K], je.item = function(Ye) {
|
|
51210
51216
|
return this[Ye] || null;
|
|
51211
51217
|
}, je.contains = function(Ye) {
|
|
51212
|
-
return ~
|
|
51218
|
+
return ~Se(this, Ye + "");
|
|
51213
51219
|
}, je.add = function() {
|
|
51214
|
-
var Ye, rt = arguments, ht = 0,
|
|
51220
|
+
var Ye, rt = arguments, ht = 0, Te = rt.length, X = !1;
|
|
51215
51221
|
do
|
|
51216
|
-
~
|
|
51217
|
-
while (++ht <
|
|
51222
|
+
~Se(this, Ye = rt[ht] + "") || (this.push(Ye), X = !0);
|
|
51223
|
+
while (++ht < Te);
|
|
51218
51224
|
X && this._updateClassName();
|
|
51219
51225
|
}, je.remove = function() {
|
|
51220
|
-
var Ye, rt, ht = arguments,
|
|
51226
|
+
var Ye, rt, ht = arguments, Te = 0, X = ht.length, oe = !1;
|
|
51221
51227
|
do
|
|
51222
|
-
for (rt =
|
|
51223
|
-
this.splice(rt, 1), oe = !0, rt =
|
|
51224
|
-
while (++
|
|
51228
|
+
for (rt = Se(this, Ye = ht[Te] + ""); ~rt; )
|
|
51229
|
+
this.splice(rt, 1), oe = !0, rt = Se(this, Ye);
|
|
51230
|
+
while (++Te < X);
|
|
51225
51231
|
oe && this._updateClassName();
|
|
51226
51232
|
}, je.toggle = function(Ye, rt) {
|
|
51227
|
-
var ht = this.contains(Ye),
|
|
51228
|
-
return
|
|
51233
|
+
var ht = this.contains(Ye), Te = ht ? rt !== !0 && "remove" : rt !== !1 && "add";
|
|
51234
|
+
return Te && this[Te](Ye), rt === !0 || rt === !1 ? rt : !ht;
|
|
51229
51235
|
}, je.replace = function(Ye, rt) {
|
|
51230
|
-
var ht =
|
|
51236
|
+
var ht = Se(Ye + "");
|
|
51231
51237
|
~ht && (this.splice(ht, 1, rt), this._updateClassName());
|
|
51232
51238
|
}, je.toString = function() {
|
|
51233
51239
|
return this.join(" ");
|
|
@@ -51324,13 +51330,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51324
51330
|
}
|
|
51325
51331
|
var z = function() {
|
|
51326
51332
|
function ue(H) {
|
|
51327
|
-
var ae = H.getOptions, W = H.getCaretPosition, he = H.getCaretPositionEnd,
|
|
51333
|
+
var ae = H.getOptions, W = H.getCaretPosition, he = H.getCaretPositionEnd, Se = H.dispatch;
|
|
51328
51334
|
(function(Me, je) {
|
|
51329
51335
|
if (!(Me instanceof je))
|
|
51330
51336
|
throw new TypeError("Cannot call a class as a function");
|
|
51331
51337
|
})(this, ue), S(this, "getOptions", void 0), S(this, "getCaretPosition", void 0), S(this, "getCaretPositionEnd", void 0), S(this, "dispatch", void 0), S(this, "maxLengthReached", void 0), S(this, "isStandardButton", function(Me) {
|
|
51332
51338
|
return Me && !(Me[0] === "{" && Me[Me.length - 1] === "}");
|
|
51333
|
-
}), this.getOptions = ae, this.getCaretPosition = W, this.getCaretPositionEnd = he, this.dispatch =
|
|
51339
|
+
}), this.getOptions = ae, this.getCaretPosition = W, this.getCaretPositionEnd = he, this.dispatch = Se, ue.bindMethods(ue, this);
|
|
51334
51340
|
}
|
|
51335
51341
|
var ee, K, F;
|
|
51336
51342
|
return ee = ue, K = [{ key: "getButtonType", value: function(H) {
|
|
@@ -51343,7 +51349,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51343
51349
|
} }, { key: "getButtonDisplayName", value: function(H, ae) {
|
|
51344
51350
|
return (ae = arguments.length > 2 && arguments[2] !== void 0 && arguments[2] ? Object.assign({}, this.getDefaultDiplay(), ae) : ae || this.getDefaultDiplay())[H] || H;
|
|
51345
51351
|
} }, { key: "getUpdatedInput", value: function(H, ae, W) {
|
|
51346
|
-
var he = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W,
|
|
51352
|
+
var he = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W, Se = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], Me = this.getOptions(), je = [W, he, Se], Ke = ae;
|
|
51347
51353
|
return (H === "{bksp}" || H === "{backspace}") && Ke.length > 0 ? Ke = this.removeAt.apply(this, [Ke].concat(je)) : (H === "{delete}" || H === "{forwarddelete}") && Ke.length > 0 ? Ke = this.removeForwardsAt.apply(this, [Ke].concat(je)) : H === "{space}" ? Ke = this.addStringAt.apply(this, [Ke, " "].concat(je)) : H !== "{tab}" || typeof Me.tabCharOnTab == "boolean" && Me.tabCharOnTab === !1 ? H !== "{enter}" && H !== "{numpadenter}" || !Me.newLineOnEnter ? H.includes("numpad") && Number.isInteger(Number(H[H.length - 2])) ? Ke = this.addStringAt.apply(this, [Ke, H[H.length - 2]].concat(je)) : H === "{numpaddivide}" ? Ke = this.addStringAt.apply(this, [Ke, "/"].concat(je)) : H === "{numpadmultiply}" ? Ke = this.addStringAt.apply(this, [Ke, "*"].concat(je)) : H === "{numpadsubtract}" ? Ke = this.addStringAt.apply(this, [Ke, "-"].concat(je)) : H === "{numpadadd}" ? Ke = this.addStringAt.apply(this, [Ke, "+"].concat(je)) : H === "{numpaddecimal}" ? Ke = this.addStringAt.apply(this, [Ke, "."].concat(je)) : H === "{" || H === "}" ? Ke = this.addStringAt.apply(this, [Ke, H].concat(je)) : H.includes("{") || H.includes("}") || (Ke = this.addStringAt.apply(this, [Ke, H].concat(je))) : Ke = this.addStringAt.apply(this, [Ke, `
|
|
51348
51354
|
`].concat(je)) : Ke = this.addStringAt.apply(this, [Ke, " "].concat(je)), Me.debug && console.log("Input will be: " + Ke), Ke;
|
|
51349
51355
|
} }, { key: "updateCaretPos", value: function(H) {
|
|
@@ -51355,28 +51361,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51355
51361
|
var ae = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], W = this.getOptions(), he = this.getCaretPosition();
|
|
51356
51362
|
return he != null && (ae ? he > 0 && (he -= H) : he += H), W.debug && console.log("Caret at:", he), he;
|
|
51357
51363
|
} }, { key: "addStringAt", value: function(H, ae) {
|
|
51358
|
-
var W, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length,
|
|
51359
|
-
return he || he === 0 ? (W = [H.slice(0, he), ae, H.slice(
|
|
51364
|
+
var W, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length, Se = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : H.length, Me = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
|
|
51365
|
+
return he || he === 0 ? (W = [H.slice(0, he), ae, H.slice(Se)].join(""), this.isMaxLengthReached() || Me && this.updateCaretPos(ae.length)) : W = H + ae, W;
|
|
51360
51366
|
} }, { key: "removeAt", value: function(H) {
|
|
51361
|
-
var ae, W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : H.length, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length,
|
|
51367
|
+
var ae, W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : H.length, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length, Se = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
51362
51368
|
if (W === 0 && he === 0)
|
|
51363
51369
|
return H;
|
|
51364
51370
|
if (W === he) {
|
|
51365
51371
|
var Me = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g;
|
|
51366
|
-
W && W >= 0 ? H.substring(W - 2, W).match(Me) ? (ae = H.substr(0, W - 2) + H.substr(W),
|
|
51372
|
+
W && W >= 0 ? H.substring(W - 2, W).match(Me) ? (ae = H.substr(0, W - 2) + H.substr(W), Se && this.updateCaretPos(2, !0)) : (ae = H.substr(0, W - 1) + H.substr(W), Se && this.updateCaretPos(1, !0)) : H.slice(-2).match(Me) ? (ae = H.slice(0, -2), Se && this.updateCaretPos(2, !0)) : (ae = H.slice(0, -1), Se && this.updateCaretPos(1, !0));
|
|
51367
51373
|
} else
|
|
51368
|
-
ae = H.slice(0, W) + H.slice(he),
|
|
51374
|
+
ae = H.slice(0, W) + H.slice(he), Se && this.dispatch(function(je) {
|
|
51369
51375
|
je.setCaretPosition(W);
|
|
51370
51376
|
});
|
|
51371
51377
|
return ae;
|
|
51372
51378
|
} }, { key: "removeForwardsAt", value: function(H) {
|
|
51373
|
-
var ae, W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : H.length, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length,
|
|
51374
|
-
return H != null && H.length && W !== null ? (W === he ? ae = H.substring(W, W + 2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g) ? H.substr(0, W) + H.substr(W + 2) : H.substr(0, W) + H.substr(W + 1) : (ae = H.slice(0, W) + H.slice(he),
|
|
51379
|
+
var ae, W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : H.length, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H.length, Se = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
51380
|
+
return H != null && H.length && W !== null ? (W === he ? ae = H.substring(W, W + 2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g) ? H.substr(0, W) + H.substr(W + 2) : H.substr(0, W) + H.substr(W + 1) : (ae = H.slice(0, W) + H.slice(he), Se && this.dispatch(function(Me) {
|
|
51375
51381
|
Me.setCaretPosition(W);
|
|
51376
51382
|
})), ae) : H;
|
|
51377
51383
|
} }, { key: "handleMaxLength", value: function(H, ae) {
|
|
51378
|
-
var W = this.getOptions(), he = W.maxLength,
|
|
51379
|
-
if (ae.length <=
|
|
51384
|
+
var W = this.getOptions(), he = W.maxLength, Se = H[W.inputName || "default"], Me = ae.length - 1 >= he;
|
|
51385
|
+
if (ae.length <= Se.length)
|
|
51380
51386
|
return !1;
|
|
51381
51387
|
if (Number.isInteger(he))
|
|
51382
51388
|
return W.debug && console.log("maxLength (num) reached:", Me), Me ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
|
|
@@ -51420,27 +51426,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51420
51426
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
51421
51427
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
51422
51428
|
}
|
|
51423
|
-
var rt, ht = !0,
|
|
51429
|
+
var rt, ht = !0, Te = !1;
|
|
51424
51430
|
return { s: function() {
|
|
51425
51431
|
Ke = Ke.call(Me);
|
|
51426
51432
|
}, n: function() {
|
|
51427
51433
|
var X = Ke.next();
|
|
51428
51434
|
return ht = X.done, X;
|
|
51429
51435
|
}, e: function(X) {
|
|
51430
|
-
|
|
51436
|
+
Te = !0, rt = X;
|
|
51431
51437
|
}, f: function() {
|
|
51432
51438
|
try {
|
|
51433
51439
|
ht || Ke.return == null || Ke.return();
|
|
51434
51440
|
} finally {
|
|
51435
|
-
if (
|
|
51441
|
+
if (Te)
|
|
51436
51442
|
throw rt;
|
|
51437
51443
|
}
|
|
51438
51444
|
} };
|
|
51439
51445
|
}(Object.getOwnPropertyNames(H.prototype));
|
|
51440
51446
|
try {
|
|
51441
51447
|
for (he.s(); !(W = he.n()).done; ) {
|
|
51442
|
-
var
|
|
51443
|
-
|
|
51448
|
+
var Se = W.value;
|
|
51449
|
+
Se === "constructor" || Se === "bindMethods" || (ae[Se] = ae[Se].bind(ae));
|
|
51444
51450
|
}
|
|
51445
51451
|
} catch (Me) {
|
|
51446
51452
|
he.e(Me);
|
|
@@ -51486,8 +51492,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51486
51492
|
var V = function() {
|
|
51487
51493
|
function ue(F) {
|
|
51488
51494
|
var H = this, ae = F.dispatch, W = F.getOptions;
|
|
51489
|
-
(function(he,
|
|
51490
|
-
if (!(he instanceof
|
|
51495
|
+
(function(he, Se) {
|
|
51496
|
+
if (!(he instanceof Se))
|
|
51491
51497
|
throw new TypeError("Cannot call a class as a function");
|
|
51492
51498
|
})(this, ue), B(this, "getOptions", void 0), B(this, "dispatch", void 0), B(this, "isMofifierKey", function(he) {
|
|
51493
51499
|
return he.altKey || he.ctrlKey || he.shiftKey || ["Tab", "CapsLock", "Esc", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(he.code || he.key || H.keyCodeToKey(he == null ? void 0 : he.keyCode));
|
|
@@ -51499,13 +51505,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51499
51505
|
H.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(F) && (F.preventDefault(), F.stopImmediatePropagation());
|
|
51500
51506
|
var ae = this.getSimpleKeyboardLayoutKey(F);
|
|
51501
51507
|
this.dispatch(function(W) {
|
|
51502
|
-
var he,
|
|
51508
|
+
var he, Se, Me = W.getButtonElement(ae), je = W.getButtonElement("{".concat(ae, "}"));
|
|
51503
51509
|
if (Me)
|
|
51504
|
-
he = Me,
|
|
51510
|
+
he = Me, Se = ae;
|
|
51505
51511
|
else {
|
|
51506
51512
|
if (!je)
|
|
51507
51513
|
return;
|
|
51508
|
-
he = je,
|
|
51514
|
+
he = je, Se = "{".concat(ae, "}");
|
|
51509
51515
|
}
|
|
51510
51516
|
var Ke, mt = function(rt) {
|
|
51511
51517
|
rt.style.background = H.physicalKeyboardHighlightBgColor || "#dadce4", rt.style.color = H.physicalKeyboardHighlightTextColor || "black";
|
|
@@ -51521,21 +51527,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51521
51527
|
var Ye;
|
|
51522
51528
|
(Ye = he[0]) === null || Ye === void 0 || Ye.click();
|
|
51523
51529
|
} else
|
|
51524
|
-
W.handleButtonClicked(
|
|
51530
|
+
W.handleButtonClicked(Se, F);
|
|
51525
51531
|
} else
|
|
51526
|
-
mt(he), H.physicalKeyboardHighlightPress && (H.physicalKeyboardHighlightPressUsePointerEvents ? he.onpointerdown() : H.physicalKeyboardHighlightPressUseClick ? he.click() : W.handleButtonClicked(
|
|
51532
|
+
mt(he), H.physicalKeyboardHighlightPress && (H.physicalKeyboardHighlightPressUsePointerEvents ? he.onpointerdown() : H.physicalKeyboardHighlightPressUseClick ? he.click() : W.handleButtonClicked(Se, F));
|
|
51527
51533
|
});
|
|
51528
51534
|
} }, { key: "handleHighlightKeyUp", value: function(F) {
|
|
51529
51535
|
var H = this.getOptions();
|
|
51530
51536
|
H.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(F) && (F.preventDefault(), F.stopImmediatePropagation());
|
|
51531
51537
|
var ae = this.getSimpleKeyboardLayoutKey(F);
|
|
51532
51538
|
this.dispatch(function(W) {
|
|
51533
|
-
var he,
|
|
51539
|
+
var he, Se = W.getButtonElement(ae) || W.getButtonElement("{".concat(ae, "}")), Me = function(je) {
|
|
51534
51540
|
je.removeAttribute && je.removeAttribute("style");
|
|
51535
51541
|
};
|
|
51536
|
-
|
|
51542
|
+
Se && (Array.isArray(Se) ? (Se.forEach(function(je) {
|
|
51537
51543
|
return Me(je);
|
|
51538
|
-
}), H.physicalKeyboardHighlightPressUsePointerEvents && ((he =
|
|
51544
|
+
}), H.physicalKeyboardHighlightPressUsePointerEvents && ((he = Se[0]) === null || he === void 0 || he.onpointerup())) : (Me(Se), H.physicalKeyboardHighlightPressUsePointerEvents && Se.onpointerup()));
|
|
51539
51545
|
});
|
|
51540
51546
|
} }, { key: "getSimpleKeyboardLayoutKey", value: function(F) {
|
|
51541
51547
|
var H, ae = "", W = F.code || F.key || this.keyCodeToKey(F == null ? void 0 : F.keyCode);
|
|
@@ -51589,16 +51595,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51589
51595
|
} }, { key: "show", value: function(F) {
|
|
51590
51596
|
var H = this, ae = F.candidateValue, W = F.targetElement, he = F.onSelect;
|
|
51591
51597
|
if (ae && ae.length) {
|
|
51592
|
-
var
|
|
51593
|
-
this.renderPage({ candidateListPages:
|
|
51598
|
+
var Se = this.utilities.chunkArray(ae.split(" "), this.pageSize);
|
|
51599
|
+
this.renderPage({ candidateListPages: Se, targetElement: W, pageIndex: this.pageIndex, nbPages: Se.length, onItemSelected: function(Me, je) {
|
|
51594
51600
|
he(Me, je), H.destroy();
|
|
51595
51601
|
} });
|
|
51596
51602
|
}
|
|
51597
51603
|
} }, { key: "renderPage", value: function(F) {
|
|
51598
|
-
var H, ae = this, W = F.candidateListPages, he = F.targetElement,
|
|
51604
|
+
var H, ae = this, W = F.candidateListPages, he = F.targetElement, Se = F.pageIndex, Me = F.nbPages, je = F.onItemSelected;
|
|
51599
51605
|
(H = this.candidateBoxElement) === null || H === void 0 || H.remove(), this.candidateBoxElement = document.createElement("div"), this.candidateBoxElement.className = "hg-candidate-box";
|
|
51600
51606
|
var Ke = document.createElement("ul");
|
|
51601
|
-
Ke.className = "hg-candidate-box-list", W[
|
|
51607
|
+
Ke.className = "hg-candidate-box-list", W[Se].forEach(function(oe) {
|
|
51602
51608
|
var se, Ge = document.createElement("li"), et = function() {
|
|
51603
51609
|
var ot = new (ae.options.useTouchEvents ? TouchEvent : MouseEvent)("click");
|
|
51604
51610
|
return Object.defineProperty(ot, "target", { value: Ge }), ot;
|
|
@@ -51610,43 +51616,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51610
51616
|
return je(oe, ot);
|
|
51611
51617
|
}, Ke.appendChild(Ge);
|
|
51612
51618
|
});
|
|
51613
|
-
var mt =
|
|
51619
|
+
var mt = Se > 0, Ye = document.createElement("div");
|
|
51614
51620
|
Ye.classList.add("hg-candidate-box-prev"), mt && Ye.classList.add("hg-candidate-box-btn-active");
|
|
51615
51621
|
var rt = function() {
|
|
51616
|
-
mt && ae.renderPage({ candidateListPages: W, targetElement: he, pageIndex:
|
|
51622
|
+
mt && ae.renderPage({ candidateListPages: W, targetElement: he, pageIndex: Se - 1, nbPages: Me, onItemSelected: je });
|
|
51617
51623
|
};
|
|
51618
51624
|
this.options.useTouchEvents ? Ye.ontouchstart = rt : Ye.onclick = rt, this.candidateBoxElement.appendChild(Ye), this.candidateBoxElement.appendChild(Ke);
|
|
51619
|
-
var ht =
|
|
51620
|
-
|
|
51625
|
+
var ht = Se < Me - 1, Te = document.createElement("div");
|
|
51626
|
+
Te.classList.add("hg-candidate-box-next"), ht && Te.classList.add("hg-candidate-box-btn-active");
|
|
51621
51627
|
var X = function() {
|
|
51622
|
-
ht && ae.renderPage({ candidateListPages: W, targetElement: he, pageIndex:
|
|
51628
|
+
ht && ae.renderPage({ candidateListPages: W, targetElement: he, pageIndex: Se + 1, nbPages: Me, onItemSelected: je });
|
|
51623
51629
|
};
|
|
51624
|
-
this.options.useTouchEvents ?
|
|
51630
|
+
this.options.useTouchEvents ? Te.ontouchstart = X : Te.onclick = X, this.candidateBoxElement.appendChild(Te), he.prepend(this.candidateBoxElement);
|
|
51625
51631
|
} }], K && te(ee.prototype, K), Object.defineProperty(ee, "prototype", { writable: !1 }), ue;
|
|
51626
51632
|
}(), Z = fe;
|
|
51627
51633
|
function _e(ue) {
|
|
51628
51634
|
return function(ee) {
|
|
51629
51635
|
if (Array.isArray(ee))
|
|
51630
|
-
return
|
|
51636
|
+
return Ae(ee);
|
|
51631
51637
|
}(ue) || function(ee) {
|
|
51632
51638
|
if (typeof Symbol < "u" && ee[Symbol.iterator] != null || ee["@@iterator"] != null)
|
|
51633
51639
|
return Array.from(ee);
|
|
51634
51640
|
}(ue) || function(ee, K) {
|
|
51635
51641
|
if (ee) {
|
|
51636
51642
|
if (typeof ee == "string")
|
|
51637
|
-
return
|
|
51643
|
+
return Ae(ee, K);
|
|
51638
51644
|
var F = Object.prototype.toString.call(ee).slice(8, -1);
|
|
51639
51645
|
if (F === "Object" && ee.constructor && (F = ee.constructor.name), F === "Map" || F === "Set")
|
|
51640
51646
|
return Array.from(ee);
|
|
51641
51647
|
if (F === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))
|
|
51642
|
-
return
|
|
51648
|
+
return Ae(ee, K);
|
|
51643
51649
|
}
|
|
51644
51650
|
}(ue) || function() {
|
|
51645
51651
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51646
51652
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
51647
51653
|
}();
|
|
51648
51654
|
}
|
|
51649
|
-
function
|
|
51655
|
+
function Ae(ue, ee) {
|
|
51650
51656
|
(ee == null || ee > ue.length) && (ee = ue.length);
|
|
51651
51657
|
for (var K = 0, F = new Array(ee); K < ee; K++)
|
|
51652
51658
|
F[K] = ue[K];
|
|
@@ -51672,13 +51678,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51672
51678
|
function Ze(ue, ee) {
|
|
51673
51679
|
for (var K = 0; K < ee.length; K++) {
|
|
51674
51680
|
var F = ee[K];
|
|
51675
|
-
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(ue,
|
|
51681
|
+
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(ue, Ie(F.key), F);
|
|
51676
51682
|
}
|
|
51677
51683
|
}
|
|
51678
|
-
function
|
|
51679
|
-
return (ee =
|
|
51684
|
+
function Ce(ue, ee, K) {
|
|
51685
|
+
return (ee = Ie(ee)) in ue ? Object.defineProperty(ue, ee, { value: K, enumerable: !0, configurable: !0, writable: !0 }) : ue[ee] = K, ue;
|
|
51680
51686
|
}
|
|
51681
|
-
function
|
|
51687
|
+
function Ie(ue) {
|
|
51682
51688
|
var ee = function(K, F) {
|
|
51683
51689
|
if (Qe(K) !== "object" || K === null)
|
|
51684
51690
|
return K;
|
|
@@ -51699,40 +51705,40 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51699
51705
|
if (function(Ye, rt) {
|
|
51700
51706
|
if (!(Ye instanceof rt))
|
|
51701
51707
|
throw new TypeError("Cannot call a class as a function");
|
|
51702
|
-
}(this, ue),
|
|
51703
|
-
var ht,
|
|
51708
|
+
}(this, ue), Ce(this, "input", void 0), Ce(this, "options", void 0), Ce(this, "utilities", void 0), Ce(this, "caretPosition", void 0), Ce(this, "caretPositionEnd", void 0), Ce(this, "keyboardDOM", void 0), Ce(this, "keyboardPluginClasses", void 0), Ce(this, "keyboardDOMClass", void 0), Ce(this, "buttonElements", void 0), Ce(this, "currentInstanceName", void 0), Ce(this, "allKeyboardInstances", void 0), Ce(this, "keyboardInstanceNames", void 0), Ce(this, "isFirstKeyboardInstance", void 0), Ce(this, "physicalKeyboard", void 0), Ce(this, "modules", void 0), Ce(this, "activeButtonClass", void 0), Ce(this, "holdInteractionTimeout", void 0), Ce(this, "holdTimeout", void 0), Ce(this, "isMouseHold", void 0), Ce(this, "initialized", void 0), Ce(this, "candidateBox", void 0), Ce(this, "keyboardRowsDOM", void 0), Ce(this, "defaultName", "default"), Ce(this, "activeInputElement", null), Ce(this, "handleParams", function(Ye, rt) {
|
|
51709
|
+
var ht, Te, X;
|
|
51704
51710
|
if (typeof Ye == "string")
|
|
51705
|
-
ht = Ye.split(".").join(""),
|
|
51711
|
+
ht = Ye.split(".").join(""), Te = document.querySelector(".".concat(ht)), X = rt;
|
|
51706
51712
|
else if (Ye instanceof HTMLDivElement) {
|
|
51707
51713
|
if (!Ye.className)
|
|
51708
51714
|
throw console.warn("Any DOM element passed as parameter must have a class."), new Error("KEYBOARD_DOM_CLASS_ERROR");
|
|
51709
|
-
ht = Ye.className.split(" ")[0],
|
|
51715
|
+
ht = Ye.className.split(" ")[0], Te = Ye, X = rt;
|
|
51710
51716
|
} else
|
|
51711
|
-
ht = "simple-keyboard",
|
|
51712
|
-
return { keyboardDOMClass: ht, keyboardDOM:
|
|
51713
|
-
}),
|
|
51717
|
+
ht = "simple-keyboard", Te = document.querySelector(".".concat(ht)), X = Ye;
|
|
51718
|
+
return { keyboardDOMClass: ht, keyboardDOM: Te, options: X };
|
|
51719
|
+
}), Ce(this, "getOptions", function() {
|
|
51714
51720
|
return ae.options;
|
|
51715
|
-
}),
|
|
51721
|
+
}), Ce(this, "getCaretPosition", function() {
|
|
51716
51722
|
return ae.caretPosition;
|
|
51717
|
-
}),
|
|
51723
|
+
}), Ce(this, "getCaretPositionEnd", function() {
|
|
51718
51724
|
return ae.caretPositionEnd;
|
|
51719
|
-
}),
|
|
51725
|
+
}), Ce(this, "registerModule", function(Ye, rt) {
|
|
51720
51726
|
ae.modules[Ye] || (ae.modules[Ye] = {}), rt(ae.modules[Ye]);
|
|
51721
|
-
}),
|
|
51727
|
+
}), Ce(this, "getKeyboardClassString", function() {
|
|
51722
51728
|
for (var Ye = arguments.length, rt = new Array(Ye), ht = 0; ht < Ye; ht++)
|
|
51723
51729
|
rt[ht] = arguments[ht];
|
|
51724
|
-
return [ae.keyboardDOMClass].concat(rt).filter(function(
|
|
51725
|
-
return !!
|
|
51730
|
+
return [ae.keyboardDOMClass].concat(rt).filter(function(Te) {
|
|
51731
|
+
return !!Te;
|
|
51726
51732
|
}).join(" ");
|
|
51727
51733
|
}), typeof window < "u") {
|
|
51728
|
-
var W = this.handleParams(F, H), he = W.keyboardDOMClass,
|
|
51729
|
-
this.utilities = new L({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM =
|
|
51734
|
+
var W = this.handleParams(F, H), he = W.keyboardDOMClass, Se = W.keyboardDOM, Me = W.options, je = Me === void 0 ? {} : Me;
|
|
51735
|
+
this.utilities = new L({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM = Se, this.options = function(Ye) {
|
|
51730
51736
|
for (var rt = 1; rt < arguments.length; rt++) {
|
|
51731
51737
|
var ht = arguments[rt] != null ? arguments[rt] : {};
|
|
51732
|
-
rt % 2 ? we(Object(ht), !0).forEach(function(
|
|
51733
|
-
|
|
51734
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(Ye, Object.getOwnPropertyDescriptors(ht)) : we(Object(ht)).forEach(function(
|
|
51735
|
-
Object.defineProperty(Ye,
|
|
51738
|
+
rt % 2 ? we(Object(ht), !0).forEach(function(Te) {
|
|
51739
|
+
Ce(Ye, Te, ht[Te]);
|
|
51740
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(Ye, Object.getOwnPropertyDescriptors(ht)) : we(Object(ht)).forEach(function(Te) {
|
|
51741
|
+
Object.defineProperty(Ye, Te, Object.getOwnPropertyDescriptor(ht, Te));
|
|
51736
51742
|
});
|
|
51737
51743
|
}
|
|
51738
51744
|
return Ye;
|
|
@@ -51751,31 +51757,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51751
51757
|
var H = this, ae = this.options, W = ae.layoutCandidates, he = ae.layoutCandidatesCaseSensitiveMatch;
|
|
51752
51758
|
if (!W || Qe(W) !== "object")
|
|
51753
51759
|
return {};
|
|
51754
|
-
var
|
|
51760
|
+
var Se = Object.keys(W).filter(function(Ke) {
|
|
51755
51761
|
var mt = F.substring(0, H.getCaretPositionEnd() || 0) || F, Ye = new RegExp("".concat(H.utilities.escapeRegex(Ke), "$"), he ? "g" : "gi");
|
|
51756
51762
|
return !!_e(mt.matchAll(Ye)).length;
|
|
51757
51763
|
});
|
|
51758
|
-
if (
|
|
51759
|
-
var Me =
|
|
51764
|
+
if (Se.length > 1) {
|
|
51765
|
+
var Me = Se.sort(function(Ke, mt) {
|
|
51760
51766
|
return mt.length - Ke.length;
|
|
51761
51767
|
})[0];
|
|
51762
51768
|
return { candidateKey: Me, candidateValue: W[Me] };
|
|
51763
51769
|
}
|
|
51764
|
-
if (
|
|
51765
|
-
var je =
|
|
51770
|
+
if (Se.length) {
|
|
51771
|
+
var je = Se[0];
|
|
51766
51772
|
return { candidateKey: je, candidateValue: W[je] };
|
|
51767
51773
|
}
|
|
51768
51774
|
return {};
|
|
51769
51775
|
} }, { key: "showCandidatesBox", value: function(F, H, ae) {
|
|
51770
51776
|
var W = this;
|
|
51771
|
-
this.candidateBox && this.candidateBox.show({ candidateValue: H, targetElement: ae, onSelect: function(he,
|
|
51777
|
+
this.candidateBox && this.candidateBox.show({ candidateValue: H, targetElement: ae, onSelect: function(he, Se) {
|
|
51772
51778
|
var Me = W.options, je = Me.layoutCandidatesCaseSensitiveMatch, Ke = Me.disableCandidateNormalization, mt = Me.enableLayoutCandidatesKeyPress, Ye = he;
|
|
51773
51779
|
Ke || (Ye = he.normalize("NFD"));
|
|
51774
|
-
var rt = W.getInput(W.options.inputName, !0), ht = W.getCaretPositionEnd() || 0,
|
|
51775
|
-
et < 0 && (et = 0), W.setInput(se, W.options.inputName, !0), W.setCaretPosition(et), mt && typeof W.options.onKeyPress == "function" && W.options.onKeyPress(he,
|
|
51780
|
+
var rt = W.getInput(W.options.inputName, !0), ht = W.getCaretPositionEnd() || 0, Te = rt.substring(0, ht || 0) || rt, X = new RegExp("".concat(W.utilities.escapeRegex(F), "$"), je ? "g" : "gi"), oe = Te.replace(X, Ye), se = rt.replace(Te, oe), Ge = oe.length - Te.length, et = (ht || rt.length) + Ge;
|
|
51781
|
+
et < 0 && (et = 0), W.setInput(se, W.options.inputName, !0), W.setCaretPosition(et), mt && typeof W.options.onKeyPress == "function" && W.options.onKeyPress(he, Se), typeof W.options.onChange == "function" && W.options.onChange(W.getInput(W.options.inputName, !0), Se), typeof W.options.onChangeAll == "function" && W.options.onChangeAll(W.getAllInputs(), Se);
|
|
51776
51782
|
} });
|
|
51777
51783
|
} }, { key: "handleButtonClicked", value: function(F, H) {
|
|
51778
|
-
var ae = this.options, W = ae.inputName, he = W === void 0 ? this.defaultName : W,
|
|
51784
|
+
var ae = this.options, W = ae.inputName, he = W === void 0 ? this.defaultName : W, Se = ae.debug;
|
|
51779
51785
|
if (F !== "{//}") {
|
|
51780
51786
|
this.input[he] || (this.input[he] = "");
|
|
51781
51787
|
var Me = this.utilities.getUpdatedInput(F, this.input[he], this.caretPosition, this.caretPositionEnd);
|
|
@@ -51785,12 +51791,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51785
51791
|
if (this.options.maxLength && this.utilities.handleMaxLength(this.input, Me))
|
|
51786
51792
|
return;
|
|
51787
51793
|
var je = this.utilities.getUpdatedInput(F, this.input[he], this.caretPosition, this.caretPositionEnd, !0);
|
|
51788
|
-
if (this.setInput(je, this.options.inputName, !0),
|
|
51794
|
+
if (this.setInput(je, this.options.inputName, !0), Se && console.log("Input changed:", this.getAllInputs()), this.options.debug && console.log("Caret at: ", this.getCaretPosition(), this.getCaretPositionEnd(), "(".concat(this.keyboardDOMClass, ")"), H == null ? void 0 : H.type), this.options.syncInstanceInputs && this.syncInstanceInputs(), typeof this.options.onChange == "function" && this.options.onChange(this.getInput(this.options.inputName, !0), H), typeof this.options.onChangeAll == "function" && this.options.onChangeAll(this.getAllInputs(), H), H != null && H.target && this.options.enableLayoutCandidates) {
|
|
51789
51795
|
var Ke, mt = this.getInputCandidates(Me), Ye = mt.candidateKey, rt = mt.candidateValue;
|
|
51790
51796
|
Ye && rt ? this.showCandidatesBox(Ye, rt, this.keyboardDOM) : (Ke = this.candidateBox) === null || Ke === void 0 || Ke.destroy();
|
|
51791
51797
|
}
|
|
51792
51798
|
}
|
|
51793
|
-
this.caretPositionEnd && this.caretPosition !== this.caretPositionEnd && (this.setCaretPosition(this.caretPositionEnd, this.caretPositionEnd), this.activeInputElement && this.activeInputElement.setSelectionRange(this.caretPositionEnd, this.caretPositionEnd), this.options.debug && console.log("Caret position aligned", this.caretPosition)),
|
|
51799
|
+
this.caretPositionEnd && this.caretPosition !== this.caretPositionEnd && (this.setCaretPosition(this.caretPositionEnd, this.caretPositionEnd), this.activeInputElement && this.activeInputElement.setSelectionRange(this.caretPositionEnd, this.caretPositionEnd), this.options.debug && console.log("Caret position aligned", this.caretPosition)), Se && console.log("Key pressed:", F);
|
|
51794
51800
|
}
|
|
51795
51801
|
} }, { key: "getMouseHold", value: function() {
|
|
51796
51802
|
return this.isMouseHold;
|
|
@@ -51860,15 +51866,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51860
51866
|
H && F && (F.split(" ").forEach(function(W) {
|
|
51861
51867
|
H.split(" ").forEach(function(he) {
|
|
51862
51868
|
ae.options.buttonTheme || (ae.options.buttonTheme = []);
|
|
51863
|
-
var
|
|
51869
|
+
var Se = !1;
|
|
51864
51870
|
ae.options.buttonTheme.map(function(Me) {
|
|
51865
51871
|
if (Me != null && Me.class.split(" ").includes(he)) {
|
|
51866
|
-
|
|
51872
|
+
Se = !0;
|
|
51867
51873
|
var je = Me.buttons.split(" ");
|
|
51868
|
-
je.includes(W) || (
|
|
51874
|
+
je.includes(W) || (Se = !0, je.push(W), Me.buttons = je.join(" "));
|
|
51869
51875
|
}
|
|
51870
51876
|
return Me;
|
|
51871
|
-
}),
|
|
51877
|
+
}), Se || ae.options.buttonTheme.push({ class: he, buttons: F });
|
|
51872
51878
|
});
|
|
51873
51879
|
}), this.render());
|
|
51874
51880
|
} }, { key: "removeButtonTheme", value: function(F, H) {
|
|
@@ -51877,14 +51883,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51877
51883
|
return this.options.buttonTheme = [], void this.render();
|
|
51878
51884
|
F && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length && (F.split(" ").forEach(function(W) {
|
|
51879
51885
|
var he;
|
|
51880
|
-
(he = ae.options) === null || he === void 0 || (he = he.buttonTheme) === null || he === void 0 || he.map(function(
|
|
51881
|
-
if (
|
|
51882
|
-
var je, Ke, mt = (je =
|
|
51886
|
+
(he = ae.options) === null || he === void 0 || (he = he.buttonTheme) === null || he === void 0 || he.map(function(Se, Me) {
|
|
51887
|
+
if (Se && H && H.includes(Se.class) || !H) {
|
|
51888
|
+
var je, Ke, mt = (je = Se) === null || je === void 0 ? void 0 : je.buttons.split(" ").filter(function(Ye) {
|
|
51883
51889
|
return Ye !== W;
|
|
51884
51890
|
});
|
|
51885
|
-
|
|
51891
|
+
Se && mt != null && mt.length ? Se.buttons = mt.join(" ") : ((Ke = ae.options.buttonTheme) === null || Ke === void 0 || Ke.splice(Me, 1), Se = null);
|
|
51886
51892
|
}
|
|
51887
|
-
return
|
|
51893
|
+
return Se;
|
|
51888
51894
|
});
|
|
51889
51895
|
}), this.render());
|
|
51890
51896
|
} }, { key: "getButtonElement", value: function(F) {
|
|
@@ -51923,8 +51929,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51923
51929
|
var Ke;
|
|
51924
51930
|
return je == null || (Ke = je.hasAttribute) === null || Ke === void 0 ? void 0 : Ke.call(je, "data-skInstance");
|
|
51925
51931
|
})), (H === "textarea" || H === "input" && ["text", "search", "url", "tel", "password"].includes(F.target.type)) && !W.options.disableCaretPositioning) {
|
|
51926
|
-
var
|
|
51927
|
-
W.options.rtl && (
|
|
51932
|
+
var Se = F.target.selectionStart, Me = F.target.selectionEnd;
|
|
51933
|
+
W.options.rtl && (Se = W.utilities.getRtlOffset(Se, W.getInput()), Me = W.utilities.getRtlOffset(Me, W.getInput())), W.setCaretPosition(Se, Me), ae.activeInputElement = F.target, W.options.debug && console.log("Caret at: ", W.getCaretPosition(), W.getCaretPositionEnd(), F && F.target.tagName.toLowerCase(), "(".concat(W.keyboardDOMClass, ")"), F == null ? void 0 : F.type);
|
|
51928
51934
|
} else
|
|
51929
51935
|
!W.options.disableCaretPositioning && he || (F == null ? void 0 : F.type) === "selectionchange" || (W.setCaretPosition(null), ae.activeInputElement = null, W.options.debug && console.log('Caret position reset due to "'.concat(F == null ? void 0 : F.type, '" event'), F));
|
|
51930
51936
|
});
|
|
@@ -51983,65 +51989,65 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51983
51989
|
} }, { key: "getModulesList", value: function() {
|
|
51984
51990
|
return Object.keys(this.modules);
|
|
51985
51991
|
} }, { key: "parseRowDOMContainers", value: function(F, H, ae, W) {
|
|
51986
|
-
var he = this,
|
|
51987
|
-
return
|
|
51992
|
+
var he = this, Se = Array.from(F.children), Me = 0;
|
|
51993
|
+
return Se.length && ae.forEach(function(je, Ke) {
|
|
51988
51994
|
var mt = W[Ke];
|
|
51989
51995
|
if (!(mt && mt > je))
|
|
51990
51996
|
return !1;
|
|
51991
51997
|
var Ye = je - Me, rt = mt - Me, ht = document.createElement("div");
|
|
51992
51998
|
ht.className += "hg-button-container";
|
|
51993
|
-
var
|
|
51994
|
-
ht.setAttribute("data-skUID",
|
|
51995
|
-
var X =
|
|
51999
|
+
var Te = "".concat(he.options.layoutName, "-r").concat(H, "c").concat(Ke);
|
|
52000
|
+
ht.setAttribute("data-skUID", Te);
|
|
52001
|
+
var X = Se.splice(Ye, rt - Ye + 1);
|
|
51996
52002
|
Me = rt - Ye, X.forEach(function(oe) {
|
|
51997
52003
|
return ht.appendChild(oe);
|
|
51998
|
-
}),
|
|
52004
|
+
}), Se.splice(Ye, 0, ht), F.innerHTML = "", Se.forEach(function(oe) {
|
|
51999
52005
|
return F.appendChild(oe);
|
|
52000
52006
|
}), he.options.debug && console.log("rowDOMContainer", X, Ye, rt, Me + 1);
|
|
52001
52007
|
}), F;
|
|
52002
52008
|
} }, { key: "render", value: function() {
|
|
52003
52009
|
var F = this;
|
|
52004
52010
|
this.resetRows(), this.initialized || this.beforeFirstRender(), this.beforeRender();
|
|
52005
|
-
var H = "hg-layout-".concat(this.options.layoutName), ae = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, W = this.options.useTouchEvents || !1, he = W ? "hg-touch-events" : "",
|
|
52011
|
+
var H = "hg-layout-".concat(this.options.layoutName), ae = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, W = this.options.useTouchEvents || !1, he = W ? "hg-touch-events" : "", Se = this.options.useMouseEvents || !1, Me = this.options.disableRowButtonContainers;
|
|
52006
52012
|
this.keyboardDOM.className = this.getKeyboardClassString(this.options.theme, H, this.keyboardPluginClasses, he), this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.keyboardRowsDOM = document.createElement("div"), this.keyboardRowsDOM.className = "hg-rows", ae[this.options.layoutName || this.defaultName].forEach(function(je, Ke) {
|
|
52007
52013
|
var mt = je.split(" ");
|
|
52008
|
-
F.options.excludeFromLayout && F.options.excludeFromLayout[F.options.layoutName || F.defaultName] && (mt = mt.filter(function(
|
|
52009
|
-
return F.options.excludeFromLayout && !F.options.excludeFromLayout[F.options.layoutName || F.defaultName].includes(
|
|
52014
|
+
F.options.excludeFromLayout && F.options.excludeFromLayout[F.options.layoutName || F.defaultName] && (mt = mt.filter(function(Te) {
|
|
52015
|
+
return F.options.excludeFromLayout && !F.options.excludeFromLayout[F.options.layoutName || F.defaultName].includes(Te);
|
|
52010
52016
|
}));
|
|
52011
52017
|
var Ye = document.createElement("div");
|
|
52012
52018
|
Ye.className += "hg-row";
|
|
52013
52019
|
var rt = [], ht = [];
|
|
52014
|
-
mt.forEach(function(
|
|
52015
|
-
var oe, se = !Me && typeof
|
|
52016
|
-
se && (rt.push(X),
|
|
52017
|
-
var et = F.utilities.getButtonClass(
|
|
52018
|
-
Je.className += "hg-button ".concat(et), (oe = Je.classList).add.apply(oe, _e(F.getButtonThemeClasses(
|
|
52020
|
+
mt.forEach(function(Te, X) {
|
|
52021
|
+
var oe, se = !Me && typeof Te == "string" && Te.length > 1 && Te.indexOf("[") === 0, Ge = !Me && typeof Te == "string" && Te.length > 1 && Te.indexOf("]") === Te.length - 1;
|
|
52022
|
+
se && (rt.push(X), Te = Te.replace(/\[/g, "")), Ge && (ht.push(X), Te = Te.replace(/\]/g, ""));
|
|
52023
|
+
var et = F.utilities.getButtonClass(Te), ot = F.utilities.getButtonDisplayName(Te, F.options.display, F.options.mergeDisplay), Dt = F.options.useButtonTag ? "button" : "div", Je = document.createElement(Dt);
|
|
52024
|
+
Je.className += "hg-button ".concat(et), (oe = Je.classList).add.apply(oe, _e(F.getButtonThemeClasses(Te))), F.setDOMButtonAttributes(Te, function(nt, Yt) {
|
|
52019
52025
|
Je.setAttribute(nt, Yt);
|
|
52020
|
-
}), F.activeButtonClass = "hg-activeButton", !F.utilities.pointerEventsSupported() || W ||
|
|
52021
|
-
F.handleButtonClicked(
|
|
52026
|
+
}), F.activeButtonClass = "hg-activeButton", !F.utilities.pointerEventsSupported() || W || Se ? W ? (Je.ontouchstart = function(nt) {
|
|
52027
|
+
F.handleButtonClicked(Te, nt), F.handleButtonMouseDown(Te, nt);
|
|
52022
52028
|
}, Je.ontouchend = function(nt) {
|
|
52023
|
-
F.handleButtonMouseUp(
|
|
52029
|
+
F.handleButtonMouseUp(Te, nt);
|
|
52024
52030
|
}, Je.ontouchcancel = function(nt) {
|
|
52025
|
-
F.handleButtonMouseUp(
|
|
52031
|
+
F.handleButtonMouseUp(Te, nt);
|
|
52026
52032
|
}) : (Je.onclick = function(nt) {
|
|
52027
|
-
F.setMouseHold(!1), typeof F.options.onKeyReleased != "function" && F.handleButtonClicked(
|
|
52033
|
+
F.setMouseHold(!1), typeof F.options.onKeyReleased != "function" && F.handleButtonClicked(Te, nt);
|
|
52028
52034
|
}, Je.onmousedown = function(nt) {
|
|
52029
|
-
typeof F.options.onKeyReleased != "function" || F.isMouseHold || F.handleButtonClicked(
|
|
52035
|
+
typeof F.options.onKeyReleased != "function" || F.isMouseHold || F.handleButtonClicked(Te, nt), F.handleButtonMouseDown(Te, nt);
|
|
52030
52036
|
}, Je.onmouseup = function(nt) {
|
|
52031
|
-
F.handleButtonMouseUp(
|
|
52037
|
+
F.handleButtonMouseUp(Te, nt);
|
|
52032
52038
|
}) : (Je.onpointerdown = function(nt) {
|
|
52033
|
-
F.handleButtonClicked(
|
|
52039
|
+
F.handleButtonClicked(Te, nt), F.handleButtonMouseDown(Te, nt);
|
|
52034
52040
|
}, Je.onpointerup = function(nt) {
|
|
52035
|
-
F.handleButtonMouseUp(
|
|
52041
|
+
F.handleButtonMouseUp(Te, nt);
|
|
52036
52042
|
}, Je.onpointercancel = function(nt) {
|
|
52037
|
-
F.handleButtonMouseUp(
|
|
52038
|
-
}), Je.setAttribute("data-skBtn",
|
|
52043
|
+
F.handleButtonMouseUp(Te, nt);
|
|
52044
|
+
}), Je.setAttribute("data-skBtn", Te);
|
|
52039
52045
|
var ft = "".concat(F.options.layoutName, "-r").concat(Ke, "b").concat(X);
|
|
52040
52046
|
Je.setAttribute("data-skBtnUID", ft);
|
|
52041
52047
|
var pt = document.createElement("span");
|
|
52042
|
-
pt.innerHTML = ot, Je.appendChild(pt), F.buttonElements[
|
|
52048
|
+
pt.innerHTML = ot, Je.appendChild(pt), F.buttonElements[Te] || (F.buttonElements[Te] = []), F.buttonElements[Te].push(Je), Ye.appendChild(Je);
|
|
52043
52049
|
}), Ye = F.parseRowDOMContainers(Ye, Ke, rt, ht), F.keyboardRowsDOM.appendChild(Ye);
|
|
52044
|
-
}), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || W ||
|
|
52050
|
+
}), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || W || Se ? W ? (document.ontouchend = function(je) {
|
|
52045
52051
|
return F.handleButtonMouseUp(void 0, je);
|
|
52046
52052
|
}, document.ontouchcancel = function(je) {
|
|
52047
52053
|
return F.handleButtonMouseUp(void 0, je);
|
|
@@ -56991,23 +56997,23 @@ function cue(i, o, a, u) {
|
|
|
56991
56997
|
var _e = ro((_ = (b = (m = (I = u == null ? void 0 : u.firstWeekContainsDate) !== null && I !== void 0 ? I : u == null || (A = u.locale) === null || A === void 0 || (S = A.options) === null || S === void 0 ? void 0 : S.firstWeekContainsDate) !== null && m !== void 0 ? m : fe.firstWeekContainsDate) !== null && b !== void 0 ? b : (C = fe.locale) === null || C === void 0 || (z = C.options) === null || z === void 0 ? void 0 : z.firstWeekContainsDate) !== null && _ !== void 0 ? _ : 1);
|
|
56992
56998
|
if (!(_e >= 1 && _e <= 7))
|
|
56993
56999
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
56994
|
-
var
|
|
56995
|
-
if (!(
|
|
57000
|
+
var Ae = ro((L = (R = (Y = (B = u == null ? void 0 : u.weekStartsOn) !== null && B !== void 0 ? B : u == null || (U = u.locale) === null || U === void 0 || (V = U.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && Y !== void 0 ? Y : fe.weekStartsOn) !== null && R !== void 0 ? R : ($ = fe.locale) === null || $ === void 0 || (te = $.options) === null || te === void 0 ? void 0 : te.weekStartsOn) !== null && L !== void 0 ? L : 0);
|
|
57001
|
+
if (!(Ae >= 0 && Ae <= 6))
|
|
56996
57002
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
56997
57003
|
if (le === "")
|
|
56998
57004
|
return ce === "" ? gr(a) : /* @__PURE__ */ new Date(NaN);
|
|
56999
57005
|
var Qe = {
|
|
57000
57006
|
firstWeekContainsDate: _e,
|
|
57001
|
-
weekStartsOn:
|
|
57007
|
+
weekStartsOn: Ae,
|
|
57002
57008
|
locale: Z
|
|
57003
|
-
}, we = [new joe()], Ze = le.match(rue).map(function(
|
|
57004
|
-
var Me =
|
|
57009
|
+
}, we = [new joe()], Ze = le.match(rue).map(function(Se) {
|
|
57010
|
+
var Me = Se[0];
|
|
57005
57011
|
if (Me in D9) {
|
|
57006
57012
|
var je = D9[Me];
|
|
57007
|
-
return je(
|
|
57013
|
+
return je(Se, Z.formatLong);
|
|
57008
57014
|
}
|
|
57009
|
-
return
|
|
57010
|
-
}).join("").match(iue),
|
|
57015
|
+
return Se;
|
|
57016
|
+
}).join("").match(iue), Ce = [], Ie = k8(Ze), ke;
|
|
57011
57017
|
try {
|
|
57012
57018
|
var Ne = function() {
|
|
57013
57019
|
var Me = ke.value;
|
|
@@ -57016,14 +57022,14 @@ function cue(i, o, a, u) {
|
|
|
57016
57022
|
if (Ke) {
|
|
57017
57023
|
var mt = Ke.incompatibleTokens;
|
|
57018
57024
|
if (Array.isArray(mt)) {
|
|
57019
|
-
var Ye =
|
|
57025
|
+
var Ye = Ce.find(function(ht) {
|
|
57020
57026
|
return mt.includes(ht.token) || ht.token === je;
|
|
57021
57027
|
});
|
|
57022
57028
|
if (Ye)
|
|
57023
57029
|
throw new RangeError("The format string mustn't contain `".concat(Ye.fullToken, "` and `").concat(Me, "` at the same time"));
|
|
57024
|
-
} else if (Ke.incompatibleTokens === "*" &&
|
|
57030
|
+
} else if (Ke.incompatibleTokens === "*" && Ce.length > 0)
|
|
57025
57031
|
throw new RangeError("The format string mustn't contain `".concat(Me, "` and any other token at the same time"));
|
|
57026
|
-
|
|
57032
|
+
Ce.push({
|
|
57027
57033
|
token: je,
|
|
57028
57034
|
fullToken: Me
|
|
57029
57035
|
});
|
|
@@ -57044,32 +57050,32 @@ function cue(i, o, a, u) {
|
|
|
57044
57050
|
};
|
|
57045
57051
|
}
|
|
57046
57052
|
};
|
|
57047
|
-
for (
|
|
57053
|
+
for (Ie.s(); !(ke = Ie.n()).done; ) {
|
|
57048
57054
|
var Le = Ne();
|
|
57049
57055
|
if (O1(Le) === "object")
|
|
57050
57056
|
return Le.v;
|
|
57051
57057
|
}
|
|
57052
|
-
} catch (
|
|
57053
|
-
|
|
57058
|
+
} catch (Se) {
|
|
57059
|
+
Ie.e(Se);
|
|
57054
57060
|
} finally {
|
|
57055
|
-
|
|
57061
|
+
Ie.f();
|
|
57056
57062
|
}
|
|
57057
57063
|
if (ce.length > 0 && aue.test(ce))
|
|
57058
57064
|
return /* @__PURE__ */ new Date(NaN);
|
|
57059
|
-
var ue = we.map(function(
|
|
57060
|
-
return
|
|
57061
|
-
}).sort(function(
|
|
57062
|
-
return Me -
|
|
57063
|
-
}).filter(function(
|
|
57064
|
-
return je.indexOf(
|
|
57065
|
-
}).map(function(
|
|
57065
|
+
var ue = we.map(function(Se) {
|
|
57066
|
+
return Se.priority;
|
|
57067
|
+
}).sort(function(Se, Me) {
|
|
57068
|
+
return Me - Se;
|
|
57069
|
+
}).filter(function(Se, Me, je) {
|
|
57070
|
+
return je.indexOf(Se) === Me;
|
|
57071
|
+
}).map(function(Se) {
|
|
57066
57072
|
return we.filter(function(Me) {
|
|
57067
|
-
return Me.priority ===
|
|
57073
|
+
return Me.priority === Se;
|
|
57068
57074
|
}).sort(function(Me, je) {
|
|
57069
57075
|
return je.subPriority - Me.subPriority;
|
|
57070
57076
|
});
|
|
57071
|
-
}).map(function(
|
|
57072
|
-
return
|
|
57077
|
+
}).map(function(Se) {
|
|
57078
|
+
return Se[0];
|
|
57073
57079
|
}), ee = gr(a);
|
|
57074
57080
|
if (isNaN(ee.getTime()))
|
|
57075
57081
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -57082,8 +57088,8 @@ function cue(i, o, a, u) {
|
|
|
57082
57088
|
var he = W.set(K, F, Qe);
|
|
57083
57089
|
Array.isArray(he) ? (K = he[0], Ioe(F, he[1])) : K = he;
|
|
57084
57090
|
}
|
|
57085
|
-
} catch (
|
|
57086
|
-
H.e(
|
|
57091
|
+
} catch (Se) {
|
|
57092
|
+
H.e(Se);
|
|
57087
57093
|
} finally {
|
|
57088
57094
|
H.f();
|
|
57089
57095
|
}
|
|
@@ -58039,7 +58045,7 @@ const Iue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
58039
58045
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
58040
58046
|
var Tue = Gf(function(i, o) {
|
|
58041
58047
|
(function(a, u) {
|
|
58042
|
-
var d = "1.0.35", g = "", _ = "?", b = "function", m = "undefined", I = "object", A = "string", S = "major", C = "model", z = "name", L = "type", R = "vendor", Y = "version", B = "architecture", U = "console", V = "mobile", $ = "tablet", te = "smarttv", ce = "wearable", le = "embedded", fe = 350, Z = "Amazon", _e = "Apple",
|
|
58048
|
+
var d = "1.0.35", g = "", _ = "?", b = "function", m = "undefined", I = "object", A = "string", S = "major", C = "model", z = "name", L = "type", R = "vendor", Y = "version", B = "architecture", U = "console", V = "mobile", $ = "tablet", te = "smarttv", ce = "wearable", le = "embedded", fe = 350, Z = "Amazon", _e = "Apple", Ae = "ASUS", Qe = "BlackBerry", we = "Browser", Ze = "Chrome", Ce = "Edge", Ie = "Firefox", ke = "Google", Ne = "Huawei", Le = "LG", ue = "Microsoft", ee = "Motorola", K = "Opera", F = "Samsung", H = "Sharp", ae = "Sony", W = "Xiaomi", he = "Zebra", Se = "Facebook", Me = "Chromium OS", je = "Mac OS", Ke = function(ft, pt) {
|
|
58043
58049
|
var nt = {};
|
|
58044
58050
|
for (var Yt in ft)
|
|
58045
58051
|
pt[Yt] && pt[Yt].length % 2 === 0 ? nt[Yt] = pt[Yt].concat(ft[Yt]) : nt[Yt] = ft[Yt];
|
|
@@ -58054,7 +58060,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58054
58060
|
return ft.toLowerCase();
|
|
58055
58061
|
}, ht = function(ft) {
|
|
58056
58062
|
return typeof ft === A ? ft.replace(/[^\d\.]/g, g).split(".")[0] : u;
|
|
58057
|
-
},
|
|
58063
|
+
}, Te = function(ft, pt) {
|
|
58058
58064
|
if (typeof ft === A)
|
|
58059
58065
|
return ft = ft.replace(/^\s\s*/, g), typeof pt === m ? ft : ft.substring(0, fe);
|
|
58060
58066
|
}, X = function(ft, pt) {
|
|
@@ -58190,7 +58196,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58190
58196
|
/\bfocus\/([\w\.]+)/i
|
|
58191
58197
|
// Firefox Focus
|
|
58192
58198
|
],
|
|
58193
|
-
[Y, [z,
|
|
58199
|
+
[Y, [z, Ie + " Focus"]],
|
|
58194
58200
|
[
|
|
58195
58201
|
/\bopt\/([\w\.]+)/i
|
|
58196
58202
|
// Opera Touch
|
|
@@ -58220,7 +58226,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58220
58226
|
/fxios\/([-\w\.]+)/i
|
|
58221
58227
|
// Firefox for iOS
|
|
58222
58228
|
],
|
|
58223
|
-
[Y, [z,
|
|
58229
|
+
[Y, [z, Ie]],
|
|
58224
58230
|
[
|
|
58225
58231
|
/\bqihu|(qi?ho?o?|360)browser/i
|
|
58226
58232
|
// 360
|
|
@@ -58259,7 +58265,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58259
58265
|
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
58260
58266
|
// Facebook App for iOS & Android
|
|
58261
58267
|
],
|
|
58262
|
-
[[z,
|
|
58268
|
+
[[z, Se], Y],
|
|
58263
58269
|
[
|
|
58264
58270
|
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
58265
58271
|
// Kakao App
|
|
@@ -58332,7 +58338,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58332
58338
|
/mobile vr; rv:([\w\.]+)\).+firefox/i
|
|
58333
58339
|
// Firefox Reality
|
|
58334
58340
|
],
|
|
58335
|
-
[Y, [z,
|
|
58341
|
+
[Y, [z, Ie + " Reality"]],
|
|
58336
58342
|
[
|
|
58337
58343
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
58338
58344
|
// Flow
|
|
@@ -58582,11 +58588,11 @@ var Tue = Gf(function(i, o) {
|
|
|
58582
58588
|
// Asus
|
|
58583
58589
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
58584
58590
|
],
|
|
58585
|
-
[C, [R,
|
|
58591
|
+
[C, [R, Ae], [L, $]],
|
|
58586
58592
|
[
|
|
58587
58593
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
58588
58594
|
],
|
|
58589
|
-
[C, [R,
|
|
58595
|
+
[C, [R, Ae], [L, V]],
|
|
58590
58596
|
[
|
|
58591
58597
|
// HTC
|
|
58592
58598
|
/(nexus 9)/i
|
|
@@ -58852,7 +58858,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58852
58858
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
58853
58859
|
// HbbTV devices
|
|
58854
58860
|
],
|
|
58855
|
-
[[R,
|
|
58861
|
+
[[R, Te], [C, Te], [L, te]],
|
|
58856
58862
|
[
|
|
58857
58863
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
58858
58864
|
// SmartTV from Unidentified Vendors
|
|
@@ -58909,7 +58915,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58909
58915
|
/(quest( 2| pro)?)/i
|
|
58910
58916
|
// Oculus Quest
|
|
58911
58917
|
],
|
|
58912
|
-
[C, [R,
|
|
58918
|
+
[C, [R, Se], [L, ce]],
|
|
58913
58919
|
[
|
|
58914
58920
|
///////////////////
|
|
58915
58921
|
// EMBEDDED
|
|
@@ -58957,7 +58963,7 @@ var Tue = Gf(function(i, o) {
|
|
|
58957
58963
|
/windows.+ edge\/([\w\.]+)/i
|
|
58958
58964
|
// EdgeHTML
|
|
58959
58965
|
],
|
|
58960
|
-
[Y, [z,
|
|
58966
|
+
[Y, [z, Ce + "HTML"]],
|
|
58961
58967
|
[
|
|
58962
58968
|
/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i
|
|
58963
58969
|
// Blink
|
|
@@ -59047,7 +59053,7 @@ var Tue = Gf(function(i, o) {
|
|
|
59047
59053
|
/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
|
|
59048
59054
|
// Firefox OS
|
|
59049
59055
|
],
|
|
59050
|
-
[Y, [z,
|
|
59056
|
+
[Y, [z, Ie + " OS"]],
|
|
59051
59057
|
[
|
|
59052
59058
|
/web0s;.+rt(tv)/i,
|
|
59053
59059
|
/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
|
|
@@ -59150,7 +59156,7 @@ var Tue = Gf(function(i, o) {
|
|
|
59150
59156
|
}, this.getUA = function() {
|
|
59151
59157
|
return Yt;
|
|
59152
59158
|
}, this.setUA = function(Bt) {
|
|
59153
|
-
return Yt = typeof Bt === A && Bt.length > fe ?
|
|
59159
|
+
return Yt = typeof Bt === A && Bt.length > fe ? Te(Bt, fe) : Bt, this;
|
|
59154
59160
|
}, this.setUA(Yt), this;
|
|
59155
59161
|
};
|
|
59156
59162
|
ot.VERSION = d, ot.BROWSER = mt([z, Y, S]), ot.CPU = mt([B]), ot.DEVICE = mt([C, R, L, U, V, te, $, ce, le]), ot.ENGINE = ot.OS = mt([z, Y]), i.exports && (o = i.exports = ot), o.UAParser = ot;
|