@thibezer/ui-components-kit 2.24.1 → 2.24.2

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/dist/botao.cjs +12 -1
  3. package/dist/botao.js +162 -3
  4. package/dist/camadas.cjs +311 -1
  5. package/dist/camadas.js +3244 -148
  6. package/dist/campo-texto.cjs +16 -1
  7. package/dist/campo-texto.js +308 -7
  8. package/dist/canvas.cjs +22 -22
  9. package/dist/canvas.js +230 -233
  10. package/dist/card.cjs +20 -1
  11. package/dist/card.js +145 -2
  12. package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
  13. package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +18 -0
  14. package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +4 -0
  15. package/dist/components/ui-editor-prancha/editor-modos.d.ts +10 -0
  16. package/dist/components/ui-editor-prancha/editor-tipos.d.ts +4 -0
  17. package/dist/components/ui-editor-prancha/index.d.ts +1 -0
  18. package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +39 -6
  19. package/dist/core.cjs +1 -1
  20. package/dist/core.js +44 -55
  21. package/dist/{cores-utils-BrdynxRd.js → cores-utils-DMyqWvZh.js} +2 -2
  22. package/dist/cores.cjs +32 -1
  23. package/dist/cores.js +300 -13
  24. package/dist/custom-elements.json +1712 -1205
  25. package/dist/data.cjs +28 -1
  26. package/dist/data.js +286 -99
  27. package/dist/{feature_caixa-2Sxv3tGa.js → feature_caixa-BVc5LenS.js} +42 -42
  28. package/dist/{feature_desenho-BVHivWIB.js → feature_desenho-CC8Mp5Gp.js} +2 -2
  29. package/dist/feedback.cjs +52 -1
  30. package/dist/feedback.js +655 -25
  31. package/dist/forms.cjs +66 -1
  32. package/dist/forms.js +1216 -39
  33. package/dist/{geometria-px-DUs5FgLE.js → geometria-px-DHMPUsxC.js} +47 -47
  34. package/dist/index.cjs +67 -1
  35. package/dist/index.js +1476 -274
  36. package/dist/kit-base-CGqj9aiD.cjs +2 -0
  37. package/dist/kit-base-_THn4w3u.js +1079 -0
  38. package/dist/mapa.cjs +5 -5
  39. package/dist/mapa.js +16 -17
  40. package/dist/modal.cjs +18 -1
  41. package/dist/modal.js +235 -29
  42. package/dist/motor.js +49 -49
  43. package/dist/prancha-nucleo.cjs +3 -1
  44. package/dist/prancha-nucleo.js +3120 -277
  45. package/dist/prancha.cjs +38 -1
  46. package/dist/prancha.js +3233 -228
  47. package/dist/register.cjs +1 -1
  48. package/dist/register.js +3 -20
  49. package/dist/seletor-mapa-base.cjs +13 -13
  50. package/dist/seletor-mapa-base.js +3 -5
  51. package/dist/tabela.cjs +142 -1
  52. package/dist/tabela.js +3773 -92
  53. package/dist/tipos-elementos.d.ts +5 -1
  54. package/dist/tipos-vue.d.ts +4 -1
  55. package/dist/tools.cjs +16 -1
  56. package/dist/tools.js +1564 -26
  57. package/dist/ui-seletor-cor-BGw8SBPm.cjs +83 -0
  58. package/dist/{ui-seletor-cor-Cd8jkzXG.js → ui-seletor-cor-B_twSm-V.js} +8 -9
  59. package/dist/utils-ClVgqVyJ.cjs +1 -0
  60. package/dist/utils-DrHoxxmf.js +83 -0
  61. package/package.json +43 -2
  62. package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
  63. package/dist/acessibilidade-CUlSXc2X.js +0 -38
  64. package/dist/altura-controle-ukMRPckR.cjs +0 -1
  65. package/dist/altura-controle-vxQiXG4q.js +0 -62
  66. package/dist/alvo-digitavel-CzCvNVQ3.js +0 -23
  67. package/dist/alvo-digitavel-DbH0hYFf.cjs +0 -1
  68. package/dist/degrade-CIxvOTUv.cjs +0 -1
  69. package/dist/degrade-gDa5sW__.js +0 -119
  70. package/dist/feature_caixa-CnYPKVFS.cjs +0 -1
  71. package/dist/feature_caixa-DCs9ZeSk.js +0 -1038
  72. package/dist/feature_historico-BAIYk1Me.cjs +0 -3
  73. package/dist/feature_historico-C4h9y5fu.js +0 -3039
  74. package/dist/form-atalhos-7JTYvumA.cjs +0 -1
  75. package/dist/form-atalhos-DDTlpgaB.js +0 -203
  76. package/dist/form-erros-CwPz7Jr4.cjs +0 -1
  77. package/dist/form-erros-DT5HklfD.js +0 -184
  78. package/dist/form-submissao-C-SPRKgT.js +0 -61
  79. package/dist/form-submissao-DxKO5MHI.cjs +0 -1
  80. package/dist/form-validacao-BlQFxUVj.js +0 -104
  81. package/dist/form-validacao-DIeyQVH5.cjs +0 -1
  82. package/dist/geometria-px-DKrWq_XY.js +0 -639
  83. package/dist/leaflet-CEPcxGWV.cjs +0 -1
  84. package/dist/leaflet-DOq10gfg.js +0 -84
  85. package/dist/leaflet-loader-94z5VsdY.cjs +0 -2
  86. package/dist/leaflet-loader-Cjcdgj5R.js +0 -21
  87. package/dist/listener-bag-D5omxZ9h.cjs +0 -1
  88. package/dist/listener-bag-DQgv7OON.js +0 -34
  89. package/dist/motor-By2te6PZ.js +0 -1400
  90. package/dist/motor-CkMxd378.cjs +0 -1
  91. package/dist/opcoes-CupvWVIm.js +0 -24
  92. package/dist/opcoes-vdAUY5OI.cjs +0 -1
  93. package/dist/parts-CaoQiCfI.js +0 -7
  94. package/dist/parts-vQa2873h.cjs +0 -1
  95. package/dist/prancha-paleta-BZ-9QDgh.js +0 -5276
  96. package/dist/prancha-paleta-Bb24vP71.cjs +0 -17
  97. package/dist/ssr-safe-5cWfJP-s.js +0 -10
  98. package/dist/ssr-safe-CiHD1adl.cjs +0 -1
  99. package/dist/svg-seguro-ChVJ2L2z.js +0 -74
  100. package/dist/svg-seguro-J2RM1Ssf.cjs +0 -1
  101. package/dist/ui-badge-DE58YSBY.cjs +0 -28
  102. package/dist/ui-badge-KgmI3jOD.js +0 -201
  103. package/dist/ui-botao-Dz8YvmiA.cjs +0 -12
  104. package/dist/ui-botao-zLkcMMyP.js +0 -168
  105. package/dist/ui-bus-CUd99VJi.js +0 -177
  106. package/dist/ui-bus-XqBLlTYQ.cjs +0 -1
  107. package/dist/ui-camadas-DoHPnbQm.js +0 -3133
  108. package/dist/ui-camadas-Vx7wYD4D.cjs +0 -311
  109. package/dist/ui-campo-texto-Dliyt9qr.cjs +0 -16
  110. package/dist/ui-campo-texto-btevggO3.js +0 -379
  111. package/dist/ui-card-7IEYbCN0.js +0 -150
  112. package/dist/ui-card-Bx8EyzYY.cjs +0 -20
  113. package/dist/ui-card-C-EJoKnm.js +0 -150
  114. package/dist/ui-card-DFnRp9bl.js +0 -146
  115. package/dist/ui-card-DrWVJQKw.cjs +0 -20
  116. package/dist/ui-card-DsIjHMmG.cjs +0 -20
  117. package/dist/ui-controle-cores-B1w_Yl69.cjs +0 -32
  118. package/dist/ui-controle-cores-BRjMvmMn.js +0 -291
  119. package/dist/ui-controle-cores-BcH9k2Fa.js +0 -292
  120. package/dist/ui-controle-cores-CvSTP6gJ.cjs +0 -32
  121. package/dist/ui-editor-prancha-CIngI6yI.js +0 -2886
  122. package/dist/ui-editor-prancha-DorSe6sC.cjs +0 -31
  123. package/dist/ui-linha-2kY7TNUJ.cjs +0 -38
  124. package/dist/ui-linha-B4mBRm1x.cjs +0 -61
  125. package/dist/ui-linha-DTEIIww4.js +0 -1167
  126. package/dist/ui-linha-KFF86FW5.js +0 -752
  127. package/dist/ui-modal-BrXzVZ65.js +0 -216
  128. package/dist/ui-modal-lARKzEVZ.cjs +0 -18
  129. package/dist/ui-paleta-ferramentas-Bu6JaT0s.js +0 -1245
  130. package/dist/ui-paleta-ferramentas-D3Jhwt26.cjs +0 -21
  131. package/dist/ui-paleta-ferramentas-DebHYiwd.js +0 -1615
  132. package/dist/ui-paleta-ferramentas-Dgejtluh.js +0 -1423
  133. package/dist/ui-paleta-ferramentas-hzyo8wBt.cjs +0 -22
  134. package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +0 -22
  135. package/dist/ui-seletor-cor-0RLjcME6.cjs +0 -83
  136. package/dist/ui-seletor-cor-CMuuW-Ym.cjs +0 -83
  137. package/dist/ui-seletor-cor-DFIQ1sin.js +0 -405
  138. package/dist/ui-skeleton-BLEV6h3k.js +0 -653
  139. package/dist/ui-skeleton-B_XTaGrX.cjs +0 -52
  140. package/dist/ui-switch-BXIDwC-Y.cjs +0 -66
  141. package/dist/ui-switch-Ctxk-jKS.js +0 -1212
  142. package/dist/ui-tabela-CXxqbwXv.cjs +0 -7
  143. package/dist/ui-tabela-Cd0vOwnT.js +0 -1459
  144. package/dist/ui-tabela-propriedades-C5cIF5ES.js +0 -3779
  145. package/dist/ui-tabela-propriedades-CJyo568n.js +0 -3517
  146. package/dist/ui-tabela-propriedades-D96Djx-q.cjs +0 -136
  147. package/dist/ui-tabela-propriedades-Wa34hfIr.cjs +0 -142
  148. package/dist/ui-tabela-propriedades-ahQhQauu.js +0 -2329
  149. package/dist/ui-tabela-propriedades-w9JWhjHy.cjs +0 -142
  150. package/dist/zero-js-triggers-CJT988bR.js +0 -83
  151. package/dist/zero-js-triggers-CgM9IIQB.cjs +0 -1
