@mlightcad/cad-html-core 1.7.8-preview.3 → 1.7.8-preview.4

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,8 +1,8 @@
1
- import { AcTrLinePatternShaders as so, createHatchPatternShaderMaterial as lo, createGradientHatchShaderMaterialFromUniforms as co, wrapPatternBaseToLocalFrame as uo, isHighlightOverlayDescendant as mo, isHighlightCloneDrawable as po, AcTrBatchedLine as On, AcTrBatchedLine2 as fo, AcTrBatchedMesh as Rn, AcTrBatchedPoint as ho, getSceneDrawableUserData as xr, getMaterialMetadata as br, isBatchGeometryActive as go, isBatchGeometryVisible as wo, AcTrViewportView as vo } from "@mlightcad/three-renderer";
1
+ import { AcTrLinePatternShaders as co, createHatchPatternShaderMaterial as uo, createGradientHatchShaderMaterialFromUniforms as mo, wrapPatternBaseToLocalFrame as po, isHighlightOverlayDescendant as fo, isHighlightCloneDrawable as ho, AcTrBatchedLine as On, AcTrBatchedLine2 as go, AcTrBatchedMesh as Rn, AcTrBatchedPoint as wo, getSceneDrawableUserData as xr, getMaterialMetadata as br, isBatchGeometryActive as vo, isBatchGeometryVisible as yo, AcTrViewportView as xo } from "@mlightcad/three-renderer";
2
2
  import * as L from "three";
3
3
  import { LineMaterial as kr } from "three/examples/jsm/lines/LineMaterial.js";
