leiting-bim 2.2.10 → 2.2.12

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.
@@ -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) {
@@ -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 && Vu(r.asset.watermark, this.viewer?.container), zu.includes(this.watermarkEnabled) && Hn(this.viewer?.container);
4946
+ r?.asset?.watermark && await Vu(r.asset.watermark, this.viewer?.container), zu.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)) {
@@ -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,
@@ -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
  }
@@ -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, "_");
@@ -9961,7 +9961,7 @@ function fy(i, e, t) {
9961
9961
  }
9962
9962
  function Dl(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 };
@@ -9996,14 +9996,12 @@ function gy(i, e, t) {
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 = _l(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);
@@ -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-DQ7bdiLh.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11986
+ const n = await import("./index-AzntTdyV.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-DQ7bdiLh.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12074
+ const r = await import("./index-AzntTdyV.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-DQ7bdiLh.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12080
+ const r = await import("./index-AzntTdyV.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,
@@ -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 && 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 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));
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
  };
@@ -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 = [
@@ -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
  }
@@ -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
  };
@@ -20966,63 +20910,63 @@ function sd(i, e) {
20966
20910
  i.ip = s;
20967
20911
  }
20968
20912
  function ac(i, e) {
20969
- exports.DEBUG && console.log(e.step, "SVTCA[" + i.axis + "]"), e.fv = e.pv = e.dpv = i;
20913
+ exports.DEBUG && (e.step, "" + i.axis), e.fv = e.pv = e.dpv = i;
20970
20914
  }
20971
20915
  function rc(i, e) {
20972
- exports.DEBUG && console.log(e.step, "SPVTCA[" + i.axis + "]"), e.pv = e.dpv = i;
20916
+ exports.DEBUG && (e.step, "" + i.axis), e.pv = e.dpv = i;
20973
20917
  }
20974
20918
  function lc(i, e) {
20975
- exports.DEBUG && console.log(e.step, "SFVTCA[" + i.axis + "]"), e.fv = i;
20919
+ exports.DEBUG && (e.step, "" + i.axis), e.fv = i;
20976
20920
  }
20977
20921
  function cc(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
20927
  function uc(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,92 +21017,88 @@ 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
21092
  function hc(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
21098
  function dc(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
  }
@@ -21168,18 +21108,14 @@ function fc(i, e) {
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
21115
  function gc(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;
@@ -21187,7 +21123,7 @@ function gc(i, e) {
21187
21123
  }
21188
21124
  function pc(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
21163
  function mc(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
21180
  function Ac(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
21226
  function vc(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
21230
  function yc(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
21447
  function Cc(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,17 +21505,7 @@ 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 */
@@ -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) {
@@ -22997,7 +22899,7 @@ function j2(i, e, t = {}) {
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() {
@@ -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
  }
@@ -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;
@@ -27381,7 +27276,7 @@ function aI(i) {
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 xc({ 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);
@@ -27722,7 +27617,7 @@ function aI(i) {
27722
27617
  h.onSetTeleportTarget && h.onSetTeleportTarget(y);
27723
27618
  }, window.Methods = h;
27724
27619
  }
27725
- return console.log("methods", h), { Cesium: r, viewer: f, methods: h, menuEvents: l };
27620
+ return { Cesium: r, viewer: f, methods: h, menuEvents: l };
27726
27621
  }
27727
27622
  function or(i) {
27728
27623
  return Bd() ? (Td(i), !0) : !1;
@@ -28412,7 +28307,6 @@ const bI = { class: "search-box" }, wI = { key: 0 }, EI = { style: { color: "#f5
28412
28307
  }, v = (M) => {
28413
28308
  c.value = M;
28414
28309
  }, m = (M) => {
28415
- console.log("LeitingMenu received showMenu event:", M);
28416
28310
  }, A = (M, D) => {
28417
28311
  const x = f.value.find((E) => E.ID === M || E.key === M);
28418
28312
  if (x) {
@@ -29380,7 +29274,7 @@ const OS = { class: "leitingbim-model-adjust-panel" }, GS = { class: "leitingbim
29380
29274
  duration: 1.5
29381
29275
  });
29382
29276
  }, Q = () => {
29383
- a?.value?.saveRegion ? (a.value.saveRegion(u.value), n("save", $(u))) : (console.log("Save models:", u.value), be.warning("未找到保存接口,数据已打印控制台"));
29277
+ a?.value?.saveRegion ? (a.value.saveRegion(u.value), n("save", $(u))) : (u.value, be.warning("未找到保存接口,数据已打印控制台"));
29384
29278
  };
29385
29279
  return te(() => s.visible, (G) => {
29386
29280
  G ? (O(), N(), r.value === "pick" && C()) : (w(), m());
@@ -34917,7 +34811,7 @@ const T3 = ["onClick", "onTouchend"], P3 = { class: "menu-label" }, D3 = {
34917
34811
  } = ne || {}, Id = d.showMenu !== void 0 ? d.showMenu : Gt !== void 0 ? Gt : !0;
34918
34812
  U.value = Id;
34919
34813
  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;
34814
+ d.mode, c.value = ln;
34921
34815
  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);
34922
34816
  r.value = {
34923
34817
  globe: dr,