@arcgis/map-components 5.2.0-next.5 → 5.2.0-next.7

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 (112) hide show
  1. package/dist/cdn/{32HC6PWY.js → 2EOQ5G2R.js} +1 -1
  2. package/dist/cdn/{Z5YGVWFI.js → 3AZCF2P5.js} +1 -1
  3. package/dist/cdn/{QEPCYJLX.js → 52XUYHPM.js} +1 -1
  4. package/dist/cdn/{WTL3FIGS.js → 55JA345T.js} +1 -1
  5. package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
  6. package/dist/cdn/5UUUR4LF.js +2 -0
  7. package/dist/cdn/ABPHGXQN.js +2 -0
  8. package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
  9. package/dist/cdn/CZXCSL3K.js +2 -0
  10. package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
  11. package/dist/cdn/FGSOMLKL.js +2 -0
  12. package/dist/cdn/L34RL7Y3.js +2 -0
  13. package/dist/cdn/LM56QFP5.js +2 -0
  14. package/dist/cdn/{7DIC4O5E.js → NOHLNRB4.js} +1 -1
  15. package/dist/cdn/{MF5STJJO.js → RJM52R4G.js} +1 -1
  16. package/dist/cdn/W42XLSER.js +2 -0
  17. package/dist/cdn/WMH7TCIP.js +2 -0
  18. package/dist/cdn/{VNYFKVJ2.js → WQDUJLSY.js} +1 -1
  19. package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
  20. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  21. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  22. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  23. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  24. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  25. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  26. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  27. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  28. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  29. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  30. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  31. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  32. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  33. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  34. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  51. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  52. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  53. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  54. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  55. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  56. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  57. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  58. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  59. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  60. package/dist/cdn/index.js +1 -1
  61. package/dist/cdn/main.css +1 -1
  62. package/dist/chunks/time-utils.js +14 -14
  63. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  64. package/dist/components/arcgis-daylight/customElement.js +242 -203
  65. package/dist/components/arcgis-elevation-profile/customElement.d.ts +14 -0
  66. package/dist/components/arcgis-elevation-profile/customElement.js +77 -75
  67. package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
  68. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  69. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  70. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  71. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  72. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  73. package/dist/components/arcgis-feature-templates/index.js +13 -0
  74. package/dist/components/arcgis-features-next/customElement.d.ts +7 -1
  75. package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
  76. package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
  77. package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
  78. package/dist/components/arcgis-legend/customElement.js +6 -6
  79. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  80. package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
  81. package/dist/components/arcgis-map/customElement.d.ts +47 -4
  82. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  83. package/dist/components/arcgis-paste/customElement.js +27 -38
  84. package/dist/components/arcgis-paste/index.js +1 -1
  85. package/dist/components/arcgis-popup/customElement.d.ts +7 -1
  86. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +1 -1
  87. package/dist/components/arcgis-slider-scale-range/customElement.js +65 -31
  88. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  89. package/dist/components/arcgis-template-image/customElement.js +119 -0
  90. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  91. package/dist/components/arcgis-template-image/index.js +1 -0
  92. package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
  93. package/dist/components/arcgis-version-management/customElement.js +21 -20
  94. package/dist/components/arcgis-version-management/index.js +1 -0
  95. package/dist/components/arcgis-weather/customElement.js +96 -94
  96. package/dist/docs/api.json +1 -1
  97. package/dist/docs/docs.json +1 -1
  98. package/dist/docs/vscode.html-custom-data.json +1 -1
  99. package/dist/docs/web-types.json +1 -1
  100. package/dist/index.d.ts +14 -0
  101. package/dist/loader.js +3 -1
  102. package/dist/types/lumina.d.ts +15 -1
  103. package/dist/types/preact.d.ts +17 -1
  104. package/dist/types/react.d.ts +19 -1
  105. package/dist/types/stencil.d.ts +15 -1
  106. package/package.json +7 -7
  107. package/dist/cdn/AOC4VUP6.js +0 -2
  108. package/dist/cdn/IBTOXDST.js +0 -2
  109. package/dist/cdn/JFVZHHIX.js +0 -2
  110. package/dist/cdn/MHRXFE7S.js +0 -2
  111. package/dist/cdn/RAQVHNVI.js +0 -2
  112. package/dist/cdn/YJCBT5VK.js +0 -2
@@ -1,44 +1,44 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as ce } from "../../chunks/runtime.js";
3
- import { watch as de, when as he, whenOnce as ge } from "@arcgis/core/core/reactiveUtils.js";
4
- import * as ue from "@arcgis/core/intl.js";
5
- import pe from "@arcgis/core/views/3d/environment/SunLighting.js";
6
- import me from "@arcgis/core/views/3d/environment/VirtualLighting.js";
7
- import { LitElement as fe, createEvent as j, safeStyleMap as B, nothing as R } from "@arcgis/lumina";
8
- import { css as _e, html as p } from "lit";
9
- import { createRef as G, ref as Y } from "lit/directives/ref.js";
10
- import { u as be } from "../../chunks/useT9n.js";
11
- import { u as ve } from "../../chunks/useView.js";
2
+ import { c as de } from "../../chunks/runtime.js";
3
+ import { watch as he, when as ge, whenOnce as ue } from "@arcgis/core/core/reactiveUtils.js";
4
+ import * as pe from "@arcgis/core/intl.js";
5
+ import me from "@arcgis/core/views/3d/environment/SunLighting.js";
6
+ import fe from "@arcgis/core/views/3d/environment/VirtualLighting.js";
7
+ import { LitElement as _e, createEvent as B, safeStyleMap as V, nothing as J } from "@arcgis/lumina";
8
+ import { css as be, html as m } from "lit";
9
+ import { createRef as q, ref as G } from "lit/directives/ref.js";
10
+ import { u as ve } from "../../chunks/useT9n.js";
11
+ import { u as we } from "../../chunks/useView.js";
12
12
  import { m as N } from "../../chunks/handle.js";
