@mlightcad/cad-diff-viewer 1.8.0-preview.3 → 1.8.0-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,6 +1,6 @@
1
- import { AcApI18n as L, AcUiDialog as Te, ACAP_DEFAULT_COMPARE_COLORS as we, AcEdOpenMode as Me, AcApDocManager as K, acedApplyUiTheme as ce, isMarkupVisible as Y, setMarkupVisible as fe, getMarkupPresenter as me, runMarkupEdit as Le, getMarkupStore as Ae, createMarkupMeta as Re, listMarkupsForSession as pe } from "@mlightcad/cad-simple-viewer";
1
+ import { AcApI18n as T, AcUiDialog as Te, ACAP_DEFAULT_COMPARE_COLORS as Ce, AcEdOpenMode as Me, AcApDocManager as K, acedApplyUiTheme as fe, isMarkupVisible as W, setMarkupVisible as me, getMarkupPresenter as pe, runMarkupEdit as Le, getMarkupStore as Ae, createMarkupMeta as Re, listMarkupsForSession as he } from "@mlightcad/cad-simple-viewer";
2
2
  import { ICON_MARKUP_CLOUD as De, ICON_MARKUP_RECT as Oe, ICON_MARKUP_CIRCLE as Ve, ICON_MARKUP_CALLOUT as Ne, ICON_MARKUP_ARROW as Ie, ICON_MARKUP_LINE as Be, ICON_MARKUP_TEXT as Fe, ICON_MARKUP_STAMP as _e, ICON_CLEAR_MARKUPS as He, ICON_ANNOTATION_HIDE as je, ICON_ANNOTATION_SHOW as ze } from "@mlightcad/cad-simple-viewer/icons";
