leiting-bim 2.2.11 → 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 Lc, Input as _a, Tree as Rc, Slider as Xi, Spin as ka, Collapse as Nd, CollapsePanel as Qd, Descriptions as Hd, DescriptionsItem as Yd, Radio as Pr, Select as ns, Switch as Fc, DatePicker as zd, SelectOption as Oi, RadioGroup as Dr, RadioButton as un, Button as yo, CheckboxGroup as Wd, Checkbox as Vd } from "ant-design-vue";
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 Oc(i) {
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();
@@ -122,7 +122,7 @@ class Zd {
122
122
  <img src="${n}" style="max-width:90%; max-height:90%; border:2px solid #fff; box-shadow:0 0 10px rgba(0,0,0,0.5);"/>
123
123
  </body>
124
124
  </html>
125
- `), o.document.close()) : (console.warn("viewBase64Image: Failed to open new window. Please check popup blocker."), console.log("Snapshot DataURL:", n));
125
+ `), o.document.close()) : console.warn("viewBase64Image: Failed to open new window. Please check popup blocker.");
126
126
  }
127
127
  // 调整 3D Tiles 模型亮度
128
128
  updateModelEffect(e) {
@@ -160,7 +160,7 @@ class Zd {
160
160
  }
161
161
  }
162
162
  }
163
- var Gc = typeof global == "object" && global && global.Object === Object && global, ef = typeof self == "object" && self && self.Object === Object && self, ki = Gc || ef || Function("return this")(), Fn = ki.Symbol, Uc = Object.prototype, tf = Uc.hasOwnProperty, sf = Uc.toString, vs = Fn ? Fn.toStringTag : void 0;
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]", _r = Fn ? Fn.toStringTag : void 0;
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 : _r && _r in Object(i) ? nf(i) : rf(i);
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 kr = NaN, mf = /^[-+]0x[0-9a-f]+$/i, Af = /^0b[01]+$/i, vf = /^0o[0-7]+$/i, yf = parseInt;
204
- function Lr(i) {
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 kr;
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) ? kr : +i;
217
+ return t || vf.test(i) ? yf(i.slice(2), t ? 2 : 8) : mf.test(i) ? Lr : +i;
218
218
  }
