@hot-updater/console 0.33.0 → 0.33.1

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 (63) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/assets/dist-DJX53faP.js +3 -0
  3. package/.output/public/assets/index-CCUspZZV.js +10 -0
  4. package/.output/public/assets/routes-D0t6y5Fr.js +54 -0
  5. package/.output/public/assets/styles-C0q26dS-.css +2 -0
  6. package/.output/server/{__tanstack-start-server-fn-resolver-ySzPUDlM.mjs → __23tanstack-start-server-fn-resolver-B12pVvhf.mjs} +32 -39
  7. package/.output/server/_chunks/ssr-renderer.mjs +14 -3
  8. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +7 -7
  9. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +142 -93
  10. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +32 -11
  11. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +130 -95
  12. package/.output/server/_libs/@tanstack/form-core+[...].mjs +1138 -306
  13. package/.output/server/_libs/@tanstack/react-form+[...].mjs +156 -24
  14. package/.output/server/_libs/@tanstack/react-router+[...].mjs +2658 -1395
  15. package/.output/server/_libs/@tanstack/react-table+[...].mjs +1 -1
  16. package/.output/server/_libs/dayjs.mjs +6 -6
  17. package/.output/server/_libs/h3+rou3+srvx.mjs +30 -42
  18. package/.output/server/_libs/lucide-react.mjs +8 -8
  19. package/.output/server/_libs/next-themes.mjs +1 -1
  20. package/.output/server/_libs/radix-ui__number.mjs +1 -1
  21. package/.output/server/_libs/radix-ui__react-arrow.mjs +2 -2
  22. package/.output/server/_libs/radix-ui__react-collection.mjs +2 -2
  23. package/.output/server/_libs/radix-ui__react-direction.mjs +2 -2
  24. package/.output/server/_libs/radix-ui__react-label.mjs +2 -2
  25. package/.output/server/_libs/radix-ui__react-separator.mjs +2 -2
  26. package/.output/server/_libs/radix-ui__react-slider.mjs +103 -44
  27. package/.output/server/_libs/radix-ui__react-switch.mjs +88 -49
  28. package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -4
  29. package/.output/server/_libs/semver.mjs +97 -52
  30. package/.output/server/_libs/sonner.mjs +1 -1
  31. package/.output/server/_libs/tailwind-merge.mjs +51 -3
  32. package/.output/server/_libs/tanstack__history.mjs +28 -8
  33. package/.output/server/_libs/tanstack__query-core.mjs +200 -174
  34. package/.output/server/_libs/tanstack__react-query.mjs +14 -13
  35. package/.output/server/_ssr/{api-rpc-Bwustks9.mjs → api-rpc-ORImfBFu.mjs} +18 -18
  36. package/.output/server/_ssr/{config.server-xu3W-WAK.mjs → config.server-BSS366KT.mjs} +2 -2
  37. package/.output/server/_ssr/{createServerFn-CdeRXnVy.mjs → createServerFn-DzU0k62V.mjs} +129 -90
  38. package/.output/server/_ssr/{deleteBundle-CXxwjwEZ.mjs → deleteBundle-CuujBAH8.mjs} +2 -2
  39. package/.output/server/_ssr/{dist-CRiLZLfa.mjs → dist-KboydRVk.mjs} +1 -1
  40. package/.output/server/_ssr/empty-plugin-adapters-B4HCzgmM.mjs +5 -0
  41. package/.output/server/_ssr/{getBundleChildren-DFqZ6XMp.mjs → getBundleChildren-CVtSiH5t.mjs} +2 -2
  42. package/.output/server/_ssr/{router-1tw3jh6y.mjs → router-DmdnzGpe.mjs} +7 -8
  43. package/.output/server/_ssr/{routes-D5CmWxI7.mjs → routes-Be7gDfJS.mjs} +36 -39
  44. package/.output/server/_ssr/{sidebar-CgbtXkE2.mjs → sidebar-Cv_H0_Jv.mjs} +5 -5
  45. package/.output/server/_ssr/ssr.mjs +4222 -3153
  46. package/.output/server/_ssr/start-D4SBEASt.mjs +4 -0
  47. package/.output/server/_ssr/{storageProfile-wICk5nZZ.mjs → storageProfile-FVkjPoGb.mjs} +1 -1
  48. package/.output/server/_tanstack-start-manifest_v-BroBMdSR.mjs +20 -0
  49. package/.output/server/index.mjs +124 -168
  50. package/package.json +12 -9
  51. package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +0 -486
  52. package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +0 -1
  53. package/.output/public/assets/clsx-CbprLf2V.js +0 -1
  54. package/.output/public/assets/dist-BzU1qUss.js +0 -9
  55. package/.output/public/assets/main-CmNeAg9B.js +0 -10
  56. package/.output/public/assets/preload-helper-C5ST2IKa.js +0 -1
  57. package/.output/public/assets/routes-wJZuGodi.js +0 -54
  58. package/.output/public/assets/styles-DEbMLh52.css +0 -2
  59. package/.output/server/_libs/hookable.mjs +0 -41
  60. package/.output/server/_libs/tanstack__router-core.mjs +0 -6
  61. package/.output/server/_libs/unctx.mjs +0 -82
  62. package/.output/server/_ssr/start-CoRKunFF.mjs +0 -4
  63. package/.output/server/_tanstack-start-manifest_v-AftZl081.mjs +0 -22