4
- import { LineSegments2 as yo } from "three/examples/jsm/lines/LineSegments2.js";
5
- import { AcDbSysVarManager as xo, AcDbSystemVariables as vt, AcCmColor as bo, AcCmColorMethod as ko, AcGeCircArc2d as He, AcGePoint2d as tn, TAU as ze, AcGeEllipseArc2d as Lr, AcGeLine2d as Ar, AcGeNurbsCurve as Lo, AcDbTable as Ao, AcDbAttribute as Co, AcDbDimension as Eo, AcDbCircle as Mo, AcDbArc as So, AcDbEllipse as nn, AcDbSpline as Po, AcDbPolyline as Io, AcDb2dPolyline as zo, AcDb3dPolyline as Bo, AcDbHatch as To, AcDbRay as Fo, AcDbXline as Uo, AcDbSolid as _o, AcDbTrace as Oo, AcDbFace as Ro, AcDbLeader as Ho, AcDbMLine as Do, AcDbMLeader as No, AcDbText as $o, AcDbMText as Vo, AcDbOle2Frame as Xo, AcDbRasterImage as Yo, AcDbPoint as Zo, AcDbLine as jo, AcGeTol as we, FLOAT_TOL as Cr, AcGePolyline2d as Go, AcGeLoop2d as Ko, AcDbViewport as Wo } from "@mlightcad/data-model";
4
+ import { LineSegments2 as bo } from "three/examples/jsm/lines/LineSegments2.js";
5
+ import { AcDbSysVarManager as ko, AcDbSystemVariables as vt, AcCmColor as Lo, AcCmColorMethod as Ao, AcGeCircArc2d as He, AcGePoint2d as tn, TAU as ze, AcGeEllipseArc2d as Lr, AcGeLine2d as Ar, AcGeNurbsCurve as Co, AcDbTable as Eo, AcDbAttribute as Mo, AcDbDimension as So, AcDbCircle as Po, AcDbArc as Io, AcDbEllipse as nn, AcDbSpline as zo, AcDbPolyline as Bo, AcDb2dPolyline as To, AcDb3dPolyline as Fo, AcDbHatch as Uo, AcDbRay as _o, AcDbXline as Oo, AcDbSolid as Ro, AcDbTrace as Ho, AcDbFace as Do, AcDbLeader as No, AcDbMLine as $o, AcDbMLeader as Vo, AcDbText as Xo, AcDbMText as Yo, AcDbOle2Frame as Zo, AcDbRasterImage as jo, AcDbPoint as Go, AcDbLine as Ko, AcGeTol as we, FLOAT_TOL as Cr, AcGePolyline2d as Wo, AcGeLoop2d as Jo, AcDbViewport as qo } from "@mlightcad/data-model";
6
6
  var P = Uint8Array, Z = Uint16Array, rn = Int32Array, it = new P([
7
7
  0,
8
8
  0,
@@ -81,7 +81,7 @@ var P = Uint8Array, Z = Uint16Array, rn = Int32Array, it = new P([
81
81
  return { b: n, r: a };
82
82
  }, Mr = Er(it, 2), Sr = Mr.b, St = Mr.r;
83
83
  Sr[28] = 258, St[258] = 28;
84
- var Pr = Er(st, 0), Jo = Pr.b, Hn = Pr.r, Pt = new Z(32768);
84
+ var Pr = Er(st, 0), Qo = Pr.b, Hn = Pr.r, Pt = new Z(32768);
85
85
  for (var S = 0; S < 32768; ++S) {
86
86
  var oe = (S & 43690) >> 1 | (S & 21845) << 1;
87
87
  oe = (oe & 52428) >> 2 | (oe & 13107) << 2, oe = (oe & 61680) >> 4 | (oe & 3855) << 4, Pt[S] = ((oe & 65280) >> 8 | (oe & 255) << 8) >> 1;
@@ -116,7 +116,7 @@ for (var S = 280; S < 288; ++S)
116
116
  var Fe = new P(32);
117
117
  for (var S = 0; S < 32; ++S)
118
118
  Fe[S] = 5;
119
- var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /* @__PURE__ */ q(Fe, 5, 0), ti = /* @__PURE__ */ q(Fe, 5, 1), yt = function(e) {
119
+ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /* @__PURE__ */ q(Fe, 5, 0), ri = /* @__PURE__ */ q(Fe, 5, 1), yt = function(e) {
120
120
  for (var t = e[0], n = 1; n < e.length; ++n)
121
121
  e[n] > t && (t = e[n]);
122
122
  return t;
@@ -130,7 +130,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
130
130
  return (e + 7) / 8 | 0;
131
131
  }, De = function(e, t, n) {
132
132
  return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new P(e.subarray(t, n));
133
- }, ni = [
133
+ }, ai = [
134
134
  "unexpected EOF",
135
135
  "invalid block type",
136
136
  "invalid length/literal",
@@ -147,7 +147,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
147
147
  "invalid zip data"
148
148
  // determined by unknown compression method
149
149
  ], R = function(e, t, n) {
150
- var r = new Error(t || ni[e]);
150
+ var r = new Error(t || ai[e]);
151
151
  if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, R), !n)
152
152
  throw r;
153
153
  return r;
@@ -170,7 +170,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
170
170
  var g = G(e, u + 1, 3);
171
171
  if (u += 3, g)
172
172
  if (g == 1)
173
- m = Qo, f = ti, h = 9, w = 5;
173
+ m = ti, f = ri, h = 9, w = 5;
174
174
  else if (g == 2) {
175
175
  var A = G(e, u, 31) + 257, M = G(e, u + 10, 15) + 4, k = A + G(e, u + 5, 31) + 1;
176
176
  u += 14;
@@ -227,7 +227,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
227
227
  }
228
228
  var W = f[xt(e, u) & j], me = W >> 4;
229
229
  W || R(3), u += W & 15;
230
- var O = Jo[me];
230
+ var O = Qo[me];
231
231
  if (me > 3) {
232
232
  var z = st[me];
233
233
  O += xt(e, u) & (1 << z) - 1, u += z;
@@ -359,7 +359,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
359
359
  ee(t, c, Le[Y]), c += U[Y], Y > 15 && (ee(t, c, X[k] >> 5 & 127), c += X[k] >> 12);
360
360
  }
361
361
  } else
362
- _ = qo, I = se, $ = ei, O = Fe;
362
+ _ = ei, I = se, $ = ni, O = Fe;
363
363
  for (var k = 0; k < s; ++k) {
364
364
  var z = r[k];
365
365
  if (z > 255) {
@@ -371,11 +371,11 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
371
371
  Ee(t, c, _[z]), c += I[z];
372
372
  }
373
373
  return Ee(t, c, _[256]), c + I[256];
374
- }, ri = /* @__PURE__ */ new rn([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Br = /* @__PURE__ */ new P(0), ai = function(e, t, n, r, a, o) {
374
+ }, oi = /* @__PURE__ */ new rn([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Br = /* @__PURE__ */ new P(0), ii = function(e, t, n, r, a, o) {
375
375
  var i = o.z || e.length, s = new P(r + i + 5 * (1 + Math.ceil(i / 7e3)) + a), l = s.subarray(r, s.length - a), d = o.l, c = (o.r || 0) & 7;
376
376
  if (t) {
377
377
  c && (l[0] = o.r >> 3);
378
- for (var u = ri[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768), w = o.h || new Z(f + 1), v = Math.ceil(n / 3), g = 2 * v, b = function(wt) {
378
+ for (var u = oi[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768), w = o.h || new Z(f + 1), v = Math.ceil(n / 3), g = 2 * v, b = function(wt) {
379
379
  return (e[wt] ^ e[wt + 1] << v ^ e[wt + 2] << g) & f;
380
380
  }, x = new rn(25e3), E = new Z(288), A = new Z(32), M = 0, k = 0, y = o.i || 0, U = 0, T = o.w || 0, H = 0; y + 2 < i; ++y) {
381
381
  var ae = b(y), V = y & 32767, N = w[ae];
@@ -424,7 +424,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
424
424
  o.i = i;
425
425
  }
426
426
  return De(s, 0, r + an(c) + a);
427
- }, oi = /* @__PURE__ */ (function() {
427
+ }, si = /* @__PURE__ */ (function() {
428
428
  for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
429
429
  for (var n = t, r = 9; --r; )
430
430
  n = (n & 1 && -306674912) ^ n >>> 1;
@@ -436,7 +436,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
436
436
  return {
437
437
  p: function(t) {
438
438
  for (var n = e, r = 0; r < t.length; ++r)
439
- n = oi[n & 255 ^ t[r]] ^ n >>> 8;
439
+ n = si[n & 255 ^ t[r]] ^ n >>> 8;
440
440
  e = n;
441
441
  },
442
442
  d: function() {
@@ -448,7 +448,7 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
448
448
  var o = t.dictionary.subarray(-32768), i = new P(o.length + e.length);
449
449
  i.set(o), i.set(e, o.length), e = i, a.w = o.length;
450
450
  }
451
- return ai(e, t.level == null ? 6 : t.level, t.mem == null ? a.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, n, r, a);
451
+ return ii(e, t.level == null ? 6 : t.level, t.mem == null ? a.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, n, r, a);
452
452
  }, Ur = function(e, t) {
453
453
  var n = {};
454
454
  for (var r in e)
@@ -465,54 +465,54 @@ var qo = /* @__PURE__ */ q(se, 9, 0), Qo = /* @__PURE__ */ q(se, 9, 1), ei = /*
465
465
  }, B = function(e, t, n) {
466
466
  for (; n; ++t)
467
467
  e[t] = n, n >>>= 8;
468
- }, ii = function(e, t) {
468
+ }, li = function(e, t) {
469
469
  var n = t.filename;
470
470
  if (e[0] = 31, e[1] = 139, e[2] = 8, e[8] = t.level < 2 ? 4 : t.level == 9 ? 2 : 0, e[9] = 3, t.mtime != 0 && B(e, 4, Math.floor(new Date(t.mtime || Date.now()) / 1e3)), n) {
471
471
  e[3] = 8;
472
472
  for (var r = 0; r <= n.length; ++r)
473
473
  e[r + 10] = n.charCodeAt(r);
474
474
  }
475
- }, si = function(e) {
475
+ }, ci = function(e) {
476
476
  (e[0] != 31 || e[1] != 139 || e[2] != 8) && R(6, "invalid gzip data");
477
477
  var t = e[3], n = 10;
478
478
  t & 4 && (n += (e[10] | e[11] << 8) + 2);
479
479
  for (var r = (t >> 3 & 1) + (t >> 4 & 1); r > 0; r -= !e[n++])
480
480
  ;
481
481
  return n + (t & 2);
482
- }, li = function(e) {
482
+ }, di = function(e) {
483
483
  var t = e.length;
484
484
  return (e[t - 4] | e[t - 3] << 8 | e[t - 2] << 16 | e[t - 1] << 24) >>> 0;
485
- }, ci = function(e) {
485
+ }, ui = function(e) {
486
486
  return 10 + (e.filename ? e.filename.length + 1 : 0);
487
487
  };
488
- function di(e, t) {
488
+ function mi(e, t) {
489
489
  return Fr(e, t || {}, 0, 0);
490
490
  }
491
- function ui(e, t) {
491
+ function pi(e, t) {
492
492
  return Ir(e, { i: 2 }, t && t.out, t && t.dictionary);
493
493
  }
494
- function mi(e, t) {
494
+ function fi(e, t) {
495
495
  t || (t = {});
496
496
  var n = Tr(), r = e.length;
497
497
  n.p(e);
498
- var a = Fr(e, t, ci(t), 8), o = a.length;
499
- return ii(a, t), B(a, o - 8, n.d()), B(a, o - 4, r), a;
498
+ var a = Fr(e, t, ui(t), 8), o = a.length;
499
+ return li(a, t), B(a, o - 8, n.d()), B(a, o - 4, r), a;
500
500
  }
501
- function pi(e, t) {
502
- var n = si(e);
503
- return n + 8 > e.length && R(6, "invalid gzip data"), Ir(e.subarray(n, -8), { i: 2 }, new P(li(e)), t);
501
+ function hi(e, t) {
502
+ var n = ci(e);
503
+ return n + 8 > e.length && R(6, "invalid gzip data"), Ir(e.subarray(n, -8), { i: 2 }, new P(di(e)), t);
504
504
  }
505
505
  var _r = function(e, t, n, r) {
506
506
  for (var a in e) {
507
507
  var o = e[a], i = t + a, s = r;
508
508
  Array.isArray(o) && (s = Ur(r, o[1]), o = o[0]), o instanceof P ? n[i] = [o, s] : (n[i += "/"] = [new P(0), s], _r(o, i, n, r));
509
509
  }
510
- }, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), zt = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), fi = 0;
510
+ }, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), zt = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), gi = 0;
511
511
  try {
512
- zt.decode(Br, { stream: !0 }), fi = 1;
512
+ zt.decode(Br, { stream: !0 }), gi = 1;
513
513
  } catch {
514
514
  }
515
- var hi = function(e) {
515
+ var wi = function(e) {
516
516
  for (var t = "", n = 0; ; ) {
517
517
  var r = e[n++], a = (r > 127) + (r > 223) + (r > 239);
518
518
  if (n + a > e.length)
@@ -544,16 +544,16 @@ function on(e, t) {
544
544
  } else {
545
545
  if (zt)
546
546
  return zt.decode(e);
547
- var a = hi(e), o = a.s, n = a.r;
547
+ var a = wi(e), o = a.s, n = a.r;
548
548
  return n.length && R(8), o;
549
549
  }
550
550
  }
551
- var gi = function(e, t) {
551
+ var vi = function(e, t) {
552
552
  return t + 30 + J(e, t + 26) + J(e, t + 28);
553
- }, wi = function(e, t, n) {
554
- var r = J(e, t + 28), a = on(e.subarray(t + 46, t + 46 + r), !(J(e, t + 8) & 2048)), o = t + 46 + r, i = K(e, t + 20), s = n && i == 4294967295 ? vi(e, o) : [i, K(e, t + 24), K(e, t + 42)], l = s[0], d = s[1], c = s[2];
553
+ }, yi = function(e, t, n) {
554
+ var r = J(e, t + 28), a = on(e.subarray(t + 46, t + 46 + r), !(J(e, t + 8) & 2048)), o = t + 46 + r, i = K(e, t + 20), s = n && i == 4294967295 ? xi(e, o) : [i, K(e, t + 24), K(e, t + 42)], l = s[0], d = s[1], c = s[2];
555
555
  return [J(e, t + 10), l, d, a, o + J(e, t + 30) + J(e, t + 32), c];
556
- }, vi = function(e, t) {
556
+ }, xi = function(e, t) {
557
557
  for (; J(e, t) != 1; t += 4 + J(e, t + 2))
558
558
  ;
559
559
  return [kt(e, t + 12), kt(e, t + 4), kt(e, t + 20)];
@@ -575,10 +575,10 @@ var gi = function(e, t) {
575
575
  B(e, t, +f), B(e, t + 2, w), e.set(h, t + 4), t += 4 + w;
576
576
  }
577
577
  return c && (e.set(s, t), t += c), t;
578
- }, yi = function(e, t, n, r, a) {
578
+ }, bi = function(e, t, n, r, a) {
579
579
  B(e, t, 101010256), B(e, t + 8, n), B(e, t + 10, n), B(e, t + 12, r), B(e, t + 16, a);
580
580
  };
581
- function xi(e, t) {
581
+ function ki(e, t) {
582
582
  t || (t = {});
583
583
  var n = {}, r = [];
584
584
  _r(e, "", n, t);
@@ -586,7 +586,7 @@ function xi(e, t) {
586
586
  for (var i in n) {
587
587
  var s = n[i], l = s[0], d = s[1], c = d.level == 0 ? 0 : 8, u = ve(i), p = u.length, m = d.comment, f = m && ve(m), h = f && f.length, w = Bt(d.extra);
588
588
  p > 65535 && R(11);
589
- var v = c ? di(l, d) : l, g = v.length, b = Tr();
589
+ var v = c ? mi(l, d) : l, g = v.length, b = Tr();
590
590
  b.p(l), r.push(Ur(d, {
591
591
  size: l.length,
592
592
  crc: b.d(),
@@ -604,9 +604,9 @@ function xi(e, t) {
604
604
  var k = 30 + u.f.length + Bt(u.extra);
605
605
  x.set(u.c, u.o + k), Vn(x, a, u, u.f, u.u, u.c.length, u.o, u.m), a += 16 + k + (u.m ? u.m.length : 0);
606
606
  }
607
- return yi(x, a, r.length, A, E), x;
607
+ return bi(x, a, r.length, A, E), x;
608
608
  }
609
- function bi(e, t) {
609
+ function Li(e, t) {
610
610
  for (var n = {}, r = e.length - 22; K(e, r) != 101010256; --r)
611
611
  (!r || e.length - r > 65558) && R(13);
612
612
  var a = J(e, r + 8);
@@ -618,12 +618,12 @@ function bi(e, t) {
618
618
  i = K(e, s) == 101075792, i && (a = K(e, s + 32), o = K(e, s + 48));
619
619
  }
620
620
  for (var l = 0; l < a; ++l) {
621
- var d = wi(e, o, i), c = d[0], u = d[1], p = d[2], m = d[3], f = d[4], h = d[5], w = gi(e, h);
622
- o = f, c ? c == 8 ? n[m] = ui(e.subarray(w, w + u), { out: new P(p) }) : R(14, "unknown compression type " + c) : n[m] = De(e, w, w + u);
621
+ var d = yi(e, o, i), c = d[0], u = d[1], p = d[2], m = d[3], f = d[4], h = d[5], w = vi(e, h);
622
+ o = f, c ? c == 8 ? n[m] = pi(e.subarray(w, w + u), { out: new P(p) }) : R(14, "unknown compression type " + c) : n[m] = De(e, w, w + u);
623
623
  }
624
624
  return n;
625
625
  }
626
- const ki = 512 * 1024 * 1024, Xn = 512 * 1024 * 1024;
626
+ const Ai = 512 * 1024 * 1024, Xn = 512 * 1024 * 1024;
627
627
  class sn {
628
628
  constructor() {
629
629
  this.chunks = [], this.length = 0;
@@ -750,7 +750,7 @@ class ln {
750
750
  const t = this.readU32();
751
751
  if (t === 0)
752
752
  return "";
753
- if (t > ki)
753
+ if (t > Ai)
754
754
  throw new Error("Binary string exceeds size limit");
755
755
  return on(this.readBytes(t));
756
756
  }
@@ -798,14 +798,14 @@ class ln {
798
798
  return new Uint8Array(r).set(n), new Uint32Array(r);
799
799
  }
800
800
  }
801
- const D = 4, Tt = "gzip", Li = 512 * 1024 * 1024, Ft = 256 * 1024 * 1024;
801
+ const D = 4, Tt = "gzip", Ci = 512 * 1024 * 1024, Ft = 256 * 1024 * 1024;
802
802
  let Ue = null;
803
- function Yd(e) {
803
+ function jd(e) {
804
804
  Ue = e;
805
805
  }
806
806
  function _e(e) {
807
807
  return {
808
- bytes: Ue ? Ue.gzipSync(e) : mi(e),
808
+ bytes: Ue ? Ue.gzipSync(e) : fi(e),
809
809
  compression: Tt
810
810
  };
811
811
  }
@@ -835,8 +835,8 @@ function Rr(e) {
835
835
  function cn(e) {
836
836
  if (e.byteLength > Ft)
837
837
  throw new Error("Compressed payload exceeds size limit");
838
- const t = pi(e);
839
- if (t.byteLength > Li)
838
+ const t = hi(e);
839
+ if (t.byteLength > Ci)
840
840
  throw new Error("Decompressed payload exceeds size limit");
841
841
  return t;
842
842
  }
@@ -848,13 +848,13 @@ function Hr(e) {
848
848
  return t.includes(";base85") || t.endsWith("base85") ? "base85" : "base64";
849
849
  }
850
850
  function Ne(e, t) {
851
- return t === "base85" ? Ai(e) : Mi(e);
851
+ return t === "base85" ? Ei(e) : Pi(e);
852
852
  }
853
853
  function lt(e, t) {
854
854
  const n = e.length > 0 && (e.charCodeAt(0) <= 32 || e.charCodeAt(e.length - 1) <= 32) ? e.trim() : e;
855
- return t === "base85" ? Ci(n) : Si(n);
855
+ return t === "base85" ? Mi(n) : Ii(n);
856
856
  }
857
- function Ai(e) {
857
+ function Ei(e) {
858
858
  const t = e.length;
859
859
  if (t === 0) return "";
860
860
  const n = (4 - t % 4) % 4, r = t + n, a = [];
@@ -870,7 +870,7 @@ function Ai(e) {
870
870
  const o = Math.ceil(t * 5 / 4);
871
871
  return a.slice(0, o).join("");
872
872
  }
873
- function Ci(e) {
873
+ function Mi(e) {
874
874
  const t = e.replace(/\s+/g, ""), n = t.length;
875
875
  if (n === 0) return new Uint8Array(0);
876
876
  const r = Math.floor(n * 4 / 5), a = (5 - n % 5) % 5, o = n + a, i = new Uint8Array(o / 5 * 4), s = We.length - 1;
@@ -878,14 +878,14 @@ function Ci(e) {
878
878
  for (let d = 0; d < o; d += 5) {
879
879
  let c = 0;
880
880
  for (let u = 0; u < 5; u++) {
881
- const p = d + u < n ? Ei(t.charCodeAt(d + u)) : s;
881
+ const p = d + u < n ? Si(t.charCodeAt(d + u)) : s;
882
882
  c = c * 85 + p;
883
883
  }
884
884
  i[l++] = c >>> 24 & 255, i[l++] = c >>> 16 & 255, i[l++] = c >>> 8 & 255, i[l++] = c & 255;
885
885
  }
886
886
  return i.subarray(0, r);
887
887
  }
888
- function Ei(e) {
888
+ function Si(e) {
889
889
  if (e < 0 || e >= Ut.length)
890
890
  throw new Error("Invalid base85 character");
891
891
  const t = Ut[e];
@@ -893,13 +893,13 @@ function Ei(e) {
893
893
  throw new Error("Invalid base85 character");
894
894
  return t;
895
895
  }
896
- function Mi(e) {
896
+ function Pi(e) {
897
897
  let t = "";
898
898
  for (let n = 0; n < e.length; n++)
899
899
  t += String.fromCharCode(e[n]);
900
900
  return btoa(t);
901
901
  }
902
- function Si(e) {
902
+ function Ii(e) {
903
903
  const t = atob(e), n = new Uint8Array(t.length);
904
904
  for (let r = 0; r < t.length; r++)
905
905
  n[r] = t.charCodeAt(r);
@@ -948,7 +948,7 @@ function Yr(e) {
948
948
  }
949
949
  return i;
950
950
  }
951
- const mn = 1329939265, Zr = 1, jr = 5e5, Pi = 1e5, Gr = 1, Kr = 2, Wr = 3, Jr = 4, qr = 5, Qr = 6, ea = 7;
951
+ const mn = 1329939265, Zr = 1, jr = 5e5, zi = 1e5, Gr = 1, Kr = 2, Wr = 3, Jr = 4, qr = 5, Qr = 6, ea = 7;
952
952
  function ta(e) {
953
953
  var t;
954
954
  switch (e.kind) {
@@ -970,7 +970,7 @@ function ta(e) {
970
970
  return e;
971
971
  }
972
972
  }
973
- function Ii(e, t) {
973
+ function Bi(e, t) {
974
974
  if (e.length === 0)
975
975
  return [];
976
976
  const n = [];
@@ -1000,7 +1000,7 @@ function $e(e) {
1000
1000
  t.writeString(o);
1001
1001
  t.writeU32(e.primitives.length);
1002
1002
  for (const o of e.primitives)
1003
- Ui(t, o, a(o.layer));
1003
+ Oi(t, o, a(o.layer));
1004
1004
  return t.toUint8Array();
1005
1005
  }
1006
1006
  function pn(e) {
@@ -1011,7 +1011,7 @@ function pn(e) {
1011
1011
  if (t.readU8(), t.readU8(), t.readU8(), r !== Zr)
1012
1012
  throw new Error(`Unsupported osnap catalog version: ${r}`);
1013
1013
  const a = t.readU32();
1014
- if (a > Pi)
1014
+ if (a > zi)
1015
1015
  throw new Error("Osnap layer count exceeds limit");
1016
1016
  const o = [];
1017
1017
  for (let l = 0; l < a; l++)
@@ -1021,22 +1021,22 @@ function pn(e) {
1021
1021
  throw new Error("Osnap primitive count exceeds limit");
1022
1022
  const s = [];
1023
1023
  for (let l = 0; l < i; l++)
1024
- s.push(_i(t, o));
1024
+ s.push(Ri(t, o));
1025
1025
  return { primitives: s };
1026
1026
  }
1027
- function zi(e) {
1027
+ function Ti(e) {
1028
1028
  const t = $e(e), n = _e(t).bytes;
1029
1029
  return { uncompressed: t, compressed: n };
1030
1030
  }
1031
- async function Bi(e) {
1031
+ async function Fi(e) {
1032
1032
  const t = $e(e), n = (await Or(t)).bytes;
1033
1033
  return { uncompressed: t, compressed: n };
1034
1034
  }
1035
- function Ti(e) {
1035
+ function Ui(e) {
1036
1036
  return pn(cn(e));
1037
1037
  }
1038
- function Fi(e) {
1039
- return Rr(e) ? Ti(e) : pn(e);
1038
+ function _i(e) {
1039
+ return Rr(e) ? Ui(e) : pn(e);
1040
1040
  }
1041
1041
  function Lt(e, t) {
1042
1042
  e.writeU8(t < 0 ? 0 : 1);
@@ -1058,7 +1058,7 @@ function Pe(e) {
1058
1058
  n.push(e.readF64());
1059
1059
  return n;
1060
1060
  }
1061
- function Ui(e, t, n) {
1061
+ function Oi(e, t, n) {
1062
1062
  switch (t.kind) {
1063
1063
  case "line":
1064
1064
  e.writeU8(Gr), e.writeU32(n), e.writeF64(t.x0), e.writeF64(t.y0), e.writeF64(t.x1), e.writeF64(t.y1);
@@ -1087,7 +1087,7 @@ function Ui(e, t, n) {
1087
1087
  }
1088
1088
  }
1089
1089
  }
1090
- function _i(e, t) {
1090
+ function Ri(e, t) {
1091
1091
  const n = e.readU8(), r = e.readU32(), a = t[r];
1092
1092
  if (a == null)
1093
1093
  throw new Error(`Invalid osnap layer index: ${r}`);
@@ -1170,16 +1170,16 @@ function _i(e, t) {
1170
1170
  }
1171
1171
  }
1172
1172
  const na = 1480934209;
1173
- function Oi(e) {
1173
+ function Hi(e) {
1174
1174
  if (e.version !== D)
1175
1175
  throw new Error(`Unsupported snapshot version: ${e.version}`);
1176
1176
  const t = new sn();
1177
- t.writeU32(na), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeJson(Hi(e)), t.writeJson(e.layers), t.writeString(e.activeLayoutBtrId), t.writeU32(e.layouts.length);
1177
+ t.writeU32(na), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeJson(Ni(e)), t.writeJson(e.layers), t.writeString(e.activeLayoutBtrId), t.writeU32(e.layouts.length);
1178
1178
  for (const n of e.layouts)
1179
- Ni(t, n);
1179
+ Vi(t, n);
1180
1180
  return t.toUint8Array();
1181
1181
  }
1182
- function Ri(e) {
1182
+ function Di(e) {
1183
1183
  const t = new ln(e);
1184
1184
  if (t.readU32() !== na)
1185
1185
  throw new Error("Invalid snapshot magic");
@@ -1188,8 +1188,8 @@ function Ri(e) {
1188
1188
  throw new Error(`Unsupported snapshot version: ${r}`);
1189
1189
  const a = t.readJson(), o = t.readJson(), i = t.readString(), s = t.readU32(), l = [];
1190
1190
  for (let d = 0; d < s; d++)
1191
- l.push(Vi(t));
1192
- return Di(l, a.savedViews), {
1191
+ l.push(Yi(t));
1192
+ return $i(l, a.savedViews), {
1193
1193
  version: D,
1194
1194
  meta: a,
1195
1195
  layers: o,
@@ -1197,7 +1197,7 @@ function Ri(e) {
1197
1197
  activeLayoutBtrId: i
1198
1198
  };
1199
1199
  }
1200
- function Hi(e) {
1200
+ function Ni(e) {
1201
1201
  const t = {
1202
1202
  ...e.meta.savedViews ?? {}
1203
1203
  };
@@ -1211,7 +1211,7 @@ function Hi(e) {
1211
1211
  }
1212
1212
  return { ...e.meta, savedViews: t };
1213
1213
  }
1214
- function Di(e, t) {
1214
+ function $i(e, t) {
1215
1215
  if (t)
1216
1216
  for (const n of e) {
1217
1217
  if (n.savedView) continue;
@@ -1219,15 +1219,15 @@ function Di(e, t) {
1219
1219
  r && (n.savedView = r);
1220
1220
  }
1221
1221
  }
1222
- function Ni(e, t) {
1223
- e.writeString(t.btrId), e.writeString(t.name), e.writeU8(t.isModelSpace ? 1 : 0), $i(e, t.osnap), e.writeJson(t.viewports ?? null), e.writeU32(t.lineBatches.length);
1222
+ function Vi(e, t) {
1223
+ e.writeString(t.btrId), e.writeString(t.name), e.writeU8(t.isModelSpace ? 1 : 0), Xi(e, t.osnap), e.writeJson(t.viewports ?? null), e.writeU32(t.lineBatches.length);
1224
1224
  for (const n of t.lineBatches)
1225
1225
  $r(e, n);
1226
1226
  e.writeU32(t.meshBatches.length);
1227
1227
  for (const n of t.meshBatches)
1228
1228
  Xr(e, n);
1229
1229
  }
1230
- function $i(e, t) {
1230
+ function Xi(e, t) {
1231
1231
  if (!t || t.primitives.length === 0) {
1232
1232
  e.writeU32(0);
1233
1233
  return;
@@ -1235,8 +1235,8 @@ function $i(e, t) {
1235
1235
  const n = $e(t);
1236
1236
  e.writeU32(n.length), e.writeBytes(n);
1237
1237
  }
1238
- function Vi(e) {
1239
- const t = e.readString(), n = e.readString(), r = e.readU8() !== 0, a = Yi(e), o = Xi(e.readJson()), i = e.readU32(), s = [];
1238
+ function Yi(e) {
1239
+ const t = e.readString(), n = e.readString(), r = e.readU8() !== 0, a = ji(e), o = Zi(e.readJson()), i = e.readU32(), s = [];
1240
1240
  for (let c = 0; c < i; c++)
1241
1241
  s.push(Vr(e));
1242
1242
  const l = e.readU32(), d = [];
@@ -1252,7 +1252,7 @@ function Vi(e) {
1252
1252
  viewports: o
1253
1253
  };
1254
1254
  }
1255
- function Xi(e) {
1255
+ function Zi(e) {
1256
1256
  if (e != null) {
1257
1257
  if (Array.isArray(e))
1258
1258
  return e;
@@ -1260,45 +1260,45 @@ function Xi(e) {
1260
1260
  return e.viewports ?? void 0;
1261
1261
  }
1262
1262
  }
1263
- function Yi(e) {
1263
+ function ji(e) {
1264
1264
  const t = e.readU32();
1265
1265
  if (t === 0)
1266
1266
  return;
1267
1267
  const n = e.readBytes(t);
1268
- if (Zi(n))
1268
+ if (Gi(n))
1269
1269
  return pn(n);
1270
1270
  const r = on(n);
1271
1271
  if (!(r.length === 0 || r === "null"))
1272
1272
  return JSON.parse(r);
1273
1273
  }
1274
- function Zi(e) {
1274
+ function Gi(e) {
1275
1275
  return e.length < 4 ? !1 : (e[0] | e[1] << 8 | e[2] << 16 | e[3] << 24) >>> 0 === mn;
1276
1276
  }
1277
- const ji = "application/vnd.mlightcad.acex-snapshot+binary";
1278
- function Gi(e) {
1277
+ const Ki = "application/vnd.mlightcad.acex-snapshot+binary";
1278
+ function Wi(e) {
1279
1279
  if (e.version !== D)
1280
1280
  throw new Error(`Unsupported snapshot version: ${e.version}`);
1281
- const t = Oi(e), n = _e(t);
1281
+ const t = Hi(e), n = _e(t);
1282
1282
  return {
1283
1283
  payload: Ne(n.bytes, "base85"),
1284
1284
  compression: n.compression
1285
1285
  };
1286
1286
  }
1287
- function Zd(e, t = "base85") {
1288
- return Ki(
1289
- Wi(e, t)
1287
+ function Gd(e, t = "base85") {
1288
+ return Ji(
1289
+ qi(e, t)
1290
1290
  );
1291
1291
  }
1292
- function Ki(e) {
1292
+ function Ji(e) {
1293
1293
  const t = cn(e);
1294
- return Ri(t);
1294
+ return Di(t);
1295
1295
  }
1296
- function Wi(e, t = "base85") {
1296
+ function qi(e, t = "base85") {
1297
1297
  const n = t === "base64" || t === "base85" ? t : Hr(t);
1298
1298
  return lt(e, n);
1299
1299
  }
1300
- function Ji() {
1301
- return ji;
1300
+ function Qi() {
1301
+ return Ki;
1302
1302
  }
1303
1303
  function ne(e, t, n) {
1304
1304
  if (n <= 0)
@@ -1310,7 +1310,7 @@ function ne(e, t, n) {
1310
1310
  r[a] = e[t + a];
1311
1311
  return r;
1312
1312
  }
1313
- function qi(e, t, n) {
1313
+ function es(e, t, n) {
1314
1314
  if (n <= 0)
1315
1315
  return new Uint32Array(0);
1316
1316
  const r = new Uint32Array(n);
@@ -1336,7 +1336,7 @@ function Je(e, t) {
1336
1336
  return e + t;
1337
1337
  }
1338
1338
  const he = { x: 0, y: 0, z: 0 };
1339
- function Qi(e) {
1339
+ function ts(e) {
1340
1340
  e.updateMatrixWorld(!0);
1341
1341
  const t = e.matrixWorld.elements;
1342
1342
  return he.x = t[12], he.y = t[13], he.z = t[14], [he.x, he.y, he.z];
@@ -1459,31 +1459,37 @@ function hn(e) {
1459
1459
  offset: d
1460
1460
  };
1461
1461
  }
1462
- function es(e, t, n = {}) {
1462
+ function ns(e, t, n = {}) {
1463
1463
  e.updateMatrixWorld(!0);
1464
1464
  const r = fn(t, e.matrixWorld);
1465
1465
  return hn(r);
1466
1466
  }
1467
- function ts(e) {
1467
+ let aa;
1468
+ function Kd(e) {
1469
+ aa = e;
1470
+ }
1471
+ function rs(e) {
1468
1472
  const t = e.image;
1469
- if (!t || typeof document > "u")
1473
+ if (!t)
1470
1474
  return;
1475
+ if (typeof document > "u")
1476
+ return as(t);
1471
1477
  const n = document.createElement("canvas"), r = n.getContext("2d");
1472
1478
  if (!r)
1473
1479
  return;
1474
1480
  try {
1475
1481
  if (t instanceof ImageData)
1476
1482
  n.width = t.width, n.height = t.height, r.putImageData(t, 0, 0);
1477
- else if (rs(t)) {
1483
+ else if (oa(t)) {
1478
1484
  n.width = t.width, n.height = t.height;
1479
- const l = os(t.data, t.width * t.height), d = new ImageData(
1485
+ const l = ss(t.data, t.width * t.height), d = new ImageData(
1480
1486
  new Uint8ClampedArray(l),
1481
1487
  t.width,
1482
1488
  t.height
1483
1489
  );
1484
1490
  r.putImageData(d, 0, 0);
1485
- } else if (ns(t)) {
1486
- const l = as(t);
1491
+ } else if (os(t)) {
1492
+ const l = is(t);
1487
1493
  if (!l)
1488
1494
  return;
1489
1495
  n.width = l.width, n.height = l.height, r.drawImage(t, 0, 0);
@@ -1500,21 +1506,31 @@ function ts(e) {
1500
1506
  s[l] = i.charCodeAt(l);
1501
1507
  return { mimeType: "image/png", bytes: s };
1502
1508
  }
1503
- function ns(e) {
1509
+ function as(e) {
1510
+ const t = aa;
1511
+ if (!(!t || !oa(e)))
1512
+ try {
1513
+ const n = t(e);
1514
+ return n != null && n.byteLength ? { mimeType: "image/png", bytes: n } : void 0;
1515
+ } catch {
1516
+ return;
1517
+ }
1518
+ }
1519
+ function os(e) {
1504
1520
  return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas || typeof ImageBitmap < "u" && e instanceof ImageBitmap || typeof HTMLVideoElement < "u" && e instanceof HTMLVideoElement;
1505
1521
  }
1506
- function rs(e) {
1522
+ function oa(e) {
1507
1523
  if (!e || typeof e != "object")
1508
1524
  return !1;
1509
1525
  const t = e;
1510
1526
  return t.data != null && typeof t.width == "number" && typeof t.height == "number" && t.width >= 1 && t.height >= 1;
1511
1527
  }
1512
- function as(e) {
1528
+ function is(e) {
1513
1529
  let t = Number(e.width), n = Number(e.height);
1514
1530
  if (e instanceof HTMLImageElement ? (t = e.naturalWidth || e.width, n = e.naturalHeight || e.height) : typeof HTMLVideoElement < "u" && e instanceof HTMLVideoElement && (t = e.videoWidth || e.width, n = e.videoHeight || e.height), !(!Number.isFinite(t) || !Number.isFinite(n) || t < 1 || n < 1))
1515
1531
  return { width: t, height: n };
1516
1532
  }
1517
- function os(e, t) {
1533
+ function ss(e, t) {
1518
1534
  const n = t * 4;
1519
1535
  if (e instanceof Uint8ClampedArray && e.length >= n)
1520
1536
  return e.length === n ? e : e.subarray(0, n);
@@ -1528,7 +1544,7 @@ function os(e, t) {
1528
1544
  }
1529
1545
  return r;
1530
1546
  }
1531
- function is(e, t) {
1547
+ function ls(e, t) {
1532
1548
  const n = e.getAttribute("uv");
1533
1549
  if (!n || n.count === 0 || n.itemSize < 2)
1534
1550
  return;
@@ -1539,11 +1555,11 @@ function is(e, t) {
1539
1555
  if (!(n.count * n.itemSize < a))
1540
1556
  return ne(o, 0, a);
1541
1557
  }
1542
- function aa(e) {
1558
+ function ia(e) {
1543
1559
  const t = e;
1544
1560
  return t.map ? !1 : t.transparent === !0 && typeof t.opacity == "number" && t.opacity < 0.01;
1545
1561
  }
1546
- function ss(e, t = {}) {
1562
+ function cs(e, t = {}) {
1547
1563
  const n = new Blob([e.bytes], {
1548
1564
  type: e.mimeType || "image/png"
1549
1565
  }), r = URL.createObjectURL(n), a = new L.TextureLoader().load(
@@ -1560,16 +1576,16 @@ function ss(e, t = {}) {
1560
1576
  );
1561
1577
  return a.colorSpace = L.SRGBColorSpace, a.needsUpdate = !0, a;
1562
1578
  }
1563
- function ls(e) {
1579
+ function ds(e) {
1564
1580
  e && (e.bytes = new Uint8Array(0));
1565
1581
  }
1566
- const oa = { value: 1 };
1582
+ const sa = { value: 1 };
1567
1583
  function gn(e) {
1568
1584
  const t = e;
1569
1585
  if (t.isShaderMaterial === !0 || e.type === "ShaderMaterial")
1570
1586
  return t;
1571
1587
  }
1572
- function cs(e) {
1588
+ function us(e) {
1573
1589
  var o;
1574
1590
  const t = gn(e);
1575
1591
  if (!t)
@@ -1585,7 +1601,7 @@ function cs(e) {
1585
1601
  viewportScale: Number(((o = t.uniforms.u_viewportScale) == null ? void 0 : o.value) ?? 1)
1586
1602
  };
1587
1603
  }
1588
- function ds(e) {
1604
+ function ms(e) {
1589
1605
  var a;
1590
1606
  const t = gn(e);
1591
1607
  if (!t)
@@ -1597,10 +1613,10 @@ function ds(e) {
1597
1613
  if (!(!Array.isArray(r) || r.length === 0))
1598
1614
  return {
1599
1615
  patternAngle: Number(((a = t.uniforms.u_patternAngle) == null ? void 0 : a.value) ?? 0),
1600
- patternLines: r.map(ms)
1616
+ patternLines: r.map(fs)
1601
1617
  };
1602
1618
  }
1603
- function us(e) {
1619
+ function ps(e) {
1604
1620
  var o, i, s, l, d;
1605
1621
  const t = gn(e);
1606
1622
  if (!t || t.uniforms.u_patternLines)
@@ -1615,7 +1631,7 @@ function us(e) {
1615
1631
  gradientType: Number(a.value)
1616
1632
  };
1617
1633
  }
1618
- function ms(e) {
1634
+ function fs(e) {
1619
1635
  return {
1620
1636
  angle: e.angle,
1621
1637
  base: [e.base.x, e.base.y],
@@ -1624,7 +1640,7 @@ function ms(e) {
1624
1640
  patternLength: e.patternLength
1625
1641
  };
1626
1642
  }
1627
- function ps(e) {
1643
+ function hs(e) {
1628
1644
  return {
1629
1645
  angle: e.angle,
1630
1646
  base: new L.Vector2(e.base[0], e.base[1]),
@@ -1645,7 +1661,7 @@ function wn(e) {
1645
1661
  }
1646
1662
  return n;
1647
1663
  }
1648
- function jd(e) {
1664
+ function Wd(e) {
1649
1665
  const t = e.getAttribute("lineDistance");
1650
1666
  if (!t || t.count === 0)
1651
1667
  return;
@@ -1659,7 +1675,7 @@ function jd(e) {
1659
1675
  const l = t.array;
1660
1676
  return ne(l, o, s);
1661
1677
  }
1662
- function fs(e, t) {
1678
+ function gs(e, t) {
1663
1679
  const n = e.getAttribute(t);
1664
1680
  if (!n || n.count === 0)
1665
1681
  return;
@@ -1674,7 +1690,7 @@ function fs(e, t) {
1674
1690
  const c = n.array;
1675
1691
  return ne(c, s * r, d * r);
1676
1692
  }
1677
- function Gd(e, t) {
1693
+ function Jd(e, t) {
1678
1694
  if (e.lineWidth != null && e.lineWidth > 0) {
1679
1695
  const n = new kr({
1680
1696
  color: e.color,
@@ -1682,15 +1698,15 @@ function Gd(e, t) {
1682
1698
  });
1683
1699
  return t && n.resolution.copy(t), n;
1684
1700
  }
1685
- return e.linePattern ? so.createLineShaderMaterialFromScaledPattern(
1701
+ return e.linePattern ? co.createLineShaderMaterialFromScaledPattern(
1686
1702
  e.linePattern.pattern,
1687
1703
  e.linePattern.patternLength,
1688
1704
  e.color,
1689
1705
  e.linePattern.viewportScale,
1690
- oa
1706
+ sa
1691
1707
  ) : new L.LineBasicMaterial({ color: e.color });
1692
1708
  }
1693
- function Kd(e) {
1709
+ function qd(e) {
1694
1710
  return new L.PointsMaterial({
1695
1711
  color: e.color,
1696
1712
  size: 1,
@@ -1729,7 +1745,7 @@ function Zn(e, t) {
1729
1745
  })
1730
1746
  };
1731
1747
  }
1732
- function hs(e, t) {
1748
+ function ws(e, t) {
1733
1749
  return {
1734
1750
  patternAngle: e.patternAngle,
1735
1751
  patternLines: e.patternLines.map((n) => {
@@ -1737,7 +1753,7 @@ function hs(e, t) {
1737
1753
  n.base[0] - t[0],
1738
1754
  n.base[1] - t[1]
1739
1755
  ), a = new L.Vector2(n.offset[0], n.offset[1]);
1740
- return uo(
1756
+ return po(
1741
1757
  r,
1742
1758
  a,
1743
1759
  n.angle,
@@ -1753,16 +1769,16 @@ function hs(e, t) {
1753
1769
  })
1754
1770
  };
1755
1771
  }
1756
- function Wd(e, t = {}) {
1772
+ function Qd(e, t = {}) {
1757
1773
  if (e.hatchPattern && e.hatchPattern.patternLines.length > 0)
1758
1774
  try {
1759
1775
  const n = e.hatchPattern.patternLines.map(
1760
- ps
1776
+ hs
1761
1777
  );
1762
- return lo(
1778
+ return uo(
1763
1779
  n,
1764
1780
  e.hatchPattern.patternAngle,
1765
- oa,
1781
+ sa,
1766
1782
  new L.Color(e.color),
1767
1783
  0,
1768
1784
  e.side ?? L.FrontSide
@@ -1771,7 +1787,7 @@ function Wd(e, t = {}) {
1771
1787
  }
1772
1788
  if (e.gradientFill && e.gradientPositions && e.gradientPositions.length >= 2)
1773
1789
  try {
1774
- return co(
1790
+ return mo(
1775
1791
  e.gradientFill,
1776
1792
  e.side ?? L.FrontSide
1777
1793
  );
@@ -1785,10 +1801,10 @@ function Wd(e, t = {}) {
1785
1801
  opacity: 0,
1786
1802
  depthWrite: !1
1787
1803
  });
1788
- return n.map = ss(e.texture, {
1804
+ return n.map = cs(e.texture, {
1789
1805
  onLoad: () => {
1790
1806
  var r;
1791
- ls(e.texture), n.opacity = 1, n.depthWrite = !0, n.needsUpdate = !0, (r = t.onTextureLoad) == null || r.call(t);
1807
+ ds(e.texture), n.opacity = 1, n.depthWrite = !0, n.needsUpdate = !0, (r = t.onTextureLoad) == null || r.call(t);
1792
1808
  }
1793
1809
  }), n;
1794
1810
  }
@@ -1814,7 +1830,7 @@ function qe(e) {
1814
1830
  n.count,
1815
1831
  o.count,
1816
1832
  u
1817
- ), m = qi(c, u, p);
1833
+ ), m = es(c, u, p);
1818
1834
  return ra(d, m);
1819
1835
  }
1820
1836
  const i = Gt(n.start, t.count), s = Kt(
@@ -1829,9 +1845,9 @@ function qe(e) {
1829
1845
  ) };
1830
1846
  }
1831
1847
  function Qe(e) {
1832
- return go(e.flags) && wo(e.flags);
1848
+ return vo(e.flags) && yo(e.flags);
1833
1849
  }
1834
- function ia(e) {
1850
+ function la(e) {
1835
1851
  const { count: t } = e.mappingStats;
1836
1852
  for (let n = 0; n < t; n++) {
1837
1853
  let r;
@@ -1920,7 +1936,7 @@ function jn(e, t, n) {
1920
1936
  t.getZ(n)
1921
1937
  );
1922
1938
  }
1923
- function gs(e, t) {
1939
+ function vs(e, t) {
1924
1940
  const n = t.getAttribute("instanceStart"), r = t.getAttribute("instanceEnd");
1925
1941
  if (!n || !r)
1926
1942
  return { positions: new Float32Array(0) };
@@ -1940,18 +1956,18 @@ function gs(e, t) {
1940
1956
  }
1941
1957
  return { positions: new Float32Array(o) };
1942
1958
  }
1943
- function ws(e, t) {
1959
+ function ys(e, t) {
1944
1960
  const r = e.instanceCount;
1945
1961
  if (Number.isFinite(r) && r >= 0)
1946
1962
  return Math.min(Math.floor(r), t);
1947
1963
  const a = e.drawRange, o = Gt(a.start, t);
1948
1964
  return Kt(a.count, t, o);
1949
1965
  }
1950
- function vs(e) {
1966
+ function xs(e) {
1951
1967
  const t = e.getAttribute("instanceStart"), n = e.getAttribute("instanceEnd");
1952
1968
  if (!t || !n || t.count === 0)
1953
1969
  return { positions: new Float32Array(0) };
1954
- const r = ws(
1970
+ const r = ys(
1955
1971
  e,
1956
1972
  t.count
1957
1973
  );
@@ -1980,7 +1996,7 @@ function je(e, t) {
1980
1996
  }
1981
1997
  return !0;
1982
1998
  }
1983
- function sa(e) {
1999
+ function ca(e) {
1984
2000
  if (e instanceof kr)
1985
2001
  return e.linewidth;
1986
2002
  }
@@ -1995,7 +2011,7 @@ function de(e) {
1995
2011
  var d;
1996
2012
  const t = br(e), n = t.layer ?? "0", r = e;
1997
2013
  let a = r.color != null ? r.color.getHex() : t.color ?? 16777215;
1998
- const o = cs(e), i = ds(e), s = us(e);
2014
+ const o = us(e), i = ms(e), s = ps(e);
1999
2015
  if (e instanceof L.ShaderMaterial || e.type === "ShaderMaterial") {
2000
2016
  const u = (d = e.uniforms.u_color) == null ? void 0 : d.value;
2001
2017
  u != null && u.getHex ? a = u.getHex() : s && (a = s.startColor);
@@ -2009,15 +2025,15 @@ function de(e) {
2009
2025
  side: !!i || !!s ? e.side : void 0
2010
2026
  };
2011
2027
  }
2012
- function ys(e, t) {
2028
+ function bs(e, t) {
2013
2029
  const r = br(t).drawOrder ?? e.renderOrder;
2014
2030
  return r === 0 ? void 0 : r;
2015
2031
  }
2016
2032
  function xe(e, t, n) {
2017
- const r = ys(t, n);
2033
+ const r = bs(t, n);
2018
2034
  r != null && (e.renderOrder = r);
2019
2035
  }
2020
- function xs(e, t) {
2036
+ function ks(e, t) {
2021
2037
  if (!t)
2022
2038
  return;
2023
2039
  const n = e.userData.bakedWorldMatrix;
@@ -2027,16 +2043,16 @@ function xs(e, t) {
2027
2043
  ));
2028
2044
  }
2029
2045
  function ct(e) {
2030
- return Qi(e);
2046
+ return ts(e);
2031
2047
  }
2032
2048
  function Ct(e, t, n = {}) {
2033
- const r = es(e, t, n);
2049
+ const r = ns(e, t, n);
2034
2050
  return {
2035
2051
  ...r.slice,
2036
2052
  offset: r.offset
2037
2053
  };
2038
2054
  }
2039
- function bs(e) {
2055
+ function Ls(e) {
2040
2056
  if (e.indices && e.indices.length >= 3)
2041
2057
  return e;
2042
2058
  const t = e.positions.length / 3 | 0;
@@ -2048,11 +2064,11 @@ function bs(e) {
2048
2064
  return { ...e, indices: n };
2049
2065
  }
2050
2066
  function Oe(e, t, n, r, a, o = !1) {
2051
- o && (r = bs(r));
2052
- const i = de(t), s = xs(
2067
+ o && (r = Ls(r));
2068
+ const i = de(t), s = ks(
2053
2069
  n,
2054
2070
  i.hatchPattern
2055
- ), l = s ? hs(s, a) : void 0, d = i.gradientFill ? fs(e, "gradientPosition") : void 0, c = {
2071
+ ), l = s ? ws(s, a) : void 0, d = i.gradientFill ? gs(e, "gradientPosition") : void 0, c = {
2056
2072
  layer: i.layer,
2057
2073
  color: i.color,
2058
2074
  offset: a,
@@ -2063,27 +2079,27 @@ function Oe(e, t, n, r, a, o = !1) {
2063
2079
  ...r
2064
2080
  }, u = t;
2065
2081
  if (u.map) {
2066
- const p = ts(u.map), m = is(e, r.positions);
2082
+ const p = rs(u.map), m = ls(e, r.positions);
2067
2083
  if (!p || !m)
2068
2084
  return;
2069
2085
  c.texture = p, c.uvs = m, c.color = 16777215, c.side = L.DoubleSide;
2070
2086
  }
2071
2087
  return xe(c, n, t), c;
2072
2088
  }
2073
- function ks(e) {
2074
- const t = gs(e, e.geometry);
2089
+ function As(e) {
2090
+ const t = vs(e, e.geometry);
2075
2091
  if (t.positions.length === 0)
2076
2092
  return;
2077
- const { color: n, layer: r } = de(e.material), a = sa(e.material), o = {
2093
+ const { color: n, layer: r } = de(e.material), a = ca(e.material), o = {
2078
2094
  layer: r,
2079
2095
  color: n,
2080
2096
  offset: ct(e),
2081
2097
  lineWidth: a,
2082
2098
  ...t
2083
2099
  };
2084
- return ia(e) && (o.excludeFromOsnap = !0), xe(o, e, e.material), o;
2100
+ return la(e) && (o.excludeFromOsnap = !0), xe(o, e, e.material), o;
2085
2101
  }
2086
- function Ls(e) {
2102
+ function Cs(e) {
2087
2103
  const t = vn(e, e.geometry);
2088
2104
  if (t.positions.length === 0)
2089
2105
  return;
@@ -2097,9 +2113,9 @@ function Ls(e) {
2097
2113
  lineDistances: o,
2098
2114
  ...t
2099
2115
  };
2100
- return ia(e) && (i.excludeFromOsnap = !0), xe(i, e, e.material), i;
2116
+ return la(e) && (i.excludeFromOsnap = !0), xe(i, e, e.material), i;
2101
2117
  }
2102
- function As(e) {
2118
+ function Es(e) {
2103
2119
  const t = vn(e, e.geometry);
2104
2120
  if (t.positions.length !== 0)
2105
2121
  return Oe(
@@ -2111,7 +2127,7 @@ function As(e) {
2111
2127
  !0
2112
2128
  );
2113
2129
  }
2114
- function Cs(e) {
2130
+ function Ms(e) {
2115
2131
  const t = vn(e, e.geometry);
2116
2132
  if (t.positions.length === 0)
2117
2133
  return;
@@ -2130,11 +2146,11 @@ function Cs(e) {
2130
2146
  }
2131
2147
  const ie = /* @__PURE__ */ new L.Matrix4(), et = /* @__PURE__ */ new L.Matrix4(), Ie = /* @__PURE__ */ new L.Object3D();
2132
2148
  Ie.matrixAutoUpdate = !1;
2133
- function Es(e) {
2149
+ function Ss(e) {
2134
2150
  const t = e;
2135
2151
  return t.isInstancedMesh === !0 && t.instanceMatrix != null && typeof t.count == "number" && t.geometry != null;
2136
2152
  }
2137
- function Ms(e) {
2153
+ function Ps(e) {
2138
2154
  return e.renderOrder < 1e4 || e.isInstancedMesh === !0 ? !1 : xr(e).sharesTemplateGeometry === !0;
2139
2155
  }
2140
2156
  function Jt(e) {
@@ -2144,7 +2160,7 @@ function Jt(e) {
2144
2160
  const n = Math.hypot(t[0], t[1], t[2]), r = Math.hypot(t[4], t[5], t[6]), a = Math.hypot(t[8], t[9], t[10]);
2145
2161
  return n + r + a >= 1e-8;
2146
2162
  }
2147
- function la(e, t) {
2163
+ function da(e, t) {
2148
2164
  var p;
2149
2165
  const n = ye(
2150
2166
  qe(e.geometry),
@@ -2179,18 +2195,18 @@ function la(e, t) {
2179
2195
  if (u.slice.positions.length !== 0)
2180
2196
  return { slice: u.slice, offset: u.offset };
2181
2197
  }
2182
- function Ss(e) {
2198
+ function Is(e) {
2183
2199
  const t = de(e), n = e;
2184
2200
  return !!(t.hatchPattern || t.gradientFill || n.map);
2185
2201
  }
2186
- function Ps(e, t) {
2202
+ function zs(e, t) {
2187
2203
  e.updateMatrixWorld(!0);
2188
2204
  const n = e.instanceMatrix.array;
2189
2205
  for (let r = 0; r < e.count; r++)
2190
2206
  ie.fromArray(n, r * 16), Jt(ie) && (et.multiplyMatrices(e.matrixWorld, ie), t(et));
2191
2207
  }
2192
- function Is(e, t) {
2193
- const n = la(e, 2);
2208
+ function Bs(e, t) {
2209
+ const n = da(e, 2);
2194
2210
  if (!n) return;
2195
2211
  const r = Be(e), { color: a, layer: o, linePattern: i } = de(r), s = i ? wn(n.slice.positions) : void 0, l = {
2196
2212
  layer: o,
@@ -2204,14 +2220,14 @@ function Is(e, t) {
2204
2220
  }
2205
2221
  function Gn(e, t, n) {
2206
2222
  const r = Be(e);
2207
- if (!n && aa(r)) return;
2208
- if (!n && Ss(r)) {
2223
+ if (!n && ia(r)) return;
2224
+ if (!n && Is(r)) {
2209
2225
  const i = ye(
2210
2226
  qe(e.geometry),
2211
2227
  3
2212
2228
  );
2213
2229
  if (i.positions.length === 0) return;
2214
- Ps(e, (s) => {
2230
+ zs(e, (s) => {
2215
2231
  const l = ye(
2216
2232
  fn(i, s),
2217
2233
  3
@@ -2231,7 +2247,7 @@ function Gn(e, t, n) {
2231
2247
  });
2232
2248
  return;
2233
2249
  }
2234
- const a = la(e, n ? 1 : 3);
2250
+ const a = da(e, n ? 1 : 3);
2235
2251
  if (!a) return;
2236
2252
  const o = Oe(
2237
2253
  e.geometry,
@@ -2245,7 +2261,7 @@ function Gn(e, t, n) {
2245
2261
  }
2246
2262
  function Ge(e) {
2247
2263
  const t = e;
2248
- return e instanceof yo || t.isLineSegments2 === !0 || e.type === "LineSegments2";
2264
+ return e instanceof bo || t.isLineSegments2 === !0 || e.type === "LineSegments2";
2249
2265
  }
2250
2266
  function Kn(e) {
2251
2267
  const t = e;
@@ -2255,44 +2271,44 @@ function Wn(e) {
2255
2271
  const t = e;
2256
2272
  return e instanceof L.Mesh || t.isMesh === !0 || t.isInstancedMesh === !0 || e.type === "Mesh";
2257
2273
  }
2258
- function zs(e) {
2274
+ function Ts(e) {
2259
2275
  const t = [], n = [];
2260
2276
  return e.traverse((r) => {
2261
- if (!(mo(r) || po(r) || Ms(r))) {
2262
- if (Es(r)) {
2277
+ if (!(fo(r) || ho(r) || Ps(r))) {
2278
+ if (Ss(r)) {
2263
2279
  if (!je(r, e)) return;
2264
- r.isPoints === !0 ? Gn(r, n, !0) : Kn(r) && !Ge(r) ? Is(r, t) : Wn(r) && !Ge(r) && Gn(r, n, !1);
2280
+ r.isPoints === !0 ? Gn(r, n, !0) : Kn(r) && !Ge(r) ? Bs(r, t) : Wn(r) && !Ge(r) && Gn(r, n, !1);
2265
2281
  return;
2266
2282
  }
2267
2283
  if (r instanceof On) {
2268
- const a = Ls(r);
2284
+ const a = Cs(r);
2269
2285
  a && t.push(a);
2270
2286
  return;
2271
2287
  }
2272
- if (r instanceof fo) {
2273
- const a = ks(r);
2288
+ if (r instanceof go) {
2289
+ const a = As(r);
2274
2290
  a && t.push(a);
2275
2291
  return;
2276
2292
  }
2277
2293
  if (r instanceof Rn) {
2278
- const a = As(r);
2294
+ const a = Es(r);
2279
2295
  a && n.push(a);
2280
2296
  return;
2281
2297
  }
2282
- if (r instanceof ho) {
2283
- const a = Cs(r);
2298
+ if (r instanceof wo) {
2299
+ const a = Ms(r);
2284
2300
  a && n.push(a);
2285
2301
  return;
2286
2302
  }
2287
2303
  if (Ge(r)) {
2288
2304
  if (!je(r, e)) return;
2289
- const a = vs(r.geometry);
2305
+ const a = xs(r.geometry);
2290
2306
  if (a.positions.length === 0) return;
2291
2307
  const o = Be(r), { color: i, layer: s } = de(o), { offset: l, ...d } = Ct(r, a), c = {
2292
2308
  layer: s,
2293
2309
  color: i,
2294
2310
  offset: l,
2295
- lineWidth: sa(o),
2311
+ lineWidth: ca(o),
2296
2312
  ...d
2297
2313
  };
2298
2314
  Wt(r) && (c.excludeFromOsnap = !0), xe(c, r, o), t.push(c);
@@ -2315,7 +2331,7 @@ function zs(e) {
2315
2331
  } else if (Wn(r) && !Ge(r) && !(r instanceof Rn)) {
2316
2332
  if (!je(r, e)) return;
2317
2333
  const a = Be(r);
2318
- if (aa(a)) return;
2334
+ if (ia(a)) return;
2319
2335
  const o = ye(
2320
2336
  qe(r.geometry),
2321
2337
  3
@@ -2340,12 +2356,12 @@ const Jn = {
2340
2356
  hotColorCss: "#ff0000"
2341
2357
  };
2342
2358
  function qn(e) {
2343
- const t = new bo(ko.ByACI, e);
2359
+ const t = new Lo(Ao.ByACI, e);
2344
2360
  return t.cssColor ?? `rgb(${t.red}, ${t.green}, ${t.blue})`;
2345
2361
  }
2346
- function Bs(e) {
2362
+ function Fs(e) {
2347
2363
  try {
2348
- const t = xo.instance(), n = t.getVar(
2364
+ const t = ko.instance(), n = t.getVar(
2349
2365
  vt.GRIPSIZE,
2350
2366
  e
2351
2367
  ), r = t.getVar(
@@ -2364,8 +2380,8 @@ function Bs(e) {
2364
2380
  return Jn;
2365
2381
  }
2366
2382
  }
2367
- function ca(e, t) {
2368
- const n = e.extmin, r = e.extmax, a = Bs(e);
2383
+ function ua(e, t) {
2384
+ const n = e.extmin, r = e.extmax, a = Fs(e);
2369
2385
  return {
2370
2386
  title: t == null ? void 0 : t.title,
2371
2387
  extents: {
@@ -2389,7 +2405,7 @@ function ca(e, t) {
2389
2405
  background: (t == null ? void 0 : t.background) ?? 0
2390
2406
  };
2391
2407
  }
2392
- const Jd = [
2408
+ const eu = [
2393
2409
  "endpoint",
2394
2410
  "midpoint",
2395
2411
  "center",
@@ -2397,7 +2413,7 @@ const Jd = [
2397
2413
  "intersection",
2398
2414
  "nearest"
2399
2415
  ];
2400
- function da(e, t) {
2416
+ function ma(e, t) {
2401
2417
  let n = t - e;
2402
2418
  for (; n <= 0; ) n += ze;
2403
2419
  for (; n > ze; ) n -= ze;
@@ -2413,7 +2429,7 @@ function Qn(e, t, n, r, a) {
2413
2429
  function er(e, t, n, r, a) {
2414
2430
  return Math.atan2(r - t, a * (n - e));
2415
2431
  }
2416
- function Ts(e) {
2432
+ function Us(e) {
2417
2433
  const t = Qn(
2418
2434
  e.cx,
2419
2435
  e.cy,
@@ -2426,26 +2442,26 @@ function Ts(e) {
2426
2442
  e.r,
2427
2443
  e.endAngle,
2428
2444
  e.normalSign
2429
- ), r = da(e.startAngle, e.endAngle), a = e.normalSign * Math.tan(r / 4);
2445
+ ), r = ma(e.startAngle, e.endAngle), a = e.normalSign * Math.tan(r / 4);
2430
2446
  return new He(t, n, a);
2431
2447
  }
2432
- function Fs(e) {
2433
- return da(e.startAngle, e.endAngle);
2448
+ function _s(e) {
2449
+ return ma(e.startAngle, e.endAngle);
2434
2450
  }
2435
- function qd(e, t) {
2436
- const n = Fs(e), r = e.startAngle + t * n, a = e.normalSign ?? 1, o = e.majorR * Math.cos(r), i = a * e.minorR * Math.sin(r), s = e.majorX, l = e.majorY;
2451
+ function tu(e, t) {
2452
+ const n = _s(e), r = e.startAngle + t * n, a = e.normalSign ?? 1, o = e.majorR * Math.cos(r), i = a * e.minorR * Math.sin(r), s = e.majorX, l = e.majorY;
2437
2453
  return new tn(e.cx + o * s - i * l, e.cy + o * l + i * s);
2438
2454
  }
2439
- function Us(e) {
2455
+ function Os(e) {
2440
2456
  return e.kind === "circle" ? new He(
2441
2457
  { x: e.cx, y: e.cy },
2442
2458
  e.r,
2443
2459
  0,
2444
2460
  ze,
2445
2461
  e.normalSign === -1
2446
- ) : Ts(e);
2462
+ ) : Us(e);
2447
2463
  }
2448
- function _s(e) {
2464
+ function Rs(e) {
2449
2465
  const t = Math.atan2(e.majorY, e.majorX);
2450
2466
  return new Lr(
2451
2467
  { x: e.cx, y: e.cy, z: 0 },
@@ -2457,7 +2473,7 @@ function _s(e) {
2457
2473
  t
2458
2474
  );
2459
2475
  }
2460
- function Os(e) {
2476
+ function Hs(e) {
2461
2477
  const t = [];
2462
2478
  for (let n = 0; n + 1 < e.controlPoints.length; n += 2)
2463
2479
  t.push({
@@ -2465,14 +2481,14 @@ function Os(e) {
2465
2481
  y: e.controlPoints[n + 1],
2466
2482
  z: 0
2467
2483
  });
2468
- return new Lo(
2484
+ return new Co(
2469
2485
  e.degree,
2470
2486
  e.knots,
2471
2487
  t,
2472
2488
  e.weights.length > 0 ? e.weights : void 0
2473
2489
  );
2474
2490
  }
2475
- function Qd(e) {
2491
+ function nu(e) {
2476
2492
  switch (e.kind) {
2477
2493
  case "line":
2478
2494
  return {
@@ -2484,11 +2500,11 @@ function Qd(e) {
2484
2500
  };
2485
2501
  case "circle":
2486
2502
  case "arc":
2487
- return { kind: "circArc", curve: Us(e) };
2503
+ return { kind: "circArc", curve: Os(e) };
2488
2504
  case "ellipse":
2489
- return { kind: "ellipse", curve: _s(e) };
2505
+ return { kind: "ellipse", curve: Rs(e) };
2490
2506
  case "spline":
2491
- return { kind: "spline", curve: Os(e) };
2507
+ return { kind: "spline", curve: Hs(e) };
2492
2508
  case "point":
2493
2509
  return { kind: "point", point: new tn(e.x, e.y) };
2494
2510
  case "path":
@@ -2498,7 +2514,7 @@ function Qd(e) {
2498
2514
  function yn(e) {
2499
2515
  return e.z >= 0 ? 1 : -1;
2500
2516
  }
2501
- function ua(e, t, n) {
2517
+ function pa(e, t, n) {
2502
2518
  if (!(n.radius > 0) || !Number.isFinite(n.radius)) return;
2503
2519
  const r = n.clockwise ? -1 : 1, a = n.center.x, o = n.center.y;
2504
2520
  e.push({
@@ -2528,7 +2544,7 @@ function F(e, t) {
2528
2544
  const n = new L.Vector3(t.x, t.y, t.z ?? 0).applyMatrix4(e);
2529
2545
  return { x: n.x, y: n.y };
2530
2546
  }
2531
- function Rs(e) {
2547
+ function Ds(e) {
2532
2548
  const t = e.elements;
2533
2549
  return new L.Matrix4(
2534
2550
  t[0],
@@ -2552,10 +2568,10 @@ function Rs(e) {
2552
2568
  function tt(e, t) {
2553
2569
  return new L.Matrix4().multiplyMatrices(
2554
2570
  e,
2555
- Rs(t)
2571
+ Ds(t)
2556
2572
  );
2557
2573
  }
2558
- function ma(e, t) {
2574
+ function fa(e, t) {
2559
2575
  const n = new L.Vector3(t.x, t.y, t.z ?? 0).transformDirection(e).normalize();
2560
2576
  return { x: n.x, y: n.y };
2561
2577
  }
@@ -2571,7 +2587,7 @@ function qt(e) {
2571
2587
  ).length();
2572
2588
  return we.equal(t, n, Cr * Math.max(t, n, 1));
2573
2589
  }
2574
- function Hs(e, t) {
2590
+ function Ns(e, t) {
2575
2591
  const n = e.tables.blockTable.getIdAt(t);
2576
2592
  if (n)
2577
2593
  return n;
@@ -2582,38 +2598,38 @@ function Hs(e, t) {
2582
2598
  if (r.objectId === t)
2583
2599
  return r;
2584
2600
  }
2585
- function Ds(e) {
2586
- if (e instanceof jo)
2601
+ function $s(e) {
2602
+ if (e instanceof Ko)
2587
2603
  return !0;
2588
2604
  const t = e;
2589
2605
  return (t.type === "LINE" || t.type === "Line") && t.startPoint != null && t.endPoint != null;
2590
2606
  }
2591
- function Ns(e, t, n, r) {
2607
+ function Vs(e, t, n, r) {
2592
2608
  r.startPoint, r.endPoint;
2593
2609
  }
2594
- function pa(e, t) {
2610
+ function ha(e, t) {
2595
2611
  return e.blockTableRecord ?? (e.blockName ? t.tables.blockTable.getAt(e.blockName) : void 0);
2596
2612
  }
2597
- function $s(e, t) {
2613
+ function Xs(e, t) {
2598
2614
  const n = e.dimBlockId;
2599
2615
  return n ? t.tables.blockTable.getAt(n) : void 0;
2600
2616
  }
2601
- function Vs(e, t) {
2602
- const r = pa(e, t);
2617
+ function Ys(e, t) {
2618
+ const r = ha(e, t);
2603
2619
  if (r)
2604
2620
  return r;
2605
2621
  const a = e.owningBlockRecordId;
2606
2622
  return a ? t.tables.blockTable.getAt(a) : void 0;
2607
2623
  }
2608
- function fa(e) {
2624
+ function ga(e) {
2609
2625
  return e.getFullInsertionTransform();
2610
2626
  }
2611
- function Xs(e) {
2627
+ function Zs(e) {
2612
2628
  for (const t of e.newIterator())
2613
2629
  return !0;
2614
2630
  return !1;
2615
2631
  }
2616
- function Ys(e) {
2632
+ function js(e) {
2617
2633
  return typeof e.getFullInsertionTransform == "function" && "blockTableRecord" in e;
2618
2634
  }
2619
2635
  function le(e, t, n, r, a) {
@@ -2626,10 +2642,10 @@ function le(e, t, n, r, a) {
2626
2642
  }
2627
2643
  e.push({ kind: "path", layer: t, closed: a, vertices: l });
2628
2644
  }
2629
- function ha(e, t) {
2645
+ function wa(e, t) {
2630
2646
  return we.equal(e.x, t.x) && we.equal(e.y, t.y);
2631
2647
  }
2632
- function Zs(e) {
2648
+ function Gs(e) {
2633
2649
  return (e.clockwise ? -1 : 1) * Math.tan(e.deltaAngle / 4);
2634
2650
  }
2635
2651
  function tr(e, t, n, r) {
@@ -2638,10 +2654,10 @@ function tr(e, t, n, r) {
2638
2654
  return;
2639
2655
  }
2640
2656
  const a = e[e.length - 1];
2641
- ha(a, t) ? a.bulge = r : (a.bulge = 0, e.push({ x: t.x, y: t.y, z: t.z ?? 0, bulge: r })), e.push({ x: n.x, y: n.y, z: n.z ?? 0, bulge: 0 });
2657
+ wa(a, t) ? a.bulge = r : (a.bulge = 0, e.push({ x: t.x, y: t.y, z: t.z ?? 0, bulge: r })), e.push({ x: n.x, y: n.y, z: n.z ?? 0, bulge: 0 });
2642
2658
  }
2643
2659
  function nr(e) {
2644
- return e.length >= 2 && ha(e[0], e[e.length - 1]) && e.pop(), e;
2660
+ return e.length >= 2 && wa(e[0], e[e.length - 1]) && e.pop(), e;
2645
2661
  }
2646
2662
  function Te(e, t, n, r, a) {
2647
2663
  if (r.length < 2) return;
@@ -2649,13 +2665,13 @@ function Te(e, t, n, r, a) {
2649
2665
  for (let i = 0; i < o; i++)
2650
2666
  r[i], r[(i + 1) % r.length];
2651
2667
  }
2652
- function js(e, t, n, r) {
2668
+ function Ks(e, t, n, r) {
2653
2669
  const a = [r.startPosition];
2654
2670
  for (const o of r.segments)
2655
2671
  a.push(o.position);
2656
2672
  Te(e, t, n, a, r.closed);
2657
2673
  }
2658
- function Gs(e, t, n) {
2674
+ function Ws(e, t, n) {
2659
2675
  if (n.vertices.length >= 2)
2660
2676
  return n.vertices;
2661
2677
  if (n.vertices.length === 0)
@@ -2666,11 +2682,11 @@ function Gs(e, t, n) {
2666
2682
  const o = r.x - a.x, i = r.y - a.y, s = (r.z ?? 0) - (a.z ?? 0);
2667
2683
  return Math.hypot(o, i, s) <= Cr ? n.vertices : [r, a];
2668
2684
  }
2669
- function Ks(e, t, n, r) {
2685
+ function Js(e, t, n, r) {
2670
2686
  var o, i;
2671
2687
  for (const s of r.leaders)
2672
2688
  for (const l of s.leaderLines) {
2673
- const d = Gs(r, s, l);
2689
+ const d = Ws(r, s, l);
2674
2690
  Te(e, t, n, d, !1);
2675
2691
  }
2676
2692
  const a = (s) => {
@@ -2680,7 +2696,7 @@ function Ks(e, t, n, r) {
2680
2696
  };
2681
2697
  a(r.contentBasePosition), a((o = r.mtextContent) == null ? void 0 : o.anchorPoint), a((i = r.blockContent) == null ? void 0 : i.position);
2682
2698
  }
2683
- function Ws(e, t, n, r) {
2699
+ function qs(e, t, n, r) {
2684
2700
  const a = r.numberOfVertices;
2685
2701
  if (a < 2) return;
2686
2702
  const o = r.elevation, i = r.closed ? a : a - 1;
@@ -2688,11 +2704,11 @@ function Ws(e, t, n, r) {
2688
2704
  const l = r.getPointAt(s), d = r.getPointAt((s + 1) % a), c = r.getBulgeAt(s), u = { x: l.x, y: l.y, z: o }, p = { x: d.x, y: d.y, z: o };
2689
2705
  if (we.isPositive(Math.abs(c))) {
2690
2706
  const m = F(n, u), f = F(n, p);
2691
- ua(e, t, new He(m, f, c));
2707
+ pa(e, t, new He(m, f, c));
2692
2708
  }
2693
2709
  }
2694
2710
  }
2695
- function Js(e, t, n, r, a, o) {
2711
+ function Qs(e, t, n, r, a, o) {
2696
2712
  const i = F(n, r), s = new L.Vector3(
2697
2713
  n.elements[0],
2698
2714
  n.elements[1],
@@ -2707,7 +2723,7 @@ function Js(e, t, n, r, a, o) {
2707
2723
  };
2708
2724
  e.push(l);
2709
2725
  }
2710
- function qs(e, t, n, r) {
2726
+ function el(e, t, n, r) {
2711
2727
  const a = F(n, r.center), o = new L.Vector3(
2712
2728
  n.elements[0],
2713
2729
  n.elements[1],
@@ -2725,7 +2741,7 @@ function qs(e, t, n, r) {
2725
2741
  e.push(i);
2726
2742
  }
2727
2743
  function Et(e, t, n, r) {
2728
- const a = F(n, r.center), o = r._geo, i = (o == null ? void 0 : o.majorAxis) ?? { x: 1, y: 0, z: 0 }, s = ma(n, i), l = Math.hypot(s.x, s.y) || 1, d = new L.Vector3(
2744
+ const a = F(n, r.center), o = r._geo, i = (o == null ? void 0 : o.majorAxis) ?? { x: 1, y: 0, z: 0 }, s = fa(n, i), l = Math.hypot(s.x, s.y) || 1, d = new L.Vector3(
2729
2745
  n.elements[0],
2730
2746
  n.elements[1],
2731
2747
  n.elements[2]
@@ -2749,7 +2765,7 @@ function Et(e, t, n, r) {
2749
2765
  };
2750
2766
  e.push(u);
2751
2767
  }
2752
- function Qs(e, t, n, r) {
2768
+ function tl(e, t, n, r) {
2753
2769
  var s, l;
2754
2770
  const a = r._geo;
2755
2771
  if (!((s = a == null ? void 0 : a.controlPoints) != null && s.length)) return;
@@ -2777,7 +2793,7 @@ function Qs(e, t, n, r) {
2777
2793
  e.push(i);
2778
2794
  }
2779
2795
  const rr = 1e-6;
2780
- function el(e) {
2796
+ function nl(e) {
2781
2797
  var r;
2782
2798
  const t = e.elevation, n = (r = e._geo) == null ? void 0 : r.vertices;
2783
2799
  return n && n.length > 1 ? n.map((a) => ({
@@ -2792,16 +2808,16 @@ function el(e) {
2792
2808
  return { x: i.x, y: i.y, z: t, bulge: 0 };
2793
2809
  });
2794
2810
  }
2795
- function tl(e) {
2811
+ function rl(e) {
2796
2812
  return e.some((t) => {
2797
2813
  const n = Math.max(0, t.startWidth ?? 0), r = Math.max(0, t.endWidth ?? 0);
2798
2814
  return n > rr || r > rr;
2799
2815
  });
2800
2816
  }
2801
- function nl(e, t, n, r) {
2802
- const a = el(r), o = a.length;
2817
+ function al(e, t, n, r) {
2818
+ const a = nl(r), o = a.length;
2803
2819
  if (o < 2) return;
2804
- if (tl(a)) {
2820
+ if (rl(a)) {
2805
2821
  le(e, t, n, a, r.closed);
2806
2822
  return;
2807
2823
  }
@@ -2810,16 +2826,16 @@ function nl(e, t, n, r) {
2810
2826
  const l = a[s], d = a[(s + 1) % o], c = l.bulge ?? 0;
2811
2827
  if (we.isPositive(Math.abs(c))) {
2812
2828
  const u = F(n, l), p = F(n, d);
2813
- ua(e, t, new He(u, p, c));
2829
+ pa(e, t, new He(u, p, c));
2814
2830
  }
2815
2831
  }
2816
2832
  }
2817
- function rl(e, t, n, r, a) {
2833
+ function ol(e, t, n, r, a) {
2818
2834
  const o = F(n, {
2819
2835
  x: r.center.x,
2820
2836
  y: r.center.y,
2821
2837
  z: a
2822
- }), i = ma(n, {
2838
+ }), i = fa(n, {
2823
2839
  x: Math.cos(r.rotation),
2824
2840
  y: Math.sin(r.rotation),
2825
2841
  z: 0
@@ -2847,7 +2863,7 @@ function rl(e, t, n, r, a) {
2847
2863
  normalSign: r.clockwise ? -1 : 1
2848
2864
  });
2849
2865
  }
2850
- function al(e, t, n, r, a) {
2866
+ function il(e, t, n, r, a) {
2851
2867
  var s;
2852
2868
  const o = r.numberOfVertices;
2853
2869
  if (o < 2) return;
@@ -2863,12 +2879,12 @@ function al(e, t, n, r, a) {
2863
2879
  }
2864
2880
  le(e, t, n, i, r.closed);
2865
2881
  }
2866
- function ol(e, t, n, r, a) {
2867
- if (r instanceof Go) {
2868
- al(e, t, n, r, a);
2882
+ function sl(e, t, n, r, a) {
2883
+ if (r instanceof Wo) {
2884
+ il(e, t, n, r, a);
2869
2885
  return;
2870
2886
  }
2871
- if (!(r instanceof Ko)) return;
2887
+ if (!(r instanceof Jo)) return;
2872
2888
  const o = [];
2873
2889
  let i = !1;
2874
2890
  const s = () => {
@@ -2901,21 +2917,21 @@ function ol(e, t, n, r, a) {
2901
2917
  y: d.endPoint.y,
2902
2918
  z: a
2903
2919
  },
2904
- Zs(d)
2905
- ) : d instanceof Lr && (i = !0, s(), rl(e, t, n, d, a));
2920
+ Gs(d)
2921
+ ) : d instanceof Lr && (i = !0, s(), ol(e, t, n, d, a));
2906
2922
  const l = nr(o);
2907
2923
  l.length >= 2 && le(e, t, n, l, !i);
2908
2924
  }
2909
- function il(e, t, n, r) {
2925
+ function ll(e, t, n, r) {
2910
2926
  var i;
2911
2927
  const a = (i = r._geo) == null ? void 0 : i.loops;
2912
2928
  if (!(a != null && a.length)) return;
2913
2929
  const o = r.elevation;
2914
2930
  for (const s of a)
2915
- ol(e, t, n, s, o);
2931
+ sl(e, t, n, s, o);
2916
2932
  }
2917
- function sl(e, t, n, r) {
2918
- tt(n, fa(r));
2933
+ function cl(e, t, n, r) {
2934
+ tt(n, ga(r));
2919
2935
  const a = [0];
2920
2936
  for (let i = 0; i < r.numColumns; i++)
2921
2937
  a.push(a[i] + r.columnWidth(i));
@@ -2928,14 +2944,14 @@ function sl(e, t, n, r) {
2928
2944
  for (const i of a)
2929
2945
  ;
2930
2946
  }
2931
- function ll(e, t, n, r, a, o, i, s = !0) {
2947
+ function dl(e, t, n, r, a, o, i, s = !0) {
2932
2948
  const l = Qt(e.layer, n);
2933
2949
  if (i && !i(l))
2934
2950
  return;
2935
- const d = Vs(e, o);
2936
- if (d && !a.has(d.objectId) && Xs(d)) {
2951
+ const d = Ys(e, o);
2952
+ if (d && !a.has(d.objectId) && Zs(d)) {
2937
2953
  a.add(d.objectId);
2938
- const u = tt(t, fa(e));
2954
+ const u = tt(t, ga(e));
2939
2955
  nt(
2940
2956
  d,
2941
2957
  u,
@@ -2948,11 +2964,11 @@ function ll(e, t, n, r, a, o, i, s = !0) {
2948
2964
  ), a.delete(d.objectId);
2949
2965
  return;
2950
2966
  }
2951
- sl(r, l, t, e);
2967
+ cl(r, l, t, e);
2952
2968
  const c = F(t, e.position);
2953
2969
  r.push({ kind: "point", layer: l, x: c.x, y: c.y });
2954
2970
  }
2955
- function cl(e, t, n, r) {
2971
+ function ul(e, t, n, r) {
2956
2972
  let a = r.boundaryPath();
2957
2973
  if (a.length > 1) {
2958
2974
  const i = a[0], s = a[a.length - 1];
@@ -2962,7 +2978,7 @@ function cl(e, t, n, r) {
2962
2978
  const o = F(n, r.position);
2963
2979
  e.push({ kind: "point", layer: t, x: o.x, y: o.y });
2964
2980
  }
2965
- function dl(e, t, n, r) {
2981
+ function ml(e, t, n, r) {
2966
2982
  const a = r.position();
2967
2983
  le(
2968
2984
  e,
@@ -2974,7 +2990,7 @@ function dl(e, t, n, r) {
2974
2990
  const o = F(n, r.getLocation());
2975
2991
  e.push({ kind: "point", layer: t, x: o.x, y: o.y });
2976
2992
  }
2977
- function ul(e) {
2993
+ function pl(e) {
2978
2994
  var n;
2979
2995
  const t = (n = e.attributeIterator) == null ? void 0 : n.call(e);
2980
2996
  return t ? typeof t.toArray == "function" ? t.toArray() : [...t] : [];
@@ -2982,12 +2998,12 @@ function ul(e) {
2982
2998
  function Qt(e, t) {
2983
2999
  return e === "0" ? t : e;
2984
3000
  }
2985
- function ga(e, t, n, r, a, o, i, s = !0) {
3001
+ function va(e, t, n, r, a, o, i, s = !0) {
2986
3002
  if (!e.visibility) return;
2987
3003
  const l = Qt(e.layer, n);
2988
3004
  if (!(i && !i(l))) {
2989
- if (e instanceof Ao) {
2990
- ll(
3005
+ if (e instanceof Eo) {
3006
+ dl(
2991
3007
  e,
2992
3008
  t,
2993
3009
  n,
@@ -2999,8 +3015,8 @@ function ga(e, t, n, r, a, o, i, s = !0) {
2999
3015
  );
3000
3016
  return;
3001
3017
  }
3002
- if (Ys(e)) {
3003
- const d = pa(e, o);
3018
+ if (js(e)) {
3019
+ const d = ha(e, o);
3004
3020
  if (!d || a.has(d.objectId)) return;
3005
3021
  a.add(d.objectId);
3006
3022
  const c = e.getFullInsertionTransform(), u = Math.max(1, e.columnCount ?? 1), p = Math.max(1, e.rowCount ?? 1), m = e.columnSpacing ?? 0, f = e.rowSpacing ?? 0, h = Qt(e.layer, n);
@@ -3027,8 +3043,8 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3027
3043
  s
3028
3044
  );
3029
3045
  }
3030
- for (const w of ul(e))
3031
- (w instanceof Co ? w.isInvisible : w.isInvisible) || ga(
3046
+ for (const w of pl(e))
3047
+ (w instanceof Mo ? w.isInvisible : w.isInvisible) || va(
3032
3048
  w,
3033
3049
  t,
3034
3050
  h,
@@ -3041,8 +3057,8 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3041
3057
  a.delete(d.objectId);
3042
3058
  return;
3043
3059
  }
3044
- if (e instanceof Eo) {
3045
- const d = e, c = $s(d, o);
3060
+ if (e instanceof So) {
3061
+ const d = e, c = Xs(d, o);
3046
3062
  if (!c || a.has(c.objectId)) return;
3047
3063
  a.add(c.objectId);
3048
3064
  const u = tt(
@@ -3061,61 +3077,61 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3061
3077
  ), a.delete(c.objectId);
3062
3078
  return;
3063
3079
  }
3064
- if (Ds(e)) {
3065
- Ns(r, l, t, e);
3080
+ if ($s(e)) {
3081
+ Vs(r, l, t, e);
3066
3082
  return;
3067
3083
  }
3068
- if (e instanceof Mo) {
3069
- qt(t) ? Js(
3084
+ if (e instanceof Po) {
3085
+ qt(t) ? Qs(
3070
3086
  r,
3071
3087
  l,
3072
3088
  t,
3073
3089
  e.center,
3074
3090
  e.radius,
3075
3091
  e.normal
3076
- ) : Et(r, l, t, ml(e));
3092
+ ) : Et(r, l, t, fl(e));
3077
3093
  return;
3078
3094
  }
3079
- if (e instanceof So) {
3080
- qt(t) ? qs(r, l, t, e) : Et(r, l, t, pl(e));
3095
+ if (e instanceof Io) {
3096
+ qt(t) ? el(r, l, t, e) : Et(r, l, t, hl(e));
3081
3097
  return;
3082
3098
  }
3083
3099
  if (e instanceof nn) {
3084
3100
  Et(r, l, t, e);
3085
3101
  return;
3086
3102
  }
3087
- if (e instanceof Po) {
3088
- Qs(r, l, t, e);
3103
+ if (e instanceof zo) {
3104
+ tl(r, l, t, e);
3089
3105
  return;
3090
3106
  }
3091
- if (e instanceof Io) {
3092
- nl(r, l, t, e);
3107
+ if (e instanceof Bo) {
3108
+ al(r, l, t, e);
3093
3109
  return;
3094
3110
  }
3095
- if (e instanceof zo) {
3096
- Ws(r, l, t, e);
3111
+ if (e instanceof To) {
3112
+ qs(r, l, t, e);
3097
3113
  return;
3098
3114
  }
3099
- if (e instanceof Bo) {
3115
+ if (e instanceof Fo) {
3100
3116
  const d = [];
3101
3117
  for (let c = 0; c < e.numberOfVertices; c++)
3102
3118
  d.push(e.getPointAt(c));
3103
3119
  Te(r, l, t, d, e.closed);
3104
3120
  return;
3105
3121
  }
3106
- if (e instanceof To) {
3107
- s && il(r, l, t, e);
3122
+ if (e instanceof Uo) {
3123
+ s && ll(r, l, t, e);
3108
3124
  return;
3109
3125
  }
3110
- if (e instanceof Fo) {
3126
+ if (e instanceof _o) {
3111
3127
  e.basePoint, e.unitDir;
3112
3128
  return;
3113
3129
  }
3114
- if (e instanceof Uo) {
3130
+ if (e instanceof Oo) {
3115
3131
  e.basePoint, e.unitDir;
3116
3132
  return;
3117
3133
  }
3118
- if (e instanceof _o) {
3134
+ if (e instanceof Ro) {
3119
3135
  le(
3120
3136
  r,
3121
3137
  l,
@@ -3130,7 +3146,7 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3130
3146
  );
3131
3147
  return;
3132
3148
  }
3133
- if (e instanceof Oo) {
3149
+ if (e instanceof Ho) {
3134
3150
  s && le(
3135
3151
  r,
3136
3152
  l,
@@ -3145,43 +3161,43 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3145
3161
  );
3146
3162
  return;
3147
3163
  }
3148
- if (e instanceof Ro) {
3164
+ if (e instanceof Do) {
3149
3165
  const d = e.subGetGripPoints();
3150
3166
  d.length >= 2 && Te(r, l, t, d, d.length >= 3);
3151
3167
  return;
3152
3168
  }
3153
- if (e instanceof Ho) {
3169
+ if (e instanceof No) {
3154
3170
  const d = e.vertices;
3155
3171
  d.length >= 2 && Te(r, l, t, d, !1);
3156
3172
  return;
3157
3173
  }
3158
- if (e instanceof Do) {
3159
- js(r, l, t, e);
3174
+ if (e instanceof $o) {
3175
+ Ks(r, l, t, e);
3160
3176
  return;
3161
3177
  }
3162
- if (e instanceof No) {
3163
- Ks(r, l, t, e);
3178
+ if (e instanceof Vo) {
3179
+ Js(r, l, t, e);
3164
3180
  return;
3165
3181
  }
3166
- if (e instanceof $o) {
3182
+ if (e instanceof Xo) {
3167
3183
  const d = F(t, e.position);
3168
3184
  r.push({ kind: "point", layer: l, x: d.x, y: d.y });
3169
3185
  return;
3170
3186
  }
3171
- if (e instanceof Vo) {
3187
+ if (e instanceof Yo) {
3172
3188
  const d = F(t, e.location);
3173
3189
  r.push({ kind: "point", layer: l, x: d.x, y: d.y });
3174
3190
  return;
3175
3191
  }
3176
- if (e instanceof Xo) {
3177
- s && dl(r, l, t, e);
3192
+ if (e instanceof Zo) {
3193
+ s && ml(r, l, t, e);
3178
3194
  return;
3179
3195
  }
3180
- if (e instanceof Yo) {
3181
- s && cl(r, l, t, e);
3196
+ if (e instanceof jo) {
3197
+ s && ul(r, l, t, e);
3182
3198
  return;
3183
3199
  }
3184
- if (e instanceof Zo) {
3200
+ if (e instanceof Go) {
3185
3201
  const d = F(t, e.position);
3186
3202
  r.push({ kind: "point", layer: l, x: d.x, y: d.y });
3187
3203
  }
@@ -3189,7 +3205,7 @@ function ga(e, t, n, r, a, o, i, s = !0) {
3189
3205
  }
3190
3206
  function nt(e, t, n, r, a, o, i, s = !0) {
3191
3207
  for (const l of e.newIterator())
3192
- ga(
3208
+ va(
3193
3209
  l,
3194
3210
  t,
3195
3211
  n,
@@ -3200,7 +3216,7 @@ function nt(e, t, n, r, a, o, i, s = !0) {
3200
3216
  s
3201
3217
  );
3202
3218
  }
3203
- function ml(e) {
3219
+ function fl(e) {
3204
3220
  return new nn(
3205
3221
  e.center,
3206
3222
  e.normal,
@@ -3211,7 +3227,7 @@ function ml(e) {
3211
3227
  ze
3212
3228
  );
3213
3229
  }
3214
- function pl(e) {
3230
+ function hl(e) {
3215
3231
  return new nn(
3216
3232
  e.center,
3217
3233
  e.normal,
@@ -3222,8 +3238,8 @@ function pl(e) {
3222
3238
  e.endAngle
3223
3239
  );
3224
3240
  }
3225
- function fl(e, t, n = {}) {
3226
- const r = Hs(e, t);
3241
+ function gl(e, t, n = {}) {
3242
+ const r = Ns(e, t);
3227
3243
  if (!r)
3228
3244
  return { primitives: [] };
3229
3245
  const a = [], o = new L.Matrix4();
@@ -3237,11 +3253,11 @@ function fl(e, t, n = {}) {
3237
3253
  n.includeLayer
3238
3254
  ), {
3239
3255
  primitives: a.filter(
3240
- (i) => i.kind !== "line" && hl(i)
3256
+ (i) => i.kind !== "line" && wl(i)
3241
3257
  )
3242
3258
  };
3243
3259
  }
3244
- function hl(e) {
3260
+ function wl(e) {
3245
3261
  switch (e.kind) {
3246
3262
  case "line":
3247
3263
  return Number.isFinite(e.x0) && Number.isFinite(e.y0) && Number.isFinite(e.x1) && Number.isFinite(e.y1);
@@ -3261,13 +3277,13 @@ function hl(e) {
3261
3277
  return e;
3262
3278
  }
3263
3279
  }
3264
- const ge = ["en", "zh", "cs", "tr", "ar"], wa = {
3280
+ const ge = ["en", "zh", "cs", "tr", "ar"], ya = {
3265
3281
  en: "EN",
3266
3282
  zh: "中",
3267
3283
  cs: "CS",
3268
3284
  tr: "TR",
3269
3285
  ar: "AR"
3270
- }, va = "mlcad-html-locale", gl = {
3286
+ }, xa = "mlcad-html-locale", vl = {
3271
3287
  en: {
3272
3288
  toolbar: {
3273
3289
  viewerTools: "Viewer tools",
@@ -4257,7 +4273,7 @@ const ge = ["en", "zh", "cs", "tr", "ar"], wa = {
4257
4273
  tooManyAttempts: "Çok fazla yanlış parola denemesi yapıldı. Tekrar denemek için sayfayı yenileyin."
4258
4274
  }
4259
4275
  }
4260
- }, wl = {
4276
+ }, yl = {
4261
4277
  toolbar: {
4262
4278
  viewerTools: "أدوات العارض",
4263
4279
  select: "تحديد",
@@ -4494,10 +4510,10 @@ const ge = ["en", "zh", "cs", "tr", "ar"], wa = {
4494
4510
  tooManyAttempts: "عدد محاولات إدخال كلمة المرور كبير جدًا. قم بتحديث الصفحة للمحاولة مرة أخرى."
4495
4511
  }
4496
4512
  }, ar = {
4497
- ...gl,
4498
- ar: wl
4513
+ ...vl,
4514
+ ar: yl
4499
4515
  };
4500
- function eu(e) {
4516
+ function ru(e) {
4501
4517
  return ge.includes(e);
4502
4518
  }
4503
4519
  function Ve(e) {
@@ -4508,7 +4524,7 @@ function Ve(e) {
4508
4524
  return n;
4509
4525
  return null;
4510
4526
  }
4511
- function vl() {
4527
+ function xl() {
4512
4528
  if (typeof navigator > "u") return "en";
4513
4529
  const e = [
4514
4530
  ...navigator.languages ?? [],
@@ -4520,14 +4536,14 @@ function vl() {
4520
4536
  }
4521
4537
  return "en";
4522
4538
  }
4523
- function yl() {
4539
+ function bl() {
4524
4540
  if (typeof localStorage < "u")
4525
4541
  try {
4526
- const e = localStorage.getItem(va), t = Ve(e);
4542
+ const e = localStorage.getItem(xa), t = Ve(e);
4527
4543
  if (t) return t;
4528
4544
  } catch {
4529
4545
  }
4530
- return vl();
4546
+ return xl();
4531
4547
  }
4532
4548
  function or(e, t) {
4533
4549
  const n = t.split(".");
@@ -4538,18 +4554,18 @@ function or(e, t) {
4538
4554
  }
4539
4555
  return typeof r == "string" ? r : void 0;
4540
4556
  }
4541
- function xl(e, t) {
4557
+ function kl(e, t) {
4542
4558
  return t ? e.replace(/\{(\w+)\}/g, (n, r) => {
4543
4559
  const a = t[r];
4544
4560
  return a != null ? String(a) : `{${r}}`;
4545
4561
  }) : e;
4546
4562
  }
4547
- class tu {
4563
+ class au {
4548
4564
  /**
4549
4565
  * @param initialLocale - Starting locale; defaults to {@link detectAcExHtmlLocale} when omitted.
4550
4566
  */
4551
4567
  constructor(t) {
4552
- this._onChange = null, this._locale = t ?? yl();
4568
+ this._onChange = null, this._locale = t ?? bl();
4553
4569
  }
4554
4570
  /** Active locale used for {@link AcExHtmlI18n.t}. */
4555
4571
  get locale() {
@@ -4557,7 +4573,7 @@ class tu {
4557
4573
  }
4558
4574
  /** Short badge text shown on the language parent button and locale strip. */
4559
4575
  get localeBadge() {
4560
- return wa[this._locale];
4576
+ return ya[this._locale];
4561
4577
  }
4562
4578
  /**
4563
4579
  * Registers a callback invoked after {@link AcExHtmlI18n.setLocale} or
@@ -4576,7 +4592,7 @@ class tu {
4576
4592
  */
4577
4593
  t(t, n) {
4578
4594
  const r = or(ar[this._locale], t) ?? or(ar.en, t) ?? t;
4579
- return xl(r, n);
4595
+ return kl(r, n);
4580
4596
  }
4581
4597
  /**
4582
4598
  * Advances to the next locale in {@link ACEX_HTML_LOCALES} (wrapping around),
@@ -4599,7 +4615,7 @@ class tu {
4599
4615
  if (this._locale !== t) {
4600
4616
  this._locale = t, typeof document < "u" && (document.documentElement.lang = t);
4601
4617
  try {
4602
- typeof localStorage < "u" && localStorage.setItem(va, t);
4618
+ typeof localStorage < "u" && localStorage.setItem(xa, t);
4603
4619
  } catch {
4604
4620
  }
4605
4621
  this.applyToDocument(), (n = this._onChange) == null || n.call(this);
@@ -4629,12 +4645,12 @@ class tu {
4629
4645
  r && (r.textContent = this.localeBadge);
4630
4646
  }
4631
4647
  }
4632
- const ya = 1128612673, ir = 1e5;
4648
+ const ba = 1128612673, ir = 1e5;
4633
4649
  function dt(e) {
4634
4650
  if (e.version !== D)
4635
4651
  throw new Error(`Unsupported chunk version: ${e.version}`);
4636
4652
  const t = new sn();
4637
- t.writeU32(ya), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeString(e.layoutBtrId), t.writeU32(e.lineBatches.length);
4653
+ t.writeU32(ba), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeString(e.layoutBtrId), t.writeU32(e.lineBatches.length);
4638
4654
  for (const n of e.lineBatches)
4639
4655
  $r(t, n);
4640
4656
  t.writeU32(e.meshBatches.length);
@@ -4642,9 +4658,9 @@ function dt(e) {
4642
4658
  Xr(t, n);
4643
4659
  return t.toUint8Array();
4644
4660
  }
4645
- function xa(e) {
4661
+ function ka(e) {
4646
4662
  const t = new ln(e);
4647
- if (t.readU32() !== ya)
4663
+ if (t.readU32() !== ba)
4648
4664
  throw new Error("Invalid chunk magic");
4649
4665
  const r = t.readU8();
4650
4666
  if (t.readU8(), t.readU8(), t.readU8(), r !== D)
@@ -4668,21 +4684,21 @@ function xa(e) {
4668
4684
  meshBatches: l
4669
4685
  };
4670
4686
  }
4671
- function bl(e) {
4687
+ function Ll(e) {
4672
4688
  const t = dt(e), n = _e(t).bytes;
4673
4689
  return { uncompressed: t, compressed: n };
4674
4690
  }
4675
- async function kl(e) {
4691
+ async function Al(e) {
4676
4692
  const t = dt(e), n = (await Or(t)).bytes;
4677
4693
  return { uncompressed: t, compressed: n };
4678
4694
  }
4679
- function Ll(e) {
4680
- return xa(cn(e));
4695
+ function Cl(e) {
4696
+ return ka(cn(e));
4681
4697
  }
4682
- function ba(e) {
4683
- return Rr(e) ? Ll(e) : xa(e);
4698
+ function La(e) {
4699
+ return Rr(e) ? Cl(e) : ka(e);
4684
4700
  }
4685
- const ka = 1, Al = 2 * 1024 * 1024, ut = 2 * 1024 * 1024, nu = 512 * 1024, Cl = 8 * 1024 * 1024, sr = 12 * 1024 * 1024, El = 2 * 1024 * 1024, xn = 6;
4701
+ const Aa = 1, El = 2 * 1024 * 1024, ut = 2 * 1024 * 1024, ou = 512 * 1024, Ml = 8 * 1024 * 1024, sr = 12 * 1024 * 1024, Sl = 2 * 1024 * 1024, xn = 6;
4686
4702
  function bn(e, t, n) {
4687
4703
  const r = e.length, a = r > 0 ? Math.max(
4688
4704
  1,
@@ -4712,13 +4728,13 @@ function bn(e, t, n) {
4712
4728
  }
4713
4729
  };
4714
4730
  }
4715
- const Ml = /^(?:\.[/\\])?[A-Za-z0-9._-]+(?:[/\\][A-Za-z0-9._-]+)*$/;
4716
- function Sl(e) {
4731
+ const Pl = /^(?:\.[/\\])?[A-Za-z0-9._-]+(?:[/\\][A-Za-z0-9._-]+)*$/;
4732
+ function Il(e) {
4717
4733
  const t = e.trim();
4718
- return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 : Ml.test(t);
4734
+ return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 : Pl.test(t);
4719
4735
  }
4720
4736
  function rt(e, t) {
4721
- if (!Sl(e))
4737
+ if (!Il(e))
4722
4738
  throw new Error(`Invalid ${t}: must be a relative package path`);
4723
4739
  }
4724
4740
  function mt(e) {
@@ -4727,7 +4743,7 @@ function mt(e) {
4727
4743
  const t = e;
4728
4744
  if (t.format !== "acex-package")
4729
4745
  throw new Error("Unsupported package format");
4730
- if (t.packageVersion !== ka)
4746
+ if (t.packageVersion !== Aa)
4731
4747
  throw new Error(
4732
4748
  `Unsupported package version: ${String(t.packageVersion)}`
4733
4749
  );
@@ -4749,7 +4765,7 @@ function mt(e) {
4749
4765
  }
4750
4766
  return t;
4751
4767
  }
4752
- function Pl(e) {
4768
+ function zl(e) {
4753
4769
  return {
4754
4770
  version: D,
4755
4771
  meta: e.meta,
@@ -4783,7 +4799,7 @@ function kn(e, t) {
4783
4799
  throw new Error("Chunk URL escapes package directory");
4784
4800
  return n.toString();
4785
4801
  }
4786
- function Il(e, t) {
4802
+ function Bl(e, t) {
4787
4803
  rt(e, "manifestUrl");
4788
4804
  let n, r;
4789
4805
  try {
@@ -4810,14 +4826,14 @@ async function Ln(e, t, n) {
4810
4826
  throw new Error(`${n} exceeds size limit`);
4811
4827
  return new Uint8Array(o);
4812
4828
  }
4813
- async function ru(e) {
4829
+ async function iu(e) {
4814
4830
  var p;
4815
4831
  const t = e.fetchImpl ?? pt, n = e.loadOsnap !== !1, r = e.fetchConcurrency ?? xn, a = await t(e.manifestUrl);
4816
4832
  if (!a.ok)
4817
4833
  throw new Error(
4818
4834
  `Failed to load package manifest (${a.status})`
4819
4835
  );
4820
- const o = mt(await a.json()), i = Pl(o), s = new Map(
4836
+ const o = mt(await a.json()), i = zl(o), s = new Map(
4821
4837
  i.layouts.map((m) => [m.btrId, m])
4822
4838
  ), l = e.layoutFilter == null ? null : e.layoutFilter instanceof Set ? e.layoutFilter : new Set(e.layoutFilter), d = o.chunks.filter(
4823
4839
  (m) => l == null || l.has(m.layoutBtrId)
@@ -4838,10 +4854,10 @@ async function ru(e) {
4838
4854
  const f = m.item, h = s.get(f.layoutBtrId);
4839
4855
  if (!h)
4840
4856
  throw new Error("Unknown layout for package chunk");
4841
- const w = ba(m.bytes);
4857
+ const w = La(m.bytes);
4842
4858
  if (w.layoutBtrId !== f.layoutBtrId)
4843
4859
  throw new Error("Chunk layout mismatch");
4844
- La(h, w.lineBatches, w.meshBatches), u += 1, await ((p = e.onChunk) == null ? void 0 : p.call(e, h, f, {
4860
+ Ca(h, w.lineBatches, w.meshBatches), u += 1, await ((p = e.onChunk) == null ? void 0 : p.call(e, h, f, {
4845
4861
  loadedChunks: u,
4846
4862
  totalChunks: d.length,
4847
4863
  layoutBtrId: f.layoutBtrId,
@@ -4853,7 +4869,7 @@ async function ru(e) {
4853
4869
  if (l != null && !l.has(m.btrId))
4854
4870
  continue;
4855
4871
  const f = s.get(m.btrId);
4856
- f && await zl(
4872
+ f && await Tl(
4857
4873
  o,
4858
4874
  e.manifestUrl,
4859
4875
  m.btrId,
@@ -4863,7 +4879,7 @@ async function ru(e) {
4863
4879
  }
4864
4880
  return i;
4865
4881
  }
4866
- async function au(e, t, n, r, a = {}) {
4882
+ async function su(e, t, n, r, a = {}) {
4867
4883
  var p;
4868
4884
  const o = a.fetchImpl ?? pt, i = a.fetchConcurrency ?? xn, s = e.layouts.find((m) => m.btrId === n);
4869
4885
  if (!s)
@@ -4882,8 +4898,8 @@ async function au(e, t, n, r, a = {}) {
4882
4898
  const m = await c.next();
4883
4899
  if (!m)
4884
4900
  break;
4885
- const f = m.item, h = ba(m.bytes);
4886
- La(r, h.lineBatches, h.meshBatches), u += 1, await ((p = a.onChunk) == null ? void 0 : p.call(a, r, f, {
4901
+ const f = m.item, h = La(m.bytes);
4902
+ Ca(r, h.lineBatches, h.meshBatches), u += 1, await ((p = a.onChunk) == null ? void 0 : p.call(a, r, f, {
4887
4903
  loadedChunks: u,
4888
4904
  totalChunks: d.length,
4889
4905
  layoutBtrId: n,
@@ -4891,7 +4907,7 @@ async function au(e, t, n, r, a = {}) {
4891
4907
  }));
4892
4908
  }
4893
4909
  }
4894
- async function zl(e, t, n, r, a = {}) {
4910
+ async function Tl(e, t, n, r, a = {}) {
4895
4911
  var v;
4896
4912
  if (r.osnap)
4897
4913
  return;
@@ -4924,7 +4940,7 @@ async function zl(e, t, n, r, a = {}) {
4924
4940
  const g = await h.next();
4925
4941
  if (!g)
4926
4942
  break;
4927
- const b = g.item, E = Fi(g.bytes).primitives;
4943
+ const b = g.item, E = _i(g.bytes).primitives;
4928
4944
  if (p > 0)
4929
4945
  for (let A = 0; A < E.length; A++)
4930
4946
  m[f++] = E[A];
@@ -4940,14 +4956,14 @@ async function zl(e, t, n, r, a = {}) {
4940
4956
  }
4941
4957
  p > 0 && f !== p && (m.length = f), r.osnap = { primitives: m };
4942
4958
  }
4943
- function La(e, t, n) {
4959
+ function Ca(e, t, n) {
4944
4960
  e.lineBatches.push(...t), e.meshBatches.push(...n);
4945
4961
  }
4946
- const re = "drawing.acex.json", Aa = `./${re}`, Bl = ["manifest", "acex"], at = "https://acex-package.invalid/", pt = (e, t) => globalThis.fetch(e, t);
4947
- function ou(e) {
4962
+ const re = "drawing.acex.json", Ea = `./${re}`, Fl = ["manifest", "acex"], at = "https://acex-package.invalid/", pt = (e, t) => globalThis.fetch(e, t);
4963
+ function lu(e) {
4948
4964
  return e.directoryPicker || e.webkitDirectory;
4949
4965
  }
4950
- function iu(e) {
4966
+ function cu(e) {
4951
4967
  const t = (e == null ? void 0 : e.hasDirectoryPicker) ?? typeof globalThis.showDirectoryPicker == "function", n = (e == null ? void 0 : e.isSecureContext) ?? (typeof globalThis.isSecureContext == "boolean" ? globalThis.isSecureContext : !0);
4952
4968
  let r = e == null ? void 0 : e.supportsWebkitDirectoryAttribute;
4953
4969
  if (r == null && (r = !1, typeof document < "u")) {
@@ -4961,7 +4977,7 @@ function iu(e) {
4961
4977
  webkitDirectory: r
4962
4978
  };
4963
4979
  }
4964
- function Tl(e) {
4980
+ function Ul(e) {
4965
4981
  var r;
4966
4982
  const t = e.startsWith("?") ? e.slice(1) : e;
4967
4983
  if (!t) return null;
@@ -4971,36 +4987,36 @@ function Tl(e) {
4971
4987
  } catch {
4972
4988
  return null;
4973
4989
  }
4974
- for (const a of Bl) {
4990
+ for (const a of Fl) {
4975
4991
  const o = (r = n.get(a)) == null ? void 0 : r.trim();
4976
4992
  if (o) return o;
4977
4993
  }
4978
4994
  return null;
4979
4995
  }
4980
- function su(e) {
4996
+ function du(e) {
4981
4997
  var r;
4982
- const t = Tl(e.search ?? "");
4998
+ const t = Ul(e.search ?? "");
4983
4999
  if (t)
4984
5000
  return { href: t, fromQuery: !0 };
4985
5001
  const n = (r = e.configManifestUrl) == null ? void 0 : r.trim();
4986
- return n ? { href: n, fromQuery: !1 } : { href: Aa, fromQuery: !1 };
5002
+ return n ? { href: n, fromQuery: !1 } : { href: Ea, fromQuery: !1 };
4987
5003
  }
4988
- function Fl(e) {
5004
+ function _l(e) {
4989
5005
  return /^https?:\/\//i.test(e.trim());
4990
5006
  }
4991
- function lu(e, t) {
5007
+ function uu(e, t) {
4992
5008
  const n = e.trim();
4993
5009
  if (!n)
4994
5010
  throw new Error("Missing manifest URL");
4995
- if (Fl(n))
5011
+ if (_l(n))
4996
5012
  try {
4997
5013
  return new URL(n).toString();
4998
5014
  } catch {
4999
5015
  throw new Error("Invalid manifest URL");
5000
5016
  }
5001
- return Il(n, t);
5017
+ return Bl(n, t);
5002
5018
  }
5003
- async function cu(e, t = pt) {
5019
+ async function mu(e, t = pt) {
5004
5020
  let n;
5005
5021
  try {
5006
5022
  n = await t(e);
@@ -5047,7 +5063,7 @@ async function cu(e, t = pt) {
5047
5063
  };
5048
5064
  }
5049
5065
  }
5050
- function Ul(e, t) {
5066
+ function Ol(e, t) {
5051
5067
  let n = e.replace(/\\/g, "/").replace(/^\/+/, "");
5052
5068
  if (t) {
5053
5069
  const r = t.replace(/\\/g, "/").replace(/\/+$/, "");
@@ -5055,21 +5071,21 @@ function Ul(e, t) {
5055
5071
  }
5056
5072
  return n.replace(/^\.\//, "");
5057
5073
  }
5058
- function _l(e) {
5074
+ function Rl(e) {
5059
5075
  const t = [...e].map((o) => o.replace(/\\/g, "/").replace(/^\/+/, "")).filter(Boolean);
5060
5076
  if (t.length === 0) return null;
5061
5077
  const n = t[0].split("/")[0];
5062
5078
  return !n || n === re || !t.every((o) => o.split("/")[0] === n) ? null : t.some((o) => o.includes("/")) ? n : null;
5063
5079
  }
5064
- function du(e) {
5065
- const t = [...e], n = _l(t.map((a) => a.relativePath)), r = /* @__PURE__ */ new Map();
5080
+ function pu(e) {
5081
+ const t = [...e], n = Rl(t.map((a) => a.relativePath)), r = /* @__PURE__ */ new Map();
5066
5082
  for (const a of t) {
5067
- const o = Ul(a.relativePath, n);
5083
+ const o = Ol(a.relativePath, n);
5068
5084
  !o || o.endsWith("/") || r.set(o, a.bytes);
5069
5085
  }
5070
5086
  return r;
5071
5087
  }
5072
- function uu(e, t) {
5088
+ function fu(e, t) {
5073
5089
  const n = (t == null ? void 0 : t.manifestFileName) ?? re;
5074
5090
  if (!e.has(n))
5075
5091
  throw new Error(`Missing ${n} in selected folder`);
@@ -5095,195 +5111,195 @@ function uu(e, t) {
5095
5111
  return c.set(d), new Response(c, { status: 200 });
5096
5112
  } };
5097
5113
  }
5098
- function mu(e) {
5114
+ function hu(e) {
5099
5115
  return e.has(re) ? re : null;
5100
5116
  }
5101
5117
  function An(...e) {
5102
5118
  return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 1024 1024">${e.map((n) => `<path fill="currentColor" d="${n}"/>`).join("")}</svg>`;
5103
5119
  }
5104
- const Ol = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.4379 15.2979h.002l4.86-4.86-9.722-4.86 4.86 9.72Zm7.562-5.298-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2-3.434 3.434-7.6-15.6 15.6 7.6Z"/></svg>', Rl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.08 12.8537l.002-.002V5.5897c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.6381-.414-.6381 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.4437c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.2317c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388-.26-.446-.518-.892-.776-1.338-.338-.482-1.1-.15-.794.38.326.566.652 1.132.978 1.698.006.012.014.026.02.04.552.946 1.106 1.89 1.658 2.834.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.7921-.124 2.5601-.612.3-.19.572-.416.816-.68.326-.368.57-.776.734-1.204.176-.482.258-.97.258-1.494Zm-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894-.216.564-.53 1.114-.964 1.576-.318.34-.666.632-1.046.884-.978.612-2.1461.862-3.2601.774-1.128-.102-2.228-.564-3.098-1.352-.326-.292-.612-.646-.87-1.034-.558-.96-1.114-1.92-1.672-2.88l-.012-.028c-.326-.568-.652-1.138-.978-1.706-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096.04.074.082.146.122.218V4.2337c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.9721-.51 2.2221.102 2.2221 1.284v.06c.022-.014.046-.026.068-.04Z"/></svg>', Ca = '<path fill="currentColor" d="M9.3333 14.125 5.875 10.6667V14.125H9.3333Zm4.7917-3.4583-3.4583 3.4583H14.125V10.6667ZM10.6667 5.875 14.125 9.3333V5.875H10.6667ZM5.875 9.3333 9.3333 5.875H5.875V9.3333Zm9.2083 5.475c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917S.9417 7.275 4.1083 4.1083C7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Z"/>', Hl = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ca}</svg>`, Ea = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.0833 14.8083c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917C.8417 12.3667.9417 7.275 4.1083 4.1083 7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Zm-3.55-2.6083V7.2083H7.2083v5.5833h5.5833ZM5.875 5.875h8.25v8.25H5.875V5.875Z"/></svg>', Dl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"/></svg>', Nl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="2" y="2" width="8.2" height="5" rx="1.2" fill="currentColor"/><rect x="2" y="8.5" width="8.2" height="9.5" rx="1.2" fill="currentColor"/><rect x="11.7" y="2" width="6.3" height="10" rx="1.2" fill="currentColor"/><rect x="11.7" y="13.5" width="6.3" height="4.5" rx="1.2" fill="currentColor"/></svg>', $l = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M1.5 7h17v6h-17ZM4.25 7h1v2.5h-1ZM7.5 7h.75v1.5H7.5ZM10.25 7h1v2.5h-1ZM13.5 7h.75v1.5H13.5ZM16.25 7h1v2.5h-1Z"/></svg>', Vl = '<path fill="currentColor" fill-rule="evenodd" d="M2.25 15h15.5v3.4H2.25Zm1.5 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Z"/>', C = "var(--el-color-primary, var(--ml-ui-accent, #409eff))";
5120
+ const Hl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.4379 15.2979h.002l4.86-4.86-9.722-4.86 4.86 9.72Zm7.562-5.298-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2-3.434 3.434-7.6-15.6 15.6 7.6Z"/></svg>', Dl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.08 12.8537l.002-.002V5.5897c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.6381-.414-.6381 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.4437c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.2317c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388-.26-.446-.518-.892-.776-1.338-.338-.482-1.1-.15-.794.38.326.566.652 1.132.978 1.698.006.012.014.026.02.04.552.946 1.106 1.89 1.658 2.834.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.7921-.124 2.5601-.612.3-.19.572-.416.816-.68.326-.368.57-.776.734-1.204.176-.482.258-.97.258-1.494Zm-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894-.216.564-.53 1.114-.964 1.576-.318.34-.666.632-1.046.884-.978.612-2.1461.862-3.2601.774-1.128-.102-2.228-.564-3.098-1.352-.326-.292-.612-.646-.87-1.034-.558-.96-1.114-1.92-1.672-2.88l-.012-.028c-.326-.568-.652-1.138-.978-1.706-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096.04.074.082.146.122.218V4.2337c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.9721-.51 2.2221.102 2.2221 1.284v.06c.022-.014.046-.026.068-.04Z"/></svg>', Ma = '<path fill="currentColor" d="M9.3333 14.125 5.875 10.6667V14.125H9.3333Zm4.7917-3.4583-3.4583 3.4583H14.125V10.6667ZM10.6667 5.875 14.125 9.3333V5.875H10.6667ZM5.875 9.3333 9.3333 5.875H5.875V9.3333Zm9.2083 5.475c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917S.9417 7.275 4.1083 4.1083C7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Z"/>', Nl = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}</svg>`, Sa = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.0833 14.8083c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917C.8417 12.3667.9417 7.275 4.1083 4.1083 7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Zm-3.55-2.6083V7.2083H7.2083v5.5833h5.5833ZM5.875 5.875h8.25v8.25H5.875V5.875Z"/></svg>', $l = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"/></svg>', Vl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="2" y="2" width="8.2" height="5" rx="1.2" fill="currentColor"/><rect x="2" y="8.5" width="8.2" height="9.5" rx="1.2" fill="currentColor"/><rect x="11.7" y="2" width="6.3" height="10" rx="1.2" fill="currentColor"/><rect x="11.7" y="13.5" width="6.3" height="4.5" rx="1.2" fill="currentColor"/></svg>', Xl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M1.5 7h17v6h-17ZM4.25 7h1v2.5h-1ZM7.5 7h.75v1.5H7.5ZM10.25 7h1v2.5h-1ZM13.5 7h.75v1.5H13.5ZM16.25 7h1v2.5h-1Z"/></svg>', Yl = '<path fill="currentColor" fill-rule="evenodd" d="M2.25 15h15.5v3.4H2.25Zm1.5 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Z"/>', C = "var(--el-color-primary, var(--ml-ui-accent, #409eff))";
5105
5121
  function ue(e) {
5106
- return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${e}${Vl}</svg>`;
5122
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${e}${Yl}</svg>`;
5107
5123
  }
5108
- const Xl = ue(
5124
+ const Zl = ue(
5109
5125
  `<rect fill="${C}" x="2.9" y="2.5" width="1.25" height="8.8" rx=".2"/><rect fill="${C}" x="15.85" y="2.5" width="1.25" height="8.8" rx=".2"/><path fill="${C}" d="M4.4 6.9 7.2 5.05v3.7Z"/><path fill="${C}" d="M15.6 6.9 12.8 5.05v3.7Z"/><rect fill="${C}" x="6.7" y="6.25" width="6.6" height="1.3"/>`
5110
- ), Yl = ue(
5126
+ ), jl = ue(
5111
5127
  `<rect fill="${C}" x="2.9" y="2.5" width="1.25" height="8.8" rx=".2"/><rect fill="${C}" x="15.85" y="2.5" width="1.25" height="8.8" rx=".2"/><path fill="${C}" d="M4.4 6.9 7.2 5.05v3.7Z"/><path fill="${C}" d="M15.6 6.9 12.8 5.05v3.7Z"/><rect fill="${C}" x="6.7" y="6.25" width="6.6" height="1.3"/><circle fill="currentColor" cx="10" cy="3.45" r="2.2"/><text x="10" y="4.42" text-anchor="middle" font-size="3.15" font-weight="700" font-family="Arial,Helvetica,sans-serif" fill="${C}">n</text>`
5112
- ), Zl = ue(
5128
+ ), Gl = ue(
5113
5129
  `<g fill="none" stroke="${C}" stroke-linejoin="miter"><path stroke-width="1.55" stroke-linecap="butt" d="M16.9 12.25H4.9L11.6 3.03"/><path stroke-width="1.7" stroke-linecap="butt" d="M11.05 12.25A6.15 6.15 0 0 0 8.51 7.27"/></g><path fill="${C}" d="M11.05 12.25 9.85 10.55h2.4Z"/><path fill="${C}" d="M8.51 7.27 10.46 7.39 9.23 9.09Z"/>`
5114
- ), jl = ue(
5130
+ ), Kl = ue(
5115
5131
  `<path fill="${C}" d="M5 12V4.2A7.8 7.8 0 0 1 12.8 12Z"/>`
5116
- ), Gl = ue(
5132
+ ), Wl = ue(
5117
5133
  `<g fill="none" stroke-linejoin="miter"><path stroke="currentColor" stroke-width="1.5" stroke-linecap="butt" d="M4.9 11.6A8.3 8.3 0 0 1 13.2 3.3"/><path stroke="currentColor" stroke-width="1.35" stroke-linecap="square" d="M10.4 11.6H13.2V8.8"/><path stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" d="M13.2 11.6v1.7"/><rect stroke="${C}" stroke-width="1.15" x="3.65" y="10.35" width="2.5" height="2.5"/><rect stroke="${C}" stroke-width="1.15" x="11.95" y="2.05" width="2.5" height="2.5"/></g>`
5118
- ), Kl = ue(
5134
+ ), Jl = ue(
5119
5135
  `<circle fill="none" stroke="${C}" stroke-width="1.4" cx="9.1" cy="7.3" r="4.7"/><circle fill="${C}" cx="9.1" cy="7.3" r="1.05"/><path fill="none" stroke="${C}" stroke-width="1.35" stroke-linecap="round" d="M9.1 7.3 13.35 3.7"/><path fill="${C}" d="M13.35 3.7 11.15 4.2 12.55 5.7Z"/>`
5120
- ), Wl = ue(
5136
+ ), ql = ue(
5121
5137
  `<g fill="none" stroke="${C}" stroke-linecap="round" stroke-linejoin="round"><path stroke-width="1.4" d="M4 4.8v7.4h7.6"/><path stroke-width="1.2" stroke-dasharray="1.7 1.2" d="M4 6.9h7M11 12.2V6.9"/></g><path fill="${C}" d="M4 2.5 2.45 4.8h3.1ZM13.8 12.2 11.5 10.7v3Z"/><circle fill="${C}" cx="11" cy="6.9" r="1.3"/>`
5122
- ), Ma = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true"><path d="M 459.5 0 L 475.5 0 L 476.5 1 L 479.5 1 L 485.5 3 Q 487.8 6.2 492.5 7 L 501 14.5 L 505 19.5 L 511 32.5 Q 510.2 35.8 512 36.5 L 512 52.5 L 511 53.5 L 511 56.5 L 509 62.5 L 506 68.5 L 493 89.5 L 483 108.5 L 478 115.5 L 472 127.5 L 467 134.5 L 457 153.5 L 452 160.5 L 442 179.5 L 437 186.5 L 431 198.5 L 440 213.5 L 440 215.5 L 443 220.5 L 447 232.5 L 448 240.5 L 449 241.5 L 449 245.5 L 450 246.5 L 450 254.5 L 451 255.5 L 451 274.5 L 450 275.5 L 450 283.5 L 449 284.5 L 449 289.5 L 448 290.5 L 448 294.5 L 447 295.5 L 446 302.5 L 442 314.5 L 438 322.5 L 438 324.5 L 428 345.5 L 428 347.5 L 425 352.5 L 422 361.5 L 418 368.5 L 418 370.5 L 415 375.5 L 412 384.5 L 408 391.5 L 408 393.5 L 405 398.5 L 402 407.5 L 398 414.5 L 395 423.5 L 391 430.5 L 391 432.5 L 381 453.5 L 381 455.5 L 378 460.5 L 375 469.5 L 371 476.5 L 368 485.5 L 361.5 497 L 353.5 501 L 348.5 501 L 347.5 500 L 344.5 500 L 329.5 495 L 326.5 493 L 321.5 492 L 318.5 490 L 303.5 485 L 289.5 478 L 287.5 478 L 282 473.5 L 279 467.5 L 279 459.5 L 280 458.5 L 280 455.5 L 281 454.5 L 281 451.5 L 282 450.5 L 283 442.5 L 284 441.5 L 286 431.5 L 285.5 431 L 281.5 435 L 259.5 455 L 255.5 457 L 246.5 457 L 223.5 444 L 189.5 421 L 155.5 394 L 133 373.5 L 130 367.5 L 130 359.5 L 134 352.5 L 223 233.5 L 242 206.5 L 254.5 192 L 271.5 177 L 285.5 168 L 299.5 161 L 314.5 156 L 317.5 156 L 318.5 155 L 330.5 154 L 331.5 153 L 352.5 153 L 354 151.5 L 356 146.5 L 372 120.5 L 374 115.5 L 387 94.5 L 397 75.5 L 402 68.5 L 408 56.5 L 413 49.5 L 423 30.5 L 431 17.5 L 439.5 9 L 449.5 3 L 455.5 1 L 458.5 1 L 459.5 0 Z M 466 30 L 459 33 L 454 39 L 448 51 L 443 58 L 433 77 L 428 84 L 414 110 L 409 117 L 407 122 L 405 124 L 403 129 L 401 131 L 399 136 L 384 161 L 386 162 L 388 162 L 396 166 L 409 175 L 422 153 L 424 148 L 429 141 L 431 136 L 433 134 L 435 129 L 437 127 L 439 122 L 444 115 L 454 96 L 459 89 L 469 70 L 474 63 L 482 47 L 482 43 L 480 38 L 475 32 L 469 30 L 466 30 Z M 333 183 L 332 184 L 328 184 L 327 185 L 324 185 L 323 186 L 320 186 L 314 188 L 300 195 L 286 205 L 271 220 L 267 225 L 266 228 L 410 310 L 412 307 L 412 305 L 416 296 L 418 285 L 419 284 L 419 279 L 420 278 L 420 252 L 419 251 L 419 246 L 417 241 L 417 238 L 411 224 L 402 211 L 389 198 L 371 188 L 362 185 L 352 184 L 351 183 L 333 183 Z M 248 252 L 195 322 L 193 326 L 172 353 L 167 361 L 194 384 L 228 409 L 249 422 L 256 417 L 303 372 L 310 368 L 318 368 L 322 370 L 328 378 Q 327 381 329 382 L 329 386 L 326 395 L 326 399 L 323 408 L 323 411 L 322 412 L 322 416 L 319 425 L 319 428 L 318 429 L 318 432 L 317 433 L 317 437 L 314 446 L 314 449 L 313 450 L 313 453 L 312 454 L 316 456 L 318 456 L 331 462 L 343 466 L 351 448 L 351 446 L 354 441 L 354 439 L 357 434 L 357 432 L 364 418 L 364 416 L 367 411 L 367 409 L 370 404 L 370 402 L 377 388 L 377 386 L 380 381 L 380 379 L 383 374 L 383 372 L 387 365 L 390 356 L 393 351 L 393 349 L 396 344 L 397 339 L 375 326 L 373 324 L 368 322 L 366 320 L 361 318 L 354 313 L 349 311 L 347 309 L 342 307 L 340 305 L 335 303 L 321 294 L 316 292 L 314 290 L 309 288 L 307 286 L 302 284 L 295 279 L 276 269 L 248 252 Z "/><path d="M 170.5 100 L 179.5 100 Q 185 102 188 106.5 L 190 110.5 L 190 134.5 L 184.5 142 L 177.5 145 L 171.5 145 L 166.5 143 L 162 138.5 L 159 129.5 L 159 115.5 L 160 114.5 Q 159.2 109.7 161 107.5 L 166.5 102 L 170.5 100 Z "/><path d="M 131.5 140 L 151.5 140 L 156.5 142 L 162 147.5 L 164 151.5 L 164 159.5 L 163 162.5 L 158.5 168 L 152.5 171 L 130.5 171 L 124.5 168 L 122 165.5 L 119 159.5 L 119 151.5 Q 121.3 145.3 126.5 142 L 131.5 140 Z "/><path d="M 197.5 140 L 218.5 140 L 223.5 142 L 228 146.5 L 231 152.5 L 231 158.5 L 229 163.5 L 223.5 169 L 218.5 171 L 197.5 171 L 192.5 169 L 188 164.5 L 186 160.5 L 185 153.5 L 188 146.5 L 191.5 143 L 197.5 140 Z "/><path d="M 171.5 166 L 177.5 166 L 180.5 167 L 187 171.5 L 190 176.5 L 190 200.5 Q 188 206 183.5 209 L 179.5 211 L 173.5 212 L 167.5 210 L 161 203.5 Q 159.2 201.3 160 196.5 L 159 195.5 L 159 181.5 L 162 172.5 L 165.5 169 L 171.5 166 Z "/><path d="M 50.5 223 L 60.5 223 L 68 228.5 L 71 234.5 L 71 256.5 Q 69.1 262.6 64.5 266 L 59.5 268 L 51.5 268 Q 45.3 265.7 42 260.5 L 40 255.5 L 40 235.5 L 42 230.5 L 48.5 224 L 50.5 223 Z "/><path d="M 13.5 263 L 30.5 263 Q 31.5 265 35.5 264 L 43 270.5 L 45 274.5 L 45 282.5 Q 43.1 288.6 38.5 292 L 33.5 294 L 10.5 294 Q 5 292 2 287.5 L 0 283.5 L 0 274.5 Q 2.3 268.3 7.5 265 L 13.5 263 Z "/><path d="M 80.5 263 L 97.5 263 L 103.5 265 L 108 268.5 L 111 273.5 L 112 279.5 L 109 287.5 L 104.5 292 L 100.5 294 L 77.5 294 Q 71.3 291.7 68 286.5 L 66 281.5 L 66 276.5 L 69 269.5 L 72.5 266 L 80.5 263 Z "/><path d="M 54.5 289 L 61.5 290 L 69 296.5 L 71 301.5 L 71 322.5 L 69 327.5 L 63.5 333 L 58.5 335 L 53.5 335 L 46.5 332 L 43 328.5 L 40 321.5 L 40 302.5 Q 41.8 301.8 41 298.5 L 46.5 292 L 54.5 289 Z "/><path d="M 98.5 400 L 107.5 402 L 113 407.5 L 115 411.5 L 115 434.5 Q 112.7 440.7 107.5 444 L 101.5 446 L 96.5 446 L 90.5 443 L 87 439.5 L 84 430.5 L 84 415.5 L 85 414.5 Q 84.3 410.3 86 408.5 L 92.5 402 L 98.5 400 Z "/><path d="M 55.5 441 L 77.5 441 L 80.5 442 L 86 446.5 L 89 451.5 L 89 460.5 Q 86.7 466.7 81.5 470 L 76.5 472 L 56.5 472 L 51.5 470 L 46 464.5 L 44 460.5 L 44 452.5 L 45 449.5 L 49.5 444 L 55.5 441 Z "/><path d="M 121.5 441 L 144.5 441 Q 150.7 443.3 154 448.5 L 156 453.5 L 156 458.5 L 154 464.5 L 148.5 470 L 146.5 470 L 143.5 472 L 122.5 472 L 116.5 469 L 113 465.5 L 111 461.5 L 110 455.5 Q 112 454.5 111 450.5 L 117.5 443 L 121.5 441 Z "/><path d="M 96.5 467 L 103.5 467 L 106.5 468 L 113 473.5 L 115 478.5 L 115 501.5 Q 113 507 108.5 510 L 104.5 512 L 95.5 512 Q 89.3 509.7 86 504.5 Q 84.3 502.7 85 498.5 L 84 497.5 L 84 482.5 L 87 473.5 L 91.5 469 L 96.5 467 Z "/></svg>', Jl = Ma, ql = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" fill="currentColor"/><rect x="14" y="14" width="7" height="7" fill="none" stroke="currentColor" stroke-width="1"/><path d="M12 4a8 8 0 0 1 7.25 7.25" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M20.75 10 L17.25 10 L19 12.5 Z" fill="currentColor"/><path d="M12 20a8 8 0 0 1-8-8" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M6 14 L2.5 14 L4 11 Z" fill="currentColor"/></svg>', Ql = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" style="fill:none"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12.4 3.25H5.5A2.25 2.25 0 0 0 3.25 5.5v9A2.25 2.25 0 0 0 5.5 16.75h9A2.25 2.25 0 0 0 16.75 14.5V8.6"/><g transform="rotate(45 13.2 6.7)"><rect x="11.7" y="1.55" width="3" height="7.45" rx="1.45"/><path d="M11.7 3.2h3"/><path d="M11.7 9 13.2 12.15 14.7 9"/><rect x="12.8" y="7.05" width="0.8" height="1.2" rx="0.4"/></g></g></svg>', ec = '<path fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" stroke-linejoin="miter" d="M2.6 6.8v8.5h5.2l2.2 2.4 2.2-2.4h5.2"/>', Sa = '<g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" transform="rotate(46 14.8 9)"><rect x="13.65" y="4.7" width="2.3" height="5.6" rx="1.05"/><path d="M13.65 10.3 14.8 12.9 15.95 10.3"/></g>';
5138
+ ), Pa = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true"><path d="M 459.5 0 L 475.5 0 L 476.5 1 L 479.5 1 L 485.5 3 Q 487.8 6.2 492.5 7 L 501 14.5 L 505 19.5 L 511 32.5 Q 510.2 35.8 512 36.5 L 512 52.5 L 511 53.5 L 511 56.5 L 509 62.5 L 506 68.5 L 493 89.5 L 483 108.5 L 478 115.5 L 472 127.5 L 467 134.5 L 457 153.5 L 452 160.5 L 442 179.5 L 437 186.5 L 431 198.5 L 440 213.5 L 440 215.5 L 443 220.5 L 447 232.5 L 448 240.5 L 449 241.5 L 449 245.5 L 450 246.5 L 450 254.5 L 451 255.5 L 451 274.5 L 450 275.5 L 450 283.5 L 449 284.5 L 449 289.5 L 448 290.5 L 448 294.5 L 447 295.5 L 446 302.5 L 442 314.5 L 438 322.5 L 438 324.5 L 428 345.5 L 428 347.5 L 425 352.5 L 422 361.5 L 418 368.5 L 418 370.5 L 415 375.5 L 412 384.5 L 408 391.5 L 408 393.5 L 405 398.5 L 402 407.5 L 398 414.5 L 395 423.5 L 391 430.5 L 391 432.5 L 381 453.5 L 381 455.5 L 378 460.5 L 375 469.5 L 371 476.5 L 368 485.5 L 361.5 497 L 353.5 501 L 348.5 501 L 347.5 500 L 344.5 500 L 329.5 495 L 326.5 493 L 321.5 492 L 318.5 490 L 303.5 485 L 289.5 478 L 287.5 478 L 282 473.5 L 279 467.5 L 279 459.5 L 280 458.5 L 280 455.5 L 281 454.5 L 281 451.5 L 282 450.5 L 283 442.5 L 284 441.5 L 286 431.5 L 285.5 431 L 281.5 435 L 259.5 455 L 255.5 457 L 246.5 457 L 223.5 444 L 189.5 421 L 155.5 394 L 133 373.5 L 130 367.5 L 130 359.5 L 134 352.5 L 223 233.5 L 242 206.5 L 254.5 192 L 271.5 177 L 285.5 168 L 299.5 161 L 314.5 156 L 317.5 156 L 318.5 155 L 330.5 154 L 331.5 153 L 352.5 153 L 354 151.5 L 356 146.5 L 372 120.5 L 374 115.5 L 387 94.5 L 397 75.5 L 402 68.5 L 408 56.5 L 413 49.5 L 423 30.5 L 431 17.5 L 439.5 9 L 449.5 3 L 455.5 1 L 458.5 1 L 459.5 0 Z M 466 30 L 459 33 L 454 39 L 448 51 L 443 58 L 433 77 L 428 84 L 414 110 L 409 117 L 407 122 L 405 124 L 403 129 L 401 131 L 399 136 L 384 161 L 386 162 L 388 162 L 396 166 L 409 175 L 422 153 L 424 148 L 429 141 L 431 136 L 433 134 L 435 129 L 437 127 L 439 122 L 444 115 L 454 96 L 459 89 L 469 70 L 474 63 L 482 47 L 482 43 L 480 38 L 475 32 L 469 30 L 466 30 Z M 333 183 L 332 184 L 328 184 L 327 185 L 324 185 L 323 186 L 320 186 L 314 188 L 300 195 L 286 205 L 271 220 L 267 225 L 266 228 L 410 310 L 412 307 L 412 305 L 416 296 L 418 285 L 419 284 L 419 279 L 420 278 L 420 252 L 419 251 L 419 246 L 417 241 L 417 238 L 411 224 L 402 211 L 389 198 L 371 188 L 362 185 L 352 184 L 351 183 L 333 183 Z M 248 252 L 195 322 L 193 326 L 172 353 L 167 361 L 194 384 L 228 409 L 249 422 L 256 417 L 303 372 L 310 368 L 318 368 L 322 370 L 328 378 Q 327 381 329 382 L 329 386 L 326 395 L 326 399 L 323 408 L 323 411 L 322 412 L 322 416 L 319 425 L 319 428 L 318 429 L 318 432 L 317 433 L 317 437 L 314 446 L 314 449 L 313 450 L 313 453 L 312 454 L 316 456 L 318 456 L 331 462 L 343 466 L 351 448 L 351 446 L 354 441 L 354 439 L 357 434 L 357 432 L 364 418 L 364 416 L 367 411 L 367 409 L 370 404 L 370 402 L 377 388 L 377 386 L 380 381 L 380 379 L 383 374 L 383 372 L 387 365 L 390 356 L 393 351 L 393 349 L 396 344 L 397 339 L 375 326 L 373 324 L 368 322 L 366 320 L 361 318 L 354 313 L 349 311 L 347 309 L 342 307 L 340 305 L 335 303 L 321 294 L 316 292 L 314 290 L 309 288 L 307 286 L 302 284 L 295 279 L 276 269 L 248 252 Z "/><path d="M 170.5 100 L 179.5 100 Q 185 102 188 106.5 L 190 110.5 L 190 134.5 L 184.5 142 L 177.5 145 L 171.5 145 L 166.5 143 L 162 138.5 L 159 129.5 L 159 115.5 L 160 114.5 Q 159.2 109.7 161 107.5 L 166.5 102 L 170.5 100 Z "/><path d="M 131.5 140 L 151.5 140 L 156.5 142 L 162 147.5 L 164 151.5 L 164 159.5 L 163 162.5 L 158.5 168 L 152.5 171 L 130.5 171 L 124.5 168 L 122 165.5 L 119 159.5 L 119 151.5 Q 121.3 145.3 126.5 142 L 131.5 140 Z "/><path d="M 197.5 140 L 218.5 140 L 223.5 142 L 228 146.5 L 231 152.5 L 231 158.5 L 229 163.5 L 223.5 169 L 218.5 171 L 197.5 171 L 192.5 169 L 188 164.5 L 186 160.5 L 185 153.5 L 188 146.5 L 191.5 143 L 197.5 140 Z "/><path d="M 171.5 166 L 177.5 166 L 180.5 167 L 187 171.5 L 190 176.5 L 190 200.5 Q 188 206 183.5 209 L 179.5 211 L 173.5 212 L 167.5 210 L 161 203.5 Q 159.2 201.3 160 196.5 L 159 195.5 L 159 181.5 L 162 172.5 L 165.5 169 L 171.5 166 Z "/><path d="M 50.5 223 L 60.5 223 L 68 228.5 L 71 234.5 L 71 256.5 Q 69.1 262.6 64.5 266 L 59.5 268 L 51.5 268 Q 45.3 265.7 42 260.5 L 40 255.5 L 40 235.5 L 42 230.5 L 48.5 224 L 50.5 223 Z "/><path d="M 13.5 263 L 30.5 263 Q 31.5 265 35.5 264 L 43 270.5 L 45 274.5 L 45 282.5 Q 43.1 288.6 38.5 292 L 33.5 294 L 10.5 294 Q 5 292 2 287.5 L 0 283.5 L 0 274.5 Q 2.3 268.3 7.5 265 L 13.5 263 Z "/><path d="M 80.5 263 L 97.5 263 L 103.5 265 L 108 268.5 L 111 273.5 L 112 279.5 L 109 287.5 L 104.5 292 L 100.5 294 L 77.5 294 Q 71.3 291.7 68 286.5 L 66 281.5 L 66 276.5 L 69 269.5 L 72.5 266 L 80.5 263 Z "/><path d="M 54.5 289 L 61.5 290 L 69 296.5 L 71 301.5 L 71 322.5 L 69 327.5 L 63.5 333 L 58.5 335 L 53.5 335 L 46.5 332 L 43 328.5 L 40 321.5 L 40 302.5 Q 41.8 301.8 41 298.5 L 46.5 292 L 54.5 289 Z "/><path d="M 98.5 400 L 107.5 402 L 113 407.5 L 115 411.5 L 115 434.5 Q 112.7 440.7 107.5 444 L 101.5 446 L 96.5 446 L 90.5 443 L 87 439.5 L 84 430.5 L 84 415.5 L 85 414.5 Q 84.3 410.3 86 408.5 L 92.5 402 L 98.5 400 Z "/><path d="M 55.5 441 L 77.5 441 L 80.5 442 L 86 446.5 L 89 451.5 L 89 460.5 Q 86.7 466.7 81.5 470 L 76.5 472 L 56.5 472 L 51.5 470 L 46 464.5 L 44 460.5 L 44 452.5 L 45 449.5 L 49.5 444 L 55.5 441 Z "/><path d="M 121.5 441 L 144.5 441 Q 150.7 443.3 154 448.5 L 156 453.5 L 156 458.5 L 154 464.5 L 148.5 470 L 146.5 470 L 143.5 472 L 122.5 472 L 116.5 469 L 113 465.5 L 111 461.5 L 110 455.5 Q 112 454.5 111 450.5 L 117.5 443 L 121.5 441 Z "/><path d="M 96.5 467 L 103.5 467 L 106.5 468 L 113 473.5 L 115 478.5 L 115 501.5 Q 113 507 108.5 510 L 104.5 512 L 95.5 512 Q 89.3 509.7 86 504.5 Q 84.3 502.7 85 498.5 L 84 497.5 L 84 482.5 L 87 473.5 L 91.5 469 L 96.5 467 Z "/></svg>', Ql = Pa, ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" fill="currentColor"/><rect x="14" y="14" width="7" height="7" fill="none" stroke="currentColor" stroke-width="1"/><path d="M12 4a8 8 0 0 1 7.25 7.25" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M20.75 10 L17.25 10 L19 12.5 Z" fill="currentColor"/><path d="M12 20a8 8 0 0 1-8-8" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M6 14 L2.5 14 L4 11 Z" fill="currentColor"/></svg>', tc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" style="fill:none"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12.4 3.25H5.5A2.25 2.25 0 0 0 3.25 5.5v9A2.25 2.25 0 0 0 5.5 16.75h9A2.25 2.25 0 0 0 16.75 14.5V8.6"/><g transform="rotate(45 13.2 6.7)"><rect x="11.7" y="1.55" width="3" height="7.45" rx="1.45"/><path d="M11.7 3.2h3"/><path d="M11.7 9 13.2 12.15 14.7 9"/><rect x="12.8" y="7.05" width="0.8" height="1.2" rx="0.4"/></g></g></svg>', nc = '<path fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" stroke-linejoin="miter" d="M2.6 6.8v8.5h5.2l2.2 2.4 2.2-2.4h5.2"/>', Ia = '<g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" transform="rotate(46 14.8 9)"><rect x="13.65" y="4.7" width="2.3" height="5.6" rx="1.05"/><path d="M13.65 10.3 14.8 12.9 15.95 10.3"/></g>';
5123
5139
  function ke(e) {
5124
- return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${ec}${e}</svg>`;
5140
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${nc}${e}</svg>`;
5125
5141
  }
5126
- const tc = ke(
5142
+ const rc = ke(
5127
5143
  '<path fill="currentColor" d="M6.4 12.2c-1.85 0-3.3-1.25-3.3-2.85 0-1.35.95-2.5 2.3-2.8.45-1.7 1.95-2.85 3.7-2.85 1.25 0 2.35.55 3.05 1.45.55-.7 1.45-1.15 2.5-1.15 1.85 0 3.25 1.3 3.25 2.95 0 .3-.05.55-.1.8 1.2.4 2.05 1.4 2.05 2.65 0 1.55-1.5 2.8-3.4 2.8H6.4Z"/>'
5128
- ), nc = ke(
5129
- `<rect fill="none" stroke="currentColor" stroke-width="1.35" x="5" y="2.8" width="8.2" height="7.2"/><rect fill="${C}" x="4.2" y="2" width="2" height="2"/><rect fill="${C}" x="12.2" y="9" width="2" height="2"/>${Sa}`
5130
- ), rc = ke(
5131
- `<ellipse fill="none" stroke="currentColor" stroke-width="1.35" cx="9" cy="6.6" rx="4" ry="3.6"/><rect fill="${C}" x="8" y="2.1" width="2" height="2"/><rect fill="${C}" x="4" y="5.6" width="2" height="2"/>${Sa}`
5132
5144
  ), ac = ke(
5133
- '<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M4.4 12.6 10.2 7"/><rect fill="currentColor" x="10.2" y="1.2" width="7.8" height="5.8" rx=".35"/>'
5145
+ `<rect fill="none" stroke="currentColor" stroke-width="1.35" x="5" y="2.8" width="8.2" height="7.2"/><rect fill="${C}" x="4.2" y="2" width="2" height="2"/><rect fill="${C}" x="12.2" y="9" width="2" height="2"/>${Ia}`
5134
5146
  ), oc = ke(
5135
- '<path fill="currentColor" fill-rule="evenodd" d="M10 2.2 15.3 13.1h-2.2l-1.05-2.95H7.95L6.9 13.1H4.7L10 2.2Zm0 3.4-1.15 3.2h2.3L10 5.6Z"/>'
5147
+ `<ellipse fill="none" stroke="currentColor" stroke-width="1.35" cx="9" cy="6.6" rx="4" ry="3.6"/><rect fill="${C}" x="8" y="2.1" width="2" height="2"/><rect fill="${C}" x="4" y="5.6" width="2" height="2"/>${Ia}`
5136
5148
  ), ic = ke(
5149
+ '<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M4.4 12.6 10.2 7"/><rect fill="currentColor" x="10.2" y="1.2" width="7.8" height="5.8" rx=".35"/>'
5150
+ ), sc = ke(
5151
+ '<path fill="currentColor" fill-rule="evenodd" d="M10 2.2 15.3 13.1h-2.2l-1.05-2.95H7.95L6.9 13.1H4.7L10 2.2Zm0 3.4-1.15 3.2h2.3L10 5.6Z"/>'
5152
+ ), lc = ke(
5137
5153
  '<g transform="rotate(-40 10 7.6)" fill="currentColor"><path d="M3.5 6.75h9V5.15L16.7 7.6 12.5 10.05V8.45h-9Z"/></g>'
5138
- ), sc = An(
5154
+ ), cc = An(
5139
5155
  "M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"
5140
- ), Pa = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${C}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`, lc = Pa, cc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M4.5 2h6.4L15.5 6.6V16.5A1.5 1.5 0 0 1 14 18H4.5A1.5 1.5 0 0 1 3 16.5V3.5A1.5 1.5 0 0 1 4.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M10.9 2v4.6h4.6"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 5.8v6M7.2 9.6 10 12.5l2.8-2.9"/></svg>', dc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M15.5 2H9.1L4.5 6.6V16.5A1.5 1.5 0 0 0 6 18h9.5A1.5 1.5 0 0 0 17 16.5V3.5A1.5 1.5 0 0 0 15.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M9.1 2v4.6H4.5"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 14.2V8M7.2 10.4 10 7.5l2.8 2.9"/></svg>', uc = Ma, mc = An(
5156
+ ), za = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${C}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`, dc = za, uc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M4.5 2h6.4L15.5 6.6V16.5A1.5 1.5 0 0 1 14 18H4.5A1.5 1.5 0 0 1 3 16.5V3.5A1.5 1.5 0 0 1 4.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M10.9 2v4.6h4.6"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 5.8v6M7.2 9.6 10 12.5l2.8-2.9"/></svg>', mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M15.5 2H9.1L4.5 6.6V16.5A1.5 1.5 0 0 0 6 18h9.5A1.5 1.5 0 0 0 17 16.5V3.5A1.5 1.5 0 0 0 15.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M9.1 2v4.6H4.5"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 14.2V8M7.2 10.4 10 7.5l2.8 2.9"/></svg>', pc = Pa, fc = An(
5141
5157
  "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
5142
- ), pc = An(
5158
+ ), hc = An(
5143
5159
  "M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176",
5144
5160
  "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"
5145
- ), fc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>', hc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="currentColor"/><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>', gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 3a7 7 0 1 0 0 14 9 9 0 0 1 0-14Z"/></svg>', wc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 6.5 5.5 11h9L10 6.5Z"/></svg>', vc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 13.5 14.5 9h-9L10 13.5Z"/></svg>', lr = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2.6 18 9.8h-2.1V17h-4.4v-4.4H8.5V17H4.1V9.8H2L10 2.6Zm0 1.8L5.3 9.8V15.8h2V11.4h5.4v4.4h2V9.8L10 4.4Z"/></svg>', yc = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ca}<path fill="${C}" d="M14.85 0.85 15.95 4.05 19.15 5.15 15.95 6.25 14.85 9.45 13.75 6.25 10.55 5.15 13.75 4.05Z"/><path fill="${C}" d="M17.55 8.35 18.15 10.15 19.95 10.75 18.15 11.35 17.55 13.15 16.95 11.35 15.15 10.75 16.95 10.15Z"/></svg>`, xc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M8.08 2.1h3.84l.32 1.52a6.4 6.4 0 0 1 1.36.78l1.48-.64 1.92 1.92-.64 1.48c.3.42.54.88.78 1.36l1.52.32v3.84l-1.52.32a6.4 6.4 0 0 1-.78 1.36l.64 1.48-1.92 1.92-1.48-.64a6.4 6.4 0 0 1-1.36.78l-.32 1.52H8.08l-.32-1.52a6.4 6.4 0 0 1-1.36-.78l-1.48.64-1.92-1.92.64-1.48a6.4 6.4 0 0 1-.78-1.36L1.34 11.92V8.08l1.52-.32c.24-.48.48-.94.78-1.36l-.64-1.48 1.92-1.92 1.48.64c.42-.3.88-.54 1.36-.78L8.08 2.1ZM10 7.2A2.8 2.8 0 1 0 10 12.8 2.8 2.8 0 0 0 10 7.2Z"/></svg>', bc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2.5v6M7 5.5h6"/><circle cx="10" cy="14.5" r="3.2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="10" cy="14.5" r="1.1" fill="currentColor"/></svg>', kc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 3.53 16.09 6.97 10.09 10.29 4.18 7 10.09 3.56M10.09 2.4 2.17 7 3.31 7.65 10.09 11.45 17 7.62 18.17 7 10.08 2.37 10.09 2.4Z"/><path fill="currentColor" d="M10.25 14.83 18.17 10.22 17 9.57 10.22 13.57 3.32 9.59 2.17 10.22 10.25 14.83Z"/><path fill="currentColor" d="M10.25 17.63 18.17 13 17 12.37 10.22 16.37 3.32 12.38 2.17 13 10.25 17.63Z"/></svg>', Lc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 5.15 16.09 8.59 10.09 11.91 4.18 8.59 10.09 5.15ZM10.09 4 2.17 8.61 3.31 9.25 10.09 13.06 17 9.24 18.16 8.61 10.08 4 10.09 4Z"/><path fill="currentColor" d="M10.25 16.46 18.17 11.85 17 11.2 10.22 15.2 3.32 11.21 2.17 11.85 10.25 16.46Z"/><path fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" d="M3.5 3.5 16.5 16.5"/></svg>', Ac = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M2.25 2.25h4.878v4.878H2.25V2.25Zm.978.978v2.924h2.924V3.228H3.228Z"/><path fill="currentColor" d="M5.175 20.773V7.128H4.204V21.75H21.75V4.204H7.128v.971H20.773v15.598H5.175Z"/></svg>', Cc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M3 2H2v16h16v-1H8v-5H3V2zm0 11v4h4v-4H3z"/></svg>', Ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M16.98 11L18.5 11L18.5 10L16.98 10C16.86 8.13 16.05 6.44 14.8 5.2L16.88 2.83L16.12 2.17L14.05 4.54C12.79 3.57 11.21 3 9.5 3C5.36 3 2 6.36 2 10.5C2 14.64 5.36 18 9.5 18C13.47 18 16.73 14.91 16.98 11ZM15.98 10C15.86 8.43 15.18 7.01 14.14 5.95L10.6 10L15.98 10ZM13.39 5.29L8.4 11L15.98 11C15.73 14.36 12.92 17 9.5 17C5.91 17 3 14.09 3 10.5C3 6.91 5.91 4 9.5 4C10.96 4 12.31 4.48 13.39 5.29Z"/></svg>', Mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#e75958" d="M22 12H12l5 8.66A10 10 0 0 0 22 12Z"/><path fill="#814dff" d="M17 20.66 12 12 7 20.66A10 10 0 0 0 17 20.66Z"/><path fill="#13b0ce" d="M7 20.66 12 12H2A10 10 0 0 0 7 20.66Z"/><path fill="#4ecd83" d="M2 12H12L7 3.34A10 10 0 0 0 2 12Z"/><path fill="#ffc33f" d="M7 3.34 12 12l5-8.66A10 10 0 0 0 7 3.34Z"/><path fill="#ff9543" d="M17 3.34 12 12H22A10 10 0 0 0 17 3.34Z"/></svg>', Sc = Ea, Pc = Wl, Ic = tc, zc = nc, Bc = rc, Tc = mc, cr = pc, Re = {
5161
+ ), gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>', wc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="currentColor"/><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>', vc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 3a7 7 0 1 0 0 14 9 9 0 0 1 0-14Z"/></svg>', yc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 6.5 5.5 11h9L10 6.5Z"/></svg>', xc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 13.5 14.5 9h-9L10 13.5Z"/></svg>', lr = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2.6 18 9.8h-2.1V17h-4.4v-4.4H8.5V17H4.1V9.8H2L10 2.6Zm0 1.8L5.3 9.8V15.8h2V11.4h5.4v4.4h2V9.8L10 4.4Z"/></svg>', bc = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}<path fill="${C}" d="M14.85 0.85 15.95 4.05 19.15 5.15 15.95 6.25 14.85 9.45 13.75 6.25 10.55 5.15 13.75 4.05Z"/><path fill="${C}" d="M17.55 8.35 18.15 10.15 19.95 10.75 18.15 11.35 17.55 13.15 16.95 11.35 15.15 10.75 16.95 10.15Z"/></svg>`, kc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M8.08 2.1h3.84l.32 1.52a6.4 6.4 0 0 1 1.36.78l1.48-.64 1.92 1.92-.64 1.48c.3.42.54.88.78 1.36l1.52.32v3.84l-1.52.32a6.4 6.4 0 0 1-.78 1.36l.64 1.48-1.92 1.92-1.48-.64a6.4 6.4 0 0 1-1.36.78l-.32 1.52H8.08l-.32-1.52a6.4 6.4 0 0 1-1.36-.78l-1.48.64-1.92-1.92.64-1.48a6.4 6.4 0 0 1-.78-1.36L1.34 11.92V8.08l1.52-.32c.24-.48.48-.94.78-1.36l-.64-1.48 1.92-1.92 1.48.64c.42-.3.88-.54 1.36-.78L8.08 2.1ZM10 7.2A2.8 2.8 0 1 0 10 12.8 2.8 2.8 0 0 0 10 7.2Z"/></svg>', Lc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2.5v6M7 5.5h6"/><circle cx="10" cy="14.5" r="3.2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="10" cy="14.5" r="1.1" fill="currentColor"/></svg>', Ac = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 3.53 16.09 6.97 10.09 10.29 4.18 7 10.09 3.56M10.09 2.4 2.17 7 3.31 7.65 10.09 11.45 17 7.62 18.17 7 10.08 2.37 10.09 2.4Z"/><path fill="currentColor" d="M10.25 14.83 18.17 10.22 17 9.57 10.22 13.57 3.32 9.59 2.17 10.22 10.25 14.83Z"/><path fill="currentColor" d="M10.25 17.63 18.17 13 17 12.37 10.22 16.37 3.32 12.38 2.17 13 10.25 17.63Z"/></svg>', Cc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 5.15 16.09 8.59 10.09 11.91 4.18 8.59 10.09 5.15ZM10.09 4 2.17 8.61 3.31 9.25 10.09 13.06 17 9.24 18.16 8.61 10.08 4 10.09 4Z"/><path fill="currentColor" d="M10.25 16.46 18.17 11.85 17 11.2 10.22 15.2 3.32 11.21 2.17 11.85 10.25 16.46Z"/><path fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" d="M3.5 3.5 16.5 16.5"/></svg>', Ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M2.25 2.25h4.878v4.878H2.25V2.25Zm.978.978v2.924h2.924V3.228H3.228Z"/><path fill="currentColor" d="M5.175 20.773V7.128H4.204V21.75H21.75V4.204H7.128v.971H20.773v15.598H5.175Z"/></svg>', Mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M3 2H2v16h16v-1H8v-5H3V2zm0 11v4h4v-4H3z"/></svg>', Sc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M16.98 11L18.5 11L18.5 10L16.98 10C16.86 8.13 16.05 6.44 14.8 5.2L16.88 2.83L16.12 2.17L14.05 4.54C12.79 3.57 11.21 3 9.5 3C5.36 3 2 6.36 2 10.5C2 14.64 5.36 18 9.5 18C13.47 18 16.73 14.91 16.98 11ZM15.98 10C15.86 8.43 15.18 7.01 14.14 5.95L10.6 10L15.98 10ZM13.39 5.29L8.4 11L15.98 11C15.73 14.36 12.92 17 9.5 17C5.91 17 3 14.09 3 10.5C3 6.91 5.91 4 9.5 4C10.96 4 12.31 4.48 13.39 5.29Z"/></svg>', Pc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#e75958" d="M22 12H12l5 8.66A10 10 0 0 0 22 12Z"/><path fill="#814dff" d="M17 20.66 12 12 7 20.66A10 10 0 0 0 17 20.66Z"/><path fill="#13b0ce" d="M7 20.66 12 12H2A10 10 0 0 0 7 20.66Z"/><path fill="#4ecd83" d="M2 12H12L7 3.34A10 10 0 0 0 2 12Z"/><path fill="#ffc33f" d="M7 3.34 12 12l5-8.66A10 10 0 0 0 7 3.34Z"/><path fill="#ff9543" d="M17 3.34 12 12H22A10 10 0 0 0 17 3.34Z"/></svg>', Ic = Sa, zc = ql, Bc = rc, Tc = ac, Fc = oc, Uc = fc, cr = hc, Re = {
5146
5162
  /** Select tool toolbar icon. */
5147
- select: Ol,
5163
+ select: Hl,
5148
5164
  /** Pan tool toolbar icon. */
5149
- pan: Rl,
5165
+ pan: Dl,
5150
5166
  /** Zoom-to-extents toolbar icon. */
5151
- zoomExtent: Hl,
5167
+ zoomExtent: Nl,
5152
5168
  /** Intelligent zoom-to-extents (dominant cluster) toolbar icon. */
5153
- zoomSmart: yc,
5169
+ zoomSmart: bc,
5154
5170
  /** Zoom-window / per-layer zoom-to-box toolbar icon. */
5155
- zoomBox: Sc,
5171
+ zoomBox: Ic,
5156
5172
  /** Measure-distance toolbar icon. */
5157
- measureDistance: Xl,
5173
+ measureDistance: Zl,
5158
5174
  /** Continuous (chained) distance toolbar icon. */
5159
- measureContinuous: Yl,
5175
+ measureContinuous: jl,
5160
5176
  /** Measure-angle toolbar icon. */
5161
- measureAngle: Zl,
5177
+ measureAngle: Gl,
5162
5178
  /** Measure-arc-length toolbar icon. */
5163
- measureArc: Gl,
5179
+ measureArc: Wl,
5164
5180
  /** Measure-radius toolbar icon. */
5165
- measureRadius: Kl,
5181
+ measureRadius: Jl,
5166
5182
  /** Measure-area toolbar icon. */
5167
- measureArea: jl,
5183
+ measureArea: Kl,
5168
5184
  /** Measure-coordinate toolbar icon. */
5169
- measureCoordinate: Pc,
5185
+ measureCoordinate: zc,
5170
5186
  /** Clear-measurements toolbar icon. */
5171
- clearMeasurements: Jl,
5187
+ clearMeasurements: Ql,
5172
5188
  /** Open layer drawer toolbar icon. */
5173
- layer: Dl,
5189
+ layer: $l,
5174
5190
  /** Drawing layout switcher toolbar icon. */
5175
- layout: Nl,
5191
+ layout: Vl,
5176
5192
  /** Per-layer zoom-to-box button icon (same glyph as zoom window). */
5177
- zoomWindow: Ea,
5193
+ zoomWindow: Sa,
5178
5194
  /** Restore AutoCAD's saved view (VPORT / layout limits). */
5179
5195
  zoomOriginal: lr,
5180
5196
  /** Alias for {@link AcExHtmlIcons.zoomOriginal} (saved-view action). */
5181
5197
  zoomSaved: lr,
5182
5198
  /** “Show all layers” action icon. */
5183
- layerOn: kc,
5199
+ layerOn: Ac,
5184
5200
  /** “Hide all layers” action icon. */
5185
- layerOff: Lc,
5201
+ layerOff: Cc,
5186
5202
  /** Language picker toolbar icon. */
5187
- language: fc,
5203
+ language: gc,
5188
5204
  /** Object-snap parent toolbar icon. */
5189
- osnap: Ac,
5205
+ osnap: Ec,
5190
5206
  /** Orthogonal mode toggle icon. */
5191
- orthoMode: Cc,
5207
+ orthoMode: Mc,
5192
5208
  /** Polar tracking toggle icon. */
5193
- polarTracking: Ec,
5209
+ polarTracking: Sc,
5194
5210
  /** Measure color picker icon. */
5195
- color: Mc,
5211
+ color: Pc,
5196
5212
  /** Collapse toolbar (chevron up). */
5197
- chevronUp: wc,
5213
+ chevronUp: yc,
5198
5214
  /** Expand toolbar (chevron down). */
5199
- chevronDown: vc,
5215
+ chevronDown: xc,
5200
5216
  /** Measure tools parent menu icon. */
5201
- measure: $l,
5217
+ measure: Xl,
5202
5218
  /** Review / annotation tools parent menu icon. */
5203
- annotation: Ql,
5219
+ annotation: tc,
5204
5220
  /** Markup revision cloud. */
5205
- markupCloud: Ic,
5221
+ markupCloud: Bc,
5206
5222
  /** Markup callout. */
5207
- markupCallout: ac,
5223
+ markupCallout: ic,
5208
5224
  /** Markup text. */
5209
- markupText: oc,
5225
+ markupText: sc,
5210
5226
  /** Markup rectangle. */
5211
- markupRect: zc,
5227
+ markupRect: Tc,
5212
5228
  /** Markup circle. */
5213
- markupCircle: Bc,
5229
+ markupCircle: Fc,
5214
5230
  /** Markup arrow. */
5215
- markupArrow: ic,
5231
+ markupArrow: lc,
5216
5232
  /** Markup stamp. */
5217
- markupStamp: sc,
5233
+ markupStamp: cc,
5218
5234
  /** Review list / markup panel. */
5219
- markupPanel: Pa,
5235
+ markupPanel: za,
5220
5236
  /** Measurement list panel. */
5221
- measurementPanel: lc,
5237
+ measurementPanel: dc,
5222
5238
  /** Import markup sidecar JSON. */
5223
- markupImport: cc,
5239
+ markupImport: uc,
5224
5240
  /** Export markup sidecar JSON. */
5225
- markupExport: dc,
5241
+ markupExport: mc,
5226
5242
  /** Show markups (open eye). */
5227
- markupShow: Tc,
5243
+ markupShow: Uc,
5228
5244
  /** Hide markups (slashed eye). */
5229
5245
  markupHide: cr,
5230
5246
  /** @deprecated Prefer {@link markupHide} / {@link markupShow}. */
5231
5247
  markupVisibility: cr,
5232
5248
  /** Clear all markups. */
5233
- clearMarkups: uc,
5249
+ clearMarkups: pc,
5234
5250
  /** Phone settings parent toolbar icon. */
5235
- settings: xc,
5251
+ settings: kc,
5236
5252
  /** Simulated-mouse touch pick toggle. */
5237
- simulatedMouse: bc,
5253
+ simulatedMouse: Lc,
5238
5254
  /** Toggle drawing background between black and white. */
5239
- switchBg: ql,
5255
+ switchBg: ec,
5240
5256
  /** Switch to light UI chrome. */
5241
- themeLight: hc,
5257
+ themeLight: wc,
5242
5258
  /** Switch to dark UI chrome. */
5243
- themeDark: gc
5259
+ themeDark: vc
5244
5260
  };
5245
5261
  function dr(e, t, n) {
5246
5262
  const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? `<span class="mlcad-tool-btn-label" data-i18n-key="${te(a)}" data-i18n-text>${te(t)}</span>` : "";
5247
5263
  return `<button type="button" class="mlcad-tool-btn" title="${te(t)}" aria-label="${te(t)}" ${r}><span class="mlcad-tool-btn-icon" aria-hidden="true">${e}</span>${o}</button>`;
5248
5264
  }
5249
- function pu(e, t, n) {
5265
+ function gu(e, t, n) {
5250
5266
  const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? ` data-i18n-key="${te(a)}" data-i18n-text` : "";
5251
5267
  return `<button type="button" class="mlcad-dropdown-item" role="menuitem" title="${te(t)}" ${r}><span class="mlcad-dropdown-icon" aria-hidden="true">${e}</span><span class="mlcad-dropdown-label"${o}>${te(t)}</span></button>`;
5252
5268
  }
5253
5269
  function te(e) {
5254
5270
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;");
5255
5271
  }
5256
- const Fc = [90, 45, 30, 23, 18, 10, 5], Uc = 90, fu = Uc, _c = {
5272
+ const _c = [90, 45, 30, 23, 18, 10, 5], Oc = 90, wu = Oc, Rc = {
5257
5273
  en: "toolbar.localeEn",
5258
5274
  zh: "toolbar.localeZh",
5259
5275
  cs: "toolbar.localeCs",
5260
5276
  tr: "toolbar.localeTr",
5261
5277
  ar: "toolbar.localeAr"
5262
- }, Oc = {
5278
+ }, Hc = {
5263
5279
  en: "English",
5264
5280
  zh: "中文",
5265
5281
  cs: "Čeština",
5266
5282
  tr: "Türkçe",
5267
5283
  ar: "العربية"
5268
5284
  };
5269
- function hu() {
5285
+ function vu() {
5270
5286
  return `<div id="mlcad-locale-strip-wrap" hidden>
5271
5287
  <div id="mlcad-locale-strip" role="toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.language" aria-label="Language">
5272
5288
  ${ge.map((t) => {
5273
- const n = Oc[t], r = _c[t], a = wa[t];
5289
+ const n = Hc[t], r = Rc[t], a = ya[t];
5274
5290
  return `<button type="button" class="mlcad-tool-btn mlcad-locale-option" data-locale="${t}" data-i18n-key="${r}" data-i18n-attr="title aria-label" title="${n}" aria-label="${n}"><span class="mlcad-tool-btn-icon" aria-hidden="true"><span class="mlcad-locale-option-badge">${a}</span></span><span class="mlcad-tool-btn-label" data-i18n-key="${r}" data-i18n-text>${n}</span></button>`;
5275
5291
  }).join("")}
5276
5292
  </div>
5277
5293
  </div>`;
5278
5294
  }
5279
- function Ia() {
5295
+ function Ba() {
5280
5296
  return `<div id="mlcad-polar-angles" role="group" data-i18n-attr="aria-label" data-i18n-key="settings.polarAngles" aria-label="Polar tracking angles" hidden>
5281
- ${Fc.map(
5297
+ ${_c.map(
5282
5298
  (t) => `<button type="button" class="mlcad-tool-btn mlcad-settings-option-btn mlcad-polar-angle-btn" data-polar-ang="${t}" title="${t}°" aria-label="${t}°"><span class="mlcad-settings-option-indicator" aria-hidden="true"></span><span class="mlcad-settings-option-text">${t}°</span></button>`
5283
5299
  ).join("")}
5284
5300
  </div>`;
5285
5301
  }
5286
- function gu() {
5302
+ function yu() {
5287
5303
  return `<div id="mlcad-snap-strip-wrap" hidden>
5288
5304
  <div id="mlcad-snap-strip" role="toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.snap" aria-label="Object snap">
5289
5305
  ${dr(Re.orthoMode, "Orthogonal mode", {
@@ -5299,10 +5315,10 @@ function gu() {
5299
5315
  "data-i18n-attr": "title aria-label"
5300
5316
  })}
5301
5317
  </div>
5302
- ${Ia()}
5318
+ ${Ba()}
5303
5319
  </div>`;
5304
5320
  }
5305
- const Rc = 600, Hc = 960, Cn = `
5321
+ const Dc = 600, Nc = 960, Cn = `
5306
5322
  :root {
5307
5323
  --mlcad-ui-bg: rgba(24, 26, 30, 0.94);
5308
5324
  --mlcad-ui-bg-elevated: rgba(32, 35, 40, 0.98);
@@ -6440,7 +6456,7 @@ const Rc = 600, Hc = 960, Cn = `
6440
6456
  font-variant-numeric: tabular-nums;
6441
6457
  }
6442
6458
 
6443
- @media (max-width: ${Rc}px) {
6459
+ @media (max-width: ${Dc}px) {
6444
6460
  :root {
6445
6461
  --mlcad-drawer-width: min(280px, calc(100vw - 16px));
6446
6462
  --mlcad-ui-inset: 0px;
@@ -6668,7 +6684,7 @@ const Rc = 600, Hc = 960, Cn = `
6668
6684
  }
6669
6685
 
6670
6686
  /* Pad / coarse pointer: same toolbar as desktop, minus select and pan. */
6671
- @media (max-width: ${Hc}px), (pointer: coarse) {
6687
+ @media (max-width: ${Nc}px), (pointer: coarse) {
6672
6688
  #mlcad-toolbar [data-action="select"],
6673
6689
  #mlcad-toolbar [data-action="pan"] {
6674
6690
  display: none !important;
@@ -6686,7 +6702,7 @@ const Rc = 600, Hc = 960, Cn = `
6686
6702
  }
6687
6703
  `;
6688
6704
  function En(e, t = "measure", n = !0) {
6689
- const r = t === "measure" ? `${Ia()}${Nc()}${Dc()}` : "";
6705
+ const r = t === "measure" ? `${Ba()}${Vc()}${$c()}` : "";
6690
6706
  return `
6691
6707
  <div id="mlcad-loading" aria-hidden="true" style="background:${e}">
6692
6708
  <div class="mlcad-loading-spinner"></div>
@@ -6746,7 +6762,7 @@ function Mn(e, t, n) {
6746
6762
  <button type="button" class="mlcad-drawer-sheet-close" id="${e}" data-i18n-key="${t}" data-i18n-attr="aria-label" aria-label="${n}">${Re.chevronDown}</button>
6747
6763
  </div>`;
6748
6764
  }
6749
- function Dc() {
6765
+ function $c() {
6750
6766
  return `<div id="mlcad-review-drawer" role="dialog" data-i18n-attr="aria-label" data-i18n-key="review.title" aria-label="Review" hidden>
6751
6767
  ${Mn("mlcad-review-sheet-close", "review.close", "Close review")}
6752
6768
  <div class="mlcad-drawer-header">
@@ -6798,7 +6814,7 @@ function Dc() {
6798
6814
  </div>
6799
6815
  </div>`;
6800
6816
  }
6801
- function Nc() {
6817
+ function Vc() {
6802
6818
  return `<div id="mlcad-measure-drawer" role="dialog" data-i18n-attr="aria-label" data-i18n-key="measurePanel.title" aria-label="Measurements" hidden>
6803
6819
  ${Mn("mlcad-measure-sheet-close", "measurePanel.close", "Close measurements")}
6804
6820
  <div class="mlcad-drawer-header">
@@ -6829,9 +6845,9 @@ function Nc() {
6829
6845
  </div>
6830
6846
  </div>`;
6831
6847
  }
6832
- function wu(e, t) {
6848
+ function xu(e, t) {
6833
6849
  var f;
6834
- const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.encoded ?? Gi(e), a = t.viewerRuntime, o = Ji(), i = r.compression, s = ((f = t.accessManifest) == null ? void 0 : f.encrypted) === !0, l = `#${e.meta.background.toString(16).padStart(6, "0")}`, d = Ve(e.meta.locale) ?? "en", c = e.meta.viewerMode ?? "measure", u = e.meta.exportLayouts !== !1, p = t.accessManifest ? ` <script id="mlcad-access" type="application/json">${Fa(
6850
+ const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.encoded ?? Wi(e), a = t.viewerRuntime, o = Qi(), i = r.compression, s = ((f = t.accessManifest) == null ? void 0 : f.encrypted) === !0, l = `#${e.meta.background.toString(16).padStart(6, "0")}`, d = Ve(e.meta.locale) ?? "en", c = e.meta.viewerMode ?? "measure", u = e.meta.exportLayouts !== !1, p = t.accessManifest ? ` <script id="mlcad-access" type="application/json">${_a(
6835
6851
  JSON.stringify(t.accessManifest)
6836
6852
  )}<\/script>
6837
6853
  ` : "", m = s ? `${o}+aes-gcm;base85` : `${o}+${i};base85`;
@@ -6841,20 +6857,20 @@ function wu(e, t) {
6841
6857
  <meta charset="utf-8" />
6842
6858
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6843
6859
  <meta name="generator" content="mlightcad-cad-html-plugin" />
6844
- <title>${Ba(n)}</title>
6860
+ <title>${Fa(n)}</title>
6845
6861
  <style>${Cn}</style>
6846
6862
  </head>
6847
6863
  <body>
6848
6864
  ${En(l, c, u)}
6849
6865
  ${p} <script id="mlcad-snapshot" type="${m}">${r.payload}<\/script>
6850
- <script>${Ta(a)}<\/script>
6866
+ <script>${Ua(a)}<\/script>
6851
6867
  </body>
6852
6868
  </html>`;
6853
6869
  }
6854
- function za(e, t) {
6870
+ function Ta(e, t) {
6855
6871
  var c;
6856
6872
  const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = (c = t.manifestUrl) == null ? void 0 : c.trim(), d = JSON.stringify(
6857
- l && l !== Aa ? { manifestUrl: l } : {}
6873
+ l && l !== Ea ? { manifestUrl: l } : {}
6858
6874
  );
6859
6875
  return `<!DOCTYPE html>
6860
6876
  <html lang="${o}">
@@ -6862,51 +6878,51 @@ function za(e, t) {
6862
6878
  <meta charset="utf-8" />
6863
6879
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6864
6880
  <meta name="generator" content="mlightcad-cad-html-plugin" />
6865
- <title>${Ba(n)}</title>
6881
+ <title>${Fa(n)}</title>
6866
6882
  <style>${Cn}</style>
6867
6883
  </head>
6868
6884
  <body>
6869
6885
  ${En(a, i, s)}
6870
- <script id="mlcad-package" type="application/json">${Fa(
6886
+ <script id="mlcad-package" type="application/json">${_a(
6871
6887
  d
6872
6888
  )}<\/script>
6873
- <script>${Ta(r)}<\/script>
6889
+ <script>${Ua(r)}<\/script>
6874
6890
  </body>
6875
6891
  </html>`;
6876
6892
  }
6877
- function Ba(e) {
6893
+ function Fa(e) {
6878
6894
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
6879
6895
  }
6880
- function Ta(e) {
6896
+ function Ua(e) {
6881
6897
  return e.replace(/<\/script/gi, "<\\/script");
6882
6898
  }
6883
- function Fa(e) {
6899
+ function _a(e) {
6884
6900
  return e.replace(/</g, "\\u003c");
6885
6901
  }
6886
- const Ua = 1, $c = 600 * 1e3, Vc = 1e5, Xc = 16, en = 12, Yc = {
6902
+ const Oa = 1, Xc = 600 * 1e3, Yc = 1e5, Zc = 16, en = 12, jc = {
6887
6903
  en: "en",
6888
6904
  zh: "zh-CN",
6889
6905
  cs: "cs",
6890
6906
  tr: "tr",
6891
6907
  ar: "ar"
6892
6908
  };
6893
- function vu(e, t = Date.now(), n) {
6909
+ function bu(e, t = Date.now(), n) {
6894
6910
  return e === "never" ? null : e === "custom" ? n ?? null : t + e * 24 * 60 * 60 * 1e3;
6895
6911
  }
6896
- function _a(e) {
6912
+ function Ra(e) {
6897
6913
  var n;
6898
6914
  const t = !!((n = e.password) != null && n.trim());
6899
6915
  return e.expiresAt != null || t;
6900
6916
  }
6901
- function yu(e, t = Date.now()) {
6917
+ function ku(e, t = Date.now()) {
6902
6918
  return e.expiresAt != null && t > e.expiresAt;
6903
6919
  }
6904
- function xu(e, t = Date.now()) {
6920
+ function Lu(e, t = Date.now()) {
6905
6921
  const n = e - t;
6906
- return n > 0 && n <= $c;
6922
+ return n > 0 && n <= Xc;
6907
6923
  }
6908
- function bu(e, t = "en") {
6909
- const n = Yc[t] ?? t;
6924
+ function Au(e, t = "en") {
6925
+ const n = jc[t] ?? t;
6910
6926
  try {
6911
6927
  return new Date(e).toLocaleString(n, {
6912
6928
  year: "numeric",
@@ -6921,36 +6937,36 @@ function bu(e, t = "en") {
6921
6937
  return new Date(e).toISOString();
6922
6938
  }
6923
6939
  }
6924
- function ku(e) {
6940
+ function Cu(e) {
6925
6941
  const t = Math.max(0, Math.ceil(e / 1e3)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), a = t % 60, o = String(r).padStart(2, "0"), i = String(a).padStart(2, "0");
6926
6942
  return n > 0 ? `${n}:${o}:${i}` : `${r}:${i}`;
6927
6943
  }
6928
- function Lu(e) {
6944
+ function Eu(e) {
6929
6945
  const t = e == null ? void 0 : e.trim();
6930
6946
  if (!t)
6931
6947
  return null;
6932
6948
  try {
6933
6949
  const n = JSON.parse(t);
6934
- return (n == null ? void 0 : n.v) !== Ua ? null : n;
6950
+ return (n == null ? void 0 : n.v) !== Oa ? null : n;
6935
6951
  } catch {
6936
6952
  return null;
6937
6953
  }
6938
6954
  }
6939
6955
  function ot(e) {
6940
6956
  var n;
6941
- if (!_a(e))
6957
+ if (!Ra(e))
6942
6958
  return;
6943
6959
  const t = !!((n = e.password) != null && n.trim());
6944
6960
  return {
6945
- v: Ua,
6961
+ v: Oa,
6946
6962
  expiresAt: e.expiresAt,
6947
6963
  encrypted: t,
6948
6964
  ...t && e.salt ? { salt: e.salt } : {}
6949
6965
  };
6950
6966
  }
6951
6967
  async function Sn(e, t) {
6952
- const n = t != null && t.trim() ? new Uint8Array(Ra(t)) : crypto.getRandomValues(new Uint8Array(Xc));
6953
- return { key: await Kc(e, n), salt: Oa(n) };
6968
+ const n = t != null && t.trim() ? new Uint8Array(Da(t)) : crypto.getRandomValues(new Uint8Array(Zc));
6969
+ return { key: await Jc(e, n), salt: Ha(n) };
6954
6970
  }
6955
6971
  async function Pn(e, t) {
6956
6972
  const n = crypto.getRandomValues(new Uint8Array(en)), r = new Uint8Array(t), a = new Uint8Array(
@@ -6964,33 +6980,33 @@ async function In(e, t) {
6964
6980
  await crypto.subtle.decrypt({ name: "AES-GCM", iv: n }, e, r)
6965
6981
  );
6966
6982
  }
6967
- async function Zc(e, t, n = "base85") {
6983
+ async function Gc(e, t, n = "base85") {
6968
6984
  const { key: r, salt: a } = await Sn(e), o = lt(t, n), i = await Pn(r, o);
6969
6985
  return {
6970
6986
  encryptedPayload: Ne(i, n),
6971
6987
  salt: a
6972
6988
  };
6973
6989
  }
6974
- async function Au(e, t, n, r = "base85") {
6990
+ async function Mu(e, t, n, r = "base85") {
6975
6991
  const { key: a } = await Sn(e, n), o = await In(
6976
6992
  a,
6977
6993
  lt(t, r)
6978
6994
  );
6979
6995
  return Ne(o, r);
6980
6996
  }
6981
- function jc(e) {
6982
- return Oa(e);
6997
+ function Kc(e) {
6998
+ return Ha(e);
6983
6999
  }
6984
- function Gc(e) {
6985
- return Ra(e);
7000
+ function Wc(e) {
7001
+ return Da(e);
6986
7002
  }
6987
- async function Cu(e, t) {
7003
+ async function Su(e, t) {
6988
7004
  var r;
6989
- if (!_a(t))
7005
+ if (!Ra(t))
6990
7006
  return { encoded: e };
6991
7007
  const n = (r = t.password) == null ? void 0 : r.trim();
6992
7008
  if (n) {
6993
- const { encryptedPayload: a, salt: o } = await Zc(
7009
+ const { encryptedPayload: a, salt: o } = await Gc(
6994
7010
  n,
6995
7011
  e.payload
6996
7012
  );
@@ -7013,7 +7029,7 @@ async function Cu(e, t) {
7013
7029
  })
7014
7030
  };
7015
7031
  }
7016
- async function Kc(e, t) {
7032
+ async function Jc(e, t) {
7017
7033
  const n = new TextEncoder(), r = await crypto.subtle.importKey(
7018
7034
  "raw",
7019
7035
  n.encode(e),
@@ -7025,7 +7041,7 @@ async function Kc(e, t) {
7025
7041
  {
7026
7042
  name: "PBKDF2",
7027
7043
  salt: new Uint8Array(t),
7028
- iterations: Vc,
7044
+ iterations: Yc,
7029
7045
  hash: "SHA-256"
7030
7046
  },
7031
7047
  r,
@@ -7034,40 +7050,40 @@ async function Kc(e, t) {
7034
7050
  ["encrypt", "decrypt"]
7035
7051
  );
7036
7052
  }
7037
- function Oa(e) {
7053
+ function Ha(e) {
7038
7054
  let t = "";
7039
7055
  for (let n = 0; n < e.length; n++)
7040
7056
  t += String.fromCharCode(e[n]);
7041
7057
  return btoa(t);
7042
7058
  }
7043
- function Ra(e) {
7059
+ function Da(e) {
7044
7060
  const t = atob(e.trim()), n = new Uint8Array(t.length);
7045
7061
  for (let r = 0; r < t.length; r++)
7046
7062
  n[r] = t.charCodeAt(r);
7047
7063
  return n;
7048
7064
  }
7049
- const Wc = 256;
7050
- function Jc(e, t = ut) {
7051
- return !(t > 0) || dn(e) <= t ? [e] : e.indices && e.indices.length >= 2 ? ed(e, t) : Qc(e, t);
7065
+ const qc = 256;
7066
+ function Qc(e, t = ut) {
7067
+ return !(t > 0) || dn(e) <= t ? [e] : e.indices && e.indices.length >= 2 ? nd(e, t) : td(e, t);
7052
7068
  }
7053
- function qc(e, t = ut) {
7054
- return e.texture ? [e] : !(t > 0) || un(e) <= t ? [e] : e.points ? nd(e, t) : !e.indices || e.indices.length < 3 ? Da(e, t) : ad(e, t);
7069
+ function ed(e, t = ut) {
7070
+ return e.texture ? [e] : !(t > 0) || un(e) <= t ? [e] : e.points ? ad(e, t) : !e.indices || e.indices.length < 3 ? $a(e, t) : id(e, t);
7055
7071
  }
7056
- function Ha(e) {
7072
+ function Na(e) {
7057
7073
  return e.linePattern ? 64 + e.linePattern.pattern.length * 8 : 0;
7058
7074
  }
7059
7075
  function zn(e) {
7060
7076
  return (e.hatchPattern ? 128 : 0) + (e.gradientFill ? 64 : 0);
7061
7077
  }
7062
7078
  function Xe(e, t, n) {
7063
- const r = e - Wc - t;
7079
+ const r = e - qc - t;
7064
7080
  return r < n ? 1 : Math.max(1, Math.floor(r / n));
7065
7081
  }
7066
- function Qc(e, t) {
7082
+ function td(e, t) {
7067
7083
  var s;
7068
7084
  const n = (((s = e.lineDistances) == null ? void 0 : s.length) ?? 0) >= 2, r = 24 + (n ? 8 : 0), a = Xe(
7069
7085
  t,
7070
- Ha(e),
7086
+ Na(e),
7071
7087
  r
7072
7088
  ), o = e.positions.length / 6 | 0;
7073
7089
  if (o <= 1)
@@ -7080,7 +7096,7 @@ function Qc(e, t) {
7080
7096
  offset: e.offset,
7081
7097
  positions: e.positions.slice(c, c + d * 6)
7082
7098
  };
7083
- if (Va(e, u), n && e.lineDistances) {
7099
+ if (Ya(e, u), n && e.lineDistances) {
7084
7100
  const p = l * 2;
7085
7101
  u.lineDistances = e.lineDistances.slice(
7086
7102
  p,
@@ -7091,22 +7107,22 @@ function Qc(e, t) {
7091
7107
  }
7092
7108
  return i.length > 0 ? i : [e];
7093
7109
  }
7094
- function ed(e, t) {
7110
+ function nd(e, t) {
7095
7111
  var s;
7096
7112
  const n = e.indices, a = 32 + ((((s = e.lineDistances) == null ? void 0 : s.length) ?? 0) > 0 ? 8 : 0), o = Xe(
7097
7113
  t,
7098
- Ha(e),
7114
+ Na(e),
7099
7115
  a
7100
7116
  ), i = [];
7101
7117
  for (let l = 0; l + 1 < n.length; ) {
7102
7118
  const d = Math.min(o * 2, n.length - l), c = d - d % 2;
7103
7119
  if (c < 2) break;
7104
- i.push(td(e, l, c)), l += c;
7120
+ i.push(rd(e, l, c)), l += c;
7105
7121
  }
7106
7122
  return i.length > 0 ? i : [e];
7107
7123
  }
7108
- function td(e, t, n) {
7109
- const r = $a(
7124
+ function rd(e, t, n) {
7125
+ const r = Xa(
7110
7126
  e.positions,
7111
7127
  e.indices.subarray(t, t + n),
7112
7128
  e.lineDistances ? [e.lineDistances] : [],
@@ -7118,12 +7134,12 @@ function td(e, t, n) {
7118
7134
  positions: r.positions,
7119
7135
  indices: r.indices
7120
7136
  };
7121
- return Va(e, a), r.attributes[0] && r.attributes[0].length > 0 && (a.lineDistances = r.attributes[0]), a;
7137
+ return Ya(e, a), r.attributes[0] && r.attributes[0].length > 0 && (a.lineDistances = r.attributes[0]), a;
7122
7138
  }
7123
- function nd(e, t) {
7124
- return e.indices && e.indices.length > 0 ? rd(e, t) : Da(e, t);
7139
+ function ad(e, t) {
7140
+ return e.indices && e.indices.length > 0 ? od(e, t) : $a(e, t);
7125
7141
  }
7126
- function rd(e, t) {
7142
+ function od(e, t) {
7127
7143
  const n = e.indices, r = 16 + (e.uvs ? 8 : 0) + (e.gradientPositions ? 8 : 0), a = Xe(
7128
7144
  t,
7129
7145
  zn(e),
@@ -7132,11 +7148,11 @@ function rd(e, t) {
7132
7148
  for (let i = 0; i < n.length; ) {
7133
7149
  const s = Math.min(a, n.length - i);
7134
7150
  if (s < 1) break;
7135
- o.push(Na(e, i, s)), i += s;
7151
+ o.push(Va(e, i, s)), i += s;
7136
7152
  }
7137
7153
  return o.length > 0 ? o : [e];
7138
7154
  }
7139
- function Da(e, t) {
7155
+ function $a(e, t) {
7140
7156
  const n = e.positions.length / 3 | 0;
7141
7157
  if (n <= 1)
7142
7158
  return [e];
@@ -7148,11 +7164,11 @@ function Da(e, t) {
7148
7164
  for (let l = 0; l < n; l += i) {
7149
7165
  const d = Math.min(i, n - l), c = d - d % o;
7150
7166
  if (c < o) break;
7151
- s.push(od(e, l, c));
7167
+ s.push(sd(e, l, c));
7152
7168
  }
7153
7169
  return s.length > 0 ? s : [e];
7154
7170
  }
7155
- function ad(e, t) {
7171
+ function id(e, t) {
7156
7172
  const n = e.indices, r = 48 + (e.uvs ? 24 : 0) + (e.gradientPositions ? 24 : 0), a = Xe(
7157
7173
  t,
7158
7174
  zn(e),
@@ -7161,26 +7177,26 @@ function ad(e, t) {
7161
7177
  for (let i = 0; i + 2 < n.length; ) {
7162
7178
  const s = Math.min(a * 3, n.length - i), l = s - s % 3;
7163
7179
  if (l < 3) break;
7164
- o.push(Na(e, i, l)), i += l;
7180
+ o.push(Va(e, i, l)), i += l;
7165
7181
  }
7166
7182
  return o.length > 0 ? o : [e];
7167
7183
  }
7168
- function od(e, t, n) {
7184
+ function sd(e, t, n) {
7169
7185
  const r = t * 3, a = {
7170
7186
  layer: e.layer,
7171
7187
  color: e.color,
7172
7188
  offset: e.offset,
7173
7189
  positions: e.positions.slice(r, r + n * 3)
7174
7190
  };
7175
- return Xa(e, a), e.uvs && (a.uvs = e.uvs.slice(t * 2, (t + n) * 2)), e.gradientPositions && (a.gradientPositions = e.gradientPositions.slice(
7191
+ return Za(e, a), e.uvs && (a.uvs = e.uvs.slice(t * 2, (t + n) * 2)), e.gradientPositions && (a.gradientPositions = e.gradientPositions.slice(
7176
7192
  t * 2,
7177
7193
  (t + n) * 2
7178
7194
  )), a;
7179
7195
  }
7180
- function Na(e, t, n) {
7196
+ function Va(e, t, n) {
7181
7197
  const r = [], a = [];
7182
7198
  e.uvs && (r.push(e.uvs), a.push(2)), e.gradientPositions && (r.push(e.gradientPositions), a.push(2));
7183
- const o = $a(
7199
+ const o = Xa(
7184
7200
  e.positions,
7185
7201
  e.indices.subarray(t, t + n),
7186
7202
  r,
@@ -7192,11 +7208,11 @@ function Na(e, t, n) {
7192
7208
  positions: o.positions,
7193
7209
  indices: o.indices
7194
7210
  };
7195
- Xa(e, i);
7211
+ Za(e, i);
7196
7212
  let s = 0;
7197
7213
  return e.uvs && (i.uvs = o.attributes[s++]), e.gradientPositions && (i.gradientPositions = o.attributes[s]), i;
7198
7214
  }
7199
- function $a(e, t, n, r) {
7215
+ function Xa(e, t, n, r) {
7200
7216
  const a = /* @__PURE__ */ new Map(), o = [], i = new Uint32Array(t.length), s = n.map(() => []);
7201
7217
  for (let l = 0; l < t.length; l++) {
7202
7218
  const d = t[l];
@@ -7223,13 +7239,13 @@ function $a(e, t, n, r) {
7223
7239
  attributes: s.map((l) => Float32Array.from(l))
7224
7240
  };
7225
7241
  }
7226
- function Va(e, t) {
7242
+ function Ya(e, t) {
7227
7243
  e.linePattern && (t.linePattern = e.linePattern), e.lineWidth != null && (t.lineWidth = e.lineWidth), e.renderOrder != null && (t.renderOrder = e.renderOrder), e.excludeFromOsnap && (t.excludeFromOsnap = !0);
7228
7244
  }
7229
- function Xa(e, t) {
7245
+ function Za(e, t) {
7230
7246
  e.hatchPattern && (t.hatchPattern = e.hatchPattern), e.gradientFill && (t.gradientFill = e.gradientFill), e.side != null && (t.side = e.side), e.renderOrder != null && (t.renderOrder = e.renderOrder), e.points && (t.points = !0);
7231
7247
  }
7232
- function id(e, t, n = ut) {
7248
+ function ld(e, t, n = ut) {
7233
7249
  const r = [];
7234
7250
  let a = {
7235
7251
  lineBatches: [],
@@ -7246,24 +7262,24 @@ function id(e, t, n = ut) {
7246
7262
  a.estimatedBytes + c > t && (a.lineBatches.length > 0 || a.meshBatches.length > 0) && o(), a.meshBatches.push(d), a.estimatedBytes += c;
7247
7263
  }, l = Math.min(t, n);
7248
7264
  for (const d of e.lineBatches)
7249
- for (const c of Jc(d, l))
7265
+ for (const c of Qc(d, l))
7250
7266
  i(c);
7251
7267
  for (const d of e.meshBatches)
7252
- for (const c of qc(d, l))
7268
+ for (const c of ed(d, l))
7253
7269
  s(c);
7254
7270
  return (r.length === 0 || a.lineBatches.length > 0 || a.meshBatches.length > 0) && o(), r.length === 0 && r.push({ lineBatches: [], meshBatches: [], estimatedBytes: 64 }), r;
7255
7271
  }
7256
- function Ya(e, t) {
7272
+ function ja(e, t) {
7257
7273
  if (e.version !== D)
7258
7274
  throw new Error(`Unsupported snapshot version: ${e.version}`);
7259
- const n = t.maxChunkBytes ?? Al, r = t.maxBatchBytes ?? ut, a = t.maxOsnapChunkBytes ?? n, o = t.compressChunks !== !1, i = o ? "acex.gz" : "acex", s = o ? "osnap.gz" : "osnap", l = re, d = dd(
7275
+ const n = t.maxChunkBytes ?? El, r = t.maxBatchBytes ?? ut, a = t.maxOsnapChunkBytes ?? n, o = t.compressChunks !== !1, i = o ? "acex.gz" : "acex", s = o ? "osnap.gz" : "osnap", l = re, d = md(
7260
7276
  e.layouts,
7261
7277
  e.activeLayoutBtrId
7262
7278
  ), c = [], u = [], p = /* @__PURE__ */ new Map();
7263
7279
  return d.forEach((m, f) => {
7264
7280
  var b;
7265
7281
  p.set(m.btrId, f);
7266
- const h = id(m, n, r), w = [];
7282
+ const h = ld(m, n, r), w = [];
7267
7283
  h.forEach((x, E) => {
7268
7284
  const A = `L${f}-${String(E).padStart(3, "0")}`, M = `chunks/${A}.${i}`;
7269
7285
  w.push(A), c.push({
@@ -7290,7 +7306,7 @@ function Ya(e, t) {
7290
7306
  chunkIds: w
7291
7307
  }, g = (b = m.osnap) == null ? void 0 : b.primitives;
7292
7308
  if (g && g.length > 0) {
7293
- const x = Ii(
7309
+ const x = Bi(
7294
7310
  g,
7295
7311
  a
7296
7312
  ), E = [];
@@ -7309,7 +7325,7 @@ function Ya(e, t) {
7309
7325
  u.push(v);
7310
7326
  }), { jobs: c, layoutRefs: u, layoutIndexByBtrId: p, manifestFileName: l, compressChunks: o };
7311
7327
  }
7312
- function Za(e, t, n, r, a) {
7328
+ function Ga(e, t, n, r, a) {
7313
7329
  var h, w;
7314
7330
  const o = [], i = [], s = [];
7315
7331
  for (const v of a) {
@@ -7346,7 +7362,7 @@ function Za(e, t, n, r, a) {
7346
7362
  ...i.filter((v) => !u.has(v.id))
7347
7363
  ], m = {
7348
7364
  format: "acex-package",
7349
- packageVersion: ka,
7365
+ packageVersion: Aa,
7350
7366
  snapshotVersion: D,
7351
7367
  meta: e.meta,
7352
7368
  layers: e.layers,
@@ -7365,7 +7381,7 @@ function Za(e, t, n, r, a) {
7365
7381
  files: s
7366
7382
  };
7367
7383
  }
7368
- function sd(e, t) {
7384
+ function cd(e, t) {
7369
7385
  if (e.kind === "geometry") {
7370
7386
  if (!t) {
7371
7387
  const i = dt(e.chunk);
@@ -7375,7 +7391,7 @@ function sd(e, t) {
7375
7391
  compressed: i
7376
7392
  };
7377
7393
  }
7378
- const { uncompressed: a, compressed: o } = bl(e.chunk);
7394
+ const { uncompressed: a, compressed: o } = Ll(e.chunk);
7379
7395
  return {
7380
7396
  job: e,
7381
7397
  uncompressedByteLength: a.byteLength,
@@ -7392,7 +7408,7 @@ function sd(e, t) {
7392
7408
  compressed: a
7393
7409
  };
7394
7410
  }
7395
- const { uncompressed: n, compressed: r } = zi({
7411
+ const { uncompressed: n, compressed: r } = Ti({
7396
7412
  primitives: e.primitives
7397
7413
  });
7398
7414
  return {
@@ -7401,7 +7417,7 @@ function sd(e, t) {
7401
7417
  compressed: r
7402
7418
  };
7403
7419
  }
7404
- async function ld(e, t) {
7420
+ async function dd(e, t) {
7405
7421
  if (e.kind === "geometry") {
7406
7422
  if (!t) {
7407
7423
  const i = dt(e.chunk);
@@ -7411,7 +7427,7 @@ async function ld(e, t) {
7411
7427
  compressed: i
7412
7428
  };
7413
7429
  }
7414
- const { uncompressed: a, compressed: o } = await kl(e.chunk);
7430
+ const { uncompressed: a, compressed: o } = await Al(e.chunk);
7415
7431
  return {
7416
7432
  job: e,
7417
7433
  uncompressedByteLength: a.byteLength,
@@ -7428,7 +7444,7 @@ async function ld(e, t) {
7428
7444
  compressed: a
7429
7445
  };
7430
7446
  }
7431
- const { uncompressed: n, compressed: r } = await Bi({
7447
+ const { uncompressed: n, compressed: r } = await Fi({
7432
7448
  primitives: e.primitives
7433
7449
  });
7434
7450
  return {
@@ -7437,15 +7453,15 @@ async function ld(e, t) {
7437
7453
  compressed: r
7438
7454
  };
7439
7455
  }
7440
- function cd(e, t = {}) {
7456
+ function ud(e, t = {}) {
7441
7457
  const {
7442
7458
  jobs: n,
7443
7459
  layoutRefs: r,
7444
7460
  layoutIndexByBtrId: a,
7445
7461
  manifestFileName: o,
7446
7462
  compressChunks: i
7447
- } = Ya(e, t), s = n.map((l) => sd(l, i));
7448
- return Za(
7463
+ } = ja(e, t), s = n.map((l) => cd(l, i));
7464
+ return Ga(
7449
7465
  e,
7450
7466
  r,
7451
7467
  a,
@@ -7453,17 +7469,17 @@ function cd(e, t = {}) {
7453
7469
  s
7454
7470
  );
7455
7471
  }
7456
- async function ja(e, t = {}) {
7472
+ async function Ka(e, t = {}) {
7457
7473
  const {
7458
7474
  jobs: n,
7459
7475
  layoutRefs: r,
7460
7476
  layoutIndexByBtrId: a,
7461
7477
  manifestFileName: o,
7462
7478
  compressChunks: i
7463
- } = Ya(e, t), s = await Promise.all(
7464
- n.map((l) => ld(l, i))
7479
+ } = ja(e, t), s = await Promise.all(
7480
+ n.map((l) => dd(l, i))
7465
7481
  );
7466
- return Za(
7482
+ return Ga(
7467
7483
  e,
7468
7484
  r,
7469
7485
  a,
@@ -7471,8 +7487,8 @@ async function ja(e, t = {}) {
7471
7487
  s
7472
7488
  );
7473
7489
  }
7474
- function Eu(e, t) {
7475
- const n = cd(e, t), r = za(e, {
7490
+ function Pu(e, t) {
7491
+ const n = ud(e, t), r = Ta(e, {
7476
7492
  title: e.meta.title,
7477
7493
  viewerRuntime: t.viewerRuntime,
7478
7494
  ...t.manifestUrl ? { manifestUrl: t.manifestUrl } : {}
@@ -7484,8 +7500,8 @@ function Eu(e, t) {
7484
7500
  files: [{ path: "viewer.html", bytes: ve(r) }, ...n.files]
7485
7501
  };
7486
7502
  }
7487
- async function Mu(e, t) {
7488
- const n = await ja(e, t), r = za(e, {
7503
+ async function Iu(e, t) {
7504
+ const n = await Ka(e, t), r = Ta(e, {
7489
7505
  title: e.meta.title,
7490
7506
  viewerRuntime: t.viewerRuntime,
7491
7507
  ...t.manifestUrl ? { manifestUrl: t.manifestUrl } : {}
@@ -7497,12 +7513,12 @@ async function Mu(e, t) {
7497
7513
  files: [{ path: "viewer.html", bytes: ve(r) }, ...n.files]
7498
7514
  };
7499
7515
  }
7500
- function dd(e, t) {
7516
+ function md(e, t) {
7501
7517
  const n = e.find((a) => a.btrId === t), r = e.filter((a) => a.btrId !== t);
7502
7518
  return n ? [n, ...r] : [...e];
7503
7519
  }
7504
- const ud = "application/vnd.mlightcad.acex-chunk;base85", Su = "application/vnd.mlightcad.acex-chunk;base64", md = "application/vnd.mlightcad.acex-chunk+aes-gcm;base85", Pu = "application/vnd.mlightcad.acex-chunk+aes-gcm;base64", ce = "data-acex-href";
7505
- function pd(e) {
7520
+ const pd = "application/vnd.mlightcad.acex-chunk;base85", zu = "application/vnd.mlightcad.acex-chunk;base64", fd = "application/vnd.mlightcad.acex-chunk+aes-gcm;base85", Bu = "application/vnd.mlightcad.acex-chunk+aes-gcm;base64", ce = "data-acex-href";
7521
+ function hd(e) {
7506
7522
  var n;
7507
7523
  let t = 0;
7508
7524
  for (const r of e.layouts) {
@@ -7517,16 +7533,16 @@ function pd(e) {
7517
7533
  }
7518
7534
  return t;
7519
7535
  }
7520
- function Iu(e, t = Cl) {
7521
- return pd(e) >= t;
7536
+ function Tu(e, t = Ml) {
7537
+ return hd(e) >= t;
7522
7538
  }
7523
- async function zu(e, t) {
7539
+ async function Fu(e, t) {
7524
7540
  var w;
7525
7541
  const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = t.expiresAt ?? null, d = ((w = t.password) == null ? void 0 : w.trim()) || void 0, c = {
7526
7542
  maxChunkBytes: t.maxChunkBytes ?? sr,
7527
7543
  maxBatchBytes: t.maxBatchBytes ?? t.maxChunkBytes ?? sr,
7528
- maxOsnapChunkBytes: t.maxOsnapChunkBytes ?? El
7529
- }, u = await ja(e, c);
7544
+ maxOsnapChunkBytes: t.maxOsnapChunkBytes ?? Sl
7545
+ }, u = await Ka(e, c);
7530
7546
  let p, m, f;
7531
7547
  if (d) {
7532
7548
  const { key: v, salt: g } = await Sn(d);
@@ -7542,13 +7558,13 @@ async function zu(e, t) {
7542
7558
  m = {
7543
7559
  mode: "embedded",
7544
7560
  encrypted: !0,
7545
- encryptedManifest: jc(x)
7546
- }, f = await hd(u.files, v);
7561
+ encryptedManifest: Kc(x)
7562
+ }, f = await wd(u.files, v);
7547
7563
  } else
7548
7564
  p = ot({ expiresAt: l }), m = {
7549
7565
  mode: "embedded",
7550
7566
  manifest: u.manifest
7551
- }, f = fd(u.files);
7567
+ }, f = gd(u.files);
7552
7568
  const h = p ? ` <script id="mlcad-access" type="application/json">${ur(
7553
7569
  JSON.stringify(p)
7554
7570
  )}<\/script>
@@ -7559,7 +7575,7 @@ async function zu(e, t) {
7559
7575
  <meta charset="utf-8" />
7560
7576
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7561
7577
  <meta name="generator" content="mlightcad-cad-html-plugin" />
7562
- <title>${Ga(n)}</title>
7578
+ <title>${Wa(n)}</title>
7563
7579
  <style>${Cn}</style>
7564
7580
  </head>
7565
7581
  <body>
@@ -7567,28 +7583,28 @@ ${En(a, i, s)}
7567
7583
  ${h} <script id="mlcad-package" type="application/json">${ur(
7568
7584
  JSON.stringify(m)
7569
7585
  )}<\/script>
7570
- ${f} <script>${vd(r)}<\/script>
7586
+ ${f} <script>${xd(r)}<\/script>
7571
7587
  </body>
7572
7588
  </html>`;
7573
7589
  }
7574
- function fd(e) {
7590
+ function gd(e) {
7575
7591
  const t = [];
7576
7592
  for (const n of e)
7577
7593
  n.path !== re && t.push(
7578
- ` <script type="${ud}" ${ce}="${Ka(
7594
+ ` <script type="${pd}" ${ce}="${Ja(
7579
7595
  n.path
7580
7596
  )}">${Ne(n.bytes, "base85")}<\/script>
7581
7597
  `
7582
7598
  );
7583
7599
  return t.join("");
7584
7600
  }
7585
- async function hd(e, t) {
7601
+ async function wd(e, t) {
7586
7602
  const n = [];
7587
7603
  for (const r of e) {
7588
7604
  if (r.path === re) continue;
7589
7605
  const a = await Pn(t, r.bytes);
7590
7606
  n.push(
7591
- ` <script type="${md}" ${ce}="${Ka(
7607
+ ` <script type="${fd}" ${ce}="${Ja(
7592
7608
  r.path
7593
7609
  )}">${Ne(a, "base85")}<\/script>
7594
7610
  `
@@ -7606,7 +7622,7 @@ function Bn(e) {
7606
7622
  );
7607
7623
  return lt(n, r);
7608
7624
  }
7609
- function Bu(e) {
7625
+ function Uu(e) {
7610
7626
  const t = e == null ? void 0 : e.trim();
7611
7627
  if (!t) return null;
7612
7628
  try {
@@ -7621,7 +7637,7 @@ function Bu(e) {
7621
7637
  return null;
7622
7638
  }
7623
7639
  }
7624
- function Tu(e = document) {
7640
+ function _u(e = document) {
7625
7641
  const t = /* @__PURE__ */ new Map();
7626
7642
  return e.querySelectorAll(
7627
7643
  `script[${ce}]`
@@ -7633,7 +7649,7 @@ function Tu(e = document) {
7633
7649
  o && t.set(a, o);
7634
7650
  }), t;
7635
7651
  }
7636
- function Fu(e, t = document) {
7652
+ function Ou(e, t = document) {
7637
7653
  var r;
7638
7654
  const n = t.querySelectorAll(
7639
7655
  `script[${ce}]`
@@ -7644,7 +7660,7 @@ function Fu(e, t = document) {
7644
7660
  return Bn(o);
7645
7661
  }
7646
7662
  }
7647
- function gd(e, t = document) {
7663
+ function vd(e, t = document) {
7648
7664
  var r;
7649
7665
  const n = t.querySelectorAll(
7650
7666
  `script[${ce}]`
@@ -7656,20 +7672,20 @@ function gd(e, t = document) {
7656
7672
  return s ? (o.remove(), s) : void 0;
7657
7673
  }
7658
7674
  }
7659
- function Uu(e) {
7675
+ function Ru(e) {
7660
7676
  const t = e.root ?? document, n = /* @__PURE__ */ new Map();
7661
- return wd({
7677
+ return yd({
7662
7678
  manifest: e.manifest,
7663
7679
  decryptKey: e.decryptKey,
7664
7680
  getChunk: async (r) => {
7665
7681
  const a = n.get(r);
7666
7682
  if (a) return a;
7667
- const o = gd(r, t);
7683
+ const o = vd(r, t);
7668
7684
  return o && n.set(r, o), o;
7669
7685
  }
7670
7686
  });
7671
7687
  }
7672
- function wd(e) {
7688
+ function yd(e) {
7673
7689
  const t = re, n = new URL(
7674
7690
  t,
7675
7691
  at
@@ -7692,56 +7708,56 @@ function wd(e) {
7692
7708
  return i && s && s.delete(p), new Response(f, { status: 200 });
7693
7709
  } };
7694
7710
  }
7695
- async function _u(e, t) {
7711
+ async function Hu(e, t) {
7696
7712
  const n = await In(
7697
7713
  t,
7698
- Gc(e)
7714
+ Wc(e)
7699
7715
  ), r = new TextDecoder().decode(n);
7700
7716
  return mt(JSON.parse(r));
7701
7717
  }
7702
- function Ga(e) {
7718
+ function Wa(e) {
7703
7719
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
7704
7720
  }
7705
- function Ka(e) {
7706
- return Ga(e).replace(/'/g, "&#39;");
7721
+ function Ja(e) {
7722
+ return Wa(e).replace(/'/g, "&#39;");
7707
7723
  }
7708
- function vd(e) {
7724
+ function xd(e) {
7709
7725
  return e.replace(/<\/script/gi, "<\\/script");
7710
7726
  }
7711
7727
  function ur(e) {
7712
7728
  return e.replace(/</g, "\\u003c");
7713
7729
  }
7714
- function Wa(e) {
7730
+ function qa(e) {
7715
7731
  return !e || e.startsWith("/") || e.includes("\\") || e.includes("\0") ? !1 : e.split("/").every(
7716
7732
  (n) => n.length > 0 && n !== "." && n !== ".." && /^[A-Za-z0-9._-]+$/.test(n)
7717
7733
  );
7718
7734
  }
7719
- function yd(e) {
7735
+ function bd(e) {
7720
7736
  return e.endsWith(".gz");
7721
7737
  }
7722
- function Ou(e) {
7738
+ function Du(e) {
7723
7739
  const t = {};
7724
7740
  for (const n of e.files) {
7725
- if (!Wa(n.path))
7741
+ if (!qa(n.path))
7726
7742
  throw new Error(`Unsafe package path: ${n.path}`);
7727
- yd(n.path) ? t[n.path] = [n.bytes, { level: 0 }] : t[n.path] = [n.bytes, { level: 6 }];
7743
+ bd(n.path) ? t[n.path] = [n.bytes, { level: 0 }] : t[n.path] = [n.bytes, { level: 6 }];
7728
7744
  }
7729
- return xi(t);
7745
+ return ki(t);
7730
7746
  }
7731
- function Ru(e) {
7732
- const t = bi(e), n = [];
7747
+ function Nu(e) {
7748
+ const t = Li(e), n = [];
7733
7749
  for (const [r, a] of Object.entries(t)) {
7734
- if (!Wa(r))
7750
+ if (!qa(r))
7735
7751
  throw new Error("Unsafe path in package archive");
7736
7752
  n.push({ path: r, bytes: a });
7737
7753
  }
7738
7754
  return n;
7739
7755
  }
7740
7756
  const ft = 0, Tn = 16777215;
7741
- function xd(e) {
7757
+ function kd(e) {
7742
7758
  return e === "white" || e === "space" ? e : "black";
7743
7759
  }
7744
- function bd(e) {
7760
+ function Ld(e) {
7745
7761
  return e === "white" ? Tn : ft;
7746
7762
  }
7747
7763
  function mr(e, t, n) {
@@ -7751,14 +7767,14 @@ function pr(e) {
7751
7767
  const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255;
7752
7768
  return (n * 299 + r * 587 + a * 114) / 1e3 >= 128;
7753
7769
  }
7754
- function kd(e) {
7770
+ function Ad(e) {
7755
7771
  const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255, o = Math.max(n, r, a), i = Math.min(n, r, a);
7756
7772
  return o - i > 16 ? null : o <= 40 ? Tn : i >= 215 ? ft : null;
7757
7773
  }
7758
7774
  function Ke(e) {
7759
- return kd(e) ?? e;
7775
+ return Ad(e) ?? e;
7760
7776
  }
7761
- function Ja(e, t, n) {
7777
+ function Qa(e, t, n) {
7762
7778
  if (pr(t) !== pr(n)) {
7763
7779
  for (const r of e.lineBatches)
7764
7780
  r.color = Ke(r.color);
@@ -7770,17 +7786,17 @@ function Ja(e, t, n) {
7770
7786
  }
7771
7787
  }
7772
7788
  }
7773
- function Ld(e, t, n) {
7789
+ function Cd(e, t, n) {
7774
7790
  const r = n >>> 0;
7775
7791
  e.meta.background = r;
7776
7792
  for (const a of e.layouts)
7777
- Ja(a, t, r);
7793
+ Qa(a, t, r);
7778
7794
  }
7779
- function Hu(e, t, n) {
7780
- const r = xd(n);
7795
+ function $u(e, t, n) {
7796
+ const r = kd(n);
7781
7797
  if (e.meta.backgroundMode = r, r === "space") {
7782
7798
  for (const o of e.layouts)
7783
- Ja(
7799
+ Qa(
7784
7800
  o,
7785
7801
  t,
7786
7802
  mr("space", o.isModelSpace, 0)
@@ -7795,27 +7811,27 @@ function Hu(e, t, n) {
7795
7811
  );
7796
7812
  return;
7797
7813
  }
7798
- Ld(
7814
+ Cd(
7799
7815
  e,
7800
7816
  t,
7801
- bd(r)
7817
+ Ld(r)
7802
7818
  ), e.meta.backgroundMode = r;
7803
7819
  }
7804
- const Du = "guide/magnifier.html", qa = "https://mlightcad.com/cad-viewer/docs/";
7805
- let Fn = Qa(qa);
7806
- function Ad() {
7820
+ const Vu = "guide/magnifier.html", eo = "https://mlightcad.com/cad-viewer/docs/";
7821
+ let Fn = to(eo);
7822
+ function Ed() {
7807
7823
  return Fn;
7808
7824
  }
7809
- function Nu(e) {
7810
- Fn = Qa(e);
7825
+ function Xu(e) {
7826
+ Fn = to(e);
7811
7827
  }
7812
- function $u(e, t) {
7828
+ function Yu(e, t) {
7813
7829
  const n = t.toLowerCase().split(/[-_]/)[0], r = !n || n === "en" ? "" : `/${n}`, a = e.replace(/^\/+/, "");
7814
7830
  return `${Fn}${r}/${a}`;
7815
7831
  }
7816
- function Qa(e) {
7832
+ function to(e) {
7817
7833
  const t = e.trim();
7818
- return t ? t.replace(/\/+$/, "") : qa.replace(/\/+$/, "");
7834
+ return t ? t.replace(/\/+$/, "") : eo.replace(/\/+$/, "");
7819
7835
  }
7820
7836
  function fr(e, t) {
7821
7837
  if (e.length < 8)
@@ -7844,7 +7860,7 @@ function fr(e, t) {
7844
7860
  const p = u.length > 0 && u[Math.floor(u.length / 2)] || c, m = Math.max(p * 10, c * 20);
7845
7861
  return a < m ? e : l.map((f) => f.box);
7846
7862
  }
7847
- function Cd(e) {
7863
+ function Md(e) {
7848
7864
  if (e.length === 0)
7849
7865
  return null;
7850
7866
  const t = hr(e);
@@ -7872,7 +7888,7 @@ function ht() {
7872
7888
  valid: !1
7873
7889
  };
7874
7890
  }
7875
- function Ed(e, t, n) {
7891
+ function Sd(e, t, n) {
7876
7892
  if (t.length < 3) return;
7877
7893
  const r = n[0], a = n[1];
7878
7894
  for (let o = 0; o + 2 < t.length; o += 3) {
@@ -7881,7 +7897,7 @@ function Ed(e, t, n) {
7881
7897
  }
7882
7898
  }
7883
7899
  function be(e, t) {
7884
- Ed(e, t.positions, t.offset);
7900
+ Sd(e, t.positions, t.offset);
7885
7901
  }
7886
7902
  function gt(e) {
7887
7903
  return e.valid ? {
@@ -7891,7 +7907,7 @@ function gt(e) {
7891
7907
  maxY: e.maxY
7892
7908
  } : null;
7893
7909
  }
7894
- function Md(e, t) {
7910
+ function Pd(e, t) {
7895
7911
  const n = ht();
7896
7912
  for (const r of e)
7897
7913
  be(n, r);
@@ -7899,7 +7915,7 @@ function Md(e, t) {
7899
7915
  be(n, r);
7900
7916
  return gt(n);
7901
7917
  }
7902
- function eo(e, t) {
7918
+ function no(e, t) {
7903
7919
  return e ? t ? {
7904
7920
  minX: Math.min(e.minX, t.minX),
7905
7921
  minY: Math.min(e.minY, t.minY),
@@ -7907,20 +7923,20 @@ function eo(e, t) {
7907
7923
  maxY: Math.max(e.maxY, t.maxY)
7908
7924
  } : e : t ?? null;
7909
7925
  }
7910
- function Sd(e) {
7926
+ function Id(e) {
7911
7927
  if (!e || e.length === 0) return null;
7912
7928
  let t = null;
7913
7929
  for (const n of e)
7914
- t = eo(t, n.paper);
7930
+ t = no(t, n.paper);
7915
7931
  return t;
7916
7932
  }
7917
7933
  function Un(e) {
7918
- return eo(
7919
- Md(e.lineBatches, e.meshBatches),
7920
- Sd(e.viewports)
7934
+ return no(
7935
+ Pd(e.lineBatches, e.meshBatches),
7936
+ Id(e.viewports)
7921
7937
  );
7922
7938
  }
7923
- function Vu(e, t) {
7939
+ function Zu(e, t) {
7924
7940
  return Un(e) ?? t ?? {
7925
7941
  minX: 0,
7926
7942
  minY: 0,
@@ -7928,7 +7944,7 @@ function Vu(e, t) {
7928
7944
  maxY: 1
7929
7945
  };
7930
7946
  }
7931
- function Pd(e) {
7947
+ function zd(e) {
7932
7948
  const t = [], n = (r) => {
7933
7949
  if (r.positions.length < 3) return;
7934
7950
  const a = ht();
@@ -7942,7 +7958,7 @@ function Pd(e) {
7942
7958
  n(r);
7943
7959
  return t;
7944
7960
  }
7945
- function Id(e, t) {
7961
+ function Bd(e, t) {
7946
7962
  var c;
7947
7963
  const n = t == null ? void 0 : t.isLayerVisible, r = e.filter(
7948
7964
  (u) => !n || n(u.layer)
@@ -7974,7 +7990,7 @@ function Id(e, t) {
7974
7990
  if (l) {
7975
7991
  const m = t.sampleFromLayout, f = gr(m.lineBatches, u) ?? gr(m.meshBatches, u);
7976
7992
  if (f && f.positions.length >= 3) {
7977
- Td(f, s);
7993
+ Ud(f, s);
7978
7994
  continue;
7979
7995
  }
7980
7996
  }
@@ -7984,10 +8000,10 @@ function Id(e, t) {
7984
8000
  }
7985
8001
  for (const u of (t == null ? void 0 : t.viewports) ?? [])
7986
8002
  s.push(u.paper);
7987
- const d = zd(s);
7988
- return Cd(d.length > 0 ? d : s);
8003
+ const d = Td(s);
8004
+ return Md(d.length > 0 ? d : s);
7989
8005
  }
7990
- function zd(e) {
8006
+ function Td(e) {
7991
8007
  if (e.length < 2)
7992
8008
  return e;
7993
8009
  const t = e.map((c) => ({
@@ -8013,25 +8029,25 @@ function gr(e, t) {
8013
8029
  return n;
8014
8030
  }
8015
8031
  }
8016
- function Xu(e, t) {
8017
- const n = Pd(e);
8018
- return Id(n, {
8032
+ function ju(e, t) {
8033
+ const n = zd(e);
8034
+ return Bd(n, {
8019
8035
  isLayerVisible: t,
8020
8036
  viewports: e.viewports,
8021
8037
  sampleFromLayout: e
8022
8038
  }) ?? Un(e);
8023
8039
  }
8024
- const Bd = 256;
8025
- function Td(e, t) {
8040
+ const Fd = 256;
8041
+ function Ud(e, t) {
8026
8042
  const n = e.positions, r = e.offset, a = Math.floor(n.length / 3);
8027
8043
  if (a <= 0) return;
8028
- const o = Math.max(1, Math.ceil(a / Bd));
8044
+ const o = Math.max(1, Math.ceil(a / Fd));
8029
8045
  for (let i = 0; i < a; i += o) {
8030
8046
  const s = i * 3, l = Je(n[s], r[0]), d = Je(n[s + 1], r[1]);
8031
8047
  !Number.isFinite(l) || !Number.isFinite(d) || t.push({ minX: l, minY: d, maxX: l, maxY: d });
8032
8048
  }
8033
8049
  }
8034
- function Yu(e, t) {
8050
+ function Gu(e, t) {
8035
8051
  const n = /* @__PURE__ */ new Map(), r = (o) => {
8036
8052
  let i = n.get(o);
8037
8053
  return i || (i = ht(), n.set(o, i)), i;
@@ -8045,16 +8061,16 @@ function Yu(e, t) {
8045
8061
  a.set(o, gt(i));
8046
8062
  return a;
8047
8063
  }
8048
- function Fd(e, t, n) {
8064
+ function _d(e, t, n) {
8049
8065
  if (n) return;
8050
- const r = _d(e, t);
8066
+ const r = Rd(e, t);
8051
8067
  if (!(r != null && r.newIterator)) return;
8052
8068
  const a = [];
8053
8069
  for (const o of r.newIterator()) {
8054
- if (!(o instanceof Wo) || vo.isDefaultPaperSpaceViewport(o) || typeof o.toGiViewport != "function") continue;
8070
+ if (!(o instanceof qo) || xo.isDefaultPaperSpaceViewport(o) || typeof o.toGiViewport != "function") continue;
8055
8071
  const i = o.toGiViewport(), s = i.box, l = i.viewBox, d = wr(s), c = wr(l);
8056
8072
  if (!d || !c) continue;
8057
- const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p = Ud(
8073
+ const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p = Od(
8058
8074
  i,
8059
8075
  o
8060
8076
  ), m = { paper: d, model: c };
@@ -8062,7 +8078,7 @@ function Fd(e, t, n) {
8062
8078
  }
8063
8079
  return a.length > 0 ? a : void 0;
8064
8080
  }
8065
- function Ud(e, t) {
8081
+ function Od(e, t) {
8066
8082
  var i;
8067
8083
  const n = e.frozenLayers;
8068
8084
  if (n && n.length > 0)
@@ -8084,7 +8100,7 @@ function wr(e) {
8084
8100
  if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
8085
8101
  return { minX: t, minY: n, maxX: r, maxY: a };
8086
8102
  }
8087
- function _d(e, t) {
8103
+ function Rd(e, t) {
8088
8104
  var o;
8089
8105
  const n = (o = e.tables) == null ? void 0 : o.blockTable;
8090
8106
  if (!n) return;
@@ -8100,7 +8116,7 @@ function _d(e, t) {
8100
8116
  return a;
8101
8117
  }
8102
8118
  const vr = 16 / 9;
8103
- function Od(e, t, n, r = vr) {
8119
+ function Hd(e, t, n, r = vr) {
8104
8120
  var i, s, l, d;
8105
8121
  const a = Number.isFinite(r) && r > 0 ? r : vr;
8106
8122
  if (n) {
@@ -8120,7 +8136,7 @@ function yr(e) {
8120
8136
  if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
8121
8137
  return { minX: t, minY: n, maxX: r, maxY: a };
8122
8138
  }
8123
- function to(e) {
8139
+ function ro(e) {
8124
8140
  var r;
8125
8141
  const t = (r = e.objects) == null ? void 0 : r.layout;
8126
8142
  if (!(t != null && t.newIterator)) return [];
@@ -8135,21 +8151,21 @@ function to(e) {
8135
8151
  }
8136
8152
  return n.sort((a, o) => a.tabOrder - o.tabOrder), n;
8137
8153
  }
8138
- function Zu(e, t, n = {}) {
8139
- return Rd(e, t, n);
8154
+ function Ku(e, t, n = {}) {
8155
+ return Dd(e, t, n);
8140
8156
  }
8141
- async function ju(e, t, n = {}) {
8157
+ async function Wu(e, t, n = {}) {
8142
8158
  const r = n.yieldBetweenLayouts;
8143
8159
  r && await r();
8144
- const a = n.exportInvisibleLayers !== !1, o = n.exportLayouts !== !1, i = a ? void 0 : (f) => _n(t, f, a), s = ca(e, {
8160
+ const a = n.exportInvisibleLayers !== !1, o = n.exportLayouts !== !1, i = a ? void 0 : (f) => _n(t, f, a), s = ua(e, {
8145
8161
  title: n.title,
8146
8162
  background: n.background
8147
- }), l = no(t, a), d = to(e), c = new Map(
8163
+ }), l = ao(t, a), d = ro(e), c = new Map(
8148
8164
  d.map((f) => [f.blockTableRecordId, f.name])
8149
- ), u = oo(t, o), p = ao(t, d, o), m = [];
8165
+ ), u = so(t, o), p = io(t, d, o), m = [];
8150
8166
  for (const f of p)
8151
8167
  m.push(
8152
- io(
8168
+ lo(
8153
8169
  e,
8154
8170
  t,
8155
8171
  f,
@@ -8160,7 +8176,7 @@ async function ju(e, t, n = {}) {
8160
8176
  ), r && await r();
8161
8177
  return {
8162
8178
  version: D,
8163
- meta: ro(
8179
+ meta: oo(
8164
8180
  s,
8165
8181
  n,
8166
8182
  m,
@@ -8171,16 +8187,16 @@ async function ju(e, t, n = {}) {
8171
8187
  activeLayoutBtrId: u
8172
8188
  };
8173
8189
  }
8174
- function Rd(e, t, n) {
8175
- const r = n.exportInvisibleLayers !== !1, a = n.exportLayouts !== !1, o = r ? void 0 : (m) => _n(t, m, r), i = ca(e, {
8190
+ function Dd(e, t, n) {
8191
+ const r = n.exportInvisibleLayers !== !1, a = n.exportLayouts !== !1, o = r ? void 0 : (m) => _n(t, m, r), i = ua(e, {
8176
8192
  title: n.title,
8177
8193
  background: n.background
8178
- }), s = no(t, r), l = to(e), d = new Map(
8194
+ }), s = ao(t, r), l = ro(e), d = new Map(
8179
8195
  l.map((m) => [m.blockTableRecordId, m.name])
8180
- ), c = oo(t, a), u = ao(t, l, a), p = [];
8196
+ ), c = so(t, a), u = io(t, l, a), p = [];
8181
8197
  for (const m of u)
8182
8198
  p.push(
8183
- io(
8199
+ lo(
8184
8200
  e,
8185
8201
  t,
8186
8202
  m,
@@ -8191,7 +8207,7 @@ function Rd(e, t, n) {
8191
8207
  );
8192
8208
  return {
8193
8209
  version: D,
8194
- meta: ro(
8210
+ meta: oo(
8195
8211
  i,
8196
8212
  n,
8197
8213
  p,
@@ -8202,7 +8218,7 @@ function Rd(e, t, n) {
8202
8218
  activeLayoutBtrId: c
8203
8219
  };
8204
8220
  }
8205
- function no(e, t) {
8221
+ function ao(e, t) {
8206
8222
  const n = [];
8207
8223
  for (const r of e.layers)
8208
8224
  _n(e, r.name, t) && n.push({
@@ -8212,7 +8228,7 @@ function no(e, t) {
8212
8228
  });
8213
8229
  return n;
8214
8230
  }
8215
- function ro(e, t, n, r) {
8231
+ function oo(e, t, n, r) {
8216
8232
  const a = n.find((s) => s.btrId === r) ?? n[0], o = a ? Un(a) : null, i = t.initialView ?? "fit";
8217
8233
  return {
8218
8234
  title: e.title,
@@ -8227,10 +8243,10 @@ function ro(e, t, n, r) {
8227
8243
  viewState: i === "current" ? t.viewState : void 0,
8228
8244
  viewerMode: t.viewerMode ?? "measure",
8229
8245
  exportLayouts: t.exportLayouts !== !1,
8230
- docsBaseUrl: t.docsBaseUrl ?? Ad()
8246
+ docsBaseUrl: t.docsBaseUrl ?? Ed()
8231
8247
  };
8232
8248
  }
8233
- function Hd(e) {
8249
+ function Nd(e) {
8234
8250
  return (e.viewerMode ?? "measure") === "measure";
8235
8251
  }
8236
8252
  function _n(e, t, n) {
@@ -8239,7 +8255,7 @@ function _n(e, t, n) {
8239
8255
  const r = e.layers.find((a) => a.name === t);
8240
8256
  return r ? r.visible : !0;
8241
8257
  }
8242
- function ao(e, t, n) {
8258
+ function io(e, t, n) {
8243
8259
  if (!n) {
8244
8260
  const i = e.layouts.find(
8245
8261
  (s) => s.btrId === e.modelSpaceBtrId
@@ -8264,42 +8280,42 @@ function ao(e, t, n) {
8264
8280
  a.has(i.btrId) || (a.add(i.btrId), o.push(i));
8265
8281
  return o;
8266
8282
  }
8267
- function oo(e, t) {
8283
+ function so(e, t) {
8268
8284
  return t && e.activeLayoutBtrId || e.modelSpaceBtrId;
8269
8285
  }
8270
- function io(e, t, n, r, a, o) {
8286
+ function lo(e, t, n, r, a, o) {
8271
8287
  const i = [], s = [];
8272
8288
  for (const u of n.layers) {
8273
8289
  if (o && !o(u.name))
8274
8290
  continue;
8275
- const p = zs(u.root);
8291
+ const p = Ts(u.root);
8276
8292
  i.push(...p.lineBatches), s.push(...p.meshBatches);
8277
8293
  }
8278
- const l = n.isModelSpace || n.btrId === t.modelSpaceBtrId, d = Od(
8294
+ const l = n.isModelSpace || n.btrId === t.modelSpaceBtrId, d = Hd(
8279
8295
  e,
8280
8296
  n.btrId,
8281
8297
  l,
8282
8298
  a.canvasAspectRatio
8283
8299
  );
8284
8300
  let c;
8285
- if (Hd(a)) {
8301
+ if (Nd(a)) {
8286
8302
  const u = performance.now();
8287
- c = fl(e, n.btrId, { includeLayer: o }), console.log(
8303
+ c = gl(e, n.btrId, { includeLayer: o }), console.log(
8288
8304
  `[chtml] osnap catalog ${r.get(n.btrId) ?? n.name ?? n.btrId}: ${(performance.now() - u).toFixed(0)} ms (${(c == null ? void 0 : c.primitives.length) ?? 0} primitives)`
8289
8305
  );
8290
8306
  }
8291
8307
  return {
8292
8308
  btrId: n.btrId,
8293
- name: r.get(n.btrId) ?? n.name ?? Dd(e, n.btrId),
8309
+ name: r.get(n.btrId) ?? n.name ?? $d(e, n.btrId),
8294
8310
  isModelSpace: l,
8295
8311
  lineBatches: i,
8296
8312
  meshBatches: s,
8297
8313
  osnap: c,
8298
- viewports: Fd(e, n.btrId, l),
8314
+ viewports: _d(e, n.btrId, l),
8299
8315
  ...d ? { savedView: d } : {}
8300
8316
  };
8301
8317
  }
8302
- function Dd(e, t) {
8318
+ function $d(e, t) {
8303
8319
  var r;
8304
8320
  const n = (r = e.tables) == null ? void 0 : r.blockTable;
8305
8321
  if (n != null && n.newIterator) {
@@ -8310,49 +8326,49 @@ function Dd(e, t) {
8310
8326
  return t;
8311
8327
  }
8312
8328
  export {
8313
- ya as ACEC_CHUNK_MAGIC,
8329
+ ba as ACEC_CHUNK_MAGIC,
8314
8330
  mn as ACEO_OSNAP_MAGIC,
8315
8331
  Zr as ACEO_OSNAP_VERSION,
8316
- Al as ACEX_DEFAULT_CHUNK_MAX_BYTES,
8317
- qa as ACEX_DEFAULT_DOCS_BASE_URL,
8332
+ El as ACEX_DEFAULT_CHUNK_MAX_BYTES,
8333
+ eo as ACEX_DEFAULT_DOCS_BASE_URL,
8318
8334
  re as ACEX_DEFAULT_MANIFEST_FILE,
8319
- Aa as ACEX_DEFAULT_MANIFEST_HREF,
8320
- nu as ACEX_DEFAULT_OSNAP_CHUNK_MAX_BYTES,
8321
- Jd as ACEX_DEFAULT_OSNAP_MODES,
8322
- fu as ACEX_DEFAULT_POLAR_ANGLE,
8323
- Du as ACEX_DOCS_PATH_MAGNIFIER,
8324
- md as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME,
8325
- Pu as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME_BASE64,
8335
+ Ea as ACEX_DEFAULT_MANIFEST_HREF,
8336
+ ou as ACEX_DEFAULT_OSNAP_CHUNK_MAX_BYTES,
8337
+ eu as ACEX_DEFAULT_OSNAP_MODES,
8338
+ wu as ACEX_DEFAULT_POLAR_ANGLE,
8339
+ Vu as ACEX_DOCS_PATH_MAGNIFIER,
8340
+ fd as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME,
8341
+ Bu as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME_BASE64,
8326
8342
  ce as ACEX_EMBEDDED_CHUNK_HREF_ATTR,
8327
8343
  sr as ACEX_EMBEDDED_CHUNK_MAX_BYTES,
8328
- ud as ACEX_EMBEDDED_CHUNK_MIME,
8329
- Su as ACEX_EMBEDDED_CHUNK_MIME_BASE64,
8330
- Cl as ACEX_EMBEDDED_CHUNK_THRESHOLD_BYTES,
8331
- El as ACEX_EMBEDDED_OSNAP_CHUNK_MAX_BYTES,
8344
+ pd as ACEX_EMBEDDED_CHUNK_MIME,
8345
+ zu as ACEX_EMBEDDED_CHUNK_MIME_BASE64,
8346
+ Ml as ACEX_EMBEDDED_CHUNK_THRESHOLD_BYTES,
8347
+ Sl as ACEX_EMBEDDED_OSNAP_CHUNK_MAX_BYTES,
8332
8348
  xn as ACEX_GEOMETRY_CHUNK_FETCH_CONCURRENCY,
8333
8349
  ft as ACEX_HTML_BACKGROUND_BLACK,
8334
8350
  Tn as ACEX_HTML_BACKGROUND_WHITE,
8335
- $c as ACEX_HTML_EXPIRY_COUNTDOWN_MS,
8351
+ Xc as ACEX_HTML_EXPIRY_COUNTDOWN_MS,
8336
8352
  ge as ACEX_HTML_LOCALES,
8337
- wa as ACEX_HTML_LOCALE_BADGES,
8338
- va as ACEX_HTML_LOCALE_STORAGE_KEY,
8353
+ ya as ACEX_HTML_LOCALE_BADGES,
8354
+ xa as ACEX_HTML_LOCALE_STORAGE_KEY,
8339
8355
  Cn as ACEX_HTML_SHELL_CSS,
8340
- Bl as ACEX_MANIFEST_QUERY_KEYS,
8356
+ Fl as ACEX_MANIFEST_QUERY_KEYS,
8341
8357
  Xn as ACEX_MAX_BINARY_ARRAY_BYTES,
8342
- ki as ACEX_MAX_BINARY_STRING_BYTES,
8358
+ Ai as ACEX_MAX_BINARY_STRING_BYTES,
8343
8359
  Ft as ACEX_MAX_COMPRESSED_BYTES,
8344
- Li as ACEX_MAX_DECOMPRESSED_BYTES,
8360
+ Ci as ACEX_MAX_DECOMPRESSED_BYTES,
8345
8361
  ut as ACEX_MAX_GEOMETRY_BATCH_BYTES,
8346
- Uc as ACEX_ORTHO_POLAR_ANGLE,
8362
+ Oc as ACEX_ORTHO_POLAR_ANGLE,
8347
8363
  at as ACEX_PACKAGE_DIRECTORY_ORIGIN,
8348
- ka as ACEX_PACKAGE_VERSION,
8349
- Fc as ACEX_POLAR_ANGLE_INCREMENTS,
8364
+ Aa as ACEX_PACKAGE_VERSION,
8365
+ _c as ACEX_POLAR_ANGLE_INCREMENTS,
8350
8366
  Tt as ACEX_SNAPSHOT_COMPRESSION,
8351
8367
  D as ACEX_SNAPSHOT_VERSION,
8352
8368
  ln as AcExBinaryReader,
8353
8369
  sn as AcExBinaryWriter,
8354
- oa as AcExCameraZoomUniform,
8355
- tu as AcExHtmlI18n,
8370
+ sa as AcExCameraZoomUniform,
8371
+ au as AcExHtmlI18n,
8356
8372
  Re as AcExHtmlIcons,
8357
8373
  Rt as F_LINE_DISTANCES,
8358
8374
  Dr as F_LINE_EXCLUDE_OSNAP,
@@ -8368,181 +8384,182 @@ export {
8368
8384
  Zt as F_MESH_RENDER_ORDER,
8369
8385
  Yt as F_MESH_SIDE,
8370
8386
  jt as F_MESH_TEXTURE,
8371
- Hc as ML_UI_COMPACT_MAX_WIDTH,
8372
- Rc as ML_UI_MOBILE_MAX_WIDTH,
8373
- bd as acExHtmlBackgroundRgb,
8374
- Gc as acExHtmlBase64ToBytes,
8375
- Ci as acExHtmlBase85ToBytes,
8376
- jc as acExHtmlBytesToBase64,
8377
- Ai as acExHtmlBytesToBase85,
8387
+ Nc as ML_UI_COMPACT_MAX_WIDTH,
8388
+ Dc as ML_UI_MOBILE_MAX_WIDTH,
8389
+ Ld as acExHtmlBackgroundRgb,
8390
+ Wc as acExHtmlBase64ToBytes,
8391
+ Mi as acExHtmlBase85ToBytes,
8392
+ Kc as acExHtmlBytesToBase64,
8393
+ Ei as acExHtmlBytesToBase85,
8378
8394
  Ne as acExHtmlBytesToText,
8379
8395
  mr as acExHtmlLayoutBackground,
8380
8396
  lt as acExHtmlTextToBytes,
8381
- $u as acexDocsUrl,
8382
- pu as acexDropdownItem,
8383
- Ad as acexGetDocsBaseUrl,
8397
+ Yu as acexDocsUrl,
8398
+ gu as acexDropdownItem,
8399
+ Ed as acexGetDocsBaseUrl,
8384
8400
  pt as acexGlobalFetch,
8385
- Nu as acexSetDocsBaseUrl,
8401
+ Xu as acexSetDocsBaseUrl,
8386
8402
  dr as acexToolbarButton,
8387
- Hu as applyAcExHtmlBackground,
8388
- Ts as arcToAcGe,
8403
+ $u as applyAcExHtmlBackground,
8404
+ Us as arcToAcGe,
8389
8405
  Qn as arcWcsPoint,
8390
8406
  fn as bakePlainDrawableSlice,
8391
8407
  ot as buildAcExHtmlAccessManifest,
8392
- hu as buildAcExHtmlLocaleStrip,
8393
- Ia as buildAcExHtmlPolarAnglesPanel,
8408
+ vu as buildAcExHtmlLocaleStrip,
8409
+ Ba as buildAcExHtmlPolarAnglesPanel,
8394
8410
  En as buildAcExHtmlShellBody,
8395
- gu as buildAcExHtmlSnapStrip,
8396
- Eu as buildAcExPackage,
8397
- Mu as buildAcExPackageAsync,
8398
- cd as buildAcExPackageData,
8399
- ja as buildAcExPackageDataAsync,
8400
- fl as buildOsnapCatalog,
8401
- du as buildPackageDirectoryFileMap,
8402
- Zu as buildSnapshotFromExportScene,
8403
- ju as buildSnapshotFromExportSceneAsync,
8404
- ca as buildViewerMetadata,
8405
- ou as canOpenLocalPackageFolder,
8406
- Od as captureAcExSavedViewExtents,
8407
- su as chooseInitialManifestHref,
8408
- Us as circleOrArcToAcGe,
8409
- Tu as collectAcExEmbeddedChunkBytes,
8410
- zs as collectBatchesFromObject3D,
8411
- Pd as collectLayoutBatchExtentEntries,
8412
- Fd as collectLayoutViewports,
8411
+ yu as buildAcExHtmlSnapStrip,
8412
+ Pu as buildAcExPackage,
8413
+ Iu as buildAcExPackageAsync,
8414
+ ud as buildAcExPackageData,
8415
+ Ka as buildAcExPackageDataAsync,
8416
+ gl as buildOsnapCatalog,
8417
+ pu as buildPackageDirectoryFileMap,
8418
+ Ku as buildSnapshotFromExportScene,
8419
+ Wu as buildSnapshotFromExportSceneAsync,
8420
+ ua as buildViewerMetadata,
8421
+ lu as canOpenLocalPackageFolder,
8422
+ Hd as captureAcExSavedViewExtents,
8423
+ du as chooseInitialManifestHref,
8424
+ Os as circleOrArcToAcGe,
8425
+ _u as collectAcExEmbeddedChunkBytes,
8426
+ Ts as collectBatchesFromObject3D,
8427
+ zd as collectLayoutBatchExtentEntries,
8428
+ _d as collectLayoutViewports,
8413
8429
  ra as compactIndexedSlice,
8414
8430
  _e as compressSnapshotBinary,
8415
8431
  Or as compressSnapshotBinaryAsync,
8416
- Id as computeIntelligentExtentsFromBatchEntries,
8417
- Xu as computeIntelligentLayoutExtents,
8418
- Yu as computeLayerExtentsMap,
8419
- Md as computeLayoutExtents,
8432
+ Bd as computeIntelligentExtentsFromBatchEntries,
8433
+ ju as computeIntelligentLayoutExtents,
8434
+ Gu as computeLayerExtentsMap,
8435
+ Pd as computeLayoutExtents,
8420
8436
  Un as computeLayoutViewExtents,
8421
8437
  wn as computeLineDistancesForSegments,
8422
- Sd as computeViewportPaperExtents,
8423
- gd as consumeAcExEmbeddedChunkFromDom,
8438
+ Id as computeViewportPaperExtents,
8439
+ vd as consumeAcExEmbeddedChunkFromDom,
8424
8440
  ne as copyFloat32Range,
8425
- qi as copyUint32Range,
8426
- Uu as createAcExDomEmbeddedPackageFetch,
8427
- wd as createAcExEmbeddedPackageFetch,
8441
+ es as copyUint32Range,
8442
+ Ru as createAcExDomEmbeddedPackageFetch,
8443
+ yd as createAcExEmbeddedPackageFetch,
8428
8444
  Sn as createAcExHtmlAccessKey,
8429
8445
  bn as createAcExOrderedBytePrefetcher,
8430
8446
  ht as createEmptyExtents,
8431
- uu as createPackageDirectoryFetch,
8432
- ss as createTextureFromExportedBytes,
8433
- Gd as createViewerLineMaterial,
8434
- Wd as createViewerMeshMaterial,
8435
- Kd as createViewerPointsMaterial,
8436
- xa as decodeChunkBinary,
8437
- Ll as decodeChunkGzip,
8438
- ba as decodeChunkPayload,
8447
+ fu as createPackageDirectoryFetch,
8448
+ cs as createTextureFromExportedBytes,
8449
+ Jd as createViewerLineMaterial,
8450
+ Qd as createViewerMeshMaterial,
8451
+ qd as createViewerPointsMaterial,
8452
+ ka as decodeChunkBinary,
8453
+ Cl as decodeChunkGzip,
8454
+ La as decodeChunkPayload,
8439
8455
  pn as decodeOsnapCatalogBinary,
8440
- Ti as decodeOsnapCatalogGzip,
8441
- Fi as decodeOsnapCatalogPayload,
8442
- Zd as decodeSnapshot,
8443
- Ri as decodeSnapshotBinary,
8444
- Ki as decodeSnapshotFromCompressedBytes,
8456
+ Ui as decodeOsnapCatalogGzip,
8457
+ _i as decodeOsnapCatalogPayload,
8458
+ Gd as decodeSnapshot,
8459
+ Di as decodeSnapshotBinary,
8460
+ Ji as decodeSnapshotFromCompressedBytes,
8445
8461
  cn as decompressSnapshotBinary,
8446
- _u as decryptAcExEmbeddedManifest,
8462
+ Hu as decryptAcExEmbeddedManifest,
8447
8463
  In as decryptAcExHtmlBytes,
8448
- Au as decryptAcExHtmlSnapshotPayload,
8449
- yl as detectAcExHtmlLocale,
8450
- vl as detectBrowserAcExHtmlLocale,
8451
- iu as detectLocalFolderOpenSupport,
8452
- _l as detectSharedDirectoryRoot,
8453
- Fs as ellipseArcDelta,
8454
- qd as ellipsePointAtNormalized,
8455
- _s as ellipseToAcGe,
8464
+ Mu as decryptAcExHtmlSnapshotPayload,
8465
+ bl as detectAcExHtmlLocale,
8466
+ xl as detectBrowserAcExHtmlLocale,
8467
+ cu as detectLocalFolderOpenSupport,
8468
+ Rl as detectSharedDirectoryRoot,
8469
+ _s as ellipseArcDelta,
8470
+ tu as ellipsePointAtNormalized,
8471
+ Rs as ellipseToAcGe,
8456
8472
  dt as encodeChunkBinary,
8457
- bl as encodeChunkGzip,
8473
+ Ll as encodeChunkGzip,
8458
8474
  $e as encodeOsnapCatalogBinary,
8459
- zi as encodeOsnapCatalogGzip,
8460
- Gi as encodeSnapshot,
8461
- Oi as encodeSnapshotBinary,
8462
- ts as encodeTextureForExport,
8475
+ Ti as encodeOsnapCatalogGzip,
8476
+ Wi as encodeSnapshot,
8477
+ Hi as encodeSnapshotBinary,
8478
+ rs as encodeTextureForExport,
8463
8479
  Pn as encryptAcExHtmlBytes,
8464
- Zc as encryptAcExHtmlSnapshotPayload,
8465
- pd as estimateAcExSnapshotGeometryBytes,
8480
+ Gc as encryptAcExHtmlSnapshotPayload,
8481
+ hd as estimateAcExSnapshotGeometryBytes,
8466
8482
  dn as estimateLineBatchBytes,
8467
8483
  un as estimateMeshBatchBytes,
8468
8484
  ta as estimateOsnapPrimitiveBytes,
8469
8485
  be as expandExtentsFromBatch,
8470
- Ed as expandExtentsFromPositions,
8471
- gs as exportActiveBatchedLine2Slice,
8486
+ Sd as expandExtentsFromPositions,
8487
+ vs as exportActiveBatchedLine2Slice,
8472
8488
  vn as exportActiveBatchedSlice,
8473
8489
  qe as exportBufferGeometrySlice,
8474
- jd as exportLineDistanceSlice,
8475
- es as exportPlainDrawableSlice,
8476
- is as exportUvsForPositionSlice,
8477
- fs as exportVertexAttributeSlice,
8478
- us as extractGradientFill,
8479
- ds as extractHatchPattern,
8480
- cs as extractLinePattern,
8481
- mu as findDefaultManifestInDirectory,
8482
- ku as formatAcExHtmlCountdown,
8483
- bu as formatAcExHtmlExpiresAt,
8484
- xl as formatAcExHtmlMessage,
8485
- Fl as isAbsoluteHttpUrl,
8486
- yu as isAcExHtmlAccessExpired,
8487
- xu as isAcExHtmlExpiryCountdownActive,
8488
- eu as isAcExHtmlLocale,
8490
+ Wd as exportLineDistanceSlice,
8491
+ ns as exportPlainDrawableSlice,
8492
+ ls as exportUvsForPositionSlice,
8493
+ gs as exportVertexAttributeSlice,
8494
+ ps as extractGradientFill,
8495
+ ms as extractHatchPattern,
8496
+ us as extractLinePattern,
8497
+ hu as findDefaultManifestInDirectory,
8498
+ Cu as formatAcExHtmlCountdown,
8499
+ Au as formatAcExHtmlExpiresAt,
8500
+ kl as formatAcExHtmlMessage,
8501
+ _l as isAbsoluteHttpUrl,
8502
+ ku as isAcExHtmlAccessExpired,
8503
+ Lu as isAcExHtmlExpiryCountdownActive,
8504
+ ru as isAcExHtmlLocale,
8489
8505
  Rr as isGzipPayload,
8490
- Sl as isSafePackageHref,
8491
- aa as isTransparentImagePlaceholder,
8492
- to as listDatabaseLayouts,
8493
- ru as loadAcExPackage,
8494
- au as loadAcExPackageLayout,
8495
- zl as loadAcExPackageLayoutOsnap,
8496
- _a as needsAcExHtmlAccessControl,
8497
- Qa as normalizeAcExDocsBaseUrl,
8498
- da as normalizeArcDelta,
8499
- Ul as normalizePackageDirectoryPath,
8506
+ Il as isSafePackageHref,
8507
+ ia as isTransparentImagePlaceholder,
8508
+ ro as listDatabaseLayouts,
8509
+ iu as loadAcExPackage,
8510
+ su as loadAcExPackageLayout,
8511
+ Tl as loadAcExPackageLayoutOsnap,
8512
+ Ra as needsAcExHtmlAccessControl,
8513
+ to as normalizeAcExDocsBaseUrl,
8514
+ ma as normalizeArcDelta,
8515
+ Ol as normalizePackageDirectoryPath,
8500
8516
  ye as omitNonFinitePrimitives,
8501
- wu as packHtml,
8502
- zu as packHtmlEmbeddedPackage,
8503
- za as packHtmlPackage,
8504
- Bu as parseAcExEmbeddedPackageConfig,
8505
- Lu as parseAcExHtmlAccessManifest,
8517
+ xu as packHtml,
8518
+ Fu as packHtmlEmbeddedPackage,
8519
+ Ta as packHtmlPackage,
8520
+ Uu as parseAcExEmbeddedPackageConfig,
8521
+ Eu as parseAcExHtmlAccessManifest,
8506
8522
  Hr as parseAcExHtmlBinaryEncoding,
8507
8523
  mt as parseAcExPackageManifest,
8508
- Qd as primitiveToAcGeCurve,
8509
- cu as probePackageManifest,
8510
- Cu as protectAcExHtmlEncodedSnapshot,
8511
- Fu as readAcExEmbeddedChunkFromDom,
8512
- Qi as readBatchWorldOffset,
8524
+ nu as primitiveToAcGeCurve,
8525
+ mu as probePackageManifest,
8526
+ Su as protectAcExHtmlEncodedSnapshot,
8527
+ Ou as readAcExEmbeddedChunkFromDom,
8528
+ ts as readBatchWorldOffset,
8513
8529
  Vr as readLineBatch,
8514
- Tl as readManifestUrlFromSearchParams,
8530
+ Ul as readManifestUrlFromSearchParams,
8515
8531
  Yr as readMeshBatch,
8516
- hs as rebaseHatchPatternToLocalOffset,
8532
+ ws as rebaseHatchPatternToLocalOffset,
8517
8533
  hn as rebasePlainDrawableSliceAroundCentroid,
8518
- ls as releaseExportedTextureBytes,
8519
- Ld as remapAcExSnapshotForegroundForBackground,
8520
- vu as resolveAcApHtmlExpiresAt,
8521
- xd as resolveAcExHtmlBackground,
8534
+ ds as releaseExportedTextureBytes,
8535
+ Cd as remapAcExSnapshotForegroundForBackground,
8536
+ bu as resolveAcApHtmlExpiresAt,
8537
+ kd as resolveAcExHtmlBackground,
8522
8538
  Ve as resolveAcExHtmlLocale,
8523
8539
  kn as resolveChunkUrl,
8524
- Vu as resolveLayoutViewExtents,
8525
- Il as resolvePackageManifestUrl,
8526
- lu as resolveViewerManifestUrl,
8527
- Yd as setAcExSnapshotCompressor,
8528
- Iu as shouldEmbedAcExChunks,
8529
- Ji as snapshotMimeType,
8530
- Wi as snapshotPayloadToCompressedBytes,
8531
- Pl as snapshotSkeletonFromManifest,
8532
- Os as splineToAcGe,
8540
+ Zu as resolveLayoutViewExtents,
8541
+ Bl as resolvePackageManifestUrl,
8542
+ uu as resolveViewerManifestUrl,
8543
+ jd as setAcExSnapshotCompressor,
8544
+ Kd as setHeadlessPngEncoder,
8545
+ Tu as shouldEmbedAcExChunks,
8546
+ Qi as snapshotMimeType,
8547
+ qi as snapshotPayloadToCompressedBytes,
8548
+ zl as snapshotSkeletonFromManifest,
8549
+ Hs as splineToAcGe,
8533
8550
  fr as splitDominantCluster,
8534
- id as splitLayoutIntoSlices,
8535
- Jc as splitLineBatch,
8536
- qc as splitMeshBatch,
8537
- Ii as splitOsnapPrimitives,
8551
+ ld as splitLayoutIntoSlices,
8552
+ Qc as splitLineBatch,
8553
+ ed as splitMeshBatch,
8554
+ Bi as splitOsnapPrimitives,
8538
8555
  gt as toExtents,
8539
8556
  Je as toWcsCoord,
8540
8557
  Zn as transformHatchPatternToWorldSpace,
8541
- Cd as unionDominantCluster,
8542
- eo as unionExtents,
8543
- Ru as unzipAcExPackageFiles,
8558
+ Md as unionDominantCluster,
8559
+ no as unionExtents,
8560
+ Nu as unzipAcExPackageFiles,
8544
8561
  er as wcsPointToOcsArcAngle,
8545
8562
  $r as writeLineBatch,
8546
8563
  Xr as writeMeshBatch,
8547
- Ou as zipAcExPackageFiles
8564
+ Du as zipAcExPackageFiles
8548
8565
  };