13
- import { o as P, i as f, b as q, d as z, g as we } from "../../chunks/time-utils.js";
14
- import { r as ye, b as xe, d as Se } from "../../chunks/async-utils.js";
15
- import { createTrackingTarget as De, runTracked as Z, signal as Te } from "@arcgis/core/applications/Components/reactiveUtils.js";
13
+ import { o as T, i as p, b as Y, d as P, g as ye } from "../../chunks/time-utils.js";
14
+ import { r as xe, b as Se, d as De } from "../../chunks/async-utils.js";
15
+ import { createTrackingTarget as Te, runTracked as Z, signal as ke } from "@arcgis/core/applications/Components/reactiveUtils.js";
16
16
  import { C as W } from "../../chunks/component-wrapper.js";
17
17
  import { V as D } from "../../chunks/visible-element.js";
18
- function ke(i, e) {
19
- return i / 15;
18
+ function Pe(r, e) {
19
+ return r / 15;
20
20
  }
21
- function Pe(i, e) {
22
- const t = i?.[0];
21
+ function Ce(r, e) {
22
+ const t = r?.[0];
23
23
  if (t == null)
24
24
  return null;
25
- e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = ke(t);
26
- const r = e.hours % 1;
27
- e.hours -= r, e.minutes = r * 60;
25
+ e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = Pe(t);
26
+ const i = e.hours % 1;
27
+ e.hours -= i, e.minutes = i * 60;
28
28
  const n = e.minutes % 1;
29
29
  return e.minutes -= n, e.seconds = Math.round(n * 60), e;
30
30
  }
31
- function $e(i) {
32
- const e = Pe([i.longitude, i.latitude]);
31
+ function K(r) {
32
+ const e = Ce([r.longitude, r.latitude]);
33
33
  return e == null ? 0 : Math.round(e.hours + e.minutes / 60 + e.seconds / 3600);
34
34
  }
35
- function re(i, e) {
36
- return (i % e + e) % e;
35
+ function ne(r, e) {
36
+ return (r % e + e) % e;
37
37
  }
38
- class Ce {
38
+ class $e {
39
39
  #t;
40
40
  #r;
41
- #n = De(() => {
41
+ #n = Te(() => {
42
42
  this.#i();
43
43
  });
44
44
  constructor(e) {
@@ -46,7 +46,7 @@ class Ce {
46
46
  let t;
47
47
  Z(this.#n, () => {
48
48
  t = e();
49
- }), this.#t = Te(t);
49
+ }), this.#t = ke(t);
50
50
  }
51
51
  #i() {
52
52
  const e = this.#t.value;
@@ -61,32 +61,32 @@ class Ce {
61
61
  return this.#t.value;
62
62
  }
63
63
  }
64
- function A(i) {
65
- return new Ce(i);
64
+ function A(r) {
65
+ return new $e(r);
66
66
  }
67
- var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos, y = U / 180, ne = 1e3 * 60 * 60 * 24, se = 2440588, oe = 2451545;
68
- function Oe(i) {
69
- return i.valueOf() / ne - 0.5 + se;
67
+ var U = Math.PI, u = Math.sin, k = Math.cos, ze = Math.asin, Oe = Math.acos, y = U / 180, se = 1e3 * 60 * 60 * 24, oe = 2440588, ae = 2451545;
68
+ function Me(r) {
69
+ return r.valueOf() / se - 0.5 + oe;
70
70
  }
71
- function M(i) {
72
- return new Date((i + 0.5 - se) * ne);
71
+ function O(r) {
72
+ return new Date((r + 0.5 - oe) * se);
73
73
  }
74
- function Le(i) {
75
- return Oe(i) - oe;
74
+ function Le(r) {
75
+ return Me(r) - ae;
76
76
  }
77
- var K = y * 23.4397;
78
- function Ue(i, e) {
79
- return ze(u(e) * T(K) + T(e) * u(K) * u(i));
77
+ var Q = y * 23.4397;
78
+ function Ue(r, e) {
79
+ return ze(u(e) * k(Q) + k(e) * u(Q) * u(r));
80
80
  }
81
- function Ee(i) {
82
- return y * (357.5291 + 0.98560028 * i);
81
+ function Ee(r) {
82
+ return y * (357.5291 + 0.98560028 * r);
83
83
  }
84
- function He(i) {
85
- return y * (1.9148 * u(i) + 0.02 * u(2 * i) + 3e-4 * u(3 * i));
84
+ function He(r) {
85
+ return y * (1.9148 * u(r) + 0.02 * u(2 * r) + 3e-4 * u(3 * r));
86
86
  }
87
- function Ae(i, e) {
87
+ function Ae(r, e) {
88
88
  var t = y * 102.9372;
89
- return i + e + t + U;
89
+ return r + e + t + U;
90
90
  }
91
91
  var S = {};
92
92
  S.PolarException = {
@@ -105,39 +105,39 @@ var I = [
105
105
  [ -18, "nightEnd", "night" ],
106
106
  [ 6, "goldenHourEnd", "goldenHour" ]
107
107
  */
108
- ], ae = 9e-4;
109
- function Ie(i, e) {
110
- return Math.round(i - ae - e / (2 * U));
108
+ ], le = 9e-4;
109
+ function Ie(r, e) {
110
+ return Math.round(r - le - e / (2 * U));
111
111
  }
112
- function Q(i, e, t) {
113
- return ae + (i + e) / (2 * U) + t;
112
+ function X(r, e, t) {
113
+ return le + (r + e) / (2 * U) + t;
114
114
  }
115
- function X(i, e, t) {
116
- return oe + i + 53e-4 * u(e) - 69e-4 * u(2 * t);
115
+ function ee(r, e, t) {
116
+ return ae + r + 53e-4 * u(e) - 69e-4 * u(2 * t);
117
117
  }
118
- function Ne(i, e, t) {
119
- return Me((u(i) - u(e) * u(t)) / (T(e) * T(t)));
118
+ function Ne(r, e, t) {
119
+ return Oe((u(r) - u(e) * u(t)) / (k(e) * k(t)));
120
120
  }
121
- S.getTimes = function(i, e, t) {
122
- var r = y * -t, n = y * e, s = Le(i), o = Ie(s, r), a = Q(0, r, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Ue(l, 0), g = X(a, c, l);
121
+ S.getTimes = function(r, e, t) {
122
+ var i = y * -t, n = y * e, s = Le(r), o = Ie(s, i), a = X(0, i, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Ue(l, 0), g = ee(a, c, l);
123
123
  function w(H) {
124
- var C = Ne(H, n, h), le = Q(C, r, o);
125
- return X(le, c, l);
124
+ var z = Ne(H, n, h), ce = X(z, i, o);
125
+ return ee(ce, c, l);
126
126
  }
127
127
  function x(H) {
128
- var C = (u(H) - u(n) * u(h)) / (T(n) * T(h));
129
- return C < -1 ? S.PolarException.MIDNIGHT_SUN : C > 1 ? S.PolarException.POLAR_NIGHT : S.PolarException.NORMAL;
128
+ var z = (u(H) - u(n) * u(h)) / (k(n) * k(h));
129
+ return z < -1 ? S.PolarException.MIDNIGHT_SUN : z > 1 ? S.PolarException.POLAR_NIGHT : S.PolarException.NORMAL;
130
130
  }
131
131
  var _ = {
132
- solarNoon: M(g),
133
- nadir: M(g - 0.5),
132
+ solarNoon: O(g),
133
+ nadir: O(g - 0.5),
134
134
  polarException: S.PolarException.NORMAL
135
- }, b, m, $, E, F;
136
- for (b = 0, m = I.length; b < m; b += 1)
137
- $ = I[b], E = w($[0] * y), F = g - (E - g), _[$[1]] = M(F), _[$[2]] = M(E);
135
+ }, b, f, $, E, j;
136
+ for (b = 0, f = I.length; b < f; b += 1)
137
+ $ = I[b], E = w($[0] * y), j = g - (E - g), _[$[1]] = O(j), _[$[2]] = O(E);
138
138
  return _.polarException = x(I[0][0] * y), _;
139
139
  };
140
- const Je = {
140
+ const Fe = {
141
141
  spring: { dayOfMonth: 20, month: 2 },
142
142
  // Northern Spring equinox in 2014 - March 20
143
143
  summer: { dayOfMonth: 21, month: 5 },
@@ -146,32 +146,32 @@ const Je = {
146
146
  // Northern Fall equinox in 2014 - September 23
147
147
  winter: { dayOfMonth: 21, month: 11 }
148
148
  // Northern Winter solstice in 2014 - December 21
149
- }, J = ["spring", "summer", "fall", "winter"];
150
- function k(i, e, t) {
151
- const r = V(e, t), { dayOfMonth: n, month: s } = Je[r], o = new Date(i.getTime());
149
+ }, F = ["spring", "summer", "fall", "winter"];
150
+ function C(r, e, t) {
151
+ const i = R(e, t), { dayOfMonth: n, month: s } = Fe[i], o = new Date(r.getTime());
152
152
  return o.setMonth(s, n), o;
153
153
  }
154
- function Re(i, e) {
155
- const t = Ve(i);
156
- return V(t, e);
154
+ function Je(r, e) {
155
+ const t = Re(r);
156
+ return R(t, e);
157
157
  }
158
- function Ve(i) {
159
- const e = i.getTime(), t = k(i, "spring", "northern").getTime(), r = k(i, "summer", "northern").getTime(), n = k(i, "fall", "northern").getTime(), s = k(i, "winter", "northern").getTime();
160
- return e >= t && e < r ? "spring" : e >= r && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
158
+ function Re(r) {
159
+ const e = r.getTime(), t = C(r, "spring", "northern").getTime(), i = C(r, "summer", "northern").getTime(), n = C(r, "fall", "northern").getTime(), s = C(r, "winter", "northern").getTime();
160
+ return e >= t && e < i ? "spring" : e >= i && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
161
161
  }
162
- function V(i, e) {
163
- return e === "northern" ? i : Fe(i);
162
+ function R(r, e) {
163
+ return e === "northern" ? r : je(r);
164
164
  }
165
- function ee(i) {
166
- return i >= 0 ? "northern" : "southern";
165
+ function te(r) {
166
+ return r >= 0 ? "northern" : "southern";
167
167
  }
168
- function Fe(i) {
169
- const e = J.indexOf(i);
170
- return J[(e + 2) % 4];
168
+ function je(r) {
169
+ const e = F.indexOf(r);
170
+ return F[(e + 2) % 4];
171
171
  }
172
- const je = 1440, Be = 864e5;
173
- function Ge(i, e, t, r) {
174
- const n = S.getTimes(i, e, t), s = n.sunrise, o = n.sunset, a = P(i, r), c = P(s, r), d = P(o, r);
172
+ const Be = 1440, Ve = 864e5;
173
+ function qe(r, e, t, i) {
174
+ const n = S.getTimes(r, e, t), s = n.sunrise, o = n.sunset, a = T(r, i), c = T(s, i), d = T(o, i);
175
175
  if (a.getUTCDate() !== c.getUTCDate() || a.getUTCDate() !== d.getUTCDate()) {
176
176
  const l = a.getTime() - c.getTime() > 0 ? 1 : -1;
177
177
  s.setUTCDate(s.getUTCDate() + l), o.setUTCDate(o.getUTCDate() + l);
@@ -181,72 +181,72 @@ function Ge(i, e, t, r) {
181
181
  sunset: o
182
182
  };
183
183
  }
184
- const Ye = 100, qe = 1e3, v = 12e5, O = 72e5;
185
- function te(i, e) {
186
- return re(i + e, 24);
184
+ const Ge = 100, Ye = 1e3, v = 12e5, M = 72e5;
185
+ function ie(r, e) {
186
+ return ne(r + e, 24);
187
187
  }
188
188
  function Ze({
189
- mode: i,
189
+ mode: r,
190
190
  lighting: e,
191
191
  getPlaySpeed: t,
192
- onProgress: r,
192
+ onProgress: i,
193
193
  beforeProgress: n
194
194
  }) {
195
195
  let s = -1;
196
196
  function o(a = Date.now()) {
197
197
  const c = e.date, d = Date.now() - (a ?? 0);
198
- if (i === "day") {
198
+ if (r === "day") {
199
199
  a = Date.now();
200
- const h = t() / Ye * d;
200
+ const h = t() / Ge * d;
201
201
  if (h > 0) {
202
202
  let g = new Date(c.getTime() + h);
203
- const w = e.displayUTCOffset ?? 0, x = te(g.getUTCHours(), w), _ = te(c.getUTCHours(), w);
204
- x < _ && (g = new Date(c.getTime() + h - Be));
203
+ const w = e.displayUTCOffset ?? 0, x = ie(g.getUTCHours(), w), _ = ie(c.getUTCHours(), w);
204
+ x < _ && (g = new Date(c.getTime() + h - Ve));
205
205
  const b = e.clone();
206
- n?.(), e.date = g, r?.(b, e);
206
+ n?.(), e.date = g, i?.(b, e);
207
207
  }
208
- } else if (d > qe) {
208
+ } else if (d > Ye) {
209
209
  a = Date.now();
210
210
  const l = (c.getUTCMonth() + 1) % 12, h = new Date(c.getTime());
211
211
  h.setUTCMonth(l);
212
212
  const g = e.clone();
213
- n?.(), e.date = h, r?.(g, e);
213
+ n?.(), e.date = h, i?.(g, e);
214
214
  }
215
215
  s = requestAnimationFrame(() => o(a));
216
216
  }
217
217
  return o(), N(() => cancelAnimationFrame(s));
218
218
  }
219
219
  const L = v / 4;
220
- function We(i, e, t, r) {
220
+ function We(r, e, t, i) {
221
221
  const {
222
222
  day: n,
223
223
  night: s = n,
224
224
  twilight: o = n
225
- } = r, a = n * L, c = s * L, d = o * L;
226
- if (i == null || e == null || Number.isNaN(i.getTime()) && Number.isNaN(e.getTime()))
225
+ } = i, a = n * L, c = s * L, d = o * L;
226
+ if (r == null || e == null || Number.isNaN(r.getTime()) && Number.isNaN(e.getTime()))
227
227
  return a;
228
- const l = t.getTime(), h = i.getTime(), g = e.getTime(), w = h - O / 2, x = h + O / 2, _ = g - O / 3 * 2, b = g + O / 3;
229
- let m = a;
230
- return l >= w && l <= x ? l - w <= v ? m = c - (l - w) / v * (c - d) : x - l <= v / 2 ? m = a - (x - l) / v * 2 * (a - d) : m = d : l >= _ && l <= b ? l - _ <= v / 2 ? m = a - (l - _) / v * 2 * (a - d) : b - l <= v ? m = c - (b - l) / v * (c - d) : m = d : (l < h || l > g) && (m = c), m;
228
+ const l = t.getTime(), h = r.getTime(), g = e.getTime(), w = h - M / 2, x = h + M / 2, _ = g - M / 3 * 2, b = g + M / 3;
229
+ let f = a;
230
+ return l >= w && l <= x ? l - w <= v ? f = c - (l - w) / v * (c - d) : x - l <= v / 2 ? f = a - (x - l) / v * 2 * (a - d) : f = d : l >= _ && l <= b ? l - _ <= v / 2 ? f = a - (l - _) / v * 2 * (a - d) : b - l <= v ? f = c - (b - l) / v * (c - d) : f = d : (l < h || l > g) && (f = c), f;
231
231
  }
232
- const Ke = _e`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Qe = {
232
+ const Ke = be`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Qe = {
233
233
  day: 1,
234
234
  night: 6,
235
235
  twilight: 2 / 3
236
236
  };
237
- class Xe extends fe {
237
+ class Xe extends _e {
238
238
  constructor() {
239
- super(...arguments), this.messages = be({ blocking: !0 }), this.#r = "none", this.#n = null, this.#o = G(), this.#l = G(), this.#d = 200, this.#h = 200, this.#e = {}, this._offset = A((e) => f(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = A((e) => {
240
- if (f(this._lighting)) {
241
- const t = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
242
- if (q(r)) {
243
- const { minutesSinceMidnight: n } = z(r, t);
239
+ super(...arguments), this.messages = ve({ blocking: !0 }), this.#r = "none", this.#n = null, this.#l = q(), this.#h = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#e = {}, this._offset = A((e) => p(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = A((e) => {
240
+ if (p(this._lighting)) {
241
+ const t = this._lighting.displayUTCOffset ?? this.utcOffset ?? 0, i = this._lighting.date;
242
+ if (Y(i)) {
243
+ const { minutesSinceMidnight: n } = P(i, t);
244
244
  return n;
245
245
  } else
246
246
  return e;
247
247
  }
248
248
  return e;
249
- }), this._localDate = A((e) => we(this._view) ?? e), this.view = ve(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = j(), this.arcgisUserDateTimeChange = j(), this.#c = !1;
249
+ }), this._localDate = A((e) => ye(this._view, this.utcOffset) ?? e), this.view = we(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = B(), this.arcgisUserDateTimeChange = B(), this.#a = !1;
250
250
  }
251
251
  static {
252
252
  this.properties = { localDateAsString: 32, view: 0, _playingState: 16, _sunlightingDisabled: 16, autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 3, dayPlaying: 5, _directShadowsDisabled: 16, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 3, label: 1, playSpeedMultiplier: 9, referenceElement: 1, timeSliderSteps: 9, utcOffset: 9, timeSliderPosition: 9, localDate: 1, yearPlaying: 5 };
@@ -261,81 +261,95 @@ class Xe extends fe {
261
261
  #r;
262
262
  #n;
263
263
  #i;
264
- #o;
265
264
  #l;
266
- #d;
267
265
  #h;
268
- #a() {
266
+ #u;
267
+ #p;
268
+ #c;
269
+ #s(e, t) {
270
+ return this.#a || this.#c ? !1 : (this.#e[e] = t, !0);
271
+ }
272
+ #m() {
273
+ this.#c = !0, this.#e.utcOffset != null && (this.utcOffset = this.#e.utcOffset), this.#e.timeSliderPosition != null && (this.timeSliderPosition = this.#e.timeSliderPosition), this.#e.localDate && (this.localDate = this.#e.localDate), this.#e.directShadowsDisabled != null && (this._directShadowsDisabled = this.#e.directShadowsDisabled), this.#e.sunlightingDisabled != null && (this._sunlightingDisabled = this.#e.sunlightingDisabled), this.#e = {}, this.#c = !1;
274
+ }
275
+ #d() {
269
276
  if (this.#i)
270
277
  return;
271
- const e = ye(() => {
272
- if (this.#i?.remove(), f(this._lighting)) {
273
- const t = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - t * 60, o = P(n, s, "minutes");
278
+ const e = xe(() => {
279
+ if (this.#i?.remove(), p(this._lighting)) {
280
+ const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate, s = i - t * 60, o = T(n, s, "minutes");
274
281
  this._lighting.date = o, this._lighting.displayUTCOffset = t;
275
282
  }
276
- }, { timeout: this.#d });
283
+ }, { timeout: this.#u });
277
284
  this.#i = N(() => {
278
- Se(e), this.#i = void 0;
285
+ De(e), this.#i = void 0;
279
286
  });
280
287
  }
281
- #g({ scale: e, disabled: t }) {
282
- const { messages: r } = this;
283
- return p`<calcite-label .scale=${e} class="date-picker-container">${r.date}${et({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
288
+ #f({ scale: e, disabled: t }) {
289
+ const { messages: i } = this;
290
+ return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${et({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
284
291
  const s = n.currentTarget.value, o = Array.isArray(s) ? s[0] : s;
285
292
  this._stopPlaying(), this.localDate = o, this._emitUserDateTimeChangeEvent();
286
- } })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: ie({ playing: this.yearPlaying, disabled: t, label: r.playYear, onClick: () => {
293
+ } })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ playing: this.yearPlaying, disabled: t, label: i.playYear, onClick: () => {
287
294
  this._playingState === "year" ? this._playingState = "none" : this._playingState = "year";
288
295
  }, scale: e }) })}`;
289
296
  }
290
- #u({ scale: e, disabled: t }) {
291
- const { messages: r } = this;
292
- return p`<calcite-label .scale=${e} class="date-picker-container">${r.season}${tt({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: r, onSeasonChange: (n) => {
297
+ #_({ scale: e, disabled: t }) {
298
+ const { messages: i } = this;
299
+ return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${tt({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: i, onSeasonChange: (n) => {
293
300
  this._stopPlaying(), this.currentSeason = n.currentTarget.value;
294
301
  } })}</calcite-label>`;
295
302
  }
296
303
  #e;
297
- get #p() {
298
- return this.#l?.value?.startTime;
304
+ get #b() {
305
+ return this.#h?.value?.startTime;
299
306
  }
300
307
  get localDateAsString() {
301
- return this._localDate.value ?? "";
308
+ return this._localDate.value ?? void 0;
302
309
  }
303
310
  get _playingState() {
304
311
  return this.#r;
305
312
  }
306
313
  set _playingState(e) {
307
- this.#r = e, this.#s?.remove(), e === "none" ? this.#t?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
314
+ this.#r = e, this.#o?.remove(), e === "none" ? this.#t?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
308
315
  }
309
316
  get _lighting() {
310
317
  return this._view?.environment?.lighting;
311
318
  }
312
319
  get _sunlightingDisabled() {
313
- return !f(this._lighting);
320
+ return !p(this._lighting);
314
321
  }
315
322
  set _sunlightingDisabled(e) {
316
- this.#e.sunlightingDisabled = e;
323
+ this.#s("sunlightingDisabled", e);
317
324
  const t = this._view?.environment;
318
325
  if (t == null)
319
326
  return;
320
- const r = t.lighting, n = this.#n;
321
- this.#n = r;
327
+ const i = t.lighting, n = this.#n;
328
+ this.#n = i;
322
329
  const s = {
323
- directShadowsEnabled: r.directShadowsEnabled,
324
- glow: r.glow
330
+ directShadowsEnabled: i.directShadowsEnabled,
331
+ glow: i.glow
325
332
  };
326
- f(r) && (s.cameraTrackingEnabled = r.cameraTrackingEnabled);
333
+ p(i) && (s.cameraTrackingEnabled = i.cameraTrackingEnabled);
327
334
  const o = e ? "virtual" : "sun";
328
335
  let a;
329
- n?.type === o ? a = n : a = e ? new me() : new pe(), a.set(s), t.lighting = a, e || (this._stopPlaying(), this.#o.value && (this.#o.value.open = !1));
336
+ n?.type === o ? a = n : a = e ? new fe() : new me({
337
+ date: T(
338
+ T(this.localDate, this.timeSliderPosition ?? 0, "minutes"),
339
+ // this.localDate already includes the UTC offset, so we need to remove the offset to get the correct UTC date for the SunLighting configuration
340
+ this.utcOffset ?? 0
341
+ ),
342
+ displayUTCOffset: this.utcOffset
343
+ }), a.set(s), t.lighting = a, e || (this._stopPlaying(), this.#l.value && (this.#l.value.open = !1));
330
344
  }
331
345
  get currentSeason() {
332
- const e = this._view?.camera?.position?.latitude ?? 0, t = ee(e);
333
- return Re(this.localDate, t);
346
+ const e = this._view?.camera?.position?.latitude ?? 0, t = te(e);
347
+ return Je(this.localDate, t);
334
348
  }
335
349
  set currentSeason(e) {
336
350
  this._stopPlaying();
337
- const t = this._view?.camera?.position?.latitude ?? 0, r = ee(t), n = V(e, r);
338
- this.localDate = k(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
351
+ const t = this._view?.camera?.position?.latitude ?? 0, i = te(t), n = R(e, i);
352
+ this.localDate = C(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
339
353
  }
340
354
  get dayPlaying() {
341
355
  return this._playingState === "day";
@@ -347,33 +361,37 @@ class Xe extends fe {
347
361
  return !this._lighting?.directShadowsEnabled;
348
362
  }
349
363
  set _directShadowsDisabled(e) {
350
- this.#e.directShadowsDisabled = e, this._lighting && (this._lighting.directShadowsEnabled = !e);
364
+ this.#s("directShadowsDisabled", e), this._lighting && (this._lighting.directShadowsEnabled = !e);
351
365
  }
352
366
  get utcOffset() {
353
367
  return this._offset.value;
354
368
  }
355
369
  set utcOffset(e) {
356
- this._offset.mutate(e), this.#a();
370
+ this._offset.mutate(e), !this.#s("utcOffset", e) && this.#d();
357
371
  }
358
372
  get timeSliderPosition() {
359
373
  return this._timesliderPosition.value;
360
374
  }
361
375
  set timeSliderPosition(e) {
362
- this._timesliderPosition.mutate(re(e ?? 0, je)), this.#a();
376
+ this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#s("timeSliderPosition", e) && this.#d();
363
377
  }
364
378
  get localDate() {
365
379
  return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
366
380
  }
367
381
  set localDate(e) {
368
382
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/u.test(e)) {
369
- this._localDate.mutate(e), this.#a();
383
+ if (this._localDate.mutate(e), this.#s("localDate", e))
384
+ return;
385
+ this.#d();
370
386
  return;
371
387
  }
372
388
  const t = new Date(e);
373
- if (q(t)) {
389
+ if (Y(t)) {
374
390
  t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
375
- const r = t.toISOString().slice(0, 10);
376
- this._localDate.mutate(r), this.#a();
391
+ const i = t.toISOString().slice(0, 10);
392
+ if (this._localDate.mutate(i), this.#s("localDate", i))
393
+ return;
394
+ this.#d();
377
395
  }
378
396
  }
379
397
  get yearPlaying() {
@@ -386,42 +404,63 @@ class Xe extends fe {
386
404
  await this.manager.destroy();
387
405
  }
388
406
  async load() {
389
- this.#e.utcOffset = this.utcOffset, this.#e.timeSliderPosition = this.timeSliderPosition, this.#e.localDate = this.localDateAsString, this.manager.onLifecycle(() => [
390
- de(() => {
407
+ this.manager.onLifecycle(() => [
408
+ // When camera tracking is enabled, update the displayed timezone whenever the camera crosses into a new rounded
409
+ // UTC offset.
410
+ he(() => {
391
411
  const e = this._view?.camera?.position;
392
- return e ? $e(e) : void 0;
393
- }, (e) => {
394
- const t = this._lighting;
395
- f(t) && t.cameraTrackingEnabled && (t.displayUTCOffset = e);
412
+ return e ? K(e) : void 0;
413
+ }, (e, t) => {
414
+ this.#v(e, t);
396
415
  }, { sync: !0, initial: !0 }),
397
- he(() => !f(this._lighting), () => {
416
+ ge(() => !p(this._lighting), () => {
398
417
  this._stopPlaying();
399
418
  }),
400
- ue.onLocaleChange(() => {
419
+ pe.onLocaleChange(() => {
401
420
  this.requestUpdate();
402
421
  })
403
422
  ]), this.manager.onDisconnected(() => {
404
- this.#t?.remove(), this.#i?.remove(), this.#s?.remove();
423
+ this.#t?.remove(), this.#i?.remove(), this.#o?.remove();
405
424
  });
406
425
  }
407
426
  willUpdate(e) {
408
- if (super.willUpdate(e), !!this.#c && f(this._lighting) && e.has("utcOffset")) {
409
- const t = this.utcOffset ?? 0, r = this._lighting.displayUTCOffset ?? 0, n = this.timeSliderPosition ?? 0, s = this.localDate, o = n - r * 60, a = P(s, o, "minutes"), { minutesSinceMidnight: c, localDate: d } = z(a, t);
410
- this._timesliderPosition.mutate(c), this._localDate.mutate(d);
427
+ if (super.willUpdate(e), !!this.#a && p(this._lighting) && e.has("utcOffset")) {
428
+ const t = this.utcOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = P(this._lighting.date, t);
429
+ this._timesliderPosition.mutate(i), this._localDate.mutate(n);
411
430
  }
412
431
  }
413
- #c;
432
+ #a;
414
433
  async loaded() {
415
434
  const e = new AbortController();
416
435
  this.manager.onDisconnected(() => ({
417
436
  remove: () => {
418
437
  e.abort();
419
438
  }
420
- })), await xe(ge(() => this._view?.ready, { signal: e.signal }).then(() => {
421
- this.utcOffset = this.#e.utcOffset ?? this.utcOffset, this.timeSliderPosition = this.#e.timeSliderPosition ?? this.timeSliderPosition, this.localDate = this.#e.localDate ?? this.localDate, this.#e.directShadowsDisabled != null && (this._directShadowsDisabled = this.#e.directShadowsDisabled), this.#e.sunlightingDisabled != null && (this._sunlightingDisabled = this.#e.sunlightingDisabled), this.#e = {};
422
- const t = this._playingState;
423
- t !== "none" && this.#t == null && this._play(t);
424
- })), this.#c = !0;
439
+ })), await Se(ue(() => this._view?.ready, { signal: e.signal }).then(() => {
440
+ const t = this._lighting, i = this._view?.camera?.position;
441
+ if (this.#e.utcOffset == null && p(t) && t.displayUTCOffset == null && i) {
442
+ const s = K(i);
443
+ this.#g(s, t);
444
+ }
445
+ this.#m();
446
+ const n = this._playingState;
447
+ n !== "none" && this.#t == null && this._play(n);
448
+ })), this.#a = !0;
449
+ }
450
+ #v(e, t) {
451
+ const i = this._lighting;
452
+ if (!(!this.#a || !p(i) || !i.cameraTrackingEnabled || e == null)) {
453
+ if (t == null && i.displayUTCOffset == null) {
454
+ this.#g(e, i);
455
+ return;
456
+ }
457
+ i.displayUTCOffset != null && (i.displayUTCOffset = e), this.#g(e, i);
458
+ }
459
+ }
460
+ #g(e, t) {
461
+ this._offset.mutate(e);
462
+ const { minutesSinceMidnight: i, localDate: n } = P(t.date, e);
463
+ this._timesliderPosition.mutate(i), this._localDate.mutate(n), this.requestUpdate();
425
464
  }
426
465
  _emitUserDateTimeChangeEvent() {
427
466
  this.isConnected && this.arcgisUserDateTimeChange.emit();
@@ -429,19 +468,19 @@ class Xe extends fe {
429
468
  _stopPlaying() {
430
469
  this._playingState = "none";
431
470
  }
432
- #s;
433
- #m(e) {
434
- if (this.#s)
471
+ #o;
472
+ #w(e) {
473
+ if (this.#o)
435
474
  return;
436
475
  const t = setTimeout(() => {
437
- const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = z(n, r);
438
- this._timesliderPosition.mutate(s), this.#s?.remove();
439
- }, this.#h);
440
- this.#s = N(() => {
441
- clearTimeout(t), this.#s = void 0;
442
- const r = this._lighting;
443
- if (f(r)) {
444
- const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } = z(s, n);
476
+ const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = P(n, i);
477
+ this._timesliderPosition.mutate(s), this.#o?.remove();
478
+ }, this.#p);
479
+ this.#o = N(() => {
480
+ clearTimeout(t), this.#o = void 0;
481
+ const i = this._lighting;
482
+ if (p(i)) {
483
+ const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = P(s, n);
445
484
  this._timesliderPosition.mutate(o);
446
485
  }
447
486
  });
@@ -451,23 +490,23 @@ class Xe extends fe {
451
490
  const t = this._view;
452
491
  if (t == null || this._sunlightingDisabled)
453
492
  return;
454
- const r = t.environment.lighting;
455
- if (!f(r))
493
+ const i = t.environment.lighting;
494
+ if (!p(i))
456
495
  return;
457
496
  let n = 0;
458
497
  this.#t = Ze({
459
498
  mode: e,
460
- lighting: r,
499
+ lighting: i,
461
500
  beforeProgress: () => {
462
- n = this.#p ?? 0;
501
+ n = this.#b ?? 0;
463
502
  },
464
503
  onProgress: (s, o) => {
465
- this._timesliderPosition.mutate(n), this.#m(o);
504
+ this._timesliderPosition.mutate(n), this.#w(o);
466
505
  },
467
506
  getPlaySpeed: () => {
468
507
  const s = this._view, o = this._view?.environment.lighting;
469
- if (s != null && f(o)) {
470
- const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = Ge(o.date, a, c, o.displayUTCOffset ?? 0);
508
+ if (s != null && p(o)) {
509
+ const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = qe(o.date, a, c, o.displayUTCOffset ?? 0);
471
510
  return We(d, l, o.date, Qe) * this.playSpeedMultiplier;
472
511
  } else
473
512
  return L * this.playSpeedMultiplier;
@@ -475,42 +514,42 @@ class Xe extends fe {
475
514
  });
476
515
  }
477
516
  render() {
478
- const { messages: e, dateOrSeason: t } = this, r = this._sunlightingDisabled, n = "m";
517
+ const { messages: e, dateOrSeason: t } = this, i = this._sunlightingDisabled, n = "m";
479
518
  if (!(this._view?.type === "3d"))
480
- return W({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: p`<div class="unsupported"><p>${e.unsupported}</p></div>` });
519
+ return W({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`<div class="unsupported"><p>${e.unsupported}</p></div>` });
481
520
  const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
482
- return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: p`${a ? void 0 : p`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${B({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${B({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
521
+ return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
483
522
  this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
484
- }} ${Y(this.#l)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: ie({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
523
+ }} ${G(this.#h)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
485
524
  this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
486
- }, scale: n }) })}${D({ hidden: this.hideTimezone, children: p`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
525
+ }, scale: n }) })}${D({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
487
526
  const l = +d.target.value;
488
527
  this.utcOffset = l / 60, this._stopPlaying();
489
- }} ${Y(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: t === "date" ? this.#g({ scale: n, disabled: r }) : this.#u({ scale: n, disabled: r }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: it({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
528
+ }} ${G(this.#l)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: t === "date" ? this.#f({ scale: n, disabled: i }) : this.#_({ scale: n, disabled: i }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: it({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
490
529
  this._sunlightingDisabled = !d;
491
530
  } }) })}${D({ hidden: this.hideShadowsToggle, children: rt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
492
531
  this._directShadowsDisabled = !d;
493
532
  }, shadowEnabled: !this._directShadowsDisabled }) })}` });
494
533
  }
495
534
  }
496
- function ie({ disabled: i, playing: e, onClick: t, label: r, scale: n = "m" }) {
497
- return p`<calcite-button appearance=solid .scale=${n} .disabled=${i} .iconStart=${e ? "pause-f" : "play-f"} .label=${r} @click=${t} round title=${r ?? R} type=button></calcite-button>`;
535
+ function re({ disabled: r, playing: e, onClick: t, label: i, scale: n = "m" }) {
536
+ return m`<calcite-button appearance=solid .scale=${n} .disabled=${r} .iconStart=${e ? "pause-f" : "play-f"} .label=${i} @click=${t} round title=${i ?? J} type=button></calcite-button>`;
498
537
  }
499
- function et({ disabled: i, date: e, onDateChange: t, scale: r }) {
500
- return p`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`;
538
+ function et({ disabled: r, date: e, onDateChange: t, scale: i }) {
539
+ return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`;
501
540
  }
502
- function tt({ messages: i, disabled: e, scale: t, selectedSeason: r, onSeasonChange: n }) {
503
- return p`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${(s) => {
541
+ function tt({ messages: r, disabled: e, scale: t, selectedSeason: i, onSeasonChange: n }) {
542
+ return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${t} .value=${i} @calciteSelectChange=${(s) => {
504
543
  n(s);
505
- }}>${J.map((s) => p`<calcite-option .selected=${r === s} .value=${s}>${i[s]}</calcite-option>`)}</calcite-select>`;
544
+ }}>${F.map((s) => m`<calcite-option .selected=${i === s} .value=${s}>${r[s]}</calcite-option>`)}</calcite-select>`;
506
545
  }
507
- function it({ messages: i, sunlightingEnabled: e, onSunLightingToggle: t, scale: r }) {
508
- return p`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? R}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`;
546
+ function it({ messages: r, sunlightingEnabled: e, onSunLightingToggle: t, scale: i }) {
547
+ return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`;
509
548
  }
510
- function rt({ messages: i, shadowEnabled: e, onShadowCheckboxChange: t, scale: r }) {
511
- return p`<calcite-label layout=inline .scale=${r} title=${i?.tooltip ?? R}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`;
549
+ function rt({ messages: r, shadowEnabled: e, onShadowCheckboxChange: t, scale: i }) {
550
+ return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`;
512
551
  }
513
- ce("arcgis-daylight", Xe);
552
+ de("arcgis-daylight", Xe);
514
553
  export {
515
554
  Xe as ArcgisDaylight
516
555
  };