@mapsindoors/map-template 1.53.1 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -1
- package/dist/{_commonjsHelpers-ba3f0406-94272105.mjs → _commonjsHelpers-ba3f0406-dbea63bc.mjs} +2 -2
- package/dist/{combo-box-item.entry-b35a920f.mjs → combo-box-item.entry-60241cd0.mjs} +2 -2
- package/dist/{icon-b8d01d6f-7b8912a2.mjs → icon-b8d01d6f-de9a011e.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +29 -29
- package/dist/mapsindoors-webcomponent.es.js +872 -870
- package/dist/mapsindoors-webcomponent.umd.js +23 -23
- package/dist/{mi-card_2.entry-9075fc44.mjs → mi-card_2.entry-1cf55cf1.mjs} +2 -2
- package/dist/{mi-chip.entry-13cddd09.mjs → mi-chip.entry-44a82782.mjs} +2 -2
- package/dist/{mi-column.entry-8a9543a6.mjs → mi-column.entry-8bacc00e.mjs} +2 -2
- package/dist/{mi-combo-box.entry-db8378f9.mjs → mi-combo-box.entry-d6e5cf19.mjs} +4 -4
- package/dist/{mi-data-table.entry-a489fe53.mjs → mi-data-table.entry-7cb4be6d.mjs} +3 -3
- package/dist/{mi-distance_2.entry-766d8460.mjs → mi-distance_2.entry-4d032efb.mjs} +3 -3
- package/dist/{mi-dropdown-item.entry-d094cb7c.mjs → mi-dropdown-item.entry-00333b18.mjs} +2 -2
- package/dist/{mi-dropdown.entry-59e6ba90.mjs → mi-dropdown.entry-d83926ed.mjs} +4 -4
- package/dist/{mi-floor-selector.entry-cce7a1cb.mjs → mi-floor-selector.entry-9faef4a6.mjs} +2 -2
- package/dist/{mi-keyboard.entry-1ec7c3f6.mjs → mi-keyboard.entry-8572b18f.mjs} +3 -3
- package/dist/{mi-list-item-category.entry-2fd6313b.mjs → mi-list-item-category.entry-05d159d7.mjs} +4 -4
- package/dist/{mi-list-item-location.entry-10e6ff58.mjs → mi-list-item-location.entry-fd2b83b8.mjs} +4 -4
- package/dist/{mi-list.entry-17192df1.mjs → mi-list.entry-fa45e848.mjs} +2 -2
- package/dist/{mi-location-booking.entry-3d7f975f.mjs → mi-location-booking.entry-742ede67.mjs} +3 -3
- package/dist/{mi-location-info.entry-26168002.mjs → mi-location-info.entry-db6c8eb7.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-0f907028.mjs → mi-map-googlemaps.entry-0b778896.mjs} +3 -3
- package/dist/{mi-map-mapbox.entry-b220c7f1.mjs → mi-map-mapbox.entry-7ff65bd1.mjs} +3 -3
- package/dist/{mi-metric-card.entry-36733638.mjs → mi-metric-card.entry-2685eacd.mjs} +3 -3
- package/dist/{mi-my-position.entry-c8c6f224.mjs → mi-my-position.entry-ca4ccc17.mjs} +3 -3
- package/dist/{mi-notification.entry-4c359e37.mjs → mi-notification.entry-9b04eac0.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-b775aee0.mjs → mi-route-instructions-heading.entry-c52e5ca6.mjs} +4 -4
- package/dist/{mi-route-instructions-maneuver-legacy.entry-61adf0f9.mjs → mi-route-instructions-maneuver-legacy.entry-fc5462ba.mjs} +3 -3
- package/dist/{mi-route-instructions-maneuver.entry-18fdab50.mjs → mi-route-instructions-maneuver.entry-b32a811e.mjs} +3 -3
- package/dist/{mi-route-instructions-step-legacy.entry-b0354dd9.mjs → mi-route-instructions-step-legacy.entry-39800279.mjs} +4 -4
- package/dist/{mi-route-instructions-step.entry-9cc5df64.mjs → mi-route-instructions-step.entry-e102d275.mjs} +4 -4
- package/dist/{mi-route-instructions.entry-ab3d793b.mjs → mi-route-instructions.entry-44faa5e3.mjs} +5 -5
- package/dist/{mi-scroll-buttons.entry-082c93fd.mjs → mi-scroll-buttons.entry-cf0e30de.mjs} +2 -2
- package/dist/{mi-search.entry-7ab0fd6c.mjs → mi-search.entry-c4dd5c25.mjs} +3 -3
- package/dist/{mi-share-sms.entry-d254831b.mjs → mi-share-sms.entry-24d348e0.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-6192335c.mjs → mi-step-switcher.entry-52775c43.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-f5afd4b6.mjs → mi-tab-panel.entry-88233a54.mjs} +2 -2
- package/dist/{mi-tab.entry-fa9e0fa8.mjs → mi-tab.entry-fc2129e2.mjs} +2 -2
- package/dist/{mi-tabs.entry-bf173403.mjs → mi-tabs.entry-b01037ce.mjs} +2 -2
- package/dist/{mi-time.entry-78471dde.mjs → mi-time.entry-f4a1be05.mjs} +2 -2
- package/dist/{mi-variables-9a6c8d4d-43e430bd.mjs → mi-variables-9a6c8d4d-278f4a2a.mjs} +2 -2
- package/dist/{reactcomponent-1db03d6d.mjs → reactcomponent-1efd670a.mjs} +576 -574
- package/dist/{route-travel-mode.enum-7f4ce9c7-cf3bdd95.mjs → route-travel-mode.enum-7f4ce9c7-45468fbb.mjs} +2 -2
- package/dist/{sort-order.enum-64ce8998-90569dc9.mjs → sort-order.enum-64ce8998-960917cd.mjs} +3 -3
- package/dist/{unit-system.enum-eaefb53e-5a6d1101.mjs → unit-system.enum-eaefb53e-eba533e0.mjs} +2 -2
- package/dist/{utils-ae714467-d0329d8e.mjs → utils-ae714467-cdf0a223.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as Sn from "react";
|
|
2
|
-
import $r, { createContext as k3, useContext as D3, useState as Tn, useRef as Ur, useEffect as
|
|
2
|
+
import $r, { createContext as k3, useContext as D3, useState as Tn, useRef as Ur, useEffect as rn, forwardRef as fb, useImperativeHandle as pb, Fragment as v4 } from "react";
|
|
3
3
|
import $h, { createPortal as x4 } from "react-dom";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
|
|
7
|
-
o && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[o] = "
|
|
7
|
+
o && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[o] = "6e83b27c-59fa-444a-ac3c-6c9b9b6c4699", i._sentryDebugIdIdentifier = "sentry-dbid-6e83b27c-59fa-444a-ac3c-6c9b9b6c4699");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
11
11
|
var b4 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12
|
-
b4.SENTRY_RELEASE = { id: "
|
|
12
|
+
b4.SENTRY_RELEASE = { id: "dba00017e9ba1d6baded10de72939c5a9a892d00" };
|
|
13
13
|
var w4 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
14
14
|
function mb(i) {
|
|
15
15
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
@@ -144,14 +144,14 @@ function T4() {
|
|
|
144
144
|
}
|
|
145
145
|
return null;
|
|
146
146
|
}
|
|
147
|
-
var Oe = Object.assign, pn = 0, Zt,
|
|
147
|
+
var Oe = Object.assign, pn = 0, Zt, St, tn, An, qe, _t, Le;
|
|
148
148
|
function ut() {
|
|
149
149
|
}
|
|
150
150
|
ut.__reactDisabledLog = !0;
|
|
151
151
|
function pt() {
|
|
152
152
|
{
|
|
153
153
|
if (pn === 0) {
|
|
154
|
-
Zt = console.log,
|
|
154
|
+
Zt = console.log, St = console.info, tn = console.warn, An = console.error, qe = console.group, _t = console.groupCollapsed, Le = console.groupEnd;
|
|
155
155
|
var ue = {
|
|
156
156
|
configurable: !0,
|
|
157
157
|
enumerable: !0,
|
|
@@ -184,10 +184,10 @@ function T4() {
|
|
|
184
184
|
value: Zt
|
|
185
185
|
}),
|
|
186
186
|
info: Oe({}, ue, {
|
|
187
|
-
value:
|
|
187
|
+
value: St
|
|
188
188
|
}),
|
|
189
189
|
warn: Oe({}, ue, {
|
|
190
|
-
value:
|
|
190
|
+
value: tn
|
|
191
191
|
}),
|
|
192
192
|
error: Oe({}, ue, {
|
|
193
193
|
value: An
|
|
@@ -207,7 +207,7 @@ function T4() {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
var Tt = xe.ReactCurrentDispatcher, jt;
|
|
210
|
-
function
|
|
210
|
+
function wt(ue, Ne, je) {
|
|
211
211
|
{
|
|
212
212
|
if (jt === void 0)
|
|
213
213
|
try {
|
|
@@ -293,10 +293,10 @@ function T4() {
|
|
|
293
293
|
} finally {
|
|
294
294
|
Pt = !1, Tt.current = Wt, $t(), Error.prepareStackTrace = ht;
|
|
295
295
|
}
|
|
296
|
-
var ir = ue ? ue.displayName || ue.name : "", On = ir ?
|
|
296
|
+
var ir = ue ? ue.displayName || ue.name : "", On = ir ? wt(ir) : "";
|
|
297
297
|
return typeof ue == "function" && cn.set(ue, On), On;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function sn(ue, Ne, je) {
|
|
300
300
|
return ke(ue, !1);
|
|
301
301
|
}
|
|
302
302
|
function Zn(ue) {
|
|
@@ -309,17 +309,17 @@ function T4() {
|
|
|
309
309
|
if (typeof ue == "function")
|
|
310
310
|
return ke(ue, Zn(ue));
|
|
311
311
|
if (typeof ue == "string")
|
|
312
|
-
return
|
|
312
|
+
return wt(ue);
|
|
313
313
|
switch (ue) {
|
|
314
314
|
case L:
|
|
315
|
-
return
|
|
315
|
+
return wt("Suspense");
|
|
316
316
|
case O:
|
|
317
|
-
return
|
|
317
|
+
return wt("SuspenseList");
|
|
318
318
|
}
|
|
319
319
|
if (typeof ue == "object")
|
|
320
320
|
switch (ue.$$typeof) {
|
|
321
321
|
case I:
|
|
322
|
-
return
|
|
322
|
+
return sn(ue.render);
|
|
323
323
|
case U:
|
|
324
324
|
return Pr(ue.type, Ne, je);
|
|
325
325
|
case V: {
|
|
@@ -7799,15 +7799,15 @@ function Wh(i, o) {
|
|
|
7799
7799
|
if (h.add(i, Zt), pn === sm)
|
|
7800
7800
|
return null;
|
|
7801
7801
|
Fe && Fe(i);
|
|
7802
|
-
let
|
|
7802
|
+
let St = !V;
|
|
7803
7803
|
if (Zt.type === to.Element) {
|
|
7804
|
-
|
|
7805
|
-
const
|
|
7806
|
-
|
|
7804
|
+
St = St && !Zt.needBlock, delete Zt.needBlock;
|
|
7805
|
+
const tn = i.shadowRoot;
|
|
7806
|
+
tn && Jp(tn) && (Zt.isShadowHost = !0);
|
|
7807
7807
|
}
|
|
7808
|
-
if ((Zt.type === to.Document || Zt.type === to.Element) &&
|
|
7808
|
+
if ((Zt.type === to.Document || Zt.type === to.Element) && St) {
|
|
7809
7809
|
fe.headWhitespace && Zt.type === to.Element && Zt.tagName === "head" && (Ot = !1);
|
|
7810
|
-
const
|
|
7810
|
+
const tn = {
|
|
7811
7811
|
doc: c,
|
|
7812
7812
|
mirror: h,
|
|
7813
7813
|
blockClass: g,
|
|
@@ -7837,20 +7837,20 @@ function Wh(i, o) {
|
|
|
7837
7837
|
keepIframeSrcFn: et
|
|
7838
7838
|
};
|
|
7839
7839
|
for (const An of Array.from(i.childNodes)) {
|
|
7840
|
-
const qe = Wh(An,
|
|
7840
|
+
const qe = Wh(An, tn);
|
|
7841
7841
|
qe && Zt.childNodes.push(qe);
|
|
7842
7842
|
}
|
|
7843
7843
|
if (UB(i) && i.shadowRoot)
|
|
7844
7844
|
for (const An of Array.from(i.shadowRoot.childNodes)) {
|
|
7845
|
-
const qe = Wh(An,
|
|
7845
|
+
const qe = Wh(An, tn);
|
|
7846
7846
|
qe && (Jp(i.shadowRoot) && (qe.isShadow = !0), Zt.childNodes.push(qe));
|
|
7847
7847
|
}
|
|
7848
7848
|
}
|
|
7849
7849
|
return i.parentNode && Kp(i.parentNode) && Jp(i.parentNode) && (Zt.isShadow = !0), Zt.type === to.Element && Zt.tagName === "iframe" && lF(i, () => {
|
|
7850
|
-
const
|
|
7851
|
-
if (
|
|
7852
|
-
const An = Wh(
|
|
7853
|
-
doc:
|
|
7850
|
+
const tn = i.contentDocument;
|
|
7851
|
+
if (tn && Ue) {
|
|
7852
|
+
const An = Wh(tn, {
|
|
7853
|
+
doc: tn,
|
|
7854
7854
|
mirror: h,
|
|
7855
7855
|
blockClass: g,
|
|
7856
7856
|
blockSelector: x,
|
|
@@ -7882,7 +7882,7 @@ function Wh(i, o) {
|
|
|
7882
7882
|
}
|
|
7883
7883
|
}, me), Zt.type === to.Element && Zt.tagName === "link" && Zt.attributes.rel === "stylesheet" && cF(i, () => {
|
|
7884
7884
|
if (At) {
|
|
7885
|
-
const
|
|
7885
|
+
const tn = Wh(i, {
|
|
7886
7886
|
doc: c,
|
|
7887
7887
|
mirror: h,
|
|
7888
7888
|
blockClass: g,
|
|
@@ -7911,7 +7911,7 @@ function Wh(i, o) {
|
|
|
7911
7911
|
stylesheetLoadTimeout: it,
|
|
7912
7912
|
keepIframeSrcFn: et
|
|
7913
7913
|
});
|
|
7914
|
-
|
|
7914
|
+
tn && At(i, tn);
|
|
7915
7915
|
}
|
|
7916
7916
|
}, it), Zt;
|
|
7917
7917
|
}
|
|
@@ -8716,16 +8716,16 @@ function LF({ inputCb: i, doc: o, mirror: c, blockClass: h, blockSelector: g, un
|
|
|
8716
8716
|
value: Ot,
|
|
8717
8717
|
maskInputFn: L
|
|
8718
8718
|
}), xe(me, U ? { text: Ot, isChecked: Oe, userTriggered: At } : { text: Ot, isChecked: Oe });
|
|
8719
|
-
const
|
|
8720
|
-
Kt === "radio" &&
|
|
8721
|
-
if (
|
|
8719
|
+
const St = me.name;
|
|
8720
|
+
Kt === "radio" && St && Oe && o.querySelectorAll(`input[type="radio"][name="${St}"]`).forEach((tn) => {
|
|
8721
|
+
if (tn !== me) {
|
|
8722
8722
|
const An = om({
|
|
8723
8723
|
isMasked: Zt,
|
|
8724
|
-
element:
|
|
8725
|
-
value: uy(
|
|
8724
|
+
element: tn,
|
|
8725
|
+
value: uy(tn, it, Kt),
|
|
8726
8726
|
maskInputFn: L
|
|
8727
8727
|
});
|
|
8728
|
-
xe(
|
|
8728
|
+
xe(tn, U ? { text: An, isChecked: !Oe, userTriggered: !1 } : { text: An, isChecked: !Oe });
|
|
8729
8729
|
}
|
|
8730
8730
|
});
|
|
8731
8731
|
}
|
|
@@ -9409,8 +9409,8 @@ function Ki(i) {
|
|
|
9409
9409
|
let py;
|
|
9410
9410
|
const Bs = qB();
|
|
9411
9411
|
function Ql(i = {}) {
|
|
9412
|
-
const { emit: o, checkoutEveryNms: c, checkoutEveryNth: h, blockClass: g = "rr-block", blockSelector: x = null, unblockSelector: T = null, ignoreClass: s = "rr-ignore", ignoreSelector: I = null, maskAllText: L = !1, maskTextClass: O = "rr-mask", unmaskTextClass: U = null, maskTextSelector: V = null, unmaskTextSelector: Z = null, inlineStylesheet: K = !0, maskAllInputs: ce, maskInputOptions: Ee, slimDOMOptions: xe, maskAttributeFn: fe, maskInputFn: Ce, maskTextFn: Se, packFn: de, sampling: Fe = {}, dataURLOptions: Ue = {}, mousemoveWait: me, recordCanvas: At = !1, recordCrossOriginIframes: it = !1, recordAfter: et = i.recordAfter === "DOMContentLoaded" ? i.recordAfter : "load", userTriggeredOnInput: Kt = !1, collectFonts: Ot = !1, inlineImages: Oe = !1, plugins: pn, keepIframeSrcFn: Zt = () => !1, ignoreCSSAttributes:
|
|
9413
|
-
CF(
|
|
9412
|
+
const { emit: o, checkoutEveryNms: c, checkoutEveryNth: h, blockClass: g = "rr-block", blockSelector: x = null, unblockSelector: T = null, ignoreClass: s = "rr-ignore", ignoreSelector: I = null, maskAllText: L = !1, maskTextClass: O = "rr-mask", unmaskTextClass: U = null, maskTextSelector: V = null, unmaskTextSelector: Z = null, inlineStylesheet: K = !0, maskAllInputs: ce, maskInputOptions: Ee, slimDOMOptions: xe, maskAttributeFn: fe, maskInputFn: Ce, maskTextFn: Se, packFn: de, sampling: Fe = {}, dataURLOptions: Ue = {}, mousemoveWait: me, recordCanvas: At = !1, recordCrossOriginIframes: it = !1, recordAfter: et = i.recordAfter === "DOMContentLoaded" ? i.recordAfter : "load", userTriggeredOnInput: Kt = !1, collectFonts: Ot = !1, inlineImages: Oe = !1, plugins: pn, keepIframeSrcFn: Zt = () => !1, ignoreCSSAttributes: St = /* @__PURE__ */ new Set([]), errorHandler: tn, onMutation: An, getCanvasManager: qe } = i;
|
|
9413
|
+
CF(tn);
|
|
9414
9414
|
const _t = it ? window.parent === window : !0;
|
|
9415
9415
|
let Le = !1;
|
|
9416
9416
|
if (!_t)
|
|
@@ -9458,7 +9458,7 @@ function Ql(i = {}) {
|
|
|
9458
9458
|
for (const mn of pn || [])
|
|
9459
9459
|
mn.eventProcessor && (xn = mn.eventProcessor(xn));
|
|
9460
9460
|
return de && !Le && (xn = de(xn)), xn;
|
|
9461
|
-
},
|
|
9461
|
+
}, wt = (xn, mn) => {
|
|
9462
9462
|
if (Mv([Zh, "access", (Dn) => Dn[0], "optionalAccess", (Dn) => Dn.isFrozen, "call", (Dn) => Dn()]) && xn.type !== kr.FullSnapshot && !(xn.type === kr.IncrementalSnapshot && xn.data.source === Dr.Mutation) && Zh.forEach((Dn) => Dn.unfreeze()), _t)
|
|
9463
9463
|
Mv([o, "optionalCall", (Dn) => Dn(jt(xn), mn)]);
|
|
9464
9464
|
else if (Le) {
|
|
@@ -9480,40 +9480,40 @@ function Ql(i = {}) {
|
|
|
9480
9480
|
(Dn || Mr) && Ii(!0);
|
|
9481
9481
|
}
|
|
9482
9482
|
}, Pt = (xn) => {
|
|
9483
|
-
|
|
9483
|
+
wt(Ki({
|
|
9484
9484
|
type: kr.IncrementalSnapshot,
|
|
9485
9485
|
data: {
|
|
9486
9486
|
source: Dr.Mutation,
|
|
9487
9487
|
...xn
|
|
9488
9488
|
}
|
|
9489
9489
|
}));
|
|
9490
|
-
}, cn = (xn) =>
|
|
9490
|
+
}, cn = (xn) => wt(Ki({
|
|
9491
9491
|
type: kr.IncrementalSnapshot,
|
|
9492
9492
|
data: {
|
|
9493
9493
|
source: Dr.Scroll,
|
|
9494
9494
|
...xn
|
|
9495
9495
|
}
|
|
9496
|
-
})), Ln = (xn) =>
|
|
9496
|
+
})), Ln = (xn) => wt(Ki({
|
|
9497
9497
|
type: kr.IncrementalSnapshot,
|
|
9498
9498
|
data: {
|
|
9499
9499
|
source: Dr.CanvasMutation,
|
|
9500
9500
|
...xn
|
|
9501
9501
|
}
|
|
9502
|
-
})), ke = (xn) =>
|
|
9502
|
+
})), ke = (xn) => wt(Ki({
|
|
9503
9503
|
type: kr.IncrementalSnapshot,
|
|
9504
9504
|
data: {
|
|
9505
9505
|
source: Dr.AdoptedStyleSheet,
|
|
9506
9506
|
...xn
|
|
9507
9507
|
}
|
|
9508
|
-
})),
|
|
9508
|
+
})), sn = new GF({
|
|
9509
9509
|
mutationCb: Pt,
|
|
9510
9510
|
adoptedStyleSheetCb: ke
|
|
9511
9511
|
}), Zn = typeof __RRWEB_EXCLUDE_IFRAME__ == "boolean" && __RRWEB_EXCLUDE_IFRAME__ ? new UF() : new jF({
|
|
9512
9512
|
mirror: Bs,
|
|
9513
9513
|
mutationCb: Pt,
|
|
9514
|
-
stylesheetManager:
|
|
9514
|
+
stylesheetManager: sn,
|
|
9515
9515
|
recordCrossOriginIframes: it,
|
|
9516
|
-
wrappedEmit:
|
|
9516
|
+
wrappedEmit: wt
|
|
9517
9517
|
});
|
|
9518
9518
|
for (const xn of pn || [])
|
|
9519
9519
|
xn.getMirror && xn.getMirror({
|
|
@@ -9524,7 +9524,7 @@ function Ql(i = {}) {
|
|
|
9524
9524
|
const Pr = new HF(), Ar = WF(qe, {
|
|
9525
9525
|
mirror: Bs,
|
|
9526
9526
|
win: window,
|
|
9527
|
-
mutationCb: (xn) =>
|
|
9527
|
+
mutationCb: (xn) => wt(Ki({
|
|
9528
9528
|
type: kr.IncrementalSnapshot,
|
|
9529
9529
|
data: {
|
|
9530
9530
|
source: Dr.CanvasMutation,
|
|
@@ -9537,7 +9537,7 @@ function Ql(i = {}) {
|
|
|
9537
9537
|
unblockSelector: T,
|
|
9538
9538
|
sampling: Fe.canvas,
|
|
9539
9539
|
dataURLOptions: Ue,
|
|
9540
|
-
errorHandler:
|
|
9540
|
+
errorHandler: tn
|
|
9541
9541
|
}), Or = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ == "boolean" && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new VF() : new $F({
|
|
9542
9542
|
mutationCb: Pt,
|
|
9543
9543
|
scrollCb: cn,
|
|
@@ -9562,21 +9562,21 @@ function Ql(i = {}) {
|
|
|
9562
9562
|
sampling: Fe,
|
|
9563
9563
|
slimDOMOptions: pt,
|
|
9564
9564
|
iframeManager: Zn,
|
|
9565
|
-
stylesheetManager:
|
|
9565
|
+
stylesheetManager: sn,
|
|
9566
9566
|
canvasManager: Ar,
|
|
9567
9567
|
keepIframeSrcFn: Zt,
|
|
9568
9568
|
processedNodeManager: Pr
|
|
9569
9569
|
},
|
|
9570
9570
|
mirror: Bs
|
|
9571
9571
|
}), Ii = (xn = !1) => {
|
|
9572
|
-
|
|
9572
|
+
wt(Ki({
|
|
9573
9573
|
type: kr.Meta,
|
|
9574
9574
|
data: {
|
|
9575
9575
|
href: window.location.href,
|
|
9576
9576
|
width: _M(),
|
|
9577
9577
|
height: gM()
|
|
9578
9578
|
}
|
|
9579
|
-
}), xn),
|
|
9579
|
+
}), xn), sn.reset(), Or.init(), Zh.forEach((Dn) => Dn.lock());
|
|
9580
9580
|
const mn = mF(document, {
|
|
9581
9581
|
mirror: Bs,
|
|
9582
9582
|
blockClass: g,
|
|
@@ -9597,39 +9597,39 @@ function Ql(i = {}) {
|
|
|
9597
9597
|
recordCanvas: At,
|
|
9598
9598
|
inlineImages: Oe,
|
|
9599
9599
|
onSerialize: (Dn) => {
|
|
9600
|
-
vM(Dn, Bs) && Zn.addIframe(Dn), xM(Dn, Bs) &&
|
|
9600
|
+
vM(Dn, Bs) && Zn.addIframe(Dn), xM(Dn, Bs) && sn.trackLinkElement(Dn), Dx(Dn) && Or.addShadowRoot(Dn.shadowRoot, document);
|
|
9601
9601
|
},
|
|
9602
9602
|
onIframeLoad: (Dn, Mr) => {
|
|
9603
9603
|
Zn.attachIframe(Dn, Mr), Or.observeAttachShadow(Dn);
|
|
9604
9604
|
},
|
|
9605
9605
|
onStylesheetLoad: (Dn, Mr) => {
|
|
9606
|
-
|
|
9606
|
+
sn.attachLinkElement(Dn, Mr);
|
|
9607
9607
|
},
|
|
9608
9608
|
keepIframeSrcFn: Zt
|
|
9609
9609
|
});
|
|
9610
9610
|
if (!mn)
|
|
9611
9611
|
return console.warn("Failed to snapshot the document");
|
|
9612
|
-
|
|
9612
|
+
wt(Ki({
|
|
9613
9613
|
type: kr.FullSnapshot,
|
|
9614
9614
|
data: {
|
|
9615
9615
|
node: mn,
|
|
9616
9616
|
initialOffset: mM(window)
|
|
9617
9617
|
}
|
|
9618
|
-
})), Zh.forEach((Dn) => Dn.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 &&
|
|
9618
|
+
})), Zh.forEach((Dn) => Dn.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && sn.adoptStyleSheets(document.adoptedStyleSheets, Bs.getId(document));
|
|
9619
9619
|
};
|
|
9620
9620
|
py = Ii;
|
|
9621
9621
|
try {
|
|
9622
9622
|
const xn = [], mn = (Mr) => Wr(FF)({
|
|
9623
9623
|
onMutation: An,
|
|
9624
9624
|
mutationCb: Pt,
|
|
9625
|
-
mousemoveCb: (rr, mi) =>
|
|
9625
|
+
mousemoveCb: (rr, mi) => wt(Ki({
|
|
9626
9626
|
type: kr.IncrementalSnapshot,
|
|
9627
9627
|
data: {
|
|
9628
9628
|
source: mi,
|
|
9629
9629
|
positions: rr
|
|
9630
9630
|
}
|
|
9631
9631
|
})),
|
|
9632
|
-
mouseInteractionCb: (rr) =>
|
|
9632
|
+
mouseInteractionCb: (rr) => wt(Ki({
|
|
9633
9633
|
type: kr.IncrementalSnapshot,
|
|
9634
9634
|
data: {
|
|
9635
9635
|
source: Dr.MouseInteraction,
|
|
@@ -9637,35 +9637,35 @@ function Ql(i = {}) {
|
|
|
9637
9637
|
}
|
|
9638
9638
|
})),
|
|
9639
9639
|
scrollCb: cn,
|
|
9640
|
-
viewportResizeCb: (rr) =>
|
|
9640
|
+
viewportResizeCb: (rr) => wt(Ki({
|
|
9641
9641
|
type: kr.IncrementalSnapshot,
|
|
9642
9642
|
data: {
|
|
9643
9643
|
source: Dr.ViewportResize,
|
|
9644
9644
|
...rr
|
|
9645
9645
|
}
|
|
9646
9646
|
})),
|
|
9647
|
-
inputCb: (rr) =>
|
|
9647
|
+
inputCb: (rr) => wt(Ki({
|
|
9648
9648
|
type: kr.IncrementalSnapshot,
|
|
9649
9649
|
data: {
|
|
9650
9650
|
source: Dr.Input,
|
|
9651
9651
|
...rr
|
|
9652
9652
|
}
|
|
9653
9653
|
})),
|
|
9654
|
-
mediaInteractionCb: (rr) =>
|
|
9654
|
+
mediaInteractionCb: (rr) => wt(Ki({
|
|
9655
9655
|
type: kr.IncrementalSnapshot,
|
|
9656
9656
|
data: {
|
|
9657
9657
|
source: Dr.MediaInteraction,
|
|
9658
9658
|
...rr
|
|
9659
9659
|
}
|
|
9660
9660
|
})),
|
|
9661
|
-
styleSheetRuleCb: (rr) =>
|
|
9661
|
+
styleSheetRuleCb: (rr) => wt(Ki({
|
|
9662
9662
|
type: kr.IncrementalSnapshot,
|
|
9663
9663
|
data: {
|
|
9664
9664
|
source: Dr.StyleSheetRule,
|
|
9665
9665
|
...rr
|
|
9666
9666
|
}
|
|
9667
9667
|
})),
|
|
9668
|
-
styleDeclarationCb: (rr) =>
|
|
9668
|
+
styleDeclarationCb: (rr) => wt(Ki({
|
|
9669
9669
|
type: kr.IncrementalSnapshot,
|
|
9670
9670
|
data: {
|
|
9671
9671
|
source: Dr.StyleDeclaration,
|
|
@@ -9673,7 +9673,7 @@ function Ql(i = {}) {
|
|
|
9673
9673
|
}
|
|
9674
9674
|
})),
|
|
9675
9675
|
canvasMutationCb: Ln,
|
|
9676
|
-
fontCb: (rr) =>
|
|
9676
|
+
fontCb: (rr) => wt(Ki({
|
|
9677
9677
|
type: kr.IncrementalSnapshot,
|
|
9678
9678
|
data: {
|
|
9679
9679
|
source: Dr.Font,
|
|
@@ -9681,7 +9681,7 @@ function Ql(i = {}) {
|
|
|
9681
9681
|
}
|
|
9682
9682
|
})),
|
|
9683
9683
|
selectionCb: (rr) => {
|
|
9684
|
-
|
|
9684
|
+
wt(Ki({
|
|
9685
9685
|
type: kr.IncrementalSnapshot,
|
|
9686
9686
|
data: {
|
|
9687
9687
|
source: Dr.Selection,
|
|
@@ -9690,7 +9690,7 @@ function Ql(i = {}) {
|
|
|
9690
9690
|
}));
|
|
9691
9691
|
},
|
|
9692
9692
|
customElementCb: (rr) => {
|
|
9693
|
-
|
|
9693
|
+
wt(Ki({
|
|
9694
9694
|
type: kr.IncrementalSnapshot,
|
|
9695
9695
|
data: {
|
|
9696
9696
|
source: Dr.CustomElement,
|
|
@@ -9724,11 +9724,11 @@ function Ql(i = {}) {
|
|
|
9724
9724
|
dataURLOptions: Ue,
|
|
9725
9725
|
mirror: Bs,
|
|
9726
9726
|
iframeManager: Zn,
|
|
9727
|
-
stylesheetManager:
|
|
9727
|
+
stylesheetManager: sn,
|
|
9728
9728
|
shadowDomManager: Or,
|
|
9729
9729
|
processedNodeManager: Pr,
|
|
9730
9730
|
canvasManager: Ar,
|
|
9731
|
-
ignoreCSSAttributes:
|
|
9731
|
+
ignoreCSSAttributes: St,
|
|
9732
9732
|
plugins: Mv([
|
|
9733
9733
|
pn,
|
|
9734
9734
|
"optionalAccess",
|
|
@@ -9741,7 +9741,7 @@ function Ql(i = {}) {
|
|
|
9741
9741
|
(rr) => rr((mi) => ({
|
|
9742
9742
|
observer: mi.observer,
|
|
9743
9743
|
options: mi.options,
|
|
9744
|
-
callback: (nt) =>
|
|
9744
|
+
callback: (nt) => wt(Ki({
|
|
9745
9745
|
type: kr.Plugin,
|
|
9746
9746
|
data: {
|
|
9747
9747
|
plugin: mi.name,
|
|
@@ -9762,12 +9762,12 @@ function Ql(i = {}) {
|
|
|
9762
9762
|
Ii(), xn.push(mn(document));
|
|
9763
9763
|
};
|
|
9764
9764
|
return document.readyState === "interactive" || document.readyState === "complete" ? Dn() : (xn.push(Do("DOMContentLoaded", () => {
|
|
9765
|
-
|
|
9765
|
+
wt(Ki({
|
|
9766
9766
|
type: kr.DomContentLoaded,
|
|
9767
9767
|
data: {}
|
|
9768
9768
|
})), et === "DOMContentLoaded" && Dn();
|
|
9769
9769
|
})), xn.push(Do("load", () => {
|
|
9770
|
-
|
|
9770
|
+
wt(Ki({
|
|
9771
9771
|
type: kr.Load,
|
|
9772
9772
|
data: {}
|
|
9773
9773
|
})), et === "load" && Dn();
|
|
@@ -12349,9 +12349,9 @@ class Xy {
|
|
|
12349
12349
|
// eslint-disable-next-line deprecation/deprecation
|
|
12350
12350
|
blockClass: Zt,
|
|
12351
12351
|
// eslint-disable-next-line deprecation/deprecation
|
|
12352
|
-
blockSelector:
|
|
12352
|
+
blockSelector: St,
|
|
12353
12353
|
// eslint-disable-next-line deprecation/deprecation
|
|
12354
|
-
maskInputOptions:
|
|
12354
|
+
maskInputOptions: tn,
|
|
12355
12355
|
// eslint-disable-next-line deprecation/deprecation
|
|
12356
12356
|
maskTextClass: An,
|
|
12357
12357
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -12367,7 +12367,7 @@ class Xy {
|
|
|
12367
12367
|
unblock: et,
|
|
12368
12368
|
ignore: Kt,
|
|
12369
12369
|
blockClass: Zt,
|
|
12370
|
-
blockSelector:
|
|
12370
|
+
blockSelector: St,
|
|
12371
12371
|
maskTextClass: An,
|
|
12372
12372
|
maskTextSelector: qe,
|
|
12373
12373
|
ignoreClass: _t
|
|
@@ -12375,7 +12375,7 @@ class Xy {
|
|
|
12375
12375
|
if (this._recordingOptions = {
|
|
12376
12376
|
maskAllInputs: V,
|
|
12377
12377
|
maskAllText: U,
|
|
12378
|
-
maskInputOptions: { ...
|
|
12378
|
+
maskInputOptions: { ...tn || {}, password: !0 },
|
|
12379
12379
|
maskTextFn: Ot,
|
|
12380
12380
|
maskInputFn: Ot,
|
|
12381
12381
|
maskAttributeFn: (ut, pt, $t) => W7({
|
|
@@ -12637,8 +12637,8 @@ function Q7() {
|
|
|
12637
12637
|
}
|
|
12638
12638
|
function Se(ke) {
|
|
12639
12639
|
if (typeof ke == "object" && ke !== null) {
|
|
12640
|
-
var
|
|
12641
|
-
switch (
|
|
12640
|
+
var sn = ke.$$typeof;
|
|
12641
|
+
switch (sn) {
|
|
12642
12642
|
case o:
|
|
12643
12643
|
var Zn = ke.type;
|
|
12644
12644
|
switch (Zn) {
|
|
@@ -12659,17 +12659,17 @@ function Q7() {
|
|
|
12659
12659
|
case T:
|
|
12660
12660
|
return Pr;
|
|
12661
12661
|
default:
|
|
12662
|
-
return
|
|
12662
|
+
return sn;
|
|
12663
12663
|
}
|
|
12664
12664
|
}
|
|
12665
12665
|
case c:
|
|
12666
|
-
return
|
|
12666
|
+
return sn;
|
|
12667
12667
|
}
|
|
12668
12668
|
}
|
|
12669
12669
|
}
|
|
12670
|
-
var de = I, Fe = L, Ue = s, me = T, At = o, it = O, et = h, Kt = K, Ot = Z, Oe = c, pn = x, Zt = g,
|
|
12670
|
+
var de = I, Fe = L, Ue = s, me = T, At = o, it = O, et = h, Kt = K, Ot = Z, Oe = c, pn = x, Zt = g, St = U, tn = !1;
|
|
12671
12671
|
function An(ke) {
|
|
12672
|
-
return
|
|
12672
|
+
return tn || (tn = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), qe(ke) || Se(ke) === I;
|
|
12673
12673
|
}
|
|
12674
12674
|
function qe(ke) {
|
|
12675
12675
|
return Se(ke) === L;
|
|
@@ -12695,7 +12695,7 @@ function Q7() {
|
|
|
12695
12695
|
function jt(ke) {
|
|
12696
12696
|
return Se(ke) === Z;
|
|
12697
12697
|
}
|
|
12698
|
-
function
|
|
12698
|
+
function wt(ke) {
|
|
12699
12699
|
return Se(ke) === c;
|
|
12700
12700
|
}
|
|
12701
12701
|
function Pt(ke) {
|
|
@@ -12707,7 +12707,7 @@ function Q7() {
|
|
|
12707
12707
|
function Ln(ke) {
|
|
12708
12708
|
return Se(ke) === U;
|
|
12709
12709
|
}
|
|
12710
|
-
si.AsyncMode = de, si.ConcurrentMode = Fe, si.ContextConsumer = Ue, si.ContextProvider = me, si.Element = At, si.ForwardRef = it, si.Fragment = et, si.Lazy = Kt, si.Memo = Ot, si.Portal = Oe, si.Profiler = pn, si.StrictMode = Zt, si.Suspense =
|
|
12710
|
+
si.AsyncMode = de, si.ConcurrentMode = Fe, si.ContextConsumer = Ue, si.ContextProvider = me, si.Element = At, si.ForwardRef = it, si.Fragment = et, si.Lazy = Kt, si.Memo = Ot, si.Portal = Oe, si.Profiler = pn, si.StrictMode = Zt, si.Suspense = St, si.isAsyncMode = An, si.isConcurrentMode = qe, si.isContextConsumer = _t, si.isContextProvider = Le, si.isElement = ut, si.isForwardRef = pt, si.isFragment = $t, si.isLazy = Tt, si.isMemo = jt, si.isPortal = wt, si.isProfiler = Pt, si.isStrictMode = cn, si.isSuspense = Ln, si.isValidElementType = Ce, si.typeOf = Se;
|
|
12711
12711
|
}()), si;
|
|
12712
12712
|
}
|
|
12713
12713
|
process.env.NODE_ENV === "production" ? Ux.exports = J7() : Ux.exports = Q7();
|
|
@@ -13442,7 +13442,7 @@ var lU = aU(function(i) {
|
|
|
13442
13442
|
hash: tt,
|
|
13443
13443
|
key: Nt,
|
|
13444
13444
|
value: zt,
|
|
13445
|
-
_modify:
|
|
13445
|
+
_modify: tn
|
|
13446
13446
|
};
|
|
13447
13447
|
}, At = function(ye, tt, Nt) {
|
|
13448
13448
|
return {
|
|
@@ -13496,18 +13496,18 @@ var lU = aU(function(i) {
|
|
|
13496
13496
|
}
|
|
13497
13497
|
var jr = qt();
|
|
13498
13498
|
return jr === I ? Ft : (++Qt.value, ce(ye, yn, me(tt, zt, Yt, jr), Ft));
|
|
13499
|
-
},
|
|
13499
|
+
}, St = function(ye, tt) {
|
|
13500
13500
|
return ye === tt.edit;
|
|
13501
|
-
},
|
|
13501
|
+
}, tn = function(ye, tt, Nt, zt, Ft, qt, Yt) {
|
|
13502
13502
|
if (tt(qt, this.key)) {
|
|
13503
13503
|
var Qt = zt(this.value);
|
|
13504
|
-
return Qt === this.value ? this : Qt === I ? (--Yt.value, Fe) :
|
|
13504
|
+
return Qt === this.value ? this : Qt === I ? (--Yt.value, Fe) : St(ye, this) ? (this.value = Qt, this) : me(ye, Ft, qt, Qt);
|
|
13505
13505
|
}
|
|
13506
13506
|
var yn = zt();
|
|
13507
13507
|
return yn === I ? this : (++Yt.value, pn(ye, Nt, this.hash, this, Ft, me(ye, Ft, qt, yn)));
|
|
13508
13508
|
}, An = function(ye, tt, Nt, zt, Ft, qt, Yt) {
|
|
13509
13509
|
if (Ft === this.hash) {
|
|
13510
|
-
var Qt =
|
|
13510
|
+
var Qt = St(ye, this), yn = Zt(Qt, ye, tt, this.hash, this.children, zt, qt, Yt);
|
|
13511
13511
|
return yn === this.children ? this : yn.length > 1 ? At(ye, this.hash, yn) : yn[0];
|
|
13512
13512
|
}
|
|
13513
13513
|
var sr = zt();
|
|
@@ -13516,7 +13516,7 @@ var lU = aU(function(i) {
|
|
|
13516
13516
|
var Qt = this.mask, yn = this.children, sr = V(Nt, Ft), nr = Z(sr), Er = K(Qt, nr), Nr = Qt & nr, jr = Nr ? yn[Er] : Fe, Vr = jr._modify(ye, tt, Nt + h, zt, Ft, qt, Yt);
|
|
13517
13517
|
if (jr === Vr)
|
|
13518
13518
|
return this;
|
|
13519
|
-
var Lr =
|
|
13519
|
+
var Lr = St(ye, this), Ye = Qt, Ke = void 0;
|
|
13520
13520
|
if (Nr && Ue(Vr)) {
|
|
13521
13521
|
if (Ye &= ~nr, !Ye)
|
|
13522
13522
|
return Fe;
|
|
@@ -13534,7 +13534,7 @@ var lU = aU(function(i) {
|
|
|
13534
13534
|
var Qt = this.size, yn = this.children, sr = V(Nt, Ft), nr = yn[sr], Er = (nr || Fe)._modify(ye, tt, Nt + h, zt, Ft, qt, Yt);
|
|
13535
13535
|
if (nr === Er)
|
|
13536
13536
|
return this;
|
|
13537
|
-
var Nr =
|
|
13537
|
+
var Nr = St(ye, this), jr = void 0;
|
|
13538
13538
|
if (Ue(nr) && !Ue(Er))
|
|
13539
13539
|
++Qt, jr = ce(Nr, sr, Er, yn);
|
|
13540
13540
|
else if (!Ue(nr) && Ue(Er)) {
|
|
@@ -13619,12 +13619,12 @@ var lU = aU(function(i) {
|
|
|
13619
13619
|
Le.prototype.has = function(Te) {
|
|
13620
13620
|
return jt(Te, this);
|
|
13621
13621
|
};
|
|
13622
|
-
var
|
|
13622
|
+
var wt = function(ye, tt) {
|
|
13623
13623
|
return ye === tt;
|
|
13624
13624
|
};
|
|
13625
13625
|
c.make = function(Te) {
|
|
13626
13626
|
return new Le(0, 0, {
|
|
13627
|
-
keyEq: Te && Te.keyEq ||
|
|
13627
|
+
keyEq: Te && Te.keyEq || wt,
|
|
13628
13628
|
hash: Te && Te.hash || O
|
|
13629
13629
|
}, Fe, 0);
|
|
13630
13630
|
}, c.empty = c.make();
|
|
@@ -13655,11 +13655,11 @@ var lU = aU(function(i) {
|
|
|
13655
13655
|
Le.prototype.setHash = function(Te, ye, tt) {
|
|
13656
13656
|
return ke(Te, ye, tt, this);
|
|
13657
13657
|
};
|
|
13658
|
-
var
|
|
13658
|
+
var sn = c.set = function(Te, ye, tt) {
|
|
13659
13659
|
return ke(tt._config.hash(Te), Te, ye, tt);
|
|
13660
13660
|
};
|
|
13661
13661
|
Le.prototype.set = function(Te, ye) {
|
|
13662
|
-
return
|
|
13662
|
+
return sn(Te, ye, this);
|
|
13663
13663
|
};
|
|
13664
13664
|
var Zn = L(I), Pr = c.removeHash = function(Te, ye, tt) {
|
|
13665
13665
|
return cn(Zn, Te, ye, tt);
|
|
@@ -16296,25 +16296,25 @@ function uP(i) {
|
|
|
16296
16296
|
pt == null && V_.set(ut, pt = /* @__PURE__ */ new Set()), pt.add(Le);
|
|
16297
16297
|
}
|
|
16298
16298
|
function Ce(Le, ut, pt, $t, Tt, jt) {
|
|
16299
|
-
return ut.then((
|
|
16299
|
+
return ut.then((wt) => {
|
|
16300
16300
|
if (!U())
|
|
16301
16301
|
throw Ot(Le), Fp;
|
|
16302
|
-
const Pt = Hv(
|
|
16303
|
-
return K(Le, pt, Tt, Pt, $t),
|
|
16304
|
-
}).catch((
|
|
16302
|
+
const Pt = Hv(wt);
|
|
16303
|
+
return K(Le, pt, Tt, Pt, $t), wt;
|
|
16304
|
+
}).catch((wt) => {
|
|
16305
16305
|
if (!U())
|
|
16306
16306
|
throw Ot(Le), Fp;
|
|
16307
|
-
if (_i(
|
|
16308
|
-
return Se(Le,
|
|
16309
|
-
const Pt = U_(
|
|
16310
|
-
throw K(Le, pt, Tt, Pt, $t),
|
|
16307
|
+
if (_i(wt))
|
|
16308
|
+
return Se(Le, wt, pt, $t, Tt, jt);
|
|
16309
|
+
const Pt = U_(wt);
|
|
16310
|
+
throw K(Le, pt, Tt, Pt, $t), wt;
|
|
16311
16311
|
});
|
|
16312
16312
|
}
|
|
16313
16313
|
function Se(Le, ut, pt, $t, Tt, jt) {
|
|
16314
|
-
return ut.then((
|
|
16314
|
+
return ut.then((wt) => {
|
|
16315
16315
|
if (!U())
|
|
16316
16316
|
throw Ot(Le), Fp;
|
|
16317
|
-
jt.loadingDepKey != null && jt.loadingDepPromise === ut ? pt.atomValues.set(jt.loadingDepKey, Hv(
|
|
16317
|
+
jt.loadingDepKey != null && jt.loadingDepPromise === ut ? pt.atomValues.set(jt.loadingDepKey, Hv(wt)) : Le.getState().knownSelectors.forEach((ke) => {
|
|
16318
16318
|
pt.atomValues.delete(ke);
|
|
16319
16319
|
});
|
|
16320
16320
|
const Pt = Ue(Le, pt);
|
|
@@ -16332,40 +16332,40 @@ function uP(i) {
|
|
|
16332
16332
|
if (cn.state !== "loading" && K(Le, pt, Tt, cn, Ln), cn.state === "hasError")
|
|
16333
16333
|
throw cn.contents;
|
|
16334
16334
|
return cn.contents;
|
|
16335
|
-
}).catch((
|
|
16336
|
-
if (
|
|
16335
|
+
}).catch((wt) => {
|
|
16336
|
+
if (wt instanceof cP)
|
|
16337
16337
|
throw Fp;
|
|
16338
16338
|
if (!U())
|
|
16339
16339
|
throw Ot(Le), Fp;
|
|
16340
|
-
const Pt = U_(
|
|
16341
|
-
throw K(Le, pt, Tt, Pt, $t),
|
|
16340
|
+
const Pt = U_(wt);
|
|
16341
|
+
throw K(Le, pt, Tt, Pt, $t), wt;
|
|
16342
16342
|
});
|
|
16343
16343
|
}
|
|
16344
16344
|
function de(Le, ut, pt, $t) {
|
|
16345
|
-
var Tt, jt,
|
|
16346
|
-
if (Oe(Le, $t) || ut.version === ((Tt = Le.getState()) === null || Tt === void 0 || (jt = Tt.currentTree) === null || jt === void 0 ? void 0 : jt.version) || ut.version === ((
|
|
16345
|
+
var Tt, jt, wt, Pt;
|
|
16346
|
+
if (Oe(Le, $t) || ut.version === ((Tt = Le.getState()) === null || Tt === void 0 || (jt = Tt.currentTree) === null || jt === void 0 ? void 0 : jt.version) || ut.version === ((wt = Le.getState()) === null || wt === void 0 || (Pt = wt.nextTree) === null || Pt === void 0 ? void 0 : Pt.version)) {
|
|
16347
16347
|
var cn, Ln, ke;
|
|
16348
16348
|
KG(c, pt, Le, (cn = (Ln = Le.getState()) === null || Ln === void 0 || (ke = Ln.nextTree) === null || ke === void 0 ? void 0 : ke.version) !== null && cn !== void 0 ? cn : Le.getState().currentTree.version);
|
|
16349
16349
|
}
|
|
16350
|
-
for (const
|
|
16351
|
-
T.add(
|
|
16350
|
+
for (const sn of pt)
|
|
16351
|
+
T.add(sn);
|
|
16352
16352
|
}
|
|
16353
16353
|
function Fe(Le, ut, pt) {
|
|
16354
16354
|
const $t = iH(c);
|
|
16355
16355
|
let Tt = !0, jt = !0;
|
|
16356
|
-
const
|
|
16356
|
+
const wt = () => {
|
|
16357
16357
|
$t(), jt = !1;
|
|
16358
16358
|
};
|
|
16359
16359
|
let Pt, cn = !1, Ln;
|
|
16360
16360
|
const ke = {
|
|
16361
16361
|
loadingDepKey: null,
|
|
16362
16362
|
loadingDepPromise: null
|
|
16363
|
-
},
|
|
16363
|
+
}, sn = /* @__PURE__ */ new Map();
|
|
16364
16364
|
function Zn({
|
|
16365
16365
|
key: Ar
|
|
16366
16366
|
}) {
|
|
16367
16367
|
const Or = j_(Le, ut, Ar);
|
|
16368
|
-
switch (
|
|
16368
|
+
switch (sn.set(Ar, Or), Tt || (de(Le, ut, new Set(sn.keys()), pt), Ee(Le, pt)), Or.state) {
|
|
16369
16369
|
case "hasValue":
|
|
16370
16370
|
return Or.contents;
|
|
16371
16371
|
case "hasError":
|
|
@@ -16392,11 +16392,11 @@ function uP(i) {
|
|
|
16392
16392
|
Pt = h({
|
|
16393
16393
|
get: Zn,
|
|
16394
16394
|
getCallback: Pr
|
|
16395
|
-
}), Pt = tH(Pt) ? Zn(Pt) : Pt, WG(Pt) && (Pt.state === "hasError" && (cn = !0), Pt = Pt.contents), _i(Pt) ? Pt = Ce(Le, Pt, ut,
|
|
16395
|
+
}), Pt = tH(Pt) ? Zn(Pt) : Pt, WG(Pt) && (Pt.state === "hasError" && (cn = !0), Pt = Pt.contents), _i(Pt) ? Pt = Ce(Le, Pt, ut, sn, pt, ke).finally(wt) : wt(), Pt = Pt instanceof lP ? Pt.value : Pt;
|
|
16396
16396
|
} catch (Ar) {
|
|
16397
|
-
Pt = Ar, _i(Pt) ? Pt = Se(Le, Pt, ut,
|
|
16397
|
+
Pt = Ar, _i(Pt) ? Pt = Se(Le, Pt, ut, sn, pt, ke).finally(wt) : (cn = !0, wt());
|
|
16398
16398
|
}
|
|
16399
|
-
return cn ? Ln = U_(Pt) : _i(Pt) ? Ln = ZG(Pt) : Ln = Hv(Pt), Tt = !1, Kt(Le, pt,
|
|
16399
|
+
return cn ? Ln = U_(Pt) : _i(Pt) ? Ln = ZG(Pt) : Ln = Hv(Pt), Tt = !1, Kt(Le, pt, sn), de(Le, ut, new Set(sn.keys()), pt), [Ln, sn];
|
|
16400
16400
|
}
|
|
16401
16401
|
function Ue(Le, ut) {
|
|
16402
16402
|
let pt = ut.atomValues.get(c);
|
|
@@ -16427,14 +16427,14 @@ function uP(i) {
|
|
|
16427
16427
|
var Tt;
|
|
16428
16428
|
return ((Tt = $t.loadingLoadable) === null || Tt === void 0 ? void 0 : Tt.state) === "loading" && fe(Le, $t.executionID), $t.loadingLoadable;
|
|
16429
16429
|
}
|
|
16430
|
-
const jt = oH(), [
|
|
16431
|
-
return
|
|
16430
|
+
const jt = oH(), [wt, Pt] = Fe(Le, ut, jt);
|
|
16431
|
+
return wt.state === "loading" ? (et(Le, jt, wt, Pt, ut), fe(Le, jt)) : (Ot(Le), Zt(ut, wt, Pt)), wt;
|
|
16432
16432
|
}
|
|
16433
16433
|
function At(Le, ut) {
|
|
16434
16434
|
const pt = PR([L.has(Le) ? [Pi(L.get(Le))] : [], n0(rw(L, ([Tt]) => Tt !== Le), ([, Tt]) => Tt)]);
|
|
16435
16435
|
function $t(Tt) {
|
|
16436
|
-
for (const [jt,
|
|
16437
|
-
if (!j_(Le, ut, jt).is(
|
|
16436
|
+
for (const [jt, wt] of Tt)
|
|
16437
|
+
if (!j_(Le, ut, jt).is(wt))
|
|
16438
16438
|
return !0;
|
|
16439
16439
|
return !1;
|
|
16440
16440
|
}
|
|
@@ -16484,7 +16484,7 @@ function uP(i) {
|
|
|
16484
16484
|
throw xr(`Problem with setting cache for selector "${c}": ${$t.message}`);
|
|
16485
16485
|
}
|
|
16486
16486
|
}
|
|
16487
|
-
function
|
|
16487
|
+
function St(Le) {
|
|
16488
16488
|
if (Up.includes(c)) {
|
|
16489
16489
|
const ut = `Recoil selector has circular dependencies: ${Up.slice(Up.indexOf(c)).join(" → ")}`;
|
|
16490
16490
|
return U_(xr(ut));
|
|
@@ -16496,7 +16496,7 @@ function uP(i) {
|
|
|
16496
16496
|
Up.pop();
|
|
16497
16497
|
}
|
|
16498
16498
|
}
|
|
16499
|
-
function
|
|
16499
|
+
function tn(Le, ut) {
|
|
16500
16500
|
const pt = ut.atomValues.get(c);
|
|
16501
16501
|
return pt ?? s.get(($t) => {
|
|
16502
16502
|
var Tt;
|
|
@@ -16504,7 +16504,7 @@ function uP(i) {
|
|
|
16504
16504
|
});
|
|
16505
16505
|
}
|
|
16506
16506
|
function An(Le, ut) {
|
|
16507
|
-
return
|
|
16507
|
+
return St(() => me(Le, ut));
|
|
16508
16508
|
}
|
|
16509
16509
|
function qe(Le) {
|
|
16510
16510
|
Le.atomValues.delete(c);
|
|
@@ -16521,35 +16521,35 @@ function uP(i) {
|
|
|
16521
16521
|
return x != null ? o = DI({
|
|
16522
16522
|
key: c,
|
|
16523
16523
|
nodeType: "selector",
|
|
16524
|
-
peek:
|
|
16524
|
+
peek: tn,
|
|
16525
16525
|
get: An,
|
|
16526
16526
|
set: (ut, pt, $t) => {
|
|
16527
16527
|
let Tt = !1;
|
|
16528
16528
|
const jt = /* @__PURE__ */ new Map();
|
|
16529
|
-
function
|
|
16529
|
+
function wt({
|
|
16530
16530
|
key: ke
|
|
16531
16531
|
}) {
|
|
16532
16532
|
if (Tt)
|
|
16533
16533
|
throw xr("Recoil: Async selector sets are not currently supported.");
|
|
16534
|
-
const
|
|
16535
|
-
if (
|
|
16536
|
-
return
|
|
16537
|
-
if (
|
|
16534
|
+
const sn = j_(ut, pt, ke);
|
|
16535
|
+
if (sn.state === "hasValue")
|
|
16536
|
+
return sn.contents;
|
|
16537
|
+
if (sn.state === "loading") {
|
|
16538
16538
|
const Zn = `Getting value of asynchronous atom or selector "${ke}" in a pending state while setting selector "${c}" is not yet supported.`;
|
|
16539
16539
|
throw so(Zn), xr(Zn);
|
|
16540
16540
|
} else
|
|
16541
|
-
throw
|
|
16541
|
+
throw sn.contents;
|
|
16542
16542
|
}
|
|
16543
|
-
function Pt(ke,
|
|
16543
|
+
function Pt(ke, sn) {
|
|
16544
16544
|
if (Tt) {
|
|
16545
16545
|
const Ar = "Recoil: Async selector sets are not currently supported.";
|
|
16546
16546
|
throw so(Ar), xr(Ar);
|
|
16547
16547
|
}
|
|
16548
|
-
const Zn = typeof
|
|
16548
|
+
const Zn = typeof sn == "function" ? (
|
|
16549
16549
|
// cast to any because we can't restrict type S from being a function itself without losing support for opaque types
|
|
16550
16550
|
// flowlint-next-line unclear-type:off
|
|
16551
|
-
|
|
16552
|
-
) :
|
|
16551
|
+
sn(wt(ke))
|
|
16552
|
+
) : sn;
|
|
16553
16553
|
XG(ut, pt, ke.key, Zn).forEach((Ar, Or) => jt.set(Or, Ar));
|
|
16554
16554
|
}
|
|
16555
16555
|
function cn(ke) {
|
|
@@ -16557,7 +16557,7 @@ function uP(i) {
|
|
|
16557
16557
|
}
|
|
16558
16558
|
const Ln = x({
|
|
16559
16559
|
set: Pt,
|
|
16560
|
-
get:
|
|
16560
|
+
get: wt,
|
|
16561
16561
|
reset: cn
|
|
16562
16562
|
}, $t);
|
|
16563
16563
|
if (Ln !== void 0)
|
|
@@ -16574,7 +16574,7 @@ function uP(i) {
|
|
|
16574
16574
|
}) : o = DI({
|
|
16575
16575
|
key: c,
|
|
16576
16576
|
nodeType: "selector",
|
|
16577
|
-
peek:
|
|
16577
|
+
peek: tn,
|
|
16578
16578
|
get: An,
|
|
16579
16579
|
init: V,
|
|
16580
16580
|
invalidate: qe,
|
|
@@ -16682,7 +16682,7 @@ function mH(i) {
|
|
|
16682
16682
|
loadable: Oe(qe)
|
|
16683
16683
|
} : Le;
|
|
16684
16684
|
}, it = cu, et = !0, Kt = !1, Ot = null;
|
|
16685
|
-
const
|
|
16685
|
+
const St = (qe) => (_t) => {
|
|
16686
16686
|
if (et) {
|
|
16687
16687
|
const Le = Oe(xe), ut = Le.state === "hasValue" ? Le.contents : cu;
|
|
16688
16688
|
it = typeof _t == "function" ? (
|
|
@@ -16710,7 +16710,7 @@ function mH(i) {
|
|
|
16710
16710
|
}, ut;
|
|
16711
16711
|
} : jp(_t));
|
|
16712
16712
|
}
|
|
16713
|
-
},
|
|
16713
|
+
}, tn = (qe) => () => St(qe)(cu), An = (qe) => (_t) => {
|
|
16714
16714
|
var Le;
|
|
16715
16715
|
const {
|
|
16716
16716
|
release: ut
|
|
@@ -16721,11 +16721,11 @@ function mH(i) {
|
|
|
16721
16721
|
previousTree: jt
|
|
16722
16722
|
} = pt.getState();
|
|
16723
16723
|
jt || (so("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"), jt = Tt);
|
|
16724
|
-
const
|
|
16725
|
-
if (
|
|
16724
|
+
const wt = ($t = Tt.atomValues.get(o)) !== null && $t !== void 0 ? $t : T;
|
|
16725
|
+
if (wt.state === "hasValue") {
|
|
16726
16726
|
var Pt, cn, Ln, ke;
|
|
16727
|
-
const
|
|
16728
|
-
((cn = Ot) === null || cn === void 0 ? void 0 : cn.effect) !== qe || ((Ln = Ot) === null || Ln === void 0 ? void 0 : Ln.value) !==
|
|
16727
|
+
const sn = wt.contents, Zn = (Pt = jt.atomValues.get(o)) !== null && Pt !== void 0 ? Pt : T, Pr = Zn.state === "hasValue" ? Zn.contents : cu;
|
|
16728
|
+
((cn = Ot) === null || cn === void 0 ? void 0 : cn.effect) !== qe || ((Ln = Ot) === null || Ln === void 0 ? void 0 : Ln.value) !== sn ? _t(sn, Pr, !Tt.atomValues.has(o)) : ((ke = Ot) === null || ke === void 0 ? void 0 : ke.effect) === qe && (Ot = null);
|
|
16729
16729
|
}
|
|
16730
16730
|
}, o);
|
|
16731
16731
|
I.set(fe, [...(Le = I.get(fe)) !== null && Le !== void 0 ? Le : [], ut]);
|
|
@@ -16737,8 +16737,8 @@ function mH(i) {
|
|
|
16737
16737
|
storeID: fe.storeID,
|
|
16738
16738
|
parentStoreID_UNSTABLE: fe.parentStoreID,
|
|
16739
16739
|
trigger: Se,
|
|
16740
|
-
setSelf:
|
|
16741
|
-
resetSelf:
|
|
16740
|
+
setSelf: St(qe),
|
|
16741
|
+
resetSelf: tn(qe),
|
|
16742
16742
|
onSet: An(qe),
|
|
16743
16743
|
getPromise: pn,
|
|
16744
16744
|
getLoadable: Oe,
|
|
@@ -17675,7 +17675,7 @@ const Cq = (i, o, ...c) => {
|
|
|
17675
17675
|
if (x)
|
|
17676
17676
|
return x[h];
|
|
17677
17677
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
17678
|
-
return vq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
17678
|
+
return vq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-60241cd0.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-1cf55cf1.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-44a82782.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-8bacc00e.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-d6e5cf19.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-7cb4be6d.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-4d032efb.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-00333b18.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-d83926ed.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-9faef4a6.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-8572b18f.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-05d159d7.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-fd2b83b8.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-fa45e848.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-742ede67.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-db6c8eb7.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-0b778896.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-7ff65bd1.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-2685eacd.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-ca4ccc17.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-9b04eac0.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-c52e5ca6.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-fc5462ba.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-b32a811e.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-39800279.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-e102d275.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-44faa5e3.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-cf0e30de.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-c4dd5c25.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-24d348e0.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-52775c43.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-88233a54.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-fc2129e2.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-b01037ce.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-f4a1be05.mjs") }), `./${g}.entry.js`).then((T) => (HI.set(g, T), T[h]), Iu);
|
|
17679
17679
|
}, Sy = /* @__PURE__ */ new Map(), Im = typeof window < "u" ? window : {}, _a = Im.document || { head: {} }, io = {
|
|
17680
17680
|
$flags$: 0,
|
|
17681
17681
|
$resourcesUrl$: "",
|
|
@@ -18107,26 +18107,26 @@ class Ay extends y0 {
|
|
|
18107
18107
|
const Kt = (c.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && de ? void 0 : V, Ot = Ue && it !== V && this.options.updateMissing;
|
|
18108
18108
|
if (de || Se || Ot) {
|
|
18109
18109
|
if (this.logger.log(Ot ? "updateKey" : "missingKey", L, I, T, Ot ? it : V), x) {
|
|
18110
|
-
const
|
|
18110
|
+
const St = this.resolve(T, {
|
|
18111
18111
|
...c,
|
|
18112
18112
|
keySeparator: !1
|
|
18113
18113
|
});
|
|
18114
|
-
|
|
18114
|
+
St && St.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
18115
18115
|
}
|
|
18116
18116
|
let Oe = [];
|
|
18117
18117
|
const pn = this.languageUtils.getFallbackCodes(this.options.fallbackLng, c.lng || this.language);
|
|
18118
18118
|
if (this.options.saveMissingTo === "fallback" && pn && pn[0])
|
|
18119
|
-
for (let
|
|
18120
|
-
Oe.push(pn[
|
|
18119
|
+
for (let St = 0; St < pn.length; St++)
|
|
18120
|
+
Oe.push(pn[St]);
|
|
18121
18121
|
else
|
|
18122
18122
|
this.options.saveMissingTo === "all" ? Oe = this.languageUtils.toResolveHierarchy(c.lng || this.language) : Oe.push(c.lng || this.language);
|
|
18123
|
-
const Zt = (
|
|
18123
|
+
const Zt = (St, tn, An) => {
|
|
18124
18124
|
const qe = Ue && An !== V ? An : Kt;
|
|
18125
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
18125
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(St, I, tn, qe, Ot, c) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(St, I, tn, qe, Ot, c), this.emit("missingKey", St, I, tn, V);
|
|
18126
18126
|
};
|
|
18127
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && Fe ? Oe.forEach((
|
|
18128
|
-
this.pluralResolver.getSuffixes(
|
|
18129
|
-
Zt([
|
|
18127
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && Fe ? Oe.forEach((St) => {
|
|
18128
|
+
this.pluralResolver.getSuffixes(St, c).forEach((tn) => {
|
|
18129
|
+
Zt([St], T + tn, c[`defaultValue${tn}`] || it);
|
|
18130
18130
|
});
|
|
18131
18131
|
}) : Zt(Oe, T, it));
|
|
18132
18132
|
}
|
|
@@ -19379,7 +19379,7 @@ class NW {
|
|
|
19379
19379
|
}
|
|
19380
19380
|
const zW = (i, o) => {
|
|
19381
19381
|
const c = Ur();
|
|
19382
|
-
return
|
|
19382
|
+
return rn(() => {
|
|
19383
19383
|
c.current = o ? c.current : i;
|
|
19384
19384
|
}, [i, o]), c.current;
|
|
19385
19385
|
};
|
|
@@ -19415,7 +19415,7 @@ function vs(i) {
|
|
|
19415
19415
|
let K = L.join();
|
|
19416
19416
|
o.lng && (K = `${o.lng}${K}`);
|
|
19417
19417
|
const ce = zW(K), Ee = Ur(!0);
|
|
19418
|
-
|
|
19418
|
+
rn(() => {
|
|
19419
19419
|
const {
|
|
19420
19420
|
bindI18n: Ce,
|
|
19421
19421
|
bindI18nStore: Se
|
|
@@ -19433,7 +19433,7 @@ function vs(i) {
|
|
|
19433
19433
|
};
|
|
19434
19434
|
}, [x, K]);
|
|
19435
19435
|
const xe = Ur(!0);
|
|
19436
|
-
|
|
19436
|
+
rn(() => {
|
|
19437
19437
|
Ee.current && !xe.current && Z(U), xe.current = !1;
|
|
19438
19438
|
}, [x, I]);
|
|
19439
19439
|
const fe = [V, x, O];
|
|
@@ -19910,7 +19910,7 @@ const Lo = {
|
|
|
19910
19910
|
// A MapsIndoors instance contains state. Needs mutability.
|
|
19911
19911
|
}), HW = (i) => {
|
|
19912
19912
|
const o = Dt(Zo), c = Ur(), [h, g] = Tn([]);
|
|
19913
|
-
|
|
19913
|
+
rn(() => {
|
|
19914
19914
|
(async () => {
|
|
19915
19915
|
if (o && i) {
|
|
19916
19916
|
for (const s of h)
|
|
@@ -20107,7 +20107,7 @@ const v0 = tr({
|
|
|
20107
20107
|
default: null
|
|
20108
20108
|
}), FP = (i) => {
|
|
20109
20109
|
const [o, c] = Tn(!1);
|
|
20110
|
-
return
|
|
20110
|
+
return rn(() => {
|
|
20111
20111
|
const h = window.matchMedia(i);
|
|
20112
20112
|
h.matches !== o && c(h.matches);
|
|
20113
20113
|
const g = () => c(h.matches);
|
|
@@ -20119,7 +20119,7 @@ function WW({
|
|
|
20119
20119
|
onPositionControl: o
|
|
20120
20120
|
}) {
|
|
20121
20121
|
const c = Dt(v0), h = Dt(BP), [g, x] = Tn(), [T, s] = Tn(), [I, L] = Tn(!1), [O, U] = Tn(!1), [V, Z] = Tn(!1), K = Dt(Zo), ce = Dt(xs), Ee = Dt(Am), xe = Dt(Ed), fe = nl();
|
|
20122
|
-
return
|
|
20122
|
+
return rn(() => {
|
|
20123
20123
|
new uu({
|
|
20124
20124
|
apiKey: c,
|
|
20125
20125
|
version: "quarterly",
|
|
@@ -20145,7 +20145,7 @@ function WW({
|
|
|
20145
20145
|
const Ue = new window.mapsindoors.directions.GoogleMapsProvider();
|
|
20146
20146
|
i(Fe, Ue);
|
|
20147
20147
|
});
|
|
20148
|
-
}, []),
|
|
20148
|
+
}, []), rn(() => {
|
|
20149
20149
|
if (K && T && g && !O) {
|
|
20150
20150
|
const Ce = document.createElement("mi-my-position");
|
|
20151
20151
|
Ce.mapsindoors = K, T.getMap().controls[g.maps.ControlPosition.RIGHT_TOP].push(Ce), U(!0), o(Ce);
|
|
@@ -20372,11 +20372,11 @@ var UP = { exports: {} };
|
|
|
20372
20372
|
};
|
|
20373
20373
|
}
|
|
20374
20374
|
const Zt = pn(0.25, 0.1, 0.25, 1);
|
|
20375
|
-
function
|
|
20375
|
+
function St(t, e, n) {
|
|
20376
20376
|
return Math.min(n, Math.max(e, t));
|
|
20377
20377
|
}
|
|
20378
|
-
function
|
|
20379
|
-
return (n =
|
|
20378
|
+
function tn(t, e, n) {
|
|
20379
|
+
return (n = St((n - t) / (e - t), 0, 1)) * n * (3 - 2 * n);
|
|
20380
20380
|
}
|
|
20381
20381
|
function An(t, e, n) {
|
|
20382
20382
|
const a = n - e, u = ((t - e) % a + a) % a + e;
|
|
@@ -20420,7 +20420,7 @@ var UP = { exports: {} };
|
|
|
20420
20420
|
e[n] && (e[n] = e[n].bind(e));
|
|
20421
20421
|
});
|
|
20422
20422
|
}
|
|
20423
|
-
function
|
|
20423
|
+
function wt(t, e) {
|
|
20424
20424
|
return t.indexOf(e, t.length - e.length) !== -1;
|
|
20425
20425
|
}
|
|
20426
20426
|
function Pt(t, e, n) {
|
|
@@ -20439,7 +20439,7 @@ var UP = { exports: {} };
|
|
|
20439
20439
|
return Array.isArray(t) ? t.map(Ln) : typeof t == "object" && t ? Pt(t, Ln) : t;
|
|
20440
20440
|
}
|
|
20441
20441
|
const ke = {};
|
|
20442
|
-
function
|
|
20442
|
+
function sn(t) {
|
|
20443
20443
|
ke[t] || (typeof console < "u" && console.warn(t), ke[t] = !0);
|
|
20444
20444
|
}
|
|
20445
20445
|
function Zn(t, e, n) {
|
|
@@ -20607,7 +20607,7 @@ var UP = { exports: {} };
|
|
|
20607
20607
|
const A = (D, z, B) => {
|
|
20608
20608
|
if (b)
|
|
20609
20609
|
return;
|
|
20610
|
-
if (D && D.message !== "SecurityError" &&
|
|
20610
|
+
if (D && D.message !== "SecurityError" && sn(D.toString()), z && B)
|
|
20611
20611
|
return R(z);
|
|
20612
20612
|
const $ = Date.now();
|
|
20613
20613
|
fetch(m).then((H) => {
|
|
@@ -20649,7 +20649,7 @@ var UP = { exports: {} };
|
|
|
20649
20649
|
ye ? Pe(Ie.body) : Ie.blob().then(Pe);
|
|
20650
20650
|
})(Q, (Ie) => {
|
|
20651
20651
|
const Pe = new Response(Ie, he);
|
|
20652
|
-
Nt(), Te && Te.then(($e) => $e.put(_e, Pe)).catch(($e) =>
|
|
20652
|
+
Nt(), Te && Te.then(($e) => $e.put(_e, Pe)).catch(($e) => sn($e.message));
|
|
20653
20653
|
});
|
|
20654
20654
|
}(m, z, B), y = !0, u(null, $, D.headers.get("Cache-Control"), D.headers.get("Expires")));
|
|
20655
20655
|
}).catch(($) => {
|
|
@@ -20790,7 +20790,7 @@ var UP = { exports: {} };
|
|
|
20790
20790
|
const d = localStorage.getItem(a);
|
|
20791
20791
|
d && (this.anonId = d);
|
|
20792
20792
|
} catch {
|
|
20793
|
-
|
|
20793
|
+
sn("Unable to read from LocalStorage");
|
|
20794
20794
|
}
|
|
20795
20795
|
}
|
|
20796
20796
|
saveEventData() {
|
|
@@ -20799,7 +20799,7 @@ var UP = { exports: {} };
|
|
|
20799
20799
|
try {
|
|
20800
20800
|
localStorage.setItem(a, u), Object.keys(this.eventData).length >= 1 && localStorage.setItem(n, JSON.stringify(this.eventData));
|
|
20801
20801
|
} catch {
|
|
20802
|
-
|
|
20802
|
+
sn("Unable to write to LocalStorage");
|
|
20803
20803
|
}
|
|
20804
20804
|
}
|
|
20805
20805
|
processRequests(e) {
|
|
@@ -23886,7 +23886,7 @@ var UP = { exports: {} };
|
|
|
23886
23886
|
}
|
|
23887
23887
|
throw new Error("can't deserialize object of type " + typeof t);
|
|
23888
23888
|
}
|
|
23889
|
-
const
|
|
23889
|
+
const an = { "Latin-1 Supplement": (t) => t >= 128 && t <= 255, Arabic: (t) => t >= 1536 && t <= 1791, "Arabic Supplement": (t) => t >= 1872 && t <= 1919, "Arabic Extended-A": (t) => t >= 2208 && t <= 2303, "Hangul Jamo": (t) => t >= 4352 && t <= 4607, "Unified Canadian Aboriginal Syllabics": (t) => t >= 5120 && t <= 5759, Khmer: (t) => t >= 6016 && t <= 6143, "Unified Canadian Aboriginal Syllabics Extended": (t) => t >= 6320 && t <= 6399, "General Punctuation": (t) => t >= 8192 && t <= 8303, "Letterlike Symbols": (t) => t >= 8448 && t <= 8527, "Number Forms": (t) => t >= 8528 && t <= 8591, "Miscellaneous Technical": (t) => t >= 8960 && t <= 9215, "Control Pictures": (t) => t >= 9216 && t <= 9279, "Optical Character Recognition": (t) => t >= 9280 && t <= 9311, "Enclosed Alphanumerics": (t) => t >= 9312 && t <= 9471, "Geometric Shapes": (t) => t >= 9632 && t <= 9727, "Miscellaneous Symbols": (t) => t >= 9728 && t <= 9983, "Miscellaneous Symbols and Arrows": (t) => t >= 11008 && t <= 11263, "CJK Radicals Supplement": (t) => t >= 11904 && t <= 12031, "Kangxi Radicals": (t) => t >= 12032 && t <= 12255, "Ideographic Description Characters": (t) => t >= 12272 && t <= 12287, "CJK Symbols and Punctuation": (t) => t >= 12288 && t <= 12351, Hiragana: (t) => t >= 12352 && t <= 12447, Katakana: (t) => t >= 12448 && t <= 12543, Bopomofo: (t) => t >= 12544 && t <= 12591, "Hangul Compatibility Jamo": (t) => t >= 12592 && t <= 12687, Kanbun: (t) => t >= 12688 && t <= 12703, "Bopomofo Extended": (t) => t >= 12704 && t <= 12735, "CJK Strokes": (t) => t >= 12736 && t <= 12783, "Katakana Phonetic Extensions": (t) => t >= 12784 && t <= 12799, "Enclosed CJK Letters and Months": (t) => t >= 12800 && t <= 13055, "CJK Compatibility": (t) => t >= 13056 && t <= 13311, "CJK Unified Ideographs Extension A": (t) => t >= 13312 && t <= 19903, "Yijing Hexagram Symbols": (t) => t >= 19904 && t <= 19967, "CJK Unified Ideographs": (t) => t >= 19968 && t <= 40959, "Yi Syllables": (t) => t >= 40960 && t <= 42127, "Yi Radicals": (t) => t >= 42128 && t <= 42191, "Hangul Jamo Extended-A": (t) => t >= 43360 && t <= 43391, "Hangul Syllables": (t) => t >= 44032 && t <= 55215, "Hangul Jamo Extended-B": (t) => t >= 55216 && t <= 55295, "Private Use Area": (t) => t >= 57344 && t <= 63743, "CJK Compatibility Ideographs": (t) => t >= 63744 && t <= 64255, "Arabic Presentation Forms-A": (t) => t >= 64336 && t <= 65023, "Vertical Forms": (t) => t >= 65040 && t <= 65055, "CJK Compatibility Forms": (t) => t >= 65072 && t <= 65103, "Small Form Variants": (t) => t >= 65104 && t <= 65135, "Arabic Presentation Forms-B": (t) => t >= 65136 && t <= 65279, "Halfwidth and Fullwidth Forms": (t) => t >= 65280 && t <= 65519, "CJK Unified Ideographs Extension B": (t) => t >= 131072 && t <= 173791 };
|
|
23890
23890
|
function Js(t) {
|
|
23891
23891
|
for (const e of t)
|
|
23892
23892
|
if (If(e.charCodeAt(0)))
|
|
@@ -23900,21 +23900,21 @@ var UP = { exports: {} };
|
|
|
23900
23900
|
return !0;
|
|
23901
23901
|
}
|
|
23902
23902
|
function n1(t) {
|
|
23903
|
-
return !(
|
|
23903
|
+
return !(an.Arabic(t) || an["Arabic Supplement"](t) || an["Arabic Extended-A"](t) || an["Arabic Presentation Forms-A"](t) || an["Arabic Presentation Forms-B"](t));
|
|
23904
23904
|
}
|
|
23905
23905
|
function If(t) {
|
|
23906
|
-
return !(t !== 746 && t !== 747 && (t < 4352 || !(
|
|
23906
|
+
return !(t !== 746 && t !== 747 && (t < 4352 || !(an["Bopomofo Extended"](t) || an.Bopomofo(t) || an["CJK Compatibility Forms"](t) && !(t >= 65097 && t <= 65103) || an["CJK Compatibility Ideographs"](t) || an["CJK Compatibility"](t) || an["CJK Radicals Supplement"](t) || an["CJK Strokes"](t) || !(!an["CJK Symbols and Punctuation"](t) || t >= 12296 && t <= 12305 || t >= 12308 && t <= 12319 || t === 12336) || an["CJK Unified Ideographs Extension A"](t) || an["CJK Unified Ideographs"](t) || an["Enclosed CJK Letters and Months"](t) || an["Hangul Compatibility Jamo"](t) || an["Hangul Jamo Extended-A"](t) || an["Hangul Jamo Extended-B"](t) || an["Hangul Jamo"](t) || an["Hangul Syllables"](t) || an.Hiragana(t) || an["Ideographic Description Characters"](t) || an.Kanbun(t) || an["Kangxi Radicals"](t) || an["Katakana Phonetic Extensions"](t) || an.Katakana(t) && t !== 12540 || !(!an["Halfwidth and Fullwidth Forms"](t) || t === 65288 || t === 65289 || t === 65293 || t >= 65306 && t <= 65310 || t === 65339 || t === 65341 || t === 65343 || t >= 65371 && t <= 65503 || t === 65507 || t >= 65512 && t <= 65519) || !(!an["Small Form Variants"](t) || t >= 65112 && t <= 65118 || t >= 65123 && t <= 65126) || an["Unified Canadian Aboriginal Syllabics"](t) || an["Unified Canadian Aboriginal Syllabics Extended"](t) || an["Vertical Forms"](t) || an["Yijing Hexagram Symbols"](t) || an["Yi Syllables"](t) || an["Yi Radicals"](t))));
|
|
23907
23907
|
}
|
|
23908
23908
|
function lg(t) {
|
|
23909
23909
|
return !(If(t) || function(e) {
|
|
23910
|
-
return !!(
|
|
23910
|
+
return !!(an["Latin-1 Supplement"](e) && (e === 167 || e === 169 || e === 174 || e === 177 || e === 188 || e === 189 || e === 190 || e === 215 || e === 247) || an["General Punctuation"](e) && (e === 8214 || e === 8224 || e === 8225 || e === 8240 || e === 8241 || e === 8251 || e === 8252 || e === 8258 || e === 8263 || e === 8264 || e === 8265 || e === 8273) || an["Letterlike Symbols"](e) || an["Number Forms"](e) || an["Miscellaneous Technical"](e) && (e >= 8960 && e <= 8967 || e >= 8972 && e <= 8991 || e >= 8996 && e <= 9e3 || e === 9003 || e >= 9085 && e <= 9114 || e >= 9150 && e <= 9165 || e === 9167 || e >= 9169 && e <= 9179 || e >= 9186 && e <= 9215) || an["Control Pictures"](e) && e !== 9251 || an["Optical Character Recognition"](e) || an["Enclosed Alphanumerics"](e) || an["Geometric Shapes"](e) || an["Miscellaneous Symbols"](e) && !(e >= 9754 && e <= 9759) || an["Miscellaneous Symbols and Arrows"](e) && (e >= 11026 && e <= 11055 || e >= 11088 && e <= 11097 || e >= 11192 && e <= 11243) || an["CJK Symbols and Punctuation"](e) || an.Katakana(e) || an["Private Use Area"](e) || an["CJK Compatibility Forms"](e) || an["Small Form Variants"](e) || an["Halfwidth and Fullwidth Forms"](e) || e === 8734 || e === 8756 || e === 8757 || e >= 9984 && e <= 10087 || e >= 10102 && e <= 10131 || e === 65532 || e === 65533);
|
|
23911
23911
|
}(t));
|
|
23912
23912
|
}
|
|
23913
23913
|
function cg(t) {
|
|
23914
|
-
return t >= 1424 && t <= 2303 ||
|
|
23914
|
+
return t >= 1424 && t <= 2303 || an["Arabic Presentation Forms-A"](t) || an["Arabic Presentation Forms-B"](t);
|
|
23915
23915
|
}
|
|
23916
23916
|
function ug(t, e) {
|
|
23917
|
-
return !(!e && cg(t) || t >= 2304 && t <= 3583 || t >= 3840 && t <= 4255 ||
|
|
23917
|
+
return !(!e && cg(t) || t >= 2304 && t <= 3583 || t >= 3840 && t <= 4255 || an.Khmer(t));
|
|
23918
23918
|
}
|
|
23919
23919
|
function Af(t) {
|
|
23920
23920
|
for (const e of t)
|
|
@@ -24005,7 +24005,7 @@ var UP = { exports: {} };
|
|
|
24005
24005
|
if (e)
|
|
24006
24006
|
for (const u in e) {
|
|
24007
24007
|
const d = e[u];
|
|
24008
|
-
if (
|
|
24008
|
+
if (wt(u, "-transition")) {
|
|
24009
24009
|
const m = u.slice(0, -11);
|
|
24010
24010
|
a[m] && this.setTransition(m, d);
|
|
24011
24011
|
} else
|
|
@@ -24394,11 +24394,11 @@ ${JSON.stringify(n, null, 2)}
|
|
|
24394
24394
|
this.visibility = this._unevaluatedLayout._values.visibility.possiblyEvaluate({ zoom: 0 });
|
|
24395
24395
|
}
|
|
24396
24396
|
getPaintProperty(e) {
|
|
24397
|
-
return
|
|
24397
|
+
return wt(e, zc) ? this._transitionablePaint.getTransition(e.slice(0, -11)) : this._transitionablePaint.getValue(e);
|
|
24398
24398
|
}
|
|
24399
24399
|
setPaintProperty(e, n) {
|
|
24400
24400
|
const a = this._transitionablePaint, u = a._properties.properties;
|
|
24401
|
-
if (
|
|
24401
|
+
if (wt(e, zc)) {
|
|
24402
24402
|
const A = e.slice(0, -11);
|
|
24403
24403
|
return u[A] && a.setTransition(A, n || void 0), !1;
|
|
24404
24404
|
}
|
|
@@ -24406,7 +24406,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
24406
24406
|
return !1;
|
|
24407
24407
|
const d = a._values[e], m = d.value.isDataDriven(), y = d.value;
|
|
24408
24408
|
a.setValue(e, n), this.isConfigDependent = this.isConfigDependent || a.isConfigDependent, this._handleSpecialPaintPropertyUpdate(e);
|
|
24409
|
-
const b = a._values[e].value, w = b.isDataDriven(), E =
|
|
24409
|
+
const b = a._values[e].value, w = b.isDataDriven(), E = wt(e, "pattern") || e === "line-dasharray";
|
|
24410
24410
|
return w || m || E || this._handleOverridablePaintPropertyUpdate(e, y, b);
|
|
24411
24411
|
}
|
|
24412
24412
|
_handleSpecialPaintPropertyUpdate(e) {
|
|
@@ -24821,8 +24821,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
24821
24821
|
return this.resize(st + 1), this.emplace(st, e, n, a, u, d, m, y, b, w, E, A, R, D, z, B, $, H, Q, re, ne, he, ae, _e, Ie, Pe, $e, De, Qe, dt, Ze, lt, He);
|
|
24822
24822
|
}
|
|
24823
24823
|
emplace(e, n, a, u, d, m, y, b, w, E, A, R, D, z, B, $, H, Q, re, ne, he, ae, _e, Ie, Pe, $e, De, Qe, dt, Ze, lt, He, st) {
|
|
24824
|
-
const kt = 20 * e, ft = 40 * e,
|
|
24825
|
-
return this.float32[kt + 0] = n, this.float32[kt + 1] = a, this.int16[ft + 4] = u, this.int16[ft + 5] = d, this.int16[ft + 6] = m, this.int16[ft + 7] = y, this.int16[ft + 8] = b, this.int16[ft + 9] = w, this.int16[ft + 10] = E, this.int16[ft + 11] = A, this.int16[ft + 12] = R, this.uint16[ft + 13] = D, this.uint16[ft + 14] = z, this.uint16[ft + 15] = B, this.uint16[ft + 16] = $, this.uint16[ft + 17] = H, this.uint16[ft + 18] = Q, this.uint16[ft + 19] = re, this.uint16[ft + 20] = ne, this.uint16[ft + 21] = he, this.uint16[ft + 22] = ae, this.uint16[ft + 23] = _e, this.uint16[ft + 24] = Ie, this.uint16[ft + 25] = Pe, this.uint16[ft + 26] = $e, this.uint16[ft + 27] = De, this.uint32[kt + 14] = Qe, this.float32[kt + 15] = dt, this.float32[kt + 16] = Ze, this.float32[kt + 17] = lt, this.float32[kt + 18] = He, this.uint8[
|
|
24824
|
+
const kt = 20 * e, ft = 40 * e, nn = 80 * e;
|
|
24825
|
+
return this.float32[kt + 0] = n, this.float32[kt + 1] = a, this.int16[ft + 4] = u, this.int16[ft + 5] = d, this.int16[ft + 6] = m, this.int16[ft + 7] = y, this.int16[ft + 8] = b, this.int16[ft + 9] = w, this.int16[ft + 10] = E, this.int16[ft + 11] = A, this.int16[ft + 12] = R, this.uint16[ft + 13] = D, this.uint16[ft + 14] = z, this.uint16[ft + 15] = B, this.uint16[ft + 16] = $, this.uint16[ft + 17] = H, this.uint16[ft + 18] = Q, this.uint16[ft + 19] = re, this.uint16[ft + 20] = ne, this.uint16[ft + 21] = he, this.uint16[ft + 22] = ae, this.uint16[ft + 23] = _e, this.uint16[ft + 24] = Ie, this.uint16[ft + 25] = Pe, this.uint16[ft + 26] = $e, this.uint16[ft + 27] = De, this.uint32[kt + 14] = Qe, this.float32[kt + 15] = dt, this.float32[kt + 16] = Ze, this.float32[kt + 17] = lt, this.float32[kt + 18] = He, this.uint8[nn + 76] = st, e;
|
|
24826
24826
|
}
|
|
24827
24827
|
}
|
|
24828
24828
|
sh.prototype.bytesPerElement = 80, Xt(sh, "StructArrayLayout2f9i15ui1ul4f1ub80");
|
|
@@ -25258,7 +25258,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
25258
25258
|
}
|
|
25259
25259
|
_prepareSegment(e, n, a, u) {
|
|
25260
25260
|
let d = this.segments[this.segments.length - 1];
|
|
25261
|
-
return e > fi.MAX_VERTEX_ARRAY_LENGTH &&
|
|
25261
|
+
return e > fi.MAX_VERTEX_ARRAY_LENGTH && sn(`Max vertices per segment is ${fi.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`), (!d || d.vertexLength + e > fi.MAX_VERTEX_ARRAY_LENGTH || d.sortKey !== u) && (d = { vertexOffset: n, primitiveOffset: a, vertexLength: 0, primitiveLength: 0 }, u !== void 0 && (d.sortKey = u), this.segments.push(d)), d;
|
|
25262
25262
|
}
|
|
25263
25263
|
prepareSegment(e, n, a, u) {
|
|
25264
25264
|
return this._prepareSegment(e, n.length, a.length, u);
|
|
@@ -25276,7 +25276,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
25276
25276
|
}
|
|
25277
25277
|
}
|
|
25278
25278
|
function Jf(t, e) {
|
|
25279
|
-
return 256 * (t =
|
|
25279
|
+
return 256 * (t = St(Math.floor(t), 0, 255)) + St(Math.floor(e), 0, 255);
|
|
25280
25280
|
}
|
|
25281
25281
|
fi.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Xt(fi, "SegmentVector");
|
|
25282
25282
|
const Eg = Cr([{ name: "a_pattern", components: 4, type: "Uint16" }, { name: "a_pixel_ratio", components: 1, type: "Float32" }]), Cg = Cr([{ name: "a_dash", components: 4, type: "Uint16" }]);
|
|
@@ -25550,7 +25550,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
25550
25550
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
25551
25551
|
}
|
|
25552
25552
|
setUniform(e, n, a, u, d) {
|
|
25553
|
-
const m = this.useIntegerZoom ? Math.floor(a.zoom) : a.zoom, y =
|
|
25553
|
+
const m = this.useIntegerZoom ? Math.floor(a.zoom) : a.zoom, y = St(this.expression.interpolationFactor(m, this.zoom, this.zoom + 1), 0, 1);
|
|
25554
25554
|
n.set(e, d, y);
|
|
25555
25555
|
}
|
|
25556
25556
|
getBinding(e, n) {
|
|
@@ -25973,7 +25973,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
25973
25973
|
let m = d * (u % d) + a % d;
|
|
25974
25974
|
return t && n < 22 && (m += d * d * ((t < 0 ? -2 * t - 1 : 2 * t) % (1 << 2 * (22 - n)))), 16 * (32 * m + n) + (e - n);
|
|
25975
25975
|
}
|
|
25976
|
-
const
|
|
25976
|
+
const on = [(t) => {
|
|
25977
25977
|
let e = t.canonical.x - 1, n = t.wrap;
|
|
25978
25978
|
return e < 0 && (e = (1 << t.canonical.z) - 1, n--), new Ct(t.overscaledZ, n, t.canonical.z, e, t.canonical.y);
|
|
25979
25979
|
}, (t) => {
|
|
@@ -26005,10 +26005,10 @@ ${JSON.stringify(n, null, 2)}
|
|
|
26005
26005
|
}
|
|
26006
26006
|
const Kn = 85.051129;
|
|
26007
26007
|
function ni(t) {
|
|
26008
|
-
return Math.cos(et(
|
|
26008
|
+
return Math.cos(et(St(t, -Kn, Kn)));
|
|
26009
26009
|
}
|
|
26010
26010
|
function Jn(t, e) {
|
|
26011
|
-
const n =
|
|
26011
|
+
const n = St(e, gn, hn), a = Math.pow(2, n);
|
|
26012
26012
|
return ni(t) * mt / (512 * a);
|
|
26013
26013
|
}
|
|
26014
26014
|
function mr(t) {
|
|
@@ -26072,7 +26072,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
26072
26072
|
const xo = Math.pow(2, 14) - 1, ms = -xo - 1;
|
|
26073
26073
|
function bo(t, e) {
|
|
26074
26074
|
const n = Math.round(t.x * e), a = Math.round(t.y * e);
|
|
26075
|
-
return t.x =
|
|
26075
|
+
return t.x = St(n, ms, xo), t.y = St(a, ms, xo), (n < t.x || n > t.x + 1 || a < t.y || a > t.y + 1) && sn("Geometry exceeds allowed extent, reduce your vector tile buffer size"), t;
|
|
26076
26076
|
}
|
|
26077
26077
|
function zi(t, e, n) {
|
|
26078
26078
|
const a = t.loadGeometry(), u = t.extent, d = Ut / u;
|
|
@@ -27785,7 +27785,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
27785
27785
|
const dt = (Qe - De + 180) % 360 - 180;
|
|
27786
27786
|
return dt < -180 ? dt + 360 : dt;
|
|
27787
27787
|
}(t.center.lng, Ie);
|
|
27788
|
-
const Pe = Un(Ie), $e =
|
|
27788
|
+
const Pe = Un(Ie), $e = St(Mn(_e), 0, 1);
|
|
27789
27789
|
return new pr(Pe, $e);
|
|
27790
27790
|
}
|
|
27791
27791
|
class pk {
|
|
@@ -27802,7 +27802,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
27802
27802
|
return n = t.a[e] === 0 ? 1 / t.angle * 0.5 * Math.PI : 1 / t.angle * Math.atan(t.b[e] / t.a[e] / Math.sin(t.angle) - 1 / Math.tan(t.angle)), n < 0 || n > 1 ? null : function(a, u, d, m) {
|
|
27803
27803
|
const y = Math.sin(d);
|
|
27804
27804
|
return a * (Math.sin((1 - m) * d) / y) + u * (Math.sin(m * d) / y);
|
|
27805
|
-
}(t.a[e], t.b[e], t.angle,
|
|
27805
|
+
}(t.a[e], t.b[e], t.angle, St(n, 0, 1)) + t.center[e];
|
|
27806
27806
|
}
|
|
27807
27807
|
function la(t) {
|
|
27808
27808
|
if (t.z <= 1)
|
|
@@ -27838,7 +27838,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
27838
27838
|
s.N.min(E, E, Pe), s.N.max(w, w, Pe);
|
|
27839
27839
|
return new hi(E, w);
|
|
27840
27840
|
}
|
|
27841
|
-
const A = [d[12] * u, d[13] * u, d[14] * u], R = m.getCenter(), D =
|
|
27841
|
+
const A = [d[12] * u, d[13] * u, d[14] * u], R = m.getCenter(), D = St(t.center.lat, -Kn, Kn), z = St(R.lat, -Kn, Kn), B = Un(t.center.lng), $ = Mn(D);
|
|
27842
27842
|
let H = B - Un(R.lng);
|
|
27843
27843
|
const Q = $ - Mn(z);
|
|
27844
27844
|
H > 0.5 ? H -= 1 : H < -0.5 && (H += 1);
|
|
@@ -27854,9 +27854,9 @@ ${JSON.stringify(n, null, 2)}
|
|
|
27854
27854
|
if (Ie > 0) {
|
|
27855
27855
|
const Pe = function({ x: De, y: Qe, z: dt }, Ze, lt, He, st) {
|
|
27856
27856
|
const kt = 1 / (1 << dt);
|
|
27857
|
-
let ft = De * kt,
|
|
27858
|
-
const dn = (ft +
|
|
27859
|
-
return dn > 0.5 ? En = -1 : dn < -0.5 && (En = 1), ft = ((ft + En) * Ze - (He *= Ze)) * lt + He,
|
|
27857
|
+
let ft = De * kt, nn = ft + kt, Vt = Qe * kt, vt = Vt + kt, En = 0;
|
|
27858
|
+
const dn = (ft + nn) / 2 - He;
|
|
27859
|
+
return dn > 0.5 ? En = -1 : dn < -0.5 && (En = 1), ft = ((ft + En) * Ze - (He *= Ze)) * lt + He, nn = ((nn + En) * Ze - He) * lt + He, Vt = (Vt * Ze - (st *= Ze)) * lt + st, vt = (vt * Ze - st) * lt + st, [[ft, vt, 0], [nn, vt, 0], [nn, Vt, 0], [ft, Vt, 0]];
|
|
27860
27860
|
}(n, e, t._pixelsPerMercatorPixel, B, $);
|
|
27861
27861
|
for (let De = 0; De < y.length; De++)
|
|
27862
27862
|
Ga(y[De], Pe[De], Ie);
|
|
@@ -27903,7 +27903,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
27903
27903
|
return s.a6.translate(y, y, m), s.a6.scale(y, y, [d, d, d]), s.a6.rotateX(y, y, et(-u)), s.a6.rotateY(y, y, et(-a)), y;
|
|
27904
27904
|
}
|
|
27905
27905
|
function Ll(t) {
|
|
27906
|
-
return
|
|
27906
|
+
return tn(oe, X, t);
|
|
27907
27907
|
}
|
|
27908
27908
|
function mS(t, e) {
|
|
27909
27909
|
const n = Xe(e.lat, e.lng), a = function(d) {
|
|
@@ -28743,7 +28743,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
28743
28743
|
return ar(ar(t, n, d), ar(e, a, d), u);
|
|
28744
28744
|
}
|
|
28745
28745
|
function Dl(t, e, n) {
|
|
28746
|
-
const a = n.dim, u =
|
|
28746
|
+
const a = n.dim, u = St(t * a - 0.5, 0, a - 1), d = St(e * a - 0.5, 0, a - 1), m = Math.floor(u), y = Math.floor(d), b = Math.min(m + 1, a - 1), w = Math.min(y + 1, a - 1);
|
|
28747
28747
|
return VS(n.get(m, y), n.get(b, y), n.get(m, w), n.get(b, w), u - m, d - y);
|
|
28748
28748
|
}
|
|
28749
28749
|
const Qk = { mapbox: [6553.6, 25.6, 0.1, 1e4], terrarium: [256, 1, 1 / 256, 32768] };
|
|
@@ -28761,7 +28761,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
28761
28761
|
if (this.uid = e, n.height !== n.width)
|
|
28762
28762
|
throw new RangeError("DEM tiles must be square");
|
|
28763
28763
|
if (a && a !== "mapbox" && a !== "terrarium")
|
|
28764
|
-
return
|
|
28764
|
+
return sn(`"${a}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);
|
|
28765
28765
|
this.stride = n.height;
|
|
28766
28766
|
const d = this.dim = n.height - 2, m = new Uint32Array(n.data.buffer);
|
|
28767
28767
|
if (this.pixels = new Uint8Array(n.data.buffer), this.floatView = new Float32Array(n.data.buffer), this.borderReady = u, this._modifiedForSources = {}, !u) {
|
|
@@ -28780,7 +28780,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
28780
28780
|
this._tree = new jS(this);
|
|
28781
28781
|
}
|
|
28782
28782
|
get(e, n, a = !1) {
|
|
28783
|
-
a && (e =
|
|
28783
|
+
a && (e = St(e, -1, this.dim), n = St(n, -1, this.dim));
|
|
28784
28784
|
const u = this._idx(e, n);
|
|
28785
28785
|
return this.floatView[u];
|
|
28786
28786
|
}
|
|
@@ -28922,7 +28922,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
28922
28922
|
}
|
|
28923
28923
|
}
|
|
28924
28924
|
function WS(t, e) {
|
|
28925
|
-
const n = t.add(e)._unit(), a =
|
|
28925
|
+
const n = t.add(e)._unit(), a = St(t.x * n.x + t.y * n.y, -1, 1);
|
|
28926
28926
|
var u, d, m;
|
|
28927
28927
|
return u = Math.acos(a), Math.min(4, Math.max(-4, Math.tan(u))) / 4 * sD * ((d = t).x * (m = e).y - d.y * m.x < 0 ? -1 : 1);
|
|
28928
28928
|
}
|
|
@@ -29122,7 +29122,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29122
29122
|
for (let kt = 0; kt < Ie.length; kt++) {
|
|
29123
29123
|
const ft = Ie[kt];
|
|
29124
29124
|
ft.length && kt !== 0 && He.push(lt.length / 2);
|
|
29125
|
-
const
|
|
29125
|
+
const nn = [];
|
|
29126
29126
|
let Vt, vt;
|
|
29127
29127
|
Vt = ft[1].sub(ft[0])._perp()._unit(), Ze.ringIndices.push(ft.length - 1);
|
|
29128
29128
|
for (let En = 1; En < ft.length; En++) {
|
|
@@ -29132,9 +29132,9 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29132
29132
|
const vn = Vt.add(vt)._unit(), Gn = he * Math.min(4, 1 / (Vt.x * vn.x + Vt.y * vn.y));
|
|
29133
29133
|
xt.x += Gn * vn.x, xt.y += Gn * vn.y, xt.x = Math.round(xt.x), xt.y = Math.round(xt.y), Vt = vt;
|
|
29134
29134
|
}
|
|
29135
|
-
!$ || he !== 0 && !ae || _e(
|
|
29135
|
+
!$ || he !== 0 && !ae || _e(nn, xt) || nn.push(xt), cp(this.layoutVertexArray, xt.x, xt.y, 0, 0, 1, 1, 0), Qe.vertexLength++, this.footprintVertices.emplaceBack(dn.x, dn.y), lt.push(dn.x, dn.y), R && up(this.layoutVertexExtArray, A.projectTilePoint(xt.x, xt.y, u), A.upVector(u, xt.x, xt.y));
|
|
29136
29136
|
}
|
|
29137
|
-
$ && (he === 0 || ae) && (
|
|
29137
|
+
$ && (he === 0 || ae) && (nn.length !== 0 && _e(nn, nn[0]) && nn.pop(), this.groundEffect.addData(nn, Pe, w));
|
|
29138
29138
|
}
|
|
29139
29139
|
const st = Hg(lt, He);
|
|
29140
29140
|
for (let kt = 0; kt < st.length; kt += 3)
|
|
@@ -29146,7 +29146,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29146
29146
|
z.startRing(B, He[0]);
|
|
29147
29147
|
let st = He.length > 4 && JS(He[He.length - 2], He[0], He[1]), kt = he ? cD(He[He.length - 2], He[0], He[1], he) : 0;
|
|
29148
29148
|
const ft = [];
|
|
29149
|
-
let
|
|
29149
|
+
let nn, Vt, vt;
|
|
29150
29150
|
Vt = He[1].sub(He[0])._perp()._unit();
|
|
29151
29151
|
let En = !0;
|
|
29152
29152
|
for (let dn = 1, en = 0; dn < He.length; dn++) {
|
|
@@ -29168,8 +29168,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29168
29168
|
let gr = QS(en, st, En);
|
|
29169
29169
|
if (cp(this.layoutVertexArray, xt.x, xt.y, Hn, Pn, 0, 0, gr), cp(this.layoutVertexArray, xt.x, xt.y, Hn, Pn, 0, 1, gr), en += lr, gr = QS(en, Br, !En), st = Br, cp(this.layoutVertexArray, vn.x, vn.y, Hn, Pn, 0, 0, gr), cp(this.layoutVertexArray, vn.x, vn.y, Hn, Pn, 0, 1, gr), Qe.vertexLength += 4, this.indexArray.emplaceBack(zn + 0, zn + 1, zn + 2), this.indexArray.emplaceBack(zn + 1, zn + 3, zn + 2), Qe.primitiveLength += 2, he) {
|
|
29170
29170
|
const yr = $e + (dn === 1 ? He.length - 2 : dn - 2), Sr = dn === 1 ? $e : yr + 1;
|
|
29171
|
-
if (this.indexArray.emplaceBack(zn + 1, yr, zn + 3), this.indexArray.emplaceBack(yr, Sr, zn + 3), Qe.primitiveLength += 2,
|
|
29172
|
-
const _r = dn === He.length - 1 ?
|
|
29171
|
+
if (this.indexArray.emplaceBack(zn + 1, yr, zn + 3), this.indexArray.emplaceBack(yr, Sr, zn + 3), Qe.primitiveLength += 2, nn === void 0 && (nn = zn), !V1(Gn, He[dn], Pe)) {
|
|
29172
|
+
const _r = dn === He.length - 1 ? nn : Qe.vertexLength;
|
|
29173
29173
|
this.indexArray.emplaceBack(zn + 2, zn + 3, _r), this.indexArray.emplaceBack(zn + 3, _r + 1, _r), this.indexArray.emplaceBack(zn + 3, Sr, _r + 1), Qe.primitiveLength += 3;
|
|
29174
29174
|
}
|
|
29175
29175
|
En = !En;
|
|
@@ -29265,7 +29265,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29265
29265
|
}
|
|
29266
29266
|
encodeCentroid(e, n) {
|
|
29267
29267
|
const a = e.centroid(), u = n.span(), d = Math.min(7, Math.round(u.x * this.tileToMeter / 10)), m = Math.min(7, Math.round(u.y * this.tileToMeter / 10));
|
|
29268
|
-
return new me(
|
|
29268
|
+
return new me(St(a.x, 1, Ut - 1) << 3 | d, St(a.y, 1, Ut - 1) << 3 | m);
|
|
29269
29269
|
}
|
|
29270
29270
|
encodeBorderCentroid(e) {
|
|
29271
29271
|
if (!e.borders)
|
|
@@ -29551,11 +29551,11 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29551
29551
|
return this.positions[a];
|
|
29552
29552
|
const u = n === "round", d = u ? 7 : 0, m = 2 * d + 1;
|
|
29553
29553
|
if (this.nextRow + m > this.height)
|
|
29554
|
-
return
|
|
29554
|
+
return sn("LineAtlas out of space"), null;
|
|
29555
29555
|
e.length === 0 && e.push(1);
|
|
29556
29556
|
let y = 0;
|
|
29557
29557
|
for (let E = 0; E < e.length; E++)
|
|
29558
|
-
e[E] < 0 && (
|
|
29558
|
+
e[E] < 0 && (sn("Negative value is found in line dasharray, replacing values with 0"), e[E] = 0), y += e[E];
|
|
29559
29559
|
if (y !== 0) {
|
|
29560
29560
|
const E = this.width / y, A = this.getDashRanges(e, this.width, E);
|
|
29561
29561
|
u ? this.addRoundDash(A, E, d) : this.addRegularDash(A, n === "square" ? 0.5 * E : 0);
|
|
@@ -29824,7 +29824,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
29824
29824
|
if (t.kind === "constant")
|
|
29825
29825
|
a = t.layoutSize;
|
|
29826
29826
|
else if (t.kind !== "source") {
|
|
29827
|
-
const { interpolationType: u, minZoom: d, maxZoom: m } = t, y = u ?
|
|
29827
|
+
const { interpolationType: u, minZoom: d, maxZoom: m } = t, y = u ? St(Co.interpolationFactor(u, e, d, m), 0, 1) : 0;
|
|
29828
29828
|
t.kind === "camera" ? a = ar(t.minSize, t.maxSize, y) : n = y;
|
|
29829
29829
|
}
|
|
29830
29830
|
return { uSizeT: n, uSize: a };
|
|
@@ -30279,9 +30279,9 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30279
30279
|
addImageSection(e) {
|
|
30280
30280
|
const n = e.image ? e.image.namePrimary : "";
|
|
30281
30281
|
if (n.length === 0)
|
|
30282
|
-
return void
|
|
30282
|
+
return void sn("Can't add FormattedSection with an empty image.");
|
|
30283
30283
|
const a = this.getNextImageSectionCharCode();
|
|
30284
|
-
a ? (this.text += String.fromCodePoint(a), this.sections.push(fp.forImage(n)), this.sectionIndex.push(this.sections.length - 1)) :
|
|
30284
|
+
a ? (this.text += String.fromCodePoint(a), this.sections.push(fp.forImage(n)), this.sectionIndex.push(this.sections.length - 1)) : sn("Reached maximum number of images 6401");
|
|
30285
30285
|
}
|
|
30286
30286
|
getNextImageSectionCharCode() {
|
|
30287
30287
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
|
@@ -30294,11 +30294,11 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30294
30294
|
const H = function(ae, _e, Ie, Pe, $e, De) {
|
|
30295
30295
|
if (!ae)
|
|
30296
30296
|
return [];
|
|
30297
|
-
const Qe = [], dt = function(st, kt, ft,
|
|
30297
|
+
const Qe = [], dt = function(st, kt, ft, nn, Vt, vt) {
|
|
30298
30298
|
let En = 0;
|
|
30299
30299
|
for (let dn = 0; dn < st.length(); dn++) {
|
|
30300
30300
|
const en = st.getSection(dn);
|
|
30301
|
-
En += xT(st.getCodePoint(dn), en,
|
|
30301
|
+
En += xT(st.getCodePoint(dn), en, nn, Vt, kt, vt);
|
|
30302
30302
|
}
|
|
30303
30303
|
return En / Math.max(1, Math.ceil(En / ft));
|
|
30304
30304
|
}(ae, _e, Ie, Pe, $e, De), Ze = ae.text.indexOf("") >= 0;
|
|
@@ -30306,8 +30306,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30306
30306
|
for (let st = 0; st < ae.length(); st++) {
|
|
30307
30307
|
const kt = ae.getSection(st), ft = ae.getCodePoint(st);
|
|
30308
30308
|
if (n_[ft] || (lt += xT(ft, kt, Pe, $e, _e, De)), st < ae.length() - 1) {
|
|
30309
|
-
const
|
|
30310
|
-
(HD[ft] ||
|
|
30309
|
+
const nn = !((He = ft) < 11904 || !(an["Bopomofo Extended"](He) || an.Bopomofo(He) || an["CJK Compatibility Forms"](He) || an["CJK Compatibility Ideographs"](He) || an["CJK Compatibility"](He) || an["CJK Radicals Supplement"](He) || an["CJK Strokes"](He) || an["CJK Symbols and Punctuation"](He) || an["CJK Unified Ideographs Extension A"](He) || an["CJK Unified Ideographs"](He) || an["Enclosed CJK Letters and Months"](He) || an["Halfwidth and Fullwidth Forms"](He) || an.Hiragana(He) || an["Ideographic Description Characters"](He) || an["Kangxi Radicals"](He) || an["Katakana Phonetic Extensions"](He) || an.Katakana(He) || an["Vertical Forms"](He) || an["Yi Radicals"](He) || an["Yi Syllables"](He)));
|
|
30310
|
+
(HD[ft] || nn || kt.imageName) && Qe.push(wT(st + 1, lt, dt, Qe, qD(ft, ae.getCodePoint(st + 1), nn && Ze), !1));
|
|
30311
30311
|
}
|
|
30312
30312
|
}
|
|
30313
30313
|
var He;
|
|
@@ -30338,7 +30338,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30338
30338
|
}(B, H);
|
|
30339
30339
|
const ne = [], he = { positionedLines: ne, text: B.toString(), top: E[1], bottom: E[1], left: E[0], right: E[0], writingMode: A, iconsInText: !1, verticalizable: !1, hasBaseline: !1 };
|
|
30340
30340
|
return function(ae, _e, Ie, Pe, $e, De, Qe, dt, Ze, lt, He, st) {
|
|
30341
|
-
let kt = 0, ft = 0,
|
|
30341
|
+
let kt = 0, ft = 0, nn = 0;
|
|
30342
30342
|
const Vt = dt === "right" ? 1 : dt === "left" ? 0 : 0.5;
|
|
30343
30343
|
let vt = !1;
|
|
30344
30344
|
for (const Gn of $e) {
|
|
@@ -30368,7 +30368,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30368
30368
|
for (let Sr = 0; Sr < Gn.length(); Sr++) {
|
|
30369
30369
|
const _r = Gn.getSection(Sr), Qr = Gn.getSectionIndex(Sr), Rr = Gn.getCodePoint(Sr);
|
|
30370
30370
|
let pi = _r.scale, ki = null, Xi = null, Kr = null, ii = Qi, Vi = 0;
|
|
30371
|
-
const $i = !(Ze === is.horizontal || !He && !If(Rr) || He && (n_[Rr] || (dn = Rr,
|
|
30371
|
+
const $i = !(Ze === is.horizontal || !He && !If(Rr) || He && (n_[Rr] || (dn = Rr, an.Arabic(dn) || an["Arabic Supplement"](dn) || an["Arabic Extended-A"](dn) || an["Arabic Presentation Forms-A"](dn) || an["Arabic Presentation Forms-B"](dn))));
|
|
30372
30372
|
if (_r.imageName) {
|
|
30373
30373
|
const Gi = Pe[_r.imageName];
|
|
30374
30374
|
if (!Gi)
|
|
@@ -30397,7 +30397,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30397
30397
|
}
|
|
30398
30398
|
$i ? (ae.verticalizable = !0, lr.push({ glyph: Rr, imageName: Kr, x: kt, y: ft + Vi, vertical: $i, scale: pi, localGlyph: ki.localGlyph, fontStack: _r.fontStack, sectionIndex: Qr, metrics: ki, rect: Xi }), kt += ii * pi + lt) : (lr.push({ glyph: Rr, imageName: Kr, x: kt, y: ft + Vi, vertical: $i, scale: pi, localGlyph: ki.localGlyph, fontStack: _r.fontStack, sectionIndex: Qr, metrics: ki, rect: Xi }), kt += ki.advance * pi + lt);
|
|
30399
30399
|
}
|
|
30400
|
-
lr.length !== 0 && (
|
|
30400
|
+
lr.length !== 0 && (nn = Math.max(kt - lt, nn), vt ? TT(lr, Vt, zn, gr, De * In / 2) : TT(lr, Vt, zn, 0, De / 2)), kt = 0;
|
|
30401
30401
|
const yr = De * In + zn;
|
|
30402
30402
|
Pn.lineOffset = Math.max(zn, Hn), ft += yr, ++En;
|
|
30403
30403
|
}
|
|
@@ -30408,7 +30408,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30408
30408
|
for (const yr of Gn)
|
|
30409
30409
|
for (const Sr of yr.positionedGlyphs)
|
|
30410
30410
|
Sr.x += Br, Sr.y += gr;
|
|
30411
|
-
})(ae.positionedLines, Vt, xt, vn,
|
|
30411
|
+
})(ae.positionedLines, Vt, xt, vn, nn, en), ae.top += -vn * en, ae.bottom = ae.top + en, ae.left += -xt * nn, ae.right = ae.left + nn, ae.hasBaseline = vt;
|
|
30412
30412
|
}(he, e, n, a, $, m, y, b, A, w, R, z), !function(ae) {
|
|
30413
30413
|
for (const _e of ae)
|
|
30414
30414
|
if (_e.positionedGlyphs.length !== 0)
|
|
@@ -30738,7 +30738,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30738
30738
|
});
|
|
30739
30739
|
}
|
|
30740
30740
|
_doesCharSupportLocalGlyph(e) {
|
|
30741
|
-
return this.localGlyphMode !== X1.none && (this.localGlyphMode === X1.all ? !!this.localFontFamily : !!this.localFontFamily && (
|
|
30741
|
+
return this.localGlyphMode !== X1.none && (this.localGlyphMode === X1.all ? !!this.localFontFamily : !!this.localFontFamily && (an["CJK Unified Ideographs"](e) || an["Hangul Syllables"](e) || an.Hiragana(e) || an.Katakana(e) || an["CJK Symbols and Punctuation"](e) || an["CJK Unified Ideographs Extension A"](e) || an["CJK Unified Ideographs Extension B"](e)));
|
|
30742
30742
|
}
|
|
30743
30743
|
_tinySDF(e, n, a) {
|
|
30744
30744
|
const u = this.localFontFamily;
|
|
@@ -30817,7 +30817,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30817
30817
|
Q = r_(A, 0, De[0]), ne = r_(R, 0, De[1]), re = r_(A, De[0], De[2]), he = r_(R, De[1], De[3]), ae = De[0] - Q, Ie = De[1] - ne, _e = De[2] - De[0] - re, Pe = De[3] - De[1] - he;
|
|
30818
30818
|
}
|
|
30819
30819
|
const $e = (De, Qe, dt, Ze) => {
|
|
30820
|
-
const lt = i_(De.stretch - Q, re, w, t.left), He = o_(De.fixed - ae, _e, De.stretch, z), st = i_(Qe.stretch - ne, he, E, t.top), kt = o_(Qe.fixed - Ie, Pe, Qe.stretch, B), ft = i_(dt.stretch - Q, re, w, t.left),
|
|
30820
|
+
const lt = i_(De.stretch - Q, re, w, t.left), He = o_(De.fixed - ae, _e, De.stretch, z), st = i_(Qe.stretch - ne, he, E, t.top), kt = o_(Qe.fixed - Ie, Pe, Qe.stretch, B), ft = i_(dt.stretch - Q, re, w, t.left), nn = o_(dt.fixed - ae, _e, dt.stretch, z), Vt = i_(Ze.stretch - ne, he, E, t.top), vt = o_(Ze.fixed - Ie, Pe, Ze.stretch, B), En = new me(lt, st), dn = new me(ft, st), en = new me(ft, Vt), xt = new me(lt, Vt), vn = new me(He / m, kt / m), Gn = new me(nn / m, vt / m), In = e * Math.PI / 180;
|
|
30821
30821
|
if (In) {
|
|
30822
30822
|
const gr = Math.sin(In), yr = Math.cos(In), Sr = [yr, -gr, gr, yr];
|
|
30823
30823
|
En._matMult(Sr), dn._matMult(Sr), xt._matMult(Sr), en._matMult(Sr);
|
|
@@ -30991,7 +30991,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
30991
30991
|
const He = $.get("icon-text-fit").evaluate(e, {}, A), st = $.get("icon-text-fit-padding").evaluate(e, {}, A), kt = He !== "none";
|
|
30992
30992
|
let ft;
|
|
30993
30993
|
t.hasAnyIconTextFit === !1 && kt && (t.hasAnyIconTextFit = !0), a && kt && (t.allowVerticalPlacement && n.vertical && (ft = ET(a, n.vertical, He, st, H, he)), Q && (a = ET(a, Q, He, st, H, he)));
|
|
30994
|
-
const
|
|
30994
|
+
const nn = (Vt, vt, En) => {
|
|
30995
30995
|
if (vt.x < 0 || vt.x >= Ut || vt.y < 0 || vt.y >= Ut)
|
|
30996
30996
|
return;
|
|
30997
30997
|
let dn = null;
|
|
@@ -31020,7 +31020,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31020
31020
|
ss = s_(Br, iu, xt, gr, yr, Sr, Hn, ki, $o), $E = 4 * Go.length;
|
|
31021
31021
|
const ZE = en.iconSizeData;
|
|
31022
31022
|
let ou = null;
|
|
31023
|
-
ZE.kind === "source" ? (ou = [Ls * zn.layout.get("icon-size").evaluate(ii, {}, Hr)], ou[0] > zl &&
|
|
31023
|
+
ZE.kind === "source" ? (ou = [Ls * zn.layout.get("icon-size").evaluate(ii, {}, Hr)], ou[0] > zl && sn(`${en.layerIds[0]}: Value for "icon-size" is >= ${mp}. Reduce your "icon-size".`)) : ZE.kind === "composite" && (ou = [Ls * Vi.compositeIconSizes[0].evaluate(ii, {}, Hr), Ls * Vi.compositeIconSizes[1].evaluate(ii, {}, Hr)], (ou[0] > zl || ou[1] > zl) && sn(`${en.layerIds[0]}: Value for "icon-size" is >= ${mp}. Reduce your "icon-size".`)), en.addSymbols(en.icon, Go, ou, Kr, Xi, ii, !1, vn, xt, So.lineStartIndex, So.lineLength, -1, Gi, Hr, Vo, Vl), wv = en.icon.placedSymbolArray.length - 1, Ph && (GE = 4 * Ph.length, en.addSymbols(en.icon, Ph, ou, Kr, Xi, ii, is.vertical, vn, xt, So.lineStartIndex, So.lineLength, -1, Gi, Hr, Vo, Vl), Sv = en.icon.placedSymbolArray.length - 1);
|
|
31024
31024
|
}
|
|
31025
31025
|
for (const $o in In.horizontal) {
|
|
31026
31026
|
const Go = In.horizontal[$o];
|
|
@@ -31034,33 +31034,33 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31034
31034
|
const Iv = ($o, Go) => $o ? Math.max($o, Go) : Go;
|
|
31035
31035
|
$l = Iv(UE, $l), $l = Iv(jE, $l), $l = Iv(VE, $l);
|
|
31036
31036
|
const y4 = $l > -1 ? 1 : 0;
|
|
31037
|
-
en.glyphOffsetArray.length >= 65535 &&
|
|
31037
|
+
en.glyphOffsetArray.length >= 65535 && sn("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), ii.sortKey !== void 0 && en.addToSortKeyRanges(en.symbolInstances.length, ii.sortKey), en.symbolInstances.emplaceBack(xt.x, xt.y, iu.x, iu.y, iu.z, ca.right >= 0 ? ca.right : -1, ca.center >= 0 ? ca.center : -1, ca.left >= 0 ? ca.left : -1, ca.vertical >= 0 ? ca.vertical : -1, wv, Sv, WE, ho !== void 0 ? ho : en.collisionBoxArray.length, ho !== void 0 ? ho + 1 : en.collisionBoxArray.length, Rp !== void 0 ? Rp : en.collisionBoxArray.length, Rp !== void 0 ? Rp + 1 : en.collisionBoxArray.length, ss !== void 0 ? ss : en.collisionBoxArray.length, ss !== void 0 ? ss + 1 : en.collisionBoxArray.length, C_ || en.collisionBoxArray.length, C_ ? C_ + 1 : en.collisionBoxArray.length, gr, HE, qE, $E, GE, y4, 0, Ev, Cv, $l, 0, Tv ? 1 : 0);
|
|
31038
31038
|
})(t, vt, dn, Vt, n, a, u, ft, t.layers[0], t.collisionBoxArray, e.index, e.sourceLayerIndex, t.index, Ie, De, b, 0, Pe, Qe, H, e, d, w, E, A, D, z);
|
|
31039
31039
|
};
|
|
31040
31040
|
if (dt === "line")
|
|
31041
31041
|
for (const Vt of PT(e.geometry, 0, 0, Ut, Ut)) {
|
|
31042
31042
|
const vt = YD(Vt, _e, $e, n.vertical || Q, a, ne, ae, t.overscaling, Ut);
|
|
31043
31043
|
for (const En of vt)
|
|
31044
|
-
Q && t5(t, Q.text, Ze, En) ||
|
|
31044
|
+
Q && t5(t, Q.text, Ze, En) || nn(Vt, En, A);
|
|
31045
31045
|
}
|
|
31046
31046
|
else if (dt === "line-center") {
|
|
31047
31047
|
for (const Vt of e.geometry)
|
|
31048
31048
|
if (Vt.length > 1) {
|
|
31049
31049
|
const vt = ZD(Vt, $e, n.vertical || Q, a, ne, ae);
|
|
31050
|
-
vt &&
|
|
31050
|
+
vt && nn(Vt, vt, A);
|
|
31051
31051
|
}
|
|
31052
31052
|
} else if (e.type === "Polygon")
|
|
31053
31053
|
for (const Vt of z1(e.geometry, 0)) {
|
|
31054
31054
|
const vt = KD(Vt, 16);
|
|
31055
|
-
|
|
31055
|
+
nn(Vt[0], new qa(vt.x, vt.y, 0, 0, void 0), A);
|
|
31056
31056
|
}
|
|
31057
31057
|
else if (e.type === "LineString")
|
|
31058
31058
|
for (const Vt of e.geometry)
|
|
31059
|
-
|
|
31059
|
+
nn(Vt, new qa(Vt[0].x, Vt[0].y, 0, 0, void 0), A);
|
|
31060
31060
|
else if (e.type === "Point")
|
|
31061
31061
|
for (const Vt of e.geometry)
|
|
31062
31062
|
for (const vt of Vt)
|
|
31063
|
-
|
|
31063
|
+
nn([vt], new qa(vt.x, vt.y, 0, 0, void 0), A);
|
|
31064
31064
|
}
|
|
31065
31065
|
const mp = 255, zl = mp * Ls;
|
|
31066
31066
|
function FT(t, e, n, a, u, d, m, y, b, w, E, A, R, D, z, B, $, H) {
|
|
@@ -31068,18 +31068,18 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31068
31068
|
const dt = [];
|
|
31069
31069
|
if (ae.positionedLines.length === 0)
|
|
31070
31070
|
return dt;
|
|
31071
|
-
const Ze = Ie.layout.get("text-rotate").evaluate($e, {}) * Math.PI / 180, lt = function(
|
|
31072
|
-
const Vt =
|
|
31071
|
+
const Ze = Ie.layout.get("text-rotate").evaluate($e, {}) * Math.PI / 180, lt = function(nn) {
|
|
31072
|
+
const Vt = nn[0], vt = nn[1], En = Vt * vt;
|
|
31073
31073
|
return En > 0 ? [Vt, -vt] : En < 0 ? [-Vt, vt] : Vt === 0 ? [vt, Vt] : [vt, -Vt];
|
|
31074
31074
|
}(_e);
|
|
31075
31075
|
let He = Math.abs(ae.top - ae.bottom);
|
|
31076
|
-
for (const
|
|
31077
|
-
He -=
|
|
31076
|
+
for (const nn of ae.positionedLines)
|
|
31077
|
+
He -= nn.lineOffset;
|
|
31078
31078
|
const st = ae.positionedLines.length, kt = He / st;
|
|
31079
31079
|
let ft = ae.top - _e[1];
|
|
31080
|
-
for (let
|
|
31081
|
-
const Vt = ae.positionedLines[
|
|
31082
|
-
ft = XD(ae, kt, ft,
|
|
31080
|
+
for (let nn = 0; nn < st; ++nn) {
|
|
31081
|
+
const Vt = ae.positionedLines[nn];
|
|
31082
|
+
ft = XD(ae, kt, ft, nn);
|
|
31083
31083
|
for (const vt of Vt.positionedGlyphs) {
|
|
31084
31084
|
if (!vt.rect)
|
|
31085
31085
|
continue;
|
|
@@ -31090,7 +31090,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31090
31090
|
if (!Kr)
|
|
31091
31091
|
continue;
|
|
31092
31092
|
if (Kr.sdf) {
|
|
31093
|
-
|
|
31093
|
+
sn("SDF images are not supported in formatted text and will be ignored.");
|
|
31094
31094
|
continue;
|
|
31095
31095
|
}
|
|
31096
31096
|
en = !1, xt = Kr.pixelRatio, dn = jo / xt;
|
|
@@ -31124,7 +31124,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31124
31124
|
return dt;
|
|
31125
31125
|
}(0, a, b, d, m, y, u, t.allowVerticalPlacement), re = t.textSizeData;
|
|
31126
31126
|
let ne = null;
|
|
31127
|
-
re.kind === "source" ? (ne = [Ls * d.layout.get("text-size").evaluate(y, {}, $)], ne[0] > zl &&
|
|
31127
|
+
re.kind === "source" ? (ne = [Ls * d.layout.get("text-size").evaluate(y, {}, $)], ne[0] > zl && sn(`${t.layerIds[0]}: Value for "text-size" is >= ${mp}. Reduce your "text-size".`)) : re.kind === "composite" && (ne = [Ls * z.compositeTextSizes[0].evaluate(y, {}, $), Ls * z.compositeTextSizes[1].evaluate(y, {}, $)], (ne[0] > zl || ne[1] > zl) && sn(`${t.layerIds[0]}: Value for "text-size" is >= ${mp}. Reduce your "text-size".`)), t.addSymbols(t.text, Q, ne, b, m, y, E, e, n, w.lineStartIndex, w.lineLength, D, B, $, H, !1);
|
|
31128
31128
|
for (const he of A)
|
|
31129
31129
|
R[he] = t.text.placedSymbolArray.length - 1;
|
|
31130
31130
|
return 4 * Q.length;
|
|
@@ -31262,7 +31262,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31262
31262
|
m * a < 0 && (y -= Math.PI * Math.sign(e) * Math.sign(m));
|
|
31263
31263
|
const b = et(this.center[0]) * a;
|
|
31264
31264
|
y = An(y, -Math.PI - b, Math.PI - b);
|
|
31265
|
-
const w =
|
|
31265
|
+
const w = St(Kt(y / a) + this.center[0], -180, 180), E = Math.asin(St((u - (e * e + m * m) * a * a) / (2 * a), -1, 1)), A = St(Kt(E), -Kn, Kn);
|
|
31266
31266
|
return new Re(w, A);
|
|
31267
31267
|
}
|
|
31268
31268
|
}
|
|
@@ -31276,9 +31276,9 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31276
31276
|
unproject(e, n) {
|
|
31277
31277
|
e = (2 * e - 0.5) * Math.PI;
|
|
31278
31278
|
let a = n = (2 * (1 - n) - 1) * Math.PI, u = a * a, d = u * u * u;
|
|
31279
|
-
for (let E, A, R, D = 0; D < 12 && (A = a * (_p + yp * u + d * (vp + xp * u)) - n, R = _p + 3 * yp * u + d * (7 * vp + 9 * xp * u), E = A / R, a =
|
|
31279
|
+
for (let E, A, R, D = 0; D < 12 && (A = a * (_p + yp * u + d * (vp + xp * u)) - n, R = _p + 3 * yp * u + d * (7 * vp + 9 * xp * u), E = A / R, a = St(a - E, -Math.PI / 3, Math.PI / 3), u = a * a, d = u * u * u, !(Math.abs(E) < 1e-12)); ++D)
|
|
31280
31280
|
;
|
|
31281
|
-
const m = a_ * e * (_p + 3 * yp * u + d * (7 * vp + 9 * xp * u)) / Math.cos(a), y = Math.asin(Math.sin(a) / a_), b =
|
|
31281
|
+
const m = a_ * e * (_p + 3 * yp * u + d * (7 * vp + 9 * xp * u)) / Math.cos(a), y = Math.asin(Math.sin(a) / a_), b = St(180 * m / Math.PI, -180, 180), w = St(180 * y / Math.PI, -Kn, Kn);
|
|
31282
31282
|
return new Re(b, w);
|
|
31283
31283
|
}
|
|
31284
31284
|
}
|
|
@@ -31290,7 +31290,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31290
31290
|
return { x: 0.5 + e / 360, y: 0.5 - n / 360, z: 0 };
|
|
31291
31291
|
}
|
|
31292
31292
|
unproject(e, n) {
|
|
31293
|
-
const a = 360 * (e - 0.5), u =
|
|
31293
|
+
const a = 360 * (e - 0.5), u = St(360 * (0.5 - n), -Kn, Kn);
|
|
31294
31294
|
return new Re(a, u);
|
|
31295
31295
|
}
|
|
31296
31296
|
}
|
|
@@ -31320,7 +31320,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31320
31320
|
const { n: a, f: u } = this, d = u - n, m = Math.sign(d), y = Math.sign(a) * Math.sqrt(e * e + d * d);
|
|
31321
31321
|
let b = Math.atan2(e, Math.abs(d)) * m;
|
|
31322
31322
|
d * a < 0 && (b -= Math.PI * Math.sign(e) * m);
|
|
31323
|
-
const w =
|
|
31323
|
+
const w = St(Kt(b / a) + this.center[0], -180, 180), E = St(Kt(2 * Math.atan(Math.pow(u / y, 1 / a)) - Th), -Kn, Kn);
|
|
31324
31324
|
return new Re(w, this.southernCenter ? -E : E);
|
|
31325
31325
|
}
|
|
31326
31326
|
}
|
|
@@ -31348,10 +31348,10 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31348
31348
|
do {
|
|
31349
31349
|
m = a * a;
|
|
31350
31350
|
const w = m * m;
|
|
31351
|
-
d = (a * (1.007226 + m * (0.015085 + w * (0.028874 * m - 0.044475 - 5916e-6 * w))) - n) / (1.007226 + m * (0.045255 + w * (0.259866 * m - 0.311325 - 5916e-6 * 11 * w))), a =
|
|
31351
|
+
d = (a * (1.007226 + m * (0.015085 + w * (0.028874 * m - 0.044475 - 5916e-6 * w))) - n) / (1.007226 + m * (0.045255 + w * (0.259866 * m - 0.311325 - 5916e-6 * 11 * w))), a = St(a - d, -GT, GT);
|
|
31352
31352
|
} while (Math.abs(d) > 1e-6 && --u > 0);
|
|
31353
31353
|
m = a * a;
|
|
31354
|
-
const y =
|
|
31354
|
+
const y = St(Kt(e / (0.8707 + m * (m * (m * m * m * (3971e-6 - 1529e-6 * m) - 0.013791) - 0.131979))), -180, 180), b = Kt(a);
|
|
31355
31355
|
return new Re(y, b);
|
|
31356
31356
|
}
|
|
31357
31357
|
}
|
|
@@ -31368,7 +31368,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31368
31368
|
let y = 0, b = 0;
|
|
31369
31369
|
do {
|
|
31370
31370
|
const w = Math.cos(u), E = Math.sin(u), A = 2 * E * w, R = E * E, D = w * w, z = Math.cos(a / 2), B = Math.sin(a / 2), $ = 2 * z * B, H = B * B, Q = 1 - D * z * z, re = Q ? 1 / Q : 0, ne = Q ? Math.acos(w * z) * Math.sqrt(1 / Q) : 0, he = 0.5 * (2 * ne * w * B + 2 * a / Math.PI) - e, ae = 0.5 * (ne * E + u) - n, _e = 0.5 * re * (D * H + ne * w * z * R) + 1 / Math.PI, Ie = re * ($ * A / 4 - ne * E * B), Pe = 0.125 * re * (A * B - ne * E * D * $), $e = 0.5 * re * (R * z + ne * H * w) + 0.5, De = Ie * Pe - $e * _e;
|
|
31371
|
-
y = (ae * Ie - he * $e) / De, b = (he * Pe - ae * _e) / De, a =
|
|
31371
|
+
y = (ae * Ie - he * $e) / De, b = (he * Pe - ae * _e) / De, a = St(a - y, -Math.PI, Math.PI), u = St(u - b, -HT, HT);
|
|
31372
31372
|
} while ((Math.abs(y) > m || Math.abs(b) > m) && --d > 0);
|
|
31373
31373
|
return new Re(Kt(a), Kt(u));
|
|
31374
31374
|
}
|
|
@@ -31382,7 +31382,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31382
31382
|
return { x: et(e) * u * a + 0.5, y: -Math.sin(et(n)) / u * a + 0.5, z: 0 };
|
|
31383
31383
|
}
|
|
31384
31384
|
unproject(e, n) {
|
|
31385
|
-
const { scale: a, cosPhi: u } = this, d = -(n - 0.5) / a, m =
|
|
31385
|
+
const { scale: a, cosPhi: u } = this, d = -(n - 0.5) / a, m = St(Kt((e - 0.5) / a) / u, -180, 180), y = Math.asin(St(d * u, -1, 1)), b = St(Kt(y), -Kn, Kn);
|
|
31386
31386
|
return new Re(m, b);
|
|
31387
31387
|
}
|
|
31388
31388
|
}
|
|
@@ -31679,8 +31679,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
31679
31679
|
addSymbols(e, n, a, u, d, m, y, b, w, E, A, R, D, z, B, $) {
|
|
31680
31680
|
const H = e.indexArray, Q = e.layoutVertexArray, re = e.globeExtVertexArray, ne = e.segments.prepareSegment(4 * n.length, Q, H, this.canOverlap ? m.sortKey : void 0), he = this.glyphOffsetArray.length, ae = ne.vertexLength, _e = this.allowVerticalPlacement && y === is.vertical ? Math.PI / 2 : 0, Ie = m.text && m.text.sections;
|
|
31681
31681
|
for (let $e = 0; $e < n.length; $e++) {
|
|
31682
|
-
const { tl: De, tr: Qe, bl: dt, br: Ze, texPrimary: lt, texSecondary: He, pixelOffsetTL: st, pixelOffsetBR: kt, minFontScaleX: ft, minFontScaleY:
|
|
31683
|
-
if (c_(Q, w.x, w.y, De.x, en + De.y, lt.x, lt.y, a, vt, st.x, st.y, ft,
|
|
31682
|
+
const { tl: De, tr: Qe, bl: dt, br: Ze, texPrimary: lt, texSecondary: He, pixelOffsetTL: st, pixelOffsetBR: kt, minFontScaleX: ft, minFontScaleY: nn, glyphOffset: Vt, isSDF: vt, sectionIndex: En } = n[$e], dn = ne.vertexLength, en = Vt[1];
|
|
31683
|
+
if (c_(Q, w.x, w.y, De.x, en + De.y, lt.x, lt.y, a, vt, st.x, st.y, ft, nn), c_(Q, w.x, w.y, Qe.x, en + Qe.y, lt.x + lt.w, lt.y, a, vt, kt.x, st.y, ft, nn), c_(Q, w.x, w.y, dt.x, en + dt.y, lt.x, lt.y + lt.h, a, vt, st.x, kt.y, ft, nn), c_(Q, w.x, w.y, Ze.x, en + Ze.y, lt.x + lt.w, lt.y + lt.h, a, vt, kt.x, kt.y, ft, nn), b) {
|
|
31684
31684
|
const { x: xt, y: vn, z: Gn } = b.anchor, [In, Hn, Pn] = b.up;
|
|
31685
31685
|
h_(re, xt, vn, Gn, In, Hn, Pn), h_(re, xt, vn, Gn, In, Hn, Pn), h_(re, xt, vn, Gn, In, Hn, Pn), h_(re, xt, vn, Gn, In, Hn, Pn), d_(e.dynamicLayoutVertexArray, xt, vn, Gn, _e);
|
|
31686
31686
|
} else
|
|
@@ -32090,22 +32090,22 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32090
32090
|
}(A);
|
|
32091
32091
|
{
|
|
32092
32092
|
const H = new Is(), [Q, re, ne, he] = function(st) {
|
|
32093
|
-
let kt = st[0].x, ft = kt,
|
|
32093
|
+
let kt = st[0].x, ft = kt, nn = st[0].y, Vt = nn;
|
|
32094
32094
|
for (let vt = 1; vt < st.length; vt++)
|
|
32095
|
-
st[vt].x < kt ? kt = st[vt].x : st[vt].x > ft && (ft = st[vt].x), st[vt].y <
|
|
32096
|
-
return [kt,
|
|
32097
|
-
}(a), ae = (st) => [(st.x - Q) / ne, (st.y - re) / he], [_e, Ie, Pe, $e] = a.map(ae), De = function(st, kt, ft,
|
|
32098
|
-
const en = g_(0, 0, 1, 0, 1, 1, 0, 1), xt = g_(st, kt, ft,
|
|
32095
|
+
st[vt].x < kt ? kt = st[vt].x : st[vt].x > ft && (ft = st[vt].x), st[vt].y < nn ? nn = st[vt].y : st[vt].y > Vt && (Vt = st[vt].y);
|
|
32096
|
+
return [kt, nn, ft - kt, Vt - nn];
|
|
32097
|
+
}(a), ae = (st) => [(st.x - Q) / ne, (st.y - re) / he], [_e, Ie, Pe, $e] = a.map(ae), De = function(st, kt, ft, nn, Vt, vt, En, dn) {
|
|
32098
|
+
const en = g_(0, 0, 1, 0, 1, 1, 0, 1), xt = g_(st, kt, ft, nn, Vt, vt, En, dn), vn = s.co.adjoint([], xt);
|
|
32099
32099
|
return s.co.multiply(en, en, vn);
|
|
32100
32100
|
}(_e[0], _e[1], Ie[0], Ie[1], Pe[0], Pe[1], $e[0], $e[1]);
|
|
32101
32101
|
this.elevatedGlobePerspectiveTransform = YT(_e[0], _e[1], Ie[0], Ie[1], Pe[0], Pe[1], $e[0], $e[1]);
|
|
32102
32102
|
const Qe = (st, kt) => {
|
|
32103
32103
|
E.push(st.lng);
|
|
32104
|
-
const ft = Math.round((st.lng - D) / B * Ut),
|
|
32105
|
-
H.emplaceBack(ft,
|
|
32104
|
+
const ft = Math.round((st.lng - D) / B * Ut), nn = Math.round((st.lat - z) / $ * Ut), Vt = ae(kt), vt = s.N.transformMat3([], [Vt[0], Vt[1], 1], De), En = Math.round(vt[0] / vt[2] * Ut), dn = Math.round(vt[1] / vt[2] * Ut);
|
|
32105
|
+
H.emplaceBack(ft, nn, En, dn);
|
|
32106
32106
|
}, dt = a[3].x - a[0].x, Ze = a[3].y - a[0].y, lt = a[2].x - a[1].x, He = a[2].y - a[1].y;
|
|
32107
32107
|
for (let st = 0; st < 65; st++) {
|
|
32108
|
-
const kt = st / 64, ft = [a[0].x + kt * dt, a[0].y + kt * Ze],
|
|
32108
|
+
const kt = st / 64, ft = [a[0].x + kt * dt, a[0].y + kt * Ze], nn = [a[1].x + kt * lt, a[1].y + kt * He], Vt = nn[0] - ft[0], vt = nn[1] - ft[1];
|
|
32109
32109
|
for (let En = 0; En < 65; En++) {
|
|
32110
32110
|
const dn = En / 64, en = { x: ft[0] + Vt * dn, y: ft[1] + vt * dn, z: 0 };
|
|
32111
32111
|
Qe(n.projection.unproject(en.x, en.y), en);
|
|
@@ -32281,7 +32281,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32281
32281
|
function QT(t, e) {
|
|
32282
32282
|
const n = y_(t.projection, t.zoom, t.width, t.height), a = function(d, m, y, b, w) {
|
|
32283
32283
|
const E = new Re(y.lng - 180 * Fl, y.lat), A = new Re(y.lng + 180 * Fl, y.lat), R = d.project(E.lng, E.lat), D = d.project(A.lng, A.lat), z = -Math.atan2(D.y - R.y, D.x - R.x), B = pr.fromLngLat(y);
|
|
32284
|
-
B.y =
|
|
32284
|
+
B.y = St(B.y, -1 + Fl, 1 - Fl);
|
|
32285
32285
|
const $ = B.toLngLat(), H = d.project($.lng, $.lat), Q = pr.fromLngLat($);
|
|
32286
32286
|
Q.x += Fl;
|
|
32287
32287
|
const re = Q.toLngLat(), ne = d.project(re.lng, re.lat), he = nE(ne.x - H.x, ne.y - H.y, z), ae = pr.fromLngLat($);
|
|
@@ -32302,11 +32302,11 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32302
32302
|
if (!d)
|
|
32303
32303
|
return 0;
|
|
32304
32304
|
const m = Math.min(u, Math.max(n, a)), y = Math.log(m / 1024) / Math.LN2;
|
|
32305
|
-
return
|
|
32305
|
+
return tn(d[0] + y, d[1] + y, e);
|
|
32306
32306
|
}
|
|
32307
32307
|
const Fl = 1 / 4e4;
|
|
32308
32308
|
function tE(t, e) {
|
|
32309
|
-
const n =
|
|
32309
|
+
const n = St(e.lat, -Kn, Kn), a = new Re(e.lng - 180 * Fl, n), u = new Re(e.lng + 180 * Fl, n), d = t.project(a.lng, n), m = t.project(u.lng, n), y = pr.fromLngLat(a), b = pr.fromLngLat(u), w = m.x - d.x, E = m.y - d.y, A = b.x - y.x, R = b.y - y.y, D = Math.sqrt((A * A + R * R) / (w * w + E * E));
|
|
32310
32310
|
return Math.log(D) / Math.LN2;
|
|
32311
32311
|
}
|
|
32312
32312
|
function nE(t, e, n) {
|
|
@@ -32463,7 +32463,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32463
32463
|
addFeature(e, n, a) {
|
|
32464
32464
|
const u = this.layers[0], d = u.layout.get("model-id").evaluate(a, {}, this.canonical);
|
|
32465
32465
|
if (!d)
|
|
32466
|
-
return
|
|
32466
|
+
return sn(`modelId is not evaluated for layer ${u.id} and it is not going to get rendered.`), d;
|
|
32467
32467
|
this.instancesPerModel[d] || (this.instancesPerModel[d] = new sE());
|
|
32468
32468
|
const m = this.instancesPerModel[d], y = m.instancedDataArray, b = new oE(a, y.length);
|
|
32469
32469
|
for (const w of n)
|
|
@@ -32537,8 +32537,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32537
32537
|
s.N.normalize(yr, yr), Pn.dotProductWithUp = s.N.dot(yr, In);
|
|
32538
32538
|
}
|
|
32539
32539
|
return Hn.sort((Pn, lr) => Pn.dotProductWithUp - lr.dotProductWithUp), Hn[0].corners;
|
|
32540
|
-
}(Ze, lt), st = Ze[He[0]], kt = Ze[He[1]], ft = Ze[He[2]],
|
|
32541
|
-
return en > xt ? vt < En ? v_(Ie, kt,
|
|
32540
|
+
}(Ze, lt), st = Ze[He[0]], kt = Ze[He[1]], ft = Ze[He[2]], nn = Ze[He[3]], Vt = dt.getAtPointOrZero(new pr(st[0] / Pe.worldSize, st[1] / Pe.worldSize), 0), vt = dt.getAtPointOrZero(new pr(kt[0] / Pe.worldSize, kt[1] / Pe.worldSize), 0), En = dt.getAtPointOrZero(new pr(ft[0] / Pe.worldSize, ft[1] / Pe.worldSize), 0), dn = dt.getAtPointOrZero(new pr(nn[0] / Pe.worldSize, nn[1] / Pe.worldSize), 0), en = (Vt + dn) / 2, xt = (vt + En) / 2;
|
|
32541
|
+
return en > xt ? vt < En ? v_(Ie, kt, nn, st, vt, dn, Vt, lt) : v_(Ie, ft, st, nn, En, Vt, dn, lt) : Vt < dn ? v_(Ie, st, kt, ft, Vt, vt, En, lt) : v_(Ie, nn, ft, kt, dn, En, vt, lt), Math.max(en, xt);
|
|
32542
32542
|
}(he, n, e.aabb, t, a);
|
|
32543
32543
|
const ae = s.a6.fromQuat([], he), _e = s.a6.multiply([], ae, re);
|
|
32544
32544
|
s.a6.multiply(t, H, _e);
|
|
@@ -32868,7 +32868,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32868
32868
|
}
|
|
32869
32869
|
}, b: H } };
|
|
32870
32870
|
return (WebAssembly.instantiateStreaming ? WebAssembly.instantiateStreaming(D, Q) : D.then((re) => re.arrayBuffer()).then((re) => WebAssembly.instantiate(re, Q))).then((re) => {
|
|
32871
|
-
const { Rb: ne, Qb: he, P: ae, T: _e, X: Ie, Ja: Pe, La: $e, Qa: De, Va: Qe, Wa: dt, eb: Ze, jb: lt, f: He, e: st, yb: kt, zb: ft, Ab:
|
|
32871
|
+
const { Rb: ne, Qb: he, P: ae, T: _e, X: Ie, Ja: Pe, La: $e, Qa: De, Va: Qe, Wa: dt, eb: Ze, jb: lt, f: He, e: st, yb: kt, zb: ft, Ab: nn, Bb: Vt, Db: vt, Gb: En } = re.instance.exports;
|
|
32872
32872
|
B = st;
|
|
32873
32873
|
const dn = (() => {
|
|
32874
32874
|
let en = 0, xt = 0, vn = 0, Gn = 0;
|
|
@@ -32912,7 +32912,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32912
32912
|
GetAttributeDataArrayForAllPoints(en, xt, vn, Gn, In) {
|
|
32913
32913
|
Ze(this.ptr, en.ptr, xt.ptr, vn, Gn, In);
|
|
32914
32914
|
}
|
|
32915
|
-
}, DT_INT8: kt(), DT_UINT8: ft(), DT_INT16:
|
|
32915
|
+
}, DT_INT8: kt(), DT_UINT8: ft(), DT_INT16: nn(), DT_UINT16: Vt(), DT_UINT32: vt(), DT_FLOAT32: En() };
|
|
32916
32916
|
});
|
|
32917
32917
|
}(fetch(cE())), w_.then((D) => {
|
|
32918
32918
|
Ds = D, w_ = void 0;
|
|
@@ -32927,10 +32927,10 @@ ${JSON.stringify(n, null, 2)}
|
|
|
32927
32927
|
}), H = { NONE: "", OCTAHEDRAL: "meshopt_decodeFilterOct", QUATERNION: "meshopt_decodeFilterQuat", EXPONENTIAL: "meshopt_decodeFilterExp" }, Q = { ATTRIBUTES: "meshopt_decodeVertexBuffer", TRIANGLES: "meshopt_decodeIndexBuffer", INDICES: "meshopt_decodeIndexSequence" };
|
|
32928
32928
|
return { ready: $, supported: !0, decodeGltfBuffer(re, ne, he, ae, _e, Ie) {
|
|
32929
32929
|
(function(Pe, $e, De, Qe, dt, Ze, lt) {
|
|
32930
|
-
const He = Pe.exports.sbrk, st = Qe + 3 & -4, kt = He(st * dt), ft = He(Ze.length),
|
|
32931
|
-
|
|
32930
|
+
const He = Pe.exports.sbrk, st = Qe + 3 & -4, kt = He(st * dt), ft = He(Ze.length), nn = new Uint8Array(Pe.exports.memory.buffer);
|
|
32931
|
+
nn.set(Ze, ft);
|
|
32932
32932
|
const Vt = $e(kt, Qe, dt, ft, Ze.length);
|
|
32933
|
-
if (Vt === 0 && lt && lt(kt, st, dt), De.set(
|
|
32933
|
+
if (Vt === 0 && lt && lt(kt, st, dt), De.set(nn.subarray(kt, kt + Qe * dt)), He(kt - He(0)), Vt !== 0)
|
|
32934
32934
|
throw new Error(`Malformed buffer data: ${Vt}`);
|
|
32935
32935
|
})(B, B.exports[Q[_e]], re, ne, he, ae, B.exports[H[Ie]]);
|
|
32936
32936
|
} };
|
|
@@ -33555,7 +33555,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33555
33555
|
const E = w.footprint.grid, A = n.tileCoordToPixel(E.min.x, E.min.y), R = n.tileCoordToPixel(E.max.x, E.max.y), D = Math.min(Math.min(m - R.y, A.x), Math.min(A.y, m - R.x));
|
|
33556
33556
|
if (D < 0)
|
|
33557
33557
|
continue;
|
|
33558
|
-
const z =
|
|
33558
|
+
const z = St(D, 2, 5);
|
|
33559
33559
|
let B = Math.max(0, A.x - z), $ = Math.max(0, A.y - z), H = Math.min(R.x + z, m - 1), Q = Math.min(R.y + z, m - 1);
|
|
33560
33560
|
for (let ae = $; ae <= Q; ++ae)
|
|
33561
33561
|
for (let _e = B; _e <= H; ++_e)
|
|
@@ -33644,14 +33644,14 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33644
33644
|
let b = (61440 & e | (61440 & e) >> 4) >> 8, w = (3840 & e | (3840 & e) >> 4) >> 4, E = 240 & e | (240 & e) >> 4;
|
|
33645
33645
|
n[3] > 0 && (b = ar(b, 255 * n[0], n[3]), w = ar(w, 255 * n[1], n[3]), E = ar(E, 255 * n[2], n[3]));
|
|
33646
33646
|
const A = b << 8 | w, R = E << 8 | Math.floor(255 * a[3]), D = function(ae) {
|
|
33647
|
-
const _e =
|
|
33647
|
+
const _e = St(ae, 0, 2);
|
|
33648
33648
|
return Math.min(Math.round(0.5 * _e * 255), 255);
|
|
33649
|
-
}(a[2]) << 8 | 15 * a[0] << 4 | 15 * a[1], z =
|
|
33649
|
+
}(a[2]) << 8 | 15 * a[0] << 4 | 15 * a[1], z = St(u[0], 0, 1), B = St(u[1], 0, 1), $ = St(u[2], 0, 1), H = St(u[3], 0, 1);
|
|
33650
33650
|
let Q, re, ne, he;
|
|
33651
33651
|
if (z !== B && m !== d && B !== z) {
|
|
33652
33652
|
const ae = m - d;
|
|
33653
33653
|
re = 1 / (ae * (B - z)), ne = -(d + ae * z) / (ae * (B - z));
|
|
33654
|
-
const _e =
|
|
33654
|
+
const _e = St(u[4], -1, 1);
|
|
33655
33655
|
he = Math.pow(10, _e), Q = 255 * $ << 8 | 255 * H;
|
|
33656
33656
|
} else
|
|
33657
33657
|
Q = 65535, re = 0, ne = 1, he = 1;
|
|
@@ -33818,7 +33818,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33818
33818
|
return !1;
|
|
33819
33819
|
d.projection.name === "globe" && (a = tT([a], [new me(0, 0), new me(Ut, Ut)], t.tileID.canonical).map((ne) => ne.polygon).flat());
|
|
33820
33820
|
const $ = D ? y : null, [H, Q] = function(ne, he, ae, _e, Ie, Pe, $e, De, Qe, dt, Ze) {
|
|
33821
|
-
return ne.projection.name === "globe" ? function(lt, He, st, kt, ft,
|
|
33821
|
+
return ne.projection.name === "globe" ? function(lt, He, st, kt, ft, nn, Vt, vt, En, dn, en) {
|
|
33822
33822
|
const xt = [], vn = [], Gn = lt.projection.upVectorScale(en, lt.center.lat, lt.worldSize).metersToTile, In = [0, 0, 0, 1], Hn = [0, 0, 0, 1], Pn = (zn, Br, gr, yr) => {
|
|
33823
33823
|
zn[0] = Br, zn[1] = gr, zn[2] = yr, zn[3] = 1;
|
|
33824
33824
|
}, lr = eT();
|
|
@@ -33832,17 +33832,17 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33832
33832
|
const Xi = rT(Sr, _r, st, kt, Vt, vt, En, dn);
|
|
33833
33833
|
pi += Xi.base, ki += Xi.top;
|
|
33834
33834
|
}
|
|
33835
|
-
st !== 0 ? Pn(In, Qr.x + Rr[0] * Gn * pi, Qr.y + Rr[1] * Gn * pi, Qr.z + Rr[2] * Gn * pi) : Pn(In, Qr.x, Qr.y, Qr.z), Pn(Hn, Qr.x + Rr[0] * Gn * ki, Qr.y + Rr[1] * Gn * ki, Qr.z + Rr[2] * Gn * ki), s.N.transformMat4(In, In,
|
|
33835
|
+
st !== 0 ? Pn(In, Qr.x + Rr[0] * Gn * pi, Qr.y + Rr[1] * Gn * pi, Qr.z + Rr[2] * Gn * pi) : Pn(In, Qr.x, Qr.y, Qr.z), Pn(Hn, Qr.x + Rr[0] * Gn * ki, Qr.y + Rr[1] * Gn * ki, Qr.z + Rr[2] * Gn * ki), s.N.transformMat4(In, In, nn), s.N.transformMat4(Hn, Hn, nn), Br.push(new gh(In[0], In[1], In[2])), gr.push(new gh(Hn[0], Hn[1], Hn[2]));
|
|
33836
33836
|
}
|
|
33837
33837
|
xt.push(Br), vn.push(gr);
|
|
33838
33838
|
}
|
|
33839
33839
|
return [xt, vn];
|
|
33840
|
-
}(ne, he, ae, _e, Ie, Pe, $e, De, Qe, dt, Ze) : $e ? function(lt, He, st, kt, ft,
|
|
33840
|
+
}(ne, he, ae, _e, Ie, Pe, $e, De, Qe, dt, Ze) : $e ? function(lt, He, st, kt, ft, nn, Vt, vt, En) {
|
|
33841
33841
|
const dn = [], en = [], xt = [0, 0, 0, 1];
|
|
33842
33842
|
for (const vn of lt) {
|
|
33843
33843
|
const Gn = [], In = [];
|
|
33844
33844
|
for (const Hn of vn) {
|
|
33845
|
-
const Pn = Hn.x + kt.x, lr = Hn.y + kt.y, zn = rT(Pn, lr, He, st,
|
|
33845
|
+
const Pn = Hn.x + kt.x, lr = Hn.y + kt.y, zn = rT(Pn, lr, He, st, nn, Vt, vt, En);
|
|
33846
33846
|
xt[0] = Pn, xt[1] = lr, xt[2] = zn.base, xt[3] = 1, s.a7.transformMat4(xt, xt, ft), xt[3] = Math.max(xt[3], 1e-5);
|
|
33847
33847
|
const Br = new gh(xt[0] / xt[3], xt[1] / xt[3], xt[2] / xt[3]);
|
|
33848
33848
|
xt[0] = Pn, xt[1] = lr, xt[2] = zn.top, xt[3] = 1, s.a7.transformMat4(xt, xt, ft), xt[3] = Math.max(xt[3], 1e-5);
|
|
@@ -33853,16 +33853,16 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33853
33853
|
}
|
|
33854
33854
|
return [dn, en];
|
|
33855
33855
|
}(he, ae, _e, Ie, Pe, $e, De, Qe, dt) : function(lt, He, st, kt, ft) {
|
|
33856
|
-
const
|
|
33856
|
+
const nn = [], Vt = [], vt = ft[8] * He, En = ft[9] * He, dn = ft[10] * He, en = ft[11] * He, xt = ft[8] * st, vn = ft[9] * st, Gn = ft[10] * st, In = ft[11] * st;
|
|
33857
33857
|
for (const Hn of lt) {
|
|
33858
33858
|
const Pn = [], lr = [];
|
|
33859
33859
|
for (const zn of Hn) {
|
|
33860
33860
|
const Br = zn.x + kt.x, gr = zn.y + kt.y, yr = ft[0] * Br + ft[4] * gr + ft[12], Sr = ft[1] * Br + ft[5] * gr + ft[13], _r = ft[2] * Br + ft[6] * gr + ft[14], Qr = ft[3] * Br + ft[7] * gr + ft[15], Rr = yr + vt, pi = Sr + En, ki = _r + dn, Xi = Math.max(Qr + en, 1e-5), Kr = yr + xt, ii = Sr + vn, Vi = _r + Gn, $i = Math.max(Qr + In, 1e-5);
|
|
33861
33861
|
Pn.push(new gh(Rr / Xi, pi / Xi, ki / Xi)), lr.push(new gh(Kr / $i, ii / $i, Vi / $i));
|
|
33862
33862
|
}
|
|
33863
|
-
|
|
33863
|
+
nn.push(Pn), Vt.push(lr);
|
|
33864
33864
|
}
|
|
33865
|
-
return [
|
|
33865
|
+
return [nn, Vt];
|
|
33866
33866
|
}(he, ae, _e, Ie, Pe);
|
|
33867
33867
|
}(d, a, A, E, w, m, $, R, z, d.center.lat, t.tileID.canonical), re = t.queryGeometry;
|
|
33868
33868
|
return function(ne, he, ae) {
|
|
@@ -33975,7 +33975,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
33975
33975
|
getCenter(t, e) {
|
|
33976
33976
|
if (this.paint.get("sky-type") === "atmosphere") {
|
|
33977
33977
|
const a = this.paint.get("sky-atmosphere-sun"), u = !a, d = t.style.light, m = d.properties.get("position");
|
|
33978
|
-
return u && d.properties.get("anchor") === "viewport" &&
|
|
33978
|
+
return u && d.properties.get("anchor") === "viewport" && sn("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."), u ? ov(m.azimuthal, 90 - m.polar, e) : ov(a[0], 90 - a[1], e);
|
|
33979
33979
|
}
|
|
33980
33980
|
const n = this.paint.get("sky-gradient-center");
|
|
33981
33981
|
return ov(n[0], 90 - n[1], e);
|
|
@@ -34503,7 +34503,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34503
34503
|
var ss = new os(Math.max(2 * ho, So));
|
|
34504
34504
|
ss.set(Ie), Ie = ss;
|
|
34505
34505
|
}
|
|
34506
|
-
}, lt = _e.f || 0, He = _e.p || 0, st = _e.b || 0, kt = _e.l, ft = _e.d,
|
|
34506
|
+
}, lt = _e.f || 0, He = _e.p || 0, st = _e.b || 0, kt = _e.l, ft = _e.d, nn = _e.m, Vt = _e.n, vt = 8 * $e;
|
|
34507
34507
|
do {
|
|
34508
34508
|
if (!kt) {
|
|
34509
34509
|
lt = Ns(ae, He, 1);
|
|
@@ -34518,7 +34518,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34518
34518
|
continue;
|
|
34519
34519
|
}
|
|
34520
34520
|
if (En == 1)
|
|
34521
|
-
kt = l4, ft = c4,
|
|
34521
|
+
kt = l4, ft = c4, nn = 9, Vt = 5;
|
|
34522
34522
|
else if (En == 2) {
|
|
34523
34523
|
var xt = Ns(ae, He, 31) + 257, vn = Ns(ae, He + 10, 15) + 4, Gn = xt + Ns(ae, He + 5, 31) + 1;
|
|
34524
34524
|
He += 14;
|
|
@@ -34537,7 +34537,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34537
34537
|
}
|
|
34538
34538
|
}
|
|
34539
34539
|
var Qr = In.subarray(0, xt), Rr = In.subarray(xt);
|
|
34540
|
-
|
|
34540
|
+
nn = _v(Qr), Vt = _v(Rr), kt = Ip(Qr, nn, 1), ft = Ip(Rr, Vt, 1);
|
|
34541
34541
|
} else
|
|
34542
34542
|
zs(1);
|
|
34543
34543
|
if (He > vt) {
|
|
@@ -34546,7 +34546,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34546
34546
|
}
|
|
34547
34547
|
}
|
|
34548
34548
|
Qe && Ze(st + 131072);
|
|
34549
|
-
for (var pi = (1 <<
|
|
34549
|
+
for (var pi = (1 << nn) - 1, ki = (1 << Vt) - 1, Xi = He; ; Xi = He) {
|
|
34550
34550
|
var Kr = (Sr = kt[yv(ae, He) & pi]) >> 4;
|
|
34551
34551
|
if ((He += 15 & Sr) > vt) {
|
|
34552
34552
|
dt && zs(0);
|
|
@@ -34581,7 +34581,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34581
34581
|
Ie[st] = Ie[st - Rr];
|
|
34582
34582
|
}
|
|
34583
34583
|
}
|
|
34584
|
-
_e.l = kt, _e.p = Xi, _e.b = st, _e.f = lt, kt && (lt = 1, _e.m =
|
|
34584
|
+
_e.l = kt, _e.p = Xi, _e.b = st, _e.f = lt, kt && (lt = 1, _e.m = nn, _e.d = ft, _e.n = Vt);
|
|
34585
34585
|
} while (!lt);
|
|
34586
34586
|
return st != Ie.length && De ? function(So, ho, ss) {
|
|
34587
34587
|
return (ho == null || ho < 0) && (ho = 0), (ss == null || ss > So.length) && (ss = So.length), new os(So.subarray(ho, ss));
|
|
@@ -34769,7 +34769,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34769
34769
|
for (const t of this.nodes)
|
|
34770
34770
|
cv(t);
|
|
34771
34771
|
}
|
|
34772
|
-
}, s.O =
|
|
34772
|
+
}, s.O = tn, s.P = me, s.Q = Pc, s.R = jr, s.S = Ll, s.T = iv, s.U = ar, s.V = Ut, s.W = Nm, s.X = class {
|
|
34773
34773
|
constructor(t) {
|
|
34774
34774
|
this.specification = t;
|
|
34775
34775
|
}
|
|
@@ -34812,7 +34812,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34812
34812
|
return la(t);
|
|
34813
34813
|
const a = Bg(t), u = A1(a), d = Un(a.getWest()) * e.worldSize, m = Un(a.getEast()) * e.worldSize, y = Mn(a.getNorth()) * e.worldSize, b = Mn(a.getSouth()) * e.worldSize, w = [d, y, 0], E = [m, y, 0], A = [d, b, 0], R = [m, b, 0], D = s.a6.invert([], e.globeMatrix);
|
|
34814
34814
|
return s.N.transformMat4(w, w, D), s.N.transformMat4(E, E, D), s.N.transformMat4(A, A, D), s.N.transformMat4(R, R, D), u[0] = Ga(u[0], A, n), u[1] = Ga(u[1], R, n), u[2] = Ga(u[2], E, n), u[3] = Ga(u[3], w, n), hi.fromPoints(u);
|
|
34815
|
-
}, s.aT = Ug, s.aU = ip, s.aV = Ga, s.aW = co, s.aX = dk, s.aY = jt, s.aZ = OE, s.a_ = Ke, s.aa =
|
|
34815
|
+
}, s.aT = Ug, s.aU = ip, s.aV = Ga, s.aW = co, s.aX = dk, s.aY = jt, s.aZ = OE, s.a_ = Ke, s.aa = St, s.ab = te, s.ac = function(t, e) {
|
|
34816
34816
|
const n = {};
|
|
34817
34817
|
for (let a = 0; a < e.length; a++) {
|
|
34818
34818
|
const u = e[a];
|
|
@@ -34939,8 +34939,8 @@ ${JSON.stringify(n, null, 2)}
|
|
|
34939
34939
|
}, s.cC = (t, e, n, a, u, d, m) => {
|
|
34940
34940
|
const y = t.transform, b = y.calculatePixelsToTileUnitsMatrix(e);
|
|
34941
34941
|
return { u_matrix: lT(t, e, n, a), u_pixels_to_tile_units: b, u_device_pixel_ratio: d, u_units_to_pixels: [1 / y.pixelsToGLUnits[0], 1 / y.pixelsToGLUnits[1]], u_dash_image: 0, u_gradient_image: 1, u_image_height: u, u_texsize: uT(n) && e.lineAtlasTexture ? e.lineAtlasTexture.size : [0, 0], u_tile_units_to_pixels: aT(e, t.transform), u_alpha_discard_threshold: 0, u_trim_offset: m, u_emissive_strength: n.paint.get("line-emissive-strength") };
|
|
34942
|
-
}, s.cD = $t, s.cE = op, s.cF = eT, s.cG =
|
|
34943
|
-
return
|
|
34942
|
+
}, s.cD = $t, s.cE = op, s.cF = eT, s.cG = on, s.cH = Jg, s.cI = Ol, s.cJ = 450, s.cK = 7, s.cL = y5, s.cM = 256, s.cN = M1, s.cO = ra, s.cP = Zf, s.cQ = function(t, e, n, a, u) {
|
|
34943
|
+
return St((t - e) / (n - e) * (u - a) + a, a, u);
|
|
34944
34944
|
}, s.cR = Jn, s.cS = sv, s.cT = [1, 1, 1], s.cU = mh, s.cV = Eh, s.cW = ps, s.cX = class {
|
|
34945
34945
|
constructor() {
|
|
34946
34946
|
this._updateTime = 0, this._sourceIds = [], this._activeRegions = [], this._prevRegions = [];
|
|
@@ -35131,7 +35131,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35131
35131
|
return s.a6.translate(a, a, [t.point.x, t.point.y, 0]), s.a6.scale(a, a, [n, n, e]), Float32Array.from(a);
|
|
35132
35132
|
}, s.cf = Bg, s.cg = function(t) {
|
|
35133
35133
|
const e = Kn - 5;
|
|
35134
|
-
t =
|
|
35134
|
+
t = St(t, -e, e) / e * 90;
|
|
35135
35135
|
const n = Math.pow(Math.abs(Math.sin(et(t))), 3);
|
|
35136
35136
|
return Math.round(n * (ge.length - 1));
|
|
35137
35137
|
}, s.ch = function(t, e, n, a) {
|
|
@@ -35303,7 +35303,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35303
35303
|
Ie = Vt ? BT(lt, [Vt * Qi, K1]) : A.get("text-offset").evaluate(H, {}, y).map((vt) => vt * Qi);
|
|
35304
35304
|
}
|
|
35305
35305
|
let st = z ? "center" : A.get("text-justify").evaluate(H, {}, y);
|
|
35306
|
-
const kt = A.get("symbol-placement") === "point", ft = kt ? A.get("text-max-width").evaluate(H, {}, y) * Qi : 1 / 0,
|
|
35306
|
+
const kt = A.get("symbol-placement") === "point", ft = kt ? A.get("text-max-width").evaluate(H, {}, y) * Qi : 1 / 0, nn = (Vt) => {
|
|
35307
35307
|
t.allowVerticalPlacement && Js(De) && (he.vertical = W1(ae, e, n, u, Q, ft, dt, lt, Vt, Ze, Ie, is.vertical, !0, ne, re));
|
|
35308
35308
|
};
|
|
35309
35309
|
if (!z && He) {
|
|
@@ -35319,19 +35319,19 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35319
35319
|
en && (he.horizontal[dn] = en, vt = en.positionedLines.length === 1);
|
|
35320
35320
|
}
|
|
35321
35321
|
}
|
|
35322
|
-
|
|
35322
|
+
nn("left");
|
|
35323
35323
|
} else {
|
|
35324
35324
|
if (st === "auto" && (st = J1(lt)), kt || A.get("text-writing-mode").indexOf("horizontal") >= 0 || !Js(De)) {
|
|
35325
35325
|
const Vt = W1(ae, e, n, u, Q, ft, dt, lt, st, Ze, Ie, is.horizontal, !1, ne, re);
|
|
35326
35326
|
Vt && (he.horizontal[st] = Vt);
|
|
35327
35327
|
}
|
|
35328
|
-
|
|
35328
|
+
nn(kt ? "left" : st);
|
|
35329
35329
|
}
|
|
35330
35330
|
}
|
|
35331
35331
|
let Pe = !1;
|
|
35332
35332
|
if (H.icon && H.icon.namePrimary) {
|
|
35333
35333
|
const De = a[H.icon.namePrimary];
|
|
35334
|
-
De && (_e = WD(u[H.icon.namePrimary], H.icon.nameSecondary ? u[H.icon.nameSecondary] : void 0, A.get("icon-offset").evaluate(H, {}, y), A.get("icon-anchor").evaluate(H, {}, y)), Pe = De.sdf, t.sdfIcons === void 0 ? t.sdfIcons = De.sdf : t.sdfIcons !== De.sdf &&
|
|
35334
|
+
De && (_e = WD(u[H.icon.namePrimary], H.icon.nameSecondary ? u[H.icon.nameSecondary] : void 0, A.get("icon-offset").evaluate(H, {}, y), A.get("icon-anchor").evaluate(H, {}, y)), Pe = De.sdf, t.sdfIcons === void 0 ? t.sdfIcons = De.sdf : t.sdfIcons !== De.sdf && sn("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (De.pixelRatio !== t.pixelRatio || A.get("icon-rotate").constantOr(1) !== 0) && (t.iconsNeedLinear = !0));
|
|
35335
35335
|
}
|
|
35336
35336
|
const $e = UT(he.horizontal) || he.vertical;
|
|
35337
35337
|
t.iconsInText || (t.iconsInText = !!$e && $e.iconsInText), ($e || _e) && e5(t, H, he, _e, a, D, ne, 0, Ie, Pe, m, y, w, E, $);
|
|
@@ -35341,7 +35341,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35341
35341
|
let e = 0;
|
|
35342
35342
|
if (new Uint32Array(t, 0, 1)[0] !== dE) {
|
|
35343
35343
|
const n = new Uint32Array(t, 0, 7), [, , a, u, d, m] = n;
|
|
35344
|
-
e = n.byteLength + u + d + m + d, (a !== t.byteLength || e >= t.byteLength) &&
|
|
35344
|
+
e = n.byteLength + u + d + m + d, (a !== t.byteLength || e >= t.byteLength) && sn("Invalid b3dm header information.");
|
|
35345
35345
|
}
|
|
35346
35346
|
return gE(t, e);
|
|
35347
35347
|
}, s.dQ = function(t, e) {
|
|
@@ -35481,7 +35481,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35481
35481
|
return Ye(_t(t, { type: "json" }), e);
|
|
35482
35482
|
}, s.h = rs, s.i = dl, s.j = Ld, s.k = Yu, s.l = function(t) {
|
|
35483
35483
|
return fetch(t).then((e) => e.arrayBuffer()).then((e) => gE(e, 0, t));
|
|
35484
|
-
}, s.m = rg, s.n = Cc, s.o = kc, s.p = LT, s.q = Qu, s.r = Ju, s.s = Tf, s.t = xc, s.u = Lc, s.v = Zi, s.w =
|
|
35484
|
+
}, s.m = rg, s.n = Cc, s.o = kc, s.p = LT, s.q = Qu, s.r = Ju, s.s = Tf, s.t = xc, s.u = Lc, s.v = Zi, s.w = sn, s.x = _l, s.z = Bf;
|
|
35485
35485
|
}), x(["./shared"], function(s) {
|
|
35486
35486
|
function I(nt) {
|
|
35487
35487
|
const ee = nt ? nt.url.toString() : void 0;
|
|
@@ -35807,14 +35807,14 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35807
35807
|
return [ee, be, le, Je];
|
|
35808
35808
|
}, Oe.prototype.toGeoJSON = et.prototype.toGeoJSON;
|
|
35809
35809
|
var pn = s.dO, Zt = Kt;
|
|
35810
|
-
function
|
|
35810
|
+
function St(nt) {
|
|
35811
35811
|
var ee = new pn();
|
|
35812
35812
|
return function(le, be) {
|
|
35813
35813
|
for (var Je in le.layers)
|
|
35814
|
-
be.writeMessage(3,
|
|
35814
|
+
be.writeMessage(3, tn, le.layers[Je]);
|
|
35815
35815
|
}(nt, ee), ee.finish();
|
|
35816
35816
|
}
|
|
35817
|
-
function
|
|
35817
|
+
function tn(nt, ee) {
|
|
35818
35818
|
var le;
|
|
35819
35819
|
ee.writeVarintField(15, nt.version || 1), ee.writeStringField(1, nt.name || ""), ee.writeVarintField(5, nt.extent || 4096);
|
|
35820
35820
|
var be = { keys: [], values: [], keycache: {}, valuecache: {} };
|
|
@@ -35866,16 +35866,16 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35866
35866
|
var le = typeof nt;
|
|
35867
35867
|
le === "string" ? ee.writeStringField(1, nt) : le === "boolean" ? ee.writeBooleanField(7, nt) : le === "number" && (nt % 1 != 0 ? ee.writeDoubleField(3, nt) : nt < 0 ? ee.writeSVarintField(6, nt) : ee.writeVarintField(5, nt));
|
|
35868
35868
|
}
|
|
35869
|
-
At.exports =
|
|
35869
|
+
At.exports = St, At.exports.fromVectorTileJs = St, At.exports.fromGeojsonVt = function(nt, ee) {
|
|
35870
35870
|
ee = ee || {};
|
|
35871
35871
|
var le = {};
|
|
35872
35872
|
for (var be in nt)
|
|
35873
35873
|
le[be] = new Zt(nt[be].features, ee), le[be].name = be, le[be].version = ee.version, le[be].extent = ee.extent;
|
|
35874
|
-
return
|
|
35874
|
+
return St({ layers: le });
|
|
35875
35875
|
}, At.exports.GeoJSONWrapper = Zt;
|
|
35876
35876
|
var $t = s.dK(At.exports);
|
|
35877
|
-
const Tt = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (nt) => nt }, jt = Math.fround || (
|
|
35878
|
-
var
|
|
35877
|
+
const Tt = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (nt) => nt }, jt = Math.fround || (wt = new Float32Array(1), (nt) => (wt[0] = +nt, wt[0]));
|
|
35878
|
+
var wt;
|
|
35879
35879
|
const Pt = 3, cn = 5, Ln = 6;
|
|
35880
35880
|
class ke {
|
|
35881
35881
|
constructor(ee) {
|
|
@@ -35916,7 +35916,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35916
35916
|
const Ht = this.trees[this._limitZoom(le)], rt = Ht.range(Pr(be), Ar(yt), Pr(ot), Ar(Je)), Jt = Ht.data, Te = [];
|
|
35917
35917
|
for (const ye of rt) {
|
|
35918
35918
|
const tt = this.stride * ye;
|
|
35919
|
-
Te.push(Jt[tt + cn] > 1 ?
|
|
35919
|
+
Te.push(Jt[tt + cn] > 1 ? sn(Jt, tt, this.clusterProps) : this.points[Jt[tt + Pt]]);
|
|
35920
35920
|
}
|
|
35921
35921
|
return Te;
|
|
35922
35922
|
}
|
|
@@ -35930,7 +35930,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
35930
35930
|
const Ht = this.options.radius / (this.options.extent * Math.pow(2, be - 1)), rt = ot.within(yt[le * this.stride], yt[le * this.stride + 1], Ht), Jt = [];
|
|
35931
35931
|
for (const Te of rt) {
|
|
35932
35932
|
const ye = Te * this.stride;
|
|
35933
|
-
yt[ye + 4] === ee && Jt.push(yt[ye + cn] > 1 ?
|
|
35933
|
+
yt[ye + 4] === ee && Jt.push(yt[ye + cn] > 1 ? sn(yt, ye, this.clusterProps) : this.points[yt[ye + Pt]]);
|
|
35934
35934
|
}
|
|
35935
35935
|
if (Jt.length === 0)
|
|
35936
35936
|
throw new Error(Je);
|
|
@@ -36044,7 +36044,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
36044
36044
|
return be && ot === Je ? Object.assign({}, ot) : ot;
|
|
36045
36045
|
}
|
|
36046
36046
|
}
|
|
36047
|
-
function
|
|
36047
|
+
function sn(nt, ee, le) {
|
|
36048
36048
|
return { type: "Feature", id: nt[ee + Pt], properties: Zn(nt, ee, le), geometry: { type: "Point", coordinates: [(be = nt[ee], 360 * (be - 0.5)), Or(nt[ee + 1])] } };
|
|
36049
36049
|
var be;
|
|
36050
36050
|
}
|
|
@@ -37151,7 +37151,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
37151
37151
|
_[P] || p[P].required && p[P].default === void 0 && l[P] === void 0 && C.push(new Oe(r, l, `missing required property "${P}"`));
|
|
37152
37152
|
return C;
|
|
37153
37153
|
}
|
|
37154
|
-
function
|
|
37154
|
+
function St(f) {
|
|
37155
37155
|
const r = f.value, l = f.valueSpec, p = f.style, _ = f.styleSpec, v = f.key, S = f.arrayElementValidator || xn;
|
|
37156
37156
|
if (s.i(r) !== "array")
|
|
37157
37157
|
return [new Oe(v, r, `array expected, ${s.i(r)} found`)];
|
|
@@ -37166,7 +37166,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
37166
37166
|
M = M.concat(S({ array: r, arrayIndex: P, value: r[P], valueSpec: C, style: p, styleSpec: _, key: `${v}[${P}]` }, !0));
|
|
37167
37167
|
return M;
|
|
37168
37168
|
}
|
|
37169
|
-
function
|
|
37169
|
+
function tn(f) {
|
|
37170
37170
|
const r = f.key, l = f.value, p = f.valueSpec;
|
|
37171
37171
|
let _ = s.i(l);
|
|
37172
37172
|
if (_ === "number" && l != l && (_ = "NaN"), _ !== "number")
|
|
@@ -37191,7 +37191,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
37191
37191
|
return [new Oe(j.key, j.value, 'identity function may not have a "stops" property')];
|
|
37192
37192
|
let W = [];
|
|
37193
37193
|
const q = j.value;
|
|
37194
|
-
return W = W.concat(
|
|
37194
|
+
return W = W.concat(St({ key: j.key, value: q, valueSpec: j.valueSpec, style: j.style, styleSpec: j.styleSpec, arrayElementValidator: N })), s.i(q) === "array" && q.length === 0 && W.push(new Oe(j.key, q, "array must have at least one stop")), W;
|
|
37195
37195
|
}, default: function(j) {
|
|
37196
37196
|
return xn({ key: j.key, value: j.value, valueSpec: r, style: j.style, styleSpec: j.styleSpec });
|
|
37197
37197
|
} } });
|
|
@@ -37215,7 +37215,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
37215
37215
|
return [new Oe(Y, q[0].zoom, "stop zoom values must be numbers")];
|
|
37216
37216
|
if (v && v > G)
|
|
37217
37217
|
return [new Oe(Y, q[0].zoom, "stop zoom values must appear in ascending order")];
|
|
37218
|
-
G !== v && (v = G, _ = void 0, S = {}), W = W.concat(Zt({ key: `${Y}[0]`, value: q[0], valueSpec: { zoom: {} }, style: j.style, styleSpec: j.styleSpec, objectElementValidators: { zoom:
|
|
37218
|
+
G !== v && (v = G, _ = void 0, S = {}), W = W.concat(Zt({ key: `${Y}[0]`, value: q[0], valueSpec: { zoom: {} }, style: j.style, styleSpec: j.styleSpec, objectElementValidators: { zoom: tn, value: F } }));
|
|
37219
37219
|
} else
|
|
37220
37220
|
W = W.concat(F({ key: `${Y}[0]`, value: q[0], valueSpec: {}, style: j.style, styleSpec: j.styleSpec }, q));
|
|
37221
37221
|
return s.n(s.o(q[1])) ? W.concat([new Oe(`${Y}[1]`, q[1], "expressions are not allowed in function stops.")]) : W.concat(xn({ key: `${Y}[1]`, value: q[1], valueSpec: r, style: j.style, styleSpec: j.styleSpec }));
|
|
@@ -37340,7 +37340,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
37340
37340
|
function jt(f) {
|
|
37341
37341
|
return $t(f, "layout");
|
|
37342
37342
|
}
|
|
37343
|
-
function
|
|
37343
|
+
function wt(f) {
|
|
37344
37344
|
let r = [];
|
|
37345
37345
|
const l = f.value, p = f.key, _ = f.style, v = f.styleSpec;
|
|
37346
37346
|
l.type || l.ref || r.push(new Oe(p, l, 'either "type" or "ref" is required'));
|
|
@@ -37417,7 +37417,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
37417
37417
|
return p.type.type === "enum" && (r = r.concat(Object.keys(p.type.values))), r;
|
|
37418
37418
|
}, []);
|
|
37419
37419
|
}
|
|
37420
|
-
function
|
|
37420
|
+
function sn(f) {
|
|
37421
37421
|
const r = f.value;
|
|
37422
37422
|
let l = [];
|
|
37423
37423
|
if (!r)
|
|
@@ -37513,13 +37513,13 @@ Use an identity property function instead: ${j}.`)];
|
|
|
37513
37513
|
}
|
|
37514
37514
|
return v;
|
|
37515
37515
|
}
|
|
37516
|
-
const Ii = { "*": () => [], array:
|
|
37516
|
+
const Ii = { "*": () => [], array: St, boolean: function(f) {
|
|
37517
37517
|
const r = f.value, l = f.key, p = s.i(r);
|
|
37518
37518
|
return p !== "boolean" ? [new Oe(l, r, `boolean expected, ${p} found`)] : [];
|
|
37519
|
-
}, number:
|
|
37519
|
+
}, number: tn, color: function(f) {
|
|
37520
37520
|
const r = f.key, l = f.value, p = s.i(l);
|
|
37521
37521
|
return p !== "string" ? [new Oe(r, l, `color expected, ${p} found`)] : s.y(l) === null ? [new Oe(r, l, `color expected, "${l}" found`)] : [];
|
|
37522
|
-
}, enum: Le, filter: ut, function: An, layer:
|
|
37522
|
+
}, enum: Le, filter: ut, function: An, layer: wt, object: Zt, source: Ln, model: sn, light: Zn, "light-3d": Pr, terrain: Ar, fog: Or, string: Pt, formatted: function(f) {
|
|
37523
37523
|
return Pt(f).length === 0 ? [] : qe(f);
|
|
37524
37524
|
}, resolvedImage: function(f) {
|
|
37525
37525
|
return Pt(f).length === 0 ? [] : qe(f);
|
|
@@ -37561,7 +37561,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
37561
37561
|
function Mr(f, r = s.D) {
|
|
37562
37562
|
return rt(Dn(f, r));
|
|
37563
37563
|
}
|
|
37564
|
-
const rr = (f) => rt(Ln(f)), mi = (f) => rt(Zn(f)), nt = (f) => rt(Pr(f)), ee = (f) => rt(Ar(f)), le = (f) => rt(Or(f)), be = (f) => rt(
|
|
37564
|
+
const rr = (f) => rt(Ln(f)), mi = (f) => rt(Zn(f)), nt = (f) => rt(Pr(f)), ee = (f) => rt(Ar(f)), le = (f) => rt(Or(f)), be = (f) => rt(wt(f)), Je = (f) => rt(ut(f)), ot = (f) => rt(Tt(f)), yt = (f) => rt(jt(f)), Ht = (f) => rt(sn(f));
|
|
37565
37565
|
function rt(f) {
|
|
37566
37566
|
return f.slice().sort((r, l) => r.line && l.line ? r.line - l.line : 0);
|
|
37567
37567
|
}
|
|
@@ -40272,8 +40272,8 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40272
40272
|
const we = new s.P(se.tileAnchorX, se.tileAnchorY);
|
|
40273
40273
|
let { x: Ve, y: Me, z: Xe } = k.projection.projectTilePoint(we.x, we.y, P.canonical);
|
|
40274
40274
|
if (M) {
|
|
40275
|
-
const [Bt,
|
|
40276
|
-
Ve += Bt, Me +=
|
|
40275
|
+
const [Bt, on, gn] = M(we);
|
|
40276
|
+
Ve += Bt, Me += on, Xe += gn;
|
|
40277
40277
|
}
|
|
40278
40278
|
const We = [Ve, Me, Xe, 1];
|
|
40279
40279
|
if (s.a7.transformMat4(We, We, r), !Ud(We, W)) {
|
|
@@ -40367,8 +40367,8 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40367
40367
|
if (oe += ie, oe < C || oe >= M)
|
|
40368
40368
|
return null;
|
|
40369
40369
|
if (se = X, We = Xe, Ve.push(se), j && Me.push(We), Xe = new s.P(P.getx(oe), P.gety(oe)), X = N[oe], !X) {
|
|
40370
|
-
const
|
|
40371
|
-
X =
|
|
40370
|
+
const on = pl(Xe, Y.canonical, k, q, F);
|
|
40371
|
+
X = on[3] > 0 ? N[oe] = on : mt();
|
|
40372
40372
|
}
|
|
40373
40373
|
pe += ge, ge = s.N.distance(se, X);
|
|
40374
40374
|
}
|
|
@@ -40376,12 +40376,12 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40376
40376
|
const Re = (we - pe) / ge, Ge = Xe.sub(We)._mult(Re)._add(We), ve = s.N.sub([], X, se), ze = s.N.scaleAndAdd([], se, ve, Re);
|
|
40377
40377
|
let gt = [0, 0, 1], Mt = ve[0], Ct = ve[1];
|
|
40378
40378
|
if (G && (gt = q.upVector(Y.canonical, Ge.x, Ge.y), gt[0] !== 0 || gt[1] !== 0 || gt[2] !== 1)) {
|
|
40379
|
-
const
|
|
40380
|
-
s.N.normalize(
|
|
40379
|
+
const on = [gt[2], 0, -gt[0]], gn = s.N.cross([], gt, on);
|
|
40380
|
+
s.N.normalize(on, on), s.N.normalize(gn, gn), Mt = s.N.dot(ve, on), Ct = s.N.dot(ve, gn);
|
|
40381
40381
|
}
|
|
40382
40382
|
if (l) {
|
|
40383
|
-
const
|
|
40384
|
-
s.N.normalize(
|
|
40383
|
+
const on = s.N.cross([], gt, ve);
|
|
40384
|
+
s.N.normalize(on, on), s.N.scaleAndAdd(ze, ze, on, l * ie);
|
|
40385
40385
|
}
|
|
40386
40386
|
const Bt = te + Math.atan2(Ct, Mt);
|
|
40387
40387
|
return Ve.push(ze), j && Me.push(Ge), { point: ze, angle: Bt, path: Ve, tilePath: Me, up: gt };
|
|
@@ -40420,19 +40420,19 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40420
40420
|
let We = !1, mt = !1, Re = !0;
|
|
40421
40421
|
if (Xe && !ge.occluded) {
|
|
40422
40422
|
const Ge = 0.5 * j * we + W, ve = new s.P(-100, -100), ze = new s.P(this.screenRightBoundary, this.screenBottomBoundary), gt = new fl(), { first: Mt, last: Ct } = Xe, Bt = Mt.path.length;
|
|
40423
|
-
let
|
|
40423
|
+
let on = [];
|
|
40424
40424
|
for (let fn = Bt - 1; fn >= 1; fn--)
|
|
40425
|
-
|
|
40425
|
+
on.push(Mt.path[fn]);
|
|
40426
40426
|
for (let fn = 1; fn < Ct.path.length; fn++)
|
|
40427
|
-
|
|
40427
|
+
on.push(Ct.path[fn]);
|
|
40428
40428
|
const gn = 2.5 * Ge;
|
|
40429
|
-
P && (
|
|
40429
|
+
P && (on = on.map(([fn, Un, Mn], Nn) => (ie && !pe && (Mn = ie(Nn < Bt - 1 ? Mt.tilePath[Bt - 1 - Nn] : Ct.tilePath[Nn - Bt + 2])[2]), Fo(fn, Un, Mn, P))), on.some((fn) => fn[3] <= 0) && (on = []));
|
|
40430
40430
|
let hn = [];
|
|
40431
|
-
if (
|
|
40431
|
+
if (on.length > 0) {
|
|
40432
40432
|
let fn = 1 / 0, Un = -1 / 0, Mn = 1 / 0, Nn = -1 / 0;
|
|
40433
|
-
for (const kn of
|
|
40433
|
+
for (const kn of on)
|
|
40434
40434
|
fn = Math.min(fn, kn[0]), Mn = Math.min(Mn, kn[1]), Un = Math.max(Un, kn[0]), Nn = Math.max(Nn, kn[1]);
|
|
40435
|
-
Un >= ve.x && fn <= ze.x && Nn >= ve.y && Mn <= ze.y && (hn = [
|
|
40435
|
+
Un >= ve.x && fn <= ze.x && Nn >= ve.y && Mn <= ze.y && (hn = [on.map((kn) => new s.P(kn[0], kn[1]))], (fn < ve.x || Un > ze.x || Mn < ve.y || Nn > ze.y) && (hn = s.ba(hn, ve.x, ve.y, ze.x, ze.y)));
|
|
40436
40436
|
}
|
|
40437
40437
|
for (const fn of hn) {
|
|
40438
40438
|
gt.reset(fn, 0.25 * Ge);
|
|
@@ -40627,7 +40627,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40627
40627
|
return;
|
|
40628
40628
|
if (F)
|
|
40629
40629
|
return void (this.placements[mt] = new Xo(!1, !1, !1));
|
|
40630
|
-
let Ge = !1, ve = !1, ze = !0, gt = !1, Mt = !1, Ct = null, Bt = { box: null, offscreen: null, occluded: null },
|
|
40630
|
+
let Ge = !1, ve = !1, ze = !0, gt = !1, Mt = !1, Ct = null, Bt = { box: null, offscreen: null, occluded: null }, on = { box: null, offscreen: null, occluded: null }, gn = null, hn = null, fn = null, Un = 0, Mn = 0, Nn = 0;
|
|
40631
40631
|
We.textFeatureIndex ? Un = We.textFeatureIndex : Me.useRuntimeCollisionCircles && (Un = Me.featureIndex), We.verticalTextFeatureIndex && (Mn = We.verticalTextFeatureIndex);
|
|
40632
40632
|
const kn = (Jn) => {
|
|
40633
40633
|
Jn.tileID = this.retainedQueryData[v.bucketInstanceId].tileID;
|
|
@@ -40646,7 +40646,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40646
40646
|
}, mr = (Qn, pr) => {
|
|
40647
40647
|
if (v.allowVerticalPlacement && Re > 0 && We.verticalTextBox) {
|
|
40648
40648
|
for (const Gr of v.writingModes)
|
|
40649
|
-
if (Gr === s.b6.vertical ? (Bt = pr(),
|
|
40649
|
+
if (Gr === s.b6.vertical ? (Bt = pr(), on = Bt) : Bt = Qn(), Bt && Bt.box && Bt.box.length)
|
|
40650
40650
|
break;
|
|
40651
40651
|
} else
|
|
40652
40652
|
Bt = Qn();
|
|
@@ -40701,10 +40701,10 @@ Use an identity property function instead: ${j}.`)];
|
|
|
40701
40701
|
const Qn = Me.hasIconTextFit && Ct ? Yd(Ct.x, Ct.y, oe, X, this.transform.angle) : new s.P(0, 0), pr = v.getSymbolInstanceIconSize(q, this.transform.zoom, Me.placedIconSymbolIndex);
|
|
40702
40702
|
return this.collisionIndex.placeCollisionBox(v, pr, mr, Qn, te, N, C, Y.predicate);
|
|
40703
40703
|
};
|
|
40704
|
-
|
|
40704
|
+
on && on.box && on.box.length && We.verticalIconBox ? (fn = Jn(We.verticalIconBox), ve = fn.box.length > 0) : (fn = Jn(We.iconBox), ve = fn.box.length > 0), ze = ze && fn.offscreen, Mt = fn.occluded;
|
|
40705
40705
|
}
|
|
40706
40706
|
const Fr = G || Me.numHorizontalGlyphVertices === 0 && Re === 0, Kn = J || Me.numIconVertices === 0;
|
|
40707
|
-
if (Fr || Kn ? Kn ? Fr || (ve = ve && Ge) : Ge = ve && Ge : ve = Ge = ve && Ge, Ge && gn && gn.box && this.collisionIndex.insertCollisionBox(gn.box, S.get("text-ignore-placement"), v.bucketInstanceId,
|
|
40707
|
+
if (Fr || Kn ? Kn ? Fr || (ve = ve && Ge) : Ge = ve && Ge : ve = Ge = ve && Ge, Ge && gn && gn.box && this.collisionIndex.insertCollisionBox(gn.box, S.get("text-ignore-placement"), v.bucketInstanceId, on && on.box && Mn ? Mn : Un, Y.ID), ve && fn && this.collisionIndex.insertCollisionBox(fn.box, S.get("icon-ignore-placement"), v.bucketInstanceId, Nn, Y.ID), hn && (Ge && this.collisionIndex.insertCollisionCircles(hn.circles, S.get("text-ignore-placement"), v.bucketInstanceId, Un, Y.ID), p)) {
|
|
40708
40708
|
const Jn = v.bucketInstanceId;
|
|
40709
40709
|
let mr = this.collisionCircleArrays[Jn];
|
|
40710
40710
|
mr === void 0 && (mr = this.collisionCircleArrays[Jn] = new Zd());
|
|
@@ -41457,7 +41457,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41457
41457
|
} else
|
|
41458
41458
|
oe = this._centerAltitude;
|
|
41459
41459
|
const X = r.isTerrainDEM ? -oe : this._elevation ? this._elevation.getMinElevationBelowMSL() : 0, se = this.projection.isReprojectedInTileSpace ? s.br(this) : 1, pe = (ve) => {
|
|
41460
|
-
const gt = new s.L(ve.x + 25e-6, ve.y, ve.z), Mt = new s.L(ve.x, ve.y + 25e-6, ve.z), Ct = ve.toLngLat(), Bt = gt.toLngLat(),
|
|
41460
|
+
const gt = new s.L(ve.x + 25e-6, ve.y, ve.z), Mt = new s.L(ve.x, ve.y + 25e-6, ve.z), Ct = ve.toLngLat(), Bt = gt.toLngLat(), on = Mt.toLngLat(), gn = this.locationCoordinate(Ct), hn = this.locationCoordinate(Bt), fn = this.locationCoordinate(on), Un = Math.hypot(hn.x - gn.x, hn.y - gn.y), Mn = Math.hypot(fn.x - gn.x, fn.y - gn.y);
|
|
41461
41461
|
return Math.sqrt(Un * Mn) * se / 25e-6;
|
|
41462
41462
|
}, ge = (ve) => {
|
|
41463
41463
|
const ze = oe, gt = X;
|
|
@@ -41487,13 +41487,13 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41487
41487
|
const gn = Math.pow(2, ve.zoom), hn = pe(new s.L((ve.x + 0.5) / gn, (ve.y + 0.5) / gn));
|
|
41488
41488
|
Ct = hn > 0.85 ? 1 : hn;
|
|
41489
41489
|
}
|
|
41490
|
-
const Bt = ze * ze + gt * gt + Mt,
|
|
41490
|
+
const Bt = ze * ze + gt * gt + Mt, on = We((1 << Me - ve.zoom) * ie * Ct * ((gn, hn) => {
|
|
41491
41491
|
if (hn * We(0.707) < gn)
|
|
41492
41492
|
return 1;
|
|
41493
41493
|
const fn = Math.sqrt(hn / gn);
|
|
41494
41494
|
return fn / (1.4144271570014144 + (Math.pow(1.1, fn - 1.4144271570014144 + 1) - 1) / (1.1 - 1) - 1);
|
|
41495
41495
|
})(Math.max(Mt, mt), Bt));
|
|
41496
|
-
return Bt <
|
|
41496
|
+
return Bt < on;
|
|
41497
41497
|
};
|
|
41498
41498
|
if (this.renderWorldCopies)
|
|
41499
41499
|
for (let ve = 1; ve <= 3; ve++)
|
|
@@ -41505,8 +41505,8 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41505
41505
|
if (!Mt) {
|
|
41506
41506
|
let Bt = J ? ve.aabb.intersects(j) : ve.aabb.intersectsFlat(j);
|
|
41507
41507
|
if (Bt === 0 && Ct()) {
|
|
41508
|
-
const
|
|
41509
|
-
Bt = s.bt(this, P,
|
|
41508
|
+
const on = new s.bs(ve.zoom, ze, gt);
|
|
41509
|
+
Bt = s.bt(this, P, on, !0).intersects(j);
|
|
41510
41510
|
}
|
|
41511
41511
|
if (Bt === 0)
|
|
41512
41512
|
continue;
|
|
@@ -41514,8 +41514,8 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41514
41514
|
}
|
|
41515
41515
|
if (ve.zoom !== Me && Ge(ve))
|
|
41516
41516
|
for (let Bt = 0; Bt < 4; Bt++) {
|
|
41517
|
-
const
|
|
41518
|
-
v && !N && (hn.tileID = new s.am(ve.zoom + 1 === Me ? Xe : ve.zoom + 1, ve.wrap, ve.zoom + 1,
|
|
41517
|
+
const on = (ze << 1) + Bt % 2, gn = (gt << 1) + (Bt >> 1), hn = { aabb: S ? ve.aabb.quadrant(Bt) : s.bu(this, P, ve.zoom + 1, on, gn, ve.wrap, ve.minZ, ve.maxZ, this.projection), zoom: ve.zoom + 1, x: on, y: gn, wrap: ve.wrap, fullyVisible: Mt, tileID: void 0, shouldSplit: void 0, minZ: ve.minZ, maxZ: ve.maxZ };
|
|
41518
|
+
v && !N && (hn.tileID = new s.am(ve.zoom + 1 === Me ? Xe : ve.zoom + 1, ve.wrap, ve.zoom + 1, on, gn), Re(hn)), we.push(hn);
|
|
41519
41519
|
}
|
|
41520
41520
|
else {
|
|
41521
41521
|
const Bt = ve.zoom === Me ? Xe : ve.zoom;
|
|
@@ -41530,8 +41530,8 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41530
41530
|
if (fn === 0)
|
|
41531
41531
|
continue;
|
|
41532
41532
|
}
|
|
41533
|
-
const
|
|
41534
|
-
Ve.push({ tileID: hn, distanceSq:
|
|
41533
|
+
const on = k[0] - (0.5 + ze + (ve.wrap << ve.zoom)) * (1 << l - ve.zoom), gn = k[1] - 0.5 - gt, hn = ve.tileID ? ve.tileID : new s.am(Bt, ve.wrap, ve.zoom, ze, gt);
|
|
41534
|
+
Ve.push({ tileID: hn, distanceSq: on * on + gn * gn });
|
|
41535
41535
|
}
|
|
41536
41536
|
}
|
|
41537
41537
|
if (this.fogCullDistSq) {
|
|
@@ -41539,7 +41539,7 @@ Use an identity property function instead: ${j}.`)];
|
|
|
41539
41539
|
Ve = Ve.filter((gt) => {
|
|
41540
41540
|
const Mt = [0, 0, 0, 1], Ct = [s.V, s.V, 0, 1], Bt = this.calculateFogTileMatrix(gt.tileID.toUnwrapped());
|
|
41541
41541
|
s.a7.transformMat4(Mt, Mt, Bt), s.a7.transformMat4(Ct, Ct, Bt);
|
|
41542
|
-
const
|
|
41542
|
+
const on = s.a7.min([], Mt, Ct), gn = s.a7.max([], Mt, Ct), hn = s.bv(on, gn);
|
|
41543
41543
|
if (hn === 0)
|
|
41544
41544
|
return !0;
|
|
41545
41545
|
let fn = !1;
|
|
@@ -42198,9 +42198,9 @@ Use an identity property function instead: ${j}.`)];
|
|
|
42198
42198
|
Ct[8] = 2 * -f.centerOffset.x / f.width, Ct[9] = 2 * f.centerOffset.y / f.height;
|
|
42199
42199
|
const Bt = new Float64Array(16);
|
|
42200
42200
|
s.a6.mul(Bt, Ct, Mt);
|
|
42201
|
-
const
|
|
42202
|
-
s.a6.invert(
|
|
42203
|
-
const gn = s.bq.fromInvProjectionMatrix(
|
|
42201
|
+
const on = new Float64Array(16);
|
|
42202
|
+
s.a6.invert(on, Bt);
|
|
42203
|
+
const gn = s.bq.fromInvProjectionMatrix(on, M, S, !0);
|
|
42204
42204
|
for (const hn of gn.points) {
|
|
42205
42205
|
const fn = ((X = hn)[0] /= C, X[1] /= C, X[2] = s.bl(X[2], f._center.lat), X);
|
|
42206
42206
|
te = Math.max(te, s.N.len(s.N.subtract([], ie, fn)));
|
|
@@ -46083,9 +46083,9 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
46083
46083
|
Tc(ze, gt) && Sl.newMorphing(Re.key, ze, gt, j, 250), W.activeTexture.set(q.TEXTURE0), Ge.texture && Ge.texture.bind(q.LINEAR, q.CLAMP_TO_EDGE);
|
|
46084
46084
|
const Mt = Sl.getMorphValuesForProxy(Re.key), Ct = Mt ? 1 : 0;
|
|
46085
46085
|
Mt && s.j(Me, { morphing: { srcDemTile: Mt.from, dstDemTile: Mt.to, phase: s.cc(Mt.phase) } });
|
|
46086
|
-
const Bt = s.cf(Re.canonical),
|
|
46086
|
+
const Bt = s.cf(Re.canonical), on = s.cg(Bt.getCenter().lat), gn = s.ch(Re.canonical, Bt, on, Xe.worldSize / Xe._pixelsPerMercatorPixel), hn = s.aT(s.ci(Re.canonical)), fn = Jm(Xe.expandedFarZProjMatrix, Ve, se, hn, s.S(Xe.zoom), pe, Xe.frustumCorners.TL, Xe.frustumCorners.TR, Xe.frustumCorners.BR, Xe.frustumCorners.BL, Xe.globeCenterInViewSpace, Xe.globeRadius, we, We, Xe._farZ, gn);
|
|
46087
46087
|
if (te(Re, Ct), Y && (k.setupElevationDraw(Ge, Y, Me), P.uploadCommonUniforms(W, Y, Re.toUnwrapped()), ge)) {
|
|
46088
|
-
const [Un, Mn, Nn] = ge.getGridBuffers(
|
|
46088
|
+
const [Un, Mn, Nn] = ge.getGridBuffers(on, We !== 0);
|
|
46089
46089
|
Y.draw(P, mt, X, ve, oe, wn.backCCW, fn, "globe_raster", Un, Mn, Nn);
|
|
46090
46090
|
}
|
|
46091
46091
|
}
|
|
@@ -46096,11 +46096,11 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
46096
46096
|
for (const We of F) {
|
|
46097
46097
|
const { x: mt, y: Re, z: Ge } = We.canonical, ve = Re === 0, ze = Re === (1 << Ge) - 1, [gt, Mt, Ct, Bt] = ge.getPoleBuffers(Ge, !1);
|
|
46098
46098
|
if (Bt && (ve || ze)) {
|
|
46099
|
-
const
|
|
46100
|
-
W.activeTexture.set(q.TEXTURE0),
|
|
46099
|
+
const on = N.getTile(We);
|
|
46100
|
+
W.activeTexture.set(q.TEXTURE0), on.texture && on.texture.bind(q.LINEAR, q.CLAMP_TO_EDGE);
|
|
46101
46101
|
let gn = s.cj(Ge, mt, J);
|
|
46102
46102
|
const hn = s.aT(s.ci(We.canonical)), fn = (Un, Mn) => Un.draw(P, q.TRIANGLES, X, Rn.disabled, oe, wn.disabled, Jm(J.expandedFarZProjMatrix, gn, gn, hn, 0, pe, J.frustumCorners.TL, J.frustumCorners.TR, J.frustumCorners.BR, J.frustumCorners.BL, J.globeCenterInViewSpace, J.globeRadius, we, 0, J._farZ), "globe_pole_raster", Mn, Ct, Bt);
|
|
46103
|
-
k.setupElevationDraw(
|
|
46103
|
+
k.setupElevationDraw(on, Y, Me), P.uploadCommonUniforms(W, Y, We.toUnwrapped()), ve && P.renderDefaultNorthPole && fn(Y, gt), ze && P.renderDefaultSouthPole && (gn = s.a6.scale(s.a6.create(), gn, [1, -1, 1]), fn(Y, Mt));
|
|
46104
46104
|
}
|
|
46105
46105
|
}
|
|
46106
46106
|
}
|
|
@@ -46841,7 +46841,7 @@ ${p.vertexSource}`;
|
|
|
46841
46841
|
const ve = r.getTile(Ge), ze = ve.getBucket(l);
|
|
46842
46842
|
if (!ze || ze.projection.name === "mercator" && We || ze.fullyClipped)
|
|
46843
46843
|
continue;
|
|
46844
|
-
const gt = ze.projection.name === "globe", Mt = gt ? s.S(te.zoom) : 0, Ct = gc(Ge, ze.getProjection(), te), Bt = te.calculatePixelsToTileUnitsMatrix(ve),
|
|
46844
|
+
const gt = ze.projection.name === "globe", Mt = gt ? s.S(te.zoom) : 0, Ct = gc(Ge, ze.getProjection(), te), Bt = te.calculatePixelsToTileUnitsMatrix(ve), on = Xe && ze.hasTextData(), gn = ze.hasIconTextFit() && on && ze.hasIconData(), hn = ze.getProjection().createInversionMatrix(te, Ge.canonical), fn = () => {
|
|
46845
46845
|
const ni = oe && l.layout.get("symbol-placement") !== "point", Jn = [], mr = ni || gn, Qn = l.paint.get("icon-image-cross-fade").constantOr(0);
|
|
46846
46846
|
f.terrainRenderModeElevated() && se && Jn.push("PITCH_WITH_MAP_TERRAIN"), gt && (Jn.push("PROJECTION_GLOBE_VIEW"), mr && Jn.push("PROJECTED_POS_ON_VIEWPORT")), Qn > 0 && Jn.push("ICON_TRANSITION"), ze.icon.zOffsetVertexBuffer && Jn.push("Z_OFFSET"), G < 1 && Jn.push("SATURATION");
|
|
46847
46847
|
const pr = ze.icon.programConfigurations.get(l.id), Gr = f.getOrCreateProgram(ze.sdfIcons ? "symbolSDF" : "symbolIcon", { config: pr, defines: Jn });
|
|
@@ -46936,7 +46936,7 @@ ${p.vertexSource}`;
|
|
|
46936
46936
|
f.uploadCommonUniforms(f.context, te, q.toUnwrapped()), te.draw(f, k, _, f.stencilModeForClipping(q), v, wn.disabled, F, l.id, G.layoutVertexBuffer, j, W, l.paint, f.transform.zoom, J, void 0);
|
|
46937
46937
|
}
|
|
46938
46938
|
}
|
|
46939
|
-
function
|
|
46939
|
+
function an(f, r, l, p, _, v, S, C) {
|
|
46940
46940
|
l.resetLayerRenderingStats(f);
|
|
46941
46941
|
const M = f.context, P = M.gl, k = f.transform, N = l.paint.get("fill-extrusion-pattern"), F = N.constantOr(1), j = l.paint.get("fill-extrusion-opacity"), W = f.style.enable3dLights(), q = l.paint.get(W && !F ? "fill-extrusion-ambient-occlusion-wall-radius" : "fill-extrusion-ambient-occlusion-radius"), Y = [l.paint.get("fill-extrusion-ambient-occlusion-intensity"), q], G = l.layout.get("fill-extrusion-edge-radius"), J = G > 0 && !l.paint.get("fill-extrusion-rounded-roof"), ie = J ? 0 : G, te = k.projection.name === "globe" ? s.cF() : 0, oe = k.projection.name === "globe", X = oe ? s.S(k.zoom) : 0, se = [s.a5(k.center.lng), s.ae(k.center.lat)], pe = l.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0, 3), ge = l.paint.get("fill-extrusion-flood-light-intensity"), we = l.paint.get("fill-extrusion-vertical-scale"), Ve = Zs(f, l.paint.get("fill-extrusion-cutoff-fade-range")), Me = l.paint.get("fill-extrusion-emissive-strength"), Xe = [];
|
|
46942
46942
|
let We;
|
|
@@ -46953,9 +46953,9 @@ ${p.vertexSource}`;
|
|
|
46953
46953
|
const Ct = r.getTile(Mt), Bt = Ct.getBucket(l);
|
|
46954
46954
|
if (!Bt || Bt.projection.name !== k.projection.name)
|
|
46955
46955
|
continue;
|
|
46956
|
-
let
|
|
46957
|
-
Re && (
|
|
46958
|
-
const gn = f.isTileAffectedByFog(Mt), hn = Bt.programConfigurations.get(l.id), fn = f.getOrCreateProgram(ze, { config: hn, defines:
|
|
46956
|
+
let on = !1;
|
|
46957
|
+
Re && (on = Re.getMaxCascadeForTile(Mt.toUnwrapped()) === 0);
|
|
46958
|
+
const gn = f.isTileAffectedByFog(Mt), hn = Bt.programConfigurations.get(l.id), fn = f.getOrCreateProgram(ze, { config: hn, defines: on ? We : Xe, overrideFog: gn });
|
|
46959
46959
|
if (f.terrain && f.terrain.setupElevationDraw(Ct, fn, { useMeterToDem: !0 }), !Bt.centroidVertexBuffer) {
|
|
46960
46960
|
const Fr = fn.attributes.a_centroid_pos;
|
|
46961
46961
|
Fr !== void 0 && P.vertexAttrib2f(Fr, 0, 0);
|
|
@@ -46997,7 +46997,7 @@ ${p.vertexSource}`;
|
|
|
46997
46997
|
const ie = f.context, te = ie.gl, oe = f.transform, X = f.transform.zoom, se = [], pe = Zs(f, l.paint.get("fill-extrusion-cutoff-fade-range"));
|
|
46998
46998
|
P === "clear" ? (se.push("CLEAR_SUBPASS"), J && (se.push("CLEAR_FROM_TEXTURE"), ie.activeTexture.set(te.TEXTURE0), J.bind(te.LINEAR, te.CLAMP_TO_EDGE))) : P === "sdf" && se.push("SDF_SUBPASS"), Y && se.push("HAS_CENTROID"), pe.shouldRenderCutoff && se.push("RENDER_CUTOFF");
|
|
46999
46999
|
const ge = l.layout.get("fill-extrusion-edge-radius"), we = (Ve, Me, Xe, We, mt) => {
|
|
47000
|
-
const Re = Me.programConfigurations.get(l.id), Ge = f.isTileAffectedByFog(Ve), ve = f.getOrCreateProgram("fillExtrusionGroundEffect", { config: Re, defines: se, overrideFog: Ge }), ze = ((Mt, Ct, Bt,
|
|
47000
|
+
const Re = Me.programConfigurations.get(l.id), Ge = f.isTileAffectedByFog(Ve), ve = f.getOrCreateProgram("fillExtrusionGroundEffect", { config: Re, defines: se, overrideFog: Ge }), ze = ((Mt, Ct, Bt, on, gn, hn, fn, Un, Mn, Nn, kn) => ({ u_matrix: Ct, u_opacity: Bt, u_ao_pass: on ? 1 : 0, u_meter_to_tile: gn, u_ao: hn, u_flood_light_intensity: fn, u_flood_light_color: Un, u_attenuation: Mn, u_edge_radius: Nn, u_fb: 0, u_fb_size: kn }))(0, We, k, M, mt, [N, F * mt], j, W, q, X >= 17 ? 0 : ge * mt, J ? J.size[0] : 0), gt = [];
|
|
47001
47001
|
Y && gt.push(Me.hiddenByLandmarkVertexBuffer), f.uploadCommonUniforms(ie, ve, Ve.toUnwrapped(), null, pe), ve.draw(f, ie.gl.TRIANGLES, _, v, S, C, ze, l.id, Me.vertexBuffer, Me.indexBuffer, Xe, l.paint, X, Re, gt);
|
|
47002
47002
|
};
|
|
47003
47003
|
for (const Ve of p) {
|
|
@@ -47023,8 +47023,8 @@ ${p.vertexSource}`;
|
|
|
47023
47023
|
const Bt = gt.regionSegments[Ct];
|
|
47024
47024
|
if (!Bt)
|
|
47025
47025
|
continue;
|
|
47026
|
-
const
|
|
47027
|
-
s.a6.translate(
|
|
47026
|
+
const on = new Float32Array(16);
|
|
47027
|
+
s.a6.translate(on, Ve.projMatrix, Mt), we(Ve, gt, Bt, f.translatePosMatrix(on, Me, l.paint.get("fill-extrusion-translate"), l.paint.get("fill-extrusion-translate-anchor")), mt);
|
|
47028
47028
|
}
|
|
47029
47029
|
}
|
|
47030
47030
|
}
|
|
@@ -47151,7 +47151,7 @@ ${p.vertexSource}`;
|
|
|
47151
47151
|
const [X, se, pe, ge] = r ? k.getPoleBuffers(r.canonical.z, !1) : k.getPoleBuffers(0, !0), we = _.paint.get("raster-elevation");
|
|
47152
47152
|
let Ve;
|
|
47153
47153
|
f ? (Ve = X, l.renderDefaultNorthPole = we !== 0) : (Ve = se, l.renderDefaultSouthPole = we !== 0);
|
|
47154
|
-
const Me = ug(S.mix), Xe = ((mt, Re, Ge, ve, ze, gt, Mt, Ct, Bt,
|
|
47154
|
+
const Me = ug(S.mix), Xe = ((mt, Re, Ge, ve, ze, gt, Mt, Ct, Bt, on, gn, hn, fn) => Ef(mt, Re, Ge, new Float32Array(16), new Float32Array(9), [0, 0], ve, [0, 0], [0, 0, 0, 0], 1, { opacity: 1, mix: 0 }, gt, [0, 0], Ct, 2, on, gn, hn, 1, 0, fn))(te, oe, j, s.S(l.transform.zoom), 0, _, 0, we, 0, Me, S.offset, S.range, v), We = l.getOrCreateProgram("raster", { defines: J });
|
|
47155
47155
|
l.uploadCommonUniforms(W, We, null), We.draw(l, q.TRIANGLES, ie, M, G, C, Xe, _.id, Ve, pe, ge);
|
|
47156
47156
|
}
|
|
47157
47157
|
function Mf(f) {
|
|
@@ -47608,7 +47608,7 @@ ${p.vertexSource}`;
|
|
|
47608
47608
|
if (l.gradientVersion !== Mt.version) {
|
|
47609
47609
|
let Bt = 256;
|
|
47610
47610
|
if (l.stepInterpolant) {
|
|
47611
|
-
const
|
|
47611
|
+
const on = r.getSource().maxzoom, gn = se.canonical.z === on ? Math.ceil(1 << f.transform.maxZoom - se.canonical.z) : 1;
|
|
47612
47612
|
Bt = s.aa(s.cD(ge.maxLineLength / s.V * 1024 * gn), 256, te.maxTextureSize);
|
|
47613
47613
|
}
|
|
47614
47614
|
Mt.gradient = s.cE({ expression: l.gradientExpression(), evaluationKey: "lineProgress", resolution: Bt, image: Mt.gradient || void 0, clips: ge.lineClipsArray }), Mt.texture ? Mt.texture.update(Mt.gradient) : Mt.texture = new s.T(te, Mt.gradient, oe.RGBA), Mt.version = l.gradientVersion, Ct = Mt.texture;
|
|
@@ -47661,12 +47661,12 @@ ${p.vertexSource}`;
|
|
|
47661
47661
|
if (C && _ < 0.65 && l._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof s.Z)
|
|
47662
47662
|
return;
|
|
47663
47663
|
const N = k.getShadowPassDepthMode(), F = k.getShadowPassColorMode();
|
|
47664
|
-
|
|
47664
|
+
an(f, r, l, p, N, Rn.disabled, F, P);
|
|
47665
47665
|
} else if (f.renderPass === "translucent") {
|
|
47666
47666
|
const k = !l.paint.get("fill-extrusion-pattern").constantOr(1), N = l.paint.get("fill-extrusion-color").constantOr(s.ax.white);
|
|
47667
47667
|
if (!M && N.a !== 0) {
|
|
47668
47668
|
const F = new bn(f.context.gl.LEQUAL, bn.ReadWrite, f.depthRangeFor3D);
|
|
47669
|
-
_ === 1 && k ?
|
|
47669
|
+
_ === 1 && k ? an(f, r, l, p, F, Rn.disabled, Yn.unblended, P) : (an(f, r, l, p, F, Rn.disabled, Yn.disabled, P), an(f, r, l, p, F, f.stencilModeFor3D(), f.colorModeForRenderPass(), P), f.resetStencilClippingMasks());
|
|
47670
47670
|
}
|
|
47671
47671
|
if (f.style.enable3dLights() && k && (!C && f.transform.projection.name !== "globe" || M)) {
|
|
47672
47672
|
const F = l.paint.get("fill-extrusion-opacity"), j = l.paint.get("fill-extrusion-ambient-occlusion-intensity"), W = l.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), q = l.paint.get("fill-extrusion-flood-light-intensity"), Y = l.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0, 3), G = j > 0 && W > 0, J = q > 0, ie = (oe, X, se) => (1 - se) * oe + se * X, te = (oe) => {
|
|
@@ -47774,8 +47774,8 @@ ${p.vertexSource}`;
|
|
|
47774
47774
|
const gt = f.terrain && q ? f.terrain.stencilModeForRTTOverlap(ge) : J[ge.overscaledZ], Mt = v ? 0 : l.paint.get("raster-fade-duration");
|
|
47775
47775
|
Ve.registerFadeDuration(Mt);
|
|
47776
47776
|
const Ct = r.findLoadedParent(ge, 0), Bt = mf(Ve, Ct, r, f.transform, Mt);
|
|
47777
|
-
let
|
|
47778
|
-
f.terrain && f.terrain.prepareDrawTile(), P.activeTexture.set(k.TEXTURE0), Xe.bind(G, k.CLAMP_TO_EDGE), P.activeTexture.set(k.TEXTURE1), Ct ? (Ct.texture && Ct.texture.bind(G, k.CLAMP_TO_EDGE),
|
|
47777
|
+
let on, gn;
|
|
47778
|
+
f.terrain && f.terrain.prepareDrawTile(), P.activeTexture.set(k.TEXTURE0), Xe.bind(G, k.CLAMP_TO_EDGE), P.activeTexture.set(k.TEXTURE1), Ct ? (Ct.texture && Ct.texture.bind(G, k.CLAMP_TO_EDGE), on = Math.pow(2, Ct.tileID.overscaledZ - Ve.tileID.overscaledZ), gn = [Ve.tileID.canonical.x * on % 1, Ve.tileID.canonical.y * on % 1]) : Xe.bind(G, k.CLAMP_TO_EDGE), Xe.useMipmap && P.extTextureFilterAnisotropic && f.transform.pitch > 20 && k.texParameterf(k.TEXTURE_2D, P.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, P.extTextureFilterAnisotropicMax);
|
|
47779
47779
|
const hn = f.transform;
|
|
47780
47780
|
let fn;
|
|
47781
47781
|
const Un = C ? Mf(hn) : [0, 0, 0, 0];
|
|
@@ -47787,7 +47787,7 @@ ${p.vertexSource}`;
|
|
|
47787
47787
|
Kn = s.cg(Qn.getCenter().lat), Mn = Float32Array.from(s.aT(s.ci(ge.canonical))), Nn = Float32Array.from(hn.globeMatrix), kn = Float32Array.from(s.ce(hn)), ur = [s.a5(hn.center.lng), s.ae(hn.center.lat)], fn = [0, 0], Fr = Float32Array.from(s.ch(ge.canonical, Qn, Kn, hn.worldSize / hn._pixelsPerMercatorPixel));
|
|
47788
47788
|
} else
|
|
47789
47789
|
fn = N instanceof s.ap ? N.perspectiveTransform : [0, 0], Mn = new Float32Array(16), Nn = new Float32Array(9), kn = new Float32Array(16), ur = [0, 0], Fr = new Float32Array(9);
|
|
47790
|
-
const ni = Ef(ze, Mn, Nn, kn, Fr, gn || [0, 0], s.S(f.transform.zoom), ur, Un,
|
|
47790
|
+
const ni = Ef(ze, Mn, Nn, kn, Fr, gn || [0, 0], s.S(f.transform.zoom), ur, Un, on || 1, Bt, l, fn, C ? l.paint.get("raster-elevation") : 0, 2, We, mt, F.range, Re, Ge, j), Jn = f.isTileAffectedByFog(ge), mr = f.getOrCreateProgram("raster", { defines: F.defines, overrideFog: Jn });
|
|
47791
47791
|
if (f.uploadCommonUniforms(P, mr, we), N instanceof s.ap) {
|
|
47792
47792
|
const Qn = N.elevatedGlobeVertexBuffer, pr = N.elevatedGlobeIndexBuffer;
|
|
47793
47793
|
if (q || !S)
|
|
@@ -47913,14 +47913,14 @@ ${p.vertexSource}`;
|
|
|
47913
47913
|
W ? (Re = Float32Array.from(s.aT(s.ci(J.canonical))), Ge = Float32Array.from(Me.globeMatrix), ve = Float32Array.from(s.ce(Me)), ze = [s.a5(Me.center.lng), s.ae(Me.center.lat)], gt = Float32Array.from(s.ch(J.canonical, We, mt, Me.worldSize / Me._pixelsPerMercatorPixel))) : (Re = new Float32Array(16), Ge = new Float32Array(9), ve = new Float32Array(16), ze = [0, 0], gt = new Float32Array(9));
|
|
47914
47914
|
const Mt = J0(Ve, Re, Ge, ve, gt, we || [0, 0], s.S(S.transform.zoom), ze, Xe, ge || 1, pe, 250), Ct = S.isTileAffectedByFog(J), Bt = S.getOrCreateProgram("rasterParticle", { defines: G, overrideFog: Ct });
|
|
47915
47915
|
if (S.uploadCommonUniforms(N, Bt, ie), W) {
|
|
47916
|
-
const
|
|
47916
|
+
const on = new bn(F.LEQUAL, bn.ReadWrite, S.depthRangeFor3D), gn = 0, hn = S.globeSharedBuffers;
|
|
47917
47917
|
if (hn) {
|
|
47918
47918
|
const [fn, Un, Mn] = hn.getGridBuffers(mt, gn !== 0);
|
|
47919
|
-
Bt.draw(S, F.TRIANGLES,
|
|
47919
|
+
Bt.draw(S, F.TRIANGLES, on, Rn.disabled, Yn.alphaBlended, wn.backCCW, Mt, M.id, fn, Un, Mn);
|
|
47920
47920
|
}
|
|
47921
47921
|
} else {
|
|
47922
|
-
const
|
|
47923
|
-
Bt.draw(S, F.TRIANGLES,
|
|
47922
|
+
const on = S.depthModeForSublayer(0, bn.ReadOnly), gn = q[J.overscaledZ], { tileBoundsBuffer: hn, tileBoundsIndexBuffer: fn, tileBoundsSegments: Un } = S.getTileBoundsBuffers(te);
|
|
47923
|
+
Bt.draw(S, F.TRIANGLES, on, gn, Yn.alphaBlended, wn.disabled, Mt, M.id, hn, fn, Un);
|
|
47924
47924
|
}
|
|
47925
47925
|
}
|
|
47926
47926
|
S.resetStencilClippingMasks();
|
|
@@ -48083,13 +48083,13 @@ ${p.vertexSource}`;
|
|
|
48083
48083
|
const Ve = s.a6.identity([]), Me = s.cR(X.center.lat, X.zoom), Xe = s.a6.fromScaling([], [1, 1, 1 / Me]);
|
|
48084
48084
|
s.a6.translate(Ve, Ve, we);
|
|
48085
48085
|
const We = ie.paint.get("model-opacity"), mt = new bn(oe.gl.LEQUAL, bn.ReadWrite, G.depthRangeFor3D), Re = new bn(oe.gl.LEQUAL, bn.ReadOnly, G.depthRangeFor3D), Ge = new s.bS([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), ve = G.renderPass === "shadow", ze = ve && pe ? pe.getCurrentCascadeFrustum() : X.getFrustum(X.scaleZoom(X.worldSize)), gt = ie.getLayerRenderingStats(), Mt = function(Ct, Bt) {
|
|
48086
|
-
for (const
|
|
48087
|
-
const gn = J.getTile(
|
|
48086
|
+
for (const on of te) {
|
|
48087
|
+
const gn = J.getTile(on).getBucket(ie);
|
|
48088
48088
|
if (!gn || !gn.uploaded)
|
|
48089
48089
|
continue;
|
|
48090
48090
|
let hn = !1;
|
|
48091
|
-
pe && (hn = pe.getMaxCascadeForTile(
|
|
48092
|
-
const fn = X.calculatePosMatrix(
|
|
48091
|
+
pe && (hn = pe.getMaxCascadeForTile(on.toUnwrapped()) === 0);
|
|
48092
|
+
const fn = X.calculatePosMatrix(on.toUnwrapped(), X.worldSize), Un = gn.modelTraits;
|
|
48093
48093
|
for (const Mn of gn.getNodesInfo()) {
|
|
48094
48094
|
if (Mn.hiddenByReplacement || !Mn.node.meshes)
|
|
48095
48095
|
continue;
|
|
@@ -48133,7 +48133,7 @@ ${p.vertexSource}`;
|
|
|
48133
48133
|
let zi;
|
|
48134
48134
|
bo.occlusionTexture && bo.occlusionTexture.offsetScale && (zi = bo.occlusionTexture.offsetScale, Yi.defines.push("OCCLUSION_TEXTURE_TRANSFORM")), !ve && pe && (pe.useNormalOffset = !!vr.normalBuffer);
|
|
48135
48135
|
const Ri = G.getOrCreateProgram("model", Yi);
|
|
48136
|
-
!ve && pe && pe.setupShadowsFromMatrix(Kn, Ri, pe.useNormalOffset), G.uploadCommonUniforms(oe, Ri,
|
|
48136
|
+
!ve && pe && pe.setupShadowsFromMatrix(Kn, Ri, pe.useNormalOffset), G.uploadCommonUniforms(oe, Ri, on.toUnwrapped(), ms);
|
|
48137
48137
|
const ro = bo.pbrMetallicRoughness;
|
|
48138
48138
|
ro.metallicFactor = 0.9, ro.roughnessFactor = 0.5;
|
|
48139
48139
|
const uo = Qu(new Float32Array(mr), new Float32Array(ni), new Float32Array(Jn), G, We, ro.baseColorFactor, bo.emissiveFactor, ro.metallicFactor, ro.roughnessFactor, bo, pr, ie, [0, 0, 0], zi);
|
|
@@ -48142,11 +48142,11 @@ ${p.vertexSource}`;
|
|
|
48142
48142
|
}
|
|
48143
48143
|
}
|
|
48144
48144
|
};
|
|
48145
|
-
(function(Ct, Bt,
|
|
48145
|
+
(function(Ct, Bt, on, gn) {
|
|
48146
48146
|
const hn = Ct.terrain ? Ct.terrain.exaggeration() : 0, fn = Ct.transform.zoom;
|
|
48147
48147
|
for (const Un of gn) {
|
|
48148
|
-
const Mn = Bt.getTile(Un).getBucket(
|
|
48149
|
-
Mn && (Ct.conflationActive && Mn.updateReplacement(Un, Ct.replacementSource), Mn.evaluateScale(Ct,
|
|
48148
|
+
const Mn = Bt.getTile(Un).getBucket(on);
|
|
48149
|
+
Mn && (Ct.conflationActive && Mn.updateReplacement(Un, Ct.replacementSource), Mn.evaluateScale(Ct, on), Ct.terrain && hn > 0 && Mn.elevationUpdate(Ct.terrain, hn, Un, on.source), Mn.needsReEvaluation(Ct, fn, on) && Mn.evaluate(on));
|
|
48150
48150
|
}
|
|
48151
48151
|
})(G, J, ie, te), We === 1 ? Mt(!0, !0) : (Mt(!1, !0), Mt(!0, !1));
|
|
48152
48152
|
}(f, r, l, p), void M();
|
|
@@ -49983,7 +49983,7 @@ ${p.vertexSource}`;
|
|
|
49983
49983
|
oe = new s.bS([oe.min[0] - (Xe + Ge) * gt, oe.min[1] - (Re + ve) * gt, oe.min[2]], [oe.max[0] + (We + Ge) * gt, oe.max[1] + (mt + ve) * gt, oe.max[2]]);
|
|
49984
49984
|
const Mt = 0.5 * pe[2], Ct = this._minimumAABBFrustumDistance(C, oe), Bt = [0, 0, 1, 0];
|
|
49985
49985
|
s.a7.transformMat4(Bt, Bt, X), s.a7.normalize(Bt, Bt);
|
|
49986
|
-
const
|
|
49986
|
+
const on = s.N.scale([], Bt, Ct + Mt), gn = s.N.add([], oe.center, on), hn = (typeof M.offset.x == "number" && typeof M.offset.y == "number" ? new s.P(M.offset.x, M.offset.y) : s.P.convert(M.offset)).rotate(-s.bj(_));
|
|
49987
49987
|
oe.center[0] -= hn.x * gt, oe.center[1] += hn.y * gt, s.N.transformMat4(oe.center, oe.center, se), s.N.transformMat4(gn, gn, se);
|
|
49988
49988
|
const fn = [oe.center[0], oe.center[1], gn[2] * C.pixelsPerMeter];
|
|
49989
49989
|
s.N.scale(fn, fn, 1 / C.worldSize);
|
|
@@ -52017,9 +52017,9 @@ function iZ({
|
|
|
52017
52017
|
mapView: i
|
|
52018
52018
|
}) {
|
|
52019
52019
|
const o = Dt(x0), c = Dt(xs), [h, g] = Cn(vw), [x, T] = Tn(!1), s = Dt(GP);
|
|
52020
|
-
return
|
|
52020
|
+
return rn(() => {
|
|
52021
52021
|
["mapbox", "3dwalls", "floorplan"].every((I) => o.modules.map((L) => L.toLowerCase()).includes(I)) && (T(!0), g(To.initial3D));
|
|
52022
|
-
}, [o]),
|
|
52022
|
+
}, [o]), rn(() => {
|
|
52023
52023
|
if (i != null && i.isReady && x)
|
|
52024
52024
|
switch (h === null && g(To.initial3D), h) {
|
|
52025
52025
|
case To.clicked2D:
|
|
@@ -52046,7 +52046,7 @@ function oZ({
|
|
|
52046
52046
|
onPositionControl: o
|
|
52047
52047
|
}) {
|
|
52048
52048
|
const c = Dt(Mm), [h, g] = Tn(), [x, T] = Tn(!1), [s, I] = Tn(!1), [L, O] = Tn(!1), U = Dt(Zo), V = Dt(xs), Z = Dt(Am), K = Dt(Ed), ce = nl(), Ee = Dt(VP), xe = Dt($P);
|
|
52049
|
-
return
|
|
52049
|
+
return rn(() => {
|
|
52050
52050
|
window.mapboxgl = a3;
|
|
52051
52051
|
const fe = {
|
|
52052
52052
|
accessToken: c,
|
|
@@ -52061,7 +52061,7 @@ function oZ({
|
|
|
52061
52061
|
i(Ce, Se);
|
|
52062
52062
|
const de = QW();
|
|
52063
52063
|
sessionStorage.setItem("mapboxPlacesSessionToken", de);
|
|
52064
|
-
}, []),
|
|
52064
|
+
}, []), rn(() => {
|
|
52065
52065
|
if (U && h && !s) {
|
|
52066
52066
|
const fe = document.createElement("mi-my-position");
|
|
52067
52067
|
fe.mapsindoors = U, h.getMap().addControl({
|
|
@@ -52430,7 +52430,7 @@ const Iw = tr({
|
|
|
52430
52430
|
});
|
|
52431
52431
|
function tL() {
|
|
52432
52432
|
const [i, o] = Tn(!1), c = Dt(Iw), h = Dt(eL);
|
|
52433
|
-
return
|
|
52433
|
+
return rn(() => {
|
|
52434
52434
|
if (!c || !h)
|
|
52435
52435
|
return;
|
|
52436
52436
|
let g;
|
|
@@ -52451,9 +52451,9 @@ const pZ = "MI-MAP-TEMPLATE-LAST-VENUE", Aw = () => {
|
|
|
52451
52451
|
};
|
|
52452
52452
|
}, nL = "MI-MAP-TEMPLATE-LAST-VENUE", mZ = () => {
|
|
52453
52453
|
const [i, o] = Tn(!1), [c, h] = Tn(), g = nl(), x = tL(), T = Dt(Am), s = Dt(Rm), I = Dt(XP), L = Dt(T0), O = Dt(bw), U = Dt(Zo), V = Dt(Ed), Z = Dt(KP), K = Dt(Au), ce = Dt(JP), Ee = Dt(Ew), xe = Dt(GP), fe = Aw(), [Ce, Se] = Tn(!1);
|
|
52454
|
-
|
|
52454
|
+
rn(() => {
|
|
52455
52455
|
x && de(ce);
|
|
52456
|
-
}, [x]),
|
|
52456
|
+
}, [x]), rn(() => {
|
|
52457
52457
|
de();
|
|
52458
52458
|
}, [U, ce, Ee, L, I, V, T, Z, s]);
|
|
52459
52459
|
function de(Ue) {
|
|
@@ -52537,7 +52537,7 @@ function vZ({
|
|
|
52537
52537
|
const g = Dt(ww), x = Dt(v0), T = Dt(Mm), [s, I] = Cn(bw), [L, O] = Cn(Zo), [, U] = Cn(b0), [, V] = Cn(xw), Z = Dt(w0), K = Dt(S0), ce = Dt(HP), Ee = Dt(Am), xe = Dt(Ed), [, fe] = Cn(qP), Ce = Dt(x0), [, Se] = Cn(Sw), [, de] = Cn(Au), Fe = Dt(rL);
|
|
52538
52538
|
HW(g);
|
|
52539
52539
|
const [Ue, me] = mZ();
|
|
52540
|
-
|
|
52540
|
+
rn(() => {
|
|
52541
52541
|
if (!Ce || x === null && T === null)
|
|
52542
52542
|
return;
|
|
52543
52543
|
let Ot;
|
|
@@ -52546,11 +52546,11 @@ function vZ({
|
|
|
52546
52546
|
text: "Please provide a Mapbox Access Token or Google Maps API key to show a map.",
|
|
52547
52547
|
type: "error"
|
|
52548
52548
|
}), I(void 0));
|
|
52549
|
-
}, [x, T, Ce]),
|
|
52549
|
+
}, [x, T, Ce]), rn(() => {
|
|
52550
52550
|
Ue && h();
|
|
52551
|
-
}, [Ue]),
|
|
52551
|
+
}, [Ue]), rn(() => {
|
|
52552
52552
|
me && (de(me.name), o(me));
|
|
52553
|
-
}, [me]),
|
|
52553
|
+
}, [me]), rn(() => {
|
|
52554
52554
|
if (!L)
|
|
52555
52555
|
return;
|
|
52556
52556
|
const Ot = Z || K;
|
|
@@ -52558,7 +52558,7 @@ function vZ({
|
|
|
52558
52558
|
return;
|
|
52559
52559
|
const Oe = Ot.map((pn) => pn.id);
|
|
52560
52560
|
Fe || !L.highlight ? L.filter(Oe) : L.highlight(Oe);
|
|
52561
|
-
}, [Z, K, L, Fe]),
|
|
52561
|
+
}, [Z, K, L, Fe]), rn(() => {
|
|
52562
52562
|
L && (isNaN(parseInt(xe)) || L.getMapView().tilt(parseInt(xe)), isNaN(parseInt(Ee)) || L.getMapView().rotate(parseInt(Ee)));
|
|
52563
52563
|
}, [Ee, xe, L]);
|
|
52564
52564
|
const At = (Ot) => {
|
|
@@ -52577,14 +52577,16 @@ function vZ({
|
|
|
52577
52577
|
mapView: Ot
|
|
52578
52578
|
});
|
|
52579
52579
|
pn.on("mouseenter", () => {
|
|
52580
|
-
var
|
|
52581
|
-
const
|
|
52582
|
-
((
|
|
52580
|
+
var An;
|
|
52581
|
+
const tn = pn.getHoveredLocation();
|
|
52582
|
+
((An = tn == null ? void 0 : tn.properties.locationSettings) == null ? void 0 : An.selectable) === !1 && pn.unhoverLocation();
|
|
52583
52583
|
}), pn.setDisplayRule(["MI_BUILDING_OUTLINE"], {
|
|
52584
52584
|
visible: !1
|
|
52585
|
-
}), pn.on("click", (
|
|
52586
|
-
const Zt = new
|
|
52587
|
-
|
|
52585
|
+
}), pn.on("click", (tn) => i(tn)), pn.once("building_changed", () => At(pn)), pn.on("floor_changed", () => it(pn)), O(pn), window.mapsIndoorsInstance = pn;
|
|
52586
|
+
const Zt = new CustomEvent("mapsIndoorsInstanceAvailable");
|
|
52587
|
+
window.dispatchEvent(Zt);
|
|
52588
|
+
const St = new window.mapsindoors.services.DirectionsService(Oe);
|
|
52589
|
+
V(St);
|
|
52588
52590
|
}, Kt = (Ot) => {
|
|
52589
52591
|
Ot.nodeName === "MI-MY-POSITION" ? Ot.addEventListener("position_received", (Oe) => {
|
|
52590
52592
|
Oe.detail.accurate === !0 && U(Oe.detail.position);
|
|
@@ -52592,7 +52594,7 @@ function vZ({
|
|
|
52592
52594
|
Oe.accurate === !0 && U(Oe.position);
|
|
52593
52595
|
}), fe(Ot);
|
|
52594
52596
|
};
|
|
52595
|
-
return
|
|
52597
|
+
return rn(() => {
|
|
52596
52598
|
Kv = ce || "default", it(L);
|
|
52597
52599
|
}, [ce]), /* @__PURE__ */ Ae.jsxs(Ae.Fragment, { children: [
|
|
52598
52600
|
s === Lo.Google && /* @__PURE__ */ Ae.jsx(WW, { onMapView: et, onPositionControl: Kt }),
|
|
@@ -52727,8 +52729,8 @@ function SZ() {
|
|
|
52727
52729
|
}
|
|
52728
52730
|
function Se(ke) {
|
|
52729
52731
|
if (typeof ke == "object" && ke !== null) {
|
|
52730
|
-
var
|
|
52731
|
-
switch (
|
|
52732
|
+
var sn = ke.$$typeof;
|
|
52733
|
+
switch (sn) {
|
|
52732
52734
|
case o:
|
|
52733
52735
|
var Zn = ke.type;
|
|
52734
52736
|
switch (Zn) {
|
|
@@ -52749,17 +52751,17 @@ function SZ() {
|
|
|
52749
52751
|
case T:
|
|
52750
52752
|
return Pr;
|
|
52751
52753
|
default:
|
|
52752
|
-
return
|
|
52754
|
+
return sn;
|
|
52753
52755
|
}
|
|
52754
52756
|
}
|
|
52755
52757
|
case c:
|
|
52756
|
-
return
|
|
52758
|
+
return sn;
|
|
52757
52759
|
}
|
|
52758
52760
|
}
|
|
52759
52761
|
}
|
|
52760
|
-
var de = I, Fe = L, Ue = s, me = T, At = o, it = O, et = h, Kt = K, Ot = Z, Oe = c, pn = x, Zt = g,
|
|
52762
|
+
var de = I, Fe = L, Ue = s, me = T, At = o, it = O, et = h, Kt = K, Ot = Z, Oe = c, pn = x, Zt = g, St = U, tn = !1;
|
|
52761
52763
|
function An(ke) {
|
|
52762
|
-
return
|
|
52764
|
+
return tn || (tn = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), qe(ke) || Se(ke) === I;
|
|
52763
52765
|
}
|
|
52764
52766
|
function qe(ke) {
|
|
52765
52767
|
return Se(ke) === L;
|
|
@@ -52785,7 +52787,7 @@ function SZ() {
|
|
|
52785
52787
|
function jt(ke) {
|
|
52786
52788
|
return Se(ke) === Z;
|
|
52787
52789
|
}
|
|
52788
|
-
function
|
|
52790
|
+
function wt(ke) {
|
|
52789
52791
|
return Se(ke) === c;
|
|
52790
52792
|
}
|
|
52791
52793
|
function Pt(ke) {
|
|
@@ -52797,7 +52799,7 @@ function SZ() {
|
|
|
52797
52799
|
function Ln(ke) {
|
|
52798
52800
|
return Se(ke) === U;
|
|
52799
52801
|
}
|
|
52800
|
-
li.AsyncMode = de, li.ConcurrentMode = Fe, li.ContextConsumer = Ue, li.ContextProvider = me, li.Element = At, li.ForwardRef = it, li.Fragment = et, li.Lazy = Kt, li.Memo = Ot, li.Portal = Oe, li.Profiler = pn, li.StrictMode = Zt, li.Suspense =
|
|
52802
|
+
li.AsyncMode = de, li.ConcurrentMode = Fe, li.ContextConsumer = Ue, li.ContextProvider = me, li.Element = At, li.ForwardRef = it, li.Fragment = et, li.Lazy = Kt, li.Memo = Ot, li.Portal = Oe, li.Profiler = pn, li.StrictMode = Zt, li.Suspense = St, li.isAsyncMode = An, li.isConcurrentMode = qe, li.isContextConsumer = _t, li.isContextProvider = Le, li.isElement = ut, li.isForwardRef = pt, li.isFragment = $t, li.isLazy = Tt, li.isMemo = jt, li.isPortal = wt, li.isProfiler = Pt, li.isStrictMode = cn, li.isSuspense = Ln, li.isValidElementType = Ce, li.typeOf = Se;
|
|
52801
52803
|
}()), li;
|
|
52802
52804
|
}
|
|
52803
52805
|
var p3;
|
|
@@ -52922,31 +52924,31 @@ function EZ() {
|
|
|
52922
52924
|
function Ee(qe) {
|
|
52923
52925
|
if (process.env.NODE_ENV !== "production")
|
|
52924
52926
|
var _t = {}, Le = 0;
|
|
52925
|
-
function ut($t, Tt, jt,
|
|
52926
|
-
if (
|
|
52927
|
+
function ut($t, Tt, jt, wt, Pt, cn, Ln) {
|
|
52928
|
+
if (wt = wt || V, cn = cn || jt, Ln !== c) {
|
|
52927
52929
|
if (I) {
|
|
52928
52930
|
var ke = new Error(
|
|
52929
52931
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
52930
52932
|
);
|
|
52931
52933
|
throw ke.name = "Invariant Violation", ke;
|
|
52932
52934
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
52933
|
-
var
|
|
52934
|
-
!_t[
|
|
52935
|
+
var sn = wt + ":" + jt;
|
|
52936
|
+
!_t[sn] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
52935
52937
|
Le < 3 && (x(
|
|
52936
|
-
"You are manually calling a React.PropTypes validation function for the `" + cn + "` prop on `" +
|
|
52937
|
-
), _t[
|
|
52938
|
+
"You are manually calling a React.PropTypes validation function for the `" + cn + "` prop on `" + wt + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
52939
|
+
), _t[sn] = !0, Le++);
|
|
52938
52940
|
}
|
|
52939
52941
|
}
|
|
52940
|
-
return Tt[jt] == null ? $t ? Tt[jt] === null ? new ce("The " + Pt + " `" + cn + "` is marked as required " + ("in `" +
|
|
52942
|
+
return Tt[jt] == null ? $t ? Tt[jt] === null ? new ce("The " + Pt + " `" + cn + "` is marked as required " + ("in `" + wt + "`, but its value is `null`.")) : new ce("The " + Pt + " `" + cn + "` is marked as required in " + ("`" + wt + "`, but its value is `undefined`.")) : null : qe(Tt, jt, wt, Pt, cn);
|
|
52941
52943
|
}
|
|
52942
52944
|
var pt = ut.bind(null, !1);
|
|
52943
52945
|
return pt.isRequired = ut.bind(null, !0), pt;
|
|
52944
52946
|
}
|
|
52945
52947
|
function xe(qe) {
|
|
52946
52948
|
function _t(Le, ut, pt, $t, Tt, jt) {
|
|
52947
|
-
var
|
|
52949
|
+
var wt = Le[ut], Pt = Zt(wt);
|
|
52948
52950
|
if (Pt !== qe) {
|
|
52949
|
-
var cn = wt
|
|
52951
|
+
var cn = St(wt);
|
|
52950
52952
|
return new ce(
|
|
52951
52953
|
"Invalid " + $t + " `" + Tt + "` of type " + ("`" + cn + "` supplied to `" + pt + "`, expected ") + ("`" + qe + "`."),
|
|
52952
52954
|
{ expectedType: qe }
|
|
@@ -52965,8 +52967,8 @@ function EZ() {
|
|
|
52965
52967
|
return new ce("Property `" + Tt + "` of component `" + pt + "` has invalid PropType notation inside arrayOf.");
|
|
52966
52968
|
var jt = Le[ut];
|
|
52967
52969
|
if (!Array.isArray(jt)) {
|
|
52968
|
-
var
|
|
52969
|
-
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" +
|
|
52970
|
+
var wt = Zt(jt);
|
|
52971
|
+
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" + wt + "` supplied to `" + pt + "`, expected an array."));
|
|
52970
52972
|
}
|
|
52971
52973
|
for (var Pt = 0; Pt < jt.length; Pt++) {
|
|
52972
52974
|
var cn = qe(jt, Pt, pt, $t, Tt + "[" + Pt + "]", c);
|
|
@@ -53002,8 +53004,8 @@ function EZ() {
|
|
|
53002
53004
|
function Fe(qe) {
|
|
53003
53005
|
function _t(Le, ut, pt, $t, Tt) {
|
|
53004
53006
|
if (!(Le[ut] instanceof qe)) {
|
|
53005
|
-
var jt = qe.name || V,
|
|
53006
|
-
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" +
|
|
53007
|
+
var jt = qe.name || V, wt = An(Le[ut]);
|
|
53008
|
+
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" + wt + "` supplied to `" + pt + "`, expected ") + ("instance of `" + jt + "`."));
|
|
53007
53009
|
}
|
|
53008
53010
|
return null;
|
|
53009
53011
|
}
|
|
@@ -53015,12 +53017,12 @@ function EZ() {
|
|
|
53015
53017
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
53016
53018
|
) : x("Invalid argument supplied to oneOf, expected an array.")), T;
|
|
53017
53019
|
function _t(Le, ut, pt, $t, Tt) {
|
|
53018
|
-
for (var jt = Le[ut],
|
|
53019
|
-
if (K(jt, qe[
|
|
53020
|
+
for (var jt = Le[ut], wt = 0; wt < qe.length; wt++)
|
|
53021
|
+
if (K(jt, qe[wt]))
|
|
53020
53022
|
return null;
|
|
53021
53023
|
var Pt = JSON.stringify(qe, function(Ln, ke) {
|
|
53022
|
-
var
|
|
53023
|
-
return
|
|
53024
|
+
var sn = St(ke);
|
|
53025
|
+
return sn === "symbol" ? String(ke) : ke;
|
|
53024
53026
|
});
|
|
53025
53027
|
return new ce("Invalid " + $t + " `" + Tt + "` of value `" + String(jt) + "` " + ("supplied to `" + pt + "`, expected one of " + Pt + "."));
|
|
53026
53028
|
}
|
|
@@ -53030,9 +53032,9 @@ function EZ() {
|
|
|
53030
53032
|
function _t(Le, ut, pt, $t, Tt) {
|
|
53031
53033
|
if (typeof qe != "function")
|
|
53032
53034
|
return new ce("Property `" + Tt + "` of component `" + pt + "` has invalid PropType notation inside objectOf.");
|
|
53033
|
-
var jt = Le[ut],
|
|
53034
|
-
if (
|
|
53035
|
-
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" +
|
|
53035
|
+
var jt = Le[ut], wt = Zt(jt);
|
|
53036
|
+
if (wt !== "object")
|
|
53037
|
+
return new ce("Invalid " + $t + " `" + Tt + "` of type " + ("`" + wt + "` supplied to `" + pt + "`, expected an object."));
|
|
53036
53038
|
for (var Pt in jt)
|
|
53037
53039
|
if (h(jt, Pt)) {
|
|
53038
53040
|
var cn = qe(jt, Pt, pt, $t, Tt + "." + Pt, c);
|
|
@@ -53050,18 +53052,18 @@ function EZ() {
|
|
|
53050
53052
|
var Le = qe[_t];
|
|
53051
53053
|
if (typeof Le != "function")
|
|
53052
53054
|
return x(
|
|
53053
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
53055
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + tn(Le) + " at index " + _t + "."
|
|
53054
53056
|
), T;
|
|
53055
53057
|
}
|
|
53056
|
-
function ut(pt, $t, Tt, jt,
|
|
53058
|
+
function ut(pt, $t, Tt, jt, wt) {
|
|
53057
53059
|
for (var Pt = [], cn = 0; cn < qe.length; cn++) {
|
|
53058
|
-
var Ln = qe[cn], ke = Ln(pt, $t, Tt, jt,
|
|
53060
|
+
var Ln = qe[cn], ke = Ln(pt, $t, Tt, jt, wt, c);
|
|
53059
53061
|
if (ke == null)
|
|
53060
53062
|
return null;
|
|
53061
53063
|
ke.data && h(ke.data, "expectedType") && Pt.push(ke.data.expectedType);
|
|
53062
53064
|
}
|
|
53063
|
-
var
|
|
53064
|
-
return new ce("Invalid " + jt + " `" +
|
|
53065
|
+
var sn = Pt.length > 0 ? ", expected one of type [" + Pt.join(", ") + "]" : "";
|
|
53066
|
+
return new ce("Invalid " + jt + " `" + wt + "` supplied to " + ("`" + Tt + "`" + sn + "."));
|
|
53065
53067
|
}
|
|
53066
53068
|
return Ee(ut);
|
|
53067
53069
|
}
|
|
@@ -53078,13 +53080,13 @@ function EZ() {
|
|
|
53078
53080
|
}
|
|
53079
53081
|
function Kt(qe) {
|
|
53080
53082
|
function _t(Le, ut, pt, $t, Tt) {
|
|
53081
|
-
var jt = Le[ut],
|
|
53082
|
-
if (
|
|
53083
|
-
return new ce("Invalid " + $t + " `" + Tt + "` of type `" +
|
|
53083
|
+
var jt = Le[ut], wt = Zt(jt);
|
|
53084
|
+
if (wt !== "object")
|
|
53085
|
+
return new ce("Invalid " + $t + " `" + Tt + "` of type `" + wt + "` " + ("supplied to `" + pt + "`, expected `object`."));
|
|
53084
53086
|
for (var Pt in qe) {
|
|
53085
53087
|
var cn = qe[Pt];
|
|
53086
53088
|
if (typeof cn != "function")
|
|
53087
|
-
return et(pt, $t, Tt, Pt,
|
|
53089
|
+
return et(pt, $t, Tt, Pt, St(cn));
|
|
53088
53090
|
var Ln = cn(jt, Pt, pt, $t, Tt + "." + Pt, c);
|
|
53089
53091
|
if (Ln)
|
|
53090
53092
|
return Ln;
|
|
@@ -53095,14 +53097,14 @@ function EZ() {
|
|
|
53095
53097
|
}
|
|
53096
53098
|
function Ot(qe) {
|
|
53097
53099
|
function _t(Le, ut, pt, $t, Tt) {
|
|
53098
|
-
var jt = Le[ut],
|
|
53099
|
-
if (
|
|
53100
|
-
return new ce("Invalid " + $t + " `" + Tt + "` of type `" +
|
|
53100
|
+
var jt = Le[ut], wt = Zt(jt);
|
|
53101
|
+
if (wt !== "object")
|
|
53102
|
+
return new ce("Invalid " + $t + " `" + Tt + "` of type `" + wt + "` " + ("supplied to `" + pt + "`, expected `object`."));
|
|
53101
53103
|
var Pt = o({}, Le[ut], qe);
|
|
53102
53104
|
for (var cn in Pt) {
|
|
53103
53105
|
var Ln = qe[cn];
|
|
53104
53106
|
if (h(qe, cn) && typeof Ln != "function")
|
|
53105
|
-
return et(pt, $t, Tt, cn,
|
|
53107
|
+
return et(pt, $t, Tt, cn, St(Ln));
|
|
53106
53108
|
if (!Ln)
|
|
53107
53109
|
return new ce(
|
|
53108
53110
|
"Invalid " + $t + " `" + Tt + "` key `" + cn + "` supplied to `" + pt + "`.\nBad object: " + JSON.stringify(Le[ut], null, " ") + `
|
|
@@ -53156,7 +53158,7 @@ Valid keys: ` + JSON.stringify(Object.keys(qe), null, " ")
|
|
|
53156
53158
|
var _t = typeof qe;
|
|
53157
53159
|
return Array.isArray(qe) ? "array" : qe instanceof RegExp ? "object" : pn(_t, qe) ? "symbol" : _t;
|
|
53158
53160
|
}
|
|
53159
|
-
function
|
|
53161
|
+
function St(qe) {
|
|
53160
53162
|
if (typeof qe > "u" || qe === null)
|
|
53161
53163
|
return "" + qe;
|
|
53162
53164
|
var _t = Zt(qe);
|
|
@@ -53168,8 +53170,8 @@ Valid keys: ` + JSON.stringify(Object.keys(qe), null, " ")
|
|
|
53168
53170
|
}
|
|
53169
53171
|
return _t;
|
|
53170
53172
|
}
|
|
53171
|
-
function
|
|
53172
|
-
var _t =
|
|
53173
|
+
function tn(qe) {
|
|
53174
|
+
var _t = St(qe);
|
|
53173
53175
|
switch (_t) {
|
|
53174
53176
|
case "array":
|
|
53175
53177
|
case "object":
|
|
@@ -53803,7 +53805,7 @@ function BZ({
|
|
|
53803
53805
|
const {
|
|
53804
53806
|
t: h
|
|
53805
53807
|
} = vs(), [g, x] = Tn({});
|
|
53806
|
-
return
|
|
53808
|
+
return rn(() => {
|
|
53807
53809
|
const T = {};
|
|
53808
53810
|
i.image && (T.backgroundImage = `url('${i.image}')`), x(T);
|
|
53809
53811
|
}, [i]), /* @__PURE__ */ Ae.jsxs("button", { className: "venue", onClick: () => c(), "data-sentry-component": "Venue", "data-sentry-source-file": "Venue.jsx", children: [
|
|
@@ -54019,13 +54021,13 @@ function $p({
|
|
|
54019
54021
|
once: !0
|
|
54020
54022
|
}));
|
|
54021
54023
|
}
|
|
54022
|
-
|
|
54024
|
+
rn(() => {
|
|
54023
54025
|
x.current.addEventListener("transitionend", () => {
|
|
54024
54026
|
fe(!0);
|
|
54025
54027
|
}, {
|
|
54026
54028
|
once: !0
|
|
54027
54029
|
});
|
|
54028
|
-
}, []),
|
|
54030
|
+
}, []), rn(() => {
|
|
54029
54031
|
h !== void 0 && (x.current.style.height = `${x.current.clientHeight}px`, requestAnimationFrame(() => {
|
|
54030
54032
|
Ce(h);
|
|
54031
54033
|
}));
|
|
@@ -54051,7 +54053,7 @@ function $p({
|
|
|
54051
54053
|
trackMouse: !0,
|
|
54052
54054
|
preventScrollOnSwipe: !0
|
|
54053
54055
|
});
|
|
54054
|
-
|
|
54056
|
+
rn(() => {
|
|
54055
54057
|
o === !1 ? (ce(), x.current.style.height = "") : ce(T.current.clientHeight);
|
|
54056
54058
|
}, [i.length, o]);
|
|
54057
54059
|
const de = (Fe) => {
|
|
@@ -54061,7 +54063,7 @@ function $p({
|
|
|
54061
54063
|
}
|
|
54062
54064
|
const XZ = (i, o) => {
|
|
54063
54065
|
const [c, h] = Tn(void 0), [g, x] = Tn(void 0);
|
|
54064
|
-
return
|
|
54066
|
+
return rn(() => {
|
|
54065
54067
|
const T = (s = !1) => {
|
|
54066
54068
|
var L, O;
|
|
54067
54069
|
const I = ((L = o.current) == null ? void 0 : L.scrollHeight) > ((O = o.current) == null ? void 0 : O.clientHeight);
|
|
@@ -54084,7 +54086,7 @@ const C0 = tr({
|
|
|
54084
54086
|
default: !0
|
|
54085
54087
|
}), mL = (i, o, c, h, g) => {
|
|
54086
54088
|
const [x, T] = Tn(), [s, I] = Tn(), [L, O] = Cn(kw), [, U] = Cn(C0), [V, Z] = Tn();
|
|
54087
|
-
return
|
|
54089
|
+
return rn(() => {
|
|
54088
54090
|
Z(!1), i != null && i.geometry && (o != null && o.geometry) && c.getRoute({
|
|
54089
54091
|
origin: E3(i),
|
|
54090
54092
|
destination: E3(o),
|
|
@@ -54132,18 +54134,18 @@ function gL({
|
|
|
54132
54134
|
}) {
|
|
54133
54135
|
const {
|
|
54134
54136
|
t: x
|
|
54135
|
-
} = vs(), T = Ur(null), s = Ur(null), I = Ur(null), [L, O] = Tn(!1), [U, V] = Tn(!1), [Z, K] = Tn(!1), [ce, Ee] = Tn(null), xe = Dt(Zo), fe = Dt(cc), [Ce, Se] = XZ(fe, I), de = Cd(), Fe = Dt(xs), Ue = Dt(il), me = Dt(xw), [At, it] = Tn(), [et, Kt] = Tn(), Ot = nl(), Oe = Dt(I0), pn = Dt(A0), [, , Zt] = mL(et, At, me, Oe, pn),
|
|
54136
|
-
|
|
54137
|
+
} = vs(), T = Ur(null), s = Ur(null), I = Ur(null), [L, O] = Tn(!1), [U, V] = Tn(!1), [Z, K] = Tn(!1), [ce, Ee] = Tn(null), xe = Dt(Zo), fe = Dt(cc), [Ce, Se] = XZ(fe, I), de = Cd(), Fe = Dt(xs), Ue = Dt(il), me = Dt(xw), [At, it] = Tn(), [et, Kt] = Tn(), Ot = nl(), Oe = Dt(I0), pn = Dt(A0), [, , Zt] = mL(et, At, me, Oe, pn), St = Dt(M0);
|
|
54138
|
+
rn(() => {
|
|
54137
54139
|
O(!1), V(!1), K(!1), Ee(null), fe && (T.current.location = fe, Ee(xe.getDisplayRule(fe)), it(fe)), Ue && Kt(Ue);
|
|
54138
54140
|
}, [fe, xe, Ue]);
|
|
54139
|
-
function
|
|
54141
|
+
function tn(jt) {
|
|
54140
54142
|
typeof c == "function" && c(jt);
|
|
54141
54143
|
}
|
|
54142
|
-
|
|
54144
|
+
rn(() => {
|
|
54143
54145
|
h !== void 0 && (O(h === Ci.MAX), h === Ci.MAX ? qe() : _t());
|
|
54144
54146
|
}, [h]);
|
|
54145
54147
|
function An() {
|
|
54146
|
-
L === !1 ? (
|
|
54148
|
+
L === !1 ? (tn(Ci.MAX), qe()) : (tn(Ci.FIT), _t());
|
|
54147
54149
|
}
|
|
54148
54150
|
function qe() {
|
|
54149
54151
|
requestAnimationFrame(() => {
|
|
@@ -54162,28 +54164,28 @@ function gL({
|
|
|
54162
54164
|
V(!1), K(!1);
|
|
54163
54165
|
}
|
|
54164
54166
|
function pt() {
|
|
54165
|
-
O(!1), V(!1), K(!1),
|
|
54167
|
+
O(!1), V(!1), K(!1), tn(Ci.FIT), o();
|
|
54166
54168
|
}
|
|
54167
54169
|
function $t() {
|
|
54168
|
-
O(!1), V(!1), K(!1),
|
|
54170
|
+
O(!1), V(!1), K(!1), tn(Ci.FIT), g();
|
|
54169
54171
|
}
|
|
54170
54172
|
function Tt() {
|
|
54171
|
-
O(!1), V(!1), K(!1),
|
|
54173
|
+
O(!1), V(!1), K(!1), tn(Ci.FIT), i();
|
|
54172
54174
|
}
|
|
54173
54175
|
return /* @__PURE__ */ Ae.jsx("div", { className: `location-details ${U ? "location-details--content-above" : ""} ${Z ? "location-details--content-below" : ""}`, "data-sentry-component": "LocationDetails", "data-sentry-source-file": "LocationDetails.jsx", children: fe && /* @__PURE__ */ Ae.jsxs(Ae.Fragment, { children: [
|
|
54174
54176
|
/* @__PURE__ */ Ae.jsxs("div", { className: "location-info", children: [
|
|
54175
54177
|
/* @__PURE__ */ Ae.jsx("div", { className: "location-info__icon", children: ce && /* @__PURE__ */ Ae.jsx("img", { alt: "", src: ce.icon.src ? ce.icon.src : ce.icon }) }),
|
|
54176
54178
|
/* @__PURE__ */ Ae.jsxs("div", { className: "location-info__content", children: [
|
|
54177
54179
|
/* @__PURE__ */ Ae.jsx("div", { className: "location-info__name", children: fe.properties.name }),
|
|
54178
|
-
/* @__PURE__ */ Ae.jsx("mi-location-info", { level: x("Level"), ref: T, "show-external-id":
|
|
54180
|
+
/* @__PURE__ */ Ae.jsx("mi-location-info", { level: x("Level"), ref: T, "show-external-id": St })
|
|
54179
54181
|
] }),
|
|
54180
54182
|
/* @__PURE__ */ Ae.jsx("button", { className: "location-info__close", onClick: () => Tt(), children: /* @__PURE__ */ Ae.jsx(E0, {}) })
|
|
54181
54183
|
] }),
|
|
54182
54184
|
/* @__PURE__ */ Ae.jsxs("div", { ref: s, onScroll: (jt) => Le(), className: "location-details__details", children: [
|
|
54183
54185
|
fe.properties.imageURL && /* @__PURE__ */ Ae.jsx("img", { alt: "", src: fe.properties.imageURL, className: "location-details__image" }),
|
|
54184
|
-
Object.keys(fe.properties.categories).length > 0 && /* @__PURE__ */ Ae.jsx("p", { className: "location-details__categories", children: Object.values(fe.properties.categories).map((jt,
|
|
54186
|
+
Object.keys(fe.properties.categories).length > 0 && /* @__PURE__ */ Ae.jsx("p", { className: "location-details__categories", children: Object.values(fe.properties.categories).map((jt, wt, Pt) => /* @__PURE__ */ Ae.jsxs($r.Fragment, { children: [
|
|
54185
54187
|
jt,
|
|
54186
|
-
|
|
54188
|
+
wt < Pt.length - 1 && /* @__PURE__ */ Ae.jsx(Ae.Fragment, { children: "・" })
|
|
54187
54189
|
] }, jt)) }),
|
|
54188
54190
|
fe.properties.description && !L && /* @__PURE__ */ Ae.jsxs("section", { className: "location-details__description", children: [
|
|
54189
54191
|
/* @__PURE__ */ Ae.jsx("div", { ref: I, children: fe.properties.description }),
|
|
@@ -54211,7 +54213,7 @@ function Dw({
|
|
|
54211
54213
|
const {
|
|
54212
54214
|
t: g
|
|
54213
54215
|
} = vs(), x = Ur(), T = Dt(Zo), s = Dt(M0);
|
|
54214
|
-
return
|
|
54216
|
+
return rn(() => {
|
|
54215
54217
|
var V;
|
|
54216
54218
|
const I = (Z) => o(Z.detail), L = () => {
|
|
54217
54219
|
var Z;
|
|
@@ -54231,7 +54233,7 @@ function Dw({
|
|
|
54231
54233
|
}
|
|
54232
54234
|
const QZ = () => {
|
|
54233
54235
|
const [i, o] = Tn(), c = Dt(Zo), h = Dt(Iw);
|
|
54234
|
-
return
|
|
54236
|
+
return rn(() => {
|
|
54235
54237
|
function g() {
|
|
54236
54238
|
const x = c.getMapView().getCenter();
|
|
54237
54239
|
o(x.lat + "," + x.lng);
|
|
@@ -54284,14 +54286,14 @@ const QZ = () => {
|
|
|
54284
54286
|
getInputField() {
|
|
54285
54287
|
return U.current.getInputField().then((Se) => K(Se));
|
|
54286
54288
|
}
|
|
54287
|
-
})),
|
|
54289
|
+
})), rn(() => {
|
|
54288
54290
|
const {
|
|
54289
54291
|
current: Se
|
|
54290
54292
|
} = U;
|
|
54291
54293
|
Se.value && window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
54292
54294
|
Se.triggerSearch();
|
|
54293
54295
|
});
|
|
54294
|
-
}, [Z]),
|
|
54296
|
+
}, [Z]), rn(() => {
|
|
54295
54297
|
const Se = (Ue) => c(Ue.detail), {
|
|
54296
54298
|
current: de
|
|
54297
54299
|
} = U;
|
|
@@ -54336,7 +54338,7 @@ function rY({
|
|
|
54336
54338
|
children: o
|
|
54337
54339
|
}) {
|
|
54338
54340
|
const c = Ur();
|
|
54339
|
-
return
|
|
54341
|
+
return rn(() => {
|
|
54340
54342
|
const h = (x) => i(x.detail), {
|
|
54341
54343
|
current: g
|
|
54342
54344
|
} = c;
|
|
@@ -54401,11 +54403,11 @@ function vL({
|
|
|
54401
54403
|
}) {
|
|
54402
54404
|
const {
|
|
54403
54405
|
t: T
|
|
54404
|
-
} = vs(), s = Ur(), I = Ur(), L = Ur(), O = Ur(), U = Dt(xw), V = Dt(b0), Z = Dt(cc), K = Dt(bw), ce = Dt(xs), [Ee, xe] = Tn(), [, fe] = Cn(kw), [Ce, Se] = Tn(!0), [de, Fe] = Tn(!1), [Ue, me] = Tn([]), [At, it] = Tn(), [et, Kt] = Tn(), Ot = Dt(A0), Oe = Cd(), [pn, Zt] = Tn(!1), [
|
|
54406
|
+
} = vs(), s = Ur(), I = Ur(), L = Ur(), O = Ur(), U = Dt(xw), V = Dt(b0), Z = Dt(cc), K = Dt(bw), ce = Dt(xs), [Ee, xe] = Tn(), [, fe] = Cn(kw), [Ce, Se] = Tn(!0), [de, Fe] = Tn(!1), [Ue, me] = Tn([]), [At, it] = Tn(), [et, Kt] = Tn(), Ot = Dt(A0), Oe = Cd(), [pn, Zt] = Tn(!1), [St, tn] = Cn(I0), [An, qe] = Tn(!1), _t = Dt(Mm), Le = Dt(oY), [ut, pt, $t, Tt] = mL(et, At, U, St, Ot);
|
|
54405
54407
|
function jt(mn) {
|
|
54406
54408
|
return K === Lo.Google && mn.properties.type === "google_places" ? eY(mn) : K === Lo.Mapbox && mn.properties.type === "mapbox_places" ? iY(mn, _t) : Promise.resolve(mn);
|
|
54407
54409
|
}
|
|
54408
|
-
function
|
|
54410
|
+
function wt(mn) {
|
|
54409
54411
|
Ee === eo.TO ? jt(mn).then((Dn) => {
|
|
54410
54412
|
it(Dn), L.current.setDisplayText(Dn.properties.name);
|
|
54411
54413
|
}, () => fe(!1)) : Ee === eo.FROM && jt(mn).then((Dn) => {
|
|
@@ -54431,7 +54433,7 @@ function vL({
|
|
|
54431
54433
|
function ke(mn) {
|
|
54432
54434
|
(et == null ? void 0 : et.id) === "USER_POSITION" && mn === eo.TO || (At == null ? void 0 : At.id) === "USER_POSITION" && mn === eo.FROM ? qe(!1) : qe(!0);
|
|
54433
54435
|
}
|
|
54434
|
-
function
|
|
54436
|
+
function sn(mn) {
|
|
54435
54437
|
ke(mn);
|
|
54436
54438
|
}
|
|
54437
54439
|
function Zn(mn) {
|
|
@@ -54452,7 +54454,7 @@ function vL({
|
|
|
54452
54454
|
function xn() {
|
|
54453
54455
|
Kt(), O.current.setDisplayText(""), o();
|
|
54454
54456
|
}
|
|
54455
|
-
return
|
|
54457
|
+
return rn(() => {
|
|
54456
54458
|
var Dn;
|
|
54457
54459
|
cn(Ci.MAX);
|
|
54458
54460
|
let mn = !1;
|
|
@@ -54467,9 +54469,9 @@ function vL({
|
|
|
54467
54469
|
O.current.setDisplayText(rr.properties.name), Kt(rr), fe(!0), Se(!0), me([]);
|
|
54468
54470
|
}
|
|
54469
54471
|
}
|
|
54470
|
-
}, [x, c, h]),
|
|
54472
|
+
}, [x, c, h]), rn(() => {
|
|
54471
54473
|
K === Lo.Mapbox && (Zt(!1), me(Ue.filter((mn) => mn.properties.type !== "google_places")));
|
|
54472
|
-
}, [K]),
|
|
54474
|
+
}, [K]), rn(() => {
|
|
54473
54475
|
Z && (it(Z), L.current.setDisplayText(Z.properties.name));
|
|
54474
54476
|
}, [Z]), /* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding", ref: s, "data-sentry-component": "Wayfinding", "data-sentry-source-file": "Wayfinding.jsx", children: [
|
|
54475
54477
|
/* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__directions", children: [
|
|
@@ -54478,12 +54480,12 @@ function vL({
|
|
|
54478
54480
|
/* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__locations", children: [
|
|
54479
54481
|
/* @__PURE__ */ Ae.jsxs("label", { className: "wayfinding__label", children: [
|
|
54480
54482
|
T("From").toUpperCase(),
|
|
54481
|
-
/* @__PURE__ */ Ae.jsx(ab, { ref: O, mapsindoors: !0, google: K === Lo.Google, mapbox: K === Lo.Mapbox, placeholder: T("Search by name, category, building..."), results: (mn) => Pt(mn, eo.FROM), clicked: () => Zn(eo.FROM), cleared: () => Pr(eo.FROM), changed: () =>
|
|
54483
|
+
/* @__PURE__ */ Ae.jsx(ab, { ref: O, mapsindoors: !0, google: K === Lo.Google, mapbox: K === Lo.Mapbox, placeholder: T("Search by name, category, building..."), results: (mn) => Pt(mn, eo.FROM), clicked: () => Zn(eo.FROM), cleared: () => Pr(eo.FROM), changed: () => sn(eo.FROM), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
|
|
54482
54484
|
] }),
|
|
54483
54485
|
/* @__PURE__ */ Ae.jsx("button", { onClick: () => Ii(), "aria-label": T("Switch"), className: "wayfinding__switch", children: /* @__PURE__ */ Ae.jsx(JZ, { "data-sentry-element": "SwitchIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
|
|
54484
54486
|
/* @__PURE__ */ Ae.jsxs("label", { className: "wayfinding__label", children: [
|
|
54485
54487
|
T("To").toUpperCase(),
|
|
54486
|
-
/* @__PURE__ */ Ae.jsx(ab, { ref: L, mapsindoors: !0, google: K === Lo.Google, mapbox: K === Lo.Mapbox, placeholder: T("Search by name, category, building..."), results: (mn) => Pt(mn, eo.TO), clicked: () => Zn(eo.TO), cleared: () => Pr(eo.TO), changed: () =>
|
|
54488
|
+
/* @__PURE__ */ Ae.jsx(ab, { ref: L, mapsindoors: !0, google: K === Lo.Google, mapbox: K === Lo.Mapbox, placeholder: T("Search by name, category, building..."), results: (mn) => Pt(mn, eo.TO), clicked: () => Zn(eo.TO), cleared: () => Pr(eo.TO), changed: () => sn(eo.TO), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
|
|
54487
54489
|
] })
|
|
54488
54490
|
] })
|
|
54489
54491
|
] }),
|
|
@@ -54494,13 +54496,13 @@ function vL({
|
|
|
54494
54496
|
T("My position")
|
|
54495
54497
|
] }),
|
|
54496
54498
|
Ue.length > 0 && /* @__PURE__ */ Ae.jsx("div", { className: "wayfinding__scrollable", ...Oe, children: /* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__results", children: [
|
|
54497
|
-
Ue.map((mn) => /* @__PURE__ */ Ae.jsx(Dw, { icon: mn.properties.type === "google_places" || mn.properties.type === "mapbox_places" ? lY : void 0, location: mn, locationClicked: (Dn) =>
|
|
54499
|
+
Ue.map((mn) => /* @__PURE__ */ Ae.jsx(Dw, { icon: mn.properties.type === "google_places" || mn.properties.type === "mapbox_places" ? lY : void 0, location: mn, locationClicked: (Dn) => wt(Dn) }, mn.id)),
|
|
54498
54500
|
pn && /* @__PURE__ */ Ae.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: tY })
|
|
54499
54501
|
] }) }),
|
|
54500
54502
|
!de && !An && $t && !pn && et && At && /* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__details", ref: I, children: [
|
|
54501
54503
|
/* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__settings", children: [
|
|
54502
54504
|
/* @__PURE__ */ Ae.jsx(yL, {}),
|
|
54503
|
-
/* @__PURE__ */ Ae.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ Ae.jsxs(rY, { selectionChanged: (mn) =>
|
|
54505
|
+
/* @__PURE__ */ Ae.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ Ae.jsxs(rY, { selectionChanged: (mn) => tn(mn[0].value), children: [
|
|
54504
54506
|
/* @__PURE__ */ Ae.jsxs("mi-dropdown-item", { selected: !0, value: lu.WALKING, children: [
|
|
54505
54507
|
/* @__PURE__ */ Ae.jsx(C3, {}),
|
|
54506
54508
|
T("Walk")
|
|
@@ -54518,9 +54520,9 @@ function vL({
|
|
|
54518
54520
|
/* @__PURE__ */ Ae.jsx("hr", {}),
|
|
54519
54521
|
/* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__info", children: [
|
|
54520
54522
|
/* @__PURE__ */ Ae.jsxs("div", { className: "wayfinding__distance", children: [
|
|
54521
|
-
|
|
54522
|
-
|
|
54523
|
-
|
|
54523
|
+
St === lu.WALKING && /* @__PURE__ */ Ae.jsx(C3, {}),
|
|
54524
|
+
St === lu.DRIVING && /* @__PURE__ */ Ae.jsx(I3, {}),
|
|
54525
|
+
St === lu.BICYCLING && /* @__PURE__ */ Ae.jsx(A3, {}),
|
|
54524
54526
|
/* @__PURE__ */ Ae.jsxs("div", { children: [
|
|
54525
54527
|
T("Distance"),
|
|
54526
54528
|
":"
|
|
@@ -54612,7 +54614,7 @@ const uY = (i) => /* @__PURE__ */ Sn.createElement("svg", { width: 24, height: 2
|
|
|
54612
54614
|
hours: s("h"),
|
|
54613
54615
|
minutes: s("min")
|
|
54614
54616
|
};
|
|
54615
|
-
return
|
|
54617
|
+
return rn(() => {
|
|
54616
54618
|
const {
|
|
54617
54619
|
current: K
|
|
54618
54620
|
} = T;
|
|
@@ -54646,12 +54648,12 @@ function mY({
|
|
|
54646
54648
|
const {
|
|
54647
54649
|
t: T
|
|
54648
54650
|
} = vs(), s = Cd(), I = Ur(), [L, O] = Tn(), [U, V] = Cn(Ow), [Z, K] = Tn(), ce = Dt(C0), Ee = Dt(Zo), xe = Dt(Pm), [, fe] = Cn(xL), Ce = pY(), Se = Lm();
|
|
54649
|
-
|
|
54651
|
+
rn(() => {
|
|
54650
54652
|
const me = {
|
|
54651
54653
|
...i[i.length - 1]
|
|
54652
54654
|
};
|
|
54653
54655
|
me.travel_mode = "DESTINATION", me.steps = null, i.push(me), K(i);
|
|
54654
|
-
}, [i]),
|
|
54656
|
+
}, [i]), rn(() => {
|
|
54655
54657
|
var Ue, me;
|
|
54656
54658
|
if (g) {
|
|
54657
54659
|
if (U === (Z == null ? void 0 : Z.length) - 1 && (ce != null && ce.destinationLocation)) {
|
|
@@ -54699,46 +54701,46 @@ function bL({
|
|
|
54699
54701
|
const {
|
|
54700
54702
|
t: x
|
|
54701
54703
|
} = vs(), [T, s] = Tn(null), I = Ur(null), [L, O] = Tn(), U = Dt(Zo), V = Dt(I0), Z = Dt(C0), [, K] = Cn(Ow), [ce, Ee] = Cn(Pm), xe = Dt(il), fe = nl(), [, Ce] = Cn(P0), Se = Dt(xL), de = Dt(xs), Fe = Lm(), Ue = Dt(M0);
|
|
54702
|
-
|
|
54704
|
+
rn(() => {
|
|
54703
54705
|
if (s(null), i && Z) {
|
|
54704
54706
|
O(Z.totalTime);
|
|
54705
|
-
const
|
|
54706
|
-
Ji == null || Ji.setRoute(null), Ji = null, Promise.all([me(
|
|
54707
|
+
const tn = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
54708
|
+
Ji == null || Ji.setRoute(null), Ji = null, Promise.all([me(tn), At(tn)]).then(([An, qe]) => {
|
|
54707
54709
|
Ji = new window.mapsindoors.directions.DirectionsRenderer({
|
|
54708
54710
|
mapsIndoors: U,
|
|
54709
54711
|
fitBoundsPadding: {
|
|
54710
|
-
top:
|
|
54712
|
+
top: tn,
|
|
54711
54713
|
bottom: An,
|
|
54712
54714
|
left: qe,
|
|
54713
|
-
right:
|
|
54715
|
+
right: tn
|
|
54714
54716
|
}
|
|
54715
54717
|
}), Ji.setRoute(Z.directionsResult), Ji.setStepIndex(0), I.current.location = Z.destinationLocation, Z.destinationLocation.id === "USER_POSITION" ? s(null) : s(U.getDisplayRule(Z.destinationLocation));
|
|
54716
54718
|
});
|
|
54717
54719
|
}
|
|
54718
54720
|
}, [i, Z, U, V]);
|
|
54719
|
-
function me(
|
|
54721
|
+
function me(tn) {
|
|
54720
54722
|
return new Promise((An) => {
|
|
54721
54723
|
if (fe)
|
|
54722
|
-
xe ? Tw().then((qe) => An(qe)) : An(
|
|
54724
|
+
xe ? Tw().then((qe) => An(qe)) : An(tn);
|
|
54723
54725
|
else
|
|
54724
54726
|
return QP().then((qe) => An(qe));
|
|
54725
54727
|
});
|
|
54726
54728
|
}
|
|
54727
|
-
function At(
|
|
54729
|
+
function At(tn) {
|
|
54728
54730
|
return new Promise((An) => {
|
|
54729
|
-
fe ? xe ? An(
|
|
54731
|
+
fe ? xe ? An(tn) : Cw().then((qe) => An(qe)) : An(tn);
|
|
54730
54732
|
});
|
|
54731
54733
|
}
|
|
54732
|
-
|
|
54734
|
+
rn(() => {
|
|
54733
54735
|
!i && Ji && Oe();
|
|
54734
54736
|
}, [i]);
|
|
54735
54737
|
function it() {
|
|
54736
|
-
return Z ? Z.directionsResult.legs.reduce((
|
|
54738
|
+
return Z ? Z.directionsResult.legs.reduce((tn, An) => {
|
|
54737
54739
|
for (const qe in An.steps) {
|
|
54738
54740
|
const _t = An.steps[qe];
|
|
54739
|
-
|
|
54741
|
+
tn.push(_t);
|
|
54740
54742
|
}
|
|
54741
|
-
return
|
|
54743
|
+
return tn;
|
|
54742
54744
|
}, []) : [];
|
|
54743
54745
|
}
|
|
54744
54746
|
function et() {
|
|
@@ -54754,17 +54756,17 @@ function bL({
|
|
|
54754
54756
|
Ji == null || Ji.setRoute(null), Ji = null;
|
|
54755
54757
|
}
|
|
54756
54758
|
function pn() {
|
|
54757
|
-
K(0), Ee(!1),
|
|
54759
|
+
K(0), Ee(!1), St(Ci.FIT);
|
|
54758
54760
|
}
|
|
54759
54761
|
function Zt() {
|
|
54760
54762
|
pn(), Oe(), o();
|
|
54761
54763
|
}
|
|
54762
|
-
function
|
|
54763
|
-
typeof c == "function" && c(
|
|
54764
|
+
function St(tn) {
|
|
54765
|
+
typeof c == "function" && c(tn);
|
|
54764
54766
|
}
|
|
54765
|
-
return
|
|
54766
|
-
|
|
54767
|
-
}, [ce]),
|
|
54767
|
+
return rn(() => {
|
|
54768
|
+
St(ce ? Ci.MAX : Ci.FIT);
|
|
54769
|
+
}, [ce]), rn(() => {
|
|
54768
54770
|
i && h && Ee(h === Ci.MAX);
|
|
54769
54771
|
}, [i, h]), /* @__PURE__ */ Ae.jsxs("div", { className: "directions", style: {
|
|
54770
54772
|
display: Fe ? "block" : "grid"
|
|
@@ -54812,7 +54814,7 @@ const wL = tr({
|
|
|
54812
54814
|
clearInputField() {
|
|
54813
54815
|
c.current.clearInputField();
|
|
54814
54816
|
}
|
|
54815
|
-
})),
|
|
54817
|
+
})), rn(() => {
|
|
54816
54818
|
const {
|
|
54817
54819
|
current: g
|
|
54818
54820
|
} = c;
|
|
@@ -54867,9 +54869,9 @@ function xY({
|
|
|
54867
54869
|
}
|
|
54868
54870
|
return h.current && h.current.addEventListener("scroll", () => {
|
|
54869
54871
|
Fe();
|
|
54870
|
-
}),
|
|
54872
|
+
}), rn(() => {
|
|
54871
54873
|
U && (vY().then((me) => xe(me)), Se(Ci.MAX));
|
|
54872
|
-
}, [U]),
|
|
54874
|
+
}, [U]), rn(() => {
|
|
54873
54875
|
Ee && Ce !== void 0 && (x || !x && fe) && Ee.scrollIntoView({
|
|
54874
54876
|
behavior: "smooth",
|
|
54875
54877
|
block: "nearest",
|
|
@@ -54924,7 +54926,7 @@ function EL({
|
|
|
54924
54926
|
}) {
|
|
54925
54927
|
const {
|
|
54926
54928
|
t: c
|
|
54927
|
-
} = vs(), h = Ur(), g = Ur(), x = Ur(), T = Ur(), [s, I] = Tn(!0), [L, O] = Cn(Nw), U = Dt(Rm), V = Dt(wL), [Z, K] = Tn(!1), [ce, Ee] = Cn(zw), xe = Cd(), [fe, Ce] = Tn(), Se = Dt(Zo), [, de] = Cn(w0), [, Fe] = Cn(cc), [, Ue] = Cn(Lw), [me, At] = Cn(Au), it = Dt(Id), et = nl(), Kt = Dt(il), [Ot, Oe] = Tn(!1), pn = Dt(_L), Zt = Lm(), [,
|
|
54929
|
+
} = vs(), h = Ur(), g = Ur(), x = Ur(), T = Ur(), [s, I] = Tn(!0), [L, O] = Cn(Nw), U = Dt(Rm), V = Dt(wL), [Z, K] = Tn(!1), [ce, Ee] = Cn(zw), xe = Cd(), [fe, Ce] = Tn(), Se = Dt(Zo), [, de] = Cn(w0), [, Fe] = Cn(cc), [, Ue] = Cn(Lw), [me, At] = Cn(Au), it = Dt(Id), et = nl(), Kt = Dt(il), [Ot, Oe] = Tn(!1), pn = Dt(_L), Zt = Lm(), [, St] = Cn(L0), [tn, An] = Tn(!1), qe = Dt(TL), _t = Dt(R0);
|
|
54928
54930
|
function Le(ke) {
|
|
54929
54931
|
window.mapsindoors.services.LocationsService.getLocations({
|
|
54930
54932
|
categories: ke,
|
|
@@ -54952,21 +54954,21 @@ function EL({
|
|
|
54952
54954
|
function jt(ke) {
|
|
54953
54955
|
Ce(ke);
|
|
54954
54956
|
}
|
|
54955
|
-
function
|
|
54957
|
+
function wt(ke) {
|
|
54956
54958
|
Fe(ke), ke.properties.venueId !== me && (At(ke.properties.venueId), Ue(!0));
|
|
54957
|
-
const
|
|
54958
|
-
Zn !==
|
|
54959
|
+
const sn = Se.getFloor(), Zn = ke.properties.floor;
|
|
54960
|
+
Zn !== sn && Se.setFloor(Zn), Promise.all([Pt(), cn()]).then(([Pr, Ar]) => {
|
|
54959
54961
|
hL(ke, Se, Pr, Ar);
|
|
54960
54962
|
});
|
|
54961
54963
|
}
|
|
54962
54964
|
function Pt() {
|
|
54963
54965
|
return new Promise((ke) => {
|
|
54964
|
-
et ? Kt ? Tw().then((
|
|
54966
|
+
et ? Kt ? Tw().then((sn) => ke(sn)) : ke(0) : ke(200);
|
|
54965
54967
|
});
|
|
54966
54968
|
}
|
|
54967
54969
|
function cn() {
|
|
54968
54970
|
return new Promise((ke) => {
|
|
54969
|
-
et ? Kt ? ke(0) : Cw().then((
|
|
54971
|
+
et ? Kt ? ke(0) : Cw().then((sn) => ke(sn)) : ke(0);
|
|
54970
54972
|
});
|
|
54971
54973
|
}
|
|
54972
54974
|
function Ln() {
|
|
@@ -54983,37 +54985,37 @@ function EL({
|
|
|
54983
54985
|
minHeight: U.length > 0 ? "136px" : "80px"
|
|
54984
54986
|
};
|
|
54985
54987
|
}
|
|
54986
|
-
return
|
|
54988
|
+
return rn(() => {
|
|
54987
54989
|
ce && (O([]), Ee(null));
|
|
54988
|
-
}, [me]),
|
|
54990
|
+
}, [me]), rn(() => {
|
|
54989
54991
|
ce && window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
54990
54992
|
x.current.triggerSearch();
|
|
54991
54993
|
});
|
|
54992
|
-
}, [it]),
|
|
54994
|
+
}, [it]), rn(() => (Se.on("mouseenter", jt), () => {
|
|
54993
54995
|
Se.off("mouseenter", jt);
|
|
54994
|
-
})),
|
|
54996
|
+
})), rn(() => {
|
|
54995
54997
|
if (o && Zt && L.length > 0) {
|
|
54996
54998
|
const ke = document.querySelector(".mapsindoors-map .search__results");
|
|
54997
54999
|
g.current.scrollContainerElementRef = ke;
|
|
54998
55000
|
}
|
|
54999
|
-
}, [L, o]),
|
|
55001
|
+
}, [L, o]), rn(() => {
|
|
55000
55002
|
if (V) {
|
|
55001
|
-
const ke = (
|
|
55002
|
-
|
|
55003
|
+
const ke = (sn) => {
|
|
55004
|
+
sn.target.closest("mi-keyboard") || sn.target.tagName.toUpperCase() === "MI-SEARCH" || sn.target.tagName.toUpperCase() === "INPUT" ? Oe(!0) : Oe(!1);
|
|
55003
55005
|
};
|
|
55004
55006
|
return window.addEventListener("click", ke, !1), () => {
|
|
55005
55007
|
window.removeEventListener("click", ke, !1);
|
|
55006
55008
|
};
|
|
55007
55009
|
}
|
|
55008
|
-
}, [V]),
|
|
55010
|
+
}, [V]), rn(() => {
|
|
55009
55011
|
ce && Le(ce);
|
|
55010
|
-
}, [ce]),
|
|
55012
|
+
}, [ce]), rn(() => {
|
|
55011
55013
|
Kt && An(qe.length > 0);
|
|
55012
55014
|
}, [Kt]), /* @__PURE__ */ Ae.jsxs("div", { className: "search", ref: h, style: Ln(), "data-sentry-component": "Search", "data-sentry-source-file": "Search.jsx", children: [
|
|
55013
55015
|
/* @__PURE__ */ Ae.jsxs("div", { className: "search__info", style: {
|
|
55014
|
-
gridTemplateColumns: Zt &&
|
|
55016
|
+
gridTemplateColumns: Zt && tn ? "min-content 1fr" : "auto"
|
|
55015
55017
|
}, children: [
|
|
55016
|
-
Zt &&
|
|
55018
|
+
Zt && tn && /* @__PURE__ */ Ae.jsx("button", { className: "search__legend", onClick: () => St(!0), children: /* @__PURE__ */ Ae.jsx(bY, {}) }),
|
|
55017
55019
|
/* @__PURE__ */ Ae.jsx(
|
|
55018
55020
|
ab,
|
|
55019
55021
|
{
|
|
@@ -55035,7 +55037,7 @@ function EL({
|
|
|
55035
55037
|
" ",
|
|
55036
55038
|
c("Nothing was found")
|
|
55037
55039
|
] }),
|
|
55038
|
-
L.length > 0 && /* @__PURE__ */ Ae.jsx("div", { className: "search__results prevent-scroll", ...xe, children: L.map((ke) => /* @__PURE__ */ Ae.jsx(Dw, { location: ke, locationClicked: () =>
|
|
55040
|
+
L.length > 0 && /* @__PURE__ */ Ae.jsx("div", { className: "search__results prevent-scroll", ...xe, children: L.map((ke) => /* @__PURE__ */ Ae.jsx(Dw, { location: ke, locationClicked: () => wt(ke), isHovered: (ke == null ? void 0 : ke.id) === (fe == null ? void 0 : fe.id) }, ke.id)) }),
|
|
55039
55041
|
Ot && et && /* @__PURE__ */ Ae.jsx(gY, { ref: T, searchInputElement: pn }),
|
|
55040
55042
|
o && Zt && L.length > 0 && x4(/* @__PURE__ */ Ae.jsx("div", { className: "search__scroll-buttons", children: /* @__PURE__ */ Ae.jsx("mi-scroll-buttons", { ref: g }) }), document.querySelector(".mapsindoors-map"))
|
|
55041
55043
|
] });
|
|
@@ -55052,7 +55054,7 @@ function CL({
|
|
|
55052
55054
|
function T(s) {
|
|
55053
55055
|
typeof h == "function" && h(s);
|
|
55054
55056
|
}
|
|
55055
|
-
return
|
|
55057
|
+
return rn(() => {
|
|
55056
55058
|
T(Ci.FIT);
|
|
55057
55059
|
}, []), /* @__PURE__ */ Ae.jsxs("div", { className: "locations-list", "data-sentry-component": "LocationsList", "data-sentry-source-file": "LocationsList.jsx", children: [
|
|
55058
55060
|
/* @__PURE__ */ Ae.jsxs("div", { className: "locations-list__header", children: [
|
|
@@ -55075,7 +55077,7 @@ function wY({
|
|
|
55075
55077
|
onRouteFinished: x
|
|
55076
55078
|
}) {
|
|
55077
55079
|
const T = Ur(), [s, I] = Tn(), [L, O] = Tn(), [U, V] = Tn(), [Z, K] = Tn(), [ce, Ee] = Tn(), [xe, fe] = Tn(), [Ce, Se] = Tn(), de = Dt(Rm), [Fe, Ue] = Cn(cc), [me, At] = Cn(S0), [, it] = Cn(T0);
|
|
55078
|
-
|
|
55080
|
+
rn(() => {
|
|
55079
55081
|
i && o && h === g.DIRECTIONS || (i && o || i ? c(g.WAYFINDING) : Fe ? c(g.LOCATION_DETAILS, Fe) : (me == null ? void 0 : me.length) > 1 ? c(g.EXTERNALIDS) : (me == null ? void 0 : me.length) === 1 ? (Ue(me[0]), it(me[0].id)) : c(g.SEARCH));
|
|
55080
55082
|
}, [Fe, i, o, me]);
|
|
55081
55083
|
function et() {
|
|
@@ -55097,7 +55099,7 @@ const SY = {
|
|
|
55097
55099
|
DIRECTIONS: "DIRECTIONS"
|
|
55098
55100
|
}, TY = () => {
|
|
55099
55101
|
const [i, o] = Tn(void 0), [c, h] = Tn(), [g, x] = Tn(null);
|
|
55100
|
-
|
|
55102
|
+
rn(() => {
|
|
55101
55103
|
function L(O) {
|
|
55102
55104
|
var U, V;
|
|
55103
55105
|
o((U = O.state) == null ? void 0 : U.value), h((V = O.state) == null ? void 0 : V.payload);
|
|
@@ -55126,7 +55128,7 @@ function Gp({
|
|
|
55126
55128
|
isOpen: o
|
|
55127
55129
|
}) {
|
|
55128
55130
|
const [c, h] = Tn(!1), g = Dt(Pm), x = Dt(il), T = Ur(), s = Ur();
|
|
55129
|
-
return
|
|
55131
|
+
return rn(() => {
|
|
55130
55132
|
if (!s)
|
|
55131
55133
|
return;
|
|
55132
55134
|
const I = new MutationObserver(() => {
|
|
@@ -55151,7 +55153,7 @@ function CY({
|
|
|
55151
55153
|
onRouteFinished: x
|
|
55152
55154
|
}) {
|
|
55153
55155
|
const [T, s] = Cn(cc), [I, L] = Cn(S0), [, O] = Cn(T0), U = Dt(il);
|
|
55154
|
-
|
|
55156
|
+
rn(() => {
|
|
55155
55157
|
i && o && h === g.DIRECTIONS || (i && o || i ? c(g.WAYFINDING) : T ? c(g.LOCATION_DETAILS, T) : (I == null ? void 0 : I.length) > 1 ? c(g.EXTERNALIDS) : (I == null ? void 0 : I.length) === 1 ? (s(I[0]), O(I[0].id)) : c(g.SEARCH));
|
|
55156
55158
|
}, [T, i, o, I]);
|
|
55157
55159
|
function V() {
|
|
@@ -55168,13 +55170,13 @@ function CY({
|
|
|
55168
55170
|
}
|
|
55169
55171
|
const M3 = (i) => {
|
|
55170
55172
|
const [o, c] = Tn(), h = Dt(b0), g = Dt(qP);
|
|
55171
|
-
return
|
|
55173
|
+
return rn(() => {
|
|
55172
55174
|
g && i && (i === "USER_POSITION" && !h ? (c("USER_POSITION_PENDING"), g.watchPosition()) : i !== "USER_POSITION" && window.mapsindoors.services.LocationsService.getLocation(i).then((x) => c(x)), h && i === "USER_POSITION" && c(lb(h)));
|
|
55173
55175
|
}, [i, h, g]), o;
|
|
55174
55176
|
};
|
|
55175
55177
|
function IY() {
|
|
55176
55178
|
const i = Dt(Sw), o = Ur();
|
|
55177
|
-
return
|
|
55179
|
+
return rn(() => {
|
|
55178
55180
|
var c;
|
|
55179
55181
|
(c = o.current) == null || c.classList.add("notification"), i ? o.current.push(i.text, i.type, !0) : o.current.clearAll();
|
|
55180
55182
|
}, [i]), /* @__PURE__ */ Ae.jsx("mi-notification", { ref: o, position: "top-center", "data-sentry-element": "mi-notification", "data-sentry-component": "Notification", "data-sentry-source-file": "Notification.jsx" });
|
|
@@ -56667,7 +56669,7 @@ function _X() {
|
|
|
56667
56669
|
const {
|
|
56668
56670
|
t: i
|
|
56669
56671
|
} = vs(), [, o] = Cn(P0), c = Ur(), h = Dt(xs), g = Dt(ww), x = Dt(Mw), T = Dt(v0), s = Dt(Mm), I = Dt(Id), L = Dt(R0), O = Dt(il), U = Dt(cc);
|
|
56670
|
-
return
|
|
56672
|
+
return rn(() => {
|
|
56671
56673
|
if (O && U) {
|
|
56672
56674
|
let V = window.location.origin + window.location.pathname.replace(/\/$/, "");
|
|
56673
56675
|
const Z = new URLSearchParams(window.location.search), K = new URLSearchParams();
|
|
@@ -56709,9 +56711,9 @@ function vX() {
|
|
|
56709
56711
|
t: i
|
|
56710
56712
|
} = vs(), o = Dt(xs), c = Dt(TL), h = Lm(), g = Ur(), x = Ur(), T = Ur(), [s, I] = Cn(L0), [L, O] = Tn(!1), U = Ur();
|
|
56711
56713
|
let V = 700;
|
|
56712
|
-
return
|
|
56714
|
+
return rn(() => {
|
|
56713
56715
|
s && h && O(U.current.clientHeight > V);
|
|
56714
|
-
}, [s, h]),
|
|
56716
|
+
}, [s, h]), rn(() => {
|
|
56715
56717
|
if (s && h && L) {
|
|
56716
56718
|
const Z = document.querySelector(".legend__sections");
|
|
56717
56719
|
T.current.scrollContainerElementRef = Z;
|
|
@@ -56764,7 +56766,7 @@ function xX({
|
|
|
56764
56766
|
showRoadNames: it,
|
|
56765
56767
|
showExternalIDs: et
|
|
56766
56768
|
}) {
|
|
56767
|
-
const [, Kt] = Cn(ww), [, Ot] = Cn(v0), [, Oe] = Cn(Mm), [pn, Zt] = Cn(Iw), [
|
|
56769
|
+
const [, Kt] = Cn(ww), [, Ot] = Cn(v0), [, Oe] = Cn(Mm), [pn, Zt] = Cn(Iw), [St, tn] = Cn(Ew), [, An] = Cn(JP), [qe, _t] = Cn(cc), [Le, ut] = Cn(Rm), [, pt] = Cn(T0), [, $t] = Cn(xs), [, Tt] = Cn(Mw), [, jt] = Cn(BP), wt = Dt(Zo), [Pt, cn] = Cn(Id), [, Ln] = Cn(il), [, ke] = Cn(XP), [, sn] = Cn(eL), Zn = tL(), [, Pr] = Cn(yX), [, Ar] = Cn(wL), [, Or] = Cn(VP), [, Ii] = Cn(zw), [, xn] = Cn(R0), [, mn] = Cn(SL), [, Dn] = Cn(rL), [, Mr] = Cn(M0), [, rr] = Cn($P), [mi, nt] = Tn(!0), [ee, le] = Tn(!0), be = M3(I), Je = M3(L), [ot, yt] = Tn(!1), [, Ht] = Cn(S0), [rt, Jt] = Cn(w0), [Te, ye] = Tn(), [tt, Nt] = Tn(), [, zt] = Cn(x0), [, Ft] = Cn(HP), [, qt] = Cn(KP), [, Yt] = Cn(Am), [, Qt] = Cn(Ed), yn = nl(), sr = FP("(max-width: 991px)"), nr = EY(), Er = Aw(), Nr = Dt(Au), [jr, Vr, Lr, Ye, Ke, bt] = TY(), Et = Ur(), [ct, ue] = Tn(!1), Ne = Dt(P0), je = Dt(L0), [at, ht] = Tn(0);
|
|
56768
56770
|
function Wt() {
|
|
56769
56771
|
return new Promise((ln) => {
|
|
56770
56772
|
if (window.mapsindoors !== void 0)
|
|
@@ -56775,22 +56777,22 @@ function xX({
|
|
|
56775
56777
|
};
|
|
56776
56778
|
});
|
|
56777
56779
|
}
|
|
56778
|
-
|
|
56780
|
+
rn(() => {
|
|
56779
56781
|
Zn && Wn();
|
|
56780
|
-
}, [Zn]),
|
|
56782
|
+
}, [Zn]), rn(() => {
|
|
56781
56783
|
Wt().then(() => {
|
|
56782
56784
|
ue(!0);
|
|
56783
56785
|
});
|
|
56784
|
-
}, []),
|
|
56786
|
+
}, []), rn(() => {
|
|
56785
56787
|
if (ct) {
|
|
56786
56788
|
const ln = fe || navigator.language;
|
|
56787
56789
|
window.mapsindoors.MapsIndoors.setLanguage(ln.split("-")[0]), window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
56788
|
-
Le.length > 0 && qn(h),
|
|
56789
|
-
ir = ir.map((On) => (On.image = tt.venueImages[On.name.toLowerCase()], On)),
|
|
56790
|
+
Le.length > 0 && qn(h), St.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((ir) => {
|
|
56791
|
+
ir = ir.map((On) => (On.image = tt.venueImages[On.name.toLowerCase()], On)), tn(ir);
|
|
56790
56792
|
}), qe && window.mapsindoors.services.LocationsService.getLocation(qe.id).then((ir) => _t(ir));
|
|
56791
56793
|
}), Pt ? po.changeLanguage(ln) : GW(ln), cn(ln);
|
|
56792
56794
|
}
|
|
56793
|
-
}, [fe, ct]),
|
|
56795
|
+
}, [fe, ct]), rn(() => {
|
|
56794
56796
|
ct && (Kt(i), Zt(!1), window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(i), Promise.all([
|
|
56795
56797
|
// Fetch all Venues in the Solution
|
|
56796
56798
|
window.mapsindoors.services.VenuesService.getVenues(),
|
|
@@ -56801,67 +56803,67 @@ function xX({
|
|
|
56801
56803
|
// Ensure a minimum waiting time of 3 seconds
|
|
56802
56804
|
new Promise((ln) => setTimeout(ln, 3e3))
|
|
56803
56805
|
]).then(([ln, ir]) => {
|
|
56804
|
-
ln = ln.map((On) => (On.image = ir.venueImages[On.name.toLowerCase()], On)),
|
|
56806
|
+
ln = ln.map((On) => (On.image = ir.venueImages[On.name.toLowerCase()], On)), tn(ln);
|
|
56805
56807
|
}), Zt(!1));
|
|
56806
|
-
}, [i, ct]),
|
|
56808
|
+
}, [i, ct]), rn(() => {
|
|
56807
56809
|
var ln, ir;
|
|
56808
56810
|
ct && tt && (Oe(c || ((ln = tt.appSettings) == null ? void 0 : ln.mapboxAccessToken)), Ot(o || ((ir = tt.appSettings) == null ? void 0 : ir.gmKey)));
|
|
56809
|
-
}, [o, c, ct, tt]),
|
|
56811
|
+
}, [o, c, ct, tt]), rn(() => {
|
|
56810
56812
|
ct && window.mapsindoors.services.SolutionsService.getUserRoles().then((ln) => {
|
|
56811
56813
|
const ir = ln.filter((On) => s == null ? void 0 : s.includes(On.name));
|
|
56812
56814
|
window.mapsindoors.MapsIndoors.setUserRoles(ir);
|
|
56813
56815
|
});
|
|
56814
|
-
}, [s, ct]),
|
|
56816
|
+
}, [s, ct]), rn(() => {
|
|
56815
56817
|
ct && (O ? window.mapsindoors.services.LocationsService.getLocationsByExternalId(O).then((ln) => {
|
|
56816
56818
|
Ht(ln);
|
|
56817
56819
|
}) : Ht([]));
|
|
56818
|
-
}, [O, ct]),
|
|
56820
|
+
}, [O, ct]), rn(() => {
|
|
56819
56821
|
ct && (pt(g), g && window.mapsindoors.services.LocationsService.getLocation(g).then((ln) => {
|
|
56820
56822
|
ln && (Er(ln.properties.venueId), _t(ln));
|
|
56821
56823
|
}));
|
|
56822
|
-
}, [g, ct, at]),
|
|
56824
|
+
}, [g, ct, at]), rn(() => {
|
|
56823
56825
|
ct && jt(ce);
|
|
56824
|
-
}, [ce, ct]),
|
|
56826
|
+
}, [ce, ct]), rn(() => {
|
|
56825
56827
|
Lr === Ke.LOCATION_DETAILS && Ye && !qe && _t(Ye), Et.current = Lr === Ke.DIRECTIONS, Et.current ? (ye(rt), Jt([])) : Jt(Te);
|
|
56826
|
-
}, [Lr]),
|
|
56828
|
+
}, [Lr]), rn(() => {
|
|
56827
56829
|
An(h), Er(h);
|
|
56828
|
-
}, [h]),
|
|
56830
|
+
}, [h]), rn(() => {
|
|
56829
56831
|
Ft(U);
|
|
56830
|
-
}, [U]),
|
|
56832
|
+
}, [U]), rn(() => {
|
|
56831
56833
|
$t(x);
|
|
56832
|
-
}, [x]),
|
|
56834
|
+
}, [x]), rn(() => {
|
|
56833
56835
|
qt(V);
|
|
56834
|
-
}, [V]),
|
|
56836
|
+
}, [V]), rn(() => {
|
|
56835
56837
|
Qt(K);
|
|
56836
|
-
}, [K]),
|
|
56838
|
+
}, [K]), rn(() => {
|
|
56837
56839
|
Yt(Z);
|
|
56838
|
-
}, [Z]),
|
|
56840
|
+
}, [Z]), rn(() => {
|
|
56839
56841
|
Tt(T);
|
|
56840
|
-
}, [T]),
|
|
56842
|
+
}, [T]), rn(() => {
|
|
56841
56843
|
Or(Fe);
|
|
56842
|
-
}, [Fe]),
|
|
56843
|
-
qe && qe.id !== xe ?
|
|
56844
|
-
}, [qe]),
|
|
56844
|
+
}, [Fe]), rn(() => {
|
|
56845
|
+
qe && qe.id !== xe ? wt != null && wt.selectLocation && wt.selectLocation(qe) : wt != null && wt.deselectLocation && wt.deselectLocation();
|
|
56846
|
+
}, [qe]), rn(() => {
|
|
56845
56847
|
ct && (ke(xe), xe ? window.mapsindoors.services.LocationsService.getLocation(xe).then((ln) => {
|
|
56846
56848
|
Er(ln.properties.venueId), Ln(ln);
|
|
56847
56849
|
}) : Ln(), xe && yn ? (nt(!1), le(!1)) : (nt(!0), le(!0)));
|
|
56848
|
-
}, [xe, ct]),
|
|
56849
|
-
|
|
56850
|
-
}, [de]),
|
|
56850
|
+
}, [xe, ct]), rn(() => {
|
|
56851
|
+
sn(de);
|
|
56852
|
+
}, [de]), rn(() => {
|
|
56851
56853
|
Pr(Ce);
|
|
56852
|
-
}, [Ce]),
|
|
56854
|
+
}, [Ce]), rn(() => {
|
|
56853
56855
|
ct && Se && xe && Ar(Se);
|
|
56854
|
-
}, [Se, xe, ct]),
|
|
56856
|
+
}, [Se, xe, ct]), rn(() => {
|
|
56855
56857
|
ct && Ue && Le.find((ln) => ln[0] === Ue) && Ii(Ue);
|
|
56856
|
-
}, [Ue, Le, ct]),
|
|
56858
|
+
}, [Ue, Le, ct]), rn(() => {
|
|
56857
56859
|
ct && me && xn(me);
|
|
56858
|
-
}, [me, ct]),
|
|
56860
|
+
}, [me, ct]), rn(() => {
|
|
56859
56861
|
ct && Nr && qn(Nr);
|
|
56860
|
-
}, [Nr, ct]),
|
|
56862
|
+
}, [Nr, ct]), rn(() => {
|
|
56861
56863
|
At && Dn(At);
|
|
56862
|
-
}, [At]),
|
|
56864
|
+
}, [At]), rn(() => {
|
|
56863
56865
|
et && Mr(et);
|
|
56864
|
-
}, [et]),
|
|
56866
|
+
}, [et]), rn(() => {
|
|
56865
56867
|
rr(it);
|
|
56866
56868
|
}, [it]);
|
|
56867
56869
|
function un(ln) {
|
|
@@ -56897,15 +56899,15 @@ function xX({
|
|
|
56897
56899
|
});
|
|
56898
56900
|
ut(On);
|
|
56899
56901
|
}
|
|
56900
|
-
return
|
|
56902
|
+
return rn(() => {
|
|
56901
56903
|
ct && Ue && Le.find((ln) => ln[0] === Ue) && (Ii(Ue), mn(Ue));
|
|
56902
56904
|
}, [Ue, Le, ct]), /* @__PURE__ */ Ae.jsxs("div", { className: `mapsindoors-map
|
|
56903
56905
|
${Et.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"}
|
|
56904
|
-
${
|
|
56906
|
+
${St.length > 1 && mi ? "" : "mapsindoors-map--hide-venue-selector"}
|
|
56905
56907
|
${ee ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, "data-sentry-component": "MapTemplate", "data-sentry-source-file": "MapTemplate.jsx", children: [
|
|
56906
56908
|
/* @__PURE__ */ Ae.jsx(IY, { "data-sentry-element": "Notification", "data-sentry-source-file": "MapTemplate.jsx" }),
|
|
56907
56909
|
!pn && /* @__PURE__ */ Ae.jsx(bZ, {}),
|
|
56908
|
-
|
|
56910
|
+
St.length > 1 && mi && /* @__PURE__ */ Ae.jsx(FZ, { onOpen: () => jr(Ke.VENUE_SELECTOR), onClose: () => Vr(), active: Lr === Ke.VENUE_SELECTOR }),
|
|
56909
56911
|
Ne && /* @__PURE__ */ Ae.jsx(_X, {}),
|
|
56910
56912
|
je && /* @__PURE__ */ Ae.jsx(vX, {}),
|
|
56911
56913
|
ot && /* @__PURE__ */ Ae.jsxs(v4, { children: [
|
|
@@ -56917,8 +56919,8 @@ function xX({
|
|
|
56917
56919
|
}
|
|
56918
56920
|
function CX(i) {
|
|
56919
56921
|
const [o, c] = Tn();
|
|
56920
|
-
return
|
|
56921
|
-
var
|
|
56922
|
+
return rn(() => {
|
|
56923
|
+
var St, tn;
|
|
56922
56924
|
const h = window.location.search, g = new URLSearchParams(h), x = {
|
|
56923
56925
|
apiKey: "mapspeople3d",
|
|
56924
56926
|
venue: "AUSTINOFFICE",
|
|
@@ -56928,7 +56930,7 @@ function CX(i) {
|
|
|
56928
56930
|
useMapProviderModule: !1,
|
|
56929
56931
|
useKeyboard: !1,
|
|
56930
56932
|
searchAllVenues: !1
|
|
56931
|
-
}, T = g.get("apiKey"), s = g.get("venue"), I = g.get("locationId"), L = g.get("logo"), O = g.get("directionsFrom"), U = g.get("directionsTo"), V = g.get("tileStyle"), Z = g.get("startZoomLevel"), K = g.get("pitch"), ce = g.get("bearing"), Ee = g.get("gmApiKey"), xe = g.get("mapboxAccessToken"), fe = g.get("primaryColor"), Ce = (
|
|
56933
|
+
}, T = g.get("apiKey"), s = g.get("venue"), I = g.get("locationId"), L = g.get("logo"), O = g.get("directionsFrom"), U = g.get("directionsTo"), V = g.get("tileStyle"), Z = g.get("startZoomLevel"), K = g.get("pitch"), ce = g.get("bearing"), Ee = g.get("gmApiKey"), xe = g.get("mapboxAccessToken"), fe = g.get("primaryColor"), Ce = (St = g.get("appUserRoles")) == null ? void 0 : St.split(","), Se = (tn = g.get("externalIDs")) == null ? void 0 : tn.split(","), de = g.get("gmMapId"), Fe = Bh(g.get("useMapProviderModule")), Ue = g.get("kioskOriginLocationId"), me = g.get("timeout"), At = g.get("language"), it = Bh(g.get("useKeyboard")), et = g.get("miTransitionLevel"), Kt = g.get("category"), Ot = Bh(g.get("searchAllVenues")), Oe = Bh(g.get("hideNonMatches")), pn = Bh(g.get("showExternalIDs")), Zt = Bh(g.get("showRoadNames"));
|
|
56932
56934
|
c({
|
|
56933
56935
|
apiKey: i.supportsUrlParameters && T ? T : i.apiKey || x.apiKey,
|
|
56934
56936
|
venue: i.supportsUrlParameters && s ? s : i.venue || x.venue,
|
|
@@ -57001,4 +57003,4 @@ export {
|
|
|
57001
57003
|
Cq as h,
|
|
57002
57004
|
EX as r
|
|
57003
57005
|
};
|
|
57004
|
-
//# sourceMappingURL=reactcomponent-
|
|
57006
|
+
//# sourceMappingURL=reactcomponent-1efd670a.mjs.map
|