package/dist/canvas.js CHANGED
@@ -2,20 +2,17 @@ var ea = Object.defineProperty;
2
2
  var oa = (n, t, e) => t in n ? ea(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var f = (n, t, e) => oa(n, typeof t != "symbol" ? t + "" : t, e);
4
4
  /* empty css */
5
+ import { o as mt, q as aa, r as ia, p as Rt, C as Bt, n as et, s as De, I as na, u as pt, v as st, w as sa, M as ra, Z as Be, x as ca, y as zt, z as ve, A as Ve, B as la, D as je, a as Ge, h as be, E as da, F as ct, G as lt, H as gt, J as W, i as He, R as _e, K as ha, f as Ao, d as ua, j as vt, l as zo, k as pa, L as fa, N as ma, O as ga } from "./geometria-px-DHMPUsxC.js";
6
+ import { P as zr, T as wr, c as Er, Q as kr, S as Ir, U as Tr, V as Dr, W as _r, X as qr, Y as $r, _ as Fr, b as Nr, m as Or, $ as Rr, a0 as Br, a1 as Vr, a2 as jr, a3 as Gr, a4 as Hr, a5 as Ur, a6 as Zr, a7 as Wr } from "./geometria-px-DHMPUsxC.js";
7
+ import { pintarMarcas as va, ehMarca as ba, ladoMarca as ya, diagonalPx as Ue, deveAgrupar as Ze, AgrupadorCluster as xa, MotorFormas as Pa } from "./motor.js";
8
+ import { CELULA_CLUSTER_PX as Kr, DadosCamada as Yr, LIMITE_MARCA_PX as Qr, MAX_PONTOS_SEM_CLUSTER as Jr, OPACIDADE_MARCA as tc, ZOOM_DESMEMBRAR as ec, agruparMarcasPorCor as oc, agruparPontos as ac, centroDe as ic, projetarMercator as nc } from "./motor.js";
5
9
  import b from "leaflet";
6
- import { e as T, p as V, r as Ct, b as St, a as Rt, o as Bt, c as Be, l as aa, d as ia, f as Ve } from "./leaflet-DOq10gfg.js";
7
- import { f as mt, a as Yt } from "./alvo-digitavel-CzCvNVQ3.js";
8
- import { z as na, C as sa, y as gt, p as Vt, u as et, D as De, E as jt, I as ra, F as pt, G as st, H as ca, M as la, Z as je, J as da, K as zt, L as ve, N as Ge, O as ha, P as He, a as Ue, i as be, w as ua, Q as ct, R as lt, S as vt, U as W, g as Ze, V as _e, n as pa, f as Ao, d as fa, l as bt, k as zo, j as ma, r as ga, o as va, q as ba } from "./geometria-px-DUs5FgLE.js";
9
- import { W as kr, T as Ir, c as Tr, X as Dr, Y as _r, v as qr, x as $r, _ as Fr, $ as Nr, a0 as Or, s as Rr, b as Br, m as Vr, a1 as jr, a2 as Gr, a3 as Hr, a4 as Ur, a5 as Zr, A as Wr, B as Xr, a6 as Kr, a7 as Yr } from "./geometria-px-DUs5FgLE.js";
10
- import { pintarMarcas as ya, ehMarca as xa, ladoMarca as Pa, diagonalPx as We, deveAgrupar as Xe, AgrupadorCluster as La, MotorFormas as Ca } from "./motor.js";
11
- import { CELULA_CLUSTER_PX as Jr, DadosCamada as tc, LIMITE_MARCA_PX as ec, MAX_PONTOS_SEM_CLUSTER as oc, OPACIDADE_MARCA as ac, ZOOM_DESMEMBRAR as ic, agruparMarcasPorCor as nc, agruparPontos as sc, centroDe as rc, projetarMercator as cc } from "./motor.js";
12
- import { E as Sa, v as Ma, c as Aa, w as Ke, P as wo, t as za, x as Jt, o as wa, y as Ea, q as ka, s as Ia, z as X, A as yt, n as U, B as dt, j as Eo, h as Q, l as ye, k as ko, C as Ye, D as Ta, F as xe, u as Qe, G as Da, M as _a, H as wt, i as qa, r as $a, m as Fa, I as Je, T as Na, e as Oa, d as Ra, f as Ba } from "./feature_caixa-2Sxv3tGa.js";
13
- import { J as dc, R as hc, K as uc, L as pc, N as fc, O as mc, Q as gc, S as vc, U as bc, V as yc, p as xc, W as Pc, X as Lc, Y as Cc, Z as Sc } from "./feature_caixa-2Sxv3tGa.js";
14
- import { L as Gt } from "./listener-bag-DQgv7OON.js";
15
- import { S as te, e as to, a as Io, F as eo } from "./feature_desenho-BVHivWIB.js";
16
- import { R as Ac, b as zc, n as wc } from "./feature_desenho-BVHivWIB.js";
17
- import { d as Va, S as ja } from "./ssr-safe-5cWfJP-s.js";
18
- import { A as Ga, a as oo, e as Ha } from "./degrade-gDa5sW__.js";
10
+ import { e as T, p as V, r as Ct, b as St, a as Vt, o as jt, c as We, l as La, f as Xe } from "./utils-DrHoxxmf.js";
11
+ import { K as bt, M as Yt, L as Gt, l as Ca, S as Sa, A as Ma, g as Ke, s as Aa, d as za } from "./kit-base-_THn4w3u.js";
12
+ import { E as wa, s as Ea, p as ka, c as Ye, P as wo, d as Ia, e as Jt, f as Ta, h as Da, j as _a, i as qa, k as X, l as yt, n as U, m as dt, o as Eo, q as Q, r as ye, t as ko, u as Qe, v as $a, w as xe, x as Je, y as Fa, M as Na, z as wt, A as Oa, B as Ra, C as Ba, D as to, T as Va, F as ja, G as Ga, H as Ha } from "./feature_caixa-BVc5LenS.js";
13
+ import { I as rc, R as cc, J as lc, K as dc, L as hc, N as uc, O as pc, Q as fc, S as mc, U as gc, V as vc, W as bc, X as yc, Y as xc, Z as Pc } from "./feature_caixa-BVc5LenS.js";
14
+ import { S as te, e as eo, a as Io, F as oo } from "./feature_desenho-CC8Mp5Gp.js";
15
+ import { R as Cc, b as Sc, n as Mc } from "./feature_desenho-CC8Mp5Gp.js";
19
16
  const ao = {
20
17
  perimetroWeight: 1,
21
18
  fechamentoWeight: 1,
@@ -617,7 +614,7 @@ function hi(n, t, e) {
617
614
  !0
618
615
  ), !0;
619
616
  }
620
- function Pr(n, t, e) {
617
+ function br(n, t, e) {
621
618
  return $o(n, t, n.mouseEventToLayerPoint(e))[0] ?? null;
622
619
  }
623
620
  const ro = ".cad-vertex-handle, .cad-vertex-ghost, .cad-bezier-handle, #cm-vertex-edit-hud, #cm-draw-hud";
@@ -723,12 +720,12 @@ class ui {
723
720
  f(this, "handleKeyDown", (t) => {
724
721
  var e, o, a, i, s, r, c;
725
722
  if (t.key === "Escape") {
726
- if (mt(t) || (o = (e = this.ctx).edicaoAtiva) != null && o.call(e) || (i = (a = this.ctx).ferramentaAtiva) != null && i.call(a)) return;
723
+ if (bt(t) || (o = (e = this.ctx).edicaoAtiva) != null && o.call(e) || (i = (a = this.ctx).ferramentaAtiva) != null && i.call(a)) return;
727
724
  (s = this.selecaoBox) == null || s.cancelarSelecao(), this.limparSelecao();
728
725
  return;
729
726
  }
730
727
  if (t.code === "Space" || t.key === " ") {
731
- if (mt(t) || Yt(t)) return;
728
+ if (bt(t) || Yt(t)) return;
732
729
  this.isSpacePressed || (this.isSpacePressed = !0, this.mapContainer && !this.isPanning && (this.mapContainer.style.cursor = "grab")), this.mapContainer && (this.mapContainer.matches(":hover") || (c = (r = this.ctx.containerHost) == null ? void 0 : r.matches) != null && c.call(r, ":focus-within")) && t.preventDefault();
733
730
  }
734
731
  });
@@ -937,9 +934,9 @@ function co(n, t, e, o, a) {
937
934
  return;
938
935
  }
939
936
  if ((y = n.dados) != null && y.polilinhaSequencial || ((A = n.dados) == null ? void 0 : A.fechar) !== void 0 && u.length >= 2) {
940
- const P = ((x = n.dados) == null ? void 0 : x.chaveGrupo) || o.chaveGrupo, C = Rt(u, P), z = ((S = n.dados) == null ? void 0 : S.fechar) !== !1, E = n.estilo.corPrimaria || "#00f5a0";
937
+ const P = ((x = n.dados) == null ? void 0 : x.chaveGrupo) || o.chaveGrupo, C = Vt(u, P), z = ((S = n.dados) == null ? void 0 : S.fechar) !== !1, E = n.estilo.corPrimaria || "#00f5a0";
941
938
  Object.entries(C).forEach(([L, w]) => {
942
- const I = Bt(w);
939
+ const I = jt(w);
943
940
  if (I.length < 2) return;
944
941
  const D = I.map(($) => [$.lat, $.lon]);
945
942
  ut(t, D, l, a, n.estilo.dashArray);
@@ -1013,9 +1010,9 @@ function co(n, t, e, o, a) {
1013
1010
  else if (u && u.length >= 2) {
1014
1011
  const P = u.filter(
1015
1012
  (w) => w.lat && w.lon && w.tipo_ponto !== "B" && w.tipo !== "B" && w.ignorar_poligono !== 1
1016
- ), C = ((M = n.dados) == null ? void 0 : M.chaveGrupo) || o.chaveGrupo, z = Rt(P, C), E = n.estilo.corPrimaria || (i ? "#f59e0b" : "#10b981"), L = n.estilo.dashArray || (i ? "6, 8" : void 0);
1013
+ ), C = ((M = n.dados) == null ? void 0 : M.chaveGrupo) || o.chaveGrupo, z = Vt(P, C), E = n.estilo.corPrimaria || (i ? "#f59e0b" : "#10b981"), L = n.estilo.dashArray || (i ? "6, 8" : void 0);
1017
1014
  Object.values(z).forEach((w) => {
1018
- const I = Bt(w);
1015
+ const I = jt(w);
1019
1016
  if (I.length < 2) return;
1020
1017
  const D = I.map(($) => [$.lat, $.lon]);
1021
1018
  if (ut(t, D, l, a, L), b.polyline(D, {
@@ -1397,13 +1394,13 @@ function Oo(n, t) {
1397
1394
  if (!o._drawing || !((s = n._parts) != null && s.length)) return !0;
1398
1395
  const c = o._ctx;
1399
1396
  c.beginPath();
1400
- for (const l of na(e, t)) {
1397
+ for (const l of aa(e, t)) {
1401
1398
  const d = l.pts.map(i);
1402
1399
  l.cmd === "M" ? c.moveTo(d[0].x, d[0].y) : l.cmd === "L" ? c.lineTo(d[0].x, d[0].y) : c.bezierCurveTo(d[0].x, d[0].y, d[1].x, d[1].y, d[2].x, d[2].y);
1403
1400
  }
1404
1401
  return t && c.closePath(), o._fillStroke(c, n), !0;
1405
1402
  }
1406
- return o._setPath ? (o._setPath(n, (r = n._parts) != null && r.length ? sa(e, t, i) : "M0 0"), !0) : !1;
1403
+ return o._setPath ? (o._setPath(n, (r = n._parts) != null && r.length ? ia(e, t, i) : "M0 0"), !0) : !1;
1407
1404
  }
1408
1405
  class Ro extends b.Polyline {
1409
1406
  constructor() {
@@ -1431,13 +1428,13 @@ class Bo extends b.Polygon {
1431
1428
  }
1432
1429
  }
1433
1430
  function Fe(n, t) {
1434
- const e = gt(n);
1431
+ const e = mt(n);
1435
1432
  if (!e) return null;
1436
1433
  const o = n.tipo === "Polygon" ? new Bo(n.aneis[0], t) : new Ro(n.coordenadas, t);
1437
1434
  return o.definirCurva(e), o;
1438
1435
  }
1439
1436
  function Vo(n, t) {
1440
- n.definirCurva(gt(t)), n.setLatLngs(t.tipo === "Polygon" ? t.aneis[0] : t.coordenadas);
1437
+ n.definirCurva(mt(t)), n.setLatLngs(t.tipo === "Polygon" ? t.aneis[0] : t.coordenadas);
1441
1438
  }
1442
1439
  const xi = 6, ne = (n, t) => Math.hypot(n.x - t.x, n.y - t.y);
1443
1440
  function ho(n, t, e) {
@@ -1454,7 +1451,7 @@ function Pi(n, t) {
1454
1451
  }
1455
1452
  return (a - o) * (s - i);
1456
1453
  }
1457
- function Qt(n, t, e, o = xi, a = Sa) {
1454
+ function Qt(n, t, e, o = xi, a = wa) {
1458
1455
  let i = null, s = null, r = null;
1459
1456
  for (const c of t) {
1460
1457
  if (c.excluida || c.oculta) continue;
@@ -1464,7 +1461,7 @@ function Qt(n, t, e, o = xi, a = Sa) {
1464
1461
  d <= o + 2 && (!i || d < i.d) && (i = { f: c, d });
1465
1462
  } else if (l.tipo === "LineString") {
1466
1463
  let d = 1 / 0;
1467
- for (const h of Vt(l)) {
1464
+ for (const h of Rt(l)) {
1468
1465
  const u = h.map(e);
1469
1466
  for (let m = 1; m < u.length; m++) d = Math.min(d, ho(n, u[m - 1], u[m]));
1470
1467
  }
@@ -1478,8 +1475,8 @@ function Qt(n, t, e, o = xi, a = Sa) {
1478
1475
  } else {
1479
1476
  const d = l.aneis[0].map(e);
1480
1477
  let h = 1 / 0;
1481
- for (const [m, g] of Ma(l)) h = Math.min(h, ho(n, d[m], d[g]));
1482
- if (Aa([n.y, n.x], [d.map((m) => [m.y, m.x]), ...l.aneis.slice(1).map((m) => m.map(e).map((g) => [g.y, g.x]))]) || h <= o) {
1478
+ for (const [m, g] of Ea(l)) h = Math.min(h, ho(n, d[m], d[g]));
1479
+ if (ka([n.y, n.x], [d.map((m) => [m.y, m.x]), ...l.aneis.slice(1).map((m) => m.map(e).map((g) => [g.y, g.x]))]) || h <= o) {
1483
1480
  const m = Pi(c, e);
1484
1481
  (!r || m < r.a) && (r = { f: c, a: m });
1485
1482
  }
@@ -1536,7 +1533,7 @@ class Si extends b.Layer {
1536
1533
  if (!l) return;
1537
1534
  l.setTransform(r, 0, 0, r, 0, 0), l.clearRect(0, 0, i, s);
1538
1535
  const d = e.getPixelOrigin().add(c);
1539
- this.ultimaPintura = ya(l, this.obterMarcas(), e.getZoom(), d.x, d.y, i, s);
1536
+ this.ultimaPintura = va(l, this.obterMarcas(), e.getZoom(), d.x, d.y, i, s);
1540
1537
  } catch {
1541
1538
  }
1542
1539
  }
@@ -1549,17 +1546,17 @@ const jo = /* @__PURE__ */ new WeakMap(), Me = {
1549
1546
  boundary: '<path d="M12 2 L22 12 L12 22 L2 12 Z" />'
1550
1547
  };
1551
1548
  function Ft(n, t, e = !1) {
1552
- const o = n.estilo ?? {}, a = o.tamanhoIcone ?? t.tamanhoMarcador, i = typeof a == "number" && Number.isFinite(a) && a > 0 ? a : 22, s = e ? jt : et(o.corTraco ?? o.corPreenchimento ?? t.corPrimaria, De), r = Number.isFinite(o.rotacaoIcone) ? o.rotacaoIcone : 0, c = Me[o.icone ?? ""] ?? "";
1549
+ const o = n.estilo ?? {}, a = o.tamanhoIcone ?? t.tamanhoMarcador, i = typeof a == "number" && Number.isFinite(a) && a > 0 ? a : 22, s = e ? Bt : et(o.corTraco ?? o.corPreenchimento ?? t.corPrimaria, De), r = Number.isFinite(o.rotacaoIcone) ? o.rotacaoIcone : 0, c = Me[o.icone ?? ""] ?? "";
1553
1550
  return b.divIcon({
1554
1551
  className: `custom-leaflet-marker${e ? " cad-feicao-selecionada" : ""}`,
1555
1552
  iconSize: [i, i],
1556
- html: `<svg width="${i}" height="${i}" viewBox="0 0 24 24" fill="${s}" fill-opacity="0.25" stroke="${s}" stroke-width="1.6" stroke-linejoin="round" stroke-linecap="round" style="transform:rotate(${r}deg);overflow:visible;display:block${e ? `;filter:drop-shadow(0 0 3px ${jt})` : ""}">${c}</svg>`
1553
+ html: `<svg width="${i}" height="${i}" viewBox="0 0 24 24" fill="${s}" fill-opacity="0.25" stroke="${s}" stroke-width="1.6" stroke-linejoin="round" stroke-linecap="round" style="transform:rotate(${r}deg);overflow:visible;display:block${e ? `;filter:drop-shadow(0 0 3px ${Bt})` : ""}">${c}</svg>`
1557
1554
  });
1558
1555
  }
1559
1556
  function Nt(n, t, e = !1) {
1560
- const o = n.estilo ?? {}, a = n.geometria.tipo === "Text" ? n.geometria.texto : "", i = e ? jt : et(o.corTraco ?? t.corPrimaria, "#ffffff"), s = Number.isFinite(o.tamanhoFonte) ? o.tamanhoFonte : 13, c = `display:inline-block;white-space:nowrap;transform:translate(-50%,-50%) rotate(${Number.isFinite(o.rotacaoIcone) ? o.rotacaoIcone : 0}deg);color:${i};font-size:${s}px;font-weight:600;`, l = et(o.corFundo, "");
1557
+ const o = n.estilo ?? {}, a = n.geometria.tipo === "Text" ? n.geometria.texto : "", i = e ? Bt : et(o.corTraco ?? t.corPrimaria, "#ffffff"), s = Number.isFinite(o.tamanhoFonte) ? o.tamanhoFonte : 13, c = `display:inline-block;white-space:nowrap;transform:translate(-50%,-50%) rotate(${Number.isFinite(o.rotacaoIcone) ? o.rotacaoIcone : 0}deg);color:${i};font-size:${s}px;font-weight:600;`, l = et(o.corFundo, "");
1561
1558
  if (l) {
1562
- const h = et(o.corBorda, ""), u = typeof o.opacidadeFundo == "number" && Number.isFinite(o.opacidadeFundo) ? Math.min(1, Math.max(0, o.opacidadeFundo)) : 0.85, m = typeof o.raioBorda == "number" && Number.isFinite(o.raioBorda) ? Math.min(50, Math.max(0, o.raioBorda)) : 4, g = e ? `1px solid ${jt}` : h ? `1px solid ${h}` : "none";
1559
+ const h = et(o.corBorda, ""), u = typeof o.opacidadeFundo == "number" && Number.isFinite(o.opacidadeFundo) ? Math.min(1, Math.max(0, o.opacidadeFundo)) : 0.85, m = typeof o.raioBorda == "number" && Number.isFinite(o.raioBorda) ? Math.min(50, Math.max(0, o.raioBorda)) : 4, g = e ? `1px solid ${Bt}` : h ? `1px solid ${h}` : "none";
1563
1560
  return b.divIcon({
1564
1561
  className: `custom-leaflet-marker cad-feicao-texto cad-feicao-selo${e ? " cad-feicao-selecionada" : ""}`,
1565
1562
  iconSize: void 0,
@@ -1677,7 +1674,7 @@ class Ei {
1677
1674
  map: o,
1678
1675
  context: a,
1679
1676
  loja: /* @__PURE__ */ new Map(),
1680
- indice: new ra(),
1677
+ indice: new na(),
1681
1678
  revisao: 0,
1682
1679
  revisaoBase: 0,
1683
1680
  listaSincronizada: null,
@@ -1780,10 +1777,10 @@ class Ei {
1780
1777
  }
1781
1778
  /** Há geometria grande demais para o zoom atual? Só então vale redesenhar ao mudar de zoom. */
1782
1779
  ressimplificar(t, e) {
1783
- return t.zoomDesenho === e || ca(t.feicao.geometria) < la ? !1 : e < je || t.zoomDesenho < je;
1780
+ return t.zoomDesenho === e || sa(t.feicao.geometria) < ra ? !1 : e < Be || t.zoomDesenho < Be;
1784
1781
  }
1785
1782
  paraDesenho(t, e) {
1786
- const o = da(t.geometria, e);
1783
+ const o = ca(t.geometria, e);
1787
1784
  return o === t.geometria ? t : { ...t, geometria: o };
1788
1785
  }
1789
1786
  /** Vai para a tela? Não oculta e visível pela regra oficial × prévia. */
@@ -1817,7 +1814,7 @@ class Ei {
1817
1814
  const s = t.lod.get(e.id);
1818
1815
  if (s !== void 0) return s;
1819
1816
  t.avaliacoesLOD++;
1820
- const r = xa(t.indice.caixaDe(e.id), o);
1817
+ const r = ba(t.indice.caixaDe(e.id), o);
1821
1818
  return t.lod.set(e.id, r), r;
1822
1819
  }
1823
1820
  novaMarca(t, e, o) {
@@ -1829,7 +1826,7 @@ class Ei {
1829
1826
  lat: (a.minLat + a.maxLat) / 2,
1830
1827
  lon: (a.minLon + a.maxLon) / 2,
1831
1828
  cor: s,
1832
- lado: Pa(We(a, o)),
1829
+ lado: ya(Ue(a, o)),
1833
1830
  fonte: e
1834
1831
  };
1835
1832
  }
@@ -1899,7 +1896,7 @@ class Ei {
1899
1896
  const p = Qt({ x: i.x, y: i.y }, d, h);
1900
1897
  if (!p) break;
1901
1898
  d.splice(d.indexOf(p), 1);
1902
- const v = We(t.indice.caixaDe(p.id) ?? l, u);
1899
+ const v = Ue(t.indice.caixaDe(p.id) ?? l, u);
1903
1900
  m.push({
1904
1901
  feicao: p,
1905
1902
  chave: p.id,
@@ -1964,11 +1961,11 @@ class Ei {
1964
1961
  for (const r of t.loja.values()) r.geometria.tipo === "Point" && o(r) && s++;
1965
1962
  t.nPontos = s, t.nPontosRev = t.revisaoBase;
1966
1963
  }
1967
- if (!Xe(t.nPontos, e))
1964
+ if (!Ze(t.nPontos, e))
1968
1965
  return t.agrupador = null, null;
1969
1966
  const a = t.agrupador;
1970
1967
  if (a && a.zoom === e && t.agrupadorRev === t.revisaoBase) return a;
1971
- const i = new La(e, (s) => t.map.project(b.latLng(s[0], s[1]), e));
1968
+ const i = new xa(e, (s) => t.map.project(b.latLng(s[0], s[1]), e));
1972
1969
  for (const s of t.loja.values())
1973
1970
  s.geometria.tipo === "Point" && o(s) && i.inserir({ id: s.id, coordenada: s.geometria.coordenada });
1974
1971
  return t.agrupador = i, t.agrupadorRev = t.revisaoBase, i;
@@ -2043,7 +2040,7 @@ class Ei {
2043
2040
  this.reconciliarParcialInterno(t, e, o, a, i), this.sincronizarMarcas(e);
2044
2041
  }
2045
2042
  reconciliarParcialInterno(t, e, o, a, i) {
2046
- const { map: s, layerDef: r, loja: c } = e, l = this.estaCarregado(s), d = l ? s.getZoom() : 0, h = l && c.size > se, u = l && Xe(e.nPontos, d), m = e.agrupador;
2043
+ const { map: s, layerDef: r, loja: c } = e, l = this.estaCarregado(s), d = l ? s.getZoom() : 0, h = l && c.size > se, u = l && Ze(e.nPontos, d), m = e.agrupador;
2047
2044
  if (i || h !== e.culling || u !== (m !== null) || m !== null && (m.zoom !== d || e.agrupadorRev !== e.revisaoBase)) {
2048
2045
  this.reconciliar(t, e, !1, new Set(o));
2049
2046
  return;
@@ -2172,7 +2169,7 @@ class Ei {
2172
2169
  formaDe(t) {
2173
2170
  var o;
2174
2171
  const e = t.geometria;
2175
- return e.tipo === "Point" ? `Point:${(o = t.estilo) != null && o.icone && Me[t.estilo.icone] ? t.estilo.icone : ""}` : gt(e) ? `${e.tipo}:curva` : e.tipo;
2172
+ return e.tipo === "Point" ? `Point:${(o = t.estilo) != null && o.icone && Me[t.estilo.icone] ? t.estilo.icone : ""}` : mt(e) ? `${e.tipo}:curva` : e.tipo;
2176
2173
  }
2177
2174
  paneDe(t) {
2178
2175
  switch (t.geometria.tipo) {
@@ -2200,12 +2197,12 @@ class Ei {
2200
2197
  case "Circle":
2201
2198
  return b.circle(r.centro, { ...c, radius: r.raioMetros, pane: s });
2202
2199
  case "LineString":
2203
- return b.polyline(r.partes && r.partes.length > 1 ? Vt(r) : r.coordenadas, { ...c, pane: s });
2200
+ return b.polyline(r.partes && r.partes.length > 1 ? Rt(r) : r.coordenadas, { ...c, pane: s });
2204
2201
  case "Point": {
2205
2202
  const h = (d = t.estilo) == null ? void 0 : d.icone;
2206
2203
  return h && Me[h] ? b.marker(r.coordenada, { icon: this.iconeSvg(t, e, i), pane: s, interactive: a }) : b.circleMarker(r.coordenada, {
2207
2204
  ...c,
2208
- radius: Ge(t, e.estilo),
2205
+ radius: Ve(t, e.estilo),
2209
2206
  pane: s
2210
2207
  });
2211
2208
  }
@@ -2221,7 +2218,7 @@ class Ei {
2221
2218
  remendar(t, e, o, a, i) {
2222
2219
  var c, l;
2223
2220
  const s = e.geometria, r = this.estiloVetor(e, o, a, i);
2224
- (t instanceof Ro || t instanceof Bo) && gt(s) ? (Vo(t, s), t.setStyle(r)) : s.tipo === "Polygon" ? (t.setLatLngs(s.aneis.length === 1 ? s.aneis[0] : s.aneis), t.setStyle(r)) : s.tipo === "LineString" ? (t.setLatLngs(s.partes && s.partes.length > 1 ? Vt(s) : s.coordenadas), t.setStyle(r)) : s.tipo === "Circle" ? (t.setLatLng(s.centro), t.setRadius(s.raioMetros), t.setStyle(r)) : s.tipo === "Point" && t instanceof b.CircleMarker ? (t.setLatLng(s.coordenada), t.setRadius(Ge(e, o.estilo)), t.setStyle(r)) : t instanceof b.Marker && (t.setLatLng(s.tipo === "Point" || s.tipo === "Text" ? s.coordenada : t.getLatLng()), t.setIcon(s.tipo === "Text" ? this.iconeTexto(e, o, i) : this.iconeSvg(e, o, i)), s.tipo === "Text" && (a && !e.bloqueada ? (c = t.dragging) == null || c.enable() : (l = t.dragging) == null || l.disable())), this.aplicarRotulo(t, e);
2221
+ (t instanceof Ro || t instanceof Bo) && mt(s) ? (Vo(t, s), t.setStyle(r)) : s.tipo === "Polygon" ? (t.setLatLngs(s.aneis.length === 1 ? s.aneis[0] : s.aneis), t.setStyle(r)) : s.tipo === "LineString" ? (t.setLatLngs(s.partes && s.partes.length > 1 ? Rt(s) : s.coordenadas), t.setStyle(r)) : s.tipo === "Circle" ? (t.setLatLng(s.centro), t.setRadius(s.raioMetros), t.setStyle(r)) : s.tipo === "Point" && t instanceof b.CircleMarker ? (t.setLatLng(s.coordenada), t.setRadius(Ve(e, o.estilo)), t.setStyle(r)) : t instanceof b.Marker && (t.setLatLng(s.tipo === "Point" || s.tipo === "Text" ? s.coordenada : t.getLatLng()), t.setIcon(s.tipo === "Text" ? this.iconeTexto(e, o, i) : this.iconeSvg(e, o, i)), s.tipo === "Text" && (a && !e.bloqueada ? (c = t.dragging) == null || c.enable() : (l = t.dragging) == null || l.disable())), this.aplicarRotulo(t, e);
2225
2222
  }
2226
2223
  /** Só o estilo (seleção): sem `setLatLngs`, que reprojetaria e recalcularia limites da forma. */
2227
2224
  restilizar(t, e, o, a, i) {
@@ -2239,7 +2236,7 @@ class Ei {
2239
2236
  t.unbindTooltip();
2240
2237
  return;
2241
2238
  }
2242
- const a = ha(e, o.campoRotulo);
2239
+ const a = la(e, o.campoRotulo);
2243
2240
  if (!a) {
2244
2241
  t.unbindTooltip();
2245
2242
  return;
@@ -2525,7 +2522,7 @@ class Ri {
2525
2522
  }
2526
2523
  // ---------------------------------------------------------------- ILayerRenderer
2527
2524
  render(t, e, o) {
2528
- const a = b.layerGroup(), i = new Ca(), s = Oi(o);
2525
+ const a = b.layerGroup(), i = new Pa(), s = Oi(o);
2529
2526
  i.definirQualidade({ limiteMarcaPx: s.limiteMarcaPx, toleranciaPx: s.toleranciaPx });
2530
2527
  const r = o.regraVersoes;
2531
2528
  r && i.definirRegra((h, u) => r.visivel(h, u)), i.definirCamada(this.defMotor(t)), i.definirFeicoes(t.id, this.feicoesDe(t));
@@ -2680,7 +2677,7 @@ class Ri {
2680
2677
  }
2681
2678
  /** A vista de uma faixa exposta no pan incremental (a origem continua sendo a do canvas inteiro). */
2682
2679
  vistaDaFaixa(t, e) {
2683
- const o = Di, [a, i] = He(t.origemPx.x + e.x - o, t.origemPx.y + e.y - o, t.zoom), [s, r] = He(t.origemPx.x + e.x + e.largura + o, t.origemPx.y + e.y + e.altura + o, t.zoom);
2680
+ const o = Di, [a, i] = je(t.origemPx.x + e.x - o, t.origemPx.y + e.y - o, t.zoom), [s, r] = je(t.origemPx.x + e.x + e.largura + o, t.origemPx.y + e.y + e.altura + o, t.zoom);
2684
2681
  return {
2685
2682
  ...nt(t),
2686
2683
  larguraPx: e.largura,
@@ -2701,13 +2698,13 @@ class Ri {
2701
2698
  if (e.regioes) {
2702
2699
  a = 0;
2703
2700
  for (const r of e.regioes) {
2704
- const c = this.vistaDaFaixa(e, r), l = t.motor.listaDesenho(c, { camadas: [o], parte: "canvas" }), d = Ke(l.camadas[0]);
2701
+ const c = this.vistaDaFaixa(e, r), l = t.motor.listaDesenho(c, { camadas: [o], parte: "canvas" }), d = Ye(l.camadas[0]);
2705
2702
  d !== 0 && (t.pintor.desenhar(l, c, { limpar: !1, recorte: r }), a += d);
2706
2703
  }
2707
2704
  const s = t.motor.listaDesenho(nt(e), { camadas: [o], parte: "dom" }).camadas[0];
2708
2705
  s && this.sincronizarDom(t, s);
2709
2706
  } else {
2710
- const s = nt(e), r = t.motor.listaDesenho(s, { camadas: [o] }), c = r.camadas[0] ?? null, l = Ke(c);
2707
+ const s = nt(e), r = t.motor.listaDesenho(s, { camadas: [o] }), c = r.camadas[0] ?? null, l = Ye(c);
2711
2708
  c ? l === 0 && e.branco ? a = 0 : (t.pintor.desenhar(r, s), a = l) : a = !e.branco, t.ultima = c, c && this.sincronizarDom(t, c);
2712
2709
  }
2713
2710
  const i = tt.get(t.map);
@@ -2811,7 +2808,7 @@ class Ri {
2811
2808
  return;
2812
2809
  }
2813
2810
  const g = Fe(u, { ...m(o.selecionada), pane: Z(a, i.id, u.tipo === "Polygon" ? "poligono" : "linha") });
2814
- if (!g || !gt(u)) return;
2811
+ if (!g || !mt(u)) return;
2815
2812
  g.on("click", (p) => this.acao(t, r, p)), s.addLayer(g), t.dom.set(e, { layer: g, fonte: r, selecionada: o.selecionada, assinatura: "" });
2816
2813
  }
2817
2814
  }
@@ -2851,7 +2848,7 @@ class Ri {
2851
2848
  var v;
2852
2849
  if (!s.feicaoVisivel(i.id, g)) return !1;
2853
2850
  const p = g.geometria;
2854
- return p.tipo === "Text" || gt(p) ? !1 : p.tipo === "Point" ? !((v = g.estilo) != null && v.icone) && !s.pontoAgrupado(i.id, g.id) : !0;
2851
+ return p.tipo === "Text" || mt(p) ? !1 : p.tipo === "Point" ? !((v = g.estilo) != null && v.icone) && !s.pontoAgrupado(i.id, g.id) : !0;
2855
2852
  }), u = (g) => {
2856
2853
  const p = a.latLngToContainerPoint(g);
2857
2854
  return { x: p.x, y: p.y };
@@ -3389,7 +3386,7 @@ function Ho(n, t) {
3389
3386
  return o(b.latLng(l / h, d / h));
3390
3387
  }
3391
3388
  if (c.poligono_wkt) {
3392
- const l = Be(c.poligono_wkt);
3389
+ const l = We(c.poligono_wkt);
3393
3390
  if (l) return o(b.latLng(l.lat, l.lon));
3394
3391
  }
3395
3392
  }
@@ -3421,7 +3418,7 @@ function Ho(n, t) {
3421
3418
  const l = c.dados.poligonos.find((d) => String(d.id) === e);
3422
3419
  if (l) {
3423
3420
  if (l.wkt) {
3424
- const d = Be(l.wkt);
3421
+ const d = We(l.wkt);
3425
3422
  if (d) return o(b.latLng(d.lat, d.lon));
3426
3423
  }
3427
3424
  if (Array.isArray(l.coordenadas) && l.coordenadas.length > 0) {
@@ -4324,7 +4321,7 @@ const xn = ':host{display:block;width:100%;height:520px;position:relative;border
4324
4321
  function Pn() {
4325
4322
  return `
4326
4323
  <style>
4327
- ${aa}
4324
+ ${Ca}
4328
4325
  ${xn}
4329
4326
  </style>
4330
4327
  <div class="cad-root" id="cad-root" part="base" role="region" aria-label="Mapa CAD">
@@ -4552,7 +4549,7 @@ function qn(n, t) {
4552
4549
  const o = (Array.isArray(n[0]) && Array.isArray(n[0][0]) ? n : [n]).map((a) => Xo(a, t));
4553
4550
  return o.some((a) => a === null) ? null : o;
4554
4551
  }
4555
- function Lr(n, t) {
4552
+ function yr(n, t) {
4556
4553
  const e = V(n.lat, n.lon);
4557
4554
  return e ? {
4558
4555
  id: String(n.id),
@@ -4561,7 +4558,7 @@ function Lr(n, t) {
4561
4558
  propriedades: { ...n }
4562
4559
  } : null;
4563
4560
  }
4564
- function Cr(n, t, e) {
4561
+ function xr(n, t, e) {
4565
4562
  const o = t.get(String(n.ponto_inicio_id)), a = t.get(String(n.ponto_fim_id));
4566
4563
  if (!o || !a) return null;
4567
4564
  const i = V(o.lat, o.lon), s = V(a.lat, a.lon);
@@ -4575,7 +4572,7 @@ function Cr(n, t, e) {
4575
4572
  propriedades: { ...n }
4576
4573
  };
4577
4574
  }
4578
- function Sr(n, t) {
4575
+ function Pr(n, t) {
4579
4576
  if (!n.poligono_wkt) return null;
4580
4577
  const e = /POLYGON\s*\(\s*\(\s*(.*?)\s*\)\s*\)/i.exec(n.poligono_wkt);
4581
4578
  if (!e) return null;
@@ -4591,7 +4588,7 @@ function Sr(n, t) {
4591
4588
  } : null;
4592
4589
  }
4593
4590
  function bo(n, t) {
4594
- const e = ua(n);
4591
+ const e = da(n);
4595
4592
  if (!e) return null;
4596
4593
  const o = [];
4597
4594
  for (const a of e) {
@@ -4628,14 +4625,14 @@ function pe(n, t, e) {
4628
4625
  l && (i = be([l]));
4629
4626
  }
4630
4627
  const c = r.length <= 1 ? bo(a.curva, e) : null;
4631
- i && i.tipo === "LineString" && c && c.length >= 2 && (i = { tipo: "LineString", coordenadas: Ue(c, !1), curva: c });
4628
+ i && i.tipo === "LineString" && c && c.length >= 2 && (i = { tipo: "LineString", coordenadas: Ge(c, !1), curva: c });
4632
4629
  break;
4633
4630
  }
4634
4631
  case "Polygon": {
4635
4632
  const r = Array.isArray(a.aneis) ? qn(a.aneis, e) : null;
4636
4633
  r && (i = { tipo: "Polygon", aneis: r });
4637
4634
  const c = r && r.length === 1 ? bo(a.curva, e) : null;
4638
- i && c && c.length >= 3 && (i = { tipo: "Polygon", aneis: [Ue(c, !0)], curva: c });
4635
+ i && c && c.length >= 3 && (i = { tipo: "Polygon", aneis: [Ge(c, !0)], curva: c });
4639
4636
  break;
4640
4637
  }
4641
4638
  case "Circle": {
@@ -4838,11 +4835,11 @@ function Xt(n) {
4838
4835
  function Un(n) {
4839
4836
  const t = n.geometria, e = [], o = ct(t), a = lt(t);
4840
4837
  if (t.tipo === "Polygon")
4841
- e.push(["Área", vt(o ?? 0)], ["Perímetro", W(a ?? 0)]), e.push(["Vértices", String(t.aneis.reduce((r, c) => r + c.length, 0))]);
4838
+ e.push(["Área", gt(o ?? 0)], ["Perímetro", W(a ?? 0)]), e.push(["Vértices", String(t.aneis.reduce((r, c) => r + c.length, 0))]);
4842
4839
  else if (t.tipo === "LineString") {
4843
- const r = Vt(t);
4840
+ const r = Rt(t);
4844
4841
  e.push(["Extensão", W(a ?? 0)], ["Vértices", String(r.reduce((c, l) => c + l.length, 0))]), r.length > 1 && e.push(["Partes", String(r.length)]);
4845
- } else t.tipo === "Circle" && e.push(["Raio", W(t.raioMetros)], ["Área", vt(o ?? 0)]);
4842
+ } else t.tipo === "Circle" && e.push(["Raio", W(t.raioMetros)], ["Área", gt(o ?? 0)]);
4846
4843
  const [i, s] = Xt(n);
4847
4844
  return e.push(["Coordenadas", `${i.toFixed(6)}, ${s.toFixed(6)}`]), e;
4848
4845
  }
@@ -4934,7 +4931,7 @@ class Wn {
4934
4931
  this.definirAlt(!0);
4935
4932
  return;
4936
4933
  }
4937
- this.atalhoS && (t.key === "s" || t.key === "S") && !t.ctrlKey && !t.metaKey && !t.altKey && !mt(t) && (((o = (e = this.contexto).aplica) == null ? void 0 : o.call(e)) ?? !0) && this.alternar();
4934
+ this.atalhoS && (t.key === "s" || t.key === "S") && !t.ctrlKey && !t.metaKey && !t.altKey && !bt(t) && (((o = (e = this.contexto).aplica) == null ? void 0 : o.call(e)) ?? !0) && this.alternar();
4938
4935
  });
4939
4936
  f(this, "aoTeclaCima", (t) => {
4940
4937
  t.key === "Alt" && this.definirAlt(!1);
@@ -4994,7 +4991,7 @@ class Xn {
4994
4991
  for (const l of e.getActiveSelectableLayers())
4995
4992
  l.tipo === G && i.push(...this.p.lista(l.id).filter((d) => d.geometria.tipo === "Polygon" && this.p.desenhada(d)));
4996
4993
  }
4997
- if (i.length === 0) return o(a.length === 0 && this.p.selecionadas().some((l) => Ze(l.geometria)) ? "multiparte" : "nenhum-poligono");
4994
+ if (i.length === 0) return o(a.length === 0 && this.p.selecionadas().some((l) => He(l.geometria)) ? "multiparte" : "nenhum-poligono");
4998
4995
  const s = (l) => {
4999
4996
  var d;
5000
4997
  return !!l.bloqueada || !!((d = e.getLayerDef(l.camadaId)) != null && d.bloqueada);
@@ -5003,7 +5000,7 @@ class Xn {
5003
5000
  let c = !1;
5004
5001
  for (const l of r) {
5005
5002
  if (l.geometria.tipo !== "Polygon") continue;
5006
- const d = za(l.geometria.aneis[0], t);
5003
+ const d = Ia(l.geometria.aneis[0], t);
5007
5004
  if (!d) continue;
5008
5005
  this.p.divisaoAtiva() && this.p.estaSelecionada({ camadaId: l.camadaId, id: l.id }) && this.p.encerrarDesenho(), this.p.removerFeicao(l.camadaId, l.id);
5009
5006
  const h = [];
@@ -5023,7 +5020,7 @@ class Xn {
5023
5020
  gerarBuffer(t, e, o, a = {}) {
5024
5021
  const i = this.p.buscar(t, e);
5025
5022
  if (!i) return null;
5026
- const s = wa(i.geometria, o);
5023
+ const s = Ta(i.geometria, o);
5027
5024
  if (!s) return null;
5028
5025
  const r = a.camadaDestino ?? t, c = this.p.adicionarFeicao(r, {
5029
5026
  id: a.id ?? this.p.idLivre(r, `${e}-buffer`),
@@ -5037,7 +5034,7 @@ class Xn {
5037
5034
  duplicarFeicao(t, e, o = {}, a = {}) {
5038
5035
  const i = this.p.buscar(t, e);
5039
5036
  if (!i) return null;
5040
- const s = Ea(i.geometria, o.lesteM ?? 0, o.norteM ?? 0), r = this.p.adicionarFeicao(t, Jt(i, a.id ?? this.p.idLivre(t, `${e}-copia`), s));
5037
+ const s = Da(i.geometria, o.lesteM ?? 0, o.norteM ?? 0), r = this.p.adicionarFeicao(t, Jt(i, a.id ?? this.p.idLivre(t, `${e}-copia`), s));
5041
5038
  return r && this.p.emitir("cad-feicao-criada", { camadaId: t, feicao: r }), r;
5042
5039
  }
5043
5040
  /**
@@ -5058,13 +5055,13 @@ class Xn {
5058
5055
  const c = o.toleranciaM ?? 0;
5059
5056
  let l = null;
5060
5057
  if (s.every((h) => h.geometria.tipo === "LineString")) {
5061
- if (s.some((m) => Ze(m.geometria))) return a("multiparte");
5062
- const h = s.map((m) => m.geometria.coordenadas), u = ka(h, c);
5058
+ if (s.some((m) => He(m.geometria))) return a("multiparte");
5059
+ const h = s.map((m) => m.geometria.coordenadas), u = _a(h, c);
5063
5060
  u && (l = be([u]));
5064
5061
  } else if (s.every((h) => h.geometria.tipo === "Polygon" && h.geometria.aneis.length === 1)) {
5065
5062
  let h = s[0].geometria.aneis[0];
5066
5063
  for (const u of s.slice(1))
5067
- h = h ? Ia(h, u.geometria.aneis[0], c) : null;
5064
+ h = h ? qa(h, u.geometria.aneis[0], c) : null;
5068
5065
  h && (l = { tipo: "Polygon", aneis: [h] });
5069
5066
  } else
5070
5067
  return a("tipos-incompativeis");
@@ -5145,7 +5142,7 @@ class Yn {
5145
5142
  limitesDe(t) {
5146
5143
  let e = 1 / 0, o = 1 / 0, a = -1 / 0, i = -1 / 0;
5147
5144
  for (const s of t) {
5148
- const [[r, c], [l, d]] = pa(s.geometria);
5145
+ const [[r, c], [l, d]] = ha(s.geometria);
5149
5146
  r < e && (e = r), c < o && (o = c), l > a && (a = l), d > i && (i = d);
5150
5147
  }
5151
5148
  return Number.isFinite(e) ? [[e, o], [a, i]] : null;
@@ -5186,7 +5183,7 @@ const Qn = { topo: 0, base: 16, esquerda: 0, direita: 0 }, Jn = 16, ts = 0.92, m
5186
5183
  esquerda: "--cad-hud-esquerda",
5187
5184
  direita: "--cad-hud-direita"
5188
5185
  }, Ko = "position:absolute;box-sizing:border-box;z-index:10000;left:calc(var(--cad-hud-esquerda,0px) + (100% - var(--cad-hud-esquerda,0px) - var(--cad-hud-direita,0px)) / 2);bottom:var(--cad-hud-base,16px);transform:translateX(-50%);width:max-content;max-width:min(92%, calc(100% - var(--cad-hud-esquerda,0px) - var(--cad-hud-direita,0px) - 16px));max-height:calc(100% - var(--cad-hud-topo,0px) - var(--cad-hud-base,16px) - 8px);overflow:hidden;display:flex;flex-wrap:wrap;";
5189
- function Mr(n, t, e = {}) {
5186
+ function Lr(n, t, e = {}) {
5190
5187
  const o = { ...Qn, ...e }, a = Math.max(0, n - o.esquerda - o.direita);
5191
5188
  return {
5192
5189
  centroX: o.esquerda + a / 2,
@@ -5293,7 +5290,7 @@ class ds {
5293
5290
  f(this, "aoTecla", (t) => {
5294
5291
  const e = this.sessao;
5295
5292
  if (!e) return;
5296
- const o = mt(t);
5293
+ const o = bt(t);
5297
5294
  if (t.key === "Escape") {
5298
5295
  if (o && !this.campoTexto) return;
5299
5296
  this.campoTexto ? this.cancelarTexto() : e.nos > 0 ? this.reiniciar() : this.desativar(), t.preventDefault();
@@ -5383,7 +5380,7 @@ class ds {
5383
5380
  for (let i = e.ancoras.length - 1; i >= 0; i--) {
5384
5381
  const s = e.ancoras[i];
5385
5382
  if (s.alca && a(s.alca)) return { i, qual: "saida" };
5386
- const r = to(s);
5383
+ const r = eo(s);
5387
5384
  if (r && a(r)) return { i, qual: "entrada" };
5388
5385
  }
5389
5386
  for (let i = e.ancoras.length - 1; i >= 0; i--)
@@ -5455,7 +5452,7 @@ class ds {
5455
5452
  const o = t.ferramenta === "caneta" ? t.ancoras.map((a) => a.ponto) : t.pontos;
5456
5453
  if (t.ferramenta === "caneta")
5457
5454
  for (const a of t.ancoras) {
5458
- const i = to(a);
5455
+ const i = eo(a);
5459
5456
  if (!(!a.alca || !i)) {
5460
5457
  this.marcas.addLayer(b.polyline([i, a.ponto, a.alca], { pane: J, color: at, weight: 1, opacity: 0.8, interactive: !1 }));
5461
5458
  for (const s of [i, a.alca])
@@ -5505,7 +5502,7 @@ class ds {
5505
5502
  const c = {
5506
5503
  tipo: e === "medir-area" ? "area" : "distancia",
5507
5504
  pontos: a,
5508
- comprimentoM: fa(a, !1)
5505
+ comprimentoM: ua(a, !1)
5509
5506
  };
5510
5507
  if (t.tipo === "Polygon")
5511
5508
  c.areaM2 = ct(t) ?? 0, c.perimetroM = lt(t) ?? 0;
@@ -5557,11 +5554,11 @@ class ds {
5557
5554
  const o = this.hud.querySelector('[data-campo="nos"]'), a = this.hud.querySelector('[data-campo="medida"]');
5558
5555
  if (o && (o.textContent = e.nos > 0 ? `Nós: ${e.nos}` : ""), !a) return;
5559
5556
  let i = "";
5560
- if ((t == null ? void 0 : t.tipo) === "Polygon") i = `Área: ${vt(ct(t) ?? 0)} · Perímetro: ${W(lt(t) ?? 0)}`;
5557
+ if ((t == null ? void 0 : t.tipo) === "Polygon") i = `Área: ${gt(ct(t) ?? 0)} · Perímetro: ${W(lt(t) ?? 0)}`;
5561
5558
  else if ((t == null ? void 0 : t.tipo) === "LineString") {
5562
5559
  if (i = `Extensão: ${W(e.comprimentoMetros())}`, e.ferramenta === "medir-distancia" && e.nos >= 3 && t.coordenadas.length >= 3) {
5563
5560
  const s = { tipo: "Polygon", aneis: [t.coordenadas] };
5564
- i += ` · Área: ${vt(ct(s) ?? 0)} · Perímetro: ${W(lt(s) ?? 0)}`;
5561
+ i += ` · Área: ${gt(ct(s) ?? 0)} · Perímetro: ${W(lt(s) ?? 0)}`;
5565
5562
  }
5566
5563
  } else (t == null ? void 0 : t.tipo) === "Circle" && (i = `Raio: ${W(t.raioMetros)}`);
5567
5564
  a.textContent = i;
@@ -5841,17 +5838,17 @@ class fs {
5841
5838
  return g.setLayerData(t, E), delete E.delta, P ? this.posicoes.delete(t) : this.posicoes.set(t, { lista: C, pos: A }), this.p.aposDados(), u({ resultado: a, adicionadas: i, atualizadas: s });
5842
5839
  }
5843
5840
  }
5844
- const Mt = (n) => Array.isArray(n) && n.length === 2 && Number.isFinite(n[0]) && Number.isFinite(n[1]), Oe = Math.PI / 180, Te = 0.01, ht = Ta;
5841
+ const Mt = (n) => Array.isArray(n) && n.length === 2 && Number.isFinite(n[0]) && Number.isFinite(n[1]), Oe = Math.PI / 180, Te = 0.01, ht = $a;
5845
5842
  function ms(n, t, e) {
5846
5843
  let o = U(n);
5847
5844
  if (!o || t < 0 || t >= o.length) return n;
5848
5845
  if (e === "canto") {
5849
- if (bt(o[t]) === "canto") return n;
5846
+ if (vt(o[t]) === "canto") return n;
5850
5847
  const h = o.slice();
5851
5848
  return h[t] = { ponto: o[t].ponto }, dt(n, h);
5852
5849
  }
5853
5850
  let a = n;
5854
- if (bt(o[t]) === "canto" && (a = Eo(n, t), a === n || (o = U(a), !o)))
5851
+ if (vt(o[t]) === "canto" && (a = Eo(n, t), a === n || (o = U(a), !o)))
5855
5852
  return n;
5856
5853
  const i = o[t], s = i.ponto, r = { ...i, modo: e }, c = i.saida, l = i.entrada;
5857
5854
  if (e === "simetrico") {
@@ -5894,7 +5891,7 @@ function At(n, t, e) {
5894
5891
  return e < 0 || e >= t ? null : e < t - 1 ? e + 1 : n.tipo === "Polygon" && t > 2 ? 0 : null;
5895
5892
  }
5896
5893
  function Re(n, t, e, o) {
5897
- const [a, i] = ma(t[e], t[o]), s = t[e].saida ?? xe(n, e, "saida"), r = t[o].entrada ?? xe(n, o, "entrada");
5894
+ const [a, i] = pa(t[e], t[o]), s = t[e].saida ?? xe(n, e, "saida"), r = t[o].entrada ?? xe(n, o, "entrada");
5898
5895
  return !s || !r ? null : [t[e].saida ? a : s, t[o].entrada ? i : r];
5899
5896
  }
5900
5897
  function xs(n, t, e) {
@@ -5934,7 +5931,7 @@ function Lo(n, t, e, o) {
5934
5931
  const s = Re(n, a, t, i);
5935
5932
  if (!s) return null;
5936
5933
  const r = Math.min(Qo, Math.max(Yo, e)), c = 1 - r, l = zo(a[t].ponto, s[0], s[1], a[i].ponto, r), d = o[0] - l[0], h = o[1] - l[1], u = c * c + r * r, m = 1 / (3 * r * u), g = 1 / (3 * c * u), p = [s[0][0] + d * m, s[0][1] + h * m], v = [s[1][0] + d * g, s[1][1] + h * g], y = a.slice();
5937
- return y[t] = Ye(a[t], "saida", p, "livre"), y[i] = Ye(i === t ? y[t] : a[i], "entrada", v, "livre"), dt(n, y);
5934
+ return y[t] = Qe(a[t], "saida", p, "livre"), y[i] = Qe(i === t ? y[t] : a[i], "entrada", v, "livre"), dt(n, y);
5938
5935
  }
5939
5936
  function Ps(n, t) {
5940
5937
  const e = U(n);
@@ -5957,7 +5954,7 @@ function Ls(n, t) {
5957
5954
  const a = Re(n, e, t, o);
5958
5955
  if (!a || e[t].saida && e[o].entrada) return n;
5959
5956
  const i = e.slice();
5960
- return e[t].saida || (i[t] = { ...e[t], saida: a[0], modo: bt(e[t]) === "canto" ? "livre" : e[t].modo }), e[o].entrada || (i[o] = { ...o === t ? i[t] : e[o], entrada: a[1], modo: bt(e[o]) === "canto" ? "livre" : e[o].modo }), dt(n, i);
5957
+ return e[t].saida || (i[t] = { ...e[t], saida: a[0], modo: vt(e[t]) === "canto" ? "livre" : e[t].modo }), e[o].entrada || (i[o] = { ...o === t ? i[t] : e[o], entrada: a[1], modo: vt(e[o]) === "canto" ? "livre" : e[o].modo }), dt(n, i);
5961
5958
  }
5962
5959
  function Cs(n, t, e, o) {
5963
5960
  const a = Math.max(1, Math.ceil(Math.abs(o) / (Math.PI / 2) - 1e-9)), i = o / a, s = 4 / 3 * Math.tan(i / 4), r = [];
@@ -5990,7 +5987,7 @@ function Ss(n, t, e, o = "esquerda") {
5990
5987
  }
5991
5988
  function Ms(n, t, e) {
5992
5989
  const o = U(n);
5993
- if (!o || !Number.isFinite(e) || e < Te || t < 0 || t >= o.length || bt(o[t]) !== "canto") return null;
5990
+ if (!o || !Number.isFinite(e) || e < Te || t < 0 || t >= o.length || vt(o[t]) !== "canto") return null;
5994
5991
  const a = o.length, i = n.tipo === "Polygon", s = t > 0 ? o[t - 1] : i ? o[a - 1] : null, r = t < a - 1 ? o[t + 1] : i ? o[0] : null;
5995
5992
  if (!s || !r) return null;
5996
5993
  const c = ht(o[t].ponto), l = X(c, o[t].ponto), d = X(c, s.ponto), h = X(c, r.ponto), u = Math.hypot(d[0] - l[0], d[1] - l[1]), m = Math.hypot(h[0] - l[0], h[1] - l[1]);
@@ -6114,7 +6111,7 @@ class Is {
6114
6111
  return;
6115
6112
  }
6116
6113
  this.el.style.display = "flex";
6117
- const i = bt(a);
6114
+ const i = vt(a);
6118
6115
  for (const [c, l] of this.botoesTipo) {
6119
6116
  const d = c === i;
6120
6117
  l.style.background = d ? ks : "transparent", l.style.color = d ? "#111" : "#fff", l.setAttribute("aria-pressed", String(d));
@@ -6192,7 +6189,7 @@ class Bs {
6192
6189
  });
6193
6190
  f(this, "aoSoltarMolde", () => this.finalizarMolde(!0));
6194
6191
  f(this, "aoTecla", (t) => {
6195
- if (!this.feicaoAtual || t.defaultPrevented || mt(t)) return;
6192
+ if (!this.feicaoAtual || t.defaultPrevented || bt(t)) return;
6196
6193
  const e = t.ctrlKey || t.metaKey, o = t.key.toLowerCase();
6197
6194
  if (e && !t.altKey && o === "z")
6198
6195
  t.shiftKey ? this.refazer() : this.desfazer();
@@ -6310,7 +6307,7 @@ class Bs {
6310
6307
  const i = this.criarAlca(o, a);
6311
6308
  this.alcas.push(i), this.grupo.addLayer(i);
6312
6309
  }), this.criarAlcasBezier(), t.tipo !== "Point")
6313
- for (const [o, a] of Qe(this.geometriaAtual())) {
6310
+ for (const [o, a] of Je(this.geometriaAtual())) {
6314
6311
  if (!this.segmentoLongoNaTela(o, a)) continue;
6315
6312
  const i = this.criarFantasma(o, a);
6316
6313
  this.fantasmas.push(i), this.grupo.addLayer(i.marker);
@@ -6402,9 +6399,9 @@ class Bs {
6402
6399
  /** Posição da alça: a real do nó ou, se o nó é de canto, a latente (sempre à mão para curvar). */
6403
6400
  posicaoDaAlca(t, e, o) {
6404
6401
  var s, r;
6405
- const a = (r = (s = Da(t)) == null ? void 0 : s[e]) == null ? void 0 : r[o];
6402
+ const a = (r = (s = Fa(t)) == null ? void 0 : s[e]) == null ? void 0 : r[o];
6406
6403
  if (a) return { pos: a, latente: !1 };
6407
- if (this.pts.length > _a) return null;
6404
+ if (this.pts.length > Na) return null;
6408
6405
  const i = xe(t, e, o);
6409
6406
  return i ? { pos: i, latente: !0 } : null;
6410
6407
  }
@@ -6533,7 +6530,7 @@ class Bs {
6533
6530
  comInsercao(t, e) {
6534
6531
  const o = this.feicaoAtual;
6535
6532
  if (!o || this.pts.length === 0) return null;
6536
- const a = this.geometriaAtual(), i = wt(a, t, (t + 1) % this.pts.length), s = qa(a, t, i);
6533
+ const a = this.geometriaAtual(), i = wt(a, t, (t + 1) % this.pts.length), s = Oa(a, t, i);
6537
6534
  if (s === a) return null;
6538
6535
  const r = Q(s).map((c) => [c[0], c[1]]);
6539
6536
  return e && Number.isFinite(e[0]) && Number.isFinite(e[1]) && (r[t + 1] = e), { feicao: { ...o, geometria: ye(s, r) }, pts: r };
@@ -6561,9 +6558,9 @@ class Bs {
6561
6558
  }
6562
6559
  excluir(t) {
6563
6560
  if (!this.feicaoAtual) return !1;
6564
- const o = this.geometriaAtual(), a = $a(o, t);
6561
+ const o = this.geometriaAtual(), a = Ra(o, t);
6565
6562
  if (!a)
6566
- return o.tipo === "Circle" ? this.avisar("Círculo: mova o centro ou a borda (não há nós para excluir).") : o.tipo === "Point" ? this.avisar("Um ponto tem um único nó.") : this.avisar(`Mínimo de ${Fa(o)} nós: não dá para excluir mais.`), !1;
6563
+ return o.tipo === "Circle" ? this.avisar("Círculo: mova o centro ou a borda (não há nós para excluir).") : o.tipo === "Point" ? this.avisar("Um ponto tem um único nó.") : this.avisar(`Mínimo de ${Ba(o)} nós: não dá para excluir mais.`), !1;
6567
6564
  this.pts = Q(a).map((s) => [s[0], s[1]]), this.retangulo = !1, this.selecionado = null, this.reconstruir();
6568
6565
  const i = this.feicaoComPontos();
6569
6566
  return this.dep.previsualizar(i), this.confirmar(i), !0;
@@ -6639,7 +6636,7 @@ class Bs {
6639
6636
  if (!i || a.tipo !== "LineString" && a.tipo !== "Polygon") return null;
6640
6637
  const s = this.dep.map, r = s.latLngToContainerPoint(t);
6641
6638
  let c = null, l = e;
6642
- for (const [d, h] of Qe(a)) {
6639
+ for (const [d, h] of Je(a)) {
6643
6640
  const u = i[d], m = i[h], g = [u.ponto, m.ponto, u.saida, m.entrada].filter((S) => !!S).map((S) => s.latLngToContainerPoint(S)), p = g.map((S) => S.x), v = g.map((S) => S.y);
6644
6641
  if (r.x < Math.min(...p) - e || r.x > Math.max(...p) + e || r.y < Math.min(...v) - e || r.y > Math.max(...v) + e) continue;
6645
6642
  const y = xs(a, d, t);
@@ -6751,7 +6748,7 @@ class Bs {
6751
6748
  if (!this.hud || !this.feicaoAtual) return;
6752
6749
  t || this.atualizarPainel();
6753
6750
  const e = t ?? this.geometriaAtual(), o = this.hud.querySelector('[data-campo="nos"]'), a = this.hud.querySelector('[data-campo="medida"]');
6754
- o && (o.textContent = e.tipo === "Circle" ? "Centro move · borda = raio" : `${this.pts.length} nós`), a && (e.tipo === "Polygon" ? a.textContent = `Área ${vt(ct(e) ?? 0)} · perím. ${W(lt(e) ?? 0)}` : e.tipo === "LineString" ? a.textContent = W(lt(e) ?? 0) : e.tipo === "Point" ? a.textContent = `${e.coordenada[0].toFixed(6)}, ${e.coordenada[1].toFixed(6)}` : e.tipo === "Circle" && (a.textContent = `Raio: ${W(e.raioMetros)} · Área: ${vt(ct(e) ?? 0)}`));
6751
+ o && (o.textContent = e.tipo === "Circle" ? "Centro move · borda = raio" : `${this.pts.length} nós`), a && (e.tipo === "Polygon" ? a.textContent = `Área ${gt(ct(e) ?? 0)} · perím. ${W(lt(e) ?? 0)}` : e.tipo === "LineString" ? a.textContent = W(lt(e) ?? 0) : e.tipo === "Point" ? a.textContent = `${e.coordenada[0].toFixed(6)}, ${e.coordenada[1].toFixed(6)}` : e.tipo === "Circle" && (a.textContent = `Raio: ${W(e.raioMetros)} · Área: ${gt(ct(e) ?? 0)}`));
6755
6752
  }
6756
6753
  /** Para os testes: posição atual dos vértices. */
6757
6754
  vertices() {
@@ -6807,7 +6804,7 @@ class Vs {
6807
6804
  var d, h, u;
6808
6805
  const o = this.p.buscar(t, e);
6809
6806
  if (!o || o.excluida) return { ok: !1, motivo: "inexistente" };
6810
- const a = this.p.obterLayerManager().getLayerDef(t), i = Je(o, !!(a != null && a.bloqueada));
6807
+ const a = this.p.obterLayerManager().getLayerDef(t), i = to(o, !!(a != null && a.bloqueada));
6811
6808
  if (i)
6812
6809
  return this.p.emitir("cad-edicao-recusada", { motivo: i, feicao: o }), { ok: !1, motivo: i };
6813
6810
  const s = this.p.obterMapa();
@@ -6849,7 +6846,7 @@ class Vs {
6849
6846
  const t = this.p.selecionadas();
6850
6847
  if (t.length !== 1) return null;
6851
6848
  const e = this.p.obterLayerManager().getLayerDef(t[0].camadaId);
6852
- return Je(t[0], !!(e != null && e.bloqueada)) === null ? t[0] : null;
6849
+ return to(t[0], !!(e != null && e.bloqueada)) === null ? t[0] : null;
6853
6850
  }
6854
6851
  /** Enter: edita a única feição selecionada, se ela for editável. Devolve se a edição começou. */
6855
6852
  editarSelecionada() {
@@ -6898,8 +6895,8 @@ class js {
6898
6895
  buscarSnapEm(t, e) {
6899
6896
  const o = this.p.obterMapa();
6900
6897
  if (!o) return null;
6901
- const a = o.latLngToContainerPoint(t), i = this.candidatasEm(t, Na);
6902
- return Oa({ x: a.x, y: a.y }, i, (s) => o.latLngToContainerPoint(s), {}, e);
6898
+ const a = o.latLngToContainerPoint(t), i = this.candidatasEm(t, Va);
6899
+ return ja({ x: a.x, y: a.y }, i, (s) => o.latLngToContainerPoint(s), {}, e);
6903
6900
  }
6904
6901
  feicaoSob(t, e) {
6905
6902
  const o = this.p.obterMapa();
@@ -6963,7 +6960,7 @@ class Hs {
6963
6960
  for (const o of this.p.obterLayerManager().getActiveSelectableLayers())
6964
6961
  if (o.tipo === G)
6965
6962
  for (const a of this.p.lista(o.id))
6966
- this.p.desenhada(a) && Ra(a, t) && e.push({ camadaId: o.id, id: a.id });
6963
+ this.p.desenhada(a) && Ga(a, t) && e.push({ camadaId: o.id, id: a.id });
6967
6964
  this.p.desativarFerramenta(), this.p.selecionar(e);
6968
6965
  }
6969
6966
  /** Caixa de seleção: só feições de camadas visíveis, interativas e desbloqueadas, com toque geométrico real. */
@@ -6974,12 +6971,12 @@ class Hs {
6974
6971
  for (const r of this.p.obterLayerManager().getActiveSelectableLayers())
6975
6972
  if (r.tipo === G)
6976
6973
  for (const c of this.p.lista(r.id))
6977
- this.p.desenhada(c) && Ba(c, t, i, e) && s.push({ camadaId: r.id, id: c.id });
6974
+ this.p.desenhada(c) && Ha(c, t, i, e) && s.push({ camadaId: r.id, id: c.id });
6978
6975
  o === "adicionar" ? this.p.adicionar ? this.p.adicionar(s) : this.p.alternarVarias(s) : o === "subtrair" ? this.p.subtrair ? this.p.subtrair(s) : this.p.alternarVarias(s) : o === !0 ? this.p.alternarVarias(s) : this.p.selecionar(s);
6979
6976
  }
6980
6977
  }
6981
6978
  function Us(n) {
6982
- return n.key !== "Enter" || n.defaultPrevented || n.ctrlKey || n.metaKey || n.altKey || n.shiftKey ? !1 : !mt(n) && !Yt(n);
6979
+ return n.key !== "Enter" || n.defaultPrevented || n.ctrlKey || n.metaKey || n.altKey || n.shiftKey ? !1 : !bt(n) && !Yt(n);
6983
6980
  }
6984
6981
  class Zs {
6985
6982
  constructor(t) {
@@ -7499,9 +7496,9 @@ const So = {
7499
7496
  function Xs(n) {
7500
7497
  if (!n) return [];
7501
7498
  const t = n.split(/[\s,]+/).map((o) => o.trim().toLowerCase()).filter(Boolean);
7502
- if (t.includes("todas")) return [...eo];
7499
+ if (t.includes("todas")) return [...oo];
7503
7500
  const e = new Set(t.filter(Io));
7504
- return eo.filter((o) => e.has(o));
7501
+ return oo.filter((o) => e.has(o));
7505
7502
  }
7506
7503
  function Ks(n) {
7507
7504
  if (!n) return !1;
@@ -7651,13 +7648,13 @@ function nr(n, t) {
7651
7648
  return e !== void 0 ? Math.min(1, Math.max(0, e)) : void 0;
7652
7649
  }
7653
7650
  case "tipo":
7654
- return ba(t);
7651
+ return ga(t);
7655
7652
  case "tracejado":
7656
7653
  return typeof t == "string" && ar.test(t) ? t.trim() : void 0;
7657
7654
  case "terminacao":
7658
- return va(t) ? t : void 0;
7655
+ return ma(t) ? t : void 0;
7659
7656
  case "juncao":
7660
- return ga(t) ? t : void 0;
7657
+ return fa(t) ? t : void 0;
7661
7658
  default:
7662
7659
  return;
7663
7660
  }
@@ -7683,7 +7680,7 @@ function sr(n) {
7683
7680
  function rr(n, t) {
7684
7681
  return { [ta[n]]: t };
7685
7682
  }
7686
- class cr extends ja {
7683
+ class cr extends Sa {
7687
7684
  constructor() {
7688
7685
  super();
7689
7686
  f(this, "shadow");
@@ -7802,7 +7799,7 @@ class cr extends ja {
7802
7799
  "linha-opacidade",
7803
7800
  "linha-terminacao",
7804
7801
  "linha-juncao",
7805
- ...Ga
7802
+ ...Ma
7806
7803
  ];
7807
7804
  }
7808
7805
  connectedCallback() {
@@ -7818,7 +7815,7 @@ class cr extends ja {
7818
7815
  this.ponteiroSobre = !0;
7819
7816
  }), this.hoverListeners.add(this, "mouseleave", () => {
7820
7817
  this.ponteiroSobre = !1;
7821
- }), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios = Dn(this, this.shadow), this.estilosExternos.aplicar(), oo(this, this.layersPanel), this.initTimeout = window.setTimeout(() => {
7818
+ }), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios = Dn(this, this.shadow), this.estilosExternos.aplicar(), Ke(this, this.layersPanel), this.initTimeout = window.setTimeout(() => {
7822
7819
  this.initTimeout = void 0, this.inicializarAgora();
7823
7820
  }, 0);
7824
7821
  }
@@ -7831,8 +7828,8 @@ class cr extends ja {
7831
7828
  if (!s || !this.mapContainer) return;
7832
7829
  const r = this.mapContainer.getBoundingClientRect(), c = b.point(o - r.left, a - r.top), l = s.containerPointToLatLng(c);
7833
7830
  if (!l || !Number.isFinite(l.lat) || !Number.isFinite(l.lng)) return;
7834
- const d = ia(l.lat, l.lng, this.zonaProjecao), h = this.shadow.getElementById("cad-coord-fuso"), u = this.shadow.getElementById("cad-coord-utm"), m = this.shadow.getElementById("cad-coord-geo");
7835
- h && d && (h.textContent = `${d.fuso}${d.hemisferio}`), u && d && (u.textContent = `E: ${Ve(d.este, 2)} m | N: ${Ve(d.norte, 2)} m`), m && (m.textContent = `Lat: ${l.lat.toFixed(6)}° Lon: ${l.lng.toFixed(6)}°`);
7831
+ const d = La(l.lat, l.lng, this.zonaProjecao), h = this.shadow.getElementById("cad-coord-fuso"), u = this.shadow.getElementById("cad-coord-utm"), m = this.shadow.getElementById("cad-coord-geo");
7832
+ h && d && (h.textContent = `${d.fuso}${d.hemisferio}`), u && d && (u.textContent = `E: ${Xe(d.este, 2)} m | N: ${Xe(d.norte, 2)} m`), m && (m.textContent = `Lat: ${l.lat.toFixed(6)}° Lon: ${l.lng.toFixed(6)}°`);
7836
7833
  };
7837
7834
  typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : setTimeout(i, 16);
7838
7835
  }
@@ -7866,8 +7863,8 @@ class cr extends ja {
7866
7863
  }
7867
7864
  attributeChangedCallback(e, o, a) {
7868
7865
  var i, s, r, c, l, d, h, u, m, g;
7869
- if (Ha(e)) {
7870
- oo(this, this.layersPanel);
7866
+ if (Aa(e)) {
7867
+ Ke(this, this.layersPanel);
7871
7868
  return;
7872
7869
  }
7873
7870
  if (e === "sem-atalho-snap") {
@@ -8428,8 +8425,8 @@ class cr extends ja {
8428
8425
  return this.controller.layerManager;
8429
8426
  }
8430
8427
  }
8431
- Va("ui-canvas-cad", cr);
8432
- class Ar {
8428
+ za("ui-canvas-cad", cr);
8429
+ class Cr {
8433
8430
  constructor(t, e) {
8434
8431
  f(this, "polylines", []);
8435
8432
  f(this, "bancoPontosAtivo", !1);
@@ -8480,9 +8477,9 @@ class Ar {
8480
8477
  (h) => h.lat && h.lon && h.lat !== 0 && h.lon !== 0 && h.tipo_ponto !== "B" && h.tipo !== "B" && h.ignorar_poligono !== 1
8481
8478
  );
8482
8479
  if (e.length < 2) return;
8483
- const o = ((c = this.core.controller) == null ? void 0 : c.chaveGrupo) || ((d = (l = this.core.controller) == null ? void 0 : l.context) == null ? void 0 : d.chaveGrupo), a = Rt(e, o), i = this.bancoPontosAtivo ? "#94a3b8" : "#10b981", s = this.core.config.fechamentoWeight || 2, r = this.bancoPontosAtivo ? 0.4 : 1;
8480
+ const o = ((c = this.core.controller) == null ? void 0 : c.chaveGrupo) || ((d = (l = this.core.controller) == null ? void 0 : l.context) == null ? void 0 : d.chaveGrupo), a = Vt(e, o), i = this.bancoPontosAtivo ? "#94a3b8" : "#10b981", s = this.core.config.fechamentoWeight || 2, r = this.bancoPontosAtivo ? 0.4 : 1;
8484
8481
  Object.values(a).forEach((h) => {
8485
- const u = Bt(h);
8482
+ const u = jt(h);
8486
8483
  if (u.length < 2) return;
8487
8484
  for (let A = 0; A < u.length - 1; A++) {
8488
8485
  const x = u[A], S = u[A + 1], M = [[x.lat, x.lon], [S.lat, S.lon]], P = b.polyline(M, {
@@ -8553,9 +8550,9 @@ class Ar {
8553
8550
  pane: "verticesPane"
8554
8551
  }).bindPopup(h, { className: "compact-popup", maxWidth: 220 }).addTo(this.core.bancoPontosGroup);
8555
8552
  });
8556
- const o = ((i = this.core.controller) == null ? void 0 : i.chaveGrupo) || ((r = (s = this.core.controller) == null ? void 0 : s.context) == null ? void 0 : r.chaveGrupo), a = Rt(e, o);
8553
+ const o = ((i = this.core.controller) == null ? void 0 : i.chaveGrupo) || ((r = (s = this.core.controller) == null ? void 0 : s.context) == null ? void 0 : r.chaveGrupo), a = Vt(e, o);
8557
8554
  for (const c in a) {
8558
- const l = Bt(a[c]);
8555
+ const l = jt(a[c]);
8559
8556
  if (l.length >= 2) {
8560
8557
  const d = l.map((h) => b.latLng(h.lat, h.lon));
8561
8558
  d.push(b.latLng(l[0].lat, l[0].lon)), b.polyline(d, {
@@ -8572,7 +8569,7 @@ class Ar {
8572
8569
  this.core.map && this.polylines.forEach((t) => this.core.map.removeLayer(t)), this.core.bancoPontosGroup && this.core.bancoPontosGroup.clearLayers(), this.polylines = [];
8573
8570
  }
8574
8571
  }
8575
- class zr {
8572
+ class Sr {
8576
8573
  constructor(t, e) {
8577
8574
  f(this, "markers", []);
8578
8575
  f(this, "vizinhosMarkers", []);
@@ -8712,13 +8709,13 @@ class zr {
8712
8709
  }
8713
8710
  export {
8714
8711
  ta as ATRIBUTOS_LINHA_PADRAO,
8715
- La as AgrupadorCluster,
8712
+ xa as AgrupadorCluster,
8716
8713
  sn as CADMapaController,
8717
8714
  ei as CAD_INTERACTIVE_PANES,
8718
- Jr as CELULA_CLUSTER_PX,
8715
+ Kr as CELULA_CLUSTER_PX,
8719
8716
  Po as CLASSE_FERRAMENTA_ATIVA,
8720
8717
  De as COR_PADRAO,
8721
- jt as COR_SELECAO,
8718
+ Bt as COR_SELECAO,
8722
8719
  Ko as CSS_POSICAO_HUD,
8723
8720
  sn as CanvasCADController,
8724
8721
  Wt as CanvasFormas,
@@ -8728,10 +8725,10 @@ export {
8728
8725
  Rn as CursoresRemotos,
8729
8726
  ao as DEFAULT_CONFIG,
8730
8727
  fo as DEFAULT_LAYERS,
8731
- tc as DadosCamada,
8728
+ Yr as DadosCamada,
8732
8729
  Vi as DespachanteFeicoes,
8733
8730
  Bs as EditorVertices,
8734
- eo as FERRAMENTAS,
8731
+ oo as FERRAMENTAS,
8735
8732
  Jn as FOLGA_HUD,
8736
8733
  ts as FRACAO_LARGURA_HUD,
8737
8734
  Zn as FeicaoPopup,
@@ -8742,180 +8739,180 @@ export {
8742
8739
  Me as ICONES_FEICAO,
8743
8740
  os as ID_HUD_DESENHO,
8744
8741
  Ts as ID_HUD_EDICAO,
8745
- ra as IndiceEspacial,
8746
- kr as InternadorEstilos,
8742
+ na as IndiceEspacial,
8743
+ zr as InternadorEstilos,
8747
8744
  Ce as LIMIAR_DENSIDADE_ALTA,
8748
8745
  se as LIMITE_CULLING,
8749
- ec as LIMITE_MARCA_PX,
8746
+ Qr as LIMITE_MARCA_PX,
8750
8747
  R as LayerRendererFactory,
8751
8748
  Qn as MARGEM_HUD_PADRAO,
8752
- _a as MAX_NOS_COM_ALCA_LATENTE,
8753
- oc as MAX_PONTOS_SEM_CLUSTER,
8754
- dc as MAX_VERTICES_EDICAO,
8755
- la as MIN_VERTICES_SIMPLIFICAR,
8749
+ Na as MAX_NOS_COM_ALCA_LATENTE,
8750
+ Jr as MAX_PONTOS_SEM_CLUSTER,
8751
+ rc as MAX_VERTICES_EDICAO,
8752
+ ra as MIN_VERTICES_SIMPLIFICAR,
8756
8753
  Pe as MapaConfigManager,
8757
8754
  ti as MapaCore,
8758
- Ar as MapaLinhas,
8759
- zr as MapaMarcadores,
8760
- Ca as MotorFormas,
8761
- ac as OPACIDADE_MARCA,
8755
+ Cr as MapaLinhas,
8756
+ Sr as MapaMarcadores,
8757
+ Pa as MotorFormas,
8758
+ tc as OPACIDADE_MARCA,
8762
8759
  me as PROPRIEDADES_HUD,
8763
8760
  wo as PintorCanvas2D,
8764
- Ac as RAIO_MINIMO_CIRCULO_M,
8765
- hc as RAIO_MINIMO_EDICAO_CIRCULO_M,
8761
+ Cc as RAIO_MINIMO_CIRCULO_M,
8762
+ cc as RAIO_MINIMO_EDICAO_CIRCULO_M,
8766
8763
  _e as RegraVersoes,
8767
8764
  Bn as SelecaoFeicoes,
8768
8765
  te as SessaoDesenho,
8769
- Ir as TIPOS_LINHA,
8766
+ wr as TIPOS_LINHA,
8770
8767
  xi as TOLERANCIA_AMOSTRA_PX,
8771
8768
  ee as TOLERANCIA_LINHA_PX,
8772
8769
  ai as TOLERANCIA_PONTO_PX,
8773
- Na as TOLERANCIA_SNAP_PX,
8770
+ Va as TOLERANCIA_SNAP_PX,
8774
8771
  pi as TileLayerRenderer,
8775
8772
  cr as UICanvasCAD,
8776
8773
  mi as VectorLinesLayerRenderer,
8777
8774
  vi as VectorPointsLayerRenderer,
8778
8775
  bi as VectorPolygonsLayerRenderer,
8779
8776
  fi as WmsLayerRenderer,
8780
- ic as ZOOM_DESMEMBRAR,
8781
- je as ZOOM_SEM_SIMPLIFICACAO,
8782
- nc as agruparMarcasPorCor,
8783
- sc as agruparPontos,
8784
- Rt as agruparPontosPorChave,
8777
+ ec as ZOOM_DESMEMBRAR,
8778
+ Be as ZOOM_SEM_SIMPLIFICACAO,
8779
+ oc as agruparMarcasPorCor,
8780
+ ac as agruparPontos,
8781
+ Vt as agruparPontosPorChave,
8785
8782
  xe as alcaLatente,
8786
8783
  Eo as alternarSuavidade,
8787
- zc as amostrarBezier,
8784
+ Sc as amostrarBezier,
8788
8785
  es as aplicarMargensHud,
8789
8786
  ct as areaDaGeometria,
8790
- Tr as areaMetros2,
8787
+ Er as areaMetros2,
8791
8788
  St as bindPopupAcoesEvents,
8792
- Oa as buscarSnap,
8793
- Dr as caixaDaFeicao,
8794
- _r as caixaPx,
8789
+ ja as buscarSnap,
8790
+ kr as caixaDaFeicao,
8791
+ Ir as caixaPx,
8795
8792
  zt as caixasSeTocam,
8796
- rc as centroDe,
8793
+ ic as centroDe,
8797
8794
  Jt as clonarFeicao,
8798
- Ye as comAlcaMovida,
8795
+ Qe as comAlcaMovida,
8799
8796
  dt as comNos,
8800
8797
  ye as comPontos,
8801
- uc as comVertices,
8802
- fa as comprimentoMetros,
8803
- Sr as confrontanteParaFeicao,
8798
+ lc as comVertices,
8799
+ ua as comprimentoMetros,
8800
+ Pr as confrontanteParaFeicao,
8804
8801
  $o as consultarFeicoesNoPonto,
8805
- Ke as contarItensCanvas,
8806
- pc as converterArea,
8807
- fc as converterComprimento,
8802
+ Ye as contarItensCanvas,
8803
+ dc as converterArea,
8804
+ hc as converterComprimento,
8808
8805
  Xt as coordenadaDeReferencia,
8809
8806
  Ie as corHexSegura,
8810
8807
  et as corSegura,
8811
8808
  gn as criarControladorTamanho,
8812
8809
  be as criarLinha,
8813
- qr as dashTipoLinha,
8814
- mc as ddParaDms,
8810
+ Tr as dashTipoLinha,
8811
+ uc as ddParaDms,
8815
8812
  yt as deMetros,
8816
- Ea as deslocarGeometria,
8817
- Xe as deveAgrupar,
8818
- We as diagonalPx,
8819
- $r as distSegmentoPx,
8820
- gc as distanciaEntre,
8813
+ Da as deslocarGeometria,
8814
+ Ze as deveAgrupar,
8815
+ Ue as diagonalPx,
8816
+ Dr as distSegmentoPx,
8817
+ pc as distanciaEntre,
8821
8818
  Ao as distanciaMetros,
8822
- za as dividirPoligonoComLinha,
8823
- vc as dmsParaDd,
8819
+ Ia as dividirPoligonoComLinha,
8820
+ fc as dmsParaDd,
8824
8821
  Io as ehFerramenta,
8825
- xa as ehMarca,
8826
- Ze as ehMultilinha,
8827
- Fr as ehTipoLinha,
8822
+ ba as ehMarca,
8823
+ He as ehMultilinha,
8824
+ _r as ehTipoLinha,
8828
8825
  st as entidadeDe,
8829
- to as entradaDaAncora,
8830
- Nr as escalaDoZoom,
8831
- Or as escalaLatitude,
8832
- Rr as escalaTipoLinhaSegura,
8826
+ eo as entradaDaAncora,
8827
+ qr as escalaDoZoom,
8828
+ $r as escalaLatitude,
8829
+ Fr as escalaTipoLinhaSegura,
8833
8830
  T as escapeHtml,
8834
8831
  ve as estiloVetorDe,
8835
8832
  lt as extensaoDaGeometria,
8836
- Be as extrairCentroDeWkt,
8833
+ We as extrairCentroDeWkt,
8837
8834
  gi as extrairCorPonto,
8838
- Br as extremosDoCirculoGeografico,
8835
+ Nr as extremosDoCirculoGeografico,
8839
8836
  No as fatorDensidade,
8840
- Ba as feicaoNaCaixa,
8841
- Ra as feicaoNoLaco,
8837
+ Ha as feicaoNaCaixa,
8838
+ Ga as feicaoNoLaco,
8842
8839
  Qt as feicaoNoPonto,
8843
- Pr as feicaoNoTopo,
8844
- Ve as formatUTM,
8845
- vt as formatarArea,
8840
+ br as feicaoNoTopo,
8841
+ Xe as formatUTM,
8842
+ gt as formatarArea,
8846
8843
  W as formatarExtensao,
8847
8844
  ni as garantirCanvasSemEventos,
8848
- wa as gerarBuffer,
8845
+ Ta as gerarBuffer,
8849
8846
  Zt as getPointShapeHtml,
8850
- qa as inserirPonto,
8851
- bc as inserirVertice,
8852
- ga as juncaoCanvas,
8853
- ka as juntarLinhas,
8854
- Ia as juntarPoligonos,
8855
- Pa as ladoMarca,
8856
- He as latLonDoMundo,
8857
- ia as latLonParaUtm,
8847
+ Oa as inserirPonto,
8848
+ mc as inserirVertice,
8849
+ fa as juncaoCanvas,
8850
+ _a as juntarLinhas,
8851
+ qa as juntarPoligonos,
8852
+ ya as ladoMarca,
8853
+ je as latLonDoMundo,
8854
+ La as latLonParaUtm,
8858
8855
  Bi as lerModoRenderizador,
8859
- pa as limitesDaGeometria,
8860
- Vr as metrosPorGrau,
8861
- jr as metrosPorPixel,
8862
- Fa as minimoVertices,
8856
+ ha as limitesDaGeometria,
8857
+ Or as metrosPorGrau,
8858
+ Rr as metrosPorPixel,
8859
+ Ba as minimoVertices,
8863
8860
  Se as modoDensidade,
8864
8861
  ko as moverAlca,
8865
- yc as moverVertice,
8862
+ gc as moverVertice,
8866
8863
  Xo as normalizarAnel,
8867
8864
  K as normalizarCoordenada,
8868
8865
  pe as normalizarFeicaoEntrada,
8869
8866
  vo as normalizarLinha,
8870
8867
  qn as normalizarPoligono,
8871
- ba as normalizarTipoLinha,
8872
- Da as nosDe,
8873
- wc as nosDeAncoras,
8868
+ ga as normalizarTipoLinha,
8869
+ Fa as nosDe,
8870
+ Mc as nosDeAncoras,
8874
8871
  U as nosOuVertices,
8875
- Bt as ordenarPontosPorSequencia,
8872
+ jt as ordenarPontosPorSequencia,
8876
8873
  X as paraMetros,
8877
8874
  V as parseCoordenada,
8878
- xc as parseDash,
8879
- Vt as partesDaLinha,
8880
- ya as pintarMarcas,
8881
- Ta as planoLocal,
8882
- Pc as pontoDaBordaDoCirculo,
8883
- Lc as pontoMedio,
8875
+ vc as parseDash,
8876
+ Rt as partesDaLinha,
8877
+ va as pintarMarcas,
8878
+ $a as planoLocal,
8879
+ bc as pontoDaBordaDoCirculo,
8880
+ yc as pontoMedio,
8884
8881
  wt as pontoMedioDoSegmento,
8885
- Aa as pontoNoPoligono,
8886
- Lr as pontoParaFeicao,
8882
+ ka as pontoNoPoligono,
8883
+ yr as pontoParaFeicao,
8887
8884
  Q as pontosDe,
8888
- Mr as posicaoHud,
8885
+ Lr as posicaoHud,
8889
8886
  pn as processarAcaoPopup,
8890
8887
  un as processarCliqueLivreCanvas,
8891
- Gr as projetarCentro,
8892
- Hr as projetarEm,
8893
- cc as projetarMercator,
8894
- Ur as projetarVertices,
8895
- Zr as raioCirculoPx,
8896
- Ge as raioPontoPx,
8888
+ Br as projetarCentro,
8889
+ Vr as projetarEm,
8890
+ nc as projetarMercator,
8891
+ jr as projetarVertices,
8892
+ Gr as raioCirculoPx,
8893
+ Ve as raioPontoPx,
8897
8894
  ki as regioesExpostas,
8898
8895
  _o as registrarFonteHit,
8899
8896
  qo as removerFonteHit,
8900
- $a as removerPonto,
8901
- Cc as removerVertice,
8897
+ Ra as removerPonto,
8898
+ xc as removerVertice,
8902
8899
  Ct as renderPopupAcoesHtml,
8903
8900
  rn as renderizarPainelCamadas,
8904
8901
  hi as resolverCliqueCentral,
8905
- Cr as segmentoParaFeicao,
8906
- Ma as segmentosDe,
8907
- Qe as segmentosDoEditor,
8908
- Wr as simplificarAnel,
8909
- da as simplificarGeometria,
8910
- Xr as simplificarLinha,
8911
- Kr as simplificarPx,
8902
+ xr as segmentoParaFeicao,
8903
+ Ea as segmentosDe,
8904
+ Je as segmentosDoEditor,
8905
+ Hr as simplificarAnel,
8906
+ ca as simplificarGeometria,
8907
+ Ur as simplificarLinha,
8908
+ Zr as simplificarPx,
8912
8909
  pt as statusDe,
8913
- va as terminacaoCanvas,
8914
- ha as textoRotulo,
8915
- Yr as toleranciaPorZoom,
8910
+ ma as terminacaoCanvas,
8911
+ la as textoRotulo,
8912
+ Wr as toleranciaPorZoom,
8916
8913
  fn as tratarCliqueMarcador,
8917
8914
  mn as tratarCliqueSegmento,
8918
- Je as verificarEditavel,
8919
- ca as vertices,
8920
- Sc as verticesDe
8915
+ to as verificarEditavel,
8916
+ sa as vertices,
8917
+ Pc as verticesDe
8921
8918
  };