@reearth/core 0.0.7-alpha.26 → 0.0.7-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +589 -592
- package/dist/core.umd.cjs +23 -23
- package/package.json +1 -1
- package/src/Map/Sketch/hooks.ts +6 -9
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ var Ef = (t, n, o) => (ug(t, typeof n != "symbol" ? n + "" : n, o), o), eg = (t,
|
|
|
4
4
|
if (!n.has(t))
|
|
5
5
|
throw TypeError("Cannot " + o);
|
|
6
6
|
};
|
|
7
|
-
var ef = (t, n, o) => (eg(t, n, "read from private field"), o ? o.call(t) : n.get(t)),
|
|
7
|
+
var ef = (t, n, o) => (eg(t, n, "read from private field"), o ? o.call(t) : n.get(t)), Kf = (t, n, o) => {
|
|
8
8
|
if (n.has(t))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
n instanceof WeakSet ? n.add(t) : n.set(t, o);
|
|
@@ -232,16 +232,16 @@ function requireReactJsxRuntime_development() {
|
|
|
232
232
|
` + uf + al;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
var hf = !1,
|
|
235
|
+
var hf = !1, mf;
|
|
236
236
|
{
|
|
237
237
|
var xf = typeof WeakMap == "function" ? WeakMap : Map;
|
|
238
|
-
|
|
238
|
+
mf = new xf();
|
|
239
239
|
}
|
|
240
240
|
function Vf(al, tf) {
|
|
241
241
|
if (!al || hf)
|
|
242
242
|
return "";
|
|
243
243
|
{
|
|
244
|
-
var lf =
|
|
244
|
+
var lf = mf.get(al);
|
|
245
245
|
if (lf !== void 0)
|
|
246
246
|
return lf;
|
|
247
247
|
}
|
|
@@ -285,18 +285,18 @@ function requireReactJsxRuntime_development() {
|
|
|
285
285
|
}
|
|
286
286
|
} catch (lp) {
|
|
287
287
|
if (lp && yf && typeof lp.stack == "string") {
|
|
288
|
-
for (var
|
|
288
|
+
for (var Rf = lp.stack.split(`
|
|
289
289
|
`), Af = yf.stack.split(`
|
|
290
|
-
`), Gf =
|
|
290
|
+
`), Gf = Rf.length - 1, Xf = Af.length - 1; Gf >= 1 && Xf >= 0 && Rf[Gf] !== Af[Xf]; )
|
|
291
291
|
Xf--;
|
|
292
292
|
for (; Gf >= 1 && Xf >= 0; Gf--, Xf--)
|
|
293
|
-
if (
|
|
293
|
+
if (Rf[Gf] !== Af[Xf]) {
|
|
294
294
|
if (Gf !== 1 || Xf !== 1)
|
|
295
295
|
do
|
|
296
|
-
if (Gf--, Xf--, Xf < 0 ||
|
|
297
|
-
var
|
|
298
|
-
` +
|
|
299
|
-
return al.displayName &&
|
|
296
|
+
if (Gf--, Xf--, Xf < 0 || Rf[Gf] !== Af[Xf]) {
|
|
297
|
+
var jf = `
|
|
298
|
+
` + Rf[Gf].replace(" at new ", " at ");
|
|
299
|
+
return al.displayName && jf.includes("<anonymous>") && (jf = jf.replace("<anonymous>", al.displayName)), typeof al == "function" && mf.set(al, jf), jf;
|
|
300
300
|
}
|
|
301
301
|
while (Gf >= 1 && Xf >= 0);
|
|
302
302
|
break;
|
|
@@ -306,7 +306,7 @@ function requireReactJsxRuntime_development() {
|
|
|
306
306
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
307
307
|
}
|
|
308
308
|
var bp = al ? al.displayName || al.name : "", gp = bp ? gf(bp) : "";
|
|
309
|
-
return typeof al == "function" &&
|
|
309
|
+
return typeof al == "function" && mf.set(al, gp), gp;
|
|
310
310
|
}
|
|
311
311
|
function wf(al, tf, lf) {
|
|
312
312
|
return Vf(al, !1);
|
|
@@ -357,17 +357,17 @@ function requireReactJsxRuntime_development() {
|
|
|
357
357
|
var Of = Function.call.bind(Xd);
|
|
358
358
|
for (var Tf in al)
|
|
359
359
|
if (Of(al, Tf)) {
|
|
360
|
-
var
|
|
360
|
+
var Rf = void 0;
|
|
361
361
|
try {
|
|
362
362
|
if (typeof al[Tf] != "function") {
|
|
363
363
|
var Af = Error((yf || "React class") + ": " + lf + " type `" + Tf + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[Tf] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
364
364
|
throw Af.name = "Invariant Violation", Af;
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
Rf = al[Tf](tf, Tf, yf, lf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
367
367
|
} catch (Gf) {
|
|
368
|
-
|
|
368
|
+
Rf = Gf;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
Rf && !(Rf instanceof Error) && (Zd(If), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", yf || "React class", lf, Tf, typeof Rf), Zd(null)), Rf instanceof Error && !(Rf.message in gd) && (gd[Rf.message] = !0, Zd(If), se("Failed %s type: %s", lf, Rf.message), Zd(null));
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -381,26 +381,26 @@ function requireReactJsxRuntime_development() {
|
|
|
381
381
|
return lf;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Cf(al) {
|
|
385
385
|
try {
|
|
386
|
-
return
|
|
386
|
+
return ff(al), !1;
|
|
387
387
|
} catch {
|
|
388
388
|
return !0;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function ff(al) {
|
|
392
392
|
return "" + al;
|
|
393
393
|
}
|
|
394
394
|
function Sf(al) {
|
|
395
|
-
if (
|
|
396
|
-
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)),
|
|
395
|
+
if (Cf(al))
|
|
396
|
+
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)), ff(al);
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var Mf = Pe.ReactCurrentOwner, Ff = {
|
|
399
399
|
key: !0,
|
|
400
400
|
ref: !0,
|
|
401
401
|
__self: !0,
|
|
402
402
|
__source: !0
|
|
403
|
-
}, Hf,
|
|
403
|
+
}, Hf, Jf;
|
|
404
404
|
function Wf(al) {
|
|
405
405
|
if (Xd.call(al, "ref")) {
|
|
406
406
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -417,10 +417,10 @@ function requireReactJsxRuntime_development() {
|
|
|
417
417
|
}
|
|
418
418
|
return al.key !== void 0;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
typeof al.ref == "string" &&
|
|
420
|
+
function vf(al, tf) {
|
|
421
|
+
typeof al.ref == "string" && Mf.current;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function pf(al, tf) {
|
|
424
424
|
{
|
|
425
425
|
var lf = function() {
|
|
426
426
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -434,7 +434,7 @@ function requireReactJsxRuntime_development() {
|
|
|
434
434
|
function Lf(al, tf) {
|
|
435
435
|
{
|
|
436
436
|
var lf = function() {
|
|
437
|
-
|
|
437
|
+
Jf || (Jf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
438
438
|
};
|
|
439
439
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
440
440
|
get: lf,
|
|
@@ -443,7 +443,7 @@ function requireReactJsxRuntime_development() {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
var Df = function(al, tf, lf, yf, If, Of, Tf) {
|
|
446
|
-
var
|
|
446
|
+
var Rf = {
|
|
447
447
|
// This tag allows us to uniquely identify this as a React Element
|
|
448
448
|
$$typeof: n,
|
|
449
449
|
// Built-in properties that belong on the element
|
|
@@ -454,27 +454,27 @@ function requireReactJsxRuntime_development() {
|
|
|
454
454
|
// Record the component responsible for creating this element.
|
|
455
455
|
_owner: Of
|
|
456
456
|
};
|
|
457
|
-
return
|
|
457
|
+
return Rf._store = {}, Object.defineProperty(Rf._store, "validated", {
|
|
458
458
|
configurable: !1,
|
|
459
459
|
enumerable: !1,
|
|
460
460
|
writable: !0,
|
|
461
461
|
value: !1
|
|
462
|
-
}), Object.defineProperty(
|
|
462
|
+
}), Object.defineProperty(Rf, "_self", {
|
|
463
463
|
configurable: !1,
|
|
464
464
|
enumerable: !1,
|
|
465
465
|
writable: !1,
|
|
466
466
|
value: yf
|
|
467
|
-
}), Object.defineProperty(
|
|
467
|
+
}), Object.defineProperty(Rf, "_source", {
|
|
468
468
|
configurable: !1,
|
|
469
469
|
enumerable: !1,
|
|
470
470
|
writable: !1,
|
|
471
471
|
value: If
|
|
472
|
-
}), Object.freeze && (Object.freeze(
|
|
472
|
+
}), Object.freeze && (Object.freeze(Rf.props), Object.freeze(Rf)), Rf;
|
|
473
473
|
};
|
|
474
474
|
function kf(al, tf, lf, yf, If) {
|
|
475
475
|
{
|
|
476
|
-
var Of, Tf = {},
|
|
477
|
-
lf !== void 0 && (Sf(lf),
|
|
476
|
+
var Of, Tf = {}, Rf = null, Af = null;
|
|
477
|
+
lf !== void 0 && (Sf(lf), Rf = "" + lf), tp(tf) && (Sf(tf.key), Rf = "" + tf.key), Wf(tf) && (Af = tf.ref, vf(tf, If));
|
|
478
478
|
for (Of in tf)
|
|
479
479
|
Xd.call(tf, Of) && !Ff.hasOwnProperty(Of) && (Tf[Of] = tf[Of]);
|
|
480
480
|
if (al && al.defaultProps) {
|
|
@@ -482,11 +482,11 @@ function requireReactJsxRuntime_development() {
|
|
|
482
482
|
for (Of in Gf)
|
|
483
483
|
Tf[Of] === void 0 && (Tf[Of] = Gf[Of]);
|
|
484
484
|
}
|
|
485
|
-
if (
|
|
485
|
+
if (Rf || Af) {
|
|
486
486
|
var Xf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
487
|
-
|
|
487
|
+
Rf && pf(Tf, Xf), Af && Lf(Tf, Xf);
|
|
488
488
|
}
|
|
489
|
-
return Df(al,
|
|
489
|
+
return Df(al, Rf, Af, If, yf, Mf.current, Tf);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
var Yf = Pe.ReactCurrentOwner, Qf = Pe.ReactDebugCurrentFrame;
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
530
530
|
return tf;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function bf(al, tf) {
|
|
534
534
|
{
|
|
535
535
|
if (!al._store || al._store.validated || al.key != null)
|
|
536
536
|
return;
|
|
@@ -550,7 +550,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
550
550
|
if (nf(al))
|
|
551
551
|
for (var lf = 0; lf < al.length; lf++) {
|
|
552
552
|
var yf = al[lf];
|
|
553
|
-
qf(yf) &&
|
|
553
|
+
qf(yf) && bf(yf, tf);
|
|
554
554
|
}
|
|
555
555
|
else if (qf(al))
|
|
556
556
|
al._store && (al._store.validated = !0);
|
|
@@ -558,7 +558,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
558
558
|
var If = nt(al);
|
|
559
559
|
if (typeof If == "function" && If !== al.entries)
|
|
560
560
|
for (var Of = If.call(al), Tf; !(Tf = Of.next()).done; )
|
|
561
|
-
qf(Tf.value) &&
|
|
561
|
+
qf(Tf.value) && bf(Tf.value, tf);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
@@ -603,28 +603,28 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
603
603
|
{
|
|
604
604
|
var Tf = La(al);
|
|
605
605
|
if (!Tf) {
|
|
606
|
-
var
|
|
607
|
-
(al === void 0 || typeof al == "object" && al !== null && Object.keys(al).length === 0) && (
|
|
606
|
+
var Rf = "";
|
|
607
|
+
(al === void 0 || typeof al == "object" && al !== null && Object.keys(al).length === 0) && (Rf += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
608
608
|
var Af = rp();
|
|
609
|
-
Af ?
|
|
609
|
+
Af ? Rf += Af : Rf += ip();
|
|
610
610
|
var Gf;
|
|
611
|
-
al === null ? Gf = "null" : nf(al) ? Gf = "array" : al !== void 0 && al.$$typeof === n ? (Gf = "<" + (yt(al.type) || "Unknown") + " />",
|
|
611
|
+
al === null ? Gf = "null" : nf(al) ? Gf = "array" : al !== void 0 && al.$$typeof === n ? (Gf = "<" + (yt(al.type) || "Unknown") + " />", Rf = " Did you accidentally export a JSX literal instead of a component?") : Gf = typeof al, se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Gf, Rf);
|
|
612
612
|
}
|
|
613
613
|
var Xf = kf(al, tf, lf, If, Of);
|
|
614
614
|
if (Xf == null)
|
|
615
615
|
return Xf;
|
|
616
616
|
if (Tf) {
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
617
|
+
var jf = tf.children;
|
|
618
|
+
if (jf !== void 0)
|
|
619
619
|
if (yf)
|
|
620
|
-
if (nf(
|
|
621
|
-
for (var bp = 0; bp <
|
|
622
|
-
Pf(
|
|
623
|
-
Object.freeze && Object.freeze(
|
|
620
|
+
if (nf(jf)) {
|
|
621
|
+
for (var bp = 0; bp < jf.length; bp++)
|
|
622
|
+
Pf(jf[bp], al);
|
|
623
|
+
Object.freeze && Object.freeze(jf);
|
|
624
624
|
} else
|
|
625
625
|
se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
626
626
|
else
|
|
627
|
-
Pf(
|
|
627
|
+
Pf(jf, al);
|
|
628
628
|
}
|
|
629
629
|
return al === s ? Bf(Xf) : Uf(Xf), Xf;
|
|
630
630
|
}
|
|
@@ -1567,8 +1567,8 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
|
|
|
1567
1567
|
h(Gd).forEach((xf) => {
|
|
1568
1568
|
xf !== ms && W(xf, Gd, cf);
|
|
1569
1569
|
});
|
|
1570
|
-
const hf = S(ms, Gd),
|
|
1571
|
-
hf !==
|
|
1570
|
+
const hf = S(ms, Gd), mf = W(ms, Gd, cf);
|
|
1571
|
+
hf !== mf && pi(ms, Gd);
|
|
1572
1572
|
} else
|
|
1573
1573
|
uf = zi(ms, Gd, cf);
|
|
1574
1574
|
return pu || yt(ms), uf;
|
|
@@ -9818,10 +9818,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9818
9818
|
Wa.pending_buf[Wa.pending++] = af >>> 8 & 255, Wa.pending_buf[Wa.pending++] = 255 & af;
|
|
9819
9819
|
}
|
|
9820
9820
|
function Gd(Wa, af) {
|
|
9821
|
-
var Xd, gd, pd = Wa.max_chain_length, Zd = Wa.strstart, sf = Wa.prev_length, of = Wa.nice_match, nf = Wa.strstart > Wa.w_size - Ra ? Wa.strstart - (Wa.w_size - Ra) : 0, df = Wa.window,
|
|
9821
|
+
var Xd, gd, pd = Wa.max_chain_length, Zd = Wa.strstart, sf = Wa.prev_length, of = Wa.nice_match, nf = Wa.strstart > Wa.w_size - Ra ? Wa.strstart - (Wa.w_size - Ra) : 0, df = Wa.window, Cf = Wa.w_mask, ff = Wa.prev, Sf = Wa.strstart + La, Mf = df[Zd + sf - 1], Ff = df[Zd + sf];
|
|
9822
9822
|
Wa.prev_length >= Wa.good_match && (pd >>= 2), of > Wa.lookahead && (of = Wa.lookahead);
|
|
9823
9823
|
do
|
|
9824
|
-
if (df[(Xd = af) + sf] === Ff && df[Xd + sf - 1] ===
|
|
9824
|
+
if (df[(Xd = af) + sf] === Ff && df[Xd + sf - 1] === Mf && df[Xd] === df[Zd] && df[++Xd] === df[Zd + 1]) {
|
|
9825
9825
|
Zd += 2, Xd++;
|
|
9826
9826
|
do
|
|
9827
9827
|
;
|
|
@@ -9829,25 +9829,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9829
9829
|
if (gd = La - (Sf - Zd), Zd = Sf - La, sf < gd) {
|
|
9830
9830
|
if (Wa.match_start = af, of <= (sf = gd))
|
|
9831
9831
|
break;
|
|
9832
|
-
|
|
9832
|
+
Mf = df[Zd + sf - 1], Ff = df[Zd + sf];
|
|
9833
9833
|
}
|
|
9834
9834
|
}
|
|
9835
|
-
while ((af =
|
|
9835
|
+
while ((af = ff[af & Cf]) > nf && --pd != 0);
|
|
9836
9836
|
return sf <= Wa.lookahead ? sf : Wa.lookahead;
|
|
9837
9837
|
}
|
|
9838
9838
|
function cf(Wa) {
|
|
9839
|
-
var af, Xd, gd, pd, Zd, sf, of, nf, df,
|
|
9839
|
+
var af, Xd, gd, pd, Zd, sf, of, nf, df, Cf, ff = Wa.w_size;
|
|
9840
9840
|
do {
|
|
9841
|
-
if (pd = Wa.window_size - Wa.lookahead - Wa.strstart, Wa.strstart >=
|
|
9842
|
-
for (h.arraySet(Wa.window, Wa.window,
|
|
9841
|
+
if (pd = Wa.window_size - Wa.lookahead - Wa.strstart, Wa.strstart >= ff + (ff - Ra)) {
|
|
9842
|
+
for (h.arraySet(Wa.window, Wa.window, ff, ff, 0), Wa.match_start -= ff, Wa.strstart -= ff, Wa.block_start -= ff, af = Xd = Wa.hash_size; gd = Wa.head[--af], Wa.head[af] = ff <= gd ? gd - ff : 0, --Xd; )
|
|
9843
9843
|
;
|
|
9844
|
-
for (af = Xd =
|
|
9844
|
+
for (af = Xd = ff; gd = Wa.prev[--af], Wa.prev[af] = ff <= gd ? gd - ff : 0, --Xd; )
|
|
9845
9845
|
;
|
|
9846
|
-
pd +=
|
|
9846
|
+
pd += ff;
|
|
9847
9847
|
}
|
|
9848
9848
|
if (Wa.strm.avail_in === 0)
|
|
9849
9849
|
break;
|
|
9850
|
-
if (sf = Wa.strm, of = Wa.window, nf = Wa.strstart + Wa.lookahead, df = pd,
|
|
9850
|
+
if (sf = Wa.strm, of = Wa.window, nf = Wa.strstart + Wa.lookahead, df = pd, Cf = void 0, Cf = sf.avail_in, df < Cf && (Cf = df), Xd = Cf === 0 ? 0 : (sf.avail_in -= Cf, h.arraySet(of, sf.input, sf.next_in, Cf, nf), sf.state.wrap === 1 ? sf.adler = y(sf.adler, of, Cf, nf) : sf.state.wrap === 2 && (sf.adler = S(sf.adler, of, Cf, nf)), sf.next_in += Cf, sf.total_in += Cf, Cf), Wa.lookahead += Xd, Wa.lookahead + Wa.insert >= fa)
|
|
9851
9851
|
for (Zd = Wa.strstart - Wa.insert, Wa.ins_h = Wa.window[Zd], Wa.ins_h = (Wa.ins_h << Wa.hash_shift ^ Wa.window[Zd + 1]) & Wa.hash_mask; Wa.insert && (Wa.ins_h = (Wa.ins_h << Wa.hash_shift ^ Wa.window[Zd + fa - 1]) & Wa.hash_mask, Wa.prev[Zd & Wa.w_mask] = Wa.head[Wa.ins_h], Wa.head[Wa.ins_h] = Zd, Zd++, Wa.insert--, !(Wa.lookahead + Wa.insert < fa)); )
|
|
9852
9852
|
;
|
|
9853
9853
|
} while (Wa.lookahead < Ra && Wa.strm.avail_in !== 0);
|
|
@@ -9898,7 +9898,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9898
9898
|
function hf(Wa, af, Xd, gd, pd) {
|
|
9899
9899
|
this.good_length = Wa, this.max_lazy = af, this.nice_length = Xd, this.max_chain = gd, this.func = pd;
|
|
9900
9900
|
}
|
|
9901
|
-
function
|
|
9901
|
+
function mf() {
|
|
9902
9902
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = se, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new h.Buf16(2 * zi), this.dyn_dtree = new h.Buf16(2 * (2 * mn + 1)), this.bl_tree = new h.Buf16(2 * (2 * pi + 1)), yu(this.dyn_ltree), yu(this.dyn_dtree), yu(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new h.Buf16(Sa + 1), this.heap = new h.Buf16(2 * kt + 1), yu(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new h.Buf16(2 * kt + 1), yu(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
9903
9903
|
}
|
|
9904
9904
|
function xf(Wa) {
|
|
@@ -9918,7 +9918,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9918
9918
|
if (af === W && (af = 6), gd < 0 ? (sf = 0, gd = -gd) : 15 < gd && (sf = 2, gd -= 16), pd < 1 || mt < pd || Xd !== se || gd < 8 || 15 < gd || af < 0 || 9 < af || Zd < 0 || nt < Zd)
|
|
9919
9919
|
return ms(Wa, z);
|
|
9920
9920
|
gd === 8 && (gd = 9);
|
|
9921
|
-
var of = new
|
|
9921
|
+
var of = new mf();
|
|
9922
9922
|
return (Wa.state = of).strm = Wa, of.wrap = sf, of.gzhead = null, of.w_bits = gd, of.w_size = 1 << of.w_bits, of.w_mask = of.w_size - 1, of.hash_bits = pd + 7, of.hash_size = 1 << of.hash_bits, of.hash_mask = of.hash_size - 1, of.hash_shift = ~~((of.hash_bits + fa - 1) / fa), of.window = new h.Buf8(2 * of.w_size), of.head = new h.Buf16(of.hash_size), of.prev = new h.Buf16(of.w_size), of.lit_bufsize = 1 << pd + 6, of.pending_buf_size = 4 * of.lit_bufsize, of.pending_buf = new h.Buf8(of.pending_buf_size), of.d_buf = 1 * of.lit_bufsize, of.l_buf = 3 * of.lit_bufsize, of.level = af, of.strategy = Zd, of.method = Xd, Vf(Wa);
|
|
9923
9923
|
}
|
|
9924
9924
|
d = [new hf(0, 0, 0, 0, function(Wa, af) {
|
|
@@ -9995,32 +9995,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9995
9995
|
return ms(Wa, -5);
|
|
9996
9996
|
if (Wa.avail_in !== 0 || gd.lookahead !== 0 || af !== L && gd.status !== 666) {
|
|
9997
9997
|
var of = gd.strategy === 2 ? function(nf, df) {
|
|
9998
|
-
for (var
|
|
9998
|
+
for (var Cf; ; ) {
|
|
9999
9999
|
if (nf.lookahead === 0 && (cf(nf), nf.lookahead === 0)) {
|
|
10000
10000
|
if (df === L)
|
|
10001
10001
|
return lt;
|
|
10002
10002
|
break;
|
|
10003
10003
|
}
|
|
10004
|
-
if (nf.match_length = 0,
|
|
10004
|
+
if (nf.match_length = 0, Cf = p._tr_tally(nf, 0, nf.window[nf.strstart]), nf.lookahead--, nf.strstart++, Cf && (Nl(nf, !1), nf.strm.avail_out === 0))
|
|
10005
10005
|
return lt;
|
|
10006
10006
|
}
|
|
10007
10007
|
return nf.insert = 0, df === F ? (Nl(nf, !0), nf.strm.avail_out === 0 ? ba : Sc) : nf.last_lit && (Nl(nf, !1), nf.strm.avail_out === 0) ? lt : _i;
|
|
10008
10008
|
}(gd, af) : gd.strategy === 3 ? function(nf, df) {
|
|
10009
|
-
for (var
|
|
10009
|
+
for (var Cf, ff, Sf, Mf, Ff = nf.window; ; ) {
|
|
10010
10010
|
if (nf.lookahead <= La) {
|
|
10011
10011
|
if (cf(nf), nf.lookahead <= La && df === L)
|
|
10012
10012
|
return lt;
|
|
10013
10013
|
if (nf.lookahead === 0)
|
|
10014
10014
|
break;
|
|
10015
10015
|
}
|
|
10016
|
-
if (nf.match_length = 0, nf.lookahead >= fa && 0 < nf.strstart && (
|
|
10017
|
-
|
|
10016
|
+
if (nf.match_length = 0, nf.lookahead >= fa && 0 < nf.strstart && (ff = Ff[Sf = nf.strstart - 1]) === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf]) {
|
|
10017
|
+
Mf = nf.strstart + La;
|
|
10018
10018
|
do
|
|
10019
10019
|
;
|
|
10020
|
-
while (
|
|
10021
|
-
nf.match_length = La - (
|
|
10020
|
+
while (ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && Sf < Mf);
|
|
10021
|
+
nf.match_length = La - (Mf - Sf), nf.match_length > nf.lookahead && (nf.match_length = nf.lookahead);
|
|
10022
10022
|
}
|
|
10023
|
-
if (nf.match_length >= fa ? (
|
|
10023
|
+
if (nf.match_length >= fa ? (Cf = p._tr_tally(nf, 1, nf.match_length - fa), nf.lookahead -= nf.match_length, nf.strstart += nf.match_length, nf.match_length = 0) : (Cf = p._tr_tally(nf, 0, nf.window[nf.strstart]), nf.lookahead--, nf.strstart++), Cf && (Nl(nf, !1), nf.strm.avail_out === 0))
|
|
10024
10024
|
return lt;
|
|
10025
10025
|
}
|
|
10026
10026
|
return nf.insert = 0, df === F ? (Nl(nf, !0), nf.strm.avail_out === 0 ? ba : Sc) : nf.last_lit && (Nl(nf, !1), nf.strm.avail_out === 0) ? lt : _i;
|
|
@@ -10035,10 +10035,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10035
10035
|
var af;
|
|
10036
10036
|
return Wa && Wa.state ? (af = Wa.state.status) !== ma && af !== 69 && af !== 73 && af !== 91 && af !== 103 && af !== yt && af !== 666 ? ms(Wa, z) : (Wa.state = null, af === yt ? ms(Wa, -3) : N) : z;
|
|
10037
10037
|
}, c.deflateSetDictionary = function(Wa, af) {
|
|
10038
|
-
var Xd, gd, pd, Zd, sf, of, nf, df,
|
|
10038
|
+
var Xd, gd, pd, Zd, sf, of, nf, df, Cf = af.length;
|
|
10039
10039
|
if (!Wa || !Wa.state || (Zd = (Xd = Wa.state).wrap) === 2 || Zd === 1 && Xd.status !== ma || Xd.lookahead)
|
|
10040
10040
|
return z;
|
|
10041
|
-
for (Zd === 1 && (Wa.adler = y(Wa.adler, af,
|
|
10041
|
+
for (Zd === 1 && (Wa.adler = y(Wa.adler, af, Cf, 0)), Xd.wrap = 0, Cf >= Xd.w_size && (Zd === 0 && (yu(Xd.head), Xd.strstart = 0, Xd.block_start = 0, Xd.insert = 0), df = new h.Buf8(Xd.w_size), h.arraySet(df, af, Cf - Xd.w_size, Xd.w_size, 0), af = df, Cf = Xd.w_size), sf = Wa.avail_in, of = Wa.next_in, nf = Wa.input, Wa.avail_in = Cf, Wa.next_in = 0, Wa.input = af, cf(Xd); Xd.lookahead >= fa; ) {
|
|
10042
10042
|
for (gd = Xd.strstart, pd = Xd.lookahead - (fa - 1); Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[gd + fa - 1]) & Xd.hash_mask, Xd.prev[gd & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = gd, gd++, --pd; )
|
|
10043
10043
|
;
|
|
10044
10044
|
Xd.strstart = gd, Xd.lookahead = fa - 1, cf(Xd);
|
|
@@ -10179,7 +10179,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10179
10179
|
c.inflateReset = kt, c.inflateReset2 = mn, c.inflateResetKeep = mt, c.inflateInit = function(ma) {
|
|
10180
10180
|
return pi(ma, 15);
|
|
10181
10181
|
}, c.inflateInit2 = pi, c.inflate = function(ma, yt) {
|
|
10182
|
-
var lt, _i, ba, Sc, ms, Xs, yu, pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf,
|
|
10182
|
+
var lt, _i, ba, Sc, ms, Xs, yu, pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, wf, Wa, af, Xd, gd, pd = 0, Zd = new d.Buf8(4), sf = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
10183
10183
|
if (!ma || !ma.state || !ma.output || !ma.input && ma.avail_in !== 0)
|
|
10184
10184
|
return N;
|
|
10185
10185
|
(lt = ma.state).mode === 12 && (lt.mode = 13), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, _i = ma.input, Xs = ma.avail_in, pu = lt.hold, Nl = lt.bits, Ru = Xs, Vd = yu, af = F;
|
|
@@ -10390,15 +10390,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10390
10390
|
lt.have = 0, lt.mode = 19;
|
|
10391
10391
|
case 19:
|
|
10392
10392
|
for (; lt.have < lt.nlen + lt.ndist; ) {
|
|
10393
|
-
for (; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255,
|
|
10393
|
+
for (; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10394
10394
|
if (Xs === 0)
|
|
10395
10395
|
break e;
|
|
10396
10396
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10397
10397
|
}
|
|
10398
|
-
if (
|
|
10399
|
-
pu >>>= gf, Nl -= gf, lt.lens[lt.have++] =
|
|
10398
|
+
if (mf < 16)
|
|
10399
|
+
pu >>>= gf, Nl -= gf, lt.lens[lt.have++] = mf;
|
|
10400
10400
|
else {
|
|
10401
|
-
if (
|
|
10401
|
+
if (mf === 16) {
|
|
10402
10402
|
for (gd = gf + 2; Nl < gd; ) {
|
|
10403
10403
|
if (Xs === 0)
|
|
10404
10404
|
break e;
|
|
@@ -10409,7 +10409,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10409
10409
|
break;
|
|
10410
10410
|
}
|
|
10411
10411
|
Wa = lt.lens[lt.have - 1], Gd = 3 + (3 & pu), pu >>>= 2, Nl -= 2;
|
|
10412
|
-
} else if (
|
|
10412
|
+
} else if (mf === 17) {
|
|
10413
10413
|
for (gd = gf + 3; Nl < gd; ) {
|
|
10414
10414
|
if (Xs === 0)
|
|
10415
10415
|
break e;
|
|
@@ -10455,20 +10455,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10455
10455
|
ma.next_out = ms, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = Xs, lt.hold = pu, lt.bits = Nl, y(ma, Vd), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, _i = ma.input, Xs = ma.avail_in, pu = lt.hold, Nl = lt.bits, lt.mode === 12 && (lt.back = -1);
|
|
10456
10456
|
break;
|
|
10457
10457
|
}
|
|
10458
|
-
for (lt.back = 0; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255,
|
|
10458
|
+
for (lt.back = 0; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10459
10459
|
if (Xs === 0)
|
|
10460
10460
|
break e;
|
|
10461
10461
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10462
10462
|
}
|
|
10463
10463
|
if (hf && !(240 & hf)) {
|
|
10464
|
-
for (xf = gf, Vf = hf, wf =
|
|
10464
|
+
for (xf = gf, Vf = hf, wf = mf; hf = (pd = lt.lencode[wf + ((pu & (1 << xf + Vf) - 1) >> xf)]) >>> 16 & 255, mf = 65535 & pd, !(xf + (gf = pd >>> 24) <= Nl); ) {
|
|
10465
10465
|
if (Xs === 0)
|
|
10466
10466
|
break e;
|
|
10467
10467
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10468
10468
|
}
|
|
10469
10469
|
pu >>>= xf, Nl -= xf, lt.back += xf;
|
|
10470
10470
|
}
|
|
10471
|
-
if (pu >>>= gf, Nl -= gf, lt.back += gf, lt.length =
|
|
10471
|
+
if (pu >>>= gf, Nl -= gf, lt.back += gf, lt.length = mf, hf === 0) {
|
|
10472
10472
|
lt.mode = 26;
|
|
10473
10473
|
break;
|
|
10474
10474
|
}
|
|
@@ -10492,13 +10492,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10492
10492
|
}
|
|
10493
10493
|
lt.was = lt.length, lt.mode = 23;
|
|
10494
10494
|
case 23:
|
|
10495
|
-
for (; hf = (pd = lt.distcode[pu & (1 << lt.distbits) - 1]) >>> 16 & 255,
|
|
10495
|
+
for (; hf = (pd = lt.distcode[pu & (1 << lt.distbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10496
10496
|
if (Xs === 0)
|
|
10497
10497
|
break e;
|
|
10498
10498
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10499
10499
|
}
|
|
10500
10500
|
if (!(240 & hf)) {
|
|
10501
|
-
for (xf = gf, Vf = hf, wf =
|
|
10501
|
+
for (xf = gf, Vf = hf, wf = mf; hf = (pd = lt.distcode[wf + ((pu & (1 << xf + Vf) - 1) >> xf)]) >>> 16 & 255, mf = 65535 & pd, !(xf + (gf = pd >>> 24) <= Nl); ) {
|
|
10502
10502
|
if (Xs === 0)
|
|
10503
10503
|
break e;
|
|
10504
10504
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
@@ -10509,7 +10509,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10509
10509
|
ma.msg = "invalid distance code", lt.mode = 30;
|
|
10510
10510
|
break;
|
|
10511
10511
|
}
|
|
10512
|
-
lt.offset =
|
|
10512
|
+
lt.offset = mf, lt.extra = 15 & hf, lt.mode = 24;
|
|
10513
10513
|
case 24:
|
|
10514
10514
|
if (lt.extra) {
|
|
10515
10515
|
for (gd = lt.extra; Nl < gd; ) {
|
|
@@ -10685,12 +10685,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10685
10685
|
return sf >>> 1;
|
|
10686
10686
|
}
|
|
10687
10687
|
function uf(pd, Zd, sf) {
|
|
10688
|
-
var of, nf, df = new Array(nt + 1),
|
|
10688
|
+
var of, nf, df = new Array(nt + 1), Cf = 0;
|
|
10689
10689
|
for (of = 1; of <= nt; of++)
|
|
10690
|
-
df[of] =
|
|
10690
|
+
df[of] = Cf = Cf + sf[of - 1] << 1;
|
|
10691
10691
|
for (nf = 0; nf <= Zd; nf++) {
|
|
10692
|
-
var
|
|
10693
|
-
|
|
10692
|
+
var ff = pd[2 * nf + 1];
|
|
10693
|
+
ff !== 0 && (pd[2 * nf] = cf(df[ff]++, ff));
|
|
10694
10694
|
}
|
|
10695
10695
|
}
|
|
10696
10696
|
function gf(pd) {
|
|
@@ -10706,77 +10706,77 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10706
10706
|
function hf(pd) {
|
|
10707
10707
|
8 < pd.bi_valid ? Ru(pd, pd.bi_buf) : 0 < pd.bi_valid && (pd.pending_buf[pd.pending++] = pd.bi_buf), pd.bi_buf = 0, pd.bi_valid = 0;
|
|
10708
10708
|
}
|
|
10709
|
-
function
|
|
10709
|
+
function mf(pd, Zd, sf, of) {
|
|
10710
10710
|
var nf = 2 * Zd, df = 2 * sf;
|
|
10711
10711
|
return pd[nf] < pd[df] || pd[nf] === pd[df] && of[Zd] <= of[sf];
|
|
10712
10712
|
}
|
|
10713
10713
|
function xf(pd, Zd, sf) {
|
|
10714
|
-
for (var of = pd.heap[sf], nf = sf << 1; nf <= pd.heap_len && (nf < pd.heap_len &&
|
|
10714
|
+
for (var of = pd.heap[sf], nf = sf << 1; nf <= pd.heap_len && (nf < pd.heap_len && mf(Zd, pd.heap[nf + 1], pd.heap[nf], pd.depth) && nf++, !mf(Zd, of, pd.heap[nf], pd.depth)); )
|
|
10715
10715
|
pd.heap[sf] = pd.heap[nf], sf = nf, nf <<= 1;
|
|
10716
10716
|
pd.heap[sf] = of;
|
|
10717
10717
|
}
|
|
10718
10718
|
function Vf(pd, Zd, sf) {
|
|
10719
|
-
var of, nf, df,
|
|
10719
|
+
var of, nf, df, Cf, ff = 0;
|
|
10720
10720
|
if (pd.last_lit !== 0)
|
|
10721
|
-
for (; of = pd.pending_buf[pd.d_buf + 2 *
|
|
10721
|
+
for (; of = pd.pending_buf[pd.d_buf + 2 * ff] << 8 | pd.pending_buf[pd.d_buf + 2 * ff + 1], nf = pd.pending_buf[pd.l_buf + ff], ff++, of === 0 ? Gd(pd, nf, Zd) : (Gd(pd, (df = lt[nf]) + L + 1, Zd), (Cf = zi[df]) !== 0 && Vd(pd, nf -= _i[df], Cf), Gd(pd, df = Nl(--of), sf), (Cf = Sa[df]) !== 0 && Vd(pd, of -= Xs[df], Cf)), ff < pd.last_lit; )
|
|
10722
10722
|
;
|
|
10723
10723
|
Gd(pd, mt, Zd);
|
|
10724
10724
|
}
|
|
10725
10725
|
function wf(pd, Zd) {
|
|
10726
|
-
var sf, of, nf, df = Zd.dyn_tree,
|
|
10726
|
+
var sf, of, nf, df = Zd.dyn_tree, Cf = Zd.stat_desc.static_tree, ff = Zd.stat_desc.has_stree, Sf = Zd.stat_desc.elems, Mf = -1;
|
|
10727
10727
|
for (pd.heap_len = 0, pd.heap_max = W, sf = 0; sf < Sf; sf++)
|
|
10728
|
-
df[2 * sf] !== 0 ? (pd.heap[++pd.heap_len] =
|
|
10728
|
+
df[2 * sf] !== 0 ? (pd.heap[++pd.heap_len] = Mf = sf, pd.depth[sf] = 0) : df[2 * sf + 1] = 0;
|
|
10729
10729
|
for (; pd.heap_len < 2; )
|
|
10730
|
-
df[2 * (nf = pd.heap[++pd.heap_len] =
|
|
10731
|
-
for (Zd.max_code =
|
|
10730
|
+
df[2 * (nf = pd.heap[++pd.heap_len] = Mf < 2 ? ++Mf : 0)] = 1, pd.depth[nf] = 0, pd.opt_len--, ff && (pd.static_len -= Cf[2 * nf + 1]);
|
|
10731
|
+
for (Zd.max_code = Mf, sf = pd.heap_len >> 1; 1 <= sf; sf--)
|
|
10732
10732
|
xf(pd, df, sf);
|
|
10733
10733
|
for (nf = Sf; sf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], xf(pd, df, 1), of = pd.heap[1], pd.heap[--pd.heap_max] = sf, pd.heap[--pd.heap_max] = of, df[2 * nf] = df[2 * sf] + df[2 * of], pd.depth[nf] = (pd.depth[sf] >= pd.depth[of] ? pd.depth[sf] : pd.depth[of]) + 1, df[2 * sf + 1] = df[2 * of + 1] = nf, pd.heap[1] = nf++, xf(pd, df, 1), 2 <= pd.heap_len; )
|
|
10734
10734
|
;
|
|
10735
10735
|
pd.heap[--pd.heap_max] = pd.heap[1], function(Ff, Hf) {
|
|
10736
|
-
var
|
|
10737
|
-
for (
|
|
10738
|
-
Ff.bl_count[
|
|
10739
|
-
for (Df[2 * Ff.heap[Ff.heap_max] + 1] = 0,
|
|
10740
|
-
qf < (
|
|
10736
|
+
var Jf, Wf, tp, vf, pf, Lf, Df = Hf.dyn_tree, kf = Hf.max_code, Yf = Hf.stat_desc.static_tree, Qf = Hf.stat_desc.has_stree, Zf = Hf.stat_desc.extra_bits, np = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
|
|
10737
|
+
for (vf = 0; vf <= nt; vf++)
|
|
10738
|
+
Ff.bl_count[vf] = 0;
|
|
10739
|
+
for (Df[2 * Ff.heap[Ff.heap_max] + 1] = 0, Jf = Ff.heap_max + 1; Jf < W; Jf++)
|
|
10740
|
+
qf < (vf = Df[2 * Df[2 * (Wf = Ff.heap[Jf]) + 1] + 1] + 1) && (vf = qf, ip++), Df[2 * Wf + 1] = vf, kf < Wf || (Ff.bl_count[vf]++, pf = 0, np <= Wf && (pf = Zf[Wf - np]), Lf = Df[2 * Wf], Ff.opt_len += Lf * (vf + pf), Qf && (Ff.static_len += Lf * (Yf[2 * Wf + 1] + pf)));
|
|
10741
10741
|
if (ip !== 0) {
|
|
10742
10742
|
do {
|
|
10743
|
-
for (
|
|
10744
|
-
|
|
10745
|
-
Ff.bl_count[
|
|
10743
|
+
for (vf = qf - 1; Ff.bl_count[vf] === 0; )
|
|
10744
|
+
vf--;
|
|
10745
|
+
Ff.bl_count[vf]--, Ff.bl_count[vf + 1] += 2, Ff.bl_count[qf]--, ip -= 2;
|
|
10746
10746
|
} while (0 < ip);
|
|
10747
|
-
for (
|
|
10748
|
-
for (Wf = Ff.bl_count[
|
|
10749
|
-
kf < (tp = Ff.heap[--
|
|
10747
|
+
for (vf = qf; vf !== 0; vf--)
|
|
10748
|
+
for (Wf = Ff.bl_count[vf]; Wf !== 0; )
|
|
10749
|
+
kf < (tp = Ff.heap[--Jf]) || (Df[2 * tp + 1] !== vf && (Ff.opt_len += (vf - Df[2 * tp + 1]) * Df[2 * tp], Df[2 * tp + 1] = vf), Wf--);
|
|
10750
10750
|
}
|
|
10751
|
-
}(pd, Zd), uf(df,
|
|
10751
|
+
}(pd, Zd), uf(df, Mf, pd.bl_count);
|
|
10752
10752
|
}
|
|
10753
10753
|
function Wa(pd, Zd, sf) {
|
|
10754
|
-
var of, nf, df = -1,
|
|
10755
|
-
for (
|
|
10756
|
-
nf =
|
|
10754
|
+
var of, nf, df = -1, Cf = Zd[1], ff = 0, Sf = 7, Mf = 4;
|
|
10755
|
+
for (Cf === 0 && (Sf = 138, Mf = 3), Zd[2 * (sf + 1) + 1] = 65535, of = 0; of <= sf; of++)
|
|
10756
|
+
nf = Cf, Cf = Zd[2 * (of + 1) + 1], ++ff < Sf && nf === Cf || (ff < Mf ? pd.bl_tree[2 * nf] += ff : nf !== 0 ? (nf !== df && pd.bl_tree[2 * nf]++, pd.bl_tree[2 * kt]++) : ff <= 10 ? pd.bl_tree[2 * mn]++ : pd.bl_tree[2 * pi]++, df = nf, Mf = (ff = 0) === Cf ? (Sf = 138, 3) : nf === Cf ? (Sf = 6, 3) : (Sf = 7, 4));
|
|
10757
10757
|
}
|
|
10758
10758
|
function af(pd, Zd, sf) {
|
|
10759
|
-
var of, nf, df = -1,
|
|
10760
|
-
for (
|
|
10761
|
-
if (nf =
|
|
10762
|
-
if (
|
|
10763
|
-
for (; Gd(pd, nf, pd.bl_tree), --
|
|
10759
|
+
var of, nf, df = -1, Cf = Zd[1], ff = 0, Sf = 7, Mf = 4;
|
|
10760
|
+
for (Cf === 0 && (Sf = 138, Mf = 3), of = 0; of <= sf; of++)
|
|
10761
|
+
if (nf = Cf, Cf = Zd[2 * (of + 1) + 1], !(++ff < Sf && nf === Cf)) {
|
|
10762
|
+
if (ff < Mf)
|
|
10763
|
+
for (; Gd(pd, nf, pd.bl_tree), --ff != 0; )
|
|
10764
10764
|
;
|
|
10765
10765
|
else
|
|
10766
|
-
nf !== 0 ? (nf !== df && (Gd(pd, nf, pd.bl_tree),
|
|
10767
|
-
df = nf,
|
|
10766
|
+
nf !== 0 ? (nf !== df && (Gd(pd, nf, pd.bl_tree), ff--), Gd(pd, kt, pd.bl_tree), Vd(pd, ff - 3, 2)) : ff <= 10 ? (Gd(pd, mn, pd.bl_tree), Vd(pd, ff - 3, 3)) : (Gd(pd, pi, pd.bl_tree), Vd(pd, ff - 11, 7));
|
|
10767
|
+
df = nf, Mf = (ff = 0) === Cf ? (Sf = 138, 3) : nf === Cf ? (Sf = 6, 3) : (Sf = 7, 4);
|
|
10768
10768
|
}
|
|
10769
10769
|
}
|
|
10770
10770
|
y(Xs);
|
|
10771
10771
|
var Xd = !1;
|
|
10772
10772
|
function gd(pd, Zd, sf, of) {
|
|
10773
|
-
Vd(pd, (S << 1) + (of ? 1 : 0), 3), function(nf, df,
|
|
10774
|
-
hf(nf), Ru(nf,
|
|
10773
|
+
Vd(pd, (S << 1) + (of ? 1 : 0), 3), function(nf, df, Cf, ff) {
|
|
10774
|
+
hf(nf), Ru(nf, Cf), Ru(nf, ~Cf), d.arraySet(nf.pending_buf, nf.window, df, Cf, nf.pending), nf.pending += Cf;
|
|
10775
10775
|
}(pd, Zd, sf);
|
|
10776
10776
|
}
|
|
10777
10777
|
c._tr_init = function(pd) {
|
|
10778
10778
|
Xd || (function() {
|
|
10779
|
-
var Zd, sf, of, nf, df,
|
|
10779
|
+
var Zd, sf, of, nf, df, Cf = new Array(nt + 1);
|
|
10780
10780
|
for (nf = of = 0; nf < P - 1; nf++)
|
|
10781
10781
|
for (_i[nf] = of, Zd = 0; Zd < 1 << zi[nf]; Zd++)
|
|
10782
10782
|
lt[of++] = nf;
|
|
@@ -10787,43 +10787,43 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10787
10787
|
for (Xs[nf] = df << 7, Zd = 0; Zd < 1 << Sa[nf] - 7; Zd++)
|
|
10788
10788
|
yt[256 + df++] = nf;
|
|
10789
10789
|
for (sf = 0; sf <= nt; sf++)
|
|
10790
|
-
|
|
10790
|
+
Cf[sf] = 0;
|
|
10791
10791
|
for (Zd = 0; Zd <= 143; )
|
|
10792
|
-
Ra[2 * Zd + 1] = 8, Zd++,
|
|
10792
|
+
Ra[2 * Zd + 1] = 8, Zd++, Cf[8]++;
|
|
10793
10793
|
for (; Zd <= 255; )
|
|
10794
|
-
Ra[2 * Zd + 1] = 9, Zd++,
|
|
10794
|
+
Ra[2 * Zd + 1] = 9, Zd++, Cf[9]++;
|
|
10795
10795
|
for (; Zd <= 279; )
|
|
10796
|
-
Ra[2 * Zd + 1] = 7, Zd++,
|
|
10796
|
+
Ra[2 * Zd + 1] = 7, Zd++, Cf[7]++;
|
|
10797
10797
|
for (; Zd <= 287; )
|
|
10798
|
-
Ra[2 * Zd + 1] = 8, Zd++,
|
|
10799
|
-
for (uf(Ra, F + 1,
|
|
10798
|
+
Ra[2 * Zd + 1] = 8, Zd++, Cf[8]++;
|
|
10799
|
+
for (uf(Ra, F + 1, Cf), Zd = 0; Zd < N; Zd++)
|
|
10800
10800
|
ma[2 * Zd + 1] = 5, ma[2 * Zd] = cf(Zd, 5);
|
|
10801
10801
|
ba = new yu(Ra, zi, L + 1, F, nt), Sc = new yu(ma, Sa, 0, N, nt), ms = new yu(new Array(0), fa, 0, z, se);
|
|
10802
10802
|
}(), Xd = !0), pd.l_desc = new pu(pd.dyn_ltree, ba), pd.d_desc = new pu(pd.dyn_dtree, Sc), pd.bl_desc = new pu(pd.bl_tree, ms), pd.bi_buf = 0, pd.bi_valid = 0, gf(pd);
|
|
10803
10803
|
}, c._tr_stored_block = gd, c._tr_flush_block = function(pd, Zd, sf, of) {
|
|
10804
|
-
var nf, df,
|
|
10805
|
-
0 < pd.level ? (pd.strm.data_type === 2 && (pd.strm.data_type = function(
|
|
10806
|
-
var Sf,
|
|
10807
|
-
for (Sf = 0; Sf <= 31; Sf++,
|
|
10808
|
-
if (1 &
|
|
10804
|
+
var nf, df, Cf = 0;
|
|
10805
|
+
0 < pd.level ? (pd.strm.data_type === 2 && (pd.strm.data_type = function(ff) {
|
|
10806
|
+
var Sf, Mf = 4093624447;
|
|
10807
|
+
for (Sf = 0; Sf <= 31; Sf++, Mf >>>= 1)
|
|
10808
|
+
if (1 & Mf && ff.dyn_ltree[2 * Sf] !== 0)
|
|
10809
10809
|
return h;
|
|
10810
|
-
if (
|
|
10810
|
+
if (ff.dyn_ltree[18] !== 0 || ff.dyn_ltree[20] !== 0 || ff.dyn_ltree[26] !== 0)
|
|
10811
10811
|
return p;
|
|
10812
10812
|
for (Sf = 32; Sf < L; Sf++)
|
|
10813
|
-
if (
|
|
10813
|
+
if (ff.dyn_ltree[2 * Sf] !== 0)
|
|
10814
10814
|
return p;
|
|
10815
10815
|
return h;
|
|
10816
|
-
}(pd)), wf(pd, pd.l_desc), wf(pd, pd.d_desc),
|
|
10816
|
+
}(pd)), wf(pd, pd.l_desc), wf(pd, pd.d_desc), Cf = function(ff) {
|
|
10817
10817
|
var Sf;
|
|
10818
|
-
for (Wa(
|
|
10818
|
+
for (Wa(ff, ff.dyn_ltree, ff.l_desc.max_code), Wa(ff, ff.dyn_dtree, ff.d_desc.max_code), wf(ff, ff.bl_desc), Sf = z - 1; 3 <= Sf && ff.bl_tree[2 * La[Sf] + 1] === 0; Sf--)
|
|
10819
10819
|
;
|
|
10820
|
-
return
|
|
10821
|
-
}(pd), nf = pd.opt_len + 3 + 7 >>> 3, (df = pd.static_len + 3 + 7 >>> 3) <= nf && (nf = df)) : nf = df = sf + 5, sf + 4 <= nf && Zd !== -1 ? gd(pd, Zd, sf, of) : pd.strategy === 4 || df === nf ? (Vd(pd, 2 + (of ? 1 : 0), 3), Vf(pd, Ra, ma)) : (Vd(pd, 4 + (of ? 1 : 0), 3), function(
|
|
10820
|
+
return ff.opt_len += 3 * (Sf + 1) + 5 + 5 + 4, Sf;
|
|
10821
|
+
}(pd), nf = pd.opt_len + 3 + 7 >>> 3, (df = pd.static_len + 3 + 7 >>> 3) <= nf && (nf = df)) : nf = df = sf + 5, sf + 4 <= nf && Zd !== -1 ? gd(pd, Zd, sf, of) : pd.strategy === 4 || df === nf ? (Vd(pd, 2 + (of ? 1 : 0), 3), Vf(pd, Ra, ma)) : (Vd(pd, 4 + (of ? 1 : 0), 3), function(ff, Sf, Mf, Ff) {
|
|
10822
10822
|
var Hf;
|
|
10823
|
-
for (Vd(
|
|
10824
|
-
Vd(
|
|
10825
|
-
af(
|
|
10826
|
-
}(pd, pd.l_desc.max_code + 1, pd.d_desc.max_code + 1,
|
|
10823
|
+
for (Vd(ff, Sf - 257, 5), Vd(ff, Mf - 1, 5), Vd(ff, Ff - 4, 4), Hf = 0; Hf < Ff; Hf++)
|
|
10824
|
+
Vd(ff, ff.bl_tree[2 * La[Hf] + 1], 3);
|
|
10825
|
+
af(ff, ff.dyn_ltree, Sf - 1), af(ff, ff.dyn_dtree, Mf - 1);
|
|
10826
|
+
}(pd, pd.l_desc.max_code + 1, pd.d_desc.max_code + 1, Cf + 1), Vf(pd, pd.dyn_ltree, pd.dyn_dtree)), gf(pd), of && hf(pd);
|
|
10827
10827
|
}, c._tr_tally = function(pd, Zd, sf) {
|
|
10828
10828
|
return pd.pending_buf[pd.d_buf + 2 * pd.last_lit] = Zd >>> 8 & 255, pd.pending_buf[pd.d_buf + 2 * pd.last_lit + 1] = 255 & Zd, pd.pending_buf[pd.l_buf + pd.last_lit] = 255 & sf, pd.last_lit++, Zd === 0 ? pd.dyn_ltree[2 * sf]++ : (pd.matches++, Zd--, pd.dyn_ltree[2 * (lt[sf] + L + 1)]++, pd.dyn_dtree[2 * Nl(Zd)]++), pd.last_lit === pd.lit_bufsize - 1;
|
|
10829
10829
|
}, c._tr_align = function(pd) {
|
|
@@ -14759,8 +14759,8 @@ function useHooks$a({
|
|
|
14759
14759
|
if (Xd === "computed") {
|
|
14760
14760
|
if (!pi(pd.id))
|
|
14761
14761
|
return;
|
|
14762
|
-
const
|
|
14763
|
-
return
|
|
14762
|
+
const Cf = Object.create(zi);
|
|
14763
|
+
return Cf.id = gd, Cf;
|
|
14764
14764
|
}
|
|
14765
14765
|
return pd[Xd];
|
|
14766
14766
|
}
|
|
@@ -14815,11 +14815,11 @@ function useHooks$a({
|
|
|
14815
14815
|
[y]
|
|
14816
14816
|
), lt = useRef(S), _i = useCallback(
|
|
14817
14817
|
(Xd, gd) => {
|
|
14818
|
-
var Ff, Hf,
|
|
14818
|
+
var Ff, Hf, Jf, Wf, tp;
|
|
14819
14819
|
const pd = y.get(Xd);
|
|
14820
14820
|
if (!pd)
|
|
14821
14821
|
return;
|
|
14822
|
-
const Zd = lt.current.find((
|
|
14822
|
+
const Zd = lt.current.find((vf) => vf.id === Xd), sf = ((Ff = gd == null ? void 0 : gd.data) == null ? void 0 : Ff.value) ?? ((Hf = Zd == null ? void 0 : Zd.data) == null ? void 0 : Hf.value), of = deepAssign(
|
|
14823
14823
|
{
|
|
14824
14824
|
...Zd || {},
|
|
14825
14825
|
...Zd != null && Zd.data ? { data: omit(Zd.data, "value") } : {}
|
|
@@ -14836,7 +14836,7 @@ function useHooks$a({
|
|
|
14836
14836
|
extensionId: pd.compat.extensionId,
|
|
14837
14837
|
property: {
|
|
14838
14838
|
default: {
|
|
14839
|
-
...((
|
|
14839
|
+
...((Jf = pd.compat.property) == null ? void 0 : Jf.default) || {},
|
|
14840
14840
|
...nf.default || {}
|
|
14841
14841
|
}
|
|
14842
14842
|
}
|
|
@@ -14847,16 +14847,16 @@ function useHooks$a({
|
|
|
14847
14847
|
if (!df)
|
|
14848
14848
|
return;
|
|
14849
14849
|
pd.type === "simple" && ((Wf = pd.data) != null && Wf.value) && // If data isn't cachable, reuse layer id for performance.
|
|
14850
|
-
DATA_CACHE_KEYS.some((
|
|
14851
|
-
var
|
|
14852
|
-
return !((
|
|
14850
|
+
DATA_CACHE_KEYS.some((vf) => {
|
|
14851
|
+
var pf;
|
|
14852
|
+
return !((pf = pd.data) != null && pf[vf]);
|
|
14853
14853
|
}) && Object.isExtensible(pd.data.value) && df.type === "simple" && ((tp = df == null ? void 0 : df.data) != null && tp.value) && (df.data.value.id = Xd);
|
|
14854
|
-
const
|
|
14855
|
-
...
|
|
14856
|
-
|
|
14857
|
-
...
|
|
14854
|
+
const Cf = { id: Xd, ...omit(df, "id", "type", "children") }, ff = lt.current, Sf = ff.findIndex((vf) => vf.id === Xd), Mf = Sf < 0 ? [...ff, Cf] : [
|
|
14855
|
+
...ff.slice(0, Sf),
|
|
14856
|
+
Cf,
|
|
14857
|
+
...ff.slice(Sf + 1)
|
|
14858
14858
|
];
|
|
14859
|
-
lt.current =
|
|
14859
|
+
lt.current = Mf, P(Mf);
|
|
14860
14860
|
},
|
|
14861
14861
|
[y]
|
|
14862
14862
|
), ba = useCallback(
|
|
@@ -14878,7 +14878,7 @@ function useHooks$a({
|
|
|
14878
14878
|
return of.map((df) => df.id).forEach((df) => {
|
|
14879
14879
|
y.delete(df), L.delete(df), F.delete(df), W(df);
|
|
14880
14880
|
}), kt.current = kt.current.filter(
|
|
14881
|
-
(df) => !of.find((
|
|
14881
|
+
(df) => !of.find((Cf) => Cf.id === df.id)
|
|
14882
14882
|
), nf;
|
|
14883
14883
|
});
|
|
14884
14884
|
const Zd = lt.current.filter((sf) => !Xd.includes(sf.id));
|
|
@@ -14916,7 +14916,7 @@ function useHooks$a({
|
|
|
14916
14916
|
}), gd;
|
|
14917
14917
|
},
|
|
14918
14918
|
[uf]
|
|
14919
|
-
),
|
|
14919
|
+
), mf = useCallback(
|
|
14920
14920
|
(...Xd) => hf(
|
|
14921
14921
|
(gd) => {
|
|
14922
14922
|
var pd;
|
|
@@ -14972,7 +14972,7 @@ function useHooks$a({
|
|
|
14972
14972
|
walk: uf,
|
|
14973
14973
|
find: gf,
|
|
14974
14974
|
findAll: hf,
|
|
14975
|
-
findByTags:
|
|
14975
|
+
findByTags: mf,
|
|
14976
14976
|
findByTagLabels: xf,
|
|
14977
14977
|
hide: Vf,
|
|
14978
14978
|
show: wf,
|
|
@@ -14998,7 +14998,7 @@ function useHooks$a({
|
|
|
14998
14998
|
uf,
|
|
14999
14999
|
gf,
|
|
15000
15000
|
hf,
|
|
15001
|
-
|
|
15001
|
+
mf,
|
|
15002
15002
|
xf,
|
|
15003
15003
|
Vf,
|
|
15004
15004
|
wf,
|
|
@@ -19308,7 +19308,7 @@ const usePluginSketchLayer = ({
|
|
|
19308
19308
|
]
|
|
19309
19309
|
), Sa = useCallback(
|
|
19310
19310
|
(Ru) => {
|
|
19311
|
-
var Vd, Gd, cf, uf, gf, hf,
|
|
19311
|
+
var Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, wf;
|
|
19312
19312
|
if (!(o || Ru.lng === void 0 || Ru.lat === void 0 || Ru.height === void 0 || Ru.x === void 0 || Ru.y === void 0 || !n.current)) {
|
|
19313
19313
|
if (P.current = [Ru.lng, Ru.lat, Ru.height], t.matches("drawing")) {
|
|
19314
19314
|
invariant$1(t.context.type != null), invariant$1(t.context.controlPoints != null);
|
|
@@ -19340,7 +19340,7 @@ const usePluginSketchLayer = ({
|
|
|
19340
19340
|
if (t.context.catchedExtrudedPoint) {
|
|
19341
19341
|
invariant$1((L == null ? void 0 : L.controlPoints) != null);
|
|
19342
19342
|
const Wa = (xf = n.current) == null ? void 0 : xf.getExtrudedHeight(
|
|
19343
|
-
L == null ? void 0 : L.controlPoints[((
|
|
19343
|
+
L == null ? void 0 : L.controlPoints[((mf = L == null ? void 0 : L.controlPoints) == null ? void 0 : mf.length) - 1],
|
|
19344
19344
|
[Ru.x, Ru.y]
|
|
19345
19345
|
);
|
|
19346
19346
|
if (Wa != null && (z(Wa), t.context.controlPoints)) {
|
|
@@ -19427,10 +19427,10 @@ const usePluginSketchLayer = ({
|
|
|
19427
19427
|
type: t.context.type,
|
|
19428
19428
|
controlPoints: [hf]
|
|
19429
19429
|
};
|
|
19430
|
-
const
|
|
19431
|
-
if (S.current = null,
|
|
19430
|
+
const mf = Pe();
|
|
19431
|
+
if (S.current = null, mf == null)
|
|
19432
19432
|
return;
|
|
19433
|
-
se(
|
|
19433
|
+
se(mf), p({ type: "CREATE" }), y(null);
|
|
19434
19434
|
return;
|
|
19435
19435
|
}
|
|
19436
19436
|
if (hasDuplicate(
|
|
@@ -19440,10 +19440,10 @@ const usePluginSketchLayer = ({
|
|
|
19440
19440
|
))
|
|
19441
19441
|
return;
|
|
19442
19442
|
if (t.context.type === "circle" || t.context.type === "rectangle" && ((gf = t.context.controlPoints) == null ? void 0 : gf.length) === 2) {
|
|
19443
|
-
const
|
|
19444
|
-
if (
|
|
19443
|
+
const mf = Pe();
|
|
19444
|
+
if (mf == null)
|
|
19445
19445
|
return;
|
|
19446
|
-
se(
|
|
19446
|
+
se(mf), p({ type: "CREATE" }), y(null);
|
|
19447
19447
|
return;
|
|
19448
19448
|
} else {
|
|
19449
19449
|
if (Ru.x === void 0 || Ru.y === void 0)
|
|
@@ -19724,8 +19724,8 @@ function useHooks$9({
|
|
|
19724
19724
|
onSketchEditFeature: W,
|
|
19725
19725
|
onMount: nt
|
|
19726
19726
|
}) {
|
|
19727
|
-
const [Pe, se] = useMachine(sketchMachine), [mt, kt] = useState(), [mn, pi] = useState("editor"), zi = useCallback((rf,
|
|
19728
|
-
kt(rf), pi(
|
|
19727
|
+
const [Pe, se] = useMachine(sketchMachine), [mt, kt] = useState(), [mn, pi] = useState("editor"), zi = useCallback((rf, bf) => {
|
|
19728
|
+
kt(rf), pi(bf ?? "editor");
|
|
19729
19729
|
}, []), [Sa, fa] = useState(!1), [La, Ra] = useState({
|
|
19730
19730
|
color: PRESET_COLOR,
|
|
19731
19731
|
appearance: PRESET_APPEARANCE,
|
|
@@ -19736,35 +19736,35 @@ function useHooks$9({
|
|
|
19736
19736
|
// NOTE: Centroid extrude is not finalized yet
|
|
19737
19737
|
useCentroidExtrudedHeight: !1
|
|
19738
19738
|
}), ma = useCallback((rf) => {
|
|
19739
|
-
Ra((
|
|
19740
|
-
...
|
|
19739
|
+
Ra((bf) => ({
|
|
19740
|
+
...bf,
|
|
19741
19741
|
...rf,
|
|
19742
|
-
appearance: merge(cloneDeep(
|
|
19742
|
+
appearance: merge(cloneDeep(bf.appearance), rf.appearance)
|
|
19743
19743
|
}));
|
|
19744
19744
|
}, []), [yt, lt] = useState(null), [_i, ba] = useState(0), [Sc, ms] = useState(), [Xs, yu] = useState(), [pu, Nl] = useState(), [Ru, Vd] = useState(), Gd = useRef(null), cf = useRef(), uf = useMemo(() => Pe.matches("editing"), [Pe]), gf = useCallback(() => {
|
|
19745
19745
|
var Pf;
|
|
19746
19746
|
const rf = mt === "marker" ? Gd.current : yt;
|
|
19747
19747
|
if (rf == null)
|
|
19748
19748
|
return null;
|
|
19749
|
-
const
|
|
19750
|
-
return
|
|
19749
|
+
const bf = (Pf = n.current) == null ? void 0 : Pf.createGeometry(rf);
|
|
19750
|
+
return bf == null || mt !== "polyline" && bf.type === "LineString" ? null : feature$1(bf, {
|
|
19751
19751
|
id: v4(),
|
|
19752
19752
|
type: rf.type,
|
|
19753
19753
|
positions: rf.controlPoints,
|
|
19754
19754
|
extrudedHeight: _i
|
|
19755
19755
|
});
|
|
19756
19756
|
}, [_i, yt, Gd, mt, n]), hf = useCallback(() => {
|
|
19757
|
-
var
|
|
19757
|
+
var bf;
|
|
19758
19758
|
if (yt == null || !(c != null && c.id))
|
|
19759
19759
|
return null;
|
|
19760
|
-
const rf = (
|
|
19760
|
+
const rf = (bf = n.current) == null ? void 0 : bf.createGeometry(yt);
|
|
19761
19761
|
return rf == null ? null : feature$1(rf, {
|
|
19762
19762
|
id: c == null ? void 0 : c.id,
|
|
19763
19763
|
type: yt == null ? void 0 : yt.type,
|
|
19764
19764
|
positions: yt == null ? void 0 : yt.controlPoints,
|
|
19765
19765
|
extrudedHeight: _i
|
|
19766
19766
|
});
|
|
19767
|
-
}, [_i, yt, c, n]),
|
|
19767
|
+
}, [_i, yt, c, n]), mf = useCallback(
|
|
19768
19768
|
(rf) => {
|
|
19769
19769
|
if (ba(0), ms(void 0), Pe.context.type == null || Pe.context.controlPoints == null) {
|
|
19770
19770
|
lt(null);
|
|
@@ -19776,16 +19776,16 @@ function useHooks$9({
|
|
|
19776
19776
|
});
|
|
19777
19777
|
},
|
|
19778
19778
|
[Pe, lt, ba]
|
|
19779
|
-
), xf = useRef(
|
|
19780
|
-
xf.current =
|
|
19779
|
+
), xf = useRef(mf);
|
|
19780
|
+
xf.current = mf;
|
|
19781
19781
|
const Vf = useCallback(
|
|
19782
19782
|
async (rf) => {
|
|
19783
19783
|
var Uf;
|
|
19784
|
-
const
|
|
19785
|
-
if (yu(
|
|
19784
|
+
const bf = await getCentroid(rf, n);
|
|
19785
|
+
if (yu(bf), !bf)
|
|
19786
19786
|
return;
|
|
19787
19787
|
const Pf = (Uf = n.current) == null ? void 0 : Uf.getExtrudedPoint(
|
|
19788
|
-
|
|
19788
|
+
bf,
|
|
19789
19789
|
_i
|
|
19790
19790
|
);
|
|
19791
19791
|
Nl(Pf);
|
|
@@ -19820,7 +19820,7 @@ function useHooks$9({
|
|
|
19820
19820
|
var Pf, Uf, Bf, ep, ap, up, fp, pp, al, tf, lf, yf, If, Of, Tf;
|
|
19821
19821
|
if (W == null || W(rf), !Pe.matches("idle") || !rf)
|
|
19822
19822
|
return;
|
|
19823
|
-
const
|
|
19823
|
+
const bf = (Uf = (Pf = rf == null ? void 0 : rf.feature) == null ? void 0 : Pf.properties) == null ? void 0 : Uf.type;
|
|
19824
19824
|
se({
|
|
19825
19825
|
type: {
|
|
19826
19826
|
marker: "EDIT_MARKER",
|
|
@@ -19831,11 +19831,11 @@ function useHooks$9({
|
|
|
19831
19831
|
extrudedCircle: "EDIT_EXTRUDED_CIRCLE",
|
|
19832
19832
|
extrudedRectangle: "EDIT_EXTRUDED_RECTANGLE",
|
|
19833
19833
|
extrudedPolygon: "EDIT_EXTRUDED_POLYGON"
|
|
19834
|
-
}[
|
|
19834
|
+
}[bf],
|
|
19835
19835
|
controlPoints: (ep = (Bf = rf == null ? void 0 : rf.feature) == null ? void 0 : Bf.properties) == null ? void 0 : ep.positions,
|
|
19836
19836
|
extrudedHeight: (up = (ap = rf == null ? void 0 : rf.feature) == null ? void 0 : ap.properties) == null ? void 0 : up.extrudedHeight
|
|
19837
19837
|
}), lt({
|
|
19838
|
-
type:
|
|
19838
|
+
type: bf,
|
|
19839
19839
|
controlPoints: (pp = (fp = rf == null ? void 0 : rf.feature) == null ? void 0 : fp.properties) == null ? void 0 : pp.positions
|
|
19840
19840
|
}), (tf = (al = rf == null ? void 0 : rf.feature) == null ? void 0 : al.properties) != null && tf.extrudedHeight && (ba(rf.feature.properties.extrudedHeight), ms(
|
|
19841
19841
|
(Tf = n.current) == null ? void 0 : Tf.getExtrudedPoint(
|
|
@@ -19847,25 +19847,25 @@ function useHooks$9({
|
|
|
19847
19847
|
[n, Pe, W, se]
|
|
19848
19848
|
), of = useCallback(
|
|
19849
19849
|
(rf) => {
|
|
19850
|
-
se({ type: "EXIT_EDIT" }),
|
|
19850
|
+
se({ type: "EXIT_EDIT" }), mf(void 0), W == null || W(void 0), rf && (kf.current = !0);
|
|
19851
19851
|
},
|
|
19852
|
-
[W, se,
|
|
19852
|
+
[W, se, mf]
|
|
19853
19853
|
), nf = useCallback(() => {
|
|
19854
19854
|
if (z) {
|
|
19855
19855
|
const rf = hf();
|
|
19856
19856
|
rf && pd({ ...rf, id: rf.properties.id });
|
|
19857
19857
|
}
|
|
19858
|
-
se({ type: "EXIT_EDIT" }),
|
|
19858
|
+
se({ type: "EXIT_EDIT" }), mf(void 0), W == null || W(void 0);
|
|
19859
19859
|
}, [
|
|
19860
19860
|
z,
|
|
19861
19861
|
se,
|
|
19862
|
-
|
|
19862
|
+
mf,
|
|
19863
19863
|
pd,
|
|
19864
19864
|
hf,
|
|
19865
19865
|
W
|
|
19866
19866
|
]), df = useCallback(
|
|
19867
|
-
(rf,
|
|
19868
|
-
Zd(rf,
|
|
19867
|
+
(rf, bf) => {
|
|
19868
|
+
Zd(rf, bf);
|
|
19869
19869
|
},
|
|
19870
19870
|
[Zd]
|
|
19871
19871
|
);
|
|
@@ -19882,7 +19882,7 @@ function useHooks$9({
|
|
|
19882
19882
|
markerGeometryRef: Gd,
|
|
19883
19883
|
pointerLocationRef: cf,
|
|
19884
19884
|
geometryOptions: yt,
|
|
19885
|
-
updateGeometryOptions:
|
|
19885
|
+
updateGeometryOptions: mf,
|
|
19886
19886
|
extrudedHeight: _i,
|
|
19887
19887
|
setExtrudedHeight: ba,
|
|
19888
19888
|
setExtrudedPoint: ms,
|
|
@@ -19894,7 +19894,7 @@ function useHooks$9({
|
|
|
19894
19894
|
isEditing: uf,
|
|
19895
19895
|
sketchOptions: La
|
|
19896
19896
|
}), useWindowEvent("keydown", (rf) => {
|
|
19897
|
-
var
|
|
19897
|
+
var bf, Pf, Uf;
|
|
19898
19898
|
if (mt !== void 0)
|
|
19899
19899
|
if (rf.code === "Space")
|
|
19900
19900
|
rp.current = !0, fa(!0), d == null || d("move");
|
|
@@ -19903,8 +19903,8 @@ function useHooks$9({
|
|
|
19903
19903
|
return;
|
|
19904
19904
|
if (rf.key === "Escape") {
|
|
19905
19905
|
se({ type: "CANCEL" });
|
|
19906
|
-
const Bf = cf.current != null ? (
|
|
19907
|
-
|
|
19906
|
+
const Bf = cf.current != null ? (bf = n.current) == null ? void 0 : bf.toXYZ(...cf.current) : void 0;
|
|
19907
|
+
mf(Bf);
|
|
19908
19908
|
} else if (rf.key === "Delete" && Pe.matches("idle") && (c != null && c.id)) {
|
|
19909
19909
|
const Bf = (Pf = o.current) == null ? void 0 : Pf.selectedLayer();
|
|
19910
19910
|
Bf && ((Uf = o.current) != null && Uf.isTempLayer(Bf == null ? void 0 : Bf.id)) && Xd(Bf, c.id);
|
|
@@ -19916,36 +19916,33 @@ function useHooks$9({
|
|
|
19916
19916
|
var rf;
|
|
19917
19917
|
mt === void 0 && !z && (se({ type: "ABORT" }), (rf = xf.current) == null || rf.call(xf, void 0));
|
|
19918
19918
|
}, [mt, z, se]);
|
|
19919
|
-
const
|
|
19920
|
-
|
|
19921
|
-
const
|
|
19922
|
-
|
|
19919
|
+
const Cf = useRef(mn);
|
|
19920
|
+
Cf.current = mn;
|
|
19921
|
+
const ff = useRef(d);
|
|
19922
|
+
ff.current = d;
|
|
19923
19923
|
const Sf = useRef(h);
|
|
19924
19924
|
Sf.current = h;
|
|
19925
|
-
const
|
|
19926
|
-
|
|
19925
|
+
const Mf = useRef(s);
|
|
19926
|
+
Mf.current = s, useEffect(() => {
|
|
19927
19927
|
var rf;
|
|
19928
|
-
(rf =
|
|
19929
|
-
mf,
|
|
19930
|
-
mt || z ? "sketch" : Rf.current === "sketch" ? "default" : Rf.current
|
|
19931
|
-
);
|
|
19928
|
+
(z || mt) && Mf.current !== "sketch" && ((rf = ff.current) == null || rf.call(ff, "sketch"));
|
|
19932
19929
|
}, [mt, z]);
|
|
19933
19930
|
const Ff = useRef(uf);
|
|
19934
19931
|
Ff.current = uf;
|
|
19935
19932
|
const Hf = useRef(of);
|
|
19936
19933
|
Hf.current = of, useEffect(() => {
|
|
19937
|
-
var rf;
|
|
19938
|
-
(rf = Sf.current) == null || rf.call(Sf, mt,
|
|
19934
|
+
var rf, bf;
|
|
19935
|
+
(rf = Sf.current) == null || rf.call(Sf, mt, Cf.current), Ff.current && Hf.current(), mt === void 0 && ((bf = ff.current) == null || bf.call(ff, "default"));
|
|
19939
19936
|
}, [mt]);
|
|
19940
|
-
const
|
|
19941
|
-
|
|
19942
|
-
rp.current || s !== "sketch" &&
|
|
19937
|
+
const Jf = useRef(mt);
|
|
19938
|
+
Jf.current = mt, useEffect(() => {
|
|
19939
|
+
rp.current || s !== "sketch" && Ff.current && Hf.current();
|
|
19943
19940
|
}, [s, kt]);
|
|
19944
19941
|
const Wf = useRef([]), tp = useCallback((rf) => {
|
|
19945
19942
|
Wf.current.push(rf);
|
|
19946
|
-
}, []),
|
|
19947
|
-
|
|
19948
|
-
const
|
|
19943
|
+
}, []), vf = useRef(tp);
|
|
19944
|
+
vf.current = tp;
|
|
19945
|
+
const pf = useRef(void 0), Lf = useMemo(
|
|
19949
19946
|
() => Pe.context.catchedControlPointIndex,
|
|
19950
19947
|
[Pe.context.catchedControlPointIndex]
|
|
19951
19948
|
), Df = useMemo(
|
|
@@ -19954,10 +19951,10 @@ function useHooks$9({
|
|
|
19954
19951
|
), kf = useRef(!1);
|
|
19955
19952
|
useEffect(() => {
|
|
19956
19953
|
var rf;
|
|
19957
|
-
if (Wf.current.forEach((
|
|
19958
|
-
|
|
19954
|
+
if (Wf.current.forEach((bf) => {
|
|
19955
|
+
bf(z);
|
|
19959
19956
|
}), z)
|
|
19960
|
-
|
|
19957
|
+
pf.current = z;
|
|
19961
19958
|
else {
|
|
19962
19959
|
if (kf.current) {
|
|
19963
19960
|
kf.current = !1;
|
|
@@ -19969,19 +19966,19 @@ function useHooks$9({
|
|
|
19969
19966
|
featureId: []
|
|
19970
19967
|
}
|
|
19971
19968
|
]), setTimeout(() => {
|
|
19972
|
-
var
|
|
19973
|
-
|
|
19969
|
+
var bf, Pf, Uf;
|
|
19970
|
+
pf.current && ((Uf = o.current) == null || Uf.selectFeatures([
|
|
19974
19971
|
{
|
|
19975
|
-
layerId: (
|
|
19976
|
-
featureId: [(Pf =
|
|
19972
|
+
layerId: (bf = pf.current) == null ? void 0 : bf.layerId,
|
|
19973
|
+
featureId: [(Pf = pf.current) == null ? void 0 : Pf.feature.id]
|
|
19977
19974
|
}
|
|
19978
|
-
])),
|
|
19975
|
+
])), pf.current = void 0;
|
|
19979
19976
|
}, 50);
|
|
19980
19977
|
}
|
|
19981
19978
|
}, [o, z, Wf]);
|
|
19982
19979
|
const Yf = useCallback(
|
|
19983
|
-
(rf,
|
|
19984
|
-
!Pe.matches("editing") || !Pe.context.controlPoints || (Pf === "mousedown" ? se(
|
|
19980
|
+
(rf, bf, Pf) => {
|
|
19981
|
+
!Pe.matches("editing") || !Pe.context.controlPoints || (Pf === "mousedown" ? se(bf ? {
|
|
19985
19982
|
type: "CATCH",
|
|
19986
19983
|
catchedControlPointIndex: -1,
|
|
19987
19984
|
controlPoints: Pe.context.controlPoints,
|
|
@@ -19991,7 +19988,7 @@ function useHooks$9({
|
|
|
19991
19988
|
catchedControlPointIndex: rf,
|
|
19992
19989
|
controlPoints: Pe.context.controlPoints,
|
|
19993
19990
|
catchedExtrudedPoint: !1
|
|
19994
|
-
}) : !
|
|
19991
|
+
}) : !bf && ((Pe.context.type === "polygon" || Pe.context.type === "extrudedPolygon") && Pe.context.controlPoints.length > 3 || Pe.context.type === "polyline" && Pe.context.controlPoints.length > 2) && Vd(rf));
|
|
19995
19992
|
},
|
|
19996
19993
|
[Pe, se]
|
|
19997
19994
|
), Qf = useGet(mt), Zf = useGet(La);
|
|
@@ -20006,7 +20003,7 @@ function useHooks$9({
|
|
|
20006
20003
|
cancelEdit: of,
|
|
20007
20004
|
applyEdit: nf,
|
|
20008
20005
|
deleteFeature: df,
|
|
20009
|
-
onEditFeatureChange:
|
|
20006
|
+
onEditFeatureChange: vf.current
|
|
20010
20007
|
}),
|
|
20011
20008
|
[
|
|
20012
20009
|
Qf,
|
|
@@ -20024,26 +20021,26 @@ function useHooks$9({
|
|
|
20024
20021
|
const np = useCallback(() => {
|
|
20025
20022
|
var rf;
|
|
20026
20023
|
if (Ru !== void 0) {
|
|
20027
|
-
const
|
|
20028
|
-
if (!
|
|
20024
|
+
const bf = (rf = Pe.context.controlPoints) == null ? void 0 : rf.toSpliced(Ru, 1);
|
|
20025
|
+
if (!bf)
|
|
20029
20026
|
return;
|
|
20030
20027
|
se({
|
|
20031
20028
|
type: "UPDATE",
|
|
20032
|
-
controlPoints:
|
|
20029
|
+
controlPoints: bf
|
|
20033
20030
|
}), lt(
|
|
20034
20031
|
(Pf) => Pf ? {
|
|
20035
20032
|
type: Pf.type,
|
|
20036
|
-
controlPoints:
|
|
20033
|
+
controlPoints: bf
|
|
20037
20034
|
} : null
|
|
20038
20035
|
), Vd(void 0);
|
|
20039
20036
|
}
|
|
20040
20037
|
}, [Ru, Pe.context.controlPoints, se, lt]), qf = useRef(np);
|
|
20041
20038
|
qf.current = np;
|
|
20042
20039
|
const ip = useCallback(
|
|
20043
|
-
(rf,
|
|
20040
|
+
(rf, bf) => {
|
|
20044
20041
|
if (Pe.context.controlPoints == null)
|
|
20045
20042
|
return;
|
|
20046
|
-
const Pf =
|
|
20043
|
+
const Pf = bf + 1, Uf = Pe.context.controlPoints.toSpliced(
|
|
20047
20044
|
Pf,
|
|
20048
20045
|
0,
|
|
20049
20046
|
rf
|
|
@@ -20375,16 +20372,16 @@ function Gt$1() {
|
|
|
20375
20372
|
` + uf + al;
|
|
20376
20373
|
}
|
|
20377
20374
|
}
|
|
20378
|
-
var hf = !1,
|
|
20375
|
+
var hf = !1, mf;
|
|
20379
20376
|
{
|
|
20380
20377
|
var xf = typeof WeakMap == "function" ? WeakMap : Map;
|
|
20381
|
-
|
|
20378
|
+
mf = new xf();
|
|
20382
20379
|
}
|
|
20383
20380
|
function Vf(al, tf) {
|
|
20384
20381
|
if (!al || hf)
|
|
20385
20382
|
return "";
|
|
20386
20383
|
{
|
|
20387
|
-
var lf =
|
|
20384
|
+
var lf = mf.get(al);
|
|
20388
20385
|
if (lf !== void 0)
|
|
20389
20386
|
return lf;
|
|
20390
20387
|
}
|
|
@@ -20428,18 +20425,18 @@ function Gt$1() {
|
|
|
20428
20425
|
}
|
|
20429
20426
|
} catch (lp) {
|
|
20430
20427
|
if (lp && yf && typeof lp.stack == "string") {
|
|
20431
|
-
for (var
|
|
20428
|
+
for (var Rf = lp.stack.split(`
|
|
20432
20429
|
`), Af = yf.stack.split(`
|
|
20433
|
-
`), Gf =
|
|
20430
|
+
`), Gf = Rf.length - 1, Xf = Af.length - 1; Gf >= 1 && Xf >= 0 && Rf[Gf] !== Af[Xf]; )
|
|
20434
20431
|
Xf--;
|
|
20435
20432
|
for (; Gf >= 1 && Xf >= 0; Gf--, Xf--)
|
|
20436
|
-
if (
|
|
20433
|
+
if (Rf[Gf] !== Af[Xf]) {
|
|
20437
20434
|
if (Gf !== 1 || Xf !== 1)
|
|
20438
20435
|
do
|
|
20439
|
-
if (Gf--, Xf--, Xf < 0 ||
|
|
20440
|
-
var
|
|
20441
|
-
` +
|
|
20442
|
-
return al.displayName &&
|
|
20436
|
+
if (Gf--, Xf--, Xf < 0 || Rf[Gf] !== Af[Xf]) {
|
|
20437
|
+
var jf = `
|
|
20438
|
+
` + Rf[Gf].replace(" at new ", " at ");
|
|
20439
|
+
return al.displayName && jf.includes("<anonymous>") && (jf = jf.replace("<anonymous>", al.displayName)), typeof al == "function" && mf.set(al, jf), jf;
|
|
20443
20440
|
}
|
|
20444
20441
|
while (Gf >= 1 && Xf >= 0);
|
|
20445
20442
|
break;
|
|
@@ -20449,7 +20446,7 @@ function Gt$1() {
|
|
|
20449
20446
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
20450
20447
|
}
|
|
20451
20448
|
var bp = al ? al.displayName || al.name : "", gp = bp ? gf(bp) : "";
|
|
20452
|
-
return typeof al == "function" &&
|
|
20449
|
+
return typeof al == "function" && mf.set(al, gp), gp;
|
|
20453
20450
|
}
|
|
20454
20451
|
function wf(al, tf, lf) {
|
|
20455
20452
|
return Vf(al, !1);
|
|
@@ -20500,17 +20497,17 @@ function Gt$1() {
|
|
|
20500
20497
|
var Of = Function.call.bind(Xd);
|
|
20501
20498
|
for (var Tf in al)
|
|
20502
20499
|
if (Of(al, Tf)) {
|
|
20503
|
-
var
|
|
20500
|
+
var Rf = void 0;
|
|
20504
20501
|
try {
|
|
20505
20502
|
if (typeof al[Tf] != "function") {
|
|
20506
20503
|
var Af = Error((yf || "React class") + ": " + lf + " type `" + Tf + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[Tf] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
20507
20504
|
throw Af.name = "Invariant Violation", Af;
|
|
20508
20505
|
}
|
|
20509
|
-
|
|
20506
|
+
Rf = al[Tf](tf, Tf, yf, lf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
20510
20507
|
} catch (Gf) {
|
|
20511
|
-
|
|
20508
|
+
Rf = Gf;
|
|
20512
20509
|
}
|
|
20513
|
-
|
|
20510
|
+
Rf && !(Rf instanceof Error) && (Zd(If), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", yf || "React class", lf, Tf, typeof Rf), Zd(null)), Rf instanceof Error && !(Rf.message in gd) && (gd[Rf.message] = !0, Zd(If), se("Failed %s type: %s", lf, Rf.message), Zd(null));
|
|
20514
20511
|
}
|
|
20515
20512
|
}
|
|
20516
20513
|
}
|
|
@@ -20524,26 +20521,26 @@ function Gt$1() {
|
|
|
20524
20521
|
return lf;
|
|
20525
20522
|
}
|
|
20526
20523
|
}
|
|
20527
|
-
function
|
|
20524
|
+
function Cf(al) {
|
|
20528
20525
|
try {
|
|
20529
|
-
return
|
|
20526
|
+
return ff(al), !1;
|
|
20530
20527
|
} catch {
|
|
20531
20528
|
return !0;
|
|
20532
20529
|
}
|
|
20533
20530
|
}
|
|
20534
|
-
function
|
|
20531
|
+
function ff(al) {
|
|
20535
20532
|
return "" + al;
|
|
20536
20533
|
}
|
|
20537
20534
|
function Sf(al) {
|
|
20538
|
-
if (
|
|
20539
|
-
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)),
|
|
20535
|
+
if (Cf(al))
|
|
20536
|
+
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)), ff(al);
|
|
20540
20537
|
}
|
|
20541
|
-
var
|
|
20538
|
+
var Mf = Pe.ReactCurrentOwner, Ff = {
|
|
20542
20539
|
key: !0,
|
|
20543
20540
|
ref: !0,
|
|
20544
20541
|
__self: !0,
|
|
20545
20542
|
__source: !0
|
|
20546
|
-
}, Hf,
|
|
20543
|
+
}, Hf, Jf;
|
|
20547
20544
|
function Wf(al) {
|
|
20548
20545
|
if (Xd.call(al, "ref")) {
|
|
20549
20546
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -20560,10 +20557,10 @@ function Gt$1() {
|
|
|
20560
20557
|
}
|
|
20561
20558
|
return al.key !== void 0;
|
|
20562
20559
|
}
|
|
20563
|
-
function
|
|
20564
|
-
typeof al.ref == "string" &&
|
|
20560
|
+
function vf(al, tf) {
|
|
20561
|
+
typeof al.ref == "string" && Mf.current;
|
|
20565
20562
|
}
|
|
20566
|
-
function
|
|
20563
|
+
function pf(al, tf) {
|
|
20567
20564
|
{
|
|
20568
20565
|
var lf = function() {
|
|
20569
20566
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -20577,7 +20574,7 @@ function Gt$1() {
|
|
|
20577
20574
|
function Lf(al, tf) {
|
|
20578
20575
|
{
|
|
20579
20576
|
var lf = function() {
|
|
20580
|
-
|
|
20577
|
+
Jf || (Jf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
20581
20578
|
};
|
|
20582
20579
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
20583
20580
|
get: lf,
|
|
@@ -20586,7 +20583,7 @@ function Gt$1() {
|
|
|
20586
20583
|
}
|
|
20587
20584
|
}
|
|
20588
20585
|
var Df = function(al, tf, lf, yf, If, Of, Tf) {
|
|
20589
|
-
var
|
|
20586
|
+
var Rf = {
|
|
20590
20587
|
// This tag allows us to uniquely identify this as a React Element
|
|
20591
20588
|
$$typeof: n,
|
|
20592
20589
|
// Built-in properties that belong on the element
|
|
@@ -20597,27 +20594,27 @@ function Gt$1() {
|
|
|
20597
20594
|
// Record the component responsible for creating this element.
|
|
20598
20595
|
_owner: Of
|
|
20599
20596
|
};
|
|
20600
|
-
return
|
|
20597
|
+
return Rf._store = {}, Object.defineProperty(Rf._store, "validated", {
|
|
20601
20598
|
configurable: !1,
|
|
20602
20599
|
enumerable: !1,
|
|
20603
20600
|
writable: !0,
|
|
20604
20601
|
value: !1
|
|
20605
|
-
}), Object.defineProperty(
|
|
20602
|
+
}), Object.defineProperty(Rf, "_self", {
|
|
20606
20603
|
configurable: !1,
|
|
20607
20604
|
enumerable: !1,
|
|
20608
20605
|
writable: !1,
|
|
20609
20606
|
value: yf
|
|
20610
|
-
}), Object.defineProperty(
|
|
20607
|
+
}), Object.defineProperty(Rf, "_source", {
|
|
20611
20608
|
configurable: !1,
|
|
20612
20609
|
enumerable: !1,
|
|
20613
20610
|
writable: !1,
|
|
20614
20611
|
value: If
|
|
20615
|
-
}), Object.freeze && (Object.freeze(
|
|
20612
|
+
}), Object.freeze && (Object.freeze(Rf.props), Object.freeze(Rf)), Rf;
|
|
20616
20613
|
};
|
|
20617
20614
|
function kf(al, tf, lf, yf, If) {
|
|
20618
20615
|
{
|
|
20619
|
-
var Of, Tf = {},
|
|
20620
|
-
lf !== void 0 && (Sf(lf),
|
|
20616
|
+
var Of, Tf = {}, Rf = null, Af = null;
|
|
20617
|
+
lf !== void 0 && (Sf(lf), Rf = "" + lf), tp(tf) && (Sf(tf.key), Rf = "" + tf.key), Wf(tf) && (Af = tf.ref, vf(tf, If));
|
|
20621
20618
|
for (Of in tf)
|
|
20622
20619
|
Xd.call(tf, Of) && !Ff.hasOwnProperty(Of) && (Tf[Of] = tf[Of]);
|
|
20623
20620
|
if (al && al.defaultProps) {
|
|
@@ -20625,11 +20622,11 @@ function Gt$1() {
|
|
|
20625
20622
|
for (Of in Gf)
|
|
20626
20623
|
Tf[Of] === void 0 && (Tf[Of] = Gf[Of]);
|
|
20627
20624
|
}
|
|
20628
|
-
if (
|
|
20625
|
+
if (Rf || Af) {
|
|
20629
20626
|
var Xf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
20630
|
-
|
|
20627
|
+
Rf && pf(Tf, Xf), Af && Lf(Tf, Xf);
|
|
20631
20628
|
}
|
|
20632
|
-
return Df(al,
|
|
20629
|
+
return Df(al, Rf, Af, If, yf, Mf.current, Tf);
|
|
20633
20630
|
}
|
|
20634
20631
|
}
|
|
20635
20632
|
var Yf = Pe.ReactCurrentOwner, Qf = Pe.ReactDebugCurrentFrame;
|
|
@@ -20673,7 +20670,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20673
20670
|
return tf;
|
|
20674
20671
|
}
|
|
20675
20672
|
}
|
|
20676
|
-
function
|
|
20673
|
+
function bf(al, tf) {
|
|
20677
20674
|
{
|
|
20678
20675
|
if (!al._store || al._store.validated || al.key != null)
|
|
20679
20676
|
return;
|
|
@@ -20693,7 +20690,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20693
20690
|
if (nf(al))
|
|
20694
20691
|
for (var lf = 0; lf < al.length; lf++) {
|
|
20695
20692
|
var yf = al[lf];
|
|
20696
|
-
qf(yf) &&
|
|
20693
|
+
qf(yf) && bf(yf, tf);
|
|
20697
20694
|
}
|
|
20698
20695
|
else if (qf(al))
|
|
20699
20696
|
al._store && (al._store.validated = !0);
|
|
@@ -20701,7 +20698,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20701
20698
|
var If = nt(al);
|
|
20702
20699
|
if (typeof If == "function" && If !== al.entries)
|
|
20703
20700
|
for (var Of = If.call(al), Tf; !(Tf = Of.next()).done; )
|
|
20704
|
-
qf(Tf.value) &&
|
|
20701
|
+
qf(Tf.value) && bf(Tf.value, tf);
|
|
20705
20702
|
}
|
|
20706
20703
|
}
|
|
20707
20704
|
}
|
|
@@ -20746,28 +20743,28 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20746
20743
|
{
|
|
20747
20744
|
var Tf = La(al);
|
|
20748
20745
|
if (!Tf) {
|
|
20749
|
-
var
|
|
20750
|
-
(al === void 0 || typeof al == "object" && al !== null && Object.keys(al).length === 0) && (
|
|
20746
|
+
var Rf = "";
|
|
20747
|
+
(al === void 0 || typeof al == "object" && al !== null && Object.keys(al).length === 0) && (Rf += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
20751
20748
|
var Af = rp();
|
|
20752
|
-
Af ?
|
|
20749
|
+
Af ? Rf += Af : Rf += ip();
|
|
20753
20750
|
var Gf;
|
|
20754
|
-
al === null ? Gf = "null" : nf(al) ? Gf = "array" : al !== void 0 && al.$$typeof === n ? (Gf = "<" + (yt(al.type) || "Unknown") + " />",
|
|
20751
|
+
al === null ? Gf = "null" : nf(al) ? Gf = "array" : al !== void 0 && al.$$typeof === n ? (Gf = "<" + (yt(al.type) || "Unknown") + " />", Rf = " Did you accidentally export a JSX literal instead of a component?") : Gf = typeof al, se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Gf, Rf);
|
|
20755
20752
|
}
|
|
20756
20753
|
var Xf = kf(al, tf, lf, If, Of);
|
|
20757
20754
|
if (Xf == null)
|
|
20758
20755
|
return Xf;
|
|
20759
20756
|
if (Tf) {
|
|
20760
|
-
var
|
|
20761
|
-
if (
|
|
20757
|
+
var jf = tf.children;
|
|
20758
|
+
if (jf !== void 0)
|
|
20762
20759
|
if (yf)
|
|
20763
|
-
if (nf(
|
|
20764
|
-
for (var bp = 0; bp <
|
|
20765
|
-
Pf(
|
|
20766
|
-
Object.freeze && Object.freeze(
|
|
20760
|
+
if (nf(jf)) {
|
|
20761
|
+
for (var bp = 0; bp < jf.length; bp++)
|
|
20762
|
+
Pf(jf[bp], al);
|
|
20763
|
+
Object.freeze && Object.freeze(jf);
|
|
20767
20764
|
} else
|
|
20768
20765
|
se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
20769
20766
|
else
|
|
20770
|
-
Pf(
|
|
20767
|
+
Pf(jf, al);
|
|
20771
20768
|
}
|
|
20772
20769
|
return al === s ? Bf(Xf) : Uf(Xf), Xf;
|
|
20773
20770
|
}
|
|
@@ -28720,8 +28717,8 @@ Matrix4.getRotation = function(t, n) {
|
|
|
28720
28717
|
};
|
|
28721
28718
|
Matrix4.multiply = function(t, n, o) {
|
|
28722
28719
|
Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o);
|
|
28723
|
-
const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], z = t[11], W = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], pi = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], _i = n[12], ba = n[13], Sc = n[14], ms = n[15], Xs = s * mt + p * kt + L * mn + W * pi, yu = c * mt + y * kt + F * mn + nt * pi, pu = d * mt + S * kt + N * mn + Pe * pi, Nl = h * mt + P * kt + z * mn + se * pi, Ru = s * zi + p * Sa + L * fa + W * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, cf = h * zi + P * Sa + z * fa + se * La, uf = s * Ra + p * ma + L * yt + W * lt, gf = c * Ra + y * ma + F * yt + nt * lt, hf = d * Ra + S * ma + N * yt + Pe * lt,
|
|
28724
|
-
return o[0] = Xs, o[1] = yu, o[2] = pu, o[3] = Nl, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = cf, o[8] = uf, o[9] = gf, o[10] = hf, o[11] =
|
|
28720
|
+
const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], z = t[11], W = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], pi = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], _i = n[12], ba = n[13], Sc = n[14], ms = n[15], Xs = s * mt + p * kt + L * mn + W * pi, yu = c * mt + y * kt + F * mn + nt * pi, pu = d * mt + S * kt + N * mn + Pe * pi, Nl = h * mt + P * kt + z * mn + se * pi, Ru = s * zi + p * Sa + L * fa + W * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, cf = h * zi + P * Sa + z * fa + se * La, uf = s * Ra + p * ma + L * yt + W * lt, gf = c * Ra + y * ma + F * yt + nt * lt, hf = d * Ra + S * ma + N * yt + Pe * lt, mf = h * Ra + P * ma + z * yt + se * lt, xf = s * _i + p * ba + L * Sc + W * ms, Vf = c * _i + y * ba + F * Sc + nt * ms, wf = d * _i + S * ba + N * Sc + Pe * ms, Wa = h * _i + P * ba + z * Sc + se * ms;
|
|
28721
|
+
return o[0] = Xs, o[1] = yu, o[2] = pu, o[3] = Nl, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = cf, o[8] = uf, o[9] = gf, o[10] = hf, o[11] = mf, o[12] = xf, o[13] = Vf, o[14] = wf, o[15] = Wa, o;
|
|
28725
28722
|
};
|
|
28726
28723
|
Matrix4.add = function(t, n, o) {
|
|
28727
28724
|
return Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o), o[0] = t[0] + n[0], o[1] = t[1] + n[1], o[2] = t[2] + n[2], o[3] = t[3] + n[3], o[4] = t[4] + n[4], o[5] = t[5] + n[5], o[6] = t[6] + n[6], o[7] = t[7] + n[7], o[8] = t[8] + n[8], o[9] = t[9] + n[9], o[10] = t[10] + n[10], o[11] = t[11] + n[11], o[12] = t[12] + n[12], o[13] = t[13] + n[13], o[14] = t[14] + n[14], o[15] = t[15] + n[15], o;
|
|
@@ -28804,8 +28801,8 @@ Matrix4.inverse = function(t, n) {
|
|
|
28804
28801
|
const lt = se * p + mn * y + pi * S - (mt * p + kt * y + zi * S), _i = mt * h + Sa * y + Ra * S - (se * h + fa * y + La * S), ba = kt * h + fa * p + ma * S - (mn * h + Sa * p + yt * S), Sc = zi * h + La * p + yt * y - (pi * h + Ra * p + ma * y), ms = mt * s + kt * c + zi * d - (se * s + mn * c + pi * d), Xs = se * o + fa * c + La * d - (mt * o + Sa * c + Ra * d), yu = mn * o + Sa * s + yt * d - (kt * o + fa * s + ma * d), pu = pi * o + Ra * s + ma * c - (zi * o + La * s + yt * c);
|
|
28805
28802
|
se = c * S, mt = d * y, kt = s * S, mn = d * p, pi = s * y, zi = c * p, Sa = o * S, fa = d * h, La = o * y, Ra = c * h, ma = o * p, yt = s * h;
|
|
28806
28803
|
const Nl = se * W + mn * nt + pi * Pe - (mt * W + kt * nt + zi * Pe), Ru = mt * z + Sa * nt + Ra * Pe - (se * z + fa * nt + La * Pe), Vd = kt * z + fa * W + ma * Pe - (mn * z + Sa * W + yt * Pe), Gd = zi * z + La * W + yt * nt - (pi * z + Ra * W + ma * nt), cf = kt * F + zi * N + mt * L - (pi * N + se * L + mn * F), uf = La * N + se * P + fa * F - (Sa * F + Ra * N + mt * P), gf = Sa * L + yt * N + mn * P - (ma * N + kt * P + fa * L), hf = ma * F + pi * P + Ra * L - (La * L + yt * F + zi * P);
|
|
28807
|
-
let
|
|
28808
|
-
if (Math.abs(
|
|
28804
|
+
let mf = o * lt + s * _i + c * ba + d * Sc;
|
|
28805
|
+
if (Math.abs(mf) < CesiumMath.EPSILON21) {
|
|
28809
28806
|
if (Matrix3.equalsEpsilon(
|
|
28810
28807
|
Matrix4.getMatrix3(t, scratchInverseRotation),
|
|
28811
28808
|
scratchMatrix3Zero,
|
|
@@ -28819,7 +28816,7 @@ Matrix4.inverse = function(t, n) {
|
|
|
28819
28816
|
"matrix is not invertible because its determinate is zero."
|
|
28820
28817
|
);
|
|
28821
28818
|
}
|
|
28822
|
-
return
|
|
28819
|
+
return mf = 1 / mf, n[0] = lt * mf, n[1] = _i * mf, n[2] = ba * mf, n[3] = Sc * mf, n[4] = ms * mf, n[5] = Xs * mf, n[6] = yu * mf, n[7] = pu * mf, n[8] = Nl * mf, n[9] = Ru * mf, n[10] = Vd * mf, n[11] = Gd * mf, n[12] = cf * mf, n[13] = uf * mf, n[14] = gf * mf, n[15] = hf * mf, n;
|
|
28823
28820
|
};
|
|
28824
28821
|
Matrix4.inverseTransformation = function(t, n) {
|
|
28825
28822
|
Check.typeOf.object("matrix", t), Check.typeOf.object("result", n);
|
|
@@ -29537,18 +29534,18 @@ function requirePunycode() {
|
|
|
29537
29534
|
return mn(Ru + (kt + 1) * yu / (yu + L));
|
|
29538
29535
|
}
|
|
29539
29536
|
function ba(yu) {
|
|
29540
|
-
var pu = [], Nl = yu.length, Ru, Vd = 0, Gd = z, cf = N, uf, gf, hf,
|
|
29537
|
+
var pu = [], Nl = yu.length, Ru, Vd = 0, Gd = z, cf = N, uf, gf, hf, mf, xf, Vf, wf, Wa, af;
|
|
29541
29538
|
for (uf = yu.lastIndexOf(W), uf < 0 && (uf = 0), gf = 0; gf < uf; ++gf)
|
|
29542
29539
|
yu.charCodeAt(gf) >= 128 && Sa("not-basic"), pu.push(yu.charCodeAt(gf));
|
|
29543
29540
|
for (hf = uf > 0 ? uf + 1 : 0; hf < Nl; ) {
|
|
29544
|
-
for (
|
|
29541
|
+
for (mf = Vd, xf = 1, Vf = y; hf >= Nl && Sa("invalid-input"), wf = yt(yu.charCodeAt(hf++)), (wf >= y || wf > mn((p - Vd) / xf)) && Sa("overflow"), Vd += wf * xf, Wa = Vf <= cf ? S : Vf >= cf + P ? P : Vf - cf, !(wf < Wa); Vf += y)
|
|
29545
29542
|
af = y - Wa, xf > mn(p / af) && Sa("overflow"), xf *= af;
|
|
29546
|
-
Ru = pu.length + 1, cf = _i(Vd -
|
|
29543
|
+
Ru = pu.length + 1, cf = _i(Vd - mf, Ru, mf == 0), mn(Vd / Ru) > p - Gd && Sa("overflow"), Gd += mn(Vd / Ru), Vd %= Ru, pu.splice(Vd++, 0, Gd);
|
|
29547
29544
|
}
|
|
29548
29545
|
return ma(pu);
|
|
29549
29546
|
}
|
|
29550
29547
|
function Sc(yu) {
|
|
29551
|
-
var pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf,
|
|
29548
|
+
var pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf, mf, xf, Vf = [], wf, Wa, af, Xd;
|
|
29552
29549
|
for (yu = Ra(yu), wf = yu.length, pu = z, Nl = 0, Gd = N, cf = 0; cf < wf; ++cf)
|
|
29553
29550
|
xf = yu[cf], xf < 128 && Vf.push(pi(xf));
|
|
29554
29551
|
for (Ru = Vd = Vf.length, Vd && Vf.push(W); Ru < wf; ) {
|
|
@@ -29556,9 +29553,9 @@ function requirePunycode() {
|
|
|
29556
29553
|
xf = yu[cf], xf >= pu && xf < uf && (uf = xf);
|
|
29557
29554
|
for (Wa = Ru + 1, uf - pu > mn((p - Nl) / Wa) && Sa("overflow"), Nl += (uf - pu) * Wa, pu = uf, cf = 0; cf < wf; ++cf)
|
|
29558
29555
|
if (xf = yu[cf], xf < pu && ++Nl > p && Sa("overflow"), xf == pu) {
|
|
29559
|
-
for (gf = Nl, hf = y;
|
|
29560
|
-
Xd = gf -
|
|
29561
|
-
pi(lt(
|
|
29556
|
+
for (gf = Nl, hf = y; mf = hf <= Gd ? S : hf >= Gd + P ? P : hf - Gd, !(gf < mf); hf += y)
|
|
29557
|
+
Xd = gf - mf, af = y - mf, Vf.push(
|
|
29558
|
+
pi(lt(mf + Xd % af, 0))
|
|
29562
29559
|
), gf = mn(Xd / af);
|
|
29563
29560
|
Vf.push(pi(lt(gf, 0))), Gd = _i(Nl, Wa, Ru == Vd), Nl = 0, ++Ru;
|
|
29564
29561
|
}
|
|
@@ -41329,8 +41326,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41329
41326
|
if (h) {
|
|
41330
41327
|
const rf = nudgeCartographic(Ra, ma);
|
|
41331
41328
|
Xd = n.project(Ra, segmentStart2DScratch), gd = n.project(ma, segmentEnd2DScratch);
|
|
41332
|
-
const
|
|
41333
|
-
|
|
41329
|
+
const bf = direction(gd, Xd, forwardOffset2DScratch);
|
|
41330
|
+
bf.y = Math.abs(bf.y), pd = segmentStartNormal2DScratch, Zd = segmentEndNormal2DScratch, rf === 0 || Cartesian3.dot(bf, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (pd = projectNormal(
|
|
41334
41331
|
n,
|
|
41335
41332
|
Ra,
|
|
41336
41333
|
af,
|
|
@@ -41368,40 +41365,40 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41368
41365
|
wf,
|
|
41369
41366
|
offsetScratch$1
|
|
41370
41367
|
), df = Cartesian3.normalize(nf, rightScratch);
|
|
41371
|
-
let
|
|
41372
|
-
|
|
41373
|
-
let
|
|
41374
|
-
|
|
41368
|
+
let Cf = Cartesian3.subtract(Wa, wf, startUpScratch);
|
|
41369
|
+
Cf = Cartesian3.normalize(Cf, Cf);
|
|
41370
|
+
let ff = Cartesian3.cross(df, Cf, rightScratch);
|
|
41371
|
+
ff = Cartesian3.normalize(ff, ff);
|
|
41375
41372
|
let Sf = Cartesian3.cross(
|
|
41376
|
-
|
|
41373
|
+
Cf,
|
|
41377
41374
|
af,
|
|
41378
41375
|
startPlaneNormalScratch
|
|
41379
41376
|
);
|
|
41380
41377
|
Sf = Cartesian3.normalize(Sf, Sf);
|
|
41381
|
-
let
|
|
41382
|
-
|
|
41378
|
+
let Mf = Cartesian3.subtract(Vd, Ru, endUpScratch);
|
|
41379
|
+
Mf = Cartesian3.normalize(Mf, Mf);
|
|
41383
41380
|
let Ff = Cartesian3.cross(
|
|
41384
41381
|
Gd,
|
|
41385
|
-
|
|
41382
|
+
Mf,
|
|
41386
41383
|
endPlaneNormalScratch
|
|
41387
41384
|
);
|
|
41388
41385
|
Ff = Cartesian3.normalize(Ff, Ff);
|
|
41389
|
-
const Hf = sf / ba,
|
|
41390
|
-
let Wf = 0, tp,
|
|
41386
|
+
const Hf = sf / ba, Jf = cf / ba;
|
|
41387
|
+
let Wf = 0, tp, vf, pf, Lf = 0, Df = 0;
|
|
41391
41388
|
if (h) {
|
|
41392
41389
|
Wf = Cartesian3.distance(Xd, gd), tp = EncodedCartesian3.fromCartesian(
|
|
41393
41390
|
Xd,
|
|
41394
41391
|
encodeScratch2D
|
|
41395
|
-
),
|
|
41392
|
+
), vf = Cartesian3.subtract(
|
|
41396
41393
|
gd,
|
|
41397
41394
|
Xd,
|
|
41398
41395
|
forwardOffset2DScratch
|
|
41399
|
-
),
|
|
41400
|
-
const rf =
|
|
41401
|
-
|
|
41396
|
+
), pf = Cartesian3.normalize(vf, right2DScratch);
|
|
41397
|
+
const rf = pf.x;
|
|
41398
|
+
pf.x = pf.y, pf.y = -rf, Lf = Wf / La, Df = uf / La;
|
|
41402
41399
|
}
|
|
41403
41400
|
for (Sc = 0; Sc < 8; Sc++) {
|
|
41404
|
-
const rf = pu + Sc * 4,
|
|
41401
|
+
const rf = pu + Sc * 4, bf = Xs + Sc * 2, Pf = rf + 3, Uf = Sc < 4 ? 1 : -1, Bf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
|
|
41405
41402
|
Cartesian3.pack(of.high, nt, rf), nt[Pf] = nf.x, Cartesian3.pack(of.low, Pe, rf), Pe[Pf] = nf.y, Cartesian3.pack(
|
|
41406
41403
|
Sf,
|
|
41407
41404
|
se,
|
|
@@ -41411,12 +41408,12 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41411
41408
|
mt,
|
|
41412
41409
|
rf
|
|
41413
41410
|
), mt[Pf] = Hf * Uf, Cartesian3.pack(
|
|
41414
|
-
|
|
41411
|
+
ff,
|
|
41415
41412
|
kt,
|
|
41416
41413
|
rf
|
|
41417
41414
|
);
|
|
41418
|
-
let ep =
|
|
41419
|
-
ep === 0 && Bf < 0 && (ep = 9), kt[Pf] = ep, h && (mn[rf] = tp.high.x, mn[rf + 1] = tp.high.y, mn[rf + 2] = tp.low.x, mn[rf + 3] = tp.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] =
|
|
41415
|
+
let ep = Jf * Bf;
|
|
41416
|
+
ep === 0 && Bf < 0 && (ep = 9), kt[Pf] = ep, h && (mn[rf] = tp.high.x, mn[rf + 1] = tp.high.y, mn[rf + 2] = tp.low.x, mn[rf + 3] = tp.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = vf.x, pi[rf + 1] = vf.y, pi[rf + 2] = pf.x, pi[rf + 3] = pf.y, Sa[bf] = Lf * Uf, ep = Df * Bf, ep === 0 && Bf < 0 && (ep = 9), Sa[bf + 1] = ep);
|
|
41420
41417
|
}
|
|
41421
41418
|
const kf = adjustHeightStartBottomScratch, Yf = adjustHeightEndBottomScratch, Qf = adjustHeightStartTopScratch, Zf = adjustHeightEndTopScratch, np = Rectangle.fromCartographicArray(
|
|
41422
41419
|
getHeightCartographics,
|
|
@@ -41441,7 +41438,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41441
41438
|
Zf
|
|
41442
41439
|
);
|
|
41443
41440
|
let _f = Cartesian3.multiplyByScalar(
|
|
41444
|
-
|
|
41441
|
+
ff,
|
|
41445
41442
|
CesiumMath.EPSILON5,
|
|
41446
41443
|
normalNudgeScratch
|
|
41447
41444
|
);
|
|
@@ -41450,7 +41447,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41450
41447
|
_f,
|
|
41451
41448
|
kf
|
|
41452
41449
|
), Cartesian3.add(Yf, _f, Yf), Cartesian3.add(Qf, _f, Qf), Cartesian3.add(Zf, _f, Zf), nudgeXZ(kf, Yf), nudgeXZ(Qf, Zf), Cartesian3.pack(kf, W, yu), Cartesian3.pack(Yf, W, yu + 3), Cartesian3.pack(Zf, W, yu + 6), Cartesian3.pack(Qf, W, yu + 9), _f = Cartesian3.multiplyByScalar(
|
|
41453
|
-
|
|
41450
|
+
ff,
|
|
41454
41451
|
-2 * CesiumMath.EPSILON5,
|
|
41455
41452
|
normalNudgeScratch
|
|
41456
41453
|
), Cartesian3.add(
|
|
@@ -41474,19 +41471,19 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41474
41471
|
z[y + Sc] = REFERENCE_INDICES[Sc] + hf;
|
|
41475
41472
|
hf += 8, y += REFERENCE_INDICES_LENGTH;
|
|
41476
41473
|
}
|
|
41477
|
-
const
|
|
41474
|
+
const mf = scratchBoundingSpheres;
|
|
41478
41475
|
BoundingSphere.fromVertices(
|
|
41479
41476
|
o,
|
|
41480
41477
|
Cartesian3.ZERO,
|
|
41481
41478
|
3,
|
|
41482
|
-
|
|
41479
|
+
mf[0]
|
|
41483
41480
|
), BoundingSphere.fromVertices(
|
|
41484
41481
|
s,
|
|
41485
41482
|
Cartesian3.ZERO,
|
|
41486
41483
|
3,
|
|
41487
|
-
|
|
41484
|
+
mf[1]
|
|
41488
41485
|
);
|
|
41489
|
-
const xf = BoundingSphere.fromBoundingSpheres(
|
|
41486
|
+
const xf = BoundingSphere.fromBoundingSpheres(mf);
|
|
41490
41487
|
xf.radius += gf / (P * 2);
|
|
41491
41488
|
const Vf = {
|
|
41492
41489
|
position: new GeometryAttribute({
|
|
@@ -65292,7 +65289,7 @@ function simplepolygon(t) {
|
|
|
65292
65289
|
);
|
|
65293
65290
|
var c = o.length, d = isects(
|
|
65294
65291
|
t,
|
|
65295
|
-
function(Vd, Gd, cf, uf, gf, hf,
|
|
65292
|
+
function(Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, wf, Wa, af) {
|
|
65296
65293
|
return [
|
|
65297
65294
|
Vd,
|
|
65298
65295
|
Gd,
|
|
@@ -65300,7 +65297,7 @@ function simplepolygon(t) {
|
|
|
65300
65297
|
uf,
|
|
65301
65298
|
gf,
|
|
65302
65299
|
hf,
|
|
65303
|
-
|
|
65300
|
+
mf,
|
|
65304
65301
|
xf,
|
|
65305
65302
|
Vf,
|
|
65306
65303
|
wf,
|
|
@@ -65989,29 +65986,29 @@ const Xp = class Xp {
|
|
|
65989
65986
|
}
|
|
65990
65987
|
};
|
|
65991
65988
|
Hp = new WeakMap(), // private constructor
|
|
65992
|
-
|
|
65989
|
+
Kf(Xp, Hp, !1);
|
|
65993
65990
|
let Stack = Xp;
|
|
65994
65991
|
var wp, _p, Vp, Rp, $p, dp, Mp, hp, sp, $f, xp, Ep, Cp, mp, Pp, yp, Ap, Gp, Ip, Lp, zp, Sp, Qp, tg, Up, Dp, qp, Tp, qm, sg, Wp, Yp, _m, Op, Np, Fp, kp, Om, ng, jp, $m, Kp, jm, op, cp, Am, ig, Zp, Jp;
|
|
65995
65992
|
const rg = class rg {
|
|
65996
65993
|
constructor(n) {
|
|
65997
|
-
|
|
65998
|
-
|
|
65999
|
-
|
|
66000
|
-
|
|
66001
|
-
|
|
66002
|
-
|
|
66003
|
-
|
|
66004
|
-
|
|
66005
|
-
|
|
66006
|
-
|
|
65994
|
+
Kf(this, Qp);
|
|
65995
|
+
Kf(this, qm);
|
|
65996
|
+
Kf(this, Op);
|
|
65997
|
+
Kf(this, Fp);
|
|
65998
|
+
Kf(this, Om);
|
|
65999
|
+
Kf(this, jp);
|
|
66000
|
+
Kf(this, Kp);
|
|
66001
|
+
Kf(this, op);
|
|
66002
|
+
Kf(this, Am);
|
|
66003
|
+
Kf(this, Zp);
|
|
66007
66004
|
// properties coming in from the options of these, only max and maxSize
|
|
66008
66005
|
// really *need* to be protected. The rest can be modified, as they just
|
|
66009
66006
|
// set defaults for various methods.
|
|
66010
|
-
|
|
66011
|
-
|
|
66012
|
-
|
|
66013
|
-
|
|
66014
|
-
|
|
66007
|
+
Kf(this, wp, void 0);
|
|
66008
|
+
Kf(this, _p, void 0);
|
|
66009
|
+
Kf(this, Vp, void 0);
|
|
66010
|
+
Kf(this, Rp, void 0);
|
|
66011
|
+
Kf(this, $p, void 0);
|
|
66015
66012
|
/**
|
|
66016
66013
|
* {@link LRUCache.OptionsBase.ttl}
|
|
66017
66014
|
*/
|
|
@@ -66073,37 +66070,37 @@ const rg = class rg {
|
|
|
66073
66070
|
*/
|
|
66074
66071
|
Ef(this, "ignoreFetchAbort");
|
|
66075
66072
|
// computed properties
|
|
66076
|
-
|
|
66077
|
-
|
|
66078
|
-
|
|
66079
|
-
|
|
66080
|
-
|
|
66081
|
-
|
|
66082
|
-
|
|
66083
|
-
|
|
66084
|
-
|
|
66085
|
-
|
|
66086
|
-
|
|
66087
|
-
|
|
66088
|
-
|
|
66089
|
-
|
|
66090
|
-
|
|
66091
|
-
|
|
66092
|
-
|
|
66073
|
+
Kf(this, dp, void 0);
|
|
66074
|
+
Kf(this, Mp, void 0);
|
|
66075
|
+
Kf(this, hp, void 0);
|
|
66076
|
+
Kf(this, sp, void 0);
|
|
66077
|
+
Kf(this, $f, void 0);
|
|
66078
|
+
Kf(this, xp, void 0);
|
|
66079
|
+
Kf(this, Ep, void 0);
|
|
66080
|
+
Kf(this, Cp, void 0);
|
|
66081
|
+
Kf(this, mp, void 0);
|
|
66082
|
+
Kf(this, Pp, void 0);
|
|
66083
|
+
Kf(this, yp, void 0);
|
|
66084
|
+
Kf(this, Ap, void 0);
|
|
66085
|
+
Kf(this, Gp, void 0);
|
|
66086
|
+
Kf(this, Ip, void 0);
|
|
66087
|
+
Kf(this, Lp, void 0);
|
|
66088
|
+
Kf(this, zp, void 0);
|
|
66089
|
+
Kf(this, Sp, void 0);
|
|
66093
66090
|
// conditionally set private methods related to TTL
|
|
66094
|
-
|
|
66091
|
+
Kf(this, Up, () => {
|
|
66095
66092
|
});
|
|
66096
|
-
|
|
66093
|
+
Kf(this, Dp, () => {
|
|
66097
66094
|
});
|
|
66098
|
-
|
|
66095
|
+
Kf(this, qp, () => {
|
|
66099
66096
|
});
|
|
66100
66097
|
/* c8 ignore stop */
|
|
66101
|
-
|
|
66102
|
-
|
|
66098
|
+
Kf(this, Tp, () => !1);
|
|
66099
|
+
Kf(this, Wp, (n) => {
|
|
66103
66100
|
});
|
|
66104
|
-
|
|
66101
|
+
Kf(this, Yp, (n, o, s) => {
|
|
66105
66102
|
});
|
|
66106
|
-
|
|
66103
|
+
Kf(this, _m, (n, o, s, c) => {
|
|
66107
66104
|
if (s || c)
|
|
66108
66105
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
66109
66106
|
return 0;
|
|
@@ -67466,17 +67463,17 @@ const useHooks$6 = ({
|
|
|
67466
67463
|
yt.current = new Cartesian2$1(hf.x, hf.y);
|
|
67467
67464
|
return;
|
|
67468
67465
|
}
|
|
67469
|
-
const
|
|
67466
|
+
const mf = new Cartesian2$1(hf.x, hf.y), xf = Cartesian3$1.subtract(Vd, Gd, new Cartesian3$1()), Vf = Cartesian3$1.magnitude(xf), wf = Cartesian3$1.normalize(xf, new Cartesian3$1()), { scaleAmount: Wa, pixelLengthAfterScaling: af } = computeMouseMoveAmount(
|
|
67470
67467
|
c.scene,
|
|
67471
67468
|
{
|
|
67472
67469
|
startPosition: yt.current,
|
|
67473
|
-
endPosition:
|
|
67470
|
+
endPosition: mf
|
|
67474
67471
|
},
|
|
67475
67472
|
Vd,
|
|
67476
67473
|
wf,
|
|
67477
67474
|
Vf
|
|
67478
67475
|
);
|
|
67479
|
-
yt.current =
|
|
67476
|
+
yt.current = mf.clone();
|
|
67480
67477
|
const Xd = Cartesian3$1.normalize(cf, new Cartesian3$1()), gd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), Xd)), pd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), Xd)), Zd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), Xd)), sf = gd && pd && Zd;
|
|
67481
67478
|
if (Wa < 0 && (Xd.x && Xd.y && Xd.y ? af / Math.sqrt(2) : af) < 20)
|
|
67482
67479
|
return;
|
|
@@ -67495,39 +67492,39 @@ const useHooks$6 = ({
|
|
|
67495
67492
|
),
|
|
67496
67493
|
Wa,
|
|
67497
67494
|
new Cartesian3$1()
|
|
67498
|
-
), nf = Cartesian3$1.multiplyByScalar(xf, Wa / 2, new Cartesian3$1()), df = Xd.z < 0,
|
|
67499
|
-
!se &&
|
|
67495
|
+
), nf = Cartesian3$1.multiplyByScalar(xf, Wa / 2, new Cartesian3$1()), df = Xd.z < 0, Cf = Wa > 0;
|
|
67496
|
+
!se && Cf && df && Cartographic$1.fromCartesian(
|
|
67500
67497
|
mn.translation,
|
|
67501
67498
|
void 0,
|
|
67502
67499
|
new Cartographic$1()
|
|
67503
67500
|
).height - mn.scale.z / 2 - Math.abs(nf.z) < 0 && (of.z = 0);
|
|
67504
|
-
const
|
|
67505
|
-
Cartesian3$1.add(mn.scale, of,
|
|
67506
|
-
const
|
|
67501
|
+
const ff = new Cartesian3$1(), Sf = new Cartesian3$1();
|
|
67502
|
+
Cartesian3$1.add(mn.scale, of, ff), Cartesian3$1.add(mn.translation, nf, Sf);
|
|
67503
|
+
const Mf = c == null ? void 0 : c.scene.globe.ellipsoid.cartesianToCartographic(
|
|
67507
67504
|
Sf
|
|
67508
67505
|
);
|
|
67509
67506
|
s == null || s({
|
|
67510
67507
|
layerId: gf,
|
|
67511
67508
|
scale: {
|
|
67512
|
-
width:
|
|
67513
|
-
length:
|
|
67514
|
-
height:
|
|
67509
|
+
width: ff.x,
|
|
67510
|
+
length: ff.y,
|
|
67511
|
+
height: ff.z,
|
|
67515
67512
|
location: {
|
|
67516
|
-
lat: Math$1.toDegrees(
|
|
67517
|
-
lng: Math$1.toDegrees(
|
|
67518
|
-
height:
|
|
67513
|
+
lat: Math$1.toDegrees(Mf == null ? void 0 : Mf.latitude),
|
|
67514
|
+
lng: Math$1.toDegrees(Mf == null ? void 0 : Mf.longitude),
|
|
67515
|
+
height: Mf == null ? void 0 : Mf.height
|
|
67519
67516
|
}
|
|
67520
67517
|
}
|
|
67521
67518
|
}), (Ff = d == null ? void 0 : d.onLayerEdit) == null || Ff.call(d, {
|
|
67522
67519
|
layerId: gf,
|
|
67523
67520
|
scale: {
|
|
67524
|
-
width:
|
|
67525
|
-
length:
|
|
67526
|
-
height:
|
|
67521
|
+
width: ff.x,
|
|
67522
|
+
length: ff.y,
|
|
67523
|
+
height: ff.z,
|
|
67527
67524
|
location: {
|
|
67528
|
-
lat: Math$1.toDegrees(
|
|
67529
|
-
lng: Math$1.toDegrees(
|
|
67530
|
-
height:
|
|
67525
|
+
lat: Math$1.toDegrees(Mf == null ? void 0 : Mf.latitude),
|
|
67526
|
+
lng: Math$1.toDegrees(Mf == null ? void 0 : Mf.longitude),
|
|
67527
|
+
height: Mf == null ? void 0 : Mf.height
|
|
67531
67528
|
}
|
|
67532
67529
|
}
|
|
67533
67530
|
});
|
|
@@ -67554,9 +67551,9 @@ const useHooks$6 = ({
|
|
|
67554
67551
|
ms.current = cf.x;
|
|
67555
67552
|
const gf = 0.05, hf = new HeadingPitchRoll$1(0, 0, 0);
|
|
67556
67553
|
hf.heading = -uf * gf, hf.pitch = 0, hf.roll = 0;
|
|
67557
|
-
const
|
|
67558
|
-
Quaternion$1.multiply(mn.rotation, Quaternion$1.fromHeadingPitchRoll(hf),
|
|
67559
|
-
const { heading: xf, pitch: Vf, roll: wf } = HeadingPitchRoll$1.fromQuaternion(
|
|
67554
|
+
const mf = new Quaternion$1();
|
|
67555
|
+
Quaternion$1.multiply(mn.rotation, Quaternion$1.fromHeadingPitchRoll(hf), mf);
|
|
67556
|
+
const { heading: xf, pitch: Vf, roll: wf } = HeadingPitchRoll$1.fromQuaternion(mf);
|
|
67560
67557
|
s == null || s({
|
|
67561
67558
|
layerId: Gd,
|
|
67562
67559
|
rotate: {
|
|
@@ -71505,8 +71502,8 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71505
71502
|
), gf = useMemo(() => h ? Cartesian3$1.fromDegrees(h[0], h[1], h[2]) : void 0, [h]), hf = useMemo(() => S && h && typeof h[2] == "number" ? [
|
|
71506
71503
|
Cartesian3$1.fromDegrees(h[0], h[1], h[2]),
|
|
71507
71504
|
Cartesian3$1.fromDegrees(h[0], h[1], 0)
|
|
71508
|
-
] : void 0, [h, S]),
|
|
71509
|
-
image:
|
|
71505
|
+
] : void 0, [h, S]), mf = !L || L === "image", [xf, Vf, wf] = useIcon({
|
|
71506
|
+
image: mf ? zi : void 0,
|
|
71510
71507
|
imageSize: Sa,
|
|
71511
71508
|
crop: yt,
|
|
71512
71509
|
shadow: lt,
|
|
@@ -71523,35 +71520,35 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71523
71520
|
), Xd = useMemo(() => {
|
|
71524
71521
|
if (Wa)
|
|
71525
71522
|
return Wa;
|
|
71526
|
-
const
|
|
71523
|
+
const Jf = 15, Wf = (mf ? Vf : P) / 2 + Jf, tp = (mf ? wf : P) / 2 + Jf;
|
|
71527
71524
|
return new Cartesian2$1(
|
|
71528
71525
|
se.includes("left") || se.includes("right") ? Wf * (se.includes("left") ? -1 : 1) : 0,
|
|
71529
71526
|
se.includes("top") || se.includes("bottom") ? tp * (se.includes("top") ? -1 : 1) : 0
|
|
71530
71527
|
);
|
|
71531
|
-
}, [
|
|
71528
|
+
}, [mf, Vf, P, wf, se, Wa]), gd = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), pd = useRef(null), Zd = getTag((Hf = pd.current) == null ? void 0 : Hf.cesiumElement), sf = useMemo(
|
|
71532
71529
|
() => {
|
|
71533
|
-
var
|
|
71530
|
+
var Jf, Wf;
|
|
71534
71531
|
return toColor$1(
|
|
71535
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71532
|
+
Zd != null && Zd.isFeatureSelected && typeof ((Jf = c == null ? void 0 : c.marker) == null ? void 0 : Jf.selectedFeatureColor) == "string" ? (Wf = c.marker) == null ? void 0 : Wf.selectedFeatureColor : ma
|
|
71536
71533
|
);
|
|
71537
71534
|
},
|
|
71538
71535
|
[ma, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
71539
71536
|
), of = useMemo(
|
|
71540
71537
|
() => {
|
|
71541
|
-
var
|
|
71538
|
+
var Jf, Wf;
|
|
71542
71539
|
return toColor$1(
|
|
71543
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71540
|
+
Zd != null && Zd.isFeatureSelected && typeof ((Jf = c == null ? void 0 : c.marker) == null ? void 0 : Jf.selectedFeatureColor) == "string" ? (Wf = c.marker) == null ? void 0 : Wf.selectedFeatureColor : F
|
|
71544
71541
|
);
|
|
71545
71542
|
},
|
|
71546
71543
|
[F, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
71547
|
-
), nf = useMemo(() => toColor$1(N), [N]), df = useMemo(() => toColor$1(nt == null ? void 0 : nt.color), [nt == null ? void 0 : nt.color]),
|
|
71544
|
+
), nf = useMemo(() => toColor$1(N), [N]), df = useMemo(() => toColor$1(nt == null ? void 0 : nt.color), [nt == null ? void 0 : nt.color]), Cf = useMemo(
|
|
71548
71545
|
() => toColor$1(kt),
|
|
71549
71546
|
[kt]
|
|
71550
|
-
),
|
|
71547
|
+
), ff = useMemo(
|
|
71551
71548
|
// https://cesium.com/learn/cesiumjs/ref-doc/LabelGraphics.html?classFilter=labelgra#backgroundPadding
|
|
71552
71549
|
() => new Cartesian2$1(mn || 7, pi || 5),
|
|
71553
71550
|
[mn, pi]
|
|
71554
|
-
), Sf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]),
|
|
71551
|
+
), Sf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]), Mf = useMemo(
|
|
71555
71552
|
() => toDistanceDisplayCondition(t == null ? void 0 : t.near, t == null ? void 0 : t.far),
|
|
71556
71553
|
[t == null ? void 0 : t.near, t == null ? void 0 : t.far]
|
|
71557
71554
|
), Ff = useMemo(() => String(Pe), [Pe]);
|
|
@@ -71573,7 +71570,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71573
71570
|
positions: hf,
|
|
71574
71571
|
material: gd,
|
|
71575
71572
|
width: 0.5,
|
|
71576
|
-
distanceDisplayCondition:
|
|
71573
|
+
distanceDisplayCondition: Mf
|
|
71577
71574
|
}
|
|
71578
71575
|
)
|
|
71579
71576
|
}
|
|
@@ -71599,7 +71596,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71599
71596
|
outlineColor: nf,
|
|
71600
71597
|
outlineWidth: z,
|
|
71601
71598
|
heightReference: heightReference(pu),
|
|
71602
|
-
distanceDisplayCondition:
|
|
71599
|
+
distanceDisplayCondition: Mf
|
|
71603
71600
|
}
|
|
71604
71601
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71605
71602
|
gs$1,
|
|
@@ -71609,7 +71606,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71609
71606
|
horizontalOrigin: ho$1(La),
|
|
71610
71607
|
verticalOrigin: vo$1(Ra),
|
|
71611
71608
|
heightReference: heightReference(pu),
|
|
71612
|
-
distanceDisplayCondition:
|
|
71609
|
+
distanceDisplayCondition: Mf,
|
|
71613
71610
|
sizeInMeters: fa,
|
|
71614
71611
|
pixelOffset: Wa,
|
|
71615
71612
|
eyeOffset: af
|
|
@@ -71625,10 +71622,10 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71625
71622
|
font: toCSSFont(nt, { fontSize: 30 }),
|
|
71626
71623
|
text: Ff,
|
|
71627
71624
|
showBackground: mt,
|
|
71628
|
-
backgroundColor:
|
|
71629
|
-
backgroundPadding:
|
|
71625
|
+
backgroundColor: Cf,
|
|
71626
|
+
backgroundPadding: ff,
|
|
71630
71627
|
heightReference: heightReference(pu),
|
|
71631
|
-
distanceDisplayCondition:
|
|
71628
|
+
distanceDisplayCondition: Mf
|
|
71632
71629
|
}
|
|
71633
71630
|
)
|
|
71634
71631
|
]
|
|
@@ -71728,7 +71725,7 @@ function Model({
|
|
|
71728
71725
|
layer: d,
|
|
71729
71726
|
feature: h
|
|
71730
71727
|
}) {
|
|
71731
|
-
var uf, gf, hf,
|
|
71728
|
+
var uf, gf, hf, mf, xf, Vf;
|
|
71732
71729
|
const p = extractSimpleLayerData(d), y = (p == null ? void 0 : p.type) === "gltf", S = useMemo(
|
|
71733
71730
|
() => (c == null ? void 0 : c.type) === "Point" ? c.coordinates : o != null && o.location ? [o.location.lng, o.location.lat, o.height ?? 0] : void 0,
|
|
71734
71731
|
[c == null ? void 0 : c.coordinates, c == null ? void 0 : c.type, o == null ? void 0 : o.height, o == null ? void 0 : o.location]
|
|
@@ -71771,12 +71768,12 @@ function Model({
|
|
|
71771
71768
|
() => toDistanceDisplayCondition(o == null ? void 0 : o.near, o == null ? void 0 : o.far),
|
|
71772
71769
|
[o == null ? void 0 : o.near, o == null ? void 0 : o.far]
|
|
71773
71770
|
), Ru = useMemo(() => {
|
|
71774
|
-
var gd, pd, Zd, sf, of, nf, df,
|
|
71771
|
+
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf;
|
|
71775
71772
|
const wf = new ImageBasedLighting();
|
|
71776
71773
|
if (!(o != null && o.specularEnvironmentMaps) && !(o != null && o.sphericalHarmonicCoefficients) && !((pd = (gd = s == null ? void 0 : s.scene) == null ? void 0 : gd.imageBasedLighting) != null && pd.specularEnvironmentMaps) && !((sf = (Zd = s == null ? void 0 : s.scene) == null ? void 0 : Zd.imageBasedLighting) != null && sf.sphericalHarmonicCoefficients))
|
|
71777
71774
|
return wf;
|
|
71778
|
-
const Wa = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((nf = (of = s == null ? void 0 : s.scene) == null ? void 0 : of.imageBasedLighting) == null ? void 0 : nf.specularEnvironmentMaps), af = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((
|
|
71779
|
-
(o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((Sf = (
|
|
71775
|
+
const Wa = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((nf = (of = s == null ? void 0 : s.scene) == null ? void 0 : of.imageBasedLighting) == null ? void 0 : nf.specularEnvironmentMaps), af = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((Cf = (df = s == null ? void 0 : s.scene) == null ? void 0 : df.imageBasedLighting) == null ? void 0 : Cf.intensity), Xd = arrayToCartecian3(
|
|
71776
|
+
(o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((Sf = (ff = s == null ? void 0 : s.scene) == null ? void 0 : ff.imageBasedLighting) == null ? void 0 : Sf.sphericalHarmonicCoefficients),
|
|
71780
71777
|
af
|
|
71781
71778
|
);
|
|
71782
71779
|
return Wa && (wf.specularEnvironmentMaps = Wa), Xd && (wf.sphericalHarmonicCoefficients = Xd), wf;
|
|
@@ -71785,7 +71782,7 @@ function Model({
|
|
|
71785
71782
|
o == null ? void 0 : o.sphericalHarmonicCoefficients,
|
|
71786
71783
|
o == null ? void 0 : o.imageBasedLightIntensity,
|
|
71787
71784
|
(gf = (uf = s == null ? void 0 : s.scene) == null ? void 0 : uf.imageBasedLighting) == null ? void 0 : gf.specularEnvironmentMaps,
|
|
71788
|
-
(
|
|
71785
|
+
(mf = (hf = s == null ? void 0 : s.scene) == null ? void 0 : hf.imageBasedLighting) == null ? void 0 : mf.sphericalHarmonicCoefficients,
|
|
71789
71786
|
(Vf = (xf = s == null ? void 0 : s.scene) == null ? void 0 : xf.imageBasedLighting) == null ? void 0 : Vf.intensity
|
|
71790
71787
|
]), { viewer: Vd } = $e$1(), { requestRender: Gd } = useContext(), cf = useRef(!1);
|
|
71791
71788
|
return useSceneEvent("postRender", () => {
|
|
@@ -81985,9 +81982,9 @@ const BUILTIN_BOX_SIDE_PLANES = [
|
|
|
81985
81982
|
if (W.current) {
|
|
81986
81983
|
const Nl = (Pe == null ? void 0 : Pe[2]) || 0, Ru = (() => {
|
|
81987
81984
|
if (!c) {
|
|
81988
|
-
const
|
|
81989
|
-
if (
|
|
81990
|
-
return Nl + (xf -
|
|
81985
|
+
const mf = Nl - ((mt == null ? void 0 : mt.height) || 0) / 2, xf = La.current;
|
|
81986
|
+
if (mf < xf)
|
|
81987
|
+
return Nl + (xf - mf);
|
|
81991
81988
|
}
|
|
81992
81989
|
})(), Vd = new Cartesian2$1(yu.startPosition.x, yu.startPosition.y), Gd = new Cartesian2$1(yu.endPosition.x, yu.endPosition.y), cf = Cartesian2$1.subtract(
|
|
81993
81990
|
Gd,
|
|
@@ -82002,10 +81999,10 @@ const BUILTIN_BOX_SIDE_PLANES = [
|
|
|
82002
81999
|
pu,
|
|
82003
82000
|
uf
|
|
82004
82001
|
), hf = Cartesian3$1.multiplyByScalar(uf, gf, new Cartesian3$1());
|
|
82005
|
-
se((
|
|
82006
|
-
(
|
|
82007
|
-
(
|
|
82008
|
-
(Ru || (
|
|
82002
|
+
se((mf) => [
|
|
82003
|
+
(mf == null ? void 0 : mf[0]) || 0,
|
|
82004
|
+
(mf == null ? void 0 : mf[1]) || 0,
|
|
82005
|
+
(Ru || (mf == null ? void 0 : mf[2]) || 0) + hf.z
|
|
82009
82006
|
]);
|
|
82010
82007
|
} else {
|
|
82011
82008
|
const Nl = yu.endPosition ? getLocationFromScreen(N.scene, yu.endPosition.x, yu.endPosition.y, !c) : void 0;
|
|
@@ -82441,7 +82438,7 @@ const useDrawClipping = ({
|
|
|
82441
82438
|
onComputedFeatureFetch: y,
|
|
82442
82439
|
onLayerFetch: S
|
|
82443
82440
|
}) => {
|
|
82444
|
-
var Ff, Hf,
|
|
82441
|
+
var Ff, Hf, Jf, Wf, tp, vf;
|
|
82445
82442
|
const { viewer: P } = $e$1(), L = useRef(), { onLayerLoad: F, updateCredits: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
|
|
82446
82443
|
z.current = d == null ? void 0 : d.id;
|
|
82447
82444
|
const {
|
|
@@ -82467,21 +82464,21 @@ const useDrawClipping = ({
|
|
|
82467
82464
|
builtinBoxProps: Sc,
|
|
82468
82465
|
allowEnterGround: ms
|
|
82469
82466
|
} = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: pu, type: Nl, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [cf, uf] = useState(!1), gf = useRef(lt), hf = useMemo(() => {
|
|
82470
|
-
var
|
|
82471
|
-
return (!((
|
|
82467
|
+
var pf, Lf;
|
|
82468
|
+
return (!((pf = gf.current) != null && pf.length) || !((Lf = gf.current) != null && Lf.every(
|
|
82472
82469
|
(Df, kf) => {
|
|
82473
82470
|
var Yf, Qf, Zf, np, qf, ip;
|
|
82474
82471
|
return ((Yf = Df.normal) == null ? void 0 : Yf.x) === ((Qf = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : Qf.x) && ((Zf = Df.normal) == null ? void 0 : Zf.y) === ((np = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : np.y) && ((qf = Df.normal) == null ? void 0 : qf.z) === ((ip = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : ip.z) && Df.distance === (lt == null ? void 0 : lt[kf].distance);
|
|
82475
82472
|
}
|
|
82476
82473
|
))) && (gf.current = lt), gf.current;
|
|
82477
|
-
}, [lt]),
|
|
82474
|
+
}, [lt]), mf = ba === "inside" ? -1 : 1, [xf, Vf] = useState(
|
|
82478
82475
|
() => new ClippingPlaneCollection({
|
|
82479
82476
|
planes: hf == null ? void 0 : hf.map(
|
|
82480
|
-
(
|
|
82477
|
+
(pf) => {
|
|
82481
82478
|
var Lf, Df, kf;
|
|
82482
82479
|
return new ClippingPlane(
|
|
82483
|
-
new Cartesian3$1((Lf =
|
|
82484
|
-
(
|
|
82480
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82481
|
+
(pf.distance || 0) * mf
|
|
82485
82482
|
);
|
|
82486
82483
|
}
|
|
82487
82484
|
),
|
|
@@ -82495,11 +82492,11 @@ const useDrawClipping = ({
|
|
|
82495
82492
|
Vf(
|
|
82496
82493
|
new ClippingPlaneCollection({
|
|
82497
82494
|
planes: hf == null ? void 0 : hf.map(
|
|
82498
|
-
(
|
|
82495
|
+
(pf) => {
|
|
82499
82496
|
var Lf, Df, kf;
|
|
82500
82497
|
return new ClippingPlane(
|
|
82501
|
-
new Cartesian3$1((Lf =
|
|
82502
|
-
(
|
|
82498
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82499
|
+
(pf.distance || 0) * mf
|
|
82503
82500
|
);
|
|
82504
82501
|
}
|
|
82505
82502
|
),
|
|
@@ -82519,12 +82516,12 @@ const useDrawClipping = ({
|
|
|
82519
82516
|
clippingPlanes: xf,
|
|
82520
82517
|
isTilesetReady: cf
|
|
82521
82518
|
}), [af] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
|
|
82522
|
-
(
|
|
82523
|
-
|
|
82519
|
+
(pf) => {
|
|
82520
|
+
pf != null && pf.cesiumElement && attachTag(pf.cesiumElement, {
|
|
82524
82521
|
layerId: (d == null ? void 0 : d.id) || t,
|
|
82525
82522
|
featureIndex: Gd ? af : void 0,
|
|
82526
82523
|
appearanceType: "3dtiles"
|
|
82527
|
-
}), d != null && d.id && (
|
|
82524
|
+
}), d != null && d.id && (pf != null && pf.cesiumElement) && ((pf == null ? void 0 : pf.cesiumElement)[layerIdField] = d.id), L.current = pf == null ? void 0 : pf.cesiumElement;
|
|
82528
82525
|
},
|
|
82529
82526
|
[t, d == null ? void 0 : d.id, af, Gd]
|
|
82530
82527
|
), gd = useRef([]), pd = useRef(kt);
|
|
@@ -82532,15 +82529,15 @@ const useDrawClipping = ({
|
|
|
82532
82529
|
const [Zd] = useState(() => /* @__PURE__ */ new Map());
|
|
82533
82530
|
useEffect(() => {
|
|
82534
82531
|
!L.current || !Gd || !cf || Object.assign(L.current, {
|
|
82535
|
-
onSelectFeature: (
|
|
82536
|
-
const Lf = getTag(
|
|
82537
|
-
Lf != null && Lf.featureId && (gd.current.push(Lf.featureId), Zd.set(Lf.featureId,
|
|
82532
|
+
onSelectFeature: (pf) => {
|
|
82533
|
+
const Lf = getTag(pf);
|
|
82534
|
+
Lf != null && Lf.featureId && (gd.current.push(Lf.featureId), Zd.set(Lf.featureId, pf.color)), pd.current && (pf.color = toColor(pd.current) ?? pf.color);
|
|
82538
82535
|
},
|
|
82539
|
-
onUnselectFeature: (
|
|
82540
|
-
const Lf = getTag(
|
|
82536
|
+
onUnselectFeature: (pf) => {
|
|
82537
|
+
const Lf = getTag(pf);
|
|
82541
82538
|
Lf != null && Lf.featureId && (gd.current = gd.current.filter(
|
|
82542
82539
|
(Df) => Df !== Lf.featureId
|
|
82543
|
-
)),
|
|
82540
|
+
)), pf.color = Zd.get((Lf == null ? void 0 : Lf.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
|
|
82544
82541
|
}
|
|
82545
82542
|
});
|
|
82546
82543
|
}, [Zd, af, Gd, cf]), useFeature({
|
|
@@ -82557,8 +82554,8 @@ const useDrawClipping = ({
|
|
|
82557
82554
|
isTilesetReady: cf
|
|
82558
82555
|
});
|
|
82559
82556
|
const [sf, of] = useState(0), nf = useRef(!1), df = useCallback(
|
|
82560
|
-
(
|
|
82561
|
-
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene,
|
|
82557
|
+
(pf) => {
|
|
82558
|
+
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, pf).then((Lf) => {
|
|
82562
82559
|
of(Lf ?? 0), nf.current = !1;
|
|
82563
82560
|
}));
|
|
82564
82561
|
},
|
|
@@ -82567,7 +82564,7 @@ const useDrawClipping = ({
|
|
|
82567
82564
|
useEffect(() => {
|
|
82568
82565
|
if (mt != null && mt.draw)
|
|
82569
82566
|
return;
|
|
82570
|
-
const
|
|
82567
|
+
const pf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Lf = Cartesian3$1.fromDegrees((pf == null ? void 0 : pf[0]) || 0, (pf == null ? void 0 : pf[1]) || 0, (pf == null ? void 0 : pf[2]) || 0);
|
|
82571
82568
|
(async () => {
|
|
82572
82569
|
if (!L.current || !cf)
|
|
82573
82570
|
return;
|
|
@@ -82604,60 +82601,60 @@ const useDrawClipping = ({
|
|
|
82604
82601
|
mt != null && mt.draw || (xf.unionClippingRegions = ba === "outside");
|
|
82605
82602
|
}, [xf, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
|
|
82606
82603
|
mt != null && mt.draw || (xf.removeAll(), hf == null || hf.forEach(
|
|
82607
|
-
(
|
|
82604
|
+
(pf) => {
|
|
82608
82605
|
var Lf, Df, kf;
|
|
82609
82606
|
return xf.add(
|
|
82610
82607
|
new ClippingPlane(
|
|
82611
|
-
new Cartesian3$1((Lf =
|
|
82612
|
-
(
|
|
82608
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82609
|
+
(pf.distance || 0) * mf
|
|
82613
82610
|
)
|
|
82614
82611
|
);
|
|
82615
82612
|
}
|
|
82616
82613
|
));
|
|
82617
|
-
}, [hf, xf,
|
|
82614
|
+
}, [hf, xf, mf, mt == null ? void 0 : mt.draw]), useEffect(() => {
|
|
82618
82615
|
if (!nt) {
|
|
82619
82616
|
yu(void 0);
|
|
82620
82617
|
return;
|
|
82621
82618
|
}
|
|
82622
82619
|
(async () => {
|
|
82623
|
-
const
|
|
82624
|
-
|
|
82620
|
+
const pf = await fetch(nt);
|
|
82621
|
+
pf.ok && yu(new Cesium3DTileStyle(await pf.json()));
|
|
82625
82622
|
})();
|
|
82626
82623
|
}, [nt]);
|
|
82627
|
-
const
|
|
82624
|
+
const Cf = useMemo(() => Nl !== "google-photorealistic" || !o ? null : (async () => {
|
|
82628
82625
|
try {
|
|
82629
82626
|
return (await createGooglePhotorealistic3DTileset(Vd)).resource;
|
|
82630
82627
|
} catch (Lf) {
|
|
82631
82628
|
throw console.error(`Error loading Photorealistic 3D Tiles tileset: ${Lf}`), Lf;
|
|
82632
82629
|
}
|
|
82633
|
-
})(), [Nl, o, Vd]),
|
|
82630
|
+
})(), [Nl, o, Vd]), ff = useMemo(() => Nl === "osm-buildings" && o ? IonResource.fromAssetId(96188, {
|
|
82634
82631
|
accessToken: h == null ? void 0 : h.cesiumIonAccessToken
|
|
82635
|
-
}) :
|
|
82636
|
-
var Yf, Qf, Zf, np, qf, ip, rp, _f, rf,
|
|
82632
|
+
}) : Cf && o ? Cf : Nl === "3dtiles" && o ? pu ?? W : null, [Nl, o, h == null ? void 0 : h.cesiumIonAccessToken, Cf, pu, W]), Sf = useMemo(() => {
|
|
82633
|
+
var Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf;
|
|
82637
82634
|
if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((Qf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) != null && Qf.specularEnvironmentMaps) && !((np = (Zf = c == null ? void 0 : c.scene) == null ? void 0 : Zf.imageBasedLighting) != null && np.sphericalHarmonicCoefficients))
|
|
82638
82635
|
return;
|
|
82639
|
-
const
|
|
82640
|
-
(s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((
|
|
82636
|
+
const pf = new ImageBasedLighting(), Lf = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Df = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((_f = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : _f.intensity), kf = arrayToCartecian3(
|
|
82637
|
+
(s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((bf = (rf = c == null ? void 0 : c.scene) == null ? void 0 : rf.imageBasedLighting) == null ? void 0 : bf.sphericalHarmonicCoefficients),
|
|
82641
82638
|
Df
|
|
82642
82639
|
);
|
|
82643
|
-
return Lf && (
|
|
82640
|
+
return Lf && (pf.specularEnvironmentMaps = Lf), kf && (pf.sphericalHarmonicCoefficients = kf), pf;
|
|
82644
82641
|
}, [
|
|
82645
82642
|
s == null ? void 0 : s.specularEnvironmentMaps,
|
|
82646
82643
|
s == null ? void 0 : s.sphericalHarmonicCoefficients,
|
|
82647
82644
|
s == null ? void 0 : s.imageBasedLightIntensity,
|
|
82648
82645
|
(Hf = (Ff = c == null ? void 0 : c.scene) == null ? void 0 : Ff.imageBasedLighting) == null ? void 0 : Hf.specularEnvironmentMaps,
|
|
82649
|
-
(Wf = (
|
|
82650
|
-
(
|
|
82651
|
-
]),
|
|
82652
|
-
(
|
|
82653
|
-
uf(!0), S == null || S({ properties:
|
|
82646
|
+
(Wf = (Jf = c == null ? void 0 : c.scene) == null ? void 0 : Jf.imageBasedLighting) == null ? void 0 : Wf.sphericalHarmonicCoefficients,
|
|
82647
|
+
(vf = (tp = c == null ? void 0 : c.scene) == null ? void 0 : tp.imageBasedLighting) == null ? void 0 : vf.intensity
|
|
82648
|
+
]), Mf = useCallback(
|
|
82649
|
+
(pf) => {
|
|
82650
|
+
uf(!0), S == null || S({ properties: pf.properties }), F == null || F({ layerId: z.current });
|
|
82654
82651
|
},
|
|
82655
82652
|
[S, F]
|
|
82656
82653
|
);
|
|
82657
82654
|
return useEffect(() => (N == null || N(), () => {
|
|
82658
82655
|
N == null || N();
|
|
82659
82656
|
}), [Nl, N]), {
|
|
82660
|
-
tilesetUrl:
|
|
82657
|
+
tilesetUrl: ff,
|
|
82661
82658
|
ref: Xd,
|
|
82662
82659
|
style: Xs,
|
|
82663
82660
|
clippingPlanes: xf,
|
|
@@ -82665,7 +82662,7 @@ const useDrawClipping = ({
|
|
|
82665
82662
|
drawClippingEdgeProps: Wa,
|
|
82666
82663
|
builtinBoxProps: Sc,
|
|
82667
82664
|
imageBasedLighting: Sf,
|
|
82668
|
-
handleReady:
|
|
82665
|
+
handleReady: Mf
|
|
82669
82666
|
};
|
|
82670
82667
|
};
|
|
82671
82668
|
function Tileset({
|
|
@@ -84708,7 +84705,7 @@ const useIBL = ({
|
|
|
84708
84705
|
onMount: fa,
|
|
84709
84706
|
onCreditsUpdate: La
|
|
84710
84707
|
}) => {
|
|
84711
|
-
var of, nf, df,
|
|
84708
|
+
var of, nf, df, Cf, ff, Sf, Mf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp;
|
|
84712
84709
|
const Ra = useRef(null), ma = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, yt = useEngineRef(t, Ra), lt = useLayerSelectWithRect({
|
|
84713
84710
|
cesium: Ra,
|
|
84714
84711
|
engineAPI: yt,
|
|
@@ -84730,7 +84727,7 @@ const useIBL = ({
|
|
|
84730
84727
|
normalShading: !0,
|
|
84731
84728
|
normalShadingSmooth: 0.3,
|
|
84732
84729
|
depthBias: 1e-4
|
|
84733
|
-
},
|
|
84730
|
+
}, bf = {
|
|
84734
84731
|
polygonOffsetFactor: 1.1,
|
|
84735
84732
|
polygonOffsetUnits: 4,
|
|
84736
84733
|
normalOffsetScale: 0.1 * 100,
|
|
@@ -84745,12 +84742,12 @@ const useIBL = ({
|
|
|
84745
84742
|
normalShadingSmooth: 0.1,
|
|
84746
84743
|
depthBias: 5e-4
|
|
84747
84744
|
};
|
|
84748
|
-
_f._terrainBias && Object.assign(_f._terrainBias, rf), _f._primitiveBias && Object.assign(_f._primitiveBias,
|
|
84745
|
+
_f._terrainBias && Object.assign(_f._terrainBias, rf), _f._primitiveBias && Object.assign(_f._primitiveBias, bf), _f._pointBias && Object.assign(_f._pointBias, Pf);
|
|
84749
84746
|
}, [
|
|
84750
84747
|
(df = (nf = (of = n == null ? void 0 : n.scene) == null ? void 0 : of.shadow) == null ? void 0 : nf.shadowMap) == null ? void 0 : df.softShadows,
|
|
84751
|
-
(Sf = (
|
|
84752
|
-
(Hf = (Ff = (
|
|
84753
|
-
(tp = (Wf = (
|
|
84748
|
+
(Sf = (ff = (Cf = n == null ? void 0 : n.scene) == null ? void 0 : Cf.shadow) == null ? void 0 : ff.shadowMap) == null ? void 0 : Sf.darkness,
|
|
84749
|
+
(Hf = (Ff = (Mf = n == null ? void 0 : n.scene) == null ? void 0 : Mf.shadow) == null ? void 0 : Ff.shadowMap) == null ? void 0 : Hf.size,
|
|
84750
|
+
(tp = (Wf = (Jf = n == null ? void 0 : n.scene) == null ? void 0 : Jf.shadow) == null ? void 0 : Wf.shadowMap) == null ? void 0 : tp.maximumDistance
|
|
84754
84751
|
]);
|
|
84755
84752
|
const _i = useRef(), ba = useRef();
|
|
84756
84753
|
useEffect(() => {
|
|
@@ -84761,11 +84758,11 @@ const useIBL = ({
|
|
|
84761
84758
|
const rf = getTag(_i.current);
|
|
84762
84759
|
if (!(rf != null && rf.featureId) && (rf != null && rf.layerId) && (s != null && s.layerId) && (rf == null ? void 0 : rf.layerId) === s.layerId || rf != null && rf.featureId && (s != null && s.featureId) && (rf == null ? void 0 : rf.featureId) === s.featureId)
|
|
84763
84760
|
return;
|
|
84764
|
-
const
|
|
84765
|
-
if (_i.current ===
|
|
84761
|
+
const bf = findEntity(_f, void 0, s == null ? void 0 : s.featureId) || findEntity(_f, s == null ? void 0 : s.layerId);
|
|
84762
|
+
if (_i.current === bf)
|
|
84766
84763
|
return;
|
|
84767
|
-
const Pf = getTag(
|
|
84768
|
-
if (
|
|
84764
|
+
const Pf = getTag(bf);
|
|
84765
|
+
if (bf instanceof Entity$2 && !(Pf != null && Pf.hideIndicator) ? _f.selectedEntity = bf : _f.selectedEntity = void 0, _i.current = bf, !bf && (s != null && s.featureId)) {
|
|
84769
84766
|
const tf = [], lf = (Bf = h == null ? void 0 : h.current) == null ? void 0 : Bf.findAll(
|
|
84770
84767
|
(yf) => {
|
|
84771
84768
|
var If, Of;
|
|
@@ -84776,27 +84773,27 @@ const useIBL = ({
|
|
|
84776
84773
|
const [yf, If] = (() => {
|
|
84777
84774
|
var Of;
|
|
84778
84775
|
for (const Tf of lf) {
|
|
84779
|
-
const
|
|
84776
|
+
const Rf = (Of = Tf.computed) == null ? void 0 : Of.features.find(
|
|
84780
84777
|
(Af) => Af.id !== (s == null ? void 0 : s.featureId)
|
|
84781
84778
|
);
|
|
84782
|
-
if (
|
|
84783
|
-
return [
|
|
84779
|
+
if (Rf)
|
|
84780
|
+
return [Rf, Tf.id];
|
|
84784
84781
|
}
|
|
84785
84782
|
})() || [];
|
|
84786
84783
|
W == null || W(If, yf == null ? void 0 : yf.id);
|
|
84787
84784
|
}
|
|
84788
84785
|
}
|
|
84789
84786
|
if (!(Pf != null && Pf.unselectable)) {
|
|
84790
|
-
if (
|
|
84791
|
-
const tf = getTag(
|
|
84787
|
+
if (bf && bf instanceof Cesium3DTileFeature) {
|
|
84788
|
+
const tf = getTag(bf);
|
|
84792
84789
|
if (tf) {
|
|
84793
|
-
const lf = tileProperties(
|
|
84790
|
+
const lf = tileProperties(bf);
|
|
84794
84791
|
W == null || W(
|
|
84795
84792
|
tf.layerId,
|
|
84796
84793
|
String(tf.featureId),
|
|
84797
84794
|
lf.length ? {
|
|
84798
84795
|
defaultInfobox: {
|
|
84799
|
-
title:
|
|
84796
|
+
title: bf.getProperty("name"),
|
|
84800
84797
|
content: {
|
|
84801
84798
|
type: "table",
|
|
84802
84799
|
value: lf
|
|
@@ -84808,16 +84805,16 @@ const useIBL = ({
|
|
|
84808
84805
|
}
|
|
84809
84806
|
return;
|
|
84810
84807
|
}
|
|
84811
|
-
if (
|
|
84808
|
+
if (bf) {
|
|
84812
84809
|
const tf = Pf != null && Pf.layerId ? ((ep = h == null ? void 0 : h.current) == null ? void 0 : ep.overriddenLayers().find((lf) => lf.id === Pf.layerId)) ?? ((ap = h == null ? void 0 : h.current) == null ? void 0 : ap.findById(Pf.layerId)) : void 0;
|
|
84813
84810
|
W == null || W(
|
|
84814
84811
|
Pf == null ? void 0 : Pf.layerId,
|
|
84815
84812
|
Pf == null ? void 0 : Pf.featureId,
|
|
84816
|
-
|
|
84813
|
+
bf instanceof Entity$2 && (bf.description || bf.properties) ? {
|
|
84817
84814
|
defaultInfobox: {
|
|
84818
|
-
title:
|
|
84815
|
+
title: bf.name,
|
|
84819
84816
|
content: getEntityContent(
|
|
84820
|
-
|
|
84817
|
+
bf,
|
|
84821
84818
|
((fp = (up = Ra.current) == null ? void 0 : up.cesiumElement) == null ? void 0 : fp.clock.currentTime) ?? new JulianDate$1(),
|
|
84822
84819
|
Pf != null && Pf.layerId ? (al = (pp = tf == null ? void 0 : tf.infobox) == null ? void 0 : pp.property) == null ? void 0 : al.defaultContent : void 0
|
|
84823
84820
|
)
|
|
@@ -84829,14 +84826,14 @@ const useIBL = ({
|
|
|
84829
84826
|
}, [Ra, s, W, h, p]);
|
|
84830
84827
|
const Sc = useMemo(
|
|
84831
84828
|
() => {
|
|
84832
|
-
var _f, rf,
|
|
84829
|
+
var _f, rf, bf, Pf, Uf, Bf;
|
|
84833
84830
|
return (rf = (_f = n == null ? void 0 : n.scene) == null ? void 0 : _f.imageBasedLighting) != null && rf.sphericalHarmonicCoefficients ? arrayToCartecian3(
|
|
84834
|
-
(Pf = (
|
|
84831
|
+
(Pf = (bf = n == null ? void 0 : n.scene) == null ? void 0 : bf.imageBasedLighting) == null ? void 0 : Pf.sphericalHarmonicCoefficients,
|
|
84835
84832
|
(Bf = (Uf = n == null ? void 0 : n.scene) == null ? void 0 : Uf.imageBasedLighting) == null ? void 0 : Bf.intensity
|
|
84836
84833
|
) : void 0;
|
|
84837
84834
|
},
|
|
84838
84835
|
[
|
|
84839
|
-
(
|
|
84836
|
+
(pf = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.imageBasedLighting) == null ? void 0 : pf.sphericalHarmonicCoefficients,
|
|
84840
84837
|
(Df = (Lf = n == null ? void 0 : n.scene) == null ? void 0 : Lf.imageBasedLighting) == null ? void 0 : Df.intensity
|
|
84841
84838
|
]
|
|
84842
84839
|
);
|
|
@@ -84850,7 +84847,7 @@ const useIBL = ({
|
|
|
84850
84847
|
terrain: n == null ? void 0 : n.terrain
|
|
84851
84848
|
});
|
|
84852
84849
|
const ms = useCallback(
|
|
84853
|
-
(_f, rf,
|
|
84850
|
+
(_f, rf, bf) => {
|
|
84854
84851
|
var Pf, Uf;
|
|
84855
84852
|
if (((Pf = yt.mouseEventCallbacks[_f]) == null ? void 0 : Pf.length) > 0) {
|
|
84856
84853
|
const Bf = (Uf = Ra.current) == null ? void 0 : Uf.cesiumElement;
|
|
@@ -84859,7 +84856,7 @@ const useIBL = ({
|
|
|
84859
84856
|
const ep = makeMouseEventProps(Bf, rf);
|
|
84860
84857
|
if (!ep)
|
|
84861
84858
|
return;
|
|
84862
|
-
const ap = getLayerId(
|
|
84859
|
+
const ap = getLayerId(bf);
|
|
84863
84860
|
ap && (ep.layerId = ap), yt.mouseEventCallbacks[_f].forEach((up) => up(ep));
|
|
84864
84861
|
}
|
|
84865
84862
|
},
|
|
@@ -84889,21 +84886,21 @@ const useIBL = ({
|
|
|
84889
84886
|
}
|
|
84890
84887
|
};
|
|
84891
84888
|
return Object.keys(_f).forEach((rf) => {
|
|
84892
|
-
rf !== "wheel" && (_f[rf] = (
|
|
84893
|
-
ms(rf,
|
|
84889
|
+
rf !== "wheel" && (_f[rf] = (bf, Pf) => {
|
|
84890
|
+
ms(rf, bf, Pf);
|
|
84894
84891
|
});
|
|
84895
84892
|
}), _f;
|
|
84896
84893
|
}, [ms, Xs]), pu = useCallback(
|
|
84897
84894
|
async (_f, rf) => {
|
|
84898
|
-
var Bf, ep, ap, up, fp, pp, al, tf, lf, yf, If, Of, Tf,
|
|
84895
|
+
var Bf, ep, ap, up, fp, pp, al, tf, lf, yf, If, Of, Tf, Rf;
|
|
84899
84896
|
if ((Bf = yu.click) == null || Bf.call(yu, _f, rf), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
|
|
84900
84897
|
return;
|
|
84901
|
-
const
|
|
84902
|
-
if (!
|
|
84898
|
+
const bf = (ep = Ra.current) == null ? void 0 : ep.cesiumElement;
|
|
84899
|
+
if (!bf || bf.isDestroyed())
|
|
84903
84900
|
return;
|
|
84904
84901
|
ba.current = void 0;
|
|
84905
|
-
const Pf = findEntity(
|
|
84906
|
-
if ((!Pf || Pf instanceof Entity$2 && (Uf != null && Uf.hideIndicator)) && (
|
|
84902
|
+
const Pf = findEntity(bf, void 0, s == null ? void 0 : s.featureId) || findEntity(bf, s == null ? void 0 : s.layerId), Uf = getTag(Pf);
|
|
84903
|
+
if ((!Pf || Pf instanceof Entity$2 && (Uf != null && Uf.hideIndicator)) && (bf.selectedEntity = void 0), rf && "id" in rf && rf.id instanceof Entity$2 && isSelectable(rf.id)) {
|
|
84907
84904
|
const Af = getTag(rf.id), Gf = Af != null && Af.layerId ? ((ap = h == null ? void 0 : h.current) == null ? void 0 : ap.overriddenLayers().find((Xf) => Xf.id === Af.layerId)) ?? ((up = h == null ? void 0 : h.current) == null ? void 0 : up.findById(Af.layerId)) : void 0;
|
|
84908
84905
|
W == null || W(
|
|
84909
84906
|
Af == null ? void 0 : Af.layerId,
|
|
@@ -84913,12 +84910,12 @@ const useIBL = ({
|
|
|
84913
84910
|
title: (Gf == null ? void 0 : Gf.title) ?? rf.id.name,
|
|
84914
84911
|
content: getEntityContent(
|
|
84915
84912
|
rf.id,
|
|
84916
|
-
|
|
84913
|
+
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84917
84914
|
Af != null && Af.layerId ? (pp = (fp = Gf == null ? void 0 : Gf.infobox) == null ? void 0 : fp.property) == null ? void 0 : pp.defaultContent : void 0
|
|
84918
84915
|
)
|
|
84919
84916
|
}
|
|
84920
84917
|
} : void 0
|
|
84921
|
-
), _i.current = rf.id, rf.id instanceof Entity$2 && !(Af != null && Af.hideIndicator) ?
|
|
84918
|
+
), _i.current = rf.id, rf.id instanceof Entity$2 && !(Af != null && Af.hideIndicator) ? bf.selectedEntity = rf.id : bf.selectedEntity = void 0;
|
|
84922
84919
|
return;
|
|
84923
84920
|
}
|
|
84924
84921
|
if (rf && (rf instanceof Cesium3DTileFeature || rf instanceof Cesium3DTilePointFeature)) {
|
|
@@ -84953,39 +84950,39 @@ const useIBL = ({
|
|
|
84953
84950
|
return;
|
|
84954
84951
|
}
|
|
84955
84952
|
if (rf === void 0 && _f.position) {
|
|
84956
|
-
const Af =
|
|
84953
|
+
const Af = bf.scene, Gf = Af.camera.getPickRay(_f.position);
|
|
84957
84954
|
if (Gf) {
|
|
84958
|
-
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af),
|
|
84959
|
-
if (bp && ((yf = (lf = (tf =
|
|
84960
|
-
const gp = getTag(
|
|
84955
|
+
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf[0], bp = (al = jf == null ? void 0 : jf.data) == null ? void 0 : al.appearanceType;
|
|
84956
|
+
if (bp && ((yf = (lf = (tf = jf == null ? void 0 : jf.data) == null ? void 0 : tf.feature) == null ? void 0 : lf[bp]) == null ? void 0 : yf.show) !== !1) {
|
|
84957
|
+
const gp = getTag(jf.imageryLayer), lp = jf.position;
|
|
84961
84958
|
lp && requestAnimationFrame(() => {
|
|
84962
|
-
gp != null && gp.hideIndicator || (
|
|
84959
|
+
gp != null && gp.hideIndicator || (bf.selectedEntity = new Entity$2({
|
|
84963
84960
|
position: Cartographic$1.toCartesian(lp)
|
|
84964
84961
|
}));
|
|
84965
84962
|
});
|
|
84966
84963
|
const Bp = gp != null && gp.layerId ? ((If = h == null ? void 0 : h.current) == null ? void 0 : If.overriddenLayers().find((cg) => cg.id === gp.layerId)) ?? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.findById(gp.layerId)) : void 0, ag = getEntityContent(
|
|
84967
|
-
|
|
84968
|
-
|
|
84969
|
-
gp != null && gp.layerId ? (
|
|
84964
|
+
jf.data.feature ?? jf,
|
|
84965
|
+
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84966
|
+
gp != null && gp.layerId ? (Rf = (Tf = Bp == null ? void 0 : Bp.infobox) == null ? void 0 : Tf.property) == null ? void 0 : Rf.defaultContent : void 0
|
|
84970
84967
|
);
|
|
84971
|
-
ba.current =
|
|
84972
|
-
|
|
84973
|
-
|
|
84968
|
+
ba.current = jf.data.featureId, W == null || W(
|
|
84969
|
+
jf.data.layerId,
|
|
84970
|
+
jf.data.featureId,
|
|
84974
84971
|
ag.value.length ? {
|
|
84975
84972
|
defaultInfobox: {
|
|
84976
|
-
title: (Bp == null ? void 0 : Bp.title) ??
|
|
84973
|
+
title: (Bp == null ? void 0 : Bp.title) ?? jf.name,
|
|
84977
84974
|
content: ag
|
|
84978
84975
|
}
|
|
84979
84976
|
} : void 0,
|
|
84980
84977
|
{
|
|
84981
|
-
feature:
|
|
84978
|
+
feature: jf.data.feature
|
|
84982
84979
|
}
|
|
84983
84980
|
);
|
|
84984
84981
|
return;
|
|
84985
84982
|
}
|
|
84986
84983
|
}
|
|
84987
84984
|
}
|
|
84988
|
-
|
|
84985
|
+
bf.selectedEntity = void 0, W == null || W();
|
|
84989
84986
|
},
|
|
84990
84987
|
[
|
|
84991
84988
|
W,
|
|
@@ -85015,10 +85012,10 @@ const useIBL = ({
|
|
|
85015
85012
|
Ru.current = La;
|
|
85016
85013
|
const Vd = useCallback(() => {
|
|
85017
85014
|
Ru.current && setTimeout(() => {
|
|
85018
|
-
var
|
|
85015
|
+
var bf;
|
|
85019
85016
|
if (!Ru.current)
|
|
85020
85017
|
return;
|
|
85021
|
-
const _f = (
|
|
85018
|
+
const _f = (bf = Ra.current) == null ? void 0 : bf.cesiumElement;
|
|
85022
85019
|
if (!_f || _f.isDestroyed())
|
|
85023
85020
|
return;
|
|
85024
85021
|
const rf = getCredits(_f) ?? [];
|
|
@@ -85051,8 +85048,8 @@ const useIBL = ({
|
|
|
85051
85048
|
]
|
|
85052
85049
|
);
|
|
85053
85050
|
useEffect(() => {
|
|
85054
|
-
var rf,
|
|
85055
|
-
const _f = (
|
|
85051
|
+
var rf, bf, Pf;
|
|
85052
|
+
const _f = (bf = (rf = Ra.current) == null ? void 0 : rf.cesiumElement) == null ? void 0 : bf.scene.globe;
|
|
85056
85053
|
if (_f) {
|
|
85057
85054
|
const Uf = _f._surface;
|
|
85058
85055
|
Uf && (Uf.tileProvider._debug.wireframe = ((Pf = n == null ? void 0 : n.debug) == null ? void 0 : Pf.showGlobeWireframe) ?? !1);
|
|
@@ -85078,7 +85075,7 @@ const useIBL = ({
|
|
|
85078
85075
|
});
|
|
85079
85076
|
useLayerDragDrop({ cesium: Ra, onLayerDrag: nt, onLayerDrop: Pe, isLayerDraggable: S }), useExplicitRender({ cesium: Ra, requestingRenderMode: F, isLayerDragging: P, shouldRender: L, property: n });
|
|
85080
85077
|
const {
|
|
85081
|
-
cameraViewBoundaries:
|
|
85078
|
+
cameraViewBoundaries: mf,
|
|
85082
85079
|
cameraViewOuterBoundaries: xf,
|
|
85083
85080
|
cameraViewBoundariesMaterial: Vf,
|
|
85084
85081
|
handleCameraChange: wf,
|
|
@@ -85112,7 +85109,7 @@ const useIBL = ({
|
|
|
85112
85109
|
sceneBackgroundColor: uf,
|
|
85113
85110
|
sceneMsaaSamples: gf,
|
|
85114
85111
|
sceneMode: hf,
|
|
85115
|
-
cameraViewBoundaries:
|
|
85112
|
+
cameraViewBoundaries: mf,
|
|
85116
85113
|
cameraViewOuterBoundaries: xf,
|
|
85117
85114
|
cameraViewBoundariesMaterial: Vf,
|
|
85118
85115
|
handleCameraChange: wf,
|
|
@@ -90951,7 +90948,7 @@ const Cesium = ({
|
|
|
90951
90948
|
onLayerLoad: lt,
|
|
90952
90949
|
onCreditsUpdate: _i
|
|
90953
90950
|
}, ba) => {
|
|
90954
|
-
var gd, pd, Zd, sf, of, nf, df,
|
|
90951
|
+
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf, Mf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep, ap, up, fp, pp, al, tf, lf;
|
|
90955
90952
|
const {
|
|
90956
90953
|
cesium: Sc,
|
|
90957
90954
|
mouseEventHandles: ms,
|
|
@@ -90966,7 +90963,7 @@ const Cesium = ({
|
|
|
90966
90963
|
cameraViewOuterBoundaries: uf,
|
|
90967
90964
|
cameraViewBoundariesMaterial: gf,
|
|
90968
90965
|
handleCameraChange: hf,
|
|
90969
|
-
handleCameraMoveEnd:
|
|
90966
|
+
handleCameraMoveEnd: mf,
|
|
90970
90967
|
handleUpdate: xf,
|
|
90971
90968
|
handleClick: Vf,
|
|
90972
90969
|
handleMount: wf,
|
|
@@ -91111,7 +91108,7 @@ const Cesium = ({
|
|
|
91111
91108
|
Ta$1,
|
|
91112
91109
|
{
|
|
91113
91110
|
maximumZoomDistance: (sf = (Zd = o == null ? void 0 : o.camera) == null ? void 0 : Zd.limiter) != null && sf.enabled ? ((df = (nf = (of = o.camera) == null ? void 0 : of.limiter) == null ? void 0 : nf.targetArea) == null ? void 0 : df.height) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
91114
|
-
enableCollisionDetection: !((
|
|
91111
|
+
enableCollisionDetection: !((Cf = o == null ? void 0 : o.camera) != null && Cf.allowEnterGround)
|
|
91115
91112
|
}
|
|
91116
91113
|
),
|
|
91117
91114
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -91119,10 +91116,10 @@ const Cesium = ({
|
|
|
91119
91116
|
{
|
|
91120
91117
|
percentageChanged: 0.2,
|
|
91121
91118
|
onChange: hf,
|
|
91122
|
-
onMoveEnd:
|
|
91119
|
+
onMoveEnd: mf
|
|
91123
91120
|
}
|
|
91124
91121
|
),
|
|
91125
|
-
cf && ((Sf = (
|
|
91122
|
+
cf && ((Sf = (ff = o == null ? void 0 : o.camera) == null ? void 0 : ff.limiter) == null ? void 0 : Sf.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
91126
91123
|
ua$1,
|
|
91127
91124
|
{
|
|
91128
91125
|
positions: cf,
|
|
@@ -91131,7 +91128,7 @@ const Cesium = ({
|
|
|
91131
91128
|
arcType: ArcType$2.RHUMB
|
|
91132
91129
|
}
|
|
91133
91130
|
) }),
|
|
91134
|
-
uf && ((Ff = (
|
|
91131
|
+
uf && ((Ff = (Mf = o == null ? void 0 : o.camera) == null ? void 0 : Mf.limiter) == null ? void 0 : Ff.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
91135
91132
|
ua$1,
|
|
91136
91133
|
{
|
|
91137
91134
|
positions: uf,
|
|
@@ -91149,12 +91146,12 @@ const Cesium = ({
|
|
|
91149
91146
|
msaaSamples: Vd,
|
|
91150
91147
|
useDepthPicking: !1,
|
|
91151
91148
|
useWebVR: !!((Hf = o == null ? void 0 : o.scene) != null && Hf.vr) || void 0,
|
|
91152
|
-
debugShowFramesPerSecond: !!((
|
|
91149
|
+
debugShowFramesPerSecond: !!((Jf = o == null ? void 0 : o.debug) != null && Jf.showFramesPerSecond),
|
|
91153
91150
|
verticalExaggerationRelativeHeight: (Wf = o == null ? void 0 : o.scene) == null ? void 0 : Wf.verticalExaggerationRelativeHeight,
|
|
91154
91151
|
verticalExaggeration: (tp = o == null ? void 0 : o.scene) == null ? void 0 : tp.verticalExaggeration
|
|
91155
91152
|
}
|
|
91156
91153
|
),
|
|
91157
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((
|
|
91154
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((pf = (vf = o == null ? void 0 : o.sky) == null ? void 0 : vf.skyBox) == null ? void 0 : pf.show) ?? !0 }),
|
|
91158
91155
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((Df = (Lf = o == null ? void 0 : o.sky) == null ? void 0 : Lf.fog) == null ? void 0 : Df.enabled) ?? !0, density: (Yf = (kf = o == null ? void 0 : o.sky) == null ? void 0 : kf.fog) == null ? void 0 : Yf.density }),
|
|
91159
91156
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((Zf = (Qf = o == null ? void 0 : o.sky) == null ? void 0 : Qf.sun) == null ? void 0 : Zf.show) ?? !0 }),
|
|
91160
91157
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((qf = (np = o == null ? void 0 : o.sky) == null ? void 0 : np.moon) == null ? void 0 : qf.show) ?? !0 }),
|
|
@@ -91163,7 +91160,7 @@ const Cesium = ({
|
|
|
91163
91160
|
{
|
|
91164
91161
|
show: ((rp = (ip = o == null ? void 0 : o.sky) == null ? void 0 : ip.skyAtmosphere) == null ? void 0 : rp.show) ?? !0,
|
|
91165
91162
|
atmosphereLightIntensity: (rf = (_f = o == null ? void 0 : o.sky) == null ? void 0 : _f.skyAtmosphere) == null ? void 0 : rf.lightIntensity,
|
|
91166
|
-
saturationShift: (Pf = (
|
|
91163
|
+
saturationShift: (Pf = (bf = o == null ? void 0 : o.sky) == null ? void 0 : bf.skyAtmosphere) == null ? void 0 : Pf.saturationShift,
|
|
91167
91164
|
brightnessShift: (Bf = (Uf = o == null ? void 0 : o.sky) == null ? void 0 : Uf.skyAtmosphere) == null ? void 0 : Bf.brightnessShift
|
|
91168
91165
|
}
|
|
91169
91166
|
),
|
|
@@ -91204,7 +91201,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91204
91201
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91205
91202
|
] });
|
|
91206
91203
|
}
|
|
91207
|
-
const version = "0.0.7-alpha.
|
|
91204
|
+
const version = "0.0.7-alpha.27", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91208
91205
|
const n = useRef(t);
|
|
91209
91206
|
n.current = t;
|
|
91210
91207
|
const o = useMemo(
|
|
@@ -91273,21 +91270,21 @@ function useHooks({
|
|
|
91273
91270
|
const F = useRef(null), N = useViewport({
|
|
91274
91271
|
wrapperRef: F
|
|
91275
91272
|
}), [z, W] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
|
|
91276
|
-
async (
|
|
91277
|
-
var np, qf, ip, rp, _f, rf,
|
|
91273
|
+
async (vf, pf, Lf, Df, kf) => {
|
|
91274
|
+
var np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep;
|
|
91278
91275
|
const Yf = ((np = z.layer) == null ? void 0 : np.layer.type) === "simple" && ((rp = (ip = (qf = z.layer) == null ? void 0 : qf.layer) == null ? void 0 : ip.data) == null ? void 0 : rp.isSketchLayer);
|
|
91279
|
-
if (z.layerId ===
|
|
91276
|
+
if (z.layerId === vf && z.featureId === pf && !Yf)
|
|
91280
91277
|
return;
|
|
91281
|
-
const Qf = await (Lf == null ? void 0 : Lf()), Zf =
|
|
91278
|
+
const Qf = await (Lf == null ? void 0 : Lf()), Zf = vf && pf ? (Yf ? (_f = Qf == null ? void 0 : Qf.features) == null ? void 0 : _f.find((ap) => ap.id === pf) : (Pf = (rf = L.current) == null ? void 0 : (bf = rf.engine).findComputedFeatureById) == null ? void 0 : Pf.call(bf, vf, pf)) ?? (kf == null ? void 0 : kf.feature) : void 0;
|
|
91282
91279
|
Pe(
|
|
91283
|
-
|
|
91280
|
+
vf && pf ? (ep = (Uf = L.current) == null ? void 0 : (Bf = Uf.engine).findFeatureById) == null ? void 0 : ep.call(Bf, vf, pf) : void 0
|
|
91284
91281
|
), mt(Zf), W(
|
|
91285
|
-
(ap) => ap.layerId ===
|
|
91286
|
-
), c == null || c(
|
|
91282
|
+
(ap) => ap.layerId === vf && ap.featureId === pf ? ap : { layerId: vf, featureId: pf, layer: Qf, reason: Df }
|
|
91283
|
+
), c == null || c(vf, Lf, Zf, Df);
|
|
91287
91284
|
},
|
|
91288
91285
|
[z, c]
|
|
91289
|
-
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((
|
|
91290
|
-
fa(!!
|
|
91286
|
+
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((vf) => {
|
|
91287
|
+
fa(!!vf);
|
|
91291
91288
|
}, []), [Ra, ma] = useValue(
|
|
91292
91289
|
n,
|
|
91293
91290
|
h
|
|
@@ -91297,70 +91294,70 @@ function useHooks({
|
|
|
91297
91294
|
yt === "sketch" ? "crosshair" : yt === "move" ? "grab" : "auto"
|
|
91298
91295
|
);
|
|
91299
91296
|
}, [yt]);
|
|
91300
|
-
const ba = INTERACTION_MODES[yt], Sc = useRef(), ms = useCallback((
|
|
91301
|
-
Sc.current =
|
|
91302
|
-
}, []), Xs = useCallback((
|
|
91303
|
-
var
|
|
91304
|
-
(
|
|
91305
|
-
}, []), yu = useRef(), pu = useCallback((
|
|
91306
|
-
yu.current =
|
|
91307
|
-
}, []), Nl = useCallback((
|
|
91308
|
-
var
|
|
91309
|
-
(
|
|
91310
|
-
}, []), Ru = useRef(), Vd = useCallback((
|
|
91311
|
-
Ru.current =
|
|
91312
|
-
}, []), Gd = useCallback((
|
|
91313
|
-
var
|
|
91314
|
-
(
|
|
91315
|
-
}, []), cf = useRef(), uf = useCallback((
|
|
91316
|
-
cf.current =
|
|
91317
|
-
}, []), gf = useCallback((
|
|
91318
|
-
var
|
|
91319
|
-
(
|
|
91320
|
-
}, []), hf = useRef(),
|
|
91321
|
-
hf.current =
|
|
91322
|
-
}, []), xf = useCallback((
|
|
91323
|
-
var
|
|
91324
|
-
(
|
|
91325
|
-
}, []), Vf = useRef(), wf = useCallback((
|
|
91326
|
-
Vf.current =
|
|
91327
|
-
}, []), Wa = useCallback((
|
|
91328
|
-
var
|
|
91329
|
-
(
|
|
91330
|
-
}, []), af = useRef([]), Xd = useCallback((
|
|
91331
|
-
af.current.push(
|
|
91332
|
-
}, []), gd = useCallback((
|
|
91333
|
-
af.current.forEach((
|
|
91334
|
-
}, []), pd = useRef([]), Zd = useCallback((
|
|
91335
|
-
pd.current.push(
|
|
91336
|
-
}, []), sf = useCallback((
|
|
91337
|
-
pd.current.forEach((
|
|
91338
|
-
}, []), of = useRef([]), nf = useCallback((
|
|
91339
|
-
of.current.push(
|
|
91297
|
+
const ba = INTERACTION_MODES[yt], Sc = useRef(), ms = useCallback((vf) => {
|
|
91298
|
+
Sc.current = vf;
|
|
91299
|
+
}, []), Xs = useCallback((vf) => {
|
|
91300
|
+
var pf;
|
|
91301
|
+
(pf = Sc.current) == null || pf.call(Sc, vf);
|
|
91302
|
+
}, []), yu = useRef(), pu = useCallback((vf) => {
|
|
91303
|
+
yu.current = vf;
|
|
91304
|
+
}, []), Nl = useCallback((vf) => {
|
|
91305
|
+
var pf;
|
|
91306
|
+
(pf = yu.current) == null || pf.call(yu, vf);
|
|
91307
|
+
}, []), Ru = useRef(), Vd = useCallback((vf) => {
|
|
91308
|
+
Ru.current = vf;
|
|
91309
|
+
}, []), Gd = useCallback((vf) => {
|
|
91310
|
+
var pf;
|
|
91311
|
+
(pf = Ru.current) == null || pf.call(Ru, vf);
|
|
91312
|
+
}, []), cf = useRef(), uf = useCallback((vf) => {
|
|
91313
|
+
cf.current = vf;
|
|
91314
|
+
}, []), gf = useCallback((vf) => {
|
|
91315
|
+
var pf;
|
|
91316
|
+
(pf = cf.current) == null || pf.call(cf, vf);
|
|
91317
|
+
}, []), hf = useRef(), mf = useCallback((vf) => {
|
|
91318
|
+
hf.current = vf;
|
|
91319
|
+
}, []), xf = useCallback((vf) => {
|
|
91320
|
+
var pf;
|
|
91321
|
+
(pf = hf.current) == null || pf.call(hf, vf);
|
|
91322
|
+
}, []), Vf = useRef(), wf = useCallback((vf) => {
|
|
91323
|
+
Vf.current = vf;
|
|
91324
|
+
}, []), Wa = useCallback((vf) => {
|
|
91325
|
+
var pf;
|
|
91326
|
+
(pf = Vf.current) == null || pf.call(Vf, vf);
|
|
91327
|
+
}, []), af = useRef([]), Xd = useCallback((vf) => {
|
|
91328
|
+
af.current.push(vf);
|
|
91329
|
+
}, []), gd = useCallback((vf) => {
|
|
91330
|
+
af.current.forEach((pf) => pf(vf));
|
|
91331
|
+
}, []), pd = useRef([]), Zd = useCallback((vf) => {
|
|
91332
|
+
pd.current.push(vf);
|
|
91333
|
+
}, []), sf = useCallback((vf) => {
|
|
91334
|
+
pd.current.forEach((pf) => pf(vf));
|
|
91335
|
+
}, []), of = useRef([]), nf = useCallback((vf) => {
|
|
91336
|
+
of.current.push(vf);
|
|
91340
91337
|
}, []), df = useCallback(
|
|
91341
|
-
(
|
|
91342
|
-
of.current.forEach((
|
|
91338
|
+
(vf) => {
|
|
91339
|
+
of.current.forEach((pf) => pf(vf));
|
|
91343
91340
|
},
|
|
91344
91341
|
[]
|
|
91345
|
-
),
|
|
91346
|
-
|
|
91342
|
+
), Cf = useRef([]), ff = useCallback((vf) => {
|
|
91343
|
+
Cf.current.push(vf);
|
|
91347
91344
|
}, []), Sf = useCallback(
|
|
91348
|
-
(
|
|
91349
|
-
|
|
91345
|
+
(vf, pf) => {
|
|
91346
|
+
Cf.current.forEach((Lf) => Lf(vf)), S == null || S(vf, pf);
|
|
91350
91347
|
},
|
|
91351
91348
|
[S]
|
|
91352
91349
|
);
|
|
91353
91350
|
useEffect(() => {
|
|
91354
|
-
var
|
|
91355
|
-
o && ((
|
|
91351
|
+
var vf, pf;
|
|
91352
|
+
o && ((pf = (vf = L.current) == null ? void 0 : vf.engine) == null || pf.lookAtLayer(o), p == null || p(void 0));
|
|
91356
91353
|
}, [o, p]);
|
|
91357
|
-
const [
|
|
91354
|
+
const [Mf, Ff] = useState(!1), Hf = useCallback(() => {
|
|
91358
91355
|
Ff(!0);
|
|
91359
|
-
}, []),
|
|
91360
|
-
(
|
|
91356
|
+
}, []), Jf = useCallback(
|
|
91357
|
+
(vf, pf, Lf) => {
|
|
91361
91358
|
var Yf;
|
|
91362
91359
|
Ff(!1);
|
|
91363
|
-
const Df = (Yf = L.current) == null ? void 0 : Yf.layers.findById(
|
|
91360
|
+
const Df = (Yf = L.current) == null ? void 0 : Yf.layers.findById(vf), kf = Df != null && Df.property.default.location ? "default.location" : Df != null && Df.property.default.position ? "default.position" : void 0;
|
|
91364
91361
|
Lf && Df && Df.propertyId && kf && (y == null || y(Df.propertyId, kf, Lf));
|
|
91365
91362
|
},
|
|
91366
91363
|
[y, L]
|
|
@@ -91375,12 +91372,12 @@ function useHooks({
|
|
|
91375
91372
|
onSketchPluginFeatureCreate: Xd,
|
|
91376
91373
|
onSketchPluginFeatureUpdate: Zd,
|
|
91377
91374
|
onSketchPluginFeatureDelete: nf,
|
|
91378
|
-
onSketchTypeChange:
|
|
91375
|
+
onSketchTypeChange: ff,
|
|
91379
91376
|
onLayerVisibility: pu,
|
|
91380
91377
|
onLayerLoad: Vd,
|
|
91381
91378
|
onLayerEdit: ms,
|
|
91382
91379
|
onLayerSelectWithRectStart: uf,
|
|
91383
|
-
onLayerSelectWithRectMove:
|
|
91380
|
+
onLayerSelectWithRectMove: mf,
|
|
91384
91381
|
onLayerSelectWithRectEnd: wf
|
|
91385
91382
|
}),
|
|
91386
91383
|
[
|
|
@@ -91394,11 +91391,11 @@ function useHooks({
|
|
|
91394
91391
|
Xd,
|
|
91395
91392
|
Zd,
|
|
91396
91393
|
nf,
|
|
91397
|
-
|
|
91394
|
+
ff,
|
|
91398
91395
|
pu,
|
|
91399
91396
|
Vd,
|
|
91400
91397
|
uf,
|
|
91401
|
-
|
|
91398
|
+
mf,
|
|
91402
91399
|
wf
|
|
91403
91400
|
]
|
|
91404
91401
|
), tp = useMemo(
|
|
@@ -91416,7 +91413,7 @@ function useHooks({
|
|
|
91416
91413
|
selectedFeature: nt,
|
|
91417
91414
|
camera: pi,
|
|
91418
91415
|
featureFlags: ba,
|
|
91419
|
-
isLayerDragging:
|
|
91416
|
+
isLayerDragging: Mf,
|
|
91420
91417
|
timelineManagerRef: mn,
|
|
91421
91418
|
cursor: lt,
|
|
91422
91419
|
cameraForceHorizontalRoll: Sa,
|
|
@@ -91425,7 +91422,7 @@ function useHooks({
|
|
|
91425
91422
|
overriddenInteractionMode: yt,
|
|
91426
91423
|
handleLayerSelect: kt,
|
|
91427
91424
|
handleLayerDrag: Hf,
|
|
91428
|
-
handleLayerDrop:
|
|
91425
|
+
handleLayerDrop: Jf,
|
|
91429
91426
|
handleLayerEdit: Xs,
|
|
91430
91427
|
handleCameraChange: zi,
|
|
91431
91428
|
handleInteractionModeChange: ma,
|
|
@@ -91501,7 +91498,7 @@ const CoreVisualizer = memo$1(
|
|
|
91501
91498
|
handleLayerSelect: uf,
|
|
91502
91499
|
handleLayerDrag: gf,
|
|
91503
91500
|
handleLayerDrop: hf,
|
|
91504
|
-
handleLayerEdit:
|
|
91501
|
+
handleLayerEdit: mf,
|
|
91505
91502
|
handleCameraChange: xf,
|
|
91506
91503
|
handleInteractionModeChange: Vf,
|
|
91507
91504
|
handleSketchPluginFeatureCreate: wf,
|
|
@@ -91561,7 +91558,7 @@ const CoreVisualizer = memo$1(
|
|
|
91561
91558
|
onLayerDrag: gf,
|
|
91562
91559
|
onLayerDrop: hf,
|
|
91563
91560
|
onLayerSelect: uf,
|
|
91564
|
-
onLayerEdit:
|
|
91561
|
+
onLayerEdit: mf,
|
|
91565
91562
|
overrideInteractionMode: Vf,
|
|
91566
91563
|
onSketchFeatureCreate: fa,
|
|
91567
91564
|
onSketchPluginFeatureCreate: wf,
|