@synnaxlabs/pluto 0.46.3 → 0.46.5
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/{Toggle-BvHOvpZl.js → Toggle-BSKwOmoO.js} +1 -1
- package/dist/{Toggle-YrCaaWoP.cjs → Toggle-_qC7rKlB.cjs} +1 -1
- package/dist/{Video-B3mUCF7w.js → Video-CBAgqKPg.js} +1 -1
- package/dist/{Video-PX9PWa1_.cjs → Video-DqumxMbz.cjs} +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-BJh3xDSW.cjs → css-B0VZnJIa.cjs} +1 -1
- package/dist/{css-C24hS2UX.js → css-BYwooBtA.js} +3 -4
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +6 -6
- package/dist/{external-ree9J7kb.js → external-3IAPJZd8.js} +1 -1
- package/dist/{external-1ucYXJx8.js → external-4XyImRQb.js} +2 -2
- package/dist/{external-CC9QgzfY.js → external-BGg0fHtm.js} +3 -3
- package/dist/external-BOoE1n7j.cjs +1 -0
- package/dist/{external-D7ez6YFA.cjs → external-BXX-SCyF.cjs} +1 -1
- package/dist/{external-S4v-IR_C.js → external-C22znjfj.js} +3 -3
- package/dist/{external-ChJFeBx4.cjs → external-CeLfroAX.cjs} +1 -1
- package/dist/{external-BN2wbDrK.js → external-CtsXUJlk.js} +4 -6
- package/dist/{external-Dia3MCeO.js → external-DCkst86Z.js} +3 -3
- package/dist/{external-orHcg1KY.cjs → external-DCuPDCVK.cjs} +1 -1
- package/dist/{external-DfxokOST.cjs → external-DD6e2d3X.cjs} +1 -1
- package/dist/{external-Cg3K8ETl.js → external-DU0x-2Yi.js} +4 -4
- package/dist/{external-DcJjrD1A.cjs → external-DUX5Vk-s.cjs} +1 -1
- package/dist/{external-CtPQhs2L.cjs → external-DXj3Qdau.cjs} +1 -1
- package/dist/{external-C-ExavVe.js → external-DXl7PF3y.js} +3 -3
- package/dist/{external-ChfziUeG.js → external-DcYga2E6.js} +2 -2
- package/dist/{external-mtaOrZVh.js → external-DgLr7aGS.js} +2 -2
- package/dist/{external-s4B9EjQm.cjs → external-Dga7w9aP.cjs} +1 -1
- package/dist/{external-Clg5_LVL.cjs → external-DwBkyvnu.cjs} +1 -1
- package/dist/{external-DSC98ftR.js → external-PwRAq1r5.js} +3 -3
- package/dist/{external-BwkIuXvQ.cjs → external-RnwuuBHi.cjs} +1 -1
- package/dist/{external-NOoRXXaT.cjs → external-ZWggP8dN.cjs} +1 -1
- package/dist/{external-D-7LQcc1.cjs → external-h9auAXRB.cjs} +1 -1
- package/dist/{external-RDyCOmKR.js → external-kOcOFTV6.js} +3 -3
- package/dist/{external-Ck9vwLNn.js → external-vHAlqzTA.js} +3 -3
- package/dist/{external-VIR_Vvod.cjs → external-yHXc-LBl.cjs} +1 -1
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-CNdpxtJg.js → fontString-CVUEOEMw.js} +2 -2
- package/dist/{fontString-BMITZjR-.cjs → fontString-DBgTdlAe.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +35 -31
- 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/{main-9Dw_ngUE.js → main-DZlsR1KH.js} +3 -3
- package/dist/{main-rewFivKu.cjs → main-Dpy4tpZ4.cjs} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/pluto.css +1 -1
- package/dist/{provider-DXuSQEu0.js → provider-CKYgKu3z.js} +10 -8
- package/dist/{provider-BMcIM58p.js → provider-CSa0L57i.js} +3 -3
- package/dist/{provider-CedWF-id.cjs → provider-CWezGpoq.cjs} +1 -1
- package/dist/{provider-DshN-WBB.cjs → provider-Fw6FIHoE.cjs} +5 -5
- package/dist/src/color/GradientPicker.d.ts.map +1 -1
- package/dist/src/hardware/task/queries.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- 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/{units-BfWwpiDe.js → units-CeCcz4O4.js} +1 -1
- package/dist/{units-DOj-2MGY.cjs → units-gFJ6UvpU.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +6 -6
- package/dist/external-Dxu0KYI_.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import g, { z as i } from "zod";
|
|
2
|
-
import { S as Ef, R as x, H as kf, X as tt, j as z, b as Bt, Q as Ee, _ as Ul, c as Nf, C as xf, d as ce, O as ae, r as Vt, m as Je, e as nt, f as Af, g as Se, h as If, v as Cf, x as Kn, F as zl, D as Zl, a as Ll, i as Dl, A as jf, J as $f, k as co } from "./css-
|
|
2
|
+
import { S as Ef, R as x, H as kf, X as tt, j as z, b as Bt, Q as Ee, _ as Ul, c as Nf, C as xf, d as ce, O as ae, r as Vt, m as Je, e as nt, f as Af, g as Se, h as If, v as Cf, x as Kn, F as zl, D as Zl, a as Ll, i as Dl, A as jf, J as $f, k as co } from "./css-BYwooBtA.js";
|
|
3
3
|
import { useState as ri } from "react";
|
|
4
4
|
const _f = (t) => {
|
|
5
5
|
const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
|
|
@@ -3087,7 +3087,8 @@ i.enum([
|
|
|
3087
3087
|
"disabled"
|
|
3088
3088
|
]);
|
|
3089
3089
|
i.object({
|
|
3090
|
-
stack: i.string()
|
|
3090
|
+
stack: i.string(),
|
|
3091
|
+
error: i.instanceof(Error)
|
|
3091
3092
|
});
|
|
3092
3093
|
let Xn = class extends rt.createTyped("freighter") {
|
|
3093
3094
|
}, Ae = class extends Xn.sub("eof") {
|
|
@@ -7532,16 +7533,15 @@ const Iu = i.enum([
|
|
|
7532
7533
|
labels: pc(Nu).optional(),
|
|
7533
7534
|
details: t ?? i.unknown().optional()
|
|
7534
7535
|
}), Kw = i.object({
|
|
7535
|
-
stack: i.string()
|
|
7536
|
+
stack: i.string(),
|
|
7537
|
+
error: i.instanceof(Error)
|
|
7536
7538
|
}), Jw = (t, e) => {
|
|
7537
7539
|
if (!(t instanceof Error)) throw t;
|
|
7538
7540
|
return Cu({
|
|
7539
7541
|
variant: "error",
|
|
7540
7542
|
message: e ?? t.message,
|
|
7541
7543
|
description: e != null ? t.message : void 0,
|
|
7542
|
-
details: {
|
|
7543
|
-
stack: t.stack ?? ""
|
|
7544
|
-
}
|
|
7544
|
+
details: { stack: t.stack ?? "", error: t }
|
|
7545
7545
|
});
|
|
7546
7546
|
}, Cu = (t) => ({
|
|
7547
7547
|
key: bi(),
|
|
@@ -11143,7 +11143,7 @@ const Ek = i.enum(["disconnected", "connecting", "connected", "failed"]), kk = i
|
|
|
11143
11143
|
error: void 0,
|
|
11144
11144
|
message: "Disconnected",
|
|
11145
11145
|
clientServerCompatible: !1,
|
|
11146
|
-
clientVersion: "0.46.
|
|
11146
|
+
clientVersion: "0.46.1"
|
|
11147
11147
|
}, ol = (t, e, n) => {
|
|
11148
11148
|
const r = n ? "cluster" : "client";
|
|
11149
11149
|
return `Synnax cluster node version ${t != null ? `${t} ` : ""}is too ${n ? "old" : "new"} for client version ${e}.
|
|
@@ -12827,6 +12827,8 @@ const L0 = i.object({
|
|
|
12827
12827
|
names: i.string().array().optional(),
|
|
12828
12828
|
types: i.string().array().optional(),
|
|
12829
12829
|
includeStatus: i.boolean().optional(),
|
|
12830
|
+
internal: i.boolean().optional(),
|
|
12831
|
+
snapshot: i.boolean().optional(),
|
|
12830
12832
|
searchTerm: i.string().optional(),
|
|
12831
12833
|
offset: i.number().optional(),
|
|
12832
12834
|
limit: i.number().optional()
|
|
@@ -14099,7 +14101,7 @@ class Yd extends zh {
|
|
|
14099
14101
|
/**
|
|
14100
14102
|
* The version of the client.
|
|
14101
14103
|
*/
|
|
14102
|
-
clientVersion = "0.46.
|
|
14104
|
+
clientVersion = "0.46.1";
|
|
14103
14105
|
/**
|
|
14104
14106
|
* @param props.host - Hostname of a node in the cluster.
|
|
14105
14107
|
* @param props.port - Port of the node in the cluster.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as on, D as kr, E as Ms, F as Ps, H as Ls, I as As, J as Os, K as Ns, M as _s, N as Is, Q as Ys, T as Us, U as Zs, V as Bs, W as Fs, X as $s, Y as qs, Z as Hs, m as js, $ as zs, a0 as Ws, a1 as Xs, a2 as qt, a3 as Vs, a4 as Gs, a5 as Ks, a6 as Qs, a7 as Js, a8 as ei, a9 as ti, aa as ni, ab as ri, ac as si, ad as ii, ae as Et, af as ai, ag as ln, ah as oi, ai as li, aj as ci, ak as ui, al as hi, am as di, an as Rt, ao as fi, ap as gi, aq as pi, ar as mi, as as Dr, at as yi, au as bi, av as xi, aw as Si, ax as vi, ay as Ti, az as wi, aA as Ci, aB as Ei, aC as Ri, aD as ki, aE as kt, aF as cn, aG as Ge, aH as Mr, aI as Pr, aJ as Lr, aK as un, aL as hn, aM as Ar, aN as Or, aO as Di, aP as Mi, aQ as Pi, aR as Li, aS as Ai, aT as Oi, aU as ct, aV as Ni, aW as _i, aX as Ii, aY as Yi, aZ as Ui, a_ as Zi, a$ as Bi, b0 as Fi, b1 as $i, b2 as qi, b3 as Hi, b4 as dn, b5 as ji, b6 as zi, b7 as Wi, b8 as fn, b9 as Xi, ba as Vi, bb as Nr, bc as Gi, bd as Ke, be as H, bf as Ki, bg as Qi, bh as Z, bi as _r, bj as Dt, bk as Mt, G as Ji, bl as fe, h as j, bm as he, bn as ea, bo as An, bp as ta, bq as na, u as re, br as ra, d as On, bs as $e, bt as Pt, l as gn, bu as V, bv as pn, bw as mn, bx as sa, by as Ir, bz as yn, bA as ia, bB as aa, c as Nt, bC as oa, bD as la } from "./provider-
|
|
1
|
+
import { B as on, D as kr, E as Ms, F as Ps, H as Ls, I as As, J as Os, K as Ns, M as _s, N as Is, Q as Ys, T as Us, U as Zs, V as Bs, W as Fs, X as $s, Y as qs, Z as Hs, m as js, $ as zs, a0 as Ws, a1 as Xs, a2 as qt, a3 as Vs, a4 as Gs, a5 as Ks, a6 as Qs, a7 as Js, a8 as ei, a9 as ti, aa as ni, ab as ri, ac as si, ad as ii, ae as Et, af as ai, ag as ln, ah as oi, ai as li, aj as ci, ak as ui, al as hi, am as di, an as Rt, ao as fi, ap as gi, aq as pi, ar as mi, as as Dr, at as yi, au as bi, av as xi, aw as Si, ax as vi, ay as Ti, az as wi, aA as Ci, aB as Ei, aC as Ri, aD as ki, aE as kt, aF as cn, aG as Ge, aH as Mr, aI as Pr, aJ as Lr, aK as un, aL as hn, aM as Ar, aN as Or, aO as Di, aP as Mi, aQ as Pi, aR as Li, aS as Ai, aT as Oi, aU as ct, aV as Ni, aW as _i, aX as Ii, aY as Yi, aZ as Ui, a_ as Zi, a$ as Bi, b0 as Fi, b1 as $i, b2 as qi, b3 as Hi, b4 as dn, b5 as ji, b6 as zi, b7 as Wi, b8 as fn, b9 as Xi, ba as Vi, bb as Nr, bc as Gi, bd as Ke, be as H, bf as Ki, bg as Qi, bh as Z, bi as _r, bj as Dt, bk as Mt, G as Ji, bl as fe, h as j, bm as he, bn as ea, bo as An, bp as ta, bq as na, u as re, br as ra, d as On, bs as $e, bt as Pt, l as gn, bu as V, bv as pn, bw as mn, bx as sa, by as Ir, bz as yn, bA as ia, bB as aa, c as Nt, bC as oa, bD as la } from "./provider-CKYgKu3z.js";
|
|
2
2
|
import pe, { z as p } from "zod";
|
|
3
|
-
import { R as y, e as C, d as A, Q as d, g as Qe, A as Yr, l as Ur, S as ca, j as g, f as ua, b as G, a as Zr, c as Br, G as ha, r as $, m as qe, K, _ as Nn, p as te, O as da, Z as Lt, X as Fr, k as _n, F as $r } from "./css-
|
|
4
|
-
import { f as Fe } from "./fontString-
|
|
3
|
+
import { R as y, e as C, d as A, Q as d, g as Qe, A as Yr, l as Ur, S as ca, j as g, f as ua, b as G, a as Zr, c as Br, G as ha, r as $, m as qe, K, _ as Nn, p as te, O as da, Z as Lt, X as Fr, k as _n, F as $r } from "./css-BYwooBtA.js";
|
|
4
|
+
import { f as Fe } from "./fontString-CVUEOEMw.js";
|
|
5
5
|
import "react";
|
|
6
6
|
const bn = "pluto-vis-renderer", xn = (t, e) => {
|
|
7
7
|
t.set(bn, e, !1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./provider-DshN-WBB.cjs"),g=require("zod"),s=require("./css-BJh3xDSW.cjs"),Le=require("./fontString-BMITZjR-.cjs");require("react");const Ht="pluto-vis-renderer",pt=(t,e)=>{t.set(Ht,e,!1)},gt=t=>t.get(Ht),qt=t=>t.getOptional(Ht),G=(t,e)=>gt(t)(e),us=Object.freeze(Object.defineProperty({__proto__:null,AbstractSink:c.AbstractSink,AbstractSource:c.AbstractSource,Base:c.Base,BaseProvider:c.BaseProvider,BooleanStatus:c.BooleanStatus,CONTEXT_KEY:c.CONTEXT_KEY,ChannelData:c.ChannelData,ColorGradient:c.ColorGradient,CompoundTelemFactory:c.CompoundTelemFactory,Context:c.Context$1,FixedColorSource:c.FixedColorSource,FixedNumber:c.FixedNumber,FixedString:c.FixedString,IterativeSeries:c.IterativeSeries,Mean:c.Mean,MultiSourceTransformer:c.MultiSourceTransformer,NoopFactory:c.NoopFactory,PipelineFactory:c.PipelineFactory,REGISTRY:c.REGISTRY$1,RemoteFactory:c.RemoteFactory,RollingAverage:c.RollingAverage,ScaleNumber:c.ScaleNumber,SeriesDownsampler:c.SeriesDownsampler,SetPoint:c.SetPoint,SinkPipeline:c.SinkPipeline,SourcePipeline:c.SourcePipeline,StaticFactory:c.StaticFactory,StreamChannelData:c.StreamChannelData,StreamChannelValue:c.StreamChannelValue,StringifyNumber:c.StringifyNumber,TransformerFactory:c.TransformerFactory,UnarySinkTransformer:c.UnarySinkTransformer,UnarySourceTransformer:c.UnarySourceTransformer,WithinBounds:c.WithinBounds,booleanSinkSpecZ:c.booleanSinkSpecZ,booleanSinkTransformerSpecZ:c.booleanSinkTransformerSpecZ,booleanSourceSpecZ:c.booleanSourceSpecZ,booleanSourceTransformerSpecZ:c.booleanSourceTransformerSpecZ,booleanStatus:c.booleanStatus,booleanStatusProps:c.booleanStatusProps,channelData:c.channelData,colorGradient:c.colorGradient,colorGradientProps:c.colorGradientProps,colorSourceSpecZ:c.colorSourceSpecZ,connectionZ:c.connectionZ,createFactory:c.createFactory,downsampleMode:c.downsampleMode,downsampleModeProps:c.downsampleModeProps,downsampleModeZ:c.downsampleModeZ,fixedArray:c.fixedArray,fixedColor:c.fixedColor,fixedColorSourcePropsZ:c.fixedColorSourcePropsZ,fixedNumber:c.fixedNumber,fixedNumberPropsZ:c.fixedNumberPropsZ,fixedSeriesPropsZ:c.fixedSeriesPropsZ,fixedString:c.fixedString,fixedStringPropsZ:c.fixedStringPropsZ,iterativeArray:c.iterativeArray,iterativeSeriesPropsZ:c.iterativeSeriesPropsZ,mean:c.mean,noopBooleanSinkSpec:c.noopBooleanSinkSpec,noopBooleanSourceSpec:c.noopBooleanSourceSpec,noopColorSourceSpec:c.noopColorSourceSpec,noopNumericSinkSpec:c.noopNumericSinkSpec,noopNumericSourceSpec:c.noopNumericSourceSpec,noopSeriesSourceSpec:c.noopSeriesSourceSpec,noopStatusSourceSpec:c.noopStatusSourceSpec,noopStringSourceSpec:c.noopStringSourceSpec,numberSinkSpecZ:c.numberSinkSpecZ,numberSourceSpecZ:c.numberSourceSpecZ,providerStateZ:c.providerStateZ,rollingAverage:c.rollingAverage,rollingAverageProps:c.rollingAverageProps,scaleNumber:c.scaleNumber,scaleNumberProps:c.scaleNumberProps,seriesDownsampler:c.seriesDownsampler,seriesSourceSpecZ:c.seriesSourceSpecZ,setContext:c.setContext,setpoint:c.setpoint,sinkPipeline:c.sinkPipeline,sinkPipelinePropsZ:c.sinkPipelinePropsZ,sinkSpecZ:c.sinkSpecZ,sinkTransformerSpecZ:c.sinkTransformerSpecZ,sourcePipeline:c.sourcePipeline,sourcePipelinePropsZ:c.sourcePipelinePropsZ,sourceSpecZ:c.sourceSpecZ,sourceTransformerSpecZ:c.sourceTransformerSpecZ,specZ:c.specZ$1,statusSourceSpecZ:c.statusSourceSpecZ,streamChannelData:c.streamChannelData,streamChannelValue:c.streamChannelValue,streamChannelValuePropsZ:c.streamChannelValuePropsZ,stringSourceSpecZ:c.stringSourceSpecZ,stringifyNumber:c.stringifyNumber,stringifyNumberProps:c.stringifyNumberProps,useChildContext:c.useChildContext,useContext:c.useContext,useSink:c.useSink,useSource:c.useSource,withinBounds:c.withinBounds,withinBoundsProps:c.withinBoundsProps},Symbol.toStringTag,{value:"Module"}));function Qt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function qn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ue(){}var De=.7,Ve=1/De,me="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hs=/^#([0-9a-f]{3,8})$/,ds=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),fs=new RegExp(`^rgb\\(${H},${H},${H}\\)$`),ps=new RegExp(`^rgba\\(${me},${me},${me},${Me}\\)$`),gs=new RegExp(`^rgba\\(${H},${H},${H},${Me}\\)$`),ms=new RegExp(`^hsl\\(${Me},${H},${H}\\)$`),Ss=new RegExp(`^hsla\\(${Me},${H},${H},${Me}\\)$`),fn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qt(Ue,ye,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pn,formatHex:pn,formatHex8:ys,formatHsl:bs,formatRgb:gn,toString:gn});function pn(){return this.rgb().formatHex()}function ys(){return this.rgb().formatHex8()}function bs(){return Qn(this).formatHsl()}function gn(){return this.rgb().formatRgb()}function ye(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=hs.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?mn(e):n===3?new Y(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?qe(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?qe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ds.exec(t))?new Y(e[1],e[2],e[3],1):(e=fs.exec(t))?new Y(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ps.exec(t))?qe(e[1],e[2],e[3],e[4]):(e=gs.exec(t))?qe(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ms.exec(t))?bn(e[1],e[2]/100,e[3]/100,1):(e=Ss.exec(t))?bn(e[1],e[2]/100,e[3]/100,e[4]):fn.hasOwnProperty(t)?mn(fn[t]):t==="transparent"?new Y(NaN,NaN,NaN,0):null}function mn(t){return new Y(t>>16&255,t>>8&255,t&255,1)}function qe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Y(t,e,n,r)}function xs(t){return t instanceof Ue||(t=ye(t)),t?(t=t.rgb(),new Y(t.r,t.g,t.b,t.opacity)):new Y}function Et(t,e,n,r){return arguments.length===1?xs(t):new Y(t,e,n,r??1)}function Y(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Qt(Y,Et,qn(Ue,{brighter(t){return t=t==null?Ve:Math.pow(Ve,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?De:Math.pow(De,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Y(re(this.r),re(this.g),re(this.b),Ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sn,formatHex:Sn,formatHex8:vs,formatRgb:yn,toString:yn}));function Sn(){return`#${te(this.r)}${te(this.g)}${te(this.b)}`}function vs(){return`#${te(this.r)}${te(this.g)}${te(this.b)}${te((isNaN(this.opacity)?1:this.opacity)*255)}`}function yn(){const t=Ke(this.opacity);return`${t===1?"rgb(":"rgba("}${re(this.r)}, ${re(this.g)}, ${re(this.b)}${t===1?")":`, ${t})`}`}function Ke(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function re(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function te(t){return t=re(t),(t<16?"0":"")+t.toString(16)}function bn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new F(t,e,n,r)}function Qn(t){if(t instanceof F)return new F(t.h,t.s,t.l,t.opacity);if(t instanceof Ue||(t=ye(t)),!t)return new F;if(t instanceof F)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),i=NaN,l=a-o,h=(a+o)/2;return l?(e===a?i=(n-r)/l+(n<r)*6:n===a?i=(r-e)/l+2:i=(e-n)/l+4,l/=h<.5?a+o:2-a-o,i*=60):l=h>0&&h<1?0:i,new F(i,l,h,t.opacity)}function Ts(t,e,n,r){return arguments.length===1?Qn(t):new F(t,e,n,r??1)}function F(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Qt(F,Ts,qn(Ue,{brighter(t){return t=t==null?Ve:Math.pow(Ve,t),new F(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?De:Math.pow(De,t),new F(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Y(yt(t>=240?t-240:t+120,o,r),yt(t,o,r),yt(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new F(xn(this.h),Qe(this.s),Qe(this.l),Ke(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ke(this.opacity);return`${t===1?"hsl(":"hsla("}${xn(this.h)}, ${Qe(this.s)*100}%, ${Qe(this.l)*100}%${t===1?")":`, ${t})`}`}}));function xn(t){return t=(t||0)%360,t<0?t+360:t}function Qe(t){return Math.max(0,Math.min(1,t||0))}function yt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Wt=t=>()=>t;function ws(t,e){return function(n){return t+n*e}}function Cs(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Rs(t){return(t=+t)==1?Wn:function(e,n){return n-e?Cs(e,n,t):Wt(isNaN(e)?n:e)}}function Wn(t,e){var n=e-t;return n?ws(t,n):Wt(isNaN(t)?e:t)}const kt=(function t(e){var n=Rs(e);function r(o,a){var i=n((o=Et(o)).r,(a=Et(a)).r),l=n(o.g,a.g),h=n(o.b,a.b),u=Wn(o.opacity,a.opacity);return function(d){return o.r=i(d),o.g=l(d),o.b=h(d),o.opacity=u(d),o+""}}return r.gamma=t,r})(1);function Es(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=t[o]*(1-a)+e[o]*a;return r}}function ks(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ps(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=mt(t[i],e[i]);for(;i<n;++i)a[i]=e[i];return function(l){for(i=0;i<r;++i)a[i]=o[i](l);return a}}function Ls(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ae(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ds(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=mt(t[o],e[o]):r[o]=e[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var Pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bt=new RegExp(Pt.source,"g");function Ms(t){return function(){return t}}function As(t){return function(e){return t(e)+""}}function Gn(t,e){var n=Pt.lastIndex=bt.lastIndex=0,r,o,a,i=-1,l=[],h=[];for(t=t+"",e=e+"";(r=Pt.exec(t))&&(o=bt.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),l[i]?l[i]+=a:l[++i]=a),(r=r[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,h.push({i,x:Ae(r,o)})),n=bt.lastIndex;return n<e.length&&(a=e.slice(n),l[i]?l[i]+=a:l[++i]=a),l.length<2?h[0]?As(h[0].x):Ms(e):(e=h.length,function(u){for(var d=0,f;d<e;++d)l[(f=h[d]).i]=f.x(u);return l.join("")})}function mt(t,e){var n=typeof e,r;return e==null||n==="boolean"?Wt(e):(n==="number"?Ae:n==="string"?(r=ye(e))?(e=r,kt):Gn:e instanceof ye?kt:e instanceof Date?Ls:ks(e)?Es:Array.isArray(e)?Ps:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ds:Ae)(t,e)}function Os(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}const vn=`#version 300 es
|
|
1
|
+
"use strict";const c=require("./provider-Fw6FIHoE.cjs"),g=require("zod"),s=require("./css-B0VZnJIa.cjs"),Le=require("./fontString-DBgTdlAe.cjs");require("react");const Ht="pluto-vis-renderer",pt=(t,e)=>{t.set(Ht,e,!1)},gt=t=>t.get(Ht),qt=t=>t.getOptional(Ht),G=(t,e)=>gt(t)(e),us=Object.freeze(Object.defineProperty({__proto__:null,AbstractSink:c.AbstractSink,AbstractSource:c.AbstractSource,Base:c.Base,BaseProvider:c.BaseProvider,BooleanStatus:c.BooleanStatus,CONTEXT_KEY:c.CONTEXT_KEY,ChannelData:c.ChannelData,ColorGradient:c.ColorGradient,CompoundTelemFactory:c.CompoundTelemFactory,Context:c.Context$1,FixedColorSource:c.FixedColorSource,FixedNumber:c.FixedNumber,FixedString:c.FixedString,IterativeSeries:c.IterativeSeries,Mean:c.Mean,MultiSourceTransformer:c.MultiSourceTransformer,NoopFactory:c.NoopFactory,PipelineFactory:c.PipelineFactory,REGISTRY:c.REGISTRY$1,RemoteFactory:c.RemoteFactory,RollingAverage:c.RollingAverage,ScaleNumber:c.ScaleNumber,SeriesDownsampler:c.SeriesDownsampler,SetPoint:c.SetPoint,SinkPipeline:c.SinkPipeline,SourcePipeline:c.SourcePipeline,StaticFactory:c.StaticFactory,StreamChannelData:c.StreamChannelData,StreamChannelValue:c.StreamChannelValue,StringifyNumber:c.StringifyNumber,TransformerFactory:c.TransformerFactory,UnarySinkTransformer:c.UnarySinkTransformer,UnarySourceTransformer:c.UnarySourceTransformer,WithinBounds:c.WithinBounds,booleanSinkSpecZ:c.booleanSinkSpecZ,booleanSinkTransformerSpecZ:c.booleanSinkTransformerSpecZ,booleanSourceSpecZ:c.booleanSourceSpecZ,booleanSourceTransformerSpecZ:c.booleanSourceTransformerSpecZ,booleanStatus:c.booleanStatus,booleanStatusProps:c.booleanStatusProps,channelData:c.channelData,colorGradient:c.colorGradient,colorGradientProps:c.colorGradientProps,colorSourceSpecZ:c.colorSourceSpecZ,connectionZ:c.connectionZ,createFactory:c.createFactory,downsampleMode:c.downsampleMode,downsampleModeProps:c.downsampleModeProps,downsampleModeZ:c.downsampleModeZ,fixedArray:c.fixedArray,fixedColor:c.fixedColor,fixedColorSourcePropsZ:c.fixedColorSourcePropsZ,fixedNumber:c.fixedNumber,fixedNumberPropsZ:c.fixedNumberPropsZ,fixedSeriesPropsZ:c.fixedSeriesPropsZ,fixedString:c.fixedString,fixedStringPropsZ:c.fixedStringPropsZ,iterativeArray:c.iterativeArray,iterativeSeriesPropsZ:c.iterativeSeriesPropsZ,mean:c.mean,noopBooleanSinkSpec:c.noopBooleanSinkSpec,noopBooleanSourceSpec:c.noopBooleanSourceSpec,noopColorSourceSpec:c.noopColorSourceSpec,noopNumericSinkSpec:c.noopNumericSinkSpec,noopNumericSourceSpec:c.noopNumericSourceSpec,noopSeriesSourceSpec:c.noopSeriesSourceSpec,noopStatusSourceSpec:c.noopStatusSourceSpec,noopStringSourceSpec:c.noopStringSourceSpec,numberSinkSpecZ:c.numberSinkSpecZ,numberSourceSpecZ:c.numberSourceSpecZ,providerStateZ:c.providerStateZ,rollingAverage:c.rollingAverage,rollingAverageProps:c.rollingAverageProps,scaleNumber:c.scaleNumber,scaleNumberProps:c.scaleNumberProps,seriesDownsampler:c.seriesDownsampler,seriesSourceSpecZ:c.seriesSourceSpecZ,setContext:c.setContext,setpoint:c.setpoint,sinkPipeline:c.sinkPipeline,sinkPipelinePropsZ:c.sinkPipelinePropsZ,sinkSpecZ:c.sinkSpecZ,sinkTransformerSpecZ:c.sinkTransformerSpecZ,sourcePipeline:c.sourcePipeline,sourcePipelinePropsZ:c.sourcePipelinePropsZ,sourceSpecZ:c.sourceSpecZ,sourceTransformerSpecZ:c.sourceTransformerSpecZ,specZ:c.specZ$1,statusSourceSpecZ:c.statusSourceSpecZ,streamChannelData:c.streamChannelData,streamChannelValue:c.streamChannelValue,streamChannelValuePropsZ:c.streamChannelValuePropsZ,stringSourceSpecZ:c.stringSourceSpecZ,stringifyNumber:c.stringifyNumber,stringifyNumberProps:c.stringifyNumberProps,useChildContext:c.useChildContext,useContext:c.useContext,useSink:c.useSink,useSource:c.useSource,withinBounds:c.withinBounds,withinBoundsProps:c.withinBoundsProps},Symbol.toStringTag,{value:"Module"}));function Qt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function qn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ue(){}var De=.7,Ve=1/De,me="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hs=/^#([0-9a-f]{3,8})$/,ds=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),fs=new RegExp(`^rgb\\(${H},${H},${H}\\)$`),ps=new RegExp(`^rgba\\(${me},${me},${me},${Me}\\)$`),gs=new RegExp(`^rgba\\(${H},${H},${H},${Me}\\)$`),ms=new RegExp(`^hsl\\(${Me},${H},${H}\\)$`),Ss=new RegExp(`^hsla\\(${Me},${H},${H},${Me}\\)$`),fn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qt(Ue,ye,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pn,formatHex:pn,formatHex8:ys,formatHsl:bs,formatRgb:gn,toString:gn});function pn(){return this.rgb().formatHex()}function ys(){return this.rgb().formatHex8()}function bs(){return Qn(this).formatHsl()}function gn(){return this.rgb().formatRgb()}function ye(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=hs.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?mn(e):n===3?new Y(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?qe(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?qe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ds.exec(t))?new Y(e[1],e[2],e[3],1):(e=fs.exec(t))?new Y(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ps.exec(t))?qe(e[1],e[2],e[3],e[4]):(e=gs.exec(t))?qe(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ms.exec(t))?bn(e[1],e[2]/100,e[3]/100,1):(e=Ss.exec(t))?bn(e[1],e[2]/100,e[3]/100,e[4]):fn.hasOwnProperty(t)?mn(fn[t]):t==="transparent"?new Y(NaN,NaN,NaN,0):null}function mn(t){return new Y(t>>16&255,t>>8&255,t&255,1)}function qe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Y(t,e,n,r)}function xs(t){return t instanceof Ue||(t=ye(t)),t?(t=t.rgb(),new Y(t.r,t.g,t.b,t.opacity)):new Y}function Et(t,e,n,r){return arguments.length===1?xs(t):new Y(t,e,n,r??1)}function Y(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Qt(Y,Et,qn(Ue,{brighter(t){return t=t==null?Ve:Math.pow(Ve,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?De:Math.pow(De,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Y(re(this.r),re(this.g),re(this.b),Ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sn,formatHex:Sn,formatHex8:vs,formatRgb:yn,toString:yn}));function Sn(){return`#${te(this.r)}${te(this.g)}${te(this.b)}`}function vs(){return`#${te(this.r)}${te(this.g)}${te(this.b)}${te((isNaN(this.opacity)?1:this.opacity)*255)}`}function yn(){const t=Ke(this.opacity);return`${t===1?"rgb(":"rgba("}${re(this.r)}, ${re(this.g)}, ${re(this.b)}${t===1?")":`, ${t})`}`}function Ke(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function re(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function te(t){return t=re(t),(t<16?"0":"")+t.toString(16)}function bn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new F(t,e,n,r)}function Qn(t){if(t instanceof F)return new F(t.h,t.s,t.l,t.opacity);if(t instanceof Ue||(t=ye(t)),!t)return new F;if(t instanceof F)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),i=NaN,l=a-o,h=(a+o)/2;return l?(e===a?i=(n-r)/l+(n<r)*6:n===a?i=(r-e)/l+2:i=(e-n)/l+4,l/=h<.5?a+o:2-a-o,i*=60):l=h>0&&h<1?0:i,new F(i,l,h,t.opacity)}function Ts(t,e,n,r){return arguments.length===1?Qn(t):new F(t,e,n,r??1)}function F(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Qt(F,Ts,qn(Ue,{brighter(t){return t=t==null?Ve:Math.pow(Ve,t),new F(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?De:Math.pow(De,t),new F(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Y(yt(t>=240?t-240:t+120,o,r),yt(t,o,r),yt(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new F(xn(this.h),Qe(this.s),Qe(this.l),Ke(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ke(this.opacity);return`${t===1?"hsl(":"hsla("}${xn(this.h)}, ${Qe(this.s)*100}%, ${Qe(this.l)*100}%${t===1?")":`, ${t})`}`}}));function xn(t){return t=(t||0)%360,t<0?t+360:t}function Qe(t){return Math.max(0,Math.min(1,t||0))}function yt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Wt=t=>()=>t;function ws(t,e){return function(n){return t+n*e}}function Cs(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Rs(t){return(t=+t)==1?Wn:function(e,n){return n-e?Cs(e,n,t):Wt(isNaN(e)?n:e)}}function Wn(t,e){var n=e-t;return n?ws(t,n):Wt(isNaN(t)?e:t)}const kt=(function t(e){var n=Rs(e);function r(o,a){var i=n((o=Et(o)).r,(a=Et(a)).r),l=n(o.g,a.g),h=n(o.b,a.b),u=Wn(o.opacity,a.opacity);return function(d){return o.r=i(d),o.g=l(d),o.b=h(d),o.opacity=u(d),o+""}}return r.gamma=t,r})(1);function Es(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=t[o]*(1-a)+e[o]*a;return r}}function ks(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ps(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=mt(t[i],e[i]);for(;i<n;++i)a[i]=e[i];return function(l){for(i=0;i<r;++i)a[i]=o[i](l);return a}}function Ls(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ae(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ds(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=mt(t[o],e[o]):r[o]=e[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var Pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bt=new RegExp(Pt.source,"g");function Ms(t){return function(){return t}}function As(t){return function(e){return t(e)+""}}function Gn(t,e){var n=Pt.lastIndex=bt.lastIndex=0,r,o,a,i=-1,l=[],h=[];for(t=t+"",e=e+"";(r=Pt.exec(t))&&(o=bt.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),l[i]?l[i]+=a:l[++i]=a),(r=r[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,h.push({i,x:Ae(r,o)})),n=bt.lastIndex;return n<e.length&&(a=e.slice(n),l[i]?l[i]+=a:l[++i]=a),l.length<2?h[0]?As(h[0].x):Ms(e):(e=h.length,function(u){for(var d=0,f;d<e;++d)l[(f=h[d]).i]=f.x(u);return l.join("")})}function mt(t,e){var n=typeof e,r;return e==null||n==="boolean"?Wt(e):(n==="number"?Ae:n==="string"?(r=ye(e))?(e=r,kt):Gn:e instanceof ye?kt:e instanceof Date?Ls:ks(e)?Es:Array.isArray(e)?Ps:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ds:Ae)(t,e)}function Os(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}const vn=`#version 300 es
|
|
2
2
|
precision lowp float;
|
|
3
3
|
|
|
4
4
|
uniform lowp vec4 u_color;
|