@@ -2326,7 +2326,7 @@ function getCoreRowModel() {
2326
2326
  }, getMemoOptions(table.options, "debugTable", "getRowModel", () => table._autoResetPageIndex()));
2327
2327
  }
2328
2328
  //#endregion
2329
- //#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.mjs
2329
+ //#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.mjs
2330
2330
  /**
2331
2331
  * react-table
2332
2332
  *
@@ -1,11 +1,11 @@
1
1
  import { t as __commonJSMin } from "../_runtime.mjs";
2
- //#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
2
+ //#region ../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js
3
3
  var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  (function(t, e) {
5
5
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
6
6
  })(exports, (function() {
7
7
  "use strict";
8
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
8
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
9
9
  name: "en",
10
10
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
11
11
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
@@ -275,8 +275,8 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
275
275
  }, m.toString = function() {
276
276
  return this.$d.toUTCString();
277
277
  }, M;
278
- }(), k = _.prototype;
279
- return O.prototype = k, [
278
+ }(), Y = _.prototype;
279
+ return O.prototype = Y, [
280
280
  ["$ms", r],
281
281
  ["$s", i],
282
282
  ["$m", s],
@@ -286,7 +286,7 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
286
  ["$y", h],
287
287
  ["$D", d]
288
288
  ].forEach((function(t) {
289
- k[t[1]] = function(e) {
289
+ Y[t[1]] = function(e) {
290
290
  return this.$g(e, t[0], t[1]);
291
291
  };
292
292
  })), O.extend = function(t, e) {
@@ -297,7 +297,7 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
297
297
  }));
298
298
  }));
299
299
  //#endregion
300
- //#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/relativeTime.js
300
+ //#region ../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/relativeTime.js
301
301
  var require_relativeTime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
302
302
  (function(r, e) {
303
303
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (r = "undefined" != typeof globalThis ? globalThis : r || self).dayjs_plugin_relativeTime = e();
@@ -3,7 +3,7 @@ import { PassThrough, Readable } from "node:stream";
3
3
  import { pipeline } from "node:stream/promises";
4
4
  import nodeHTTPS from "node:https";
5
5
  import nodeHTTP2 from "node:http2";
6
- //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_url.mjs
6
+ //#region ../../node_modules/.pnpm/srvx@0.11.16/node_modules/srvx/dist/_chunks/_url.mjs
7
7
  function lazyInherit(target, source, sourceKey) {
8
8
  for (const key of [...Object.getOwnPropertyNames(source), ...Object.getOwnPropertySymbols(source)]) {
9
9
  if (key === "constructor") continue;
@@ -32,20 +32,6 @@ function lazyInherit(target, source, sourceKey) {
32
32
  }
33
33
  }
34
34
  var _needsNormRE = /(?:(?:^|\/)(?:\.|\.\.|%2e|%2e\.|\.%2e|%2e%2e)(?:\/|$))|[\\^\x80-\uffff]/i;
35
- /**
36
- * URL wrapper with fast paths to access to the following props:
37
- *
38
- * - `url.pathname`
39
- * - `url.search`
40
- * - `url.searchParams`
41
- * - `url.protocol`
42
- *
43
- * **NOTES:**
44
- *
45
- * - It is assumed that the input URL is **already encoded** and formatted from an HTTP request and contains no hash.
46
- * - Triggering the setters or getters on other props will deoptimize to full URL parsing.
47
- * - Changes to `searchParams` will be discarded as we don't track them.
48
- */
49
35
  var FastURL = /* @__PURE__ */ (() => {
50
36
  const NativeURL = globalThis.URL;
51
37
  const FastURL = class URL {
@@ -147,7 +133,7 @@ var FastURL = /* @__PURE__ */ (() => {
147
133
  return FastURL;
148
134
  })();
149
135
  //#endregion
150
- //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_utils2.mjs
136
+ //#region ../../node_modules/.pnpm/srvx@0.11.16/node_modules/srvx/dist/_chunks/_utils2.mjs
151
137
  function resolvePortAndHost(opts) {
152
138
  const _port = opts.port ?? globalThis.process?.env.PORT ?? 3e3;
153
139
  const port = typeof _port === "number" ? _port : Number.parseInt(_port, 10);
@@ -218,7 +204,7 @@ function createWaitUntil() {
218
204
  };
219
205
  }
220
206
  //#endregion
221
- //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_utils.mjs
207
+ //#region ../../node_modules/.pnpm/srvx@0.11.16/node_modules/srvx/dist/_chunks/_utils.mjs
222
208
  var noColor = /* @__PURE__ */ (() => {
223
209
  const env = globalThis.process?.env ?? {};
224
210
  return env.NO_COLOR === "1" || env.TERM === "dumb";
@@ -229,7 +215,7 @@ var red = /* @__PURE__ */ _c(31);
229
215
  var green = /* @__PURE__ */ _c(32);
230
216
  var gray = /* @__PURE__ */ _c(90);
231
217
  //#endregion
232
- //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_plugins.mjs
218
+ //#region ../../node_modules/.pnpm/srvx@0.11.16/node_modules/srvx/dist/_chunks/_plugins.mjs
233
219
  function wrapFetch(server) {
234
220
  const fetchHandler = server.options.fetch;
235
221
  const middleware = server.options.middleware || [];
@@ -285,7 +271,7 @@ var gracefulShutdownPlugin = (server) => {
285
271
  for (const sig of ["SIGINT", "SIGTERM"]) globalThis.process.on(sig, shutdown);
286
272
  };
287
273
  //#endregion
288
- //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/adapters/node.mjs
274
+ //#region ../../node_modules/.pnpm/srvx@0.11.16/node_modules/srvx/dist/adapters/node.mjs
289
275
  async function sendNodeResponse(nodeRes, webRes) {
290
276
  if (!webRes) {
291
277
  nodeRes.statusCode = 500;
@@ -308,7 +294,7 @@ async function sendNodeResponse(nodeRes, webRes) {
308
294
  return webRes.body ? streamBody(webRes.body, nodeRes) : endNodeResponse(nodeRes);
309
295
  }
310
296
  function writeHead(nodeRes, status, statusText, rawHeaders) {
311
- const writeHeaders = globalThis.Deno ? rawHeaders : rawHeaders.flat();
297
+ const writeHeaders = rawHeaders.flat();
312
298
  if (!nodeRes.headersSent) if (nodeRes.req?.httpVersion === "2.0") nodeRes.writeHead(status, writeHeaders);
313
299
  else nodeRes.writeHead(status, statusText, writeHeaders);
314
300
  }
@@ -376,31 +362,31 @@ function streamBody(stream, nodeRes) {
376
362
  nodeRes.off("error", streamCancel);
377
363
  });
378
364
  }
379
- /**
380
- * Validates an HTTP Host header value (domain, IPv4, or bracketed IPv6) with optional port.
381
- * Intended for preliminary filtering invalid values like "localhost:3000/foobar?"
382
- */
383
365
  var HOST_RE = /^(\[(?:[A-Fa-f0-9:.]+)\]|(?:[A-Za-z0-9_-]+\.)*[A-Za-z0-9_-]+|(?:\d{1,3}\.){3}\d{1,3})(:\d{1,5})?$/;
384
366
  var NodeRequestURL = class extends FastURL {
385
367
  #req;
386
368
  constructor({ req }) {
387
369
  const path = req.url || "/";
370
+ let host = req.headers.host || req.headers[":authority"];
371
+ if (host && !HOST_RE.test(host)) host = "_invalid_";
372
+ else if (!host) if (req.socket) host = `${req.socket.localFamily === "IPv6" ? "[" + req.socket.localAddress + "]" : req.socket.localAddress}:${req.socket?.localPort || "80"}`;
373
+ else host = "localhost";
374
+ const protocol = req.socket?.encrypted || req.headers["x-forwarded-proto"] === "https" || req.headers[":scheme"] === "https" ? "https:" : "http:";
388
375
  if (path[0] === "/") {
389
376
  const qIndex = path.indexOf("?");
390
- const pathname = qIndex === -1 ? path : path?.slice(0, qIndex) || "/";
391
- const search = qIndex === -1 ? "" : path?.slice(qIndex) || "";
392
- let host = req.headers.host || req.headers[":authority"];
393
- if (host && !HOST_RE.test(host)) host = "_invalid_";
394
- else if (!host) if (req.socket) host = `${req.socket.localFamily === "IPv6" ? "[" + req.socket.localAddress + "]" : req.socket.localAddress}:${req.socket?.localPort || "80"}`;
395
- else host = "localhost";
396
- const protocol = req.socket?.encrypted || req.headers["x-forwarded-proto"] === "https" || req.headers[":scheme"] === "https" ? "https:" : "http:";
397
377
  super({
398
378
  protocol,
399
379
  host,
400
- pathname,
401
- search
380
+ pathname: qIndex === -1 ? path : path.slice(0, qIndex) || "/",
381
+ search: qIndex === -1 ? "" : path.slice(qIndex) || ""
402
382
  });
403
- } else super(path);
383
+ } else if (path === "*") super({
384
+ protocol,
385
+ host,
386
+ pathname: "/*",
387
+ search: ""
388
+ });
389
+ else super(path);
404
390
  this.#req = req;
405
391
  }
406
392
  get pathname() {
@@ -579,11 +565,6 @@ function readBody(req) {
579
565
  req.on("data", onData).once("end", onEnd).once("error", onError);
580
566
  });
581
567
  }
582
- /**
583
- * Fast Response for Node.js runtime
584
- *
585
- * It is faster because in most cases it doesn't create a full Response instance.
586
- */
587
568
  var NodeResponse = /* @__PURE__ */ (() => {
588
569
  const NativeResponse = globalThis.Response;
589
570
  const STATUS_CODES = globalThis.process?.getBuiltinModule?.("node:http")?.STATUS_CODES || {};
@@ -715,6 +696,12 @@ var NodeServer = class {
715
696
  errorPlugin(this);
716
697
  const fetchHandler = this.fetch = wrapFetch(this);
717
698
  const handler = (nodeReq, nodeRes) => {
699
+ const reqUrl = nodeReq.url;
700
+ if (reqUrl && reqUrl[0] !== "/" && reqUrl !== "*" && !URL.canParse(reqUrl)) {
701
+ nodeRes.statusCode = 400;
702
+ nodeRes.end();
703
+ return;
704
+ }
718
705
  const request = new NodeRequest({
719
706
  req: nodeReq,
720
707
  res: nodeRes
@@ -808,7 +795,7 @@ var NullProtoObj = /* @__PURE__ */ (() => {
808
795
  return e.prototype = Object.create(null), Object.freeze(e.prototype), e;
809
796
  })();
810
797
  //#endregion
811
- //#region ../../node_modules/.pnpm/h3@2.0.1-rc.20_crossws@0.4.5_srvx@0.11.15_/node_modules/h3/dist/h3-Bz4OPZv_.mjs
798
+ //#region ../../node_modules/.pnpm/h3@2.0.1-rc.22_crossws@0.4.6_srvx@0.11.16_/node_modules/h3/dist/h3.mjs
812
799
  function decodePathname(pathname) {
813
800
  return decodeURI(pathname.includes("%25") ? pathname.replace(/%25/g, "%2525") : pathname);
814
801
  }
@@ -955,7 +942,7 @@ function isJSONSerializable(value, _type) {
955
942
  var kNotFound = /* @__PURE__ */ Symbol.for("h3.notFound");
956
943
  var kHandled = /* @__PURE__ */ Symbol.for("h3.handled");
957
944
  function toResponse(val, event, config = {}) {
958
- if (typeof val?.then === "function") return (val.catch?.((error) => error) || Promise.resolve(val)).then((resolvedVal) => toResponse(resolvedVal, event, config));
945
+ if (typeof val?.then === "function") return val.then((resolvedVal) => toResponse(resolvedVal, event, config), (r) => toResponse(typeof r === "number" ? new HTTPError({ status: r }) : r, event, config));
959
946
  const response = prepareResponse(val, event, config);
960
947
  if (typeof response?.then === "function") return toResponse(response, event, config);
961
948
  const { onResponse } = config;
@@ -1154,13 +1141,14 @@ function defineLazyEventHandler(loader) {
1154
1141
  }
1155
1142
  function toEventHandler(handler) {
1156
1143
  if (typeof handler === "function") return handler;
1157
- if (typeof handler?.handler === "function") return handler.handler;
1144
+ if (typeof handler?.handler === "function" && handler.constructor?.["~h3"]) return handler.handler;
1158
1145
  if (typeof handler?.fetch === "function") return function _fetchHandler(event) {
1159
1146
  return handler.fetch(event.req);
1160
1147
  };
1161
1148
  }
1162
1149
  var NoHandler = () => kNotFound;
1163
1150
  var H3Core = class {
1151
+ static "~h3" = true;
1164
1152
  config;
1165
1153
  "~middleware";
1166
1154
  "~routes" = [];
@@ -1,6 +1,6 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
3
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
3
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react());
5
5
  /**
6
6
  * @license lucide-react v0.577.0 - ISC
@@ -12,7 +12,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
12
12
  return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
13
13
  }).join(" ").trim();
14
14
  //#endregion
15
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js
15
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js
16
16
  /**
17
17
  * @license lucide-react v0.577.0 - ISC
18
18
  *
@@ -21,7 +21,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
21
21
  */
22
22
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
23
23
  //#endregion
24
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js
24
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js
25
25
  /**
26
26
  * @license lucide-react v0.577.0 - ISC
27
27
  *
@@ -30,7 +30,7 @@ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLo
30
30
  */
31
31
  var toCamelCase = (string) => string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase());
32
32
  //#endregion
33
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js
33
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js
34
34
  /**
35
35
  * @license lucide-react v0.577.0 - ISC
36
36
  *
@@ -42,7 +42,7 @@ var toPascalCase = (string) => {
42
42
  return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
43
43
  };
44
44
  //#endregion
45
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/defaultAttributes.js
45
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/defaultAttributes.js
46
46
  /**
47
47
  * @license lucide-react v0.577.0 - ISC
48
48
  *
@@ -61,7 +61,7 @@ var defaultAttributes = {
61
61
  strokeLinejoin: "round"
62
62
  };
63
63
  //#endregion
64
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js
64
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js
65
65
  /**
66
66
  * @license lucide-react v0.577.0 - ISC
67
67
  *
@@ -73,7 +73,7 @@ var hasA11yProp = (props) => {
73
73
  return false;
74
74
  };
75
75
  //#endregion
76
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/Icon.js
76
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/Icon.js
77
77
  /**
78
78
  * @license lucide-react v0.577.0 - ISC
79
79
  *
@@ -92,7 +92,7 @@ var Icon = (0, import_react.forwardRef)(({ color = "currentColor", size = 24, st
92
92
  ...rest
93
93
  }, [...iconNode.map(([tag, attrs]) => (0, import_react.createElement)(tag, attrs)), ...Array.isArray(children) ? children : [children]]));
94
94
  //#endregion
95
- //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/createLucideIcon.js
95
+ //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.6/node_modules/lucide-react/dist/esm/createLucideIcon.js
96
96
  /**
97
97
  * @license lucide-react v0.577.0 - ISC
98
98
  *
@@ -1,6 +1,6 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
3
- //#region ../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next-themes/dist/index.mjs
3
+ //#region ../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next-themes/dist/index.mjs
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), M = (e, i, s, u, m, a, l, h) => {
5
5
  let d = document.documentElement, w = ["light", "dark"];
6
6
  function p(n) {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
1
+ //#region ../../node_modules/.pnpm/@radix-ui+number@1.1.2/node_modules/@radix-ui/number/dist/index.mjs
2
2
  function clamp(value, [min, max]) {
3
3
  return Math.min(max, Math.max(min, value));
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- //#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_e05f2c19a58a99fddf374207b5e3778c/node_modules/@radix-ui/react-arrow/dist/index.mjs
3
+ import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react@_578e0107146013f08692f454a75e647b/node_modules/@radix-ui/react-arrow/dist/index.mjs
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  var NAME = "Arrow";
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, j as createSlot } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- //#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+r_161926fa2509d0b7370b60b8bb4eb8b0/node_modules/@radix-ui/react-collection/dist/index.mjs
3
+ import { N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, j as createSlot } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+r_e6831e7a568e54c709acc07e20fc871b/node_modules/@radix-ui/react-collection/dist/index.mjs
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  function createCollection(name) {
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- //#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs
3
+ import { P as require_jsx_runtime } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.2.15_react@19.2.6/node_modules/@radix-ui/react-direction/dist/index.mjs
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
6
6
  require_jsx_runtime();
7
7
  var DirectionContext = import_react.createContext(void 0);
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- //#region ../../node_modules/.pnpm/@radix-ui+react-label@2.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_0e34a2d9c9cbbbf963013b9dd979f6f1/node_modules/@radix-ui/react-label/dist/index.mjs
3
+ import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-label@2.1.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react@_eec31fcf4c573647764e79b53d311e0f/node_modules/@radix-ui/react-label/dist/index.mjs
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  var NAME = "Label";
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- //#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+re_708d1054dbf5e38a292cb79d1c79b4a1/node_modules/@radix-ui/react-separator/dist/index.mjs
3
+ import { P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.15__@types+re_f3ba53aedb9be382bdb67a7fe87e82bd/node_modules/@radix-ui/react-separator/dist/index.mjs
5
5
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  var NAME = "Separator";
@@ -1,13 +1,13 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { E as useControllableState, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
3
+ import { E as useControllableState, N as useComposedRefs, O as createContextScope, P as require_jsx_runtime, k as Primitive } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
4
  import { p as usePrevious } from "./@radix-ui/react-select+[...].mjs";
5
5
  import { t as createCollection } from "./radix-ui__react-collection.mjs";
6
6
  import { t as composeEventHandlers } from "./radix-ui__primitive.mjs";
7
7
  import { t as useDirection } from "./radix-ui__react-direction.mjs";
8
8
  import { o as useSize } from "./@radix-ui/react-popper+[...].mjs";
9
9
  import { t as clamp } from "./radix-ui__number.mjs";
10
- //#region ../../node_modules/.pnpm/@radix-ui+react-slider@1.3.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_c6a3fae91eb6750caf661d179680cb4a/node_modules/@radix-ui/react-slider/dist/index.mjs
10
+ //#region ../../node_modules/.pnpm/@radix-ui+react-slider@1.4.0_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react_c4720e06d3edc591b175d090ab6efa41/node_modules/@radix-ui/react-slider/dist/index.mjs
11
11
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
12
12
  var import_jsx_runtime = require_jsx_runtime();
13
13
  var PAGE_KEYS = ["PageUp", "PageDown"];
@@ -51,12 +51,17 @@ var Slider = import_react.forwardRef((props, forwardedRef) => {
51
51
  const { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = false, minStepsBetweenThumbs = 0, defaultValue = [min], value, onValueChange = () => {}, onValueCommit = () => {}, inverted = false, form, ...sliderProps } = props;
52
52
  const thumbRefs = import_react.useRef(/* @__PURE__ */ new Set());
53
53
  const valueIndexToChangeRef = import_react.useRef(0);
54
+ const isKeyboardInteractionRef = import_react.useRef(false);
54
55
  const SliderOrientation = orientation === "horizontal" ? SliderHorizontal : SliderVertical;
55
56
  const [values = [], setValues] = useControllableState({
56
57
  prop: value,
57
58
  defaultProp: defaultValue,
58
59
  onChange: (value2) => {
59
- [...thumbRefs.current][valueIndexToChangeRef.current]?.focus();
60
+ [...thumbRefs.current][valueIndexToChangeRef.current]?.focus({
61
+ preventScroll: true,
62
+ focusVisible: isKeyboardInteractionRef.current
63
+ });
64
+ isKeyboardInteractionRef.current = false;
60
65
  onValueChange(value2);
61
66
  }
62
67
  });
@@ -105,7 +110,10 @@ var Slider = import_react.forwardRef((props, forwardedRef) => {
105
110
  ...sliderProps,
106
111
  ref: forwardedRef,
107
112
  onPointerDown: composeEventHandlers(sliderProps.onPointerDown, () => {
108
- if (!disabled) valuesBeforeSlideStartRef.current = values;
113
+ if (!disabled) {
114
+ valuesBeforeSlideStartRef.current = values;
115
+ isKeyboardInteractionRef.current = false;
116
+ }
109
117
  }),
110
118
  min,
111
119
  max,
@@ -113,10 +121,21 @@ var Slider = import_react.forwardRef((props, forwardedRef) => {
113
121
  onSlideStart: disabled ? void 0 : handleSlideStart,
114
122
  onSlideMove: disabled ? void 0 : handleSlideMove,
115
123
  onSlideEnd: disabled ? void 0 : handleSlideEnd,
116
- onHomeKeyDown: () => !disabled && updateValues(min, 0, { commit: true }),
117
- onEndKeyDown: () => !disabled && updateValues(max, values.length - 1, { commit: true }),
124
+ onHomeKeyDown: () => {
125
+ if (!disabled) {
126
+ isKeyboardInteractionRef.current = true;
127
+ updateValues(min, 0, { commit: true });
128
+ }
129
+ },
130
+ onEndKeyDown: () => {
131
+ if (!disabled) {
132
+ isKeyboardInteractionRef.current = true;
133
+ updateValues(max, values.length - 1, { commit: true });
134
+ }
135
+ },
118
136
  onStepKeyDown: ({ event, direction: stepDirection }) => {
119
137
  if (!disabled) {
138
+ isKeyboardInteractionRef.current = true;
120
139
  const multiplier = PAGE_KEYS.includes(event.key) || event.shiftKey && ARROW_KEYS.includes(event.key) ? 10 : 1;
121
140
  const atIndex = valueIndexToChangeRef.current;
122
141
  const value2 = values[atIndex];
@@ -162,7 +181,7 @@ var SliderHorizontal = import_react.forwardRef((props, forwardedRef) => {
162
181
  ref: composedRefs,
163
182
  style: {
164
183
  ...sliderProps.style,
165
- ["--radix-slider-thumb-transform"]: "translateX(-50%)"
184
+ "--radix-slider-thumb-transform": "translateX(-50%)"
166
185
  },
167
186
  onSlideStart: (event) => {
168
187
  const value = getValueFromPointer(event.clientX);
@@ -210,7 +229,7 @@ var SliderVertical = import_react.forwardRef((props, forwardedRef) => {
210
229
  ref,
211
230
  style: {
212
231
  ...sliderProps.style,
213
- ["--radix-slider-thumb-transform"]: "translateY(50%)"
232
+ "--radix-slider-thumb-transform": "translateY(50%)"
214
233
  },
215
234
  onSlideStart: (event) => {
216
235
  const value = getValueFromPointer(event.clientY);
@@ -256,7 +275,10 @@ var SliderImpl = import_react.forwardRef((props, forwardedRef) => {
256
275
  const target = event.target;
257
276
  target.setPointerCapture(event.pointerId);
258
277
  event.preventDefault();
259
- if (context.thumbs.has(target)) target.focus();
278
+ if (context.thumbs.has(target)) target.focus({
279
+ preventScroll: true,
280
+ focusVisible: false
281
+ });
260
282
  else onSlideStart(event);
261
283
  }),
262
284
  onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {
@@ -307,30 +329,19 @@ var SliderRange = import_react.forwardRef((props, forwardedRef) => {
307
329
  });
308
330
  SliderRange.displayName = RANGE_NAME;
309
331
  var THUMB_NAME = "SliderThumb";
310
- var SliderThumb = import_react.forwardRef((props, forwardedRef) => {
311
- const getItems = useCollection(props.__scopeSlider);
332
+ var [SliderThumbContextProvider, useSliderThumbContext] = createSliderContext(THUMB_NAME);
333
+ var THUMB_PROVIDER_NAME = "SliderThumbProvider";
334
+ function SliderThumbProvider(props) {
335
+ const { __scopeSlider, name, children, internal_do_not_use_render } = props;
336
+ const context = useSliderContext(THUMB_PROVIDER_NAME, __scopeSlider);
337
+ const getItems = useCollection(__scopeSlider);
312
338
  const [thumb, setThumb] = import_react.useState(null);
313
- const composedRefs = useComposedRefs(forwardedRef, (node) => setThumb(node));
314
339
  const index = import_react.useMemo(() => thumb ? getItems().findIndex((item) => item.ref.current === thumb) : -1, [getItems, thumb]);
315
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderThumbImpl, {
316
- ...props,
317
- ref: composedRefs,
318
- index
319
- });
320
- });
321
- var SliderThumbImpl = import_react.forwardRef((props, forwardedRef) => {
322
- const { __scopeSlider, index, name, ...thumbProps } = props;
323
- const context = useSliderContext(THUMB_NAME, __scopeSlider);
324
- const orientation = useSliderOrientationContext(THUMB_NAME, __scopeSlider);
325
- const [thumb, setThumb] = import_react.useState(null);
326
- const composedRefs = useComposedRefs(forwardedRef, (node) => setThumb(node));
327
- const isFormControl = thumb ? context.form || !!thumb.closest("form") : true;
328
340
  const size = useSize(thumb);
341
+ const isFormControl = thumb ? !!context.form || !!thumb.closest("form") : true;
329
342
  const value = context.values[index];
343
+ const resolvedName = name ?? (context.name ? context.name + (context.values.length > 1 ? "[]" : "") : void 0);
330
344
  const percent = value === void 0 ? 0 : convertValueToPercentage(value, context.min, context.max);
331
- const label = getLabel(index, context.values.length);
332
- const orientationSize = size?.[orientation.size];
333
- const thumbInBoundsOffset = orientationSize ? getThumbInBoundsOffset(orientationSize, percent, orientation.direction) : 0;
334
345
  import_react.useEffect(() => {
335
346
  if (thumb) {
336
347
  context.thumbs.add(thumb);
@@ -339,14 +350,42 @@ var SliderThumbImpl = import_react.forwardRef((props, forwardedRef) => {
339
350
  };
340
351
  }
341
352
  }, [thumb, context.thumbs]);
342
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
353
+ const thumbContext = {
354
+ value,
355
+ name: resolvedName,
356
+ form: context.form,
357
+ isFormControl,
358
+ index,
359
+ thumb,
360
+ onThumbChange: setThumb,
361
+ percent,
362
+ size
363
+ };
364
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderThumbContextProvider, {
365
+ scope: __scopeSlider,
366
+ ...thumbContext,
367
+ children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(thumbContext) : children
368
+ });
369
+ }
370
+ SliderThumbProvider.displayName = THUMB_PROVIDER_NAME;
371
+ var THUMB_TRIGGER_NAME = "SliderThumbTrigger";
372
+ var SliderThumbTrigger = import_react.forwardRef((props, forwardedRef) => {
373
+ const { __scopeSlider, ...thumbProps } = props;
374
+ const context = useSliderContext(THUMB_TRIGGER_NAME, __scopeSlider);
375
+ const orientation = useSliderOrientationContext(THUMB_TRIGGER_NAME, __scopeSlider);
376
+ const { index, value, percent, size, onThumbChange } = useSliderThumbContext(THUMB_TRIGGER_NAME, __scopeSlider);
377
+ const composedRefs = useComposedRefs(forwardedRef, (node) => onThumbChange(node));
378
+ const label = getLabel(index, context.values.length);
379
+ const orientationSize = size?.[orientation.size];
380
+ const thumbInBoundsOffset = orientationSize ? getThumbInBoundsOffset(orientationSize, percent, orientation.direction) : 0;
381
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
343
382
  style: {
344
383
  transform: "var(--radix-slider-thumb-transform)",
345
384
  position: "absolute",
346
385
  [orientation.startEdge]: `calc(${percent}% + ${thumbInBoundsOffset}px)`
347
386
  },
348
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
349
- scope: props.__scopeSlider,
387
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
388
+ scope: __scopeSlider,
350
389
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
351
390
  role: "slider",
352
391
  "aria-label": props["aria-label"] || label,
@@ -364,16 +403,26 @@ var SliderThumbImpl = import_react.forwardRef((props, forwardedRef) => {
364
403
  context.valueIndexToChangeRef.current = index;
365
404
  })
366
405
  })
367
- }), isFormControl && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderBubbleInput, {
368
- name: name ?? (context.name ? context.name + (context.values.length > 1 ? "[]" : "") : void 0),
369
- form: context.form,
370
- value
371
- }, index)]
406
+ })
407
+ });
408
+ });
409
+ SliderThumbTrigger.displayName = THUMB_TRIGGER_NAME;
410
+ var SliderThumb = import_react.forwardRef((props, forwardedRef) => {
411
+ const { __scopeSlider, name, ...thumbProps } = props;
412
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderThumbProvider, {
413
+ __scopeSlider,
414
+ name,
415
+ internal_do_not_use_render: ({ index, isFormControl }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderThumbTrigger, {
416
+ ...thumbProps,
417
+ ref: forwardedRef,
418
+ __scopeSlider
419
+ }), isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderBubbleInput, { __scopeSlider }, index) : null] })
372
420
  });
373
421
  });
374
422
  SliderThumb.displayName = THUMB_NAME;
375
- var BUBBLE_INPUT_NAME = "RadioBubbleInput";
376
- var SliderBubbleInput = import_react.forwardRef(({ __scopeSlider, value, ...props }, forwardedRef) => {
423
+ var BUBBLE_INPUT_NAME = "SliderBubbleInput";
424
+ var SliderBubbleInput = import_react.forwardRef(({ __scopeSlider, ...props }, forwardedRef) => {
425
+ const { value, name, form } = useSliderThumbContext(BUBBLE_INPUT_NAME, __scopeSlider);
377
426
  const ref = import_react.useRef(null);
378
427
  const composedRefs = useComposedRefs(ref, forwardedRef);
379
428
  const prevValue = usePrevious(value);
@@ -390,6 +439,8 @@ var SliderBubbleInput = import_react.forwardRef(({ __scopeSlider, value, ...prop
390
439
  }, [prevValue, value]);
391
440
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.input, {
392
441
  style: { display: "none" },
442
+ name,
443
+ form,
393
444
  ...props,
394
445
  ref: composedRefs,
395
446
  defaultValue: value
@@ -437,15 +488,23 @@ function linearScale(input, output) {
437
488
  };
438
489
  }
439
490
  function getDecimalCount(value) {
440
- return (String(value).split(".")[1] || "").length;
491
+ if (!Number.isFinite(value)) return 0;
492
+ const str = value.toString();
493
+ if (str.includes("e")) {
494
+ const [coefficient, exponent] = str.split("e");
495
+ const decimalPart2 = coefficient.split(".")[1] || "";
496
+ const exponentNum = Number(exponent);
497
+ return Math.max(0, decimalPart2.length - exponentNum);
498
+ }
499
+ const decimalPart = str.split(".")[1];
500
+ return decimalPart ? decimalPart.length : 0;
441
501
  }
442
502
  function roundValue(value, decimalCount) {
443
503
  const rounder = Math.pow(10, decimalCount);
444
504
  return Math.round(value * rounder) / rounder;
445
505
  }
446
- var Root = Slider;
447
- var Track = SliderTrack;
448
- var Range = SliderRange;
449
- var Thumb = SliderThumb;
506
+ function isFunction(value) {
507
+ return typeof value === "function";
508
+ }
450
509
  //#endregion
451
- export { Track as i, Root as n, Thumb as r, Range as t };
510
+ export { SliderTrack as i, SliderRange as n, SliderThumb as r, Slider as t };