3
- import { AcDbSysVarManager as Z, AcDbSystemVariables as P, ACDB_COMPAREPROPS_COLOR as Ue, ACDB_COMPAREPROPS_LAYER as Ke, ACDB_COMPAREPROPS_LINETYPE as Ge, ACDB_COMPAREPROPS_LINETYPESCALE as $e, ACDB_COMPAREPROPS_LINEWEIGHT as Xe, ACDB_COMPAREPROPS_TRANSPARENCY as Ye, ACDB_COMPAREPROPS_THICKNESS as We, ACDB_COMPAREPROPS_DEFAULT as qe, ACDB_COMPAREHATCH_DEFAULT as Ze, ACDB_COMPARERCMARGIN_DEFAULT as Je, ACDB_COMPARERCMARGIN_MIN as Qe, ACDB_COMPARERCMARGIN_MAX as et, ACDB_COMPARETEXT_DEFAULT as tt, ACDB_COMPARETOLERANCE_DEFAULT as it, ACDB_COMPARETOLERANCE_MIN as nt, ACDB_COMPARETOLERANCE_MAX as st, AcGeBox2d as he } from "@mlightcad/data-model";
3
+ import { AcDbSysVarManager as J, AcDbSystemVariables as P, ACDB_COMPAREPROPS_COLOR as Ue, ACDB_COMPAREPROPS_LAYER as Ke, ACDB_COMPAREPROPS_LINETYPE as Ge, ACDB_COMPAREPROPS_LINETYPESCALE as $e, ACDB_COMPAREPROPS_LINEWEIGHT as Xe, ACDB_COMPAREPROPS_TRANSPARENCY as Ye, ACDB_COMPAREPROPS_THICKNESS as We, ACDB_COMPAREPROPS_DEFAULT as qe, ACDB_COMPAREHATCH_DEFAULT as Ze, ACDB_COMPARERCMARGIN_DEFAULT as Je, ACDB_COMPARERCMARGIN_MIN as Qe, ACDB_COMPARERCMARGIN_MAX as et, ACDB_COMPARETEXT_DEFAULT as tt, ACDB_COMPARETOLERANCE_DEFAULT as it, ACDB_COMPARETOLERANCE_MIN as nt, ACDB_COMPARETOLERANCE_MAX as st, AcGeBox2d as ue } from "@mlightcad/data-model";
4
4
  function ot(a) {
5
5
  const e = [];
6
6
  for (const t of a.kinds)
@@ -14,7 +14,7 @@ function at(a, e) {
14
14
  const t = Math.max(1, Math.min(25, Math.trunc(e)));
15
15
  return Math.max(a, 1) * (t / 250);
16
16
  }
17
- function W(a, e) {
17
+ function q(a, e) {
18
18
  return {
19
19
  minX: a.minX - e,
20
20
  minY: a.minY - e,
@@ -46,7 +46,7 @@ function ct(a, e, t) {
46
46
  });
47
47
  }
48
48
  if (i.length === 0) return [];
49
- const n = at(e, t), o = i.map((c) => W(c.box, n)), s = i.map((c, l) => l), r = (c) => {
49
+ const n = at(e, t), o = i.map((c) => q(c.box, n)), s = i.map((c, l) => l), r = (c) => {
50
50
  let l = c;
51
51
  for (; s[l] !== l; ) l = s[l];
52
52
  let f = c;
@@ -67,7 +67,7 @@ function ct(a, e, t) {
67
67
  const l = r(c), f = i[c], p = d.get(l);
68
68
  if (!p) {
69
69
  d.set(l, {
70
- extents: W(f.box, n),
70
+ extents: q(f.box, n),
71
71
  objectIds: [f.objectId],
72
72
  hasLeft: f.side === "left",
73
73
  hasRight: f.side === "right",
@@ -75,7 +75,7 @@ function ct(a, e, t) {
75
75
  });
76
76
  continue;
77
77
  }
78
- p.extents = dt(p.extents, W(f.box, n)), p.objectIds.push(f.objectId), f.side === "left" ? p.hasLeft = !0 : p.hasRight = !0, rt(p.kinds, f.kind);
78
+ p.extents = dt(p.extents, q(f.box, n)), p.objectIds.push(f.objectId), f.side === "left" ? p.hasLeft = !0 : p.hasRight = !0, rt(p.kinds, f.kind);
79
79
  }
80
80
  return [...d.values()];
81
81
  }
@@ -83,40 +83,40 @@ function S(a, e) {
83
83
  const t = typeof a == "number" ? a : Number(a);
84
84
  return Number.isFinite(t) ? Math.trunc(t) : e;
85
85
  }
86
- const J = S(Ue, 1), $ = S(Ke, 2), Q = S(
86
+ const Q = S(Ue, 1), $ = S(Ke, 2), ee = S(
87
87
  Ge,
88
88
  4
89
- ), ee = S(
89
+ ), te = S(
90
90
  $e,
91
91
  8
92
- ), te = S(
92
+ ), ie = S(
93
93
  Xe,
94
94
  16
95
- ), ie = S(
95
+ ), ne = S(
96
96
  Ye,
97
97
  32
98
- ), ne = S(
98
+ ), se = S(
99
99
  We,
100
100
  64
101
- ), se = S(
101
+ ), oe = S(
102
102
  qe,
103
103
  0
104
- ), oe = S(
104
+ ), re = S(
105
105
  Ze,
106
106
  0
107
- ), re = S(
107
+ ), ae = S(
108
108
  Je,
109
109
  5
110
110
  ), ft = S(Qe, 1), mt = S(
111
111
  et,
112
112
  25
113
- ), ae = S(tt, 1), X = S(
113
+ ), le = S(tt, 1), X = S(
114
114
  it,
115
115
  6
116
- ), Ce = S(
116
+ ), Se = S(
117
117
  nt,
118
118
  0
119
- ), Se = S(
119
+ ), Pe = S(
120
120
  st,
121
121
  14
122
122
  );
@@ -124,24 +124,24 @@ function D(a, e) {
124
124
  const t = typeof a == "number" ? a : Number(a);
125
125
  return Number.isFinite(t) ? Math.trunc(t) : e;
126
126
  }
127
- function le() {
128
- const a = Z.instance();
127
+ function de() {
128
+ const a = J.instance();
129
129
  return {
130
130
  compareprops: D(
131
131
  a.getDefaultValue(P.COMPAREPROPS),
132
- se
132
+ oe
133
133
  ),
134
134
  comparehatch: D(
135
135
  a.getDefaultValue(P.COMPAREHATCH),
136
- oe
136
+ re
137
137
  ),
138
138
  comparercmargin: D(
139
139
  a.getDefaultValue(P.COMPARERCMARGIN),
140
- re
140
+ ae
141
141
  ),
142
142
  comparetext: D(
143
143
  a.getDefaultValue(P.COMPARETEXT),
144
- ae
144
+ le
145
145
  ),
146
146
  comparetolerance: D(
147
147
  a.getDefaultValue(P.COMPARETOLERANCE),
@@ -150,7 +150,7 @@ function le() {
150
150
  };
151
151
  }
152
152
  function pt(a, e) {
153
- const t = Z.instance(), i = le(), n = a ?? e, o = a ?? e;
153
+ const t = J.instance(), i = de(), n = a ?? e, o = a ?? e;
154
154
  return {
155
155
  compareprops: n ? D(
156
156
  t.getVar(P.COMPAREPROPS, n),
@@ -174,9 +174,9 @@ function pt(a, e) {
174
174
  ) : i.comparetolerance
175
175
  };
176
176
  }
177
- function ue(a, e) {
177
+ function ge(a, e) {
178
178
  if (e.length === 0) return;
179
- const t = Z.instance(), i = e[0];
179
+ const t = J.instance(), i = e[0];
180
180
  t.setVar(P.COMPAREPROPS, a.compareprops, i);
181
181
  for (const n of e)
182
182
  t.setVar(P.COMPAREHATCH, a.comparehatch, n), t.setVar(P.COMPARERCMARGIN, a.comparercmargin, n), t.setVar(P.COMPARETEXT, a.comparetext, n), t.setVar(P.COMPARETOLERANCE, a.comparetolerance, n);
@@ -184,23 +184,23 @@ function ue(a, e) {
184
184
  function ht(a) {
185
185
  const e = S(a, X);
186
186
  return 10 ** -Math.max(
187
- Ce,
188
- Math.min(Se, e)
187
+ Se,
188
+ Math.min(Pe, e)
189
189
  );
190
190
  }
191
191
  const ut = {
192
- color: J,
192
+ color: Q,
193
193
  layer: $,
194
- lineType: Q,
195
- lineTypeScale: ee,
196
- lineWeight: te,
197
- transparency: ie,
198
- thickness: ne
194
+ lineType: ee,
195
+ lineTypeScale: te,
196
+ lineWeight: ie,
197
+ transparency: ne,
198
+ thickness: se
199
199
  }, gt = /* @__PURE__ */ new Set(["HATCH"]), yt = /* @__PURE__ */ new Set(["TEXT", "MTEXT", "ATTRIB", "ATTDEF"]);
200
200
  function v(a, e) {
201
201
  return Number.isFinite(a) ? Math.round(a / e) * e : 0;
202
202
  }
203
- function de(a) {
203
+ function ce(a) {
204
204
  try {
205
205
  const e = a.geometricExtents;
206
206
  return !(e != null && e.min) || !(e != null && e.max) ? void 0 : {
@@ -219,11 +219,11 @@ function O(a, e) {
219
219
  function R(a) {
220
220
  return Number.isFinite(a) ? String(Number(a.toFixed(6))) : String(a);
221
221
  }
222
- function H(a) {
222
+ function j(a) {
223
223
  const e = R(a.x ?? 0), t = R(a.y ?? 0), i = a.z ?? 0;
224
224
  return Math.abs(i) < 1e-9 ? `(${e}, ${t})` : `(${e}, ${t}, ${R(i)})`;
225
225
  }
226
- function q(a) {
226
+ function Z(a) {
227
227
  return `${R(a * 180 / Math.PI)}°`;
228
228
  }
229
229
  function bt(a, e) {
@@ -253,25 +253,25 @@ function bt(a, e) {
253
253
  const d = i.length;
254
254
  if (t.startPoint && t.endPoint) {
255
255
  const h = t.startPoint, g = t.endPoint;
256
- n("startPoint", H(h), O(h, e)), n("endPoint", H(g), O(g, e));
256
+ n("startPoint", j(h), O(h, e)), n("endPoint", j(g), O(g, e));
257
257
  }
258
258
  if (t.center) {
259
259
  const h = t.center;
260
- n("center", H(h), O(h, e));
260
+ n("center", j(h), O(h, e));
261
261
  }
262
262
  if (typeof t.radius == "number" && n("radius", R(t.radius), String(v(t.radius, e))), typeof t.startAngle == "number" && typeof t.endAngle == "number" && (n(
263
263
  "startAngle",
264
- q(t.startAngle),
264
+ Z(t.startAngle),
265
265
  String(v(t.startAngle, e))
266
- ), n("endAngle", q(t.endAngle), String(v(t.endAngle, e)))), t.position) {
266
+ ), n("endAngle", Z(t.endAngle), String(v(t.endAngle, e)))), t.position) {
267
267
  const h = t.position;
268
- n("position", H(h), O(h, e));
268
+ n("position", j(h), O(h, e));
269
269
  }
270
270
  if (t.location) {
271
271
  const h = t.location;
272
- n("location", H(h), O(h, e));
272
+ n("location", j(h), O(h, e));
273
273
  }
274
- if (typeof t.rotation == "number" && n("rotation", q(t.rotation), String(v(t.rotation, e))), typeof t.height == "number" && n("height", R(t.height), String(v(t.height, e))), typeof t.blockName == "string" && n("blockName", t.blockName, t.blockName), t.scaleFactors) {
274
+ if (typeof t.rotation == "number" && n("rotation", Z(t.rotation), String(v(t.rotation, e))), typeof t.height == "number" && n("height", R(t.height), String(v(t.height, e))), typeof t.blockName == "string" && n("blockName", t.blockName, t.blockName), t.scaleFactors) {
275
275
  const h = t.scaleFactors;
276
276
  n(
277
277
  "scale",
@@ -280,10 +280,10 @@ function bt(a, e) {
280
280
  );
281
281
  }
282
282
  typeof t.textString == "string" && n("text", t.textString, t.textString), typeof t.contents == "string" && n("mtext", t.contents, t.contents);
283
- const c = de(a);
283
+ const c = ce(a);
284
284
  return c && i.length === d && n(
285
285
  "extents",
286
- `${H({ x: c.minX, y: c.minY })} – ${H({ x: c.maxX, y: c.maxY })}`,
286
+ `${j({ x: c.minX, y: c.minY })} – ${j({ x: c.maxX, y: c.maxY })}`,
287
287
  `${v(c.minX, e)},${v(c.minY, e)},${v(c.maxX, e)},${v(c.maxY, e)}`
288
288
  ), n("objectId", String(a.objectId ?? ""), String(a.objectId ?? "")), i;
289
289
  }
@@ -318,7 +318,7 @@ function kt(a, e) {
318
318
  );
319
319
  }
320
320
  typeof t.textString == "string" && i.push(`t:${t.textString}`), typeof t.contents == "string" && i.push(`m:${t.contents}`);
321
- const n = de(a);
321
+ const n = ce(a);
322
322
  return n && i.length <= 1 && i.push(
323
323
  `ext:${v(n.minX, e)},${v(n.minY, e)},${v(n.maxX, e)},${v(n.maxY, e)}`
324
324
  ), i.join(";");
@@ -327,7 +327,7 @@ function xt(a, e) {
327
327
  var n, o, s, r;
328
328
  if (e === 0) return "";
329
329
  const t = a, i = [];
330
- return e & J && i.push(((o = (n = t.color) == null ? void 0 : n.toString) == null ? void 0 : o.call(n)) ?? ""), e & $ && i.push(String(t.layer ?? "")), e & Q && i.push(t.lineType ?? ""), e & ee && i.push(String(t.linetypeScale ?? "")), e & te && i.push(String(t.lineWeight ?? "")), e & ie && i.push(((r = (s = t.transparency) == null ? void 0 : s.toString) == null ? void 0 : r.call(s)) ?? ""), e & ne && i.push(String(t.thickness ?? "")), i.join("|");
330
+ return e & Q && i.push(((o = (n = t.color) == null ? void 0 : n.toString) == null ? void 0 : o.call(n)) ?? ""), e & $ && i.push(String(t.layer ?? "")), e & ee && i.push(t.lineType ?? ""), e & te && i.push(String(t.linetypeScale ?? "")), e & ie && i.push(String(t.lineWeight ?? "")), e & ne && i.push(((r = (s = t.transparency) == null ? void 0 : s.toString) == null ? void 0 : r.call(s)) ?? ""), e & se && i.push(String(t.thickness ?? "")), i.join("|");
331
331
  }
332
332
  function wt(a) {
333
333
  return gt.has(a.toUpperCase());
@@ -348,7 +348,7 @@ function St(a, e, t, i, n) {
348
348
  layer: String(r.layer ?? "0"),
349
349
  fingerprint: kt(r, e),
350
350
  propKey: xt(r, t),
351
- extents: de(r),
351
+ extents: ce(r),
352
352
  fields: bt(r, e)
353
353
  });
354
354
  }
@@ -362,7 +362,7 @@ function Pt(a, e) {
362
362
  }
363
363
  return Number.isFinite(t) ? Math.max(n - t, o - i, 1) : 1;
364
364
  }
365
- function B(a, e, t, i, n) {
365
+ function F(a, e, t, i, n) {
366
366
  return {
367
367
  side: e,
368
368
  objectId: a.objectId,
@@ -374,49 +374,49 @@ function B(a, e, t, i, n) {
374
374
  changes: n
375
375
  };
376
376
  }
377
- function ge(a, e, t, i) {
377
+ function ye(a, e, t, i) {
378
378
  const n = vt(e, t, i);
379
- a.push(B(e, "left", "modified", t.objectId, n)), a.push(B(t, "right", "modified", e.objectId, n));
379
+ a.push(F(e, "left", "modified", t.objectId, n)), a.push(F(t, "right", "modified", e.objectId, n));
380
380
  }
381
381
  function Et(a, e, t = {}) {
382
- const i = t.compareProps ?? se, n = (t.compareHatch ?? oe) !== 0, o = (t.compareText ?? ae) !== 0, s = t.compareTolerance ?? X, r = t.compareRcMargin ?? re, d = t.tolerance != null && t.tolerance > 0 ? t.tolerance : ht(s), c = (y) => St(y, d, i, n, o), l = c(a), f = c(e), p = new Map(f.map((y) => [y.objectId, y])), u = /* @__PURE__ */ new Set(), h = [], g = [], b = [], k = [], A = [];
382
+ const i = t.compareProps ?? oe, n = (t.compareHatch ?? re) !== 0, o = (t.compareText ?? le) !== 0, s = t.compareTolerance ?? X, r = t.compareRcMargin ?? ae, d = t.tolerance != null && t.tolerance > 0 ? t.tolerance : ht(s), c = (y) => St(y, d, i, n, o), l = c(a), f = c(e), p = new Map(f.map((y) => [y.objectId, y])), u = /* @__PURE__ */ new Set(), h = [], g = [], b = [], k = [], A = [];
383
383
  for (const y of l) {
384
384
  const x = p.get(y.objectId);
385
385
  if (x && y.dxfType === x.dxfType) {
386
386
  u.add(x.objectId);
387
- const T = y.fingerprint === x.fingerprint, E = y.propKey === x.propKey;
388
- T && E ? t.includeUnchanged && (k.push(B(y, "left", "unchanged", x.objectId)), k.push(B(x, "right", "unchanged", y.objectId))) : ge(b, y, x, i);
387
+ const M = y.fingerprint === x.fingerprint, E = y.propKey === x.propKey;
388
+ M && E ? t.includeUnchanged && (k.push(F(y, "left", "unchanged", x.objectId)), k.push(F(x, "right", "unchanged", y.objectId))) : ye(b, y, x, i);
389
389
  } else
390
390
  A.push(y);
391
391
  }
392
- const M = f.filter((y) => !u.has(y.objectId)), z = (i & $) !== 0, I = (y) => z ? `${y.dxfType}\0${y.layer}` : y.dxfType, V = /* @__PURE__ */ new Map();
393
- for (const y of M) {
394
- const x = I(y), T = V.get(x);
395
- T ? T.push(y) : V.set(x, [y]);
392
+ const L = f.filter((y) => !u.has(y.objectId)), z = (i & $) !== 0, I = (y) => z ? `${y.dxfType}\0${y.layer}` : y.dxfType, V = /* @__PURE__ */ new Map();
393
+ for (const y of L) {
394
+ const x = I(y), M = V.get(x);
395
+ M ? M.push(y) : V.set(x, [y]);
396
396
  }
397
397
  for (const y of A) {
398
398
  const x = V.get(I(y));
399
- let T = -1;
400
- if (x && (T = x.findIndex((E) => E.fingerprint === y.fingerprint)), T >= 0 && x) {
401
- const E = x.splice(T, 1)[0];
402
- u.add(E.objectId), y.propKey === E.propKey ? t.includeUnchanged && (k.push(B(y, "left", "unchanged", E.objectId)), k.push(B(E, "right", "unchanged", y.objectId))) : ge(b, y, E, i);
399
+ let M = -1;
400
+ if (x && (M = x.findIndex((E) => E.fingerprint === y.fingerprint)), M >= 0 && x) {
401
+ const E = x.splice(M, 1)[0];
402
+ u.add(E.objectId), y.propKey === E.propKey ? t.includeUnchanged && (k.push(F(y, "left", "unchanged", E.objectId)), k.push(F(E, "right", "unchanged", y.objectId))) : ye(b, y, E, i);
403
403
  } else
404
- g.push(B(y, "left", "deleted"));
404
+ g.push(F(y, "left", "deleted"));
405
405
  }
406
- for (const y of M)
407
- u.has(y.objectId) || h.push(B(y, "right", "added"));
406
+ for (const y of L)
407
+ u.has(y.objectId) || h.push(F(y, "right", "added"));
408
408
  const U = [
409
409
  ...g,
410
410
  ...b.filter((y) => y.side === "left"),
411
411
  ...h
412
- ], _ = ct(
412
+ ], H = ct(
413
413
  [...g, ...b, ...h],
414
414
  Pt(l, f),
415
415
  r
416
416
  );
417
- return { added: h, deleted: g, modified: b, unchanged: k, navigation: U, changeSets: _ };
417
+ return { added: h, deleted: g, modified: b, unchanged: k, navigation: U, changeSets: H };
418
418
  }
419
- const Pe = {
419
+ const Y = {
420
420
  openFile: "Open file",
421
421
  noDrawing: "No drawing",
422
422
  emptyTitle: "Drop a drawing here",
@@ -937,35 +937,35 @@ const Pe = {
937
937
  settingsCancel: "إلغاء",
938
938
  settingsReset: "إعادة تعيين",
939
939
  settingsClose: "إغلاق"
940
- }, j = "diffViewer";
941
- let ye = !1;
942
- function Rt() {
943
- ye || (L.mergeLocaleMessage("en", { [j]: Pe }), L.mergeLocaleMessage("zh", { [j]: Tt }), L.mergeLocaleMessage("tr", { [j]: Mt }), L.mergeLocaleMessage("cs", { [j]: Lt }), L.mergeLocaleMessage("ar", { [j]: At }), ye = !0);
940
+ }, Rt = { ...Y }, Dt = { ...Y }, B = "diffViewer";
941
+ let be = !1;
942
+ function Ot() {
943
+ be || (T.mergeLocaleMessage("en", { [B]: Y }), T.mergeLocaleMessage("zh", { [B]: Tt }), T.mergeLocaleMessage("ja", { [B]: Rt }), T.mergeLocaleMessage("ko", { [B]: Dt }), T.mergeLocaleMessage("tr", { [B]: Mt }), T.mergeLocaleMessage("cs", { [B]: Lt }), T.mergeLocaleMessage("ar", { [B]: At }), be = !0);
944
944
  }
945
945
  function m(a) {
946
- return L.t(`${j}.${a}`, { fallback: Pe[a] });
946
+ return T.t(`${B}.${a}`, { fallback: Y[a] });
947
947
  }
948
- const Dt = [
948
+ const Vt = [
949
949
  { role: "unchanged", labelKey: "settingsUnchanged" },
950
950
  { role: "deleted", labelKey: "settingsDeleted" },
951
951
  { role: "added", labelKey: "settingsAdded" },
952
952
  { role: "modified", labelKey: "settingsModified" }
953
- ], Ot = [
954
- { bit: J, labelKey: "settingsPropColor" },
953
+ ], Nt = [
954
+ { bit: Q, labelKey: "settingsPropColor" },
955
955
  { bit: $, labelKey: "settingsPropLayer" },
956
- { bit: Q, labelKey: "settingsPropLinetype" },
956
+ { bit: ee, labelKey: "settingsPropLinetype" },
957
957
  {
958
- bit: ee,
958
+ bit: te,
959
959
  labelKey: "settingsPropLinetypeScale"
960
960
  },
961
- { bit: te, labelKey: "settingsPropLineweight" },
962
- { bit: ie, labelKey: "settingsPropTransparency" },
963
- { bit: ne, labelKey: "settingsPropThickness" }
961
+ { bit: ie, labelKey: "settingsPropLineweight" },
962
+ { bit: ne, labelKey: "settingsPropTransparency" },
963
+ { bit: se, labelKey: "settingsPropThickness" }
964
964
  ];
965
- function F(a) {
965
+ function _(a) {
966
966
  return `#${(a & 16777215).toString(16).padStart(6, "0")}`;
967
967
  }
968
- function Vt(a) {
968
+ function It(a) {
969
969
  const e = /^#?([0-9a-f]{6})$/i.exec(a.trim());
970
970
  if (e)
971
971
  return parseInt(e[1], 16);
@@ -1050,7 +1050,7 @@ const C = class C extends Te {
1050
1050
  buildColorsPanel() {
1051
1051
  const e = document.createElement("div");
1052
1052
  e.className = "ml-diff-settings-list";
1053
- for (const t of Dt)
1053
+ for (const t of Vt)
1054
1054
  e.appendChild(
1055
1055
  this.createColorRow(t.role, m(t.labelKey))
1056
1056
  );
@@ -1077,7 +1077,7 @@ const C = class C extends Te {
1077
1077
  n.className = "ml-diff-settings-hint", n.textContent = m("settingsPropsHint");
1078
1078
  const o = document.createElement("div");
1079
1079
  o.className = "ml-diff-settings-check-grid";
1080
- for (const s of Ot) {
1080
+ for (const s of Nt) {
1081
1081
  const r = this.createCheckRow(
1082
1082
  o,
1083
1083
  m(s.labelKey),
@@ -1097,8 +1097,8 @@ const C = class C extends Te {
1097
1097
  const e = document.createElement("div"), t = this.createSliderRow(
1098
1098
  m("settingsTolerance"),
1099
1099
  this.draft.sysVars.comparetolerance,
1100
- Ce,
1101
1100
  Se,
1101
+ Pe,
1102
1102
  (s) => {
1103
1103
  this.draft.sysVars.comparetolerance = s, this.emitChange();
1104
1104
  }
@@ -1166,11 +1166,11 @@ const C = class C extends Te {
1166
1166
  const o = document.createElement("span");
1167
1167
  o.className = "ml-diff-settings-control";
1168
1168
  const s = document.createElement("span");
1169
- s.className = "ml-diff-settings-hex", s.textContent = F(this.draft.colors[e]), this.hexLabels.set(e, s);
1169
+ s.className = "ml-diff-settings-hex", s.textContent = _(this.draft.colors[e]), this.hexLabels.set(e, s);
1170
1170
  const r = document.createElement("input");
1171
- return r.type = "color", r.className = "ml-diff-settings-color", r.value = F(this.draft.colors[e]), r.setAttribute("aria-label", t), r.addEventListener("input", () => {
1172
- const d = Vt(r.value);
1173
- d != null && (this.draft.colors[e] = d, s.textContent = F(d), this.emitChange());
1171
+ return r.type = "color", r.className = "ml-diff-settings-color", r.value = _(this.draft.colors[e]), r.setAttribute("aria-label", t), r.addEventListener("input", () => {
1172
+ const d = It(r.value);
1173
+ d != null && (this.draft.colors[e] = d, s.textContent = _(d), this.emitChange());
1174
1174
  }), this.pickers.set(e, r), o.append(s, r), i.append(n, o), i;
1175
1175
  }
1176
1176
  createCheckRow(e, t, i, n) {
@@ -1197,11 +1197,11 @@ const C = class C extends Te {
1197
1197
  }), s.append(r, l), { row: s, input: l, valueEl: c };
1198
1198
  }
1199
1199
  resetToDefaults() {
1200
- Object.assign(this.draft.colors, we);
1201
- const e = le();
1202
- this.draft.sysVars.compareprops = e.compareprops ?? se, this.draft.sysVars.comparehatch = e.comparehatch ?? oe, this.draft.sysVars.comparercmargin = e.comparercmargin ?? re, this.draft.sysVars.comparetext = e.comparetext ?? ae, this.draft.sysVars.comparetolerance = e.comparetolerance ?? X;
1200
+ Object.assign(this.draft.colors, Ce);
1201
+ const e = de();
1202
+ this.draft.sysVars.compareprops = e.compareprops ?? oe, this.draft.sysVars.comparehatch = e.comparehatch ?? re, this.draft.sysVars.comparercmargin = e.comparercmargin ?? ae, this.draft.sysVars.comparetext = e.comparetext ?? le, this.draft.sysVars.comparetolerance = e.comparetolerance ?? X;
1203
1203
  for (const t of this.pickers.keys()) {
1204
- const i = F(this.draft.colors[t]), n = this.pickers.get(t), o = this.hexLabels.get(t);
1204
+ const i = _(this.draft.colors[t]), n = this.pickers.get(t), o = this.hexLabels.get(t);
1205
1205
  n && (n.value = i), o && (o.textContent = i);
1206
1206
  }
1207
1207
  this.hatchCheck && (this.hatchCheck.checked = this.draft.sysVars.comparehatch !== 0), this.textCheck && (this.textCheck.checked = this.draft.sysVars.comparetext !== 0);
@@ -1435,56 +1435,56 @@ const C = class C extends Te {
1435
1435
  };
1436
1436
  C.settingsStyleId = "ml-diff-settings-dialog-styles-v3", C.settingsStylesInjected = !1, C.openInstance = null;
1437
1437
  let G = C;
1438
- const Nt = `
1438
+ const Bt = `
1439
1439
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1440
1440
  <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776" />
1441
1441
  </svg>
1442
- `.trim(), It = `
1442
+ `.trim(), Ft = `
1443
1443
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1444
1444
  <path stroke-linecap="round" stroke-linejoin="round" d="M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z" />
1445
1445
  </svg>
1446
- `.trim(), Bt = `
1446
+ `.trim(), _t = `
1447
1447
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1448
1448
  <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6" />
1449
1449
  </svg>
1450
- `.trim(), Ft = `
1450
+ `.trim(), Ht = `
1451
1451
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1452
1452
  <path stroke-linecap="round" stroke-linejoin="round" d="M3 5.625C3 5.004 3.504 4.5 4.125 4.5h15.75c.621 0 1.125.504 1.125 1.125v12.75c0 .621-.504 1.125-1.125 1.125H4.125A1.125 1.125 0 013 18.375V5.625Z" />
1453
1453
  <path stroke-linecap="round" stroke-linejoin="round" d="M15 4.5v15" />
1454
1454
  </svg>
1455
- `.trim(), _t = `
1455
+ `.trim(), jt = `
1456
1456
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1457
1457
  <path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5" />
1458
1458
  </svg>
1459
- `.trim(), Ht = `
1459
+ `.trim(), zt = `
1460
1460
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1461
1461
  <path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
1462
1462
  </svg>
1463
- `.trim(), jt = `
1463
+ `.trim(), Ut = `
1464
1464
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1465
1465
  <path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 010 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 010-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />
1466
1466
  <path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0Z" />
1467
1467
  </svg>
1468
- `.trim(), zt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" aria-hidden="true"><path fill="currentColor" d="M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32m384-384a32 32 0 0 1-32 32h-64a32 32 0 0 1 0-64h64a32 32 0 0 1 32 32M96 512a32 32 0 0 1 32-32H192a32 32 0 1 1 0 64H128a32 32 0 0 1-32-32m741.056-266.944a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248zm-589.056 589.056a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248zm589.056 0-45.248 45.248a32 32 0 0 1-45.248-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248M247.936 201.984a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248z"/></svg>', Ut = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" aria-hidden="true"><path fill="currentColor" d="M240.448 240.448a384 384 0 1 0 543.104 543.104 476.16 476.16 0 0 1-543.104-543.104"/></svg>', Kt = `
1468
+ `.trim(), Kt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" aria-hidden="true"><path fill="currentColor" d="M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32m384-384a32 32 0 0 1-32 32h-64a32 32 0 0 1 0-64h64a32 32 0 0 1 32 32M96 512a32 32 0 0 1 32-32H192a32 32 0 1 1 0 64H128a32 32 0 0 1-32-32m741.056-266.944a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248zm-589.056 589.056a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248zm589.056 0-45.248 45.248a32 32 0 0 1-45.248-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248M247.936 201.984a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 45.248-45.248z"/></svg>', Gt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" aria-hidden="true"><path fill="currentColor" d="M240.448 240.448a384 384 0 1 0 543.104 543.104 476.16 476.16 0 0 1-543.104-543.104"/></svg>', $t = `
1469
1469
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1470
1470
  <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 15a4.5 4.5 0 0 0 4.06 2.25h9.44a3.75 3.75 0 1 0-.3-7.49 5.25 5.25 0 0 0-10.12 1.5A4.5 4.5 0 0 0 2.25 15Z" />
1471
1471
  <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 3.75 16.82 4.61 17.68 4.93 16.82 5.25 16.5 6.11 16.18 5.25 15.32 4.93 16.18 4.61 16.5 3.75Z" />
1472
1472
  <path stroke-linecap="round" stroke-linejoin="round" d="M20.25 7.5 20.5 8.16 21.16 8.41 20.5 8.66 20.25 9.32 20 8.66 19.34 8.41 20 8.16 20.25 7.5Z" />
1473
1473
  </svg>
1474
- `.trim(), Gt = `
1474
+ `.trim(), Xt = `
1475
1475
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1476
1476
  <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m.75 12l3 3m0 0l3-3m-3 3v-6m-1.5-9H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" />
1477
1477
  </svg>
1478
1478
  `.trim();
1479
- function $t() {
1479
+ function Yt() {
1480
1480
  const a = document.createElement("span");
1481
- return a.className = "ml-diff-icon", a.innerHTML = Nt, a;
1481
+ return a.className = "ml-diff-icon", a.innerHTML = Bt, a;
1482
1482
  }
1483
- function Xt() {
1483
+ function Wt() {
1484
1484
  const a = document.createElement("span");
1485
- return a.className = "ml-diff-empty-icon", a.innerHTML = Gt, a;
1485
+ return a.className = "ml-diff-empty-icon", a.innerHTML = Xt, a;
1486
1486
  }
1487
- const be = "ml-diff-viewer-styles-v2", Yt = `
1487
+ const ve = "ml-diff-viewer-styles-v2", qt = `
1488
1488
  .ml-diff-root {
1489
1489
  --ml-diff-bg: var(--ml-ui-bg, #1d1e1f);
1490
1490
  --ml-diff-panel: var(--ml-ui-bg, #1d1e1f);
@@ -2208,20 +2208,20 @@ const be = "ml-diff-viewer-styles-v2", Yt = `
2208
2208
  color: var(--ml-diff-added);
2209
2209
  }
2210
2210
  `.trim();
2211
- function Wt() {
2212
- if (document.getElementById(be))
2211
+ function Zt() {
2212
+ if (document.getElementById(ve))
2213
2213
  return;
2214
2214
  const a = document.createElement("style");
2215
- a.id = be, a.textContent = Yt, document.head.appendChild(a);
2215
+ a.id = ve, a.textContent = qt, document.head.appendChild(a);
2216
2216
  }
2217
- const ve = {
2217
+ const ke = {
2218
2218
  minimumChunkSize: 1e3,
2219
2219
  mode: Me.Write,
2220
2220
  progressiveRendering: !1,
2221
2221
  sysVars: {
2222
2222
  lwdisplay: !1
2223
2223
  }
2224
- }, qt = /\.(dwg|dxf)$/i, ke = "cad-diff-viewer:changeset", Zt = 200, Jt = [
2224
+ }, Jt = /\.(dwg|dxf)$/i, xe = "cad-diff-viewer:changeset", Qt = 200, ei = [
2225
2225
  { command: "markupcloud", labelKey: "markupCloud", icon: De },
2226
2226
  { command: "markuprect", labelKey: "markupRect", icon: Oe },
2227
2227
  { command: "markupcircle", labelKey: "markupCircle", icon: Ve },
@@ -2236,12 +2236,12 @@ const ve = {
2236
2236
  { locale: "tr", label: "Türkçe" },
2237
2237
  { locale: "cs", label: "Čeština" },
2238
2238
  { locale: "ar", label: "العربية" }
2239
- ], Qt = '<svg class="ml-diff-lang-select__caret" viewBox="0 0 12 12" aria-hidden="true"><path fill="currentColor" d="M2.4 4.2 6 8.1l3.6-3.9"/></svg>';
2240
- function ei(a) {
2239
+ ], ti = '<svg class="ml-diff-lang-select__caret" viewBox="0 0 12 12" aria-hidden="true"><path fill="currentColor" d="M2.4 4.2 6 8.1l3.6-3.9"/></svg>';
2240
+ function ii(a) {
2241
2241
  var e;
2242
2242
  return ((e = Ee.find((t) => t.locale === a)) == null ? void 0 : e.label) ?? "English";
2243
2243
  }
2244
- const ti = {
2244
+ const ni = {
2245
2245
  objectId: "fieldObjectId",
2246
2246
  layer: "fieldLayer",
2247
2247
  color: "fieldColor",
@@ -2268,11 +2268,11 @@ const ti = {
2268
2268
  extents: "fieldExtents",
2269
2269
  geometry: "fieldGeometry"
2270
2270
  };
2271
- function ii(a) {
2272
- const e = ti[a];
2271
+ function si(a) {
2272
+ const e = ni[a];
2273
2273
  return e ? m(e) : a;
2274
2274
  }
2275
- function xe(a, e) {
2275
+ function we(a, e) {
2276
2276
  return e === "" ? "—" : a === "visibility" ? m(e === "true" ? "diffVisible" : "diffHidden") : e;
2277
2277
  }
2278
2278
  function w() {
@@ -2282,16 +2282,16 @@ function w() {
2282
2282
  throw new Error("AcApDiffViewer is not initialized");
2283
2283
  }
2284
2284
  }
2285
- function ni(a) {
2286
- return qt.test(a);
2285
+ function oi(a) {
2286
+ return Jt.test(a);
2287
2287
  }
2288
- function si(a) {
2288
+ function ri(a) {
2289
2289
  return {
2290
- ...we,
2290
+ ...Ce,
2291
2291
  ...a
2292
2292
  };
2293
2293
  }
2294
- class li {
2294
+ class ci {
2295
2295
  /**
2296
2296
  * Creates the widget, injects styles, and constructs a dedicated
2297
2297
  * {@link AcApDocManager} bound to the left canvas (and a split view for the right).
@@ -2319,7 +2319,7 @@ class li {
2319
2319
  this.onPaneViewChanged("left");
2320
2320
  }, this.handleRightViewChanged = () => {
2321
2321
  this.onPaneViewChanged("right");
2322
- }, this.options = e, this.colors = si(e.compareColors), this.sessionSysVars = le(), this.uiTheme = e.theme ?? "dark", this.viewMode = e.viewMode ?? "side-by-side", this.sidePanelOpen = e.sidePanelOpen !== !1, Rt(), Wt();
2322
+ }, this.options = e, this.colors = ri(e.compareColors), this.sessionSysVars = de(), this.uiTheme = e.theme ?? "dark", this.viewMode = e.viewMode ?? "side-by-side", this.sidePanelOpen = e.sidePanelOpen !== !1, Ot(), Zt();
2323
2323
  let t = !1;
2324
2324
  try {
2325
2325
  K.instance, t = !0;
@@ -2330,21 +2330,22 @@ class li {
2330
2330
  throw new Error(
2331
2331
  "AcApDiffViewer needs its own AcApDocManager. Create it on a page that does not already host a CAD viewer."
2332
2332
  );
2333
- this.root = document.createElement("div"), this.root.className = "ml-diff-root", ce(this.uiTheme, this.root), this.toolbar = document.createElement("div"), this.toolbar.className = "ml-diff-toolbar", this.body = document.createElement("div"), this.body.className = "ml-diff-body", this.panesHost = document.createElement("div"), this.panesHost.className = "ml-diff-panes", this.leftUi = this.createPane("left"), this.rightUi = this.createPane("right"), this.panesHost.append(this.leftUi.pane, this.rightUi.pane);
2333
+ this.root = document.createElement("div"), this.root.className = "ml-diff-root", fe(this.uiTheme, this.root), this.toolbar = document.createElement("div"), this.toolbar.className = "ml-diff-toolbar", this.body = document.createElement("div"), this.body.className = "ml-diff-body", this.panesHost = document.createElement("div"), this.panesHost.className = "ml-diff-panes", this.leftUi = this.createPane("left"), this.rightUi = this.createPane("right"), this.panesHost.append(this.leftUi.pane, this.rightUi.pane);
2334
2334
  const i = this.createChrome();
2335
2335
  this.btnSideBySide = i.btnSideBySide, this.btnOverlay = i.btnOverlay, this.btnSyncViews = i.btnSyncViews, this.btnTogglePanel = i.btnTogglePanel, this.btnPrev = i.btnPrev, this.btnNext = i.btnNext, this.btnSettings = i.btnSettings, this.btnMarkupVis = i.btnMarkupVis, this.btnClearMarkups = i.btnClearMarkups, this.btnTheme = i.btnTheme, this.sidePanel = i.sidePanel, this.resultsBody = i.resultsBody, this.markupsBody = i.markupsBody, this.tabResults = i.tabResults, this.tabMarkups = i.tabMarkups, this.groupByKindBtn = i.groupByKindBtn, this.groupByTypeBtn = i.groupByTypeBtn, this.panelTitle = i.panelTitle, this.localeTrigger = i.localeTrigger, this.localeMenu = i.localeMenu, this.localeSelectHost = i.localeSelectHost, this.diffPopover = document.createElement("div"), this.diffPopover.className = "ml-diff-change-popover", this.diffPopover.hidden = !0, this.diffPopover.setAttribute("role", "tooltip"), this.diffPopover.addEventListener("mouseenter", this.cancelDiffPopoverHide), this.diffPopover.addEventListener("mouseleave", this.scheduleDiffPopoverHide), this.toolbar.append(...i.toolbarChildren), this.body.append(this.panesHost, this.sidePanel), this.root.append(this.toolbar, this.body, this.diffPopover), e.container.appendChild(this.root);
2336
- const n = e.openDocumentDefaults ?? ve;
2336
+ const n = e.openDocumentDefaults ?? ke;
2337
2337
  K.createInstance({
2338
2338
  container: this.leftUi.canvas,
2339
2339
  busyIndicatorHost: this.leftUi.canvas,
2340
2340
  autoResize: !0,
2341
2341
  baseUrl: e.baseUrl,
2342
2342
  builtinOpenFileDialog: !1,
2343
+ simpleUi: !1,
2343
2344
  openDocumentDefaults: n,
2344
2345
  webworkerFileUrls: e.webworkerFileUrls
2345
2346
  });
2346
2347
  const o = K.instance;
2347
- this.disableEntitySelection(o.mainView), this.disableEntitySelection(o.ensureSplitView(this.rightUi.canvas)), this.bindViewSyncListeners(), L.events.localeChanged.addEventListener(this.handleLocaleChanged), document.addEventListener("pointerdown", this.handleDocumentPointerDown), this.resultsBody.addEventListener("scroll", this.handleDiffPopoverDismiss), window.addEventListener("resize", this.handleDiffPopoverDismiss), this.syncChrome(), this.syncViewModeUi(), this.syncPanelUi(), this.syncCompareColorVars();
2348
+ this.disableEntitySelection(o.mainView), this.disableEntitySelection(o.ensureSplitView(this.rightUi.canvas)), this.bindViewSyncListeners(), T.events.localeChanged.addEventListener(this.handleLocaleChanged), document.addEventListener("pointerdown", this.handleDocumentPointerDown), this.resultsBody.addEventListener("scroll", this.handleDiffPopoverDismiss), window.addEventListener("resize", this.handleDiffPopoverDismiss), this.syncChrome(), this.syncViewModeUi(), this.syncPanelUi(), this.syncCompareColorVars();
2348
2349
  }
2349
2350
  /** Drawing currently shown in the left pane, if still live. */
2350
2351
  get leftDocument() {
@@ -2380,12 +2381,12 @@ class li {
2380
2381
  if (r && o.sessionFor(r) && !r.isReusableUntitled && r !== d && await o.closeDocument(r), this.uiFor(e).empty.classList.add("is-hidden"), this.clearPaneError(e), !await o.openDocument(
2381
2382
  t,
2382
2383
  i,
2383
- n ?? this.options.openDocumentDefaults ?? ve,
2384
+ n ?? this.options.openDocumentDefaults ?? ke,
2384
2385
  this.viewFor(e)
2385
2386
  ))
2386
2387
  return (p = (f = this.options.events) == null ? void 0 : f.failed) == null || p.call(f, e, t), this.syncChrome(), s && (await this.enterOverlayMode(), this.syncViewModeUi()), !1;
2387
2388
  const l = o.curDocument;
2388
- return e === "left" ? this.leftDoc = l : this.rightDoc = l, this.adoptCompareSysVarsAfterOpen(l, !!this.liveDoc(d)), this.syncChrome(), (h = (u = this.options.events) == null ? void 0 : u.opened) == null || h.call(u, e, l), this.syncFollowerAfterOpen(e), this.applyMarkupVisibility(Y()), await this.runCompareAndApply(), !0;
2389
+ return e === "left" ? this.leftDoc = l : this.rightDoc = l, this.adoptCompareSysVarsAfterOpen(l, !!this.liveDoc(d)), this.syncChrome(), (h = (u = this.options.events) == null ? void 0 : u.opened) == null || h.call(u, e, l), this.syncFollowerAfterOpen(e), this.applyMarkupVisibility(W()), await this.runCompareAndApply(), !0;
2389
2390
  }
2390
2391
  /**
2391
2392
  * Makes `side` the command target without changing which canvas shows which drawing.
@@ -2458,7 +2459,7 @@ class li {
2458
2459
  */
2459
2460
  async destroy() {
2460
2461
  if (!this.disposed) {
2461
- this.disposed = !0, this.compareSeq++, this.overlayRegisterSeq++, this.clearSysVarPreviewTimer(), G.dismiss(), L.events.localeChanged.removeEventListener(this.handleLocaleChanged), document.removeEventListener("pointerdown", this.handleDocumentPointerDown), this.resultsBody.removeEventListener("scroll", this.handleDiffPopoverDismiss), window.removeEventListener("resize", this.handleDiffPopoverDismiss), this.hideDiffPopover(!0), this.unbindViewSyncListeners();
2462
+ this.disposed = !0, this.compareSeq++, this.overlayRegisterSeq++, this.clearSysVarPreviewTimer(), G.dismiss(), T.events.localeChanged.removeEventListener(this.handleLocaleChanged), document.removeEventListener("pointerdown", this.handleDocumentPointerDown), this.resultsBody.removeEventListener("scroll", this.handleDiffPopoverDismiss), window.removeEventListener("resize", this.handleDiffPopoverDismiss), this.hideDiffPopover(!0), this.unbindViewSyncListeners();
2462
2463
  for (const e of this.bannerTimers.values())
2463
2464
  window.clearTimeout(e);
2464
2465
  this.bannerTimers.clear();
@@ -2478,15 +2479,15 @@ class li {
2478
2479
  const e = document.createElement("div");
2479
2480
  e.className = "ml-diff-toolbar-group";
2480
2481
  const t = document.createElement("button");
2481
- t.type = "button", t.className = "ml-diff-tool-btn is-icon", t.innerHTML = It;
2482
+ t.type = "button", t.className = "ml-diff-tool-btn is-icon", t.innerHTML = Ft;
2482
2483
  const i = document.createElement("button");
2483
- i.type = "button", i.className = "ml-diff-tool-btn is-icon", i.innerHTML = Bt;
2484
+ i.type = "button", i.className = "ml-diff-tool-btn is-icon", i.innerHTML = _t;
2484
2485
  const n = document.createElement("button");
2485
- n.type = "button", n.className = "ml-diff-tool-btn is-icon ml-diff-sync-btn", n.innerHTML = _t, e.append(t, i, n);
2486
+ n.type = "button", n.className = "ml-diff-tool-btn is-icon ml-diff-sync-btn", n.innerHTML = jt, e.append(t, i, n);
2486
2487
  const o = document.createElement("div");
2487
2488
  o.className = "ml-diff-toolbar-group";
2488
2489
  const s = document.createElement("button");
2489
- s.type = "button", s.className = "ml-diff-tool-btn is-icon", s.innerHTML = Ft;
2490
+ s.type = "button", s.className = "ml-diff-tool-btn is-icon", s.innerHTML = Ht;
2490
2491
  const r = document.createElement("button");
2491
2492
  r.type = "button", r.className = "ml-diff-tool-btn", r.textContent = "◀", r.disabled = !0;
2492
2493
  const d = document.createElement("button");
@@ -2494,10 +2495,10 @@ class li {
2494
2495
  const c = document.createElement("div");
2495
2496
  c.className = "ml-diff-toolbar-group";
2496
2497
  const l = document.createElement("button");
2497
- l.type = "button", l.className = "ml-diff-tool-btn is-icon", l.dataset.labelKey = "markupGenerateClouds", l.disabled = !0, l.innerHTML = Kt, l.addEventListener("click", () => {
2498
+ l.type = "button", l.className = "ml-diff-tool-btn is-icon", l.dataset.labelKey = "markupGenerateClouds", l.disabled = !0, l.innerHTML = $t, l.addEventListener("click", () => {
2498
2499
  this.generateCompareCloudMarkups();
2499
2500
  }), this.markupButtons.push(l), c.appendChild(l);
2500
- for (const E of Jt) {
2501
+ for (const E of ei) {
2501
2502
  const N = document.createElement("button");
2502
2503
  N.type = "button", N.className = "ml-diff-tool-btn is-icon", N.dataset.command = E.command, N.dataset.labelKey = E.labelKey, N.innerHTML = E.icon, N.addEventListener("click", () => {
2503
2504
  this.runMarkupCommand(E.command);
@@ -2512,7 +2513,7 @@ class li {
2512
2513
  this.clearAllMarkups();
2513
2514
  }), this.markupButtons.push(p), c.appendChild(p);
2514
2515
  const u = this.createLanguageSelect(), h = document.createElement("button");
2515
- h.type = "button", h.className = "ml-diff-tool-btn is-icon", h.innerHTML = jt;
2516
+ h.type = "button", h.className = "ml-diff-tool-btn is-icon", h.innerHTML = Ut;
2516
2517
  const g = document.createElement("button");
2517
2518
  g.type = "button", g.className = "ml-diff-tool-btn is-icon", u.group.prepend(h, g), t.addEventListener("click", () => {
2518
2519
  this.setViewMode("side-by-side");
@@ -2537,8 +2538,8 @@ class li {
2537
2538
  k.className = "ml-diff-sidepanel-header";
2538
2539
  const A = document.createElement("div");
2539
2540
  A.className = "ml-diff-sidepanel-title";
2540
- const M = document.createElement("button");
2541
- M.type = "button", M.className = "ml-diff-tool-btn", M.textContent = "×", M.addEventListener("click", () => this.setSidePanelOpen(!1)), k.append(A, M);
2541
+ const L = document.createElement("button");
2542
+ L.type = "button", L.className = "ml-diff-tool-btn", L.textContent = "×", L.addEventListener("click", () => this.setSidePanelOpen(!1)), k.append(A, L);
2542
2543
  const z = document.createElement("div");
2543
2544
  z.className = "ml-diff-sidepanel-tabs";
2544
2545
  const I = document.createElement("button");
@@ -2551,18 +2552,18 @@ class li {
2551
2552
  });
2552
2553
  const U = document.createElement("div");
2553
2554
  U.className = "ml-diff-sidepanel-toolbar";
2554
- const _ = document.createElement("button");
2555
- _.type = "button", _.className = "ml-diff-tool-btn is-active";
2555
+ const H = document.createElement("button");
2556
+ H.type = "button", H.className = "ml-diff-tool-btn is-active";
2556
2557
  const y = document.createElement("button");
2557
- y.type = "button", y.className = "ml-diff-tool-btn", U.append(_, y), _.addEventListener("click", () => {
2558
+ y.type = "button", y.className = "ml-diff-tool-btn", U.append(H, y), H.addEventListener("click", () => {
2558
2559
  this.resultGroupMode = "kind", this.renderResultsList(), this.syncPanelUi();
2559
2560
  }), y.addEventListener("click", () => {
2560
2561
  this.resultGroupMode = "type", this.renderResultsList(), this.syncPanelUi();
2561
2562
  });
2562
2563
  const x = document.createElement("div");
2563
2564
  x.className = "ml-diff-sidepanel-body";
2564
- const T = document.createElement("div");
2565
- return T.className = "ml-diff-sidepanel-body", T.hidden = !0, b.append(k, z, U, x, T), {
2565
+ const M = document.createElement("div");
2566
+ return M.className = "ml-diff-sidepanel-body", M.hidden = !0, b.append(k, z, U, x, M), {
2566
2567
  toolbarChildren: [e, o, c, u.group],
2567
2568
  btnSideBySide: t,
2568
2569
  btnOverlay: i,
@@ -2577,13 +2578,13 @@ class li {
2577
2578
  btnTheme: g,
2578
2579
  sidePanel: b,
2579
2580
  resultsBody: x,
2580
- markupsBody: T,
2581
+ markupsBody: M,
2581
2582
  tabResults: I,
2582
2583
  tabMarkups: V,
2583
- groupByKindBtn: _,
2584
+ groupByKindBtn: H,
2584
2585
  groupByTypeBtn: y,
2585
2586
  panelTitle: A,
2586
- closeBtn: M,
2587
+ closeBtn: L,
2587
2588
  localeTrigger: u.trigger,
2588
2589
  localeMenu: u.menu,
2589
2590
  localeSelectHost: u.host
@@ -2600,7 +2601,7 @@ class li {
2600
2601
  const i = document.createElement("button");
2601
2602
  i.type = "button", i.className = "ml-diff-lang-select__trigger", i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "false");
2602
2603
  const n = document.createElement("span");
2603
- n.className = "ml-diff-lang-select__label", i.append(n), i.insertAdjacentHTML("beforeend", Qt), i.addEventListener("click", (s) => {
2604
+ n.className = "ml-diff-lang-select__label", i.append(n), i.insertAdjacentHTML("beforeend", ti), i.addEventListener("click", (s) => {
2604
2605
  s.stopPropagation(), this.setLocaleMenuOpen(!this.localeMenuOpen);
2605
2606
  });
2606
2607
  const o = document.createElement("div");
@@ -2608,7 +2609,7 @@ class li {
2608
2609
  for (const s of Ee) {
2609
2610
  const r = document.createElement("button");
2610
2611
  r.type = "button", r.className = "ml-diff-lang-select__option", r.setAttribute("role", "option"), r.dataset.locale = s.locale, r.textContent = s.label, r.addEventListener("click", (d) => {
2611
- d.stopPropagation(), this.setLocaleMenuOpen(!1), s.locale !== L.currentLocale && (L.setCurrentLocale(s.locale), document.documentElement.lang = s.locale);
2612
+ d.stopPropagation(), this.setLocaleMenuOpen(!1), s.locale !== T.currentLocale && (T.setCurrentLocale(s.locale), document.documentElement.lang = s.locale);
2612
2613
  }), o.appendChild(r);
2613
2614
  }
2614
2615
  return t.append(i, o), e.appendChild(t), { group: e, host: t, trigger: i, menu: o };
@@ -2619,8 +2620,8 @@ class li {
2619
2620
  }
2620
2621
  /** Highlights the active locale and refreshes the trigger label. */
2621
2622
  syncLocaleSelect() {
2622
- const e = L.currentLocale, t = this.localeTrigger.querySelector(".ml-diff-lang-select__label");
2623
- t && (t.textContent = ei(e)), this.localeTrigger.title = m("toolbarLanguage"), this.localeTrigger.setAttribute(
2623
+ const e = T.currentLocale, t = this.localeTrigger.querySelector(".ml-diff-lang-select__label");
2624
+ t && (t.textContent = ii(e)), this.localeTrigger.title = m("toolbarLanguage"), this.localeTrigger.setAttribute(
2624
2625
  "aria-label",
2625
2626
  m("toolbarLanguage")
2626
2627
  ), this.localeMenu.querySelectorAll(".ml-diff-lang-select__option").forEach((i) => {
@@ -2641,7 +2642,7 @@ class li {
2641
2642
  const n = document.createElement("span");
2642
2643
  n.className = "ml-diff-title is-empty";
2643
2644
  const o = document.createElement("button");
2644
- o.type = "button", o.className = "ml-diff-open", o.appendChild($t());
2645
+ o.type = "button", o.className = "ml-diff-open", o.appendChild(Yt());
2645
2646
  const s = document.createElement("input");
2646
2647
  s.type = "file", s.className = "ml-diff-file-input", s.accept = ".dwg,.dxf,application/acad,application/dxf", s.tabIndex = -1, i.append(n, o, s);
2647
2648
  const r = document.createElement("div");
@@ -2657,7 +2658,7 @@ class li {
2657
2658
  const p = document.createElement("div");
2658
2659
  p.className = "ml-diff-empty-hint";
2659
2660
  const u = document.createElement("div");
2660
- u.className = "ml-diff-empty-error is-hidden", l.append(Xt(), f, p, u), c.appendChild(l);
2661
+ u.className = "ml-diff-empty-error is-hidden", l.append(Wt(), f, p, u), c.appendChild(l);
2661
2662
  const h = document.createElement("div");
2662
2663
  return h.className = "ml-diff-banner is-hidden", r.append(d, c, h), t.append(i, r), t.addEventListener("pointerenter", () => {
2663
2664
  this.activateSideOnHover(e);
@@ -2733,7 +2734,7 @@ class li {
2733
2734
  * @param file - User-selected file.
2734
2735
  */
2735
2736
  async openLocalFile(e, t) {
2736
- if (!ni(t.name)) {
2737
+ if (!oi(t.name)) {
2737
2738
  this.showPaneError(e, m("invalidFile"));
2738
2739
  return;
2739
2740
  }
@@ -2775,7 +2776,7 @@ class li {
2775
2776
  * updated so side-by-side views stay in sync.
2776
2777
  */
2777
2778
  toggleMarkupVisibility() {
2778
- this.disposed || !this.leftDocument && !this.rightDocument || (this.applyMarkupVisibility(!Y()), this.syncMarkupVisibilityButton());
2779
+ this.disposed || !this.leftDocument && !this.rightDocument || (this.applyMarkupVisibility(!W()), this.syncMarkupVisibilityButton());
2779
2780
  }
2780
2781
  /**
2781
2782
  * Applies markup-layer visibility to each pane that currently has a drawing.
@@ -2783,7 +2784,7 @@ class li {
2783
2784
  * @param visible - Whether committed and live markup overlays should show.
2784
2785
  */
2785
2786
  applyMarkupVisibility(e) {
2786
- this.leftDocument && fe(this.viewFor("left"), e), this.rightDocument && fe(this.viewFor("right"), e);
2787
+ this.leftDocument && me(this.viewFor("left"), e), this.rightDocument && me(this.viewFor("right"), e);
2787
2788
  }
2788
2789
  /**
2789
2790
  * Clears Design Review markups on both open drawings (current layout).
@@ -2793,7 +2794,7 @@ class li {
2793
2794
  for (const e of ["left", "right"]) {
2794
2795
  if (!this.documentFor(e) || !await this.activateSide(e) || this.disposed) continue;
2795
2796
  const i = this.viewFor(e);
2796
- me().clearLayout(i, i.activeLayoutBtrId, {
2797
+ pe().clearLayout(i, i.activeLayoutBtrId, {
2797
2798
  clearStore: !0
2798
2799
  });
2799
2800
  }
@@ -2811,15 +2812,15 @@ class li {
2811
2812
  if (!await this.activateSide(e) || this.disposed) return;
2812
2813
  const n = w(), o = this.viewFor(e), s = n.context;
2813
2814
  Le(o, "Create Markup", () => {
2814
- const r = Ae(), d = me();
2815
+ const r = Ae(), d = pe();
2815
2816
  for (const c of r.list())
2816
- c.type !== "cloud" || c.comment !== ke || (d.unpublish(o, c.id, { keepInStore: !0 }), r.removeRecord(c.id));
2817
+ c.type !== "cloud" || c.comment !== xe || (d.unpublish(o, c.id, { keepInStore: !0 }), r.removeRecord(c.id));
2817
2818
  for (const c of t) {
2818
2819
  const l = c.extents;
2819
2820
  if (l.maxX <= l.minX && l.maxY <= l.minY) continue;
2820
2821
  const f = Re("cloud", o, s, {
2821
- comment: ke
2822
- }), p = F(
2822
+ comment: xe
2823
+ }), p = _(
2823
2824
  this.colors[ot(c)]
2824
2825
  ), u = {
2825
2826
  ...f,
@@ -2870,7 +2871,7 @@ class li {
2870
2871
  * @param otherIsOpen - True when the opposite pane already has a drawing.
2871
2872
  */
2872
2873
  adoptCompareSysVarsAfterOpen(e, t) {
2873
- t || (this.sessionSysVars = pt(e.database)), ue(this.sessionSysVars, [e.database]);
2874
+ t || (this.sessionSysVars = pt(e.database)), ge(this.sessionSysVars, [e.database]);
2874
2875
  }
2875
2876
  /** Cancels a pending Settings sysvar preview timer. */
2876
2877
  clearSysVarPreviewTimer() {
@@ -2887,7 +2888,7 @@ class li {
2887
2888
  const t = { ...e };
2888
2889
  this.sysVarPreviewTimer = window.setTimeout(() => {
2889
2890
  this.sysVarPreviewTimer = 0, !this.disposed && this.applyCompareSysVars(t);
2890
- }, Zt);
2891
+ }, Qt);
2891
2892
  }
2892
2893
  /**
2893
2894
  * Applies COMPARE sysvars immediately, dropping any pending preview timer.
@@ -2909,7 +2910,7 @@ class li {
2909
2910
  const i = [(n = this.leftDocument) == null ? void 0 : n.database, (o = this.rightDocument) == null ? void 0 : o.database].filter(
2910
2911
  (s) => s != null
2911
2912
  );
2912
- ue(this.sessionSysVars, i), t || this.runCompareAndApply();
2913
+ ge(this.sessionSysVars, i), t || this.runCompareAndApply();
2913
2914
  }
2914
2915
  /**
2915
2916
  * Writes compare colors onto the widget and re-tints open drawings.
@@ -2923,13 +2924,13 @@ class li {
2923
2924
  syncCompareColorVars() {
2924
2925
  this.root.style.setProperty(
2925
2926
  "--ml-diff-added",
2926
- F(this.colors.added)
2927
+ _(this.colors.added)
2927
2928
  ), this.root.style.setProperty(
2928
2929
  "--ml-diff-deleted",
2929
- F(this.colors.deleted)
2930
+ _(this.colors.deleted)
2930
2931
  ), this.root.style.setProperty(
2931
2932
  "--ml-diff-modified",
2932
- F(this.colors.modified)
2933
+ _(this.colors.modified)
2933
2934
  );
2934
2935
  }
2935
2936
  /** Compares both panes when they have drawings, then applies display coloring. */
@@ -3077,7 +3078,7 @@ class li {
3077
3078
  this.viewMode !== "overlay" && await this.activateSide(e.side);
3078
3079
  const i = this.viewFor(t);
3079
3080
  if (e.extents) {
3080
- const n = new he();
3081
+ const n = new ue();
3081
3082
  if (n.expandByPoint({ x: e.extents.minX, y: e.extents.minY }), n.expandByPoint({ x: e.extents.maxX, y: e.extents.maxY }), e.pairedId && e.kind === "modified" && this.compareResult) {
3082
3083
  const o = this.compareResult.modified.find(
3083
3084
  (s) => s.objectId === e.pairedId
@@ -3132,10 +3133,10 @@ class li {
3132
3133
  this.navIndex = u >= 0 ? u : this.navIndex, this.focusHit(f), this.renderResultsList();
3133
3134
  }), p.appendChild(h), f.kind === "modified") {
3134
3135
  const k = document.createElement("button");
3135
- k.type = "button", k.className = "ml-diff-result-info", k.innerHTML = Ht;
3136
+ k.type = "button", k.className = "ml-diff-result-info", k.innerHTML = zt;
3136
3137
  const A = m("diffDetails");
3137
- k.setAttribute("aria-label", A), k.setAttribute("aria-expanded", "false"), k.addEventListener("click", (M) => {
3138
- M.preventDefault(), M.stopPropagation(), this.toggleDiffPopover(k, f);
3138
+ k.setAttribute("aria-label", A), k.setAttribute("aria-expanded", "false"), k.addEventListener("click", (L) => {
3139
+ L.preventDefault(), L.stopPropagation(), this.toggleDiffPopover(k, f);
3139
3140
  }), k.addEventListener("mouseenter", () => {
3140
3141
  this.showDiffPopover(k, f, !1);
3141
3142
  }), k.addEventListener("mouseleave", this.scheduleDiffPopoverHide), p.appendChild(k);
@@ -3190,11 +3191,11 @@ class li {
3190
3191
  const c = document.createElement("tbody");
3191
3192
  for (const l of n) {
3192
3193
  const f = document.createElement("tr"), p = document.createElement("th");
3193
- p.scope = "row", p.textContent = ii(l.field);
3194
+ p.scope = "row", p.textContent = si(l.field);
3194
3195
  const u = document.createElement("td");
3195
- u.className = "ml-diff-change-old", u.textContent = xe(l.field, l.oldValue);
3196
+ u.className = "ml-diff-change-old", u.textContent = we(l.field, l.oldValue);
3196
3197
  const h = document.createElement("td");
3197
- h.className = "ml-diff-change-new", h.textContent = xe(l.field, l.newValue), f.append(p, u, h), c.appendChild(f);
3198
+ h.className = "ml-diff-change-new", h.textContent = we(l.field, l.newValue), f.append(p, u, h), c.appendChild(f);
3198
3199
  }
3199
3200
  s.append(r, c), t.appendChild(s);
3200
3201
  }
@@ -3223,13 +3224,13 @@ class li {
3223
3224
  if (t) {
3224
3225
  const s = n.sessionFor(t);
3225
3226
  if (s)
3226
- for (const r of pe(s.id))
3227
+ for (const r of he(s.id))
3227
3228
  o.push({ side: "left", record: r });
3228
3229
  }
3229
3230
  if (i) {
3230
3231
  const s = n.sessionFor(i);
3231
3232
  if (s)
3232
- for (const r of pe(s.id))
3233
+ for (const r of he(s.id))
3233
3234
  o.push({ side: "right", record: r });
3234
3235
  }
3235
3236
  if (o.length === 0) {
@@ -3390,7 +3391,7 @@ class li {
3390
3391
  let r;
3391
3392
  try {
3392
3393
  const d = i.screenToWorld({ x: 0, y: 0 }), c = i.screenToWorld({ x: o, y: s });
3393
- r = new he(), r.expandByPoint(d), r.expandByPoint(c);
3394
+ r = new ue(), r.expandByPoint(d), r.expandByPoint(c);
3394
3395
  } catch {
3395
3396
  return;
3396
3397
  }
@@ -3419,7 +3420,7 @@ class li {
3419
3420
  }
3420
3421
  /** Display title for a pane header. */
3421
3422
  paneTitle(e) {
3422
- return e ? e.docTitle || e.fileName || L.t("main.document.untitled") : m("noDrawing");
3423
+ return e ? e.docTitle || e.fileName || T.t("main.document.untitled") : m("noDrawing");
3423
3424
  }
3424
3425
  /** Syncs pane titles, empty states, and focus rings with live documents. */
3425
3426
  syncChrome() {
@@ -3500,14 +3501,14 @@ class li {
3500
3501
  * @param theme - Target light or dark chrome theme.
3501
3502
  */
3502
3503
  setUiTheme(e) {
3503
- this.uiTheme = e, ce(e, this.root), this.syncThemeButton();
3504
+ this.uiTheme = e, fe(e, this.root), this.syncThemeButton();
3504
3505
  }
3505
3506
  /**
3506
3507
  * Updates the markup visibility toggle icon and label (action: hide when
3507
3508
  * shown, show when hidden).
3508
3509
  */
3509
3510
  syncMarkupVisibilityButton() {
3510
- const e = Y();
3511
+ const e = W();
3511
3512
  this.btnMarkupVis.innerHTML = e ? je : ze;
3512
3513
  const t = m(e ? "markupHide" : "markupShow");
3513
3514
  this.btnMarkupVis.title = t, this.btnMarkupVis.setAttribute("aria-label", t), this.btnMarkupVis.setAttribute("aria-pressed", String(e)), this.btnMarkupVis.classList.toggle("is-active", e);
@@ -3518,7 +3519,7 @@ class li {
3518
3519
  */
3519
3520
  syncThemeButton() {
3520
3521
  const e = this.uiTheme === "dark";
3521
- this.btnTheme.innerHTML = e ? zt : Ut;
3522
+ this.btnTheme.innerHTML = e ? Kt : Gt;
3522
3523
  const t = m(e ? "toolbarThemeDark" : "toolbarThemeLight");
3523
3524
  this.btnTheme.title = t, this.btnTheme.setAttribute("aria-label", t);
3524
3525
  }
@@ -3529,15 +3530,15 @@ class li {
3529
3530
  }
3530
3531
  }
3531
3532
  export {
3532
- li as AcApDiffViewer,
3533
+ ci as AcApDiffViewer,
3533
3534
  ct as acapBuildCompareChangeSets,
3534
3535
  ot as acapChangeSetCloudRole,
3535
3536
  Et as acapCompareDrawings,
3536
- le as acapDefaultCompareSysVars,
3537
+ de as acapDefaultCompareSysVars,
3537
3538
  m as acapDiffViewerT,
3538
- Wt as acapInjectDiffViewerStyles,
3539
+ Zt as acapInjectDiffViewerStyles,
3539
3540
  pt as acapReadCompareSysVars,
3540
- Rt as acapRegisterDiffViewerI18n,
3541
+ Ot as acapRegisterDiffViewerI18n,
3541
3542
  ht as acapToleranceFromCompareTolerance,
3542
- ue as acapWriteCompareSysVars
3543
+ ge as acapWriteCompareSysVars
3543
3544
  };