@mapsindoors/map-template 1.87.3 → 1.87.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GoogleMapsMap-35a3940b.mjs → GoogleMapsMap-5d0d43c3.mjs} +2 -2
- package/dist/{MapboxMap-5b6f71a6.mjs → MapboxMap-63776ae9.mjs} +2 -2
- package/dist/{combo-box-item.entry-15af1f9c.mjs → combo-box-item.entry-1cdf57ab.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +16 -16
- package/dist/mapsindoors-webcomponent.es.js +734 -735
- package/dist/mapsindoors-webcomponent.umd.js +15 -15
- package/dist/{mi-card_2.entry-08a6a716.mjs → mi-card_2.entry-ce56a28a.mjs} +2 -2
- package/dist/{mi-chip.entry-0a886396.mjs → mi-chip.entry-85a67071.mjs} +2 -2
- package/dist/{mi-column.entry-eb80d912.mjs → mi-column.entry-59352c93.mjs} +2 -2
- package/dist/{mi-combo-box.entry-8586caac.mjs → mi-combo-box.entry-dac6312a.mjs} +2 -2
- package/dist/{mi-data-table.entry-9d9b7d89.mjs → mi-data-table.entry-737a49c4.mjs} +2 -2
- package/dist/{mi-distance_2.entry-ec6a7f78.mjs → mi-distance_2.entry-e2f3665c.mjs} +2 -2
- package/dist/{mi-dropdown-item.entry-9b10c34e.mjs → mi-dropdown-item.entry-793fa765.mjs} +2 -2
- package/dist/{mi-dropdown.entry-faa8af6c.mjs → mi-dropdown.entry-c2b6efce.mjs} +2 -2
- package/dist/{mi-floor-selector.entry-8cf9a967.mjs → mi-floor-selector.entry-3887a629.mjs} +2 -2
- package/dist/{mi-keyboard.entry-3abe1c17.mjs → mi-keyboard.entry-ed74f599.mjs} +2 -2
- package/dist/{mi-list-item-category.entry-736a355f.mjs → mi-list-item-category.entry-129a5854.mjs} +2 -2
- package/dist/{mi-list-item-location.entry-cc1b1758.mjs → mi-list-item-location.entry-7c4fdf48.mjs} +2 -2
- package/dist/{mi-list.entry-367a5c55.mjs → mi-list.entry-e39ec44b.mjs} +2 -2
- package/dist/{mi-location-booking.entry-ef94b40a.mjs → mi-location-booking.entry-c0b78f63.mjs} +2 -2
- package/dist/{mi-location-info.entry-1d364626.mjs → mi-location-info.entry-a4be2c01.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-3da6f064.mjs → mi-map-googlemaps.entry-0750d245.mjs} +2 -2
- package/dist/{mi-map-mapbox.entry-f9bcfff5.mjs → mi-map-mapbox.entry-20c4506d.mjs} +2 -2
- package/dist/{mi-metric-card.entry-9a0dcd38.mjs → mi-metric-card.entry-f9e53ec6.mjs} +2 -2
- package/dist/{mi-my-position.entry-9c948269.mjs → mi-my-position.entry-7257389d.mjs} +2 -2
- package/dist/{mi-notification.entry-9887aab0.mjs → mi-notification.entry-5e56af76.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-f2104408.mjs → mi-route-instructions-heading.entry-fcab0bfd.mjs} +2 -2
- package/dist/{mi-route-instructions-maneuver-legacy.entry-18e0cf9f.mjs → mi-route-instructions-maneuver-legacy.entry-4e6b17e8.mjs} +2 -2
- package/dist/{mi-route-instructions-maneuver.entry-180bcb86.mjs → mi-route-instructions-maneuver.entry-7f1404d5.mjs} +2 -2
- package/dist/{mi-route-instructions-step-legacy.entry-f65f6fa8.mjs → mi-route-instructions-step-legacy.entry-b099435d.mjs} +2 -2
- package/dist/{mi-route-instructions-step.entry-6badcd53.mjs → mi-route-instructions-step.entry-93769139.mjs} +2 -2
- package/dist/{mi-route-instructions.entry-647d3ffb.mjs → mi-route-instructions.entry-89c3f550.mjs} +2 -2
- package/dist/{mi-scroll-buttons.entry-13224931.mjs → mi-scroll-buttons.entry-458051c6.mjs} +2 -2
- package/dist/{mi-search.entry-285e127c.mjs → mi-search.entry-40bc34f2.mjs} +2 -2
- package/dist/{mi-share-sms.entry-575a6f4b.mjs → mi-share-sms.entry-b408ccb0.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-860ccd22.mjs → mi-step-switcher.entry-f2a6f6e5.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-fea3073d.mjs → mi-tab-panel.entry-eee1a1f1.mjs} +2 -2
- package/dist/{mi-tab.entry-f3cfbc7a.mjs → mi-tab.entry-c35e4511.mjs} +2 -2
- package/dist/{mi-tabs.entry-d8ae18ee.mjs → mi-tabs.entry-cb24cf60.mjs} +2 -2
- package/dist/{mi-time.entry-dfdfb13b.mjs → mi-time.entry-605d3a84.mjs} +2 -2
- package/dist/{reactcomponent-b64d1356.mjs → reactcomponent-6f007fba.mjs} +351 -352
- package/package.json +1 -1
|
@@ -553,7 +553,7 @@ var yF = cz.exports;
|
|
|
553
553
|
* LICENSE file in the root directory of this source tree.
|
|
554
554
|
*/
|
|
555
555
|
var hz = be, xa = yF;
|
|
556
|
-
function
|
|
556
|
+
function Ki(e) {
|
|
557
557
|
for (var i = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, o = 1; o < arguments.length; o++)
|
|
558
558
|
i += "&args[]=" + encodeURIComponent(arguments[o]);
|
|
559
559
|
return "Minified React error #" + e + "; visit " + i + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
@@ -964,7 +964,7 @@ function Up(e, i, o, u) {
|
|
|
964
964
|
}
|
|
965
965
|
function G3(e, i) {
|
|
966
966
|
if (i.dangerouslySetInnerHTML != null)
|
|
967
|
-
throw Error(
|
|
967
|
+
throw Error(Ki(91));
|
|
968
968
|
return wo({}, i, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue });
|
|
969
969
|
}
|
|
970
970
|
function g6(e, i) {
|
|
@@ -972,10 +972,10 @@ function g6(e, i) {
|
|
|
972
972
|
if (o == null) {
|
|
973
973
|
if (o = i.children, i = i.defaultValue, o != null) {
|
|
974
974
|
if (i != null)
|
|
975
|
-
throw Error(
|
|
975
|
+
throw Error(Ki(92));
|
|
976
976
|
if (z0(o)) {
|
|
977
977
|
if (1 < o.length)
|
|
978
|
-
throw Error(
|
|
978
|
+
throw Error(Ki(93));
|
|
979
979
|
o = o[0];
|
|
980
980
|
}
|
|
981
981
|
i = o;
|
|
@@ -1096,15 +1096,15 @@ var DF = wo({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0,
|
|
|
1096
1096
|
function W3(e, i) {
|
|
1097
1097
|
if (i) {
|
|
1098
1098
|
if (DF[e] && (i.children != null || i.dangerouslySetInnerHTML != null))
|
|
1099
|
-
throw Error(
|
|
1099
|
+
throw Error(Ki(137, e));
|
|
1100
1100
|
if (i.dangerouslySetInnerHTML != null) {
|
|
1101
1101
|
if (i.children != null)
|
|
1102
|
-
throw Error(
|
|
1102
|
+
throw Error(Ki(60));
|
|
1103
1103
|
if (typeof i.dangerouslySetInnerHTML != "object" || !("__html" in i.dangerouslySetInnerHTML))
|
|
1104
|
-
throw Error(
|
|
1104
|
+
throw Error(Ki(61));
|
|
1105
1105
|
}
|
|
1106
1106
|
if (i.style != null && typeof i.style != "object")
|
|
1107
|
-
throw Error(
|
|
1107
|
+
throw Error(Ki(62));
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
function q3(e, i) {
|
|
@@ -1132,7 +1132,7 @@ var X3 = null, Vp = null, Qp = null;
|
|
|
1132
1132
|
function y6(e) {
|
|
1133
1133
|
if (e = D1(e)) {
|
|
1134
1134
|
if (typeof X3 != "function")
|
|
1135
|
-
throw Error(
|
|
1135
|
+
throw Error(Ki(280));
|
|
1136
1136
|
var i = e.stateNode;
|
|
1137
1137
|
i && (i = P2(i), X3(e.stateNode, e.type, i));
|
|
1138
1138
|
}
|
|
@@ -1193,7 +1193,7 @@ function t1(e, i) {
|
|
|
1193
1193
|
if (e)
|
|
1194
1194
|
return null;
|
|
1195
1195
|
if (o && typeof o != "function")
|
|
1196
|
-
throw Error(
|
|
1196
|
+
throw Error(Ki(231, i, typeof o));
|
|
1197
1197
|
return o;
|
|
1198
1198
|
}
|
|
1199
1199
|
var J3 = !1;
|
|
@@ -1226,7 +1226,7 @@ function EF(e, i, o, u, d, _, b, a, E) {
|
|
|
1226
1226
|
var j = fx;
|
|
1227
1227
|
F0 = !1, fx = null;
|
|
1228
1228
|
} else
|
|
1229
|
-
throw Error(
|
|
1229
|
+
throw Error(Ki(198));
|
|
1230
1230
|
px || (px = !0, e4 = j);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
@@ -1253,13 +1253,13 @@ function Cz(e) {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
function _6(e) {
|
|
1255
1255
|
if (Ad(e) !== e)
|
|
1256
|
-
throw Error(
|
|
1256
|
+
throw Error(Ki(188));
|
|
1257
1257
|
}
|
|
1258
1258
|
function NF(e) {
|
|
1259
1259
|
var i = e.alternate;
|
|
1260
1260
|
if (!i) {
|
|
1261
1261
|
if (i = Ad(e), i === null)
|
|
1262
|
-
throw Error(
|
|
1262
|
+
throw Error(Ki(188));
|
|
1263
1263
|
return i !== e ? null : e;
|
|
1264
1264
|
}
|
|
1265
1265
|
for (var o = e, u = i; ; ) {
|
|
@@ -1282,7 +1282,7 @@ function NF(e) {
|
|
|
1282
1282
|
return _6(d), i;
|
|
1283
1283
|
_ = _.sibling;
|
|
1284
1284
|
}
|
|
1285
|
-
throw Error(
|
|
1285
|
+
throw Error(Ki(188));
|
|
1286
1286
|
}
|
|
1287
1287
|
if (o.return !== u.return)
|
|
1288
1288
|
o = d, u = _;
|
|
@@ -1311,14 +1311,14 @@ function NF(e) {
|
|
|
1311
1311
|
a = a.sibling;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (!b)
|
|
1314
|
-
throw Error(
|
|
1314
|
+
throw Error(Ki(189));
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
if (o.alternate !== u)
|
|
1318
|
-
throw Error(
|
|
1318
|
+
throw Error(Ki(190));
|
|
1319
1319
|
}
|
|
1320
1320
|
if (o.tag !== 3)
|
|
1321
|
-
throw Error(
|
|
1321
|
+
throw Error(Ki(188));
|
|
1322
1322
|
return o.stateNode.current === o ? e : i;
|
|
1323
1323
|
}
|
|
1324
1324
|
function Ez(e) {
|
|
@@ -2439,7 +2439,7 @@ function P6(e) {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
function W_(e, i, o) {
|
|
2441
2441
|
if (i = P6(i), P6(e) !== i && o)
|
|
2442
|
-
throw Error(
|
|
2442
|
+
throw Error(Ki(425));
|
|
2443
2443
|
}
|
|
2444
2444
|
function xx() {
|
|
2445
2445
|
}
|
|
@@ -2527,7 +2527,7 @@ function D1(e) {
|
|
|
2527
2527
|
function Ep(e) {
|
|
2528
2528
|
if (e.tag === 5 || e.tag === 6)
|
|
2529
2529
|
return e.stateNode;
|
|
2530
|
-
throw Error(
|
|
2530
|
+
throw Error(Ki(33));
|
|
2531
2531
|
}
|
|
2532
2532
|
function P2(e) {
|
|
2533
2533
|
return e[c1] || null;
|
|
@@ -2563,7 +2563,7 @@ function wx() {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
function F6(e, i, o) {
|
|
2565
2565
|
if (Ss.current !== ih)
|
|
2566
|
-
throw Error(
|
|
2566
|
+
throw Error(Ki(168));
|
|
2567
2567
|
no(Ss, i), no(qs, o);
|
|
2568
2568
|
}
|
|
2569
2569
|
function s9(e, i, o) {
|
|
@@ -2573,7 +2573,7 @@ function s9(e, i, o) {
|
|
|
2573
2573
|
u = u.getChildContext();
|
|
2574
2574
|
for (var d in u)
|
|
2575
2575
|
if (!(d in i))
|
|
2576
|
-
throw Error(
|
|
2576
|
+
throw Error(Ki(108, MF(e) || "Unknown", d));
|
|
2577
2577
|
return wo({}, o, u);
|
|
2578
2578
|
}
|
|
2579
2579
|
function bx(e) {
|
|
@@ -2582,7 +2582,7 @@ function bx(e) {
|
|
|
2582
2582
|
function U6(e, i, o) {
|
|
2583
2583
|
var u = e.stateNode;
|
|
2584
2584
|
if (!u)
|
|
2585
|
-
throw Error(
|
|
2585
|
+
throw Error(Ki(169));
|
|
2586
2586
|
o ? (e = s9(e, i, vd), u.__reactInternalMemoizedMergedChildContext = e, lo(qs), lo(Ss), no(Ss, e)) : lo(qs), no(qs, o);
|
|
2587
2587
|
}
|
|
2588
2588
|
var kc = null, R2 = !1, n3 = !1;
|
|
@@ -2667,14 +2667,14 @@ function f4(e) {
|
|
|
2667
2667
|
var o = i;
|
|
2668
2668
|
if (!V6(e, i)) {
|
|
2669
2669
|
if (d4(e))
|
|
2670
|
-
throw Error(
|
|
2670
|
+
throw Error(Ki(418));
|
|
2671
2671
|
i = qu(o.nextSibling);
|
|
2672
2672
|
var u = va;
|
|
2673
2673
|
i && V6(e, i) ? c9(u, o) : (e.flags = e.flags & -4097 | 2, po = !1, va = e);
|
|
2674
2674
|
}
|
|
2675
2675
|
} else {
|
|
2676
2676
|
if (d4(e))
|
|
2677
|
-
throw Error(
|
|
2677
|
+
throw Error(Ki(418));
|
|
2678
2678
|
e.flags = e.flags & -4097 | 2, po = !1, va = e;
|
|
2679
2679
|
}
|
|
2680
2680
|
}
|
|
@@ -2692,13 +2692,13 @@ function q_(e) {
|
|
|
2692
2692
|
var i;
|
|
2693
2693
|
if ((i = e.tag !== 3) && !(i = e.tag !== 5) && (i = e.type, i = i !== "head" && i !== "body" && !l4(e.type, e.memoizedProps)), i && (i = _a)) {
|
|
2694
2694
|
if (d4(e))
|
|
2695
|
-
throw u9(), Error(
|
|
2695
|
+
throw u9(), Error(Ki(418));
|
|
2696
2696
|
for (; i; )
|
|
2697
2697
|
c9(e, i), i = qu(i.nextSibling);
|
|
2698
2698
|
}
|
|
2699
2699
|
if (Q6(e), e.tag === 13) {
|
|
2700
2700
|
if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e)
|
|
2701
|
-
throw Error(
|
|
2701
|
+
throw Error(Ki(317));
|
|
2702
2702
|
e: {
|
|
2703
2703
|
for (e = e.nextSibling, i = 0; e; ) {
|
|
2704
2704
|
if (e.nodeType === 8) {
|
|
@@ -2764,7 +2764,7 @@ function Va(e) {
|
|
|
2764
2764
|
if (FI !== e)
|
|
2765
2765
|
if (e = { context: e, memoizedValue: i, next: null }, Op === null) {
|
|
2766
2766
|
if (Dx === null)
|
|
2767
|
-
throw Error(
|
|
2767
|
+
throw Error(Ki(308));
|
|
2768
2768
|
Op = e, Dx.dependencies = { lanes: 0, firstContext: e };
|
|
2769
2769
|
} else
|
|
2770
2770
|
Op = Op.next = e;
|
|
@@ -2899,7 +2899,7 @@ function $6(e, i, o) {
|
|
|
2899
2899
|
var u = e[i], d = u.callback;
|
|
2900
2900
|
if (d !== null) {
|
|
2901
2901
|
if (u.callback = null, u = o, typeof d != "function")
|
|
2902
|
-
throw Error(
|
|
2902
|
+
throw Error(Ki(191, d));
|
|
2903
2903
|
d.call(u);
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
@@ -2944,11 +2944,11 @@ function w0(e, i, o) {
|
|
|
2944
2944
|
if (o._owner) {
|
|
2945
2945
|
if (o = o._owner, o) {
|
|
2946
2946
|
if (o.tag !== 1)
|
|
2947
|
-
throw Error(
|
|
2947
|
+
throw Error(Ki(309));
|
|
2948
2948
|
var u = o.stateNode;
|
|
2949
2949
|
}
|
|
2950
2950
|
if (!u)
|
|
2951
|
-
throw Error(
|
|
2951
|
+
throw Error(Ki(147, e));
|
|
2952
2952
|
var d = u, _ = "" + e;
|
|
2953
2953
|
return i !== null && i.ref !== null && typeof i.ref == "function" && i.ref._stringRef === _ ? i.ref : (i = function(b) {
|
|
2954
2954
|
var a = d.refs;
|
|
@@ -2956,14 +2956,14 @@ function w0(e, i, o) {
|
|
|
2956
2956
|
}, i._stringRef = _, i);
|
|
2957
2957
|
}
|
|
2958
2958
|
if (typeof e != "string")
|
|
2959
|
-
throw Error(
|
|
2959
|
+
throw Error(Ki(284));
|
|
2960
2960
|
if (!o._owner)
|
|
2961
|
-
throw Error(
|
|
2961
|
+
throw Error(Ki(290, e));
|
|
2962
2962
|
}
|
|
2963
2963
|
return e;
|
|
2964
2964
|
}
|
|
2965
2965
|
function K_(e, i) {
|
|
2966
|
-
throw e = Object.prototype.toString.call(i), Error(
|
|
2966
|
+
throw e = Object.prototype.toString.call(i), Error(Ki(31, e === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : e));
|
|
2967
2967
|
}
|
|
2968
2968
|
function Z6(e) {
|
|
2969
2969
|
var i = e._init;
|
|
@@ -3098,9 +3098,9 @@ function g9(e) {
|
|
|
3098
3098
|
function ve(me, te, ee, re) {
|
|
3099
3099
|
var Me = m0(ee);
|
|
3100
3100
|
if (typeof Me != "function")
|
|
3101
|
-
throw Error(
|
|
3101
|
+
throw Error(Ki(150));
|
|
3102
3102
|
if (ee = Me.call(ee), ee == null)
|
|
3103
|
-
throw Error(
|
|
3103
|
+
throw Error(Ki(151));
|
|
3104
3104
|
for (var we = Me = null, We = te, ot = te = 0, $e = null, xt = ee.next(); We !== null && !xt.done; ot++, xt = ee.next()) {
|
|
3105
3105
|
We.index > ot ? ($e = We, We = null) : $e = We.sibling;
|
|
3106
3106
|
var ut = G(me, We, xt.value, re);
|
|
@@ -3185,7 +3185,7 @@ function g9(e) {
|
|
|
3185
3185
|
var Kp = g9(!0), m9 = g9(!1), S1 = {}, Xl = oh(S1), u1 = oh(S1), h1 = oh(S1);
|
|
3186
3186
|
function pd(e) {
|
|
3187
3187
|
if (e === S1)
|
|
3188
|
-
throw Error(
|
|
3188
|
+
throw Error(Ki(174));
|
|
3189
3189
|
return e;
|
|
3190
3190
|
}
|
|
3191
3191
|
function $I(e, i) {
|
|
@@ -3243,7 +3243,7 @@ function GI() {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
var bv = $c.ReactCurrentDispatcher, o3 = $c.ReactCurrentBatchConfig, wd = 0, xo = null, Yo = null, is = null, Cx = !1, H0 = !1, d1 = 0, VU = 0;
|
|
3245
3245
|
function bs() {
|
|
3246
|
-
throw Error(
|
|
3246
|
+
throw Error(Ki(321));
|
|
3247
3247
|
}
|
|
3248
3248
|
function ZI(e, i) {
|
|
3249
3249
|
if (i === null)
|
|
@@ -3258,12 +3258,12 @@ function WI(e, i, o, u, d, _) {
|
|
|
3258
3258
|
_ = 0;
|
|
3259
3259
|
do {
|
|
3260
3260
|
if (H0 = !1, d1 = 0, 25 <= _)
|
|
3261
|
-
throw Error(
|
|
3261
|
+
throw Error(Ki(301));
|
|
3262
3262
|
_ += 1, is = Yo = null, i.updateQueue = null, bv.current = ZU, e = o(u, d);
|
|
3263
3263
|
} while (H0);
|
|
3264
3264
|
}
|
|
3265
3265
|
if (bv.current = Ex, i = Yo !== null && Yo.next !== null, wd = 0, is = Yo = xo = null, Cx = !1, i)
|
|
3266
|
-
throw Error(
|
|
3266
|
+
throw Error(Ki(300));
|
|
3267
3267
|
return e;
|
|
3268
3268
|
}
|
|
3269
3269
|
function qI() {
|
|
@@ -3285,7 +3285,7 @@ function Qa() {
|
|
|
3285
3285
|
is = i, Yo = e;
|
|
3286
3286
|
else {
|
|
3287
3287
|
if (e === null)
|
|
3288
|
-
throw Error(
|
|
3288
|
+
throw Error(Ki(310));
|
|
3289
3289
|
Yo = e, e = { memoizedState: Yo.memoizedState, baseState: Yo.baseState, baseQueue: Yo.baseQueue, queue: Yo.queue, next: null }, is === null ? xo.memoizedState = is = e : is = is.next = e;
|
|
3290
3290
|
}
|
|
3291
3291
|
return is;
|
|
@@ -3296,7 +3296,7 @@ function f1(e, i) {
|
|
|
3296
3296
|
function s3(e) {
|
|
3297
3297
|
var i = Qa(), o = i.queue;
|
|
3298
3298
|
if (o === null)
|
|
3299
|
-
throw Error(
|
|
3299
|
+
throw Error(Ki(311));
|
|
3300
3300
|
o.lastRenderedReducer = e;
|
|
3301
3301
|
var u = Yo, d = u.baseQueue, _ = o.pending;
|
|
3302
3302
|
if (_ !== null) {
|
|
@@ -3339,7 +3339,7 @@ function s3(e) {
|
|
|
3339
3339
|
function a3(e) {
|
|
3340
3340
|
var i = Qa(), o = i.queue;
|
|
3341
3341
|
if (o === null)
|
|
3342
|
-
throw Error(
|
|
3342
|
+
throw Error(Ki(311));
|
|
3343
3343
|
o.lastRenderedReducer = e;
|
|
3344
3344
|
var u = o.dispatch, d = o.pending, _ = i.memoizedState;
|
|
3345
3345
|
if (d !== null) {
|
|
@@ -3358,7 +3358,7 @@ function v9(e, i) {
|
|
|
3358
3358
|
var o = xo, u = Qa(), d = i(), _ = !pl(u.memoizedState, d);
|
|
3359
3359
|
if (_ && (u.memoizedState = d, Ws = !0), u = u.queue, KI(b9.bind(null, o, u, e), [e]), u.getSnapshot !== i || _ || is !== null && is.memoizedState.tag & 1) {
|
|
3360
3360
|
if (o.flags |= 2048, p1(9, w9.bind(null, o, u, d, i), void 0, null), os === null)
|
|
3361
|
-
throw Error(
|
|
3361
|
+
throw Error(Ki(349));
|
|
3362
3362
|
wd & 30 || x9(o, i, d);
|
|
3363
3363
|
}
|
|
3364
3364
|
return d;
|
|
@@ -3547,11 +3547,11 @@ var Ex = { readContext: Va, useCallback: bs, useContext: bs, useEffect: bs, useI
|
|
|
3547
3547
|
var u = xo, d = Hl();
|
|
3548
3548
|
if (po) {
|
|
3549
3549
|
if (o === void 0)
|
|
3550
|
-
throw Error(
|
|
3550
|
+
throw Error(Ki(407));
|
|
3551
3551
|
o = o();
|
|
3552
3552
|
} else {
|
|
3553
3553
|
if (o = i(), os === null)
|
|
3554
|
-
throw Error(
|
|
3554
|
+
throw Error(Ki(349));
|
|
3555
3555
|
wd & 30 || x9(u, i, o);
|
|
3556
3556
|
}
|
|
3557
3557
|
d.memoizedState = o;
|
|
@@ -3801,13 +3801,13 @@ function X_(e, i, o, u) {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
function KU(e, i, o, u, d, _, b) {
|
|
3803
3803
|
if (o)
|
|
3804
|
-
return i.flags & 256 ? (i.flags &= -257, u = l3(Error(
|
|
3804
|
+
return i.flags & 256 ? (i.flags &= -257, u = l3(Error(Ki(422))), X_(e, i, b, u)) : i.memoizedState !== null ? (i.child = e.child, i.flags |= 128, null) : (_ = u.fallback, d = i.mode, u = Q2({ mode: "visible", children: u.children }, d, 0, null), _ = yd(_, d, b, null), _.flags |= 2, u.return = i, _.return = i, u.sibling = _, i.child = u, i.mode & 1 && Kp(i, e.child, null, b), i.child.memoizedState = w4(b), i.memoizedState = x4, _);
|
|
3805
3805
|
if (!(i.mode & 1))
|
|
3806
3806
|
return X_(e, i, b, null);
|
|
3807
3807
|
if (d.data === "$!") {
|
|
3808
3808
|
if (u = d.nextSibling && d.nextSibling.dataset, u)
|
|
3809
3809
|
var a = u.dgst;
|
|
3810
|
-
return u = a, _ = Error(
|
|
3810
|
+
return u = a, _ = Error(Ki(419)), u = l3(_, u, void 0), X_(e, i, b, u);
|
|
3811
3811
|
}
|
|
3812
3812
|
if (a = (b & e.childLanes) !== 0, Ws || a) {
|
|
3813
3813
|
if (u = os, u !== null) {
|
|
@@ -3849,7 +3849,7 @@ function KU(e, i, o, u, d, _, b) {
|
|
|
3849
3849
|
}
|
|
3850
3850
|
d = d & (u.suspendedLanes | b) ? 0 : d, d !== 0 && d !== _.retryLane && (_.retryLane = d, Uc(e, d), fl(u, e, d, -1));
|
|
3851
3851
|
}
|
|
3852
|
-
return oT(), u = l3(Error(
|
|
3852
|
+
return oT(), u = l3(Error(Ki(421))), X_(e, i, b, u);
|
|
3853
3853
|
}
|
|
3854
3854
|
return d.data === "$?" ? (i.flags |= 128, i.child = e.child, i = uV.bind(null, e), d._reactRetry = i, null) : (e = _.treeContext, _a = qu(d.nextSibling), va = i, po = !0, cl = null, e !== null && (Pa[Ra++] = jc, Pa[Ra++] = Pc, Pa[Ra++] = xd, jc = e.id, Pc = e.overflow, xd = i), i = JI(i, u.children), i.flags |= 4096, i);
|
|
3855
3855
|
}
|
|
@@ -3923,7 +3923,7 @@ function Vc(e, i, o) {
|
|
|
3923
3923
|
if (e !== null && (i.dependencies = e.dependencies), bd |= i.lanes, !(o & i.childLanes))
|
|
3924
3924
|
return null;
|
|
3925
3925
|
if (e !== null && i.child !== e.child)
|
|
3926
|
-
throw Error(
|
|
3926
|
+
throw Error(Ki(153));
|
|
3927
3927
|
if (i.child !== null) {
|
|
3928
3928
|
for (e = i.child, o = eh(e, e.pendingProps), i.child = o, o.return = i; e.sibling !== null; )
|
|
3929
3929
|
e = e.sibling, o = o.sibling = eh(e, e.pendingProps), o.return = i;
|
|
@@ -4096,7 +4096,7 @@ function JU(e, i, o) {
|
|
|
4096
4096
|
else {
|
|
4097
4097
|
if (!u) {
|
|
4098
4098
|
if (i.stateNode === null)
|
|
4099
|
-
throw Error(
|
|
4099
|
+
throw Error(Ki(166));
|
|
4100
4100
|
return Ms(i), null;
|
|
4101
4101
|
}
|
|
4102
4102
|
if (e = pd(Xl.current), q_(i)) {
|
|
@@ -4261,7 +4261,7 @@ function JU(e, i, o) {
|
|
|
4261
4261
|
G9(e, i, e.memoizedProps, u);
|
|
4262
4262
|
else {
|
|
4263
4263
|
if (typeof u != "string" && i.stateNode === null)
|
|
4264
|
-
throw Error(
|
|
4264
|
+
throw Error(Ki(166));
|
|
4265
4265
|
if (o = pd(h1.current), pd(Xl.current), q_(i)) {
|
|
4266
4266
|
if (u = i.stateNode, o = i.memoizedProps, u[Yl] = i, (_ = u.nodeValue !== o) && (e = va, e !== null))
|
|
4267
4267
|
switch (e.tag) {
|
|
@@ -4283,9 +4283,9 @@ function JU(e, i, o) {
|
|
|
4283
4283
|
else if (_ = q_(i), u !== null && u.dehydrated !== null) {
|
|
4284
4284
|
if (e === null) {
|
|
4285
4285
|
if (!_)
|
|
4286
|
-
throw Error(
|
|
4286
|
+
throw Error(Ki(318));
|
|
4287
4287
|
if (_ = i.memoizedState, _ = _ !== null ? _.dehydrated : null, !_)
|
|
4288
|
-
throw Error(
|
|
4288
|
+
throw Error(Ki(317));
|
|
4289
4289
|
_[Yl] = i;
|
|
4290
4290
|
} else
|
|
4291
4291
|
qp(), !(i.flags & 128) && (i.memoizedState = null), i.flags |= 4;
|
|
@@ -4338,7 +4338,7 @@ function JU(e, i, o) {
|
|
|
4338
4338
|
case 25:
|
|
4339
4339
|
return null;
|
|
4340
4340
|
}
|
|
4341
|
-
throw Error(
|
|
4341
|
+
throw Error(Ki(156, i.tag));
|
|
4342
4342
|
}
|
|
4343
4343
|
function eV(e, i) {
|
|
4344
4344
|
switch (RI(i), i.tag) {
|
|
@@ -4351,7 +4351,7 @@ function eV(e, i) {
|
|
|
4351
4351
|
case 13:
|
|
4352
4352
|
if (lo(_o), e = i.memoizedState, e !== null && e.dehydrated !== null) {
|
|
4353
4353
|
if (i.alternate === null)
|
|
4354
|
-
throw Error(
|
|
4354
|
+
throw Error(Ki(340));
|
|
4355
4355
|
qp();
|
|
4356
4356
|
}
|
|
4357
4357
|
return e = i.flags, e & 65536 ? (i.flags = e & -65537 | 128, i) : null;
|
|
@@ -4460,7 +4460,7 @@ function iV(e, i) {
|
|
|
4460
4460
|
case 17:
|
|
4461
4461
|
break;
|
|
4462
4462
|
default:
|
|
4463
|
-
throw Error(
|
|
4463
|
+
throw Error(Ki(163));
|
|
4464
4464
|
}
|
|
4465
4465
|
} catch (re) {
|
|
4466
4466
|
Do(i, i.return, re);
|
|
@@ -4642,7 +4642,7 @@ function ol(e, i) {
|
|
|
4642
4642
|
a = a.return;
|
|
4643
4643
|
}
|
|
4644
4644
|
if (hs === null)
|
|
4645
|
-
throw Error(
|
|
4645
|
+
throw Error(Ki(160));
|
|
4646
4646
|
q9(_, b, d), hs = null, ll = !1;
|
|
4647
4647
|
var E = d.alternate;
|
|
4648
4648
|
E !== null && (E.return = null), d.return = null;
|
|
@@ -4723,7 +4723,7 @@ function K9(e, i) {
|
|
|
4723
4723
|
case 6:
|
|
4724
4724
|
if (ol(i, e), Vl(e), u & 4) {
|
|
4725
4725
|
if (e.stateNode === null)
|
|
4726
|
-
throw Error(
|
|
4726
|
+
throw Error(Ki(162));
|
|
4727
4727
|
d = e.stateNode, _ = e.memoizedProps;
|
|
4728
4728
|
try {
|
|
4729
4729
|
d.nodeValue = _;
|
|
@@ -4840,7 +4840,7 @@ function Vl(e) {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
o = o.return;
|
|
4842
4842
|
}
|
|
4843
|
-
throw Error(
|
|
4843
|
+
throw Error(Ki(160));
|
|
4844
4844
|
}
|
|
4845
4845
|
switch (u.tag) {
|
|
4846
4846
|
case 5:
|
|
@@ -4855,7 +4855,7 @@ function Vl(e) {
|
|
|
4855
4855
|
T4(e, a, b);
|
|
4856
4856
|
break;
|
|
4857
4857
|
default:
|
|
4858
|
-
throw Error(
|
|
4858
|
+
throw Error(Ki(161));
|
|
4859
4859
|
}
|
|
4860
4860
|
} catch (E) {
|
|
4861
4861
|
Do(e, e.return, E);
|
|
@@ -4970,7 +4970,7 @@ function lE(e) {
|
|
|
4970
4970
|
case 25:
|
|
4971
4971
|
break;
|
|
4972
4972
|
default:
|
|
4973
|
-
throw Error(
|
|
4973
|
+
throw Error(Ki(163));
|
|
4974
4974
|
}
|
|
4975
4975
|
Ds || i.flags & 512 && I4(i);
|
|
4976
4976
|
} catch (G) {
|
|
@@ -5067,7 +5067,7 @@ function Ju(e) {
|
|
|
5067
5067
|
}
|
|
5068
5068
|
function fl(e, i, o, u) {
|
|
5069
5069
|
if (50 < G0)
|
|
5070
|
-
throw G0 = 0, A4 = null, Error(
|
|
5070
|
+
throw G0 = 0, A4 = null, Error(Ki(185));
|
|
5071
5071
|
I1(e, o, u), (!(Br & 2) || e !== os) && (e === os && (!(Br & 2) && (V2 |= o), Go === 4 && Qu(e, fs)), Xs(e, u), o === 1 && Br === 0 && !(i.mode & 1) && (eg = No() + 500, R2 && sh()));
|
|
5072
5072
|
}
|
|
5073
5073
|
function Xs(e, i) {
|
|
@@ -5105,7 +5105,7 @@ function Xs(e, i) {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
function J9(e, i) {
|
|
5107
5107
|
if (Tv = -1, Dv = 0, Br & 6)
|
|
5108
|
-
throw Error(
|
|
5108
|
+
throw Error(Ki(327));
|
|
5109
5109
|
var o = e.callbackNode;
|
|
5110
5110
|
if (Yp() && e.callbackNode !== o)
|
|
5111
5111
|
return null;
|
|
@@ -5141,7 +5141,7 @@ function J9(e, i) {
|
|
|
5141
5141
|
switch (e.finishedWork = d, e.finishedLanes = u, i) {
|
|
5142
5142
|
case 0:
|
|
5143
5143
|
case 1:
|
|
5144
|
-
throw Error(
|
|
5144
|
+
throw Error(Ki(345));
|
|
5145
5145
|
case 2:
|
|
5146
5146
|
sd(e, Zs, zc);
|
|
5147
5147
|
break;
|
|
@@ -5175,7 +5175,7 @@ function J9(e, i) {
|
|
|
5175
5175
|
sd(e, Zs, zc);
|
|
5176
5176
|
break;
|
|
5177
5177
|
default:
|
|
5178
|
-
throw Error(
|
|
5178
|
+
throw Error(Ki(329));
|
|
5179
5179
|
}
|
|
5180
5180
|
}
|
|
5181
5181
|
}
|
|
@@ -5227,7 +5227,7 @@ function Qu(e, i) {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
function hE(e) {
|
|
5229
5229
|
if (Br & 6)
|
|
5230
|
-
throw Error(
|
|
5230
|
+
throw Error(Ki(327));
|
|
5231
5231
|
Yp();
|
|
5232
5232
|
var i = mx(e, 0);
|
|
5233
5233
|
if (!(i & 1))
|
|
@@ -5240,7 +5240,7 @@ function hE(e) {
|
|
|
5240
5240
|
if (o === 1)
|
|
5241
5241
|
throw o = g1, md(e, 0), Qu(e, i), Xs(e, No()), o;
|
|
5242
5242
|
if (o === 6)
|
|
5243
|
-
throw Error(
|
|
5243
|
+
throw Error(Ki(345));
|
|
5244
5244
|
return e.finishedWork = e.current.alternate, e.finishedLanes = i, sd(e, Zs, zc), Xs(e, No()), null;
|
|
5245
5245
|
}
|
|
5246
5246
|
function nT(e, i) {
|
|
@@ -5354,7 +5354,7 @@ function e8(e, i) {
|
|
|
5354
5354
|
K6(_, j, i), oT();
|
|
5355
5355
|
break e;
|
|
5356
5356
|
}
|
|
5357
|
-
E = Error(
|
|
5357
|
+
E = Error(Ki(426));
|
|
5358
5358
|
}
|
|
5359
5359
|
} else if (po && a.mode & 1) {
|
|
5360
5360
|
var Ze = X6(b);
|
|
@@ -5413,7 +5413,7 @@ function Ox(e, i) {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
while (1);
|
|
5415
5415
|
if (UI(), Br = o, Nx.current = u, Fo !== null)
|
|
5416
|
-
throw Error(
|
|
5416
|
+
throw Error(Ki(261));
|
|
5417
5417
|
return os = null, fs = 0, Go;
|
|
5418
5418
|
}
|
|
5419
5419
|
function sV() {
|
|
@@ -5469,13 +5469,13 @@ function lV(e, i, o, u) {
|
|
|
5469
5469
|
Yp();
|
|
5470
5470
|
while ($u !== null);
|
|
5471
5471
|
if (Br & 6)
|
|
5472
|
-
throw Error(
|
|
5472
|
+
throw Error(Ki(327));
|
|
5473
5473
|
o = e.finishedWork;
|
|
5474
5474
|
var d = e.finishedLanes;
|
|
5475
5475
|
if (o === null)
|
|
5476
5476
|
return null;
|
|
5477
5477
|
if (e.finishedWork = null, e.finishedLanes = 0, o === e.current)
|
|
5478
|
-
throw Error(
|
|
5478
|
+
throw Error(Ki(177));
|
|
5479
5479
|
e.callbackNode = null, e.callbackPriority = 0;
|
|
5480
5480
|
var _ = o.lanes | o.childLanes;
|
|
5481
5481
|
if (VF(e, _), e === os && (Fo = os = null, fs = 0), !(o.subtreeFlags & 2064) && !(o.flags & 2064) || ev || (ev = !0, s8(gx, function() {
|
|
@@ -5503,7 +5503,7 @@ function Yp() {
|
|
|
5503
5503
|
var u = !1;
|
|
5504
5504
|
else {
|
|
5505
5505
|
if (e = $u, $u = null, zx = 0, Br & 6)
|
|
5506
|
-
throw Error(
|
|
5506
|
+
throw Error(Ki(331));
|
|
5507
5507
|
var d = Br;
|
|
5508
5508
|
for (Br |= 4, Ln = e.current; Ln !== null; ) {
|
|
5509
5509
|
var _ = Ln, b = _.child;
|
|
@@ -5664,7 +5664,7 @@ function hV(e, i) {
|
|
|
5664
5664
|
u = e.stateNode;
|
|
5665
5665
|
break;
|
|
5666
5666
|
default:
|
|
5667
|
-
throw Error(
|
|
5667
|
+
throw Error(Ki(314));
|
|
5668
5668
|
}
|
|
5669
5669
|
u !== null && u.delete(i), r8(e, o);
|
|
5670
5670
|
}
|
|
@@ -5705,7 +5705,7 @@ o8 = function(e, i, o) {
|
|
|
5705
5705
|
i = tE(null, i, u, al(u.type, e), o);
|
|
5706
5706
|
break e;
|
|
5707
5707
|
}
|
|
5708
|
-
throw Error(
|
|
5708
|
+
throw Error(Ki(
|
|
5709
5709
|
306,
|
|
5710
5710
|
u,
|
|
5711
5711
|
""
|
|
@@ -5719,15 +5719,15 @@ o8 = function(e, i, o) {
|
|
|
5719
5719
|
case 3:
|
|
5720
5720
|
e: {
|
|
5721
5721
|
if (V9(i), e === null)
|
|
5722
|
-
throw Error(
|
|
5722
|
+
throw Error(Ki(387));
|
|
5723
5723
|
u = i.pendingProps, _ = i.memoizedState, d = _.element, d9(e, i), Sx(i, u, null, o);
|
|
5724
5724
|
var b = i.memoizedState;
|
|
5725
5725
|
if (u = b.element, _.isDehydrated)
|
|
5726
5726
|
if (_ = { element: u, isDehydrated: !1, cache: b.cache, pendingSuspenseBoundaries: b.pendingSuspenseBoundaries, transitions: b.transitions }, i.updateQueue.baseState = _, i.memoizedState = _, i.flags & 256) {
|
|
5727
|
-
d = Jp(Error(
|
|
5727
|
+
d = Jp(Error(Ki(423)), i), i = nE(e, i, u, o, d);
|
|
5728
5728
|
break e;
|
|
5729
5729
|
} else if (u !== d) {
|
|
5730
|
-
d = Jp(Error(
|
|
5730
|
+
d = Jp(Error(Ki(424)), i), i = nE(e, i, u, o, d);
|
|
5731
5731
|
break e;
|
|
5732
5732
|
} else
|
|
5733
5733
|
for (_a = qu(i.stateNode.containerInfo.firstChild), va = i, po = !0, cl = null, o = m9(i, null, u, o), i.child = o; o; )
|
|
@@ -5795,7 +5795,7 @@ o8 = function(e, i, o) {
|
|
|
5795
5795
|
b = _.type === i.type ? null : _.child;
|
|
5796
5796
|
else if (_.tag === 18) {
|
|
5797
5797
|
if (b = _.return, b === null)
|
|
5798
|
-
throw Error(
|
|
5798
|
+
throw Error(Ki(341));
|
|
5799
5799
|
b.lanes |= o, a = b.alternate, a !== null && (a.lanes |= o), p4(b, o, i), b = _.sibling;
|
|
5800
5800
|
} else
|
|
5801
5801
|
b = _.child;
|
|
@@ -5831,7 +5831,7 @@ o8 = function(e, i, o) {
|
|
|
5831
5831
|
case 22:
|
|
5832
5832
|
return F9(e, i, o);
|
|
5833
5833
|
}
|
|
5834
|
-
throw Error(
|
|
5834
|
+
throw Error(Ki(156, i.tag));
|
|
5835
5835
|
};
|
|
5836
5836
|
function s8(e, i) {
|
|
5837
5837
|
return Lz(e, i);
|
|
@@ -5901,7 +5901,7 @@ function Sv(e, i, o, u, d, _) {
|
|
|
5901
5901
|
b = 16, u = null;
|
|
5902
5902
|
break e;
|
|
5903
5903
|
}
|
|
5904
|
-
throw Error(
|
|
5904
|
+
throw Error(Ki(130, e == null ? e : typeof e, ""));
|
|
5905
5905
|
}
|
|
5906
5906
|
return i = Ba(b, o, i, d), i.elementType = e, i.type = u, i.lanes = _, i;
|
|
5907
5907
|
}
|
|
@@ -5933,7 +5933,7 @@ function a8(e) {
|
|
|
5933
5933
|
e = e._reactInternals;
|
|
5934
5934
|
e: {
|
|
5935
5935
|
if (Ad(e) !== e || e.tag !== 1)
|
|
5936
|
-
throw Error(
|
|
5936
|
+
throw Error(Ki(170));
|
|
5937
5937
|
var i = e;
|
|
5938
5938
|
do {
|
|
5939
5939
|
switch (i.tag) {
|
|
@@ -5948,7 +5948,7 @@ function a8(e) {
|
|
|
5948
5948
|
}
|
|
5949
5949
|
i = i.return;
|
|
5950
5950
|
} while (i !== null);
|
|
5951
|
-
throw Error(
|
|
5951
|
+
throw Error(Ki(171));
|
|
5952
5952
|
}
|
|
5953
5953
|
if (e.tag === 1) {
|
|
5954
5954
|
var o = e.type;
|
|
@@ -5995,7 +5995,7 @@ function cT(e) {
|
|
|
5995
5995
|
$2.prototype.render = cT.prototype.render = function(e) {
|
|
5996
5996
|
var i = this._internalRoot;
|
|
5997
5997
|
if (i === null)
|
|
5998
|
-
throw Error(
|
|
5998
|
+
throw Error(Ki(409));
|
|
5999
5999
|
H2(e, i, null, null);
|
|
6000
6000
|
};
|
|
6001
6001
|
$2.prototype.unmount = cT.prototype.unmount = function() {
|
|
@@ -6131,7 +6131,7 @@ X3 = function(e, i, o) {
|
|
|
6131
6131
|
if (u !== e && u.form === e.form) {
|
|
6132
6132
|
var d = P2(u);
|
|
6133
6133
|
if (!d)
|
|
6134
|
-
throw Error(
|
|
6134
|
+
throw Error(Ki(90));
|
|
6135
6135
|
yz(u), $3(u, d);
|
|
6136
6136
|
}
|
|
6137
6137
|
}
|
|
@@ -6161,12 +6161,12 @@ wa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = _V;
|
|
|
6161
6161
|
wa.createPortal = function(e, i) {
|
|
6162
6162
|
var o = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
6163
6163
|
if (!uT(i))
|
|
6164
|
-
throw Error(
|
|
6164
|
+
throw Error(Ki(200));
|
|
6165
6165
|
return gV(e, i, null, o);
|
|
6166
6166
|
};
|
|
6167
6167
|
wa.createRoot = function(e, i) {
|
|
6168
6168
|
if (!uT(e))
|
|
6169
|
-
throw Error(
|
|
6169
|
+
throw Error(Ki(299));
|
|
6170
6170
|
var o = !1, u = "", d = c8;
|
|
6171
6171
|
return i != null && (i.unstable_strictMode === !0 && (o = !0), i.identifierPrefix !== void 0 && (u = i.identifierPrefix), i.onRecoverableError !== void 0 && (d = i.onRecoverableError)), i = aT(e, 1, !1, null, null, o, !1, u, d), e[Fc] = i.current, a1(e.nodeType === 8 ? e.parentNode : e), new cT(i);
|
|
6172
6172
|
};
|
|
@@ -6177,7 +6177,7 @@ wa.findDOMNode = function(e) {
|
|
|
6177
6177
|
return e;
|
|
6178
6178
|
var i = e._reactInternals;
|
|
6179
6179
|
if (i === void 0)
|
|
6180
|
-
throw typeof e.render == "function" ? Error(
|
|
6180
|
+
throw typeof e.render == "function" ? Error(Ki(188)) : (e = Object.keys(e).join(","), Error(Ki(268, e)));
|
|
6181
6181
|
return e = Ez(i), e = e === null ? null : e.stateNode, e;
|
|
6182
6182
|
};
|
|
6183
6183
|
wa.flushSync = function(e) {
|
|
@@ -6185,12 +6185,12 @@ wa.flushSync = function(e) {
|
|
|
6185
6185
|
};
|
|
6186
6186
|
wa.hydrate = function(e, i, o) {
|
|
6187
6187
|
if (!Y2(i))
|
|
6188
|
-
throw Error(
|
|
6188
|
+
throw Error(Ki(200));
|
|
6189
6189
|
return G2(null, e, i, !0, o);
|
|
6190
6190
|
};
|
|
6191
6191
|
wa.hydrateRoot = function(e, i, o) {
|
|
6192
6192
|
if (!uT(e))
|
|
6193
|
-
throw Error(
|
|
6193
|
+
throw Error(Ki(405));
|
|
6194
6194
|
var u = o != null && o.hydratedSources || null, d = !1, _ = "", b = c8;
|
|
6195
6195
|
if (o != null && (o.unstable_strictMode === !0 && (d = !0), o.identifierPrefix !== void 0 && (_ = o.identifierPrefix), o.onRecoverableError !== void 0 && (b = o.onRecoverableError)), i = l8(i, null, e, 1, o ?? null, d, !1, _, b), e[Fc] = i.current, a1(e), u)
|
|
6196
6196
|
for (e = 0; e < u.length; e++)
|
|
@@ -6202,12 +6202,12 @@ wa.hydrateRoot = function(e, i, o) {
|
|
|
6202
6202
|
};
|
|
6203
6203
|
wa.render = function(e, i, o) {
|
|
6204
6204
|
if (!Y2(i))
|
|
6205
|
-
throw Error(
|
|
6205
|
+
throw Error(Ki(200));
|
|
6206
6206
|
return G2(null, e, i, !1, o);
|
|
6207
6207
|
};
|
|
6208
6208
|
wa.unmountComponentAtNode = function(e) {
|
|
6209
6209
|
if (!Y2(e))
|
|
6210
|
-
throw Error(
|
|
6210
|
+
throw Error(Ki(40));
|
|
6211
6211
|
return e._reactRootContainer ? (Md(function() {
|
|
6212
6212
|
G2(null, null, e, !1, function() {
|
|
6213
6213
|
e._reactRootContainer = null, e[Fc] = null;
|
|
@@ -6217,9 +6217,9 @@ wa.unmountComponentAtNode = function(e) {
|
|
|
6217
6217
|
wa.unstable_batchedUpdates = nT;
|
|
6218
6218
|
wa.unstable_renderSubtreeIntoContainer = function(e, i, o, u) {
|
|
6219
6219
|
if (!Y2(o))
|
|
6220
|
-
throw Error(
|
|
6220
|
+
throw Error(Ki(200));
|
|
6221
6221
|
if (e == null || e._reactInternals === void 0)
|
|
6222
|
-
throw Error(
|
|
6222
|
+
throw Error(Ki(38));
|
|
6223
6223
|
return G2(e, i, o, !1, u);
|
|
6224
6224
|
};
|
|
6225
6225
|
wa.version = "18.2.0-next-9e3b772b8-20220608";
|
|
@@ -6732,11 +6732,11 @@ var aQ = sQ(function(e) {
|
|
|
6732
6732
|
Xt[Ai--] = Xt[Ai];
|
|
6733
6733
|
return Xt[oi] = Yt, Xt;
|
|
6734
6734
|
}
|
|
6735
|
-
for (var Hi = 0, hn = 0,
|
|
6736
|
-
|
|
6737
|
-
for (
|
|
6738
|
-
|
|
6739
|
-
return
|
|
6735
|
+
for (var Hi = 0, hn = 0, en = new Array(mi + 1); Hi < oi; )
|
|
6736
|
+
en[hn++] = Xt[Hi++];
|
|
6737
|
+
for (en[oi] = Yt; Hi < mi; )
|
|
6738
|
+
en[++hn] = Xt[Hi++];
|
|
6739
|
+
return en;
|
|
6740
6740
|
}, te = 1, ee = 2, re = 3, Me = 4, we = {
|
|
6741
6741
|
__hamt_isEmpty: !0
|
|
6742
6742
|
}, We = function(gt) {
|
|
@@ -6777,11 +6777,11 @@ var aQ = sQ(function(e) {
|
|
|
6777
6777
|
}, jt = function(gt) {
|
|
6778
6778
|
return gt === we || gt.type === te || gt.type === ee;
|
|
6779
6779
|
}, St = function(gt, oi, Yt, Xt, mi) {
|
|
6780
|
-
for (var Ai = [], Hi = Xt, hn = 0,
|
|
6781
|
-
Hi & 1 && (Ai[
|
|
6780
|
+
for (var Ai = [], Hi = Xt, hn = 0, en = 0; Hi; ++en)
|
|
6781
|
+
Hi & 1 && (Ai[en] = mi[hn++]), Hi >>>= 1;
|
|
6782
6782
|
return Ai[oi] = Yt, ut(gt, hn + 1, Ai);
|
|
6783
6783
|
}, Jt = function(gt, oi, Yt, Xt) {
|
|
6784
|
-
for (var mi = new Array(oi - 1), Ai = 0, Hi = 0, hn = 0,
|
|
6784
|
+
for (var mi = new Array(oi - 1), Ai = 0, Hi = 0, hn = 0, en = Xt.length; hn < en; ++hn)
|
|
6785
6785
|
if (hn !== Yt) {
|
|
6786
6786
|
var wn = Xt[hn];
|
|
6787
6787
|
wn && !We(wn) && (mi[Ai++] = wn, Hi |= 1 << hn);
|
|
@@ -6793,7 +6793,7 @@ var aQ = sQ(function(e) {
|
|
|
6793
6793
|
var Hi = G(oi, Yt), hn = G(oi, mi);
|
|
6794
6794
|
return xt(gt, le(Hi) | le(hn), Hi === hn ? [_t(gt, oi + u, Yt, Xt, mi, Ai)] : Hi < hn ? [Xt, Ai] : [Ai, Xt]);
|
|
6795
6795
|
}, bt = function(gt, oi, Yt, Xt, mi, Ai, Hi, hn) {
|
|
6796
|
-
for (var
|
|
6796
|
+
for (var en = mi.length, wn = 0; wn < en; ++wn) {
|
|
6797
6797
|
var Dt = mi[wn];
|
|
6798
6798
|
if (Yt(Hi, Dt.key)) {
|
|
6799
6799
|
var Vn = Dt.value, gr = Ai(Vn);
|
|
@@ -6801,7 +6801,7 @@ var aQ = sQ(function(e) {
|
|
|
6801
6801
|
}
|
|
6802
6802
|
}
|
|
6803
6803
|
var xr = Ai();
|
|
6804
|
-
return xr === E ? mi : (++hn.value, ve(gt,
|
|
6804
|
+
return xr === E ? mi : (++hn.value, ve(gt, en, ot(oi, Xt, Hi, xr), mi));
|
|
6805
6805
|
}, qt = function(gt, oi) {
|
|
6806
6806
|
return gt === oi.edit;
|
|
6807
6807
|
}, Ot = function(gt, oi, Yt, Xt, mi, Ai, Hi) {
|
|
@@ -6809,46 +6809,46 @@ var aQ = sQ(function(e) {
|
|
|
6809
6809
|
var hn = Xt(this.value);
|
|
6810
6810
|
return hn === this.value ? this : hn === E ? (--Hi.value, we) : qt(gt, this) ? (this.value = hn, this) : ot(gt, mi, Ai, hn);
|
|
6811
6811
|
}
|
|
6812
|
-
var
|
|
6813
|
-
return
|
|
6812
|
+
var en = Xt();
|
|
6813
|
+
return en === E ? this : (++Hi.value, Tt(gt, Yt, this.hash, this, mi, ot(gt, mi, Ai, en)));
|
|
6814
6814
|
}, Vt = function(gt, oi, Yt, Xt, mi, Ai, Hi) {
|
|
6815
6815
|
if (mi === this.hash) {
|
|
6816
|
-
var hn = qt(gt, this),
|
|
6817
|
-
return
|
|
6816
|
+
var hn = qt(gt, this), en = bt(hn, gt, oi, this.hash, this.children, Xt, Ai, Hi);
|
|
6817
|
+
return en === this.children ? this : en.length > 1 ? $e(gt, this.hash, en) : en[0];
|
|
6818
6818
|
}
|
|
6819
6819
|
var wn = Xt();
|
|
6820
6820
|
return wn === E ? this : (++Hi.value, Tt(gt, Yt, this.hash, this, mi, ot(gt, mi, Ai, wn)));
|
|
6821
6821
|
}, W = function(gt, oi, Yt, Xt, mi, Ai, Hi) {
|
|
6822
|
-
var hn = this.mask,
|
|
6822
|
+
var hn = this.mask, en = this.children, wn = G(Yt, mi), Dt = le(wn), Vn = fe(hn, Dt), gr = hn & Dt, xr = gr ? en[Vn] : we, Ge = xr._modify(gt, oi, Yt + u, Xt, mi, Ai, Hi);
|
|
6823
6823
|
if (xr === Ge)
|
|
6824
6824
|
return this;
|
|
6825
6825
|
var q = qt(gt, this), ae = hn, de = void 0;
|
|
6826
6826
|
if (gr && We(Ge)) {
|
|
6827
6827
|
if (ae &= ~Dt, !ae)
|
|
6828
6828
|
return we;
|
|
6829
|
-
if (
|
|
6830
|
-
return
|
|
6831
|
-
de = Ze(q, Vn,
|
|
6829
|
+
if (en.length <= 2 && jt(en[Vn ^ 1]))
|
|
6830
|
+
return en[Vn ^ 1];
|
|
6831
|
+
de = Ze(q, Vn, en);
|
|
6832
6832
|
} else if (!gr && !We(Ge)) {
|
|
6833
|
-
if (
|
|
6834
|
-
return St(gt, wn, Ge, hn,
|
|
6835
|
-
ae |= Dt, de = me(q, Vn, Ge,
|
|
6833
|
+
if (en.length >= b)
|
|
6834
|
+
return St(gt, wn, Ge, hn, en);
|
|
6835
|
+
ae |= Dt, de = me(q, Vn, Ge, en);
|
|
6836
6836
|
} else
|
|
6837
|
-
de = ve(q, Vn, Ge,
|
|
6837
|
+
de = ve(q, Vn, Ge, en);
|
|
6838
6838
|
return q ? (this.mask = ae, this.children = de, this) : xt(gt, ae, de);
|
|
6839
6839
|
}, ne = function(gt, oi, Yt, Xt, mi, Ai, Hi) {
|
|
6840
|
-
var hn = this.size,
|
|
6840
|
+
var hn = this.size, en = this.children, wn = G(Yt, mi), Dt = en[wn], Vn = (Dt || we)._modify(gt, oi, Yt + u, Xt, mi, Ai, Hi);
|
|
6841
6841
|
if (Dt === Vn)
|
|
6842
6842
|
return this;
|
|
6843
6843
|
var gr = qt(gt, this), xr = void 0;
|
|
6844
6844
|
if (We(Dt) && !We(Vn))
|
|
6845
|
-
++hn, xr = ve(gr, wn, Vn,
|
|
6845
|
+
++hn, xr = ve(gr, wn, Vn, en);
|
|
6846
6846
|
else if (!We(Dt) && We(Vn)) {
|
|
6847
6847
|
if (--hn, hn <= a)
|
|
6848
|
-
return Jt(gt, hn, wn,
|
|
6849
|
-
xr = ve(gr, wn, we,
|
|
6848
|
+
return Jt(gt, hn, wn, en);
|
|
6849
|
+
xr = ve(gr, wn, we, en);
|
|
6850
6850
|
} else
|
|
6851
|
-
xr = ve(gr, wn, Vn,
|
|
6851
|
+
xr = ve(gr, wn, Vn, en);
|
|
6852
6852
|
return gr ? (this.size = hn, this.children = xr, this) : ut(gt, hn, xr);
|
|
6853
6853
|
};
|
|
6854
6854
|
we._modify = function(_t, gt, oi, Yt, Xt, mi, Ai) {
|
|
@@ -6868,7 +6868,7 @@ var aQ = sQ(function(e) {
|
|
|
6868
6868
|
return Ai(oi, Xt.key) ? Xt.value : _t;
|
|
6869
6869
|
case ee: {
|
|
6870
6870
|
if (gt === Xt.hash)
|
|
6871
|
-
for (var Hi = Xt.children, hn = 0,
|
|
6871
|
+
for (var Hi = Xt.children, hn = 0, en = Hi.length; hn < en; ++hn) {
|
|
6872
6872
|
var wn = Hi[hn];
|
|
6873
6873
|
if (Ai(oi, wn.key))
|
|
6874
6874
|
return wn.value;
|
|
@@ -7048,21 +7048,21 @@ var aQ = sQ(function(e) {
|
|
|
7048
7048
|
};
|
|
7049
7049
|
var ci = function(gt) {
|
|
7050
7050
|
return gt.key;
|
|
7051
|
-
},
|
|
7051
|
+
}, bi = o.keys = function(_t) {
|
|
7052
7052
|
return zi(_t, ci);
|
|
7053
7053
|
};
|
|
7054
7054
|
T.prototype.keys = function() {
|
|
7055
|
-
return
|
|
7055
|
+
return bi(this);
|
|
7056
7056
|
};
|
|
7057
7057
|
var Ei = function(gt) {
|
|
7058
7058
|
return gt.value;
|
|
7059
|
-
},
|
|
7059
|
+
}, Wi = o.values = T.prototype.values = function(_t) {
|
|
7060
7060
|
return zi(_t, Ei);
|
|
7061
7061
|
};
|
|
7062
7062
|
T.prototype.values = function() {
|
|
7063
|
-
return
|
|
7063
|
+
return Wi(this);
|
|
7064
7064
|
};
|
|
7065
|
-
var
|
|
7065
|
+
var sn = o.fold = function(_t, gt, oi) {
|
|
7066
7066
|
var Yt = oi._root;
|
|
7067
7067
|
if (Yt.type === te)
|
|
7068
7068
|
return _t(gt, Yt.value, Yt.key);
|
|
@@ -7074,15 +7074,15 @@ var aQ = sQ(function(e) {
|
|
|
7074
7074
|
return gt;
|
|
7075
7075
|
};
|
|
7076
7076
|
T.prototype.fold = function(_t, gt) {
|
|
7077
|
-
return
|
|
7077
|
+
return sn(_t, gt, this);
|
|
7078
7078
|
};
|
|
7079
|
-
var
|
|
7080
|
-
return
|
|
7079
|
+
var ln = o.forEach = function(_t, gt) {
|
|
7080
|
+
return sn(function(oi, Yt, Xt) {
|
|
7081
7081
|
return _t(Yt, Xt, gt);
|
|
7082
7082
|
}, null, gt);
|
|
7083
7083
|
};
|
|
7084
7084
|
T.prototype.forEach = function(_t) {
|
|
7085
|
-
return
|
|
7085
|
+
return ln(_t, this);
|
|
7086
7086
|
};
|
|
7087
7087
|
var On = o.count = function(_t) {
|
|
7088
7088
|
return _t._size;
|
|
@@ -10487,7 +10487,7 @@ var _g = {
|
|
|
10487
10487
|
// Memory Management
|
|
10488
10488
|
useRetain: wT,
|
|
10489
10489
|
retentionZone: HZ
|
|
10490
|
-
}, uW = _g.RecoilRoot, kn = _g.atom, pw = _g.selector, Li = _g.useRecoilValue,
|
|
10490
|
+
}, uW = _g.RecoilRoot, kn = _g.atom, pw = _g.selector, Li = _g.useRecoilValue, an = _g.useRecoilState, To = _g.useResetRecoilState;
|
|
10491
10491
|
const hW = (e, i) => {
|
|
10492
10492
|
const o = e[i];
|
|
10493
10493
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((u, d) => {
|
|
@@ -15224,7 +15224,7 @@ function VK(e, i) {
|
|
|
15224
15224
|
}), o;
|
|
15225
15225
|
}
|
|
15226
15226
|
const QK = () => {
|
|
15227
|
-
const [e, i] = be.useState(!1), [o, u] = be.useState(!1), d = gl(), _ = ak(), b = Li(kT), a = Li(P1), E = Li(jT), j = Li(Mw), V = Li(Ma), ie = Li(bw), G = Li(ok), le = Li(R1), fe = Li(Gq), ve = Li(PT), [Ze, me] = be.useState(!1), [te, ee] =
|
|
15227
|
+
const [e, i] = be.useState(!1), [o, u] = be.useState(!1), d = gl(), _ = ak(), b = Li(kT), a = Li(P1), E = Li(jT), j = Li(Mw), V = Li(Ma), ie = Li(bw), G = Li(ok), le = Li(R1), fe = Li(Gq), ve = Li(PT), [Ze, me] = be.useState(!1), [te, ee] = an(hh), re = an(Iw), [Me] = an(ck), [we, We] = be.useState({ id: null, originalRule: null });
|
|
15228
15228
|
be.useEffect(() => {
|
|
15229
15229
|
_ && ot();
|
|
15230
15230
|
}, [_]), be.useEffect(() => {
|
|
@@ -15622,7 +15622,7 @@ Dk.propTypes = {
|
|
|
15622
15622
|
};
|
|
15623
15623
|
let M3;
|
|
15624
15624
|
function Dk({ onLocationClick: e, onMapPositionKnown: i, useMapProviderModule: o, onMapPositionInvestigating: u, onViewModeSwitchKnown: d, resetCount: _, mapOptions: b, gmMapId: a, isWayfindingOrDirections: E, currentLanguage: j, setLanguage: V, devicePosition: ie }) {
|
|
15625
|
-
const G = Li(zT), le = Li(OT), fe = Li(vw), [ve, Ze] =
|
|
15625
|
+
const G = Li(zT), le = Li(OT), fe = Li(vw), [ve, Ze] = an(_w), [me, te] = an(Ma), [, ee] = an(yw), [, re] = an(LT), Me = Li(xw), we = Li(ww), We = Li(ik), ot = Li(kT), $e = Li(bw), [, xt] = an(nk), ut = Li(rk), [, jt] = an(j1), St = Li(bk), Jt = Li(xg), [Tt, bt] = be.useState(!1), [qt, Ot] = be.useState(!1);
|
|
15626
15626
|
$q(G);
|
|
15627
15627
|
const [Vt, W] = QK();
|
|
15628
15628
|
be.useEffect(() => {
|
|
@@ -16024,7 +16024,7 @@ Lk.propTypes = {
|
|
|
16024
16024
|
active: dt.bool
|
|
16025
16025
|
};
|
|
16026
16026
|
function Lk({ onOpen: e, onClose: i, active: o }) {
|
|
16027
|
-
const { t: u } = gs(), d = be.useRef(null), _ = Li(R1), [, b] =
|
|
16027
|
+
const { t: u } = gs(), d = be.useRef(null), _ = Li(R1), [, b] = an(PT), [a, E] = an(hh), [, j] = an(Dw), V = document.querySelector(".venue-selector-portal"), ie = (fe) => {
|
|
16028
16028
|
b(!0), E(fe.name), G();
|
|
16029
16029
|
}, G = () => {
|
|
16030
16030
|
o ? i() : e();
|
|
@@ -16337,7 +16337,7 @@ const F1 = kn({
|
|
|
16337
16337
|
key: "shuttleBusOn",
|
|
16338
16338
|
default: !1
|
|
16339
16339
|
}), jk = (e, i, o, u, d) => {
|
|
16340
|
-
const [_, b] = be.useState(), [a, E] = be.useState(), [j, V] =
|
|
16340
|
+
const [_, b] = be.useState(), [a, E] = be.useState(), [j, V] = an(Sw), [, ie] = an(F1), [G, le] = be.useState(), fe = Li(kk);
|
|
16341
16341
|
return be.useEffect(() => {
|
|
16342
16342
|
le(!1);
|
|
16343
16343
|
let ve = !0;
|
|
@@ -16637,7 +16637,7 @@ Qk.propTypes = {
|
|
|
16637
16637
|
buttonClassName: dt.string
|
|
16638
16638
|
};
|
|
16639
16639
|
function Qk({ location: e, buttonClassName: i }) {
|
|
16640
|
-
const { t: o } = gs(), [u, d] = be.useState(!1), _ = Li(Fk), [b, a] = be.useState(), E = Li(Vk), [j, V] = be.useState(!1), [ie, G] = be.useState(!1), le = Li(tc), [, fe] =
|
|
16640
|
+
const { t: o } = gs(), [u, d] = be.useState(!1), _ = Li(Fk), [b, a] = be.useState(), E = Li(Vk), [j, V] = be.useState(!1), [ie, G] = be.useState(!1), le = Li(tc), [, fe] = an(Ew), ve = gl();
|
|
16641
16641
|
be.useEffect(() => {
|
|
16642
16642
|
_ && e && a(_ + "&locationId=" + e.id);
|
|
16643
16643
|
}, [_, e]), be.useEffect(() => {
|
|
@@ -16897,7 +16897,7 @@ const bX = () => {
|
|
|
16897
16897
|
key: "searchInput",
|
|
16898
16898
|
default: void 0
|
|
16899
16899
|
}), qx = be.forwardRef(function(i, o) {
|
|
16900
|
-
const { placeholder: u, mapsindoors: d, results: _, clicked: b, cleared: a, changed: E, category: j, google: V, mapbox: ie, disabled: G = !1 } = i, le = be.useRef(), fe = Li(yw), ve = Li(zd), [, Ze] =
|
|
16900
|
+
const { placeholder: u, mapsindoors: d, results: _, clicked: b, cleared: a, changed: E, category: j, google: V, mapbox: ie, disabled: G = !1 } = i, le = be.useRef(), fe = Li(yw), ve = Li(zd), [, Ze] = an(qT), me = sessionStorage.getItem("mapboxPlacesSessionToken"), te = {
|
|
16901
16901
|
longitude: fe == null ? void 0 : fe.coords.longitude,
|
|
16902
16902
|
latitude: fe == null ? void 0 : fe.coords.latitude
|
|
16903
16903
|
}, ee = bX(), re = Li(hh), Me = Li(Cw);
|
|
@@ -17021,7 +17021,7 @@ KT.propTypes = {
|
|
|
17021
17021
|
onAccessibilityChanged: dt.func
|
|
17022
17022
|
};
|
|
17023
17023
|
function KT({ onAccessibilityChanged: e }) {
|
|
17024
|
-
const i = Li(ic), [o, u] =
|
|
17024
|
+
const i = Li(ic), [o, u] = an(V1);
|
|
17025
17025
|
function d(_) {
|
|
17026
17026
|
u(_.target.checked), e && e();
|
|
17027
17027
|
}
|
|
@@ -17041,7 +17041,7 @@ function KT({ onAccessibilityChanged: e }) {
|
|
|
17041
17041
|
}
|
|
17042
17042
|
function AX() {
|
|
17043
17043
|
var _;
|
|
17044
|
-
const e = Li(ic), i = Li(xg), [o, u] =
|
|
17044
|
+
const e = Li(ic), i = Li(xg), [o, u] = an(kk);
|
|
17045
17045
|
function d(b) {
|
|
17046
17046
|
u(b.target.checked);
|
|
17047
17047
|
}
|
|
@@ -17076,7 +17076,7 @@ XT.propTypes = {
|
|
|
17076
17076
|
};
|
|
17077
17077
|
function XT({ onStartDirections: e, onBack: i, directionsToLocation: o, directionsFromLocation: u, onSetSize: d, isActive: _ }) {
|
|
17078
17078
|
var zi, Ii;
|
|
17079
|
-
const { t: b } = gs(), a = be.useRef(), E = be.useRef(), j = be.useRef(), V = be.useRef(), ie = Li(LT), G = Li(yw), le = Li(Wc), fe = Li(_w), ve = Li(ic), [Ze, me] =
|
|
17079
|
+
const { t: b } = gs(), a = be.useRef(), E = be.useRef(), j = be.useRef(), V = be.useRef(), ie = Li(LT), G = Li(yw), le = Li(Wc), fe = Li(_w), ve = Li(ic), [Ze, me] = an(Yk), [te, ee] = be.useState(), [, re] = an(Sw), [Me, we] = be.useState(!0), [We, ot] = be.useState(!1), [$e, xt] = be.useState([]), [ut, jt] = be.useState(), [St, Jt] = be.useState(), Tt = Li(V1), bt = wg(), [qt, Ot] = be.useState(!1), [Vt, W] = an(U1), [ne, T] = be.useState(!1), k = Li(vw), F = Li(SX), [Q, Z, se, he] = jk(St, ut, ie, Vt, Tt), ce = Li(ZT), xe = Li(xg);
|
|
17080
17080
|
function He(Ht) {
|
|
17081
17081
|
return fe === ds.Google && Ht.properties.type === "google_places" ? MX(Ht) : fe === ds.Mapbox && Ht.properties.type === "mapbox_places" ? DX(Ht, k) : Promise.resolve(Ht);
|
|
17082
17082
|
}
|
|
@@ -17092,8 +17092,8 @@ function XT({ onStartDirections: e, onBack: i, directionsToLocation: o, directio
|
|
|
17092
17092
|
we(!1), Ot(!1), xt([]);
|
|
17093
17093
|
else {
|
|
17094
17094
|
we(!0), xt(Ht);
|
|
17095
|
-
const
|
|
17096
|
-
Ot(
|
|
17095
|
+
const bi = Ht.filter((Ei) => Ei.properties.type === "google_places").length > 0;
|
|
17096
|
+
Ot(bi), Xe(tr.MAX);
|
|
17097
17097
|
}
|
|
17098
17098
|
}
|
|
17099
17099
|
function Xe(Ht) {
|
|
@@ -17147,8 +17147,8 @@ function XT({ onStartDirections: e, onBack: i, directionsToLocation: o, directio
|
|
|
17147
17147
|
Xe(tr.FIT);
|
|
17148
17148
|
let Ht = !1;
|
|
17149
17149
|
if ((u == null ? void 0 : u.id) === "USER_POSITION" && (o == null ? void 0 : o.id) === "USER_POSITION" && (o = void 0), o != null && o.properties && !le && (j.current.setDisplayText(o.properties.name), jt(o)), u != null && u.properties ? St || (V.current.setDisplayText(u.properties.name), Jt(u), Ht = !0) : ee(Eo.FROM), _ && !((ci = V.current) != null && ci.getValue()) && G && !St && (o == null ? void 0 : o.id) !== "USER_POSITION" && !Ht) {
|
|
17150
|
-
const
|
|
17151
|
-
V.current.setDisplayText(
|
|
17150
|
+
const bi = K4(G);
|
|
17151
|
+
V.current.setDisplayText(bi.properties.name), Jt(bi), re(!0), we(!0), xt([]);
|
|
17152
17152
|
}
|
|
17153
17153
|
}, [_, o, u]), be.useEffect(() => {
|
|
17154
17154
|
fe === ds.Mapbox && (Ot(!1), xt($e.filter((Ht) => Ht.properties.type !== "google_places")));
|
|
@@ -17289,7 +17289,7 @@ const EX = (e) => /* @__PURE__ */ be.createElement("svg", { width: 24, height: 2
|
|
|
17289
17289
|
default: !1
|
|
17290
17290
|
}), Gk = be.forwardRef(function(i, o) {
|
|
17291
17291
|
var ve;
|
|
17292
|
-
const { totalSteps: u, activeStep: d, previous: _, originLocation: b, directions: a } = i, E = be.useRef(), { t: j } = gs(), [V, ie] =
|
|
17292
|
+
const { totalSteps: u, activeStep: d, previous: _, originLocation: b, directions: a } = i, E = be.useRef(), { t: j } = gs(), [V, ie] = an(zw), [, G] = an(LX), le = Ld();
|
|
17293
17293
|
be.useImperativeHandle(o, () => ({
|
|
17294
17294
|
openSubsteps() {
|
|
17295
17295
|
E.current.openSubsteps();
|
|
@@ -17372,7 +17372,7 @@ Wk.propTypes = {
|
|
|
17372
17372
|
isOpen: dt.bool
|
|
17373
17373
|
};
|
|
17374
17374
|
function Wk({ steps: e, onNextStep: i, onPreviousStep: o, originLocation: u, isOpen: d }) {
|
|
17375
|
-
const { t: _ } = gs(), b = wg(), a = be.useRef(), [E, j] = be.useState(), [V, ie] =
|
|
17375
|
+
const { t: _ } = gs(), b = wg(), a = be.useRef(), [E, j] = be.useState(), [V, ie] = an(Lw), [G, le] = be.useState(), fe = Li(F1), ve = Li(zw), [, Ze] = an(Zk), me = Ld();
|
|
17376
17376
|
be.useEffect(() => {
|
|
17377
17377
|
le(e);
|
|
17378
17378
|
}, [e]), be.useEffect(() => {
|
|
@@ -17434,7 +17434,7 @@ JT.propTypes = {
|
|
|
17434
17434
|
snapPointSwipedByUser: dt.string
|
|
17435
17435
|
};
|
|
17436
17436
|
function JT({ isOpen: e, onBack: i, onSetSize: o, onRouteFinished: u, snapPointSwipedByUser: d }) {
|
|
17437
|
-
const { t: _ } = gs(), b = be.useRef(), [a, E] = be.useState(null), j = be.useRef(null), [V, ie] = be.useState(), G = Li(Ma), le = Li(U1), fe = Li(F1), [, ve] =
|
|
17437
|
+
const { t: _ } = gs(), b = be.useRef(), [a, E] = be.useState(null), j = be.useRef(null), [V, ie] = be.useState(), G = Li(Ma), le = Li(U1), fe = Li(F1), [, ve] = an(Lw), [Ze, me] = an(zw), te = Li(tc), ee = gl(), [, re] = an(Ew), Me = Li(Zk), we = Li(ic), We = Ld(), ot = Li(Aw), $e = Li(Fk), xt = Li(Wc), ut = Li(_w);
|
|
17438
17438
|
be.useEffect(() => () => {
|
|
17439
17439
|
E(null);
|
|
17440
17440
|
}, []), be.useEffect(() => {
|
|
@@ -17604,7 +17604,7 @@ X4.propTypes = {
|
|
|
17604
17604
|
categoryOrientation: dt.oneOf(["horizontal", "vertical"])
|
|
17605
17605
|
};
|
|
17606
17606
|
function X4({ onSetSize: e, getFilteredLocations: i, searchFieldRef: o, isOpen: u, topLevelCategory: d, handleBack: _, selectedCategoriesArray: b, categoryOrientation: a }) {
|
|
17607
|
-
const E = Li(P1), j = gl(), [V, ie] =
|
|
17607
|
+
const E = Li(P1), j = gl(), [V, ie] = an(eD), [, G] = an(Ow), [, le] = an(xw), fe = wg(), [ve, Ze] = be.useState(), me = Li(OX), te = Li(Jk), ee = Li(Ma), re = Pk(ee, u), [Me, we] = be.useState([]), [We, ot] = be.useState([]), { t: $e } = gs(), xt = Ld(), ut = be.useRef(null), [jt, St] = be.useState(!1), [Jt, Tt] = be.useState(!1), bt = (k) => {
|
|
17608
17608
|
Vt && ut.current && ut.current.scrollBy({
|
|
17609
17609
|
left: k === "left" ? -200 : 200,
|
|
17610
17610
|
behavior: "smooth"
|
|
@@ -17745,53 +17745,52 @@ iD.propTypes = {
|
|
|
17745
17745
|
isOpen: dt.bool
|
|
17746
17746
|
};
|
|
17747
17747
|
function iD({ onSetSize: e, isOpen: i }) {
|
|
17748
|
-
const o = Li(xg), { t: u } = gs(), d = be.useRef(), _ = be.useRef(), b = be.useRef(), a = be.useRef(), E = be.useRef(), j = 100, [V, ie] = be.useState(!0), [G, le] =
|
|
17748
|
+
const o = Li(xg), { t: u } = gs(), d = be.useRef(), _ = be.useRef(), b = be.useRef(), a = be.useRef(), E = be.useRef(), j = 100, [V, ie] = be.useState(!0), [G, le] = an(Ow), fe = Li(P1), ve = Li(Kk), [Ze, me] = be.useState(!1), [te, ee] = an(eD), re = wg(), [Me, we] = be.useState(), We = Li(Ma), [, ot] = an(xw), [, $e] = an(Wc), [, xt] = an(Dw), [ut, jt] = an(hh), St = Li(zd), Jt = gl(), Tt = Li(tc), [bt, qt] = be.useState(!1), Ot = Li(qT), Vt = Ld(), [, W] = an(kw), [ne, T] = be.useState(!1), k = Li(e7), F = Li(Cw), Q = Li(R1), Z = Li(tD), [se, he] = be.useState(!1), ce = be.useRef([]), [xe, He] = be.useState([]), [et, Ue] = be.useState(!1);
|
|
17749
17749
|
function Xe() {
|
|
17750
|
-
var ci,
|
|
17751
|
-
ce.current.length === 1 ? (ee(null), le([]), ot([]), rt(tr.FIT), he(!0), ((
|
|
17750
|
+
var ci, bi, Ei;
|
|
17751
|
+
ce.current.length === 1 ? (ee(null), le([]), ot([]), rt(tr.FIT), he(!0), ((bi = (ci = a.current) == null ? void 0 : ci.getValue()) == null ? void 0 : bi.trim()) ? a.current.triggerSearch() : (Ei = a.current) == null || Ei.clear(), ce.current.pop()) : (ce.current.pop(), ee(ce.current[0]));
|
|
17752
17752
|
}
|
|
17753
17753
|
function Fe(ci) {
|
|
17754
|
-
var
|
|
17754
|
+
var bi;
|
|
17755
17755
|
ce.current.includes(ci) || ce.current.push(ci), te && (ee([]), le([]), ot([])), ee(ci), window.mapsindoors.services.LocationsService.getLocations({
|
|
17756
17756
|
categories: ci,
|
|
17757
|
-
venue: F || (
|
|
17757
|
+
venue: F || (bi = Q.find((Ei) => Ei.name.toLowerCase() === ut.toLowerCase())) == null ? void 0 : bi.name
|
|
17758
17758
|
}).then((Ei) => Mt(Ei, !0));
|
|
17759
17759
|
}
|
|
17760
17760
|
function rt(ci) {
|
|
17761
17761
|
typeof e == "function" && e(ci);
|
|
17762
17762
|
}
|
|
17763
17763
|
function pt(ci) {
|
|
17764
|
-
|
|
17765
|
-
|
|
17766
|
-
|
|
17767
|
-
|
|
17768
|
-
return (((an = Ei.properties) == null ? void 0 : an.name) || "").localeCompare(((en = Ki.properties) == null ? void 0 : en.name) || "");
|
|
17764
|
+
return te ? [...ci].sort(
|
|
17765
|
+
(bi, Ei) => {
|
|
17766
|
+
var Wi, sn;
|
|
17767
|
+
return (((Wi = bi.properties) == null ? void 0 : Wi.name) || "").localeCompare(((sn = Ei.properties) == null ? void 0 : sn.name) || "");
|
|
17769
17768
|
}
|
|
17770
17769
|
) : ci;
|
|
17771
17770
|
}
|
|
17772
|
-
function Mt(ci,
|
|
17773
|
-
var
|
|
17771
|
+
function Mt(ci, bi = !1) {
|
|
17772
|
+
var Wi;
|
|
17774
17773
|
const Ei = ci.slice(0, j);
|
|
17775
|
-
rt(tr.MAX), le(Ei), ot(Ei), me(Ei.length === 0), ci &&
|
|
17776
|
-
var
|
|
17777
|
-
(
|
|
17774
|
+
rt(tr.MAX), le(Ei), ot(Ei), me(Ei.length === 0), ci && bi && Et(ci), Vt && ((Wi = d.current) == null || Wi.addEventListener("transitionend", () => {
|
|
17775
|
+
var sn;
|
|
17776
|
+
(sn = _ == null ? void 0 : _.current) == null || sn.updateScrollButtons();
|
|
17778
17777
|
}, { once: !0 }));
|
|
17779
17778
|
}
|
|
17780
17779
|
function Et(ci) {
|
|
17781
17780
|
if (!We.goTo)
|
|
17782
17781
|
return;
|
|
17783
|
-
const
|
|
17782
|
+
const bi = We.getFloor(), Ei = {
|
|
17784
17783
|
type: "FeatureCollection",
|
|
17785
|
-
features: ci.filter((
|
|
17784
|
+
features: ci.filter((Wi) => parseInt(Wi.properties.floor, 10) === parseInt(bi, 10)).filter((Wi) => Wi.properties.venueId.toLowerCase() === ut.toLowerCase()).map((Wi) => ({
|
|
17786
17785
|
type: "Feature",
|
|
17787
|
-
geometry:
|
|
17788
|
-
properties:
|
|
17786
|
+
geometry: Wi.geometry,
|
|
17787
|
+
properties: Wi.properties
|
|
17789
17788
|
}))
|
|
17790
17789
|
};
|
|
17791
|
-
Ei.features.length > 0 && Promise.all([xi(), zi()]).then(([
|
|
17790
|
+
Ei.features.length > 0 && Promise.all([xi(), zi()]).then(([Wi, sn]) => {
|
|
17792
17791
|
We.goTo(Ei, {
|
|
17793
17792
|
maxZoom: 22,
|
|
17794
|
-
padding: { bottom:
|
|
17793
|
+
padding: { bottom: Wi, left: sn, top: 0, right: 0 }
|
|
17795
17794
|
});
|
|
17796
17795
|
});
|
|
17797
17796
|
}
|
|
@@ -17810,22 +17809,22 @@ function iD({ onSetSize: e, isOpen: i }) {
|
|
|
17810
17809
|
}
|
|
17811
17810
|
function si(ci) {
|
|
17812
17811
|
$e(ci), ci.properties.venueId.toLowerCase() !== ut.toLowerCase() && (jt(ci.properties.venueId), xt(!0));
|
|
17813
|
-
const
|
|
17814
|
-
Ei !==
|
|
17812
|
+
const bi = We.getFloor(), Ei = ci.properties.floor;
|
|
17813
|
+
Ei !== bi && We.setFloor(Ei), Promise.all([xi(), zi()]).then(([Wi, sn]) => {
|
|
17815
17814
|
We.goTo(ci, {
|
|
17816
17815
|
maxZoom: 22,
|
|
17817
|
-
padding: { bottom:
|
|
17816
|
+
padding: { bottom: Wi, left: sn, top: 0, right: 0 }
|
|
17818
17817
|
});
|
|
17819
17818
|
});
|
|
17820
17819
|
}
|
|
17821
17820
|
function xi() {
|
|
17822
17821
|
return new Promise((ci) => {
|
|
17823
|
-
Jt ? Tt ? y1().then((
|
|
17822
|
+
Jt ? Tt ? y1().then((bi) => ci(bi)) : ci(0) : ci(200);
|
|
17824
17823
|
});
|
|
17825
17824
|
}
|
|
17826
17825
|
function zi() {
|
|
17827
17826
|
return new Promise((ci) => {
|
|
17828
|
-
Jt ? Tt ? ci(0) : gd().then((
|
|
17827
|
+
Jt ? Tt ? ci(0) : gd().then((bi) => ci(bi)) : ci(0);
|
|
17829
17828
|
});
|
|
17830
17829
|
}
|
|
17831
17830
|
function Ii() {
|
|
@@ -17838,15 +17837,15 @@ function iD({ onSetSize: e, isOpen: i }) {
|
|
|
17838
17837
|
return Vt && et;
|
|
17839
17838
|
}
|
|
17840
17839
|
return be.useEffect(() => {
|
|
17841
|
-
const ci = [".search__info", ".search__back-button", ".categories", ".sheet__content"],
|
|
17842
|
-
const
|
|
17843
|
-
(_t) =>
|
|
17844
|
-
),
|
|
17845
|
-
(_t) =>
|
|
17846
|
-
), On =
|
|
17847
|
-
|
|
17840
|
+
const ci = [".search__info", ".search__back-button", ".categories", ".sheet__content"], bi = [".mi-floor-selector", ".view-mode-switch", ".mi-my-position", ".view-selector__toggle-button", ".building-list", ".mapboxgl-ctrl-bottom-right", ".gmnoprint", ".language-selector-portal"], Ei = (Wi) => {
|
|
17841
|
+
const sn = ci.some(
|
|
17842
|
+
(_t) => Wi.target.closest(_t)
|
|
17843
|
+
), ln = bi.some(
|
|
17844
|
+
(_t) => Wi.target.closest(_t)
|
|
17845
|
+
), On = Wi.target.closest(".search__results");
|
|
17846
|
+
sn ? (rt(tr.MAX), b.current = requestAnimationFrame(() => {
|
|
17848
17847
|
he(!0);
|
|
17849
|
-
})) : !On && !
|
|
17848
|
+
})) : !On && !ln && (he(!1), rt(tr.MIN), ee(null), le([]), ot([]), ce.current = []);
|
|
17850
17849
|
};
|
|
17851
17850
|
return i ? b.current = requestAnimationFrame(() => {
|
|
17852
17851
|
document.addEventListener("click", Ei);
|
|
@@ -17870,8 +17869,8 @@ function iD({ onSetSize: e, isOpen: i }) {
|
|
|
17870
17869
|
}
|
|
17871
17870
|
}, [G, i]), be.useEffect(() => {
|
|
17872
17871
|
if (ve) {
|
|
17873
|
-
const ci = (
|
|
17874
|
-
|
|
17872
|
+
const ci = (bi) => {
|
|
17873
|
+
bi.target.closest("mi-keyboard") || bi.target.tagName.toUpperCase() === "MI-SEARCH" || bi.target.tagName.toUpperCase() === "INPUT" ? qt(!0) : qt(!1);
|
|
17875
17874
|
};
|
|
17876
17875
|
return window.addEventListener("click", ci, !1), () => {
|
|
17877
17876
|
window.removeEventListener("click", ci, !1);
|
|
@@ -17882,12 +17881,12 @@ function iD({ onSetSize: e, isOpen: i }) {
|
|
|
17882
17881
|
}, [te]), be.useEffect(() => {
|
|
17883
17882
|
Tt && T(k.length > 0);
|
|
17884
17883
|
}, [Tt]), be.useEffect(() => {
|
|
17885
|
-
var
|
|
17886
|
-
const ci = ((Ei = (
|
|
17884
|
+
var bi, Ei;
|
|
17885
|
+
const ci = ((Ei = (bi = fe.find(([Wi]) => Wi === te)) == null ? void 0 : bi[1]) == null ? void 0 : Ei.childKeys) || [];
|
|
17887
17886
|
He(ci);
|
|
17888
17887
|
}, [fe, te]), be.useEffect(() => {
|
|
17889
|
-
var ci,
|
|
17890
|
-
Ue(((ci = o == null ? void 0 : o.appSettings) == null ? void 0 : ci.areHorizontalCategoriesEnabled) === !0 || ((
|
|
17888
|
+
var ci, bi;
|
|
17889
|
+
Ue(((ci = o == null ? void 0 : o.appSettings) == null ? void 0 : ci.areHorizontalCategoriesEnabled) === !0 || ((bi = o == null ? void 0 : o.appSettings) == null ? void 0 : bi.areHorizontalCategoriesEnabled) === "true");
|
|
17891
17890
|
}, [o]), /* @__PURE__ */ Pe.jsxs(
|
|
17892
17891
|
"div",
|
|
17893
17892
|
{
|
|
@@ -18006,7 +18005,7 @@ t7.propTypes = {
|
|
|
18006
18005
|
onRouteFinished: dt.func.isRequired
|
|
18007
18006
|
};
|
|
18008
18007
|
function t7({ directionsFromLocation: e, directionsToLocation: i, pushAppView: o, currentAppView: u, appViews: d, onRouteFinished: _ }) {
|
|
18009
|
-
const b = be.useRef(), a = be.useRef(), E = be.useRef(), j = be.useRef(), V = be.useRef(), ie = be.useRef(), [G, le] =
|
|
18008
|
+
const b = be.useRef(), a = be.useRef(), E = be.useRef(), j = be.useRef(), V = be.useRef(), ie = be.useRef(), [G, le] = an(Wc), [fe, ve] = be.useState(!1), [Ze, me] = an(ww), [, te] = an(Mw);
|
|
18010
18009
|
be.useEffect(() => {
|
|
18011
18010
|
e && i && u === d.DIRECTIONS || (e && i || e ? o(d.WAYFINDING) : G ? o(d.LOCATION_DETAILS, G) : (Ze == null ? void 0 : Ze.length) > 1 ? o(d.EXTERNALIDS) : (Ze == null ? void 0 : Ze.length) === 1 ? (le(Ze[0]), te(Ze[0].id)) : o(d.SEARCH));
|
|
18012
18011
|
}, [G, e, i, Ze]), be.useEffect(() => {
|
|
@@ -18153,7 +18152,7 @@ const PX = {
|
|
|
18153
18152
|
default: !1
|
|
18154
18153
|
});
|
|
18155
18154
|
function FX() {
|
|
18156
|
-
const e = Li(tD), [, i] =
|
|
18155
|
+
const e = Li(tD), [, i] = an(hh), o = To(Lw), u = To(Wc), d = To(F1), _ = To(Sw), b = To(Dw), a = To(j1), E = To(BX), j = To(zw), V = To(U1), ie = To(Ow), G = To(V1), le = To(kw), fe = To(lk), ve = To(PT);
|
|
18157
18156
|
return () => {
|
|
18158
18157
|
o(), u(), d(), _(), b(), a(), E(), j(), V(), ie(), G(), le(), fe(), ve(), e && i(e);
|
|
18159
18158
|
};
|
|
@@ -18194,7 +18193,7 @@ i7.propTypes = {
|
|
|
18194
18193
|
onRouteFinished: dt.func
|
|
18195
18194
|
};
|
|
18196
18195
|
function i7({ directionsFromLocation: e, directionsToLocation: i, pushAppView: o, currentAppView: u, appViews: d, onRouteFinished: _ }) {
|
|
18197
|
-
const [b, a] =
|
|
18196
|
+
const [b, a] = an(Wc), [E, j] = an(ww), [, V] = an(Mw), ie = Li(tc);
|
|
18198
18197
|
be.useEffect(() => {
|
|
18199
18198
|
e && i && u === d.DIRECTIONS || (e && i || e ? o(d.WAYFINDING) : b ? o(d.LOCATION_DETAILS, b) : (E == null ? void 0 : E.length) > 1 ? o(d.EXTERNALIDS) : (E == null ? void 0 : E.length) === 1 ? (a(E[0]), V(E[0].id)) : o(d.SEARCH));
|
|
18200
18199
|
}, [b, e, i, E]);
|
|
@@ -19748,7 +19747,7 @@ Q1.toString = lD.bind(null, function(e, i, o) {
|
|
|
19748
19747
|
return NJ.render(e, o);
|
|
19749
19748
|
});
|
|
19750
19749
|
function LJ() {
|
|
19751
|
-
const { t: e } = gs(), [i, o] =
|
|
19750
|
+
const { t: e } = gs(), [i, o] = an(Ew), u = be.useRef(), d = Li(ic);
|
|
19752
19751
|
return be.useEffect(() => {
|
|
19753
19752
|
const _ = {
|
|
19754
19753
|
errorCorrectionLevel: "L",
|
|
@@ -19772,7 +19771,7 @@ const zJ = kn({
|
|
|
19772
19771
|
default: void 0
|
|
19773
19772
|
});
|
|
19774
19773
|
function OJ() {
|
|
19775
|
-
const { t: e } = gs(), i = Li(ic), o = Li(e7), u = Ld(), d = be.useRef(), _ = be.useRef(), b = be.useRef(), [a, E] =
|
|
19774
|
+
const { t: e } = gs(), i = Li(ic), o = Li(e7), u = Ld(), d = be.useRef(), _ = be.useRef(), b = be.useRef(), [a, E] = an(kw), [j, V] = be.useState(!1), ie = be.useRef();
|
|
19776
19775
|
let G = 700;
|
|
19777
19776
|
return be.useEffect(() => {
|
|
19778
19777
|
a && u && V(ie.current.clientHeight > G);
|
|
@@ -19802,7 +19801,7 @@ function OJ() {
|
|
|
19802
19801
|
] });
|
|
19803
19802
|
}
|
|
19804
19803
|
const kJ = () => {
|
|
19805
|
-
const [e, i] =
|
|
19804
|
+
const [e, i] = an(hh), o = Li(R1), u = Li(Ma), d = Li(xg), [, _] = an(P1), [, b] = an(Ow), a = Li(qT), [E, j] = an(tD);
|
|
19806
19805
|
be.useEffect(() => {
|
|
19807
19806
|
var G;
|
|
19808
19807
|
!e && o.length && i((G = V()) == null ? void 0 : G.name);
|
|
@@ -19888,7 +19887,7 @@ v7.propTypes = {
|
|
|
19888
19887
|
devicePosition: dt.object
|
|
19889
19888
|
};
|
|
19890
19889
|
function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId: d, primaryColor: _, logo: b, appUserRoles: a, directionsFrom: E, directionsTo: j, externalIDs: V, tileStyle: ie, startZoomLevel: G, bearing: le, pitch: fe, gmMapId: ve, useMapProviderModule: Ze, kioskOriginLocationId: me, language: te, supportsUrlParameters: ee, useKeyboard: re, timeout: Me, miTransitionLevel: we, category: We, searchAllVenues: ot, hideNonMatches: $e, showRoadNames: xt, showExternalIDs: ut, searchExternalLocations: jt, center: St, useAppTitle: Jt, showMapMarkers: Tt, mapboxMapStyle: bt, devicePosition: qt }) {
|
|
19891
|
-
const [Ot, Vt] = be.useState(!1), [W, ne] = be.useState({ brandingColor: _ }), [, T] =
|
|
19890
|
+
const [Ot, Vt] = be.useState(!1), [W, ne] = be.useState({ brandingColor: _ }), [, T] = an(zT), [, k] = an(OT), [, F] = an(vw), [Q, Z] = an(Iw), [se, he] = an(R1), [ce, xe] = an(Wc), He = Li(P1), [, et] = an(Mw), [Ue, Xe] = an(ic), [, Fe] = an(YT), [, rt] = an(UX), pt = Li(Ma), [Mt, Et] = an(zd), [, di] = an(tc), [, ei] = an(jT), [, Di] = an(sk), si = ak(), [, xi] = an(Vk), [, zi] = an(Kk), [, Ii] = an(zJ), [, Ht] = an(eD), [, ci] = an(Cw), [, bi] = an(Jk), [, Ei] = an(bk), [, Wi] = an(Aw), [, sn] = an(jJ), [, ln] = an(ZT), [, On] = an(ck), [_t, gt] = be.useState(), oi = be.useRef(), [, Yt] = an(Yk), Xt = Li(Ew), [mi, Ai] = be.useState(!0), [Hi, hn] = be.useState(!0), en = TN(E), wn = TN(j), [Dt, Vn] = be.useState(!1), [, gr] = an(ww), [xr, Ge] = an(xw), [q, ae] = be.useState(), [de, Re] = an(xg), [, Oe] = an(rk), [, Le] = an(ik), [, st] = an(ok), [, Ve] = an(kT), [, at] = an(bw), Rt = gl(), zt = FX(), [Ct, ti, ui, qi, hi, Pi] = RX(), [Gi, _i] = be.useState(!1), Ri = Li(kw), [Zi, dn] = be.useState(0), [mn, zn] = kJ(), ar = PJ(), [, Rn] = an(j1);
|
|
19892
19891
|
function lr() {
|
|
19893
19892
|
return new Promise(($i) => {
|
|
19894
19893
|
if (window.mapsindoors !== void 0)
|
|
@@ -19957,7 +19956,7 @@ function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId
|
|
|
19957
19956
|
oi.current = pp.SetCurrentLocation;
|
|
19958
19957
|
break;
|
|
19959
19958
|
case hi.LOCATION_DETAILS:
|
|
19960
|
-
|
|
19959
|
+
qi && !ce && xe(qi), oi.current = pp.SetCurrentLocation;
|
|
19961
19960
|
break;
|
|
19962
19961
|
case hi.WAYFINDING:
|
|
19963
19962
|
oi.current = pp.SetWayfindingLocation;
|
|
@@ -20022,11 +20021,11 @@ function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId
|
|
|
20022
20021
|
}, [ot]), be.useEffect(() => {
|
|
20023
20022
|
Ei($e);
|
|
20024
20023
|
}, [$e]), be.useEffect(() => {
|
|
20025
|
-
|
|
20024
|
+
Wi(ut);
|
|
20026
20025
|
}, [ut]), be.useEffect(() => {
|
|
20027
|
-
|
|
20026
|
+
sn(xt);
|
|
20028
20027
|
}, [xt]), be.useEffect(() => {
|
|
20029
|
-
|
|
20028
|
+
ln(jt);
|
|
20030
20029
|
}, [jt]), be.useEffect(() => {
|
|
20031
20030
|
var $i;
|
|
20032
20031
|
On(St ?? (($i = de == null ? void 0 : de.appSettings) == null ? void 0 : $i.center));
|
|
@@ -20054,7 +20053,7 @@ function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId
|
|
|
20054
20053
|
ar(), Pi(), dn(($i) => $i + 1), Ht(null);
|
|
20055
20054
|
}
|
|
20056
20055
|
return be.useEffect(() => {
|
|
20057
|
-
Gi && We && He.find(($i) => $i[0] === We) && (Ht(We),
|
|
20056
|
+
Gi && We && He.find(($i) => $i[0] === We) && (Ht(We), bi(We));
|
|
20058
20057
|
}, [We, He, Gi]), be.useEffect(() => {
|
|
20059
20058
|
var $i;
|
|
20060
20059
|
Ot || (te && Mt !== te ? Et(te) : !te && (($i = de == null ? void 0 : de.appSettings) != null && $i.language) && Mt !== de.appSettings.language && Et(de.appSettings.language));
|
|
@@ -20078,7 +20077,7 @@ function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId
|
|
|
20078
20077
|
Rt && /* @__PURE__ */ Pe.jsx(
|
|
20079
20078
|
i7,
|
|
20080
20079
|
{
|
|
20081
|
-
directionsFromLocation:
|
|
20080
|
+
directionsFromLocation: en,
|
|
20082
20081
|
directionsToLocation: wn,
|
|
20083
20082
|
pushAppView: Ct,
|
|
20084
20083
|
currentAppView: ui,
|
|
@@ -20089,7 +20088,7 @@ function v7({ apiKey: e, gmApiKey: i, mapboxAccessToken: o, venue: u, locationId
|
|
|
20089
20088
|
!Rt && /* @__PURE__ */ Pe.jsx(
|
|
20090
20089
|
t7,
|
|
20091
20090
|
{
|
|
20092
|
-
directionsFromLocation:
|
|
20091
|
+
directionsFromLocation: en,
|
|
20093
20092
|
directionsToLocation: wn,
|
|
20094
20093
|
pushAppView: Ct,
|
|
20095
20094
|
currentAppView: ui,
|
|
@@ -22231,16 +22230,16 @@ var zee = $1(function(e, i) {
|
|
|
22231
22230
|
return Ht === void 0 && ci === 0 ? [] : k(xi, this, Ht, ci);
|
|
22232
22231
|
} : xi;
|
|
22233
22232
|
return [function(Ht, ci) {
|
|
22234
|
-
var
|
|
22235
|
-
return Ei ? k(Ei, Ht,
|
|
22233
|
+
var bi = he(this), Ei = se(Ht) ? Ue(Ht, si) : void 0;
|
|
22234
|
+
return Ei ? k(Ei, Ht, bi, ci) : k(Ii, et(bi), Ht, ci);
|
|
22236
22235
|
}, function(Ht, ci) {
|
|
22237
|
-
var
|
|
22236
|
+
var bi = Z(this), Ei = et(Ht);
|
|
22238
22237
|
if (!Di) {
|
|
22239
|
-
var
|
|
22240
|
-
if (
|
|
22241
|
-
return
|
|
22238
|
+
var Wi = zi(Ii, bi, Ei, ci, Ii !== xi);
|
|
22239
|
+
if (Wi.done)
|
|
22240
|
+
return Wi.value;
|
|
22242
22241
|
}
|
|
22243
|
-
var
|
|
22242
|
+
var sn = ce(bi, RegExp), ln = bi.unicode, On = (bi.ignoreCase ? "i" : "") + (bi.multiline ? "m" : "") + (bi.unicode ? "u" : "") + (pt ? "g" : "y"), _t = new sn(pt ? "^(?:" + bi.source + ")" : bi, On), gt = ci === void 0 ? 4294967295 : ci >>> 0;
|
|
22244
22243
|
if (gt === 0)
|
|
22245
22244
|
return [];
|
|
22246
22245
|
if (Ei.length === 0)
|
|
@@ -22249,7 +22248,7 @@ var zee = $1(function(e, i) {
|
|
|
22249
22248
|
_t.lastIndex = pt ? 0 : Yt;
|
|
22250
22249
|
var mi, Ai = Xe(_t, pt ? di(Ei, Yt) : Ei);
|
|
22251
22250
|
if (Ai === null || (mi = Mt(He(_t.lastIndex + (pt ? Yt : 0)), Ei.length)) === oi)
|
|
22252
|
-
Yt = xe(Ei, Yt,
|
|
22251
|
+
Yt = xe(Ei, Yt, ln);
|
|
22253
22252
|
else {
|
|
22254
22253
|
if (Et(Xt, di(Ei, oi, Yt)), Xt.length === gt)
|
|
22255
22254
|
return Xt;
|
|
@@ -22362,9 +22361,9 @@ var zee = $1(function(e, i) {
|
|
|
22362
22361
|
var k = T(6518), F = T(9565), Q = T(6395), Z = T(350), se = T(4901), he = T(3994), ce = T(2787), xe = T(2967), He = T(687), et = T(6699), Ue = T(6840), Xe = T(8227), Fe = T(6269), rt = T(7657), pt = Z.PROPER, Mt = Z.CONFIGURABLE, Et = rt.IteratorPrototype, di = rt.BUGGY_SAFARI_ITERATORS, ei = Xe("iterator"), Di = "keys", si = "values", xi = "entries", zi = function() {
|
|
22363
22362
|
return this;
|
|
22364
22363
|
};
|
|
22365
|
-
W.exports = function(Ii, Ht, ci,
|
|
22366
|
-
he(ci, Ht,
|
|
22367
|
-
var
|
|
22364
|
+
W.exports = function(Ii, Ht, ci, bi, Ei, Wi, sn) {
|
|
22365
|
+
he(ci, Ht, bi);
|
|
22366
|
+
var ln, On, _t, gt = function(hn) {
|
|
22368
22367
|
if (hn === Ei && Ai)
|
|
22369
22368
|
return Ai;
|
|
22370
22369
|
if (!di && hn && hn in Xt)
|
|
@@ -22381,15 +22380,15 @@ var zee = $1(function(e, i) {
|
|
|
22381
22380
|
return new ci(this);
|
|
22382
22381
|
};
|
|
22383
22382
|
}, oi = Ht + " Iterator", Yt = !1, Xt = Ii.prototype, mi = Xt[ei] || Xt["@@iterator"] || Ei && Xt[Ei], Ai = !di && mi || gt(Ei), Hi = Ht === "Array" && Xt.entries || mi;
|
|
22384
|
-
if (Hi && (
|
|
22383
|
+
if (Hi && (ln = ce(Hi.call(new Ii()))) !== Object.prototype && ln.next && (Q || ce(ln) === Et || (xe ? xe(ln, Et) : se(ln[ei]) || Ue(ln, ei, zi)), He(ln, oi, !0, !0), Q && (Fe[oi] = zi)), pt && Ei === si && mi && mi.name !== si && (!Q && Mt ? et(Xt, "name", si) : (Yt = !0, Ai = function() {
|
|
22385
22384
|
return F(mi, this);
|
|
22386
22385
|
})), Ei)
|
|
22387
|
-
if (On = { values: gt(si), keys:
|
|
22386
|
+
if (On = { values: gt(si), keys: Wi ? Ai : gt(Di), entries: gt(xi) }, sn)
|
|
22388
22387
|
for (_t in On)
|
|
22389
22388
|
(di || Yt || !(_t in Xt)) && Ue(Xt, _t, On[_t]);
|
|
22390
22389
|
else
|
|
22391
22390
|
k({ target: Ht, proto: !0, forced: di || Yt }, On);
|
|
22392
|
-
return Q && !
|
|
22391
|
+
return Q && !sn || Xt[ei] === Ai || Ue(Xt, ei, Ai, { name: Ei }), Fe[Ht] = Ai, On;
|
|
22393
22392
|
};
|
|
22394
22393
|
}, 1181: function(W, ne, T) {
|
|
22395
22394
|
var k, F, Q, Z = T(8622), se = T(4576), he = T(34), ce = T(6699), xe = T(9297), He = T(7629), et = T(6119), Ue = T(421), Xe = "Object already initialized", Fe = se.TypeError, rt = se.WeakMap;
|
|
@@ -22688,15 +22687,15 @@ var zee = $1(function(e, i) {
|
|
|
22688
22687
|
var k = T(4576).navigator, F = k && k.userAgent;
|
|
22689
22688
|
W.exports = F ? String(F) : "";
|
|
22690
22689
|
}, 2892: function(W, ne, T) {
|
|
22691
|
-
var k = T(6518), F = T(6395), Q = T(3724), Z = T(4576), se = T(9167), he = T(9504), ce = T(2796), xe = T(9297), He = T(3167), et = T(1625), Ue = T(757), Xe = T(2777), Fe = T(9039), rt = T(8480).f, pt = T(7347).f, Mt = T(4913).f, Et = T(1240), di = T(3802).trim, ei = "Number", Di = Z[ei], si = se[ei], xi = Di.prototype, zi = Z.TypeError, Ii = he("".slice), Ht = he("".charCodeAt), ci = function(
|
|
22692
|
-
var
|
|
22690
|
+
var k = T(6518), F = T(6395), Q = T(3724), Z = T(4576), se = T(9167), he = T(9504), ce = T(2796), xe = T(9297), He = T(3167), et = T(1625), Ue = T(757), Xe = T(2777), Fe = T(9039), rt = T(8480).f, pt = T(7347).f, Mt = T(4913).f, Et = T(1240), di = T(3802).trim, ei = "Number", Di = Z[ei], si = se[ei], xi = Di.prototype, zi = Z.TypeError, Ii = he("".slice), Ht = he("".charCodeAt), ci = function(sn) {
|
|
22691
|
+
var ln, On, _t, gt, oi, Yt, Xt, mi, Ai = Xe(sn, "number");
|
|
22693
22692
|
if (Ue(Ai))
|
|
22694
22693
|
throw new zi("Cannot convert a Symbol value to a number");
|
|
22695
22694
|
if (typeof Ai == "string" && Ai.length > 2) {
|
|
22696
|
-
if (Ai = di(Ai), (
|
|
22695
|
+
if (Ai = di(Ai), (ln = Ht(Ai, 0)) === 43 || ln === 45) {
|
|
22697
22696
|
if ((On = Ht(Ai, 2)) === 88 || On === 120)
|
|
22698
22697
|
return NaN;
|
|
22699
|
-
} else if (
|
|
22698
|
+
} else if (ln === 48) {
|
|
22700
22699
|
switch (Ht(Ai, 1)) {
|
|
22701
22700
|
case 66:
|
|
22702
22701
|
case 98:
|
|
@@ -22716,21 +22715,21 @@ var zee = $1(function(e, i) {
|
|
|
22716
22715
|
}
|
|
22717
22716
|
}
|
|
22718
22717
|
return +Ai;
|
|
22719
|
-
},
|
|
22720
|
-
var
|
|
22718
|
+
}, bi = ce(ei, !Di(" 0o1") || !Di("0b1") || Di("+0x1")), Ei = function(sn) {
|
|
22719
|
+
var ln, On = arguments.length < 1 ? 0 : Di(function(_t) {
|
|
22721
22720
|
var gt = Xe(_t, "number");
|
|
22722
22721
|
return typeof gt == "bigint" ? gt : ci(gt);
|
|
22723
|
-
}(
|
|
22724
|
-
return et(xi,
|
|
22725
|
-
Et(
|
|
22722
|
+
}(sn));
|
|
22723
|
+
return et(xi, ln = this) && Fe(function() {
|
|
22724
|
+
Et(ln);
|
|
22726
22725
|
}) ? He(Object(On), this, Ei) : On;
|
|
22727
22726
|
};
|
|
22728
|
-
Ei.prototype = xi,
|
|
22729
|
-
var
|
|
22730
|
-
for (var On, _t = Q ? rt(
|
|
22731
|
-
xe(
|
|
22727
|
+
Ei.prototype = xi, bi && !F && (xi.constructor = Ei), k({ global: !0, constructor: !0, wrap: !0, forced: bi }, { Number: Ei });
|
|
22728
|
+
var Wi = function(sn, ln) {
|
|
22729
|
+
for (var On, _t = Q ? rt(ln) : "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(","), gt = 0; _t.length > gt; gt++)
|
|
22730
|
+
xe(ln, On = _t[gt]) && !xe(sn, On) && Mt(sn, On, pt(ln, On));
|
|
22732
22731
|
};
|
|
22733
|
-
F && si &&
|
|
22732
|
+
F && si && Wi(se[ei], si), (bi || F) && Wi(se[ei], Di);
|
|
22734
22733
|
}, 2953: function(W, ne, T) {
|
|
22735
22734
|
var k = T(4576), F = T(7400), Q = T(9296), Z = T(3792), se = T(6699), he = T(687), ce = T(8227)("iterator"), xe = Z.values, He = function(Ue, Xe) {
|
|
22736
22735
|
if (Ue) {
|
|
@@ -22772,20 +22771,20 @@ var zee = $1(function(e, i) {
|
|
|
22772
22771
|
return Fe([ci]) !== "[null]" || Fe({ a: ci }) !== "{}" || Fe(Object(ci)) !== "{}";
|
|
22773
22772
|
}), zi = he(function() {
|
|
22774
22773
|
return Fe("\uDF06\uD834") !== '"\\udf06\\ud834"' || Fe("\uDEAD") !== '"\\udead"';
|
|
22775
|
-
}), Ii = function(ci,
|
|
22776
|
-
var Ei = He(arguments),
|
|
22777
|
-
if (ce(
|
|
22778
|
-
return Ei[1] = function(
|
|
22779
|
-
if (ce(
|
|
22780
|
-
return
|
|
22774
|
+
}), Ii = function(ci, bi) {
|
|
22775
|
+
var Ei = He(arguments), Wi = et(bi);
|
|
22776
|
+
if (ce(Wi) || ci !== void 0 && !xe(ci))
|
|
22777
|
+
return Ei[1] = function(sn, ln) {
|
|
22778
|
+
if (ce(Wi) && (ln = Z(Wi, this, Xe(sn), ln)), !xe(ln))
|
|
22779
|
+
return ln;
|
|
22781
22780
|
}, Q(Fe, null, Ei);
|
|
22782
|
-
}, Ht = function(ci,
|
|
22783
|
-
var
|
|
22784
|
-
return rt(Di, ci) && !rt(si,
|
|
22781
|
+
}, Ht = function(ci, bi, Ei) {
|
|
22782
|
+
var Wi = pt(Ei, bi - 1), sn = pt(Ei, bi + 1);
|
|
22783
|
+
return rt(Di, ci) && !rt(si, sn) || rt(si, ci) && !rt(Di, Wi) ? "\\u" + di(Mt(ci, 0), 16) : ci;
|
|
22785
22784
|
};
|
|
22786
|
-
Fe && k({ target: "JSON", stat: !0, arity: 3, forced: xi || zi }, { stringify: function(ci,
|
|
22787
|
-
var
|
|
22788
|
-
return zi && typeof
|
|
22785
|
+
Fe && k({ target: "JSON", stat: !0, arity: 3, forced: xi || zi }, { stringify: function(ci, bi, Ei) {
|
|
22786
|
+
var Wi = He(arguments), sn = Q(xi ? Ii : Fe, null, Wi);
|
|
22787
|
+
return zi && typeof sn == "string" ? Et(sn, ei, Ht) : sn;
|
|
22789
22788
|
} });
|
|
22790
22789
|
}, 3167: function(W, ne, T) {
|
|
22791
22790
|
var k = T(4901), F = T(34), Q = T(2967);
|
|
@@ -23132,16 +23131,16 @@ var zee = $1(function(e, i) {
|
|
|
23132
23131
|
return ei.length = Di, ei;
|
|
23133
23132
|
} });
|
|
23134
23133
|
}, 4864: function(W, ne, T) {
|
|
23135
|
-
var k = T(3724), F = T(4576), Q = T(9504), Z = T(2796), se = T(3167), he = T(6699), ce = T(2360), xe = T(8480).f, He = T(1625), et = T(788), Ue = T(655), Xe = T(1034), Fe = T(8429), rt = T(1056), pt = T(6840), Mt = T(9039), Et = T(9297), di = T(1181).enforce, ei = T(7633), Di = T(8227), si = T(3635), xi = T(8814), zi = Di("match"), Ii = F.RegExp, Ht = Ii.prototype, ci = F.SyntaxError,
|
|
23134
|
+
var k = T(3724), F = T(4576), Q = T(9504), Z = T(2796), se = T(3167), he = T(6699), ce = T(2360), xe = T(8480).f, He = T(1625), et = T(788), Ue = T(655), Xe = T(1034), Fe = T(8429), rt = T(1056), pt = T(6840), Mt = T(9039), Et = T(9297), di = T(1181).enforce, ei = T(7633), Di = T(8227), si = T(3635), xi = T(8814), zi = Di("match"), Ii = F.RegExp, Ht = Ii.prototype, ci = F.SyntaxError, bi = Q(Ht.exec), Ei = Q("".charAt), Wi = Q("".replace), sn = Q("".indexOf), ln = Q("".slice), On = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, _t = /a/g, gt = /a/g, oi = new Ii(_t) !== _t, Yt = Fe.MISSED_STICKY, Xt = Fe.UNSUPPORTED_Y, mi = k && (!oi || Yt || si || xi || Mt(function() {
|
|
23136
23135
|
return gt[zi] = !1, Ii(_t) !== _t || Ii(gt) === gt || String(Ii(_t, "i")) !== "/a/i";
|
|
23137
23136
|
}));
|
|
23138
23137
|
if (Z("RegExp", mi)) {
|
|
23139
|
-
for (var Ai = function(
|
|
23140
|
-
var Dt, Vn, gr, xr, Ge, q, ae = He(Ht, this), de = et(
|
|
23141
|
-
if (!ae && de && Re &&
|
|
23142
|
-
return
|
|
23143
|
-
if ((de || He(Ht,
|
|
23144
|
-
for (var Ve, at = st.length, Rt = 0, zt = "", Ct = [], ti = ce(null), ui = !1,
|
|
23138
|
+
for (var Ai = function(en, wn) {
|
|
23139
|
+
var Dt, Vn, gr, xr, Ge, q, ae = He(Ht, this), de = et(en), Re = wn === void 0, Oe = [], Le = en;
|
|
23140
|
+
if (!ae && de && Re && en.constructor === Ai)
|
|
23141
|
+
return en;
|
|
23142
|
+
if ((de || He(Ht, en)) && (en = en.source, Re && (wn = Xe(Le))), en = en === void 0 ? "" : Ue(en), wn = wn === void 0 ? "" : Ue(wn), Le = en, si && "dotAll" in _t && (Vn = !!wn && sn(wn, "s") > -1) && (wn = Wi(wn, /s/g, "")), Dt = wn, Yt && "sticky" in _t && (gr = !!wn && sn(wn, "y") > -1) && Xt && (wn = Wi(wn, /y/g, "")), xi && (xr = function(st) {
|
|
23143
|
+
for (var Ve, at = st.length, Rt = 0, zt = "", Ct = [], ti = ce(null), ui = !1, qi = !1, hi = 0, Pi = ""; Rt <= at; Rt++) {
|
|
23145
23144
|
if ((Ve = Ei(st, Rt)) === "\\")
|
|
23146
23145
|
Ve += Ei(st, ++Rt);
|
|
23147
23146
|
else if (Ve === "]")
|
|
@@ -23152,24 +23151,24 @@ var zee = $1(function(e, i) {
|
|
|
23152
23151
|
ui = !0;
|
|
23153
23152
|
break;
|
|
23154
23153
|
case Ve === "(":
|
|
23155
|
-
if (zt += Ve,
|
|
23154
|
+
if (zt += Ve, ln(st, Rt + 1, Rt + 3) === "?:")
|
|
23156
23155
|
continue;
|
|
23157
|
-
|
|
23156
|
+
bi(On, ln(st, Rt + 1)) && (Rt += 2, qi = !0), hi++;
|
|
23158
23157
|
continue;
|
|
23159
|
-
case (Ve === ">" &&
|
|
23158
|
+
case (Ve === ">" && qi):
|
|
23160
23159
|
if (Pi === "" || Et(ti, Pi))
|
|
23161
23160
|
throw new ci("Invalid capture group name");
|
|
23162
|
-
ti[Pi] = !0, Ct[Ct.length] = [Pi, hi],
|
|
23161
|
+
ti[Pi] = !0, Ct[Ct.length] = [Pi, hi], qi = !1, Pi = "";
|
|
23163
23162
|
continue;
|
|
23164
23163
|
}
|
|
23165
|
-
|
|
23164
|
+
qi ? Pi += Ve : zt += Ve;
|
|
23166
23165
|
}
|
|
23167
23166
|
return [zt, Ct];
|
|
23168
|
-
}(
|
|
23167
|
+
}(en), en = xr[0], Oe = xr[1]), Ge = se(Ii(en, wn), ae ? this : Ht, Ai), (Vn || gr || Oe.length) && (q = di(Ge), Vn && (q.dotAll = !0, q.raw = Ai(function(st) {
|
|
23169
23168
|
for (var Ve, at = st.length, Rt = 0, zt = "", Ct = !1; Rt <= at; Rt++)
|
|
23170
23169
|
(Ve = Ei(st, Rt)) !== "\\" ? Ct || Ve !== "." ? (Ve === "[" ? Ct = !0 : Ve === "]" && (Ct = !1), zt += Ve) : zt += "[\\s\\S]" : zt += Ve + Ei(st, ++Rt);
|
|
23171
23170
|
return zt;
|
|
23172
|
-
}(
|
|
23171
|
+
}(en), Dt)), gr && (q.sticky = !0), Oe.length && (q.groups = Oe)), en !== Le)
|
|
23173
23172
|
try {
|
|
23174
23173
|
he(Ge, "source", Le === "" ? "(?:)" : Le);
|
|
23175
23174
|
} catch {
|
|
@@ -23224,42 +23223,42 @@ var zee = $1(function(e, i) {
|
|
|
23224
23223
|
};
|
|
23225
23224
|
}, 5440: function(W, ne, T) {
|
|
23226
23225
|
var k = T(8745), F = T(9565), Q = T(9504), Z = T(9228), se = T(9039), he = T(8551), ce = T(4901), xe = T(34), He = T(1291), et = T(8014), Ue = T(655), Xe = T(7750), Fe = T(7829), rt = T(5966), pt = T(2478), Mt = T(6682), Et = T(8227)("replace"), di = Math.max, ei = Math.min, Di = Q([].concat), si = Q([].push), xi = Q("".indexOf), zi = Q("".slice), Ii = "a".replace(/./, "$0") === "$0", Ht = !!/./[Et] && /./[Et]("a", "$0") === "";
|
|
23227
|
-
Z("replace", function(ci,
|
|
23228
|
-
var
|
|
23229
|
-
return [function(
|
|
23230
|
-
var On = Xe(this), _t = xe(
|
|
23231
|
-
return _t ? F(_t,
|
|
23232
|
-
}, function(
|
|
23233
|
-
var On = he(this), _t = Ue(
|
|
23234
|
-
if (typeof
|
|
23235
|
-
var gt = Ei(
|
|
23226
|
+
Z("replace", function(ci, bi, Ei) {
|
|
23227
|
+
var Wi = Ht ? "$" : "$0";
|
|
23228
|
+
return [function(sn, ln) {
|
|
23229
|
+
var On = Xe(this), _t = xe(sn) ? rt(sn, Et) : void 0;
|
|
23230
|
+
return _t ? F(_t, sn, On, ln) : F(bi, Ue(On), sn, ln);
|
|
23231
|
+
}, function(sn, ln) {
|
|
23232
|
+
var On = he(this), _t = Ue(sn);
|
|
23233
|
+
if (typeof ln == "string" && xi(ln, Wi) === -1 && xi(ln, "$<") === -1) {
|
|
23234
|
+
var gt = Ei(bi, On, _t, ln);
|
|
23236
23235
|
if (gt.done)
|
|
23237
23236
|
return gt.value;
|
|
23238
23237
|
}
|
|
23239
|
-
var oi = ce(
|
|
23240
|
-
oi || (
|
|
23238
|
+
var oi = ce(ln);
|
|
23239
|
+
oi || (ln = Ue(ln));
|
|
23241
23240
|
var Yt, Xt = On.global;
|
|
23242
23241
|
Xt && (Yt = On.unicode, On.lastIndex = 0);
|
|
23243
23242
|
for (var mi, Ai = []; (mi = Mt(On, _t)) !== null && (si(Ai, mi), Xt); )
|
|
23244
23243
|
Ue(mi[0]) === "" && (On.lastIndex = Fe(_t, et(On.lastIndex), Yt));
|
|
23245
|
-
for (var Hi, hn = "",
|
|
23244
|
+
for (var Hi, hn = "", en = 0, wn = 0; wn < Ai.length; wn++) {
|
|
23246
23245
|
for (var Dt, Vn = Ue((mi = Ai[wn])[0]), gr = di(ei(He(mi.index), _t.length), 0), xr = [], Ge = 1; Ge < mi.length; Ge++)
|
|
23247
23246
|
si(xr, (Hi = mi[Ge]) === void 0 ? Hi : String(Hi));
|
|
23248
23247
|
var q = mi.groups;
|
|
23249
23248
|
if (oi) {
|
|
23250
23249
|
var ae = Di([Vn], xr, gr, _t);
|
|
23251
|
-
q !== void 0 && si(ae, q), Dt = Ue(k(
|
|
23250
|
+
q !== void 0 && si(ae, q), Dt = Ue(k(ln, void 0, ae));
|
|
23252
23251
|
} else
|
|
23253
|
-
Dt = pt(Vn, _t, gr, xr, q,
|
|
23254
|
-
gr >=
|
|
23252
|
+
Dt = pt(Vn, _t, gr, xr, q, ln);
|
|
23253
|
+
gr >= en && (hn += zi(_t, en, gr) + Dt, en = gr + Vn.length);
|
|
23255
23254
|
}
|
|
23256
|
-
return hn + zi(_t,
|
|
23255
|
+
return hn + zi(_t, en);
|
|
23257
23256
|
}];
|
|
23258
23257
|
}, !!se(function() {
|
|
23259
23258
|
var ci = /./;
|
|
23260
23259
|
return ci.exec = function() {
|
|
23261
|
-
var
|
|
23262
|
-
return
|
|
23260
|
+
var bi = [];
|
|
23261
|
+
return bi.groups = { a: "7" }, bi;
|
|
23263
23262
|
}, "".replace(ci, "$<a>") !== "7";
|
|
23264
23263
|
}) || !Ii || Ht);
|
|
23265
23264
|
}, 5548: function(W, ne, T) {
|
|
@@ -23386,7 +23385,7 @@ var zee = $1(function(e, i) {
|
|
|
23386
23385
|
}
|
|
23387
23386
|
};
|
|
23388
23387
|
}, 6761: function(W, ne, T) {
|
|
23389
|
-
var k = T(6518), F = T(4576), Q = T(9565), Z = T(9504), se = T(6395), he = T(3724), ce = T(4495), xe = T(9039), He = T(9297), et = T(1625), Ue = T(8551), Xe = T(5397), Fe = T(6969), rt = T(655), pt = T(6980), Mt = T(2360), Et = T(1072), di = T(8480), ei = T(298), Di = T(3717), si = T(7347), xi = T(4913), zi = T(6801), Ii = T(8773), Ht = T(6840), ci = T(2106),
|
|
23388
|
+
var k = T(6518), F = T(4576), Q = T(9565), Z = T(9504), se = T(6395), he = T(3724), ce = T(4495), xe = T(9039), He = T(9297), et = T(1625), Ue = T(8551), Xe = T(5397), Fe = T(6969), rt = T(655), pt = T(6980), Mt = T(2360), Et = T(1072), di = T(8480), ei = T(298), Di = T(3717), si = T(7347), xi = T(4913), zi = T(6801), Ii = T(8773), Ht = T(6840), ci = T(2106), bi = T(5745), Ei = T(6119), Wi = T(421), sn = T(3392), ln = T(8227), On = T(1951), _t = T(511), gt = T(8242), oi = T(687), Yt = T(1181), Xt = T(9213).forEach, mi = Ei("hidden"), Ai = "Symbol", Hi = "prototype", hn = Yt.set, en = Yt.getterFor(Ai), wn = Object[Hi], Dt = F.Symbol, Vn = Dt && Dt[Hi], gr = F.RangeError, xr = F.TypeError, Ge = F.QObject, q = si.f, ae = xi.f, de = ei.f, Re = Ii.f, Oe = Z([].push), Le = bi("symbols"), st = bi("op-symbols"), Ve = bi("wks"), at = !Ge || !Ge[Hi] || !Ge[Hi].findChild, Rt = function(_i, Ri, Zi) {
|
|
23390
23389
|
var dn = q(wn, Ri);
|
|
23391
23390
|
dn && delete wn[Ri], ae(_i, Ri, Zi), dn && _i !== wn && ae(wn, Ri, dn);
|
|
23392
23391
|
}, zt = he && xe(function() {
|
|
@@ -23404,9 +23403,9 @@ var zee = $1(function(e, i) {
|
|
|
23404
23403
|
Ue(_i);
|
|
23405
23404
|
var Zi = Xe(Ri), dn = Et(Zi).concat(Gi(Zi));
|
|
23406
23405
|
return Xt(dn, function(mn) {
|
|
23407
|
-
he && !Q(
|
|
23406
|
+
he && !Q(qi, Zi, mn) || ti(_i, mn, Zi[mn]);
|
|
23408
23407
|
}), _i;
|
|
23409
|
-
},
|
|
23408
|
+
}, qi = function(_i) {
|
|
23410
23409
|
var Ri = Fe(_i), Zi = Q(Re, this, Ri);
|
|
23411
23410
|
return !(this === wn && He(Le, Ri) && !He(st, Ri)) && (!(Zi || !He(this, Ri) || !He(Le, Ri) || He(this, mi) && this[mi][Ri]) || Zi);
|
|
23412
23411
|
}, hi = function(_i, Ri) {
|
|
@@ -23418,7 +23417,7 @@ var zee = $1(function(e, i) {
|
|
|
23418
23417
|
}, Pi = function(_i) {
|
|
23419
23418
|
var Ri = de(Xe(_i)), Zi = [];
|
|
23420
23419
|
return Xt(Ri, function(dn) {
|
|
23421
|
-
He(Le, dn) || He(
|
|
23420
|
+
He(Le, dn) || He(Wi, dn) || Oe(Zi, dn);
|
|
23422
23421
|
}), Zi;
|
|
23423
23422
|
}, Gi = function(_i) {
|
|
23424
23423
|
var Ri = _i === wn, Zi = de(Ri ? st : Xe(_i)), dn = [];
|
|
@@ -23429,7 +23428,7 @@ var zee = $1(function(e, i) {
|
|
|
23429
23428
|
ce || (Dt = function() {
|
|
23430
23429
|
if (et(Vn, this))
|
|
23431
23430
|
throw new xr("Symbol is not a constructor");
|
|
23432
|
-
var _i = arguments.length && arguments[0] !== void 0 ? rt(arguments[0]) : void 0, Ri =
|
|
23431
|
+
var _i = arguments.length && arguments[0] !== void 0 ? rt(arguments[0]) : void 0, Ri = sn(_i), Zi = function(dn) {
|
|
23433
23432
|
var mn = this === void 0 ? F : this;
|
|
23434
23433
|
mn === wn && Q(Zi, st, dn), He(mn, mi) && He(mn[mi], Ri) && (mn[mi][Ri] = !1);
|
|
23435
23434
|
var zn = pt(1, dn);
|
|
@@ -23443,14 +23442,14 @@ var zee = $1(function(e, i) {
|
|
|
23443
23442
|
};
|
|
23444
23443
|
return he && at && zt(wn, Ri, { configurable: !0, set: Zi }), Ct(Ri, _i);
|
|
23445
23444
|
}, Ht(Vn = Dt[Hi], "toString", function() {
|
|
23446
|
-
return
|
|
23445
|
+
return en(this).tag;
|
|
23447
23446
|
}), Ht(Dt, "withoutSetter", function(_i) {
|
|
23448
|
-
return Ct(
|
|
23449
|
-
}), Ii.f =
|
|
23450
|
-
return Ct(
|
|
23447
|
+
return Ct(sn(_i), _i);
|
|
23448
|
+
}), Ii.f = qi, xi.f = ti, zi.f = ui, si.f = hi, di.f = ei.f = Pi, Di.f = Gi, On.f = function(_i) {
|
|
23449
|
+
return Ct(ln(_i), _i);
|
|
23451
23450
|
}, he && (ci(Vn, "description", { configurable: !0, get: function() {
|
|
23452
|
-
return
|
|
23453
|
-
} }), se || Ht(wn, "propertyIsEnumerable",
|
|
23451
|
+
return en(this).description;
|
|
23452
|
+
} }), se || Ht(wn, "propertyIsEnumerable", qi, { unsafe: !0 }))), k({ global: !0, constructor: !0, wrap: !0, forced: !ce, sham: !ce }, { Symbol: Dt }), Xt(Et(Ve), function(_i) {
|
|
23454
23453
|
_t(_i);
|
|
23455
23454
|
}), k({ target: Ai, stat: !0, forced: !ce }, { useSetter: function() {
|
|
23456
23455
|
at = !0;
|
|
@@ -23458,7 +23457,7 @@ var zee = $1(function(e, i) {
|
|
|
23458
23457
|
at = !1;
|
|
23459
23458
|
} }), k({ target: "Object", stat: !0, forced: !ce, sham: !he }, { create: function(_i, Ri) {
|
|
23460
23459
|
return Ri === void 0 ? Mt(_i) : ui(Mt(_i), Ri);
|
|
23461
|
-
}, defineProperty: ti, defineProperties: ui, getOwnPropertyDescriptor: hi }), k({ target: "Object", stat: !0, forced: !ce }, { getOwnPropertyNames: Pi }), gt(), oi(Dt, Ai),
|
|
23460
|
+
}, defineProperty: ti, defineProperties: ui, getOwnPropertyDescriptor: hi }), k({ target: "Object", stat: !0, forced: !ce }, { getOwnPropertyNames: Pi }), gt(), oi(Dt, Ai), Wi[mi] = !0;
|
|
23462
23461
|
}, 6801: function(W, ne, T) {
|
|
23463
23462
|
var k = T(3724), F = T(8686), Q = T(4913), Z = T(8551), se = T(5397), he = T(1072);
|
|
23464
23463
|
ne.f = k && !F ? Object.defineProperties : function(ce, xe) {
|
|
@@ -23531,8 +23530,8 @@ var zee = $1(function(e, i) {
|
|
|
23531
23530
|
for (Ht = 0; Ht < 47; Ht++)
|
|
23532
23531
|
pt.push({ k: zi + Ht, v: Ii });
|
|
23533
23532
|
}
|
|
23534
|
-
for (pt.sort(function(
|
|
23535
|
-
return Ei.v -
|
|
23533
|
+
for (pt.sort(function(bi, Ei) {
|
|
23534
|
+
return Ei.v - bi.v;
|
|
23536
23535
|
}), Ht = 0; Ht < pt.length; Ht++)
|
|
23537
23536
|
zi = pt[Ht].k.charAt(0), ci.charAt(ci.length - 1) !== zi && (ci += zi);
|
|
23538
23537
|
return ci !== "DGBEFHACIJK";
|
|
@@ -23543,16 +23542,16 @@ var zee = $1(function(e, i) {
|
|
|
23543
23542
|
var zi = Z(this);
|
|
23544
23543
|
if (si)
|
|
23545
23544
|
return xi === void 0 ? Mt(zi) : Mt(zi, xi);
|
|
23546
|
-
var Ii, Ht, ci = [],
|
|
23547
|
-
for (Ht = 0; Ht <
|
|
23545
|
+
var Ii, Ht, ci = [], bi = se(zi);
|
|
23546
|
+
for (Ht = 0; Ht < bi; Ht++)
|
|
23548
23547
|
Ht in zi && Et(ci, zi[Ht]);
|
|
23549
23548
|
for (He(ci, function(Ei) {
|
|
23550
|
-
return function(
|
|
23551
|
-
return
|
|
23549
|
+
return function(Wi, sn) {
|
|
23550
|
+
return sn === void 0 ? -1 : Wi === void 0 ? 1 : Ei !== void 0 ? +Ei(Wi, sn) || 0 : ce(Wi) > ce(sn) ? 1 : -1;
|
|
23552
23551
|
};
|
|
23553
23552
|
}(xi)), Ii = se(ci), Ht = 0; Ht < Ii; )
|
|
23554
23553
|
zi[Ht] = ci[Ht++];
|
|
23555
|
-
for (; Ht <
|
|
23554
|
+
for (; Ht < bi; )
|
|
23556
23555
|
he(zi, Ht++);
|
|
23557
23556
|
return zi;
|
|
23558
23557
|
} });
|
|
@@ -23614,18 +23613,18 @@ var zee = $1(function(e, i) {
|
|
|
23614
23613
|
}, 7323: function(W, ne, T) {
|
|
23615
23614
|
var k, F, Q = T(9565), Z = T(9504), se = T(655), he = T(7979), ce = T(8429), xe = T(5745), He = T(2360), et = T(1181).get, Ue = T(3635), Xe = T(8814), Fe = xe("native-string-replace", String.prototype.replace), rt = RegExp.prototype.exec, pt = rt, Mt = Z("".charAt), Et = Z("".indexOf), di = Z("".replace), ei = Z("".slice), Di = (F = /b*/g, Q(rt, k = /a/, "a"), Q(rt, F, "a"), k.lastIndex !== 0 || F.lastIndex !== 0), si = ce.BROKEN_CARET, xi = /()??/.exec("")[1] !== void 0;
|
|
23616
23615
|
(Di || xi || si || Ue || Xe) && (pt = function(zi) {
|
|
23617
|
-
var Ii, Ht, ci,
|
|
23616
|
+
var Ii, Ht, ci, bi, Ei, Wi, sn, ln = this, On = et(ln), _t = se(zi), gt = On.raw;
|
|
23618
23617
|
if (gt)
|
|
23619
|
-
return gt.lastIndex =
|
|
23620
|
-
var oi = On.groups, Yt = si &&
|
|
23621
|
-
if (Yt && (Xt = di(Xt, "y", ""), Et(Xt, "g") === -1 && (Xt += "g"), Hi = ei(_t,
|
|
23622
|
-
`) && (mi = "(?: " + mi + ")", Hi = " " + Hi, Ai++), Ht = new RegExp("^(?:" + mi + ")", Xt)), xi && (Ht = new RegExp("^" + mi + "$(?!\\s)", Xt)), Di && (ci =
|
|
23618
|
+
return gt.lastIndex = ln.lastIndex, Ii = Q(pt, gt, _t), ln.lastIndex = gt.lastIndex, Ii;
|
|
23619
|
+
var oi = On.groups, Yt = si && ln.sticky, Xt = Q(he, ln), mi = ln.source, Ai = 0, Hi = _t;
|
|
23620
|
+
if (Yt && (Xt = di(Xt, "y", ""), Et(Xt, "g") === -1 && (Xt += "g"), Hi = ei(_t, ln.lastIndex), ln.lastIndex > 0 && (!ln.multiline || ln.multiline && Mt(_t, ln.lastIndex - 1) !== `
|
|
23621
|
+
`) && (mi = "(?: " + mi + ")", Hi = " " + Hi, Ai++), Ht = new RegExp("^(?:" + mi + ")", Xt)), xi && (Ht = new RegExp("^" + mi + "$(?!\\s)", Xt)), Di && (ci = ln.lastIndex), bi = Q(rt, Yt ? Ht : ln, Hi), Yt ? bi ? (bi.input = ei(bi.input, Ai), bi[0] = ei(bi[0], Ai), bi.index = ln.lastIndex, ln.lastIndex += bi[0].length) : ln.lastIndex = 0 : Di && bi && (ln.lastIndex = ln.global ? bi.index + bi[0].length : ci), xi && bi && bi.length > 1 && Q(Fe, bi[0], Ht, function() {
|
|
23623
23622
|
for (Ei = 1; Ei < arguments.length - 2; Ei++)
|
|
23624
|
-
arguments[Ei] === void 0 && (
|
|
23625
|
-
}),
|
|
23626
|
-
for (
|
|
23627
|
-
|
|
23628
|
-
return
|
|
23623
|
+
arguments[Ei] === void 0 && (bi[Ei] = void 0);
|
|
23624
|
+
}), bi && oi)
|
|
23625
|
+
for (bi.groups = Wi = He(null), Ei = 0; Ei < oi.length; Ei++)
|
|
23626
|
+
Wi[(sn = oi[Ei])[0]] = bi[sn[1]];
|
|
23627
|
+
return bi;
|
|
23629
23628
|
}), W.exports = pt;
|
|
23630
23629
|
}, 7347: function(W, ne, T) {
|
|
23631
23630
|
var k = T(3724), F = T(9565), Q = T(8773), Z = T(6980), se = T(5397), he = T(6969), ce = T(9297), xe = T(5917), He = Object.getOwnPropertyDescriptor;
|
|
@@ -23793,31 +23792,31 @@ var zee = $1(function(e, i) {
|
|
|
23793
23792
|
return k(Q, F);
|
|
23794
23793
|
};
|
|
23795
23794
|
}, 8543: function(W, ne, T) {
|
|
23796
|
-
var k = T(6518), F = T(9565), Q = T(7476), Z = T(3994), se = T(2529), he = T(7750), ce = T(8014), xe = T(655), He = T(8551), et = T(34), Ue = T(2195), Xe = T(788), Fe = T(1034), rt = T(5966), pt = T(6840), Mt = T(9039), Et = T(8227), di = T(2293), ei = T(7829), Di = T(6682), si = T(1181), xi = T(6395), zi = Et("matchAll"), Ii = "RegExp String", Ht = Ii + " Iterator", ci = si.set,
|
|
23797
|
-
|
|
23795
|
+
var k = T(6518), F = T(9565), Q = T(7476), Z = T(3994), se = T(2529), he = T(7750), ce = T(8014), xe = T(655), He = T(8551), et = T(34), Ue = T(2195), Xe = T(788), Fe = T(1034), rt = T(5966), pt = T(6840), Mt = T(9039), Et = T(8227), di = T(2293), ei = T(7829), Di = T(6682), si = T(1181), xi = T(6395), zi = Et("matchAll"), Ii = "RegExp String", Ht = Ii + " Iterator", ci = si.set, bi = si.getterFor(Ht), Ei = RegExp.prototype, Wi = TypeError, sn = Q("".indexOf), ln = Q("".matchAll), On = !!ln && !Mt(function() {
|
|
23796
|
+
ln("a", /./);
|
|
23798
23797
|
}), _t = Z(function(oi, Yt, Xt, mi) {
|
|
23799
23798
|
ci(this, { type: Ht, regexp: oi, string: Yt, global: Xt, unicode: mi, done: !1 });
|
|
23800
23799
|
}, Ii, function() {
|
|
23801
|
-
var oi =
|
|
23800
|
+
var oi = bi(this);
|
|
23802
23801
|
if (oi.done)
|
|
23803
23802
|
return se(void 0, !0);
|
|
23804
23803
|
var Yt = oi.regexp, Xt = oi.string, mi = Di(Yt, Xt);
|
|
23805
23804
|
return mi === null ? (oi.done = !0, se(void 0, !0)) : oi.global ? (xe(mi[0]) === "" && (Yt.lastIndex = ei(Xt, ce(Yt.lastIndex), oi.unicode)), se(mi, !1)) : (oi.done = !0, se(mi, !1));
|
|
23806
23805
|
}), gt = function(oi) {
|
|
23807
|
-
var Yt, Xt, mi, Ai = He(this), Hi = xe(oi), hn = di(Ai, RegExp),
|
|
23808
|
-
return Yt = new hn(hn === RegExp ? Ai.source : Ai,
|
|
23806
|
+
var Yt, Xt, mi, Ai = He(this), Hi = xe(oi), hn = di(Ai, RegExp), en = xe(Fe(Ai));
|
|
23807
|
+
return Yt = new hn(hn === RegExp ? Ai.source : Ai, en), Xt = !!~sn(en, "g"), mi = !!~sn(en, "u"), Yt.lastIndex = ce(Ai.lastIndex), new _t(Yt, Hi, Xt, mi);
|
|
23809
23808
|
};
|
|
23810
23809
|
k({ target: "String", proto: !0, forced: On }, { matchAll: function(oi) {
|
|
23811
23810
|
var Yt, Xt, mi, Ai, Hi = he(this);
|
|
23812
23811
|
if (et(oi)) {
|
|
23813
|
-
if (Xe(oi) && (Yt = xe(he(Fe(oi))), !~
|
|
23814
|
-
throw new
|
|
23812
|
+
if (Xe(oi) && (Yt = xe(he(Fe(oi))), !~sn(Yt, "g")))
|
|
23813
|
+
throw new Wi("`.matchAll` does not allow non-global regexes");
|
|
23815
23814
|
if (On)
|
|
23816
|
-
return
|
|
23815
|
+
return ln(Hi, oi);
|
|
23817
23816
|
if ((mi = rt(oi, zi)) === void 0 && xi && Ue(oi) === "RegExp" && (mi = gt), mi)
|
|
23818
23817
|
return F(mi, oi, Hi);
|
|
23819
23818
|
} else if (On)
|
|
23820
|
-
return
|
|
23819
|
+
return ln(Hi, oi);
|
|
23821
23820
|
return Xt = xe(Hi), Ai = new RegExp(oi, "g"), xi ? F(gt, Ai, Xt) : Ai[zi](Xt);
|
|
23822
23821
|
} }), xi || zi in Ei || pt(Ei, zi, gt);
|
|
23823
23822
|
}, 8551: function(W, ne, T) {
|
|
@@ -23911,10 +23910,10 @@ var zee = $1(function(e, i) {
|
|
|
23911
23910
|
var k = T(6080), F = T(9504), Q = T(7055), Z = T(8981), se = T(6198), he = T(1469), ce = F([].push), xe = function(He) {
|
|
23912
23911
|
var et = He === 1, Ue = He === 2, Xe = He === 3, Fe = He === 4, rt = He === 6, pt = He === 7, Mt = He === 5 || rt;
|
|
23913
23912
|
return function(Et, di, ei, Di) {
|
|
23914
|
-
for (var si, xi, zi = Z(Et), Ii = Q(zi), Ht = se(Ii), ci = k(di, ei),
|
|
23915
|
-
if ((Mt ||
|
|
23913
|
+
for (var si, xi, zi = Z(Et), Ii = Q(zi), Ht = se(Ii), ci = k(di, ei), bi = 0, Ei = Di || he, Wi = et ? Ei(Et, Ht) : Ue || pt ? Ei(Et, 0) : void 0; Ht > bi; bi++)
|
|
23914
|
+
if ((Mt || bi in Ii) && (xi = ci(si = Ii[bi], bi, zi), He))
|
|
23916
23915
|
if (et)
|
|
23917
|
-
|
|
23916
|
+
Wi[bi] = xi;
|
|
23918
23917
|
else if (xi)
|
|
23919
23918
|
switch (He) {
|
|
23920
23919
|
case 3:
|
|
@@ -23922,18 +23921,18 @@ var zee = $1(function(e, i) {
|
|
|
23922
23921
|
case 5:
|
|
23923
23922
|
return si;
|
|
23924
23923
|
case 6:
|
|
23925
|
-
return
|
|
23924
|
+
return bi;
|
|
23926
23925
|
case 2:
|
|
23927
|
-
ce(
|
|
23926
|
+
ce(Wi, si);
|
|
23928
23927
|
}
|
|
23929
23928
|
else
|
|
23930
23929
|
switch (He) {
|
|
23931
23930
|
case 4:
|
|
23932
23931
|
return !1;
|
|
23933
23932
|
case 7:
|
|
23934
|
-
ce(
|
|
23933
|
+
ce(Wi, si);
|
|
23935
23934
|
}
|
|
23936
|
-
return rt ? -1 : Xe || Fe ? Fe :
|
|
23935
|
+
return rt ? -1 : Xe || Fe ? Fe : Wi;
|
|
23937
23936
|
};
|
|
23938
23937
|
};
|
|
23939
23938
|
W.exports = { forEach: xe(0), map: xe(1), filter: xe(2), some: xe(3), every: xe(4), find: xe(5), findIndex: xe(6), filterReject: xe(7) };
|
|
@@ -31078,14 +31077,14 @@ var R3 = $1(function(e, i) {
|
|
|
31078
31077
|
ti[Ct[ui].toUpperCase()] = Ct[ui];
|
|
31079
31078
|
return ti;
|
|
31080
31079
|
}
|
|
31081
|
-
var _ = 500, b = "user-agent", a = "", E = "?", j = "function", V = "undefined", ie = "object", G = "string", le = "browser", fe = "cpu", ve = "device", Ze = "engine", me = "os", te = "result", ee = "name", re = "type", Me = "vendor", we = "version", We = "architecture", ot = "major", $e = "model", xt = "console", ut = "mobile", jt = "tablet", St = "smarttv", Jt = "wearable", Tt = "xr", bt = "embedded", qt = "inapp", Ot = "brands", Vt = "formFactors", W = "fullVersionList", ne = "platform", T = "platformVersion", k = "bitness", F = "sec-ch-ua", Q = F + "-full-version-list", Z = F + "-arch", se = F + "-" + k, he = F + "-form-factors", ce = F + "-" + ut, xe = F + "-" + $e, He = F + "-" + ne, et = He + "-version", Ue = [Ot, W, ut, $e, ne, T, We, Vt, k], Xe = "Amazon", Fe = "Apple", rt = "ASUS", pt = "BlackBerry", Mt = "Google", Et = "Huawei", di = "Microsoft", ei = "Motorola", Di = "Nvidia", si = "OnePlus", xi = "OPPO", zi = "Samsung", Ii = "Sony", Ht = "Xiaomi", ci = "Zebra",
|
|
31080
|
+
var _ = 500, b = "user-agent", a = "", E = "?", j = "function", V = "undefined", ie = "object", G = "string", le = "browser", fe = "cpu", ve = "device", Ze = "engine", me = "os", te = "result", ee = "name", re = "type", Me = "vendor", we = "version", We = "architecture", ot = "major", $e = "model", xt = "console", ut = "mobile", jt = "tablet", St = "smarttv", Jt = "wearable", Tt = "xr", bt = "embedded", qt = "inapp", Ot = "brands", Vt = "formFactors", W = "fullVersionList", ne = "platform", T = "platformVersion", k = "bitness", F = "sec-ch-ua", Q = F + "-full-version-list", Z = F + "-arch", se = F + "-" + k, he = F + "-form-factors", ce = F + "-" + ut, xe = F + "-" + $e, He = F + "-" + ne, et = He + "-version", Ue = [Ot, W, ut, $e, ne, T, We, Vt, k], Xe = "Amazon", Fe = "Apple", rt = "ASUS", pt = "BlackBerry", Mt = "Google", Et = "Huawei", di = "Microsoft", ei = "Motorola", Di = "Nvidia", si = "OnePlus", xi = "OPPO", zi = "Samsung", Ii = "Sony", Ht = "Xiaomi", ci = "Zebra", bi = "Chromium", Ei = "Chromecast", Wi = "Firefox", sn = "Opera", ln = "Facebook", On = "Mobile ", _t = " Browser", gt = "Windows", oi = typeof o !== V, Yt = oi && o.navigator ? o.navigator : u, Xt = Yt && Yt.userAgentData ? Yt.userAgentData : u, mi = function(Ct, ti) {
|
|
31082
31081
|
if (typeof Ct === ie && 0 < Ct.length) {
|
|
31083
31082
|
for (var ui in Ct)
|
|
31084
|
-
if (
|
|
31083
|
+
if (en(Ct[ui]) == en(ti))
|
|
31085
31084
|
return !0;
|
|
31086
31085
|
return !1;
|
|
31087
31086
|
}
|
|
31088
|
-
return !!Hi(Ct) &&
|
|
31087
|
+
return !!Hi(Ct) && en(ti).indexOf(en(Ct)) !== -1;
|
|
31089
31088
|
}, Ai = function(Ct, ti) {
|
|
31090
31089
|
for (var ui in Ct)
|
|
31091
31090
|
return /^(browser|cpu|device|engine|os)$/.test(ui) || !!ti && Ai(Ct[ui]);
|
|
@@ -31094,10 +31093,10 @@ var R3 = $1(function(e, i) {
|
|
|
31094
31093
|
}, hn = function(Ct) {
|
|
31095
31094
|
if (!Ct)
|
|
31096
31095
|
return u;
|
|
31097
|
-
for (var ti, ui = [],
|
|
31098
|
-
-1 <
|
|
31096
|
+
for (var ti, ui = [], qi = Vn(/\\?\"/g, Ct).split(","), hi = 0; hi < qi.length; hi++)
|
|
31097
|
+
-1 < qi[hi].indexOf(";") ? (ti = xr(qi[hi]).split(";v="), ui[hi] = { brand: ti[0], version: ti[1] }) : ui[hi] = xr(qi[hi]);
|
|
31099
31098
|
return ui;
|
|
31100
|
-
},
|
|
31099
|
+
}, en = function(Ct) {
|
|
31101
31100
|
return Hi(Ct) ? Ct.toLowerCase() : Ct;
|
|
31102
31101
|
}, wn = function(Ct) {
|
|
31103
31102
|
return Hi(Ct) ? Vn(/[^\d\.]/g, Ct).split(".")[0] : u;
|
|
@@ -31114,24 +31113,24 @@ var R3 = $1(function(e, i) {
|
|
|
31114
31113
|
return Ct = Vn(/^\s\s*/, Ct), typeof ti === V ? Ct : Ct.substring(0, _);
|
|
31115
31114
|
}, Ge = function(Ct, ti) {
|
|
31116
31115
|
if (Ct && ti)
|
|
31117
|
-
for (var ui,
|
|
31116
|
+
for (var ui, qi, hi, Pi, Gi, _i = 0; _i < ti.length && !Pi; ) {
|
|
31118
31117
|
for (var Ri = ti[_i], Zi = ti[_i + 1], dn = ui = 0; dn < Ri.length && !Pi && Ri[dn]; )
|
|
31119
31118
|
if (Pi = Ri[dn++].exec(Ct))
|
|
31120
|
-
for (
|
|
31121
|
-
Gi = Pi[++ui], typeof (hi = Zi[
|
|
31119
|
+
for (qi = 0; qi < Zi.length; qi++)
|
|
31120
|
+
Gi = Pi[++ui], typeof (hi = Zi[qi]) === ie && 0 < hi.length ? hi.length === 2 ? typeof hi[1] == j ? this[hi[0]] = hi[1].call(this, Gi) : this[hi[0]] = hi[1] : hi.length === 3 ? typeof hi[1] !== j || hi[1].exec && hi[1].test ? this[hi[0]] = Gi ? Gi.replace(hi[1], hi[2]) : u : this[hi[0]] = Gi ? hi[1].call(this, Gi, hi[2]) : u : hi.length === 4 && (this[hi[0]] = Gi ? hi[3].call(this, Gi.replace(hi[1], hi[2])) : u) : this[hi] = Gi || u;
|
|
31122
31121
|
_i += 2;
|
|
31123
31122
|
}
|
|
31124
31123
|
}, q = function(Ct, ti) {
|
|
31125
31124
|
for (var ui in ti)
|
|
31126
31125
|
if (typeof ti[ui] === ie && 0 < ti[ui].length) {
|
|
31127
|
-
for (var
|
|
31128
|
-
if (mi(ti[ui][
|
|
31126
|
+
for (var qi = 0; qi < ti[ui].length; qi++)
|
|
31127
|
+
if (mi(ti[ui][qi], Ct))
|
|
31129
31128
|
return ui === E ? u : ui;
|
|
31130
31129
|
} else if (mi(ti[ui], Ct))
|
|
31131
31130
|
return ui === E ? u : ui;
|
|
31132
31131
|
return ti.hasOwnProperty("*") ? ti["*"] : Ct;
|
|
31133
|
-
}, ae = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, de = { embedded: "Automotive", mobile: "Mobile", tablet: ["Tablet", "EInk"], smarttv: "TV", wearable: "Watch", xr: ["VR", "XR"], "?": ["Desktop", "Unknown"], "*": u }, Re = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [we, [ee, On + "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [we, [ee, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [ee, we], [/opios[\/ ]+([\w\.]+)/i], [we, [ee, an + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [we, [ee, an + " GX"]], [/\bopr\/([\w\.]+)/i], [we, [ee, an]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [we, [ee, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [we, [ee, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i, /(heytap|ovi|115|surf)browser\/([\d\.]+)/i, /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i], [ee, we], [/quark(?:pc)?\/([-\w\.]+)/i], [we, [ee, "Quark"]], [/\bddg\/([\w\.]+)/i], [we, [ee, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [we, [ee, "UCBrowser"]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [we, [ee, "WeChat"]], [/konqueror\/([\w\.]+)/i], [we, [ee, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [we, [ee, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [we, [ee, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [we, [ee, "Smart Lenovo" + _t]], [/(avast|avg)\/([\w\.]+)/i], [[ee, /(.+)/, "$1 Secure" + _t], we], [/\bfocus\/([\w\.]+)/i], [we, [ee, Ki + " Focus"]], [/\bopt\/([\w\.]+)/i], [we, [ee, an + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [we, [ee, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [we, [ee, "Dolphin"]], [/coast\/([\w\.]+)/i], [we, [ee, an + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [we, [ee, "MIUI" + _t]], [/fxios\/([\w\.-]+)/i], [we, [ee, On + Ki]], [/\bqihoobrowser\/?([\w\.]*)/i], [we, [ee, "360"]], [/\b(qq)\/([\w\.]+)/i], [[ee, /(.+)/, "$1Browser"], we], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[ee, /(.+)/, "$1" + _t], we], [/samsungbrowser\/([\w\.]+)/i], [we, [ee, zi + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [we, [ee, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[ee, "Sogou Mobile"], we], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [ee, we], [/(lbbrowser|rekonq)/i], [ee], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [we, ee], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[ee, en], we, [re, qt]], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(instagram|snapchat)[\/ ]([-\w\.]+)/i], [ee, we, [re, qt]], [/\bgsa\/([\w\.]+) .*safari\//i], [we, [ee, "GSA"], [re, qt]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [we, [ee, "TikTok"], [re, qt]], [/\[(linkedin)app\]/i], [ee, [re, qt]], [/(chromium)[\/ ]([-\w\.]+)/i], [ee, we], [/headlesschrome(?:\/([\w\.]+)| )/i], [we, [ee, "Chrome Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[ee, "Chrome WebView"], we], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [we, [ee, "Android" + _t]], [/chrome\/([\w\.]+) mobile/i], [we, [ee, On + "Chrome"]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [ee, we], [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], [we, [ee, On + "Safari"]], [/iphone .*mobile(?:\/\w+ | ?)safari/i], [[ee, On + "Safari"]], [/version\/([\w\.\,]+) .*(safari)/i], [we, ee], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [ee, [we, "1"]], [/(webkit|khtml)\/([\w\.]+)/i], [ee, we], [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], [[ee, On + Ki], we], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[ee, "Netscape"], we], [/(wolvic|librewolf)\/([\w\.]+)/i], [ee, we], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [we, [ee, Ki + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [ee, [we, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [ee, [we, /[^\d\.]+./, a]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[We, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[We, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[We, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[We, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[We, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[We, /ower/, a, tn]], [/ sun4\w[;\)]/i], [[We, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[We, tn]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [$e, [Me, zi], [re, jt]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [$e, [Me, zi], [re, ut]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [$e, [Me, Fe], [re, ut]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [$e, [Me, Fe], [re, jt]], [/(macintosh);/i], [$e, [Me, Fe]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [$e, [Me, "Sharp"], [re, ut]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [$e, [Me, "Honor"], [re, jt]], [/honor([-\w ]+)[;\)]/i], [$e, [Me, "Honor"], [re, ut]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [$e, [Me, Et], [re, jt]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [$e, [Me, Et], [re, ut]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[$e, /_/g, " "], [Me, Ht], [re, jt]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[$e, /_/g, " "], [Me, Ht], [re, ut]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [$e, [Me, xi], [re, ut]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [$e, [Me, q, { OnePlus: ["304", "403", "203"], "*": xi }], [re, jt]], [/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i], [$e, [Me, "BLU"], [re, ut]], [/; vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [$e, [Me, "Vivo"], [re, ut]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [$e, [Me, "Realme"], [re, ut]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [$e, [Me, ei], [re, ut]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [$e, [Me, ei], [re, jt]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [$e, [Me, "LG"], [re, jt]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i, /\blg-?([\d\w]+) bui/i], [$e, [Me, "LG"], [re, ut]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [$e, [Me, "Lenovo"], [re, jt]], [/(nokia) (t[12][01])/i], [Me, $e, [re, jt]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[$e, /_/g, " "], [re, ut], [Me, "Nokia"]], [/(pixel (c|tablet))\b/i], [$e, [Me, Mt], [re, jt]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [$e, [Me, Mt], [re, ut]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [$e, [Me, Ii], [re, ut]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[$e, "Xperia Tablet"], [Me, Ii], [re, jt]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [$e, [Me, si], [re, ut]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [$e, [Me, Xe], [re, jt]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[$e, /(.+)/g, "Fire Phone $1"], [Me, Xe], [re, ut]], [/(playbook);[-\w\),; ]+(rim)/i], [$e, Me, [re, jt]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [$e, [Me, pt], [re, ut]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [$e, [Me, rt], [re, jt]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [$e, [Me, rt], [re, ut]], [/(nexus 9)/i], [$e, [Me, "HTC"], [re, jt]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [Me, [$e, /_/g, " "], [re, ut]], [/tcl (xess p17aa)/i, /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i], [$e, [Me, "TCL"], [re, jt]], [/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i], [$e, [Me, "TCL"], [re, ut]], [/(itel) ((\w+))/i], [[Me, tn], $e, [re, q, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [$e, [Me, "Acer"], [re, jt]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [$e, [Me, "Meizu"], [re, ut]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [$e, [Me, "Ulefone"], [re, ut]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [$e, [Me, "Energizer"], [re, ut]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [$e, [Me, "Cat"], [re, ut]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [$e, [Me, "Smartfren"], [re, ut]], [/droid.+; (a(?:015|06[35]|142p?))/i], [$e, [Me, "Nothing"], [re, ut]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [$e, [Me, "Archos"], [re, jt]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [$e, [Me, "Archos"], [re, ut]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [Me, $e, [re, jt]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [Me, $e, [re, ut]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i], [Me, $e, [re, jt]], [/(surface duo)/i], [$e, [Me, di], [re, jt]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [$e, [Me, "Fairphone"], [re, ut]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [$e, [Me, Di], [re, jt]], [/(sprint) (\w+)/i], [Me, $e, [re, ut]], [/(kin\.[onetw]{3})/i], [[$e, /\./g, " "], [Me, di], [re, ut]], [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [$e, [Me, ci], [re, jt]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [$e, [Me, ci], [re, ut]], [/smart-tv.+(samsung)/i], [Me, [re, St]], [/hbbtv.+maple;(\d+)/i], [[$e, /^/, "SmartTV"], [Me, zi], [re, St]], [/tcast.+(lg)e?. ([-\w]+)/i], [Me, $e, [re, St]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[Me, "LG"], [re, St]], [/(apple) ?tv/i], [Me, [$e, Fe + " TV"], [re, St]], [/crkey.*devicetype\/chromecast/i], [[$e, Ei + " Third Generation"], [Me, Mt], [re, St]], [/crkey.*devicetype\/([^/]*)/i], [[$e, /^/, "Chromecast "], [Me, Mt], [re, St]], [/fuchsia.*crkey/i], [[$e, Ei + " Nest Hub"], [Me, Mt], [re, St]], [/crkey/i], [[$e, Ei], [Me, Mt], [re, St]], [/(portaltv)/i], [$e, [Me, en], [re, St]], [/droid.+aft(\w+)( bui|\))/i], [$e, [Me, Xe], [re, St]], [/(shield \w+ tv)/i], [$e, [Me, Di], [re, St]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [$e, [Me, "Sharp"], [re, St]], [/(bravia[\w ]+)( bui|\))/i], [$e, [Me, Ii], [re, St]], [/(mi(tv|box)-?\w+) bui/i], [$e, [Me, Ht], [re, St]], [/Hbbtv.*(technisat) (.*);/i], [Me, $e, [re, St]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[Me, xr], [$e, xr], [re, St]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [$e, [re, St]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[re, St]], [/(ouya)/i, /(nintendo) (\w+)/i], [Me, $e, [re, xt]], [/droid.+; (shield)( bui|\))/i], [$e, [Me, Di], [re, xt]], [/(playstation \w+)/i], [$e, [Me, Ii], [re, xt]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [$e, [Me, di], [re, xt]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [$e, [Me, zi], [re, Jt]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [Me, $e, [re, Jt]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [$e, [Me, xi], [re, Jt]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [$e, [Me, Fe], [re, Jt]], [/(opwwe\d{3})/i], [$e, [Me, si], [re, Jt]], [/(moto 360)/i], [$e, [Me, ei], [re, Jt]], [/(smartwatch 3)/i], [$e, [Me, Ii], [re, Jt]], [/(g watch r)/i], [$e, [Me, "LG"], [re, Jt]], [/droid.+; (wt63?0{2,3})\)/i], [$e, [Me, ci], [re, Jt]], [/droid.+; (glass) \d/i], [$e, [Me, Mt], [re, Tt]], [/(pico) (4|neo3(?: link|pro)?)/i], [Me, $e, [re, Tt]], [/(quest( \d| pro)?s?).+vr/i], [$e, [Me, en], [re, Tt]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [Me, [re, bt]], [/(aeobc)\b/i], [$e, [Me, Xe], [re, bt]], [/(homepod).+mac os/i], [$e, [Me, Fe], [re, bt]], [/windows iot/i], [[re, bt]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], [$e, [re, q, { mobile: "Mobile", xr: "VR", "*": jt }]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[re, jt]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[re, ut]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [$e, [Me, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [we, [ee, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [ee, we], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [we, [ee, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [ee, we], [/ladybird\//i], [[ee, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [we, ee]], os: [[/microsoft (windows) (vista|xp)/i], [ee, we], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [ee, [we, q, ae]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[we, q, ae], [ee, gt]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[we, /_/g, "."], [ee, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[ee, "macOS"], [we, /_/g, "."]], [/android ([\d\.]+).*crkey/i], [we, [ee, Ei + " Android"]], [/fuchsia.*crkey\/([\d\.]+)/i], [we, [ee, Ei + " Fuchsia"]], [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], [we, [ee, Ei + " SmartSpeaker"]], [/linux.*crkey\/([\d\.]+)/i], [we, [ee, Ei + " Linux"]], [/crkey\/([\d\.]+)/i], [we, [ee, Ei]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [we, ee], [/(ubuntu) ([\w\.]+) like android/i], [[ee, /(.+)/, "$1 Touch"], we], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i], [ee, we], [/\(bb(10);/i], [we, [ee, pt]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [we, [ee, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [we, [ee, Ki + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [we, [ee, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [we, [ee, "watchOS"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[ee, "Chrome OS"], we], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) (\w+)/i, /(xbox); +xbox ([^\);]+)/i, /(pico) .+os([\w\.]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [ee, we], [/(sunos) ?([\w\.\d]*)/i], [[ee, "Solaris"], we], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [ee, we]] }, Oe = (an = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} }, Dt.call(an.init, [[le, [ee, we, ot, re]], [fe, [We]], [ve, [re, $e, Me]], [Ze, [ee, we]], [me, [ee, we]]]), Dt.call(an.isIgnore, [[le, [we, ot]], [Ze, [we]], [me, [we]]]), Dt.call(an.isIgnoreRgx, [[le, / ?browser$/i], [me, / ?os$/i]]), Dt.call(an.toString, [[le, [ee, we]], [fe, [We]], [ve, [Me, $e]], [Ze, [ee, we]], [me, [ee, we]]]), an), Le = function(Ct, ti) {
|
|
31134
|
-
var ui = Oe.init[ti],
|
|
31132
|
+
}, ae = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, de = { embedded: "Automotive", mobile: "Mobile", tablet: ["Tablet", "EInk"], smarttv: "TV", wearable: "Watch", xr: ["VR", "XR"], "?": ["Desktop", "Unknown"], "*": u }, Re = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [we, [ee, On + "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [we, [ee, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [ee, we], [/opios[\/ ]+([\w\.]+)/i], [we, [ee, sn + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [we, [ee, sn + " GX"]], [/\bopr\/([\w\.]+)/i], [we, [ee, sn]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [we, [ee, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [we, [ee, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i, /(heytap|ovi|115|surf)browser\/([\d\.]+)/i, /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i], [ee, we], [/quark(?:pc)?\/([-\w\.]+)/i], [we, [ee, "Quark"]], [/\bddg\/([\w\.]+)/i], [we, [ee, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [we, [ee, "UCBrowser"]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [we, [ee, "WeChat"]], [/konqueror\/([\w\.]+)/i], [we, [ee, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [we, [ee, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [we, [ee, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [we, [ee, "Smart Lenovo" + _t]], [/(avast|avg)\/([\w\.]+)/i], [[ee, /(.+)/, "$1 Secure" + _t], we], [/\bfocus\/([\w\.]+)/i], [we, [ee, Wi + " Focus"]], [/\bopt\/([\w\.]+)/i], [we, [ee, sn + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [we, [ee, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [we, [ee, "Dolphin"]], [/coast\/([\w\.]+)/i], [we, [ee, sn + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [we, [ee, "MIUI" + _t]], [/fxios\/([\w\.-]+)/i], [we, [ee, On + Wi]], [/\bqihoobrowser\/?([\w\.]*)/i], [we, [ee, "360"]], [/\b(qq)\/([\w\.]+)/i], [[ee, /(.+)/, "$1Browser"], we], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[ee, /(.+)/, "$1" + _t], we], [/samsungbrowser\/([\w\.]+)/i], [we, [ee, zi + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [we, [ee, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[ee, "Sogou Mobile"], we], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [ee, we], [/(lbbrowser|rekonq)/i], [ee], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [we, ee], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[ee, ln], we, [re, qt]], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(instagram|snapchat)[\/ ]([-\w\.]+)/i], [ee, we, [re, qt]], [/\bgsa\/([\w\.]+) .*safari\//i], [we, [ee, "GSA"], [re, qt]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [we, [ee, "TikTok"], [re, qt]], [/\[(linkedin)app\]/i], [ee, [re, qt]], [/(chromium)[\/ ]([-\w\.]+)/i], [ee, we], [/headlesschrome(?:\/([\w\.]+)| )/i], [we, [ee, "Chrome Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[ee, "Chrome WebView"], we], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [we, [ee, "Android" + _t]], [/chrome\/([\w\.]+) mobile/i], [we, [ee, On + "Chrome"]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [ee, we], [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], [we, [ee, On + "Safari"]], [/iphone .*mobile(?:\/\w+ | ?)safari/i], [[ee, On + "Safari"]], [/version\/([\w\.\,]+) .*(safari)/i], [we, ee], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [ee, [we, "1"]], [/(webkit|khtml)\/([\w\.]+)/i], [ee, we], [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], [[ee, On + Wi], we], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[ee, "Netscape"], we], [/(wolvic|librewolf)\/([\w\.]+)/i], [ee, we], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [we, [ee, Wi + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [ee, [we, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [ee, [we, /[^\d\.]+./, a]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[We, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[We, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[We, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[We, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[We, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[We, /ower/, a, en]], [/ sun4\w[;\)]/i], [[We, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[We, en]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [$e, [Me, zi], [re, jt]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [$e, [Me, zi], [re, ut]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [$e, [Me, Fe], [re, ut]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [$e, [Me, Fe], [re, jt]], [/(macintosh);/i], [$e, [Me, Fe]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [$e, [Me, "Sharp"], [re, ut]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [$e, [Me, "Honor"], [re, jt]], [/honor([-\w ]+)[;\)]/i], [$e, [Me, "Honor"], [re, ut]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [$e, [Me, Et], [re, jt]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [$e, [Me, Et], [re, ut]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[$e, /_/g, " "], [Me, Ht], [re, jt]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[$e, /_/g, " "], [Me, Ht], [re, ut]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [$e, [Me, xi], [re, ut]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [$e, [Me, q, { OnePlus: ["304", "403", "203"], "*": xi }], [re, jt]], [/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i], [$e, [Me, "BLU"], [re, ut]], [/; vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [$e, [Me, "Vivo"], [re, ut]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [$e, [Me, "Realme"], [re, ut]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [$e, [Me, ei], [re, ut]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [$e, [Me, ei], [re, jt]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [$e, [Me, "LG"], [re, jt]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i, /\blg-?([\d\w]+) bui/i], [$e, [Me, "LG"], [re, ut]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [$e, [Me, "Lenovo"], [re, jt]], [/(nokia) (t[12][01])/i], [Me, $e, [re, jt]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[$e, /_/g, " "], [re, ut], [Me, "Nokia"]], [/(pixel (c|tablet))\b/i], [$e, [Me, Mt], [re, jt]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [$e, [Me, Mt], [re, ut]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [$e, [Me, Ii], [re, ut]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[$e, "Xperia Tablet"], [Me, Ii], [re, jt]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [$e, [Me, si], [re, ut]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [$e, [Me, Xe], [re, jt]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[$e, /(.+)/g, "Fire Phone $1"], [Me, Xe], [re, ut]], [/(playbook);[-\w\),; ]+(rim)/i], [$e, Me, [re, jt]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [$e, [Me, pt], [re, ut]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [$e, [Me, rt], [re, jt]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [$e, [Me, rt], [re, ut]], [/(nexus 9)/i], [$e, [Me, "HTC"], [re, jt]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [Me, [$e, /_/g, " "], [re, ut]], [/tcl (xess p17aa)/i, /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i], [$e, [Me, "TCL"], [re, jt]], [/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i], [$e, [Me, "TCL"], [re, ut]], [/(itel) ((\w+))/i], [[Me, en], $e, [re, q, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [$e, [Me, "Acer"], [re, jt]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [$e, [Me, "Meizu"], [re, ut]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [$e, [Me, "Ulefone"], [re, ut]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [$e, [Me, "Energizer"], [re, ut]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [$e, [Me, "Cat"], [re, ut]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [$e, [Me, "Smartfren"], [re, ut]], [/droid.+; (a(?:015|06[35]|142p?))/i], [$e, [Me, "Nothing"], [re, ut]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [$e, [Me, "Archos"], [re, jt]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [$e, [Me, "Archos"], [re, ut]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [Me, $e, [re, jt]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [Me, $e, [re, ut]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i], [Me, $e, [re, jt]], [/(surface duo)/i], [$e, [Me, di], [re, jt]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [$e, [Me, "Fairphone"], [re, ut]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [$e, [Me, Di], [re, jt]], [/(sprint) (\w+)/i], [Me, $e, [re, ut]], [/(kin\.[onetw]{3})/i], [[$e, /\./g, " "], [Me, di], [re, ut]], [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [$e, [Me, ci], [re, jt]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [$e, [Me, ci], [re, ut]], [/smart-tv.+(samsung)/i], [Me, [re, St]], [/hbbtv.+maple;(\d+)/i], [[$e, /^/, "SmartTV"], [Me, zi], [re, St]], [/tcast.+(lg)e?. ([-\w]+)/i], [Me, $e, [re, St]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[Me, "LG"], [re, St]], [/(apple) ?tv/i], [Me, [$e, Fe + " TV"], [re, St]], [/crkey.*devicetype\/chromecast/i], [[$e, Ei + " Third Generation"], [Me, Mt], [re, St]], [/crkey.*devicetype\/([^/]*)/i], [[$e, /^/, "Chromecast "], [Me, Mt], [re, St]], [/fuchsia.*crkey/i], [[$e, Ei + " Nest Hub"], [Me, Mt], [re, St]], [/crkey/i], [[$e, Ei], [Me, Mt], [re, St]], [/(portaltv)/i], [$e, [Me, ln], [re, St]], [/droid.+aft(\w+)( bui|\))/i], [$e, [Me, Xe], [re, St]], [/(shield \w+ tv)/i], [$e, [Me, Di], [re, St]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [$e, [Me, "Sharp"], [re, St]], [/(bravia[\w ]+)( bui|\))/i], [$e, [Me, Ii], [re, St]], [/(mi(tv|box)-?\w+) bui/i], [$e, [Me, Ht], [re, St]], [/Hbbtv.*(technisat) (.*);/i], [Me, $e, [re, St]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[Me, xr], [$e, xr], [re, St]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [$e, [re, St]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[re, St]], [/(ouya)/i, /(nintendo) (\w+)/i], [Me, $e, [re, xt]], [/droid.+; (shield)( bui|\))/i], [$e, [Me, Di], [re, xt]], [/(playstation \w+)/i], [$e, [Me, Ii], [re, xt]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [$e, [Me, di], [re, xt]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [$e, [Me, zi], [re, Jt]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [Me, $e, [re, Jt]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [$e, [Me, xi], [re, Jt]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [$e, [Me, Fe], [re, Jt]], [/(opwwe\d{3})/i], [$e, [Me, si], [re, Jt]], [/(moto 360)/i], [$e, [Me, ei], [re, Jt]], [/(smartwatch 3)/i], [$e, [Me, Ii], [re, Jt]], [/(g watch r)/i], [$e, [Me, "LG"], [re, Jt]], [/droid.+; (wt63?0{2,3})\)/i], [$e, [Me, ci], [re, Jt]], [/droid.+; (glass) \d/i], [$e, [Me, Mt], [re, Tt]], [/(pico) (4|neo3(?: link|pro)?)/i], [Me, $e, [re, Tt]], [/(quest( \d| pro)?s?).+vr/i], [$e, [Me, ln], [re, Tt]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [Me, [re, bt]], [/(aeobc)\b/i], [$e, [Me, Xe], [re, bt]], [/(homepod).+mac os/i], [$e, [Me, Fe], [re, bt]], [/windows iot/i], [[re, bt]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], [$e, [re, q, { mobile: "Mobile", xr: "VR", "*": jt }]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[re, jt]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[re, ut]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [$e, [Me, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [we, [ee, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [ee, we], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [we, [ee, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [ee, we], [/ladybird\//i], [[ee, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [we, ee]], os: [[/microsoft (windows) (vista|xp)/i], [ee, we], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [ee, [we, q, ae]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[we, q, ae], [ee, gt]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[we, /_/g, "."], [ee, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[ee, "macOS"], [we, /_/g, "."]], [/android ([\d\.]+).*crkey/i], [we, [ee, Ei + " Android"]], [/fuchsia.*crkey\/([\d\.]+)/i], [we, [ee, Ei + " Fuchsia"]], [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], [we, [ee, Ei + " SmartSpeaker"]], [/linux.*crkey\/([\d\.]+)/i], [we, [ee, Ei + " Linux"]], [/crkey\/([\d\.]+)/i], [we, [ee, Ei]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [we, ee], [/(ubuntu) ([\w\.]+) like android/i], [[ee, /(.+)/, "$1 Touch"], we], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i], [ee, we], [/\(bb(10);/i], [we, [ee, pt]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [we, [ee, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [we, [ee, Wi + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [we, [ee, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [we, [ee, "watchOS"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[ee, "Chrome OS"], we], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) (\w+)/i, /(xbox); +xbox ([^\);]+)/i, /(pico) .+os([\w\.]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [ee, we], [/(sunos) ?([\w\.\d]*)/i], [[ee, "Solaris"], we], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [ee, we]] }, Oe = (sn = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} }, Dt.call(sn.init, [[le, [ee, we, ot, re]], [fe, [We]], [ve, [re, $e, Me]], [Ze, [ee, we]], [me, [ee, we]]]), Dt.call(sn.isIgnore, [[le, [we, ot]], [Ze, [we]], [me, [we]]]), Dt.call(sn.isIgnoreRgx, [[le, / ?browser$/i], [me, / ?os$/i]]), Dt.call(sn.toString, [[le, [ee, we]], [fe, [We]], [ve, [Me, $e]], [Ze, [ee, we]], [me, [ee, we]]]), sn), Le = function(Ct, ti) {
|
|
31133
|
+
var ui = Oe.init[ti], qi = Oe.isIgnore[ti] || 0, hi = Oe.isIgnoreRgx[ti] || 0, Pi = Oe.toString[ti] || 0;
|
|
31135
31134
|
function Gi() {
|
|
31136
31135
|
Dt.call(this, ui);
|
|
31137
31136
|
}
|
|
@@ -31146,7 +31145,7 @@ var R3 = $1(function(e, i) {
|
|
|
31146
31145
|
}, ti != te && (Gi.prototype.is = function(_i) {
|
|
31147
31146
|
var Ri, Zi = !1;
|
|
31148
31147
|
for (Ri in this)
|
|
31149
|
-
if (this.hasOwnProperty(Ri) && !mi(
|
|
31148
|
+
if (this.hasOwnProperty(Ri) && !mi(qi, Ri) && en(hi ? Vn(hi, this[Ri]) : this[Ri]) == en(hi ? Vn(hi, _i) : _i)) {
|
|
31150
31149
|
if (Zi = !0, _i != V)
|
|
31151
31150
|
break;
|
|
31152
31151
|
} else if (_i == V && Zi) {
|
|
@@ -31175,7 +31174,7 @@ var R3 = $1(function(e, i) {
|
|
|
31175
31174
|
for (var ui in Ct)
|
|
31176
31175
|
this.hasOwnProperty(ui) && typeof Ct[ui] !== V && (this[ui] = Ct[ui]);
|
|
31177
31176
|
}
|
|
31178
|
-
function Ve(Ct, ti, ui,
|
|
31177
|
+
function Ve(Ct, ti, ui, qi) {
|
|
31179
31178
|
return this.get = function(hi) {
|
|
31180
31179
|
return hi ? this.data.hasOwnProperty(hi) ? this.data[hi] : u : this.data;
|
|
31181
31180
|
}, this.set = function(hi, Pi) {
|
|
@@ -31212,7 +31211,7 @@ var R3 = $1(function(e, i) {
|
|
|
31212
31211
|
if (Ri)
|
|
31213
31212
|
for (var Zi in Ri) {
|
|
31214
31213
|
var dn = Ri[Zi].brand || Ri[Zi], Zi = Ri[Zi].version;
|
|
31215
|
-
this.itemType != le || /not.a.brand/i.test(dn) || _i && (!/chrom/i.test(_i) || dn ==
|
|
31214
|
+
this.itemType != le || /not.a.brand/i.test(dn) || _i && (!/chrom/i.test(_i) || dn == bi) || (dn = q(dn, { Chrome: "Google Chrome", Edge: "Microsoft Edge", "Chrome WebView": "Android WebView", "Chrome Headless": "HeadlessChrome", "Huawei Browser": "HuaweiBrowser", "MIUI Browser": "Miui Browser", "Opera Mobi": "OperaMobile", Yandex: "YaBrowser" }), this.set(ee, dn).set(we, Zi).set(ot, wn(Zi)), _i = dn), this.itemType == Ze && dn == bi && this.set(we, Zi);
|
|
31216
31215
|
}
|
|
31217
31216
|
break;
|
|
31218
31217
|
case fe:
|
|
@@ -31240,13 +31239,13 @@ var R3 = $1(function(e, i) {
|
|
|
31240
31239
|
this.set(le, Rn(le)).set(fe, Rn(fe)).set(ve, Rn(ve)).set(Ze, Rn(Ze)).set(me, Rn(me));
|
|
31241
31240
|
}
|
|
31242
31241
|
return this;
|
|
31243
|
-
}, Dt.call(this, [["itemType", Ct], ["ua", ti], ["uaCH",
|
|
31242
|
+
}, Dt.call(this, [["itemType", Ct], ["ua", ti], ["uaCH", qi], ["rgxMap", ui], ["data", Le(this, Ct)]]), this;
|
|
31244
31243
|
}
|
|
31245
31244
|
function at(Ct, ti, ui) {
|
|
31246
|
-
var
|
|
31247
|
-
return typeof Ct === ie ? (ti = Ai(Ct, !0) ? (typeof ti === ie && (ui = ti), Ct) : (ui = Ct, u), Ct = u) : typeof Ct !== G || Ai(ti, !0) || (ui = ti, ti = u), ui && typeof ui.append === j && (
|
|
31248
|
-
|
|
31249
|
-
}), ui =
|
|
31245
|
+
var qi, hi, Pi, Gi, _i;
|
|
31246
|
+
return typeof Ct === ie ? (ti = Ai(Ct, !0) ? (typeof ti === ie && (ui = ti), Ct) : (ui = Ct, u), Ct = u) : typeof Ct !== G || Ai(ti, !0) || (ui = ti, ti = u), ui && typeof ui.append === j && (qi = {}, ui.forEach(function(Ri, Zi) {
|
|
31247
|
+
qi[Zi] = Ri;
|
|
31248
|
+
}), ui = qi), this instanceof at ? (hi = typeof Ct === G ? Ct : ui && ui[b] ? ui[b] : Yt && Yt.userAgent ? Yt.userAgent : a, Pi = new st(ui, !0), Gi = ti ? ((Ri, Zi) => {
|
|
31250
31249
|
var dn, mn = {}, zn = Zi;
|
|
31251
31250
|
if (!Ai(Zi))
|
|
31252
31251
|
for (var ar in zn = {}, Zi)
|
|
@@ -33279,23 +33278,23 @@ var fj = { exports: {} };
|
|
|
33279
33278
|
return s[0] = c * M - g * x, s[1] = h * M + m * x, s[2] = g * M + c * x, s[3] = m * M - h * x, s;
|
|
33280
33279
|
}
|
|
33281
33280
|
ut(), Mt();
|
|
33282
|
-
var Ii, Ht, ci,
|
|
33281
|
+
var Ii, Ht, ci, bi = di, Ei = (Ii = ut(), Ht = Jt(1, 0, 0), ci = Jt(0, 1, 0), function(s, t, r) {
|
|
33283
33282
|
var c = se(t, r);
|
|
33284
33283
|
return c < -0.999999 ? (he(Ii, Ht, t), pt(Ii) < 1e-6 && he(Ii, ci, t), Z(Ii, Ii), function(h, g, m) {
|
|
33285
33284
|
m *= 0.5;
|
|
33286
33285
|
var x = Math.sin(m);
|
|
33287
33286
|
h[0] = x * g[0], h[1] = x * g[1], h[2] = x * g[2], h[3] = Math.cos(m);
|
|
33288
|
-
}(s, Ii, Math.PI), s) : c > 0.999999 ? (s[0] = 0, s[1] = 0, s[2] = 0, s[3] = 1, s) : (he(Ii, t, r), s[0] = Ii[0], s[1] = Ii[1], s[2] = Ii[2], s[3] = 1 + c,
|
|
33287
|
+
}(s, Ii, Math.PI), s) : c > 0.999999 ? (s[0] = 0, s[1] = 0, s[2] = 0, s[3] = 1, s) : (he(Ii, t, r), s[0] = Ii[0], s[1] = Ii[1], s[2] = Ii[2], s[3] = 1 + c, bi(s, s));
|
|
33289
33288
|
});
|
|
33290
|
-
function
|
|
33289
|
+
function Wi() {
|
|
33291
33290
|
var s = new j(2);
|
|
33292
33291
|
return j != Float32Array && (s[0] = 0, s[1] = 0), s;
|
|
33293
33292
|
}
|
|
33294
|
-
function
|
|
33293
|
+
function sn(s, t) {
|
|
33295
33294
|
var r = new j(2);
|
|
33296
33295
|
return r[0] = s, r[1] = t, r;
|
|
33297
33296
|
}
|
|
33298
|
-
function
|
|
33297
|
+
function ln(s, t, r) {
|
|
33299
33298
|
return s[0] = t, s[1] = r, s;
|
|
33300
33299
|
}
|
|
33301
33300
|
function On(s, t, r) {
|
|
@@ -33323,8 +33322,8 @@ var fj = { exports: {} };
|
|
|
33323
33322
|
function hn(s) {
|
|
33324
33323
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
33325
33324
|
}
|
|
33326
|
-
|
|
33327
|
-
var
|
|
33325
|
+
Wi();
|
|
33326
|
+
var en = function() {
|
|
33328
33327
|
if (Ai)
|
|
33329
33328
|
return mi;
|
|
33330
33329
|
function s(t, r, c, h) {
|
|
@@ -33357,7 +33356,7 @@ var fj = { exports: {} };
|
|
|
33357
33356
|
}, solve: function(t, r) {
|
|
33358
33357
|
return this.sampleCurveY(this.solveCurveX(t, r));
|
|
33359
33358
|
} }, mi;
|
|
33360
|
-
}(), wn = hn(
|
|
33359
|
+
}(), wn = hn(en);
|
|
33361
33360
|
function Dt(s, t) {
|
|
33362
33361
|
this.x = s, this.y = t;
|
|
33363
33362
|
}
|
|
@@ -33523,7 +33522,7 @@ var fj = { exports: {} };
|
|
|
33523
33522
|
c[h] = t.call(this, s[h], h, s);
|
|
33524
33523
|
return c;
|
|
33525
33524
|
}
|
|
33526
|
-
function
|
|
33525
|
+
function qi(s, t, r) {
|
|
33527
33526
|
const c = {};
|
|
33528
33527
|
for (const h in s)
|
|
33529
33528
|
t.call(this, s[h], h, s) && (c[h] = s[h]);
|
|
@@ -34412,7 +34411,7 @@ var fj = { exports: {} };
|
|
|
34412
34411
|
}
|
|
34413
34412
|
}
|
|
34414
34413
|
const Th = { string: Kn, number: Vi, boolean: ir, object: ac };
|
|
34415
|
-
class
|
|
34414
|
+
class nn {
|
|
34416
34415
|
constructor(t, r) {
|
|
34417
34416
|
this.type = t, this.args = r;
|
|
34418
34417
|
}
|
|
@@ -34445,7 +34444,7 @@ var fj = { exports: {} };
|
|
|
34445
34444
|
return null;
|
|
34446
34445
|
m.push(x);
|
|
34447
34446
|
}
|
|
34448
|
-
return new
|
|
34447
|
+
return new nn(c, m);
|
|
34449
34448
|
}
|
|
34450
34449
|
evaluate(t) {
|
|
34451
34450
|
for (let r = 0; r < this.args.length; r++) {
|
|
@@ -35847,7 +35846,7 @@ var fj = { exports: {} };
|
|
|
35847
35846
|
}
|
|
35848
35847
|
_parse(t, r) {
|
|
35849
35848
|
function c(h, g, m) {
|
|
35850
|
-
return m === "assert" ? new
|
|
35849
|
+
return m === "assert" ? new nn(g, [h]) : m === "coerce" ? new Zr(g, [h]) : h;
|
|
35851
35850
|
}
|
|
35852
35851
|
if (t !== null && typeof t != "string" && typeof t != "boolean" && typeof t != "number" || (t = ["literal", t]), Array.isArray(t)) {
|
|
35853
35852
|
if (t.length === 0)
|
|
@@ -35902,7 +35901,7 @@ var fj = { exports: {} };
|
|
|
35902
35901
|
return Hg(s.boundExpression);
|
|
35903
35902
|
if (s instanceof Ko && s.name === "error" || s instanceof Ao || s instanceof uc || s instanceof hc || s instanceof du)
|
|
35904
35903
|
return !1;
|
|
35905
|
-
const t = s instanceof Zr || s instanceof
|
|
35904
|
+
const t = s instanceof Zr || s instanceof nn;
|
|
35906
35905
|
let r = !0;
|
|
35907
35906
|
return s.eachChild((c) => {
|
|
35908
35907
|
r = t ? r && Hg(c) : r && c instanceof bn;
|
|
@@ -36538,7 +36537,7 @@ var fj = { exports: {} };
|
|
|
36538
36537
|
return m.concat(2).error(`"${x}" comparisons are not supported for type '${Xr(D.type)}'.`);
|
|
36539
36538
|
if (M.type.kind !== D.type.kind && M.type.kind !== "value" && D.type.kind !== "value")
|
|
36540
36539
|
return m.error(`Cannot compare types '${Xr(M.type)}' and '${Xr(D.type)}'.`);
|
|
36541
|
-
c && (M.type.kind === "value" && D.type.kind !== "value" ? M = new
|
|
36540
|
+
c && (M.type.kind === "value" && D.type.kind !== "value" ? M = new nn(D.type, [M]) : M.type.kind !== "value" && D.type.kind === "value" && (D = new nn(M.type, [D])));
|
|
36542
36541
|
let A = null;
|
|
36543
36542
|
if (g.length === 4) {
|
|
36544
36543
|
if (M.type.kind !== "string" && D.type.kind !== "string" && M.type.kind !== "value" && D.type.kind !== "value")
|
|
@@ -36677,7 +36676,7 @@ var fj = { exports: {} };
|
|
|
36677
36676
|
return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
36678
36677
|
};
|
|
36679
36678
|
}
|
|
36680
|
-
const pu = { "==": rb, "!=": ob, ">": mf, "<": sb, ">=": lb, "<=": ab, array:
|
|
36679
|
+
const pu = { "==": rb, "!=": ob, ">": mf, "<": sb, ">=": lb, "<=": ab, array: nn, at: Zg, "at-interpolated": Wg, boolean: nn, case: qg, coalesce: zh, collator: Ao, format: lc, image: iu, in: gf, "index-of": Oh, interpolate: Os, "interpolate-hcl": Os, "interpolate-lab": Os, length: em, let: pf, literal: bn, match: fu, number: nn, "number-format": Jg, object: nn, slice: kh, step: Lh, string: nn, "to-boolean": Zr, "to-color": Zr, "to-number": Zr, "to-string": Zr, var: lf, within: uc, distance: hc, config: du, split: Kg };
|
|
36681
36680
|
function yy(s, [t, r, c, h]) {
|
|
36682
36681
|
t = t.evaluate(s), r = r.evaluate(s), c = c.evaluate(s);
|
|
36683
36682
|
const g = h ? h.evaluate(s) : 1, m = X1(t, r, c, g);
|
|
@@ -37785,7 +37784,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
37785
37784
|
}
|
|
37786
37785
|
serialize() {
|
|
37787
37786
|
const t = { 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() };
|
|
37788
|
-
return this.appearances.length !== 0 && (t.appearances = this.appearances.map((r) => r.serialize())),
|
|
37787
|
+
return this.appearances.length !== 0 && (t.appearances = this.appearances.map((r) => r.serialize())), qi(t, (r, c) => !(r === void 0 || c === "layout" && !Object.keys(r).length || c === "paint" && !Object.keys(r).length));
|
|
37789
37788
|
}
|
|
37790
37789
|
is3D(t) {
|
|
37791
37790
|
return !1;
|
|
@@ -39631,7 +39630,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39631
39630
|
}, xn.getPoint).success());
|
|
39632
39631
|
class xn {
|
|
39633
39632
|
static getPoint(t) {
|
|
39634
|
-
return
|
|
39633
|
+
return sn(t[0][0].x, t[0][0].y);
|
|
39635
39634
|
}
|
|
39636
39635
|
static decodeRelativeHeight(t) {
|
|
39637
39636
|
return 1e-4 * t * 5;
|
|
@@ -39759,7 +39758,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39759
39758
|
}
|
|
39760
39759
|
class In {
|
|
39761
39760
|
constructor(t, r) {
|
|
39762
|
-
this.points = t || new Array(8).fill([0, 0, 0]), this.planes = r || new Array(6).fill([0, 0, 0, 0]), this.bounds =
|
|
39761
|
+
this.points = t || new Array(8).fill([0, 0, 0]), this.planes = r || new Array(6).fill([0, 0, 0, 0]), this.bounds = rn.fromPoints(this.points), this.projections = [], this.frustumEdges = [Fe([], this.points[2], this.points[3]), Fe([], this.points[0], this.points[3]), Fe([], this.points[4], this.points[0]), Fe([], this.points[5], this.points[1]), Fe([], this.points[6], this.points[2]), Fe([], this.points[7], this.points[3])];
|
|
39763
39762
|
for (const c of this.frustumEdges) {
|
|
39764
39763
|
const h = [0, -c[2], c[1]], g = [c[2], 0, -c[0]];
|
|
39765
39764
|
this.projections.push({ axis: h, projection: Ir(this.points, this.points[0], h) }), this.projections.push({ axis: g, projection: Ir(this.points, this.points[0], g) });
|
|
@@ -39806,22 +39805,22 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39806
39805
|
return !0;
|
|
39807
39806
|
}
|
|
39808
39807
|
}
|
|
39809
|
-
class
|
|
39808
|
+
class rn {
|
|
39810
39809
|
static fromPoints(t) {
|
|
39811
39810
|
const r = [1 / 0, 1 / 0, 1 / 0], c = [-1 / 0, -1 / 0, -1 / 0];
|
|
39812
39811
|
for (const h of t)
|
|
39813
39812
|
Vt(r, r, h), W(c, c, h);
|
|
39814
|
-
return new
|
|
39813
|
+
return new rn(r, c);
|
|
39815
39814
|
}
|
|
39816
39815
|
static fromTileIdAndHeight(t, r, c) {
|
|
39817
39816
|
const h = 1 << t.canonical.z, g = t.canonical.x, m = t.canonical.y;
|
|
39818
|
-
return new
|
|
39817
|
+
return new rn([g / h, m / h, r], [(g + 1) / h, (m + 1) / h, c]);
|
|
39819
39818
|
}
|
|
39820
39819
|
static applyTransform(t, r) {
|
|
39821
39820
|
const c = t.getCorners();
|
|
39822
39821
|
for (let h = 0; h < c.length; ++h)
|
|
39823
39822
|
xe(c[h], c[h], r);
|
|
39824
|
-
return
|
|
39823
|
+
return rn.fromPoints(c);
|
|
39825
39824
|
}
|
|
39826
39825
|
static applyTransformFast(t, r) {
|
|
39827
39826
|
const c = [r[12], r[13], r[14]], h = [...c];
|
|
@@ -39830,7 +39829,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39830
39829
|
const x = r[4 * m + g], M = x * t.min[m], D = x * t.max[m];
|
|
39831
39830
|
c[g] += Math.min(M, D), h[g] += Math.max(M, D);
|
|
39832
39831
|
}
|
|
39833
|
-
return new
|
|
39832
|
+
return new rn(c, h);
|
|
39834
39833
|
}
|
|
39835
39834
|
static projectAabbCorners(t, r) {
|
|
39836
39835
|
const c = t.getCorners();
|
|
@@ -39845,7 +39844,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39845
39844
|
const r = [t % 2 == 0, t < 2], c = jt(this.min), h = jt(this.max);
|
|
39846
39845
|
for (let g = 0; g < r.length; g++)
|
|
39847
39846
|
c[g] = r[g] ? this.min[g] : this.center[g], h[g] = r[g] ? this.center[g] : this.max[g];
|
|
39848
|
-
return h[2] = this.max[2], new
|
|
39847
|
+
return h[2] = this.max[2], new rn(c, h);
|
|
39849
39848
|
}
|
|
39850
39849
|
distanceX(t) {
|
|
39851
39850
|
return Math.max(Math.min(this.max[0], t[0]), this.min[0]) - t[0];
|
|
@@ -39893,7 +39892,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39893
39892
|
return [Math.max(Math.min(this.max[0], t[0]), this.min[0]), Math.max(Math.min(this.max[1], t[1]), this.min[1]), Math.max(Math.min(this.max[2], t[2]), this.min[2])];
|
|
39894
39893
|
}
|
|
39895
39894
|
}
|
|
39896
|
-
Ti(
|
|
39895
|
+
Ti(rn, "Aabb");
|
|
39897
39896
|
class Jn {
|
|
39898
39897
|
constructor(t, r) {
|
|
39899
39898
|
this.feature = t, this.metersToTile = r, this.index = 0;
|
|
@@ -39911,15 +39910,15 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39911
39910
|
}
|
|
39912
39911
|
class Pr {
|
|
39913
39912
|
constructor(t, r, c, h, g, m) {
|
|
39914
|
-
if (this.vertices = new Array(), this.vertexProps = new Array(), this.edges = new Array(), this.edgeProps = new Array(), this._tmpVec2 = [
|
|
39913
|
+
if (this.vertices = new Array(), this.vertexProps = new Array(), this.edges = new Array(), this.edgeProps = new Array(), this._tmpVec2 = [Wi(), Wi(), Wi(), Wi(), Wi(), Wi(), Wi()], this.id = t, this.heightRange = { min: c, max: c }, this.safeArea = r, this.constantHeight = c, this.constantHeight == null && (this.constantHeight != null || h.length !== 0)) {
|
|
39915
39914
|
this.vertices = h, this.edges = g, this.edges = this.edges.filter((x) => {
|
|
39916
39915
|
return x.a < this.vertices.length && x.b < this.vertices.length && !((M = this.vertices[x.a].position)[0] === (D = this.vertices[x.b].position)[0] && M[1] === D[1]);
|
|
39917
39916
|
var M, D;
|
|
39918
39917
|
}), this.heightRange = { min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY };
|
|
39919
39918
|
for (const x of this.vertices)
|
|
39920
|
-
this.vertexProps.push({ dir:
|
|
39919
|
+
this.vertexProps.push({ dir: sn(0, 0) }), this.heightRange.min = Math.min(this.heightRange.min, x.height), this.heightRange.max = Math.max(this.heightRange.max, x.height);
|
|
39921
39920
|
for (const x of this.edges) {
|
|
39922
|
-
const M = this.vertices[x.a].position, D = this.vertices[x.b].position, A = _t(
|
|
39921
|
+
const M = this.vertices[x.a].position, D = this.vertices[x.b].position, A = _t(Wi(), D, M), C = oi(A), L = gt(Wi(), A, 1 / C);
|
|
39923
39922
|
this.edgeProps.push({ vec: A, dir: L, len: C });
|
|
39924
39923
|
const P = this.vertexProps[x.a].dir, R = this.vertexProps[x.b].dir;
|
|
39925
39924
|
On(P, P, L), On(R, R, L);
|
|
@@ -39958,7 +39957,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39958
39957
|
return;
|
|
39959
39958
|
let r = 0, c = Number.POSITIVE_INFINITY, h = 0;
|
|
39960
39959
|
const [g, m, x, M, D, A, C] = this._tmpVec2;
|
|
39961
|
-
|
|
39960
|
+
ln(C, t.x, t.y);
|
|
39962
39961
|
const L = new Yn(C, null);
|
|
39963
39962
|
for (let P = 0; P < this.edges.length; P++) {
|
|
39964
39963
|
const R = this.edges[P], Y = this.edgeProps[P].dir;
|
|
@@ -39968,7 +39967,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39968
39967
|
continue;
|
|
39969
39968
|
_t(x, m, g), _t(M, C, g);
|
|
39970
39969
|
const _e = Xt(x, x), ke = _e > 0 ? Xt(M, x) / _e : 0, je = Le(ke, 0, 1), Be = Math.abs((ke - je) * this.edgeProps[P].len);
|
|
39971
|
-
_t(D, C, K),
|
|
39970
|
+
_t(D, C, K), ln(A, Y[1], -Y[0]);
|
|
39972
39971
|
const Ye = Be + Math.abs(Xt(D, A));
|
|
39973
39972
|
Ye < c && (r = P, c = Ye, h = je);
|
|
39974
39973
|
}
|
|
@@ -39980,11 +39979,11 @@ ${JSON.stringify(h, null, 2)}
|
|
|
39980
39979
|
const x = this.edges[m].a, M = this.edges[m].b, { position: D, height: A, extent: C } = this.vertices[x], { position: L, height: P, extent: R } = this.vertices[M], Y = this.vertexProps[x].dir, K = this.vertexProps[M].dir;
|
|
39981
39980
|
if (Tt(r, D[0] / t, D[1] / t, A), Tt(c, L[0] / t, L[1] / t, P), Tt(h, Y[1], -Y[0], 0), ne(h, h, C), Tt(g, K[1], -K[0], 0), ne(g, g, R), this.distSqLines(Jt(r[0] + 0.5 * h[0], r[1] + 0.5 * h[1], r[2] + 0.5 * h[2]), Jt(c[0] - 0.5 * g[0], c[1] - 0.5 * g[1], c[2] - 0.5 * g[2]), Jt(r[0] - 0.5 * h[0], r[1] - 0.5 * h[1], r[2] - 0.5 * h[2]), Jt(c[0] + 0.5 * g[0], c[1] + 0.5 * g[1], c[2] + 0.5 * g[2])) <= 0.0025000000000000005)
|
|
39982
39981
|
continue;
|
|
39983
|
-
const X = this.vertices.length, pe = On(
|
|
39982
|
+
const X = this.vertices.length, pe = On(Wi(), D, L);
|
|
39984
39983
|
this.vertices.push({ position: gt(pe, pe, 0.5), height: 0.5 * (A + P), extent: 0.5 * (C + R) });
|
|
39985
|
-
const ge = On(
|
|
39984
|
+
const ge = On(Wi(), Y, K);
|
|
39986
39985
|
this.vertexProps.push({ dir: Yt(ge, ge) }), this.edges.splice(m, 1), this.edgeProps.splice(m, 1), this.edges.push({ a: x, b: X }), this.edges.push({ a: X, b: M });
|
|
39987
|
-
const _e = _t(
|
|
39986
|
+
const _e = _t(Wi(), this.vertices[X].position, D), ke = oi(_e), je = { vec: _e, dir: gt(Wi(), _e, 1 / ke), len: ke };
|
|
39988
39987
|
this.edgeProps.push(je), this.edgeProps.push(je);
|
|
39989
39988
|
}
|
|
39990
39989
|
}
|
|
@@ -40388,7 +40387,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40388
40387
|
function Yy(s) {
|
|
40389
40388
|
return s * f / U;
|
|
40390
40389
|
}
|
|
40391
|
-
const wj = [new
|
|
40390
|
+
const wj = [new rn([N, N, N], [z, z, z]), new rn([N, N, N], [0, 0, z]), new rn([0, N, N], [z, 0, z]), new rn([N, 0, N], [0, z, z]), new rn([0, 0, N], [z, z, z])];
|
|
40392
40391
|
function yD(s, t, r, c = !0) {
|
|
40393
40392
|
const h = ne([], s._camera.position, s.worldSize), g = [t, r, 1, 1];
|
|
40394
40393
|
ei(g, g, s.pixelMatrixInverse), Et(g, g, 1 / g[3]);
|
|
@@ -40430,7 +40429,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40430
40429
|
if (s.z <= 1)
|
|
40431
40430
|
return wj[s.z + 2 * s.y + s.x];
|
|
40432
40431
|
const t = Tb(Gy(s));
|
|
40433
|
-
return
|
|
40432
|
+
return rn.fromPoints(t);
|
|
40434
40433
|
}
|
|
40435
40434
|
function Cc(s, t, r) {
|
|
40436
40435
|
return ne(s, s, 1 - r), T(s, s, t, r);
|
|
@@ -40443,7 +40442,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40443
40442
|
const h = t / s.worldSize, g = s.globeMatrix;
|
|
40444
40443
|
if (r.z <= 1) {
|
|
40445
40444
|
const qe = Rl(r).getCorners();
|
|
40446
|
-
return _D(qe, g, h),
|
|
40445
|
+
return _D(qe, g, h), rn.fromPoints(qe);
|
|
40447
40446
|
}
|
|
40448
40447
|
const m = Gy(r, c), x = Tb(m, f + Yy(s._tileCoverLift));
|
|
40449
40448
|
_D(x, g, h);
|
|
@@ -40453,12 +40452,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40453
40452
|
Vt(A, A, it), W(D, D, it);
|
|
40454
40453
|
D[2] = 0;
|
|
40455
40454
|
const qe = s.point, Lt = [qe.x * h, qe.y * h, 0];
|
|
40456
|
-
return Vt(A, A, Lt), W(D, D, Lt), new
|
|
40455
|
+
return Vt(A, A, Lt), W(D, D, Lt), new rn(A, D);
|
|
40457
40456
|
}
|
|
40458
40457
|
if (s._tileCoverLift > 0) {
|
|
40459
40458
|
for (const qe of x)
|
|
40460
40459
|
Vt(A, A, qe), W(D, D, qe);
|
|
40461
|
-
return new
|
|
40460
|
+
return new rn(A, D);
|
|
40462
40461
|
}
|
|
40463
40462
|
const C = [g[12] * h, g[13] * h, g[14] * h], L = m.getCenter(), P = Le(s.center.lat, -ze, ze), R = Le(L.lat, -ze, ze), Y = Ie(s.center.lng), K = Ee(P);
|
|
40464
40463
|
let X = Y - Ie(L.lng);
|
|
@@ -40471,8 +40470,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40471
40470
|
const qe = function({ x: it, y: kt, z: $t }, Pt, Ft, Wt, At) {
|
|
40472
40471
|
const Ut = 1 / (1 << $t);
|
|
40473
40472
|
let yt = it * Ut, ht = yt + Ut, Kt = kt * Ut, Gt = Kt + Ut, Qi = 0;
|
|
40474
|
-
const
|
|
40475
|
-
return
|
|
40473
|
+
const wi = (yt + ht) / 2 - Wt;
|
|
40474
|
+
return wi > 0.5 ? Qi = -1 : wi < -0.5 && (Qi = 1), yt = ((yt + Qi) * Pt - (Wt *= Pt)) * Ft + Wt, ht = ((ht + Qi) * Pt - Wt) * Ft + Wt, Kt = (Kt * Pt - (At *= Pt)) * Ft + At, Gt = (Gt * Pt - At) * Ft + At, [[yt, Gt, 0], [ht, Gt, 0], [ht, Kt, 0], [yt, Kt, 0]];
|
|
40476
40475
|
}(r, t, s._pixelsPerMercatorPixel, Y, K);
|
|
40477
40476
|
for (let it = 0; it < x.length; it++)
|
|
40478
40477
|
Cc(x[it], qe[it], Ye);
|
|
@@ -40481,7 +40480,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
40481
40480
|
}
|
|
40482
40481
|
for (const qe of x)
|
|
40483
40482
|
Vt(A, A, qe), W(D, D, qe);
|
|
40484
|
-
return A[2] = Math.min(_e[2], ke[2]), Vt(A, A, Be), W(D, D, Be), new
|
|
40483
|
+
return A[2] = Math.min(_e[2], ke[2]), Vt(A, A, Be), W(D, D, Be), new rn(A, D);
|
|
40485
40484
|
}
|
|
40486
40485
|
function Gy({ x: s, y: t, z: r }, c = !1) {
|
|
40487
40486
|
const h = 1 / (1 << r), g = new $(Ne(s * h), t === (1 << r) - 1 && c ? -90 : Ce((t + 1) * h)), m = new $(Ne((s + 1) * h), t === 0 && c ? 90 : Ce(t * h));
|
|
@@ -41122,7 +41121,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41122
41121
|
this.vertexHashLookup.clear();
|
|
41123
41122
|
let x = Rs.computeEdgeHash(m[m.length - 2], m[m.length - 1]);
|
|
41124
41123
|
for (let M = 0; M < m.length - 1; M++) {
|
|
41125
|
-
const D = m[M + 0], A = m[M + 1], C =
|
|
41124
|
+
const D = m[M + 0], A = m[M + 1], C = sn(A.x - D.x, A.y - D.y), L = oi(C);
|
|
41126
41125
|
if (L === 0)
|
|
41127
41126
|
continue;
|
|
41128
41127
|
let P = "unevaluated";
|
|
@@ -41211,12 +41210,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41211
41210
|
Fe(_e, ge, pe), Z(_e, _e);
|
|
41212
41211
|
const yt = K(qe, Wt.a) || _e, ht = K(Lt, Wt.b) || _e;
|
|
41213
41212
|
Tt(ke, yt[1], -yt[0], 0), Z(ke, ke), Tt(je, ht[1], -ht[0], 0), Z(je, je), he(qe, ke, yt), Z(Be, qe), he(qe, je, ht), Z(Ye, qe), bt(it[0], pe, ne(qe, Fe(qe, ke, Be), D)), bt(it[1], pe, ne(qe, bt(qe, ke, Be), D)), bt(it[2], pe, ne(qe, Be, D)), it[3] = pe, bt(kt[0], ge, ne(qe, Fe(qe, je, Ye), D)), bt(kt[1], ge, ne(qe, bt(qe, je, Ye), D)), bt(kt[2], ge, ne(qe, Ye, D)), kt[3] = ge, X = this.addFeatureSection(Wt.featureInfo.featureIndex, X, this.bridgeFeatureSections, t);
|
|
41214
|
-
const Kt = t.addVertex(it[0], ke, m), Gt = t.addVertex(it[1], ke, m), Qi = t.addVertex(kt[0], je, m),
|
|
41215
|
-
t.addTriangle(Kt, Gt, Qi), t.addTriangle(Gt,
|
|
41213
|
+
const Kt = t.addVertex(it[0], ke, m), Gt = t.addVertex(it[1], ke, m), Qi = t.addVertex(kt[0], je, m), wi = t.addVertex(kt[1], je, m);
|
|
41214
|
+
t.addTriangle(Kt, Gt, Qi), t.addTriangle(Gt, wi, Qi);
|
|
41216
41215
|
const Ni = t.addVertex(it[1], Be, m), ai = t.addVertex(it[2], Be, m), Ui = t.addVertex(kt[1], Ye, m), fn = t.addVertex(kt[2], Ye, m);
|
|
41217
41216
|
t.addTriangle(Ni, ai, Ui), t.addTriangle(ai, fn, Ui), Q(ke, ke), Q(je, je);
|
|
41218
|
-
const gi = t.addVertex(it[2], ke, m), ji = t.addVertex(it[3], ke, m),
|
|
41219
|
-
t.addTriangle(gi, ji,
|
|
41217
|
+
const gi = t.addVertex(it[2], ke, m), ji = t.addVertex(it[3], ke, m), tn = t.addVertex(kt[2], je, m), gn = t.addVertex(kt[3], je, m);
|
|
41218
|
+
t.addTriangle(gi, ji, tn), t.addTriangle(ji, gn, tn);
|
|
41220
41219
|
const An = this.isTerminalVertex(Wt.a, x), _n = this.isTerminalVertex(Wt.b, x);
|
|
41221
41220
|
At.height < 0.01 && An && t.addQuad(it[3], it[2], it[1], it[0], Q(yt, yt), m), Ut.height < 0.01 && _n && t.addQuad(kt[0], kt[1], kt[2], kt[3], ht, m);
|
|
41222
41221
|
}
|
|
@@ -41590,20 +41589,20 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41590
41589
|
return Dr;
|
|
41591
41590
|
var Tn = Math.abs(Dn + er);
|
|
41592
41591
|
return Math.abs(Dr) >= Lt * Tn ? Dr : -function(dr, nr, $n, yr, _r, ur, fr) {
|
|
41593
|
-
var rr, Nn, or, Or,
|
|
41594
|
-
$t[0] = (Co = (Rr = fo - (vr = (Un = je * fo) - (Un - fo))) * (to = $o - (Mr = (Un = je * $o) - (Un - $o))) - ((Ro = fo * $o) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = ts - (vr = (Un = je * ts) - (Un - ts))) * (to = Bo - (Mr = (Un = je * Bo) - (Un - Bo))) - ((ws = ts * Bo) - vr * Mr - Rr * Mr - vr * to))) + (
|
|
41592
|
+
var rr, Nn, or, Or, on, Un, vr, Rr, Mr, to, sr, qr, xs, Ro, Co, ws, Ul, io, fo = dr - _r, Bo = $n - _r, ts = nr - ur, $o = yr - ur;
|
|
41593
|
+
$t[0] = (Co = (Rr = fo - (vr = (Un = je * fo) - (Un - fo))) * (to = $o - (Mr = (Un = je * $o) - (Un - $o))) - ((Ro = fo * $o) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = ts - (vr = (Un = je * ts) - (Un - ts))) * (to = Bo - (Mr = (Un = je * Bo) - (Un - Bo))) - ((ws = ts * Bo) - vr * Mr - Rr * Mr - vr * to))) + (on = Co - sr)) + (on - Ul), $t[1] = (xs = Ro - ((qr = Ro + sr) - (on = qr - Ro)) + (sr - on)) - ((sr = xs - ws) + (on = xs - sr)) + (on - ws), $t[2] = qr - ((io = qr + sr) - (on = io - qr)) + (sr - on), $t[3] = io;
|
|
41595
41594
|
var ju = function(Qae, o6) {
|
|
41596
41595
|
for (var s6 = o6[0], BM = 1; BM < 4; BM++)
|
|
41597
41596
|
s6 += o6[BM];
|
|
41598
41597
|
return s6;
|
|
41599
41598
|
}(0, $t), g0 = it * fr;
|
|
41600
|
-
if (ju >= g0 || -ju >= g0 || (rr = dr - (fo + (
|
|
41599
|
+
if (ju >= g0 || -ju >= g0 || (rr = dr - (fo + (on = dr - fo)) + (on - _r), or = $n - (Bo + (on = $n - Bo)) + (on - _r), Nn = nr - (ts + (on = nr - ts)) + (on - ur), Or = yr - ($o + (on = yr - $o)) + (on - ur), rr === 0 && Nn === 0 && or === 0 && Or === 0) || (g0 = kt * fr + Be * Math.abs(ju), (ju += fo * Or + $o * rr - (ts * or + Bo * Nn)) >= g0 || -ju >= g0))
|
|
41601
41600
|
return ju;
|
|
41602
|
-
At[0] = (Co = (Rr = rr - (vr = (Un = je * rr) - (Un - rr))) * (to = $o - (Mr = (Un = je * $o) - (Un - $o))) - ((Ro = rr * $o) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = Nn - (vr = (Un = je * Nn) - (Un - Nn))) * (to = Bo - (Mr = (Un = je * Bo) - (Un - Bo))) - ((ws = Nn * Bo) - vr * Mr - Rr * Mr - vr * to))) + (
|
|
41601
|
+
At[0] = (Co = (Rr = rr - (vr = (Un = je * rr) - (Un - rr))) * (to = $o - (Mr = (Un = je * $o) - (Un - $o))) - ((Ro = rr * $o) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = Nn - (vr = (Un = je * Nn) - (Un - Nn))) * (to = Bo - (Mr = (Un = je * Bo) - (Un - Bo))) - ((ws = Nn * Bo) - vr * Mr - Rr * Mr - vr * to))) + (on = Co - sr)) + (on - Ul), At[1] = (xs = Ro - ((qr = Ro + sr) - (on = qr - Ro)) + (sr - on)) - ((sr = xs - ws) + (on = xs - sr)) + (on - ws), At[2] = qr - ((io = qr + sr) - (on = io - qr)) + (sr - on), At[3] = io;
|
|
41603
41602
|
var GB = Ye(4, $t, 4, At, Pt);
|
|
41604
|
-
At[0] = (Co = (Rr = fo - (vr = (Un = je * fo) - (Un - fo))) * (to = Or - (Mr = (Un = je * Or) - (Un - Or))) - ((Ro = fo * Or) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = ts - (vr = (Un = je * ts) - (Un - ts))) * (to = or - (Mr = (Un = je * or) - (Un - or))) - ((ws = ts * or) - vr * Mr - Rr * Mr - vr * to))) + (
|
|
41603
|
+
At[0] = (Co = (Rr = fo - (vr = (Un = je * fo) - (Un - fo))) * (to = Or - (Mr = (Un = je * Or) - (Un - Or))) - ((Ro = fo * Or) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = ts - (vr = (Un = je * ts) - (Un - ts))) * (to = or - (Mr = (Un = je * or) - (Un - or))) - ((ws = ts * or) - vr * Mr - Rr * Mr - vr * to))) + (on = Co - sr)) + (on - Ul), At[1] = (xs = Ro - ((qr = Ro + sr) - (on = qr - Ro)) + (sr - on)) - ((sr = xs - ws) + (on = xs - sr)) + (on - ws), At[2] = qr - ((io = qr + sr) - (on = io - qr)) + (sr - on), At[3] = io;
|
|
41605
41604
|
var ZB = Ye(GB, Pt, 4, At, Ft);
|
|
41606
|
-
At[0] = (Co = (Rr = rr - (vr = (Un = je * rr) - (Un - rr))) * (to = Or - (Mr = (Un = je * Or) - (Un - Or))) - ((Ro = rr * Or) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = Nn - (vr = (Un = je * Nn) - (Un - Nn))) * (to = or - (Mr = (Un = je * or) - (Un - or))) - ((ws = Nn * or) - vr * Mr - Rr * Mr - vr * to))) + (
|
|
41605
|
+
At[0] = (Co = (Rr = rr - (vr = (Un = je * rr) - (Un - rr))) * (to = Or - (Mr = (Un = je * Or) - (Un - Or))) - ((Ro = rr * Or) - vr * Mr - Rr * Mr - vr * to)) - ((sr = Co - (Ul = (Rr = Nn - (vr = (Un = je * Nn) - (Un - Nn))) * (to = or - (Mr = (Un = je * or) - (Un - or))) - ((ws = Nn * or) - vr * Mr - Rr * Mr - vr * to))) + (on = Co - sr)) + (on - Ul), At[1] = (xs = Ro - ((qr = Ro + sr) - (on = qr - Ro)) + (sr - on)) - ((sr = xs - ws) + (on = xs - sr)) + (on - ws), At[2] = qr - ((io = qr + sr) - (on = io - qr)) + (sr - on), At[3] = io;
|
|
41607
41606
|
var WB = Ye(ZB, Ft, 4, At, Wt);
|
|
41608
41607
|
return Wt[WB - 1];
|
|
41609
41608
|
}(pi, fi, Si, Yi, Cn, En, Tn);
|
|
@@ -41642,8 +41641,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41642
41641
|
}
|
|
41643
41642
|
if ((_r = (yr = Kt($n, Tn)) * yr) > 0)
|
|
41644
41643
|
return null;
|
|
41645
|
-
var Nn = Gt(Tn, $n) / ur, or = Nn + Gt(Tn, dr) / ur, Or = Math.min(Nn, or),
|
|
41646
|
-
return Or <= 1 &&
|
|
41644
|
+
var Nn = Gt(Tn, $n) / ur, or = Nn + Gt(Tn, dr) / ur, Or = Math.min(Nn, or), on = Math.max(Nn, or);
|
|
41645
|
+
return Or <= 1 && on >= 0 ? Or === 1 ? [nr(Cn, Or > 0 ? Or : 0, Tn)] : on === 0 ? [nr(Cn, on < 1 ? on : 1, Tn)] : [nr(Cn, Or > 0 ? Or : 0, Tn), nr(Cn, on < 1 ? on : 1, Tn)] : null;
|
|
41647
41646
|
}(Te.point, Te.otherEvent.point, De.point, De.otherEvent.point), pi = Nt ? Nt.length : 0;
|
|
41648
41647
|
if (pi === 0 || pi === 1 && (_e(Te.point, De.point) || _e(Te.otherEvent.point, De.otherEvent.point)) || pi === 2 && Te.isSubject === De.isSubject)
|
|
41649
41648
|
return 0;
|
|
@@ -41652,7 +41651,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41652
41651
|
var fi = [], Si = !1, Yi = !1;
|
|
41653
41652
|
return _e(Te.point, De.point) ? Si = !0 : yt(Te, De) === 1 ? fi.push(De, Te) : fi.push(Te, De), _e(Te.otherEvent.point, De.otherEvent.point) ? Yi = !0 : yt(Te.otherEvent, De.otherEvent) === 1 ? fi.push(De.otherEvent, Te.otherEvent) : fi.push(Te.otherEvent, De.otherEvent), Si && Yi || Si ? (De.type = D, Te.type = De.inOut === Te.inOut ? A : C, Si && !Yi && ht(fi[1].otherEvent, fi[0].point, mt), 2) : Yi ? (ht(fi[0], fi[1].point, mt), 3) : fi[0] !== fi[3].otherEvent ? (ht(fi[0], fi[1].point, mt), ht(fi[1], fi[2].point, mt), 3) : (ht(fi[0], fi[1].point, mt), ht(fi[3].otherEvent, fi[2].point, mt), 3);
|
|
41654
41653
|
}
|
|
41655
|
-
function
|
|
41654
|
+
function wi(Te, De) {
|
|
41656
41655
|
if (Te === De)
|
|
41657
41656
|
return 0;
|
|
41658
41657
|
if (Ut(Te.point, Te.otherEvent.point, De.point) !== 0 || Ut(Te.point, Te.otherEvent.point, De.otherEvent.point) !== 0)
|
|
@@ -41716,14 +41715,14 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41716
41715
|
}
|
|
41717
41716
|
De[Te] = pi;
|
|
41718
41717
|
} }, Ui.default = fn;
|
|
41719
|
-
var
|
|
41718
|
+
var tn = Math.max, gn = Math.min, An = 0;
|
|
41720
41719
|
function _n(Te, De, mt, Nt, pi, fi) {
|
|
41721
41720
|
var Si, Yi, Cn, En, Dn, er;
|
|
41722
41721
|
for (Si = 0, Yi = Te.length - 1; Si < Yi; Si++)
|
|
41723
41722
|
if (En = Te[Si + 1], Dn = new pe(Cn = Te[Si], !1, void 0, De), er = new pe(En, !1, Dn, De), Dn.otherEvent = er, Cn[0] !== En[0] || Cn[1] !== En[1]) {
|
|
41724
41723
|
Dn.contourId = er.contourId = mt, fi || (Dn.isExteriorRing = !1, er.isExteriorRing = !1), yt(Dn, er) > 0 ? er.left = !0 : Dn.left = !0;
|
|
41725
41724
|
var Dr = Cn[0], Tn = Cn[1];
|
|
41726
|
-
pi[0] = gn(pi[0], Dr), pi[1] = gn(pi[1], Tn), pi[2] =
|
|
41725
|
+
pi[0] = gn(pi[0], Dr), pi[1] = gn(pi[1], Tn), pi[2] = tn(pi[2], Dr), pi[3] = tn(pi[3], Tn), Nt.push(Dn), Nt.push(er);
|
|
41727
41726
|
}
|
|
41728
41727
|
}
|
|
41729
41728
|
var Ci = [];
|
|
@@ -41752,23 +41751,23 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41752
41751
|
return Nt === Ci ? null : Nt;
|
|
41753
41752
|
for (var Yi = function(Tn) {
|
|
41754
41753
|
var dr, nr, $n = function(fr) {
|
|
41755
|
-
var rr, Nn, or, Or,
|
|
41754
|
+
var rr, Nn, or, Or, on = [];
|
|
41756
41755
|
for (Nn = 0, or = fr.length; Nn < or; Nn++)
|
|
41757
|
-
((rr = fr[Nn]).left && rr.inResult || !rr.left && rr.otherEvent.inResult) &&
|
|
41756
|
+
((rr = fr[Nn]).left && rr.inResult || !rr.left && rr.otherEvent.inResult) && on.push(rr);
|
|
41758
41757
|
for (var Un = !1; !Un; )
|
|
41759
|
-
for (Un = !0, Nn = 0, or =
|
|
41760
|
-
Nn + 1 < or && yt(
|
|
41761
|
-
for (Nn = 0, or =
|
|
41762
|
-
(rr =
|
|
41763
|
-
for (Nn = 0, or =
|
|
41764
|
-
(rr =
|
|
41765
|
-
return
|
|
41758
|
+
for (Un = !0, Nn = 0, or = on.length; Nn < or; Nn++)
|
|
41759
|
+
Nn + 1 < or && yt(on[Nn], on[Nn + 1]) === 1 && (Or = on[Nn], on[Nn] = on[Nn + 1], on[Nn + 1] = Or, Un = !1);
|
|
41760
|
+
for (Nn = 0, or = on.length; Nn < or; Nn++)
|
|
41761
|
+
(rr = on[Nn]).otherPos = Nn;
|
|
41762
|
+
for (Nn = 0, or = on.length; Nn < or; Nn++)
|
|
41763
|
+
(rr = on[Nn]).left || (Or = rr.otherPos, rr.otherPos = rr.otherEvent.otherPos, rr.otherEvent.otherPos = Or);
|
|
41764
|
+
return on;
|
|
41766
41765
|
}(Tn), yr = {}, _r = [], ur = function() {
|
|
41767
41766
|
if (!yr[dr]) {
|
|
41768
|
-
var fr = _r.length, rr = function(
|
|
41767
|
+
var fr = _r.length, rr = function(on, Un, vr) {
|
|
41769
41768
|
var Rr = new Ni();
|
|
41770
|
-
if (
|
|
41771
|
-
var Mr =
|
|
41769
|
+
if (on.prevInResult != null) {
|
|
41770
|
+
var Mr = on.prevInResult, to = Mr.outputContourId;
|
|
41772
41771
|
if (Mr.resultTransition > 0) {
|
|
41773
41772
|
var sr = Un[to];
|
|
41774
41773
|
if (sr.holeOf != null) {
|
|
@@ -41781,8 +41780,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41781
41780
|
} else
|
|
41782
41781
|
Rr.holeOf = null, Rr.depth = 0;
|
|
41783
41782
|
return Rr;
|
|
41784
|
-
}($n[dr], _r, fr), Nn = function(
|
|
41785
|
-
yr[
|
|
41783
|
+
}($n[dr], _r, fr), Nn = function(on) {
|
|
41784
|
+
yr[on] = !0, on < $n.length && $n[on] && ($n[on].outputContourId = fr);
|
|
41786
41785
|
}, or = dr, Or = dr;
|
|
41787
41786
|
for (rr.points.push($n[dr].point); Nn(or), Nn(or = $n[or].otherPos), rr.points.push($n[or].point), !((or = ai(or, $n, yr, Or)) == Or || or >= $n.length) && $n[or]; )
|
|
41788
41787
|
;
|
|
@@ -41793,19 +41792,19 @@ ${JSON.stringify(h, null, 2)}
|
|
|
41793
41792
|
ur();
|
|
41794
41793
|
return _r;
|
|
41795
41794
|
}(function(Tn, dr, nr, $n, yr, _r) {
|
|
41796
|
-
for (var ur, fr, rr, Nn = new h(
|
|
41797
|
-
var
|
|
41798
|
-
if (or.push(
|
|
41795
|
+
for (var ur, fr, rr, Nn = new h(wi), or = [], Or = Math.min($n[2], yr[2]); Tn.length !== 0; ) {
|
|
41796
|
+
var on = Tn.pop();
|
|
41797
|
+
if (or.push(on), _r === L && on.point[0] > Or || _r === R && on.point[0] > $n[2])
|
|
41799
41798
|
break;
|
|
41800
|
-
if (
|
|
41801
|
-
fr = ur = Nn.insert(
|
|
41799
|
+
if (on.left) {
|
|
41800
|
+
fr = ur = Nn.insert(on), ur = ur !== (rr = Nn.minNode()) ? Nn.prev(ur) : null, fr = Nn.next(fr);
|
|
41802
41801
|
var Un = ur ? ur.key : null;
|
|
41803
|
-
if (K(
|
|
41802
|
+
if (K(on, Un, _r), fr && Qi(on, fr.key, Tn) === 2 && (K(on, Un, _r), K(fr.key, on, _r)), ur && Qi(ur.key, on, Tn) === 2) {
|
|
41804
41803
|
var vr = ur;
|
|
41805
|
-
K(Un, (vr = vr !== rr ? Nn.prev(vr) : null) ? vr.key : null, _r), K(
|
|
41804
|
+
K(Un, (vr = vr !== rr ? Nn.prev(vr) : null) ? vr.key : null, _r), K(on, Un, _r);
|
|
41806
41805
|
}
|
|
41807
41806
|
} else
|
|
41808
|
-
fr = ur = Nn.find(
|
|
41807
|
+
fr = ur = Nn.find(on = on.otherEvent), ur && fr && (ur = ur !== rr ? Nn.prev(ur) : null, fr = Nn.next(fr), Nn.remove(on), fr && ur && Qi(ur.key, fr.key, Tn));
|
|
41809
41808
|
}
|
|
41810
41809
|
return or;
|
|
41811
41810
|
}(Si, 0, 0, pi, fi, mt)), Cn = [], En = 0; En < Yi.length; En++) {
|
|
@@ -42545,27 +42544,27 @@ ${JSON.stringify(h, null, 2)}
|
|
|
42545
42544
|
Ut--;
|
|
42546
42545
|
if (Ut < (kt ? 3 : 2))
|
|
42547
42546
|
return Pt;
|
|
42548
|
-
let yt, ht, Kt, Gt, Qi,
|
|
42549
|
-
for (;
|
|
42550
|
-
|
|
42551
|
-
kt && (yt = it[Ut - 2], Qi = it[
|
|
42552
|
-
for (let ai =
|
|
42553
|
-
if (Kt = ai === Ut - 1 ? kt ? it[
|
|
42547
|
+
let yt, ht, Kt, Gt, Qi, wi = 0;
|
|
42548
|
+
for (; wi < Ut - 1 && it[wi].equals(it[wi + 1]); )
|
|
42549
|
+
wi++;
|
|
42550
|
+
kt && (yt = it[Ut - 2], Qi = it[wi].sub(yt)._unit()._perp());
|
|
42551
|
+
for (let ai = wi; ai < Ut; ai++) {
|
|
42552
|
+
if (Kt = ai === Ut - 1 ? kt ? it[wi + 1] : void 0 : it[ai + 1], Kt && it[ai].equals(Kt))
|
|
42554
42553
|
continue;
|
|
42555
42554
|
Qi && (Gt = Qi), yt && (ht = yt), yt = it[ai], Qi = Kt ? Kt.sub(yt)._unit()._perp() : Gt, Gt = Gt || Qi;
|
|
42556
42555
|
let Ui = Gt.add(Qi);
|
|
42557
42556
|
Ui.x === 0 && Ui.y === 0 || Ui._unit();
|
|
42558
42557
|
const fn = Ui.x * Qi.x + Ui.y * Qi.y, gi = fn !== 0 ? 1 / fn : 1 / 0, ji = Gt.x * Qi.y - Gt.y * Qi.x > 0;
|
|
42559
|
-
let
|
|
42558
|
+
let tn = "miter";
|
|
42560
42559
|
const gn = 2;
|
|
42561
|
-
|
|
42560
|
+
tn === "miter" && gi > gn && (tn = "bevel"), tn === "bevel" && (gi > 100 && (tn = "flipbevel"), gi < gn && (tn = "miter"));
|
|
42562
42561
|
const An = (_n, Ci, yn, Bn) => {
|
|
42563
42562
|
const Te = new Dt(_n.x, _n.y), De = new Dt(_n.x, _n.y);
|
|
42564
42563
|
Te.x += Ci.x * Bn, Te.y += Ci.y * Bn, De.x -= Ci.x * Math.max(yn, 1), De.y -= Ci.y * Math.max(yn, 1), At.push(Ci), Ft.push(Te), Wt.push(De);
|
|
42565
42564
|
};
|
|
42566
|
-
if (
|
|
42565
|
+
if (tn === "miter")
|
|
42567
42566
|
Ui._mult(gi), An(yt, Ui, 0, 0);
|
|
42568
|
-
else if (
|
|
42567
|
+
else if (tn === "flipbevel")
|
|
42569
42568
|
Ui = Qi.mult(-1), An(yt, Ui, 0, 0), An(yt, Ui.mult(-1), 0, 0);
|
|
42570
42569
|
else {
|
|
42571
42570
|
const _n = -Math.sqrt(gi * gi - 1), Ci = ji ? _n : 0, yn = ji ? 0 : _n;
|
|
@@ -42616,14 +42615,14 @@ ${JSON.stringify(h, null, 2)}
|
|
|
42616
42615
|
const Gt = it[Kt];
|
|
42617
42616
|
Gt.length && Kt !== 0 && yt.push(Ut.length / 2);
|
|
42618
42617
|
const Qi = [];
|
|
42619
|
-
let
|
|
42620
|
-
|
|
42618
|
+
let wi, Ni;
|
|
42619
|
+
wi = Gt[1].sub(Gt[0])._perp()._unit(), At.ringIndices.push(Gt.length - 1);
|
|
42621
42620
|
for (let ai = 1; ai < Gt.length; ai++) {
|
|
42622
42621
|
const Ui = Gt[ai], fn = Gt[ai === Gt.length - 1 ? 1 : ai + 1], gi = Ui.clone();
|
|
42623
42622
|
if (Ye) {
|
|
42624
42623
|
Ni = fn.sub(Ui)._perp()._unit();
|
|
42625
|
-
const ji =
|
|
42626
|
-
gi.x +=
|
|
42624
|
+
const ji = wi.add(Ni)._unit(), tn = Ye * Math.min(4, 1 / (wi.x * ji.x + wi.y * ji.y));
|
|
42625
|
+
gi.x += tn * ji.x, gi.y += tn * ji.y, gi.x = Math.round(gi.x), gi.y = Math.round(gi.y), wi = Ni;
|
|
42627
42626
|
}
|
|
42628
42627
|
if (!X || Ye !== 0 && !qe || Lt(Qi, gi) || Qi.push(gi), Fm(this.layoutVertexArray, gi.x, gi.y, 0, 0, 1, 1, 0), this.wallMode) {
|
|
42629
42628
|
const ji = _e(ai, Gt);
|
|
@@ -42643,25 +42642,25 @@ ${JSON.stringify(h, null, 2)}
|
|
|
42643
42642
|
Y.startRing(K, yt[0]);
|
|
42644
42643
|
let ht = yt.length > 4 && fS(yt[yt.length - 2], yt[0], yt[1]), Kt = Ye ? sP(yt[yt.length - 2], yt[0], yt[1], Ye) : 0;
|
|
42645
42644
|
const Gt = [];
|
|
42646
|
-
let Qi,
|
|
42647
|
-
|
|
42645
|
+
let Qi, wi, Ni;
|
|
42646
|
+
wi = yt[1].sub(yt[0])._perp()._unit();
|
|
42648
42647
|
let ai = !0;
|
|
42649
42648
|
for (let Ui = 1, fn = 0; Ui < yt.length; Ui++) {
|
|
42650
42649
|
let gi = yt[Ui - 1], ji = yt[Ui];
|
|
42651
|
-
const
|
|
42650
|
+
const tn = yt[Ui === yt.length - 1 ? 1 : Ui + 1];
|
|
42652
42651
|
if (Y.appendEdge(K, ji, gi), Qb(ji, gi, kt)) {
|
|
42653
|
-
Ye && (
|
|
42652
|
+
Ye && (wi = tn.sub(ji)._perp()._unit(), ai = !ai);
|
|
42654
42653
|
continue;
|
|
42655
42654
|
}
|
|
42656
42655
|
const gn = ji.sub(gi)._perp(), An = gn.x / (Math.abs(gn.x) + Math.abs(gn.y)), _n = gn.y > 0 ? 1 : 0, Ci = gi.dist(ji);
|
|
42657
42656
|
if (fn + Ci > 32768 && (fn = 0), Ye) {
|
|
42658
|
-
Ni =
|
|
42659
|
-
let De = hS(gi, ji,
|
|
42657
|
+
Ni = tn.sub(ji)._perp()._unit();
|
|
42658
|
+
let De = hS(gi, ji, tn, uS(wi, Ni), Ye);
|
|
42660
42659
|
isNaN(De) && (De = 0);
|
|
42661
42660
|
const mt = ji.sub(gi)._unit();
|
|
42662
|
-
gi = gi.add(mt.mult(Kt))._round(), ji = ji.add(mt.mult(-De))._round(), Kt = De,
|
|
42661
|
+
gi = gi.add(mt.mult(Kt))._round(), ji = ji.add(mt.mult(-De))._round(), Kt = De, wi = Ni, X && this.zoom >= 17 && (Lt(Gt, gi) || Gt.push(gi), Lt(Gt, ji) || Gt.push(ji));
|
|
42663
42662
|
}
|
|
42664
|
-
const yn = Ft.vertexLength, Bn = yt.length > 4 && fS(gi, ji,
|
|
42663
|
+
const yn = Ft.vertexLength, Bn = yt.length > 4 && fS(gi, ji, tn);
|
|
42665
42664
|
let Te = pS(fn, ht, ai);
|
|
42666
42665
|
if (Fm(this.layoutVertexArray, gi.x, gi.y, An, _n, 0, 0, Te), Fm(this.layoutVertexArray, gi.x, gi.y, An, _n, 0, 1, Te), this.wallMode) {
|
|
42667
42666
|
const De = _e(Ui - 1, yt), mt = ge.joinNormals[Ui - 1];
|
|
@@ -42673,7 +42672,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
42673
42672
|
}
|
|
42674
42673
|
if (Ft.vertexLength += 4, this.indexArray.emplaceBack(yn + 0, yn + 1, yn + 2), this.indexArray.emplaceBack(yn + 1, yn + 3, yn + 2), Ft.primitiveLength += 2, Ye) {
|
|
42675
42674
|
const De = $t + (Ui === 1 ? yt.length - 2 : Ui - 2), mt = Ui === 1 ? $t : De + 1;
|
|
42676
|
-
if (this.indexArray.emplaceBack(yn + 1, De, yn + 3), this.indexArray.emplaceBack(De, mt, yn + 3), Ft.primitiveLength += 2, Qi === void 0 && (Qi = yn), !Qb(
|
|
42675
|
+
if (this.indexArray.emplaceBack(yn + 1, De, yn + 3), this.indexArray.emplaceBack(De, mt, yn + 3), Ft.primitiveLength += 2, Qi === void 0 && (Qi = yn), !Qb(tn, yt[Ui], kt)) {
|
|
42677
42676
|
const Nt = Ui === yt.length - 1 ? Qi : Ft.vertexLength;
|
|
42678
42677
|
this.indexArray.emplaceBack(yn + 2, yn + 3, Nt), this.indexArray.emplaceBack(yn + 3, Nt + 1, Nt), this.indexArray.emplaceBack(yn + 3, mt, Nt + 1), Ft.primitiveLength += 3;
|
|
42679
42678
|
}
|
|
@@ -42765,7 +42764,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
42765
42764
|
for (const Y of this.triangleSubSegments) {
|
|
42766
42765
|
P[0] = Y.min.x / li, P[1] = Y.min.y / li, R[0] = Y.max.x / li, R[1] = Y.max.y / li;
|
|
42767
42766
|
const K = L(A, C, P), X = L(A, C, R);
|
|
42768
|
-
if (new
|
|
42767
|
+
if (new rn([K[0], K[1], g], [X[0], X[1], m]).intersectsPrecise(c) === 0) {
|
|
42769
42768
|
D && (h.segments.push(D), D = void 0);
|
|
42770
42769
|
continue;
|
|
42771
42770
|
}
|
|
@@ -43434,16 +43433,16 @@ ${JSON.stringify(h, null, 2)}
|
|
|
43434
43433
|
return (WebAssembly.instantiateStreaming ? WebAssembly.instantiateStreaming(P, pe) : P.then((ge) => ge.arrayBuffer()).then((ge) => WebAssembly.instantiate(ge, pe))).then((ge) => {
|
|
43435
43434
|
const { Rb: _e, Qb: ke, P: je, T: Be, X: Ye, Ja: qe, La: Lt, Qa: it, Va: kt, Wa: $t, eb: Pt, jb: Ft, f: Wt, e: At, yb: Ut, zb: yt, Ab: ht, Bb: Kt, Db: Gt, Gb: Qi } = ge.instance.exports;
|
|
43436
43435
|
Y = At;
|
|
43437
|
-
const
|
|
43436
|
+
const wi = (() => {
|
|
43438
43437
|
let Ni = 0, ai = 0, Ui = 0, fn = 0;
|
|
43439
43438
|
return (gi) => {
|
|
43440
43439
|
Ui && (_e(fn), _e(Ni), ai += Ui, Ui = Ni = 0), Ni || (ai += 128, Ni = ke(ai));
|
|
43441
43440
|
const ji = gi.length + 7 & -8;
|
|
43442
|
-
let
|
|
43443
|
-
ji >= ai && (Ui = ji,
|
|
43441
|
+
let tn = Ni;
|
|
43442
|
+
ji >= ai && (Ui = ji, tn = fn = ke(ji));
|
|
43444
43443
|
for (let gn = 0; gn < gi.length; gn++)
|
|
43445
|
-
R[
|
|
43446
|
-
return
|
|
43444
|
+
R[tn + gn] = gi[gn];
|
|
43445
|
+
return tn;
|
|
43447
43446
|
};
|
|
43448
43447
|
})();
|
|
43449
43448
|
return K(), Wt(), { memory: At, _free: _e, _malloc: ke, Mesh: class {
|
|
@@ -43461,7 +43460,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
43461
43460
|
Ft(this.ptr);
|
|
43462
43461
|
}
|
|
43463
43462
|
DecodeArrayToMesh(Ni, ai, Ui) {
|
|
43464
|
-
const fn =
|
|
43463
|
+
const fn = wi(Ni), gi = Lt(this.ptr, fn, ai, Ui.ptr);
|
|
43465
43464
|
return !!Ye(gi);
|
|
43466
43465
|
}
|
|
43467
43466
|
GetAttributeByUniqueId(Ni, ai) {
|
|
@@ -43666,7 +43665,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
43666
43665
|
return h;
|
|
43667
43666
|
}
|
|
43668
43667
|
function BS(s, t, r, c) {
|
|
43669
|
-
const h =
|
|
43668
|
+
const h = rn.projectAabbCorners(c, r);
|
|
43670
43669
|
let g = Number.MAX_VALUE, m = -1;
|
|
43671
43670
|
for (let D = 0; D < h.length; ++D) {
|
|
43672
43671
|
const A = h[D];
|
|
@@ -43723,15 +43722,15 @@ ${JSON.stringify(h, null, 2)}
|
|
|
43723
43722
|
const kt = Ye.elevation;
|
|
43724
43723
|
if (!kt)
|
|
43725
43724
|
return 0;
|
|
43726
|
-
const $t =
|
|
43725
|
+
const $t = rn.projectAabbCorners(qe, Lt), Pt = Ae(1, it.lat) * Ye.worldSize, Ft = function(ai, Ui) {
|
|
43727
43726
|
const fn = [0, 0, 1], gi = [{ corners: [0, 1, 3, 2], dotProductWithUp: 0 }, { corners: [1, 5, 2, 6], dotProductWithUp: 0 }, { corners: [0, 4, 1, 5], dotProductWithUp: 0 }, { corners: [2, 6, 3, 7], dotProductWithUp: 0 }, { corners: [4, 7, 5, 6], dotProductWithUp: 0 }, { corners: [0, 3, 4, 7], dotProductWithUp: 0 }];
|
|
43728
43727
|
for (const ji of gi) {
|
|
43729
|
-
const
|
|
43728
|
+
const tn = ai[ji.corners[0]], gn = ai[ji.corners[1]], An = ai[ji.corners[2]], _n = [gn[0] - tn[0], gn[1] - tn[1], Ui * (gn[2] - tn[2])], Ci = he(_n, _n, [An[0] - tn[0], An[1] - tn[1], Ui * (An[2] - tn[2])]);
|
|
43730
43729
|
Z(Ci, Ci), ji.dotProductWithUp = se(Ci, fn);
|
|
43731
43730
|
}
|
|
43732
|
-
return gi.sort((ji,
|
|
43733
|
-
}($t, Pt), Wt = $t[Ft[0]], At = $t[Ft[1]], Ut = $t[Ft[2]], yt = $t[Ft[3]], ht = kt.getAtPointOrZero(new vt(Wt[0] / Ye.worldSize, Wt[1] / Ye.worldSize), 0), Kt = kt.getAtPointOrZero(new vt(At[0] / Ye.worldSize, At[1] / Ye.worldSize), 0), Gt = kt.getAtPointOrZero(new vt(Ut[0] / Ye.worldSize, Ut[1] / Ye.worldSize), 0), Qi = kt.getAtPointOrZero(new vt(yt[0] / Ye.worldSize, yt[1] / Ye.worldSize), 0),
|
|
43734
|
-
return
|
|
43731
|
+
return gi.sort((ji, tn) => ji.dotProductWithUp - tn.dotProductWithUp), gi[0].corners;
|
|
43732
|
+
}($t, Pt), Wt = $t[Ft[0]], At = $t[Ft[1]], Ut = $t[Ft[2]], yt = $t[Ft[3]], ht = kt.getAtPointOrZero(new vt(Wt[0] / Ye.worldSize, Wt[1] / Ye.worldSize), 0), Kt = kt.getAtPointOrZero(new vt(At[0] / Ye.worldSize, At[1] / Ye.worldSize), 0), Gt = kt.getAtPointOrZero(new vt(Ut[0] / Ye.worldSize, Ut[1] / Ye.worldSize), 0), Qi = kt.getAtPointOrZero(new vt(yt[0] / Ye.worldSize, yt[1] / Ye.worldSize), 0), wi = (ht + Qi) / 2, Ni = (Kt + Gt) / 2;
|
|
43733
|
+
return wi > Ni ? Kt < Gt ? u_(Be, At, yt, Wt, Kt, Qi, ht, Pt) : u_(Be, Ut, Wt, yt, Gt, ht, Qi, Pt) : ht < Qi ? u_(Be, Wt, At, Ut, ht, Kt, Gt, Pt) : u_(Be, yt, Ut, At, Qi, Gt, Kt, Pt), Math.max(wi, Ni);
|
|
43735
43734
|
}(ke, r, t.aabb, s, c);
|
|
43736
43735
|
const je = me([], $e([], ke), ge);
|
|
43737
43736
|
me(s, X, je);
|
|
@@ -43811,7 +43810,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
43811
43810
|
const A = td(t, D);
|
|
43812
43811
|
for (let L = 0; L < D.count; L++)
|
|
43813
43812
|
g.vertexArray.emplaceBack(A[3 * L], A[3 * L + 1], A[3 * L + 2]);
|
|
43814
|
-
if (g.vertexArray._trim(), g.aabb = new
|
|
43813
|
+
if (g.vertexArray._trim(), g.aabb = new rn(D.min, D.max), g.centroid = function(L, P) {
|
|
43815
43814
|
const R = [0, 0, 0], Y = L.length;
|
|
43816
43815
|
if (Y > 0) {
|
|
43817
43816
|
for (let K = 0; K < Y; K++) {
|
|
@@ -44016,7 +44015,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44016
44015
|
const c = { defined: !0 };
|
|
44017
44016
|
c.emissiveFactor = qn.black;
|
|
44018
44017
|
const h = {};
|
|
44019
|
-
return h.baseColorFactor = qn.white, c.pbrMetallicRoughness = h, r.material = c, r.aabb = new
|
|
44018
|
+
return h.baseColorFactor = qn.white, c.pbrMetallicRoughness = h, r.material = c, r.aabb = new rn([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), r;
|
|
44020
44019
|
}
|
|
44021
44020
|
const HS = Pn([{ name: "a_pos_3f", components: 3, type: "Float32" }]), LP = Pn([{ name: "a_normal_3", components: 3, type: "Int16" }]), zP = Pn([{ name: "a_centroid_3", components: 3, type: "Int16" }]), $S = Pn([{ name: "a_part_color_emissive", components: 2, type: "Uint16" }]), OP = Pn([{ name: "a_faux_facade_color_emissive", components: 2, type: "Uint16" }]), kP = Pn([{ name: "a_faux_facade_data", components: 4, type: "Uint16" }]), jP = Pn([{ name: "a_faux_facade_vertical_range", components: 2, type: "Uint16" }]), PP = Pn([{ name: "a_bloom_attenuation", components: 4, type: "Float32" }]), YS = Qt.types, nM = 32767;
|
|
44022
44021
|
function RP(s, t) {
|
|
@@ -44161,7 +44160,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44161
44160
|
for (const Ci of Ut.meshes)
|
|
44162
44161
|
yt += Ci.positions.length / 3;
|
|
44163
44162
|
const ht = _e ? this.buildingWithFacade : this.buildingWithoutFacade, Kt = ht.segmentsBucket.prepareSegment(yt, ht.layoutVertexArray, ht.indexArray), Gt = [];
|
|
44164
|
-
let Qi = null,
|
|
44163
|
+
let Qi = null, wi = 0, Ni = -1;
|
|
44165
44164
|
const ai = ht.indexArray.length;
|
|
44166
44165
|
let Ui = 0;
|
|
44167
44166
|
for (const Ci of Ut.meshes) {
|
|
@@ -44173,9 +44172,9 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44173
44172
|
Nt.push({ pos: [Cn + 0.5 * nr, En + 0.5 * $n, Dr], normal: [$n / yr, -nr / yr, 0], width: yr, height: Tn, depth: dr, points: [Cn, En, Dn, er] });
|
|
44174
44173
|
}
|
|
44175
44174
|
const pi = ht.entranceBloom.segmentsBucket.prepareSegment(10 * Nt.length, ht.entranceBloom.layoutVertexArray, ht.entranceBloom.indexArray), fi = ht.entranceBloom.layoutVertexArray.length;
|
|
44176
|
-
|
|
44175
|
+
wi = ht.entranceBloom.indexArray.length, QS(Nt, 0.5 / this.tileToMeter, ht.entranceBloom.indexArray, ht.entranceBloom.layoutVertexArray, ht.entranceBloom.layoutAttenuationArray);
|
|
44177
44176
|
const Si = ht.entranceBloom.layoutVertexArray.length - fi;
|
|
44178
|
-
Ni = ht.entranceBloom.indexArray.length -
|
|
44177
|
+
Ni = ht.entranceBloom.indexArray.length - wi;
|
|
44179
44178
|
for (let Yi = 0; Yi < Si; Yi++)
|
|
44180
44179
|
ht.entranceBloom.layoutColorArray.emplaceBack(65535, 65535);
|
|
44181
44180
|
pi.vertexLength += Si, pi.primitiveLength += Ni, Qi = { part: Ci.buildingPart, vertexOffset: fi, vertexLength: Si };
|
|
@@ -44211,7 +44210,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44211
44210
|
Kt.vertexLength += Ci.positions.length / 3, Kt.primitiveLength += Ci.indices.length / 3, (Ci.buildingPart === "roof" || Ci.buildingPart === "wall" || Ci.buildingPart === "facade_glazing" || Ci.buildingPart === "entrance") && Gt.push({ part: Ci.buildingPart, vertexOffset: yn, vertexLength: Ci.positions.length / 3 });
|
|
44212
44211
|
}
|
|
44213
44212
|
this.maxHeight = Math.max(this.maxHeight, Ui), this.buildingFeatures.push({ feature: C, hasFauxFacade: _e, segment: Kt, parts: Gt, buildingBloom: Qi });
|
|
44214
|
-
const fn = ht.indexArray.length - ai, gi = [], ji = [],
|
|
44213
|
+
const fn = ht.indexArray.length - ai, gi = [], ji = [], tn = new Dt(1 / 0, 1 / 0), gn = new Dt(-1 / 0, -1 / 0), An = this.groundEffect.vertexArray.length;
|
|
44215
44214
|
for (const Ci of Ut.modifiedPolygonRings) {
|
|
44216
44215
|
const yn = [], Bn = new Dt(1 / 0, 1 / 0), Te = new Dt(-1 / 0, -1 / 0);
|
|
44217
44216
|
for (let De = 0; De < Ci.length; De += 2) {
|
|
@@ -44220,14 +44219,14 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44220
44219
|
const Nt = new Dt(Ci[mt], Ci[mt + 1]);
|
|
44221
44220
|
yn.push(Nt), gi.push(Nt.x, Nt.y), ji.push(Nt.clone());
|
|
44222
44221
|
}
|
|
44223
|
-
|
|
44222
|
+
tn.x = Math.min(tn.x, Bn.x), tn.y = Math.min(tn.y, Bn.y), gn.x = Math.max(gn.x, Te.x), gn.y = Math.max(gn.y, Te.y), this.groundEffect.addData(yn, [Bn, Te], ge);
|
|
44224
44223
|
}
|
|
44225
44224
|
const _n = this.groundEffect.vertexArray.length - An;
|
|
44226
44225
|
(Pt.x < 0 || Ft.x > li || Pt.y < 0 || Ft.y > li) && this.featuresOnBorder.push({ featureId: M.id, footprintIndex: this.footprints.length });
|
|
44227
44226
|
{
|
|
44228
44227
|
const Ci = Gf(gi, null, 2), yn = new Jy(ji, Ci, 8, 256);
|
|
44229
44228
|
let Bn = M.id;
|
|
44230
|
-
M.properties && M.properties.hasOwnProperty("building_id") && (Bn = M.properties.building_id), this.footprints.push({ vertices: ji, indices: Ci, grid: yn, min:
|
|
44229
|
+
M.properties && M.properties.hasOwnProperty("building_id") && (Bn = M.properties.building_id), this.footprints.push({ vertices: ji, indices: Ci, grid: yn, min: tn, max: gn, buildingId: Bn, hiddenFlags: 0, indicesOffset: ai, indicesLength: fn, bloomIndicesOffset: wi, bloomIndicesLength: Ni, groundEffectVertexOffset: An, groundEffectVertexLength: _n, hasFauxFacade: _e, segment: Kt, height: Ui });
|
|
44231
44230
|
}
|
|
44232
44231
|
this.programConfigurations.populatePaintArrays(ht.layoutVertexArray.length, M, D, {}, r.availableImages, c, r.brightness), this.groundEffect.addPaintPropertiesData(M, D, {}, r.availableImages, c, r.brightness);
|
|
44233
44232
|
}
|
|
@@ -44667,8 +44666,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44667
44666
|
const ht = function(Kt) {
|
|
44668
44667
|
if (Kt.patternJoinNone) {
|
|
44669
44668
|
const Gt = Kt.segmentPoints.length / 2, Qi = Kt.lineSoFar - Kt.segmentStart;
|
|
44670
|
-
for (let
|
|
44671
|
-
const Ni = Kt.segmentPoints[2 *
|
|
44669
|
+
for (let wi = 0; wi < Gt; ++wi) {
|
|
44670
|
+
const Ni = Kt.segmentPoints[2 * wi + 1], ai = Math.round(Kt.segmentPoints[2 * wi]) + 0.5 + 0.25 * Ni;
|
|
44672
44671
|
Kt.patternVertexArray.emplaceBack(ai, Qi, Kt.segmentStart), Kt.patternVertexArray.emplaceBack(ai, Qi, Kt.segmentStart);
|
|
44673
44672
|
}
|
|
44674
44673
|
Kt.segmentPoints.length = 0;
|
|
@@ -44725,10 +44724,10 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44725
44724
|
Ye != null && pe && this.addCurrentVertex(X, Be || _e, -1, -1, K, Ye);
|
|
44726
44725
|
const ht = X.dist(pe) <= 2 * yt && it !== "bevel", Kt = $t.mult(Ut ? 1 : -1);
|
|
44727
44726
|
Kt._mult(Ft);
|
|
44728
|
-
const Gt = ke.mult(Ut ? -1 : 1), Qi = _e.mult(Ut ? -1 : 1),
|
|
44729
|
-
if (Ye == null && (this.addHalfVertex(X, Kt.x, Kt.y, !1, !Ut, 0, K,
|
|
44727
|
+
const Gt = ke.mult(Ut ? -1 : 1), Qi = _e.mult(Ut ? -1 : 1), wi = this.evaluateLineProgressFeatures(this.distance);
|
|
44728
|
+
if (Ye == null && (this.addHalfVertex(X, Kt.x, Kt.y, !1, !Ut, 0, K, wi), ht || this.addHalfVertex(X, Kt.x + 2 * Qi.x, Kt.y + 2 * Qi.y, !1, Ut, 0, K, wi)), it === "fakeround") {
|
|
44730
44729
|
const Ni = Math.round(180 * Wt / Math.PI / 20);
|
|
44731
|
-
this.addHalfVertex(X, Qi.x, Qi.y, !1, Ut, 0, K,
|
|
44730
|
+
this.addHalfVertex(X, Qi.x, Qi.y, !1, Ut, 0, K, wi);
|
|
44732
44731
|
for (let ai = 0; ai < Ni; ai++) {
|
|
44733
44732
|
let Ui = ai / Ni;
|
|
44734
44733
|
if (Ui !== 0.5) {
|
|
@@ -44736,11 +44735,11 @@ ${JSON.stringify(h, null, 2)}
|
|
|
44736
44735
|
Ui += Ui * gi * (Ui - 1) * ((1.0904 + kt * (kt * (3.55645 - 1.43519 * kt) - 3.2452)) * gi * gi + (0.848013 + kt * (0.215638 * kt - 1.06021)));
|
|
44737
44736
|
}
|
|
44738
44737
|
const fn = Gt.sub(Qi)._mult(Ui)._add(Qi)._unit();
|
|
44739
|
-
this.addHalfVertex(X, fn.x, fn.y, !1, Ut, 0, K,
|
|
44738
|
+
this.addHalfVertex(X, fn.x, fn.y, !1, Ut, 0, K, wi);
|
|
44740
44739
|
}
|
|
44741
|
-
this.addHalfVertex(X, Gt.x, Gt.y, !1, Ut, 0, K,
|
|
44740
|
+
this.addHalfVertex(X, Gt.x, Gt.y, !1, Ut, 0, K, wi);
|
|
44742
44741
|
}
|
|
44743
|
-
ht || Ye != null || this.addHalfVertex(X, Kt.x + 2 * Gt.x, Kt.y + 2 * Gt.y, !1, Ut, 0, K,
|
|
44742
|
+
ht || Ye != null || this.addHalfVertex(X, Kt.x + 2 * Gt.x, Kt.y + 2 * Gt.y, !1, Ut, 0, K, wi), Ye != null && ge && this.addCurrentVertex(X, je || ke, 1, 1, K, Ye);
|
|
44744
44743
|
} else if (it === "butt")
|
|
44745
44744
|
this.addCurrentVertex(X, $t, 0, 0, K, Ye);
|
|
44746
44745
|
else if (it === "square") {
|
|
@@ -45354,12 +45353,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
45354
45353
|
if (!Be)
|
|
45355
45354
|
return [];
|
|
45356
45355
|
const $t = [], Pt = function(Ut, yt, ht, Kt, Gt, Qi) {
|
|
45357
|
-
let
|
|
45356
|
+
let wi = 0;
|
|
45358
45357
|
for (let Ni = 0; Ni < Ut.length(); Ni++) {
|
|
45359
45358
|
const ai = Ut.getSection(Ni);
|
|
45360
|
-
|
|
45359
|
+
wi += fA(Ut.getCodePoint(Ni), ai, Kt, Gt, yt, Qi);
|
|
45361
45360
|
}
|
|
45362
|
-
return
|
|
45361
|
+
return wi / Math.max(1, Math.ceil(wi / ht));
|
|
45363
45362
|
}(Be, Ye, qe, Lt, it, kt), Ft = Be.text.indexOf("") >= 0;
|
|
45364
45363
|
let Wt = 0;
|
|
45365
45364
|
for (let Ut = 0; Ut < Be.length(); Ut++) {
|
|
@@ -45402,25 +45401,25 @@ ${JSON.stringify(h, null, 2)}
|
|
|
45402
45401
|
let Qi = !1;
|
|
45403
45402
|
for (const gi of it) {
|
|
45404
45403
|
const ji = gi.getSections();
|
|
45405
|
-
for (const
|
|
45406
|
-
if (
|
|
45404
|
+
for (const tn of ji) {
|
|
45405
|
+
if (tn.image)
|
|
45407
45406
|
continue;
|
|
45408
|
-
const gn = Ye[
|
|
45407
|
+
const gn = Ye[tn.fontStack];
|
|
45409
45408
|
if (gn && (Qi = gn.ascender !== void 0 && gn.descender !== void 0, !Qi))
|
|
45410
45409
|
break;
|
|
45411
45410
|
}
|
|
45412
45411
|
if (!Qi)
|
|
45413
45412
|
break;
|
|
45414
45413
|
}
|
|
45415
|
-
let
|
|
45414
|
+
let wi = 0;
|
|
45416
45415
|
for (const gi of it) {
|
|
45417
45416
|
gi.trim();
|
|
45418
|
-
const ji = gi.getMaxScale(),
|
|
45419
|
-
Be.positionedLines[
|
|
45417
|
+
const ji = gi.getMaxScale(), tn = (ji - 1) * Io, gn = { positionedGlyphs: [], lineOffset: 0 };
|
|
45418
|
+
Be.positionedLines[wi] = gn;
|
|
45420
45419
|
const An = gn.positionedGlyphs;
|
|
45421
45420
|
let _n = 0;
|
|
45422
45421
|
if (!gi.length()) {
|
|
45423
|
-
ht += kt, ++
|
|
45422
|
+
ht += kt, ++wi;
|
|
45424
45423
|
continue;
|
|
45425
45424
|
}
|
|
45426
45425
|
let Ci = 0, yn = 0;
|
|
@@ -45459,12 +45458,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
45459
45458
|
}
|
|
45460
45459
|
An.length !== 0 && (Kt = Math.max(yt - Wt, Kt), Qi ? yA(An, Gt, _n, yn, kt * ji / 2) : yA(An, Gt, _n, 0, kt / 2)), yt = 0;
|
|
45461
45460
|
const Bn = kt * ji + _n;
|
|
45462
|
-
gn.lineOffset = Math.max(_n,
|
|
45461
|
+
gn.lineOffset = Math.max(_n, tn), ht += Bn, ++wi;
|
|
45463
45462
|
}
|
|
45464
45463
|
var Ni;
|
|
45465
45464
|
const ai = ht, { horizontalAlign: Ui, verticalAlign: fn } = hM($t);
|
|
45466
|
-
(function(gi, ji,
|
|
45467
|
-
const Ci = (ji -
|
|
45465
|
+
(function(gi, ji, tn, gn, An, _n) {
|
|
45466
|
+
const Ci = (ji - tn) * An, yn = -_n * gn;
|
|
45468
45467
|
for (const Bn of gi)
|
|
45469
45468
|
for (const Te of Bn.positionedGlyphs)
|
|
45470
45469
|
Te.x += Ci, Te.y += yn;
|
|
@@ -45950,13 +45949,13 @@ ${JSON.stringify(h, null, 2)}
|
|
|
45950
45949
|
pe = p_(L, 0, it[0]), _e = p_(P, 0, it[1]), ge = p_(L, it[0], it[2]), ke = p_(P, it[1], it[3]), je = it[0] - pe, Ye = it[1] - _e, Be = it[2] - it[0] - ge, qe = it[3] - it[1] - ke;
|
|
45951
45950
|
}
|
|
45952
45951
|
const Lt = (it, kt, $t, Pt) => {
|
|
45953
|
-
const Ft = g_(it.stretch - pe, ge, A, s.left * h), Wt = m_(it.fixed - je, Be, it.stretch, R), At = g_(kt.stretch - _e, ke, C, s.top * h), Ut = m_(kt.fixed - Ye, qe, kt.stretch, Y), yt = g_($t.stretch - pe, ge, A, s.left * h), ht = m_($t.fixed - je, Be, $t.stretch, R), Kt = g_(Pt.stretch - _e, ke, C, s.top * h), Gt = m_(Pt.fixed - Ye, qe, Pt.stretch, Y), Qi = new Dt(Ft, At),
|
|
45952
|
+
const Ft = g_(it.stretch - pe, ge, A, s.left * h), Wt = m_(it.fixed - je, Be, it.stretch, R), At = g_(kt.stretch - _e, ke, C, s.top * h), Ut = m_(kt.fixed - Ye, qe, kt.stretch, Y), yt = g_($t.stretch - pe, ge, A, s.left * h), ht = m_($t.fixed - je, Be, $t.stretch, R), Kt = g_(Pt.stretch - _e, ke, C, s.top * h), Gt = m_(Pt.fixed - Ye, qe, Pt.stretch, Y), Qi = new Dt(Ft, At), wi = new Dt(yt, At), Ni = new Dt(yt, Kt), ai = new Dt(Ft, Kt), Ui = new Dt(Wt / x, Ut / x), fn = new Dt(ht / x, Gt / x), gi = t * Math.PI / 180;
|
|
45954
45953
|
if (gi) {
|
|
45955
45954
|
const Ci = Math.sin(gi), yn = Math.cos(gi), Bn = [yn, -Ci, Ci, yn];
|
|
45956
|
-
Qi._matMult(Bn),
|
|
45955
|
+
Qi._matMult(Bn), wi._matMult(Bn), ai._matMult(Bn), Ni._matMult(Bn);
|
|
45957
45956
|
}
|
|
45958
|
-
const ji = it.stretch + it.fixed,
|
|
45959
|
-
return { tl: Qi, tr:
|
|
45957
|
+
const ji = it.stretch + it.fixed, tn = $t.stretch + $t.fixed, gn = kt.stretch + kt.fixed, An = Pt.stretch + Pt.fixed, _n = s.imageSecondary;
|
|
45958
|
+
return { tl: Qi, tr: wi, bl: ai, br: Ni, texPrimary: { x: m.paddedRect.x + Lu + ji, y: m.paddedRect.y + Lu + gn, w: tn - ji, h: An - gn }, texSecondary: _n ? { x: _n.paddedRect.x + Lu + ji, y: _n.paddedRect.y + Lu + gn, w: tn - ji, h: An - gn } : void 0, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Ui, pixelOffsetBR: fn, minFontScaleX: Be / x / A, minFontScaleY: qe / x / C, isSDF: r };
|
|
45960
45959
|
};
|
|
45961
45960
|
if (c && (m.stretchX || m.stretchY)) {
|
|
45962
45961
|
const it = kA(L, K, R), kt = kA(P, X, Y);
|
|
@@ -46189,12 +46188,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
46189
46188
|
return;
|
|
46190
46189
|
let Qi = null;
|
|
46191
46190
|
if (Be) {
|
|
46192
|
-
const { x:
|
|
46193
|
-
Qi = { anchor: new Nc(
|
|
46191
|
+
const { x: wi, y: Ni, z: ai } = P.projectTilePoint(Kt.x, Kt.y, Gt);
|
|
46192
|
+
Qi = { anchor: new Nc(wi, Ni, ai, 0, void 0), up: P.upVector(Gt, Kt.x, Kt.y) };
|
|
46194
46193
|
}
|
|
46195
|
-
(function(
|
|
46196
|
-
const nr =
|
|
46197
|
-
let $n, yr, _r, ur, fr, rr, Nn, or = 0, Or = 0,
|
|
46194
|
+
(function(wi, Ni, ai, Ui, fn, gi, ji, tn, gn, An, _n, Ci, yn, Bn, Te, De, mt, Nt, pi, fi, Si, Yi, Cn, En, Dn, er, Dr, Tn, dr) {
|
|
46195
|
+
const nr = wi.addToLineVertexArray(Ni, Ui);
|
|
46196
|
+
let $n, yr, _r, ur, fr, rr, Nn, or = 0, Or = 0, on = 0, Un = 0, vr = -1, Rr = -1;
|
|
46198
46197
|
const Mr = {};
|
|
46199
46198
|
let to = Fd("");
|
|
46200
46199
|
const sr = ai ? ai.anchor : Ni, qr = Tn !== "none";
|
|
@@ -46204,34 +46203,34 @@ ${JSON.stringify(h, null, 2)}
|
|
|
46204
46203
|
xs = io[0] * Io, Ro = io[1] * Io;
|
|
46205
46204
|
} else
|
|
46206
46205
|
xs = gn.layout.get("text-radial-offset").evaluate(Si, {}, Dn) * Io, Ro = gM;
|
|
46207
|
-
if (
|
|
46206
|
+
if (wi.allowVerticalPlacement && fn.vertical) {
|
|
46208
46207
|
const io = fn.vertical;
|
|
46209
46208
|
if (Te)
|
|
46210
|
-
rr = _M(io),
|
|
46209
|
+
rr = _M(io), tn && (Nn = _M(tn));
|
|
46211
46210
|
else {
|
|
46212
46211
|
const fo = gn.layout.get("text-rotate").evaluate(Si, {}, Dn) + 90;
|
|
46213
|
-
_r = __(An, sr, Ni, _n, Ci, yn, io, Bn, fo, De),
|
|
46212
|
+
_r = __(An, sr, Ni, _n, Ci, yn, io, Bn, fo, De), tn && (ur = __(An, sr, Ni, _n, Ci, yn, tn, Nt, fo));
|
|
46214
46213
|
}
|
|
46215
46214
|
}
|
|
46216
46215
|
if (gi) {
|
|
46217
|
-
const io =
|
|
46216
|
+
const io = wi.iconSizeData, fo = gn.layout.get("icon-rotate").evaluate(Si, {}, Dn), Bo = OA(gi, fo, Cn, qr, Yi.iconScaleFactor), ts = tn ? OA(tn, fo, Cn, qr, Yi.iconScaleFactor) : void 0;
|
|
46218
46217
|
yr = __(An, sr, Ni, _n, Ci, yn, gi, Nt, fo, null), or = 4 * Bo.length;
|
|
46219
46218
|
let $o = null;
|
|
46220
|
-
io.kind === "source" ? ($o = [Fl * gn.layout.get("icon-size").evaluate(Si, {}, Dn) * Yi.iconScaleFactor], $o[0] > zu && _i(`${
|
|
46219
|
+
io.kind === "source" ? ($o = [Fl * gn.layout.get("icon-size").evaluate(Si, {}, Dn) * Yi.iconScaleFactor], $o[0] > zu && _i(`${wi.layerIds[0]}: Value for "icon-size" is >= ${i0}. Reduce your "icon-size".`)) : io.kind === "composite" && ($o = [Fl * Yi.compositeIconSizes[0].evaluate(Si, {}, Dn) * Yi.iconScaleFactor, Fl * Yi.compositeIconSizes[1].evaluate(Si, {}, Dn) * Yi.iconScaleFactor], ($o[0] > zu || $o[1] > zu) && _i(`${wi.layerIds[0]}: Value for "icon-size" is >= ${i0}. Reduce your "icon-size".`)), wi.addSymbols(wi.icon, Bo, $o, fi, pi, Si, void 0, ai, Ni, nr.lineStartIndex, nr.lineLength, -1, En, Dn, er, Dr), vr = wi.icon.placedSymbolArray.length - 1, ts && (Or = 4 * ts.length, wi.addSymbols(wi.icon, ts, $o, fi, pi, Si, Bs.vertical, ai, Ni, nr.lineStartIndex, nr.lineLength, -1, En, Dn, er, Dr), Rr = wi.icon.placedSymbolArray.length - 1);
|
|
46221
46220
|
}
|
|
46222
46221
|
for (const io in fn.horizontal) {
|
|
46223
46222
|
const fo = io, Bo = fn.horizontal[fo];
|
|
46224
46223
|
$n || (to = Fd(Bo.text), Te ? fr = _M(Bo) : $n = __(An, sr, Ni, _n, Ci, yn, Bo, Bn, gn.layout.get("text-rotate").evaluate(Si, {}, Dn), De));
|
|
46225
46224
|
const ts = Bo.positionedLines.length === 1;
|
|
46226
|
-
if (
|
|
46225
|
+
if (on += UA(wi, ai, Ni, Bo, ji, gn, Te, Si, De, nr, fn.vertical ? Bs.horizontal : Bs.horizontalOnly, ts ? CR(fn.horizontal) : [fo], Mr, vr, Yi, En, Dn, er), ts)
|
|
46227
46226
|
break;
|
|
46228
46227
|
}
|
|
46229
|
-
fn.vertical && (Un += UA(
|
|
46228
|
+
fn.vertical && (Un += UA(wi, ai, Ni, fn.vertical, ji, gn, Te, Si, De, nr, Bs.vertical, ["vertical"], Mr, Rr, Yi, En, Dn, er));
|
|
46230
46229
|
let Co = -1;
|
|
46231
46230
|
const ws = (io, fo) => io ? Math.max(io, fo) : fo;
|
|
46232
46231
|
Co = ws(fr, Co), Co = ws(rr, Co), Co = ws(Nn, Co);
|
|
46233
46232
|
const Ul = Co > -1 ? 1 : 0;
|
|
46234
|
-
|
|
46233
|
+
wi.glyphOffsetArray.length >= 65535 && _i("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Si.sortKey !== void 0 && wi.addToSortKeyRanges(wi.symbolInstances.length, Si.sortKey), wi.symbolInstances.emplaceBack(Ni.x, Ni.y, sr.x, sr.y, sr.z, Mr.right >= 0 ? Mr.right : -1, Mr.center >= 0 ? Mr.center : -1, Mr.left >= 0 ? Mr.left : -1, Mr.vertical >= 0 ? Mr.vertical : -1, vr, Rr, to, $n !== void 0 ? $n : wi.collisionBoxArray.length, $n !== void 0 ? $n + 1 : wi.collisionBoxArray.length, _r !== void 0 ? _r : wi.collisionBoxArray.length, _r !== void 0 ? _r + 1 : wi.collisionBoxArray.length, yr !== void 0 ? yr : wi.collisionBoxArray.length, yr !== void 0 ? yr + 1 : wi.collisionBoxArray.length, ur || wi.collisionBoxArray.length, ur ? ur + 1 : wi.collisionBoxArray.length, _n, on, Un, or, Or, Ul, 0, xs, Ro, Co, 0, qr ? 1 : 0, dr);
|
|
46235
46234
|
})(s, Kt, Qi, ht, r, c, g, h, s.layers[0], s.collisionBoxArray, t.index, t.sourceLayerIndex, s.index, it, pe, D, 0, kt, Pt, X, t, m, A, C, L, R, Y, K, Ut);
|
|
46236
46235
|
};
|
|
46237
46236
|
if (ge === "line")
|
|
@@ -46281,7 +46280,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
46281
46280
|
if (!Gt.rect)
|
|
46282
46281
|
continue;
|
|
46283
46282
|
const Qi = Gt.rect || {};
|
|
46284
|
-
let
|
|
46283
|
+
let wi = dA + 1, Ni = !0, ai = 1, Ui = 0;
|
|
46285
46284
|
if (Gt.image) {
|
|
46286
46285
|
const Si = it.get(Gt.image.toString());
|
|
46287
46286
|
if (!Si)
|
|
@@ -46290,24 +46289,24 @@ ${JSON.stringify(h, null, 2)}
|
|
|
46290
46289
|
_i("SDF images are not supported in formatted text and will be ignored.");
|
|
46291
46290
|
continue;
|
|
46292
46291
|
}
|
|
46293
|
-
Ni = !1, ai = Si.pixelRatio,
|
|
46292
|
+
Ni = !1, ai = Si.pixelRatio, wi = id / ai;
|
|
46294
46293
|
}
|
|
46295
|
-
const fn = (qe || kt) && Gt.vertical, gi = Gt.metrics.advance * Gt.scale / 2, ji = Gt.metrics,
|
|
46296
|
-
if (
|
|
46294
|
+
const fn = (qe || kt) && Gt.vertical, gi = Gt.metrics.advance * Gt.scale / 2, ji = Gt.metrics, tn = Gt.rect;
|
|
46295
|
+
if (tn === null)
|
|
46297
46296
|
continue;
|
|
46298
46297
|
kt && je.verticalizable && (Ui = Gt.image ? gi - Gt.metrics.width * Gt.scale / 2 : 0);
|
|
46299
46298
|
const gn = qe ? [Gt.x + gi, Gt.y] : [0, 0];
|
|
46300
46299
|
let An = [0, 0], _n = [0, 0], Ci = !1;
|
|
46301
46300
|
qe || (fn ? (_n = [Gt.x + gi + Ft[0], Gt.y + Ft[1] - Ui], Ci = !0) : An = [Gt.x + gi + Be[0], Gt.y + Be[1] - Ui]);
|
|
46302
|
-
const yn =
|
|
46301
|
+
const yn = tn.w * Gt.scale / (ai * (Gt.localGlyph ? il : 1)), Bn = tn.h * Gt.scale / (ai * (Gt.localGlyph ? il : 1));
|
|
46303
46302
|
let Te, De, mt, Nt;
|
|
46304
46303
|
if (fn) {
|
|
46305
46304
|
const Si = Gt.y - yt, Yi = new Dt(-gi, gi - Si), Cn = -Math.PI / 2, En = new Dt(..._n);
|
|
46306
|
-
Te = new Dt(-gi + An[0], An[1]), Te._rotateAround(Cn, Yi)._add(En), Te.x += -Si + gi, Te.y -= (ji.left -
|
|
46305
|
+
Te = new Dt(-gi + An[0], An[1]), Te._rotateAround(Cn, Yi)._add(En), Te.x += -Si + gi, Te.y -= (ji.left - wi) * Gt.scale;
|
|
46307
46306
|
const Dn = Gt.image ? ji.advance * Gt.scale : Io * Gt.scale, er = String.fromCodePoint(Gt.glyph);
|
|
46308
|
-
aR(er) ? Te.x += (1 -
|
|
46307
|
+
aR(er) ? Te.x += (1 - wi) * Gt.scale : lR(er) ? Te.x += Dn - ji.height * Gt.scale + (-wi - 1) * Gt.scale : Te.x += Gt.image || ji.width + 2 * wi === tn.w && ji.height + 2 * wi === tn.h ? (Dn - Bn) / 2 : (Dn - (ji.height + 2 * wi) * Gt.scale) / 2, De = new Dt(Te.x, Te.y - yn), mt = new Dt(Te.x + Bn, Te.y), Nt = new Dt(Te.x + Bn, Te.y - yn);
|
|
46309
46308
|
} else {
|
|
46310
|
-
const Si = (ji.left -
|
|
46309
|
+
const Si = (ji.left - wi) * Gt.scale - gi + An[0], Yi = (-ji.top - wi) * Gt.scale + An[1], Cn = Si + yn, En = Yi + Bn;
|
|
46311
46310
|
Te = new Dt(Si, Yi), De = new Dt(Cn, Yi), mt = new Dt(Si, En), Nt = new Dt(Cn, En);
|
|
46312
46311
|
}
|
|
46313
46312
|
if (Pt) {
|
|
@@ -46930,17 +46929,17 @@ ${JSON.stringify(h, null, 2)}
|
|
|
46930
46929
|
addSymbols(t, r, c, h, g, m, x, M, D, A, C, L, P, R, Y, K) {
|
|
46931
46930
|
const X = t.indexArray, pe = t.layoutVertexArray, ge = t.globeExtVertexArray, _e = t.segments.prepareSegment(4 * r.length, pe, X, this.canOverlap ? m.sortKey : void 0), ke = this.glyphOffsetArray.length, je = _e.vertexLength, Be = this.allowVerticalPlacement && x === Bs.vertical ? Math.PI / 2 : 0, Ye = m.text && m.text.sections;
|
|
46932
46931
|
for (let Lt = 0; Lt < r.length; Lt++) {
|
|
46933
|
-
const { tl: it, tr: kt, bl: $t, br: Pt, texPrimary: Ft, texSecondary: Wt, pixelOffsetTL: At, pixelOffsetBR: Ut, minFontScaleX: yt, minFontScaleY: ht, glyphOffset: Kt, isSDF: Gt, sectionIndex: Qi } = r[Lt],
|
|
46932
|
+
const { tl: it, tr: kt, bl: $t, br: Pt, texPrimary: Ft, texSecondary: Wt, pixelOffsetTL: At, pixelOffsetBR: Ut, minFontScaleX: yt, minFontScaleY: ht, glyphOffset: Kt, isSDF: Gt, sectionIndex: Qi } = r[Lt], wi = _e.vertexLength, Ni = Kt[1];
|
|
46934
46933
|
if (w_(pe, D.x, D.y, it.x, Ni + it.y, Ft.x, Ft.y, c, Gt, At.x, At.y, yt, ht), w_(pe, D.x, D.y, kt.x, Ni + kt.y, Ft.x + Ft.w, Ft.y, c, Gt, Ut.x, At.y, yt, ht), w_(pe, D.x, D.y, $t.x, Ni + $t.y, Ft.x, Ft.y + Ft.h, c, Gt, At.x, Ut.y, yt, ht), w_(pe, D.x, D.y, Pt.x, Ni + Pt.y, Ft.x + Ft.w, Ft.y + Ft.h, c, Gt, Ut.x, Ut.y, yt, ht), M) {
|
|
46935
|
-
const { x: ai, y: Ui, z: fn } = M.anchor, [gi, ji,
|
|
46936
|
-
M_(ge, ai, Ui, fn, gi, ji,
|
|
46934
|
+
const { x: ai, y: Ui, z: fn } = M.anchor, [gi, ji, tn] = M.up;
|
|
46935
|
+
M_(ge, ai, Ui, fn, gi, ji, tn), M_(ge, ai, Ui, fn, gi, ji, tn), M_(ge, ai, Ui, fn, gi, ji, tn), M_(ge, ai, Ui, fn, gi, ji, tn), T_(t.dynamicLayoutVertexArray, ai, Ui, fn, Be);
|
|
46937
46936
|
} else
|
|
46938
46937
|
T_(t.dynamicLayoutVertexArray, D.x, D.y, D.z, Be);
|
|
46939
46938
|
if (K) {
|
|
46940
46939
|
const ai = Wt || Ft;
|
|
46941
46940
|
b_(t.iconTransitioningVertexArray, ai.x, ai.y), b_(t.iconTransitioningVertexArray, ai.x + ai.w, ai.y), b_(t.iconTransitioningVertexArray, ai.x, ai.y + ai.h), b_(t.iconTransitioningVertexArray, ai.x + ai.w, ai.y + ai.h);
|
|
46942
46941
|
}
|
|
46943
|
-
X.emplaceBack(
|
|
46942
|
+
X.emplaceBack(wi, wi + 1, wi + 2), X.emplaceBack(wi + 1, wi + 2, wi + 3), _e.vertexLength += 4, _e.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Kt[0]), Lt !== r.length - 1 && Qi === r[Lt + 1].sectionIndex || t.programConfigurations.populatePaintArrays(pe.length, m, m.index, {}, P, R, Y, Ye && Ye[Qi], this.worldview);
|
|
46944
46943
|
}
|
|
46945
46944
|
const qe = M ? M.anchor : D;
|
|
46946
46945
|
t.placedSymbolArray.emplaceBack(qe.x, qe.y, qe.z, D.x, D.y, ke, this.glyphOffsetArray.length - ke, je, A, C, D.segment, c ? c[0] : 0, c ? c[1] : 0, h[0], h[1], x, 0, 0, 0, L, 0);
|
|
@@ -47310,20 +47309,20 @@ ${JSON.stringify(h, null, 2)}
|
|
|
47310
47309
|
for (let Gt = 1; Gt < At.length; Gt++)
|
|
47311
47310
|
At[Gt].x < Ut ? Ut = At[Gt].x : At[Gt].x > yt && (yt = At[Gt].x), At[Gt].y < ht ? ht = At[Gt].y : At[Gt].y > Kt && (Kt = At[Gt].y);
|
|
47312
47311
|
return [Ut, ht, yt - Ut, Kt - ht];
|
|
47313
|
-
}(c), je = (At) => [(At.x - pe) / _e, (At.y - ge) / ke], [Be, Ye, qe, Lt] = c.map(je), it = function(At, Ut, yt, ht, Kt, Gt, Qi,
|
|
47312
|
+
}(c), je = (At) => [(At.x - pe) / _e, (At.y - ge) / ke], [Be, Ye, qe, Lt] = c.map(je), it = function(At, Ut, yt, ht, Kt, Gt, Qi, wi) {
|
|
47314
47313
|
const Ni = A_(0, 0, 1, 0, 1, 1, 0, 1);
|
|
47315
|
-
return le(Ni, Ni, G([], A_(At, Ut, yt, ht, Kt, Gt, Qi,
|
|
47314
|
+
return le(Ni, Ni, G([], A_(At, Ut, yt, ht, Kt, Gt, Qi, wi)));
|
|
47316
47315
|
}(Be[0], Be[1], Ye[0], Ye[1], qe[0], qe[1], Lt[0], Lt[1]);
|
|
47317
47316
|
this.elevatedGlobePerspectiveTransform = iC(Be[0], Be[1], Ye[0], Ye[1], qe[0], qe[1], Lt[0], Lt[1]);
|
|
47318
47317
|
const kt = (At, Ut) => {
|
|
47319
47318
|
A.push(At.lng);
|
|
47320
|
-
const yt = Math.round((At.lng - P) / Y * li), ht = Math.round((At.lat - R) / K * li), Kt = je(Ut), Gt = He([], [Kt[0], Kt[1], 1], it), Qi = Math.round(Gt[0] / Gt[2] * li),
|
|
47321
|
-
X.emplaceBack(yt, ht, Qi,
|
|
47319
|
+
const yt = Math.round((At.lng - P) / Y * li), ht = Math.round((At.lat - R) / K * li), Kt = je(Ut), Gt = He([], [Kt[0], Kt[1], 1], it), Qi = Math.round(Gt[0] / Gt[2] * li), wi = Math.round(Gt[1] / Gt[2] * li);
|
|
47320
|
+
X.emplaceBack(yt, ht, Qi, wi);
|
|
47322
47321
|
}, $t = c[3].x - c[0].x, Pt = c[3].y - c[0].y, Ft = c[2].x - c[1].x, Wt = c[2].y - c[1].y;
|
|
47323
47322
|
for (let At = 0; At < 65; At++) {
|
|
47324
47323
|
const Ut = At / 64, yt = [c[0].x + Ut * $t, c[0].y + Ut * Pt], ht = [c[1].x + Ut * Ft, c[1].y + Ut * Wt], Kt = ht[0] - yt[0], Gt = ht[1] - yt[1];
|
|
47325
47324
|
for (let Qi = 0; Qi < 65; Qi++) {
|
|
47326
|
-
const
|
|
47325
|
+
const wi = Qi / 64, Ni = { x: yt[0] + Kt * wi, y: yt[1] + Gt * wi };
|
|
47327
47326
|
kt(r.projection.unproject(Ni.x, Ni.y), Ni);
|
|
47328
47327
|
}
|
|
47329
47328
|
}
|
|
@@ -47707,7 +47706,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
47707
47706
|
for (const c of s.meshes) {
|
|
47708
47707
|
if (c.aabb.min[0] === 1 / 0)
|
|
47709
47708
|
continue;
|
|
47710
|
-
const h =
|
|
47709
|
+
const h = rn.applyTransform(c.aabb, s.matrix);
|
|
47711
47710
|
r.insert(t, h.min[0], h.min[1], h.max[0], h.max[1]);
|
|
47712
47711
|
}
|
|
47713
47712
|
if (s.children)
|
|
@@ -47721,12 +47720,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
47721
47720
|
}
|
|
47722
47721
|
_getLocalBounds() {
|
|
47723
47722
|
if (!this.node.meshes)
|
|
47724
|
-
return new
|
|
47723
|
+
return new rn([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]);
|
|
47725
47724
|
if (!this.aabb) {
|
|
47726
47725
|
let t = 0;
|
|
47727
|
-
const r = new
|
|
47726
|
+
const r = new rn([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]);
|
|
47728
47727
|
for (const c of this.node.meshes)
|
|
47729
|
-
this.node.lightMeshIndex !== t && (c.transformedAabb =
|
|
47728
|
+
this.node.lightMeshIndex !== t && (c.transformedAabb = rn.applyTransformFast(c.aabb, this.node.matrix), r.encapsulate(c.transformedAabb)), t++;
|
|
47730
47729
|
this.aabb = r;
|
|
47731
47730
|
}
|
|
47732
47731
|
return this.aabb;
|
|
@@ -48183,8 +48182,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
48183
48182
|
return !1;
|
|
48184
48183
|
g.projection.name === "globe" && (c = mS([c], [new Dt(0, 0), new Dt(li, li)], s.tileID.canonical).map((_e) => _e.polygon).flat());
|
|
48185
48184
|
const K = P ? x : null, [X, pe] = function(_e, ke, je, Be, Ye, qe, Lt, it, kt, $t, Pt) {
|
|
48186
|
-
return _e.projection.name === "globe" ? function(Ft, Wt, At, Ut, yt, ht, Kt, Gt, Qi,
|
|
48187
|
-
const ai = [], Ui = [], fn = Ft.projection.upVectorScale(Ni, Ft.center.lat, Ft.worldSize).metersToTile, gi = [0, 0, 0, 1], ji = [0, 0, 0, 1],
|
|
48185
|
+
return _e.projection.name === "globe" ? function(Ft, Wt, At, Ut, yt, ht, Kt, Gt, Qi, wi, Ni) {
|
|
48186
|
+
const ai = [], Ui = [], fn = Ft.projection.upVectorScale(Ni, Ft.center.lat, Ft.worldSize).metersToTile, gi = [0, 0, 0, 1], ji = [0, 0, 0, 1], tn = (An, _n, Ci, yn) => {
|
|
48188
48187
|
An[0] = _n, An[1] = Ci, An[2] = yn, An[3] = 1;
|
|
48189
48188
|
}, gn = gS();
|
|
48190
48189
|
At > 0 && (At += gn), Ut += gn;
|
|
@@ -48194,38 +48193,38 @@ ${JSON.stringify(h, null, 2)}
|
|
|
48194
48193
|
const Bn = yn.x + yt.x, Te = yn.y + yt.y, De = Ft.projection.projectTilePoint(Bn, Te, Ni), mt = Ft.projection.upVector(Ni, yn.x, yn.y);
|
|
48195
48194
|
let Nt = At, pi = Ut;
|
|
48196
48195
|
if (Kt) {
|
|
48197
|
-
const fi = IS(Bn, Te, At, Ut, Kt, Gt, Qi,
|
|
48196
|
+
const fi = IS(Bn, Te, At, Ut, Kt, Gt, Qi, wi);
|
|
48198
48197
|
Nt += fi.base, pi += fi.top;
|
|
48199
48198
|
}
|
|
48200
|
-
At !== 0 ?
|
|
48199
|
+
At !== 0 ? tn(gi, De.x + mt[0] * fn * Nt, De.y + mt[1] * fn * Nt, De.z + mt[2] * fn * Nt) : tn(gi, De.x, De.y, De.z), tn(ji, De.x + mt[0] * fn * pi, De.y + mt[1] * fn * pi, De.z + mt[2] * fn * pi), xe(gi, gi, ht), xe(ji, ji, ht), _n.push(new Xh(gi[0], gi[1], gi[2])), Ci.push(new Xh(ji[0], ji[1], ji[2]));
|
|
48201
48200
|
}
|
|
48202
48201
|
ai.push(_n), Ui.push(Ci);
|
|
48203
48202
|
}
|
|
48204
48203
|
return [ai, Ui];
|
|
48205
48204
|
}(_e, ke, je, Be, Ye, qe, Lt, it, kt, $t, Pt) : Lt ? function(Ft, Wt, At, Ut, yt, ht, Kt, Gt, Qi) {
|
|
48206
|
-
const
|
|
48205
|
+
const wi = [], Ni = [], ai = [0, 0, 0, 1];
|
|
48207
48206
|
for (const Ui of Ft) {
|
|
48208
48207
|
const fn = [], gi = [];
|
|
48209
48208
|
for (const ji of Ui) {
|
|
48210
|
-
const
|
|
48211
|
-
ai[0] =
|
|
48209
|
+
const tn = ji.x + Ut.x, gn = ji.y + Ut.y, An = IS(tn, gn, Wt, At, ht, Kt, Gt, Qi);
|
|
48210
|
+
ai[0] = tn, ai[1] = gn, ai[2] = An.base, ai[3] = 1, ei(ai, ai, yt), ai[3] = Math.max(ai[3], 1e-5);
|
|
48212
48211
|
const _n = new Xh(ai[0] / ai[3], ai[1] / ai[3], ai[2] / ai[3]);
|
|
48213
|
-
ai[0] =
|
|
48212
|
+
ai[0] = tn, ai[1] = gn, ai[2] = An.top, ai[3] = 1, ei(ai, ai, yt), ai[3] = Math.max(ai[3], 1e-5);
|
|
48214
48213
|
const Ci = new Xh(ai[0] / ai[3], ai[1] / ai[3], ai[2] / ai[3]);
|
|
48215
48214
|
fn.push(_n), gi.push(Ci);
|
|
48216
48215
|
}
|
|
48217
|
-
|
|
48216
|
+
wi.push(fn), Ni.push(gi);
|
|
48218
48217
|
}
|
|
48219
|
-
return [
|
|
48218
|
+
return [wi, Ni];
|
|
48220
48219
|
}(ke, je, Be, Ye, qe, Lt, it, kt, $t) : function(Ft, Wt, At, Ut, yt) {
|
|
48221
|
-
const ht = [], Kt = [], Gt = yt[8] * Wt, Qi = yt[9] * Wt,
|
|
48220
|
+
const ht = [], Kt = [], Gt = yt[8] * Wt, Qi = yt[9] * Wt, wi = yt[10] * Wt, Ni = yt[11] * Wt, ai = yt[8] * At, Ui = yt[9] * At, fn = yt[10] * At, gi = yt[11] * At;
|
|
48222
48221
|
for (const ji of Ft) {
|
|
48223
|
-
const
|
|
48222
|
+
const tn = [], gn = [];
|
|
48224
48223
|
for (const An of ji) {
|
|
48225
|
-
const _n = An.x + Ut.x, Ci = An.y + Ut.y, yn = yt[0] * _n + yt[4] * Ci + yt[12], Bn = yt[1] * _n + yt[5] * Ci + yt[13], Te = yt[2] * _n + yt[6] * Ci + yt[14], De = yt[3] * _n + yt[7] * Ci + yt[15], mt = yn + Gt, Nt = Bn + Qi, pi = Te +
|
|
48226
|
-
|
|
48224
|
+
const _n = An.x + Ut.x, Ci = An.y + Ut.y, yn = yt[0] * _n + yt[4] * Ci + yt[12], Bn = yt[1] * _n + yt[5] * Ci + yt[13], Te = yt[2] * _n + yt[6] * Ci + yt[14], De = yt[3] * _n + yt[7] * Ci + yt[15], mt = yn + Gt, Nt = Bn + Qi, pi = Te + wi, fi = Math.max(De + Ni, 1e-5), Si = yn + ai, Yi = Bn + Ui, Cn = Te + fn, En = Math.max(De + gi, 1e-5);
|
|
48225
|
+
tn.push(new Xh(mt / fi, Nt / fi, pi / fi)), gn.push(new Xh(Si / En, Yi / En, Cn / En));
|
|
48227
48226
|
}
|
|
48228
|
-
ht.push(
|
|
48227
|
+
ht.push(tn), Kt.push(gn);
|
|
48229
48228
|
}
|
|
48230
48229
|
return [ht, Kt];
|
|
48231
48230
|
}(ke, je, Be, Ye, qe);
|
|
@@ -49416,7 +49415,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49416
49415
|
var ur = new fa(Math.max(2 * _r, yr));
|
|
49417
49416
|
ur.set(qe), qe = ur;
|
|
49418
49417
|
}
|
|
49419
|
-
}, Ut = Ye.f || 0, yt = Ye.p || 0, ht = Ye.b || 0, Kt = Ye.l, Gt = Ye.d, Qi = Ye.m,
|
|
49418
|
+
}, Ut = Ye.f || 0, yt = Ye.p || 0, ht = Ye.b || 0, Kt = Ye.l, Gt = Ye.d, Qi = Ye.m, wi = Ye.n, Ni = 8 * it;
|
|
49420
49419
|
do {
|
|
49421
49420
|
if (!Kt) {
|
|
49422
49421
|
Ut = nl(Be, yt, 1);
|
|
@@ -49431,15 +49430,15 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49431
49430
|
continue;
|
|
49432
49431
|
}
|
|
49433
49432
|
if (ai == 1)
|
|
49434
|
-
Kt = PB, Gt = RB, Qi = 9,
|
|
49433
|
+
Kt = PB, Gt = RB, Qi = 9, wi = 5;
|
|
49435
49434
|
else if (ai == 2) {
|
|
49436
|
-
var gi = nl(Be, yt, 31) + 257, ji = nl(Be, yt + 10, 15) + 4,
|
|
49435
|
+
var gi = nl(Be, yt, 31) + 257, ji = nl(Be, yt + 10, 15) + 4, tn = gi + nl(Be, yt + 5, 31) + 1;
|
|
49437
49436
|
yt += 14;
|
|
49438
|
-
for (var gn = new fa(
|
|
49437
|
+
for (var gn = new fa(tn), An = new fa(19), _n = 0; _n < ji; ++_n)
|
|
49439
49438
|
An[OB[_n]] = nl(Be, yt + 3 * _n, 7);
|
|
49440
49439
|
yt += 3 * ji;
|
|
49441
49440
|
var Ci = zM(An), yn = (1 << Ci) - 1, Bn = d0(An, Ci);
|
|
49442
|
-
for (_n = 0; _n <
|
|
49441
|
+
for (_n = 0; _n < tn; ) {
|
|
49443
49442
|
var Te, De = Bn[nl(Be, yt, yn)];
|
|
49444
49443
|
if (yt += 15 & De, (Te = De >> 4) < 16)
|
|
49445
49444
|
gn[_n++] = Te;
|
|
@@ -49450,7 +49449,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49450
49449
|
}
|
|
49451
49450
|
}
|
|
49452
49451
|
var pi = gn.subarray(0, gi), fi = gn.subarray(gi);
|
|
49453
|
-
Qi = zM(pi),
|
|
49452
|
+
Qi = zM(pi), wi = zM(fi), Kt = d0(pi, Qi), Gt = d0(fi, wi);
|
|
49454
49453
|
} else
|
|
49455
49454
|
rl(1);
|
|
49456
49455
|
if (yt > Ni) {
|
|
@@ -49459,7 +49458,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49459
49458
|
}
|
|
49460
49459
|
}
|
|
49461
49460
|
$t && At(ht + 131072);
|
|
49462
|
-
for (var Si = (1 << Qi) - 1, Yi = (1 <<
|
|
49461
|
+
for (var Si = (1 << Qi) - 1, Yi = (1 << wi) - 1, Cn = yt; ; Cn = yt) {
|
|
49463
49462
|
var En = (mt = Kt[OM(Be, yt) & Si]) >> 4;
|
|
49464
49463
|
if ((yt += 15 & mt) > Ni) {
|
|
49465
49464
|
Pt && rl(0);
|
|
@@ -49494,7 +49493,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49494
49493
|
qe[ht] = qe[ht - fi];
|
|
49495
49494
|
}
|
|
49496
49495
|
}
|
|
49497
|
-
Ye.l = Kt, Ye.p = Cn, Ye.b = ht, Ye.f = Ut, Kt && (Ut = 1, Ye.m = Qi, Ye.d = Gt, Ye.n =
|
|
49496
|
+
Ye.l = Kt, Ye.p = Cn, Ye.b = ht, Ye.f = Ut, Kt && (Ut = 1, Ye.m = Qi, Ye.d = Gt, Ye.n = wi);
|
|
49498
49497
|
} while (!Ut);
|
|
49499
49498
|
return ht != qe.length && kt ? (Ft = qe, ((Wt = ht) == null || Wt > Ft.length) && (Wt = Ft.length), new fa(Ft.subarray(0, Wt))) : qe.subarray(0, ht);
|
|
49500
49499
|
}(ge.subarray(_e, -8), { i: 2 }, new fa(((X = ge)[(pe = X.length) - 4] | X[pe - 3] << 8 | X[pe - 2] << 16 | X[pe - 1] << 24) >>> 0))));
|
|
@@ -49925,12 +49924,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
49925
49924
|
return fetch(s).then((t) => t.arrayBuffer()).then((t) => OS(t, 0, s));
|
|
49926
49925
|
}, a.aW = VS, a.aX = class {
|
|
49927
49926
|
constructor(s, t, r, c) {
|
|
49928
|
-
this.id = s, this.position = t != null ? new $(t[0], t[1]) : new $(0, 0), this.orientation = r ?? [0, 0, 0], this.nodes = c, this.uploaded = !1, this.aabb = new
|
|
49927
|
+
this.id = s, this.position = t != null ? new $(t[0], t[1]) : new $(0, 0), this.orientation = r ?? [0, 0, 0], this.nodes = c, this.uploaded = !1, this.aabb = new rn([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), this.matrix = [];
|
|
49929
49928
|
}
|
|
49930
49929
|
_applyTransformations(s, t) {
|
|
49931
49930
|
if (me(s.matrix, t, s.matrix), s.meshes)
|
|
49932
49931
|
for (const r of s.meshes) {
|
|
49933
|
-
const c =
|
|
49932
|
+
const c = rn.applyTransformFast(r.aabb, s.matrix);
|
|
49934
49933
|
this.aabb.encapsulate(c);
|
|
49935
49934
|
}
|
|
49936
49935
|
if (s.children)
|
|
@@ -50011,7 +50010,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50011
50010
|
}, a.bH = T, a.bI = he, a.bJ = se, a.bK = Jm, a.bL = Bs, a.bM = dM, a.bN = function(s, t, r, c, h) {
|
|
50012
50011
|
const g = 5 * t + 2;
|
|
50013
50012
|
s.float32[g + 0] = r, s.float32[g + 1] = c, s.float32[g + 2] = h;
|
|
50014
|
-
}, a.bO = T_, a.bP =
|
|
50013
|
+
}, a.bO = T_, a.bP = sn, a.bQ = gt, a.bR = On, a.bS = Hi, a.bT = Ve, a.bU = function(s, t, r, c) {
|
|
50015
50014
|
var h = new j(4);
|
|
50016
50015
|
return h[0] = s, h[1] = t, h[2] = r, h[3] = c, h;
|
|
50017
50016
|
}, a.bV = r_, a.bW = js, a.bX = Io, a.bY = JD, a.bZ = hC, a.b_ = nS, a.ba = oM, a.bb = jb, a.bc = vi, a.bd = Ll, a.be = Ff, a.bf = mD, a.bg = zr, a.bh = Gf, a.bi = MM, a.bj = function(s, t) {
|
|
@@ -50019,7 +50018,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50019
50018
|
if (r === 0)
|
|
50020
50019
|
return Rl(s);
|
|
50021
50020
|
const c = Gy(s), h = Tb(c), g = Ie(c.getWest()) * t.worldSize, m = Ie(c.getEast()) * t.worldSize, x = Ee(c.getNorth()) * t.worldSize, M = Ee(c.getSouth()) * t.worldSize, D = [g, x, 0], A = [m, x, 0], C = [g, M, 0], L = [m, M, 0], P = Ze([], t.globeMatrix);
|
|
50022
|
-
return xe(D, D, P), xe(A, A, P), xe(C, C, P), xe(L, L, P), h[0] = Cc(h[0], C, r), h[1] = Cc(h[1], L, r), h[2] = Cc(h[2], A, r), h[3] = Cc(h[3], D, r),
|
|
50021
|
+
return xe(D, D, P), xe(A, A, P), xe(C, C, P), xe(L, L, P), h[0] = Cc(h[0], C, r), h[1] = Cc(h[1], L, r), h[2] = Cc(h[2], A, r), h[3] = Cc(h[3], D, r), rn.fromPoints(h);
|
|
50023
50022
|
}, a.bk = Wy, a.bl = Ze, a.bm = Lm, a.bn = Cc, a.bo = Ic, a.bp = xj, a.bq = We, a.br = te, a.bs = R_, a.bt = d_, a.bu = Xc, a.bv = function(s, t) {
|
|
50024
50023
|
const r = [];
|
|
50025
50024
|
for (const c in s)
|
|
@@ -50038,7 +50037,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50038
50037
|
if (M.name === "globe")
|
|
50039
50038
|
return vD(s, t, new el(r, c, h), !1);
|
|
50040
50039
|
const D = n0({ z: r, x: c, y: h }, M);
|
|
50041
|
-
return new
|
|
50040
|
+
return new rn([(g + D.x / D.scale) * t, t * (D.y / D.scale), m], [(g + D.x2 / D.scale) * t, t * (D.y2 / D.scale), x]);
|
|
50042
50041
|
}, a.cF = function(s, t, r) {
|
|
50043
50042
|
return s[0] = Math.min(t[0], r[0]), s[1] = Math.min(t[1], r[1]), s[2] = Math.min(t[2], r[2]), s[3] = Math.min(t[3], r[3]), s;
|
|
50044
50043
|
}, a.cG = function(s, t, r) {
|
|
@@ -50094,13 +50093,13 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50094
50093
|
}, a.cp = Xe, a.cq = function(s) {
|
|
50095
50094
|
var t = s[0], r = s[1], c = s[2], h = s[3];
|
|
50096
50095
|
return Math.sqrt(t * t + r * r + c * c + h * h);
|
|
50097
|
-
}, a.cr =
|
|
50096
|
+
}, a.cr = bi, a.cs = et, a.ct = $f, a.cu = 3, a.cv = 2, a.cw = 7, a.cx = 6, a.cy = ce, a.cz = ut, a.d = function(s) {
|
|
50098
50097
|
return $i.API_TILEJSON_REGEX.test(s);
|
|
50099
50098
|
}, a.d$ = rA, a.d0 = ye, a.d1 = 45, a.d2 = Zh, a.d3 = function(s, t, r) {
|
|
50100
50099
|
const c = Math.sqrt(s * s + t * t + r * r), h = c > 0 ? Math.acos(r / c) * xr : 0;
|
|
50101
50100
|
let g = s !== 0 || t !== 0 ? Math.atan2(-t, -s) * xr + 90 : 0;
|
|
50102
50101
|
return g < 0 && (g += 360), [c, g, h];
|
|
50103
|
-
}, a.d4 = Jt, a.d5 = dn, a.d6 = nt, a.d7 = bt, a.d8 =
|
|
50102
|
+
}, a.d4 = Jt, a.d5 = dn, a.d6 = nt, a.d7 = bt, a.d8 = rn, a.d9 = qt, a.dA = function(s, t, r) {
|
|
50104
50103
|
const c = Au(r.zoom), h = s.style.map._antialias, g = s.terrain && s.terrain.exaggeration() > 0;
|
|
50105
50104
|
return c === 0 && !h && !g;
|
|
50106
50105
|
}, a.dB = function(s) {
|
|
@@ -50270,7 +50269,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50270
50269
|
return r === void 0 && t.push({ message: `layers.${r}: missing required property "id"` }), s.render === void 0 && t.push({ message: `layers.${r}: missing required method "render"` }), s.renderingMode && s.renderingMode !== "2d" && s.renderingMode !== "3d" && t.push({ message: `layers.${r}: property "renderingMode" must be either "2d" or "3d"` }), t;
|
|
50271
50270
|
}, a.dq = function(s, t, r, c) {
|
|
50272
50271
|
return s.type === "custom" ? new ZR(s, t) : new XR[s.type](s, t, r, c);
|
|
50273
|
-
}, a.dr =
|
|
50272
|
+
}, a.dr = qi, a.ds = function(s) {
|
|
50274
50273
|
const t = s.indexOf(Bh);
|
|
50275
50274
|
return t >= 0 ? s.slice(t + 1) : "";
|
|
50276
50275
|
}, a.dt = class extends cp {
|
|
@@ -50565,7 +50564,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50565
50564
|
const Lt = C.get("text-font").evaluate(qe, {}, g).join(","), it = je.evaluate(qe, {}, g) * P.textScaleFactor, kt = P.layoutTextSize.evaluate(qe, {}, g) * P.textScaleFactor, $t = P.layoutIconSize.evaluate(qe, {}, g) * P.iconScaleFactor, Pt = { horizontal: {}, vertical: void 0 }, Ft = qe.text;
|
|
50566
50565
|
let Wt, At = [0, 0];
|
|
50567
50566
|
if (Ft) {
|
|
50568
|
-
const ji = Ft.toString(),
|
|
50567
|
+
const ji = Ft.toString(), tn = C.get("text-letter-spacing").evaluate(qe, {}, g) * Io, gn = C.get("text-line-height").evaluate(qe, {}, g) * Io, An = xy(ji) ? tn : 0, _n = C.get("text-anchor").evaluate(qe, {}, g), Ci = C.get("text-variable-anchor");
|
|
50569
50568
|
if (!Ci) {
|
|
50570
50569
|
const mt = C.get("text-radial-offset").evaluate(qe, {}, g);
|
|
50571
50570
|
if (mt)
|
|
@@ -50601,13 +50600,13 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50601
50600
|
De(Bn ? "left" : yn);
|
|
50602
50601
|
}
|
|
50603
50602
|
}
|
|
50604
|
-
let Ut, yt, ht, Kt, Gt, Qi,
|
|
50603
|
+
let Ut, yt, ht, Kt, Gt, Qi, wi = !1;
|
|
50605
50604
|
const Ni = C.get("icon-text-fit").evaluate(qe, {}, g);
|
|
50606
50605
|
if (qe.icon && qe.icon.hasPrimary()) {
|
|
50607
50606
|
const ji = RA(qe.icon, s.iconSizeData, L["icon-size"], g, s.zoom, qe, M, P.iconScaleFactor, A);
|
|
50608
50607
|
Ut = ji.iconPrimary, ht = ji.iconSecondary;
|
|
50609
|
-
const
|
|
50610
|
-
if (yt = c.get(
|
|
50608
|
+
const tn = Ut.toString();
|
|
50609
|
+
if (yt = c.get(tn), yt && (Gt = C.get("icon-offset").evaluate(qe, {}, g), Qi = C.get("icon-anchor").evaluate(qe, {}, g), Wt = MR(h.get(tn), ht ? h.get(ht.toString()) : void 0, Gt, Qi), wi = yt.sdf, s.sdfIcons === void 0 ? s.sdfIcons = yt.sdf : s.sdfIcons !== yt.sdf && _i("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (yt.pixelRatio !== s.pixelRatio || C.get("icon-rotate").constantOr(1) !== 0) && (s.iconsNeedLinear = !0)), ht) {
|
|
50611
50610
|
const gn = ht.toString();
|
|
50612
50611
|
Kt = c.get(gn);
|
|
50613
50612
|
}
|
|
@@ -50616,7 +50615,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50616
50615
|
const ai = yM(Pt.horizontal) || Pt.vertical;
|
|
50617
50616
|
s.iconsInText || (s.iconsInText = !!ai && ai.iconsInText);
|
|
50618
50617
|
const Ui = kt * P.textScaleFactor / Io, { defaultShapedIcon: fn, verticallyShapedIcon: gi } = zR(s, Wt, C, qe, g, Pt, Ui, Gt, Ni);
|
|
50619
|
-
Ni !== "none" && Wt && (xA(Wt) || wA(Wt)) && (y_(0, yt, Ut, Wt, fn, Ni, D, c, h), y_(0, Kt, ht, Wt, fn, Ni, D, c, h), gi && (y_(0, yt, Ut, Wt, gi, Ni, D, c, h), y_(0, Kt, ht, Wt, gi, Ni, D, c, h))), Wt = fn, Ye.push({ feature: qe, shapedTextOrientations: Pt, shapedText: ai, shapedIcon: Wt, iconPrimary: Ut, iconSecondary: ht, iconOffset: Gt, iconAnchor: Qi, verticallyShapedIcon: gi, layoutTextSize: kt, layoutIconSize: $t, textOffset: At, isSDFIcon:
|
|
50618
|
+
Ni !== "none" && Wt && (xA(Wt) || wA(Wt)) && (y_(0, yt, Ut, Wt, fn, Ni, D, c, h), y_(0, Kt, ht, Wt, fn, Ni, D, c, h), gi && (y_(0, yt, Ut, Wt, gi, Ni, D, c, h), y_(0, Kt, ht, Wt, gi, Ni, D, c, h))), Wt = fn, Ye.push({ feature: qe, shapedTextOrientations: Pt, shapedText: ai, shapedIcon: Wt, iconPrimary: Ut, iconSecondary: ht, iconOffset: Gt, iconAnchor: Qi, verticallyShapedIcon: gi, layoutTextSize: kt, layoutIconSize: $t, textOffset: At, isSDFIcon: wi, iconTextFit: Ni });
|
|
50620
50619
|
}
|
|
50621
50620
|
return { featureData: Ye, sizes: P, hasAnySecondaryIcon: Be, textAlongLine: ke, symbolPlacement: _e };
|
|
50622
50621
|
}, a.fo = EA, a.fp = function(s, t, r, c, h, g, m, x, M, D) {
|
|
@@ -50775,21 +50774,21 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50775
50774
|
const st = new a.fd(Object.keys(q.layers).sort()), Ve = new a.fe(this.tileID, this.promoteId);
|
|
50776
50775
|
Ve.bucketLayerIDs = [];
|
|
50777
50776
|
const at = {}, Rt = new a.ff(256, 256), zt = { featureIndex: Ve, iconDependencies: /* @__PURE__ */ new Map(), patternDependencies: /* @__PURE__ */ new Map(), glyphDependencies: {}, lineAtlas: Rt, availableImages: de, brightness: this.brightness, scaleFactor: this.scaleFactor, elevationFeatures: void 0 }, Ct = [], ti = ae.familiesBySource[this.source];
|
|
50778
|
-
for (const
|
|
50779
|
-
const hi = q.layers[
|
|
50777
|
+
for (const qi in ti) {
|
|
50778
|
+
const hi = q.layers[qi];
|
|
50780
50779
|
if (!hi)
|
|
50781
50780
|
continue;
|
|
50782
50781
|
let Pi = !1, Gi = !1, _i = !1;
|
|
50783
|
-
for (const mn of ti[
|
|
50782
|
+
for (const mn of ti[qi])
|
|
50784
50783
|
mn[0].type === "symbol" ? Pi = !0 : Gi = !0, mn[0].is3D() && mn[0].type !== "model" && (_i = !0);
|
|
50785
50784
|
if (this.extraShadowCaster && !_i || this.isSymbolTile === !0 && !Pi || this.isSymbolTile === !1 && !Gi)
|
|
50786
50785
|
continue;
|
|
50787
|
-
hi.version === 1 && a.w(`Vector tile source "${this.source}" layer "${
|
|
50788
|
-
const Ri = st.encode(
|
|
50786
|
+
hi.version === 1 && a.w(`Vector tile source "${this.source}" layer "${qi}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
|
|
50787
|
+
const Ri = st.encode(qi), Zi = [];
|
|
50789
50788
|
let dn = !1;
|
|
50790
50789
|
for (let mn = 0, zn = 0; mn < hi.length; mn++) {
|
|
50791
|
-
const ar = hi.feature(mn), Rn = Ve.getId(ar,
|
|
50792
|
-
if (this.localizableLayerIds && this.localizableLayerIds.has(
|
|
50790
|
+
const ar = hi.feature(mn), Rn = Ve.getId(ar, qi);
|
|
50791
|
+
if (this.localizableLayerIds && this.localizableLayerIds.has(qi)) {
|
|
50793
50792
|
const lr = ar.properties ? ar.properties.worldview : null;
|
|
50794
50793
|
if (this.worldview && typeof lr == "string")
|
|
50795
50794
|
if (lr === "all")
|
|
@@ -50803,7 +50802,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50803
50802
|
!dn && ar.properties && ar.properties.hasOwnProperty(a.fg) && (dn = !0), Zi.push({ feature: ar, id: Rn, index: zn, sourceLayerIndex: Ri }), zn++;
|
|
50804
50803
|
}
|
|
50805
50804
|
dn && !zt.elevationFeatures && q.layers.hasOwnProperty(a.fh) && (zt.elevationFeatures = a.fi.parseFrom(q.layers[a.fh], this.canonical));
|
|
50806
|
-
for (const mn of ti[
|
|
50805
|
+
for (const mn of ti[qi]) {
|
|
50807
50806
|
const zn = mn[0];
|
|
50808
50807
|
if (this.extraShadowCaster && (!zn.is3D() || zn.type === "model") || this.isSymbolTile !== void 0 && zn.type === "symbol" !== this.isSymbolTile || zn.minzoom && this.zoom < Math.floor(zn.minzoom) || zn.maxzoom && this.zoom >= zn.maxzoom || zn.visibility === "none")
|
|
50809
50808
|
continue;
|
|
@@ -50815,11 +50814,11 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50815
50814
|
}
|
|
50816
50815
|
}
|
|
50817
50816
|
const ui = () => {
|
|
50818
|
-
let
|
|
50817
|
+
let qi, hi, Pi, Gi, _i, Ri;
|
|
50819
50818
|
Rt.trim();
|
|
50820
50819
|
const Zi = { type: "maybePrepare", isSymbolTile: this.isSymbolTile, zoom: this.zoom }, dn = () => {
|
|
50821
|
-
if (
|
|
50822
|
-
return this.status = "done", Le(
|
|
50820
|
+
if (qi)
|
|
50821
|
+
return this.status = "done", Le(qi);
|
|
50823
50822
|
if (this.extraShadowCaster)
|
|
50824
50823
|
this.status = "done", Le(null, { buckets: Object.values(at).filter((zn) => !zn.isEmpty()), featureIndex: Ve, collisionBoxArray: null, glyphAtlasImage: null, lineAtlas: null, imageAtlas: null, brightness: zt.brightness, glyphMap: null, iconMap: null, glyphPositions: null });
|
|
50825
50824
|
else if (hi && Pi && Gi) {
|
|
@@ -50859,15 +50858,15 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50859
50858
|
if (!this.extraShadowCaster) {
|
|
50860
50859
|
const zn = a.fj(zt.glyphDependencies, (lr) => Object.keys(lr).map(Number));
|
|
50861
50860
|
Object.keys(zn).length ? Oe.send("getGlyphs", { uid: this.uid, stacks: zn }, (lr, mo) => {
|
|
50862
|
-
|
|
50861
|
+
qi || (qi = lr, hi = mo, dn());
|
|
50863
50862
|
}, void 0, !1, Zi) : hi = {};
|
|
50864
50863
|
const ar = Array.from(zt.iconDependencies.keys()).map((lr) => a.I.parse(lr));
|
|
50865
50864
|
ar.length ? Oe.send("getImages", { images: ar, source: this.source, scope: this.scope, tileID: this.tileID, type: "icons" }, (lr, mo) => {
|
|
50866
|
-
|
|
50865
|
+
qi || (qi = lr, Pi = /* @__PURE__ */ new Map(), _i = this.updateImageMapAndGetImageTaskQueue(Pi, mo, zt.iconDependencies), dn());
|
|
50867
50866
|
}, void 0, !1, Zi) : (Pi = /* @__PURE__ */ new Map(), _i = /* @__PURE__ */ new Map());
|
|
50868
50867
|
const Rn = Array.from(zt.patternDependencies.keys()).map((lr) => a.I.parse(lr));
|
|
50869
50868
|
Rn.length ? Oe.send("getImages", { images: Rn, source: this.source, scope: this.scope, tileID: this.tileID, type: "patterns" }, (lr, mo) => {
|
|
50870
|
-
|
|
50869
|
+
qi || (qi = lr, Gi = /* @__PURE__ */ new Map(), Ri = this.updateImageMapAndGetImageTaskQueue(Gi, mo, zt.patternDependencies), dn());
|
|
50871
50870
|
}, void 0, !1, Zi) : (Gi = /* @__PURE__ */ new Map(), Ri = /* @__PURE__ */ new Map());
|
|
50872
50871
|
}
|
|
50873
50872
|
if (zt.elevationFeatures && zt.elevationFeatures.length > 0) {
|
|
@@ -50937,12 +50936,12 @@ ${JSON.stringify(h, null, 2)}
|
|
|
50937
50936
|
Le.parse(Le.vectorTile, this.layerIndex, this.availableImages, this.availableModels, this.actor, (ti, ui) => {
|
|
50938
50937
|
if (ti || !ui)
|
|
50939
50938
|
return ae(ti);
|
|
50940
|
-
const
|
|
50939
|
+
const qi = {};
|
|
50941
50940
|
if (Oe) {
|
|
50942
50941
|
const hi = E(Re);
|
|
50943
|
-
hi.length > 0 && (
|
|
50942
|
+
hi.length > 0 && (qi.resourceTiming = JSON.parse(JSON.stringify(hi)));
|
|
50944
50943
|
}
|
|
50945
|
-
ae(null, Object.assign({ rawTileData: Rt.slice(0) }, ui, zt,
|
|
50944
|
+
ae(null, Object.assign({ rawTileData: Rt.slice(0) }, ui, zt, qi));
|
|
50946
50945
|
});
|
|
50947
50946
|
};
|
|
50948
50947
|
this.isSpriteLoaded ? Ct() : this.once("isSpriteLoaded", () => {
|
|
@@ -51179,8 +51178,8 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51179
51178
|
if (Oe === 1)
|
|
51180
51179
|
(function(at, Rt, zt, Ct, ti) {
|
|
51181
51180
|
for (let ui = 0; ui < at.length; ui += 2) {
|
|
51182
|
-
const
|
|
51183
|
-
ti.push([
|
|
51181
|
+
const qi = Math.round(a.al * (at[ui + 0] * Rt - zt)), hi = Math.round(a.al * (at[ui + 1] * Rt - Ct));
|
|
51182
|
+
ti.push([qi, hi]);
|
|
51184
51183
|
}
|
|
51185
51184
|
})(Le, q, ae, de, Ve);
|
|
51186
51185
|
else
|
|
@@ -51357,9 +51356,9 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51357
51356
|
if (at)
|
|
51358
51357
|
Rt = Ue(ae, Ve, this.clusterProps), zt = ae[Ve], Ct = ae[Ve + 1];
|
|
51359
51358
|
else {
|
|
51360
|
-
const
|
|
51361
|
-
Rt =
|
|
51362
|
-
const [hi, Pi] =
|
|
51359
|
+
const qi = this.points[ae[Ve + he]];
|
|
51360
|
+
Rt = qi.properties;
|
|
51361
|
+
const [hi, Pi] = qi.geometry.coordinates;
|
|
51363
51362
|
zt = Xe(hi), Ct = Fe(Pi);
|
|
51364
51363
|
}
|
|
51365
51364
|
const ti = { type: 1, geometry: [[Math.round(this.options.extent * (zt * Oe - de)), Math.round(this.options.extent * (Ct * Oe - Re))]], tags: Rt };
|
|
@@ -51376,14 +51375,14 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51376
51375
|
if (Ve[zt + 2] <= ae)
|
|
51377
51376
|
continue;
|
|
51378
51377
|
Ve[zt + 2] = ae;
|
|
51379
|
-
const Ct = Ve[zt], ti = Ve[zt + 1], ui = q.within(Ve[zt], Ve[zt + 1], st),
|
|
51380
|
-
let hi =
|
|
51378
|
+
const Ct = Ve[zt], ti = Ve[zt + 1], ui = q.within(Ve[zt], Ve[zt + 1], st), qi = Ve[zt + ce];
|
|
51379
|
+
let hi = qi;
|
|
51381
51380
|
for (const Pi of ui) {
|
|
51382
51381
|
const Gi = Pi * Rt;
|
|
51383
51382
|
Ve[Gi + 2] > ae && (hi += Ve[Gi + ce]);
|
|
51384
51383
|
}
|
|
51385
|
-
if (hi >
|
|
51386
|
-
let Pi, Gi = Ct *
|
|
51384
|
+
if (hi > qi && hi >= Le) {
|
|
51385
|
+
let Pi, Gi = Ct * qi, _i = ti * qi, Ri = -1;
|
|
51387
51386
|
const Zi = (zt / Rt << 5) + (ae + 1) + this.points.length;
|
|
51388
51387
|
for (const dn of ui) {
|
|
51389
51388
|
const mn = dn * Rt;
|
|
@@ -51571,20 +51570,20 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51571
51570
|
if (zt === "Point" || zt === "MultiPoint")
|
|
51572
51571
|
ci(Rt, ui, ae, de, Re);
|
|
51573
51572
|
else if (zt === "LineString")
|
|
51574
|
-
|
|
51573
|
+
bi(Rt, ui, ae, de, Re, !1, st.lineMetrics);
|
|
51575
51574
|
else if (zt === "MultiLineString")
|
|
51576
|
-
|
|
51575
|
+
Wi(Rt, ui, ae, de, Re, !1);
|
|
51577
51576
|
else if (zt === "Polygon")
|
|
51578
|
-
|
|
51577
|
+
Wi(Rt, ui, ae, de, Re, !0);
|
|
51579
51578
|
else if (zt === "MultiPolygon")
|
|
51580
|
-
for (const
|
|
51579
|
+
for (const qi of Rt) {
|
|
51581
51580
|
const hi = [];
|
|
51582
|
-
|
|
51581
|
+
Wi(qi, hi, ae, de, Re, !0), hi.length && ui.push(hi);
|
|
51583
51582
|
}
|
|
51584
51583
|
if (ui.length) {
|
|
51585
51584
|
if (st.lineMetrics && zt === "LineString") {
|
|
51586
|
-
for (const
|
|
51587
|
-
Ve.push(Et(at.id, zt,
|
|
51585
|
+
for (const qi of ui)
|
|
51586
|
+
Ve.push(Et(at.id, zt, qi, at.tags));
|
|
51588
51587
|
continue;
|
|
51589
51588
|
}
|
|
51590
51589
|
zt !== "LineString" && zt !== "MultiLineString" || (ui.length === 1 ? (zt = "LineString", ui = ui[0]) : zt = "MultiLineString"), zt !== "Point" && zt !== "MultiPoint" || (zt = ui.length === 3 ? "Point" : "MultiPoint"), Ve.push(Et(at.id, zt, ui, at.tags));
|
|
@@ -51595,40 +51594,40 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51595
51594
|
function ci(Ge, q, ae, de, Re) {
|
|
51596
51595
|
for (let Oe = 0; Oe < Ge.length; Oe += 3) {
|
|
51597
51596
|
const Le = Ge[Oe + Re];
|
|
51598
|
-
Le >= ae && Le <= de &&
|
|
51597
|
+
Le >= ae && Le <= de && sn(q, Ge[Oe], Ge[Oe + 1], Ge[Oe + 2]);
|
|
51599
51598
|
}
|
|
51600
51599
|
}
|
|
51601
|
-
function
|
|
51600
|
+
function bi(Ge, q, ae, de, Re, Oe, Le) {
|
|
51602
51601
|
let st = Ei(Ge);
|
|
51603
|
-
const Ve = Re === 0 ?
|
|
51602
|
+
const Ve = Re === 0 ? ln : On;
|
|
51604
51603
|
let at, Rt, zt = Ge.start;
|
|
51605
51604
|
for (let hi = 0; hi < Ge.length - 3; hi += 3) {
|
|
51606
51605
|
const Pi = Ge[hi], Gi = Ge[hi + 1], _i = Ge[hi + 2], Ri = Ge[hi + 3], Zi = Ge[hi + 4], dn = Re === 0 ? Pi : Gi, mn = Re === 0 ? Ri : Zi;
|
|
51607
51606
|
let zn = !1;
|
|
51608
|
-
Le && (at = Math.sqrt(Math.pow(Pi - Ri, 2) + Math.pow(Gi - Zi, 2))), dn < ae ? mn > ae && (Rt = Ve(st, Pi, Gi, Ri, Zi, ae), Le && (st.start = zt + at * Rt)) : dn > de ? mn < de && (Rt = Ve(st, Pi, Gi, Ri, Zi, de), Le && (st.start = zt + at * Rt)) :
|
|
51607
|
+
Le && (at = Math.sqrt(Math.pow(Pi - Ri, 2) + Math.pow(Gi - Zi, 2))), dn < ae ? mn > ae && (Rt = Ve(st, Pi, Gi, Ri, Zi, ae), Le && (st.start = zt + at * Rt)) : dn > de ? mn < de && (Rt = Ve(st, Pi, Gi, Ri, Zi, de), Le && (st.start = zt + at * Rt)) : sn(st, Pi, Gi, _i), mn < ae && dn >= ae && (Rt = Ve(st, Pi, Gi, Ri, Zi, ae), zn = !0), mn > de && dn <= de && (Rt = Ve(st, Pi, Gi, Ri, Zi, de), zn = !0), !Oe && zn && (Le && (st.end = zt + at * Rt), q.push(st), st = Ei(Ge)), Le && (zt += at);
|
|
51609
51608
|
}
|
|
51610
51609
|
let Ct = Ge.length - 3;
|
|
51611
|
-
const ti = Ge[Ct], ui = Ge[Ct + 1],
|
|
51612
|
-
|
|
51610
|
+
const ti = Ge[Ct], ui = Ge[Ct + 1], qi = Re === 0 ? ti : ui;
|
|
51611
|
+
qi >= ae && qi <= de && sn(st, ti, ui, Ge[Ct + 2]), Ct = st.length - 3, Oe && Ct >= 3 && (st[Ct] !== st[0] || st[Ct + 1] !== st[1]) && sn(st, st[0], st[1], st[2]), st.length && q.push(st);
|
|
51613
51612
|
}
|
|
51614
51613
|
function Ei(Ge) {
|
|
51615
51614
|
const q = [];
|
|
51616
51615
|
return q.size = Ge.size, q.start = Ge.start, q.end = Ge.end, q;
|
|
51617
51616
|
}
|
|
51618
|
-
function
|
|
51617
|
+
function Wi(Ge, q, ae, de, Re, Oe) {
|
|
51619
51618
|
for (const Le of Ge)
|
|
51620
|
-
|
|
51619
|
+
bi(Le, q, ae, de, Re, Oe, !1);
|
|
51621
51620
|
}
|
|
51622
|
-
function
|
|
51621
|
+
function sn(Ge, q, ae, de) {
|
|
51623
51622
|
Ge.push(q, ae, de);
|
|
51624
51623
|
}
|
|
51625
|
-
function
|
|
51624
|
+
function ln(Ge, q, ae, de, Re, Oe) {
|
|
51626
51625
|
const Le = (Oe - q) / (de - q);
|
|
51627
|
-
return
|
|
51626
|
+
return sn(Ge, Oe, ae + (Re - ae) * Le, 1), Le;
|
|
51628
51627
|
}
|
|
51629
51628
|
function On(Ge, q, ae, de, Re, Oe) {
|
|
51630
51629
|
const Le = (Oe - ae) / (Re - ae);
|
|
51631
|
-
return
|
|
51630
|
+
return sn(Ge, q + (de - q) * Le, Oe, 1), Le;
|
|
51632
51631
|
}
|
|
51633
51632
|
function _t(Ge, q) {
|
|
51634
51633
|
const ae = [];
|
|
@@ -51767,7 +51766,7 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51767
51766
|
const Ve = [q, ae, de, Re], at = this.options, Rt = at.debug;
|
|
51768
51767
|
for (; Ve.length; ) {
|
|
51769
51768
|
Re = Ve.pop(), de = Ve.pop(), ae = Ve.pop(), q = Ve.pop();
|
|
51770
|
-
const zt = 1 << ae, Ct =
|
|
51769
|
+
const zt = 1 << ae, Ct = en(ae, de, Re);
|
|
51771
51770
|
let ti = this.tiles[Ct];
|
|
51772
51771
|
if (!ti && (Rt > 1 && console.time("creation"), ti = this.tiles[Ct] = Xt(q, ae, de, Re, at), this.tileCoords.push({ z: ae, x: de, y: Re }), Rt)) {
|
|
51773
51772
|
Rt > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", ae, de, Re, ti.numFeatures, ti.numPoints, ti.numSimplified), console.timeEnd("creation"));
|
|
@@ -51789,9 +51788,9 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51789
51788
|
if (ti.source = null, q.length === 0)
|
|
51790
51789
|
continue;
|
|
51791
51790
|
Rt > 1 && console.time("clipping");
|
|
51792
|
-
const ui = 0.5 * at.buffer / at.extent,
|
|
51793
|
-
let Gi = null, _i = null, Ri = null, Zi = null, dn = Ht(q, zt, de - ui, de + hi, 0, ti.minX, ti.maxX, at), mn = Ht(q, zt, de +
|
|
51794
|
-
q = null, dn && (Gi = Ht(dn, zt, Re - ui, Re + hi, 1, ti.minY, ti.maxY, at), _i = Ht(dn, zt, Re +
|
|
51791
|
+
const ui = 0.5 * at.buffer / at.extent, qi = 0.5 - ui, hi = 0.5 + ui, Pi = 1 + ui;
|
|
51792
|
+
let Gi = null, _i = null, Ri = null, Zi = null, dn = Ht(q, zt, de - ui, de + hi, 0, ti.minX, ti.maxX, at), mn = Ht(q, zt, de + qi, de + Pi, 0, ti.minX, ti.maxX, at);
|
|
51793
|
+
q = null, dn && (Gi = Ht(dn, zt, Re - ui, Re + hi, 1, ti.minY, ti.maxY, at), _i = Ht(dn, zt, Re + qi, Re + Pi, 1, ti.minY, ti.maxY, at), dn = null), mn && (Ri = Ht(mn, zt, Re - ui, Re + hi, 1, ti.minY, ti.maxY, at), Zi = Ht(mn, zt, Re + qi, Re + Pi, 1, ti.minY, ti.maxY, at), mn = null), Rt > 1 && console.timeEnd("clipping"), Ve.push(Gi || [], ae + 1, 2 * de, 2 * Re), Ve.push(_i || [], ae + 1, 2 * de, 2 * Re + 1), Ve.push(Ri || [], ae + 1, 2 * de + 1, 2 * Re), Ve.push(Zi || [], ae + 1, 2 * de + 1, 2 * Re + 1);
|
|
51795
51794
|
}
|
|
51796
51795
|
}
|
|
51797
51796
|
getTile(q, ae, de) {
|
|
@@ -51799,17 +51798,17 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51799
51798
|
const Re = this.options, { extent: Oe, debug: Le } = Re;
|
|
51800
51799
|
if (q < 0 || q > 24)
|
|
51801
51800
|
return null;
|
|
51802
|
-
const st = 1 << q, Ve =
|
|
51801
|
+
const st = 1 << q, Ve = en(q, ae = ae + st & st - 1, de);
|
|
51803
51802
|
if (this.tiles[Ve])
|
|
51804
51803
|
return oi(this.tiles[Ve], Oe);
|
|
51805
51804
|
Le > 1 && console.log("drilling down to z%d-%d-%d", q, ae, de);
|
|
51806
51805
|
let at, Rt = q, zt = ae, Ct = de;
|
|
51807
51806
|
for (; !at && Rt > 0; )
|
|
51808
|
-
Rt--, zt >>= 1, Ct >>= 1, at = this.tiles[
|
|
51807
|
+
Rt--, zt >>= 1, Ct >>= 1, at = this.tiles[en(Rt, zt, Ct)];
|
|
51809
51808
|
return at && at.source ? (Le > 1 && (console.log("found parent tile z%d-%d-%d", Rt, zt, Ct), console.time("drilling down")), this.splitTile(at.source, Rt, zt, Ct, q, ae, de), Le > 1 && console.timeEnd("drilling down"), this.tiles[Ve] ? oi(this.tiles[Ve], Oe) : null) : null;
|
|
51810
51809
|
}
|
|
51811
51810
|
}
|
|
51812
|
-
function
|
|
51811
|
+
function en(Ge, q, ae) {
|
|
51813
51812
|
return 32 * ((1 << Ge) * ae + q) + Ge;
|
|
51814
51813
|
}
|
|
51815
51814
|
function wn(Ge, q) {
|
|
@@ -51853,20 +51852,20 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51853
51852
|
if (!at || !Ve)
|
|
51854
51853
|
return Ve;
|
|
51855
51854
|
const Rt = {}, zt = {}, Ct = { accumulated: null, zoom: 0 }, ti = { properties: null }, ui = Object.keys(at);
|
|
51856
|
-
for (const
|
|
51857
|
-
const [hi, Pi] = at[
|
|
51858
|
-
Rt[
|
|
51855
|
+
for (const qi of ui) {
|
|
51856
|
+
const [hi, Pi] = at[qi], Gi = a.U(Pi), _i = a.U(typeof hi == "string" ? [hi, ["accumulated"], ["get", qi]] : hi);
|
|
51857
|
+
Rt[qi] = Gi.value, zt[qi] = _i.value;
|
|
51859
51858
|
}
|
|
51860
|
-
return Ve.map = (
|
|
51861
|
-
ti.properties =
|
|
51859
|
+
return Ve.map = (qi) => {
|
|
51860
|
+
ti.properties = qi;
|
|
51862
51861
|
const hi = {};
|
|
51863
51862
|
for (const Pi of ui)
|
|
51864
51863
|
hi[Pi] = Rt[Pi].evaluate(Ct, ti);
|
|
51865
51864
|
return hi;
|
|
51866
|
-
}, Ve.reduce = (
|
|
51865
|
+
}, Ve.reduce = (qi, hi) => {
|
|
51867
51866
|
ti.properties = hi;
|
|
51868
51867
|
for (const Pi of ui)
|
|
51869
|
-
Ct.accumulated =
|
|
51868
|
+
Ct.accumulated = qi[Pi], qi[Pi] = zt[Pi].evaluate(Ct, ti);
|
|
51870
51869
|
}, Ve;
|
|
51871
51870
|
}(q)).load(Le.features) : q.dynamic ? this._dynamicIndex : function(Ve, at) {
|
|
51872
51871
|
return new hn(Ve, at);
|
|
@@ -51937,10 +51936,10 @@ ${JSON.stringify(h, null, 2)}
|
|
|
51937
51936
|
const Rt = at.json.extensionsUsed && at.json.extensionsUsed.includes("MAPBOX_mesh_features") || at.json.asset.extras && at.json.asset.extras.MAPBOX_mesh_features, zt = at.json.extensionsUsed && at.json.extensionsUsed.includes("EXT_meshopt_compression"), Ct = new a.ac(this.zoom, { brightness: this.brightness, worldview: this.worldview });
|
|
51938
51937
|
for (const ti in st)
|
|
51939
51938
|
for (const ui of st[ti]) {
|
|
51940
|
-
const
|
|
51941
|
-
Ve.bucketLayerIDs.push(ui.map((Gi) => a.B(Gi.id, Gi.scope))),
|
|
51939
|
+
const qi = ui[0];
|
|
51940
|
+
Ve.bucketLayerIDs.push(ui.map((Gi) => a.B(Gi.id, Gi.scope))), qi.recalculate(Ct, []);
|
|
51942
51941
|
const hi = a.fu(at, 1 / a.d6(de.tileID.canonical)), Pi = new a.fv(ui, hi, Oe, Rt, zt, this.brightness, Ve, this.worldview);
|
|
51943
|
-
Rt || (Pi.needsUpload = !0), Le.push(Pi), Pi.evaluate(
|
|
51942
|
+
Rt || (Pi.needsUpload = !0), Le.push(Pi), Pi.evaluate(qi);
|
|
51944
51943
|
}
|
|
51945
51944
|
this.status = "done", Re(null, { buckets: Le, featureIndex: Ve, collisionBoxArray: null, glyphAtlasImage: null, lineAtlas: null, imageAtlas: null, brightness: null });
|
|
51946
51945
|
}).catch((at) => Re(new Error(at.message)));
|
|
@@ -53131,12 +53130,12 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53131
53130
|
}), N;
|
|
53132
53131
|
} } })), n;
|
|
53133
53132
|
}
|
|
53134
|
-
function
|
|
53133
|
+
function bi({ key: p, value: n }) {
|
|
53135
53134
|
return a.a0(n) ? [] : [new a.V(p, n, `string expected, ${a.K(n)} found`)];
|
|
53136
53135
|
}
|
|
53137
53136
|
const Ei = { promoteId: function p({ key: n, value: l }) {
|
|
53138
53137
|
if (a.a0(l))
|
|
53139
|
-
return
|
|
53138
|
+
return bi({ key: n, value: l });
|
|
53140
53139
|
if (Array.isArray(l)) {
|
|
53141
53140
|
const y = [], v = a.S(l), w = a.U(v);
|
|
53142
53141
|
return w.result === "error" && w.value.forEach((I) => {
|
|
@@ -53150,7 +53149,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53150
53149
|
f.push(...p({ key: `${n}.${y}`, value: l[y] }));
|
|
53151
53150
|
return f;
|
|
53152
53151
|
} };
|
|
53153
|
-
function
|
|
53152
|
+
function Wi(p) {
|
|
53154
53153
|
const n = p.value, l = p.key, f = p.styleSpec, y = p.style;
|
|
53155
53154
|
if (!a.H(n))
|
|
53156
53155
|
return [new a.V(l, n, `object expected, ${a.K(n)} found`)];
|
|
@@ -53184,16 +53183,16 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53184
53183
|
case "canvas":
|
|
53185
53184
|
return [new a.V(l, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
|
|
53186
53185
|
default:
|
|
53187
|
-
return Di({ key: `${l}.type`, value: n.type, valueSpec: { values:
|
|
53186
|
+
return Di({ key: `${l}.type`, value: n.type, valueSpec: { values: sn(f) } });
|
|
53188
53187
|
}
|
|
53189
53188
|
}
|
|
53190
|
-
function
|
|
53189
|
+
function sn(p) {
|
|
53191
53190
|
return p.source.reduce((n, l) => {
|
|
53192
53191
|
const f = p[l];
|
|
53193
53192
|
return f.type.type === "enum" && (n = n.concat(Object.keys(f.type.values))), n;
|
|
53194
53193
|
}, []);
|
|
53195
53194
|
}
|
|
53196
|
-
function
|
|
53195
|
+
function ln(p) {
|
|
53197
53196
|
const n = p.value, l = p.styleSpec, f = l.light, y = p.style;
|
|
53198
53197
|
if (n === void 0)
|
|
53199
53198
|
return [];
|
|
@@ -53281,10 +53280,10 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53281
53280
|
return a.$(n) ? [] : [new a.V(l, n, `boolean expected, ${a.K(n)} found`)];
|
|
53282
53281
|
}, number: pt, color: function({ key: p, value: n }) {
|
|
53283
53282
|
return a.a0(n) ? a.a1.parseCSSColor(n) === null ? [new a.V(p, n, `color expected, "${n}" found`)] : [] : [new a.V(p, n, `color expected, ${a.K(n)} found`)];
|
|
53284
|
-
}, enum: Di, filter: si, function: Mt, layer: ci, object: Xt, source:
|
|
53285
|
-
return
|
|
53283
|
+
}, enum: Di, filter: si, function: Mt, layer: ci, object: Xt, source: Wi, model: a.a7, light: ln, "light-3d": On, terrain: _t, fog: gt, string: bi, formatted: function(p) {
|
|
53284
|
+
return bi(p).length === 0 ? [] : Et(p);
|
|
53286
53285
|
}, resolvedImage: function(p) {
|
|
53287
|
-
return
|
|
53286
|
+
return bi(p).length === 0 ? [] : Et(p);
|
|
53288
53287
|
}, projection: function(p) {
|
|
53289
53288
|
const n = p.value, l = p.styleSpec, f = l.projection, y = p.style;
|
|
53290
53289
|
if (a.H(n)) {
|
|
@@ -53347,7 +53346,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53347
53346
|
return I;
|
|
53348
53347
|
}
|
|
53349
53348
|
function mi({ key: p, value: n }) {
|
|
53350
|
-
const l =
|
|
53349
|
+
const l = bi({ key: p, value: n });
|
|
53351
53350
|
if (l.length)
|
|
53352
53351
|
return l;
|
|
53353
53352
|
const f = n;
|
|
@@ -53359,7 +53358,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53359
53358
|
function Hi(p, n = a.a6) {
|
|
53360
53359
|
return Oe(Ai(p, n));
|
|
53361
53360
|
}
|
|
53362
|
-
const hn = (p) => Oe(
|
|
53361
|
+
const hn = (p) => Oe(Wi(p)), en = (p) => Oe(ln(p)), wn = (p) => Oe(On(p)), Dt = (p) => Oe(_t(p)), Vn = (p) => Oe(gt(p)), gr = (p) => Oe(function(n) {
|
|
53363
53362
|
const l = n.value, f = n.style, y = n.styleSpec, v = y.snow;
|
|
53364
53363
|
if (l === void 0)
|
|
53365
53364
|
return [];
|
|
@@ -53403,7 +53402,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53403
53402
|
return this._transitionable.serialize();
|
|
53404
53403
|
}
|
|
53405
53404
|
setLight(n, l, f = {}) {
|
|
53406
|
-
this._validate(
|
|
53405
|
+
this._validate(en, n, f) || (this._transitionable.setTransitionOrValue(n), this.id = l);
|
|
53407
53406
|
}
|
|
53408
53407
|
updateTransitions(n) {
|
|
53409
53408
|
this._transitioning = this._transitionable.transitioned(n, this._transitioning);
|
|
@@ -53469,7 +53468,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53469
53468
|
const l = 0.5 / Math.tan(0.5 * n);
|
|
53470
53469
|
return [p.range[0] + l, p.range[1] + l];
|
|
53471
53470
|
}
|
|
53472
|
-
function
|
|
53471
|
+
function qi(p, n, l, f, y) {
|
|
53473
53472
|
const v = a.af([], [n, l, f], y.mercatorFogMatrix);
|
|
53474
53473
|
return ti(p, a.ag(v), y.pitch, y._fov);
|
|
53475
53474
|
}
|
|
@@ -53512,7 +53511,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53512
53511
|
getOpacityAtLatLng(n, l) {
|
|
53513
53512
|
return this._transform.projection.supportsFog ? function(f, y, v) {
|
|
53514
53513
|
const w = a.ae.fromLngLat(y), I = v.elevation ? v.elevation.getAtPointOrZero(w) : 0;
|
|
53515
|
-
return
|
|
53514
|
+
return qi(f, w.x, w.y, I, v);
|
|
53516
53515
|
}(this.state, n, l) : 0;
|
|
53517
53516
|
}
|
|
53518
53517
|
getOpacityForTile(n) {
|
|
@@ -53540,7 +53539,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
53540
53539
|
const w = n.points[f - 4];
|
|
53541
53540
|
v = a.am(w, y, w[2] / (w[2] - y[2]));
|
|
53542
53541
|
}
|
|
53543
|
-
if (
|
|
53542
|
+
if (qi(this.state, v[0], v[1], 0, this._transform) >= Ct)
|
|
53544
53543
|
return !0;
|
|
53545
53544
|
}
|
|
53546
53545
|
return !1;
|
|
@@ -56398,7 +56397,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
56398
56397
|
return;
|
|
56399
56398
|
if (oe)
|
|
56400
56399
|
return void (this.placements[br] = new Vi(!1, !1, !1));
|
|
56401
|
-
let Zn = !1, Ir = !1, Ur = !0, uo = !1, Tr = !1, In = null,
|
|
56400
|
+
let Zn = !1, Ir = !1, Ur = !0, uo = !1, Tr = !1, In = null, rn = { box: null, offscreen: null, occluded: null }, Jn = { box: null }, Pr = null, Ar = null, Wr = null, Mo = 0, js = 0, Ps = 0;
|
|
56402
56401
|
Wn.textFeatureIndex ? Mo = Wn.textFeatureIndex : pn.useRuntimeCollisionCircles && (Mo = pn.featureIndex), Wn.verticalTextFeatureIndex && (js = Wn.verticalTextFeatureIndex);
|
|
56403
56402
|
const _s = (Fr) => {
|
|
56404
56403
|
Fr.tileID = this.retainedQueryData[w.bucketInstanceId].tileID;
|
|
@@ -56417,10 +56416,10 @@ Use an identity property function instead: ${H}.`)];
|
|
|
56417
56416
|
}, Vr = (Cr, eo) => {
|
|
56418
56417
|
if (w.allowVerticalPlacement && xn > 0 && Wn.verticalTextBox) {
|
|
56419
56418
|
for (const ho of w.writingModes)
|
|
56420
|
-
if (ho === a.bL.vertical ? (
|
|
56419
|
+
if (ho === a.bL.vertical ? (rn = eo(), Jn = rn) : rn = Cr(), rn && rn.box && rn.box.length)
|
|
56421
56420
|
break;
|
|
56422
56421
|
} else
|
|
56423
|
-
|
|
56422
|
+
rn = Cr();
|
|
56424
56423
|
};
|
|
56425
56424
|
if (ni) {
|
|
56426
56425
|
let Cr = ni;
|
|
@@ -56444,9 +56443,9 @@ Use an identity property function instead: ${H}.`)];
|
|
|
56444
56443
|
};
|
|
56445
56444
|
Vr(() => eo(vs, Wn.iconBox, a.bL.horizontal), () => {
|
|
56446
56445
|
const $r = Wn.verticalTextBox;
|
|
56447
|
-
return $r && _s($r), w.allowVerticalPlacement && !(
|
|
56448
|
-
}),
|
|
56449
|
-
const ho = Fr(!(!
|
|
56446
|
+
return $r && _s($r), w.allowVerticalPlacement && !(rn && rn.box && rn.box.length) && xn > 0 && $r ? eo($r, Wn.verticalIconBox, a.bL.vertical) : { box: null, offscreen: null, occluded: null };
|
|
56447
|
+
}), rn && (Zn = rn.box, Ur = rn.offscreen, uo = rn.occluded);
|
|
56448
|
+
const ho = Fr(!(!rn || !rn.box));
|
|
56450
56449
|
if (!Zn && this.prevPlacement) {
|
|
56451
56450
|
const $r = this.prevPlacement.variableOffsets[br];
|
|
56452
56451
|
$r && (this.variableOffsets[br] = $r, this.markUsedJustification(w, $r.anchor, pn, ho));
|
|
@@ -56459,10 +56458,10 @@ Use an identity property function instead: ${H}.`)];
|
|
|
56459
56458
|
Vr(() => Cr(vs, a.bL.horizontal), () => {
|
|
56460
56459
|
const eo = Wn.verticalTextBox;
|
|
56461
56460
|
return w.allowVerticalPlacement && xn > 0 && eo ? (_s(eo), Cr(eo, a.bL.vertical)) : { box: null, offscreen: null, occluded: null };
|
|
56462
|
-
}), Fr(!!(
|
|
56461
|
+
}), Fr(!!(rn && rn.box && rn.box.length));
|
|
56463
56462
|
}
|
|
56464
56463
|
}
|
|
56465
|
-
if (Pr =
|
|
56464
|
+
if (Pr = rn, Zn = Pr && Pr.box && Pr.box.length > 0, Ur = Pr && Pr.offscreen, uo = Pr && Pr.occluded, pn.useRuntimeCollisionCircles) {
|
|
56466
56465
|
const Fr = w.text.placedSymbolArray.get(pn.centerJustifiedTextSymbolIndex >= 0 ? pn.centerJustifiedTextSymbolIndex : pn.verticalPlacedTextSymbolIndex), Vr = a.bM(w.textSizeData, ue, Fr), Cr = I.get("text-padding");
|
|
56467
56466
|
Ar = this.collisionIndex.placeCollisionCircles(w, Ce, Fr, w.lineVertexArray, w.glyphOffsetArray, Vr, N, z, B, f, Ke, Ie.predicate, pn.collisionCircleDiameter * Vr / a.bX, Cr, this.retainedQueryData[w.bucketInstanceId].tileID), Zn = Ce || Ar.circles.length > 0 && !Ar.collisionDetected, Ur = Ur && Ar.offscreen, uo = Ar.occluded;
|
|
56468
56467
|
}
|
|
@@ -56818,12 +56817,12 @@ Use an identity property function instead: ${H}.`)];
|
|
|
56818
56817
|
}
|
|
56819
56818
|
Mi.ReadOnly = !1, Mi.ReadWrite = !0, Mi.disabled = new Mi(519, Mi.ReadOnly, [0, 1]);
|
|
56820
56819
|
const Th = 7680;
|
|
56821
|
-
class
|
|
56820
|
+
class nn {
|
|
56822
56821
|
constructor(n, l, f, y, v, w) {
|
|
56823
56822
|
this.test = n, this.ref = l, this.mask = f, this.fail = y, this.depthFail = v, this.pass = w;
|
|
56824
56823
|
}
|
|
56825
56824
|
}
|
|
56826
|
-
|
|
56825
|
+
nn.disabled = new nn({ func: 519, mask: 0 }, 0, 0, Th, Th, Th);
|
|
56827
56826
|
const lc = 1029, iu = 2305;
|
|
56828
56827
|
class cn {
|
|
56829
56828
|
constructor(n, l, f) {
|
|
@@ -57978,7 +57977,7 @@ Use an identity property function instead: ${H}.`)];
|
|
|
57978
57977
|
return;
|
|
57979
57978
|
const I = [], S = wl(n, n.longestCutoffRange);
|
|
57980
57979
|
S.shouldRenderCutoff && I.push("RENDER_CUTOFF"), I.push("RENDER_SHADOWS", "DEPTH_TEXTURE"), this.useNormalOffset && I.push("NORMAL_OFFSET");
|
|
57981
|
-
const N = aa(l, v, w), z = new Mi(y.LEQUAL, Mi.ReadOnly, n.depthRangeFor3D), B = new
|
|
57980
|
+
const N = aa(l, v, w), z = new Mi(y.LEQUAL, Mi.ReadOnly, n.depthRangeFor3D), B = new nn({ func: y.EQUAL, mask: 255 }, 0, 255, y.KEEP, y.KEEP, y.KEEP);
|
|
57982
57981
|
for (const O of this._groundShadowTiles) {
|
|
57983
57982
|
const U = O.toUnwrapped(), H = n.isTileAffectedByFog(O), $ = n.getOrCreateProgram("groundShadow", { defines: I, overrideFog: H });
|
|
57984
57983
|
this.setupShadows(U, $), n.uploadCommonUniforms(f, $, U, null, S);
|
|
@@ -63165,7 +63164,7 @@ uniform ${z} ${B} u_${O};
|
|
|
63165
63164
|
}
|
|
63166
63165
|
f.bindFramebuffer.set(I.framebuffer), f.viewport.set([0, 0, w, w]);
|
|
63167
63166
|
const { tileBoundsBuffer: S, tileBoundsIndexBuffer: N, tileBoundsSegments: z } = p.getMercatorTileBoundsBuffers(), B = [];
|
|
63168
|
-
p.linearFloatFilteringSupported() && B.push("TERRAIN_DEM_FLOAT_FORMAT"), p.getOrCreateProgram("hillshadePrepare", { defines: B }).draw(p, y.TRIANGLES, Mi.disabled,
|
|
63167
|
+
p.linearFloatFilteringSupported() && B.push("TERRAIN_DEM_FLOAT_FORMAT"), p.getOrCreateProgram("hillshadePrepare", { defines: B }).draw(p, y.TRIANGLES, Mi.disabled, nn.disabled, bn.unblended, cn.disabled, ((O, U) => {
|
|
63169
63168
|
const H = U.stride, $ = a.bC();
|
|
63170
63169
|
return a.cd($, 0, a.al, -a.al, 0, 0, 1), a.br($, $, [0, -a.al, 0]), { u_matrix: $, u_image: 1, u_dimension: [H, H], u_zoom: O.overscaledZ };
|
|
63171
63170
|
})(n.tileID, v), l.id, S, N, z), n.needsHillshadePrepare = !1;
|
|
@@ -63660,7 +63659,7 @@ uniform ${z} ${B} u_${O};
|
|
|
63660
63659
|
}(), w = n.context;
|
|
63661
63660
|
this.gridBuffer = w.createVertexBuffer(f, a.bf.members), this.gridIndexBuffer = w.createIndexBuffer(y), this.gridSegments = a.bg.simpleSegment(0, 0, f.length, y.length), this.gridNoSkirtSegments = a.bg.simpleSegment(0, 0, f.length, v), this.proxyCoords = [], this.proxiedCoords = {}, this._visibleDemTiles = [], this._drapedRenderBatches = [], this._sourceTilesOverlap = {}, this.proxySourceCache = new Os(l.map), this.orthoMatrix = a.bC(), a.cd(this.orthoMatrix, this.painter.transform.projection.name === "globe" ? 0.015 : 0, a.al, 0, a.al, 0, 1);
|
|
63662
63661
|
const I = w.gl;
|
|
63663
|
-
this._overlapStencilMode = new
|
|
63662
|
+
this._overlapStencilMode = new nn({ func: I.GEQUAL, mask: 255 }, 0, 255, I.KEEP, I.KEEP, I.REPLACE), this._previousZoom = n.transform.zoom, this.pool = [], this._findCoveringTileCache = {}, this._tilesDirty = {}, this.style = l, this._useVertexMorphing = !0, this._exaggeration = 1, this._mockSourceCache = new gy(l.map), this._pendingGroundEffectLayers = [];
|
|
63664
63663
|
}
|
|
63665
63664
|
set style(n) {
|
|
63666
63665
|
n.on("data", this._onStyleDataEvent.bind(this)), this._style = n, this._style.map.on("moveend", () => {
|
|
@@ -63883,7 +63882,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
63883
63882
|
J = -1;
|
|
63884
63883
|
const vt = $.TRIANGLES;
|
|
63885
63884
|
for (const ri of O) {
|
|
63886
|
-
const lt = B.getTile(ri), Qe =
|
|
63885
|
+
const lt = B.getTile(ri), Qe = nn.disabled, It = z.prevTerrainTileForTile[ri.key], ft = z.terrainTileForTile[ri.key];
|
|
63887
63886
|
df(It, ft) && Il.newMorphing(ri.key, It, ft, U, 250), H.activeTexture.set($.TEXTURE0), lt.texture && lt.texture.bind($.LINEAR, $.CLAMP_TO_EDGE);
|
|
63888
63887
|
const Bt = Il.getMorphValuesForProxy(ri.key), ni = Bt ? 1 : 0;
|
|
63889
63888
|
Bt && Object.assign(Ke, { morphing: { srcDemTile: Bt.from, dstDemTile: Bt.to, phase: a.dz(Bt.phase) } });
|
|
@@ -63903,7 +63902,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
63903
63902
|
const Zt = B.getTile(nt);
|
|
63904
63903
|
H.activeTexture.set($.TEXTURE0), Zt.texture && Zt.texture.bind($.LINEAR, $.CLAMP_TO_EDGE);
|
|
63905
63904
|
let Qt = a.dG(lt, vt, ue);
|
|
63906
|
-
const Fi = a.bk(a.dF(nt.canonical)), ki = (Bi, Oi) => Bi.draw(N, $.TRIANGLES, Ae,
|
|
63905
|
+
const Fi = a.bk(a.dF(nt.canonical)), ki = (Bi, Oi) => Bi.draw(N, $.TRIANGLES, Ae, nn.disabled, Ee, cn.disabled, hf(ue.expandedFarZProjMatrix, Qt, Qt, Fi, 0, Ce, ue.frustumCorners.TL, ue.frustumCorners.TR, ue.frustumCorners.BR, ue.frustumCorners.BL, ue.globeCenterInViewSpace, ue.globeRadius, ze, 0, ue._farZ), "globe_pole_raster", Oi, ni, vi);
|
|
63907
63906
|
z.setupElevationDraw(Zt, oe, Ke), N.uploadCommonUniforms(H, oe, nt.toUnwrapped()), Qe && N.renderDefaultNorthPole && ki(oe, ft), It && N.renderDefaultSouthPole && (Qt = a.cR(a.bC(), Qt, [1, -1, 1]), ki(oe, Bt));
|
|
63908
63907
|
}
|
|
63909
63908
|
}
|
|
@@ -63929,7 +63928,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
63929
63928
|
O = -1;
|
|
63930
63929
|
const Ee = z.TRIANGLES, [Ae, Ne] = [v.gridIndexBuffer, v.gridSegments];
|
|
63931
63930
|
for (const Ce of I) {
|
|
63932
|
-
const Se = w.getTile(Ce), ze =
|
|
63931
|
+
const Se = w.getTile(Ce), ze = nn.disabled, ct = v.prevTerrainTileForTile[Ce.key], Ke = v.terrainTileForTile[Ce.key];
|
|
63933
63932
|
df(ct, Ke) && Il.newMorphing(Ce.key, ct, Ke, S, 250), N.activeTexture.set(z.TEXTURE0), Se.texture && Se.texture.bind(z.LINEAR, z.CLAMP_TO_EDGE);
|
|
63934
63933
|
const wt = Il.getMorphValuesForProxy(Ce.key), nt = wt ? 1 : 0;
|
|
63935
63934
|
let vt;
|
|
@@ -64170,7 +64169,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
64170
64169
|
return this._overlapStencilType === "Clip" || this._overlapStencilType === "Mask";
|
|
64171
64170
|
}
|
|
64172
64171
|
stencilModeForRTTOverlap(n) {
|
|
64173
|
-
return this.renderingToTexture && this._overlapStencilType ? (this._overlapStencilType === "Clip" && (this._overlapStencilMode.ref = this.painter._tileClippingMaskIDs[n.key]), this._overlapStencilMode) :
|
|
64172
|
+
return this.renderingToTexture && this._overlapStencilType ? (this._overlapStencilType === "Clip" && (this._overlapStencilMode.ref = this.painter._tileClippingMaskIDs[n.key]), this._overlapStencilMode) : nn.disabled;
|
|
64174
64173
|
}
|
|
64175
64174
|
_renderTileClippingMasks(n, l) {
|
|
64176
64175
|
const f = this.painter, y = this.painter.context, v = y.gl;
|
|
@@ -64178,7 +64177,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
64178
64177
|
const w = f.getOrCreateProgram("clippingMask");
|
|
64179
64178
|
for (const I of n) {
|
|
64180
64179
|
const S = f._tileClippingMaskIDs[I.key] = --l;
|
|
64181
|
-
w.draw(f, v.TRIANGLES, Mi.disabled, new
|
|
64180
|
+
w.draw(f, v.TRIANGLES, Mi.disabled, new nn({ func: v.ALWAYS, mask: 0 }, S, 255, v.KEEP, v.KEEP, v.REPLACE), bn.disabled, cn.disabled, dc(I.projMatrix), "$clipping", f.tileExtentBuffer, f.quadTriangleIndexBuffer, f.tileExtentSegments);
|
|
64182
64181
|
}
|
|
64183
64182
|
}
|
|
64184
64183
|
pointCoordinate(n) {
|
|
@@ -64434,7 +64433,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64434
64433
|
for (const Ne in Ee[Ie])
|
|
64435
64434
|
Ae[Ie][Ne] && Ae[Ie][Ne].set(Ae.program, Ne, Ee[Ie][Ne].current);
|
|
64436
64435
|
};
|
|
64437
|
-
N && N.setUniforms(oe.program, O, oe.binderUniforms, I, { zoom: S }), J("fixedUniforms", this, oe), J("terrainUniforms", this, oe), J("globeUniforms", this, oe), J("fogUniforms", this, oe), J("lightsUniforms", this, oe), J("shadowUniforms", this, oe), H.bind(), O.setColorMode(new bn([U.ONE, U.ONE_MINUS_SRC_ALPHA, U.ZERO, U.ONE], a.ao.transparent, [!0, !0, !0, !1])), O.setDepthMode(new Mi(l.func === U.LESS ? U.LEQUAL : l.func, Mi.ReadOnly, l.range)), O.setStencilMode(
|
|
64436
|
+
N && N.setUniforms(oe.program, O, oe.binderUniforms, I, { zoom: S }), J("fixedUniforms", this, oe), J("terrainUniforms", this, oe), J("globeUniforms", this, oe), J("fogUniforms", this, oe), J("lightsUniforms", this, oe), J("shadowUniforms", this, oe), H.bind(), O.setColorMode(new bn([U.ONE, U.ONE_MINUS_SRC_ALPHA, U.ZERO, U.ONE], a.ao.transparent, [!0, !0, !0, !1])), O.setDepthMode(new Mi(l.func === U.LESS ? U.LEQUAL : l.func, Mi.ReadOnly, l.range)), O.setStencilMode(nn.disabled);
|
|
64438
64437
|
const ue = 3 * w.primitiveLength * 2, ye = 3 * w.primitiveOffset * 2 * 2;
|
|
64439
64438
|
if (this.forceManualRenderingForInstanceIDShaders) {
|
|
64440
64439
|
const Ie = z || 1;
|
|
@@ -64669,7 +64668,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64669
64668
|
continue;
|
|
64670
64669
|
p.terrain && p.terrain.setupElevationDraw(ct, vi);
|
|
64671
64670
|
const ki = Bt ? [ze.canonical.x, ze.canonical.y, 1 << ze.canonical.z] : [0, 0, 0];
|
|
64672
|
-
vi.draw(p, S.LINES, Mi.disabled,
|
|
64671
|
+
vi.draw(p, S.LINES, Mi.disabled, nn.disabled, p.colorModeForRenderPass(), cn.disabled, em(Zt, wt, N, ni, z, ct, ki, Ke.getProjection()), l.id, Qt.layoutVertexBuffer, Qt.indexBuffer, Qt.segments, null, N.zoom, null, [Qt.collisionVertexBuffer, Qt.collisionVertexBufferExt]);
|
|
64673
64672
|
}
|
|
64674
64673
|
if (!w || !oe.length)
|
|
64675
64674
|
return;
|
|
@@ -64693,7 +64692,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64693
64692
|
const Ae = I.createIndexBuffer(Aa, !0), Ne = I.createVertexBuffer(Ie, a.dX.members, !0);
|
|
64694
64693
|
for (const Se of oe) {
|
|
64695
64694
|
const ze = { u_matrix: Se.transform, u_inv_matrix: Se.invTransform, u_camera_to_center_distance: (Ce = N).getCameraToCenterDistance(Se.projection), u_viewport_size: [Ce.width, Ce.height] };
|
|
64696
|
-
ye.draw(p, S.TRIANGLES, Mi.disabled,
|
|
64695
|
+
ye.draw(p, S.TRIANGLES, Mi.disabled, nn.disabled, p.colorModeForRenderPass(), cn.disabled, ze, l.id, Ne, Ae, a.bg.simpleSegment(0, 2 * Se.circleOffset, Se.circleArray.length, Se.circleArray.length / 2), null, N.zoom);
|
|
64697
64696
|
}
|
|
64698
64697
|
var Ce;
|
|
64699
64698
|
Ne.destroy(), Ae.destroy();
|
|
@@ -64761,8 +64760,8 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64761
64760
|
const Fi = Qt.projection.name === "globe", ki = Fi ? a.aj(Se.zoom) : 0, Bi = oc(vi, Qt.getProjection(), Se), Oi = Se.calculatePixelsToTileUnitsMatrix(Zt), un = It && Qt.hasTextData(), vn = Qt.hasIconTextFit() && un && Qt.hasIconData(), Mn = Qt.getProjection().createInversionMatrix(Se, vi.canonical), Xn = (1 << Zt.tileID.canonical.z) * a.al / p.transform.worldSize, pn = (Tr) => {
|
|
64762
64761
|
let In = [0, 0, 0];
|
|
64763
64762
|
if (Tr) {
|
|
64764
|
-
const
|
|
64765
|
-
|
|
64763
|
+
const rn = p.style.directionalLight, Jn = p.style.ambientLight;
|
|
64764
|
+
rn && Jn && (In = aa(p.style, rn, Jn));
|
|
64766
64765
|
}
|
|
64767
64766
|
return In;
|
|
64768
64767
|
}, Qn = (Tr) => {
|
|
@@ -64772,9 +64771,9 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64772
64771
|
}, br = () => {
|
|
64773
64772
|
const Tr = ze && l.layout.get("symbol-placement") !== "point", In = [];
|
|
64774
64773
|
Qn(In), Wn(In);
|
|
64775
|
-
const
|
|
64776
|
-
p.terrainRenderModeElevated() && Ke && In.push("PITCH_WITH_MAP_TERRAIN"), Fi && (In.push("PROJECTION_GLOBE_VIEW"),
|
|
64777
|
-
const Ps = Qt.icon.programConfigurations.get(l.id), _s = p.getOrCreateProgram("symbol", { config: Ps, defines: In }), vs = Zt.imageAtlasTexture ? Zt.imageAtlasTexture.size : [0, 0], Jo = Qt.iconSizeData, Gs = a.bK(Jo, Se.zoom), ha = Ke || !Se.isOrthographic, Fr = ra(Bi, Zt.tileID.canonical, Ke, ze, Se, Qt.getProjection(), Oi), Vr = Ud(Bi, Zt.tileID.canonical, Ke, ze, Se, Qt.getProjection(), Oi), Cr = p.translatePosMatrix(Vr, Zt, I, N, !0), eo = p.translatePosMatrix(Bi, Zt, I, N), ho =
|
|
64774
|
+
const rn = Tr || vn, Jn = Qt.elevationType === "road", Pr = p.shadowRenderer, Ar = Jn && Ke && !!Pr && Pr.enabled, Wr = pn(Ar), Mo = Jn && Ke && !p.terrain ? lt : ri, js = l.paint.get("icon-image-cross-fade");
|
|
64775
|
+
p.terrainRenderModeElevated() && Ke && In.push("PITCH_WITH_MAP_TERRAIN"), Fi && (In.push("PROJECTION_GLOBE_VIEW"), rn && In.push("PROJECTED_POS_ON_VIEWPORT")), js > 0 && Qt.hasAnySecondaryIcon && In.push("ICON_TRANSITION"), !Qt.icon.zOffsetVertexBuffer || Jn && p.terrain || In.push("Z_OFFSET"), J === 0 && ue === 0 && ye === 0 && Ie === 1 || In.push("COLOR_ADJUSTMENT"), Qt.sdfIcons && In.push("RENDER_SDF"), Ar && In.push("RENDER_SHADOWS", "DEPTH_TEXTURE", "NORMAL_OFFSET"), Jn && Ke && !p.terrain && Qt.icon.orientationVertexBuffer && In.push("ELEVATED_ROADS");
|
|
64776
|
+
const Ps = Qt.icon.programConfigurations.get(l.id), _s = p.getOrCreateProgram("symbol", { config: Ps, defines: In }), vs = Zt.imageAtlasTexture ? Zt.imageAtlasTexture.size : [0, 0], Jo = Qt.iconSizeData, Gs = a.bK(Jo, Se.zoom), ha = Ke || !Se.isOrthographic, Fr = ra(Bi, Zt.tileID.canonical, Ke, ze, Se, Qt.getProjection(), Oi), Vr = Ud(Bi, Zt.tileID.canonical, Ke, ze, Se, Qt.getProjection(), Oi), Cr = p.translatePosMatrix(Vr, Zt, I, N, !0), eo = p.translatePosMatrix(Bi, Zt, I, N), ho = rn ? Sl : Fr, $r = ze && !Ke && !Tr;
|
|
64778
64777
|
let jo = ni;
|
|
64779
64778
|
!ft && !Se.mercatorFromTransition || ze || (jo = cm(Se));
|
|
64780
64779
|
const La = Fi ? jo : ni, Xa = l.getColorAdjustmentMatrix(J, ue, ye, Ie), da = sm(Jo.kind, Gs, $r, Ke, p, eo, ho, Cr, Ee, !1, vs, [0, 0], 0, vi, ki, Qe, Mn, La, Qt.getProjection(), Wr, Xn, Xa, js, null), jl = Zt.imageAtlasTexture ? Zt.imageAtlasTexture : null, Pl = l.layout.get("icon-size").constantOr(0) !== 1 || Qt.iconsNeedLinear, za = Qt.sdfIcons || p.options.rotating || p.options.zooming || Pl || ha ? Ce.LINEAR : Ce.NEAREST, Su = Qt.sdfIcons && l.paint.get("icon-halo-width").constantOr(1) !== 0, Ja = p.terrain && Ke && Tr ? a.bl(a.bC(), Fr) : Sl;
|
|
@@ -64784,13 +64783,13 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64784
64783
|
}
|
|
64785
64784
|
return { program: _s, buffers: Qt.icon, uniformValues: da, atlasTexture: jl, atlasTextureIcon: null, atlasInterpolation: za, atlasInterpolationIcon: null, isSDF: Qt.sdfIcons, hasHalo: Su, depthMode: Mo, tile: Zt, renderWithShadows: Ar, labelPlaneMatrixInv: Ja };
|
|
64786
64785
|
}, xn = () => {
|
|
64787
|
-
const Tr = ct && l.layout.get("symbol-placement") !== "point", In = [],
|
|
64788
|
-
p.terrainRenderModeElevated() && wt && In.push("PITCH_WITH_MAP_TERRAIN"), Fi && (In.push("PROJECTION_GLOBE_VIEW"),
|
|
64786
|
+
const Tr = ct && l.layout.get("symbol-placement") !== "point", In = [], rn = Tr || It || vn, Jn = Qt.elevationType === "road", Pr = p.shadowRenderer, Ar = Jn && wt && !!Pr && Pr.enabled, Wr = pn(Ar), Mo = Jn && wt && !p.terrain ? lt : ri;
|
|
64787
|
+
p.terrainRenderModeElevated() && wt && In.push("PITCH_WITH_MAP_TERRAIN"), Fi && (In.push("PROJECTION_GLOBE_VIEW"), rn && In.push("PROJECTED_POS_ON_VIEWPORT")), !Qt.text.zOffsetVertexBuffer || Jn && p.terrain || In.push("Z_OFFSET"), Qt.iconsInText && In.push("RENDER_TEXT_AND_SYMBOL"), In.push("RENDER_SDF"), Ar && In.push("RENDER_SHADOWS", "DEPTH_TEXTURE", "NORMAL_OFFSET"), Jn && wt && !p.terrain && Qt.text.orientationVertexBuffer && In.push("ELEVATED_ROADS"), Qn(In);
|
|
64789
64788
|
const js = Qt.text.programConfigurations.get(l.id), Ps = p.getOrCreateProgram("symbol", { config: js, defines: In });
|
|
64790
64789
|
let _s, vs = [0, 0], Jo = null;
|
|
64791
64790
|
const Gs = Qt.textSizeData;
|
|
64792
64791
|
Qt.iconsInText && (vs = Zt.imageAtlasTexture ? Zt.imageAtlasTexture.size : [0, 0], Jo = Zt.imageAtlasTexture ? Zt.imageAtlasTexture : null, _s = wt || !Se.isOrthographic || p.options.rotating || p.options.zooming || Gs.kind === "composite" || Gs.kind === "camera" ? Ce.LINEAR : Ce.NEAREST);
|
|
64793
|
-
const ha = Zt.glyphAtlasTexture ? Zt.glyphAtlasTexture.size : [0, 0], Fr = l.layout.get("text-size-scale-range"), Vr = a.aA(p.scaleFactor, Fr[0], Fr[1]), Cr = a.bK(Gs, Se.zoom, Vr), eo = ra(Bi, Zt.tileID.canonical, wt, ct, Se, Qt.getProjection(), Oi), ho = Ud(Bi, Zt.tileID.canonical, wt, ct, Se, Qt.getProjection(), Oi), $r = p.translatePosMatrix(ho, Zt, S, z, !0), jo = p.translatePosMatrix(Bi, Zt, S, z), La =
|
|
64792
|
+
const ha = Zt.glyphAtlasTexture ? Zt.glyphAtlasTexture.size : [0, 0], Fr = l.layout.get("text-size-scale-range"), Vr = a.aA(p.scaleFactor, Fr[0], Fr[1]), Cr = a.bK(Gs, Se.zoom, Vr), eo = ra(Bi, Zt.tileID.canonical, wt, ct, Se, Qt.getProjection(), Oi), ho = Ud(Bi, Zt.tileID.canonical, wt, ct, Se, Qt.getProjection(), Oi), $r = p.translatePosMatrix(ho, Zt, S, z, !0), jo = p.translatePosMatrix(Bi, Zt, S, z), La = rn ? Sl : eo, Xa = ct && !wt && !Tr;
|
|
64794
64793
|
let da = ni;
|
|
64795
64794
|
!ft && !Se.mercatorFromTransition || ct || (da = cm(Se));
|
|
64796
64795
|
const jl = sm(Gs.kind, Cr, Xa, wt, p, jo, La, $r, Ee, !0, ha, vs, 0, vi, ki, Qe, Mn, Fi ? da : ni, Qt.getProjection(), Wr, Xn, null, null, Vr), Pl = Zt.glyphAtlasTexture ? Zt.glyphAtlasTexture : null, za = Ce.LINEAR, Su = l.paint.get("text-halo-width").constantOr(1) !== 0, Ja = p.terrain && wt && Tr ? a.bl(a.bC(), eo) : Sl;
|
|
@@ -64803,10 +64802,10 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64803
64802
|
if (nt && Qt.canOverlap) {
|
|
64804
64803
|
vt = !0;
|
|
64805
64804
|
const Tr = Ur && !w.onlyText ? Qt.icon.segments.get() : [], In = uo && !w.onlyIcons ? Qt.text.segments.get() : [];
|
|
64806
|
-
for (const
|
|
64807
|
-
Bt.push({ segments: new a.bg([
|
|
64808
|
-
for (const
|
|
64809
|
-
Bt.push({ segments: new a.bg([
|
|
64805
|
+
for (const rn of Tr)
|
|
64806
|
+
Bt.push({ segments: new a.bg([rn]), sortKey: rn.sortKey, state: Zn });
|
|
64807
|
+
for (const rn of In)
|
|
64808
|
+
Bt.push({ segments: new a.bg([rn]), sortKey: rn.sortKey, state: Ir });
|
|
64810
64809
|
} else
|
|
64811
64810
|
w.onlyText || Bt.push({ segments: Ur ? Qt.icon.segments : new a.bg([]), sortKey: 0, state: Zn }), w.onlyIcons || Bt.push({ segments: uo ? Qt.text.segments : new a.bg([]), sortKey: 0, state: Ir });
|
|
64812
64811
|
}
|
|
@@ -64863,7 +64862,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
64863
64862
|
continue;
|
|
64864
64863
|
Ie = mf(ye, ue, S, 1, 0), Ee = w, Ae = oe.depthSegments, Ne = O;
|
|
64865
64864
|
}
|
|
64866
|
-
Ne.draw(p, v.TRIANGLES, Ee,
|
|
64865
|
+
Ne.draw(p, v.TRIANGLES, Ee, nn.disabled, bn.disabled, cn.disabled, Ie, l.id, oe.vertexBuffer, oe.indexBuffer, Ae, l.paint, p.transform.zoom);
|
|
64867
64866
|
}
|
|
64868
64867
|
}
|
|
64869
64868
|
function mu(p, n, l) {
|
|
@@ -65153,11 +65152,11 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65153
65152
|
const Ie = (Ee, Ae) => {
|
|
65154
65153
|
if (S) {
|
|
65155
65154
|
const Ne = Ee.entranceBloom;
|
|
65156
|
-
Ae.draw(n, w.gl.TRIANGLES, p.depthMode,
|
|
65155
|
+
Ae.draw(n, w.gl.TRIANGLES, p.depthMode, nn.disabled, p.blendMode, cn.disabled, ue, f.id, Ne.layoutVertexBuffer, Ne.indexBuffer, Ne.segmentsBucket, f.paint, n.transform.zoom, $, [Ne.layoutAttenuationBuffer, Ne.layoutColorBuffer]);
|
|
65157
65156
|
} else {
|
|
65158
65157
|
const Ne = Ee.segmentsBucket;
|
|
65159
65158
|
let Ce = [Ee.layoutNormalBuffer, Ee.layoutCentroidBuffer, Ee.layoutColorBuffer];
|
|
65160
|
-
Ee.layoutFacadePaintBuffer && (Ce = Ce.concat([Ee.layoutFacadeDataBuffer, Ee.layoutFacadeVerticalRangeBuffer, Ee.layoutFacadePaintBuffer])), Ae.draw(n, w.gl.TRIANGLES, p.depthMode,
|
|
65159
|
+
Ee.layoutFacadePaintBuffer && (Ce = Ce.concat([Ee.layoutFacadeDataBuffer, Ee.layoutFacadeVerticalRangeBuffer, Ee.layoutFacadePaintBuffer])), Ae.draw(n, w.gl.TRIANGLES, p.depthMode, nn.disabled, p.blendMode, I ? cn.disabled : cn.backCW, ue, f.id, Ee.layoutVertexBuffer, Ee.indexBuffer, Ne, f.paint, n.transform.zoom, $, Ce);
|
|
65161
65160
|
}
|
|
65162
65161
|
};
|
|
65163
65162
|
n.uploadCommonUniforms(w, J, O.toUnwrapped(), null, B), H.buildingWithoutFacade && Ie(H.buildingWithoutFacade, J), oe !== J && n.uploadCommonUniforms(w, oe, O.toUnwrapped(), null, B), H.buildingWithFacade && Ie(H.buildingWithFacade, oe);
|
|
@@ -65253,7 +65252,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65253
65252
|
U[12] += 2 * y / (a.o.devicePixelRatio * S.width), U[13] += 2 * v / (a.o.devicePixelRatio * S.height), a.aB(O, U, O);
|
|
65254
65253
|
const H = p.getOrCreateProgram("debug", { defines: B }), $ = n.getTileByID(l.key);
|
|
65255
65254
|
p.terrain && p.terrain.setupElevationDraw($, H);
|
|
65256
|
-
const oe = Mi.disabled, J =
|
|
65255
|
+
const oe = Mi.disabled, J = nn.disabled, ue = p.colorModeForRenderPass(), ye = "$debug";
|
|
65257
65256
|
I.activeTexture.set(N.TEXTURE0), p.emptyTexture.bind(N.LINEAR, N.CLAMP_TO_EDGE), z ? $._makeGlobeTileDebugBuffers(p.context, S) : $._makeDebugTileBoundsBuffers(p.context, S.projection);
|
|
65258
65257
|
const Ie = $._tileDebugBuffer || p.debugBuffer, Ee = $._tileDebugIndexBuffer || p.debugIndexBuffer, Ae = $._tileDebugSegments || p.debugSegments;
|
|
65259
65258
|
if (H.draw(p, N.LINE_STRIP, oe, J, ue, cn.disabled, tm(O, f.toPremultipliedRenderColor(null)), ye, Ie, Ee, Ae, null, null, null, [$._globeTileDebugBorderBuffer]), w) {
|
|
@@ -65289,7 +65288,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65289
65288
|
}
|
|
65290
65289
|
function xc(p, n, l, f, y, v) {
|
|
65291
65290
|
const w = p.context.gl, I = n.paint.get("sky-atmosphere-color"), S = n.paint.get("sky-atmosphere-halo-color"), N = n.paint.get("sky-atmosphere-sun-intensity"), z = ((B, O, U, H, $) => ({ u_matrix_3f: B, u_sun_direction: O, u_sun_intensity: U, u_color_tint_r: [H.r, H.g, H.b, H.a], u_color_tint_m: [$.r, $.g, $.b, $.a], u_luminance: 5e-5 }))(a.el(a.dL(), f), y, N, I.toPremultipliedRenderColor(null), S.toPremultipliedRenderColor(null));
|
|
65292
|
-
w.framebufferTexture2D(w.FRAMEBUFFER, w.COLOR_ATTACHMENT0, w.TEXTURE_CUBE_MAP_POSITIVE_X + v, n.skyboxTexture, 0), l.draw(p, w.TRIANGLES, Mi.disabled,
|
|
65291
|
+
w.framebufferTexture2D(w.FRAMEBUFFER, w.COLOR_ATTACHMENT0, w.TEXTURE_CUBE_MAP_POSITIVE_X + v, n.skyboxTexture, 0), l.draw(p, w.TRIANGLES, Mi.disabled, nn.disabled, bn.unblended, cn.frontCW, z, "skyboxCapture", n.skyboxGeometry.vertexBuffer, n.skyboxGeometry.indexBuffer, n.skyboxGeometry.segment);
|
|
65293
65292
|
}
|
|
65294
65293
|
const wc = a.ef([{ type: "Float32", name: "a_pos", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }]);
|
|
65295
65294
|
class bc {
|
|
@@ -65349,7 +65348,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65349
65348
|
const Se = n.getOrCreateProgram("globeAtmosphere", { defines: Ce }), ze = ((Ke, wt, nt, vt, ri, lt, Qe, It, ft, Bt, ni, vi) => ({ u_frustum_tl: Ke, u_frustum_tr: wt, u_frustum_br: nt, u_frustum_bl: vt, u_horizon: ri, u_transition: lt, u_fadeout_range: Qe, u_atmosphere_fog_color: It.toArray01(), u_high_color: ft.toArray01(), u_space_color: Bt.toArray01(), u_temporal_offset: ni, u_horizon_angle: vi }))(v.frustumCorners.TL, v.frustumCorners.TR, v.frustumCorners.BR, v.frustumCorners.BL, v.frustumCorners.horizon, I, oe, z, O, H, ue, Ee);
|
|
65350
65349
|
n.uploadCommonUniforms(f, Se);
|
|
65351
65350
|
const ct = this.atmosphereBuffer;
|
|
65352
|
-
ct && Se.draw(n, y.TRIANGLES, w,
|
|
65351
|
+
ct && Se.draw(n, y.TRIANGLES, w, nn.disabled, Ne ? this.colorModeWriteAlpha : this.colorModeAlphaBlendedWriteRGB, cn.backCW, ze, Ne ? "atmosphere_glow_alpha" : "atmosphere_glow", ct.vertexBuffer, ct.indexBuffer, ct.segments);
|
|
65353
65352
|
};
|
|
65354
65353
|
Ae(!1), Ae(!0);
|
|
65355
65354
|
}
|
|
@@ -65365,7 +65364,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65365
65364
|
a.dN(H, H, O), a.c4(H, H, this.params.sizeMultiplier);
|
|
65366
65365
|
const $ = (oe = U, J = H, ue = f, { u_matrix: Float32Array.from(z), u_up: oe, u_right: J, u_intensity_multiplier: ue });
|
|
65367
65366
|
var oe, J, ue;
|
|
65368
|
-
n.uploadCommonUniforms(y, I), this.starsVx && this.starsIdx && I.draw(n, v.TRIANGLES, Mi.disabled,
|
|
65367
|
+
n.uploadCommonUniforms(y, I), this.starsVx && this.starsIdx && I.draw(n, v.TRIANGLES, Mi.disabled, nn.disabled, this.colorModeAlphaBlendedWriteRGB, cn.disabled, $, "atmosphere_stars", this.starsVx, this.starsIdx, this.starsSegments);
|
|
65369
65368
|
}
|
|
65370
65369
|
}
|
|
65371
65370
|
class jr {
|
|
@@ -65461,7 +65460,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65461
65460
|
if (!y)
|
|
65462
65461
|
return;
|
|
65463
65462
|
const v = y.getShadowPassDepthMode(), w = y.getShadowPassColorMode(), I = y.calculateShadowPassMatrixFromMatrix(n), S = gu(I);
|
|
65464
|
-
l.getOrCreateProgram("modelDepth", { defines: l._shadowMapDebug ? [] : ["DEPTH_TEXTURE"] }).draw(l, l.context.gl.TRIANGLES, v,
|
|
65463
|
+
l.getOrCreateProgram("modelDepth", { defines: l._shadowMapDebug ? [] : ["DEPTH_TEXTURE"] }).draw(l, l.context.gl.TRIANGLES, v, nn.disabled, w, cn.backCCW, S, f.id, p.vertexBuffer, p.indexBuffer, p.segments, f.paint, l.transform.zoom, void 0, void 0);
|
|
65465
65464
|
}
|
|
65466
65465
|
function Iy(p, n, l) {
|
|
65467
65466
|
const f = n.updateZoomBasedPaintProperties(), y = function(v, w, I) {
|
|
@@ -65512,11 +65511,11 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65512
65511
|
p.uploadCommonUniforms(I, $, v.toUnwrapped(), null, ue);
|
|
65513
65512
|
const ye = O.material.doubleSided ? cn.disabled : cn.backCCW;
|
|
65514
65513
|
if (f.instancedDataArray.length > 20)
|
|
65515
|
-
H.push(f.instancedDataBuffer), $.draw(p, I.gl.TRIANGLES, z,
|
|
65514
|
+
H.push(f.instancedDataBuffer), $.draw(p, I.gl.TRIANGLES, z, nn.disabled, J, ye, oe, n.id, O.vertexBuffer, O.indexBuffer, O.segments, n.paint, p.transform.zoom, void 0, H, f.instancedDataArray.length);
|
|
65516
65515
|
else {
|
|
65517
65516
|
const Ie = S ? "u_instance" : "u_normal_matrix";
|
|
65518
65517
|
for (let Ee = 0; Ee < f.instancedDataArray.length; ++Ee)
|
|
65519
|
-
oe[Ie] = new Float32Array(f.instancedDataArray.arrayBuffer, 64 * Ee, 16), $.draw(p, I.gl.TRIANGLES, z,
|
|
65518
|
+
oe[Ie] = new Float32Array(f.instancedDataArray.arrayBuffer, 64 * Ee, 16), $.draw(p, I.gl.TRIANGLES, z, nn.disabled, J, ye, oe, n.id, O.vertexBuffer, O.indexBuffer, O.segments, n.paint, p.transform.zoom, void 0, H);
|
|
65520
65519
|
}
|
|
65521
65520
|
}
|
|
65522
65521
|
if (l.children)
|
|
@@ -65629,7 +65628,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65629
65628
|
if (this.vignetteVx && this.vignetteIdx) {
|
|
65630
65629
|
n.uploadCommonUniforms(n.context, f);
|
|
65631
65630
|
const w = { u_vignetteShape: (v = { vignetteShape: [l.start, l.range, Math.pow(10, l.fadePower)], vignetteColor: [l.color.r, l.color.g, l.color.b, l.color.a * l.strength] }).vignetteShape, u_vignetteColor: v.vignetteColor };
|
|
65632
|
-
f.draw(n, n.context.gl.TRIANGLES, Mi.disabled,
|
|
65631
|
+
f.draw(n, n.context.gl.TRIANGLES, Mi.disabled, nn.disabled, bn.alphaBlended, cn.disabled, w, "vignette", this.vignetteVx, this.vignetteIdx, y);
|
|
65633
65632
|
}
|
|
65634
65633
|
var v;
|
|
65635
65634
|
}
|
|
@@ -65721,7 +65720,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65721
65720
|
const J = Ny(this._movement.getPosition(), $), ue = v.dropletSizeX, ye = v.dropletSizeX * v.dropletSizeYScale, Ie = n.width / 2, Ee = n.height / 2, Ae = Nl(0, v.screenThinning.start, 0, 1, v.screenThinning.intensity), Ne = Nl(1e-3, v.screenThinning.range, 0, 1, v.screenThinning.intensity), Ce = Nl(0, v.screenThinning.particleOffset, 0, 1, v.screenThinning.intensity), Se = (ze = { modelview: S.modelviewMatrix, projection: S.projectionMatrix, time: this._accumulatedTimeFromStart, camPos: J, velocityConeAperture: v.velocityConeAperture, velocity: v.velocity, boxSize: $, rainDropletSize: [ue, ye], distortionStrength: v.distortionStrength, rainDirection: w, color: U, screenSize: [B.width, B.height], thinningCenterPos: [Ie, Ee], thinningShape: [Ae, Ne, Math.pow(10, v.screenThinning.fadePower)], thinningAffectedRatio: v.screenThinning.affectedRatio, thinningParticleOffset: Ce, shapeDirectionalPower: v.shapeDirPower, shapeNormalPower: v.shapeNormalPower, mode: oe ? 0 : 1 }, { u_modelview: Float32Array.from(ze.modelview), u_projection: Float32Array.from(ze.projection), u_time: ze.time, u_cam_pos: ze.camPos, u_texScreen: 0, u_velocityConeAperture: ze.velocityConeAperture, u_velocity: ze.velocity, u_boxSize: ze.boxSize, u_rainDropletSize: ze.rainDropletSize, u_distortionStrength: ze.distortionStrength, u_rainDirection: ze.rainDirection, u_color: ze.color, u_screenSize: ze.screenSize, u_thinningCenterPos: ze.thinningCenterPos, u_thinningShape: ze.thinningShape, u_thinningAffectedRatio: ze.thinningAffectedRatio, u_thinningParticleOffset: ze.thinningParticleOffset, u_shapeDirectionalPower: ze.shapeDirectionalPower, u_shapeNormalPower: ze.shapeNormalPower, u_mode: ze.mode });
|
|
65722
65721
|
var ze;
|
|
65723
65722
|
const ct = Math.round(v.intensity * this.particlesCount), Ke = a.bg.simpleSegment(0, 0, 4 * ct, 2 * ct);
|
|
65724
|
-
O.draw(n, z.TRIANGLES, Mi.disabled,
|
|
65723
|
+
O.draw(n, z.TRIANGLES, Mi.disabled, nn.disabled, bn.alphaBlended, cn.disabled, Se, "rain_particles", this.particlesVx, this.particlesIdx, Ke);
|
|
65725
65724
|
};
|
|
65726
65725
|
v.distortionStrength > 0 && H(v.boxSize, !0), H(v.boxSize, !1), this._vignette.draw(n, I);
|
|
65727
65726
|
}
|
|
@@ -65763,14 +65762,14 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65763
65762
|
const oe = Ny(this._movement.getPosition(), U), J = B.width / 2, ue = B.height / 2, ye = Nl(0, $.screenThinning.start, 0, 1, $.screenThinning.intensity), Ie = Nl(1e-3, $.screenThinning.range, 0, 1, $.screenThinning.intensity), Ee = Nl(0, $.screenThinning.particleOffset, 0, 1, $.screenThinning.intensity), Ae = (Ne = { modelview: S.modelviewMatrix, projection: S.projectionMatrix, time: this._accumulatedTimeFromStart, camPos: oe, velocityConeAperture: $.velocityConeAperture, velocity: $.velocity, horizontalOscillationRadius: $.horizontalOscillationRadius, horizontalOscillationRate: $.horizontalOscillationRate, boxSize: U, billboardSize: 1 * $.billboardSize, simpleShapeParameters: [$.shapeFadeStart, $.shapeFadePower], screenSize: [B.width, B.height], thinningCenterPos: [J, ue], thinningShape: [ye, Ie, Math.pow(10, $.screenThinning.fadePower)], thinningAffectedRatio: $.screenThinning.affectedRatio, thinningParticleOffset: Ee, color: [$.color.r, $.color.g, $.color.b, $.color.a], direction: f }, { u_modelview: Float32Array.from(Ne.modelview), u_projection: Float32Array.from(Ne.projection), u_time: Ne.time, u_cam_pos: Ne.camPos, u_velocityConeAperture: Ne.velocityConeAperture, u_velocity: Ne.velocity, u_horizontalOscillationRadius: Ne.horizontalOscillationRadius, u_horizontalOscillationRate: Ne.horizontalOscillationRate, u_boxSize: Ne.boxSize, u_billboardSize: Ne.billboardSize, u_simpleShapeParameters: Ne.simpleShapeParameters, u_screenSize: Ne.screenSize, u_thinningCenterPos: Ne.thinningCenterPos, u_thinningShape: Ne.thinningShape, u_thinningAffectedRatio: Ne.thinningAffectedRatio, u_thinningParticleOffset: Ne.thinningParticleOffset, u_particleColor: Ne.color, u_direction: Ne.direction });
|
|
65764
65763
|
var Ne;
|
|
65765
65764
|
const Ce = Math.round($.intensity * this.particlesCount), Se = a.bg.simpleSegment(0, 0, 4 * Ce, 2 * Ce);
|
|
65766
|
-
this.particlesVx && this.particlesIdx && O.draw(n, z.TRIANGLES, Mi.disabled,
|
|
65765
|
+
this.particlesVx && this.particlesIdx && O.draw(n, z.TRIANGLES, Mi.disabled, nn.disabled, bn.alphaBlended, cn.disabled, Ae, "snow_particles", this.particlesVx, this.particlesIdx, Se);
|
|
65767
65766
|
})(l.boxSize, 0, l), this._vignette.draw(n, y);
|
|
65768
65767
|
}
|
|
65769
65768
|
}
|
|
65770
65769
|
const Ll = { symbol: function(p, n, l, f, y) {
|
|
65771
65770
|
if (p.renderPass !== "translucent")
|
|
65772
65771
|
return;
|
|
65773
|
-
const v =
|
|
65772
|
+
const v = nn.disabled, w = p.colorModeForRenderPass(), I = l.layout.get("text-variable-anchor"), S = l.layout.get("text-size-scale-range"), N = a.aA(p.scaleFactor, S[0], S[1]);
|
|
65774
65773
|
I && function(O, U, H, $, oe, J, ue, ye) {
|
|
65775
65774
|
const Ie = U.transform, Ee = oe === "map", Ae = J === "map";
|
|
65776
65775
|
for (const Ne of O) {
|
|
@@ -65789,7 +65788,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65789
65788
|
const y = l.paint.get("circle-opacity"), v = l.paint.get("circle-stroke-width"), w = l.paint.get("circle-stroke-opacity"), I = l.layout.get("circle-sort-key").constantOr(1) !== void 0, S = l.paint.get("circle-emissive-strength");
|
|
65790
65789
|
if (y.constantOr(1) === 0 && (v.constantOr(1) === 0 || w.constantOr(1) === 0))
|
|
65791
65790
|
return;
|
|
65792
|
-
const N = p.context, z = N.gl, B = p.transform, O = !(!p.terrain || !p.terrain.enabled), U = l.layout.get("circle-elevation-reference"), H = p.depthModeForSublayer(0, Mi.ReadOnly), $ = new Mi(p.context.gl.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D), oe = U === "none" || O ? H : $, J =
|
|
65791
|
+
const N = p.context, z = N.gl, B = p.transform, O = !(!p.terrain || !p.terrain.enabled), U = l.layout.get("circle-elevation-reference"), H = p.depthModeForSublayer(0, Mi.ReadOnly), $ = new Mi(p.context.gl.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D), oe = U === "none" || O ? H : $, J = nn.disabled, ue = p.colorModeForDrapableLayerRenderPass(S), ye = B.projection.name === "globe", Ie = [a.aF(B.center.lng), a.aJ(B.center.lat)], Ee = [];
|
|
65793
65792
|
for (let Ne = 0; Ne < f.length; Ne++) {
|
|
65794
65793
|
const Ce = f[Ne], Se = n.getTile(Ce), ze = Se.getBucket(l);
|
|
65795
65794
|
if (!ze || ze.projection.name !== B.projection.name)
|
|
@@ -65813,7 +65812,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65813
65812
|
}, heatmap: function(p, n, l, f) {
|
|
65814
65813
|
if (l.paint.get("heatmap-opacity") !== 0)
|
|
65815
65814
|
if (p.renderPass === "offscreen") {
|
|
65816
|
-
const y = p.context, v = y.gl, w =
|
|
65815
|
+
const y = p.context, v = y.gl, w = nn.disabled, I = new bn([v.ONE, v.ONE, v.ONE, v.ONE], a.ao.transparent, [!0, !0, !0, !0]);
|
|
65817
65816
|
(function(U, H, $, oe) {
|
|
65818
65817
|
const J = U.gl, ue = H.width * oe, ye = H.height * oe;
|
|
65819
65818
|
U.activeTexture.set(J.TEXTURE1), U.viewport.set([0, 0, ue, ye]);
|
|
@@ -65849,7 +65848,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65849
65848
|
return;
|
|
65850
65849
|
w.activeTexture.set(I.TEXTURE0), I.bindTexture(I.TEXTURE_2D, S.colorAttachment.get()), w.activeTexture.set(I.TEXTURE1);
|
|
65851
65850
|
let N = v.colorRampTexture;
|
|
65852
|
-
N || (N = v.colorRampTexture = new a.T(w, v.colorRamp, I.RGBA8)), N.bind(I.LINEAR, I.CLAMP_TO_EDGE), y.getOrCreateProgram("heatmapTexture").draw(y, I.TRIANGLES, Mi.disabled,
|
|
65851
|
+
N || (N = v.colorRampTexture = new a.T(w, v.colorRamp, I.RGBA8)), N.bind(I.LINEAR, I.CLAMP_TO_EDGE), y.getOrCreateProgram("heatmapTexture").draw(y, I.TRIANGLES, Mi.disabled, nn.disabled, y.colorModeForRenderPass(), cn.disabled, ((z, B, O, U) => ({ u_image: 0, u_color_ramp: 1, u_opacity: B.paint.get("heatmap-opacity") }))(0, v), v.id, y.viewportBuffer, y.quadTriangleIndexBuffer, y.viewportSegments, v.paint, y.transform.zoom);
|
|
65853
65852
|
}(p, l));
|
|
65854
65853
|
}, line: function(p, n, l, f) {
|
|
65855
65854
|
if (p.renderPass !== "translucent")
|
|
@@ -65881,13 +65880,13 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65881
65880
|
const vn = [...vi], Mn = p.shadowRenderer, Xn = un.elevationType === "road" && !!Mn && Mn.enabled;
|
|
65882
65881
|
let pn = [0, 0, 0];
|
|
65883
65882
|
if (Xn) {
|
|
65884
|
-
const In = p.style.directionalLight,
|
|
65885
|
-
In &&
|
|
65883
|
+
const In = p.style.directionalLight, rn = p.style.ambientLight;
|
|
65884
|
+
In && rn && (pn = aa(p.style, In, rn)), vn.push("RENDER_SHADOWS", "DEPTH_TEXTURE", "NORMAL_OFFSET");
|
|
65886
65885
|
}
|
|
65887
65886
|
const Qn = un.programConfigurations.get(l.id);
|
|
65888
65887
|
let Wn = !1;
|
|
65889
65888
|
if (Ke && Oi.imageAtlas) {
|
|
65890
|
-
const In = a.e0.from(Ke),
|
|
65889
|
+
const In = a.e0.from(Ke), rn = In.getPrimary().scaleSelf(ye).toString(), Jn = Oi.imageAtlas.patternPositions.get(rn), Pr = In.getSecondary(), Ar = Pr ? Oi.imageAtlas.patternPositions.get(Pr.scaleSelf(ye).toString()) : null;
|
|
65891
65890
|
Wn = !!Jn && !!Ar, Jn && Qn.setConstantPatternPositions(Jn, Ar);
|
|
65892
65891
|
}
|
|
65893
65892
|
ct > 0 && (Wn || Qn.getPatternTransitionVertexBuffer("line-pattern")) && vn.push("LINE_PATTERN_TRANSITION");
|
|
@@ -65902,16 +65901,16 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65902
65901
|
const Zn = ue ? Bi.projMatrix : null, Ir = N ? 1 / un.tileToMeter / a.ay(Oi, 1, p.transform.zoom) : 1, Ur = N ? 1 / un.tileToMeter / a.ay(Oi, 1, Math.floor(p.transform.zoom)) : 1, uo = ze ? a.e1(p, Oi, l, Zn, ye, Ir, Ur, [Yn, Hn], pn, ct) : a.e2(p, Oi, l, Zn, un.lineClipsArray.length, ye, Ir, Ur, [Yn, Hn], pn);
|
|
65903
65902
|
if (vt) {
|
|
65904
65903
|
const In = un.gradients[l.id];
|
|
65905
|
-
let
|
|
65904
|
+
let rn = In.texture;
|
|
65906
65905
|
if (l.gradientVersion !== In.version) {
|
|
65907
65906
|
let Jn = 256;
|
|
65908
65907
|
if (l.stepInterpolant) {
|
|
65909
65908
|
const Pr = n.getSource().maxzoom, Ar = Bi.canonical.z === Pr ? Math.ceil(1 << p.transform.maxZoom - Bi.canonical.z) : 1;
|
|
65910
65909
|
Jn = a.aA(a.e3(un.maxLineLength / a.al * 1024 * Ar), 256, O.maxTextureSize);
|
|
65911
65910
|
}
|
|
65912
|
-
In.gradient = a.e4({ expression: l.gradientExpression(), evaluationKey: "lineProgress", resolution: Jn, image: In.gradient || void 0, clips: un.lineClipsArray }), In.texture ? In.texture.update(In.gradient) : In.texture = new a.T(O, In.gradient, U.RGBA8), In.version = l.gradientVersion,
|
|
65911
|
+
In.gradient = a.e4({ expression: l.gradientExpression(), evaluationKey: "lineProgress", resolution: Jn, image: In.gradient || void 0, clips: un.lineClipsArray }), In.texture ? In.texture.update(In.gradient) : In.texture = new a.T(O, In.gradient, U.RGBA8), In.version = l.gradientVersion, rn = In.texture;
|
|
65913
65912
|
}
|
|
65914
|
-
O.activeTexture.set(U.TEXTURE1),
|
|
65913
|
+
O.activeTexture.set(U.TEXTURE1), rn.bind(l.stepInterpolant ? U.NEAREST : U.LINEAR, U.CLAMP_TO_EDGE);
|
|
65915
65914
|
}
|
|
65916
65915
|
Ee && (O.activeTexture.set(U.TEXTURE0), Oi.lineAtlasTexture && Oi.lineAtlasTexture.bind(U.LINEAR, U.REPEAT), Qn.updatePaintBuffers()), ze && (O.activeTexture.set(U.TEXTURE0), Oi.imageAtlasTexture && Oi.imageAtlasTexture.bind(U.LINEAR, U.CLAMP_TO_EDGE), Qn.updatePaintBuffers()), Fi && !z && p.terrain.setupElevationDraw(Oi, xn), p.uploadCommonUniforms(O, xn, Bi.toUnwrapped());
|
|
65917
65916
|
const Tr = (In) => {
|
|
@@ -65920,8 +65919,8 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65920
65919
|
if (nt && !Fi) {
|
|
65921
65920
|
const In = p.stencilModeForClipping(Bi).ref;
|
|
65922
65921
|
In === 0 && ue && O.clear({ stencil: 0 });
|
|
65923
|
-
const
|
|
65924
|
-
uo.u_alpha_discard_threshold = 0.8, Tr(new rn
|
|
65922
|
+
const rn = { func: U.EQUAL, mask: 255 };
|
|
65923
|
+
uo.u_alpha_discard_threshold = 0.8, Tr(new nn(rn, In, 255, U.KEEP, U.KEEP, U.INVERT)), uo.u_alpha_discard_threshold = 0, Tr(new nn(rn, In, 255, U.KEEP, U.KEEP, U.KEEP));
|
|
65925
65924
|
} else
|
|
65926
65925
|
uo.u_alpha_discard_threshold = nt && Fi && ki ? 0.8 : 0, Tr(Fi ? Qt : p.stencilModeForClipping(Bi));
|
|
65927
65926
|
}
|
|
@@ -65930,11 +65929,11 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65930
65929
|
const Bt = new Mi(p.depthOcclusion ? U.GREATER : U.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D);
|
|
65931
65930
|
if (l.hasNonElevatedBuckets) {
|
|
65932
65931
|
const ni = !ue && p.terrain;
|
|
65933
|
-
I !== 0 && ni ? a.w(`Occlusion opacity for layer ${l.id} is supported on terrain only if the layer has line-z-offset enabled.`) : ni ? a.w(`Cannot render non-elevated lines in immediate mode when terrain is enabled. Layer: ${l.id}.`) : It(f, lt, ft,
|
|
65932
|
+
I !== 0 && ni ? a.w(`Occlusion opacity for layer ${l.id} is supported on terrain only if the layer has line-z-offset enabled.`) : ni ? a.w(`Cannot render non-elevated lines in immediate mode when terrain is enabled. Layer: ${l.id}.`) : It(f, lt, ft, nn.disabled, !1, !0);
|
|
65934
65933
|
}
|
|
65935
65934
|
if (l.hasElevatedBuckets) {
|
|
65936
65935
|
S === "hd-road-markup" ? B || (ft = Bt, lt.push("ELEVATED_ROADS")) : (lt.push("ELEVATED"), ft = Bt, $ && lt.push(oe ? "CROSS_SLOPE_HORIZONTAL" : "CROSS_SLOPE_VERTICAL"), z && lt.push("ELEVATION_REFERENCE_SEA"));
|
|
65937
|
-
const ni = nt ? p.stencilModeFor3D() :
|
|
65936
|
+
const ni = nt ? p.stencilModeFor3D() : nn.disabled;
|
|
65938
65937
|
p.forceTerrainMode = !0, It(f, lt, ft, ni, !0, !0), nt && It(f, lt, ft, ni, !0, !1), p.forceTerrainMode = !1;
|
|
65939
65938
|
}
|
|
65940
65939
|
nt && (p.resetStencilClippingMasks(), ue && O.clear({ stencil: 0 })), I === 0 || p.depthOcclusion || ue || p.layersWithOcclusionOpacity.push(p.currentLayer);
|
|
@@ -65950,7 +65949,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65950
65949
|
if (z !== "offset") {
|
|
65951
65950
|
if (mu(O, !1), z === "road") {
|
|
65952
65951
|
const U = !B && p.renderPass === "translucent";
|
|
65953
|
-
U && yc(p, n, l, f, "geometry"), mu(O, !0,
|
|
65952
|
+
U && yc(p, n, l, f, "geometry"), mu(O, !0, nn.disabled), U && function(H) {
|
|
65954
65953
|
const { painter: $, sourceCache: oe, layer: J, coords: ue, colorMode: ye } = H, Ie = $.context.gl, Ee = H.painter.shadowRenderer, Ae = !!Ee && Ee.enabled, Ne = new Mi($.context.gl.LEQUAL, Mi.ReadOnly, $.depthRangeFor3D);
|
|
65955
65954
|
let Ce = [0, 0, 0];
|
|
65956
65955
|
if (Ae) {
|
|
@@ -65974,7 +65973,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65974
65973
|
const It = $.getOrCreateProgram("elevatedStructures", { config: ri, overrideFog: lt, defines: Qe }), ft = $.translatePosMatrix(ct.projMatrix, Ke, J.paint.get("fill-translate"), J.paint.get("fill-translate-anchor"));
|
|
65975
65974
|
Ae && Ee.setupShadows(Ke.tileID.toUnwrapped(), It, "vector-tile");
|
|
65976
65975
|
const Bt = sb(ft, Ce);
|
|
65977
|
-
$.uploadCommonUniforms($.context, It, ct.toUnwrapped()), It.draw($, Ie.TRIANGLES, Ne,
|
|
65976
|
+
$.uploadCommonUniforms($.context, It, ct.toUnwrapped()), It.draw($, Ie.TRIANGLES, Ne, nn.disabled, ye, cn.backCCW, Bt, J.id, nt.vertexBuffer, nt.indexBuffer, vt, J.paint, $.transform.zoom, ri, [nt.vertexBufferNormal]);
|
|
65978
65977
|
}
|
|
65979
65978
|
};
|
|
65980
65979
|
Se(!0), Se(!1);
|
|
@@ -65996,7 +65995,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
65996
65995
|
const Ce = Ae.bufferData.programConfigurations.get(oe.id), Se = H.isTileAffectedByFog(Ie), ze = H.getOrCreateProgram("elevatedStructuresDepth", { config: Ce, overrideFog: Se }), ct = ye.calculateShadowPassMatrixFromTile(Ee.tileID.toUnwrapped());
|
|
65997
65996
|
H.uploadCommonUniforms(H.context, ze, Ie.toUnwrapped());
|
|
65998
65997
|
const Ke = { u_matrix: ct, u_depth_bias: 0 };
|
|
65999
|
-
ze.draw(H, ue.TRIANGLES, ye.getShadowPassDepthMode(),
|
|
65998
|
+
ze.draw(H, ue.TRIANGLES, ye.getShadowPassDepthMode(), nn.disabled, ye.getShadowPassColorMode(), cn.disabled, Ke, oe.id, Ne.vertexBuffer, Ne.indexBuffer, Ne.shadowCasterSegments, oe.paint, H.transform.zoom, Ce);
|
|
66000
65999
|
}
|
|
66001
66000
|
}(O);
|
|
66002
66001
|
}, "fill-extrusion": function(p, n, l, f) {
|
|
@@ -66019,12 +66018,12 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66019
66018
|
if (I && y < 0.65 && l._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof a.ad)
|
|
66020
66019
|
return;
|
|
66021
66020
|
const O = B.getShadowPassDepthMode(), U = B.getShadowPassColorMode();
|
|
66022
|
-
Ti(p, n, l, f, O,
|
|
66021
|
+
Ti(p, n, l, f, O, nn.disabled, U, N);
|
|
66023
66022
|
} else if (p.renderPass === "translucent") {
|
|
66024
66023
|
const B = !l.paint.get("fill-extrusion-pattern").constantOr(1), O = l.paint.get("fill-extrusion-color").constantOr(a.ao.white);
|
|
66025
66024
|
if (!S && O.a !== 0) {
|
|
66026
66025
|
const U = new Mi(p.context.gl.LEQUAL, Mi.ReadWrite, p.depthRangeFor3D);
|
|
66027
|
-
y === 1 && B ? Ti(p, n, l, f, U,
|
|
66026
|
+
y === 1 && B ? Ti(p, n, l, f, U, nn.disabled, bn.unblended, N) : (Ti(p, n, l, f, U, nn.disabled, bn.disabled, N), Ti(p, n, l, f, U, p.stencilModeFor3D(), p.colorModeForRenderPass(), N), p.resetStencilClippingMasks());
|
|
66028
66027
|
}
|
|
66029
66028
|
if (p.style.enable3dLights() && B && (!I && p.transform.projection.name !== "globe" || S)) {
|
|
66030
66029
|
const U = l.paint.get("fill-extrusion-opacity"), H = l.paint.get("fill-extrusion-ambient-occlusion-intensity"), $ = l.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), oe = l.paint.get("fill-extrusion-flood-light-intensity"), J = l.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default") === "none", ue = l.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(J ? null : l.lut).toArray01().slice(0, 3), ye = H > 0 && $ > 0, Ie = oe > 0, Ee = (Ce, Se, ze) => (1 - ze) * Ce + ze * Se, Ae = new um();
|
|
@@ -66032,11 +66031,11 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66032
66031
|
const Ne = (Ce) => {
|
|
66033
66032
|
const Se = p.depthModeForSublayer(1, Mi.ReadOnly, w.LEQUAL, !0), ze = l.paint.get(Ce ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), ct = Ee(0.1, 3, ze), Ke = p._showOverdrawInspector;
|
|
66034
66033
|
if (!Ke) {
|
|
66035
|
-
const wt = new
|
|
66034
|
+
const wt = new nn({ func: w.ALWAYS, mask: 255 }, 255, 255, w.KEEP, w.KEEP, w.REPLACE), nt = new bn([w.ONE, w.ONE, w.ONE, w.ONE], a.ao.transparent, [!1, !1, !1, !0], w.MIN);
|
|
66036
66035
|
Za(Ae, p, n, l, f, Se, wt, nt, cn.disabled, Ce, "sdf", U, H, $, oe, ue, ct, N, !1);
|
|
66037
66036
|
}
|
|
66038
66037
|
{
|
|
66039
|
-
const wt = Ke ?
|
|
66038
|
+
const wt = Ke ? nn.disabled : new nn({ func: w.EQUAL, mask: 255 }, 255, 255, w.KEEP, w.DECR, w.DECR), nt = Ke ? p.colorModeForRenderPass() : new bn([w.ONE_MINUS_DST_ALPHA, w.DST_ALPHA, w.ONE, w.ONE], a.ao.transparent, [!0, !0, !0, !0]);
|
|
66040
66039
|
Za(Ae, p, n, l, f, Se, wt, nt, cn.disabled, Ce, "color", U, H, $, oe, ue, ct, N, !1);
|
|
66041
66040
|
}
|
|
66042
66041
|
};
|
|
@@ -66045,19 +66044,19 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66045
66044
|
const Ke = p.depthModeForSublayer(1, Mi.ReadOnly, w.LEQUAL, !1), wt = l.paint.get(Se ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), nt = Ee(0.1, 3, wt);
|
|
66046
66045
|
{
|
|
66047
66046
|
const vt = new bn([w.ONE, w.ONE, w.ONE, w.ONE], a.ao.transparent, [!1, !1, !1, !0]);
|
|
66048
|
-
Za(Ae, p, n, l, f, Ke,
|
|
66047
|
+
Za(Ae, p, n, l, f, Ke, nn.disabled, vt, cn.disabled, Se, "clear", U, H, $, oe, ue, nt, N, ze);
|
|
66049
66048
|
}
|
|
66050
66049
|
{
|
|
66051
|
-
const vt = new
|
|
66050
|
+
const vt = new nn({ func: w.ALWAYS, mask: 255 }, 255, 255, w.KEEP, w.KEEP, w.REPLACE), ri = new bn([w.ONE, w.ONE, w.ONE, w.ONE], a.ao.transparent, [!1, !1, !1, !0], w.MIN);
|
|
66052
66051
|
Za(Ae, p, n, l, f, Ke, vt, ri, cn.disabled, Se, "sdf", U, H, $, oe, ue, nt, N, ze);
|
|
66053
66052
|
}
|
|
66054
66053
|
{
|
|
66055
|
-
const vt = Se ? w.ZERO : w.ONE_MINUS_DST_ALPHA, ri = new
|
|
66054
|
+
const vt = Se ? w.ZERO : w.ONE_MINUS_DST_ALPHA, ri = new nn({ func: w.EQUAL, mask: 255 }, 255, 255, w.KEEP, w.DECR, w.DECR), lt = new bn([vt, w.DST_ALPHA, w.ONE_MINUS_DST_ALPHA, w.ZERO], a.ao.transparent, [!0, !0, !0, !0]);
|
|
66056
66055
|
Za(Ae, p, n, l, f, Ke, ri, lt, cn.disabled, Se, "color", U, H, $, oe, ue, nt, N, ze);
|
|
66057
66056
|
}
|
|
66058
66057
|
{
|
|
66059
66058
|
const vt = new bn([w.ONE, w.ONE, w.ONE, Se ? w.ZERO : w.ONE], a.ao.transparent, [!1, !1, !1, !0], Se ? w.FUNC_ADD : w.MAX);
|
|
66060
|
-
Za(Ae, p, n, l, f, Ke,
|
|
66059
|
+
Za(Ae, p, n, l, f, Ke, nn.disabled, vt, cn.disabled, Se, "clear", U, H, $, oe, ue, nt, N, ze, ct);
|
|
66061
66060
|
}
|
|
66062
66061
|
};
|
|
66063
66062
|
if (ye || Ie) {
|
|
@@ -66104,9 +66103,9 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66104
66103
|
const vt = ue.context.gl, ri = ue.depthModeForSublayer(1, Mi.ReadOnly, vt.LEQUAL, !0), lt = 0.1 * (1 - (Qe = Ke)) + 3 * Qe;
|
|
66105
66104
|
var Qe;
|
|
66106
66105
|
const It = ue._showOverdrawInspector, ft = wt, Bt = new um();
|
|
66107
|
-
It || Za(Bt, ue, ye, Ie, Ee, ri, new
|
|
66106
|
+
It || Za(Bt, ue, ye, Ie, Ee, ri, new nn({ func: vt.ALWAYS, mask: 255 }, 255, 255, vt.KEEP, vt.KEEP, vt.REPLACE), new bn([vt.ONE, vt.ONE, vt.ONE, vt.ONE], a.ao.transparent, [!1, !1, !1, !0], vt.MIN), cn.disabled, Ae, "sdf", Ne, Ce, Se, 0, ct, lt, ft, !1);
|
|
66108
66107
|
{
|
|
66109
|
-
const ni = It ?
|
|
66108
|
+
const ni = It ? nn.disabled : new nn({ func: vt.EQUAL, mask: 255 }, 255, 255, vt.KEEP, vt.DECR, vt.DECR), vi = It ? ue.colorModeForRenderPass() : new bn([vt.ONE_MINUS_DST_ALPHA, vt.DST_ALPHA, vt.ONE, vt.ONE], a.ao.transparent, [!0, !0, !0, !0]);
|
|
66110
66109
|
Za(Bt, ue, ye, Ie, Ee, ri, ni, vi, cn.disabled, Ae, "color", Ne, Ce, Se, 0, ct, lt, ft, !1);
|
|
66111
66110
|
}
|
|
66112
66111
|
}(p, n, l, f, !0, I, y, v, 0, [0, 0, 0], w, B);
|
|
@@ -66155,7 +66154,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66155
66154
|
return;
|
|
66156
66155
|
const U = l.paint.get("raster-emissive-strength"), H = p.colorModeForDrapableLayerRenderPass(U), $ = p.terrain && p.terrain.renderingToTexture, oe = !p.options.moving, J = l.paint.get("raster-resampling") === "nearest" ? z.NEAREST : z.LINEAR;
|
|
66157
66156
|
if (B instanceof a.aS && !f.length && (B.onNorthPole || B.onSouthPole)) {
|
|
66158
|
-
const Ae = I ? p.stencilModeFor3D() :
|
|
66157
|
+
const Ae = I ? p.stencilModeFor3D() : nn.disabled;
|
|
66159
66158
|
return void Af(!!B.onNorthPole, null, p, n, l, U, O, cn.disabled, Ae);
|
|
66160
66159
|
}
|
|
66161
66160
|
if (!f.length)
|
|
@@ -66194,10 +66193,10 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66194
66193
|
if (p.uploadCommonUniforms(N, br, ze), B instanceof a.aS) {
|
|
66195
66194
|
const xn = B.elevatedGlobeVertexBuffer, Yn = B.elevatedGlobeIndexBuffer;
|
|
66196
66195
|
if ($ || !w)
|
|
66197
|
-
B.boundsBuffer && B.boundsSegments && br.draw(p, z.TRIANGLES, Qe,
|
|
66196
|
+
B.boundsBuffer && B.boundsSegments && br.draw(p, z.TRIANGLES, Qe, nn.disabled, H, cn.disabled, Qn, l.id, B.boundsBuffer, p.quadTriangleIndexBuffer, B.boundsSegments);
|
|
66198
66197
|
else if (xn && Yn) {
|
|
66199
66198
|
const Hn = Fi.zoom <= a.cZ ? B.elevatedGlobeSegments : B.getSegmentsForLongitude(Fi.center.lng);
|
|
66200
|
-
Hn && br.draw(p, z.TRIANGLES, Qe,
|
|
66199
|
+
Hn && br.draw(p, z.TRIANGLES, Qe, nn.disabled, H, Ne, Qn, l.id, xn, Yn, Hn);
|
|
66201
66200
|
}
|
|
66202
66201
|
} else if (S) {
|
|
66203
66202
|
Qe = new Mi(z.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D);
|
|
@@ -66214,7 +66213,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66214
66213
|
if (!(B instanceof a.aS) && S)
|
|
66215
66214
|
for (const Se of Ae) {
|
|
66216
66215
|
const ze = Se.canonical.y === (1 << Se.canonical.z) - 1;
|
|
66217
|
-
Se.canonical.y === 0 && Af(!0, Se, p, n, l, U, O, Ne, Ce ||
|
|
66216
|
+
Se.canonical.y === 0 && Af(!0, Se, p, n, l, U, O, Ne, Ce || nn.disabled), ze && Af(!1, Se, p, n, l, U, O, Ne === cn.frontCW ? cn.backCW : cn.frontCW, Ce || nn.disabled);
|
|
66218
66217
|
}
|
|
66219
66218
|
};
|
|
66220
66219
|
S ? Ee(ye, p.renderElevatedRasterBackface ? cn.backCW : cn.frontCW, p.stencilModeFor3D()) : Ee(ye, cn.disabled, void 0), p.resetStencilClippingMasks();
|
|
@@ -66277,7 +66276,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66277
66276
|
var ct;
|
|
66278
66277
|
for (const Ke of Ee) {
|
|
66279
66278
|
const [, , wt, nt] = Ke;
|
|
66280
|
-
Ce.colorAttachment.set(wt.targetColorTexture.texture), Ae.viewport.set([0, 0, Ce.width, Ce.height]), Ae.clear({ color: a.ao.transparent }), nt && (wt.backgroundColorTexture.bind(Ne.NEAREST, Ne.CLAMP_TO_EDGE), ze.draw(ye, Ne.TRIANGLES, Mi.disabled,
|
|
66279
|
+
Ce.colorAttachment.set(wt.targetColorTexture.texture), Ae.viewport.set([0, 0, Ce.width, Ce.height]), Ae.clear({ color: a.ao.transparent }), nt && (wt.backgroundColorTexture.bind(Ne.NEAREST, Ne.CLAMP_TO_EDGE), ze.draw(ye, Ne.TRIANGLES, Mi.disabled, nn.disabled, bn.alphaBlended, cn.disabled, Se, Ie.id, ye.viewportBuffer, ye.quadTriangleIndexBuffer, ye.viewportSegments));
|
|
66281
66280
|
}
|
|
66282
66281
|
}(w, S, oe), function(ye, Ie, Ee, Ae) {
|
|
66283
66282
|
const Ne = ye.context, Ce = Ne.gl, Se = Ee.tileFramebuffer, ze = ye.transform.projection.name === "globe", ct = Ee.paint.get("raster-particle-max-speed");
|
|
@@ -66299,7 +66298,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66299
66298
|
const vi = ft.canonical.x + (1 << ft.canonical.z) * (ft.wrap - wt.wrap), Zt = ft.canonical.y;
|
|
66300
66299
|
ni.particleTexture0.bind(Ce.NEAREST, Ce.CLAMP_TO_EDGE);
|
|
66301
66300
|
const Qt = rm(1, ni.particleTexture0.size[0], [vi - Qe, Zt - It], 0, nt.texture.size, 2, ct, nt.textureOffset, nt.scale, nt.offset);
|
|
66302
|
-
ri.draw(ye, Ce.POINTS, Mi.disabled,
|
|
66301
|
+
ri.draw(ye, Ce.POINTS, Mi.disabled, nn.disabled, bn.alphaBlended, cn.disabled, Qt, Ee.id, ni.particleIndexBuffer, void 0, ni.particleSegment);
|
|
66303
66302
|
}
|
|
66304
66303
|
}
|
|
66305
66304
|
}(w, I, S, oe), z.bindFramebuffer.set(S.particleFramebuffer.framebuffer), function(ye, Ie, Ee, Ae) {
|
|
@@ -66313,7 +66312,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66313
66312
|
const ri = vt.particleTexture0;
|
|
66314
66313
|
ri.bind(Ce.NEAREST, Ce.CLAMP_TO_EDGE);
|
|
66315
66314
|
const lt = _f(1, ri.size[0], 0, nt.texture.size, Se, ze, ct, nt.textureOffset, nt.scale, nt.offset);
|
|
66316
|
-
Ke.colorAttachment.set(vt.particleTexture1.texture), Ne.clear({ color: a.ao.transparent }), ye.getOrCreateProgram("rasterParticleUpdate", { defines: nt.defines }).draw(ye, Ce.TRIANGLES, Mi.disabled,
|
|
66315
|
+
Ke.colorAttachment.set(vt.particleTexture1.texture), Ne.clear({ color: a.ao.transparent }), ye.getOrCreateProgram("rasterParticleUpdate", { defines: nt.defines }).draw(ye, Ce.TRIANGLES, Mi.disabled, nn.disabled, bn.unblended, cn.disabled, lt, Ie.id, ye.viewportBuffer, ye.quadTriangleIndexBuffer, ye.viewportSegments);
|
|
66317
66316
|
}
|
|
66318
66317
|
}(w, S, oe, ue);
|
|
66319
66318
|
}(p, n, l, f), p.renderPass === "translucent" && (function(w, I, S, N, z) {
|
|
@@ -66360,7 +66359,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66360
66359
|
const $ = !U && y.a === 1 && w === 1 && p.opaquePassEnabledForLayer() ? "opaque" : "translucent";
|
|
66361
66360
|
if (p.renderPass !== $)
|
|
66362
66361
|
return;
|
|
66363
|
-
const oe =
|
|
66362
|
+
const oe = nn.disabled, J = p.depthModeForSublayer(0, $ === "opaque" ? Mi.ReadWrite : Mi.ReadOnly), ue = p.colorModeForDrapableLayerRenderPass(I), ye = U ? "backgroundPattern" : "background";
|
|
66364
66363
|
let Ie, Ee = f;
|
|
66365
66364
|
if (Ee || (Ie = p.getBackgroundTiles(), Ee = Object.values(Ie).map((Ae) => Ae.tileID)), U && (N.activeTexture.set(z.TEXTURE0), p.imageManager.bind(p.context, l.scope)), S) {
|
|
66366
66365
|
const Ae = p.getOrCreateProgram(ye, { overrideFog: !1, overrideRtt: !0 }), Ne = new Float32Array(a.bA([])), Ce = new a.aO(0, 0, 0, 0, 0), Se = U ? xf(Ne, I, w, p, 0, l.scope, H, S, { tileID: Ce, tileSize: O }) : vf(Ne, I, w, y.toPremultipliedRenderColor(v ? null : l.lut));
|
|
@@ -66394,14 +66393,14 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66394
66393
|
const H = N.context, $ = H.gl, oe = N.transform, J = N.getOrCreateProgram("skybox");
|
|
66395
66394
|
H.activeTexture.set($.TEXTURE0), $.bindTexture($.TEXTURE_CUBE_MAP, z.skyboxTexture);
|
|
66396
66395
|
const ue = ((ye, Ie, Ee, Ae, Ne) => ({ u_matrix: ye, u_sun_direction: Ie, u_cubemap: 0, u_opacity: Ae, u_temporal_offset: Ne }))(oe.skyboxMatrix, z.getCenter(N, !1), 0, O, U);
|
|
66397
|
-
N.uploadCommonUniforms(H, J), J.draw(N, $.TRIANGLES, B,
|
|
66396
|
+
N.uploadCommonUniforms(H, J), J.draw(N, $.TRIANGLES, B, nn.disabled, N.colorModeForRenderPass(), cn.backCW, ue, "skybox", z.skyboxGeometry.vertexBuffer, z.skyboxGeometry.indexBuffer, z.skyboxGeometry.segment);
|
|
66398
66397
|
}(p, l, I, y, S) : w === "gradient" && p.renderPass === "sky" && function(N, z, B, O, U) {
|
|
66399
66398
|
const H = N.context, $ = H.gl, oe = N.transform, J = N.getOrCreateProgram("skyboxGradient");
|
|
66400
66399
|
z.skyboxGeometry || (z.skyboxGeometry = new mm(H)), H.activeTexture.set($.TEXTURE0);
|
|
66401
66400
|
let ue = z.colorRampTexture;
|
|
66402
66401
|
ue || (ue = z.colorRampTexture = new a.T(H, z.colorRamp, $.RGBA8)), ue.bind($.LINEAR, $.CLAMP_TO_EDGE);
|
|
66403
66402
|
const ye = ((Ie, Ee, Ae, Ne, Ce) => ({ u_matrix: Ie, u_color_ramp: 0, u_center_direction: Ee, u_radius: a.an(Ae), u_opacity: Ne, u_temporal_offset: Ce }))(oe.skyboxMatrix, z.getCenter(N, !1), z.paint.get("sky-gradient-radius"), O, U);
|
|
66404
|
-
N.uploadCommonUniforms(H, J), J.draw(N, $.TRIANGLES, B,
|
|
66403
|
+
N.uploadCommonUniforms(H, J), J.draw(N, $.TRIANGLES, B, nn.disabled, N.colorModeForRenderPass(), cn.backCW, ye, "skyboxGradient", z.skyboxGeometry.vertexBuffer, z.skyboxGeometry.indexBuffer, z.skyboxGeometry.segment);
|
|
66405
66404
|
}(p, l, I, y, S);
|
|
66406
66405
|
}, custom: function(p, n, l, f) {
|
|
66407
66406
|
const y = p.context, v = l.implementation;
|
|
@@ -66421,11 +66420,11 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66421
66420
|
const I = v.renderToTile;
|
|
66422
66421
|
if (I) {
|
|
66423
66422
|
const S = f[0].canonical, N = { x: S.x + f[0].wrap * (v.wrapTileId ? 0 : 1 << S.z), y: S.y, z: S.z };
|
|
66424
|
-
y.setDepthMode(Mi.disabled), y.setStencilMode(
|
|
66423
|
+
y.setDepthMode(Mi.disabled), y.setStencilMode(nn.disabled), y.setColorMode(p.colorModeForRenderPass()), p.setCustomLayerDefaults(), I.call(v, y.gl, N), y.setDirty(), p.setBaseState();
|
|
66425
66424
|
}
|
|
66426
66425
|
return;
|
|
66427
66426
|
}
|
|
66428
|
-
p.setCustomLayerDefaults(), y.setColorMode(p.colorModeForRenderPass()), y.setStencilMode(
|
|
66427
|
+
p.setCustomLayerDefaults(), y.setColorMode(p.colorModeForRenderPass()), y.setStencilMode(nn.disabled);
|
|
66429
66428
|
const w = v.renderingMode === "3d" ? new Mi(p.context.gl.LEQUAL, Mi.ReadWrite, p.depthRangeFor3D) : p.depthModeForSublayer(0, Mi.ReadOnly);
|
|
66430
66429
|
if (y.setDepthMode(w), p.transform.projection.name === "globe") {
|
|
66431
66430
|
const I = p.transform.pointMerc;
|
|
@@ -66543,10 +66542,10 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66543
66542
|
}
|
|
66544
66543
|
const Ur = [...Qn], uo = 1 / a.d6(Mn.canonical), Tr = Yn.anchor ? Yn.anchor[0] : 0, In = Yn.anchor ? Yn.anchor[1] : 0;
|
|
66545
66544
|
a.br(Ur, Ur, [Tr * (Ir[0] - 1) + xn.evaluatedTranslation[0] * uo, In * (Ir[1] - 1) + xn.evaluatedTranslation[1] * uo, Hn + xn.evaluatedTranslation[2]]), a.cp(Ir, a.ev) || a.cR(Ur, Ur, Ir);
|
|
66546
|
-
const
|
|
66545
|
+
const rn = a.aB([], Ur, Yn.matrix), Jn = a.aB([], Ae.expandedFarZProjMatrix, rn), Pr = a.aB([], Ae.expandedFarZProjMatrix, Ur), Ar = a.aC([], [Tr, In, Hn, 1], Jn)[2];
|
|
66547
66546
|
Yn.hidden = !1;
|
|
66548
66547
|
let Wr = vt;
|
|
66549
|
-
It || (ni && (Wr *= xn.cameraCollisionOpacity, Wr *= ym(Ur, Ae, xn.aabb, Bt)), Wr *= Lf(vi, Ar)), Wr !== 0 ? br.push({ nodeInfo: xn, depth: Ar, opacity: Wr, wvpForNode: Jn, wvpForTile: Pr, nodeModelMatrix:
|
|
66548
|
+
It || (ni && (Wr *= xn.cameraCollisionOpacity, Wr *= ym(Ur, Ae, xn.aabb, Bt)), Wr *= Lf(vi, Ar)), Wr !== 0 ? br.push({ nodeInfo: xn, depth: Ar, opacity: Wr, wvpForNode: Jn, wvpForTile: Pr, nodeModelMatrix: rn, tileModelMatrix: Ur }) : Yn.hidden = !0;
|
|
66550
66549
|
}
|
|
66551
66550
|
It || br.sort((xn, Yn) => !ni || xn.opacity === 1 && Yn.opacity === 1 ? xn.depth < Yn.depth ? -1 : 1 : xn.opacity === 1 ? -1 : Yn.opacity === 1 ? 1 : xn.depth > Yn.depth ? -1 : 1);
|
|
66552
66551
|
for (const xn of br) {
|
|
@@ -66556,8 +66555,8 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66556
66555
|
const Ir = a.bl([], Zn);
|
|
66557
66556
|
a.ed(Ir, Ir), a.cR(Ir, Ir, pb), Zn = a.aB(Zn, Zn, Hn.matrix);
|
|
66558
66557
|
const Ur = J.renderPass === "light-beam", uo = ye.paint.get("model-color-use-theme").constantOr("default") === "none", Tr = Wn & a.ez.HasMapboxMeshFeatures, In = Tr ? 0 : Yn.evaluatedRMEA[0][2];
|
|
66559
|
-
for (let
|
|
66560
|
-
const Jn = Hn.meshes[
|
|
66558
|
+
for (let rn = 0; rn < Hn.meshes.length; ++rn) {
|
|
66559
|
+
const Jn = Hn.meshes[rn], Pr = rn === Hn.lightMeshIndex;
|
|
66561
66560
|
let Ar = xn.wvpForNode;
|
|
66562
66561
|
if (Pr) {
|
|
66563
66562
|
if (!Ur && !J.terrain && J.shadowRenderer) {
|
|
@@ -66588,7 +66587,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66588
66587
|
const Jo = Ps.pbrMetallicRoughness;
|
|
66589
66588
|
Jo.metallicFactor = 0.9, Jo.roughnessFactor = 0.5;
|
|
66590
66589
|
const Gs = wf(new Float32Array(Ar), new Float32Array(Zn), new Float32Array(Ir), new Float32Array(Hn.matrix), J, xn.opacity, Jo.baseColorFactor, Ps.emissiveFactor, Jo.metallicFactor, Jo.roughnessFactor, Ps, In, ye, [0, 0, 0], _s);
|
|
66591
|
-
!Pr && (Yn.hasTranslucentParts || xn.opacity < 1) && vs.draw(J, Ee.gl.TRIANGLES, ri,
|
|
66590
|
+
!Pr && (Yn.hasTranslucentParts || xn.opacity < 1) && vs.draw(J, Ee.gl.TRIANGLES, ri, nn.disabled, bn.disabled, cn.backCCW, Gs, ye.id, Jn.vertexBuffer, Jn.indexBuffer, Jn.segments, ye.paint, J.transform.zoom, void 0, Mo), vs.draw(J, Ee.gl.TRIANGLES, Pr ? lt : ri, nn.disabled, Pr || xn.opacity < 1 || Yn.hasTranslucentParts ? bn.alphaBlended : bn.unblended, cn.backCCW, Gs, ye.id, Jn.vertexBuffer, Jn.indexBuffer, Jn.segments, ye.paint, J.transform.zoom, void 0, Mo);
|
|
66592
66591
|
}
|
|
66593
66592
|
}
|
|
66594
66593
|
}
|
|
@@ -66612,16 +66611,16 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66612
66611
|
if (H.sort((J, ue) => ue.depth - J.depth), p.renderPass !== "shadow") {
|
|
66613
66612
|
if (y === 1)
|
|
66614
66613
|
for (const J of $)
|
|
66615
|
-
Mc(J, p, l, B[J.modelIndex],
|
|
66614
|
+
Mc(J, p, l, B[J.modelIndex], nn.disabled, p.colorModeForRenderPass());
|
|
66616
66615
|
else {
|
|
66617
66616
|
for (const J of $)
|
|
66618
|
-
Mc(J, p, l, B[J.modelIndex],
|
|
66617
|
+
Mc(J, p, l, B[J.modelIndex], nn.disabled, bn.disabled);
|
|
66619
66618
|
for (const J of $)
|
|
66620
66619
|
Mc(J, p, l, B[J.modelIndex], p.stencilModeFor3D(), p.colorModeForRenderPass());
|
|
66621
66620
|
p.resetStencilClippingMasks();
|
|
66622
66621
|
}
|
|
66623
66622
|
for (const J of H)
|
|
66624
|
-
Mc(J, p, l, B[J.modelIndex],
|
|
66623
|
+
Mc(J, p, l, B[J.modelIndex], nn.disabled, p.colorModeForRenderPass());
|
|
66625
66624
|
S();
|
|
66626
66625
|
} else {
|
|
66627
66626
|
for (const J of $)
|
|
@@ -66682,7 +66681,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66682
66681
|
} }, Tc = { fill: yc }, zl = { fill: function(p, n, l, f) {
|
|
66683
66682
|
if (!l.layout || l.layout.get("fill-elevation-reference") === "none")
|
|
66684
66683
|
return;
|
|
66685
|
-
const y = p.context.gl, v = new Mi(y.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D), w = new
|
|
66684
|
+
const y = p.context.gl, v = new Mi(y.LEQUAL, Mi.ReadOnly, p.depthRangeFor3D), w = new nn({ func: y.ALWAYS, mask: 255 }, 255, 255, y.KEEP, y.KEEP, y.REPLACE), I = p.transform.getFreeCameraOptions().position, S = p.getOrCreateProgram("elevatedStructuresDepthReconstruct");
|
|
66686
66685
|
for (const N of f) {
|
|
66687
66686
|
const z = n.getTile(N), B = z.getBucket(l);
|
|
66688
66687
|
if (!B)
|
|
@@ -66763,7 +66762,7 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66763
66762
|
I.emplaceBack(N);
|
|
66764
66763
|
this.debugIndexBuffer = n.createIndexBuffer(I), this.emptyTexture = new a.T(n, new a.q({ width: 1, height: 1 }, Uint8Array.of(0, 0, 0, 0)), n.gl.RGBA8), this.identityMat = a.bC();
|
|
66765
66764
|
const S = this.context.gl;
|
|
66766
|
-
this.stencilClearMode = new
|
|
66765
|
+
this.stencilClearMode = new nn({ func: S.ALWAYS, mask: 0 }, 0, 255, S.ZERO, S.ZERO, S.ZERO), this.loadTimeStamps.push(performance.now());
|
|
66767
66766
|
}
|
|
66768
66767
|
getMercatorTileBoundsBuffers() {
|
|
66769
66768
|
return { tileBoundsBuffer: this.mercatorBoundsBuffer, tileBoundsIndexBuffer: this.quadTriangleIndexBuffer, tileBoundsSegments: this.mercatorBoundsSegments };
|
|
@@ -66798,19 +66797,19 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66798
66797
|
this._tileClippingMaskIDs = {};
|
|
66799
66798
|
for (const I of f) {
|
|
66800
66799
|
const S = l.getTile(I), N = this._tileClippingMaskIDs[I.key] = this.nextStencilID++, { tileBoundsBuffer: z, tileBoundsIndexBuffer: B, tileBoundsSegments: O } = this.getTileBoundsBuffers(S);
|
|
66801
|
-
w.draw(this, v.TRIANGLES, Mi.disabled, new
|
|
66800
|
+
w.draw(this, v.TRIANGLES, Mi.disabled, new nn({ func: v.ALWAYS, mask: 0 }, N, 255, v.KEEP, v.KEEP, v.REPLACE), bn.disabled, cn.disabled, dc(I.projMatrix), "$clipping", z, B, O);
|
|
66802
66801
|
}
|
|
66803
66802
|
}
|
|
66804
66803
|
stencilModeFor3D() {
|
|
66805
66804
|
this.currentStencilSource = void 0, this.nextStencilID + 1 > 256 && this.clearStencil();
|
|
66806
66805
|
const n = this.nextStencilID++, l = this.context.gl;
|
|
66807
|
-
return new
|
|
66806
|
+
return new nn({ func: l.NOTEQUAL, mask: 255 }, n, 255, l.KEEP, l.KEEP, l.REPLACE);
|
|
66808
66807
|
}
|
|
66809
66808
|
stencilModeForClipping(n) {
|
|
66810
66809
|
if (this.terrain)
|
|
66811
66810
|
return this.terrain.stencilModeForRTTOverlap(n);
|
|
66812
66811
|
const l = this.context.gl;
|
|
66813
|
-
return new
|
|
66812
|
+
return new nn({ func: l.EQUAL, mask: 255 }, this._tileClippingMaskIDs[n.key], 0, l.KEEP, l.KEEP, l.REPLACE);
|
|
66814
66813
|
}
|
|
66815
66814
|
stencilConfigForOverlap(n) {
|
|
66816
66815
|
const l = this.context.gl, f = n.sort((w, I) => I.overscaledZ - w.overscaledZ), y = f[f.length - 1].overscaledZ, v = f[0].overscaledZ - y + 1;
|
|
@@ -66818,10 +66817,10 @@ ${f.vertexSource}`, this.forceManualRenderingForInstanceIDShaders && (B = B.repl
|
|
|
66818
66817
|
this.currentStencilSource = void 0, this.nextStencilID + v > 256 && this.clearStencil();
|
|
66819
66818
|
const w = {};
|
|
66820
66819
|
for (let I = 0; I < v; I++)
|
|
66821
|
-
w[I + y] = new
|
|
66820
|
+
w[I + y] = new nn({ func: l.GEQUAL, mask: 255 }, I + this.nextStencilID, 255, l.KEEP, l.KEEP, l.REPLACE);
|
|
66822
66821
|
return this.nextStencilID += v, [w, f];
|
|
66823
66822
|
}
|
|
66824
|
-
return [{ [y]:
|
|
66823
|
+
return [{ [y]: nn.disabled }, f];
|
|
66825
66824
|
}
|
|
66826
66825
|
colorModeForRenderPass() {
|
|
66827
66826
|
const n = this.context.gl;
|