@synnaxlabs/pluto 0.21.8 → 0.21.9
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/{Center-hbwH7rg9.js → Center-BK9Rcaa0.js} +2 -2
- package/dist/{Center-hbwH7rg9.js.map → Center-BK9Rcaa0.js.map} +1 -1
- package/dist/{Center-5NJ61qfA.cjs → Center-Cc_rR5pQ.cjs} +2 -2
- package/dist/{Center-5NJ61qfA.cjs.map → Center-Cc_rR5pQ.cjs.map} +1 -1
- package/dist/{Keyboard-DaFraUsQ.cjs → Keyboard-Byx8rGZt.cjs} +3 -3
- package/dist/{Keyboard-DaFraUsQ.cjs.map → Keyboard-Byx8rGZt.cjs.map} +1 -1
- package/dist/{Keyboard-nDIAR7Rj.js → Keyboard-D31SwhYT.js} +3 -3
- package/dist/{Keyboard-nDIAR7Rj.js.map → Keyboard-D31SwhYT.js.map} +1 -1
- package/dist/{LinePlot-BZDm4uxJ.cjs → LinePlot-Bnb8Ufob.cjs} +96 -65
- package/dist/LinePlot-Bnb8Ufob.cjs.map +1 -0
- package/dist/{LinePlot-tOiSUMjC.js → LinePlot-KYwy1D7H.js} +281 -250
- package/dist/LinePlot-KYwy1D7H.js.map +1 -0
- package/dist/{Link-BdWFvK8v.cjs → Link-Bq38h1dw.cjs} +2 -2
- package/dist/{Link-BdWFvK8v.cjs.map → Link-Bq38h1dw.cjs.map} +1 -1
- package/dist/{Link-d3CXVSaO.js → Link-DQKdkwWL.js} +2 -2
- package/dist/{Link-d3CXVSaO.js.map → Link-DQKdkwWL.js.map} +1 -1
- package/dist/{List-DcsWFiLT.js → List-BmP_se57.js} +3 -3
- package/dist/{List-DcsWFiLT.js.map → List-BmP_se57.js.map} +1 -1
- package/dist/{List-PlMTfEHi.cjs → List-BnB-C5vQ.cjs} +3 -3
- package/dist/{List-PlMTfEHi.cjs.map → List-BnB-C5vQ.cjs.map} +1 -1
- package/dist/{Toggle-C6Z8WPT3.cjs → Toggle-D3iCEbO1.cjs} +46 -46
- package/dist/{Toggle-C6Z8WPT3.cjs.map → Toggle-D3iCEbO1.cjs.map} +1 -1
- package/dist/{Toggle-DGLgYCOX.js → Toggle-bT5RpwfA.js} +399 -399
- package/dist/{Toggle-DGLgYCOX.js.map → Toggle-bT5RpwfA.js.map} +1 -1
- package/dist/{Video-DFtnAOYY.cjs → Video-B4sma9fk.cjs} +2 -2
- package/dist/{Video-DFtnAOYY.cjs.map → Video-B4sma9fk.cjs.map} +1 -1
- package/dist/{Video-SGhKphYR.js → Video-Cp6XjjOK.js} +2 -2
- package/dist/{Video-SGhKphYR.js.map → Video-Cp6XjjOK.js.map} +1 -1
- package/dist/{aggregator-BgImZc4o.js → aggregator-B8fg7W2s.js} +106 -106
- package/dist/aggregator-B8fg7W2s.js.map +1 -0
- package/dist/{aggregator-BpfMBUD1.cjs → aggregator-Bh2Kyzkg.cjs} +100 -100
- package/dist/aggregator-Bh2Kyzkg.cjs.map +1 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{color-DV-YGUvp.js → color-CjdRh-aN.js} +2 -2
- package/dist/{color-DV-YGUvp.js.map → color-CjdRh-aN.js.map} +1 -1
- package/dist/{color-BVVyrgRF.cjs → color-DBNbbjJy.cjs} +2 -2
- package/dist/{color-BVVyrgRF.cjs.map → color-DBNbbjJy.cjs.map} +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-Pf9qxhQ4.cjs → css-Ci8WUD5E.cjs} +112 -108
- package/dist/css-Ci8WUD5E.cjs.map +1 -0
- package/dist/{css-DoalWJF6.js → css-DKKmdhSr.js} +114 -110
- package/dist/css-DKKmdhSr.js.map +1 -0
- package/dist/css.cjs +2 -2
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +3 -3
- package/dist/ether.js +5 -5
- package/dist/{external-Cu6T11fi.cjs → external-9_cqFQy3.cjs} +6 -6
- package/dist/{external-Cu6T11fi.cjs.map → external-9_cqFQy3.cjs.map} +1 -1
- package/dist/{external-Blx0rtt2.cjs → external-B-zN2e5z.cjs} +6 -6
- package/dist/{external-Blx0rtt2.cjs.map → external-B-zN2e5z.cjs.map} +1 -1
- package/dist/{external-DeheWVb-.js → external-BM82B8W2.js} +6 -6
- package/dist/{external-DeheWVb-.js.map → external-BM82B8W2.js.map} +1 -1
- package/dist/{external-96EinZfY.js → external-BYqTC99W.js} +3 -3
- package/dist/external-BYqTC99W.js.map +1 -0
- package/dist/{external-5przQjJD.js → external-BfZYUV3z.js} +11 -11
- package/dist/{external-5przQjJD.js.map → external-BfZYUV3z.js.map} +1 -1
- package/dist/{external-SxB9IH0p.js → external-BpqCp_M1.js} +2 -2
- package/dist/external-BpqCp_M1.js.map +1 -0
- package/dist/{external-C6GmnG49.js → external-BrW40HJx.js} +6 -6
- package/dist/{external-C6GmnG49.js.map → external-BrW40HJx.js.map} +1 -1
- package/dist/{external-1osPryUV.js → external-CAOQcoqL.js} +5 -5
- package/dist/{external-1osPryUV.js.map → external-CAOQcoqL.js.map} +1 -1
- package/dist/{external-D8dWmF4U.cjs → external-CIVsFXOp.cjs} +2 -2
- package/dist/external-CIVsFXOp.cjs.map +1 -0
- package/dist/{external-BAdU6u03.js → external-CnNdgPsB.js} +5 -5
- package/dist/{external-BAdU6u03.js.map → external-CnNdgPsB.js.map} +1 -1
- package/dist/{external-DiFhWWS-.js → external-CwjCCHPi.js} +7 -7
- package/dist/{external-DiFhWWS-.js.map → external-CwjCCHPi.js.map} +1 -1
- package/dist/{external-DarqsFzT.js → external-DNHMAfGi.js} +5 -5
- package/dist/{external-DarqsFzT.js.map → external-DNHMAfGi.js.map} +1 -1
- package/dist/{external-0PM7JrzG.cjs → external-DVQ2SRoH.cjs} +5 -5
- package/dist/{external-0PM7JrzG.cjs.map → external-DVQ2SRoH.cjs.map} +1 -1
- package/dist/{external-16K8slq8.cjs → external-D_yXh8rn.cjs} +11 -11
- package/dist/{external-16K8slq8.cjs.map → external-D_yXh8rn.cjs.map} +1 -1
- package/dist/{external-CPx8XA9-.cjs → external-Df0D1YYb.cjs} +7 -7
- package/dist/{external-CPx8XA9-.cjs.map → external-Df0D1YYb.cjs.map} +1 -1
- package/dist/{external-DvGqQHd8.cjs → external-DhPBdJpR.cjs} +3 -3
- package/dist/external-DhPBdJpR.cjs.map +1 -0
- package/dist/{external-D7XrxOVE.cjs → external-DhiN6pEk.cjs} +4 -4
- package/dist/{external-D7XrxOVE.cjs.map → external-DhiN6pEk.cjs.map} +1 -1
- package/dist/{external-CsO29OsF.cjs → external-DjYXzP7v.cjs} +7 -7
- package/dist/{external-CsO29OsF.cjs.map → external-DjYXzP7v.cjs.map} +1 -1
- package/dist/{external-B3ly2-jy.js → external-FWIwgLzc.js} +7 -7
- package/dist/{external-B3ly2-jy.js.map → external-FWIwgLzc.js.map} +1 -1
- package/dist/{external-B0z7uXZV.cjs → external-Iv2mRce8.cjs} +5 -5
- package/dist/{external-B0z7uXZV.cjs.map → external-Iv2mRce8.cjs.map} +1 -1
- package/dist/{external-CzJYG1hX.cjs → external-P6zP6dBA.cjs} +3 -3
- package/dist/external-P6zP6dBA.cjs.map +1 -0
- package/dist/{external-D4ur_D1S.cjs → external-d-vI8EHK.cjs} +5 -5
- package/dist/{external-D4ur_D1S.cjs.map → external-d-vI8EHK.cjs.map} +1 -1
- package/dist/{external-DQkw1ko0.js → external-giUMrk8w.js} +4 -4
- package/dist/{external-DQkw1ko0.js.map → external-giUMrk8w.js.map} +1 -1
- package/dist/{external-CgMwmBnF.js → external-zG96smqq.js} +3 -3
- package/dist/external-zG96smqq.js.map +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.js +55 -55
- package/dist/index.js.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/telem/client/cache/cache.d.ts +3 -8
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts +13 -3
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/client.d.ts +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/theming.cjs +2 -2
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +2 -2
- package/dist/LinePlot-BZDm4uxJ.cjs.map +0 -1
- package/dist/LinePlot-tOiSUMjC.js.map +0 -1
- package/dist/aggregator-BgImZc4o.js.map +0 -1
- package/dist/aggregator-BpfMBUD1.cjs.map +0 -1
- package/dist/css-DoalWJF6.js.map +0 -1
- package/dist/css-Pf9qxhQ4.cjs.map +0 -1
- package/dist/external-96EinZfY.js.map +0 -1
- package/dist/external-CgMwmBnF.js.map +0 -1
- package/dist/external-CzJYG1hX.cjs.map +0 -1
- package/dist/external-D8dWmF4U.cjs.map +0 -1
- package/dist/external-DvGqQHd8.cjs.map +0 -1
- package/dist/external-SxB9IH0p.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const css = require("./css-
|
|
4
|
+
const css = require("./css-Ci8WUD5E.cjs");
|
|
5
5
|
const Video = React.forwardRef(
|
|
6
6
|
({ href, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("video", { ref, className: css.CSS(css.CSS.B("video"), className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("source", { id: href, src: href, type: "video/mp4" }) })
|
|
7
7
|
);
|
|
@@ -11,4 +11,4 @@ const Video$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
11
11
|
Video
|
|
12
12
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13
13
|
exports.Video = Video$1;
|
|
14
|
-
//# sourceMappingURL=Video-
|
|
14
|
+
//# sourceMappingURL=Video-B4sma9fk.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Video-
|
|
1
|
+
{"version":3,"file":"Video-B4sma9fk.cjs","sources":["../src/video/Video.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\n\nimport \"@/video/Video.css\";\n\nexport interface VideoProps extends ComponentPropsWithoutRef<\"video\"> {\n href: string;\n}\n\nexport const Video = forwardRef<HTMLVideoElement, VideoProps>(\n ({ href, className, ...props }: VideoProps, ref): ReactElement => (\n <video ref={ref} className={CSS(CSS.B(\"video\"), className)} {...props}>\n <source id={href} src={href} type=\"video/mp4\" />\n </video>\n ),\n);\nVideo.displayName = \"Video\";\n"],"names":["forwardRef","jsx","CSS"],"mappings":";;;;AAmBO,MAAM,QAAQA,MAAA;AAAA,EACnB,CAAC,EAAE,MAAM,WAAW,GAAG,MAAA,GAAqB,QACzCC,2BAAAA,kBAAAA,IAAA,SAAA,EAAM,KAAU,WAAWC,IAAAA,IAAIA,IAAAA,IAAI,EAAE,OAAO,GAAG,SAAS,GAAI,GAAG,OAC9D,UAAAD,2BAAAA,kBAAAA,IAAC,UAAO,EAAA,IAAI,MAAM,KAAK,MAAM,MAAK,aAAY,EAChD,CAAA;AAEJ;AACA,MAAM,cAAc;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { C as CSS } from "./css-
|
|
3
|
+
import { C as CSS } from "./css-DKKmdhSr.js";
|
|
4
4
|
const Video = forwardRef(
|
|
5
5
|
({ href, className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("video", { ref, className: CSS(CSS.B("video"), className), ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("source", { id: href, src: href, type: "video/mp4" }) })
|
|
6
6
|
);
|
|
@@ -12,4 +12,4 @@ const Video$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
12
12
|
export {
|
|
13
13
|
Video$1 as V
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=Video-
|
|
15
|
+
//# sourceMappingURL=Video-Cp6XjjOK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Video-
|
|
1
|
+
{"version":3,"file":"Video-Cp6XjjOK.js","sources":["../src/video/Video.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\n\nimport \"@/video/Video.css\";\n\nexport interface VideoProps extends ComponentPropsWithoutRef<\"video\"> {\n href: string;\n}\n\nexport const Video = forwardRef<HTMLVideoElement, VideoProps>(\n ({ href, className, ...props }: VideoProps, ref): ReactElement => (\n <video ref={ref} className={CSS(CSS.B(\"video\"), className)} {...props}>\n <source id={href} src={href} type=\"video/mp4\" />\n </video>\n ),\n);\nVideo.displayName = \"Video\";\n"],"names":["jsx"],"mappings":";;;AAmBO,MAAM,QAAQ;AAAA,EACnB,CAAC,EAAE,MAAM,WAAW,GAAG,MAAA,GAAqB,QACzCA,kCAAAA,IAAA,SAAA,EAAM,KAAU,WAAW,IAAI,IAAI,EAAE,OAAO,GAAG,SAAS,GAAI,GAAG,OAC9D,UAAAA,kCAAAA,IAAC,UAAO,EAAA,IAAI,MAAM,KAAK,MAAM,MAAK,aAAY,EAChD,CAAA;AAEJ;AACA,MAAM,cAAc;;;;;"}
|
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { z as z$3 } from "zod";
|
|
8
|
-
import { O as Ot$1, e as Te$1, i as i$7, k as ke$1, a as Color, f as fromHSLA, Z as ZERO } from "./css-
|
|
8
|
+
import { O as Ot$1, e as Te$1, i as i$7, k as ke$1, a as Color, f as fromHSLA, Z as ZERO } from "./css-DKKmdhSr.js";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
11
11
|
function getDefaultExportFromCjs(x2) {
|
|
@@ -87,7 +87,7 @@ const i$6 = (r2) => r2 != null && typeof r2 == "object" && "toString" in r2, A$3
|
|
|
87
87
|
return 0;
|
|
88
88
|
const o2 = c$3(r2[0]), e2 = [...r2].sort(o2), n3 = [...t2].sort(o2);
|
|
89
89
|
return e2.every((s3, a3) => s3 === n3[a3]) ? 0 : -1;
|
|
90
|
-
}, b$
|
|
90
|
+
}, b$3 = (r2, t2) => r2 === t2 ? 0 : r2 === "first" && t2 === "last" ? 1 : -1, g$4 = (r2) => (t2, o2) => r2(o2, t2);
|
|
91
91
|
const h$4 = (r2) => r2 < 0, m$3 = (r2) => r2 > 0, p$4 = (r2) => r2 >= 0, S$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92
92
|
__proto__: null,
|
|
93
93
|
EQUAL: 0,
|
|
@@ -98,7 +98,7 @@ const h$4 = (r2) => r2 < 0, m$3 = (r2) => r2 > 0, p$4 = (r2) => r2 >= 0, S$3 = /
|
|
|
98
98
|
isLessThan: h$4,
|
|
99
99
|
newF: c$3,
|
|
100
100
|
newFieldF: u$2,
|
|
101
|
-
order: b$
|
|
101
|
+
order: b$3,
|
|
102
102
|
primitiveArrays: l$4,
|
|
103
103
|
reverseF: g$4,
|
|
104
104
|
unorderedPrimitiveArrays: f$2
|
|
@@ -113,21 +113,21 @@ let V$3 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Z$
|
|
|
113
113
|
return t2;
|
|
114
114
|
};
|
|
115
115
|
const $$3 = (f2, t2) => {
|
|
116
|
-
const e2 = new
|
|
116
|
+
const e2 = new m$2(t2);
|
|
117
117
|
if (![
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
w$3.DAY,
|
|
119
|
+
w$3.HOUR,
|
|
120
|
+
w$3.MINUTE,
|
|
121
|
+
w$3.SECOND,
|
|
122
|
+
w$3.MILLISECOND,
|
|
123
|
+
w$3.MICROSECOND,
|
|
124
|
+
w$3.NANOSECOND
|
|
125
125
|
].some((u2) => u2.equals(e2)))
|
|
126
126
|
throw new Error(
|
|
127
127
|
"Invalid argument for remainder. Must be an even TimeSpan or Timestamp"
|
|
128
128
|
);
|
|
129
129
|
const r2 = f2.valueOf() % e2.valueOf();
|
|
130
|
-
return f2 instanceof
|
|
130
|
+
return f2 instanceof m$2 ? new m$2(r2) : new w$3(r2);
|
|
131
131
|
}, i$5 = class i {
|
|
132
132
|
constructor(t2, e2 = "UTC") {
|
|
133
133
|
s$4(this, "value");
|
|
@@ -203,7 +203,7 @@ const $$3 = (f2, t2) => {
|
|
|
203
203
|
return `${r2} ${u2}`;
|
|
204
204
|
}
|
|
205
205
|
static get utcOffset() {
|
|
206
|
-
return new
|
|
206
|
+
return new w$3(
|
|
207
207
|
BigInt((/* @__PURE__ */ new Date()).getTimezoneOffset()) * i.MINUTE.valueOf()
|
|
208
208
|
);
|
|
209
209
|
}
|
|
@@ -331,7 +331,7 @@ const $$3 = (f2, t2) => {
|
|
|
331
331
|
* @returns The number of milliseconds since the unix epoch.
|
|
332
332
|
*/
|
|
333
333
|
milliseconds() {
|
|
334
|
-
return Number(this.valueOf() / i.MILLISECOND.valueOf());
|
|
334
|
+
return Number(this.valueOf()) / Number(i.MILLISECOND.valueOf());
|
|
335
335
|
}
|
|
336
336
|
toString() {
|
|
337
337
|
return this.date().toISOString();
|
|
@@ -352,7 +352,7 @@ const $$3 = (f2, t2) => {
|
|
|
352
352
|
}
|
|
353
353
|
/** @returns true if the day portion TimeStamp is today, false otherwise. */
|
|
354
354
|
get isToday() {
|
|
355
|
-
return this.truncate(
|
|
355
|
+
return this.truncate(w$3.DAY).equals(i.now().truncate(w$3.DAY));
|
|
356
356
|
}
|
|
357
357
|
truncate(t2) {
|
|
358
358
|
return this.sub(this.remainder(t2));
|
|
@@ -427,7 +427,7 @@ s$4(i$5, "z", Ot$1.union([
|
|
|
427
427
|
Ot$1.number().transform((t2) => new i$5(t2)),
|
|
428
428
|
Ot$1.instanceof(i$5)
|
|
429
429
|
]));
|
|
430
|
-
let
|
|
430
|
+
let m$2 = i$5;
|
|
431
431
|
const a$4 = class a {
|
|
432
432
|
constructor(t2) {
|
|
433
433
|
s$4(this, "value");
|
|
@@ -461,32 +461,32 @@ const a$4 = class a {
|
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
463
|
toString() {
|
|
464
|
-
const t2 = this.truncate(a.DAY), e2 = this.truncate(a.HOUR), r2 = this.truncate(a.MINUTE), u2 = this.truncate(a.SECOND), h2 = this.truncate(a.MILLISECOND), d3 = this.truncate(a.MICROSECOND), S2 = this.truncate(a.NANOSECOND), O2 = t2,
|
|
464
|
+
const t2 = this.truncate(a.DAY), e2 = this.truncate(a.HOUR), r2 = this.truncate(a.MINUTE), u2 = this.truncate(a.SECOND), h2 = this.truncate(a.MILLISECOND), d3 = this.truncate(a.MICROSECOND), S2 = this.truncate(a.NANOSECOND), O2 = t2, T2 = e2.sub(t2), p2 = r2.sub(e2), o2 = u2.sub(r2), M3 = h2.sub(u2), B2 = d3.sub(h2), x2 = S2.sub(d3);
|
|
465
465
|
let A2 = "";
|
|
466
|
-
return O2.isZero || (A2 += `${O2.days}d `),
|
|
466
|
+
return O2.isZero || (A2 += `${O2.days}d `), T2.isZero || (A2 += `${T2.hours}h `), p2.isZero || (A2 += `${p2.minutes}m `), o2.isZero || (A2 += `${o2.seconds}s `), M3.isZero || (A2 += `${M3.milliseconds}ms `), B2.isZero || (A2 += `${B2.microseconds}µs `), x2.isZero || (A2 += `${x2.nanoseconds}ns`), A2.trim();
|
|
467
467
|
}
|
|
468
468
|
/** @returns the decimal number of days in the timespan */
|
|
469
469
|
get days() {
|
|
470
|
-
return Number(this.valueOf() / a.DAY.valueOf());
|
|
470
|
+
return Number(this.valueOf()) / Number(a.DAY.valueOf());
|
|
471
471
|
}
|
|
472
472
|
/** @returns the decimal number of hours in the timespan */
|
|
473
473
|
get hours() {
|
|
474
|
-
return Number(this.valueOf() / a.HOUR.valueOf());
|
|
474
|
+
return Number(this.valueOf()) / Number(a.HOUR.valueOf());
|
|
475
475
|
}
|
|
476
476
|
/** @returns the decimal number of minutes in the timespan */
|
|
477
477
|
get minutes() {
|
|
478
|
-
return Number(this.valueOf() / a.MINUTE.valueOf());
|
|
478
|
+
return Number(this.valueOf()) / Number(a.MINUTE.valueOf());
|
|
479
479
|
}
|
|
480
480
|
/** @returns The number of seconds in the TimeSpan. */
|
|
481
481
|
get seconds() {
|
|
482
|
-
return Number(this.valueOf() / a.SECOND.valueOf());
|
|
482
|
+
return Number(this.valueOf()) / Number(a.SECOND.valueOf());
|
|
483
483
|
}
|
|
484
484
|
/** @returns The number of milliseconds in the TimeSpan. */
|
|
485
485
|
get milliseconds() {
|
|
486
|
-
return Number(this.valueOf() / a.MILLISECOND.valueOf());
|
|
486
|
+
return Number(this.valueOf()) / Number(a.MILLISECOND.valueOf());
|
|
487
487
|
}
|
|
488
488
|
get microseconds() {
|
|
489
|
-
return Number(this.valueOf() / a.MICROSECOND.valueOf());
|
|
489
|
+
return Number(this.valueOf()) / Number(a.MICROSECOND.valueOf());
|
|
490
490
|
}
|
|
491
491
|
get nanoseconds() {
|
|
492
492
|
return Number(this.valueOf());
|
|
@@ -604,7 +604,7 @@ s$4(a$4, "z", Ot$1.union([
|
|
|
604
604
|
Ot$1.number().transform((t2) => new a$4(t2)),
|
|
605
605
|
Ot$1.instanceof(a$4)
|
|
606
606
|
]));
|
|
607
|
-
let
|
|
607
|
+
let w$3 = a$4;
|
|
608
608
|
const v$3 = class v extends Number {
|
|
609
609
|
constructor(t2) {
|
|
610
610
|
t2 instanceof Number ? super(t2.valueOf()) : super(t2);
|
|
@@ -623,7 +623,7 @@ const v$3 = class v extends Number {
|
|
|
623
623
|
* @returns A TimeSpan representing the period of the Rate.
|
|
624
624
|
*/
|
|
625
625
|
get period() {
|
|
626
|
-
return
|
|
626
|
+
return w$3.seconds(1 / this.valueOf());
|
|
627
627
|
}
|
|
628
628
|
/**
|
|
629
629
|
* Calculates the number of samples in the given TimeSpan at this rate.
|
|
@@ -632,7 +632,7 @@ const v$3 = class v extends Number {
|
|
|
632
632
|
* @returns The number of samples in the given TimeSpan at this rate.
|
|
633
633
|
*/
|
|
634
634
|
sampleCount(t2) {
|
|
635
|
-
return new
|
|
635
|
+
return new w$3(t2).seconds * this.valueOf();
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
638
638
|
* Calculates the number of bytes in the given TimeSpan at this rate.
|
|
@@ -651,7 +651,7 @@ const v$3 = class v extends Number {
|
|
|
651
651
|
* @returns A TimeSpan that corresponds to the given number of samples.
|
|
652
652
|
*/
|
|
653
653
|
span(t2) {
|
|
654
|
-
return
|
|
654
|
+
return w$3.seconds(t2 / this.valueOf());
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
657
|
* Calculates a TimeSpan given the number of bytes at this rate.
|
|
@@ -688,7 +688,7 @@ s$4(v$3, "z", Ot$1.union([
|
|
|
688
688
|
Ot$1.instanceof(v$3)
|
|
689
689
|
]));
|
|
690
690
|
let q$3 = v$3;
|
|
691
|
-
const
|
|
691
|
+
const y$2 = class y extends Number {
|
|
692
692
|
/**
|
|
693
693
|
* Creates a Density representing the given number of bytes per value.
|
|
694
694
|
*
|
|
@@ -706,19 +706,19 @@ const m$2 = class m extends Number {
|
|
|
706
706
|
return new C$2(t2 * this.valueOf());
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
s$4(
|
|
710
|
-
s$4(
|
|
711
|
-
s$4(
|
|
712
|
-
s$4(
|
|
713
|
-
s$4(
|
|
714
|
-
s$4(
|
|
715
|
-
s$4(
|
|
716
|
-
Ot$1.number().transform((t2) => new
|
|
717
|
-
Ot$1.instanceof(Number).transform((t2) => new
|
|
718
|
-
Ot$1.instanceof(
|
|
709
|
+
s$4(y$2, "UNKNOWN", new y$2(0)), /** 128 bits per value. */
|
|
710
|
+
s$4(y$2, "BIT128", new y$2(16)), /** 64 bits per value. */
|
|
711
|
+
s$4(y$2, "BIT64", new y$2(8)), /** 32 bits per value. */
|
|
712
|
+
s$4(y$2, "BIT32", new y$2(4)), /** 16 bits per value. */
|
|
713
|
+
s$4(y$2, "BIT16", new y$2(2)), /** 8 bits per value. */
|
|
714
|
+
s$4(y$2, "BIT8", new y$2(1)), /** A zod schema for validating and transforming densities */
|
|
715
|
+
s$4(y$2, "z", Ot$1.union([
|
|
716
|
+
Ot$1.number().transform((t2) => new y$2(t2)),
|
|
717
|
+
Ot$1.instanceof(Number).transform((t2) => new y$2(t2)),
|
|
718
|
+
Ot$1.instanceof(y$2)
|
|
719
719
|
]));
|
|
720
|
-
let I$2 =
|
|
721
|
-
const
|
|
720
|
+
let I$2 = y$2;
|
|
721
|
+
const b$2 = class b {
|
|
722
722
|
/**
|
|
723
723
|
* Creates a TimeRange from the given start and end TimeStamps.
|
|
724
724
|
*
|
|
@@ -728,11 +728,11 @@ const T$2 = class T {
|
|
|
728
728
|
constructor(t2, e2) {
|
|
729
729
|
s$4(this, "start");
|
|
730
730
|
s$4(this, "end");
|
|
731
|
-
typeof t2 == "object" && "start" in t2 ? (this.start = new
|
|
731
|
+
typeof t2 == "object" && "start" in t2 ? (this.start = new m$2(t2.start), this.end = new m$2(t2.end)) : (this.start = new m$2(t2), this.end = new m$2(e2));
|
|
732
732
|
}
|
|
733
733
|
/** @returns The TimeSpan occupied by the TimeRange. */
|
|
734
734
|
get span() {
|
|
735
|
-
return new
|
|
735
|
+
return new w$3(this.end.valueOf() - this.start.valueOf());
|
|
736
736
|
}
|
|
737
737
|
/**
|
|
738
738
|
* Checks if the timestamp is valid i.e. the start is before the end.
|
|
@@ -764,7 +764,7 @@ const T$2 = class T {
|
|
|
764
764
|
* @returns A TimeRange with the start and end swapped.
|
|
765
765
|
*/
|
|
766
766
|
swap() {
|
|
767
|
-
return new
|
|
767
|
+
return new b(this.end, this.start);
|
|
768
768
|
}
|
|
769
769
|
/**
|
|
770
770
|
* Checks if the TimeRange is equal to the given TimeRange.
|
|
@@ -789,36 +789,36 @@ const T$2 = class T {
|
|
|
789
789
|
* @param other - The other TimeRange to compare to.
|
|
790
790
|
* @returns True if the two TimeRanges overlap, false otherwise.
|
|
791
791
|
*/
|
|
792
|
-
overlapsWith(t2, e2 =
|
|
792
|
+
overlapsWith(t2, e2 = w$3.ZERO) {
|
|
793
793
|
t2 = t2.makeValid();
|
|
794
794
|
const r2 = this.makeValid();
|
|
795
795
|
if (this.equals(t2))
|
|
796
796
|
return true;
|
|
797
797
|
if (t2.end.equals(r2.start) || r2.end.equals(t2.start))
|
|
798
798
|
return false;
|
|
799
|
-
const u2 =
|
|
800
|
-
return h2.before(u2) ? false : new
|
|
799
|
+
const u2 = m$2.max(r2.start, t2.start), h2 = m$2.min(r2.end, t2.end);
|
|
800
|
+
return h2.before(u2) ? false : new w$3(h2.sub(u2)).greaterThanOrEqual(e2);
|
|
801
801
|
}
|
|
802
802
|
roughlyEquals(t2, e2) {
|
|
803
803
|
let r2 = this.start.sub(t2.start).valueOf(), u2 = this.end.sub(t2.end).valueOf();
|
|
804
804
|
return r2 < 0 && (r2 = -r2), u2 < 0 && (u2 = -u2), r2 <= e2.valueOf() && u2 <= e2.valueOf();
|
|
805
805
|
}
|
|
806
806
|
contains(t2) {
|
|
807
|
-
return t2 instanceof
|
|
807
|
+
return t2 instanceof b ? this.contains(t2.start) && this.contains(t2.end) : this.start.beforeEq(t2) && this.end.after(t2);
|
|
808
808
|
}
|
|
809
809
|
boundBy(t2) {
|
|
810
|
-
const e2 = new
|
|
810
|
+
const e2 = new b(this.start, this.end);
|
|
811
811
|
return t2.start.after(this.start) && (e2.start = t2.start), t2.start.after(this.end) && (e2.end = t2.start), t2.end.before(this.end) && (e2.end = t2.end), t2.end.before(this.start) && (e2.start = t2.end), e2;
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
|
-
s$4(
|
|
815
|
-
s$4(
|
|
816
|
-
s$4(
|
|
817
|
-
s$4(
|
|
818
|
-
Ot$1.object({ start:
|
|
819
|
-
Ot$1.instanceof(
|
|
814
|
+
s$4(b$2, "MAX", new b$2(m$2.MIN, m$2.MAX)), /** The minimum possible time range. */
|
|
815
|
+
s$4(b$2, "MIN", new b$2(m$2.MAX, m$2.MIN)), /** A zero time range. */
|
|
816
|
+
s$4(b$2, "ZERO", new b$2(m$2.ZERO, m$2.ZERO)), /** A zod schema for validating and transforming time ranges */
|
|
817
|
+
s$4(b$2, "z", Ot$1.union([
|
|
818
|
+
Ot$1.object({ start: m$2.z, end: m$2.z }).transform((t2) => new b$2(t2.start, t2.end)),
|
|
819
|
+
Ot$1.instanceof(b$2)
|
|
820
820
|
]));
|
|
821
|
-
let U$2 =
|
|
821
|
+
let U$2 = b$2;
|
|
822
822
|
const n$2 = class n extends String {
|
|
823
823
|
constructor(t2) {
|
|
824
824
|
if (t2 instanceof n || typeof t2 == "string" || typeof t2.valueOf() == "string") {
|
|
@@ -1009,9 +1009,9 @@ const l$3 = class l extends Number {
|
|
|
1009
1009
|
return this.valueOf() / l.TERABYTE.valueOf();
|
|
1010
1010
|
}
|
|
1011
1011
|
toString() {
|
|
1012
|
-
const t2 = this.truncate(l.TERABYTE), e2 = this.truncate(l.GIGABYTE), r2 = this.truncate(l.MEGABYTE), u2 = this.truncate(l.KILOBYTE), h2 = this.truncate(l.BYTE), d3 = t2, S2 = e2.sub(t2), O2 = r2.sub(e2),
|
|
1012
|
+
const t2 = this.truncate(l.TERABYTE), e2 = this.truncate(l.GIGABYTE), r2 = this.truncate(l.MEGABYTE), u2 = this.truncate(l.KILOBYTE), h2 = this.truncate(l.BYTE), d3 = t2, S2 = e2.sub(t2), O2 = r2.sub(e2), T2 = u2.sub(r2), p2 = h2.sub(u2);
|
|
1013
1013
|
let o2 = "";
|
|
1014
|
-
return d3.isZero || (o2 += `${d3.terabytes}TB `), S2.isZero || (o2 += `${S2.gigabytes}GB `), O2.isZero || (o2 += `${O2.megabytes}MB `),
|
|
1014
|
+
return d3.isZero || (o2 += `${d3.terabytes}TB `), S2.isZero || (o2 += `${S2.gigabytes}GB `), O2.isZero || (o2 += `${O2.megabytes}MB `), T2.isZero || (o2 += `${T2.kilobytes}KB `), (!p2.isZero || o2 === "") && (o2 += `${p2.valueOf()}B`), o2.trim();
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Creates a Size from the given number of bytes.
|
|
@@ -1086,7 +1086,7 @@ const ft$1 = Ot$1.union([
|
|
|
1086
1086
|
Ot$1.instanceof(BigInt64Array)
|
|
1087
1087
|
]), F$2 = (f2) => {
|
|
1088
1088
|
const t2 = typeof f2;
|
|
1089
|
-
return t2 === "string" || t2 === "number" || t2 === "boolean" || t2 === "bigint" || f2 instanceof
|
|
1089
|
+
return t2 === "string" || t2 === "number" || t2 === "boolean" || t2 === "bigint" || f2 instanceof m$2 || f2 instanceof w$3 || f2 instanceof Date;
|
|
1090
1090
|
}, k$2 = (f2, t2, e2, r2 = 0) => f2.usesBigInt && !t2.usesBigInt ? Number(e2) - Number(r2) : !f2.usesBigInt && t2.usesBigInt ? BigInt(e2) - BigInt(r2) : R$2(e2, -r2), J$2 = (f2) => f2 == null ? false : Array.isArray(f2) || f2 instanceof ArrayBuffer || ArrayBuffer.isView(f2) && !(f2 instanceof DataView) || f2 instanceof N$2 ? true : F$2(f2), E$3 = -1;
|
|
1091
1091
|
let N$2 = class N {
|
|
1092
1092
|
constructor(t2) {
|
|
@@ -1117,7 +1117,7 @@ let N$2 = class N {
|
|
|
1117
1117
|
this.key = o2.key, this.dataType = o2.dataType, this.sampleOffset = o2.sampleOffset, this.gl = o2.gl, this._data = o2._data, this._timeRange = o2._timeRange, this.alignment = o2.alignment, this._cachedMin = o2._cachedMin, this._cachedMax = o2._cachedMax, this.writePos = o2.writePos, this._refCount = o2._refCount, this._cachedLength = o2._cachedLength;
|
|
1118
1118
|
return;
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const T2 = F$2(O2), p2 = Array.isArray(O2);
|
|
1121
1121
|
if (e2 != null)
|
|
1122
1122
|
this.dataType = new g$3(e2);
|
|
1123
1123
|
else {
|
|
@@ -1125,9 +1125,9 @@ let N$2 = class N {
|
|
|
1125
1125
|
throw new Error(
|
|
1126
1126
|
"cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type."
|
|
1127
1127
|
);
|
|
1128
|
-
if (p2 ||
|
|
1128
|
+
if (p2 || T2) {
|
|
1129
1129
|
let o2 = O2;
|
|
1130
|
-
if (!
|
|
1130
|
+
if (!T2) {
|
|
1131
1131
|
if (O2.length === 0)
|
|
1132
1132
|
throw new Error(
|
|
1133
1133
|
"cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type."
|
|
@@ -1142,7 +1142,7 @@ let N$2 = class N {
|
|
|
1142
1142
|
this.dataType = g$3.INT64;
|
|
1143
1143
|
else if (typeof o2 == "boolean")
|
|
1144
1144
|
this.dataType = g$3.BOOLEAN;
|
|
1145
|
-
else if (o2 instanceof
|
|
1145
|
+
else if (o2 instanceof m$2 || o2 instanceof Date || o2 instanceof m$2)
|
|
1146
1146
|
this.dataType = g$3.TIMESTAMP;
|
|
1147
1147
|
else if (typeof o2 == "object")
|
|
1148
1148
|
this.dataType = g$3.JSON;
|
|
@@ -1153,12 +1153,12 @@ let N$2 = class N {
|
|
|
1153
1153
|
} else
|
|
1154
1154
|
this.dataType = new g$3(O2);
|
|
1155
1155
|
}
|
|
1156
|
-
if (!p2 && !
|
|
1156
|
+
if (!p2 && !T2)
|
|
1157
1157
|
this._data = O2;
|
|
1158
1158
|
else {
|
|
1159
|
-
let o2 =
|
|
1159
|
+
let o2 = T2 ? [O2] : O2;
|
|
1160
1160
|
const M3 = o2[0];
|
|
1161
|
-
(M3 instanceof
|
|
1161
|
+
(M3 instanceof m$2 || M3 instanceof Date || M3 instanceof w$3) && (o2 = o2.map((B2) => new m$2(B2).valueOf())), this.dataType.equals(g$3.STRING) ? (this._cachedLength = o2.length, this._data = new TextEncoder().encode(o2.join(`
|
|
1162
1162
|
`) + `
|
|
1163
1163
|
`)) : this.dataType.equals(g$3.JSON) ? (this._cachedLength = o2.length, this._data = new TextEncoder().encode(
|
|
1164
1164
|
o2.map((B2) => JSON.stringify(B2)).join(`
|
|
@@ -5667,7 +5667,7 @@ const qc = (s3, e2) => {
|
|
|
5667
5667
|
* @returns The number of milliseconds since the unix epoch.
|
|
5668
5668
|
*/
|
|
5669
5669
|
milliseconds() {
|
|
5670
|
-
return Number(this.valueOf() / P.MILLISECOND.valueOf());
|
|
5670
|
+
return Number(this.valueOf()) / Number(P.MILLISECOND.valueOf());
|
|
5671
5671
|
}
|
|
5672
5672
|
toString() {
|
|
5673
5673
|
return this.date().toISOString();
|
|
@@ -5801,26 +5801,26 @@ const ie$1 = class ne {
|
|
|
5801
5801
|
}
|
|
5802
5802
|
/** @returns the decimal number of days in the timespan */
|
|
5803
5803
|
get days() {
|
|
5804
|
-
return Number(this.valueOf() / ne.DAY.valueOf());
|
|
5804
|
+
return Number(this.valueOf()) / Number(ne.DAY.valueOf());
|
|
5805
5805
|
}
|
|
5806
5806
|
/** @returns the decimal number of hours in the timespan */
|
|
5807
5807
|
get hours() {
|
|
5808
|
-
return Number(this.valueOf() / ne.HOUR.valueOf());
|
|
5808
|
+
return Number(this.valueOf()) / Number(ne.HOUR.valueOf());
|
|
5809
5809
|
}
|
|
5810
5810
|
/** @returns the decimal number of minutes in the timespan */
|
|
5811
5811
|
get minutes() {
|
|
5812
|
-
return Number(this.valueOf() / ne.MINUTE.valueOf());
|
|
5812
|
+
return Number(this.valueOf()) / Number(ne.MINUTE.valueOf());
|
|
5813
5813
|
}
|
|
5814
5814
|
/** @returns The number of seconds in the TimeSpan. */
|
|
5815
5815
|
get seconds() {
|
|
5816
|
-
return Number(this.valueOf() / ne.SECOND.valueOf());
|
|
5816
|
+
return Number(this.valueOf()) / Number(ne.SECOND.valueOf());
|
|
5817
5817
|
}
|
|
5818
5818
|
/** @returns The number of milliseconds in the TimeSpan. */
|
|
5819
5819
|
get milliseconds() {
|
|
5820
|
-
return Number(this.valueOf() / ne.MILLISECOND.valueOf());
|
|
5820
|
+
return Number(this.valueOf()) / Number(ne.MILLISECOND.valueOf());
|
|
5821
5821
|
}
|
|
5822
5822
|
get microseconds() {
|
|
5823
|
-
return Number(this.valueOf() / ne.MICROSECOND.valueOf());
|
|
5823
|
+
return Number(this.valueOf()) / Number(ne.MICROSECOND.valueOf());
|
|
5824
5824
|
}
|
|
5825
5825
|
get nanoseconds() {
|
|
5826
5826
|
return Number(this.valueOf());
|
|
@@ -13170,7 +13170,7 @@ const Qu = (s3, e2) => {
|
|
|
13170
13170
|
* @returns The number of milliseconds since the unix epoch.
|
|
13171
13171
|
*/
|
|
13172
13172
|
milliseconds() {
|
|
13173
|
-
return Number(this.valueOf() / M.MILLISECOND.valueOf());
|
|
13173
|
+
return Number(this.valueOf()) / Number(M.MILLISECOND.valueOf());
|
|
13174
13174
|
}
|
|
13175
13175
|
toString() {
|
|
13176
13176
|
return this.date().toISOString();
|
|
@@ -13304,26 +13304,26 @@ const ce$1 = class re {
|
|
|
13304
13304
|
}
|
|
13305
13305
|
/** @returns the decimal number of days in the timespan */
|
|
13306
13306
|
get days() {
|
|
13307
|
-
return Number(this.valueOf() / re.DAY.valueOf());
|
|
13307
|
+
return Number(this.valueOf()) / Number(re.DAY.valueOf());
|
|
13308
13308
|
}
|
|
13309
13309
|
/** @returns the decimal number of hours in the timespan */
|
|
13310
13310
|
get hours() {
|
|
13311
|
-
return Number(this.valueOf() / re.HOUR.valueOf());
|
|
13311
|
+
return Number(this.valueOf()) / Number(re.HOUR.valueOf());
|
|
13312
13312
|
}
|
|
13313
13313
|
/** @returns the decimal number of minutes in the timespan */
|
|
13314
13314
|
get minutes() {
|
|
13315
|
-
return Number(this.valueOf() / re.MINUTE.valueOf());
|
|
13315
|
+
return Number(this.valueOf()) / Number(re.MINUTE.valueOf());
|
|
13316
13316
|
}
|
|
13317
13317
|
/** @returns The number of seconds in the TimeSpan. */
|
|
13318
13318
|
get seconds() {
|
|
13319
|
-
return Number(this.valueOf() / re.SECOND.valueOf());
|
|
13319
|
+
return Number(this.valueOf()) / Number(re.SECOND.valueOf());
|
|
13320
13320
|
}
|
|
13321
13321
|
/** @returns The number of milliseconds in the TimeSpan. */
|
|
13322
13322
|
get milliseconds() {
|
|
13323
|
-
return Number(this.valueOf() / re.MILLISECOND.valueOf());
|
|
13323
|
+
return Number(this.valueOf()) / Number(re.MILLISECOND.valueOf());
|
|
13324
13324
|
}
|
|
13325
13325
|
get microseconds() {
|
|
13326
|
-
return Number(this.valueOf() / re.MICROSECOND.valueOf());
|
|
13326
|
+
return Number(this.valueOf()) / Number(re.MICROSECOND.valueOf());
|
|
13327
13327
|
}
|
|
13328
13328
|
get nanoseconds() {
|
|
13329
13329
|
return Number(this.valueOf());
|
|
@@ -17986,7 +17986,7 @@ const d = class d2 {
|
|
|
17986
17986
|
}
|
|
17987
17987
|
};
|
|
17988
17988
|
s2(d, "NOOP", new d("", "", ""));
|
|
17989
|
-
let
|
|
17989
|
+
let b2 = d;
|
|
17990
17990
|
const S = ["debug", "info", "warn", "error"], Pe = (r2) => {
|
|
17991
17991
|
const e2 = S.indexOf(r2);
|
|
17992
17992
|
return ({ level: t2 }) => S.indexOf(t2) >= e2;
|
|
@@ -17995,7 +17995,7 @@ const S = ["debug", "info", "warn", "error"], Pe = (r2) => {
|
|
|
17995
17995
|
return ({ path: n3 }) => !(e2 != null && !e2.some((a3) => n3.startsWith(a3)) || t2 != null && t2.some((a3) => n3.startsWith(a3)));
|
|
17996
17996
|
}, v2 = class v3 {
|
|
17997
17997
|
constructor(e2 = {}) {
|
|
17998
|
-
s2(this, "meta",
|
|
17998
|
+
s2(this, "meta", b2.NOOP);
|
|
17999
17999
|
s2(this, "filters");
|
|
18000
18000
|
const { filters: t2 = [] } = e2;
|
|
18001
18001
|
this.filters = t2;
|
|
@@ -18091,7 +18091,7 @@ function O(r2) {
|
|
|
18091
18091
|
if (!(!n3 || !Y(n3)))
|
|
18092
18092
|
return (t2 = w[_]) === null || t2 === void 0 ? void 0 : t2[r2];
|
|
18093
18093
|
}
|
|
18094
|
-
function
|
|
18094
|
+
function T(r2, e2) {
|
|
18095
18095
|
e2.debug("@opentelemetry/api: Unregistering a global for " + r2 + " v" + g$1 + ".");
|
|
18096
18096
|
var t2 = w[_];
|
|
18097
18097
|
t2 && delete t2[r2];
|
|
@@ -18227,7 +18227,7 @@ var Q = function(r2, e2) {
|
|
|
18227
18227
|
return I("diag", G2, t2, true);
|
|
18228
18228
|
};
|
|
18229
18229
|
t2.setLogger = n3, t2.disable = function() {
|
|
18230
|
-
|
|
18230
|
+
T(L, t2);
|
|
18231
18231
|
}, t2.createComponentLogger = function(a3) {
|
|
18232
18232
|
return new H2(a3);
|
|
18233
18233
|
}, t2.verbose = e2("verbose"), t2.debug = e2("debug"), t2.info = e2("info"), t2.warn = e2("warn"), t2.error = e2("error");
|
|
@@ -18435,7 +18435,7 @@ var oe = (
|
|
|
18435
18435
|
}, r2.prototype._getContextManager = function() {
|
|
18436
18436
|
return O(N2) || he2;
|
|
18437
18437
|
}, r2.prototype.disable = function() {
|
|
18438
|
-
this._getContextManager().disable(),
|
|
18438
|
+
this._getContextManager().disable(), T(N2, E.instance());
|
|
18439
18439
|
}, r2;
|
|
18440
18440
|
}()
|
|
18441
18441
|
), R;
|
|
@@ -18484,21 +18484,21 @@ var x = "propagation", _e = new ve2(), we = (
|
|
|
18484
18484
|
}, r2.prototype.fields = function() {
|
|
18485
18485
|
return this._getGlobalPropagator().fields();
|
|
18486
18486
|
}, r2.prototype.disable = function() {
|
|
18487
|
-
|
|
18487
|
+
T(x, E.instance());
|
|
18488
18488
|
}, r2.prototype._getGlobalPropagator = function() {
|
|
18489
18489
|
return O(x) || _e;
|
|
18490
18490
|
}, r2;
|
|
18491
18491
|
}()
|
|
18492
18492
|
), Oe = we.getInstance();
|
|
18493
|
-
const $ = ["bench", "debug", "prod"], Ee = (r2) => (e2) => $.indexOf(e2) >= $.indexOf(r2),
|
|
18493
|
+
const $ = ["bench", "debug", "prod"], Ee = (r2) => (e2) => $.indexOf(e2) >= $.indexOf(r2), y2 = class y3 {
|
|
18494
18494
|
constructor(e2, t2 = Ee("debug")) {
|
|
18495
|
-
s2(this, "meta",
|
|
18495
|
+
s2(this, "meta", b2.NOOP);
|
|
18496
18496
|
s2(this, "tracer");
|
|
18497
18497
|
s2(this, "filter");
|
|
18498
18498
|
this.tracer = e2, this.filter = t2;
|
|
18499
18499
|
}
|
|
18500
18500
|
child(e2) {
|
|
18501
|
-
const t2 = new
|
|
18501
|
+
const t2 = new y3(this.tracer, this.filter);
|
|
18502
18502
|
return t2.meta = e2, t2;
|
|
18503
18503
|
}
|
|
18504
18504
|
/**
|
|
@@ -18571,8 +18571,8 @@ const $ = ["bench", "debug", "prod"], Ee = (r2) => (e2) => $.indexOf(e2) >= $.in
|
|
|
18571
18571
|
});
|
|
18572
18572
|
}
|
|
18573
18573
|
};
|
|
18574
|
-
s2(
|
|
18575
|
-
let C =
|
|
18574
|
+
s2(y2, "NOOP", new y2());
|
|
18575
|
+
let C = y2;
|
|
18576
18576
|
class Ae {
|
|
18577
18577
|
constructor(e2, t2) {
|
|
18578
18578
|
s2(this, "key");
|
|
@@ -18596,7 +18596,7 @@ class Ne {
|
|
|
18596
18596
|
recordError(e2) {
|
|
18597
18597
|
}
|
|
18598
18598
|
}
|
|
18599
|
-
const
|
|
18599
|
+
const m = class m2 {
|
|
18600
18600
|
constructor({
|
|
18601
18601
|
key: e2 = "",
|
|
18602
18602
|
serviceName: t2 = "",
|
|
@@ -18609,15 +18609,15 @@ const m2 = class m3 {
|
|
|
18609
18609
|
s2(this, "meta");
|
|
18610
18610
|
s2(this, "T");
|
|
18611
18611
|
s2(this, "L");
|
|
18612
|
-
this.meta = i5 ?? new
|
|
18612
|
+
this.meta = i5 ?? new b2(e2, e2, t2, o2), this.T = a3.child(this.meta), this.L = n3.child(this.meta);
|
|
18613
18613
|
}
|
|
18614
18614
|
child(e2) {
|
|
18615
18615
|
const t2 = this.meta.child(e2);
|
|
18616
|
-
return new
|
|
18616
|
+
return new m2({ __meta: t2, tracer: this.T, logger: this.L });
|
|
18617
18617
|
}
|
|
18618
18618
|
};
|
|
18619
|
-
s2(
|
|
18620
|
-
let B =
|
|
18619
|
+
s2(m, "NOOP", new m({ noop: true }));
|
|
18620
|
+
let B = m;
|
|
18621
18621
|
const Ce = B.NOOP;
|
|
18622
18622
|
const g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18623
18623
|
__proto__: null,
|
|
@@ -19517,7 +19517,7 @@ const specZ = z$3.object({
|
|
|
19517
19517
|
variant: variantZ,
|
|
19518
19518
|
message: z$3.string(),
|
|
19519
19519
|
description: z$3.string().optional(),
|
|
19520
|
-
time:
|
|
19520
|
+
time: m$2.z,
|
|
19521
19521
|
data: z$3.record(z$3.unknown()).optional()
|
|
19522
19522
|
});
|
|
19523
19523
|
const aggregatorStateZ = z$3.object({
|
|
@@ -19533,7 +19533,7 @@ class Aggregator extends Composite {
|
|
|
19533
19533
|
this.ctx.set(CONTEXT_KEY, this);
|
|
19534
19534
|
}
|
|
19535
19535
|
add(spec) {
|
|
19536
|
-
const time =
|
|
19536
|
+
const time = m$2.now();
|
|
19537
19537
|
this.setState((p2) => ({
|
|
19538
19538
|
...p2,
|
|
19539
19539
|
statuses: [...p2.statuses, { time, key: time.toString(), ...spec }]
|
|
@@ -19622,19 +19622,19 @@ export {
|
|
|
19622
19622
|
LevelComponentSizes as j,
|
|
19623
19623
|
dimensions as k,
|
|
19624
19624
|
levelZ as l,
|
|
19625
|
-
|
|
19626
|
-
|
|
19627
|
-
|
|
19628
|
-
|
|
19629
|
-
|
|
19625
|
+
m$2 as m,
|
|
19626
|
+
w$2 as n,
|
|
19627
|
+
specZ as o,
|
|
19628
|
+
S$2 as p,
|
|
19629
|
+
A$3 as q,
|
|
19630
19630
|
render as r,
|
|
19631
19631
|
specZ$1 as s,
|
|
19632
19632
|
themeZ as t,
|
|
19633
19633
|
use as u,
|
|
19634
19634
|
variantZ as v,
|
|
19635
19635
|
w$3 as w,
|
|
19636
|
-
|
|
19637
|
-
|
|
19636
|
+
g$3 as x,
|
|
19637
|
+
_b as y,
|
|
19638
19638
|
n2 as z
|
|
19639
19639
|
};
|
|
19640
|
-
//# sourceMappingURL=aggregator-
|
|
19640
|
+
//# sourceMappingURL=aggregator-B8fg7W2s.js.map
|