@carto/ps-react-ui 4.12.2 → 4.14.0

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 (154) hide show
  1. package/dist/{category-Dnd2_j0x.js → category-CGS_eHr4.js} +2 -2
  2. package/dist/{category-Dnd2_j0x.js.map → category-CGS_eHr4.js.map} +1 -1
  3. package/dist/{change-column-DjjwoPt1.js → change-column-CiVAjOUB.js} +2 -2
  4. package/dist/{change-column-DjjwoPt1.js.map → change-column-CiVAjOUB.js.map} +1 -1
  5. package/dist/components.js +1232 -777
  6. package/dist/components.js.map +1 -1
  7. package/dist/{data-zoom-layout-CkVnm6ej.js → data-zoom-layout-D_FYdnap.js} +2 -2
  8. package/dist/{data-zoom-layout-CkVnm6ej.js.map → data-zoom-layout-D_FYdnap.js.map} +1 -1
  9. package/dist/{download-config-oJIFZ2WC.js → download-config-OKlLLSW_.js} +2 -2
  10. package/dist/{download-config-oJIFZ2WC.js.map → download-config-OKlLLSW_.js.map} +1 -1
  11. package/dist/{lasso-tool-CDFj4zKY.js → lasso-tool-YLFRgb-S.js} +182 -154
  12. package/dist/lasso-tool-YLFRgb-S.js.map +1 -0
  13. package/dist/legend/stores.js +20 -0
  14. package/dist/legend/stores.js.map +1 -0
  15. package/dist/legend.js +1536 -0
  16. package/dist/legend.js.map +1 -0
  17. package/dist/selectors-DwHj6mE2.js +388 -0
  18. package/dist/selectors-DwHj6mE2.js.map +1 -0
  19. package/dist/{spread-DYNpzgh_.js → spread-4MYPOntd.js} +2 -2
  20. package/dist/{spread-DYNpzgh_.js.map → spread-4MYPOntd.js.map} +1 -1
  21. package/dist/{table-B3ZWWhJt.js → table-CTcLOycx.js} +2 -2
  22. package/dist/{table-B3ZWWhJt.js.map → table-CTcLOycx.js.map} +1 -1
  23. package/dist/types/components/index.d.ts +5 -2
  24. package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +13 -0
  25. package/dist/types/components/lasso-tool/icons.d.ts +6 -0
  26. package/dist/types/components/lasso-tool/lasso-tool.d.ts +1 -1
  27. package/dist/types/components/lasso-tool/layer-filters.d.ts +10 -0
  28. package/dist/types/components/lasso-tool/styles.d.ts +1 -1
  29. package/dist/types/components/lasso-tool/types.d.ts +62 -1
  30. package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +35 -3
  31. package/dist/types/legend/components/contexts.d.ts +20 -0
  32. package/dist/types/legend/components/icons.d.ts +12 -0
  33. package/dist/types/legend/components/index.d.ts +26 -0
  34. package/dist/types/legend/components/legend-actions/legend-actions.d.ts +24 -0
  35. package/dist/types/legend/components/legend-actions/styles.d.ts +7 -0
  36. package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +13 -0
  37. package/dist/types/legend/components/legend-category/styles.d.ts +52 -0
  38. package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +14 -0
  39. package/dist/types/legend/components/legend-config-select/styles.d.ts +44 -0
  40. package/dist/types/legend/components/legend-group/legend-group.d.ts +21 -0
  41. package/dist/types/legend/components/legend-group/styles.d.ts +63 -0
  42. package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +10 -0
  43. package/dist/types/legend/components/legend-icon/styles.d.ts +52 -0
  44. package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +14 -0
  45. package/dist/types/legend/components/legend-item/legend-item.d.ts +10 -0
  46. package/dist/types/legend/components/legend-item/styles.d.ts +7 -0
  47. package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +32 -0
  48. package/dist/types/legend/components/legend-opacity/styles.d.ts +23 -0
  49. package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +16 -0
  50. package/dist/types/legend/components/legend-proportion/styles.d.ts +37 -0
  51. package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +20 -0
  52. package/dist/types/legend/components/legend-ramp/styles.d.ts +53 -0
  53. package/dist/types/legend/components/legend-row/legend-row.d.ts +23 -0
  54. package/dist/types/legend/components/legend-row/styles.d.ts +77 -0
  55. package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +18 -0
  56. package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +15 -0
  57. package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +26 -0
  58. package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +35 -0
  59. package/dist/types/legend/index.d.ts +88 -0
  60. package/dist/types/legend/provider/index.d.ts +6 -0
  61. package/dist/types/legend/provider/labels.d.ts +27 -0
  62. package/dist/types/legend/provider/legend-config-context.d.ts +7 -0
  63. package/dist/types/legend/provider/legend-provider.d.ts +38 -0
  64. package/dist/types/legend/stores/index.d.ts +5 -0
  65. package/dist/types/legend/stores/legend-context.d.ts +4 -0
  66. package/dist/types/legend/stores/legend-store-registry.d.ts +39 -0
  67. package/dist/types/legend/stores/legend-store.test.d.ts +1 -0
  68. package/dist/types/legend/stores/selectors.d.ts +33 -0
  69. package/dist/types/legend/stores/types.d.ts +275 -0
  70. package/dist/widgets/actions.js +1 -1
  71. package/dist/widgets/bar.js +1 -1
  72. package/dist/widgets/category.js +1 -1
  73. package/dist/widgets/formula.js +1 -1
  74. package/dist/widgets/histogram.js +1 -1
  75. package/dist/widgets/markdown.js +1 -1
  76. package/dist/widgets/pie.js +1 -1
  77. package/dist/widgets/scatterplot.js +1 -1
  78. package/dist/widgets/spread.js +1 -1
  79. package/dist/widgets/table.js +1 -1
  80. package/dist/widgets/timeseries.js +1 -1
  81. package/dist/widgets/utils.js +1 -1
  82. package/dist/widgets/wrapper.js +1 -1
  83. package/dist/widgets-v2/actions.js +1 -1
  84. package/dist/widgets-v2/bar.js +2 -2
  85. package/dist/widgets-v2/category.js +2 -2
  86. package/dist/widgets-v2/formula.js +1 -1
  87. package/dist/widgets-v2/histogram.js +2 -2
  88. package/dist/widgets-v2/markdown.js +1 -1
  89. package/dist/widgets-v2/pie.js +1 -1
  90. package/dist/widgets-v2/scatterplot.js +1 -1
  91. package/dist/widgets-v2/spread.js +2 -2
  92. package/dist/widgets-v2/table.js +3 -3
  93. package/dist/widgets-v2/timeseries.js +2 -2
  94. package/dist/widgets-v2/utils.js +1 -1
  95. package/dist/widgets-v2.js +5 -5
  96. package/package.json +11 -3
  97. package/src/components/geolocation-controls/geolocation-controls.test.tsx +15 -0
  98. package/src/components/geolocation-controls/geolocation-controls.tsx +19 -3
  99. package/src/components/index.ts +10 -0
  100. package/src/components/lasso-tool/const.tsx +1 -0
  101. package/src/components/lasso-tool/geometry-toolbar.test.tsx +138 -0
  102. package/src/components/lasso-tool/geometry-toolbar.tsx +258 -0
  103. package/src/components/lasso-tool/icons.tsx +40 -0
  104. package/src/components/lasso-tool/lasso-tool.tsx +25 -1
  105. package/src/components/lasso-tool/layer-filters.test.tsx +90 -0
  106. package/src/components/lasso-tool/layer-filters.tsx +236 -0
  107. package/src/components/lasso-tool/styles.ts +1 -1
  108. package/src/components/lasso-tool/types.ts +66 -1
  109. package/src/components/responsive-drawer/responsive-drawer.test.tsx +129 -25
  110. package/src/components/responsive-drawer/responsive-drawer.tsx +149 -16
  111. package/src/legend/components/contexts.ts +32 -0
  112. package/src/legend/components/icons.tsx +22 -0
  113. package/src/legend/components/index.ts +39 -0
  114. package/src/legend/components/legend-actions/legend-actions.tsx +57 -0
  115. package/src/legend/components/legend-actions/styles.ts +9 -0
  116. package/src/legend/components/legend-category/legend-category-ui.tsx +91 -0
  117. package/src/legend/components/legend-category/styles.ts +61 -0
  118. package/src/legend/components/legend-config-select/legend-config-select.tsx +96 -0
  119. package/src/legend/components/legend-config-select/styles.ts +48 -0
  120. package/src/legend/components/legend-group/legend-group.test.tsx +115 -0
  121. package/src/legend/components/legend-group/legend-group.tsx +88 -0
  122. package/src/legend/components/legend-group/styles.ts +82 -0
  123. package/src/legend/components/legend-icon/legend-icon-ui.tsx +56 -0
  124. package/src/legend/components/legend-icon/styles.ts +56 -0
  125. package/src/legend/components/legend-item/legend-item-ui.test.tsx +362 -0
  126. package/src/legend/components/legend-item/legend-item-ui.tsx +43 -0
  127. package/src/legend/components/legend-item/legend-item.tsx +34 -0
  128. package/src/legend/components/legend-item/styles.ts +11 -0
  129. package/src/legend/components/legend-opacity/legend-opacity.tsx +179 -0
  130. package/src/legend/components/legend-opacity/styles.ts +28 -0
  131. package/src/legend/components/legend-proportion/legend-proportion-ui.tsx +122 -0
  132. package/src/legend/components/legend-proportion/styles.ts +43 -0
  133. package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +159 -0
  134. package/src/legend/components/legend-ramp/styles.ts +62 -0
  135. package/src/legend/components/legend-row/legend-row.test.tsx +498 -0
  136. package/src/legend/components/legend-row/legend-row.tsx +129 -0
  137. package/src/legend/components/legend-row/styles.ts +111 -0
  138. package/src/legend/components/legend-row-menu/legend-row-menu.tsx +68 -0
  139. package/src/legend/components/legend-row-menu/legend-zoom-to.tsx +35 -0
  140. package/src/legend/components/legend-swatch/legend-swatch.test.tsx +109 -0
  141. package/src/legend/components/legend-swatch/legend-swatch.tsx +237 -0
  142. package/src/legend/components/legend-visibility-toggle/legend-visibility-toggle.tsx +127 -0
  143. package/src/legend/index.ts +121 -0
  144. package/src/legend/provider/index.ts +6 -0
  145. package/src/legend/provider/labels.ts +59 -0
  146. package/src/legend/provider/legend-config-context.ts +15 -0
  147. package/src/legend/provider/legend-provider.tsx +102 -0
  148. package/src/legend/stores/index.ts +46 -0
  149. package/src/legend/stores/legend-context.ts +17 -0
  150. package/src/legend/stores/legend-store-registry.ts +639 -0
  151. package/src/legend/stores/legend-store.test.ts +457 -0
  152. package/src/legend/stores/selectors.ts +65 -0
  153. package/src/legend/stores/types.ts +347 -0
  154. package/dist/lasso-tool-CDFj4zKY.js.map +0 -1
