@mlightcad/data-model 1.3.18 → 1.4.1

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,4 +1,4 @@
1
- function su(i, t) {
1
+ function iu(i, t) {
2
2
  for (var e = 0; e < t.length; e++) {
3
3
  const n = t[e];
4
4
  if (typeof n != "string" && !Array.isArray(n)) {
@@ -15,7 +15,7 @@ function su(i, t) {
15
15
  return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
16
16
  }
17
17
  var gt = /* @__PURE__ */ ((i) => (i[i.ByColor = 1] = "ByColor", i[i.ByACI = 2] = "ByACI", i[i.ByLayer = 3] = "ByLayer", i[i.ByBlock = 4] = "ByBlock", i[i.None = 0] = "None", i))(gt || {});
18
- const Ao = {
18
+ const So = {
19
19
  aliceblue: 15792383,
20
20
  antiquewhite: 16444375,
21
21
  aqua: 65535,
@@ -475,7 +475,7 @@ let Nn = class {
475
475
  * ```
476
476
  */
477
477
  static getColorByName(t) {
478
- return Ao[t.toLowerCase()];
478
+ return So[t.toLowerCase()];
479
479
  }
480
480
  /**
481
481
  * Finds the color name associated with a given RGB value.
@@ -484,7 +484,7 @@ let Nn = class {
484
484
  * @returns {string | undefined} The color name if found, undefined otherwise.
485
485
  */
486
486
  static getNameByColor(t) {
487
- for (const [e, n] of Object.entries(Ao))
487
+ for (const [e, n] of Object.entries(So))
488
488
  if (n === t)
489
489
  return e;
490
490
  }
@@ -809,7 +809,7 @@ let Nn = class {
809
809
  console.warn("Unknown color name:", t);
810
810
  }
811
811
  };
812
- class A0 {
812
+ class S0 {
813
813
  /**
814
814
  * Constructs a new `AcCmEntityColor`.
815
815
  *
@@ -990,7 +990,7 @@ const Xe = {
990
990
  return new Error("Not implemented yet");
991
991
  }
992
992
  };
993
- class S0 {
993
+ class I0 {
994
994
  /**
995
995
  * Creates {@link AcCmEventDispatcher} object.
996
996
  */
@@ -1067,7 +1067,7 @@ let ae = class {
1067
1067
  function zs(i) {
1068
1068
  return i === null || typeof i != "object" ? i : Array.isArray(i) ? [...i] : { ...i };
1069
1069
  }
1070
- function So(i) {
1070
+ function Io(i) {
1071
1071
  if (i === null || typeof i != "object")
1072
1072
  return i;
1073
1073
  if (i instanceof Date)
@@ -1075,10 +1075,10 @@ function So(i) {
1075
1075
  if (i instanceof RegExp)
1076
1076
  return new RegExp(i.source, i.flags);
1077
1077
  if (Array.isArray(i))
1078
- return i.map(So);
1078
+ return i.map(Io);
1079
1079
  const t = {};
1080
1080
  for (const e in i)
1081
- Object.prototype.hasOwnProperty.call(i, e) && (t[e] = So(i[e]));
1081
+ Object.prototype.hasOwnProperty.call(i, e) && (t[e] = Io(i[e]));
1082
1082
  return t;
1083
1083
  }
1084
1084
  function Ts(i, ...t) {
@@ -1088,10 +1088,10 @@ function Ts(i, ...t) {
1088
1088
  Object.prototype.hasOwnProperty.call(e, n) && i[n] === void 0 && (i[n] = e[n]);
1089
1089
  return i;
1090
1090
  }
1091
- function iu(i, t) {
1091
+ function au(i, t) {
1092
1092
  return i != null && Object.prototype.hasOwnProperty.call(i, t);
1093
1093
  }
1094
- function au(i) {
1094
+ function ou(i) {
1095
1095
  return i == null ? !0 : Array.isArray(i) || typeof i == "string" ? i.length === 0 : i instanceof Map || i instanceof Set ? i.size === 0 : typeof i == "object" ? Object.keys(i).length === 0 : !1;
1096
1096
  }
1097
1097
  function Es(i, t) {
@@ -1127,15 +1127,15 @@ function Es(i, t) {
1127
1127
  return !1;
1128
1128
  return !0;
1129
1129
  }
1130
- var ou = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1131
- function lu(i) {
1130
+ var lu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1131
+ function hu(i) {
1132
1132
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
1133
1133
  }
1134
- var qo = { exports: {} };
1134
+ var Xo = { exports: {} };
1135
1135
  (function(i) {
1136
1136
  (function(t, e) {
1137
1137
  i.exports ? i.exports = e() : t.log = e();
1138
- })(ou, function() {
1138
+ })(lu, function() {
1139
1139
  var t = function() {
1140
1140
  }, e = "undefined", n = typeof window !== e && typeof window.navigator !== e && /Trident\/|MSIE /.test(window.navigator.userAgent), o = [
1141
1141
  "trace",
@@ -1276,21 +1276,21 @@ var qo = { exports: {} };
1276
1276
  return h;
1277
1277
  }, c.default = c, c;
1278
1278
  });
1279
- })(qo);
1280
- var Xo = qo.exports;
1281
- const hu = /* @__PURE__ */ lu(Xo), uu = /* @__PURE__ */ su({
1279
+ })(Xo);
1280
+ var Ko = Xo.exports;
1281
+ const uu = /* @__PURE__ */ hu(Ko), cu = /* @__PURE__ */ iu({
1282
1282
  __proto__: null,
1283
- default: hu
1284
- }, [Xo]), P0 = !0, js = uu;
1283
+ default: uu
1284
+ }, [Ko]), E0 = !0, js = cu;
1285
1285
  js.setLevel("debug");
1286
- const E0 = (i) => {
1286
+ const k0 = (i) => {
1287
1287
  try {
1288
1288
  js.setLevel(i);
1289
1289
  } catch (t) {
1290
1290
  js.setLevel("error"), js.error(t);
1291
1291
  }
1292
1292
  };
1293
- let cu = class Ko {
1293
+ let du = class $o {
1294
1294
  /**
1295
1295
  * Create one object to store attributes. For performance reason, values of attributes passed to constructor
1296
1296
  * will not be cloned to `attributes` property. So it means that value of `attributes` property in this object
@@ -1370,7 +1370,7 @@ let cu = class Ko {
1370
1370
  * If you specify an attribute name, determine if that attribute has changed.
1371
1371
  */
1372
1372
  hasChanged(t) {
1373
- return t == null ? !au(this.changed) : iu(this.changed, t);
1373
+ return t == null ? !ou(this.changed) : au(this.changed, t);
1374
1374
  }
1375
1375
  /**
1376
1376
  * Return an object containing all the attributes that have changed. Useful for determining what parts
@@ -1405,9 +1405,9 @@ let cu = class Ko {
1405
1405
  */
1406
1406
  clone() {
1407
1407
  const t = zs(this.attributes);
1408
- return new Ko(t);
1408
+ return new $o(t);
1409
1409
  }
1410
- }, $o = class Is {
1410
+ }, Zo = class Is {
1411
1411
  /**
1412
1412
  * Private constructor to enforce singleton pattern.
1413
1413
  */
@@ -1466,7 +1466,7 @@ let cu = class Ko {
1466
1466
  return this.entries.delete(t);
1467
1467
  }
1468
1468
  };
1469
- class k0 {
1469
+ class M0 {
1470
1470
  /**
1471
1471
  * Converts a byte count to a human-readable string using appropriate size units.
1472
1472
  *
@@ -1737,7 +1737,7 @@ let ga = class cr {
1737
1737
  return h._method = o, h._alpha = cr.clampAlpha(n), h;
1738
1738
  }
1739
1739
  };
1740
- class du {
1740
+ class pu {
1741
1741
  /**
1742
1742
  * Creates a new task with the specified name.
1743
1743
  *
@@ -1760,7 +1760,7 @@ class du {
1760
1760
  throw new Error("run() must be implemented by subclass");
1761
1761
  }
1762
1762
  }
1763
- let pu = class {
1763
+ let mu = class {
1764
1764
  constructor() {
1765
1765
  this.tasks = [], this.onProgress = () => {
1766
1766
  }, this.onComplete = () => {
@@ -1829,7 +1829,7 @@ let pu = class {
1829
1829
  }
1830
1830
  this.onComplete(n);
1831
1831
  }
1832
- }, mu = class {
1832
+ }, gu = class {
1833
1833
  /**
1834
1834
  * Create a new AcCmLoadingManager instance
1835
1835
  * @param onLoad this function will be called when all loaders are done.
@@ -1913,14 +1913,14 @@ let pu = class {
1913
1913
  return null;
1914
1914
  }
1915
1915
  };
1916
- const gu = /* @__PURE__ */ new mu();
1917
- class N0 {
1916
+ const fu = /* @__PURE__ */ new gu();
1917
+ class C0 {
1918
1918
  /**
1919
1919
  * Creates a new AcCmLoader instance.
1920
1920
  * @param manager The loadingManager for the loader to use. Default is DefaultLoadingManager.
1921
1921
  */
1922
1922
  constructor(t) {
1923
- this.manager = t !== void 0 ? t : gu, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
1923
+ this.manager = t !== void 0 ? t : fu, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
1924
1924
  }
1925
1925
  /**
1926
1926
  * This method is equivalent to 'load', but returns a Promise.
@@ -1985,7 +1985,7 @@ class N0 {
1985
1985
  return this.requestHeader = t, this;
1986
1986
  }
1987
1987
  }
1988
- class Zo {
1988
+ class Qo {
1989
1989
  /**
1990
1990
  * Creates a new AcDbBatchProcessing instance.
1991
1991
  *
@@ -2131,7 +2131,7 @@ class Zo {
2131
2131
  await n();
2132
2132
  }
2133
2133
  }
2134
- var Qo = /* @__PURE__ */ ((i) => (i[i.DecimalDegrees = 0] = "DecimalDegrees", i[i.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", i[i.Gradians = 2] = "Gradians", i[i.Radians = 3] = "Radians", i[i.SurveyorsUnits = 4] = "SurveyorsUnits", i))(Qo || {});
2134
+ var Jo = /* @__PURE__ */ ((i) => (i[i.DecimalDegrees = 0] = "DecimalDegrees", i[i.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", i[i.Gradians = 2] = "Gradians", i[i.Radians = 3] = "Radians", i[i.SurveyorsUnits = 4] = "SurveyorsUnits", i))(Jo || {});
2135
2135
  class cn {
2136
2136
  /**
2137
2137
  * Gets the singleton instance of the rendering cache.
@@ -2274,7 +2274,7 @@ class cn {
2274
2274
  const E = e.newIterator();
2275
2275
  let M = !0;
2276
2276
  for (const L of E)
2277
- if (L.color.isByBlock && n ? (Io.copy(L.color), L.color.setRGBValue(n), this.addEntity(L, g, t), L.color.copy(Io)) : this.addEntity(L, g, t), M) {
2277
+ if (L.color.isByBlock && n ? (Po.copy(L.color), L.color.setRGBValue(n), this.addEntity(L, g, t), L.color.copy(Po)) : this.addEntity(L, g, t), M) {
2278
2278
  const B = g[0];
2279
2279
  t.basePoint = B.basePoint, M = !1;
2280
2280
  }
@@ -2292,9 +2292,9 @@ class cn {
2292
2292
  t.objectId = e.objectId, t.ownerId = e.ownerId, t.layerName = e.layer, t.visible = e.visibility;
2293
2293
  }
2294
2294
  }
2295
- const Io = /* @__PURE__ */ new fn();
2296
- var Jo = /* @__PURE__ */ ((i) => (i[i.UTF8 = 0] = "UTF8", i[i.US_ASCII = 1] = "US_ASCII", i[i.ISO_8859_1 = 2] = "ISO_8859_1", i[i.ISO_8859_2 = 3] = "ISO_8859_2", i[i.ISO_8859_3 = 4] = "ISO_8859_3", i[i.ISO_8859_4 = 5] = "ISO_8859_4", i[i.ISO_8859_5 = 6] = "ISO_8859_5", i[i.ISO_8859_6 = 7] = "ISO_8859_6", i[i.ISO_8859_7 = 8] = "ISO_8859_7", i[i.ISO_8859_8 = 9] = "ISO_8859_8", i[i.ISO_8859_9 = 10] = "ISO_8859_9", i[i.CP437 = 11] = "CP437", i[i.CP850 = 12] = "CP850", i[i.CP852 = 13] = "CP852", i[i.CP855 = 14] = "CP855", i[i.CP857 = 15] = "CP857", i[i.CP860 = 16] = "CP860", i[i.CP861 = 17] = "CP861", i[i.CP863 = 18] = "CP863", i[i.CP864 = 19] = "CP864", i[i.CP865 = 20] = "CP865", i[i.CP869 = 21] = "CP869", i[i.CP932 = 22] = "CP932", i[i.MACINTOSH = 23] = "MACINTOSH", i[i.BIG5 = 24] = "BIG5", i[i.CP949 = 25] = "CP949", i[i.JOHAB = 26] = "JOHAB", i[i.CP866 = 27] = "CP866", i[i.ANSI_1250 = 28] = "ANSI_1250", i[i.ANSI_1251 = 29] = "ANSI_1251", i[i.ANSI_1252 = 30] = "ANSI_1252", i[i.GB2312 = 31] = "GB2312", i[i.ANSI_1253 = 32] = "ANSI_1253", i[i.ANSI_1254 = 33] = "ANSI_1254", i[i.ANSI_1255 = 34] = "ANSI_1255", i[i.ANSI_1256 = 35] = "ANSI_1256", i[i.ANSI_1257 = 36] = "ANSI_1257", i[i.ANSI_874 = 37] = "ANSI_874", i[i.ANSI_932 = 38] = "ANSI_932", i[i.ANSI_936 = 39] = "ANSI_936", i[i.ANSI_949 = 40] = "ANSI_949", i[i.ANSI_950 = 41] = "ANSI_950", i[i.ANSI_1361 = 42] = "ANSI_1361", i[i.UTF16 = 43] = "UTF16", i[i.ANSI_1258 = 44] = "ANSI_1258", i[i.UNDEFINED = 255] = "UNDEFINED", i))(Jo || {});
2297
- const fu = [
2295
+ const Po = /* @__PURE__ */ new fn();
2296
+ var tl = /* @__PURE__ */ ((i) => (i[i.UTF8 = 0] = "UTF8", i[i.US_ASCII = 1] = "US_ASCII", i[i.ISO_8859_1 = 2] = "ISO_8859_1", i[i.ISO_8859_2 = 3] = "ISO_8859_2", i[i.ISO_8859_3 = 4] = "ISO_8859_3", i[i.ISO_8859_4 = 5] = "ISO_8859_4", i[i.ISO_8859_5 = 6] = "ISO_8859_5", i[i.ISO_8859_6 = 7] = "ISO_8859_6", i[i.ISO_8859_7 = 8] = "ISO_8859_7", i[i.ISO_8859_8 = 9] = "ISO_8859_8", i[i.ISO_8859_9 = 10] = "ISO_8859_9", i[i.CP437 = 11] = "CP437", i[i.CP850 = 12] = "CP850", i[i.CP852 = 13] = "CP852", i[i.CP855 = 14] = "CP855", i[i.CP857 = 15] = "CP857", i[i.CP860 = 16] = "CP860", i[i.CP861 = 17] = "CP861", i[i.CP863 = 18] = "CP863", i[i.CP864 = 19] = "CP864", i[i.CP865 = 20] = "CP865", i[i.CP869 = 21] = "CP869", i[i.CP932 = 22] = "CP932", i[i.MACINTOSH = 23] = "MACINTOSH", i[i.BIG5 = 24] = "BIG5", i[i.CP949 = 25] = "CP949", i[i.JOHAB = 26] = "JOHAB", i[i.CP866 = 27] = "CP866", i[i.ANSI_1250 = 28] = "ANSI_1250", i[i.ANSI_1251 = 29] = "ANSI_1251", i[i.ANSI_1252 = 30] = "ANSI_1252", i[i.GB2312 = 31] = "GB2312", i[i.ANSI_1253 = 32] = "ANSI_1253", i[i.ANSI_1254 = 33] = "ANSI_1254", i[i.ANSI_1255 = 34] = "ANSI_1255", i[i.ANSI_1256 = 35] = "ANSI_1256", i[i.ANSI_1257 = 36] = "ANSI_1257", i[i.ANSI_874 = 37] = "ANSI_874", i[i.ANSI_932 = 38] = "ANSI_932", i[i.ANSI_936 = 39] = "ANSI_936", i[i.ANSI_949 = 40] = "ANSI_949", i[i.ANSI_950 = 41] = "ANSI_950", i[i.ANSI_1361 = 42] = "ANSI_1361", i[i.UTF16 = 43] = "UTF16", i[i.ANSI_1258 = 44] = "ANSI_1258", i[i.UNDEFINED = 255] = "UNDEFINED", i))(tl || {});
2297
+ const _u = [
2298
2298
  "utf-8",
2299
2299
  // 0
2300
2300
  "utf-8",
@@ -2375,7 +2375,7 @@ const fu = [
2375
2375
  "utf-16le",
2376
2376
  "windows-1258"
2377
2377
  // Vietnamese
2378
- ], _u = (i) => fu[i], zi = "Continuous", xi = "ByLayer", yu = "ByBlock", _e = [
2378
+ ], yu = (i) => _u[i], zi = "Continuous", xi = "ByLayer", vu = "ByBlock", _e = [
2379
2379
  "00",
2380
2380
  "01",
2381
2381
  "02",
@@ -2633,113 +2633,113 @@ const fu = [
2633
2633
  "fe",
2634
2634
  "ff"
2635
2635
  ];
2636
- let Po = 1234567;
2637
- const tl = Math.PI / 180, el = 180 / Math.PI;
2638
- function vu() {
2636
+ let Eo = 1234567;
2637
+ const el = Math.PI / 180, rl = 180 / Math.PI;
2638
+ function bu() {
2639
2639
  const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
2640
2640
  return (_e[i & 255] + _e[i >> 8 & 255] + _e[i >> 16 & 255] + _e[i >> 24 & 255] + "-" + _e[t & 255] + _e[t >> 8 & 255] + "-" + _e[t >> 16 & 15 | 64] + _e[t >> 24 & 255] + "-" + _e[e & 63 | 128] + _e[e >> 8 & 255] + "-" + _e[e >> 16 & 255] + _e[e >> 24 & 255] + _e[n & 255] + _e[n >> 8 & 255] + _e[n >> 16 & 255] + _e[n >> 24 & 255]).toLowerCase();
2641
2641
  }
2642
2642
  function jr(i, t, e) {
2643
2643
  return Math.max(t, Math.min(e, i));
2644
2644
  }
2645
- function rl(i, t) {
2645
+ function nl(i, t) {
2646
2646
  return (i % t + t) % t;
2647
2647
  }
2648
- function bu(i, t, e, n, o) {
2648
+ function xu(i, t, e, n, o) {
2649
2649
  return n + (i - t) * (o - n) / (e - t);
2650
2650
  }
2651
- function xu(i, t, e) {
2651
+ function wu(i, t, e) {
2652
2652
  return i !== t ? (e - i) / (t - i) : 0;
2653
2653
  }
2654
- function nl(i, t, e) {
2654
+ function sl(i, t, e) {
2655
2655
  return (1 - e) * i + e * t;
2656
2656
  }
2657
- function wu(i, t, e, n) {
2658
- return nl(i, t, 1 - Math.exp(-e * n));
2657
+ function Au(i, t, e, n) {
2658
+ return sl(i, t, 1 - Math.exp(-e * n));
2659
2659
  }
2660
- function Au(i, t = 1) {
2661
- return t - Math.abs(rl(i, t * 2) - t);
2660
+ function Su(i, t = 1) {
2661
+ return t - Math.abs(nl(i, t * 2) - t);
2662
2662
  }
2663
- function Su(i, t, e) {
2663
+ function Iu(i, t, e) {
2664
2664
  return i <= t ? 0 : i >= e ? 1 : (i = (i - t) / (e - t), i * i * (3 - 2 * i));
2665
2665
  }
2666
- function Iu(i, t, e) {
2666
+ function Pu(i, t, e) {
2667
2667
  return i <= t ? 0 : i >= e ? 1 : (i = (i - t) / (e - t), i * i * i * (i * (i * 6 - 15) + 10));
2668
2668
  }
2669
- function Pu(i, t) {
2669
+ function Eu(i, t) {
2670
2670
  return i + Math.floor(Math.random() * (t - i + 1));
2671
2671
  }
2672
- function Eu(i, t) {
2672
+ function ku(i, t) {
2673
2673
  return i + Math.random() * (t - i);
2674
2674
  }
2675
- function ku(i) {
2676
- return i * (0.5 - Math.random());
2677
- }
2678
2675
  function Mu(i) {
2679
- i !== void 0 && (Po = i);
2680
- let t = Po += 1831565813;
2681
- return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
2676
+ return i * (0.5 - Math.random());
2682
2677
  }
2683
2678
  function Tu(i) {
2684
- return i * tl;
2679
+ i !== void 0 && (Eo = i);
2680
+ let t = Eo += 1831565813;
2681
+ return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
2685
2682
  }
2686
2683
  function Nu(i) {
2687
2684
  return i * el;
2688
2685
  }
2689
2686
  function Cu(i) {
2690
- return (i & i - 1) === 0 && i !== 0;
2687
+ return i * rl;
2691
2688
  }
2692
2689
  function Lu(i) {
2693
- return Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
2690
+ return (i & i - 1) === 0 && i !== 0;
2694
2691
  }
2695
2692
  function Ou(i) {
2693
+ return Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
2694
+ }
2695
+ function Bu(i) {
2696
2696
  return Math.pow(2, Math.floor(Math.log(i) / Math.LN2));
2697
2697
  }
2698
2698
  function Ws(i) {
2699
2699
  const t = Math.PI * 2;
2700
2700
  return (i % t + t) % t;
2701
2701
  }
2702
- function Bu(i, t, e) {
2702
+ function zu(i, t, e) {
2703
2703
  return i > t && i < e || i > e && i < t;
2704
2704
  }
2705
- function zu(i, t, e, n = !1) {
2705
+ function Ru(i, t, e, n = !1) {
2706
2706
  return i = Ws(i), t = Ws(t), e = Ws(e), n ? t > e ? i <= t && i >= e : i <= t || i >= e : t < e ? i >= t && i <= e : i >= t || i <= e;
2707
2707
  }
2708
- function sl(i) {
2708
+ function il(i) {
2709
2709
  return i = Math.abs(i), i < 1 ? 0 : Math.ceil(Math.log10(Math.abs(i) + 1));
2710
2710
  }
2711
- function Ru(i, t = 1e-7) {
2712
- const e = sl(i);
2711
+ function Fu(i, t = 1e-7) {
2712
+ const e = il(i);
2713
2713
  return Math.max(Math.pow(10, e) * t, t);
2714
2714
  }
2715
2715
  const Mt = {
2716
- DEG2RAD: tl,
2717
- RAD2DEG: el,
2718
- generateUUID: vu,
2716
+ DEG2RAD: el,
2717
+ RAD2DEG: rl,
2718
+ generateUUID: bu,
2719
2719
  clamp: jr,
2720
- euclideanModulo: rl,
2721
- mapLinear: bu,
2722
- inverseLerp: xu,
2723
- lerp: nl,
2724
- damp: wu,
2725
- pingpong: Au,
2726
- smoothstep: Su,
2727
- smootherstep: Iu,
2728
- randInt: Pu,
2729
- randFloat: Eu,
2730
- randFloatSpread: ku,
2731
- seededRandom: Mu,
2732
- degToRad: Tu,
2733
- radToDeg: Nu,
2734
- isPowerOfTwo: Cu,
2735
- ceilPowerOfTwo: Lu,
2736
- floorPowerOfTwo: Ou,
2720
+ euclideanModulo: nl,
2721
+ mapLinear: xu,
2722
+ inverseLerp: wu,
2723
+ lerp: sl,
2724
+ damp: Au,
2725
+ pingpong: Su,
2726
+ smoothstep: Iu,
2727
+ smootherstep: Pu,
2728
+ randInt: Eu,
2729
+ randFloat: ku,
2730
+ randFloatSpread: Mu,
2731
+ seededRandom: Tu,
2732
+ degToRad: Nu,
2733
+ radToDeg: Cu,
2734
+ isPowerOfTwo: Lu,
2735
+ ceilPowerOfTwo: Ou,
2736
+ floorPowerOfTwo: Bu,
2737
2737
  normalizeAngle: Ws,
2738
- isBetween: Bu,
2739
- isBetweenAngle: zu,
2740
- intPartLength: sl,
2741
- relativeEps: Ru
2742
- }, Ri = class il {
2738
+ isBetween: zu,
2739
+ isBetweenAngle: Ru,
2740
+ intPartLength: il,
2741
+ relativeEps: Fu
2742
+ }, Ri = class al {
2743
2743
  /**
2744
2744
  * Construct one vector by two numbers
2745
2745
  */
@@ -2855,7 +2855,7 @@ const Mt = {
2855
2855
  * @returns Return the cloned vector
2856
2856
  */
2857
2857
  clone() {
2858
- return new il(this.x, this.y);
2858
+ return new al(this.x, this.y);
2859
2859
  }
2860
2860
  /**
2861
2861
  * Copy the values of the passed vector's x and y properties to this vector.
@@ -3237,7 +3237,7 @@ const Mt = {
3237
3237
  };
3238
3238
  Ri.EMPTY = Object.freeze(new Ri(0, 0));
3239
3239
  let Qt = Ri;
3240
- const Fi = class al {
3240
+ const Fi = class ol {
3241
3241
  /**
3242
3242
  * Create a 3x3 matrix with the given arguments in row-major order. If no arguments are provided,
3243
3243
  * the constructor initializes the Matrix3 to the 3x3 identity matrix.
@@ -3504,20 +3504,20 @@ const Fi = class al {
3504
3504
  * @returns Return the cloned matrix
3505
3505
  */
3506
3506
  clone() {
3507
- return new al().fromArray(this.elements);
3507
+ return new ol().fromArray(this.elements);
3508
3508
  }
3509
3509
  };
3510
3510
  Fi.IDENTITY = Object.freeze(new Fi());
3511
3511
  let fa = Fi;
3512
- const wi = /* @__PURE__ */ new fa(), Cn = 1e-6, ie = 2 * Math.PI, C0 = {
3512
+ const wi = /* @__PURE__ */ new fa(), Cn = 1e-6, ie = 2 * Math.PI, L0 = {
3513
3513
  x: 0,
3514
3514
  y: 0
3515
- }, ol = {
3515
+ }, ll = {
3516
3516
  x: 0,
3517
3517
  y: 0,
3518
3518
  z: 0
3519
3519
  };
3520
- class ll {
3520
+ class hl {
3521
3521
  /**
3522
3522
  * Create tolerance class with default tolerance values
3523
3523
  */
@@ -3586,8 +3586,8 @@ class ll {
3586
3586
  return t - e < n;
3587
3587
  }
3588
3588
  }
3589
- const hl = new ll();
3590
- function ul(i, t, e = !1) {
3589
+ const ul = new hl();
3590
+ function cl(i, t, e = !1) {
3591
3591
  const n = i.x, o = i.y;
3592
3592
  let h = !1;
3593
3593
  const c = t.length;
@@ -3598,24 +3598,24 @@ function ul(i, t, e = !1) {
3598
3598
  }
3599
3599
  return h;
3600
3600
  }
3601
- function Fu(i, t) {
3601
+ function Du(i, t) {
3602
3602
  if (i.length === 0 || t.length === 0)
3603
3603
  return !1;
3604
3604
  const e = new Ae().setFromPoints(i), n = new Ae().setFromPoints(t);
3605
3605
  if (!e.intersectsBox(n))
3606
3606
  return !1;
3607
3607
  for (let o = 0; o < i.length; ) {
3608
- if (ul(i[o], t, !0))
3608
+ if (cl(i[o], t, !0))
3609
3609
  return !0;
3610
- o < i.length - 1 && hl.equalPoint2d(i[o + 1], i[o]) && ++o, ++o;
3610
+ o < i.length - 1 && ul.equalPoint2d(i[o + 1], i[o]) && ++o, ++o;
3611
3611
  }
3612
3612
  return !1;
3613
3613
  }
3614
- const Du = {
3615
- isPointInPolygon: ul,
3616
- isPolygonIntersect: Fu
3614
+ const Uu = {
3615
+ isPointInPolygon: cl,
3616
+ isPolygonIntersect: Du
3617
3617
  };
3618
- function Uu(i, t) {
3618
+ function Vu(i, t) {
3619
3619
  const e = [], n = t - 1, o = i;
3620
3620
  for (let h = 0; h <= o; h++)
3621
3621
  e.push(0);
@@ -3625,7 +3625,7 @@ function Uu(i, t) {
3625
3625
  e.push(n - o + 1);
3626
3626
  return e;
3627
3627
  }
3628
- function Vu(i, t) {
3628
+ function Gu(i, t) {
3629
3629
  const e = t.length - 1, n = i, o = [0];
3630
3630
  let h = 0;
3631
3631
  for (let g = 1; g <= e; g++) {
@@ -3643,7 +3643,7 @@ function Vu(i, t) {
3643
3643
  c.push(e - n + 1);
3644
3644
  return c;
3645
3645
  }
3646
- function Gu(i, t) {
3646
+ function ju(i, t) {
3647
3647
  const e = t.length - 1, n = i, o = [0];
3648
3648
  let h = 0;
3649
3649
  for (let g = 1; g <= e; g++) {
@@ -3688,7 +3688,7 @@ function Hs(i, t, e, n, o) {
3688
3688
  }
3689
3689
  return b > 1e-10 && (g[0] /= b, g[1] /= b, g[2] /= b), g;
3690
3690
  }
3691
- function ju(i, t, e, n) {
3691
+ function Wu(i, t, e, n) {
3692
3692
  const o = i, h = t[o], c = t[t.length - o - 1];
3693
3693
  let g = 0;
3694
3694
  const b = 1e3, f = (c - h) / b;
@@ -3712,7 +3712,7 @@ function ju(i, t, e, n) {
3712
3712
  ), E = x[0] - w[0], M = x[1] - w[1], L = x[2] - w[2];
3713
3713
  return g += Math.sqrt(E * E + M * M + L * L), g;
3714
3714
  }
3715
- function L0(i) {
3715
+ function O0(i) {
3716
3716
  return i.map((t) => [...t]);
3717
3717
  }
3718
3718
  class pn {
@@ -4106,7 +4106,7 @@ class pn {
4106
4106
  yield this._x, yield this._y, yield this._z, yield this._w;
4107
4107
  }
4108
4108
  }
4109
- const We = class cl {
4109
+ const We = class dl {
4110
4110
  /**
4111
4111
  * Vector may be constructed by three points, or by three float numbers,
4112
4112
  * or by array of three numbers
@@ -4223,7 +4223,7 @@ const We = class cl {
4223
4223
  * @returns Return a new vector3 with the same x, y and z values as this one.
4224
4224
  */
4225
4225
  clone() {
4226
- return new cl(this.x, this.y, this.z);
4226
+ return new dl(this.x, this.y, this.z);
4227
4227
  }
4228
4228
  /**
4229
4229
  * Copy the values of the passed vector3's x, y and z properties to this vector3.
@@ -4323,7 +4323,7 @@ const We = class cl {
4323
4323
  * @returns Return this vector
4324
4324
  */
4325
4325
  applyEuler(t) {
4326
- return this.applyQuaternion(Eo.setFromEuler(t));
4326
+ return this.applyQuaternion(ko.setFromEuler(t));
4327
4327
  }
4328
4328
  /**
4329
4329
  * Apply a rotation specified by an axis and an angle to this vector.
@@ -4332,7 +4332,7 @@ const We = class cl {
4332
4332
  * @returns Return this vector
4333
4333
  */
4334
4334
  applyAxisAngle(t, e) {
4335
- return this.applyQuaternion(Eo.setFromAxisAngle(t, e));
4335
+ return this.applyQuaternion(ko.setFromAxisAngle(t, e));
4336
4336
  }
4337
4337
  /**
4338
4338
  * Multipliy this vector by m
@@ -4750,7 +4750,7 @@ const We = class cl {
4750
4750
  };
4751
4751
  We.X_AXIS = Object.freeze(new We(1, 0, 0)), We.NEGATIVE_X_AXIS = Object.freeze(new We(-1, 0, 0)), We.Y_AXIS = Object.freeze(new We(0, 1, 0)), We.NEGATIVE_Y_AXIS = Object.freeze(new We(0, -1, 0)), We.Z_AXIS = Object.freeze(new We(0, 0, 1)), We.NEGATIVE_Z_AXIS = Object.freeze(new We(0, 0, -1));
4752
4752
  let Z = We;
4753
- const Ai = /* @__PURE__ */ new Z(), Eo = /* @__PURE__ */ new pn(), Ui = class dl {
4753
+ const Ai = /* @__PURE__ */ new Z(), ko = /* @__PURE__ */ new pn(), Ui = class pl {
4754
4754
  /**
4755
4755
  * Create a 4x4 matrix with the given arguments in row-major order. If no arguments are provided,
4756
4756
  * the constructor initializes the Matrix4 to the 4x4 identity matrix.
@@ -4825,7 +4825,7 @@ const Ai = /* @__PURE__ */ new Z(), Eo = /* @__PURE__ */ new pn(), Ui = class dl
4825
4825
  return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
4826
4826
  }
4827
4827
  clone() {
4828
- return new dl().fromArray(this.elements);
4828
+ return new pl().fromArray(this.elements);
4829
4829
  }
4830
4830
  /**
4831
4831
  * Copy the elements of matrix m into this matrix.
@@ -4877,7 +4877,7 @@ const Ai = /* @__PURE__ */ new Z(), Eo = /* @__PURE__ */ new pn(), Ui = class dl
4877
4877
  * @returns Return this matrix
4878
4878
  */
4879
4879
  setFromExtrusionDirection(t) {
4880
- if (hl.equalPoint3d(t, Z.Z_AXIS))
4880
+ if (ul.equalPoint3d(t, Z.Z_AXIS))
4881
4881
  this.identity();
4882
4882
  else {
4883
4883
  const e = new Z(1, 0, 0);
@@ -5063,7 +5063,7 @@ const Ai = /* @__PURE__ */ new Z(), Eo = /* @__PURE__ */ new pn(), Ui = class dl
5063
5063
  * @returns Return this matrix
5064
5064
  */
5065
5065
  makeRotationFromQuaternion(t) {
5066
- return this.compose(Wu, t, Hu);
5066
+ return this.compose(Hu, t, Yu);
5067
5067
  }
5068
5068
  /**
5069
5069
  * Construct a rotation matrix, looking from eye towards target oriented by the up vector.
@@ -5411,7 +5411,7 @@ const Ai = /* @__PURE__ */ new Z(), Eo = /* @__PURE__ */ new pn(), Ui = class dl
5411
5411
  };
5412
5412
  Ui.IDENTITY = Object.freeze(new Ui());
5413
5413
  let mn = Ui;
5414
- const Ln = /* @__PURE__ */ new Z(), rr = /* @__PURE__ */ new mn(), Wu = /* @__PURE__ */ new Z(0, 0, 0), Hu = /* @__PURE__ */ new Z(1, 1, 1), Gr = /* @__PURE__ */ new Z(), Rs = /* @__PURE__ */ new Z(), Re = /* @__PURE__ */ new Z();
5414
+ const Ln = /* @__PURE__ */ new Z(), rr = /* @__PURE__ */ new mn(), Hu = /* @__PURE__ */ new Z(0, 0, 0), Yu = /* @__PURE__ */ new Z(1, 1, 1), Gr = /* @__PURE__ */ new Z(), Rs = /* @__PURE__ */ new Z(), Re = /* @__PURE__ */ new Z();
5415
5415
  class Lt {
5416
5416
  /**
5417
5417
  * Create a 3d box bounded by min and max.
@@ -5669,7 +5669,7 @@ const _r = [
5669
5669
  /* @__PURE__ */ new Z(),
5670
5670
  /* @__PURE__ */ new Z(),
5671
5671
  /* @__PURE__ */ new Z()
5672
- ], Si = /* @__PURE__ */ new Z(), ko = /* @__PURE__ */ new Qt();
5672
+ ], Si = /* @__PURE__ */ new Z(), Mo = /* @__PURE__ */ new Qt();
5673
5673
  class Ae {
5674
5674
  /**
5675
5675
  * Create a 2d box bounded by min and max.
@@ -5709,7 +5709,7 @@ class Ae {
5709
5709
  * @returns Return this box
5710
5710
  */
5711
5711
  setFromCenterAndSize(t, e) {
5712
- const n = ko.copy(e).multiplyScalar(0.5);
5712
+ const n = Mo.copy(e).multiplyScalar(0.5);
5713
5713
  return this.min.copy(t).sub(n), this.max.copy(t).add(n), this;
5714
5714
  }
5715
5715
  /**
@@ -5849,7 +5849,7 @@ class Ae {
5849
5849
  * @returns Return the distance from any edge of this box to the specified point.
5850
5850
  */
5851
5851
  distanceToPoint(t) {
5852
- return this.clampPoint(t, ko).distanceTo(t);
5852
+ return this.clampPoint(t, Mo).distanceTo(t);
5853
5853
  }
5854
5854
  /**
5855
5855
  * Return the intersection of this and box, setting the upper bound of this box to the lesser of the
@@ -5887,7 +5887,7 @@ class Ae {
5887
5887
  return t.min.equals(this.min) && t.max.equals(this.max);
5888
5888
  }
5889
5889
  }
5890
- const Mo = /* @__PURE__ */ new Z(), Yu = /* @__PURE__ */ new Z(), qu = /* @__PURE__ */ new fa();
5890
+ const To = /* @__PURE__ */ new Z(), qu = /* @__PURE__ */ new Z(), Xu = /* @__PURE__ */ new fa();
5891
5891
  class ui {
5892
5892
  /**
5893
5893
  * Create one plane
@@ -5936,7 +5936,7 @@ class ui {
5936
5936
  * @returns Return this plane
5937
5937
  */
5938
5938
  setFromCoplanarPoints(t, e, n) {
5939
- const o = Mo.subVectors(n, e).cross(Yu.subVectors(t, e)).normalize();
5939
+ const o = To.subVectors(n, e).cross(qu.subVectors(t, e)).normalize();
5940
5940
  return this.setFromNormalAndCoplanarPoint(o, t), this;
5941
5941
  }
5942
5942
  /**
@@ -6038,7 +6038,7 @@ class ui {
6038
6038
  * @returns Return this plane
6039
6039
  */
6040
6040
  applyMatrix4(t, e) {
6041
- const n = e || qu.getNormalMatrix(t), o = this.coplanarPoint(Mo).applyMatrix4(t), h = this.normal.applyMatrix3(n).normalize();
6041
+ const n = e || Xu.getNormalMatrix(t), o = this.coplanarPoint(To).applyMatrix4(t), h = this.normal.applyMatrix3(n).normalize();
6042
6042
  return this.constant = -o.dot(h), this;
6043
6043
  }
6044
6044
  /**
@@ -6093,7 +6093,7 @@ class Y extends Z {
6093
6093
  }), o;
6094
6094
  }
6095
6095
  }
6096
- const To = /* @__PURE__ */ new mn(), No = /* @__PURE__ */ new pn(), pl = class Vi {
6096
+ const No = /* @__PURE__ */ new mn(), Co = /* @__PURE__ */ new pn(), ml = class Vi {
6097
6097
  /**
6098
6098
  * Create one instance of this class
6099
6099
  * @param x (optional) the angle of the x axis in radians. Default is 0.
@@ -6222,7 +6222,7 @@ const To = /* @__PURE__ */ new mn(), No = /* @__PURE__ */ new pn(), pl = class V
6222
6222
  * @returns Return this euler
6223
6223
  */
6224
6224
  setFromQuaternion(t, e, n = !0) {
6225
- return To.makeRotationFromQuaternion(t), this.setFromRotationMatrix(To, e, n);
6225
+ return No.makeRotationFromQuaternion(t), this.setFromRotationMatrix(No, e, n);
6226
6226
  }
6227
6227
  /**
6228
6228
  * Set the x, y and z, and optionally update the order.
@@ -6240,7 +6240,7 @@ const To = /* @__PURE__ */ new mn(), No = /* @__PURE__ */ new pn(), pl = class V
6240
6240
  * @returns Return this euler
6241
6241
  */
6242
6242
  reorder(t) {
6243
- return No.setFromEuler(this), this.setFromQuaternion(No, t);
6243
+ return Co.setFromEuler(this), this.setFromQuaternion(Co, t);
6244
6244
  }
6245
6245
  /**
6246
6246
  * Check for strict equality of this euler and euler.
@@ -6285,9 +6285,9 @@ const To = /* @__PURE__ */ new mn(), No = /* @__PURE__ */ new pn(), pl = class V
6285
6285
  yield this._x, yield this._y, yield this._z, yield this._order;
6286
6286
  }
6287
6287
  };
6288
- pl.DEFAULT_ORDER = "XYZ";
6289
- let Xu = pl;
6290
- class ml {
6288
+ ml.DEFAULT_ORDER = "XYZ";
6289
+ let Ku = ml;
6290
+ class gl {
6291
6291
  constructor() {
6292
6292
  this._boundingBoxNeedsUpdate = !1;
6293
6293
  }
@@ -6299,7 +6299,7 @@ class ml {
6299
6299
  return this._boundingBoxNeedsUpdate;
6300
6300
  }
6301
6301
  }
6302
- let gl = class extends ml {
6302
+ let fl = class extends gl {
6303
6303
  /**
6304
6304
  * Return new shape translated by given vector.
6305
6305
  */
@@ -6315,7 +6315,7 @@ let gl = class extends ml {
6315
6315
  return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
6316
6316
  }
6317
6317
  };
6318
- class _a extends gl {
6318
+ class _a extends fl {
6319
6319
  /**
6320
6320
  * Create one 2d area defined by one outter loop and multiple inner loops
6321
6321
  */
@@ -6383,7 +6383,7 @@ class _a extends gl {
6383
6383
  let E = b + 1;
6384
6384
  for (; E < c; E++) {
6385
6385
  const M = o[E], L = e[M];
6386
- if (n[M].containsBox(x) && Du.isPointInPolygon(
6386
+ if (n[M].containsBox(x) && Uu.isPointInPolygon(
6387
6387
  w[Mt.randInt(0, w.length - 1)],
6388
6388
  L
6389
6389
  )) {
@@ -6426,7 +6426,7 @@ class _a extends gl {
6426
6426
  }), n;
6427
6427
  }
6428
6428
  }
6429
- class Ns extends gl {
6429
+ class Ns extends fl {
6430
6430
  constructor() {
6431
6431
  super(), this.arcLengthDivisions = 100;
6432
6432
  }
@@ -6804,7 +6804,7 @@ class ks extends Ns {
6804
6804
  return e;
6805
6805
  }
6806
6806
  }
6807
- class Ku extends ml {
6807
+ class $u extends gl {
6808
6808
  /**
6809
6809
  * Return new shape translated by given vector.
6810
6810
  * Translation vector may be also defined by a pair of numbers.
@@ -6821,9 +6821,9 @@ class Ku extends ml {
6821
6821
  return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
6822
6822
  }
6823
6823
  }
6824
- class Cs extends Ku {
6824
+ class Cs extends $u {
6825
6825
  }
6826
- let Gi = class fl extends Cs {
6826
+ let Gi = class _l extends Cs {
6827
6827
  /**
6828
6828
  * This constructor initializes the line object to use start as the start point, and end
6829
6829
  * as the endpoint. Both points must be in WCS coordinates.
@@ -6933,9 +6933,9 @@ let Gi = class fl extends Cs {
6933
6933
  * @returns Return a point parameter based on the closest point as projected on the line segment.
6934
6934
  */
6935
6935
  closestPointToPointParameter(t, e) {
6936
- Co.subVectors(t, this._start), Fs.subVectors(this.endPoint, this.startPoint);
6936
+ Lo.subVectors(t, this._start), Fs.subVectors(this.endPoint, this.startPoint);
6937
6937
  const n = Fs.dot(Fs);
6938
- let o = Fs.dot(Co) / n;
6938
+ let o = Fs.dot(Lo) / n;
6939
6939
  return e && (o = Mt.clamp(o, 0, 1)), o;
6940
6940
  }
6941
6941
  /**
@@ -7029,11 +7029,11 @@ let Gi = class fl extends Cs {
7029
7029
  * @inheritdoc
7030
7030
  */
7031
7031
  clone() {
7032
- return new fl(this._start.clone(), this._end.clone());
7032
+ return new _l(this._start.clone(), this._end.clone());
7033
7033
  }
7034
7034
  };
7035
- const Jr = /* @__PURE__ */ new Z(), Co = /* @__PURE__ */ new Z(), Fs = /* @__PURE__ */ new Z();
7036
- let _l = class Ys extends Cs {
7035
+ const Jr = /* @__PURE__ */ new Z(), Lo = /* @__PURE__ */ new Z(), Fs = /* @__PURE__ */ new Z();
7036
+ let yl = class Ys extends Cs {
7037
7037
  /**
7038
7038
  * Compute center point of the arc given three points
7039
7039
  * @param startPoint Input start point of the arc
@@ -7270,7 +7270,7 @@ let _l = class Ys extends Cs {
7270
7270
  * Return the plane in which the circular arc lies.
7271
7271
  */
7272
7272
  get plane() {
7273
- const t = new Z(this.center).distanceTo(ol);
7273
+ const t = new Z(this.center).distanceTo(ll);
7274
7274
  return new ui(this.normal, t);
7275
7275
  }
7276
7276
  };
@@ -7563,7 +7563,7 @@ class va extends Cs {
7563
7563
  * @returns True if the ellipse arc is circular
7564
7564
  */
7565
7565
  get isCircular() {
7566
- return ll.equal(this.majorAxisRadius, this.minorAxisRadius);
7566
+ return hl.equal(this.majorAxisRadius, this.minorAxisRadius);
7567
7567
  }
7568
7568
  get length() {
7569
7569
  if (this.isCircular)
@@ -7675,7 +7675,7 @@ class va extends Cs {
7675
7675
  * Return the plane in which the ellipse arc lies.
7676
7676
  */
7677
7677
  get plane() {
7678
- const t = new Z(this.center).distanceTo(ol);
7678
+ const t = new Z(this.center).distanceTo(ll);
7679
7679
  return new ui(this.normal, t);
7680
7680
  }
7681
7681
  }
@@ -7816,7 +7816,7 @@ class Fn extends Ns {
7816
7816
  return e;
7817
7817
  }
7818
7818
  }
7819
- let qs = class yl extends Ns {
7819
+ let qs = class vl extends Ns {
7820
7820
  /**
7821
7821
  * This constructor initializes the line object to use start as the start point, and end
7822
7822
  * as the endpoint. Both points must be in WCS coordinates.
@@ -7892,9 +7892,9 @@ let qs = class yl extends Ns {
7892
7892
  * @inheritdoc
7893
7893
  */
7894
7894
  clone() {
7895
- return new yl(this._start.clone(), this._end.clone());
7895
+ return new vl(this._start.clone(), this._end.clone());
7896
7896
  }
7897
- }, vl = class extends Ns {
7897
+ }, bl = class extends Ns {
7898
7898
  /**
7899
7899
  * Create one loop by connected curves
7900
7900
  * @param curves Input one array of connected curves
@@ -7976,10 +7976,10 @@ let qs = class yl extends Ns {
7976
7976
  }), e;
7977
7977
  }
7978
7978
  };
7979
- function $u(i) {
7979
+ function Zu(i) {
7980
7980
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
7981
7981
  }
7982
- var bl = { exports: {} };
7982
+ var xl = { exports: {} };
7983
7983
  (function(i, t) {
7984
7984
  (function(e) {
7985
7985
  i.exports = e();
@@ -8320,10 +8320,10 @@ var bl = { exports: {} };
8320
8320
  }
8321
8321
  break;
8322
8322
  case 4:
8323
- if (Tt.__instanceof(r, lo)) {
8323
+ if (Tt.__instanceof(r, ho)) {
8324
8324
  var Pt = ut.getClassName(r);
8325
8325
  this.buf.b += "A", this.serializeString(Pt);
8326
- } else if (Tt.__instanceof(r, ho))
8326
+ } else if (Tt.__instanceof(r, uo))
8327
8327
  this.buf.b += "B", this.serializeString(ut.getEnumName(r));
8328
8328
  else {
8329
8329
  if (this.useCache && this.serializeRef(r)) return;
@@ -8768,17 +8768,17 @@ var bl = { exports: {} };
8768
8768
  }, Tt.__instanceof = function(r, s) {
8769
8769
  if (s == null) return !1;
8770
8770
  switch (s) {
8771
- case jh:
8771
+ case Wh:
8772
8772
  return (r | 0) === r;
8773
- case ao:
8774
- return typeof r == "number";
8775
8773
  case oo:
8774
+ return typeof r == "number";
8775
+ case lo:
8776
8776
  return typeof r == "boolean";
8777
8777
  case String:
8778
8778
  return typeof r == "string";
8779
8779
  case Array:
8780
8780
  return r instanceof Array && r.__enum__ == null;
8781
- case Wh:
8781
+ case Hh:
8782
8782
  return !0;
8783
8783
  default:
8784
8784
  if (r != null) {
@@ -8787,7 +8787,7 @@ var bl = { exports: {} };
8787
8787
  } else if (typeof s == "object" && Tt.__isNativeObj(s) && r instanceof s)
8788
8788
  return !0;
8789
8789
  } else return !1;
8790
- return s == lo && r.__name__ != null || s == ho && r.__ename__ != null ? !0 : r.__enum__ == s;
8790
+ return s == ho && r.__name__ != null || s == uo && r.__ename__ != null ? !0 : r.__enum__ == s;
8791
8791
  }
8792
8792
  }, Tt.__nativeClassName = function(r) {
8793
8793
  var s = Tt.__toStr.call(r).slice(8, -1);
@@ -11434,57 +11434,57 @@ var bl = { exports: {} };
11434
11434
  for (var Je = Pe - Pt, tr = [], er = l; er > fe; )
11435
11435
  tr[er - fe - 1] = Je / (u[pt + er] - Pt), er--;
11436
11436
  for (var gr = 1, Mn = nt + 1; gr < Mn; ) {
11437
- for (var $r = gr++, Hh = nt - $r, fi = fe + $r, Zr = l; Zr >= fi; )
11437
+ for (var $r = gr++, Yh = nt - $r, fi = fe + $r, Zr = l; Zr >= fi; )
11438
11438
  A[Zr] = p.add(p.mul(tr[Zr - fi], A[Zr]), p.mul(1 - tr[Zr - fi], A[Zr - 1])), Zr--;
11439
- S[Hh] = A[l];
11439
+ S[Yh] = A[l];
11440
11440
  }
11441
11441
  }
11442
- for (var uo = Qe, Yh = k + 1; uo < Yh; ) {
11443
- var Tn = uo++;
11442
+ for (var co = Qe, qh = k + 1; co < qh; ) {
11443
+ var Tn = co++;
11444
11444
  I[Tn] = p.zeros1d(_);
11445
- for (var qh = _t.imin(l, Tn), co = _t.imax(0, Tn - m), Xh = qh + 1; co < Xh; ) {
11446
- var po = co++;
11447
- I[Tn] = p.add(I[Tn], p.mul(y[Tn][po], A[po]));
11445
+ for (var Xh = _t.imin(l, Tn), po = _t.imax(0, Tn - m), Kh = Xh + 1; po < Kh; ) {
11446
+ var mo = po++;
11447
+ I[Tn] = p.add(I[Tn], p.mul(y[Tn][mo], A[mo]));
11448
11448
  }
11449
11449
  }
11450
11450
  if (ze > 1)
11451
- for (var _i = ct - 2, yi = ct, mo = Pe - Pt, Kh = (Pe - C[ct - 1]) / mo, go = 1; go < ze; ) {
11452
- for (var vi = go++, fr = _i, Qr = yi, Vr = Qr - ct + 1; Qr - fr > vi; ) {
11451
+ for (var _i = ct - 2, yi = ct, go = Pe - Pt, $h = (Pe - C[ct - 1]) / go, fo = 1; fo < ze; ) {
11452
+ for (var vi = fo++, fr = _i, Qr = yi, Vr = Qr - ct + 1; Qr - fr > vi; ) {
11453
11453
  if (fr < ft) {
11454
- var $h = (Pe - C[fr]) / (Pt - C[fr]);
11455
- O[fr] = p.lerp($h, O[fr], O[fr - 1]);
11454
+ var Zh = (Pe - C[fr]) / (Pt - C[fr]);
11455
+ O[fr] = p.lerp(Zh, O[fr], O[fr - 1]);
11456
11456
  }
11457
11457
  if (Qr >= Qe) {
11458
11458
  if (Qr - vi <= ct - k + ze) {
11459
- var Zh = (Pe - C[Qr - vi]) / mo;
11460
- I[Vr] = p.lerp(Zh, I[Vr], I[Vr + 1]);
11459
+ var Qh = (Pe - C[Qr - vi]) / go;
11460
+ I[Vr] = p.lerp(Qh, I[Vr], I[Vr + 1]);
11461
11461
  }
11462
- } else I[Vr] = p.lerp(Kh, I[Vr], I[Vr + 1]);
11462
+ } else I[Vr] = p.lerp($h, I[Vr], I[Vr + 1]);
11463
11463
  fr = fr + 1, Qr = Qr - 1, Vr = Vr - 1;
11464
11464
  }
11465
11465
  _i = _i - 1, yi = yi + 1;
11466
11466
  }
11467
11467
  if (pt != l)
11468
- for (var fo = 0, Qh = k - ze; fo < Qh; )
11469
- fo++, C[ct] = Pt, ct = ct + 1;
11470
- for (var _o = Qe, Jh = ur + 1; _o < Jh; ) {
11471
- var tu = _o++;
11472
- O[ft] = I[tu], ft = ft + 1;
11468
+ for (var _o = 0, Jh = k - ze; _o < Jh; )
11469
+ _o++, C[ct] = Pt, ct = ct + 1;
11470
+ for (var yo = Qe, tu = ur + 1; yo < tu; ) {
11471
+ var eu = yo++;
11472
+ O[ft] = I[eu], ft = ft + 1;
11473
11473
  }
11474
11474
  if (X < P) {
11475
- for (var yo = 0; yo < nt; ) {
11476
- var vo = yo++;
11477
- A[vo] = S[vo];
11475
+ for (var vo = 0; vo < nt; ) {
11476
+ var bo = vo++;
11477
+ A[bo] = S[bo];
11478
11478
  }
11479
- for (var bo = nt, eu = l + 1; bo < eu; ) {
11480
- var xo = bo++;
11481
- A[xo] = d[X - l + xo];
11479
+ for (var xo = nt, ru = l + 1; xo < ru; ) {
11480
+ var wo = xo++;
11481
+ A[wo] = d[X - l + wo];
11482
11482
  }
11483
11483
  pt = X, X = X + 1, Pt = Pe;
11484
11484
  } else
11485
- for (var wo = 0, ru = k + 1; wo < ru; ) {
11486
- var nu = wo++;
11487
- C[ct + nu] = Pe;
11485
+ for (var Ao = 0, nu = k + 1; Ao < nu; ) {
11486
+ var su = Ao++;
11487
+ C[ct + su] = Pe;
11488
11488
  }
11489
11489
  }
11490
11490
  return new jt(s, C, O);
@@ -12363,21 +12363,21 @@ var bl = { exports: {} };
12363
12363
  return L.iter(r);
12364
12364
  } : typeof r.iterator == "function" ? Be(r, r.iterator) : r.iterator;
12365
12365
  }
12366
- var pi, Gh = 0;
12366
+ var pi, jh = 0;
12367
12367
  function Be(r, s) {
12368
12368
  if (s == null) return null;
12369
- s.__id__ == null && (s.__id__ = Gh++);
12369
+ s.__id__ == null && (s.__id__ = jh++);
12370
12370
  var a;
12371
12371
  return r.hx__closures__ == null ? r.hx__closures__ = {} : a = r.hx__closures__[s.__id__], a == null && (a = function() {
12372
12372
  return a.method.apply(a.scope, arguments);
12373
12373
  }, a.scope = r, a.method = s, r.hx__closures__[s.__id__] = a), a;
12374
12374
  }
12375
12375
  x.Math = Math, String.prototype.__class__ = x.String = String, String.__name__ = ["String"], x.Array = Array, Array.__name__ = ["Array"], Date.prototype.__class__ = x.Date = Date, Date.__name__ = ["Date"];
12376
- var jh = x.Int = { __name__: ["Int"] }, Wh = x.Dynamic = { __name__: ["Dynamic"] }, ao = x.Float = Number;
12377
- ao.__name__ = ["Float"];
12378
- var oo = x.Bool = Boolean;
12379
- oo.__ename__ = ["Bool"];
12380
- var lo = x.Class = { __name__: ["Class"] }, ho = {};
12376
+ var Wh = x.Int = { __name__: ["Int"] }, Hh = x.Dynamic = { __name__: ["Dynamic"] }, oo = x.Float = Number;
12377
+ oo.__name__ = ["Float"];
12378
+ var lo = x.Bool = Boolean;
12379
+ lo.__ename__ = ["Bool"];
12380
+ var ho = x.Class = { __name__: ["Class"] }, uo = {};
12381
12381
  Array.prototype.map == null && (Array.prototype.map = function(r) {
12382
12382
  for (var s = [], a = 0, l = this.length; a < l; ) {
12383
12383
  var u = a++;
@@ -12482,9 +12482,9 @@ var bl = { exports: {} };
12482
12482
  }(typeof console < "u" ? console : { log: function() {
12483
12483
  } }, e, typeof c < "u" ? c : typeof n < "u" ? n : typeof self < "u" ? self : this), e;
12484
12484
  });
12485
- })(bl);
12486
- var Zu = bl.exports;
12487
- const On = /* @__PURE__ */ $u(Zu);
12485
+ })(xl);
12486
+ var Qu = xl.exports;
12487
+ const On = /* @__PURE__ */ Zu(Qu);
12488
12488
  class Pi {
12489
12489
  constructor() {
12490
12490
  this.c0 = 0, this.c1 = 0, this.c2 = 0, this.c3 = 0;
@@ -12521,7 +12521,7 @@ class Pi {
12521
12521
  return this.c0 + this.c1 * t + this.c2 * e + this.c3 * n;
12522
12522
  }
12523
12523
  }
12524
- let Qu = class extends Cs {
12524
+ let Ju = class extends Cs {
12525
12525
  /**
12526
12526
  * Constructs a new Catmull-Rom curve.
12527
12527
  *
@@ -12720,7 +12720,7 @@ class Rn {
12720
12720
  */
12721
12721
  length() {
12722
12722
  const t = this._controlPoints.map((e) => [e.x, e.y, e.z]);
12723
- return ju(
12723
+ return Wu(
12724
12724
  this._degree,
12725
12725
  this._knots,
12726
12726
  t,
@@ -12740,14 +12740,14 @@ class Rn {
12740
12740
  let o;
12741
12741
  switch (n) {
12742
12742
  case "Chord":
12743
- o = Vu(e, t);
12743
+ o = Gu(e, t);
12744
12744
  break;
12745
12745
  case "SqrtChord":
12746
- o = Gu(e, t);
12746
+ o = ju(e, t);
12747
12747
  break;
12748
12748
  case "Uniform":
12749
12749
  default:
12750
- o = Uu(e, t.length);
12750
+ o = Vu(e, t.length);
12751
12751
  break;
12752
12752
  }
12753
12753
  const h = t.map((g) => ({ x: g[0], y: g[1], z: g[2] })), c = new Array(h.length).fill(1);
@@ -12786,7 +12786,7 @@ class Rn {
12786
12786
  static createFitPointsForClosedCurve(t) {
12787
12787
  if (t.length < 4)
12788
12788
  throw new Error("At least 4 points are required for a closed NURBS curve");
12789
- const e = new Qu(
12789
+ const e = new Ju(
12790
12790
  t,
12791
12791
  !0,
12792
12792
  "centripetal"
@@ -13005,13 +13005,136 @@ class gn extends Cs {
13005
13005
  return new gn(t, e, n, !0);
13006
13006
  }
13007
13007
  }
13008
- var un = 256, xl = [], Lo = 256, Ds;
13009
- for (; un--; ) xl[un] = (un + 256).toString(16).substring(1);
13010
- function Ju(i) {
13008
+ var wl = /* @__PURE__ */ ((i) => (i.ClosedFilled = "", i.Dot = "_DOT", i.DotSmall = "_DOTSMALL", i.DotBlank = "_DOTBLANK", i.Origin = "_ORIGIN", i.Origin2 = "_ORIGIN2", i.Open = "_OPEN", i.Open90 = "_OPEN90", i.Open30 = "_OPEN30", i.Closed = "_CLOSED", i.Small = "_SMALL", i.None = "_NONE", i.Oblique = "_OBLIQUE", i.BoxFilled = "_BOXFILLED", i.Box = "_BOXBLANK", i.ClosedBlank = "_CLOSEDBLANK", i.DatumBlank = "_DATUMBLANK", i.DatumFilled = "_DATUMFILLED", i.Integral = "_INTEGRAL", i.ArchTick = "_ARCHTICK", i))(wl || {}), ba = /* @__PURE__ */ ((i) => (i[i.ByBlock = -2] = "ByBlock", i[i.ByDIPs = -4] = "ByDIPs", i[i.ByLayer = -1] = "ByLayer", i[i.ByLineWeightDefault = -3] = "ByLineWeightDefault", i[i.LineWeight000 = 0] = "LineWeight000", i[i.LineWeight005 = 5] = "LineWeight005", i[i.LineWeight009 = 9] = "LineWeight009", i[i.LineWeight013 = 13] = "LineWeight013", i[i.LineWeight015 = 15] = "LineWeight015", i[i.LineWeight018 = 18] = "LineWeight018", i[i.LineWeight020 = 20] = "LineWeight020", i[i.LineWeight025 = 25] = "LineWeight025", i[i.LineWeight030 = 30] = "LineWeight030", i[i.LineWeight035 = 35] = "LineWeight035", i[i.LineWeight040 = 40] = "LineWeight040", i[i.LineWeight050 = 50] = "LineWeight050", i[i.LineWeight053 = 53] = "LineWeight053", i[i.LineWeight060 = 60] = "LineWeight060", i[i.LineWeight070 = 70] = "LineWeight070", i[i.LineWeight080 = 80] = "LineWeight080", i[i.LineWeight090 = 90] = "LineWeight090", i[i.LineWeight100 = 100] = "LineWeight100", i[i.LineWeight106 = 106] = "LineWeight106", i[i.LineWeight120 = 120] = "LineWeight120", i[i.LineWeight140 = 140] = "LineWeight140", i[i.LineWeight158 = 158] = "LineWeight158", i[i.LineWeight200 = 200] = "LineWeight200", i[i.LineWeight211 = 211] = "LineWeight211", i))(ba || {}), Wr = /* @__PURE__ */ ((i) => (i[i.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", i[i.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", i[i.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", i[i.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", i[i.BY_STYLE = 5] = "BY_STYLE", i))(Wr || {}), Me = /* @__PURE__ */ ((i) => (i[i.TopLeft = 1] = "TopLeft", i[i.TopCenter = 2] = "TopCenter", i[i.TopRight = 3] = "TopRight", i[i.MiddleLeft = 4] = "MiddleLeft", i[i.MiddleCenter = 5] = "MiddleCenter", i[i.MiddleRight = 6] = "MiddleRight", i[i.BottomLeft = 7] = "BottomLeft", i[i.BottomCenter = 8] = "BottomCenter", i[i.BottomRight = 9] = "BottomRight", i))(Me || {}), Al = /* @__PURE__ */ ((i) => (i[i.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", i[i.WIREFRAME = 1] = "WIREFRAME", i[i.HIDDEN_LINE = 2] = "HIDDEN_LINE", i[i.FLAT_SHADED = 3] = "FLAT_SHADED", i[i.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", i[i.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", i[i.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", i))(Al || {}), Sl = /* @__PURE__ */ ((i) => (i[i.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", i[i.TOP = 1] = "TOP", i[i.BOTTOM = 2] = "BOTTOM", i[i.FRONT = 3] = "FRONT", i[i.BACK = 4] = "BACK", i[i.LEFT = 5] = "LEFT", i[i.RIGHT = 6] = "RIGHT", i))(Sl || {}), Il = /* @__PURE__ */ ((i) => (i[i.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", i[i.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", i))(Il || {});
13009
+ let tc = class Pl {
13010
+ constructor() {
13011
+ this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new Y(), this._height = 0, this._width = 0, this._viewCenter = new Y(), this._viewHeight = 0;
13012
+ }
13013
+ /**
13014
+ * The viewport ID number. If the viewport is inactive, -1 is returned.
13015
+ */
13016
+ get number() {
13017
+ return this._number;
13018
+ }
13019
+ set number(t) {
13020
+ this._number = t;
13021
+ }
13022
+ /**
13023
+ * The id of the viewport.
13024
+ */
13025
+ get id() {
13026
+ return this._id;
13027
+ }
13028
+ set id(t) {
13029
+ this._id = t;
13030
+ }
13031
+ /**
13032
+ * The id of the group which this viewport belongs to.
13033
+ */
13034
+ get groupId() {
13035
+ return this._groupId;
13036
+ }
13037
+ set groupId(t) {
13038
+ this._groupId = t;
13039
+ }
13040
+ /**
13041
+ * The center point of the viewport entity in WCS coordinates (within Paper Space).
13042
+ */
13043
+ get centerPoint() {
13044
+ return this._centerPoint;
13045
+ }
13046
+ set centerPoint(t) {
13047
+ this._centerPoint.copy(t);
13048
+ }
13049
+ /**
13050
+ * The height of the viewport entity's window in drawing units.
13051
+ */
13052
+ get height() {
13053
+ return this._height;
13054
+ }
13055
+ set height(t) {
13056
+ this._height = t;
13057
+ }
13058
+ /**
13059
+ * The width of the viewport entity's window in drawing units. This is the width in Paper Space
13060
+ * of the viewport itself, not the width of the Model Space view within the viewport.
13061
+ */
13062
+ get width() {
13063
+ return this._width;
13064
+ }
13065
+ set width(t) {
13066
+ this._width = t;
13067
+ }
13068
+ /**
13069
+ * The bounding box (in world coordinate system coordinates) of the viewport.
13070
+ */
13071
+ get box() {
13072
+ const t = new Ae();
13073
+ return t.setFromCenterAndSize(this.centerPoint, {
13074
+ x: this.width,
13075
+ y: this.height
13076
+ }), t;
13077
+ }
13078
+ /**
13079
+ * The view center (in display coordinate system coordinates) of the view in the viewport.
13080
+ */
13081
+ get viewCenter() {
13082
+ return this._viewCenter;
13083
+ }
13084
+ set viewCenter(t) {
13085
+ this._viewCenter.copy(t);
13086
+ }
13087
+ /**
13088
+ * The height (in display coordinate system coordinates) of the Model Space view within the viewport.
13089
+ * Zooming the view out within the viewport increases this value and zooming in decreases this value.
13090
+ */
13091
+ get viewHeight() {
13092
+ return this._viewHeight;
13093
+ }
13094
+ set viewHeight(t) {
13095
+ this._viewHeight = t;
13096
+ }
13097
+ /**
13098
+ * The width (in display coordinate system coordinates) of the Model Space view within the viewport.
13099
+ * This is one computed property based on 'viewHeight' and viewport ratio of width and height.
13100
+ */
13101
+ get viewWidth() {
13102
+ return this.viewHeight * (this.width / this.height);
13103
+ }
13104
+ /**
13105
+ * The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
13106
+ */
13107
+ get viewBox() {
13108
+ const t = new Ae();
13109
+ return t.setFromCenterAndSize(this.viewCenter, {
13110
+ x: this.viewWidth,
13111
+ y: this.viewHeight
13112
+ }), t;
13113
+ }
13114
+ /**
13115
+ * Clone this viewport
13116
+ * @returns Return the cloned instance of this viewport
13117
+ */
13118
+ clone() {
13119
+ const t = new Pl();
13120
+ return t.id = this.id, t.groupId = this.groupId, t.number = this.number, t.centerPoint.copy(this.centerPoint), t.height = this.height, t.width = this.width, t.viewCenter.copy(this.viewCenter), t.viewHeight = this.viewHeight, t;
13121
+ }
13122
+ /**
13123
+ * Copy the property values of the passed viewport to this viewport.
13124
+ * @param viewport Input one viewport instance
13125
+ * @returns Return this viewport
13126
+ */
13127
+ copy(t) {
13128
+ return this.id = t.id, this.groupId = t.groupId, this.number = t.number, this.centerPoint.copy(t.centerPoint), this.height = t.height, this.width = t.width, this.viewCenter.copy(t.viewCenter), this.viewHeight = t.viewHeight, this;
13129
+ }
13130
+ };
13131
+ var un = 256, El = [], Oo = 256, Ds;
13132
+ for (; un--; ) El[un] = (un + 256).toString(16).substring(1);
13133
+ function ec(i) {
13011
13134
  var t = 0, e = 11;
13012
- if (!Ds || un + e > Lo * 2)
13013
- for (Ds = "", un = 0; t < Lo; t++)
13014
- Ds += xl[Math.random() * 256 | 0];
13135
+ if (!Ds || un + e > Oo * 2)
13136
+ for (Ds = "", un = 0; t < Oo; t++)
13137
+ Ds += El[Math.random() * 256 | 0];
13015
13138
  return Ds.substring(un, un++ + e);
13016
13139
  }
13017
13140
  class _n {
@@ -13027,7 +13150,7 @@ class _n {
13027
13150
  * ```
13028
13151
  */
13029
13152
  constructor(t, e) {
13030
- t = t || {}, Ts(t, { objectId: Ju() }), this._attrs = new cu(t, e);
13153
+ t = t || {}, Ts(t, { objectId: ec() }), this._attrs = new du(t, e);
13031
13154
  }
13032
13155
  /**
13033
13156
  * Gets the attributes object for this AcDbObject.
@@ -13175,7 +13298,7 @@ class _n {
13175
13298
  * ```
13176
13299
  */
13177
13300
  get database() {
13178
- return this._database ? this._database : Vh().workingDatabase;
13301
+ return this._database ? this._database : Gh().workingDatabase;
13179
13302
  }
13180
13303
  /**
13181
13304
  * Sets the database for this object.
@@ -13208,9 +13331,9 @@ class _n {
13208
13331
  close() {
13209
13332
  }
13210
13333
  }
13211
- const Ea = class Ea extends _n {
13334
+ const ka = class ka extends _n {
13212
13335
  constructor() {
13213
- super(...arguments), this._layer = "0", this._color = new fn(), this._lineType = xi, this._lineWeight = 1, this._linetypeScale = -1, this._visibility = !0, this._transparency = new ga();
13336
+ super(...arguments), this._layer = "0", this._color = new fn(), this._lineType = xi, this._lineWeight = ba.ByLayer, this._linetypeScale = -1, this._visibility = !0, this._transparency = new ga();
13214
13337
  }
13215
13338
  /**
13216
13339
  * Gets the type name of this entity.
@@ -13334,11 +13457,6 @@ const Ea = class Ea extends _n {
13334
13457
  * Gets the line weight used by this entity.
13335
13458
  *
13336
13459
  * @returns The line weight value
13337
- *
13338
- * @example
13339
- * ```typescript
13340
- * const weight = entity.lineWeight;
13341
- * ```
13342
13460
  */
13343
13461
  get lineWeight() {
13344
13462
  return this._lineWeight;
@@ -13347,11 +13465,6 @@ const Ea = class Ea extends _n {
13347
13465
  * Sets the line weight for this entity.
13348
13466
  *
13349
13467
  * @param value - The new line weight value
13350
- *
13351
- * @example
13352
- * ```typescript
13353
- * entity.lineWeight = 2;
13354
- * ```
13355
13468
  */
13356
13469
  set lineWeight(t) {
13357
13470
  this._lineWeight = t;
@@ -13560,6 +13673,17 @@ const Ea = class Ea extends _n {
13560
13673
  get: () => this.objectId
13561
13674
  }
13562
13675
  },
13676
+ {
13677
+ name: "color",
13678
+ type: "color",
13679
+ editable: !0,
13680
+ accessor: {
13681
+ get: () => this.color,
13682
+ set: (t) => {
13683
+ this.color.copy(t);
13684
+ }
13685
+ }
13686
+ },
13563
13687
  {
13564
13688
  name: "layer",
13565
13689
  type: "string",
@@ -13572,13 +13696,46 @@ const Ea = class Ea extends _n {
13572
13696
  }
13573
13697
  },
13574
13698
  {
13575
- name: "color",
13576
- type: "color",
13699
+ name: "linetype",
13700
+ type: "linetype",
13577
13701
  editable: !0,
13578
13702
  accessor: {
13579
- get: () => this.color,
13703
+ get: () => this.lineType,
13580
13704
  set: (t) => {
13581
- this.color.copy(t);
13705
+ this.lineType = t;
13706
+ }
13707
+ }
13708
+ },
13709
+ {
13710
+ name: "linetypeScale",
13711
+ type: "float",
13712
+ editable: !0,
13713
+ accessor: {
13714
+ get: () => this.linetypeScale,
13715
+ set: (t) => {
13716
+ this.linetypeScale = t;
13717
+ }
13718
+ }
13719
+ },
13720
+ {
13721
+ name: "lineWeight",
13722
+ type: "lineweight",
13723
+ editable: !0,
13724
+ accessor: {
13725
+ get: () => this.lineWeight,
13726
+ set: (t) => {
13727
+ this.lineWeight = t;
13728
+ }
13729
+ }
13730
+ },
13731
+ {
13732
+ name: "transparency",
13733
+ type: "transparency",
13734
+ editable: !0,
13735
+ accessor: {
13736
+ get: () => this.transparency,
13737
+ set: (t) => {
13738
+ this.transparency = t;
13582
13739
  }
13583
13740
  }
13584
13741
  }
@@ -13630,7 +13787,7 @@ const Ea = class Ea extends _n {
13630
13787
  type: "ByLayer",
13631
13788
  name: t.linetype
13632
13789
  };
13633
- } else return this.lineType == yu ? {
13790
+ } else return this.lineType == vu ? {
13634
13791
  type: "ByBlock",
13635
13792
  name: zi
13636
13793
  } : {
@@ -13680,14 +13837,14 @@ const Ea = class Ea extends _n {
13680
13837
  t && (t.objectId = this.objectId, this.attrs.has("ownerId") && (t.ownerId = this.ownerId), t.layerName = this.layer, t.visible = this.visibility);
13681
13838
  }
13682
13839
  };
13683
- Ea.typeName = "Entity";
13684
- let Te = Ea;
13685
- const ka = class ka extends Te {
13840
+ ka.typeName = "Entity";
13841
+ let Te = ka;
13842
+ const Ma = class Ma extends Te {
13686
13843
  };
13687
- ka.typeName = "Curve";
13688
- let Ne = ka;
13844
+ Ma.typeName = "Curve";
13845
+ let Ne = Ma;
13689
13846
  var Ps = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.FitCurvePoly = 1] = "FitCurvePoly", i[i.QuadSplinePoly = 2] = "QuadSplinePoly", i[i.CubicSplinePoly = 3] = "CubicSplinePoly", i))(Ps || {});
13690
- const Ma = class Ma extends Ne {
13847
+ const Ta = class Ta extends Ne {
13691
13848
  /**
13692
13849
  * Creates a new empty 2d polyline entity.
13693
13850
  */
@@ -13818,10 +13975,10 @@ const Ma = class Ma extends Ne {
13818
13975
  ), t.lines(e);
13819
13976
  }
13820
13977
  };
13821
- Ma.typeName = "2dPolyline";
13822
- let ji = Ma;
13823
- var tc = /* @__PURE__ */ ((i) => (i[i.Vertex = 0] = "Vertex", i[i.CurveFitVertex = 1] = "CurveFitVertex", i[i.SplineFitVertex = 8] = "SplineFitVertex", i[i.SplineCtlVertex = 9] = "SplineCtlVertex", i))(tc || {});
13824
- const Ta = class Ta extends Te {
13978
+ Ta.typeName = "2dPolyline";
13979
+ let ji = Ta;
13980
+ var rc = /* @__PURE__ */ ((i) => (i[i.Vertex = 0] = "Vertex", i[i.CurveFitVertex = 1] = "CurveFitVertex", i[i.SplineFitVertex = 8] = "SplineFitVertex", i[i.SplineCtlVertex = 9] = "SplineCtlVertex", i))(rc || {});
13981
+ const Na = class Na extends Te {
13825
13982
  /**
13826
13983
  * Creates a new 2d vertex entity.
13827
13984
  */
@@ -13949,10 +14106,10 @@ const Ta = class Ta extends Te {
13949
14106
  draw(t) {
13950
14107
  }
13951
14108
  };
13952
- Ta.typeName = "2dVertex";
13953
- let Oo = Ta;
14109
+ Na.typeName = "2dVertex";
14110
+ let Bo = Na;
13954
14111
  var Xs = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.QuadSplinePoly = 1] = "QuadSplinePoly", i[i.CubicSplinePoly = 2] = "CubicSplinePoly", i))(Xs || {});
13955
- const Na = class Na extends Ne {
14112
+ const Ca = class Ca extends Ne {
13956
14113
  /**
13957
14114
  * Creates a new empty 2d polyline entity.
13958
14115
  */
@@ -14047,10 +14204,10 @@ const Na = class Na extends Ne {
14047
14204
  ), t.lines(e);
14048
14205
  }
14049
14206
  };
14050
- Na.typeName = "3dPolyline";
14051
- let Wi = Na;
14052
- var ec = /* @__PURE__ */ ((i) => (i[i.SimpleVertex = 0] = "SimpleVertex", i[i.ControlVertex = 1] = "ControlVertex", i[i.FitVertex = 2] = "FitVertex", i))(ec || {});
14053
- const Ca = class Ca extends Te {
14207
+ Ca.typeName = "3dPolyline";
14208
+ let Wi = Ca;
14209
+ var nc = /* @__PURE__ */ ((i) => (i[i.SimpleVertex = 0] = "SimpleVertex", i[i.ControlVertex = 1] = "ControlVertex", i[i.FitVertex = 2] = "FitVertex", i))(nc || {});
14210
+ const La = class La extends Te {
14054
14211
  /**
14055
14212
  * Creates a new 3d vertex entity.
14056
14213
  */
@@ -14122,9 +14279,9 @@ const Ca = class Ca extends Te {
14122
14279
  draw(t) {
14123
14280
  }
14124
14281
  };
14125
- Ca.typeName = "3dVertex";
14126
- let Bo = Ca;
14127
- const La = class La extends Ne {
14282
+ La.typeName = "3dVertex";
14283
+ let zo = La;
14284
+ const Oa = class Oa extends Ne {
14128
14285
  /**
14129
14286
  * Creates a new arc entity.
14130
14287
  *
@@ -14158,7 +14315,7 @@ const La = class La extends Ne {
14158
14315
  * ```
14159
14316
  */
14160
14317
  constructor(t, e, n, o, h = Z.Z_AXIS) {
14161
- super(), this._geo = new _l(
14318
+ super(), this._geo = new yl(
14162
14319
  t,
14163
14320
  e,
14164
14321
  n,
@@ -14536,9 +14693,9 @@ const La = class La extends Ne {
14536
14693
  return t.circularArc(this._geo);
14537
14694
  }
14538
14695
  };
14539
- La.typeName = "Arc";
14540
- let Hi = La;
14541
- const Oa = class Oa extends Te {
14696
+ Oa.typeName = "Arc";
14697
+ let Hi = Oa;
14698
+ const Ba = class Ba extends Te {
14542
14699
  /**
14543
14700
  * Creates a new block reference entity.
14544
14701
  *
@@ -14851,7 +15008,7 @@ const Oa = class Oa extends Te {
14851
15008
  t.union(c.geometricExtents);
14852
15009
  }
14853
15010
  const n = new pn().setFromEuler(
14854
- new Xu(this.rotation, 0, 0)
15011
+ new Ku(this.rotation, 0, 0)
14855
15012
  ), o = new mn();
14856
15013
  return o.compose(this.position, n, this.scaleFactors), t.applyMatrix4(o), t;
14857
15014
  }
@@ -14884,9 +15041,9 @@ const Oa = class Oa extends Te {
14884
15041
  );
14885
15042
  }
14886
15043
  };
14887
- Oa.typeName = "BlockReference";
14888
- let ri = Oa;
14889
- const Ba = class Ba extends Ne {
15044
+ Ba.typeName = "BlockReference";
15045
+ let ri = Ba;
15046
+ const za = class za extends Ne {
14890
15047
  /**
14891
15048
  * Creates a new circle entity.
14892
15049
  *
@@ -14915,7 +15072,7 @@ const Ba = class Ba extends Ne {
14915
15072
  * ```
14916
15073
  */
14917
15074
  constructor(t, e, n = Z.Z_AXIS) {
14918
- super(), this._geo = new _l(
15075
+ super(), this._geo = new yl(
14919
15076
  t,
14920
15077
  e,
14921
15078
  0,
@@ -15173,9 +15330,9 @@ const Ba = class Ba extends Ne {
15173
15330
  return t.circularArc(this._geo);
15174
15331
  }
15175
15332
  };
15176
- Ba.typeName = "Circle";
15177
- let Yi = Ba;
15178
- const za = class za extends Ne {
15333
+ za.typeName = "Circle";
15334
+ let Yi = za;
15335
+ const Ra = class Ra extends Ne {
15179
15336
  /**
15180
15337
  * Creates a new ellipse entity.
15181
15338
  *
@@ -15565,9 +15722,9 @@ const za = class za extends Ne {
15565
15722
  return t.ellipticalArc(this._geo);
15566
15723
  }
15567
15724
  };
15568
- za.typeName = "Ellipse";
15569
- let qi = za;
15570
- const Ra = class Ra extends Te {
15725
+ Ra.typeName = "Ellipse";
15726
+ let qi = Ra;
15727
+ const Fa = class Fa extends Te {
15571
15728
  /**
15572
15729
  * Creates a new face entity.
15573
15730
  *
@@ -15732,10 +15889,10 @@ const Ra = class Ra extends Te {
15732
15889
  return t.lineSegments(n, 3, o);
15733
15890
  }
15734
15891
  };
15735
- Ra.typeName = "Face";
15736
- let Xi = Ra;
15737
- var rc = /* @__PURE__ */ ((i) => (i[i.UserDefined = 0] = "UserDefined", i[i.Predefined = 1] = "Predefined", i[i.Custom = 2] = "Custom", i))(rc || {}), nc = /* @__PURE__ */ ((i) => (i[i.Normal = 0] = "Normal", i[i.Outer = 1] = "Outer", i[i.Ignore = 2] = "Ignore", i))(nc || {});
15738
- const Fa = class Fa extends Te {
15892
+ Fa.typeName = "Face";
15893
+ let Xi = Fa;
15894
+ var sc = /* @__PURE__ */ ((i) => (i[i.UserDefined = 0] = "UserDefined", i[i.Predefined = 1] = "Predefined", i[i.Custom = 2] = "Custom", i))(sc || {}), ic = /* @__PURE__ */ ((i) => (i[i.Normal = 0] = "Normal", i[i.Outer = 1] = "Outer", i[i.Ignore = 2] = "Ignore", i))(ic || {});
15895
+ const Da = class Da extends Te {
15739
15896
  /**
15740
15897
  * Creates a new hatch entity.
15741
15898
  *
@@ -15854,10 +16011,10 @@ const Fa = class Fa extends Te {
15854
16011
  }, t.area(this._geo);
15855
16012
  }
15856
16013
  };
15857
- Fa.typeName = "Hatch";
15858
- let ni = Fa;
15859
- var sc = /* @__PURE__ */ ((i) => (i[i.MText = 0] = "MText", i[i.Fcf = 1] = "Fcf", i[i.BlockReference = 2] = "BlockReference", i[i.NoAnnotation = 3] = "NoAnnotation", i))(sc || {});
15860
- const Da = class Da extends Ne {
16014
+ Da.typeName = "Hatch";
16015
+ let ni = Da;
16016
+ var ac = /* @__PURE__ */ ((i) => (i[i.MText = 0] = "MText", i[i.Fcf = 1] = "Fcf", i[i.BlockReference = 2] = "BlockReference", i[i.NoAnnotation = 3] = "NoAnnotation", i))(ac || {});
16017
+ const Ua = class Ua extends Ne {
15861
16018
  /**
15862
16019
  * Creates a new leader entity.
15863
16020
  *
@@ -16085,10 +16242,10 @@ const Da = class Da extends Ne {
16085
16242
  this.isSplined && this.numVertices >= 2 && (this._splineGeo == null || this._updated) && (this._splineGeo = new gn(this._vertices, "Uniform"), this._updated = !1);
16086
16243
  }
16087
16244
  };
16088
- Da.typeName = "Leader";
16089
- let Ki = Da;
16245
+ Ua.typeName = "Leader";
16246
+ let Ki = Ua;
16090
16247
  var zn = /* @__PURE__ */ ((i) => (i[i.EndPoint = 1] = "EndPoint", i[i.MidPoint = 2] = "MidPoint", i[i.Center = 3] = "Center", i[i.Node = 4] = "Node", i[i.Quadrant = 5] = "Quadrant", i[i.Insertion = 7] = "Insertion", i[i.Perpendicular = 8] = "Perpendicular", i[i.Tangent = 9] = "Tangent", i[i.Nearest = 10] = "Nearest", i[i.Centroid = 11] = "Centroid", i))(zn || {});
16091
- const Ua = class Ua extends Ne {
16248
+ const Va = class Va extends Ne {
16092
16249
  /**
16093
16250
  * Creates a new line entity.
16094
16251
  *
@@ -16397,132 +16554,9 @@ const Ua = class Ua extends Ne {
16397
16554
  return t.lines(o);
16398
16555
  }
16399
16556
  };
16400
- Ua.typeName = "Line";
16401
- let $i = Ua;
16402
- var wl = /* @__PURE__ */ ((i) => (i.ClosedFilled = "", i.Dot = "_DOT", i.DotSmall = "_DOTSMALL", i.DotBlank = "_DOTBLANK", i.Origin = "_ORIGIN", i.Origin2 = "_ORIGIN2", i.Open = "_OPEN", i.Open90 = "_OPEN90", i.Open30 = "_OPEN30", i.Closed = "_CLOSED", i.Small = "_SMALL", i.None = "_NONE", i.Oblique = "_OBLIQUE", i.BoxFilled = "_BOXFILLED", i.Box = "_BOXBLANK", i.ClosedBlank = "_CLOSEDBLANK", i.DatumBlank = "_DATUMBLANK", i.DatumFilled = "_DATUMFILLED", i.Integral = "_INTEGRAL", i.ArchTick = "_ARCHTICK", i))(wl || {}), Wr = /* @__PURE__ */ ((i) => (i[i.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", i[i.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", i[i.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", i[i.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", i[i.BY_STYLE = 5] = "BY_STYLE", i))(Wr || {}), Me = /* @__PURE__ */ ((i) => (i[i.TopLeft = 1] = "TopLeft", i[i.TopCenter = 2] = "TopCenter", i[i.TopRight = 3] = "TopRight", i[i.MiddleLeft = 4] = "MiddleLeft", i[i.MiddleCenter = 5] = "MiddleCenter", i[i.MiddleRight = 6] = "MiddleRight", i[i.BottomLeft = 7] = "BottomLeft", i[i.BottomCenter = 8] = "BottomCenter", i[i.BottomRight = 9] = "BottomRight", i))(Me || {}), Al = /* @__PURE__ */ ((i) => (i[i.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", i[i.WIREFRAME = 1] = "WIREFRAME", i[i.HIDDEN_LINE = 2] = "HIDDEN_LINE", i[i.FLAT_SHADED = 3] = "FLAT_SHADED", i[i.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", i[i.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", i[i.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", i))(Al || {}), Sl = /* @__PURE__ */ ((i) => (i[i.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", i[i.TOP = 1] = "TOP", i[i.BOTTOM = 2] = "BOTTOM", i[i.FRONT = 3] = "FRONT", i[i.BACK = 4] = "BACK", i[i.LEFT = 5] = "LEFT", i[i.RIGHT = 6] = "RIGHT", i))(Sl || {}), Il = /* @__PURE__ */ ((i) => (i[i.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", i[i.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", i))(Il || {});
16403
- let ic = class Pl {
16404
- constructor() {
16405
- this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new Y(), this._height = 0, this._width = 0, this._viewCenter = new Y(), this._viewHeight = 0;
16406
- }
16407
- /**
16408
- * The viewport ID number. If the viewport is inactive, -1 is returned.
16409
- */
16410
- get number() {
16411
- return this._number;
16412
- }
16413
- set number(t) {
16414
- this._number = t;
16415
- }
16416
- /**
16417
- * The id of the viewport.
16418
- */
16419
- get id() {
16420
- return this._id;
16421
- }
16422
- set id(t) {
16423
- this._id = t;
16424
- }
16425
- /**
16426
- * The id of the group which this viewport belongs to.
16427
- */
16428
- get groupId() {
16429
- return this._groupId;
16430
- }
16431
- set groupId(t) {
16432
- this._groupId = t;
16433
- }
16434
- /**
16435
- * The center point of the viewport entity in WCS coordinates (within Paper Space).
16436
- */
16437
- get centerPoint() {
16438
- return this._centerPoint;
16439
- }
16440
- set centerPoint(t) {
16441
- this._centerPoint.copy(t);
16442
- }
16443
- /**
16444
- * The height of the viewport entity's window in drawing units.
16445
- */
16446
- get height() {
16447
- return this._height;
16448
- }
16449
- set height(t) {
16450
- this._height = t;
16451
- }
16452
- /**
16453
- * The width of the viewport entity's window in drawing units. This is the width in Paper Space
16454
- * of the viewport itself, not the width of the Model Space view within the viewport.
16455
- */
16456
- get width() {
16457
- return this._width;
16458
- }
16459
- set width(t) {
16460
- this._width = t;
16461
- }
16462
- /**
16463
- * The bounding box (in world coordinate system coordinates) of the viewport.
16464
- */
16465
- get box() {
16466
- const t = new Ae();
16467
- return t.setFromCenterAndSize(this.centerPoint, {
16468
- x: this.width,
16469
- y: this.height
16470
- }), t;
16471
- }
16472
- /**
16473
- * The view center (in display coordinate system coordinates) of the view in the viewport.
16474
- */
16475
- get viewCenter() {
16476
- return this._viewCenter;
16477
- }
16478
- set viewCenter(t) {
16479
- this._viewCenter.copy(t);
16480
- }
16481
- /**
16482
- * The height (in display coordinate system coordinates) of the Model Space view within the viewport.
16483
- * Zooming the view out within the viewport increases this value and zooming in decreases this value.
16484
- */
16485
- get viewHeight() {
16486
- return this._viewHeight;
16487
- }
16488
- set viewHeight(t) {
16489
- this._viewHeight = t;
16490
- }
16491
- /**
16492
- * The width (in display coordinate system coordinates) of the Model Space view within the viewport.
16493
- * This is one computed property based on 'viewHeight' and viewport ratio of width and height.
16494
- */
16495
- get viewWidth() {
16496
- return this.viewHeight * (this.width / this.height);
16497
- }
16498
- /**
16499
- * The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
16500
- */
16501
- get viewBox() {
16502
- const t = new Ae();
16503
- return t.setFromCenterAndSize(this.viewCenter, {
16504
- x: this.viewWidth,
16505
- y: this.viewHeight
16506
- }), t;
16507
- }
16508
- /**
16509
- * Clone this viewport
16510
- * @returns Return the cloned instance of this viewport
16511
- */
16512
- clone() {
16513
- const t = new Pl();
16514
- return t.id = this.id, t.groupId = this.groupId, t.number = this.number, t.centerPoint.copy(this.centerPoint), t.height = this.height, t.width = this.width, t.viewCenter.copy(this.viewCenter), t.viewHeight = this.viewHeight, t;
16515
- }
16516
- /**
16517
- * Copy the property values of the passed viewport to this viewport.
16518
- * @param viewport Input one viewport instance
16519
- * @returns Return this viewport
16520
- */
16521
- copy(t) {
16522
- return this.id = t.id, this.groupId = t.groupId, this.number = t.number, this.centerPoint.copy(t.centerPoint), this.height = t.height, this.width = t.width, this.viewCenter.copy(t.viewCenter), this.viewHeight = t.viewHeight, this;
16523
- }
16524
- };
16525
- const Va = class Va extends Te {
16557
+ Va.typeName = "Line";
16558
+ let $i = Va;
16559
+ const Ga = class Ga extends Te {
16526
16560
  /**
16527
16561
  * Creates a new multiline text entity.
16528
16562
  *
@@ -16992,9 +17026,9 @@ const Va = class Va extends Te {
16992
17026
  return t.mtext(n, o, e);
16993
17027
  }
16994
17028
  };
16995
- Va.typeName = "MText";
16996
- let Zi = Va;
16997
- const Ga = class Ga extends Ne {
17029
+ Ga.typeName = "MText";
17030
+ let Zi = Ga;
17031
+ const ja = class ja extends Ne {
16998
17032
  constructor(t, e, n, o, h) {
16999
17033
  super();
17000
17034
  const c = +(t !== void 0) + +(e !== void 0) + +(n !== void 0) + +(o !== void 0) + +(h !== void 0);
@@ -17075,9 +17109,9 @@ const Ga = class Ga extends Ne {
17075
17109
  return t.lines(e);
17076
17110
  }
17077
17111
  };
17078
- Ga.typeName = "Spline";
17079
- let si = Ga;
17080
- const ac = /* @__PURE__ */ new Z(), ja = class ja extends ri {
17112
+ ja.typeName = "Spline";
17113
+ let si = ja;
17114
+ const oc = /* @__PURE__ */ new Z(), Wa = class Wa extends ri {
17081
17115
  /**
17082
17116
  * Creates a new table entity.
17083
17117
  *
@@ -17307,7 +17341,7 @@ const ac = /* @__PURE__ */ new Z(), ja = class ja extends ri {
17307
17341
  text: L.text,
17308
17342
  height: L.textHeight,
17309
17343
  width: F,
17310
- position: ac.set(n, -e, 0).clone().add(W),
17344
+ position: oc.set(n, -e, 0).clone().add(W),
17311
17345
  rotation: this.rotation,
17312
17346
  attachmentPoint: ot
17313
17347
  }, st = this.getTextStyle(L);
@@ -17318,7 +17352,7 @@ const ac = /* @__PURE__ */ new Z(), ja = class ja extends ri {
17318
17352
  }
17319
17353
  g.push(t.lineSegments(h, 3, o));
17320
17354
  const w = t.group(g), x = new pn();
17321
- return x.setFromAxisAngle(Z.Z_AXIS, this.rotation), zo.compose(this.position, x, this.scaleFactors), w.applyMatrix(zo), this.attachEntityInfo(w), w;
17355
+ return x.setFromAxisAngle(Z.Z_AXIS, this.rotation), Ro.compose(this.position, x, this.scaleFactors), w.applyMatrix(Ro), this.attachEntityInfo(w), w;
17322
17356
  }
17323
17357
  /**
17324
17358
  * Marks cells as visited to handle merged cell rendering.
@@ -17401,11 +17435,11 @@ const ac = /* @__PURE__ */ new Z(), ja = class ja extends ri {
17401
17435
  return o;
17402
17436
  }
17403
17437
  };
17404
- ja.typeName = "Table";
17405
- let Qi = ja;
17406
- const zo = /* @__PURE__ */ new mn();
17407
- var oc = /* @__PURE__ */ ((i) => (i[i.LEFT = 0] = "LEFT", i[i.CENTER = 1] = "CENTER", i[i.RIGHT = 2] = "RIGHT", i[i.ALIGNED = 3] = "ALIGNED", i[i.MIDDLE = 4] = "MIDDLE", i[i.FIT = 5] = "FIT", i))(oc || {}), lc = /* @__PURE__ */ ((i) => (i[i.BASELINE = 0] = "BASELINE", i[i.BOTTOM = 1] = "BOTTOM", i[i.MIDDLE = 2] = "MIDDLE", i[i.TOP = 3] = "TOP", i))(lc || {});
17408
- const Wa = class Wa extends Te {
17438
+ Wa.typeName = "Table";
17439
+ let Qi = Wa;
17440
+ const Ro = /* @__PURE__ */ new mn();
17441
+ var lc = /* @__PURE__ */ ((i) => (i[i.LEFT = 0] = "LEFT", i[i.CENTER = 1] = "CENTER", i[i.RIGHT = 2] = "RIGHT", i[i.ALIGNED = 3] = "ALIGNED", i[i.MIDDLE = 4] = "MIDDLE", i[i.FIT = 5] = "FIT", i))(lc || {}), hc = /* @__PURE__ */ ((i) => (i[i.BASELINE = 0] = "BASELINE", i[i.BOTTOM = 1] = "BOTTOM", i[i.MIDDLE = 2] = "MIDDLE", i[i.TOP = 3] = "TOP", i))(hc || {});
17442
+ const Ha = class Ha extends Te {
17409
17443
  /**
17410
17444
  * Creates a new text entity.
17411
17445
  *
@@ -17904,9 +17938,9 @@ const Wa = class Wa extends Te {
17904
17938
  return t.mtext(n, o, e);
17905
17939
  }
17906
17940
  };
17907
- Wa.typeName = "Text";
17908
- let Ji = Wa;
17909
- const Ha = class Ha extends Ne {
17941
+ Ha.typeName = "Text";
17942
+ let Ji = Ha;
17943
+ const Ya = class Ya extends Ne {
17910
17944
  /**
17911
17945
  * Creates a new trace entity.
17912
17946
  *
@@ -18100,9 +18134,9 @@ const Ha = class Ha extends Ne {
18100
18134
  }, t.area(n);
18101
18135
  }
18102
18136
  };
18103
- Ha.typeName = "Trace";
18104
- let ta = Ha;
18105
- const Ya = class Ya extends Ne {
18137
+ Ya.typeName = "Trace";
18138
+ let ta = Ya;
18139
+ const qa = class qa extends Ne {
18106
18140
  /**
18107
18141
  * Creates a new empty polyline entity.
18108
18142
  *
@@ -18324,9 +18358,9 @@ const Ya = class Ya extends Ne {
18324
18358
  ), t.lines(e);
18325
18359
  }
18326
18360
  };
18327
- Ya.typeName = "Polyline";
18328
- let ea = Ya;
18329
- const qa = class qa extends Te {
18361
+ qa.typeName = "Polyline";
18362
+ let ea = qa;
18363
+ const Xa = class Xa extends Te {
18330
18364
  /**
18331
18365
  * Creates a new point entity.
18332
18366
  *
@@ -18481,10 +18515,10 @@ const qa = class qa extends Te {
18481
18515
  });
18482
18516
  }
18483
18517
  };
18484
- qa.typeName = "Point";
18485
- let ra = qa;
18486
- var hc = /* @__PURE__ */ ((i) => (i[i.Invalid = 0] = "Invalid", i[i.Rect = 1] = "Rect", i[i.Poly = 2] = "Poly", i))(hc || {}), uc = /* @__PURE__ */ ((i) => (i[i.Show = 1] = "Show", i[i.ShowUnAligned = 2] = "ShowUnAligned", i[i.Clip = 4] = "Clip", i[i.Transparent = 8] = "Transparent", i))(uc || {});
18487
- const Xa = class Xa extends Te {
18518
+ Xa.typeName = "Point";
18519
+ let ra = Xa;
18520
+ var uc = /* @__PURE__ */ ((i) => (i[i.Invalid = 0] = "Invalid", i[i.Rect = 1] = "Rect", i[i.Poly = 2] = "Poly", i))(uc || {}), cc = /* @__PURE__ */ ((i) => (i[i.Show = 1] = "Show", i[i.ShowUnAligned = 2] = "ShowUnAligned", i[i.Clip = 4] = "Clip", i[i.Transparent = 8] = "Transparent", i))(cc || {});
18521
+ const Ka = class Ka extends Te {
18488
18522
  /**
18489
18523
  * Creates a new raster image entity.
18490
18524
  *
@@ -18713,18 +18747,18 @@ const Xa = class Xa extends Te {
18713
18747
  this._position.z
18714
18748
  )
18715
18749
  ), t.push(this._position.clone().setY(this._position.y + this._height)), this._rotation > 0) {
18716
- Ro.copy(t[1]);
18750
+ Fo.copy(t[1]);
18717
18751
  for (let e = 1; e < 4; e++)
18718
- Us.copy(t[e]), Us.rotateAround(Ro, this._rotation), t[e].setX(Us.x), t[e].setY(Us.y);
18752
+ Us.copy(t[e]), Us.rotateAround(Fo, this._rotation), t[e].setX(Us.x), t[e].setY(Us.y);
18719
18753
  }
18720
18754
  t.push(t[0]);
18721
18755
  }
18722
18756
  return t;
18723
18757
  }
18724
18758
  };
18725
- Xa.typeName = "RasterImage";
18726
- let ii = Xa;
18727
- const Ro = /* @__PURE__ */ new Ct(), Us = /* @__PURE__ */ new Ct(), Ka = class Ka extends Ne {
18759
+ Ka.typeName = "RasterImage";
18760
+ let ii = Ka;
18761
+ const Fo = /* @__PURE__ */ new Ct(), Us = /* @__PURE__ */ new Ct(), $a = class $a extends Ne {
18728
18762
  /**
18729
18763
  * Creates a new ray entity.
18730
18764
  *
@@ -18961,9 +18995,9 @@ const Ro = /* @__PURE__ */ new Ct(), Us = /* @__PURE__ */ new Ct(), Ka = class K
18961
18995
  ), t.lines(e);
18962
18996
  }
18963
18997
  };
18964
- Ka.typeName = "Ray";
18965
- let na = Ka;
18966
- const $a = class $a extends Te {
18998
+ $a.typeName = "Ray";
18999
+ let na = $a;
19000
+ const Za = class Za extends Te {
18967
19001
  /**
18968
19002
  * Creates a new AcDbViewport instance.
18969
19003
  *
@@ -19121,7 +19155,7 @@ const $a = class $a extends Te {
19121
19155
  * @returns An AcGiViewport instance with all viewport properties copied
19122
19156
  */
19123
19157
  toGiViewport() {
19124
- const t = new ic();
19158
+ const t = new tc();
19125
19159
  return t.id = this.objectId, t.groupId = this.ownerId, t.number = this.number, t.centerPoint = this.centerPoint, t.width = this.width, t.height = this.height, t.viewHeight = this.viewHeight, t.viewCenter = this.viewCenter, t;
19126
19160
  }
19127
19161
  /**
@@ -19193,9 +19227,9 @@ const $a = class $a extends Te {
19193
19227
  ), n;
19194
19228
  }
19195
19229
  };
19196
- $a.typeName = "Viewport";
19197
- let sa = $a;
19198
- const Za = class Za extends ii {
19230
+ Za.typeName = "Viewport";
19231
+ let sa = Za;
19232
+ const Qa = class Qa extends ii {
19199
19233
  /**
19200
19234
  * Draws the wipeout entity.
19201
19235
  *
@@ -19217,9 +19251,9 @@ const Za = class Za extends ii {
19217
19251
  return n.add(new Fn(e)), t.area(n);
19218
19252
  }
19219
19253
  };
19220
- Za.typeName = "Wipeout";
19221
- let ia = Za;
19222
- const Qa = class Qa extends Ne {
19254
+ Qa.typeName = "Wipeout";
19255
+ let ia = Qa;
19256
+ const Ja = class Ja extends Ne {
19223
19257
  /**
19224
19258
  * Creates a new xline entity.
19225
19259
  *
@@ -19459,10 +19493,10 @@ const Qa = class Qa extends Ne {
19459
19493
  ), t.lines(e);
19460
19494
  }
19461
19495
  };
19462
- Qa.typeName = "Xline";
19463
- let aa = Qa;
19464
- var cc = /* @__PURE__ */ ((i) => (i[i.AtLeast = 1] = "AtLeast", i[i.Exactly = 2] = "Exactly", i))(cc || {});
19465
- const Ja = class Ja extends Te {
19496
+ Ja.typeName = "Xline";
19497
+ let aa = Ja;
19498
+ var dc = /* @__PURE__ */ ((i) => (i[i.AtLeast = 1] = "AtLeast", i[i.Exactly = 2] = "Exactly", i))(dc || {});
19499
+ const to = class to extends Te {
19466
19500
  /**
19467
19501
  * Creates a new dimension entity.
19468
19502
  *
@@ -19859,9 +19893,9 @@ const Ja = class Ja extends Te {
19859
19893
  return e ? e.name.toUpperCase() : wl.Closed;
19860
19894
  }
19861
19895
  };
19862
- Ja.typeName = "Dimension";
19863
- let qr = Ja;
19864
- const to = class to extends qr {
19896
+ to.typeName = "Dimension";
19897
+ let qr = to;
19898
+ const eo = class eo extends qr {
19865
19899
  /**
19866
19900
  * Creates a new three-point angular dimension.
19867
19901
  *
@@ -19954,9 +19988,9 @@ const to = class to extends qr {
19954
19988
  return new Lt();
19955
19989
  }
19956
19990
  };
19957
- to.typeName = "3PointAngularDimension";
19958
- let oa = to;
19959
- const eo = class eo extends qr {
19991
+ eo.typeName = "3PointAngularDimension";
19992
+ let oa = eo;
19993
+ const ro = class ro extends qr {
19960
19994
  /**
19961
19995
  * Creates a new aligned dimension entity.
19962
19996
  *
@@ -20142,9 +20176,9 @@ const eo = class eo extends qr {
20142
20176
  return !1;
20143
20177
  }
20144
20178
  };
20145
- eo.typeName = "AlignedDimension";
20146
- let la = eo;
20147
- const ro = class ro extends qr {
20179
+ ro.typeName = "AlignedDimension";
20180
+ let la = ro;
20181
+ const no = class no extends qr {
20148
20182
  /**
20149
20183
  * Creates a new arc length dimension.
20150
20184
  *
@@ -20238,9 +20272,9 @@ const ro = class ro extends qr {
20238
20272
  return new Lt();
20239
20273
  }
20240
20274
  };
20241
- ro.typeName = "ArcDimension";
20242
- let Fo = ro;
20243
- const no = class no extends qr {
20275
+ no.typeName = "ArcDimension";
20276
+ let Do = no;
20277
+ const so = class so extends qr {
20244
20278
  /**
20245
20279
  * Creates a new diametric dimension.
20246
20280
  *
@@ -20408,9 +20442,9 @@ const no = class no extends qr {
20408
20442
  });
20409
20443
  }
20410
20444
  };
20411
- no.typeName = "DiametricDimension";
20412
- let ha = no;
20413
- const so = class so extends qr {
20445
+ so.typeName = "DiametricDimension";
20446
+ let ha = so;
20447
+ const io = class io extends qr {
20414
20448
  /**
20415
20449
  * Creates a new ordinate dimension.
20416
20450
  *
@@ -20482,9 +20516,9 @@ const so = class so extends qr {
20482
20516
  return 0;
20483
20517
  }
20484
20518
  };
20485
- so.typeName = "OrdinateDimension";
20486
- let ua = so;
20487
- const io = class io extends qr {
20519
+ io.typeName = "OrdinateDimension";
20520
+ let ua = io;
20521
+ const ao = class ao extends qr {
20488
20522
  /**
20489
20523
  * Creates a new radial dimension entity.
20490
20524
  *
@@ -20682,9 +20716,9 @@ const io = class io extends qr {
20682
20716
  };
20683
20717
  }
20684
20718
  };
20685
- io.typeName = "RadialDimension";
20686
- let ca = io;
20687
- class ba extends _n {
20719
+ ao.typeName = "RadialDimension";
20720
+ let ca = ao;
20721
+ class xa extends _n {
20688
20722
  /**
20689
20723
  * Creates a new AcDbLayout instance.
20690
20724
  *
@@ -20870,7 +20904,7 @@ class ba extends _n {
20870
20904
  this._extents.copy(t);
20871
20905
  }
20872
20906
  }
20873
- class El extends _n {
20907
+ class kl extends _n {
20874
20908
  /**
20875
20909
  * Creates a new AcDbDictionary instance.
20876
20910
  *
@@ -21058,10 +21092,10 @@ class El extends _n {
21058
21092
  * ```
21059
21093
  */
21060
21094
  newIterator() {
21061
- return new xa(this._recordsByName);
21095
+ return new wa(this._recordsByName);
21062
21096
  }
21063
21097
  }
21064
- class dc extends El {
21098
+ class pc extends kl {
21065
21099
  /**
21066
21100
  * Searches the dictionary for a layout associated with the specified block table record ID.
21067
21101
  *
@@ -21098,7 +21132,7 @@ class dc extends El {
21098
21132
  }), t;
21099
21133
  }
21100
21134
  }
21101
- class pc extends _n {
21135
+ class mc extends _n {
21102
21136
  /**
21103
21137
  * Creates a new AcDbRasterImageDef instance.
21104
21138
  *
@@ -21138,14 +21172,14 @@ class pc extends _n {
21138
21172
  this._sourceFileName = t;
21139
21173
  }
21140
21174
  }
21141
- class mc {
21175
+ class gc {
21142
21176
  constructor(t) {
21143
21177
  this.db = t;
21144
21178
  }
21145
21179
  createDefaultLayer() {
21146
21180
  const t = new fn();
21147
21181
  return t.colorIndex = 7, this.db.tables.layerTable.add(
21148
- new Pa({
21182
+ new Ea({
21149
21183
  name: "0",
21150
21184
  standardFlags: 0,
21151
21185
  linetype: "Continuous",
@@ -21182,7 +21216,7 @@ class mc {
21182
21216
  }
21183
21217
  createDefaultTextStyle() {
21184
21218
  this.db.tables.textStyleTable.add(
21185
- new Uh({
21219
+ new Vh({
21186
21220
  name: "Standard",
21187
21221
  standardFlag: 0,
21188
21222
  fixedTextHeight: 0,
@@ -21205,32 +21239,22 @@ class mc {
21205
21239
  );
21206
21240
  }
21207
21241
  createDefaultLayout() {
21208
- const t = new ba();
21242
+ const t = new xa();
21209
21243
  t.layoutName = "Model", t.tabOrder = 0, t.blockTableRecordId = this.db.tables.blockTable.modelSpace.objectId, t.limits.min.copy({ x: 0, y: 0 }), t.limits.max.copy({ x: 1e6, y: 1e6 }), t.extents.min.copy({ x: 0, y: 0, z: 0 }), t.extents.max.copy({ x: 1e6, y: 1e6, z: 0 }), this.db.dictionaries.layouts.setAt(t.layoutName, t), this.db.tables.blockTable.modelSpace.layoutId = t.objectId;
21210
21244
  }
21211
21245
  createArrowBlock() {
21212
21246
  if (!this.db.tables.blockTable.getAt("_CAXARROW")) {
21213
21247
  const e = new ni();
21214
21248
  e.patternName = "SOLID";
21215
- const n = new vl();
21249
+ const n = new bl();
21216
21250
  n.add(new qs({ x: 0, y: 0 }, { x: -1, y: 0.125 })), n.add(new qs({ x: -1, y: 0.125 }, { x: -1, y: -0.125 })), n.add(new qs({ x: -1, y: -0.125 }, { x: 0, y: 0 })), e.add(n);
21217
21251
  const o = new ye();
21218
21252
  o.name = "_CAXARROW", o.appendEntity(e), this.db.tables.blockTable.add(o);
21219
21253
  }
21220
21254
  }
21221
21255
  }
21222
- var kl = /* @__PURE__ */ ((i) => (i[i.Undefined = 0] = "Undefined", i[i.Inches = 1] = "Inches", i[i.Feet = 2] = "Feet", i[i.Miles = 3] = "Miles", i[i.Millimeters = 4] = "Millimeters", i[i.Centimeters = 5] = "Centimeters", i[i.Meters = 6] = "Meters", i[i.Kilometers = 7] = "Kilometers", i[i.Microinches = 8] = "Microinches", i[i.Mils = 9] = "Mils", i[i.Yards = 10] = "Yards", i[i.Angstroms = 11] = "Angstroms", i[i.Nanometers = 12] = "Nanometers", i[i.Microns = 13] = "Microns", i[i.Decimeters = 14] = "Decimeters", i[i.Dekameters = 15] = "Dekameters", i[i.Hectometers = 16] = "Hectometers", i[i.Gigameters = 17] = "Gigameters", i[i.Astronomical = 18] = "Astronomical", i[i.LightYears = 19] = "LightYears", i[i.Parsecs = 20] = "Parsecs", i[i.USSurveyFeet = 21] = "USSurveyFeet", i[i.USSurveyInch = 22] = "USSurveyInch", i[i.USSurveyYard = 23] = "USSurveyYard", i[i.USSurveyMile = 24] = "USSurveyMile", i[
21223
- i.Max = 24
21224
- /* USSurveyMile */
21225
- ] = "Max", i))(kl || {});
21226
- function R0(i) {
21227
- return i == 4 || i == 5 || i == 6 || i == 7 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17;
21228
- }
21229
- function F0(i) {
21230
- return i == 1 || i == 2 || i == 3 || i == 8 || i == 9 || i == 10 || i == 21;
21231
- }
21232
- var gc = /* @__PURE__ */ ((i) => (i.ClosedFilled = "", i.Dot = "_DOT", i.DotSmall = "_DOTSMALL", i.DotBlank = "_DOTBLANK", i.Origin = "_ORIGIN", i.Origin2 = "_ORIGIN2", i.Open = "_OPEN", i.Open90 = "_OPEN90", i.Open30 = "_OPEN30", i.Closed = "_CLOSED", i.Small = "_SMALL", i.None = "_NONE", i.Oblique = "_OBLIQUE", i.BoxFilled = "_BOXFILLED", i.Box = "_BOXBLANK", i.ClosedBlank = "_CLOSEDBLANK", i.DatumBlank = "_DATUMBLANK", i.DatumFilled = "_DATUMFILLED", i.Integral = "_INTEGRAL", i.ArchTick = "_ARCHTICK", i))(gc || {});
21233
- class xa {
21256
+ var fc = /* @__PURE__ */ ((i) => (i.ClosedFilled = "", i.Dot = "_DOT", i.DotSmall = "_DOTSMALL", i.DotBlank = "_DOTBLANK", i.Origin = "_ORIGIN", i.Origin2 = "_ORIGIN2", i.Open = "_OPEN", i.Open90 = "_OPEN90", i.Open30 = "_OPEN30", i.Closed = "_CLOSED", i.Small = "_SMALL", i.None = "_NONE", i.Oblique = "_OBLIQUE", i.BoxFilled = "_BOXFILLED", i.Box = "_BOXBLANK", i.ClosedBlank = "_CLOSEDBLANK", i.DatumBlank = "_DATUMBLANK", i.DatumFilled = "_DATUMFILLED", i.Integral = "_INTEGRAL", i.ArchTick = "_ARCHTICK", i))(fc || {});
21257
+ class wa {
21234
21258
  /**
21235
21259
  * Creates a new AcDbObjectIterator instance.
21236
21260
  *
@@ -21294,8 +21318,18 @@ class xa {
21294
21318
  return { value: null, done: !0 };
21295
21319
  }
21296
21320
  }
21297
- const Ml = "Load Database";
21298
- class Ee extends du {
21321
+ var Ml = /* @__PURE__ */ ((i) => (i[i.Undefined = 0] = "Undefined", i[i.Inches = 1] = "Inches", i[i.Feet = 2] = "Feet", i[i.Miles = 3] = "Miles", i[i.Millimeters = 4] = "Millimeters", i[i.Centimeters = 5] = "Centimeters", i[i.Meters = 6] = "Meters", i[i.Kilometers = 7] = "Kilometers", i[i.Microinches = 8] = "Microinches", i[i.Mils = 9] = "Mils", i[i.Yards = 10] = "Yards", i[i.Angstroms = 11] = "Angstroms", i[i.Nanometers = 12] = "Nanometers", i[i.Microns = 13] = "Microns", i[i.Decimeters = 14] = "Decimeters", i[i.Dekameters = 15] = "Dekameters", i[i.Hectometers = 16] = "Hectometers", i[i.Gigameters = 17] = "Gigameters", i[i.Astronomical = 18] = "Astronomical", i[i.LightYears = 19] = "LightYears", i[i.Parsecs = 20] = "Parsecs", i[i.USSurveyFeet = 21] = "USSurveyFeet", i[i.USSurveyInch = 22] = "USSurveyInch", i[i.USSurveyYard = 23] = "USSurveyYard", i[i.USSurveyMile = 24] = "USSurveyMile", i[
21322
+ i.Max = 24
21323
+ /* USSurveyMile */
21324
+ ] = "Max", i))(Ml || {});
21325
+ function F0(i) {
21326
+ return i == 4 || i == 5 || i == 6 || i == 7 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17;
21327
+ }
21328
+ function D0(i) {
21329
+ return i == 1 || i == 2 || i == 3 || i == 8 || i == 9 || i == 10 || i == 21;
21330
+ }
21331
+ const Tl = "Load Database";
21332
+ class Ee extends pu {
21299
21333
  constructor(t, e) {
21300
21334
  super(t.stage), this.data = t, this.progress = e;
21301
21335
  }
@@ -21303,8 +21337,8 @@ class Ee extends du {
21303
21337
  * Executes the task.
21304
21338
  */
21305
21339
  async run(t) {
21306
- const e = $o.getInstance().getEntry(
21307
- Ml
21340
+ const e = Zo.getInstance().getEntry(
21341
+ Tl
21308
21342
  ), n = Date.now();
21309
21343
  this.progress && await this.progress(this.data.progress.value, this.data.stage, "START");
21310
21344
  const o = await this.data.task(t);
@@ -21316,7 +21350,7 @@ class Ee extends du {
21316
21350
  ), this.data.progress.value += this.data.step, this.data.progress.value > 100 && (this.data.progress.value = 100)), e && (e.data[this.name] = Date.now() - n), o;
21317
21351
  }
21318
21352
  }
21319
- class Tl {
21353
+ class Nl {
21320
21354
  /**
21321
21355
  * Creates a new instance of the database converter.
21322
21356
  *
@@ -21354,7 +21388,7 @@ class Tl {
21354
21388
  */
21355
21389
  async read(t, e, n, o) {
21356
21390
  const h = {
21357
- name: Ml,
21391
+ name: Tl,
21358
21392
  data: { total: 0 },
21359
21393
  format() {
21360
21394
  let f = "";
@@ -21364,8 +21398,8 @@ class Tl {
21364
21398
  }), f += `- total: ${this.data.total} ms`, f;
21365
21399
  }
21366
21400
  };
21367
- $o.getInstance().collect(h), this.progress = o;
21368
- const c = { value: 0 }, g = new pu();
21401
+ Zo.getInstance().collect(h), this.progress = o;
21402
+ const c = { value: 0 }, g = new mu();
21369
21403
  g.setCompleteCallback(() => this.onFinished()), g.setErrorCallback((f) => this.onError(f)), g.addTask(
21370
21404
  new Ee(
21371
21405
  {
@@ -21581,15 +21615,15 @@ var ue, hs, Jt, se, us, nr, be, yr, sr, tn, cs, ds, en, rn, ps, ms, gs, Fe, vr,
21581
21615
  (Jt = {})[Jt.Rotated = 0] = "Rotated", Jt[Jt.Aligned = 1] = "Aligned", Jt[Jt.Angular = 2] = "Angular", Jt[Jt.Diameter = 3] = "Diameter", Jt[Jt.Radius = 4] = "Radius", Jt[Jt.Angular3Point = 5] = "Angular3Point", Jt[Jt.Ordinate = 6] = "Ordinate", Jt[Jt.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", Jt[Jt.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", Jt[Jt.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
21582
21616
  (se = {})[se.TopLeft = 1] = "TopLeft", se[se.TopCenter = 2] = "TopCenter", se[se.TopRight = 3] = "TopRight", se[se.MiddleLeft = 4] = "MiddleLeft", se[se.MiddleCenter = 5] = "MiddleCenter", se[se.MiddleRight = 6] = "MiddleRight", se[se.BottomLeft = 7] = "BottomLeft", se[se.BottomCenter = 8] = "BottomCenter", se[se.BottomRight = 9] = "BottomRight";
21583
21617
  (us = {})[us.AtLeast = 1] = "AtLeast", us[us.Exact = 2] = "Exact";
21584
- var Do = ((nr = {})[nr.Center = 0] = "Center", nr[nr.Above = 1] = "Above", nr[nr.Outside = 2] = "Outside", nr[nr.JIS = 3] = "JIS", nr[nr.Below = 4] = "Below", nr), Bn = ((be = {})[be.Feet = 0] = "Feet", be[be.None = 1] = "None", be[be.Inch = 2] = "Inch", be[be.FeetAndInch = 3] = "FeetAndInch", be[be.Leading = 4] = "Leading", be[be.Trailing = 8] = "Trailing", be[be.LeadingAndTrailing = 12] = "LeadingAndTrailing", be), fc = ((yr = {})[yr.None = 0] = "None", yr[yr.Leading = 1] = "Leading", yr[yr.Trailing = 2] = "Trailing", yr[yr.LeadingAndTrailing = 3] = "LeadingAndTrailing", yr), _c = ((sr = {})[sr.Center = 0] = "Center", sr[sr.Left = 1] = "Left", sr[sr.Right = 2] = "Right", sr[sr.OverFirst = 3] = "OverFirst", sr[sr.OverSecond = 4] = "OverSecond", sr), yc = ((tn = {})[tn.Bottom = 0] = "Bottom", tn[tn.Center = 1] = "Center", tn[tn.Top = 2] = "Top", tn), vc = ((cs = {})[cs.PatternFill = 0] = "PatternFill", cs[cs.SolidFill = 1] = "SolidFill", cs);
21618
+ var Uo = ((nr = {})[nr.Center = 0] = "Center", nr[nr.Above = 1] = "Above", nr[nr.Outside = 2] = "Outside", nr[nr.JIS = 3] = "JIS", nr[nr.Below = 4] = "Below", nr), Bn = ((be = {})[be.Feet = 0] = "Feet", be[be.None = 1] = "None", be[be.Inch = 2] = "Inch", be[be.FeetAndInch = 3] = "FeetAndInch", be[be.Leading = 4] = "Leading", be[be.Trailing = 8] = "Trailing", be[be.LeadingAndTrailing = 12] = "LeadingAndTrailing", be), _c = ((yr = {})[yr.None = 0] = "None", yr[yr.Leading = 1] = "Leading", yr[yr.Trailing = 2] = "Trailing", yr[yr.LeadingAndTrailing = 3] = "LeadingAndTrailing", yr), yc = ((sr = {})[sr.Center = 0] = "Center", sr[sr.Left = 1] = "Left", sr[sr.Right = 2] = "Right", sr[sr.OverFirst = 3] = "OverFirst", sr[sr.OverSecond = 4] = "OverSecond", sr), vc = ((tn = {})[tn.Bottom = 0] = "Bottom", tn[tn.Center = 1] = "Center", tn[tn.Top = 2] = "Top", tn), bc = ((cs = {})[cs.PatternFill = 0] = "PatternFill", cs[cs.SolidFill = 1] = "SolidFill", cs);
21585
21619
  (ds = {})[ds.NonAssociative = 0] = "NonAssociative", ds[ds.Associative = 1] = "Associative";
21586
21620
  (en = {})[en.Normal = 0] = "Normal", en[en.Outer = 1] = "Outer", en[en.Ignore = 2] = "Ignore";
21587
21621
  (rn = {})[rn.UserDefined = 0] = "UserDefined", rn[rn.Predefined = 1] = "Predefined", rn[rn.Custom = 2] = "Custom";
21588
21622
  (ps = {})[ps.NotAnnotated = 0] = "NotAnnotated", ps[ps.Annotated = 1] = "Annotated";
21589
21623
  (ms = {})[ms.Solid = 0] = "Solid", ms[ms.Gradient = 1] = "Gradient";
21590
21624
  (gs = {})[gs.TwoColor = 0] = "TwoColor", gs[gs.OneColor = 1] = "OneColor";
21591
- var bc = ((Fe = {})[Fe.Default = 0] = "Default", Fe[Fe.External = 1] = "External", Fe[Fe.Polyline = 2] = "Polyline", Fe[Fe.Derived = 4] = "Derived", Fe[Fe.Textbox = 8] = "Textbox", Fe[Fe.Outermost = 16] = "Outermost", Fe), Vs = ((vr = {})[vr.Line = 1] = "Line", vr[vr.Circular = 2] = "Circular", vr[vr.Elliptic = 3] = "Elliptic", vr[vr.Spline = 4] = "Spline", vr), xc = ((qt = {})[qt.Off = 0] = "Off", qt[qt.Solid = 1] = "Solid", qt[qt.Dashed = 2] = "Dashed", qt[qt.Dotted = 3] = "Dotted", qt[qt.ShotDash = 4] = "ShotDash", qt[qt.MediumDash = 5] = "MediumDash", qt[qt.LongDash = 6] = "LongDash", qt[qt.DoubleShortDash = 7] = "DoubleShortDash", qt[qt.DoubleMediumDash = 8] = "DoubleMediumDash", qt[qt.DoubleLongDash = 9] = "DoubleLongDash", qt[qt.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", qt[qt.SparseDot = 11] = "SparseDot", qt);
21592
- xc.Off;
21625
+ var xc = ((Fe = {})[Fe.Default = 0] = "Default", Fe[Fe.External = 1] = "External", Fe[Fe.Polyline = 2] = "Polyline", Fe[Fe.Derived = 4] = "Derived", Fe[Fe.Textbox = 8] = "Textbox", Fe[Fe.Outermost = 16] = "Outermost", Fe), Vs = ((vr = {})[vr.Line = 1] = "Line", vr[vr.Circular = 2] = "Circular", vr[vr.Elliptic = 3] = "Elliptic", vr[vr.Spline = 4] = "Spline", vr), wc = ((qt = {})[qt.Off = 0] = "Off", qt[qt.Solid = 1] = "Solid", qt[qt.Dashed = 2] = "Dashed", qt[qt.Dotted = 3] = "Dotted", qt[qt.ShotDash = 4] = "ShotDash", qt[qt.MediumDash = 5] = "MediumDash", qt[qt.LongDash = 6] = "LongDash", qt[qt.DoubleShortDash = 7] = "DoubleShortDash", qt[qt.DoubleMediumDash = 8] = "DoubleMediumDash", qt[qt.DoubleLongDash = 9] = "DoubleLongDash", qt[qt.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", qt[qt.SparseDot = 11] = "SparseDot", qt);
21626
+ wc.Off;
21593
21627
  (nn = {})[nn.Standard = -3] = "Standard", nn[nn.ByLayer = -2] = "ByLayer", nn[nn.ByBlock = -1] = "ByBlock";
21594
21628
  (fs = {})[fs.English = 0] = "English", fs[fs.Metric = 1] = "Metric";
21595
21629
  (yt = {})[yt.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", yt[yt.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", yt[yt.BACK_CLIPPING = 4] = "BACK_CLIPPING", yt[yt.UCS_FOLLOW = 8] = "UCS_FOLLOW", yt[yt.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", yt[yt.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", yt[yt.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", yt[yt.FAST_ZOOM = 128] = "FAST_ZOOM", yt[yt.SNAP_MODE = 256] = "SNAP_MODE", yt[yt.GRID_MODE = 512] = "GRID_MODE", yt[yt.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", yt[yt.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", yt[yt.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", yt[yt.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", yt[yt.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", yt[yt.UNUSED = 32768] = "UNUSED", yt[yt.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", yt[yt.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", yt[yt.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", yt[yt.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", yt[yt.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", yt[yt.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
@@ -21608,7 +21642,7 @@ function Rt(i) {
21608
21642
  if (t.x = e.value, (e = i.next()).code !== n + 10) throw Error("Expected code for point value to be 20 but got " + e.code + ".");
21609
21643
  return t.y = e.value, (e = i.next()).code !== n + 20 ? i.rewind() : t.z = e.value, t;
21610
21644
  }
21611
- let wa = Symbol();
21645
+ let Aa = Symbol();
21612
21646
  function xt(i, t) {
21613
21647
  return (e, n, o) => {
21614
21648
  let h = function(b, f = !1) {
@@ -21635,7 +21669,7 @@ function xt(i, t) {
21635
21669
  }
21636
21670
  w.isMultiple || b[e.code].pop();
21637
21671
  let { name: x, parser: E, isMultiple: M, isReducible: L } = w, B = E == null ? void 0 : E(e, n, o);
21638
- if (B === wa) {
21672
+ if (B === Aa) {
21639
21673
  n.rewind();
21640
21674
  break;
21641
21675
  }
@@ -21670,8 +21704,8 @@ function j(i, t) {
21670
21704
  function Dt({ value: i }) {
21671
21705
  return !!i;
21672
21706
  }
21673
- let wc = [{ code: 1001, name: "xdata", parser: Nl }];
21674
- function Nl(i, t) {
21707
+ let Ac = [{ code: 1001, name: "xdata", parser: Cl }];
21708
+ function Cl(i, t) {
21675
21709
  var o;
21676
21710
  if (!St(i, 1001)) throw Error("XData must starts with code 1001");
21677
21711
  let e = { appName: i.value, value: [] };
@@ -21760,71 +21794,71 @@ function dn(i, t, e) {
21760
21794
  }
21761
21795
  t.rewind();
21762
21796
  }
21763
- let Ac = 0;
21764
- function Cl(i) {
21797
+ let Sc = 0;
21798
+ function Ll(i) {
21765
21799
  if (!i) throw TypeError("entity cannot be undefined or null");
21766
- i.handle || (i.handle = Ac++);
21800
+ i.handle || (i.handle = Sc++);
21767
21801
  }
21768
- var Sc = [0, 16711680, 16776960, 65280, 65535, 255, 16711935, 16777215, 8421504, 12632256, 16711680, 16744319, 13369344, 13395558, 10027008, 10046540, 8323072, 8339263, 4980736, 4990502, 16727808, 16752511, 13382400, 13401958, 10036736, 10051404, 8331008, 8343359, 4985600, 4992806, 16744192, 16760703, 13395456, 13408614, 10046464, 10056268, 8339200, 8347455, 4990464, 4995366, 16760576, 16768895, 13408512, 13415014, 10056192, 10061132, 8347392, 8351551, 4995328, 4997670, 16776960, 16777087, 13421568, 13421670, 10000384, 10000460, 8355584, 8355647, 5000192, 5000230, 12582656, 14679935, 10079232, 11717734, 7510016, 8755276, 6258432, 7307071, 3755008, 4344870, 8388352, 12582783, 6736896, 10079334, 5019648, 7510092, 4161280, 6258495, 2509824, 3755046, 4194048, 10485631, 3394560, 8375398, 2529280, 6264908, 2064128, 5209919, 1264640, 3099686, 65280, 8388479, 52224, 6736998, 38912, 5019724, 32512, 4161343, 19456, 2509862, 65343, 8388511, 52275, 6737023, 38950, 5019743, 32543, 4161359, 19475, 2509871, 65407, 8388543, 52326, 6737049, 38988, 5019762, 32575, 4161375, 19494, 2509881, 65471, 8388575, 52377, 6737074, 39026, 5019781, 32607, 4161391, 19513, 2509890, 65535, 8388607, 52428, 6737100, 39064, 5019800, 32639, 4161407, 19532, 2509900, 49151, 8380415, 39372, 6730444, 29336, 5014936, 24447, 4157311, 14668, 2507340, 32767, 8372223, 26316, 6724044, 19608, 5010072, 16255, 4153215, 9804, 2505036, 16383, 8364031, 13260, 6717388, 9880, 5005208, 8063, 4149119, 4940, 2502476, 255, 8355839, 204, 6710988, 152, 5000344, 127, 4145023, 76, 2500172, 4129023, 10452991, 3342540, 8349388, 2490520, 6245528, 2031743, 5193599, 1245260, 3089996, 8323327, 12550143, 6684876, 10053324, 4980888, 7490712, 4128895, 6242175, 2490444, 3745356, 12517631, 14647295, 10027212, 11691724, 7471256, 8735896, 6226047, 7290751, 3735628, 4335180, 16711935, 16744447, 13369548, 13395660, 9961624, 9981080, 8323199, 8339327, 4980812, 4990540, 16711871, 16744415, 13369497, 13395634, 9961586, 9981061, 8323167, 8339311, 4980793, 4990530, 16711807, 16744383, 13369446, 13395609, 9961548, 9981042, 8323135, 8339295, 4980774, 4990521, 16711743, 16744351, 13369395, 13395583, 9961510, 9981023, 8323103, 8339279, 4980755, 4990511, 3355443, 5987163, 8684676, 11382189, 14079702, 16777215];
21769
- function Ll(i) {
21770
- return Sc[i];
21802
+ var Ic = [0, 16711680, 16776960, 65280, 65535, 255, 16711935, 16777215, 8421504, 12632256, 16711680, 16744319, 13369344, 13395558, 10027008, 10046540, 8323072, 8339263, 4980736, 4990502, 16727808, 16752511, 13382400, 13401958, 10036736, 10051404, 8331008, 8343359, 4985600, 4992806, 16744192, 16760703, 13395456, 13408614, 10046464, 10056268, 8339200, 8347455, 4990464, 4995366, 16760576, 16768895, 13408512, 13415014, 10056192, 10061132, 8347392, 8351551, 4995328, 4997670, 16776960, 16777087, 13421568, 13421670, 10000384, 10000460, 8355584, 8355647, 5000192, 5000230, 12582656, 14679935, 10079232, 11717734, 7510016, 8755276, 6258432, 7307071, 3755008, 4344870, 8388352, 12582783, 6736896, 10079334, 5019648, 7510092, 4161280, 6258495, 2509824, 3755046, 4194048, 10485631, 3394560, 8375398, 2529280, 6264908, 2064128, 5209919, 1264640, 3099686, 65280, 8388479, 52224, 6736998, 38912, 5019724, 32512, 4161343, 19456, 2509862, 65343, 8388511, 52275, 6737023, 38950, 5019743, 32543, 4161359, 19475, 2509871, 65407, 8388543, 52326, 6737049, 38988, 5019762, 32575, 4161375, 19494, 2509881, 65471, 8388575, 52377, 6737074, 39026, 5019781, 32607, 4161391, 19513, 2509890, 65535, 8388607, 52428, 6737100, 39064, 5019800, 32639, 4161407, 19532, 2509900, 49151, 8380415, 39372, 6730444, 29336, 5014936, 24447, 4157311, 14668, 2507340, 32767, 8372223, 26316, 6724044, 19608, 5010072, 16255, 4153215, 9804, 2505036, 16383, 8364031, 13260, 6717388, 9880, 5005208, 8063, 4149119, 4940, 2502476, 255, 8355839, 204, 6710988, 152, 5000344, 127, 4145023, 76, 2500172, 4129023, 10452991, 3342540, 8349388, 2490520, 6245528, 2031743, 5193599, 1245260, 3089996, 8323327, 12550143, 6684876, 10053324, 4980888, 7490712, 4128895, 6242175, 2490444, 3745356, 12517631, 14647295, 10027212, 11691724, 7471256, 8735896, 6226047, 7290751, 3735628, 4335180, 16711935, 16744447, 13369548, 13395660, 9961624, 9981080, 8323199, 8339327, 4980812, 4990540, 16711871, 16744415, 13369497, 13395634, 9961586, 9981061, 8323167, 8339311, 4980793, 4990530, 16711807, 16744383, 13369446, 13395609, 9961548, 9981042, 8323135, 8339295, 4980774, 4990521, 16711743, 16744351, 13369395, 13395583, 9961510, 9981023, 8323103, 8339279, 4980755, 4990511, 3355443, 5987163, 8684676, 11382189, 14079702, 16777215];
21803
+ function Ol(i) {
21804
+ return Ic[i];
21771
21805
  }
21772
21806
  (xr = {})[xr.CAST_AND_RECEIVE = 0] = "CAST_AND_RECEIVE", xr[xr.CAST = 1] = "CAST", xr[xr.RECEIVE = 2] = "RECEIVE", xr[xr.IGNORE = 3] = "IGNORE";
21773
- let Vt = [...wc, { code: 284, name: "shadowMode", parser: v }, { code: 390, name: "plotStyleHardId", parser: v }, { code: 380, name: "plotStyleType", parser: v }, { code: 440, name: "transparency", parser: v }, { code: 430, name: "colorName", parser: v }, { code: 420, name: "color", parser: v }, { code: 310, name: "proxyEntity", isMultiple: !0, parser: v }, { code: 92, name: "proxyByte", parser: v }, { code: 60, name: "isVisible", parser: Dt }, { code: 48, name: "lineTypeScale", parser: v }, { code: 370, name: "lineweight", parser: v }, { code: 62, name: "colorIndex", parser(i, t, e) {
21807
+ let Vt = [...Ac, { code: 284, name: "shadowMode", parser: v }, { code: 390, name: "plotStyleHardId", parser: v }, { code: 380, name: "plotStyleType", parser: v }, { code: 440, name: "transparency", parser: v }, { code: 430, name: "colorName", parser: v }, { code: 420, name: "color", parser: v }, { code: 310, name: "proxyEntity", isMultiple: !0, parser: v }, { code: 92, name: "proxyByte", parser: v }, { code: 60, name: "isVisible", parser: Dt }, { code: 48, name: "lineTypeScale", parser: v }, { code: 370, name: "lineweight", parser: v }, { code: 62, name: "colorIndex", parser(i, t, e) {
21774
21808
  let n = i.value;
21775
- return n > 0 && n < 256 && (e.color = Ll(Math.abs(n))), n;
21809
+ return n > 0 && n < 256 && (e.color = Ol(Math.abs(n))), n;
21776
21810
  } }, { code: 347, name: "materialObjectHardId", parser: v }, { code: 6, name: "lineType", parser: v }, { code: 8, name: "layer", parser: v }, { code: 410, name: "layoutTabName", parser: v }, { code: 67, name: "isInPaperSpace", parser: Dt }, { code: 100 }, { code: 160 }, { code: 330, name: "ownerBlockRecordSoftId", parser: v }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 5, name: "handle", parser: v }];
21777
21811
  function ci(i) {
21778
21812
  return [{ code: 3, name: i, parser: (t, e, n) => (n._code3text = (n._code3text ?? "") + t.value, n._code3text + (n._code1text ?? "")), isMultiple: !0, isReducible: !0 }, { code: 1, name: i, parser: (t, e, n) => (n._code1text = t.value, (n._code3text ?? "") + n._code1text) }];
21779
21813
  }
21780
- function Ol(i, t, e) {
21814
+ function Bl(i, t, e) {
21781
21815
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21782
21816
  }
21783
- let Ic = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Pc = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100 }, ...Vt];
21784
- class Bl {
21817
+ let Pc = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Ec = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100 }, ...Vt];
21818
+ class zl {
21785
21819
  parseEntity(t, e) {
21786
21820
  let n = {};
21787
21821
  return this.parser(e, t, n), n;
21788
21822
  }
21789
21823
  constructor() {
21790
- Ol(this, "parser", xt(Pc, Ic));
21824
+ Bl(this, "parser", xt(Ec, Pc));
21791
21825
  }
21792
21826
  }
21793
- Ol(Bl, "ForEntityName", "ARC");
21827
+ Bl(zl, "ForEntityName", "ARC");
21794
21828
  (ir = {})[ir.NONE = 0] = "NONE", ir[ir.INVISIBLE = 1] = "INVISIBLE", ir[ir.CONSTANT = 2] = "CONSTANT", ir[ir.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", ir[ir.PRESET = 8] = "PRESET";
21795
21829
  (vs = {})[vs.MULTILINE = 2] = "MULTILINE", vs[vs.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
21796
21830
  (sn = {})[sn.NONE = 0] = "NONE", sn[sn.MIRRORED_X = 2] = "MIRRORED_X", sn[sn.MIRRORED_Y = 4] = "MIRRORED_Y";
21797
- var Ec = ((De = {})[De.LEFT = 0] = "LEFT", De[De.CENTER = 1] = "CENTER", De[De.RIGHT = 2] = "RIGHT", De[De.ALIGNED = 3] = "ALIGNED", De[De.MIDDLE = 4] = "MIDDLE", De[De.FIT = 5] = "FIT", De), kc = ((wr = {})[wr.BASELINE = 0] = "BASELINE", wr[wr.BOTTOM = 1] = "BOTTOM", wr[wr.MIDDLE = 2] = "MIDDLE", wr[wr.TOP = 3] = "TOP", wr);
21798
- function zl(i, t, e) {
21831
+ var kc = ((De = {})[De.LEFT = 0] = "LEFT", De[De.CENTER = 1] = "CENTER", De[De.RIGHT = 2] = "RIGHT", De[De.ALIGNED = 3] = "ALIGNED", De[De.MIDDLE = 4] = "MIDDLE", De[De.FIT = 5] = "FIT", De), Mc = ((wr = {})[wr.BASELINE = 0] = "BASELINE", wr[wr.BOTTOM = 1] = "BOTTOM", wr[wr.MIDDLE = 2] = "MIDDLE", wr[wr.TOP = 3] = "TOP", wr);
21832
+ function Rl(i, t, e) {
21799
21833
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21800
21834
  }
21801
- let Rl = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: Ec.LEFT, valign: kc.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, Fl = [{ code: 73, name: "valign", parser: v }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "endPoint", parser: j }, { code: 72, name: "valign", parser: v }, { code: 72, name: "halign", parser: v }, { code: 71, name: "generationFlag", parser: v }, { code: 7, name: "styleName", parser: v }, { code: 51, name: "obliqueAngle", parser: v }, { code: 41, name: "xScale", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 1, name: "text", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 10, name: "startPoint", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21802
- class Dl {
21835
+ let Fl = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: kc.LEFT, valign: Mc.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, Dl = [{ code: 73, name: "valign", parser: v }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "endPoint", parser: j }, { code: 72, name: "valign", parser: v }, { code: 72, name: "halign", parser: v }, { code: 71, name: "generationFlag", parser: v }, { code: 7, name: "styleName", parser: v }, { code: 51, name: "obliqueAngle", parser: v }, { code: 41, name: "xScale", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 1, name: "text", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 10, name: "startPoint", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21836
+ class Ul {
21803
21837
  parseEntity(t, e) {
21804
21838
  let n = {};
21805
21839
  return this.parser(e, t, n), n;
21806
21840
  }
21807
21841
  constructor() {
21808
- zl(this, "parser", xt(Fl, Rl));
21842
+ Rl(this, "parser", xt(Dl, Fl));
21809
21843
  }
21810
21844
  }
21811
- function Ul(i, t, e) {
21845
+ function Vl(i, t, e) {
21812
21846
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21813
21847
  }
21814
- zl(Dl, "ForEntityName", "TEXT");
21815
- let Mc = { ...Rl }, Tc = [{ code: 2 }, { code: 40, name: "annotationScale", parser: v }, { code: 10, name: "alignmentPoint", parser: j }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: v }, { code: 70, name: "numberOfSecondaryAttributes", parser: v }, { code: 70, name: "isReallyLocked", parser: Dt }, { code: 70, name: "mtextFlag", parser: v }, { code: 280, name: "isDuplicatedRecord", parser: Dt }, { code: 100 }, { code: 280, name: "isLocked", parser: Dt }, { code: 74, name: "valign", parser: v }, { code: 73 }, { code: 70, name: "attributeFlag", parser: v }, { code: 2, name: "tag", parser: v }, { code: 3, name: "prompt", parser: v }, { code: 280 }, { code: 100, name: "subclassMarker", parser: v }, ...Fl.slice(2)];
21816
- class Vl {
21848
+ Rl(Ul, "ForEntityName", "TEXT");
21849
+ let Tc = { ...Fl }, Nc = [{ code: 2 }, { code: 40, name: "annotationScale", parser: v }, { code: 10, name: "alignmentPoint", parser: j }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: v }, { code: 70, name: "numberOfSecondaryAttributes", parser: v }, { code: 70, name: "isReallyLocked", parser: Dt }, { code: 70, name: "mtextFlag", parser: v }, { code: 280, name: "isDuplicatedRecord", parser: Dt }, { code: 100 }, { code: 280, name: "isLocked", parser: Dt }, { code: 74, name: "valign", parser: v }, { code: 73 }, { code: 70, name: "attributeFlag", parser: v }, { code: 2, name: "tag", parser: v }, { code: 3, name: "prompt", parser: v }, { code: 280 }, { code: 100, name: "subclassMarker", parser: v }, ...Dl.slice(2)];
21850
+ class Gl {
21817
21851
  parseEntity(t, e) {
21818
21852
  let n = {};
21819
21853
  return this.parser(e, t, n), n;
21820
21854
  }
21821
21855
  constructor() {
21822
- Ul(this, "parser", xt(Tc, Mc));
21856
+ Vl(this, "parser", xt(Nc, Tc));
21823
21857
  }
21824
21858
  }
21825
- Ul(Vl, "ForEntityName", "ATTDEF");
21859
+ Vl(Gl, "ForEntityName", "ATTDEF");
21826
21860
  (an = {})[an.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", an[an.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", an[an.BY_STYLE = 5] = "BY_STYLE";
21827
- function Nc(i, t) {
21861
+ function Cc(i, t) {
21828
21862
  let e = {};
21829
21863
  for (let n of i) {
21830
21864
  let o = t(n);
@@ -21838,7 +21872,7 @@ function* ai(i, t = 1 / 0, e = 1) {
21838
21872
  function Hr(i) {
21839
21873
  return { x: i.x ?? 0, y: i.y ?? 0, z: i.z ?? 0 };
21840
21874
  }
21841
- function Aa(i, t, e) {
21875
+ function Sa(i, t, e) {
21842
21876
  if (St(t, 102)) return dn(t, e, i), !0;
21843
21877
  switch (t.code) {
21844
21878
  case 0:
@@ -21863,7 +21897,7 @@ function Aa(i, t, e) {
21863
21897
  i.materialObjectHardId = t.value;
21864
21898
  break;
21865
21899
  case 62:
21866
- i.colorIndex = t.value, i.color = Ll(Math.abs(t.value));
21900
+ i.colorIndex = t.value, i.color = Ol(Math.abs(t.value));
21867
21901
  break;
21868
21902
  case 370:
21869
21903
  i.lineweight = t.value;
@@ -21895,17 +21929,17 @@ function Aa(i, t, e) {
21895
21929
  i.shadowMode = t.value;
21896
21930
  break;
21897
21931
  case 1001:
21898
- i.xdata = Nl(t, e);
21932
+ i.xdata = Cl(t, e);
21899
21933
  break;
21900
21934
  default:
21901
21935
  return !1;
21902
21936
  }
21903
21937
  return !0;
21904
21938
  }
21905
- function Gl(i, t, e) {
21939
+ function jl(i, t, e) {
21906
21940
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21907
21941
  }
21908
- let Cc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, Ks = [{ code: 46, name: "annotationHeight", parser: v }, { code: 101, parser(i, t) {
21942
+ let Lc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, Ks = [{ code: 46, name: "annotationHeight", parser: v }, { code: 101, parser(i, t) {
21909
21943
  (function(e) {
21910
21944
  e.rewind();
21911
21945
  let n = e.next();
@@ -21916,60 +21950,60 @@ let Cc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rota
21916
21950
  e.rewind();
21917
21951
  })(t);
21918
21952
  } }, { code: 50, name: "columnHeight", parser: v }, { code: 49, name: "columnGutter", parser: v }, { code: 48, name: "columnWidth", parser: v }, { code: 79, name: "columnAutoHeight", parser: v }, { code: 78, name: "columnFlowReversed", parser: v }, { code: 76, name: "columnCount", parser: v }, { code: 75, name: "columnType", parser: v }, { code: 441, name: "backgroundFillTransparency", parser: v }, { code: 63, name: "backgroundFillColor", parser: v }, { code: 45, name: "fillBoxScale", parser: v }, { code: [...ai(430, 440)], name: "backgroundColor", parser: v }, { code: [...ai(420, 430)], name: "backgroundColor", parser: v }, { code: 90, name: "backgroundFill", parser: v }, { code: 44, name: "lineSpacing", parser: v }, { code: 73, name: "lineSpacingStyle", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 43 }, { code: 42 }, { code: 11, name: "direction", parser: j }, { code: 210, name: "extrusionDirection", parser: j }, { code: 7, name: "styleName", parser: v }, ...ci("text"), { code: 72, name: "drawingDirection", parser: v }, { code: 71, name: "attachmentPoint", parser: v }, { code: 41, name: "width", parser: v }, { code: 40, name: "height", parser: v }, { code: 10, name: "insertionPoint", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21919
- class jl {
21953
+ class Wl {
21920
21954
  parseEntity(t, e) {
21921
21955
  let n = {};
21922
21956
  return this.parser(e, t, n), n;
21923
21957
  }
21924
21958
  constructor() {
21925
- Gl(this, "parser", xt(Ks, Cc));
21959
+ jl(this, "parser", xt(Ks, Lc));
21926
21960
  }
21927
21961
  }
21928
- function Wl(i, t, e) {
21962
+ function Hl(i, t, e) {
21929
21963
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21930
21964
  }
21931
- Gl(jl, "ForEntityName", "MTEXT");
21932
- let Lc = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Oc = [...Ks.slice(Ks.findIndex(({ name: i }) => i === "columnType"), Ks.findIndex(({ name: i }) => i === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(i) {
21933
- if (!St(i, 0, "MTEXT")) return wa;
21965
+ jl(Wl, "ForEntityName", "MTEXT");
21966
+ let Oc = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Bc = [...Ks.slice(Ks.findIndex(({ name: i }) => i === "columnType"), Ks.findIndex(({ name: i }) => i === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(i) {
21967
+ if (!St(i, 0, "MTEXT")) return Aa;
21934
21968
  } }, { code: 2, name: "definitionTag", parser: v }, { code: 40, name: "annotationScale", parser: v }, { code: 10, name: "alignmentPoint", parser: j }, { code: 340, name: "secondaryAttributesHardId", parser: v }, { code: 70, name: "numberOfSecondaryAttributes", parser: v }, { code: 70, name: "isReallyLocked", parser: Dt }, { code: 70, name: "mtextFlag", parser: v }, { code: 280, name: "isDuplicatedEntriesKeep", parser: Dt }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: Dt }, { code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "alignmentPoint", parser: j }, { code: 74, name: "verticalJustification", parser: v }, { code: 72, name: "horizontalJustification", parser: v }, { code: 71, name: "textGenerationFlag", parser: v }, { code: 7, name: "textStyle", parser: v }, { code: 51, name: "obliqueAngle", parser: v }, { code: 41, name: "scale", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 73 }, { code: 70, name: "attributeFlag", parser: v }, { code: 2, name: "tag", parser: v }, { code: 280 }, { code: 100, name: "subclassMarker", parser: v }, { code: 1, name: "text", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 10, name: "startPoint", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100 }, ...Vt];
21935
- class Hl {
21969
+ class Yl {
21936
21970
  parseEntity(t, e) {
21937
21971
  let n = {};
21938
21972
  return this.parser(e, t, n), n;
21939
21973
  }
21940
21974
  constructor() {
21941
- Wl(this, "parser", xt(Oc, Lc));
21975
+ Hl(this, "parser", xt(Bc, Oc));
21942
21976
  }
21943
21977
  }
21944
- function Yl(i, t, e) {
21978
+ function ql(i, t, e) {
21945
21979
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21946
21980
  }
21947
- Wl(Hl, "ForEntityName", "ATTRIB");
21948
- let Bc = [...ci("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21949
- class ql {
21981
+ Hl(Yl, "ForEntityName", "ATTRIB");
21982
+ let zc = [...ci("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21983
+ class Xl {
21950
21984
  parseEntity(t, e) {
21951
21985
  let n = {};
21952
21986
  return this.parser(e, t, n), n;
21953
21987
  }
21954
21988
  constructor() {
21955
- Yl(this, "parser", xt(Bc));
21989
+ ql(this, "parser", xt(zc));
21956
21990
  }
21957
21991
  }
21958
- function Xl(i, t, e) {
21992
+ function Kl(i, t, e) {
21959
21993
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
21960
21994
  }
21961
- Yl(ql, "ForEntityName", "BODY");
21962
- let zc = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Rc = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21963
- class Kl {
21995
+ ql(Xl, "ForEntityName", "BODY");
21996
+ let Rc = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Fc = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
21997
+ class $l {
21964
21998
  parseEntity(t, e) {
21965
21999
  let n = {};
21966
22000
  return this.parser(e, t, n), n;
21967
22001
  }
21968
22002
  constructor() {
21969
- Xl(this, "parser", xt(Rc, zc));
22003
+ Kl(this, "parser", xt(Fc, Rc));
21970
22004
  }
21971
22005
  }
21972
- Xl(Kl, "ForEntityName", "CIRCLE");
22006
+ Kl($l, "ForEntityName", "CIRCLE");
21973
22007
  class $s {
21974
22008
  parseEntity(t, e) {
21975
22009
  let n = {};
@@ -22050,154 +22084,154 @@ class $s {
22050
22084
  o.styleName = h.value;
22051
22085
  break;
22052
22086
  default:
22053
- Aa(o, h, c);
22087
+ Sa(o, h, c);
22054
22088
  }
22055
22089
  })(n, e, t), e = t.next();
22056
22090
  }
22057
22091
  return n;
22058
22092
  }
22059
22093
  }
22060
- function $l(i, t, e) {
22094
+ function Zl(i, t, e) {
22061
22095
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22062
22096
  }
22063
22097
  ki = "DIMENSION", (Ei = "ForEntityName") in $s ? Object.defineProperty($s, Ei, { value: ki, enumerable: !0, configurable: !0, writable: !0 }) : $s[Ei] = ki;
22064
- let Fc = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Dc = [{ code: 42, name: "endAngle", parser: v }, { code: 41, name: "startAngle", parser: v }, { code: 40, name: "axisRatio", parser: v }, { code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "majorAxisEndPoint", parser: j }, { code: 10, name: "center", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22065
- class Zl {
22098
+ let Dc = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Uc = [{ code: 42, name: "endAngle", parser: v }, { code: 41, name: "startAngle", parser: v }, { code: 40, name: "axisRatio", parser: v }, { code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "majorAxisEndPoint", parser: j }, { code: 10, name: "center", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22099
+ class Ql {
22066
22100
  parseEntity(t, e) {
22067
22101
  let n = {};
22068
22102
  return this.parser(e, t, n), n;
22069
22103
  }
22070
22104
  constructor() {
22071
- $l(this, "parser", xt(Dc, Fc));
22105
+ Zl(this, "parser", xt(Uc, Dc));
22072
22106
  }
22073
22107
  }
22074
- $l(Zl, "ForEntityName", "ELLIPSE");
22108
+ Zl(Ql, "ForEntityName", "ELLIPSE");
22075
22109
  (Ar = {})[Ar.First = 1] = "First", Ar[Ar.Second = 2] = "Second", Ar[Ar.Third = 4] = "Third", Ar[Ar.Fourth = 8] = "Fourth";
22076
- function Ql(i, t, e) {
22110
+ function Jl(i, t, e) {
22077
22111
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22078
22112
  }
22079
- let Uc = [{ code: 13, name: "vertices.3", parser: j }, { code: 12, name: "vertices.2", parser: j }, { code: 11, name: "vertices.1", parser: j }, { code: 10, name: "vertices.0", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22080
- class Jl {
22113
+ let Vc = [{ code: 13, name: "vertices.3", parser: j }, { code: 12, name: "vertices.2", parser: j }, { code: 11, name: "vertices.1", parser: j }, { code: 10, name: "vertices.0", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22114
+ class th {
22081
22115
  parseEntity(t, e) {
22082
22116
  let n = {};
22083
22117
  return this.parser(e, t, n), n;
22084
22118
  }
22085
22119
  constructor() {
22086
- Ql(this, "parser", xt(Uc));
22120
+ Jl(this, "parser", xt(Vc));
22087
22121
  }
22088
22122
  }
22089
- Ql(Jl, "ForEntityName", "3DFACE");
22090
- let th = [{ code: 330, name: "sourceBoundaryObjects", parser: v, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: v }], Vc = [{ code: 11, name: "end", parser: j }, { code: 10, name: "start", parser: j }], Gc = [{ code: 73, name: "isCCW", parser: Dt }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }], jc = [{ code: 73, name: "isCCW", parser: Dt }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "lengthOfMinorAxis", parser: v }, { code: 11, name: "end", parser: j }, { code: 10, name: "center", parser: j }], Wc = [{ code: 13, name: "endTangent", parser: j }, { code: 12, name: "startTangent", parser: j }, { code: 11, name: "fitDatum", isMultiple: !0, parser: j }, { code: 97, name: "numberOfFitData", parser: v }, { code: 10, name: "controlPoints", isMultiple: !0, parser(i, t) {
22123
+ Jl(th, "ForEntityName", "3DFACE");
22124
+ let eh = [{ code: 330, name: "sourceBoundaryObjects", parser: v, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: v }], Gc = [{ code: 11, name: "end", parser: j }, { code: 10, name: "start", parser: j }], jc = [{ code: 73, name: "isCCW", parser: Dt }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: j }], Wc = [{ code: 73, name: "isCCW", parser: Dt }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "lengthOfMinorAxis", parser: v }, { code: 11, name: "end", parser: j }, { code: 10, name: "center", parser: j }], Hc = [{ code: 13, name: "endTangent", parser: j }, { code: 12, name: "startTangent", parser: j }, { code: 11, name: "fitDatum", isMultiple: !0, parser: j }, { code: 97, name: "numberOfFitData", parser: v }, { code: 10, name: "controlPoints", isMultiple: !0, parser(i, t) {
22091
22125
  let e = { ...Rt(t), weight: 1 };
22092
22126
  return (i = t.next()).code === 42 ? e.weight = i.value : t.rewind(), e;
22093
- } }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 96, name: "numberOfControlPoints", parser: v }, { code: 95, name: "numberOfKnots", parser: v }, { code: 74, name: "isPeriodic", parser: Dt }, { code: 73, name: "splineFlag", parser: v }, { code: 94, name: "degree", parser: v }], Hc = { [Vs.Line]: Vc, [Vs.Circular]: Gc, [Vs.Elliptic]: jc, [Vs.Spline]: Wc }, Yc = [...th, { code: 72, name: "edges", parser(i, t) {
22094
- let e = { type: i.value }, n = xt(Hc[e.type]);
22127
+ } }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 96, name: "numberOfControlPoints", parser: v }, { code: 95, name: "numberOfKnots", parser: v }, { code: 74, name: "isPeriodic", parser: Dt }, { code: 73, name: "splineFlag", parser: v }, { code: 94, name: "degree", parser: v }], Yc = { [Vs.Line]: Gc, [Vs.Circular]: jc, [Vs.Elliptic]: Wc, [Vs.Spline]: Hc }, qc = [...eh, { code: 72, name: "edges", parser(i, t) {
22128
+ let e = { type: i.value }, n = xt(Yc[e.type]);
22095
22129
  if (!n) throw Error(`Invalid edge type ${e.type}`);
22096
22130
  return n(i = t.next(), t, e), e;
22097
- }, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: v }], qc = [...th, { code: 10, name: "vertices", parser(i, t) {
22131
+ }, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: v }], Xc = [...eh, { code: 10, name: "vertices", parser(i, t) {
22098
22132
  let e = { ...Rt(t), bulge: 0 };
22099
22133
  return (i = t.next()).code === 42 ? e.bulge = i.value : t.rewind(), e;
22100
- }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: v }, { code: 73, name: "isClosed", parser: Dt }, { code: 72, name: "hasBulge", parser: Dt }], Xc = [{ code: 49, name: "dashLengths", parser: v, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: v }, { code: 45, name: "offset", parser: Uo }, { code: 43, name: "base", parser: Uo }, { code: 53, name: "angle", parser: v }];
22101
- function Uo(i, t) {
22134
+ }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: v }, { code: 73, name: "isClosed", parser: Dt }, { code: 72, name: "hasBulge", parser: Dt }], Kc = [{ code: 49, name: "dashLengths", parser: v, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: v }, { code: 45, name: "offset", parser: Vo }, { code: 43, name: "base", parser: Vo }, { code: 53, name: "angle", parser: v }];
22135
+ function Vo(i, t) {
22102
22136
  let e = i.code + 1, n = { x: i.value, y: 1 };
22103
22137
  return (i = t.next()).code === e ? n.y = i.value : t.rewind(), n;
22104
22138
  }
22105
- function eh(i, t, e) {
22139
+ function rh(i, t, e) {
22106
22140
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22107
22141
  }
22108
- let Kc = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, $c = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: v }, { code: 461, name: "gradientDefinition", parser: v }, { code: 460, name: "gradientRotation", parser: v }, { code: 453, name: "numberOfColors", parser: v }, { code: 452, name: "gradientColorFlag", parser: v }, { code: 451 }, { code: 450, name: "gradientFlag", parser: v }, { code: 10, name: "seedPoints", parser: j, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: j }, { code: 98, name: "numberOfSeedPoints", parser: v }, { code: 47, name: "pixelSize", parser: v }, { code: 53, name: "definitionLines", parser: function(i, t) {
22142
+ let $c = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, Zc = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: v }, { code: 461, name: "gradientDefinition", parser: v }, { code: 460, name: "gradientRotation", parser: v }, { code: 453, name: "numberOfColors", parser: v }, { code: 452, name: "gradientColorFlag", parser: v }, { code: 451 }, { code: 450, name: "gradientFlag", parser: v }, { code: 10, name: "seedPoints", parser: j, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: j }, { code: 98, name: "numberOfSeedPoints", parser: v }, { code: 47, name: "pixelSize", parser: v }, { code: 53, name: "definitionLines", parser: function(i, t) {
22109
22143
  let e = {};
22110
- return xt(Xc)(i, t, e), e;
22144
+ return xt(Kc)(i, t, e), e;
22111
22145
  }, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: v }, { code: 77, name: "isDouble", parser: Dt }, { code: 73, name: "isAnnotated", parser: Dt }, { code: 41, name: "patternScale", parser: v }, { code: 52, name: "patternAngle", parser: v }, { code: 76, name: "patternType", parser: v }, { code: 75, name: "hatchStyle", parser: v }, { code: 92, name: "boundaryPaths", parser: function(i, t) {
22112
- let e = { boundaryPathTypeFlag: i.value }, n = e.boundaryPathTypeFlag & bc.Polyline;
22113
- return i = t.next(), n ? xt(qc)(i, t, e) : xt(Yc)(i, t, e), e;
22146
+ let e = { boundaryPathTypeFlag: i.value }, n = e.boundaryPathTypeFlag & xc.Polyline;
22147
+ return i = t.next(), n ? xt(Xc)(i, t, e) : xt(qc)(i, t, e), e;
22114
22148
  }, isMultiple: !0 }, { code: 91, name: "numberOfBoundaryPaths", parser: v }, { code: 71, name: "associativity", parser: v }, { code: 63, name: "patternFillColor", parser: v }, { code: 70, name: "solidFill", parser: v }, { code: 2, name: "patternName", parser: v }, { code: 210, name: "extrusionDirection", parser: j }, { code: 10, name: "elevationPoint", parser: j }, { code: 100, name: "subclassMarker", parser: v, pushContext: !0 }, ...Vt];
22115
- class rh {
22149
+ class nh {
22116
22150
  parseEntity(t, e) {
22117
22151
  let n = {};
22118
22152
  return this.parser(e, t, n), n;
22119
22153
  }
22120
22154
  constructor() {
22121
- eh(this, "parser", xt($c, Kc));
22155
+ rh(this, "parser", xt(Zc, $c));
22122
22156
  }
22123
22157
  }
22124
- eh(rh, "ForEntityName", "HATCH");
22158
+ rh(nh, "ForEntityName", "HATCH");
22125
22159
  (Sr = {})[Sr.ShowImage = 1] = "ShowImage", Sr[Sr.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", Sr[Sr.UseClippingBoundary = 4] = "UseClippingBoundary", Sr[Sr.TransparencyIsOn = 8] = "TransparencyIsOn";
22126
22160
  (bs = {})[bs.Rectangular = 1] = "Rectangular", bs[bs.Polygonal = 2] = "Polygonal";
22127
22161
  (xs = {})[xs.Outside = 0] = "Outside", xs[xs.Inside = 1] = "Inside";
22128
- function nh(i, t, e) {
22162
+ function sh(i, t, e) {
22129
22163
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22130
22164
  }
22131
- let Zc = { brightness: 50, contrast: 50, fade: 0, clippingBoundaryPath: [] }, Qc = [{ code: 290, name: "clipMode", parser: v }, { code: 14, name: "clippingBoundaryPath", isMultiple: !0, parser: j }, { code: 91, name: "countBoundaryPoints", parser: v }, { code: 71, name: "clippingBoundaryType", parser: v }, { code: 360, name: "imageDefReactorHandle", parser: v }, { code: 283, name: "fade", parser: v }, { code: 282, name: "contrast", parser: v }, { code: 281, name: "brightness", parser: v }, { code: 280, name: "isClipped", parser: Dt }, { code: 70, name: "flags", parser: v }, { code: 340, name: "imageDefHandle", parser: v }, { code: 13, name: "imageSize", parser: j }, { code: 12, name: "vPixel", parser: j }, { code: 11, name: "uPixel", parser: j }, { code: 10, name: "position", parser: j }, { code: 90, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22132
- class sh {
22165
+ let Qc = { brightness: 50, contrast: 50, fade: 0, clippingBoundaryPath: [] }, Jc = [{ code: 290, name: "clipMode", parser: v }, { code: 14, name: "clippingBoundaryPath", isMultiple: !0, parser: j }, { code: 91, name: "countBoundaryPoints", parser: v }, { code: 71, name: "clippingBoundaryType", parser: v }, { code: 360, name: "imageDefReactorHandle", parser: v }, { code: 283, name: "fade", parser: v }, { code: 282, name: "contrast", parser: v }, { code: 281, name: "brightness", parser: v }, { code: 280, name: "isClipped", parser: Dt }, { code: 70, name: "flags", parser: v }, { code: 340, name: "imageDefHandle", parser: v }, { code: 13, name: "imageSize", parser: j }, { code: 12, name: "vPixel", parser: j }, { code: 11, name: "uPixel", parser: j }, { code: 10, name: "position", parser: j }, { code: 90, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22166
+ class ih {
22133
22167
  parseEntity(t, e) {
22134
22168
  let n = {};
22135
22169
  return this.parser(e, t, n), n;
22136
22170
  }
22137
22171
  constructor() {
22138
- nh(this, "parser", xt(Qc, Zc));
22172
+ sh(this, "parser", xt(Jc, Qc));
22139
22173
  }
22140
22174
  }
22141
- function ih(i, t, e) {
22175
+ function ah(i, t, e) {
22142
22176
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22143
22177
  }
22144
- nh(sh, "ForEntityName", "IMAGE");
22145
- let Jc = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, td = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 45, name: "rowSpacing", parser: v }, { code: 44, name: "columnSpacing", parser: v }, { code: 71, name: "rowCount", parser: v }, { code: 70, name: "columnCount", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 43, name: "zScale", parser: v }, { code: 42, name: "yScale", parser: v }, { code: 41, name: "xScale", parser: v }, { code: 10, name: "insertionPoint", parser: j }, { code: 2, name: "name", parser: v }, { code: 66, name: "isVariableAttributes", parser: Dt }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22146
- class ah {
22178
+ sh(ih, "ForEntityName", "IMAGE");
22179
+ let td = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, ed = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 45, name: "rowSpacing", parser: v }, { code: 44, name: "columnSpacing", parser: v }, { code: 71, name: "rowCount", parser: v }, { code: 70, name: "columnCount", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 43, name: "zScale", parser: v }, { code: 42, name: "yScale", parser: v }, { code: 41, name: "xScale", parser: v }, { code: 10, name: "insertionPoint", parser: j }, { code: 2, name: "name", parser: v }, { code: 66, name: "isVariableAttributes", parser: Dt }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22180
+ class oh {
22147
22181
  parseEntity(t, e) {
22148
22182
  let n = {};
22149
22183
  return this.parser(e, t, n), n;
22150
22184
  }
22151
22185
  constructor() {
22152
- ih(this, "parser", xt(td, Jc));
22186
+ ah(this, "parser", xt(ed, td));
22153
22187
  }
22154
22188
  }
22155
- function oh(i, t, e) {
22189
+ function lh(i, t, e) {
22156
22190
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22157
22191
  }
22158
- ih(ah, "ForEntityName", "INSERT");
22159
- let ed = { isArrowheadEnabled: !0 }, rd = [{ code: 213, name: "offsetFromAnnotation", parser: j }, { code: 212, name: "offsetFromBlock", parser: j }, { code: 211, name: "horizontalDirection", parser: j }, { code: 210, name: "normal", parser: j }, { code: 340, name: "associatedAnnotation", parser: v }, { code: 77, name: "byBlockColor", parser: v }, { code: 10, name: "vertices", parser: j, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: v }, { code: 41, name: "textWidth", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 75, name: "isHooklineExists", parser: Dt }, { code: 74, name: "isHooklineSameDirection", parser: Dt }, { code: 73, name: "leaderCreationFlag", parser: v }, { code: 72, name: "isSpline", parser: Dt }, { code: 71, name: "isArrowheadEnabled", parser: Dt }, { code: 3, name: "styleName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22160
- class lh {
22192
+ ah(oh, "ForEntityName", "INSERT");
22193
+ let rd = { isArrowheadEnabled: !0 }, nd = [{ code: 213, name: "offsetFromAnnotation", parser: j }, { code: 212, name: "offsetFromBlock", parser: j }, { code: 211, name: "horizontalDirection", parser: j }, { code: 210, name: "normal", parser: j }, { code: 340, name: "associatedAnnotation", parser: v }, { code: 77, name: "byBlockColor", parser: v }, { code: 10, name: "vertices", parser: j, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: v }, { code: 41, name: "textWidth", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 75, name: "isHooklineExists", parser: Dt }, { code: 74, name: "isHooklineSameDirection", parser: Dt }, { code: 73, name: "leaderCreationFlag", parser: v }, { code: 72, name: "isSpline", parser: Dt }, { code: 71, name: "isArrowheadEnabled", parser: Dt }, { code: 3, name: "styleName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22194
+ class hh {
22161
22195
  parseEntity(t, e) {
22162
22196
  let n = {};
22163
22197
  return this.parser(e, t, n), n;
22164
22198
  }
22165
22199
  constructor() {
22166
- oh(this, "parser", xt(rd, ed));
22200
+ lh(this, "parser", xt(nd, rd));
22167
22201
  }
22168
22202
  }
22169
- oh(lh, "ForEntityName", "LEADER");
22203
+ lh(hh, "ForEntityName", "LEADER");
22170
22204
  (Ir = {})[Ir.TextAnnotation = 0] = "TextAnnotation", Ir[Ir.ToleranceAnnotation = 1] = "ToleranceAnnotation", Ir[Ir.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", Ir[Ir.NoAnnotation = 3] = "NoAnnotation";
22171
- function hh(i, t, e) {
22205
+ function uh(i, t, e) {
22172
22206
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22173
22207
  }
22174
- let nd = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, sd = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "endPoint", parser: j }, { code: 10, name: "startPoint", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22175
- class uh {
22208
+ let sd = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, id = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 11, name: "endPoint", parser: j }, { code: 10, name: "startPoint", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22209
+ class ch {
22176
22210
  parseEntity(t, e) {
22177
22211
  let n = {};
22178
22212
  return this.parser(e, t, n), n;
22179
22213
  }
22180
22214
  constructor() {
22181
- hh(this, "parser", xt(sd, nd));
22215
+ uh(this, "parser", xt(id, sd));
22182
22216
  }
22183
22217
  }
22184
- hh(uh, "ForEntityName", "LINE");
22218
+ uh(ch, "ForEntityName", "LINE");
22185
22219
  (ws = {})[ws.IS_CLOSED = 1] = "IS_CLOSED", ws[ws.PLINE_GEN = 128] = "PLINE_GEN";
22186
- let id = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, ad = { bulge: 0 }, od = [{ code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 91, name: "id", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }], ld = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 10, name: "vertices", isMultiple: !0, parser(i, t) {
22220
+ let ad = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, od = { bulge: 0 }, ld = [{ code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 91, name: "id", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }], hd = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 10, name: "vertices", isMultiple: !0, parser(i, t) {
22187
22221
  let e = {};
22188
- return xt(od, ad)(i, t, e), e;
22222
+ return xt(ld, od)(i, t, e), e;
22189
22223
  } }, { code: 39, name: "thickness", parser: v }, { code: 38, name: "elevation", parser: v }, { code: 43, name: "constantWidth", parser: v }, { code: 70, name: "flag", parser: v }, { code: 90, name: "numberOfVertices", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22190
22224
  class Zs {
22191
22225
  parseEntity(t, e) {
22192
22226
  let n = {};
22193
- return xt(ld, id)(e, t, n), n;
22227
+ return xt(hd, ad)(e, t, n), n;
22194
22228
  }
22195
22229
  }
22196
- function ch(i, t, e) {
22230
+ function dh(i, t, e) {
22197
22231
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22198
22232
  }
22199
22233
  Ti = "LWPOLYLINE", (Mi = "ForEntityName") in Zs ? Object.defineProperty(Zs, Mi, { value: Ti, enumerable: !0, configurable: !0, writable: !0 }) : Zs[Mi] = Ti;
22200
- let hd = [{ code: 90, name: "overridenSubEntityCount", parser: v }, { code: 140, name: "edgeCreaseWeights", parser: v, isMultiple: !0 }, { code: 95, name: "edgeCreaseCount", parser: v }, { code: 94, parser(i, t, e) {
22234
+ let ud = [{ code: 90, name: "overridenSubEntityCount", parser: v }, { code: 140, name: "edgeCreaseWeights", parser: v, isMultiple: !0 }, { code: 95, name: "edgeCreaseCount", parser: v }, { code: 94, parser(i, t, e) {
22201
22235
  e.edgeCount = i.value, e.edgeIndices = [];
22202
22236
  for (let n = 0; n < e.edgeCount; ++n) {
22203
22237
  let o = [];
@@ -22216,145 +22250,145 @@ let hd = [{ code: 90, name: "overridenSubEntityCount", parser: v }, { code: 140,
22216
22250
  } }, { code: 10, name: "vertices", parser: j, isMultiple: !0 }, { code: 92, name: "verticesCount", parser: v }, { code: 91, name: "subdivisionLevel", parser: v }, { code: 40, name: "blendCrease", parser: v }, { code: 72, name: "isBlendCreased", parser: Dt }, { code: 71, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: function({ value: i }) {
22217
22251
  return i.trim();
22218
22252
  }, pushContext: !0 }, ...Vt];
22219
- class dh {
22253
+ class ph {
22220
22254
  parseEntity(t, e) {
22221
22255
  let n = {};
22222
22256
  return this.parser(e, t, n), n;
22223
22257
  }
22224
22258
  constructor() {
22225
- ch(this, "parser", xt(hd));
22259
+ dh(this, "parser", xt(ud));
22226
22260
  }
22227
22261
  }
22228
- function ph(i, t, e) {
22262
+ function mh(i, t, e) {
22229
22263
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22230
22264
  }
22231
- ch(dh, "ForEntityName", "MESH");
22232
- let ud = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, angle: 0 }, cd = [{ code: 50, name: "angle", parser: v }, { code: 210, name: "extrusionDirection", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22233
- class mh {
22265
+ dh(ph, "ForEntityName", "MESH");
22266
+ let cd = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, angle: 0 }, dd = [{ code: 50, name: "angle", parser: v }, { code: 210, name: "extrusionDirection", parser: j }, { code: 39, name: "thickness", parser: v }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22267
+ class gh {
22234
22268
  parseEntity(t, e) {
22235
22269
  let n = {};
22236
22270
  return this.parser(e, t, n), n;
22237
22271
  }
22238
22272
  constructor() {
22239
- ph(this, "parser", xt(cd, ud));
22273
+ mh(this, "parser", xt(dd, cd));
22240
22274
  }
22241
22275
  }
22242
- ph(mh, "ForEntityName", "POINT");
22276
+ mh(gh, "ForEntityName", "POINT");
22243
22277
  (ce = {})[ce.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", ce[ce.CURVE_FIT = 2] = "CURVE_FIT", ce[ce.SPLINE_FIT = 4] = "SPLINE_FIT", ce[ce.POLYLINE_3D = 8] = "POLYLINE_3D", ce[ce.POLYGON_3D = 16] = "POLYGON_3D", ce[ce.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", ce[ce.POLYFACE = 64] = "POLYFACE", ce[ce.CONTINUOUS = 128] = "CONTINUOUS";
22244
- var Gs = ((Pr = {})[Pr.NONE = 0] = "NONE", Pr[Pr.QUADRATIC = 5] = "QUADRATIC", Pr[Pr.CUBIC = 6] = "CUBIC", Pr[Pr.BEZIER = 8] = "BEZIER", Pr), dd = ((de = {})[de.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", de[de.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", de[de.NOT_USED = 4] = "NOT_USED", de[de.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", de[de.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", de[de.FOR_POLYLINE = 32] = "FOR_POLYLINE", de[de.FOR_POLYGON = 64] = "FOR_POLYGON", de[de.POLYFACE = 128] = "POLYFACE", de);
22245
- function gh(i, t, e) {
22278
+ var Gs = ((Pr = {})[Pr.NONE = 0] = "NONE", Pr[Pr.QUADRATIC = 5] = "QUADRATIC", Pr[Pr.CUBIC = 6] = "CUBIC", Pr[Pr.BEZIER = 8] = "BEZIER", Pr), pd = ((de = {})[de.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", de[de.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", de[de.NOT_USED = 4] = "NOT_USED", de[de.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", de[de.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", de[de.FOR_POLYLINE = 32] = "FOR_POLYLINE", de[de.FOR_POLYGON = 64] = "FOR_POLYGON", de[de.POLYFACE = 128] = "POLYFACE", de);
22279
+ function fh(i, t, e) {
22246
22280
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22247
22281
  }
22248
- let pd = { startWidth: 0, endWidth: 0, bulge: 0 }, md = [{ code: 91, name: "id", parser: v }, { code: [...ai(71, 75)], name: "faces", isMultiple: !0, parser: v }, { code: 50, name: "tangentDirection", parser: v }, { code: 70, name: "flag", parser: v }, { code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 30, name: "z", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Vt];
22249
- class Sa {
22282
+ let md = { startWidth: 0, endWidth: 0, bulge: 0 }, gd = [{ code: 91, name: "id", parser: v }, { code: [...ai(71, 75)], name: "faces", isMultiple: !0, parser: v }, { code: 50, name: "tangentDirection", parser: v }, { code: 70, name: "flag", parser: v }, { code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 30, name: "z", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Vt];
22283
+ class Ia {
22250
22284
  parseEntity(t, e) {
22251
22285
  let n = {};
22252
22286
  return this.parser(e, t, n), n;
22253
22287
  }
22254
22288
  constructor() {
22255
- gh(this, "parser", xt(md, pd));
22289
+ fh(this, "parser", xt(gd, md));
22256
22290
  }
22257
22291
  }
22258
- function fh(i, t, e) {
22292
+ function _h(i, t, e) {
22259
22293
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22260
22294
  }
22261
- gh(Sa, "ForEntityName", "VERTEX");
22262
- let gd = { thickness: 0, flag: 0, startWidth: 0, endWidth: 0, meshMVertexCount: 0, meshNVertexCount: 0, surfaceMDensity: 0, surfaceNDensity: 0, smoothType: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, fd = [{ code: 0, name: "vertices", isMultiple: !0, parser: (i, t) => St(i, 0, "VERTEX") ? (i = t.next(), new Sa().parseEntity(t, i)) : wa }, { code: 210, name: "extrusionDirection", parser: j }, { code: 75, name: "smoothType", parser: v }, { code: 74, name: "surfaceNDensity", parser: v }, { code: 73, name: "surfaceMDensity", parser: v }, { code: 72, name: "meshNVertexCount", parser: v }, { code: 71, name: "meshMVertexCount", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 70, name: "flag", parser: v }, { code: 39, name: "thickness", parser: v }, { code: 30, name: "elevation", parser: v }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22263
- class _h {
22295
+ fh(Ia, "ForEntityName", "VERTEX");
22296
+ let fd = { thickness: 0, flag: 0, startWidth: 0, endWidth: 0, meshMVertexCount: 0, meshNVertexCount: 0, surfaceMDensity: 0, surfaceNDensity: 0, smoothType: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, _d = [{ code: 0, name: "vertices", isMultiple: !0, parser: (i, t) => St(i, 0, "VERTEX") ? (i = t.next(), new Ia().parseEntity(t, i)) : Aa }, { code: 210, name: "extrusionDirection", parser: j }, { code: 75, name: "smoothType", parser: v }, { code: 74, name: "surfaceNDensity", parser: v }, { code: 73, name: "surfaceMDensity", parser: v }, { code: 72, name: "meshNVertexCount", parser: v }, { code: 71, name: "meshMVertexCount", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 70, name: "flag", parser: v }, { code: 39, name: "thickness", parser: v }, { code: 30, name: "elevation", parser: v }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22297
+ class yh {
22264
22298
  parseEntity(t, e) {
22265
22299
  let n = {};
22266
22300
  return this.parser(e, t, n), n;
22267
22301
  }
22268
22302
  constructor() {
22269
- fh(this, "parser", xt(fd, gd));
22303
+ _h(this, "parser", xt(_d, fd));
22270
22304
  }
22271
22305
  }
22272
- function yh(i, t, e) {
22306
+ function vh(i, t, e) {
22273
22307
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22274
22308
  }
22275
- fh(_h, "ForEntityName", "POLYLINE");
22276
- let _d = [{ code: 11, name: "direction", parser: j }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22277
- class vh {
22309
+ _h(yh, "ForEntityName", "POLYLINE");
22310
+ let yd = [{ code: 11, name: "direction", parser: j }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22311
+ class bh {
22278
22312
  parseEntity(t, e) {
22279
22313
  let n = {};
22280
22314
  return this.parser(e, t, n), n;
22281
22315
  }
22282
22316
  constructor() {
22283
- yh(this, "parser", xt(_d));
22317
+ vh(this, "parser", xt(yd));
22284
22318
  }
22285
22319
  }
22286
- function bh(i, t, e) {
22320
+ function xh(i, t, e) {
22287
22321
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22288
22322
  }
22289
- yh(vh, "ForEntityName", "RAY");
22290
- let yd = [...ci("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22291
- class xh {
22323
+ vh(bh, "ForEntityName", "RAY");
22324
+ let vd = [...ci("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22325
+ class wh {
22292
22326
  parseEntity(t, e) {
22293
22327
  let n = {};
22294
22328
  return this.parser(e, t, n), n;
22295
22329
  }
22296
22330
  constructor() {
22297
- bh(this, "parser", xt(yd));
22331
+ xh(this, "parser", xt(vd));
22298
22332
  }
22299
22333
  }
22300
- function wh(i, t, e) {
22334
+ function Ah(i, t, e) {
22301
22335
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22302
22336
  }
22303
- bh(xh, "ForEntityName", "REGION");
22304
- let vd = { vertices: [], backLineVertices: [] }, bd = [{ code: 360, name: "geometrySettingHardId", parser: v }, { code: 12, name: "backLineVertices", isMultiple: !0, parser: j }, { code: 93, name: "numberOfBackLineVertices", parser: v }, { code: 11, name: "vertices", isMultiple: !0, parser: j }, { code: 92, name: "verticesCount", parser: v }, { code: [63, 411], name: "indicatorColor", parser: v }, { code: 70, name: "indicatorTransparency", parser: v }, { code: 41, name: "bottomHeight", parser: v }, { code: 40, name: "topHeight", parser: v }, { code: 10, name: "verticalDirection", parser: j }, { code: 1, name: "name", parser: v }, { code: 91, name: "flag", parser: v }, { code: 90, name: "state", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22305
- class Ah {
22337
+ xh(wh, "ForEntityName", "REGION");
22338
+ let bd = { vertices: [], backLineVertices: [] }, xd = [{ code: 360, name: "geometrySettingHardId", parser: v }, { code: 12, name: "backLineVertices", isMultiple: !0, parser: j }, { code: 93, name: "numberOfBackLineVertices", parser: v }, { code: 11, name: "vertices", isMultiple: !0, parser: j }, { code: 92, name: "verticesCount", parser: v }, { code: [63, 411], name: "indicatorColor", parser: v }, { code: 70, name: "indicatorTransparency", parser: v }, { code: 41, name: "bottomHeight", parser: v }, { code: 40, name: "topHeight", parser: v }, { code: 10, name: "verticalDirection", parser: j }, { code: 1, name: "name", parser: v }, { code: 91, name: "flag", parser: v }, { code: 90, name: "state", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22339
+ class Sh {
22306
22340
  parseEntity(t, e) {
22307
22341
  let n = {};
22308
22342
  return this.parser(e, t, n), n;
22309
22343
  }
22310
22344
  constructor() {
22311
- wh(this, "parser", xt(bd, vd));
22345
+ Ah(this, "parser", xt(xd, bd));
22312
22346
  }
22313
22347
  }
22314
- function Sh(i, t, e) {
22348
+ function Ih(i, t, e) {
22315
22349
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22316
22350
  }
22317
- wh(Ah, "ForEntityName", "SECTION");
22318
- let xd = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, wd = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 39, name: "thickness", parser: v }, { code: [...ai(10, 14)], name: "points", isMultiple: !0, parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22319
- class Ih {
22351
+ Ah(Sh, "ForEntityName", "SECTION");
22352
+ let wd = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Ad = [{ code: 210, name: "extrusionDirection", parser: j }, { code: 39, name: "thickness", parser: v }, { code: [...ai(10, 14)], name: "points", isMultiple: !0, parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22353
+ class Ph {
22320
22354
  parseEntity(t, e) {
22321
22355
  let n = {};
22322
22356
  return this.parser(e, t, n), n;
22323
22357
  }
22324
22358
  constructor() {
22325
- Sh(this, "parser", xt(wd, xd));
22359
+ Ih(this, "parser", xt(Ad, wd));
22326
22360
  }
22327
22361
  }
22328
- function Ph(i, t, e) {
22362
+ function Eh(i, t, e) {
22329
22363
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22330
22364
  }
22331
- Sh(Ih, "ForEntityName", "SOLID");
22332
- let Ad = [{ code: 350, name: "historyObjectSoftId", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...ci("data"), { code: 70, name: "version", parser: v }, { code: 100 }, ...Vt];
22333
- class Eh {
22365
+ Ih(Ph, "ForEntityName", "SOLID");
22366
+ let Sd = [{ code: 350, name: "historyObjectSoftId", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...ci("data"), { code: 70, name: "version", parser: v }, { code: 100 }, ...Vt];
22367
+ class kh {
22334
22368
  parseEntity(t, e) {
22335
22369
  let n = {};
22336
22370
  return this.parser(e, t, n), n;
22337
22371
  }
22338
22372
  constructor() {
22339
- Ph(this, "parser", xt(Ad));
22373
+ Eh(this, "parser", xt(Sd));
22340
22374
  }
22341
22375
  }
22342
- Ph(Eh, "ForEntityName", "3DSOLID");
22376
+ Eh(kh, "ForEntityName", "3DSOLID");
22343
22377
  (Ue = {})[Ue.NONE = 0] = "NONE", Ue[Ue.CLOSED = 1] = "CLOSED", Ue[Ue.PERIODIC = 2] = "PERIODIC", Ue[Ue.RATIONAL = 4] = "RATIONAL", Ue[Ue.PLANAR = 8] = "PLANAR", Ue[Ue.LINEAR = 16] = "LINEAR";
22344
- function kh(i, t, e) {
22378
+ function Mh(i, t, e) {
22345
22379
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22346
22380
  }
22347
- let Sd = { knotTolerance: 1e-6, controlTolerance: 1e-6, fitTolerance: 1e-9, knotValues: [], controlPoints: [], fitPoints: [] }, Id = [{ code: 11, name: "fitPoints", isMultiple: !0, parser: j }, { code: 10, name: "controlPoints", isMultiple: !0, parser: j }, { code: 41, name: "weights", isMultiple: !0, parser: v }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 13, name: "endTangent", parser: j }, { code: 12, name: "startTangent", parser: j }, { code: 44, name: "fitTolerance", parser: v }, { code: 43, name: "controlTolerance", parser: v }, { code: 42, name: "knotTolerance", parser: v }, { code: 74, name: "numberOfFitPoints", parser: v }, { code: 73, name: "numberOfControlPoints", parser: v }, { code: 72, name: "numberOfKnots", parser: v }, { code: 71, name: "degree", parser: v }, { code: 70, name: "flag", parser: v }, { code: 210, name: "normal", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22348
- class Mh {
22381
+ let Id = { knotTolerance: 1e-6, controlTolerance: 1e-6, fitTolerance: 1e-9, knotValues: [], controlPoints: [], fitPoints: [] }, Pd = [{ code: 11, name: "fitPoints", isMultiple: !0, parser: j }, { code: 10, name: "controlPoints", isMultiple: !0, parser: j }, { code: 41, name: "weights", isMultiple: !0, parser: v }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 13, name: "endTangent", parser: j }, { code: 12, name: "startTangent", parser: j }, { code: 44, name: "fitTolerance", parser: v }, { code: 43, name: "controlTolerance", parser: v }, { code: 42, name: "knotTolerance", parser: v }, { code: 74, name: "numberOfFitPoints", parser: v }, { code: 73, name: "numberOfControlPoints", parser: v }, { code: 72, name: "numberOfKnots", parser: v }, { code: 71, name: "degree", parser: v }, { code: 70, name: "flag", parser: v }, { code: 210, name: "normal", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22382
+ class Th {
22349
22383
  parseEntity(t, e) {
22350
22384
  let n = {};
22351
22385
  return this.parser(e, t, n), n;
22352
22386
  }
22353
22387
  constructor() {
22354
- kh(this, "parser", xt(Id, Sd));
22388
+ Mh(this, "parser", xt(Pd, Id));
22355
22389
  }
22356
22390
  }
22357
- kh(Mh, "ForEntityName", "SPLINE");
22391
+ Mh(Th, "ForEntityName", "SPLINE");
22358
22392
  class Qs {
22359
22393
  parseEntity(t, e) {
22360
22394
  let n = {};
@@ -22525,27 +22559,27 @@ class Qs {
22525
22559
  }(t, e)), e = t.lastReadGroup;
22526
22560
  break;
22527
22561
  default:
22528
- Aa(n, e, t), e = t.next();
22562
+ Sa(n, e, t), e = t.next();
22529
22563
  }
22530
22564
  }
22531
22565
  return n;
22532
22566
  }
22533
22567
  }
22534
- function Th(i, t, e) {
22568
+ function Nh(i, t, e) {
22535
22569
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22536
22570
  }
22537
22571
  Ci = "ACAD_TABLE", (Ni = "ForEntityName") in Qs ? Object.defineProperty(Qs, Ni, { value: Ci, enumerable: !0, configurable: !0, writable: !0 }) : Qs[Ni] = Ci;
22538
- let Pd = [{ code: 11, name: "xAxisDirection", parser: j }, { code: 210, name: "extrusionDirection", parser: j }, { code: 1, name: "text", parser: v }, { code: 10, name: "position", parser: j }, { code: 3, name: "styleName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22539
- class Nh {
22572
+ let Ed = [{ code: 11, name: "xAxisDirection", parser: j }, { code: 210, name: "extrusionDirection", parser: j }, { code: 1, name: "text", parser: v }, { code: 10, name: "position", parser: j }, { code: 3, name: "styleName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22573
+ class Ch {
22540
22574
  parseEntity(t, e) {
22541
22575
  let n = {};
22542
22576
  return this.parser(e, t, n), n;
22543
22577
  }
22544
22578
  constructor() {
22545
- Th(this, "parser", xt(Pd));
22579
+ Nh(this, "parser", xt(Ed));
22546
22580
  }
22547
22581
  }
22548
- Th(Nh, "ForEntityName", "TOLERANCE");
22582
+ Nh(Ch, "ForEntityName", "TOLERANCE");
22549
22583
  class Js {
22550
22584
  parseEntity(t, e) {
22551
22585
  let n = {};
@@ -22700,45 +22734,45 @@ class Js {
22700
22734
  o.softPointer = c.value;
22701
22735
  }
22702
22736
  return !0;
22703
- }(n, t, e) && Aa(n, e, t), e = t.next();
22737
+ }(n, t, e) && Sa(n, e, t), e = t.next();
22704
22738
  }
22705
22739
  return n;
22706
22740
  }
22707
22741
  }
22708
22742
  Oi = "VIEWPORT", (Li = "ForEntityName") in Js ? Object.defineProperty(Js, Li, { value: Oi, enumerable: !0, configurable: !0, writable: !0 }) : Js[Li] = Oi;
22709
22743
  (Er = {})[Er.ShowImage = 1] = "ShowImage", Er[Er.ShowImageWhenNotAligned = 2] = "ShowImageWhenNotAligned", Er[Er.UseClippingBoundary = 4] = "UseClippingBoundary", Er[Er.Transparency = 8] = "Transparency";
22710
- function Ch(i, t, e) {
22744
+ function Lh(i, t, e) {
22711
22745
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22712
22746
  }
22713
- let Ed = { brightness: 50, constrast: 50, fade: 0 }, kd = [{ code: 14, name: "boundary", isMultiple: !0, parser: j }, { code: 91, name: "numberOfVertices", parser: v }, { code: 71, name: "boundaryType", parser: v }, { code: 360, name: "imageDefReactorHardId", parser: v }, { code: 283, name: "fade", parser: v }, { code: 282, name: "contrast", parser: v }, { code: 281, name: "brightness", parser: v }, { code: 280, name: "isClipping", parser: Dt }, { code: 70, name: "displayFlag", parser: v }, { code: 340, name: "imageDefHardId", parser: v }, { code: 13, name: "imageSize", parser: j }, { code: 12, name: "vDirection", parser: j }, { code: 11, name: "uDirection", parser: j }, { code: 10, name: "position", parser: j }, { code: 90, name: "classVersion", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22714
- class Lh {
22747
+ let kd = { brightness: 50, constrast: 50, fade: 0 }, Md = [{ code: 14, name: "boundary", isMultiple: !0, parser: j }, { code: 91, name: "numberOfVertices", parser: v }, { code: 71, name: "boundaryType", parser: v }, { code: 360, name: "imageDefReactorHardId", parser: v }, { code: 283, name: "fade", parser: v }, { code: 282, name: "contrast", parser: v }, { code: 281, name: "brightness", parser: v }, { code: 280, name: "isClipping", parser: Dt }, { code: 70, name: "displayFlag", parser: v }, { code: 340, name: "imageDefHardId", parser: v }, { code: 13, name: "imageSize", parser: j }, { code: 12, name: "vDirection", parser: j }, { code: 11, name: "uDirection", parser: j }, { code: 10, name: "position", parser: j }, { code: 90, name: "classVersion", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22748
+ class Oh {
22715
22749
  parseEntity(t, e) {
22716
22750
  let n = {};
22717
22751
  return this.parser(e, t, n), n;
22718
22752
  }
22719
22753
  constructor() {
22720
- Ch(this, "parser", xt(kd, Ed));
22754
+ Lh(this, "parser", xt(Md, kd));
22721
22755
  }
22722
22756
  }
22723
- function Oh(i, t, e) {
22757
+ function Bh(i, t, e) {
22724
22758
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22725
22759
  }
22726
- Ch(Lh, "ForEntityName", "WIPEOUT");
22727
- let Md = [{ code: 11, name: "direction", parser: j }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22728
- class Bh {
22760
+ Lh(Oh, "ForEntityName", "WIPEOUT");
22761
+ let Td = [{ code: 11, name: "direction", parser: j }, { code: 10, name: "position", parser: j }, { code: 100, name: "subclassMarker", parser: v }, ...Vt];
22762
+ class zh {
22729
22763
  parseEntity(t, e) {
22730
22764
  let n = {};
22731
22765
  return this.parser(e, t, n), n;
22732
22766
  }
22733
22767
  constructor() {
22734
- Oh(this, "parser", xt(Md));
22768
+ Bh(this, "parser", xt(Td));
22735
22769
  }
22736
22770
  }
22737
- function zh(i, t, e) {
22771
+ function Rh(i, t, e) {
22738
22772
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22739
22773
  }
22740
- Oh(Bh, "ForEntityName", "XLINE");
22741
- let Td = {}, Nd = [{ code: 170, name: "multileaderType", parser: v }, { code: 291, name: "doglegEnabled", parser: Dt }, { code: 40, name: "doglegLength", parser: v }, { code: 172, name: "contentType", parser: v }, { code: 3, name: "textContent", parser: v }, { code: 12, name: "textAnchor", parser: j }, { code: 344, name: "blockHandle", parser: v }, { code: 15, name: "blockPosition", parser: j }, { code: 302, name: "leaderSections", parser: function(i, t, e) {
22774
+ Bh(zh, "ForEntityName", "XLINE");
22775
+ let Nd = {}, Cd = [{ code: 170, name: "multileaderType", parser: v }, { code: 291, name: "doglegEnabled", parser: Dt }, { code: 40, name: "doglegLength", parser: v }, { code: 172, name: "contentType", parser: v }, { code: 3, name: "textContent", parser: v }, { code: 12, name: "textAnchor", parser: j }, { code: 344, name: "blockHandle", parser: v }, { code: 15, name: "blockPosition", parser: j }, { code: 302, name: "leaderSections", parser: function(i, t, e) {
22742
22776
  let n, o = { leaderLines: [] };
22743
22777
  for (; t.hasNext() && (n = t.next()).code !== 303; )
22744
22778
  switch (n.code) {
@@ -22760,18 +22794,18 @@ let Td = {}, Nd = [{ code: 170, name: "multileaderType", parser: v }, { code: 29
22760
22794
  }
22761
22795
  return o;
22762
22796
  }, isMultiple: !0 }, ...Vt];
22763
- class Rh {
22797
+ class Fh {
22764
22798
  parseEntity(t, e) {
22765
22799
  let n = {};
22766
22800
  return this.parser(e, t, n), n;
22767
22801
  }
22768
22802
  constructor() {
22769
- zh(this, "parser", xt(Nd, Td));
22803
+ Rh(this, "parser", xt(Cd, Nd));
22770
22804
  }
22771
22805
  }
22772
- zh(Rh, "ForEntityName", "MULTILEADER");
22773
- let Cd = Object.fromEntries([Bl, Vl, Hl, ql, Kl, $s, Zl, Jl, sh, ah, lh, uh, Zs, dh, jl, Rh, mh, _h, vh, xh, Ah, Ih, Eh, Mh, Qs, Dl, Nh, rh, Sa, Js, Lh, Bh].map((i) => [i.ForEntityName, new i()]));
22774
- function Fh(i, t) {
22806
+ Rh(Fh, "ForEntityName", "MULTILEADER");
22807
+ let Ld = Object.fromEntries([zl, Gl, Yl, Xl, $l, $s, Ql, th, ih, oh, hh, ch, Zs, ph, Wl, Fh, gh, yh, bh, wh, Sh, Ph, kh, Th, Qs, Ul, Ch, nh, Ia, Js, Oh, zh].map((i) => [i.ForEntityName, new i()]));
22808
+ function Dh(i, t) {
22775
22809
  let e = [];
22776
22810
  for (; !St(i, 0, "EOF"); ) {
22777
22811
  if (i.code === 0) {
@@ -22779,30 +22813,30 @@ function Fh(i, t) {
22779
22813
  t.rewind();
22780
22814
  break;
22781
22815
  }
22782
- let n = Cd[i.value];
22816
+ let n = Ld[i.value];
22783
22817
  if (n) {
22784
22818
  let o = i.value;
22785
22819
  i = t.next();
22786
22820
  let h = n.parseEntity(t, i);
22787
- h.type = o, Cl(h), e.push(h);
22821
+ h.type = o, Ll(h), e.push(h);
22788
22822
  } else t.debug && console.warn(`Unsupported ENTITY type: ${i.value}`);
22789
22823
  }
22790
22824
  i = t.next();
22791
22825
  }
22792
22826
  return e;
22793
22827
  }
22794
- function Ld(i, t) {
22828
+ function Od(i, t) {
22795
22829
  let e = {};
22796
22830
  for (; !St(i, 0, "EOF") && !St(i, 0, "ENDSEC"); ) {
22797
22831
  if (St(i, 0, "BLOCK")) {
22798
- let n = Od(i = t.next(), t);
22799
- Cl(n), n.name && (e[n.name] = n);
22832
+ let n = Bd(i = t.next(), t);
22833
+ Ll(n), n.name && (e[n.name] = n);
22800
22834
  }
22801
22835
  i = t.next();
22802
22836
  }
22803
22837
  return e;
22804
22838
  }
22805
- function Od(i, t) {
22839
+ function Bd(i, t) {
22806
22840
  let e = {};
22807
22841
  for (; !St(i, 0, "EOF"); ) {
22808
22842
  if (St(i, 0, "ENDBLK")) {
@@ -22843,30 +22877,30 @@ function Od(i, t) {
22843
22877
  e.ownerHandle = i.value;
22844
22878
  break;
22845
22879
  case 0:
22846
- e.entities = Fh(i, t);
22880
+ e.entities = Dh(i, t);
22847
22881
  }
22848
22882
  i = t.next();
22849
22883
  }
22850
22884
  return e;
22851
22885
  }
22852
- function Bd(i, t) {
22886
+ function zd(i, t) {
22853
22887
  let e = null, n = {};
22854
22888
  for (; !St(i, 0, "EOF") && !St(i, 0, "ENDSEC"); ) i.code === 9 ? e = i.value : i.code === 10 ? n[e] = Rt(t) : n[e] = i.value, i = t.next();
22855
22889
  return n;
22856
22890
  }
22857
22891
  (Ve = {})[Ve.NOT_APPLICABLE = 0] = "NOT_APPLICABLE", Ve[Ve.KEEP_EXISTING = 1] = "KEEP_EXISTING", Ve[Ve.USE_CLONE = 2] = "USE_CLONE", Ve[Ve.XREF_VALUE_NAME = 3] = "XREF_VALUE_NAME", Ve[Ve.VALUE_NAME = 4] = "VALUE_NAME", Ve[Ve.UNMANGLE_NAME = 5] = "UNMANGLE_NAME";
22858
- let Ia = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 5, name: "handle", parser: v }], zd = [{ code: 3, name: "entries", parser: (i, t) => {
22892
+ let Pa = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 102, parser: dn }, { code: 5, name: "handle", parser: v }], Rd = [{ code: 3, name: "entries", parser: (i, t) => {
22859
22893
  let e = { name: i.value };
22860
22894
  return (i = t.next()).code === 350 ? e.objectSoftId = i.value : i.code === 360 ? e.objectHardId = i.value : t.rewind(), e;
22861
- }, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: v }, { code: 280, name: "isHardOwned", parser: Dt }, { code: 100, name: "subclassMarker", parser: v }, ...Ia], Rd = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: v }, { code: 90, name: "version", parser: v }, { code: 1, name: "fileName", parser: v }, { code: 10, name: "size", parser: j }, { code: 11, name: "sizeOfOnePixel", parser: j }, { code: 280, name: "isLoaded", parser: v }, { code: 281, name: "resolutionUnits", parser: v }, { code: 100, name: "subclassMarker", parser: v }];
22895
+ }, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: v }, { code: 280, name: "isHardOwned", parser: Dt }, { code: 100, name: "subclassMarker", parser: v }, ...Pa], Fd = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: v }, { code: 90, name: "version", parser: v }, { code: 1, name: "fileName", parser: v }, { code: 10, name: "size", parser: j }, { code: 11, name: "sizeOfOnePixel", parser: j }, { code: 280, name: "isLoaded", parser: v }, { code: 281, name: "resolutionUnits", parser: v }, { code: 100, name: "subclassMarker", parser: v }];
22862
22896
  (on = {})[on.NOUNIT = 0] = "NOUNIT", on[on.CENTIMETERS = 2] = "CENTIMETERS", on[on.INCH = 5] = "INCH";
22863
22897
  (As = {})[As.PSLTSCALE = 1] = "PSLTSCALE", As[As.LIMCHECK = 2] = "LIMCHECK";
22864
22898
  (ln = {})[ln.INCHES = 0] = "INCHES", ln[ln.MILLIMETERS = 1] = "MILLIMETERS", ln[ln.PIXELS = 2] = "PIXELS";
22865
22899
  (Ge = {})[Ge.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", Ge[Ge.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", Ge[Ge.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", Ge[Ge.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", Ge[Ge.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", Ge[Ge.LAYOUT_INFORMATION = 5] = "LAYOUT_INFORMATION";
22866
22900
  (kr = {})[kr.AS_DISPLAYED = 0] = "AS_DISPLAYED", kr[kr.WIREFRAME = 1] = "WIREFRAME", kr[kr.HIDDEN = 2] = "HIDDEN", kr[kr.RENDERED = 3] = "RENDERED";
22867
22901
  (je = {})[je.DRAFT = 0] = "DRAFT", je[je.PREVIEW = 1] = "PREVIEW", je[je.NORMAL = 2] = "NORMAL", je[je.PRESENTATION = 3] = "PRESENTATION", je[je.MAXIMUM = 4] = "MAXIMUM", je[je.CUSTOM = 5] = "CUSTOM";
22868
- let Dh = [{ code: 333, name: "shadePlotId", parser: v }, { code: 149, name: "imageOriginY", parser: v }, { code: 148, name: "imageOriginX", parser: v }, { code: 147, name: "scaleFactor", parser: v }, { code: 78, name: "shadePlotCustomDPI", parser: v }, { code: 77, name: "shadePlotResolution", parser: v }, { code: 76, name: "shadePlotMode", parser: v }, { code: 75, name: "standardScaleType", parser: v }, { code: 7, name: "currentStyleSheet", parser: v }, { code: 74, name: "plotType", parser: v }, { code: 73, name: "plotRotation", parser: v }, { code: 72, name: "plotPaperUnit", parser: v }, { code: 70, name: "layoutFlag", parser: v }, { code: 143, name: "printScaleDenominator", parser: v }, { code: 142, name: "printScaleNumerator", parser: v }, { code: 141, name: "windowAreaYMax", parser: v }, { code: 140, name: "windowAreaXMax", parser: v }, { code: 49, name: "windowAreaYMin", parser: v }, { code: 48, name: "windowAreaXMin", parser: v }, { code: 47, name: "plotOriginY", parser: v }, { code: 46, name: "plotOriginX", parser: v }, { code: 45, name: "paperHeight", parser: v }, { code: 44, name: "paperWidth", parser: v }, { code: 43, name: "marginTop", parser: v }, { code: 42, name: "marginRight", parser: v }, { code: 41, name: "marginBottom", parser: v }, { code: 40, name: "marginLeft", parser: v }, { code: 6, name: "plotViewName", parser: v }, { code: 4, name: "paperSize", parser: v }, { code: 2, name: "configName", parser: v }, { code: 1, name: "pageSetupName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Ia], Fd = [{ code: 346, name: "orthographicUcsId", parser: v }, { code: 345, name: "namedUcsId", parser: v }, { code: 331, name: "viewportId", parser: v }, { code: 330, name: "paperSpaceTableId", parser: v }, { code: 76, name: "orthographicType", parser: v }, { code: 17, name: "ucsYAxis", parser: j }, { code: 16, name: "ucsXAxis", parser: j }, { code: 13, name: "ucsOrigin", parser: j }, { code: 146, name: "elevation", parser: v }, { code: 15, name: "maxExtent", parser: j }, { code: 14, name: "minExtent", parser: j }, { code: 12, name: "insertionPoint", parser: j }, { code: 11, name: "maxLimit", parser: j }, { code: 10, name: "minLimit", parser: j }, { code: 71, name: "tabOrder", parser: v }, { code: 70, name: "controlFlag", parser: v }, { code: 1, name: "layoutName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dh], Dd = [{ code: 40, name: "wcsToOCSTransform", parser: Vo }, { code: 40, name: "ocsToWCSTransform", parser: Vo }, { code: 41, name: "backClippingDistance", parser: v }, { code: 73, name: "isBackClipping", parser: Dt, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: v }, { code: 72, name: "isFrontClipping", parser: Dt, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: Dt }, { code: 11, name: "position", parser: j }, { code: 210, name: "normal", parser: j }, { code: 10, name: "boundaryVertices", parser: j, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Ia];
22869
- function Vo(i, t) {
22902
+ let Uh = [{ code: 333, name: "shadePlotId", parser: v }, { code: 149, name: "imageOriginY", parser: v }, { code: 148, name: "imageOriginX", parser: v }, { code: 147, name: "scaleFactor", parser: v }, { code: 78, name: "shadePlotCustomDPI", parser: v }, { code: 77, name: "shadePlotResolution", parser: v }, { code: 76, name: "shadePlotMode", parser: v }, { code: 75, name: "standardScaleType", parser: v }, { code: 7, name: "currentStyleSheet", parser: v }, { code: 74, name: "plotType", parser: v }, { code: 73, name: "plotRotation", parser: v }, { code: 72, name: "plotPaperUnit", parser: v }, { code: 70, name: "layoutFlag", parser: v }, { code: 143, name: "printScaleDenominator", parser: v }, { code: 142, name: "printScaleNumerator", parser: v }, { code: 141, name: "windowAreaYMax", parser: v }, { code: 140, name: "windowAreaXMax", parser: v }, { code: 49, name: "windowAreaYMin", parser: v }, { code: 48, name: "windowAreaXMin", parser: v }, { code: 47, name: "plotOriginY", parser: v }, { code: 46, name: "plotOriginX", parser: v }, { code: 45, name: "paperHeight", parser: v }, { code: 44, name: "paperWidth", parser: v }, { code: 43, name: "marginTop", parser: v }, { code: 42, name: "marginRight", parser: v }, { code: 41, name: "marginBottom", parser: v }, { code: 40, name: "marginLeft", parser: v }, { code: 6, name: "plotViewName", parser: v }, { code: 4, name: "paperSize", parser: v }, { code: 2, name: "configName", parser: v }, { code: 1, name: "pageSetupName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Pa], Dd = [{ code: 346, name: "orthographicUcsId", parser: v }, { code: 345, name: "namedUcsId", parser: v }, { code: 331, name: "viewportId", parser: v }, { code: 330, name: "paperSpaceTableId", parser: v }, { code: 76, name: "orthographicType", parser: v }, { code: 17, name: "ucsYAxis", parser: j }, { code: 16, name: "ucsXAxis", parser: j }, { code: 13, name: "ucsOrigin", parser: j }, { code: 146, name: "elevation", parser: v }, { code: 15, name: "maxExtent", parser: j }, { code: 14, name: "minExtent", parser: j }, { code: 12, name: "insertionPoint", parser: j }, { code: 11, name: "maxLimit", parser: j }, { code: 10, name: "minLimit", parser: j }, { code: 71, name: "tabOrder", parser: v }, { code: 70, name: "controlFlag", parser: v }, { code: 1, name: "layoutName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Uh], Ud = [{ code: 40, name: "wcsToOCSTransform", parser: Go }, { code: 40, name: "ocsToWCSTransform", parser: Go }, { code: 41, name: "backClippingDistance", parser: v }, { code: 73, name: "isBackClipping", parser: Dt, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: v }, { code: 72, name: "isFrontClipping", parser: Dt, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: Dt }, { code: 11, name: "position", parser: j }, { code: 210, name: "normal", parser: j }, { code: 10, name: "boundaryVertices", parser: j, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Pa];
22903
+ function Go(i, t) {
22870
22904
  let e = [];
22871
22905
  for (let n = 0; n < 3 && St(i, 40); ++n) {
22872
22906
  let o = [];
@@ -22875,39 +22909,39 @@ function Vo(i, t) {
22875
22909
  }
22876
22910
  return t.rewind(), e;
22877
22911
  }
22878
- let Ud = { LAYOUT: Fd, PLOTSETTINGS: Dh, DICTIONARY: zd, SPATIAL_FILTER: Dd, IMAGEDEF: Rd };
22879
- function Vd(i, t) {
22912
+ let Vd = { LAYOUT: Dd, PLOTSETTINGS: Uh, DICTIONARY: Rd, SPATIAL_FILTER: Ud, IMAGEDEF: Fd };
22913
+ function Gd(i, t) {
22880
22914
  let e = [];
22881
22915
  for (; i.code !== 0 || !["EOF", "ENDSEC"].includes(i.value); ) {
22882
- let n = i.value, o = Ud[n];
22916
+ let n = i.value, o = Vd[n];
22883
22917
  if (i.code === 0 && (o != null && o.length)) {
22884
22918
  let h = xt(o), c = { name: n };
22885
22919
  h(i = t.next(), t, c) ? (e.push(c), i = t.peek()) : i = t.next();
22886
22920
  } else i = t.next();
22887
22921
  }
22888
- return { byName: Nc(e, ({ name: n }) => n) };
22922
+ return { byName: Cc(e, ({ name: n }) => n) };
22889
22923
  }
22890
22924
  let Dn = [{ code: 100, name: "subclassMarker", parser: v }, { code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser(i, t) {
22891
22925
  for (; !St(i, 0, "EOF") && !St(i, 102, "}"); ) i = t.next();
22892
- } }, { code: 5, name: "handle", parser: v }], Gd = xt([{ code: 310, name: "bmpPreview", parser: v }, { code: 281, name: "scalability", parser: v }, { code: 280, name: "explodability", parser: v }, { code: 70, name: "insertionUnits", parser: v }, { code: 340, name: "layoutObjects", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), jd = [{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4 }, { name: "DIMBLK_OBSOLETE", code: 5 }, { name: "DIMBLK1_OBSOLETE", code: 6 }, { name: "DIMBLK2_OBSOLETE", code: 7 }, { name: "DIMSCALE", code: 40, defaultValue: 1 }, { name: "DIMASZ", code: 41, defaultValue: 0.25 }, { name: "DIMEXO", code: 42, defaultValue: 0.625, defaultValueImperial: 0.0625 }, { name: "DIMDLI", code: 43, defaultValue: 3.75, defaultValueImperial: 0.38 }, { name: "DIMEXE", code: 44, defaultValue: 2.25, defaultValueImperial: 0.28 }, { name: "DIMRND", code: 45, defaultValue: 0 }, { name: "DIMDLE", code: 46, defaultValue: 0 }, { name: "DIMTP", code: 47, defaultValue: 0 }, { name: "DIMTM", code: 48, defaultValue: 0 }, { name: "DIMTXT", code: 140, defaultValue: 2.5, defaultValueImperial: 0.28 }, { name: "DIMCEN", code: 141, defaultValue: 2.5, defaultValueImperial: 0.09 }, { name: "DIMTSZ", code: 142, defaultValue: 0 }, { name: "DIMALTF", code: 143, defaultValue: 25.4 }, { name: "DIMLFAC", code: 144, defaultValue: 1 }, { name: "DIMTVP", code: 145, defaultValue: 0 }, { name: "DIMTFAC", code: 146, defaultValue: 1 }, { name: "DIMGAP", code: 147, defaultValue: 0.625, defaultValueImperial: 0.09 }, { name: "DIMALTRND", code: 148, defaultValue: 0 }, { name: "DIMTOL", code: 71, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMLIM", code: 72, defaultValue: 0 }, { name: "DIMTIH", code: 73, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMTOH", code: 74, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMSE1", code: 75, defaultValue: 0 }, { name: "DIMSE2", code: 76, defaultValue: 0 }, { name: "DIMTAD", code: 77, defaultValue: Do.Above, defaultValueImperial: Do.Center }, { name: "DIMZIN", code: 78, defaultValue: Bn.Trailing, defaultValueImperial: Bn.Feet }, { name: "DIMAZIN", code: 79, defaultValue: fc.None }, { name: "DIMALT", code: 170, defaultValue: 0 }, { name: "DIMALTD", code: 171, defaultValue: 3, defaultValueImperial: 2 }, { name: "DIMTOFL", code: 172, defaultValue: 1, defaultValueImperial: 0 }, { name: "DIMSAH", code: 173, defaultValue: 0 }, { name: "DIMTIX", code: 174, defaultValue: 0 }, { name: "DIMSOXD", code: 175, defaultValue: 0 }, { name: "DIMCLRD", code: 176, defaultValue: 0 }, { name: "DIMCLRE", code: 177, defaultValue: 0 }, { name: "DIMCLRT", code: 178, defaultValue: 0 }, { name: "DIMADEC", code: 179 }, { name: "DIMUNIT", code: 270 }, { name: "DIMDEC", code: 271, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMTDEC", code: 272, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMALTU", code: 273, defaultValue: 2 }, { name: "DIMALTTD", code: 274, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMAUNIT", code: 275, defaultValue: 0 }, { name: "DIMFRAC", code: 276, defaultValue: 0 }, { name: "DIMLUNIT", code: 277, defaultValue: 2 }, { name: "DIMDSEP", code: 278, defaultValue: ",", defaultValueImperial: "." }, { name: "DIMJUST", code: 280, defaultValue: _c.Center }, { name: "DIMSD1", code: 281, defaultValue: 0 }, { name: "DIMSD2", code: 282, defaultValue: 0 }, { name: "DIMTOLJ", code: 283, defaultValue: yc.Center }, { name: "DIMTZIN", code: 284, defaultValue: Bn.Trailing, defaultValueImperial: Bn.Feet }, { name: "DIMALTZ", code: 285, defaultValue: Bn.Trailing }, { name: "DIMALTTZ", code: 286, defaultValue: Bn.Trailing }, { name: "DIMFIT", code: 287 }, { name: "DIMUPT", code: 288, defaultValue: 0 }, { name: "DIMATFIT", code: 289, defaultValue: 3 }, { name: "DIMTXSTY", code: 340 }, { name: "DIMLDRBLK", code: 341 }, { name: "DIMBLK", code: 342 }, { name: "DIMBLK1", code: 343 }, { name: "DIMBLK2", code: 344 }, { name: "DIMLWD", code: 371, defaultValue: -2 }, { name: "DIMLWD", code: 372, defaultValue: -2 }], Wd = xt([...jd.map((i) => ({ ...i, parser: v })), { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 105, name: "handle", parser: v }, ...Dn.filter((i) => i.code !== 5)]), Hd = xt([{ code: 347, name: "materialObjectId", parser: v }, { code: 390, name: "plotStyleNameObjectId", parser: v }, { code: 370, name: "lineweight", parser: v }, { code: 290, name: "isPlotting", parser: Dt }, { code: 6, name: "lineType", parser: v }, { code: 62, name: "colorIndex", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]);
22926
+ } }, { code: 5, name: "handle", parser: v }], jd = xt([{ code: 310, name: "bmpPreview", parser: v }, { code: 281, name: "scalability", parser: v }, { code: 280, name: "explodability", parser: v }, { code: 70, name: "insertionUnits", parser: v }, { code: 340, name: "layoutObjects", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), Wd = [{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4 }, { name: "DIMBLK_OBSOLETE", code: 5 }, { name: "DIMBLK1_OBSOLETE", code: 6 }, { name: "DIMBLK2_OBSOLETE", code: 7 }, { name: "DIMSCALE", code: 40, defaultValue: 1 }, { name: "DIMASZ", code: 41, defaultValue: 0.25 }, { name: "DIMEXO", code: 42, defaultValue: 0.625, defaultValueImperial: 0.0625 }, { name: "DIMDLI", code: 43, defaultValue: 3.75, defaultValueImperial: 0.38 }, { name: "DIMEXE", code: 44, defaultValue: 2.25, defaultValueImperial: 0.28 }, { name: "DIMRND", code: 45, defaultValue: 0 }, { name: "DIMDLE", code: 46, defaultValue: 0 }, { name: "DIMTP", code: 47, defaultValue: 0 }, { name: "DIMTM", code: 48, defaultValue: 0 }, { name: "DIMTXT", code: 140, defaultValue: 2.5, defaultValueImperial: 0.28 }, { name: "DIMCEN", code: 141, defaultValue: 2.5, defaultValueImperial: 0.09 }, { name: "DIMTSZ", code: 142, defaultValue: 0 }, { name: "DIMALTF", code: 143, defaultValue: 25.4 }, { name: "DIMLFAC", code: 144, defaultValue: 1 }, { name: "DIMTVP", code: 145, defaultValue: 0 }, { name: "DIMTFAC", code: 146, defaultValue: 1 }, { name: "DIMGAP", code: 147, defaultValue: 0.625, defaultValueImperial: 0.09 }, { name: "DIMALTRND", code: 148, defaultValue: 0 }, { name: "DIMTOL", code: 71, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMLIM", code: 72, defaultValue: 0 }, { name: "DIMTIH", code: 73, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMTOH", code: 74, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMSE1", code: 75, defaultValue: 0 }, { name: "DIMSE2", code: 76, defaultValue: 0 }, { name: "DIMTAD", code: 77, defaultValue: Uo.Above, defaultValueImperial: Uo.Center }, { name: "DIMZIN", code: 78, defaultValue: Bn.Trailing, defaultValueImperial: Bn.Feet }, { name: "DIMAZIN", code: 79, defaultValue: _c.None }, { name: "DIMALT", code: 170, defaultValue: 0 }, { name: "DIMALTD", code: 171, defaultValue: 3, defaultValueImperial: 2 }, { name: "DIMTOFL", code: 172, defaultValue: 1, defaultValueImperial: 0 }, { name: "DIMSAH", code: 173, defaultValue: 0 }, { name: "DIMTIX", code: 174, defaultValue: 0 }, { name: "DIMSOXD", code: 175, defaultValue: 0 }, { name: "DIMCLRD", code: 176, defaultValue: 0 }, { name: "DIMCLRE", code: 177, defaultValue: 0 }, { name: "DIMCLRT", code: 178, defaultValue: 0 }, { name: "DIMADEC", code: 179 }, { name: "DIMUNIT", code: 270 }, { name: "DIMDEC", code: 271, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMTDEC", code: 272, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMALTU", code: 273, defaultValue: 2 }, { name: "DIMALTTD", code: 274, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMAUNIT", code: 275, defaultValue: 0 }, { name: "DIMFRAC", code: 276, defaultValue: 0 }, { name: "DIMLUNIT", code: 277, defaultValue: 2 }, { name: "DIMDSEP", code: 278, defaultValue: ",", defaultValueImperial: "." }, { name: "DIMJUST", code: 280, defaultValue: yc.Center }, { name: "DIMSD1", code: 281, defaultValue: 0 }, { name: "DIMSD2", code: 282, defaultValue: 0 }, { name: "DIMTOLJ", code: 283, defaultValue: vc.Center }, { name: "DIMTZIN", code: 284, defaultValue: Bn.Trailing, defaultValueImperial: Bn.Feet }, { name: "DIMALTZ", code: 285, defaultValue: Bn.Trailing }, { name: "DIMALTTZ", code: 286, defaultValue: Bn.Trailing }, { name: "DIMFIT", code: 287 }, { name: "DIMUPT", code: 288, defaultValue: 0 }, { name: "DIMATFIT", code: 289, defaultValue: 3 }, { name: "DIMTXSTY", code: 340 }, { name: "DIMLDRBLK", code: 341 }, { name: "DIMBLK", code: 342 }, { name: "DIMBLK1", code: 343 }, { name: "DIMBLK2", code: 344 }, { name: "DIMLWD", code: 371, defaultValue: -2 }, { name: "DIMLWD", code: 372, defaultValue: -2 }], Hd = xt([...Wd.map((i) => ({ ...i, parser: v })), { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 105, name: "handle", parser: v }, ...Dn.filter((i) => i.code !== 5)]), Yd = xt([{ code: 347, name: "materialObjectId", parser: v }, { code: 390, name: "plotStyleNameObjectId", parser: v }, { code: 370, name: "lineweight", parser: v }, { code: 290, name: "isPlotting", parser: Dt }, { code: 6, name: "lineType", parser: v }, { code: 62, name: "colorIndex", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]);
22893
22927
  (Mr = {})[Mr.NONE = 0] = "NONE", Mr[Mr.AbsoluteRotation = 1] = "AbsoluteRotation", Mr[Mr.TextEmbedded = 2] = "TextEmbedded", Mr[Mr.ShapeEmbedded = 4] = "ShapeEmbedded";
22894
- let Yd = xt([{ code: 9, name: "text", parser: v }, { code: 45, name: "offsetY", parser: v }, { code: 44, name: "offsetX", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 46, name: "scale", parser: v }, { code: 340, name: "styleObjectId", parser: v }, { code: 75, name: "shapeNumber", parser: v }, { code: 74, name: "elementTypeFlag", parser: v }, { code: 49, name: "elementLength", parser: v }], { elementTypeFlag: 0, elementLength: 0 }), qd = xt([{ code: 49, name: "pattern", parser(i, t) {
22928
+ let qd = xt([{ code: 9, name: "text", parser: v }, { code: 45, name: "offsetY", parser: v }, { code: 44, name: "offsetX", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 46, name: "scale", parser: v }, { code: 340, name: "styleObjectId", parser: v }, { code: 75, name: "shapeNumber", parser: v }, { code: 74, name: "elementTypeFlag", parser: v }, { code: 49, name: "elementLength", parser: v }], { elementTypeFlag: 0, elementLength: 0 }), Xd = xt([{ code: 49, name: "pattern", parser(i, t) {
22895
22929
  let e = {};
22896
- return Yd(i, t, e), e;
22897
- }, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: v }, { code: 73, name: "numberOfLineTypes", parser: v }, { code: 72, parser: v }, { code: 3, name: "description", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), Xd = xt([{ code: 1e3, name: "extendedFont", parser: v }, { code: 1001 }, { code: 4, name: "bigFont", parser: v }, { code: 3, name: "font", parser: v }, { code: 42, name: "lastHeight", parser: v }, { code: 71, name: "textGenerationFlag", parser: v }, { code: 50, name: "obliqueAngle", parser: v }, { code: 41, name: "widthFactor", parser: v }, { code: 40, name: "fixedTextHeight", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), Kd = xt([{ code: [63, 421, 431], name: "ambientColor", parser: v }, { code: 142, name: "contrast", parser: v }, { code: 141, name: "brightness", parser: v }, { code: 282, name: "defaultLightingType", parser: v }, { code: 292, name: "isDefaultLightingOn", parser: Dt }, { code: 348, name: "visualStyleObjectId", parser: v }, { code: 333, name: "shadePlotObjectId", parser: v }, { code: 332, name: "backgroundObjectId", parser: v }, { code: 61, name: "majorGridLines", parser: v }, { code: 170, name: "shadePlotSetting", parser: v }, { code: 146, name: "elevation", parser: v }, { code: 79, name: "orthographicType", parser: v }, { code: 112, name: "ucsYAxis", parser: j }, { code: 111, name: "ucsXAxis", parser: j }, { code: 110, name: "ucsOrigin", parser: j }, { code: 74, name: "ucsIconSetting", parser: v }, { code: 71, name: "viewMode", parser: v }, { code: 281, name: "renderMode", parser: v }, { code: 1, name: "styleSheet", parser: v }, { code: [331, 441], name: "frozenLayers", parser: v, isMultiple: !0 }, { code: 72, name: "circleSides", parser: v }, { code: 51, name: "viewTwistAngle", parser: v }, { code: 50, name: "snapRotationAngle", parser: v }, { code: 45, name: "viewHeight", parser: v }, { code: 44, name: "backClippingPlane", parser: v }, { code: 43, name: "frontClippingPlane", parser: v }, { code: 42, name: "lensLength", parser: v }, { code: 17, name: "viewTarget", parser: j }, { code: 16, name: "viewDirectionFromTarget", parser: j }, { code: 15, name: "gridSpacing", parser: j }, { code: 14, name: "snapSpacing", parser: j }, { code: 13, name: "snapBasePoint", parser: j }, { code: 12, name: "center", parser: j }, { code: 11, name: "upperRightCorner", parser: j }, { code: 10, name: "lowerLeftCorner", parser: j }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), $d = { BLOCK_RECORD: Gd, DIMSTYLE: Wd, LAYER: Hd, LTYPE: qd, STYLE: Xd, VPORT: Kd }, Zd = xt([{ code: 70, name: "maxNumberOfEntries", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 330, name: "ownerObjectId", parser: v }, { code: 102 }, { code: 360, isMultiple: !0 }, { code: 102 }, { code: 5, name: "handle", parser: v }, { code: 2, name: "name", parser: v }]);
22898
- function Qd(i, t) {
22930
+ return qd(i, t, e), e;
22931
+ }, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: v }, { code: 73, name: "numberOfLineTypes", parser: v }, { code: 72, parser: v }, { code: 3, name: "description", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), Kd = xt([{ code: 1e3, name: "extendedFont", parser: v }, { code: 1001 }, { code: 4, name: "bigFont", parser: v }, { code: 3, name: "font", parser: v }, { code: 42, name: "lastHeight", parser: v }, { code: 71, name: "textGenerationFlag", parser: v }, { code: 50, name: "obliqueAngle", parser: v }, { code: 41, name: "widthFactor", parser: v }, { code: 40, name: "fixedTextHeight", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), $d = xt([{ code: [63, 421, 431], name: "ambientColor", parser: v }, { code: 142, name: "contrast", parser: v }, { code: 141, name: "brightness", parser: v }, { code: 282, name: "defaultLightingType", parser: v }, { code: 292, name: "isDefaultLightingOn", parser: Dt }, { code: 348, name: "visualStyleObjectId", parser: v }, { code: 333, name: "shadePlotObjectId", parser: v }, { code: 332, name: "backgroundObjectId", parser: v }, { code: 61, name: "majorGridLines", parser: v }, { code: 170, name: "shadePlotSetting", parser: v }, { code: 146, name: "elevation", parser: v }, { code: 79, name: "orthographicType", parser: v }, { code: 112, name: "ucsYAxis", parser: j }, { code: 111, name: "ucsXAxis", parser: j }, { code: 110, name: "ucsOrigin", parser: j }, { code: 74, name: "ucsIconSetting", parser: v }, { code: 71, name: "viewMode", parser: v }, { code: 281, name: "renderMode", parser: v }, { code: 1, name: "styleSheet", parser: v }, { code: [331, 441], name: "frozenLayers", parser: v, isMultiple: !0 }, { code: 72, name: "circleSides", parser: v }, { code: 51, name: "viewTwistAngle", parser: v }, { code: 50, name: "snapRotationAngle", parser: v }, { code: 45, name: "viewHeight", parser: v }, { code: 44, name: "backClippingPlane", parser: v }, { code: 43, name: "frontClippingPlane", parser: v }, { code: 42, name: "lensLength", parser: v }, { code: 17, name: "viewTarget", parser: j }, { code: 16, name: "viewDirectionFromTarget", parser: j }, { code: 15, name: "gridSpacing", parser: j }, { code: 14, name: "snapSpacing", parser: j }, { code: 13, name: "snapBasePoint", parser: j }, { code: 12, name: "center", parser: j }, { code: 11, name: "upperRightCorner", parser: j }, { code: 10, name: "lowerLeftCorner", parser: j }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Dn]), Zd = { BLOCK_RECORD: jd, DIMSTYLE: Hd, LAYER: Yd, LTYPE: Xd, STYLE: Kd, VPORT: $d }, Qd = xt([{ code: 70, name: "maxNumberOfEntries", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 330, name: "ownerObjectId", parser: v }, { code: 102 }, { code: 360, isMultiple: !0 }, { code: 102 }, { code: 5, name: "handle", parser: v }, { code: 2, name: "name", parser: v }]);
22932
+ function Jd(i, t) {
22899
22933
  var n;
22900
22934
  let e = {};
22901
22935
  for (; !St(i, 0, "EOF") && !St(i, 0, "ENDSEC"); ) {
22902
22936
  if (St(i, 0, "TABLE")) {
22903
22937
  i = t.next();
22904
22938
  let o = { entries: [] };
22905
- Zd(i, t, o), e[o.name] = o;
22939
+ Qd(i, t, o), e[o.name] = o;
22906
22940
  }
22907
22941
  if (St(i, 0) && !St(i, 0, "ENDTAB")) {
22908
22942
  let o = i.value;
22909
22943
  i = t.next();
22910
- let h = $d[o];
22944
+ let h = Zd[o];
22911
22945
  if (!h) {
22912
22946
  t.debug && console.warn(`parseTable: Invalid table name '${o}'`), i = t.next();
22913
22947
  continue;
@@ -22922,17 +22956,17 @@ function Qd(i, t) {
22922
22956
  function Ss(i, t, e) {
22923
22957
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22924
22958
  }
22925
- class Go {
22959
+ class jo {
22926
22960
  next() {
22927
22961
  if (!this.hasNext()) return this._eof ? this.debug && console.warn("Cannot call 'next' after EOF group has been read") : this.debug && console.warn("Unexpected end of input: EOF group not read before end of file. Ended on code " + this._data[this._pointer]), { code: 0, value: "EOF" };
22928
- let t = parseInt(this._data[this._pointer++], 10), e = jo(t, this._data[this._pointer++], this.debug), n = { code: t, value: e };
22962
+ let t = parseInt(this._data[this._pointer++], 10), e = Wo(t, this._data[this._pointer++], this.debug), n = { code: t, value: e };
22929
22963
  return St(n, 0, "EOF") && (this._eof = !0), this.lastReadGroup = n, n;
22930
22964
  }
22931
22965
  peek() {
22932
22966
  if (!this.hasNext())
22933
22967
  throw this._eof ? Error("Cannot call 'next' after EOF group has been read") : Error("Unexpected end of input: EOF group not read before end of file. Ended on code " + this._data[this._pointer]);
22934
22968
  let t = { code: parseInt(this._data[this._pointer]), value: 0 };
22935
- return t.value = jo(t.code, this._data[this._pointer + 1], this.debug), t;
22969
+ return t.value = Wo(t.code, this._data[this._pointer + 1], this.debug), t;
22936
22970
  }
22937
22971
  rewind(t) {
22938
22972
  t = t || 1, this._pointer = this._pointer - 2 * t;
@@ -22947,7 +22981,7 @@ class Go {
22947
22981
  Ss(this, "_data", void 0), Ss(this, "debug", void 0), Ss(this, "_pointer", void 0), Ss(this, "_eof", void 0), Ss(this, "lastReadGroup", void 0), this._data = t, this.debug = e, this.lastReadGroup = { code: 0, value: 0 }, this._pointer = 0, this._eof = !1;
22948
22982
  }
22949
22983
  }
22950
- function jo(i, t, e = !1) {
22984
+ function Wo(i, t, e = !1) {
22951
22985
  return i <= 9 ? t : i >= 10 && i <= 59 ? parseFloat(t.trim()) : i >= 60 && i <= 99 ? parseInt(t.trim()) : i >= 100 && i <= 109 ? t : i >= 110 && i <= 149 ? parseFloat(t.trim()) : i >= 160 && i <= 179 ? parseInt(t.trim()) : i >= 210 && i <= 239 ? parseFloat(t.trim()) : i >= 270 && i <= 289 ? parseInt(t.trim()) : i >= 290 && i <= 299 ? function(n) {
22952
22986
  if (n === "0") return !1;
22953
22987
  if (n === "1") return !0;
@@ -22957,14 +22991,14 @@ function jo(i, t, e = !1) {
22957
22991
  function da(i, t, e) {
22958
22992
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22959
22993
  }
22960
- class Jd {
22994
+ class t0 {
22961
22995
  constructor() {
22962
22996
  da(this, "encoding", "utf-8"), da(this, "encodingFailureFatal", !1);
22963
22997
  }
22964
22998
  }
22965
- class t0 extends EventTarget {
22999
+ class e0 extends EventTarget {
22966
23000
  parseSync(t, e = !1) {
22967
- let n = new Go(t.split(/\r\n|\r|\n/g), e);
23001
+ let n = new jo(t.split(/\r\n|\r|\n/g), e);
22968
23002
  if (!n.hasNext()) throw Error("Empty file");
22969
23003
  return this.parseAll(n);
22970
23004
  }
@@ -22975,7 +23009,7 @@ class t0 extends EventTarget {
22975
23009
  e += c;
22976
23010
  }), t.on("end", () => {
22977
23011
  try {
22978
- let c = e.split(/\r\n|\r|\n/g), g = new Go(c);
23012
+ let c = e.split(/\r\n|\r|\n/g), g = new jo(c);
22979
23013
  if (!g.hasNext()) throw Error("Empty file");
22980
23014
  o(n.parseAll(g));
22981
23015
  } catch (c) {
@@ -23002,14 +23036,14 @@ class t0 extends EventTarget {
23002
23036
  }
23003
23037
  parseAll(t) {
23004
23038
  let e = { header: {}, blocks: {}, entities: [], tables: {}, objects: { byName: {}, byTree: void 0 } }, n = t.next();
23005
- for (; !St(n, 0, "EOF"); ) St(n, 0, "SECTION") && (St(n = t.next(), 2, "HEADER") ? (n = t.next(), e.header = Bd(n, t)) : St(n, 2, "BLOCKS") ? (n = t.next(), e.blocks = Ld(n, t)) : St(n, 2, "ENTITIES") ? (n = t.next(), e.entities = Fh(n, t)) : St(n, 2, "TABLES") ? (n = t.next(), e.tables = Qd(n, t)) : St(n, 2, "OBJECTS") && (n = t.next(), e.objects = Vd(n, t))), n = t.next();
23039
+ for (; !St(n, 0, "EOF"); ) St(n, 0, "SECTION") && (St(n = t.next(), 2, "HEADER") ? (n = t.next(), e.header = zd(n, t)) : St(n, 2, "BLOCKS") ? (n = t.next(), e.blocks = Od(n, t)) : St(n, 2, "ENTITIES") ? (n = t.next(), e.entities = Dh(n, t)) : St(n, 2, "TABLES") ? (n = t.next(), e.tables = Jd(n, t)) : St(n, 2, "OBJECTS") && (n = t.next(), e.objects = Gd(n, t))), n = t.next();
23006
23040
  return e;
23007
23041
  }
23008
- constructor(t = new Jd()) {
23042
+ constructor(t = new t0()) {
23009
23043
  super(), da(this, "_decoder", void 0), this._decoder = new TextDecoder(t.encoding, { fatal: t.encodingFailureFatal });
23010
23044
  }
23011
23045
  }
23012
- const Wo = [
23046
+ const Ho = [
23013
23047
  { name: "AC1.2", value: 1 },
23014
23048
  { name: "AC1.40", value: 2 },
23015
23049
  { name: "AC1.50", value: 3 },
@@ -23102,14 +23136,14 @@ class pa {
23102
23136
  */
23103
23137
  constructor(t) {
23104
23138
  if (typeof t == "string") {
23105
- const e = Wo.find((n) => n.name === t);
23139
+ const e = Ho.find((n) => n.name === t);
23106
23140
  if (!e)
23107
23141
  throw new Error(`Unknown DWG version name: ${t}`);
23108
23142
  this.name = e.name, this.value = e.value;
23109
23143
  return;
23110
23144
  }
23111
23145
  if (typeof t == "number") {
23112
- const e = Wo.find((n) => n.value === t);
23146
+ const e = Ho.find((n) => n.value === t);
23113
23147
  if (!e)
23114
23148
  throw new Error(`Unknown DWG version value: ${t}`);
23115
23149
  this.name = e.name, this.value = e.value;
@@ -23118,9 +23152,9 @@ class pa {
23118
23152
  throw new Error("Invalid constructor argument for AcDbDwgVersion");
23119
23153
  }
23120
23154
  }
23121
- class e0 {
23155
+ class r0 {
23122
23156
  parse(t) {
23123
- const e = new t0(), n = this.getDxfInfoFromBuffer(t);
23157
+ const e = new e0(), n = this.getDxfInfoFromBuffer(t);
23124
23158
  let o = "";
23125
23159
  return n.version && n.version.value <= 23 && n.encoding ? o = new TextDecoder(n.encoding).decode(t) : o = new TextDecoder().decode(t), e.parseSync(o);
23126
23160
  }
@@ -23149,8 +23183,8 @@ class e0 {
23149
23183
  } else if (b && F === "$DWGCODEPAGE") {
23150
23184
  const dt = (x = B[D + 2]) == null ? void 0 : x.trim();
23151
23185
  if (dt) {
23152
- const vt = Jo[dt];
23153
- g = _u(vt);
23186
+ const vt = tl[dt];
23187
+ g = yu(vt);
23154
23188
  }
23155
23189
  }
23156
23190
  if (c && g)
@@ -23160,7 +23194,7 @@ class e0 {
23160
23194
  return { version: c, encoding: g };
23161
23195
  }
23162
23196
  }
23163
- class Ho {
23197
+ class Yo {
23164
23198
  /**
23165
23199
  * Converts a DXF entity to an AcDbEntity.
23166
23200
  *
@@ -23325,7 +23359,7 @@ class Ho {
23325
23359
  convertPolyline(t) {
23326
23360
  const e = !!(t.flag & 1), n = !!(t.flag & 8), o = [], h = [];
23327
23361
  if (t.vertices.map((c) => {
23328
- c.flag & dd.SPLINE_CONTROL_POINT || (o.push({
23362
+ c.flag & pd.SPLINE_CONTROL_POINT || (o.push({
23329
23363
  x: c.x,
23330
23364
  y: c.y,
23331
23365
  z: c.z
@@ -23368,7 +23402,7 @@ class Ho {
23368
23402
  delta: h.offset,
23369
23403
  dashPattern: h.numberOfDashLengths > 0 ? h.dashLengths : []
23370
23404
  });
23371
- }), e.isSolidFill = t.solidFill == vc.SolidFill, e.hatchStyle = t.hatchStyle, e.patternName = t.patternName, e.patternType = t.patternType, e.patternAngle = t.patternAngle == null ? 0 : t.patternAngle, e.patternScale = t.patternScale == null ? 0 : t.patternScale, t.boundaryPaths.forEach((h) => {
23405
+ }), e.isSolidFill = t.solidFill == bc.SolidFill, e.hatchStyle = t.hatchStyle, e.patternName = t.patternName, e.patternType = t.patternType, e.patternAngle = t.patternAngle == null ? 0 : t.patternAngle, e.patternScale = t.patternScale == null ? 0 : t.patternScale, t.boundaryPaths.forEach((h) => {
23372
23406
  if (h.boundaryPathTypeFlag & 2) {
23373
23407
  const g = h, b = new Fn();
23374
23408
  b.closed = g.isClosed, g.vertices.forEach((f, w) => {
@@ -23379,7 +23413,7 @@ class Ho {
23379
23413
  });
23380
23414
  }), e.add(b);
23381
23415
  } else {
23382
- const g = h, b = new vl();
23416
+ const g = h, b = new bl();
23383
23417
  g.edges.forEach((f) => {
23384
23418
  if (f.type == 1) {
23385
23419
  const w = f;
@@ -23812,7 +23846,7 @@ const Yr = class Yr extends Un {
23812
23846
  * ```
23813
23847
  */
23814
23848
  newIterator() {
23815
- return new xa(this._entities);
23849
+ return new wa(this._entities);
23816
23850
  }
23817
23851
  /**
23818
23852
  * Searches for an entity in this block table record with the specified ID.
@@ -23834,7 +23868,7 @@ const Yr = class Yr extends Un {
23834
23868
  };
23835
23869
  Yr.MODEL_SPACE_NAME = "*MODEL_SPACE", Yr.PAPER_SPACE_NAME_PREFIX = "*PAPER_SPACE";
23836
23870
  let ye = Yr;
23837
- class r0 {
23871
+ class n0 {
23838
23872
  /**
23839
23873
  * Converts a DXF layout object to an AcDbLayout.
23840
23874
  *
@@ -23849,7 +23883,7 @@ class r0 {
23849
23883
  */
23850
23884
  convertLayout(t, e) {
23851
23885
  var o, h;
23852
- const n = new ba();
23886
+ const n = new xa();
23853
23887
  if (n.layoutName = t.layoutName, n.tabOrder = t.tabOrder, t.layoutName === "Model") {
23854
23888
  const c = ye.MODEL_SPACE_NAME;
23855
23889
  (o = e.tables.BLOCK_RECORD) == null || o.entries.some((g) => g.name.toUpperCase() === c ? (n.blockTableRecordId = g.handle, !0) : !1);
@@ -23870,7 +23904,7 @@ class r0 {
23870
23904
  * ```
23871
23905
  */
23872
23906
  convertImageDef(t) {
23873
- const e = new pc();
23907
+ const e = new mc();
23874
23908
  return e.sourceFileName = t.fileName, this.processCommonAttrs(t, e), e;
23875
23909
  }
23876
23910
  /**
@@ -23891,7 +23925,7 @@ class r0 {
23891
23925
  e.objectId = t.handle, e.ownerId = t.ownerObjectId;
23892
23926
  }
23893
23927
  }
23894
- class n0 {
23928
+ class s0 {
23895
23929
  constructor(t) {
23896
23930
  this.taskId = 0, this.workers = /* @__PURE__ */ new Map(), this.pendingTasks = /* @__PURE__ */ new Map(), this.config = {
23897
23931
  workerUrl: t.workerUrl,
@@ -24041,9 +24075,9 @@ class n0 {
24041
24075
  this.workers.clear();
24042
24076
  }
24043
24077
  }
24044
- class s0 {
24078
+ class i0 {
24045
24079
  constructor(t) {
24046
- this.framework = new n0(t);
24080
+ this.framework = new s0(t);
24047
24081
  }
24048
24082
  /**
24049
24083
  * Execute a task with optional worker support
@@ -24064,10 +24098,10 @@ class s0 {
24064
24098
  this.framework.destroy();
24065
24099
  }
24066
24100
  }
24067
- function i0(i) {
24068
- return new s0(i);
24101
+ function a0(i) {
24102
+ return new i0(i);
24069
24103
  }
24070
- class D0 {
24104
+ class U0 {
24071
24105
  constructor() {
24072
24106
  this.setupMessageHandler();
24073
24107
  }
@@ -24103,7 +24137,7 @@ class D0 {
24103
24137
  self.postMessage(h);
24104
24138
  }
24105
24139
  }
24106
- class a0 extends Tl {
24140
+ class o0 extends Nl {
24107
24141
  constructor(t = {}) {
24108
24142
  super(t), t.parserWorkerUrl || (t.parserWorkerUrl = "/assets/dxf-parser-worker.js");
24109
24143
  }
@@ -24116,7 +24150,7 @@ class a0 extends Tl {
24116
24150
  */
24117
24151
  async parse(t) {
24118
24152
  if (this.config.useWorker && this.config.parserWorkerUrl) {
24119
- const e = i0({
24153
+ const e = a0({
24120
24154
  workerUrl: this.config.parserWorkerUrl,
24121
24155
  // One concurrent worker needed for parser
24122
24156
  maxConcurrentWorkers: 1
@@ -24133,7 +24167,7 @@ class a0 extends Tl {
24133
24167
  );
24134
24168
  } else
24135
24169
  return {
24136
- model: new e0().parse(t),
24170
+ model: new r0().parse(t),
24137
24171
  data: {
24138
24172
  unknownEntityCount: 0
24139
24173
  }
@@ -24237,9 +24271,9 @@ class a0 extends Tl {
24237
24271
  * ```
24238
24272
  */
24239
24273
  async processEntities(t, e, n, o, h) {
24240
- const c = new Ho();
24274
+ const c = new Yo();
24241
24275
  let g = t.entities;
24242
- const b = g.length, f = new Zo(
24276
+ const b = g.length, f = new Qo(
24243
24277
  b,
24244
24278
  100 - o.value,
24245
24279
  n
@@ -24273,7 +24307,7 @@ class a0 extends Tl {
24273
24307
  * ```
24274
24308
  */
24275
24309
  async processEntitiesInBlock(t, e) {
24276
- const n = new Ho(), o = t.length, h = [];
24310
+ const n = new Yo(), o = t.length, h = [];
24277
24311
  for (let c = 0; c < o; c++) {
24278
24312
  const g = t[c], b = n.convert(g);
24279
24313
  b && h.push(b);
@@ -24356,7 +24390,7 @@ class a0 extends Tl {
24356
24390
  * ```
24357
24391
  */
24358
24392
  processObjects(t, e) {
24359
- const n = t.objects.byName, o = new r0();
24393
+ const n = t.objects.byName, o = new n0();
24360
24394
  if ("LAYOUT" in n) {
24361
24395
  const h = e.dictionaries.layouts;
24362
24396
  n.LAYOUT.forEach((c) => {
@@ -24396,7 +24430,7 @@ class a0 extends Tl {
24396
24430
  var o, h;
24397
24431
  const n = (h = (o = t.tables) == null ? void 0 : o.VPORT) == null ? void 0 : h.entries;
24398
24432
  n && n.length > 0 && n.forEach((c) => {
24399
- const g = new b0();
24433
+ const g = new x0();
24400
24434
  this.processCommonTableEntryAttrs(c, g), c.circleSides && (g.circleSides = c.circleSides), g.standardFlag = c.standardFlag, g.center.copy(c.center), g.lowerLeftCorner.copy(c.lowerLeftCorner), g.upperRightCorner.copy(c.upperRightCorner), c.snapBasePoint && g.snapBase.copy(c.snapBasePoint), c.snapRotationAngle && (g.snapAngle = c.snapRotationAngle), c.snapSpacing && g.snapIncrements.copy(c.snapSpacing), c.majorGridLines && (g.gridMajor = c.majorGridLines), c.gridSpacing && g.gridIncrements.copy(c.gridSpacing), c.backgroundObjectId && (g.backgroundObjectId = c.backgroundObjectId), g.gsView.center.copy(c.center), g.gsView.viewDirectionFromTarget.copy(c.viewDirectionFromTarget), g.gsView.viewTarget.copy(c.viewTarget), c.lensLength && (g.gsView.lensLength = c.lensLength), c.frontClippingPlane && (g.gsView.frontClippingPlane = c.frontClippingPlane), c.backClippingPlane && (g.gsView.backClippingPlane = c.backClippingPlane), c.viewHeight && (g.gsView.viewHeight = c.viewHeight), c.viewTwistAngle && (g.gsView.viewTwistAngle = c.viewTwistAngle), c.frozenLayers && (g.gsView.frozenLayers = c.frozenLayers), c.styleSheet && (g.gsView.styleSheet = c.styleSheet), c.renderMode && (g.gsView.renderMode = c.renderMode), c.viewMode && (g.gsView.viewMode = c.viewMode), c.ucsIconSetting && (g.gsView.ucsIconSetting = c.ucsIconSetting), c.ucsOrigin && g.gsView.ucsOrigin.copy(c.ucsOrigin), c.ucsXAxis && g.gsView.ucsXAxis.copy(c.ucsXAxis), c.ucsYAxis && g.gsView.ucsYAxis.copy(c.ucsYAxis), c.orthographicType && (g.gsView.orthographicType = c.orthographicType), c.shadePlotSetting && (g.gsView.shadePlotSetting = c.shadePlotSetting), c.shadePlotObjectId && (g.gsView.shadePlotObjectId = c.shadePlotObjectId), c.visualStyleObjectId && (g.gsView.visualStyleObjectId = c.visualStyleObjectId), c.isDefaultLightingOn && (g.gsView.isDefaultLightingOn = c.isDefaultLightingOn), c.defaultLightingType && (g.gsView.defaultLightingType = c.defaultLightingType), c.brightness && (g.gsView.brightness = c.brightness), c.contrast && (g.gsView.contrast = c.contrast), c.ambientColor && (g.gsView.ambientColor = c.ambientColor), e.tables.viewportTable.add(g);
24401
24435
  });
24402
24436
  }
@@ -24421,7 +24455,7 @@ class a0 extends Tl {
24421
24455
  n && n.length > 0 && n.forEach((c) => {
24422
24456
  const g = new fn();
24423
24457
  g.colorIndex = c.colorIndex;
24424
- const b = new Pa({
24458
+ const b = new Ea({
24425
24459
  name: c.name,
24426
24460
  standardFlags: c.standardFlag,
24427
24461
  linetype: c.lineType,
@@ -24473,7 +24507,7 @@ class a0 extends Tl {
24473
24507
  var o;
24474
24508
  const n = (o = t.tables.STYLE) == null ? void 0 : o.entries;
24475
24509
  n && n.length > 0 && n.forEach((h) => {
24476
- const c = new Uh(h);
24510
+ const c = new Vh(h);
24477
24511
  this.processCommonTableEntryAttrs(h, c), e.tables.textStyleTable.add(c);
24478
24512
  });
24479
24513
  }
@@ -24606,7 +24640,7 @@ class a0 extends Tl {
24606
24640
  return n.flatMap((o) => e[o]);
24607
24641
  }
24608
24642
  }
24609
- class o0 extends Tl {
24643
+ class l0 extends Nl {
24610
24644
  constructor(t) {
24611
24645
  super({}), this._database = t;
24612
24646
  }
@@ -24647,7 +24681,7 @@ class o0 extends Tl {
24647
24681
  */
24648
24682
  async processEntities(t, e, n, o, h) {
24649
24683
  let c = t.tables.blockTable.modelSpace.newIterator().toArray();
24650
- const g = c.length, b = new Zo(
24684
+ const g = c.length, b = new Qo(
24651
24685
  g,
24652
24686
  100 - o.value,
24653
24687
  n
@@ -24776,7 +24810,7 @@ class Nr {
24776
24810
  registered: new ae(),
24777
24811
  /** Fired when a converter is unregistered */
24778
24812
  unregistered: new ae()
24779
- }, this._converters = /* @__PURE__ */ new Map(), this.register("dxf", new a0());
24813
+ }, this._converters = /* @__PURE__ */ new Map(), this.register("dxf", new o0());
24780
24814
  }
24781
24815
  /**
24782
24816
  * Creates a new instance of AcDbDatabaseConverterManager.
@@ -25058,7 +25092,7 @@ class Vn extends _n {
25058
25092
  * ```
25059
25093
  */
25060
25094
  newIterator() {
25061
- return new xa(this._recordsByName);
25095
+ return new wa(this._recordsByName);
25062
25096
  }
25063
25097
  /**
25064
25098
  * Normalizes the name of a symbol table record.
@@ -25077,7 +25111,7 @@ class Vn extends _n {
25077
25111
  return t;
25078
25112
  }
25079
25113
  }
25080
- class l0 extends Vn {
25114
+ class h0 extends Vn {
25081
25115
  /**
25082
25116
  * Creates a new AcDbBlockTable instance.
25083
25117
  *
@@ -25129,7 +25163,7 @@ class l0 extends Vn {
25129
25163
  return e;
25130
25164
  }
25131
25165
  }
25132
- class h0 extends Vn {
25166
+ class u0 extends Vn {
25133
25167
  /**
25134
25168
  * Creates a new AcDbDimStyleTable instance.
25135
25169
  *
@@ -25144,7 +25178,7 @@ class h0 extends Vn {
25144
25178
  super(t);
25145
25179
  }
25146
25180
  }
25147
- class Pa extends Un {
25181
+ class Ea extends Un {
25148
25182
  /**
25149
25183
  * Creates a new AcDbLayerTableRecord instance.
25150
25184
  *
@@ -25415,12 +25449,6 @@ class Pa extends Un {
25415
25449
  * Line weight determines the thickness of lines and curves on this layer.
25416
25450
  *
25417
25451
  * @returns The line weight value
25418
- *
25419
- * @example
25420
- * ```typescript
25421
- * const weight = layer.lineWeight;
25422
- * layer.lineWeight = 2.0; // 2.0mm line weight
25423
- * ```
25424
25452
  */
25425
25453
  get lineWeight() {
25426
25454
  return this.getAttr("lineWeight");
@@ -25448,7 +25476,7 @@ class Pa extends Un {
25448
25476
  this.setAttr("materialId", t);
25449
25477
  }
25450
25478
  }
25451
- class u0 extends Vn {
25479
+ class c0 extends Vn {
25452
25480
  /**
25453
25481
  * Creates a new AcDbLayerTable instance.
25454
25482
  *
@@ -25464,11 +25492,11 @@ class u0 extends Vn {
25464
25492
  */
25465
25493
  constructor(t) {
25466
25494
  super(t);
25467
- const e = new fn(), n = new Pa({
25495
+ const e = new fn(), n = new Ea({
25468
25496
  name: "0",
25469
25497
  standardFlags: 0,
25470
25498
  linetype: zi,
25471
- lineWeight: 1,
25499
+ lineWeight: ba.ByLineWeightDefault,
25472
25500
  isOff: !1,
25473
25501
  color: e,
25474
25502
  isPlottable: !0
@@ -25496,7 +25524,7 @@ class u0 extends Vn {
25496
25524
  });
25497
25525
  }
25498
25526
  }
25499
- class c0 extends Vn {
25527
+ class d0 extends Vn {
25500
25528
  /**
25501
25529
  * Creates a new AcDbLinetypeTable instance.
25502
25530
  *
@@ -25511,7 +25539,7 @@ class c0 extends Vn {
25511
25539
  super(t);
25512
25540
  }
25513
25541
  }
25514
- class d0 extends Vn {
25542
+ class p0 extends Vn {
25515
25543
  /**
25516
25544
  * Creates a new AcDbTextStyleTable instance.
25517
25545
  *
@@ -25557,7 +25585,7 @@ class d0 extends Vn {
25557
25585
  return Array.from(t);
25558
25586
  }
25559
25587
  }
25560
- class p0 extends Vn {
25588
+ class m0 extends Vn {
25561
25589
  /**
25562
25590
  * Creates a new AcDbViewportTable instance.
25563
25591
  *
@@ -25572,7 +25600,7 @@ class p0 extends Vn {
25572
25600
  super(t);
25573
25601
  }
25574
25602
  }
25575
- class U0 extends _n {
25603
+ class V0 extends _n {
25576
25604
  /**
25577
25605
  * Creates a new AcDbDatabase instance.
25578
25606
  */
@@ -25596,16 +25624,16 @@ class U0 extends _n {
25596
25624
  openProgress: new ae(),
25597
25625
  /** Fired when a header system variable is changed */
25598
25626
  headerSysVarChanged: new ae()
25599
- }, this._version = new pa("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = Qo.DecimalDegrees, this._celtscale = 1, this._cecolor = new fn(), this._extents = new Lt(), this._insunits = kl.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
25600
- blockTable: new l0(this),
25601
- dimStyleTable: new h0(this),
25602
- linetypeTable: new c0(this),
25603
- textStyleTable: new d0(this),
25604
- layerTable: new u0(this),
25605
- viewportTable: new p0(this)
25627
+ }, this._version = new pa("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = Jo.DecimalDegrees, this._celtscale = 1, this._cecolor = new fn(), this._extents = new Lt(), this._insunits = Ml.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
25628
+ blockTable: new h0(this),
25629
+ dimStyleTable: new u0(this),
25630
+ linetypeTable: new d0(this),
25631
+ textStyleTable: new p0(this),
25632
+ layerTable: new c0(this),
25633
+ viewportTable: new m0(this)
25606
25634
  }, this._dictionaries = {
25607
- layouts: new dc(this),
25608
- imageDefs: new El(this)
25635
+ layouts: new pc(this),
25636
+ imageDefs: new kl(this)
25609
25637
  };
25610
25638
  }
25611
25639
  /**
@@ -25982,7 +26010,7 @@ class U0 extends _n {
25982
26010
  * Triggers xxxAppended events with data in the database to redraw the associated viewer.
25983
26011
  */
25984
26012
  async regen() {
25985
- await new o0(this).read(
26013
+ await new l0(this).read(
25986
26014
  null,
25987
26015
  this,
25988
26016
  500,
@@ -26009,7 +26037,7 @@ class U0 extends _n {
26009
26037
  dimStyle: !0,
26010
26038
  layout: !0
26011
26039
  }) {
26012
- const e = new mc(this);
26040
+ const e = new gc(this);
26013
26041
  t.layer && e.createDefaultLayer(), t.lineType && e.createDefaultLineType(), t.textStyle && e.createDefaultTextStyle(), t.dimStyle && e.createDefaultDimStyle(), t.layout && e.createDefaultLayout();
26014
26042
  }
26015
26043
  /**
@@ -26061,7 +26089,7 @@ class U0 extends _n {
26061
26089
  }
26062
26090
  }
26063
26091
  }
26064
- var m0 = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Left = 1] = "Left", i[i.Right = 2] = "Right", i[i.OverFirst = 3] = "OverFirst", i[i.OverSecond = 4] = "OverSecond", i))(m0 || {}), g0 = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Above = 1] = "Above", i[i.Outside = 2] = "Outside", i[i.JIS = 3] = "JIS", i[i.Below = 4] = "Below", i))(g0 || {}), f0 = /* @__PURE__ */ ((i) => (i[i.Feet = 0] = "Feet", i[i.None = 1] = "None", i[i.Inch = 2] = "Inch", i[i.FeetAndInch = 3] = "FeetAndInch", i[i.Leading = 4] = "Leading", i[i.Trailing = 8] = "Trailing", i[i.LeadingAndTrailing = 12] = "LeadingAndTrailing", i))(f0 || {}), _0 = /* @__PURE__ */ ((i) => (i[i.None = 0] = "None", i[i.Leading = 1] = "Leading", i[i.Trailing = 2] = "Trailing", i[i.LeadingAndTrailing = 3] = "LeadingAndTrailing", i))(_0 || {}), y0 = /* @__PURE__ */ ((i) => (i[i.Bottom = 0] = "Bottom", i[i.Middle = 1] = "Middle", i[i.Top = 2] = "Top", i))(y0 || {});
26092
+ var g0 = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Left = 1] = "Left", i[i.Right = 2] = "Right", i[i.OverFirst = 3] = "OverFirst", i[i.OverSecond = 4] = "OverSecond", i))(g0 || {}), f0 = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Above = 1] = "Above", i[i.Outside = 2] = "Outside", i[i.JIS = 3] = "JIS", i[i.Below = 4] = "Below", i))(f0 || {}), _0 = /* @__PURE__ */ ((i) => (i[i.Feet = 0] = "Feet", i[i.None = 1] = "None", i[i.Inch = 2] = "Inch", i[i.FeetAndInch = 3] = "FeetAndInch", i[i.Leading = 4] = "Leading", i[i.Trailing = 8] = "Trailing", i[i.LeadingAndTrailing = 12] = "LeadingAndTrailing", i))(_0 || {}), y0 = /* @__PURE__ */ ((i) => (i[i.None = 0] = "None", i[i.Leading = 1] = "Leading", i[i.Trailing = 2] = "Trailing", i[i.LeadingAndTrailing = 3] = "LeadingAndTrailing", i))(y0 || {}), v0 = /* @__PURE__ */ ((i) => (i[i.Bottom = 0] = "Bottom", i[i.Middle = 1] = "Middle", i[i.Top = 2] = "Top", i))(v0 || {});
26065
26093
  const oi = class oi extends Un {
26066
26094
  constructor(t, e) {
26067
26095
  t = t || {}, Ts(t, oi.DEFAULT_DIM_VALUES), super(t, e);
@@ -27143,8 +27171,8 @@ const li = class li {
27143
27171
  }
27144
27172
  };
27145
27173
  li._instance = null;
27146
- let Yo = li;
27147
- class Uh extends Un {
27174
+ let qo = li;
27175
+ class Vh extends Un {
27148
27176
  /**
27149
27177
  * Creates a new AcDbTextStyleTableRecord instance.
27150
27178
  *
@@ -27342,7 +27370,7 @@ class Uh extends Un {
27342
27370
  return t;
27343
27371
  }
27344
27372
  }
27345
- const v0 = {
27373
+ const b0 = {
27346
27374
  center: new Ct(),
27347
27375
  viewDirectionFromTarget: new Y(0, 0, 1),
27348
27376
  viewTarget: new Y(0, 0, 0),
@@ -27369,7 +27397,7 @@ const v0 = {
27369
27397
  contrast: 0,
27370
27398
  ambientColor: void 0
27371
27399
  };
27372
- class b0 extends Un {
27400
+ class x0 extends Un {
27373
27401
  /**
27374
27402
  * Creates a new AcDbViewportTableRecord instance.
27375
27403
  *
@@ -27379,7 +27407,7 @@ class b0 extends Un {
27379
27407
  * ```
27380
27408
  */
27381
27409
  constructor() {
27382
- super(), this._circleSides = 100, this._center = new Ct(), this._lowerLeftCorner = new Ct(0, 0), this._upperRightCorner = new Ct(1, 1), this._snapBase = new Ct(0, 0), this._snapAngle = 0, this._snapSpacing = new Ct(0, 0), this._standardFlag = 0, this._gridSpacing = new Ct(), this._gridMajor = 10, this._gsView = v0;
27410
+ super(), this._circleSides = 100, this._center = new Ct(), this._lowerLeftCorner = new Ct(0, 0), this._upperRightCorner = new Ct(1, 1), this._snapBase = new Ct(0, 0), this._snapAngle = 0, this._snapSpacing = new Ct(0, 0), this._standardFlag = 0, this._gridSpacing = new Ct(), this._gridMajor = 10, this._gsView = b0;
27383
27411
  }
27384
27412
  /**
27385
27413
  * Gets or sets the circle zoom percent.
@@ -27553,7 +27581,7 @@ class b0 extends Un {
27553
27581
  return this._gsView;
27554
27582
  }
27555
27583
  }
27556
- class x0 {
27584
+ class w0 {
27557
27585
  constructor() {
27558
27586
  this.events = {
27559
27587
  /** Fired when the layout is created */
@@ -27720,7 +27748,7 @@ class x0 {
27720
27748
  * @returns Return newly created layout and its associated block table record.
27721
27749
  */
27722
27750
  createLayout(t, e) {
27723
- const n = this.getWorkingDatabase(e), o = new ba();
27751
+ const n = this.getWorkingDatabase(e), o = new xa();
27724
27752
  o.layoutName = t, o.tabOrder = n.dictionaries.layouts.maxTabOrder;
27725
27753
  const h = new ye();
27726
27754
  return h.name = `*Paper_Space${o.tabOrder}`, n.tables.blockTable.add(h), n.dictionaries.layouts.setAt(t, o), this.events.layoutCreated.dispatch({
@@ -27737,7 +27765,7 @@ class x0 {
27737
27765
  return e.dictionaries.layouts.getBtrIdAt(e.currentSpaceId);
27738
27766
  }
27739
27767
  getWorkingDatabase(t) {
27740
- return t || Vh().workingDatabase;
27768
+ return t || Gh().workingDatabase;
27741
27769
  }
27742
27770
  setCurrentLayoutInternal(t, e) {
27743
27771
  return t ? (this.events.layoutSwitched.dispatch({
@@ -27745,7 +27773,7 @@ class x0 {
27745
27773
  }), e.currentSpaceId = t.blockTableRecordId, !0) : !1;
27746
27774
  }
27747
27775
  }
27748
- function Vh() {
27776
+ function Gh() {
27749
27777
  return ma.instance;
27750
27778
  }
27751
27779
  const hi = class hi {
@@ -27754,7 +27782,7 @@ const hi = class hi {
27754
27782
  * Initializes the layout manager.
27755
27783
  */
27756
27784
  constructor() {
27757
- this._workingDatabase = null, this._layoutManager = new x0();
27785
+ this._workingDatabase = null, this._layoutManager = new w0();
27758
27786
  }
27759
27787
  /**
27760
27788
  * Gets the current working database.
@@ -27824,76 +27852,76 @@ export {
27824
27852
  fn as AcCmColor,
27825
27853
  gt as AcCmColorMethod,
27826
27854
  Nn as AcCmColorUtil,
27827
- A0 as AcCmEntityColor,
27855
+ S0 as AcCmEntityColor,
27828
27856
  Xe as AcCmErrors,
27829
- S0 as AcCmEventDispatcher,
27857
+ I0 as AcCmEventDispatcher,
27830
27858
  ae as AcCmEventManager,
27831
- N0 as AcCmLoader,
27832
- mu as AcCmLoadingManager,
27833
- cu as AcCmObject,
27834
- $o as AcCmPerformanceCollector,
27835
- du as AcCmTask,
27836
- pu as AcCmTaskScheduler,
27859
+ C0 as AcCmLoader,
27860
+ gu as AcCmLoadingManager,
27861
+ du as AcCmObject,
27862
+ Zo as AcCmPerformanceCollector,
27863
+ pu as AcCmTask,
27864
+ mu as AcCmTaskScheduler,
27837
27865
  ga as AcCmTransparency,
27838
27866
  ke as AcCmTransparencyMethod,
27839
27867
  ji as AcDb2dPolyline,
27840
- Oo as AcDb2dVertex,
27841
- tc as AcDb2dVertexType,
27868
+ Bo as AcDb2dVertex,
27869
+ rc as AcDb2dVertexType,
27842
27870
  oa as AcDb3PointAngularDimension,
27843
27871
  Wi as AcDb3dPolyline,
27844
- Bo as AcDb3dVertex,
27845
- ec as AcDb3dVertexType,
27872
+ zo as AcDb3dVertex,
27873
+ nc as AcDb3dVertexType,
27846
27874
  la as AcDbAlignedDimension,
27847
- Qo as AcDbAngleUnits,
27875
+ Jo as AcDbAngleUnits,
27848
27876
  Hi as AcDbArc,
27849
- Fo as AcDbArcDimension,
27850
- D0 as AcDbBaseWorker,
27851
- Zo as AcDbBatchProcessing,
27877
+ Do as AcDbArcDimension,
27878
+ U0 as AcDbBaseWorker,
27879
+ Qo as AcDbBatchProcessing,
27852
27880
  ri as AcDbBlockReference,
27853
- l0 as AcDbBlockTable,
27881
+ h0 as AcDbBlockTable,
27854
27882
  ye as AcDbBlockTableRecord,
27855
27883
  Yi as AcDbCircle,
27856
- Jo as AcDbCodePage,
27884
+ tl as AcDbCodePage,
27857
27885
  Ne as AcDbCurve,
27858
- mc as AcDbDataGenerator,
27859
- U0 as AcDbDatabase,
27860
- Tl as AcDbDatabaseConverter,
27886
+ gc as AcDbDataGenerator,
27887
+ V0 as AcDbDatabase,
27888
+ Nl as AcDbDatabaseConverter,
27861
27889
  Nr as AcDbDatabaseConverterManager,
27862
27890
  ha as AcDbDiametricDimension,
27863
- El as AcDbDictionary,
27864
- gc as AcDbDimArrowType,
27865
- h0 as AcDbDimStyleTable,
27891
+ kl as AcDbDictionary,
27892
+ fc as AcDbDimArrowType,
27893
+ u0 as AcDbDimStyleTable,
27866
27894
  Ms as AcDbDimStyleTableRecord,
27867
- m0 as AcDbDimTextHorizontal,
27868
- g0 as AcDbDimTextVertical,
27869
- y0 as AcDbDimVerticalJustification,
27870
- f0 as AcDbDimZeroSuppression,
27871
- _0 as AcDbDimZeroSuppressionAngular,
27895
+ g0 as AcDbDimTextHorizontal,
27896
+ f0 as AcDbDimTextVertical,
27897
+ v0 as AcDbDimVerticalJustification,
27898
+ _0 as AcDbDimZeroSuppression,
27899
+ y0 as AcDbDimZeroSuppressionAngular,
27872
27900
  qr as AcDbDimension,
27873
27901
  pa as AcDbDwgVersion,
27874
- a0 as AcDbDxfConverter,
27902
+ o0 as AcDbDxfConverter,
27875
27903
  qi as AcDbEllipse,
27876
27904
  Te as AcDbEntity,
27877
27905
  Xi as AcDbFace,
27878
27906
  ti as AcDbFileType,
27879
27907
  ni as AcDbHatch,
27880
- rc as AcDbHatchPatternType,
27881
- nc as AcDbHatchStyle,
27908
+ sc as AcDbHatchPatternType,
27909
+ ic as AcDbHatchStyle,
27882
27910
  ma as AcDbHostApplicationServices,
27883
- u0 as AcDbLayerTable,
27884
- Pa as AcDbLayerTableRecord,
27885
- ba as AcDbLayout,
27886
- dc as AcDbLayoutDictionary,
27887
- x0 as AcDbLayoutManager,
27911
+ c0 as AcDbLayerTable,
27912
+ Ea as AcDbLayerTableRecord,
27913
+ xa as AcDbLayout,
27914
+ pc as AcDbLayoutDictionary,
27915
+ w0 as AcDbLayoutManager,
27888
27916
  Ki as AcDbLeader,
27889
- sc as AcDbLeaderAnnotationType,
27917
+ ac as AcDbLeaderAnnotationType,
27890
27918
  $i as AcDbLine,
27891
- cc as AcDbLineSpacingStyle,
27892
- c0 as AcDbLinetypeTable,
27919
+ dc as AcDbLineSpacingStyle,
27920
+ d0 as AcDbLinetypeTable,
27893
27921
  ei as AcDbLinetypeTableRecord,
27894
27922
  Zi as AcDbMText,
27895
27923
  _n as AcDbObject,
27896
- xa as AcDbObjectIterator,
27924
+ wa as AcDbObjectIterator,
27897
27925
  ua as AcDbOrdinateDimension,
27898
27926
  zn as AcDbOsnapMode,
27899
27927
  ra as AcDbPoint,
@@ -27902,45 +27930,45 @@ export {
27902
27930
  ea as AcDbPolyline,
27903
27931
  ca as AcDbRadialDimension,
27904
27932
  ii as AcDbRasterImage,
27905
- hc as AcDbRasterImageClipBoundaryType,
27906
- pc as AcDbRasterImageDef,
27907
- uc as AcDbRasterImageImageDisplayOpt,
27933
+ uc as AcDbRasterImageClipBoundaryType,
27934
+ mc as AcDbRasterImageDef,
27935
+ cc as AcDbRasterImageImageDisplayOpt,
27908
27936
  na as AcDbRay,
27909
- o0 as AcDbRegenerator,
27937
+ l0 as AcDbRegenerator,
27910
27938
  cn as AcDbRenderingCache,
27911
27939
  si as AcDbSpline,
27912
27940
  Vn as AcDbSymbolTable,
27913
27941
  Un as AcDbSymbolTableRecord,
27914
- Yo as AcDbSysVarManager,
27942
+ qo as AcDbSysVarManager,
27915
27943
  Qi as AcDbTable,
27916
27944
  Ji as AcDbText,
27917
- oc as AcDbTextHorizontalMode,
27918
- d0 as AcDbTextStyleTable,
27919
- Uh as AcDbTextStyleTableRecord,
27920
- lc as AcDbTextVerticalMode,
27945
+ lc as AcDbTextHorizontalMode,
27946
+ p0 as AcDbTextStyleTable,
27947
+ Vh as AcDbTextStyleTableRecord,
27948
+ hc as AcDbTextVerticalMode,
27921
27949
  ta as AcDbTrace,
27922
- kl as AcDbUnitsValue,
27950
+ Ml as AcDbUnitsValue,
27923
27951
  sa as AcDbViewport,
27924
- p0 as AcDbViewportTable,
27925
- b0 as AcDbViewportTableRecord,
27952
+ m0 as AcDbViewportTable,
27953
+ x0 as AcDbViewportTableRecord,
27926
27954
  ia as AcDbWipeout,
27927
- s0 as AcDbWorkerApi,
27928
- n0 as AcDbWorkerManager,
27955
+ i0 as AcDbWorkerApi,
27956
+ s0 as AcDbWorkerManager,
27929
27957
  aa as AcDbXline,
27930
27958
  _a as AcGeArea2d,
27931
27959
  Ae as AcGeBox2d,
27932
27960
  Lt as AcGeBox3d,
27933
- Qu as AcGeCatmullRomCurve3d,
27961
+ Ju as AcGeCatmullRomCurve3d,
27934
27962
  ks as AcGeCircArc2d,
27935
- _l as AcGeCircArc3d,
27963
+ yl as AcGeCircArc3d,
27936
27964
  Ns as AcGeCurve2d,
27937
27965
  ya as AcGeEllipseArc2d,
27938
27966
  va as AcGeEllipseArc3d,
27939
- Xu as AcGeEuler,
27940
- Du as AcGeGeometryUtil,
27967
+ Ku as AcGeEuler,
27968
+ Uu as AcGeGeometryUtil,
27941
27969
  qs as AcGeLine2d,
27942
27970
  Gi as AcGeLine3d,
27943
- vl as AcGeLoop2d,
27971
+ bl as AcGeLoop2d,
27944
27972
  Mt as AcGeMathUtil,
27945
27973
  fa as AcGeMatrix2d,
27946
27974
  mn as AcGeMatrix3d,
@@ -27950,75 +27978,76 @@ export {
27950
27978
  Y as AcGePoint3d,
27951
27979
  Fn as AcGePolyline2d,
27952
27980
  pn as AcGeQuaternion,
27953
- gl as AcGeShape2d,
27981
+ fl as AcGeShape2d,
27954
27982
  gn as AcGeSpline3d,
27955
- ll as AcGeTol,
27983
+ hl as AcGeTol,
27956
27984
  Qt as AcGeVector2d,
27957
27985
  Z as AcGeVector3d,
27958
27986
  wl as AcGiArrowType,
27959
27987
  Il as AcGiDefaultLightingType,
27988
+ ba as AcGiLineWeight,
27960
27989
  Me as AcGiMTextAttachmentPoint,
27961
27990
  Wr as AcGiMTextFlowDirection,
27962
27991
  Sl as AcGiOrthographicType,
27963
27992
  Al as AcGiRenderMode,
27964
- ic as AcGiViewport,
27965
- k0 as AcTrStringUtil,
27966
- yu as ByBlock,
27993
+ tc as AcGiViewport,
27994
+ M0 as AcTrStringUtil,
27995
+ vu as ByBlock,
27967
27996
  xi as ByLayer,
27968
- P0 as DEBUG_MODE,
27997
+ E0 as DEBUG_MODE,
27969
27998
  zi as DEFAULT_LINE_TYPE,
27970
- hl as DEFAULT_TOL,
27971
- tl as DEG2RAD,
27972
- gu as DefaultLoadingManager,
27999
+ ul as DEFAULT_TOL,
28000
+ el as DEG2RAD,
28001
+ fu as DefaultLoadingManager,
27973
28002
  Cn as FLOAT_TOL,
27974
- C0 as ORIGIN_POINT_2D,
27975
- ol as ORIGIN_POINT_3D,
27976
- el as RAD2DEG,
28003
+ L0 as ORIGIN_POINT_2D,
28004
+ ll as ORIGIN_POINT_3D,
28005
+ rl as RAD2DEG,
27977
28006
  ie as TAU,
27978
- Vh as acdbHostApplicationServices,
28007
+ Gh as acdbHostApplicationServices,
27979
28008
  Di as basisFunction,
27980
- ju as calculateCurveLength,
27981
- Lu as ceilPowerOfTwo,
28009
+ Wu as calculateCurveLength,
28010
+ Ou as ceilPowerOfTwo,
27982
28011
  jr as clamp,
27983
28012
  zs as clone,
27984
- i0 as createWorkerApi,
27985
- wu as damp,
27986
- So as deepClone,
28013
+ a0 as createWorkerApi,
28014
+ Au as damp,
28015
+ Io as deepClone,
27987
28016
  Ts as defaults,
27988
- Tu as degToRad,
27989
- _u as dwgCodePageToEncoding,
27990
- rl as euclideanModulo,
28017
+ Nu as degToRad,
28018
+ yu as dwgCodePageToEncoding,
28019
+ nl as euclideanModulo,
27991
28020
  Hs as evaluateNurbsPoint,
27992
- Ou as floorPowerOfTwo,
27993
- Vu as generateChordKnots,
27994
- Gu as generateSqrtChordKnots,
27995
- vu as generateUUID,
27996
- Uu as generateUniformKnots,
27997
- iu as has,
27998
- sl as intPartLength,
27999
- L0 as interpolateControlPoints,
28000
- xu as inverseLerp,
28001
- Bu as isBetween,
28002
- zu as isBetweenAngle,
28003
- au as isEmpty,
28021
+ Bu as floorPowerOfTwo,
28022
+ Gu as generateChordKnots,
28023
+ ju as generateSqrtChordKnots,
28024
+ bu as generateUUID,
28025
+ Vu as generateUniformKnots,
28026
+ au as has,
28027
+ il as intPartLength,
28028
+ O0 as interpolateControlPoints,
28029
+ wu as inverseLerp,
28030
+ zu as isBetween,
28031
+ Ru as isBetweenAngle,
28032
+ ou as isEmpty,
28004
28033
  Es as isEqual,
28005
- F0 as isImperialUnits,
28006
- R0 as isMetricUnits,
28007
- ul as isPointInPolygon,
28008
- Fu as isPolygonIntersect,
28009
- Cu as isPowerOfTwo,
28010
- nl as lerp,
28034
+ D0 as isImperialUnits,
28035
+ F0 as isMetricUnits,
28036
+ cl as isPointInPolygon,
28037
+ Du as isPolygonIntersect,
28038
+ Lu as isPowerOfTwo,
28039
+ sl as lerp,
28011
28040
  js as log,
28012
- bu as mapLinear,
28041
+ xu as mapLinear,
28013
28042
  Ws as normalizeAngle,
28014
- Au as pingpong,
28015
- Nu as radToDeg,
28016
- Eu as randFloat,
28017
- ku as randFloatSpread,
28018
- Pu as randInt,
28019
- Ru as relativeEps,
28020
- Mu as seededRandom,
28021
- E0 as setLogLevel,
28022
- Iu as smootherstep,
28023
- Su as smoothstep
28043
+ Su as pingpong,
28044
+ Cu as radToDeg,
28045
+ ku as randFloat,
28046
+ Mu as randFloatSpread,
28047
+ Eu as randInt,
28048
+ Fu as relativeEps,
28049
+ Tu as seededRandom,
28050
+ k0 as setLogLevel,
28051
+ Pu as smootherstep,
28052
+ Iu as smoothstep
28024
28053
  };