@tresjs/cientos 0.2.0 → 0.3.0

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.
@@ -1,40 +1,40 @@
1
1
  /**
2
2
  * name: @tresjs/cientos
3
- * version: v0.2.0
3
+ * version: v0.3.0
4
4
  * (c) 2022
5
5
  * description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
6
6
  * author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
7
7
  */
8
- import { defineComponent as va, inject as ma, watch as ba, unref as fa, onMounted as _a, onUnmounted as ga } from "vue";
9
- import { useLoop as _r } from "@tresjs/core";
10
- import { EventDispatcher as wa, Vector3 as we, MOUSE as ln, TOUCH as pn, PerspectiveCamera as cn, Quaternion as mr, Spherical as br, Vector2 as qt, OrthographicCamera as Ms } from "three";
8
+ import { defineComponent as ma, inject as mr, watch as ba, unref as fa, onMounted as _a, onUnmounted as ga } from "vue";
9
+ import { useRenderLoop as gr } from "@tresjs/core";
10
+ import { EventDispatcher as wa, Vector3 as we, MOUSE as ln, TOUCH as pn, PerspectiveCamera as cn, Quaternion as br, Spherical as fr, Vector2 as qt, OrthographicCamera as Ms } from "three";
11
11
  function xa(G, U) {
12
- for (var T = 0; T < U.length; T++) {
13
- const u = U[T];
12
+ for (var V = 0; V < U.length; V++) {
13
+ const u = U[V];
14
14
  if (typeof u != "string" && !Array.isArray(u)) {
15
- for (const F in u)
16
- if (F !== "default" && !(F in G)) {
17
- const et = Object.getOwnPropertyDescriptor(u, F);
18
- et && Object.defineProperty(G, F, et.get ? et : {
15
+ for (const j in u)
16
+ if (j !== "default" && !(j in G)) {
17
+ const st = Object.getOwnPropertyDescriptor(u, j);
18
+ st && Object.defineProperty(G, j, st.get ? st : {
19
19
  enumerable: !0,
20
- get: () => u[F]
20
+ get: () => u[j]
21
21
  });
22
22
  }
23
23
  }
24
24
  }
25
25
  return Object.freeze(Object.defineProperty(G, Symbol.toStringTag, { value: "Module" }));
26
26
  }
27
- function k(G, U, T) {
27
+ function k(G, U, V) {
28
28
  return U in G ? Object.defineProperty(G, U, {
29
- value: T,
29
+ value: V,
30
30
  enumerable: !0,
31
31
  configurable: !0,
32
32
  writable: !0
33
- }) : G[U] = T, G;
33
+ }) : G[U] = V, G;
34
34
  }
35
- const fr = (G, U) => (G % U + U) % U;
35
+ const _r = (G, U) => (G % U + U) % U;
36
36
  class Ca extends wa {
37
- constructor(U, T) {
37
+ constructor(U, V) {
38
38
  super(), k(this, "object", void 0), k(this, "domElement", void 0), k(this, "enabled", !0), k(this, "target", new we()), k(this, "minDistance", 0), k(this, "maxDistance", 1 / 0), k(this, "minZoom", 0), k(this, "maxZoom", 1 / 0), k(this, "minPolarAngle", 0), k(this, "maxPolarAngle", Math.PI), k(this, "minAzimuthAngle", -1 / 0), k(this, "maxAzimuthAngle", 1 / 0), k(this, "enableDamping", !1), k(this, "dampingFactor", 0.05), k(this, "enableZoom", !0), k(this, "zoomSpeed", 1), k(this, "enableRotate", !0), k(this, "rotateSpeed", 1), k(this, "enablePan", !0), k(this, "panSpeed", 1), k(this, "screenSpacePanning", !0), k(this, "keyPanSpeed", 7), k(this, "autoRotate", !1), k(this, "autoRotateSpeed", 2), k(this, "reverseOrbit", !1), k(this, "keys", {
39
39
  LEFT: "ArrowLeft",
40
40
  UP: "ArrowUp",
@@ -47,39 +47,39 @@ class Ca extends wa {
47
47
  }), k(this, "touches", {
48
48
  ONE: pn.ROTATE,
49
49
  TWO: pn.DOLLY_PAN
50
- }), k(this, "target0", void 0), k(this, "position0", void 0), k(this, "zoom0", void 0), k(this, "_domElementKeyEvents", null), k(this, "getPolarAngle", void 0), k(this, "getAzimuthalAngle", void 0), k(this, "setPolarAngle", void 0), k(this, "setAzimuthalAngle", void 0), k(this, "getDistance", void 0), k(this, "listenToKeyEvents", void 0), k(this, "saveState", void 0), k(this, "reset", void 0), k(this, "update", void 0), k(this, "connect", void 0), k(this, "dispose", void 0), this.object = U, this.domElement = T, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object instanceof cn ? this.object.zoom : 1, this.getPolarAngle = () => D.phi, this.getAzimuthalAngle = () => D.theta, this.setPolarAngle = (v) => {
51
- let f = fr(v, 2 * Math.PI), x = D.phi;
50
+ }), k(this, "target0", void 0), k(this, "position0", void 0), k(this, "zoom0", void 0), k(this, "_domElementKeyEvents", null), k(this, "getPolarAngle", void 0), k(this, "getAzimuthalAngle", void 0), k(this, "setPolarAngle", void 0), k(this, "setAzimuthalAngle", void 0), k(this, "getDistance", void 0), k(this, "listenToKeyEvents", void 0), k(this, "saveState", void 0), k(this, "reset", void 0), k(this, "update", void 0), k(this, "connect", void 0), k(this, "dispose", void 0), this.object = U, this.domElement = V, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object instanceof cn ? this.object.zoom : 1, this.getPolarAngle = () => D.phi, this.getAzimuthalAngle = () => D.theta, this.setPolarAngle = (v) => {
51
+ let f = _r(v, 2 * Math.PI), x = D.phi;
52
52
  x < 0 && (x += 2 * Math.PI), f < 0 && (f += 2 * Math.PI);
53
- let S = Math.abs(f - x);
54
- 2 * Math.PI - S < S && (f < x ? f += 2 * Math.PI : x += 2 * Math.PI), M.phi = f - x, u.update();
53
+ let T = Math.abs(f - x);
54
+ 2 * Math.PI - T < T && (f < x ? f += 2 * Math.PI : x += 2 * Math.PI), S.phi = f - x, u.update();
55
55
  }, this.setAzimuthalAngle = (v) => {
56
- let f = fr(v, 2 * Math.PI), x = D.theta;
56
+ let f = _r(v, 2 * Math.PI), x = D.theta;
57
57
  x < 0 && (x += 2 * Math.PI), f < 0 && (f += 2 * Math.PI);
58
- let S = Math.abs(f - x);
59
- 2 * Math.PI - S < S && (f < x ? f += 2 * Math.PI : x += 2 * Math.PI), M.theta = f - x, u.update();
58
+ let T = Math.abs(f - x);
59
+ 2 * Math.PI - T < T && (f < x ? f += 2 * Math.PI : x += 2 * Math.PI), S.theta = f - x, u.update();
60
60
  }, this.getDistance = () => u.object.position.distanceTo(u.target), this.listenToKeyEvents = (v) => {
61
61
  v.addEventListener("keydown", Kt), this._domElementKeyEvents = v;
62
62
  }, this.saveState = () => {
63
63
  u.target0.copy(u.target), u.position0.copy(u.object.position), u.zoom0 = u.object instanceof cn ? u.object.zoom : 1;
64
64
  }, this.reset = () => {
65
- u.target.copy(u.target0), u.object.position.copy(u.position0), u.object instanceof cn && (u.object.zoom = u.zoom0, u.object.updateProjectionMatrix()), u.dispatchEvent(F), u.update(), j = y.NONE;
65
+ u.target.copy(u.target0), u.object.position.copy(u.position0), u.object instanceof cn && (u.object.zoom = u.zoom0, u.object.updateProjectionMatrix()), u.dispatchEvent(j), u.update(), B = y.NONE;
66
66
  }, this.update = (() => {
67
- const v = new we(), f = new mr().setFromUnitVectors(U.up, new we(0, 1, 0)), x = f.clone().invert(), S = new we(), Z = new mr(), bt = 2 * Math.PI;
67
+ const v = new we(), f = new br().setFromUnitVectors(U.up, new we(0, 1, 0)), x = f.clone().invert(), T = new we(), Z = new br(), bt = 2 * Math.PI;
68
68
  return function() {
69
69
  const Ge = u.object.position;
70
- v.copy(Ge).sub(u.target), v.applyQuaternion(f), D.setFromVector3(v), u.autoRotate && j === y.NONE && xe(q()), u.enableDamping ? (D.theta += M.theta * u.dampingFactor, D.phi += M.phi * u.dampingFactor) : (D.theta += M.theta, D.phi += M.phi);
70
+ v.copy(Ge).sub(u.target), v.applyQuaternion(f), D.setFromVector3(v), u.autoRotate && B === y.NONE && xe(q()), u.enableDamping ? (D.theta += S.theta * u.dampingFactor, D.phi += S.phi * u.dampingFactor) : (D.theta += S.theta, D.phi += S.phi);
71
71
  let lt = u.minAzimuthAngle, pt = u.maxAzimuthAngle;
72
- return isFinite(lt) && isFinite(pt) && (lt < -Math.PI ? lt += bt : lt > Math.PI && (lt -= bt), pt < -Math.PI ? pt += bt : pt > Math.PI && (pt -= bt), lt <= pt ? D.theta = Math.max(lt, Math.min(pt, D.theta)) : D.theta = D.theta > (lt + pt) / 2 ? Math.max(lt, D.theta) : Math.min(pt, D.theta)), D.phi = Math.max(u.minPolarAngle, Math.min(u.maxPolarAngle, D.phi)), D.makeSafe(), D.radius *= B, D.radius = Math.max(u.minDistance, Math.min(u.maxDistance, D.radius)), u.enableDamping === !0 ? u.target.addScaledVector(Rt, u.dampingFactor) : u.target.add(Rt), v.setFromSpherical(D), v.applyQuaternion(x), Ge.copy(u.target).add(v), u.object.lookAt(u.target), u.enableDamping === !0 ? (M.theta *= 1 - u.dampingFactor, M.phi *= 1 - u.dampingFactor, Rt.multiplyScalar(1 - u.dampingFactor)) : (M.set(0, 0, 0), Rt.set(0, 0, 0)), B = 1, L || S.distanceToSquared(u.object.position) > Vt || 8 * (1 - Z.dot(u.object.quaternion)) > Vt ? (u.dispatchEvent(F), S.copy(u.object.position), Z.copy(u.object.quaternion), L = !1, !0) : !1;
72
+ return isFinite(lt) && isFinite(pt) && (lt < -Math.PI ? lt += bt : lt > Math.PI && (lt -= bt), pt < -Math.PI ? pt += bt : pt > Math.PI && (pt -= bt), lt <= pt ? D.theta = Math.max(lt, Math.min(pt, D.theta)) : D.theta = D.theta > (lt + pt) / 2 ? Math.max(lt, D.theta) : Math.min(pt, D.theta)), D.phi = Math.max(u.minPolarAngle, Math.min(u.maxPolarAngle, D.phi)), D.makeSafe(), D.radius *= K, D.radius = Math.max(u.minDistance, Math.min(u.maxDistance, D.radius)), u.enableDamping === !0 ? u.target.addScaledVector(Rt, u.dampingFactor) : u.target.add(Rt), v.setFromSpherical(D), v.applyQuaternion(x), Ge.copy(u.target).add(v), u.object.lookAt(u.target), u.enableDamping === !0 ? (S.theta *= 1 - u.dampingFactor, S.phi *= 1 - u.dampingFactor, Rt.multiplyScalar(1 - u.dampingFactor)) : (S.set(0, 0, 0), Rt.set(0, 0, 0)), K = 1, M || T.distanceToSquared(u.object.position) > Vt || 8 * (1 - Z.dot(u.object.quaternion)) > Vt ? (u.dispatchEvent(j), T.copy(u.object.position), Z.copy(u.object.quaternion), M = !1, !0) : !1;
73
73
  };
74
74
  })(), this.connect = (v) => {
75
75
  v === document && console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'), u.domElement = v, u.domElement.style.touchAction = "none", u.domElement.addEventListener("contextmenu", yt), u.domElement.addEventListener("pointerdown", Ve), u.domElement.addEventListener("pointercancel", Bt), u.domElement.addEventListener("wheel", Ct);
76
76
  }, this.dispose = () => {
77
- var v, f, x, S, Z, bt;
78
- (v = u.domElement) === null || v === void 0 || v.removeEventListener("contextmenu", yt), (f = u.domElement) === null || f === void 0 || f.removeEventListener("pointerdown", Ve), (x = u.domElement) === null || x === void 0 || x.removeEventListener("pointercancel", Bt), (S = u.domElement) === null || S === void 0 || S.removeEventListener("wheel", Ct), (Z = u.domElement) === null || Z === void 0 || Z.ownerDocument.removeEventListener("pointermove", jt), (bt = u.domElement) === null || bt === void 0 || bt.ownerDocument.removeEventListener("pointerup", Xt), u._domElementKeyEvents !== null && u._domElementKeyEvents.removeEventListener("keydown", Kt);
77
+ var v, f, x, T, Z, bt;
78
+ (v = u.domElement) === null || v === void 0 || v.removeEventListener("contextmenu", yt), (f = u.domElement) === null || f === void 0 || f.removeEventListener("pointerdown", Ve), (x = u.domElement) === null || x === void 0 || x.removeEventListener("pointercancel", Bt), (T = u.domElement) === null || T === void 0 || T.removeEventListener("wheel", Ct), (Z = u.domElement) === null || Z === void 0 || Z.ownerDocument.removeEventListener("pointermove", jt), (bt = u.domElement) === null || bt === void 0 || bt.ownerDocument.removeEventListener("pointerup", Xt), u._domElementKeyEvents !== null && u._domElementKeyEvents.removeEventListener("keydown", Kt);
79
79
  };
80
- const u = this, F = {
80
+ const u = this, j = {
81
81
  type: "change"
82
- }, et = {
82
+ }, st = {
83
83
  type: "start"
84
84
  }, kt = {
85
85
  type: "end"
@@ -93,12 +93,12 @@ class Ca extends wa {
93
93
  TOUCH_DOLLY_PAN: 5,
94
94
  TOUCH_DOLLY_ROTATE: 6
95
95
  };
96
- let j = y.NONE;
97
- const Vt = 1e-6, D = new br(), M = new br();
98
- let B = 1;
96
+ let B = y.NONE;
97
+ const Vt = 1e-6, D = new fr(), S = new fr();
98
+ let K = 1;
99
99
  const Rt = new we();
100
- let L = !1;
101
- const nt = new qt(), J = new qt(), I = new qt(), ut = new qt(), P = new qt(), xt = new qt(), zt = new qt(), ot = new qt(), Y = new qt(), A = [], X = {};
100
+ let M = !1;
101
+ const et = new qt(), J = new qt(), I = new qt(), ut = new qt(), P = new qt(), xt = new qt(), zt = new qt(), ot = new qt(), Y = new qt(), A = [], X = {};
102
102
  function q() {
103
103
  return 2 * Math.PI / 60 / 60 * u.autoRotateSpeed;
104
104
  }
@@ -106,42 +106,42 @@ class Ca extends wa {
106
106
  return Math.pow(0.95, u.zoomSpeed);
107
107
  }
108
108
  function xe(v) {
109
- u.reverseOrbit ? M.theta += v : M.theta -= v;
109
+ u.reverseOrbit ? S.theta += v : S.theta -= v;
110
110
  }
111
111
  function Ce(v) {
112
- u.reverseOrbit ? M.phi += v : M.phi -= v;
112
+ u.reverseOrbit ? S.phi += v : S.phi -= v;
113
113
  }
114
114
  const dt = (() => {
115
115
  const v = new we();
116
- return function(x, S) {
117
- v.setFromMatrixColumn(S, 0), v.multiplyScalar(-x), Rt.add(v);
116
+ return function(x, T) {
117
+ v.setFromMatrixColumn(T, 0), v.multiplyScalar(-x), Rt.add(v);
118
118
  };
119
119
  })(), ye = (() => {
120
120
  const v = new we();
121
- return function(x, S) {
122
- u.screenSpacePanning === !0 ? v.setFromMatrixColumn(S, 1) : (v.setFromMatrixColumn(S, 0), v.crossVectors(u.object.up, v)), v.multiplyScalar(x), Rt.add(v);
121
+ return function(x, T) {
122
+ u.screenSpacePanning === !0 ? v.setFromMatrixColumn(T, 1) : (v.setFromMatrixColumn(T, 0), v.crossVectors(u.object.up, v)), v.multiplyScalar(x), Rt.add(v);
123
123
  };
124
124
  })(), O = (() => {
125
125
  const v = new we();
126
- return function(x, S) {
126
+ return function(x, T) {
127
127
  const Z = u.domElement;
128
128
  if (Z && u.object instanceof cn && u.object.isPerspectiveCamera) {
129
129
  const bt = u.object.position;
130
130
  v.copy(bt).sub(u.target);
131
131
  let oe = v.length();
132
- oe *= Math.tan(u.object.fov / 2 * Math.PI / 180), dt(2 * x * oe / Z.clientHeight, u.object.matrix), ye(2 * S * oe / Z.clientHeight, u.object.matrix);
132
+ oe *= Math.tan(u.object.fov / 2 * Math.PI / 180), dt(2 * x * oe / Z.clientHeight, u.object.matrix), ye(2 * T * oe / Z.clientHeight, u.object.matrix);
133
133
  } else
134
- Z && u.object instanceof Ms && u.object.isOrthographicCamera ? (dt(x * (u.object.right - u.object.left) / u.object.zoom / Z.clientWidth, u.object.matrix), ye(S * (u.object.top - u.object.bottom) / u.object.zoom / Z.clientHeight, u.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), u.enablePan = !1);
134
+ Z && u.object instanceof Ms && u.object.isOrthographicCamera ? (dt(x * (u.object.right - u.object.left) / u.object.zoom / Z.clientWidth, u.object.matrix), ye(T * (u.object.top - u.object.bottom) / u.object.zoom / Z.clientHeight, u.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), u.enablePan = !1);
135
135
  };
136
136
  })();
137
137
  function C(v) {
138
- u.object instanceof cn && u.object.isPerspectiveCamera ? B /= v : u.object instanceof Ms && u.object.isOrthographicCamera ? (u.object.zoom = Math.max(u.minZoom, Math.min(u.maxZoom, u.object.zoom * v)), u.object.updateProjectionMatrix(), L = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), u.enableZoom = !1);
138
+ u.object instanceof cn && u.object.isPerspectiveCamera ? K /= v : u.object instanceof Ms && u.object.isOrthographicCamera ? (u.object.zoom = Math.max(u.minZoom, Math.min(u.maxZoom, u.object.zoom * v)), u.object.updateProjectionMatrix(), M = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), u.enableZoom = !1);
139
139
  }
140
140
  function Ke(v) {
141
- u.object instanceof cn && u.object.isPerspectiveCamera ? B *= v : u.object instanceof Ms && u.object.isOrthographicCamera ? (u.object.zoom = Math.max(u.minZoom, Math.min(u.maxZoom, u.object.zoom / v)), u.object.updateProjectionMatrix(), L = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), u.enableZoom = !1);
141
+ u.object instanceof cn && u.object.isPerspectiveCamera ? K *= v : u.object instanceof Ms && u.object.isOrthographicCamera ? (u.object.zoom = Math.max(u.minZoom, Math.min(u.maxZoom, u.object.zoom / v)), u.object.updateProjectionMatrix(), M = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), u.enableZoom = !1);
142
142
  }
143
143
  function Fe(v) {
144
- nt.set(v.clientX, v.clientY);
144
+ et.set(v.clientX, v.clientY);
145
145
  }
146
146
  function Ue(v) {
147
147
  zt.set(v.clientX, v.clientY);
@@ -150,11 +150,11 @@ class Ca extends wa {
150
150
  ut.set(v.clientX, v.clientY);
151
151
  }
152
152
  function Ee(v) {
153
- J.set(v.clientX, v.clientY), I.subVectors(J, nt).multiplyScalar(u.rotateSpeed);
153
+ J.set(v.clientX, v.clientY), I.subVectors(J, et).multiplyScalar(u.rotateSpeed);
154
154
  const f = u.domElement;
155
- f && (xe(2 * Math.PI * I.x / f.clientHeight), Ce(2 * Math.PI * I.y / f.clientHeight)), nt.copy(J), u.update();
155
+ f && (xe(2 * Math.PI * I.x / f.clientHeight), Ce(2 * Math.PI * I.y / f.clientHeight)), et.copy(J), u.update();
156
156
  }
157
- function V(v) {
157
+ function L(v) {
158
158
  ot.set(v.clientX, v.clientY), Y.subVectors(ot, zt), Y.y > 0 ? C(It()) : Y.y < 0 && Ke(It()), zt.copy(ot), u.update();
159
159
  }
160
160
  function H(v) {
@@ -183,10 +183,10 @@ class Ca extends wa {
183
183
  }
184
184
  function Pe() {
185
185
  if (A.length == 1)
186
- nt.set(A[0].pageX, A[0].pageY);
186
+ et.set(A[0].pageX, A[0].pageY);
187
187
  else {
188
188
  const v = 0.5 * (A[0].pageX + A[1].pageX), f = 0.5 * (A[0].pageY + A[1].pageY);
189
- nt.set(v, f);
189
+ et.set(v, f);
190
190
  }
191
191
  }
192
192
  function ke() {
@@ -211,24 +211,24 @@ class Ca extends wa {
211
211
  if (A.length == 1)
212
212
  J.set(v.pageX, v.pageY);
213
213
  else {
214
- const x = Mt(v), S = 0.5 * (v.pageX + x.x), Z = 0.5 * (v.pageY + x.y);
215
- J.set(S, Z);
214
+ const x = Mt(v), T = 0.5 * (v.pageX + x.x), Z = 0.5 * (v.pageY + x.y);
215
+ J.set(T, Z);
216
216
  }
217
- I.subVectors(J, nt).multiplyScalar(u.rotateSpeed);
217
+ I.subVectors(J, et).multiplyScalar(u.rotateSpeed);
218
218
  const f = u.domElement;
219
- f && (xe(2 * Math.PI * I.x / f.clientHeight), Ce(2 * Math.PI * I.y / f.clientHeight)), nt.copy(J);
219
+ f && (xe(2 * Math.PI * I.x / f.clientHeight), Ce(2 * Math.PI * I.y / f.clientHeight)), et.copy(J);
220
220
  }
221
221
  function ie(v) {
222
222
  if (A.length == 1)
223
223
  P.set(v.pageX, v.pageY);
224
224
  else {
225
- const f = Mt(v), x = 0.5 * (v.pageX + f.x), S = 0.5 * (v.pageY + f.y);
226
- P.set(x, S);
225
+ const f = Mt(v), x = 0.5 * (v.pageX + f.x), T = 0.5 * (v.pageY + f.y);
226
+ P.set(x, T);
227
227
  }
228
228
  xt.subVectors(P, ut).multiplyScalar(u.panSpeed), O(xt.x, xt.y), ut.copy(P);
229
229
  }
230
230
  function se(v) {
231
- const f = Mt(v), x = v.pageX - f.x, S = v.pageY - f.y, Z = Math.sqrt(x * x + S * S);
231
+ const f = Mt(v), x = v.pageX - f.x, T = v.pageY - f.y, Z = Math.sqrt(x * x + T * T);
232
232
  ot.set(0, Z), Y.set(0, Math.pow(ot.y / zt.y, u.zoomSpeed)), C(Y.y), zt.copy(ot);
233
233
  }
234
234
  function hn(v) {
@@ -251,10 +251,10 @@ class Ca extends wa {
251
251
  }
252
252
  function Xt(v) {
253
253
  if (mt(v), A.length === 0) {
254
- var f, x, S;
255
- (f = u.domElement) === null || f === void 0 || f.releasePointerCapture(v.pointerId), (x = u.domElement) === null || x === void 0 || x.ownerDocument.removeEventListener("pointermove", jt), (S = u.domElement) === null || S === void 0 || S.ownerDocument.removeEventListener("pointerup", Xt);
254
+ var f, x, T;
255
+ (f = u.domElement) === null || f === void 0 || f.releasePointerCapture(v.pointerId), (x = u.domElement) === null || x === void 0 || x.ownerDocument.removeEventListener("pointermove", jt), (T = u.domElement) === null || T === void 0 || T.ownerDocument.removeEventListener("pointerup", Xt);
256
256
  }
257
- u.dispatchEvent(kt), j = y.NONE;
257
+ u.dispatchEvent(kt), B = y.NONE;
258
258
  }
259
259
  function Bt(v) {
260
260
  mt(v);
@@ -278,38 +278,38 @@ class Ca extends wa {
278
278
  case ln.DOLLY:
279
279
  if (u.enableZoom === !1)
280
280
  return;
281
- Ue(v), j = y.DOLLY;
281
+ Ue(v), B = y.DOLLY;
282
282
  break;
283
283
  case ln.ROTATE:
284
284
  if (v.ctrlKey || v.metaKey || v.shiftKey) {
285
285
  if (u.enablePan === !1)
286
286
  return;
287
- at(v), j = y.PAN;
287
+ at(v), B = y.PAN;
288
288
  } else {
289
289
  if (u.enableRotate === !1)
290
290
  return;
291
- Fe(v), j = y.ROTATE;
291
+ Fe(v), B = y.ROTATE;
292
292
  }
293
293
  break;
294
294
  case ln.PAN:
295
295
  if (v.ctrlKey || v.metaKey || v.shiftKey) {
296
296
  if (u.enableRotate === !1)
297
297
  return;
298
- Fe(v), j = y.ROTATE;
298
+ Fe(v), B = y.ROTATE;
299
299
  } else {
300
300
  if (u.enablePan === !1)
301
301
  return;
302
- at(v), j = y.PAN;
302
+ at(v), B = y.PAN;
303
303
  }
304
304
  break;
305
305
  default:
306
- j = y.NONE;
306
+ B = y.NONE;
307
307
  }
308
- j !== y.NONE && u.dispatchEvent(et);
308
+ B !== y.NONE && u.dispatchEvent(st);
309
309
  }
310
310
  function qe(v) {
311
311
  if (u.enabled !== !1)
312
- switch (j) {
312
+ switch (B) {
313
313
  case y.ROTATE:
314
314
  if (u.enableRotate === !1)
315
315
  return;
@@ -318,7 +318,7 @@ class Ca extends wa {
318
318
  case y.DOLLY:
319
319
  if (u.enableZoom === !1)
320
320
  return;
321
- V(v);
321
+ L(v);
322
322
  break;
323
323
  case y.PAN:
324
324
  if (u.enablePan === !1)
@@ -328,7 +328,7 @@ class Ca extends wa {
328
328
  }
329
329
  }
330
330
  function Ct(v) {
331
- u.enabled === !1 || u.enableZoom === !1 || j !== y.NONE && j !== y.ROTATE || (v.preventDefault(), u.dispatchEvent(et), dn(v), u.dispatchEvent(kt));
331
+ u.enabled === !1 || u.enableZoom === !1 || B !== y.NONE && B !== y.ROTATE || (v.preventDefault(), u.dispatchEvent(st), dn(v), u.dispatchEvent(kt));
332
332
  }
333
333
  function Kt(v) {
334
334
  u.enabled === !1 || u.enablePan === !1 || $e(v);
@@ -340,15 +340,15 @@ class Ca extends wa {
340
340
  case pn.ROTATE:
341
341
  if (u.enableRotate === !1)
342
342
  return;
343
- Pe(), j = y.TOUCH_ROTATE;
343
+ Pe(), B = y.TOUCH_ROTATE;
344
344
  break;
345
345
  case pn.PAN:
346
346
  if (u.enablePan === !1)
347
347
  return;
348
- ke(), j = y.TOUCH_PAN;
348
+ ke(), B = y.TOUCH_PAN;
349
349
  break;
350
350
  default:
351
- j = y.NONE;
351
+ B = y.NONE;
352
352
  }
353
353
  break;
354
354
  case 2:
@@ -356,24 +356,24 @@ class Ca extends wa {
356
356
  case pn.DOLLY_PAN:
357
357
  if (u.enableZoom === !1 && u.enablePan === !1)
358
358
  return;
359
- vt(), j = y.TOUCH_DOLLY_PAN;
359
+ vt(), B = y.TOUCH_DOLLY_PAN;
360
360
  break;
361
361
  case pn.DOLLY_ROTATE:
362
362
  if (u.enableZoom === !1 && u.enableRotate === !1)
363
363
  return;
364
- Gt(), j = y.TOUCH_DOLLY_ROTATE;
364
+ Gt(), B = y.TOUCH_DOLLY_ROTATE;
365
365
  break;
366
366
  default:
367
- j = y.NONE;
367
+ B = y.NONE;
368
368
  }
369
369
  break;
370
370
  default:
371
- j = y.NONE;
371
+ B = y.NONE;
372
372
  }
373
- j !== y.NONE && u.dispatchEvent(et);
373
+ B !== y.NONE && u.dispatchEvent(st);
374
374
  }
375
375
  function Le(v) {
376
- switch (Lt(v), j) {
376
+ switch (Lt(v), B) {
377
377
  case y.TOUCH_ROTATE:
378
378
  if (u.enableRotate === !1)
379
379
  return;
@@ -395,7 +395,7 @@ class Ca extends wa {
395
395
  vn(v), u.update();
396
396
  break;
397
397
  default:
398
- j = y.NONE;
398
+ B = y.NONE;
399
399
  }
400
400
  }
401
401
  function yt(v) {
@@ -420,26 +420,27 @@ class Ca extends wa {
420
420
  const f = v.pointerId === A[0].pointerId ? A[1] : A[0];
421
421
  return X[f.pointerId];
422
422
  }
423
- T !== void 0 && this.connect(T), this.update();
423
+ V !== void 0 && this.connect(V), this.update();
424
424
  }
425
425
  }
426
- var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
426
+ var wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
427
427
  function ya(G) {
428
428
  return G && G.__esModule && Object.prototype.hasOwnProperty.call(G, "default") ? G.default : G;
429
429
  }
430
- const Ma = /* @__PURE__ */ va({
430
+ const Ma = /* @__PURE__ */ ma({
431
431
  __name: "OrbitControls",
432
432
  setup(G) {
433
433
  let U;
434
- const T = ma("UseTresState");
434
+ const V = mr("camera"), u = mr("renderer");
435
435
  return ba(
436
- () => T,
437
- (u) => {
438
- if (u) {
439
- const { camera: F, renderer: et } = u;
440
- F && et && (U = new Ca(F, fa(et).domElement), U.enableDamping = !0, _r(() => {
436
+ [V, u],
437
+ () => {
438
+ if ((V == null ? void 0 : V.value) && (u == null ? void 0 : u.value)) {
439
+ U = new Ca(V.value, fa(u).domElement), U.enableDamping = !0;
440
+ const { onLoop: j } = gr();
441
+ j(() => {
441
442
  U && U.update();
442
- }));
443
+ });
443
444
  }
444
445
  },
445
446
  {
@@ -452,9 +453,9 @@ const Ma = /* @__PURE__ */ va({
452
453
  var Ss = { exports: {} };
453
454
  /*! Tweakpane 3.1.0 (c) 2016 cocopon, licensed under the MIT license. */
454
455
  (function(G, U) {
455
- (function(T, u) {
456
+ (function(V, u) {
456
457
  u(U);
457
- })(gr, function(T) {
458
+ })(wr, function(V) {
458
459
  class u {
459
460
  constructor(t) {
460
461
  const [e, s] = t.split("-"), l = e.split(".");
@@ -465,7 +466,7 @@ var Ss = { exports: {} };
465
466
  return this.prerelease !== null ? [t, this.prerelease].join("-") : t;
466
467
  }
467
468
  }
468
- class F {
469
+ class j {
469
470
  constructor(t) {
470
471
  this.controller_ = t;
471
472
  }
@@ -488,27 +489,27 @@ var Ss = { exports: {} };
488
489
  this.controller_.viewProps.set("disposed", !0);
489
490
  }
490
491
  }
491
- class et {
492
+ class st {
492
493
  constructor(t) {
493
494
  this.target = t;
494
495
  }
495
496
  }
496
- class kt extends et {
497
+ class kt extends st {
497
498
  constructor(t, e, s, l) {
498
499
  super(t), this.value = e, this.presetKey = s, this.last = l != null ? l : !0;
499
500
  }
500
501
  }
501
- class y extends et {
502
+ class y extends st {
502
503
  constructor(t, e, s) {
503
504
  super(t), this.value = e, this.presetKey = s;
504
505
  }
505
506
  }
506
- class j extends et {
507
+ class B extends st {
507
508
  constructor(t, e) {
508
509
  super(t), this.expanded = e;
509
510
  }
510
511
  }
511
- class Vt extends et {
512
+ class Vt extends st {
512
513
  constructor(t, e) {
513
514
  super(t), this.index = e;
514
515
  }
@@ -516,10 +517,10 @@ var Ss = { exports: {} };
516
517
  function D(n) {
517
518
  return n;
518
519
  }
519
- function M(n) {
520
+ function S(n) {
520
521
  return n == null;
521
522
  }
522
- function B(n, t) {
523
+ function K(n, t) {
523
524
  if (n.length !== t.length)
524
525
  return !1;
525
526
  for (let e = 0; e < n.length; e++)
@@ -536,21 +537,21 @@ var Ss = { exports: {} };
536
537
  propertynotfound: (n) => `Property '${n.name}' not found`,
537
538
  shouldneverhappen: () => "This error should never happen"
538
539
  };
539
- class L {
540
+ class M {
540
541
  constructor(t) {
541
542
  var e;
542
543
  this.message = (e = Rt[t.type](t.context)) !== null && e !== void 0 ? e : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = t.type;
543
544
  }
544
545
  static alreadyDisposed() {
545
- return new L({ type: "alreadydisposed" });
546
+ return new M({ type: "alreadydisposed" });
546
547
  }
547
548
  static notBindable() {
548
- return new L({
549
+ return new M({
549
550
  type: "notbindable"
550
551
  });
551
552
  }
552
553
  static propertyNotFound(t) {
553
- return new L({
554
+ return new M({
554
555
  type: "propertynotfound",
555
556
  context: {
556
557
  name: t
@@ -558,10 +559,10 @@ var Ss = { exports: {} };
558
559
  });
559
560
  }
560
561
  static shouldNeverHappen() {
561
- return new L({ type: "shouldneverhappen" });
562
+ return new M({ type: "shouldneverhappen" });
562
563
  }
563
564
  }
564
- class nt {
565
+ class et {
565
566
  constructor(t, e, s) {
566
567
  this.obj_ = t, this.key_ = e, this.presetKey_ = s != null ? s : e;
567
568
  }
@@ -582,14 +583,14 @@ var Ss = { exports: {} };
582
583
  }
583
584
  writeProperty(t, e) {
584
585
  const s = this.read();
585
- if (!nt.isBindable(s))
586
- throw L.notBindable();
586
+ if (!et.isBindable(s))
587
+ throw M.notBindable();
587
588
  if (!(t in s))
588
- throw L.propertyNotFound(t);
589
+ throw M.propertyNotFound(t);
589
590
  s[t] = e;
590
591
  }
591
592
  }
592
- class J extends F {
593
+ class J extends j {
593
594
  get label() {
594
595
  return this.controller_.props.get("label");
595
596
  }
@@ -606,7 +607,7 @@ var Ss = { exports: {} };
606
607
  on(t, e) {
607
608
  const s = e.bind(this);
608
609
  return this.controller_.valueController.emitter.on(t, () => {
609
- s(new et(this));
610
+ s(new st(this));
610
611
  }), this;
611
612
  }
612
613
  }
@@ -844,12 +845,12 @@ var Ss = { exports: {} };
844
845
  })(n)
845
846
  };
846
847
  }
847
- const V = {
848
+ const L = {
848
849
  optional: Ee(!0),
849
850
  required: Ee(!1)
850
851
  };
851
852
  function H(n, t) {
852
- const e = V.required.object(t)(n);
853
+ const e = L.required.object(t)(n);
853
854
  return e.succeeded ? e.value : void 0;
854
855
  }
855
856
  function dn(n) {
@@ -942,7 +943,7 @@ var Ss = { exports: {} };
942
943
  this.element = t.createElement("div"), this.element.classList.add(Kt()), e.viewProps.bindClassModifiers(this.element);
943
944
  const s = t.createElement("div");
944
945
  s.classList.add(Kt("l")), Y(e.props, "label", (c) => {
945
- M(c) ? this.element.classList.add(Kt(void 0, "nol")) : (this.element.classList.remove(Kt(void 0, "nol")), qe(s), s.appendChild(mn(t, c)));
946
+ S(c) ? this.element.classList.add(Kt(void 0, "nol")) : (this.element.classList.remove(Kt(void 0, "nol")), qe(s), s.appendChild(mn(t, c)));
946
947
  }), this.element.appendChild(s), this.labelElement = s;
947
948
  const l = t.createElement("div");
948
949
  l.classList.add(Kt("v")), this.element.appendChild(l), this.valueElement = l;
@@ -961,7 +962,7 @@ var Ss = { exports: {} };
961
962
  id: "button",
962
963
  type: "blade",
963
964
  accept(n) {
964
- const t = V, e = H(n, {
965
+ const t = L, e = H(n, {
965
966
  title: t.required.string,
966
967
  view: t.required.constant("button"),
967
968
  label: t.optional.string
@@ -994,7 +995,7 @@ var Ss = { exports: {} };
994
995
  function Lt() {
995
996
  return new C({
996
997
  positions: O([], {
997
- equals: B
998
+ equals: K
998
999
  })
999
1000
  });
1000
1001
  }
@@ -1020,7 +1021,7 @@ var Ss = { exports: {} };
1020
1021
  if (!this.styleExpanded)
1021
1022
  return "0";
1022
1023
  const t = this.get("expandedHeight");
1023
- return this.get("shouldFixHeight") && !M(t) ? `${t}px` : "auto";
1024
+ return this.get("shouldFixHeight") && !S(t) ? `${t}px` : "auto";
1024
1025
  }
1025
1026
  bindExpandedClass(t, e) {
1026
1027
  const s = () => {
@@ -1043,14 +1044,14 @@ var Ss = { exports: {} };
1043
1044
  }
1044
1045
  function x(n, t) {
1045
1046
  n.value("expanded").emitter.on("beforechange", () => {
1046
- n.set("completed", !1), M(n.get("expandedHeight")) && n.set("expandedHeight", v(n, t)), n.set("shouldFixHeight", !0), Gt(t);
1047
+ n.set("completed", !1), S(n.get("expandedHeight")) && n.set("expandedHeight", v(n, t)), n.set("shouldFixHeight", !0), Gt(t);
1047
1048
  }), n.emitter.on("change", () => {
1048
1049
  f(n, t);
1049
1050
  }), f(n, t), t.addEventListener("transitionend", (e) => {
1050
1051
  e.propertyName === "height" && n.cleanUpTransition();
1051
1052
  });
1052
1053
  }
1053
- class S extends F {
1054
+ class T extends j {
1054
1055
  constructor(t, e) {
1055
1056
  super(t), this.rackApi_ = e;
1056
1057
  }
@@ -1089,7 +1090,7 @@ var Ss = { exports: {} };
1089
1090
  }
1090
1091
  add(t, e) {
1091
1092
  if (this.includes(t))
1092
- throw L.shouldNeverHappen();
1093
+ throw M.shouldNeverHappen();
1093
1094
  const s = e !== void 0 ? e : this.items_.length;
1094
1095
  this.items_.splice(s, 0, t), this.cache_.add(t);
1095
1096
  const l = this.extract_(t);
@@ -1132,7 +1133,7 @@ var Ss = { exports: {} };
1132
1133
  });
1133
1134
  }
1134
1135
  }
1135
- class pt extends F {
1136
+ class pt extends j {
1136
1137
  constructor(t) {
1137
1138
  super(t), this.onBindingChange_ = this.onBindingChange_.bind(this), this.emitter_ = new I(), this.controller_.binding.emitter.on("change", this.onBindingChange_);
1138
1139
  }
@@ -1163,7 +1164,7 @@ var Ss = { exports: {} };
1163
1164
  super(t, e), this.binding = e.binding;
1164
1165
  }
1165
1166
  }
1166
- class Zt extends F {
1167
+ class Zt extends j {
1167
1168
  constructor(t) {
1168
1169
  super(t), this.onBindingUpdate_ = this.onBindingUpdate_.bind(this), this.emitter_ = new I(), this.controller_.binding.emitter.on("update", this.onBindingUpdate_);
1169
1170
  }
@@ -1197,20 +1198,20 @@ var Ss = { exports: {} };
1197
1198
  }
1198
1199
  }
1199
1200
  function Me(n) {
1200
- return n instanceof Te ? n.apiSet_ : n instanceof S ? n.rackApi_.apiSet_ : null;
1201
+ return n instanceof Te ? n.apiSet_ : n instanceof T ? n.rackApi_.apiSet_ : null;
1201
1202
  }
1202
1203
  function Se(n, t) {
1203
1204
  const e = n.find((s) => s.controller_ === t);
1204
1205
  if (!e)
1205
- throw L.shouldNeverHappen();
1206
+ throw M.shouldNeverHappen();
1206
1207
  return e;
1207
1208
  }
1208
1209
  function Ye(n, t, e) {
1209
- if (!nt.isBindable(n))
1210
- throw L.notBindable();
1211
- return new nt(n, t, e);
1210
+ if (!et.isBindable(n))
1211
+ throw M.notBindable();
1212
+ return new et(n, t, e);
1212
1213
  }
1213
- class Te extends F {
1214
+ class Te extends j {
1214
1215
  constructor(t, e) {
1215
1216
  super(t), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.onRackInputChange_ = this.onRackInputChange_.bind(this), this.onRackMonitorUpdate_ = this.onRackMonitorUpdate_.bind(this), this.emitter_ = new I(), this.apiSet_ = new lt(Me), this.pool_ = e;
1216
1217
  const s = this.controller_.rack;
@@ -1287,18 +1288,18 @@ var Ss = { exports: {} };
1287
1288
  }
1288
1289
  onRackMonitorUpdate_(t) {
1289
1290
  if (!(t.bladeController instanceof Ft))
1290
- throw L.shouldNeverHappen();
1291
+ throw M.shouldNeverHappen();
1291
1292
  const e = Se(this.apiSet_, t.bladeController), s = t.bladeController.binding;
1292
1293
  this.emitter_.emit("update", {
1293
1294
  event: new y(e, s.target.read(), s.target.presetKey)
1294
1295
  });
1295
1296
  }
1296
1297
  }
1297
- class bn extends S {
1298
+ class bn extends T {
1298
1299
  constructor(t, e) {
1299
1300
  super(t, new Te(t.rackController, e)), this.emitter_ = new I(), this.controller_.foldable.value("expanded").emitter.on("change", (s) => {
1300
1301
  this.emitter_.emit("fold", {
1301
- event: new j(this, s.sender.rawValue)
1302
+ event: new B(this, s.sender.rawValue)
1302
1303
  });
1303
1304
  }), this.rackApi_.on("change", (s) => {
1304
1305
  this.emitter_.emit("change", {
@@ -1496,7 +1497,7 @@ var Ss = { exports: {} };
1496
1497
  onChildInputChange_(t) {
1497
1498
  const e = gi(this.find(ft), t.sender);
1498
1499
  if (!e)
1499
- throw L.shouldNeverHappen();
1500
+ throw M.shouldNeverHappen();
1500
1501
  this.emitter.emit("inputchange", {
1501
1502
  bladeController: e,
1502
1503
  options: t.options,
@@ -1506,7 +1507,7 @@ var Ss = { exports: {} };
1506
1507
  onChildMonitorUpdate_(t) {
1507
1508
  const e = wi(this.find(Ft), t.sender);
1508
1509
  if (!e)
1509
- throw L.shouldNeverHappen();
1510
+ throw M.shouldNeverHappen();
1510
1511
  this.emitter.emit("monitorupdate", {
1511
1512
  bladeController: e,
1512
1513
  sender: this
@@ -1515,7 +1516,7 @@ var Ss = { exports: {} };
1515
1516
  onChildValueChange_(t) {
1516
1517
  const e = xi(this.find(mt), t.sender);
1517
1518
  if (!e)
1518
- throw L.shouldNeverHappen();
1519
+ throw M.shouldNeverHappen();
1519
1520
  this.emitter.emit("inputchange", {
1520
1521
  bladeController: e,
1521
1522
  options: t.options,
@@ -1570,7 +1571,7 @@ var Ss = { exports: {} };
1570
1571
  this.className_ = P((s = e.viewName) !== null && s !== void 0 ? s : "fld"), this.element = t.createElement("div"), this.element.classList.add(this.className_(), $n()), e.viewProps.bindClassModifiers(this.element), this.foldable_ = e.foldable, this.foldable_.bindExpandedClass(this.element, this.className_(void 0, "expanded")), Y(this.foldable_, "completed", X(this.element, this.className_(void 0, "cpl")));
1571
1572
  const l = t.createElement("button");
1572
1573
  l.classList.add(this.className_("b")), Y(e.props, "title", (w) => {
1573
- M(w) ? this.element.classList.add(this.className_(void 0, "not")) : this.element.classList.remove(this.className_(void 0, "not"));
1574
+ S(w) ? this.element.classList.add(this.className_(void 0, "not")) : this.element.classList.remove(this.className_(void 0, "not"));
1574
1575
  }), e.viewProps.bindDisabled(l), this.element.appendChild(l), this.buttonElement = l;
1575
1576
  const c = t.createElement("div");
1576
1577
  c.classList.add(this.className_("t")), q(e.props.value("title"), c), this.buttonElement.appendChild(c), this.titleElement = c;
@@ -1611,7 +1612,7 @@ var Ss = { exports: {} };
1611
1612
  id: "folder",
1612
1613
  type: "blade",
1613
1614
  accept(n) {
1614
- const t = V, e = H(n, {
1615
+ const t = L, e = H(n, {
1615
1616
  title: t.required.string,
1616
1617
  view: t.required.constant("folder"),
1617
1618
  expanded: t.optional.boolean
@@ -1641,7 +1642,7 @@ var Ss = { exports: {} };
1641
1642
  }), viewProps: s })), this.props = e.props, this.valueController = e.valueController, this.view.valueElement.appendChild(this.valueController.view.element);
1642
1643
  }
1643
1644
  }
1644
- class wn extends F {
1645
+ class wn extends j {
1645
1646
  }
1646
1647
  const Hn = P("spr");
1647
1648
  class ki {
@@ -1663,7 +1664,7 @@ var Ss = { exports: {} };
1663
1664
  type: "blade",
1664
1665
  accept(n) {
1665
1666
  const e = H(n, {
1666
- view: V.required.constant("separator")
1667
+ view: L.required.constant("separator")
1667
1668
  });
1668
1669
  return e ? { params: e } : null;
1669
1670
  },
@@ -1807,7 +1808,7 @@ var Ss = { exports: {} };
1807
1808
  return this.rackApi_.addBlade(t);
1808
1809
  }
1809
1810
  }
1810
- class Xn extends S {
1811
+ class Xn extends T {
1811
1812
  constructor(t, e) {
1812
1813
  super(t, new Te(t.rackController, e)), this.onPageAdd_ = this.onPageAdd_.bind(this), this.onPageRemove_ = this.onPageRemove_.bind(this), this.onSelect_ = this.onSelect_.bind(this), this.emitter_ = new I(), this.pageApiMap_ = /* @__PURE__ */ new Map(), this.rackApi_.on("change", (s) => {
1813
1814
  this.emitter_.emit("change", {
@@ -1825,7 +1826,7 @@ var Ss = { exports: {} };
1825
1826
  return this.controller_.pageSet.items.map((t) => {
1826
1827
  const e = this.pageApiMap_.get(t);
1827
1828
  if (!e)
1828
- throw L.shouldNeverHappen();
1829
+ throw M.shouldNeverHappen();
1829
1830
  return e;
1830
1831
  });
1831
1832
  }
@@ -1842,7 +1843,7 @@ var Ss = { exports: {} };
1842
1843
  this.controller_.add(s, t.index);
1843
1844
  const l = this.pageApiMap_.get(s);
1844
1845
  if (!l)
1845
- throw L.shouldNeverHappen();
1846
+ throw M.shouldNeverHappen();
1846
1847
  return l;
1847
1848
  }
1848
1849
  removePage(t) {
@@ -1857,7 +1858,7 @@ var Ss = { exports: {} };
1857
1858
  setUpPageApi_(t) {
1858
1859
  const e = this.rackApi_.apiSet_.find((l) => l.controller_ === t.contentController);
1859
1860
  if (!e)
1860
- throw L.shouldNeverHappen();
1861
+ throw M.shouldNeverHappen();
1861
1862
  const s = new xn(t, e);
1862
1863
  this.pageApiMap_.set(t, s);
1863
1864
  }
@@ -1866,7 +1867,7 @@ var Ss = { exports: {} };
1866
1867
  }
1867
1868
  onPageRemove_(t) {
1868
1869
  if (!this.pageApiMap_.get(t.item))
1869
- throw L.shouldNeverHappen();
1870
+ throw M.shouldNeverHappen();
1870
1871
  this.pageApiMap_.delete(t.item);
1871
1872
  }
1872
1873
  onSelect_(t) {
@@ -1958,7 +1959,7 @@ var Ss = { exports: {} };
1958
1959
  id: "tab",
1959
1960
  type: "blade",
1960
1961
  accept(n) {
1961
- const t = V, e = H(n, {
1962
+ const t = L, e = H(n, {
1962
1963
  pages: t.required.array(t.required.object({ title: t.required.string })),
1963
1964
  view: t.required.constant("tab")
1964
1965
  });
@@ -1990,7 +1991,7 @@ var Ss = { exports: {} };
1990
1991
  const e = n.accept(t.params);
1991
1992
  if (!e)
1992
1993
  return null;
1993
- const s = V.optional.boolean(t.params.disabled).value, l = V.optional.boolean(t.params.hidden).value;
1994
+ const s = L.optional.boolean(t.params.disabled).value, l = L.optional.boolean(t.params.hidden).value;
1994
1995
  return n.controller({
1995
1996
  blade: Lt(),
1996
1997
  document: t.document,
@@ -2077,10 +2078,10 @@ var Ss = { exports: {} };
2077
2078
  }
2078
2079
  constrain(t) {
2079
2080
  let e = t;
2080
- return M(this.minValue) || (e = Math.max(e, this.minValue)), M(this.maxValue) || (e = Math.min(e, this.maxValue)), e;
2081
+ return S(this.minValue) || (e = Math.max(e, this.minValue)), S(this.maxValue) || (e = Math.min(e, this.maxValue)), e;
2081
2082
  }
2082
2083
  }
2083
- class it {
2084
+ class nt {
2084
2085
  constructor(t, e = 0) {
2085
2086
  this.step = t, this.origin = e;
2086
2087
  }
@@ -2165,7 +2166,7 @@ var Ss = { exports: {} };
2165
2166
  }
2166
2167
  onInputChange_(t) {
2167
2168
  const s = t.currentTarget.value, l = this.parser_(s);
2168
- M(l) || (this.value.rawValue = l), this.view.refresh();
2169
+ S(l) || (this.value.rawValue = l), this.view.refresh();
2169
2170
  }
2170
2171
  }
2171
2172
  function Di(n) {
@@ -2454,7 +2455,7 @@ var Ss = { exports: {} };
2454
2455
  return n;
2455
2456
  if (typeof n == "string") {
2456
2457
  const t = Tt(n);
2457
- if (!M(t))
2458
+ if (!S(t))
2458
2459
  return t;
2459
2460
  }
2460
2461
  return 0;
@@ -2513,7 +2514,7 @@ var Ss = { exports: {} };
2513
2514
  });
2514
2515
  });
2515
2516
  }
2516
- function st(n, t) {
2517
+ function it(n, t) {
2517
2518
  const e = n * (t.altKey ? 0.1 : 1) * (t.shiftKey ? 10 : 1);
2518
2519
  return t.upKey ? +e : t.downKey ? -e : 0;
2519
2520
  }
@@ -2635,7 +2636,7 @@ var Ss = { exports: {} };
2635
2636
  });
2636
2637
  }
2637
2638
  }
2638
- function K(n, t, e, s, l) {
2639
+ function F(n, t, e, s, l) {
2639
2640
  const c = (n - t) / (e - t);
2640
2641
  return s + c * (l - s);
2641
2642
  }
@@ -2705,17 +2706,17 @@ var Ss = { exports: {} };
2705
2706
  }
2706
2707
  onInputChange_(t) {
2707
2708
  const s = t.currentTarget.value, l = this.parser_(s);
2708
- M(l) || (this.value.rawValue = this.constrainValue_(l)), this.view.refresh();
2709
+ S(l) || (this.value.rawValue = this.constrainValue_(l)), this.view.refresh();
2709
2710
  }
2710
2711
  onInputKeyDown_(t) {
2711
- const e = st(this.baseStep_, Et(t));
2712
+ const e = it(this.baseStep_, Et(t));
2712
2713
  e !== 0 && this.value.setRawValue(this.constrainValue_(this.value.rawValue + e), {
2713
2714
  forceEmit: !1,
2714
2715
  last: !1
2715
2716
  });
2716
2717
  }
2717
2718
  onInputKeyUp_(t) {
2718
- st(this.baseStep_, Et(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
2719
+ it(this.baseStep_, Et(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
2719
2720
  forceEmit: !0,
2720
2721
  last: !0
2721
2722
  });
@@ -2754,7 +2755,7 @@ var Ss = { exports: {} };
2754
2755
  l.classList.add(An("k")), this.trackElement.appendChild(l), this.knobElement = l, e.value.emitter.on("change", this.onChange_), this.value = e.value, this.update_();
2755
2756
  }
2756
2757
  update_() {
2757
- const t = W(K(this.value.rawValue, this.props_.get("minValue"), this.props_.get("maxValue"), 0, 100), 0, 100);
2758
+ const t = W(F(this.value.rawValue, this.props_.get("minValue"), this.props_.get("maxValue"), 0, 100), 0, 100);
2758
2759
  this.knobElement.style.width = `${t}%`;
2759
2760
  }
2760
2761
  onChange_() {
@@ -2770,7 +2771,7 @@ var Ss = { exports: {} };
2770
2771
  }), this.ptHandler_ = new Qt(this.view.trackElement), this.ptHandler_.emitter.on("down", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("move", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.trackElement.addEventListener("keydown", this.onKeyDown_), this.view.trackElement.addEventListener("keyup", this.onKeyUp_);
2771
2772
  }
2772
2773
  handlePointerEvent_(t, e) {
2773
- !t.point || this.value.setRawValue(K(W(t.point.x, 0, t.bounds.width), 0, t.bounds.width, this.props.get("minValue"), this.props.get("maxValue")), e);
2774
+ !t.point || this.value.setRawValue(F(W(t.point.x, 0, t.bounds.width), 0, t.bounds.width, this.props.get("minValue"), this.props.get("maxValue")), e);
2774
2775
  }
2775
2776
  onPointerDownOrMove_(t) {
2776
2777
  this.handlePointerEvent_(t.data, {
@@ -2785,14 +2786,14 @@ var Ss = { exports: {} };
2785
2786
  });
2786
2787
  }
2787
2788
  onKeyDown_(t) {
2788
- const e = st(this.baseStep_, Dt(t));
2789
+ const e = it(this.baseStep_, Dt(t));
2789
2790
  e !== 0 && this.value.setRawValue(this.value.rawValue + e, {
2790
2791
  forceEmit: !1,
2791
2792
  last: !1
2792
2793
  });
2793
2794
  }
2794
2795
  onKeyUp_(t) {
2795
- st(this.baseStep_, Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
2796
+ it(this.baseStep_, Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
2796
2797
  forceEmit: !0,
2797
2798
  last: !0
2798
2799
  });
@@ -2838,7 +2839,7 @@ var Ss = { exports: {} };
2838
2839
  n.write(t);
2839
2840
  }
2840
2841
  function he(n) {
2841
- const t = V;
2842
+ const t = L;
2842
2843
  if (Array.isArray(n))
2843
2844
  return t.required.array(t.required.object({
2844
2845
  text: t.required.string,
@@ -2852,7 +2853,7 @@ var Ss = { exports: {} };
2852
2853
  return n;
2853
2854
  }
2854
2855
  function rt(n) {
2855
- const t = V;
2856
+ const t = L;
2856
2857
  return t.required.object({
2857
2858
  max: t.optional.number,
2858
2859
  min: t.optional.number,
@@ -2868,18 +2869,18 @@ var Ss = { exports: {} };
2868
2869
  }), t;
2869
2870
  }
2870
2871
  function Nn(n) {
2871
- return M(n) ? null : new pe(hi(n));
2872
+ return S(n) ? null : new pe(hi(n));
2872
2873
  }
2873
2874
  function On(n) {
2874
2875
  const t = n ? z(n, pe) : null;
2875
2876
  return t ? t.options : null;
2876
2877
  }
2877
2878
  function os(n) {
2878
- const t = n ? z(n, it) : null;
2879
+ const t = n ? z(n, nt) : null;
2879
2880
  return t ? t.step : null;
2880
2881
  }
2881
2882
  function tn(n, t) {
2882
- const e = n && z(n, it);
2883
+ const e = n && z(n, nt);
2883
2884
  return e ? pi(e.step) : Math.max(pi(t), 2);
2884
2885
  }
2885
2886
  function ve(n) {
@@ -2888,7 +2889,7 @@ var Ss = { exports: {} };
2888
2889
  }
2889
2890
  function me(n, t) {
2890
2891
  var e;
2891
- const s = n && z(n, it), l = Math.abs((e = s == null ? void 0 : s.step) !== null && e !== void 0 ? e : t);
2892
+ const s = n && z(n, nt), l = Math.abs((e = s == null ? void 0 : s.step) !== null && e !== void 0 ? e : t);
2892
2893
  return l === 0 ? 0.1 : Math.pow(10, Math.floor(Math.log10(l)) - 1);
2893
2894
  }
2894
2895
  const en = P("ckb");
@@ -2934,7 +2935,7 @@ var Ss = { exports: {} };
2934
2935
  if (typeof n != "boolean")
2935
2936
  return null;
2936
2937
  const s = H(t, {
2937
- options: V.optional.custom(he)
2938
+ options: L.optional.custom(he)
2938
2939
  });
2939
2940
  return s ? {
2940
2941
  initialValue: n,
@@ -3060,7 +3061,7 @@ var Ss = { exports: {} };
3060
3061
  return d(l, e.mode, "int", e.type);
3061
3062
  }
3062
3063
  function _(n, t) {
3063
- return typeof n != "object" || M(n) ? !1 : t in n && typeof n[t] == "number";
3064
+ return typeof n != "object" || S(n) ? !1 : t in n && typeof n[t] == "number";
3064
3065
  }
3065
3066
  class g {
3066
3067
  constructor(t, e, s = "int") {
@@ -3145,7 +3146,7 @@ var Ss = { exports: {} };
3145
3146
  return n === "int" ? "int" : n === "float" ? "float" : void 0;
3146
3147
  }
3147
3148
  function jn(n) {
3148
- const t = V;
3149
+ const t = L;
3149
3150
  return H(n, {
3150
3151
  alpha: t.optional.boolean,
3151
3152
  color: t.optional.object({
@@ -3163,14 +3164,14 @@ var Ss = { exports: {} };
3163
3164
  var t;
3164
3165
  return (t = n.color) === null || t === void 0 ? void 0 : t.type;
3165
3166
  }
3166
- function wr(n, t) {
3167
+ function xr(n, t) {
3167
3168
  return n.alpha === t.alpha && n.mode === t.mode && n.notation === t.notation && n.type === t.type;
3168
3169
  }
3169
3170
  function Pt(n, t) {
3170
3171
  const e = n.match(/^(.+)%$/);
3171
3172
  return Math.min(e ? parseFloat(e[1]) * 0.01 * t : parseFloat(n), t);
3172
3173
  }
3173
- const xr = {
3174
+ const Cr = {
3174
3175
  deg: (n) => n,
3175
3176
  grad: (n) => n * 360 / 400,
3176
3177
  rad: (n) => n * 360 / (2 * Math.PI),
@@ -3181,7 +3182,7 @@ var Ss = { exports: {} };
3181
3182
  if (!t)
3182
3183
  return parseFloat(n);
3183
3184
  const e = parseFloat(t[1]), s = t[2];
3184
- return xr[s](e);
3185
+ return Cr[s](e);
3185
3186
  }
3186
3187
  function As(n) {
3187
3188
  const t = n.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);
@@ -3268,7 +3269,7 @@ var Ss = { exports: {} };
3268
3269
  parseInt(e[3], 16)
3269
3270
  ] : null;
3270
3271
  }
3271
- function Cr(n) {
3272
+ function yr(n) {
3272
3273
  const t = Bs(n);
3273
3274
  return t ? new g(t, "rgb", "int") : null;
3274
3275
  }
@@ -3279,17 +3280,17 @@ var Ss = { exports: {} };
3279
3280
  parseInt(t[1] + t[1], 16),
3280
3281
  parseInt(t[2] + t[2], 16),
3281
3282
  parseInt(t[3] + t[3], 16),
3282
- K(parseInt(t[4] + t[4], 16), 0, 255, 0, 1)
3283
+ F(parseInt(t[4] + t[4], 16), 0, 255, 0, 1)
3283
3284
  ];
3284
3285
  const e = n.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);
3285
3286
  return e ? [
3286
3287
  parseInt(e[1], 16),
3287
3288
  parseInt(e[2], 16),
3288
3289
  parseInt(e[3], 16),
3289
- K(parseInt(e[4], 16), 0, 255, 0, 1)
3290
+ F(parseInt(e[4], 16), 0, 255, 0, 1)
3290
3291
  ] : null;
3291
3292
  }
3292
- function yr(n) {
3293
+ function Er(n) {
3293
3294
  const t = Ks(n);
3294
3295
  return t ? new g(t, "rgb", "int") : null;
3295
3296
  }
@@ -3328,7 +3329,7 @@ var Ss = { exports: {} };
3328
3329
  return e ? new g(e, "rgb", n) : null;
3329
3330
  };
3330
3331
  }
3331
- const Er = [
3332
+ const Pr = [
3332
3333
  {
3333
3334
  parser: Bs,
3334
3335
  result: {
@@ -3394,17 +3395,17 @@ var Ss = { exports: {} };
3394
3395
  }
3395
3396
  }
3396
3397
  ];
3397
- function Pr(n) {
3398
- return Er.reduce((t, { parser: e, result: s }) => t || (e(n) ? s : null), null);
3398
+ function kr(n) {
3399
+ return Pr.reduce((t, { parser: e, result: s }) => t || (e(n) ? s : null), null);
3399
3400
  }
3400
3401
  function vs(n, t = "int") {
3401
- const e = Pr(n);
3402
+ const e = kr(n);
3402
3403
  return e ? e.notation === "hex" && t !== "float" ? Object.assign(Object.assign({}, e), { type: "int" }) : e.notation === "func" ? Object.assign(Object.assign({}, e), { type: t }) : null : null;
3403
3404
  }
3404
3405
  const qs = {
3405
3406
  int: [
3406
- Cr,
3407
3407
  yr,
3408
+ Er,
3408
3409
  Ds("int"),
3409
3410
  Os("int"),
3410
3411
  zs("int"),
@@ -3421,7 +3422,7 @@ var Ss = { exports: {} };
3421
3422
  Hs("float")
3422
3423
  ]
3423
3424
  };
3424
- function kr(n) {
3425
+ function Vr(n) {
3425
3426
  const t = qs[n];
3426
3427
  return (e) => {
3427
3428
  if (typeof e != "string")
@@ -3450,17 +3451,17 @@ var Ss = { exports: {} };
3450
3451
  const e = $(t === "float" ? 2 : 0);
3451
3452
  return `rgb(${o(n.getComponents("rgb", t)).map((l) => e(l)).join(", ")})`;
3452
3453
  }
3453
- function Vr(n) {
3454
+ function Lr(n) {
3454
3455
  return (t) => Xs(t, n);
3455
3456
  }
3456
3457
  function mi(n, t) {
3457
3458
  const e = $(2), s = $(t === "float" ? 2 : 0);
3458
3459
  return `rgba(${n.getComponents("rgb", t).map((c, h) => (h === 3 ? e : s)(c)).join(", ")})`;
3459
3460
  }
3460
- function Lr(n) {
3461
+ function Mr(n) {
3461
3462
  return (t) => mi(t, n);
3462
3463
  }
3463
- function Mr(n) {
3464
+ function Sr(n) {
3464
3465
  const t = [
3465
3466
  $(0),
3466
3467
  ce,
@@ -3468,7 +3469,7 @@ var Ss = { exports: {} };
3468
3469
  ];
3469
3470
  return `hsl(${o(n.getComponents("hsl")).map((s, l) => t[l](s)).join(", ")})`;
3470
3471
  }
3471
- function Sr(n) {
3472
+ function Tr(n) {
3472
3473
  const t = [
3473
3474
  $(0),
3474
3475
  ce,
@@ -3481,7 +3482,7 @@ var Ss = { exports: {} };
3481
3482
  const e = $(t === "float" ? 2 : 0), s = ["r", "g", "b"];
3482
3483
  return `{${o(n.getComponents("rgb", t)).map((c, h) => `${s[h]}: ${e(c)}`).join(", ")}}`;
3483
3484
  }
3484
- function Tr(n) {
3485
+ function Ar(n) {
3485
3486
  return (t) => Zs(t, n);
3486
3487
  }
3487
3488
  function Ws(n, t) {
@@ -3491,10 +3492,10 @@ var Ss = { exports: {} };
3491
3492
  return `${l[b]}: ${w(h)}`;
3492
3493
  }).join(", ")}}`;
3493
3494
  }
3494
- function Ar(n) {
3495
+ function Dr(n) {
3495
3496
  return (t) => Ws(t, n);
3496
3497
  }
3497
- const Dr = [
3498
+ const Nr = [
3498
3499
  {
3499
3500
  format: {
3500
3501
  alpha: !1,
@@ -3520,7 +3521,7 @@ var Ss = { exports: {} };
3520
3521
  notation: "func",
3521
3522
  type: "int"
3522
3523
  },
3523
- stringifier: Mr
3524
+ stringifier: Sr
3524
3525
  },
3525
3526
  {
3526
3527
  format: {
@@ -3529,7 +3530,7 @@ var Ss = { exports: {} };
3529
3530
  notation: "func",
3530
3531
  type: "int"
3531
3532
  },
3532
- stringifier: Sr
3533
+ stringifier: Tr
3533
3534
  },
3534
3535
  ...["int", "float"].reduce((n, t) => [
3535
3536
  ...n,
@@ -3540,7 +3541,7 @@ var Ss = { exports: {} };
3540
3541
  notation: "func",
3541
3542
  type: t
3542
3543
  },
3543
- stringifier: Vr(t)
3544
+ stringifier: Lr(t)
3544
3545
  },
3545
3546
  {
3546
3547
  format: {
@@ -3549,7 +3550,7 @@ var Ss = { exports: {} };
3549
3550
  notation: "func",
3550
3551
  type: t
3551
3552
  },
3552
- stringifier: Lr(t)
3553
+ stringifier: Mr(t)
3553
3554
  },
3554
3555
  {
3555
3556
  format: {
@@ -3558,7 +3559,7 @@ var Ss = { exports: {} };
3558
3559
  notation: "object",
3559
3560
  type: t
3560
3561
  },
3561
- stringifier: Tr(t)
3562
+ stringifier: Ar(t)
3562
3563
  },
3563
3564
  {
3564
3565
  format: {
@@ -3567,15 +3568,15 @@ var Ss = { exports: {} };
3567
3568
  notation: "object",
3568
3569
  type: t
3569
3570
  },
3570
- stringifier: Ar(t)
3571
+ stringifier: Dr(t)
3571
3572
  }
3572
3573
  ], [])
3573
3574
  ];
3574
3575
  function fs(n) {
3575
- return Dr.reduce((t, e) => t || (wr(e.format, n) ? e.stringifier : null), null);
3576
+ return Nr.reduce((t, e) => t || (xr(e.format, n) ? e.stringifier : null), null);
3576
3577
  }
3577
3578
  const Bn = P("apl");
3578
- class Nr {
3579
+ class Or {
3579
3580
  constructor(t, e) {
3580
3581
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = e.value, this.value.emitter.on("change", this.onValueChange_), this.element = t.createElement("div"), this.element.classList.add(Bn()), e.viewProps.bindTabIndex(this.element);
3581
3582
  const s = t.createElement("div");
@@ -3594,16 +3595,16 @@ var Ss = { exports: {} };
3594
3595
  mi(l)
3595
3596
  ];
3596
3597
  this.colorElem_.style.background = `linear-gradient(${c.join(",")})`, this.previewElem_.style.backgroundColor = mi(t);
3597
- const h = K(e[3], 0, 1, 0, 100);
3598
+ const h = F(e[3], 0, 1, 0, 100);
3598
3599
  this.markerElem_.style.left = `${h}%`;
3599
3600
  }
3600
3601
  onValueChange_() {
3601
3602
  this.update_();
3602
3603
  }
3603
3604
  }
3604
- class Or {
3605
+ class Rr {
3605
3606
  constructor(t, e) {
3606
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new Nr(t, {
3607
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new Or(t, {
3607
3608
  value: this.value,
3608
3609
  viewProps: this.viewProps
3609
3610
  }), this.ptHandler_ = new Qt(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -3633,7 +3634,7 @@ var Ss = { exports: {} };
3633
3634
  });
3634
3635
  }
3635
3636
  onKeyDown_(t) {
3636
- const e = st(te(!0), Dt(t));
3637
+ const e = it(te(!0), Dt(t));
3637
3638
  if (e === 0)
3638
3639
  return;
3639
3640
  const s = this.value.rawValue, [l, c, h, b] = s.getComponents("hsv");
@@ -3643,14 +3644,14 @@ var Ss = { exports: {} };
3643
3644
  });
3644
3645
  }
3645
3646
  onKeyUp_(t) {
3646
- st(te(!0), Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
3647
+ it(te(!0), Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
3647
3648
  forceEmit: !0,
3648
3649
  last: !0
3649
3650
  });
3650
3651
  }
3651
3652
  }
3652
3653
  const nn = P("coltxt");
3653
- function Rr(n) {
3654
+ function zr(n) {
3654
3655
  const t = n.createElement("select"), e = [
3655
3656
  { text: "RGB", value: "rgb" },
3656
3657
  { text: "HSL", value: "hsl" },
@@ -3661,11 +3662,11 @@ var Ss = { exports: {} };
3661
3662
  return c.textContent = l.text, c.value = l.value, s.appendChild(c), s;
3662
3663
  }, n.createDocumentFragment())), t;
3663
3664
  }
3664
- class zr {
3665
+ class Ir {
3665
3666
  constructor(t, e) {
3666
3667
  this.element = t.createElement("div"), this.element.classList.add(nn());
3667
3668
  const s = t.createElement("div");
3668
- s.classList.add(nn("m")), this.modeElem_ = Rr(t), this.modeElem_.classList.add(nn("ms")), s.appendChild(this.modeSelectElement);
3669
+ s.classList.add(nn("m")), this.modeElem_ = zr(t), this.modeElem_.classList.add(nn("ms")), s.appendChild(this.modeSelectElement);
3669
3670
  const l = t.createElement("div");
3670
3671
  l.classList.add(nn("mm")), l.appendChild(jt(t, "dropdown")), s.appendChild(l), this.element.appendChild(s);
3671
3672
  const c = t.createElement("div");
@@ -3691,10 +3692,10 @@ var Ss = { exports: {} };
3691
3692
  });
3692
3693
  }
3693
3694
  }
3694
- function Ir(n) {
3695
+ function jr(n) {
3695
3696
  return $(n === "float" ? 2 : 0);
3696
3697
  }
3697
- function jr(n, t, e) {
3698
+ function Br(n, t, e) {
3698
3699
  const s = a(n, t)[e];
3699
3700
  return new wt({
3700
3701
  min: 0,
@@ -3708,17 +3709,17 @@ var Ss = { exports: {} };
3708
3709
  parser: t.parser,
3709
3710
  props: C.fromObject({
3710
3711
  draggingScale: t.colorType === "float" ? 0.01 : 1,
3711
- formatter: Ir(t.colorType)
3712
+ formatter: jr(t.colorType)
3712
3713
  }),
3713
3714
  value: O(0, {
3714
- constraint: jr(t.colorMode, t.colorType, e)
3715
+ constraint: Br(t.colorMode, t.colorType, e)
3715
3716
  }),
3716
3717
  viewProps: t.viewProps
3717
3718
  });
3718
3719
  }
3719
- class Br {
3720
+ class Kr {
3720
3721
  constructor(t, e) {
3721
- this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = e.colorType, this.parser_ = e.parser, this.value = e.value, this.viewProps = e.viewProps, this.colorMode = O(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(t), this.view = new zr(t, {
3722
+ this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = e.colorType, this.parser_ = e.parser, this.value = e.value, this.viewProps = e.viewProps, this.colorMode = O(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(t), this.view = new Ir(t, {
3722
3723
  colorMode: this.colorMode,
3723
3724
  textViews: [this.ccs_[0].view, this.ccs_[1].view, this.ccs_[2].view]
3724
3725
  }), this.view.modeSelectElement.addEventListener("change", this.onModeSelectChange_);
@@ -3756,7 +3757,7 @@ var Ss = { exports: {} };
3756
3757
  }
3757
3758
  }
3758
3759
  const gs = P("hpl");
3759
- class Kr {
3760
+ class Fr {
3760
3761
  constructor(t, e) {
3761
3762
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = e.value, this.value.emitter.on("change", this.onValueChange_), this.element = t.createElement("div"), this.element.classList.add(gs()), e.viewProps.bindTabIndex(this.element);
3762
3763
  const s = t.createElement("div");
@@ -3767,16 +3768,16 @@ var Ss = { exports: {} };
3767
3768
  update_() {
3768
3769
  const t = this.value.rawValue, [e] = t.getComponents("hsv");
3769
3770
  this.markerElem_.style.backgroundColor = Xs(new g([e, 100, 100], "hsv"));
3770
- const s = K(e, 0, 360, 0, 100);
3771
+ const s = F(e, 0, 360, 0, 100);
3771
3772
  this.markerElem_.style.left = `${s}%`;
3772
3773
  }
3773
3774
  onValueChange_() {
3774
3775
  this.update_();
3775
3776
  }
3776
3777
  }
3777
- class Fr {
3778
+ class Ur {
3778
3779
  constructor(t, e) {
3779
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new Kr(t, {
3780
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new Fr(t, {
3780
3781
  value: this.value,
3781
3782
  viewProps: this.viewProps
3782
3783
  }), this.ptHandler_ = new Qt(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -3784,7 +3785,7 @@ var Ss = { exports: {} };
3784
3785
  handlePointerEvent_(t, e) {
3785
3786
  if (!t.point)
3786
3787
  return;
3787
- const s = K(W(t.point.x, 0, t.bounds.width), 0, t.bounds.width, 0, 359), l = this.value.rawValue, [, c, h, b] = l.getComponents("hsv");
3788
+ const s = F(W(t.point.x, 0, t.bounds.width), 0, t.bounds.width, 0, 359), l = this.value.rawValue, [, c, h, b] = l.getComponents("hsv");
3788
3789
  this.value.setRawValue(new g([s, c, h, b], "hsv"), e);
3789
3790
  }
3790
3791
  onPointerDown_(t) {
@@ -3806,7 +3807,7 @@ var Ss = { exports: {} };
3806
3807
  });
3807
3808
  }
3808
3809
  onKeyDown_(t) {
3809
- const e = st(te(!1), Dt(t));
3810
+ const e = it(te(!1), Dt(t));
3810
3811
  if (e === 0)
3811
3812
  return;
3812
3813
  const s = this.value.rawValue, [l, c, h, b] = s.getComponents("hsv");
@@ -3816,14 +3817,14 @@ var Ss = { exports: {} };
3816
3817
  });
3817
3818
  }
3818
3819
  onKeyUp_(t) {
3819
- st(te(!1), Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
3820
+ it(te(!1), Dt(t)) !== 0 && this.value.setRawValue(this.value.rawValue, {
3820
3821
  forceEmit: !0,
3821
3822
  last: !0
3822
3823
  });
3823
3824
  }
3824
3825
  }
3825
3826
  const ws = P("svp"), Qs = 64;
3826
- class Ur {
3827
+ class $r {
3827
3828
  constructor(t, e) {
3828
3829
  this.onValueChange_ = this.onValueChange_.bind(this), this.value = e.value, this.value.emitter.on("change", this.onValueChange_), this.element = t.createElement("div"), this.element.classList.add(ws()), e.viewProps.bindTabIndex(this.element);
3829
3830
  const s = t.createElement("canvas");
@@ -3838,22 +3839,22 @@ var Ss = { exports: {} };
3838
3839
  const s = this.value.rawValue.getComponents("hsv"), l = this.canvasElement.width, c = this.canvasElement.height, h = t.getImageData(0, 0, l, c), b = h.data;
3839
3840
  for (let N = 0; N < c; N++)
3840
3841
  for (let R = 0; R < l; R++) {
3841
- const ne = K(R, 0, l, 0, 100), Fn = K(N, 0, c, 100, 0), Un = vi(s[0], ne, Fn), an = (N * l + R) * 4;
3842
+ const ne = F(R, 0, l, 0, 100), Fn = F(N, 0, c, 100, 0), Un = vi(s[0], ne, Fn), an = (N * l + R) * 4;
3842
3843
  b[an] = Un[0], b[an + 1] = Un[1], b[an + 2] = Un[2], b[an + 3] = 255;
3843
3844
  }
3844
3845
  t.putImageData(h, 0, 0);
3845
- const w = K(s[1], 0, 100, 0, 100);
3846
+ const w = F(s[1], 0, 100, 0, 100);
3846
3847
  this.markerElem_.style.left = `${w}%`;
3847
- const E = K(s[2], 0, 100, 100, 0);
3848
+ const E = F(s[2], 0, 100, 100, 0);
3848
3849
  this.markerElem_.style.top = `${E}%`;
3849
3850
  }
3850
3851
  onValueChange_() {
3851
3852
  this.update_();
3852
3853
  }
3853
3854
  }
3854
- class $r {
3855
+ class Hr {
3855
3856
  constructor(t, e) {
3856
- this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new Ur(t, {
3857
+ this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.view = new $r(t, {
3857
3858
  value: this.value,
3858
3859
  viewProps: this.viewProps
3859
3860
  }), this.ptHandler_ = new Qt(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
@@ -3861,7 +3862,7 @@ var Ss = { exports: {} };
3861
3862
  handlePointerEvent_(t, e) {
3862
3863
  if (!t.point)
3863
3864
  return;
3864
- const s = K(t.point.x, 0, t.bounds.width, 0, 100), l = K(t.point.y, 0, t.bounds.height, 100, 0), [c, , , h] = this.value.rawValue.getComponents("hsv");
3865
+ const s = F(t.point.x, 0, t.bounds.width, 0, 100), l = F(t.point.y, 0, t.bounds.height, 100, 0), [c, , , h] = this.value.rawValue.getComponents("hsv");
3865
3866
  this.value.setRawValue(new g([c, s, l, h], "hsv"), e);
3866
3867
  }
3867
3868
  onPointerDown_(t) {
@@ -3884,30 +3885,30 @@ var Ss = { exports: {} };
3884
3885
  }
3885
3886
  onKeyDown_(t) {
3886
3887
  li(t.key) && t.preventDefault();
3887
- const [e, s, l, c] = this.value.rawValue.getComponents("hsv"), h = te(!1), b = st(h, Dt(t)), w = st(h, Et(t));
3888
+ const [e, s, l, c] = this.value.rawValue.getComponents("hsv"), h = te(!1), b = it(h, Dt(t)), w = it(h, Et(t));
3888
3889
  b === 0 && w === 0 || this.value.setRawValue(new g([e, s + b, l + w, c], "hsv"), {
3889
3890
  forceEmit: !1,
3890
3891
  last: !1
3891
3892
  });
3892
3893
  }
3893
3894
  onKeyUp_(t) {
3894
- const e = te(!1), s = st(e, Dt(t)), l = st(e, Et(t));
3895
+ const e = te(!1), s = it(e, Dt(t)), l = it(e, Et(t));
3895
3896
  s === 0 && l === 0 || this.value.setRawValue(this.value.rawValue, {
3896
3897
  forceEmit: !0,
3897
3898
  last: !0
3898
3899
  });
3899
3900
  }
3900
3901
  }
3901
- class Hr {
3902
+ class qr {
3902
3903
  constructor(t, e) {
3903
- this.value = e.value, this.viewProps = e.viewProps, this.hPaletteC_ = new Fr(t, {
3904
+ this.value = e.value, this.viewProps = e.viewProps, this.hPaletteC_ = new Ur(t, {
3904
3905
  value: this.value,
3905
3906
  viewProps: this.viewProps
3906
- }), this.svPaletteC_ = new $r(t, {
3907
+ }), this.svPaletteC_ = new Hr(t, {
3907
3908
  value: this.value,
3908
3909
  viewProps: this.viewProps
3909
3910
  }), this.alphaIcs_ = e.supportsAlpha ? {
3910
- palette: new Or(t, {
3911
+ palette: new Rr(t, {
3911
3912
  value: this.value,
3912
3913
  viewProps: this.viewProps
3913
3914
  }),
@@ -3931,7 +3932,7 @@ var Ss = { exports: {} };
3931
3932
  const c = s.rawValue.getComponents();
3932
3933
  return c[3] = l.rawValue, new g(c, s.rawValue.mode);
3933
3934
  }
3934
- }), this.textC_ = new Br(t, {
3935
+ }), this.textC_ = new Kr(t, {
3935
3936
  colorType: e.colorType,
3936
3937
  parser: Tt,
3937
3938
  value: this.value,
@@ -3952,7 +3953,7 @@ var Ss = { exports: {} };
3952
3953
  }
3953
3954
  }
3954
3955
  const xs = P("colsw");
3955
- class qr {
3956
+ class Gr {
3956
3957
  constructor(t, e) {
3957
3958
  this.onValueChange_ = this.onValueChange_.bind(this), e.value.emitter.on("change", this.onValueChange_), this.value = e.value, this.element = t.createElement("div"), this.element.classList.add(xs()), e.viewProps.bindClassModifiers(this.element);
3958
3959
  const s = t.createElement("div");
@@ -3968,9 +3969,9 @@ var Ss = { exports: {} };
3968
3969
  this.update_();
3969
3970
  }
3970
3971
  }
3971
- class Gr {
3972
+ class Yr {
3972
3973
  constructor(t, e) {
3973
- this.value = e.value, this.viewProps = e.viewProps, this.view = new qr(t, {
3974
+ this.value = e.value, this.viewProps = e.viewProps, this.view = new Gr(t, {
3974
3975
  value: this.value,
3975
3976
  viewProps: this.viewProps
3976
3977
  });
@@ -3978,7 +3979,7 @@ var Ss = { exports: {} };
3978
3979
  }
3979
3980
  class Cs {
3980
3981
  constructor(t, e) {
3981
- this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.foldable_ = Mt.create(e.expanded), this.swatchC_ = new Gr(t, {
3982
+ this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.foldable_ = Mt.create(e.expanded), this.swatchC_ = new Yr(t, {
3982
3983
  value: this.value,
3983
3984
  viewProps: this.viewProps
3984
3985
  });
@@ -3996,7 +3997,7 @@ var Ss = { exports: {} };
3996
3997
  }), this.view.swatchElement.appendChild(this.swatchC_.view.element), this.view.textElement.appendChild(this.textC_.view.element), this.popC_ = e.pickerLayout === "popup" ? new Pn(t, {
3997
3998
  viewProps: this.viewProps
3998
3999
  }) : null;
3999
- const l = new Hr(t, {
4000
+ const l = new qr(t, {
4000
4001
  colorType: e.colorType,
4001
4002
  supportsAlpha: e.supportsAlpha,
4002
4003
  value: this.value,
@@ -4033,75 +4034,75 @@ var Ss = { exports: {} };
4033
4034
  this.popC_ ? t.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && t.key === "Escape" && this.swatchC_.view.buttonElement.focus();
4034
4035
  }
4035
4036
  }
4036
- function Yr(n, t) {
4037
+ function Xr(n, t) {
4037
4038
  return g.isColorObject(n) ? g.fromObject(n, t) : g.black(t);
4038
4039
  }
4039
- function Xr(n) {
4040
+ function Zr(n) {
4040
4041
  return o(n.getComponents("rgb")).reduce((t, e) => t << 8 | Math.floor(e) & 255, 0);
4041
4042
  }
4042
- function Zr(n) {
4043
+ function Wr(n) {
4043
4044
  return n.getComponents("rgb").reduce((t, e, s) => {
4044
4045
  const l = Math.floor(s === 3 ? e * 255 : e) & 255;
4045
4046
  return t << 8 | l;
4046
4047
  }, 0) >>> 0;
4047
4048
  }
4048
- function Wr(n) {
4049
+ function Qr(n) {
4049
4050
  return new g([n >> 16 & 255, n >> 8 & 255, n & 255], "rgb");
4050
4051
  }
4051
- function Qr(n) {
4052
+ function Jr(n) {
4052
4053
  return new g([
4053
4054
  n >> 24 & 255,
4054
4055
  n >> 16 & 255,
4055
4056
  n >> 8 & 255,
4056
- K(n & 255, 0, 255, 0, 1)
4057
+ F(n & 255, 0, 255, 0, 1)
4057
4058
  ], "rgb");
4058
4059
  }
4059
- function Jr(n) {
4060
- return typeof n != "number" ? g.black() : Wr(n);
4061
- }
4062
4060
  function to(n) {
4063
4061
  return typeof n != "number" ? g.black() : Qr(n);
4064
4062
  }
4065
4063
  function eo(n) {
4064
+ return typeof n != "number" ? g.black() : Jr(n);
4065
+ }
4066
+ function no(n) {
4066
4067
  const t = fs(n);
4067
4068
  return t ? (e, s) => {
4068
4069
  de(e, t(s));
4069
4070
  } : null;
4070
4071
  }
4071
- function no(n) {
4072
- const t = n ? Zr : Xr;
4072
+ function io(n) {
4073
+ const t = n ? Wr : Zr;
4073
4074
  return (e, s) => {
4074
4075
  de(e, t(s));
4075
4076
  };
4076
4077
  }
4077
- function io(n, t, e) {
4078
+ function so(n, t, e) {
4078
4079
  const s = t.toRgbaObject(e);
4079
4080
  n.writeProperty("r", s.r), n.writeProperty("g", s.g), n.writeProperty("b", s.b), n.writeProperty("a", s.a);
4080
4081
  }
4081
- function so(n, t, e) {
4082
+ function ro(n, t, e) {
4082
4083
  const s = t.toRgbaObject(e);
4083
4084
  n.writeProperty("r", s.r), n.writeProperty("g", s.g), n.writeProperty("b", s.b);
4084
4085
  }
4085
- function ro(n, t) {
4086
+ function oo(n, t) {
4086
4087
  return (e, s) => {
4087
- n ? io(e, s, t) : so(e, s, t);
4088
+ n ? so(e, s, t) : ro(e, s, t);
4088
4089
  };
4089
4090
  }
4090
4091
  function ys(n) {
4091
4092
  var t;
4092
4093
  return !!((n == null ? void 0 : n.alpha) || ((t = n == null ? void 0 : n.color) === null || t === void 0 ? void 0 : t.alpha));
4093
4094
  }
4094
- function oo(n) {
4095
+ function ao(n) {
4095
4096
  return n ? (t) => bs(t, "0x") : (t) => Ys(t, "0x");
4096
4097
  }
4097
- function ao(n) {
4098
+ function lo(n) {
4098
4099
  return "color" in n || "view" in n && n.view === "color";
4099
4100
  }
4100
- const lo = {
4101
+ const po = {
4101
4102
  id: "input-color-number",
4102
4103
  type: "input",
4103
4104
  accept: (n, t) => {
4104
- if (typeof n != "number" || !ao(t))
4105
+ if (typeof n != "number" || !lo(t))
4105
4106
  return null;
4106
4107
  const e = jn(t);
4107
4108
  return e ? {
@@ -4110,16 +4111,16 @@ var Ss = { exports: {} };
4110
4111
  } : null;
4111
4112
  },
4112
4113
  binding: {
4113
- reader: (n) => ys(n.params) ? to : Jr,
4114
+ reader: (n) => ys(n.params) ? eo : to,
4114
4115
  equals: g.equals,
4115
- writer: (n) => no(ys(n.params))
4116
+ writer: (n) => io(ys(n.params))
4116
4117
  },
4117
4118
  controller: (n) => {
4118
4119
  const t = ys(n.params), e = "expanded" in n.params ? n.params.expanded : void 0, s = "picker" in n.params ? n.params.picker : void 0;
4119
4120
  return new Cs(n.document, {
4120
4121
  colorType: "int",
4121
4122
  expanded: e != null ? e : !1,
4122
- formatter: oo(t),
4123
+ formatter: ao(t),
4123
4124
  parser: ms("int"),
4124
4125
  pickerLayout: s != null ? s : "popup",
4125
4126
  supportsAlpha: t,
@@ -4128,16 +4129,16 @@ var Ss = { exports: {} };
4128
4129
  });
4129
4130
  }
4130
4131
  };
4131
- function po(n) {
4132
+ function co(n) {
4132
4133
  return g.isRgbaColorObject(n);
4133
4134
  }
4134
- function co(n) {
4135
- return (t) => Yr(t, n);
4135
+ function uo(n) {
4136
+ return (t) => Xr(t, n);
4136
4137
  }
4137
- function uo(n, t) {
4138
+ function ho(n, t) {
4138
4139
  return (e) => n ? Ws(e, t) : Zs(e, t);
4139
4140
  }
4140
- const ho = {
4141
+ const vo = {
4141
4142
  id: "input-color-object",
4142
4143
  type: "input",
4143
4144
  accept: (n, t) => {
@@ -4150,9 +4151,9 @@ var Ss = { exports: {} };
4150
4151
  } : null;
4151
4152
  },
4152
4153
  binding: {
4153
- reader: (n) => co(Be(n.params)),
4154
+ reader: (n) => uo(Be(n.params)),
4154
4155
  equals: g.equals,
4155
- writer: (n) => ro(po(n.initialValue), Be(n.params))
4156
+ writer: (n) => oo(co(n.initialValue), Be(n.params))
4156
4157
  },
4157
4158
  controller: (n) => {
4158
4159
  var t;
@@ -4160,7 +4161,7 @@ var Ss = { exports: {} };
4160
4161
  return new Cs(n.document, {
4161
4162
  colorType: c,
4162
4163
  expanded: s != null ? s : !1,
4163
- formatter: uo(e, c),
4164
+ formatter: ho(e, c),
4164
4165
  parser: ms(c),
4165
4166
  pickerLayout: l != null ? l : "popup",
4166
4167
  supportsAlpha: e,
@@ -4168,7 +4169,7 @@ var Ss = { exports: {} };
4168
4169
  viewProps: n.viewProps
4169
4170
  });
4170
4171
  }
4171
- }, vo = {
4172
+ }, mo = {
4172
4173
  id: "input-color-string",
4173
4174
  type: "input",
4174
4175
  accept: (n, t) => {
@@ -4186,26 +4187,26 @@ var Ss = { exports: {} };
4186
4187
  binding: {
4187
4188
  reader: (n) => {
4188
4189
  var t;
4189
- return kr((t = Be(n.params)) !== null && t !== void 0 ? t : "int");
4190
+ return Vr((t = Be(n.params)) !== null && t !== void 0 ? t : "int");
4190
4191
  },
4191
4192
  equals: g.equals,
4192
4193
  writer: (n) => {
4193
4194
  const t = vs(n.initialValue, Be(n.params));
4194
4195
  if (!t)
4195
- throw L.shouldNeverHappen();
4196
- const e = eo(t);
4196
+ throw M.shouldNeverHappen();
4197
+ const e = no(t);
4197
4198
  if (!e)
4198
- throw L.notBindable();
4199
+ throw M.notBindable();
4199
4200
  return e;
4200
4201
  }
4201
4202
  },
4202
4203
  controller: (n) => {
4203
4204
  const t = vs(n.initialValue, Be(n.params));
4204
4205
  if (!t)
4205
- throw L.shouldNeverHappen();
4206
+ throw M.shouldNeverHappen();
4206
4207
  const e = fs(t);
4207
4208
  if (!e)
4208
- throw L.shouldNeverHappen();
4209
+ throw M.shouldNeverHappen();
4209
4210
  const s = "expanded" in n.params ? n.params.expanded : void 0, l = "picker" in n.params ? n.params.picker : void 0;
4210
4211
  return new Cs(n.document, {
4211
4212
  colorType: t.type,
@@ -4232,7 +4233,7 @@ var Ss = { exports: {} };
4232
4233
  }
4233
4234
  }
4234
4235
  const Js = P("pndtxt");
4235
- class mo {
4236
+ class bo {
4236
4237
  constructor(t, e) {
4237
4238
  this.textViews = e.textViews, this.element = t.createElement("div"), this.element.classList.add(Js()), this.textViews.forEach((s) => {
4238
4239
  const l = t.createElement("div");
@@ -4240,7 +4241,7 @@ var Ss = { exports: {} };
4240
4241
  });
4241
4242
  }
4242
4243
  }
4243
- function bo(n, t, e) {
4244
+ function fo(n, t, e) {
4244
4245
  return new Nt(n, {
4245
4246
  arrayPosition: e === 0 ? "fst" : e === t.axes.length - 1 ? "lst" : "mid",
4246
4247
  baseStep: t.axes[e].baseStep,
@@ -4254,7 +4255,7 @@ var Ss = { exports: {} };
4254
4255
  }
4255
4256
  class Es {
4256
4257
  constructor(t, e) {
4257
- this.value = e.value, this.viewProps = e.viewProps, this.acs_ = e.axes.map((s, l) => bo(t, e, l)), this.acs_.forEach((s, l) => {
4258
+ this.value = e.value, this.viewProps = e.viewProps, this.acs_ = e.axes.map((s, l) => fo(t, e, l)), this.acs_.forEach((s, l) => {
4258
4259
  ue({
4259
4260
  primary: this.value,
4260
4261
  secondary: s.value,
@@ -4264,21 +4265,21 @@ var Ss = { exports: {} };
4264
4265
  return b[l] = h.rawValue, e.assembly.fromComponents(b);
4265
4266
  }
4266
4267
  });
4267
- }), this.view = new mo(t, {
4268
+ }), this.view = new bo(t, {
4268
4269
  textViews: this.acs_.map((s) => s.view)
4269
4270
  });
4270
4271
  }
4271
4272
  }
4272
4273
  function tr(n, t) {
4273
- return "step" in n && !M(n.step) ? new it(n.step, t) : null;
4274
+ return "step" in n && !S(n.step) ? new nt(n.step, t) : null;
4274
4275
  }
4275
4276
  function er(n) {
4276
- return "max" in n && !M(n.max) || "min" in n && !M(n.min) ? new wt({
4277
+ return "max" in n && !S(n.max) || "min" in n && !S(n.min) ? new wt({
4277
4278
  max: n.max,
4278
4279
  min: n.min
4279
4280
  }) : null;
4280
4281
  }
4281
- function fo(n, t) {
4282
+ function _o(n, t) {
4282
4283
  const e = [], s = tr(n, t);
4283
4284
  s && e.push(s);
4284
4285
  const l = er(n);
@@ -4286,21 +4287,21 @@ var Ss = { exports: {} };
4286
4287
  const c = Nn(n.options);
4287
4288
  return c && e.push(c), new $t(e);
4288
4289
  }
4289
- function _o(n) {
4290
+ function go(n) {
4290
4291
  const t = n ? z(n, wt) : null;
4291
4292
  return t ? [t.minValue, t.maxValue] : [void 0, void 0];
4292
4293
  }
4293
- function go(n) {
4294
- const [t, e] = _o(n);
4294
+ function wo(n) {
4295
+ const [t, e] = go(n);
4295
4296
  return [t != null ? t : 0, e != null ? e : 100];
4296
4297
  }
4297
- const wo = {
4298
+ const xo = {
4298
4299
  id: "input-number",
4299
4300
  type: "input",
4300
4301
  accept: (n, t) => {
4301
4302
  if (typeof n != "number")
4302
4303
  return null;
4303
- const e = V, s = H(t, {
4304
+ const e = L, s = H(t, {
4304
4305
  format: e.optional.function,
4305
4306
  max: e.optional.number,
4306
4307
  min: e.optional.number,
@@ -4314,7 +4315,7 @@ var Ss = { exports: {} };
4314
4315
  },
4315
4316
  binding: {
4316
4317
  reader: (n) => Mn,
4317
- constraint: (n) => fo(n.params, n.initialValue),
4318
+ constraint: (n) => _o(n.params, n.initialValue),
4318
4319
  writer: (n) => de
4319
4320
  },
4320
4321
  controller: (n) => {
@@ -4330,7 +4331,7 @@ var Ss = { exports: {} };
4330
4331
  });
4331
4332
  const c = (e = "format" in n.params ? n.params.format : void 0) !== null && e !== void 0 ? e : $(tn(l, s.rawValue));
4332
4333
  if (l && z(l, wt)) {
4333
- const [h, b] = go(l);
4334
+ const [h, b] = wo(l);
4334
4335
  return new Je(n.document, {
4335
4336
  baseStep: ve(l),
4336
4337
  parser: Tt,
@@ -4366,7 +4367,7 @@ var Ss = { exports: {} };
4366
4367
  return [this.x, this.y];
4367
4368
  }
4368
4369
  static isObject(t) {
4369
- if (M(t))
4370
+ if (S(t))
4370
4371
  return !1;
4371
4372
  const e = t.x, s = t.y;
4372
4373
  return !(typeof e != "number" || typeof s != "number");
@@ -4385,7 +4386,7 @@ var Ss = { exports: {} };
4385
4386
  toComponents: (n) => n.getComponents(),
4386
4387
  fromComponents: (n) => new fe(...n)
4387
4388
  }, sn = P("p2d");
4388
- class xo {
4389
+ class Co {
4389
4390
  constructor(t, e) {
4390
4391
  this.element = t.createElement("div"), this.element.classList.add(sn()), e.viewProps.bindClassModifiers(this.element), ot(e.expanded, X(this.element, sn(void 0, "expanded")));
4391
4392
  const s = t.createElement("div");
@@ -4401,7 +4402,7 @@ var Ss = { exports: {} };
4401
4402
  }
4402
4403
  }
4403
4404
  const _e = P("p2dp");
4404
- class Co {
4405
+ class yo {
4405
4406
  constructor(t, e) {
4406
4407
  this.onFoldableChange_ = this.onFoldableChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.invertsY_ = e.invertsY, this.maxValue_ = e.maxValue, this.element = t.createElement("div"), this.element.classList.add(_e()), e.layout === "popup" && this.element.classList.add(_e(void 0, "p"));
4407
4408
  const s = t.createElement("div");
@@ -4421,7 +4422,7 @@ var Ss = { exports: {} };
4421
4422
  return [this.padElement];
4422
4423
  }
4423
4424
  update_() {
4424
- const [t, e] = this.value.rawValue.getComponents(), s = this.maxValue_, l = K(t, -s, +s, 0, 100), c = K(e, -s, +s, 0, 100), h = this.invertsY_ ? 100 - c : c;
4425
+ const [t, e] = this.value.rawValue.getComponents(), s = this.maxValue_, l = F(t, -s, +s, 0, 100), c = F(e, -s, +s, 0, 100), h = this.invertsY_ ? 100 - c : c;
4425
4426
  this.lineElem_.setAttributeNS(null, "x2", `${l}%`), this.lineElem_.setAttributeNS(null, "y2", `${h}%`), this.markerElem_.style.left = `${l}%`, this.markerElem_.style.top = `${h}%`;
4426
4427
  }
4427
4428
  onValueChange_() {
@@ -4433,13 +4434,13 @@ var Ss = { exports: {} };
4433
4434
  }
4434
4435
  function ir(n, t, e) {
4435
4436
  return [
4436
- st(t[0], Dt(n)),
4437
- st(t[1], Et(n)) * (e ? 1 : -1)
4437
+ it(t[0], Dt(n)),
4438
+ it(t[1], Et(n)) * (e ? 1 : -1)
4438
4439
  ];
4439
4440
  }
4440
- class yo {
4441
+ class Eo {
4441
4442
  constructor(t, e) {
4442
- this.onPadKeyDown_ = this.onPadKeyDown_.bind(this), this.onPadKeyUp_ = this.onPadKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.baseSteps_ = e.baseSteps, this.maxValue_ = e.maxValue, this.invertsY_ = e.invertsY, this.view = new Co(t, {
4443
+ this.onPadKeyDown_ = this.onPadKeyDown_.bind(this), this.onPadKeyUp_ = this.onPadKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.baseSteps_ = e.baseSteps, this.maxValue_ = e.maxValue, this.invertsY_ = e.invertsY, this.view = new yo(t, {
4443
4444
  invertsY: this.invertsY_,
4444
4445
  layout: e.layout,
4445
4446
  maxValue: this.maxValue_,
@@ -4450,7 +4451,7 @@ var Ss = { exports: {} };
4450
4451
  handlePointerEvent_(t, e) {
4451
4452
  if (!t.point)
4452
4453
  return;
4453
- const s = this.maxValue_, l = K(t.point.x, 0, t.bounds.width, -s, +s), c = K(this.invertsY_ ? t.bounds.height - t.point.y : t.point.y, 0, t.bounds.height, -s, +s);
4454
+ const s = this.maxValue_, l = F(t.point.x, 0, t.bounds.width, -s, +s), c = F(this.invertsY_ ? t.bounds.height - t.point.y : t.point.y, 0, t.bounds.height, -s, +s);
4454
4455
  this.value.setRawValue(new fe(l, c), e);
4455
4456
  }
4456
4457
  onPointerDown_(t) {
@@ -4487,13 +4488,13 @@ var Ss = { exports: {} };
4487
4488
  });
4488
4489
  }
4489
4490
  }
4490
- class Eo {
4491
+ class Po {
4491
4492
  constructor(t, e) {
4492
4493
  var s, l;
4493
4494
  this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.onPadButtonBlur_ = this.onPadButtonBlur_.bind(this), this.onPadButtonClick_ = this.onPadButtonClick_.bind(this), this.value = e.value, this.viewProps = e.viewProps, this.foldable_ = Mt.create(e.expanded), this.popC_ = e.pickerLayout === "popup" ? new Pn(t, {
4494
4495
  viewProps: this.viewProps
4495
4496
  }) : null;
4496
- const c = new yo(t, {
4497
+ const c = new Eo(t, {
4497
4498
  baseSteps: [e.axes[0].baseStep, e.axes[1].baseStep],
4498
4499
  invertsY: e.invertsY,
4499
4500
  layout: e.pickerLayout,
@@ -4509,7 +4510,7 @@ var Ss = { exports: {} };
4509
4510
  parser: e.parser,
4510
4511
  value: this.value,
4511
4512
  viewProps: this.viewProps
4512
- }), this.view = new xo(t, {
4513
+ }), this.view = new Co(t, {
4513
4514
  expanded: this.foldable_.value("expanded"),
4514
4515
  pickerLayout: e.pickerLayout,
4515
4516
  viewProps: this.viewProps
@@ -4539,10 +4540,10 @@ var Ss = { exports: {} };
4539
4540
  this.popC_ ? t.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && t.key === "Escape" && this.view.buttonElement.focus();
4540
4541
  }
4541
4542
  }
4542
- function Po(n) {
4543
+ function ko(n) {
4543
4544
  return fe.isObject(n) ? new fe(n.x, n.y) : new fe();
4544
4545
  }
4545
- function ko(n, t) {
4546
+ function Vo(n, t) {
4546
4547
  n.writeProperty("x", t.x), n.writeProperty("y", t.y);
4547
4548
  }
4548
4549
  function ee(n, t) {
@@ -4553,7 +4554,7 @@ var Ss = { exports: {} };
4553
4554
  const l = er(n);
4554
4555
  return l && e.push(l), new $t(e);
4555
4556
  }
4556
- function Vo(n, t) {
4557
+ function Lo(n, t) {
4557
4558
  return new be({
4558
4559
  assembly: nr,
4559
4560
  components: [
@@ -4570,7 +4571,7 @@ var Ss = { exports: {} };
4570
4571
  const c = ve(n);
4571
4572
  return Math.max(Math.abs(c) * 10, Math.abs(t) * 10);
4572
4573
  }
4573
- function Lo(n, t) {
4574
+ function Mo(n, t) {
4574
4575
  const e = t instanceof be ? t.components[0] : void 0, s = t instanceof be ? t.components[1] : void 0, l = sr(e, n.x), c = sr(s, n.y);
4575
4576
  return Math.max(l, c);
4576
4577
  }
@@ -4584,19 +4585,19 @@ var Ss = { exports: {} };
4584
4585
  })
4585
4586
  };
4586
4587
  }
4587
- function Mo(n) {
4588
+ function So(n) {
4588
4589
  if (!("y" in n))
4589
4590
  return !1;
4590
4591
  const t = n.y;
4591
4592
  return t && "inverted" in t ? !!t.inverted : !1;
4592
4593
  }
4593
- const So = {
4594
+ const To = {
4594
4595
  id: "input-point2d",
4595
4596
  type: "input",
4596
4597
  accept: (n, t) => {
4597
4598
  if (!fe.isObject(n))
4598
4599
  return null;
4599
- const e = V, s = H(t, {
4600
+ const e = L, s = H(t, {
4600
4601
  expanded: e.optional.boolean,
4601
4602
  picker: e.optional.custom(di),
4602
4603
  x: e.optional.custom(rt),
@@ -4613,24 +4614,24 @@ var Ss = { exports: {} };
4613
4614
  } : null;
4614
4615
  },
4615
4616
  binding: {
4616
- reader: (n) => Po,
4617
- constraint: (n) => Vo(n.params, n.initialValue),
4617
+ reader: (n) => ko,
4618
+ constraint: (n) => Lo(n.params, n.initialValue),
4618
4619
  equals: fe.equals,
4619
- writer: (n) => ko
4620
+ writer: (n) => Vo
4620
4621
  },
4621
4622
  controller: (n) => {
4622
4623
  const t = n.document, e = n.value, s = n.constraint;
4623
4624
  if (!(s instanceof be))
4624
- throw L.shouldNeverHappen();
4625
+ throw M.shouldNeverHappen();
4625
4626
  const l = "expanded" in n.params ? n.params.expanded : void 0, c = "picker" in n.params ? n.params.picker : void 0;
4626
- return new Eo(t, {
4627
+ return new Po(t, {
4627
4628
  axes: [
4628
4629
  rr(e.rawValue.x, s.components[0]),
4629
4630
  rr(e.rawValue.y, s.components[1])
4630
4631
  ],
4631
4632
  expanded: l != null ? l : !1,
4632
- invertsY: Mo(n.params),
4633
- maxValue: Lo(e.rawValue, s),
4633
+ invertsY: So(n.params),
4634
+ maxValue: Mo(e.rawValue, s),
4634
4635
  parser: Tt,
4635
4636
  pickerLayout: c != null ? c : "popup",
4636
4637
  value: e,
@@ -4646,7 +4647,7 @@ var Ss = { exports: {} };
4646
4647
  return [this.x, this.y, this.z];
4647
4648
  }
4648
4649
  static isObject(t) {
4649
- if (M(t))
4650
+ if (S(t))
4650
4651
  return !1;
4651
4652
  const e = t.x, s = t.y, l = t.z;
4652
4653
  return !(typeof e != "number" || typeof s != "number" || typeof l != "number");
@@ -4666,13 +4667,13 @@ var Ss = { exports: {} };
4666
4667
  toComponents: (n) => n.getComponents(),
4667
4668
  fromComponents: (n) => new rn(...n)
4668
4669
  };
4669
- function To(n) {
4670
+ function Ao(n) {
4670
4671
  return rn.isObject(n) ? new rn(n.x, n.y, n.z) : new rn();
4671
4672
  }
4672
- function Ao(n, t) {
4673
+ function Do(n, t) {
4673
4674
  n.writeProperty("x", t.x), n.writeProperty("y", t.y), n.writeProperty("z", t.z);
4674
4675
  }
4675
- function Do(n, t) {
4676
+ function No(n, t) {
4676
4677
  return new be({
4677
4678
  assembly: or,
4678
4679
  components: [
@@ -4692,13 +4693,13 @@ var Ss = { exports: {} };
4692
4693
  })
4693
4694
  };
4694
4695
  }
4695
- const No = {
4696
+ const Oo = {
4696
4697
  id: "input-point3d",
4697
4698
  type: "input",
4698
4699
  accept: (n, t) => {
4699
4700
  if (!rn.isObject(n))
4700
4701
  return null;
4701
- const e = V, s = H(t, {
4702
+ const e = L, s = H(t, {
4702
4703
  x: e.optional.custom(rt),
4703
4704
  y: e.optional.custom(rt),
4704
4705
  z: e.optional.custom(rt)
@@ -4709,15 +4710,15 @@ var Ss = { exports: {} };
4709
4710
  } : null;
4710
4711
  },
4711
4712
  binding: {
4712
- reader: (n) => To,
4713
- constraint: (n) => Do(n.params, n.initialValue),
4713
+ reader: (n) => Ao,
4714
+ constraint: (n) => No(n.params, n.initialValue),
4714
4715
  equals: rn.equals,
4715
- writer: (n) => Ao
4716
+ writer: (n) => Do
4716
4717
  },
4717
4718
  controller: (n) => {
4718
4719
  const t = n.value, e = n.constraint;
4719
4720
  if (!(e instanceof be))
4720
- throw L.shouldNeverHappen();
4721
+ throw M.shouldNeverHappen();
4721
4722
  return new Es(n.document, {
4722
4723
  assembly: or,
4723
4724
  axes: [
@@ -4739,7 +4740,7 @@ var Ss = { exports: {} };
4739
4740
  return [this.x, this.y, this.z, this.w];
4740
4741
  }
4741
4742
  static isObject(t) {
4742
- if (M(t))
4743
+ if (S(t))
4743
4744
  return !1;
4744
4745
  const e = t.x, s = t.y, l = t.z, c = t.w;
4745
4746
  return !(typeof e != "number" || typeof s != "number" || typeof l != "number" || typeof c != "number");
@@ -4760,13 +4761,13 @@ var Ss = { exports: {} };
4760
4761
  toComponents: (n) => n.getComponents(),
4761
4762
  fromComponents: (n) => new on(...n)
4762
4763
  };
4763
- function Oo(n) {
4764
+ function Ro(n) {
4764
4765
  return on.isObject(n) ? new on(n.x, n.y, n.z, n.w) : new on();
4765
4766
  }
4766
- function Ro(n, t) {
4767
+ function zo(n, t) {
4767
4768
  n.writeProperty("x", t.x), n.writeProperty("y", t.y), n.writeProperty("z", t.z), n.writeProperty("w", t.w);
4768
4769
  }
4769
- function zo(n, t) {
4770
+ function Io(n, t) {
4770
4771
  return new be({
4771
4772
  assembly: ar,
4772
4773
  components: [
@@ -4777,7 +4778,7 @@ var Ss = { exports: {} };
4777
4778
  ]
4778
4779
  });
4779
4780
  }
4780
- function Io(n, t) {
4781
+ function jo(n, t) {
4781
4782
  return {
4782
4783
  baseStep: ve(t),
4783
4784
  constraint: t,
@@ -4787,13 +4788,13 @@ var Ss = { exports: {} };
4787
4788
  })
4788
4789
  };
4789
4790
  }
4790
- const jo = {
4791
+ const Bo = {
4791
4792
  id: "input-point4d",
4792
4793
  type: "input",
4793
4794
  accept: (n, t) => {
4794
4795
  if (!on.isObject(n))
4795
4796
  return null;
4796
- const e = V, s = H(t, {
4797
+ const e = L, s = H(t, {
4797
4798
  x: e.optional.custom(rt),
4798
4799
  y: e.optional.custom(rt),
4799
4800
  z: e.optional.custom(rt),
@@ -4805,36 +4806,36 @@ var Ss = { exports: {} };
4805
4806
  } : null;
4806
4807
  },
4807
4808
  binding: {
4808
- reader: (n) => Oo,
4809
- constraint: (n) => zo(n.params, n.initialValue),
4809
+ reader: (n) => Ro,
4810
+ constraint: (n) => Io(n.params, n.initialValue),
4810
4811
  equals: on.equals,
4811
- writer: (n) => Ro
4812
+ writer: (n) => zo
4812
4813
  },
4813
4814
  controller: (n) => {
4814
4815
  const t = n.value, e = n.constraint;
4815
4816
  if (!(e instanceof be))
4816
- throw L.shouldNeverHappen();
4817
+ throw M.shouldNeverHappen();
4817
4818
  return new Es(n.document, {
4818
4819
  assembly: ar,
4819
- axes: t.rawValue.getComponents().map((s, l) => Io(s, e.components[l])),
4820
+ axes: t.rawValue.getComponents().map((s, l) => jo(s, e.components[l])),
4820
4821
  parser: Tt,
4821
4822
  value: t,
4822
4823
  viewProps: n.viewProps
4823
4824
  });
4824
4825
  }
4825
4826
  };
4826
- function Bo(n) {
4827
+ function Ko(n) {
4827
4828
  const t = [], e = Nn(n.options);
4828
4829
  return e && t.push(e), new $t(t);
4829
4830
  }
4830
- const Ko = {
4831
+ const Fo = {
4831
4832
  id: "input-string",
4832
4833
  type: "input",
4833
4834
  accept: (n, t) => {
4834
4835
  if (typeof n != "string")
4835
4836
  return null;
4836
4837
  const s = H(t, {
4837
- options: V.optional.custom(he)
4838
+ options: L.optional.custom(he)
4838
4839
  });
4839
4840
  return s ? {
4840
4841
  initialValue: n,
@@ -4843,7 +4844,7 @@ var Ss = { exports: {} };
4843
4844
  },
4844
4845
  binding: {
4845
4846
  reader: (n) => oi,
4846
- constraint: (n) => Bo(n.params),
4847
+ constraint: (n) => Ko(n.params),
4847
4848
  writer: (n) => de
4848
4849
  },
4849
4850
  controller: (n) => {
@@ -4870,7 +4871,7 @@ var Ss = { exports: {} };
4870
4871
  defaultLineCount: 3
4871
4872
  }
4872
4873
  }, lr = P("mll");
4873
- class Fo {
4874
+ class Uo {
4874
4875
  constructor(t, e) {
4875
4876
  this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = e.formatter, this.element = t.createElement("div"), this.element.classList.add(lr()), e.viewProps.bindClassModifiers(this.element);
4876
4877
  const s = t.createElement("textarea");
@@ -4889,7 +4890,7 @@ var Ss = { exports: {} };
4889
4890
  }
4890
4891
  class ks {
4891
4892
  constructor(t, e) {
4892
- this.value = e.value, this.viewProps = e.viewProps, this.view = new Fo(t, {
4893
+ this.value = e.value, this.viewProps = e.viewProps, this.view = new Uo(t, {
4893
4894
  formatter: e.formatter,
4894
4895
  lineCount: e.lineCount,
4895
4896
  value: this.value,
@@ -4898,7 +4899,7 @@ var Ss = { exports: {} };
4898
4899
  }
4899
4900
  }
4900
4901
  const pr = P("sgl");
4901
- class Uo {
4902
+ class $o {
4902
4903
  constructor(t, e) {
4903
4904
  this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = e.formatter, this.element = t.createElement("div"), this.element.classList.add(pr()), e.viewProps.bindClassModifiers(this.element);
4904
4905
  const s = t.createElement("input");
@@ -4914,21 +4915,21 @@ var Ss = { exports: {} };
4914
4915
  }
4915
4916
  class Vs {
4916
4917
  constructor(t, e) {
4917
- this.value = e.value, this.viewProps = e.viewProps, this.view = new Uo(t, {
4918
+ this.value = e.value, this.viewProps = e.viewProps, this.view = new $o(t, {
4918
4919
  formatter: e.formatter,
4919
4920
  value: this.value,
4920
4921
  viewProps: this.viewProps
4921
4922
  });
4922
4923
  }
4923
4924
  }
4924
- const $o = {
4925
+ const Ho = {
4925
4926
  id: "monitor-bool",
4926
4927
  type: "monitor",
4927
4928
  accept: (n, t) => {
4928
4929
  if (typeof n != "boolean")
4929
4930
  return null;
4930
4931
  const s = H(t, {
4931
- lineCount: V.optional.number
4932
+ lineCount: L.optional.number
4932
4933
  });
4933
4934
  return s ? {
4934
4935
  initialValue: n,
@@ -4952,7 +4953,7 @@ var Ss = { exports: {} };
4952
4953
  });
4953
4954
  }
4954
4955
  }, ge = P("grl");
4955
- class Ho {
4956
+ class qo {
4956
4957
  constructor(t, e) {
4957
4958
  this.onCursorChange_ = this.onCursorChange_.bind(this), this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.element = t.createElement("div"), this.element.classList.add(ge()), e.viewProps.bindClassModifiers(this.element), this.formatter_ = e.formatter, this.props_ = e.props, this.cursor_ = e.cursor, this.cursor_.emitter.on("change", this.onCursorChange_);
4958
4959
  const s = t.createElementNS(vt, "svg");
@@ -4970,7 +4971,7 @@ var Ss = { exports: {} };
4970
4971
  this.value.rawValue.forEach((N, R) => {
4971
4972
  if (N === void 0)
4972
4973
  return;
4973
- const ne = K(R, 0, e, 0, t.width), Fn = K(N, s, l, t.height, 0);
4974
+ const ne = F(R, 0, e, 0, t.width), Fn = F(N, s, l, t.height, 0);
4974
4975
  c.push([ne, Fn].join(","));
4975
4976
  }), this.lineElem_.setAttributeNS(null, "points", c.join(" "));
4976
4977
  const h = this.tooltipElem_, b = this.value.rawValue[this.cursor_.rawValue];
@@ -4978,7 +4979,7 @@ var Ss = { exports: {} };
4978
4979
  h.classList.remove(ge("t", "a"));
4979
4980
  return;
4980
4981
  }
4981
- const w = K(this.cursor_.rawValue, 0, e, 0, t.width), E = K(b, s, l, t.height, 0);
4982
+ const w = F(this.cursor_.rawValue, 0, e, 0, t.width), E = F(b, s, l, t.height, 0);
4982
4983
  h.style.left = `${w}px`, h.style.top = `${E}px`, h.textContent = `${this.formatter_(b)}`, h.classList.contains(ge("t", "a")) || (h.classList.add(ge("t", "a"), ge("t", "in")), Gt(h), h.classList.remove(ge("t", "in")));
4983
4984
  }
4984
4985
  onValueUpdate_() {
@@ -4988,9 +4989,9 @@ var Ss = { exports: {} };
4988
4989
  this.update_();
4989
4990
  }
4990
4991
  }
4991
- class qo {
4992
+ class Go {
4992
4993
  constructor(t, e) {
4993
- if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props_ = e.props, this.value = e.value, this.viewProps = e.viewProps, this.cursor_ = O(-1), this.view = new Ho(t, {
4994
+ if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props_ = e.props, this.value = e.value, this.viewProps = e.viewProps, this.cursor_ = O(-1), this.view = new qo(t, {
4994
4995
  cursor: this.cursor_,
4995
4996
  formatter: e.formatter,
4996
4997
  lineCount: e.lineCount,
@@ -5009,7 +5010,7 @@ var Ss = { exports: {} };
5009
5010
  }
5010
5011
  onGraphMouseMove_(t) {
5011
5012
  const e = this.view.element.getBoundingClientRect();
5012
- this.cursor_.rawValue = Math.floor(K(t.offsetX, 0, e.width, 0, this.value.rawValue.length));
5013
+ this.cursor_.rawValue = Math.floor(F(t.offsetX, 0, e.width, 0, this.value.rawValue.length));
5013
5014
  }
5014
5015
  onGraphPointerDown_(t) {
5015
5016
  this.onGraphPointerMove_(t);
@@ -5019,16 +5020,16 @@ var Ss = { exports: {} };
5019
5020
  this.cursor_.rawValue = -1;
5020
5021
  return;
5021
5022
  }
5022
- this.cursor_.rawValue = Math.floor(K(t.data.point.x, 0, t.data.bounds.width, 0, this.value.rawValue.length));
5023
+ this.cursor_.rawValue = Math.floor(F(t.data.point.x, 0, t.data.bounds.width, 0, this.value.rawValue.length));
5023
5024
  }
5024
5025
  onGraphPointerUp_() {
5025
5026
  this.cursor_.rawValue = -1;
5026
5027
  }
5027
5028
  }
5028
5029
  function Ls(n) {
5029
- return "format" in n && !M(n.format) ? n.format : $(2);
5030
+ return "format" in n && !S(n.format) ? n.format : $(2);
5030
5031
  }
5031
- function Go(n) {
5032
+ function Yo(n) {
5032
5033
  var t;
5033
5034
  return n.value.rawValue.length === 1 ? new Vs(n.document, {
5034
5035
  formatter: Ls(n.params),
@@ -5041,9 +5042,9 @@ var Ss = { exports: {} };
5041
5042
  viewProps: n.viewProps
5042
5043
  });
5043
5044
  }
5044
- function Yo(n) {
5045
+ function Xo(n) {
5045
5046
  var t, e, s;
5046
- return new qo(n.document, {
5047
+ return new Go(n.document, {
5047
5048
  formatter: Ls(n.params),
5048
5049
  lineCount: (t = n.params.lineCount) !== null && t !== void 0 ? t : Kn.monitor.defaultLineCount,
5049
5050
  props: C.fromObject({
@@ -5057,13 +5058,13 @@ var Ss = { exports: {} };
5057
5058
  function cr(n) {
5058
5059
  return "view" in n && n.view === "graph";
5059
5060
  }
5060
- const Xo = {
5061
+ const Zo = {
5061
5062
  id: "monitor-number",
5062
5063
  type: "monitor",
5063
5064
  accept: (n, t) => {
5064
5065
  if (typeof n != "number")
5065
5066
  return null;
5066
- const e = V, s = H(t, {
5067
+ const e = L, s = H(t, {
5067
5068
  format: e.optional.function,
5068
5069
  lineCount: e.optional.number,
5069
5070
  max: e.optional.number,
@@ -5079,14 +5080,14 @@ var Ss = { exports: {} };
5079
5080
  defaultBufferSize: (n) => cr(n) ? 64 : 1,
5080
5081
  reader: (n) => Mn
5081
5082
  },
5082
- controller: (n) => cr(n.params) ? Yo(n) : Go(n)
5083
- }, Zo = {
5083
+ controller: (n) => cr(n.params) ? Xo(n) : Yo(n)
5084
+ }, Wo = {
5084
5085
  id: "monitor-string",
5085
5086
  type: "monitor",
5086
5087
  accept: (n, t) => {
5087
5088
  if (typeof n != "string")
5088
5089
  return null;
5089
- const e = V, s = H(t, {
5090
+ const e = L, s = H(t, {
5090
5091
  lineCount: e.optional.number,
5091
5092
  multiline: e.optional.boolean
5092
5093
  });
@@ -5113,7 +5114,7 @@ var Ss = { exports: {} };
5113
5114
  });
5114
5115
  }
5115
5116
  };
5116
- class Wo {
5117
+ class Qo {
5117
5118
  constructor(t) {
5118
5119
  this.onValueChange_ = this.onValueChange_.bind(this), this.reader = t.reader, this.writer = t.writer, this.emitter = new I(), this.value = t.value, this.value.emitter.on("change", this.onValueChange_), this.target = t.target, this.read();
5119
5120
  }
@@ -5132,18 +5133,18 @@ var Ss = { exports: {} };
5132
5133
  });
5133
5134
  }
5134
5135
  }
5135
- function Qo(n, t) {
5136
+ function Jo(n, t) {
5136
5137
  const e = n.accept(t.target.read(), t.params);
5137
- if (M(e))
5138
+ if (S(e))
5138
5139
  return null;
5139
- const s = V, l = {
5140
+ const s = L, l = {
5140
5141
  target: t.target,
5141
5142
  initialValue: e.initialValue,
5142
5143
  params: e.params
5143
5144
  }, c = n.binding.reader(l), h = n.binding.constraint ? n.binding.constraint(l) : void 0, b = O(c(e.initialValue), {
5144
5145
  constraint: h,
5145
5146
  equals: n.binding.equals
5146
- }), w = new Wo({
5147
+ }), w = new Qo({
5147
5148
  reader: c,
5148
5149
  target: t.target,
5149
5150
  value: b,
@@ -5168,7 +5169,7 @@ var Ss = { exports: {} };
5168
5169
  valueController: R
5169
5170
  });
5170
5171
  }
5171
- class Jo {
5172
+ class ta {
5172
5173
  constructor(t) {
5173
5174
  this.onTick_ = this.onTick_.bind(this), this.reader_ = t.reader, this.target = t.target, this.emitter = new I(), this.value = t.value, this.ticker = t.ticker, this.ticker.emitter.on("tick", this.onTick_), this.read();
5174
5175
  }
@@ -5189,22 +5190,22 @@ var Ss = { exports: {} };
5189
5190
  this.read();
5190
5191
  }
5191
5192
  }
5192
- function ta(n, t) {
5193
+ function ea(n, t) {
5193
5194
  return t === 0 ? new Wn() : new yn(n, t != null ? t : Kn.monitor.defaultInterval);
5194
5195
  }
5195
- function ea(n, t) {
5196
+ function na(n, t) {
5196
5197
  var e, s, l;
5197
- const c = V, h = n.accept(t.target.read(), t.params);
5198
- if (M(h))
5198
+ const c = L, h = n.accept(t.target.read(), t.params);
5199
+ if (S(h))
5199
5200
  return null;
5200
5201
  const b = {
5201
5202
  target: t.target,
5202
5203
  initialValue: h.initialValue,
5203
5204
  params: h.params
5204
- }, w = n.binding.reader(b), E = (s = (e = c.optional.number(t.params.bufferSize).value) !== null && e !== void 0 ? e : n.binding.defaultBufferSize && n.binding.defaultBufferSize(h.params)) !== null && s !== void 0 ? s : 1, N = c.optional.number(t.params.interval).value, R = new Jo({
5205
+ }, w = n.binding.reader(b), E = (s = (e = c.optional.number(t.params.bufferSize).value) !== null && e !== void 0 ? e : n.binding.defaultBufferSize && n.binding.defaultBufferSize(h.params)) !== null && s !== void 0 ? s : 1, N = c.optional.number(t.params.interval).value, R = new ta({
5205
5206
  reader: w,
5206
5207
  target: t.target,
5207
- ticker: ta(t.document, N),
5208
+ ticker: ea(t.document, N),
5208
5209
  value: ns(E)
5209
5210
  }), ne = c.optional.boolean(t.params.disabled).value, Fn = c.optional.boolean(t.params.hidden).value, Un = n.controller({
5210
5211
  document: t.document,
@@ -5224,7 +5225,7 @@ var Ss = { exports: {} };
5224
5225
  valueController: Un
5225
5226
  });
5226
5227
  }
5227
- class na {
5228
+ class ia {
5228
5229
  constructor() {
5229
5230
  this.pluginsMap_ = {
5230
5231
  blades: [],
@@ -5244,21 +5245,21 @@ var Ss = { exports: {} };
5244
5245
  }
5245
5246
  createInput(t, e, s) {
5246
5247
  const l = e.read();
5247
- if (M(l))
5248
- throw new L({
5248
+ if (S(l))
5249
+ throw new M({
5249
5250
  context: {
5250
5251
  key: e.key
5251
5252
  },
5252
5253
  type: "nomatchingcontroller"
5253
5254
  });
5254
- const c = this.pluginsMap_.inputs.reduce((h, b) => h != null ? h : Qo(b, {
5255
+ const c = this.pluginsMap_.inputs.reduce((h, b) => h != null ? h : Jo(b, {
5255
5256
  document: t,
5256
5257
  target: e,
5257
5258
  params: s
5258
5259
  }), null);
5259
5260
  if (c)
5260
5261
  return c;
5261
- throw new L({
5262
+ throw new M({
5262
5263
  context: {
5263
5264
  key: e.key
5264
5265
  },
@@ -5266,14 +5267,14 @@ var Ss = { exports: {} };
5266
5267
  });
5267
5268
  }
5268
5269
  createMonitor(t, e, s) {
5269
- const l = this.pluginsMap_.monitors.reduce((c, h) => c != null ? c : ea(h, {
5270
+ const l = this.pluginsMap_.monitors.reduce((c, h) => c != null ? c : na(h, {
5270
5271
  document: t,
5271
5272
  params: s,
5272
5273
  target: e
5273
5274
  }), null);
5274
5275
  if (l)
5275
5276
  return l;
5276
- throw new L({
5277
+ throw new M({
5277
5278
  context: {
5278
5279
  key: e.key
5279
5280
  },
@@ -5286,7 +5287,7 @@ var Ss = { exports: {} };
5286
5287
  params: e
5287
5288
  }), null);
5288
5289
  if (!s)
5289
- throw new L({
5290
+ throw new M({
5290
5291
  type: "nomatchingview",
5291
5292
  context: {
5292
5293
  params: e
@@ -5306,25 +5307,25 @@ var Ss = { exports: {} };
5306
5307
  pool: this
5307
5308
  }), null);
5308
5309
  if (!e)
5309
- throw L.shouldNeverHappen();
5310
+ throw M.shouldNeverHappen();
5310
5311
  return e;
5311
5312
  }
5312
5313
  }
5313
- function ia() {
5314
- const n = new na();
5314
+ function sa() {
5315
+ const n = new ia();
5315
5316
  return [
5316
- So,
5317
- No,
5318
- jo,
5319
- Ko,
5320
- wo,
5317
+ To,
5318
+ Oo,
5319
+ Bo,
5320
+ Fo,
5321
+ xo,
5322
+ mo,
5321
5323
  vo,
5322
- ho,
5323
- lo,
5324
+ po,
5324
5325
  ps,
5325
- $o,
5326
+ Ho,
5327
+ Wo,
5326
5328
  Zo,
5327
- Xo,
5328
5329
  re,
5329
5330
  Pi,
5330
5331
  Gn,
@@ -5333,7 +5334,7 @@ var Ss = { exports: {} };
5333
5334
  n.register(t);
5334
5335
  }), n;
5335
5336
  }
5336
- class ur extends F {
5337
+ class ur extends j {
5337
5338
  constructor(t) {
5338
5339
  super(t), this.emitter_ = new I(), this.controller_.valueController.value.emitter.on("change", (e) => {
5339
5340
  this.emitter_.emit("change", {
@@ -5366,7 +5367,7 @@ var Ss = { exports: {} };
5366
5367
  }), this;
5367
5368
  }
5368
5369
  }
5369
- class dr extends F {
5370
+ class dr extends j {
5370
5371
  constructor(t) {
5371
5372
  super(t), this.emitter_ = new I(), this.controller_.valueController.value.emitter.on("change", (e) => {
5372
5373
  this.emitter_.emit("change", {
@@ -5405,7 +5406,7 @@ var Ss = { exports: {} };
5405
5406
  }), this;
5406
5407
  }
5407
5408
  }
5408
- class hr extends F {
5409
+ class hr extends j {
5409
5410
  constructor(t) {
5410
5411
  super(t), this.emitter_ = new I(), this.controller_.valueController.value.emitter.on("change", (e) => {
5411
5412
  this.emitter_.emit("change", {
@@ -5438,12 +5439,12 @@ var Ss = { exports: {} };
5438
5439
  }), this;
5439
5440
  }
5440
5441
  }
5441
- const sa = function() {
5442
+ const ra = function() {
5442
5443
  return {
5443
5444
  id: "list",
5444
5445
  type: "blade",
5445
5446
  accept(n) {
5446
- const t = V, e = H(n, {
5447
+ const t = L, e = H(n, {
5447
5448
  options: t.required.custom(he),
5448
5449
  value: t.required.raw,
5449
5450
  view: t.required.constant("list"),
@@ -5472,18 +5473,18 @@ var Ss = { exports: {} };
5472
5473
  }
5473
5474
  };
5474
5475
  }();
5475
- function ra(n) {
5476
+ function oa(n) {
5476
5477
  return n.reduce((t, e) => Object.assign(t, {
5477
5478
  [e.presetKey]: e.read()
5478
5479
  }), {});
5479
5480
  }
5480
- function oa(n, t) {
5481
+ function aa(n, t) {
5481
5482
  n.forEach((e) => {
5482
5483
  const s = t[e.presetKey];
5483
5484
  s !== void 0 && e.write(s);
5484
5485
  });
5485
5486
  }
5486
- class aa extends bn {
5487
+ class la extends bn {
5487
5488
  constructor(t, e) {
5488
5489
  super(t, e);
5489
5490
  }
@@ -5492,11 +5493,11 @@ var Ss = { exports: {} };
5492
5493
  }
5493
5494
  importPreset(t) {
5494
5495
  const e = this.controller_.rackController.rack.find(ft).map((s) => s.binding.target);
5495
- oa(e, t), this.refresh();
5496
+ aa(e, t), this.refresh();
5496
5497
  }
5497
5498
  exportPreset() {
5498
5499
  const t = this.controller_.rackController.rack.find(ft).map((e) => e.binding.target);
5499
- return ra(t);
5500
+ return oa(t);
5500
5501
  }
5501
5502
  refresh() {
5502
5503
  this.controller_.rackController.rack.find(ft).forEach((t) => {
@@ -5506,7 +5507,7 @@ var Ss = { exports: {} };
5506
5507
  });
5507
5508
  }
5508
5509
  }
5509
- class la extends gn {
5510
+ class pa extends gn {
5510
5511
  constructor(t, e) {
5511
5512
  super(t, {
5512
5513
  expanded: e.expanded,
@@ -5517,11 +5518,11 @@ var Ss = { exports: {} };
5517
5518
  });
5518
5519
  }
5519
5520
  }
5520
- const pa = {
5521
+ const ca = {
5521
5522
  id: "slider",
5522
5523
  type: "blade",
5523
5524
  accept(n) {
5524
- const t = V, e = H(n, {
5525
+ const t = L, e = H(n, {
5525
5526
  max: t.required.number,
5526
5527
  min: t.required.number,
5527
5528
  view: t.required.constant("slider"),
@@ -5558,12 +5559,12 @@ var Ss = { exports: {} };
5558
5559
  api(n) {
5559
5560
  return !(n.controller instanceof ae) || !(n.controller.valueController instanceof Je) ? null : new dr(n.controller);
5560
5561
  }
5561
- }, ca = function() {
5562
+ }, ua = function() {
5562
5563
  return {
5563
5564
  id: "text",
5564
5565
  type: "blade",
5565
5566
  accept(n) {
5566
- const t = V, e = H(n, {
5567
+ const t = L, e = H(n, {
5567
5568
  parse: t.required.function,
5568
5569
  value: t.required.raw,
5569
5570
  view: t.required.constant("text"),
@@ -5595,7 +5596,7 @@ var Ss = { exports: {} };
5595
5596
  }
5596
5597
  };
5597
5598
  }();
5598
- function ua(n) {
5599
+ function da(n) {
5599
5600
  const t = n.createElement("div");
5600
5601
  return t.classList.add(P("dfw")()), n.body && n.body.appendChild(t), t;
5601
5602
  }
@@ -5605,10 +5606,10 @@ var Ss = { exports: {} };
5605
5606
  const s = n.createElement("style");
5606
5607
  s.dataset.tpStyle = t, s.textContent = e, n.head.appendChild(s);
5607
5608
  }
5608
- class da extends aa {
5609
+ class ha extends la {
5609
5610
  constructor(t) {
5610
5611
  var e, s;
5611
- const l = t != null ? t : {}, c = (e = l.document) !== null && e !== void 0 ? e : hn(), h = ia(), b = new la(c, {
5612
+ const l = t != null ? t : {}, c = (e = l.document) !== null && e !== void 0 ? e : hn(), h = sa(), b = new pa(c, {
5612
5613
  expanded: l.expanded,
5613
5614
  blade: Lt(),
5614
5615
  props: C.fromObject({
@@ -5616,17 +5617,17 @@ var Ss = { exports: {} };
5616
5617
  }),
5617
5618
  viewProps: Ut.create()
5618
5619
  });
5619
- super(b, h), this.pool_ = h, this.containerElem_ = (s = l.container) !== null && s !== void 0 ? s : ua(c), this.containerElem_.appendChild(this.element), this.doc_ = c, this.usesDefaultWrapper_ = !l.container, this.setUpDefaultPlugins_();
5620
+ super(b, h), this.pool_ = h, this.containerElem_ = (s = l.container) !== null && s !== void 0 ? s : da(c), this.containerElem_.appendChild(this.element), this.doc_ = c, this.usesDefaultWrapper_ = !l.container, this.setUpDefaultPlugins_();
5620
5621
  }
5621
5622
  get document() {
5622
5623
  if (!this.doc_)
5623
- throw L.alreadyDisposed();
5624
+ throw M.alreadyDisposed();
5624
5625
  return this.doc_;
5625
5626
  }
5626
5627
  dispose() {
5627
5628
  const t = this.containerElem_;
5628
5629
  if (!t)
5629
- throw L.alreadyDisposed();
5630
+ throw M.alreadyDisposed();
5630
5631
  if (this.usesDefaultWrapper_) {
5631
5632
  const e = t.parentElement;
5632
5633
  e && e.removeChild(t);
@@ -5646,23 +5647,23 @@ var Ss = { exports: {} };
5646
5647
  this.embedPluginStyle_(t);
5647
5648
  }), this.registerPlugin({
5648
5649
  plugins: [
5649
- pa,
5650
- sa,
5650
+ ca,
5651
+ ra,
5651
5652
  Cn,
5652
- ca
5653
+ ua
5653
5654
  ]
5654
5655
  });
5655
5656
  }
5656
5657
  }
5657
- const ha = new u("3.1.0");
5658
- T.BladeApi = F, T.ButtonApi = J, T.FolderApi = bn, T.InputBindingApi = pt, T.ListApi = ur, T.MonitorBindingApi = Zt, T.Pane = da, T.SeparatorApi = wn, T.SliderApi = dr, T.TabApi = Xn, T.TabPageApi = xn, T.TextApi = hr, T.TpChangeEvent = kt, T.VERSION = ha, Object.defineProperty(T, "__esModule", { value: !0 });
5658
+ const va = new u("3.1.0");
5659
+ V.BladeApi = j, V.ButtonApi = J, V.FolderApi = bn, V.InputBindingApi = pt, V.ListApi = ur, V.MonitorBindingApi = Zt, V.Pane = ha, V.SeparatorApi = wn, V.SliderApi = dr, V.TabApi = Xn, V.TabPageApi = xn, V.TextApi = hr, V.TpChangeEvent = kt, V.VERSION = va, Object.defineProperty(V, "__esModule", { value: !0 });
5659
5660
  });
5660
5661
  })(Ss, Ss.exports);
5661
5662
  var fi = { exports: {} };
5662
5663
  (function(G, U) {
5663
- (function(T, u) {
5664
+ (function(V, u) {
5664
5665
  u(U);
5665
- })(gr, function(T) {
5666
+ })(wr, function(V) {
5666
5667
  class u {
5667
5668
  constructor(i) {
5668
5669
  this.controller_ = i;
@@ -5686,12 +5687,12 @@ var fi = { exports: {} };
5686
5687
  this.controller_.viewProps.set("disposed", !0);
5687
5688
  }
5688
5689
  }
5689
- class F {
5690
+ class j {
5690
5691
  constructor(i) {
5691
5692
  this.target = i;
5692
5693
  }
5693
5694
  }
5694
- class et extends F {
5695
+ class st extends j {
5695
5696
  constructor(i, r, a, p) {
5696
5697
  super(i), this.value = r, this.presetKey = a, this.last = p != null ? p : !0;
5697
5698
  }
@@ -5702,7 +5703,7 @@ var fi = { exports: {} };
5702
5703
  function y(o) {
5703
5704
  return o == null;
5704
5705
  }
5705
- const j = {
5706
+ const B = {
5706
5707
  alreadydisposed: () => "View has been already disposed",
5707
5708
  invalidparams: (o) => `Invalid parameters for '${o.name}'`,
5708
5709
  nomatchingcontroller: (o) => `No matching controller for '${o.key}'`,
@@ -5714,7 +5715,7 @@ var fi = { exports: {} };
5714
5715
  class Vt {
5715
5716
  constructor(i) {
5716
5717
  var r;
5717
- this.message = (r = j[i.type](i.context)) !== null && r !== void 0 ? r : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = i.type;
5718
+ this.message = (r = B[i.type](i.context)) !== null && r !== void 0 ? r : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = i.type;
5718
5719
  }
5719
5720
  static alreadyDisposed() {
5720
5721
  return new Vt({ type: "alreadydisposed" });
@@ -5757,10 +5758,10 @@ var fi = { exports: {} };
5757
5758
  });
5758
5759
  }
5759
5760
  }
5760
- const M = "tp";
5761
- function B(o) {
5761
+ const S = "tp";
5762
+ function K(o) {
5762
5763
  return (r, a) => [
5763
- M,
5764
+ S,
5764
5765
  "-",
5765
5766
  o,
5766
5767
  "v",
@@ -5771,14 +5772,14 @@ var fi = { exports: {} };
5771
5772
  function Rt(o, i) {
5772
5773
  return (r) => i(o(r));
5773
5774
  }
5774
- function L(o) {
5775
+ function M(o) {
5775
5776
  return o.rawValue;
5776
5777
  }
5777
- function nt(o, i) {
5778
- o.emitter.on("change", Rt(L, i)), i(o.rawValue);
5778
+ function et(o, i) {
5779
+ o.emitter.on("change", Rt(M, i)), i(o.rawValue);
5779
5780
  }
5780
5781
  function J(o, i, r) {
5781
- nt(o.value(i), r);
5782
+ et(o.value(i), r);
5782
5783
  }
5783
5784
  function I(o, i, r) {
5784
5785
  r ? o.classList.add(i) : o.classList.remove(i);
@@ -5789,11 +5790,11 @@ var fi = { exports: {} };
5789
5790
  };
5790
5791
  }
5791
5792
  function P(o, i) {
5792
- nt(o, (r) => {
5793
+ et(o, (r) => {
5793
5794
  i.textContent = r != null ? r : "";
5794
5795
  });
5795
5796
  }
5796
- const xt = B("btn");
5797
+ const xt = K("btn");
5797
5798
  class zt {
5798
5799
  constructor(i, r) {
5799
5800
  this.element = i.createElement("div"), this.element.classList.add(xt()), r.viewProps.bindClassModifiers(this.element);
@@ -5984,7 +5985,7 @@ var fi = { exports: {} };
5984
5985
  function Fe() {
5985
5986
  return ["veryfirst", "first", "last", "verylast"];
5986
5987
  }
5987
- const Ue = B(""), at = {
5988
+ const Ue = K(""), at = {
5988
5989
  veryfirst: "vfst",
5989
5990
  first: "fst",
5990
5991
  last: "lst",
@@ -6008,7 +6009,7 @@ var fi = { exports: {} };
6008
6009
  return this.parent_;
6009
6010
  }
6010
6011
  }
6011
- const V = "http://www.w3.org/2000/svg";
6012
+ const L = "http://www.w3.org/2000/svg";
6012
6013
  function H(o) {
6013
6014
  o.offsetHeight;
6014
6015
  }
@@ -6026,7 +6027,7 @@ var fi = { exports: {} };
6026
6027
  function ke(o) {
6027
6028
  return o.relatedTarget ? o.relatedTarget : "explicitOriginalTarget" in o ? o.explicitOriginalTarget : null;
6028
6029
  }
6029
- const ht = B("lbl");
6030
+ const ht = K("lbl");
6030
6031
  function vt(o, i) {
6031
6032
  const r = o.createDocumentFragment();
6032
6033
  return i.split(`
@@ -6116,7 +6117,7 @@ var fi = { exports: {} };
6116
6117
  }
6117
6118
  class Xt {
6118
6119
  constructor(i, r) {
6119
- const a = B(r.viewName);
6120
+ const a = K(r.viewName);
6120
6121
  this.element = i.createElement("div"), this.element.classList.add(a()), r.viewProps.bindClassModifiers(this.element);
6121
6122
  }
6122
6123
  }
@@ -6129,7 +6130,7 @@ var fi = { exports: {} };
6129
6130
  }), viewProps: a })), this.props = r.props, this.valueController = r.valueController, this.view.valueElement.appendChild(this.valueController.view.element);
6130
6131
  }
6131
6132
  }
6132
- const He = B("");
6133
+ const He = K("");
6133
6134
  function qe(o, i) {
6134
6135
  return ut(o, He(void 0, i));
6135
6136
  }
@@ -6244,10 +6245,10 @@ var fi = { exports: {} };
6244
6245
  return r + a * this.step;
6245
6246
  }
6246
6247
  }
6247
- const Lt = B("pop");
6248
+ const Lt = K("pop");
6248
6249
  class Mt {
6249
6250
  constructor(i, r) {
6250
- this.element = i.createElement("div"), this.element.classList.add(Lt()), r.viewProps.bindClassModifiers(this.element), nt(r.shows, ut(this.element, Lt(void 0, "v")));
6251
+ this.element = i.createElement("div"), this.element.classList.add(Lt()), r.viewProps.bindClassModifiers(this.element), et(r.shows, ut(this.element, Lt(void 0, "v")));
6251
6252
  }
6252
6253
  }
6253
6254
  class v {
@@ -6258,7 +6259,7 @@ var fi = { exports: {} };
6258
6259
  });
6259
6260
  }
6260
6261
  }
6261
- const f = B("txt");
6262
+ const f = K("txt");
6262
6263
  class x {
6263
6264
  constructor(i, r) {
6264
6265
  this.onChange_ = this.onChange_.bind(this), this.element = i.createElement("div"), this.element.classList.add(f()), r.viewProps.bindClassModifiers(this.element), this.props_ = r.props, this.props_.emitter.on("change", this.onChange_);
@@ -6273,7 +6274,7 @@ var fi = { exports: {} };
6273
6274
  this.refresh();
6274
6275
  }
6275
6276
  }
6276
- class S {
6277
+ class T {
6277
6278
  constructor(i, r) {
6278
6279
  this.onInputChange_ = this.onInputChange_.bind(this), this.parser_ = r.parser, this.props = r.props, this.value = r.value, this.viewProps = r.viewProps, this.view = new x(i, {
6279
6280
  props: r.props,
@@ -6751,29 +6752,29 @@ var fi = { exports: {} };
6751
6752
  function wt(o, i, r) {
6752
6753
  return Math.min(Math.max(o, i), r);
6753
6754
  }
6754
- const it = B("txt");
6755
+ const nt = K("txt");
6755
6756
  class En {
6756
6757
  constructor(i, r) {
6757
- this.onChange_ = this.onChange_.bind(this), this.props_ = r.props, this.props_.emitter.on("change", this.onChange_), this.element = i.createElement("div"), this.element.classList.add(it(), it(void 0, "num")), r.arrayPosition && this.element.classList.add(it(void 0, r.arrayPosition)), r.viewProps.bindClassModifiers(this.element);
6758
+ this.onChange_ = this.onChange_.bind(this), this.props_ = r.props, this.props_.emitter.on("change", this.onChange_), this.element = i.createElement("div"), this.element.classList.add(nt(), nt(void 0, "num")), r.arrayPosition && this.element.classList.add(nt(void 0, r.arrayPosition)), r.viewProps.bindClassModifiers(this.element);
6758
6759
  const a = i.createElement("input");
6759
- a.classList.add(it("i")), a.type = "text", r.viewProps.bindDisabled(a), this.element.appendChild(a), this.inputElement = a, this.onDraggingChange_ = this.onDraggingChange_.bind(this), this.dragging_ = r.dragging, this.dragging_.emitter.on("change", this.onDraggingChange_), this.element.classList.add(it()), this.inputElement.classList.add(it("i"));
6760
+ a.classList.add(nt("i")), a.type = "text", r.viewProps.bindDisabled(a), this.element.appendChild(a), this.inputElement = a, this.onDraggingChange_ = this.onDraggingChange_.bind(this), this.dragging_ = r.dragging, this.dragging_.emitter.on("change", this.onDraggingChange_), this.element.classList.add(nt()), this.inputElement.classList.add(nt("i"));
6760
6761
  const p = i.createElement("div");
6761
- p.classList.add(it("k")), this.element.appendChild(p), this.knobElement = p;
6762
- const d = i.createElementNS(V, "svg");
6763
- d.classList.add(it("g")), this.knobElement.appendChild(d);
6764
- const m = i.createElementNS(V, "path");
6765
- m.classList.add(it("gb")), d.appendChild(m), this.guideBodyElem_ = m;
6766
- const _ = i.createElementNS(V, "path");
6767
- _.classList.add(it("gh")), d.appendChild(_), this.guideHeadElem_ = _;
6762
+ p.classList.add(nt("k")), this.element.appendChild(p), this.knobElement = p;
6763
+ const d = i.createElementNS(L, "svg");
6764
+ d.classList.add(nt("g")), this.knobElement.appendChild(d);
6765
+ const m = i.createElementNS(L, "path");
6766
+ m.classList.add(nt("gb")), d.appendChild(m), this.guideBodyElem_ = m;
6767
+ const _ = i.createElementNS(L, "path");
6768
+ _.classList.add(nt("gh")), d.appendChild(_), this.guideHeadElem_ = _;
6768
6769
  const g = i.createElement("div");
6769
- g.classList.add(B("tt")()), this.knobElement.appendChild(g), this.tooltipElem_ = g, r.value.emitter.on("change", this.onChange_), this.value = r.value, this.refresh();
6770
+ g.classList.add(K("tt")()), this.knobElement.appendChild(g), this.tooltipElem_ = g, r.value.emitter.on("change", this.onChange_), this.value = r.value, this.refresh();
6770
6771
  }
6771
6772
  onDraggingChange_(i) {
6772
6773
  if (i.rawValue === null) {
6773
- this.element.classList.remove(it(void 0, "drg"));
6774
+ this.element.classList.remove(nt(void 0, "drg"));
6774
6775
  return;
6775
6776
  }
6776
- this.element.classList.add(it(void 0, "drg"));
6777
+ this.element.classList.add(nt(void 0, "drg"));
6777
6778
  const r = i.rawValue / this.props_.get("draggingScale"), a = r + (r > 0 ? -1 : r < 0 ? 1 : 0), p = wt(-a, -4, 4);
6778
6779
  this.guideHeadElem_.setAttributeNS(null, "d", [`M ${a + p},0 L${a},4 L${a + p},8`, `M ${r},-1 L${r},9`].join(" ")), this.guideBodyElem_.setAttributeNS(null, "d", `M 0,4 L${r},4`);
6779
6780
  const d = this.props_.get("formatter");
@@ -6983,7 +6984,7 @@ var fi = { exports: {} };
6983
6984
  return this.asm_.fromComponents(r);
6984
6985
  }
6985
6986
  }
6986
- const We = B("pndtxt");
6987
+ const We = K("pndtxt");
6987
6988
  class ni {
6988
6989
  constructor(i, r) {
6989
6990
  this.textViews = r.textViews, this.element = i.createElement("div"), this.element.classList.add(We()), this.textViews.forEach((a) => {
@@ -7035,16 +7036,16 @@ var fi = { exports: {} };
7035
7036
  defaultInterval: 200,
7036
7037
  defaultLineCount: 3
7037
7038
  }
7038
- }, Ht = B("grl");
7039
+ }, Ht = K("grl");
7039
7040
  class Hi {
7040
7041
  constructor(i, r) {
7041
7042
  this.onCursorChange_ = this.onCursorChange_.bind(this), this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.element = i.createElement("div"), this.element.classList.add(Ht()), r.viewProps.bindClassModifiers(this.element), this.formatter_ = r.formatter, this.props_ = r.props, this.cursor_ = r.cursor, this.cursor_.emitter.on("change", this.onCursorChange_);
7042
- const a = i.createElementNS(V, "svg");
7043
+ const a = i.createElementNS(L, "svg");
7043
7044
  a.classList.add(Ht("g")), a.style.height = `calc(var(--bld-us) * ${r.lineCount})`, this.element.appendChild(a), this.svgElem_ = a;
7044
- const p = i.createElementNS(V, "polyline");
7045
+ const p = i.createElementNS(L, "polyline");
7045
7046
  this.svgElem_.appendChild(p), this.lineElem_ = p;
7046
7047
  const d = i.createElement("div");
7047
- d.classList.add(Ht("t"), B("tt")()), this.element.appendChild(d), this.tooltipElem_ = d, r.value.emitter.on("change", this.onValueUpdate_), this.value = r.value, this.update_();
7048
+ d.classList.add(Ht("t"), K("tt")()), this.element.appendChild(d), this.tooltipElem_ = d, r.value.emitter.on("change", this.onValueUpdate_), this.value = r.value, this.update_();
7048
7049
  }
7049
7050
  get graphElement() {
7050
7051
  return this.svgElem_;
@@ -7129,11 +7130,11 @@ var fi = { exports: {} };
7129
7130
  on(i, r) {
7130
7131
  const a = r.bind(this);
7131
7132
  return this.controller_.emitter.on(i, () => {
7132
- a(new F(this));
7133
+ a(new j(this));
7133
7134
  }), this;
7134
7135
  }
7135
7136
  }
7136
- class Yi extends F {
7137
+ class Yi extends j {
7137
7138
  constructor(i, r, a) {
7138
7139
  super(i), this.cell = r, this.index = a;
7139
7140
  }
@@ -7235,7 +7236,7 @@ var fi = { exports: {} };
7235
7236
  on(i, r) {
7236
7237
  const a = r.bind(this);
7237
7238
  return this.controller_.valueController.value.emitter.on(i, (p) => {
7238
- a(new et(this, p.rawValue, void 0, p.options.last));
7239
+ a(new st(this, p.rawValue, void 0, p.options.last));
7239
7240
  }), this;
7240
7241
  }
7241
7242
  }
@@ -7312,7 +7313,7 @@ var fi = { exports: {} };
7312
7313
  }, []);
7313
7314
  return new St(...r != null ? r : Mn);
7314
7315
  }
7315
- const $ = B("cbz");
7316
+ const $ = K("cbz");
7316
7317
  class es {
7317
7318
  constructor(i, r) {
7318
7319
  this.element = i.createElement("div"), this.element.classList.add($()), r.viewProps.bindClassModifiers(this.element), r.foldable.bindExpandedClass(this.element, $(void 0, "expanded")), J(r.foldable, "completed", ut(this.element, $(void 0, "cpl")));
@@ -7320,7 +7321,7 @@ var fi = { exports: {} };
7320
7321
  a.classList.add($("h")), this.element.appendChild(a);
7321
7322
  const p = i.createElement("button");
7322
7323
  p.classList.add($("b")), r.viewProps.bindDisabled(p);
7323
- const d = i.createElementNS(V, "svg");
7324
+ const d = i.createElementNS(L, "svg");
7324
7325
  d.innerHTML = '<path d="M2 13C8 13 8 3 14 3"/>', p.appendChild(d), a.appendChild(p), this.buttonElement = p;
7325
7326
  const m = i.createElement("div");
7326
7327
  if (m.classList.add($("t")), a.appendChild(m), this.textElement = m, r.pickerLayout === "inline") {
@@ -7330,7 +7331,7 @@ var fi = { exports: {} };
7330
7331
  this.pickerElement = null;
7331
7332
  }
7332
7333
  }
7333
- const ce = B("cbzp");
7334
+ const ce = K("cbzp");
7334
7335
  class oi {
7335
7336
  constructor(i, r) {
7336
7337
  this.element = i.createElement("div"), this.element.classList.add(ce()), r.viewProps.bindClassModifiers(this.element);
@@ -7353,7 +7354,7 @@ var fi = { exports: {} };
7353
7354
  subtree: !0
7354
7355
  });
7355
7356
  }
7356
- const At = B("cbzg");
7357
+ const At = K("cbzg");
7357
7358
  function ns(o, i) {
7358
7359
  return (r) => i(o(r));
7359
7360
  }
@@ -7362,20 +7363,20 @@ var fi = { exports: {} };
7362
7363
  this.element = i.createElement("div"), this.element.classList.add(At()), r.viewProps.bindClassModifiers(this.element), r.viewProps.bindTabIndex(this.element);
7363
7364
  const a = i.createElement("div");
7364
7365
  a.classList.add(At("p")), this.element.appendChild(a), this.previewElement = a;
7365
- const p = i.createElementNS(V, "svg");
7366
+ const p = i.createElementNS(L, "svg");
7366
7367
  p.classList.add(At("g")), this.element.appendChild(p), this.svgElem_ = p;
7367
- const d = i.createElementNS(V, "path");
7368
+ const d = i.createElementNS(L, "path");
7368
7369
  d.classList.add(At("u")), this.svgElem_.appendChild(d), this.guideElem_ = d;
7369
- const m = i.createElementNS(V, "polyline");
7370
+ const m = i.createElementNS(L, "polyline");
7370
7371
  m.classList.add(At("l")), this.svgElem_.appendChild(m), this.lineElem_ = m, this.handleElems_ = [i.createElement("div"), i.createElement("div")], this.handleElems_.forEach((_) => {
7371
7372
  _.classList.add(At("h")), this.element.appendChild(_);
7372
7373
  }), this.vectorElems_ = [
7373
- i.createElementNS(V, "line"),
7374
- i.createElementNS(V, "line")
7374
+ i.createElementNS(L, "line"),
7375
+ i.createElementNS(L, "line")
7375
7376
  ], this.vectorElems_.forEach((_) => {
7376
7377
  _.classList.add(At("v")), this.svgElem_.appendChild(_);
7377
7378
  }), this.value_ = r.value, this.value_.emitter.on("change", this.onValueChange_.bind(this)), this.sel_ = r.selection, this.handleElems_.forEach((_, g) => {
7378
- nt(this.sel_, ns((Q) => Q === g, ut(_, At("h", "sel"))));
7379
+ et(this.sel_, ns((Q) => Q === g, ut(_, At("h", "sel"))));
7379
7380
  }), Qe(this.element, () => {
7380
7381
  this.refresh();
7381
7382
  });
@@ -7423,13 +7424,13 @@ var fi = { exports: {} };
7423
7424
  this.refresh();
7424
7425
  }
7425
7426
  }
7426
- const ai = 24, ue = 400, st = 1e3, Et = B("cbzprv");
7427
+ const ai = 24, ue = 400, it = 1e3, Et = K("cbzprv");
7427
7428
  class Dt {
7428
7429
  constructor(i, r) {
7429
7430
  this.stopped_ = !0, this.startTime_ = -1, this.onDispose_ = this.onDispose_.bind(this), this.onTimer_ = this.onTimer_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.element = i.createElement("div"), this.element.classList.add(Et()), r.viewProps.bindClassModifiers(this.element);
7430
- const a = i.createElementNS(V, "svg");
7431
+ const a = i.createElementNS(L, "svg");
7431
7432
  a.classList.add(Et("g")), this.element.appendChild(a), this.svgElem_ = a;
7432
- const p = i.createElementNS(V, "path");
7433
+ const p = i.createElementNS(L, "path");
7433
7434
  p.classList.add(Et("t")), this.svgElem_.appendChild(p), this.ticksElem_ = p;
7434
7435
  const d = i.createElement("div");
7435
7436
  d.classList.add(Et("m")), this.element.appendChild(d), this.markerElem_ = d, this.value_ = r.value, this.value_.emitter.on("change", this.onValueChange_), r.viewProps.handleDispose(this.onDispose_), Qe(this.element, () => {
@@ -7460,8 +7461,8 @@ var fi = { exports: {} };
7460
7461
  onTimer_() {
7461
7462
  if (this.startTime_ === null)
7462
7463
  return;
7463
- const i = new Date().getTime() - this.startTime_, r = i / st;
7464
- this.updateMarker_(r), i > st + ue && this.stop(), this.stopped_ || requestAnimationFrame(this.onTimer_);
7464
+ const i = new Date().getTime() - this.startTime_, r = i / it;
7465
+ this.updateMarker_(r), i > it + ue && this.stop(), this.stopped_ || requestAnimationFrame(this.onTimer_);
7465
7466
  }
7466
7467
  onValueChange_() {
7467
7468
  this.refresh(), this.play();
@@ -7569,13 +7570,13 @@ var fi = { exports: {} };
7569
7570
  this.gc_.refresh();
7570
7571
  }
7571
7572
  }
7572
- class K {
7573
+ class F {
7573
7574
  constructor(i, r) {
7574
7575
  this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = r.value, this.viewProps = r.viewProps, this.foldable_ = hn(r.expanded), this.view = new es(i, {
7575
7576
  foldable: this.foldable_,
7576
7577
  pickerLayout: r.pickerLayout,
7577
7578
  viewProps: this.viewProps
7578
- }), this.view.buttonElement.addEventListener("blur", this.onButtonBlur_), this.view.buttonElement.addEventListener("click", this.onButtonClick_), this.tc_ = new S(i, {
7579
+ }), this.view.buttonElement.addEventListener("blur", this.onButtonBlur_), this.view.buttonElement.addEventListener("click", this.onButtonClick_), this.tc_ = new T(i, {
7579
7580
  parser: ts,
7580
7581
  props: q.fromObject({
7581
7582
  formatter: Tt
@@ -7592,7 +7593,7 @@ var fi = { exports: {} };
7592
7593
  });
7593
7594
  a.allFocusableElements.forEach((p) => {
7594
7595
  p.addEventListener("blur", this.onPopupChildBlur_), p.addEventListener("keydown", this.onPopupChildKeydown_);
7595
- }), this.pickerC_ = a, this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(this.pickerC_.view.element), nt(this.popC_.shows, (p) => {
7596
+ }), this.pickerC_ = a, this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(this.pickerC_.view.element), et(this.popC_.shows, (p) => {
7596
7597
  p && a.refresh();
7597
7598
  }), Ne({
7598
7599
  primary: this.foldable_.value("expanded"),
@@ -7648,7 +7649,7 @@ var fi = { exports: {} };
7648
7649
  const a = new St(...o.params.value), p = X(a, {
7649
7650
  constraint: pi(),
7650
7651
  equals: St.equals
7651
- }), d = new K(o.document, {
7652
+ }), d = new F(o.document, {
7652
7653
  axis: {
7653
7654
  baseStep: 0.1,
7654
7655
  textProps: q.fromObject({
@@ -7670,7 +7671,7 @@ var fi = { exports: {} };
7670
7671
  });
7671
7672
  },
7672
7673
  api(o) {
7673
- return !(o.controller instanceof Bt) || !(o.controller.valueController instanceof K) ? null : new Wi(o.controller);
7674
+ return !(o.controller instanceof Bt) || !(o.controller.valueController instanceof F) ? null : new Wi(o.controller);
7674
7675
  }
7675
7676
  };
7676
7677
  class ci extends u {
@@ -7721,7 +7722,7 @@ var fi = { exports: {} };
7721
7722
  }), ++this.frameCount_, this.compactTimestamps_();
7722
7723
  }
7723
7724
  }
7724
- const Nt = B("fps");
7725
+ const Nt = K("fps");
7725
7726
  class An {
7726
7727
  constructor(i, r) {
7727
7728
  this.element = i.createElement("div"), this.element.classList.add(Nt()), r.viewProps.bindClassModifiers(this.element), this.graphElement = i.createElement("div"), this.graphElement.classList.add(Nt("g")), this.element.appendChild(this.graphElement);
@@ -7842,7 +7843,7 @@ var fi = { exports: {} };
7842
7843
  return new gt((_ = (m = this.edge) === null || m === void 0 ? void 0 : m.constrain(Ot)) !== null && _ !== void 0 ? _ : Ot, (Q = (g = this.edge) === null || g === void 0 ? void 0 : g.constrain(Ot)) !== null && Q !== void 0 ? Q : Ot);
7843
7844
  }
7844
7845
  }
7845
- const he = B("rsltxt");
7846
+ const he = K("rsltxt");
7846
7847
  class di {
7847
7848
  constructor(i, r) {
7848
7849
  this.sliderView_ = r.sliderView, this.textView_ = r.textView, this.element = i.createElement("div"), this.element.classList.add(he());
@@ -7852,7 +7853,7 @@ var fi = { exports: {} };
7852
7853
  p.classList.add(he("t")), p.appendChild(this.textView_.element), this.element.appendChild(p);
7853
7854
  }
7854
7855
  }
7855
- const rt = B("rsl");
7856
+ const rt = K("rsl");
7856
7857
  class hi {
7857
7858
  constructor(i, r) {
7858
7859
  this.maxValue_ = r.maxValue, this.minValue_ = r.minValue, this.element = i.createElement("div"), this.element.classList.add(rt()), r.viewProps.bindClassModifiers(this.element), this.value_ = r.value, this.value_.emitter.on("change", this.onValueChange_.bind(this));
@@ -8049,7 +8050,7 @@ var fi = { exports: {} };
8049
8050
  this.controller_.props.set("title", i);
8050
8051
  }
8051
8052
  }
8052
- class as extends et {
8053
+ class as extends st {
8053
8054
  constructor(i, r, a, p, d) {
8054
8055
  super(i, p, d), this.cell = r, this.index = a;
8055
8056
  }
@@ -8082,7 +8083,7 @@ var fi = { exports: {} };
8082
8083
  });
8083
8084
  }
8084
8085
  }
8085
- const je = B("rad");
8086
+ const je = K("rad");
8086
8087
  class ps {
8087
8088
  constructor(i, r) {
8088
8089
  this.element = i.createElement("div"), this.element.classList.add(je()), r.viewProps.bindClassModifiers(this.element);
@@ -8120,7 +8121,7 @@ var fi = { exports: {} };
8120
8121
  });
8121
8122
  this.cellCs_.push(_), this.cellValues_.push(r.cellConfig(m, d).value);
8122
8123
  }
8123
- this.value = r.value, nt(this.value, (d) => {
8124
+ this.value = r.value, et(this.value, (d) => {
8124
8125
  const m = this.findCellByValue(d);
8125
8126
  !m || (m.view.inputElement.checked = !0);
8126
8127
  }), this.viewProps = Ct.create(), this.view = new Xt(i, {
@@ -8231,7 +8232,7 @@ var fi = { exports: {} };
8231
8232
  us,
8232
8233
  vi
8233
8234
  ];
8234
- T.CubicBezier = St, T.plugins = hs, Object.defineProperty(T, "__esModule", { value: !0 });
8235
+ V.CubicBezier = St, V.plugins = hs, Object.defineProperty(V, "__esModule", { value: !0 });
8235
8236
  });
8236
8237
  })(fi, fi.exports);
8237
8238
  const Ea = /* @__PURE__ */ ya(fi.exports), Pa = /* @__PURE__ */ xa({
@@ -8250,16 +8251,8 @@ const Sa = (G = "tres-container") => {
8250
8251
  un && un.dispose();
8251
8252
  }
8252
8253
  return _a(() => {
8253
- _r(
8254
- () => {
8255
- },
8256
- () => {
8257
- bi.begin();
8258
- },
8259
- () => {
8260
- bi.end();
8261
- }
8262
- );
8254
+ const { onBeforeLoop: V, onAfterLoop: u, resume: j } = gr();
8255
+ j(), V(() => bi.begin()), u(() => bi.end());
8263
8256
  }), ga(() => {
8264
8257
  U();
8265
8258
  }), { pane: un, fpsGraph: bi, disposeTweakPane: U };