@@ -1,194 +1,597 @@
1
- import { s as be, L as Be, a as re } from "./lasso-tool-CDFj4zKY.js";
2
- import { D as co, b as mo, c as uo, d as po, e as fo, f as ho, S as go } from "./lasso-tool-CDFj4zKY.js";
3
- import { jsxs as E, Fragment as J, jsx as o } from "react/jsx-runtime";
4
- import { c as F } from "react/compiler-runtime";
5
- import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as $e, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as ie, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as Ge, DialogActions as ze, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as Ce, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
6
- import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
7
- import { d as we } from "./cjs-D4KH3azB.js";
8
- import { T as fe } from "./tooltip-BDnrRKrp.js";
9
- import { s as vo } from "./tooltip-BDnrRKrp.js";
10
- import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
11
- import { S as ct } from "./smart-tooltip-D4vwQpFf.js";
12
- import { C as xo } from "./copy-button-DGL1tyli.js";
13
- const dt = [], mt = {};
14
- function to(t) {
15
- const e = F(55), {
16
- enabled: s,
17
- values: l,
1
+ import { s as Be, L as dt, a as xe, S as mt, T as ft } from "./lasso-tool-YLFRgb-S.js";
2
+ import { D as Jl, b as eo, c as to, d as lo, e as oo, f as no, g as io } from "./lasso-tool-YLFRgb-S.js";
3
+ import { jsxs as W, Fragment as ge, jsx as l } from "react/jsx-runtime";
4
+ import { c as H } from "react/compiler-runtime";
5
+ import { Divider as be, Box as oe, ToggleButton as Ue, SvgIcon as We, ToggleButtonGroup as tt, Typography as ae, Button as Te, Paper as Pe, TextField as pt, Popover as lt, IconButton as ve, ListItemButton as He, ListItemIcon as je, Checkbox as Ye, ListItemText as Me, Dialog as ot, DialogTitle as nt, InputBase as ut, List as it, DialogContent as st, DialogActions as rt, alpha as ht, MenuItem as Ke, Menu as gt, FormControlLabel as bt, Radio as vt, RadioGroup as yt, FormControl as xt, CircularProgress as St, Grid as De, Skeleton as Fe, Alert as _t, ListItem as Ct, Drawer as wt, useTheme as kt, useMediaQuery as Tt } from "@mui/material";
6
+ import { useRef as Ie, useState as ce, useId as Mt, useReducer as It, useEffectEvent as At, useEffect as at } from "react";
7
+ import { d as Ne } from "./cjs-D4KH3azB.js";
8
+ import { T as Ae } from "./tooltip-BDnrRKrp.js";
9
+ import { s as ro } from "./tooltip-BDnrRKrp.js";
10
+ import { LockOutlined as Lt, DeleteOutlined as Dt, Close as Ge, Search as Pt, ArrowDropDown as Rt, MyLocationOutlined as Ot, LocationDisabledOutlined as Et, CropFreeOutlined as $t, AddOutlined as Bt, RemoveOutlined as Ut } from "@mui/icons-material";
11
+ import { S as Wt } from "./smart-tooltip-D4vwQpFf.js";
12
+ import { C as co } from "./copy-button-DGL1tyli.js";
13
+ const zt = [], Vt = {};
14
+ function Zl(t) {
15
+ const e = H(55), {
16
+ enabled: i,
17
+ values: o,
18
18
  chipProps: n,
19
- labels: r,
20
- modes: i,
21
- modesMapping: a,
22
- modeSelected: c,
19
+ labels: c,
20
+ modes: s,
21
+ modesMapping: r,
22
+ modeSelected: a,
23
23
  BoxProps: m,
24
- onChipToggle: d,
25
- onDelete: u,
26
- onChangeMode: f,
27
- onAllChipToggle: v,
28
- onAllDelete: w
29
- } = t, h = l === void 0 ? dt : l, g = m === void 0 ? mt : m;
30
- let L, M;
31
- e[0] !== g ? ({
32
- sx: M,
33
- ...L
34
- } = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
35
- let C;
36
- e[3] !== i || e[4] !== a ? (C = we(i, a), e[3] = i, e[4] = a, e[5] = C) : C = e[5];
37
- const y = C;
38
- let x, k;
39
- e[6] !== y ? ({
40
- edit: k,
41
- ...x
42
- } = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
43
- let b;
44
- e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
45
- const _ = b;
24
+ onChipToggle: f,
25
+ onDelete: d,
26
+ onChangeMode: h,
27
+ onAllChipToggle: u,
28
+ onAllDelete: A
29
+ } = t, C = o === void 0 ? zt : o, x = m === void 0 ? Vt : m;
30
+ let $, B;
31
+ e[0] !== x ? ({
32
+ sx: B,
33
+ ...$
34
+ } = x, e[0] = x, e[1] = $, e[2] = B) : ($ = e[1], B = e[2]);
35
+ let k;
36
+ e[3] !== s || e[4] !== r ? (k = Ne(s, r), e[3] = s, e[4] = r, e[5] = k) : k = e[5];
37
+ const S = k;
38
+ let b, I;
39
+ e[6] !== S ? ({
40
+ edit: I,
41
+ ...b
42
+ } = S, e[6] = S, e[7] = b, e[8] = I) : (b = e[7], I = e[8]);
43
+ let g;
44
+ e[9] !== d ? (g = (X) => d(X), e[9] = d, e[10] = g) : g = e[10];
45
+ const w = g;
46
46
  let T;
47
- e[11] !== f ? (T = (q, le) => {
48
- q.preventDefault(), f?.(le);
49
- }, e[11] = f, e[12] = T) : T = e[12];
50
- const S = T, I = (c ?? "") in i ? c : Object.keys(y)[0], D = s ? y[I] : null;
51
- let O;
52
- e[13] !== x ? (O = Object.values(x), e[13] = x, e[14] = O) : O = e[14];
53
- const U = O;
54
- let P;
55
- e[15] !== M ? (P = {
56
- ...be.container,
57
- ...M
58
- }, e[15] = M, e[16] = P) : P = e[16];
59
- const R = r?.options, V = D?.value, Z = r?.options;
60
- let A;
61
- e[17] !== U || e[18] !== Z ? (A = /* @__PURE__ */ o(Te, { labels: Z, data: U }), e[17] = U, e[18] = Z, e[19] = A) : A = e[19];
62
- let B;
63
- e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (B = !!k && /* @__PURE__ */ E(J, { children: [
64
- /* @__PURE__ */ o(ue, { orientation: "vertical" }),
65
- /* @__PURE__ */ o(Te, { labels: r?.options, data: [{
66
- ...k,
67
- disabled: !h.length
47
+ e[11] !== h ? (T = (X, J) => {
48
+ X.preventDefault(), h?.(J);
49
+ }, e[11] = h, e[12] = T) : T = e[12];
50
+ const _ = T, L = (a ?? "") in s ? a : Object.keys(S)[0], O = i ? S[L] : null;
51
+ let D;
52
+ e[13] !== b ? (D = Object.values(b), e[13] = b, e[14] = D) : D = e[14];
53
+ const v = D;
54
+ let M;
55
+ e[15] !== B ? (M = {
56
+ ...Be.container,
57
+ ...B
58
+ }, e[15] = B, e[16] = M) : M = e[16];
59
+ const P = c?.options, U = O?.value, E = c?.options;
60
+ let y;
61
+ e[17] !== v || e[18] !== E ? (y = /* @__PURE__ */ l(Xe, { labels: E, data: v }), e[17] = v, e[18] = E, e[19] = y) : y = e[19];
62
+ let R;
63
+ e[20] !== I || e[21] !== c?.options || e[22] !== C.length ? (R = !!I && /* @__PURE__ */ W(ge, { children: [
64
+ /* @__PURE__ */ l(be, { orientation: "vertical" }),
65
+ /* @__PURE__ */ l(Xe, { labels: c?.options, data: [{
66
+ ...I,
67
+ disabled: !C.length
68
68
  }] })
69
- ] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = B) : B = e[23];
70
- let W;
71
- e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
72
- A,
73
- B
74
- ] }), e[24] = S, e[25] = V, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
69
+ ] }), e[20] = I, e[21] = c?.options, e[22] = C.length, e[23] = R) : R = e[23];
70
+ let V;
71
+ e[24] !== _ || e[25] !== U || e[26] !== y || e[27] !== R ? (V = /* @__PURE__ */ W(tt, { value: U, exclusive: !0, className: "inline", sx: Be.options.menu, onChange: _, children: [
72
+ y,
73
+ R
74
+ ] }), e[24] = _, e[25] = U, e[26] = y, e[27] = R, e[28] = V) : V = e[28];
75
75
  let G;
76
- e[29] !== U || e[30] !== W || e[31] !== R ? (G = /* @__PURE__ */ o(ut, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = G) : G = e[32];
76
+ e[29] !== v || e[30] !== V || e[31] !== P ? (G = /* @__PURE__ */ l(Ft, { data: v, labels: P, children: V }), e[29] = v, e[30] = V, e[31] = P, e[32] = G) : G = e[32];
77
+ let Z;
78
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ l(be, { flexItem: !0 }), e[33] = Z) : Z = e[33];
79
+ const F = !!C.length, j = c?.noData;
80
+ let z;
81
+ e[34] !== F || e[35] !== j ? (z = /* @__PURE__ */ l(Zt, { hasValues: F, labels: j }), e[34] = F, e[35] = j, e[36] = z) : z = e[36];
77
82
  let N;
78
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
79
- const j = !!h.length, z = r?.noData;
80
- let $;
81
- e[34] !== j || e[35] !== z ? ($ = /* @__PURE__ */ o(pt, { hasValues: j, labels: z }), e[34] = j, e[35] = z, e[36] = $) : $ = e[36];
82
- let H;
83
- e[37] !== n || e[38] !== _ || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o(Be, { value: q, labels: r?.chip, chipProps: n, onDelete: _, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = _, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
84
- const ee = r?.actions;
85
- let X;
86
- e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(ft, { values: h, labels: ee, onAllChipToggle: v, onAllDelete: w }), e[43] = v, e[44] = w, e[45] = ee, e[46] = h, e[47] = X) : X = e[47];
87
- let te;
88
- return e[48] !== L || e[49] !== G || e[50] !== $ || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
83
+ e[37] !== n || e[38] !== w || e[39] !== c?.chip || e[40] !== f || e[41] !== C ? (N = !!C.length && /* @__PURE__ */ l(oe, { sx: Be.chip.container, className: "inline", children: C.map((X) => /* @__PURE__ */ l(dt, { value: X, labels: c?.chip, chipProps: n, onDelete: w, onChipToggle: f }, X.id)) }), e[37] = n, e[38] = w, e[39] = c?.chip, e[40] = f, e[41] = C, e[42] = N) : N = e[42];
84
+ const q = c?.actions;
85
+ let K;
86
+ e[43] !== u || e[44] !== A || e[45] !== q || e[46] !== C ? (K = /* @__PURE__ */ l(jt, { values: C, labels: q, onAllChipToggle: u, onAllDelete: A }), e[43] = u, e[44] = A, e[45] = q, e[46] = C, e[47] = K) : K = e[47];
87
+ let Q;
88
+ return e[48] !== $ || e[49] !== G || e[50] !== z || e[51] !== N || e[52] !== K || e[53] !== M ? (Q = /* @__PURE__ */ W(oe, { sx: M, ...$, className: "inline", children: [
89
89
  G,
90
+ Z,
91
+ z,
90
92
  N,
91
- $,
92
- H,
93
- X
94
- ] }), e[48] = L, e[49] = G, e[50] = $, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
93
+ K
94
+ ] }), e[48] = $, e[49] = G, e[50] = z, e[51] = N, e[52] = K, e[53] = M, e[54] = Q) : Q = e[54], Q;
95
95
  }
96
- function ut(t) {
97
- const e = F(5), {
98
- data: s,
99
- labels: l,
96
+ function Ft(t) {
97
+ const e = H(5), {
98
+ data: i,
99
+ labels: o,
100
100
  children: n
101
101
  } = t;
102
- if (s.length <= 1)
102
+ if (i.length <= 1)
103
103
  return null;
104
- const r = l?.mode?.title ?? re.options.mode.title;
105
- let i;
106
- e[0] !== r ? (i = /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: be.options.title, className: "inline", children: r }), e[0] = r, e[1] = i) : i = e[1];
107
- let a;
108
- return e[2] !== n || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
109
- i,
104
+ const c = o?.mode?.title ?? xe.options.mode.title;
105
+ let s;
106
+ e[0] !== c ? (s = /* @__PURE__ */ l(ae, { variant: "subtitle2", color: "text.secondary", sx: Be.options.title, className: "inline", children: c }), e[0] = c, e[1] = s) : s = e[1];
107
+ let r;
108
+ return e[2] !== n || e[3] !== s ? (r = /* @__PURE__ */ W(ge, { children: [
109
+ s,
110
110
  n
111
- ] }), e[2] = n, e[3] = i, e[4] = a) : a = e[4], a;
111
+ ] }), e[2] = n, e[3] = s, e[4] = r) : r = e[4], r;
112
112
  }
