@mavonengine/editor 0.0.5 → 0.0.7
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,3 +1,4 @@
|
|
|
1
|
+
import './Editor.css';
|
|
1
2
|
var ZC = (s) => {
|
|
2
3
|
throw TypeError(s);
|
|
3
4
|
};
|
|
@@ -18,9 +19,10 @@ import lA from "@mavonengine/core/Prefab/Water/Water";
|
|
|
18
19
|
import of from "@mavonengine/core/Prefab/Water/WaterManager";
|
|
19
20
|
import iA from "@mavonengine/core/Renderer/AssetRenderer";
|
|
20
21
|
import jT from "@mavonengine/core/Editor/EditorHelper";
|
|
21
|
-
import { a as oA } from "./Editor-
|
|
22
|
+
import { a as oA } from "./Editor-BZKTiLdQ.mjs";
|
|
23
|
+
import { ENGINE_VERSION as sA } from "@mavonengine/core/BaseGame";
|
|
22
24
|
/* empty css */
|
|
23
|
-
const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_ = new $M(), lx = new y0(),
|
|
25
|
+
const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_ = new $M(), lx = new y0(), rA = Math.cos(70 * WM.DEG2RAD), Sa = new ha(), ai = 2 * Math.PI, Ie = {
|
|
24
26
|
NONE: -1,
|
|
25
27
|
ROTATE: 0,
|
|
26
28
|
DOLLY: 1,
|
|
@@ -30,7 +32,7 @@ const ax = { type: "change" }, l2 = { type: "start" }, VT = { type: "end" }, h_
|
|
|
30
32
|
TOUCH_DOLLY_PAN: 5,
|
|
31
33
|
TOUCH_DOLLY_ROTATE: 6
|
|
32
34
|
}, gw = 1e-6;
|
|
33
|
-
class
|
|
35
|
+
class uA extends JM {
|
|
34
36
|
/**
|
|
35
37
|
* Constructs a new controls instance.
|
|
36
38
|
*
|
|
@@ -38,7 +40,7 @@ class rA extends JM {
|
|
|
38
40
|
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
|
39
41
|
*/
|
|
40
42
|
constructor(l, o = null) {
|
|
41
|
-
super(l, o), this.state = Ie.NONE, this.target = new ha(), this.cursor = new ha(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $m.ROTATE, MIDDLE: $m.DOLLY, RIGHT: $m.PAN }, this.touches = { ONE: Zm.ROTATE, TWO: Zm.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new ha(), this._lastQuaternion = new WC(), this._lastTargetPosition = new ha(), this._quat = new WC().setFromUnitVectors(l.up, new ha(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new FC(), this._sphericalDelta = new FC(), this._scale = 1, this._panOffset = new ha(), this._rotateStart = new ul(), this._rotateEnd = new ul(), this._rotateDelta = new ul(), this._panStart = new ul(), this._panEnd = new ul(), this._panDelta = new ul(), this._dollyStart = new ul(), this._dollyEnd = new ul(), this._dollyDelta = new ul(), this._dollyDirection = new ha(), this._mouse = new ul(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove =
|
|
43
|
+
super(l, o), this.state = Ie.NONE, this.target = new ha(), this.cursor = new ha(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $m.ROTATE, MIDDLE: $m.DOLLY, RIGHT: $m.PAN }, this.touches = { ONE: Zm.ROTATE, TWO: Zm.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new ha(), this._lastQuaternion = new WC(), this._lastTargetPosition = new ha(), this._quat = new WC().setFromUnitVectors(l.up, new ha(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new FC(), this._sphericalDelta = new FC(), this._scale = 1, this._panOffset = new ha(), this._rotateStart = new ul(), this._rotateEnd = new ul(), this._rotateDelta = new ul(), this._panStart = new ul(), this._panEnd = new ul(), this._panDelta = new ul(), this._dollyStart = new ul(), this._dollyEnd = new ul(), this._dollyDelta = new ul(), this._dollyDirection = new ha(), this._mouse = new ul(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = fA.bind(this), this._onPointerDown = cA.bind(this), this._onPointerUp = dA.bind(this), this._onContextMenu = yA.bind(this), this._onMouseWheel = mA.bind(this), this._onKeyDown = vA.bind(this), this._onTouchStart = gA.bind(this), this._onTouchMove = bA.bind(this), this._onMouseDown = hA.bind(this), this._onMouseMove = pA.bind(this), this._interceptControlDown = _A.bind(this), this._interceptControlUp = SA.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
42
44
|
}
|
|
43
45
|
connect(l) {
|
|
44
46
|
super.connect(l), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -129,7 +131,7 @@ class rA extends JM {
|
|
|
129
131
|
x.unproject(this.object), this.object.position.sub(x).add(_), this.object.updateMatrixWorld(), S = Sa.length();
|
|
130
132
|
} else
|
|
131
133
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
132
|
-
S !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(S).add(this.object.position) : (h_.origin.copy(this.object.position), h_.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(h_.direction)) <
|
|
134
|
+
S !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(S).add(this.object.position) : (h_.origin.copy(this.object.position), h_.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(h_.direction)) < rA ? this.object.lookAt(this.target) : (lx.setFromNormalAndCoplanarPoint(this.object.up, this.target), h_.intersectPlane(lx, this.target))));
|
|
133
135
|
} else if (this.object.isOrthographicCamera) {
|
|
134
136
|
const S = this.object.zoom;
|
|
135
137
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), S !== this.object.zoom && (this.object.updateProjectionMatrix(), b = !0);
|
|
@@ -326,13 +328,13 @@ class rA extends JM {
|
|
|
326
328
|
return l.ctrlKey && !this._controlActive && (c.deltaY *= 10), c;
|
|
327
329
|
}
|
|
328
330
|
}
|
|
329
|
-
function
|
|
331
|
+
function cA(s) {
|
|
330
332
|
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(s.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(s) && (this._addPointer(s), s.pointerType === "touch" ? this._onTouchStart(s) : this._onMouseDown(s)));
|
|
331
333
|
}
|
|
332
|
-
function
|
|
334
|
+
function fA(s) {
|
|
333
335
|
this.enabled !== !1 && (s.pointerType === "touch" ? this._onTouchMove(s) : this._onMouseMove(s));
|
|
334
336
|
}
|
|
335
|
-
function
|
|
337
|
+
function dA(s) {
|
|
336
338
|
switch (this._removePointer(s), this._pointers.length) {
|
|
337
339
|
case 0:
|
|
338
340
|
this.domElement.releasePointerCapture(s.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(VT), this.state = Ie.NONE;
|
|
@@ -343,7 +345,7 @@ function fA(s) {
|
|
|
343
345
|
break;
|
|
344
346
|
}
|
|
345
347
|
}
|
|
346
|
-
function
|
|
348
|
+
function hA(s) {
|
|
347
349
|
let l;
|
|
348
350
|
switch (s.button) {
|
|
349
351
|
case 0:
|
|
@@ -386,7 +388,7 @@ function dA(s) {
|
|
|
386
388
|
}
|
|
387
389
|
this.state !== Ie.NONE && this.dispatchEvent(l2);
|
|
388
390
|
}
|
|
389
|
-
function
|
|
391
|
+
function pA(s) {
|
|
390
392
|
switch (this.state) {
|
|
391
393
|
case Ie.ROTATE:
|
|
392
394
|
if (this.enableRotate === !1) return;
|
|
@@ -402,13 +404,13 @@ function hA(s) {
|
|
|
402
404
|
break;
|
|
403
405
|
}
|
|
404
406
|
}
|
|
405
|
-
function
|
|
407
|
+
function mA(s) {
|
|
406
408
|
this.enabled === !1 || this.enableZoom === !1 || this.state !== Ie.NONE || (s.preventDefault(), this.dispatchEvent(l2), this._handleMouseWheel(this._customWheelEvent(s)), this.dispatchEvent(VT));
|
|
407
409
|
}
|
|
408
|
-
function
|
|
410
|
+
function vA(s) {
|
|
409
411
|
this.enabled !== !1 && this._handleKeyDown(s);
|
|
410
412
|
}
|
|
411
|
-
function
|
|
413
|
+
function gA(s) {
|
|
412
414
|
switch (this._trackPointer(s), this._pointers.length) {
|
|
413
415
|
case 1:
|
|
414
416
|
switch (this.touches.ONE) {
|
|
@@ -443,7 +445,7 @@ function vA(s) {
|
|
|
443
445
|
}
|
|
444
446
|
this.state !== Ie.NONE && this.dispatchEvent(l2);
|
|
445
447
|
}
|
|
446
|
-
function
|
|
448
|
+
function bA(s) {
|
|
447
449
|
switch (this._trackPointer(s), this.state) {
|
|
448
450
|
case Ie.TOUCH_ROTATE:
|
|
449
451
|
if (this.enableRotate === !1) return;
|
|
@@ -465,16 +467,16 @@ function gA(s) {
|
|
|
465
467
|
this.state = Ie.NONE;
|
|
466
468
|
}
|
|
467
469
|
}
|
|
468
|
-
function
|
|
470
|
+
function yA(s) {
|
|
469
471
|
this.enabled !== !1 && s.preventDefault();
|
|
470
472
|
}
|
|
471
|
-
function
|
|
473
|
+
function _A(s) {
|
|
472
474
|
s.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
473
475
|
}
|
|
474
|
-
function
|
|
476
|
+
function SA(s) {
|
|
475
477
|
s.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
476
478
|
}
|
|
477
|
-
function
|
|
479
|
+
function wA(s) {
|
|
478
480
|
const l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), c = s.clone();
|
|
479
481
|
return GT(s, c, function(p, b) {
|
|
480
482
|
l.set(b, p), o.set(p, b);
|
|
@@ -491,7 +493,7 @@ function GT(s, l, o) {
|
|
|
491
493
|
for (let c = 0; c < s.children.length; c++)
|
|
492
494
|
GT(s.children[c], l.children[c], o);
|
|
493
495
|
}
|
|
494
|
-
function
|
|
496
|
+
function EA(s) {
|
|
495
497
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
496
498
|
}
|
|
497
499
|
var p_ = { exports: {} }, r0 = {}, m_ = { exports: {} }, bw = {};
|
|
@@ -505,7 +507,7 @@ var p_ = { exports: {} }, r0 = {}, m_ = { exports: {} }, bw = {};
|
|
|
505
507
|
* LICENSE file in the root directory of this source tree.
|
|
506
508
|
*/
|
|
507
509
|
var ix;
|
|
508
|
-
function
|
|
510
|
+
function CA() {
|
|
509
511
|
return ix || (ix = 1, (function(s) {
|
|
510
512
|
function l(H, lt) {
|
|
511
513
|
var bt = H.length;
|
|
@@ -735,7 +737,7 @@ var yw = {};
|
|
|
735
737
|
* LICENSE file in the root directory of this source tree.
|
|
736
738
|
*/
|
|
737
739
|
var ox;
|
|
738
|
-
function
|
|
740
|
+
function xA() {
|
|
739
741
|
return ox || (ox = 1, (function(s) {
|
|
740
742
|
process.env.NODE_ENV !== "production" && (function() {
|
|
741
743
|
function l() {
|
|
@@ -959,7 +961,7 @@ function CA() {
|
|
|
959
961
|
}
|
|
960
962
|
var sx;
|
|
961
963
|
function qT() {
|
|
962
|
-
return sx || (sx = 1, process.env.NODE_ENV === "production" ? m_.exports =
|
|
964
|
+
return sx || (sx = 1, process.env.NODE_ENV === "production" ? m_.exports = CA() : m_.exports = xA()), m_.exports;
|
|
963
965
|
}
|
|
964
966
|
/**
|
|
965
967
|
* @license React
|
|
@@ -971,7 +973,7 @@ function qT() {
|
|
|
971
973
|
* LICENSE file in the root directory of this source tree.
|
|
972
974
|
*/
|
|
973
975
|
var rx;
|
|
974
|
-
function
|
|
976
|
+
function TA() {
|
|
975
977
|
if (rx) return r0;
|
|
976
978
|
rx = 1;
|
|
977
979
|
var s = qT(), l = B_, o = j_;
|
|
@@ -10754,7 +10756,7 @@ var u0 = {};
|
|
|
10754
10756
|
* LICENSE file in the root directory of this source tree.
|
|
10755
10757
|
*/
|
|
10756
10758
|
var ux;
|
|
10757
|
-
function
|
|
10759
|
+
function DA() {
|
|
10758
10760
|
return ux || (ux = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
10759
10761
|
function s(t, e) {
|
|
10760
10762
|
for (t = t.memoizedState; t !== null && 0 < e; )
|
|
@@ -27799,7 +27801,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
27799
27801
|
})()), u0;
|
|
27800
27802
|
}
|
|
27801
27803
|
var cx;
|
|
27802
|
-
function
|
|
27804
|
+
function zA() {
|
|
27803
27805
|
if (cx) return p_.exports;
|
|
27804
27806
|
cx = 1;
|
|
27805
27807
|
function s() {
|
|
@@ -27813,24 +27815,24 @@ function DA() {
|
|
|
27813
27815
|
}
|
|
27814
27816
|
}
|
|
27815
27817
|
}
|
|
27816
|
-
return process.env.NODE_ENV === "production" ? (s(), p_.exports =
|
|
27818
|
+
return process.env.NODE_ENV === "production" ? (s(), p_.exports = TA()) : p_.exports = DA(), p_.exports;
|
|
27817
27819
|
}
|
|
27818
|
-
var
|
|
27819
|
-
function
|
|
27820
|
+
var MA = zA();
|
|
27821
|
+
function AA(s, l) {
|
|
27820
27822
|
const o = getComputedStyle(s), c = parseFloat(o.fontSize);
|
|
27821
27823
|
return l * c;
|
|
27822
27824
|
}
|
|
27823
|
-
function
|
|
27825
|
+
function RA(s, l) {
|
|
27824
27826
|
const o = getComputedStyle(s.ownerDocument.body), c = parseFloat(o.fontSize);
|
|
27825
27827
|
return l * c;
|
|
27826
27828
|
}
|
|
27827
|
-
function
|
|
27829
|
+
function OA(s) {
|
|
27828
27830
|
return s / 100 * window.innerHeight;
|
|
27829
27831
|
}
|
|
27830
|
-
function
|
|
27832
|
+
function UA(s) {
|
|
27831
27833
|
return s / 100 * window.innerWidth;
|
|
27832
27834
|
}
|
|
27833
|
-
function
|
|
27835
|
+
function NA(s) {
|
|
27834
27836
|
switch (typeof s) {
|
|
27835
27837
|
case "number":
|
|
27836
27838
|
return [s, "px"];
|
|
@@ -27846,7 +27848,7 @@ function _0({
|
|
|
27846
27848
|
styleProp: o
|
|
27847
27849
|
}) {
|
|
27848
27850
|
let c;
|
|
27849
|
-
const [p, b] =
|
|
27851
|
+
const [p, b] = NA(o);
|
|
27850
27852
|
switch (b) {
|
|
27851
27853
|
case "%": {
|
|
27852
27854
|
c = p / 100 * s;
|
|
@@ -27857,19 +27859,19 @@ function _0({
|
|
|
27857
27859
|
break;
|
|
27858
27860
|
}
|
|
27859
27861
|
case "rem": {
|
|
27860
|
-
c =
|
|
27862
|
+
c = RA(l, p);
|
|
27861
27863
|
break;
|
|
27862
27864
|
}
|
|
27863
27865
|
case "em": {
|
|
27864
|
-
c =
|
|
27866
|
+
c = AA(l, p);
|
|
27865
27867
|
break;
|
|
27866
27868
|
}
|
|
27867
27869
|
case "vh": {
|
|
27868
|
-
c =
|
|
27870
|
+
c = OA(p);
|
|
27869
27871
|
break;
|
|
27870
27872
|
}
|
|
27871
27873
|
case "vw": {
|
|
27872
|
-
c =
|
|
27874
|
+
c = UA(p);
|
|
27873
27875
|
break;
|
|
27874
27876
|
}
|
|
27875
27877
|
}
|
|
@@ -27951,14 +27953,14 @@ function Fe(s, l = "Assertion error") {
|
|
|
27951
27953
|
}
|
|
27952
27954
|
function Qw(s, l) {
|
|
27953
27955
|
return Array.from(l).sort(
|
|
27954
|
-
s === "horizontal" ?
|
|
27956
|
+
s === "horizontal" ? LA : HA
|
|
27955
27957
|
);
|
|
27956
27958
|
}
|
|
27957
|
-
function
|
|
27959
|
+
function LA(s, l) {
|
|
27958
27960
|
const o = s.element.offsetLeft - l.element.offsetLeft;
|
|
27959
27961
|
return o !== 0 ? o : s.element.offsetWidth - l.element.offsetWidth;
|
|
27960
27962
|
}
|
|
27961
|
-
function
|
|
27963
|
+
function HA(s, l) {
|
|
27962
27964
|
const o = s.element.offsetTop - l.element.offsetTop;
|
|
27963
27965
|
return o !== 0 ? o : s.element.offsetHeight - l.element.offsetHeight;
|
|
27964
27966
|
}
|
|
@@ -27977,7 +27979,7 @@ function YT(s, l) {
|
|
|
27977
27979
|
)
|
|
27978
27980
|
};
|
|
27979
27981
|
}
|
|
27980
|
-
function
|
|
27982
|
+
function BA({
|
|
27981
27983
|
orientation: s,
|
|
27982
27984
|
rects: l,
|
|
27983
27985
|
targetRect: o
|
|
@@ -27994,7 +27996,7 @@ function HA({
|
|
|
27994
27996
|
return Fe(p, "No rect found"), p;
|
|
27995
27997
|
}
|
|
27996
27998
|
let v_;
|
|
27997
|
-
function
|
|
27999
|
+
function jA() {
|
|
27998
28000
|
return v_ === void 0 && (typeof matchMedia == "function" ? v_ = !!matchMedia("(pointer:coarse)").matches : v_ = !1), v_;
|
|
27999
28001
|
}
|
|
28000
28002
|
function XT(s) {
|
|
@@ -28041,7 +28043,7 @@ function XT(s) {
|
|
|
28041
28043
|
break;
|
|
28042
28044
|
}
|
|
28043
28045
|
case 1: {
|
|
28044
|
-
const dt = N[0], R =
|
|
28046
|
+
const dt = N[0], R = BA({
|
|
28045
28047
|
orientation: o,
|
|
28046
28048
|
rects: [j, F],
|
|
28047
28049
|
targetRect: dt.element.getBoundingClientRect()
|
|
@@ -28073,7 +28075,7 @@ function XT(s) {
|
|
|
28073
28075
|
];
|
|
28074
28076
|
for (const W of J) {
|
|
28075
28077
|
let k = "width" in W ? W : W.element.getBoundingClientRect();
|
|
28076
|
-
const dt =
|
|
28078
|
+
const dt = jA() ? s.resizeTargetMinimumSize.coarse : s.resizeTargetMinimumSize.fine;
|
|
28077
28079
|
if (k.width < dt) {
|
|
28078
28080
|
const B = dt - k.width;
|
|
28079
28081
|
k = new DOMRect(
|
|
@@ -28160,7 +28162,7 @@ class PT {
|
|
|
28160
28162
|
pf = new WeakMap();
|
|
28161
28163
|
let lr = /* @__PURE__ */ new Map();
|
|
28162
28164
|
const QT = new PT();
|
|
28163
|
-
function
|
|
28165
|
+
function VA(s) {
|
|
28164
28166
|
lr = new Map(lr), lr.delete(s);
|
|
28165
28167
|
}
|
|
28166
28168
|
function fx(s, l) {
|
|
@@ -28191,7 +28193,7 @@ function Eu(s, l) {
|
|
|
28191
28193
|
next: l
|
|
28192
28194
|
});
|
|
28193
28195
|
}
|
|
28194
|
-
function
|
|
28196
|
+
function GA(s, l, o) {
|
|
28195
28197
|
let c, p = {
|
|
28196
28198
|
x: 1 / 0,
|
|
28197
28199
|
y: 1 / 0
|
|
@@ -28214,10 +28216,10 @@ function VA(s, l, o) {
|
|
|
28214
28216
|
hitRegion: c
|
|
28215
28217
|
} : void 0;
|
|
28216
28218
|
}
|
|
28217
|
-
function
|
|
28219
|
+
function qA(s) {
|
|
28218
28220
|
return s !== null && typeof s == "object" && "nodeType" in s && s.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
28219
28221
|
}
|
|
28220
|
-
function
|
|
28222
|
+
function kA(s, l) {
|
|
28221
28223
|
if (s === l) throw new Error("Cannot compare node with itself");
|
|
28222
28224
|
const o = {
|
|
28223
28225
|
a: px(s),
|
|
@@ -28248,20 +28250,20 @@ function qA(s, l) {
|
|
|
28248
28250
|
}
|
|
28249
28251
|
return Math.sign(p.a - p.b);
|
|
28250
28252
|
}
|
|
28251
|
-
const
|
|
28252
|
-
function
|
|
28253
|
+
const YA = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
28254
|
+
function XA(s) {
|
|
28253
28255
|
const l = getComputedStyle(KT(s) ?? s).display;
|
|
28254
28256
|
return l === "flex" || l === "inline-flex";
|
|
28255
28257
|
}
|
|
28256
|
-
function
|
|
28258
|
+
function PA(s) {
|
|
28257
28259
|
const l = getComputedStyle(s);
|
|
28258
|
-
return !!(l.position === "fixed" || l.zIndex !== "auto" && (l.position !== "static" ||
|
|
28260
|
+
return !!(l.position === "fixed" || l.zIndex !== "auto" && (l.position !== "static" || XA(s)) || +l.opacity < 1 || "transform" in l && l.transform !== "none" || "webkitTransform" in l && l.webkitTransform !== "none" || "mixBlendMode" in l && l.mixBlendMode !== "normal" || "filter" in l && l.filter !== "none" || "webkitFilter" in l && l.webkitFilter !== "none" || "isolation" in l && l.isolation === "isolate" || YA.test(l.willChange) || l.webkitOverflowScrolling === "touch");
|
|
28259
28261
|
}
|
|
28260
28262
|
function dx(s) {
|
|
28261
28263
|
let l = s.length;
|
|
28262
28264
|
for (; l--; ) {
|
|
28263
28265
|
const o = s[l];
|
|
28264
|
-
if (Fe(o, "Missing node"),
|
|
28266
|
+
if (Fe(o, "Missing node"), PA(o)) return o;
|
|
28265
28267
|
}
|
|
28266
28268
|
return null;
|
|
28267
28269
|
}
|
|
@@ -28276,24 +28278,24 @@ function px(s) {
|
|
|
28276
28278
|
}
|
|
28277
28279
|
function KT(s) {
|
|
28278
28280
|
const { parentNode: l } = s;
|
|
28279
|
-
return
|
|
28281
|
+
return qA(l) ? l.host : l;
|
|
28280
28282
|
}
|
|
28281
|
-
function
|
|
28283
|
+
function QA(s, l) {
|
|
28282
28284
|
return s.x < l.x + l.width && s.x + s.width > l.x && s.y < l.y + l.height && s.y + s.height > l.y;
|
|
28283
28285
|
}
|
|
28284
|
-
function
|
|
28286
|
+
function ZA({
|
|
28285
28287
|
groupElement: s,
|
|
28286
28288
|
hitRegion: l,
|
|
28287
28289
|
pointerEventTarget: o
|
|
28288
28290
|
}) {
|
|
28289
28291
|
if (!kT(o) || o.contains(s) || s.contains(o))
|
|
28290
28292
|
return !0;
|
|
28291
|
-
if (
|
|
28293
|
+
if (kA(o, s) > 0) {
|
|
28292
28294
|
let c = o;
|
|
28293
28295
|
for (; c; ) {
|
|
28294
28296
|
if (c.contains(s))
|
|
28295
28297
|
return !0;
|
|
28296
|
-
if (
|
|
28298
|
+
if (QA(c.getBoundingClientRect(), l))
|
|
28297
28299
|
return !1;
|
|
28298
28300
|
c = c.parentElement;
|
|
28299
28301
|
}
|
|
@@ -28305,18 +28307,18 @@ function i2(s, l) {
|
|
|
28305
28307
|
return l.forEach((c, p) => {
|
|
28306
28308
|
if (p.disabled)
|
|
28307
28309
|
return;
|
|
28308
|
-
const b = XT(p), S =
|
|
28310
|
+
const b = XT(p), S = GA(p.orientation, b, {
|
|
28309
28311
|
x: s.clientX,
|
|
28310
28312
|
y: s.clientY
|
|
28311
28313
|
});
|
|
28312
|
-
S && S.distance.x <= 0 && S.distance.y <= 0 &&
|
|
28314
|
+
S && S.distance.x <= 0 && S.distance.y <= 0 && ZA({
|
|
28313
28315
|
groupElement: p.element,
|
|
28314
28316
|
hitRegion: S.hitRegion.rect,
|
|
28315
28317
|
pointerEventTarget: s.target
|
|
28316
28318
|
}) && o.push(S.hitRegion);
|
|
28317
28319
|
}), o;
|
|
28318
28320
|
}
|
|
28319
|
-
function
|
|
28321
|
+
function KA(s, l) {
|
|
28320
28322
|
if (s.length !== l.length)
|
|
28321
28323
|
return !1;
|
|
28322
28324
|
for (let o = 0; o < s.length; o++)
|
|
@@ -28474,7 +28476,7 @@ function o2({
|
|
|
28474
28476
|
s < 0 ? O-- : O++;
|
|
28475
28477
|
}
|
|
28476
28478
|
}
|
|
28477
|
-
if (
|
|
28479
|
+
if (KA(C, x))
|
|
28478
28480
|
return p;
|
|
28479
28481
|
{
|
|
28480
28482
|
const O = s < 0 ? M : D, G = _[O];
|
|
@@ -28842,7 +28844,7 @@ const WT = new PT();
|
|
|
28842
28844
|
function dh() {
|
|
28843
28845
|
return Fm;
|
|
28844
28846
|
}
|
|
28845
|
-
function
|
|
28847
|
+
function JA(s) {
|
|
28846
28848
|
const l = Fm, o = { ...Fm };
|
|
28847
28849
|
o.cursorFlags = s, Fm = o, WT.emit("change", {
|
|
28848
28850
|
prev: l,
|
|
@@ -28875,13 +28877,13 @@ function gx(s) {
|
|
|
28875
28877
|
state: "active"
|
|
28876
28878
|
}), o.length && s.preventDefault();
|
|
28877
28879
|
}
|
|
28878
|
-
const
|
|
28880
|
+
const $A = (s) => s, _w = () => {
|
|
28879
28881
|
}, FT = 1, IT = 2, tD = 4, eD = 8, bx = 3, yx = 12;
|
|
28880
28882
|
let g_;
|
|
28881
28883
|
function _x() {
|
|
28882
28884
|
return g_ === void 0 && (g_ = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (g_ = !0)), g_;
|
|
28883
28885
|
}
|
|
28884
|
-
function
|
|
28886
|
+
function WA({
|
|
28885
28887
|
cursorFlags: s,
|
|
28886
28888
|
groups: l,
|
|
28887
28889
|
state: o
|
|
@@ -28934,7 +28936,7 @@ function s2(s) {
|
|
|
28934
28936
|
switch (c.state) {
|
|
28935
28937
|
case "active":
|
|
28936
28938
|
case "hover": {
|
|
28937
|
-
const p =
|
|
28939
|
+
const p = WA({
|
|
28938
28940
|
cursorFlags: c.cursorFlags,
|
|
28939
28941
|
groups: c.hitRegions.map((S) => S.group),
|
|
28940
28942
|
state: c.state
|
|
@@ -29010,7 +29012,7 @@ function nD({
|
|
|
29010
29012
|
}
|
|
29011
29013
|
});
|
|
29012
29014
|
let C = 0;
|
|
29013
|
-
l.movementX === 0 ? C |= S & bx : C |= _ & bx, l.movementY === 0 ? C |= S & yx : C |= _ & yx,
|
|
29015
|
+
l.movementX === 0 ? C |= S & bx : C |= _ & bx, l.movementY === 0 ? C |= S & yx : C |= _ & yx, JA(C), s2(s);
|
|
29014
29016
|
}
|
|
29015
29017
|
function wx(s) {
|
|
29016
29018
|
const l = vh(), o = dh();
|
|
@@ -29119,7 +29121,7 @@ function Tx(s) {
|
|
|
29119
29121
|
}
|
|
29120
29122
|
return c;
|
|
29121
29123
|
}
|
|
29122
|
-
function
|
|
29124
|
+
function FA(s, l, o) {
|
|
29123
29125
|
if (!o[0])
|
|
29124
29126
|
return;
|
|
29125
29127
|
const c = s.panels.find((C) => C.element === l);
|
|
@@ -29131,7 +29133,7 @@ function WA(s, l, o) {
|
|
|
29131
29133
|
};
|
|
29132
29134
|
c.mutableValues.prevSize = _, c.onResize(_, c.id, S);
|
|
29133
29135
|
}
|
|
29134
|
-
function
|
|
29136
|
+
function IA(s, l) {
|
|
29135
29137
|
if (Object.keys(s).length !== Object.keys(l).length)
|
|
29136
29138
|
return !1;
|
|
29137
29139
|
for (const o in s)
|
|
@@ -29139,7 +29141,7 @@ function FA(s, l) {
|
|
|
29139
29141
|
return !1;
|
|
29140
29142
|
return !0;
|
|
29141
29143
|
}
|
|
29142
|
-
function
|
|
29144
|
+
function tR({
|
|
29143
29145
|
group: s,
|
|
29144
29146
|
nextGroupSize: l,
|
|
29145
29147
|
prevGroupSize: o,
|
|
@@ -29188,7 +29190,7 @@ function IA({
|
|
|
29188
29190
|
}
|
|
29189
29191
|
return D;
|
|
29190
29192
|
}
|
|
29191
|
-
function
|
|
29193
|
+
function eR(s, l) {
|
|
29192
29194
|
const o = s.map((p) => p.id), c = Object.keys(l);
|
|
29193
29195
|
if (o.length !== c.length)
|
|
29194
29196
|
return !1;
|
|
@@ -29198,7 +29200,7 @@ function tR(s, l) {
|
|
|
29198
29200
|
return !0;
|
|
29199
29201
|
}
|
|
29200
29202
|
const qm = /* @__PURE__ */ new Map();
|
|
29201
|
-
function
|
|
29203
|
+
function nR(s) {
|
|
29202
29204
|
let l = !0;
|
|
29203
29205
|
Fe(
|
|
29204
29206
|
s.element.ownerDocument.defaultView,
|
|
@@ -29215,7 +29217,7 @@ function eR(s) {
|
|
|
29215
29217
|
const J = gf(s.id);
|
|
29216
29218
|
if (!J)
|
|
29217
29219
|
return;
|
|
29218
|
-
const W = Pw(s), k = J.defaultLayoutDeferred ? Tx(W) : J.layout, dt =
|
|
29220
|
+
const W = Pw(s), k = J.defaultLayoutDeferred ? Tx(W) : J.layout, dt = tR({
|
|
29219
29221
|
group: s,
|
|
29220
29222
|
nextGroupSize: F,
|
|
29221
29223
|
prevGroupSize: J.groupSize,
|
|
@@ -29224,7 +29226,7 @@ function eR(s) {
|
|
|
29224
29226
|
layout: dt,
|
|
29225
29227
|
panelConstraints: W
|
|
29226
29228
|
});
|
|
29227
|
-
if (!J.defaultLayoutDeferred && fh(J.layout, R) &&
|
|
29229
|
+
if (!J.defaultLayoutDeferred && fh(J.layout, R) && IA(
|
|
29228
29230
|
J.derivedPanelConstraints,
|
|
29229
29231
|
W
|
|
29230
29232
|
) && J.groupSize === F)
|
|
@@ -29238,7 +29240,7 @@ function eR(s) {
|
|
|
29238
29240
|
});
|
|
29239
29241
|
}
|
|
29240
29242
|
} else
|
|
29241
|
-
|
|
29243
|
+
FA(s, j, G);
|
|
29242
29244
|
}
|
|
29243
29245
|
});
|
|
29244
29246
|
b.observe(s.element), s.panels.forEach((L) => {
|
|
@@ -29249,7 +29251,7 @@ function eR(s) {
|
|
|
29249
29251
|
});
|
|
29250
29252
|
const S = nv({ group: s }), _ = Pw(s), C = s.panels.map(({ id: L }) => L).join(",");
|
|
29251
29253
|
let x = s.mutableState.defaultLayout;
|
|
29252
|
-
x && (
|
|
29254
|
+
x && (eR(s.panels, x) || (x = void 0));
|
|
29253
29255
|
const D = s.mutableState.layouts[C] ?? x ?? Tx(_), M = w0({
|
|
29254
29256
|
layout: D,
|
|
29255
29257
|
panelConstraints: _
|
|
@@ -29276,7 +29278,7 @@ function eR(s) {
|
|
|
29276
29278
|
l = !1, qm.set(
|
|
29277
29279
|
A,
|
|
29278
29280
|
Math.max(0, (qm.get(A) ?? 0) - 1)
|
|
29279
|
-
),
|
|
29281
|
+
), VA(s), s.separators.forEach((L) => {
|
|
29280
29282
|
L.element.removeEventListener("keydown", vx);
|
|
29281
29283
|
}), qm.get(A) || (A.removeEventListener(
|
|
29282
29284
|
"dblclick",
|
|
@@ -29289,7 +29291,7 @@ function eR(s) {
|
|
|
29289
29291
|
), A.removeEventListener("pointerleave", wx), A.removeEventListener("pointermove", Ex), A.removeEventListener("pointerout", Cx), A.removeEventListener("pointerup", xx, !0)), b.disconnect();
|
|
29290
29292
|
};
|
|
29291
29293
|
}
|
|
29292
|
-
function
|
|
29294
|
+
function aR() {
|
|
29293
29295
|
const [s, l] = Ae({}), o = or(() => l({}), []);
|
|
29294
29296
|
return [s, o];
|
|
29295
29297
|
}
|
|
@@ -29335,10 +29337,10 @@ function iD(s) {
|
|
|
29335
29337
|
}, [s]), l.current;
|
|
29336
29338
|
}
|
|
29337
29339
|
const oD = QM(null);
|
|
29338
|
-
function
|
|
29340
|
+
function lR(s, l) {
|
|
29339
29341
|
const o = Ee({
|
|
29340
29342
|
getLayout: () => ({}),
|
|
29341
|
-
setLayout:
|
|
29343
|
+
setLayout: $A
|
|
29342
29344
|
});
|
|
29343
29345
|
RT(l, () => o.current, []), lv(() => {
|
|
29344
29346
|
Object.assign(
|
|
@@ -29373,14 +29375,14 @@ function Zw({
|
|
|
29373
29375
|
fh(L.current.onLayoutChange, pt) || (L.current.onLayoutChange = pt, C == null || C(pt));
|
|
29374
29376
|
}), G = S0((pt) => {
|
|
29375
29377
|
fh(L.current.onLayoutChanged, pt) || (L.current.onLayoutChanged = pt, x == null || x(pt));
|
|
29376
|
-
}), j = aD(_), F = Ee(null), [J, W] =
|
|
29378
|
+
}), j = aD(_), F = Ee(null), [J, W] = aR(), k = Ee({
|
|
29377
29379
|
lastExpandedPanelSizes: {},
|
|
29378
29380
|
layouts: {},
|
|
29379
29381
|
panels: [],
|
|
29380
29382
|
resizeTargetMinimumSize: M,
|
|
29381
29383
|
separators: []
|
|
29382
29384
|
}), dt = lD(F, b);
|
|
29383
|
-
|
|
29385
|
+
lR(j, S);
|
|
29384
29386
|
const R = S0(
|
|
29385
29387
|
(pt, U) => {
|
|
29386
29388
|
const et = dh(), ht = fx(pt), xt = gf(pt);
|
|
@@ -29486,7 +29488,7 @@ function Zw({
|
|
|
29486
29488
|
separators: U.separators
|
|
29487
29489
|
};
|
|
29488
29490
|
at.current = ht;
|
|
29489
|
-
const xt =
|
|
29491
|
+
const xt = nR(ht), { defaultLayoutDeferred: H, derivedPanelConstraints: lt, layout: bt } = gf(ht.id, !0);
|
|
29490
29492
|
!H && lt.length > 0 && (O(bt), G(bt));
|
|
29491
29493
|
const Dt = ZT(j, (tt) => {
|
|
29492
29494
|
const { defaultLayoutDeferred: St, derivedPanelConstraints: zt, layout: Et } = tt.next;
|
|
@@ -29556,14 +29558,14 @@ Zw.displayName = "Group";
|
|
|
29556
29558
|
function Sw(s, l) {
|
|
29557
29559
|
return `react-resizable-panels:${[s, ...l].join(":")}`;
|
|
29558
29560
|
}
|
|
29559
|
-
function
|
|
29561
|
+
function iR({
|
|
29560
29562
|
debounceSaveMs: s = 100,
|
|
29561
29563
|
panelIds: l,
|
|
29562
29564
|
storage: o = localStorage,
|
|
29563
29565
|
...c
|
|
29564
29566
|
}) {
|
|
29565
29567
|
const p = l !== void 0, b = "id" in c ? c.id : c.groupId, S = Sw(b, l ?? []), _ = MT(
|
|
29566
|
-
|
|
29568
|
+
oR,
|
|
29567
29569
|
() => o.getItem(S),
|
|
29568
29570
|
() => o.getItem(S)
|
|
29569
29571
|
), C = fs(
|
|
@@ -29613,7 +29615,7 @@ function lR({
|
|
|
29613
29615
|
onLayoutChanged: M
|
|
29614
29616
|
};
|
|
29615
29617
|
}
|
|
29616
|
-
function
|
|
29618
|
+
function oR() {
|
|
29617
29619
|
return function() {
|
|
29618
29620
|
};
|
|
29619
29621
|
}
|
|
@@ -29624,7 +29626,7 @@ function sD() {
|
|
|
29624
29626
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
29625
29627
|
), s;
|
|
29626
29628
|
}
|
|
29627
|
-
function
|
|
29629
|
+
function sR(s, l) {
|
|
29628
29630
|
const { id: o } = sD(), c = Ee({
|
|
29629
29631
|
collapse: _w,
|
|
29630
29632
|
expand: _w,
|
|
@@ -29711,7 +29713,7 @@ function Jm({
|
|
|
29711
29713
|
j
|
|
29712
29714
|
]), Bn(() => {
|
|
29713
29715
|
B(G, !!b);
|
|
29714
|
-
}, [b, G, B]),
|
|
29716
|
+
}, [b, G, B]), sR(G, A);
|
|
29715
29717
|
const pt = () => {
|
|
29716
29718
|
const ht = W(k, G);
|
|
29717
29719
|
if (ht)
|
|
@@ -29736,7 +29738,7 @@ function Jm({
|
|
|
29736
29738
|
id: G,
|
|
29737
29739
|
ref: J,
|
|
29738
29740
|
style: {
|
|
29739
|
-
...
|
|
29741
|
+
...rR,
|
|
29740
29742
|
display: "flex",
|
|
29741
29743
|
flexBasis: 0,
|
|
29742
29744
|
flexShrink: 1,
|
|
@@ -29766,7 +29768,7 @@ function Jm({
|
|
|
29766
29768
|
);
|
|
29767
29769
|
}
|
|
29768
29770
|
Jm.displayName = "Panel";
|
|
29769
|
-
const
|
|
29771
|
+
const rR = {
|
|
29770
29772
|
minHeight: 0,
|
|
29771
29773
|
maxHeight: "100%",
|
|
29772
29774
|
height: "auto",
|
|
@@ -29777,20 +29779,20 @@ const sR = {
|
|
|
29777
29779
|
borderWidth: 0,
|
|
29778
29780
|
padding: 0,
|
|
29779
29781
|
margin: 0
|
|
29780
|
-
},
|
|
29781
|
-
activityBar:
|
|
29782
|
-
icon:
|
|
29783
|
-
active:
|
|
29784
|
-
},
|
|
29782
|
+
}, uR = "_activityBar_4dnwm_1", cR = "_icon_4dnwm_14", fR = "_active_4dnwm_29", ww = {
|
|
29783
|
+
activityBar: uR,
|
|
29784
|
+
icon: cR,
|
|
29785
|
+
active: fR
|
|
29786
|
+
}, dR = [
|
|
29785
29787
|
{ id: "explorer", label: "Explorer", path: "M17.5 0h-9L7 1.5V6H2.5L1 7.5v13l1.5 1.5h13l1.5-1.5V16h4.5l1.5-1.5v-13L22 0h-4.5zM16 20.5H2.5V7.5H7v8L8.5 17h7.5v3.5zm5.5-6H8.5V1.5h9v4.5H22v8.5z" },
|
|
29786
29788
|
{ id: "search", label: "Search", path: "M15.25 0a8.25 8.25 0 0 0-6.18 13.72L1 21.79l1.42 1.42 8.07-8.07A8.25 8.25 0 1 0 15.25 0zm0 15a6.75 6.75 0 1 1 0-13.5 6.75 6.75 0 0 1 0 13.5z" },
|
|
29787
29789
|
{ id: "git", label: "Source Control", path: "M21.007 8.222A3.738 3.738 0 0 0 15.045 5.2a3.737 3.737 0 0 0 1.156 6.583 2.988 2.988 0 0 1-2.668 1.67h-2.99a4.456 4.456 0 0 0-2.989 1.165V7.4a3.737 3.737 0 1 0-1.494 0v9.117a3.776 3.776 0 1 0 1.816.099 2.99 2.99 0 0 1 2.668-1.667h2.99a4.484 4.484 0 0 0 4.223-3.039 3.736 3.736 0 0 0 3.25-3.687zM4.565 3.738a2.242 2.242 0 1 1 4.484 0 2.242 2.242 0 0 1-4.484 0zm4.484 16.441a2.242 2.242 0 1 1-4.484 0 2.242 2.242 0 0 1 4.484 0zm8.221-9.715a2.242 2.242 0 1 1 0-4.485 2.242 2.242 0 0 1 0 4.485z" },
|
|
29788
29790
|
{ id: "extensions", label: "Extensions", path: "M13.5 1.5L15 0h7.5L24 1.5V9l-1.5 1.5H15L13.5 9V1.5zm1.5 0V9h7.5V1.5H15zM0 15L1.5 13.5H9L10.5 15v7.5L9 24H1.5L0 22.5V15zm1.5 0v7.5H9V15H1.5zm6-13.5L9 0h7.5L18 1.5V9l-1.5 1.5H9L7.5 9V1.5zM9 1.5V9h7.5V1.5H9zM0 1.5L1.5 0H9l1.5 1.5V9L9 10.5H1.5L0 9V1.5zm1.5 0V9H9V1.5H1.5z" },
|
|
29789
29791
|
{ id: "settings", label: "Settings", path: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94L14.4.37A.49.49 0 0 0 13.92 0h-3.84a.49.49 0 0 0-.48.37l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96a.49.49 0 0 0-.59.22L2.72 6.87a.48.48 0 0 0 .12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94L2.84 12.52a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.37.48.37h3.84c.24 0 .44-.14.48-.37l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2z" }
|
|
29790
29792
|
];
|
|
29791
|
-
function
|
|
29793
|
+
function hR() {
|
|
29792
29794
|
const [s, l] = Ae("explorer");
|
|
29793
|
-
return /* @__PURE__ */ $("div", { className: ww.activityBar, children:
|
|
29795
|
+
return /* @__PURE__ */ $("div", { className: ww.activityBar, children: dR.map((o) => /* @__PURE__ */ $(
|
|
29794
29796
|
"div",
|
|
29795
29797
|
{
|
|
29796
29798
|
title: o.label,
|
|
@@ -29811,7 +29813,7 @@ var c0 = { exports: {} }, Ew = {}, b_ = { exports: {} }, y_ = { exports: {} }, X
|
|
|
29811
29813
|
* LICENSE file in the root directory of this source tree.
|
|
29812
29814
|
*/
|
|
29813
29815
|
var Dx;
|
|
29814
|
-
function
|
|
29816
|
+
function pR() {
|
|
29815
29817
|
if (Dx) return Xe;
|
|
29816
29818
|
Dx = 1;
|
|
29817
29819
|
var s = typeof Symbol == "function" && Symbol.for, l = s ? Symbol.for("react.element") : 60103, o = s ? Symbol.for("react.portal") : 60106, c = s ? Symbol.for("react.fragment") : 60107, p = s ? Symbol.for("react.strict_mode") : 60108, b = s ? Symbol.for("react.profiler") : 60114, S = s ? Symbol.for("react.provider") : 60109, _ = s ? Symbol.for("react.context") : 60110, C = s ? Symbol.for("react.async_mode") : 60111, x = s ? Symbol.for("react.concurrent_mode") : 60111, D = s ? Symbol.for("react.forward_ref") : 60112, M = s ? Symbol.for("react.suspense") : 60113, A = s ? Symbol.for("react.suspense_list") : 60120, N = s ? Symbol.for("react.memo") : 60115, L = s ? Symbol.for("react.lazy") : 60116, O = s ? Symbol.for("react.block") : 60121, G = s ? Symbol.for("react.fundamental") : 60117, j = s ? Symbol.for("react.responder") : 60118, F = s ? Symbol.for("react.scope") : 60119;
|
|
@@ -29886,7 +29888,7 @@ var Pe = {};
|
|
|
29886
29888
|
* LICENSE file in the root directory of this source tree.
|
|
29887
29889
|
*/
|
|
29888
29890
|
var zx;
|
|
29889
|
-
function
|
|
29891
|
+
function mR() {
|
|
29890
29892
|
return zx || (zx = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29891
29893
|
var s = typeof Symbol == "function" && Symbol.for, l = s ? Symbol.for("react.element") : 60103, o = s ? Symbol.for("react.portal") : 60106, c = s ? Symbol.for("react.fragment") : 60107, p = s ? Symbol.for("react.strict_mode") : 60108, b = s ? Symbol.for("react.profiler") : 60114, S = s ? Symbol.for("react.provider") : 60109, _ = s ? Symbol.for("react.context") : 60110, C = s ? Symbol.for("react.async_mode") : 60111, x = s ? Symbol.for("react.concurrent_mode") : 60111, D = s ? Symbol.for("react.forward_ref") : 60112, M = s ? Symbol.for("react.suspense") : 60113, A = s ? Symbol.for("react.suspense_list") : 60120, N = s ? Symbol.for("react.memo") : 60115, L = s ? Symbol.for("react.lazy") : 60116, O = s ? Symbol.for("react.block") : 60121, G = s ? Symbol.for("react.fundamental") : 60117, j = s ? Symbol.for("react.responder") : 60118, F = s ? Symbol.for("react.scope") : 60119;
|
|
29892
29894
|
function J(Mt) {
|
|
@@ -29970,7 +29972,7 @@ function pR() {
|
|
|
29970
29972
|
}
|
|
29971
29973
|
var Mx;
|
|
29972
29974
|
function rD() {
|
|
29973
|
-
return Mx || (Mx = 1, process.env.NODE_ENV === "production" ? y_.exports =
|
|
29975
|
+
return Mx || (Mx = 1, process.env.NODE_ENV === "production" ? y_.exports = pR() : y_.exports = mR()), y_.exports;
|
|
29974
29976
|
}
|
|
29975
29977
|
/*
|
|
29976
29978
|
object-assign
|
|
@@ -29978,7 +29980,7 @@ object-assign
|
|
|
29978
29980
|
@license MIT
|
|
29979
29981
|
*/
|
|
29980
29982
|
var Cw, Ax;
|
|
29981
|
-
function
|
|
29983
|
+
function vR() {
|
|
29982
29984
|
if (Ax) return Cw;
|
|
29983
29985
|
Ax = 1;
|
|
29984
29986
|
var s = Object.getOwnPropertySymbols, l = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
@@ -30035,7 +30037,7 @@ function uD() {
|
|
|
30035
30037
|
return Ox || (Ox = 1, Tw = Function.call.bind(Object.prototype.hasOwnProperty)), Tw;
|
|
30036
30038
|
}
|
|
30037
30039
|
var Dw, Ux;
|
|
30038
|
-
function
|
|
30040
|
+
function gR() {
|
|
30039
30041
|
if (Ux) return Dw;
|
|
30040
30042
|
Ux = 1;
|
|
30041
30043
|
var s = function() {
|
|
@@ -30084,10 +30086,10 @@ function vR() {
|
|
|
30084
30086
|
}, Dw = p, Dw;
|
|
30085
30087
|
}
|
|
30086
30088
|
var zw, Nx;
|
|
30087
|
-
function
|
|
30089
|
+
function bR() {
|
|
30088
30090
|
if (Nx) return zw;
|
|
30089
30091
|
Nx = 1;
|
|
30090
|
-
var s = rD(), l =
|
|
30092
|
+
var s = rD(), l = vR(), o = /* @__PURE__ */ r2(), c = /* @__PURE__ */ uD(), p = /* @__PURE__ */ gR(), b = function() {
|
|
30091
30093
|
};
|
|
30092
30094
|
process.env.NODE_ENV !== "production" && (b = function(_) {
|
|
30093
30095
|
var C = "Warning: " + _;
|
|
@@ -30405,7 +30407,7 @@ Valid keys: ` + JSON.stringify(Object.keys(tt), null, " ")
|
|
|
30405
30407
|
}, zw;
|
|
30406
30408
|
}
|
|
30407
30409
|
var Mw, Lx;
|
|
30408
|
-
function
|
|
30410
|
+
function yR() {
|
|
30409
30411
|
if (Lx) return Mw;
|
|
30410
30412
|
Lx = 1;
|
|
30411
30413
|
var s = /* @__PURE__ */ r2();
|
|
@@ -30457,13 +30459,13 @@ function cD() {
|
|
|
30457
30459
|
if (Hx) return b_.exports;
|
|
30458
30460
|
if (Hx = 1, process.env.NODE_ENV !== "production") {
|
|
30459
30461
|
var s = rD(), l = !0;
|
|
30460
|
-
b_.exports = /* @__PURE__ */
|
|
30462
|
+
b_.exports = /* @__PURE__ */ bR()(s.isElement, l);
|
|
30461
30463
|
} else
|
|
30462
|
-
b_.exports = /* @__PURE__ */
|
|
30464
|
+
b_.exports = /* @__PURE__ */ yR()();
|
|
30463
30465
|
return b_.exports;
|
|
30464
30466
|
}
|
|
30465
30467
|
var __ = { exports: {} }, Bx;
|
|
30466
|
-
function
|
|
30468
|
+
function _R() {
|
|
30467
30469
|
if (Bx) return __.exports;
|
|
30468
30470
|
Bx = 1;
|
|
30469
30471
|
function s(o) {
|
|
@@ -30507,7 +30509,7 @@ function V_() {
|
|
|
30507
30509
|
return sf;
|
|
30508
30510
|
}
|
|
30509
30511
|
var rf = {}, Vx;
|
|
30510
|
-
function
|
|
30512
|
+
function SR() {
|
|
30511
30513
|
if (Vx) return rf;
|
|
30512
30514
|
Vx = 1, Object.defineProperty(rf, "__esModule", {
|
|
30513
30515
|
value: !0
|
|
@@ -30543,7 +30545,7 @@ function u2() {
|
|
|
30543
30545
|
Gx = 1, Object.defineProperty(Kn, "__esModule", {
|
|
30544
30546
|
value: !0
|
|
30545
30547
|
}), Kn.addClassName = k, Kn.addEvent = S, Kn.addUserSelectStyles = F, Kn.createCSSTransform = N, Kn.createSVGTransform = L, Kn.getTouch = G, Kn.getTouchIdentifier = j, Kn.getTranslation = O, Kn.innerHeight = D, Kn.innerWidth = M, Kn.matchesSelector = p, Kn.matchesSelectorAndParentsTo = b, Kn.offsetXYFromParent = A, Kn.outerHeight = C, Kn.outerWidth = x, Kn.removeClassName = dt, Kn.removeEvent = _, Kn.scheduleRemoveUserSelectStyles = J;
|
|
30546
|
-
var s = V_(), l = o(
|
|
30548
|
+
var s = V_(), l = o(SR());
|
|
30547
30549
|
function o(R, B) {
|
|
30548
30550
|
if (typeof WeakMap == "function") var rt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap();
|
|
30549
30551
|
return (o = function(pt, U) {
|
|
@@ -30784,7 +30786,7 @@ function dD() {
|
|
|
30784
30786
|
return S_;
|
|
30785
30787
|
}
|
|
30786
30788
|
var Yx;
|
|
30787
|
-
function
|
|
30789
|
+
function wR() {
|
|
30788
30790
|
if (Yx) return f0;
|
|
30789
30791
|
Yx = 1, Object.defineProperty(f0, "__esModule", {
|
|
30790
30792
|
value: !0
|
|
@@ -31085,7 +31087,7 @@ function SR() {
|
|
|
31085
31087
|
}), f0;
|
|
31086
31088
|
}
|
|
31087
31089
|
var Xx;
|
|
31088
|
-
function
|
|
31090
|
+
function ER() {
|
|
31089
31091
|
return Xx || (Xx = 1, (function(s) {
|
|
31090
31092
|
Object.defineProperty(s, "__esModule", {
|
|
31091
31093
|
value: !0
|
|
@@ -31095,7 +31097,7 @@ function wR() {
|
|
|
31095
31097
|
return C.default;
|
|
31096
31098
|
}
|
|
31097
31099
|
}), s.default = void 0;
|
|
31098
|
-
var l = M(B_), o = D(/* @__PURE__ */ cD()), c = D(j_), p =
|
|
31100
|
+
var l = M(B_), o = D(/* @__PURE__ */ cD()), c = D(j_), p = _R(), b = u2(), S = fD(), _ = V_(), C = D(wR()), x = D(dD());
|
|
31099
31101
|
function D(j) {
|
|
31100
31102
|
return j && j.__esModule ? j : { default: j };
|
|
31101
31103
|
}
|
|
@@ -31399,17 +31401,17 @@ function wR() {
|
|
|
31399
31401
|
})(Ew)), Ew;
|
|
31400
31402
|
}
|
|
31401
31403
|
var Px;
|
|
31402
|
-
function
|
|
31404
|
+
function CR() {
|
|
31403
31405
|
if (Px) return c0.exports;
|
|
31404
31406
|
Px = 1;
|
|
31405
31407
|
const {
|
|
31406
31408
|
default: s,
|
|
31407
31409
|
DraggableCore: l
|
|
31408
|
-
} =
|
|
31410
|
+
} = ER();
|
|
31409
31411
|
return c0.exports = s, c0.exports.default = s, c0.exports.DraggableCore = l, c0.exports;
|
|
31410
31412
|
}
|
|
31411
|
-
var
|
|
31412
|
-
const
|
|
31413
|
+
var xR = CR();
|
|
31414
|
+
const TR = /* @__PURE__ */ EA(xR);
|
|
31413
31415
|
var da = function() {
|
|
31414
31416
|
return da = Object.assign || function(s) {
|
|
31415
31417
|
for (var l, o = 1, c = arguments.length; o < c; o++) {
|
|
@@ -31435,7 +31437,7 @@ var da = function() {
|
|
|
31435
31437
|
height: "20px",
|
|
31436
31438
|
position: "absolute",
|
|
31437
31439
|
zIndex: 1
|
|
31438
|
-
},
|
|
31440
|
+
}, DR = {
|
|
31439
31441
|
top: da(da({}, Qx), { top: "-5px" }),
|
|
31440
31442
|
right: da(da({}, Zx), { left: void 0, right: "-5px" }),
|
|
31441
31443
|
bottom: da(da({}, Qx), { top: void 0, bottom: "-5px" }),
|
|
@@ -31444,16 +31446,16 @@ var da = function() {
|
|
|
31444
31446
|
bottomRight: da(da({}, w_), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
31445
31447
|
bottomLeft: da(da({}, w_), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
31446
31448
|
topLeft: da(da({}, w_), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
31447
|
-
},
|
|
31449
|
+
}, zR = OT(function(s) {
|
|
31448
31450
|
var l = s.onResizeStart, o = s.direction, c = s.children, p = s.replaceStyles, b = s.className, S = or(function(x) {
|
|
31449
31451
|
l(x, o);
|
|
31450
31452
|
}, [l, o]), _ = or(function(x) {
|
|
31451
31453
|
l(x, o);
|
|
31452
31454
|
}, [l, o]), C = fs(function() {
|
|
31453
|
-
return da(da({ position: "absolute", userSelect: "none" },
|
|
31455
|
+
return da(da({ position: "absolute", userSelect: "none" }, DR[o]), p ?? {});
|
|
31454
31456
|
}, [p, o]);
|
|
31455
31457
|
return $("div", { className: b || void 0, style: C, onMouseDown: S, onTouchStart: _, children: c });
|
|
31456
|
-
}),
|
|
31458
|
+
}), MR = /* @__PURE__ */ (function() {
|
|
31457
31459
|
var s = function(l, o) {
|
|
31458
31460
|
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
|
|
31459
31461
|
c.__proto__ = p;
|
|
@@ -31478,7 +31480,7 @@ var da = function() {
|
|
|
31478
31480
|
}
|
|
31479
31481
|
return s;
|
|
31480
31482
|
}, nr.apply(this, arguments);
|
|
31481
|
-
},
|
|
31483
|
+
}, AR = {
|
|
31482
31484
|
width: "auto",
|
|
31483
31485
|
height: "auto"
|
|
31484
31486
|
}, E_ = function(s, l, o) {
|
|
@@ -31490,7 +31492,7 @@ var da = function() {
|
|
|
31490
31492
|
return new RegExp(s, "i").test(l);
|
|
31491
31493
|
}, C_ = function(s) {
|
|
31492
31494
|
return !!(s.touches && s.touches.length);
|
|
31493
|
-
},
|
|
31495
|
+
}, RR = function(s) {
|
|
31494
31496
|
return !!((s.clientX || s.clientX === 0) && (s.clientY || s.clientY === 0));
|
|
31495
31497
|
}, Jx = function(s, l, o) {
|
|
31496
31498
|
o === void 0 && (o = 0);
|
|
@@ -31518,16 +31520,16 @@ var da = function() {
|
|
|
31518
31520
|
}
|
|
31519
31521
|
}
|
|
31520
31522
|
return s;
|
|
31521
|
-
},
|
|
31523
|
+
}, OR = function(s, l, o, c, p, b, S) {
|
|
31522
31524
|
return c = x_(c, s.width, l, o), p = x_(p, s.height, l, o), b = x_(b, s.width, l, o), S = x_(S, s.height, l, o), {
|
|
31523
31525
|
maxWidth: typeof c > "u" ? void 0 : Number(c),
|
|
31524
31526
|
maxHeight: typeof p > "u" ? void 0 : Number(p),
|
|
31525
31527
|
minWidth: typeof b > "u" ? void 0 : Number(b),
|
|
31526
31528
|
minHeight: typeof S > "u" ? void 0 : Number(S)
|
|
31527
31529
|
};
|
|
31528
|
-
},
|
|
31530
|
+
}, UR = function(s) {
|
|
31529
31531
|
return Array.isArray(s) ? s : [s, s];
|
|
31530
|
-
},
|
|
31532
|
+
}, NR = [
|
|
31531
31533
|
"as",
|
|
31532
31534
|
"ref",
|
|
31533
31535
|
"style",
|
|
@@ -31559,10 +31561,10 @@ var da = function() {
|
|
|
31559
31561
|
"scale",
|
|
31560
31562
|
"resizeRatio",
|
|
31561
31563
|
"snapGap"
|
|
31562
|
-
], $x = "__resizable_base__",
|
|
31564
|
+
], $x = "__resizable_base__", LR = (
|
|
31563
31565
|
/** @class */
|
|
31564
31566
|
(function(s) {
|
|
31565
|
-
|
|
31567
|
+
MR(l, s);
|
|
31566
31568
|
function l(o) {
|
|
31567
31569
|
var c, p, b, S, _ = s.call(this, o) || this;
|
|
31568
31570
|
return _.ratio = 1, _.resizable = null, _.parentLeft = 0, _.parentTop = 0, _.resizableLeft = 0, _.resizableRight = 0, _.resizableTop = 0, _.resizableBottom = 0, _.targetLeft = 0, _.targetTop = 0, _.delta = {
|
|
@@ -31620,7 +31622,7 @@ var da = function() {
|
|
|
31620
31622
|
configurable: !0
|
|
31621
31623
|
}), Object.defineProperty(l.prototype, "propsSize", {
|
|
31622
31624
|
get: function() {
|
|
31623
|
-
return this.props.size || this.props.defaultSize ||
|
|
31625
|
+
return this.props.size || this.props.defaultSize || AR;
|
|
31624
31626
|
},
|
|
31625
31627
|
enumerable: !1,
|
|
31626
31628
|
configurable: !0
|
|
@@ -31695,7 +31697,7 @@ var da = function() {
|
|
|
31695
31697
|
} else this.props.bounds === "window" ? this.window && (C = S ? this.resizableRight : this.window.innerWidth - this.resizableLeft, x = _ ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (C = S ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), x = _ ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
|
|
31696
31698
|
return C && Number.isFinite(C) && (o = o && o < C ? o : C), x && Number.isFinite(x) && (c = c && c < x ? c : x), { maxWidth: o, maxHeight: c };
|
|
31697
31699
|
}, l.prototype.calculateNewSizeFromDirection = function(o, c) {
|
|
31698
|
-
var p = this.props.scale || 1, b =
|
|
31700
|
+
var p = this.props.scale || 1, b = UR(this.props.resizeRatio || 1), S = b[0], _ = b[1], C = this.state, x = C.direction, D = C.original, M = this.props, A = M.lockAspectRatio, N = M.lockAspectRatioExtraHeight, L = M.lockAspectRatioExtraWidth, O = D.width, G = D.height, j = N || 0, F = L || 0;
|
|
31699
31701
|
return km("right", x) && (O = D.width + (o - D.x) * S / p, A && (G = (O - F) / this.ratio + j)), km("left", x) && (O = D.width - (o - D.x) * S / p, A && (G = (O - F) / this.ratio + j)), km("bottom", x) && (G = D.height + (c - D.y) * _ / p, A && (O = (G - j) * this.ratio + F)), km("top", x) && (G = D.height - (c - D.y) * _ / p, A && (O = (G - j) * this.ratio + F)), { newWidth: O, newHeight: G };
|
|
31700
31702
|
}, l.prototype.calculateNewSizeFromAspectRatio = function(o, c, p, b) {
|
|
31701
31703
|
var S = this.props, _ = S.lockAspectRatio, C = S.lockAspectRatioExtraHeight, x = S.lockAspectRatioExtraWidth, D = typeof b.width > "u" ? 10 : b.width, M = typeof p.width > "u" || p.width < 0 ? o : p.width, A = typeof b.height > "u" ? 10 : b.height, N = typeof p.height > "u" || p.height < 0 ? c : p.height, L = C || 0, O = x || 0;
|
|
@@ -31725,7 +31727,7 @@ var da = function() {
|
|
|
31725
31727
|
}, l.prototype.onResizeStart = function(o, c) {
|
|
31726
31728
|
if (!(!this.resizable || !this.window)) {
|
|
31727
31729
|
var p = 0, b = 0;
|
|
31728
|
-
if (o.nativeEvent &&
|
|
31730
|
+
if (o.nativeEvent && RR(o.nativeEvent) ? (p = o.nativeEvent.clientX, b = o.nativeEvent.clientY) : o.nativeEvent && C_(o.nativeEvent) && (p = o.nativeEvent.touches[0].clientX, b = o.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
|
|
31729
31731
|
var S = this.props.onResizeStart(o, c, this.resizable);
|
|
31730
31732
|
if (S === !1)
|
|
31731
31733
|
return;
|
|
@@ -31762,7 +31764,7 @@ var da = function() {
|
|
|
31762
31764
|
o.preventDefault(), o.stopPropagation();
|
|
31763
31765
|
} catch {
|
|
31764
31766
|
}
|
|
31765
|
-
var p = this.props, b = p.maxWidth, S = p.maxHeight, _ = p.minWidth, C = p.minHeight, x = C_(o) ? o.touches[0].clientX : o.clientX, D = C_(o) ? o.touches[0].clientY : o.clientY, M = this.state, A = M.direction, N = M.original, L = M.width, O = M.height, G = this.getParentSize(), j =
|
|
31767
|
+
var p = this.props, b = p.maxWidth, S = p.maxHeight, _ = p.minWidth, C = p.minHeight, x = C_(o) ? o.touches[0].clientX : o.clientX, D = C_(o) ? o.touches[0].clientY : o.clientY, M = this.state, A = M.direction, N = M.original, L = M.width, O = M.height, G = this.getParentSize(), j = OR(G, this.window.innerWidth, this.window.innerHeight, b, S, _, C);
|
|
31766
31768
|
b = j.maxWidth, S = j.maxHeight, _ = j.minWidth, C = j.minHeight;
|
|
31767
31769
|
var F = this.calculateNewSizeFromDirection(x, D), J = F.newHeight, W = F.newWidth, k = this.calculateNewMaxFromBoundary(b, S);
|
|
31768
31770
|
this.props.snap && this.props.snap.x && (W = Jx(W, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (J = Jx(J, this.props.snap.y, this.props.snapGap));
|
|
@@ -31823,12 +31825,12 @@ var da = function() {
|
|
|
31823
31825
|
if (!p)
|
|
31824
31826
|
return null;
|
|
31825
31827
|
var D = Object.keys(p).map(function(M) {
|
|
31826
|
-
return p[M] !== !1 ? $(
|
|
31828
|
+
return p[M] !== !1 ? $(zR, { direction: M, onResizeStart: o.onResizeStart, replaceStyles: b && b[M], className: S && S[M], children: x && x[M] ? x[M] : null }, M) : null;
|
|
31827
31829
|
});
|
|
31828
31830
|
return $("div", { className: C, style: _, children: D });
|
|
31829
31831
|
}, l.prototype.render = function() {
|
|
31830
31832
|
var o = this, c = Object.keys(this.props).reduce(function(S, _) {
|
|
31831
|
-
return
|
|
31833
|
+
return NR.indexOf(_) !== -1 || (S[_] = o.props[_]), S;
|
|
31832
31834
|
}, {}), p = nr(nr(nr({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
|
|
31833
31835
|
this.state.flexBasis && (p.flexBasis = this.state.flexBasis);
|
|
31834
31836
|
var b = this.props.as || "div";
|
|
@@ -31891,7 +31893,7 @@ var Kw = function(s, l) {
|
|
|
31891
31893
|
for (var p in c) c.hasOwnProperty(p) && (o[p] = c[p]);
|
|
31892
31894
|
}, Kw(s, l);
|
|
31893
31895
|
};
|
|
31894
|
-
function
|
|
31896
|
+
function HR(s, l) {
|
|
31895
31897
|
Kw(s, l);
|
|
31896
31898
|
function o() {
|
|
31897
31899
|
this.constructor = s;
|
|
@@ -31907,7 +31909,7 @@ var wa = function() {
|
|
|
31907
31909
|
return l;
|
|
31908
31910
|
}, wa.apply(this, arguments);
|
|
31909
31911
|
};
|
|
31910
|
-
function
|
|
31912
|
+
function BR(s, l) {
|
|
31911
31913
|
var o = {};
|
|
31912
31914
|
for (var c in s) Object.prototype.hasOwnProperty.call(s, c) && l.indexOf(c) < 0 && (o[c] = s[c]);
|
|
31913
31915
|
if (s != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -31915,14 +31917,14 @@ function HR(s, l) {
|
|
|
31915
31917
|
l.indexOf(c[p]) < 0 && Object.prototype.propertyIsEnumerable.call(s, c[p]) && (o[c[p]] = s[c[p]]);
|
|
31916
31918
|
return o;
|
|
31917
31919
|
}
|
|
31918
|
-
var
|
|
31920
|
+
var jR = {
|
|
31919
31921
|
width: "auto",
|
|
31920
31922
|
height: "auto",
|
|
31921
31923
|
display: "inline-block",
|
|
31922
31924
|
position: "absolute",
|
|
31923
31925
|
top: 0,
|
|
31924
31926
|
left: 0
|
|
31925
|
-
},
|
|
31927
|
+
}, VR = function(s) {
|
|
31926
31928
|
return {
|
|
31927
31929
|
bottom: s,
|
|
31928
31930
|
bottomLeft: s,
|
|
@@ -31933,10 +31935,10 @@ var BR = {
|
|
|
31933
31935
|
topLeft: s,
|
|
31934
31936
|
topRight: s
|
|
31935
31937
|
};
|
|
31936
|
-
},
|
|
31938
|
+
}, GR = (
|
|
31937
31939
|
/** @class */
|
|
31938
31940
|
(function(s) {
|
|
31939
|
-
|
|
31941
|
+
HR(l, s);
|
|
31940
31942
|
function l(o) {
|
|
31941
31943
|
var c = s.call(this, o) || this;
|
|
31942
31944
|
return c.resizingPosition = { x: 0, y: 0 }, c.offsetFromParent = { left: 0, top: 0 }, c.resizableElement = { current: null }, c.originalPosition = { x: 0, y: 0 }, c.state = {
|
|
@@ -32130,16 +32132,16 @@ var BR = {
|
|
|
32130
32132
|
}, l.prototype.render = function() {
|
|
32131
32133
|
var o = this, c = this.props, p = c.disableDragging, b = c.style, S = c.dragHandleClassName, _ = c.position, C = c.onMouseDown, x = c.onMouseUp, D = c.dragAxis, M = c.dragGrid, A = c.bounds, N = c.enableUserSelectHack, L = c.cancel, O = c.children;
|
|
32132
32134
|
c.onResizeStart, c.onResize, c.onResizeStop, c.onDragStart, c.onDrag, c.onDragStop;
|
|
32133
|
-
var G = c.resizeHandleStyles, j = c.resizeHandleClasses, F = c.resizeHandleComponent, J = c.enableResizing, W = c.resizeGrid, k = c.resizeHandleWrapperClass, dt = c.resizeHandleWrapperStyle, R = c.scale, B = c.allowAnyClick, rt = c.dragPositionOffset, at =
|
|
32135
|
+
var G = c.resizeHandleStyles, j = c.resizeHandleClasses, F = c.resizeHandleComponent, J = c.enableResizing, W = c.resizeGrid, k = c.resizeHandleWrapperClass, dt = c.resizeHandleWrapperStyle, R = c.scale, B = c.allowAnyClick, rt = c.dragPositionOffset, at = BR(c, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]), pt = this.props.default ? wa({}, this.props.default) : void 0;
|
|
32134
32136
|
delete at.default;
|
|
32135
|
-
var U = p || S ? { cursor: "auto" } : { cursor: "move" }, et = wa(wa(wa({},
|
|
32137
|
+
var U = p || S ? { cursor: "auto" } : { cursor: "move" }, et = wa(wa(wa({}, jR), U), b), ht = this.offsetFromParent, xt = ht.left, H = ht.top, lt;
|
|
32136
32138
|
_ && (lt = {
|
|
32137
32139
|
x: _.x - xt,
|
|
32138
32140
|
y: _.y - H
|
|
32139
32141
|
});
|
|
32140
32142
|
var bt = this.state.resizing ? void 0 : lt, Dt = this.state.resizing ? "both" : D;
|
|
32141
32143
|
return Xw(
|
|
32142
|
-
|
|
32144
|
+
TR,
|
|
32143
32145
|
{
|
|
32144
32146
|
ref: function(tt) {
|
|
32145
32147
|
tt && (o.draggable = tt);
|
|
@@ -32164,9 +32166,9 @@ var BR = {
|
|
|
32164
32166
|
nodeRef: this.resizableElement,
|
|
32165
32167
|
positionOffset: rt
|
|
32166
32168
|
},
|
|
32167
|
-
Xw(
|
|
32169
|
+
Xw(LR, wa({}, at, { ref: function(tt) {
|
|
32168
32170
|
tt && (o.resizable = tt, o.resizableElement.current = tt.resizable);
|
|
32169
|
-
}, defaultSize: pt, size: this.props.size, enable: typeof J == "boolean" ?
|
|
32171
|
+
}, defaultSize: pt, size: this.props.size, enable: typeof J == "boolean" ? VR(J) : J, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: et, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: W, handleWrapperClass: k, handleWrapperStyle: dt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: G, handleClasses: j, handleComponent: F, scale: this.props.scale }), O)
|
|
32170
32172
|
);
|
|
32171
32173
|
}, l.defaultProps = {
|
|
32172
32174
|
maxWidth: Number.MAX_SAFE_INTEGER,
|
|
@@ -32187,15 +32189,15 @@ var BR = {
|
|
|
32187
32189
|
}, l;
|
|
32188
32190
|
})(UT)
|
|
32189
32191
|
);
|
|
32190
|
-
const
|
|
32191
|
-
window:
|
|
32192
|
-
handle:
|
|
32193
|
-
title:
|
|
32194
|
-
body:
|
|
32195
|
-
close:
|
|
32192
|
+
const qR = "_window_ybolb_1", kR = "_handle_ybolb_15", YR = "_title_ybolb_33", XR = "_body_ybolb_44", PR = "_close_ybolb_51", Ym = {
|
|
32193
|
+
window: qR,
|
|
32194
|
+
handle: kR,
|
|
32195
|
+
title: YR,
|
|
32196
|
+
body: XR,
|
|
32197
|
+
close: PR
|
|
32196
32198
|
};
|
|
32197
32199
|
let Wx = 1e3;
|
|
32198
|
-
const
|
|
32200
|
+
const QR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p = 400, defaultHeight: b = 300, minWidth: S = 280, minHeight: _ = 200, storageKey: C, onClose: x }) => {
|
|
32199
32201
|
const [D, M] = Ae(() => ++Wx), A = C ? JSON.parse(localStorage.getItem(`window:${C}`) ?? "null") : null, N = (A == null ? void 0 : A.width) ?? p, L = (A == null ? void 0 : A.height) ?? b;
|
|
32200
32202
|
function O() {
|
|
32201
32203
|
M(++Wx);
|
|
@@ -32205,7 +32207,7 @@ const PR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p =
|
|
|
32205
32207
|
}
|
|
32206
32208
|
return KM(
|
|
32207
32209
|
/* @__PURE__ */ Rt(
|
|
32208
|
-
|
|
32210
|
+
GR,
|
|
32209
32211
|
{
|
|
32210
32212
|
onMouseDown: O,
|
|
32211
32213
|
onResizeStop: G,
|
|
@@ -32232,17 +32234,17 @@ const PR = ({ title: s, children: l, defaultX: o, defaultY: c, defaultWidth: p =
|
|
|
32232
32234
|
),
|
|
32233
32235
|
document.body
|
|
32234
32236
|
);
|
|
32235
|
-
},
|
|
32236
|
-
assetsPanel:
|
|
32237
|
-
toolbar:
|
|
32238
|
-
searchWrapper:
|
|
32239
|
-
search:
|
|
32240
|
-
searchClear:
|
|
32241
|
-
categorySelect:
|
|
32242
|
-
assets:
|
|
32243
|
-
assetRow:
|
|
32244
|
-
texturePreview:
|
|
32245
|
-
assetIcon:
|
|
32237
|
+
}, ZR = "_assetsPanel_5ux7f_1", KR = "_toolbar_5ux7f_8", JR = "_searchWrapper_5ux7f_17", $R = "_search_5ux7f_17", WR = "_searchClear_5ux7f_46", FR = "_categorySelect_5ux7f_64", IR = "_assets_5ux7f_1", tO = "_assetRow_5ux7f_93", eO = "_texturePreview_5ux7f_122", nO = "_assetIcon_5ux7f_138", Oa = {
|
|
32238
|
+
assetsPanel: ZR,
|
|
32239
|
+
toolbar: KR,
|
|
32240
|
+
searchWrapper: JR,
|
|
32241
|
+
search: $R,
|
|
32242
|
+
searchClear: WR,
|
|
32243
|
+
categorySelect: FR,
|
|
32244
|
+
assets: IR,
|
|
32245
|
+
assetRow: tO,
|
|
32246
|
+
texturePreview: eO,
|
|
32247
|
+
assetIcon: nO
|
|
32246
32248
|
};
|
|
32247
32249
|
function Hl(s, l, o, c) {
|
|
32248
32250
|
return new (o || (o = Promise))((function(p, b) {
|
|
@@ -32338,8 +32340,8 @@ function Fx(s, l, o) {
|
|
|
32338
32340
|
const c = hD(s, l || {});
|
|
32339
32341
|
return o == null || o.appendChild(c), c;
|
|
32340
32342
|
}
|
|
32341
|
-
var
|
|
32342
|
-
const
|
|
32343
|
+
var aO = Object.freeze({ __proto__: null, createElement: Fx, default: Fx });
|
|
32344
|
+
const lO = { fetchBlob: function(s, l, o) {
|
|
32343
32345
|
return Hl(this, void 0, void 0, (function* () {
|
|
32344
32346
|
const c = yield fetch(s, o);
|
|
32345
32347
|
if (c.status >= 400) throw new Error(`Failed to fetch ${s}: ${c.status} (${c.statusText})`);
|
|
@@ -32395,7 +32397,7 @@ function hf(s, l) {
|
|
|
32395
32397
|
o && (o(), o = void 0), p.forEach(((b) => b()));
|
|
32396
32398
|
};
|
|
32397
32399
|
}
|
|
32398
|
-
class
|
|
32400
|
+
class iO extends A0 {
|
|
32399
32401
|
get isPlayingSignal() {
|
|
32400
32402
|
return this._isPlaying;
|
|
32401
32403
|
}
|
|
@@ -32528,11 +32530,11 @@ class lO extends A0 {
|
|
|
32528
32530
|
return this.media.setSinkId(l);
|
|
32529
32531
|
}
|
|
32530
32532
|
}
|
|
32531
|
-
function
|
|
32533
|
+
function oO({ maxTop: s, maxBottom: l, halfHeight: o, vScale: c, barMinHeight: p = 0, barAlign: b }) {
|
|
32532
32534
|
let S = Math.round(s * o * c), _ = S + Math.round(l * o * c) || 1;
|
|
32533
32535
|
return _ < p && (_ = p, b || (S = _ / 2)), { topHeight: S, totalHeight: _ };
|
|
32534
32536
|
}
|
|
32535
|
-
function
|
|
32537
|
+
function sO({ barAlign: s, halfHeight: l, topHeight: o, totalHeight: c, canvasHeight: p }) {
|
|
32536
32538
|
return s === "top" ? 0 : s === "bottom" ? p - c : l - o;
|
|
32537
32539
|
}
|
|
32538
32540
|
function Ix(s, l, o) {
|
|
@@ -32556,7 +32558,7 @@ function mD(s) {
|
|
|
32556
32558
|
const l = s._cleanup;
|
|
32557
32559
|
typeof l == "function" && l();
|
|
32558
32560
|
}
|
|
32559
|
-
function
|
|
32561
|
+
function rO(s) {
|
|
32560
32562
|
const l = Jn({ scrollLeft: s.scrollLeft, scrollWidth: s.scrollWidth, clientWidth: s.clientWidth }), o = rh((() => (function(b) {
|
|
32561
32563
|
const { scrollLeft: S, scrollWidth: _, clientWidth: C } = b;
|
|
32562
32564
|
if (_ === 0) return { startX: 0, endX: 1 };
|
|
@@ -32571,7 +32573,7 @@ function sO(s) {
|
|
|
32571
32573
|
s.removeEventListener("scroll", p), mD(l);
|
|
32572
32574
|
} };
|
|
32573
32575
|
}
|
|
32574
|
-
class
|
|
32576
|
+
class uO extends A0 {
|
|
32575
32577
|
constructor(l, o) {
|
|
32576
32578
|
super(), this.timeouts = [], this.isScrollable = !1, this.audioData = null, this.resizeObserver = null, this.lastContainerWidth = 0, this.isDragging = !1, this.subscriptions = [], this.unsubscribeOnScroll = [], this.dragStream = null, this.scrollStream = null, this.subscriptions = [], this.options = l;
|
|
32577
32579
|
const c = this.parentFromOptionsContainer(l.container);
|
|
@@ -32591,7 +32593,7 @@ class rO extends A0 {
|
|
|
32591
32593
|
})), this.wrapper.addEventListener("dblclick", ((o) => {
|
|
32592
32594
|
const c = this.wrapper.getBoundingClientRect(), [p, b] = Ix(c, o.clientX, o.clientY);
|
|
32593
32595
|
this.emit("dblclick", p, b);
|
|
32594
|
-
})), this.options.dragToSeek !== !0 && typeof this.options.dragToSeek != "object" || this.initDrag(), this.scrollStream =
|
|
32596
|
+
})), this.options.dragToSeek !== !0 && typeof this.options.dragToSeek != "object" || this.initDrag(), this.scrollStream = rO(this.scrollContainer);
|
|
32595
32597
|
const l = hf((() => {
|
|
32596
32598
|
const { startX: o, endX: c } = this.scrollStream.percentages.value, { left: p, right: b } = this.scrollStream.bounds.value;
|
|
32597
32599
|
this.emit("scroll", o, c, p, b);
|
|
@@ -32808,7 +32810,7 @@ class rO extends A0 {
|
|
|
32808
32810
|
for (let ht = 0; ht <= rt; ht++) {
|
|
32809
32811
|
const xt = Math.round(ht * O);
|
|
32810
32812
|
if (xt > pt) {
|
|
32811
|
-
const { topHeight: bt, totalHeight: Dt } =
|
|
32813
|
+
const { topHeight: bt, totalHeight: Dt } = oO({ maxTop: U, maxBottom: et, halfHeight: F, vScale: J, barMinHeight: dt, barAlign: k }), tt = sO({ barAlign: k, halfHeight: F, topHeight: bt, totalHeight: Dt, canvasHeight: W });
|
|
32812
32814
|
at.push({ x: pt * G, y: tt, width: j, height: Dt }), pt = xt, U = 0, et = 0;
|
|
32813
32815
|
}
|
|
32814
32816
|
const H = Math.abs(R[ht] || 0), lt = Math.abs(B[ht] || 0);
|
|
@@ -32985,7 +32987,7 @@ class rO extends A0 {
|
|
|
32985
32987
|
}));
|
|
32986
32988
|
}
|
|
32987
32989
|
}
|
|
32988
|
-
class
|
|
32990
|
+
class cO extends A0 {
|
|
32989
32991
|
constructor() {
|
|
32990
32992
|
super(...arguments), this.animationFrameId = null, this.isRunning = !1;
|
|
32991
32993
|
}
|
|
@@ -33125,8 +33127,8 @@ class Rw extends A0 {
|
|
|
33125
33127
|
}
|
|
33126
33128
|
}
|
|
33127
33129
|
}
|
|
33128
|
-
const
|
|
33129
|
-
class E0 extends
|
|
33130
|
+
const fO = { waveColor: "#999", progressColor: "#555", cursorWidth: 1, minPxPerSec: 0, fillParent: !0, interact: !0, dragToSeek: !1, autoScroll: !0, autoCenter: !0, sampleRate: 8e3 };
|
|
33131
|
+
class E0 extends iO {
|
|
33130
33132
|
static create(l) {
|
|
33131
33133
|
return new E0(l);
|
|
33132
33134
|
}
|
|
@@ -33138,7 +33140,7 @@ class E0 extends lO {
|
|
|
33138
33140
|
}
|
|
33139
33141
|
constructor(l) {
|
|
33140
33142
|
const o = l.media || (l.backend === "WebAudio" ? new Rw() : void 0);
|
|
33141
|
-
super({ media: o, mediaControls: l.mediaControls, autoplay: l.autoplay, playbackRate: l.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({},
|
|
33143
|
+
super({ media: o, mediaControls: l.mediaControls, autoplay: l.autoplay, playbackRate: l.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, fO, l);
|
|
33142
33144
|
const { state: c, actions: p } = (function(_) {
|
|
33143
33145
|
var C, x, D, M, A, N;
|
|
33144
33146
|
const L = (C = _ == null ? void 0 : _.currentTime) !== null && C !== void 0 ? C : Jn(0), O = (x = _ == null ? void 0 : _.duration) !== null && x !== void 0 ? x : Jn(0), G = (D = _ == null ? void 0 : _.isPlaying) !== null && D !== void 0 ? D : Jn(!1), j = (M = _ == null ? void 0 : _.isSeeking) !== null && M !== void 0 ? M : Jn(!1), F = (A = _ == null ? void 0 : _.volume) !== null && A !== void 0 ? A : Jn(1), J = (N = _ == null ? void 0 : _.playbackRate) !== null && N !== void 0 ? N : Jn(1), W = Jn(null), k = Jn(null), dt = Jn(""), R = Jn(0), B = Jn(0), rt = rh((() => !G.value), [G]), at = rh((() => W.value !== null), [W]), pt = rh((() => at.value && O.value > 0), [at, O]), U = rh((() => L.value), [L]), et = rh((() => O.value > 0 ? L.value / O.value : 0), [L, O]);
|
|
@@ -33169,9 +33171,9 @@ class E0 extends lO {
|
|
|
33169
33171
|
B.set(Math.max(0, ht));
|
|
33170
33172
|
} } };
|
|
33171
33173
|
})({ isPlaying: this.isPlayingSignal, currentTime: this.currentTimeSignal, duration: this.durationSignal, volume: this.volumeSignal, playbackRate: this.playbackRateSignal, isSeeking: this.seekingSignal });
|
|
33172
|
-
this.wavesurferState = c, this.wavesurferActions = p, this.timer = new
|
|
33174
|
+
this.wavesurferState = c, this.wavesurferActions = p, this.timer = new cO();
|
|
33173
33175
|
const b = o ? void 0 : this.getMediaElement();
|
|
33174
|
-
this.renderer = new
|
|
33176
|
+
this.renderer = new uO(this.options, b), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initReactiveState(), this.initPlugins();
|
|
33175
33177
|
const S = this.options.url || this.getSrc() || "";
|
|
33176
33178
|
Promise.resolve().then((() => {
|
|
33177
33179
|
this.emit("init");
|
|
@@ -33324,7 +33326,7 @@ class E0 extends lO {
|
|
|
33324
33326
|
const _ = this.options.fetchParams || {};
|
|
33325
33327
|
window.AbortController && !_.signal && (this.abortController = new AbortController(), _.signal = this.abortController.signal);
|
|
33326
33328
|
const C = (D) => this.emit("loading", D);
|
|
33327
|
-
o = yield
|
|
33329
|
+
o = yield lO.fetchBlob(l, C, _);
|
|
33328
33330
|
const x = this.options.blobMimeType;
|
|
33329
33331
|
x && (o = new Blob([o], { type: x }));
|
|
33330
33332
|
}
|
|
@@ -33449,7 +33451,7 @@ E0.BasePlugin = class extends A0 {
|
|
|
33449
33451
|
destroy() {
|
|
33450
33452
|
this.emit("destroy"), this.subscriptions.forEach(((s) => s())), this.subscriptions = [], this.isDestroyed = !0, this.wavesurfer = void 0;
|
|
33451
33453
|
}
|
|
33452
|
-
}, E0.dom =
|
|
33454
|
+
}, E0.dom = aO;
|
|
33453
33455
|
/*! *****************************************************************************
|
|
33454
33456
|
Copyright (c) Microsoft Corporation.
|
|
33455
33457
|
|
|
@@ -33483,8 +33485,8 @@ function gD(s, l) {
|
|
|
33483
33485
|
};
|
|
33484
33486
|
}), [s, l.plugins, ...b]), o;
|
|
33485
33487
|
}
|
|
33486
|
-
const bD = /^on([A-Z])/,
|
|
33487
|
-
function
|
|
33488
|
+
const bD = /^on([A-Z])/, dO = (s) => bD.test(s);
|
|
33489
|
+
function hO(s, l) {
|
|
33488
33490
|
const o = fs((() => Object.entries(l).flat()), [l]);
|
|
33489
33491
|
Bn((() => {
|
|
33490
33492
|
if (!s) return;
|
|
@@ -33503,13 +33505,13 @@ OT(((s) => {
|
|
|
33503
33505
|
const l = Ee(null), [o, c] = (function(p) {
|
|
33504
33506
|
return fs((() => {
|
|
33505
33507
|
const b = Object.assign({}, p), S = Object.assign({}, p);
|
|
33506
|
-
for (const _ in b)
|
|
33508
|
+
for (const _ in b) dO(_) ? delete b[_] : delete S[_];
|
|
33507
33509
|
return [b, S];
|
|
33508
33510
|
}), [p]);
|
|
33509
33511
|
})(s);
|
|
33510
|
-
return
|
|
33512
|
+
return hO(gD(l, o), c), $("div", { ref: l });
|
|
33511
33513
|
}));
|
|
33512
|
-
function
|
|
33514
|
+
function pO(s) {
|
|
33513
33515
|
var { container: l } = s;
|
|
33514
33516
|
const o = gD(l, vD(s, ["container"])), c = (function(p) {
|
|
33515
33517
|
const [b, S] = Ae(!1), [_, C] = Ae(!1), [x, D] = Ae(!1), [M, A] = Ae(0);
|
|
@@ -33537,23 +33539,23 @@ function hO(s) {
|
|
|
33537
33539
|
})(o);
|
|
33538
33540
|
return fs((() => Object.assign(Object.assign({}, c), { wavesurfer: o })), [c, o]);
|
|
33539
33541
|
}
|
|
33540
|
-
const
|
|
33541
|
-
stats:
|
|
33542
|
-
stat:
|
|
33543
|
-
label:
|
|
33544
|
-
value:
|
|
33542
|
+
const mO = "_stats_1gd9h_1", vO = "_stat_1gd9h_1", gO = "_label_1gd9h_18", bO = "_value_1gd9h_26", D_ = {
|
|
33543
|
+
stats: mO,
|
|
33544
|
+
stat: vO,
|
|
33545
|
+
label: gO,
|
|
33546
|
+
value: bO
|
|
33545
33547
|
}, c2 = ({ stats: s }) => /* @__PURE__ */ $("div", { className: D_.stats, children: s.map(({ label: l, value: o }) => /* @__PURE__ */ Rt("div", { className: D_.stat, children: [
|
|
33546
33548
|
/* @__PURE__ */ $("span", { className: D_.label, children: l }),
|
|
33547
33549
|
/* @__PURE__ */ $("span", { className: D_.value, children: o })
|
|
33548
|
-
] }, l)) }),
|
|
33549
|
-
player:
|
|
33550
|
-
main:
|
|
33551
|
-
waveform:
|
|
33552
|
-
controls:
|
|
33553
|
-
playButton:
|
|
33554
|
-
time:
|
|
33550
|
+
] }, l)) }), yO = "_player_nqeb9_1", _O = "_main_nqeb9_8", SO = "_waveform_nqeb9_16", wO = "_controls_nqeb9_21", EO = "_playButton_nqeb9_28", CO = "_time_nqeb9_47", Xm = {
|
|
33551
|
+
player: yO,
|
|
33552
|
+
main: _O,
|
|
33553
|
+
waveform: SO,
|
|
33554
|
+
controls: wO,
|
|
33555
|
+
playButton: EO,
|
|
33556
|
+
time: CO
|
|
33555
33557
|
};
|
|
33556
|
-
function
|
|
33558
|
+
function xO(s) {
|
|
33557
33559
|
const l = s.numberOfChannels, o = s.sampleRate, c = s.length, p = 16, b = l * (p / 8), S = c * b, _ = new ArrayBuffer(44 + S), C = new DataView(_), x = (M, A) => {
|
|
33558
33560
|
for (let N = 0; N < A.length; N++)
|
|
33559
33561
|
C.setUint8(M + N, A.charCodeAt(N));
|
|
@@ -33571,10 +33573,10 @@ function Ow(s) {
|
|
|
33571
33573
|
const l = Math.floor(s / 60), o = Math.floor(s % 60);
|
|
33572
33574
|
return `${l}:${o.toString().padStart(2, "0")}`;
|
|
33573
33575
|
}
|
|
33574
|
-
const
|
|
33575
|
-
const l = Ee(null), o = fs(() =>
|
|
33576
|
+
const TO = ({ buffer: s }) => {
|
|
33577
|
+
const l = Ee(null), o = fs(() => xO(s), [s]);
|
|
33576
33578
|
Bn(() => () => URL.revokeObjectURL(o), [o]);
|
|
33577
|
-
const { wavesurfer: c, isPlaying: p, currentTime: b } =
|
|
33579
|
+
const { wavesurfer: c, isPlaying: p, currentTime: b } = pO({
|
|
33578
33580
|
container: l,
|
|
33579
33581
|
url: o,
|
|
33580
33582
|
waveColor: "#4a9eff",
|
|
@@ -33608,17 +33610,17 @@ const xO = ({ buffer: s }) => {
|
|
|
33608
33610
|
}
|
|
33609
33611
|
)
|
|
33610
33612
|
] });
|
|
33611
|
-
},
|
|
33612
|
-
wrapper:
|
|
33613
|
-
canvas:
|
|
33614
|
-
toolbar:
|
|
33615
|
-
toolBtn:
|
|
33616
|
-
active:
|
|
33617
|
-
separator:
|
|
33618
|
-
overlayDropdown:
|
|
33619
|
-
overlaySection:
|
|
33620
|
-
overlayRow:
|
|
33621
|
-
},
|
|
33613
|
+
}, DO = "_wrapper_65zj4_1", zO = "_canvas_65zj4_9", MO = "_toolbar_65zj4_15", AO = "_toolBtn_65zj4_26", RO = "_active_65zj4_46", OO = "_separator_65zj4_51", UO = "_overlayDropdown_65zj4_69", NO = "_overlaySection_65zj4_86", LO = "_overlayRow_65zj4_99", Fa = {
|
|
33614
|
+
wrapper: DO,
|
|
33615
|
+
canvas: zO,
|
|
33616
|
+
toolbar: MO,
|
|
33617
|
+
toolBtn: AO,
|
|
33618
|
+
active: RO,
|
|
33619
|
+
separator: OO,
|
|
33620
|
+
overlayDropdown: UO,
|
|
33621
|
+
overlaySection: NO,
|
|
33622
|
+
overlayRow: LO
|
|
33623
|
+
}, HO = [
|
|
33622
33624
|
{
|
|
33623
33625
|
mode: "translate",
|
|
33624
33626
|
label: "Translate",
|
|
@@ -33649,7 +33651,7 @@ const xO = ({ buffer: s }) => {
|
|
|
33649
33651
|
"M3 21L10 14"
|
|
33650
33652
|
]
|
|
33651
33653
|
}
|
|
33652
|
-
],
|
|
33654
|
+
], BO = [
|
|
33653
33655
|
{
|
|
33654
33656
|
mode: "solid",
|
|
33655
33657
|
label: "Solid",
|
|
@@ -33677,7 +33679,7 @@ const xO = ({ buffer: s }) => {
|
|
|
33677
33679
|
]
|
|
33678
33680
|
}
|
|
33679
33681
|
];
|
|
33680
|
-
function
|
|
33682
|
+
function jO() {
|
|
33681
33683
|
const [s, l] = Ae("translate"), [o, c] = Ae("solid"), [p, b] = Ae(!1), [S, _] = Ae(!0), C = Ee(null), x = (A) => {
|
|
33682
33684
|
var N;
|
|
33683
33685
|
l(A), (N = window.Game.editor) == null || N.trigger("setTransformMode", A);
|
|
@@ -33694,7 +33696,7 @@ function BO() {
|
|
|
33694
33696
|
}
|
|
33695
33697
|
return document.addEventListener("pointerdown", A), () => document.removeEventListener("pointerdown", A);
|
|
33696
33698
|
}, []), /* @__PURE__ */ Rt("div", { className: Fa.toolbar, children: [
|
|
33697
|
-
|
|
33699
|
+
HO.map(({ mode: A, label: N, paths: L }) => /* @__PURE__ */ $(
|
|
33698
33700
|
"button",
|
|
33699
33701
|
{
|
|
33700
33702
|
title: N,
|
|
@@ -33747,7 +33749,7 @@ function BO() {
|
|
|
33747
33749
|
] });
|
|
33748
33750
|
}
|
|
33749
33751
|
function yD({ shadeMode: s, onChange: l, btnClass: o, activeClass: c, size: p = 18 }) {
|
|
33750
|
-
return /* @__PURE__ */ $(df, { children:
|
|
33752
|
+
return /* @__PURE__ */ $(df, { children: BO.map(({ mode: b, label: S, paths: _ }) => /* @__PURE__ */ $(
|
|
33751
33753
|
"button",
|
|
33752
33754
|
{
|
|
33753
33755
|
title: S,
|
|
@@ -33758,19 +33760,19 @@ function yD({ shadeMode: s, onChange: l, btnClass: o, activeClass: c, size: p =
|
|
|
33758
33760
|
b
|
|
33759
33761
|
)) });
|
|
33760
33762
|
}
|
|
33761
|
-
const
|
|
33762
|
-
viewer:
|
|
33763
|
-
canvasWrapper:
|
|
33764
|
-
toolbar:
|
|
33765
|
-
animBar:
|
|
33766
|
-
scrubber:
|
|
33767
|
-
animSelect:
|
|
33768
|
-
animLoopLabel:
|
|
33763
|
+
const VO = "_viewer_8mn40_1", GO = "_canvasWrapper_8mn40_9", qO = "_toolbar_8mn40_16", kO = "_animBar_8mn40_29", YO = "_scrubber_8mn40_43", XO = "_animSelect_8mn40_89", PO = "_animLoopLabel_8mn40_104", _u = {
|
|
33764
|
+
viewer: VO,
|
|
33765
|
+
canvasWrapper: GO,
|
|
33766
|
+
toolbar: qO,
|
|
33767
|
+
animBar: kO,
|
|
33768
|
+
scrubber: YO,
|
|
33769
|
+
animSelect: XO,
|
|
33770
|
+
animLoopLabel: PO
|
|
33769
33771
|
};
|
|
33770
33772
|
function nT(s) {
|
|
33771
33773
|
return s >= 1e3 ? `${(s / 1e3).toFixed(1)}k` : String(s);
|
|
33772
33774
|
}
|
|
33773
|
-
const
|
|
33775
|
+
const QO = ({ model: s, animations: l }) => {
|
|
33774
33776
|
const o = Ee(null), c = Ee(null), p = Ee(null), b = Ee(null), S = Ee(null), _ = Ee(!0), [C, x] = Ae("solid"), [D, M] = Ae(null), [A, N] = Ae(!0), [L, O] = Ae(0), [G, j] = Ae(!0);
|
|
33775
33777
|
function F() {
|
|
33776
33778
|
_.current = !1, j(!1);
|
|
@@ -33799,7 +33801,7 @@ const PO = ({ model: s, animations: l }) => {
|
|
|
33799
33801
|
const B = o.current;
|
|
33800
33802
|
if (!B)
|
|
33801
33803
|
return;
|
|
33802
|
-
const rt = new LT(), at =
|
|
33804
|
+
const rt = new LT(), at = wA(s);
|
|
33803
33805
|
c.current = at, W.current.clear(), k.current.forEach((Nt) => Nt.dispose()), k.current.clear(), dt.current.clear(), rt.add(at);
|
|
33804
33806
|
const pt = new IC(16777215, 3);
|
|
33805
33807
|
pt.position.set(5, 5, 5), rt.add(pt);
|
|
@@ -33811,7 +33813,7 @@ const PO = ({ model: s, animations: l }) => {
|
|
|
33811
33813
|
lt.position.set(0, 0, Dt * 1.5), lt.near = 0.1, lt.far = Dt + H * 2, lt.updateProjectionMatrix(), lt.lookAt(0, 0, 0);
|
|
33812
33814
|
const tt = new BT({ canvas: B, antialias: !0 });
|
|
33813
33815
|
tt.setPixelRatio(vf.instance().sizes.pixelRatio), tt.setClearColor("#181818");
|
|
33814
|
-
const St = new
|
|
33816
|
+
const St = new uA(lt, B);
|
|
33815
33817
|
St.target.set(0, 0, 0), St.enableDamping = !0, St.dampingFactor = 0.08, St.update();
|
|
33816
33818
|
const zt = new tA(at);
|
|
33817
33819
|
p.current = zt;
|
|
@@ -33910,7 +33912,7 @@ const PO = ({ model: s, animations: l }) => {
|
|
|
33910
33912
|
/* @__PURE__ */ $(c2, { stats: R })
|
|
33911
33913
|
] });
|
|
33912
33914
|
};
|
|
33913
|
-
function
|
|
33915
|
+
function ZO(s, l) {
|
|
33914
33916
|
const o = a2()[s];
|
|
33915
33917
|
if (!o)
|
|
33916
33918
|
return null;
|
|
@@ -33921,13 +33923,13 @@ function QO(s, l) {
|
|
|
33921
33923
|
const b = o.create();
|
|
33922
33924
|
return c.add = p, b;
|
|
33923
33925
|
}
|
|
33924
|
-
const
|
|
33926
|
+
const KO = ({ particleName: s }) => {
|
|
33925
33927
|
const l = Ee(null);
|
|
33926
33928
|
return Bn(() => {
|
|
33927
33929
|
const o = l.current;
|
|
33928
33930
|
if (!o)
|
|
33929
33931
|
return;
|
|
33930
|
-
const c = new LT(), p =
|
|
33932
|
+
const c = new LT(), p = ZO(s, c);
|
|
33931
33933
|
if (!p)
|
|
33932
33934
|
return;
|
|
33933
33935
|
const b = a2()[s], S = new HT(50, 1, 0.01, 200);
|
|
@@ -33946,17 +33948,17 @@ const ZO = ({ particleName: s }) => {
|
|
|
33946
33948
|
vf.instance().unregisterOnUpdate(C), x.disconnect(), c.clear(), p.geometry.dispose(), p.material.dispose(), _.dispose();
|
|
33947
33949
|
};
|
|
33948
33950
|
}, [s]), /* @__PURE__ */ $("div", { className: _u.viewer, children: /* @__PURE__ */ $("div", { className: _u.canvasWrapper, children: /* @__PURE__ */ $("canvas", { ref: l, style: { width: "100%", height: "100%", display: "block" } }) }) });
|
|
33949
|
-
},
|
|
33950
|
-
viewer:
|
|
33951
|
-
imageWrapper:
|
|
33952
|
-
zoomInner:
|
|
33953
|
-
image:
|
|
33954
|
-
zoomReset:
|
|
33955
|
-
cubeCross:
|
|
33956
|
-
cubeFace:
|
|
33957
|
-
faceLabel:
|
|
33958
|
-
cubeEmpty:
|
|
33959
|
-
noPreview:
|
|
33951
|
+
}, JO = "_viewer_76hio_1", $O = "_imageWrapper_76hio_9", WO = "_zoomInner_76hio_25", FO = "_image_76hio_9", IO = "_zoomReset_76hio_42", t3 = "_cubeCross_76hio_62", e3 = "_cubeFace_76hio_75", n3 = "_faceLabel_76hio_95", a3 = "_cubeEmpty_76hio_106", l3 = "_noPreview_76hio_110", er = {
|
|
33952
|
+
viewer: JO,
|
|
33953
|
+
imageWrapper: $O,
|
|
33954
|
+
zoomInner: WO,
|
|
33955
|
+
image: FO,
|
|
33956
|
+
zoomReset: IO,
|
|
33957
|
+
cubeCross: t3,
|
|
33958
|
+
cubeFace: e3,
|
|
33959
|
+
faceLabel: n3,
|
|
33960
|
+
cubeEmpty: a3,
|
|
33961
|
+
noPreview: l3
|
|
33960
33962
|
};
|
|
33961
33963
|
function Jw(s) {
|
|
33962
33964
|
var l;
|
|
@@ -33970,17 +33972,17 @@ function Jw(s) {
|
|
|
33970
33972
|
}
|
|
33971
33973
|
return "";
|
|
33972
33974
|
}
|
|
33973
|
-
function
|
|
33975
|
+
function i3(s) {
|
|
33974
33976
|
const l = Array.isArray(s.image) ? s.image[0] : s.image;
|
|
33975
33977
|
return l ? Jw(l) : "";
|
|
33976
33978
|
}
|
|
33977
33979
|
function aT(s) {
|
|
33978
33980
|
return { 1e3: "Repeat", 1001: "Clamp", 1002: "Mirror" }[s] ?? String(s);
|
|
33979
33981
|
}
|
|
33980
|
-
function
|
|
33982
|
+
function o3(s) {
|
|
33981
33983
|
return s === "srgb" ? "sRGB" : s === "" ? "Linear" : s;
|
|
33982
33984
|
}
|
|
33983
|
-
const
|
|
33985
|
+
const s3 = [
|
|
33984
33986
|
null,
|
|
33985
33987
|
// [0,0]
|
|
33986
33988
|
{ label: "+Y", faceIndex: 2 },
|
|
@@ -34005,7 +34007,7 @@ const o3 = [
|
|
|
34005
34007
|
// [2,2]
|
|
34006
34008
|
null
|
|
34007
34009
|
// [2,3]
|
|
34008
|
-
],
|
|
34010
|
+
], r3 = ({ texture: s }) => {
|
|
34009
34011
|
const l = Array.isArray(s.image), o = l ? s.image[0] : s.image, c = (o == null ? void 0 : o.width) ?? 0, p = (o == null ? void 0 : o.height) ?? 0, b = l ? 6 : 1, S = c && p ? c * p * 4 * b / (1024 * 1024) : 0, _ = Ee(null), C = Ee(!1), x = Ee({ x: 0, y: 0 }), [D, M] = Ae({ scale: 1, x: 0, y: 0 });
|
|
34010
34012
|
Bn(() => {
|
|
34011
34013
|
const j = _.current;
|
|
@@ -34054,7 +34056,7 @@ const o3 = [
|
|
|
34054
34056
|
{
|
|
34055
34057
|
className: er.zoomInner,
|
|
34056
34058
|
style: { transform: `translate(${D.x}px, ${D.y}px) scale(${D.scale})` },
|
|
34057
|
-
children: l ? /* @__PURE__ */ $("div", { className: er.cubeCross, children:
|
|
34059
|
+
children: l ? /* @__PURE__ */ $("div", { className: er.cubeCross, children: s3.map(
|
|
34058
34060
|
(j, F) => j ? /* @__PURE__ */ Rt("div", { className: er.cubeFace, children: [
|
|
34059
34061
|
/* @__PURE__ */ $("img", { src: Jw(s.image[j.faceIndex]), alt: j.label }),
|
|
34060
34062
|
/* @__PURE__ */ $("span", { className: er.faceLabel, children: j.label })
|
|
@@ -34083,7 +34085,7 @@ const o3 = [
|
|
|
34083
34085
|
stats: [
|
|
34084
34086
|
{ label: "Size", value: `${c} × ${p}` },
|
|
34085
34087
|
{ label: "Memory", value: S >= 0.1 ? `${S.toFixed(2)} MB` : `${(S * 1024).toFixed(2)} KB` },
|
|
34086
|
-
{ label: "Color Space", value:
|
|
34088
|
+
{ label: "Color Space", value: o3(s.colorSpace) },
|
|
34087
34089
|
{ label: "Wrap S", value: aT(s.wrapS) },
|
|
34088
34090
|
{ label: "Wrap T", value: aT(s.wrapT) },
|
|
34089
34091
|
...l ? [{ label: "Type", value: "Cube" }] : []
|
|
@@ -34091,7 +34093,7 @@ const o3 = [
|
|
|
34091
34093
|
}
|
|
34092
34094
|
)
|
|
34093
34095
|
] });
|
|
34094
|
-
},
|
|
34096
|
+
}, u3 = () => {
|
|
34095
34097
|
const s = vf.instance().editor, l = "application/mavonengine-resource", o = "application/mavonengine-prefab", c = "application/mavonengine-particle", p = "application/mavonengine-primitive", b = "application/mavonengine-light", S = Object.keys(nx).map((U) => ({ name: U, label: U })), _ = Object.keys(ex).map((U) => ({ name: U, label: U })), C = [
|
|
34096
34098
|
{ name: "Water", label: "Water" },
|
|
34097
34099
|
{ name: "Grass", label: "Grass" }
|
|
@@ -34263,7 +34265,7 @@ const o3 = [
|
|
|
34263
34265
|
A.map(({ id: U, title: et, item: ht }) => {
|
|
34264
34266
|
const xt = U % 6 * 24;
|
|
34265
34267
|
return /* @__PURE__ */ Rt(
|
|
34266
|
-
|
|
34268
|
+
QR,
|
|
34267
34269
|
{
|
|
34268
34270
|
title: et,
|
|
34269
34271
|
defaultX: (window.innerWidth - 400) / 2 + xt,
|
|
@@ -34271,10 +34273,10 @@ const o3 = [
|
|
|
34271
34273
|
storageKey: ht instanceof AudioBuffer ? "audioViewer" : "scene" in ht ? "modelViewer" : ht instanceof d_ ? "textureViewer" : "particleName" in ht ? "particleViewer" : void 0,
|
|
34272
34274
|
onClose: () => pt(U),
|
|
34273
34275
|
children: [
|
|
34274
|
-
ht instanceof AudioBuffer && /* @__PURE__ */ $(
|
|
34275
|
-
"scene" in ht && /* @__PURE__ */ $(
|
|
34276
|
-
ht instanceof d_ && /* @__PURE__ */ $(
|
|
34277
|
-
"particleName" in ht && /* @__PURE__ */ $(
|
|
34276
|
+
ht instanceof AudioBuffer && /* @__PURE__ */ $(TO, { buffer: ht }),
|
|
34277
|
+
"scene" in ht && /* @__PURE__ */ $(QO, { model: ht.scene, animations: ht.animations }),
|
|
34278
|
+
ht instanceof d_ && /* @__PURE__ */ $(r3, { texture: ht }),
|
|
34279
|
+
"particleName" in ht && /* @__PURE__ */ $(KO, { particleName: ht.particleName })
|
|
34278
34280
|
]
|
|
34279
34281
|
},
|
|
34280
34282
|
U
|
|
@@ -34419,7 +34421,7 @@ const o3 = [
|
|
|
34419
34421
|
onDoubleClick: () => at(U, et),
|
|
34420
34422
|
onDragStart: (ht) => j(ht, U),
|
|
34421
34423
|
draggable: !0,
|
|
34422
|
-
src:
|
|
34424
|
+
src: i3(et)
|
|
34423
34425
|
}
|
|
34424
34426
|
) : /* @__PURE__ */ $(
|
|
34425
34427
|
"img",
|
|
@@ -34433,7 +34435,7 @@ const o3 = [
|
|
|
34433
34435
|
] }, U)) })
|
|
34434
34436
|
] })
|
|
34435
34437
|
] });
|
|
34436
|
-
},
|
|
34438
|
+
}, c3 = () => {
|
|
34437
34439
|
const s = Ee(null);
|
|
34438
34440
|
return Bn(() => {
|
|
34439
34441
|
var p;
|
|
@@ -34448,22 +34450,22 @@ const o3 = [
|
|
|
34448
34450
|
const { clientWidth: o, clientHeight: c } = s.current;
|
|
34449
34451
|
window.Game.sizes.setSize(o, c);
|
|
34450
34452
|
}, children: /* @__PURE__ */ Rt("div", { className: Fa.wrapper, children: [
|
|
34451
|
-
/* @__PURE__ */ $(
|
|
34453
|
+
/* @__PURE__ */ $(jO, {}),
|
|
34452
34454
|
/* @__PURE__ */ $("div", { ref: s, className: Fa.canvas })
|
|
34453
34455
|
] }) });
|
|
34454
|
-
},
|
|
34455
|
-
root:
|
|
34456
|
-
main:
|
|
34457
|
-
editor:
|
|
34458
|
-
panel:
|
|
34459
|
-
panelContent:
|
|
34460
|
-
panelBody:
|
|
34461
|
-
middleGroup:
|
|
34462
|
-
},
|
|
34463
|
-
panelHeader:
|
|
34456
|
+
}, f3 = "_root_ngf3k_1", d3 = "_main_ngf3k_8", h3 = "_editor_ngf3k_14", p3 = "_panel_ngf3k_20", m3 = "_panelContent_ngf3k_27", v3 = "_panelBody_ngf3k_34", g3 = "_middleGroup_ngf3k_40", ji = {
|
|
34457
|
+
root: f3,
|
|
34458
|
+
main: d3,
|
|
34459
|
+
editor: h3,
|
|
34460
|
+
panel: p3,
|
|
34461
|
+
panelContent: m3,
|
|
34462
|
+
panelBody: v3,
|
|
34463
|
+
middleGroup: g3
|
|
34464
|
+
}, b3 = "_panelHeader_25fch_1", y3 = {
|
|
34465
|
+
panelHeader: b3
|
|
34464
34466
|
};
|
|
34465
34467
|
function Uw({ title: s }) {
|
|
34466
|
-
return /* @__PURE__ */ $("div", { className:
|
|
34468
|
+
return /* @__PURE__ */ $("div", { className: y3.panelHeader, children: s });
|
|
34467
34469
|
}
|
|
34468
34470
|
/*! Tweakpane 4.0.5 (c) 2016 cocopon, licensed under the MIT license. */
|
|
34469
34471
|
function cn(s) {
|
|
@@ -34475,7 +34477,7 @@ function f2(s) {
|
|
|
34475
34477
|
function $w(s) {
|
|
34476
34478
|
return s !== null && typeof s == "object";
|
|
34477
34479
|
}
|
|
34478
|
-
function
|
|
34480
|
+
function _3(s, l) {
|
|
34479
34481
|
if (s.length !== l.length)
|
|
34480
34482
|
return !1;
|
|
34481
34483
|
for (let o = 0; o < s.length; o++)
|
|
@@ -34492,7 +34494,7 @@ function hh(s, l) {
|
|
|
34492
34494
|
function d2(s) {
|
|
34493
34495
|
return f2(s) ? "target" in s : !1;
|
|
34494
34496
|
}
|
|
34495
|
-
const
|
|
34497
|
+
const S3 = {
|
|
34496
34498
|
alreadydisposed: () => "View has been already disposed",
|
|
34497
34499
|
invalidparams: (s) => `Invalid parameters for '${s.name}'`,
|
|
34498
34500
|
nomatchingcontroller: (s) => `No matching controller for '${s.key}'`,
|
|
@@ -34532,7 +34534,7 @@ class Hn {
|
|
|
34532
34534
|
}
|
|
34533
34535
|
constructor(l) {
|
|
34534
34536
|
var o;
|
|
34535
|
-
this.message = (o =
|
|
34537
|
+
this.message = (o = S3[l.type](l.context)) !== null && o !== void 0 ? o : "Unexpected error", this.name = this.constructor.name, this.stack = new Error(this.message).stack, this.type = l.type;
|
|
34536
34538
|
}
|
|
34537
34539
|
toString() {
|
|
34538
34540
|
return this.message;
|
|
@@ -34583,7 +34585,7 @@ class pa {
|
|
|
34583
34585
|
});
|
|
34584
34586
|
}
|
|
34585
34587
|
}
|
|
34586
|
-
class
|
|
34588
|
+
class w3 {
|
|
34587
34589
|
constructor(l, o) {
|
|
34588
34590
|
var c;
|
|
34589
34591
|
this.constraint_ = o == null ? void 0 : o.constraint, this.equals_ = (c = o == null ? void 0 : o.equals) !== null && c !== void 0 ? c : ((p, b) => p === b), this.emitter = new pa(), this.rawValue_ = l;
|
|
@@ -34615,7 +34617,7 @@ class S3 {
|
|
|
34615
34617
|
}));
|
|
34616
34618
|
}
|
|
34617
34619
|
}
|
|
34618
|
-
class
|
|
34620
|
+
class E3 {
|
|
34619
34621
|
constructor(l) {
|
|
34620
34622
|
this.emitter = new pa(), this.value_ = l;
|
|
34621
34623
|
}
|
|
@@ -34643,7 +34645,7 @@ class w3 {
|
|
|
34643
34645
|
}));
|
|
34644
34646
|
}
|
|
34645
34647
|
}
|
|
34646
|
-
class
|
|
34648
|
+
class C3 {
|
|
34647
34649
|
constructor(l) {
|
|
34648
34650
|
this.emitter = new pa(), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.value_ = l, this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_);
|
|
34649
34651
|
}
|
|
@@ -34659,11 +34661,11 @@ class E3 {
|
|
|
34659
34661
|
}
|
|
34660
34662
|
function Sn(s, l) {
|
|
34661
34663
|
const o = l == null ? void 0 : l.constraint, c = l == null ? void 0 : l.equals;
|
|
34662
|
-
return !o && !c ? new
|
|
34664
|
+
return !o && !c ? new E3(s) : new w3(s, l);
|
|
34663
34665
|
}
|
|
34664
|
-
function
|
|
34666
|
+
function x3(s) {
|
|
34665
34667
|
return [
|
|
34666
|
-
new
|
|
34668
|
+
new C3(s),
|
|
34667
34669
|
(l, o) => {
|
|
34668
34670
|
s.setRawValue(l, o);
|
|
34669
34671
|
}
|
|
@@ -34711,7 +34713,7 @@ class R0 {
|
|
|
34711
34713
|
return Math.min(Math.max(l, c), o);
|
|
34712
34714
|
}
|
|
34713
34715
|
}
|
|
34714
|
-
class
|
|
34716
|
+
class T3 {
|
|
34715
34717
|
constructor(l) {
|
|
34716
34718
|
this.values = he.fromObject({
|
|
34717
34719
|
max: l.max,
|
|
@@ -34724,7 +34726,7 @@ class x3 {
|
|
|
34724
34726
|
return cn(c) || (p = Math.max(p, c)), cn(o) || (p = Math.min(p, o)), p;
|
|
34725
34727
|
}
|
|
34726
34728
|
}
|
|
34727
|
-
class
|
|
34729
|
+
class D3 {
|
|
34728
34730
|
constructor(l, o = 0) {
|
|
34729
34731
|
this.step = l, this.origin = o;
|
|
34730
34732
|
}
|
|
@@ -34733,7 +34735,7 @@ class T3 {
|
|
|
34733
34735
|
return o + c * this.step;
|
|
34734
34736
|
}
|
|
34735
34737
|
}
|
|
34736
|
-
class
|
|
34738
|
+
class z3 {
|
|
34737
34739
|
constructor(l) {
|
|
34738
34740
|
this.text = l;
|
|
34739
34741
|
}
|
|
@@ -34744,7 +34746,7 @@ class D3 {
|
|
|
34744
34746
|
return this.text;
|
|
34745
34747
|
}
|
|
34746
34748
|
}
|
|
34747
|
-
const
|
|
34749
|
+
const M3 = {
|
|
34748
34750
|
"**": (s, l) => Math.pow(s, l),
|
|
34749
34751
|
"*": (s, l) => s * l,
|
|
34750
34752
|
"/": (s, l) => s / l,
|
|
@@ -34758,12 +34760,12 @@ const z3 = {
|
|
|
34758
34760
|
"^": (s, l) => s ^ l,
|
|
34759
34761
|
"|": (s, l) => s | l
|
|
34760
34762
|
};
|
|
34761
|
-
class
|
|
34763
|
+
class A3 {
|
|
34762
34764
|
constructor(l, o, c) {
|
|
34763
34765
|
this.left = o, this.operator = l, this.right = c;
|
|
34764
34766
|
}
|
|
34765
34767
|
evaluate() {
|
|
34766
|
-
const l =
|
|
34768
|
+
const l = M3[this.operator];
|
|
34767
34769
|
if (!l)
|
|
34768
34770
|
throw new Error(`unexpected binary operator: '${this.operator}`);
|
|
34769
34771
|
return l(this.left.evaluate(), this.right.evaluate());
|
|
@@ -34778,17 +34780,17 @@ class M3 {
|
|
|
34778
34780
|
].join(" ");
|
|
34779
34781
|
}
|
|
34780
34782
|
}
|
|
34781
|
-
const
|
|
34783
|
+
const R3 = {
|
|
34782
34784
|
"+": (s) => s,
|
|
34783
34785
|
"-": (s) => -s,
|
|
34784
34786
|
"~": (s) => ~s
|
|
34785
34787
|
};
|
|
34786
|
-
class
|
|
34788
|
+
class O3 {
|
|
34787
34789
|
constructor(l, o) {
|
|
34788
34790
|
this.operator = l, this.expression = o;
|
|
34789
34791
|
}
|
|
34790
34792
|
evaluate() {
|
|
34791
|
-
const l =
|
|
34793
|
+
const l = R3[this.operator];
|
|
34792
34794
|
if (!l)
|
|
34793
34795
|
throw new Error(`unexpected unary operator: '${this.operator}`);
|
|
34794
34796
|
return l(this.expression.evaluate());
|
|
@@ -34812,7 +34814,7 @@ function C0(s, l) {
|
|
|
34812
34814
|
const c = s.substr(l).match(/^\s+/);
|
|
34813
34815
|
return (o = c && c[0]) !== null && o !== void 0 ? o : "";
|
|
34814
34816
|
}
|
|
34815
|
-
function
|
|
34817
|
+
function U3(s, l) {
|
|
34816
34818
|
const o = s.substr(l, 1);
|
|
34817
34819
|
return o.match(/^[1-9]$/) ? o : "";
|
|
34818
34820
|
}
|
|
@@ -34821,7 +34823,7 @@ function x0(s, l) {
|
|
|
34821
34823
|
const c = s.substr(l).match(/^[0-9]+/);
|
|
34822
34824
|
return (o = c && c[0]) !== null && o !== void 0 ? o : "";
|
|
34823
34825
|
}
|
|
34824
|
-
function
|
|
34826
|
+
function N3(s, l) {
|
|
34825
34827
|
const o = x0(s, l);
|
|
34826
34828
|
if (o !== "")
|
|
34827
34829
|
return o;
|
|
@@ -34835,17 +34837,17 @@ function p2(s, l) {
|
|
|
34835
34837
|
const o = s.substr(l, 1);
|
|
34836
34838
|
if (l += 1, o.toLowerCase() !== "e")
|
|
34837
34839
|
return "";
|
|
34838
|
-
const c =
|
|
34840
|
+
const c = N3(s, l);
|
|
34839
34841
|
return c === "" ? "" : o + c;
|
|
34840
34842
|
}
|
|
34841
34843
|
function _D(s, l) {
|
|
34842
34844
|
const o = s.substr(l, 1);
|
|
34843
34845
|
if (o === "0")
|
|
34844
34846
|
return o;
|
|
34845
|
-
const c =
|
|
34847
|
+
const c = U3(s, l);
|
|
34846
34848
|
return l += c.length, c === "" ? "" : c + x0(s, l);
|
|
34847
34849
|
}
|
|
34848
|
-
function
|
|
34850
|
+
function L3(s, l) {
|
|
34849
34851
|
const o = _D(s, l);
|
|
34850
34852
|
if (l += o.length, o === "")
|
|
34851
34853
|
return "";
|
|
@@ -34855,74 +34857,74 @@ function N3(s, l) {
|
|
|
34855
34857
|
const p = x0(s, l);
|
|
34856
34858
|
return l += p.length, o + c + p + p2(s, l);
|
|
34857
34859
|
}
|
|
34858
|
-
function
|
|
34860
|
+
function H3(s, l) {
|
|
34859
34861
|
const o = s.substr(l, 1);
|
|
34860
34862
|
if (l += o.length, o !== ".")
|
|
34861
34863
|
return "";
|
|
34862
34864
|
const c = x0(s, l);
|
|
34863
34865
|
return l += c.length, c === "" ? "" : o + c + p2(s, l);
|
|
34864
34866
|
}
|
|
34865
|
-
function
|
|
34867
|
+
function B3(s, l) {
|
|
34866
34868
|
const o = _D(s, l);
|
|
34867
34869
|
return l += o.length, o === "" ? "" : o + p2(s, l);
|
|
34868
34870
|
}
|
|
34869
|
-
const
|
|
34870
|
-
N3,
|
|
34871
|
+
const j3 = h2([
|
|
34871
34872
|
L3,
|
|
34872
|
-
H3
|
|
34873
|
+
H3,
|
|
34874
|
+
B3
|
|
34873
34875
|
]);
|
|
34874
|
-
function
|
|
34876
|
+
function V3(s, l) {
|
|
34875
34877
|
var o;
|
|
34876
34878
|
const c = s.substr(l).match(/^[01]+/);
|
|
34877
34879
|
return (o = c && c[0]) !== null && o !== void 0 ? o : "";
|
|
34878
34880
|
}
|
|
34879
|
-
function
|
|
34881
|
+
function G3(s, l) {
|
|
34880
34882
|
const o = s.substr(l, 2);
|
|
34881
34883
|
if (l += o.length, o.toLowerCase() !== "0b")
|
|
34882
34884
|
return "";
|
|
34883
|
-
const c =
|
|
34885
|
+
const c = V3(s, l);
|
|
34884
34886
|
return c === "" ? "" : o + c;
|
|
34885
34887
|
}
|
|
34886
|
-
function
|
|
34888
|
+
function q3(s, l) {
|
|
34887
34889
|
var o;
|
|
34888
34890
|
const c = s.substr(l).match(/^[0-7]+/);
|
|
34889
34891
|
return (o = c && c[0]) !== null && o !== void 0 ? o : "";
|
|
34890
34892
|
}
|
|
34891
|
-
function
|
|
34893
|
+
function k3(s, l) {
|
|
34892
34894
|
const o = s.substr(l, 2);
|
|
34893
34895
|
if (l += o.length, o.toLowerCase() !== "0o")
|
|
34894
34896
|
return "";
|
|
34895
|
-
const c =
|
|
34897
|
+
const c = q3(s, l);
|
|
34896
34898
|
return c === "" ? "" : o + c;
|
|
34897
34899
|
}
|
|
34898
|
-
function
|
|
34900
|
+
function Y3(s, l) {
|
|
34899
34901
|
var o;
|
|
34900
34902
|
const c = s.substr(l).match(/^[0-9a-f]+/i);
|
|
34901
34903
|
return (o = c && c[0]) !== null && o !== void 0 ? o : "";
|
|
34902
34904
|
}
|
|
34903
|
-
function
|
|
34905
|
+
function X3(s, l) {
|
|
34904
34906
|
const o = s.substr(l, 2);
|
|
34905
34907
|
if (l += o.length, o.toLowerCase() !== "0x")
|
|
34906
34908
|
return "";
|
|
34907
|
-
const c =
|
|
34909
|
+
const c = Y3(s, l);
|
|
34908
34910
|
return c === "" ? "" : o + c;
|
|
34909
34911
|
}
|
|
34910
|
-
const
|
|
34911
|
-
|
|
34912
|
-
|
|
34913
|
-
|
|
34914
|
-
]),
|
|
34915
|
-
|
|
34916
|
-
|
|
34912
|
+
const P3 = h2([
|
|
34913
|
+
G3,
|
|
34914
|
+
k3,
|
|
34915
|
+
X3
|
|
34916
|
+
]), Q3 = h2([
|
|
34917
|
+
P3,
|
|
34918
|
+
j3
|
|
34917
34919
|
]);
|
|
34918
|
-
function
|
|
34919
|
-
const o =
|
|
34920
|
+
function Z3(s, l) {
|
|
34921
|
+
const o = Q3(s, l);
|
|
34920
34922
|
return l += o.length, o === "" ? null : {
|
|
34921
|
-
evaluable: new
|
|
34923
|
+
evaluable: new z3(o),
|
|
34922
34924
|
cursor: l
|
|
34923
34925
|
};
|
|
34924
34926
|
}
|
|
34925
|
-
function
|
|
34927
|
+
function K3(s, l) {
|
|
34926
34928
|
const o = s.substr(l, 1);
|
|
34927
34929
|
if (l += o.length, o !== "(")
|
|
34928
34930
|
return null;
|
|
@@ -34936,12 +34938,12 @@ function Z3(s, l) {
|
|
|
34936
34938
|
cursor: l
|
|
34937
34939
|
};
|
|
34938
34940
|
}
|
|
34939
|
-
function
|
|
34941
|
+
function J3(s, l) {
|
|
34940
34942
|
var o;
|
|
34941
|
-
return (o =
|
|
34943
|
+
return (o = Z3(s, l)) !== null && o !== void 0 ? o : K3(s, l);
|
|
34942
34944
|
}
|
|
34943
34945
|
function SD(s, l) {
|
|
34944
|
-
const o =
|
|
34946
|
+
const o = J3(s, l);
|
|
34945
34947
|
if (o)
|
|
34946
34948
|
return o;
|
|
34947
34949
|
const c = s.substr(l, 1);
|
|
@@ -34950,10 +34952,10 @@ function SD(s, l) {
|
|
|
34950
34952
|
const p = SD(s, l);
|
|
34951
34953
|
return p ? (l = p.cursor, {
|
|
34952
34954
|
cursor: l,
|
|
34953
|
-
evaluable: new
|
|
34955
|
+
evaluable: new O3(c, p.evaluable)
|
|
34954
34956
|
}) : null;
|
|
34955
34957
|
}
|
|
34956
|
-
function
|
|
34958
|
+
function $3(s, l, o) {
|
|
34957
34959
|
o += C0(l, o).length;
|
|
34958
34960
|
const c = s.filter((p) => l.startsWith(p, o))[0];
|
|
34959
34961
|
return c ? (o += c.length, o += C0(l, o).length, {
|
|
@@ -34961,7 +34963,7 @@ function J3(s, l, o) {
|
|
|
34961
34963
|
operator: c
|
|
34962
34964
|
}) : null;
|
|
34963
34965
|
}
|
|
34964
|
-
function
|
|
34966
|
+
function W3(s, l) {
|
|
34965
34967
|
return (o, c) => {
|
|
34966
34968
|
const p = s(o, c);
|
|
34967
34969
|
if (!p)
|
|
@@ -34969,14 +34971,14 @@ function $3(s, l) {
|
|
|
34969
34971
|
c = p.cursor;
|
|
34970
34972
|
let b = p.evaluable;
|
|
34971
34973
|
for (; ; ) {
|
|
34972
|
-
const S =
|
|
34974
|
+
const S = $3(l, o, c);
|
|
34973
34975
|
if (!S)
|
|
34974
34976
|
break;
|
|
34975
34977
|
c = S.cursor;
|
|
34976
34978
|
const _ = s(o, c);
|
|
34977
34979
|
if (!_)
|
|
34978
34980
|
return null;
|
|
34979
|
-
c = _.cursor, b = new
|
|
34981
|
+
c = _.cursor, b = new A3(S.operator, b, _.evaluable);
|
|
34980
34982
|
}
|
|
34981
34983
|
return b ? {
|
|
34982
34984
|
cursor: c,
|
|
@@ -34984,7 +34986,7 @@ function $3(s, l) {
|
|
|
34984
34986
|
} : null;
|
|
34985
34987
|
};
|
|
34986
34988
|
}
|
|
34987
|
-
const
|
|
34989
|
+
const F3 = [
|
|
34988
34990
|
["**"],
|
|
34989
34991
|
["*", "/", "%"],
|
|
34990
34992
|
["+", "-"],
|
|
@@ -34992,17 +34994,17 @@ const W3 = [
|
|
|
34992
34994
|
["&"],
|
|
34993
34995
|
["^"],
|
|
34994
34996
|
["|"]
|
|
34995
|
-
].reduce((s, l) =>
|
|
34997
|
+
].reduce((s, l) => W3(s, l), SD);
|
|
34996
34998
|
function wD(s, l) {
|
|
34997
|
-
return l += C0(s, l).length,
|
|
34999
|
+
return l += C0(s, l).length, F3(s, l);
|
|
34998
35000
|
}
|
|
34999
|
-
function
|
|
35001
|
+
function I3(s) {
|
|
35000
35002
|
const l = wD(s, 0);
|
|
35001
35003
|
return !l || l.cursor + C0(s, l.cursor).length !== s.length ? null : l.evaluable;
|
|
35002
35004
|
}
|
|
35003
35005
|
function Cu(s) {
|
|
35004
35006
|
var l;
|
|
35005
|
-
const o =
|
|
35007
|
+
const o = I3(s);
|
|
35006
35008
|
return (l = o == null ? void 0 : o.evaluate()) !== null && l !== void 0 ? l : null;
|
|
35007
35009
|
}
|
|
35008
35010
|
function ED(s) {
|
|
@@ -35015,7 +35017,7 @@ function ED(s) {
|
|
|
35015
35017
|
}
|
|
35016
35018
|
return 0;
|
|
35017
35019
|
}
|
|
35018
|
-
function
|
|
35020
|
+
function t4(s) {
|
|
35019
35021
|
return String(s);
|
|
35020
35022
|
}
|
|
35021
35023
|
function oi(s) {
|
|
@@ -35034,7 +35036,7 @@ function Ea(s, l, o) {
|
|
|
35034
35036
|
function CD(s, l) {
|
|
35035
35037
|
return (s % l + l) % l;
|
|
35036
35038
|
}
|
|
35037
|
-
function
|
|
35039
|
+
function e4(s, l) {
|
|
35038
35040
|
return cn(s.step) ? Math.max(lT(l), 2) : lT(s.step);
|
|
35039
35041
|
}
|
|
35040
35042
|
function xD(s) {
|
|
@@ -35047,13 +35049,13 @@ function TD(s, l) {
|
|
|
35047
35049
|
return c === 0 ? 0.1 : Math.pow(10, Math.floor(Math.log10(c)) - 1);
|
|
35048
35050
|
}
|
|
35049
35051
|
function DD(s, l) {
|
|
35050
|
-
return cn(s.step) ? null : new
|
|
35052
|
+
return cn(s.step) ? null : new D3(s.step, l);
|
|
35051
35053
|
}
|
|
35052
35054
|
function zD(s) {
|
|
35053
35055
|
return !cn(s.max) && !cn(s.min) ? new R0({
|
|
35054
35056
|
max: s.max,
|
|
35055
35057
|
min: s.min
|
|
35056
|
-
}) : !cn(s.max) || !cn(s.min) ? new
|
|
35058
|
+
}) : !cn(s.max) || !cn(s.min) ? new T3({
|
|
35057
35059
|
max: s.max,
|
|
35058
35060
|
min: s.min
|
|
35059
35061
|
}) : null;
|
|
@@ -35061,7 +35063,7 @@ function zD(s) {
|
|
|
35061
35063
|
function MD(s, l) {
|
|
35062
35064
|
var o, c, p;
|
|
35063
35065
|
return {
|
|
35064
|
-
formatter: (o = s.format) !== null && o !== void 0 ? o : oi(
|
|
35066
|
+
formatter: (o = s.format) !== null && o !== void 0 ? o : oi(e4(s, l)),
|
|
35065
35067
|
keyScale: (c = s.keyScale) !== null && c !== void 0 ? c : xD(s),
|
|
35066
35068
|
pointerScale: (p = s.pointerScale) !== null && p !== void 0 ? p : TD(s, l)
|
|
35067
35069
|
};
|
|
@@ -35121,17 +35123,17 @@ class O0 extends G_ {
|
|
|
35121
35123
|
super(l), this.value = o, this.last = c ?? !0;
|
|
35122
35124
|
}
|
|
35123
35125
|
}
|
|
35124
|
-
class
|
|
35126
|
+
class n4 extends G_ {
|
|
35125
35127
|
constructor(l, o) {
|
|
35126
35128
|
super(l), this.expanded = o;
|
|
35127
35129
|
}
|
|
35128
35130
|
}
|
|
35129
|
-
class
|
|
35131
|
+
class a4 extends G_ {
|
|
35130
35132
|
constructor(l, o) {
|
|
35131
35133
|
super(l), this.index = o;
|
|
35132
35134
|
}
|
|
35133
35135
|
}
|
|
35134
|
-
class
|
|
35136
|
+
class l4 extends G_ {
|
|
35135
35137
|
constructor(l, o) {
|
|
35136
35138
|
super(l), this.native = o;
|
|
35137
35139
|
}
|
|
@@ -35174,7 +35176,7 @@ class T0 extends gh {
|
|
|
35174
35176
|
this.emitter_.emit("change", new O0(this, o.binding.target.read(), l.options.last));
|
|
35175
35177
|
}
|
|
35176
35178
|
}
|
|
35177
|
-
class
|
|
35179
|
+
class i4 {
|
|
35178
35180
|
constructor(l, o) {
|
|
35179
35181
|
this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = o, this.value_ = l, this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_), this.emitter = new pa();
|
|
35180
35182
|
}
|
|
@@ -35200,13 +35202,13 @@ class l4 {
|
|
|
35200
35202
|
this.push(), this.emitter.emit("change", Object.assign(Object.assign({}, l), { sender: this }));
|
|
35201
35203
|
}
|
|
35202
35204
|
}
|
|
35203
|
-
function
|
|
35205
|
+
function o4(s) {
|
|
35204
35206
|
if (!("binding" in s))
|
|
35205
35207
|
return !1;
|
|
35206
35208
|
const l = s.binding;
|
|
35207
35209
|
return d2(l) && "read" in l && "write" in l;
|
|
35208
35210
|
}
|
|
35209
|
-
function
|
|
35211
|
+
function s4(s, l) {
|
|
35210
35212
|
const c = Object.keys(l).reduce((p, b) => {
|
|
35211
35213
|
if (p === void 0)
|
|
35212
35214
|
return;
|
|
@@ -35215,7 +35217,7 @@ function o4(s, l) {
|
|
|
35215
35217
|
}, {});
|
|
35216
35218
|
return c;
|
|
35217
35219
|
}
|
|
35218
|
-
function
|
|
35220
|
+
function r4(s, l) {
|
|
35219
35221
|
return s.reduce((o, c) => {
|
|
35220
35222
|
if (o === void 0)
|
|
35221
35223
|
return;
|
|
@@ -35224,7 +35226,7 @@ function s4(s, l) {
|
|
|
35224
35226
|
return [...o, p.value];
|
|
35225
35227
|
}, []);
|
|
35226
35228
|
}
|
|
35227
|
-
function
|
|
35229
|
+
function u4(s) {
|
|
35228
35230
|
return s === null ? !1 : typeof s == "object";
|
|
35229
35231
|
}
|
|
35230
35232
|
function yu(s) {
|
|
@@ -35259,12 +35261,12 @@ function iT(s) {
|
|
|
35259
35261
|
constant: (l) => yu((o) => o === l ? l : void 0)(s),
|
|
35260
35262
|
raw: yu((l) => l)(s),
|
|
35261
35263
|
object: (l) => yu((o) => {
|
|
35262
|
-
if (
|
|
35263
|
-
return
|
|
35264
|
+
if (u4(o))
|
|
35265
|
+
return s4(o, l);
|
|
35264
35266
|
})(s),
|
|
35265
35267
|
array: (l) => yu((o) => {
|
|
35266
35268
|
if (Array.isArray(o))
|
|
35267
|
-
return
|
|
35269
|
+
return r4(o, l);
|
|
35268
35270
|
})(s)
|
|
35269
35271
|
};
|
|
35270
35272
|
}
|
|
@@ -35299,33 +35301,33 @@ const ir = "http://www.w3.org/2000/svg";
|
|
|
35299
35301
|
function U_(s) {
|
|
35300
35302
|
s.offsetHeight;
|
|
35301
35303
|
}
|
|
35302
|
-
function
|
|
35304
|
+
function c4(s, l) {
|
|
35303
35305
|
const o = s.style.transition;
|
|
35304
35306
|
s.style.transition = "none", l(), s.style.transition = o;
|
|
35305
35307
|
}
|
|
35306
35308
|
function v2(s) {
|
|
35307
35309
|
return s.ontouchstart !== void 0;
|
|
35308
35310
|
}
|
|
35309
|
-
function
|
|
35311
|
+
function f4() {
|
|
35310
35312
|
return globalThis;
|
|
35311
35313
|
}
|
|
35312
|
-
function
|
|
35313
|
-
return
|
|
35314
|
+
function d4() {
|
|
35315
|
+
return f4().document;
|
|
35314
35316
|
}
|
|
35315
|
-
function
|
|
35317
|
+
function h4(s) {
|
|
35316
35318
|
const l = s.ownerDocument.defaultView;
|
|
35317
35319
|
return l && "document" in l ? s.getContext("2d", {
|
|
35318
35320
|
willReadFrequently: !0
|
|
35319
35321
|
}) : null;
|
|
35320
35322
|
}
|
|
35321
|
-
const
|
|
35323
|
+
const p4 = {
|
|
35322
35324
|
check: '<path d="M2 8l4 4l8 -8"/>',
|
|
35323
35325
|
dropdown: '<path d="M5 7h6l-3 3 z"/>',
|
|
35324
35326
|
p2dpad: '<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'
|
|
35325
35327
|
};
|
|
35326
35328
|
function q_(s, l) {
|
|
35327
35329
|
const o = s.createElementNS(ir, "svg");
|
|
35328
|
-
return o.innerHTML =
|
|
35330
|
+
return o.innerHTML = p4[l], o;
|
|
35329
35331
|
}
|
|
35330
35332
|
function OD(s, l, o) {
|
|
35331
35333
|
s.insertBefore(l, s.children[o]);
|
|
@@ -35337,7 +35339,7 @@ function UD(s) {
|
|
|
35337
35339
|
for (; s.children.length > 0; )
|
|
35338
35340
|
s.removeChild(s.children[0]);
|
|
35339
35341
|
}
|
|
35340
|
-
function
|
|
35342
|
+
function m4(s) {
|
|
35341
35343
|
for (; s.childNodes.length > 0; )
|
|
35342
35344
|
s.removeChild(s.childNodes[0]);
|
|
35343
35345
|
}
|
|
@@ -35352,10 +35354,10 @@ function wu(s, l) {
|
|
|
35352
35354
|
function sr(s, l, o) {
|
|
35353
35355
|
wu(s.value(l), o);
|
|
35354
35356
|
}
|
|
35355
|
-
const
|
|
35357
|
+
const v4 = "tp";
|
|
35356
35358
|
function Re(s) {
|
|
35357
35359
|
return (o, c) => [
|
|
35358
|
-
|
|
35360
|
+
v4,
|
|
35359
35361
|
"-",
|
|
35360
35362
|
s,
|
|
35361
35363
|
"v",
|
|
@@ -35364,7 +35366,7 @@ function Re(s) {
|
|
|
35364
35366
|
].join("");
|
|
35365
35367
|
}
|
|
35366
35368
|
const d0 = Re("lbl");
|
|
35367
|
-
function
|
|
35369
|
+
function g4(s, l) {
|
|
35368
35370
|
const o = s.createDocumentFragment();
|
|
35369
35371
|
return l.split(`
|
|
35370
35372
|
`).map((p) => s.createTextNode(p)).forEach((p, b) => {
|
|
@@ -35376,7 +35378,7 @@ class LD {
|
|
|
35376
35378
|
this.element = l.createElement("div"), this.element.classList.add(d0()), o.viewProps.bindClassModifiers(this.element);
|
|
35377
35379
|
const c = l.createElement("div");
|
|
35378
35380
|
c.classList.add(d0("l")), sr(o.props, "label", (b) => {
|
|
35379
|
-
cn(b) ? this.element.classList.add(d0(void 0, "nol")) : (this.element.classList.remove(d0(void 0, "nol")),
|
|
35381
|
+
cn(b) ? this.element.classList.add(d0(void 0, "nol")) : (this.element.classList.remove(d0(void 0, "nol")), m4(c), c.appendChild(g4(l, b)));
|
|
35380
35382
|
}), this.element.appendChild(c), this.labelElement = c;
|
|
35381
35383
|
const p = l.createElement("div");
|
|
35382
35384
|
p.classList.add(d0("v")), this.element.appendChild(p), this.valueElement = p;
|
|
@@ -35400,7 +35402,7 @@ class HD {
|
|
|
35400
35402
|
});
|
|
35401
35403
|
}
|
|
35402
35404
|
}
|
|
35403
|
-
function
|
|
35405
|
+
function b4() {
|
|
35404
35406
|
return ["veryfirst", "first", "last", "verylast"];
|
|
35405
35407
|
}
|
|
35406
35408
|
const oT = Re(""), sT = {
|
|
@@ -35414,7 +35416,7 @@ class k_ {
|
|
|
35414
35416
|
this.parent_ = null, this.blade = l.blade, this.view = l.view, this.viewProps = l.viewProps;
|
|
35415
35417
|
const o = this.view.element;
|
|
35416
35418
|
this.blade.value("positions").emitter.on("change", () => {
|
|
35417
|
-
|
|
35419
|
+
b4().forEach((c) => {
|
|
35418
35420
|
o.classList.remove(oT(void 0, sT[c]));
|
|
35419
35421
|
}), this.blade.get("positions").forEach((c) => {
|
|
35420
35422
|
o.classList.add(oT(void 0, sT[c]));
|
|
@@ -35494,10 +35496,10 @@ class BD extends ph {
|
|
|
35494
35496
|
});
|
|
35495
35497
|
}
|
|
35496
35498
|
}
|
|
35497
|
-
function
|
|
35499
|
+
function y4(s) {
|
|
35498
35500
|
return ch(s) && RD(s.value);
|
|
35499
35501
|
}
|
|
35500
|
-
class
|
|
35502
|
+
class _4 extends BD {
|
|
35501
35503
|
importState(l) {
|
|
35502
35504
|
return Vi(l, (o) => super.importState(o), (o) => ({
|
|
35503
35505
|
binding: o.required.object({
|
|
@@ -35506,28 +35508,28 @@ class y4 extends BD {
|
|
|
35506
35508
|
}), (o) => (this.value.binding.inject(o.binding.value), this.value.fetch(), !0));
|
|
35507
35509
|
}
|
|
35508
35510
|
}
|
|
35509
|
-
function
|
|
35510
|
-
return ch(s) &&
|
|
35511
|
+
function S4(s) {
|
|
35512
|
+
return ch(s) && o4(s.value);
|
|
35511
35513
|
}
|
|
35512
35514
|
function jD(s, l) {
|
|
35513
35515
|
for (; s.length < l; )
|
|
35514
35516
|
s.push(void 0);
|
|
35515
35517
|
}
|
|
35516
|
-
function
|
|
35518
|
+
function w4(s) {
|
|
35517
35519
|
const l = [];
|
|
35518
35520
|
return jD(l, s), l;
|
|
35519
35521
|
}
|
|
35520
|
-
function
|
|
35522
|
+
function E4(s) {
|
|
35521
35523
|
const l = s.indexOf(void 0);
|
|
35522
35524
|
return l < 0 ? s : s.slice(0, l);
|
|
35523
35525
|
}
|
|
35524
|
-
function
|
|
35525
|
-
const o = [...
|
|
35526
|
+
function C4(s, l) {
|
|
35527
|
+
const o = [...E4(s), l];
|
|
35526
35528
|
return o.length > s.length ? o.splice(0, o.length - s.length) : jD(o, s.length), o;
|
|
35527
35529
|
}
|
|
35528
|
-
class
|
|
35530
|
+
class x4 {
|
|
35529
35531
|
constructor(l) {
|
|
35530
|
-
this.emitter = new pa(), this.onTick_ = this.onTick_.bind(this), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = l.binding, this.value_ = Sn(
|
|
35532
|
+
this.emitter = new pa(), this.onTick_ = this.onTick_.bind(this), this.onValueBeforeChange_ = this.onValueBeforeChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.binding = l.binding, this.value_ = Sn(w4(l.bufferSize)), this.value_.emitter.on("beforechange", this.onValueBeforeChange_), this.value_.emitter.on("change", this.onValueChange_), this.ticker = l.ticker, this.ticker.emitter.on("tick", this.onTick_), this.fetch();
|
|
35531
35533
|
}
|
|
35532
35534
|
get rawValue() {
|
|
35533
35535
|
return this.value_.rawValue;
|
|
@@ -35539,7 +35541,7 @@ class C4 {
|
|
|
35539
35541
|
this.value_.setRawValue(l, o);
|
|
35540
35542
|
}
|
|
35541
35543
|
fetch() {
|
|
35542
|
-
this.value_.rawValue =
|
|
35544
|
+
this.value_.rawValue = C4(this.value_.rawValue, this.binding.read());
|
|
35543
35545
|
}
|
|
35544
35546
|
onTick_() {
|
|
35545
35547
|
this.fetch();
|
|
@@ -35551,13 +35553,13 @@ class C4 {
|
|
|
35551
35553
|
this.emitter.emit("change", Object.assign(Object.assign({}, l), { sender: this }));
|
|
35552
35554
|
}
|
|
35553
35555
|
}
|
|
35554
|
-
function
|
|
35556
|
+
function T4(s) {
|
|
35555
35557
|
if (!("binding" in s))
|
|
35556
35558
|
return !1;
|
|
35557
35559
|
const l = s.binding;
|
|
35558
35560
|
return d2(l) && "read" in l && !("write" in l);
|
|
35559
35561
|
}
|
|
35560
|
-
class
|
|
35562
|
+
class D4 extends BD {
|
|
35561
35563
|
exportState() {
|
|
35562
35564
|
return Gi(() => super.exportState(), {
|
|
35563
35565
|
binding: {
|
|
@@ -35566,10 +35568,10 @@ class T4 extends BD {
|
|
|
35566
35568
|
});
|
|
35567
35569
|
}
|
|
35568
35570
|
}
|
|
35569
|
-
function
|
|
35570
|
-
return ch(s) &&
|
|
35571
|
+
function z4(s) {
|
|
35572
|
+
return ch(s) && T4(s.value);
|
|
35571
35573
|
}
|
|
35572
|
-
class
|
|
35574
|
+
class M4 extends gh {
|
|
35573
35575
|
get label() {
|
|
35574
35576
|
return this.controller.labelController.props.get("label");
|
|
35575
35577
|
}
|
|
@@ -35586,19 +35588,19 @@ class z4 extends gh {
|
|
|
35586
35588
|
on(l, o) {
|
|
35587
35589
|
const c = o.bind(this);
|
|
35588
35590
|
return this.controller.buttonController.emitter.on(l, (b) => {
|
|
35589
|
-
c(new
|
|
35591
|
+
c(new l4(this, b.nativeEvent));
|
|
35590
35592
|
}), this;
|
|
35591
35593
|
}
|
|
35592
35594
|
off(l, o) {
|
|
35593
35595
|
return this.controller.buttonController.emitter.off(l, o), this;
|
|
35594
35596
|
}
|
|
35595
35597
|
}
|
|
35596
|
-
function
|
|
35598
|
+
function A4(s, l, o) {
|
|
35597
35599
|
o ? s.classList.add(l) : s.classList.remove(l);
|
|
35598
35600
|
}
|
|
35599
35601
|
function iv(s, l) {
|
|
35600
35602
|
return (o) => {
|
|
35601
|
-
|
|
35603
|
+
A4(s, l, o);
|
|
35602
35604
|
};
|
|
35603
35605
|
}
|
|
35604
35606
|
function b2(s, l) {
|
|
@@ -35607,7 +35609,7 @@ function b2(s, l) {
|
|
|
35607
35609
|
});
|
|
35608
35610
|
}
|
|
35609
35611
|
const Nw = Re("btn");
|
|
35610
|
-
class
|
|
35612
|
+
class R4 {
|
|
35611
35613
|
constructor(l, o) {
|
|
35612
35614
|
this.element = l.createElement("div"), this.element.classList.add(Nw()), o.viewProps.bindClassModifiers(this.element);
|
|
35613
35615
|
const c = l.createElement("button");
|
|
@@ -35616,9 +35618,9 @@ class A4 {
|
|
|
35616
35618
|
p.classList.add(Nw("t")), b2(o.props.value("title"), p), this.buttonElement.appendChild(p);
|
|
35617
35619
|
}
|
|
35618
35620
|
}
|
|
35619
|
-
class
|
|
35621
|
+
class O4 {
|
|
35620
35622
|
constructor(l, o) {
|
|
35621
|
-
this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new
|
|
35623
|
+
this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new R4(l, {
|
|
35622
35624
|
props: this.props,
|
|
35623
35625
|
viewProps: this.viewProps
|
|
35624
35626
|
}), this.view.buttonElement.addEventListener("click", this.onClick_);
|
|
@@ -35642,7 +35644,7 @@ class R4 {
|
|
|
35642
35644
|
}
|
|
35643
35645
|
class uT extends k_ {
|
|
35644
35646
|
constructor(l, o) {
|
|
35645
|
-
const c = new
|
|
35647
|
+
const c = new O4(l, {
|
|
35646
35648
|
props: o.buttonProps,
|
|
35647
35649
|
viewProps: o.viewProps
|
|
35648
35650
|
}), p = new HD(l, {
|
|
@@ -35677,7 +35679,7 @@ const ov = new VD("2.0.5");
|
|
|
35677
35679
|
function jl(s) {
|
|
35678
35680
|
return Object.assign({ core: ov }, s);
|
|
35679
35681
|
}
|
|
35680
|
-
const
|
|
35682
|
+
const U4 = jl({
|
|
35681
35683
|
id: "button",
|
|
35682
35684
|
type: "blade",
|
|
35683
35685
|
accept(s) {
|
|
@@ -35701,27 +35703,27 @@ const O4 = jl({
|
|
|
35701
35703
|
});
|
|
35702
35704
|
},
|
|
35703
35705
|
api(s) {
|
|
35704
|
-
return s.controller instanceof uT ? new
|
|
35706
|
+
return s.controller instanceof uT ? new M4(s.controller) : null;
|
|
35705
35707
|
}
|
|
35706
35708
|
});
|
|
35707
|
-
function
|
|
35709
|
+
function N4(s, l) {
|
|
35708
35710
|
return s.addBlade(Object.assign(Object.assign({}, l), { view: "button" }));
|
|
35709
35711
|
}
|
|
35710
|
-
function
|
|
35712
|
+
function L4(s, l) {
|
|
35711
35713
|
return s.addBlade(Object.assign(Object.assign({}, l), { view: "folder" }));
|
|
35712
35714
|
}
|
|
35713
|
-
function
|
|
35715
|
+
function H4(s, l) {
|
|
35714
35716
|
return s.addBlade(Object.assign(Object.assign({}, l), { view: "tab" }));
|
|
35715
35717
|
}
|
|
35716
|
-
function
|
|
35718
|
+
function B4(s) {
|
|
35717
35719
|
return f2(s) ? "refresh" in s && typeof s.refresh == "function" : !1;
|
|
35718
35720
|
}
|
|
35719
|
-
function
|
|
35721
|
+
function j4(s, l) {
|
|
35720
35722
|
if (!O_.isBindable(s))
|
|
35721
35723
|
throw Hn.notBindable();
|
|
35722
35724
|
return new O_(s, l);
|
|
35723
35725
|
}
|
|
35724
|
-
class
|
|
35726
|
+
class V4 {
|
|
35725
35727
|
constructor(l, o) {
|
|
35726
35728
|
this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.controller_ = l, this.emitter_ = new pa(), this.pool_ = o, this.controller_.rack.emitter.on("valuechange", this.onRackValueChange_);
|
|
35727
35729
|
}
|
|
@@ -35729,17 +35731,17 @@ class j4 {
|
|
|
35729
35731
|
return this.controller_.rack.children.map((l) => this.pool_.createApi(l));
|
|
35730
35732
|
}
|
|
35731
35733
|
addBinding(l, o, c) {
|
|
35732
|
-
const p = c ?? {}, b = this.controller_.element.ownerDocument, S = this.pool_.createBinding(b,
|
|
35734
|
+
const p = c ?? {}, b = this.controller_.element.ownerDocument, S = this.pool_.createBinding(b, j4(l, o), p), _ = this.pool_.createBindingApi(S);
|
|
35733
35735
|
return this.add(_, p.index);
|
|
35734
35736
|
}
|
|
35735
35737
|
addFolder(l) {
|
|
35736
|
-
return
|
|
35738
|
+
return L4(this, l);
|
|
35737
35739
|
}
|
|
35738
35740
|
addButton(l) {
|
|
35739
|
-
return
|
|
35741
|
+
return N4(this, l);
|
|
35740
35742
|
}
|
|
35741
35743
|
addTab(l) {
|
|
35742
|
-
return
|
|
35744
|
+
return H4(this, l);
|
|
35743
35745
|
}
|
|
35744
35746
|
add(l, o) {
|
|
35745
35747
|
const c = l.controller;
|
|
@@ -35765,7 +35767,7 @@ class j4 {
|
|
|
35765
35767
|
}
|
|
35766
35768
|
refresh() {
|
|
35767
35769
|
this.children.forEach((l) => {
|
|
35768
|
-
|
|
35770
|
+
B4(l) && l.refresh();
|
|
35769
35771
|
});
|
|
35770
35772
|
}
|
|
35771
35773
|
onRackValueChange_(l) {
|
|
@@ -35775,7 +35777,7 @@ class j4 {
|
|
|
35775
35777
|
}
|
|
35776
35778
|
class y2 extends gh {
|
|
35777
35779
|
constructor(l, o) {
|
|
35778
|
-
super(l), this.rackApi_ = new
|
|
35780
|
+
super(l), this.rackApi_ = new V4(l.rackController, o);
|
|
35779
35781
|
}
|
|
35780
35782
|
refresh() {
|
|
35781
35783
|
this.rackApi_.refresh();
|
|
@@ -35803,7 +35805,7 @@ class _2 extends k_ {
|
|
|
35803
35805
|
function Fw(s) {
|
|
35804
35806
|
return "rackController" in s;
|
|
35805
35807
|
}
|
|
35806
|
-
class
|
|
35808
|
+
class G4 {
|
|
35807
35809
|
constructor(l) {
|
|
35808
35810
|
this.emitter = new pa(), this.items_ = [], this.cache_ = /* @__PURE__ */ new Set(), this.onSubListAdd_ = this.onSubListAdd_.bind(this), this.onSubListRemove_ = this.onSubListRemove_.bind(this), this.extract_ = l;
|
|
35809
35811
|
}
|
|
@@ -35869,7 +35871,7 @@ class V4 {
|
|
|
35869
35871
|
});
|
|
35870
35872
|
}
|
|
35871
35873
|
}
|
|
35872
|
-
function
|
|
35874
|
+
function q4(s, l) {
|
|
35873
35875
|
for (let o = 0; o < s.length; o++) {
|
|
35874
35876
|
const c = s[o];
|
|
35875
35877
|
if (ch(c) && c.value === l)
|
|
@@ -35877,13 +35879,13 @@ function G4(s, l) {
|
|
|
35877
35879
|
}
|
|
35878
35880
|
return null;
|
|
35879
35881
|
}
|
|
35880
|
-
function
|
|
35882
|
+
function k4(s) {
|
|
35881
35883
|
return Fw(s) ? s.rackController.rack.bcSet_ : null;
|
|
35882
35884
|
}
|
|
35883
|
-
class
|
|
35885
|
+
class Y4 {
|
|
35884
35886
|
constructor(l) {
|
|
35885
35887
|
var o, c;
|
|
35886
|
-
this.emitter = new pa(), this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onRackLayout_ = this.onRackLayout_.bind(this), this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.blade_ = (o = l.blade) !== null && o !== void 0 ? o : null, (c = this.blade_) === null || c === void 0 || c.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = l.viewProps, this.bcSet_ = new
|
|
35888
|
+
this.emitter = new pa(), this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onRackLayout_ = this.onRackLayout_.bind(this), this.onRackValueChange_ = this.onRackValueChange_.bind(this), this.blade_ = (o = l.blade) !== null && o !== void 0 ? o : null, (c = this.blade_) === null || c === void 0 || c.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = l.viewProps, this.bcSet_ = new G4(k4), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
|
|
35887
35889
|
}
|
|
35888
35890
|
get children() {
|
|
35889
35891
|
return this.bcSet_.items;
|
|
@@ -35962,7 +35964,7 @@ class k4 {
|
|
|
35962
35964
|
});
|
|
35963
35965
|
}
|
|
35964
35966
|
onChildValueChange_(l) {
|
|
35965
|
-
const o =
|
|
35967
|
+
const o = q4(this.find(ch), l.sender);
|
|
35966
35968
|
if (!o)
|
|
35967
35969
|
throw Hn.alreadyDisposed();
|
|
35968
35970
|
this.emitter.emit("valuechange", {
|
|
@@ -35990,7 +35992,7 @@ class k4 {
|
|
|
35990
35992
|
class S2 {
|
|
35991
35993
|
constructor(l) {
|
|
35992
35994
|
this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.element = l.element, this.viewProps = l.viewProps;
|
|
35993
|
-
const o = new
|
|
35995
|
+
const o = new Y4({
|
|
35994
35996
|
blade: l.root ? void 0 : l.blade,
|
|
35995
35997
|
viewProps: l.viewProps
|
|
35996
35998
|
});
|
|
@@ -36009,7 +36011,7 @@ class S2 {
|
|
|
36009
36011
|
function sv() {
|
|
36010
36012
|
return new he({
|
|
36011
36013
|
positions: Sn([], {
|
|
36012
|
-
equals:
|
|
36014
|
+
equals: _3
|
|
36013
36015
|
})
|
|
36014
36016
|
});
|
|
36015
36017
|
}
|
|
@@ -36047,9 +36049,9 @@ class U0 extends he {
|
|
|
36047
36049
|
this.set("shouldFixHeight", !1), this.set("expandedHeight", null), this.set("completed", !0);
|
|
36048
36050
|
}
|
|
36049
36051
|
}
|
|
36050
|
-
function
|
|
36052
|
+
function X4(s, l) {
|
|
36051
36053
|
let o = 0;
|
|
36052
|
-
return
|
|
36054
|
+
return c4(l, () => {
|
|
36053
36055
|
s.set("expandedHeight", null), s.set("temporaryExpanded", !0), U_(l), o = l.clientHeight, s.set("temporaryExpanded", null), U_(l);
|
|
36054
36056
|
}), o;
|
|
36055
36057
|
}
|
|
@@ -36059,7 +36061,7 @@ function cT(s, l) {
|
|
|
36059
36061
|
function w2(s, l) {
|
|
36060
36062
|
s.value("expanded").emitter.on("beforechange", () => {
|
|
36061
36063
|
if (s.set("completed", !1), cn(s.get("expandedHeight"))) {
|
|
36062
|
-
const o =
|
|
36064
|
+
const o = X4(s, l);
|
|
36063
36065
|
o > 0 && s.set("expandedHeight", o);
|
|
36064
36066
|
}
|
|
36065
36067
|
s.set("shouldFixHeight", !0), U_(l);
|
|
@@ -36072,7 +36074,7 @@ function w2(s, l) {
|
|
|
36072
36074
|
class GD extends y2 {
|
|
36073
36075
|
constructor(l, o) {
|
|
36074
36076
|
super(l, o), this.emitter_ = new pa(), this.controller.foldable.value("expanded").emitter.on("change", (c) => {
|
|
36075
|
-
this.emitter_.emit("fold", new
|
|
36077
|
+
this.emitter_.emit("fold", new n4(this, c.sender.rawValue));
|
|
36076
36078
|
}), this.rackApi_.on("change", (c) => {
|
|
36077
36079
|
this.emitter_.emit("change", c);
|
|
36078
36080
|
});
|
|
@@ -36126,7 +36128,7 @@ class GD extends y2 {
|
|
|
36126
36128
|
}
|
|
36127
36129
|
}
|
|
36128
36130
|
const qD = Re("cnt");
|
|
36129
|
-
class
|
|
36131
|
+
class P4 {
|
|
36130
36132
|
constructor(l, o) {
|
|
36131
36133
|
var c;
|
|
36132
36134
|
this.className_ = Re((c = o.viewName) !== null && c !== void 0 ? c : "fld"), this.element = l.createElement("div"), this.element.classList.add(this.className_(), qD()), o.viewProps.bindClassModifiers(this.element), this.foldable_ = o.foldable, this.foldable_.bindExpandedClass(this.element, this.className_(void 0, "expanded")), sr(this.foldable_, "completed", iv(this.element, this.className_(void 0, "cpl")));
|
|
@@ -36147,7 +36149,7 @@ class X4 {
|
|
|
36147
36149
|
class Iw extends _2 {
|
|
36148
36150
|
constructor(l, o) {
|
|
36149
36151
|
var c;
|
|
36150
|
-
const p = U0.create((c = o.expanded) !== null && c !== void 0 ? c : !0), b = new
|
|
36152
|
+
const p = U0.create((c = o.expanded) !== null && c !== void 0 ? c : !0), b = new P4(l, {
|
|
36151
36153
|
foldable: p,
|
|
36152
36154
|
props: o.props,
|
|
36153
36155
|
viewName: o.root ? "rot" : void 0,
|
|
@@ -36183,7 +36185,7 @@ class Iw extends _2 {
|
|
|
36183
36185
|
this.foldable.set("expanded", !this.foldable.get("expanded"));
|
|
36184
36186
|
}
|
|
36185
36187
|
}
|
|
36186
|
-
const
|
|
36188
|
+
const Q4 = jl({
|
|
36187
36189
|
id: "folder",
|
|
36188
36190
|
type: "blade",
|
|
36189
36191
|
accept(s) {
|
|
@@ -36207,14 +36209,14 @@ const P4 = jl({
|
|
|
36207
36209
|
api(s) {
|
|
36208
36210
|
return s.controller instanceof Iw ? new GD(s.controller, s.pool) : null;
|
|
36209
36211
|
}
|
|
36210
|
-
}),
|
|
36212
|
+
}), Z4 = Re("");
|
|
36211
36213
|
function fT(s, l) {
|
|
36212
|
-
return iv(s,
|
|
36214
|
+
return iv(s, Z4(void 0, l));
|
|
36213
36215
|
}
|
|
36214
36216
|
class Tu extends he {
|
|
36215
36217
|
constructor(l) {
|
|
36216
36218
|
var o;
|
|
36217
|
-
super(l), this.onDisabledChange_ = this.onDisabledChange_.bind(this), this.onParentChange_ = this.onParentChange_.bind(this), this.onParentGlobalDisabledChange_ = this.onParentGlobalDisabledChange_.bind(this), [this.globalDisabled_, this.setGlobalDisabled_] =
|
|
36219
|
+
super(l), this.onDisabledChange_ = this.onDisabledChange_.bind(this), this.onParentChange_ = this.onParentChange_.bind(this), this.onParentGlobalDisabledChange_ = this.onParentGlobalDisabledChange_.bind(this), [this.globalDisabled_, this.setGlobalDisabled_] = x3(Sn(this.getGlobalDisabled_())), this.value("disabled").emitter.on("change", this.onDisabledChange_), this.value("parent").emitter.on("change", this.onParentChange_), (o = this.get("parent")) === null || o === void 0 || o.globalDisabled.emitter.on("change", this.onParentGlobalDisabledChange_);
|
|
36218
36220
|
}
|
|
36219
36221
|
static create(l) {
|
|
36220
36222
|
var o, c, p;
|
|
@@ -36276,7 +36278,7 @@ class Tu extends he {
|
|
|
36276
36278
|
}
|
|
36277
36279
|
}
|
|
36278
36280
|
const dT = Re("tbp");
|
|
36279
|
-
class
|
|
36281
|
+
class K4 {
|
|
36280
36282
|
constructor(l, o) {
|
|
36281
36283
|
this.element = l.createElement("div"), this.element.classList.add(dT()), o.viewProps.bindClassModifiers(this.element);
|
|
36282
36284
|
const c = l.createElement("div");
|
|
@@ -36284,7 +36286,7 @@ class Z4 {
|
|
|
36284
36286
|
}
|
|
36285
36287
|
}
|
|
36286
36288
|
const h0 = Re("tbi");
|
|
36287
|
-
class
|
|
36289
|
+
class J4 {
|
|
36288
36290
|
constructor(l, o) {
|
|
36289
36291
|
this.element = l.createElement("div"), this.element.classList.add(h0()), o.viewProps.bindClassModifiers(this.element), sr(o.props, "selected", (b) => {
|
|
36290
36292
|
b ? this.element.classList.add(h0(void 0, "sel")) : this.element.classList.remove(h0(void 0, "sel"));
|
|
@@ -36295,9 +36297,9 @@ class K4 {
|
|
|
36295
36297
|
p.classList.add(h0("t")), b2(o.props.value("title"), p), this.buttonElement.appendChild(p), this.titleElement = p;
|
|
36296
36298
|
}
|
|
36297
36299
|
}
|
|
36298
|
-
class
|
|
36300
|
+
class $4 {
|
|
36299
36301
|
constructor(l, o) {
|
|
36300
|
-
this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new
|
|
36302
|
+
this.emitter = new pa(), this.onClick_ = this.onClick_.bind(this), this.props = o.props, this.viewProps = o.viewProps, this.view = new J4(l, {
|
|
36301
36303
|
props: o.props,
|
|
36302
36304
|
viewProps: o.viewProps
|
|
36303
36305
|
}), this.view.buttonElement.addEventListener("click", this.onClick_);
|
|
@@ -36310,14 +36312,14 @@ class J4 {
|
|
|
36310
36312
|
}
|
|
36311
36313
|
class t2 extends _2 {
|
|
36312
36314
|
constructor(l, o) {
|
|
36313
|
-
const c = new
|
|
36315
|
+
const c = new K4(l, {
|
|
36314
36316
|
viewProps: o.viewProps
|
|
36315
36317
|
});
|
|
36316
36318
|
super(Object.assign(Object.assign({}, o), { rackController: new S2({
|
|
36317
36319
|
blade: o.blade,
|
|
36318
36320
|
element: c.containerElement,
|
|
36319
36321
|
viewProps: o.viewProps
|
|
36320
|
-
}), view: c })), this.onItemClick_ = this.onItemClick_.bind(this), this.ic_ = new
|
|
36322
|
+
}), view: c })), this.onItemClick_ = this.onItemClick_.bind(this), this.ic_ = new $4(l, {
|
|
36321
36323
|
props: o.itemProps,
|
|
36322
36324
|
viewProps: Tu.create()
|
|
36323
36325
|
}), this.ic_.emitter.on("click", this.onItemClick_), this.props = o.props, sr(this.props, "selected", (p) => {
|
|
@@ -36343,7 +36345,7 @@ class t2 extends _2 {
|
|
|
36343
36345
|
this.props.set("selected", !0);
|
|
36344
36346
|
}
|
|
36345
36347
|
}
|
|
36346
|
-
class
|
|
36348
|
+
class W4 extends y2 {
|
|
36347
36349
|
constructor(l, o) {
|
|
36348
36350
|
super(l, o), this.emitter_ = new pa(), this.onSelect_ = this.onSelect_.bind(this), this.pool_ = o, this.rackApi_.on("change", (c) => {
|
|
36349
36351
|
this.emitter_.emit("change", c);
|
|
@@ -36381,10 +36383,10 @@ class $4 extends y2 {
|
|
|
36381
36383
|
return this.emitter_.off(l, o), this;
|
|
36382
36384
|
}
|
|
36383
36385
|
onSelect_(l) {
|
|
36384
|
-
this.emitter_.emit("select", new
|
|
36386
|
+
this.emitter_.emit("select", new a4(this, l.rawValue));
|
|
36385
36387
|
}
|
|
36386
36388
|
}
|
|
36387
|
-
class
|
|
36389
|
+
class F4 extends y2 {
|
|
36388
36390
|
get title() {
|
|
36389
36391
|
var l;
|
|
36390
36392
|
return (l = this.controller.itemController.props.get("title")) !== null && l !== void 0 ? l : "";
|
|
@@ -36424,7 +36426,7 @@ class W4 extends y2 {
|
|
|
36424
36426
|
}
|
|
36425
36427
|
}
|
|
36426
36428
|
const hT = -1;
|
|
36427
|
-
class
|
|
36429
|
+
class I4 {
|
|
36428
36430
|
constructor() {
|
|
36429
36431
|
this.onItemSelectedChange_ = this.onItemSelectedChange_.bind(this), this.empty = Sn(!0), this.selectedIndex = Sn(hT), this.items_ = [];
|
|
36430
36432
|
}
|
|
@@ -36459,7 +36461,7 @@ class F4 {
|
|
|
36459
36461
|
}
|
|
36460
36462
|
}
|
|
36461
36463
|
const p0 = Re("tab");
|
|
36462
|
-
class
|
|
36464
|
+
class t5 {
|
|
36463
36465
|
constructor(l, o) {
|
|
36464
36466
|
this.element = l.createElement("div"), this.element.classList.add(p0(), qD()), o.viewProps.bindClassModifiers(this.element), wu(o.empty, iv(this.element, p0(void 0, "nop")));
|
|
36465
36467
|
const c = l.createElement("div");
|
|
@@ -36472,7 +36474,7 @@ class I4 {
|
|
|
36472
36474
|
}
|
|
36473
36475
|
class pT extends _2 {
|
|
36474
36476
|
constructor(l, o) {
|
|
36475
|
-
const c = new
|
|
36477
|
+
const c = new I4(), p = new t5(l, {
|
|
36476
36478
|
empty: c.empty,
|
|
36477
36479
|
viewProps: o.viewProps
|
|
36478
36480
|
});
|
|
@@ -36538,10 +36540,10 @@ const kD = jl({
|
|
|
36538
36540
|
}), l;
|
|
36539
36541
|
},
|
|
36540
36542
|
api(s) {
|
|
36541
|
-
return s.controller instanceof pT ? new
|
|
36543
|
+
return s.controller instanceof pT ? new W4(s.controller, s.pool) : s.controller instanceof t2 ? new F4(s.controller, s.pool) : null;
|
|
36542
36544
|
}
|
|
36543
36545
|
});
|
|
36544
|
-
function
|
|
36546
|
+
function e5(s, l) {
|
|
36545
36547
|
const o = s.accept(l.params);
|
|
36546
36548
|
if (!o)
|
|
36547
36549
|
return null;
|
|
@@ -36567,7 +36569,7 @@ class E2 extends T0 {
|
|
|
36567
36569
|
this.controller.valueController.props.set("options", l);
|
|
36568
36570
|
}
|
|
36569
36571
|
}
|
|
36570
|
-
class
|
|
36572
|
+
class n5 {
|
|
36571
36573
|
constructor() {
|
|
36572
36574
|
this.disabled = !1, this.emitter = new pa();
|
|
36573
36575
|
}
|
|
@@ -36579,7 +36581,7 @@ class e5 {
|
|
|
36579
36581
|
});
|
|
36580
36582
|
}
|
|
36581
36583
|
}
|
|
36582
|
-
class
|
|
36584
|
+
class a5 {
|
|
36583
36585
|
constructor(l, o) {
|
|
36584
36586
|
this.disabled_ = !1, this.timerId_ = null, this.onTick_ = this.onTick_.bind(this), this.doc_ = l, this.emitter = new pa(), this.interval_ = o, this.setTimer_();
|
|
36585
36587
|
}
|
|
@@ -36664,7 +36666,7 @@ function x2(s) {
|
|
|
36664
36666
|
return cn(s) ? null : new L0(C2(s));
|
|
36665
36667
|
}
|
|
36666
36668
|
const Lw = Re("lst");
|
|
36667
|
-
class
|
|
36669
|
+
class l5 {
|
|
36668
36670
|
constructor(l, o) {
|
|
36669
36671
|
this.onValueChange_ = this.onValueChange_.bind(this), this.props_ = o.props, this.element = l.createElement("div"), this.element.classList.add(Lw()), o.viewProps.bindClassModifiers(this.element);
|
|
36670
36672
|
const c = l.createElement("select");
|
|
@@ -36687,7 +36689,7 @@ class a5 {
|
|
|
36687
36689
|
}
|
|
36688
36690
|
class yf {
|
|
36689
36691
|
constructor(l, o) {
|
|
36690
|
-
this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
36692
|
+
this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new l5(l, {
|
|
36691
36693
|
props: this.props,
|
|
36692
36694
|
value: this.value,
|
|
36693
36695
|
viewProps: this.viewProps
|
|
@@ -36709,21 +36711,21 @@ class yf {
|
|
|
36709
36711
|
}
|
|
36710
36712
|
}
|
|
36711
36713
|
const mT = Re("pop");
|
|
36712
|
-
class
|
|
36714
|
+
class i5 {
|
|
36713
36715
|
constructor(l, o) {
|
|
36714
36716
|
this.element = l.createElement("div"), this.element.classList.add(mT()), o.viewProps.bindClassModifiers(this.element), wu(o.shows, iv(this.element, mT(void 0, "v")));
|
|
36715
36717
|
}
|
|
36716
36718
|
}
|
|
36717
36719
|
class YD {
|
|
36718
36720
|
constructor(l, o) {
|
|
36719
|
-
this.shows = Sn(!1), this.viewProps = o.viewProps, this.view = new
|
|
36721
|
+
this.shows = Sn(!1), this.viewProps = o.viewProps, this.view = new i5(l, {
|
|
36720
36722
|
shows: this.shows,
|
|
36721
36723
|
viewProps: this.viewProps
|
|
36722
36724
|
});
|
|
36723
36725
|
}
|
|
36724
36726
|
}
|
|
36725
36727
|
const vT = Re("txt");
|
|
36726
|
-
class
|
|
36728
|
+
class o5 {
|
|
36727
36729
|
constructor(l, o) {
|
|
36728
36730
|
this.onChange_ = this.onChange_.bind(this), this.element = l.createElement("div"), this.element.classList.add(vT()), o.viewProps.bindClassModifiers(this.element), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_);
|
|
36729
36731
|
const c = l.createElement("input");
|
|
@@ -36739,7 +36741,7 @@ class i5 {
|
|
|
36739
36741
|
}
|
|
36740
36742
|
class D0 {
|
|
36741
36743
|
constructor(l, o) {
|
|
36742
|
-
this.onInputChange_ = this.onInputChange_.bind(this), this.parser_ = o.parser, this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
36744
|
+
this.onInputChange_ = this.onInputChange_.bind(this), this.parser_ = o.parser, this.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new o5(l, {
|
|
36743
36745
|
props: o.props,
|
|
36744
36746
|
value: this.value,
|
|
36745
36747
|
viewProps: this.viewProps
|
|
@@ -36750,21 +36752,21 @@ class D0 {
|
|
|
36750
36752
|
cn(p) || (this.value.rawValue = p), this.view.refresh();
|
|
36751
36753
|
}
|
|
36752
36754
|
}
|
|
36753
|
-
function
|
|
36755
|
+
function s5(s) {
|
|
36754
36756
|
return String(s);
|
|
36755
36757
|
}
|
|
36756
36758
|
function XD(s) {
|
|
36757
36759
|
return s === "false" ? !1 : !!s;
|
|
36758
36760
|
}
|
|
36759
36761
|
function gT(s) {
|
|
36760
|
-
return
|
|
36762
|
+
return s5(s);
|
|
36761
36763
|
}
|
|
36762
|
-
function
|
|
36764
|
+
function r5(s) {
|
|
36763
36765
|
return (l) => s.reduce((o, c) => o !== null ? o : c(l), null);
|
|
36764
36766
|
}
|
|
36765
|
-
const
|
|
36767
|
+
const u5 = oi(0);
|
|
36766
36768
|
function L_(s) {
|
|
36767
|
-
return
|
|
36769
|
+
return u5(s) + "%";
|
|
36768
36770
|
}
|
|
36769
36771
|
function PD(s) {
|
|
36770
36772
|
return String(s);
|
|
@@ -36814,11 +36816,11 @@ function xu(s) {
|
|
|
36814
36816
|
upKey: s.key === "ArrowRight"
|
|
36815
36817
|
};
|
|
36816
36818
|
}
|
|
36817
|
-
function
|
|
36819
|
+
function c5(s) {
|
|
36818
36820
|
return s === "ArrowUp" || s === "ArrowDown";
|
|
36819
36821
|
}
|
|
36820
36822
|
function QD(s) {
|
|
36821
|
-
return
|
|
36823
|
+
return c5(s) || s === "ArrowLeft" || s === "ArrowRight";
|
|
36822
36824
|
}
|
|
36823
36825
|
function Hw(s, l) {
|
|
36824
36826
|
var o, c;
|
|
@@ -36917,7 +36919,7 @@ class bh {
|
|
|
36917
36919
|
}
|
|
36918
36920
|
}
|
|
36919
36921
|
const Oo = Re("txt");
|
|
36920
|
-
class
|
|
36922
|
+
class f5 {
|
|
36921
36923
|
constructor(l, o) {
|
|
36922
36924
|
this.onChange_ = this.onChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_), this.element = l.createElement("div"), this.element.classList.add(Oo(), Oo(void 0, "num")), o.arrayPosition && this.element.classList.add(Oo(void 0, o.arrayPosition)), o.viewProps.bindClassModifiers(this.element);
|
|
36923
36925
|
const c = l.createElement("input");
|
|
@@ -36955,7 +36957,7 @@ class c5 {
|
|
|
36955
36957
|
class B0 {
|
|
36956
36958
|
constructor(l, o) {
|
|
36957
36959
|
var c;
|
|
36958
|
-
this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.parser_ = o.parser, this.props = o.props, this.sliderProps_ = (c = o.sliderProps) !== null && c !== void 0 ? c : null, this.value = o.value, this.viewProps = o.viewProps, this.dragging_ = Sn(null), this.view = new
|
|
36960
|
+
this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.parser_ = o.parser, this.props = o.props, this.sliderProps_ = (c = o.sliderProps) !== null && c !== void 0 ? c : null, this.value = o.value, this.viewProps = o.viewProps, this.dragging_ = Sn(null), this.view = new f5(l, {
|
|
36959
36961
|
arrayPosition: o.arrayPosition,
|
|
36960
36962
|
dragging: this.dragging_,
|
|
36961
36963
|
props: this.props,
|
|
@@ -37013,7 +37015,7 @@ class B0 {
|
|
|
37013
37015
|
}
|
|
37014
37016
|
}
|
|
37015
37017
|
const Bw = Re("sld");
|
|
37016
|
-
class
|
|
37018
|
+
class d5 {
|
|
37017
37019
|
constructor(l, o) {
|
|
37018
37020
|
this.onChange_ = this.onChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onChange_), this.element = l.createElement("div"), this.element.classList.add(Bw()), o.viewProps.bindClassModifiers(this.element);
|
|
37019
37021
|
const c = l.createElement("div");
|
|
@@ -37029,9 +37031,9 @@ class f5 {
|
|
|
37029
37031
|
this.update_();
|
|
37030
37032
|
}
|
|
37031
37033
|
}
|
|
37032
|
-
class
|
|
37034
|
+
class h5 {
|
|
37033
37035
|
constructor(l, o) {
|
|
37034
|
-
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDownOrMove_ = this.onPointerDownOrMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.props = o.props, this.view = new
|
|
37036
|
+
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDownOrMove_ = this.onPointerDownOrMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.props = o.props, this.view = new d5(l, {
|
|
37035
37037
|
props: this.props,
|
|
37036
37038
|
value: this.value,
|
|
37037
37039
|
viewProps: this.viewProps
|
|
@@ -37067,7 +37069,7 @@ class d5 {
|
|
|
37067
37069
|
}
|
|
37068
37070
|
}
|
|
37069
37071
|
const jw = Re("sldtxt");
|
|
37070
|
-
class
|
|
37072
|
+
class p5 {
|
|
37071
37073
|
constructor(l, o) {
|
|
37072
37074
|
this.element = l.createElement("div"), this.element.classList.add(jw());
|
|
37073
37075
|
const c = l.createElement("div");
|
|
@@ -37078,7 +37080,7 @@ class h5 {
|
|
|
37078
37080
|
}
|
|
37079
37081
|
class H_ {
|
|
37080
37082
|
constructor(l, o) {
|
|
37081
|
-
this.value = o.value, this.viewProps = o.viewProps, this.sliderC_ = new
|
|
37083
|
+
this.value = o.value, this.viewProps = o.viewProps, this.sliderC_ = new h5(l, {
|
|
37082
37084
|
props: o.sliderProps,
|
|
37083
37085
|
value: o.value,
|
|
37084
37086
|
viewProps: this.viewProps
|
|
@@ -37088,7 +37090,7 @@ class H_ {
|
|
|
37088
37090
|
sliderProps: o.sliderProps,
|
|
37089
37091
|
value: o.value,
|
|
37090
37092
|
viewProps: o.viewProps
|
|
37091
|
-
}), this.view = new
|
|
37093
|
+
}), this.view = new p5(l, {
|
|
37092
37094
|
sliderView: this.sliderC_.view,
|
|
37093
37095
|
textView: this.textC_.view
|
|
37094
37096
|
});
|
|
@@ -37130,11 +37132,11 @@ function ZD(s) {
|
|
|
37130
37132
|
})
|
|
37131
37133
|
};
|
|
37132
37134
|
}
|
|
37133
|
-
const
|
|
37135
|
+
const m5 = {
|
|
37134
37136
|
containerUnitSize: "cnt-usz"
|
|
37135
37137
|
};
|
|
37136
37138
|
function KD(s) {
|
|
37137
|
-
return `--${
|
|
37139
|
+
return `--${m5[s]}`;
|
|
37138
37140
|
}
|
|
37139
37141
|
function M0(s) {
|
|
37140
37142
|
return AD(s);
|
|
@@ -37151,7 +37153,7 @@ function Su(s, l) {
|
|
|
37151
37153
|
const p = zD(s);
|
|
37152
37154
|
return p && o.push(p), new N0(o);
|
|
37153
37155
|
}
|
|
37154
|
-
function
|
|
37156
|
+
function v5(s) {
|
|
37155
37157
|
return s ? s.major === ov.major : !1;
|
|
37156
37158
|
}
|
|
37157
37159
|
function JD(s) {
|
|
@@ -37162,7 +37164,7 @@ function j0(s, l) {
|
|
|
37162
37164
|
s.write(l);
|
|
37163
37165
|
}
|
|
37164
37166
|
const z_ = Re("ckb");
|
|
37165
|
-
class
|
|
37167
|
+
class g5 {
|
|
37166
37168
|
constructor(l, o) {
|
|
37167
37169
|
this.onValueChange_ = this.onValueChange_.bind(this), this.element = l.createElement("div"), this.element.classList.add(z_()), o.viewProps.bindClassModifiers(this.element);
|
|
37168
37170
|
const c = l.createElement("label");
|
|
@@ -37181,9 +37183,9 @@ class v5 {
|
|
|
37181
37183
|
this.update_();
|
|
37182
37184
|
}
|
|
37183
37185
|
}
|
|
37184
|
-
class
|
|
37186
|
+
class b5 {
|
|
37185
37187
|
constructor(l, o) {
|
|
37186
|
-
this.onInputChange_ = this.onInputChange_.bind(this), this.onLabelMouseDown_ = this.onLabelMouseDown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
37188
|
+
this.onInputChange_ = this.onInputChange_.bind(this), this.onLabelMouseDown_ = this.onLabelMouseDown_.bind(this), this.value = o.value, this.viewProps = o.viewProps, this.view = new g5(l, {
|
|
37187
37189
|
value: this.value,
|
|
37188
37190
|
viewProps: this.viewProps
|
|
37189
37191
|
}), this.view.inputElement.addEventListener("change", this.onInputChange_), this.view.labelElement.addEventListener("mousedown", this.onLabelMouseDown_);
|
|
@@ -37196,11 +37198,11 @@ class g5 {
|
|
|
37196
37198
|
l.preventDefault();
|
|
37197
37199
|
}
|
|
37198
37200
|
}
|
|
37199
|
-
function
|
|
37201
|
+
function y5(s) {
|
|
37200
37202
|
const l = [], o = x2(s.options);
|
|
37201
37203
|
return o && l.push(o), new N0(l);
|
|
37202
37204
|
}
|
|
37203
|
-
const
|
|
37205
|
+
const _5 = jl({
|
|
37204
37206
|
id: "input-bool",
|
|
37205
37207
|
type: "input",
|
|
37206
37208
|
accept: (s, l) => {
|
|
@@ -37217,7 +37219,7 @@ const y5 = jl({
|
|
|
37217
37219
|
},
|
|
37218
37220
|
binding: {
|
|
37219
37221
|
reader: (s) => XD,
|
|
37220
|
-
constraint: (s) =>
|
|
37222
|
+
constraint: (s) => y5(s.params),
|
|
37221
37223
|
writer: (s) => j0
|
|
37222
37224
|
},
|
|
37223
37225
|
controller: (s) => {
|
|
@@ -37228,7 +37230,7 @@ const y5 = jl({
|
|
|
37228
37230
|
}),
|
|
37229
37231
|
value: o,
|
|
37230
37232
|
viewProps: s.viewProps
|
|
37231
|
-
}) : new
|
|
37233
|
+
}) : new b5(l, {
|
|
37232
37234
|
value: o,
|
|
37233
37235
|
viewProps: s.viewProps
|
|
37234
37236
|
});
|
|
@@ -37237,7 +37239,7 @@ const y5 = jl({
|
|
|
37237
37239
|
return typeof s.controller.value.rawValue != "boolean" ? null : s.controller.valueController instanceof yf ? new E2(s.controller) : null;
|
|
37238
37240
|
}
|
|
37239
37241
|
}), sh = Re("col");
|
|
37240
|
-
class
|
|
37242
|
+
class S5 {
|
|
37241
37243
|
constructor(l, o) {
|
|
37242
37244
|
this.element = l.createElement("div"), this.element.classList.add(sh()), o.foldable.bindExpandedClass(this.element, sh(void 0, "expanded")), sr(o.foldable, "completed", iv(this.element, sh(void 0, "cpl")));
|
|
37243
37245
|
const c = l.createElement("div");
|
|
@@ -37252,18 +37254,18 @@ class _5 {
|
|
|
37252
37254
|
this.pickerElement = null;
|
|
37253
37255
|
}
|
|
37254
37256
|
}
|
|
37255
|
-
function
|
|
37257
|
+
function w5(s, l, o) {
|
|
37256
37258
|
const c = Ea(s / 255, 0, 1), p = Ea(l / 255, 0, 1), b = Ea(o / 255, 0, 1), S = Math.max(c, p, b), _ = Math.min(c, p, b), C = S - _;
|
|
37257
37259
|
let x = 0, D = 0;
|
|
37258
37260
|
const M = (_ + S) / 2;
|
|
37259
37261
|
return C !== 0 && (D = C / (1 - Math.abs(S + _ - 1)), c === S ? x = (p - b) / C : p === S ? x = 2 + (b - c) / C : x = 4 + (c - p) / C, x = x / 6 + (x < 0 ? 1 : 0)), [x * 360, D * 100, M * 100];
|
|
37260
37262
|
}
|
|
37261
|
-
function
|
|
37263
|
+
function E5(s, l, o) {
|
|
37262
37264
|
const c = (s % 360 + 360) % 360, p = Ea(l / 100, 0, 1), b = Ea(o / 100, 0, 1), S = (1 - Math.abs(2 * b - 1)) * p, _ = S * (1 - Math.abs(c / 60 % 2 - 1)), C = b - S / 2;
|
|
37263
37265
|
let x, D, M;
|
|
37264
37266
|
return c >= 0 && c < 60 ? [x, D, M] = [S, _, 0] : c >= 60 && c < 120 ? [x, D, M] = [_, S, 0] : c >= 120 && c < 180 ? [x, D, M] = [0, S, _] : c >= 180 && c < 240 ? [x, D, M] = [0, _, S] : c >= 240 && c < 300 ? [x, D, M] = [_, 0, S] : [x, D, M] = [S, 0, _], [(x + C) * 255, (D + C) * 255, (M + C) * 255];
|
|
37265
37267
|
}
|
|
37266
|
-
function
|
|
37268
|
+
function C5(s, l, o) {
|
|
37267
37269
|
const c = Ea(s / 255, 0, 1), p = Ea(l / 255, 0, 1), b = Ea(o / 255, 0, 1), S = Math.max(c, p, b), _ = Math.min(c, p, b), C = S - _;
|
|
37268
37270
|
let x;
|
|
37269
37271
|
C === 0 ? x = 0 : S === c ? x = 60 * (((p - b) / C % 6 + 6) % 6) : S === p ? x = 60 * ((b - c) / C + 2) : x = 60 * ((c - p) / C + 4);
|
|
@@ -37275,7 +37277,7 @@ function $D(s, l, o) {
|
|
|
37275
37277
|
let x, D, M;
|
|
37276
37278
|
return c >= 0 && c < 60 ? [x, D, M] = [S, _, 0] : c >= 60 && c < 120 ? [x, D, M] = [_, S, 0] : c >= 120 && c < 180 ? [x, D, M] = [0, S, _] : c >= 180 && c < 240 ? [x, D, M] = [0, _, S] : c >= 240 && c < 300 ? [x, D, M] = [_, 0, S] : [x, D, M] = [S, 0, _], [(x + C) * 255, (D + C) * 255, (M + C) * 255];
|
|
37277
37279
|
}
|
|
37278
|
-
function
|
|
37280
|
+
function x5(s, l, o) {
|
|
37279
37281
|
const c = o + l * (100 - Math.abs(2 * o - 100)) / 200;
|
|
37280
37282
|
return [
|
|
37281
37283
|
s,
|
|
@@ -37283,7 +37285,7 @@ function C5(s, l, o) {
|
|
|
37283
37285
|
o + l * (100 - Math.abs(2 * o - 100)) / 200
|
|
37284
37286
|
];
|
|
37285
37287
|
}
|
|
37286
|
-
function
|
|
37288
|
+
function T5(s, l, o) {
|
|
37287
37289
|
const c = 100 - Math.abs(o * (200 - l) / 100 - 100);
|
|
37288
37290
|
return [s, c !== 0 ? l * o / c : 0, o * (200 - l) / 200];
|
|
37289
37291
|
}
|
|
@@ -37293,20 +37295,20 @@ function rr(s) {
|
|
|
37293
37295
|
function Y_(s, l) {
|
|
37294
37296
|
return [s[0], s[1], s[2], l];
|
|
37295
37297
|
}
|
|
37296
|
-
const
|
|
37298
|
+
const D5 = {
|
|
37297
37299
|
hsl: {
|
|
37298
37300
|
hsl: (s, l, o) => [s, l, o],
|
|
37299
|
-
hsv:
|
|
37300
|
-
rgb:
|
|
37301
|
+
hsv: x5,
|
|
37302
|
+
rgb: E5
|
|
37301
37303
|
},
|
|
37302
37304
|
hsv: {
|
|
37303
|
-
hsl:
|
|
37305
|
+
hsl: T5,
|
|
37304
37306
|
hsv: (s, l, o) => [s, l, o],
|
|
37305
37307
|
rgb: $D
|
|
37306
37308
|
},
|
|
37307
37309
|
rgb: {
|
|
37308
|
-
hsl:
|
|
37309
|
-
hsv:
|
|
37310
|
+
hsl: w5,
|
|
37311
|
+
hsv: C5,
|
|
37310
37312
|
rgb: (s, l, o) => [s, l, o]
|
|
37311
37313
|
}
|
|
37312
37314
|
};
|
|
@@ -37317,14 +37319,14 @@ function av(s, l) {
|
|
|
37317
37319
|
l === "float" ? 1 : s === "rgb" ? 255 : 100
|
|
37318
37320
|
];
|
|
37319
37321
|
}
|
|
37320
|
-
function
|
|
37322
|
+
function z5(s, l) {
|
|
37321
37323
|
return s === l ? l : CD(s, l);
|
|
37322
37324
|
}
|
|
37323
37325
|
function WD(s, l, o) {
|
|
37324
37326
|
var c;
|
|
37325
37327
|
const p = av(l, o);
|
|
37326
37328
|
return [
|
|
37327
|
-
l === "rgb" ? Ea(s[0], 0, p[0]) :
|
|
37329
|
+
l === "rgb" ? Ea(s[0], 0, p[0]) : z5(s[0], p[0]),
|
|
37328
37330
|
Ea(s[1], 0, p[1]),
|
|
37329
37331
|
Ea(s[2], 0, p[2]),
|
|
37330
37332
|
Ea((c = s[3]) !== null && c !== void 0 ? c : 1, 0, 1)
|
|
@@ -37335,7 +37337,7 @@ function bT(s, l, o, c) {
|
|
|
37335
37337
|
return s.map((S, _) => S / p[_] * b[_]);
|
|
37336
37338
|
}
|
|
37337
37339
|
function FD(s, l, o) {
|
|
37338
|
-
const c = bT(s, l.mode, l.type, "int"), p =
|
|
37340
|
+
const c = bT(s, l.mode, l.type, "int"), p = D5[l.mode][o.mode](...c);
|
|
37339
37341
|
return bT(p, o.mode, "int", o.type);
|
|
37340
37342
|
}
|
|
37341
37343
|
class Be {
|
|
@@ -37359,7 +37361,7 @@ class Be {
|
|
|
37359
37361
|
}
|
|
37360
37362
|
}
|
|
37361
37363
|
const uf = Re("colp");
|
|
37362
|
-
class
|
|
37364
|
+
class M5 {
|
|
37363
37365
|
constructor(l, o) {
|
|
37364
37366
|
this.alphaViews_ = null, this.element = l.createElement("div"), this.element.classList.add(uf()), o.viewProps.bindClassModifiers(this.element);
|
|
37365
37367
|
const c = l.createElement("div");
|
|
@@ -37392,14 +37394,14 @@ class z5 {
|
|
|
37392
37394
|
return this.alphaViews_ && l.push(this.alphaViews_.palette.element, this.alphaViews_.text.inputElement), l;
|
|
37393
37395
|
}
|
|
37394
37396
|
}
|
|
37395
|
-
function
|
|
37397
|
+
function A5(s) {
|
|
37396
37398
|
return s === "int" ? "int" : s === "float" ? "float" : void 0;
|
|
37397
37399
|
}
|
|
37398
37400
|
function T2(s) {
|
|
37399
37401
|
return Rn(s, (l) => ({
|
|
37400
37402
|
color: l.optional.object({
|
|
37401
37403
|
alpha: l.optional.boolean,
|
|
37402
|
-
type: l.optional.custom(
|
|
37404
|
+
type: l.optional.custom(A5)
|
|
37403
37405
|
}),
|
|
37404
37406
|
expanded: l.optional.boolean,
|
|
37405
37407
|
picker: l.optional.custom(JD),
|
|
@@ -37430,20 +37432,20 @@ class D2 {
|
|
|
37430
37432
|
};
|
|
37431
37433
|
}
|
|
37432
37434
|
}
|
|
37433
|
-
const
|
|
37435
|
+
const R5 = {
|
|
37434
37436
|
int: (s, l) => new Be(s, l),
|
|
37435
37437
|
float: (s, l) => new D2(s, l)
|
|
37436
37438
|
};
|
|
37437
37439
|
function z2(s, l, o) {
|
|
37438
|
-
return
|
|
37440
|
+
return R5[o](s, l);
|
|
37439
37441
|
}
|
|
37440
|
-
function
|
|
37442
|
+
function O5(s) {
|
|
37441
37443
|
return s.type === "float";
|
|
37442
37444
|
}
|
|
37443
|
-
function
|
|
37445
|
+
function U5(s) {
|
|
37444
37446
|
return s.type === "int";
|
|
37445
37447
|
}
|
|
37446
|
-
function
|
|
37448
|
+
function N5(s) {
|
|
37447
37449
|
const l = s.getComponents(), o = av(s.mode, "int");
|
|
37448
37450
|
return new Be([
|
|
37449
37451
|
Math.round(Qe(l[0], 0, 1, 0, o[0])),
|
|
@@ -37452,7 +37454,7 @@ function U5(s) {
|
|
|
37452
37454
|
l[3]
|
|
37453
37455
|
], s.mode);
|
|
37454
37456
|
}
|
|
37455
|
-
function
|
|
37457
|
+
function L5(s) {
|
|
37456
37458
|
const l = s.getComponents(), o = av(s.mode, "int");
|
|
37457
37459
|
return new D2([
|
|
37458
37460
|
Qe(l[0], 0, o[0], 0, 1),
|
|
@@ -37464,20 +37466,20 @@ function N5(s) {
|
|
|
37464
37466
|
function Bl(s, l) {
|
|
37465
37467
|
if (s.type === l)
|
|
37466
37468
|
return s;
|
|
37467
|
-
if (
|
|
37469
|
+
if (U5(s) && l === "float")
|
|
37470
|
+
return L5(s);
|
|
37471
|
+
if (O5(s) && l === "int")
|
|
37468
37472
|
return N5(s);
|
|
37469
|
-
if (R5(s) && l === "int")
|
|
37470
|
-
return U5(s);
|
|
37471
37473
|
throw Hn.shouldNeverHappen();
|
|
37472
37474
|
}
|
|
37473
|
-
function
|
|
37475
|
+
function H5(s, l) {
|
|
37474
37476
|
return s.alpha === l.alpha && s.mode === l.mode && s.notation === l.notation && s.type === l.type;
|
|
37475
37477
|
}
|
|
37476
37478
|
function Uo(s, l) {
|
|
37477
37479
|
const o = s.match(/^(.+)%$/);
|
|
37478
37480
|
return Math.min(o ? parseFloat(o[1]) * 0.01 * l : parseFloat(s), l);
|
|
37479
37481
|
}
|
|
37480
|
-
const
|
|
37482
|
+
const B5 = {
|
|
37481
37483
|
deg: (s) => s,
|
|
37482
37484
|
grad: (s) => s * 360 / 400,
|
|
37483
37485
|
rad: (s) => s * 360 / (2 * Math.PI),
|
|
@@ -37488,7 +37490,7 @@ function tz(s) {
|
|
|
37488
37490
|
if (!l)
|
|
37489
37491
|
return parseFloat(s);
|
|
37490
37492
|
const o = parseFloat(l[1]), c = l[2];
|
|
37491
|
-
return
|
|
37493
|
+
return B5[c](o);
|
|
37492
37494
|
}
|
|
37493
37495
|
function ez(s) {
|
|
37494
37496
|
const l = s.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);
|
|
@@ -37501,7 +37503,7 @@ function ez(s) {
|
|
|
37501
37503
|
];
|
|
37502
37504
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
|
|
37503
37505
|
}
|
|
37504
|
-
function
|
|
37506
|
+
function j5(s) {
|
|
37505
37507
|
const l = ez(s);
|
|
37506
37508
|
return l ? new Be(l, "rgb") : null;
|
|
37507
37509
|
}
|
|
@@ -37517,7 +37519,7 @@ function nz(s) {
|
|
|
37517
37519
|
];
|
|
37518
37520
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
|
|
37519
37521
|
}
|
|
37520
|
-
function
|
|
37522
|
+
function V5(s) {
|
|
37521
37523
|
const l = nz(s);
|
|
37522
37524
|
return l ? new Be(l, "rgb") : null;
|
|
37523
37525
|
}
|
|
@@ -37532,7 +37534,7 @@ function az(s) {
|
|
|
37532
37534
|
];
|
|
37533
37535
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
|
|
37534
37536
|
}
|
|
37535
|
-
function
|
|
37537
|
+
function G5(s) {
|
|
37536
37538
|
const l = az(s);
|
|
37537
37539
|
return l ? new Be(l, "hsl") : null;
|
|
37538
37540
|
}
|
|
@@ -37548,7 +37550,7 @@ function lz(s) {
|
|
|
37548
37550
|
];
|
|
37549
37551
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
|
|
37550
37552
|
}
|
|
37551
|
-
function
|
|
37553
|
+
function q5(s) {
|
|
37552
37554
|
const l = lz(s);
|
|
37553
37555
|
return l ? new Be(l, "hsl") : null;
|
|
37554
37556
|
}
|
|
@@ -37567,7 +37569,7 @@ function iz(s) {
|
|
|
37567
37569
|
parseInt(o[3], 16)
|
|
37568
37570
|
] : null;
|
|
37569
37571
|
}
|
|
37570
|
-
function
|
|
37572
|
+
function k5(s) {
|
|
37571
37573
|
const l = iz(s);
|
|
37572
37574
|
return l ? new Be(l, "rgb") : null;
|
|
37573
37575
|
}
|
|
@@ -37588,7 +37590,7 @@ function oz(s) {
|
|
|
37588
37590
|
Qe(parseInt(o[4], 16), 0, 255, 0, 1)
|
|
37589
37591
|
] : null;
|
|
37590
37592
|
}
|
|
37591
|
-
function
|
|
37593
|
+
function Y5(s) {
|
|
37592
37594
|
const l = oz(s);
|
|
37593
37595
|
return l ? new Be(l, "rgb") : null;
|
|
37594
37596
|
}
|
|
@@ -37603,7 +37605,7 @@ function sz(s) {
|
|
|
37603
37605
|
];
|
|
37604
37606
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) ? null : o;
|
|
37605
37607
|
}
|
|
37606
|
-
function
|
|
37608
|
+
function X5(s) {
|
|
37607
37609
|
return (l) => {
|
|
37608
37610
|
const o = sz(l);
|
|
37609
37611
|
return o ? z2(o, "rgb", s) : null;
|
|
@@ -37621,13 +37623,13 @@ function rz(s) {
|
|
|
37621
37623
|
];
|
|
37622
37624
|
return isNaN(o[0]) || isNaN(o[1]) || isNaN(o[2]) || isNaN(o[3]) ? null : o;
|
|
37623
37625
|
}
|
|
37624
|
-
function
|
|
37626
|
+
function P5(s) {
|
|
37625
37627
|
return (l) => {
|
|
37626
37628
|
const o = rz(l);
|
|
37627
37629
|
return o ? z2(o, "rgb", s) : null;
|
|
37628
37630
|
};
|
|
37629
37631
|
}
|
|
37630
|
-
const
|
|
37632
|
+
const Q5 = [
|
|
37631
37633
|
{
|
|
37632
37634
|
parser: iz,
|
|
37633
37635
|
result: {
|
|
@@ -37693,30 +37695,30 @@ const P5 = [
|
|
|
37693
37695
|
}
|
|
37694
37696
|
}
|
|
37695
37697
|
];
|
|
37696
|
-
function
|
|
37697
|
-
return
|
|
37698
|
+
function Z5(s) {
|
|
37699
|
+
return Q5.reduce((l, { parser: o, result: c }) => l || (o(s) ? c : null), null);
|
|
37698
37700
|
}
|
|
37699
|
-
function
|
|
37700
|
-
const o =
|
|
37701
|
+
function K5(s, l = "int") {
|
|
37702
|
+
const o = Z5(s);
|
|
37701
37703
|
return o ? o.notation === "hex" && l !== "float" ? Object.assign(Object.assign({}, o), { type: "int" }) : o.notation === "func" ? Object.assign(Object.assign({}, o), { type: l }) : null : null;
|
|
37702
37704
|
}
|
|
37703
37705
|
function V0(s) {
|
|
37704
37706
|
const l = [
|
|
37705
|
-
q5,
|
|
37706
37707
|
k5,
|
|
37707
|
-
|
|
37708
|
+
Y5,
|
|
37708
37709
|
j5,
|
|
37709
37710
|
V5,
|
|
37710
|
-
G5
|
|
37711
|
+
G5,
|
|
37712
|
+
q5
|
|
37711
37713
|
];
|
|
37712
|
-
l.push(
|
|
37713
|
-
const o =
|
|
37714
|
+
l.push(X5("int"), P5("int"));
|
|
37715
|
+
const o = r5(l);
|
|
37714
37716
|
return (c) => {
|
|
37715
37717
|
const p = o(c);
|
|
37716
37718
|
return p ? Bl(p, s) : null;
|
|
37717
37719
|
};
|
|
37718
37720
|
}
|
|
37719
|
-
function
|
|
37721
|
+
function J5(s) {
|
|
37720
37722
|
const l = V0("int");
|
|
37721
37723
|
if (typeof s != "string")
|
|
37722
37724
|
return Be.black();
|
|
@@ -37743,7 +37745,7 @@ function A_(s) {
|
|
|
37743
37745
|
const l = oi(2), o = oi(0);
|
|
37744
37746
|
return `rgba(${Bl(s, "int").getComponents("rgb").map((b, S) => (S === 3 ? l : o)(b)).join(", ")})`;
|
|
37745
37747
|
}
|
|
37746
|
-
function
|
|
37748
|
+
function $5(s) {
|
|
37747
37749
|
const l = [
|
|
37748
37750
|
oi(0),
|
|
37749
37751
|
L_,
|
|
@@ -37751,7 +37753,7 @@ function J5(s) {
|
|
|
37751
37753
|
], o = Bl(s, "int");
|
|
37752
37754
|
return `hsl(${rr(o.getComponents("hsl")).map((p, b) => l[b](p)).join(", ")})`;
|
|
37753
37755
|
}
|
|
37754
|
-
function
|
|
37756
|
+
function W5(s) {
|
|
37755
37757
|
const l = [
|
|
37756
37758
|
oi(0),
|
|
37757
37759
|
L_,
|
|
@@ -37764,7 +37766,7 @@ function fz(s, l) {
|
|
|
37764
37766
|
const o = oi(l === "float" ? 2 : 0), c = ["r", "g", "b"], p = Bl(s, l);
|
|
37765
37767
|
return `{${rr(p.getComponents("rgb")).map((S, _) => `${c[_]}: ${o(S)}`).join(", ")}}`;
|
|
37766
37768
|
}
|
|
37767
|
-
function
|
|
37769
|
+
function F5(s) {
|
|
37768
37770
|
return (l) => fz(l, s);
|
|
37769
37771
|
}
|
|
37770
37772
|
function dz(s, l) {
|
|
@@ -37774,10 +37776,10 @@ function dz(s, l) {
|
|
|
37774
37776
|
return `${p[C]}: ${x(_)}`;
|
|
37775
37777
|
}).join(", ")}}`;
|
|
37776
37778
|
}
|
|
37777
|
-
function
|
|
37779
|
+
function I5(s) {
|
|
37778
37780
|
return (l) => dz(l, s);
|
|
37779
37781
|
}
|
|
37780
|
-
const
|
|
37782
|
+
const t6 = [
|
|
37781
37783
|
{
|
|
37782
37784
|
format: {
|
|
37783
37785
|
alpha: !1,
|
|
@@ -37821,7 +37823,7 @@ const I5 = [
|
|
|
37821
37823
|
notation: "func",
|
|
37822
37824
|
type: "int"
|
|
37823
37825
|
},
|
|
37824
|
-
stringifier:
|
|
37826
|
+
stringifier: $5
|
|
37825
37827
|
},
|
|
37826
37828
|
{
|
|
37827
37829
|
format: {
|
|
@@ -37830,7 +37832,7 @@ const I5 = [
|
|
|
37830
37832
|
notation: "func",
|
|
37831
37833
|
type: "int"
|
|
37832
37834
|
},
|
|
37833
|
-
stringifier:
|
|
37835
|
+
stringifier: W5
|
|
37834
37836
|
},
|
|
37835
37837
|
...["int", "float"].reduce((s, l) => [
|
|
37836
37838
|
...s,
|
|
@@ -37841,7 +37843,7 @@ const I5 = [
|
|
|
37841
37843
|
notation: "object",
|
|
37842
37844
|
type: l
|
|
37843
37845
|
},
|
|
37844
|
-
stringifier:
|
|
37846
|
+
stringifier: F5(l)
|
|
37845
37847
|
},
|
|
37846
37848
|
{
|
|
37847
37849
|
format: {
|
|
@@ -37850,15 +37852,15 @@ const I5 = [
|
|
|
37850
37852
|
notation: "object",
|
|
37851
37853
|
type: l
|
|
37852
37854
|
},
|
|
37853
|
-
stringifier:
|
|
37855
|
+
stringifier: I5(l)
|
|
37854
37856
|
}
|
|
37855
37857
|
], [])
|
|
37856
37858
|
];
|
|
37857
37859
|
function hz(s) {
|
|
37858
|
-
return
|
|
37860
|
+
return t6.reduce((l, o) => l || (H5(o.format, s) ? o.stringifier : null), null);
|
|
37859
37861
|
}
|
|
37860
37862
|
const m0 = Re("apl");
|
|
37861
|
-
class
|
|
37863
|
+
class e6 {
|
|
37862
37864
|
constructor(l, o) {
|
|
37863
37865
|
this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(m0()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
|
|
37864
37866
|
const c = l.createElement("div");
|
|
@@ -37884,9 +37886,9 @@ class t6 {
|
|
|
37884
37886
|
this.update_();
|
|
37885
37887
|
}
|
|
37886
37888
|
}
|
|
37887
|
-
class
|
|
37889
|
+
class n6 {
|
|
37888
37890
|
constructor(l, o) {
|
|
37889
|
-
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 = o.value, this.viewProps = o.viewProps, this.view = new
|
|
37891
|
+
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 = o.value, this.viewProps = o.viewProps, this.view = new e6(l, {
|
|
37890
37892
|
value: this.value,
|
|
37891
37893
|
viewProps: this.viewProps
|
|
37892
37894
|
}), this.ptHandler_ = new bh(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_);
|
|
@@ -37933,7 +37935,7 @@ class e6 {
|
|
|
37933
37935
|
}
|
|
37934
37936
|
}
|
|
37935
37937
|
const Pm = Re("coltxt");
|
|
37936
|
-
function
|
|
37938
|
+
function a6(s) {
|
|
37937
37939
|
const l = s.createElement("select"), o = [
|
|
37938
37940
|
{ text: "RGB", value: "rgb" },
|
|
37939
37941
|
{ text: "HSL", value: "hsl" },
|
|
@@ -37945,11 +37947,11 @@ function n6(s) {
|
|
|
37945
37947
|
return b.textContent = p.text, b.value = p.value, c.appendChild(b), c;
|
|
37946
37948
|
}, s.createDocumentFragment())), l;
|
|
37947
37949
|
}
|
|
37948
|
-
class
|
|
37950
|
+
class l6 {
|
|
37949
37951
|
constructor(l, o) {
|
|
37950
37952
|
this.element = l.createElement("div"), this.element.classList.add(Pm()), o.viewProps.bindClassModifiers(this.element);
|
|
37951
37953
|
const c = l.createElement("div");
|
|
37952
|
-
c.classList.add(Pm("m")), this.modeElem_ =
|
|
37954
|
+
c.classList.add(Pm("m")), this.modeElem_ = a6(l), this.modeElem_.classList.add(Pm("ms")), c.appendChild(this.modeSelectElement), o.viewProps.bindDisabled(this.modeElem_);
|
|
37953
37955
|
const p = l.createElement("div");
|
|
37954
37956
|
p.classList.add(Pm("mm")), p.appendChild(q_(l, "dropdown")), c.appendChild(p), this.element.appendChild(c);
|
|
37955
37957
|
const b = l.createElement("div");
|
|
@@ -37975,32 +37977,32 @@ class a6 {
|
|
|
37975
37977
|
});
|
|
37976
37978
|
}
|
|
37977
37979
|
}
|
|
37978
|
-
function
|
|
37980
|
+
function i6(s) {
|
|
37979
37981
|
return oi(s === "float" ? 2 : 0);
|
|
37980
37982
|
}
|
|
37981
|
-
function
|
|
37983
|
+
function o6(s, l, o) {
|
|
37982
37984
|
const c = av(s, l)[o];
|
|
37983
37985
|
return new R0({
|
|
37984
37986
|
min: 0,
|
|
37985
37987
|
max: c
|
|
37986
37988
|
});
|
|
37987
37989
|
}
|
|
37988
|
-
function
|
|
37990
|
+
function s6(s, l, o) {
|
|
37989
37991
|
return new B0(s, {
|
|
37990
37992
|
arrayPosition: o === 0 ? "fst" : o === 2 ? "lst" : "mid",
|
|
37991
37993
|
parser: l.parser,
|
|
37992
37994
|
props: he.fromObject({
|
|
37993
|
-
formatter:
|
|
37995
|
+
formatter: i6(l.colorType),
|
|
37994
37996
|
keyScale: mh(!1),
|
|
37995
37997
|
pointerScale: l.colorType === "float" ? 0.01 : 1
|
|
37996
37998
|
}),
|
|
37997
37999
|
value: Sn(0, {
|
|
37998
|
-
constraint:
|
|
38000
|
+
constraint: o6(l.colorMode, l.colorType, o)
|
|
37999
38001
|
}),
|
|
38000
38002
|
viewProps: l.viewProps
|
|
38001
38003
|
});
|
|
38002
38004
|
}
|
|
38003
|
-
function
|
|
38005
|
+
function r6(s, l) {
|
|
38004
38006
|
const o = {
|
|
38005
38007
|
colorMode: l.colorMode,
|
|
38006
38008
|
colorType: l.colorType,
|
|
@@ -38008,7 +38010,7 @@ function s6(s, l) {
|
|
|
38008
38010
|
viewProps: l.viewProps
|
|
38009
38011
|
};
|
|
38010
38012
|
return [0, 1, 2].map((c) => {
|
|
38011
|
-
const p =
|
|
38013
|
+
const p = s6(s, o, c);
|
|
38012
38014
|
return rv({
|
|
38013
38015
|
primary: l.value,
|
|
38014
38016
|
secondary: p.value,
|
|
@@ -38024,7 +38026,7 @@ function s6(s, l) {
|
|
|
38024
38026
|
}), p;
|
|
38025
38027
|
});
|
|
38026
38028
|
}
|
|
38027
|
-
function
|
|
38029
|
+
function u6(s, l) {
|
|
38028
38030
|
const o = new D0(s, {
|
|
38029
38031
|
parser: V0("int"),
|
|
38030
38032
|
props: he.fromObject({
|
|
@@ -38040,12 +38042,12 @@ function r6(s, l) {
|
|
|
38040
38042
|
backward: (c, p) => new Be(Y_(rr(p.getComponents(c.mode)), c.getComponents()[3]), c.mode)
|
|
38041
38043
|
}), [o];
|
|
38042
38044
|
}
|
|
38043
|
-
function
|
|
38045
|
+
function c6(s) {
|
|
38044
38046
|
return s !== "hex";
|
|
38045
38047
|
}
|
|
38046
|
-
class
|
|
38048
|
+
class f6 {
|
|
38047
38049
|
constructor(l, o) {
|
|
38048
|
-
this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = o.colorType, this.value = o.value, this.viewProps = o.viewProps, this.colorMode = Sn(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(l), this.view = new
|
|
38050
|
+
this.onModeSelectChange_ = this.onModeSelectChange_.bind(this), this.colorType_ = o.colorType, this.value = o.value, this.viewProps = o.viewProps, this.colorMode = Sn(this.value.rawValue.mode), this.ccs_ = this.createComponentControllers_(l), this.view = new l6(l, {
|
|
38049
38051
|
mode: this.colorMode,
|
|
38050
38052
|
inputViews: [this.ccs_[0].view, this.ccs_[1].view, this.ccs_[2].view],
|
|
38051
38053
|
viewProps: this.viewProps
|
|
@@ -38053,12 +38055,12 @@ class c6 {
|
|
|
38053
38055
|
}
|
|
38054
38056
|
createComponentControllers_(l) {
|
|
38055
38057
|
const o = this.colorMode.rawValue;
|
|
38056
|
-
return
|
|
38058
|
+
return c6(o) ? r6(l, {
|
|
38057
38059
|
colorMode: o,
|
|
38058
38060
|
colorType: this.colorType_,
|
|
38059
38061
|
value: this.value,
|
|
38060
38062
|
viewProps: this.viewProps
|
|
38061
|
-
}) :
|
|
38063
|
+
}) : u6(l, {
|
|
38062
38064
|
value: this.value,
|
|
38063
38065
|
viewProps: this.viewProps
|
|
38064
38066
|
});
|
|
@@ -38069,7 +38071,7 @@ class c6 {
|
|
|
38069
38071
|
}
|
|
38070
38072
|
}
|
|
38071
38073
|
const Vw = Re("hpl");
|
|
38072
|
-
class
|
|
38074
|
+
class d6 {
|
|
38073
38075
|
constructor(l, o) {
|
|
38074
38076
|
this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(Vw()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
|
|
38075
38077
|
const c = l.createElement("div");
|
|
@@ -38087,9 +38089,9 @@ class f6 {
|
|
|
38087
38089
|
this.update_();
|
|
38088
38090
|
}
|
|
38089
38091
|
}
|
|
38090
|
-
class
|
|
38092
|
+
class h6 {
|
|
38091
38093
|
constructor(l, o) {
|
|
38092
|
-
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 = o.value, this.viewProps = o.viewProps, this.view = new
|
|
38094
|
+
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 = o.value, this.viewProps = o.viewProps, this.view = new d6(l, {
|
|
38093
38095
|
value: this.value,
|
|
38094
38096
|
viewProps: this.viewProps
|
|
38095
38097
|
}), this.ptHandler_ = new bh(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_);
|
|
@@ -38136,7 +38138,7 @@ class d6 {
|
|
|
38136
38138
|
}
|
|
38137
38139
|
}
|
|
38138
38140
|
const Gw = Re("svp"), yT = 64;
|
|
38139
|
-
class
|
|
38141
|
+
class p6 {
|
|
38140
38142
|
constructor(l, o) {
|
|
38141
38143
|
this.onValueChange_ = this.onValueChange_.bind(this), this.value = o.value, this.value.emitter.on("change", this.onValueChange_), this.element = l.createElement("div"), this.element.classList.add(Gw()), o.viewProps.bindClassModifiers(this.element), o.viewProps.bindTabIndex(this.element);
|
|
38142
38144
|
const c = l.createElement("canvas");
|
|
@@ -38145,7 +38147,7 @@ class h6 {
|
|
|
38145
38147
|
p.classList.add(Gw("m")), this.element.appendChild(p), this.markerElem_ = p, this.update_();
|
|
38146
38148
|
}
|
|
38147
38149
|
update_() {
|
|
38148
|
-
const l =
|
|
38150
|
+
const l = h4(this.canvasElement);
|
|
38149
38151
|
if (!l)
|
|
38150
38152
|
return;
|
|
38151
38153
|
const c = this.value.rawValue.getComponents("hsv"), p = this.canvasElement.width, b = this.canvasElement.height, S = l.getImageData(0, 0, p, b), _ = S.data;
|
|
@@ -38164,9 +38166,9 @@ class h6 {
|
|
|
38164
38166
|
this.update_();
|
|
38165
38167
|
}
|
|
38166
38168
|
}
|
|
38167
|
-
class
|
|
38169
|
+
class m6 {
|
|
38168
38170
|
constructor(l, o) {
|
|
38169
|
-
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 = o.value, this.viewProps = o.viewProps, this.view = new
|
|
38171
|
+
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 = o.value, this.viewProps = o.viewProps, this.view = new p6(l, {
|
|
38170
38172
|
value: this.value,
|
|
38171
38173
|
viewProps: this.viewProps
|
|
38172
38174
|
}), this.ptHandler_ = new bh(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_);
|
|
@@ -38211,16 +38213,16 @@ class p6 {
|
|
|
38211
38213
|
});
|
|
38212
38214
|
}
|
|
38213
38215
|
}
|
|
38214
|
-
class
|
|
38216
|
+
class v6 {
|
|
38215
38217
|
constructor(l, o) {
|
|
38216
|
-
this.value = o.value, this.viewProps = o.viewProps, this.hPaletteC_ = new
|
|
38218
|
+
this.value = o.value, this.viewProps = o.viewProps, this.hPaletteC_ = new h6(l, {
|
|
38217
38219
|
value: this.value,
|
|
38218
38220
|
viewProps: this.viewProps
|
|
38219
|
-
}), this.svPaletteC_ = new
|
|
38221
|
+
}), this.svPaletteC_ = new m6(l, {
|
|
38220
38222
|
value: this.value,
|
|
38221
38223
|
viewProps: this.viewProps
|
|
38222
38224
|
}), this.alphaIcs_ = o.supportsAlpha ? {
|
|
38223
|
-
palette: new
|
|
38225
|
+
palette: new n6(l, {
|
|
38224
38226
|
value: this.value,
|
|
38225
38227
|
viewProps: this.viewProps
|
|
38226
38228
|
}),
|
|
@@ -38244,11 +38246,11 @@ class m6 {
|
|
|
38244
38246
|
const b = c.getComponents();
|
|
38245
38247
|
return b[3] = p, new Be(b, c.mode);
|
|
38246
38248
|
}
|
|
38247
|
-
}), this.textsC_ = new
|
|
38249
|
+
}), this.textsC_ = new f6(l, {
|
|
38248
38250
|
colorType: o.colorType,
|
|
38249
38251
|
value: this.value,
|
|
38250
38252
|
viewProps: this.viewProps
|
|
38251
|
-
}), this.view = new
|
|
38253
|
+
}), this.view = new M5(l, {
|
|
38252
38254
|
alphaViews: this.alphaIcs_ ? {
|
|
38253
38255
|
palette: this.alphaIcs_.palette.view,
|
|
38254
38256
|
text: this.alphaIcs_.text.view
|
|
@@ -38265,7 +38267,7 @@ class m6 {
|
|
|
38265
38267
|
}
|
|
38266
38268
|
}
|
|
38267
38269
|
const qw = Re("colsw");
|
|
38268
|
-
class
|
|
38270
|
+
class g6 {
|
|
38269
38271
|
constructor(l, o) {
|
|
38270
38272
|
this.onValueChange_ = this.onValueChange_.bind(this), o.value.emitter.on("change", this.onValueChange_), this.value = o.value, this.element = l.createElement("div"), this.element.classList.add(qw()), o.viewProps.bindClassModifiers(this.element);
|
|
38271
38273
|
const c = l.createElement("div");
|
|
@@ -38281,9 +38283,9 @@ class v6 {
|
|
|
38281
38283
|
this.update_();
|
|
38282
38284
|
}
|
|
38283
38285
|
}
|
|
38284
|
-
class
|
|
38286
|
+
class b6 {
|
|
38285
38287
|
constructor(l, o) {
|
|
38286
|
-
this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
38288
|
+
this.value = o.value, this.viewProps = o.viewProps, this.view = new g6(l, {
|
|
38287
38289
|
value: this.value,
|
|
38288
38290
|
viewProps: this.viewProps
|
|
38289
38291
|
});
|
|
@@ -38291,7 +38293,7 @@ class g6 {
|
|
|
38291
38293
|
}
|
|
38292
38294
|
class R2 {
|
|
38293
38295
|
constructor(l, o) {
|
|
38294
|
-
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 = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.swatchC_ = new
|
|
38296
|
+
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 = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.swatchC_ = new b6(l, {
|
|
38295
38297
|
value: this.value,
|
|
38296
38298
|
viewProps: this.viewProps
|
|
38297
38299
|
});
|
|
@@ -38303,13 +38305,13 @@ class R2 {
|
|
|
38303
38305
|
}),
|
|
38304
38306
|
value: this.value,
|
|
38305
38307
|
viewProps: this.viewProps
|
|
38306
|
-
}), this.view = new
|
|
38308
|
+
}), this.view = new S5(l, {
|
|
38307
38309
|
foldable: this.foldable_,
|
|
38308
38310
|
pickerLayout: o.pickerLayout
|
|
38309
38311
|
}), this.view.swatchElement.appendChild(this.swatchC_.view.element), this.view.textElement.appendChild(this.textC_.view.element), this.popC_ = o.pickerLayout === "popup" ? new YD(l, {
|
|
38310
38312
|
viewProps: this.viewProps
|
|
38311
38313
|
}) : null;
|
|
38312
|
-
const p = new
|
|
38314
|
+
const p = new v6(l, {
|
|
38313
38315
|
colorType: o.colorType,
|
|
38314
38316
|
supportsAlpha: o.supportsAlpha,
|
|
38315
38317
|
value: this.value,
|
|
@@ -38346,19 +38348,19 @@ class R2 {
|
|
|
38346
38348
|
this.popC_ ? l.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && l.key === "Escape" && this.swatchC_.view.buttonElement.focus();
|
|
38347
38349
|
}
|
|
38348
38350
|
}
|
|
38349
|
-
function
|
|
38351
|
+
function y6(s) {
|
|
38350
38352
|
return rr(s.getComponents("rgb")).reduce((l, o) => l << 8 | Math.floor(o) & 255, 0);
|
|
38351
38353
|
}
|
|
38352
|
-
function
|
|
38354
|
+
function _6(s) {
|
|
38353
38355
|
return s.getComponents("rgb").reduce((l, o, c) => {
|
|
38354
38356
|
const p = Math.floor(c === 3 ? o * 255 : o) & 255;
|
|
38355
38357
|
return l << 8 | p;
|
|
38356
38358
|
}, 0) >>> 0;
|
|
38357
38359
|
}
|
|
38358
|
-
function
|
|
38360
|
+
function S6(s) {
|
|
38359
38361
|
return new Be([s >> 16 & 255, s >> 8 & 255, s & 255], "rgb");
|
|
38360
38362
|
}
|
|
38361
|
-
function
|
|
38363
|
+
function w6(s) {
|
|
38362
38364
|
return new Be([
|
|
38363
38365
|
s >> 24 & 255,
|
|
38364
38366
|
s >> 16 & 255,
|
|
@@ -38366,12 +38368,12 @@ function S6(s) {
|
|
|
38366
38368
|
Qe(s & 255, 0, 255, 0, 1)
|
|
38367
38369
|
], "rgb");
|
|
38368
38370
|
}
|
|
38369
|
-
function w6(s) {
|
|
38370
|
-
return typeof s != "number" ? Be.black() : _6(s);
|
|
38371
|
-
}
|
|
38372
38371
|
function E6(s) {
|
|
38373
38372
|
return typeof s != "number" ? Be.black() : S6(s);
|
|
38374
38373
|
}
|
|
38374
|
+
function C6(s) {
|
|
38375
|
+
return typeof s != "number" ? Be.black() : w6(s);
|
|
38376
|
+
}
|
|
38375
38377
|
function R_(s, l) {
|
|
38376
38378
|
return typeof s != "object" || cn(s) ? !1 : l in s && typeof s[l] == "number";
|
|
38377
38379
|
}
|
|
@@ -38396,64 +38398,64 @@ function O2(s, l) {
|
|
|
38396
38398
|
function _T(s) {
|
|
38397
38399
|
return "a" in s ? [s.r, s.g, s.b, s.a] : [s.r, s.g, s.b];
|
|
38398
38400
|
}
|
|
38399
|
-
function
|
|
38401
|
+
function x6(s) {
|
|
38400
38402
|
const l = hz(s);
|
|
38401
38403
|
return l ? (o, c) => {
|
|
38402
38404
|
j0(o, l(c));
|
|
38403
38405
|
} : null;
|
|
38404
38406
|
}
|
|
38405
|
-
function
|
|
38406
|
-
const l = s ?
|
|
38407
|
+
function T6(s) {
|
|
38408
|
+
const l = s ? _6 : y6;
|
|
38407
38409
|
return (o, c) => {
|
|
38408
38410
|
j0(o, l(c));
|
|
38409
38411
|
};
|
|
38410
38412
|
}
|
|
38411
|
-
function
|
|
38413
|
+
function D6(s, l, o) {
|
|
38412
38414
|
const p = Bl(l, o).toRgbaObject();
|
|
38413
38415
|
s.writeProperty("r", p.r), s.writeProperty("g", p.g), s.writeProperty("b", p.b), s.writeProperty("a", p.a);
|
|
38414
38416
|
}
|
|
38415
|
-
function
|
|
38417
|
+
function z6(s, l, o) {
|
|
38416
38418
|
const p = Bl(l, o).toRgbaObject();
|
|
38417
38419
|
s.writeProperty("r", p.r), s.writeProperty("g", p.g), s.writeProperty("b", p.b);
|
|
38418
38420
|
}
|
|
38419
|
-
function
|
|
38421
|
+
function M6(s, l) {
|
|
38420
38422
|
return (o, c) => {
|
|
38421
|
-
s ?
|
|
38423
|
+
s ? D6(o, c, l) : z6(o, c, l);
|
|
38422
38424
|
};
|
|
38423
38425
|
}
|
|
38424
|
-
function
|
|
38426
|
+
function A6(s) {
|
|
38425
38427
|
var l;
|
|
38426
38428
|
return !!(!((l = s == null ? void 0 : s.color) === null || l === void 0) && l.alpha);
|
|
38427
38429
|
}
|
|
38428
|
-
function
|
|
38430
|
+
function R6(s) {
|
|
38429
38431
|
return s ? (l) => A2(l, "0x") : (l) => M2(l, "0x");
|
|
38430
38432
|
}
|
|
38431
|
-
function
|
|
38433
|
+
function O6(s) {
|
|
38432
38434
|
return "color" in s || s.view === "color";
|
|
38433
38435
|
}
|
|
38434
|
-
const
|
|
38436
|
+
const U6 = jl({
|
|
38435
38437
|
id: "input-color-number",
|
|
38436
38438
|
type: "input",
|
|
38437
38439
|
accept: (s, l) => {
|
|
38438
|
-
if (typeof s != "number" || !
|
|
38440
|
+
if (typeof s != "number" || !O6(l))
|
|
38439
38441
|
return null;
|
|
38440
38442
|
const o = T2(l);
|
|
38441
38443
|
return o ? {
|
|
38442
38444
|
initialValue: s,
|
|
38443
|
-
params: Object.assign(Object.assign({}, o), { supportsAlpha:
|
|
38445
|
+
params: Object.assign(Object.assign({}, o), { supportsAlpha: A6(l) })
|
|
38444
38446
|
} : null;
|
|
38445
38447
|
},
|
|
38446
38448
|
binding: {
|
|
38447
|
-
reader: (s) => s.params.supportsAlpha ?
|
|
38449
|
+
reader: (s) => s.params.supportsAlpha ? C6 : E6,
|
|
38448
38450
|
equals: O2,
|
|
38449
|
-
writer: (s) =>
|
|
38451
|
+
writer: (s) => T6(s.params.supportsAlpha)
|
|
38450
38452
|
},
|
|
38451
38453
|
controller: (s) => {
|
|
38452
38454
|
var l, o;
|
|
38453
38455
|
return new R2(s.document, {
|
|
38454
38456
|
colorType: "int",
|
|
38455
38457
|
expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
|
|
38456
|
-
formatter:
|
|
38458
|
+
formatter: R6(s.params.supportsAlpha),
|
|
38457
38459
|
parser: V0("int"),
|
|
38458
38460
|
pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
|
|
38459
38461
|
supportsAlpha: s.params.supportsAlpha,
|
|
@@ -38462,7 +38464,7 @@ const O6 = jl({
|
|
|
38462
38464
|
});
|
|
38463
38465
|
}
|
|
38464
38466
|
});
|
|
38465
|
-
function
|
|
38467
|
+
function N6(s, l) {
|
|
38466
38468
|
if (!vz(s))
|
|
38467
38469
|
return Bl(Be.black(), l);
|
|
38468
38470
|
if (l === "int") {
|
|
@@ -38475,19 +38477,19 @@ function U6(s, l) {
|
|
|
38475
38477
|
}
|
|
38476
38478
|
return Bl(Be.black(), "int");
|
|
38477
38479
|
}
|
|
38478
|
-
function
|
|
38480
|
+
function L6(s) {
|
|
38479
38481
|
return mz(s);
|
|
38480
38482
|
}
|
|
38481
|
-
function
|
|
38483
|
+
function H6(s) {
|
|
38482
38484
|
return (l) => {
|
|
38483
|
-
const o =
|
|
38485
|
+
const o = N6(l, s);
|
|
38484
38486
|
return Bl(o, "int");
|
|
38485
38487
|
};
|
|
38486
38488
|
}
|
|
38487
|
-
function
|
|
38489
|
+
function B6(s, l) {
|
|
38488
38490
|
return (o) => s ? dz(o, l) : fz(o, l);
|
|
38489
38491
|
}
|
|
38490
|
-
const
|
|
38492
|
+
const j6 = jl({
|
|
38491
38493
|
id: "input-color-object",
|
|
38492
38494
|
type: "input",
|
|
38493
38495
|
accept: (s, l) => {
|
|
@@ -38501,9 +38503,9 @@ const B6 = jl({
|
|
|
38501
38503
|
} : null;
|
|
38502
38504
|
},
|
|
38503
38505
|
binding: {
|
|
38504
|
-
reader: (s) =>
|
|
38506
|
+
reader: (s) => H6(s.params.colorType),
|
|
38505
38507
|
equals: O2,
|
|
38506
|
-
writer: (s) =>
|
|
38508
|
+
writer: (s) => M6(L6(s.initialValue), s.params.colorType)
|
|
38507
38509
|
},
|
|
38508
38510
|
controller: (s) => {
|
|
38509
38511
|
var l, o;
|
|
@@ -38511,7 +38513,7 @@ const B6 = jl({
|
|
|
38511
38513
|
return new R2(s.document, {
|
|
38512
38514
|
colorType: s.params.colorType,
|
|
38513
38515
|
expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
|
|
38514
|
-
formatter:
|
|
38516
|
+
formatter: B6(c, s.params.colorType),
|
|
38515
38517
|
parser: V0("int"),
|
|
38516
38518
|
pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
|
|
38517
38519
|
supportsAlpha: c,
|
|
@@ -38519,13 +38521,13 @@ const B6 = jl({
|
|
|
38519
38521
|
viewProps: s.viewProps
|
|
38520
38522
|
});
|
|
38521
38523
|
}
|
|
38522
|
-
}),
|
|
38524
|
+
}), V6 = jl({
|
|
38523
38525
|
id: "input-color-string",
|
|
38524
38526
|
type: "input",
|
|
38525
38527
|
accept: (s, l) => {
|
|
38526
38528
|
if (typeof s != "string" || l.view === "text")
|
|
38527
38529
|
return null;
|
|
38528
|
-
const o =
|
|
38530
|
+
const o = K5(s, ID(l));
|
|
38529
38531
|
if (!o)
|
|
38530
38532
|
return null;
|
|
38531
38533
|
const c = hz(o);
|
|
@@ -38538,10 +38540,10 @@ const B6 = jl({
|
|
|
38538
38540
|
} : null;
|
|
38539
38541
|
},
|
|
38540
38542
|
binding: {
|
|
38541
|
-
reader: () =>
|
|
38543
|
+
reader: () => J5,
|
|
38542
38544
|
equals: O2,
|
|
38543
38545
|
writer: (s) => {
|
|
38544
|
-
const l =
|
|
38546
|
+
const l = x6(s.params.format);
|
|
38545
38547
|
if (!l)
|
|
38546
38548
|
throw Hn.notBindable();
|
|
38547
38549
|
return l;
|
|
@@ -38574,7 +38576,7 @@ class U2 {
|
|
|
38574
38576
|
}
|
|
38575
38577
|
}
|
|
38576
38578
|
const ST = Re("pndtxt");
|
|
38577
|
-
class
|
|
38579
|
+
class G6 {
|
|
38578
38580
|
constructor(l, o) {
|
|
38579
38581
|
this.textViews = o.textViews, this.element = l.createElement("div"), this.element.classList.add(ST()), this.textViews.forEach((c) => {
|
|
38580
38582
|
const p = l.createElement("div");
|
|
@@ -38582,7 +38584,7 @@ class V6 {
|
|
|
38582
38584
|
});
|
|
38583
38585
|
}
|
|
38584
38586
|
}
|
|
38585
|
-
function
|
|
38587
|
+
function q6(s, l, o) {
|
|
38586
38588
|
return new B0(s, {
|
|
38587
38589
|
arrayPosition: o === 0 ? "fst" : o === l.axes.length - 1 ? "lst" : "mid",
|
|
38588
38590
|
parser: l.parser,
|
|
@@ -38595,7 +38597,7 @@ function G6(s, l, o) {
|
|
|
38595
38597
|
}
|
|
38596
38598
|
class N2 {
|
|
38597
38599
|
constructor(l, o) {
|
|
38598
|
-
this.value = o.value, this.viewProps = o.viewProps, this.acs_ = o.axes.map((c, p) =>
|
|
38600
|
+
this.value = o.value, this.viewProps = o.viewProps, this.acs_ = o.axes.map((c, p) => q6(l, o, p)), this.acs_.forEach((c, p) => {
|
|
38599
38601
|
rv({
|
|
38600
38602
|
primary: this.value,
|
|
38601
38603
|
secondary: c.value,
|
|
@@ -38605,7 +38607,7 @@ class N2 {
|
|
|
38605
38607
|
return _[p] = S, o.assembly.fromComponents(_);
|
|
38606
38608
|
}
|
|
38607
38609
|
});
|
|
38608
|
-
}), this.view = new
|
|
38610
|
+
}), this.view = new G6(l, {
|
|
38609
38611
|
textViews: this.acs_.map((c) => c.view)
|
|
38610
38612
|
});
|
|
38611
38613
|
}
|
|
@@ -38613,7 +38615,7 @@ class N2 {
|
|
|
38613
38615
|
return this.acs_;
|
|
38614
38616
|
}
|
|
38615
38617
|
}
|
|
38616
|
-
class
|
|
38618
|
+
class k6 extends T0 {
|
|
38617
38619
|
get max() {
|
|
38618
38620
|
return this.controller.valueController.sliderController.props.get("max");
|
|
38619
38621
|
}
|
|
@@ -38627,7 +38629,7 @@ class q6 extends T0 {
|
|
|
38627
38629
|
this.controller.valueController.sliderController.props.set("min", l);
|
|
38628
38630
|
}
|
|
38629
38631
|
}
|
|
38630
|
-
function
|
|
38632
|
+
function Y6(s, l) {
|
|
38631
38633
|
const o = [], c = DD(s, l);
|
|
38632
38634
|
c && o.push(c);
|
|
38633
38635
|
const p = zD(s);
|
|
@@ -38635,7 +38637,7 @@ function k6(s, l) {
|
|
|
38635
38637
|
const b = x2(s.options);
|
|
38636
38638
|
return b && o.push(b), new N0(o);
|
|
38637
38639
|
}
|
|
38638
|
-
const
|
|
38640
|
+
const X6 = jl({
|
|
38639
38641
|
id: "input-number",
|
|
38640
38642
|
type: "input",
|
|
38641
38643
|
accept: (s, l) => {
|
|
@@ -38649,7 +38651,7 @@ const Y6 = jl({
|
|
|
38649
38651
|
},
|
|
38650
38652
|
binding: {
|
|
38651
38653
|
reader: (s) => ED,
|
|
38652
|
-
constraint: (s) =>
|
|
38654
|
+
constraint: (s) => Y6(s.params, s.initialValue),
|
|
38653
38655
|
writer: (s) => j0
|
|
38654
38656
|
},
|
|
38655
38657
|
controller: (s) => {
|
|
@@ -38671,7 +38673,7 @@ const Y6 = jl({
|
|
|
38671
38673
|
});
|
|
38672
38674
|
},
|
|
38673
38675
|
api(s) {
|
|
38674
|
-
return typeof s.controller.value.rawValue != "number" ? null : s.controller.valueController instanceof H_ ? new
|
|
38676
|
+
return typeof s.controller.value.rawValue != "number" ? null : s.controller.valueController instanceof H_ ? new k6(s.controller) : s.controller.valueController instanceof yf ? new E2(s.controller) : null;
|
|
38675
38677
|
}
|
|
38676
38678
|
});
|
|
38677
38679
|
class bf {
|
|
@@ -38701,7 +38703,7 @@ const gz = {
|
|
|
38701
38703
|
toComponents: (s) => s.getComponents(),
|
|
38702
38704
|
fromComponents: (s) => new bf(...s)
|
|
38703
38705
|
}, Qm = Re("p2d");
|
|
38704
|
-
class
|
|
38706
|
+
class P6 {
|
|
38705
38707
|
constructor(l, o) {
|
|
38706
38708
|
this.element = l.createElement("div"), this.element.classList.add(Qm()), o.viewProps.bindClassModifiers(this.element), wu(o.expanded, iv(this.element, Qm(void 0, "expanded")));
|
|
38707
38709
|
const c = l.createElement("div");
|
|
@@ -38717,7 +38719,7 @@ class X6 {
|
|
|
38717
38719
|
}
|
|
38718
38720
|
}
|
|
38719
38721
|
const cf = Re("p2dp");
|
|
38720
|
-
class
|
|
38722
|
+
class Q6 {
|
|
38721
38723
|
constructor(l, o) {
|
|
38722
38724
|
this.onFoldableChange_ = this.onFoldableChange_.bind(this), this.onPropsChange_ = this.onPropsChange_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.props_ = o.props, this.props_.emitter.on("change", this.onPropsChange_), this.element = l.createElement("div"), this.element.classList.add(cf()), o.layout === "popup" && this.element.classList.add(cf(void 0, "p")), o.viewProps.bindClassModifiers(this.element);
|
|
38723
38725
|
const c = l.createElement("div");
|
|
@@ -38756,9 +38758,9 @@ function wT(s, l, o) {
|
|
|
38756
38758
|
ii(l[1], z0(s)) * (o ? 1 : -1)
|
|
38757
38759
|
];
|
|
38758
38760
|
}
|
|
38759
|
-
class
|
|
38761
|
+
class Z6 {
|
|
38760
38762
|
constructor(l, o) {
|
|
38761
|
-
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.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
38763
|
+
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.props = o.props, this.value = o.value, this.viewProps = o.viewProps, this.view = new Q6(l, {
|
|
38762
38764
|
layout: o.layout,
|
|
38763
38765
|
props: this.props,
|
|
38764
38766
|
value: this.value,
|
|
@@ -38805,13 +38807,13 @@ class Q6 {
|
|
|
38805
38807
|
});
|
|
38806
38808
|
}
|
|
38807
38809
|
}
|
|
38808
|
-
class
|
|
38810
|
+
class K6 {
|
|
38809
38811
|
constructor(l, o) {
|
|
38810
38812
|
var c, p;
|
|
38811
38813
|
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 = o.value, this.viewProps = o.viewProps, this.foldable_ = U0.create(o.expanded), this.popC_ = o.pickerLayout === "popup" ? new YD(l, {
|
|
38812
38814
|
viewProps: this.viewProps
|
|
38813
38815
|
}) : null;
|
|
38814
|
-
const b = new
|
|
38816
|
+
const b = new Z6(l, {
|
|
38815
38817
|
layout: o.pickerLayout,
|
|
38816
38818
|
props: new he({
|
|
38817
38819
|
invertsY: Sn(o.invertsY),
|
|
@@ -38830,7 +38832,7 @@ class Z6 {
|
|
|
38830
38832
|
parser: o.parser,
|
|
38831
38833
|
value: this.value,
|
|
38832
38834
|
viewProps: this.viewProps
|
|
38833
|
-
}), this.view = new
|
|
38835
|
+
}), this.view = new P6(l, {
|
|
38834
38836
|
expanded: this.foldable_.value("expanded"),
|
|
38835
38837
|
pickerLayout: o.pickerLayout,
|
|
38836
38838
|
viewProps: this.viewProps
|
|
@@ -38863,13 +38865,13 @@ class Z6 {
|
|
|
38863
38865
|
this.popC_ ? l.key === "Escape" && (this.popC_.shows.rawValue = !1) : this.view.pickerElement && l.key === "Escape" && this.view.buttonElement.focus();
|
|
38864
38866
|
}
|
|
38865
38867
|
}
|
|
38866
|
-
function
|
|
38868
|
+
function J6(s) {
|
|
38867
38869
|
return bf.isObject(s) ? new bf(s.x, s.y) : new bf();
|
|
38868
38870
|
}
|
|
38869
|
-
function
|
|
38871
|
+
function $6(s, l) {
|
|
38870
38872
|
s.writeProperty("x", l.x), s.writeProperty("y", l.y);
|
|
38871
38873
|
}
|
|
38872
|
-
function
|
|
38874
|
+
function W6(s, l) {
|
|
38873
38875
|
return new U2({
|
|
38874
38876
|
assembly: gz,
|
|
38875
38877
|
components: [
|
|
@@ -38885,18 +38887,18 @@ function ET(s, l) {
|
|
|
38885
38887
|
const p = xD(s);
|
|
38886
38888
|
return Math.max(Math.abs(p) * 10, Math.abs(l) * 10);
|
|
38887
38889
|
}
|
|
38888
|
-
function
|
|
38890
|
+
function F6(s, l) {
|
|
38889
38891
|
var o, c;
|
|
38890
38892
|
const p = ET(hh(s, (o = s.x) !== null && o !== void 0 ? o : {}), l.x), b = ET(hh(s, (c = s.y) !== null && c !== void 0 ? c : {}), l.y);
|
|
38891
38893
|
return Math.max(p, b);
|
|
38892
38894
|
}
|
|
38893
|
-
function
|
|
38895
|
+
function I6(s) {
|
|
38894
38896
|
if (!("y" in s))
|
|
38895
38897
|
return !1;
|
|
38896
38898
|
const l = s.y;
|
|
38897
38899
|
return l && "inverted" in l ? !!l.inverted : !1;
|
|
38898
38900
|
}
|
|
38899
|
-
const
|
|
38901
|
+
const t8 = jl({
|
|
38900
38902
|
id: "input-point2d",
|
|
38901
38903
|
type: "input",
|
|
38902
38904
|
accept: (s, l) => {
|
|
@@ -38909,15 +38911,15 @@ const I6 = jl({
|
|
|
38909
38911
|
} : null;
|
|
38910
38912
|
},
|
|
38911
38913
|
binding: {
|
|
38912
|
-
reader: () =>
|
|
38913
|
-
constraint: (s) =>
|
|
38914
|
+
reader: () => J6,
|
|
38915
|
+
constraint: (s) => W6(s.params, s.initialValue),
|
|
38914
38916
|
equals: bf.equals,
|
|
38915
|
-
writer: () =>
|
|
38917
|
+
writer: () => $6
|
|
38916
38918
|
},
|
|
38917
38919
|
controller: (s) => {
|
|
38918
38920
|
var l, o;
|
|
38919
38921
|
const c = s.document, p = s.value, b = s.constraint, S = [s.params.x, s.params.y];
|
|
38920
|
-
return new
|
|
38922
|
+
return new K6(c, {
|
|
38921
38923
|
axes: p.rawValue.getComponents().map((_, C) => {
|
|
38922
38924
|
var x;
|
|
38923
38925
|
return m2({
|
|
@@ -38927,8 +38929,8 @@ const I6 = jl({
|
|
|
38927
38929
|
});
|
|
38928
38930
|
}),
|
|
38929
38931
|
expanded: (l = s.params.expanded) !== null && l !== void 0 ? l : !1,
|
|
38930
|
-
invertsY:
|
|
38931
|
-
max:
|
|
38932
|
+
invertsY: I6(s.params),
|
|
38933
|
+
max: F6(s.params, p.rawValue),
|
|
38932
38934
|
parser: Cu,
|
|
38933
38935
|
pickerLayout: (o = s.params.picker) !== null && o !== void 0 ? o : "popup",
|
|
38934
38936
|
value: p,
|
|
@@ -38964,13 +38966,13 @@ const bz = {
|
|
|
38964
38966
|
toComponents: (s) => s.getComponents(),
|
|
38965
38967
|
fromComponents: (s) => new tv(...s)
|
|
38966
38968
|
};
|
|
38967
|
-
function
|
|
38969
|
+
function e8(s) {
|
|
38968
38970
|
return tv.isObject(s) ? new tv(s.x, s.y, s.z) : new tv();
|
|
38969
38971
|
}
|
|
38970
|
-
function
|
|
38972
|
+
function n8(s, l) {
|
|
38971
38973
|
s.writeProperty("x", l.x), s.writeProperty("y", l.y), s.writeProperty("z", l.z);
|
|
38972
38974
|
}
|
|
38973
|
-
function
|
|
38975
|
+
function a8(s, l) {
|
|
38974
38976
|
return new U2({
|
|
38975
38977
|
assembly: bz,
|
|
38976
38978
|
components: [
|
|
@@ -38980,7 +38982,7 @@ function n8(s, l) {
|
|
|
38980
38982
|
]
|
|
38981
38983
|
});
|
|
38982
38984
|
}
|
|
38983
|
-
const
|
|
38985
|
+
const l8 = jl({
|
|
38984
38986
|
id: "input-point3d",
|
|
38985
38987
|
type: "input",
|
|
38986
38988
|
accept: (s, l) => {
|
|
@@ -38993,10 +38995,10 @@ const a8 = jl({
|
|
|
38993
38995
|
} : null;
|
|
38994
38996
|
},
|
|
38995
38997
|
binding: {
|
|
38996
|
-
reader: (s) =>
|
|
38997
|
-
constraint: (s) =>
|
|
38998
|
+
reader: (s) => e8,
|
|
38999
|
+
constraint: (s) => a8(s.params, s.initialValue),
|
|
38998
39000
|
equals: tv.equals,
|
|
38999
|
-
writer: (s) =>
|
|
39001
|
+
writer: (s) => n8
|
|
39000
39002
|
},
|
|
39001
39003
|
controller: (s) => {
|
|
39002
39004
|
const l = s.value, o = s.constraint, c = [s.params.x, s.params.y, s.params.z];
|
|
@@ -39045,13 +39047,13 @@ const yz = {
|
|
|
39045
39047
|
toComponents: (s) => s.getComponents(),
|
|
39046
39048
|
fromComponents: (s) => new ev(...s)
|
|
39047
39049
|
};
|
|
39048
|
-
function
|
|
39050
|
+
function i8(s) {
|
|
39049
39051
|
return ev.isObject(s) ? new ev(s.x, s.y, s.z, s.w) : new ev();
|
|
39050
39052
|
}
|
|
39051
|
-
function
|
|
39053
|
+
function o8(s, l) {
|
|
39052
39054
|
s.writeProperty("x", l.x), s.writeProperty("y", l.y), s.writeProperty("z", l.z), s.writeProperty("w", l.w);
|
|
39053
39055
|
}
|
|
39054
|
-
function
|
|
39056
|
+
function s8(s, l) {
|
|
39055
39057
|
return new U2({
|
|
39056
39058
|
assembly: yz,
|
|
39057
39059
|
components: [
|
|
@@ -39062,7 +39064,7 @@ function o8(s, l) {
|
|
|
39062
39064
|
]
|
|
39063
39065
|
});
|
|
39064
39066
|
}
|
|
39065
|
-
const
|
|
39067
|
+
const r8 = jl({
|
|
39066
39068
|
id: "input-point4d",
|
|
39067
39069
|
type: "input",
|
|
39068
39070
|
accept: (s, l) => {
|
|
@@ -39075,10 +39077,10 @@ const s8 = jl({
|
|
|
39075
39077
|
} : null;
|
|
39076
39078
|
},
|
|
39077
39079
|
binding: {
|
|
39078
|
-
reader: (s) =>
|
|
39079
|
-
constraint: (s) =>
|
|
39080
|
+
reader: (s) => i8,
|
|
39081
|
+
constraint: (s) => s8(s.params, s.initialValue),
|
|
39080
39082
|
equals: ev.equals,
|
|
39081
|
-
writer: (s) =>
|
|
39083
|
+
writer: (s) => o8
|
|
39082
39084
|
},
|
|
39083
39085
|
controller: (s) => {
|
|
39084
39086
|
const l = s.value, o = s.constraint, c = [
|
|
@@ -39103,11 +39105,11 @@ const s8 = jl({
|
|
|
39103
39105
|
});
|
|
39104
39106
|
}
|
|
39105
39107
|
});
|
|
39106
|
-
function
|
|
39108
|
+
function u8(s) {
|
|
39107
39109
|
const l = [], o = x2(s.options);
|
|
39108
39110
|
return o && l.push(o), new N0(l);
|
|
39109
39111
|
}
|
|
39110
|
-
const
|
|
39112
|
+
const c8 = jl({
|
|
39111
39113
|
id: "input-string",
|
|
39112
39114
|
type: "input",
|
|
39113
39115
|
accept: (s, l) => {
|
|
@@ -39124,7 +39126,7 @@ const u8 = jl({
|
|
|
39124
39126
|
},
|
|
39125
39127
|
binding: {
|
|
39126
39128
|
reader: (s) => PD,
|
|
39127
|
-
constraint: (s) =>
|
|
39129
|
+
constraint: (s) => u8(s.params),
|
|
39128
39130
|
writer: (s) => j0
|
|
39129
39131
|
},
|
|
39130
39132
|
controller: (s) => {
|
|
@@ -39153,7 +39155,7 @@ const u8 = jl({
|
|
|
39153
39155
|
defaultRows: 3
|
|
39154
39156
|
}
|
|
39155
39157
|
}, CT = Re("mll");
|
|
39156
|
-
class
|
|
39158
|
+
class f8 {
|
|
39157
39159
|
constructor(l, o) {
|
|
39158
39160
|
this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = o.formatter, this.element = l.createElement("div"), this.element.classList.add(CT()), o.viewProps.bindClassModifiers(this.element);
|
|
39159
39161
|
const c = l.createElement("textarea");
|
|
@@ -39172,7 +39174,7 @@ class c8 {
|
|
|
39172
39174
|
}
|
|
39173
39175
|
class L2 {
|
|
39174
39176
|
constructor(l, o) {
|
|
39175
|
-
this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
39177
|
+
this.value = o.value, this.viewProps = o.viewProps, this.view = new f8(l, {
|
|
39176
39178
|
formatter: o.formatter,
|
|
39177
39179
|
rows: o.rows,
|
|
39178
39180
|
value: this.value,
|
|
@@ -39181,7 +39183,7 @@ class L2 {
|
|
|
39181
39183
|
}
|
|
39182
39184
|
}
|
|
39183
39185
|
const xT = Re("sgl");
|
|
39184
|
-
class
|
|
39186
|
+
class d8 {
|
|
39185
39187
|
constructor(l, o) {
|
|
39186
39188
|
this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.formatter_ = o.formatter, this.element = l.createElement("div"), this.element.classList.add(xT()), o.viewProps.bindClassModifiers(this.element);
|
|
39187
39189
|
const c = l.createElement("input");
|
|
@@ -39197,14 +39199,14 @@ class f8 {
|
|
|
39197
39199
|
}
|
|
39198
39200
|
class H2 {
|
|
39199
39201
|
constructor(l, o) {
|
|
39200
|
-
this.value = o.value, this.viewProps = o.viewProps, this.view = new
|
|
39202
|
+
this.value = o.value, this.viewProps = o.viewProps, this.view = new d8(l, {
|
|
39201
39203
|
formatter: o.formatter,
|
|
39202
39204
|
value: this.value,
|
|
39203
39205
|
viewProps: this.viewProps
|
|
39204
39206
|
});
|
|
39205
39207
|
}
|
|
39206
39208
|
}
|
|
39207
|
-
const
|
|
39209
|
+
const h8 = jl({
|
|
39208
39210
|
id: "monitor-bool",
|
|
39209
39211
|
type: "monitor",
|
|
39210
39212
|
accept: (s, l) => {
|
|
@@ -39236,7 +39238,7 @@ const d8 = jl({
|
|
|
39236
39238
|
});
|
|
39237
39239
|
}
|
|
39238
39240
|
});
|
|
39239
|
-
class
|
|
39241
|
+
class p8 extends T0 {
|
|
39240
39242
|
get max() {
|
|
39241
39243
|
return this.controller.valueController.props.get("max");
|
|
39242
39244
|
}
|
|
@@ -39251,7 +39253,7 @@ class h8 extends T0 {
|
|
|
39251
39253
|
}
|
|
39252
39254
|
}
|
|
39253
39255
|
const ff = Re("grl");
|
|
39254
|
-
class
|
|
39256
|
+
class m8 {
|
|
39255
39257
|
constructor(l, o) {
|
|
39256
39258
|
this.onCursorChange_ = this.onCursorChange_.bind(this), this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.element = l.createElement("div"), this.element.classList.add(ff()), o.viewProps.bindClassModifiers(this.element), this.formatter_ = o.formatter, this.props_ = o.props, this.cursor_ = o.cursor, this.cursor_.emitter.on("change", this.onCursorChange_);
|
|
39257
39259
|
const c = l.createElementNS(ir, "svg");
|
|
@@ -39289,7 +39291,7 @@ class p8 {
|
|
|
39289
39291
|
}
|
|
39290
39292
|
class _z {
|
|
39291
39293
|
constructor(l, o) {
|
|
39292
|
-
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 = o.props, this.value = o.value, this.viewProps = o.viewProps, this.cursor_ = Sn(-1), this.view = new
|
|
39294
|
+
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 = o.props, this.value = o.value, this.viewProps = o.viewProps, this.cursor_ = Sn(-1), this.view = new m8(l, {
|
|
39293
39295
|
cursor: this.cursor_,
|
|
39294
39296
|
formatter: o.formatter,
|
|
39295
39297
|
rows: o.rows,
|
|
@@ -39339,7 +39341,7 @@ class _z {
|
|
|
39339
39341
|
function n2(s) {
|
|
39340
39342
|
return cn(s.format) ? oi(2) : s.format;
|
|
39341
39343
|
}
|
|
39342
|
-
function
|
|
39344
|
+
function v8(s) {
|
|
39343
39345
|
var l;
|
|
39344
39346
|
return s.value.rawValue.length === 1 ? new H2(s.document, {
|
|
39345
39347
|
formatter: n2(s.params),
|
|
@@ -39352,7 +39354,7 @@ function m8(s) {
|
|
|
39352
39354
|
viewProps: s.viewProps
|
|
39353
39355
|
});
|
|
39354
39356
|
}
|
|
39355
|
-
function
|
|
39357
|
+
function g8(s) {
|
|
39356
39358
|
var l, o, c;
|
|
39357
39359
|
return new _z(s.document, {
|
|
39358
39360
|
formatter: n2(s.params),
|
|
@@ -39368,7 +39370,7 @@ function v8(s) {
|
|
|
39368
39370
|
function TT(s) {
|
|
39369
39371
|
return s.view === "graph";
|
|
39370
39372
|
}
|
|
39371
|
-
const
|
|
39373
|
+
const b8 = jl({
|
|
39372
39374
|
id: "monitor-number",
|
|
39373
39375
|
type: "monitor",
|
|
39374
39376
|
accept: (s, l) => {
|
|
@@ -39391,9 +39393,9 @@ const g8 = jl({
|
|
|
39391
39393
|
defaultBufferSize: (s) => TT(s) ? 64 : 1,
|
|
39392
39394
|
reader: (s) => ED
|
|
39393
39395
|
},
|
|
39394
|
-
controller: (s) => TT(s.params) ?
|
|
39395
|
-
api: (s) => s.controller.valueController instanceof _z ? new
|
|
39396
|
-
}),
|
|
39396
|
+
controller: (s) => TT(s.params) ? g8(s) : v8(s),
|
|
39397
|
+
api: (s) => s.controller.valueController instanceof _z ? new p8(s.controller) : null
|
|
39398
|
+
}), y8 = jl({
|
|
39397
39399
|
id: "monitor-string",
|
|
39398
39400
|
type: "monitor",
|
|
39399
39401
|
accept: (s, l) => {
|
|
@@ -39427,7 +39429,7 @@ const g8 = jl({
|
|
|
39427
39429
|
});
|
|
39428
39430
|
}
|
|
39429
39431
|
});
|
|
39430
|
-
class
|
|
39432
|
+
class _8 {
|
|
39431
39433
|
constructor() {
|
|
39432
39434
|
this.map_ = /* @__PURE__ */ new Map();
|
|
39433
39435
|
}
|
|
@@ -39444,7 +39446,7 @@ class y8 {
|
|
|
39444
39446
|
}), o;
|
|
39445
39447
|
}
|
|
39446
39448
|
}
|
|
39447
|
-
class
|
|
39449
|
+
class S8 {
|
|
39448
39450
|
constructor(l) {
|
|
39449
39451
|
this.target = l.target, this.reader_ = l.reader, this.writer_ = l.writer;
|
|
39450
39452
|
}
|
|
@@ -39458,7 +39460,7 @@ class _8 {
|
|
|
39458
39460
|
this.write(this.reader_(l));
|
|
39459
39461
|
}
|
|
39460
39462
|
}
|
|
39461
|
-
function
|
|
39463
|
+
function w8(s, l) {
|
|
39462
39464
|
var o;
|
|
39463
39465
|
const c = s.accept(l.target.read(), l.params);
|
|
39464
39466
|
if (cn(c))
|
|
@@ -39472,11 +39474,11 @@ function S8(s, l) {
|
|
|
39472
39474
|
hidden: M.optional.boolean,
|
|
39473
39475
|
label: M.optional.string,
|
|
39474
39476
|
tag: M.optional.string
|
|
39475
|
-
})), S = s.binding.reader(p), _ = s.binding.constraint ? s.binding.constraint(p) : void 0, C = new
|
|
39477
|
+
})), S = s.binding.reader(p), _ = s.binding.constraint ? s.binding.constraint(p) : void 0, C = new S8({
|
|
39476
39478
|
reader: S,
|
|
39477
39479
|
target: l.target,
|
|
39478
39480
|
writer: s.binding.writer(p)
|
|
39479
|
-
}), x = new
|
|
39481
|
+
}), x = new i4(Sn(S(c.initialValue), {
|
|
39480
39482
|
constraint: _,
|
|
39481
39483
|
equals: s.binding.equals
|
|
39482
39484
|
}), C), D = s.controller({
|
|
@@ -39490,7 +39492,7 @@ function S8(s, l) {
|
|
|
39490
39492
|
hidden: b == null ? void 0 : b.hidden
|
|
39491
39493
|
})
|
|
39492
39494
|
});
|
|
39493
|
-
return new
|
|
39495
|
+
return new _4(l.document, {
|
|
39494
39496
|
blade: sv(),
|
|
39495
39497
|
props: he.fromObject({
|
|
39496
39498
|
label: "label" in l.params ? (o = b == null ? void 0 : b.label) !== null && o !== void 0 ? o : null : l.target.key
|
|
@@ -39500,7 +39502,7 @@ function S8(s, l) {
|
|
|
39500
39502
|
valueController: D
|
|
39501
39503
|
});
|
|
39502
39504
|
}
|
|
39503
|
-
class
|
|
39505
|
+
class E8 {
|
|
39504
39506
|
constructor(l) {
|
|
39505
39507
|
this.target = l.target, this.reader_ = l.reader;
|
|
39506
39508
|
}
|
|
@@ -39508,10 +39510,10 @@ class w8 {
|
|
|
39508
39510
|
return this.reader_(this.target.read());
|
|
39509
39511
|
}
|
|
39510
39512
|
}
|
|
39511
|
-
function E8(s, l) {
|
|
39512
|
-
return l === 0 ? new e5() : new n5(s, l ?? G0.monitor.defaultInterval);
|
|
39513
|
-
}
|
|
39514
39513
|
function C8(s, l) {
|
|
39514
|
+
return l === 0 ? new n5() : new a5(s, l ?? G0.monitor.defaultInterval);
|
|
39515
|
+
}
|
|
39516
|
+
function x8(s, l) {
|
|
39515
39517
|
var o, c, p;
|
|
39516
39518
|
const b = s.accept(l.target.read(), l.params);
|
|
39517
39519
|
if (cn(b))
|
|
@@ -39526,13 +39528,13 @@ function C8(s, l) {
|
|
|
39526
39528
|
hidden: A.optional.boolean,
|
|
39527
39529
|
interval: A.optional.number,
|
|
39528
39530
|
label: A.optional.string
|
|
39529
|
-
})), C = s.binding.reader(S), x = (c = (o = _ == null ? void 0 : _.bufferSize) !== null && o !== void 0 ? o : s.binding.defaultBufferSize && s.binding.defaultBufferSize(b.params)) !== null && c !== void 0 ? c : 1, D = new
|
|
39530
|
-
binding: new
|
|
39531
|
+
})), C = s.binding.reader(S), x = (c = (o = _ == null ? void 0 : _.bufferSize) !== null && o !== void 0 ? o : s.binding.defaultBufferSize && s.binding.defaultBufferSize(b.params)) !== null && c !== void 0 ? c : 1, D = new x4({
|
|
39532
|
+
binding: new E8({
|
|
39531
39533
|
reader: C,
|
|
39532
39534
|
target: l.target
|
|
39533
39535
|
}),
|
|
39534
39536
|
bufferSize: x,
|
|
39535
|
-
ticker:
|
|
39537
|
+
ticker: C8(l.document, _ == null ? void 0 : _.interval)
|
|
39536
39538
|
}), M = s.controller({
|
|
39537
39539
|
document: l.document,
|
|
39538
39540
|
params: b.params,
|
|
@@ -39544,7 +39546,7 @@ function C8(s, l) {
|
|
|
39544
39546
|
});
|
|
39545
39547
|
return M.viewProps.bindDisabled(D.ticker), M.viewProps.handleDispose(() => {
|
|
39546
39548
|
D.ticker.dispose();
|
|
39547
|
-
}), new
|
|
39549
|
+
}), new D4(l.document, {
|
|
39548
39550
|
blade: sv(),
|
|
39549
39551
|
props: he.fromObject({
|
|
39550
39552
|
label: "label" in l.params ? (p = _ == null ? void 0 : _.label) !== null && p !== void 0 ? p : null : l.target.key
|
|
@@ -39553,7 +39555,7 @@ function C8(s, l) {
|
|
|
39553
39555
|
valueController: M
|
|
39554
39556
|
});
|
|
39555
39557
|
}
|
|
39556
|
-
class
|
|
39558
|
+
class T8 {
|
|
39557
39559
|
constructor(l) {
|
|
39558
39560
|
this.pluginsMap_ = {
|
|
39559
39561
|
blades: [],
|
|
@@ -39569,19 +39571,19 @@ class x8 {
|
|
|
39569
39571
|
];
|
|
39570
39572
|
}
|
|
39571
39573
|
register(l, o) {
|
|
39572
|
-
if (!
|
|
39574
|
+
if (!v5(o.core))
|
|
39573
39575
|
throw Hn.notCompatible(l, o.id);
|
|
39574
39576
|
o.type === "blade" ? this.pluginsMap_.blades.unshift(o) : o.type === "input" ? this.pluginsMap_.inputs.unshift(o) : o.type === "monitor" && this.pluginsMap_.monitors.unshift(o);
|
|
39575
39577
|
}
|
|
39576
39578
|
createInput_(l, o, c) {
|
|
39577
|
-
return this.pluginsMap_.inputs.reduce((p, b) => p ??
|
|
39579
|
+
return this.pluginsMap_.inputs.reduce((p, b) => p ?? w8(b, {
|
|
39578
39580
|
document: l,
|
|
39579
39581
|
target: o,
|
|
39580
39582
|
params: c
|
|
39581
39583
|
}), null);
|
|
39582
39584
|
}
|
|
39583
39585
|
createMonitor_(l, o, c) {
|
|
39584
|
-
return this.pluginsMap_.monitors.reduce((p, b) => p ??
|
|
39586
|
+
return this.pluginsMap_.monitors.reduce((p, b) => p ?? x8(b, {
|
|
39585
39587
|
document: l,
|
|
39586
39588
|
params: c,
|
|
39587
39589
|
target: o
|
|
@@ -39610,7 +39612,7 @@ class x8 {
|
|
|
39610
39612
|
});
|
|
39611
39613
|
}
|
|
39612
39614
|
createBlade(l, o) {
|
|
39613
|
-
const c = this.pluginsMap_.blades.reduce((p, b) => p ??
|
|
39615
|
+
const c = this.pluginsMap_.blades.reduce((p, b) => p ?? e5(b, {
|
|
39614
39616
|
document: l,
|
|
39615
39617
|
params: o
|
|
39616
39618
|
}), null);
|
|
@@ -39644,16 +39646,16 @@ class x8 {
|
|
|
39644
39646
|
createBindingApi(l) {
|
|
39645
39647
|
if (this.apiCache_.has(l))
|
|
39646
39648
|
return this.apiCache_.get(l);
|
|
39647
|
-
if (
|
|
39649
|
+
if (S4(l))
|
|
39648
39650
|
return this.createInputBindingApi_(l);
|
|
39649
|
-
if (
|
|
39651
|
+
if (z4(l))
|
|
39650
39652
|
return this.createMonitorBindingApi_(l);
|
|
39651
39653
|
throw Hn.shouldNeverHappen();
|
|
39652
39654
|
}
|
|
39653
39655
|
createApi(l) {
|
|
39654
39656
|
if (this.apiCache_.has(l))
|
|
39655
39657
|
return this.apiCache_.get(l);
|
|
39656
|
-
if (
|
|
39658
|
+
if (y4(l))
|
|
39657
39659
|
return this.createBindingApi(l);
|
|
39658
39660
|
const o = this.pluginsMap_.blades.reduce((c, p) => c ?? p.api({
|
|
39659
39661
|
controller: l,
|
|
@@ -39664,30 +39666,30 @@ class x8 {
|
|
|
39664
39666
|
return this.apiCache_.add(l, o);
|
|
39665
39667
|
}
|
|
39666
39668
|
}
|
|
39667
|
-
const
|
|
39668
|
-
function
|
|
39669
|
-
const s = new
|
|
39669
|
+
const D8 = new _8();
|
|
39670
|
+
function z8() {
|
|
39671
|
+
const s = new T8(D8);
|
|
39670
39672
|
return [
|
|
39671
|
-
|
|
39672
|
-
|
|
39673
|
-
|
|
39674
|
-
|
|
39675
|
-
|
|
39673
|
+
t8,
|
|
39674
|
+
l8,
|
|
39675
|
+
r8,
|
|
39676
|
+
c8,
|
|
39677
|
+
X6,
|
|
39678
|
+
V6,
|
|
39676
39679
|
j6,
|
|
39677
|
-
|
|
39678
|
-
|
|
39679
|
-
|
|
39680
|
-
|
|
39680
|
+
U6,
|
|
39681
|
+
_5,
|
|
39682
|
+
h8,
|
|
39683
|
+
y8,
|
|
39681
39684
|
b8,
|
|
39682
|
-
|
|
39683
|
-
|
|
39684
|
-
P4,
|
|
39685
|
+
U4,
|
|
39686
|
+
Q4,
|
|
39685
39687
|
kD
|
|
39686
39688
|
].forEach((l) => {
|
|
39687
39689
|
s.register("core", l);
|
|
39688
39690
|
}), s;
|
|
39689
39691
|
}
|
|
39690
|
-
class
|
|
39692
|
+
class M8 extends gh {
|
|
39691
39693
|
/**
|
|
39692
39694
|
* @hidden
|
|
39693
39695
|
*/
|
|
@@ -39726,9 +39728,9 @@ class z8 extends gh {
|
|
|
39726
39728
|
return this.emitter_.off(l, o), this;
|
|
39727
39729
|
}
|
|
39728
39730
|
}
|
|
39729
|
-
class M8 extends gh {
|
|
39730
|
-
}
|
|
39731
39731
|
class A8 extends gh {
|
|
39732
|
+
}
|
|
39733
|
+
class R8 extends gh {
|
|
39732
39734
|
/**
|
|
39733
39735
|
* @hidden
|
|
39734
39736
|
*/
|
|
@@ -39773,7 +39775,7 @@ class A8 extends gh {
|
|
|
39773
39775
|
return this.emitter_.off(l, o), this;
|
|
39774
39776
|
}
|
|
39775
39777
|
}
|
|
39776
|
-
class
|
|
39778
|
+
class O8 extends gh {
|
|
39777
39779
|
/**
|
|
39778
39780
|
* @hidden
|
|
39779
39781
|
*/
|
|
@@ -39812,7 +39814,7 @@ class R8 extends gh {
|
|
|
39812
39814
|
return this.emitter_.off(l, o), this;
|
|
39813
39815
|
}
|
|
39814
39816
|
}
|
|
39815
|
-
const
|
|
39817
|
+
const U8 = /* @__PURE__ */ (function() {
|
|
39816
39818
|
return {
|
|
39817
39819
|
id: "list",
|
|
39818
39820
|
type: "blade",
|
|
@@ -39846,11 +39848,11 @@ const O8 = /* @__PURE__ */ (function() {
|
|
|
39846
39848
|
});
|
|
39847
39849
|
},
|
|
39848
39850
|
api(s) {
|
|
39849
|
-
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof yf) ? null : new
|
|
39851
|
+
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof yf) ? null : new M8(s.controller);
|
|
39850
39852
|
}
|
|
39851
39853
|
};
|
|
39852
39854
|
})();
|
|
39853
|
-
class
|
|
39855
|
+
class N8 extends GD {
|
|
39854
39856
|
/**
|
|
39855
39857
|
* @hidden
|
|
39856
39858
|
*/
|
|
@@ -39861,7 +39863,7 @@ class U8 extends GD {
|
|
|
39861
39863
|
return this.controller.view.element;
|
|
39862
39864
|
}
|
|
39863
39865
|
}
|
|
39864
|
-
class
|
|
39866
|
+
class L8 extends Iw {
|
|
39865
39867
|
constructor(l, o) {
|
|
39866
39868
|
super(l, {
|
|
39867
39869
|
expanded: o.expanded,
|
|
@@ -39873,7 +39875,7 @@ class N8 extends Iw {
|
|
|
39873
39875
|
}
|
|
39874
39876
|
}
|
|
39875
39877
|
const DT = Re("spr");
|
|
39876
|
-
class
|
|
39878
|
+
class H8 {
|
|
39877
39879
|
constructor(l, o) {
|
|
39878
39880
|
this.element = l.createElement("div"), this.element.classList.add(DT()), o.viewProps.bindClassModifiers(this.element);
|
|
39879
39881
|
const c = l.createElement("hr");
|
|
@@ -39885,12 +39887,12 @@ class zT extends k_ {
|
|
|
39885
39887
|
* @hidden
|
|
39886
39888
|
*/
|
|
39887
39889
|
constructor(l, o) {
|
|
39888
|
-
super(Object.assign(Object.assign({}, o), { view: new
|
|
39890
|
+
super(Object.assign(Object.assign({}, o), { view: new H8(l, {
|
|
39889
39891
|
viewProps: o.viewProps
|
|
39890
39892
|
}) }));
|
|
39891
39893
|
}
|
|
39892
39894
|
}
|
|
39893
|
-
const
|
|
39895
|
+
const B8 = {
|
|
39894
39896
|
id: "separator",
|
|
39895
39897
|
type: "blade",
|
|
39896
39898
|
core: ov,
|
|
@@ -39907,9 +39909,9 @@ const H8 = {
|
|
|
39907
39909
|
});
|
|
39908
39910
|
},
|
|
39909
39911
|
api(s) {
|
|
39910
|
-
return s.controller instanceof zT ? new
|
|
39912
|
+
return s.controller instanceof zT ? new A8(s.controller) : null;
|
|
39911
39913
|
}
|
|
39912
|
-
},
|
|
39914
|
+
}, j8 = {
|
|
39913
39915
|
id: "slider",
|
|
39914
39916
|
type: "blade",
|
|
39915
39917
|
core: ov,
|
|
@@ -39932,7 +39934,7 @@ const H8 = {
|
|
|
39932
39934
|
}), b = Sn(c, {
|
|
39933
39935
|
constraint: p
|
|
39934
39936
|
}), S = new H_(s.document, Object.assign(Object.assign({}, ZD({
|
|
39935
|
-
formatter: (o = s.params.format) !== null && o !== void 0 ? o :
|
|
39937
|
+
formatter: (o = s.params.format) !== null && o !== void 0 ? o : t4,
|
|
39936
39938
|
keyScale: Sn(1),
|
|
39937
39939
|
max: p.values.value("max"),
|
|
39938
39940
|
min: p.values.value("min"),
|
|
@@ -39948,9 +39950,9 @@ const H8 = {
|
|
|
39948
39950
|
});
|
|
39949
39951
|
},
|
|
39950
39952
|
api(s) {
|
|
39951
|
-
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof H_) ? null : new
|
|
39953
|
+
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof H_) ? null : new R8(s.controller);
|
|
39952
39954
|
}
|
|
39953
|
-
},
|
|
39955
|
+
}, V8 = /* @__PURE__ */ (function() {
|
|
39954
39956
|
return {
|
|
39955
39957
|
id: "text",
|
|
39956
39958
|
type: "blade",
|
|
@@ -39985,24 +39987,24 @@ const H8 = {
|
|
|
39985
39987
|
});
|
|
39986
39988
|
},
|
|
39987
39989
|
api(s) {
|
|
39988
|
-
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof D0) ? null : new
|
|
39990
|
+
return !(s.controller instanceof ph) || !(s.controller.valueController instanceof D0) ? null : new O8(s.controller);
|
|
39989
39991
|
}
|
|
39990
39992
|
};
|
|
39991
39993
|
})();
|
|
39992
|
-
function
|
|
39994
|
+
function G8(s) {
|
|
39993
39995
|
const l = s.createElement("div");
|
|
39994
39996
|
return l.classList.add(Re("dfw")()), s.body && s.body.appendChild(l), l;
|
|
39995
39997
|
}
|
|
39996
|
-
function
|
|
39998
|
+
function q8(s, l, o) {
|
|
39997
39999
|
if (s.querySelector(`style[data-tp-style=${l}]`))
|
|
39998
40000
|
return;
|
|
39999
40001
|
const c = s.createElement("style");
|
|
40000
40002
|
c.dataset.tpStyle = l, c.textContent = o, s.head.appendChild(c);
|
|
40001
40003
|
}
|
|
40002
|
-
class
|
|
40004
|
+
class k8 extends N8 {
|
|
40003
40005
|
constructor(l) {
|
|
40004
40006
|
var o, c;
|
|
40005
|
-
const p = l ?? {}, b = (o = p.document) !== null && o !== void 0 ? o :
|
|
40007
|
+
const p = l ?? {}, b = (o = p.document) !== null && o !== void 0 ? o : d4(), S = z8(), _ = new L8(b, {
|
|
40006
40008
|
expanded: p.expanded,
|
|
40007
40009
|
blade: sv(),
|
|
40008
40010
|
props: he.fromObject({
|
|
@@ -40010,7 +40012,7 @@ class q8 extends U8 {
|
|
|
40010
40012
|
}),
|
|
40011
40013
|
viewProps: Tu.create()
|
|
40012
40014
|
});
|
|
40013
|
-
super(_, S), this.pool_ = S, this.containerElem_ = (c = p.container) !== null && c !== void 0 ? c :
|
|
40015
|
+
super(_, S), this.pool_ = S, this.containerElem_ = (c = p.container) !== null && c !== void 0 ? c : G8(b), this.containerElem_.appendChild(this.element), this.doc_ = b, this.usesDefaultWrapper_ = !p.container, this.setUpDefaultPlugins_();
|
|
40014
40016
|
}
|
|
40015
40017
|
get document() {
|
|
40016
40018
|
if (!this.doc_)
|
|
@@ -40028,7 +40030,7 @@ class q8 extends U8 {
|
|
|
40028
40030
|
this.containerElem_ = null, this.doc_ = null, super.dispose();
|
|
40029
40031
|
}
|
|
40030
40032
|
registerPlugin(l) {
|
|
40031
|
-
l.css &&
|
|
40033
|
+
l.css && q8(this.document, `plugin-${l.id}`, l.css), ("plugin" in l ? [l.plugin] : "plugins" in l ? l.plugins : []).forEach((c) => {
|
|
40032
40034
|
this.pool_.register(l.id, c);
|
|
40033
40035
|
});
|
|
40034
40036
|
}
|
|
@@ -40038,43 +40040,43 @@ class q8 extends U8 {
|
|
|
40038
40040
|
// NOTE: This string literal will be replaced with the default CSS by Rollup at the compilation time
|
|
40039
40041
|
css: '.tp-tbiv_b,.tp-coltxtv_ms,.tp-colswv_b,.tp-ckbv_i,.tp-sglv_i,.tp-mllv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-rotv_b,.tp-fldv_b,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--bld-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--cnt-usz);line-height:var(--cnt-usz);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tbpv_c>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-vp))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tbpv_c>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--cnt-usp)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tbpv_c>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tbpv_c>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tbpv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tbpv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tbpv_c>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tbpv_c>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--bld-br);border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tbpv_c .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tbpv_c>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tbpv_c>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--bld-br)}.tp-tbpv_c .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--bld-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);overflow:hidden;padding-left:var(--cnt-hp);padding-right:calc(4px + var(--cnt-usz) + var(--cnt-hp));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-hp) + (var(--cnt-usz) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-vp);padding-top:var(--cnt-vp);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--cnt-usz);line-height:var(--cnt-usz);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-sglv_i,.tp-mllv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--mo-fg);height:var(--cnt-usz);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-sglv_i::-webkit-scrollbar,.tp-mllv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-sglv_i::-webkit-scrollbar-corner,.tp-mllv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-sglv_i::-webkit-scrollbar-thumb,.tp-mllv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-rotv{--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-br: var(--tp-base-border-radius, 6px);--bs-ff: var(--tp-base-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--bld-br: var(--tp-blade-border-radius, 2px);--bld-hp: var(--tp-blade-horizontal-padding, 4px);--bld-vw: var(--tp-blade-value-width, 160px);--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--cnt-hp: var(--tp-container-horizontal-padding, 4px);--cnt-vp: var(--tp-container-vertical-padding, 4px);--cnt-usp: var(--tp-container-unit-spacing, 4px);--cnt-usz: var(--tp-container-unit-size, 20px);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--bld-br);cursor:pointer;display:block;height:var(--cnt-usz);position:relative;width:var(--cnt-usz)}.tp-ckbv_w svg{display:block;height:16px;inset:0;margin:auto;opacity:0;position:absolute;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--cnt-usz)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--cnt-usp);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--cnt-usp)}.tp-colpv_rgb{display:flex;margin-top:var(--cnt-usp);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-vp);padding-top:calc(var(--cnt-vp) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-hp));position:absolute;right:calc(-1*var(--cnt-hp));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--bld-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--cnt-usz)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{inset:0;position:absolute}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--bld-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;inset:0;position:absolute}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--bld-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{cursor:pointer;display:block;height:var(--cnt-usz);left:0;position:absolute;top:0;width:var(--cnt-usz)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--bld-br);content:"";display:block;inset:0;position:absolute}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--bld-br);color:var(--lbl-fg);cursor:pointer;height:var(--cnt-usz);line-height:var(--cnt-usz);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--cnt-usz)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-hp);padding-right:var(--cnt-hp)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:var(--bld-vw)}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 var(--bld-hp);width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--cnt-usz)*3);line-height:var(--cnt-usz);padding-left:var(--bld-hp);padding-right:var(--bld-hp);resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--cnt-usz);margin-right:4px;position:relative;width:var(--cnt-usz)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--cnt-usp);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-p2dpv{padding-left:calc(var(--cnt-usz) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:var(--bld-vw);padding:var(--cnt-vp) var(--cnt-hp);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--cnt-usz);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";display:block;height:2px;inset:0;margin:auto;position:absolute}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;content:"";display:block;height:2px;inset:0;margin-bottom:auto;margin-top:auto;position:absolute}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--bld-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:"";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--cnt-usz) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-hp) + 4px);padding-right:calc(var(--cnt-hp) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);content:"";inset:0 0 2px;pointer-events:none;position:absolute}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);opacity:.5;overflow:hidden;position:relative;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-tbpv_c{padding-bottom:var(--cnt-vp);padding-left:4px;padding-top:var(--cnt-vp)}.tp-txtv{position:relative}.tp-txtv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:calc(var(--bld-hp) - 5px);position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--cnt-usz) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--bld-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--bs-ff);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--cnt-usz) + var(--cnt-hp));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0;transition-delay:0s;transition-duration:0s}.tp-rotv.tp-rotv-not>.tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst.tp-fldv-expanded>.tp-fldv_b{transition-delay:0s;transition-duration:0s}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}',
|
|
40040
40042
|
plugins: [
|
|
40041
|
-
|
|
40042
|
-
H8,
|
|
40043
|
+
U8,
|
|
40043
40044
|
B8,
|
|
40045
|
+
j8,
|
|
40044
40046
|
kD,
|
|
40045
|
-
|
|
40047
|
+
V8
|
|
40046
40048
|
]
|
|
40047
40049
|
});
|
|
40048
40050
|
}
|
|
40049
40051
|
}
|
|
40050
40052
|
new VD("4.0.5");
|
|
40051
|
-
const
|
|
40052
|
-
container:
|
|
40053
|
-
nameRow:
|
|
40054
|
-
nameIcon:
|
|
40055
|
-
nameText:
|
|
40056
|
-
sectionHeader:
|
|
40057
|
-
sectionArrow:
|
|
40058
|
-
collapsed:
|
|
40059
|
-
sectionTitle:
|
|
40060
|
-
divider:
|
|
40061
|
-
propertyRow3:
|
|
40062
|
-
propertyLabel:
|
|
40063
|
-
checkboxRow:
|
|
40064
|
-
checkbox:
|
|
40065
|
-
checkboxLabel:
|
|
40066
|
-
propertyRow:
|
|
40067
|
-
propertyLabelWide:
|
|
40068
|
-
valueDisplay:
|
|
40069
|
-
sliderRow:
|
|
40070
|
-
sliderTrack:
|
|
40071
|
-
sliderFill:
|
|
40072
|
-
sliderThumb:
|
|
40073
|
-
sliderInput:
|
|
40074
|
-
draggableInput:
|
|
40075
|
-
empty:
|
|
40076
|
-
colorInput:
|
|
40077
|
-
prefabSection:
|
|
40053
|
+
const Y8 = "_container_1jjbp_1", X8 = "_nameRow_1jjbp_8", P8 = "_nameIcon_1jjbp_18", Q8 = "_nameText_1jjbp_24", Z8 = "_sectionHeader_1jjbp_32", K8 = "_sectionArrow_1jjbp_46", J8 = "_collapsed_1jjbp_54", $8 = "_sectionTitle_1jjbp_58", W8 = "_divider_1jjbp_66", F8 = "_propertyRow3_1jjbp_73", I8 = "_propertyLabel_1jjbp_81", tU = "_checkboxRow_1jjbp_108", eU = "_checkbox_1jjbp_108", nU = "_checkboxLabel_1jjbp_124", aU = "_propertyRow_1jjbp_73", lU = "_propertyLabelWide_1jjbp_140", iU = "_valueDisplay_1jjbp_148", oU = "_sliderRow_1jjbp_184", sU = "_sliderTrack_1jjbp_192", rU = "_sliderFill_1jjbp_202", uU = "_sliderThumb_1jjbp_212", cU = "_sliderInput_1jjbp_224", fU = "_draggableInput_1jjbp_244", dU = "_empty_1jjbp_265", hU = "_colorInput_1jjbp_274", pU = "_prefabSection_1jjbp_286", Ce = {
|
|
40054
|
+
container: Y8,
|
|
40055
|
+
nameRow: X8,
|
|
40056
|
+
nameIcon: P8,
|
|
40057
|
+
nameText: Q8,
|
|
40058
|
+
sectionHeader: Z8,
|
|
40059
|
+
sectionArrow: K8,
|
|
40060
|
+
collapsed: J8,
|
|
40061
|
+
sectionTitle: $8,
|
|
40062
|
+
divider: W8,
|
|
40063
|
+
propertyRow3: F8,
|
|
40064
|
+
propertyLabel: I8,
|
|
40065
|
+
checkboxRow: tU,
|
|
40066
|
+
checkbox: eU,
|
|
40067
|
+
checkboxLabel: nU,
|
|
40068
|
+
propertyRow: aU,
|
|
40069
|
+
propertyLabelWide: lU,
|
|
40070
|
+
valueDisplay: iU,
|
|
40071
|
+
sliderRow: oU,
|
|
40072
|
+
sliderTrack: sU,
|
|
40073
|
+
sliderFill: rU,
|
|
40074
|
+
sliderThumb: uU,
|
|
40075
|
+
sliderInput: cU,
|
|
40076
|
+
draggableInput: fU,
|
|
40077
|
+
empty: dU,
|
|
40078
|
+
colorInput: hU,
|
|
40079
|
+
prefabSection: pU
|
|
40078
40080
|
};
|
|
40079
40081
|
function kw({ value: s, onChange: l, speed: o, className: c }) {
|
|
40080
40082
|
const p = Ee(null), b = Ee(null), S = (D) => Number.parseFloat(D.toFixed(2)).toString(), _ = o ?? 0.01, C = (D) => {
|
|
@@ -40135,7 +40137,7 @@ function g0({ label: s, checked: l, onChange: o }) {
|
|
|
40135
40137
|
/* @__PURE__ */ $("label", { htmlFor: c, className: Ce.checkboxLabel, children: s })
|
|
40136
40138
|
] });
|
|
40137
40139
|
}
|
|
40138
|
-
function
|
|
40140
|
+
function mU({ label: s, value: l, onChange: o }) {
|
|
40139
40141
|
return /* @__PURE__ */ Rt("div", { className: Ce.propertyRow, children: [
|
|
40140
40142
|
/* @__PURE__ */ $("span", { className: Ce.propertyLabelWide, children: s }),
|
|
40141
40143
|
/* @__PURE__ */ $(
|
|
@@ -40150,7 +40152,7 @@ function pU({ label: s, value: l, onChange: o }) {
|
|
|
40150
40152
|
)
|
|
40151
40153
|
] });
|
|
40152
40154
|
}
|
|
40153
|
-
function
|
|
40155
|
+
function vU({ label: s, value: l }) {
|
|
40154
40156
|
return /* @__PURE__ */ Rt("div", { className: Ce.propertyRow, children: [
|
|
40155
40157
|
/* @__PURE__ */ $("span", { className: Ce.propertyLabelWide, children: s }),
|
|
40156
40158
|
/* @__PURE__ */ $("span", { className: Ce.valueDisplay, children: l })
|
|
@@ -40193,16 +40195,16 @@ function b0({ label: s, value: l, min: o, max: c, step: p, onChange: b }) {
|
|
|
40193
40195
|
)
|
|
40194
40196
|
] });
|
|
40195
40197
|
}
|
|
40196
|
-
function
|
|
40198
|
+
function gU({ config: s }) {
|
|
40197
40199
|
const l = Ee(null);
|
|
40198
40200
|
return Bn(() => {
|
|
40199
40201
|
if (!l.current)
|
|
40200
40202
|
return;
|
|
40201
|
-
const o = new
|
|
40203
|
+
const o = new k8({ container: l.current, title: s.label });
|
|
40202
40204
|
return s.addBindings(o), () => o.dispose();
|
|
40203
40205
|
}, [s]), /* @__PURE__ */ $("div", { className: Ce.prefabSection, ref: l });
|
|
40204
40206
|
}
|
|
40205
|
-
function
|
|
40207
|
+
function bU() {
|
|
40206
40208
|
var k, dt;
|
|
40207
40209
|
const [s, l] = Ae(null), [, o] = Ae(0), [c, p] = Ae(/* @__PURE__ */ new Map()), b = or(() => o((R) => R + 1), []), [S, _] = Ae(!0), [C, x] = Ae(!0), [D, M] = Ae(!0), [A, N] = Ae(!0), [L, O] = Ae(!0);
|
|
40208
40210
|
Bn(() => {
|
|
@@ -40320,7 +40322,7 @@ function gU() {
|
|
|
40320
40322
|
}
|
|
40321
40323
|
}
|
|
40322
40324
|
),
|
|
40323
|
-
/* @__PURE__ */ $(
|
|
40325
|
+
/* @__PURE__ */ $(vU, { label: "uuid", value: s.uuid })
|
|
40324
40326
|
] }),
|
|
40325
40327
|
j && /* @__PURE__ */ Rt(df, { children: [
|
|
40326
40328
|
/* @__PURE__ */ $("div", { className: Ce.divider }),
|
|
@@ -40404,7 +40406,7 @@ function gU() {
|
|
|
40404
40406
|
/* @__PURE__ */ $("div", { className: Ce.divider }),
|
|
40405
40407
|
/* @__PURE__ */ $(v0, { title: "Properties", expanded: L, onToggle: () => O((R) => !R) }),
|
|
40406
40408
|
L && W.map((R) => R.type === "color" ? /* @__PURE__ */ $(
|
|
40407
|
-
|
|
40409
|
+
mU,
|
|
40408
40410
|
{
|
|
40409
40411
|
label: R.label,
|
|
40410
40412
|
value: R.getValue(),
|
|
@@ -40438,17 +40440,17 @@ function gU() {
|
|
|
40438
40440
|
R.label
|
|
40439
40441
|
) : null)
|
|
40440
40442
|
] }),
|
|
40441
|
-
[...c.values()].map((R) => /* @__PURE__ */ $(
|
|
40443
|
+
[...c.values()].map((R) => /* @__PURE__ */ $(gU, { config: R }, R.label))
|
|
40442
40444
|
] });
|
|
40443
40445
|
}
|
|
40444
|
-
const
|
|
40445
|
-
container:
|
|
40446
|
-
row:
|
|
40447
|
-
selected:
|
|
40448
|
-
arrow:
|
|
40449
|
-
typeIcon:
|
|
40450
|
-
name:
|
|
40451
|
-
empty:
|
|
40446
|
+
const yU = "_container_1n3qk_1", _U = "_row_1n3qk_8", SU = "_selected_1n3qk_22", wU = "_arrow_1n3qk_30", EU = "_typeIcon_1n3qk_39", CU = "_name_1n3qk_53", xU = "_empty_1n3qk_61", uh = {
|
|
40447
|
+
container: yU,
|
|
40448
|
+
row: _U,
|
|
40449
|
+
selected: SU,
|
|
40450
|
+
arrow: wU,
|
|
40451
|
+
typeIcon: EU,
|
|
40452
|
+
name: CU,
|
|
40453
|
+
empty: xU
|
|
40452
40454
|
};
|
|
40453
40455
|
function Sz(s) {
|
|
40454
40456
|
return {
|
|
@@ -40461,7 +40463,7 @@ function Sz(s) {
|
|
|
40461
40463
|
}).map((l) => Sz(l))
|
|
40462
40464
|
};
|
|
40463
40465
|
}
|
|
40464
|
-
function
|
|
40466
|
+
function TU(s) {
|
|
40465
40467
|
return s.includes("Light") ? {
|
|
40466
40468
|
paths: ["M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"],
|
|
40467
40469
|
color: "var(--accent-yellow)"
|
|
@@ -40480,7 +40482,7 @@ function xU(s) {
|
|
|
40480
40482
|
};
|
|
40481
40483
|
}
|
|
40482
40484
|
function wz({ item: s, selectedUuid: l, depth: o, onSelect: c }) {
|
|
40483
|
-
const [p, b] = Ae(!0), S = s.children.length > 0, _ = s.uuid === l, C = Ee(null), x =
|
|
40485
|
+
const [p, b] = Ae(!0), S = s.children.length > 0, _ = s.uuid === l, C = Ee(null), x = TU(s.type);
|
|
40484
40486
|
return Bn(() => {
|
|
40485
40487
|
var D;
|
|
40486
40488
|
_ && ((D = C.current) == null || D.scrollIntoView({ block: "nearest" }));
|
|
@@ -40521,7 +40523,7 @@ function wz({ item: s, selectedUuid: l, depth: o, onSelect: c }) {
|
|
|
40521
40523
|
))
|
|
40522
40524
|
] });
|
|
40523
40525
|
}
|
|
40524
|
-
function
|
|
40526
|
+
function DU() {
|
|
40525
40527
|
const [s, l] = Ae([]), [o, c] = Ae(null), p = or(() => {
|
|
40526
40528
|
var C;
|
|
40527
40529
|
const S = (C = window.Game) == null ? void 0 : C.scene;
|
|
@@ -40578,15 +40580,15 @@ function TU() {
|
|
|
40578
40580
|
S.uuid
|
|
40579
40581
|
)) });
|
|
40580
40582
|
}
|
|
40581
|
-
const
|
|
40582
|
-
statusBar:
|
|
40583
|
-
section:
|
|
40584
|
-
stat:
|
|
40585
|
-
statLabel:
|
|
40586
|
-
branch:
|
|
40587
|
-
engineName:
|
|
40588
|
-
};
|
|
40589
|
-
function
|
|
40583
|
+
const zU = "_statusBar_1ffi6_1", MU = "_section_1ffi6_13", AU = "_stat_1ffi6_1", RU = "_statLabel_1ffi6_25", OU = "_branch_1ffi6_30", UU = "_engineName_1ffi6_35", Wa = {
|
|
40584
|
+
statusBar: zU,
|
|
40585
|
+
section: MU,
|
|
40586
|
+
stat: AU,
|
|
40587
|
+
statLabel: RU,
|
|
40588
|
+
branch: OU,
|
|
40589
|
+
engineName: UU
|
|
40590
|
+
}, NU = "0.0.7";
|
|
40591
|
+
function LU(s = 500) {
|
|
40590
40592
|
const [l, o] = Ae({
|
|
40591
40593
|
fps: 0,
|
|
40592
40594
|
triangles: 0,
|
|
@@ -40617,8 +40619,8 @@ function UU(s = 500) {
|
|
|
40617
40619
|
return () => clearInterval(c);
|
|
40618
40620
|
}, [s]), l;
|
|
40619
40621
|
}
|
|
40620
|
-
function
|
|
40621
|
-
const s =
|
|
40622
|
+
function HU() {
|
|
40623
|
+
const s = LU();
|
|
40622
40624
|
return /* @__PURE__ */ Rt("div", { className: Wa.statusBar, children: [
|
|
40623
40625
|
/* @__PURE__ */ Rt("div", { className: Wa.section, children: [
|
|
40624
40626
|
/* @__PURE__ */ $("span", { className: Wa.branch, children: "main" }),
|
|
@@ -40648,43 +40650,48 @@ function NU() {
|
|
|
40648
40650
|
/* @__PURE__ */ $("span", { className: Wa.statLabel, children: "Textures" }),
|
|
40649
40651
|
s.textures
|
|
40650
40652
|
] }),
|
|
40651
|
-
/* @__PURE__ */
|
|
40653
|
+
/* @__PURE__ */ Rt("span", { className: Wa.engineName, children: [
|
|
40654
|
+
"Editor v",
|
|
40655
|
+
NU,
|
|
40656
|
+
" | MavonEngine v",
|
|
40657
|
+
sA
|
|
40658
|
+
] })
|
|
40652
40659
|
] })
|
|
40653
40660
|
] });
|
|
40654
40661
|
}
|
|
40655
|
-
function
|
|
40656
|
-
const { defaultLayout: s, onLayoutChanged: l } =
|
|
40662
|
+
function BU() {
|
|
40663
|
+
const { defaultLayout: s, onLayoutChanged: l } = iR({
|
|
40657
40664
|
id: "editor-layout",
|
|
40658
40665
|
storage: localStorage
|
|
40659
40666
|
});
|
|
40660
40667
|
return /* @__PURE__ */ Rt("div", { className: ji.root, children: [
|
|
40661
40668
|
/* @__PURE__ */ Rt("div", { className: ji.main, children: [
|
|
40662
|
-
/* @__PURE__ */ $(
|
|
40669
|
+
/* @__PURE__ */ $(hR, {}),
|
|
40663
40670
|
/* @__PURE__ */ Rt(Zw, { defaultLayout: s, onLayoutChange: l, orientation: "horizontal", className: ji.editor, children: [
|
|
40664
40671
|
/* @__PURE__ */ $(Jm, { id: "left", collapsible: !0, minSize: 140, defaultSize: 14, "data-separator": "active", className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
|
|
40665
40672
|
/* @__PURE__ */ $(Uw, { title: "Explorer" }),
|
|
40666
|
-
/* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(
|
|
40673
|
+
/* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(DU, {}) })
|
|
40667
40674
|
] }) }),
|
|
40668
40675
|
/* @__PURE__ */ $(Jm, { id: "middle", children: /* @__PURE__ */ $("div", { className: ji.panelContent, children: /* @__PURE__ */ Rt(Zw, { orientation: "vertical", className: ji.middleGroup, children: [
|
|
40669
|
-
/* @__PURE__ */ $(
|
|
40676
|
+
/* @__PURE__ */ $(c3, {}),
|
|
40670
40677
|
/* @__PURE__ */ $(Jm, { id: "horizontal", className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
|
|
40671
40678
|
/* @__PURE__ */ $(Uw, { title: "Assets" }),
|
|
40672
|
-
/* @__PURE__ */ $(
|
|
40679
|
+
/* @__PURE__ */ $(u3, {})
|
|
40673
40680
|
] }) })
|
|
40674
40681
|
] }) }) }),
|
|
40675
40682
|
/* @__PURE__ */ $(Jm, { collapsible: !0, id: "right", minSize: 180, defaultSize: 19, className: ji.panel, children: /* @__PURE__ */ Rt("div", { className: ji.panelContent, children: [
|
|
40676
40683
|
/* @__PURE__ */ $(Uw, { title: "Properties" }),
|
|
40677
|
-
/* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(
|
|
40684
|
+
/* @__PURE__ */ $("div", { className: ji.panelBody, children: /* @__PURE__ */ $(bU, {}) })
|
|
40678
40685
|
] }) })
|
|
40679
40686
|
] })
|
|
40680
40687
|
] }),
|
|
40681
|
-
/* @__PURE__ */ $(
|
|
40688
|
+
/* @__PURE__ */ $(HU, {})
|
|
40682
40689
|
] });
|
|
40683
40690
|
}
|
|
40684
|
-
function
|
|
40685
|
-
const l =
|
|
40686
|
-
return l.render(Xw(
|
|
40691
|
+
function lN(s) {
|
|
40692
|
+
const l = MA.createRoot(s);
|
|
40693
|
+
return l.render(Xw(BU)), l;
|
|
40687
40694
|
}
|
|
40688
40695
|
export {
|
|
40689
|
-
|
|
40696
|
+
lN as mountEditorUI
|
|
40690
40697
|
};
|