leiting-bim 2.2.12 → 2.2.13
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive as wt, createVNode as re, render as Md, h as Fi, onMounted as et, nextTick as ci, unref as $, getCurrentScope as Bd, onScopeDispose as Td, getCurrentInstance as Pa, ref as H, watch as te, computed as fe, watchEffect as Pd, onUnmounted as lt, readonly as ei, defineComponent as _e, inject as Ne, withDirectives as le, createElementBlock as V, openBlock as Y, normalizeStyle as pt, normalizeClass as he, createElementVNode as p, createCommentVNode as ae, toDisplayString as Z, renderSlot as qi, vShow as Da, toRef as Dd, createBlock as ge, withCtx as ce, isRef as _d, createTextVNode as xe, Fragment as Ee, renderList as Te, resolveDynamicComponent as kd, withModifiers as Ie, vModelRadio as Ld, vModelCheckbox as ut, vModelText as ve, Teleport as rs, Transition as ui, shallowRef as Rd, provide as Rn, mergeProps as Fd, normalizeProps as Od, guardReactiveProps as Gd } from "vue";
|
|
2
2
|
import * as Ud from "@zumer/snapdom";
|
|
3
|
-
import { Alert as
|
|
3
|
+
import { Alert as Rc, Input as _a, Tree as Fc, Slider as Xi, Spin as ka, Collapse as Nd, CollapsePanel as Qd, Descriptions as Hd, DescriptionsItem as Yd, Radio as Dr, Select as ns, Switch as Oc, DatePicker as zd, SelectOption as Oi, RadioGroup as _r, RadioButton as un, Button as yo, CheckboxGroup as Wd, Checkbox as Vd } from "ant-design-vue";
|
|
4
4
|
import { LoadingOutlined as jd, CheckCircleOutlined as $d, CloseCircleOutlined as Kd, ExclamationCircleOutlined as qd, InfoCircleOutlined as Xd } from "@ant-design/icons-vue";
|
|
5
5
|
const ws = {
|
|
6
6
|
cesiumUrl: "https://leiting.chenxisoft.com/resource/js/cesiumjs/Cesium1.140/Cesium.js",
|
|
@@ -8,7 +8,7 @@ const ws = {
|
|
|
8
8
|
accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjZGI0MzM1ZS1hMjY4LTRlYzgtYjg1MC03NmI2ZjUxMmM5ZTUiLCJpZCI6OTUzODIsImlhdCI6MTY1MzYyMTM4OX0.ygoPAb1FvQkQGtziq5nTsWT-u7dCheu5hcG0p9TQFpU"
|
|
9
9
|
};
|
|
10
10
|
let wi = null, Yi;
|
|
11
|
-
function
|
|
11
|
+
function Gc(i) {
|
|
12
12
|
return i.accessToken && (Yi = i.accessToken), wi || (wi = new Promise((e, t) => {
|
|
13
13
|
if (window.Cesium) {
|
|
14
14
|
Yi && (window.Cesium.Ion.defaultAccessToken = Yi), e();
|
|
@@ -160,7 +160,7 @@ class Zd {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
var
|
|
163
|
+
var Uc = typeof global == "object" && global && global.Object === Object && global, ef = typeof self == "object" && self && self.Object === Object && self, ki = Uc || ef || Function("return this")(), Fn = ki.Symbol, Nc = Object.prototype, tf = Nc.hasOwnProperty, sf = Nc.toString, vs = Fn ? Fn.toStringTag : void 0;
|
|
164
164
|
function nf(i) {
|
|
165
165
|
var e = tf.call(i, vs), t = i[vs];
|
|
166
166
|
try {
|
|
@@ -175,9 +175,9 @@ var of = Object.prototype, af = of.toString;
|
|
|
175
175
|
function rf(i) {
|
|
176
176
|
return af.call(i);
|
|
177
177
|
}
|
|
178
|
-
var lf = "[object Null]", cf = "[object Undefined]",
|
|
178
|
+
var lf = "[object Null]", cf = "[object Undefined]", kr = Fn ? Fn.toStringTag : void 0;
|
|
179
179
|
function js(i) {
|
|
180
|
-
return i == null ? i === void 0 ? cf : lf :
|
|
180
|
+
return i == null ? i === void 0 ? cf : lf : kr && kr in Object(i) ? nf(i) : rf(i);
|
|
181
181
|
}
|
|
182
182
|
function ls(i) {
|
|
183
183
|
return i != null && typeof i == "object";
|
|
@@ -200,12 +200,12 @@ function zt(i) {
|
|
|
200
200
|
var e = typeof i;
|
|
201
201
|
return i != null && (e == "object" || e == "function");
|
|
202
202
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
203
|
+
var Lr = NaN, mf = /^[-+]0x[0-9a-f]+$/i, Af = /^0b[01]+$/i, vf = /^0o[0-7]+$/i, yf = parseInt;
|
|
204
|
+
function Rr(i) {
|
|
205
205
|
if (typeof i == "number")
|
|
206
206
|
return i;
|
|
207
207
|
if (hf(i))
|
|
208
|
-
return
|
|
208
|
+
return Lr;
|
|
209
209
|
if (zt(i)) {
|
|
210
210
|
var e = typeof i.valueOf == "function" ? i.valueOf() : i;
|
|
211
211
|
i = zt(e) ? e + "" : e;
|
|
@@ -214,9 +214,9 @@ function Lr(i) {
|
|
|
214
214
|
return i === 0 ? i : +i;
|
|
215
215
|
i = pf(i);
|
|
216
216
|
var t = Af.test(i);
|
|
217
|
-
return t || vf.test(i) ? yf(i.slice(2), t ? 2 : 8) : mf.test(i) ?
|
|
217
|
+
return t || vf.test(i) ? yf(i.slice(2), t ? 2 : 8) : mf.test(i) ? Lr : +i;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Qc(i) {
|
|
220
220
|
return i;
|
|
221
221
|
}
|
|
222
222
|
var Cf = "[object AsyncFunction]", bf = "[object Function]", wf = "[object GeneratorFunction]", Ef = "[object Proxy]";
|
|
@@ -226,12 +226,12 @@ function La(i) {
|
|
|
226
226
|
var e = js(i);
|
|
227
227
|
return e == bf || e == wf || e == Cf || e == Ef;
|
|
228
228
|
}
|
|
229
|
-
var Co = ki["__core-js_shared__"],
|
|
229
|
+
var Co = ki["__core-js_shared__"], Fr = (function() {
|
|
230
230
|
var i = /[^.]+$/.exec(Co && Co.keys && Co.keys.IE_PROTO || "");
|
|
231
231
|
return i ? "Symbol(src)_1." + i : "";
|
|
232
232
|
})();
|
|
233
233
|
function xf(i) {
|
|
234
|
-
return !!
|
|
234
|
+
return !!Fr && Fr in i;
|
|
235
235
|
}
|
|
236
236
|
var If = Function.prototype, Sf = If.toString;
|
|
237
237
|
function Mf(i) {
|
|
@@ -263,14 +263,14 @@ function Ra(i, e) {
|
|
|
263
263
|
var t = Ff(i, e);
|
|
264
264
|
return Rf(t) ? t : void 0;
|
|
265
265
|
}
|
|
266
|
-
var
|
|
266
|
+
var Or = Object.create, Of = /* @__PURE__ */ (function() {
|
|
267
267
|
function i() {
|
|
268
268
|
}
|
|
269
269
|
return function(e) {
|
|
270
270
|
if (!zt(e))
|
|
271
271
|
return {};
|
|
272
|
-
if (
|
|
273
|
-
return
|
|
272
|
+
if (Or)
|
|
273
|
+
return Or(e);
|
|
274
274
|
i.prototype = e;
|
|
275
275
|
var t = new i();
|
|
276
276
|
return i.prototype = void 0, t;
|
|
@@ -326,8 +326,8 @@ var Gn = (function() {
|
|
|
326
326
|
value: zf(e),
|
|
327
327
|
writable: !0
|
|
328
328
|
});
|
|
329
|
-
} :
|
|
330
|
-
function
|
|
329
|
+
} : Qc, Vf = Yf(Wf), jf = 9007199254740991, $f = /^(?:0|[1-9]\d*)$/;
|
|
330
|
+
function Hc(i, e) {
|
|
331
331
|
var t = typeof i;
|
|
332
332
|
return e = e ?? jf, !!e && (t == "number" || t != "symbol" && $f.test(i)) && i > -1 && i % 1 == 0 && i < e;
|
|
333
333
|
}
|
|
@@ -356,10 +356,10 @@ function Jf(i, e, t, s) {
|
|
|
356
356
|
}
|
|
357
357
|
return t;
|
|
358
358
|
}
|
|
359
|
-
var
|
|
359
|
+
var Gr = Math.max;
|
|
360
360
|
function Zf(i, e, t) {
|
|
361
|
-
return e =
|
|
362
|
-
for (var s = arguments, n = -1, o =
|
|
361
|
+
return e = Gr(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
362
|
+
for (var s = arguments, n = -1, o = Gr(s.length - e, 0), a = Array(o); ++n < o; )
|
|
363
363
|
a[n] = s[e + n];
|
|
364
364
|
n = -1;
|
|
365
365
|
for (var l = Array(e + 1); ++n < e; )
|
|
@@ -368,20 +368,20 @@ function Zf(i, e, t) {
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
function eg(i, e) {
|
|
371
|
-
return Vf(Zf(i, e,
|
|
371
|
+
return Vf(Zf(i, e, Qc), i + "");
|
|
372
372
|
}
|
|
373
373
|
var tg = 9007199254740991;
|
|
374
|
-
function
|
|
374
|
+
function Yc(i) {
|
|
375
375
|
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= tg;
|
|
376
376
|
}
|
|
377
377
|
function Oa(i) {
|
|
378
|
-
return i != null &&
|
|
378
|
+
return i != null && Yc(i.length) && !La(i);
|
|
379
379
|
}
|
|
380
380
|
function ig(i, e, t) {
|
|
381
381
|
if (!zt(t))
|
|
382
382
|
return !1;
|
|
383
383
|
var s = typeof e;
|
|
384
|
-
return (s == "number" ? Oa(t) &&
|
|
384
|
+
return (s == "number" ? Oa(t) && Hc(e, t.length) : s == "string" && e in t) ? ao(t[e], i) : !1;
|
|
385
385
|
}
|
|
386
386
|
function sg(i) {
|
|
387
387
|
return eg(function(e, t) {
|
|
@@ -394,7 +394,7 @@ function sg(i) {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
var ng = Object.prototype;
|
|
397
|
-
function
|
|
397
|
+
function zc(i) {
|
|
398
398
|
var e = i && i.constructor, t = typeof e == "function" && e.prototype || ng;
|
|
399
399
|
return i === t;
|
|
400
400
|
}
|
|
@@ -404,43 +404,43 @@ function og(i, e) {
|
|
|
404
404
|
return s;
|
|
405
405
|
}
|
|
406
406
|
var ag = "[object Arguments]";
|
|
407
|
-
function
|
|
407
|
+
function Ur(i) {
|
|
408
408
|
return ls(i) && js(i) == ag;
|
|
409
409
|
}
|
|
410
|
-
var
|
|
410
|
+
var Wc = Object.prototype, rg = Wc.hasOwnProperty, lg = Wc.propertyIsEnumerable, Jo = Ur(/* @__PURE__ */ (function() {
|
|
411
411
|
return arguments;
|
|
412
|
-
})()) ?
|
|
412
|
+
})()) ? Ur : function(i) {
|
|
413
413
|
return ls(i) && rg.call(i, "callee") && !lg.call(i, "callee");
|
|
414
414
|
};
|
|
415
415
|
function cg() {
|
|
416
416
|
return !1;
|
|
417
417
|
}
|
|
418
|
-
var
|
|
418
|
+
var Vc = typeof exports == "object" && exports && !exports.nodeType && exports, Nr = Vc && typeof module == "object" && module && !module.nodeType && module, ug = Nr && Nr.exports === Vc, Qr = ug ? ki.Buffer : void 0, hg = Qr ? Qr.isBuffer : void 0, jc = hg || cg, dg = "[object Arguments]", fg = "[object Array]", gg = "[object Boolean]", pg = "[object Date]", mg = "[object Error]", Ag = "[object Function]", vg = "[object Map]", yg = "[object Number]", Cg = "[object Object]", bg = "[object RegExp]", wg = "[object Set]", Eg = "[object String]", xg = "[object WeakMap]", Ig = "[object ArrayBuffer]", Sg = "[object DataView]", Mg = "[object Float32Array]", Bg = "[object Float64Array]", Tg = "[object Int8Array]", Pg = "[object Int16Array]", Dg = "[object Int32Array]", _g = "[object Uint8Array]", kg = "[object Uint8ClampedArray]", Lg = "[object Uint16Array]", Rg = "[object Uint32Array]", Re = {};
|
|
419
419
|
Re[Mg] = Re[Bg] = Re[Tg] = Re[Pg] = Re[Dg] = Re[_g] = Re[kg] = Re[Lg] = Re[Rg] = !0;
|
|
420
420
|
Re[dg] = Re[fg] = Re[Ig] = Re[gg] = Re[Sg] = Re[pg] = Re[mg] = Re[Ag] = Re[vg] = Re[yg] = Re[Cg] = Re[bg] = Re[wg] = Re[Eg] = Re[xg] = !1;
|
|
421
421
|
function Fg(i) {
|
|
422
|
-
return ls(i) &&
|
|
422
|
+
return ls(i) && Yc(i.length) && !!Re[js(i)];
|
|
423
423
|
}
|
|
424
424
|
function Og(i) {
|
|
425
425
|
return function(e) {
|
|
426
426
|
return i(e);
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
var
|
|
429
|
+
var $c = typeof exports == "object" && exports && !exports.nodeType && exports, Ms = $c && typeof module == "object" && module && !module.nodeType && module, Gg = Ms && Ms.exports === $c, bo = Gg && Uc.process, Hr = (function() {
|
|
430
430
|
try {
|
|
431
431
|
var i = Ms && Ms.require && Ms.require("util").types;
|
|
432
432
|
return i || bo && bo.binding && bo.binding("util");
|
|
433
433
|
} catch {
|
|
434
434
|
}
|
|
435
|
-
})(),
|
|
435
|
+
})(), Yr = Hr && Hr.isTypedArray, Kc = Yr ? Og(Yr) : Fg;
|
|
436
436
|
function Ug(i, e) {
|
|
437
|
-
var t = On(i), s = !t && Jo(i), n = !t && !s &&
|
|
437
|
+
var t = On(i), s = !t && Jo(i), n = !t && !s && jc(i), o = !t && !s && !n && Kc(i), a = t || s || n || o, l = a ? og(i.length, String) : [], r = l.length;
|
|
438
438
|
for (var c in i)
|
|
439
439
|
a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
440
440
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
441
441
|
n && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
442
442
|
o && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
443
|
-
|
|
443
|
+
Hc(c, r)) || l.push(c);
|
|
444
444
|
return l;
|
|
445
445
|
}
|
|
446
446
|
function Ng(i, e) {
|
|
@@ -459,12 +459,12 @@ var Hg = Object.prototype, Yg = Hg.hasOwnProperty;
|
|
|
459
459
|
function zg(i) {
|
|
460
460
|
if (!zt(i))
|
|
461
461
|
return Qg(i);
|
|
462
|
-
var e =
|
|
462
|
+
var e = zc(i), t = [];
|
|
463
463
|
for (var s in i)
|
|
464
464
|
s == "constructor" && (e || !Yg.call(i, s)) || t.push(s);
|
|
465
465
|
return t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function qc(i) {
|
|
468
468
|
return Oa(i) ? Ug(i) : zg(i);
|
|
469
469
|
}
|
|
470
470
|
var Os = Ra(Object, "create");
|
|
@@ -546,11 +546,11 @@ Xt.prototype.delete = op;
|
|
|
546
546
|
Xt.prototype.get = ap;
|
|
547
547
|
Xt.prototype.has = rp;
|
|
548
548
|
Xt.prototype.set = lp;
|
|
549
|
-
var
|
|
549
|
+
var Xc = Ra(ki, "Map");
|
|
550
550
|
function cp() {
|
|
551
551
|
this.size = 0, this.__data__ = {
|
|
552
552
|
hash: new Bi(),
|
|
553
|
-
map: new (
|
|
553
|
+
map: new (Xc || Xt)(),
|
|
554
554
|
string: new Bi()
|
|
555
555
|
};
|
|
556
556
|
}
|
|
@@ -588,15 +588,15 @@ cs.prototype.delete = hp;
|
|
|
588
588
|
cs.prototype.get = dp;
|
|
589
589
|
cs.prototype.has = fp;
|
|
590
590
|
cs.prototype.set = gp;
|
|
591
|
-
var
|
|
591
|
+
var Jc = Ng(Object.getPrototypeOf, Object), pp = "[object Object]", mp = Function.prototype, Ap = Object.prototype, Zc = mp.toString, vp = Ap.hasOwnProperty, yp = Zc.call(Object);
|
|
592
592
|
function Cp(i) {
|
|
593
593
|
if (!ls(i) || js(i) != pp)
|
|
594
594
|
return !1;
|
|
595
|
-
var e =
|
|
595
|
+
var e = Jc(i);
|
|
596
596
|
if (e === null)
|
|
597
597
|
return !0;
|
|
598
598
|
var t = vp.call(e, "constructor") && e.constructor;
|
|
599
|
-
return typeof t == "function" && t instanceof t &&
|
|
599
|
+
return typeof t == "function" && t instanceof t && Zc.call(t) == yp;
|
|
600
600
|
}
|
|
601
601
|
function bp() {
|
|
602
602
|
this.__data__ = new Xt(), this.size = 0;
|
|
@@ -616,7 +616,7 @@ function Sp(i, e) {
|
|
|
616
616
|
var t = this.__data__;
|
|
617
617
|
if (t instanceof Xt) {
|
|
618
618
|
var s = t.__data__;
|
|
619
|
-
if (!
|
|
619
|
+
if (!Xc || s.length < Ip - 1)
|
|
620
620
|
return s.push([i, e]), this.size = ++t.size, this;
|
|
621
621
|
t = this.__data__ = new cs(s);
|
|
622
622
|
}
|
|
@@ -631,22 +631,22 @@ us.prototype.delete = wp;
|
|
|
631
631
|
us.prototype.get = Ep;
|
|
632
632
|
us.prototype.has = xp;
|
|
633
633
|
us.prototype.set = Sp;
|
|
634
|
-
var
|
|
635
|
-
|
|
634
|
+
var eu = typeof exports == "object" && exports && !exports.nodeType && exports, zr = eu && typeof module == "object" && module && !module.nodeType && module, Mp = zr && zr.exports === eu, Wr = Mp ? ki.Buffer : void 0;
|
|
635
|
+
Wr && Wr.allocUnsafe;
|
|
636
636
|
function Bp(i, e) {
|
|
637
637
|
return i.slice();
|
|
638
638
|
}
|
|
639
|
-
var
|
|
639
|
+
var Vr = ki.Uint8Array;
|
|
640
640
|
function Tp(i) {
|
|
641
641
|
var e = new i.constructor(i.byteLength);
|
|
642
|
-
return new
|
|
642
|
+
return new Vr(e).set(new Vr(i)), e;
|
|
643
643
|
}
|
|
644
644
|
function Pp(i, e) {
|
|
645
645
|
var t = Tp(i.buffer);
|
|
646
646
|
return new i.constructor(t, i.byteOffset, i.length);
|
|
647
647
|
}
|
|
648
648
|
function Dp(i) {
|
|
649
|
-
return typeof i.constructor == "function" && !
|
|
649
|
+
return typeof i.constructor == "function" && !zc(i) ? Of(Jc(i)) : {};
|
|
650
650
|
}
|
|
651
651
|
function _p(i) {
|
|
652
652
|
return function(e, t, s) {
|
|
@@ -665,7 +665,7 @@ function Cn(i, e, t) {
|
|
|
665
665
|
var s, n, o, a, l, r, c = 0, u = !1, d = !1, f = !0;
|
|
666
666
|
if (typeof i != "function")
|
|
667
667
|
throw new TypeError(Lp);
|
|
668
|
-
e =
|
|
668
|
+
e = Rr(e) || 0, zt(t) && (u = !!t.leading, d = "maxWait" in t, o = d ? Rp(Rr(t.maxWait) || 0, e) : o, f = "trailing" in t ? !!t.trailing : f);
|
|
669
669
|
function h(x) {
|
|
670
670
|
var E = s, B = n;
|
|
671
671
|
return s = n = void 0, c = x, a = i.apply(B, E), a;
|
|
@@ -719,7 +719,7 @@ function ea(i, e) {
|
|
|
719
719
|
return i[e];
|
|
720
720
|
}
|
|
721
721
|
function Gp(i) {
|
|
722
|
-
return Jf(i,
|
|
722
|
+
return Jf(i, qc(i));
|
|
723
723
|
}
|
|
724
724
|
function Up(i, e, t, s, n, o, a) {
|
|
725
725
|
var l = ea(i, t), r = ea(e, t), c = a.get(r);
|
|
@@ -729,23 +729,23 @@ function Up(i, e, t, s, n, o, a) {
|
|
|
729
729
|
}
|
|
730
730
|
var u = o ? o(l, r, t + "", i, e, a) : void 0, d = u === void 0;
|
|
731
731
|
if (d) {
|
|
732
|
-
var f = On(r), h = !f &&
|
|
732
|
+
var f = On(r), h = !f && jc(r), g = !f && !h && Kc(r);
|
|
733
733
|
u = r, f || h || g ? On(l) ? u = l : Op(l) ? u = Uf(l) : h ? (d = !1, u = Bp(r)) : g ? (d = !1, u = Pp(r)) : u = [] : Cp(r) || Jo(r) ? (u = l, Jo(l) ? u = Gp(l) : (!zt(l) || La(l)) && (u = Dp(r))) : d = !1;
|
|
734
734
|
}
|
|
735
735
|
d && (a.set(r, u), n(u, r, s, o, a), a.delete(r)), Zo(i, t, u);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function tu(i, e, t, s, n) {
|
|
738
738
|
i !== e && kp(e, function(o, a) {
|
|
739
739
|
if (n || (n = new us()), zt(o))
|
|
740
|
-
Up(i, e, a, t,
|
|
740
|
+
Up(i, e, a, t, tu, s, n);
|
|
741
741
|
else {
|
|
742
742
|
var l = s ? s(ea(i, a), o, a + "", i, e, n) : void 0;
|
|
743
743
|
l === void 0 && (l = o), Zo(i, a, l);
|
|
744
744
|
}
|
|
745
|
-
},
|
|
745
|
+
}, qc);
|
|
746
746
|
}
|
|
747
747
|
var Np = sg(function(i, e, t) {
|
|
748
|
-
|
|
748
|
+
tu(i, e, t);
|
|
749
749
|
});
|
|
750
750
|
function ta({ Cesium: i, tileset: e }) {
|
|
751
751
|
const t = e.leiting;
|
|
@@ -798,25 +798,25 @@ const Gi = {
|
|
|
798
798
|
Loading: 1,
|
|
799
799
|
Loaded: 2,
|
|
800
800
|
Error: 3
|
|
801
|
-
}, Mi = 4294967295, Nt = 65535, ia = 255, Qp = 8,
|
|
802
|
-
let
|
|
801
|
+
}, Mi = 4294967295, Nt = 65535, ia = 255, Qp = 8, jr = 9, Hp = 0, Yp = 99, zp = 67324752, iu = 134695760, Wp = iu, $r = 33639248, Vp = 101010256, Kr = 101075792, jp = 117853008, Ui = 22, Eo = 20, xo = 56, $p = 12, Kp = 20, qr = 4, qp = 1, Xp = 39169, Jp = 10, Zp = 1, em = 21589, tm = 28789, im = 25461, sm = 6534, nm = 30837, om = 30805, Xr = 1, am = 6, Jr = 8, Zr = 2048, rm = 16, lm = 1, cm = 2, um = 4, hm = 32, el = 61440, Io = 16384, So = 73, dm = 420, fm = 2048, gm = 1024, pm = 512, mm = "/", Mo = 30, Am = 10, vm = 14, ym = 18, Ge = void 0, hi = "undefined", Li = "function", Cm = 64;
|
|
802
|
+
let su = 2;
|
|
803
803
|
try {
|
|
804
|
-
typeof navigator != hi && navigator.hardwareConcurrency && (
|
|
804
|
+
typeof navigator != hi && navigator.hardwareConcurrency && (su = navigator.hardwareConcurrency);
|
|
805
805
|
} catch {
|
|
806
806
|
}
|
|
807
807
|
const bm = {
|
|
808
808
|
workerURI: "./core/web-worker-wasm.js",
|
|
809
809
|
wasmURI: "./core/streams/zlib-wasm/zlib-streams.wasm",
|
|
810
810
|
chunkSize: 64 * 1024,
|
|
811
|
-
maxWorkers:
|
|
811
|
+
maxWorkers: su,
|
|
812
812
|
terminateWorkerTimeout: 5e3,
|
|
813
813
|
useWebWorkers: !0,
|
|
814
814
|
useCompressionStream: !0,
|
|
815
815
|
CompressionStream: typeof CompressionStream != hi && CompressionStream,
|
|
816
816
|
DecompressionStream: typeof DecompressionStream != hi && DecompressionStream
|
|
817
|
-
},
|
|
817
|
+
}, nu = Object.assign({}, bm);
|
|
818
818
|
function wm() {
|
|
819
|
-
return
|
|
819
|
+
return nu;
|
|
820
820
|
}
|
|
821
821
|
function Em(i) {
|
|
822
822
|
return Math.max(i.chunkSize, Cm);
|
|
@@ -839,19 +839,19 @@ function co(i) {
|
|
|
839
839
|
xt("baseURI", e), xt("wasmURI", f), xt("workerURI", d), xt("chunkSize", t), xt("maxWorkers", s), xt("terminateWorkerTimeout", n), xt("useCompressionStream", o), xt("useWebWorkers", a), xt("CompressionStream", l), xt("DecompressionStream", r), xt("CompressionStreamZlib", c), xt("DecompressionStreamZlib", u);
|
|
840
840
|
}
|
|
841
841
|
function xt(i, e) {
|
|
842
|
-
e !== Ge && (
|
|
842
|
+
e !== Ge && (nu[i] = e);
|
|
843
843
|
}
|
|
844
844
|
function xm(i) {
|
|
845
845
|
let e;
|
|
846
846
|
i({ workerURI: () => (e || (e = "data:text/javascript," + encodeURIComponent(`(t=>{"function"==typeof define&&define.amd?define(t):t()})(function(){"use strict";const{Array:t,Object:e,Number:n,Math:s,Error:r,Uint8Array:o,Uint16Array:i,Uint32Array:c,Int32Array:a,Map:h,DataView:f,Promise:l,TextEncoder:u,crypto:w,postMessage:p,TransformStream:d,ReadableStream:y,WritableStream:m,CompressionStream:g,DecompressionStream:S}=self,b=void 0,v="undefined",k="function",z=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;z[t]=e}class C{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,s=0|t.length;s>n;n++)e=e>>>8^z[255&(e^t[n])];this.t=e}get(){return~this.t}}class A extends d{constructor(){let t;const e=new C;super({transform(t,n){e.append(t),n.enqueue(t)},flush(){const n=new o(4);new f(n.buffer).setUint32(0,e.get()),t.value=n}}),t=this}}const x={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],s=x.o(n);return 32===s?t.concat(e):x.i(e,s,0|n,t.slice(0,t.length-1))},h(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+x.o(n)},l(t,e){if(32*t.length<e)return t;const n=(t=t.slice(0,s.ceil(e/32))).length;return e&=31,n>0&&e&&(t[n-1]=x.u(e,t[n-1]&2147483648>>e-1,1)),t},u:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,o:t=>s.round(t/1099511627776)||32,i(t,e,n,s){for(void 0===s&&(s=[]);e>=32;e-=32)s.push(n),n=0;if(0===e)return s.concat(t);for(let r=0;r<t.length;r++)s.push(n|t[r]>>>e),n=t[r]<<32-e;const r=t.length?t[t.length-1]:0,o=x.o(r);return s.push(x.u(e+o&31,e+o>32?n:s.pop(),1)),s}},I={bytes:{p(t){const e=x.h(t)/8,n=new o(e);let s;for(let r=0;e>r;r++)3&r||(s=t[r/4]),n[r]=s>>>24,s<<=8;return n},m(t){const e=[];let n,s=0;for(n=0;n<t.length;n++)s=s<<8|t[n],3&~n||(e.push(s),s=0);return 3&n&&e.push(x.u(8*(3&n),s)),e}}},R=class{constructor(t){const e=this;e.blockSize=512,e.S=[1732584193,4023233417,2562383102,271733878,3285377520],e.v=[1518500249,1859775393,2400959708,3395469782],t?(e.k=t.k.slice(0),e.C=t.C.slice(0),e.A=t.A):e.reset()}reset(){const t=this;return t.k=t.S.slice(0),t.C=[],t.A=0,t}update(t){const e=this;"string"==typeof t&&(t=I.I.m(t));const n=e.C=x.concat(e.C,t),s=e.A,o=e.A=s+x.h(t);if(o>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const i=new c(n);let a=0;for(let t=e.blockSize+s-(e.blockSize+s&e.blockSize-1);o>=t;t+=e.blockSize)e.R(i.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),e}P(){const t=this;let e=t.C;const n=t.k;e=x.concat(e,[x.u(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(s.floor(t.A/4294967296)),e.push(0|t.A);e.length;)t.R(e.splice(0,16));return t.reset(),n}U(t,e,n,s){return t>19?t>39?t>59?t>79?void 0:e^n^s:e&n|e&s|n&s:e^n^s:e&n|~e&s}V(t,e){return e<<t|e>>>32-t}R(e){const n=this,r=n.k,o=t(80);for(let t=0;16>t;t++)o[t]=e[t];let i=r[0],c=r[1],a=r[2],h=r[3],f=r[4];for(let t=0;79>=t;t++){16>t||(o[t]=n.V(1,o[t-3]^o[t-8]^o[t-14]^o[t-16]));const e=n.V(5,i)+n.U(t,c,a,h)+f+o[t]+n.v[s.floor(t/20)]|0;f=h,h=a,a=n.V(30,c),c=i,i=e}r[0]=r[0]+i|0,r[1]=r[1]+c|0,r[2]=r[2]+a|0,r[3]=r[3]+h|0,r[4]=r[4]+f|0}},P={getRandomValues(t){const e=new c(t.buffer),n=t=>{let e=987654321;const n=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&n,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,o=0;o<t.length;o+=4){const t=n(4294967296*(r||s.random()));r=987654071*t(),e[o/4]=4294967296*t()|0}return t}},U={importKey:t=>new U.M(I.bytes.m(t)),_(t,e,n,s){if(n=n||1e4,0>s||0>n)throw new r("invalid params to pbkdf2");const o=1+(s>>5)<<2;let i,c,a,h,l;const u=new ArrayBuffer(o),w=new f(u);let p=0;const d=x;for(e=I.bytes.m(e),l=1;(o||1)>p;l++){for(i=c=t.encrypt(d.concat(e,[l])),a=1;n>a;a++)for(c=t.encrypt(c),h=0;h<c.length;h++)i[h]^=c[h];for(a=0;(o||1)>p&&a<i.length;a++)w.setInt32(p,i[a]),p+=4}return u.slice(0,s/8)},M:class{constructor(t){const e=this,n=e.B=R,s=[[],[]];e.D=[new n,new n];const r=e.D[0].blockSize/32;t.length>r&&(t=(new n).update(t).P());for(let e=0;r>e;e++)s[0][e]=909522486^t[e],s[1][e]=1549556828^t[e];e.D[0].update(s[0]),e.D[1].update(s[1]),e.W=new n(e.D[0])}reset(){const t=this;t.W=new t.B(t.D[0]),t.K=!1}update(t){this.K=!0,this.W.update(t)}digest(){const t=this,e=t.W.P(),n=new t.B(t.D[1]).update(e).P();return t.reset(),n}encrypt(t){if(this.K)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},V=typeof w!=v&&typeof w.getRandomValues==k,M="Invalid password",_="Invalid signature",B="zipjs-abort-check-password";function D(t){return V?w.getRandomValues(t):P.getRandomValues(t)}const W=16,K={name:"PBKDF2"},E=e.assign({hash:{name:"HMAC"}},K),L=e.assign({iterations:1e3,hash:{name:"SHA-1"}},K),O=["deriveBits"],T=[8,12,16],j=[16,24,32],H=10,Z=[0,0,0,0],F=typeof w!=v,N=F&&w.subtle,q=F&&typeof N!=v,G=I.bytes,J=class{constructor(t){const e=this;e.L=[[[],[],[],[],[]],[[],[],[],[],[]]],e.L[0][0][0]||e.O();const n=e.L[0][4],s=e.L[1],o=t.length;let i,c,a,h=1;if(4!==o&&6!==o&&8!==o)throw new r("invalid aes key size");for(e.v=[c=t.slice(0),a=[]],i=o;4*o+28>i;i++){let t=c[i-1];(i%o===0||8===o&&i%o===4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],i%o===0&&(t=t<<8^t>>>24^h<<24,h=h<<1^283*(h>>7))),c[i]=c[i-o]^t}for(let t=0;i;t++,i--){const e=c[3&t?i:i-4];a[t]=4>=i||4>t?e:s[0][n[e>>>24]]^s[1][n[e>>16&255]]^s[2][n[e>>8&255]]^s[3][n[255&e]]}}encrypt(t){return this.T(t,0)}decrypt(t){return this.T(t,1)}O(){const t=this.L[0],e=this.L[1],n=t[4],s=e[4],r=[],o=[];let i,c,a,h;for(let t=0;256>t;t++)o[(r[t]=t<<1^283*(t>>7))^t]=t;for(let f=i=0;!n[f];f^=c||1,i=o[i]||1){let o=i^i<<1^i<<2^i<<3^i<<4;o=o>>8^255&o^99,n[f]=o,s[o]=f,h=r[a=r[c=r[f]]];let l=16843009*h^65537*a^257*c^16843008*f,u=257*r[o]^16843008*o;for(let n=0;4>n;n++)t[n][f]=u=u<<24^u>>>8,e[n][o]=l=l<<24^l>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}T(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.v[e],s=n.length/4-2,o=[0,0,0,0],i=this.L[e],c=i[0],a=i[1],h=i[2],f=i[3],l=i[4];let u,w,p,d=t[0]^n[0],y=t[e?3:1]^n[1],m=t[2]^n[2],g=t[e?1:3]^n[3],S=4;for(let t=0;s>t;t++)u=c[d>>>24]^a[y>>16&255]^h[m>>8&255]^f[255&g]^n[S],w=c[y>>>24]^a[m>>16&255]^h[g>>8&255]^f[255&d]^n[S+1],p=c[m>>>24]^a[g>>16&255]^h[d>>8&255]^f[255&y]^n[S+2],g=c[g>>>24]^a[d>>16&255]^h[y>>8&255]^f[255&m]^n[S+3],S+=4,d=u,y=w,m=p;for(let t=0;4>t;t++)o[e?3&-t:t]=l[d>>>24]<<24^l[y>>16&255]<<16^l[m>>8&255]<<8^l[255&g]^n[S++],u=d,d=y,y=m,m=g,g=u;return o}},Q=class{constructor(t,e){this.j=t,this.H=e,this.Z=e}reset(){this.Z=this.H}update(t){return this.F(this.j,t,this.Z)}N(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,n=t>>8&255,s=255&t;255===e?(e=0,255===n?(n=0,255===s?s=0:++s):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=s}return t}q(t){0===(t[0]=this.N(t[0]))&&(t[1]=this.N(t[1]))}F(t,e,n){let s;if(!(s=e.length))return[];const r=x.h(e);for(let r=0;s>r;r+=4){this.q(n);const s=t.encrypt(n);e[r]^=s[0],e[r+1]^=s[1],e[r+2]^=s[2],e[r+3]^=s[3]}return x.l(e,r)}},X=U.M;let Y=F&&q&&typeof N.importKey==k,$=F&&q&&typeof N.deriveBits==k;class tt extends d{constructor({password:t,rawPassword:n,signed:s,encryptionStrength:i,checkPasswordOnly:c}){super({start(){e.assign(this,{ready:new l(t=>this.G=t),password:rt(t,n),signed:s,J:i-1,pending:new o})},async transform(t,e){const n=this,{password:s,J:i,G:a,ready:h}=n;s?(await(async(t,e,n,s)=>{const o=await st(t,e,n,it(s,0,T[e])),i=it(s,T[e]);if(o[0]!=i[0]||o[1]!=i[1])throw new r(M)})(n,i,s,it(t,0,T[i]+2)),t=it(t,T[i]+2),c?e.error(new r(B)):a()):await h;const f=new o(t.length-H-(t.length-H)%W);e.enqueue(nt(n,t,f,0,H,!0))},async flush(t){const{signed:e,X:n,Y:s,pending:i,ready:c}=this;if(s&&n){await c;const a=it(i,0,i.length-H),h=it(i,i.length-H);let f=new o;if(a.length){const t=at(G,a);s.update(t);const e=n.update(t);f=ct(G,e)}if(e){const t=it(ct(G,s.digest()),0,H);for(let e=0;H>e;e++)if(t[e]!=h[e])throw new r(_)}t.enqueue(f)}}})}}class et extends d{constructor({password:t,rawPassword:n,encryptionStrength:s}){let r;super({start(){e.assign(this,{ready:new l(t=>this.G=t),password:rt(t,n),J:s-1,pending:new o})},async transform(t,e){const n=this,{password:s,J:r,G:i,ready:c}=n;let a=new o;s?(a=await(async(t,e,n)=>{const s=D(new o(T[e]));return ot(s,await st(t,e,n,s))})(n,r,s),i()):await c;const h=new o(a.length+t.length-t.length%W);h.set(a,0),e.enqueue(nt(n,t,h,a.length,0))},async flush(t){const{X:e,Y:n,pending:s,ready:i}=this;if(n&&e){await i;let c=new o;if(s.length){const t=e.update(at(G,s));n.update(t),c=ct(G,t)}r.signature=ct(G,n.digest()).slice(0,H),t.enqueue(ot(c,r.signature))}}}),r=this}}function nt(t,e,n,s,r,i){const{X:c,Y:a,pending:h}=t,f=e.length-r;let l;for(h.length&&(e=ot(h,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new o(e)).set(n,0)}return t})(n,f-f%W)),l=0;f-W>=l;l+=W){const t=at(G,it(e,l,l+W));i&&a.update(t);const r=c.update(t);i||a.update(r),n.set(ct(G,r),l+s)}return t.pending=it(e,l),n}async function st(n,s,r,i){n.password=null;const c=await(async(t,e,n,s,r)=>{if(!Y)return U.importKey(e);try{return await N.importKey("raw",e,n,!1,r)}catch{return Y=!1,U.importKey(e)}})(0,r,E,0,O),a=await(async(t,e,n)=>{if(!$)return U._(e,t.salt,L.iterations,n);try{return await N.deriveBits(t,e,n)}catch{return $=!1,U._(e,t.salt,L.iterations,n)}})(e.assign({salt:i},L),c,8*(2*j[s]+2)),h=new o(a),f=at(G,it(h,0,j[s])),l=at(G,it(h,j[s],2*j[s])),u=it(h,2*j[s]);return e.assign(n,{keys:{key:f,$:l,passwordVerification:u},X:new Q(new J(f),t.from(Z)),Y:new X(l)}),u}function rt(t,e){return e===b?(t=>{if(typeof u==v){const e=new o((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new u).encode(t)})(t):e}function ot(t,e){let n=t;return t.length+e.length&&(n=new o(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function it(t,e,n){return t.subarray(e,n)}function ct(t,e){return t.p(e)}function at(t,e){return t.m(e)}class ht extends d{constructor({password:t,passwordVerification:n,checkPasswordOnly:s}){super({start(){e.assign(this,{password:t,passwordVerification:n}),wt(this,t)},transform(t,e){const n=this;if(n.password){const e=lt(n,t.subarray(0,12));if(n.password=null,e.at(-1)!=n.passwordVerification)throw new r(M);t=t.subarray(12)}s?e.error(new r(B)):e.enqueue(lt(n,t))}})}}class ft extends d{constructor({password:t,passwordVerification:n}){super({start(){e.assign(this,{password:t,passwordVerification:n}),wt(this,t)},transform(t,e){const n=this;let s,r;if(n.password){n.password=null;const e=D(new o(12));e[11]=n.passwordVerification,s=new o(t.length+e.length),s.set(ut(n,e),0),r=12}else s=new o(t.length),r=0;s.set(ut(n,t),r),e.enqueue(s)}})}}function lt(t,e){const n=new o(e.length);for(let s=0;s<e.length;s++)n[s]=dt(t)^e[s],pt(t,n[s]);return n}function ut(t,e){const n=new o(e.length);for(let s=0;s<e.length;s++)n[s]=dt(t)^e[s],pt(t,e[s]);return n}function wt(t,n){const s=[305419896,591751049,878082192];e.assign(t,{keys:s,tt:new C(s[0]),et:new C(s[2])});for(let e=0;e<n.length;e++)pt(t,n.charCodeAt(e))}function pt(t,e){let[n,r,o]=t.keys;t.tt.append([e]),n=~t.tt.get(),r=mt(s.imul(mt(r+yt(n)),134775813)+1),t.et.append([r>>>24]),o=~t.et.get(),t.keys=[n,r,o]}function dt(t){const e=2|t.keys[2];return yt(s.imul(e,1^e)>>>8)}function yt(t){return 255&t}function mt(t){return 4294967295&t}class gt extends d{constructor(t,{chunkSize:e,nt:n,CompressionStream:s}){super({});const{compressed:r,encrypted:o,useCompressionStream:i,zipCrypto:c,signed:a,level:h}=t,l=this;let u,w,p=super.readable;o&&!c||!a||(u=new A,p=kt(p,u)),r&&(p=vt(p,i,{level:h,chunkSize:e},s,n,s)),o&&(c?p=kt(p,new ft(t)):(w=new et(t),p=kt(p,w))),bt(l,p,()=>{let t;o&&!c&&(t=w.signature),o&&!c||!a||(t=new f(u.value.buffer).getUint32(0)),l.signature=t})}}class St extends d{constructor(t,{chunkSize:e,st:n,DecompressionStream:s}){super({});const{zipCrypto:o,encrypted:i,signed:c,signature:a,compressed:h,useCompressionStream:l,rt:u}=t;let w,p,d=super.readable;i&&(o?d=kt(d,new ht(t)):(p=new tt(t),d=kt(d,p))),h&&(d=vt(d,l,{chunkSize:e,rt:u},s,n,s)),i&&!o||!c||(w=new A,d=kt(d,w)),bt(this,d,()=>{if((!i||o)&&c){const t=new f(w.value.buffer);if(a!=t.getUint32(0,!1))throw new r(_)}})}}function bt(t,n,s){n=kt(n,new d({flush:s})),e.defineProperty(t,"readable",{get:()=>n})}function vt(t,e,n,s,r,o){const i=e&&s?s:r||o,c=n.rt?"deflate64-raw":"deflate-raw";try{t=kt(t,new i(c,n))}catch(s){if(!e)throw s;if(r)t=kt(t,new r(c,n));else{if(!o)throw s;t=kt(t,new o(c,n))}}return t}function kt(t,e){return t.pipeThrough(e)}const zt="data",Ct="close";class At extends d{constructor(t,n){super({});const s=this,{codecType:o}=t;let i;o.startsWith("deflate")?i=gt:o.startsWith("inflate")&&(i=St),s.outputSize=0;let c=0;const a=new i(t,n),h=super.readable,f=new d({transform(t,e){t&&t.length&&(c+=t.length,e.enqueue(t))},flush(){e.assign(s,{inputSize:c})}}),l=new d({transform(e,n){if(e&&e.length&&(n.enqueue(e),s.outputSize+=e.length,t.outputSize!==b&&s.outputSize>t.outputSize))throw new r("Invalid uncompressed size")},flush(){const{signature:t}=a;e.assign(s,{signature:t,inputSize:c})}});e.defineProperty(s,"readable",{get:()=>h.pipeThrough(f).pipeThrough(a).pipeThrough(l)})}}class xt extends d{constructor(t){let e;super({transform:function n(s,r){if(e){const t=new o(e.length+s.length);t.set(e),t.set(s,e.length),s=t,e=null}s.length>t?(r.enqueue(s.slice(0,t)),n(s.slice(t),r)):e=s},flush(t){e&&e.length&&t.enqueue(e)}})}}const It=new h,Rt=new h;let Pt,Ut,Vt,Mt,_t,Bt=0;async function Dt(t){try{const{options:e,config:s}=t;if(!e.useCompressionStream)try{await self.initModule(t.config)}catch{e.useCompressionStream=!0}s.CompressionStream=self.CompressionStream,s.DecompressionStream=self.DecompressionStream;const r={highWaterMark:1},o=t.readable||new y({async pull(t){const e=new l(t=>It.set(Bt,t));Wt({type:"pull",messageId:Bt}),Bt=(Bt+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await e;t.enqueue(s),r&&t.close()}},r),i=t.writable||new m({async write(t){let e;const s=new l(t=>e=t);Rt.set(Bt,e),Wt({type:zt,value:t,messageId:Bt}),Bt=(Bt+1)%n.MAX_SAFE_INTEGER,await s}},r),c=new At(e,s);Pt=new AbortController;const{signal:a}=Pt;await o.pipeThrough(c).pipeThrough(new xt(s.chunkSize)).pipeTo(i,{signal:a,preventClose:!0,preventAbort:!0}),await i.getWriter().close();const{signature:h,inputSize:f,outputSize:u}=c;Wt({type:Ct,result:{signature:h,inputSize:f,outputSize:u}})}catch(t){t.outputSize=0,Kt(t)}}function Wt(t){let{value:e}=t;if(e)if(e.length)try{e=new o(e),t.value=e.buffer,p(t,[t.value])}catch{p(t)}else p(t);else p(t)}function Kt(t=new r("Unknown error")){const{message:e,stack:n,code:s,name:o,outputSize:i}=t;p({error:{message:e,stack:n,code:s,name:o,outputSize:i}})}function Et(t,e,n={}){const i="number"==typeof n.level?n.level:-1,c="number"==typeof n.ot?n.ot:65536,a="number"==typeof n.it?n.it:65536;return new d({start(){let n;if(this.ct=Vt(c),this.in=Vt(a),this.it=a,this.ht=new o(c),t?(this.ft=Ut.deflate_process,this.lt=Ut.deflate_last_consumed,this.ut=Ut.deflate_end,this.wt=Ut.deflate_new(),n="gzip"===e?Ut.deflate_init_gzip(this.wt,i):"deflate-raw"===e?Ut.deflate_init_raw(this.wt,i):Ut.deflate_init(this.wt,i)):"deflate64-raw"===e?(this.ft=Ut.inflate9_process,this.lt=Ut.inflate9_last_consumed,this.ut=Ut.inflate9_end,this.wt=Ut.inflate9_new(),n=Ut.inflate9_init_raw(this.wt)):(this.ft=Ut.inflate_process,this.lt=Ut.inflate_last_consumed,this.ut=Ut.inflate_end,this.wt=Ut.inflate_new(),n="deflate-raw"===e?Ut.inflate_init_raw(this.wt):"gzip"===e?Ut.inflate_init_gzip(this.wt):Ut.inflate_init(this.wt)),0!==n)throw new r("init failed:"+n)},transform(e,n){try{const i=e,a=new o(_t.buffer),h=this.ft,f=this.lt,l=this.ct,u=this.ht;let w=0;for(;w<i.length;){const e=s.min(i.length-w,32768);this.in&&this.it>=e||(this.in&&Mt&&Mt(this.in),this.in=Vt(e),this.it=e),a.set(i.subarray(w,w+e),this.in);const o=h(this.wt,this.in,e,l,c,0),p=16777215&o;if(p&&(u.set(a.subarray(l,l+p),0),n.enqueue(u.slice(0,p))),!t){const t=o>>24&255,e=128&t?t-256:t;if(0>e)throw new r("process error:"+e)}const d=f(this.wt);if(0===d)break;w+=d}}catch(t){this.ut&&this.wt&&this.ut(this.wt),this.in&&Mt&&Mt(this.in),this.ct&&Mt&&Mt(this.ct),n.error(t)}},flush(e){try{const n=new o(_t.buffer),s=this.ft,i=this.ct,a=this.ht;for(;;){const o=s(this.wt,0,0,i,c,4),h=16777215&o,f=o>>24&255;if(!t){const t=128&f?f-256:f;if(0>t)throw new r("process error:"+t)}if(h&&(a.set(n.subarray(i,i+h),0),e.enqueue(a.slice(0,h))),1===f||0===h)break}}catch(t){e.error(t)}finally{if(this.ut&&this.wt){const t=this.ut(this.wt);0!==t&&e.error(new r("end error:"+t))}this.in&&Mt&&Mt(this.in),this.ct&&Mt&&Mt(this.ct)}}})}addEventListener("message",({data:t})=>{const{type:e,messageId:n,value:s,done:r}=t;try{if("start"==e&&Dt(t),e==zt){const t=It.get(n);It.delete(n),t({value:new o(s),done:r})}if("ack"==e){const t=Rt.get(n);Rt.delete(n),t()}e==Ct&&Pt.abort()}catch(t){Kt(t)}});class Lt{constructor(t="deflate",e){return Et(!0,t,e)}}class Ot{constructor(t="deflate",e){return Et(!1,t,e)}}let Tt=!1;self.initModule=async t=>{try{const e=await(async(t,{baseURI:e})=>{if(!Tt){let n,s;try{try{s=new URL(t,e)}catch{}const r=await fetch(s);n=await r.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;n=(t=>{const e=t.split(",")[1],n=atob(e),s=n.length,r=new o(s);for(let t=0;s>t;++t)r[t]=n.charCodeAt(t);return r.buffer})(t)}(t=>{if(Ut=t,({malloc:Vt,free:Mt,memory:_t}=Ut),"function"!=typeof Vt||"function"!=typeof Mt||!_t)throw Ut=Vt=Mt=_t=null,new r("Invalid WASM module")})((await WebAssembly.instantiate(n)).instance.exports),Tt=!0}})(t.wasmURI,t);return t.nt=Lt,t.st=Ot,e}catch{}}});
|
|
847
847
|
`)), e) });
|
|
848
848
|
}
|
|
849
|
-
const
|
|
849
|
+
const ou = [];
|
|
850
850
|
for (let i = 0; i < 256; i++) {
|
|
851
851
|
let e = i;
|
|
852
852
|
for (let t = 0; t < 8; t++)
|
|
853
853
|
e & 1 ? e = e >>> 1 ^ 3988292384 : e = e >>> 1;
|
|
854
|
-
|
|
854
|
+
ou[i] = e;
|
|
855
855
|
}
|
|
856
856
|
class Un {
|
|
857
857
|
constructor(e) {
|
|
@@ -860,14 +860,14 @@ class Un {
|
|
|
860
860
|
append(e) {
|
|
861
861
|
let t = this.crc | 0;
|
|
862
862
|
for (let s = 0, n = e.length | 0; s < n; s++)
|
|
863
|
-
t = t >>> 8 ^
|
|
863
|
+
t = t >>> 8 ^ ou[(t ^ e[s]) & 255];
|
|
864
864
|
this.crc = t;
|
|
865
865
|
}
|
|
866
866
|
get() {
|
|
867
867
|
return ~this.crc;
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
class
|
|
870
|
+
class au extends TransformStream {
|
|
871
871
|
constructor() {
|
|
872
872
|
let e;
|
|
873
873
|
const t = new Un();
|
|
@@ -984,8 +984,8 @@ const ht = {
|
|
|
984
984
|
return t & 3 && e.push(ht.partial(8 * (t & 3), s)), e;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
},
|
|
988
|
-
|
|
987
|
+
}, ru = {};
|
|
988
|
+
ru.sha1 = class {
|
|
989
989
|
constructor(i) {
|
|
990
990
|
const e = this;
|
|
991
991
|
e.blockSize = 512, e._init = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], e._key = [1518500249, 1859775393, 2400959708, 3395469782], i ? (e._h = i._h.slice(0), e._buffer = i._buffer.slice(0), e._length = i._length) : e.reset();
|
|
@@ -1069,8 +1069,8 @@ au.sha1 = class {
|
|
|
1069
1069
|
t[0] = t[0] + n | 0, t[1] = t[1] + o | 0, t[2] = t[2] + a | 0, t[3] = t[3] + l | 0, t[4] = t[4] + r | 0;
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1072
|
+
const lu = {};
|
|
1073
|
+
lu.aes = class {
|
|
1074
1074
|
constructor(i) {
|
|
1075
1075
|
const e = this;
|
|
1076
1076
|
e._tables = [[[], [], [], [], []], [[], [], [], [], []]], e._tables[0][0][0] || e._precompute();
|
|
@@ -1168,8 +1168,8 @@ const Sm = {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
return i;
|
|
1170
1170
|
}
|
|
1171
|
-
},
|
|
1172
|
-
|
|
1171
|
+
}, cu = {};
|
|
1172
|
+
cu.ctrGladman = class {
|
|
1173
1173
|
constructor(i, e) {
|
|
1174
1174
|
this._prf = i, this._initIv = e, this._iv = e;
|
|
1175
1175
|
}
|
|
@@ -1230,7 +1230,7 @@ const Ti = {
|
|
|
1230
1230
|
};
|
|
1231
1231
|
Ti.hmacSha1 = class {
|
|
1232
1232
|
constructor(i) {
|
|
1233
|
-
const e = this, t = e._hash =
|
|
1233
|
+
const e = this, t = e._hash = ru.sha1, s = [[], []];
|
|
1234
1234
|
e._baseHash = [new t(), new t()];
|
|
1235
1235
|
const n = e._baseHash[0].blockSize / 32;
|
|
1236
1236
|
i.length > n && (i = new t().update(i).finalize());
|
|
@@ -1256,19 +1256,19 @@ Ti.hmacSha1 = class {
|
|
|
1256
1256
|
return this.update(i), this.digest(i);
|
|
1257
1257
|
}
|
|
1258
1258
|
};
|
|
1259
|
-
const Mm = typeof crypto != hi && typeof crypto.getRandomValues == Li,
|
|
1260
|
-
function
|
|
1259
|
+
const Mm = typeof crypto != hi && typeof crypto.getRandomValues == Li, uu = "Invalid password", hu = "Invalid signature", Ga = "zipjs-abort-check-password";
|
|
1260
|
+
function du(i) {
|
|
1261
1261
|
return Mm ? crypto.getRandomValues(i) : Sm.getRandomValues(i);
|
|
1262
1262
|
}
|
|
1263
|
-
const Wi = 16, Bm = "raw",
|
|
1264
|
-
let
|
|
1263
|
+
const Wi = 16, Bm = "raw", fu = { name: "PBKDF2" }, Tm = { name: "HMAC" }, Pm = "SHA-1", Dm = Object.assign({ hash: Tm }, fu), sa = Object.assign({ iterations: 1e3, hash: { name: Pm } }, fu), _m = ["deriveBits"], Gs = [8, 12, 16], ys = [16, 24, 32], si = 10, km = [0, 0, 0, 0], uo = typeof crypto != hi, $s = uo && crypto.subtle, gu = uo && typeof $s != hi, Ht = Nn.bytes, Lm = lu.aes, Rm = cu.ctrGladman, Fm = Ti.hmacSha1;
|
|
1264
|
+
let tl = uo && gu && typeof $s.importKey == Li, il = uo && gu && typeof $s.deriveBits == Li;
|
|
1265
1265
|
class Om extends TransformStream {
|
|
1266
1266
|
constructor({ password: e, rawPassword: t, signed: s, encryptionStrength: n, checkPasswordOnly: o }) {
|
|
1267
1267
|
super({
|
|
1268
1268
|
start() {
|
|
1269
1269
|
Object.assign(this, {
|
|
1270
1270
|
ready: new Promise((a) => this.resolveReady = a),
|
|
1271
|
-
password:
|
|
1271
|
+
password: Au(e, t),
|
|
1272
1272
|
signed: s,
|
|
1273
1273
|
strength: n - 1,
|
|
1274
1274
|
pending: new Uint8Array()
|
|
@@ -1283,7 +1283,7 @@ class Om extends TransformStream {
|
|
|
1283
1283
|
} = r;
|
|
1284
1284
|
c ? (await Um(r, u, c, St(a, 0, Gs[u] + 2)), a = St(a, Gs[u] + 2), o ? l.error(new Error(Ga)) : d()) : await f;
|
|
1285
1285
|
const h = new Uint8Array(a.length - si - (a.length - si) % Wi);
|
|
1286
|
-
l.enqueue(
|
|
1286
|
+
l.enqueue(pu(r, a, h, 0, si, !0));
|
|
1287
1287
|
},
|
|
1288
1288
|
async flush(a) {
|
|
1289
1289
|
const {
|
|
@@ -1307,7 +1307,7 @@ class Om extends TransformStream {
|
|
|
1307
1307
|
const v = St(Us(Ht, c.digest()), 0, si);
|
|
1308
1308
|
for (let m = 0; m < si; m++)
|
|
1309
1309
|
if (v[m] != h[m])
|
|
1310
|
-
throw new Error(
|
|
1310
|
+
throw new Error(hu);
|
|
1311
1311
|
}
|
|
1312
1312
|
a.enqueue(g);
|
|
1313
1313
|
}
|
|
@@ -1322,7 +1322,7 @@ class Gm extends TransformStream {
|
|
|
1322
1322
|
start() {
|
|
1323
1323
|
Object.assign(this, {
|
|
1324
1324
|
ready: new Promise((o) => this.resolveReady = o),
|
|
1325
|
-
password:
|
|
1325
|
+
password: Au(e, t),
|
|
1326
1326
|
strength: s - 1,
|
|
1327
1327
|
pending: new Uint8Array()
|
|
1328
1328
|
});
|
|
@@ -1337,7 +1337,7 @@ class Gm extends TransformStream {
|
|
|
1337
1337
|
let f = new Uint8Array();
|
|
1338
1338
|
r ? (f = await Nm(l, c, r), u()) : await d;
|
|
1339
1339
|
const h = new Uint8Array(f.length + o.length - o.length % Wi);
|
|
1340
|
-
h.set(f, 0), a.enqueue(
|
|
1340
|
+
h.set(f, 0), a.enqueue(pu(l, o, h, f.length, 0));
|
|
1341
1341
|
},
|
|
1342
1342
|
async flush(o) {
|
|
1343
1343
|
const {
|
|
@@ -1359,7 +1359,7 @@ class Gm extends TransformStream {
|
|
|
1359
1359
|
}), n = this;
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function pu(i, e, t, s, n, o) {
|
|
1363
1363
|
const {
|
|
1364
1364
|
ctr: a,
|
|
1365
1365
|
hmac: l,
|
|
@@ -1376,15 +1376,15 @@ function gu(i, e, t, s, n, o) {
|
|
|
1376
1376
|
return i.pending = St(e, u), t;
|
|
1377
1377
|
}
|
|
1378
1378
|
async function Um(i, e, t, s) {
|
|
1379
|
-
const n = await
|
|
1379
|
+
const n = await mu(i, e, t, St(s, 0, Gs[e])), o = St(s, Gs[e]);
|
|
1380
1380
|
if (n[0] != o[0] || n[1] != o[1])
|
|
1381
|
-
throw new Error(
|
|
1381
|
+
throw new Error(uu);
|
|
1382
1382
|
}
|
|
1383
1383
|
async function Nm(i, e, t) {
|
|
1384
|
-
const s =
|
|
1384
|
+
const s = du(new Uint8Array(Gs[e])), n = await mu(i, e, t, s);
|
|
1385
1385
|
return Ua(s, n);
|
|
1386
1386
|
}
|
|
1387
|
-
async function
|
|
1387
|
+
async function mu(i, e, t, s) {
|
|
1388
1388
|
i.password = null;
|
|
1389
1389
|
const n = await Qm(Bm, t, Dm, !1, _m), o = await Hm(Object.assign({ salt: s }, sa), n, 8 * (ys[e] * 2 + 2)), a = new Uint8Array(o), l = Ns(Ht, St(a, 0, ys[e])), r = Ns(Ht, St(a, ys[e], ys[e] * 2)), c = St(a, ys[e] * 2);
|
|
1390
1390
|
return Object.assign(i, {
|
|
@@ -1398,26 +1398,26 @@ async function pu(i, e, t, s) {
|
|
|
1398
1398
|
}), c;
|
|
1399
1399
|
}
|
|
1400
1400
|
async function Qm(i, e, t, s, n) {
|
|
1401
|
-
if (
|
|
1401
|
+
if (tl)
|
|
1402
1402
|
try {
|
|
1403
1403
|
return await $s.importKey(i, e, t, s, n);
|
|
1404
1404
|
} catch {
|
|
1405
|
-
return
|
|
1405
|
+
return tl = !1, Ti.importKey(e);
|
|
1406
1406
|
}
|
|
1407
1407
|
else
|
|
1408
1408
|
return Ti.importKey(e);
|
|
1409
1409
|
}
|
|
1410
1410
|
async function Hm(i, e, t) {
|
|
1411
|
-
if (
|
|
1411
|
+
if (il)
|
|
1412
1412
|
try {
|
|
1413
1413
|
return await $s.deriveBits(i, e, t);
|
|
1414
1414
|
} catch {
|
|
1415
|
-
return
|
|
1415
|
+
return il = !1, Ti.pbkdf2(e, i.salt, sa.iterations, t);
|
|
1416
1416
|
}
|
|
1417
1417
|
else
|
|
1418
1418
|
return Ti.pbkdf2(e, i.salt, sa.iterations, t);
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function Au(i, e) {
|
|
1421
1421
|
return e === Ge ? Im(i) : e;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Ua(i, e) {
|
|
@@ -1448,17 +1448,17 @@ class zm extends TransformStream {
|
|
|
1448
1448
|
Object.assign(this, {
|
|
1449
1449
|
password: e,
|
|
1450
1450
|
passwordVerification: t
|
|
1451
|
-
}),
|
|
1451
|
+
}), vu(this, e);
|
|
1452
1452
|
},
|
|
1453
1453
|
transform(n, o) {
|
|
1454
1454
|
const a = this;
|
|
1455
1455
|
if (a.password) {
|
|
1456
|
-
const l =
|
|
1456
|
+
const l = sl(a, n.subarray(0, Bs));
|
|
1457
1457
|
if (a.password = null, l.at(-1) != a.passwordVerification)
|
|
1458
|
-
throw new Error(
|
|
1458
|
+
throw new Error(uu);
|
|
1459
1459
|
n = n.subarray(Bs);
|
|
1460
1460
|
}
|
|
1461
|
-
s ? o.error(new Error(Ga)) : o.enqueue(
|
|
1461
|
+
s ? o.error(new Error(Ga)) : o.enqueue(sl(a, n));
|
|
1462
1462
|
}
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
@@ -1470,35 +1470,35 @@ class Wm extends TransformStream {
|
|
|
1470
1470
|
Object.assign(this, {
|
|
1471
1471
|
password: e,
|
|
1472
1472
|
passwordVerification: t
|
|
1473
|
-
}),
|
|
1473
|
+
}), vu(this, e);
|
|
1474
1474
|
},
|
|
1475
1475
|
transform(s, n) {
|
|
1476
1476
|
const o = this;
|
|
1477
1477
|
let a, l;
|
|
1478
1478
|
if (o.password) {
|
|
1479
1479
|
o.password = null;
|
|
1480
|
-
const r =
|
|
1481
|
-
r[Bs - 1] = o.passwordVerification, a = new Uint8Array(s.length + r.length), a.set(
|
|
1480
|
+
const r = du(new Uint8Array(Bs));
|
|
1481
|
+
r[Bs - 1] = o.passwordVerification, a = new Uint8Array(s.length + r.length), a.set(nl(o, r), 0), l = Bs;
|
|
1482
1482
|
} else
|
|
1483
1483
|
a = new Uint8Array(s.length), l = 0;
|
|
1484
|
-
a.set(
|
|
1484
|
+
a.set(nl(o, s), l), n.enqueue(a);
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function sl(i, e) {
|
|
1490
1490
|
const t = new Uint8Array(e.length);
|
|
1491
1491
|
for (let s = 0; s < e.length; s++)
|
|
1492
|
-
t[s] =
|
|
1492
|
+
t[s] = yu(i) ^ e[s], Na(i, t[s]);
|
|
1493
1493
|
return t;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function nl(i, e) {
|
|
1496
1496
|
const t = new Uint8Array(e.length);
|
|
1497
1497
|
for (let s = 0; s < e.length; s++)
|
|
1498
|
-
t[s] =
|
|
1498
|
+
t[s] = yu(i) ^ e[s], Na(i, e[s]);
|
|
1499
1499
|
return t;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function vu(i, e) {
|
|
1502
1502
|
const t = [305419896, 591751049, 878082192];
|
|
1503
1503
|
Object.assign(i, {
|
|
1504
1504
|
keys: t,
|
|
@@ -1510,25 +1510,25 @@ function Au(i, e) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
function Na(i, e) {
|
|
1512
1512
|
let [t, s, n] = i.keys;
|
|
1513
|
-
i.crcKey0.append([e]), t = ~i.crcKey0.get(), s =
|
|
1513
|
+
i.crcKey0.append([e]), t = ~i.crcKey0.get(), s = ol(Math.imul(ol(s + Cu(t)), 134775813) + 1), i.crcKey2.append([s >>> 24]), n = ~i.crcKey2.get(), i.keys = [t, s, n];
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function yu(i) {
|
|
1516
1516
|
const e = i.keys[2] | 2;
|
|
1517
|
-
return
|
|
1517
|
+
return Cu(Math.imul(e, e ^ 1) >>> 8);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Cu(i) {
|
|
1520
1520
|
return i & 255;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function ol(i) {
|
|
1523
1523
|
return i & 4294967295;
|
|
1524
1524
|
}
|
|
1525
|
-
const
|
|
1525
|
+
const bu = "Invalid uncompressed size", Vm = "deflate-raw", jm = "deflate64-raw";
|
|
1526
1526
|
class $m extends TransformStream {
|
|
1527
1527
|
constructor(e, { chunkSize: t, CompressionStreamZlib: s, CompressionStream: n }) {
|
|
1528
1528
|
super({});
|
|
1529
1529
|
const { compressed: o, encrypted: a, useCompressionStream: l, zipCrypto: r, signed: c, level: u } = e, d = this;
|
|
1530
1530
|
let f, h, g = super.readable;
|
|
1531
|
-
(!a || r) && c && (f = new
|
|
1531
|
+
(!a || r) && c && (f = new au(), g = Yt(g, f)), o && (g = Eu(g, l, { level: u, chunkSize: t }, n, s, n)), a && (r ? g = Yt(g, new Wm(e)) : (h = new Gm(e), g = Yt(g, h))), wu(d, g, () => {
|
|
1532
1532
|
let v;
|
|
1533
1533
|
a && !r && (v = h.signature), (!a || r) && c && (v = new DataView(f.value.buffer).getUint32(0)), d.signature = v;
|
|
1534
1534
|
});
|
|
@@ -1539,23 +1539,23 @@ class Km extends TransformStream {
|
|
|
1539
1539
|
super({});
|
|
1540
1540
|
const { zipCrypto: o, encrypted: a, signed: l, signature: r, compressed: c, useCompressionStream: u, deflate64: d } = e;
|
|
1541
1541
|
let f, h, g = super.readable;
|
|
1542
|
-
a && (o ? g = Yt(g, new zm(e)) : (h = new Om(e), g = Yt(g, h))), c && (g =
|
|
1542
|
+
a && (o ? g = Yt(g, new zm(e)) : (h = new Om(e), g = Yt(g, h))), c && (g = Eu(g, u, { chunkSize: t, deflate64: d }, n, s, n)), (!a || o) && l && (f = new au(), g = Yt(g, f)), wu(this, g, () => {
|
|
1543
1543
|
if ((!a || o) && l) {
|
|
1544
1544
|
const v = new DataView(f.value.buffer);
|
|
1545
1545
|
if (r != v.getUint32(0, !1))
|
|
1546
|
-
throw new Error(
|
|
1546
|
+
throw new Error(hu);
|
|
1547
1547
|
}
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function wu(i, e, t) {
|
|
1552
1552
|
e = Yt(e, new TransformStream({ flush: t })), Object.defineProperty(i, "readable", {
|
|
1553
1553
|
get() {
|
|
1554
1554
|
return e;
|
|
1555
1555
|
}
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Eu(i, e, t, s, n, o) {
|
|
1559
1559
|
const a = e && s ? s : n || o, l = t.deflate64 ? jm : Vm;
|
|
1560
1560
|
try {
|
|
1561
1561
|
i = Yt(i, new a(l, t));
|
|
@@ -1575,13 +1575,13 @@ function wu(i, e, t, s, n, o) {
|
|
|
1575
1575
|
function Yt(i, e) {
|
|
1576
1576
|
return i.pipeThrough(e);
|
|
1577
1577
|
}
|
|
1578
|
-
const qm = "message", Xm = "start", Jm = "pull",
|
|
1578
|
+
const qm = "message", Xm = "start", Jm = "pull", al = "data", Zm = "ack", rl = "close", e0 = "deflate", xu = "inflate";
|
|
1579
1579
|
class t0 extends TransformStream {
|
|
1580
1580
|
constructor(e, t) {
|
|
1581
1581
|
super({});
|
|
1582
1582
|
const s = this, { codecType: n } = e;
|
|
1583
1583
|
let o;
|
|
1584
|
-
n.startsWith(e0) ? o = $m : n.startsWith(
|
|
1584
|
+
n.startsWith(e0) ? o = $m : n.startsWith(xu) && (o = Km), s.outputSize = 0;
|
|
1585
1585
|
let a = 0;
|
|
1586
1586
|
const l = new o(e, t), r = super.readable, c = new TransformStream({
|
|
1587
1587
|
transform(d, f) {
|
|
@@ -1595,7 +1595,7 @@ class t0 extends TransformStream {
|
|
|
1595
1595
|
}), u = new TransformStream({
|
|
1596
1596
|
transform(d, f) {
|
|
1597
1597
|
if (d && d.length && (f.enqueue(d), s.outputSize += d.length, e.outputSize !== Ge && s.outputSize > e.outputSize))
|
|
1598
|
-
throw new Error(
|
|
1598
|
+
throw new Error(bu);
|
|
1599
1599
|
},
|
|
1600
1600
|
flush() {
|
|
1601
1601
|
const { signature: d } = l;
|
|
@@ -1630,10 +1630,10 @@ class i0 extends TransformStream {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
|
-
let
|
|
1633
|
+
let Iu = typeof Worker != hi, Su = () => {
|
|
1634
1634
|
};
|
|
1635
1635
|
function s0({ initModule: i }) {
|
|
1636
|
-
|
|
1636
|
+
Su = i;
|
|
1637
1637
|
}
|
|
1638
1638
|
class Bo {
|
|
1639
1639
|
constructor(e, { readable: t, writable: s }, { options: n, config: o, streamOptions: a, useWebWorkers: l, transferStreams: r, workerURI: c }, u) {
|
|
@@ -1655,7 +1655,7 @@ class Bo {
|
|
|
1655
1655
|
const { resolveTerminated: f } = e;
|
|
1656
1656
|
f && (e.resolveTerminated = null, e.terminated = !0, e.worker.terminate(), f()), e.busy = !1, u(e);
|
|
1657
1657
|
}
|
|
1658
|
-
}), (l &&
|
|
1658
|
+
}), (l && Iu ? o0 : Mu)(e, o);
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
class n0 extends TransformStream {
|
|
@@ -1680,7 +1680,7 @@ async function To(i, ...e) {
|
|
|
1680
1680
|
} catch {
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Mu(i, e) {
|
|
1684
1684
|
return {
|
|
1685
1685
|
run: () => a0(i, e)
|
|
1686
1686
|
};
|
|
@@ -1694,7 +1694,7 @@ function o0(i, e) {
|
|
|
1694
1694
|
try {
|
|
1695
1695
|
o = c0(i.workerURI, t, i);
|
|
1696
1696
|
} catch {
|
|
1697
|
-
return
|
|
1697
|
+
return Iu = !1, Mu(i, e);
|
|
1698
1698
|
}
|
|
1699
1699
|
Object.assign(i, {
|
|
1700
1700
|
worker: o,
|
|
@@ -1710,7 +1710,7 @@ async function a0({ options: i, readable: e, writable: t, onTaskFinished: s }, n
|
|
|
1710
1710
|
try {
|
|
1711
1711
|
if (!i.useCompressionStream)
|
|
1712
1712
|
try {
|
|
1713
|
-
await
|
|
1713
|
+
await Su(n);
|
|
1714
1714
|
} catch {
|
|
1715
1715
|
i.useCompressionStream = !0;
|
|
1716
1716
|
}
|
|
@@ -1773,7 +1773,7 @@ function l0(i) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
}), closed: t };
|
|
1775
1775
|
}
|
|
1776
|
-
let
|
|
1776
|
+
let ll = !0;
|
|
1777
1777
|
function c0(i, e, t) {
|
|
1778
1778
|
const s = { type: "module" };
|
|
1779
1779
|
let n, o;
|
|
@@ -1796,11 +1796,11 @@ function c0(i, e, t) {
|
|
|
1796
1796
|
function bn(i, { worker: e, writer: t, onTaskFinished: s, transferStreams: n }) {
|
|
1797
1797
|
try {
|
|
1798
1798
|
const { value: o, readable: a, writable: l } = i, r = [];
|
|
1799
|
-
if (o && (i.value = o, r.push(i.value.buffer)), n &&
|
|
1799
|
+
if (o && (i.value = o, r.push(i.value.buffer)), n && ll ? (a && r.push(a), l && r.push(l)) : i.readable = i.writable = null, r.length)
|
|
1800
1800
|
try {
|
|
1801
1801
|
return e.postMessage(i, r), !0;
|
|
1802
1802
|
} catch {
|
|
1803
|
-
|
|
1803
|
+
ll = !1, i.readable = i.writable = null, e.postMessage(i);
|
|
1804
1804
|
}
|
|
1805
1805
|
else
|
|
1806
1806
|
e.postMessage(i);
|
|
@@ -1817,12 +1817,12 @@ async function u0({ data: i }, e) {
|
|
|
1817
1817
|
} else {
|
|
1818
1818
|
if (t == Jm) {
|
|
1819
1819
|
const { value: h, done: g } = await l.read();
|
|
1820
|
-
bn({ type:
|
|
1820
|
+
bn({ type: al, value: h, done: g, messageId: n }, e);
|
|
1821
1821
|
}
|
|
1822
|
-
t ==
|
|
1822
|
+
t == al && (await r.ready, await r.write(new Uint8Array(s)), bn({ type: Zm, messageId: n }, e)), t == rl && f(null, o);
|
|
1823
1823
|
}
|
|
1824
1824
|
} catch (h) {
|
|
1825
|
-
bn({ type:
|
|
1825
|
+
bn({ type: rl, messageId: n }, e), f(h);
|
|
1826
1826
|
}
|
|
1827
1827
|
function f(h, g) {
|
|
1828
1828
|
h ? u(h) : c(g), r && r.releaseLock(), d();
|
|
@@ -1830,7 +1830,7 @@ async function u0({ data: i }, e) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
let Ei = [];
|
|
1832
1832
|
const Po = [];
|
|
1833
|
-
let
|
|
1833
|
+
let cl = 0;
|
|
1834
1834
|
async function h0(i, e) {
|
|
1835
1835
|
const { options: t, config: s } = e, { transferStreams: n, useWebWorkers: o, useCompressionStream: a, compressed: l, signed: r, encrypted: c } = t, { workerURI: u, maxWorkers: d } = s;
|
|
1836
1836
|
e.transferStreams = n || n === Ge;
|
|
@@ -1839,10 +1839,10 @@ async function h0(i, e) {
|
|
|
1839
1839
|
async function h() {
|
|
1840
1840
|
const v = Ei.find((m) => !m.busy);
|
|
1841
1841
|
if (v)
|
|
1842
|
-
return
|
|
1842
|
+
return ul(v), new Bo(v, i, e, g);
|
|
1843
1843
|
if (Ei.length < d) {
|
|
1844
|
-
const m = { indexWorker:
|
|
1845
|
-
return
|
|
1844
|
+
const m = { indexWorker: cl };
|
|
1845
|
+
return cl++, Ei.push(m), new Bo(m, i, e, g);
|
|
1846
1846
|
} else
|
|
1847
1847
|
return new Promise((m) => Po.push({ resolve: m, stream: i, workerOptions: e }));
|
|
1848
1848
|
}
|
|
@@ -1850,7 +1850,7 @@ async function h0(i, e) {
|
|
|
1850
1850
|
if (Po.length) {
|
|
1851
1851
|
const [{ resolve: m, stream: A, workerOptions: C }] = Po.splice(0, 1);
|
|
1852
1852
|
m(new Bo(v, A, C, g));
|
|
1853
|
-
} else v.worker ? (
|
|
1853
|
+
} else v.worker ? (ul(v), d0(v, e)) : Ei = Ei.filter((m) => m != v);
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
function d0(i, e) {
|
|
@@ -1863,11 +1863,11 @@ function d0(i, e) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}, s));
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function ul(i) {
|
|
1867
1867
|
const { terminateTimeout: e } = i;
|
|
1868
1868
|
e && (clearTimeout(e), i.terminateTimeout = null);
|
|
1869
1869
|
}
|
|
1870
|
-
const f0 = "Writer iterator completed too soon", g0 = "Content-Type", p0 = 64 * 1024,
|
|
1870
|
+
const f0 = "Writer iterator completed too soon", g0 = "Content-Type", p0 = 64 * 1024, Bu = "writable";
|
|
1871
1871
|
class Qa {
|
|
1872
1872
|
constructor() {
|
|
1873
1873
|
this.size = 0;
|
|
@@ -1876,7 +1876,7 @@ class Qa {
|
|
|
1876
1876
|
this.initialized = !0;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
class
|
|
1879
|
+
class Tu extends Qa {
|
|
1880
1880
|
get readable() {
|
|
1881
1881
|
const e = this, { chunkSize: t = p0 } = e, s = new ReadableStream({
|
|
1882
1882
|
start() {
|
|
@@ -1890,7 +1890,7 @@ class Bu extends Qa {
|
|
|
1890
1890
|
return s;
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
class ho extends
|
|
1893
|
+
class ho extends Tu {
|
|
1894
1894
|
constructor(e) {
|
|
1895
1895
|
super(), Object.assign(this, {
|
|
1896
1896
|
blob: e,
|
|
@@ -1907,7 +1907,7 @@ class m0 extends Qa {
|
|
|
1907
1907
|
constructor(e) {
|
|
1908
1908
|
super();
|
|
1909
1909
|
const t = this, s = new TransformStream(), n = [];
|
|
1910
|
-
e && n.push([g0, e]), Object.defineProperty(t,
|
|
1910
|
+
e && n.push([g0, e]), Object.defineProperty(t, Bu, {
|
|
1911
1911
|
get() {
|
|
1912
1912
|
return s.writable;
|
|
1913
1913
|
}
|
|
@@ -1942,7 +1942,7 @@ class A0 extends m0 {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
|
-
class v0 extends
|
|
1945
|
+
class v0 extends Tu {
|
|
1946
1946
|
constructor(e) {
|
|
1947
1947
|
super(), this.readers = e;
|
|
1948
1948
|
}
|
|
@@ -1977,7 +1977,7 @@ class v0 extends Bu {
|
|
|
1977
1977
|
return n.lastDiskNumber = Math.max(l, n.lastDiskNumber), a;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
class
|
|
1980
|
+
class hl extends Qa {
|
|
1981
1981
|
constructor(e, t = 4294967295) {
|
|
1982
1982
|
super();
|
|
1983
1983
|
const s = this;
|
|
@@ -2005,7 +2005,7 @@ class ul extends Qa {
|
|
|
2005
2005
|
await a.ready, await c();
|
|
2006
2006
|
}
|
|
2007
2007
|
});
|
|
2008
|
-
Object.defineProperty(s,
|
|
2008
|
+
Object.defineProperty(s, Bu, {
|
|
2009
2009
|
get() {
|
|
2010
2010
|
return l;
|
|
2011
2011
|
}
|
|
@@ -2028,9 +2028,9 @@ class y0 {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
class C0 {
|
|
2030
2030
|
constructor(e) {
|
|
2031
|
-
return e.writable === Ge && typeof e.next == Li && (e = new
|
|
2031
|
+
return e.writable === Ge && typeof e.next == Li && (e = new hl(e)), e instanceof WritableStream && (e = {
|
|
2032
2032
|
writable: e
|
|
2033
|
-
}), e.size === Ge && (e.size = 0), e instanceof
|
|
2033
|
+
}), e.size === Ge && (e.size = 0), e instanceof hl || Object.assign(e, {
|
|
2034
2034
|
diskNumber: 0,
|
|
2035
2035
|
diskOffset: 0,
|
|
2036
2036
|
availableSize: 1 / 0,
|
|
@@ -2047,12 +2047,12 @@ async function Qn(i, e) {
|
|
|
2047
2047
|
function nt(i, e, t, s) {
|
|
2048
2048
|
return i.readUint8Array(e, t, s);
|
|
2049
2049
|
}
|
|
2050
|
-
const
|
|
2050
|
+
const Pu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), b0 = Pu.length == 256;
|
|
2051
2051
|
function w0(i) {
|
|
2052
2052
|
if (b0) {
|
|
2053
2053
|
let e = "";
|
|
2054
2054
|
for (let t = 0; t < i.length; t++)
|
|
2055
|
-
e +=
|
|
2055
|
+
e += Pu[i[t]];
|
|
2056
2056
|
return e;
|
|
2057
2057
|
} else
|
|
2058
2058
|
return new TextDecoder().decode(i);
|
|
@@ -2060,20 +2060,20 @@ function w0(i) {
|
|
|
2060
2060
|
function wn(i, e) {
|
|
2061
2061
|
return e && e.trim().toLowerCase() == "cp437" ? w0(i) : new TextDecoder(e).decode(i);
|
|
2062
2062
|
}
|
|
2063
|
-
const
|
|
2064
|
-
Pu,
|
|
2063
|
+
const Du = "filename", _u = "rawFilename", ku = "comment", Lu = "rawComment", Ru = "uncompressedSize", Fu = "compressedSize", Ou = "offset", Gu = "diskNumberStart", na = "lastModDate", oa = "rawLastModDate", Uu = "lastAccessDate", E0 = "rawLastAccessDate", Nu = "creationDate", Qu = "rawCreationDate", x0 = "internalFileAttributes", I0 = "externalFileAttributes", S0 = "msdosAttributesRaw", M0 = "msdosAttributes", B0 = "msDosCompatible", T0 = "zip64", P0 = "encrypted", D0 = "version", _0 = "versionMadeBy", k0 = "zipCrypto", L0 = "directory", R0 = "executable", F0 = "compressionMethod", O0 = "signature", G0 = "extraField", U0 = "extraFieldInfoZip", N0 = "extraFieldUnix", Q0 = "uid", H0 = "gid", Y0 = "unixMode", z0 = "setuid", W0 = "setgid", V0 = "sticky", j0 = "bitFlag", $0 = "filenameUTF8", K0 = "commentUTF8", q0 = "rawExtraField", X0 = "extraFieldZip64", J0 = "extraFieldUnicodePath", Z0 = "extraFieldUnicodeComment", eA = "extraFieldAES", tA = "extraFieldNTFS", iA = "extraFieldExtendedTimestamp", sA = [
|
|
2065
2064
|
Du,
|
|
2066
|
-
|
|
2065
|
+
_u,
|
|
2067
2066
|
Ru,
|
|
2067
|
+
Fu,
|
|
2068
2068
|
na,
|
|
2069
2069
|
oa,
|
|
2070
|
-
_u,
|
|
2071
2070
|
ku,
|
|
2072
|
-
|
|
2071
|
+
Lu,
|
|
2073
2072
|
Uu,
|
|
2074
2073
|
Nu,
|
|
2075
|
-
|
|
2074
|
+
Qu,
|
|
2076
2075
|
Ou,
|
|
2076
|
+
Gu,
|
|
2077
2077
|
x0,
|
|
2078
2078
|
I0,
|
|
2079
2079
|
S0,
|
|
@@ -2108,16 +2108,16 @@ const Pu = "filename", Du = "rawFilename", _u = "comment", ku = "rawComment", Lu
|
|
|
2108
2108
|
tA,
|
|
2109
2109
|
iA
|
|
2110
2110
|
];
|
|
2111
|
-
class
|
|
2111
|
+
class dl {
|
|
2112
2112
|
constructor(e) {
|
|
2113
2113
|
sA.forEach((t) => this[t] = e[t]);
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
|
-
const nA = "filenameEncoding", oA = "commentEncoding", aA = "decodeText", rA = "extractPrependedData", lA = "extractAppendedData", cA = "password", uA = "rawPassword", hA = "passThrough", dA = "signal", fA = "checkPasswordOnly", gA = "checkOverlappingEntryOnly", pA = "checkOverlappingEntry", mA = "checkSignature", AA = "useWebWorkers", vA = "useCompressionStream", yA = "transferStreams", CA = "preventClose", Do = "File format is not recognized", bA = "End of central directory not found", wA = "End of Zip64 central directory locator not found", EA = "Central directory header not found", xA = "Local file header not found", IA = "Zip64 extra field not found", SA = "File contains encrypted entry", MA = "Encryption method not supported",
|
|
2117
|
-
[Lu, Mi],
|
|
2116
|
+
const nA = "filenameEncoding", oA = "commentEncoding", aA = "decodeText", rA = "extractPrependedData", lA = "extractAppendedData", cA = "password", uA = "rawPassword", hA = "passThrough", dA = "signal", fA = "checkPasswordOnly", gA = "checkOverlappingEntryOnly", pA = "checkOverlappingEntry", mA = "checkSignature", AA = "useWebWorkers", vA = "useCompressionStream", yA = "transferStreams", CA = "preventClose", Do = "File format is not recognized", bA = "End of central directory not found", wA = "End of Zip64 central directory locator not found", EA = "Central directory header not found", xA = "Local file header not found", IA = "Zip64 extra field not found", SA = "File contains encrypted entry", MA = "Encryption method not supported", fl = "Compression method not supported", gl = "Split zip file", BA = "Overlapping entry found", pl = "utf-8", TA = "UTF8", ml = "cp437", PA = [
|
|
2118
2117
|
[Ru, Mi],
|
|
2119
2118
|
[Fu, Mi],
|
|
2120
|
-
[Ou,
|
|
2119
|
+
[Ou, Mi],
|
|
2120
|
+
[Gu, Nt]
|
|
2121
2121
|
], DA = {
|
|
2122
2122
|
[Nt]: {
|
|
2123
2123
|
getValue: Fe,
|
|
@@ -2147,7 +2147,7 @@ class Ha {
|
|
|
2147
2147
|
const o = await GA(s, Vp, s.size, Ui, Nt * 16);
|
|
2148
2148
|
if (!o) {
|
|
2149
2149
|
const S = await nt(s, 0, 4), _ = Oe(S);
|
|
2150
|
-
throw Fe(_) ==
|
|
2150
|
+
throw Fe(_) == iu ? new Error(gl) : new Error(bA);
|
|
2151
2151
|
}
|
|
2152
2152
|
const a = Oe(o);
|
|
2153
2153
|
let l = Fe(a, 12), r = Fe(a, 16);
|
|
@@ -2161,23 +2161,23 @@ class Ha {
|
|
|
2161
2161
|
r = Ji(_, 8);
|
|
2162
2162
|
let O = await nt(s, r, xo, -1), N = Oe(O);
|
|
2163
2163
|
const R = o.offset - Eo - xo;
|
|
2164
|
-
if (Fe(N, 0) !=
|
|
2164
|
+
if (Fe(N, 0) != Kr && r != R) {
|
|
2165
2165
|
const L = r;
|
|
2166
2166
|
r = R, r > L && (m = r - L), O = await nt(s, r, xo, -1), N = Oe(O);
|
|
2167
2167
|
}
|
|
2168
|
-
if (Fe(N, 0) !=
|
|
2168
|
+
if (Fe(N, 0) != Kr)
|
|
2169
2169
|
throw new Error(wA);
|
|
2170
2170
|
f == Nt && (f = Fe(N, 16)), g == Nt && (g = Fe(N, 20)), v == Nt && (v = Ji(N, 32)), l == Mi && (l = Ji(N, 40)), r -= l;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
if (r >= s.size && (m = s.size - r - l - Ui, r = s.size - l - Ui), h != f)
|
|
2174
|
-
throw new Error(
|
|
2174
|
+
throw new Error(gl);
|
|
2175
2175
|
if (r < 0)
|
|
2176
2176
|
throw new Error(Do);
|
|
2177
2177
|
let C = 0, w = await nt(s, r, l, g), M = Oe(w);
|
|
2178
2178
|
if (l) {
|
|
2179
2179
|
const S = o.offset - l;
|
|
2180
|
-
if (Fe(M, C) !=
|
|
2180
|
+
if (Fe(M, C) != $r && r != S) {
|
|
2181
2181
|
const _ = r;
|
|
2182
2182
|
r = S, r > _ && (m += r - _), w = await nt(s, r, l, g), M = Oe(w);
|
|
2183
2183
|
}
|
|
@@ -2188,16 +2188,16 @@ class Ha {
|
|
|
2188
2188
|
const x = it(t, e, nA), E = it(t, e, oA);
|
|
2189
2189
|
for (let S = 0; S < v; S++) {
|
|
2190
2190
|
const _ = new _A(s, n, t.options);
|
|
2191
|
-
if (Fe(M, C) !=
|
|
2191
|
+
if (Fe(M, C) != $r)
|
|
2192
2192
|
throw new Error(EA);
|
|
2193
|
-
|
|
2193
|
+
Hu(_, M, C + 6);
|
|
2194
2194
|
const O = !!_.bitFlag.languageEncodingFlag, N = C + 46, R = N + _.filenameLength, L = R + _.extraFieldLength, b = Ze(M, C + 4), I = b >> 8 == 0, k = b >> 8 == 3, F = w.subarray(N, R), Q = Ze(M, C + 32), G = L + Q, P = w.subarray(L, G), T = O, U = O, W = Fe(M, C + 38), ee = W & ia, X = {
|
|
2195
2195
|
readOnly: !!(ee & lm),
|
|
2196
2196
|
hidden: !!(ee & cm),
|
|
2197
2197
|
system: !!(ee & um),
|
|
2198
2198
|
directory: !!(ee & rm),
|
|
2199
2199
|
archive: !!(ee & hm)
|
|
2200
|
-
}, ye = Fe(M, C + 42) + m, Ae = it(t, e, aA) || wn, we = T ?
|
|
2200
|
+
}, ye = Fe(M, C + 42) + m, Ae = it(t, e, aA) || wn, we = T ? pl : x || ml, Be = U ? pl : E || ml;
|
|
2201
2201
|
let Le = Ae(F, we);
|
|
2202
2202
|
Le === Ge && (Le = wn(F, we));
|
|
2203
2203
|
let Je = Ae(P, Be);
|
|
@@ -2220,10 +2220,10 @@ class Ha {
|
|
|
2220
2220
|
rawComment: P,
|
|
2221
2221
|
filename: Le,
|
|
2222
2222
|
comment: Je
|
|
2223
|
-
}), A = Math.max(ye, A),
|
|
2223
|
+
}), A = Math.max(ye, A), Yu(_, _, M, C + 6);
|
|
2224
2224
|
const Ke = _.externalFileAttributes >> 16 & Nt;
|
|
2225
2225
|
_.unixMode === Ge && (Ke & (dm | So | Io)) != 0 && (_.unixMode = Ke);
|
|
2226
|
-
const ct = !!(_.unixMode & fm), tt = !!(_.unixMode & gm), vt = !!(_.unixMode & pm), q = _.unixMode !== Ge ? (_.unixMode & So) != 0 : k && (Ke & So) != 0, j = _.unixMode !== Ge && (_.unixMode &
|
|
2226
|
+
const ct = !!(_.unixMode & fm), tt = !!(_.unixMode & gm), vt = !!(_.unixMode & pm), q = _.unixMode !== Ge ? (_.unixMode & So) != 0 : k && (Ke & So) != 0, j = _.unixMode !== Ge && (_.unixMode & el) == Io, ne = (Ke & el) == Io;
|
|
2227
2227
|
Object.assign(_, {
|
|
2228
2228
|
setuid: ct,
|
|
2229
2229
|
setgid: tt,
|
|
@@ -2235,7 +2235,7 @@ class Ha {
|
|
|
2235
2235
|
directory: j || ne || I && X.directory || Le.endsWith(mm) && !_.uncompressedSize,
|
|
2236
2236
|
zipCrypto: _.encrypted && !_.extraFieldAES
|
|
2237
2237
|
});
|
|
2238
|
-
const qe = new
|
|
2238
|
+
const qe = new dl(_);
|
|
2239
2239
|
qe.getData = (Tt, Ai) => _.getData(Tt, qe, t.readRanges, Ai), qe.arrayBuffer = async (Tt) => {
|
|
2240
2240
|
const Ai = new TransformStream(), [Zt] = await Promise.all([
|
|
2241
2241
|
new Response(Ai.readable).arrayBuffer(),
|
|
@@ -2246,7 +2246,7 @@ class Ha {
|
|
|
2246
2246
|
const { onprogress: Gt } = e;
|
|
2247
2247
|
if (Gt)
|
|
2248
2248
|
try {
|
|
2249
|
-
await Gt(S + 1, v, new
|
|
2249
|
+
await Gt(S + 1, v, new dl(_));
|
|
2250
2250
|
} catch {
|
|
2251
2251
|
}
|
|
2252
2252
|
yield qe;
|
|
@@ -2291,19 +2291,19 @@ class _A {
|
|
|
2291
2291
|
let x = it(o, n, cA), E = it(o, n, uA);
|
|
2292
2292
|
const B = it(o, n, hA);
|
|
2293
2293
|
if (x = x && x.length && x, E = E && E.length && E, c && c.originalCompressionMethod != Yp)
|
|
2294
|
-
throw new Error(
|
|
2295
|
-
if (d != Hp && d != Qp && d !=
|
|
2296
|
-
throw new Error(
|
|
2294
|
+
throw new Error(fl);
|
|
2295
|
+
if (d != Hp && d != Qp && d != jr && !B)
|
|
2296
|
+
throw new Error(fl);
|
|
2297
2297
|
if (Fe(D, 0) != zp)
|
|
2298
2298
|
throw new Error(xA);
|
|
2299
|
-
|
|
2299
|
+
Hu(w, D, 4);
|
|
2300
2300
|
const {
|
|
2301
2301
|
extraFieldLength: y,
|
|
2302
2302
|
filenameLength: S,
|
|
2303
2303
|
lastAccessDate: _,
|
|
2304
2304
|
creationDate: O
|
|
2305
2305
|
} = w;
|
|
2306
|
-
w.rawExtraField = y ? await nt(a, l + Mo + S, y, r) : new Uint8Array(),
|
|
2306
|
+
w.rawExtraField = y ? await nt(a, l + Mo + S, y, r) : new Uint8Array(), Yu(o, w, D, 4, !0), Object.assign(t, { lastAccessDate: _, creationDate: O });
|
|
2307
2307
|
const N = o.encrypted && w.encrypted && !B, R = N && !c;
|
|
2308
2308
|
if (B || (t.zipCrypto = R), N) {
|
|
2309
2309
|
if (!R && c.strength === Ge)
|
|
@@ -2321,12 +2321,12 @@ class _A {
|
|
|
2321
2321
|
let Q = it(o, n, pA);
|
|
2322
2322
|
const G = it(o, n, gA);
|
|
2323
2323
|
G && (Q = !0);
|
|
2324
|
-
const { onstart: P, onprogress: T, onend: U } = n, W = d ==
|
|
2324
|
+
const { onstart: P, onprogress: T, onend: U } = n, W = d == jr;
|
|
2325
2325
|
let ee = it(o, n, vA);
|
|
2326
2326
|
W && (ee = !1);
|
|
2327
2327
|
const X = {
|
|
2328
2328
|
options: {
|
|
2329
|
-
codecType:
|
|
2329
|
+
codecType: xu,
|
|
2330
2330
|
password: x,
|
|
2331
2331
|
rawPassword: E,
|
|
2332
2332
|
zipCrypto: R,
|
|
@@ -2365,7 +2365,7 @@ class _A {
|
|
|
2365
2365
|
F && (e = new WritableStream()), e = new C0(e), await Qn(e, B ? A : m), { writable: ye } = e;
|
|
2366
2366
|
const { outputSize: Ae } = await h0({ readable: I, writable: ye }, X);
|
|
2367
2367
|
if (e.size += Ae, Ae != (B ? A : m))
|
|
2368
|
-
throw new Error(
|
|
2368
|
+
throw new Error(bu);
|
|
2369
2369
|
}
|
|
2370
2370
|
} catch (Ae) {
|
|
2371
2371
|
if (Ae.outputSize !== Ge && (e.size += Ae.outputSize), !F || Ae.message != Ga)
|
|
@@ -2376,15 +2376,15 @@ class _A {
|
|
|
2376
2376
|
return F || G ? Ge : e.getData ? e.getData() : ye;
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2380
|
-
const s = i.rawBitFlag = Ze(e, t + 2), n = (s &
|
|
2379
|
+
function Hu(i, e, t) {
|
|
2380
|
+
const s = i.rawBitFlag = Ze(e, t + 2), n = (s & Xr) == Xr, o = Fe(e, t + 6);
|
|
2381
2381
|
Object.assign(i, {
|
|
2382
2382
|
encrypted: n,
|
|
2383
2383
|
version: Ze(e, t),
|
|
2384
2384
|
bitFlag: {
|
|
2385
2385
|
level: (s & am) >> 1,
|
|
2386
|
-
dataDescriptor: (s &
|
|
2387
|
-
languageEncodingFlag: (s &
|
|
2386
|
+
dataDescriptor: (s & Jr) == Jr,
|
|
2387
|
+
languageEncodingFlag: (s & Zr) == Zr
|
|
2388
2388
|
},
|
|
2389
2389
|
rawLastModDate: o,
|
|
2390
2390
|
lastModDate: UA(o),
|
|
@@ -2392,7 +2392,7 @@ function Qu(i, e, t) {
|
|
|
2392
2392
|
extraFieldLength: Ze(e, t + 24)
|
|
2393
2393
|
});
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Yu(i, e, t, s, n) {
|
|
2396
2396
|
const { rawExtraField: o } = e, a = e.extraField = /* @__PURE__ */ new Map(), l = Oe(new Uint8Array(o));
|
|
2397
2397
|
let r = 0;
|
|
2398
2398
|
try {
|
|
@@ -2414,19 +2414,19 @@ function Hu(i, e, t, s, n) {
|
|
|
2414
2414
|
const u = a.get(qp);
|
|
2415
2415
|
u && (kA(u, e), e.extraFieldZip64 = u);
|
|
2416
2416
|
const d = a.get(tm);
|
|
2417
|
-
d && (
|
|
2417
|
+
d && (Al(d, Du, _u, e, i), e.extraFieldUnicodePath = d);
|
|
2418
2418
|
const f = a.get(im);
|
|
2419
|
-
f && (
|
|
2419
|
+
f && (Al(f, ku, Lu, e, i), e.extraFieldUnicodeComment = f);
|
|
2420
2420
|
const h = a.get(Xp);
|
|
2421
2421
|
h ? (LA(h, e, c), e.extraFieldAES = h) : e.compressionMethod = c;
|
|
2422
2422
|
const g = a.get(Jp);
|
|
2423
2423
|
g && (RA(g, e), e.extraFieldNTFS = g);
|
|
2424
2424
|
const v = a.get(om);
|
|
2425
2425
|
if (v)
|
|
2426
|
-
|
|
2426
|
+
vl(v, e, !1), e.extraFieldUnix = v;
|
|
2427
2427
|
else {
|
|
2428
2428
|
const C = a.get(nm);
|
|
2429
|
-
C && (
|
|
2429
|
+
C && (vl(C, e, !0), e.extraFieldInfoZip = C);
|
|
2430
2430
|
}
|
|
2431
2431
|
const m = a.get(em);
|
|
2432
2432
|
m && (FA(m, e, n), e.extraFieldExtendedTimestamp = m);
|
|
@@ -2445,7 +2445,7 @@ function kA(i, e) {
|
|
|
2445
2445
|
throw new Error(IA);
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function Al(i, e, t, s, n) {
|
|
2449
2449
|
const o = Oe(i.data), a = new Un();
|
|
2450
2450
|
a.append(n[t]);
|
|
2451
2451
|
const l = Oe(new Uint8Array(4));
|
|
@@ -2491,15 +2491,15 @@ function RA(i, e) {
|
|
|
2491
2491
|
} catch {
|
|
2492
2492
|
}
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function vl(i, e, t) {
|
|
2495
2495
|
try {
|
|
2496
2496
|
const s = Oe(new Uint8Array(i.data));
|
|
2497
2497
|
let n = 0;
|
|
2498
2498
|
const o = ri(s, n++), a = ri(s, n++), l = i.data.subarray(n, n + a);
|
|
2499
2499
|
n += a;
|
|
2500
|
-
const r =
|
|
2500
|
+
const r = yl(l), c = ri(s, n++), u = i.data.subarray(n, n + c);
|
|
2501
2501
|
n += c;
|
|
2502
|
-
const d =
|
|
2502
|
+
const d = yl(u);
|
|
2503
2503
|
let f = Ge;
|
|
2504
2504
|
if (!t && n + 2 <= i.data.length) {
|
|
2505
2505
|
const h = i.data;
|
|
@@ -2509,13 +2509,13 @@ function Al(i, e, t) {
|
|
|
2509
2509
|
} catch {
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function yl(i) {
|
|
2513
2513
|
const e = new Uint8Array(4);
|
|
2514
2514
|
return e.set(i, 0), new DataView(e.buffer, e.byteOffset, 4).getUint32(0, !0);
|
|
2515
2515
|
}
|
|
2516
2516
|
function FA(i, e, t) {
|
|
2517
2517
|
const s = Oe(i.data), n = ri(s, 0), o = [], a = [];
|
|
2518
|
-
t ? ((n & 1) == 1 && (o.push(na), a.push(oa)), (n & 2) == 2 && (o.push(
|
|
2518
|
+
t ? ((n & 1) == 1 && (o.push(na), a.push(oa)), (n & 2) == 2 && (o.push(Uu), a.push(E0)), (n & 4) == 4 && (o.push(Nu), a.push(Qu))) : i.data.length >= 5 && (o.push(na), a.push(oa));
|
|
2519
2519
|
let l = 1;
|
|
2520
2520
|
o.forEach((r, c) => {
|
|
2521
2521
|
if (i.data.length >= l + 4) {
|
|
@@ -2548,11 +2548,11 @@ async function OA({
|
|
|
2548
2548
|
}
|
|
2549
2549
|
let f = 0;
|
|
2550
2550
|
if (r && (c ? f = Kp : f = $p), f) {
|
|
2551
|
-
const g = await nt(i, l + o, f +
|
|
2551
|
+
const g = await nt(i, l + o, f + qr, s);
|
|
2552
2552
|
if (Fe(Oe(g), 0) == Wp) {
|
|
2553
2553
|
const m = Fe(Oe(g), 4);
|
|
2554
2554
|
let A, C;
|
|
2555
|
-
c ? (A = Ji(Oe(g), 8), C = Ji(Oe(g), 16)) : (A = Fe(Oe(g), 8), C = Fe(Oe(g), 12)), (e.encrypted && !e.zipCrypto || m == n) && A == o && C == a && (f +=
|
|
2555
|
+
c ? (A = Ji(Oe(g), 8), C = Ji(Oe(g), 16)) : (A = Fe(Oe(g), 8), C = Fe(Oe(g), 12)), (e.encrypted && !e.zipCrypto || m == n) && A == o && C == a && (f += qr);
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
const h = {
|
|
@@ -2675,7 +2675,7 @@ function HA(i) {
|
|
|
2675
2675
|
if (He = i, { malloc: Zi, free: bt, memory: Ts } = He, typeof Zi != "function" || typeof bt != "function" || !Ts)
|
|
2676
2676
|
throw He = Zi = bt = Ts = null, new Error("Invalid WASM module");
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2678
|
+
function zu(i, e, t = {}) {
|
|
2679
2679
|
const s = typeof t.level == "number" ? t.level : -1, n = typeof t.outBuffer == "number" ? t.outBuffer : 64 * 1024, o = typeof t.inBufferSize == "number" ? t.inBufferSize : 64 * 1024;
|
|
2680
2680
|
return new TransformStream({
|
|
2681
2681
|
start() {
|
|
@@ -2732,17 +2732,17 @@ function Yu(i, e, t = {}) {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
class YA {
|
|
2734
2734
|
constructor(e = "deflate", t) {
|
|
2735
|
-
return
|
|
2735
|
+
return zu(!0, e, t);
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
2738
|
class zA {
|
|
2739
2739
|
constructor(e = "deflate", t) {
|
|
2740
|
-
return
|
|
2740
|
+
return zu(!1, e, t);
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
2743
|
-
let
|
|
2743
|
+
let Cl = !1;
|
|
2744
2744
|
async function WA(i, { baseURI: e }) {
|
|
2745
|
-
if (!
|
|
2745
|
+
if (!Cl) {
|
|
2746
2746
|
let t, s;
|
|
2747
2747
|
try {
|
|
2748
2748
|
try {
|
|
@@ -2757,7 +2757,7 @@ async function WA(i, { baseURI: e }) {
|
|
|
2757
2757
|
throw o;
|
|
2758
2758
|
}
|
|
2759
2759
|
const n = await WebAssembly.instantiate(t);
|
|
2760
|
-
HA(n.instance.exports),
|
|
2760
|
+
HA(n.instance.exports), Cl = !0;
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
2763
|
function VA(i) {
|
|
@@ -4376,7 +4376,7 @@ const Lo = {
|
|
|
4376
4376
|
return i;
|
|
4377
4377
|
})();
|
|
4378
4378
|
xm(co);
|
|
4379
|
-
const jA = "E84#E3C4!8C4&A1",
|
|
4379
|
+
const jA = "E84#E3C4!8C4&A1", Wu = ["E84#E3C4!8C4&A1123*@!"];
|
|
4380
4380
|
async function Ct(i) {
|
|
4381
4381
|
try {
|
|
4382
4382
|
const e = await fetch(i);
|
|
@@ -4421,7 +4421,7 @@ class Ks {
|
|
|
4421
4421
|
this.events[e] && (this.events[e] = this.events[e].filter((s) => s !== t));
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const Vu = "35aa3175ce8b1a55331e.64c93d5e3268979d98c900", aa = /* @__PURE__ */ new Map();
|
|
4425
4425
|
function Hn(i) {
|
|
4426
4426
|
let e = null;
|
|
4427
4427
|
if (typeof i == "string")
|
|
@@ -4442,7 +4442,7 @@ function Hn(i) {
|
|
|
4442
4442
|
aa.delete(e);
|
|
4443
4443
|
}
|
|
4444
4444
|
}
|
|
4445
|
-
async function
|
|
4445
|
+
async function Ya(i, e) {
|
|
4446
4446
|
if (i)
|
|
4447
4447
|
try {
|
|
4448
4448
|
let t = null;
|
|
@@ -4943,7 +4943,7 @@ class ju {
|
|
|
4943
4943
|
if (Hn(this.viewer?.container), l) {
|
|
4944
4944
|
const r = await Ct(o);
|
|
4945
4945
|
if (r) {
|
|
4946
|
-
r?.asset?.watermark && await
|
|
4946
|
+
r?.asset?.watermark && await Ya(r.asset.watermark, this.viewer?.container), Wu.includes(this.watermarkEnabled) && Hn(this.viewer?.container);
|
|
4947
4947
|
const c = this.getBaseUrlPath(e), u = (h) => {
|
|
4948
4948
|
!h || typeof h != "object" || (typeof h.uri == "string" && !/^(data:|https?:|atom:)\/\//i.test(h.uri) && (h.uri = encodeURI(`${c}/${h.uri.replace(/^\.?\//, "")}`)), Object.values(h).forEach((g) => {
|
|
4949
4949
|
if (Array.isArray(g)) {
|
|
@@ -5084,13 +5084,13 @@ const $u = {
|
|
|
5084
5084
|
// 同时包含颜色和显示
|
|
5085
5085
|
color: 1
|
|
5086
5086
|
};
|
|
5087
|
-
function
|
|
5087
|
+
function bl(i) {
|
|
5088
5088
|
return i === 1 || i === "exist" ? 1 : i === 2 || i === "process" ? 2 : 0;
|
|
5089
5089
|
}
|
|
5090
5090
|
function Ni(i) {
|
|
5091
5091
|
return Number.isNaN(i) ? 0 : i <= 1 ? Math.min(Math.max(i, 0), 1) : Math.min(Math.max(i / 255, 0), 1);
|
|
5092
5092
|
}
|
|
5093
|
-
function
|
|
5093
|
+
function wl(i) {
|
|
5094
5094
|
return Number.isNaN(i) ? 1 : i <= 1 ? Math.min(Math.max(i, 0), 1) : 1;
|
|
5095
5095
|
}
|
|
5096
5096
|
function Ro(i) {
|
|
@@ -5608,7 +5608,7 @@ class sv {
|
|
|
5608
5608
|
const t = (
|
|
5609
5609
|
// 格式化 rank 参数
|
|
5610
5610
|
e && typeof e == "object" && "rank" in e ? e.rank : e
|
|
5611
|
-
), s =
|
|
5611
|
+
), s = bl(t), n = [];
|
|
5612
5612
|
for (const o of Object.keys(this.hasSelectedFeaturesMap))
|
|
5613
5613
|
(this.hasSelectedFeaturesMap[o] || []).forEach((l) => {
|
|
5614
5614
|
if (l.rank !== s) return;
|
|
@@ -5830,7 +5830,7 @@ class sv {
|
|
|
5830
5830
|
setColor(e) {
|
|
5831
5831
|
if (!e) return this.selectedColor;
|
|
5832
5832
|
if (typeof e == "string") return e;
|
|
5833
|
-
const t = Ni(Number(e.r)), s = Ni(Number(e.g)), n = Ni(Number(e.b)), o =
|
|
5833
|
+
const t = Ni(Number(e.r)), s = Ni(Number(e.g)), n = Ni(Number(e.b)), o = wl(
|
|
5834
5834
|
// 格式化 Alpha 分量
|
|
5835
5835
|
e.a === void 0 ? 1 : Number(e.a)
|
|
5836
5836
|
);
|
|
@@ -6003,7 +6003,7 @@ class sv {
|
|
|
6003
6003
|
// 按模型批量上色并应用等级规则
|
|
6004
6004
|
async setSelectColorUserModelCpt(e, t) {
|
|
6005
6005
|
if (!Array.isArray(e)) return;
|
|
6006
|
-
const s = /* @__PURE__ */ new Map(), n = t?.rank === void 0 ? "exist" : t?.rank, o =
|
|
6006
|
+
const s = /* @__PURE__ */ new Map(), n = t?.rank === void 0 ? "exist" : t?.rank, o = bl(n), a = t?.isTrigger ?? !0;
|
|
6007
6007
|
for (const l of e) {
|
|
6008
6008
|
const r = l?.modelId;
|
|
6009
6009
|
if (r == null) continue;
|
|
@@ -6084,7 +6084,7 @@ class sv {
|
|
|
6084
6084
|
}
|
|
6085
6085
|
// 设置选中的颜色(接收 rgba 分量)
|
|
6086
6086
|
setSelectedColorRgba(e, t, s, n = 1) {
|
|
6087
|
-
const o = Ni(e), a = Ni(t), l = Ni(s), r =
|
|
6087
|
+
const o = Ni(e), a = Ni(t), l = Ni(s), r = wl(n), c = Ro({ r: o, g: a, b: l, a: r });
|
|
6088
6088
|
c && (this.selectedColor = c);
|
|
6089
6089
|
}
|
|
6090
6090
|
// 合并新旧上色并按等级覆盖
|
|
@@ -7121,7 +7121,7 @@ class lv {
|
|
|
7121
7121
|
if (!t.ok) throw new Error(`HTTP ${t.status} for ${e}`);
|
|
7122
7122
|
if (e.endsWith(".json") || t.headers.get("content-type")?.includes("application/json"))
|
|
7123
7123
|
return await t.json();
|
|
7124
|
-
const s = await t.blob(), n = new Ha(new ho(s), { password:
|
|
7124
|
+
const s = await t.blob(), n = new Ha(new ho(s), { password: Vu, useWebWorkers: !1 }), a = (await n.getEntries()).find(
|
|
7125
7125
|
(c) => !c.directory && c.filename.endsWith(".json")
|
|
7126
7126
|
);
|
|
7127
7127
|
if (!a)
|
|
@@ -7275,7 +7275,7 @@ function cv(i) {
|
|
|
7275
7275
|
i("EPSG:" + (32600 + e), "+proj=utm +zone=" + e + " +datum=WGS84 +units=m"), i("EPSG:" + (32700 + e), "+proj=utm +zone=" + e + " +south +datum=WGS84 +units=m");
|
|
7276
7276
|
i("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), i("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), i.WGS84 = i["EPSG:4326"], i["EPSG:3785"] = i["EPSG:3857"], i.GOOGLE = i["EPSG:3857"], i["EPSG:900913"] = i["EPSG:3857"], i["EPSG:102113"] = i["EPSG:3857"];
|
|
7277
7277
|
}
|
|
7278
|
-
var Pi = 1, Di = 2, es = 3, uv = 4, la = 5,
|
|
7278
|
+
var Pi = 1, Di = 2, es = 3, uv = 4, la = 5, El = 6378137, hv = 6356752314e-3, xl = 0.0066943799901413165, Ds = 484813681109536e-20, K = Math.PI / 2, dv = 0.16666666666666666, fv = 0.04722222222222222, gv = 0.022156084656084655, J = 1e-10, Ye = 0.017453292519943295, mt = 57.29577951308232, Se = Math.PI / 4, Qs = Math.PI * 2, Ve = 3.14159265359, At = {};
|
|
7279
7279
|
At.greenwich = 0;
|
|
7280
7280
|
At.lisbon = -9.131906111111;
|
|
7281
7281
|
At.paris = 2.337229166667;
|
|
@@ -7311,12 +7311,12 @@ const pv = {
|
|
|
7311
7311
|
"us-in": { to_meter: 0.025400050800101 },
|
|
7312
7312
|
"us-yd": { to_meter: 0.914401828803658 }
|
|
7313
7313
|
};
|
|
7314
|
-
var
|
|
7314
|
+
var Il = /[\s_\-\/\(\)]/g;
|
|
7315
7315
|
function di(i, e) {
|
|
7316
7316
|
if (i[e])
|
|
7317
7317
|
return i[e];
|
|
7318
|
-
for (var t = Object.keys(i), s = e.toLowerCase().replace(
|
|
7319
|
-
if (o = t[n], a = o.toLowerCase().replace(
|
|
7318
|
+
for (var t = Object.keys(i), s = e.toLowerCase().replace(Il, ""), n = -1, o, a; ++n < t.length; )
|
|
7319
|
+
if (o = t[n], a = o.toLowerCase().replace(Il, ""), a === s)
|
|
7320
7320
|
return i[o];
|
|
7321
7321
|
}
|
|
7322
7322
|
function ca(i) {
|
|
@@ -7630,7 +7630,7 @@ function Cv(i) {
|
|
|
7630
7630
|
const e = i.toUpperCase();
|
|
7631
7631
|
return e.includes("PROJCRS") || e.includes("GEOGCRS") || e.includes("BOUNDCRS") || e.includes("VERTCRS") || e.includes("LENGTHUNIT") || e.includes("ANGLEUNIT") || e.includes("SCALEUNIT") ? "WKT2" : (e.includes("PROJCS") || e.includes("GEOGCS") || e.includes("LOCAL_CS") || e.includes("VERT_CS") || e.includes("UNIT"), "WKT1");
|
|
7632
7632
|
}
|
|
7633
|
-
var Hs = 1, qu = 2, Xu = 3, Yn = 4, Ju = 5,
|
|
7633
|
+
var Hs = 1, qu = 2, Xu = 3, Yn = 4, Ju = 5, za = -1, bv = /\s/, wv = /[A-Za-z]/, Ev = /[A-Za-z84_]/, fo = /[,\]]/, Zu = /[\d\.E\-\+]/;
|
|
7634
7634
|
function Jt(i) {
|
|
7635
7635
|
if (typeof i != "string")
|
|
7636
7636
|
throw new Error("not a string");
|
|
@@ -7655,7 +7655,7 @@ Jt.prototype.readCharicter = function() {
|
|
|
7655
7655
|
return this.afterquote(i);
|
|
7656
7656
|
case Xu:
|
|
7657
7657
|
return this.number(i);
|
|
7658
|
-
case
|
|
7658
|
+
case za:
|
|
7659
7659
|
return;
|
|
7660
7660
|
}
|
|
7661
7661
|
};
|
|
@@ -7676,7 +7676,7 @@ Jt.prototype.afterItem = function(i) {
|
|
|
7676
7676
|
return;
|
|
7677
7677
|
}
|
|
7678
7678
|
if (i === "]") {
|
|
7679
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = Hs, this.currentObject = this.stack.pop(), this.currentObject || (this.state =
|
|
7679
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = Hs, this.currentObject = this.stack.pop(), this.currentObject || (this.state = za);
|
|
7680
7680
|
return;
|
|
7681
7681
|
}
|
|
7682
7682
|
};
|
|
@@ -7736,7 +7736,7 @@ Jt.prototype.neutral = function(i) {
|
|
|
7736
7736
|
Jt.prototype.output = function() {
|
|
7737
7737
|
for (; this.place < this.text.length; )
|
|
7738
7738
|
this.readCharicter();
|
|
7739
|
-
if (this.state ===
|
|
7739
|
+
if (this.state === za)
|
|
7740
7740
|
return this.root;
|
|
7741
7741
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
7742
7742
|
};
|
|
@@ -7838,15 +7838,15 @@ function eh(i) {
|
|
|
7838
7838
|
const e = (i.projName || "").toLowerCase().replace(/_/g, " ");
|
|
7839
7839
|
!i.long0 && i.longc && (e === "albers conic equal area" || e === "lambert azimuthal equal area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (e === "stereographic south pole" || e === "polar stereographic (variant b)") ? (i.lat0 = _t(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1, delete i.lat1) : !i.lat_ts && i.lat0 && (e === "polar stereographic" || e === "polar stereographic (variant a)") && (i.lat_ts = i.lat0, i.lat0 = _t(i.lat0 > 0 ? 90 : -90), delete i.lat1);
|
|
7840
7840
|
}
|
|
7841
|
-
function
|
|
7841
|
+
function Sl(i) {
|
|
7842
7842
|
let e = { units: null, to_meter: void 0 };
|
|
7843
7843
|
return typeof i == "string" ? (e.units = i.toLowerCase(), e.units === "metre" && (e.units = "meter"), e.units === "meter" && (e.to_meter = 1)) : i && i.name && (e.units = i.name.toLowerCase(), e.units === "metre" && (e.units = "meter"), e.to_meter = i.conversion_factor), e;
|
|
7844
7844
|
}
|
|
7845
|
-
function
|
|
7845
|
+
function Ml(i) {
|
|
7846
7846
|
return typeof i == "object" ? i.value * i.unit.conversion_factor : i;
|
|
7847
7847
|
}
|
|
7848
|
-
function
|
|
7849
|
-
i.ellipsoid.radius ? (e.a = i.ellipsoid.radius, e.rf = 0) : (e.a =
|
|
7848
|
+
function Bl(i, e) {
|
|
7849
|
+
i.ellipsoid.radius ? (e.a = i.ellipsoid.radius, e.rf = 0) : (e.a = Ml(i.ellipsoid.semi_major_axis), i.ellipsoid.inverse_flattening !== void 0 ? e.rf = i.ellipsoid.inverse_flattening : i.ellipsoid.semi_major_axis !== void 0 && i.ellipsoid.semi_minor_axis !== void 0 && (e.rf = e.a / (e.a - Ml(i.ellipsoid.semi_minor_axis))));
|
|
7850
7850
|
}
|
|
7851
7851
|
function zn(i, e = {}) {
|
|
7852
7852
|
return !i || typeof i != "object" ? i : i.type === "BoundCRS" ? (zn(i.source_crs, e), i.transformation && (i.transformation.method && i.transformation.method.name === "NTv2" ? e.nadgrids = i.transformation.parameters[0].value : e.datum_params = i.transformation.parameters.map((t) => t.value)), e) : (Object.keys(i).forEach((t) => {
|
|
@@ -7863,10 +7863,10 @@ function zn(i, e = {}) {
|
|
|
7863
7863
|
break;
|
|
7864
7864
|
case "datum":
|
|
7865
7865
|
case "datum_ensemble":
|
|
7866
|
-
s.ellipsoid && (e.ellps = s.ellipsoid.name,
|
|
7866
|
+
s.ellipsoid && (e.ellps = s.ellipsoid.name, Bl(s, e)), s.prime_meridian && (e.from_greenwich = s.prime_meridian.longitude * Math.PI / 180);
|
|
7867
7867
|
break;
|
|
7868
7868
|
case "ellipsoid":
|
|
7869
|
-
e.ellps = s.name,
|
|
7869
|
+
e.ellps = s.name, Bl(s, e);
|
|
7870
7870
|
break;
|
|
7871
7871
|
case "prime_meridian":
|
|
7872
7872
|
e.long0 = (s.longitude || 0) * Math.PI / 180;
|
|
@@ -7881,10 +7881,10 @@ function zn(i, e = {}) {
|
|
|
7881
7881
|
if (o === "south") return "s";
|
|
7882
7882
|
throw new Error(`Unknown axis direction: ${o}`);
|
|
7883
7883
|
}).join("") + "u", s.unit) {
|
|
7884
|
-
const { units: n, to_meter: o } =
|
|
7884
|
+
const { units: n, to_meter: o } = Sl(s.unit);
|
|
7885
7885
|
e.units = n, e.to_meter = o;
|
|
7886
7886
|
} else if (s.axis[0] && s.axis[0].unit) {
|
|
7887
|
-
const { units: n, to_meter: o } =
|
|
7887
|
+
const { units: n, to_meter: o } = Sl(s.axis[0].unit);
|
|
7888
7888
|
e.units = n, e.to_meter = o;
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
@@ -8075,7 +8075,7 @@ function Fv(i) {
|
|
|
8075
8075
|
return ca(i);
|
|
8076
8076
|
} else return "projName" in i ? i : Wn(i);
|
|
8077
8077
|
}
|
|
8078
|
-
function
|
|
8078
|
+
function Tl(i, e) {
|
|
8079
8079
|
i = i || {};
|
|
8080
8080
|
var t, s;
|
|
8081
8081
|
if (!e)
|
|
@@ -8143,14 +8143,14 @@ const Qv = {
|
|
|
8143
8143
|
};
|
|
8144
8144
|
function Hv() {
|
|
8145
8145
|
}
|
|
8146
|
-
function
|
|
8146
|
+
function Pl(i) {
|
|
8147
8147
|
return i;
|
|
8148
8148
|
}
|
|
8149
8149
|
var ih = ["longlat", "identity"];
|
|
8150
8150
|
const Yv = {
|
|
8151
8151
|
init: Hv,
|
|
8152
|
-
forward:
|
|
8153
|
-
inverse:
|
|
8152
|
+
forward: Pl,
|
|
8153
|
+
inverse: Pl,
|
|
8154
8154
|
names: ih
|
|
8155
8155
|
};
|
|
8156
8156
|
var zv = [Qv, Yv], bi = {}, ji = [];
|
|
@@ -9703,7 +9703,7 @@ function Jv(i, e, t, s, n, o, a) {
|
|
|
9703
9703
|
var l = {};
|
|
9704
9704
|
return i === void 0 || i === "none" ? l.datum_type = la : l.datum_type = uv, e && (l.datum_params = e.map(parseFloat), (l.datum_params[0] !== 0 || l.datum_params[1] !== 0 || l.datum_params[2] !== 0) && (l.datum_type = Pi), l.datum_params.length > 3 && (l.datum_params[3] !== 0 || l.datum_params[4] !== 0 || l.datum_params[5] !== 0 || l.datum_params[6] !== 0) && (l.datum_type = Di, l.datum_params[3] *= Ds, l.datum_params[4] *= Ds, l.datum_params[5] *= Ds, l.datum_params[6] = l.datum_params[6] / 1e6 + 1)), a && (l.datum_type = es, l.grids = a), l.a = t, l.b = s, l.es = n, l.ep2 = o, l;
|
|
9705
9705
|
}
|
|
9706
|
-
var
|
|
9706
|
+
var Wa = {};
|
|
9707
9707
|
function Zv(i, e, t) {
|
|
9708
9708
|
return e instanceof ArrayBuffer ? ey(i, e, t) : { ready: ty(i, e) };
|
|
9709
9709
|
}
|
|
@@ -9711,11 +9711,11 @@ function ey(i, e, t) {
|
|
|
9711
9711
|
var s = !0;
|
|
9712
9712
|
t !== void 0 && t.includeErrorFields === !1 && (s = !1);
|
|
9713
9713
|
var n = new DataView(e), o = ny(n), a = oy(n, o), l = ay(n, a, o, s), r = { header: a, subgrids: l };
|
|
9714
|
-
return
|
|
9714
|
+
return Wa[i] = r, r;
|
|
9715
9715
|
}
|
|
9716
9716
|
async function ty(i, e) {
|
|
9717
9717
|
for (var t = [], s = await e.getImageCount(), n = s - 1; n >= 0; n--) {
|
|
9718
|
-
var o = await e.getImage(n), a = await o.readRasters(), l = a, r = [o.getWidth(), o.getHeight()], c = o.getBoundingBox().map(
|
|
9718
|
+
var o = await e.getImage(n), a = await o.readRasters(), l = a, r = [o.getWidth(), o.getHeight()], c = o.getBoundingBox().map(Dl), u = [o.fileDirectory.ModelPixelScale[0], o.fileDirectory.ModelPixelScale[1]].map(Dl), d = c[0] + (r[0] - 1) * u[0], f = c[3] - (r[1] - 1) * u[1], h = l[0], g = l[1], v = [];
|
|
9719
9719
|
for (let C = r[1] - 1; C >= 0; C--)
|
|
9720
9720
|
for (let w = r[0] - 1; w >= 0; w--) {
|
|
9721
9721
|
var m = C * r[0] + w;
|
|
@@ -9734,7 +9734,7 @@ async function ty(i, e) {
|
|
|
9734
9734
|
},
|
|
9735
9735
|
subgrids: t
|
|
9736
9736
|
};
|
|
9737
|
-
return
|
|
9737
|
+
return Wa[i] = A, A;
|
|
9738
9738
|
}
|
|
9739
9739
|
function iy(i) {
|
|
9740
9740
|
if (i === void 0)
|
|
@@ -9749,11 +9749,11 @@ function sy(i) {
|
|
|
9749
9749
|
return e && (i = i.slice(1)), i === "null" ? { name: "null", mandatory: !e, grid: null, isNull: !0 } : {
|
|
9750
9750
|
name: i,
|
|
9751
9751
|
mandatory: !e,
|
|
9752
|
-
grid:
|
|
9752
|
+
grid: Wa[i] || null,
|
|
9753
9753
|
isNull: !1
|
|
9754
9754
|
};
|
|
9755
9755
|
}
|
|
9756
|
-
function
|
|
9756
|
+
function Dl(i) {
|
|
9757
9757
|
return i * Math.PI / 180;
|
|
9758
9758
|
}
|
|
9759
9759
|
function oi(i) {
|
|
@@ -9858,7 +9858,7 @@ function Mt(i, e) {
|
|
|
9858
9858
|
a.ep2,
|
|
9859
9859
|
l
|
|
9860
9860
|
);
|
|
9861
|
-
|
|
9861
|
+
Tl(this, t), Tl(this, s), this.a = o.a, this.b = o.b, this.rf = o.rf, this.sphere = o.sphere, this.es = a.es, this.e = a.e, this.ep2 = a.ep2, this.datum = r, "init" in this && typeof this.init == "function" && this.init(), e(null, this);
|
|
9862
9862
|
}
|
|
9863
9863
|
Mt.projections = jv;
|
|
9864
9864
|
Mt.projections.start();
|
|
@@ -9944,22 +9944,22 @@ function fy(i, e, t) {
|
|
|
9944
9944
|
return t;
|
|
9945
9945
|
var s = i.a, n = i.es;
|
|
9946
9946
|
if (i.datum_type === es) {
|
|
9947
|
-
var o =
|
|
9947
|
+
var o = _l(i, !1, t);
|
|
9948
9948
|
if (o !== 0)
|
|
9949
9949
|
return;
|
|
9950
|
-
s =
|
|
9950
|
+
s = El, n = xl;
|
|
9951
9951
|
}
|
|
9952
9952
|
var a = e.a, l = e.b, r = e.es;
|
|
9953
|
-
if (e.datum_type === es && (a =
|
|
9953
|
+
if (e.datum_type === es && (a = El, l = hv, r = xl), n === r && s === a && !hn(i.datum_type) && !hn(e.datum_type))
|
|
9954
9954
|
return t;
|
|
9955
9955
|
if (t = ah(t, n, s), hn(i.datum_type) && (t = hy(t, i.datum_type, i.datum_params)), hn(e.datum_type) && (t = dy(t, e.datum_type, e.datum_params)), t = rh(t, r, a, l), e.datum_type === es) {
|
|
9956
|
-
var c =
|
|
9956
|
+
var c = _l(e, !0, t);
|
|
9957
9957
|
if (c !== 0)
|
|
9958
9958
|
return;
|
|
9959
9959
|
}
|
|
9960
9960
|
return t;
|
|
9961
9961
|
}
|
|
9962
|
-
function
|
|
9962
|
+
function _l(i, e, t) {
|
|
9963
9963
|
if (i.grids === null || i.grids.length === 0)
|
|
9964
9964
|
return -1;
|
|
9965
9965
|
var s = { x: -t.x, y: t.y }, n = { x: Number.NaN, y: Number.NaN }, o = [];
|
|
@@ -9989,14 +9989,14 @@ function gy(i, e, t) {
|
|
|
9989
9989
|
return s;
|
|
9990
9990
|
var n = { x: i.x, y: i.y };
|
|
9991
9991
|
n.x -= t.ll[0], n.y -= t.ll[1], n.x = se(n.x - Math.PI) + Math.PI;
|
|
9992
|
-
var o =
|
|
9992
|
+
var o = kl(n, t);
|
|
9993
9993
|
if (e) {
|
|
9994
9994
|
if (isNaN(o.x))
|
|
9995
9995
|
return s;
|
|
9996
9996
|
o.x = n.x - o.x, o.y = n.y - o.y;
|
|
9997
9997
|
var a = 9, l = 1e-12, r, c;
|
|
9998
9998
|
do {
|
|
9999
|
-
if (c =
|
|
9999
|
+
if (c = kl(o, t), isNaN(c.x))
|
|
10000
10000
|
break;
|
|
10001
10001
|
r = { x: n.x - (c.x + o.x), y: n.y - (c.y + o.y) }, o.x += r.x, o.y += r.y;
|
|
10002
10002
|
} while (a-- && Math.abs(r.x) > l && Math.abs(r.y) > l);
|
|
@@ -10007,7 +10007,7 @@ function gy(i, e, t) {
|
|
|
10007
10007
|
isNaN(o.x) || (s.x = i.x + o.x, s.y = i.y + o.y);
|
|
10008
10008
|
return s;
|
|
10009
10009
|
}
|
|
10010
|
-
function
|
|
10010
|
+
function kl(i, e) {
|
|
10011
10011
|
var t = { x: i.x / e.del[0], y: i.y / e.del[1] }, s = { x: Math.floor(t.x), y: Math.floor(t.y) }, n = { x: t.x - 1 * s.x, y: t.y - 1 * s.y }, o = { x: Number.NaN, y: Number.NaN }, a;
|
|
10012
10012
|
if (s.x < 0 || s.x >= e.lim[0] || s.y < 0 || s.y >= e.lim[1])
|
|
10013
10013
|
return o;
|
|
@@ -10021,7 +10021,7 @@ function _l(i, e) {
|
|
|
10021
10021
|
var u = { x: e.cvs[a][0], y: e.cvs[a][1] }, d = n.x * n.y, f = n.x * (1 - n.y), h = (1 - n.x) * (1 - n.y), g = (1 - n.x) * n.y;
|
|
10022
10022
|
return o.x = h * l.x + f * r.x + g * u.x + d * c.x, o.y = h * l.y + f * r.y + g * u.y + d * c.y, o;
|
|
10023
10023
|
}
|
|
10024
|
-
function
|
|
10024
|
+
function Ll(i, e, t) {
|
|
10025
10025
|
var s = t.x, n = t.y, o = t.z || 0, a, l, r, c = {};
|
|
10026
10026
|
for (r = 0; r < 3; r++)
|
|
10027
10027
|
if (!(e && r === 2 && t.z === void 0))
|
|
@@ -10057,9 +10057,9 @@ function lh(i) {
|
|
|
10057
10057
|
return i.length > 2 && (e.z = i[2]), i.length > 3 && (e.m = i[3]), e;
|
|
10058
10058
|
}
|
|
10059
10059
|
function py(i) {
|
|
10060
|
-
|
|
10060
|
+
Rl(i.x), Rl(i.y);
|
|
10061
10061
|
}
|
|
10062
|
-
function
|
|
10062
|
+
function Rl(i) {
|
|
10063
10063
|
if (typeof Number.isFinite == "function") {
|
|
10064
10064
|
if (Number.isFinite(i))
|
|
10065
10065
|
return;
|
|
@@ -10080,7 +10080,7 @@ function Vn(i, e, t, s) {
|
|
|
10080
10080
|
m: t.m
|
|
10081
10081
|
};
|
|
10082
10082
|
var o = t.z !== void 0;
|
|
10083
|
-
if (py(t), i.datum && e.datum && my(i, e) && (n = new Mt("WGS84"), t = Vn(i, n, t, s), i = n), s && i.axis !== "enu" && (t =
|
|
10083
|
+
if (py(t), i.datum && e.datum && my(i, e) && (n = new Mt("WGS84"), t = Vn(i, n, t, s), i = n), s && i.axis !== "enu" && (t = Ll(i, !1, t)), i.projName === "longlat")
|
|
10084
10084
|
t = {
|
|
10085
10085
|
x: t.x * Ye,
|
|
10086
10086
|
y: t.y * Ye,
|
|
@@ -10106,9 +10106,9 @@ function Vn(i, e, t, s) {
|
|
|
10106
10106
|
x: t.x / e.to_meter,
|
|
10107
10107
|
y: t.y / e.to_meter,
|
|
10108
10108
|
z: t.z || 0
|
|
10109
|
-
})), s && e.axis !== "enu" ?
|
|
10109
|
+
})), s && e.axis !== "enu" ? Ll(e, !0, t) : (t && !o && delete t.z, t);
|
|
10110
10110
|
}
|
|
10111
|
-
var
|
|
10111
|
+
var Fl = Mt("WGS84");
|
|
10112
10112
|
function Uo(i, e, t, s) {
|
|
10113
10113
|
var n, o, a;
|
|
10114
10114
|
return Array.isArray(t) ? (n = Vn(i, e, t, s) || { x: NaN, y: NaN }, t.length > 2 ? typeof i.name < "u" && i.name === "geocent" || typeof e.name < "u" && e.name === "geocent" ? typeof n.z == "number" ? (
|
|
@@ -10141,10 +10141,10 @@ function dn(i) {
|
|
|
10141
10141
|
}
|
|
10142
10142
|
function Ay(i, e, t) {
|
|
10143
10143
|
var s, n, o = !1, a;
|
|
10144
|
-
return typeof e > "u" ? (n = dn(i), s =
|
|
10144
|
+
return typeof e > "u" ? (n = dn(i), s = Fl, o = !0) : (typeof /** @type {?} */
|
|
10145
10145
|
e.x < "u" || Array.isArray(e)) && (t = /** @type {T} */
|
|
10146
10146
|
/** @type {?} */
|
|
10147
|
-
e, n = dn(i), s =
|
|
10147
|
+
e, n = dn(i), s = Fl, o = !0), s || (s = dn(i)), n || (n = dn(
|
|
10148
10148
|
/** @type {string | PROJJSONDefinition | proj } */
|
|
10149
10149
|
e
|
|
10150
10150
|
)), t ? Uo(s, n, t) : (a = {
|
|
@@ -10168,7 +10168,7 @@ function Ay(i, e, t) {
|
|
|
10168
10168
|
}
|
|
10169
10169
|
}, o && (a.oProj = n), a);
|
|
10170
10170
|
}
|
|
10171
|
-
var
|
|
10171
|
+
var Ol = 6, ch = "AJSAJS", uh = "AFAFAF", $i = 65, ft = 73, It = 79, Es = 86, xs = 90;
|
|
10172
10172
|
const vy = {
|
|
10173
10173
|
forward: hh,
|
|
10174
10174
|
inverse: yy,
|
|
@@ -10181,17 +10181,17 @@ function hh(i, e) {
|
|
|
10181
10181
|
}), e);
|
|
10182
10182
|
}
|
|
10183
10183
|
function yy(i) {
|
|
10184
|
-
var e =
|
|
10184
|
+
var e = Va(gh(i.toUpperCase()));
|
|
10185
10185
|
return e.lat && e.lon ? [e.lon, e.lat, e.lon, e.lat] : [e.left, e.bottom, e.right, e.top];
|
|
10186
10186
|
}
|
|
10187
10187
|
function dh(i) {
|
|
10188
|
-
var e =
|
|
10188
|
+
var e = Va(gh(i.toUpperCase()));
|
|
10189
10189
|
return e.lat && e.lon ? [e.lon, e.lat] : [(e.left + e.right) / 2, (e.top + e.bottom) / 2];
|
|
10190
10190
|
}
|
|
10191
10191
|
function No(i) {
|
|
10192
10192
|
return i * (Math.PI / 180);
|
|
10193
10193
|
}
|
|
10194
|
-
function
|
|
10194
|
+
function Gl(i) {
|
|
10195
10195
|
return 180 * (i / Math.PI);
|
|
10196
10196
|
}
|
|
10197
10197
|
function Cy(i) {
|
|
@@ -10205,19 +10205,19 @@ function Cy(i) {
|
|
|
10205
10205
|
zoneLetter: by(e)
|
|
10206
10206
|
};
|
|
10207
10207
|
}
|
|
10208
|
-
function
|
|
10208
|
+
function Va(i) {
|
|
10209
10209
|
var e = i.northing, t = i.easting, s = i.zoneLetter, n = i.zoneNumber;
|
|
10210
10210
|
if (n < 0 || n > 60)
|
|
10211
10211
|
return null;
|
|
10212
10212
|
var o = 0.9996, a = 6378137, l = 669438e-8, r, c = (1 - Math.sqrt(1 - l)) / (1 + Math.sqrt(1 - l)), u, d, f, h, g, v, m, A, C, w = t - 5e5, M = e;
|
|
10213
10213
|
s < "N" && (M -= 1e7), m = (n - 1) * 6 - 180 + 3, r = l / (1 - l), v = M / o, A = v / (a * (1 - l / 4 - 3 * l * l / 64 - 5 * l * l * l / 256)), C = A + (3 * c / 2 - 27 * c * c * c / 32) * Math.sin(2 * A) + (21 * c * c / 16 - 55 * c * c * c * c / 32) * Math.sin(4 * A) + 151 * c * c * c / 96 * Math.sin(6 * A), u = a / Math.sqrt(1 - l * Math.sin(C) * Math.sin(C)), d = Math.tan(C) * Math.tan(C), f = r * Math.cos(C) * Math.cos(C), h = a * (1 - l) / Math.pow(1 - l * Math.sin(C) * Math.sin(C), 1.5), g = w / (u * o);
|
|
10214
10214
|
var D = C - u * Math.tan(C) / h * (g * g / 2 - (5 + 3 * d + 10 * f - 4 * f * f - 9 * r) * g * g * g * g / 24 + (61 + 90 * d + 298 * f + 45 * d * d - 252 * r - 3 * f * f) * g * g * g * g * g * g / 720);
|
|
10215
|
-
D =
|
|
10215
|
+
D = Gl(D);
|
|
10216
10216
|
var x = (g - (1 + 2 * d + f) * g * g * g / 6 + (5 - 2 * f + 28 * d - 3 * f * f + 8 * r + 24 * d * d) * g * g * g * g * g / 120) / Math.cos(C);
|
|
10217
|
-
x = m +
|
|
10217
|
+
x = m + Gl(x);
|
|
10218
10218
|
var E;
|
|
10219
10219
|
if (i.accuracy) {
|
|
10220
|
-
var B =
|
|
10220
|
+
var B = Va({
|
|
10221
10221
|
northing: i.northing + i.accuracy,
|
|
10222
10222
|
easting: i.easting + i.accuracy,
|
|
10223
10223
|
zoneLetter: i.zoneLetter,
|
|
@@ -10249,8 +10249,8 @@ function Ey(i, e, t) {
|
|
|
10249
10249
|
return xy(n, o, s);
|
|
10250
10250
|
}
|
|
10251
10251
|
function fh(i) {
|
|
10252
|
-
var e = i %
|
|
10253
|
-
return e === 0 && (e =
|
|
10252
|
+
var e = i % Ol;
|
|
10253
|
+
return e === 0 && (e = Ol), e;
|
|
10254
10254
|
}
|
|
10255
10255
|
function xy(i, e, t) {
|
|
10256
10256
|
var s = t - 1, n = ch.charCodeAt(s), o = uh.charCodeAt(s), a = n + i - 1, l = o + e, r = !1;
|
|
@@ -10404,10 +10404,10 @@ os.fromMGRS = function(i) {
|
|
|
10404
10404
|
os.prototype.toMGRS = function(i) {
|
|
10405
10405
|
return hh([this.x, this.y], i);
|
|
10406
10406
|
};
|
|
10407
|
-
var By = 1, Ty = 0.25,
|
|
10408
|
-
function
|
|
10407
|
+
var By = 1, Ty = 0.25, Ul = 0.046875, Nl = 0.01953125, Ql = 0.01068115234375, Py = 0.75, Dy = 0.46875, _y = 0.013020833333333334, ky = 0.007120768229166667, Ly = 0.3645833333333333, Ry = 0.005696614583333333, Fy = 0.3076171875;
|
|
10408
|
+
function ja(i) {
|
|
10409
10409
|
var e = [];
|
|
10410
|
-
e[0] = By - i * (Ty + i * (
|
|
10410
|
+
e[0] = By - i * (Ty + i * (Ul + i * (Nl + i * Ql))), e[1] = i * (Py - i * (Ul + i * (Nl + i * Ql)));
|
|
10411
10411
|
var t = i * i;
|
|
10412
10412
|
return e[2] = t * (Dy - i * (_y + i * ky)), t *= i, e[3] = t * (Ly - i * Ry), e[4] = t * i * Fy, e;
|
|
10413
10413
|
}
|
|
@@ -10415,7 +10415,7 @@ function hs(i, e, t, s) {
|
|
|
10415
10415
|
return t *= e, e *= e, s[0] * i - t * (s[1] + e * (s[2] + e * (s[3] + e * s[4])));
|
|
10416
10416
|
}
|
|
10417
10417
|
var Oy = 20;
|
|
10418
|
-
function
|
|
10418
|
+
function $a(i, e, t) {
|
|
10419
10419
|
for (var s = 1 / (1 - e), n = i, o = Oy; o; --o) {
|
|
10420
10420
|
var a = Math.sin(n), l = 1 - e * a * a;
|
|
10421
10421
|
if (l = (hs(n, a, Math.cos(n), t) - i) * (l * Math.sqrt(l)) * s, n -= l, Math.abs(l) < J)
|
|
@@ -10424,7 +10424,7 @@ function ja(i, e, t) {
|
|
|
10424
10424
|
return n;
|
|
10425
10425
|
}
|
|
10426
10426
|
function Gy() {
|
|
10427
|
-
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en =
|
|
10427
|
+
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = ja(this.es), this.ml0 = hs(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
10428
10428
|
}
|
|
10429
10429
|
function Uy(i) {
|
|
10430
10430
|
var e = i.x, t = i.y, s = se(e - this.long0, this.over), n, o, a, l = Math.sin(t), r = Math.cos(t);
|
|
@@ -10450,7 +10450,7 @@ function Uy(i) {
|
|
|
10450
10450
|
function Ny(i) {
|
|
10451
10451
|
var e, t, s, n, o = (i.x - this.x0) * (1 / this.a), a = (i.y - this.y0) * (1 / this.a);
|
|
10452
10452
|
if (this.es)
|
|
10453
|
-
if (e = this.ml0 + a / this.k0, t =
|
|
10453
|
+
if (e = this.ml0 + a / this.k0, t = $a(e, this.es, this.en), Math.abs(t) < K) {
|
|
10454
10454
|
var d = Math.sin(t), f = Math.cos(t), h = Math.abs(f) > J ? Math.tan(t) : 0, g = this.ep2 * Math.pow(f, 2), v = Math.pow(g, 2), m = Math.pow(h, 2), A = Math.pow(m, 2);
|
|
10455
10455
|
e = 1 - this.es * Math.pow(d, 2);
|
|
10456
10456
|
var C = o * Math.sqrt(e) / this.k0, w = Math.pow(C, 2);
|
|
@@ -10487,7 +10487,7 @@ function Yy(i) {
|
|
|
10487
10487
|
var e = Math.abs(i);
|
|
10488
10488
|
return e = Hy(e * (1 + e / (gt(1, e) + 1))), i < 0 ? -e : e;
|
|
10489
10489
|
}
|
|
10490
|
-
function
|
|
10490
|
+
function Ka(i, e) {
|
|
10491
10491
|
for (var t = 2 * Math.cos(2 * e), s = i.length - 1, n = i[s], o = 0, a; --s >= 0; )
|
|
10492
10492
|
a = -o + t * n + i[s], o = n, n = a;
|
|
10493
10493
|
return e + a * Math.sin(2 * e);
|
|
@@ -10512,12 +10512,12 @@ function Vy() {
|
|
|
10512
10512
|
this.approx && (xn.init.apply(this), this.forward = xn.forward, this.inverse = xn.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
|
10513
10513
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), e = i / (2 - i), t = e;
|
|
10514
10514
|
this.cgb[0] = e * (2 + e * (-2 / 3 + e * (-2 + e * (116 / 45 + e * (26 / 45 + e * (-2854 / 675)))))), this.cbg[0] = e * (-2 + e * (2 / 3 + e * (4 / 3 + e * (-82 / 45 + e * (32 / 45 + e * (4642 / 4725)))))), t = t * e, this.cgb[1] = t * (7 / 3 + e * (-8 / 5 + e * (-227 / 45 + e * (2704 / 315 + e * (2323 / 945))))), this.cbg[1] = t * (5 / 3 + e * (-16 / 15 + e * (-13 / 9 + e * (904 / 315 + e * (-1522 / 945))))), t = t * e, this.cgb[2] = t * (56 / 15 + e * (-136 / 35 + e * (-1262 / 105 + e * (73814 / 2835)))), this.cbg[2] = t * (-26 / 15 + e * (34 / 21 + e * (8 / 5 + e * (-12686 / 2835)))), t = t * e, this.cgb[3] = t * (4279 / 630 + e * (-332 / 35 + e * (-399572 / 14175))), this.cbg[3] = t * (1237 / 630 + e * (-12 / 5 + e * (-24832 / 14175))), t = t * e, this.cgb[4] = t * (4174 / 315 + e * (-144838 / 6237)), this.cbg[4] = t * (-734 / 315 + e * (109598 / 31185)), t = t * e, this.cgb[5] = t * (601676 / 22275), this.cbg[5] = t * (444337 / 155925), t = Math.pow(e, 2), this.Qn = this.k0 / (1 + e) * (1 + t * (1 / 4 + t * (1 / 64 + t / 256))), this.utg[0] = e * (-0.5 + e * (2 / 3 + e * (-37 / 96 + e * (1 / 360 + e * (81 / 512 + e * (-96199 / 604800)))))), this.gtu[0] = e * (0.5 + e * (-2 / 3 + e * (5 / 16 + e * (41 / 180 + e * (-127 / 288 + e * (7891 / 37800)))))), this.utg[1] = t * (-1 / 48 + e * (-1 / 15 + e * (437 / 1440 + e * (-46 / 105 + e * (1118711 / 3870720))))), this.gtu[1] = t * (13 / 48 + e * (-3 / 5 + e * (557 / 1440 + e * (281 / 630 + e * (-1983433 / 1935360))))), t = t * e, this.utg[2] = t * (-17 / 480 + e * (37 / 840 + e * (209 / 4480 + e * (-5569 / 90720)))), this.gtu[2] = t * (61 / 240 + e * (-103 / 140 + e * (15061 / 26880 + e * (167603 / 181440)))), t = t * e, this.utg[3] = t * (-4397 / 161280 + e * (11 / 504 + e * (830251 / 7257600))), this.gtu[3] = t * (49561 / 161280 + e * (-179 / 168 + e * (6601661 / 7257600))), t = t * e, this.utg[4] = t * (-4583 / 161280 + e * (108847 / 3991680)), this.gtu[4] = t * (34729 / 80640 + e * (-3418889 / 1995840)), t = t * e, this.utg[5] = t * (-20648693 / 638668800), this.gtu[5] = t * (212378941 / 319334400);
|
|
10515
|
-
var s =
|
|
10515
|
+
var s = Ka(this.cbg, this.lat0);
|
|
10516
10516
|
this.Zb = -this.Qn * (s + zy(this.gtu, 2 * s));
|
|
10517
10517
|
}
|
|
10518
10518
|
function jy(i) {
|
|
10519
10519
|
var e = se(i.x - this.long0, this.over), t = i.y;
|
|
10520
|
-
t =
|
|
10520
|
+
t = Ka(this.cbg, t);
|
|
10521
10521
|
var s = Math.sin(t), n = Math.cos(t), o = Math.sin(e), a = Math.cos(e);
|
|
10522
10522
|
t = Math.atan2(s, a * n), e = Math.atan2(o * n, gt(s, n * a)), e = Yy(Math.tan(e));
|
|
10523
10523
|
var l = mh(this.gtu, 2 * t, 2 * e);
|
|
@@ -10533,7 +10533,7 @@ function $y(i) {
|
|
|
10533
10533
|
var o = mh(this.utg, 2 * t, 2 * e);
|
|
10534
10534
|
t = t + o[0], e = e + o[1], e = Math.atan(ph(e));
|
|
10535
10535
|
var a = Math.sin(t), l = Math.cos(t), r = Math.sin(e), c = Math.cos(e);
|
|
10536
|
-
t = Math.atan2(a * c, gt(r, c * l)), e = Math.atan2(r, c * l), s = se(e + this.long0, this.over), n =
|
|
10536
|
+
t = Math.atan2(a * c, gt(r, c * l)), e = Math.atan2(r, c * l), s = se(e + this.long0, this.over), n = Ka(this.cgb, t);
|
|
10537
10537
|
} else
|
|
10538
10538
|
s = 1 / 0, n = 1 / 0;
|
|
10539
10539
|
return i.x = s, i.y = n, i;
|
|
@@ -10567,34 +10567,34 @@ const e1 = {
|
|
|
10567
10567
|
names: Zy,
|
|
10568
10568
|
dependsOn: Xy
|
|
10569
10569
|
};
|
|
10570
|
-
function
|
|
10570
|
+
function qa(i, e) {
|
|
10571
10571
|
return Math.pow((1 - i) / (1 + i), e);
|
|
10572
10572
|
}
|
|
10573
10573
|
var t1 = 20;
|
|
10574
10574
|
function i1() {
|
|
10575
10575
|
var i = Math.sin(this.lat0), e = Math.cos(this.lat0);
|
|
10576
|
-
e *= e, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * e * e / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + Se) / (Math.pow(Math.tan(0.5 * this.lat0 + Se), this.C) *
|
|
10576
|
+
e *= e, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * e * e / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + Se) / (Math.pow(Math.tan(0.5 * this.lat0 + Se), this.C) * qa(this.e * i, this.ratexp));
|
|
10577
10577
|
}
|
|
10578
10578
|
function s1(i) {
|
|
10579
10579
|
var e = i.x, t = i.y;
|
|
10580
|
-
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * t + Se), this.C) *
|
|
10580
|
+
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * t + Se), this.C) * qa(this.e * Math.sin(t), this.ratexp)) - K, i.x = this.C * e, i;
|
|
10581
10581
|
}
|
|
10582
10582
|
function n1(i) {
|
|
10583
|
-
for (var e = 1e-14, t = i.x / this.C, s = i.y, n = Math.pow(Math.tan(0.5 * s + Se) / this.K, 1 / this.C), o = t1; o > 0 && (s = 2 * Math.atan(n *
|
|
10583
|
+
for (var e = 1e-14, t = i.x / this.C, s = i.y, n = Math.pow(Math.tan(0.5 * s + Se) / this.K, 1 / this.C), o = t1; o > 0 && (s = 2 * Math.atan(n * qa(this.e * Math.sin(i.y), -0.5 * this.e)) - K, !(Math.abs(s - i.y) < e)); --o)
|
|
10584
10584
|
i.y = s;
|
|
10585
10585
|
return o ? (i.x = t, i.y = s, i) : null;
|
|
10586
10586
|
}
|
|
10587
|
-
const
|
|
10587
|
+
const Xa = {
|
|
10588
10588
|
init: i1,
|
|
10589
10589
|
forward: s1,
|
|
10590
10590
|
inverse: n1
|
|
10591
10591
|
};
|
|
10592
10592
|
function o1() {
|
|
10593
|
-
|
|
10593
|
+
Xa.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
|
10594
10594
|
}
|
|
10595
10595
|
function a1(i) {
|
|
10596
10596
|
var e, t, s, n;
|
|
10597
|
-
return i.x = se(i.x - this.long0, this.over),
|
|
10597
|
+
return i.x = se(i.x - this.long0, this.over), Xa.forward.apply(this, [i]), e = Math.sin(i.y), t = Math.cos(i.y), s = Math.cos(i.x), n = this.k0 * this.R2 / (1 + this.sinc0 * e + this.cosc0 * t * s), i.x = n * t * Math.sin(i.x), i.y = n * (this.cosc0 * e - this.sinc0 * t * s), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
10598
10598
|
}
|
|
10599
10599
|
function r1(i) {
|
|
10600
10600
|
var e, t, s, n, o;
|
|
@@ -10603,7 +10603,7 @@ function r1(i) {
|
|
|
10603
10603
|
e = Math.sin(a), t = Math.cos(a), n = Math.asin(t * this.sinc0 + i.y * e * this.cosc0 / o), s = Math.atan2(i.x * e, o * this.cosc0 * t - i.y * this.sinc0 * e);
|
|
10604
10604
|
} else
|
|
10605
10605
|
n = this.phic0, s = 0;
|
|
10606
|
-
return i.x = s, i.y = n,
|
|
10606
|
+
return i.x = s, i.y = n, Xa.inverse.apply(this, [i]), i.x = se(i.x + this.long0, this.over), i;
|
|
10607
10607
|
}
|
|
10608
10608
|
var l1 = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
10609
10609
|
const c1 = {
|
|
@@ -10612,15 +10612,15 @@ const c1 = {
|
|
|
10612
10612
|
inverse: r1,
|
|
10613
10613
|
names: l1
|
|
10614
10614
|
};
|
|
10615
|
-
function
|
|
10615
|
+
function Ja(i, e, t) {
|
|
10616
10616
|
return e *= t, Math.tan(0.5 * (K + i)) * Math.pow((1 - e) / (1 + e), 0.5 * t);
|
|
10617
10617
|
}
|
|
10618
10618
|
function u1() {
|
|
10619
|
-
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= J && (this.k0 = 0.5 * (1 + qs(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= J && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= J && Math.abs(Math.cos(this.lat_ts)) > J && (this.k0 = 0.5 * this.cons * Wt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / kt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Wt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(
|
|
10619
|
+
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= J && (this.k0 = 0.5 * (1 + qs(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= J && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= J && Math.abs(Math.cos(this.lat_ts)) > J && (this.k0 = 0.5 * this.cons * Wt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / kt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Wt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(Ja(this.lat0, this.sinlat0, this.e)) - K, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
10620
10620
|
}
|
|
10621
10621
|
function h1(i) {
|
|
10622
10622
|
var e = i.x, t = i.y, s = Math.sin(t), n = Math.cos(t), o, a, l, r, c, u, d = se(e - this.long0, this.over);
|
|
10623
|
-
return Math.abs(Math.abs(e - this.long0) - Math.PI) <= J && Math.abs(t + this.lat0) <= J ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (o = 2 * this.k0 / (1 + this.sinlat0 * s + this.coslat0 * n * Math.cos(d)), i.x = this.a * o * n * Math.sin(d) + this.x0, i.y = this.a * o * (this.coslat0 * s - this.sinlat0 * n * Math.cos(d)) + this.y0, i) : (a = 2 * Math.atan(
|
|
10623
|
+
return Math.abs(Math.abs(e - this.long0) - Math.PI) <= J && Math.abs(t + this.lat0) <= J ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (o = 2 * this.k0 / (1 + this.sinlat0 * s + this.coslat0 * n * Math.cos(d)), i.x = this.a * o * n * Math.sin(d) + this.x0, i.y = this.a * o * (this.coslat0 * s - this.sinlat0 * n * Math.cos(d)) + this.y0, i) : (a = 2 * Math.atan(Ja(t, s, this.e)) - K, r = Math.cos(a), l = Math.sin(a), Math.abs(this.coslat0) <= J ? (c = kt(this.e, t * this.con, this.con * s), u = 2 * this.a * this.k0 * c / this.cons, i.x = this.x0 + u * Math.sin(e - this.long0), i.y = this.y0 - this.con * u * Math.cos(e - this.long0), i) : (Math.abs(this.sinlat0) < J ? (o = 2 * this.a * this.k0 / (1 + r * Math.cos(d)), i.y = o * l) : (o = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * l + this.cosX0 * r * Math.cos(d))), i.y = o * (this.cosX0 * l - this.sinX0 * r * Math.cos(d)) + this.y0), i.x = o * r * Math.sin(d) + this.x0, i));
|
|
10624
10624
|
}
|
|
10625
10625
|
function d1(i) {
|
|
10626
10626
|
i.x -= this.x0, i.y -= this.y0;
|
|
@@ -10642,7 +10642,7 @@ const g1 = {
|
|
|
10642
10642
|
forward: h1,
|
|
10643
10643
|
inverse: d1,
|
|
10644
10644
|
names: f1,
|
|
10645
|
-
ssfn_:
|
|
10645
|
+
ssfn_: Ja
|
|
10646
10646
|
};
|
|
10647
10647
|
function p1() {
|
|
10648
10648
|
var i = this.lat0;
|
|
@@ -10803,7 +10803,7 @@ function Zs(i) {
|
|
|
10803
10803
|
function en(i) {
|
|
10804
10804
|
return i * i * i * (35 / 3072);
|
|
10805
10805
|
}
|
|
10806
|
-
function
|
|
10806
|
+
function Za(i, e, t) {
|
|
10807
10807
|
var s = e * t;
|
|
10808
10808
|
return i / Math.sqrt(1 - s * s);
|
|
10809
10809
|
}
|
|
@@ -10826,7 +10826,7 @@ function O1(i) {
|
|
|
10826
10826
|
if (s = se(s - this.long0, this.over), this.sphere)
|
|
10827
10827
|
e = this.a * Math.asin(Math.cos(n) * Math.sin(s)), t = this.a * (Math.atan2(Math.tan(n), Math.cos(s)) - this.lat0);
|
|
10828
10828
|
else {
|
|
10829
|
-
var o = Math.sin(n), a = Math.cos(n), l =
|
|
10829
|
+
var o = Math.sin(n), a = Math.cos(n), l = Za(this.a, this.e, o), r = Math.tan(n) * Math.tan(n), c = s * Math.cos(n), u = c * c, d = this.es * a * a / (1 - this.es), f = this.a * dt(this.e0, this.e1, this.e2, this.e3, n);
|
|
10830
10830
|
e = l * c * (1 - u * r * (1 / 6 - (8 - r + 8 * d) * u / 120)), t = f - this.ml0 + l * o / a * u * (0.5 + (5 - r + 6 * d) * u / 24);
|
|
10831
10831
|
}
|
|
10832
10832
|
return i.x = e + this.x0, i.y = t + this.y0, i;
|
|
@@ -10841,7 +10841,7 @@ function G1(i) {
|
|
|
10841
10841
|
var a = this.ml0 / this.a + t, l = jn(a, this.e0, this.e1, this.e2, this.e3);
|
|
10842
10842
|
if (Math.abs(Math.abs(l) - K) <= J)
|
|
10843
10843
|
return i.x = this.long0, i.y = K, t < 0 && (i.y *= -1), i;
|
|
10844
|
-
var r =
|
|
10844
|
+
var r = Za(this.a, this.e, Math.sin(l)), c = r * r * r / this.a / this.a * (1 - this.es), u = Math.pow(Math.tan(l), 2), d = e * this.a / r, f = d * d;
|
|
10845
10845
|
s = l - r * Math.tan(l) / c * d * d * (0.5 - (1 + 3 * u) * d * d / 24), n = d * (1 - f * (u / 3 + (1 + 3 * u) * u * f / 15)) / Math.cos(l);
|
|
10846
10846
|
}
|
|
10847
10847
|
return i.x = se(n + this.long0, this.over), i.y = gi(s), i;
|
|
@@ -11080,7 +11080,7 @@ const bC = {
|
|
|
11080
11080
|
inverse: yC,
|
|
11081
11081
|
names: CC
|
|
11082
11082
|
};
|
|
11083
|
-
var
|
|
11083
|
+
var Hl = 20;
|
|
11084
11084
|
function wC() {
|
|
11085
11085
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = Xs(this.es), this.e1 = Js(this.es), this.e2 = Zs(this.es), this.e3 = en(this.es), this.ml0 = this.a * dt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
11086
11086
|
}
|
|
@@ -11091,7 +11091,7 @@ function EC(i) {
|
|
|
11091
11091
|
else if (Math.abs(t) <= J)
|
|
11092
11092
|
s = this.a * a, n = -1 * this.ml0;
|
|
11093
11093
|
else {
|
|
11094
|
-
var l =
|
|
11094
|
+
var l = Za(this.a, this.e, Math.sin(t)) / Math.tan(t);
|
|
11095
11095
|
s = l * Math.sin(o), n = this.a * dt(this.e0, this.e1, this.e2, this.e3, t) - this.ml0 + l * (1 - Math.cos(o));
|
|
11096
11096
|
}
|
|
11097
11097
|
return i.x = s + this.x0, i.y = n + this.y0, i;
|
|
@@ -11104,7 +11104,7 @@ function xC(i) {
|
|
|
11104
11104
|
else {
|
|
11105
11105
|
a = this.lat0 + n / this.a, l = s * s / this.a / this.a + a * a, r = a;
|
|
11106
11106
|
var u;
|
|
11107
|
-
for (o =
|
|
11107
|
+
for (o = Hl; o; --o)
|
|
11108
11108
|
if (u = Math.tan(r), c = -1 * (a * (r * u + 1) - r - 0.5 * (r * r + l) * u) / ((r - a) / u - 1), r += c, Math.abs(c) <= J) {
|
|
11109
11109
|
t = r;
|
|
11110
11110
|
break;
|
|
@@ -11116,7 +11116,7 @@ function xC(i) {
|
|
|
11116
11116
|
else {
|
|
11117
11117
|
a = (this.ml0 + n) / this.a, l = s * s / this.a / this.a + a * a, r = a;
|
|
11118
11118
|
var d, f, h, g, v;
|
|
11119
|
-
for (o =
|
|
11119
|
+
for (o = Hl; o; --o)
|
|
11120
11120
|
if (v = this.e * Math.sin(r), d = Math.sqrt(1 - v * v) * Math.tan(r), f = this.a * dt(this.e0, this.e1, this.e2, this.e3, r), h = this.e0 - 2 * this.e1 * Math.cos(2 * r) + 4 * this.e2 * Math.cos(4 * r) - 6 * this.e3 * Math.cos(6 * r), g = f / this.a, c = (a * (d * g + 1) - g - 0.5 * d * (g * g + l)) / (this.es * Math.sin(2 * r) * (g * g + l - 2 * a * g) / (4 * d) + (a - g) * (d * h - 2 / Math.sin(2 * r)) - h), r -= c, Math.abs(c) <= J) {
|
|
11121
11121
|
t = r;
|
|
11122
11122
|
break;
|
|
@@ -11192,7 +11192,7 @@ const FC = {
|
|
|
11192
11192
|
};
|
|
11193
11193
|
var OC = 20;
|
|
11194
11194
|
function GC() {
|
|
11195
|
-
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en =
|
|
11195
|
+
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = ja(this.es);
|
|
11196
11196
|
}
|
|
11197
11197
|
function UC(i) {
|
|
11198
11198
|
var e, t, s = i.x, n = i.y;
|
|
@@ -11214,7 +11214,7 @@ function UC(i) {
|
|
|
11214
11214
|
}
|
|
11215
11215
|
function NC(i) {
|
|
11216
11216
|
var e, t, s, n;
|
|
11217
|
-
return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, e = i.y / this.a, this.sphere ? (e /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(e))), this.m ? e = fi((this.m * e + Math.sin(e)) / this.n) : this.n !== 1 && (e = fi(Math.sin(e) / this.n)), s = se(s + this.long0, this.over), e = gi(e)) : (e =
|
|
11217
|
+
return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, e = i.y / this.a, this.sphere ? (e /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(e))), this.m ? e = fi((this.m * e + Math.sin(e)) / this.n) : this.n !== 1 && (e = fi(Math.sin(e) / this.n)), s = se(s + this.long0, this.over), e = gi(e)) : (e = $a(i.y / this.a, this.es, this.en), n = Math.abs(e), n < K ? (n = Math.sin(e), t = this.long0 + i.x * Math.sqrt(1 - this.es * n * n) / (this.a * Math.cos(e)), s = se(t, this.over)) : n - J < K && (s = this.long0)), i.x = s, i.y = e, i;
|
|
11218
11218
|
}
|
|
11219
11219
|
var QC = ["Sinusoidal", "sinu"];
|
|
11220
11220
|
const HC = {
|
|
@@ -11715,7 +11715,7 @@ function Kb() {
|
|
|
11715
11715
|
var i;
|
|
11716
11716
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < zs)
|
|
11717
11717
|
throw new Error();
|
|
11718
|
-
this.es ? (this.en =
|
|
11718
|
+
this.es ? (this.en = ja(this.es), this.m1 = hs(
|
|
11719
11719
|
this.phi1,
|
|
11720
11720
|
this.am1 = Math.sin(this.phi1),
|
|
11721
11721
|
i = Math.cos(this.phi1),
|
|
@@ -11729,7 +11729,7 @@ function qb(i) {
|
|
|
11729
11729
|
function Xb(i) {
|
|
11730
11730
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
11731
11731
|
var e, t, s, n;
|
|
11732
|
-
if (t = gt(i.x, i.y = this.am1 - i.y), n =
|
|
11732
|
+
if (t = gt(i.x, i.y = this.am1 - i.y), n = $a(this.am1 + this.m1 - t, this.es, this.en), (e = Math.abs(n)) < K)
|
|
11733
11733
|
e = Math.sin(n), s = t * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * e * e) / Math.cos(n);
|
|
11734
11734
|
else if (Math.abs(e - K) <= zs)
|
|
11735
11735
|
s = 0;
|
|
@@ -11752,7 +11752,7 @@ var ew = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
|
11752
11752
|
const tw = {
|
|
11753
11753
|
init: Kb,
|
|
11754
11754
|
names: ew
|
|
11755
|
-
},
|
|
11755
|
+
}, Yl = {
|
|
11756
11756
|
OBLIQUE: {
|
|
11757
11757
|
forward: aw,
|
|
11758
11758
|
inverse: lw
|
|
@@ -11814,7 +11814,7 @@ function iw() {
|
|
|
11814
11814
|
if (!t)
|
|
11815
11815
|
throw new Error("No valid parameters provided for ob_tran projection.");
|
|
11816
11816
|
const { lamp: o, phip: a } = ow(this, t);
|
|
11817
|
-
this.lamp = o, Math.abs(a) > J ? (this.cphip = Math.cos(a), this.sphip = Math.sin(a), this.projectionType =
|
|
11817
|
+
this.lamp = o, Math.abs(a) > J ? (this.cphip = Math.cos(a), this.sphip = Math.sin(a), this.projectionType = Yl.OBLIQUE) : this.projectionType = Yl.TRANSVERSE;
|
|
11818
11818
|
}
|
|
11819
11819
|
function sw(i) {
|
|
11820
11820
|
return this.projectionType.forward(this, i);
|
|
@@ -11983,7 +11983,7 @@ class fw {
|
|
|
11983
11983
|
let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
|
|
11984
11984
|
if (!t)
|
|
11985
11985
|
try {
|
|
11986
|
-
const n = await import("./index-
|
|
11986
|
+
const n = await import("./index-BT03t7oB.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
|
|
11987
11987
|
if (o)
|
|
11988
11988
|
window.VectorTileLayer = o, n?.CesiumVectorTileGL && (window.CesiumVectorTileGL = n.CesiumVectorTileGL), t = o;
|
|
11989
11989
|
else {
|
|
@@ -12071,13 +12071,13 @@ class fw {
|
|
|
12071
12071
|
let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
|
|
12072
12072
|
if (!t)
|
|
12073
12073
|
try {
|
|
12074
|
-
const r = await import("./index-
|
|
12074
|
+
const r = await import("./index-BT03t7oB.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
|
|
12075
12075
|
c && (window.VectorTileLayer = c, r?.CesiumVectorTileGL && (window.CesiumVectorTileGL = r.CesiumVectorTileGL), t = c);
|
|
12076
12076
|
} catch {
|
|
12077
12077
|
}
|
|
12078
12078
|
if (!(window?.CesiumVectorTileGL?.VectorTileset || window?.VectorTileset))
|
|
12079
12079
|
try {
|
|
12080
|
-
const r = await import("./index-
|
|
12080
|
+
const r = await import("./index-BT03t7oB.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
|
|
12081
12081
|
c && (window.VectorTileset = c);
|
|
12082
12082
|
} catch {
|
|
12083
12083
|
}
|
|
@@ -12957,7 +12957,7 @@ class fw {
|
|
|
12957
12957
|
if (e.endsWith(".json") || t.headers.get("content-type")?.includes("application/json"))
|
|
12958
12958
|
return await t.json();
|
|
12959
12959
|
const s = await t.blob(), n = new Ha(new ho(s), {
|
|
12960
|
-
password:
|
|
12960
|
+
password: Vu,
|
|
12961
12961
|
useWebWorkers: !1
|
|
12962
12962
|
}), a = (await n.getEntries()).find(
|
|
12963
12963
|
(c) => !c.directory && c.filename.endsWith(".json")
|
|
@@ -13058,7 +13058,7 @@ class fw {
|
|
|
13058
13058
|
let d = null, f = null, h = null, g = 6e3;
|
|
13059
13059
|
try {
|
|
13060
13060
|
const C = await this.loadModelFile(u);
|
|
13061
|
-
C?.watermark && await
|
|
13061
|
+
C?.watermark && await Ya(C.watermark, this.viewer?.container), C && typeof C == "object" && (Wu.includes(this.watermarkEnabled) && Hn(this.viewer?.container), C?.tiles && Array.isArray(C.tiles) && (d = C.tiles), Array.isArray(C?.overviewL0) && (f = C.overviewL0), Array.isArray(C?.overviewL1) && (h = C.overviewL1, g = Number(C.overviewL1Height) || 6e3));
|
|
13062
13062
|
} catch {
|
|
13063
13063
|
}
|
|
13064
13064
|
JSON.stringify(o.formData), d?.length, f?.length, h?.length;
|
|
@@ -14947,10 +14947,10 @@ String.prototype.codePointAt || (function() {
|
|
|
14947
14947
|
function ds(i) {
|
|
14948
14948
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
14949
14949
|
}
|
|
14950
|
-
var Qo,
|
|
14950
|
+
var Qo, zl;
|
|
14951
14951
|
function vw() {
|
|
14952
|
-
if (
|
|
14953
|
-
|
|
14952
|
+
if (zl) return Qo;
|
|
14953
|
+
zl = 1;
|
|
14954
14954
|
var i = 0, e = -3;
|
|
14955
14955
|
function t() {
|
|
14956
14956
|
this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
|
|
@@ -15265,10 +15265,10 @@ Xe.prototype.toDOMElement = function(i) {
|
|
|
15265
15265
|
function bh(i) {
|
|
15266
15266
|
throw new Error(i);
|
|
15267
15267
|
}
|
|
15268
|
-
function
|
|
15268
|
+
function Wl(i, e) {
|
|
15269
15269
|
i || bh(e);
|
|
15270
15270
|
}
|
|
15271
|
-
const Ce = { fail: bh, argument:
|
|
15271
|
+
const Ce = { fail: bh, argument: Wl, assert: Wl }, Vl = 32768, jl = 2147483648, as = {}, ie = {}, me = {};
|
|
15272
15272
|
function Ft(i) {
|
|
15273
15273
|
return function() {
|
|
15274
15274
|
return i;
|
|
@@ -15296,7 +15296,7 @@ ie.USHORT = function(i) {
|
|
|
15296
15296
|
};
|
|
15297
15297
|
me.USHORT = Ft(2);
|
|
15298
15298
|
ie.SHORT = function(i) {
|
|
15299
|
-
return i >=
|
|
15299
|
+
return i >= Vl && (i = -(2 * Vl - i)), [i >> 8 & 255, i & 255];
|
|
15300
15300
|
};
|
|
15301
15301
|
me.SHORT = Ft(2);
|
|
15302
15302
|
ie.UINT24 = function(i) {
|
|
@@ -15308,7 +15308,7 @@ ie.ULONG = function(i) {
|
|
|
15308
15308
|
};
|
|
15309
15309
|
me.ULONG = Ft(4);
|
|
15310
15310
|
ie.LONG = function(i) {
|
|
15311
|
-
return i >=
|
|
15311
|
+
return i >= jl && (i = -(2 * jl - i)), [i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
|
|
15312
15312
|
};
|
|
15313
15313
|
me.LONG = Ft(4);
|
|
15314
15314
|
ie.FIXED = ie.ULONG;
|
|
@@ -15785,7 +15785,7 @@ const pe = {
|
|
|
15785
15785
|
tableList: Aa,
|
|
15786
15786
|
recordList: Xn
|
|
15787
15787
|
};
|
|
15788
|
-
function
|
|
15788
|
+
function $l(i, e) {
|
|
15789
15789
|
return i.getUint8(e);
|
|
15790
15790
|
}
|
|
15791
15791
|
function io(i, e) {
|
|
@@ -15794,7 +15794,7 @@ function io(i, e) {
|
|
|
15794
15794
|
function Iw(i, e) {
|
|
15795
15795
|
return i.getInt16(e, !1);
|
|
15796
15796
|
}
|
|
15797
|
-
function
|
|
15797
|
+
function er(i, e) {
|
|
15798
15798
|
return i.getUint32(e, !1);
|
|
15799
15799
|
}
|
|
15800
15800
|
function wh(i, e) {
|
|
@@ -15862,7 +15862,7 @@ z.prototype.parseF2Dot14 = function() {
|
|
|
15862
15862
|
return this.relativeOffset += 2, i;
|
|
15863
15863
|
};
|
|
15864
15864
|
z.prototype.parseULong = function() {
|
|
15865
|
-
const i =
|
|
15865
|
+
const i = er(this.data, this.offset + this.relativeOffset);
|
|
15866
15866
|
return this.relativeOffset += 4, i;
|
|
15867
15867
|
};
|
|
15868
15868
|
z.prototype.parseOffset32 = z.prototype.parseULong;
|
|
@@ -15882,7 +15882,7 @@ z.prototype.parseTag = function() {
|
|
|
15882
15882
|
return this.parseString(4);
|
|
15883
15883
|
};
|
|
15884
15884
|
z.prototype.parseLongDateTime = function() {
|
|
15885
|
-
let i =
|
|
15885
|
+
let i = er(this.data, this.offset + this.relativeOffset + 4);
|
|
15886
15886
|
return i -= 2082844800, this.relativeOffset += 8, i;
|
|
15887
15887
|
};
|
|
15888
15888
|
z.prototype.parseVersion = function(i) {
|
|
@@ -16094,7 +16094,7 @@ z.uLongList = z.prototype.parseULongList;
|
|
|
16094
16094
|
z.struct = z.prototype.parseStruct;
|
|
16095
16095
|
z.coverage = z.prototype.parseCoverage;
|
|
16096
16096
|
z.classDef = z.prototype.parseClassDef;
|
|
16097
|
-
const
|
|
16097
|
+
const Kl = {
|
|
16098
16098
|
reserved: z.uShort,
|
|
16099
16099
|
reqFeatureIndex: z.uShort,
|
|
16100
16100
|
featureIndexes: z.uShortList
|
|
@@ -16103,10 +16103,10 @@ z.prototype.parseScriptList = function() {
|
|
|
16103
16103
|
return this.parsePointer(z.recordList({
|
|
16104
16104
|
tag: z.tag,
|
|
16105
16105
|
script: z.pointer({
|
|
16106
|
-
defaultLangSys: z.pointer(
|
|
16106
|
+
defaultLangSys: z.pointer(Kl),
|
|
16107
16107
|
langSysRecords: z.recordList({
|
|
16108
16108
|
tag: z.tag,
|
|
16109
|
-
langSys: z.pointer(
|
|
16109
|
+
langSys: z.pointer(Kl)
|
|
16110
16110
|
})
|
|
16111
16111
|
})
|
|
16112
16112
|
})) || [];
|
|
@@ -16143,12 +16143,12 @@ z.prototype.parseFeatureVariationsList = function() {
|
|
|
16143
16143
|
}) || [];
|
|
16144
16144
|
};
|
|
16145
16145
|
const ue = {
|
|
16146
|
-
getByte:
|
|
16147
|
-
getCard8:
|
|
16146
|
+
getByte: $l,
|
|
16147
|
+
getCard8: $l,
|
|
16148
16148
|
getUShort: io,
|
|
16149
16149
|
getCard16: io,
|
|
16150
16150
|
getShort: Iw,
|
|
16151
|
-
getULong:
|
|
16151
|
+
getULong: er,
|
|
16152
16152
|
getFixed: wh,
|
|
16153
16153
|
getTag: Sw,
|
|
16154
16154
|
getOffset: Mw,
|
|
@@ -17469,7 +17469,7 @@ so.prototype.charToGlyphIndex = function(i) {
|
|
|
17469
17469
|
const e = i.codePointAt(0), t = this.encoding[e];
|
|
17470
17470
|
return this.charset.indexOf(t);
|
|
17471
17471
|
};
|
|
17472
|
-
function
|
|
17472
|
+
function tr(i) {
|
|
17473
17473
|
switch (i.version) {
|
|
17474
17474
|
case 1:
|
|
17475
17475
|
this.names = xi.slice();
|
|
@@ -17492,10 +17492,10 @@ function er(i) {
|
|
|
17492
17492
|
break;
|
|
17493
17493
|
}
|
|
17494
17494
|
}
|
|
17495
|
-
|
|
17495
|
+
tr.prototype.nameToGlyphIndex = function(i) {
|
|
17496
17496
|
return this.names.indexOf(i);
|
|
17497
17497
|
};
|
|
17498
|
-
|
|
17498
|
+
tr.prototype.glyphIndexToName = function(i) {
|
|
17499
17499
|
return this.names[i];
|
|
17500
17500
|
};
|
|
17501
17501
|
function Uw(i) {
|
|
@@ -17634,16 +17634,16 @@ function An(i, e, t) {
|
|
|
17634
17634
|
configurable: !0
|
|
17635
17635
|
});
|
|
17636
17636
|
}
|
|
17637
|
-
function
|
|
17637
|
+
function ir(i, e) {
|
|
17638
17638
|
if (this.font = i, this.glyphs = {}, Array.isArray(e))
|
|
17639
17639
|
for (let t = 0; t < e.length; t++)
|
|
17640
17640
|
this.glyphs[t] = e[t];
|
|
17641
17641
|
this.length = e && e.length || 0;
|
|
17642
17642
|
}
|
|
17643
|
-
|
|
17643
|
+
ir.prototype.get = function(i) {
|
|
17644
17644
|
return typeof this.glyphs[i] == "function" && (this.glyphs[i] = this.glyphs[i]()), this.glyphs[i];
|
|
17645
17645
|
};
|
|
17646
|
-
|
|
17646
|
+
ir.prototype.push = function(i, e) {
|
|
17647
17647
|
this.glyphs[i] = e, this.length++;
|
|
17648
17648
|
};
|
|
17649
17649
|
function Hw(i, e) {
|
|
@@ -17668,7 +17668,7 @@ function zw(i, e, t, s) {
|
|
|
17668
17668
|
}, n;
|
|
17669
17669
|
};
|
|
17670
17670
|
}
|
|
17671
|
-
const is = { GlyphSet:
|
|
17671
|
+
const is = { GlyphSet: ir, glyphLoader: Hw, ttfGlyphLoader: Yw, cffGlyphLoader: zw };
|
|
17672
17672
|
function Sh(i, e) {
|
|
17673
17673
|
if (i === e)
|
|
17674
17674
|
return !0;
|
|
@@ -17824,7 +17824,7 @@ function Dh(i, e, t, s) {
|
|
|
17824
17824
|
const n = Mh(i, e, t);
|
|
17825
17825
|
return Bh(n, Ph, s);
|
|
17826
17826
|
}
|
|
17827
|
-
function
|
|
17827
|
+
function ql(i, e, t, s) {
|
|
17828
17828
|
const n = [];
|
|
17829
17829
|
for (let o = 0; o < t.length; o += 1) {
|
|
17830
17830
|
const a = new DataView(new Uint8Array(t[o]).buffer), l = Kw(a, s);
|
|
@@ -18049,7 +18049,7 @@ function eE(i, e, t) {
|
|
|
18049
18049
|
t.tables.cff = {};
|
|
18050
18050
|
const s = $w(i, e), n = ni(i, s.endOffset, ue.bytesToString), o = ni(i, n.endOffset), a = ni(i, o.endOffset, ue.bytesToString), l = ni(i, a.endOffset);
|
|
18051
18051
|
t.gsubrs = l.objects, t.gsubrsBias = va(t.gsubrs);
|
|
18052
|
-
const r =
|
|
18052
|
+
const r = ql(i, e, o.objects, a.objects);
|
|
18053
18053
|
if (r.length !== 1)
|
|
18054
18054
|
throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + r.length);
|
|
18055
18055
|
const c = r[0];
|
|
@@ -18058,7 +18058,7 @@ function eE(i, e, t) {
|
|
|
18058
18058
|
if (g === 0 || v === 0)
|
|
18059
18059
|
throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
|
|
18060
18060
|
g += e;
|
|
18061
|
-
const m = ni(i, g), A =
|
|
18061
|
+
const m = ni(i, g), A = ql(i, e, m.objects, a.objects);
|
|
18062
18062
|
c._fdArray = A, v += e, c._fdSelect = Zw(i, v, t.numGlyphs, A.length);
|
|
18063
18063
|
}
|
|
18064
18064
|
const u = e + c.private[1], d = Dh(i, u, c.private[0], a.objects);
|
|
@@ -18106,13 +18106,13 @@ function kh(i, e, t) {
|
|
|
18106
18106
|
}
|
|
18107
18107
|
return s;
|
|
18108
18108
|
}
|
|
18109
|
-
function
|
|
18109
|
+
function Xl(i, e) {
|
|
18110
18110
|
const t = new pe.Record("Top DICT", [
|
|
18111
18111
|
{ name: "dict", type: "DICT", value: {} }
|
|
18112
18112
|
]);
|
|
18113
18113
|
return t.dict = kh(Th, i, e), t;
|
|
18114
18114
|
}
|
|
18115
|
-
function
|
|
18115
|
+
function Jl(i) {
|
|
18116
18116
|
const e = new pe.Record("Top DICT INDEX", [
|
|
18117
18117
|
{ name: "topDicts", type: "INDEX", value: [] }
|
|
18118
18118
|
]);
|
|
@@ -18214,10 +18214,10 @@ function cE(i, e) {
|
|
|
18214
18214
|
l = i.get(d), a.push(l.name);
|
|
18215
18215
|
const r = [];
|
|
18216
18216
|
t.header = tE(), t.nameIndex = iE([e.postScriptName]);
|
|
18217
|
-
let c =
|
|
18218
|
-
t.topDictIndex =
|
|
18217
|
+
let c = Xl(n, r);
|
|
18218
|
+
t.topDictIndex = Jl(c), t.globalSubrIndex = nE(), t.charsets = oE(a, r), t.charStringsIndex = rE(i), t.privateDict = lE(o, r), t.stringIndex = sE(r);
|
|
18219
18219
|
const u = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
|
|
18220
|
-
return n.charset = u, n.encoding = 0, n.charStrings = n.charset + t.charsets.sizeOf(), n.private[1] = n.charStrings + t.charStringsIndex.sizeOf(), c =
|
|
18220
|
+
return n.charset = u, n.encoding = 0, n.charStrings = n.charset + t.charsets.sizeOf(), n.private[1] = n.charStrings + t.charStringsIndex.sizeOf(), c = Xl(n, r), t.topDictIndex = Jl(c), t;
|
|
18221
18221
|
}
|
|
18222
18222
|
const Lh = { parse: eE, make: cE };
|
|
18223
18223
|
function uE(i, e) {
|
|
@@ -19087,7 +19087,7 @@ function Ho(i) {
|
|
|
19087
19087
|
e[i[t]] = parseInt(t);
|
|
19088
19088
|
return e;
|
|
19089
19089
|
}
|
|
19090
|
-
function
|
|
19090
|
+
function Zl(i, e, t, s, n, o) {
|
|
19091
19091
|
return new pe.Record("NameRecord", [
|
|
19092
19092
|
{ name: "platformID", type: "USHORT", value: i },
|
|
19093
19093
|
{ name: "encodingID", type: "USHORT", value: e },
|
|
@@ -19109,7 +19109,7 @@ function IE(i, e) {
|
|
|
19109
19109
|
}
|
|
19110
19110
|
return -1;
|
|
19111
19111
|
}
|
|
19112
|
-
function
|
|
19112
|
+
function ec(i, e) {
|
|
19113
19113
|
let t = IE(i, e);
|
|
19114
19114
|
if (t < 0) {
|
|
19115
19115
|
t = e.length;
|
|
@@ -19139,8 +19139,8 @@ function SE(i, e) {
|
|
|
19139
19139
|
const C = Yh(v, A, m);
|
|
19140
19140
|
let w = ie.MACSTRING(g, C);
|
|
19141
19141
|
w === void 0 && (v = 0, m = e.indexOf(h), m < 0 && (m = e.length, e.push(h)), A = 4, w = ie.UTF16(g));
|
|
19142
|
-
const M =
|
|
19143
|
-
r.push(
|
|
19142
|
+
const M = ec(w, c);
|
|
19143
|
+
r.push(Zl(
|
|
19144
19144
|
v,
|
|
19145
19145
|
A,
|
|
19146
19146
|
m,
|
|
@@ -19150,8 +19150,8 @@ function SE(i, e) {
|
|
|
19150
19150
|
));
|
|
19151
19151
|
const D = l[h];
|
|
19152
19152
|
if (D !== void 0) {
|
|
19153
|
-
const x = ie.UTF16(g), E =
|
|
19154
|
-
r.push(
|
|
19153
|
+
const x = ie.UTF16(g), E = ec(x, c);
|
|
19154
|
+
r.push(Zl(
|
|
19155
19155
|
3,
|
|
19156
19156
|
1,
|
|
19157
19157
|
D,
|
|
@@ -19757,10 +19757,10 @@ function RE(i) {
|
|
|
19757
19757
|
return n.fields.push({ name: "stringPool", type: "CHARARRAY", value: t }), n;
|
|
19758
19758
|
}
|
|
19759
19759
|
const jh = { parse: LE, make: RE };
|
|
19760
|
-
function
|
|
19760
|
+
function tc(i) {
|
|
19761
19761
|
return Math.log(i) / Math.log(2) | 0;
|
|
19762
19762
|
}
|
|
19763
|
-
function
|
|
19763
|
+
function sr(i) {
|
|
19764
19764
|
for (; i.length % 4 !== 0; )
|
|
19765
19765
|
i.push(0);
|
|
19766
19766
|
let e = 0;
|
|
@@ -19768,7 +19768,7 @@ function ir(i) {
|
|
|
19768
19768
|
e += (i[t] << 24) + (i[t + 1] << 16) + (i[t + 2] << 8) + i[t + 3];
|
|
19769
19769
|
return e %= Math.pow(2, 32), e;
|
|
19770
19770
|
}
|
|
19771
|
-
function
|
|
19771
|
+
function ic(i, e, t, s) {
|
|
19772
19772
|
return new pe.Record("Table Record", [
|
|
19773
19773
|
{ name: "tag", type: "TAG", value: i !== void 0 ? i : "" },
|
|
19774
19774
|
{ name: "checkSum", type: "ULONG", value: e !== void 0 ? e : 0 },
|
|
@@ -19785,16 +19785,16 @@ function $h(i) {
|
|
|
19785
19785
|
{ name: "rangeShift", type: "USHORT", value: 0 }
|
|
19786
19786
|
]);
|
|
19787
19787
|
e.tables = i, e.numTables = i.length;
|
|
19788
|
-
const t = Math.pow(2,
|
|
19789
|
-
e.searchRange = 16 * t, e.entrySelector =
|
|
19788
|
+
const t = Math.pow(2, tc(e.numTables));
|
|
19789
|
+
e.searchRange = 16 * t, e.entrySelector = tc(t), e.rangeShift = e.numTables * 16 - e.searchRange;
|
|
19790
19790
|
const s = [], n = [];
|
|
19791
|
-
let o = e.sizeOf() +
|
|
19791
|
+
let o = e.sizeOf() + ic().sizeOf() * e.numTables;
|
|
19792
19792
|
for (; o % 4 !== 0; )
|
|
19793
19793
|
o += 1, n.push({ name: "padding", type: "BYTE", value: 0 });
|
|
19794
19794
|
for (let a = 0; a < i.length; a += 1) {
|
|
19795
19795
|
const l = i[a];
|
|
19796
19796
|
Ce.argument(l.tableName.length === 4, "Table name" + l.tableName + " is invalid.");
|
|
19797
|
-
const r = l.sizeOf(), c =
|
|
19797
|
+
const r = l.sizeOf(), c = ic(l.tableName, sr(l.encode()), o, r);
|
|
19798
19798
|
for (s.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), n.push({ name: l.tableName + " table", type: "RECORD", value: l }), o += r, Ce.argument(!isNaN(o), "Something went wrong calculating the offset."); o % 4 !== 0; )
|
|
19799
19799
|
o += 1, n.push({ name: "padding", type: "BYTE", value: 0 });
|
|
19800
19800
|
}
|
|
@@ -19802,7 +19802,7 @@ function $h(i) {
|
|
|
19802
19802
|
return a.value.tag > l.value.tag ? 1 : -1;
|
|
19803
19803
|
}), e.fields = e.fields.concat(s), e.fields = e.fields.concat(n), e;
|
|
19804
19804
|
}
|
|
19805
|
-
function
|
|
19805
|
+
function sc(i, e, t) {
|
|
19806
19806
|
for (let s = 0; s < e.length; s += 1) {
|
|
19807
19807
|
const n = i.charToGlyphIndex(e[s]);
|
|
19808
19808
|
if (n > 0)
|
|
@@ -19892,8 +19892,8 @@ function OE(i) {
|
|
|
19892
19892
|
usWinDescent: Math.abs(g.yMin),
|
|
19893
19893
|
ulCodePageRange1: 1,
|
|
19894
19894
|
// FIXME: hard-code Latin 1 support for now
|
|
19895
|
-
sxHeight:
|
|
19896
|
-
sCapHeight:
|
|
19895
|
+
sxHeight: sc(i, "xyvw", { yMax: Math.round(g.ascender / 2) }).yMax,
|
|
19896
|
+
sCapHeight: sc(i, "HIKLEFJMNTZBDPRAGOQSUVWXY", g).yMax,
|
|
19897
19897
|
usDefaultChar: i.hasChar(" ") ? 32 : 0,
|
|
19898
19898
|
// Use space as the default character, if available.
|
|
19899
19899
|
usBreakChar: i.hasChar(" ") ? 32 : 0
|
|
@@ -19915,7 +19915,7 @@ function OE(i) {
|
|
|
19915
19915
|
fontBBox: [0, g.yMin, g.ascender, g.advanceWidthMax]
|
|
19916
19916
|
}), L = i.metas && Object.keys(i.metas).length > 0 ? jh.make(i.metas) : void 0, b = [v, m, A, C, _, M, N, R, w];
|
|
19917
19917
|
O && b.push(O), i.tables.gsub && b.push(Vh.make(i.tables.gsub)), L && b.push(L);
|
|
19918
|
-
const I = $h(b), k = I.encode(), F =
|
|
19918
|
+
const I = $h(b), k = I.encode(), F = sr(k), Q = I.fields;
|
|
19919
19919
|
let G = !1;
|
|
19920
19920
|
for (let P = 0; P < Q.length; P += 1)
|
|
19921
19921
|
if (Q[P].name === "head table") {
|
|
@@ -19926,7 +19926,7 @@ function OE(i) {
|
|
|
19926
19926
|
throw new Error("Could not find head table with checkSum to adjust.");
|
|
19927
19927
|
return I;
|
|
19928
19928
|
}
|
|
19929
|
-
const GE = { make: $h, fontToTable: OE, computeCheckSum:
|
|
19929
|
+
const GE = { make: $h, fontToTable: OE, computeCheckSum: sr };
|
|
19930
19930
|
function Yo(i, e) {
|
|
19931
19931
|
let t = 0, s = i.length - 1;
|
|
19932
19932
|
for (; t <= s; ) {
|
|
@@ -19937,7 +19937,7 @@ function Yo(i, e) {
|
|
|
19937
19937
|
}
|
|
19938
19938
|
return -t - 1;
|
|
19939
19939
|
}
|
|
19940
|
-
function
|
|
19940
|
+
function nc(i, e) {
|
|
19941
19941
|
let t = 0, s = i.length - 1;
|
|
19942
19942
|
for (; t <= s; ) {
|
|
19943
19943
|
const n = t + s >>> 1, o = i[n];
|
|
@@ -19947,7 +19947,7 @@ function sc(i, e) {
|
|
|
19947
19947
|
}
|
|
19948
19948
|
return -t - 1;
|
|
19949
19949
|
}
|
|
19950
|
-
function
|
|
19950
|
+
function oc(i, e) {
|
|
19951
19951
|
let t, s = 0, n = i.length - 1;
|
|
19952
19952
|
for (; s <= n; ) {
|
|
19953
19953
|
const o = s + n >>> 1;
|
|
@@ -19983,7 +19983,7 @@ tn.prototype = {
|
|
|
19983
19983
|
* @param {number} value
|
|
19984
19984
|
* @return {number}
|
|
19985
19985
|
*/
|
|
19986
|
-
binSearch:
|
|
19986
|
+
binSearch: nc,
|
|
19987
19987
|
/**
|
|
19988
19988
|
* Get or create the Layout table (GSUB, GPOS etc).
|
|
19989
19989
|
* @param {boolean} create - Whether to create a new one.
|
|
@@ -20141,7 +20141,7 @@ tn.prototype = {
|
|
|
20141
20141
|
case 1:
|
|
20142
20142
|
return i.startGlyph <= e && e < i.startGlyph + i.classes.length ? i.classes[e - i.startGlyph] : 0;
|
|
20143
20143
|
case 2:
|
|
20144
|
-
const t =
|
|
20144
|
+
const t = oc(i.ranges, e);
|
|
20145
20145
|
return t ? t.classId : 0;
|
|
20146
20146
|
}
|
|
20147
20147
|
},
|
|
@@ -20155,10 +20155,10 @@ tn.prototype = {
|
|
|
20155
20155
|
getCoverageIndex: function(i, e) {
|
|
20156
20156
|
switch (i.format) {
|
|
20157
20157
|
case 1:
|
|
20158
|
-
const t =
|
|
20158
|
+
const t = nc(i.glyphs, e);
|
|
20159
20159
|
return t >= 0 ? t : -1;
|
|
20160
20160
|
case 2:
|
|
20161
|
-
const s =
|
|
20161
|
+
const s = oc(i.ranges, e);
|
|
20162
20162
|
return s ? s.index + e - s.start : -1;
|
|
20163
20163
|
}
|
|
20164
20164
|
},
|
|
@@ -20403,7 +20403,7 @@ function Hi(i, e) {
|
|
|
20403
20403
|
if (!i)
|
|
20404
20404
|
throw e;
|
|
20405
20405
|
}
|
|
20406
|
-
function
|
|
20406
|
+
function ac(i, e, t, s, n) {
|
|
20407
20407
|
let o;
|
|
20408
20408
|
return (e & s) > 0 ? (o = i.parseByte(), (e & n) === 0 && (o = -o), o = t + o) : (e & n) > 0 ? o = t : o = t + i.parseShort(), o;
|
|
20409
20409
|
}
|
|
@@ -20434,10 +20434,10 @@ function YE(i, e, t) {
|
|
|
20434
20434
|
o = n[f], c = {}, c.onCurve = !!(o & 1), c.lastPointOfContour = a.indexOf(f) >= 0, r.push(c);
|
|
20435
20435
|
let u = 0;
|
|
20436
20436
|
for (let f = 0; f < l; f += 1)
|
|
20437
|
-
o = n[f], c = r[f], c.x =
|
|
20437
|
+
o = n[f], c = r[f], c.x = ac(s, o, u, 2, 16), u = c.x;
|
|
20438
20438
|
let d = 0;
|
|
20439
20439
|
for (let f = 0; f < l; f += 1)
|
|
20440
|
-
o = n[f], c = r[f], c.y =
|
|
20440
|
+
o = n[f], c = r[f], c.y = ac(s, o, d, 4, 32), d = c.y;
|
|
20441
20441
|
}
|
|
20442
20442
|
i.points = r;
|
|
20443
20443
|
} else
|
|
@@ -20909,22 +20909,22 @@ function sd(i, e) {
|
|
|
20909
20909
|
while (n > 0);
|
|
20910
20910
|
i.ip = s;
|
|
20911
20911
|
}
|
|
20912
|
-
function
|
|
20912
|
+
function rc(i, e) {
|
|
20913
20913
|
exports.DEBUG && (e.step, "" + i.axis), e.fv = e.pv = e.dpv = i;
|
|
20914
20914
|
}
|
|
20915
|
-
function
|
|
20915
|
+
function lc(i, e) {
|
|
20916
20916
|
exports.DEBUG && (e.step, "" + i.axis), e.pv = e.dpv = i;
|
|
20917
20917
|
}
|
|
20918
|
-
function
|
|
20918
|
+
function cc(i, e) {
|
|
20919
20919
|
exports.DEBUG && (e.step, "" + i.axis), e.fv = i;
|
|
20920
20920
|
}
|
|
20921
|
-
function
|
|
20921
|
+
function uc(i, e) {
|
|
20922
20922
|
const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
|
|
20923
20923
|
exports.DEBUG && "" + i;
|
|
20924
20924
|
let l, r;
|
|
20925
20925
|
i ? (l = o.y - a.y, r = a.x - o.x) : (l = a.x - o.x, r = a.y - o.y), e.pv = e.dpv = on(l, r);
|
|
20926
20926
|
}
|
|
20927
|
-
function
|
|
20927
|
+
function hc(i, e) {
|
|
20928
20928
|
const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
|
|
20929
20929
|
exports.DEBUG && "" + i;
|
|
20930
20930
|
let l, r;
|
|
@@ -21089,20 +21089,20 @@ function Mx(i) {
|
|
|
21089
21089
|
for (exports.DEBUG && i.step; t[++s] !== 45; ) ;
|
|
21090
21090
|
i.ip = s, i.funcs[n] = t.slice(o + 1, s);
|
|
21091
21091
|
}
|
|
21092
|
-
function
|
|
21092
|
+
function dc(i, e) {
|
|
21093
21093
|
const t = e.stack.pop(), s = e.z0[t], n = e.fv, o = e.pv;
|
|
21094
21094
|
exports.DEBUG && (e.step, "" + i);
|
|
21095
21095
|
let a = o.distance(s, Vs);
|
|
21096
21096
|
i && (a = e.round(a)), n.setRelative(s, Vs, a, o), n.touch(s), e.rp0 = e.rp1 = t;
|
|
21097
21097
|
}
|
|
21098
|
-
function
|
|
21098
|
+
function fc(i, e) {
|
|
21099
21099
|
const t = e.z2, s = t.length - 2;
|
|
21100
21100
|
let n, o, a;
|
|
21101
21101
|
exports.DEBUG && (e.step, "" + i.axis);
|
|
21102
21102
|
for (let l = 0; l < s; l++)
|
|
21103
21103
|
n = t[l], !i.touched(n) && (o = n.prevTouched(i), o !== n && (a = n.nextTouched(i), o === a && i.setRelative(n, n, i.distance(o, o, !1, !0), i, !0), i.interpolate(n, o, a, i)));
|
|
21104
21104
|
}
|
|
21105
|
-
function
|
|
21105
|
+
function gc(i, e) {
|
|
21106
21106
|
const t = e.stack, s = i ? e.rp1 : e.rp2, n = (i ? e.z0 : e.z1)[s], o = e.fv, a = e.pv;
|
|
21107
21107
|
let l = e.loop;
|
|
21108
21108
|
const r = e.z2;
|
|
@@ -21112,7 +21112,7 @@ function fc(i, e) {
|
|
|
21112
21112
|
}
|
|
21113
21113
|
e.loop = 1;
|
|
21114
21114
|
}
|
|
21115
|
-
function
|
|
21115
|
+
function pc(i, e) {
|
|
21116
21116
|
const t = e.stack, s = i ? e.rp1 : e.rp2, n = (i ? e.z0 : e.z1)[s], o = e.fv, a = e.pv, l = t.pop(), r = e.z2[e.contours[l]];
|
|
21117
21117
|
let c = r;
|
|
21118
21118
|
exports.DEBUG && (e.step, "" + i);
|
|
@@ -21121,7 +21121,7 @@ function gc(i, e) {
|
|
|
21121
21121
|
c !== n && o.setRelative(c, c, u, a), c = c.nextPointOnContour;
|
|
21122
21122
|
while (c !== r);
|
|
21123
21123
|
}
|
|
21124
|
-
function
|
|
21124
|
+
function mc(i, e) {
|
|
21125
21125
|
const t = e.stack, s = i ? e.rp1 : e.rp2, n = (i ? e.z0 : e.z1)[s], o = e.fv, a = e.pv, l = t.pop();
|
|
21126
21126
|
exports.DEBUG && (e.step, "" + i);
|
|
21127
21127
|
let r;
|
|
@@ -21160,7 +21160,7 @@ function Tx(i) {
|
|
|
21160
21160
|
}
|
|
21161
21161
|
i.loop = 1;
|
|
21162
21162
|
}
|
|
21163
|
-
function
|
|
21163
|
+
function Ac(i, e) {
|
|
21164
21164
|
const t = e.stack, s = t.pop() / 64, n = t.pop(), o = e.z1[n], a = e.z0[e.rp0], l = e.fv, r = e.pv;
|
|
21165
21165
|
l.setRelative(o, a, s, r), l.touch(o), exports.DEBUG && (e.step, "" + i), e.rp1 = e.rp0, e.rp2 = n, i && (e.rp0 = n);
|
|
21166
21166
|
}
|
|
@@ -21177,7 +21177,7 @@ function Px(i) {
|
|
|
21177
21177
|
function Dx(i) {
|
|
21178
21178
|
exports.DEBUG && i.step, i.round = $E;
|
|
21179
21179
|
}
|
|
21180
|
-
function
|
|
21180
|
+
function vc(i, e) {
|
|
21181
21181
|
const t = e.stack, s = t.pop(), n = t.pop(), o = e.z0[n], a = e.fv, l = e.pv;
|
|
21182
21182
|
let r = e.cvt[s];
|
|
21183
21183
|
exports.DEBUG && (e.step, "" + i);
|
|
@@ -21223,11 +21223,11 @@ function Ox(i) {
|
|
|
21223
21223
|
const e = i.stack, t = e.pop();
|
|
21224
21224
|
exports.DEBUG && i.step, e.push(i.cvt[t] * 64);
|
|
21225
21225
|
}
|
|
21226
|
-
function
|
|
21226
|
+
function yc(i, e) {
|
|
21227
21227
|
const t = e.stack, s = t.pop(), n = e.z2[s];
|
|
21228
21228
|
exports.DEBUG && (e.step, "" + i), t.push(e.dpv.distance(n, Vs, i, !1) * 64);
|
|
21229
21229
|
}
|
|
21230
|
-
function
|
|
21230
|
+
function Cc(i, e) {
|
|
21231
21231
|
const t = e.stack, s = t.pop(), n = t.pop(), o = e.z1[s], a = e.z0[n], l = e.dpv.distance(a, o, i, i);
|
|
21232
21232
|
exports.DEBUG && (e.step, "" + i), e.stack.push(Math.round(l * 64));
|
|
21233
21233
|
}
|
|
@@ -21444,7 +21444,7 @@ function p2(i) {
|
|
|
21444
21444
|
const e = i.stack.pop();
|
|
21445
21445
|
exports.DEBUG && i.step;
|
|
21446
21446
|
}
|
|
21447
|
-
function
|
|
21447
|
+
function bc(i, e) {
|
|
21448
21448
|
const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
|
|
21449
21449
|
exports.DEBUG && (e.step, "" + i);
|
|
21450
21450
|
let l, r;
|
|
@@ -21509,25 +21509,25 @@ function oe(i, e, t, s, n, o) {
|
|
|
21509
21509
|
}
|
|
21510
21510
|
Jh = [
|
|
21511
21511
|
/* 0x00 */
|
|
21512
|
-
|
|
21512
|
+
rc.bind(void 0, Kt),
|
|
21513
21513
|
/* 0x01 */
|
|
21514
|
-
|
|
21514
|
+
rc.bind(void 0, Qt),
|
|
21515
21515
|
/* 0x02 */
|
|
21516
|
-
|
|
21516
|
+
lc.bind(void 0, Kt),
|
|
21517
21517
|
/* 0x03 */
|
|
21518
|
-
|
|
21518
|
+
lc.bind(void 0, Qt),
|
|
21519
21519
|
/* 0x04 */
|
|
21520
|
-
|
|
21520
|
+
cc.bind(void 0, Kt),
|
|
21521
21521
|
/* 0x05 */
|
|
21522
|
-
|
|
21522
|
+
cc.bind(void 0, Qt),
|
|
21523
21523
|
/* 0x06 */
|
|
21524
|
-
|
|
21524
|
+
uc.bind(void 0, 0),
|
|
21525
21525
|
/* 0x07 */
|
|
21526
|
-
|
|
21526
|
+
uc.bind(void 0, 1),
|
|
21527
21527
|
/* 0x08 */
|
|
21528
|
-
|
|
21528
|
+
hc.bind(void 0, 0),
|
|
21529
21529
|
/* 0x09 */
|
|
21530
|
-
|
|
21530
|
+
hc.bind(void 0, 1),
|
|
21531
21531
|
/* 0x0A */
|
|
21532
21532
|
ZE,
|
|
21533
21533
|
/* 0x0B */
|
|
@@ -21606,41 +21606,41 @@ Jh = [
|
|
|
21606
21606
|
void 0,
|
|
21607
21607
|
// ENDF (eaten by FDEF)
|
|
21608
21608
|
/* 0x2E */
|
|
21609
|
-
|
|
21609
|
+
dc.bind(void 0, 0),
|
|
21610
21610
|
/* 0x2F */
|
|
21611
|
-
|
|
21611
|
+
dc.bind(void 0, 1),
|
|
21612
21612
|
/* 0x30 */
|
|
21613
|
-
|
|
21613
|
+
fc.bind(void 0, Kt),
|
|
21614
21614
|
/* 0x31 */
|
|
21615
|
-
|
|
21615
|
+
fc.bind(void 0, Qt),
|
|
21616
21616
|
/* 0x32 */
|
|
21617
|
-
|
|
21617
|
+
gc.bind(void 0, 0),
|
|
21618
21618
|
/* 0x33 */
|
|
21619
|
-
|
|
21619
|
+
gc.bind(void 0, 1),
|
|
21620
21620
|
/* 0x34 */
|
|
21621
|
-
|
|
21621
|
+
pc.bind(void 0, 0),
|
|
21622
21622
|
/* 0x35 */
|
|
21623
|
-
|
|
21623
|
+
pc.bind(void 0, 1),
|
|
21624
21624
|
/* 0x36 */
|
|
21625
|
-
|
|
21625
|
+
mc.bind(void 0, 0),
|
|
21626
21626
|
/* 0x37 */
|
|
21627
|
-
|
|
21627
|
+
mc.bind(void 0, 1),
|
|
21628
21628
|
/* 0x38 */
|
|
21629
21629
|
Bx,
|
|
21630
21630
|
/* 0x39 */
|
|
21631
21631
|
Tx,
|
|
21632
21632
|
/* 0x3A */
|
|
21633
|
-
|
|
21633
|
+
Ac.bind(void 0, 0),
|
|
21634
21634
|
/* 0x3B */
|
|
21635
|
-
|
|
21635
|
+
Ac.bind(void 0, 1),
|
|
21636
21636
|
/* 0x3C */
|
|
21637
21637
|
Px,
|
|
21638
21638
|
/* 0x3D */
|
|
21639
21639
|
Dx,
|
|
21640
21640
|
/* 0x3E */
|
|
21641
|
-
|
|
21641
|
+
vc.bind(void 0, 0),
|
|
21642
21642
|
/* 0x3F */
|
|
21643
|
-
|
|
21643
|
+
vc.bind(void 0, 1),
|
|
21644
21644
|
/* 0x40 */
|
|
21645
21645
|
_x,
|
|
21646
21646
|
/* 0x41 */
|
|
@@ -21654,16 +21654,16 @@ Jh = [
|
|
|
21654
21654
|
/* 0x45 */
|
|
21655
21655
|
Ox,
|
|
21656
21656
|
/* 0x46 */
|
|
21657
|
-
|
|
21657
|
+
yc.bind(void 0, 0),
|
|
21658
21658
|
/* 0x47 */
|
|
21659
|
-
|
|
21659
|
+
yc.bind(void 0, 1),
|
|
21660
21660
|
/* 0x48 */
|
|
21661
21661
|
void 0,
|
|
21662
21662
|
// TODO SCFS
|
|
21663
21663
|
/* 0x49 */
|
|
21664
|
-
|
|
21664
|
+
Cc.bind(void 0, 0),
|
|
21665
21665
|
/* 0x4A */
|
|
21666
|
-
|
|
21666
|
+
Cc.bind(void 0, 1),
|
|
21667
21667
|
/* 0x4B */
|
|
21668
21668
|
Gx,
|
|
21669
21669
|
/* 0x4C */
|
|
@@ -21797,9 +21797,9 @@ Jh = [
|
|
|
21797
21797
|
/* 0x85 */
|
|
21798
21798
|
p2,
|
|
21799
21799
|
/* 0x86 */
|
|
21800
|
-
|
|
21800
|
+
bc.bind(void 0, 0),
|
|
21801
21801
|
/* 0x87 */
|
|
21802
|
-
|
|
21802
|
+
bc.bind(void 0, 1),
|
|
21803
21803
|
/* 0x88 */
|
|
21804
21804
|
m2,
|
|
21805
21805
|
/* 0x89 */
|
|
@@ -22513,7 +22513,7 @@ function Q2(i, e) {
|
|
|
22513
22513
|
e("Font could not be loaded");
|
|
22514
22514
|
}, t.send();
|
|
22515
22515
|
}
|
|
22516
|
-
function
|
|
22516
|
+
function wc(i, e) {
|
|
22517
22517
|
const t = [];
|
|
22518
22518
|
let s = 12;
|
|
22519
22519
|
for (let n = 0; n < e; n += 1) {
|
|
@@ -22553,9 +22553,9 @@ function Y2(i) {
|
|
|
22553
22553
|
let o, a = [];
|
|
22554
22554
|
const l = ue.getTag(n, 0);
|
|
22555
22555
|
if (l === "\0\0\0" || l === "true" || l === "typ1")
|
|
22556
|
-
s.outlinesFormat = "truetype", o = ue.getUShort(n, 4), a =
|
|
22556
|
+
s.outlinesFormat = "truetype", o = ue.getUShort(n, 4), a = wc(n, o);
|
|
22557
22557
|
else if (l === "OTTO")
|
|
22558
|
-
s.outlinesFormat = "cff", o = ue.getUShort(n, 4), a =
|
|
22558
|
+
s.outlinesFormat = "cff", o = ue.getUShort(n, 4), a = wc(n, o);
|
|
22559
22559
|
else if (l === "wOFF") {
|
|
22560
22560
|
const D = ue.getTag(n, 4);
|
|
22561
22561
|
if (D === "\0\0\0")
|
|
@@ -22606,7 +22606,7 @@ function Y2(i) {
|
|
|
22606
22606
|
E = je(n, x), s.tables.os2 = ba.parse(E.data, E.offset);
|
|
22607
22607
|
break;
|
|
22608
22608
|
case "post":
|
|
22609
|
-
E = je(n, x), s.tables.post = Wh.parse(E.data, E.offset), s.glyphNames = new
|
|
22609
|
+
E = je(n, x), s.tables.post = Wh.parse(E.data, E.offset), s.glyphNames = new tr(s.tables.post);
|
|
22610
22610
|
break;
|
|
22611
22611
|
case "prep":
|
|
22612
22612
|
E = je(n, x), C = new ue.Parser(E.data, E.offset), s.tables.prep = C.parseByteList(x.length);
|
|
@@ -22722,7 +22722,7 @@ function W2(i, e, t, s, n = 16) {
|
|
|
22722
22722
|
}
|
|
22723
22723
|
return o;
|
|
22724
22724
|
}
|
|
22725
|
-
function
|
|
22725
|
+
function Ec(i, e) {
|
|
22726
22726
|
if (!i || !e) return !1;
|
|
22727
22727
|
const t = i[0] ?? 0, s = i[1] ?? 0;
|
|
22728
22728
|
let n = !1;
|
|
@@ -22740,7 +22740,7 @@ function $o(i) {
|
|
|
22740
22740
|
function V2(i) {
|
|
22741
22741
|
return i ? (Ii(i) > 0 && i.reverse(), an(i), i) : [];
|
|
22742
22742
|
}
|
|
22743
|
-
function
|
|
22743
|
+
function xc(i, e = 16) {
|
|
22744
22744
|
if (!i || !Array.isArray(i.commands)) return [];
|
|
22745
22745
|
const t = [];
|
|
22746
22746
|
let s = [];
|
|
@@ -22796,7 +22796,7 @@ function j2(i, e, t = {}) {
|
|
|
22796
22796
|
const C = e.getPaths(a, 0, 0, t.fontSize || 1) || [];
|
|
22797
22797
|
let w = [];
|
|
22798
22798
|
for (const O of C) {
|
|
22799
|
-
const N =
|
|
22799
|
+
const N = xc(O, r);
|
|
22800
22800
|
for (const R of N)
|
|
22801
22801
|
if (R)
|
|
22802
22802
|
for (const L of R)
|
|
@@ -22842,7 +22842,7 @@ function j2(i, e, t = {}) {
|
|
|
22842
22842
|
S = 0, _ = 0;
|
|
22843
22843
|
}
|
|
22844
22844
|
for (const O of C) {
|
|
22845
|
-
const N =
|
|
22845
|
+
const N = xc(O, r);
|
|
22846
22846
|
if (!N || N.length === 0) continue;
|
|
22847
22847
|
const R = N.map((F) => {
|
|
22848
22848
|
if (!F) return [];
|
|
@@ -22890,11 +22890,11 @@ function j2(i, e, t = {}) {
|
|
|
22890
22890
|
})(F.ring);
|
|
22891
22891
|
let G = null;
|
|
22892
22892
|
for (const P of I)
|
|
22893
|
-
|
|
22893
|
+
Ec(Q, P.ring) && (G === null || P.absArea < G.absArea && P.idx < F.idx || P.absArea > G.absArea && P.idx < F.idx && k.length == 1) && (G = P);
|
|
22894
22894
|
if (G) {
|
|
22895
22895
|
if (G.absArea < F.absArea && k.length > 1)
|
|
22896
22896
|
for (const P of I)
|
|
22897
|
-
|
|
22897
|
+
Ec(Q, P.ring) && P.absArea > F.absArea && P.holes.push(F.ring);
|
|
22898
22898
|
else
|
|
22899
22899
|
G.holes.push(F.ring);
|
|
22900
22900
|
F.assigned = !0;
|
|
@@ -25059,7 +25059,7 @@ class tI {
|
|
|
25059
25059
|
return e = e || {}, e.type == "polyline" && (t = new J2(this.viewer, e.style), s = "折线_"), e.type == "freehandLine" && (t = new Z2(this.viewer, e.style), s = "手绘线_"), e.type == "polygon" && (t = new q2(this.viewer, e.style), s = "面_"), e.type == "billboard" && (t = new pw(this.viewer, e.style), s = "图标_"), (e.type == "circle" || e.type == "ellipse") && (t = new mw(this.viewer, e.style), s = "圆_"), e.type == "rectangle" && (t = new X2(this.viewer, e.style), s = "矩形_"), e.type == "gltfModel" && (t = new Aw(this.viewer, e.style), s = "模型_"), e.type == "point" && (t = new K2(this.viewer, e.style), s = "点_"), e.type == "label" && (t = new $2(this.viewer, e.style), s = "文字_"), e.type == "arrow" && (t = new eI(this.viewer, e.style)), t && (t.name = s + (/* @__PURE__ */ new Date()).getTime()), t;
|
|
25060
25060
|
}
|
|
25061
25061
|
}
|
|
25062
|
-
class
|
|
25062
|
+
class Ic {
|
|
25063
25063
|
viewer;
|
|
25064
25064
|
Cesium;
|
|
25065
25065
|
drawTool;
|
|
@@ -26037,7 +26037,7 @@ class xc {
|
|
|
26037
26037
|
return this.selectedEntityObj = null, this.hideEntityOutline(), !0;
|
|
26038
26038
|
}
|
|
26039
26039
|
}
|
|
26040
|
-
class
|
|
26040
|
+
class nr {
|
|
26041
26041
|
viewer;
|
|
26042
26042
|
cesium;
|
|
26043
26043
|
handler = null;
|
|
@@ -26520,7 +26520,7 @@ const $e = wt({
|
|
|
26520
26520
|
showIcon: !0,
|
|
26521
26521
|
duration: 3
|
|
26522
26522
|
});
|
|
26523
|
-
let We = null,
|
|
26523
|
+
let We = null, Sc = null, Mc = !1, qo = null, yn = null, or = null;
|
|
26524
26524
|
function iI() {
|
|
26525
26525
|
if (yn || typeof document > "u") return;
|
|
26526
26526
|
const i = `
|
|
@@ -26596,10 +26596,10 @@ function iI() {
|
|
|
26596
26596
|
yn = document.createElement("style"), yn.textContent = i, document.head.appendChild(yn);
|
|
26597
26597
|
}
|
|
26598
26598
|
function sI() {
|
|
26599
|
-
if (
|
|
26600
|
-
iI(), We = document.createElement("div"), We.className = "tech-alert-wrapper", (
|
|
26599
|
+
if (Mc) return;
|
|
26600
|
+
iI(), We = document.createElement("div"), We.className = "tech-alert-wrapper", (or || document.body).appendChild(We), Sc = re({
|
|
26601
26601
|
setup() {
|
|
26602
|
-
return () => $e.visible ? Fi(
|
|
26602
|
+
return () => $e.visible ? Fi(Rc, {
|
|
26603
26603
|
class: `tech-alert tech-alert-${$e.type}`,
|
|
26604
26604
|
message: $e.title,
|
|
26605
26605
|
description: $e.description,
|
|
@@ -26612,11 +26612,11 @@ function sI() {
|
|
|
26612
26612
|
icon: () => $e.type === "loading" ? Fi(jd) : $e.type === "success" ? Fi($d) : $e.type === "error" ? Fi(Kd) : $e.type === "warning" ? Fi(qd) : Fi(Xd)
|
|
26613
26613
|
}) : null;
|
|
26614
26614
|
}
|
|
26615
|
-
}), Md(
|
|
26615
|
+
}), Md(Sc, We), Mc = !0;
|
|
26616
26616
|
}
|
|
26617
26617
|
function bs(i) {
|
|
26618
26618
|
sI(), qo && clearTimeout(qo), $e.type = i.type || "info", $e.title = i.title || "", $e.description = i.description || "", $e.closable = i.closable ?? !1, $e.showIcon = i.showIcon ?? !0, $e.visible = !0;
|
|
26619
|
-
const e = i.container ||
|
|
26619
|
+
const e = i.container || or;
|
|
26620
26620
|
We && (e ? (We.parentNode !== e && e.appendChild(We), We.style.position = "absolute", We.style.top = "20px", We.style.left = "50%", We.style.transform = "translateX(-50%)") : (We.parentNode !== document.body && document.body.appendChild(We), We.style.position = "fixed", We.style.top = "20px", We.style.left = "50%", We.style.transform = "translateX(-50%)"));
|
|
26621
26621
|
const t = i.duration ?? ($e.type === "loading" ? 0 : 3);
|
|
26622
26622
|
t > 0 && (qo = setTimeout(() => {
|
|
@@ -26625,7 +26625,7 @@ function bs(i) {
|
|
|
26625
26625
|
}
|
|
26626
26626
|
const be = {
|
|
26627
26627
|
setContainer: (i) => {
|
|
26628
|
-
|
|
26628
|
+
or = i, We && i && We.parentNode !== i && (i.appendChild(We), We.style.position = "absolute");
|
|
26629
26629
|
},
|
|
26630
26630
|
info: (i, e, t, s) => bs({ type: "info", title: i, description: e, duration: t, container: s }),
|
|
26631
26631
|
success: (i, e, t, s) => bs({ type: "success", title: i, description: e, duration: t, container: s }),
|
|
@@ -27270,13 +27270,13 @@ function aI(i) {
|
|
|
27270
27270
|
callbacks: a
|
|
27271
27271
|
}), v = new ju({ cesium: r, viewer: f }), m = new nI({ cesium: r, viewer: f }), A = new lv({ cesium: r, viewer: f }), C = new fw({ cesium: r, viewer: f }), w = new oI({ cesium: r, viewer: f });
|
|
27272
27272
|
let M;
|
|
27273
|
-
const D = new
|
|
27273
|
+
const D = new nr({ cesium: r, viewer: f });
|
|
27274
27274
|
o && (o.globe !== void 0 && m.setGlobeEnvironmentVisible(o.globe), o.terrain !== void 0 && m.setTerrainEnable(o.terrain), o.depthTest !== void 0 && m.setDepthTestEnable(o.depthTest), o.mapProvider && o.mode !== "2d" && m.changeBaseMap(o.mapProvider, {
|
|
27275
27275
|
token: o.tiandituToken,
|
|
27276
27276
|
layerType: o.tiandituLayerType,
|
|
27277
27277
|
showAnnotation: o.tiandituShowLabel,
|
|
27278
27278
|
url: o.arcgisUrl
|
|
27279
|
-
}), o.shadows !== void 0 && m.setShadowsEnable(o.shadows), o.environmentMap !== void 0 && m.setEnvironmentMapEnable(o.environmentMap), o.ambientOcclusion !== void 0 && m.setAmbientOcclusion(o.ambientOcclusion), o.time !== void 0 && m.setTime(o.time), o.brightness !== void 0 && m.setModelBrightness(o.brightness), o.backgroundColor !== void 0 && m.setBackgroundColor(o.backgroundColor), o.collision !== void 0 && m.setCollisionDetection(o.collision), o.mouseHabit !== void 0 && m.setMouseHabit(o.mouseHabit), o.heightBasedZoom !== void 0 && m.setHeightBasedZoom(o.heightBasedZoom)), o && o.mode === "2d" && (m.setCadMode("2d"), M = new
|
|
27279
|
+
}), o.shadows !== void 0 && m.setShadowsEnable(o.shadows), o.environmentMap !== void 0 && m.setEnvironmentMapEnable(o.environmentMap), o.ambientOcclusion !== void 0 && m.setAmbientOcclusion(o.ambientOcclusion), o.time !== void 0 && m.setTime(o.time), o.brightness !== void 0 && m.setModelBrightness(o.brightness), o.backgroundColor !== void 0 && m.setBackgroundColor(o.backgroundColor), o.collision !== void 0 && m.setCollisionDetection(o.collision), o.mouseHabit !== void 0 && m.setMouseHabit(o.mouseHabit), o.heightBasedZoom !== void 0 && m.setHeightBasedZoom(o.heightBasedZoom)), o && o.mode === "2d" && (m.setCadMode("2d"), M = new Ic({ cesium: r, viewer: f })), v.events.on("tilesetLoaded", (y) => {
|
|
27280
27280
|
g.baseCompt.attachTileset(y, g.baseCompt.selectedColor), g.baseSection.attachTileset(y, y.leiting?.model?.modelId), h && h.tilesLoad3dTiles && h.tilesLoad3dTiles(y), o?.tilesLoad3dTiles && o.tilesLoad3dTiles(y.leiting);
|
|
27281
27281
|
}), v.events.on("loadingStatus", (y) => {
|
|
27282
27282
|
h && h.onLoadingStatus && h.onLoadingStatus(y);
|
|
@@ -27352,6 +27352,8 @@ function aI(i) {
|
|
|
27352
27352
|
return await v._loadNodeDetailsForModel(S);
|
|
27353
27353
|
}, h.setMapTileset = (y) => v.setMapTileset(y), h.setCurrentModelId = (y) => v.setBIMmodelId(y), h.setBIMmodelId = h.setCurrentModelId, h.setModelList = (y) => v.setModelList(y), h.setWatermarkEnabled = (y) => {
|
|
27354
27354
|
v.setWatermarkEnabled(y), C.setWatermarkEnabled(y);
|
|
27355
|
+
}, h.applyWatermark = async (y = !0) => {
|
|
27356
|
+
await Ya(y, f.container);
|
|
27355
27357
|
}, h.highlightComponents = (y, S = {}) => g.baseCompt.setSelectColorUserModelCpt(y, S), h.setSelectColorUserModelCpt = h.highlightComponents, g.baseCompt.setLoadNodeDetailsCallback((y) => v.loadNodeDetailsForModel(y)), h.highlightAllComponents = (y, S) => g.baseCompt.setAllSelectColorUserModelCpt(y, S), h.setAllSelectColorUserModelCpt = h.highlightAllComponents, h.setSelectColorUserModelCptByClear = (y, S) => {
|
|
27356
27358
|
g.baseCompt.clearAllHaveSelected(), g.baseCompt.setSelectColorUserModelCpt(
|
|
27357
27359
|
y.selectCpts,
|
|
@@ -27391,7 +27393,7 @@ function aI(i) {
|
|
|
27391
27393
|
);
|
|
27392
27394
|
}, h.setShadowDarkness = h.setShadowIntensity, h.switchSceneMode = async (y) => {
|
|
27393
27395
|
const S = y ? "2d" : "3d";
|
|
27394
|
-
await m.setCadMode(S), y && !M && (M = new
|
|
27396
|
+
await m.setCadMode(S), y && !M && (M = new Ic({ cesium: r, viewer: f }), h.setGlobeVisibility(!0)), l.emit("setMode", S);
|
|
27395
27397
|
}, h.setSceneMode = h.switchSceneMode, h.set2d = (y) => h.switchSceneMode(y), h.is2dMode = () => m.is2d, h.setMouseControlMode = (y) => m.setMouseHabit(y), h.setMouseHabit = h.setMouseControlMode, h.setCollisionEnabled = (y) => m.setCollisionDetection(y), h.setCollisionDetection = h.setCollisionEnabled, h.searchAndLocate = (y, S) => m.searchLocation(y, S), h.searchLocation = h.searchAndLocate, h.getConfigure = () => (console.warn(
|
|
27396
27398
|
"getConfigure is not initialized. Please ensure LeitingSetting component is mounted."
|
|
27397
27399
|
), {}), h.setConfigure = (y) => {
|
|
@@ -27619,10 +27621,10 @@ function aI(i) {
|
|
|
27619
27621
|
}
|
|
27620
27622
|
return { Cesium: r, viewer: f, methods: h, menuEvents: l };
|
|
27621
27623
|
}
|
|
27622
|
-
function
|
|
27624
|
+
function ar(i) {
|
|
27623
27625
|
return Bd() ? (Td(i), !0) : !1;
|
|
27624
27626
|
}
|
|
27625
|
-
function
|
|
27627
|
+
function rr(i) {
|
|
27626
27628
|
return typeof i == "function" ? i() : $(i);
|
|
27627
27629
|
}
|
|
27628
27630
|
const rI = typeof window < "u" && typeof document < "u";
|
|
@@ -27637,7 +27639,7 @@ function od(i, e = !0, t) {
|
|
|
27637
27639
|
}
|
|
27638
27640
|
function Si(i) {
|
|
27639
27641
|
var e;
|
|
27640
|
-
const t =
|
|
27642
|
+
const t = rr(i);
|
|
27641
27643
|
return (e = t?.$el) != null ? e : t;
|
|
27642
27644
|
}
|
|
27643
27645
|
const rn = rI ? window : void 0;
|
|
@@ -27649,7 +27651,7 @@ function dI(...i) {
|
|
|
27649
27651
|
const o = [], a = () => {
|
|
27650
27652
|
o.forEach((u) => u()), o.length = 0;
|
|
27651
27653
|
}, l = (u, d, f, h) => (u.addEventListener(d, f, h), () => u.removeEventListener(d, f, h)), r = te(
|
|
27652
|
-
() => [Si(e),
|
|
27654
|
+
() => [Si(e), rr(n)],
|
|
27653
27655
|
([u, d]) => {
|
|
27654
27656
|
if (a(), !u)
|
|
27655
27657
|
return;
|
|
@@ -27662,7 +27664,7 @@ function dI(...i) {
|
|
|
27662
27664
|
), c = () => {
|
|
27663
27665
|
r(), a();
|
|
27664
27666
|
};
|
|
27665
|
-
return
|
|
27667
|
+
return ar(c), c;
|
|
27666
27668
|
}
|
|
27667
27669
|
function fI() {
|
|
27668
27670
|
const i = H(!1), e = Pa();
|
|
@@ -27682,9 +27684,9 @@ function rd(i, e = {}) {
|
|
|
27682
27684
|
}, l = () => {
|
|
27683
27685
|
n && ("removeEventListener" in n ? n.removeEventListener("change", a) : n.removeListener(a));
|
|
27684
27686
|
}, r = Pd(() => {
|
|
27685
|
-
s.value && (l(), n = t.matchMedia(
|
|
27687
|
+
s.value && (l(), n = t.matchMedia(rr(i)), "addEventListener" in n ? n.addEventListener("change", a) : n.addListener(a), o.value = n.matches);
|
|
27686
27688
|
});
|
|
27687
|
-
return
|
|
27689
|
+
return ar(() => {
|
|
27688
27690
|
r(), l(), n = void 0;
|
|
27689
27691
|
}), o;
|
|
27690
27692
|
}
|
|
@@ -27706,7 +27708,7 @@ function gI(i, e, t = {}) {
|
|
|
27706
27708
|
), u = () => {
|
|
27707
27709
|
l(), c();
|
|
27708
27710
|
};
|
|
27709
|
-
return
|
|
27711
|
+
return ar(u), {
|
|
27710
27712
|
isSupported: a,
|
|
27711
27713
|
stop: u
|
|
27712
27714
|
};
|
|
@@ -27768,7 +27770,7 @@ function ld(i = {}) {
|
|
|
27768
27770
|
}
|
|
27769
27771
|
return { width: a, height: l };
|
|
27770
27772
|
}
|
|
27771
|
-
function
|
|
27773
|
+
function lr() {
|
|
27772
27774
|
const { width: i, height: e } = ld(), t = rd("(pointer: coarse)"), s = H(!1), n = H(!1), o = H(!0), a = H("other"), l = H("other"), r = H("medium"), c = H("portrait"), u = () => {
|
|
27773
27775
|
const g = navigator.userAgent.toLowerCase(), v = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i, m = navigator;
|
|
27774
27776
|
if ("userAgentData" in navigator && m.userAgentData?.mobile !== void 0)
|
|
@@ -27850,7 +27852,7 @@ const mI = { class: "title" }, AI = { class: "actions" }, vI = { class: "card-bo
|
|
|
27850
27852
|
},
|
|
27851
27853
|
emits: ["update:visible", "update:open", "close"],
|
|
27852
27854
|
setup(i, { emit: e }) {
|
|
27853
|
-
const t = i, s = Ne("leiting-theme", H("dark")), { isMobile: n } =
|
|
27855
|
+
const t = i, s = Ne("leiting-theme", H("dark")), { isMobile: n } = lr(), o = e, a = fe({
|
|
27854
27856
|
get: () => t.open !== void 0 ? t.open : t.visible,
|
|
27855
27857
|
set: (E) => {
|
|
27856
27858
|
o("update:visible", E), o("update:open", E);
|
|
@@ -28082,7 +28084,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
|
|
|
28082
28084
|
},
|
|
28083
28085
|
emits: ["update:visible", "update:open", "close", "select", "check"],
|
|
28084
28086
|
setup(i, { emit: e }) {
|
|
28085
|
-
const t = _a.Search, s =
|
|
28087
|
+
const t = _a.Search, s = Fc, n = i, o = e, a = Ne("leiting-theme", H("dark")), l = Ne("leitingMethods"), r = (S) => {
|
|
28086
28088
|
l?.value?.onSearchComponent && l.value.onSearchComponent(S);
|
|
28087
28089
|
}, c = fe({
|
|
28088
28090
|
get: () => n.open !== void 0 ? n.open : n.visible,
|
|
@@ -28217,7 +28219,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
|
|
|
28217
28219
|
_: 1
|
|
28218
28220
|
}, 8, ["visible", "title", "initial-position", "full-height"]));
|
|
28219
28221
|
}
|
|
28220
|
-
}), cd = /* @__PURE__ */ Ue(SI, [["__scopeId", "data-v-3748c20d"]]), MI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEhSURBVDhP1ZRhkcIwEIWJAsDBOTgkgAJAAYcCQAFFAUgoDjgFh4Q7B+cAUFC+19kyS0hL+Ulm3nS6+/ZLNkkbOk9GURRDWUIIxyZraEoCWZLfmmcOLK/z14KAqGiGvq14zDMHNk/BHkAAehh/0ABtKMxUSFzPNfpFI+JnD7wDYVaxIIov41bIfxHfoROakhe0HDeQmbQfFzTxJj+zTXYg1kWrarISRFKzLNAfGsbL9iDzq/0j+kQZ/k1wm7onoKW3Hq42F0jLVK//Tcebott2fJAbVK1lvKwBNd6rRIsFsfJka0G2qdpQPy7+EPC0AumexKAzoH5FbgvSbHuUW6EOYubbfwX0cLPfFJS4K6mPNrbdHb+uvP498dhVn4v9FWo9V3RZzFxAv8L9AAAAAElFTkSuQmCC", no = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAERSURBVDhPvZTrEYIwEISTCrQD6EA7gA60AylBK1Aq0A7ECrQDoQPsADrACuLuTMJkIiHxjzezgyR7H3d5KJVSqRAigcaQUjYYX2JgZY/P/O4lEgYYFo7pgPcc2kSCBoIUzDeo0klPPEsNYlX7AKzA/M6ASrRzYoIGG5DAOCvzBvzMOxqQazSgLLI1QdAW5jWpUAPV0AVKIc7FRCuNy7RkWozJtj1BED7ANbpDXHhffFXUwUnZwRYp7qw7Rx8/lLkV9R4QD2w1A8pjW3sA4h5au+pXEBS76P8D6Ut9/nXXaiRQdnBXqBfEC+4GdzSxW5v6F7CTeHnbCVCBsWIE+RYVrdF4DSz6OwgiADDexbmT3X0A4fSDfDjUugcAAAAASUVORK5CYII=", BI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFESURBVDhPlZMNEcIwDIVXBQwFgAJAAcMBDgAFIGE4wAHgABSwOdgcIAEUjPd6aS/rfhi7y12bJl9f0sxEf3xVVV0RPoetjTFvnWqGcgSylfgihA0CKcgJgBfsAqMiKiM0+gkKlCyZCN8uhPWCFOSBxARWORU4W2CdeV9XjxSEJcwkjokTqBpzjxjCn7CyVRECzjg8wHLYCmabK7CplBcLhMr2DZCqP0dCovYZ9hYGXx1izLUGUkkfxI/sTQiCf4N1zLWAWCKV2nP6PEhB2Ngd7B4GC4SJnCcP8SAFoc/Ph/TqjVvTPogFKUiJ/VGU+GdmUAA5ObA7cyC+iPt/MjUfKRL4emyuK+cGH8tufFRUHywZ+RYlnRDdIwfzLzVUibtQv1oNhoAExtfpVdIAiQIOWiY9o2sQxJemOydTS1jR1di2Zn8B8f27apou9kMAAAAASUVORK5CYII=", TI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHDSURBVDhPlZOxL0NRFIe9ECubhehoIIjJ1HYwCkIiJpUQEkN1YZBobU0kFKNI3iTGYrDRv0BIhLXCYpCwiO35fs25zWva98JNvpz37j33d8+551yvLWIEQXDG0izMe55XjvJz816MUJG1LVuvYJcQrEb5xwkV2JSHGfAhgBJiu63E4oSUzpRtusa+wBooKkWnKOujQYh7SbCShQx0m9cpds4iOseOw7BFmUPwU341IQT2MaOQgi9QND+wiqNnBxT4X7SIbrAqhNI9wiUvJ+W8A99wDEWdwrw25iVkkenAEb5LkIQPuIMJWJGQoriFd+iBCkhc8zUhfJSm7mva5l3aadubDgtpMgGKpB/eoBfuQZFoPNhBj9gTaC3kKkEEGXPswF7Y5rLro1AW8UI6GmelmAzfkUWlNaWt6/iT0DOOA5bqoSuzHfIvofATqSJQb8KoiJbtPi6x2dA9FPjXE1F/uZKrv3IwCFcNqVmoPlal7QJ9q/wZCbk7Ioo9/tehE9q1r0nIxNQbG4YEXdkVjQ5J2OZXbB88gVrgQIJNj9aaT4LboPK7J6O0Ktb1KYtc/aYxGff6h3AYY6Nvzk2GQ1WQTVj4BST70jYaqceXAAAAAElFTkSuQmCC", PI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADhSURBVHgBvVOBEYIwDEw9B2ADO4IjuIEjwAa6Aa7ABMAEuIIjOIFsUDao37vgxVZbBI+/+0tI0+fJBaIIrLUFaMAHmNNcsMAIE+vdJLQykQ+0wFHBrsyiT/sL2I1DDTac/+4Klzobov7WHxt29qGmaYaQnlhLCmUTa2l4C2ljvamFlEvY0xpCW/kA924GblfGWciZaJyXQvSmlOoDITSdXQBbcA8eKfy/nHDFeY470FIX8tzUIu84FmLWuTzz7yhRLPm54dKJ4+A5uoJ3HgHBUfUmxGIa4QDuKA4n3kLk9ZInw0qu5b1R1aYAAAAASUVORK5CYII=", DI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADFSURBVDhPxVPBDYMwDIwnKJu0G9ANYJMyQrsBbNIRGAE2gEnSO6mpIMJxkBC1lEds52zfOeK9b51zV5wte4lIr8RWbgGQh2fGmaIHJe4EetKPtDpRcA5AvwcB7FtgCcTOH0p3YzaQNd75QBiVXJG3LRtCRyQ6Jvsekd3gTsJVoDcihZLQQjXGTRMzIzPhOCCQyNYvSuEue7Qdm02yK0u1nM2m/FQyKb8JZHH+l81Ofdpdm82tvikjThyNlbSEBvIPFj+MfwA76qSYUG3g9QAAAABJRU5ErkJggg==",
|
|
28222
|
+
}), cd = /* @__PURE__ */ Ue(SI, [["__scopeId", "data-v-3748c20d"]]), MI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEhSURBVDhP1ZRhkcIwEIWJAsDBOTgkgAJAAYcCQAFFAUgoDjgFh4Q7B+cAUFC+19kyS0hL+Ulm3nS6+/ZLNkkbOk9GURRDWUIIxyZraEoCWZLfmmcOLK/z14KAqGiGvq14zDMHNk/BHkAAehh/0ABtKMxUSFzPNfpFI+JnD7wDYVaxIIov41bIfxHfoROakhe0HDeQmbQfFzTxJj+zTXYg1kWrarISRFKzLNAfGsbL9iDzq/0j+kQZ/k1wm7onoKW3Hq42F0jLVK//Tcebott2fJAbVK1lvKwBNd6rRIsFsfJka0G2qdpQPy7+EPC0AumexKAzoH5FbgvSbHuUW6EOYubbfwX0cLPfFJS4K6mPNrbdHb+uvP498dhVn4v9FWo9V3RZzFxAv8L9AAAAAElFTkSuQmCC", no = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAERSURBVDhPvZTrEYIwEISTCrQD6EA7gA60AylBK1Aq0A7ECrQDoQPsADrACuLuTMJkIiHxjzezgyR7H3d5KJVSqRAigcaQUjYYX2JgZY/P/O4lEgYYFo7pgPcc2kSCBoIUzDeo0klPPEsNYlX7AKzA/M6ASrRzYoIGG5DAOCvzBvzMOxqQazSgLLI1QdAW5jWpUAPV0AVKIc7FRCuNy7RkWozJtj1BED7ANbpDXHhffFXUwUnZwRYp7qw7Rx8/lLkV9R4QD2w1A8pjW3sA4h5au+pXEBS76P8D6Ut9/nXXaiRQdnBXqBfEC+4GdzSxW5v6F7CTeHnbCVCBsWIE+RYVrdF4DSz6OwgiADDexbmT3X0A4fSDfDjUugcAAAAASUVORK5CYII=", BI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFESURBVDhPlZMNEcIwDIVXBQwFgAJAAcMBDgAFIGE4wAHgABSwOdgcIAEUjPd6aS/rfhi7y12bJl9f0sxEf3xVVV0RPoetjTFvnWqGcgSylfgihA0CKcgJgBfsAqMiKiM0+gkKlCyZCN8uhPWCFOSBxARWORU4W2CdeV9XjxSEJcwkjokTqBpzjxjCn7CyVRECzjg8wHLYCmabK7CplBcLhMr2DZCqP0dCovYZ9hYGXx1izLUGUkkfxI/sTQiCf4N1zLWAWCKV2nP6PEhB2Ngd7B4GC4SJnCcP8SAFoc/Ph/TqjVvTPogFKUiJ/VGU+GdmUAA5ObA7cyC+iPt/MjUfKRL4emyuK+cGH8tufFRUHywZ+RYlnRDdIwfzLzVUibtQv1oNhoAExtfpVdIAiQIOWiY9o2sQxJemOydTS1jR1di2Zn8B8f27apou9kMAAAAASUVORK5CYII=", TI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHDSURBVDhPlZOxL0NRFIe9ECubhehoIIjJ1HYwCkIiJpUQEkN1YZBobU0kFKNI3iTGYrDRv0BIhLXCYpCwiO35fs25zWva98JNvpz37j33d8+551yvLWIEQXDG0izMe55XjvJz816MUJG1LVuvYJcQrEb5xwkV2JSHGfAhgBJiu63E4oSUzpRtusa+wBooKkWnKOujQYh7SbCShQx0m9cpds4iOseOw7BFmUPwU341IQT2MaOQgi9QND+wiqNnBxT4X7SIbrAqhNI9wiUvJ+W8A99wDEWdwrw25iVkkenAEb5LkIQPuIMJWJGQoriFd+iBCkhc8zUhfJSm7mva5l3aadubDgtpMgGKpB/eoBfuQZFoPNhBj9gTaC3kKkEEGXPswF7Y5rLro1AW8UI6GmelmAzfkUWlNaWt6/iT0DOOA5bqoSuzHfIvofATqSJQb8KoiJbtPi6x2dA9FPjXE1F/uZKrv3IwCFcNqVmoPlal7QJ9q/wZCbk7Ioo9/tehE9q1r0nIxNQbG4YEXdkVjQ5J2OZXbB88gVrgQIJNj9aaT4LboPK7J6O0Ktb1KYtc/aYxGff6h3AYY6Nvzk2GQ1WQTVj4BST70jYaqceXAAAAAElFTkSuQmCC", PI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADhSURBVHgBvVOBEYIwDEw9B2ADO4IjuIEjwAa6Aa7ABMAEuIIjOIFsUDao37vgxVZbBI+/+0tI0+fJBaIIrLUFaMAHmNNcsMAIE+vdJLQykQ+0wFHBrsyiT/sL2I1DDTac/+4Klzobov7WHxt29qGmaYaQnlhLCmUTa2l4C2ljvamFlEvY0xpCW/kA924GblfGWciZaJyXQvSmlOoDITSdXQBbcA8eKfy/nHDFeY470FIX8tzUIu84FmLWuTzz7yhRLPm54dKJ4+A5uoJ3HgHBUfUmxGIa4QDuKA4n3kLk9ZInw0qu5b1R1aYAAAAASUVORK5CYII=", DI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADFSURBVDhPxVPBDYMwDIwnKJu0G9ANYJMyQrsBbNIRGAE2gEnSO6mpIMJxkBC1lEds52zfOeK9b51zV5wte4lIr8RWbgGQh2fGmaIHJe4EetKPtDpRcA5AvwcB7FtgCcTOH0p3YzaQNd75QBiVXJG3LRtCRyQ6Jvsekd3gTsJVoDcihZLQQjXGTRMzIzPhOCCQyNYvSuEue7Qdm02yK0u1nM2m/FQyKb8JZHH+l81Ofdpdm82tvikjThyNlbSEBvIPFj+MfwA76qSYUG3g9QAAAABJRU5ErkJggg==", Bc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEcSURBVDhPrZSNDYIwEIXpBOIGjMAIOIE4AbgBGwAbOIJu4Aa4gW4gI+gE9b3mjjSmibSR5ALX3H33W4y1Ns+yrIe0EH7HPC8YnyGjAegkEB5cYyiwrdWXIEc1xnSREGcuiTQEWeg7gG4+CMcl9ALnLkvogwScv+wq6FMQJJCJDgBtBcSAI3QClwe2YZAHcY2Ho4kGAVLA6U5/CEvdp4KYhesFhBPpCZIAz6jStHhproJcHyAHbb5nF+6RZ8CsGslIQaHp/gSxRzlApU4GugPxNuDN/eNarAJxapUPgm8rQ9C1SAI9AOGiHhGApSdnRN8FshbEiLwiLI1rMUM6zSQ0tX9c2lp/Iw0iMIPU38iFIN1mTmOjKa98vyWB4QM5XQnvsbFsyAAAAABJRU5ErkJggg==", _I = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGPSURBVDhPrZT9UQIxEMUvFSgViBUoFQgVABV4VqBW4FmBUIFQgZRwVqBU4HUAVHC+X2aXycQw/sPOvLncZvdlv5JQFaTv+1upp8IyhLDHRLpLfe6FrXRt7hZShYyH+n8RauGAv/AkQNYIHICshFcRdu6fE/kGRN/mQGTIpzAzMoh6EV2fIsJ5IwNOj2IpVZ6i6difSecRVnlELZHIgHROisgXRCa78Z+IrMBf2pjLYJNENGSd1kO2pPghjKQniyqY8lFr2NfaqC18wn7nZCMlWg7xLq70TxfRLyHqtABN2lbp40mSSCzBcSebif1TPyKjDBcQ0eJJRkIUpHkMPUlnkBU+pnlWItL6ERgw8o1iqRHtgzAUGNRD2qmkvgMvNnneUQcZ4ggR6VGXG+OOA1koNvrFcY7+af++VJe0hucfyKQu+RWJc+SDZ3aNvlPpRl7T0qXdafNZYPDehLEZt/rOBR9U8QSaEKX0jHAaE4tshVrgLeJ+Xdl6rS8D3BWJXKnCEwWXEuco9grQ3bb0sP0Cn8/nPm/SMRQAAAAASUVORK5CYII=", kI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgB1ZFhDYAgEIWfzgBGIIINpIEViGAkG2gEbWADjWADfMw/iDgUfji/7e3gxt3uHsDXZFrrlrFBHJNpsPAgEEmORArn3lFroEZQCjcTbAhzepPsgbuCgn8FBWvsUAMfFR5OIPGS5G80JkrG2sopHKbO1BCoHy8ZNhRUT5X4BTu6qyNSwwCiMAAAAABJRU5ErkJggg==", LI = { class: "menu-container" }, RI = ["onClick", "title"], FI = { class: "menu-icon" }, OI = ["src", "alt"], GI = {
|
|
28221
28223
|
key: 3,
|
|
28222
28224
|
style: { "font-size": "12px" }
|
|
28223
28225
|
}, UI = {
|
|
@@ -28249,14 +28251,14 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
|
|
|
28249
28251
|
{ ID: "home", title: "主视角", src: MI, key: "homeView" },
|
|
28250
28252
|
{ ID: "tree", title: "目录树", src: no, key: "componentTree" },
|
|
28251
28253
|
{ ID: "cadLayer", title: "图层", src: no, key: "cadLayer" },
|
|
28252
|
-
{ ID: "gisCadPosition", title: "GIS调整", src:
|
|
28254
|
+
{ ID: "gisCadPosition", title: "GIS调整", src: Bc, key: "gisCadPosition" },
|
|
28253
28255
|
{ ID: "measure", title: "量算", src: BI, key: "measurement" },
|
|
28254
28256
|
{ ID: "section", title: "剖切", src: TI, key: "section" },
|
|
28255
28257
|
{ ID: "roam", title: "人物漫游", src: PI, key: "roam" },
|
|
28256
28258
|
{ ID: "info", title: "构件信息", src: DI, key: "componentInfo" },
|
|
28257
28259
|
// { ID: 'location', title: '定位构件', src: locationIcon, key: 'location' },
|
|
28258
28260
|
// { ID: 'adjust', title: '调整模型', src: adjustModelIcon, key: 'adjustModel' },
|
|
28259
|
-
{ ID: "cadPosition", title: "调整位置", src:
|
|
28261
|
+
{ ID: "cadPosition", title: "调整位置", src: Bc, key: "cadPosition" },
|
|
28260
28262
|
{ ID: "annotation", title: "标注", src: kI, key: "annotation" },
|
|
28261
28263
|
// { ID: 'map', title: '导航图', src: miniMapIcon, key: 'navigationMap' },
|
|
28262
28264
|
// { ID: 'excavate', title: '压平与开挖', src: excavateIcon, key: 'excavate' },
|
|
@@ -29000,7 +29002,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
|
|
|
29000
29002
|
}, 8, ["visible", "full-height"]));
|
|
29001
29003
|
}
|
|
29002
29004
|
}), Ma = /* @__PURE__ */ Ue(FS, [["__scopeId", "data-v-375a1f55"]]);
|
|
29003
|
-
class
|
|
29005
|
+
class cr {
|
|
29004
29006
|
viewer;
|
|
29005
29007
|
Cesium;
|
|
29006
29008
|
pickHandler = null;
|
|
@@ -29116,7 +29118,7 @@ const OS = { class: "leitingbim-model-adjust-panel" }, GS = { class: "leitingbim
|
|
|
29116
29118
|
set: (G) => {
|
|
29117
29119
|
n("update:visible", G), n("update:open", G);
|
|
29118
29120
|
}
|
|
29119
|
-
}), a = Ne("leitingMethods"), l = H("BIM"), r = H("param"), c = H(""), u = H([]), d = H("BIM"), f = H(null), h = H(null), g = H(null), v = () => (!g.value && a?.value?.getViewer && a?.value?.getCesium && (g.value = new
|
|
29121
|
+
}), a = Ne("leitingMethods"), l = H("BIM"), r = H("param"), c = H(""), u = H([]), d = H("BIM"), f = H(null), h = H(null), g = H(null), v = () => (!g.value && a?.value?.getViewer && a?.value?.getCesium && (g.value = new cr(a.value.getViewer(), a.value.getCesium())), g.value), m = () => {
|
|
29120
29122
|
v()?.clearMarkers(), f.value = null, h.value = null;
|
|
29121
29123
|
}, A = (G, P) => {
|
|
29122
29124
|
G === "BIM" ? f.value = P : h.value = P, v()?.addMarker(G, P), be.success(`${G === "BIM" ? "BIM" : "地图"}标记点已添加`);
|
|
@@ -29632,9 +29634,9 @@ const wM = {
|
|
|
29632
29634
|
timePickerLocale: oo({}, EM)
|
|
29633
29635
|
};
|
|
29634
29636
|
ud.lang.ok = "确定";
|
|
29635
|
-
var Tn = { exports: {} }, xM = Tn.exports,
|
|
29637
|
+
var Tn = { exports: {} }, xM = Tn.exports, Tc;
|
|
29636
29638
|
function hd() {
|
|
29637
|
-
return
|
|
29639
|
+
return Tc || (Tc = 1, (function(i, e) {
|
|
29638
29640
|
(function(t, s) {
|
|
29639
29641
|
i.exports = s();
|
|
29640
29642
|
})(xM, (function() {
|
|
@@ -29912,9 +29914,9 @@ function hd() {
|
|
|
29912
29914
|
}
|
|
29913
29915
|
var IM = hd();
|
|
29914
29916
|
const Dt = /* @__PURE__ */ ds(IM);
|
|
29915
|
-
var Pn = { exports: {} }, SM = Pn.exports,
|
|
29917
|
+
var Pn = { exports: {} }, SM = Pn.exports, Pc;
|
|
29916
29918
|
function MM() {
|
|
29917
|
-
return
|
|
29919
|
+
return Pc || (Pc = 1, (function(i, e) {
|
|
29918
29920
|
(function(t, s) {
|
|
29919
29921
|
i.exports = s(hd());
|
|
29920
29922
|
})(SM, (function(t) {
|
|
@@ -29932,9 +29934,9 @@ function MM() {
|
|
|
29932
29934
|
})(Pn)), Pn.exports;
|
|
29933
29935
|
}
|
|
29934
29936
|
MM();
|
|
29935
|
-
var Dn = { exports: {} }, BM = Dn.exports,
|
|
29937
|
+
var Dn = { exports: {} }, BM = Dn.exports, Dc;
|
|
29936
29938
|
function TM() {
|
|
29937
|
-
return
|
|
29939
|
+
return Dc || (Dc = 1, (function(i, e) {
|
|
29938
29940
|
(function(t, s) {
|
|
29939
29941
|
i.exports = s();
|
|
29940
29942
|
})(BM, (function() {
|
|
@@ -30012,9 +30014,9 @@ function TM() {
|
|
|
30012
30014
|
}
|
|
30013
30015
|
var PM = TM();
|
|
30014
30016
|
const DM = /* @__PURE__ */ ds(PM);
|
|
30015
|
-
var _n = { exports: {} }, _M = _n.exports,
|
|
30017
|
+
var _n = { exports: {} }, _M = _n.exports, _c;
|
|
30016
30018
|
function kM() {
|
|
30017
|
-
return
|
|
30019
|
+
return _c || (_c = 1, (function(i, e) {
|
|
30018
30020
|
(function(t, s) {
|
|
30019
30021
|
i.exports = s();
|
|
30020
30022
|
})(_M, (function() {
|
|
@@ -30029,9 +30031,9 @@ function kM() {
|
|
|
30029
30031
|
}
|
|
30030
30032
|
var LM = kM();
|
|
30031
30033
|
const RM = /* @__PURE__ */ ds(LM);
|
|
30032
|
-
var kn = { exports: {} }, FM = kn.exports,
|
|
30034
|
+
var kn = { exports: {} }, FM = kn.exports, kc;
|
|
30033
30035
|
function OM() {
|
|
30034
|
-
return
|
|
30036
|
+
return kc || (kc = 1, (function(i, e) {
|
|
30035
30037
|
(function(t, s) {
|
|
30036
30038
|
i.exports = s();
|
|
30037
30039
|
})(FM, (function() {
|
|
@@ -30056,9 +30058,9 @@ function OM() {
|
|
|
30056
30058
|
}
|
|
30057
30059
|
var GM = OM();
|
|
30058
30060
|
const UM = /* @__PURE__ */ ds(GM);
|
|
30059
|
-
var Ln = { exports: {} }, NM = Ln.exports,
|
|
30061
|
+
var Ln = { exports: {} }, NM = Ln.exports, Lc;
|
|
30060
30062
|
function QM() {
|
|
30061
|
-
return
|
|
30063
|
+
return Lc || (Lc = 1, (function(i, e) {
|
|
30062
30064
|
(function(t, s) {
|
|
30063
30065
|
i.exports = s();
|
|
30064
30066
|
})(NM, (function() {
|
|
@@ -30234,7 +30236,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
|
|
|
30234
30236
|
emits: ["update:visible", "update:open", "close"],
|
|
30235
30237
|
setup(i, { emit: e }) {
|
|
30236
30238
|
Dt.locale("zh-cn"), Dt.extend(DM), Dt.extend(RM), Dt.extend(UM), Dt.extend(YM);
|
|
30237
|
-
const t =
|
|
30239
|
+
const t = Oc, s = Dr.Group, n = Dr, o = _a, a = Xi, l = ns, r = ns.Option, c = zd, u = i, d = e, f = Ne("leitingMethods"), h = fe({
|
|
30238
30240
|
get: () => u.open !== void 0 ? u.open : u.visible,
|
|
30239
30241
|
set: (b) => {
|
|
30240
30242
|
d("update:visible", b), d("update:open", b);
|
|
@@ -30924,7 +30926,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
|
|
|
30924
30926
|
return b ? b.modelName : "";
|
|
30925
30927
|
}), A = () => {
|
|
30926
30928
|
n("update:visible", !1);
|
|
30927
|
-
}, C = () => (!d.value && o?.value?.getViewer && o?.value?.getCesium && (d.value = new
|
|
30929
|
+
}, C = () => (!d.value && o?.value?.getViewer && o?.value?.getCesium && (d.value = new cr(o.value.getViewer(), o.value.getCesium())), d.value), w = () => {
|
|
30928
30930
|
C()?.clearMarkers(), h.bimPoint1.longitude = void 0, h.bimPoint1.latitude = void 0, h.bimPoint1.height = void 0, h.bimPoint2.longitude = void 0, h.bimPoint2.latitude = void 0, h.bimPoint2.height = void 0;
|
|
30929
30931
|
}, M = (b) => {
|
|
30930
30932
|
const I = u.value, k = h[I];
|
|
@@ -31596,7 +31598,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
|
|
|
31596
31598
|
localOriginX: 0,
|
|
31597
31599
|
localOriginY: 0,
|
|
31598
31600
|
clampToGround: !1
|
|
31599
|
-
}), h = fe(() => a.value.length > 0 && a.value.every((P) => P.selected)), g = fe(() => a.value.find((P) => P.modelId === l.value)?.modelName || ""), v = () => (!u.value && n?.value?.getViewer && n?.value?.getCesium && (u.value = new
|
|
31601
|
+
}), h = fe(() => a.value.length > 0 && a.value.every((P) => P.selected)), g = fe(() => a.value.find((P) => P.modelId === l.value)?.modelName || ""), v = () => (!u.value && n?.value?.getViewer && n?.value?.getCesium && (u.value = new cr(
|
|
31600
31602
|
n.value.getViewer(),
|
|
31601
31603
|
n.value.getCesium()
|
|
31602
31604
|
)), u.value), m = () => {
|
|
@@ -32447,7 +32449,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
|
|
|
32447
32449
|
}, v = (E) => E > 1e6 ? `${(E / 1e6).toFixed(2)} km²` : `${E.toFixed(2)} m²`, m = () => {
|
|
32448
32450
|
if (!o.value && n.value?.getViewer) {
|
|
32449
32451
|
const E = n.value.getViewer(), B = n.value.getCesium();
|
|
32450
|
-
E && B && (o.value = new
|
|
32452
|
+
E && B && (o.value = new nr({ viewer: E, cesium: B }), o.value.setUnit(l.value), o.value.setSnapping(r.value), o.value.onMeasure = (y) => {
|
|
32451
32453
|
c.value = y;
|
|
32452
32454
|
});
|
|
32453
32455
|
}
|
|
@@ -32630,7 +32632,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
32630
32632
|
},
|
|
32631
32633
|
emits: ["update:visible", "action"],
|
|
32632
32634
|
setup(i, { emit: e }) {
|
|
32633
|
-
const t = i, s = e, { isMobile: n } =
|
|
32635
|
+
const t = i, s = e, { isMobile: n } = lr(), o = fe(() => {
|
|
32634
32636
|
let r = t.position.x, c = t.position.y;
|
|
32635
32637
|
if (n.value) {
|
|
32636
32638
|
const d = t.items.length * 48;
|
|
@@ -32902,7 +32904,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
32902
32904
|
})
|
|
32903
32905
|
]));
|
|
32904
32906
|
}
|
|
32905
|
-
}),
|
|
32907
|
+
}), ur = /* @__PURE__ */ Ue(K3, [["__scopeId", "data-v-66d9d696"]]), q3 = { class: "mobile-tree-container" }, X3 = { class: "search-section" }, J3 = { class: "search-inner" }, Z3 = ["innerHTML"], eP = /* @__PURE__ */ _e({
|
|
32906
32908
|
__name: "MobileTree",
|
|
32907
32909
|
props: {
|
|
32908
32910
|
visible: { type: Boolean, default: !1 },
|
|
@@ -33020,7 +33022,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33020
33022
|
}), h.observe(u.value));
|
|
33021
33023
|
}), lt(() => {
|
|
33022
33024
|
h && (h.disconnect(), h = null);
|
|
33023
|
-
}), (_, O) => (Y(), ge(
|
|
33025
|
+
}), (_, O) => (Y(), ge(ur, {
|
|
33024
33026
|
visible: o.value,
|
|
33025
33027
|
title: "目录树",
|
|
33026
33028
|
direction: "bottom",
|
|
@@ -33057,7 +33059,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33057
33059
|
ref_key: "treeContentRef",
|
|
33058
33060
|
ref: u
|
|
33059
33061
|
}, [
|
|
33060
|
-
v.value.length > 0 ? (Y(), ge($(
|
|
33062
|
+
v.value.length > 0 ? (Y(), ge($(Fc), {
|
|
33061
33063
|
key: 0,
|
|
33062
33064
|
"tree-data": v.value,
|
|
33063
33065
|
"field-names": a,
|
|
@@ -33500,7 +33502,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33500
33502
|
}, y = () => {
|
|
33501
33503
|
A.value ? r.value = [] : r.value = t.modelList.map((S) => S.modelId), s("model-change", r.value);
|
|
33502
33504
|
};
|
|
33503
|
-
return (S, _) => (Y(), ge(
|
|
33505
|
+
return (S, _) => (Y(), ge(ur, {
|
|
33504
33506
|
visible: n.value,
|
|
33505
33507
|
title: "剖切分析",
|
|
33506
33508
|
direction: "bottom",
|
|
@@ -33513,13 +33515,13 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33513
33515
|
p("div", GP, [
|
|
33514
33516
|
p("div", UP, [
|
|
33515
33517
|
_[6] || (_[6] = p("span", { class: "toggle-label" }, "显示剖切盒", -1)),
|
|
33516
|
-
re($(
|
|
33518
|
+
re($(Oc), {
|
|
33517
33519
|
checked: o.value,
|
|
33518
33520
|
"onUpdate:checked": _[0] || (_[0] = (O) => o.value = O),
|
|
33519
33521
|
onChange: M
|
|
33520
33522
|
}, null, 8, ["checked"])
|
|
33521
33523
|
]),
|
|
33522
|
-
re($(
|
|
33524
|
+
re($(_r), {
|
|
33523
33525
|
value: a.value,
|
|
33524
33526
|
"onUpdate:value": _[1] || (_[1] = (O) => a.value = O),
|
|
33525
33527
|
"button-style": "solid",
|
|
@@ -33536,7 +33538,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33536
33538
|
]),
|
|
33537
33539
|
_: 1
|
|
33538
33540
|
}, 8, ["value"]),
|
|
33539
|
-
re($(
|
|
33541
|
+
re($(_r), {
|
|
33540
33542
|
value: l.value,
|
|
33541
33543
|
"onUpdate:value": _[3] || (_[3] = (O) => l.value = O),
|
|
33542
33544
|
"button-style": "solid",
|
|
@@ -33672,7 +33674,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
33672
33674
|
}), g = fe(() => r.value?.type || l.value), v = (M) => M === void 0 ? "--" : M.toFixed(3), m = () => {
|
|
33673
33675
|
if (o) return;
|
|
33674
33676
|
const M = n?.value;
|
|
33675
|
-
M?.getViewer && (o = new
|
|
33677
|
+
M?.getViewer && (o = new nr({ viewer: M.getViewer(), cesium: M.getCesium() }), o.onMeasure = (D) => {
|
|
33676
33678
|
a || (r.value = D);
|
|
33677
33679
|
});
|
|
33678
33680
|
}, A = (M) => {
|
|
@@ -34275,7 +34277,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34275
34277
|
M && (r(), t.currentModelId ? (o.value = t.currentModelId, h({ modelId: t.currentModelId })) : c.value.length > 0 && (o.value = c.value[0]?.value, h({ modelId: o.value })));
|
|
34276
34278
|
}), te(() => t.currentModelId, (M) => {
|
|
34277
34279
|
M && t.visible && (o.value = M, h({ modelId: M }));
|
|
34278
|
-
}), (M, D) => (Y(), ge(
|
|
34280
|
+
}), (M, D) => (Y(), ge(ur, {
|
|
34279
34281
|
visible: l.value,
|
|
34280
34282
|
title: "CAD图层",
|
|
34281
34283
|
direction: "bottom",
|
|
@@ -34673,7 +34675,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34673
34675
|
},
|
|
34674
34676
|
emits: ["register", "init", "ready"],
|
|
34675
34677
|
setup(i, { expose: e, emit: t }) {
|
|
34676
|
-
const s = H(), n = H(), o = Pa(), a = H(!1), l = H(""), r = H({}), c = H("3d"), { isMobile: u } =
|
|
34678
|
+
const s = H(), n = H(), o = Pa(), a = H(!1), l = H(""), r = H({}), c = H("3d"), { isMobile: u } = lr(), d = i, f = {
|
|
34677
34679
|
title: "构件树",
|
|
34678
34680
|
treeData: []
|
|
34679
34681
|
}, h = H(!1), g = H(!1), v = H(!1), m = H(!1), A = H(!1), C = H(!1), w = H(!1), M = H(!1), D = H(!1), x = H(!1), E = H(!1), B = H(null), {
|
|
@@ -34785,7 +34787,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34785
34787
|
cesiumCssUrl: d.cesiumCssUrl || ws.cesiumCssUrl,
|
|
34786
34788
|
accessToken: d.accessToken || Jd() || ws.accessToken
|
|
34787
34789
|
};
|
|
34788
|
-
await
|
|
34790
|
+
await Gc(q), a.value = !0, ct = async (ne = {}, qe) => {
|
|
34789
34791
|
if (s.value) {
|
|
34790
34792
|
const {
|
|
34791
34793
|
showMenu: Gt,
|
|
@@ -34806,30 +34808,30 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34806
34808
|
collision: wd,
|
|
34807
34809
|
mouseHabit: Ed,
|
|
34808
34810
|
heightBasedZoom: xd,
|
|
34809
|
-
mode:
|
|
34811
|
+
mode: dr,
|
|
34810
34812
|
...Ut
|
|
34811
34813
|
} = ne || {}, Id = d.showMenu !== void 0 ? d.showMenu : Gt !== void 0 ? Gt : !0;
|
|
34812
34814
|
U.value = Id;
|
|
34813
|
-
const at = (de, ze, Pt) => de !== void 0 ? de : ze !== void 0 ? ze : Pt,
|
|
34815
|
+
const at = (de, ze, Pt) => de !== void 0 ? de : ze !== void 0 ? ze : Pt, fr = at(d.globe, Ai, !1), gr = at(d.terrain, Zt, !1), pr = at(d.depthTest, mo, !1), mr = at(d.mapProvider, dd, "tianditu"), Ar = at(d.tiandituLayerType, fd, "img_w"), vr = at(d.tiandituShowLabel, gd, !1), yr = at(d.arcgisUrl, pd, "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"), Cr = at(d.shadows, md, !1), br = at(d.environmentMap, Ad, !1), wr = at(d.ambientOcclusion, vd, !1), Er = at(d.time, yd, void 0), xr = at(d.brightness, Cd, 1), ln = d.mode || dr || "3d";
|
|
34814
34816
|
d.mode, c.value = ln;
|
|
34815
|
-
const Sd = ln === "2d" ? "#000000" : "linear-gradient(0deg, rgb(238, 247, 255) 0%, rgb(178, 218, 244) 70%, rgb(141, 190, 221) 100%)",
|
|
34817
|
+
const Sd = ln === "2d" ? "#000000" : "linear-gradient(0deg, rgb(238, 247, 255) 0%, rgb(178, 218, 244) 70%, rgb(141, 190, 221) 100%)", Ir = at(d.backgroundColor, bd, Sd), Sr = at(d.collision, wd, !1), Mr = at(d.mouseHabit, Ed, 0), Br = at(d.heightBasedZoom, xd, !1);
|
|
34816
34818
|
r.value = {
|
|
34817
|
-
globe:
|
|
34818
|
-
terrain:
|
|
34819
|
-
depthTest:
|
|
34820
|
-
mapProvider:
|
|
34821
|
-
tiandituLayerType:
|
|
34822
|
-
tiandituShowLabel:
|
|
34823
|
-
arcgisUrl:
|
|
34824
|
-
shadows:
|
|
34825
|
-
environmentMap:
|
|
34826
|
-
ambientOcclusion:
|
|
34827
|
-
time:
|
|
34828
|
-
brightness:
|
|
34829
|
-
backgroundColor:
|
|
34830
|
-
collision:
|
|
34831
|
-
mouseHabit:
|
|
34832
|
-
heightBasedZoom:
|
|
34819
|
+
globe: fr,
|
|
34820
|
+
terrain: gr,
|
|
34821
|
+
depthTest: pr,
|
|
34822
|
+
mapProvider: mr,
|
|
34823
|
+
tiandituLayerType: Ar,
|
|
34824
|
+
tiandituShowLabel: vr,
|
|
34825
|
+
arcgisUrl: yr,
|
|
34826
|
+
shadows: Cr,
|
|
34827
|
+
environmentMap: br,
|
|
34828
|
+
ambientOcclusion: wr,
|
|
34829
|
+
time: Er,
|
|
34830
|
+
brightness: xr,
|
|
34831
|
+
backgroundColor: Ir,
|
|
34832
|
+
collision: Sr,
|
|
34833
|
+
mouseHabit: Mr,
|
|
34834
|
+
heightBasedZoom: Br,
|
|
34833
34835
|
useBrowserRecommendedResolution: !0
|
|
34834
34836
|
};
|
|
34835
34837
|
const fs = aI({
|
|
@@ -34853,7 +34855,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34853
34855
|
console.warn("Failed to lazy load tree", ps);
|
|
34854
34856
|
}
|
|
34855
34857
|
ze && (Array.isArray(ze) ? ze : [ze]).forEach((yi) => {
|
|
34856
|
-
yi && !Q.value.find((
|
|
34858
|
+
yi && !Q.value.find((Pr) => Pr.id === yi.id) && (yi.modelId = Pt, Q.value = [...Q.value, yi]);
|
|
34857
34859
|
});
|
|
34858
34860
|
const { brightness: Ao, contrast: vo, saturation: jt } = fs.methods.getConfigure();
|
|
34859
34861
|
fs.methods.setModelColorAdjustment({
|
|
@@ -34906,23 +34908,23 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34906
34908
|
playerModelId: d.playerModelId,
|
|
34907
34909
|
playerScale: d.playerScale,
|
|
34908
34910
|
// Pass resolved configs to InitMap
|
|
34909
|
-
globe:
|
|
34910
|
-
terrain:
|
|
34911
|
-
depthTest:
|
|
34912
|
-
mapProvider:
|
|
34913
|
-
tiandituLayerType:
|
|
34914
|
-
tiandituShowLabel:
|
|
34911
|
+
globe: fr,
|
|
34912
|
+
terrain: gr,
|
|
34913
|
+
depthTest: pr,
|
|
34914
|
+
mapProvider: mr,
|
|
34915
|
+
tiandituLayerType: Ar,
|
|
34916
|
+
tiandituShowLabel: vr,
|
|
34915
34917
|
tiandituToken: d.tiandituToken,
|
|
34916
|
-
arcgisUrl:
|
|
34917
|
-
shadows:
|
|
34918
|
-
environmentMap:
|
|
34919
|
-
ambientOcclusion:
|
|
34920
|
-
time:
|
|
34921
|
-
brightness:
|
|
34922
|
-
backgroundColor:
|
|
34923
|
-
collision:
|
|
34924
|
-
mouseHabit:
|
|
34925
|
-
heightBasedZoom:
|
|
34918
|
+
arcgisUrl: yr,
|
|
34919
|
+
shadows: Cr,
|
|
34920
|
+
environmentMap: br,
|
|
34921
|
+
ambientOcclusion: wr,
|
|
34922
|
+
time: Er,
|
|
34923
|
+
brightness: xr,
|
|
34924
|
+
backgroundColor: Ir,
|
|
34925
|
+
collision: Sr,
|
|
34926
|
+
mouseHabit: Mr,
|
|
34927
|
+
heightBasedZoom: Br
|
|
34926
34928
|
},
|
|
34927
34929
|
callbacks: {
|
|
34928
34930
|
onLoading: (de) => de ? be.loading(de, "", n.value) : be.close(),
|
|
@@ -34999,8 +35001,8 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
34999
35001
|
}, vi.ScreenSpaceEventType.RIGHT_CLICK), De.addContextMenuItems = L, De.insertContextMenu = De.addContextMenuItems, De.removeContextMenuItems = b, De.deleteContextMenu = De.removeContextMenuItems, De.closeContextMenu = N, De.hideContextMenu = De.closeContextMenu, De.onSetTeleportTarget = (de) => {
|
|
35000
35002
|
X.value = de;
|
|
35001
35003
|
}, await ci();
|
|
35002
|
-
const
|
|
35003
|
-
|
|
35004
|
+
const Tr = ne?.onLoaded || ne?.onloaded;
|
|
35005
|
+
Tr && Tr({ Cesium: vi, viewer: Ri, methods: cn }), tt("init", { Cesium: vi, viewer: Ri, methods: cn }), tt("ready", { Cesium: vi, viewer: Ri, methods: cn });
|
|
35004
35006
|
}
|
|
35005
35007
|
};
|
|
35006
35008
|
let j = !1;
|
|
@@ -35028,7 +35030,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
|
|
|
35028
35030
|
size: "large",
|
|
35029
35031
|
tip: "加载基础组件中..."
|
|
35030
35032
|
})) : ae("", !0),
|
|
35031
|
-
l.value ? (Y(), ge($(
|
|
35033
|
+
l.value ? (Y(), ge($(Rc), {
|
|
35032
35034
|
key: 1,
|
|
35033
35035
|
class: "error",
|
|
35034
35036
|
type: "error",
|
|
@@ -35483,7 +35485,7 @@ function b_(i = {}) {
|
|
|
35483
35485
|
}
|
|
35484
35486
|
};
|
|
35485
35487
|
}
|
|
35486
|
-
const
|
|
35488
|
+
const hr = {
|
|
35487
35489
|
enableFpsLimit: !0,
|
|
35488
35490
|
targetFps: 30,
|
|
35489
35491
|
enableResolutionScale: !0,
|
|
@@ -35501,7 +35503,7 @@ const ur = {
|
|
|
35501
35503
|
debounceDelay: 100
|
|
35502
35504
|
};
|
|
35503
35505
|
function w_(i = {}) {
|
|
35504
|
-
const e = { ...
|
|
35506
|
+
const e = { ...hr, ...i };
|
|
35505
35507
|
return {
|
|
35506
35508
|
requestRenderMode: e.enableFpsLimit,
|
|
35507
35509
|
maximumRenderTimeChange: e.enableFpsLimit ? 1e3 / e.targetFps : void 0,
|
|
@@ -35510,7 +35512,7 @@ function w_(i = {}) {
|
|
|
35510
35512
|
};
|
|
35511
35513
|
}
|
|
35512
35514
|
function E_(i = {}) {
|
|
35513
|
-
const e = { ...
|
|
35515
|
+
const e = { ...hr, ...i };
|
|
35514
35516
|
return {
|
|
35515
35517
|
resolutionScale: e.enableResolutionScale ? e.resolutionScale : 1,
|
|
35516
35518
|
targetFrameRate: e.enableFpsLimit ? e.targetFps : void 0,
|
|
@@ -35528,7 +35530,7 @@ function E_(i = {}) {
|
|
|
35528
35530
|
};
|
|
35529
35531
|
}
|
|
35530
35532
|
function x_(i = {}) {
|
|
35531
|
-
const e = { ...
|
|
35533
|
+
const e = { ...hr, ...i }, s = {
|
|
35532
35534
|
low: {
|
|
35533
35535
|
maximumScreenSpaceError: 64,
|
|
35534
35536
|
skipScreenSpaceErrorFactor: 256,
|
|
@@ -35663,7 +35665,7 @@ const u_ = ws, P_ = {
|
|
|
35663
35665
|
if (i.component("LeitingBIM", l_), i.component("LeitingTree", cd), i.component("LeitingDraggableCard", Et), i.component("leiting-draggable-card", Et), i.component("LeitingMenu", xa), i.component("leiting-menu", xa), i.component("LeitingSection", Ia), i.component("leiting-section", Ia), i.component("LeitingPlayer", Sa), i.component("leiting-player", Sa), i.component("LeitingInfo", Ma), i.component("leiting-info", Ma), i.component("LeitingPosition", Ba), i.component("leiting-position", Ba), i.component("LeitingSetting", Ta), i.component("leiting-setting", Ta), !e)
|
|
35664
35666
|
return;
|
|
35665
35667
|
const t = { ...u_, ...e };
|
|
35666
|
-
t.cesiumUrl &&
|
|
35668
|
+
t.cesiumUrl && Gc(t).catch((s) => {
|
|
35667
35669
|
console.error("[LeitingBim] Failed to load Cesium resources:", s);
|
|
35668
35670
|
}), i.config.globalProperties.$leitingBimOptions = t;
|
|
35669
35671
|
}
|
|
@@ -35677,7 +35679,7 @@ export {
|
|
|
35677
35679
|
S_ as F,
|
|
35678
35680
|
M_ as G,
|
|
35679
35681
|
B_ as H,
|
|
35680
|
-
|
|
35682
|
+
hr as I,
|
|
35681
35683
|
w_ as J,
|
|
35682
35684
|
E_ as K,
|
|
35683
35685
|
l_ as L,
|
|
@@ -35694,8 +35696,8 @@ export {
|
|
|
35694
35696
|
Ta as h,
|
|
35695
35697
|
P_ as i,
|
|
35696
35698
|
Jd as j,
|
|
35697
|
-
|
|
35698
|
-
|
|
35699
|
+
ur as k,
|
|
35700
|
+
Gc as l,
|
|
35699
35701
|
tP as m,
|
|
35700
35702
|
FP as n,
|
|
35701
35703
|
KP as o,
|
|
@@ -35705,7 +35707,7 @@ export {
|
|
|
35705
35707
|
CI as s,
|
|
35706
35708
|
B3 as t,
|
|
35707
35709
|
T_ as u,
|
|
35708
|
-
|
|
35710
|
+
lr as v,
|
|
35709
35711
|
p_ as w,
|
|
35710
35712
|
m_ as x,
|
|
35711
35713
|
A_ as y,
|