113
- function Te({
113
+ function Xe({
114
114
  data: t,
115
115
  labels: e
116
116
  }) {
117
- return t.filter((s) => !!s).map((s) => {
118
- const n = (e?.mode?.options ?? re.options.mode.options)[s.value];
119
- return /* @__PURE__ */ o(fe, { title: n, placement: "bottom", children: /* @__PURE__ */ o(ve, { disabled: !!s.disabled, value: s.value, "aria-label": s.value, children: /* @__PURE__ */ o(De, { children: s.icon }) }) }, s.value);
117
+ return t.filter((i) => !!i).map((i) => {
118
+ const n = (e?.mode?.options ?? xe.options.mode.options)[i.value];
119
+ return /* @__PURE__ */ l(Ae, { title: n, placement: "bottom", children: /* @__PURE__ */ l(Ue, { disabled: !!i.disabled, value: i.value, "aria-label": i.value, children: /* @__PURE__ */ l(We, { children: i.icon }) }) }, i.value);
120
120
  });
121
121
  }
122
- function pt(t) {
123
- const e = F(7), {
124
- hasValues: s,
125
- labels: l
122
+ function Zt(t) {
123
+ const e = H(7), {
124
+ hasValues: i,
125
+ labels: o
126
126
  } = t;
127
- if (s)
127
+ if (i)
128
128
  return null;
129
- const n = l?.title ?? re.noData.title, r = l?.description ?? re.noData.description;
130
- let i;
131
- e[0] !== n ? (i = /* @__PURE__ */ o(Q, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = i) : i = e[1];
129
+ const n = o?.title ?? xe.noData.title, c = o?.description ?? xe.noData.description;
130
+ let s;
131
+ e[0] !== n ? (s = /* @__PURE__ */ l(ae, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = s) : s = e[1];
132
+ let r;
133
+ e[2] !== c ? (r = /* @__PURE__ */ l(ae, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = r) : r = e[3];
132
134
  let a;
133
- e[2] !== r ? (a = /* @__PURE__ */ o(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
134
- let c;
135
- return e[4] !== i || e[5] !== a ? (c = /* @__PURE__ */ E(J, { children: [
136
- i,
137
- a
138
- ] }), e[4] = i, e[5] = a, e[6] = c) : c = e[6], c;
135
+ return e[4] !== s || e[5] !== r ? (a = /* @__PURE__ */ W(ge, { children: [
136
+ s,
137
+ r
138
+ ] }), e[4] = s, e[5] = r, e[6] = a) : a = e[6], a;
139
139
  }
140
- function ft(t) {
141
- const e = F(13), {
142
- values: s,
143
- labels: l,
140
+ function jt(t) {
141
+ const e = H(13), {
142
+ values: i,
143
+ labels: o,
144
144
  onAllChipToggle: n,
145
- onAllDelete: r
145
+ onAllDelete: c
146
146
  } = t;
147
- if (s.length <= 1)
147
+ if (i.length <= 1)
148
148
  return null;
149
- const a = s.some(ht) ? l?.toggleAll?.active ?? re.actions.toggleAll.active : l?.toggleAll?.inactive ?? re.actions.toggleAll.inactive, c = l?.deleteAll ?? re.actions.deleteAll;
149
+ const r = i.some(Nt) ? o?.toggleAll?.active ?? xe.actions.toggleAll.active : o?.toggleAll?.inactive ?? xe.actions.toggleAll.inactive, a = o?.deleteAll ?? xe.actions.deleteAll;
150
150
  let m;
151
151
  e[0] !== n ? (m = () => n(), e[0] = n, e[1] = m) : m = e[1];
152
+ let f;
153
+ e[2] !== m || e[3] !== r ? (f = /* @__PURE__ */ l(Te, { color: "inherit", onClick: m, children: r }), e[2] = m, e[3] = r, e[4] = f) : f = e[4];
152
154
  let d;
153
- e[2] !== m || e[3] !== a ? (d = /* @__PURE__ */ o(ye, { color: "inherit", onClick: m, children: a }), e[2] = m, e[3] = a, e[4] = d) : d = e[4];
155
+ e[5] !== c ? (d = () => c(), e[5] = c, e[6] = d) : d = e[6];
156
+ let h;
157
+ e[7] !== a || e[8] !== d ? (h = /* @__PURE__ */ l(Te, { color: "error", onClick: d, children: a }), e[7] = a, e[8] = d, e[9] = h) : h = e[9];
154
158
  let u;
155
- e[5] !== r ? (u = () => r(), e[5] = r, e[6] = u) : u = e[6];
156
- let f;
157
- e[7] !== c || e[8] !== u ? (f = /* @__PURE__ */ o(ye, { color: "error", onClick: u, children: c }), e[7] = c, e[8] = u, e[9] = f) : f = e[9];
158
- let v;
159
- return e[10] !== d || e[11] !== f ? (v = /* @__PURE__ */ E(Y, { children: [
160
- d,
161
- f
162
- ] }), e[10] = d, e[11] = f, e[12] = v) : v = e[12], v;
159
+ return e[10] !== f || e[11] !== h ? (u = /* @__PURE__ */ W(oe, { children: [
160
+ f,
161
+ h
162
+ ] }), e[10] = f, e[11] = h, e[12] = u) : u = e[12], u;
163
163
  }
164
- function ht(t) {
164
+ function Nt(t) {
165
165
  return t.visible;
166
166
  }
167
- function gt(t) {
168
- const e = F(3);
169
- let s;
170
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = s) : s = e[0];
171
- let l;
172
- return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
167
+ const Ee = 18, Gt = {
168
+ display: "flex",
169
+ flexDirection: "row",
170
+ alignItems: "center",
171
+ width: "fit-content",
172
+ gap: ({
173
+ spacing: t
174
+ }) => t(0.5),
175
+ p: ({
176
+ spacing: t
177
+ }) => t(0.5),
178
+ borderRadius: ({
179
+ spacing: t
180
+ }) => t(0.5),
181
+ backgroundColor: ({
182
+ palette: t
183
+ }) => t.background.paper
184
+ }, ct = {
185
+ p: ({
186
+ spacing: t
187
+ }) => t(0.375),
188
+ borderRadius: ({
189
+ spacing: t
190
+ }) => t(0.5),
191
+ ".MuiTouchRipple-ripple .MuiTouchRipple-child": {
192
+ borderRadius: ({
193
+ spacing: t
194
+ }) => t(0.5)
195
+ }
196
+ }, Ht = (t) => ({
197
+ ...ct,
198
+ color: ({
199
+ palette: e
200
+ }) => t ? e.primary.main : e.text.secondary,
201
+ backgroundColor: t ? "rgba(3, 111, 226, 0.08)" : "transparent",
202
+ "&:hover": {
203
+ backgroundColor: ({
204
+ palette: e
205
+ }) => t ? "rgba(3, 111, 226, 0.12)" : e.action.hover
206
+ }
207
+ });
208
+ function jl(t) {
209
+ const e = H(73), {
210
+ type: i,
211
+ label: o,
212
+ locked: n,
213
+ onToggleType: c,
214
+ onRename: s,
215
+ onToggleLock: r,
216
+ onDelete: a,
217
+ labels: m,
218
+ PaperProps: f
219
+ } = t, d = n === void 0 ? !1 : n;
220
+ let h;
221
+ e[0] !== f ? (h = f === void 0 ? {} : f, e[0] = f, e[1] = h) : h = e[1];
222
+ let u, A;
223
+ e[2] !== h ? ({
224
+ sx: A,
225
+ ...u
226
+ } = h, e[2] = h, e[3] = u, e[4] = A) : (u = e[3], A = e[4]);
227
+ const C = Ie(null), x = Ie(!1), [$, B] = ce(null), [k, S] = ce(), [b, I] = ce(o), g = !!$, w = i === "mask" ? m?.toggleType?.draw ?? "Switch to drawing" : m?.toggleType?.mask ?? "Switch to mask", T = m?.rename ?? "Rename", _ = m?.renameInput ?? T, p = d ? m?.lock?.unlock ?? "Unlock" : m?.lock?.lock ?? "Lock", L = m?.delete ?? "Delete";
228
+ let O;
229
+ e[5] !== o ? (O = () => {
230
+ x.current = !1, I(o), S(C.current?.clientWidth), B(C.current);
231
+ }, e[5] = o, e[6] = O) : O = e[6];
232
+ const D = O;
233
+ let v;
234
+ e[7] !== b || e[8] !== o || e[9] !== s ? (v = () => {
235
+ if (!x.current) {
236
+ x.current = !0;
237
+ const re = b.trim();
238
+ re && re !== o && s(re);
239
+ }
240
+ B(null);
241
+ }, e[7] = b, e[8] = o, e[9] = s, e[10] = v) : v = e[10];
242
+ const M = v;
243
+ let P;
244
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = () => {
245
+ x.current = !0, B(null);
246
+ }, e[11] = P) : P = e[11];
247
+ const U = P;
248
+ let E;
249
+ e[12] !== M ? (E = (re) => {
250
+ re.key === "Enter" && (re.preventDefault(), M()), re.key === "Escape" && (re.preventDefault(), U());
251
+ }, e[12] = M, e[13] = E) : E = e[13];
252
+ const y = E;
253
+ let R;
254
+ e[14] !== A ? (R = {
255
+ ...Gt,
256
+ ...A
257
+ }, e[14] = A, e[15] = R) : R = e[15];
258
+ const V = i === "mask", G = i === "mask";
259
+ let Z;
260
+ e[16] !== c || e[17] !== i ? (Z = () => c(i === "mask" ? "draw" : "mask"), e[16] = c, e[17] = i, e[18] = Z) : Z = e[18];
261
+ let F;
262
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ l(We, { component: mt, inheritViewBox: !0, sx: {
263
+ fontSize: Ee
264
+ } }), e[19] = F) : F = e[19];
265
+ let j;
266
+ e[20] !== d || e[21] !== G || e[22] !== Z || e[23] !== V || e[24] !== w ? (j = /* @__PURE__ */ l($e, { label: w, active: V, pressed: G, disabled: d, onClick: Z, icon: F }), e[20] = d, e[21] = G, e[22] = Z, e[23] = V, e[24] = w, e[25] = j) : j = e[25];
267
+ let z;
268
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ l(be, { orientation: "vertical", flexItem: !0 }), e[26] = z) : z = e[26];
269
+ let N;
270
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(We, { component: ft, inheritViewBox: !0, sx: {
271
+ fontSize: Ee
272
+ } }), e[27] = N) : N = e[27];
273
+ let q;
274
+ e[28] !== d || e[29] !== D || e[30] !== T || e[31] !== g ? (q = /* @__PURE__ */ l($e, { label: T, active: g, disabled: d, onClick: D, icon: N }), e[28] = d, e[29] = D, e[30] = T, e[31] = g, e[32] = q) : q = e[32];
275
+ let K;
276
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ l(be, { orientation: "vertical", flexItem: !0 }), e[33] = K) : K = e[33];
277
+ let Q;
278
+ e[34] !== d || e[35] !== r ? (Q = () => r(!d), e[34] = d, e[35] = r, e[36] = Q) : Q = e[36];
279
+ let X;
280
+ e[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ l(Lt, { sx: {
281
+ fontSize: Ee
282
+ } }), e[37] = X) : X = e[37];
283
+ let J;
284
+ e[38] !== p || e[39] !== d || e[40] !== Q ? (J = /* @__PURE__ */ l($e, { label: p, active: d, pressed: d, onClick: Q, icon: X }), e[38] = p, e[39] = d, e[40] = Q, e[41] = J) : J = e[41];
285
+ let ee;
286
+ e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ l(be, { orientation: "vertical", flexItem: !0 }), e[42] = ee) : ee = e[42];
287
+ let te;
288
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ l(Dt, { sx: {
289
+ fontSize: Ee
290
+ } }), e[43] = te) : te = e[43];
291
+ let ie;
292
+ e[44] !== L || e[45] !== d || e[46] !== a ? (ie = /* @__PURE__ */ l($e, { label: L, disabled: d, onClick: a, icon: te, color: "error" }), e[44] = L, e[45] = d, e[46] = a, e[47] = ie) : ie = e[47];
293
+ let le, ne;
294
+ e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = {
295
+ vertical: "bottom",
296
+ horizontal: "left"
297
+ }, ne = {
298
+ vertical: "top",
299
+ horizontal: "left"
300
+ }, e[48] = le, e[49] = ne) : (le = e[48], ne = e[49]);
301
+ let se;
302
+ e[50] !== k ? (se = {
303
+ paper: {
304
+ sx: {
305
+ width: k,
306
+ minWidth: 180
307
+ }
308
+ }
309
+ }, e[50] = k, e[51] = se) : se = e[51];
310
+ let pe;
311
+ e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = {
312
+ p: 1
313
+ }, e[52] = pe) : pe = e[52];
314
+ let ue;
315
+ e[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = (re) => I(re.target.value), e[53] = ue) : ue = e[53];
316
+ let de;
317
+ e[54] !== M || e[55] !== b || e[56] !== y || e[57] !== _ ? (de = /* @__PURE__ */ l(oe, { sx: pe, children: /* @__PURE__ */ l(pt, { inputRef: Yt, fullWidth: !0, label: _, size: "small", variant: "outlined", value: b, onChange: ue, onKeyDown: y, onBlur: M }) }), e[54] = M, e[55] = b, e[56] = y, e[57] = _, e[58] = de) : de = e[58];
318
+ let me;
319
+ e[59] !== $ || e[60] !== M || e[61] !== g || e[62] !== se || e[63] !== de ? (me = /* @__PURE__ */ l(lt, { open: g, anchorEl: $, onClose: M, anchorOrigin: le, transformOrigin: ne, slotProps: se, children: de }), e[59] = $, e[60] = M, e[61] = g, e[62] = se, e[63] = de, e[64] = me) : me = e[64];
320
+ let he;
321
+ return e[65] !== u || e[66] !== j || e[67] !== q || e[68] !== J || e[69] !== ie || e[70] !== me || e[71] !== R ? (he = /* @__PURE__ */ W(Pe, { ref: C, elevation: 6, sx: R, ...u, children: [
322
+ j,
323
+ z,
324
+ q,
325
+ K,
326
+ J,
327
+ ee,
328
+ ie,
329
+ me
330
+ ] }), e[65] = u, e[66] = j, e[67] = q, e[68] = J, e[69] = ie, e[70] = me, e[71] = R, e[72] = he) : he = e[72], he;
173
331
  }
174
- function bt(t) {
175
- const e = F(3);
176
- let s;
177
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = s) : s = e[0];
178
- let l;
179
- return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
332
+ function Yt(t) {
333
+ return t?.focus();
334
+ }
335
+ function $e(t) {
336
+ const e = H(14), {
337
+ label: i,
338
+ icon: o,
339
+ active: n,
340
+ pressed: c,
341
+ disabled: s,
342
+ color: r,
343
+ onClick: a
344
+ } = t, m = n === void 0 ? !1 : n, f = s === void 0 ? !1 : s;
345
+ let d;
346
+ e[0] !== m || e[1] !== r ? (d = r ? ct : Ht(m), e[0] = m, e[1] = r, e[2] = d) : d = e[2];
347
+ let h;
348
+ e[3] !== r || e[4] !== f || e[5] !== o || e[6] !== i || e[7] !== a || e[8] !== c || e[9] !== d ? (h = /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(ve, { "aria-label": i, "aria-pressed": c, disabled: f, color: r, onClick: a, sx: d, children: o }) }), e[3] = r, e[4] = f, e[5] = o, e[6] = i, e[7] = a, e[8] = c, e[9] = d, e[10] = h) : h = e[10];
349
+ let u;
350
+ return e[11] !== i || e[12] !== h ? (u = /* @__PURE__ */ l(Ae, { title: i, placement: "top", children: h }), e[11] = i, e[12] = h, e[13] = u) : u = e[13], u;
180
351
  }
181
- function vt(t) {
182
- const e = F(4);
183
- let s, l;
184
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), l = /* @__PURE__ */ o("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = s, e[1] = l) : (s = e[0], l = e[1]);
352
+ const Kt = {
353
+ display: "flex",
354
+ alignItems: "center",
355
+ justifyContent: "space-between",
356
+ gap: 1,
357
+ p: 2
358
+ }, Xt = {
359
+ borderRadius: ({
360
+ spacing: t
361
+ }) => t(0.5),
362
+ overflow: "hidden",
363
+ backgroundColor: ({
364
+ palette: t
365
+ }) => t.background.default
366
+ }, qt = {
367
+ display: "flex",
368
+ alignItems: "center",
369
+ gap: 1,
370
+ height: 32,
371
+ px: 1.5,
372
+ color: ({
373
+ palette: t
374
+ }) => t.text.secondary
375
+ }, qe = {
376
+ px: 2,
377
+ py: 0.5
378
+ }, Qe = {
379
+ minWidth: 0,
380
+ mr: 1
381
+ };
382
+ function Nl(t) {
383
+ const e = H(90), {
384
+ open: i,
385
+ onClose: o,
386
+ layers: n,
387
+ onApply: c,
388
+ labels: s,
389
+ DialogProps: r
390
+ } = t, a = Mt(), [m, f] = ce(ll), [d, h] = ce(""), [u, A] = ce(!1);
391
+ i !== u && (A(i), i && (f(new Set(n.filter(tl).map(el))), h("")));
392
+ const C = s?.title ?? "Layer Filters", x = s?.description ?? "Select the layers you want to filter with this polygon", $ = s?.allSelected ?? "All selected", B = s?.empty ?? "No layers to filter";
393
+ let k;
394
+ e[0] !== m || e[1] !== n ? (k = n.length > 0 && n.every((Y) => m.has(Y.id)), e[0] = m, e[1] = n, e[2] = k) : k = e[2];
395
+ const S = k;
396
+ let b;
397
+ if (e[3] !== m || e[4] !== n) {
398
+ let Y;
399
+ e[6] !== m ? (Y = (Le) => m.has(Le.id), e[6] = m, e[7] = Y) : Y = e[7], b = n.some(Y), e[3] = m, e[4] = n, e[5] = b;
400
+ } else
401
+ b = e[5];
402
+ const I = b;
403
+ let g;
404
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (Y) => f((Le) => {
405
+ const Oe = new Set(Le);
406
+ return Oe.has(Y) ? Oe.delete(Y) : Oe.add(Y), Oe;
407
+ }), e[8] = g) : g = e[8];
408
+ const w = g;
409
+ let T;
410
+ e[9] !== S || e[10] !== n ? (T = () => f(S ? /* @__PURE__ */ new Set() : new Set(n.map(Jt))), e[9] = S, e[10] = n, e[11] = T) : T = e[11];
411
+ const _ = T;
412
+ let p;
413
+ e[12] !== m || e[13] !== n || e[14] !== c || e[15] !== o ? (p = () => {
414
+ c(n.filter((Y) => m.has(Y.id)).map(Qt)), o();
415
+ }, e[12] = m, e[13] = n, e[14] = c, e[15] = o, e[16] = p) : p = e[16];
416
+ const L = p;
417
+ let O;
418
+ if (e[17] !== n || e[18] !== d) {
419
+ const Y = d.trim().toLowerCase();
420
+ O = Y ? n.filter((Le) => Le.label.toLowerCase().includes(Y)) : n, e[17] = n, e[18] = d, e[19] = O;
421
+ } else
422
+ O = e[19];
423
+ const D = O;
424
+ let v;
425
+ e[20] !== C ? (v = /* @__PURE__ */ l(ae, { variant: "subtitle1", fontWeight: 500, children: C }), e[20] = C, e[21] = v) : v = e[21];
426
+ let M;
427
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(Ge, { fontSize: "small" }), e[22] = M) : M = e[22];
428
+ let P;
429
+ e[23] !== o ? (P = /* @__PURE__ */ l(ve, { "aria-label": "close", size: "small", onClick: o, children: M }), e[23] = o, e[24] = P) : P = e[24];
430
+ let U;
431
+ e[25] !== v || e[26] !== P ? (U = /* @__PURE__ */ W(nt, { component: "div", sx: Kt, children: [
432
+ v,
433
+ P
434
+ ] }), e[25] = v, e[26] = P, e[27] = U) : U = e[27];
435
+ let E;
436
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
437
+ pt: 1,
438
+ px: 2,
439
+ pb: 3
440
+ }, e[28] = E) : E = e[28];
441
+ let y;
442
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
443
+ mb: 2
444
+ }, e[29] = y) : y = e[29];
445
+ let R;
446
+ e[30] !== x ? (R = /* @__PURE__ */ l(ae, { variant: "body2", color: "text.secondary", sx: y, children: x }), e[30] = x, e[31] = R) : R = e[31];
447
+ let V;
448
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ l(Pt, { sx: {
449
+ fontSize: 18
450
+ } }), e[32] = V) : V = e[32];
451
+ const G = s?.search ?? "Search layers", Z = s?.search ?? "Search layers";
452
+ let F;
453
+ e[33] !== Z ? (F = {
454
+ "aria-label": Z
455
+ }, e[33] = Z, e[34] = F) : F = e[34];
456
+ let j, z;
457
+ e[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = (Y) => h(Y.target.value), z = {
458
+ fontSize: 13,
459
+ color: "text.primary"
460
+ }, e[35] = j, e[36] = z) : (j = e[35], z = e[36]);
461
+ let N;
462
+ e[37] !== d || e[38] !== G || e[39] !== F ? (N = /* @__PURE__ */ W(oe, { sx: qt, children: [
463
+ V,
464
+ /* @__PURE__ */ l(ut, { fullWidth: !0, placeholder: G, inputProps: F, value: d, onChange: j, sx: z })
465
+ ] }), e[37] = d, e[38] = G, e[39] = F, e[40] = N) : N = e[40];
466
+ let q;
467
+ e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ l(be, {}), e[41] = q) : q = e[41];
468
+ let K;
469
+ e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = {
470
+ maxHeight: 240,
471
+ overflowY: "auto",
472
+ "& .MuiDivider-root": {
473
+ my: 0
474
+ }
475
+ }, e[42] = K) : K = e[42];
476
+ let Q;
477
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
478
+ p: 0.5
479
+ }, e[43] = Q) : Q = e[43];
480
+ const X = !S && I, J = `${a}-all`;
481
+ let ee;
482
+ e[44] !== J ? (ee = {
483
+ "aria-labelledby": J
484
+ }, e[44] = J, e[45] = ee) : ee = e[45];
485
+ let te;
486
+ e[46] !== S || e[47] !== X || e[48] !== ee ? (te = /* @__PURE__ */ l(je, { sx: Qe, children: /* @__PURE__ */ l(Ye, { edge: "start", tabIndex: -1, disableRipple: !0, sx: Q, checked: S, indeterminate: X, inputProps: ee }) }), e[46] = S, e[47] = X, e[48] = ee, e[49] = te) : te = e[49];
487
+ const ie = `${a}-all`;
488
+ let le;
489
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = {
490
+ variant: "body2"
491
+ }, e[50] = le) : le = e[50];
492
+ let ne;
493
+ e[51] !== $ || e[52] !== ie ? (ne = /* @__PURE__ */ l(Me, { id: ie, primary: $, primaryTypographyProps: le }), e[51] = $, e[52] = ie, e[53] = ne) : ne = e[53];
494
+ let se;
495
+ e[54] !== te || e[55] !== ne || e[56] !== _ ? (se = /* @__PURE__ */ W(He, { dense: !0, sx: qe, onClick: _, children: [
496
+ te,
497
+ ne
498
+ ] }), e[54] = te, e[55] = ne, e[56] = _, e[57] = se) : se = e[57];
499
+ let pe;
500
+ e[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = /* @__PURE__ */ l(be, {}), e[58] = pe) : pe = e[58];
501
+ let ue;
502
+ e[59] !== m || e[60] !== B || e[61] !== D || e[62] !== a ? (ue = D.length === 0 ? /* @__PURE__ */ l(ae, { variant: "body2", color: "text.secondary", sx: {
503
+ p: 2
504
+ }, children: B }) : D.map((Y) => /* @__PURE__ */ W(He, { dense: !0, sx: qe, onClick: () => w(Y.id), children: [
505
+ /* @__PURE__ */ l(je, { sx: Qe, children: /* @__PURE__ */ l(Ye, { edge: "start", tabIndex: -1, disableRipple: !0, sx: {
506
+ p: 0.5
507
+ }, checked: m.has(Y.id), inputProps: {
508
+ "aria-labelledby": `${a}-${Y.id}`
509
+ } }) }),
510
+ /* @__PURE__ */ l(Me, { id: `${a}-${Y.id}`, primary: Y.label, primaryTypographyProps: {
511
+ variant: "body2",
512
+ noWrap: !0,
513
+ title: Y.label
514
+ } })
515
+ ] }, Y.id)), e[59] = m, e[60] = B, e[61] = D, e[62] = a, e[63] = ue) : ue = e[63];
516
+ let de;
517
+ e[64] !== se || e[65] !== ue ? (de = /* @__PURE__ */ W(it, { component: "div", role: "list", disablePadding: !0, sx: K, children: [
518
+ se,
519
+ pe,
520
+ ue
521
+ ] }), e[64] = se, e[65] = ue, e[66] = de) : de = e[66];
522
+ let me;
523
+ e[67] !== N || e[68] !== de ? (me = /* @__PURE__ */ W(oe, { sx: Xt, children: [
524
+ N,
525
+ q,
526
+ de
527
+ ] }), e[67] = N, e[68] = de, e[69] = me) : me = e[69];
528
+ let he;
529
+ e[70] !== R || e[71] !== me ? (he = /* @__PURE__ */ W(st, { sx: E, children: [
530
+ R,
531
+ me
532
+ ] }), e[70] = R, e[71] = me, e[72] = he) : he = e[72];
533
+ let re;
534
+ e[73] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
535
+ p: 2
536
+ }, e[73] = re) : re = e[73];
537
+ const ze = s?.cancel ?? "Cancel";
538
+ let _e;
539
+ e[74] !== o || e[75] !== ze ? (_e = /* @__PURE__ */ l(Te, { onClick: o, children: ze }), e[74] = o, e[75] = ze, e[76] = _e) : _e = e[76];
540
+ const Ve = s?.apply ?? "Apply";
541
+ let Ce;
542
+ e[77] !== L || e[78] !== Ve ? (Ce = /* @__PURE__ */ l(Te, { variant: "contained", onClick: L, children: Ve }), e[77] = L, e[78] = Ve, e[79] = Ce) : Ce = e[79];
543
+ let we;
544
+ e[80] !== _e || e[81] !== Ce ? (we = /* @__PURE__ */ W(rt, { sx: re, children: [
545
+ _e,
546
+ Ce
547
+ ] }), e[80] = _e, e[81] = Ce, e[82] = we) : we = e[82];
548
+ let Re;
549
+ return e[83] !== r || e[84] !== o || e[85] !== i || e[86] !== U || e[87] !== he || e[88] !== we ? (Re = /* @__PURE__ */ W(ot, { open: i, onClose: o, maxWidth: "xs", fullWidth: !0, ...r, children: [
550
+ U,
551
+ he,
552
+ we
553
+ ] }), e[83] = r, e[84] = o, e[85] = i, e[86] = U, e[87] = he, e[88] = we, e[89] = Re) : Re = e[89], Re;
554
+ }
555
+ function Qt(t) {
556
+ return t.id;
557
+ }
558
+ function Jt(t) {
559
+ return t.id;
560
+ }
561
+ function el(t) {
562
+ return t.id;
563
+ }
564
+ function tl(t) {
565
+ return t.checked;
566
+ }
567
+ function ll() {
568
+ return /* @__PURE__ */ new Set();
569
+ }
570
+ function ol(t) {
571
+ const e = H(3);
572
+ let i;
573
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = i) : i = e[0];
574
+ let o;
575
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
576
+ }
577
+ function nl(t) {
578
+ const e = H(3);
579
+ let i;
580
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = i) : i = e[0];
581
+ let o;
582
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
583
+ }
584
+ function il(t) {
585
+ const e = H(4);
586
+ let i, o;
587
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = i, e[1] = o) : (i = e[0], o = e[1]);
185
588
  let n;