219
- function Nc(i) {
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__"], Rr = (function() {
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 !!Rr && Rr in i;
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 Fr = Object.create, Of = /* @__PURE__ */ (function() {
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 (Fr)
273
- return Fr(e);
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
- } : Nc, Vf = Yf(Wf), jf = 9007199254740991, $f = /^(?:0|[1-9]\d*)$/;
330
- function Qc(i, e) {
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 Or = Math.max;
359
+ var Gr = Math.max;
360
360
  function Zf(i, e, t) {
361
- return e = Or(e === void 0 ? i.length - 1 : e, 0), function() {
362
- for (var s = arguments, n = -1, o = Or(s.length - e, 0), a = Array(o); ++n < 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, Nc), i + "");
371
+ return Vf(Zf(i, e, Qc), i + "");
372
372
  }
373
373
  var tg = 9007199254740991;
374
- function Hc(i) {
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 && Hc(i.length) && !La(i);
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) && Qc(e, t.length) : s == "string" && e in t) ? ao(t[e], i) : !1;
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 Yc(i) {
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 Gr(i) {
407
+ function Ur(i) {
408
408
  return ls(i) && js(i) == ag;
409
409
  }
410
- var zc = Object.prototype, rg = zc.hasOwnProperty, lg = zc.propertyIsEnumerable, Jo = Gr(/* @__PURE__ */ (function() {
410
+ var Wc = Object.prototype, rg = Wc.hasOwnProperty, lg = Wc.propertyIsEnumerable, Jo = Ur(/* @__PURE__ */ (function() {
411
411
  return arguments;
412
- })()) ? Gr : function(i) {
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 Wc = typeof exports == "object" && exports && !exports.nodeType && exports, Ur = Wc && typeof module == "object" && module && !module.nodeType && module, ug = Ur && Ur.exports === Wc, Nr = ug ? ki.Buffer : void 0, hg = Nr ? Nr.isBuffer : void 0, Vc = 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 = {};
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) && Hc(i.length) && !!Re[js(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 jc = typeof exports == "object" && exports && !exports.nodeType && exports, Ms = jc && typeof module == "object" && module && !module.nodeType && module, Gg = Ms && Ms.exports === jc, bo = Gg && Gc.process, Qr = (function() {
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
- })(), Hr = Qr && Qr.isTypedArray, $c = Hr ? Og(Hr) : Fg;
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 && Vc(i), o = !t && !s && !n && $c(i), a = t || s || n || o, l = a ? og(i.length, String) : [], r = l.length;
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
- Qc(c, r)) || l.push(c);
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 = Yc(i), t = [];
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 Kc(i) {
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 qc = Ra(ki, "Map");
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 (qc || Xt)(),
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 Xc = Ng(Object.getPrototypeOf, Object), pp = "[object Object]", mp = Function.prototype, Ap = Object.prototype, Jc = mp.toString, vp = Ap.hasOwnProperty, yp = Jc.call(Object);
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 = Xc(i);
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 && Jc.call(t) == yp;
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 (!qc || s.length < Ip - 1)
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 Zc = typeof exports == "object" && exports && !exports.nodeType && exports, Yr = Zc && typeof module == "object" && module && !module.nodeType && module, Mp = Yr && Yr.exports === Zc, zr = Mp ? ki.Buffer : void 0;
635
- zr && zr.allocUnsafe;
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 Wr = ki.Uint8Array;
639
+ var Vr = ki.Uint8Array;
640
640
  function Tp(i) {
641
641
  var e = new i.constructor(i.byteLength);
642
- return new Wr(e).set(new Wr(i)), e;
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" && !Yc(i) ? Of(Xc(i)) : {};
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 = Lr(e) || 0, zt(t) && (u = !!t.leading, d = "maxWait" in t, o = d ? Rp(Lr(t.maxWait) || 0, e) : o, f = "trailing" in t ? !!t.trailing : f);
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, Kc(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 && Vc(r), g = !f && !h && $c(r);
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 eu(i, e, t, s, n) {
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, eu, s, n);
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
- }, Kc);
745
+ }, qc);
746
746
  }
747
747
  var Np = sg(function(i, e, t) {
748
- eu(i, e, t);
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, Vr = 9, Hp = 0, Yp = 99, zp = 67324752, tu = 134695760, Wp = tu, jr = 33639248, Vp = 101010256, $r = 101075792, jp = 117853008, Ui = 22, Eo = 20, xo = 56, $p = 12, Kp = 20, Kr = 4, qp = 1, Xp = 39169, Jp = 10, Zp = 1, em = 21589, tm = 28789, im = 25461, sm = 6534, nm = 30837, om = 30805, qr = 1, am = 6, Xr = 8, Jr = 2048, rm = 16, lm = 1, cm = 2, um = 4, hm = 32, Zr = 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 iu = 2;
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 && (iu = 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: iu,
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
- }, su = Object.assign({}, bm);
817
+ }, nu = Object.assign({}, bm);
818
818
  function wm() {
819
- return su;
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 && (su[i] = e);
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 nu = [];
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
- nu[i] = e;
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 ^ nu[(t ^ e[s]) & 255];
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 ou extends TransformStream {
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
- }, au = {};
988
- au.sha1 = class {
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 ru = {};
1073
- ru.aes = class {
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
- }, lu = {};
1172
- lu.ctrGladman = class {
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 = au.sha1, s = [[], []];
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, cu = "Invalid password", uu = "Invalid signature", Ga = "zipjs-abort-check-password";
1260
- function hu(i) {
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", du = { name: "PBKDF2" }, Tm = { name: "HMAC" }, Pm = "SHA-1", Dm = Object.assign({ hash: Tm }, du), sa = Object.assign({ iterations: 1e3, hash: { name: Pm } }, du), _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, fu = uo && typeof $s != hi, Ht = Nn.bytes, Lm = ru.aes, Rm = lu.ctrGladman, Fm = Ti.hmacSha1;
1264
- let el = uo && fu && typeof $s.importKey == Li, tl = uo && fu && typeof $s.deriveBits == Li;
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: mu(e, t),
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(gu(r, a, h, 0, si, !0));
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(uu);
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: mu(e, t),
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(gu(l, o, h, f.length, 0));
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 gu(i, e, t, s, n, o) {
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 pu(i, e, t, St(s, 0, Gs[e])), o = St(s, Gs[e]);
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(cu);
1381
+ throw new Error(uu);
1382
1382
  }
1383
1383
  async function Nm(i, e, t) {
1384
- const s = hu(new Uint8Array(Gs[e])), n = await pu(i, e, t, 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 pu(i, e, t, s) {
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 (el)
1401
+ if (tl)
1402
1402
  try {
1403
1403
  return await $s.importKey(i, e, t, s, n);
1404
1404
  } catch {
1405
- return el = !1, Ti.importKey(e);
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 (tl)
1411
+ if (il)
1412
1412
  try {
1413
1413
  return await $s.deriveBits(i, e, t);
1414
1414
  } catch {
1415
- return tl = !1, Ti.pbkdf2(e, i.salt, sa.iterations, t);
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 mu(i, e) {
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
- }), Au(this, e);
1451
+ }), vu(this, e);
1452
1452
  },
1453
1453
  transform(n, o) {
1454
1454
  const a = this;
1455
1455
  if (a.password) {
1456
- const l = il(a, n.subarray(0, Bs));
1456
+ const l = sl(a, n.subarray(0, Bs));
1457
1457
  if (a.password = null, l.at(-1) != a.passwordVerification)
1458
- throw new Error(cu);
1458
+ throw new Error(uu);
1459
1459
  n = n.subarray(Bs);
1460
1460
  }
1461
- s ? o.error(new Error(Ga)) : o.enqueue(il(a, n));
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
- }), Au(this, e);
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 = hu(new Uint8Array(Bs));
1481
- r[Bs - 1] = o.passwordVerification, a = new Uint8Array(s.length + r.length), a.set(sl(o, r), 0), l = Bs;
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(sl(o, s), l), n.enqueue(a);
1484
+ a.set(nl(o, s), l), n.enqueue(a);
1485
1485
  }
1486
1486
  });
1487
1487
  }
1488
1488
  }
1489
- function il(i, e) {
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] = vu(i) ^ e[s], Na(i, t[s]);
1492
+ t[s] = yu(i) ^ e[s], Na(i, t[s]);
1493
1493
  return t;
1494
1494
  }
1495
- function sl(i, e) {
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] = vu(i) ^ e[s], Na(i, e[s]);
1498
+ t[s] = yu(i) ^ e[s], Na(i, e[s]);
1499
1499
  return t;
1500
1500
  }
1501
- function Au(i, e) {
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 = nl(Math.imul(nl(s + yu(t)), 134775813) + 1), i.crcKey2.append([s >>> 24]), n = ~i.crcKey2.get(), i.keys = [t, s, n];
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 vu(i) {
1515
+ function yu(i) {
1516
1516
  const e = i.keys[2] | 2;
1517
- return yu(Math.imul(e, e ^ 1) >>> 8);
1517
+ return Cu(Math.imul(e, e ^ 1) >>> 8);
1518
1518
  }
1519
- function yu(i) {
1519
+ function Cu(i) {
1520
1520
  return i & 255;
1521
1521
  }
1522
- function nl(i) {
1522
+ function ol(i) {
1523
1523
  return i & 4294967295;
1524
1524
  }
1525
- const Cu = "Invalid uncompressed size", Vm = "deflate-raw", jm = "deflate64-raw";
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 ou(), g = Yt(g, f)), o && (g = wu(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))), bu(d, g, () => {
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 = wu(g, u, { chunkSize: t, deflate64: d }, n, s, n)), (!a || o) && l && (f = new ou(), g = Yt(g, f)), bu(this, 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(uu);
1546
+ throw new Error(hu);
1547
1547
  }
1548
1548
  });
1549
1549
  }
1550
1550
  }
1551
- function bu(i, e, t) {
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 wu(i, e, t, s, n, o) {
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", ol = "data", Zm = "ack", al = "close", e0 = "deflate", Eu = "inflate";
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(Eu) && (o = Km), s.outputSize = 0;
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(Cu);
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 xu = typeof Worker != hi, Iu = () => {
1633
+ let Iu = typeof Worker != hi, Su = () => {
1634
1634
  };
1635
1635
  function s0({ initModule: i }) {
1636
- Iu = i;
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 && xu ? o0 : Su)(e, o);
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 Su(i, e) {
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 xu = !1, Su(i, e);
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 Iu(n);
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 rl = !0;
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 && rl ? (a && r.push(a), l && r.push(l)) : i.readable = i.writable = null, r.length)
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
- rl = !1, i.readable = i.writable = null, e.postMessage(i);
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: ol, value: h, done: g, messageId: n }, e);
1820
+ bn({ type: al, value: h, done: g, messageId: n }, e);
1821
1821
  }
1822
- t == ol && (await r.ready, await r.write(new Uint8Array(s)), bn({ type: Zm, messageId: n }, e)), t == al && f(null, o);
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: al, messageId: n }, e), f(h);
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 ll = 0;
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 cl(v), new Bo(v, i, e, g);
1842
+ return ul(v), new Bo(v, i, e, g);
1843
1843
  if (Ei.length < d) {
1844
- const m = { indexWorker: ll };
1845
- return ll++, Ei.push(m), new Bo(m, i, e, g);
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 ? (cl(v), d0(v, e)) : Ei = Ei.filter((m) => m != v);
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 cl(i) {
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, Mu = "writable";
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 Bu extends Qa {
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 Bu {
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, Mu, {
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 Bu {
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 ul extends Qa {
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, Mu, {
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 ul(e)), e instanceof WritableStream && (e = {
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 ul || Object.assign(e, {
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 Tu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), b0 = Tu.length == 256;
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 += Tu[i[t]];
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 Pu = "filename", Du = "rawFilename", _u = "comment", ku = "rawComment", Lu = "uncompressedSize", Ru = "compressedSize", Fu = "offset", Ou = "diskNumberStart", na = "lastModDate", oa = "rawLastModDate", Gu = "lastAccessDate", E0 = "rawLastAccessDate", Uu = "creationDate", Nu = "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 = [
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
- Lu,
2065
+ _u,
2067
2066
  Ru,
2067
+ Fu,
2068
2068
  na,
2069
2069
  oa,
2070
- _u,
2071
2070
  ku,
2072
- Gu,
2071
+ Lu,
2073
2072
  Uu,
2074
2073
  Nu,
2075
- Fu,
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 hl {
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", dl = "Compression method not supported", fl = "Split zip file", BA = "Overlapping entry found", gl = "utf-8", TA = "UTF8", pl = "cp437", PA = [
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, Nt]
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(_) == tu ? new Error(fl) : new Error(bA);
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) != $r && r != R) {
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) != $r)
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(fl);
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) != jr && r != S) {
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) != jr)
2191
+ if (Fe(M, C) != $r)
2192
2192
  throw new Error(EA);
2193
- Qu(_, M, C + 6);
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 ? gl : x || pl, Be = U ? gl : E || pl;
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), Hu(_, _, M, C + 6);
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 & Zr) == Io, ne = (Ke & Zr) == Io;
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 hl(_);
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 hl(_));
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(dl);
2295
- if (d != Hp && d != Qp && d != Vr && !B)
2296
- throw new Error(dl);
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
- Qu(w, D, 4);
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(), Hu(o, w, D, 4, !0), Object.assign(t, { lastAccessDate: _, creationDate: O });
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 == Vr;
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: Eu,
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(Cu);
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 Qu(i, e, t) {
2380
- const s = i.rawBitFlag = Ze(e, t + 2), n = (s & qr) == qr, o = Fe(e, t + 6);
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 & Xr) == Xr,
2387
- languageEncodingFlag: (s & Jr) == Jr
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 Hu(i, e, t, s, n) {
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 && (ml(d, Pu, Du, e, i), e.extraFieldUnicodePath = d);
2417
+ d && (Al(d, Du, _u, e, i), e.extraFieldUnicodePath = d);
2418
2418
  const f = a.get(im);
2419
- f && (ml(f, _u, ku, e, i), e.extraFieldUnicodeComment = 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
- Al(v, e, !1), e.extraFieldUnix = v;
2426
+ vl(v, e, !1), e.extraFieldUnix = v;
2427
2427
  else {
2428
2428
  const C = a.get(nm);
2429
- C && (Al(C, e, !0), e.extraFieldInfoZip = 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 ml(i, e, t, s, n) {
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 Al(i, e, t) {
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 = vl(l), c = ri(s, n++), u = i.data.subarray(n, n + c);
2500
+ const r = yl(l), c = ri(s, n++), u = i.data.subarray(n, n + c);
2501
2501
  n += c;
2502
- const d = vl(u);
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 vl(i) {
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(Gu), a.push(E0)), (n & 4) == 4 && (o.push(Uu), a.push(Nu))) : i.data.length >= 5 && (o.push(na), a.push(oa));
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 + Kr, s);
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 += Kr);
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 Yu(i, e, t = {}) {
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 Yu(!0, e, t);
2735
+ return zu(!0, e, t);
2736
2736
  }
2737
2737
  }
2738
2738
  class zA {
2739
2739
  constructor(e = "deflate", t) {
2740
- return Yu(!1, e, t);
2740
+ return zu(!1, e, t);
2741
2741
  }
2742
2742
  }
2743
- let yl = !1;
2743
+ let Cl = !1;
2744
2744
  async function WA(i, { baseURI: e }) {
2745
- if (!yl) {
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), yl = !0;
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", zu = ["E84#E3C4!8C4&A1123*@!"];
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 Wu = "35aa3175ce8b1a55331e.64c93d5e3268979d98c900", aa = /* @__PURE__ */ new Map();
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 Vu(i, e) {
4445
+ async function Ya(i, e) {
4446
4446
  if (i)
4447
4447
  try {
4448
4448
  let t = null;
@@ -4471,7 +4471,7 @@ async function Vu(i, e) {
4471
4471
  backgroundRepeat: "no-repeat",
4472
4472
  backgroundPosition: "center"
4473
4473
  });
4474
- await n.create(), aa.set(t, n), console.log("水印已添加");
4474
+ await n.create(), aa.set(t, n);
4475
4475
  } catch (t) {
4476
4476
  console.error("添加水印出错:", t);
4477
4477
  }
@@ -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 Vu(r.asset.watermark, this.viewer?.container), zu.includes(this.watermarkEnabled) && Hn(this.viewer?.container);
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 Cl(i) {
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 bl(i) {
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 = Cl(t), n = [];
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 = bl(
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 = Cl(n), a = t?.isTrigger ?? !0;
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 = bl(n), c = Ro({ r: o, g: a, b: l, a: 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
  // 合并新旧上色并按等级覆盖
@@ -6669,7 +6669,7 @@ class av {
6669
6669
  backFaceCulling: !1
6670
6670
  }), s = () => {
6671
6671
  if (e && e.length > 0) {
6672
- console.log("Model has animations:", e.length);
6672
+ e.length;
6673
6673
  try {
6674
6674
  t.activeAnimations.add({
6675
6675
  index: 0,
@@ -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: Wu, useWebWorkers: !1 }), a = (await n.getEntries()).find(
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, wl = 6378137, hv = 6356752314e-3, El = 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 = {};
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 xl = /[\s_\-\/\(\)]/g;
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(xl, ""), n = -1, o, a; ++n < t.length; )
7319
- if (o = t[n], a = o.toLowerCase().replace(xl, ""), a === s)
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, Ya = -1, bv = /\s/, wv = /[A-Za-z]/, Ev = /[A-Za-z84_]/, fo = /[,\]]/, Zu = /[\d\.E\-\+]/;
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 Ya:
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 = Ya);
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 === Ya)
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 Il(i) {
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 Sl(i) {
7845
+ function Ml(i) {
7846
7846
  return typeof i == "object" ? i.value * i.unit.conversion_factor : i;
7847
7847
  }
7848
- function Ml(i, e) {
7849
- i.ellipsoid.radius ? (e.a = i.ellipsoid.radius, e.rf = 0) : (e.a = Sl(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 - Sl(i.ellipsoid.semi_minor_axis))));
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, Ml(s, e)), s.prime_meridian && (e.from_greenwich = s.prime_meridian.longitude * Math.PI / 180);
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, Ml(s, e);
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 } = Il(s.unit);
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 } = Il(s.axis[0].unit);
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
  }
@@ -8030,7 +8030,7 @@ function st(i) {
8030
8030
  if (typeof i == "string") {
8031
8031
  if (i in st)
8032
8032
  return st[i];
8033
- } else "EPSG" in i ? st["EPSG:" + i.EPSG] = i : "ESRI" in i ? st["ESRI:" + i.ESRI] = i : "IAU2000" in i ? st["IAU2000:" + i.IAU2000] = i : console.log(i);
8033
+ } else "EPSG" in i ? st["EPSG:" + i.EPSG] = i : "ESRI" in i ? st["ESRI:" + i.ESRI] = i : "IAU2000" in i && (st["IAU2000:" + i.IAU2000] = i);
8034
8034
  return;
8035
8035
  }
8036
8036
  }
@@ -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 Bl(i, e) {
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 Tl(i) {
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: Tl,
8153
- inverse: Tl,
8152
+ forward: Pl,
8153
+ inverse: Pl,
8154
8154
  names: ih
8155
8155
  };
8156
8156
  var zv = [Qv, Yv], bi = {}, ji = [];
@@ -8158,7 +8158,7 @@ function sh(i, e) {
8158
8158
  var t = ji.length;
8159
8159
  return i.names ? (ji[t] = i, i.names.forEach(function(s) {
8160
8160
  bi[s.toLowerCase()] = t;
8161
- }), this) : (console.log(e), !0);
8161
+ }), this) : !0;
8162
8162
  }
8163
8163
  function nh(i) {
8164
8164
  return i.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
@@ -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 za = {};
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 za[i] = r, r;
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(Pl), u = [o.fileDirectory.ModelPixelScale[0], o.fileDirectory.ModelPixelScale[1]].map(Pl), d = c[0] + (r[0] - 1) * u[0], f = c[3] - (r[1] - 1) * u[1], h = l[0], g = l[1], v = [];
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 za[i] = A, A;
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: za[i] || null,
9752
+ grid: Wa[i] || null,
9753
9753
  isNull: !1
9754
9754
  };
9755
9755
  }
9756
- function Pl(i) {
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
- Bl(this, t), Bl(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);
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,24 +9944,24 @@ 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 = Dl(i, !1, t);
9947
+ var o = _l(i, !1, t);
9948
9948
  if (o !== 0)
9949
9949
  return;
9950
- s = wl, n = El;
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 = wl, l = hv, r = El), n === r && s === a && !hn(i.datum_type) && !hn(e.datum_type))
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 = Dl(e, !0, t);
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 Dl(i, e, t) {
9962
+ function _l(i, e, t) {
9963
9963
  if (i.grids === null || i.grids.length === 0)
9964
- return console.log("Grid shift grids not found"), -1;
9964
+ return -1;
9965
9965
  var s = { x: -t.x, y: t.y }, n = { x: Number.NaN, y: Number.NaN }, o = [];
9966
9966
  e:
9967
9967
  for (var a = 0; a < i.grids.length; a++) {
@@ -9972,7 +9972,7 @@ function Dl(i, e, t) {
9972
9972
  }
9973
9973
  if (l.grid === null) {
9974
9974
  if (l.mandatory)
9975
- return console.log("Unable to find mandatory grid '" + l.name + "'"), -1;
9975
+ return "" + l.name, -1;
9976
9976
  continue;
9977
9977
  }
9978
9978
  for (var r = l.grid.subgrids, c = 0, u = r.length; c < u; c++) {
@@ -9981,7 +9981,7 @@ function Dl(i, e, t) {
9981
9981
  break e;
9982
9982
  }
9983
9983
  }
9984
- return isNaN(n.x) ? (console.log("Failed to find a grid shift table for location '" + -s.x * mt + " " + s.y * mt + " tried: '" + o + "'"), -1) : (t.x = -n.x, t.y = n.y, 0);
9984
+ return isNaN(n.x) ? ("" + -s.x * mt + s.y * mt + o, -1) : (t.x = -n.x, t.y = n.y, 0);
9985
9985
  }
9986
9986
  function gy(i, e, t) {
9987
9987
  var s = { x: Number.NaN, y: Number.NaN };
@@ -9989,27 +9989,25 @@ 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 = _l(n, t);
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 = _l(o, t), isNaN(c.x)) {
10000
- console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
9999
+ if (c = kl(o, t), isNaN(c.x))
10001
10000
  break;
10002
- }
10003
10001
  r = { x: n.x - (c.x + o.x), y: n.y - (c.y + o.y) }, o.x += r.x, o.y += r.y;
10004
10002
  } while (a-- && Math.abs(r.x) > l && Math.abs(r.y) > l);
10005
10003
  if (a < 0)
10006
- return console.log("Inverse grid shift iterator failed to converge."), s;
10004
+ return s;
10007
10005
  s.x = se(o.x + t.ll[0]), s.y = o.y + t.ll[1];
10008
10006
  } else
10009
10007
  isNaN(o.x) || (s.x = i.x + o.x, s.y = i.y + o.y);
10010
10008
  return s;
10011
10009
  }
10012
- function _l(i, e) {
10010
+ function kl(i, e) {
10013
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;
10014
10012
  if (s.x < 0 || s.x >= e.lim[0] || s.y < 0 || s.y >= e.lim[1])
10015
10013
  return o;
@@ -10023,7 +10021,7 @@ function _l(i, e) {
10023
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;
10024
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;
10025
10023
  }
10026
- function kl(i, e, t) {
10024
+ function Ll(i, e, t) {
10027
10025
  var s = t.x, n = t.y, o = t.z || 0, a, l, r, c = {};
10028
10026
  for (r = 0; r < 3; r++)
10029
10027
  if (!(e && r === 2 && t.z === void 0))
@@ -10059,9 +10057,9 @@ function lh(i) {
10059
10057
  return i.length > 2 && (e.z = i[2]), i.length > 3 && (e.m = i[3]), e;
10060
10058
  }
10061
10059
  function py(i) {
10062
- Ll(i.x), Ll(i.y);
10060
+ Rl(i.x), Rl(i.y);
10063
10061
  }
10064
- function Ll(i) {
10062
+ function Rl(i) {
10065
10063
  if (typeof Number.isFinite == "function") {
10066
10064
  if (Number.isFinite(i))
10067
10065
  return;
@@ -10082,7 +10080,7 @@ function Vn(i, e, t, s) {
10082
10080
  m: t.m
10083
10081
  };
10084
10082
  var o = t.z !== void 0;
10085
- 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 = kl(i, !1, t)), i.projName === "longlat")
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")
10086
10084
  t = {
10087
10085
  x: t.x * Ye,
10088
10086
  y: t.y * Ye,
@@ -10108,9 +10106,9 @@ function Vn(i, e, t, s) {
10108
10106
  x: t.x / e.to_meter,
10109
10107
  y: t.y / e.to_meter,
10110
10108
  z: t.z || 0
10111
- })), s && e.axis !== "enu" ? kl(e, !0, t) : (t && !o && delete t.z, t);
10109
+ })), s && e.axis !== "enu" ? Ll(e, !0, t) : (t && !o && delete t.z, t);
10112
10110
  }
10113
- var Rl = Mt("WGS84");
10111
+ var Fl = Mt("WGS84");
10114
10112
  function Uo(i, e, t, s) {
10115
10113
  var n, o, a;
10116
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" ? (
@@ -10143,10 +10141,10 @@ function dn(i) {
10143
10141
  }
10144
10142
  function Ay(i, e, t) {
10145
10143
  var s, n, o = !1, a;
10146
- return typeof e > "u" ? (n = dn(i), s = Rl, o = !0) : (typeof /** @type {?} */
10144
+ return typeof e > "u" ? (n = dn(i), s = Fl, o = !0) : (typeof /** @type {?} */
10147
10145
  e.x < "u" || Array.isArray(e)) && (t = /** @type {T} */
10148
10146
  /** @type {?} */
10149
- e, n = dn(i), s = Rl, o = !0), s || (s = dn(i)), n || (n = dn(
10147
+ e, n = dn(i), s = Fl, o = !0), s || (s = dn(i)), n || (n = dn(
10150
10148
  /** @type {string | PROJJSONDefinition | proj } */
10151
10149
  e
10152
10150
  )), t ? Uo(s, n, t) : (a = {
@@ -10170,7 +10168,7 @@ function Ay(i, e, t) {
10170
10168
  }
10171
10169
  }, o && (a.oProj = n), a);
10172
10170
  }
10173
- var Fl = 6, ch = "AJSAJS", uh = "AFAFAF", $i = 65, ft = 73, It = 79, Es = 86, xs = 90;
10171
+ var Ol = 6, ch = "AJSAJS", uh = "AFAFAF", $i = 65, ft = 73, It = 79, Es = 86, xs = 90;
10174
10172
  const vy = {
10175
10173
  forward: hh,
10176
10174
  inverse: yy,
@@ -10183,17 +10181,17 @@ function hh(i, e) {
10183
10181
  }), e);
10184
10182
  }
10185
10183
  function yy(i) {
10186
- var e = Wa(gh(i.toUpperCase()));
10184
+ var e = Va(gh(i.toUpperCase()));
10187
10185
  return e.lat && e.lon ? [e.lon, e.lat, e.lon, e.lat] : [e.left, e.bottom, e.right, e.top];
10188
10186
  }
10189
10187
  function dh(i) {
10190
- var e = Wa(gh(i.toUpperCase()));
10188
+ var e = Va(gh(i.toUpperCase()));
10191
10189
  return e.lat && e.lon ? [e.lon, e.lat] : [(e.left + e.right) / 2, (e.top + e.bottom) / 2];
10192
10190
  }
10193
10191
  function No(i) {
10194
10192
  return i * (Math.PI / 180);
10195
10193
  }
10196
- function Ol(i) {
10194
+ function Gl(i) {
10197
10195
  return 180 * (i / Math.PI);
10198
10196
  }
10199
10197
  function Cy(i) {
@@ -10207,19 +10205,19 @@ function Cy(i) {
10207
10205
  zoneLetter: by(e)
10208
10206
  };
10209
10207
  }
10210
- function Wa(i) {
10208
+ function Va(i) {
10211
10209
  var e = i.northing, t = i.easting, s = i.zoneLetter, n = i.zoneNumber;
10212
10210
  if (n < 0 || n > 60)
10213
10211
  return null;
10214
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;
10215
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);
10216
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);
10217
- D = Ol(D);
10215
+ D = Gl(D);
10218
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);
10219
- x = m + Ol(x);
10217
+ x = m + Gl(x);
10220
10218
  var E;
10221
10219
  if (i.accuracy) {
10222
- var B = Wa({
10220
+ var B = Va({
10223
10221
  northing: i.northing + i.accuracy,
10224
10222
  easting: i.easting + i.accuracy,
10225
10223
  zoneLetter: i.zoneLetter,
@@ -10251,8 +10249,8 @@ function Ey(i, e, t) {
10251
10249
  return xy(n, o, s);
10252
10250
  }
10253
10251
  function fh(i) {
10254
- var e = i % Fl;
10255
- return e === 0 && (e = Fl), e;
10252
+ var e = i % Ol;
10253
+ return e === 0 && (e = Ol), e;
10256
10254
  }
10257
10255
  function xy(i, e, t) {
10258
10256
  var s = t - 1, n = ch.charCodeAt(s), o = uh.charCodeAt(s), a = n + i - 1, l = o + e, r = !1;
@@ -10406,10 +10404,10 @@ os.fromMGRS = function(i) {
10406
10404
  os.prototype.toMGRS = function(i) {
10407
10405
  return hh([this.x, this.y], i);
10408
10406
  };
10409
- var By = 1, Ty = 0.25, Gl = 0.046875, Ul = 0.01953125, Nl = 0.01068115234375, Py = 0.75, Dy = 0.46875, _y = 0.013020833333333334, ky = 0.007120768229166667, Ly = 0.3645833333333333, Ry = 0.005696614583333333, Fy = 0.3076171875;
10410
- function Va(i) {
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) {
10411
10409
  var e = [];
10412
- e[0] = By - i * (Ty + i * (Gl + i * (Ul + i * Nl))), e[1] = i * (Py - i * (Gl + i * (Ul + i * Nl)));
10410
+ e[0] = By - i * (Ty + i * (Ul + i * (Nl + i * Ql))), e[1] = i * (Py - i * (Ul + i * (Nl + i * Ql)));
10413
10411
  var t = i * i;
10414
10412
  return e[2] = t * (Dy - i * (_y + i * ky)), t *= i, e[3] = t * (Ly - i * Ry), e[4] = t * i * Fy, e;
10415
10413
  }
@@ -10417,7 +10415,7 @@ function hs(i, e, t, s) {
10417
10415
  return t *= e, e *= e, s[0] * i - t * (s[1] + e * (s[2] + e * (s[3] + e * s[4])));
10418
10416
  }
10419
10417
  var Oy = 20;
10420
- function ja(i, e, t) {
10418
+ function $a(i, e, t) {
10421
10419
  for (var s = 1 / (1 - e), n = i, o = Oy; o; --o) {
10422
10420
  var a = Math.sin(n), l = 1 - e * a * a;
10423
10421
  if (l = (hs(n, a, Math.cos(n), t) - i) * (l * Math.sqrt(l)) * s, n -= l, Math.abs(l) < J)
@@ -10426,7 +10424,7 @@ function ja(i, e, t) {
10426
10424
  return n;
10427
10425
  }
10428
10426
  function Gy() {
10429
- 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 = Va(this.es), this.ml0 = hs(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), 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));
10430
10428
  }
10431
10429
  function Uy(i) {
10432
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);
@@ -10452,7 +10450,7 @@ function Uy(i) {
10452
10450
  function Ny(i) {
10453
10451
  var e, t, s, n, o = (i.x - this.x0) * (1 / this.a), a = (i.y - this.y0) * (1 / this.a);
10454
10452
  if (this.es)
10455
- if (e = this.ml0 + a / this.k0, t = ja(e, this.es, this.en), Math.abs(t) < K) {
10453
+ if (e = this.ml0 + a / this.k0, t = $a(e, this.es, this.en), Math.abs(t) < K) {
10456
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);
10457
10455
  e = 1 - this.es * Math.pow(d, 2);
10458
10456
  var C = o * Math.sqrt(e) / this.k0, w = Math.pow(C, 2);
@@ -10489,7 +10487,7 @@ function Yy(i) {
10489
10487
  var e = Math.abs(i);
10490
10488
  return e = Hy(e * (1 + e / (gt(1, e) + 1))), i < 0 ? -e : e;
10491
10489
  }
10492
- function $a(i, e) {
10490
+ function Ka(i, e) {
10493
10491
  for (var t = 2 * Math.cos(2 * e), s = i.length - 1, n = i[s], o = 0, a; --s >= 0; )
10494
10492
  a = -o + t * n + i[s], o = n, n = a;
10495
10493
  return e + a * Math.sin(2 * e);
@@ -10514,12 +10512,12 @@ function Vy() {
10514
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 = [];
10515
10513
  var i = this.es / (1 + Math.sqrt(1 - this.es)), e = i / (2 - i), t = e;
10516
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);
10517
- var s = $a(this.cbg, this.lat0);
10515
+ var s = Ka(this.cbg, this.lat0);
10518
10516
  this.Zb = -this.Qn * (s + zy(this.gtu, 2 * s));
10519
10517
  }
10520
10518
  function jy(i) {
10521
10519
  var e = se(i.x - this.long0, this.over), t = i.y;
10522
- t = $a(this.cbg, t);
10520
+ t = Ka(this.cbg, t);
10523
10521
  var s = Math.sin(t), n = Math.cos(t), o = Math.sin(e), a = Math.cos(e);
10524
10522
  t = Math.atan2(s, a * n), e = Math.atan2(o * n, gt(s, n * a)), e = Yy(Math.tan(e));
10525
10523
  var l = mh(this.gtu, 2 * t, 2 * e);
@@ -10535,7 +10533,7 @@ function $y(i) {
10535
10533
  var o = mh(this.utg, 2 * t, 2 * e);
10536
10534
  t = t + o[0], e = e + o[1], e = Math.atan(ph(e));
10537
10535
  var a = Math.sin(t), l = Math.cos(t), r = Math.sin(e), c = Math.cos(e);
10538
- t = Math.atan2(a * c, gt(r, c * l)), e = Math.atan2(r, c * l), s = se(e + this.long0, this.over), n = $a(this.cgb, t);
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);
10539
10537
  } else
10540
10538
  s = 1 / 0, n = 1 / 0;
10541
10539
  return i.x = s, i.y = n, i;
@@ -10569,34 +10567,34 @@ const e1 = {
10569
10567
  names: Zy,
10570
10568
  dependsOn: Xy
10571
10569
  };
10572
- function Ka(i, e) {
10570
+ function qa(i, e) {
10573
10571
  return Math.pow((1 - i) / (1 + i), e);
10574
10572
  }
10575
10573
  var t1 = 20;
10576
10574
  function i1() {
10577
10575
  var i = Math.sin(this.lat0), e = Math.cos(this.lat0);
10578
- 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) * Ka(this.e * i, this.ratexp));
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));
10579
10577
  }
10580
10578
  function s1(i) {
10581
10579
  var e = i.x, t = i.y;
10582
- return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * t + Se), this.C) * Ka(this.e * Math.sin(t), this.ratexp)) - K, i.x = this.C * e, i;
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;
10583
10581
  }
10584
10582
  function n1(i) {
10585
- 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 * Ka(this.e * Math.sin(i.y), -0.5 * this.e)) - K, !(Math.abs(s - i.y) < e)); --o)
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)
10586
10584
  i.y = s;
10587
10585
  return o ? (i.x = t, i.y = s, i) : null;
10588
10586
  }
10589
- const qa = {
10587
+ const Xa = {
10590
10588
  init: i1,
10591
10589
  forward: s1,
10592
10590
  inverse: n1
10593
10591
  };
10594
10592
  function o1() {
10595
- qa.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"));
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"));
10596
10594
  }
10597
10595
  function a1(i) {
10598
10596
  var e, t, s, n;
10599
- return i.x = se(i.x - this.long0, this.over), qa.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;
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;
10600
10598
  }
10601
10599
  function r1(i) {
10602
10600
  var e, t, s, n, o;
@@ -10605,7 +10603,7 @@ function r1(i) {
10605
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);
10606
10604
  } else
10607
10605
  n = this.phic0, s = 0;
10608
- return i.x = s, i.y = n, qa.inverse.apply(this, [i]), i.x = se(i.x + this.long0, this.over), i;
10606
+ return i.x = s, i.y = n, Xa.inverse.apply(this, [i]), i.x = se(i.x + this.long0, this.over), i;
10609
10607
  }
10610
10608
  var l1 = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
10611
10609
  const c1 = {
@@ -10614,15 +10612,15 @@ const c1 = {
10614
10612
  inverse: r1,
10615
10613
  names: l1
10616
10614
  };
10617
- function Xa(i, e, t) {
10615
+ function Ja(i, e, t) {
10618
10616
  return e *= t, Math.tan(0.5 * (K + i)) * Math.pow((1 - e) / (1 + e), 0.5 * t);
10619
10617
  }
10620
10618
  function u1() {
10621
- 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(Xa(this.lat0, this.sinlat0, this.e)) - K, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
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));
10622
10620
  }
10623
10621
  function h1(i) {
10624
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);
10625
- 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(Xa(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));
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));
10626
10624
  }
10627
10625
  function d1(i) {
10628
10626
  i.x -= this.x0, i.y -= this.y0;
@@ -10644,7 +10642,7 @@ const g1 = {
10644
10642
  forward: h1,
10645
10643
  inverse: d1,
10646
10644
  names: f1,
10647
- ssfn_: Xa
10645
+ ssfn_: Ja
10648
10646
  };
10649
10647
  function p1() {
10650
10648
  var i = this.lat0;
@@ -10805,7 +10803,7 @@ function Zs(i) {
10805
10803
  function en(i) {
10806
10804
  return i * i * i * (35 / 3072);
10807
10805
  }
10808
- function Ja(i, e, t) {
10806
+ function Za(i, e, t) {
10809
10807
  var s = e * t;
10810
10808
  return i / Math.sqrt(1 - s * s);
10811
10809
  }
@@ -10828,7 +10826,7 @@ function O1(i) {
10828
10826
  if (s = se(s - this.long0, this.over), this.sphere)
10829
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);
10830
10828
  else {
10831
- var o = Math.sin(n), a = Math.cos(n), l = Ja(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);
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);
10832
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);
10833
10831
  }
10834
10832
  return i.x = e + this.x0, i.y = t + this.y0, i;
@@ -10843,7 +10841,7 @@ function G1(i) {
10843
10841
  var a = this.ml0 / this.a + t, l = jn(a, this.e0, this.e1, this.e2, this.e3);
10844
10842
  if (Math.abs(Math.abs(l) - K) <= J)
10845
10843
  return i.x = this.long0, i.y = K, t < 0 && (i.y *= -1), i;
10846
- var r = Ja(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;
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;
10847
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);
10848
10846
  }
10849
10847
  return i.x = se(n + this.long0, this.over), i.y = gi(s), i;
@@ -11082,7 +11080,7 @@ const bC = {
11082
11080
  inverse: yC,
11083
11081
  names: CC
11084
11082
  };
11085
- var Ql = 20;
11083
+ var Hl = 20;
11086
11084
  function wC() {
11087
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);
11088
11086
  }
@@ -11093,7 +11091,7 @@ function EC(i) {
11093
11091
  else if (Math.abs(t) <= J)
11094
11092
  s = this.a * a, n = -1 * this.ml0;
11095
11093
  else {
11096
- var l = Ja(this.a, this.e, Math.sin(t)) / Math.tan(t);
11094
+ var l = Za(this.a, this.e, Math.sin(t)) / Math.tan(t);
11097
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));
11098
11096
  }
11099
11097
  return i.x = s + this.x0, i.y = n + this.y0, i;
@@ -11106,7 +11104,7 @@ function xC(i) {
11106
11104
  else {
11107
11105
  a = this.lat0 + n / this.a, l = s * s / this.a / this.a + a * a, r = a;
11108
11106
  var u;
11109
- for (o = Ql; o; --o)
11107
+ for (o = Hl; o; --o)
11110
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) {
11111
11109
  t = r;
11112
11110
  break;
@@ -11118,7 +11116,7 @@ function xC(i) {
11118
11116
  else {
11119
11117
  a = (this.ml0 + n) / this.a, l = s * s / this.a / this.a + a * a, r = a;
11120
11118
  var d, f, h, g, v;
11121
- for (o = Ql; o; --o)
11119
+ for (o = Hl; o; --o)
11122
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) {
11123
11121
  t = r;
11124
11122
  break;
@@ -11194,7 +11192,7 @@ const FC = {
11194
11192
  };
11195
11193
  var OC = 20;
11196
11194
  function GC() {
11197
- 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 = Va(this.es);
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);
11198
11196
  }
11199
11197
  function UC(i) {
11200
11198
  var e, t, s = i.x, n = i.y;
@@ -11216,7 +11214,7 @@ function UC(i) {
11216
11214
  }
11217
11215
  function NC(i) {
11218
11216
  var e, t, s, n;
11219
- 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 = ja(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;
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;
11220
11218
  }
11221
11219
  var QC = ["Sinusoidal", "sinu"];
11222
11220
  const HC = {
@@ -11717,7 +11715,7 @@ function Kb() {
11717
11715
  var i;
11718
11716
  if (this.phi1 = this.lat1, Math.abs(this.phi1) < zs)
11719
11717
  throw new Error();
11720
- this.es ? (this.en = Va(this.es), this.m1 = hs(
11718
+ this.es ? (this.en = ja(this.es), this.m1 = hs(
11721
11719
  this.phi1,
11722
11720
  this.am1 = Math.sin(this.phi1),
11723
11721
  i = Math.cos(this.phi1),
@@ -11731,7 +11729,7 @@ function qb(i) {
11731
11729
  function Xb(i) {
11732
11730
  i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
11733
11731
  var e, t, s, n;
11734
- if (t = gt(i.x, i.y = this.am1 - i.y), n = ja(this.am1 + this.m1 - t, this.es, this.en), (e = Math.abs(n)) < K)
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)
11735
11733
  e = Math.sin(n), s = t * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * e * e) / Math.cos(n);
11736
11734
  else if (Math.abs(e - K) <= zs)
11737
11735
  s = 0;
@@ -11754,7 +11752,7 @@ var ew = ["bonne", "Bonne (Werner lat_1=90)"];
11754
11752
  const tw = {
11755
11753
  init: Kb,
11756
11754
  names: ew
11757
- }, Hl = {
11755
+ }, Yl = {
11758
11756
  OBLIQUE: {
11759
11757
  forward: aw,
11760
11758
  inverse: lw
@@ -11816,7 +11814,7 @@ function iw() {
11816
11814
  if (!t)
11817
11815
  throw new Error("No valid parameters provided for ob_tran projection.");
11818
11816
  const { lamp: o, phip: a } = ow(this, t);
11819
- this.lamp = o, Math.abs(a) > J ? (this.cphip = Math.cos(a), this.sphip = Math.sin(a), this.projectionType = Hl.OBLIQUE) : this.projectionType = Hl.TRANSVERSE;
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;
11820
11818
  }
11821
11819
  function sw(i) {
11822
11820
  return this.projectionType.forward(this, i);
@@ -11985,7 +11983,7 @@ class fw {
11985
11983
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11986
11984
  if (!t)
11987
11985
  try {
11988
- const n = await import("./index-BMabNQGL.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11986
+ const n = await import("./index-BT03t7oB.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11989
11987
  if (o)
11990
11988
  window.VectorTileLayer = o, n?.CesiumVectorTileGL && (window.CesiumVectorTileGL = n.CesiumVectorTileGL), t = o;
11991
11989
  else {
@@ -12006,10 +12004,6 @@ class fw {
12006
12004
  try {
12007
12005
  const o = n;
12008
12006
  o?.readyEvent?.addEventListener && o.readyEvent.addEventListener(() => {
12009
- try {
12010
- console.log("VectorTileLayer ready");
12011
- } catch {
12012
- }
12013
12007
  }), o?.errorEvent?.addEventListener && o.errorEvent.addEventListener((a) => {
12014
12008
  console.error("VectorTileLayer error:", a);
12015
12009
  });
@@ -12060,12 +12054,9 @@ class fw {
12060
12054
  });
12061
12055
  return this.viewer.scene.primitives.add(r), r?.readyEvent?.addEventListener && r.readyEvent.addEventListener(() => {
12062
12056
  try {
12063
- console.log("VectorTileset ready:", {
12064
- sources: Object.keys(r?.sources || {}),
12065
- layers: l?.layers?.map((c) => c?.["source-layer"]).filter(
12066
- (c, u, d) => c && d.indexOf(c) === u
12067
- )
12068
- });
12057
+ Object.keys(r?.sources || {}), l?.layers?.map((c) => c?.["source-layer"]).filter(
12058
+ (c, u, d) => c && d.indexOf(c) === u
12059
+ );
12069
12060
  } catch {
12070
12061
  }
12071
12062
  }), r?.errorEvent?.addEventListener && r.errorEvent.addEventListener((c) => {
@@ -12080,13 +12071,13 @@ class fw {
12080
12071
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
12081
12072
  if (!t)
12082
12073
  try {
12083
- const r = await import("./index-BMabNQGL.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12074
+ const r = await import("./index-BT03t7oB.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12084
12075
  c && (window.VectorTileLayer = c, r?.CesiumVectorTileGL && (window.CesiumVectorTileGL = r.CesiumVectorTileGL), t = c);
12085
12076
  } catch {
12086
12077
  }
12087
12078
  if (!(window?.CesiumVectorTileGL?.VectorTileset || window?.VectorTileset))
12088
12079
  try {
12089
- const r = await import("./index-BMabNQGL.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12080
+ const r = await import("./index-BT03t7oB.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12090
12081
  c && (window.VectorTileset = c);
12091
12082
  } catch {
12092
12083
  }
@@ -12140,10 +12131,6 @@ class fw {
12140
12131
  try {
12141
12132
  const c = r;
12142
12133
  c?.readyEvent?.addEventListener && c.readyEvent.addEventListener(() => {
12143
- try {
12144
- console.log("VectorTileLayer ready (geojson)");
12145
- } catch {
12146
- }
12147
12134
  }), c?.errorEvent?.addEventListener && c.errorEvent.addEventListener((u) => {
12148
12135
  console.error("VectorTileLayer error (geojson):", u);
12149
12136
  });
@@ -12623,11 +12610,7 @@ class fw {
12623
12610
  const M = this.buildLongLatProj4Def(n.transformConfig), D = this.buildProjectedProj4Def(
12624
12611
  n.transformConfig
12625
12612
  );
12626
- h = Ss(D, M), console.log("[buildTransform] proj4 mode:", {
12627
- projectedDef: D,
12628
- localOriginX: r,
12629
- localOriginY: c
12630
- });
12613
+ h = Ss(D, M);
12631
12614
  try {
12632
12615
  const [x, E] = h.forward([
12633
12616
  r,
@@ -12641,7 +12624,7 @@ class fw {
12641
12624
  blat: E
12642
12625
  }), h = null;
12643
12626
  else {
12644
- o = x, a = E, console.log("[buildTransform] proj4 base:", { blon: x, blat: E }), l = 0, g = s.Cartesian3.fromDegrees(x, E, 0);
12627
+ o = x, a = E, l = 0, g = s.Cartesian3.fromDegrees(x, E, 0);
12645
12628
  const B = s.Transforms.eastNorthUpToFixedFrame(g);
12646
12629
  v = s.Matrix4.inverseTransformation(
12647
12630
  B,
@@ -12974,7 +12957,7 @@ class fw {
12974
12957
  if (e.endsWith(".json") || t.headers.get("content-type")?.includes("application/json"))
12975
12958
  return await t.json();
12976
12959
  const s = await t.blob(), n = new Ha(new ho(s), {
12977
- password: Wu,
12960
+ password: Vu,
12978
12961
  useWebWorkers: !1
12979
12962
  }), a = (await n.getEntries()).find(
12980
12963
  (c) => !c.directory && c.filename.endsWith(".json")
@@ -13075,17 +13058,10 @@ class fw {
13075
13058
  let d = null, f = null, h = null, g = 6e3;
13076
13059
  try {
13077
13060
  const C = await this.loadModelFile(u);
13078
- C?.watermark && await Vu(C.watermark, this.viewer?.container), C && typeof C == "object" && (zu.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));
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));
13079
13062
  } catch {
13080
13063
  }
13081
- console.log("[addGISCadModel] formData:", JSON.stringify(o.formData)), console.log(
13082
- "[addGISCadModel] manifestTiles:",
13083
- d?.length,
13084
- "L0:",
13085
- f?.length,
13086
- "L1:",
13087
- h?.length
13088
- );
13064
+ JSON.stringify(o.formData), d?.length, f?.length, h?.length;
13089
13065
  const v = await this.loadSourceData(o);
13090
13066
  if (!v.data) {
13091
13067
  console.error(
@@ -13296,15 +13272,7 @@ class fw {
13296
13272
  return;
13297
13273
  }
13298
13274
  const s = this.cesium;
13299
- console.log("[computeManifestTileLonLatBounds] transform 参数:", {
13300
- originLongitude: t.originLongitude,
13301
- originLatitude: t.originLatitude,
13302
- localOriginX: t.localOriginX,
13303
- localOriginY: t.localOriginY,
13304
- scaleToMeter: t.scaleToMeter,
13305
- scale: t.scale,
13306
- totalScaleToMeter: t.totalScaleToMeter
13307
- });
13275
+ t.originLongitude, t.originLatitude, t.localOriginX, t.localOriginY, t.scaleToMeter, t.scale, t.totalScaleToMeter;
13308
13276
  let n = 0, o = 0;
13309
13277
  const a = (l, r) => {
13310
13278
  try {
@@ -13329,15 +13297,9 @@ class fw {
13329
13297
  north: Math.max(f[1], h[1])
13330
13298
  }, n++) : o++;
13331
13299
  }
13332
- if (console.log(
13333
- `[computeManifestTileLonLatBounds] 成功=${n} 失败=${o} 总共=${e.length}`
13334
- ), n > 0) {
13300
+ if (`${n}${o}${e.length}`, n > 0) {
13335
13301
  const l = e.find((r) => r.lonLatBounds);
13336
- console.log(
13337
- "[computeManifestTileLonLatBounds] 示例:",
13338
- l?.file,
13339
- l?.lonLatBounds
13340
- );
13302
+ l?.file, l?.lonLatBounds;
13341
13303
  }
13342
13304
  }
13343
13305
  /**
@@ -13417,9 +13379,7 @@ class fw {
13417
13379
  }
13418
13380
  }, C = () => {
13419
13381
  if (!t.tileRoots) return;
13420
- const x = this.getCameraHeightAboveGround(t);
13421
- console.log("cameraHeight", x);
13422
- const E = x < 1e3;
13382
+ const x = this.getCameraHeightAboveGround(t), E = x < 1e3;
13423
13383
  for (const B of r) {
13424
13384
  if (B.file === "cad.zip" || !t.tileRoots.has(B.file)) continue;
13425
13385
  let y = !1;
@@ -13658,11 +13618,7 @@ Pe.getViewCenter = (i) => {
13658
13618
  }
13659
13619
  };
13660
13620
  Pe.cartesiansToLnglats = function(i, e) {
13661
- if (!(!i || i.length < 1)) {
13662
- if (e = e || window.viewer, !e) {
13663
- console.log("util.cartesiansToLnglats方法缺少viewer对象");
13664
- return;
13665
- }
13621
+ if (!(!i || i.length < 1) && (e = e || window.viewer, !!e)) {
13666
13622
  for (var t = [], s = 0; s < i.length; s++)
13667
13623
  t.push(Pe.cartesianToLnglat(i[s], e));
13668
13624
  return t;
@@ -13678,23 +13634,17 @@ Pe.lnglatsToCartesians = function(i) {
13678
13634
  }
13679
13635
  };
13680
13636
  Pe.flyTo = function(i, e) {
13681
- if (!e) {
13682
- console.log("util.flyTo缺少viewer对象");
13637
+ if (!e)
13683
13638
  return;
13684
- }
13685
13639
  i = i || {};
13686
13640
  let t = i.center;
13687
- if (!t) {
13688
- console.log("缺少定位坐标!");
13689
- return;
13690
- }
13691
- if (t instanceof Cesium.Cartesian3 && e.camera.flyToBoundingSphere(new Cesium.BoundingSphere(t), {
13641
+ if (t && (t instanceof Cesium.Cartesian3 && e.camera.flyToBoundingSphere(new Cesium.BoundingSphere(t), {
13692
13642
  offset: new Cesium.HeadingPitchRange(
13693
13643
  Cesium.Math.toRadians(i.heading || 0),
13694
13644
  Cesium.Math.toRadians(i.pitch || -60),
13695
13645
  i.range || 1e4
13696
13646
  )
13697
- }), t instanceof Array) {
13647
+ }), t instanceof Array)) {
13698
13648
  var s = new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(t[0], t[1], t[2]));
13699
13649
  e.camera.flyToBoundingSphere(s, {
13700
13650
  offset: new Cesium.HeadingPitchRange(
@@ -13706,26 +13656,20 @@ Pe.flyTo = function(i, e) {
13706
13656
  }
13707
13657
  };
13708
13658
  Pe.getCameraView = function(i) {
13709
- if (i = i || window.viewer, !i) {
13710
- console.log("util.getCameraView缺少viewer对象");
13711
- return;
13659
+ if (i = i || window.viewer, !!i) {
13660
+ var e = i.camera, t = e.position, s = e.heading, n = e.pitch, o = e.roll, a = Cesium.Cartographic.fromCartesian(t), l = {
13661
+ x: Cesium.Math.toDegrees(a.longitude),
13662
+ y: Cesium.Math.toDegrees(a.latitude),
13663
+ z: a.height,
13664
+ heading: Cesium.Math.toDegrees(s),
13665
+ pitch: Cesium.Math.toDegrees(n),
13666
+ roll: Cesium.Math.toDegrees(o)
13667
+ };
13668
+ return l;
13712
13669
  }
13713
- var e = i.camera, t = e.position, s = e.heading, n = e.pitch, o = e.roll, a = Cesium.Cartographic.fromCartesian(t), l = {
13714
- x: Cesium.Math.toDegrees(a.longitude),
13715
- y: Cesium.Math.toDegrees(a.latitude),
13716
- z: a.height,
13717
- heading: Cesium.Math.toDegrees(s),
13718
- pitch: Cesium.Math.toDegrees(n),
13719
- roll: Cesium.Math.toDegrees(o)
13720
- };
13721
- return l;
13722
13670
  };
13723
13671
  Pe.setCameraView = function(i, e) {
13724
- if (e = e || window.viewer, !e) {
13725
- console.log("util.setCameraView缺少viewer对象");
13726
- return;
13727
- }
13728
- if (i) {
13672
+ if (e = e || window.viewer, !!e && i) {
13729
13673
  var t = i.destination || Cesium.Cartesian3.fromDegrees(i.x, i.y, i.z);
13730
13674
  e.camera.flyTo({
13731
13675
  destination: t,
@@ -13741,7 +13685,7 @@ Pe.setCameraView = function(i, e) {
13741
13685
  };
13742
13686
  Pe.computeAreaOfTriangle = function(i, e, t) {
13743
13687
  if (!i || !e || !t)
13744
- return console.log("传入坐标有误!"), 0;
13688
+ return 0;
13745
13689
  var s = Cesium.Cartesian3.distance(i, e), n = Cesium.Cartesian3.distance(e, t), o = Cesium.Cartesian3.distance(t, i), a = (s + n + o) / 2;
13746
13690
  return Math.sqrt(a * (a - s) * (a - n) * (a - o));
13747
13691
  };
@@ -15003,10 +14947,10 @@ String.prototype.codePointAt || (function() {
15003
14947
  function ds(i) {
15004
14948
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
15005
14949
  }
15006
- var Qo, Yl;
14950
+ var Qo, zl;
15007
14951
  function vw() {
15008
- if (Yl) return Qo;
15009
- Yl = 1;
14952
+ if (zl) return Qo;
14953
+ zl = 1;
15010
14954
  var i = 0, e = -3;
15011
14955
  function t() {
15012
14956
  this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
@@ -15321,10 +15265,10 @@ Xe.prototype.toDOMElement = function(i) {
15321
15265
  function bh(i) {
15322
15266
  throw new Error(i);
15323
15267
  }
15324
- function zl(i, e) {
15268
+ function Wl(i, e) {
15325
15269
  i || bh(e);
15326
15270
  }
15327
- const Ce = { fail: bh, argument: zl, assert: zl }, Wl = 32768, Vl = 2147483648, as = {}, ie = {}, me = {};
15271
+ const Ce = { fail: bh, argument: Wl, assert: Wl }, Vl = 32768, jl = 2147483648, as = {}, ie = {}, me = {};
15328
15272
  function Ft(i) {
15329
15273
  return function() {
15330
15274
  return i;
@@ -15352,7 +15296,7 @@ ie.USHORT = function(i) {
15352
15296
  };
15353
15297
  me.USHORT = Ft(2);
15354
15298
  ie.SHORT = function(i) {
15355
- return i >= Wl && (i = -(2 * Wl - i)), [i >> 8 & 255, i & 255];
15299
+ return i >= Vl && (i = -(2 * Vl - i)), [i >> 8 & 255, i & 255];
15356
15300
  };
15357
15301
  me.SHORT = Ft(2);
15358
15302
  ie.UINT24 = function(i) {
@@ -15364,7 +15308,7 @@ ie.ULONG = function(i) {
15364
15308
  };
15365
15309
  me.ULONG = Ft(4);
15366
15310
  ie.LONG = function(i) {
15367
- return i >= Vl && (i = -(2 * Vl - i)), [i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
15311
+ return i >= jl && (i = -(2 * jl - i)), [i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255];
15368
15312
  };
15369
15313
  me.LONG = Ft(4);
15370
15314
  ie.FIXED = ie.ULONG;
@@ -15841,7 +15785,7 @@ const pe = {
15841
15785
  tableList: Aa,
15842
15786
  recordList: Xn
15843
15787
  };
15844
- function jl(i, e) {
15788
+ function $l(i, e) {
15845
15789
  return i.getUint8(e);
15846
15790
  }
15847
15791
  function io(i, e) {
@@ -15850,7 +15794,7 @@ function io(i, e) {
15850
15794
  function Iw(i, e) {
15851
15795
  return i.getInt16(e, !1);
15852
15796
  }
15853
- function Za(i, e) {
15797
+ function er(i, e) {
15854
15798
  return i.getUint32(e, !1);
15855
15799
  }
15856
15800
  function wh(i, e) {
@@ -15918,7 +15862,7 @@ z.prototype.parseF2Dot14 = function() {
15918
15862
  return this.relativeOffset += 2, i;
15919
15863
  };
15920
15864
  z.prototype.parseULong = function() {
15921
- const i = Za(this.data, this.offset + this.relativeOffset);
15865
+ const i = er(this.data, this.offset + this.relativeOffset);
15922
15866
  return this.relativeOffset += 4, i;
15923
15867
  };
15924
15868
  z.prototype.parseOffset32 = z.prototype.parseULong;
@@ -15938,7 +15882,7 @@ z.prototype.parseTag = function() {
15938
15882
  return this.parseString(4);
15939
15883
  };
15940
15884
  z.prototype.parseLongDateTime = function() {
15941
- let i = Za(this.data, this.offset + this.relativeOffset + 4);
15885
+ let i = er(this.data, this.offset + this.relativeOffset + 4);
15942
15886
  return i -= 2082844800, this.relativeOffset += 8, i;
15943
15887
  };
15944
15888
  z.prototype.parseVersion = function(i) {
@@ -16150,7 +16094,7 @@ z.uLongList = z.prototype.parseULongList;
16150
16094
  z.struct = z.prototype.parseStruct;
16151
16095
  z.coverage = z.prototype.parseCoverage;
16152
16096
  z.classDef = z.prototype.parseClassDef;
16153
- const $l = {
16097
+ const Kl = {
16154
16098
  reserved: z.uShort,
16155
16099
  reqFeatureIndex: z.uShort,
16156
16100
  featureIndexes: z.uShortList
@@ -16159,10 +16103,10 @@ z.prototype.parseScriptList = function() {
16159
16103
  return this.parsePointer(z.recordList({
16160
16104
  tag: z.tag,
16161
16105
  script: z.pointer({
16162
- defaultLangSys: z.pointer($l),
16106
+ defaultLangSys: z.pointer(Kl),
16163
16107
  langSysRecords: z.recordList({
16164
16108
  tag: z.tag,
16165
- langSys: z.pointer($l)
16109
+ langSys: z.pointer(Kl)
16166
16110
  })
16167
16111
  })
16168
16112
  })) || [];
@@ -16199,12 +16143,12 @@ z.prototype.parseFeatureVariationsList = function() {
16199
16143
  }) || [];
16200
16144
  };
16201
16145
  const ue = {
16202
- getByte: jl,
16203
- getCard8: jl,
16146
+ getByte: $l,
16147
+ getCard8: $l,
16204
16148
  getUShort: io,
16205
16149
  getCard16: io,
16206
16150
  getShort: Iw,
16207
- getULong: Za,
16151
+ getULong: er,
16208
16152
  getFixed: wh,
16209
16153
  getTag: Sw,
16210
16154
  getOffset: Mw,
@@ -16279,7 +16223,7 @@ function Fw(i) {
16279
16223
  let e = !0, t;
16280
16224
  for (t = i.length - 1; t > 0; t -= 1)
16281
16225
  if (i.get(t).unicode > 65535) {
16282
- console.log("Adding CMAP format 12 (needed!)"), e = !1;
16226
+ e = !1;
16283
16227
  break;
16284
16228
  }
16285
16229
  let s = [
@@ -17525,7 +17469,7 @@ so.prototype.charToGlyphIndex = function(i) {
17525
17469
  const e = i.codePointAt(0), t = this.encoding[e];
17526
17470
  return this.charset.indexOf(t);
17527
17471
  };
17528
- function er(i) {
17472
+ function tr(i) {
17529
17473
  switch (i.version) {
17530
17474
  case 1:
17531
17475
  this.names = xi.slice();
@@ -17548,10 +17492,10 @@ function er(i) {
17548
17492
  break;
17549
17493
  }
17550
17494
  }
17551
- er.prototype.nameToGlyphIndex = function(i) {
17495
+ tr.prototype.nameToGlyphIndex = function(i) {
17552
17496
  return this.names.indexOf(i);
17553
17497
  };
17554
- er.prototype.glyphIndexToName = function(i) {
17498
+ tr.prototype.glyphIndexToName = function(i) {
17555
17499
  return this.names[i];
17556
17500
  };
17557
17501
  function Uw(i) {
@@ -17690,16 +17634,16 @@ function An(i, e, t) {
17690
17634
  configurable: !0
17691
17635
  });
17692
17636
  }
17693
- function tr(i, e) {
17637
+ function ir(i, e) {
17694
17638
  if (this.font = i, this.glyphs = {}, Array.isArray(e))
17695
17639
  for (let t = 0; t < e.length; t++)
17696
17640
  this.glyphs[t] = e[t];
17697
17641
  this.length = e && e.length || 0;
17698
17642
  }
17699
- tr.prototype.get = function(i) {
17643
+ ir.prototype.get = function(i) {
17700
17644
  return typeof this.glyphs[i] == "function" && (this.glyphs[i] = this.glyphs[i]()), this.glyphs[i];
17701
17645
  };
17702
- tr.prototype.push = function(i, e) {
17646
+ ir.prototype.push = function(i, e) {
17703
17647
  this.glyphs[i] = e, this.length++;
17704
17648
  };
17705
17649
  function Hw(i, e) {
@@ -17724,7 +17668,7 @@ function zw(i, e, t, s) {
17724
17668
  }, n;
17725
17669
  };
17726
17670
  }
17727
- const is = { GlyphSet: tr, glyphLoader: Hw, ttfGlyphLoader: Yw, cffGlyphLoader: zw };
17671
+ const is = { GlyphSet: ir, glyphLoader: Hw, ttfGlyphLoader: Yw, cffGlyphLoader: zw };
17728
17672
  function Sh(i, e) {
17729
17673
  if (i === e)
17730
17674
  return !0;
@@ -17880,7 +17824,7 @@ function Dh(i, e, t, s) {
17880
17824
  const n = Mh(i, e, t);
17881
17825
  return Bh(n, Ph, s);
17882
17826
  }
17883
- function Kl(i, e, t, s) {
17827
+ function ql(i, e, t, s) {
17884
17828
  const n = [];
17885
17829
  for (let o = 0; o < t.length; o += 1) {
17886
17830
  const a = new DataView(new Uint8Array(t[o]).buffer), l = Kw(a, s);
@@ -18008,7 +17952,7 @@ function Jw(i, e, t) {
18008
17952
  s = f + r.shift(), n = h + r.shift(), o = s + r.shift(), a = n + r.shift(), N = o + r.shift(), R = a + r.shift(), L = N + r.shift(), b = R + r.shift(), I = L + r.shift(), k = b + r.shift(), Math.abs(I - f) > Math.abs(k - h) ? f = I + r.shift() : h = k + r.shift(), l.curveTo(s, n, o, a, N, R), l.curveTo(L, b, I, k, f, h);
18009
17953
  break;
18010
17954
  default:
18011
- console.log("Glyph " + e.index + ": unknown operator 1200" + Q), r.length = 0;
17955
+ "" + e.index + Q, r.length = 0;
18012
17956
  }
18013
17957
  break;
18014
17958
  case 14:
@@ -18064,7 +18008,7 @@ function Jw(i, e, t) {
18064
18008
  s = f, n = h + r.shift(), o = s + r.shift(), a = n + r.shift(), f = o + r.shift(), h = a + (r.length === 1 ? r.shift() : 0), l.curveTo(s, n, o, a, f, h);
18065
18009
  break;
18066
18010
  default:
18067
- Q < 32 ? console.log("Glyph " + e.index + ": unknown operator " + Q) : Q < 247 ? r.push(Q - 139) : Q < 251 ? (E = x[F], F += 1, r.push((Q - 247) * 256 + E + 108)) : Q < 255 ? (E = x[F], F += 1, r.push(-(Q - 251) * 256 - E - 108)) : (E = x[F], B = x[F + 1], y = x[F + 2], S = x[F + 3], F += 4, r.push((E << 24 | B << 16 | y << 8 | S) / 65536));
18011
+ Q < 32 ? "" + e.index + Q : Q < 247 ? r.push(Q - 139) : Q < 251 ? (E = x[F], F += 1, r.push((Q - 247) * 256 + E + 108)) : Q < 255 ? (E = x[F], F += 1, r.push(-(Q - 251) * 256 - E - 108)) : (E = x[F], B = x[F + 1], y = x[F + 2], S = x[F + 3], F += 4, r.push((E << 24 | B << 16 | y << 8 | S) / 65536));
18068
18012
  }
18069
18013
  }
18070
18014
  }
@@ -18105,7 +18049,7 @@ function eE(i, e, t) {
18105
18049
  t.tables.cff = {};
18106
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);
18107
18051
  t.gsubrs = l.objects, t.gsubrsBias = va(t.gsubrs);
18108
- const r = Kl(i, e, o.objects, a.objects);
18052
+ const r = ql(i, e, o.objects, a.objects);
18109
18053
  if (r.length !== 1)
18110
18054
  throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + r.length);
18111
18055
  const c = r[0];
@@ -18114,7 +18058,7 @@ function eE(i, e, t) {
18114
18058
  if (g === 0 || v === 0)
18115
18059
  throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
18116
18060
  g += e;
18117
- const m = ni(i, g), A = Kl(i, e, m.objects, a.objects);
18061
+ const m = ni(i, g), A = ql(i, e, m.objects, a.objects);
18118
18062
  c._fdArray = A, v += e, c._fdSelect = Zw(i, v, t.numGlyphs, A.length);
18119
18063
  }
18120
18064
  const u = e + c.private[1], d = Dh(i, u, c.private[0], a.objects);
@@ -18162,13 +18106,13 @@ function kh(i, e, t) {
18162
18106
  }
18163
18107
  return s;
18164
18108
  }
18165
- function ql(i, e) {
18109
+ function Xl(i, e) {
18166
18110
  const t = new pe.Record("Top DICT", [
18167
18111
  { name: "dict", type: "DICT", value: {} }
18168
18112
  ]);
18169
18113
  return t.dict = kh(Th, i, e), t;
18170
18114
  }
18171
- function Xl(i) {
18115
+ function Jl(i) {
18172
18116
  const e = new pe.Record("Top DICT INDEX", [
18173
18117
  { name: "topDicts", type: "INDEX", value: [] }
18174
18118
  ]);
@@ -18270,10 +18214,10 @@ function cE(i, e) {
18270
18214
  l = i.get(d), a.push(l.name);
18271
18215
  const r = [];
18272
18216
  t.header = tE(), t.nameIndex = iE([e.postScriptName]);
18273
- let c = ql(n, r);
18274
- t.topDictIndex = Xl(c), t.globalSubrIndex = nE(), t.charsets = oE(a, r), t.charStringsIndex = rE(i), t.privateDict = lE(o, r), t.stringIndex = sE(r);
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);
18275
18219
  const u = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
18276
- return n.charset = u, n.encoding = 0, n.charStrings = n.charset + t.charsets.sizeOf(), n.private[1] = n.charStrings + t.charStringsIndex.sizeOf(), c = ql(n, r), t.topDictIndex = Xl(c), t;
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;
18277
18221
  }
18278
18222
  const Lh = { parse: eE, make: cE };
18279
18223
  function uE(i, e) {
@@ -19143,7 +19087,7 @@ function Ho(i) {
19143
19087
  e[i[t]] = parseInt(t);
19144
19088
  return e;
19145
19089
  }
19146
- function Jl(i, e, t, s, n, o) {
19090
+ function Zl(i, e, t, s, n, o) {
19147
19091
  return new pe.Record("NameRecord", [
19148
19092
  { name: "platformID", type: "USHORT", value: i },
19149
19093
  { name: "encodingID", type: "USHORT", value: e },
@@ -19165,7 +19109,7 @@ function IE(i, e) {
19165
19109
  }
19166
19110
  return -1;
19167
19111
  }
19168
- function Zl(i, e) {
19112
+ function ec(i, e) {
19169
19113
  let t = IE(i, e);
19170
19114
  if (t < 0) {
19171
19115
  t = e.length;
@@ -19195,8 +19139,8 @@ function SE(i, e) {
19195
19139
  const C = Yh(v, A, m);
19196
19140
  let w = ie.MACSTRING(g, C);
19197
19141
  w === void 0 && (v = 0, m = e.indexOf(h), m < 0 && (m = e.length, e.push(h)), A = 4, w = ie.UTF16(g));
19198
- const M = Zl(w, c);
19199
- r.push(Jl(
19142
+ const M = ec(w, c);
19143
+ r.push(Zl(
19200
19144
  v,
19201
19145
  A,
19202
19146
  m,
@@ -19206,8 +19150,8 @@ function SE(i, e) {
19206
19150
  ));
19207
19151
  const D = l[h];
19208
19152
  if (D !== void 0) {
19209
- const x = ie.UTF16(g), E = Zl(x, c);
19210
- r.push(Jl(
19153
+ const x = ie.UTF16(g), E = ec(x, c);
19154
+ r.push(Zl(
19211
19155
  3,
19212
19156
  1,
19213
19157
  D,
@@ -19813,10 +19757,10 @@ function RE(i) {
19813
19757
  return n.fields.push({ name: "stringPool", type: "CHARARRAY", value: t }), n;
19814
19758
  }
19815
19759
  const jh = { parse: LE, make: RE };
19816
- function ec(i) {
19760
+ function tc(i) {
19817
19761
  return Math.log(i) / Math.log(2) | 0;
19818
19762
  }
19819
- function ir(i) {
19763
+ function sr(i) {
19820
19764
  for (; i.length % 4 !== 0; )
19821
19765
  i.push(0);
19822
19766
  let e = 0;
@@ -19824,7 +19768,7 @@ function ir(i) {
19824
19768
  e += (i[t] << 24) + (i[t + 1] << 16) + (i[t + 2] << 8) + i[t + 3];
19825
19769
  return e %= Math.pow(2, 32), e;
19826
19770
  }
19827
- function tc(i, e, t, s) {
19771
+ function ic(i, e, t, s) {
19828
19772
  return new pe.Record("Table Record", [
19829
19773
  { name: "tag", type: "TAG", value: i !== void 0 ? i : "" },
19830
19774
  { name: "checkSum", type: "ULONG", value: e !== void 0 ? e : 0 },
@@ -19841,16 +19785,16 @@ function $h(i) {
19841
19785
  { name: "rangeShift", type: "USHORT", value: 0 }
19842
19786
  ]);
19843
19787
  e.tables = i, e.numTables = i.length;
19844
- const t = Math.pow(2, ec(e.numTables));
19845
- e.searchRange = 16 * t, e.entrySelector = ec(t), e.rangeShift = e.numTables * 16 - e.searchRange;
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;
19846
19790
  const s = [], n = [];
19847
- let o = e.sizeOf() + tc().sizeOf() * e.numTables;
19791
+ let o = e.sizeOf() + ic().sizeOf() * e.numTables;
19848
19792
  for (; o % 4 !== 0; )
19849
19793
  o += 1, n.push({ name: "padding", type: "BYTE", value: 0 });
19850
19794
  for (let a = 0; a < i.length; a += 1) {
19851
19795
  const l = i[a];
19852
19796
  Ce.argument(l.tableName.length === 4, "Table name" + l.tableName + " is invalid.");
19853
- const r = l.sizeOf(), c = tc(l.tableName, ir(l.encode()), o, r);
19797
+ const r = l.sizeOf(), c = ic(l.tableName, sr(l.encode()), o, r);
19854
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; )
19855
19799
  o += 1, n.push({ name: "padding", type: "BYTE", value: 0 });
19856
19800
  }
@@ -19858,7 +19802,7 @@ function $h(i) {
19858
19802
  return a.value.tag > l.value.tag ? 1 : -1;
19859
19803
  }), e.fields = e.fields.concat(s), e.fields = e.fields.concat(n), e;
19860
19804
  }
19861
- function ic(i, e, t) {
19805
+ function sc(i, e, t) {
19862
19806
  for (let s = 0; s < e.length; s += 1) {
19863
19807
  const n = i.charToGlyphIndex(e[s]);
19864
19808
  if (n > 0)
@@ -19948,8 +19892,8 @@ function OE(i) {
19948
19892
  usWinDescent: Math.abs(g.yMin),
19949
19893
  ulCodePageRange1: 1,
19950
19894
  // FIXME: hard-code Latin 1 support for now
19951
- sxHeight: ic(i, "xyvw", { yMax: Math.round(g.ascender / 2) }).yMax,
19952
- sCapHeight: ic(i, "HIKLEFJMNTZBDPRAGOQSUVWXY", g).yMax,
19895
+ sxHeight: sc(i, "xyvw", { yMax: Math.round(g.ascender / 2) }).yMax,
19896
+ sCapHeight: sc(i, "HIKLEFJMNTZBDPRAGOQSUVWXY", g).yMax,
19953
19897
  usDefaultChar: i.hasChar(" ") ? 32 : 0,
19954
19898
  // Use space as the default character, if available.
19955
19899
  usBreakChar: i.hasChar(" ") ? 32 : 0
@@ -19971,7 +19915,7 @@ function OE(i) {
19971
19915
  fontBBox: [0, g.yMin, g.ascender, g.advanceWidthMax]
19972
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];
19973
19917
  O && b.push(O), i.tables.gsub && b.push(Vh.make(i.tables.gsub)), L && b.push(L);
19974
- const I = $h(b), k = I.encode(), F = ir(k), Q = I.fields;
19918
+ const I = $h(b), k = I.encode(), F = sr(k), Q = I.fields;
19975
19919
  let G = !1;
19976
19920
  for (let P = 0; P < Q.length; P += 1)
19977
19921
  if (Q[P].name === "head table") {
@@ -19982,7 +19926,7 @@ function OE(i) {
19982
19926
  throw new Error("Could not find head table with checkSum to adjust.");
19983
19927
  return I;
19984
19928
  }
19985
- const GE = { make: $h, fontToTable: OE, computeCheckSum: ir };
19929
+ const GE = { make: $h, fontToTable: OE, computeCheckSum: sr };
19986
19930
  function Yo(i, e) {
19987
19931
  let t = 0, s = i.length - 1;
19988
19932
  for (; t <= s; ) {
@@ -19993,7 +19937,7 @@ function Yo(i, e) {
19993
19937
  }
19994
19938
  return -t - 1;
19995
19939
  }
19996
- function sc(i, e) {
19940
+ function nc(i, e) {
19997
19941
  let t = 0, s = i.length - 1;
19998
19942
  for (; t <= s; ) {
19999
19943
  const n = t + s >>> 1, o = i[n];
@@ -20003,7 +19947,7 @@ function sc(i, e) {
20003
19947
  }
20004
19948
  return -t - 1;
20005
19949
  }
20006
- function nc(i, e) {
19950
+ function oc(i, e) {
20007
19951
  let t, s = 0, n = i.length - 1;
20008
19952
  for (; s <= n; ) {
20009
19953
  const o = s + n >>> 1;
@@ -20039,7 +19983,7 @@ tn.prototype = {
20039
19983
  * @param {number} value
20040
19984
  * @return {number}
20041
19985
  */
20042
- binSearch: sc,
19986
+ binSearch: nc,
20043
19987
  /**
20044
19988
  * Get or create the Layout table (GSUB, GPOS etc).
20045
19989
  * @param {boolean} create - Whether to create a new one.
@@ -20197,7 +20141,7 @@ tn.prototype = {
20197
20141
  case 1:
20198
20142
  return i.startGlyph <= e && e < i.startGlyph + i.classes.length ? i.classes[e - i.startGlyph] : 0;
20199
20143
  case 2:
20200
- const t = nc(i.ranges, e);
20144
+ const t = oc(i.ranges, e);
20201
20145
  return t ? t.classId : 0;
20202
20146
  }
20203
20147
  },
@@ -20211,10 +20155,10 @@ tn.prototype = {
20211
20155
  getCoverageIndex: function(i, e) {
20212
20156
  switch (i.format) {
20213
20157
  case 1:
20214
- const t = sc(i.glyphs, e);
20158
+ const t = nc(i.glyphs, e);
20215
20159
  return t >= 0 ? t : -1;
20216
20160
  case 2:
20217
- const s = nc(i.ranges, e);
20161
+ const s = oc(i.ranges, e);
20218
20162
  return s ? s.index + e - s.start : -1;
20219
20163
  }
20220
20164
  },
@@ -20459,7 +20403,7 @@ function Hi(i, e) {
20459
20403
  if (!i)
20460
20404
  throw e;
20461
20405
  }
20462
- function oc(i, e, t, s, n) {
20406
+ function ac(i, e, t, s, n) {
20463
20407
  let o;
20464
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;
20465
20409
  }
@@ -20490,10 +20434,10 @@ function YE(i, e, t) {
20490
20434
  o = n[f], c = {}, c.onCurve = !!(o & 1), c.lastPointOfContour = a.indexOf(f) >= 0, r.push(c);
20491
20435
  let u = 0;
20492
20436
  for (let f = 0; f < l; f += 1)
20493
- o = n[f], c = r[f], c.x = oc(s, o, u, 2, 16), u = c.x;
20437
+ o = n[f], c = r[f], c.x = ac(s, o, u, 2, 16), u = c.x;
20494
20438
  let d = 0;
20495
20439
  for (let f = 0; f < l; f += 1)
20496
- o = n[f], c = r[f], c.y = oc(s, o, d, 4, 32), d = c.y;
20440
+ o = n[f], c = r[f], c.y = ac(s, o, d, 4, 32), d = c.y;
20497
20441
  }
20498
20442
  i.points = r;
20499
20443
  } else
@@ -20838,11 +20782,11 @@ ed.prototype.exec = function(i, e) {
20838
20782
  if (!s || s.ppem !== e) {
20839
20783
  let n = this._fpgmState;
20840
20784
  if (!n) {
20841
- ai.prototype = JE, n = this._fpgmState = new ai("fpgm", t.tables.fpgm), n.funcs = [], n.font = t, exports.DEBUG && (console.log("---EXEC FPGM---"), n.step = -1);
20785
+ ai.prototype = JE, n = this._fpgmState = new ai("fpgm", t.tables.fpgm), n.funcs = [], n.font = t, exports.DEBUG && (n.step = -1);
20842
20786
  try {
20843
20787
  _i(n);
20844
20788
  } catch (a) {
20845
- console.log("Hinting error in FPGM:" + a), this._errorState = 3;
20789
+ "" + a, this._errorState = 3;
20846
20790
  return;
20847
20791
  }
20848
20792
  }
@@ -20854,18 +20798,18 @@ ed.prototype.exec = function(i, e) {
20854
20798
  a[r] = o[r] * l;
20855
20799
  } else
20856
20800
  s.cvt = [];
20857
- exports.DEBUG && (console.log("---EXEC PREP---"), s.step = -1);
20801
+ exports.DEBUG && (s.step = -1);
20858
20802
  try {
20859
20803
  _i(s);
20860
20804
  } catch (a) {
20861
- this._errorState < 2 && console.log("Hinting error in PREP:" + a), this._errorState = 2;
20805
+ this._errorState < 2 && "" + a, this._errorState = 2;
20862
20806
  }
20863
20807
  }
20864
20808
  if (!(this._errorState > 1))
20865
20809
  try {
20866
20810
  return Zh(i, s);
20867
20811
  } catch (n) {
20868
- this._errorState < 1 && (console.log("Hinting error:" + n), console.log("Note: further hinting errors are silenced")), this._errorState = 1;
20812
+ this._errorState < 1 && "" + n, this._errorState = 1;
20869
20813
  return;
20870
20814
  }
20871
20815
  };
@@ -20873,13 +20817,13 @@ Zh = function(i, e) {
20873
20817
  const t = e.ppem / e.font.unitsPerEm, s = t;
20874
20818
  let n = i.components, o, a, l;
20875
20819
  if (ai.prototype = e, !n)
20876
- l = new ai("glyf", i.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), l.step = -1), wa(i, l, t, s), a = l.gZone;
20820
+ l = new ai("glyf", i.instructions), exports.DEBUG && (l.step = -1), wa(i, l, t, s), a = l.gZone;
20877
20821
  else {
20878
20822
  const r = e.font;
20879
20823
  a = [], o = [];
20880
20824
  for (let c = 0; c < n.length; c++) {
20881
20825
  const u = n[c], d = r.glyphs.get(u.glyphIndex);
20882
- l = new ai("glyf", d.instructions), exports.DEBUG && (console.log("---EXEC COMP " + c + "---"), l.step = -1), wa(d, l, t, s);
20826
+ l = new ai("glyf", d.instructions), exports.DEBUG && ("" + c, l.step = -1), wa(d, l, t, s);
20883
20827
  const f = Math.round(u.dx * t), h = Math.round(u.dy * s), g = l.gZone, v = l.contours;
20884
20828
  for (let A = 0; A < g.length; A++) {
20885
20829
  const C = g[A];
@@ -20893,7 +20837,7 @@ Zh = function(i, e) {
20893
20837
  i.instructions && !l.inhibitGridFit && (l = new ai("glyf", i.instructions), l.gZone = l.z0 = l.z1 = l.z2 = a, l.contours = o, a.push(
20894
20838
  new qt(0, 0),
20895
20839
  new qt(Math.round(i.advanceWidth * t), 0)
20896
- ), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), l.step = -1), _i(l), a.length -= 2);
20840
+ ), exports.DEBUG && (l.step = -1), _i(l), a.length -= 2);
20897
20841
  }
20898
20842
  return a;
20899
20843
  };
@@ -20912,17 +20856,17 @@ wa = function(i, e, t, s) {
20912
20856
  r = a[d], c || (c = r, l.push(d)), r.lastPointOfContour ? (r.nextPointOnContour = c, c.prevPointOnContour = r, c = void 0) : (u = a[d + 1], r.nextPointOnContour = u, u.prevPointOnContour = r);
20913
20857
  if (!e.inhibitGridFit) {
20914
20858
  if (exports.DEBUG) {
20915
- console.log("PROCESSING GLYPH", e.stack);
20859
+ e.stack;
20916
20860
  for (let d = 0; d < o; d++)
20917
- console.log(d, a[d].x, a[d].y);
20861
+ a[d].x, a[d].y;
20918
20862
  }
20919
20863
  if (a.push(
20920
20864
  new qt(0, 0),
20921
20865
  new qt(Math.round(i.advanceWidth * t), 0)
20922
20866
  ), _i(e), a.length -= 2, exports.DEBUG) {
20923
- console.log("FINISHED GLYPH", e.stack);
20867
+ e.stack;
20924
20868
  for (let d = 0; d < o; d++)
20925
- console.log(d, a[d].x, a[d].y);
20869
+ a[d].x, a[d].y;
20926
20870
  }
20927
20871
  }
20928
20872
  };
@@ -20965,64 +20909,64 @@ function sd(i, e) {
20965
20909
  while (n > 0);
20966
20910
  i.ip = s;
20967
20911
  }
20968
- function ac(i, e) {
20969
- exports.DEBUG && console.log(e.step, "SVTCA[" + i.axis + "]"), e.fv = e.pv = e.dpv = i;
20970
- }
20971
20912
  function rc(i, e) {
20972
- exports.DEBUG && console.log(e.step, "SPVTCA[" + i.axis + "]"), e.pv = e.dpv = i;
20913
+ exports.DEBUG && (e.step, "" + i.axis), e.fv = e.pv = e.dpv = i;
20973
20914
  }
20974
20915
  function lc(i, e) {
20975
- exports.DEBUG && console.log(e.step, "SFVTCA[" + i.axis + "]"), e.fv = i;
20916
+ exports.DEBUG && (e.step, "" + i.axis), e.pv = e.dpv = i;
20976
20917
  }
20977
20918
  function cc(i, e) {
20919
+ exports.DEBUG && (e.step, "" + i.axis), e.fv = i;
20920
+ }
20921
+ function uc(i, e) {
20978
20922
  const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
20979
- exports.DEBUG && console.log("SPVTL[" + i + "]", s, n);
20923
+ exports.DEBUG && "" + i;
20980
20924
  let l, r;
20981
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);
20982
20926
  }
20983
- function uc(i, e) {
20927
+ function hc(i, e) {
20984
20928
  const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
20985
- exports.DEBUG && console.log("SFVTL[" + i + "]", s, n);
20929
+ exports.DEBUG && "" + i;
20986
20930
  let l, r;
20987
20931
  i ? (l = o.y - a.y, r = a.x - o.x) : (l = a.x - o.x, r = a.y - o.y), e.fv = on(l, r);
20988
20932
  }
20989
20933
  function ZE(i) {
20990
20934
  const e = i.stack, t = e.pop(), s = e.pop();
20991
- exports.DEBUG && console.log(i.step, "SPVFS[]", t, s), i.pv = i.dpv = on(s, t);
20935
+ exports.DEBUG && i.step, i.pv = i.dpv = on(s, t);
20992
20936
  }
20993
20937
  function ex(i) {
20994
20938
  const e = i.stack, t = e.pop(), s = e.pop();
20995
- exports.DEBUG && console.log(i.step, "SPVFS[]", t, s), i.fv = on(s, t);
20939
+ exports.DEBUG && i.step, i.fv = on(s, t);
20996
20940
  }
20997
20941
  function tx(i) {
20998
20942
  const e = i.stack, t = i.pv;
20999
- exports.DEBUG && console.log(i.step, "GPV[]"), e.push(t.x * 16384), e.push(t.y * 16384);
20943
+ exports.DEBUG && i.step, e.push(t.x * 16384), e.push(t.y * 16384);
21000
20944
  }
21001
20945
  function ix(i) {
21002
20946
  const e = i.stack, t = i.fv;
21003
- exports.DEBUG && console.log(i.step, "GFV[]"), e.push(t.x * 16384), e.push(t.y * 16384);
20947
+ exports.DEBUG && i.step, e.push(t.x * 16384), e.push(t.y * 16384);
21004
20948
  }
21005
20949
  function sx(i) {
21006
- i.fv = i.pv, exports.DEBUG && console.log(i.step, "SFVTPV[]");
20950
+ i.fv = i.pv, exports.DEBUG && i.step;
21007
20951
  }
21008
20952
  function nx(i) {
21009
20953
  const e = i.stack, t = e.pop(), s = e.pop(), n = e.pop(), o = e.pop(), a = e.pop(), l = i.z0, r = i.z1, c = l[t], u = l[s], d = r[n], f = r[o], h = i.z2[a];
21010
- exports.DEBUG && console.log("ISECT[], ", t, s, n, o, a);
20954
+ exports.DEBUG;
21011
20955
  const g = c.x, v = c.y, m = u.x, A = u.y, C = d.x, w = d.y, M = f.x, D = f.y, x = (g - m) * (w - D) - (v - A) * (C - M), E = g * A - v * m, B = C * D - w * M;
21012
20956
  h.x = (E * (C - M) - B * (g - m)) / x, h.y = (E * (w - D) - B * (v - A)) / x;
21013
20957
  }
21014
20958
  function ox(i) {
21015
- i.rp0 = i.stack.pop(), exports.DEBUG && console.log(i.step, "SRP0[]", i.rp0);
20959
+ i.rp0 = i.stack.pop(), exports.DEBUG && (i.step, i.rp0);
21016
20960
  }
21017
20961
  function ax(i) {
21018
- i.rp1 = i.stack.pop(), exports.DEBUG && console.log(i.step, "SRP1[]", i.rp1);
20962
+ i.rp1 = i.stack.pop(), exports.DEBUG && (i.step, i.rp1);
21019
20963
  }
21020
20964
  function rx(i) {
21021
- i.rp2 = i.stack.pop(), exports.DEBUG && console.log(i.step, "SRP2[]", i.rp2);
20965
+ i.rp2 = i.stack.pop(), exports.DEBUG && (i.step, i.rp2);
21022
20966
  }
21023
20967
  function lx(i) {
21024
20968
  const e = i.stack.pop();
21025
- switch (exports.DEBUG && console.log(i.step, "SZP0[]", e), i.zp0 = e, e) {
20969
+ switch (exports.DEBUG && i.step, i.zp0 = e, e) {
21026
20970
  case 0:
21027
20971
  i.tZone || po(i), i.z0 = i.tZone;
21028
20972
  break;
@@ -21035,7 +20979,7 @@ function lx(i) {
21035
20979
  }
21036
20980
  function cx(i) {
21037
20981
  const e = i.stack.pop();
21038
- switch (exports.DEBUG && console.log(i.step, "SZP1[]", e), i.zp1 = e, e) {
20982
+ switch (exports.DEBUG && i.step, i.zp1 = e, e) {
21039
20983
  case 0:
21040
20984
  i.tZone || po(i), i.z1 = i.tZone;
21041
20985
  break;
@@ -21048,7 +20992,7 @@ function cx(i) {
21048
20992
  }
21049
20993
  function ux(i) {
21050
20994
  const e = i.stack.pop();
21051
- switch (exports.DEBUG && console.log(i.step, "SZP2[]", e), i.zp2 = e, e) {
20995
+ switch (exports.DEBUG && i.step, i.zp2 = e, e) {
21052
20996
  case 0:
21053
20997
  i.tZone || po(i), i.z2 = i.tZone;
21054
20998
  break;
@@ -21061,7 +21005,7 @@ function ux(i) {
21061
21005
  }
21062
21006
  function hx(i) {
21063
21007
  const e = i.stack.pop();
21064
- switch (exports.DEBUG && console.log(i.step, "SZPS[]", e), i.zp0 = i.zp1 = i.zp2 = e, e) {
21008
+ switch (exports.DEBUG && i.step, i.zp0 = i.zp1 = i.zp2 = e, e) {
21065
21009
  case 0:
21066
21010
  i.tZone || po(i), i.z0 = i.z1 = i.z2 = i.tZone;
21067
21011
  break;
@@ -21073,121 +21017,113 @@ function hx(i) {
21073
21017
  }
21074
21018
  }
21075
21019
  function dx(i) {
21076
- i.loop = i.stack.pop(), exports.DEBUG && console.log(i.step, "SLOOP[]", i.loop);
21020
+ i.loop = i.stack.pop(), exports.DEBUG && (i.step, i.loop);
21077
21021
  }
21078
21022
  function fx(i) {
21079
- exports.DEBUG && console.log(i.step, "RTG[]"), i.round = td;
21023
+ exports.DEBUG && i.step, i.round = td;
21080
21024
  }
21081
21025
  function gx(i) {
21082
- exports.DEBUG && console.log(i.step, "RTHG[]"), i.round = KE;
21026
+ exports.DEBUG && i.step, i.round = KE;
21083
21027
  }
21084
21028
  function px(i) {
21085
21029
  const e = i.stack.pop();
21086
- exports.DEBUG && console.log(i.step, "SMD[]", e), i.minDis = e / 64;
21030
+ exports.DEBUG && i.step, i.minDis = e / 64;
21087
21031
  }
21088
21032
  function mx(i) {
21089
- exports.DEBUG && console.log(i.step, "ELSE[]"), sd(i, !1);
21033
+ exports.DEBUG && i.step, sd(i, !1);
21090
21034
  }
21091
21035
  function Ax(i) {
21092
21036
  const e = i.stack.pop();
21093
- exports.DEBUG && console.log(i.step, "JMPR[]", e), i.ip += e - 1;
21037
+ exports.DEBUG && i.step, i.ip += e - 1;
21094
21038
  }
21095
21039
  function vx(i) {
21096
21040
  const e = i.stack.pop();
21097
- exports.DEBUG && console.log(i.step, "SCVTCI[]", e), i.cvCutIn = e / 64;
21041
+ exports.DEBUG && i.step, i.cvCutIn = e / 64;
21098
21042
  }
21099
21043
  function yx(i) {
21100
21044
  const e = i.stack;
21101
- exports.DEBUG && console.log(i.step, "DUP[]"), e.push(e[e.length - 1]);
21045
+ exports.DEBUG && i.step, e.push(e[e.length - 1]);
21102
21046
  }
21103
21047
  function Wo(i) {
21104
- exports.DEBUG && console.log(i.step, "POP[]"), i.stack.pop();
21048
+ exports.DEBUG && i.step, i.stack.pop();
21105
21049
  }
21106
21050
  function Cx(i) {
21107
- exports.DEBUG && console.log(i.step, "CLEAR[]"), i.stack.length = 0;
21051
+ exports.DEBUG && i.step, i.stack.length = 0;
21108
21052
  }
21109
21053
  function bx(i) {
21110
21054
  const e = i.stack, t = e.pop(), s = e.pop();
21111
- exports.DEBUG && console.log(i.step, "SWAP[]"), e.push(t), e.push(s);
21055
+ exports.DEBUG && i.step, e.push(t), e.push(s);
21112
21056
  }
21113
21057
  function wx(i) {
21114
21058
  const e = i.stack;
21115
- exports.DEBUG && console.log(i.step, "DEPTH[]"), e.push(e.length);
21059
+ exports.DEBUG && i.step, e.push(e.length);
21116
21060
  }
21117
21061
  function Ex(i) {
21118
21062
  const e = i.stack, t = e.pop(), s = e.pop();
21119
- exports.DEBUG && console.log(i.step, "LOOPCALL[]", t, s);
21063
+ exports.DEBUG && i.step;
21120
21064
  const n = i.ip, o = i.prog;
21121
21065
  i.prog = i.funcs[t];
21122
21066
  for (let a = 0; a < s; a++)
21123
- _i(i), exports.DEBUG && console.log(
21124
- ++i.step,
21125
- a + 1 < s ? "next loopcall" : "done loopcall",
21126
- a
21127
- );
21067
+ _i(i), exports.DEBUG && (++i.step, a + 1 < s);
21128
21068
  i.ip = n, i.prog = o;
21129
21069
  }
21130
21070
  function xx(i) {
21131
21071
  const e = i.stack.pop();
21132
- exports.DEBUG && console.log(i.step, "CALL[]", e);
21072
+ exports.DEBUG && i.step;
21133
21073
  const t = i.ip, s = i.prog;
21134
- i.prog = i.funcs[e], _i(i), i.ip = t, i.prog = s, exports.DEBUG && console.log(++i.step, "returning from", e);
21074
+ i.prog = i.funcs[e], _i(i), i.ip = t, i.prog = s, exports.DEBUG && ++i.step;
21135
21075
  }
21136
21076
  function Ix(i) {
21137
21077
  const e = i.stack, t = e.pop();
21138
- exports.DEBUG && console.log(i.step, "CINDEX[]", t), e.push(e[e.length - t]);
21078
+ exports.DEBUG && i.step, e.push(e[e.length - t]);
21139
21079
  }
21140
21080
  function Sx(i) {
21141
21081
  const e = i.stack, t = e.pop();
21142
- exports.DEBUG && console.log(i.step, "MINDEX[]", t), e.push(e.splice(e.length - t, 1)[0]);
21082
+ exports.DEBUG && i.step, e.push(e.splice(e.length - t, 1)[0]);
21143
21083
  }
21144
21084
  function Mx(i) {
21145
21085
  if (i.env !== "fpgm") throw new Error("FDEF not allowed here");
21146
21086
  const e = i.stack, t = i.prog;
21147
21087
  let s = i.ip;
21148
21088
  const n = e.pop(), o = s;
21149
- for (exports.DEBUG && console.log(i.step, "FDEF[]", n); t[++s] !== 45; ) ;
21089
+ for (exports.DEBUG && i.step; t[++s] !== 45; ) ;
21150
21090
  i.ip = s, i.funcs[n] = t.slice(o + 1, s);
21151
21091
  }
21152
- function hc(i, e) {
21092
+ function dc(i, e) {
21153
21093
  const t = e.stack.pop(), s = e.z0[t], n = e.fv, o = e.pv;
21154
- exports.DEBUG && console.log(e.step, "MDAP[" + i + "]", t);
21094
+ exports.DEBUG && (e.step, "" + i);
21155
21095
  let a = o.distance(s, Vs);
21156
21096
  i && (a = e.round(a)), n.setRelative(s, Vs, a, o), n.touch(s), e.rp0 = e.rp1 = t;
21157
21097
  }
21158
- function dc(i, e) {
21098
+ function fc(i, e) {
21159
21099
  const t = e.z2, s = t.length - 2;
21160
21100
  let n, o, a;
21161
- exports.DEBUG && console.log(e.step, "IUP[" + i.axis + "]");
21101
+ exports.DEBUG && (e.step, "" + i.axis);
21162
21102
  for (let l = 0; l < s; l++)
21163
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)));
21164
21104
  }
21165
- function fc(i, e) {
21105
+ function gc(i, e) {
21166
21106
  const t = e.stack, s = i ? e.rp1 : e.rp2, n = (i ? e.z0 : e.z1)[s], o = e.fv, a = e.pv;
21167
21107
  let l = e.loop;
21168
21108
  const r = e.z2;
21169
21109
  for (; l--; ) {
21170
21110
  const c = t.pop(), u = r[c], d = a.distance(n, n, !1, !0);
21171
- o.setRelative(u, u, d, a), o.touch(u), exports.DEBUG && console.log(
21172
- e.step,
21173
- (e.loop > 1 ? "loop " + (e.loop - l) + ": " : "") + "SHP[" + (i ? "rp1" : "rp2") + "]",
21174
- c
21175
- );
21111
+ o.setRelative(u, u, d, a), o.touch(u), exports.DEBUG && (e.step, (e.loop > 1 ? "loop " + (e.loop - l) + ": " : "") + "" + (i ? "rp1" : "rp2"));
21176
21112
  }
21177
21113
  e.loop = 1;
21178
21114
  }
21179
- function gc(i, e) {
21115
+ function pc(i, e) {
21180
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]];
21181
21117
  let c = r;
21182
- exports.DEBUG && console.log(e.step, "SHC[" + i + "]", l);
21118
+ exports.DEBUG && (e.step, "" + i);
21183
21119
  const u = a.distance(n, n, !1, !0);
21184
21120
  do
21185
21121
  c !== n && o.setRelative(c, c, u, a), c = c.nextPointOnContour;
21186
21122
  while (c !== r);
21187
21123
  }
21188
- function pc(i, e) {
21124
+ function mc(i, e) {
21189
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();
21190
- exports.DEBUG && console.log(e.step, "SHZ[" + i + "]", l);
21126
+ exports.DEBUG && (e.step, "" + i);
21191
21127
  let r;
21192
21128
  switch (l) {
21193
21129
  case 0:
@@ -21210,12 +21146,7 @@ function Bx(i) {
21210
21146
  const s = i.fv, n = e.pop() / 64, o = i.z2;
21211
21147
  for (; t--; ) {
21212
21148
  const a = e.pop(), l = o[a];
21213
- exports.DEBUG && console.log(
21214
- i.step,
21215
- (i.loop > 1 ? "loop " + (i.loop - t) + ": " : "") + "SHPIX[]",
21216
- a,
21217
- n
21218
- ), s.setRelative(l, l, n), s.touch(l);
21149
+ exports.DEBUG && (i.step, (i.loop > 1 ? "loop " + (i.loop - t) + ": " : "") + ""), s.setRelative(l, l, n), s.touch(l);
21219
21150
  }
21220
21151
  i.loop = 1;
21221
21152
  }
@@ -21225,20 +21156,13 @@ function Tx(i) {
21225
21156
  const o = i.z0[t], a = i.z1[s], l = i.fv, r = i.dpv, c = i.z2;
21226
21157
  for (; n--; ) {
21227
21158
  const u = e.pop(), d = c[u];
21228
- exports.DEBUG && console.log(
21229
- i.step,
21230
- (i.loop > 1 ? "loop " + (i.loop - n) + ": " : "") + "IP[]",
21231
- u,
21232
- t,
21233
- "<->",
21234
- s
21235
- ), l.interpolate(d, o, a, r), l.touch(d);
21159
+ exports.DEBUG && (i.step, (i.loop > 1 ? "loop " + (i.loop - n) + ": " : "") + ""), l.interpolate(d, o, a, r), l.touch(d);
21236
21160
  }
21237
21161
  i.loop = 1;
21238
21162
  }
21239
- function mc(i, e) {
21163
+ function Ac(i, e) {
21240
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;
21241
- l.setRelative(o, a, s, r), l.touch(o), exports.DEBUG && console.log(e.step, "MSIRP[" + i + "]", s, n), e.rp1 = e.rp0, e.rp2 = n, i && (e.rp0 = n);
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);
21242
21166
  }
21243
21167
  function Px(i) {
21244
21168
  const e = i.stack, t = i.rp0, s = i.z0[t];
@@ -21246,29 +21170,17 @@ function Px(i) {
21246
21170
  const o = i.fv, a = i.pv, l = i.z1;
21247
21171
  for (; n--; ) {
21248
21172
  const r = e.pop(), c = l[r];
21249
- exports.DEBUG && console.log(
21250
- i.step,
21251
- (i.loop > 1 ? "loop " + (i.loop - n) + ": " : "") + "ALIGNRP[]",
21252
- r
21253
- ), o.setRelative(c, s, 0, a), o.touch(c);
21173
+ exports.DEBUG && (i.step, (i.loop > 1 ? "loop " + (i.loop - n) + ": " : "") + ""), o.setRelative(c, s, 0, a), o.touch(c);
21254
21174
  }
21255
21175
  i.loop = 1;
21256
21176
  }
21257
21177
  function Dx(i) {
21258
- exports.DEBUG && console.log(i.step, "RTDG[]"), i.round = $E;
21178
+ exports.DEBUG && i.step, i.round = $E;
21259
21179
  }
21260
- function Ac(i, e) {
21180
+ function vc(i, e) {
21261
21181
  const t = e.stack, s = t.pop(), n = t.pop(), o = e.z0[n], a = e.fv, l = e.pv;
21262
21182
  let r = e.cvt[s];
21263
- exports.DEBUG && console.log(
21264
- e.step,
21265
- "MIAP[" + i + "]",
21266
- s,
21267
- "(",
21268
- r,
21269
- ")",
21270
- n
21271
- );
21183
+ exports.DEBUG && (e.step, "" + i);
21272
21184
  let c = l.distance(o, Vs);
21273
21185
  i && (Math.abs(c - r) < e.cvCutIn && (c = r), c = e.round(c)), a.setRelative(o, Vs, c, l), e.zp0 === 0 && (o.xo = o.x, o.yo = o.y), a.touch(o), e.rp0 = e.rp1 = n;
21274
21186
  }
@@ -21276,14 +21188,14 @@ function _x(i) {
21276
21188
  const e = i.prog;
21277
21189
  let t = i.ip;
21278
21190
  const s = i.stack, n = e[++t];
21279
- exports.DEBUG && console.log(i.step, "NPUSHB[]", n);
21191
+ exports.DEBUG && i.step;
21280
21192
  for (let o = 0; o < n; o++) s.push(e[++t]);
21281
21193
  i.ip = t;
21282
21194
  }
21283
21195
  function kx(i) {
21284
21196
  let e = i.ip;
21285
21197
  const t = i.prog, s = i.stack, n = t[++e];
21286
- exports.DEBUG && console.log(i.step, "NPUSHW[]", n);
21198
+ exports.DEBUG && i.step;
21287
21199
  for (let o = 0; o < n; o++) {
21288
21200
  let a = t[++e] << 8 | t[++e];
21289
21201
  a & 32768 && (a = -((a ^ 65535) + 1)), s.push(a);
@@ -21295,163 +21207,163 @@ function Lx(i) {
21295
21207
  let t = i.store;
21296
21208
  t || (t = i.store = []);
21297
21209
  const s = e.pop(), n = e.pop();
21298
- exports.DEBUG && console.log(i.step, "WS", s, n), t[n] = s;
21210
+ exports.DEBUG && i.step, t[n] = s;
21299
21211
  }
21300
21212
  function Rx(i) {
21301
21213
  const e = i.stack, t = i.store, s = e.pop();
21302
- exports.DEBUG && console.log(i.step, "RS", s);
21214
+ exports.DEBUG && i.step;
21303
21215
  const n = t && t[s] || 0;
21304
21216
  e.push(n);
21305
21217
  }
21306
21218
  function Fx(i) {
21307
21219
  const e = i.stack, t = e.pop(), s = e.pop();
21308
- exports.DEBUG && console.log(i.step, "WCVTP", t, s), i.cvt[s] = t / 64;
21220
+ exports.DEBUG && i.step, i.cvt[s] = t / 64;
21309
21221
  }
21310
21222
  function Ox(i) {
21311
21223
  const e = i.stack, t = e.pop();
21312
- exports.DEBUG && console.log(i.step, "RCVT", t), e.push(i.cvt[t] * 64);
21224
+ exports.DEBUG && i.step, e.push(i.cvt[t] * 64);
21313
21225
  }
21314
- function vc(i, e) {
21226
+ function yc(i, e) {
21315
21227
  const t = e.stack, s = t.pop(), n = e.z2[s];
21316
- exports.DEBUG && console.log(e.step, "GC[" + i + "]", s), t.push(e.dpv.distance(n, Vs, i, !1) * 64);
21228
+ exports.DEBUG && (e.step, "" + i), t.push(e.dpv.distance(n, Vs, i, !1) * 64);
21317
21229
  }
21318
- function yc(i, e) {
21230
+ function Cc(i, e) {
21319
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);
21320
- exports.DEBUG && console.log(e.step, "MD[" + i + "]", s, n, "->", l), e.stack.push(Math.round(l * 64));
21232
+ exports.DEBUG && (e.step, "" + i), e.stack.push(Math.round(l * 64));
21321
21233
  }
21322
21234
  function Gx(i) {
21323
- exports.DEBUG && console.log(i.step, "MPPEM[]"), i.stack.push(i.ppem);
21235
+ exports.DEBUG && i.step, i.stack.push(i.ppem);
21324
21236
  }
21325
21237
  function Ux(i) {
21326
- exports.DEBUG && console.log(i.step, "FLIPON[]"), i.autoFlip = !0;
21238
+ exports.DEBUG && i.step, i.autoFlip = !0;
21327
21239
  }
21328
21240
  function Nx(i) {
21329
21241
  const e = i.stack, t = e.pop(), s = e.pop();
21330
- exports.DEBUG && console.log(i.step, "LT[]", t, s), e.push(s < t ? 1 : 0);
21242
+ exports.DEBUG && i.step, e.push(s < t ? 1 : 0);
21331
21243
  }
21332
21244
  function Qx(i) {
21333
21245
  const e = i.stack, t = e.pop(), s = e.pop();
21334
- exports.DEBUG && console.log(i.step, "LTEQ[]", t, s), e.push(s <= t ? 1 : 0);
21246
+ exports.DEBUG && i.step, e.push(s <= t ? 1 : 0);
21335
21247
  }
21336
21248
  function Hx(i) {
21337
21249
  const e = i.stack, t = e.pop(), s = e.pop();
21338
- exports.DEBUG && console.log(i.step, "GT[]", t, s), e.push(s > t ? 1 : 0);
21250
+ exports.DEBUG && i.step, e.push(s > t ? 1 : 0);
21339
21251
  }
21340
21252
  function Yx(i) {
21341
21253
  const e = i.stack, t = e.pop(), s = e.pop();
21342
- exports.DEBUG && console.log(i.step, "GTEQ[]", t, s), e.push(s >= t ? 1 : 0);
21254
+ exports.DEBUG && i.step, e.push(s >= t ? 1 : 0);
21343
21255
  }
21344
21256
  function zx(i) {
21345
21257
  const e = i.stack, t = e.pop(), s = e.pop();
21346
- exports.DEBUG && console.log(i.step, "EQ[]", t, s), e.push(t === s ? 1 : 0);
21258
+ exports.DEBUG && i.step, e.push(t === s ? 1 : 0);
21347
21259
  }
21348
21260
  function Wx(i) {
21349
21261
  const e = i.stack, t = e.pop(), s = e.pop();
21350
- exports.DEBUG && console.log(i.step, "NEQ[]", t, s), e.push(t !== s ? 1 : 0);
21262
+ exports.DEBUG && i.step, e.push(t !== s ? 1 : 0);
21351
21263
  }
21352
21264
  function Vx(i) {
21353
21265
  const e = i.stack, t = e.pop();
21354
- exports.DEBUG && console.log(i.step, "ODD[]", t), e.push(Math.trunc(t) % 2 ? 1 : 0);
21266
+ exports.DEBUG && i.step, e.push(Math.trunc(t) % 2 ? 1 : 0);
21355
21267
  }
21356
21268
  function jx(i) {
21357
21269
  const e = i.stack, t = e.pop();
21358
- exports.DEBUG && console.log(i.step, "EVEN[]", t), e.push(Math.trunc(t) % 2 ? 0 : 1);
21270
+ exports.DEBUG && i.step, e.push(Math.trunc(t) % 2 ? 0 : 1);
21359
21271
  }
21360
21272
  function $x(i) {
21361
21273
  let e = i.stack.pop();
21362
- exports.DEBUG && console.log(i.step, "IF[]", e), e || (sd(i, !0), exports.DEBUG && console.log(i.step, "EIF[]"));
21274
+ exports.DEBUG && i.step, e || (sd(i, !0), exports.DEBUG && i.step);
21363
21275
  }
21364
21276
  function Kx(i) {
21365
- exports.DEBUG && console.log(i.step, "EIF[]");
21277
+ exports.DEBUG && i.step;
21366
21278
  }
21367
21279
  function qx(i) {
21368
21280
  const e = i.stack, t = e.pop(), s = e.pop();
21369
- exports.DEBUG && console.log(i.step, "AND[]", t, s), e.push(t && s ? 1 : 0);
21281
+ exports.DEBUG && i.step, e.push(t && s ? 1 : 0);
21370
21282
  }
21371
21283
  function Xx(i) {
21372
21284
  const e = i.stack, t = e.pop(), s = e.pop();
21373
- exports.DEBUG && console.log(i.step, "OR[]", t, s), e.push(t || s ? 1 : 0);
21285
+ exports.DEBUG && i.step, e.push(t || s ? 1 : 0);
21374
21286
  }
21375
21287
  function Jx(i) {
21376
21288
  const e = i.stack, t = e.pop();
21377
- exports.DEBUG && console.log(i.step, "NOT[]", t), e.push(t ? 0 : 1);
21289
+ exports.DEBUG && i.step, e.push(t ? 0 : 1);
21378
21290
  }
21379
21291
  function Vo(i, e) {
21380
21292
  const t = e.stack, s = t.pop(), n = e.fv, o = e.pv, a = e.ppem, l = e.deltaBase + (i - 1) * 16, r = e.deltaShift, c = e.z0;
21381
- exports.DEBUG && console.log(e.step, "DELTAP[" + i + "]", s, t);
21293
+ exports.DEBUG && (e.step, "" + i);
21382
21294
  for (let u = 0; u < s; u++) {
21383
21295
  const d = t.pop(), f = t.pop();
21384
21296
  if (l + ((f & 240) >> 4) !== a) continue;
21385
21297
  let g = (f & 15) - 8;
21386
- g >= 0 && g++, exports.DEBUG && console.log(e.step, "DELTAPFIX", d, "by", g * r);
21298
+ g >= 0 && g++, exports.DEBUG && (e.step, g * r);
21387
21299
  const v = c[d];
21388
21300
  n.setRelative(v, v, g * r, o);
21389
21301
  }
21390
21302
  }
21391
21303
  function Zx(i) {
21392
21304
  const t = i.stack.pop();
21393
- exports.DEBUG && console.log(i.step, "SDB[]", t), i.deltaBase = t;
21305
+ exports.DEBUG && i.step, i.deltaBase = t;
21394
21306
  }
21395
21307
  function e2(i) {
21396
21308
  const t = i.stack.pop();
21397
- exports.DEBUG && console.log(i.step, "SDS[]", t), i.deltaShift = Math.pow(0.5, t);
21309
+ exports.DEBUG && i.step, i.deltaShift = Math.pow(0.5, t);
21398
21310
  }
21399
21311
  function t2(i) {
21400
21312
  const e = i.stack, t = e.pop(), s = e.pop();
21401
- exports.DEBUG && console.log(i.step, "ADD[]", t, s), e.push(s + t);
21313
+ exports.DEBUG && i.step, e.push(s + t);
21402
21314
  }
21403
21315
  function i2(i) {
21404
21316
  const e = i.stack, t = e.pop(), s = e.pop();
21405
- exports.DEBUG && console.log(i.step, "SUB[]", t, s), e.push(s - t);
21317
+ exports.DEBUG && i.step, e.push(s - t);
21406
21318
  }
21407
21319
  function s2(i) {
21408
21320
  const e = i.stack, t = e.pop(), s = e.pop();
21409
- exports.DEBUG && console.log(i.step, "DIV[]", t, s), e.push(s * 64 / t);
21321
+ exports.DEBUG && i.step, e.push(s * 64 / t);
21410
21322
  }
21411
21323
  function n2(i) {
21412
21324
  const e = i.stack, t = e.pop(), s = e.pop();
21413
- exports.DEBUG && console.log(i.step, "MUL[]", t, s), e.push(s * t / 64);
21325
+ exports.DEBUG && i.step, e.push(s * t / 64);
21414
21326
  }
21415
21327
  function o2(i) {
21416
21328
  const e = i.stack, t = e.pop();
21417
- exports.DEBUG && console.log(i.step, "ABS[]", t), e.push(Math.abs(t));
21329
+ exports.DEBUG && i.step, e.push(Math.abs(t));
21418
21330
  }
21419
21331
  function a2(i) {
21420
21332
  const e = i.stack;
21421
21333
  let t = e.pop();
21422
- exports.DEBUG && console.log(i.step, "NEG[]", t), e.push(-t);
21334
+ exports.DEBUG && i.step, e.push(-t);
21423
21335
  }
21424
21336
  function r2(i) {
21425
21337
  const e = i.stack, t = e.pop();
21426
- exports.DEBUG && console.log(i.step, "FLOOR[]", t), e.push(Math.floor(t / 64) * 64);
21338
+ exports.DEBUG && i.step, e.push(Math.floor(t / 64) * 64);
21427
21339
  }
21428
21340
  function l2(i) {
21429
21341
  const e = i.stack, t = e.pop();
21430
- exports.DEBUG && console.log(i.step, "CEILING[]", t), e.push(Math.ceil(t / 64) * 64);
21342
+ exports.DEBUG && i.step, e.push(Math.ceil(t / 64) * 64);
21431
21343
  }
21432
21344
  function vn(i, e) {
21433
21345
  const t = e.stack, s = t.pop();
21434
- exports.DEBUG && console.log(e.step, "ROUND[]"), t.push(e.round(s / 64) * 64);
21346
+ exports.DEBUG && e.step, t.push(e.round(s / 64) * 64);
21435
21347
  }
21436
21348
  function c2(i) {
21437
21349
  const e = i.stack, t = e.pop(), s = e.pop();
21438
- exports.DEBUG && console.log(i.step, "WCVTF[]", t, s), i.cvt[s] = t * i.ppem / i.font.unitsPerEm;
21350
+ exports.DEBUG && i.step, i.cvt[s] = t * i.ppem / i.font.unitsPerEm;
21439
21351
  }
21440
21352
  function jo(i, e) {
21441
21353
  const t = e.stack, s = t.pop(), n = e.ppem, o = e.deltaBase + (i - 1) * 16, a = e.deltaShift;
21442
- exports.DEBUG && console.log(e.step, "DELTAC[" + i + "]", s, t);
21354
+ exports.DEBUG && (e.step, "" + i);
21443
21355
  for (let l = 0; l < s; l++) {
21444
21356
  const r = t.pop(), c = t.pop();
21445
21357
  if (o + ((c & 240) >> 4) !== n) continue;
21446
21358
  let d = (c & 15) - 8;
21447
21359
  d >= 0 && d++;
21448
21360
  const f = d * a;
21449
- exports.DEBUG && console.log(e.step, "DELTACFIX", r, "by", f), e.cvt[r] += f;
21361
+ exports.DEBUG && e.step, e.cvt[r] += f;
21450
21362
  }
21451
21363
  }
21452
21364
  function u2(i) {
21453
21365
  let e = i.stack.pop();
21454
- exports.DEBUG && console.log(i.step, "SROUND[]", e), i.round = id;
21366
+ exports.DEBUG && i.step, i.round = id;
21455
21367
  let t;
21456
21368
  switch (e & 192) {
21457
21369
  case 0:
@@ -21486,7 +21398,7 @@ function u2(i) {
21486
21398
  }
21487
21399
  function h2(i) {
21488
21400
  let e = i.stack.pop();
21489
- exports.DEBUG && console.log(i.step, "S45ROUND[]", e), i.round = id;
21401
+ exports.DEBUG && i.step, i.round = id;
21490
21402
  let t;
21491
21403
  switch (e & 192) {
21492
21404
  case 0:
@@ -21520,49 +21432,49 @@ function h2(i) {
21520
21432
  e &= 15, e === 0 ? i.srThreshold = 0 : i.srThreshold = (e / 8 - 0.5) * t;
21521
21433
  }
21522
21434
  function d2(i) {
21523
- exports.DEBUG && console.log(i.step, "ROFF[]"), i.round = jE;
21435
+ exports.DEBUG && i.step, i.round = jE;
21524
21436
  }
21525
21437
  function f2(i) {
21526
- exports.DEBUG && console.log(i.step, "RUTG[]"), i.round = qE;
21438
+ exports.DEBUG && i.step, i.round = qE;
21527
21439
  }
21528
21440
  function g2(i) {
21529
- exports.DEBUG && console.log(i.step, "RDTG[]"), i.round = XE;
21441
+ exports.DEBUG && i.step, i.round = XE;
21530
21442
  }
21531
21443
  function p2(i) {
21532
21444
  const e = i.stack.pop();
21533
- exports.DEBUG && console.log(i.step, "SCANCTRL[]", e);
21445
+ exports.DEBUG && i.step;
21534
21446
  }
21535
- function Cc(i, e) {
21447
+ function bc(i, e) {
21536
21448
  const t = e.stack, s = t.pop(), n = t.pop(), o = e.z2[s], a = e.z1[n];
21537
- exports.DEBUG && console.log(e.step, "SDPVTL[" + i + "]", s, n);
21449
+ exports.DEBUG && (e.step, "" + i);
21538
21450
  let l, r;
21539
21451
  i ? (l = o.y - a.y, r = a.x - o.x) : (l = a.x - o.x, r = a.y - o.y), e.dpv = on(l, r);
21540
21452
  }
21541
21453
  function m2(i) {
21542
21454
  const e = i.stack, t = e.pop();
21543
21455
  let s = 0;
21544
- exports.DEBUG && console.log(i.step, "GETINFO[]", t), t & 1 && (s = 35), t & 32 && (s |= 4096), e.push(s);
21456
+ exports.DEBUG && i.step, t & 1 && (s = 35), t & 32 && (s |= 4096), e.push(s);
21545
21457
  }
21546
21458
  function A2(i) {
21547
21459
  const e = i.stack, t = e.pop(), s = e.pop(), n = e.pop();
21548
- exports.DEBUG && console.log(i.step, "ROLL[]"), e.push(s), e.push(t), e.push(n);
21460
+ exports.DEBUG && i.step, e.push(s), e.push(t), e.push(n);
21549
21461
  }
21550
21462
  function v2(i) {
21551
21463
  const e = i.stack, t = e.pop(), s = e.pop();
21552
- exports.DEBUG && console.log(i.step, "MAX[]", t, s), e.push(Math.max(s, t));
21464
+ exports.DEBUG && i.step, e.push(Math.max(s, t));
21553
21465
  }
21554
21466
  function y2(i) {
21555
21467
  const e = i.stack, t = e.pop(), s = e.pop();
21556
- exports.DEBUG && console.log(i.step, "MIN[]", t, s), e.push(Math.min(s, t));
21468
+ exports.DEBUG && i.step, e.push(Math.min(s, t));
21557
21469
  }
21558
21470
  function C2(i) {
21559
21471
  const e = i.stack.pop();
21560
- exports.DEBUG && console.log(i.step, "SCANTYPE[]", e);
21472
+ exports.DEBUG && i.step;
21561
21473
  }
21562
21474
  function b2(i) {
21563
21475
  const e = i.stack.pop();
21564
21476
  let t = i.stack.pop();
21565
- switch (exports.DEBUG && console.log(i.step, "INSTCTRL[]", e, t), e) {
21477
+ switch (exports.DEBUG && i.step, e) {
21566
21478
  case 1:
21567
21479
  i.inhibitGridFit = !!t;
21568
21480
  return;
@@ -21576,14 +21488,14 @@ function b2(i) {
21576
21488
  function ti(i, e) {
21577
21489
  const t = e.stack, s = e.prog;
21578
21490
  let n = e.ip;
21579
- exports.DEBUG && console.log(e.step, "PUSHB[" + i + "]");
21491
+ exports.DEBUG && (e.step, "" + i);
21580
21492
  for (let o = 0; o < i; o++) t.push(s[++n]);
21581
21493
  e.ip = n;
21582
21494
  }
21583
21495
  function ii(i, e) {
21584
21496
  let t = e.ip;
21585
21497
  const s = e.prog, n = e.stack;
21586
- exports.DEBUG && console.log(e.ip, "PUSHW[" + i + "]");
21498
+ exports.DEBUG && (e.ip, "" + i);
21587
21499
  for (let o = 0; o < i; o++) {
21588
21500
  let a = s[++t] << 8 | s[++t];
21589
21501
  a & 32768 && (a = -((a ^ 65535) + 1)), n.push(a);
@@ -21593,39 +21505,29 @@ function ii(i, e) {
21593
21505
  function oe(i, e, t, s, n, o) {
21594
21506
  const a = o.stack, l = i && a.pop(), r = a.pop(), c = o.rp0, u = o.z0[c], d = o.z1[r], f = o.minDis, h = o.fv, g = o.dpv;
21595
21507
  let v, m, A, C;
21596
- m = v = g.distance(d, u, !0, !0), A = m >= 0 ? 1 : -1, m = Math.abs(m), i && (C = o.cvt[l], s && Math.abs(m - C) < o.cvCutIn && (m = C)), t && m < f && (m = f), s && (m = o.round(m)), h.setRelative(d, u, A * m, g), h.touch(d), exports.DEBUG && console.log(
21597
- o.step,
21598
- (i ? "MIRP[" : "MDRP[") + (e ? "M" : "m") + (t ? ">" : "_") + (s ? "R" : "_") + (n === 0 ? "Gr" : n === 1 ? "Bl" : n === 2 ? "Wh" : "") + "]",
21599
- i ? l + "(" + o.cvt[l] + "," + C + ")" : "",
21600
- r,
21601
- "(d =",
21602
- v,
21603
- "->",
21604
- A * m,
21605
- ")"
21606
- ), o.rp1 = o.rp0, o.rp2 = r, e && (o.rp0 = r);
21508
+ m = v = g.distance(d, u, !0, !0), A = m >= 0 ? 1 : -1, m = Math.abs(m), i && (C = o.cvt[l], s && Math.abs(m - C) < o.cvCutIn && (m = C)), t && m < f && (m = f), s && (m = o.round(m)), h.setRelative(d, u, A * m, g), h.touch(d), exports.DEBUG && (o.step, (i ? "MIRP[" : "MDRP[") + (e ? "M" : "m") + (t ? ">" : "_") + (s ? "R" : "_") + (n === 0 ? "Gr" : n === 1 ? "Bl" : n === 2 ? "Wh" : "") + "", i && l + "" + o.cvt[l] + C, A * m), o.rp1 = o.rp0, o.rp2 = r, e && (o.rp0 = r);
21607
21509
  }
21608
21510
  Jh = [
21609
21511
  /* 0x00 */
21610
- ac.bind(void 0, Kt),
21512
+ rc.bind(void 0, Kt),
21611
21513
  /* 0x01 */
21612
- ac.bind(void 0, Qt),
21514
+ rc.bind(void 0, Qt),
21613
21515
  /* 0x02 */
21614
- rc.bind(void 0, Kt),
21516
+ lc.bind(void 0, Kt),
21615
21517
  /* 0x03 */
21616
- rc.bind(void 0, Qt),
21518
+ lc.bind(void 0, Qt),
21617
21519
  /* 0x04 */
21618
- lc.bind(void 0, Kt),
21520
+ cc.bind(void 0, Kt),
21619
21521
  /* 0x05 */
21620
- lc.bind(void 0, Qt),
21522
+ cc.bind(void 0, Qt),
21621
21523
  /* 0x06 */
21622
- cc.bind(void 0, 0),
21524
+ uc.bind(void 0, 0),
21623
21525
  /* 0x07 */
21624
- cc.bind(void 0, 1),
21526
+ uc.bind(void 0, 1),
21625
21527
  /* 0x08 */
21626
- uc.bind(void 0, 0),
21528
+ hc.bind(void 0, 0),
21627
21529
  /* 0x09 */
21628
- uc.bind(void 0, 1),
21530
+ hc.bind(void 0, 1),
21629
21531
  /* 0x0A */
21630
21532
  ZE,
21631
21533
  /* 0x0B */
@@ -21704,41 +21606,41 @@ Jh = [
21704
21606
  void 0,
21705
21607
  // ENDF (eaten by FDEF)
21706
21608
  /* 0x2E */
21707
- hc.bind(void 0, 0),
21609
+ dc.bind(void 0, 0),
21708
21610
  /* 0x2F */
21709
- hc.bind(void 0, 1),
21611
+ dc.bind(void 0, 1),
21710
21612
  /* 0x30 */
21711
- dc.bind(void 0, Kt),
21613
+ fc.bind(void 0, Kt),
21712
21614
  /* 0x31 */
21713
- dc.bind(void 0, Qt),
21615
+ fc.bind(void 0, Qt),
21714
21616
  /* 0x32 */
21715
- fc.bind(void 0, 0),
21617
+ gc.bind(void 0, 0),
21716
21618
  /* 0x33 */
21717
- fc.bind(void 0, 1),
21619
+ gc.bind(void 0, 1),
21718
21620
  /* 0x34 */
21719
- gc.bind(void 0, 0),
21621
+ pc.bind(void 0, 0),
21720
21622
  /* 0x35 */
21721
- gc.bind(void 0, 1),
21623
+ pc.bind(void 0, 1),
21722
21624
  /* 0x36 */
21723
- pc.bind(void 0, 0),
21625
+ mc.bind(void 0, 0),
21724
21626
  /* 0x37 */
21725
- pc.bind(void 0, 1),
21627
+ mc.bind(void 0, 1),
21726
21628
  /* 0x38 */
21727
21629
  Bx,
21728
21630
  /* 0x39 */
21729
21631
  Tx,
21730
21632
  /* 0x3A */
21731
- mc.bind(void 0, 0),
21633
+ Ac.bind(void 0, 0),
21732
21634
  /* 0x3B */
21733
- mc.bind(void 0, 1),
21635
+ Ac.bind(void 0, 1),
21734
21636
  /* 0x3C */
21735
21637
  Px,
21736
21638
  /* 0x3D */
21737
21639
  Dx,
21738
21640
  /* 0x3E */
21739
- Ac.bind(void 0, 0),
21641
+ vc.bind(void 0, 0),
21740
21642
  /* 0x3F */
21741
- Ac.bind(void 0, 1),
21643
+ vc.bind(void 0, 1),
21742
21644
  /* 0x40 */
21743
21645
  _x,
21744
21646
  /* 0x41 */
@@ -21752,16 +21654,16 @@ Jh = [
21752
21654
  /* 0x45 */
21753
21655
  Ox,
21754
21656
  /* 0x46 */
21755
- vc.bind(void 0, 0),
21657
+ yc.bind(void 0, 0),
21756
21658
  /* 0x47 */
21757
- vc.bind(void 0, 1),
21659
+ yc.bind(void 0, 1),
21758
21660
  /* 0x48 */
21759
21661
  void 0,
21760
21662
  // TODO SCFS
21761
21663
  /* 0x49 */
21762
- yc.bind(void 0, 0),
21664
+ Cc.bind(void 0, 0),
21763
21665
  /* 0x4A */
21764
- yc.bind(void 0, 1),
21666
+ Cc.bind(void 0, 1),
21765
21667
  /* 0x4B */
21766
21668
  Gx,
21767
21669
  /* 0x4C */
@@ -21895,9 +21797,9 @@ Jh = [
21895
21797
  /* 0x85 */
21896
21798
  p2,
21897
21799
  /* 0x86 */
21898
- Cc.bind(void 0, 0),
21800
+ bc.bind(void 0, 0),
21899
21801
  /* 0x87 */
21900
- Cc.bind(void 0, 1),
21802
+ bc.bind(void 0, 1),
21901
21803
  /* 0x88 */
21902
21804
  m2,
21903
21805
  /* 0x89 */
@@ -22611,7 +22513,7 @@ function Q2(i, e) {
22611
22513
  e("Font could not be loaded");
22612
22514
  }, t.send();
22613
22515
  }
22614
- function bc(i, e) {
22516
+ function wc(i, e) {
22615
22517
  const t = [];
22616
22518
  let s = 12;
22617
22519
  for (let n = 0; n < e; n += 1) {
@@ -22651,9 +22553,9 @@ function Y2(i) {
22651
22553
  let o, a = [];
22652
22554
  const l = ue.getTag(n, 0);
22653
22555
  if (l === "\0\0\0" || l === "true" || l === "typ1")
22654
- s.outlinesFormat = "truetype", o = ue.getUShort(n, 4), a = bc(n, o);
22556
+ s.outlinesFormat = "truetype", o = ue.getUShort(n, 4), a = wc(n, o);
22655
22557
  else if (l === "OTTO")
22656
- s.outlinesFormat = "cff", o = ue.getUShort(n, 4), a = bc(n, o);
22558
+ s.outlinesFormat = "cff", o = ue.getUShort(n, 4), a = wc(n, o);
22657
22559
  else if (l === "wOFF") {
22658
22560
  const D = ue.getTag(n, 4);
22659
22561
  if (D === "\0\0\0")
@@ -22704,7 +22606,7 @@ function Y2(i) {
22704
22606
  E = je(n, x), s.tables.os2 = ba.parse(E.data, E.offset);
22705
22607
  break;
22706
22608
  case "post":
22707
- E = je(n, x), s.tables.post = Wh.parse(E.data, E.offset), s.glyphNames = new er(s.tables.post);
22609
+ E = je(n, x), s.tables.post = Wh.parse(E.data, E.offset), s.glyphNames = new tr(s.tables.post);
22708
22610
  break;
22709
22611
  case "prep":
22710
22612
  E = je(n, x), C = new ue.Parser(E.data, E.offset), s.tables.prep = C.parseByteList(x.length);
@@ -22820,7 +22722,7 @@ function W2(i, e, t, s, n = 16) {
22820
22722
  }
22821
22723
  return o;
22822
22724
  }
22823
- function wc(i, e) {
22725
+ function Ec(i, e) {
22824
22726
  if (!i || !e) return !1;
22825
22727
  const t = i[0] ?? 0, s = i[1] ?? 0;
22826
22728
  let n = !1;
@@ -22838,7 +22740,7 @@ function $o(i) {
22838
22740
  function V2(i) {
22839
22741
  return i ? (Ii(i) > 0 && i.reverse(), an(i), i) : [];
22840
22742
  }
22841
- function Ec(i, e = 16) {
22743
+ function xc(i, e = 16) {
22842
22744
  if (!i || !Array.isArray(i.commands)) return [];
22843
22745
  const t = [];
22844
22746
  let s = [];
@@ -22894,7 +22796,7 @@ function j2(i, e, t = {}) {
22894
22796
  const C = e.getPaths(a, 0, 0, t.fontSize || 1) || [];
22895
22797
  let w = [];
22896
22798
  for (const O of C) {
22897
- const N = Ec(O, r);
22799
+ const N = xc(O, r);
22898
22800
  for (const R of N)
22899
22801
  if (R)
22900
22802
  for (const L of R)
@@ -22940,7 +22842,7 @@ function j2(i, e, t = {}) {
22940
22842
  S = 0, _ = 0;
22941
22843
  }
22942
22844
  for (const O of C) {
22943
- const N = Ec(O, r);
22845
+ const N = xc(O, r);
22944
22846
  if (!N || N.length === 0) continue;
22945
22847
  const R = N.map((F) => {
22946
22848
  if (!F) return [];
@@ -22965,8 +22867,8 @@ function j2(i, e, t = {}) {
22965
22867
  const W = Ii(U);
22966
22868
  Math.abs(W) > Q && (Q = Math.abs(W), F = T);
22967
22869
  }
22968
- const G = R[F], P = G ? Ii(G) : 0;
22969
- L = P >= 0 ? 1 : -1, s && console.log("[simple] auto fillSign=", L, "largest signed area=", P);
22870
+ const G = R[F];
22871
+ L = (G ? Ii(G) : 0) >= 0 ? 1 : -1;
22970
22872
  }
22971
22873
  const b = R.map((F, Q) => ({
22972
22874
  idx: Q,
@@ -22975,7 +22877,7 @@ function j2(i, e, t = {}) {
22975
22877
  absArea: Math.abs(Ii(F))
22976
22878
  }));
22977
22879
  for (const F of b)
22978
- F.isFilled = F.signedArea * L > 0, s && console.log("[simple] ring", F.idx, "signedArea=", F.signedArea.toExponential(), "isFilled=", F.isFilled);
22880
+ F.isFilled = F.signedArea * L > 0, s && (F.idx, F.signedArea.toExponential(), F.isFilled);
22979
22881
  const I = b.filter((F) => F.isFilled).sort((F, Q) => F.absArea - Q.absArea), k = b.filter((F) => !F.isFilled).sort((F, Q) => Q.absArea - F.absArea);
22980
22882
  for (const F of I) F.holes = [];
22981
22883
  for (const F of k) {
@@ -22988,16 +22890,16 @@ function j2(i, e, t = {}) {
22988
22890
  })(F.ring);
22989
22891
  let G = null;
22990
22892
  for (const P of I)
22991
- wc(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);
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);
22992
22894
  if (G) {
22993
22895
  if (G.absArea < F.absArea && k.length > 1)
22994
22896
  for (const P of I)
22995
- wc(Q, P.ring) && P.absArea > F.absArea && P.holes.push(F.ring);
22897
+ Ec(Q, P.ring) && P.absArea > F.absArea && P.holes.push(F.ring);
22996
22898
  else
22997
22899
  G.holes.push(F.ring);
22998
22900
  F.assigned = !0;
22999
22901
  } else
23000
- F.assigned = !1, s && console.log("[simple] hole not assigned idx=", F.idx);
22902
+ F.assigned = !1, s && F.idx;
23001
22903
  }
23002
22904
  for (const F of I) {
23003
22905
  const Q = $o(F.ring.slice()), G = (F.holes || []).map((P) => V2(P.slice()));
@@ -24521,7 +24423,7 @@ class eI extends Vt {
24521
24423
  clampToGround: !!this.style.clampToGround || !1
24522
24424
  },
24523
24425
  objId: this.objId
24524
- }), console.log("this.arrowEntity", this.arrowEntity);
24426
+ }), this.arrowEntity;
24525
24427
  }
24526
24428
  // ---------- control points ----------
24527
24429
  _createControlPoints() {
@@ -25157,7 +25059,7 @@ class tI {
25157
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;
25158
25060
  }
25159
25061
  }
25160
- class xc {
25062
+ class Ic {
25161
25063
  viewer;
25162
25064
  Cesium;
25163
25065
  drawTool;
@@ -25313,7 +25215,7 @@ class xc {
25313
25215
  }
25314
25216
  // 添加拖动处理器(修复并节流,基于 pickPosition)
25315
25217
  addDragHandler(e, t) {
25316
- if (console.log("移动线段"), this._dragHandler) {
25218
+ if (this._dragHandler) {
25317
25219
  try {
25318
25220
  this._dragHandler.destroy();
25319
25221
  } catch {
@@ -25765,7 +25667,7 @@ class xc {
25765
25667
  totalEntities: e.length,
25766
25668
  annotations: t
25767
25669
  }, n = JSON.stringify(s);
25768
- return console.log("标注数据已按类型分类保存,只包含重绘所需信息:", n), n;
25670
+ return n;
25769
25671
  } catch (e) {
25770
25672
  return console.error("保存标注失败:", e), !1;
25771
25673
  }
@@ -25804,7 +25706,7 @@ class xc {
25804
25706
  if (d && d.getEntity()) {
25805
25707
  n++, d.isEdit = !0;
25806
25708
  const f = d.getEntity();
25807
- f && !f._plotInstance && (f._plotInstance = d), f && !f.objId && (f.objId = d.objId), console.log(`Loaded ${l} entity with objId: ${d.objId}`);
25709
+ f && !f._plotInstance && (f._plotInstance = d), f && !f.objId && (f.objId = d.objId), `${l}${d.objId}`;
25808
25710
  }
25809
25711
  }
25810
25712
  break;
@@ -25849,7 +25751,7 @@ class xc {
25849
25751
  if (f) {
25850
25752
  n++, f.isEdit = !0;
25851
25753
  const h = f.getEntity ? f.getEntity() : f.entity || f;
25852
- h && (h._plotInstance = f, h.objId = f.objId || r.id, h.pickable = !0, h.polyline && (h.polyline.pickWidth = 10), console.log(`Loaded rectangle entity with objId: ${h.objId}, color: ${u.color}`));
25754
+ h && (h._plotInstance = f, h.objId = f.objId || r.id, h.pickable = !0, h.polyline && (h.polyline.pickWidth = 10), `${h.objId}${u.color}`);
25853
25755
  }
25854
25756
  }
25855
25757
  }
@@ -25873,9 +25775,8 @@ class xc {
25873
25775
  u.style.fontSize || (u.style.fontSize = 14), u.style.fontFamily || (u.style.fontFamily = "Arial");
25874
25776
  let d;
25875
25777
  try {
25876
- !u.positions && u.position && (u.positions = u.position), d = this.drawTool.createByPositions(u), !d && this.drawTool.startText && (console.log("使用startText创建文字"), this.drawTool.startText(u.style), this.drawTool.currentEntity && (this.drawTool.currentEntity.text = c, this.drawTool.currentEntity.position = u.position, d = this.drawTool.currentEntity));
25778
+ !u.positions && u.position && (u.positions = u.position), d = this.drawTool.createByPositions(u), !d && this.drawTool.startText && (this.drawTool.startText(u.style), this.drawTool.currentEntity && (this.drawTool.currentEntity.text = c, this.drawTool.currentEntity.position = u.position, d = this.drawTool.currentEntity));
25877
25779
  } catch (f) {
25878
- console.log("创建文字失败", f);
25879
25780
  }
25880
25781
  if (!d)
25881
25782
  try {
@@ -25924,12 +25825,11 @@ class xc {
25924
25825
  r.position.z || 0
25925
25826
  )
25926
25827
  };
25927
- c.style.image || (console.log("使用默认图片占位符"), c.style.image = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNlNTMyMzIiLz48L3N2Zz4="), c.style.width || (c.style.width = 50), c.style.height || (c.style.height = 50);
25828
+ c.style.image || (c.style.image = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNlNTMyMzIiLz48L3N2Zz4="), c.style.width || (c.style.width = 50), c.style.height || (c.style.height = 50);
25928
25829
  let u;
25929
25830
  try {
25930
- !c.positions && c.position && (c.positions = c.position), u = this.drawTool.createByPositions(c), !u && this.drawTool.startImage && (console.log("使用startImage创建图片"), this.drawTool.startImage(c.style.image, c.style), this.drawTool.currentEntity && (this.drawTool.currentEntity.position = c.position, u = this.drawTool.currentEntity));
25831
+ !c.positions && c.position && (c.positions = c.position), u = this.drawTool.createByPositions(c), !u && this.drawTool.startImage && (this.drawTool.startImage(c.style.image, c.style), this.drawTool.currentEntity && (this.drawTool.currentEntity.position = c.position, u = this.drawTool.currentEntity));
25931
25832
  } catch (d) {
25932
- console.log("创建图片失败", d);
25933
25833
  }
25934
25834
  if (!u)
25935
25835
  try {
@@ -25988,7 +25888,7 @@ class xc {
25988
25888
  if (h = this.drawTool.createByPositions(f), h) {
25989
25889
  n++, h.isEdit = !0;
25990
25890
  const g = h.getEntity ? h.getEntity() : h.entity || h;
25991
- g && (g._plotInstance = h, g.objId = h.objId || r.id, g.pickable = !0, g.polyline && (g.polyline.pickWidth = 10), console.log(`Loaded ${l} entity with objId: ${g.objId} using positions`)), d = !0;
25891
+ g && (g._plotInstance = h, g.objId = h.objId || r.id, g.pickable = !0, g.polyline && (g.polyline.pickWidth = 10), `${l}${g.objId}`), d = !0;
25992
25892
  }
25993
25893
  } catch (g) {
25994
25894
  console.warn(`drawTool.createByPositions(${l}) failed`, g);
@@ -26015,7 +25915,7 @@ class xc {
26015
25915
  if (m = this.drawTool.createByPositions(v), m) {
26016
25916
  n++, m.isEdit = !0;
26017
25917
  const A = m.getEntity ? m.getEntity() : m.entity || m;
26018
- A && (A._plotInstance = m, A.objId = m.objId || r.id, A.pickable = !0, A.polyline && (A.polyline.pickWidth = 10), console.log(`Loaded ${l} entity with objId: ${A.objId} using center and radius`));
25918
+ A && (A._plotInstance = m, A.objId = m.objId || r.id, A.pickable = !0, A.polyline && (A.polyline.pickWidth = 10), `${l}${A.objId}`);
26019
25919
  }
26020
25920
  } catch (A) {
26021
25921
  console.warn(`drawTool.createByPositions(${l}) with center/radius failed`, A);
@@ -26029,14 +25929,14 @@ class xc {
26029
25929
  break;
26030
25930
  }
26031
25931
  default:
26032
- console.log(`尝试加载未知类型实体: ${l}`);
25932
+ `${l}`;
26033
25933
  break;
26034
25934
  }
26035
25935
  });
26036
25936
  };
26037
25937
  return Object.keys(s).forEach((a) => {
26038
25938
  o(s[a], a);
26039
- }), console.log(`成功加载 ${n} 个标注实体`), this.drawTool && typeof this.drawTool.bindEdit == "function" && this.drawTool.bindEdit(), !0;
25939
+ }), `${n}`, this.drawTool && typeof this.drawTool.bindEdit == "function" && this.drawTool.bindEdit(), !0;
26040
25940
  } catch (t) {
26041
25941
  return console.error("加载标注失败:", t), !1;
26042
25942
  }
@@ -26047,7 +25947,7 @@ class xc {
26047
25947
  if (!this.selectedEntityObj) return !1;
26048
25948
  if (this.selectedEntityObj.setStyle && typeof this.selectedEntityObj.setStyle == "function")
26049
25949
  try {
26050
- return this.selectedEntityObj.setStyle({ color: e }), console.log("通过实体对象的setStyle方法修改颜色成功"), !0;
25950
+ return this.selectedEntityObj.setStyle({ color: e }), !0;
26051
25951
  } catch (n) {
26052
25952
  console.warn("通过setStyle修改颜色失败,尝试直接修改实体:", n);
26053
25953
  }
@@ -26137,7 +26037,7 @@ class xc {
26137
26037
  return this.selectedEntityObj = null, this.hideEntityOutline(), !0;
26138
26038
  }
26139
26039
  }
26140
- class sr {
26040
+ class nr {
26141
26041
  viewer;
26142
26042
  cesium;
26143
26043
  handler = null;
@@ -26620,7 +26520,7 @@ const $e = wt({
26620
26520
  showIcon: !0,
26621
26521
  duration: 3
26622
26522
  });
26623
- let We = null, Ic = null, Sc = !1, qo = null, yn = null, nr = null;
26523
+ let We = null, Sc = null, Mc = !1, qo = null, yn = null, or = null;
26624
26524
  function iI() {
26625
26525
  if (yn || typeof document > "u") return;
26626
26526
  const i = `
@@ -26696,10 +26596,10 @@ function iI() {
26696
26596
  yn = document.createElement("style"), yn.textContent = i, document.head.appendChild(yn);
26697
26597
  }
26698
26598
  function sI() {
26699
- if (Sc) return;
26700
- iI(), We = document.createElement("div"), We.className = "tech-alert-wrapper", (nr || document.body).appendChild(We), Ic = re({
26599
+ if (Mc) return;
26600
+ iI(), We = document.createElement("div"), We.className = "tech-alert-wrapper", (or || document.body).appendChild(We), Sc = re({
26701
26601
  setup() {
26702
- return () => $e.visible ? Fi(Lc, {
26602
+ return () => $e.visible ? Fi(Rc, {
26703
26603
  class: `tech-alert tech-alert-${$e.type}`,
26704
26604
  message: $e.title,
26705
26605
  description: $e.description,
@@ -26712,11 +26612,11 @@ function sI() {
26712
26612
  icon: () => $e.type === "loading" ? Fi(jd) : $e.type === "success" ? Fi($d) : $e.type === "error" ? Fi(Kd) : $e.type === "warning" ? Fi(qd) : Fi(Xd)
26713
26613
  }) : null;
26714
26614
  }
26715
- }), Md(Ic, We), Sc = !0;
26615
+ }), Md(Sc, We), Mc = !0;
26716
26616
  }
26717
26617
  function bs(i) {
26718
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;
26719
- const e = i.container || nr;
26619
+ const e = i.container || or;
26720
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%)"));
26721
26621
  const t = i.duration ?? ($e.type === "loading" ? 0 : 3);
26722
26622
  t > 0 && (qo = setTimeout(() => {
@@ -26725,7 +26625,7 @@ function bs(i) {
26725
26625
  }
26726
26626
  const be = {
26727
26627
  setContainer: (i) => {
26728
- nr = i, We && i && We.parentNode !== i && (i.appendChild(We), We.style.position = "absolute");
26628
+ or = i, We && i && We.parentNode !== i && (i.appendChild(We), We.style.position = "absolute");
26729
26629
  },
26730
26630
  info: (i, e, t, s) => bs({ type: "info", title: i, description: e, duration: t, container: s }),
26731
26631
  success: (i, e, t, s) => bs({ type: "success", title: i, description: e, duration: t, container: s }),
@@ -26934,7 +26834,6 @@ class nI {
26934
26834
  })
26935
26835
  );
26936
26836
  } else if (e === "arcgis") {
26937
- console.log("Switching to ArcGIS...");
26938
26837
  const a = t?.url || "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
26939
26838
  try {
26940
26839
  if (this.cesium.ArcGisMapServerImageryProvider.fromUrl) {
@@ -26968,11 +26867,7 @@ class nI {
26968
26867
  }
26969
26868
  } else if (e === "tianditu_img")
26970
26869
  return this.changeBaseMap("tianditu", { ...t, layerType: "img_w" });
26971
- if (this.lastBaseMapRequestId !== s) {
26972
- console.log("BaseMap switch cancelled due to new request.");
26973
- return;
26974
- }
26975
- n.removeAll(), o.forEach((a) => n.addImageryProvider(a));
26870
+ this.lastBaseMapRequestId === s && (n.removeAll(), o.forEach((a) => n.addImageryProvider(a)));
26976
26871
  }
26977
26872
  // 地名搜索 (天地图 API)
26978
26873
  async searchLocation(e, t) {
@@ -27138,7 +27033,7 @@ class nI {
27138
27033
  u = g > 0 ? g * c : 0;
27139
27034
  } else
27140
27035
  u = l * c;
27141
- u = Math.max(0.1, u), console.log(l);
27036
+ u = Math.max(0.1, u);
27142
27037
  let d = null;
27143
27038
  if (!n)
27144
27039
  d = a.direction;
@@ -27375,13 +27270,13 @@ function aI(i) {
27375
27270
  callbacks: a
27376
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 });
27377
27272
  let M;
27378
- const D = new sr({ cesium: r, viewer: f });
27273
+ const D = new nr({ cesium: r, viewer: f });
27379
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, {
27380
27275
  token: o.tiandituToken,
27381
27276
  layerType: o.tiandituLayerType,
27382
27277
  showAnnotation: o.tiandituShowLabel,
27383
27278
  url: o.arcgisUrl
27384
- }), 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" && (console.log("InitMap: Setting CAD Mode 2D"), m.setCadMode("2d"), M = new xc({ cesium: r, viewer: f })), v.events.on("tilesetLoaded", (y) => {
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) => {
27385
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);
27386
27281
  }), v.events.on("loadingStatus", (y) => {
27387
27282
  h && h.onLoadingStatus && h.onLoadingStatus(y);
@@ -27457,6 +27352,8 @@ function aI(i) {
27457
27352
  return await v._loadNodeDetailsForModel(S);
27458
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) => {
27459
27354
  v.setWatermarkEnabled(y), C.setWatermarkEnabled(y);
27355
+ }, h.applyWatermark = async (y = !0) => {
27356
+ await Ya(y, f.container);
27460
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) => {
27461
27358
  g.baseCompt.clearAllHaveSelected(), g.baseCompt.setSelectColorUserModelCpt(
27462
27359
  y.selectCpts,
@@ -27496,7 +27393,7 @@ function aI(i) {
27496
27393
  );
27497
27394
  }, h.setShadowDarkness = h.setShadowIntensity, h.switchSceneMode = async (y) => {
27498
27395
  const S = y ? "2d" : "3d";
27499
- await m.setCadMode(S), y && !M && (M = new xc({ cesium: r, viewer: f }), h.setGlobeVisibility(!0)), l.emit("setMode", S);
27396
+ await m.setCadMode(S), y && !M && (M = new Ic({ cesium: r, viewer: f }), h.setGlobeVisibility(!0)), l.emit("setMode", S);
27500
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(
27501
27398
  "getConfigure is not initialized. Please ensure LeitingSetting component is mounted."
27502
27399
  ), {}), h.setConfigure = (y) => {
@@ -27722,12 +27619,12 @@ function aI(i) {
27722
27619
  h.onSetTeleportTarget && h.onSetTeleportTarget(y);
27723
27620
  }, window.Methods = h;
27724
27621
  }
27725
- return console.log("methods", h), { Cesium: r, viewer: f, methods: h, menuEvents: l };
27622
+ return { Cesium: r, viewer: f, methods: h, menuEvents: l };
27726
27623
  }
27727
- function or(i) {
27624
+ function ar(i) {
27728
27625
  return Bd() ? (Td(i), !0) : !1;
27729
27626
  }
27730
- function ar(i) {
27627
+ function rr(i) {
27731
27628
  return typeof i == "function" ? i() : $(i);
27732
27629
  }
27733
27630
  const rI = typeof window < "u" && typeof document < "u";
@@ -27742,7 +27639,7 @@ function od(i, e = !0, t) {
27742
27639
  }
27743
27640
  function Si(i) {
27744
27641
  var e;
27745
- const t = ar(i);
27642
+ const t = rr(i);
27746
27643
  return (e = t?.$el) != null ? e : t;
27747
27644
  }
27748
27645
  const rn = rI ? window : void 0;
@@ -27754,7 +27651,7 @@ function dI(...i) {
27754
27651
  const o = [], a = () => {
27755
27652
  o.forEach((u) => u()), o.length = 0;
27756
27653
  }, l = (u, d, f, h) => (u.addEventListener(d, f, h), () => u.removeEventListener(d, f, h)), r = te(
27757
- () => [Si(e), ar(n)],
27654
+ () => [Si(e), rr(n)],
27758
27655
  ([u, d]) => {
27759
27656
  if (a(), !u)
27760
27657
  return;
@@ -27767,7 +27664,7 @@ function dI(...i) {
27767
27664
  ), c = () => {
27768
27665
  r(), a();
27769
27666
  };
27770
- return or(c), c;
27667
+ return ar(c), c;
27771
27668
  }
27772
27669
  function fI() {
27773
27670
  const i = H(!1), e = Pa();
@@ -27787,9 +27684,9 @@ function rd(i, e = {}) {
27787
27684
  }, l = () => {
27788
27685
  n && ("removeEventListener" in n ? n.removeEventListener("change", a) : n.removeListener(a));
27789
27686
  }, r = Pd(() => {
27790
- s.value && (l(), n = t.matchMedia(ar(i)), "addEventListener" in n ? n.addEventListener("change", a) : n.addListener(a), o.value = n.matches);
27687
+ s.value && (l(), n = t.matchMedia(rr(i)), "addEventListener" in n ? n.addEventListener("change", a) : n.addListener(a), o.value = n.matches);
27791
27688
  });
27792
- return or(() => {
27689
+ return ar(() => {
27793
27690
  r(), l(), n = void 0;
27794
27691
  }), o;
27795
27692
  }
@@ -27811,7 +27708,7 @@ function gI(i, e, t = {}) {
27811
27708
  ), u = () => {
27812
27709
  l(), c();
27813
27710
  };
27814
- return or(u), {
27711
+ return ar(u), {
27815
27712
  isSupported: a,
27816
27713
  stop: u
27817
27714
  };
@@ -27873,7 +27770,7 @@ function ld(i = {}) {
27873
27770
  }
27874
27771
  return { width: a, height: l };
27875
27772
  }
27876
- function rr() {
27773
+ function lr() {
27877
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 = () => {
27878
27775
  const g = navigator.userAgent.toLowerCase(), v = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i, m = navigator;
27879
27776
  if ("userAgentData" in navigator && m.userAgentData?.mobile !== void 0)
@@ -27955,7 +27852,7 @@ const mI = { class: "title" }, AI = { class: "actions" }, vI = { class: "card-bo
27955
27852
  },
27956
27853
  emits: ["update:visible", "update:open", "close"],
27957
27854
  setup(i, { emit: e }) {
27958
- const t = i, s = Ne("leiting-theme", H("dark")), { isMobile: n } = rr(), o = e, a = fe({
27855
+ const t = i, s = Ne("leiting-theme", H("dark")), { isMobile: n } = lr(), o = e, a = fe({
27959
27856
  get: () => t.open !== void 0 ? t.open : t.visible,
27960
27857
  set: (E) => {
27961
27858
  o("update:visible", E), o("update:open", E);
@@ -28187,7 +28084,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
28187
28084
  },
28188
28085
  emits: ["update:visible", "update:open", "close", "select", "check"],
28189
28086
  setup(i, { emit: e }) {
28190
- const t = _a.Search, s = Rc, n = i, o = e, a = Ne("leiting-theme", H("dark")), l = Ne("leitingMethods"), r = (S) => {
28087
+ const t = _a.Search, s = Fc, n = i, o = e, a = Ne("leiting-theme", H("dark")), l = Ne("leitingMethods"), r = (S) => {
28191
28088
  l?.value?.onSearchComponent && l.value.onSearchComponent(S);
28192
28089
  }, c = fe({
28193
28090
  get: () => n.open !== void 0 ? n.open : n.visible,
@@ -28322,7 +28219,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
28322
28219
  _: 1
28323
28220
  }, 8, ["visible", "title", "initial-position", "full-height"]));
28324
28221
  }
28325
- }), 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==", Mc = "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 = {
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 = {
28326
28223
  key: 3,
28327
28224
  style: { "font-size": "12px" }
28328
28225
  }, UI = {
@@ -28354,14 +28251,14 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
28354
28251
  { ID: "home", title: "主视角", src: MI, key: "homeView" },
28355
28252
  { ID: "tree", title: "目录树", src: no, key: "componentTree" },
28356
28253
  { ID: "cadLayer", title: "图层", src: no, key: "cadLayer" },
28357
- { ID: "gisCadPosition", title: "GIS调整", src: Mc, key: "gisCadPosition" },
28254
+ { ID: "gisCadPosition", title: "GIS调整", src: Bc, key: "gisCadPosition" },
28358
28255
  { ID: "measure", title: "量算", src: BI, key: "measurement" },
28359
28256
  { ID: "section", title: "剖切", src: TI, key: "section" },
28360
28257
  { ID: "roam", title: "人物漫游", src: PI, key: "roam" },
28361
28258
  { ID: "info", title: "构件信息", src: DI, key: "componentInfo" },
28362
28259
  // { ID: 'location', title: '定位构件', src: locationIcon, key: 'location' },
28363
28260
  // { ID: 'adjust', title: '调整模型', src: adjustModelIcon, key: 'adjustModel' },
28364
- { ID: "cadPosition", title: "调整位置", src: Mc, key: "cadPosition" },
28261
+ { ID: "cadPosition", title: "调整位置", src: Bc, key: "cadPosition" },
28365
28262
  { ID: "annotation", title: "标注", src: kI, key: "annotation" },
28366
28263
  // { ID: 'map', title: '导航图', src: miniMapIcon, key: 'navigationMap' },
28367
28264
  // { ID: 'excavate', title: '压平与开挖', src: excavateIcon, key: 'excavate' },
@@ -28412,7 +28309,6 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
28412
28309
  }, v = (M) => {
28413
28310
  c.value = M;
28414
28311
  }, m = (M) => {
28415
- console.log("LeitingMenu received showMenu event:", M);
28416
28312
  }, A = (M, D) => {
28417
28313
  const x = f.value.find((E) => E.ID === M || E.key === M);
28418
28314
  if (x) {
@@ -29106,7 +29002,7 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
29106
29002
  }, 8, ["visible", "full-height"]));
29107
29003
  }
29108
29004
  }), Ma = /* @__PURE__ */ Ue(FS, [["__scopeId", "data-v-375a1f55"]]);
29109
- class lr {
29005
+ class cr {
29110
29006
  viewer;
29111
29007
  Cesium;
29112
29008
  pickHandler = null;
@@ -29222,7 +29118,7 @@ const OS = { class: "leitingbim-model-adjust-panel" }, GS = { class: "leitingbim
29222
29118
  set: (G) => {
29223
29119
  n("update:visible", G), n("update:open", G);
29224
29120
  }
29225
- }), 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 lr(a.value.getViewer(), a.value.getCesium())), g.value), m = () => {
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 = () => {
29226
29122
  v()?.clearMarkers(), f.value = null, h.value = null;
29227
29123
  }, A = (G, P) => {
29228
29124
  G === "BIM" ? f.value = P : h.value = P, v()?.addMarker(G, P), be.success(`${G === "BIM" ? "BIM" : "地图"}标记点已添加`);
@@ -29380,7 +29276,7 @@ const OS = { class: "leitingbim-model-adjust-panel" }, GS = { class: "leitingbim
29380
29276
  duration: 1.5
29381
29277
  });
29382
29278
  }, Q = () => {
29383
- a?.value?.saveRegion ? (a.value.saveRegion(u.value), n("save", $(u))) : (console.log("Save models:", u.value), be.warning("未找到保存接口,数据已打印控制台"));
29279
+ a?.value?.saveRegion ? (a.value.saveRegion(u.value), n("save", $(u))) : (u.value, be.warning("未找到保存接口,数据已打印控制台"));
29384
29280
  };
29385
29281
  return te(() => s.visible, (G) => {
29386
29282
  G ? (O(), N(), r.value === "pick" && C()) : (w(), m());
@@ -29738,9 +29634,9 @@ const wM = {
29738
29634
  timePickerLocale: oo({}, EM)
29739
29635
  };
29740
29636
  ud.lang.ok = "确定";
29741
- var Tn = { exports: {} }, xM = Tn.exports, Bc;
29637
+ var Tn = { exports: {} }, xM = Tn.exports, Tc;
29742
29638
  function hd() {
29743
- return Bc || (Bc = 1, (function(i, e) {
29639
+ return Tc || (Tc = 1, (function(i, e) {
29744
29640
  (function(t, s) {
29745
29641
  i.exports = s();
29746
29642
  })(xM, (function() {
@@ -30018,9 +29914,9 @@ function hd() {
30018
29914
  }
30019
29915
  var IM = hd();
30020
29916
  const Dt = /* @__PURE__ */ ds(IM);
30021
- var Pn = { exports: {} }, SM = Pn.exports, Tc;
29917
+ var Pn = { exports: {} }, SM = Pn.exports, Pc;
30022
29918
  function MM() {
30023
- return Tc || (Tc = 1, (function(i, e) {
29919
+ return Pc || (Pc = 1, (function(i, e) {
30024
29920
  (function(t, s) {
30025
29921
  i.exports = s(hd());
30026
29922
  })(SM, (function(t) {
@@ -30038,9 +29934,9 @@ function MM() {
30038
29934
  })(Pn)), Pn.exports;
30039
29935
  }
30040
29936
  MM();
30041
- var Dn = { exports: {} }, BM = Dn.exports, Pc;
29937
+ var Dn = { exports: {} }, BM = Dn.exports, Dc;
30042
29938
  function TM() {
30043
- return Pc || (Pc = 1, (function(i, e) {
29939
+ return Dc || (Dc = 1, (function(i, e) {
30044
29940
  (function(t, s) {
30045
29941
  i.exports = s();
30046
29942
  })(BM, (function() {
@@ -30118,9 +30014,9 @@ function TM() {
30118
30014
  }
30119
30015
  var PM = TM();
30120
30016
  const DM = /* @__PURE__ */ ds(PM);
30121
- var _n = { exports: {} }, _M = _n.exports, Dc;
30017
+ var _n = { exports: {} }, _M = _n.exports, _c;
30122
30018
  function kM() {
30123
- return Dc || (Dc = 1, (function(i, e) {
30019
+ return _c || (_c = 1, (function(i, e) {
30124
30020
  (function(t, s) {
30125
30021
  i.exports = s();
30126
30022
  })(_M, (function() {
@@ -30135,9 +30031,9 @@ function kM() {
30135
30031
  }
30136
30032
  var LM = kM();
30137
30033
  const RM = /* @__PURE__ */ ds(LM);
30138
- var kn = { exports: {} }, FM = kn.exports, _c;
30034
+ var kn = { exports: {} }, FM = kn.exports, kc;
30139
30035
  function OM() {
30140
- return _c || (_c = 1, (function(i, e) {
30036
+ return kc || (kc = 1, (function(i, e) {
30141
30037
  (function(t, s) {
30142
30038
  i.exports = s();
30143
30039
  })(FM, (function() {
@@ -30162,9 +30058,9 @@ function OM() {
30162
30058
  }
30163
30059
  var GM = OM();
30164
30060
  const UM = /* @__PURE__ */ ds(GM);
30165
- var Ln = { exports: {} }, NM = Ln.exports, kc;
30061
+ var Ln = { exports: {} }, NM = Ln.exports, Lc;
30166
30062
  function QM() {
30167
- return kc || (kc = 1, (function(i, e) {
30063
+ return Lc || (Lc = 1, (function(i, e) {
30168
30064
  (function(t, s) {
30169
30065
  i.exports = s();
30170
30066
  })(NM, (function() {
@@ -30340,7 +30236,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
30340
30236
  emits: ["update:visible", "update:open", "close"],
30341
30237
  setup(i, { emit: e }) {
30342
30238
  Dt.locale("zh-cn"), Dt.extend(DM), Dt.extend(RM), Dt.extend(UM), Dt.extend(YM);
30343
- const t = Fc, s = Pr.Group, n = Pr, o = _a, a = Xi, l = ns, r = ns.Option, c = zd, u = i, d = e, f = Ne("leitingMethods"), h = fe({
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({
30344
30240
  get: () => u.open !== void 0 ? u.open : u.visible,
30345
30241
  set: (b) => {
30346
30242
  d("update:visible", b), d("update:open", b);
@@ -31030,7 +30926,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
31030
30926
  return b ? b.modelName : "";
31031
30927
  }), A = () => {
31032
30928
  n("update:visible", !1);
31033
- }, C = () => (!d.value && o?.value?.getViewer && o?.value?.getCesium && (d.value = new lr(o.value.getViewer(), o.value.getCesium())), d.value), w = () => {
30929
+ }, C = () => (!d.value && o?.value?.getViewer && o?.value?.getCesium && (d.value = new cr(o.value.getViewer(), o.value.getCesium())), d.value), w = () => {
31034
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;
31035
30931
  }, M = (b) => {
31036
30932
  const I = u.value, k = h[I];
@@ -31702,7 +31598,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
31702
31598
  localOriginX: 0,
31703
31599
  localOriginY: 0,
31704
31600
  clampToGround: !1
31705
- }), 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 lr(
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(
31706
31602
  n.value.getViewer(),
31707
31603
  n.value.getCesium()
31708
31604
  )), u.value), m = () => {
@@ -32553,7 +32449,7 @@ const YM = /* @__PURE__ */ ds(HM), zM = { class: "setting-panel" }, WM = { class
32553
32449
  }, v = (E) => E > 1e6 ? `${(E / 1e6).toFixed(2)} km²` : `${E.toFixed(2)} m²`, m = () => {
32554
32450
  if (!o.value && n.value?.getViewer) {
32555
32451
  const E = n.value.getViewer(), B = n.value.getCesium();
32556
- E && B && (o.value = new sr({ viewer: E, cesium: B }), o.value.setUnit(l.value), o.value.setSnapping(r.value), o.value.onMeasure = (y) => {
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) => {
32557
32453
  c.value = y;
32558
32454
  });
32559
32455
  }
@@ -32736,7 +32632,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
32736
32632
  },
32737
32633
  emits: ["update:visible", "action"],
32738
32634
  setup(i, { emit: e }) {
32739
- const t = i, s = e, { isMobile: n } = rr(), o = fe(() => {
32635
+ const t = i, s = e, { isMobile: n } = lr(), o = fe(() => {
32740
32636
  let r = t.position.x, c = t.position.y;
32741
32637
  if (n.value) {
32742
32638
  const d = t.items.length * 48;
@@ -33008,7 +32904,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33008
32904
  })
33009
32905
  ]));
33010
32906
  }
33011
- }), cr = /* @__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({
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({
33012
32908
  __name: "MobileTree",
33013
32909
  props: {
33014
32910
  visible: { type: Boolean, default: !1 },
@@ -33126,7 +33022,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33126
33022
  }), h.observe(u.value));
33127
33023
  }), lt(() => {
33128
33024
  h && (h.disconnect(), h = null);
33129
- }), (_, O) => (Y(), ge(cr, {
33025
+ }), (_, O) => (Y(), ge(ur, {
33130
33026
  visible: o.value,
33131
33027
  title: "目录树",
33132
33028
  direction: "bottom",
@@ -33163,7 +33059,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33163
33059
  ref_key: "treeContentRef",
33164
33060
  ref: u
33165
33061
  }, [
33166
- v.value.length > 0 ? (Y(), ge($(Rc), {
33062
+ v.value.length > 0 ? (Y(), ge($(Fc), {
33167
33063
  key: 0,
33168
33064
  "tree-data": v.value,
33169
33065
  "field-names": a,
@@ -33606,7 +33502,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33606
33502
  }, y = () => {
33607
33503
  A.value ? r.value = [] : r.value = t.modelList.map((S) => S.modelId), s("model-change", r.value);
33608
33504
  };
33609
- return (S, _) => (Y(), ge(cr, {
33505
+ return (S, _) => (Y(), ge(ur, {
33610
33506
  visible: n.value,
33611
33507
  title: "剖切分析",
33612
33508
  direction: "bottom",
@@ -33619,13 +33515,13 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33619
33515
  p("div", GP, [
33620
33516
  p("div", UP, [
33621
33517
  _[6] || (_[6] = p("span", { class: "toggle-label" }, "显示剖切盒", -1)),
33622
- re($(Fc), {
33518
+ re($(Oc), {
33623
33519
  checked: o.value,
33624
33520
  "onUpdate:checked": _[0] || (_[0] = (O) => o.value = O),
33625
33521
  onChange: M
33626
33522
  }, null, 8, ["checked"])
33627
33523
  ]),
33628
- re($(Dr), {
33524
+ re($(_r), {
33629
33525
  value: a.value,
33630
33526
  "onUpdate:value": _[1] || (_[1] = (O) => a.value = O),
33631
33527
  "button-style": "solid",
@@ -33642,7 +33538,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33642
33538
  ]),
33643
33539
  _: 1
33644
33540
  }, 8, ["value"]),
33645
- re($(Dr), {
33541
+ re($(_r), {
33646
33542
  value: l.value,
33647
33543
  "onUpdate:value": _[3] || (_[3] = (O) => l.value = O),
33648
33544
  "button-style": "solid",
@@ -33778,7 +33674,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
33778
33674
  }), g = fe(() => r.value?.type || l.value), v = (M) => M === void 0 ? "--" : M.toFixed(3), m = () => {
33779
33675
  if (o) return;
33780
33676
  const M = n?.value;
33781
- M?.getViewer && (o = new sr({ viewer: M.getViewer(), cesium: M.getCesium() }), o.onMeasure = (D) => {
33677
+ M?.getViewer && (o = new nr({ viewer: M.getViewer(), cesium: M.getCesium() }), o.onMeasure = (D) => {
33782
33678
  a || (r.value = D);
33783
33679
  });
33784
33680
  }, A = (M) => {
@@ -34381,7 +34277,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34381
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 })));
34382
34278
  }), te(() => t.currentModelId, (M) => {
34383
34279
  M && t.visible && (o.value = M, h({ modelId: M }));
34384
- }), (M, D) => (Y(), ge(cr, {
34280
+ }), (M, D) => (Y(), ge(ur, {
34385
34281
  visible: l.value,
34386
34282
  title: "CAD图层",
34387
34283
  direction: "bottom",
@@ -34779,7 +34675,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34779
34675
  },
34780
34676
  emits: ["register", "init", "ready"],
34781
34677
  setup(i, { expose: e, emit: t }) {
34782
- const s = H(), n = H(), o = Pa(), a = H(!1), l = H(""), r = H({}), c = H("3d"), { isMobile: u } = rr(), d = i, f = {
34678
+ const s = H(), n = H(), o = Pa(), a = H(!1), l = H(""), r = H({}), c = H("3d"), { isMobile: u } = lr(), d = i, f = {
34783
34679
  title: "构件树",
34784
34680
  treeData: []
34785
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), {
@@ -34891,7 +34787,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34891
34787
  cesiumCssUrl: d.cesiumCssUrl || ws.cesiumCssUrl,
34892
34788
  accessToken: d.accessToken || Jd() || ws.accessToken
34893
34789
  };
34894
- await Oc(q), a.value = !0, ct = async (ne = {}, qe) => {
34790
+ await Gc(q), a.value = !0, ct = async (ne = {}, qe) => {
34895
34791
  if (s.value) {
34896
34792
  const {
34897
34793
  showMenu: Gt,
@@ -34912,30 +34808,30 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34912
34808
  collision: wd,
34913
34809
  mouseHabit: Ed,
34914
34810
  heightBasedZoom: xd,
34915
- mode: hr,
34811
+ mode: dr,
34916
34812
  ...Ut
34917
34813
  } = ne || {}, Id = d.showMenu !== void 0 ? d.showMenu : Gt !== void 0 ? Gt : !0;
34918
34814
  U.value = Id;
34919
- const at = (de, ze, Pt) => de !== void 0 ? de : ze !== void 0 ? ze : Pt, dr = at(d.globe, Ai, !1), fr = at(d.terrain, Zt, !1), gr = at(d.depthTest, mo, !1), pr = at(d.mapProvider, dd, "tianditu"), mr = at(d.tiandituLayerType, fd, "img_w"), Ar = at(d.tiandituShowLabel, gd, !1), vr = at(d.arcgisUrl, pd, "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"), yr = at(d.shadows, md, !1), Cr = at(d.environmentMap, Ad, !1), br = at(d.ambientOcclusion, vd, !1), wr = at(d.time, yd, void 0), Er = at(d.brightness, Cd, 1), ln = d.mode || hr || "3d";
34920
- console.log("LeitingBIM Mode:", ln, "Props:", d.mode, "Options:", hr), c.value = ln;
34921
- const Sd = ln === "2d" ? "#000000" : "linear-gradient(0deg, rgb(238, 247, 255) 0%, rgb(178, 218, 244) 70%, rgb(141, 190, 221) 100%)", xr = at(d.backgroundColor, bd, Sd), Ir = at(d.collision, wd, !1), Sr = at(d.mouseHabit, Ed, 0), Mr = at(d.heightBasedZoom, xd, !1);
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";
34816
+ d.mode, c.value = ln;
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);
34922
34818
  r.value = {
34923
- globe: dr,
34924
- terrain: fr,
34925
- depthTest: gr,
34926
- mapProvider: pr,
34927
- tiandituLayerType: mr,
34928
- tiandituShowLabel: Ar,
34929
- arcgisUrl: vr,
34930
- shadows: yr,
34931
- environmentMap: Cr,
34932
- ambientOcclusion: br,
34933
- time: wr,
34934
- brightness: Er,
34935
- backgroundColor: xr,
34936
- collision: Ir,
34937
- mouseHabit: Sr,
34938
- heightBasedZoom: Mr,
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,
34939
34835
  useBrowserRecommendedResolution: !0
34940
34836
  };
34941
34837
  const fs = aI({
@@ -34959,7 +34855,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34959
34855
  console.warn("Failed to lazy load tree", ps);
34960
34856
  }
34961
34857
  ze && (Array.isArray(ze) ? ze : [ze]).forEach((yi) => {
34962
- yi && !Q.value.find((Tr) => Tr.id === yi.id) && (yi.modelId = Pt, Q.value = [...Q.value, yi]);
34858
+ yi && !Q.value.find((Pr) => Pr.id === yi.id) && (yi.modelId = Pt, Q.value = [...Q.value, yi]);
34963
34859
  });
34964
34860
  const { brightness: Ao, contrast: vo, saturation: jt } = fs.methods.getConfigure();
34965
34861
  fs.methods.setModelColorAdjustment({
@@ -35012,23 +34908,23 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
35012
34908
  playerModelId: d.playerModelId,
35013
34909
  playerScale: d.playerScale,
35014
34910
  // Pass resolved configs to InitMap
35015
- globe: dr,
35016
- terrain: fr,
35017
- depthTest: gr,
35018
- mapProvider: pr,
35019
- tiandituLayerType: mr,
35020
- tiandituShowLabel: Ar,
34911
+ globe: fr,
34912
+ terrain: gr,
34913
+ depthTest: pr,
34914
+ mapProvider: mr,
34915
+ tiandituLayerType: Ar,
34916
+ tiandituShowLabel: vr,
35021
34917
  tiandituToken: d.tiandituToken,
35022
- arcgisUrl: vr,
35023
- shadows: yr,
35024
- environmentMap: Cr,
35025
- ambientOcclusion: br,
35026
- time: wr,
35027
- brightness: Er,
35028
- backgroundColor: xr,
35029
- collision: Ir,
35030
- mouseHabit: Sr,
35031
- heightBasedZoom: Mr
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
35032
34928
  },
35033
34929
  callbacks: {
35034
34930
  onLoading: (de) => de ? be.loading(de, "", n.value) : be.close(),
@@ -35105,8 +35001,8 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
35105
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) => {
35106
35002
  X.value = de;
35107
35003
  }, await ci();
35108
- const Br = ne?.onLoaded || ne?.onloaded;
35109
- Br && Br({ Cesium: vi, viewer: Ri, methods: cn }), tt("init", { Cesium: vi, viewer: Ri, methods: cn }), tt("ready", { Cesium: vi, viewer: Ri, methods: cn });
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 });
35110
35006
  }
35111
35007
  };
35112
35008
  let j = !1;
@@ -35134,7 +35030,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
35134
35030
  size: "large",
35135
35031
  tip: "加载基础组件中..."
35136
35032
  })) : ae("", !0),
35137
- l.value ? (Y(), ge($(Lc), {
35033
+ l.value ? (Y(), ge($(Rc), {
35138
35034
  key: 1,
35139
35035
  class: "error",
35140
35036
  type: "error",
@@ -35589,7 +35485,7 @@ function b_(i = {}) {
35589
35485
  }
35590
35486
  };
35591
35487
  }
35592
- const ur = {
35488
+ const hr = {
35593
35489
  enableFpsLimit: !0,
35594
35490
  targetFps: 30,
35595
35491
  enableResolutionScale: !0,
@@ -35607,7 +35503,7 @@ const ur = {
35607
35503
  debounceDelay: 100
35608
35504
  };
35609
35505
  function w_(i = {}) {
35610
- const e = { ...ur, ...i };
35506
+ const e = { ...hr, ...i };
35611
35507
  return {
35612
35508
  requestRenderMode: e.enableFpsLimit,
35613
35509
  maximumRenderTimeChange: e.enableFpsLimit ? 1e3 / e.targetFps : void 0,
@@ -35616,7 +35512,7 @@ function w_(i = {}) {
35616
35512
  };
35617
35513
  }
35618
35514
  function E_(i = {}) {
35619
- const e = { ...ur, ...i };
35515
+ const e = { ...hr, ...i };
35620
35516
  return {
35621
35517
  resolutionScale: e.enableResolutionScale ? e.resolutionScale : 1,
35622
35518
  targetFrameRate: e.enableFpsLimit ? e.targetFps : void 0,
@@ -35634,7 +35530,7 @@ function E_(i = {}) {
35634
35530
  };
35635
35531
  }
35636
35532
  function x_(i = {}) {
35637
- const e = { ...ur, ...i }, s = {
35533
+ const e = { ...hr, ...i }, s = {
35638
35534
  low: {
35639
35535
  maximumScreenSpaceError: 64,
35640
35536
  skipScreenSpaceErrorFactor: 256,
@@ -35769,7 +35665,7 @@ const u_ = ws, P_ = {
35769
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)
35770
35666
  return;
35771
35667
  const t = { ...u_, ...e };
35772
- t.cesiumUrl && Oc(t).catch((s) => {
35668
+ t.cesiumUrl && Gc(t).catch((s) => {
35773
35669
  console.error("[LeitingBim] Failed to load Cesium resources:", s);
35774
35670
  }), i.config.globalProperties.$leitingBimOptions = t;
35775
35671
  }
@@ -35783,7 +35679,7 @@ export {
35783
35679
  S_ as F,
35784
35680
  M_ as G,
35785
35681
  B_ as H,
35786
- ur as I,
35682
+ hr as I,
35787
35683
  w_ as J,
35788
35684
  E_ as K,
35789
35685
  l_ as L,
@@ -35800,8 +35696,8 @@ export {
35800
35696
  Ta as h,
35801
35697
  P_ as i,
35802
35698
  Jd as j,
35803
- cr as k,
35804
- Oc as l,
35699
+ ur as k,
35700
+ Gc as l,
35805
35701
  tP as m,
35806
35702
  FP as n,
35807
35703
  KP as o,
@@ -35811,7 +35707,7 @@ export {
35811
35707
  CI as s,
35812
35708
  B3 as t,
35813
35709
  T_ as u,
35814
- rr as v,
35710
+ lr as v,
35815
35711
  p_ as w,
35816
35712
  m_ as x,
35817
35713
  A_ as y,