@telemetryos/sdk 1.7.2 → 1.7.3

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.
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
- import on, { useEffect as R, useState as E } from "react";
1
+ import oe, { useEffect as _, useState as E } from "react";
2
2
  import { environment as C } from "./index.js";
3
- var w = { exports: {} }, v = {};
3
+ var R = { exports: {} }, k = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,29 +10,29 @@ var w = { exports: {} }, v = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var V;
14
- function an() {
15
- if (V) return v;
16
- V = 1;
17
- var e = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
18
- function l(d, s, u) {
13
+ var D;
14
+ function ae() {
15
+ if (D) return k;
16
+ D = 1;
17
+ var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
+ function d(c, i, l) {
19
19
  var f = null;
20
- if (u !== void 0 && (f = "" + u), s.key !== void 0 && (f = "" + s.key), "key" in s) {
21
- u = {};
22
- for (var m in s)
23
- m !== "key" && (u[m] = s[m]);
24
- } else u = s;
25
- return s = u.ref, {
26
- $$typeof: e,
27
- type: d,
20
+ if (l !== void 0 && (f = "" + l), i.key !== void 0 && (f = "" + i.key), "key" in i) {
21
+ l = {};
22
+ for (var g in i)
23
+ g !== "key" && (l[g] = i[g]);
24
+ } else l = i;
25
+ return i = l.ref, {
26
+ $$typeof: n,
27
+ type: c,
28
28
  key: f,
29
- ref: s !== void 0 ? s : null,
30
- props: u
29
+ ref: i !== void 0 ? i : null,
30
+ props: l
31
31
  };
32
32
  }
33
- return v.Fragment = i, v.jsx = l, v.jsxs = l, v;
33
+ return k.Fragment = t, k.jsx = d, k.jsxs = d, k;
34
34
  }
35
- var k = {};
35
+ var y = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -43,14 +43,14 @@ var k = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var M;
46
- function sn() {
46
+ function se() {
47
47
  return M || (M = 1, process.env.NODE_ENV !== "production" && (function() {
48
- function e(n) {
49
- if (n == null) return null;
50
- if (typeof n == "function")
51
- return n.$$typeof === en ? null : n.displayName || n.name || null;
52
- if (typeof n == "string") return n;
53
- switch (n) {
48
+ function n(e) {
49
+ if (e == null) return null;
50
+ if (typeof e == "function")
51
+ return e.$$typeof === ne ? null : e.displayName || e.name || null;
52
+ if (typeof e == "string") return e;
53
+ switch (e) {
54
54
  case T:
55
55
  return "Fragment";
56
56
  case G:
@@ -61,224 +61,224 @@ function sn() {
61
61
  return "Suspense";
62
62
  case Z:
63
63
  return "SuspenseList";
64
- case nn:
64
+ case ee:
65
65
  return "Activity";
66
66
  }
67
- if (typeof n == "object")
68
- switch (typeof n.tag == "number" && console.error(
67
+ if (typeof e == "object")
68
+ switch (typeof e.tag == "number" && console.error(
69
69
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
- ), n.$$typeof) {
70
+ ), e.$$typeof) {
71
71
  case J:
72
72
  return "Portal";
73
73
  case B:
74
- return n.displayName || "Context";
74
+ return e.displayName || "Context";
75
75
  case X:
76
- return (n._context.displayName || "Context") + ".Consumer";
76
+ return (e._context.displayName || "Context") + ".Consumer";
77
77
  case H:
78
- var r = n.render;
79
- return n = n.displayName, n || (n = r.displayName || r.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
78
+ var r = e.render;
79
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
80
80
  case K:
81
- return r = n.displayName || null, r !== null ? r : e(n.type) || "Memo";
81
+ return r = e.displayName || null, r !== null ? r : n(e.type) || "Memo";
82
82
  case j:
83
- r = n._payload, n = n._init;
83
+ r = e._payload, e = e._init;
84
84
  try {
85
- return e(n(r));
85
+ return n(e(r));
86
86
  } catch {
87
87
  }
88
88
  }
89
89
  return null;
90
90
  }
91
- function i(n) {
92
- return "" + n;
91
+ function t(e) {
92
+ return "" + e;
93
93
  }
94
- function l(n) {
94
+ function d(e) {
95
95
  try {
96
- i(n);
96
+ t(e);
97
97
  var r = !1;
98
98
  } catch {
99
99
  r = !0;
100
100
  }
101
101
  if (r) {
102
102
  r = console;
103
- var t = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
104
- return t.call(
103
+ var o = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
104
+ return o.call(
105
105
  r,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- o
108
- ), i(n);
107
+ a
108
+ ), t(e);
109
109
  }
110
110
  }
111
- function d(n) {
112
- if (n === T) return "<>";
113
- if (typeof n == "object" && n !== null && n.$$typeof === j)
111
+ function c(e) {
112
+ if (e === T) return "<>";
113
+ if (typeof e == "object" && e !== null && e.$$typeof === j)
114
114
  return "<...>";
115
115
  try {
116
- var r = e(n);
116
+ var r = n(e);
117
117
  return r ? "<" + r + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
- function s() {
123
- var n = N.A;
124
- return n === null ? null : n.getOwner();
122
+ function i() {
123
+ var e = A.A;
124
+ return e === null ? null : e.getOwner();
125
125
  }
126
- function u() {
126
+ function l() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
- function f(n) {
130
- if (L.call(n, "key")) {
131
- var r = Object.getOwnPropertyDescriptor(n, "key").get;
129
+ function f(e) {
130
+ if (L.call(e, "key")) {
131
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
132
132
  if (r && r.isReactWarning) return !1;
133
133
  }
134
- return n.key !== void 0;
134
+ return e.key !== void 0;
135
135
  }
136
- function m(n, r) {
137
- function t() {
138
- I || (I = !0, console.error(
136
+ function g(e, r) {
137
+ function o() {
138
+ z || (z = !0, console.error(
139
139
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
140
  r
141
141
  ));
142
142
  }
143
- t.isReactWarning = !0, Object.defineProperty(n, "key", {
144
- get: t,
143
+ o.isReactWarning = !0, Object.defineProperty(e, "key", {
144
+ get: o,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function h() {
149
- var n = e(this.type);
150
- return Y[n] || (Y[n] = !0, console.error(
148
+ function x() {
149
+ var e = n(this.type);
150
+ return I[e] || (I[e] = !0, console.error(
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
- )), n = this.props.ref, n !== void 0 ? n : null;
152
+ )), e = this.props.ref, e !== void 0 ? e : null;
153
153
  }
154
- function S(n, r, t, o, y, O) {
155
- var a = t.ref;
156
- return n = {
154
+ function S(e, r, o, a, w, O) {
155
+ var s = o.ref;
156
+ return e = {
157
157
  $$typeof: F,
158
- type: n,
158
+ type: e,
159
159
  key: r,
160
- props: t,
161
- _owner: o
162
- }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(n, "ref", {
160
+ props: o,
161
+ _owner: a
162
+ }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
163
163
  enumerable: !1,
164
- get: h
165
- }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
164
+ get: x
165
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
168
168
  writable: !0,
169
169
  value: 0
170
- }), Object.defineProperty(n, "_debugInfo", {
170
+ }), Object.defineProperty(e, "_debugInfo", {
171
171
  configurable: !1,
172
172
  enumerable: !1,
173
173
  writable: !0,
174
174
  value: null
175
- }), Object.defineProperty(n, "_debugStack", {
175
+ }), Object.defineProperty(e, "_debugStack", {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
- value: y
180
- }), Object.defineProperty(n, "_debugTask", {
179
+ value: w
180
+ }), Object.defineProperty(e, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
184
  value: O
185
- }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
185
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
186
186
  }
187
- function p(n, r, t, o, y, O) {
188
- var a = r.children;
189
- if (a !== void 0)
190
- if (o)
191
- if (rn(a)) {
192
- for (o = 0; o < a.length; o++)
193
- x(a[o]);
194
- Object.freeze && Object.freeze(a);
187
+ function p(e, r, o, a, w, O) {
188
+ var s = r.children;
189
+ if (s !== void 0)
190
+ if (a)
191
+ if (re(s)) {
192
+ for (a = 0; a < s.length; a++)
193
+ v(s[a]);
194
+ Object.freeze && Object.freeze(s);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
- else x(a);
199
+ else v(s);
200
200
  if (L.call(r, "key")) {
201
- a = e(n);
202
- var _ = Object.keys(r).filter(function(tn) {
203
- return tn !== "key";
201
+ s = n(e);
202
+ var h = Object.keys(r).filter(function(te) {
203
+ return te !== "key";
204
204
  });
205
- o = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", D[a + o] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ a = 0 < h.length ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}", U[s + a] || (h = 0 < h.length ? "{" + h.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- o,
213
212
  a,
214
- _,
215
- a
216
- ), D[a + o] = !0);
213
+ s,
214
+ h,
215
+ s
216
+ ), U[s + a] = !0);
217
217
  }
218
- if (a = null, t !== void 0 && (l(t), a = "" + t), f(r) && (l(r.key), a = "" + r.key), "key" in r) {
219
- t = {};
218
+ if (s = null, o !== void 0 && (d(o), s = "" + o), f(r) && (d(r.key), s = "" + r.key), "key" in r) {
219
+ o = {};
220
220
  for (var P in r)
221
- P !== "key" && (t[P] = r[P]);
222
- } else t = r;
223
- return a && m(
224
- t,
225
- typeof n == "function" ? n.displayName || n.name || "Unknown" : n
221
+ P !== "key" && (o[P] = r[P]);
222
+ } else o = r;
223
+ return s && g(
224
+ o,
225
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
226
226
  ), S(
227
- n,
228
- a,
229
- t,
230
- s(),
231
- y,
227
+ e,
228
+ s,
229
+ o,
230
+ i(),
231
+ w,
232
232
  O
233
233
  );
234
234
  }
235
- function x(n) {
236
- g(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === j && (n._payload.status === "fulfilled" ? g(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
235
+ function v(e) {
236
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === j && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
237
237
  }
238
- function g(n) {
239
- return typeof n == "object" && n !== null && n.$$typeof === F;
238
+ function m(e) {
239
+ return typeof e == "object" && e !== null && e.$$typeof === F;
240
240
  }
241
- var b = on, F = Symbol.for("react.transitional.element"), J = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), B = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), nn = Symbol.for("react.activity"), en = Symbol.for("react.client.reference"), N = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, rn = Array.isArray, A = console.createTask ? console.createTask : function() {
241
+ var b = oe, F = Symbol.for("react.transitional.element"), J = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), B = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), A = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, re = Array.isArray, N = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  b = {
245
- react_stack_bottom_frame: function(n) {
246
- return n();
245
+ react_stack_bottom_frame: function(e) {
246
+ return e();
247
247
  }
248
248
  };
249
- var I, Y = {}, z = b.react_stack_bottom_frame.bind(
249
+ var z, I = {}, Y = b.react_stack_bottom_frame.bind(
250
250
  b,
251
- u
252
- )(), $ = A(d(u)), D = {};
253
- k.Fragment = T, k.jsx = function(n, r, t) {
254
- var o = 1e4 > N.recentlyCreatedOwnerStacks++;
251
+ l
252
+ )(), $ = N(c(l)), U = {};
253
+ y.Fragment = T, y.jsx = function(e, r, o) {
254
+ var a = 1e4 > A.recentlyCreatedOwnerStacks++;
255
255
  return p(
256
- n,
256
+ e,
257
257
  r,
258
- t,
258
+ o,
259
259
  !1,
260
- o ? Error("react-stack-top-frame") : z,
261
- o ? A(d(n)) : $
260
+ a ? Error("react-stack-top-frame") : Y,
261
+ a ? N(c(e)) : $
262
262
  );
263
- }, k.jsxs = function(n, r, t) {
264
- var o = 1e4 > N.recentlyCreatedOwnerStacks++;
263
+ }, y.jsxs = function(e, r, o) {
264
+ var a = 1e4 > A.recentlyCreatedOwnerStacks++;
265
265
  return p(
266
- n,
266
+ e,
267
267
  r,
268
- t,
268
+ o,
269
269
  !0,
270
- o ? Error("react-stack-top-frame") : z,
271
- o ? A(d(n)) : $
270
+ a ? Error("react-stack-top-frame") : Y,
271
+ a ? N(c(e)) : $
272
272
  );
273
273
  };
274
- })()), k;
274
+ })()), y;
275
275
  }
276
- var U;
277
- function cn() {
278
- return U || (U = 1, process.env.NODE_ENV === "production" ? w.exports = an() : w.exports = sn()), w.exports;
276
+ var W;
277
+ function ie() {
278
+ return W || (W = 1, process.env.NODE_ENV === "production" ? R.exports = ae() : R.exports = se()), R.exports;
279
279
  }
280
- var c = cn();
281
- const un = `:root {
280
+ var u = ie();
281
+ const ce = `:root {
282
282
  --background: 0 0% 100%;
283
283
  --foreground: 222.2 84% 4.9%;
284
284
 
@@ -387,7 +387,7 @@ const un = `:root {
387
387
  Text Inputs
388
388
  ============================================================================= */
389
389
 
390
- .settings__input-frame > * {
390
+ .settings__input-frame>* {
391
391
  height: 40px;
392
392
  width: 100%;
393
393
  font-size: 14px;
@@ -398,17 +398,17 @@ const un = `:root {
398
398
  color: hsl(var(--foreground));
399
399
  }
400
400
 
401
- .settings__input-frame > *:focus {
401
+ .settings__input-frame>*:focus {
402
402
  outline: 1px solid hsl(var(--primary));
403
403
  outline-offset: 0;
404
404
  }
405
405
 
406
- .settings__input-frame > *::placeholder {
406
+ .settings__input-frame>*::placeholder {
407
407
  color: hsl(var(--muted-foreground));
408
408
  opacity: 1;
409
409
  }
410
410
 
411
- .settings__textarea-frame > textarea {
411
+ .settings__textarea-frame>textarea {
412
412
  width: 100%;
413
413
  min-height: 80px;
414
414
  font-family: inherit;
@@ -422,12 +422,12 @@ const un = `:root {
422
422
  resize: vertical;
423
423
  }
424
424
 
425
- .settings__textarea-frame > textarea:focus {
425
+ .settings__textarea-frame>textarea:focus {
426
426
  outline: 1px solid hsl(var(--primary));
427
427
  outline-offset: 0;
428
428
  }
429
429
 
430
- .settings__textarea-frame > textarea::placeholder {
430
+ .settings__textarea-frame>textarea::placeholder {
431
431
  color: hsl(var(--muted-foreground));
432
432
  opacity: 1;
433
433
  }
@@ -436,7 +436,7 @@ const un = `:root {
436
436
  Selection Inputs
437
437
  ============================================================================= */
438
438
 
439
- .settings__select-frame > select {
439
+ .settings__select-frame>select {
440
440
  appearance: none;
441
441
  height: 40px;
442
442
  width: 100%;
@@ -452,11 +452,11 @@ const un = `:root {
452
452
  cursor: pointer;
453
453
  }
454
454
 
455
- .settings__select-frame > select:hover {
455
+ .settings__select-frame>select:hover {
456
456
  background-color: hsl(var(--accent));
457
457
  }
458
458
 
459
- .settings__select-frame > select:focus {
459
+ .settings__select-frame>select:focus {
460
460
  outline: 1px solid hsl(var(--primary));
461
461
  outline-offset: 0;
462
462
  }
@@ -467,7 +467,7 @@ const un = `:root {
467
467
  gap: 8px;
468
468
  }
469
469
 
470
- .settings__slider-frame > input[type="range"] {
470
+ .settings__slider-frame>input[type="range"] {
471
471
  flex: 1;
472
472
  height: 8px;
473
473
  background: hsl(var(--secondary));
@@ -475,15 +475,14 @@ const un = `:root {
475
475
  outline: none;
476
476
  -webkit-appearance: none;
477
477
  appearance: none;
478
- transition: background 0.15s;
479
478
  }
480
479
 
481
- .settings__slider-frame > input[type="range"]:focus,
482
- .settings__slider-frame > input[type="range"]:active {
480
+ .settings__slider-frame>input[type="range"]:focus,
481
+ .settings__slider-frame>input[type="range"]:active {
483
482
  background: hsl(var(--primary));
484
483
  }
485
484
 
486
- .settings__slider-frame > input[type="range"]::-webkit-slider-thumb {
485
+ .settings__slider-frame>input[type="range"]::-webkit-slider-thumb {
487
486
  -webkit-appearance: none;
488
487
  appearance: none;
489
488
  width: 20px;
@@ -494,7 +493,7 @@ const un = `:root {
494
493
  cursor: pointer;
495
494
  }
496
495
 
497
- .settings__slider-frame > input[type="range"]::-moz-range-thumb {
496
+ .settings__slider-frame>input[type="range"]::-moz-range-thumb {
498
497
  width: 20px;
499
498
  height: 20px;
500
499
  background: hsl(var(--background));
@@ -503,7 +502,7 @@ const un = `:root {
503
502
  cursor: pointer;
504
503
  }
505
504
 
506
- .settings__slider-frame > span {
505
+ .settings__slider-frame>span {
507
506
  min-width: 4ch;
508
507
  text-align: right;
509
508
  font-size: 14px;
@@ -522,7 +521,7 @@ const un = `:root {
522
521
  cursor: pointer;
523
522
  }
524
523
 
525
- .settings__switch-frame > input[type="checkbox"] {
524
+ .settings__switch-frame>input[type="checkbox"] {
526
525
  appearance: none;
527
526
  width: 44px;
528
527
  height: 24px;
@@ -534,7 +533,7 @@ const un = `:root {
534
533
  flex-shrink: 0;
535
534
  }
536
535
 
537
- .settings__switch-frame > input[type="checkbox"]::after {
536
+ .settings__switch-frame>input[type="checkbox"]::after {
538
537
  content: '';
539
538
  position: absolute;
540
539
  top: 2px;
@@ -543,15 +542,15 @@ const un = `:root {
543
542
  height: 20px;
544
543
  background: hsl(var(--background));
545
544
  border-radius: 50%;
546
- box-shadow: 0 1px 3px rgba(0,0,0,0.3);
545
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
547
546
  transition: transform 0.2s;
548
547
  }
549
548
 
550
- .settings__switch-frame > input[type="checkbox"]:checked {
549
+ .settings__switch-frame>input[type="checkbox"]:checked {
551
550
  background: hsl(var(--primary));
552
551
  }
553
552
 
554
- .settings__switch-frame > input[type="checkbox"]:checked::after {
553
+ .settings__switch-frame>input[type="checkbox"]:checked::after {
555
554
  transform: translateX(20px);
556
555
  }
557
556
 
@@ -568,7 +567,7 @@ const un = `:root {
568
567
  cursor: pointer;
569
568
  }
570
569
 
571
- .settings__checkbox-frame > input[type="checkbox"] {
570
+ .settings__checkbox-frame>input[type="checkbox"] {
572
571
  appearance: none;
573
572
  width: 16px;
574
573
  height: 16px;
@@ -579,11 +578,11 @@ const un = `:root {
579
578
  position: relative;
580
579
  }
581
580
 
582
- .settings__checkbox-frame > input[type="checkbox"]:checked {
581
+ .settings__checkbox-frame>input[type="checkbox"]:checked {
583
582
  background: hsl(var(--primary));
584
583
  }
585
584
 
586
- .settings__checkbox-frame > input[type="checkbox"]:checked::after {
585
+ .settings__checkbox-frame>input[type="checkbox"]:checked::after {
587
586
  content: '';
588
587
  position: absolute;
589
588
  top: 1px;
@@ -608,7 +607,7 @@ const un = `:root {
608
607
  cursor: pointer;
609
608
  }
610
609
 
611
- .settings__radio-frame > input[type="radio"] {
610
+ .settings__radio-frame>input[type="radio"] {
612
611
  appearance: none;
613
612
  width: 16px;
614
613
  height: 16px;
@@ -619,11 +618,11 @@ const un = `:root {
619
618
  position: relative;
620
619
  }
621
620
 
622
- .settings__radio-frame > input[type="radio"]:checked {
621
+ .settings__radio-frame>input[type="radio"]:checked {
623
622
  background: hsl(var(--primary));
624
623
  }
625
624
 
626
- .settings__radio-frame > input[type="radio"]:checked::after {
625
+ .settings__radio-frame>input[type="radio"]:checked::after {
627
626
  content: '';
628
627
  position: absolute;
629
628
  top: 4px;
@@ -643,7 +642,7 @@ const un = `:root {
643
642
  Actions
644
643
  ============================================================================= */
645
644
 
646
- .settings__button-frame > button {
645
+ .settings__button-frame>button {
647
646
  padding: 8px 16px;
648
647
  background: hsl(var(--background));
649
648
  border: 1px solid hsl(var(--border));
@@ -652,134 +651,156 @@ const un = `:root {
652
651
  font-size: 14px;
653
652
  font-family: inherit;
654
653
  cursor: pointer;
655
- transition: background-color 0.15s, border-color 0.15s;
656
654
  }
657
655
 
658
- .settings__button-frame > button:hover {
656
+ .settings__button-frame>button:hover {
659
657
  background: hsl(var(--accent));
660
658
  }
661
659
 
662
- .settings__button-frame > button.active,
663
- .settings__button-frame > button[data-active="true"] {
660
+ .settings__button-frame>button.active,
661
+ .settings__button-frame>button[data-active="true"] {
664
662
  background: hsl(var(--primary));
665
663
  border-color: hsl(var(--primary));
666
664
  color: hsl(var(--primary-foreground));
667
665
  }
668
666
  `;
669
- let W = !1;
670
- function ln() {
671
- if (W || typeof document > "u")
667
+ let V = !1;
668
+ function ue() {
669
+ if (V || typeof document > "u")
672
670
  return;
673
- const e = document.createElement("style");
674
- e.setAttribute("data-telemetryos-sdk", ""), e.textContent = un, document.head.appendChild(e), W = !0;
671
+ const n = document.createElement("style");
672
+ n.setAttribute("data-telemetryos-sdk", ""), n.textContent = ce, document.head.appendChild(n), V = !0;
675
673
  }
676
- ln();
677
- function gn({ children: e }) {
678
- return R(() => {
679
- const i = window.matchMedia("(prefers-color-scheme: dark)"), l = (u) => {
674
+ ue();
675
+ function pe({ children: n }) {
676
+ return _(() => {
677
+ const t = window.matchMedia("(prefers-color-scheme: dark)"), d = (l) => {
680
678
  let f;
681
- u === "system" ? f = i.matches : f = u !== "light", f ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
682
- }, d = C().subscribeColorScheme(l);
683
- d.catch(console.error);
684
- const s = () => {
685
- C().getColorScheme().then(l).catch(console.error);
679
+ l === "system" ? f = t.matches : f = l !== "light", f ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
680
+ }, c = C().subscribeColorScheme(d);
681
+ c.catch(console.error);
682
+ const i = () => {
683
+ C().getColorScheme().then(d).catch(console.error);
686
684
  };
687
- return i.addEventListener("change", s), () => {
688
- d.then(() => C().unsubscribeColorScheme(l)).catch(console.error), i.removeEventListener("change", s);
685
+ return t.addEventListener("change", i), () => {
686
+ c.then(() => C().unsubscribeColorScheme(d)).catch(console.error), t.removeEventListener("change", i);
689
687
  };
690
- }, []), c.jsx("div", { className: "settings__container", children: e });
688
+ }, []), u.jsx("div", { className: "settings__container", children: n });
691
689
  }
692
- function mn({ children: e }) {
693
- return c.jsx("div", { className: "settings__box", children: e });
690
+ function me({ children: n }) {
691
+ return u.jsx("div", { className: "settings__box", children: n });
694
692
  }
695
- function bn() {
696
- return c.jsx("hr", { className: "settings__divider" });
693
+ function ge() {
694
+ return u.jsx("hr", { className: "settings__divider" });
697
695
  }
698
- function _n({ children: e }) {
699
- return c.jsx("div", { className: "settings__field", children: e });
696
+ function be({ children: n }) {
697
+ return u.jsx("div", { className: "settings__field", children: n });
700
698
  }
701
- function hn({ children: e }) {
702
- return c.jsx("div", { className: "settings__label", children: e });
699
+ function he({ children: n }) {
700
+ return u.jsx("div", { className: "settings__label", children: n });
703
701
  }
704
- function xn({ children: e }) {
705
- return c.jsx("div", { className: "settings__input-frame", children: e });
702
+ function _e({ children: n }) {
703
+ return u.jsx("div", { className: "settings__input-frame", children: n });
706
704
  }
707
- function vn({ children: e }) {
708
- return c.jsx("div", { className: "settings__textarea-frame", children: e });
705
+ function xe({ children: n }) {
706
+ return u.jsx("div", { className: "settings__textarea-frame", children: n });
709
707
  }
710
- function kn({ children: e }) {
711
- return c.jsx("div", { className: "settings__select-frame", children: e });
708
+ function ve({ children: n }) {
709
+ return u.jsx("div", { className: "settings__select-frame", children: n });
712
710
  }
713
- function yn({ children: e }) {
714
- return c.jsx("div", { className: "settings__slider-frame", children: e });
711
+ function ke({ children: n }) {
712
+ return u.jsx("div", { className: "settings__slider-frame", children: n });
715
713
  }
716
- function En({ children: e }) {
717
- return c.jsx("label", { className: "settings__switch-frame", children: e });
714
+ function ye({ children: n }) {
715
+ return u.jsx("label", { className: "settings__switch-frame", children: n });
718
716
  }
719
- function wn({ children: e }) {
720
- return c.jsx("span", { className: "settings__switch-label", children: e });
717
+ function Ee({ children: n }) {
718
+ return u.jsx("span", { className: "settings__switch-label", children: n });
721
719
  }
722
- function Rn({ children: e }) {
723
- return c.jsx("label", { className: "settings__checkbox-frame", children: e });
720
+ function we({ children: n }) {
721
+ return u.jsx("label", { className: "settings__checkbox-frame", children: n });
724
722
  }
725
- function Sn({ children: e }) {
726
- return c.jsx("span", { className: "settings__checkbox-label", children: e });
723
+ function Re({ children: n }) {
724
+ return u.jsx("span", { className: "settings__checkbox-label", children: n });
727
725
  }
728
- function Tn({ children: e }) {
729
- return c.jsx("label", { className: "settings__radio-frame", children: e });
726
+ function Se({ children: n }) {
727
+ return u.jsx("label", { className: "settings__radio-frame", children: n });
730
728
  }
731
- function jn({ children: e }) {
732
- return c.jsx("span", { className: "settings__radio-label", children: e });
729
+ function Te({ children: n }) {
730
+ return u.jsx("span", { className: "settings__radio-label", children: n });
733
731
  }
734
- function Nn({ children: e }) {
735
- return c.jsx("div", { className: "settings__button-frame", children: e });
732
+ function je({ children: n }) {
733
+ return u.jsx("div", { className: "settings__button-frame", children: n });
736
734
  }
737
- function dn(e, i, l, d = 0) {
738
- var s;
739
- const [u, f] = E(!0), [m] = E(l), [h, S] = E(void 0), [p, x] = E(void 0);
740
- return R(() => {
741
- const g = (b) => {
735
+ function le(n, t, d, c = 0) {
736
+ var i;
737
+ const [l, f] = E(!0), [g] = E(d), [x, S] = E(void 0), [p, v] = E(void 0);
738
+ return _(() => {
739
+ const m = (b) => {
742
740
  S(b), f(!1);
743
741
  };
744
- return e.subscribe(i, g).catch(console.error), () => {
745
- e.unsubscribe(i, g).catch(console.error);
742
+ return n.subscribe(t, m).catch(console.error), () => {
743
+ n.unsubscribe(t, m).catch(console.error);
746
744
  };
747
- }, [e, i]), R(() => {
745
+ }, [n, t]), _(() => {
748
746
  if (typeof p < "u") {
749
- const g = setTimeout(() => {
750
- e.set(i, p);
751
- }, d);
752
- return () => clearTimeout(g);
747
+ const m = setTimeout(() => {
748
+ n.set(t, p);
749
+ }, c);
750
+ return () => clearTimeout(m);
753
751
  }
754
- }, [p, e, i, d]), R(() => {
755
- if (JSON.stringify(p) === JSON.stringify(h)) {
756
- const g = setTimeout(() => {
757
- x(void 0);
752
+ }, [p, n, t, c]), _(() => {
753
+ if (JSON.stringify(p) === JSON.stringify(x)) {
754
+ const m = setTimeout(() => {
755
+ v(void 0);
758
756
  }, 500);
759
- return () => clearTimeout(g);
757
+ return () => clearTimeout(m);
760
758
  }
761
- }, [p, h]), [u, (s = p ?? h) !== null && s !== void 0 ? s : m, x];
759
+ }, [p, x]), [l, (i = p ?? x) !== null && i !== void 0 ? i : g, v];
760
+ }
761
+ function Ae(n, t) {
762
+ return (d, c = 0) => le(d, n, t, c);
763
+ }
764
+ function Ne(n) {
765
+ _(() => {
766
+ document.documentElement.style.fontSize = `calc(1vmax * ${n})`;
767
+ }, [n]);
768
+ }
769
+ function Oe() {
770
+ const [n, t] = E(() => window.innerWidth / window.innerHeight);
771
+ return _(() => {
772
+ const c = () => {
773
+ t(window.innerWidth / window.innerHeight);
774
+ };
775
+ return window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
776
+ }, []), n;
762
777
  }
763
- function An(e, i) {
764
- return (l, d = 0) => dn(l, e, i, d);
778
+ function Pe(n, t) {
779
+ return {
780
+ uiWidthFactor: Math.min(t, 1) / n,
781
+ uiHeightFactor: Math.max(t, 1) / n
782
+ };
765
783
  }
766
784
  export {
767
- mn as SettingsBox,
768
- Nn as SettingsButtonFrame,
769
- Rn as SettingsCheckboxFrame,
770
- Sn as SettingsCheckboxLabel,
771
- gn as SettingsContainer,
772
- bn as SettingsDivider,
773
- _n as SettingsField,
774
- xn as SettingsInputFrame,
775
- hn as SettingsLabel,
776
- Tn as SettingsRadioFrame,
777
- jn as SettingsRadioLabel,
778
- kn as SettingsSelectFrame,
779
- yn as SettingsSliderFrame,
780
- En as SettingsSwitchFrame,
781
- wn as SettingsSwitchLabel,
782
- vn as SettingsTextAreaFrame,
783
- An as createUseStoreState,
784
- dn as useStoreState
785
+ me as SettingsBox,
786
+ je as SettingsButtonFrame,
787
+ we as SettingsCheckboxFrame,
788
+ Re as SettingsCheckboxLabel,
789
+ pe as SettingsContainer,
790
+ ge as SettingsDivider,
791
+ be as SettingsField,
792
+ _e as SettingsInputFrame,
793
+ he as SettingsLabel,
794
+ Se as SettingsRadioFrame,
795
+ Te as SettingsRadioLabel,
796
+ ve as SettingsSelectFrame,
797
+ ke as SettingsSliderFrame,
798
+ ye as SettingsSwitchFrame,
799
+ Ee as SettingsSwitchLabel,
800
+ xe as SettingsTextAreaFrame,
801
+ Ae as createUseStoreState,
802
+ le as useStoreState,
803
+ Oe as useUiAspectRatio,
804
+ Pe as useUiResponsiveFactors,
805
+ Ne as useUiScaleToSetRem
785
806
  };