186
- return e[2] !== t ? (n = /* @__PURE__ */ E("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
187
- s,
188
- l
589
+ return e[2] !== t ? (n = /* @__PURE__ */ W("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
590
+ i,
591
+ o
189
592
  ] }), e[2] = t, e[3] = n) : n = e[3], n;
190
593
  }
191
- const oe = {
594
+ const ye = {
192
595
  action: {
193
596
  tooltip: {
194
597
  active: "Click on the map to start measuring",
@@ -240,7 +643,7 @@ const oe = {
240
643
  }
241
644
  }
242
645
  }
243
- }, yt = {
646
+ }, sl = {
244
647
  "m-km": {
245
648
  short: "m-km"
246
649
  },
@@ -268,17 +671,17 @@ const oe = {
268
671
  feet: {
269
672
  short: "ft"
270
673
  }
271
- }, xt = {
674
+ }, rl = {
272
675
  distance: {
273
- icon: /* @__PURE__ */ o(gt, {})
676
+ icon: /* @__PURE__ */ l(ol, {})
274
677
  },
275
678
  buffer: {
276
- icon: /* @__PURE__ */ o(bt, {})
679
+ icon: /* @__PURE__ */ l(nl, {})
277
680
  },
278
681
  area: {
279
- icon: /* @__PURE__ */ o(vt, {})
682
+ icon: /* @__PURE__ */ l(il, {})
280
683
  }
281
- }, K = {
684
+ }, fe = {
282
685
  container: {
283
686
  display: "flex",
284
687
  flexDirection: "row",
@@ -344,7 +747,7 @@ const oe = {
344
747
  }) => t.primary.main,
345
748
  backgroundColor: ({
346
749
  palette: t
347
- }) => $e(t.primary.main, 0.08)
750
+ }) => ht(t.primary.main, 0.08)
348
751
  },
349
752
  modal: {
350
753
  toggle: {
@@ -403,315 +806,322 @@ const oe = {
403
806
  }
404
807
  }
405
808
  }
406
- }, St = {};
407
- function oo(t) {
408
- const e = F(44), {
409
- enabled: s,
410
- actionProps: l,
809
+ }, al = {};
810
+ function Gl(t) {
811
+ const e = H(44), {
812
+ enabled: i,
813
+ actionProps: o,
411
814
  labels: n,
412
- modes: r,
413
- modesMapping: i,
414
- unitsMapping: a,
415
- modeSelected: c,
815
+ modes: c,
816
+ modesMapping: s,
817
+ unitsMapping: r,
818
+ modeSelected: a,
416
819
  PaperProps: m,
417
- units: d,
418
- unitSelected: u,
419
- onActionToggle: f,
420
- onChangeMode: v,
421
- onChangeUnit: w
422
- } = t, h = n === void 0 ? oe : n, g = i === void 0 ? xt : i, L = a === void 0 ? yt : a, M = m === void 0 ? St : m;
423
- let C, y;
424
- e[0] !== M ? ({
425
- sx: y,
426
- ...C
427
- } = M, e[0] = M, e[1] = C, e[2] = y) : (C = e[1], y = e[2]);
428
- let x;
429
- e[3] !== f ? (x = ($) => f(!!$), e[3] = f, e[4] = x) : x = e[4];
430
- const k = x;
820
+ units: f,
821
+ unitSelected: d,
822
+ onActionToggle: h,
823
+ onChangeMode: u,
824
+ onChangeUnit: A
825
+ } = t, C = n === void 0 ? ye : n, x = s === void 0 ? rl : s, $ = r === void 0 ? sl : r, B = m === void 0 ? al : m;
826
+ let k, S;
827
+ e[0] !== B ? ({
828
+ sx: S,
829
+ ...k
830
+ } = B, e[0] = B, e[1] = k, e[2] = S) : (k = e[1], S = e[2]);
431
831
  let b;
432
- e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
433
- const _ = b, T = (c ?? "") in _;
434
- let S;
435
- e[8] !== _ || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(_)[0], e[8] = _, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
436
- const p = S, I = _[p], D = d[p];
437
- let O;
438
- e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
439
- [p]: D.slice(0, 1)
440
- }, e[12] = p, e[13] = D, e[14] = d, e[15] = O) : O = e[15];
441
- const P = O[p];
442
- let R;
443
- if (e[16] !== P || e[17] !== L) {
444
- let $;
445
- e[19] !== L ? ($ = (H) => ({
446
- ...H,
447
- ...L[H.value]
448
- }), e[19] = L, e[20] = $) : $ = e[20], R = P.map($), e[16] = P, e[17] = L, e[18] = R;
832
+ e[3] !== h ? (b = (z) => h(!!z), e[3] = h, e[4] = b) : b = e[4];
833
+ const I = b;
834
+ let g;
835
+ e[5] !== c || e[6] !== x ? (g = Ne(c, x), e[5] = c, e[6] = x, e[7] = g) : g = e[7];
836
+ const w = g, T = (a ?? "") in w;
837
+ let _;
838
+ e[8] !== w || e[9] !== T || e[10] !== a ? (_ = T ? a : Object.keys(w)[0], e[8] = w, e[9] = T, e[10] = a, e[11] = _) : _ = e[11];
839
+ const p = _, L = w[p], O = f[p];
840
+ let D;
841
+ e[12] !== p || e[13] !== O || e[14] !== f ? (D = Object.keys(f).length >= 1 ? f : {
842
+ [p]: O.slice(0, 1)
843
+ }, e[12] = p, e[13] = O, e[14] = f, e[15] = D) : D = e[15];
844
+ const M = D[p];
845
+ let P;
846
+ if (e[16] !== M || e[17] !== $) {
847
+ let z;
848
+ e[19] !== $ ? (z = (N) => ({
849
+ ...N,
850
+ ...$[N.value]
851
+ }), e[19] = $, e[20] = z) : z = e[20], P = M.map(z), e[16] = M, e[17] = $, e[18] = P;
449
852
  } else
450
- R = e[18];
451
- const V = R;
853
+ P = e[18];
854
+ const U = P;
855
+ let E;
856
+ e[21] !== S ? (E = {
857
+ ...fe.container,
858
+ ...S
859
+ }, e[21] = S, e[22] = E) : E = e[22];
860
+ const y = C?.action, R = L?.icon;
861
+ let V;
862
+ e[23] !== o || e[24] !== i || e[25] !== I || e[26] !== y || e[27] !== R ? (V = /* @__PURE__ */ l(cl, { actionProps: o, labels: y, enabled: i, onActionToggle: I, children: R }), e[23] = o, e[24] = i, e[25] = I, e[26] = y, e[27] = R, e[28] = V) : V = e[28];
863
+ const G = C?.options;
452
864
  let Z;
453
- e[21] !== y ? (Z = {
454
- ...K.container,
455
- ...y
456
- }, e[21] = y, e[22] = Z) : Z = e[22];
457
- const A = h?.action, B = I?.icon;
458
- let W;
459
- e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ o(Ct, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: B }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
460
- const G = h?.options;
461
- let N;
462
- e[29] !== V || e[30] !== _ || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== G || e[35] !== u ? (N = /* @__PURE__ */ o(_t, { labels: G, modes: _, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = _, e[31] = p, e[32] = v, e[33] = w, e[34] = G, e[35] = u, e[36] = N) : N = e[36];
865
+ e[29] !== U || e[30] !== w || e[31] !== p || e[32] !== u || e[33] !== A || e[34] !== G || e[35] !== d ? (Z = /* @__PURE__ */ l(dl, { labels: G, modes: w, modeSelected: p, units: U, unitSelected: d, onChangeMode: u, onChangeUnit: A }), e[29] = U, e[30] = w, e[31] = p, e[32] = u, e[33] = A, e[34] = G, e[35] = d, e[36] = Z) : Z = e[36];
866
+ let F;
867
+ e[37] !== V || e[38] !== Z ? (F = /* @__PURE__ */ W(oe, { children: [
868
+ V,
869
+ Z
870
+ ] }), e[37] = V, e[38] = Z, e[39] = F) : F = e[39];
463
871
  let j;
464
- e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
465
- W,
466
- N
467
- ] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
468
- let z;
469
- return e[40] !== C || e[41] !== Z || e[42] !== j ? (z = /* @__PURE__ */ o(Se, { sx: Z, ...C, children: j }), e[40] = C, e[41] = Z, e[42] = j, e[43] = z) : z = e[43], z;
872
+ return e[40] !== k || e[41] !== E || e[42] !== F ? (j = /* @__PURE__ */ l(Pe, { sx: E, ...k, children: F }), e[40] = k, e[41] = E, e[42] = F, e[43] = j) : j = e[43], j;
470
873
  }
471
- function Ct(t) {
472
- const e = F(12), {
473
- actionProps: s,
474
- labels: l,
874
+ function cl(t) {
875
+ const e = H(12), {
876
+ actionProps: i,
877
+ labels: o,
475
878
  enabled: n,
476
- children: r,
477
- onActionToggle: i
478
- } = t, a = n ? "active" : "inactive", c = l?.tooltip?.[a] ?? oe.action.tooltip[a], m = s?.TooltipProps;
479
- let d;
480
- e[0] !== n || e[1] !== i ? (d = () => i(!n), e[0] = n, e[1] = i, e[2] = d) : d = e[2];
481
- let u;
482
- e[3] !== c || e[4] !== r || e[5] !== n || e[6] !== d ? (u = /* @__PURE__ */ o(ve, { value: "toggle", sx: K.actions.icon, onClick: d, "aria-label": c, selected: n, children: r }), e[3] = c, e[4] = r, e[5] = n, e[6] = d, e[7] = u) : u = e[7];
879
+ children: c,
880
+ onActionToggle: s
881
+ } = t, r = n ? "active" : "inactive", a = o?.tooltip?.[r] ?? ye.action.tooltip[r], m = i?.TooltipProps;
483
882
  let f;
484
- return e[8] !== c || e[9] !== m || e[10] !== u ? (f = /* @__PURE__ */ o(fe, { title: c, placement: "right", ...m, children: u }), e[8] = c, e[9] = m, e[10] = u, e[11] = f) : f = e[11], f;
883
+ e[0] !== n || e[1] !== s ? (f = () => s(!n), e[0] = n, e[1] = s, e[2] = f) : f = e[2];
884
+ let d;
885
+ e[3] !== a || e[4] !== c || e[5] !== n || e[6] !== f ? (d = /* @__PURE__ */ l(Ue, { value: "toggle", sx: fe.actions.icon, onClick: f, "aria-label": a, selected: n, children: c }), e[3] = a, e[4] = c, e[5] = n, e[6] = f, e[7] = d) : d = e[7];
886
+ let h;
887
+ return e[8] !== a || e[9] !== m || e[10] !== d ? (h = /* @__PURE__ */ l(Ae, { title: a, placement: "right", ...m, children: d }), e[8] = a, e[9] = m, e[10] = d, e[11] = h) : h = e[11], h;
485
888
  }
486
- function _t(t) {
487
- const e = F(41), {
488
- modes: s,
489
- modeSelected: l,
889
+ function dl(t) {
890
+ const e = H(41), {
891
+ modes: i,
892
+ modeSelected: o,
490
893
  units: n,
491
- unitSelected: r,
492
- labels: i,
493
- onChangeMode: a,
494
- onChangeUnit: c
495
- } = t, [m, d] = se(null), [u, f] = se(!1);
496
- let v;
497
- e[0] !== s ? (v = Object.values(s), e[0] = s, e[1] = v) : v = e[1];
498
- const w = v;
499
- let h;
500
- e[2] !== n ? (h = Object.values(n), e[2] = n, e[3] = h) : h = e[3];
501
- const g = h;
502
- if (!(w.length > 1 || g.length > 1))
503
- return null;
504
- const M = !!m;
894
+ unitSelected: c,
895
+ labels: s,
896
+ onChangeMode: r,
897
+ onChangeUnit: a
898
+ } = t, [m, f] = ce(null), [d, h] = ce(!1);
899
+ let u;
900
+ e[0] !== i ? (u = Object.values(i), e[0] = i, e[1] = u) : u = e[1];
901
+ const A = u;
505
902
  let C;
506
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = ($) => {
507
- d($.currentTarget);
508
- }, e[4] = C) : C = e[4];
509
- const y = C;
510
- let x;
511
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
512
- d(null);
513
- }, e[5] = x) : x = e[5];
514
- const k = x;
903
+ e[2] !== n ? (C = Object.values(n), e[2] = n, e[3] = C) : C = e[3];
904
+ const x = C;
905
+ if (!(A.length > 1 || x.length > 1))
906
+ return null;
907
+ const B = !!m;
908
+ let k;
909
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (z) => {
910
+ f(z.currentTarget);
911
+ }, e[4] = k) : k = e[4];
912
+ const S = k;
515
913
  let b;
516
- e[6] !== a ? (b = ($, H) => {
517
- $.preventDefault(), a(H.value), k();
518
- }, e[6] = a, e[7] = b) : b = e[7];
519
- const _ = b;
914
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
915
+ f(null);
916
+ }, e[5] = b) : b = e[5];
917
+ const I = b;
918
+ let g;
919
+ e[6] !== r ? (g = (z, N) => {
920
+ z.preventDefault(), r(N.value), I();
921
+ }, e[6] = r, e[7] = g) : g = e[7];
922
+ const w = g;
520
923
  let T;
521
924
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
522
- f(!0);
925
+ h(!0);
523
926
  }, e[8] = T) : T = e[8];
524
- const S = T;
927
+ const _ = T;
525
928
  let p;
526
929
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
527
- f(!1);
930
+ h(!1);
528
931
  }, e[9] = p) : p = e[9];
529
- const I = p;
530
- let D;
531
- e[10] !== c ? (D = ($) => {
532
- I(), c($);
533
- }, e[10] = c, e[11] = D) : D = e[11];
534
- const O = D, U = i?.mode?.title ?? oe.options.mode.title, P = i?.units?.title ?? oe.options.units.title, R = w.length > 1 && g.length > 1;
535
- let V;
536
- e[12] !== r || e[13] !== n ? (V = n.find(($) => $.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
537
- const Z = V;
538
- let A;
539
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(ie, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
540
- let B;
541
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
932
+ const L = p;
933
+ let O;
934
+ e[10] !== a ? (O = (z) => {
935
+ L(), a(z);
936
+ }, e[10] = a, e[11] = O) : O = e[11];
937
+ const D = O, v = s?.mode?.title ?? ye.options.mode.title, M = s?.units?.title ?? ye.options.units.title, P = A.length > 1 && x.length > 1;
938
+ let U;
939
+ e[12] !== c || e[13] !== n ? (U = n.find((z) => z.value === c) ?? n[0], e[12] = c, e[13] = n, e[14] = U) : U = e[14];
940
+ const E = U;
941
+ let y;
942
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ l(ve, { sx: fe.options.icon, onClick: S, children: /* @__PURE__ */ l(Rt, {}) }), e[15] = y) : y = e[15];
943
+ let R;
944
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
542
945
  "aria-labelledby": "basic-button",
543
- sx: K.options.menu
544
- }, e[16] = B) : B = e[16];
545
- let W;
546
- e[17] !== _ || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
547
- /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: K.options.title, children: U }),
548
- w.map(($) => {
549
- const ee = (i?.mode?.options ?? oe.options.mode.options)[$.value];
550
- return /* @__PURE__ */ E(Me, { onClick: (X) => _(X, $), selected: $.value === l, children: [
551
- /* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: $.icon }) }),
552
- /* @__PURE__ */ o(xe, { children: ee })
553
- ] }, $.value);
946
+ sx: fe.options.menu
947
+ }, e[16] = R) : R = e[16];
948
+ let V;
949
+ e[17] !== w || e[18] !== s?.mode?.options || e[19] !== o || e[20] !== v || e[21] !== A ? (V = A.length > 1 && /* @__PURE__ */ W(ge, { children: [
950
+ /* @__PURE__ */ l(ae, { variant: "subtitle2", color: "text.secondary", sx: fe.options.title, children: v }),
951
+ A.map((z) => {
952
+ const q = (s?.mode?.options ?? ye.options.mode.options)[z.value];
953
+ return /* @__PURE__ */ W(Ke, { onClick: (K) => w(K, z), selected: z.value === o, children: [
954
+ /* @__PURE__ */ l(je, { sx: fe.options.icons, children: /* @__PURE__ */ l(We, { children: z.icon }) }),
955
+ /* @__PURE__ */ l(Me, { children: q })
956
+ ] }, z.value);
554
957
  })
555
- ] }), e[17] = _, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
958
+ ] }), e[17] = w, e[18] = s?.mode?.options, e[19] = o, e[20] = v, e[21] = A, e[22] = V) : V = e[22];
556
959
  let G;
557
- e[23] !== R ? (G = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = G) : G = e[24];
558
- let N;
559
- e[25] !== O || e[26] !== i || e[27] !== u || e[28] !== Z || e[29] !== P || e[30] !== n || e[31] !== g.length ? (N = g.length > 1 && /* @__PURE__ */ E(J, { children: [
560
- /* @__PURE__ */ E(Me, { onClick: S, children: [
561
- /* @__PURE__ */ o(xe, { children: P }),
562
- /* @__PURE__ */ o(Q, { variant: "caption", fontWeight: 500, sx: K.options.tag, children: Z.short })
960
+ e[23] !== P ? (G = P && /* @__PURE__ */ l(be, {}), e[23] = P, e[24] = G) : G = e[24];
961
+ let Z;
962
+ e[25] !== D || e[26] !== s || e[27] !== d || e[28] !== E || e[29] !== M || e[30] !== n || e[31] !== x.length ? (Z = x.length > 1 && /* @__PURE__ */ W(ge, { children: [
963
+ /* @__PURE__ */ W(Ke, { onClick: _, children: [
964
+ /* @__PURE__ */ l(Me, { children: M }),
965
+ /* @__PURE__ */ l(ae, { variant: "caption", fontWeight: 500, sx: fe.options.tag, children: E.short })
563
966
  ] }),
564
- /* @__PURE__ */ o(wt, { open: u, labels: i, units: n, unitSelectedValue: Z, onClose: I, onSubmit: O })
565
- ] }), e[25] = O, e[26] = i, e[27] = u, e[28] = Z, e[29] = P, e[30] = n, e[31] = g.length, e[32] = N) : N = e[32];
566
- let j;
567
- e[33] !== W || e[34] !== G || e[35] !== N ? (j = /* @__PURE__ */ E("div", { children: [
568
- W,
967
+ /* @__PURE__ */ l(ml, { open: d, labels: s, units: n, unitSelectedValue: E, onClose: L, onSubmit: D })
968
+ ] }), e[25] = D, e[26] = s, e[27] = d, e[28] = E, e[29] = M, e[30] = n, e[31] = x.length, e[32] = Z) : Z = e[32];
969
+ let F;
970
+ e[33] !== V || e[34] !== G || e[35] !== Z ? (F = /* @__PURE__ */ W("div", { children: [
971
+ V,
569
972
  G,
570
- N
571
- ] }), e[33] = W, e[34] = G, e[35] = N, e[36] = j) : j = e[36];
572
- let z;
573
- return e[37] !== m || e[38] !== M || e[39] !== j ? (z = /* @__PURE__ */ E(J, { children: [
574
- A,
575
- /* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: B, children: j })
576
- ] }), e[37] = m, e[38] = M, e[39] = j, e[40] = z) : z = e[40], z;
973
+ Z
974
+ ] }), e[33] = V, e[34] = G, e[35] = Z, e[36] = F) : F = e[36];
975
+ let j;
976
+ return e[37] !== m || e[38] !== B || e[39] !== F ? (j = /* @__PURE__ */ W(ge, { children: [
977
+ y,
978
+ /* @__PURE__ */ l(gt, { id: "measurement-menu", anchorEl: m, open: B, onClose: I, MenuListProps: R, children: F })
979
+ ] }), e[37] = m, e[38] = B, e[39] = F, e[40] = j) : j = e[40], j;
577
980
  }
578
- function wt(t) {
579
- const e = F(48), {
580
- open: s,
581
- labels: l,
981
+ function ml(t) {
982
+ const e = H(48), {
983
+ open: i,
984
+ labels: o,
582
985
  units: n,
583
- unitSelectedValue: r,
584
- onClose: i,
585
- onSubmit: a
586
- } = t, [c, m] = se("metric");
587
- let d;
588
- if (e[0] !== c || e[1] !== n) {
589
- let A;
590
- e[3] !== c ? (A = (B) => B.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
591
- } else
592
- d = e[2];
593
- const u = d;
986
+ unitSelectedValue: c,
987
+ onClose: s,
988
+ onSubmit: r
989
+ } = t, [a, m] = ce("metric");
594
990
  let f;
595
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, B) => {
596
- m(B);
597
- }, e[5] = f) : f = e[5];
598
- const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, C = r.system === c ? r : u[0];
599
- let y;
600
- e[6] !== a ? (y = {
991
+ if (e[0] !== a || e[1] !== n) {
992
+ let y;
993
+ e[3] !== a ? (y = (R) => R.system === a, e[3] = a, e[4] = y) : y = e[4], f = n.filter(y), e[0] = a, e[1] = n, e[2] = f;
994
+ } else
995
+ f = e[2];
996
+ const d = f;
997
+ let h;
998
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (y, R) => {
999
+ m(R);
1000
+ }, e[5] = h) : h = e[5];
1001
+ const u = h, A = o?.units?.modal?.options ?? ye.options.units.modal.options, C = A[a].options, x = o?.units?.modal?.title ?? ye.options.units.modal.title, $ = o?.units?.modal?.subtitle ?? ye.options.units.modal.subtitle, B = o?.units?.modal?.apply ?? ye.options.units.modal.apply, k = c.system === a ? c : d[0];
1002
+ let S;
1003
+ e[6] !== r ? (S = {
601
1004
  component: "form",
602
- onSubmit: (A) => {
603
- A.preventDefault();
604
- const B = new FormData(A.currentTarget);
605
- a(B.get("unit-value"));
1005
+ onSubmit: (y) => {
1006
+ y.preventDefault();
1007
+ const R = new FormData(y.currentTarget);
1008
+ r(R.get("unit-value"));
606
1009
  }
607
- }, e[6] = a, e[7] = y) : y = e[7];
608
- let x;
609
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(Oe, {}), e[8] = x) : x = e[8];
610
- let k;
611
- e[9] !== i ? (k = /* @__PURE__ */ o(ie, { onClick: i, children: x }), e[9] = i, e[10] = k) : k = e[10];
1010
+ }, e[6] = r, e[7] = S) : S = e[7];
612
1011
  let b;
613
- e[11] !== g || e[12] !== k ? (b = /* @__PURE__ */ E(Ze, { sx: K.options.modal.title, children: [
614
- g,
615
- k
616
- ] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
617
- let _;
618
- e[14] !== L ? (_ = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = _) : _ = e[15];
1012
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ l(Ge, {}), e[8] = b) : b = e[8];
1013
+ let I;
1014
+ e[9] !== s ? (I = /* @__PURE__ */ l(ve, { onClick: s, children: b }), e[9] = s, e[10] = I) : I = e[10];
1015
+ let g;
1016
+ e[11] !== x || e[12] !== I ? (g = /* @__PURE__ */ W(nt, { sx: fe.options.modal.title, children: [
1017
+ x,
1018
+ I
1019
+ ] }), e[11] = x, e[12] = I, e[13] = g) : g = e[13];
1020
+ let w;
1021
+ e[14] !== $ ? (w = /* @__PURE__ */ l(ae, { sx: fe.options.modal.subtitle, children: $ }), e[14] = $, e[15] = w) : w = e[15];
619
1022
  let T;
620
- e[16] !== w.metric.title ? (T = /* @__PURE__ */ o(ve, { value: "metric", children: w.metric.title }), e[16] = w.metric.title, e[17] = T) : T = e[17];
621
- let S;
622
- e[18] !== w.imperial.title ? (S = /* @__PURE__ */ o(ve, { value: "imperial", children: w.imperial.title }), e[18] = w.imperial.title, e[19] = S) : S = e[19];
1023
+ e[16] !== A.metric.title ? (T = /* @__PURE__ */ l(Ue, { value: "metric", children: A.metric.title }), e[16] = A.metric.title, e[17] = T) : T = e[17];
1024
+ let _;
1025
+ e[18] !== A.imperial.title ? (_ = /* @__PURE__ */ l(Ue, { value: "imperial", children: A.imperial.title }), e[18] = A.imperial.title, e[19] = _) : _ = e[19];
623
1026
  let p;
624
- e[20] !== c || e[21] !== T || e[22] !== S ? (p = /* @__PURE__ */ E(Ie, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: v, "aria-label": "system", sx: K.options.modal.toggle, children: [
1027
+ e[20] !== a || e[21] !== T || e[22] !== _ ? (p = /* @__PURE__ */ W(tt, { color: "primary", value: a, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: fe.options.modal.toggle, children: [
625
1028
  T,
626
- S
627
- ] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
628
- const I = C?.value, D = C?.value;
629
- let O;
630
- if (e[24] !== u || e[25] !== h) {
631
- let A;
632
- e[27] !== h ? (A = (B) => {
633
- const W = h[B.value];
634
- return /* @__PURE__ */ o(We, { value: B.value, control: /* @__PURE__ */ o(je, {}), label: W }, B.value);
635
- }, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
1029
+ _
1030
+ ] }), e[20] = a, e[21] = T, e[22] = _, e[23] = p) : p = e[23];
1031
+ const L = k?.value, O = k?.value;
1032
+ let D;
1033
+ if (e[24] !== d || e[25] !== C) {
1034
+ let y;
1035
+ e[27] !== C ? (y = (R) => {
1036
+ const V = C[R.value];
1037
+ return /* @__PURE__ */ l(bt, { value: R.value, control: /* @__PURE__ */ l(vt, {}), label: V }, R.value);
1038
+ }, e[27] = C, e[28] = y) : y = e[28], D = d.map(y), e[24] = d, e[25] = C, e[26] = D;
636
1039
  } else
637
- O = e[26];
638
- let U;
639
- e[29] !== D || e[30] !== O ? (U = /* @__PURE__ */ o(Fe, { "aria-labelledby": "unit-value", defaultValue: D, name: "unit-value", sx: K.options.modal.optionsGroup, children: O }), e[29] = D, e[30] = O, e[31] = U) : U = e[31];
1040
+ D = e[26];
1041
+ let v;
1042
+ e[29] !== O || e[30] !== D ? (v = /* @__PURE__ */ l(yt, { "aria-labelledby": "unit-value", defaultValue: O, name: "unit-value", sx: fe.options.modal.optionsGroup, children: D }), e[29] = O, e[30] = D, e[31] = v) : v = e[31];
1043
+ let M;
1044
+ e[32] !== L || e[33] !== v ? (M = /* @__PURE__ */ l(xt, { children: v }, L), e[32] = L, e[33] = v, e[34] = M) : M = e[34];
640
1045
  let P;
641
- e[32] !== I || e[33] !== U ? (P = /* @__PURE__ */ o(Ne, { children: U }, I), e[32] = I, e[33] = U, e[34] = P) : P = e[34];
642
- let R;
643
- e[35] !== p || e[36] !== P || e[37] !== _ ? (R = /* @__PURE__ */ E(Ge, { sx: K.options.modal.content, children: [
644
- _,
1046
+ e[35] !== p || e[36] !== M || e[37] !== w ? (P = /* @__PURE__ */ W(st, { sx: fe.options.modal.content, children: [
1047
+ w,
645
1048
  p,
646
- P
647
- ] }), e[35] = p, e[36] = P, e[37] = _, e[38] = R) : R = e[38];
648
- let V;
649
- e[39] !== M ? (V = /* @__PURE__ */ o(ze, { sx: K.options.modal.actions, children: /* @__PURE__ */ o(ye, { variant: "contained", type: "submit", children: M }) }), e[39] = M, e[40] = V) : V = e[40];
650
- let Z;
651
- return e[41] !== i || e[42] !== s || e[43] !== R || e[44] !== V || e[45] !== y || e[46] !== b ? (Z = /* @__PURE__ */ E(He, { open: s, component: Y, onClose: i, maxWidth: "xs", PaperProps: y, children: [
652
- b,
653
- R,
654
- V
655
- ] }), e[41] = i, e[42] = s, e[43] = R, e[44] = V, e[45] = y, e[46] = b, e[47] = Z) : Z = e[47], Z;
1049
+ M
1050
+ ] }), e[35] = p, e[36] = M, e[37] = w, e[38] = P) : P = e[38];
1051
+ let U;
1052
+ e[39] !== B ? (U = /* @__PURE__ */ l(rt, { sx: fe.options.modal.actions, children: /* @__PURE__ */ l(Te, { variant: "contained", type: "submit", children: B }) }), e[39] = B, e[40] = U) : U = e[40];
1053
+ let E;
1054
+ return e[41] !== s || e[42] !== i || e[43] !== P || e[44] !== U || e[45] !== S || e[46] !== g ? (E = /* @__PURE__ */ W(ot, { open: i, component: oe, onClose: s, maxWidth: "xs", PaperProps: S, children: [
1055
+ g,
1056
+ P,
1057
+ U
1058
+ ] }), e[41] = s, e[42] = i, e[43] = P, e[44] = U, e[45] = S, e[46] = g, e[47] = E) : E = e[47], E;
656
1059
  }
657
- const Mt = {
1060
+ const fl = {
658
1061
  enabled: "Show your current location",
659
1062
  disabled: "Location unavailable"
660
- }, Tt = "geolocation";
661
- function lo(t) {
662
- const e = F(25), {
663
- disabled: s,
664
- labels: l,
1063
+ }, pl = "geolocation";
1064
+ function Hl(t) {
1065
+ const e = H(27), {
1066
+ disabled: i,
1067
+ labels: o,
665
1068
  PaperProps: n,
666
- TooltipProps: r,
667
- watch: i,
668
- onChange: a,
669
- onError: c
670
- } = t, m = Le(null), d = "geolocation" in navigator, [u, f] = ot(At, d);
671
- let v, w;
672
- e[0] !== c ? (v = () => (d && navigator.permissions.query({
1069
+ TooltipProps: c,
1070
+ watch: s,
1071
+ onChange: r,
1072
+ onError: a
1073
+ } = t, m = Ie(null), f = "geolocation" in navigator, [d, h] = It(ul, f);
1074
+ let u;
1075
+ e[0] !== a ? (u = (v) => {
1076
+ a?.(v);
1077
+ }, e[0] = a, e[1] = u) : u = e[1];
1078
+ const A = At(u);
1079
+ let C;
1080
+ e[2] !== A ? (C = () => (f && navigator.permissions.query({
673
1081
  name: "geolocation"
674
- }).then((D) => {
675
- f(D.state === "granted" ? "granted" : "denied"), D.onchange = () => {
676
- f(D.state === "granted" ? "granted" : "denied");
1082
+ }).then((v) => {
1083
+ h(v.state === "granted" ? "granted" : "denied"), v.onchange = () => {
1084
+ h(v.state === "granted" ? "granted" : "denied");
677
1085
  };
678
- }).catch((D) => {
679
- f("denied"), c?.(D);
1086
+ }).catch((v) => {
1087
+ h("denied"), A(v);
680
1088
  }), () => {
681
1089
  m.current && navigator.geolocation.clearWatch(m.current);
682
- }), w = [d, c], e[0] = c, e[1] = v, e[2] = w) : (v = e[1], w = e[2]), Pe(v, w);
683
- let h;
684
- e[3] !== a ? (h = (D) => {
685
- a(D.coords);
686
- }, e[3] = a, e[4] = h) : h = e[4];
687
- const g = h;
688
- let L;
689
- e[5] !== c ? (L = (D) => {
690
- f("denied"), c?.(D);
691
- }, e[5] = c, e[6] = L) : L = e[6];
692
- const M = L;
693
- let C;
694
- e[7] !== M || e[8] !== g || e[9] !== i ? (C = () => {
695
- if (m.current && navigator.geolocation.clearWatch(m.current), i) {
696
- m.current = navigator.geolocation.watchPosition(g, M);
1090
+ }), e[2] = A, e[3] = C) : C = e[3];
1091
+ let x;
1092
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = [f], e[4] = x) : x = e[4], at(C, x);
1093
+ let $;
1094
+ e[5] !== r ? ($ = (v) => {
1095
+ r(v.coords);
1096
+ }, e[5] = r, e[6] = $) : $ = e[6];
1097
+ const B = $;
1098
+ let k;
1099
+ e[7] !== a ? (k = (v) => {
1100
+ h("denied"), a?.(v);
1101
+ }, e[7] = a, e[8] = k) : k = e[8];
1102
+ const S = k;
1103
+ let b;
1104
+ e[9] !== S || e[10] !== B || e[11] !== s ? (b = () => {
1105
+ if (m.current && navigator.geolocation.clearWatch(m.current), s) {
1106
+ m.current = navigator.geolocation.watchPosition(B, S);
697
1107
  return;
698
1108
  }
699
- navigator.geolocation.getCurrentPosition(g, M);
700
- }, e[7] = M, e[8] = g, e[9] = i, e[10] = C) : C = e[10];
701
- const y = C, k = (l?.tooltip ?? Mt)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? Tt, _ = !d || s;
702
- let T;
703
- e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
704
- let S;
705
- e[13] !== y || e[14] !== b || e[15] !== _ || e[16] !== T ? (S = /* @__PURE__ */ o(ie, { onClick: y, "aria-label": b, disabled: _, children: T }), e[13] = y, e[14] = b, e[15] = _, e[16] = T, e[17] = S) : S = e[17];
1109
+ navigator.geolocation.getCurrentPosition(B, S);
1110
+ }, e[9] = S, e[10] = B, e[11] = s, e[12] = b) : b = e[12];
1111
+ const I = b, w = (o?.tooltip ?? fl)[d ? "enabled" : "disabled"], T = o?.ariaLabel ?? pl, _ = !f || i;
706
1112
  let p;
707
- e[18] !== r || e[19] !== S || e[20] !== k ? (p = /* @__PURE__ */ o(fe, { arrow: !0, placement: "right", title: k, ...r, children: S }), e[18] = r, e[19] = S, e[20] = k, e[21] = p) : p = e[21];
708
- let I;
709
- return e[22] !== n || e[23] !== p ? (I = /* @__PURE__ */ o(Se, { ...n, children: p }), e[22] = n, e[23] = p, e[24] = I) : I = e[24], I;
1113
+ e[13] !== d ? (p = d ? /* @__PURE__ */ l(Ot, {}) : /* @__PURE__ */ l(Et, {}), e[13] = d, e[14] = p) : p = e[14];
1114
+ let L;
1115
+ e[15] !== I || e[16] !== p || e[17] !== T || e[18] !== _ ? (L = /* @__PURE__ */ l(ve, { onClick: I, "aria-label": T, disabled: _, children: p }), e[15] = I, e[16] = p, e[17] = T, e[18] = _, e[19] = L) : L = e[19];
1116
+ let O;
1117
+ e[20] !== c || e[21] !== L || e[22] !== w ? (O = /* @__PURE__ */ l(Ae, { arrow: !0, placement: "right", title: w, ...c, children: L }), e[20] = c, e[21] = L, e[22] = w, e[23] = O) : O = e[23];
1118
+ let D;
1119
+ return e[24] !== n || e[25] !== O ? (D = /* @__PURE__ */ l(Pe, { ...n, children: O }), e[24] = n, e[25] = O, e[26] = D) : D = e[26], D;
710
1120
  }
711
- function At(t, e) {
1121
+ function ul(t, e) {
712
1122
  return e === "granted";
713
1123
  }
714
- const _e = {
1124
+ const Ze = {
715
1125
  zoom: {
716
1126
  position: "relative",
717
1127
  height: ({
@@ -743,180 +1153,180 @@ const _e = {
743
1153
  position: "absolute"
744
1154
  }
745
1155
  };
746
- function no(t) {
747
- const e = F(40), {
748
- zoom: s,
749
- disabled: l,
1156
+ function Yl(t) {
1157
+ const e = H(40), {
1158
+ zoom: i,
1159
+ disabled: o,
750
1160
  direction: n,
751
- reverse: r,
752
- isLoading: i,
753
- maxZoom: a,
754
- minZoom: c,
1161
+ reverse: c,
1162
+ isLoading: s,
1163
+ maxZoom: r,
1164
+ minZoom: a,
755
1165
  PaperProps: m,
756
- ResetViewProps: d,
757
- showZoom: u,
758
- onChange: f,
759
- onReset: v
760
- } = t, w = n === void 0 ? "vertical" : n, h = r === void 0 ? !1 : r, g = a === void 0 ? 24 : a, L = c === void 0 ? 0 : c;
761
- let M;
762
- e[0] !== d ? (M = d === void 0 ? {
763
- Icon: st
764
- } : d, e[0] = d, e[1] = M) : M = e[1];
765
- const C = M, y = u === void 0 ? !0 : u;
766
- let x;
767
- e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
768
- const B = Math.min(g, s + 1);
769
- f(B);
770
- }, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
771
- const k = x;
1166
+ ResetViewProps: f,
1167
+ showZoom: d,
1168
+ onChange: h,
1169
+ onReset: u
1170
+ } = t, A = n === void 0 ? "vertical" : n, C = c === void 0 ? !1 : c, x = r === void 0 ? 24 : r, $ = a === void 0 ? 0 : a;
1171
+ let B;
1172
+ e[0] !== f ? (B = f === void 0 ? {
1173
+ Icon: $t
1174
+ } : f, e[0] = f, e[1] = B) : B = e[1];
1175
+ const k = B, S = d === void 0 ? !0 : d;
772
1176
  let b;
773
- e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
774
- const B = Math.max(L, s - 1);
775
- f(B);
776
- }, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
777
- const _ = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
778
- let p = w === "vertical" ? "column" : "row";
779
- h && (p = p + "-reverse");
780
- let I;
781
- e[10] !== p ? (I = {
782
- ..._e.paper,
1177
+ e[2] !== x || e[3] !== h || e[4] !== i ? (b = () => {
1178
+ const R = Math.min(x, i + 1);
1179
+ h(R);
1180
+ }, e[2] = x, e[3] = h, e[4] = i, e[5] = b) : b = e[5];
1181
+ const I = b;
1182
+ let g;
1183
+ e[6] !== $ || e[7] !== h || e[8] !== i ? (g = () => {
1184
+ const R = Math.max($, i - 1);
1185
+ h(R);
1186
+ }, e[6] = $, e[7] = h, e[8] = i, e[9] = g) : g = e[9];
1187
+ const w = g, T = Math.floor(i), _ = A === "vertical" ? "horizontal" : "vertical";
1188
+ let p = A === "vertical" ? "column" : "row";
1189
+ C && (p = p + "-reverse");
1190
+ let L;
1191
+ e[10] !== p ? (L = {
1192
+ ...Ze.paper,
783
1193
  flexDirection: p
784
- }, e[10] = p, e[11] = I) : I = e[11];
785
- let D;
786
- e[12] !== C || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
787
- /* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(C.Icon, {}) }),
788
- /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
789
- ] }), e[12] = C, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
1194
+ }, e[10] = p, e[11] = L) : L = e[11];
790
1195
  let O;
791
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
792
- let U;
793
- e[18] !== l || e[19] !== k ? (U = /* @__PURE__ */ o(ie, { onClick: k, "aria-label": "Increase zoom", disabled: l, children: O }), e[18] = l, e[19] = k, e[20] = U) : U = e[20];
1196
+ e[12] !== k || e[13] !== o || e[14] !== _ || e[15] !== u ? (O = u && /* @__PURE__ */ W(ge, { children: [
1197
+ /* @__PURE__ */ l(ve, { onClick: u, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(k.Icon, {}) }),
1198
+ /* @__PURE__ */ l(be, { orientation: _, flexItem: !0 })
1199
+ ] }), e[12] = k, e[13] = o, e[14] = _, e[15] = u, e[16] = O) : O = e[16];
1200
+ let D;
1201
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(Bt, {}), e[17] = D) : D = e[17];
1202
+ let v;
1203
+ e[18] !== o || e[19] !== I ? (v = /* @__PURE__ */ l(ve, { onClick: I, "aria-label": "Increase zoom", disabled: o, children: D }), e[18] = o, e[19] = I, e[20] = v) : v = e[20];
1204
+ let M;
1205
+ e[21] !== _ ? (M = /* @__PURE__ */ l(be, { orientation: _, flexItem: !0 }), e[21] = _, e[22] = M) : M = e[22];
794
1206
  let P;
795
- e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
796
- let R;
797
- e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
798
- /* @__PURE__ */ E(Y, { sx: _e.zoom, children: [
799
- /* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
800
- i && /* @__PURE__ */ o(Ye, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
1207
+ e[23] !== T || e[24] !== _ || e[25] !== s || e[26] !== S ? (P = S && /* @__PURE__ */ W(ge, { children: [
1208
+ /* @__PURE__ */ W(oe, { sx: Ze.zoom, children: [
1209
+ /* @__PURE__ */ l(ae, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
1210
+ s && /* @__PURE__ */ l(St, { sx: Ze.circularProgress, variant: "indeterminate", size: 24 })
801
1211
  ] }),
802
- /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
803
- ] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
804
- let V;
805
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
806
- let Z;
807
- e[29] !== _ || e[30] !== l ? (Z = /* @__PURE__ */ o(ie, { onClick: _, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = _, e[30] = l, e[31] = Z) : Z = e[31];
808
- let A;
809
- return e[32] !== m || e[33] !== I || e[34] !== D || e[35] !== U || e[36] !== P || e[37] !== R || e[38] !== Z ? (A = /* @__PURE__ */ E(Se, { sx: I, ...m, children: [
810
- D,
811
- U,
1212
+ /* @__PURE__ */ l(be, { orientation: _, flexItem: !0 })
1213
+ ] }), e[23] = T, e[24] = _, e[25] = s, e[26] = S, e[27] = P) : P = e[27];
1214
+ let U;
1215
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ l(Ut, {}), e[28] = U) : U = e[28];
1216
+ let E;
1217
+ e[29] !== w || e[30] !== o ? (E = /* @__PURE__ */ l(ve, { onClick: w, "aria-label": "Decrease zoom", disabled: o, children: U }), e[29] = w, e[30] = o, e[31] = E) : E = e[31];
1218
+ let y;
1219
+ return e[32] !== m || e[33] !== L || e[34] !== O || e[35] !== v || e[36] !== M || e[37] !== P || e[38] !== E ? (y = /* @__PURE__ */ W(Pe, { sx: L, ...m, children: [
1220
+ O,
1221
+ v,
1222
+ M,
812
1223
  P,
813
- R,
814
- Z
815
- ] }), e[32] = m, e[33] = I, e[34] = D, e[35] = U, e[36] = P, e[37] = R, e[38] = Z, e[39] = A) : A = e[39], A;
1224
+ E
1225
+ ] }), e[32] = m, e[33] = L, e[34] = O, e[35] = v, e[36] = M, e[37] = P, e[38] = E, e[39] = y) : y = e[39], y;
816
1226
  }
817
- function kt(t) {
818
- const e = F(4), {
819
- length: s
820
- } = t, l = s === void 0 ? 5 : s;
1227
+ function hl(t) {
1228
+ const e = H(4), {
1229
+ length: i
1230
+ } = t, o = i === void 0 ? 5 : i;
821
1231
  let n;
822
- e[0] !== l ? (n = new Array(l).fill(null).map(Dt), e[0] = l, e[1] = n) : n = e[1];
823
- let r;
824
- return e[2] !== n ? (r = /* @__PURE__ */ o(Y, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = r) : r = e[3], r;
1232
+ e[0] !== o ? (n = new Array(o).fill(null).map(gl), e[0] = o, e[1] = n) : n = e[1];
1233
+ let c;
1234
+ return e[2] !== n ? (c = /* @__PURE__ */ l(oe, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = c) : c = e[3], c;
825
1235
  }
826
- function Dt(t, e) {
827
- return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
828
- /* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
829
- /* @__PURE__ */ o(Ce, { width: Ot(e) ? 72 : 48, height: 20 }),
830
- /* @__PURE__ */ o(Ce, { width: 48, height: 8 })
1236
+ function gl(t, e) {
1237
+ return /* @__PURE__ */ W(De, { container: !0, spacing: 1, children: [
1238
+ /* @__PURE__ */ W(De, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1239
+ /* @__PURE__ */ l(Fe, { width: xl(e) ? 72 : 48, height: 20 }),
1240
+ /* @__PURE__ */ l(Fe, { width: 48, height: 8 })
831
1241
  ] }),
832
- /* @__PURE__ */ o(Ce, { sx: {
833
- height: Pt,
834
- marginTop: Lt,
835
- marginBottom: It,
1242
+ /* @__PURE__ */ l(Fe, { sx: {
1243
+ height: yl,
1244
+ marginTop: vl,
1245
+ marginBottom: bl,
836
1246
  width: "100%"
837
1247
  } })
838
1248
  ] }, `skeleton-${e}`);
839
1249
  }
840
- function It(t) {
1250
+ function bl(t) {
841
1251
  const {
842
1252
  spacing: e
843
1253
  } = t;
844
1254
  return e(1.75);
845
1255
  }
846
- function Lt(t) {
1256
+ function vl(t) {
847
1257
  const {
848
1258
  spacing: e
849
1259
  } = t;
850
1260
  return e(1.25);
851
1261
  }
852
- function Pt(t) {
1262
+ function yl(t) {
853
1263
  const {
854
1264
  spacing: e
855
1265
  } = t;
856
1266
  return e(0.5);
857
1267
  }
858
- function Ot(t) {
1268
+ function xl(t) {
859
1269
  return t % 2 === 1;
860
1270
  }
861
- function Et(t) {
862
- const e = F(13), {
863
- title: s,
864
- body: l,
1271
+ function Sl(t) {
1272
+ const e = H(13), {
1273
+ title: i,
1274
+ body: o,
865
1275
  severity: n
866
- } = t, r = s === void 0 ? "No data available" : s, i = l === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : l;
1276
+ } = t, c = i === void 0 ? "No data available" : i, s = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
867
1277
  if (n) {
1278
+ let f;
1279
+ e[0] !== s ? (f = /* @__PURE__ */ l(Je, { children: s }), e[0] = s, e[1] = f) : f = e[1];
868
1280
  let d;
869
- e[0] !== i ? (d = /* @__PURE__ */ o(Ae, { children: i }), e[0] = i, e[1] = d) : d = e[1];
870
- let u;
871
- return e[2] !== n || e[3] !== d || e[4] !== r ? (u = /* @__PURE__ */ o(Xe, { title: r, severity: n, children: d }), e[2] = n, e[3] = d, e[4] = r, e[5] = u) : u = e[5], u;
1281
+ return e[2] !== n || e[3] !== f || e[4] !== c ? (d = /* @__PURE__ */ l(_t, { title: c, severity: n, children: f }), e[2] = n, e[3] = f, e[4] = c, e[5] = d) : d = e[5], d;
872
1282
  }
1283
+ let r;
1284
+ e[6] !== c ? (r = c && /* @__PURE__ */ l(ae, { variant: "body2", children: c }), e[6] = c, e[7] = r) : r = e[7];
873
1285
  let a;
874
- e[6] !== r ? (a = r && /* @__PURE__ */ o(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
875
- let c;
876
- e[8] !== i ? (c = /* @__PURE__ */ o(Ae, { color: "textSecondary", children: i }), e[8] = i, e[9] = c) : c = e[9];
1286
+ e[8] !== s ? (a = /* @__PURE__ */ l(Je, { color: "textSecondary", children: s }), e[8] = s, e[9] = a) : a = e[9];
877
1287
  let m;
878
- return e[10] !== a || e[11] !== c ? (m = /* @__PURE__ */ E(Y, { children: [
879
- a,
880
- c
881
- ] }), e[10] = a, e[11] = c, e[12] = m) : m = e[12], m;
1288
+ return e[10] !== r || e[11] !== a ? (m = /* @__PURE__ */ W(oe, { children: [
1289
+ r,
1290
+ a
1291
+ ] }), e[10] = r, e[11] = a, e[12] = m) : m = e[12], m;
882
1292
  }
883
- function Ae(t) {
884
- const e = F(5), {
885
- color: s,
886
- children: l
1293
+ function Je(t) {
1294
+ const e = H(5), {
1295
+ color: i,
1296
+ children: o
887
1297
  } = t;
888
- if (l) {
889
- const r = s ?? "inherit";
890
- let i;
891
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1298
+ if (o) {
1299
+ const c = i ?? "inherit";
1300
+ let s;
1301
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
892
1302
  fontWeight: "normal"
893
- }, e[0] = i) : i = e[0];
894
- let a;
895
- return e[1] !== l || e[2] !== r ? (a = /* @__PURE__ */ o(Y, { mt: 0.5, children: /* @__PURE__ */ o(Q, { component: "div", variant: "caption", color: r, style: i, children: l }) }), e[1] = l, e[2] = r, e[3] = a) : a = e[3], a;
1303
+ }, e[0] = s) : s = e[0];
1304
+ let r;
1305
+ return e[1] !== o || e[2] !== c ? (r = /* @__PURE__ */ l(oe, { mt: 0.5, children: /* @__PURE__ */ l(ae, { component: "div", variant: "caption", color: c, style: s, children: o }) }), e[1] = o, e[2] = c, e[3] = r) : r = e[3], r;
896
1306
  }
897
1307
  let n;
898
- return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ o(Y, { mt: -1 }), e[4] = n) : n = e[4], n;
1308
+ return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l(oe, { mt: -1 }), e[4] = n) : n = e[4], n;
899
1309
  }
900
- function Rt(t) {
901
- const e = F(2);
902
- let s;
903
- e[0] !== t ? (s = () => t ? 1 : 0, e[0] = t, e[1] = s) : s = e[1];
904
- const [l, n] = se(s);
905
- return t && l === 0 && n(1), !t && l === 1 && n(2), l === 1;
1310
+ function _l(t) {
1311
+ const e = H(2);
1312
+ let i;
1313
+ e[0] !== t ? (i = () => t ? 1 : 0, e[0] = t, e[1] = i) : i = e[1];
1314
+ const [o, n] = ce(i);
1315
+ return t && o === 0 && n(1), !t && o === 1 && n(2), o === 1;
906
1316
  }
907
- const ke = {
1317
+ const et = {
908
1318
  overflow: "hidden",
909
1319
  textOverflow: "ellipsis",
910
1320
  whiteSpace: "nowrap"
911
- }, me = {
1321
+ }, ke = {
912
1322
  label: {
913
1323
  "& .MuiListItemText-primary": {
914
- ...ke
1324
+ ...et
915
1325
  }
916
1326
  },
917
1327
  value: {
918
1328
  "& .MuiListItemText-primary": {
919
- ...ke,
1329
+ ...et,
920
1330
  textAlign: "right"
921
1331
  }
922
1332
  },
@@ -942,72 +1352,72 @@ const ke = {
942
1352
  opacity: 0.5,
943
1353
  pointerEvents: "none"
944
1354
  }
945
- }, Bt = {
1355
+ }, Cl = {
946
1356
  showMore: "Show More",
947
1357
  showLess: "Show Less"
948
- }, $t = [];
949
- function io(t) {
950
- const e = F(32), {
951
- data: s,
952
- isLoading: l,
1358
+ }, wl = [];
1359
+ function Kl(t) {
1360
+ const e = H(32), {
1361
+ data: i,
1362
+ isLoading: o,
953
1363
  maxItems: n,
954
- labels: r,
955
- showDivider: i,
956
- selectedItemId: a,
957
- tooltipProps: c,
1364
+ labels: c,
1365
+ showDivider: s,
1366
+ selectedItemId: r,
1367
+ tooltipProps: a,
958
1368
  onExpand: m,
959
- onItemClick: d
960
- } = t, u = s === void 0 ? $t : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? Bt : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = Rt(f);
961
- let C;
962
- e[0] !== u || e[1] !== v || e[2] !== g ? (C = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = C) : C = e[3];
963
- const y = C;
964
- let x;
965
- e[4] !== m || e[5] !== g ? (x = () => {
966
- L(!g), m?.(g);
967
- }, e[4] = m, e[5] = g, e[6] = x) : x = e[6];
968
- const k = x;
969
- if (M) {
1369
+ onItemClick: f
1370
+ } = t, d = i === void 0 ? wl : i, h = o === void 0 ? !1 : o, u = n === void 0 ? 5 : n, A = c === void 0 ? Cl : c, C = s === void 0 ? !0 : s, [x, $] = ce(!1), B = _l(h);
1371
+ let k;
1372
+ e[0] !== d || e[1] !== u || e[2] !== x ? (k = x ? d : d.slice(0, u), e[0] = d, e[1] = u, e[2] = x, e[3] = k) : k = e[3];
1373
+ const S = k;
1374
+ let b;
1375
+ e[4] !== m || e[5] !== x ? (b = () => {
1376
+ $(!x), m?.(x);
1377
+ }, e[4] = m, e[5] = x, e[6] = b) : b = e[6];
1378
+ const I = b;
1379
+ if (B) {
970
1380
  let p;
971
- return e[7] !== v ? (p = /* @__PURE__ */ o(kt, { length: v }), e[7] = v, e[8] = p) : p = e[8], p;
1381
+ return e[7] !== u ? (p = /* @__PURE__ */ l(hl, { length: u }), e[7] = u, e[8] = p) : p = e[8], p;
972
1382
  }
973
- if (y.length === 0) {
1383
+ if (S.length === 0) {
974
1384
  let p;
975
- return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Et, {}), e[9] = p) : p = e[9], p;
1385
+ return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ l(Sl, {}), e[9] = p) : p = e[9], p;
976
1386
  }
977
- let b;
978
- if (e[10] !== y || e[11] !== d || e[12] !== a || e[13] !== h || e[14] !== c) {
1387
+ let g;
1388
+ if (e[10] !== S || e[11] !== f || e[12] !== r || e[13] !== C || e[14] !== a) {
979
1389
  let p;
980
- e[16] !== d || e[17] !== a || e[18] !== h || e[19] !== c ? (p = (I) => /* @__PURE__ */ o(ct, { followCursor: !1, placement: "top", arrow: !0, title: I.tooltipTitle, enterDelay: 10, ...c, children: (D) => {
1390
+ e[16] !== f || e[17] !== r || e[18] !== C || e[19] !== a ? (p = (L) => /* @__PURE__ */ l(Wt, { followCursor: !1, placement: "top", arrow: !0, title: L.tooltipTitle, enterDelay: 10, ...a, children: (O) => {
981
1391
  const {
982
- ref: O
983
- } = D;
984
- return /* @__PURE__ */ o(qe, { ref: O, role: "listitem", sx: {
985
- ...h && me.showDivider,
986
- ...d && me.clickable,
987
- ...a === I.id && me.selected,
988
- ...I.disabled && me.disabled
1392
+ ref: D
1393
+ } = O;
1394
+ return /* @__PURE__ */ l(Ct, { ref: D, role: "listitem", sx: {
1395
+ ...C && ke.showDivider,
1396
+ ...f && ke.clickable,
1397
+ ...r === L.id && ke.selected,
1398
+ ...L.disabled && ke.disabled
989
1399
  }, onClick: () => {
990
- I.disabled || d?.(I);
991
- }, children: /* @__PURE__ */ E(pe, { container: !0, alignItems: "center", children: [
992
- /* @__PURE__ */ o(pe, { item: !0, xs: 8, children: /* @__PURE__ */ o(xe, { primary: I.label, sx: me.label }) }),
993
- /* @__PURE__ */ o(pe, { item: !0, xs: 4, children: /* @__PURE__ */ o(xe, { primary: I.value, sx: me.value }) })
1400
+ L.disabled || f?.(L);
1401
+ }, children: /* @__PURE__ */ W(De, { container: !0, alignItems: "center", children: [
1402
+ /* @__PURE__ */ l(De, { item: !0, xs: 8, children: /* @__PURE__ */ l(Me, { primary: L.label, sx: ke.label }) }),
1403
+ /* @__PURE__ */ l(De, { item: !0, xs: 4, children: /* @__PURE__ */ l(Me, { primary: L.value, sx: ke.value }) })
994
1404
  ] }) });
995
- } }, I.id), e[16] = d, e[17] = a, e[18] = h, e[19] = c, e[20] = p) : p = e[20], b = y.map(p), e[10] = y, e[11] = d, e[12] = a, e[13] = h, e[14] = c, e[15] = b;
1405
+ } }, L.id), e[16] = f, e[17] = r, e[18] = C, e[19] = a, e[20] = p) : p = e[20], g = S.map(p), e[10] = S, e[11] = f, e[12] = r, e[13] = C, e[14] = a, e[15] = g;
996
1406
  } else
997
- b = e[15];
998
- let _;
999
- e[21] !== b ? (_ = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = _) : _ = e[22];
1407
+ g = e[15];
1408
+ let w;
1409
+ e[21] !== g ? (w = /* @__PURE__ */ l(it, { id: "expandable-list", role: "list", children: g }), e[21] = g, e[22] = w) : w = e[22];
1000
1410
  let T;
1001
- e[23] !== u.length || e[24] !== k || e[25] !== w || e[26] !== v || e[27] !== g ? (T = u.length > v && /* @__PURE__ */ o(Y, { my: 2, children: /* @__PURE__ */ o(ye, { onClick: k, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? w.showLess : w.showMore }) }), e[23] = u.length, e[24] = k, e[25] = w, e[26] = v, e[27] = g, e[28] = T) : T = e[28];
1002
- let S;
1003
- return e[29] !== T || e[30] !== _ ? (S = /* @__PURE__ */ E(J, { children: [
1004
- _,
1411
+ e[23] !== d.length || e[24] !== I || e[25] !== A || e[26] !== u || e[27] !== x ? (T = d.length > u && /* @__PURE__ */ l(oe, { my: 2, children: /* @__PURE__ */ l(Te, { onClick: I, variant: "text", color: "primary", "aria-expanded": x, "aria-controls": "expandable-list", children: x ? A.showLess : A.showMore }) }), e[23] = d.length, e[24] = I, e[25] = A, e[26] = u, e[27] = x, e[28] = T) : T = e[28];
1412
+ let _;
1413
+ return e[29] !== T || e[30] !== w ? (_ = /* @__PURE__ */ W(ge, { children: [
1414
+ w,
1005
1415
  T
1006
- ] }), e[29] = T, e[30] = _, e[31] = S) : S = e[31], S;
1416
+ ] }), e[29] = T, e[30] = w, e[31] = _) : _ = e[31], _;
1007
1417
  }
1008
- const Ut = 288, ae = {
1418
+ const kl = 288, Se = {
1009
1419
  root: {
1010
- width: Ut,
1420
+ width: kl,
1011
1421
  overflow: "auto"
1012
1422
  },
1013
1423
  toggle: {
@@ -1106,7 +1516,7 @@ const Ut = 288, ae = {
1106
1516
  }) => t.primary.main
1107
1517
  }
1108
1518
  }
1109
- }, Vt = {
1519
+ }, Tl = {
1110
1520
  toggle: {
1111
1521
  title: "Toggle basemaps controls"
1112
1522
  },
@@ -1117,223 +1527,268 @@ const Ut = 288, ae = {
1117
1527
  }
1118
1528
  }
1119
1529
  };
1120
- function Zt(t) {
1121
- const e = F(6), {
1122
- isMobile: s,
1123
- labels: l,
1530
+ function Ml(t) {
1531
+ const e = H(6), {
1532
+ isMobile: i,
1533
+ labels: o,
1124
1534
  onChangeCollapsed: n
1125
- } = t, r = s === void 0 ? !1 : s;
1126
- let i;
1127
- e[0] !== r || e[1] !== l || e[2] !== n ? (i = r && /* @__PURE__ */ E(J, { children: [
1128
- /* @__PURE__ */ o(Q, { variant: "caption", flexGrow: 1, children: l.title }),
1129
- /* @__PURE__ */ o(fe, { title: l.actions.close, children: /* @__PURE__ */ o(ie, { size: "small", onClick: n, "aria-label": l.actions.close, children: /* @__PURE__ */ o(Oe, {}) }) })
1130
- ] }), e[0] = r, e[1] = l, e[2] = n, e[3] = i) : i = e[3];
1131
- let a;
1132
- return e[4] !== i ? (a = /* @__PURE__ */ o(Y, { sx: ae.header, children: i }), e[4] = i, e[5] = a) : a = e[5], a;
1535
+ } = t, c = i === void 0 ? !1 : i;
1536
+ let s;
1537
+ e[0] !== c || e[1] !== o || e[2] !== n ? (s = c && /* @__PURE__ */ W(ge, { children: [
1538
+ /* @__PURE__ */ l(ae, { variant: "caption", flexGrow: 1, children: o.title }),
1539
+ /* @__PURE__ */ l(Ae, { title: o.actions.close, children: /* @__PURE__ */ l(ve, { size: "small", onClick: n, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Ge, {}) }) })
1540
+ ] }), e[0] = c, e[1] = o, e[2] = n, e[3] = s) : s = e[3];
1541
+ let r;
1542
+ return e[4] !== s ? (r = /* @__PURE__ */ l(oe, { sx: Se.header, children: s }), e[4] = s, e[5] = r) : r = e[5], r;
1133
1543
  }
1134
- function Wt(t) {
1135
- const e = F(5), {
1136
- title: s,
1137
- children: l,
1544
+ function Il(t) {
1545
+ const e = H(5), {
1546
+ title: i,
1547
+ children: o,
1138
1548
  collapsed: n
1139
1549
  } = t;
1140
1550
  if (n === void 0 ? !1 : n)
1141
- return l;
1142
- let i;
1143
- e[0] !== s ? (i = /* @__PURE__ */ o(Q, { variant: "caption", color: "textSecondary", sx: ae.groupWrapper.content, children: s }), e[0] = s, e[1] = i) : i = e[1];
1144
- let a;
1145
- return e[2] !== l || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
1146
- i,
1147
- l
1148
- ] }), e[2] = l, e[3] = i, e[4] = a) : a = e[4], a;
1551
+ return o;
1552
+ let s;
1553
+ e[0] !== i ? (s = /* @__PURE__ */ l(ae, { variant: "caption", color: "textSecondary", sx: Se.groupWrapper.content, children: i }), e[0] = i, e[1] = s) : s = e[1];
1554
+ let r;
1555
+ return e[2] !== o || e[3] !== s ? (r = /* @__PURE__ */ W(ge, { children: [
1556
+ s,
1557
+ o
1558
+ ] }), e[2] = o, e[3] = s, e[4] = r) : r = e[4], r;
1149
1559
  }
1150
- function jt(t) {
1151
- const e = F(9), {
1152
- values: s,
1153
- selected: l,
1560
+ function Al(t) {
1561
+ const e = H(9), {
1562
+ values: i,
1563
+ selected: o,
1154
1564
  onChange: n
1155
1565
  } = t;
1156
- let r;
1157
- if (e[0] !== n || e[1] !== l || e[2] !== s) {
1158
- let a;
1159
- e[4] !== n || e[5] !== l ? (a = (c) => {
1160
- const m = c.id === l;
1161
- return /* @__PURE__ */ E(Y, { sx: ae.item.container, component: "button", "aria-label": c.label, onClick: () => n(c.id), children: [
1162
- /* @__PURE__ */ o("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": m }),
1163
- /* @__PURE__ */ o(Q, { variant: "caption", sx: {
1164
- ...m && ae.item.selected
1165
- }, children: c.label })
1166
- ] }, c.id);
1167
- }, e[4] = n, e[5] = l, e[6] = a) : a = e[6], r = s.map(a), e[0] = n, e[1] = l, e[2] = s, e[3] = r;
1566
+ let c;
1567
+ if (e[0] !== n || e[1] !== o || e[2] !== i) {
1568
+ let r;
1569
+ e[4] !== n || e[5] !== o ? (r = (a) => {
1570
+ const m = a.id === o;
1571
+ return /* @__PURE__ */ W(oe, { sx: Se.item.container, component: "button", "aria-label": a.label, onClick: () => n(a.id), children: [
1572
+ /* @__PURE__ */ l("img", { src: a.icon, "aria-label": a.label + " icon", "data-active": m }),
1573
+ /* @__PURE__ */ l(ae, { variant: "caption", sx: {
1574
+ ...m && Se.item.selected
1575
+ }, children: a.label })
1576
+ ] }, a.id);
1577
+ }, e[4] = n, e[5] = o, e[6] = r) : r = e[6], c = i.map(r), e[0] = n, e[1] = o, e[2] = i, e[3] = c;
1168
1578
  } else
1169
- r = e[3];
1170
- let i;
1171
- return e[7] !== r ? (i = /* @__PURE__ */ o(Y, { sx: ae.group, children: r }), e[7] = r, e[8] = i) : i = e[8], i;
1579
+ c = e[3];
1580
+ let s;
1581
+ return e[7] !== c ? (s = /* @__PURE__ */ l(oe, { sx: Se.group, children: c }), e[7] = c, e[8] = s) : s = e[8], s;
1172
1582
  }
1173
- function Ft(t) {
1174
- const e = F(21), {
1175
- ref: s,
1176
- children: l,
1583
+ function Ll(t, e) {
1584
+ const i = t.startsWith("bottom"), o = t.endsWith("right");
1585
+ return {
1586
+ anchorOrigin: {
1587
+ vertical: i ? "bottom" : "top",
1588
+ // `'side'` flips horizontally to open beside the anchor; `'overlay'` keeps
1589
+ // the same edge so the panel lands on top of it.
1590
+ horizontal: e === "overlay" ? o ? "right" : "left" : o ? "left" : "right"
1591
+ },
1592
+ transformOrigin: {
1593
+ vertical: i ? "bottom" : "top",
1594
+ horizontal: o ? "right" : "left"
1595
+ }
1596
+ };
1597
+ }
1598
+ function Dl(t) {
1599
+ const e = H(35), {
1600
+ ref: i,
1601
+ children: o,
1177
1602
  collapsed: n,
1178
- isMobile: r,
1179
- position: i,
1180
- sx: a,
1181
- slotProps: c,
1182
- onChangeCollapsed: m
1183
- } = t;
1184
- if (r === void 0 ? !1 : r) {
1185
- const y = !n;
1186
- let x;
1187
- return e[0] !== l || e[1] !== m || e[2] !== y ? (x = /* @__PURE__ */ o(Qe, { anchor: "bottom", open: y, onClose: m, children: l }), e[0] = l, e[1] = m, e[2] = y, e[3] = x) : x = e[3], x;
1603
+ isMobile: c,
1604
+ position: s,
1605
+ sx: r,
1606
+ slotProps: a,
1607
+ onChangeCollapsed: m,
1608
+ modal: f,
1609
+ placement: d
1610
+ } = t, h = c === void 0 ? !1 : c, u = f === void 0 ? !0 : f, A = d === void 0 ? "side" : d, C = Ie(null), x = Ie(null);
1611
+ let $;
1612
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = (E) => {
1613
+ if (x.current?.disconnect(), x.current = null, E && typeof ResizeObserver < "u") {
1614
+ const y = new ResizeObserver(() => C.current?.updatePosition());
1615
+ y.observe(E), x.current = y;
1616
+ }
1617
+ }, e[0] = $) : $ = e[0];
1618
+ const B = $;
1619
+ if (h) {
1620
+ const E = !n;
1621
+ let y;
1622
+ e[1] !== m ? (y = () => m(!0), e[1] = m, e[2] = y) : y = e[2];
1623
+ let R;
1624
+ return e[3] !== o || e[4] !== E || e[5] !== y ? (R = /* @__PURE__ */ l(wt, { anchor: "bottom", open: E, onClose: y, children: o }), e[3] = o, e[4] = E, e[5] = y, e[6] = R) : R = e[6], R;
1188
1625
  }
1189
- const u = !n;
1190
- let f;
1191
- e[4] !== m ? (f = () => m(!0), e[4] = m, e[5] = f) : f = e[5];
1192
- const v = i.startsWith("bottom") ? "bottom" : "top", w = i.endsWith("right") ? "left" : "right";
1193
- let h;
1194
- e[6] !== v || e[7] !== w ? (h = {
1195
- vertical: v,
1196
- horizontal: w
1197
- }, e[6] = v, e[7] = w, e[8] = h) : h = e[8];
1198
- const g = i.startsWith("bottom") ? "bottom" : "top", L = i.endsWith("right") ? "right" : "left";
1199
- let M;
1200
- e[9] !== g || e[10] !== L ? (M = {
1201
- vertical: g,
1202
- horizontal: L
1203
- }, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
1204
- let C;
1205
- return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (C = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = C) : C = e[20], C;
1626
+ let k;
1627
+ e[7] !== A || e[8] !== s ? (k = Ll(s, A), e[7] = A, e[8] = s, e[9] = k) : k = e[9];
1628
+ const {
1629
+ anchorOrigin: S,
1630
+ transformOrigin: b
1631
+ } = k, I = a;
1632
+ let g;
1633
+ e[10] !== u || e[11] !== I?.paper || e[12] !== I?.root || e[13] !== a ? (g = u ? a : {
1634
+ root: {
1635
+ style: {
1636
+ pointerEvents: "none"
1637
+ },
1638
+ ...I?.root
1639
+ },
1640
+ paper: {
1641
+ ...I?.paper,
1642
+ style: {
1643
+ pointerEvents: "auto",
1644
+ ...I?.paper?.style
1645
+ }
1646
+ }
1647
+ }, e[10] = u, e[11] = I?.paper, e[12] = I?.root, e[13] = a, e[14] = g) : g = e[14];
1648
+ const w = g, T = !n && i != null;
1649
+ let _;
1650
+ e[15] !== u || e[16] !== m ? (_ = u ? () => m(!0) : void 0, e[15] = u, e[16] = m, e[17] = _) : _ = e[17];
1651
+ const p = !u, L = !u, O = !u, D = !u, v = !u, M = !u;
1652
+ let P;
1653
+ e[18] !== o ? (P = /* @__PURE__ */ l("div", { ref: B, children: o }), e[18] = o, e[19] = P) : P = e[19];
1654
+ let U;
1655
+ return e[20] !== S || e[21] !== w || e[22] !== i || e[23] !== r || e[24] !== L || e[25] !== O || e[26] !== D || e[27] !== v || e[28] !== M || e[29] !== P || e[30] !== T || e[31] !== _ || e[32] !== p || e[33] !== b ? (U = /* @__PURE__ */ l(lt, { action: C, sx: r, anchorEl: i, open: T, onClose: _, hideBackdrop: p, disableScrollLock: L, disableEscapeKeyDown: O, disableAutoFocus: D, disableEnforceFocus: v, disableRestoreFocus: M, anchorOrigin: S, transformOrigin: b, slotProps: w, children: P }), e[20] = S, e[21] = w, e[22] = i, e[23] = r, e[24] = L, e[25] = O, e[26] = D, e[27] = v, e[28] = M, e[29] = P, e[30] = T, e[31] = _, e[32] = p, e[33] = b, e[34] = U) : U = e[34], U;
1206
1656
  }
1207
- const Nt = [];
1208
- function so(t) {
1209
- const e = F(54), {
1210
- options: s,
1211
- labels: l,
1657
+ const Pl = [];
1658
+ function Xl(t) {
1659
+ const e = H(54), {
1660
+ options: i,
1661
+ labels: o,
1212
1662
  position: n,
1213
- selected: r,
1214
- onChange: i,
1215
- TooltipProps: a
1216
- } = t, c = s === void 0 ? Nt : s, m = n === void 0 ? "bottom-right" : n, d = r === void 0 ? null : r, [u, f] = se(null), [v, w] = se(!1), h = Le(null), [g, L] = se(null), M = et();
1217
- let C;
1218
- e[0] !== M.breakpoints ? (C = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = C) : C = e[1];
1219
- const y = tt(C);
1220
- let x;
1221
- e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
1663
+ selected: c,
1664
+ onChange: s,
1665
+ TooltipProps: r
1666
+ } = t, a = i === void 0 ? Pl : i, m = n === void 0 ? "bottom-right" : n, f = c === void 0 ? null : c, [d, h] = ce(null), [u, A] = ce(!1), C = Ie(null), [x, $] = ce(null), B = kt();
1222
1667
  let k;
1223
- e[4] !== x ? (k = we(Vt, x), e[4] = x, e[5] = k) : k = e[5];
1224
- const b = k;
1225
- let _;
1226
- if (e[6] !== c || e[7] !== d) {
1227
- let ne;
1228
- e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10], _ = c.find(ne), e[6] = c, e[7] = d, e[8] = _;
1229
- } else
1230
- _ = e[8];
1231
- const T = _;
1232
- let S;
1233
- e[11] !== c ? (S = Object.groupBy(c, Gt), e[11] = c, e[12] = S) : S = e[12];
1234
- const p = S;
1668
+ e[0] !== B.breakpoints ? (k = B.breakpoints.down("sm"), e[0] = B.breakpoints, e[1] = k) : k = e[1];
1669
+ const S = Tt(k);
1670
+ let b;
1671
+ e[2] !== o ? (b = o ?? {}, e[2] = o, e[3] = b) : b = e[3];
1235
1672
  let I;
1236
- e[13] !== p ? (I = Object.keys(p), e[13] = p, e[14] = I) : I = e[14];
1237
- const D = I.length;
1238
- let O;
1239
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = () => {
1240
- f(null), w(!1);
1241
- }, e[15] = O) : O = e[15];
1242
- const U = O;
1243
- let P, R;
1244
- e[16] !== g ? (P = () => {
1245
- if (h.current && clearTimeout(h.current), !!g)
1246
- return h.current = setTimeout(() => {
1247
- U();
1248
- }, g), () => {
1249
- h.current && clearTimeout(h.current);
1673
+ e[4] !== b ? (I = Ne(Tl, b), e[4] = b, e[5] = I) : I = e[5];
1674
+ const g = I;
1675
+ let w;
1676
+ if (e[6] !== a || e[7] !== f) {
1677
+ let le;
1678
+ e[9] !== f ? (le = (ne) => ne.id === f, e[9] = f, e[10] = le) : le = e[10], w = a.find(le), e[6] = a, e[7] = f, e[8] = w;
1679
+ } else
1680
+ w = e[8];
1681
+ const T = w;
1682
+ let _;
1683
+ e[11] !== a ? (_ = Object.groupBy(a, Rl), e[11] = a, e[12] = _) : _ = e[12];
1684
+ const p = _;
1685
+ let L;
1686
+ e[13] !== p ? (L = Object.keys(p), e[13] = p, e[14] = L) : L = e[14];
1687
+ const O = L.length;
1688
+ let D;
1689
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => {
1690
+ h(null), A(!1);
1691
+ }, e[15] = D) : D = e[15];
1692
+ const v = D;
1693
+ let M, P;
1694
+ e[16] !== x ? (M = () => {
1695
+ if (C.current && clearTimeout(C.current), !!x)
1696
+ return C.current = setTimeout(() => {
1697
+ v();
1698
+ }, x), () => {
1699
+ C.current && clearTimeout(C.current);
1250
1700
  };
1251
- }, R = [g], e[16] = g, e[17] = P, e[18] = R) : (P = e[17], R = e[18]), Pe(P, R);
1701
+ }, P = [x], e[16] = x, e[17] = M, e[18] = P) : (M = e[17], P = e[18]), at(M, P);
1702
+ let U;
1703
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = () => {
1704
+ $(null);
1705
+ }, e[19] = U) : U = e[19];
1706
+ const E = U;
1707
+ let y;
1708
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
1709
+ $(400);
1710
+ }, e[20] = y) : y = e[20];
1711
+ const R = y;
1252
1712
  let V;
1253
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = () => {
1254
- L(null);
1255
- }, e[19] = V) : V = e[19];
1256
- const Z = V;
1257
- let A;
1258
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
1259
- L(400);
1260
- }, e[20] = A) : A = e[20];
1261
- const B = A;
1262
- let W;
1263
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ne) => {
1264
- f(ne.currentTarget), w(!0);
1265
- }, e[21] = W) : W = e[21];
1266
- const G = T?.icon, N = T?.label ?? "Basemap";
1713
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = (le) => {
1714
+ h(le.currentTarget), A(!0);
1715
+ }, e[21] = V) : V = e[21];
1716
+ const G = T?.icon, Z = T?.label ?? "Basemap";
1717
+ let F;
1718
+ e[22] !== G || e[23] !== Z ? (F = /* @__PURE__ */ l(ve, { sx: Se.toggle, onClick: V, children: /* @__PURE__ */ l("img", { src: G, alt: Z }) }), e[22] = G, e[23] = Z, e[24] = F) : F = e[24];
1267
1719
  let j;
1268
- e[22] !== G || e[23] !== N ? (j = /* @__PURE__ */ o(ie, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: G, alt: N }) }), e[22] = G, e[23] = N, e[24] = j) : j = e[24];
1269
- let z;
1270
- e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (z = /* @__PURE__ */ o(fe, { title: b.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = b.toggle.title, e[27] = j, e[28] = z) : z = e[28];
1271
- const $ = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1272
- let H;
1273
- e[29] !== $ ? (H = {
1720
+ e[25] !== r || e[26] !== g.toggle.title || e[27] !== F ? (j = /* @__PURE__ */ l(Ae, { title: g.toggle.title, placement: "right", ...r, children: F }), e[25] = r, e[26] = g.toggle.title, e[27] = F, e[28] = j) : j = e[28];
1721
+ const z = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1722
+ let N;
1723
+ e[29] !== z ? (N = {
1274
1724
  paper: {
1275
1725
  sx: {
1276
- ...ae.root,
1277
- transform: $
1726
+ ...Se.root,
1727
+ transform: z
1278
1728
  },
1279
- onMouseOver: Z,
1280
- onMouseLeave: B
1729
+ onMouseOver: E,
1730
+ onMouseLeave: R
1281
1731
  }
1282
- }, e[29] = $, e[30] = H) : H = e[30];
1283
- const ee = !v;
1732
+ }, e[29] = z, e[30] = N) : N = e[30];
1733
+ const q = !u;
1734
+ let K;
1735
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = () => v(), e[31] = K) : K = e[31];
1736
+ let Q;
1737
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = () => v(), e[32] = Q) : Q = e[32];
1284
1738
  let X;
1285
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
1739
+ e[33] !== S || e[34] !== g.header ? (X = /* @__PURE__ */ l(Ml, { isMobile: S, labels: g.header, onChangeCollapsed: Q }), e[33] = S, e[34] = g.header, e[35] = X) : X = e[35];
1740
+ let J;
1741
+ e[36] !== p ? (J = Object.entries(p), e[36] = p, e[37] = J) : J = e[37];
1742
+ let ee;
1743
+ e[38] !== O || e[39] !== g.header || e[40] !== s || e[41] !== f || e[42] !== J ? (ee = J.map((le) => {
1744
+ const [ne, se] = le;
1745
+ return /* @__PURE__ */ l(Il, { title: ne + " " + g.header.title, collapsed: O < 2, children: /* @__PURE__ */ l(Al, { values: se, selected: f, onChange: (pe) => {
1746
+ v(), s(pe);
1747
+ } }) }, ne);
1748
+ }), e[38] = O, e[39] = g.header, e[40] = s, e[41] = f, e[42] = J, e[43] = ee) : ee = e[43];
1286
1749
  let te;
1287
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = () => U(), e[32] = te) : te = e[32];
1288
- let q;
1289
- e[33] !== y || e[34] !== b.header ? (q = /* @__PURE__ */ o(Zt, { isMobile: y, labels: b.header, onChangeCollapsed: te }), e[33] = y, e[34] = b.header, e[35] = q) : q = e[35];
1290
- let le;
1291
- e[36] !== p ? (le = Object.entries(p), e[36] = p, e[37] = le) : le = e[37];
1292
- let ce;
1293
- e[38] !== D || e[39] !== b.header || e[40] !== i || e[41] !== d || e[42] !== le ? (ce = le.map((ne) => {
1294
- const [ge, Ee] = ne;
1295
- return /* @__PURE__ */ o(Wt, { title: ge + " " + b.header.title, collapsed: D < 2, children: /* @__PURE__ */ o(jt, { values: Ee, selected: d, onChange: (Re) => {
1296
- U(), i(Re);
1297
- } }) }, ge);
1298
- }), e[38] = D, e[39] = b.header, e[40] = i, e[41] = d, e[42] = le, e[43] = ce) : ce = e[43];
1299
- let de;
1300
- e[44] !== y || e[45] !== m || e[46] !== H || e[47] !== ee || e[48] !== q || e[49] !== ce ? (de = /* @__PURE__ */ E(Ft, { ref: u, slotProps: H, collapsed: ee, position: m, isMobile: y, onChangeCollapsed: X, children: [
1301
- q,
1302
- ce
1303
- ] }), e[44] = y, e[45] = m, e[46] = H, e[47] = ee, e[48] = q, e[49] = ce, e[50] = de) : de = e[50];
1304
- let he;
1305
- return e[51] !== z || e[52] !== de ? (he = /* @__PURE__ */ E(Se, { children: [
1306
- z,
1307
- de
1308
- ] }), e[51] = z, e[52] = de, e[53] = he) : he = e[53], he;
1750
+ e[44] !== S || e[45] !== m || e[46] !== N || e[47] !== q || e[48] !== X || e[49] !== ee ? (te = /* @__PURE__ */ W(Dl, { ref: d, slotProps: N, collapsed: q, position: m, isMobile: S, onChangeCollapsed: K, children: [
1751
+ X,
1752
+ ee
1753
+ ] }), e[44] = S, e[45] = m, e[46] = N, e[47] = q, e[48] = X, e[49] = ee, e[50] = te) : te = e[50];
1754
+ let ie;
1755
+ return e[51] !== j || e[52] !== te ? (ie = /* @__PURE__ */ W(Pe, { children: [
1756
+ j,
1757
+ te
1758
+ ] }), e[51] = j, e[52] = te, e[53] = ie) : ie = e[53], ie;
1309
1759
  }
1310
- function Gt(t) {
1760
+ function Rl(t) {
1311
1761
  return t.group ?? "default";
1312
1762
  }
1313
1763
  export {
1314
- vt as AreaIcon,
1315
- so as BasemapsUI,
1316
- bt as BufferIcon,
1317
- xo as CopyButton,
1318
- co as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1319
- oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1320
- xt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1321
- yt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1322
- mo as DrawCircleIcon,
1323
- uo as DrawLassoIcon,
1324
- po as DrawPolygonIcon,
1325
- fo as DrawSquareIcon,
1326
- lo as GeolocationControls,
1327
- re as LASSO_TOOLS_LABELS,
1328
- to as LassoToolsInlineUI,
1329
- ho as LassoToolsUI,
1330
- io as ListDataUI,
1331
- oo as MeasurementToolsUI,
1332
- gt as RulerIcon,
1333
- go as SelectToolIcon,
1334
- ct as SmartTooltip,
1335
- fe as Tooltip,
1336
- no as ZoomControlsUI,
1337
- vo as setTooltipEnterDelay
1764
+ il as AreaIcon,
1765
+ Xl as BasemapsUI,
1766
+ nl as BufferIcon,
1767
+ co as CopyButton,
1768
+ Jl as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1769
+ ye as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1770
+ rl as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1771
+ sl as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1772
+ eo as DrawCircleIcon,
1773
+ to as DrawLassoIcon,
1774
+ lo as DrawPolygonIcon,
1775
+ oo as DrawSquareIcon,
1776
+ Hl as GeolocationControls,
1777
+ xe as LASSO_TOOLS_LABELS,
1778
+ jl as LassoGeometryToolbarUI,
1779
+ Nl as LassoLayerFiltersUI,
1780
+ Zl as LassoToolsInlineUI,
1781
+ no as LassoToolsUI,
1782
+ Kl as ListDataUI,
1783
+ Gl as MeasurementToolsUI,
1784
+ Dl as ResponsiveDrawer,
1785
+ ol as RulerIcon,
1786
+ io as SelectToolIcon,
1787
+ Wt as SmartTooltip,
1788
+ mt as SpatialMaskIcon,
1789
+ ft as TextAaIcon,
1790
+ Ae as Tooltip,
1791
+ Yl as ZoomControlsUI,
1792
+ ro as setTooltipEnterDelay
1338
1793
  };
1339
1794
  //# sourceMappingURL=components.js.map