babylonjs-gui 9.37.0 → 9.37.2

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.
@@ -264,7 +264,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
264
264
  return g;
265
265
  }());
266
266
  g.DefaultRoundingPrecision = 100;
267
- var b = (function () { var e; var a, n, o, l, h, c, d, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, D, L, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = []; return e = /** @class */ (function () {
267
+ var b = (function () { var e; var a, n, o, l, h, c, d, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, L, D, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = []; return e = /** @class */ (function () {
268
268
  function e(i) {
269
269
  this.name = (s(this, se), i), this._alpha = 1, this._alphaSet = !1, this._zIndex = 0, this._currentMeasure = u.Empty(), this._tempPaddingMeasure = u.Empty(), this._fontFamily = "", this._fontStyle = "", this._fontWeight = "", this._fontSize = new r(18, r.UNITMODE_PIXEL, !1), this._width = new r(1, r.UNITMODE_PERCENTAGE, !1), this._height = new r(1, r.UNITMODE_PERCENTAGE, !1), this._color = "", this._style = null, this._horizontalAlignment = e.HORIZONTAL_ALIGNMENT_CENTER, this._verticalAlignment = e.VERTICAL_ALIGNMENT_CENTER, this._isDirty = !0, this._wasDirty = !1, this._tempParentMeasure = u.Empty(), this._prevCurrentMeasureTransformedIntoGlobalSpace = u.Empty(), this._cachedParentMeasure = u.Empty(), this._descendantsOnlyPadding = !1, this._paddingLeft = new r(0), this._paddingRight = new r(0), this._paddingTop = new r(0), this._paddingBottom = new r(0), this._left = new r(0), this._top = new r(0), this._scaleX = 1, this._scaleY = 1, this._rotation = 0, this._transformCenterX = .5, this._transformCenterY = .5, this._transformMatrix = m.Identity(), this._invertTransformMatrix = m.Identity(), this._transformedPosition = t.Vector2.Zero(), this._isMatrixDirty = !0, this._isVisible = !0, this._isHighlighted = !1, this._highlightColor = "#4affff", this._highlightLineWidth = 2, this._fontSet = !1, this._dummyVector2 = t.Vector2.Zero(), this._downCount = 0, this._enterCount = -1, this._doNotRender = !1, this._downPointerIds = {}, this._evaluatedMeasure = new u(0, 0, 0, 0), this._evaluatedParentMeasure = new u(0, 0, 0, 0), this._isEnabled = !0, this._disabledColor = "#9a9a9a", this._disabledColorItem = "#6a6a6a", this._isReadOnly = !1, this._gradient = null, this._rebuildLayout = !1, this.onEnabledStateChangedObservable = new t.Observable, this._customData = {}, this._isClipped = !1, this._automaticSize = !1, this.metadata = s(this, ae, null), this.isHitTestVisible = (s(this, ne), s(this, oe, !0)), this.isPointerBlocker = (s(this, re), s(this, le, !1)), this.isFocusInvisible = (s(this, _e), s(this, he, !1)), this._clipChildren = (s(this, ce), !0), this._clipContent = !0, this.useBitmapCache = s(this, de, !1), this._cacheData = s(this, ue), this._shadowOffsetX = 0, this._shadowOffsetY = 0, this._shadowBlur = 0, this._previousShadowBlur = 0, this._shadowColor = "black", this.hoverCursor = s(this, fe, ""), this._linkOffsetX = (s(this, me), new r(0)), this._linkOffsetY = new r(0), this._accessibilityTag = null, this.onAccessibilityTagChangedObservable = new t.Observable, this.onWheelObservable = new t.Observable, this.onPointerMoveObservable = new t.Observable, this.onPointerOutObservable = new t.Observable, this.onPointerDownObservable = new t.Observable, this.onPointerUpObservable = new t.Observable, this.onPointerClickObservable = new t.Observable, this.onEnterPressedObservable = new t.Observable, this.onPointerEnterObservable = new t.Observable, this.onDirtyObservable = new t.Observable, this.onBeforeDrawObservable = new t.Observable, this.onAfterDrawObservable = new t.Observable, this.onDisposeObservable = new t.Observable, this.onIsVisibleChangedObservable = new t.Observable, this.isSerializable = s(this, ge, !0), this._fixedRatio = (s(this, be), 0), this._fixedRatioMasterIsWidth = !0, this.overlapGroup = s(this, ve, void 0), this.overlapDeltaMultiplier = (s(this, pe), s(this, xe, void 0)), this.animations = (s(this, Ie), null), this._focusedColor = null, this.tabIndex = -1, this._isFocused = !1, this._unfocusedColor = null, this.onFocusObservable = new t.Observable, this.onBlurObservable = new t.Observable, this.onKeyboardEventProcessedObservable = new t.Observable, this._flexGrow = 0, this._flexShrink = 1, this._tmpMeasureA = new u(0, 0, 0, 0);
270
270
  }
@@ -968,7 +968,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
968
968
  e.drawEllipse = function (e, t, i, s, a, n) { n.translate(e, t), n.scale(i, s), n.beginPath(), n.arc(0, 0, 1, 0, 2 * Math.PI * a, a < 0), a >= 1 && n.closePath(), n.scale(1 / i, 1 / s), n.translate(-e, -t); };
969
969
  e.prototype.isReady = function () { return !0; };
970
970
  return e;
971
- }()), (function () { var s = "function" == typeof Symbol && Symbol.metadata ? Object.create(null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], D = [t.serialize()], L = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], i(e, null, h, { kind: "getter", name: "clipChildren", static: !1, private: !1, access: { has: function (e) { return "clipChildren" in e; }, get: function (e) { return e.clipChildren; } }, metadata: s }, null, se), i(e, null, c, { kind: "getter", name: "clipContent", static: !1, private: !1, access: { has: function (e) { return "clipContent" in e; }, get: function (e) { return e.clipContent; } }, metadata: s }, null, se), i(e, null, g, { kind: "getter", name: "shadowOffsetX", static: !1, private: !1, access: { has: function (e) { return "shadowOffsetX" in e; }, get: function (e) { return e.shadowOffsetX; } }, metadata: s }, null, se), i(e, null, b, { kind: "getter", name: "shadowOffsetY", static: !1, private: !1, access: { has: function (e) { return "shadowOffsetY" in e; }, get: function (e) { return e.shadowOffsetY; } }, metadata: s }, null, se), i(e, null, v, { kind: "getter", name: "shadowBlur", static: !1, private: !1, access: { has: function (e) { return "shadowBlur" in e; }, get: function (e) { return e.shadowBlur; } }, metadata: s }, null, se), i(e, null, p, { kind: "getter", name: "shadowColor", static: !1, private: !1, access: { has: function (e) { return "shadowColor" in e; }, get: function (e) { return e.shadowColor; } }, metadata: s }, null, se), i(e, null, I, { kind: "getter", name: "fontOffset", static: !1, private: !1, access: { has: function (e) { return "fontOffset" in e; }, get: function (e) { return e.fontOffset; } }, metadata: s }, null, se), i(e, null, S, { kind: "getter", name: "alpha", static: !1, private: !1, access: { has: function (e) { return "alpha" in e; }, get: function (e) { return e.alpha; } }, metadata: s }, null, se), i(e, null, P, { kind: "getter", name: "scaleX", static: !1, private: !1, access: { has: function (e) { return "scaleX" in e; }, get: function (e) { return e.scaleX; } }, metadata: s }, null, se), i(e, null, B, { kind: "getter", name: "scaleY", static: !1, private: !1, access: { has: function (e) { return "scaleY" in e; }, get: function (e) { return e.scaleY; } }, metadata: s }, null, se), i(e, null, C, { kind: "getter", name: "rotation", static: !1, private: !1, access: { has: function (e) { return "rotation" in e; }, get: function (e) { return e.rotation; } }, metadata: s }, null, se), i(e, null, T, { kind: "getter", name: "transformCenterY", static: !1, private: !1, access: { has: function (e) { return "transformCenterY" in e; }, get: function (e) { return e.transformCenterY; } }, metadata: s }, null, se), i(e, null, R, { kind: "getter", name: "transformCenterX", static: !1, private: !1, access: { has: function (e) { return "transformCenterX" in e; }, get: function (e) { return e.transformCenterX; } }, metadata: s }, null, se), i(e, null, w, { kind: "getter", name: "horizontalAlignment", static: !1, private: !1, access: { has: function (e) { return "horizontalAlignment" in e; }, get: function (e) { return e.horizontalAlignment; } }, metadata: s }, null, se), i(e, null, k, { kind: "getter", name: "verticalAlignment", static: !1, private: !1, access: { has: function (e) { return "verticalAlignment" in e; }, get: function (e) { return e.verticalAlignment; } }, metadata: s }, null, se), i(e, null, O, { kind: "getter", name: "fixedRatio", static: !1, private: !1, access: { has: function (e) { return "fixedRatio" in e; }, get: function (e) { return e.fixedRatio; } }, metadata: s }, null, se), i(e, null, M, { kind: "getter", name: "fixedRatioMasterIsWidth", static: !1, private: !1, access: { has: function (e) { return "fixedRatioMasterIsWidth" in e; }, get: function (e) { return e.fixedRatioMasterIsWidth; } }, metadata: s }, null, se), i(e, null, F, { kind: "getter", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; } }, metadata: s }, null, se), i(e, null, E, { kind: "getter", name: "height", static: !1, private: !1, access: { has: function (e) { return "height" in e; }, get: function (e) { return e.height; } }, metadata: s }, null, se), i(e, null, D, { kind: "getter", name: "style", static: !1, private: !1, access: { has: function (e) { return "style" in e; }, get: function (e) { return e.style; } }, metadata: s }, null, se), i(e, null, L, { kind: "getter", name: "color", static: !1, private: !1, access: { has: function (e) { return "color" in e; }, get: function (e) { return e.color; } }, metadata: s }, null, se), i(e, null, z, { kind: "getter", name: "gradient", static: !1, private: !1, access: { has: function (e) { return "gradient" in e; }, get: function (e) { return e.gradient; } }, metadata: s }, null, se), i(e, null, N, { kind: "getter", name: "zIndex", static: !1, private: !1, access: { has: function (e) { return "zIndex" in e; }, get: function (e) { return e.zIndex; } }, metadata: s }, null, se), i(e, null, A, { kind: "getter", name: "notRenderable", static: !1, private: !1, access: { has: function (e) { return "notRenderable" in e; }, get: function (e) { return e.notRenderable; } }, metadata: s }, null, se), i(e, null, V, { kind: "getter", name: "isVisible", static: !1, private: !1, access: { has: function (e) { return "isVisible" in e; }, get: function (e) { return e.isVisible; } }, metadata: s }, null, se), i(e, null, Q, { kind: "getter", name: "descendantsOnlyPadding", static: !1, private: !1, access: { has: function (e) { return "descendantsOnlyPadding" in e; }, get: function (e) { return e.descendantsOnlyPadding; } }, metadata: s }, null, se), i(e, null, W, { kind: "getter", name: "paddingLeft", static: !1, private: !1, access: { has: function (e) { return "paddingLeft" in e; }, get: function (e) { return e.paddingLeft; } }, metadata: s }, null, se), i(e, null, G, { kind: "getter", name: "paddingRight", static: !1, private: !1, access: { has: function (e) { return "paddingRight" in e; }, get: function (e) { return e.paddingRight; } }, metadata: s }, null, se), i(e, null, H, { kind: "getter", name: "paddingTop", static: !1, private: !1, access: { has: function (e) { return "paddingTop" in e; }, get: function (e) { return e.paddingTop; } }, metadata: s }, null, se), i(e, null, U, { kind: "getter", name: "paddingBottom", static: !1, private: !1, access: { has: function (e) { return "paddingBottom" in e; }, get: function (e) { return e.paddingBottom; } }, metadata: s }, null, se), i(e, null, Y, { kind: "getter", name: "left", static: !1, private: !1, access: { has: function (e) { return "left" in e; }, get: function (e) { return e.left; } }, metadata: s }, null, se), i(e, null, X, { kind: "getter", name: "top", static: !1, private: !1, access: { has: function (e) { return "top" in e; }, get: function (e) { return e.top; } }, metadata: s }, null, se), i(e, null, j, { kind: "getter", name: "linkOffsetX", static: !1, private: !1, access: { has: function (e) { return "linkOffsetX" in e; }, get: function (e) { return e.linkOffsetX; } }, metadata: s }, null, se), i(e, null, K, { kind: "getter", name: "linkOffsetY", static: !1, private: !1, access: { has: function (e) { return "linkOffsetY" in e; }, get: function (e) { return e.linkOffsetY; } }, metadata: s }, null, se), i(e, null, Z, { kind: "getter", name: "isEnabled", static: !1, private: !1, access: { has: function (e) { return "isEnabled" in e; }, get: function (e) { return e.isEnabled; } }, metadata: s }, null, se), i(e, null, q, { kind: "getter", name: "disabledColor", static: !1, private: !1, access: { has: function (e) { return "disabledColor" in e; }, get: function (e) { return e.disabledColor; } }, metadata: s }, null, se), i(e, null, $, { kind: "getter", name: "disabledColorItem", static: !1, private: !1, access: { has: function (e) { return "disabledColorItem" in e; }, get: function (e) { return e.disabledColorItem; } }, metadata: s }, null, se), i(e, null, te, { kind: "getter", name: "flexGrow", static: !1, private: !1, access: { has: function (e) { return "flexGrow" in e; }, get: function (e) { return e.flexGrow; } }, metadata: s }, null, se), i(e, null, ie, { kind: "getter", name: "flexShrink", static: !1, private: !1, access: { has: function (e) { return "flexShrink" in e; }, get: function (e) { return e.flexShrink; } }, metadata: s }, null, se), i(null, null, a, { kind: "field", name: "metadata", static: !1, private: !1, access: { has: function (e) { return "metadata" in e; }, get: function (e) { return e.metadata; }, set: function (e, t) { e.metadata = t; } }, metadata: s }, ae, ne), i(null, null, n, { kind: "field", name: "isHitTestVisible", static: !1, private: !1, access: { has: function (e) { return "isHitTestVisible" in e; }, get: function (e) { return e.isHitTestVisible; }, set: function (e, t) { e.isHitTestVisible = t; } }, metadata: s }, oe, re), i(null, null, o, { kind: "field", name: "isPointerBlocker", static: !1, private: !1, access: { has: function (e) { return "isPointerBlocker" in e; }, get: function (e) { return e.isPointerBlocker; }, set: function (e, t) { e.isPointerBlocker = t; } }, metadata: s }, le, _e), i(null, null, l, { kind: "field", name: "isFocusInvisible", static: !1, private: !1, access: { has: function (e) { return "isFocusInvisible" in e; }, get: function (e) { return e.isFocusInvisible; }, set: function (e, t) { e.isFocusInvisible = t; } }, metadata: s }, he, ce), i(null, null, d, { kind: "field", name: "useBitmapCache", static: !1, private: !1, access: { has: function (e) { return "useBitmapCache" in e; }, get: function (e) { return e.useBitmapCache; }, set: function (e, t) { e.useBitmapCache = t; } }, metadata: s }, de, ue), i(null, null, x, { kind: "field", name: "hoverCursor", static: !1, private: !1, access: { has: function (e) { return "hoverCursor" in e; }, get: function (e) { return e.hoverCursor; }, set: function (e, t) { e.hoverCursor = t; } }, metadata: s }, fe, me), i(null, null, y, { kind: "field", name: "isSerializable", static: !1, private: !1, access: { has: function (e) { return "isSerializable" in e; }, get: function (e) { return e.isSerializable; }, set: function (e, t) { e.isSerializable = t; } }, metadata: s }, ge, be), i(null, null, J, { kind: "field", name: "overlapGroup", static: !1, private: !1, access: { has: function (e) { return "overlapGroup" in e; }, get: function (e) { return e.overlapGroup; }, set: function (e, t) { e.overlapGroup = t; } }, metadata: s }, ve, pe), i(null, null, ee, { kind: "field", name: "overlapDeltaMultiplier", static: !1, private: !1, access: { has: function (e) { return "overlapDeltaMultiplier" in e; }, get: function (e) { return e.overlapDeltaMultiplier; }, set: function (e, t) { e.overlapDeltaMultiplier = t; } }, metadata: s }, xe, Ie), s && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }); })(), e.AllowAlphaInheritance = !1, e._DefaultFontSize = new r(18), e._ClipMeasure = new u(0, 0, 0, 0), e._HORIZONTAL_ALIGNMENT_LEFT = 0, e._HORIZONTAL_ALIGNMENT_RIGHT = 1, e._HORIZONTAL_ALIGNMENT_CENTER = 2, e._VERTICAL_ALIGNMENT_TOP = 0, e._VERTICAL_ALIGNMENT_BOTTOM = 1, e._VERTICAL_ALIGNMENT_CENTER = 2, e._FontHeightSizes = {}, e.AddHeader = function () { }, e; })(), v = !1;
971
+ }()), (function () { var s = "function" == typeof Symbol && Symbol.metadata ? Object.create(null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], L = [t.serialize()], D = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], i(e, null, h, { kind: "getter", name: "clipChildren", static: !1, private: !1, access: { has: function (e) { return "clipChildren" in e; }, get: function (e) { return e.clipChildren; } }, metadata: s }, null, se), i(e, null, c, { kind: "getter", name: "clipContent", static: !1, private: !1, access: { has: function (e) { return "clipContent" in e; }, get: function (e) { return e.clipContent; } }, metadata: s }, null, se), i(e, null, g, { kind: "getter", name: "shadowOffsetX", static: !1, private: !1, access: { has: function (e) { return "shadowOffsetX" in e; }, get: function (e) { return e.shadowOffsetX; } }, metadata: s }, null, se), i(e, null, b, { kind: "getter", name: "shadowOffsetY", static: !1, private: !1, access: { has: function (e) { return "shadowOffsetY" in e; }, get: function (e) { return e.shadowOffsetY; } }, metadata: s }, null, se), i(e, null, v, { kind: "getter", name: "shadowBlur", static: !1, private: !1, access: { has: function (e) { return "shadowBlur" in e; }, get: function (e) { return e.shadowBlur; } }, metadata: s }, null, se), i(e, null, p, { kind: "getter", name: "shadowColor", static: !1, private: !1, access: { has: function (e) { return "shadowColor" in e; }, get: function (e) { return e.shadowColor; } }, metadata: s }, null, se), i(e, null, I, { kind: "getter", name: "fontOffset", static: !1, private: !1, access: { has: function (e) { return "fontOffset" in e; }, get: function (e) { return e.fontOffset; } }, metadata: s }, null, se), i(e, null, S, { kind: "getter", name: "alpha", static: !1, private: !1, access: { has: function (e) { return "alpha" in e; }, get: function (e) { return e.alpha; } }, metadata: s }, null, se), i(e, null, P, { kind: "getter", name: "scaleX", static: !1, private: !1, access: { has: function (e) { return "scaleX" in e; }, get: function (e) { return e.scaleX; } }, metadata: s }, null, se), i(e, null, B, { kind: "getter", name: "scaleY", static: !1, private: !1, access: { has: function (e) { return "scaleY" in e; }, get: function (e) { return e.scaleY; } }, metadata: s }, null, se), i(e, null, C, { kind: "getter", name: "rotation", static: !1, private: !1, access: { has: function (e) { return "rotation" in e; }, get: function (e) { return e.rotation; } }, metadata: s }, null, se), i(e, null, T, { kind: "getter", name: "transformCenterY", static: !1, private: !1, access: { has: function (e) { return "transformCenterY" in e; }, get: function (e) { return e.transformCenterY; } }, metadata: s }, null, se), i(e, null, R, { kind: "getter", name: "transformCenterX", static: !1, private: !1, access: { has: function (e) { return "transformCenterX" in e; }, get: function (e) { return e.transformCenterX; } }, metadata: s }, null, se), i(e, null, w, { kind: "getter", name: "horizontalAlignment", static: !1, private: !1, access: { has: function (e) { return "horizontalAlignment" in e; }, get: function (e) { return e.horizontalAlignment; } }, metadata: s }, null, se), i(e, null, k, { kind: "getter", name: "verticalAlignment", static: !1, private: !1, access: { has: function (e) { return "verticalAlignment" in e; }, get: function (e) { return e.verticalAlignment; } }, metadata: s }, null, se), i(e, null, O, { kind: "getter", name: "fixedRatio", static: !1, private: !1, access: { has: function (e) { return "fixedRatio" in e; }, get: function (e) { return e.fixedRatio; } }, metadata: s }, null, se), i(e, null, M, { kind: "getter", name: "fixedRatioMasterIsWidth", static: !1, private: !1, access: { has: function (e) { return "fixedRatioMasterIsWidth" in e; }, get: function (e) { return e.fixedRatioMasterIsWidth; } }, metadata: s }, null, se), i(e, null, F, { kind: "getter", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; } }, metadata: s }, null, se), i(e, null, E, { kind: "getter", name: "height", static: !1, private: !1, access: { has: function (e) { return "height" in e; }, get: function (e) { return e.height; } }, metadata: s }, null, se), i(e, null, L, { kind: "getter", name: "style", static: !1, private: !1, access: { has: function (e) { return "style" in e; }, get: function (e) { return e.style; } }, metadata: s }, null, se), i(e, null, D, { kind: "getter", name: "color", static: !1, private: !1, access: { has: function (e) { return "color" in e; }, get: function (e) { return e.color; } }, metadata: s }, null, se), i(e, null, z, { kind: "getter", name: "gradient", static: !1, private: !1, access: { has: function (e) { return "gradient" in e; }, get: function (e) { return e.gradient; } }, metadata: s }, null, se), i(e, null, N, { kind: "getter", name: "zIndex", static: !1, private: !1, access: { has: function (e) { return "zIndex" in e; }, get: function (e) { return e.zIndex; } }, metadata: s }, null, se), i(e, null, A, { kind: "getter", name: "notRenderable", static: !1, private: !1, access: { has: function (e) { return "notRenderable" in e; }, get: function (e) { return e.notRenderable; } }, metadata: s }, null, se), i(e, null, V, { kind: "getter", name: "isVisible", static: !1, private: !1, access: { has: function (e) { return "isVisible" in e; }, get: function (e) { return e.isVisible; } }, metadata: s }, null, se), i(e, null, Q, { kind: "getter", name: "descendantsOnlyPadding", static: !1, private: !1, access: { has: function (e) { return "descendantsOnlyPadding" in e; }, get: function (e) { return e.descendantsOnlyPadding; } }, metadata: s }, null, se), i(e, null, W, { kind: "getter", name: "paddingLeft", static: !1, private: !1, access: { has: function (e) { return "paddingLeft" in e; }, get: function (e) { return e.paddingLeft; } }, metadata: s }, null, se), i(e, null, G, { kind: "getter", name: "paddingRight", static: !1, private: !1, access: { has: function (e) { return "paddingRight" in e; }, get: function (e) { return e.paddingRight; } }, metadata: s }, null, se), i(e, null, H, { kind: "getter", name: "paddingTop", static: !1, private: !1, access: { has: function (e) { return "paddingTop" in e; }, get: function (e) { return e.paddingTop; } }, metadata: s }, null, se), i(e, null, U, { kind: "getter", name: "paddingBottom", static: !1, private: !1, access: { has: function (e) { return "paddingBottom" in e; }, get: function (e) { return e.paddingBottom; } }, metadata: s }, null, se), i(e, null, Y, { kind: "getter", name: "left", static: !1, private: !1, access: { has: function (e) { return "left" in e; }, get: function (e) { return e.left; } }, metadata: s }, null, se), i(e, null, X, { kind: "getter", name: "top", static: !1, private: !1, access: { has: function (e) { return "top" in e; }, get: function (e) { return e.top; } }, metadata: s }, null, se), i(e, null, j, { kind: "getter", name: "linkOffsetX", static: !1, private: !1, access: { has: function (e) { return "linkOffsetX" in e; }, get: function (e) { return e.linkOffsetX; } }, metadata: s }, null, se), i(e, null, K, { kind: "getter", name: "linkOffsetY", static: !1, private: !1, access: { has: function (e) { return "linkOffsetY" in e; }, get: function (e) { return e.linkOffsetY; } }, metadata: s }, null, se), i(e, null, Z, { kind: "getter", name: "isEnabled", static: !1, private: !1, access: { has: function (e) { return "isEnabled" in e; }, get: function (e) { return e.isEnabled; } }, metadata: s }, null, se), i(e, null, q, { kind: "getter", name: "disabledColor", static: !1, private: !1, access: { has: function (e) { return "disabledColor" in e; }, get: function (e) { return e.disabledColor; } }, metadata: s }, null, se), i(e, null, $, { kind: "getter", name: "disabledColorItem", static: !1, private: !1, access: { has: function (e) { return "disabledColorItem" in e; }, get: function (e) { return e.disabledColorItem; } }, metadata: s }, null, se), i(e, null, te, { kind: "getter", name: "flexGrow", static: !1, private: !1, access: { has: function (e) { return "flexGrow" in e; }, get: function (e) { return e.flexGrow; } }, metadata: s }, null, se), i(e, null, ie, { kind: "getter", name: "flexShrink", static: !1, private: !1, access: { has: function (e) { return "flexShrink" in e; }, get: function (e) { return e.flexShrink; } }, metadata: s }, null, se), i(null, null, a, { kind: "field", name: "metadata", static: !1, private: !1, access: { has: function (e) { return "metadata" in e; }, get: function (e) { return e.metadata; }, set: function (e, t) { e.metadata = t; } }, metadata: s }, ae, ne), i(null, null, n, { kind: "field", name: "isHitTestVisible", static: !1, private: !1, access: { has: function (e) { return "isHitTestVisible" in e; }, get: function (e) { return e.isHitTestVisible; }, set: function (e, t) { e.isHitTestVisible = t; } }, metadata: s }, oe, re), i(null, null, o, { kind: "field", name: "isPointerBlocker", static: !1, private: !1, access: { has: function (e) { return "isPointerBlocker" in e; }, get: function (e) { return e.isPointerBlocker; }, set: function (e, t) { e.isPointerBlocker = t; } }, metadata: s }, le, _e), i(null, null, l, { kind: "field", name: "isFocusInvisible", static: !1, private: !1, access: { has: function (e) { return "isFocusInvisible" in e; }, get: function (e) { return e.isFocusInvisible; }, set: function (e, t) { e.isFocusInvisible = t; } }, metadata: s }, he, ce), i(null, null, d, { kind: "field", name: "useBitmapCache", static: !1, private: !1, access: { has: function (e) { return "useBitmapCache" in e; }, get: function (e) { return e.useBitmapCache; }, set: function (e, t) { e.useBitmapCache = t; } }, metadata: s }, de, ue), i(null, null, x, { kind: "field", name: "hoverCursor", static: !1, private: !1, access: { has: function (e) { return "hoverCursor" in e; }, get: function (e) { return e.hoverCursor; }, set: function (e, t) { e.hoverCursor = t; } }, metadata: s }, fe, me), i(null, null, y, { kind: "field", name: "isSerializable", static: !1, private: !1, access: { has: function (e) { return "isSerializable" in e; }, get: function (e) { return e.isSerializable; }, set: function (e, t) { e.isSerializable = t; } }, metadata: s }, ge, be), i(null, null, J, { kind: "field", name: "overlapGroup", static: !1, private: !1, access: { has: function (e) { return "overlapGroup" in e; }, get: function (e) { return e.overlapGroup; }, set: function (e, t) { e.overlapGroup = t; } }, metadata: s }, ve, pe), i(null, null, ee, { kind: "field", name: "overlapDeltaMultiplier", static: !1, private: !1, access: { has: function (e) { return "overlapDeltaMultiplier" in e; }, get: function (e) { return e.overlapDeltaMultiplier; }, set: function (e, t) { e.overlapDeltaMultiplier = t; } }, metadata: s }, xe, Ie), s && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }); })(), e.AllowAlphaInheritance = !1, e._DefaultFontSize = new r(18), e._ClipMeasure = new u(0, 0, 0, 0), e._HORIZONTAL_ALIGNMENT_LEFT = 0, e._HORIZONTAL_ALIGNMENT_RIGHT = 1, e._HORIZONTAL_ALIGNMENT_CENTER = 2, e._VERTICAL_ALIGNMENT_TOP = 0, e._VERTICAL_ALIGNMENT_BOTTOM = 1, e._VERTICAL_ALIGNMENT_CENTER = 2, e._FontHeightSizes = {}, e.AddHeader = function () { }, e; })(), v = !1;
972
972
  function p() { v || (v = !0, t.RegisterClass("BABYLON.GUI.Control", b)); }
973
973
  var x = (function () { var e; var a, n, o, r, l, h, c, d = b, f = [], g = [], v = [], p = [], x = []; return e = /** @class */ (function (_super) {
974
974
  __extends(e, _super);
@@ -1927,52 +1927,63 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
1927
1927
  s_15.parentNode && s_15.parentNode.removeChild(s_15), 0 === i.timesUsed && e.SourceImgCache.delete(t);
1928
1928
  } };
1929
1929
  e.prototype._sanitizeSVG = function (e) { if (-1 === e.indexOf("<svg"))
1930
- return e; var t = (new DOMParser).parseFromString(e, "image/svg+xml"), i = [/^on/i, /^xlink:href$/, /^href$/]; return ["script", "iframe", "foreignObject", "object", "embed", "link", "style"].forEach(function (e) { var i = t.getElementsByTagName(e); for (var e_52 = i.length - 1; e_52 >= 0; e_52--)
1931
- i[e_52].remove(); }), function e(t) { if (t.attributes) {
1930
+ return e; var t = (new DOMParser).parseFromString(e, "image/svg+xml"), i = ["script", "iframe", "foreignobject", "object", "embed", "link", "style"], s = [/^on/i, /^xlink:href$/, /^href$/], a = t.getElementsByTagName("*"); for (var e_52 = a.length - 1; e_52 >= 0; e_52--)
1931
+ -1 !== i.indexOf(a[e_52].localName.toLowerCase()) && a[e_52].remove(); return function e(t) { if (t.attributes) {
1932
1932
  var _loop_1 = function (e_53) {
1933
- var s_16 = t.attributes[e_53], a_9 = s_16.name, n_5 = s_16.value;
1934
- i.some(function (e) { return e.test(a_9); }) && t.removeAttribute(a_9), "string" == typeof n_5 && n_5.trim().toLowerCase().startsWith("javascript:") && t.removeAttribute(a_9);
1933
+ var i_14 = t.attributes[e_53], a_9 = i_14.name, n_5 = i_14.value;
1934
+ !s.some(function (e) { return e.test(a_9); }) || /href$/.test(a_9) && n_5.trim().startsWith("#") || t.removeAttribute(a_9);
1935
+ var o_7 = n_5.trim().toLowerCase(), r_4 = o_7.startsWith("data:") && !/^data:image\/(?:png|jpeg|gif|webp);base64,/.test(o_7);
1936
+ (o_7.startsWith("javascript:") || o_7.startsWith("vbscript:") || r_4) && t.removeAttribute(a_9);
1935
1937
  };
1936
1938
  for (var e_53 = t.attributes.length - 1; e_53 >= 0; e_53--) {
1937
1939
  _loop_1(e_53);
1938
1940
  }
1939
- } for (var i_14 = 0; i_14 < t.children.length; i_14++)
1940
- e(t.children[i_14]); }(t.documentElement), (new XMLSerializer).serializeToString(t); };
1941
- e.prototype._svgCheck = function (e) {
1941
+ } for (var i_15 = 0; i_15 < t.children.length; i_15++)
1942
+ e(t.children[i_15]); }(t.documentElement), (new XMLSerializer).serializeToString(t); };
1943
+ e._FindSVGFrame = function (t) { var i = document.body.getElementsByTagName("iframe"); for (var s_16 = 0; s_16 < i.length; s_16++)
1944
+ if (i[s_16].getAttribute(e._SVGSourceAttribute) === t)
1945
+ return i[s_16]; return null; };
1946
+ e.prototype._loadSanitizedSVG = function (e, i) {
1947
+ var _this = this;
1948
+ t.Tools.LoadFile(e, function (e) { if (!i.isConnected)
1949
+ return; var t = URL.createObjectURL(new Blob([_this._sanitizeSVG(e)], { type: "image/svg+xml" })); i.addEventListener("load", function () { return URL.revokeObjectURL(t); }, { once: !0 }), i.src = t; }, void 0, void 0, !1, function (i, s) { t.Tools.Warn("Unable to load SVG ".concat(e, ": ").concat(s)); });
1950
+ };
1951
+ e.prototype._svgCheck = function (t) {
1942
1952
  var _this = this;
1943
1953
  if ("undefined" == typeof window || "undefined" == typeof document || !window.SVGSVGElement)
1944
- return e;
1945
- if (window.SVGSVGElement && -1 !== e.search(/(\.svg|\.svg?[?|#].*)$/gi) && e.indexOf("#") === e.lastIndexOf("#")) {
1954
+ return t;
1955
+ var i = t.indexOf("#"), s = t.indexOf("?"), a = Math.min(-1 === s ? t.length : s, -1 === i ? t.length : i);
1956
+ if (window.SVGSVGElement && t.slice(0, a).toLowerCase().endsWith(".svg") && i === t.lastIndexOf("#")) {
1946
1957
  this._isSVG = !0;
1947
- var t_28 = (e = this._sanitizeSVG(e)).split("#")[0], i_15 = e.split("#")[1], s_17 = document.body.querySelector('object[data="' + t_28 + '"]');
1948
- if (s_17) {
1949
- var t_29 = s_17.contentDocument;
1950
- if (t_29 && t_29.documentElement) {
1951
- var a_10 = t_29.documentElement.getAttribute("viewBox"), n_6 = Number(t_29.documentElement.getAttribute("width")), o_7 = Number(t_29.documentElement.getAttribute("height"));
1952
- if (t_29.getElementById(i_15) && a_10 && n_6 && o_7)
1953
- return this._getSVGAttribs(s_17, i_15), e;
1958
+ var s_17 = -1 === i ? t : t.slice(0, i), a_10 = -1 === i ? "" : t.slice(i + 1), n_6 = e._FindSVGFrame(s_17);
1959
+ if (n_6) {
1960
+ var e_54 = n_6.contentDocument;
1961
+ if (e_54 && e_54.documentElement) {
1962
+ var i_16 = e_54.documentElement.getAttribute("viewBox"), s_18 = Number(e_54.documentElement.getAttribute("width")), o_8 = Number(e_54.documentElement.getAttribute("height"));
1963
+ if (e_54.getElementById(a_10) && i_16 && s_18 && o_8)
1964
+ return this._getSVGAttribs(n_6, a_10), t;
1954
1965
  }
1955
- s_17.addEventListener("load", function () { _this._getSVGAttribs(s_17, i_15); });
1966
+ n_6.addEventListener("load", function () { _this._getSVGAttribs(n_6, a_10); });
1956
1967
  }
1957
1968
  else {
1958
- var e_54 = document.createElement("object");
1959
- e_54.data = t_28, e_54.type = "image/svg+xml", e_54.width = "0%", e_54.height = "0%", document.body.appendChild(e_54), e_54.onload = function () { var e = document.body.querySelector('object[data="' + t_28 + '"]'); e && _this._getSVGAttribs(e, i_15); };
1969
+ var t_28 = document.createElement("iframe");
1970
+ t_28.setAttribute(e._SVGSourceAttribute, s_17), t_28.setAttribute("sandbox", "allow-same-origin"), t_28.width = "0", t_28.height = "0", t_28.style.border = "0", t_28.style.position = "absolute", document.body.appendChild(t_28), t_28.onload = function () { var t = e._FindSVGFrame(s_17); t && _this._getSVGAttribs(t, a_10); }, this._loadSanitizedSVG(s_17, t_28);
1960
1971
  }
1961
- return t_28;
1972
+ return s_17;
1962
1973
  }
1963
- return e;
1974
+ return t;
1964
1975
  };
1965
1976
  e.prototype._getSVGAttribs = function (e, t) { var i; var s = e.contentDocument; if (s && s.documentElement) {
1966
- var e_55 = s.documentElement.getAttribute("viewBox"), a_11 = Number(s.documentElement.getAttribute("width")), n_7 = Number(s.documentElement.getAttribute("height")), o_8 = s.getElementById(t);
1967
- if (e_55 && a_11 && n_7 && o_8) {
1968
- var t_30 = Number(e_55.split(" ")[2]), s_18 = Number(e_55.split(" ")[3]), r_4 = o_8.getBBox();
1977
+ var e_55 = s.documentElement.getAttribute("viewBox"), a_11 = Number(s.documentElement.getAttribute("width")), n_7 = Number(s.documentElement.getAttribute("height")), o_9 = s.getElementById(t);
1978
+ if (e_55 && a_11 && n_7 && o_9) {
1979
+ var t_29 = Number(e_55.split(" ")[2]), s_19 = Number(e_55.split(" ")[3]), r_5 = o_9.getBBox();
1969
1980
  var l_5 = 1, h_2 = 1, c_1 = 0, d_1 = 0;
1970
- var u_1 = null === (i = o_8.transform) || void 0 === i ? void 0 : i.baseVal.consolidate();
1981
+ var u_1 = null === (i = o_9.transform) || void 0 === i ? void 0 : i.baseVal.consolidate();
1971
1982
  if (u_1) {
1972
1983
  var e_56 = u_1.matrix;
1973
1984
  l_5 = e_56.a, h_2 = e_56.d, c_1 = e_56.e, d_1 = e_56.f;
1974
1985
  }
1975
- this.sourceLeft = (l_5 * r_4.x + c_1) * a_11 / t_30, this.sourceTop = (h_2 * r_4.y + d_1) * n_7 / s_18, this.sourceWidth = r_4.width * l_5 * (a_11 / t_30), this.sourceHeight = r_4.height * h_2 * (n_7 / s_18), this._svgAttributesComputationCompleted = !0, this.onSVGAttributesComputedObservable.notifyObservers(this);
1986
+ this.sourceLeft = (l_5 * r_5.x + c_1) * a_11 / t_29, this.sourceTop = (h_2 * r_5.y + d_1) * n_7 / s_19, this.sourceWidth = r_5.width * l_5 * (a_11 / t_29), this.sourceHeight = r_5.height * h_2 * (n_7 / s_19), this._svgAttributesComputationCompleted = !0, this.onSVGAttributesComputedObservable.notifyObservers(this);
1976
1987
  }
1977
1988
  } };
1978
1989
  Object.defineProperty(e.prototype, "cellWidth", {
@@ -2021,8 +2032,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2021
2032
  e.prototype._draw = function (t) { var i, s, a, n; if (t.save(), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (t.shadowColor = this.shadowColor, t.shadowBlur = this.shadowBlur, t.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, t.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio), -1 == this.cellId)
2022
2033
  i = this._sourceLeft, s = this._sourceTop, a = this._sourceWidth ? this._sourceWidth : this._imageWidth, n = this._sourceHeight ? this._sourceHeight : this._imageHeight;
2023
2034
  else {
2024
- var e_58 = this._domImage.naturalWidth / this.cellWidth, t_31 = this.cellId / e_58 | 0, o_9 = this.cellId % e_58;
2025
- i = this.cellWidth * o_9, s = this.cellHeight * t_31, a = this.cellWidth, n = this.cellHeight;
2035
+ var e_58 = this._domImage.naturalWidth / this.cellWidth, t_30 = this.cellId / e_58 | 0, o_10 = this.cellId % e_58;
2036
+ i = this.cellWidth * o_10, s = this.cellHeight * t_30, a = this.cellWidth, n = this.cellHeight;
2026
2037
  } if (this._prepareWorkingCanvasForOpaqueDetection(), this._applyStates(t), this._loaded)
2027
2038
  switch (this._stretch) {
2028
2039
  case e.STRETCH_NONE:
@@ -2030,8 +2041,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2030
2041
  this._drawImage(t, i, s, a, n, this._currentMeasure.left, this._currentMeasure.top, this._currentMeasure.width, this._currentMeasure.height);
2031
2042
  break;
2032
2043
  case e.STRETCH_UNIFORM: {
2033
- var e_59 = this._currentMeasure.width / a, o_10 = this._currentMeasure.height / n, r_5 = Math.min(e_59, o_10), l_6 = (this._currentMeasure.width - a * r_5) / 2, h_3 = (this._currentMeasure.height - n * r_5) / 2;
2034
- this._drawImage(t, i, s, a, n, this._currentMeasure.left + l_6, this._currentMeasure.top + h_3, a * r_5, n * r_5);
2044
+ var e_59 = this._currentMeasure.width / a, o_11 = this._currentMeasure.height / n, r_6 = Math.min(e_59, o_11), l_6 = (this._currentMeasure.width - a * r_6) / 2, h_3 = (this._currentMeasure.height - n * r_6) / 2;
2045
+ this._drawImage(t, i, s, a, n, this._currentMeasure.left + l_6, this._currentMeasure.top + h_3, a * r_6, n * r_6);
2035
2046
  break;
2036
2047
  }
2037
2048
  case e.STRETCH_EXTEND:
@@ -2042,7 +2053,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2042
2053
  e.prototype._renderNinePatch = function (e, t, i, s, a) { var n = this.host.idealRatio, o = this._sliceLeft, r = this._sliceTop, l = a - this._sliceBottom, h = s - this._sliceRight, c = this._sliceRight - this._sliceLeft, d = this._sliceBottom - this._sliceTop, u = Math.round(o * n), f = Math.round(r * n), m = Math.round(l * n), g = Math.round(h * n), b = Math.round(this._currentMeasure.width) - g - u + 2, v = Math.round(this._currentMeasure.height) - m - f + 2, p = Math.round(this._currentMeasure.left) + u - 1, x = Math.round(this._currentMeasure.top) + f - 1, I = Math.round(this._currentMeasure.left + this._currentMeasure.width) - g, S = Math.round(this._currentMeasure.top + this._currentMeasure.height) - m; this._drawImage(e, t, i, o, r, this._currentMeasure.left, this._currentMeasure.top, u, f), this._drawImage(e, t + this._sliceLeft, i, c, r, p + 1, this._currentMeasure.top, b - 2, f), this._drawImage(e, t + this._sliceRight, i, h, r, I, this._currentMeasure.top, g, f), this._drawImage(e, t, i + this._sliceTop, o, d, this._currentMeasure.left, x + 1, u, v - 2), this._drawImage(e, t + this._sliceLeft, i + this._sliceTop, c, d, p + 1, x + 1, b - 2, v - 2), this._drawImage(e, t + this._sliceRight, i + this._sliceTop, h, d, I, x + 1, g, v - 2), this._drawImage(e, t, i + this._sliceBottom, o, l, this._currentMeasure.left, S, u, m), this._drawImage(e, t + this.sliceLeft, i + this._sliceBottom, c, l, p + 1, S, b - 2, m), this._drawImage(e, t + this._sliceRight, i + this._sliceBottom, h, l, I, S, g, m); };
2043
2054
  e.prototype.dispose = function () { _super.prototype.dispose.call(this), this.onImageLoadedObservable.clear(), this.onSVGAttributesComputedObservable.clear(), this._removeCacheUsage(this._source); };
2044
2055
  return e;
2045
- }(S)), (function () { var s; var b = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = S[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], i(e, null, a, { kind: "getter", name: "detectPointerOnOpaqueOnly", static: !1, private: !1, access: { has: function (e) { return "detectPointerOnOpaqueOnly" in e; }, get: function (e) { return e.detectPointerOnOpaqueOnly; } }, metadata: b }, null, y), i(e, null, n, { kind: "getter", name: "sliceLeft", static: !1, private: !1, access: { has: function (e) { return "sliceLeft" in e; }, get: function (e) { return e.sliceLeft; } }, metadata: b }, null, y), i(e, null, o, { kind: "getter", name: "sliceRight", static: !1, private: !1, access: { has: function (e) { return "sliceRight" in e; }, get: function (e) { return e.sliceRight; } }, metadata: b }, null, y), i(e, null, r, { kind: "getter", name: "sliceTop", static: !1, private: !1, access: { has: function (e) { return "sliceTop" in e; }, get: function (e) { return e.sliceTop; } }, metadata: b }, null, y), i(e, null, l, { kind: "getter", name: "sliceBottom", static: !1, private: !1, access: { has: function (e) { return "sliceBottom" in e; }, get: function (e) { return e.sliceBottom; } }, metadata: b }, null, y), i(e, null, h, { kind: "getter", name: "sourceLeft", static: !1, private: !1, access: { has: function (e) { return "sourceLeft" in e; }, get: function (e) { return e.sourceLeft; } }, metadata: b }, null, y), i(e, null, c, { kind: "getter", name: "sourceTop", static: !1, private: !1, access: { has: function (e) { return "sourceTop" in e; }, get: function (e) { return e.sourceTop; } }, metadata: b }, null, y), i(e, null, d, { kind: "getter", name: "sourceWidth", static: !1, private: !1, access: { has: function (e) { return "sourceWidth" in e; }, get: function (e) { return e.sourceWidth; } }, metadata: b }, null, y), i(e, null, u, { kind: "getter", name: "sourceHeight", static: !1, private: !1, access: { has: function (e) { return "sourceHeight" in e; }, get: function (e) { return e.sourceHeight; } }, metadata: b }, null, y), i(e, null, f, { kind: "getter", name: "populateNinePatchSlicesFromImage", static: !1, private: !1, access: { has: function (e) { return "populateNinePatchSlicesFromImage" in e; }, get: function (e) { return e.populateNinePatchSlicesFromImage; } }, metadata: b }, null, y), i(e, null, m, { kind: "getter", name: "autoScale", static: !1, private: !1, access: { has: function (e) { return "autoScale" in e; }, get: function (e) { return e.autoScale; } }, metadata: b }, null, y), i(e, null, g, { kind: "getter", name: "stretch", static: !1, private: !1, access: { has: function (e) { return "stretch" in e; }, get: function (e) { return e.stretch; } }, metadata: b }, null, y), i(e, null, v, { kind: "getter", name: "source", static: !1, private: !1, access: { has: function (e) { return "source" in e; }, get: function (e) { return e.source; } }, metadata: b }, null, y), i(e, null, p, { kind: "getter", name: "cellWidth", static: !1, private: !1, access: { has: function (e) { return "cellWidth" in e; }, get: function (e) { return e.cellWidth; } }, metadata: b }, null, y), i(e, null, x, { kind: "getter", name: "cellHeight", static: !1, private: !1, access: { has: function (e) { return "cellHeight" in e; }, get: function (e) { return e.cellHeight; } }, metadata: b }, null, y), i(e, null, I, { kind: "getter", name: "cellId", static: !1, private: !1, access: { has: function (e) { return "cellId" in e; }, get: function (e) { return e.cellId; } }, metadata: b }, null, y), b && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b }); })(), e.SourceImgCache = new Map, e.STRETCH_NONE = 0, e.STRETCH_FILL = 1, e.STRETCH_UNIFORM = 2, e.STRETCH_EXTEND = 3, e.STRETCH_NINE_PATCH = 4, e; })(), O = !1;
2056
+ }(S)), (function () { var s; var b = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = S[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], i(e, null, a, { kind: "getter", name: "detectPointerOnOpaqueOnly", static: !1, private: !1, access: { has: function (e) { return "detectPointerOnOpaqueOnly" in e; }, get: function (e) { return e.detectPointerOnOpaqueOnly; } }, metadata: b }, null, y), i(e, null, n, { kind: "getter", name: "sliceLeft", static: !1, private: !1, access: { has: function (e) { return "sliceLeft" in e; }, get: function (e) { return e.sliceLeft; } }, metadata: b }, null, y), i(e, null, o, { kind: "getter", name: "sliceRight", static: !1, private: !1, access: { has: function (e) { return "sliceRight" in e; }, get: function (e) { return e.sliceRight; } }, metadata: b }, null, y), i(e, null, r, { kind: "getter", name: "sliceTop", static: !1, private: !1, access: { has: function (e) { return "sliceTop" in e; }, get: function (e) { return e.sliceTop; } }, metadata: b }, null, y), i(e, null, l, { kind: "getter", name: "sliceBottom", static: !1, private: !1, access: { has: function (e) { return "sliceBottom" in e; }, get: function (e) { return e.sliceBottom; } }, metadata: b }, null, y), i(e, null, h, { kind: "getter", name: "sourceLeft", static: !1, private: !1, access: { has: function (e) { return "sourceLeft" in e; }, get: function (e) { return e.sourceLeft; } }, metadata: b }, null, y), i(e, null, c, { kind: "getter", name: "sourceTop", static: !1, private: !1, access: { has: function (e) { return "sourceTop" in e; }, get: function (e) { return e.sourceTop; } }, metadata: b }, null, y), i(e, null, d, { kind: "getter", name: "sourceWidth", static: !1, private: !1, access: { has: function (e) { return "sourceWidth" in e; }, get: function (e) { return e.sourceWidth; } }, metadata: b }, null, y), i(e, null, u, { kind: "getter", name: "sourceHeight", static: !1, private: !1, access: { has: function (e) { return "sourceHeight" in e; }, get: function (e) { return e.sourceHeight; } }, metadata: b }, null, y), i(e, null, f, { kind: "getter", name: "populateNinePatchSlicesFromImage", static: !1, private: !1, access: { has: function (e) { return "populateNinePatchSlicesFromImage" in e; }, get: function (e) { return e.populateNinePatchSlicesFromImage; } }, metadata: b }, null, y), i(e, null, m, { kind: "getter", name: "autoScale", static: !1, private: !1, access: { has: function (e) { return "autoScale" in e; }, get: function (e) { return e.autoScale; } }, metadata: b }, null, y), i(e, null, g, { kind: "getter", name: "stretch", static: !1, private: !1, access: { has: function (e) { return "stretch" in e; }, get: function (e) { return e.stretch; } }, metadata: b }, null, y), i(e, null, v, { kind: "getter", name: "source", static: !1, private: !1, access: { has: function (e) { return "source" in e; }, get: function (e) { return e.source; } }, metadata: b }, null, y), i(e, null, p, { kind: "getter", name: "cellWidth", static: !1, private: !1, access: { has: function (e) { return "cellWidth" in e; }, get: function (e) { return e.cellWidth; } }, metadata: b }, null, y), i(e, null, x, { kind: "getter", name: "cellHeight", static: !1, private: !1, access: { has: function (e) { return "cellHeight" in e; }, get: function (e) { return e.cellHeight; } }, metadata: b }, null, y), i(e, null, I, { kind: "getter", name: "cellId", static: !1, private: !1, access: { has: function (e) { return "cellId" in e; }, get: function (e) { return e.cellId; } }, metadata: b }, null, y), b && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b }); })(), e.SourceImgCache = new Map, e._SVGSourceAttribute = "data-babylon-svg-source", e.STRETCH_NONE = 0, e.STRETCH_FILL = 1, e.STRETCH_UNIFORM = 2, e.STRETCH_EXTEND = 3, e.STRETCH_NINE_PATCH = 4, e; })(), O = !1;
2046
2057
  function M() { O || (O = !0, t.RegisterClass("BABYLON.GUI.Image", k)); }
2047
2058
  var F = /** @class */ (function (_super) {
2048
2059
  __extends(F, _super);
@@ -2067,15 +2078,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2067
2078
  F.prototype._processPicking = function (e, t, i, s, a, n, o, r) { if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable)
2068
2079
  return !1; if (!_super.prototype.contains.call(this, e, t))
2069
2080
  return !1; if (this.delegatePickingToChildren) {
2070
- var i_16 = !1;
2071
- for (var s_19 = this._children.length - 1; s_19 >= 0; s_19--) {
2072
- var a_12 = this._children[s_19];
2081
+ var i_17 = !1;
2082
+ for (var s_20 = this._children.length - 1; s_20 >= 0; s_20--) {
2083
+ var a_12 = this._children[s_20];
2073
2084
  if (a_12.isEnabled && a_12.isHitTestVisible && a_12.isVisible && !a_12.notRenderable && a_12.contains(e, t)) {
2074
- i_16 = !0;
2085
+ i_17 = !0;
2075
2086
  break;
2076
2087
  }
2077
2088
  }
2078
- if (!i_16)
2089
+ if (!i_17)
2079
2090
  return !1;
2080
2091
  } return this._processObservables(s, e, t, i, a, n, o, r), !0; };
2081
2092
  F.prototype._onPointerEnter = function (e, t) { return !!_super.prototype._onPointerEnter.call(this, e, t) && (!this.isReadOnly && this.pointerEnterAnimation && this.pointerEnterAnimation(), !0); };
@@ -2095,9 +2106,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2095
2106
  return F;
2096
2107
  }(y));
2097
2108
  var E = !1;
2098
- function D() { E || (E = !0, t.RegisterClass("BABYLON.GUI.Button", F)); }
2099
- D();
2100
- var L = (function () { var e; var a, n, o, r, l, h = x, c = [], d = [], u = []; return e = /** @class */ (function (_super) {
2109
+ function L() { E || (E = !0, t.RegisterClass("BABYLON.GUI.Button", F)); }
2110
+ L();
2111
+ var D = (function () { var e; var a, n, o, r, l, h = x, c = [], d = [], u = []; return e = /** @class */ (function (_super) {
2101
2112
  __extends(e, _super);
2102
2113
  function e(e) {
2103
2114
  var _this = this;
@@ -2148,22 +2159,22 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2148
2159
  };
2149
2160
  e.prototype._additionalProcessing = function (e, t) { _super.prototype._additionalProcessing.call(this, e, t), this._measureForChildren.copyFrom(e), this._measureForChildren.left = this._currentMeasure.left, this._measureForChildren.top = this._currentMeasure.top, this.isVertical && !this._manualWidth || (this._measureForChildren.width = this._currentMeasure.width), (this.isVertical || this._manualHeight) && (this._measureForChildren.height = this._currentMeasure.height); };
2150
2161
  e.prototype._postMeasure = function () { var e = 0, i = 0; var s = this._children.length, a = this._spacing * this._host.idealRatio; for (var n_9 = 0; n_9 < s; n_9++) {
2151
- var o_11 = this._children[n_9];
2152
- if (o_11.isVisible && !o_11.notRenderable)
2162
+ var o_12 = this._children[n_9];
2163
+ if (o_12.isVisible && !o_12.notRenderable)
2153
2164
  if (this._isVertical) {
2154
2165
  var e_62 = i + "px";
2155
- o_11.top !== e_62 && (o_11.top = e_62, this._rebuildLayout = !0, o_11._top.ignoreAdaptiveScaling = !0), this.ignoreLayoutWarnings || o_11.isDimensionFullyDefined("height") ? i += o_11._currentMeasure.height + o_11._paddingTopInPixels + o_11._paddingBottomInPixels + (n_9 < s - 1 ? a : 0) : t.Logger.Warn("Control (Name:".concat(o_11.name, ", UniqueId:").concat(o_11.uniqueId, ") is using height in percentage mode inside a vertical StackPanel"), 1);
2166
+ o_12.top !== e_62 && (o_12.top = e_62, this._rebuildLayout = !0, o_12._top.ignoreAdaptiveScaling = !0), this.ignoreLayoutWarnings || o_12.isDimensionFullyDefined("height") ? i += o_12._currentMeasure.height + o_12._paddingTopInPixels + o_12._paddingBottomInPixels + (n_9 < s - 1 ? a : 0) : t.Logger.Warn("Control (Name:".concat(o_12.name, ", UniqueId:").concat(o_12.uniqueId, ") is using height in percentage mode inside a vertical StackPanel"), 1);
2156
2167
  }
2157
2168
  else {
2158
- var i_17 = e + "px";
2159
- o_11.left !== i_17 && (o_11.left = i_17, this._rebuildLayout = !0, o_11._left.ignoreAdaptiveScaling = !0), this.ignoreLayoutWarnings || o_11.isDimensionFullyDefined("width") ? e += o_11._currentMeasure.width + o_11._paddingLeftInPixels + o_11._paddingRightInPixels + (n_9 < s - 1 ? a : 0) : t.Logger.Warn("Control (Name:".concat(o_11.name, ", UniqueId:").concat(o_11.uniqueId, ") is using width in percentage mode inside a horizontal StackPanel"), 1);
2169
+ var i_18 = e + "px";
2170
+ o_12.left !== i_18 && (o_12.left = i_18, this._rebuildLayout = !0, o_12._left.ignoreAdaptiveScaling = !0), this.ignoreLayoutWarnings || o_12.isDimensionFullyDefined("width") ? e += o_12._currentMeasure.width + o_12._paddingLeftInPixels + o_12._paddingRightInPixels + (n_9 < s - 1 ? a : 0) : t.Logger.Warn("Control (Name:".concat(o_12.name, ", UniqueId:").concat(o_12.uniqueId, ") is using width in percentage mode inside a horizontal StackPanel"), 1);
2160
2171
  }
2161
2172
  } e += this._paddingLeftInPixels + this._paddingRightInPixels, i += this._paddingTopInPixels + this._paddingBottomInPixels, this._doNotTrackManualChanges = !0; var n = !1, o = !1; if ((!this._manualHeight || this.adaptHeightToChildren) && this._isVertical) {
2162
2173
  var e_63 = this.height;
2163
2174
  this.height = i + "px", o = e_63 !== this.height || !this._height.ignoreAdaptiveScaling;
2164
2175
  } if ((!this._manualWidth || this.adaptWidthToChildren) && !this._isVertical) {
2165
- var t_32 = this.width;
2166
- this.width = e + "px", n = t_32 !== this.width || !this._width.ignoreAdaptiveScaling;
2176
+ var t_31 = this.width;
2177
+ this.width = e + "px", n = t_31 !== this.width || !this._width.ignoreAdaptiveScaling;
2167
2178
  } o && (this._height.ignoreAdaptiveScaling = !0), n && (this._width.ignoreAdaptiveScaling = !0), this._doNotTrackManualChanges = !1, (n || o) && (this._rebuildLayout = !0), _super.prototype._postMeasure.call(this); };
2168
2179
  e.prototype._getManualDim = function (e) { return "width" === e ? this._manualWidth : this._manualHeight; };
2169
2180
  e.prototype.isDimensionFullyDefined = function (e) {
@@ -2171,8 +2182,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2171
2182
  if ("height" === e ? this.isVertical : !this.isVertical && !this._getManualDim(e)) {
2172
2183
  try {
2173
2184
  for (var _b = __values(this._children), _c = _b.next(); !_c.done; _c = _b.next()) {
2174
- var t_33 = _c.value;
2175
- if (!t_33.isDimensionFullyDefined(e))
2185
+ var t_32 = _c.value;
2186
+ if (!t_32.isDimensionFullyDefined(e))
2176
2187
  return !1;
2177
2188
  }
2178
2189
  }
@@ -2191,7 +2202,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2191
2202
  e.prototype._parseFromContent = function (e, t) { this._manualWidth = e.manualWidth, this._manualHeight = e.manualHeight, _super.prototype._parseFromContent.call(this, e, t); };
2192
2203
  return e;
2193
2204
  }(h)), (function () { var s; var f = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = h[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], i(e, null, n, { kind: "getter", name: "isVertical", static: !1, private: !1, access: { has: function (e) { return "isVertical" in e; }, get: function (e) { return e.isVertical; } }, metadata: f }, null, c), i(e, null, o, { kind: "getter", name: "spacing", static: !1, private: !1, access: { has: function (e) { return "spacing" in e; }, get: function (e) { return e.spacing; } }, metadata: f }, null, c), i(e, null, r, { kind: "setter", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, set: function (e, t) { e.width = t; } }, metadata: f }, null, c), i(e, null, l, { kind: "setter", name: "height", static: !1, private: !1, access: { has: function (e) { return "height" in e; }, set: function (e, t) { e.height = t; } }, metadata: f }, null, c), i(null, null, a, { kind: "field", name: "ignoreLayoutWarnings", static: !1, private: !1, access: { has: function (e) { return "ignoreLayoutWarnings" in e; }, get: function (e) { return e.ignoreLayoutWarnings; }, set: function (e, t) { e.ignoreLayoutWarnings = t; } }, metadata: f }, d, u), f && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: f }); })(), e; })(), z = !1;
2194
- function N() { z || (z = !0, t.RegisterClass("BABYLON.GUI.StackPanel", L)); }
2205
+ function N() { z || (z = !0, t.RegisterClass("BABYLON.GUI.StackPanel", D)); }
2195
2206
  var A = (function () { var e; var a, n, o, r, l = b, h = []; return e = /** @class */ (function (_super) {
2196
2207
  __extends(e, _super);
2197
2208
  function e(e) {
@@ -2226,11 +2237,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2226
2237
  e.prototype._getTypeName = function () { return "Checkbox"; };
2227
2238
  e.prototype._draw = function (e) { e.save(), this._applyStates(e); var t = this._currentMeasure.width - this._thickness, i = this._currentMeasure.height - this._thickness; if ((this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowColor = this.shadowColor, e.shadowBlur = this.shadowBlur, e.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, e.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio), e.fillStyle = this._isEnabled ? this._background : this._disabledColor, e.fillRect(this._currentMeasure.left + this._thickness / 2, this._currentMeasure.top + this._thickness / 2, t, i), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), this._isChecked) {
2228
2239
  e.fillStyle = this._isEnabled ? this.color ? this.color : "#ffffff" : this._disabledColorItem;
2229
- var s_20 = t * this._checkSizeRatio, a_13 = i * this._checkSizeRatio;
2230
- e.fillRect(this._currentMeasure.left + this._thickness / 2 + (t - s_20) / 2, this._currentMeasure.top + this._thickness / 2 + (i - a_13) / 2, s_20, a_13);
2240
+ var s_21 = t * this._checkSizeRatio, a_13 = i * this._checkSizeRatio;
2241
+ e.fillRect(this._currentMeasure.left + this._thickness / 2 + (t - s_21) / 2, this._currentMeasure.top + this._thickness / 2 + (i - a_13) / 2, s_21, a_13);
2231
2242
  } e.strokeStyle = this.color, e.lineWidth = this._thickness, e.strokeRect(this._currentMeasure.left + this._thickness / 2, this._currentMeasure.top + this._thickness / 2, t, i), e.restore(); };
2232
2243
  e.prototype._onPointerDown = function (e, t, i, s, a) { return !!_super.prototype._onPointerDown.call(this, e, t, i, s, a) && (this.isReadOnly || (this.isChecked = !this.isChecked), !0); };
2233
- e.AddCheckBoxWithHeader = function (t, i) { var s = new L; s.isVertical = !1, s.height = "30px"; var a = new e; a.width = "20px", a.height = "20px", a.isChecked = !0, a.color = "green", a.onIsCheckedChangedObservable.add(i), s.addControl(a); var n = new T; return n.text = t, n.width = "180px", n.paddingLeft = "5px", n.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n.color = "white", s.addControl(n), s; };
2244
+ e.AddCheckBoxWithHeader = function (t, i) { var s = new D; s.isVertical = !1, s.height = "30px"; var a = new e; a.width = "20px", a.height = "20px", a.isChecked = !0, a.color = "green", a.onIsCheckedChangedObservable.add(i), s.addControl(a); var n = new T; return n.text = t, n.width = "180px", n.paddingLeft = "5px", n.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n.color = "white", s.addControl(n), s; };
2234
2245
  return e;
2235
2246
  }(l)), (function () { var s; var c = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = l[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], i(e, null, a, { kind: "getter", name: "thickness", static: !1, private: !1, access: { has: function (e) { return "thickness" in e; }, get: function (e) { return e.thickness; } }, metadata: c }, null, h), i(e, null, n, { kind: "getter", name: "checkSizeRatio", static: !1, private: !1, access: { has: function (e) { return "checkSizeRatio" in e; }, get: function (e) { return e.checkSizeRatio; } }, metadata: c }, null, h), i(e, null, o, { kind: "getter", name: "background", static: !1, private: !1, access: { has: function (e) { return "background" in e; }, get: function (e) { return e.background; } }, metadata: c }, null, h), i(e, null, r, { kind: "getter", name: "isChecked", static: !1, private: !1, access: { has: function (e) { return "isChecked" in e; }, get: function (e) { return e.isChecked; } }, metadata: c }, null, h), c && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: c }); })(), e; })(), V = !1;
2236
2247
  function Q() { V || (V = !0, t.RegisterClass("BABYLON.GUI.Checkbox", A)); }
@@ -2252,25 +2263,25 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2252
2263
  W.prototype.removePart = function (e, t, i) {
2253
2264
  var _a;
2254
2265
  if (this._text = this._text.slice(0, e) + (i || "") + this._text.slice(t), this._characters) {
2255
- var s_21 = i ? Array.from(i) : [];
2256
- (_a = this._characters).splice.apply(_a, __spreadArray([e, t - e], __read(s_21), false));
2266
+ var s_22 = i ? Array.from(i) : [];
2267
+ (_a = this._characters).splice.apply(_a, __spreadArray([e, t - e], __read(s_22), false));
2257
2268
  }
2258
2269
  };
2259
2270
  W.prototype.charAt = function (e) { return this._characters ? this._characters[e] : this._text.charAt(e); };
2260
2271
  W.prototype.substr = function (e, t) { if (this._characters) {
2261
2272
  e = isNaN(e) ? 0 : e >= 0 ? Math.min(e, this._characters.length) : this._characters.length + Math.max(e, -this._characters.length), void 0 === t ? t = this._characters.length - e : (isNaN(t) || t < 0) && (t = 0);
2262
- var i_18 = [];
2273
+ var i_19 = [];
2263
2274
  for (; --t >= 0;)
2264
- i_18[t] = this._characters[e + t];
2265
- return i_18.join("");
2275
+ i_19[t] = this._characters[e + t];
2276
+ return i_19.join("");
2266
2277
  } return this._text.substring(e, t ? t + e : void 0); };
2267
2278
  W.prototype.substring = function (e, t) { if (this._characters) {
2268
2279
  isNaN(e) ? e = 0 : e > this._characters.length ? e = this._characters.length : e < 0 && (e = 0), void 0 === t ? t = this._characters.length : isNaN(t) ? t = 0 : t > this._characters.length ? t = this._characters.length : t < 0 && (t = 0);
2269
- var i_19 = [];
2270
- var s_22 = 0;
2280
+ var i_20 = [];
2281
+ var s_23 = 0;
2271
2282
  for (; e < t;)
2272
- i_19[s_22++] = this._characters[e++];
2273
- return i_19.join("");
2283
+ i_20[s_23++] = this._characters[e++];
2284
+ return i_20.join("");
2274
2285
  } return this._text.substring(e, t); };
2275
2286
  W.prototype.isWord = function (e) { var t = /\w/g; return this._characters ? -1 !== this._characters[e].search(t) : -1 !== this._text.search(t); };
2276
2287
  return W;
@@ -2569,27 +2580,27 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2569
2580
  this._scrollLeft = a;
2570
2581
  if (this.outlineWidth && e.strokeText(n.text, this._scrollLeft, this._currentMeasure.top + r), e.fillText(n.text, this._scrollLeft, this._currentMeasure.top + r), this._isFocused) {
2571
2582
  if (this._clickedCoordinate) {
2572
- var t_34 = this._scrollLeft + this._textWidth - this._clickedCoordinate;
2573
- var i_20 = 0;
2583
+ var t_33 = this._scrollLeft + this._textWidth - this._clickedCoordinate;
2584
+ var i_21 = 0;
2574
2585
  this._cursorOffset = 0;
2575
- var s_23 = 0;
2586
+ var s_24 = 0;
2576
2587
  do {
2577
- this._cursorOffset && (s_23 = Math.abs(t_34 - i_20)), this._cursorOffset++, i_20 = e.measureText(n.substr(n.length - this._cursorOffset, this._cursorOffset)).width;
2578
- } while (i_20 < t_34 && n.length >= this._cursorOffset);
2579
- Math.abs(t_34 - i_20) > s_23 && this._cursorOffset--, this._blinkIsEven = !1, this._clickedCoordinate = null;
2588
+ this._cursorOffset && (s_24 = Math.abs(t_33 - i_21)), this._cursorOffset++, i_21 = e.measureText(n.substr(n.length - this._cursorOffset, this._cursorOffset)).width;
2589
+ } while (i_21 < t_33 && n.length >= this._cursorOffset);
2590
+ Math.abs(t_33 - i_21) > s_24 && this._cursorOffset--, this._blinkIsEven = !1, this._clickedCoordinate = null;
2580
2591
  }
2581
2592
  if (!this._blinkIsEven) {
2582
- var t_35 = n.substr(n.length - this._cursorOffset), i_21 = e.measureText(t_35).width;
2583
- var s_24 = this._scrollLeft + this._textWidth - i_21;
2584
- s_24 < a ? (this._scrollLeft += a - s_24, s_24 = a, this._markAsDirty()) : s_24 > a + h && (this._scrollLeft += a + h - s_24, s_24 = a + h, this._markAsDirty()), this.isTextHighlightOn || e.fillRect(s_24, this._currentMeasure.top + (this._currentMeasure.height - this._fontOffset.height) / 2, 2, this._fontOffset.height);
2593
+ var t_34 = n.substr(n.length - this._cursorOffset), i_22 = e.measureText(t_34).width;
2594
+ var s_25 = this._scrollLeft + this._textWidth - i_22;
2595
+ s_25 < a ? (this._scrollLeft += a - s_25, s_25 = a, this._markAsDirty()) : s_25 > a + h && (this._scrollLeft += a + h - s_25, s_25 = a + h, this._markAsDirty()), this.isTextHighlightOn || e.fillRect(s_25, this._currentMeasure.top + (this._currentMeasure.height - this._fontOffset.height) / 2, 2, this._fontOffset.height);
2585
2596
  }
2586
2597
  if (clearTimeout(this._blinkTimeout), this._blinkTimeout = setTimeout(function () { _this._blinkIsEven = !_this._blinkIsEven, _this._markAsDirty(); }, 500), this.isTextHighlightOn) {
2587
2598
  clearTimeout(this._blinkTimeout);
2588
- var t_36 = e.measureText(n.substring(this._startHighlightIndex)).width;
2589
- var i_22 = this._scrollLeft + this._textWidth - t_36;
2599
+ var t_35 = e.measureText(n.substring(this._startHighlightIndex)).width;
2600
+ var i_23 = this._scrollLeft + this._textWidth - t_35;
2590
2601
  this._highlightedText = n.substring(this._startHighlightIndex, this._endHighlightIndex);
2591
- var s_25 = e.measureText(n.substring(this._startHighlightIndex, this._endHighlightIndex)).width;
2592
- i_22 < a && (s_25 -= a - i_22, s_25 || (s_25 = e.measureText(n.charAt(n.length - this._cursorOffset)).width), i_22 = a), e.globalAlpha = this._highlighterOpacity, e.fillStyle = this._textHighlightColor, e.fillRect(i_22, this._currentMeasure.top + (this._currentMeasure.height - this._fontOffset.height) / 2, s_25, this._fontOffset.height), e.globalAlpha = 1;
2602
+ var s_26 = e.measureText(n.substring(this._startHighlightIndex, this._endHighlightIndex)).width;
2603
+ i_23 < a && (s_26 -= a - i_23, s_26 || (s_26 = e.measureText(n.charAt(n.length - this._cursorOffset)).width), i_23 = a), e.globalAlpha = this._highlighterOpacity, e.fillStyle = this._textHighlightColor, e.fillRect(i_23, this._currentMeasure.top + (this._currentMeasure.height - this._fontOffset.height) / 2, s_26, this._fontOffset.height), e.globalAlpha = 1;
2593
2604
  }
2594
2605
  }
2595
2606
  e.restore(), this._thickness && (this._isFocused ? this.focusedColor && (e.strokeStyle = this.focusedColor) : this.color && (e.strokeStyle = this.color), e.lineWidth = this._thickness, e.strokeRect(this._currentMeasure.left + this._thickness / 2, this._currentMeasure.top + this._thickness / 2, this._currentMeasure.width - this._thickness, this._currentMeasure.height - this._thickness)), e.restore();
@@ -2617,15 +2628,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2617
2628
  }
2618
2629
  Object.defineProperty(e.prototype, "clipContent", {
2619
2630
  get: function () { return this._clipContent; },
2620
- set: function (e) { this._clipContent = e; for (var t_37 in this._cells)
2621
- this._cells[t_37].clipContent = e; },
2631
+ set: function (e) { this._clipContent = e; for (var t_36 in this._cells)
2632
+ this._cells[t_36].clipContent = e; },
2622
2633
  enumerable: false,
2623
2634
  configurable: true
2624
2635
  });
2625
2636
  Object.defineProperty(e.prototype, "clipChildren", {
2626
2637
  get: function () { return this._clipChildren; },
2627
- set: function (e) { this._clipChildren = e; for (var t_38 in this._cells)
2628
- this._cells[t_38].clipChildren = e; },
2638
+ set: function (e) { this._clipChildren = e; for (var t_37 in this._cells)
2639
+ this._cells[t_37].clipChildren = e; },
2629
2640
  enumerable: false,
2630
2641
  configurable: true
2631
2642
  });
@@ -2685,8 +2696,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2685
2696
  _super.prototype.removeControl.call(this, e);
2686
2697
  try {
2687
2698
  for (var _b = __values(e.children), _c = _b.next(); !_c.done; _c = _b.next()) {
2688
- var t_39 = _c.value;
2689
- var e_72 = this._childControls.indexOf(t_39);
2699
+ var t_38 = _c.value;
2700
+ var e_72 = this._childControls.indexOf(t_38);
2690
2701
  -1 !== e_72 && this._childControls.splice(e_72, 1);
2691
2702
  }
2692
2703
  }
@@ -2706,8 +2717,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2706
2717
  this._cells[e] = this._cells[t];
2707
2718
  try {
2708
2719
  for (var _b = __values(this._cells[e].children), _c = _b.next(); !_c.done; _c = _b.next()) {
2709
- var t_40 = _c.value;
2710
- t_40._tag = e;
2720
+ var t_39 = _c.value;
2721
+ t_39._tag = e;
2711
2722
  }
2712
2723
  }
2713
2724
  catch (e_73_1) { e_73 = { error: e_73_1 }; }
@@ -2721,22 +2732,22 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2721
2732
  }
2722
2733
  };
2723
2734
  e.prototype.removeColumnDefinition = function (e) { if (e < 0 || e >= this._columnDefinitions.length)
2724
- return this; for (var t_41 = 0; t_41 < this._rowDefinitions.length; t_41++) {
2725
- var i_23 = "".concat(t_41, ":").concat(e), s_26 = this._cells[i_23];
2726
- this._removeCell(s_26, i_23);
2727
- } for (var t_42 = 0; t_42 < this._rowDefinitions.length; t_42++)
2728
- for (var i_24 = e + 1; i_24 < this._columnDefinitions.length; i_24++) {
2729
- var e_74 = "".concat(t_42, ":").concat(i_24 - 1), s_27 = "".concat(t_42, ":").concat(i_24);
2730
- this._offsetCell(e_74, s_27);
2735
+ return this; for (var t_40 = 0; t_40 < this._rowDefinitions.length; t_40++) {
2736
+ var i_24 = "".concat(t_40, ":").concat(e), s_27 = this._cells[i_24];
2737
+ this._removeCell(s_27, i_24);
2738
+ } for (var t_41 = 0; t_41 < this._rowDefinitions.length; t_41++)
2739
+ for (var i_25 = e + 1; i_25 < this._columnDefinitions.length; i_25++) {
2740
+ var e_74 = "".concat(t_41, ":").concat(i_25 - 1), s_28 = "".concat(t_41, ":").concat(i_25);
2741
+ this._offsetCell(e_74, s_28);
2731
2742
  } return this._columnDefinitions[e].onChangedObservable.remove(this._columnDefinitionObservers[e]), this._columnDefinitions.splice(e, 1), this._columnDefinitionObservers.splice(e, 1), this._markAsDirty(), this; };
2732
2743
  e.prototype.removeRowDefinition = function (e) { if (e < 0 || e >= this._rowDefinitions.length)
2733
- return this; for (var t_43 = 0; t_43 < this._columnDefinitions.length; t_43++) {
2734
- var i_25 = "".concat(e, ":").concat(t_43), s_28 = this._cells[i_25];
2735
- this._removeCell(s_28, i_25);
2736
- } for (var t_44 = 0; t_44 < this._columnDefinitions.length; t_44++)
2737
- for (var i_26 = e + 1; i_26 < this._rowDefinitions.length; i_26++) {
2738
- var e_75 = "".concat(i_26 - 1, ":").concat(t_44), s_29 = "".concat(i_26, ":").concat(t_44);
2739
- this._offsetCell(e_75, s_29);
2744
+ return this; for (var t_42 = 0; t_42 < this._columnDefinitions.length; t_42++) {
2745
+ var i_26 = "".concat(e, ":").concat(t_42), s_29 = this._cells[i_26];
2746
+ this._removeCell(s_29, i_26);
2747
+ } for (var t_43 = 0; t_43 < this._columnDefinitions.length; t_43++)
2748
+ for (var i_27 = e + 1; i_27 < this._rowDefinitions.length; i_27++) {
2749
+ var e_75 = "".concat(i_27 - 1, ":").concat(t_43), s_30 = "".concat(i_27, ":").concat(t_43);
2750
+ this._offsetCell(e_75, s_30);
2740
2751
  } return this._rowDefinitions[e].onChangedObservable.remove(this._rowDefinitionObservers[e]), this._rowDefinitions.splice(e, 1), this._rowDefinitionObservers.splice(e, 1), this._markAsDirty(), this; };
2741
2752
  e.prototype.addControl = function (e, i, s) {
2742
2753
  if (i === void 0) { i = 0; }
@@ -2757,8 +2768,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2757
2768
  for (var _f = __values(this._rowDefinitions), _g = _f.next(); !_g.done; _g = _f.next()) {
2758
2769
  var e_80 = _g.value;
2759
2770
  if (e_80.isPixel) {
2760
- var t_45 = e_80.getValue(this._host);
2761
- r -= t_45, i[h] = t_45;
2771
+ var t_44 = e_80.getValue(this._host);
2772
+ r -= t_44, i[h] = t_44;
2762
2773
  }
2763
2774
  else
2764
2775
  l += e_80.value;
@@ -2780,8 +2791,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2780
2791
  if (a.push(c), e_81.isPixel)
2781
2792
  c += e_81.getValue(this._host);
2782
2793
  else {
2783
- var t_46 = Math.round(e_81.value / l * r);
2784
- c += t_46, i[h] = t_46;
2794
+ var t_45 = Math.round(e_81.value / l * r);
2795
+ c += t_45, i[h] = t_45;
2785
2796
  }
2786
2797
  h++;
2787
2798
  }
@@ -2798,8 +2809,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2798
2809
  for (var _l = __values(this._columnDefinitions), _m = _l.next(); !_m.done; _m = _l.next()) {
2799
2810
  var e_82 = _m.value;
2800
2811
  if (e_82.isPixel) {
2801
- var i_27 = e_82.getValue(this._host);
2802
- n -= i_27, t[h] = i_27;
2812
+ var i_28 = e_82.getValue(this._host);
2813
+ n -= i_28, t[h] = i_28;
2803
2814
  }
2804
2815
  else
2805
2816
  o += e_82.value;
@@ -2821,8 +2832,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2821
2832
  if (s.push(d), e_83.isPixel)
2822
2833
  d += e_83.getValue(this._host);
2823
2834
  else {
2824
- var i_28 = Math.round(e_83.value / o * n);
2825
- d += i_28, t[h] = i_28;
2835
+ var i_29 = Math.round(e_83.value / o * n);
2836
+ d += i_29, t[h] = i_29;
2826
2837
  }
2827
2838
  h++;
2828
2839
  }
@@ -2841,20 +2852,20 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2841
2852
  this._getGridDefinitions(function (e, t, i, s) { for (var a_14 in _this._cells) {
2842
2853
  if (!Object.prototype.hasOwnProperty.call(_this._cells, a_14))
2843
2854
  continue;
2844
- var n_10 = a_14.split(":"), o_12 = parseInt(n_10[0]), r_6 = parseInt(n_10[1]), l_7 = _this._cells[a_14];
2845
- l_7.leftInPixels = e[r_6], l_7.topInPixels = t[o_12], l_7.widthInPixels = i[r_6], l_7.heightInPixels = s[o_12], l_7._left.ignoreAdaptiveScaling = !0, l_7._top.ignoreAdaptiveScaling = !0, l_7._width.ignoreAdaptiveScaling = !0, l_7._height.ignoreAdaptiveScaling = !0;
2855
+ var n_10 = a_14.split(":"), o_13 = parseInt(n_10[0]), r_7 = parseInt(n_10[1]), l_7 = _this._cells[a_14];
2856
+ l_7.leftInPixels = e[r_7], l_7.topInPixels = t[o_13], l_7.widthInPixels = i[r_7], l_7.heightInPixels = s[o_13], l_7._left.ignoreAdaptiveScaling = !0, l_7._top.ignoreAdaptiveScaling = !0, l_7._width.ignoreAdaptiveScaling = !0, l_7._height.ignoreAdaptiveScaling = !0;
2846
2857
  } }), _super.prototype._additionalProcessing.call(this, e, t);
2847
2858
  };
2848
2859
  e.prototype._flagDescendantsAsMatrixDirty = function () { for (var e_84 in this._cells)
2849
2860
  Object.prototype.hasOwnProperty.call(this._cells, e_84) && this._cells[e_84]._markMatrixAsDirty(); };
2850
2861
  e.prototype._renderHighlightSpecific = function (e) {
2851
2862
  var _this = this;
2852
- _super.prototype._renderHighlightSpecific.call(this, e), this._getGridDefinitions(function (t, i, s, a) { for (var i_29 = 0; i_29 < t.length; i_29++) {
2853
- var a_15 = _this._currentMeasure.left + t[i_29] + s[i_29];
2863
+ _super.prototype._renderHighlightSpecific.call(this, e), this._getGridDefinitions(function (t, i, s, a) { for (var i_30 = 0; i_30 < t.length; i_30++) {
2864
+ var a_15 = _this._currentMeasure.left + t[i_30] + s[i_30];
2854
2865
  e.beginPath(), e.moveTo(a_15, _this._currentMeasure.top), e.lineTo(a_15, _this._currentMeasure.top + _this._currentMeasure.height), e.stroke();
2855
- } for (var t_47 = 0; t_47 < i.length; t_47++) {
2856
- var s_30 = _this._currentMeasure.top + i[t_47] + a[t_47];
2857
- e.beginPath(), e.moveTo(_this._currentMeasure.left, s_30), e.lineTo(_this._currentMeasure.left + _this._currentMeasure.width, s_30), e.stroke();
2866
+ } for (var t_46 = 0; t_46 < i.length; t_46++) {
2867
+ var s_31 = _this._currentMeasure.top + i[t_46] + a[t_46];
2868
+ e.beginPath(), e.moveTo(_this._currentMeasure.left, s_31), e.lineTo(_this._currentMeasure.left + _this._currentMeasure.width, s_31), e.stroke();
2858
2869
  } }), e.restore();
2859
2870
  };
2860
2871
  e.prototype.dispose = function () {
@@ -2883,18 +2894,18 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2883
2894
  var e_89, _a;
2884
2895
  if (_super.prototype.serialize.call(this, e, t, i), this.isSerializable || t) {
2885
2896
  e.columnCount = this.columnCount, e.rowCount = this.rowCount, e.columns = [], e.rows = [], e.tags = [];
2886
- for (var t_48 = 0; t_48 < this.columnCount; ++t_48) {
2887
- var i_30 = this.getColumnDefinition(t_48), s_31 = { value: null == i_30 ? void 0 : i_30.getValue(this.host), unit: null == i_30 ? void 0 : i_30.unit };
2888
- e.columns.push(s_31);
2897
+ for (var t_47 = 0; t_47 < this.columnCount; ++t_47) {
2898
+ var i_31 = this.getColumnDefinition(t_47), s_32 = { value: null == i_31 ? void 0 : i_31.getValue(this.host), unit: null == i_31 ? void 0 : i_31.unit };
2899
+ e.columns.push(s_32);
2889
2900
  }
2890
- for (var t_49 = 0; t_49 < this.rowCount; ++t_49) {
2891
- var i_31 = this.getRowDefinition(t_49), s_32 = { value: null == i_31 ? void 0 : i_31.getValue(this.host), unit: null == i_31 ? void 0 : i_31.unit };
2892
- e.rows.push(s_32);
2901
+ for (var t_48 = 0; t_48 < this.rowCount; ++t_48) {
2902
+ var i_32 = this.getRowDefinition(t_48), s_33 = { value: null == i_32 ? void 0 : i_32.getValue(this.host), unit: null == i_32 ? void 0 : i_32.unit };
2903
+ e.rows.push(s_33);
2893
2904
  }
2894
2905
  try {
2895
2906
  for (var _b = __values(this.children), _c = _b.next(); !_c.done; _c = _b.next()) {
2896
- var t_50 = _c.value;
2897
- e.tags.push(t_50._tag);
2907
+ var t_49 = _c.value;
2908
+ e.tags.push(t_49._tag);
2898
2909
  }
2899
2910
  }
2900
2911
  catch (e_89_1) { e_89 = { error: e_89_1 }; }
@@ -2924,20 +2935,20 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2924
2935
  finally { if (e_90) throw e_90.error; }
2925
2936
  }
2926
2937
  this.removeRowDefinition(0), this.removeColumnDefinition(0);
2927
- for (var t_51 = 0; t_51 < e.columnCount; ++t_51) {
2928
- var i_32 = e.columns[t_51].value, s_33 = e.columns[t_51].unit;
2929
- this.addColumnDefinition(i_32, 1 === s_33);
2938
+ for (var t_50 = 0; t_50 < e.columnCount; ++t_50) {
2939
+ var i_33 = e.columns[t_50].value, s_34 = e.columns[t_50].unit;
2940
+ this.addColumnDefinition(i_33, 1 === s_34);
2930
2941
  }
2931
- for (var t_52 = 0; t_52 < e.rowCount; ++t_52) {
2932
- var i_33 = e.rows[t_52].value, s_34 = e.rows[t_52].unit;
2933
- this.addRowDefinition(i_33, 1 === s_34);
2942
+ for (var t_51 = 0; t_51 < e.rowCount; ++t_51) {
2943
+ var i_34 = e.rows[t_51].value, s_35 = e.rows[t_51].unit;
2944
+ this.addRowDefinition(i_34, 1 === s_35);
2934
2945
  }
2935
- for (var t_53 = 0; t_53 < i.length; ++t_53) {
2936
- var s_35 = e.tags[t_53];
2937
- var a_16 = parseInt(s_35.substring(0, s_35.search(":")));
2946
+ for (var t_52 = 0; t_52 < i.length; ++t_52) {
2947
+ var s_36 = e.tags[t_52];
2948
+ var a_16 = parseInt(s_36.substring(0, s_36.search(":")));
2938
2949
  isNaN(a_16) && (a_16 = 0);
2939
- var n_11 = parseInt(s_35.substring(s_35.search(":") + 1));
2940
- isNaN(n_11) && (n_11 = 0), this.addControl(i[t_53], a_16, n_11);
2950
+ var n_11 = parseInt(s_36.substring(s_36.search(":") + 1));
2951
+ isNaN(n_11) && (n_11 = 0), this.addControl(i[t_52], a_16, n_11);
2941
2952
  }
2942
2953
  };
2943
2954
  return e;
@@ -2980,14 +2991,14 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2980
2991
  e.prototype._drawGradientSquare = function (e, t, i, s, a, n) { var o = n.createLinearGradient(t, i, s + t, i); o.addColorStop(0, "#fff"), o.addColorStop(1, "hsl(" + e + ", 100%, 50%)"), n.fillStyle = o, n.fillRect(t, i, s, a); var r = n.createLinearGradient(t, i, t, a + i); r.addColorStop(0, "rgba(0,0,0,0)"), r.addColorStop(1, "#000"), n.fillStyle = r, n.fillRect(t, i, s, a); };
2981
2992
  e.prototype._drawCircle = function (e, t, i, s) { s.beginPath(), s.arc(e, t, i + 1, 0, 2 * Math.PI, !1), s.lineWidth = 3, s.strokeStyle = "#333333", s.stroke(), s.beginPath(), s.arc(e, t, i, 0, 2 * Math.PI, !1), s.lineWidth = 3, s.strokeStyle = "#ffffff", s.stroke(); };
2982
2993
  e.prototype._createColorWheelCanvas = function (e, i) { var s = t.EngineStore.LastCreatedEngine; if (!s)
2983
- throw new Error("Invalid engine. Unable to create a canvas."); var a = s.createCanvas(2 * e, 2 * e), n = a.getContext("2d"), o = n.getImageData(0, 0, 2 * e, 2 * e), r = o.data, l = this._tmpColor, h = e * e, c = e - i, d = c * c; for (var i_34 = -e; i_34 < e; i_34++)
2984
- for (var s_36 = -e; s_36 < e; s_36++) {
2985
- var a_17 = i_34 * i_34 + s_36 * s_36;
2994
+ throw new Error("Invalid engine. Unable to create a canvas."); var a = s.createCanvas(2 * e, 2 * e), n = a.getContext("2d"), o = n.getImageData(0, 0, 2 * e, 2 * e), r = o.data, l = this._tmpColor, h = e * e, c = e - i, d = c * c; for (var i_35 = -e; i_35 < e; i_35++)
2995
+ for (var s_37 = -e; s_37 < e; s_37++) {
2996
+ var a_17 = i_35 * i_35 + s_37 * s_37;
2986
2997
  if (a_17 > h || a_17 < d)
2987
2998
  continue;
2988
- var n_12 = Math.sqrt(a_17), o_13 = Math.atan2(s_36, i_34);
2989
- t.Color3.HSVtoRGBToRef(180 * o_13 / Math.PI + 180, n_12 / e, 1, l);
2990
- var u_2 = 4 * (i_34 + e + 2 * (s_36 + e) * e);
2999
+ var n_12 = Math.sqrt(a_17), o_14 = Math.atan2(s_37, i_35);
3000
+ t.Color3.HSVtoRGBToRef(180 * o_14 / Math.PI + 180, n_12 / e, 1, l);
3001
+ var u_2 = 4 * (i_35 + e + 2 * (s_37 + e) * e);
2991
3002
  var f_1 = void 0;
2992
3003
  r[u_2] = 255 * l.r, r[u_2 + 1] = 255 * l.g, r[u_2 + 2] = 255 * l.b;
2993
3004
  var m_1 = .2, g_1 = .04, b_1 = 50, v_1 = 150;
@@ -2997,8 +3008,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2997
3008
  } return n.putImageData(o, 0, 0), a; };
2998
3009
  e.prototype._draw = function (e) { e.save(), this._applyStates(e); var t = .5 * Math.min(this._currentMeasure.width, this._currentMeasure.height), i = .2 * t, s = this._currentMeasure.left, a = this._currentMeasure.top; this._colorWheelCanvas && this._colorWheelCanvas.width == 2 * t || (this._colorWheelCanvas = this._createColorWheelCanvas(t, i)), this._updateSquareProps(), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowColor = this.shadowColor, e.shadowBlur = this.shadowBlur, e.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, e.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio, e.fillRect(this._squareLeft, this._squareTop, this._squareSize, this._squareSize)), e.drawImage(this._colorWheelCanvas, s, a), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), this._drawGradientSquare(this._h, this._squareLeft, this._squareTop, this._squareSize, this._squareSize, e); var n = this._squareLeft + this._squareSize * this._s, o = this._squareTop + this._squareSize * (1 - this._v); this._drawCircle(n, o, .04 * t, e); var r = t - .5 * i; n = s + t + Math.cos((this._h - 180) * Math.PI / 180) * r, o = a + t + Math.sin((this._h - 180) * Math.PI / 180) * r, this._drawCircle(n, o, .35 * i, e), e.restore(); };
2999
3010
  e.prototype._updateValueFromPointer = function (i, s) { if (this._pointerStartedOnWheel) {
3000
- var e_92 = .5 * Math.min(this._currentMeasure.width, this._currentMeasure.height), t_54 = e_92 + this._currentMeasure.left, a_18 = e_92 + this._currentMeasure.top;
3001
- this._h = 180 * Math.atan2(s - a_18, i - t_54) / Math.PI + 180;
3011
+ var e_92 = .5 * Math.min(this._currentMeasure.width, this._currentMeasure.height), t_53 = e_92 + this._currentMeasure.left, a_18 = e_92 + this._currentMeasure.top;
3012
+ this._h = 180 * Math.atan2(s - a_18, i - t_53) / Math.PI + 180;
3002
3013
  }
3003
3014
  else
3004
3015
  this._pointerStartedOnSquare && (this._updateSquareProps(), this._s = (i - this._squareLeft) / this._squareSize, this._v = 1 - (s - this._squareTop) / this._squareSize, this._s = Math.min(this._s, 1), this._s = Math.max(this._s, e._Epsilon), this._v = Math.min(this._v, 1), this._v = Math.max(this._v, e._Epsilon)); t.Color3.HSVtoRGBToRef(this._h, this._s, this._v, this._tmpColor), this.value = this._tmpColor; };
@@ -3010,8 +3021,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3010
3021
  e.prototype._onPointerMove = function (e, t, i, s) { if (i == this._lastPointerDownId) {
3011
3022
  if (!this.isReadOnly) {
3012
3023
  this._invertTransformMatrix.transformCoordinates(t.x, t.y, this._transformedPosition);
3013
- var e_93 = this._transformedPosition.x, i_35 = this._transformedPosition.y;
3014
- this._pointerIsDown && this._updateValueFromPointer(e_93, i_35);
3024
+ var e_93 = this._transformedPosition.x, i_36 = this._transformedPosition.y;
3025
+ this._pointerIsDown && this._updateValueFromPointer(e_93, i_36);
3015
3026
  }
3016
3027
  _super.prototype._onPointerMove.call(this, e, t, i, s);
3017
3028
  } };
@@ -3028,16 +3039,16 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3028
3039
  E.height = s.pickerHeight, E.addRowDefinition(1, !1); if (i.addControl(E), s.savedColors) {
3029
3040
  R = new Y, R.name = "Swatch Drawer", R.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, R.background = f, R.width = s.pickerWidth;
3030
3041
  var e_95 = s.savedColors.length / s.numSwatchesPerLine;
3031
- var t_55;
3032
- t_55 = 0 == e_95 ? 0 : e_95 + 1, R.height = (h * e_95 + t_55 * r).toString() + "px", R.top = Math.floor(.25 * h).toString() + "px";
3042
+ var t_54;
3043
+ t_54 = 0 == e_95 ? 0 : e_95 + 1, R.height = (h * e_95 + t_54 * r).toString() + "px", R.top = Math.floor(.25 * h).toString() + "px";
3033
3044
  for (var e_96 = 0; e_96 < 2 * Math.ceil(s.savedColors.length / s.numSwatchesPerLine) + 1; e_96++)
3034
3045
  e_96 % 2 != 0 ? R.addRowDefinition(h, !0) : R.addRowDefinition(r, !0);
3035
3046
  for (var e_97 = 0; e_97 < 2 * s.numSwatchesPerLine + 1; e_97++)
3036
3047
  e_97 % 2 != 0 ? R.addColumnDefinition(h, !0) : R.addColumnDefinition(r, !0);
3037
3048
  E.addControl(R, 1, 0);
3038
- } var D = new Y; D.name = "Picker Panel", D.height = s.pickerHeight; var L = parseInt(s.headerHeight) / parseInt(s.pickerHeight), z = [L, 1 - L]; D.addRowDefinition(z[0], !1), D.addRowDefinition(z[1], !1), E.addControl(D, 0, 0); var N = new y; N.name = "Dialogue Header Bar", N.background = "#cccccc", N.thickness = 0, D.addControl(N, 0, 0); var A = F.CreateSimpleButton("closeButton", "a"); A.fontFamily = "coreglyphs"; var V = t.Color3.FromHexString(N.background), Q = new t.Color3(1 - V.r, 1 - V.g, 1 - V.b); A.color = Q.toHexString(), A.fontSize = Math.floor(.6 * parseInt(s.headerHeight)), A.textBlock.textVerticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, A.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_RIGHT, A.height = A.width = s.headerHeight, A.background = N.background, A.thickness = 0, A.pointerDownAnimation = function () { }, A.pointerUpAnimation = function () { A.background = N.background; }, A.pointerEnterAnimation = function () { A.color = N.background, A.background = "red"; }, A.pointerOutAnimation = function () { A.color = Q.toHexString(), A.background = N.background; }, A.onPointerClickObservable.add(function () { Le(oe.background); }), D.addControl(A, 0, 0); var W = new Y; W.name = "Dialogue Body", W.background = f; var H = [.4375, .5625]; W.addRowDefinition(1, !1), W.addColumnDefinition(H[0], !1), W.addColumnDefinition(H[1], !1), D.addControl(W, 1, 0); var U = new Y; U.name = "Picker Grid", U.addRowDefinition(.85, !1), U.addRowDefinition(.15, !1), W.addControl(U, 0, 0); var X = new e; X.name = "GUI Color Picker", s.pickerHeight < s.pickerWidth ? X.width = .89 : X.height = .89, X.value = t.Color3.FromHexString(s.lastColor), X.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_CENTER, X.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, X.onPointerDownObservable.add(function () { O = X.name, k = "", Me(!1); }), X.onValueChangedObservable.add(function (e) { O == X.name && Re(e, X.name); }), U.addControl(X, 0, 0); var j = new Y; j.name = "Dialogue Right Half", j.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT; var K = [.514, .486]; j.addRowDefinition(K[0], !1), j.addRowDefinition(K[1], !1), W.addControl(j, 1, 1); var Z = new Y; Z.name = "Swatches and Buttons"; var q = [.417, .583]; Z.addRowDefinition(1, !1), Z.addColumnDefinition(q[0], !1), Z.addColumnDefinition(q[1], !1), j.addControl(Z, 0, 0); var $ = new Y; $.name = "New and Current Swatches"; var J = [.04, .16, .64, .16]; $.addRowDefinition(J[0], !1), $.addRowDefinition(J[1], !1), $.addRowDefinition(J[2], !1), $.addRowDefinition(J[3], !1), Z.addControl($, 0, 0); var ee = new Y; ee.name = "Active Swatches", ee.width = .67, ee.addRowDefinition(.5, !1), ee.addRowDefinition(.5, !1), $.addControl(ee, 2, 0); var te = Math.floor(parseInt(s.pickerWidth) * H[1] * q[0] * .11), ie = Math.floor(parseInt(s.pickerHeight) * z[1] * K[0] * J[1] * .5); var se; se = s.pickerWidth > s.pickerHeight ? ie : te; var ae = new T; ae.text = "new", ae.name = "New Color Label", ae.color = u, ae.fontSize = se, $.addControl(ae, 1, 0); var ne = new y; ne.name = "New Color Swatch", ne.background = s.lastColor, ne.thickness = 0, ee.addControl(ne, 0, 0); var oe = F.CreateSimpleButton("currentSwatch", ""); oe.background = s.lastColor, oe.thickness = 0, oe.onPointerClickObservable.add(function () { Re(t.Color3.FromHexString(oe.background), oe.name), Me(!1); }), oe.pointerDownAnimation = function () { }, oe.pointerUpAnimation = function () { }, oe.pointerEnterAnimation = function () { }, oe.pointerOutAnimation = function () { }, ee.addControl(oe, 1, 0); var re = new y; re.name = "Swatch Outline", re.width = .67, re.thickness = 2, re.color = "#404040", re.isHitTestVisible = !1, $.addControl(re, 2, 0); var le = new T; le.name = "Current Color Label", le.text = "current", le.color = u, le.fontSize = se, $.addControl(le, 3, 0); var _e = new Y; _e.name = "Button Grid", _e.height = .8; var he = 1 / 3; _e.addRowDefinition(he, !1), _e.addRowDefinition(he, !1), _e.addRowDefinition(he, !1), Z.addControl(_e, 0, 1); var ce = Math.floor(parseInt(s.pickerWidth) * H[1] * q[1] * .67).toString() + "px", de = Math.floor(parseInt(s.pickerHeight) * z[1] * K[0] * (parseFloat(_e.height.toString()) / 100) * he * .7).toString() + "px"; x = parseFloat(ce) > parseFloat(de) ? Math.floor(.45 * parseFloat(de)) : Math.floor(.11 * parseFloat(ce)); var ue = F.CreateSimpleButton("butOK", "OK"); ue.width = ce, ue.height = de, ue.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, ue.thickness = 2, ue.color = u, ue.fontSize = x, ue.background = f, ue.onPointerEnterObservable.add(function () { ue.background = m; }), ue.onPointerOutObservable.add(function () { ue.background = f; }), ue.pointerDownAnimation = function () { ue.background = g; }, ue.pointerUpAnimation = function () { ue.background = m; }, ue.onPointerClickObservable.add(function () { Me(!1), Le(ne.background); }), _e.addControl(ue, 0, 0); var fe = F.CreateSimpleButton("butCancel", "Cancel"); fe.width = ce, fe.height = de, fe.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, fe.thickness = 2, fe.color = u, fe.fontSize = x, fe.background = f, fe.onPointerEnterObservable.add(function () { fe.background = m; }), fe.onPointerOutObservable.add(function () { fe.background = f; }), fe.pointerDownAnimation = function () { fe.background = g; }, fe.pointerUpAnimation = function () { fe.background = m; }, fe.onPointerClickObservable.add(function () { Me(!1), Le(oe.background); }), _e.addControl(fe, 1, 0), s.savedColors && (w = F.CreateSimpleButton("butSave", "Save"), w.width = ce, w.height = de, w.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, w.thickness = 2, w.fontSize = x, s.savedColors.length < s.swatchLimit ? (w.color = u, w.background = f) : De(w, !0), w.onPointerEnterObservable.add(function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = m); }), w.onPointerOutObservable.add(function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = f); }), w.pointerDownAnimation = function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = g); }, w.pointerUpAnimation = function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = m); }, w.onPointerClickObservable.add(function () { s.savedColors && (0 == s.savedColors.length && Ee(!0), s.savedColors.length < s.swatchLimit && Fe(ne.background, w), Me(!1)); }), s.savedColors.length > 0 && Ee(!0), _e.addControl(w, 2, 0)); var me = new Y; me.name = "Dialog Lower Right", me.addRowDefinition(.02, !1), me.addRowDefinition(.63, !1), me.addRowDefinition(.21, !1), me.addRowDefinition(.14, !1), j.addControl(me, 1, 0); var ge = t.Color3.FromHexString(s.lastColor), be = new Y; be.name = "RGB Values", be.width = .82, be.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, be.addRowDefinition(1 / 3, !1), be.addRowDefinition(1 / 3, !1), be.addRowDefinition(1 / 3, !1), be.addColumnDefinition(.1, !1), be.addColumnDefinition(.2, !1), be.addColumnDefinition(.7, !1), me.addControl(be, 1, 0); for (var e_98 = 0; e_98 < S.length; e_98++) {
3039
- var t_56 = new T;
3040
- t_56.text = S[e_98], t_56.color = u, t_56.fontSize = x, be.addControl(t_56, e_98, 0);
3049
+ } var L = new Y; L.name = "Picker Panel", L.height = s.pickerHeight; var D = parseInt(s.headerHeight) / parseInt(s.pickerHeight), z = [D, 1 - D]; L.addRowDefinition(z[0], !1), L.addRowDefinition(z[1], !1), E.addControl(L, 0, 0); var N = new y; N.name = "Dialogue Header Bar", N.background = "#cccccc", N.thickness = 0, L.addControl(N, 0, 0); var A = F.CreateSimpleButton("closeButton", "a"); A.fontFamily = "coreglyphs"; var V = t.Color3.FromHexString(N.background), Q = new t.Color3(1 - V.r, 1 - V.g, 1 - V.b); A.color = Q.toHexString(), A.fontSize = Math.floor(.6 * parseInt(s.headerHeight)), A.textBlock.textVerticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, A.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_RIGHT, A.height = A.width = s.headerHeight, A.background = N.background, A.thickness = 0, A.pointerDownAnimation = function () { }, A.pointerUpAnimation = function () { A.background = N.background; }, A.pointerEnterAnimation = function () { A.color = N.background, A.background = "red"; }, A.pointerOutAnimation = function () { A.color = Q.toHexString(), A.background = N.background; }, A.onPointerClickObservable.add(function () { De(oe.background); }), L.addControl(A, 0, 0); var W = new Y; W.name = "Dialogue Body", W.background = f; var H = [.4375, .5625]; W.addRowDefinition(1, !1), W.addColumnDefinition(H[0], !1), W.addColumnDefinition(H[1], !1), L.addControl(W, 1, 0); var U = new Y; U.name = "Picker Grid", U.addRowDefinition(.85, !1), U.addRowDefinition(.15, !1), W.addControl(U, 0, 0); var X = new e; X.name = "GUI Color Picker", s.pickerHeight < s.pickerWidth ? X.width = .89 : X.height = .89, X.value = t.Color3.FromHexString(s.lastColor), X.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_CENTER, X.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, X.onPointerDownObservable.add(function () { O = X.name, k = "", Me(!1); }), X.onValueChangedObservable.add(function (e) { O == X.name && Re(e, X.name); }), U.addControl(X, 0, 0); var j = new Y; j.name = "Dialogue Right Half", j.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT; var K = [.514, .486]; j.addRowDefinition(K[0], !1), j.addRowDefinition(K[1], !1), W.addControl(j, 1, 1); var Z = new Y; Z.name = "Swatches and Buttons"; var q = [.417, .583]; Z.addRowDefinition(1, !1), Z.addColumnDefinition(q[0], !1), Z.addColumnDefinition(q[1], !1), j.addControl(Z, 0, 0); var $ = new Y; $.name = "New and Current Swatches"; var J = [.04, .16, .64, .16]; $.addRowDefinition(J[0], !1), $.addRowDefinition(J[1], !1), $.addRowDefinition(J[2], !1), $.addRowDefinition(J[3], !1), Z.addControl($, 0, 0); var ee = new Y; ee.name = "Active Swatches", ee.width = .67, ee.addRowDefinition(.5, !1), ee.addRowDefinition(.5, !1), $.addControl(ee, 2, 0); var te = Math.floor(parseInt(s.pickerWidth) * H[1] * q[0] * .11), ie = Math.floor(parseInt(s.pickerHeight) * z[1] * K[0] * J[1] * .5); var se; se = s.pickerWidth > s.pickerHeight ? ie : te; var ae = new T; ae.text = "new", ae.name = "New Color Label", ae.color = u, ae.fontSize = se, $.addControl(ae, 1, 0); var ne = new y; ne.name = "New Color Swatch", ne.background = s.lastColor, ne.thickness = 0, ee.addControl(ne, 0, 0); var oe = F.CreateSimpleButton("currentSwatch", ""); oe.background = s.lastColor, oe.thickness = 0, oe.onPointerClickObservable.add(function () { Re(t.Color3.FromHexString(oe.background), oe.name), Me(!1); }), oe.pointerDownAnimation = function () { }, oe.pointerUpAnimation = function () { }, oe.pointerEnterAnimation = function () { }, oe.pointerOutAnimation = function () { }, ee.addControl(oe, 1, 0); var re = new y; re.name = "Swatch Outline", re.width = .67, re.thickness = 2, re.color = "#404040", re.isHitTestVisible = !1, $.addControl(re, 2, 0); var le = new T; le.name = "Current Color Label", le.text = "current", le.color = u, le.fontSize = se, $.addControl(le, 3, 0); var _e = new Y; _e.name = "Button Grid", _e.height = .8; var he = 1 / 3; _e.addRowDefinition(he, !1), _e.addRowDefinition(he, !1), _e.addRowDefinition(he, !1), Z.addControl(_e, 0, 1); var ce = Math.floor(parseInt(s.pickerWidth) * H[1] * q[1] * .67).toString() + "px", de = Math.floor(parseInt(s.pickerHeight) * z[1] * K[0] * (parseFloat(_e.height.toString()) / 100) * he * .7).toString() + "px"; x = parseFloat(ce) > parseFloat(de) ? Math.floor(.45 * parseFloat(de)) : Math.floor(.11 * parseFloat(ce)); var ue = F.CreateSimpleButton("butOK", "OK"); ue.width = ce, ue.height = de, ue.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, ue.thickness = 2, ue.color = u, ue.fontSize = x, ue.background = f, ue.onPointerEnterObservable.add(function () { ue.background = m; }), ue.onPointerOutObservable.add(function () { ue.background = f; }), ue.pointerDownAnimation = function () { ue.background = g; }, ue.pointerUpAnimation = function () { ue.background = m; }, ue.onPointerClickObservable.add(function () { Me(!1), De(ne.background); }), _e.addControl(ue, 0, 0); var fe = F.CreateSimpleButton("butCancel", "Cancel"); fe.width = ce, fe.height = de, fe.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, fe.thickness = 2, fe.color = u, fe.fontSize = x, fe.background = f, fe.onPointerEnterObservable.add(function () { fe.background = m; }), fe.onPointerOutObservable.add(function () { fe.background = f; }), fe.pointerDownAnimation = function () { fe.background = g; }, fe.pointerUpAnimation = function () { fe.background = m; }, fe.onPointerClickObservable.add(function () { Me(!1), De(oe.background); }), _e.addControl(fe, 1, 0), s.savedColors && (w = F.CreateSimpleButton("butSave", "Save"), w.width = ce, w.height = de, w.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, w.thickness = 2, w.fontSize = x, s.savedColors.length < s.swatchLimit ? (w.color = u, w.background = f) : Le(w, !0), w.onPointerEnterObservable.add(function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = m); }), w.onPointerOutObservable.add(function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = f); }), w.pointerDownAnimation = function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = g); }, w.pointerUpAnimation = function () { s.savedColors && s.savedColors.length < s.swatchLimit && (w.background = m); }, w.onPointerClickObservable.add(function () { s.savedColors && (0 == s.savedColors.length && Ee(!0), s.savedColors.length < s.swatchLimit && Fe(ne.background, w), Me(!1)); }), s.savedColors.length > 0 && Ee(!0), _e.addControl(w, 2, 0)); var me = new Y; me.name = "Dialog Lower Right", me.addRowDefinition(.02, !1), me.addRowDefinition(.63, !1), me.addRowDefinition(.21, !1), me.addRowDefinition(.14, !1), j.addControl(me, 1, 0); var ge = t.Color3.FromHexString(s.lastColor), be = new Y; be.name = "RGB Values", be.width = .82, be.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, be.addRowDefinition(1 / 3, !1), be.addRowDefinition(1 / 3, !1), be.addRowDefinition(1 / 3, !1), be.addColumnDefinition(.1, !1), be.addColumnDefinition(.2, !1), be.addColumnDefinition(.7, !1), me.addControl(be, 1, 0); for (var e_98 = 0; e_98 < S.length; e_98++) {
3050
+ var t_55 = new T;
3051
+ t_55.text = S[e_98], t_55.color = u, t_55.fontSize = x, be.addControl(t_55, e_98, 0);
3041
3052
  } var ve = new G; ve.width = .83, ve.height = .72, ve.name = "rIntField", ve.fontSize = x, ve.text = (255 * ge.r).toString(), ve.color = B, ve.background = P, ve.onFocusObservable.add(function () { O = ve.name, k = ve.text, Me(!1); }), ve.onBlurObservable.add(function () { "" == ve.text && (ve.text = "0"), we(ve, "r"), O == ve.name && (O = ""); }), ve.onTextChangedObservable.add(function () { O == ve.name && we(ve, "r"); }), be.addControl(ve, 0, 1); var pe = new G; pe.width = .83, pe.height = .72, pe.name = "gIntField", pe.fontSize = x, pe.text = (255 * ge.g).toString(), pe.color = B, pe.background = P, pe.onFocusObservable.add(function () { O = pe.name, k = pe.text, Me(!1); }), pe.onBlurObservable.add(function () { "" == pe.text && (pe.text = "0"), we(pe, "g"), O == pe.name && (O = ""); }), pe.onTextChangedObservable.add(function () { O == pe.name && we(pe, "g"); }), be.addControl(pe, 1, 1); var xe = new G; xe.width = .83, xe.height = .72, xe.name = "bIntField", xe.fontSize = x, xe.text = (255 * ge.b).toString(), xe.color = B, xe.background = P, xe.onFocusObservable.add(function () { O = xe.name, k = xe.text, Me(!1); }), xe.onBlurObservable.add(function () { "" == xe.text && (xe.text = "0"), we(xe, "b"), O == xe.name && (O = ""); }), xe.onTextChangedObservable.add(function () { O == xe.name && we(xe, "b"); }), be.addControl(xe, 2, 1); var Ie = new G; Ie.width = .95, Ie.height = .72, Ie.name = "rDecField", Ie.fontSize = x, Ie.text = ge.r.toString(), Ie.color = B, Ie.background = P, Ie.onFocusObservable.add(function () { O = Ie.name, k = Ie.text, Me(!1); }), Ie.onBlurObservable.add(function () { 0 != parseFloat(Ie.text) && "" != Ie.text || (Ie.text = "0", ke(Ie, "r")), O == Ie.name && (O = ""); }), Ie.onTextChangedObservable.add(function () { O == Ie.name && ke(Ie, "r"); }), be.addControl(Ie, 0, 2); var Se = new G; Se.width = .95, Se.height = .72, Se.name = "gDecField", Se.fontSize = x, Se.text = ge.g.toString(), Se.color = B, Se.background = P, Se.onFocusObservable.add(function () { O = Se.name, k = Se.text, Me(!1); }), Se.onBlurObservable.add(function () { 0 != parseFloat(Se.text) && "" != Se.text || (Se.text = "0", ke(Se, "g")), O == Se.name && (O = ""); }), Se.onTextChangedObservable.add(function () { O == Se.name && ke(Se, "g"); }), be.addControl(Se, 1, 2); var ye = new G; ye.width = .95, ye.height = .72, ye.name = "bDecField", ye.fontSize = x, ye.text = ge.b.toString(), ye.color = B, ye.background = P, ye.onFocusObservable.add(function () { O = ye.name, k = ye.text, Me(!1); }), ye.onBlurObservable.add(function () { 0 != parseFloat(ye.text) && "" != ye.text || (ye.text = "0", ke(ye, "b")), O == ye.name && (O = ""); }), ye.onTextChangedObservable.add(function () { O == ye.name && ke(ye, "b"); }), be.addControl(ye, 2, 2); var Pe = new Y; Pe.name = "Hex Value", Pe.width = .82, Pe.addRowDefinition(1, !1), Pe.addColumnDefinition(.1, !1), Pe.addColumnDefinition(.9, !1), me.addControl(Pe, 2, 0); var Be = new T; Be.text = "#", Be.color = u, Be.fontSize = x, Pe.addControl(Be, 0, 0); var Ce = new G; Ce.width = .96, Ce.height = .72, Ce.name = "hexField", Ce.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_CENTER, Ce.fontSize = x; var Te = s.lastColor.split("#"); function Re(e, t) { O = t; var i = e.toHexString(); if (ne.background = i, ve.name != O && (ve.text = Math.floor(255 * e.r).toString()), pe.name != O && (pe.text = Math.floor(255 * e.g).toString()), xe.name != O && (xe.text = Math.floor(255 * e.b).toString()), Ie.name != O && (Ie.text = e.r.toString()), Se.name != O && (Se.text = e.g.toString()), ye.name != O && (ye.text = e.b.toString()), Ce.name != O) {
3042
3053
  var e_99 = i.split("#");
3043
3054
  Ce.text = e_99[1];
@@ -3051,12 +3062,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3051
3062
  return void (e.text = k); "" != s && "." != s && 0 != parseFloat(s) && (parseFloat(s) < 0 ? s = "0.0" : parseFloat(s) > 1 ? s = "1.0" : isNaN(parseFloat(s)) && (s = "0.0")), O == e.name && (k = s), "" != s && "." != s && 0 != parseFloat(s) ? (s = parseFloat(s).toString(), e.text = s) : s = "0.0"; var a = t.Color3.FromHexString(ne.background); O == e.name && Re("r" == i ? new t.Color3(parseFloat(s), a.g, a.b) : "g" == i ? new t.Color3(a.r, parseFloat(s), a.b) : new t.Color3(a.r, a.g, parseFloat(s)), e.name); } function Oe() { if (s.savedColors && s.savedColors[C]) {
3052
3063
  var e_100;
3053
3064
  e_100 = M ? "b" : "";
3054
- var i_36 = F.CreateSimpleButton("Swatch_" + C, e_100);
3055
- i_36.fontFamily = "coreglyphs";
3065
+ var i_37 = F.CreateSimpleButton("Swatch_" + C, e_100);
3066
+ i_37.fontFamily = "coreglyphs";
3056
3067
  var a_20 = t.Color3.FromHexString(s.savedColors[C]), n_13 = a_20.r + a_20.g + a_20.b;
3057
- i_36.color = n_13 > p ? "#aaaaaa" : "#ffffff", i_36.fontSize = Math.floor(.7 * h), i_36.textBlock.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, i_36.height = i_36.width = h.toString() + "px", i_36.background = s.savedColors[C], i_36.thickness = 2;
3058
- var o_14 = C;
3059
- return i_36.pointerDownAnimation = function () { i_36.thickness = 4; }, i_36.pointerUpAnimation = function () { i_36.thickness = 3; }, i_36.pointerEnterAnimation = function () { i_36.thickness = 3; }, i_36.pointerOutAnimation = function () { i_36.thickness = 2; }, i_36.onPointerClickObservable.add(function () { var e; M ? (e = o_14, s.savedColors && s.savedColors.splice(e, 1), s.savedColors && 0 == s.savedColors.length && (Ee(!1), M = !1), Fe("", w)) : s.savedColors && Re(t.Color3.FromHexString(s.savedColors[o_14]), i_36.name); }), i_36;
3068
+ i_37.color = n_13 > p ? "#aaaaaa" : "#ffffff", i_37.fontSize = Math.floor(.7 * h), i_37.textBlock.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, i_37.height = i_37.width = h.toString() + "px", i_37.background = s.savedColors[C], i_37.thickness = 2;
3069
+ var o_15 = C;
3070
+ return i_37.pointerDownAnimation = function () { i_37.thickness = 4; }, i_37.pointerUpAnimation = function () { i_37.thickness = 3; }, i_37.pointerEnterAnimation = function () { i_37.thickness = 3; }, i_37.pointerOutAnimation = function () { i_37.thickness = 2; }, i_37.onPointerClickObservable.add(function () { var e; M ? (e = o_15, s.savedColors && s.savedColors.splice(e, 1), s.savedColors && 0 == s.savedColors.length && (Ee(!1), M = !1), Fe("", w)) : s.savedColors && Re(t.Color3.FromHexString(s.savedColors[o_15]), i_37.name); }), i_37;
3060
3071
  } return null; } function Me(e) { var t; if (void 0 !== e && (M = e), M) {
3061
3072
  for (var e_101 = 0; e_101 < R.children.length; e_101++)
3062
3073
  t = R.children[e_101], t.textBlock.text = "b";
@@ -3068,42 +3079,42 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3068
3079
  void 0 !== I && (I.textBlock.text = "Edit");
3069
3080
  } } function Fe(e, t) { if (s.savedColors) {
3070
3081
  "" != e && s.savedColors.push(e), C = 0, R.clearControls();
3071
- var i_37 = Math.ceil(s.savedColors.length / s.numSwatchesPerLine);
3082
+ var i_38 = Math.ceil(s.savedColors.length / s.numSwatchesPerLine);
3072
3083
  var a_21;
3073
- if (a_21 = 0 == i_37 ? 0 : i_37 + 1, R.rowCount != i_37 + a_21) {
3084
+ if (a_21 = 0 == i_38 ? 0 : i_38 + 1, R.rowCount != i_38 + a_21) {
3074
3085
  var e_103 = R.rowCount;
3075
- for (var t_57 = 0; t_57 < e_103; t_57++)
3086
+ for (var t_56 = 0; t_56 < e_103; t_56++)
3076
3087
  R.removeRowDefinition(0);
3077
- for (var e_104 = 0; e_104 < i_37 + a_21; e_104++)
3088
+ for (var e_104 = 0; e_104 < i_38 + a_21; e_104++)
3078
3089
  e_104 % 2 ? R.addRowDefinition(h, !0) : R.addRowDefinition(r, !0);
3079
3090
  }
3080
- R.height = (h * i_37 + a_21 * r).toString() + "px";
3081
- for (var e_105 = 1, t_58 = 1; e_105 < i_37 + a_21; e_105 += 2, t_58++) {
3082
- var i_38 = void 0;
3083
- i_38 = s.savedColors.length > t_58 * s.numSwatchesPerLine ? s.numSwatchesPerLine : s.savedColors.length - (t_58 - 1) * s.numSwatchesPerLine;
3084
- var a_22 = Math.min(Math.max(i_38, 0), s.numSwatchesPerLine);
3085
- for (var t_59 = 0, i_39 = 1; t_59 < a_22; t_59++) {
3086
- if (t_59 > s.numSwatchesPerLine)
3091
+ R.height = (h * i_38 + a_21 * r).toString() + "px";
3092
+ for (var e_105 = 1, t_57 = 1; e_105 < i_38 + a_21; e_105 += 2, t_57++) {
3093
+ var i_39 = void 0;
3094
+ i_39 = s.savedColors.length > t_57 * s.numSwatchesPerLine ? s.numSwatchesPerLine : s.savedColors.length - (t_57 - 1) * s.numSwatchesPerLine;
3095
+ var a_22 = Math.min(Math.max(i_39, 0), s.numSwatchesPerLine);
3096
+ for (var t_58 = 0, i_40 = 1; t_58 < a_22; t_58++) {
3097
+ if (t_58 > s.numSwatchesPerLine)
3087
3098
  continue;
3088
3099
  var a_23 = Oe();
3089
- null != a_23 && (R.addControl(a_23, e_105, i_39), i_39 += 2, C++);
3100
+ null != a_23 && (R.addControl(a_23, e_105, i_40), i_40 += 2, C++);
3090
3101
  }
3091
3102
  }
3092
- s.savedColors.length >= s.swatchLimit ? De(t, !0) : De(t, !1);
3093
- } } function Ee(e) { e ? (I = F.CreateSimpleButton("butEdit", "Edit"), I.width = ce, I.height = de, I.left = Math.floor(.1 * parseInt(ce)).toString() + "px", I.top = (-1 * parseFloat(I.left)).toString() + "px", I.verticalAlignment = b.VERTICAL_ALIGNMENT_BOTTOM, I.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, I.thickness = 2, I.color = u, I.fontSize = x, I.background = f, I.onPointerEnterObservable.add(function () { I.background = m; }), I.onPointerOutObservable.add(function () { I.background = f; }), I.pointerDownAnimation = function () { I.background = g; }, I.pointerUpAnimation = function () { I.background = m; }, I.onPointerClickObservable.add(function () { M = !M, Me(); }), U.addControl(I, 1, 0)) : U.removeControl(I); } function De(e, t) { t ? (e.color = "#555555", e.background = "#454545") : (e.color = u, e.background = f); } function Le(e) { s.savedColors && s.savedColors.length > 0 ? a({ savedColors: s.savedColors, pickedColor: e }) : a({ pickedColor: e }), i.removeControl(E); } Ce.text = Te[1], Ce.color = B, Ce.background = P, Ce.onFocusObservable.add(function () { O = Ce.name, k = Ce.text, Me(!1); }), Ce.onBlurObservable.add(function () { if (3 == Ce.text.length) {
3103
+ s.savedColors.length >= s.swatchLimit ? Le(t, !0) : Le(t, !1);
3104
+ } } function Ee(e) { e ? (I = F.CreateSimpleButton("butEdit", "Edit"), I.width = ce, I.height = de, I.left = Math.floor(.1 * parseInt(ce)).toString() + "px", I.top = (-1 * parseFloat(I.left)).toString() + "px", I.verticalAlignment = b.VERTICAL_ALIGNMENT_BOTTOM, I.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, I.thickness = 2, I.color = u, I.fontSize = x, I.background = f, I.onPointerEnterObservable.add(function () { I.background = m; }), I.onPointerOutObservable.add(function () { I.background = f; }), I.pointerDownAnimation = function () { I.background = g; }, I.pointerUpAnimation = function () { I.background = m; }, I.onPointerClickObservable.add(function () { M = !M, Me(); }), U.addControl(I, 1, 0)) : U.removeControl(I); } function Le(e, t) { t ? (e.color = "#555555", e.background = "#454545") : (e.color = u, e.background = f); } function De(e) { s.savedColors && s.savedColors.length > 0 ? a({ savedColors: s.savedColors, pickedColor: e }) : a({ pickedColor: e }), i.removeControl(E); } Ce.text = Te[1], Ce.color = B, Ce.background = P, Ce.onFocusObservable.add(function () { O = Ce.name, k = Ce.text, Me(!1); }), Ce.onBlurObservable.add(function () { if (3 == Ce.text.length) {
3094
3105
  var e_106 = Ce.text.split("");
3095
3106
  Ce.text = e_106[0] + e_106[0] + e_106[1] + e_106[1] + e_106[2] + e_106[2];
3096
3107
  } "" == Ce.text && (Ce.text = "000000", Re(t.Color3.FromHexString(Ce.text), "b")), O == Ce.name && (O = ""); }), Ce.onTextChangedObservable.add(function () { var e = Ce.text; var i = /[^0-9A-F]/i.test(e); if ((Ce.text.length > 6 || i) && O == Ce.name)
3097
3108
  Ce.text = k;
3098
3109
  else {
3099
3110
  if (Ce.text.length < 6) {
3100
- var t_60 = 6 - Ce.text.length;
3101
- for (var i_40 = 0; i_40 < t_60; i_40++)
3111
+ var t_59 = 6 - Ce.text.length;
3112
+ for (var i_41 = 0; i_41 < t_59; i_41++)
3102
3113
  e = "0" + e;
3103
3114
  }
3104
3115
  if (3 == Ce.text.length) {
3105
- var t_61 = Ce.text.split("");
3106
- e = t_61[0] + t_61[0] + t_61[1] + t_61[1] + t_61[2] + t_61[2];
3116
+ var t_60 = Ce.text.split("");
3117
+ e = t_60[0] + t_60[0] + t_60[1] + t_60[1] + t_60[2] + t_60[2];
3107
3118
  }
3108
3119
  e = "#" + e, O == Ce.name && (k = Ce.text, Re(t.Color3.FromHexString(e), Ce.name));
3109
3120
  } }), Pe.addControl(Ce, 0, 1), s.savedColors && s.savedColors.length > 0 && Fe("", w); })];
@@ -3216,21 +3227,21 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3216
3227
  default: return 0;
3217
3228
  } };
3218
3229
  e.prototype._resolveFlexibleLengths = function (e, t) { var i = t - e.basis; var s, a = i; do {
3219
- var t_62 = 0, n_14 = 0;
3220
- for (var s_37 = e.start; s_37 < e.end; s_37++) {
3221
- var e_107 = this._items[s_37];
3230
+ var t_61 = 0, n_14 = 0;
3231
+ for (var s_38 = e.start; s_38 < e.end; s_38++) {
3232
+ var e_107 = this._items[s_38];
3222
3233
  if (e_107.frozen)
3223
3234
  continue;
3224
3235
  var a_24 = i >= 0 ? e_107.control.flexGrow : e_107.control.flexShrink;
3225
- t_62 += i >= 0 ? a_24 : a_24 * e_107.basis, n_14 += a_24;
3236
+ t_61 += i >= 0 ? a_24 : a_24 * e_107.basis, n_14 += a_24;
3226
3237
  }
3227
- var o_15 = i >= 0 ? Math.min(a, i * n_14) : Math.max(a, i * n_14);
3238
+ var o_16 = i >= 0 ? Math.min(a, i * n_14) : Math.max(a, i * n_14);
3228
3239
  s = !1;
3229
3240
  for (var n_15 = e.start; n_15 < e.end; n_15++) {
3230
3241
  var e_108 = this._items[n_15];
3231
3242
  if (e_108.frozen)
3232
3243
  continue;
3233
- var r_7 = i >= 0 ? e_108.control.flexGrow : e_108.control.flexShrink * e_108.basis, l_8 = e_108.basis + (t_62 ? o_15 * (r_7 / t_62) : 0);
3244
+ var r_8 = i >= 0 ? e_108.control.flexGrow : e_108.control.flexShrink * e_108.basis, l_8 = e_108.basis + (t_61 ? o_16 * (r_8 / t_61) : 0);
3234
3245
  e_108.size = Math.max(0, l_8), l_8 < 0 && (e_108.frozen = !0, a += e_108.basis, s = !0);
3235
3246
  }
3236
3247
  } while (s); };
@@ -3241,14 +3252,14 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3241
3252
  var h, c = 0, d = 0;
3242
3253
  try {
3243
3254
  for (var _d = __values(this._children), _f = _d.next(); !_f.done; _f = _d.next()) {
3244
- var i_41 = _f.value;
3245
- if (!i_41.isVisible || i_41.notRenderable)
3255
+ var i_42 = _f.value;
3256
+ if (!i_42.isVisible || i_42.notRenderable)
3246
3257
  continue;
3247
- i_41._tempParentMeasure.copyFrom(this._measureForChildren);
3248
- var s_38 = Math.max(0, i_41._getValueInPixel(i_41.getDimension(t ? "width" : "height"), o)), a_25 = Math.max(0, i_41._getValueInPixel(i_41.getDimension(t ? "height" : "width"), r));
3249
- (!h || "nowrap" !== this._flexWrap && c > h.start && h.basis + l + s_38 > o) && (h = null !== (e = this._lines[d]) && void 0 !== e ? e : this._lines[d] = { start: 0, end: 0, basis: 0, cross: 0 }, h.start = c, h.end = c, h.basis = 0, h.cross = 0, d++), h.basis += s_38 + (c > h.start ? l : 0), h.cross = Math.max(h.cross, a_25), h.end++;
3258
+ i_42._tempParentMeasure.copyFrom(this._measureForChildren);
3259
+ var s_39 = Math.max(0, i_42._getValueInPixel(i_42.getDimension(t ? "width" : "height"), o)), a_25 = Math.max(0, i_42._getValueInPixel(i_42.getDimension(t ? "height" : "width"), r));
3260
+ (!h || "nowrap" !== this._flexWrap && c > h.start && h.basis + l + s_39 > o) && (h = null !== (e = this._lines[d]) && void 0 !== e ? e : this._lines[d] = { start: 0, end: 0, basis: 0, cross: 0 }, h.start = c, h.end = c, h.basis = 0, h.cross = 0, d++), h.basis += s_39 + (c > h.start ? l : 0), h.cross = Math.max(h.cross, a_25), h.end++;
3250
3261
  var n_16 = this._items[c];
3251
- n_16 ? (n_16.control = i_41, n_16.basis = n_16.size = s_38, n_16.cross = a_25, n_16.frozen = !1) : this._items[c] = { control: i_41, basis: s_38, cross: a_25, size: s_38, frozen: !1 }, c++;
3262
+ n_16 ? (n_16.control = i_42, n_16.basis = n_16.size = s_39, n_16.cross = a_25, n_16.frozen = !1) : this._items[c] = { control: i_42, basis: s_39, cross: a_25, size: s_39, frozen: !1 }, c++;
3252
3263
  }
3253
3264
  }
3254
3265
  catch (e_109_1) { e_109 = { error: e_109_1 }; }
@@ -3280,8 +3291,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3280
3291
  var e_113 = _l.value;
3281
3292
  e_113.cross += b, this._resolveFlexibleLengths(e_113, o);
3282
3293
  var a_26 = Math.max(0, e_113.end - e_113.start - 1) * l;
3283
- for (var t_63 = e_113.start; t_63 < e_113.end; t_63++)
3284
- a_26 += this._items[t_63].size;
3294
+ for (var t_62 = e_113.start; t_62 < e_113.end; t_62++)
3295
+ a_26 += this._items[t_62].size;
3285
3296
  var n_17 = o - a_26, h_4 = this._spacing(this._justifyContent, n_17, e_113.end - e_113.start);
3286
3297
  var c_2 = this._offset(this._justifyContent, n_17, h_4);
3287
3298
  for (var a_27 = e_113.start; a_27 < e_113.end; a_27++) {
@@ -3376,32 +3387,32 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3376
3387
  if (this._blinkIsEven = !1, i && (i.shiftKey ? (this._isTextHighlightOn || (this._highlightCursorInfo.initialLineIndex = this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialStartIndex = this._cursorInfo.globalStartIndex, this._highlightCursorInfo.initialRelativeStartIndex = this._cursorInfo.relativeStartIndex), this._isTextHighlightOn = !0, this._blinkIsEven = !0) : this._isTextHighlightOn = !1, i.preventDefault()), 0 === this._cursorInfo.currentLineIndex)
3377
3388
  this._cursorInfo.globalStartIndex = 0;
3378
3389
  else {
3379
- var e_116 = this._lines[this._cursorInfo.currentLineIndex], t_64 = this._lines[this._cursorInfo.currentLineIndex - 1];
3380
- var i_42, s_39;
3381
- !this._isTextHighlightOn || this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (i_42 = this._cursorInfo.globalStartIndex, s_39 = this._cursorInfo.relativeStartIndex) : (i_42 = this._cursorInfo.globalEndIndex, s_39 = this._cursorInfo.relativeEndIndex);
3382
- var a_28 = e_116.text.substring(0, s_39), n_19 = this._contextForBreakLines.measureText(a_28).width;
3383
- var o_16 = 0, r_8 = 0;
3384
- i_42 -= s_39, i_42 -= t_64.text.length + t_64.lineEnding.length;
3390
+ var e_116 = this._lines[this._cursorInfo.currentLineIndex], t_63 = this._lines[this._cursorInfo.currentLineIndex - 1];
3391
+ var i_43, s_40;
3392
+ !this._isTextHighlightOn || this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (i_43 = this._cursorInfo.globalStartIndex, s_40 = this._cursorInfo.relativeStartIndex) : (i_43 = this._cursorInfo.globalEndIndex, s_40 = this._cursorInfo.relativeEndIndex);
3393
+ var a_28 = e_116.text.substring(0, s_40), n_19 = this._contextForBreakLines.measureText(a_28).width;
3394
+ var o_17 = 0, r_9 = 0;
3395
+ i_43 -= s_40, i_43 -= t_63.text.length + t_63.lineEnding.length;
3385
3396
  var l_9 = 0;
3386
- for (; o_16 < n_19 && l_9 < t_64.text.length;)
3387
- i_42++, l_9++, r_8 = Math.abs(n_19 - o_16), o_16 = this._contextForBreakLines.measureText(t_64.text.substring(0, l_9)).width;
3388
- Math.abs(n_19 - o_16) > r_8 && l_9 > 0 && i_42--, this._isTextHighlightOn ? this._cursorInfo.currentLineIndex <= this._highlightCursorInfo.initialLineIndex ? (this._cursorInfo.globalStartIndex = i_42, this._cursorInfo.globalEndIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeEndIndex = this._highlightCursorInfo.initialRelativeStartIndex) : this._cursorInfo.globalEndIndex = i_42 : this._cursorInfo.globalStartIndex = i_42;
3397
+ for (; o_17 < n_19 && l_9 < t_63.text.length;)
3398
+ i_43++, l_9++, r_9 = Math.abs(n_19 - o_17), o_17 = this._contextForBreakLines.measureText(t_63.text.substring(0, l_9)).width;
3399
+ Math.abs(n_19 - o_17) > r_9 && l_9 > 0 && i_43--, this._isTextHighlightOn ? this._cursorInfo.currentLineIndex <= this._highlightCursorInfo.initialLineIndex ? (this._cursorInfo.globalStartIndex = i_43, this._cursorInfo.globalEndIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeEndIndex = this._highlightCursorInfo.initialRelativeStartIndex) : this._cursorInfo.globalEndIndex = i_43 : this._cursorInfo.globalStartIndex = i_43;
3389
3400
  }
3390
3401
  return void this._markAsDirty();
3391
3402
  case "ArrowDown":
3392
3403
  if (this._blinkIsEven = !1, i && (i.shiftKey ? (this._isTextHighlightOn || (this._highlightCursorInfo.initialLineIndex = this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialStartIndex = this._cursorInfo.globalStartIndex, this._highlightCursorInfo.initialRelativeStartIndex = this._cursorInfo.relativeStartIndex), this._isTextHighlightOn = !0, this._blinkIsEven = !0) : this._isTextHighlightOn = !1, i.preventDefault()), this._cursorInfo.currentLineIndex === this._lines.length - 1)
3393
3404
  this._cursorInfo.globalStartIndex = this.text.length;
3394
3405
  else {
3395
- var e_117 = this._lines[this._cursorInfo.currentLineIndex], t_65 = this._lines[this._cursorInfo.currentLineIndex + 1];
3396
- var i_43, s_40;
3397
- !this._isTextHighlightOn || this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (i_43 = this._cursorInfo.globalStartIndex, s_40 = this._cursorInfo.relativeStartIndex) : (i_43 = this._cursorInfo.globalEndIndex, s_40 = this._cursorInfo.relativeEndIndex);
3398
- var a_29 = e_117.text.substring(0, s_40), n_20 = this._contextForBreakLines.measureText(a_29).width;
3399
- var o_17 = 0, r_9 = 0;
3400
- i_43 += e_117.text.length - s_40 + e_117.lineEnding.length;
3406
+ var e_117 = this._lines[this._cursorInfo.currentLineIndex], t_64 = this._lines[this._cursorInfo.currentLineIndex + 1];
3407
+ var i_44, s_41;
3408
+ !this._isTextHighlightOn || this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (i_44 = this._cursorInfo.globalStartIndex, s_41 = this._cursorInfo.relativeStartIndex) : (i_44 = this._cursorInfo.globalEndIndex, s_41 = this._cursorInfo.relativeEndIndex);
3409
+ var a_29 = e_117.text.substring(0, s_41), n_20 = this._contextForBreakLines.measureText(a_29).width;
3410
+ var o_18 = 0, r_10 = 0;
3411
+ i_44 += e_117.text.length - s_41 + e_117.lineEnding.length;
3401
3412
  var l_10 = 0;
3402
- for (; o_17 < n_20 && l_10 < t_65.text.length;)
3403
- i_43++, l_10++, r_9 = Math.abs(n_20 - o_17), o_17 = this._contextForBreakLines.measureText(t_65.text.substring(0, l_10)).width;
3404
- Math.abs(n_20 - o_17) > r_9 && l_10 > 0 && i_43--, this._isTextHighlightOn ? this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (this._cursorInfo.globalStartIndex = i_43, this._cursorInfo.globalStartIndex > this._cursorInfo.globalEndIndex && (this._cursorInfo.globalEndIndex += this._cursorInfo.globalStartIndex, this._cursorInfo.globalStartIndex = this._cursorInfo.globalEndIndex - this._cursorInfo.globalStartIndex, this._cursorInfo.globalEndIndex -= this._cursorInfo.globalStartIndex)) : (this._cursorInfo.globalEndIndex = i_43, this._cursorInfo.globalStartIndex = this._highlightCursorInfo.initialStartIndex) : this._cursorInfo.globalStartIndex = i_43;
3413
+ for (; o_18 < n_20 && l_10 < t_64.text.length;)
3414
+ i_44++, l_10++, r_10 = Math.abs(n_20 - o_18), o_18 = this._contextForBreakLines.measureText(t_64.text.substring(0, l_10)).width;
3415
+ Math.abs(n_20 - o_18) > r_10 && l_10 > 0 && i_44--, this._isTextHighlightOn ? this._cursorInfo.currentLineIndex < this._highlightCursorInfo.initialLineIndex ? (this._cursorInfo.globalStartIndex = i_44, this._cursorInfo.globalStartIndex > this._cursorInfo.globalEndIndex && (this._cursorInfo.globalEndIndex += this._cursorInfo.globalStartIndex, this._cursorInfo.globalStartIndex = this._cursorInfo.globalEndIndex - this._cursorInfo.globalStartIndex, this._cursorInfo.globalEndIndex -= this._cursorInfo.globalStartIndex)) : (this._cursorInfo.globalEndIndex = i_44, this._cursorInfo.globalStartIndex = this._highlightCursorInfo.initialStartIndex) : this._cursorInfo.globalStartIndex = i_44;
3405
3416
  }
3406
3417
  return void this._markAsDirty();
3407
3418
  }
@@ -3413,18 +3424,18 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3413
3424
  if (e === void 0) { e = ""; }
3414
3425
  var s = [], a = e.split(" ");
3415
3426
  var n = 0;
3416
- var _loop_2 = function (o_18) {
3417
- var r_10 = o_18 > 0 ? e + " " + a[o_18] : a[0], l_11 = i.measureText(r_10).width;
3427
+ var _loop_2 = function (o_19) {
3428
+ var r_11 = o_19 > 0 ? e + " " + a[o_19] : a[0], l_11 = i.measureText(r_11).width;
3418
3429
  if (l_11 > t) {
3419
- o_18 > 0 && (n = i.measureText(e).width, s.push({ text: e, width: n, lineEnding: " " })), e = a[o_18];
3420
- var r_11 = "";
3421
- e.split("").map(function (e) { i.measureText(r_11 + e).width > t && (s.push({ text: r_11, width: i.measureText(r_11).width, lineEnding: "" }), r_11 = ""), r_11 += e; }), e = r_11, n = i.measureText(e).width;
3430
+ o_19 > 0 && (n = i.measureText(e).width, s.push({ text: e, width: n, lineEnding: " " })), e = a[o_19];
3431
+ var r_12 = "";
3432
+ e.split("").map(function (e) { i.measureText(r_12 + e).width > t && (s.push({ text: r_12, width: i.measureText(r_12).width, lineEnding: "" }), r_12 = ""), r_12 += e; }), e = r_12, n = i.measureText(e).width;
3422
3433
  }
3423
3434
  else
3424
- n = l_11, e = r_10;
3435
+ n = l_11, e = r_11;
3425
3436
  };
3426
- for (var o_18 = 0; o_18 < a.length; o_18++) {
3427
- _loop_2(o_18);
3437
+ for (var o_19 = 0; o_19 < a.length; o_19++) {
3438
+ _loop_2(o_19);
3428
3439
  }
3429
3440
  return s.push({ text: e, width: n, lineEnding: " " }), s;
3430
3441
  };
@@ -3433,29 +3444,29 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3433
3444
  var i = [], s = (this.text || this.placeholderText).split("\n");
3434
3445
  if (this.clipContent)
3435
3446
  try {
3436
- for (var s_41 = __values(s), s_41_1 = s_41.next(); !s_41_1.done; s_41_1 = s_41.next()) {
3437
- var a_30 = s_41_1.value;
3447
+ for (var s_42 = __values(s), s_42_1 = s_42.next(); !s_42_1.done; s_42_1 = s_42.next()) {
3448
+ var a_30 = s_42_1.value;
3438
3449
  i.push.apply(i, __spreadArray([], __read(this._parseLineWordWrap(a_30, e, t)), false));
3439
3450
  }
3440
3451
  }
3441
3452
  catch (e_118_1) { e_118 = { error: e_118_1 }; }
3442
3453
  finally {
3443
3454
  try {
3444
- if (s_41_1 && !s_41_1.done && (_a = s_41.return)) _a.call(s_41);
3455
+ if (s_42_1 && !s_42_1.done && (_a = s_42.return)) _a.call(s_42);
3445
3456
  }
3446
3457
  finally { if (e_118) throw e_118.error; }
3447
3458
  }
3448
3459
  else
3449
3460
  try {
3450
- for (var s_42 = __values(s), s_42_1 = s_42.next(); !s_42_1.done; s_42_1 = s_42.next()) {
3451
- var e_120 = s_42_1.value;
3461
+ for (var s_43 = __values(s), s_43_1 = s_43.next(); !s_43_1.done; s_43_1 = s_43.next()) {
3462
+ var e_120 = s_43_1.value;
3452
3463
  i.push(this._parseLine(e_120, t));
3453
3464
  }
3454
3465
  }
3455
3466
  catch (e_119_1) { e_119 = { error: e_119_1 }; }
3456
3467
  finally {
3457
3468
  try {
3458
- if (s_42_1 && !s_42_1.done && (_b = s_42.return)) _b.call(s_42);
3469
+ if (s_43_1 && !s_43_1.done && (_b = s_43.return)) _b.call(s_43);
3459
3470
  }
3460
3471
  finally { if (e_119) throw e_119.error; }
3461
3472
  }
@@ -3466,16 +3477,16 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3466
3477
  return { text: e, width: t.measureText(e).width, lineEnding: " " };
3467
3478
  };
3468
3479
  e.prototype._preMeasure = function (e, t) { var i, s, a, n; this._fontOffset && !this._wasDirty || (this._fontOffset = b._GetFontOffset(t.font, null === (i = this._host.getScene()) || void 0 === i ? void 0 : i.getEngine())); var o = this._beforeRenderText(this._textWrapper).text; !this.text && this._placeholderText && (o = this._placeholderText), this._textWidth = t.measureText(o).width; var r = 2 * this._getValueInPixel(this._margin, e.width); if (this._autoStretchWidth) {
3469
- var i_44 = o.split("\n").reduce(function (e, i) { return t.measureText(i).width > t.measureText(e).width ? i : e; }, ""), s_43 = t.measureText(i_44).width;
3470
- this.width = Math.min(this._getValueInPixel(this._maxWidth, e.width), s_43 + r) + "px", this.autoStretchWidth = !0;
3480
+ var i_45 = o.split("\n").reduce(function (e, i) { return t.measureText(i).width > t.measureText(e).width ? i : e; }, ""), s_44 = t.measureText(i_45).width;
3481
+ this.width = Math.min(this._getValueInPixel(this._maxWidth, e.width), s_44 + r) + "px", this.autoStretchWidth = !0;
3471
3482
  } var l = null === (s = this.parent) || void 0 === s ? void 0 : s._getLayoutMeasureForChild(this); if (this._availableWidth = (null !== (a = null == l ? void 0 : l.width) && void 0 !== a ? a : this._getValueInPixel(this._width, e.width)) - r, this._lines = this._breakLines(this._availableWidth, t), this._contextForBreakLines = t, this._autoStretchHeight) {
3472
- var t_66 = this._lines.length * this._fontOffset.height + 2 * this._getValueInPixel(this._margin, e.height);
3473
- this.height = Math.min(this._getValueInPixel(this._maxHeight, e.height), t_66) + "px", this._autoStretchHeight = !0;
3483
+ var t_65 = this._lines.length * this._fontOffset.height + 2 * this._getValueInPixel(this._margin, e.height);
3484
+ this.height = Math.min(this._getValueInPixel(this._maxHeight, e.height), t_65) + "px", this._autoStretchHeight = !0;
3474
3485
  } var h = 2 * this._getValueInPixel(this._margin, e.height); if (this._availableHeight = (null !== (n = null == l ? void 0 : l.height) && void 0 !== n ? n : this._getValueInPixel(this._height, e.height)) - h, this._isFocused) {
3475
3486
  this._cursorInfo.currentLineIndex = 0;
3476
- var e_121 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length, t_67 = 0;
3477
- for (; t_67 + e_121 <= this._cursorInfo.globalStartIndex;)
3478
- t_67 += e_121, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_121 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3487
+ var e_121 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length, t_66 = 0;
3488
+ for (; t_66 + e_121 <= this._cursorInfo.globalStartIndex;)
3489
+ t_66 += e_121, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_121 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3479
3490
  } };
3480
3491
  e.prototype._textHasChanged = function () { !this._prevText && this._textWrapper.text && this.placeholderText && (this._cursorInfo.currentLineIndex = 0, this._cursorInfo.globalStartIndex = 1, this._cursorInfo.globalEndIndex = 1, this._cursorInfo.relativeStartIndex = 1, this._cursorInfo.relativeEndIndex = 1), _super.prototype._textHasChanged.call(this); };
3481
3492
  e.prototype._computeScroll = function () { if (this._clipTextLeft = this._currentMeasure.left + this._getValueInPixel(this._margin, this._cachedParentMeasure.width), this._clipTextTop = this._currentMeasure.top + this._getValueInPixel(this._margin, this._cachedParentMeasure.height), this._isFocused && this._lines[this._cursorInfo.currentLineIndex].width > this._availableWidth) {
@@ -3484,8 +3495,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3484
3495
  }
3485
3496
  else
3486
3497
  this._scrollLeft = this._clipTextLeft; if (this._isFocused) {
3487
- var e_123 = (this._cursorInfo.currentLineIndex + 1) * this._fontOffset.height, t_68 = this._clipTextTop - e_123;
3488
- this._scrollTop || (this._scrollTop = t_68);
3498
+ var e_123 = (this._cursorInfo.currentLineIndex + 1) * this._fontOffset.height, t_67 = this._clipTextTop - e_123;
3499
+ this._scrollTop || (this._scrollTop = t_67);
3489
3500
  }
3490
3501
  else
3491
3502
  this._scrollTop = this._clipTextTop; };
@@ -3519,34 +3530,34 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3519
3530
  n = s - this._fontOffset.height * (this._lines.length - 1) - this._fontOffset.descent;
3520
3531
  break;
3521
3532
  case b.VERTICAL_ALIGNMENT_CENTER: n = this._fontOffset.ascent + (s - this._fontOffset.height * this._lines.length) / 2;
3522
- } e.save(), e.beginPath(), e.fillStyle = this.fontStyle, !this._textWrapper.text && this.placeholderText && (e.fillStyle = this._placeholderColor), e.rect(this._clipTextLeft, this._clipTextTop, this._availableWidth + 2, this._availableHeight + 2), e.clip(), n += this._scrollTop; for (var t_69 = 0; t_69 < this._lines.length; t_69++) {
3523
- var i_45 = this._lines[t_69];
3524
- 0 !== t_69 && 0 !== this._lineSpacing.internalValue && (this._lineSpacing.isPercentage ? n += this._getValueInPixel(this._lineSpacing, 1) * this._getValueInPixel(this._height, this._cachedParentMeasure.height) : n += this._getValueInPixel(this._lineSpacing, 1)), this._drawText(i_45.text, i_45.width, n, e), n += this._fontOffset.height;
3533
+ } e.save(), e.beginPath(), e.fillStyle = this.fontStyle, !this._textWrapper.text && this.placeholderText && (e.fillStyle = this._placeholderColor), e.rect(this._clipTextLeft, this._clipTextTop, this._availableWidth + 2, this._availableHeight + 2), e.clip(), n += this._scrollTop; for (var t_68 = 0; t_68 < this._lines.length; t_68++) {
3534
+ var i_46 = this._lines[t_68];
3535
+ 0 !== t_68 && 0 !== this._lineSpacing.internalValue && (this._lineSpacing.isPercentage ? n += this._getValueInPixel(this._lineSpacing, 1) * this._getValueInPixel(this._height, this._cachedParentMeasure.height) : n += this._getValueInPixel(this._lineSpacing, 1)), this._drawText(i_46.text, i_46.width, n, e), n += this._fontOffset.height;
3525
3536
  } if (e.restore(), this._isFocused) {
3526
3537
  if (!this._blinkIsEven || this._isTextHighlightOn) {
3527
- var t_70 = this._scrollLeft + e.measureText(this._lines[this._cursorInfo.currentLineIndex].text.substring(0, this._cursorInfo.relativeStartIndex)).width;
3528
- t_70 < this._clipTextLeft ? (this._scrollLeft += this._clipTextLeft - t_70, t_70 = this._clipTextLeft, this._markAsDirty()) : t_70 > this._clipTextLeft + this._availableWidth && (this._scrollLeft += this._clipTextLeft + this._availableWidth - t_70, t_70 = this._clipTextLeft + this._availableWidth, this._markAsDirty());
3529
- var i_46 = this._scrollTop + this._cursorInfo.currentLineIndex * this._fontOffset.height;
3530
- i_46 < this._clipTextTop ? (this._scrollTop += this._clipTextTop - i_46, i_46 = this._clipTextTop, this._markAsDirty()) : i_46 + this._fontOffset.height > this._clipTextTop + this._availableHeight && this._availableHeight > this._fontOffset.height && (this._scrollTop += this._clipTextTop + this._availableHeight - i_46 - this._fontOffset.height, i_46 = this._clipTextTop + this._availableHeight - this._fontOffset.height, this._markAsDirty()), this._isTextHighlightOn || e.fillRect(t_70, i_46, 2, this._fontOffset.height);
3538
+ var t_69 = this._scrollLeft + e.measureText(this._lines[this._cursorInfo.currentLineIndex].text.substring(0, this._cursorInfo.relativeStartIndex)).width;
3539
+ t_69 < this._clipTextLeft ? (this._scrollLeft += this._clipTextLeft - t_69, t_69 = this._clipTextLeft, this._markAsDirty()) : t_69 > this._clipTextLeft + this._availableWidth && (this._scrollLeft += this._clipTextLeft + this._availableWidth - t_69, t_69 = this._clipTextLeft + this._availableWidth, this._markAsDirty());
3540
+ var i_47 = this._scrollTop + this._cursorInfo.currentLineIndex * this._fontOffset.height;
3541
+ i_47 < this._clipTextTop ? (this._scrollTop += this._clipTextTop - i_47, i_47 = this._clipTextTop, this._markAsDirty()) : i_47 + this._fontOffset.height > this._clipTextTop + this._availableHeight && this._availableHeight > this._fontOffset.height && (this._scrollTop += this._clipTextTop + this._availableHeight - i_47 - this._fontOffset.height, i_47 = this._clipTextTop + this._availableHeight - this._fontOffset.height, this._markAsDirty()), this._isTextHighlightOn || e.fillRect(t_69, i_47, 2, this._fontOffset.height);
3531
3542
  }
3532
3543
  if (this._resetBlinking(), this._isTextHighlightOn) {
3533
3544
  clearTimeout(this._blinkTimeout), this._highlightedText = this.text.substring(this._cursorInfo.globalStartIndex, this._cursorInfo.globalEndIndex), e.globalAlpha = this._highlighterOpacity, e.fillStyle = this._textHighlightColor;
3534
- var t_71 = Math.min(this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialLineIndex), i_47 = Math.max(this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialLineIndex);
3535
- var s_44 = this._scrollTop + t_71 * this._fontOffset.height;
3536
- for (var n_21 = t_71; n_21 <= i_47; n_21++) {
3537
- var o_19 = this._lines[n_21];
3538
- var r_12 = this._scrollLeft;
3545
+ var t_70 = Math.min(this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialLineIndex), i_48 = Math.max(this._cursorInfo.currentLineIndex, this._highlightCursorInfo.initialLineIndex);
3546
+ var s_45 = this._scrollTop + t_70 * this._fontOffset.height;
3547
+ for (var n_21 = t_70; n_21 <= i_48; n_21++) {
3548
+ var o_20 = this._lines[n_21];
3549
+ var r_13 = this._scrollLeft;
3539
3550
  switch (this._textHorizontalAlignment) {
3540
3551
  case b.HORIZONTAL_ALIGNMENT_LEFT:
3541
- r_12 += 0;
3552
+ r_13 += 0;
3542
3553
  break;
3543
3554
  case b.HORIZONTAL_ALIGNMENT_RIGHT:
3544
- r_12 += a - o_19.width;
3555
+ r_13 += a - o_20.width;
3545
3556
  break;
3546
- case b.HORIZONTAL_ALIGNMENT_CENTER: r_12 += (a - o_19.width) / 2;
3557
+ case b.HORIZONTAL_ALIGNMENT_CENTER: r_13 += (a - o_20.width) / 2;
3547
3558
  }
3548
- var l_12 = n_21 === t_71 ? this._cursorInfo.relativeStartIndex : 0, h_5 = n_21 === i_47 ? this._cursorInfo.relativeEndIndex : o_19.text.length, c_3 = e.measureText(o_19.text.substring(0, l_12)).width, d_3 = o_19.text.substring(l_12, h_5), u_3 = e.measureText(d_3).width;
3549
- e.fillRect(r_12 + c_3, s_44, u_3, this._fontOffset.height), s_44 += this._fontOffset.height;
3559
+ var l_12 = n_21 === t_70 ? this._cursorInfo.relativeStartIndex : 0, h_5 = n_21 === i_48 ? this._cursorInfo.relativeEndIndex : o_20.text.length, c_3 = e.measureText(o_20.text.substring(0, l_12)).width, d_3 = o_20.text.substring(l_12, h_5), u_3 = e.measureText(d_3).width;
3560
+ e.fillRect(r_13 + c_3, s_45, u_3, this._fontOffset.height), s_45 += this._fontOffset.height;
3550
3561
  }
3551
3562
  this._cursorInfo.globalEndIndex === this._cursorInfo.globalStartIndex && this._resetBlinking();
3552
3563
  }
@@ -3562,30 +3573,30 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3562
3573
  this._cursorInfo.currentLineIndex = 0, this._cursorInfo.globalStartIndex = 0, this._cursorInfo.globalEndIndex = 0, this._cursorInfo.relativeStartIndex = 0, this._cursorInfo.relativeEndIndex = 0;
3563
3574
  else if (this._clickedCoordinateX && this._clickedCoordinateY) {
3564
3575
  this._isTextHighlightOn || (this._cursorInfo = { globalStartIndex: 0, globalEndIndex: 0, relativeStartIndex: 0, relativeEndIndex: 0, currentLineIndex: 0 });
3565
- var t_72 = 0, i_48 = 0;
3566
- var s_45 = this._clickedCoordinateY - this._scrollTop, a_31 = Math.floor(s_45 / this._fontOffset.height);
3576
+ var t_71 = 0, i_49 = 0;
3577
+ var s_46 = this._clickedCoordinateY - this._scrollTop, a_31 = Math.floor(s_46 / this._fontOffset.height);
3567
3578
  this._cursorInfo.currentLineIndex = Math.min(Math.max(a_31, 0), this._lines.length - 1);
3568
3579
  var n_22 = 0;
3569
- var o_20 = this._clickedCoordinateX - (null !== (e = this._scrollLeft) && void 0 !== e ? e : 0);
3570
- var r_13 = 0;
3580
+ var o_21 = this._clickedCoordinateX - (null !== (e = this._scrollLeft) && void 0 !== e ? e : 0);
3581
+ var r_14 = 0;
3571
3582
  for (var e_124 = 0; e_124 < this._cursorInfo.currentLineIndex; e_124++) {
3572
- var i_49 = this._lines[e_124];
3573
- t_72 += i_49.text.length + i_49.lineEnding.length;
3583
+ var i_50 = this._lines[e_124];
3584
+ t_71 += i_50.text.length + i_50.lineEnding.length;
3574
3585
  }
3575
- for (; n_22 < o_20 && this._lines[this._cursorInfo.currentLineIndex].text.length > i_48;)
3576
- i_48++, r_13 = Math.abs(o_20 - n_22), n_22 = this._contextForBreakLines.measureText(this._lines[this._cursorInfo.currentLineIndex].text.substring(0, i_48)).width;
3577
- Math.abs(o_20 - n_22) > r_13 && i_48 > 0 && i_48--, t_72 += i_48, this._isTextHighlightOn ? t_72 < this._highlightCursorInfo.initialStartIndex ? (this._cursorInfo.globalStartIndex = t_72, this._cursorInfo.relativeStartIndex = i_48, this._cursorInfo.globalEndIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeEndIndex = this._highlightCursorInfo.initialRelativeStartIndex) : (this._cursorInfo.globalStartIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeStartIndex = this._highlightCursorInfo.initialRelativeStartIndex, this._cursorInfo.globalEndIndex = t_72, this._cursorInfo.relativeEndIndex = i_48) : (this._cursorInfo.globalStartIndex = t_72, this._cursorInfo.relativeStartIndex = i_48, this._cursorInfo.globalEndIndex = this._cursorInfo.globalStartIndex, this._cursorInfo.relativeEndIndex = this._cursorInfo.relativeStartIndex), this._blinkIsEven = this._isTextHighlightOn, this._clickedCoordinateX = null, this._clickedCoordinateY = null;
3586
+ for (; n_22 < o_21 && this._lines[this._cursorInfo.currentLineIndex].text.length > i_49;)
3587
+ i_49++, r_14 = Math.abs(o_21 - n_22), n_22 = this._contextForBreakLines.measureText(this._lines[this._cursorInfo.currentLineIndex].text.substring(0, i_49)).width;
3588
+ Math.abs(o_21 - n_22) > r_14 && i_49 > 0 && i_49--, t_71 += i_49, this._isTextHighlightOn ? t_71 < this._highlightCursorInfo.initialStartIndex ? (this._cursorInfo.globalStartIndex = t_71, this._cursorInfo.relativeStartIndex = i_49, this._cursorInfo.globalEndIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeEndIndex = this._highlightCursorInfo.initialRelativeStartIndex) : (this._cursorInfo.globalStartIndex = this._highlightCursorInfo.initialStartIndex, this._cursorInfo.relativeStartIndex = this._highlightCursorInfo.initialRelativeStartIndex, this._cursorInfo.globalEndIndex = t_71, this._cursorInfo.relativeEndIndex = i_49) : (this._cursorInfo.globalStartIndex = t_71, this._cursorInfo.relativeStartIndex = i_49, this._cursorInfo.globalEndIndex = this._cursorInfo.globalStartIndex, this._cursorInfo.relativeEndIndex = this._cursorInfo.relativeStartIndex), this._blinkIsEven = this._isTextHighlightOn, this._clickedCoordinateX = null, this._clickedCoordinateY = null;
3578
3589
  }
3579
3590
  else {
3580
3591
  this._cursorInfo.relativeStartIndex = 0, this._cursorInfo.currentLineIndex = 0;
3581
- var e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length, t_73 = 0;
3582
- for (; t_73 + e_125 <= this._cursorInfo.globalStartIndex;)
3583
- t_73 += e_125, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3584
- if (this._cursorInfo.relativeStartIndex = this._cursorInfo.globalStartIndex - t_73, this._isTextHighlightOn) {
3592
+ var e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length, t_72 = 0;
3593
+ for (; t_72 + e_125 <= this._cursorInfo.globalStartIndex;)
3594
+ t_72 += e_125, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3595
+ if (this._cursorInfo.relativeStartIndex = this._cursorInfo.globalStartIndex - t_72, this._isTextHighlightOn) {
3585
3596
  if (-1 !== this._highlightCursorInfo.initialStartIndex && this._cursorInfo.globalStartIndex >= this._highlightCursorInfo.initialStartIndex) {
3586
- for (; t_73 + e_125 <= this._cursorInfo.globalEndIndex;)
3587
- t_73 += e_125, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3588
- this._cursorInfo.relativeEndIndex = this._cursorInfo.globalEndIndex - t_73;
3597
+ for (; t_72 + e_125 <= this._cursorInfo.globalEndIndex;)
3598
+ t_72 += e_125, this._cursorInfo.currentLineIndex < this._lines.length - 1 && (this._cursorInfo.currentLineIndex++, e_125 = this._lines[this._cursorInfo.currentLineIndex].text.length + this._lines[this._cursorInfo.currentLineIndex].lineEnding.length);
3599
+ this._cursorInfo.relativeEndIndex = this._cursorInfo.globalEndIndex - t_72;
3589
3600
  }
3590
3601
  }
3591
3602
  else
@@ -3607,7 +3618,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3607
3618
  return _super !== null && _super.apply(this, arguments) || this;
3608
3619
  }
3609
3620
  he.prototype._getTypeName = function () { return "InputPassword"; };
3610
- he.prototype._beforeRenderText = function (e) { var t = new W; var i = ""; for (var t_74 = 0; t_74 < e.length; t_74++)
3621
+ he.prototype._beforeRenderText = function (e) { var t = new W; var i = ""; for (var t_73 = 0; t_73 < e.length; t_73++)
3611
3622
  i += "•"; return t.text = i, t; };
3612
3623
  return he;
3613
3624
  }(G));
@@ -3741,8 +3752,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3741
3752
  ge.prototype._translatePoint = function () { if (null != this._mesh)
3742
3753
  return this._multiLine._host.getProjectedPositionWithZ(this._mesh.getBoundingInfo().boundingSphere.center, this._mesh.getWorldMatrix()); if (null != this._control)
3743
3754
  return new t.Vector3(this._control.centerX, this._control.centerY, 1 - t.Epsilon); {
3744
- var e_126 = this._multiLine._host, i_50 = this._multiLine._getValueInPixel(this._x, Number(e_126._canvas.width)), s_46 = this._multiLine._getValueInPixel(this._y, Number(e_126._canvas.height));
3745
- return new t.Vector3(i_50, s_46, 1 - t.Epsilon);
3755
+ var e_126 = this._multiLine._host, i_51 = this._multiLine._getValueInPixel(this._x, Number(e_126._canvas.width)), s_47 = this._multiLine._getValueInPixel(this._y, Number(e_126._canvas.height));
3756
+ return new t.Vector3(i_51, s_47, 1 - t.Epsilon);
3746
3757
  } };
3747
3758
  ge.prototype.dispose = function () { this.resetLinks(); };
3748
3759
  return ge;
@@ -3817,8 +3828,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3817
3828
  var t, i = !0;
3818
3829
  try {
3819
3830
  for (var _b = __values(this._points), _c = _b.next(); !_c.done; _c = _b.next()) {
3820
- var s_47 = _c.value;
3821
- s_47 && (i ? (e.moveTo(s_47._point.x, s_47._point.y), i = !1) : s_47._point.z < 1 && t.z < 1 ? e.lineTo(s_47._point.x, s_47._point.y) : e.moveTo(s_47._point.x, s_47._point.y), t = s_47._point);
3831
+ var s_48 = _c.value;
3832
+ s_48 && (i ? (e.moveTo(s_48._point.x, s_48._point.y), i = !1) : s_48._point.z < 1 && t.z < 1 ? e.lineTo(s_48._point.x, s_48._point.y) : e.moveTo(s_48._point.x, s_48._point.y), t = s_48._point);
3822
3833
  }
3823
3834
  }
3824
3835
  catch (e_129_1) { e_129 = { error: e_129_1 }; }
@@ -3894,11 +3905,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3894
3905
  e.prototype._getTypeName = function () { return "RadioButton"; };
3895
3906
  e.prototype._draw = function (e) { e.save(), this._applyStates(e); var t = this._currentMeasure.width - this._thickness, i = this._currentMeasure.height - this._thickness; if ((this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowColor = this.shadowColor, e.shadowBlur = this.shadowBlur, e.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, e.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio), b.drawEllipse(this._currentMeasure.left + this._currentMeasure.width / 2, this._currentMeasure.top + this._currentMeasure.height / 2, this._currentMeasure.width / 2 - this._thickness / 2, this._currentMeasure.height / 2 - this._thickness / 2, 1, e), e.fillStyle = this._isEnabled ? this._background : this._disabledColor, e.fill(), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), e.strokeStyle = this.color, e.lineWidth = this._thickness, e.stroke(), this._isChecked) {
3896
3907
  e.fillStyle = this._isEnabled ? this.color : this._disabledColor;
3897
- var s_48 = t * this._checkSizeRatio, a_32 = i * this._checkSizeRatio;
3898
- b.drawEllipse(this._currentMeasure.left + this._currentMeasure.width / 2, this._currentMeasure.top + this._currentMeasure.height / 2, s_48 / 2 - this._thickness / 2, a_32 / 2 - this._thickness / 2, 1, e), e.fill();
3908
+ var s_49 = t * this._checkSizeRatio, a_32 = i * this._checkSizeRatio;
3909
+ b.drawEllipse(this._currentMeasure.left + this._currentMeasure.width / 2, this._currentMeasure.top + this._currentMeasure.height / 2, s_49 / 2 - this._thickness / 2, a_32 / 2 - this._thickness / 2, 1, e), e.fill();
3899
3910
  } e.restore(); };
3900
3911
  e.prototype._onPointerDown = function (e, t, i, s, a) { return !!_super.prototype._onPointerDown.call(this, e, t, i, s, a) && (this.isReadOnly || this.isChecked || (this.isChecked = !0), !0); };
3901
- e.AddRadioButtonWithHeader = function (t, i, s, a) { var n = new L; n.isVertical = !1, n.height = "30px"; var o = new e; o.width = "20px", o.height = "20px", o.isChecked = s, o.color = "green", o.group = i, o.onIsCheckedChangedObservable.add(function (e) { return a(o, e); }), n.addControl(o); var r = new T; return r.text = t, r.width = "180px", r.paddingLeft = "5px", r.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, r.color = "white", n.addControl(r), n; };
3912
+ e.AddRadioButtonWithHeader = function (t, i, s, a) { var n = new D; n.isVertical = !1, n.height = "30px"; var o = new e; o.width = "20px", o.height = "20px", o.isChecked = s, o.color = "green", o.group = i, o.onIsCheckedChangedObservable.add(function (e) { return a(o, e); }), n.addControl(o); var r = new T; return r.text = t, r.width = "180px", r.paddingLeft = "5px", r.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, r.color = "white", n.addControl(r), n; };
3902
3913
  return e;
3903
3914
  }(h)), (function () { var s; var f = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = h[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], i(e, null, a, { kind: "getter", name: "thickness", static: !1, private: !1, access: { has: function (e) { return "thickness" in e; }, get: function (e) { return e.thickness; } }, metadata: f }, null, c), i(e, null, o, { kind: "getter", name: "checkSizeRatio", static: !1, private: !1, access: { has: function (e) { return "checkSizeRatio" in e; }, get: function (e) { return e.checkSizeRatio; } }, metadata: f }, null, c), i(e, null, r, { kind: "getter", name: "background", static: !1, private: !1, access: { has: function (e) { return "background" in e; }, get: function (e) { return e.background; } }, metadata: f }, null, c), i(e, null, l, { kind: "getter", name: "isChecked", static: !1, private: !1, access: { has: function (e) { return "isChecked" in e; }, get: function (e) { return e.isChecked; } }, metadata: f }, null, c), i(null, null, n, { kind: "field", name: "group", static: !1, private: !1, access: { has: function (e) { return "group" in e; }, get: function (e) { return e.group; }, set: function (e, t) { e.group = t; } }, metadata: f }, d, u), f && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: f }); })(), e; })(), Ie = !1;
3904
3915
  function Se() { Ie || (Ie = !0, t.RegisterClass("BABYLON.GUI.RadioButton", xe)); }
@@ -4037,15 +4048,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4037
4048
  e.prototype._draw = function (e) { e.save(), this._applyStates(e), this._prepareRenderingData(this.isThumbCircle ? "circle" : "rectangle"); var t = this._renderLeft, i = this._renderTop; var s = this._renderWidth, a = this._renderHeight; var n; this.isThumbClamped && this.isThumbCircle ? (this.isVertical ? i += this._effectiveThumbThickness / 2 : t += this._effectiveThumbThickness / 2, n = this._backgroundBoxThickness / 2) : n = (this._effectiveThumbThickness - this._effectiveBarOffset) / 2, n = Math.max(0, n), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowColor = this.shadowColor, e.shadowBlur = this.shadowBlur, e.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, e.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio); var o = this._getThumbPosition(); e.fillStyle = this._getBackgroundColor(e), this.isVertical ? this.isThumbClamped ? this.isThumbCircle ? (e.beginPath(), e.arc(t + this._backgroundBoxThickness / 2, i, n, Math.PI, 2 * Math.PI), e.fill(), e.fillRect(t, i, s, a)) : e.fillRect(t, i, s, a + this._effectiveThumbThickness) : e.fillRect(t, i, s, a) : this.isThumbClamped ? this.isThumbCircle ? (e.beginPath(), e.arc(t + this._backgroundBoxLength, i + this._backgroundBoxThickness / 2, n, 0, 2 * Math.PI), e.fill(), e.fillRect(t, i, s, a)) : e.fillRect(t, i, s + this._effectiveThumbThickness, a) : e.fillRect(t, i, s, a), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), e.fillStyle = this._getColor(e), this._displayValueBar && (this.isVertical ? this.isThumbClamped ? this.isThumbCircle ? (e.beginPath(), e.arc(t + this._backgroundBoxThickness / 2, i + this._backgroundBoxLength, n, 0, 2 * Math.PI), e.fill(), e.fillRect(t, i + o, s, a - o)) : e.fillRect(t, i + o, s, a - o + this._effectiveThumbThickness) : e.fillRect(t, i + o, s, a - o) : this.isThumbClamped && this.isThumbCircle ? (e.beginPath(), e.arc(t, i + this._backgroundBoxThickness / 2, n, 0, 2 * Math.PI), e.fill(), e.fillRect(t, i, o, a)) : e.fillRect(t, i, o, a)), e.fillStyle = this._thumbColor || this._getColor(e), this.displayThumb && ((this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowColor = this.shadowColor, e.shadowBlur = this.shadowBlur, e.shadowOffsetX = this.shadowOffsetX * this._host.idealRatio, e.shadowOffsetY = this.shadowOffsetY * this._host.idealRatio), this._isThumbCircle ? (e.beginPath(), this.isVertical ? e.arc(t + this._backgroundBoxThickness / 2, i + o, n, 0, 2 * Math.PI) : e.arc(t + o, i + this._backgroundBoxThickness / 2, n, 0, 2 * Math.PI), e.fill(), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), e.strokeStyle = this._borderColor, e.stroke()) : (this.isVertical ? e.fillRect(t - this._effectiveBarOffset, this._currentMeasure.top + o, this._currentMeasure.width, this._effectiveThumbThickness) : e.fillRect(this._currentMeasure.left + o, this._currentMeasure.top, this._effectiveThumbThickness, this._currentMeasure.height), (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) && (e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0), e.strokeStyle = this._borderColor, this.isVertical ? e.strokeRect(t - this._effectiveBarOffset, this._currentMeasure.top + o, this._currentMeasure.width, this._effectiveThumbThickness) : e.strokeRect(this._currentMeasure.left + o, this._currentMeasure.top, this._effectiveThumbThickness, this._currentMeasure.height))), e.restore(); };
4038
4049
  e.prototype.serialize = function (e) { _super.prototype.serialize.call(this, e), this.backgroundGradient && (e.backgroundGradient = {}, this.backgroundGradient.serialize(e.backgroundGradient)); };
4039
4050
  e.prototype._parseFromContent = function (e, i) { if (_super.prototype._parseFromContent.call(this, e, i), e.backgroundGradient) {
4040
- var i_51 = t.Tools.Instantiate("BABYLON.GUI." + e.backgroundGradient.className);
4041
- this.backgroundGradient = new i_51, this.backgroundGradient.parse(e.backgroundGradient);
4051
+ var i_52 = t.Tools.Instantiate("BABYLON.GUI." + e.backgroundGradient.className);
4052
+ this.backgroundGradient = new i_52, this.backgroundGradient.parse(e.backgroundGradient);
4042
4053
  } };
4043
4054
  return e;
4044
4055
  }(h)), (function () { var s; var d = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = h[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], i(e, null, a, { kind: "getter", name: "displayValueBar", static: !1, private: !1, access: { has: function (e) { return "displayValueBar" in e; }, get: function (e) { return e.displayValueBar; } }, metadata: d }, null, c), i(e, null, n, { kind: "getter", name: "borderColor", static: !1, private: !1, access: { has: function (e) { return "borderColor" in e; }, get: function (e) { return e.borderColor; } }, metadata: d }, null, c), i(e, null, o, { kind: "getter", name: "background", static: !1, private: !1, access: { has: function (e) { return "background" in e; }, get: function (e) { return e.background; } }, metadata: d }, null, c), i(e, null, r, { kind: "getter", name: "thumbColor", static: !1, private: !1, access: { has: function (e) { return "thumbColor" in e; }, get: function (e) { return e.thumbColor; } }, metadata: d }, null, c), i(e, null, l, { kind: "getter", name: "isThumbCircle", static: !1, private: !1, access: { has: function (e) { return "isThumbCircle" in e; }, get: function (e) { return e.isThumbCircle; } }, metadata: d }, null, c), d && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: d }); })(), e; })(), Be = !1;
4045
4056
  function Ce() { Be || (Be = !0, t.RegisterClass("BABYLON.GUI.Slider", Pe)); }
4046
4057
  var Te = /** @class */ (function () {
4047
4058
  function Te(e) {
4048
- this.name = e, this._groupPanel = new L, this._selectors = [], this._groupPanel.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, this._groupPanel.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, this._groupHeader = this._addGroupHeader(e);
4059
+ this.name = e, this._groupPanel = new D, this._selectors = [], this._groupPanel.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, this._groupPanel.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, this._groupHeader = this._addGroupHeader(e);
4049
4060
  }
4050
4061
  Object.defineProperty(Te.prototype, "groupPanel", {
4051
4062
  get: function () { return this._groupPanel; },
@@ -4138,7 +4149,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4138
4149
  function Oe(e, t) {
4139
4150
  if (t === void 0) { t = []; }
4140
4151
  var _this = this;
4141
- if (_this = _super.call(this, e) || this, _this.name = e, _this.groups = t, _this._buttonColor = "#364249", _this._buttonBackground = "#CCCCCC", _this._headerColor = "black", _this._barColor = "white", _this._barHeight = "2px", _this._spacerHeight = "20px", _this._bars = [], _this._groups = t, _this.thickness = 2, _this._panel = new L, _this._panel.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._panel.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._panel.top = 5, _this._panel.left = 5, _this._panel.width = .95, t.length > 0) {
4152
+ if (_this = _super.call(this, e) || this, _this.name = e, _this.groups = t, _this._buttonColor = "#364249", _this._buttonBackground = "#CCCCCC", _this._headerColor = "black", _this._barColor = "white", _this._barHeight = "2px", _this._spacerHeight = "20px", _this._bars = [], _this._groups = t, _this.thickness = 2, _this._panel = new D, _this._panel.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._panel.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._panel.top = 5, _this._panel.left = 5, _this._panel.width = .95, t.length > 0) {
4142
4153
  for (var e_132 = 0; e_132 < t.length - 1; e_132++)
4143
4154
  _this._panel.addControl(t[e_132].groupPanel), _this._addSpacer();
4144
4155
  _this._panel.addControl(t[t.length - 1].groupPanel);
@@ -4167,8 +4178,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4167
4178
  configurable: true
4168
4179
  });
4169
4180
  Oe.prototype._setbuttonColor = function () { for (var e_134 = 0; e_134 < this._groups.length; e_134++)
4170
- for (var t_75 = 0; t_75 < this._groups[e_134].selectors.length; t_75++)
4171
- this._groups[e_134]._setSelectorButtonColor(t_75, this._buttonColor); };
4181
+ for (var t_74 = 0; t_74 < this._groups[e_134].selectors.length; t_74++)
4182
+ this._groups[e_134]._setSelectorButtonColor(t_74, this._buttonColor); };
4172
4183
  Object.defineProperty(Oe.prototype, "labelColor", {
4173
4184
  get: function () { return this._labelColor; },
4174
4185
  set: function (e) { this._labelColor !== e && (this._labelColor = e, this._setLabelColor()); },
@@ -4176,8 +4187,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4176
4187
  configurable: true
4177
4188
  });
4178
4189
  Oe.prototype._setLabelColor = function () { for (var e_135 = 0; e_135 < this._groups.length; e_135++)
4179
- for (var t_76 = 0; t_76 < this._groups[e_135].selectors.length; t_76++)
4180
- this._groups[e_135]._setSelectorLabelColor(t_76, this._labelColor); };
4190
+ for (var t_75 = 0; t_75 < this._groups[e_135].selectors.length; t_75++)
4191
+ this._groups[e_135]._setSelectorLabelColor(t_75, this._labelColor); };
4181
4192
  Object.defineProperty(Oe.prototype, "buttonBackground", {
4182
4193
  get: function () { return this._buttonBackground; },
4183
4194
  set: function (e) { this._buttonBackground !== e && (this._buttonBackground = e, this._setButtonBackground()); },
@@ -4185,8 +4196,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4185
4196
  configurable: true
4186
4197
  });
4187
4198
  Oe.prototype._setButtonBackground = function () { for (var e_136 = 0; e_136 < this._groups.length; e_136++)
4188
- for (var t_77 = 0; t_77 < this._groups[e_136].selectors.length; t_77++)
4189
- this._groups[e_136]._setSelectorButtonBackground(t_77, this._buttonBackground); };
4199
+ for (var t_76 = 0; t_76 < this._groups[e_136].selectors.length; t_76++)
4200
+ this._groups[e_136]._setSelectorButtonBackground(t_76, this._buttonBackground); };
4190
4201
  Object.defineProperty(Oe.prototype, "barColor", {
4191
4202
  get: function () { return this._barColor; },
4192
4203
  set: function (e) { this._barColor !== e && (this._barColor = e, this._setBarColor()); },
@@ -4212,8 +4223,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4212
4223
  Oe.prototype._setSpacerHeight = function () { for (var e_139 = 0; e_139 < this._bars.length; e_139++)
4213
4224
  this._bars[e_139].height = this._spacerHeight; };
4214
4225
  Oe.prototype._addSpacer = function () { var e = new x; e.width = 1, e.height = this._spacerHeight, e.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT; var t = new y; t.width = 1, t.height = this._barHeight, t.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, t.verticalAlignment = b.VERTICAL_ALIGNMENT_CENTER, t.background = this._barColor, t.color = "transparent", e.addControl(t), this._panel.addControl(e), this._bars.push(e); };
4215
- Oe.prototype.addGroup = function (e) { this._groups.length > 0 && this._addSpacer(), this._panel.addControl(e.groupPanel), this._groups.push(e), e.groupPanel.children[0].color = this._headerColor; for (var t_78 = 0; t_78 < e.selectors.length; t_78++)
4216
- e._setSelectorButtonColor(t_78, this._buttonColor), e._setSelectorButtonBackground(t_78, this._buttonBackground); };
4226
+ Oe.prototype.addGroup = function (e) { this._groups.length > 0 && this._addSpacer(), this._panel.addControl(e.groupPanel), this._groups.push(e), e.groupPanel.children[0].color = this._headerColor; for (var t_77 = 0; t_77 < e.selectors.length; t_77++)
4227
+ e._setSelectorButtonColor(t_77, this._buttonColor), e._setSelectorButtonBackground(t_77, this._buttonBackground); };
4217
4228
  Oe.prototype.removeGroup = function (e) { if (e < 0 || e >= this._groups.length)
4218
4229
  return; var t = this._groups[e]; this._panel.removeControl(t.groupPanel), this._groups.splice(e, 1), e < this._bars.length && (this._panel.removeControl(this._bars[e]), this._bars.splice(e, 1)); };
4219
4230
  Oe.prototype.setHeaderName = function (e, t) { t < 0 || t >= this._groups.length || (this._groups[t].groupPanel.children[0].text = e); };
@@ -4269,39 +4280,39 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4269
4280
  Me.prototype.setBucketSizes = function (e, t) { this._bucketWidth = e, this._bucketHeight = t, this._useBuckets() ? this._freezeControls && this._makeBuckets() : this._buckets = {}; };
4270
4281
  Me.prototype._useBuckets = function () { return this._bucketWidth > 0 && this._bucketHeight > 0; };
4271
4282
  Me.prototype._makeBuckets = function () { this._buckets = {}, this._bucketLen = Math.ceil(this.widthInPixels / this._bucketWidth), this._dispatchInBuckets(this._children), this._oldLeft = null, this._oldTop = null; };
4272
- Me.prototype._dispatchInBuckets = function (e) { for (var t_79 = 0; t_79 < e.length; ++t_79) {
4273
- var i_52 = e[t_79], s_49 = Math.max(0, Math.floor((i_52._customData._origLeft - this._customData.origLeft) / this._bucketWidth)), a_33 = Math.floor((i_52._customData._origLeft - this._customData.origLeft + i_52._currentMeasure.width - 1) / this._bucketWidth), n_23 = Math.floor((i_52._customData._origTop - this._customData.origTop + i_52._currentMeasure.height - 1) / this._bucketHeight);
4274
- var o_21 = Math.max(0, Math.floor((i_52._customData._origTop - this._customData.origTop) / this._bucketHeight));
4275
- for (; o_21 <= n_23;) {
4276
- for (var e_140 = s_49; e_140 <= a_33; ++e_140) {
4277
- var t_80 = o_21 * this._bucketLen + e_140;
4278
- var s_50 = this._buckets[t_80];
4279
- s_50 || (s_50 = [], this._buckets[t_80] = s_50), s_50.push(i_52);
4280
- }
4281
- o_21++;
4282
- }
4283
- i_52 instanceof x && i_52._children.length > 0 && this._dispatchInBuckets(i_52._children);
4283
+ Me.prototype._dispatchInBuckets = function (e) { for (var t_78 = 0; t_78 < e.length; ++t_78) {
4284
+ var i_53 = e[t_78], s_50 = Math.max(0, Math.floor((i_53._customData._origLeft - this._customData.origLeft) / this._bucketWidth)), a_33 = Math.floor((i_53._customData._origLeft - this._customData.origLeft + i_53._currentMeasure.width - 1) / this._bucketWidth), n_23 = Math.floor((i_53._customData._origTop - this._customData.origTop + i_53._currentMeasure.height - 1) / this._bucketHeight);
4285
+ var o_22 = Math.max(0, Math.floor((i_53._customData._origTop - this._customData.origTop) / this._bucketHeight));
4286
+ for (; o_22 <= n_23;) {
4287
+ for (var e_140 = s_50; e_140 <= a_33; ++e_140) {
4288
+ var t_79 = o_22 * this._bucketLen + e_140;
4289
+ var s_51 = this._buckets[t_79];
4290
+ s_51 || (s_51 = [], this._buckets[t_79] = s_51), s_51.push(i_53);
4291
+ }
4292
+ o_22++;
4293
+ }
4294
+ i_53 instanceof x && i_53._children.length > 0 && this._dispatchInBuckets(i_53._children);
4284
4295
  } };
4285
4296
  Me.prototype._updateMeasures = function () { var e = 0 | this.leftInPixels, t = 0 | this.topInPixels; this._measureForChildren.left -= e, this._measureForChildren.top -= t, this._currentMeasure.left -= e, this._currentMeasure.top -= t, this._customData.origLeftForChildren = this._measureForChildren.left, this._customData.origTopForChildren = this._measureForChildren.top, this._customData.origLeft = this._currentMeasure.left, this._customData.origTop = this._currentMeasure.top, this._updateChildrenMeasures(this._children, e, t); };
4286
- Me.prototype._updateChildrenMeasures = function (e, t, i) { for (var s_51 = 0; s_51 < e.length; ++s_51) {
4287
- var a_34 = e[s_51];
4297
+ Me.prototype._updateChildrenMeasures = function (e, t, i) { for (var s_52 = 0; s_52 < e.length; ++s_52) {
4298
+ var a_34 = e[s_52];
4288
4299
  a_34._currentMeasure.left -= t, a_34._currentMeasure.top -= i, a_34._customData._origLeft = a_34._currentMeasure.left, a_34._customData._origTop = a_34._currentMeasure.top, a_34 instanceof x && a_34._children.length > 0 && this._updateChildrenMeasures(a_34._children, t, i);
4289
4300
  } };
4290
4301
  Me.prototype._restoreMeasures = function () { var e = 0 | this.leftInPixels, t = 0 | this.topInPixels; this._measureForChildren.left = this._customData.origLeftForChildren + e, this._measureForChildren.top = this._customData.origTopForChildren + t, this._currentMeasure.left = this._customData.origLeft + e, this._currentMeasure.top = this._customData.origTop + t; };
4291
4302
  Me.prototype._getTypeName = function () { return "ScrollViewerWindow"; };
4292
4303
  Me.prototype._additionalProcessing = function (e, t) { _super.prototype._additionalProcessing.call(this, e, t), this._parentMeasure = e, this._measureForChildren.left = this._currentMeasure.left, this._measureForChildren.top = this._currentMeasure.top, this._measureForChildren.width = e.width, this._measureForChildren.height = e.height; };
4293
4304
  Me.prototype._layout = function (e, t) { return this._freezeControls ? (this.invalidateRect(), !1) : _super.prototype._layout.call(this, e, t); };
4294
- Me.prototype._scrollChildren = function (e, t, i) { for (var s_52 = 0; s_52 < e.length; ++s_52) {
4295
- var a_35 = e[s_52];
4305
+ Me.prototype._scrollChildren = function (e, t, i) { for (var s_53 = 0; s_53 < e.length; ++s_53) {
4306
+ var a_35 = e[s_53];
4296
4307
  a_35._currentMeasure.left = a_35._customData._origLeft + t, a_35._currentMeasure.top = a_35._customData._origTop + i, a_35._isClipped = !1, a_35 instanceof x && a_35._children.length > 0 && this._scrollChildren(a_35._children, t, i);
4297
4308
  } };
4298
4309
  Me.prototype._scrollChildrenWithBuckets = function (e, t, i, s) { var a = Math.max(0, Math.floor(-e / this._bucketWidth)), n = Math.floor((-e + this._parentMeasure.width - 1) / this._bucketWidth), o = Math.floor((-t + this._parentMeasure.height - 1) / this._bucketHeight); var r = Math.max(0, Math.floor(-t / this._bucketHeight)); for (; r <= o;) {
4299
4310
  for (var e_141 = a; e_141 <= n; ++e_141) {
4300
- var t_81 = r * this._bucketLen + e_141, a_36 = this._buckets[t_81];
4311
+ var t_80 = r * this._bucketLen + e_141, a_36 = this._buckets[t_80];
4301
4312
  if (a_36)
4302
4313
  for (var e_142 = 0; e_142 < a_36.length; ++e_142) {
4303
- var t_82 = a_36[e_142];
4304
- t_82._currentMeasure.left = t_82._customData._origLeft + i, t_82._currentMeasure.top = t_82._customData._origTop + s, t_82._isClipped = !1;
4314
+ var t_81 = a_36[e_142];
4315
+ t_81._currentMeasure.left = t_81._customData._origLeft + i, t_81._currentMeasure.top = t_81._customData._origTop + s, t_81._isClipped = !1;
4305
4316
  }
4306
4317
  }
4307
4318
  r++;
@@ -4315,8 +4326,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4315
4326
  this._useBuckets() && null !== this._oldLeft && null !== this._oldTop ? (this._scrollChildrenWithBuckets(this._oldLeft, this._oldTop, i, s), this._scrollChildrenWithBuckets(i, s, i, s)) : this._scrollChildren(this._children, i, s), this._oldLeft = i, this._oldTop = s;
4316
4327
  try {
4317
4328
  for (var _b = __values(this._children), _c = _b.next(); !_c.done; _c = _b.next()) {
4318
- var t_83 = _c.value;
4319
- t_83._intersectsRect(this._parentMeasure) && t_83._render(e, this._parentMeasure);
4329
+ var t_82 = _c.value;
4330
+ t_82._intersectsRect(this._parentMeasure) && t_82._render(e, this._parentMeasure);
4320
4331
  }
4321
4332
  }
4322
4333
  catch (e_143_1) { e_143 = { error: e_143_1 }; }
@@ -4334,8 +4345,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4334
4345
  var e = this.parentClientWidth, t = this.parentClientHeight;
4335
4346
  try {
4336
4347
  for (var _b = __values(this.children), _c = _b.next(); !_c.done; _c = _b.next()) {
4337
- var i_53 = _c.value;
4338
- i_53.isVisible && !i_53.notRenderable && (i_53.horizontalAlignment === b.HORIZONTAL_ALIGNMENT_CENTER && i_53._offsetLeft(this._currentMeasure.left - i_53._currentMeasure.left), i_53.verticalAlignment === b.VERTICAL_ALIGNMENT_CENTER && i_53._offsetTop(this._currentMeasure.top - i_53._currentMeasure.top), e = Math.max(e, i_53._currentMeasure.left - this._currentMeasure.left + i_53._currentMeasure.width + i_53.paddingRightInPixels), t = Math.max(t, i_53._currentMeasure.top - this._currentMeasure.top + i_53._currentMeasure.height + i_53.paddingBottomInPixels));
4348
+ var i_54 = _c.value;
4349
+ i_54.isVisible && !i_54.notRenderable && (i_54.horizontalAlignment === b.HORIZONTAL_ALIGNMENT_CENTER && i_54._offsetLeft(this._currentMeasure.left - i_54._currentMeasure.left), i_54.verticalAlignment === b.VERTICAL_ALIGNMENT_CENTER && i_54._offsetTop(this._currentMeasure.top - i_54._currentMeasure.top), e = Math.max(e, i_54._currentMeasure.left - this._currentMeasure.left + i_54._currentMeasure.width + i_54.paddingRightInPixels), t = Math.max(t, i_54._currentMeasure.top - this._currentMeasure.top + i_54._currentMeasure.height + i_54.paddingBottomInPixels));
4339
4350
  }
4340
4351
  }
4341
4352
  catch (e_144_1) { e_144 = { error: e_144_1 }; }
@@ -4388,13 +4399,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4388
4399
  e.prototype._onPointerDown = function (e, t, i, s, a) { return this._first = !0, _super.prototype._onPointerDown.call(this, e, t, i, s, a); };
4389
4400
  e.prototype.serialize = function (e) { _super.prototype.serialize.call(this, e), this.backgroundGradient && (e.backgroundGradient = {}, this.backgroundGradient.serialize(e.backgroundGradient)); };
4390
4401
  e.prototype._parseFromContent = function (e, i) { if (_super.prototype._parseFromContent.call(this, e, i), e.backgroundGradient) {
4391
- var i_54 = t.Tools.Instantiate("BABYLON.GUI." + e.backgroundGradient.className);
4392
- this.backgroundGradient = new i_54, this.backgroundGradient.parse(e.backgroundGradient);
4402
+ var i_55 = t.Tools.Instantiate("BABYLON.GUI." + e.backgroundGradient.className);
4403
+ this.backgroundGradient = new i_55, this.backgroundGradient.parse(e.backgroundGradient);
4393
4404
  } };
4394
4405
  return e;
4395
4406
  }(r)), (function () { var s; var h = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = r[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], i(e, null, a, { kind: "getter", name: "borderColor", static: !1, private: !1, access: { has: function (e) { return "borderColor" in e; }, get: function (e) { return e.borderColor; } }, metadata: h }, null, l), i(e, null, n, { kind: "getter", name: "background", static: !1, private: !1, access: { has: function (e) { return "background" in e; }, get: function (e) { return e.background; } }, metadata: h }, null, l), i(e, null, o, { kind: "getter", name: "invertScrollDirection", static: !1, private: !1, access: { has: function (e) { return "invertScrollDirection" in e; }, get: function (e) { return e.invertScrollDirection; } }, metadata: h }, null, l), h && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: h }); })(), e; })(), Ee = !1;
4396
- function De() { Ee || (Ee = !0, t.RegisterClass("BABYLON.GUI.Scrollbar", Fe)); }
4397
- var Le = (function () { var e; var a, n, o = ye, r = [], l = [], h = []; return e = /** @class */ (function (_super) {
4407
+ function Le() { Ee || (Ee = !0, t.RegisterClass("BABYLON.GUI.Scrollbar", Fe)); }
4408
+ var De = (function () { var e; var a, n, o = ye, r = [], l = [], h = []; return e = /** @class */ (function (_super) {
4398
4409
  __extends(e, _super);
4399
4410
  function e(e) {
4400
4411
  var _this = this;
@@ -4453,7 +4464,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4453
4464
  __extends(e, _super);
4454
4465
  function e(e, t) {
4455
4466
  var _this = this;
4456
- _this = _super.call(this, e) || this, _this._grid = s(_this, c), _this._barSize = 20, _this._pointerIsOver = !1, _this._wheelPrecision = .05, _this._thumbLength = .5, _this._thumbHeight = 1, _this._barImageHeight = 1, _this._horizontalBarImageHeight = 1, _this._verticalBarImageHeight = 1, _this._oldWindowContentsWidth = 0, _this._oldWindowContentsHeight = 0, _this._forceHorizontalBar = !1, _this._forceVerticalBar = !1, _this._useImageBar = t || !1, _this.onDirtyObservable.add(function () { _this._horizontalBarSpace.color = _this.color, _this._verticalBarSpace.color = _this.color, _this._dragSpace.color = _this.color; }), _this.onPointerEnterObservable.add(function () { _this._pointerIsOver = !0; }), _this.onPointerOutObservable.add(function () { _this._pointerIsOver = !1; }), _this._grid = new Y, _this._useImageBar ? (_this._horizontalBar = new Le, _this._verticalBar = new Le) : (_this._horizontalBar = new Fe, _this._verticalBar = new Fe), _this._window = new Me("scrollViewer_window"), _this._window.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._window.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._grid.addColumnDefinition(1), _this._grid.addColumnDefinition(0, !0), _this._grid.addRowDefinition(1), _this._grid.addRowDefinition(0, !0), _super.prototype.addControl.call(_this, _this._grid), _this._grid.addControl(_this._window, 0, 0), _this._verticalBarSpace = new y, _this._verticalBarSpace.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._verticalBarSpace.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._verticalBarSpace.thickness = 1, _this._grid.addControl(_this._verticalBarSpace, 0, 1), _this._addBar(_this._verticalBar, _this._verticalBarSpace, !0, Math.PI), _this._horizontalBarSpace = new y, _this._horizontalBarSpace.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._horizontalBarSpace.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._horizontalBarSpace.thickness = 1, _this._grid.addControl(_this._horizontalBarSpace, 1, 0), _this._addBar(_this._horizontalBar, _this._horizontalBarSpace, !1, 0), _this._dragSpace = new y, _this._dragSpace.thickness = 1, _this._grid.addControl(_this._dragSpace, 1, 1), _this._grid.clipChildren = !1, _this._useImageBar || (_this.barColor = "grey", _this.barBackground = "transparent");
4467
+ _this = _super.call(this, e) || this, _this._grid = s(_this, c), _this._barSize = 20, _this._pointerIsOver = !1, _this._wheelPrecision = .05, _this._thumbLength = .5, _this._thumbHeight = 1, _this._barImageHeight = 1, _this._horizontalBarImageHeight = 1, _this._verticalBarImageHeight = 1, _this._oldWindowContentsWidth = 0, _this._oldWindowContentsHeight = 0, _this._forceHorizontalBar = !1, _this._forceVerticalBar = !1, _this._useImageBar = t || !1, _this.onDirtyObservable.add(function () { _this._horizontalBarSpace.color = _this.color, _this._verticalBarSpace.color = _this.color, _this._dragSpace.color = _this.color; }), _this.onPointerEnterObservable.add(function () { _this._pointerIsOver = !0; }), _this.onPointerOutObservable.add(function () { _this._pointerIsOver = !1; }), _this._grid = new Y, _this._useImageBar ? (_this._horizontalBar = new De, _this._verticalBar = new De) : (_this._horizontalBar = new Fe, _this._verticalBar = new Fe), _this._window = new Me("scrollViewer_window"), _this._window.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._window.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._grid.addColumnDefinition(1), _this._grid.addColumnDefinition(0, !0), _this._grid.addRowDefinition(1), _this._grid.addRowDefinition(0, !0), _super.prototype.addControl.call(_this, _this._grid), _this._grid.addControl(_this._window, 0, 0), _this._verticalBarSpace = new y, _this._verticalBarSpace.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._verticalBarSpace.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._verticalBarSpace.thickness = 1, _this._grid.addControl(_this._verticalBarSpace, 0, 1), _this._addBar(_this._verticalBar, _this._verticalBarSpace, !0, Math.PI), _this._horizontalBarSpace = new y, _this._horizontalBarSpace.horizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, _this._horizontalBarSpace.verticalAlignment = b.VERTICAL_ALIGNMENT_TOP, _this._horizontalBarSpace.thickness = 1, _this._grid.addControl(_this._horizontalBarSpace, 1, 0), _this._addBar(_this._horizontalBar, _this._horizontalBarSpace, !1, 0), _this._dragSpace = new y, _this._dragSpace.thickness = 1, _this._grid.addControl(_this._dragSpace, 1, 1), _this._grid.clipChildren = !1, _this._useImageBar || (_this.barColor = "grey", _this.barBackground = "transparent");
4457
4468
  return _this;
4458
4469
  }
4459
4470
  Object.defineProperty(e.prototype, "horizontalBar", {
@@ -4672,8 +4683,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4672
4683
  this._isActive !== e && (this._isActive = e, this._isActive ? null === (t = this.toActiveAnimation) || void 0 === t || t.call(this) : null === (i = this.toInactiveAnimation) || void 0 === i || i.call(this), this._markAsDirty(), this.onIsActiveChangedObservable.notifyObservers(e), this._isActive && this._host && this._group && this._host.executeOnAllControls(function (e) { if ("ToggleButton" === e.typeName) {
4673
4684
  if (e === _this)
4674
4685
  return;
4675
- var t_84 = e;
4676
- t_84.group === _this.group && (t_84.isActive = !1);
4686
+ var t_83 = e;
4687
+ t_83.group === _this.group && (t_83.isActive = !1);
4677
4688
  } }));
4678
4689
  },
4679
4690
  enumerable: false,
@@ -4683,15 +4694,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4683
4694
  Ve.prototype._processPicking = function (e, t, i, s, a, n, o, r) { if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable)
4684
4695
  return !1; if (!_super.prototype.contains.call(this, e, t))
4685
4696
  return !1; if (this.delegatePickingToChildren) {
4686
- var i_55 = !1;
4687
- for (var s_53 = this._children.length - 1; s_53 >= 0; s_53--) {
4688
- var a_37 = this._children[s_53];
4697
+ var i_56 = !1;
4698
+ for (var s_54 = this._children.length - 1; s_54 >= 0; s_54--) {
4699
+ var a_37 = this._children[s_54];
4689
4700
  if (a_37.isEnabled && a_37.isHitTestVisible && a_37.isVisible && !a_37.notRenderable && a_37.contains(e, t)) {
4690
- i_55 = !0;
4701
+ i_56 = !0;
4691
4702
  break;
4692
4703
  }
4693
4704
  }
4694
- if (!i_55)
4705
+ if (!i_56)
4695
4706
  return !1;
4696
4707
  } return this._processObservables(s, e, t, i, a, n, o, r), !0; };
4697
4708
  Ve.prototype._onPointerEnter = function (e, t) { return !!_super.prototype._onPointerEnter.call(this, e, t) && (this.isReadOnly || (this._isActive ? this.pointerEnterActiveAnimation && this.pointerEnterActiveAnimation() : this.pointerEnterInactiveAnimation && this.pointerEnterInactiveAnimation()), !0); };
@@ -4724,24 +4735,24 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4724
4735
  var i = F.CreateSimpleButton(e, e);
4725
4736
  return i.width = t && t.width ? t.width : this.defaultButtonWidth, i.height = t && t.height ? t.height : this.defaultButtonHeight, i.color = t && t.color ? t.color : this.defaultButtonColor, i.background = t && t.background ? t.background : this.defaultButtonBackground, i.paddingLeft = t && t.paddingLeft ? t.paddingLeft : this.defaultButtonPaddingLeft, i.paddingRight = t && t.paddingRight ? t.paddingRight : this.defaultButtonPaddingRight, i.paddingTop = t && t.paddingTop ? t.paddingTop : this.defaultButtonPaddingTop, i.paddingBottom = t && t.paddingBottom ? t.paddingBottom : this.defaultButtonPaddingBottom, i.thickness = 0, i.isFocusInvisible = !0, i.shadowColor = this.shadowColor, i.shadowBlur = this.shadowBlur, i.shadowOffsetX = this.shadowOffsetX, i.shadowOffsetY = this.shadowOffsetY, i.onPointerUpObservable.add(function () { _this.onKeyPressObservable.notifyObservers(e); }), i;
4726
4737
  };
4727
- He.prototype.addKeysRow = function (e, t) { var i = new L; i.isVertical = !1, i.isFocusInvisible = !0; var s = null; for (var a_38 = 0; a_38 < e.length; a_38++) {
4738
+ He.prototype.addKeysRow = function (e, t) { var i = new D; i.isVertical = !1, i.isFocusInvisible = !0; var s = null; for (var a_38 = 0; a_38 < e.length; a_38++) {
4728
4739
  var n_24 = null;
4729
4740
  t && t.length === e.length && (n_24 = t[a_38]);
4730
- var o_22 = this._createKey(e[a_38], n_24);
4731
- (!s || o_22.heightInPixels > s.heightInPixels) && (s = o_22), i.addControl(o_22);
4741
+ var o_23 = this._createKey(e[a_38], n_24);
4742
+ (!s || o_23.heightInPixels > s.heightInPixels) && (s = o_23), i.addControl(o_23);
4732
4743
  } i.height = s ? s.height : this.defaultButtonHeight, this.addControl(i); };
4733
4744
  He.prototype.applyShiftState = function (e) { if (this.children)
4734
- for (var t_85 = 0; t_85 < this.children.length; t_85++) {
4735
- var i_56 = this.children[t_85];
4736
- if (!i_56 || !i_56.children)
4745
+ for (var t_84 = 0; t_84 < this.children.length; t_84++) {
4746
+ var i_57 = this.children[t_84];
4747
+ if (!i_57 || !i_57.children)
4737
4748
  continue;
4738
- var s_54 = i_56;
4739
- for (var t_86 = 0; t_86 < s_54.children.length; t_86++) {
4740
- var i_57 = s_54.children[t_86];
4741
- if (!i_57 || !i_57.children[0])
4749
+ var s_55 = i_57;
4750
+ for (var t_85 = 0; t_85 < s_55.children.length; t_85++) {
4751
+ var i_58 = s_55.children[t_85];
4752
+ if (!i_58 || !i_58.children[0])
4742
4753
  continue;
4743
- var a_39 = i_57.children[0];
4744
- "⇧" === a_39.text && (i_57.color = e ? this.shiftButtonColor : this.defaultButtonColor, i_57.thickness = e > 1 ? this.selectedShiftThickness : 0), a_39.text = e > 0 ? a_39.text.toUpperCase() : a_39.text.toLowerCase();
4754
+ var a_39 = i_58.children[0];
4755
+ "⇧" === a_39.text && (i_58.color = e ? this.shiftButtonColor : this.defaultButtonColor, i_58.thickness = e > 1 ? this.selectedShiftThickness : 0), a_39.text = e > 0 ? a_39.text.toUpperCase() : a_39.text.toLowerCase();
4745
4756
  }
4746
4757
  } };
4747
4758
  Object.defineProperty(He.prototype, "connectedInputText", {
@@ -4767,8 +4778,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4767
4778
  He.prototype.disconnect = function (e) {
4768
4779
  var e_147, _a;
4769
4780
  if (e) {
4770
- var t_87 = this._connectedInputTexts.filter(function (t) { return t.input === e; });
4771
- 1 === t_87.length && (this._removeConnectedInputObservables(t_87[0]), this._connectedInputTexts = this._connectedInputTexts.filter(function (t) { return t.input !== e; }), this._currentlyConnectedInputText === e && (this._currentlyConnectedInputText = null));
4781
+ var t_86 = this._connectedInputTexts.filter(function (t) { return t.input === e; });
4782
+ 1 === t_86.length && (this._removeConnectedInputObservables(t_86[0]), this._connectedInputTexts = this._connectedInputTexts.filter(function (t) { return t.input !== e; }), this._currentlyConnectedInputText === e && (this._currentlyConnectedInputText = null));
4772
4783
  }
4773
4784
  else {
4774
4785
  try {
@@ -4799,12 +4810,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4799
4810
  for (var _c = __values(this.children), _d = _c.next(); !_d.done; _d = _c.next()) {
4800
4811
  var e_151 = _d.value;
4801
4812
  if ("StackPanel" === e_151.getClassName()) {
4802
- var t_88 = e_151;
4813
+ var t_87 = e_151;
4803
4814
  var _loop_3 = function (e_152) {
4804
4815
  "Button" === e_152.getClassName() && e_152.name && e_152.onPointerUpObservable.add(function () { _this.onKeyPressObservable.notifyObservers(e_152.name); });
4805
4816
  };
4806
4817
  try {
4807
- for (var _f = (e_150 = void 0, __values(t_88.children)), _g = _f.next(); !_g.done; _g = _f.next()) {
4818
+ for (var _f = (e_150 = void 0, __values(t_87.children)), _g = _f.next(); !_g.done; _g = _f.next()) {
4808
4819
  var e_152 = _g.value;
4809
4820
  _loop_3(e_152);
4810
4821
  }
@@ -4828,7 +4839,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4828
4839
  }
4829
4840
  };
4830
4841
  return He;
4831
- }(L));
4842
+ }(D));
4832
4843
  var Ue = !1;
4833
4844
  function Ye() { Ue || (Ue = !0, t.RegisterClass("BABYLON.GUI.VirtualKeyboard", He)); }
4834
4845
  Ye(), B();
@@ -4901,27 +4912,27 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4901
4912
  });
4902
4913
  e.prototype._draw = function (e) { if (e.save(), this._applyStates(e), this._isEnabled) {
4903
4914
  this._background && (e.fillStyle = this._background, e.fillRect(this._currentMeasure.left, this._currentMeasure.top, this._currentMeasure.width, this._currentMeasure.height));
4904
- var t_89 = this._currentMeasure.width / this._cellWidth, i_58 = this._currentMeasure.height / this._cellHeight, s_55 = this._currentMeasure.left + this._currentMeasure.width / 2, a_40 = this._currentMeasure.top + this._currentMeasure.height / 2;
4915
+ var t_88 = this._currentMeasure.width / this._cellWidth, i_59 = this._currentMeasure.height / this._cellHeight, s_56 = this._currentMeasure.left + this._currentMeasure.width / 2, a_40 = this._currentMeasure.top + this._currentMeasure.height / 2;
4905
4916
  if (this._displayMinorLines) {
4906
4917
  e.strokeStyle = this._minorLineColor, e.lineWidth = this._minorLineTickness;
4907
- for (var i_59 = -t_89 / 2 + 1; i_59 < t_89 / 2; i_59++) {
4908
- var t_90 = s_55 + i_59 * this.cellWidth;
4909
- e.beginPath(), e.moveTo(t_90, this._currentMeasure.top), e.lineTo(t_90, this._currentMeasure.top + this._currentMeasure.height), e.stroke();
4918
+ for (var i_60 = -t_88 / 2 + 1; i_60 < t_88 / 2; i_60++) {
4919
+ var t_89 = s_56 + i_60 * this.cellWidth;
4920
+ e.beginPath(), e.moveTo(t_89, this._currentMeasure.top), e.lineTo(t_89, this._currentMeasure.top + this._currentMeasure.height), e.stroke();
4910
4921
  }
4911
- for (var t_91 = -i_58 / 2 + 1; t_91 < i_58 / 2; t_91++) {
4912
- var i_60 = a_40 + t_91 * this.cellHeight;
4913
- e.beginPath(), e.moveTo(this._currentMeasure.left, i_60), e.lineTo(this._currentMeasure.left + this._currentMeasure.width, i_60), e.stroke();
4922
+ for (var t_90 = -i_59 / 2 + 1; t_90 < i_59 / 2; t_90++) {
4923
+ var i_61 = a_40 + t_90 * this.cellHeight;
4924
+ e.beginPath(), e.moveTo(this._currentMeasure.left, i_61), e.lineTo(this._currentMeasure.left + this._currentMeasure.width, i_61), e.stroke();
4914
4925
  }
4915
4926
  }
4916
4927
  if (this._displayMajorLines) {
4917
4928
  e.strokeStyle = this._majorLineColor, e.lineWidth = this._majorLineTickness;
4918
- for (var i_61 = -t_89 / 2 + this._majorLineFrequency; i_61 < t_89 / 2; i_61 += this._majorLineFrequency) {
4919
- var t_92 = s_55 + i_61 * this.cellWidth;
4920
- e.beginPath(), e.moveTo(t_92, this._currentMeasure.top), e.lineTo(t_92, this._currentMeasure.top + this._currentMeasure.height), e.stroke();
4929
+ for (var i_62 = -t_88 / 2 + this._majorLineFrequency; i_62 < t_88 / 2; i_62 += this._majorLineFrequency) {
4930
+ var t_91 = s_56 + i_62 * this.cellWidth;
4931
+ e.beginPath(), e.moveTo(t_91, this._currentMeasure.top), e.lineTo(t_91, this._currentMeasure.top + this._currentMeasure.height), e.stroke();
4921
4932
  }
4922
- for (var t_93 = -i_58 / 2 + this._majorLineFrequency; t_93 < i_58 / 2; t_93 += this._majorLineFrequency) {
4923
- var i_62 = a_40 + t_93 * this.cellHeight;
4924
- e.moveTo(this._currentMeasure.left, i_62), e.lineTo(this._currentMeasure.left + this._currentMeasure.width, i_62), e.closePath(), e.stroke();
4933
+ for (var t_92 = -i_59 / 2 + this._majorLineFrequency; t_92 < i_59 / 2; t_92 += this._majorLineFrequency) {
4934
+ var i_63 = a_40 + t_92 * this.cellHeight;
4935
+ e.moveTo(this._currentMeasure.left, i_63), e.lineTo(this._currentMeasure.left + this._currentMeasure.width, i_63), e.closePath(), e.stroke();
4925
4936
  }
4926
4937
  }
4927
4938
  } e.restore(); };
@@ -4977,10 +4988,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
4977
4988
  return e;
4978
4989
  }(n)), (function () { var s; var r = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = n[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], i(e, null, a, { kind: "getter", name: "displayThumb", static: !1, private: !1, access: { has: function (e) { return "displayThumb" in e; }, get: function (e) { return e.displayThumb; } }, metadata: r }, null, o), r && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r }); })(), e; })(), qe = !1;
4979
4990
  function $e() { qe || (qe = !0, t.RegisterClass("BABYLON.GUI.ImageBasedSlider", Ze)); }
4980
- $e(), De();
4991
+ $e(), Le();
4981
4992
  var Je = "Statics";
4982
4993
  var et = !1;
4983
- function tt() { et || (et = !0, b.AddHeader = function (e, t, i, s) { var a = new L("panel"), n = !s || s.isHorizontal, o = !s || s.controlFirst; a.isVertical = !n; var r = new T("header"); return r.text = t, r.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n ? r.width = i : r.height = i, o ? (a.addControl(e), a.addControl(r), r.paddingLeft = "5px") : (a.addControl(r), a.addControl(e), r.paddingRight = "5px"), r.shadowBlur = e.shadowBlur, r.shadowColor = e.shadowColor, r.shadowOffsetX = e.shadowOffsetX, r.shadowOffsetY = e.shadowOffsetY, a; }); }
4994
+ function tt() { et || (et = !0, b.AddHeader = function (e, t, i, s) { var a = new D("panel"), n = !s || s.isHorizontal, o = !s || s.controlFirst; a.isVertical = !n; var r = new T("header"); return r.text = t, r.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n ? r.width = i : r.height = i, o ? (a.addControl(e), a.addControl(r), r.paddingLeft = "5px") : (a.addControl(r), a.addControl(e), r.paddingRight = "5px"), r.shadowBlur = e.shadowBlur, r.shadowColor = e.shadowColor, r.shadowOffsetX = e.shadowOffsetX, r.shadowOffsetY = e.shadowOffsetY, a; }); }
4984
4995
  tt();
4985
4996
  var it = /** @class */ (function () {
4986
4997
  function it() {
@@ -5144,8 +5155,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5144
5155
  _this.applyYInversionOnUpdate = r, _this._rootElement = a.getEngine().getInputElement();
5145
5156
  var f = i;
5146
5157
  _this.useStandalone = !!(null == f ? void 0 : f.useStandalone), _this.useStandalone || (_this._renderObserver = a.onBeforeCameraRenderObservable.add(function (e) { return _this._checkUpdate(e); })), _this._controlAddedObserver = _this._rootContainer.onControlAddedObservable.add(function (e) { e && (_this._rootChildrenHaveChanged = !0); }), _this._controlRemovedObserver = _this._rootContainer.onControlRemovedObservable.add(function (e) { e && (_this._rootChildrenHaveChanged = !0); }), _this._preKeyboardObserver = a.onPreKeyboardObservable.add(function (e) { if (!_this.disableTabNavigation && e.type === t.KeyboardEventTypes.KEYDOWN && "Tab" === e.event.code) {
5147
- var t_94 = !e.event.shiftKey;
5148
- return t_94 && _this._focusProperties.index === _this._focusProperties.total - 1 || !t_94 && 0 === _this._focusProperties.index && _this._focusProperties.total > 0 ? (_this.focusedControl = null, _this._focusProperties.index = 0, void (_this._focusProperties.total = -1)) : (_this._focusNextElement(t_94), void e.event.preventDefault());
5158
+ var t_93 = !e.event.shiftKey;
5159
+ return t_93 && _this._focusProperties.index === _this._focusProperties.total - 1 || !t_93 && 0 === _this._focusProperties.index && _this._focusProperties.total > 0 ? (_this.focusedControl = null, _this._focusProperties.index = 0, void (_this._focusProperties.total = -1)) : (_this._focusNextElement(t_93), void e.event.preventDefault());
5149
5160
  } _this._focusedControl && (e.type === t.KeyboardEventTypes.KEYDOWN && _this._focusedControl.processKeyboard(e.event), e.skipOnPointerObservable = !0); }), _this._rootContainer._link(_this), _this.hasAlpha = !0, c && d || (_this._resizeObserver = a.getEngine().onResizeObservable.add(function () { return _this._onResize(); }), _this._onResize()), _this._texture.isReady = !0;
5150
5161
  return _this;
5151
5162
  }
@@ -5245,8 +5256,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5245
5256
  t || (t = this._rootContainer), e(t);
5246
5257
  try {
5247
5258
  for (var _b = __values(t.children), _c = _b.next(); !_c.done; _c = _b.next()) {
5248
- var i_63 = _c.value;
5249
- i_63.children ? this.executeOnAllControls(e, i_63) : e(i_63);
5259
+ var i_64 = _c.value;
5260
+ i_64.children ? this.executeOnAllControls(e, i_64) : e(i_64);
5250
5261
  }
5251
5262
  }
5252
5263
  catch (e_155_1) { e_155 = { error: e_155_1 }; }
@@ -5283,20 +5294,20 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5283
5294
  if (Array.isArray(e))
5284
5295
  n = e;
5285
5296
  else {
5286
- var t_95 = this.getDescendants(!0);
5287
- n = void 0 === e ? t_95.filter(function (e) { return void 0 !== e.overlapGroup; }) : t_95.filter(function (t) { return t.overlapGroup === e; });
5297
+ var t_94 = this.getDescendants(!0);
5298
+ n = void 0 === e ? t_94.filter(function (e) { return void 0 !== e.overlapGroup; }) : t_94.filter(function (t) { return t.overlapGroup === e; });
5288
5299
  }
5289
5300
  try {
5290
5301
  for (var n_26 = __values(n), n_26_1 = n_26.next(); !n_26_1.done; n_26_1 = n_26.next()) {
5291
5302
  var e_158 = n_26_1.value;
5292
- var o_23 = t.Vector2.Zero();
5293
- var r_14 = new t.Vector2(e_158.centerX, e_158.centerY);
5303
+ var o_24 = t.Vector2.Zero();
5304
+ var r_15 = new t.Vector2(e_158.centerX, e_158.centerY);
5294
5305
  try {
5295
5306
  for (var n_27 = (e_157 = void 0, __values(n)), n_27_1 = n_27.next(); !n_27_1.done; n_27_1 = n_27.next()) {
5296
- var i_64 = n_27_1.value;
5297
- if (e_158 !== i_64 && ht._Overlaps(e_158, i_64)) {
5298
- var e_159 = r_14.subtract(new t.Vector2(i_64.centerX, i_64.centerY)), a_42 = e_159.length();
5299
- a_42 > 0 && (o_23 = o_23.add(e_159.normalize().scale(s / a_42)));
5307
+ var i_65 = n_27_1.value;
5308
+ if (e_158 !== i_65 && ht._Overlaps(e_158, i_65)) {
5309
+ var e_159 = r_15.subtract(new t.Vector2(i_65.centerX, i_65.centerY)), a_42 = e_159.length();
5310
+ a_42 > 0 && (o_24 = o_24.add(e_159.normalize().scale(s / a_42)));
5300
5311
  }
5301
5312
  }
5302
5313
  }
@@ -5307,7 +5318,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5307
5318
  }
5308
5319
  finally { if (e_157) throw e_157.error; }
5309
5320
  }
5310
- o_23.length() > 0 && (o_23 = o_23.normalize().scale(i * (null !== (a = e_158.overlapDeltaMultiplier) && void 0 !== a ? a : 1)), e_158.linkOffsetXInPixels += o_23.x, e_158.linkOffsetYInPixels += o_23.y);
5321
+ o_24.length() > 0 && (o_24 = o_24.normalize().scale(i * (null !== (a = e_158.overlapDeltaMultiplier) && void 0 !== a ? a : 1)), e_158.linkOffsetXInPixels += o_24.x, e_158.linkOffsetYInPixels += o_24.y);
5311
5322
  }
5312
5323
  }
5313
5324
  catch (e_156_1) { e_156 = { error: e_156_1 }; }
@@ -5330,8 +5341,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5330
5341
  var a = i.getRenderWidth() * this._renderScale, n = i.getRenderHeight() * this._renderScale;
5331
5342
  if (this._renderAtIdealSize && (this._idealWidth ? (n = n * this._idealWidth / a, a = this._idealWidth) : this._idealHeight && (a = a * this._idealHeight / n, n = this._idealHeight)), s.width !== a || s.height !== n) {
5332
5343
  if (this.scaleTo(a, n), this.adjustToEngineHardwareScalingLevel) {
5333
- var e_160 = 1 / i.getHardwareScalingLevel(), t_96 = this._renderScale * e_160;
5334
- this._rootContainer.scaleX = t_96, this._rootContainer.scaleY = t_96, this._rootContainer.widthInPixels = a / t_96, this._rootContainer.heightInPixels = n / t_96;
5344
+ var e_160 = 1 / i.getHardwareScalingLevel(), t_95 = this._renderScale * e_160;
5345
+ this._rootContainer.scaleX = t_95, this._rootContainer.scaleY = t_95, this._rootContainer.widthInPixels = a / t_95, this._rootContainer.heightInPixels = n / t_95;
5335
5346
  }
5336
5347
  this.markAsDirty(), (this._idealWidth || this._idealHeight) && this._rootContainer._markAllAsDirty(), this._alreadyRegisteredForRender || (this._alreadyRegisteredForRender = !0, t.Tools.SetImmediate(function () { _this.update(_this.applyYInversionOnUpdate, _this.premulAlpha, ht.AllowGPUOptimizations), _this._alreadyRegisteredForRender = !1; }));
5337
5348
  }
@@ -5348,23 +5359,23 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5348
5359
  var e_162 = this.getScene();
5349
5360
  if (!e_162)
5350
5361
  return;
5351
- var i_65 = this._getGlobalViewport();
5352
- var _loop_4 = function (s_56) {
5353
- if (!s_56.isVisible)
5362
+ var i_66 = this._getGlobalViewport();
5363
+ var _loop_4 = function (s_57) {
5364
+ if (!s_57.isVisible)
5354
5365
  return "continue";
5355
- var a_43 = s_56._linkedMesh;
5366
+ var a_43 = s_57._linkedMesh;
5356
5367
  if (!a_43 || a_43.isDisposed()) {
5357
- t.Tools.SetImmediate(function () { s_56.linkWithMesh(null); });
5368
+ t.Tools.SetImmediate(function () { s_57.linkWithMesh(null); });
5358
5369
  return "continue";
5359
5370
  }
5360
- var n_28 = a_43.getBoundingInfo ? a_43.getBoundingInfo().boundingSphere.center : t.Vector3.ZeroReadOnly, o_24 = t.Vector3.Project(n_28, a_43.getWorldMatrix(), e_162.getTransformMatrix(), i_65);
5361
- o_24.z < 0 || o_24.z > 1 ? s_56.notRenderable = !0 : (s_56.notRenderable = !1, this_1.useInvalidateRectOptimization && s_56.invalidateRect(), s_56._moveToProjectedPosition(o_24));
5371
+ var n_28 = a_43.getBoundingInfo ? a_43.getBoundingInfo().boundingSphere.center : t.Vector3.ZeroReadOnly, o_25 = t.Vector3.Project(n_28, a_43.getWorldMatrix(), e_162.getTransformMatrix(), i_66);
5372
+ o_25.z < 0 || o_25.z > 1 ? s_57.notRenderable = !0 : (s_57.notRenderable = !1, this_1.useInvalidateRectOptimization && s_57.invalidateRect(), s_57._moveToProjectedPosition(o_25));
5362
5373
  };
5363
5374
  var this_1 = this;
5364
5375
  try {
5365
5376
  for (var _b = __values(this._linkedControls), _c = _b.next(); !_c.done; _c = _b.next()) {
5366
- var s_56 = _c.value;
5367
- _loop_4(s_56);
5377
+ var s_57 = _c.value;
5378
+ _loop_4(s_57);
5368
5379
  }
5369
5380
  }
5370
5381
  catch (e_161_1) { e_161 = { error: e_161_1 }; }
@@ -5386,15 +5397,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5386
5397
  ht.prototype._registerLastControlDown = function (e, t) { this._lastControlDown[t] = e, this.onControlPickedObservable.notifyObservers(e); };
5387
5398
  ht.prototype._doPicking = function (e, i, s, a, n, o, r, l) { var h = this.getScene(); if (!h || this.disablePicking)
5388
5399
  return; var c = h.getEngine(), d = this.getSize(); if (this._isFullscreen) {
5389
- var t_97 = h.cameraToUseForPointers || h.activeCamera;
5390
- if (!t_97)
5400
+ var t_96 = h.cameraToUseForPointers || h.activeCamera;
5401
+ if (!t_96)
5391
5402
  return;
5392
- var s_57 = t_97.viewport;
5393
- e *= d.width / (c.getRenderWidth() * s_57.width), i *= d.height / (c.getRenderHeight() * s_57.height);
5403
+ var s_58 = t_96.viewport;
5404
+ e *= d.width / (c.getRenderWidth() * s_58.width), i *= d.height / (c.getRenderHeight() * s_58.height);
5394
5405
  } if (this._capturingControl[n])
5395
5406
  return this._capturingControl[n].isPointerBlocker && (this._shouldBlockPointer = !0), void this._capturingControl[n]._processObservables(a, e, i, s, n, o); this._cursorChanged = !1, this._rootContainer._processPicking(e, i, s, a, n, o, r, l) || (h.doNotHandleCursors || this._changeCursor(""), a === t.PointerEventTypes.POINTERMOVE && this._lastControlOver[n] && (this._lastControlOver[n]._onPointerOut(this._lastControlOver[n], s), delete this._lastControlOver[n])), this._cursorChanged || h.doNotHandleCursors || this._changeCursor(""), this._manageFocus(); };
5396
- ht.prototype._cleanControlAfterRemovalFromList = function (e, t) { for (var i_66 in e)
5397
- Object.prototype.hasOwnProperty.call(e, i_66) && e[i_66] === t && delete e[i_66]; };
5407
+ ht.prototype._cleanControlAfterRemovalFromList = function (e, t) { for (var i_67 in e)
5408
+ Object.prototype.hasOwnProperty.call(e, i_67) && e[i_67] === t && delete e[i_67]; };
5398
5409
  ht.prototype._cleanControlAfterRemoval = function (e) { this._cleanControlAfterRemovalFromList(this._lastControlDown, e), this._cleanControlAfterRemovalFromList(this._lastControlOver, e); };
5399
5410
  ht.prototype.pick = function (e, i, s) {
5400
5411
  if (s === void 0) { s = null; }
@@ -5407,15 +5418,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5407
5418
  var o = e.cameraToUseForPointers || e.activeCamera, r = e.getEngine(), l = e.cameraToUseForPointers;
5408
5419
  if (o)
5409
5420
  if (o.rigCameras.length) {
5410
- var s_58 = new t.Viewport(0, 0, 1, 1);
5421
+ var s_59 = new t.Viewport(0, 0, 1, 1);
5411
5422
  try {
5412
5423
  for (var _b = __values(o.rigCameras), _c = _b.next(); !_c.done; _c = _b.next()) {
5413
- var t_98 = _c.value;
5414
- t_98.viewport.toGlobalToRef(r.getRenderWidth(), r.getRenderHeight(), s_58);
5415
- var o_25 = a / r.getHardwareScalingLevel() - s_58.x, l_13 = n / r.getHardwareScalingLevel() - (r.getRenderHeight() - s_58.y - s_58.height);
5416
- if (o_25 < 0 || l_13 < 0 || o_25 > s_58.width || l_13 > s_58.height)
5424
+ var t_97 = _c.value;
5425
+ t_97.viewport.toGlobalToRef(r.getRenderWidth(), r.getRenderHeight(), s_59);
5426
+ var o_26 = a / r.getHardwareScalingLevel() - s_59.x, l_13 = n / r.getHardwareScalingLevel() - (r.getRenderHeight() - s_59.y - s_59.height);
5427
+ if (o_26 < 0 || l_13 < 0 || o_26 > s_59.width || l_13 > s_59.height)
5417
5428
  return;
5418
- e.cameraToUseForPointers = t_98, i.x = s_58.x, i.y = s_58.y, i.width = s_58.width, i.height = s_58.height;
5429
+ e.cameraToUseForPointers = t_97, i.x = s_59.x, i.y = s_59.y, i.width = s_59.width, i.height = s_59.height;
5419
5430
  }
5420
5431
  }
5421
5432
  catch (e_164_1) { e_164 = { error: e_164_1 }; }
@@ -5469,8 +5480,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5469
5480
  else {
5470
5481
  var a_44 = t.TmpVectors.Matrix[0];
5471
5482
  i.getRowToRef(0, t.TmpVectors.Vector4[0]), i.getRowToRef(1, t.TmpVectors.Vector4[1]), i.getRowToRef(2, t.TmpVectors.Vector4[2]);
5472
- var n_29 = t.TmpVectors.Vector4[0], o_26 = t.TmpVectors.Vector4[1], r_15 = t.TmpVectors.Vector4[2];
5473
- a_44.setRowFromFloats(0, n_29.x, n_29.y, 0, 0), a_44.setRowFromFloats(1, o_26.x, o_26.y, 0, 0), a_44.setRowFromFloats(2, 0, 0, 1, 0), a_44.setRowFromFloats(3, r_15.x, r_15.y, 0, 1), s = t.TmpVectors.Vector2[0], t.Vector2.TransformToRef(e, a_44, s);
5483
+ var n_29 = t.TmpVectors.Vector4[0], o_27 = t.TmpVectors.Vector4[1], r_16 = t.TmpVectors.Vector4[2];
5484
+ a_44.setRowFromFloats(0, n_29.x, n_29.y, 0, 0), a_44.setRowFromFloats(1, o_27.x, o_27.y, 0, 0), a_44.setRowFromFloats(2, 0, 0, 1, 0), a_44.setRowFromFloats(3, r_16.x, r_16.y, 0, 1), s = t.TmpVectors.Vector2[0], t.Vector2.TransformToRef(e, a_44, s);
5474
5485
  } if ((this.wrapU === t.Texture.WRAP_ADDRESSMODE || this.wrapU === t.Texture.MIRROR_ADDRESSMODE) && s.x > 1) {
5475
5486
  var e_166 = s.x - Math.trunc(s.x);
5476
5487
  this.wrapU === t.Texture.MIRROR_ADDRESSMODE && Math.trunc(s.x) % 2 == 1 && (e_166 = 1 - e_166), s.x = e_166;
@@ -5492,23 +5503,23 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5492
5503
  var e_170 = i.pickInfo.getTextureCoordinates();
5493
5504
  if (e_170) {
5494
5505
  e_170 = _this._transformUvs(e_170);
5495
- var t_99 = _this.getSize();
5496
- _this._doPicking(e_170.x * t_99.width, (_this.applyYInversionOnUpdate ? 1 - e_170.y : e_170.y) * t_99.height, i, i.type, s, i.event.button, i.event.deltaX, i.event.deltaY);
5506
+ var t_98 = _this.getSize();
5507
+ _this._doPicking(e_170.x * t_98.width, (_this.applyYInversionOnUpdate ? 1 - e_170.y : e_170.y) * t_98.height, i, i.type, s, i.event.button, i.event.deltaX, i.event.deltaY);
5497
5508
  }
5498
5509
  }
5499
5510
  else if (i.type === t.PointerEventTypes.POINTERUP) {
5500
5511
  if (_this._lastControlDown[s] && _this._lastControlDown[s]._forcePointerUp(s), delete _this._lastControlDown[s], _this.focusedControl) {
5501
5512
  var e_171 = _this.focusedControl.keepsFocusWith();
5502
- var t_100 = !0;
5513
+ var t_99 = !0;
5503
5514
  if (e_171)
5504
5515
  try {
5505
5516
  for (var e_169 = __values(e_171), e_169_1 = e_169.next(); !e_169_1.done; e_169_1 = e_169.next()) {
5506
- var i_67 = e_169_1.value;
5507
- if (_this === i_67._host)
5517
+ var i_68 = e_169_1.value;
5518
+ if (_this === i_68._host)
5508
5519
  continue;
5509
- var e_172 = i_67._host;
5510
- if (e_172._lastControlOver[s] && e_172._lastControlOver[s].isAscendant(i_67)) {
5511
- t_100 = !1;
5520
+ var e_172 = i_68._host;
5521
+ if (e_172._lastControlOver[s] && e_172._lastControlOver[s].isAscendant(i_68)) {
5522
+ t_99 = !1;
5512
5523
  break;
5513
5524
  }
5514
5525
  }
@@ -5520,7 +5531,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5520
5531
  }
5521
5532
  finally { if (e_168) throw e_168.error; }
5522
5533
  }
5523
- t_100 && (_this.focusedControl = null);
5534
+ t_99 && (_this.focusedControl = null);
5524
5535
  }
5525
5536
  }
5526
5537
  else
@@ -5529,8 +5540,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5529
5540
  var e_173 = a.getTextureCoordinates();
5530
5541
  if (e_173) {
5531
5542
  e_173 = _this._transformUvs(e_173);
5532
- var s_59 = _this.getSize();
5533
- _this._doPicking(e_173.x * s_59.width, (_this.applyYInversionOnUpdate ? 1 - e_173.y : e_173.y) * s_59.height, null, t.PointerEventTypes.POINTERMOVE, i, 0);
5543
+ var s_60 = _this.getSize();
5544
+ _this._doPicking(e_173.x * s_60.width, (_this.applyYInversionOnUpdate ? 1 - e_173.y : e_173.y) * s_60.height, null, t.PointerEventTypes.POINTERMOVE, i, 0);
5534
5545
  }
5535
5546
  }
5536
5547
  else
@@ -5560,8 +5571,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5560
5571
  };
5561
5572
  ht.prototype.serializeContent = function () { var e = this.getSize(), t = { root: {}, width: e.width, height: e.height }; return this._rootContainer.serialize(t.root), t; };
5562
5573
  ht.prototype.parseSerializedObject = function (e, t, i) { if (this._rootContainer = b.Parse(e.root, this, i), t) {
5563
- var t_101 = e.width, i_68 = e.height;
5564
- "number" == typeof t_101 && "number" == typeof i_68 && t_101 >= 0 && i_68 >= 0 ? this.scaleTo(t_101, i_68) : this.scaleTo(1920, 1080);
5574
+ var t_100 = e.width, i_69 = e.height;
5575
+ "number" == typeof t_100 && "number" == typeof i_69 && t_100 >= 0 && i_69 >= 0 ? this.scaleTo(t_100, i_69) : this.scaleTo(1920, 1080);
5565
5576
  } };
5566
5577
  ht.prototype.clone = function (e, t) { var i = this.getScene(); if (!i)
5567
5578
  return this; var s = this.getSize(), a = this.serializeContent(); var n; return n = this._isFullscreen ? ht.CreateFullscreenUI(null != e ? e : "Clone of " + this.name) : t ? ht.CreateForMesh(t, s.width, s.height) : new ht(null != e ? e : "Clone of " + this.name, s.width, s.height, i, !this.noMipmap, this.samplingMode), n.parseSerializedObject(a), n; };
@@ -5610,8 +5621,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5610
5621
  if (200 == n.status) {
5611
5622
  var e_174;
5612
5623
  if (i) {
5613
- var i_69 = JSON.parse(JSON.parse(n.responseText).jsonPayload);
5614
- e_174 = i_69.encodedGui ? new TextDecoder("utf-8").decode(t.DecodeBase64ToBinary(i_69.encodedGui)) : i_69.gui;
5624
+ var i_70 = JSON.parse(JSON.parse(n.responseText).jsonPayload);
5625
+ e_174 = i_70.encodedGui ? new TextDecoder("utf-8").decode(t.DecodeBase64ToBinary(i_70.encodedGui)) : i_70.gui;
5615
5626
  }
5616
5627
  else
5617
5628
  e_174 = n.responseText;
@@ -5782,22 +5793,22 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5782
5793
  try {
5783
5794
  var a_46 = new (t.GetClass("BABYLON.GUI." + e.nodeName));
5784
5795
  i && s && i.addControl(a_46);
5785
- for (var t_102 = 0; t_102 < e.attributes.length; t_102++)
5786
- if (!e.attributes[t_102].name.toLowerCase().includes("datasource")) {
5787
- if (e.attributes[t_102].name.toLowerCase().includes("observable")) {
5788
- var i_70 = this._getChainElement(e.attributes[t_102].value);
5789
- a_46[e.attributes[t_102].name].add(i_70);
5796
+ for (var t_101 = 0; t_101 < e.attributes.length; t_101++)
5797
+ if (!e.attributes[t_101].name.toLowerCase().includes("datasource")) {
5798
+ if (e.attributes[t_101].name.toLowerCase().includes("observable")) {
5799
+ var i_71 = this._getChainElement(e.attributes[t_101].value);
5800
+ a_46[e.attributes[t_101].name].add(i_71);
5790
5801
  continue;
5791
5802
  }
5792
- if ("linkWithMesh" == e.attributes[t_102].name)
5793
- this._parentClass ? a_46.linkWithMesh(this._parentClass[e.attributes[t_102].value]) : a_46.linkWithMesh(window[e.attributes[t_102].value]);
5794
- else if (e.attributes[t_102].value.match(/{{.*}}/)) {
5795
- var i_71 = e.attributes[t_102].value.match(/{{(.*)}}/);
5796
- var s_60 = this._getChainElement(i_71[1]);
5797
- e.attributes[t_102].value.startsWith("{{") && e.attributes[t_102].value.endsWith("}}") || (s_60 = e.attributes[t_102].value.replace(/{{.*}}/, "".concat(s_60))), a_46[e.attributes[t_102].name] = s_60;
5803
+ if ("linkWithMesh" == e.attributes[t_101].name)
5804
+ this._parentClass ? a_46.linkWithMesh(this._parentClass[e.attributes[t_101].value]) : a_46.linkWithMesh(window[e.attributes[t_101].value]);
5805
+ else if (e.attributes[t_101].value.match(/{{.*}}/)) {
5806
+ var i_72 = e.attributes[t_101].value.match(/{{(.*)}}/);
5807
+ var s_61 = this._getChainElement(i_72[1]);
5808
+ e.attributes[t_101].value.startsWith("{{") && e.attributes[t_101].value.endsWith("}}") || (s_61 = e.attributes[t_101].value.replace(/{{.*}}/, "".concat(s_61))), a_46[e.attributes[t_101].name] = s_61;
5798
5809
  }
5799
5810
  else
5800
- this._objectAttributes[e.attributes[t_102].name] ? a_46[e.attributes[t_102].name] = this._getClassAttribute(e.attributes[t_102].value) : "true" == e.attributes[t_102].value || "false" == e.attributes[t_102].value ? a_46[e.attributes[t_102].name] = "true" == e.attributes[t_102].value : a_46[e.attributes[t_102].name] = isNaN(Number(e.attributes[t_102].value)) ? e.attributes[t_102].value : Number(e.attributes[t_102].value);
5811
+ this._objectAttributes[e.attributes[t_101].name] ? a_46[e.attributes[t_101].name] = this._getClassAttribute(e.attributes[t_101].value) : "true" == e.attributes[t_101].value || "false" == e.attributes[t_101].value ? a_46[e.attributes[t_101].name] = "true" == e.attributes[t_101].value : a_46[e.attributes[t_101].name] = isNaN(Number(e.attributes[t_101].value)) ? e.attributes[t_101].value : Number(e.attributes[t_101].value);
5801
5812
  }
5802
5813
  if (!e.attributes.getNamedItem("id"))
5803
5814
  return this._nodes[e.nodeName + Object.keys(this._nodes).length + "_gen"] = a_46, a_46;
@@ -5842,13 +5853,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5842
5853
  var n_31 = s.split(" in ");
5843
5854
  if (n_31.length < 2)
5844
5855
  throw "XmlLoader Exception : Malformed XML, Data Source must have an iterator and a source";
5845
- var o_27 = n_31[1];
5846
- if (o_27.startsWith("{") && o_27.endsWith("}") && (a_47 = !1), (!a_47 || o_27.startsWith("[") && o_27.endsWith("]")) && (o_27 = o_27.substring(1, o_27.length - 1)), o_27 = this._parentClass ? this._parentClass[o_27] : window[o_27], a_47)
5847
- for (var i_72 = 0; i_72 < o_27.length; i_72++)
5848
- this._prepareSourceElement(e, t, n_31[0], o_27, i_72);
5856
+ var o_28 = n_31[1];
5857
+ if (o_28.startsWith("{") && o_28.endsWith("}") && (a_47 = !1), (!a_47 || o_28.startsWith("[") && o_28.endsWith("]")) && (o_28 = o_28.substring(1, o_28.length - 1)), o_28 = this._parentClass ? this._parentClass[o_28] : window[o_28], a_47)
5858
+ for (var i_73 = 0; i_73 < o_28.length; i_73++)
5859
+ this._prepareSourceElement(e, t, n_31[0], o_28, i_73);
5849
5860
  else
5850
- for (var i_73 in o_27)
5851
- this._prepareSourceElement(e, t, n_31[0], o_27, i_73);
5861
+ for (var i_74 in o_28)
5862
+ this._prepareSourceElement(e, t, n_31[0], o_28, i_74);
5852
5863
  e.nextSibling && this._parseXml(e.nextSibling, i);
5853
5864
  } };
5854
5865
  bt.prototype._parseXml = function (e, t, i) {
@@ -5933,9 +5944,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5933
5944
  var e_180, _a;
5934
5945
  try {
5935
5946
  for (var _b = __values(this._behaviors), _c = _b.next(); !_c.done; _c = _b.next()) {
5936
- var t_103 = _c.value;
5937
- if (t_103.name === e)
5938
- return t_103;
5947
+ var t_102 = _c.value;
5948
+ if (t_102.name === e)
5949
+ return t_102;
5939
5950
  }
5940
5951
  }
5941
5952
  catch (e_180_1) { e_180 = { error: e_180_1 }; }
@@ -5976,8 +5987,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5976
5987
  if (this._node = this._createNode(e), !this.node)
5977
5988
  return;
5978
5989
  this._position && (this.node.position = this._position), this._scaling && (this.node.scaling = this._scaling), this._injectGUI3DReservedDataStore(this.node).control = this;
5979
- var t_104 = this.mesh;
5980
- t_104 && (t_104.isPickable = !0, this._affectMaterial(t_104));
5990
+ var t_103 = this.mesh;
5991
+ t_103 && (t_103.isPickable = !0, this._affectMaterial(t_103));
5981
5992
  } };
5982
5993
  pt.prototype._injectGUI3DReservedDataStore = function (e) { var t, i; return e.reservedDataStore = null !== (t = e.reservedDataStore) && void 0 !== t ? t : {}, e.reservedDataStore.GUI3D = null !== (i = e.reservedDataStore.GUI3D) && void 0 !== i ? i : {}, e.reservedDataStore.GUI3D; };
5983
5994
  pt.prototype._createNode = function (e) { return null; };
@@ -6036,8 +6047,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6036
6047
  if (this._facadeTexture)
6037
6048
  this._facadeTexture.rootContainer.clearControls();
6038
6049
  else {
6039
- var e_185 = "number" == typeof this._contentResolution ? this._contentResolution : this._contentResolution.width, i_74 = "number" == typeof this._contentResolution ? this._contentResolution : this._contentResolution.height;
6040
- this._facadeTexture = new ht("Facade", e_185, i_74, this._host.utilityLayer.utilityLayerScene, !0, t.Texture.TRILINEAR_SAMPLINGMODE), this._setFacadeTextureScaling(), this._facadeTexture.premulAlpha = !0;
6050
+ var e_185 = "number" == typeof this._contentResolution ? this._contentResolution : this._contentResolution.width, i_75 = "number" == typeof this._contentResolution ? this._contentResolution : this._contentResolution.height;
6051
+ this._facadeTexture = new ht("Facade", e_185, i_75, this._host.utilityLayer.utilityLayerScene, !0, t.Texture.TRILINEAR_SAMPLINGMODE), this._setFacadeTextureScaling(), this._facadeTexture.premulAlpha = !0;
6041
6052
  }
6042
6053
  this._facadeTexture.addControl(e), this._applyFacade(this._facadeTexture);
6043
6054
  } },
@@ -6170,26 +6181,26 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6170
6181
  if (!e_192.mesh)
6171
6182
  continue;
6172
6183
  s++, e_192.mesh.computeWorldMatrix(!0);
6173
- var t_105 = e_192.mesh.getBoundingInfo().boundingBox.extendSize, i_76 = e_192.mesh.getDescendants(!1);
6184
+ var t_104 = e_192.mesh.getBoundingInfo().boundingBox.extendSize, i_77 = e_192.mesh.getDescendants(!1);
6174
6185
  try {
6175
- for (var i_75 = (e_190 = void 0, __values(i_76)), i_75_1 = i_75.next(); !i_75_1.done; i_75_1 = i_75.next()) {
6176
- var e_193 = i_75_1.value;
6186
+ for (var i_76 = (e_190 = void 0, __values(i_77)), i_76_1 = i_76.next(); !i_76_1.done; i_76_1 = i_76.next()) {
6187
+ var e_193 = i_76_1.value;
6177
6188
  e_193.computeWorldMatrix(!0);
6178
- var i_77 = e_193;
6179
- if ("function" == typeof i_77.getBoundingInfo) {
6180
- var e_194 = i_77.getBoundingInfo().boundingBox.extendSize;
6181
- t_105.x = Math.max(t_105.x, e_194.x), t_105.y = Math.max(t_105.y, e_194.y), t_105.z = Math.max(t_105.z, e_194.z);
6189
+ var i_78 = e_193;
6190
+ if ("function" == typeof i_78.getBoundingInfo) {
6191
+ var e_194 = i_78.getBoundingInfo().boundingBox.extendSize;
6192
+ t_104.x = Math.max(t_104.x, e_194.x), t_104.y = Math.max(t_104.y, e_194.y), t_104.z = Math.max(t_104.z, e_194.z);
6182
6193
  }
6183
6194
  }
6184
6195
  }
6185
6196
  catch (e_190_1) { e_190 = { error: e_190_1 }; }
6186
6197
  finally {
6187
6198
  try {
6188
- if (i_75_1 && !i_75_1.done && (_b = i_75.return)) _b.call(i_75);
6199
+ if (i_76_1 && !i_76_1.done && (_b = i_76.return)) _b.call(i_76);
6189
6200
  }
6190
6201
  finally { if (e_190) throw e_190.error; }
6191
6202
  }
6192
- this._cellWidth = Math.max(this._cellWidth, 2 * t_105.x), this._cellHeight = Math.max(this._cellHeight, 2 * t_105.y);
6203
+ this._cellWidth = Math.max(this._cellWidth, 2 * t_104.x), this._cellHeight = Math.max(this._cellHeight, 2 * t_104.y);
6193
6204
  }
6194
6205
  }
6195
6206
  catch (e_189_1) { e_189 = { error: e_189_1 }; }
@@ -6208,7 +6219,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6208
6219
  ;
6209
6220
  else
6210
6221
  for (var l_15 = 0; l_15 < i; l_15++)
6211
- for (var i_78 = 0; i_78 < e && (o.push(new t.Vector3(l_15 * this._cellWidth - a + this._cellWidth / 2, i_78 * this._cellHeight - n + this._cellHeight / 2, 0)), r++, !(r > s)); i_78++)
6222
+ for (var i_79 = 0; i_79 < e && (o.push(new t.Vector3(l_15 * this._cellWidth - a + this._cellWidth / 2, i_79 * this._cellHeight - n + this._cellHeight / 2, 0)), r++, !(r > s)); i_79++)
6212
6223
  ;
6213
6224
  r = 0;
6214
6225
  try {
@@ -6268,11 +6279,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6268
6279
  }
6269
6280
  return Ct;
6270
6281
  }(t.MaterialDefines));
6271
- var Tt = (function () { var e, a, r, l, h; var c, d, u, f, m, g, b, v, p, x, I, S, y, P = t.PushMaterial, B = [], C = [], T = [], R = [], w = [], k = [], O = [], M = [], F = [], E = [], D = [], L = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = []; return e = /** @class */ (function (_super) {
6282
+ var Tt = (function () { var e, a, r, l, h; var c, d, u, f, m, g, b, v, p, x, I, S, y, P = t.PushMaterial, B = [], C = [], T = [], R = [], w = [], k = [], O = [], M = [], F = [], E = [], L = [], D = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = []; return e = /** @class */ (function (_super) {
6272
6283
  __extends(e, _super);
6273
6284
  function e(e, i) {
6274
6285
  var _this = this;
6275
- _this = _super.call(this, e, i) || this, a.set(_this, s(_this, B, .5)), _this.innerGlowColor = (s(_this, C), s(_this, T, new t.Color3(1, 1, 1))), _this.albedoColor = (s(_this, R), s(_this, w, new t.Color3(.3, .35, .4))), r.set(_this, (s(_this, k), s(_this, O, !1))), _this.borderWidth = (s(_this, M), s(_this, F, .5)), _this.edgeSmoothingValue = (s(_this, E), s(_this, D, .02)), _this.borderMinValue = (s(_this, L), s(_this, z, .1)), l.set(_this, (s(_this, N), s(_this, A, !1))), _this.hoverRadius = (s(_this, V), s(_this, Q, .01)), _this.hoverColor = (s(_this, W), s(_this, G, new t.Color4(.3, .3, .3, 1))), _this.hoverPosition = (s(_this, H), s(_this, U, t.Vector3.Zero())), _this._albedoTexture = (s(_this, Y), s(_this, X, void 0)), h.set(_this, (s(_this, j), s(_this, K, void 0))), s(_this, Z);
6286
+ _this = _super.call(this, e, i) || this, a.set(_this, s(_this, B, .5)), _this.innerGlowColor = (s(_this, C), s(_this, T, new t.Color3(1, 1, 1))), _this.albedoColor = (s(_this, R), s(_this, w, new t.Color3(.3, .35, .4))), r.set(_this, (s(_this, k), s(_this, O, !1))), _this.borderWidth = (s(_this, M), s(_this, F, .5)), _this.edgeSmoothingValue = (s(_this, E), s(_this, L, .02)), _this.borderMinValue = (s(_this, D), s(_this, z, .1)), l.set(_this, (s(_this, N), s(_this, A, !1))), _this.hoverRadius = (s(_this, V), s(_this, Q, .01)), _this.hoverColor = (s(_this, W), s(_this, G, new t.Color4(.3, .3, .3, 1))), _this.hoverPosition = (s(_this, H), s(_this, U, t.Vector3.Zero())), _this._albedoTexture = (s(_this, Y), s(_this, X, void 0)), h.set(_this, (s(_this, j), s(_this, K, void 0))), s(_this, Z);
6276
6287
  return _this;
6277
6288
  }
6278
6289
  Object.defineProperty(e.prototype, "innerGlowColorIntensity", {
@@ -6313,12 +6324,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6313
6324
  else
6314
6325
  o.TEXTURE = !1; var r = n.getEngine(); if (o.isDirty) {
6315
6326
  o.markAsProcessed(), n.resetCachedMaterial();
6316
- var i_79 = [t.VertexBuffer.PositionKind];
6317
- i_79.push(t.VertexBuffer.NormalKind), i_79.push(t.VertexBuffer.UVKind);
6327
+ var i_80 = [t.VertexBuffer.PositionKind];
6328
+ i_80.push(t.VertexBuffer.NormalKind), i_80.push(t.VertexBuffer.UVKind);
6318
6329
  var a_48 = "fluent", l_16 = ["world", "viewProjection", "innerGlowColor", "albedoColor", "borderWidth", "edgeSmoothingValue", "scaleFactor", "borderMinValue", "hoverColor", "hoverPosition", "hoverRadius", "textureMatrix"], h_6 = ["albedoSampler"], c_4 = [];
6319
6330
  t.PrepareUniformsAndSamplersList({ uniformsNames: l_16, uniformBuffersNames: c_4, samplers: h_6, defines: o, maxSimultaneousLights: 4, shaderLanguage: this._shaderLanguage });
6320
6331
  var d_4 = o.toString();
6321
- s.setEffect(n.getEngine().createEffect(a_48, { attributes: i_79, uniformsNames: l_16, uniformBuffersNames: c_4, samplers: h_6, defines: d_4, fallbacks: null, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, r), o, this._materialContext);
6332
+ s.setEffect(n.getEngine().createEffect(a_48, { attributes: i_80, uniformsNames: l_16, uniformBuffersNames: c_4, samplers: h_6, defines: d_4, fallbacks: null, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, r), o, this._materialContext);
6322
6333
  } return !(!s.effect || !s.effect.isReady() || (o._renderId = n.getRenderId(), a._wasPreviouslyReady = !0, 0)); };
6323
6334
  e.prototype.bindForSubMesh = function (e, i, s) { var a = this.getScene(), n = s.materialDefines; if (!n)
6324
6335
  return; var o = s.effect; if (o) {
@@ -6340,7 +6351,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6340
6351
  e.prototype.getClassName = function () { return "FluentMaterial"; };
6341
6352
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
6342
6353
  return e;
6343
- }(P)), a = new WeakMap, r = new WeakMap, l = new WeakMap, h = new WeakMap, (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = P[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; c = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], d = [t.serializeAsColor3()], u = [t.serializeAsColor3()], f = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], p = [t.serialize()], x = [t.serializeAsColor4()], I = [t.serializeAsVector3()], S = [t.serializeAsTexture("albedoTexture")], y = [t.expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")], i(e, null, c, { kind: "accessor", name: "innerGlowColorIntensity", static: !1, private: !1, access: { has: function (e) { return "innerGlowColorIntensity" in e; }, get: function (e) { return e.innerGlowColorIntensity; }, set: function (e, t) { e.innerGlowColorIntensity = t; } }, metadata: a }, B, C), i(e, null, f, { kind: "accessor", name: "renderBorders", static: !1, private: !1, access: { has: function (e) { return "renderBorders" in e; }, get: function (e) { return e.renderBorders; }, set: function (e, t) { e.renderBorders = t; } }, metadata: a }, O, M), i(e, null, v, { kind: "accessor", name: "renderHoverLight", static: !1, private: !1, access: { has: function (e) { return "renderHoverLight" in e; }, get: function (e) { return e.renderHoverLight; }, set: function (e, t) { e.renderHoverLight = t; } }, metadata: a }, A, V), i(e, null, y, { kind: "accessor", name: "albedoTexture", static: !1, private: !1, access: { has: function (e) { return "albedoTexture" in e; }, get: function (e) { return e.albedoTexture; }, set: function (e, t) { e.albedoTexture = t; } }, metadata: a }, K, Z), i(null, null, d, { kind: "field", name: "innerGlowColor", static: !1, private: !1, access: { has: function (e) { return "innerGlowColor" in e; }, get: function (e) { return e.innerGlowColor; }, set: function (e, t) { e.innerGlowColor = t; } }, metadata: a }, T, R), i(null, null, u, { kind: "field", name: "albedoColor", static: !1, private: !1, access: { has: function (e) { return "albedoColor" in e; }, get: function (e) { return e.albedoColor; }, set: function (e, t) { e.albedoColor = t; } }, metadata: a }, w, k), i(null, null, m, { kind: "field", name: "borderWidth", static: !1, private: !1, access: { has: function (e) { return "borderWidth" in e; }, get: function (e) { return e.borderWidth; }, set: function (e, t) { e.borderWidth = t; } }, metadata: a }, F, E), i(null, null, g, { kind: "field", name: "edgeSmoothingValue", static: !1, private: !1, access: { has: function (e) { return "edgeSmoothingValue" in e; }, get: function (e) { return e.edgeSmoothingValue; }, set: function (e, t) { e.edgeSmoothingValue = t; } }, metadata: a }, D, L), i(null, null, b, { kind: "field", name: "borderMinValue", static: !1, private: !1, access: { has: function (e) { return "borderMinValue" in e; }, get: function (e) { return e.borderMinValue; }, set: function (e, t) { e.borderMinValue = t; } }, metadata: a }, z, N), i(null, null, p, { kind: "field", name: "hoverRadius", static: !1, private: !1, access: { has: function (e) { return "hoverRadius" in e; }, get: function (e) { return e.hoverRadius; }, set: function (e, t) { e.hoverRadius = t; } }, metadata: a }, Q, W), i(null, null, x, { kind: "field", name: "hoverColor", static: !1, private: !1, access: { has: function (e) { return "hoverColor" in e; }, get: function (e) { return e.hoverColor; }, set: function (e, t) { e.hoverColor = t; } }, metadata: a }, G, H), i(null, null, I, { kind: "field", name: "hoverPosition", static: !1, private: !1, access: { has: function (e) { return "hoverPosition" in e; }, get: function (e) { return e.hoverPosition; }, set: function (e, t) { e.hoverPosition = t; } }, metadata: a }, U, Y), i(null, null, S, { kind: "field", name: "_albedoTexture", static: !1, private: !1, access: { has: function (e) { return "_albedoTexture" in e; }, get: function (e) { return e._albedoTexture; }, set: function (e, t) { e._albedoTexture = t; } }, metadata: a }, X, j), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Ti; }), Promise.resolve().then(function () { return ki; })]; }, function () { return [Promise.resolve().then(function () { return vs; }), Promise.resolve().then(function () { return Is; })]; }), e; })(), Rt = !1;
6354
+ }(P)), a = new WeakMap, r = new WeakMap, l = new WeakMap, h = new WeakMap, (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = P[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; c = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], d = [t.serializeAsColor3()], u = [t.serializeAsColor3()], f = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize(), t.expandToProperty("_markAllSubMeshesAsTexturesDirty")], p = [t.serialize()], x = [t.serializeAsColor4()], I = [t.serializeAsVector3()], S = [t.serializeAsTexture("albedoTexture")], y = [t.expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")], i(e, null, c, { kind: "accessor", name: "innerGlowColorIntensity", static: !1, private: !1, access: { has: function (e) { return "innerGlowColorIntensity" in e; }, get: function (e) { return e.innerGlowColorIntensity; }, set: function (e, t) { e.innerGlowColorIntensity = t; } }, metadata: a }, B, C), i(e, null, f, { kind: "accessor", name: "renderBorders", static: !1, private: !1, access: { has: function (e) { return "renderBorders" in e; }, get: function (e) { return e.renderBorders; }, set: function (e, t) { e.renderBorders = t; } }, metadata: a }, O, M), i(e, null, v, { kind: "accessor", name: "renderHoverLight", static: !1, private: !1, access: { has: function (e) { return "renderHoverLight" in e; }, get: function (e) { return e.renderHoverLight; }, set: function (e, t) { e.renderHoverLight = t; } }, metadata: a }, A, V), i(e, null, y, { kind: "accessor", name: "albedoTexture", static: !1, private: !1, access: { has: function (e) { return "albedoTexture" in e; }, get: function (e) { return e.albedoTexture; }, set: function (e, t) { e.albedoTexture = t; } }, metadata: a }, K, Z), i(null, null, d, { kind: "field", name: "innerGlowColor", static: !1, private: !1, access: { has: function (e) { return "innerGlowColor" in e; }, get: function (e) { return e.innerGlowColor; }, set: function (e, t) { e.innerGlowColor = t; } }, metadata: a }, T, R), i(null, null, u, { kind: "field", name: "albedoColor", static: !1, private: !1, access: { has: function (e) { return "albedoColor" in e; }, get: function (e) { return e.albedoColor; }, set: function (e, t) { e.albedoColor = t; } }, metadata: a }, w, k), i(null, null, m, { kind: "field", name: "borderWidth", static: !1, private: !1, access: { has: function (e) { return "borderWidth" in e; }, get: function (e) { return e.borderWidth; }, set: function (e, t) { e.borderWidth = t; } }, metadata: a }, F, E), i(null, null, g, { kind: "field", name: "edgeSmoothingValue", static: !1, private: !1, access: { has: function (e) { return "edgeSmoothingValue" in e; }, get: function (e) { return e.edgeSmoothingValue; }, set: function (e, t) { e.edgeSmoothingValue = t; } }, metadata: a }, L, D), i(null, null, b, { kind: "field", name: "borderMinValue", static: !1, private: !1, access: { has: function (e) { return "borderMinValue" in e; }, get: function (e) { return e.borderMinValue; }, set: function (e, t) { e.borderMinValue = t; } }, metadata: a }, z, N), i(null, null, p, { kind: "field", name: "hoverRadius", static: !1, private: !1, access: { has: function (e) { return "hoverRadius" in e; }, get: function (e) { return e.hoverRadius; }, set: function (e, t) { e.hoverRadius = t; } }, metadata: a }, Q, W), i(null, null, x, { kind: "field", name: "hoverColor", static: !1, private: !1, access: { has: function (e) { return "hoverColor" in e; }, get: function (e) { return e.hoverColor; }, set: function (e, t) { e.hoverColor = t; } }, metadata: a }, G, H), i(null, null, I, { kind: "field", name: "hoverPosition", static: !1, private: !1, access: { has: function (e) { return "hoverPosition" in e; }, get: function (e) { return e.hoverPosition; }, set: function (e, t) { e.hoverPosition = t; } }, metadata: a }, U, Y), i(null, null, S, { kind: "field", name: "_albedoTexture", static: !1, private: !1, access: { has: function (e) { return "_albedoTexture" in e; }, get: function (e) { return e._albedoTexture; }, set: function (e, t) { e._albedoTexture = t; } }, metadata: a }, X, j), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Ti; }), Promise.resolve().then(function () { return ki; })]; }, function () { return [Promise.resolve().then(function () { return vs; }), Promise.resolve().then(function () { return Is; })]; }), e; })(), Rt = !1;
6344
6355
  function wt() { Rt || (Rt = !0, t.RegisterClass("BABYLON.GUI.FluentMaterial", Tt)); }
6345
6356
  var kt = /** @class */ (function (_super) {
6346
6357
  __extends(kt, _super);
@@ -6385,8 +6396,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6385
6396
  this._currentMin.addInPlaceFromFloats(-this._cellWidth / 2, -this._cellHeight / 2, 0), this._currentMax.addInPlaceFromFloats(this._cellWidth / 2, this._cellHeight / 2, 0);
6386
6397
  var e_200 = this._currentMax.subtract(this._currentMin);
6387
6398
  this._backPlate.scaling.x = e_200.x + this._cellWidth * this.backPlateMargin, this._backPlate.scaling.y = e_200.y + this._cellHeight * this.backPlateMargin, this._backPlate.scaling.z = .001;
6388
- for (var t_106 = 0; t_106 < this._children.length; t_106++)
6389
- this._children[t_106].position.subtractInPlace(this._currentMin).subtractInPlace(e_200.scale(.5)), this._children[t_106].position.z -= .01;
6399
+ for (var t_105 = 0; t_105 < this._children.length; t_105++)
6400
+ this._children[t_105].position.subtractInPlace(this._currentMin).subtractInPlace(e_200.scale(.5)), this._children[t_105].position.z -= .01;
6390
6401
  } this._currentMin = null, this._currentMax = null; };
6391
6402
  kt.prototype.addButton = function (e) { var t = this.blockLayout; return t || (this.blockLayout = !0), _super.prototype.addControl.call(this, e), e.isBackplateVisible = !1, e.scaling.scaleInPlace(kt.MENU_BUTTON_SCALE), t || (this.blockLayout = !1), this; };
6392
6403
  kt.prototype.addControl = function (e) { return t.Logger.Warn("TouchHolographicMenu can only contain buttons. Please use the method `addButton` instead."), this; };
@@ -6419,11 +6430,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6419
6430
  }
6420
6431
  return Mt;
6421
6432
  }(t.MaterialDefines));
6422
- var Ft = (function () { var e; var a, n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R = t.PushMaterial, w = [], k = [], O = [], M = [], F = [], E = [], D = [], L = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = []; return e = /** @class */ (function (_super) {
6433
+ var Ft = (function () { var e; var a, n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R = t.PushMaterial, w = [], k = [], O = [], M = [], F = [], E = [], L = [], D = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = []; return e = /** @class */ (function (_super) {
6423
6434
  __extends(e, _super);
6424
6435
  function e(i, a) {
6425
6436
  var _this = this;
6426
- _this = _super.call(this, i, a) || this, _this.radius = s(_this, w, .03), _this.lineWidth = (s(_this, k), s(_this, O, .01)), _this.absoluteSizes = (s(_this, M), s(_this, F, !1)), _this._filterWidth = (s(_this, E), 1), _this.baseColor = s(_this, D, new t.Color4(.0392157, .0666667, .207843, 1)), _this.lineColor = (s(_this, L), s(_this, z, new t.Color4(.14902, .133333, .384314, 1))), _this.blobIntensity = (s(_this, N), s(_this, A, .98)), _this.blobFarSize = (s(_this, V), s(_this, Q, .04)), _this.blobNearDistance = (s(_this, W), s(_this, G, 0)), _this.blobFarDistance = (s(_this, H), s(_this, U, .08)), _this.blobFadeLength = (s(_this, Y), s(_this, X, .08)), _this.blobNearSize = (s(_this, j), s(_this, K, .22)), _this.blobPulse = (s(_this, Z), s(_this, q, 0)), _this.blobFade = (s(_this, $), s(_this, J, 0)), _this.blobNearSize2 = (s(_this, ee), s(_this, te, .22)), _this.blobPulse2 = (s(_this, ie), s(_this, se, 0)), _this.blobFade2 = (s(_this, ae), s(_this, ne, 0)), _this._rate = (s(_this, oe), .135), _this.highlightColor = s(_this, re, new t.Color4(.98, .98, .98, 1)), _this.highlightWidth = (s(_this, le), s(_this, _e, .25)), _this._highlightTransform = (s(_this, he), new t.Vector4(1, 1, 0, 0)), _this._highlight = 1, _this.iridescenceIntensity = s(_this, ce, 0), _this.iridescenceEdgeIntensity = (s(_this, de), s(_this, ue, 1)), _this._angle = (s(_this, fe), -45), _this.fadeOut = s(_this, me, 1), _this._reflected = (s(_this, ge), !0), _this._frequency = 1, _this._verticalOffset = 0, _this.globalLeftIndexTipPosition = s(_this, be, t.Vector3.Zero()), _this._globalLeftIndexTipPosition4 = (s(_this, ve), t.Vector4.Zero()), _this.globalRightIndexTipPosition = s(_this, pe, t.Vector3.Zero()), _this._globalRightIndexTipPosition4 = (s(_this, xe), t.Vector4.Zero()), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
6437
+ _this = _super.call(this, i, a) || this, _this.radius = s(_this, w, .03), _this.lineWidth = (s(_this, k), s(_this, O, .01)), _this.absoluteSizes = (s(_this, M), s(_this, F, !1)), _this._filterWidth = (s(_this, E), 1), _this.baseColor = s(_this, L, new t.Color4(.0392157, .0666667, .207843, 1)), _this.lineColor = (s(_this, D), s(_this, z, new t.Color4(.14902, .133333, .384314, 1))), _this.blobIntensity = (s(_this, N), s(_this, A, .98)), _this.blobFarSize = (s(_this, V), s(_this, Q, .04)), _this.blobNearDistance = (s(_this, W), s(_this, G, 0)), _this.blobFarDistance = (s(_this, H), s(_this, U, .08)), _this.blobFadeLength = (s(_this, Y), s(_this, X, .08)), _this.blobNearSize = (s(_this, j), s(_this, K, .22)), _this.blobPulse = (s(_this, Z), s(_this, q, 0)), _this.blobFade = (s(_this, $), s(_this, J, 0)), _this.blobNearSize2 = (s(_this, ee), s(_this, te, .22)), _this.blobPulse2 = (s(_this, ie), s(_this, se, 0)), _this.blobFade2 = (s(_this, ae), s(_this, ne, 0)), _this._rate = (s(_this, oe), .135), _this.highlightColor = s(_this, re, new t.Color4(.98, .98, .98, 1)), _this.highlightWidth = (s(_this, le), s(_this, _e, .25)), _this._highlightTransform = (s(_this, he), new t.Vector4(1, 1, 0, 0)), _this._highlight = 1, _this.iridescenceIntensity = s(_this, ce, 0), _this.iridescenceEdgeIntensity = (s(_this, de), s(_this, ue, 1)), _this._angle = (s(_this, fe), -45), _this.fadeOut = s(_this, me, 1), _this._reflected = (s(_this, ge), !0), _this._frequency = 1, _this._verticalOffset = 0, _this.globalLeftIndexTipPosition = s(_this, be, t.Vector3.Zero()), _this._globalLeftIndexTipPosition4 = (s(_this, ve), t.Vector4.Zero()), _this.globalRightIndexTipPosition = s(_this, pe, t.Vector3.Zero()), _this._globalRightIndexTipPosition4 = (s(_this, xe), t.Vector4.Zero()), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
6427
6438
  var n = t.Tools.GetAssetUrl(e.BLOB_TEXTURE_URL), o = t.Tools.GetAssetUrl(e.IM_TEXTURE_URL);
6428
6439
  _this._blobTexture = new t.Texture(n, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE), _this._iridescentMap = new t.Texture(o, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
6429
6440
  return _this;
@@ -6436,12 +6447,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6436
6447
  return !1; s.materialDefines || (s.materialDefines = new Mt); var n = s.materialDefines, o = this.getScene(); if (this._isReadyForSubMesh(s))
6437
6448
  return !0; var r = o.getEngine(); if (t.PrepareDefinesForAttributes(i, n, !1, !1), n.isDirty) {
6438
6449
  n.markAsProcessed(), o.resetCachedMaterial();
6439
- var i_80 = new t.EffectFallbacks;
6440
- n.FOG && i_80.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, i_80), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
6450
+ var i_81 = new t.EffectFallbacks;
6451
+ n.FOG && i_81.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, i_81), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
6441
6452
  var a_49 = [t.VertexBuffer.PositionKind];
6442
6453
  n.NORMAL && a_49.push(t.VertexBuffer.NormalKind), n.UV1 && a_49.push(t.VertexBuffer.UVKind), n.UV2 && a_49.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && a_49.push(t.VertexBuffer.ColorKind), n.TANGENT && a_49.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(a_49, n);
6443
6454
  var l_17 = "fluentBackplate", h_7 = n.toString(), c_5 = ["world", "viewProjection", "cameraPosition", "_Radius_", "_Line_Width_", "_Absolute_Sizes_", "_Filter_Width_", "_Base_Color_", "_Line_Color_", "_Radius_Top_Left_", "_Radius_Top_Right_", "_Radius_Bottom_Left_", "_Radius_Bottom_Right_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Rate_", "_Highlight_Color_", "_Highlight_Width_", "_Highlight_Transform_", "_Highlight_", "_Iridescence_Intensity_", "_Iridescence_Edge_Intensity_", "_Angle_", "_Fade_Out_", "_Reflected_", "_Frequency_", "_Vertical_Offset_", "_Iridescent_Map_", "_Use_Global_Left_Index_", "_Use_Global_Right_Index_", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position"], d_5 = ["_Blob_Texture_", "_Iridescent_Map_"], u_4 = [];
6444
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_5, uniformBuffersNames: u_4, samplers: d_5, defines: n, maxSimultaneousLights: 4, shaderLanguage: this._shaderLanguage }), s.setEffect(o.getEngine().createEffect(l_17, { attributes: a_49, uniformsNames: c_5, uniformBuffersNames: u_4, samplers: d_5, defines: h_7, fallbacks: i_80, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, r), n, this._materialContext);
6455
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_5, uniformBuffersNames: u_4, samplers: d_5, defines: n, maxSimultaneousLights: 4, shaderLanguage: this._shaderLanguage }), s.setEffect(o.getEngine().createEffect(l_17, { attributes: a_49, uniformsNames: c_5, uniformBuffersNames: u_4, samplers: d_5, defines: h_7, fallbacks: i_81, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, r), n, this._materialContext);
6445
6456
  } return !(!s.effect || !s.effect.isReady() || (n._renderId = o.getRenderId(), a._wasPreviouslyReady = !0, 0)); };
6446
6457
  e.prototype.bindForSubMesh = function (e, i, s) { var a, n; if (!s.materialDefines)
6447
6458
  return; var o = s.effect; o && (this._activeEffect = o, this.bindOnlyWorldMatrix(e), this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix()), this._activeEffect.setVector3("cameraPosition", null !== (n = null === (a = this.getScene().activeCamera) || void 0 === a ? void 0 : a.position) && void 0 !== n ? n : t.Vector3.ZeroReadOnly), this._activeEffect.setFloat("_Radius_", this.radius), this._activeEffect.setFloat("_Line_Width_", this.lineWidth), this._activeEffect.setFloat("_Absolute_Sizes_", this.absoluteSizes ? 1 : 0), this._activeEffect.setFloat("_Filter_Width_", this._filterWidth), this._activeEffect.setDirectColor4("_Base_Color_", this.baseColor), this._activeEffect.setDirectColor4("_Line_Color_", this.lineColor), this._activeEffect.setFloat("_Radius_Top_Left_", 1), this._activeEffect.setFloat("_Radius_Top_Right_", 1), this._activeEffect.setFloat("_Radius_Bottom_Left_", 1), this._activeEffect.setFloat("_Radius_Bottom_Right_", 1), this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity), this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize), this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize), this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance), this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance), this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength), this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse), this._activeEffect.setFloat("_Blob_Fade_", this.blobFade), this._activeEffect.setTexture("_Blob_Texture_", this._blobTexture), this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2), this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2), this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2), this._activeEffect.setFloat("_Rate_", this._rate), this._activeEffect.setDirectColor4("_Highlight_Color_", this.highlightColor), this._activeEffect.setFloat("_Highlight_Width_", this.highlightWidth), this._activeEffect.setVector4("_Highlight_Transform_", this._highlightTransform), this._activeEffect.setFloat("_Highlight_", this._highlight), this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity), this._activeEffect.setFloat("_Iridescence_Edge_Intensity_", this.iridescenceEdgeIntensity), this._activeEffect.setFloat("_Angle_", this._angle), this._activeEffect.setFloat("_Fade_Out_", this.fadeOut), this._activeEffect.setFloat("_Reflected_", this._reflected ? 1 : 0), this._activeEffect.setFloat("_Frequency_", this._frequency), this._activeEffect.setFloat("_Vertical_Offset_", this._verticalOffset), this._activeEffect.setTexture("_Iridescent_Map_", this._iridescentMap), this._activeEffect.setFloat("_Use_Global_Left_Index_", 1), this._activeEffect.setFloat("_Use_Global_Right_Index_", 1), this._globalLeftIndexTipPosition4.set(this.globalLeftIndexTipPosition.x, this.globalLeftIndexTipPosition.y, this.globalLeftIndexTipPosition.z, 1), this._activeEffect.setVector4("Global_Left_Index_Tip_Position", this._globalLeftIndexTipPosition4), this._globalRightIndexTipPosition4.set(this.globalRightIndexTipPosition.x, this.globalRightIndexTipPosition.y, this.globalRightIndexTipPosition.z, 1), this._activeEffect.setVector4("Global_Right_Index_Tip_Position", this._globalRightIndexTipPosition4), this._afterBind(i, this._activeEffect, s)); };
@@ -6455,47 +6466,47 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6455
6466
  e.prototype.getClassName = function () { return "FluentBackplateMaterial"; };
6456
6467
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
6457
6468
  return e;
6458
- }(R)), (function () { var s; var Ie = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = R[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serializeAsVector3()], T = [t.serializeAsVector3()], i(null, null, a, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: Ie }, w, k), i(null, null, n, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: Ie }, O, M), i(null, null, o, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: Ie }, F, E), i(null, null, r, { kind: "field", name: "baseColor", static: !1, private: !1, access: { has: function (e) { return "baseColor" in e; }, get: function (e) { return e.baseColor; }, set: function (e, t) { e.baseColor = t; } }, metadata: Ie }, D, L), i(null, null, l, { kind: "field", name: "lineColor", static: !1, private: !1, access: { has: function (e) { return "lineColor" in e; }, get: function (e) { return e.lineColor; }, set: function (e, t) { e.lineColor = t; } }, metadata: Ie }, z, N), i(null, null, h, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: Ie }, A, V), i(null, null, c, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: Ie }, Q, W), i(null, null, d, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: Ie }, G, H), i(null, null, u, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: Ie }, U, Y), i(null, null, f, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: Ie }, X, j), i(null, null, m, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: Ie }, K, Z), i(null, null, g, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: Ie }, q, $), i(null, null, b, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: Ie }, J, ee), i(null, null, v, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: Ie }, te, ie), i(null, null, p, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: Ie }, se, ae), i(null, null, x, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: Ie }, ne, oe), i(null, null, I, { kind: "field", name: "highlightColor", static: !1, private: !1, access: { has: function (e) { return "highlightColor" in e; }, get: function (e) { return e.highlightColor; }, set: function (e, t) { e.highlightColor = t; } }, metadata: Ie }, re, le), i(null, null, S, { kind: "field", name: "highlightWidth", static: !1, private: !1, access: { has: function (e) { return "highlightWidth" in e; }, get: function (e) { return e.highlightWidth; }, set: function (e, t) { e.highlightWidth = t; } }, metadata: Ie }, _e, he), i(null, null, y, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: Ie }, ce, de), i(null, null, P, { kind: "field", name: "iridescenceEdgeIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceEdgeIntensity" in e; }, get: function (e) { return e.iridescenceEdgeIntensity; }, set: function (e, t) { e.iridescenceEdgeIntensity = t; } }, metadata: Ie }, ue, fe), i(null, null, B, { kind: "field", name: "fadeOut", static: !1, private: !1, access: { has: function (e) { return "fadeOut" in e; }, get: function (e) { return e.fadeOut; }, set: function (e, t) { e.fadeOut = t; } }, metadata: Ie }, me, ge), i(null, null, C, { kind: "field", name: "globalLeftIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalLeftIndexTipPosition" in e; }, get: function (e) { return e.globalLeftIndexTipPosition; }, set: function (e, t) { e.globalLeftIndexTipPosition = t; } }, metadata: Ie }, be, ve), i(null, null, T, { kind: "field", name: "globalRightIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalRightIndexTipPosition" in e; }, get: function (e) { return e.globalRightIndexTipPosition; }, set: function (e, t) { e.globalRightIndexTipPosition = t; } }, metadata: Ie }, pe, xe), Ie && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: Ie }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Wi; }), Promise.resolve().then(function () { return Ai; })]; }, function () { return [Promise.resolve().then(function () { return Ps; }), Promise.resolve().then(function () { return Ts; })]; }), e.BLOB_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-backplate-blob.png", e.IM_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-backplate-iridescence.png", e; })(), Et = !1;
6459
- function Dt() { Et || (Et = !0, t.RegisterClass("BABYLON.GUI.FluentBackplateMaterial", Ft)); }
6460
- var Lt = /** @class */ (function (_super) {
6461
- __extends(Lt, _super);
6462
- function Lt(e, t) {
6469
+ }(R)), (function () { var s; var Ie = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = R[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serializeAsVector3()], T = [t.serializeAsVector3()], i(null, null, a, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: Ie }, w, k), i(null, null, n, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: Ie }, O, M), i(null, null, o, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: Ie }, F, E), i(null, null, r, { kind: "field", name: "baseColor", static: !1, private: !1, access: { has: function (e) { return "baseColor" in e; }, get: function (e) { return e.baseColor; }, set: function (e, t) { e.baseColor = t; } }, metadata: Ie }, L, D), i(null, null, l, { kind: "field", name: "lineColor", static: !1, private: !1, access: { has: function (e) { return "lineColor" in e; }, get: function (e) { return e.lineColor; }, set: function (e, t) { e.lineColor = t; } }, metadata: Ie }, z, N), i(null, null, h, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: Ie }, A, V), i(null, null, c, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: Ie }, Q, W), i(null, null, d, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: Ie }, G, H), i(null, null, u, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: Ie }, U, Y), i(null, null, f, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: Ie }, X, j), i(null, null, m, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: Ie }, K, Z), i(null, null, g, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: Ie }, q, $), i(null, null, b, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: Ie }, J, ee), i(null, null, v, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: Ie }, te, ie), i(null, null, p, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: Ie }, se, ae), i(null, null, x, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: Ie }, ne, oe), i(null, null, I, { kind: "field", name: "highlightColor", static: !1, private: !1, access: { has: function (e) { return "highlightColor" in e; }, get: function (e) { return e.highlightColor; }, set: function (e, t) { e.highlightColor = t; } }, metadata: Ie }, re, le), i(null, null, S, { kind: "field", name: "highlightWidth", static: !1, private: !1, access: { has: function (e) { return "highlightWidth" in e; }, get: function (e) { return e.highlightWidth; }, set: function (e, t) { e.highlightWidth = t; } }, metadata: Ie }, _e, he), i(null, null, y, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: Ie }, ce, de), i(null, null, P, { kind: "field", name: "iridescenceEdgeIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceEdgeIntensity" in e; }, get: function (e) { return e.iridescenceEdgeIntensity; }, set: function (e, t) { e.iridescenceEdgeIntensity = t; } }, metadata: Ie }, ue, fe), i(null, null, B, { kind: "field", name: "fadeOut", static: !1, private: !1, access: { has: function (e) { return "fadeOut" in e; }, get: function (e) { return e.fadeOut; }, set: function (e, t) { e.fadeOut = t; } }, metadata: Ie }, me, ge), i(null, null, C, { kind: "field", name: "globalLeftIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalLeftIndexTipPosition" in e; }, get: function (e) { return e.globalLeftIndexTipPosition; }, set: function (e, t) { e.globalLeftIndexTipPosition = t; } }, metadata: Ie }, be, ve), i(null, null, T, { kind: "field", name: "globalRightIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalRightIndexTipPosition" in e; }, get: function (e) { return e.globalRightIndexTipPosition; }, set: function (e, t) { e.globalRightIndexTipPosition = t; } }, metadata: Ie }, pe, xe), Ie && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: Ie }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Wi; }), Promise.resolve().then(function () { return Ai; })]; }, function () { return [Promise.resolve().then(function () { return Ps; }), Promise.resolve().then(function () { return Ts; })]; }), e.BLOB_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-backplate-blob.png", e.IM_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-backplate-iridescence.png", e; })(), Et = !1;
6470
+ function Lt() { Et || (Et = !0, t.RegisterClass("BABYLON.GUI.FluentBackplateMaterial", Ft)); }
6471
+ var Dt = /** @class */ (function (_super) {
6472
+ __extends(Dt, _super);
6473
+ function Dt(e, t) {
6463
6474
  if (t === void 0) { t = !0; }
6464
6475
  var _this = this;
6465
6476
  _this = _super.call(this, e) || this, _this._shareMaterials = t;
6466
6477
  return _this;
6467
6478
  }
6468
- Object.defineProperty(Lt.prototype, "renderingGroupId", {
6479
+ Object.defineProperty(Dt.prototype, "renderingGroupId", {
6469
6480
  get: function () { return this._model.renderingGroupId; },
6470
6481
  set: function (e) { this._model.renderingGroupId = e; },
6471
6482
  enumerable: false,
6472
6483
  configurable: true
6473
6484
  });
6474
- Object.defineProperty(Lt.prototype, "material", {
6485
+ Object.defineProperty(Dt.prototype, "material", {
6475
6486
  get: function () { return this._material; },
6476
6487
  enumerable: false,
6477
6488
  configurable: true
6478
6489
  });
6479
- Object.defineProperty(Lt.prototype, "shareMaterials", {
6490
+ Object.defineProperty(Dt.prototype, "shareMaterials", {
6480
6491
  get: function () { return this._shareMaterials; },
6481
6492
  enumerable: false,
6482
6493
  configurable: true
6483
6494
  });
6484
- Lt.prototype._getTypeName = function () { return "HolographicBackplate"; };
6485
- Lt.prototype._createNode = function (e) {
6495
+ Dt.prototype._getTypeName = function () { return "HolographicBackplate"; };
6496
+ Dt.prototype._createNode = function (e) {
6486
6497
  var _this = this;
6487
6498
  var i;
6488
6499
  var s = t.CreateBox((null !== (i = this.name) && void 0 !== i ? i : "HolographicBackplate") + "_CollisionMesh", { width: 1, height: 1, depth: 1 }, e);
6489
6500
  s.isPickable = !0, s.visibility = 0;
6490
- var a = t.Tools.GetAssetUrl(Lt.MODEL_BASE_URL);
6491
- return t.SceneLoader.ImportMeshAsync(void 0, a, Lt.MODEL_FILENAME, e).then(function (e) { var t = e.meshes[1]; t.name = "".concat(_this.name, "_frontPlate"), t.isPickable = !1, t.parent = s, _this._material && (t.material = _this._material), _this._model = t; }), s;
6501
+ var a = t.Tools.GetAssetUrl(Dt.MODEL_BASE_URL);
6502
+ return t.SceneLoader.ImportMeshAsync(void 0, a, Dt.MODEL_FILENAME, e).then(function (e) { var t = e.meshes[1]; t.name = "".concat(_this.name, "_frontPlate"), t.isPickable = !1, t.parent = s, _this._material && (t.material = _this._material), _this._model = t; }), s;
6492
6503
  };
6493
- Lt.prototype._createMaterial = function (e) { this._material = new Ft(this.name + " Material", e.getScene()); };
6494
- Lt.prototype._affectMaterial = function (e) { this._shareMaterials ? this._host._touchSharedMaterials.fluentBackplateMaterial ? this._material = this._host._touchSharedMaterials.fluentBackplateMaterial : (this._createMaterial(e), this._host._touchSharedMaterials.fluentBackplateMaterial = this._material) : this._createMaterial(e); };
6495
- Lt.prototype.dispose = function () { _super.prototype.dispose.call(this), this.shareMaterials || this._material.dispose(), this._model.dispose(); };
6496
- return Lt;
6504
+ Dt.prototype._createMaterial = function (e) { this._material = new Ft(this.name + " Material", e.getScene()); };
6505
+ Dt.prototype._affectMaterial = function (e) { this._shareMaterials ? this._host._touchSharedMaterials.fluentBackplateMaterial ? this._material = this._host._touchSharedMaterials.fluentBackplateMaterial : (this._createMaterial(e), this._host._touchSharedMaterials.fluentBackplateMaterial = this._material) : this._createMaterial(e); };
6506
+ Dt.prototype.dispose = function () { _super.prototype.dispose.call(this), this.shareMaterials || this._material.dispose(), this._model.dispose(); };
6507
+ return Dt;
6497
6508
  }(pt));
6498
- Lt.MODEL_BASE_URL = "https://assets.babylonjs.com/core/MRTK/", Lt.MODEL_FILENAME = "mrtk-fluent-backplate.glb";
6509
+ Dt.MODEL_BASE_URL = "https://assets.babylonjs.com/core/MRTK/", Dt.MODEL_FILENAME = "mrtk-fluent-backplate.glb";
6499
6510
  var zt = /** @class */ (function (_super) {
6500
6511
  __extends(zt, _super);
6501
6512
  function zt(e, t) {
@@ -6519,8 +6530,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6519
6530
  if (!this._tooltipFade) {
6520
6531
  var e_201 = this._backPlate._scene.useRightHandedSystem;
6521
6532
  this._tooltipMesh = t.CreatePlane("", { size: 1 }, this._backPlate._scene);
6522
- var i_81 = t.CreatePlane("", { size: 1, sideOrientation: t.Mesh.DOUBLESIDE }, this._backPlate._scene), s_61 = new t.StandardMaterial("", this._backPlate._scene);
6523
- s_61.diffuseColor = t.Color3.FromHexString("#212121"), i_81.material = s_61, i_81.isPickable = !1, this._tooltipMesh.addChild(i_81), i_81.position = t.Vector3.Forward(e_201).scale(.05), this._tooltipMesh.scaling.y = 1 / 3, this._tooltipMesh.position = t.Vector3.Up().scale(.7).add(t.Vector3.Forward(e_201).scale(-.15)), this._tooltipMesh.isPickable = !1, this._tooltipMesh.parent = this._backPlate, t.RegisterStandardMaterial(), this._tooltipTexture = ht.CreateForMesh(this._tooltipMesh), this._tooltipTextBlock = new T, this._tooltipTextBlock.scaleY = 3, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 130, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
6533
+ var i_82 = t.CreatePlane("", { size: 1, sideOrientation: t.Mesh.DOUBLESIDE }, this._backPlate._scene), s_62 = new t.StandardMaterial("", this._backPlate._scene);
6534
+ s_62.diffuseColor = t.Color3.FromHexString("#212121"), i_82.material = s_62, i_82.isPickable = !1, this._tooltipMesh.addChild(i_82), i_82.position = t.Vector3.Forward(e_201).scale(.05), this._tooltipMesh.scaling.y = 1 / 3, this._tooltipMesh.position = t.Vector3.Up().scale(.7).add(t.Vector3.Forward(e_201).scale(-.15)), this._tooltipMesh.isPickable = !1, this._tooltipMesh.parent = this._backPlate, t.RegisterStandardMaterial(), this._tooltipTexture = ht.CreateForMesh(this._tooltipMesh), this._tooltipTextBlock = new T, this._tooltipTextBlock.scaleY = 3, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 130, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
6524
6535
  }
6525
6536
  this._tooltipTextBlock && (this._tooltipTextBlock.text = e);
6526
6537
  }
@@ -6563,12 +6574,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6563
6574
  configurable: true
6564
6575
  });
6565
6576
  zt.prototype._getTypeName = function () { return "HolographicButton"; };
6566
- zt.prototype._rebuildContent = function () { this._disposeFacadeTexture(); var e = new L; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
6567
- var t_107 = new k;
6568
- t_107.source = this._imageUrl, t_107.paddingTop = "40px", t_107.height = "180px", t_107.width = "100px", t_107.paddingBottom = "40px", e.addControl(t_107);
6577
+ zt.prototype._rebuildContent = function () { this._disposeFacadeTexture(); var e = new D; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
6578
+ var t_106 = new k;
6579
+ t_106.source = this._imageUrl, t_106.paddingTop = "40px", t_106.height = "180px", t_106.width = "100px", t_106.paddingBottom = "40px", e.addControl(t_106);
6569
6580
  } if (this._text) {
6570
- var t_108 = new T;
6571
- t_108.text = this._text, t_108.color = "white", t_108.height = "30px", t_108.fontSize = 24, e.addControl(t_108);
6581
+ var t_107 = new T;
6582
+ t_107.text = this._text, t_107.color = "white", t_107.height = "30px", t_107.fontSize = 24, e.addControl(t_107);
6572
6583
  } this._frontPlate && (this.content = e); };
6573
6584
  zt.prototype._createNode = function (e) { return this._backPlate = t.CreateBox(this.name + "BackMesh", { width: 1, height: 1, depth: .08 }, e), this._frontPlate = t.CreateBox(this.name + "FrontMesh", { width: 1, height: 1, depth: .08 }, e), this._frontPlate.parent = this._backPlate, this._frontPlate.position = t.Vector3.Forward(e.useRightHandedSystem).scale(-.08), this._frontPlate.isPickable = !1, this._frontPlate.setEnabled(!1), this._textPlate = _super.prototype._createNode.call(this, e), this._textPlate.parent = this._backPlate, this._textPlate.position = t.Vector3.Forward(e.useRightHandedSystem).scale(-.08), this._textPlate.isPickable = !1, this._backPlate; };
6574
6585
  zt.prototype._applyFacade = function (e) { this._plateMaterial.emissiveTexture = e, this._plateMaterial.opacityTexture = e; };
@@ -6591,11 +6602,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6591
6602
  }
6592
6603
  return Nt;
6593
6604
  }(t.MaterialDefines));
6594
- var At = (function () { var e; var a, n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, D, L, z, N, A, V, Q = t.PushMaterial, W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], De = [], Le = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = []; return e = /** @class */ (function (_super) {
6605
+ var At = (function () { var e; var a, n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, L, D, z, N, A, V, Q = t.PushMaterial, W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], Le = [], De = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = []; return e = /** @class */ (function (_super) {
6595
6606
  __extends(e, _super);
6596
6607
  function e(i, a) {
6597
6608
  var _this = this;
6598
- _this = _super.call(this, i, a) || this, _this.edgeWidth = s(_this, W, .04), _this.edgeColor = (s(_this, G), s(_this, H, new t.Color4(.592157, .592157, .592157, 1))), _this.proximityMaxIntensity = (s(_this, U), s(_this, Y, .45)), _this.proximityFarDistance = (s(_this, X), s(_this, j, .16)), _this.proximityNearRadius = (s(_this, K), s(_this, Z, 1.5)), _this.proximityAnisotropy = (s(_this, q), s(_this, $, 1)), _this.selectionFuzz = (s(_this, J), s(_this, ee, .5)), _this.selected = (s(_this, te), s(_this, ie, 0)), _this.selectionFade = (s(_this, se), s(_this, ae, 0)), _this.selectionFadeSize = (s(_this, ne), s(_this, oe, .3)), _this.selectedDistance = (s(_this, re), s(_this, le, .08)), _this.selectedFadeLength = (s(_this, _e), s(_this, he, .08)), _this.blobIntensity = (s(_this, ce), s(_this, de, .5)), _this.blobFarSize = (s(_this, ue), s(_this, fe, .05)), _this.blobNearDistance = (s(_this, me), s(_this, ge, 0)), _this.blobFarDistance = (s(_this, be), s(_this, ve, .08)), _this.blobFadeLength = (s(_this, pe), s(_this, xe, .08)), _this.leftBlobEnable = (s(_this, Ie), s(_this, Se, !0)), _this.leftBlobNearSize = (s(_this, ye), s(_this, Pe, .025)), _this.leftBlobPulse = (s(_this, Be), s(_this, Ce, 0)), _this.leftBlobFade = (s(_this, Te), s(_this, Re, 1)), _this.leftBlobInnerFade = (s(_this, we), s(_this, ke, .01)), _this.rightBlobEnable = (s(_this, Oe), s(_this, Me, !0)), _this.rightBlobNearSize = (s(_this, Fe), s(_this, Ee, .025)), _this.rightBlobPulse = (s(_this, De), s(_this, Le, 0)), _this.rightBlobFade = (s(_this, ze), s(_this, Ne, 1)), _this.rightBlobInnerFade = (s(_this, Ae), s(_this, Ve, .01)), _this.activeFaceDir = (s(_this, Qe), s(_this, We, new t.Vector3(0, 0, -1))), _this.activeFaceUp = (s(_this, Ge), s(_this, He, new t.Vector3(0, 1, 0))), _this.enableFade = (s(_this, Ue), s(_this, Ye, !0)), _this.fadeWidth = (s(_this, Xe), s(_this, je, 1.5)), _this.smoothActiveFace = (s(_this, Ke), s(_this, Ze, !0)), _this.showFrame = (s(_this, qe), s(_this, $e, !1)), _this.useBlobTexture = (s(_this, Je), s(_this, et, !0)), _this.globalLeftIndexTipPosition = (s(_this, tt), s(_this, it, t.Vector3.Zero())), _this.globalRightIndexTipPosition = (s(_this, st), s(_this, at, t.Vector3.Zero())), _this._blobTexture = s(_this, nt), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1, _this._blobTextureUrl = t.Tools.GetAssetUrl(e.BLOB_TEXTURE_URL), _this._blobTexture = new t.Texture(_this._blobTextureUrl, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
6609
+ _this = _super.call(this, i, a) || this, _this.edgeWidth = s(_this, W, .04), _this.edgeColor = (s(_this, G), s(_this, H, new t.Color4(.592157, .592157, .592157, 1))), _this.proximityMaxIntensity = (s(_this, U), s(_this, Y, .45)), _this.proximityFarDistance = (s(_this, X), s(_this, j, .16)), _this.proximityNearRadius = (s(_this, K), s(_this, Z, 1.5)), _this.proximityAnisotropy = (s(_this, q), s(_this, $, 1)), _this.selectionFuzz = (s(_this, J), s(_this, ee, .5)), _this.selected = (s(_this, te), s(_this, ie, 0)), _this.selectionFade = (s(_this, se), s(_this, ae, 0)), _this.selectionFadeSize = (s(_this, ne), s(_this, oe, .3)), _this.selectedDistance = (s(_this, re), s(_this, le, .08)), _this.selectedFadeLength = (s(_this, _e), s(_this, he, .08)), _this.blobIntensity = (s(_this, ce), s(_this, de, .5)), _this.blobFarSize = (s(_this, ue), s(_this, fe, .05)), _this.blobNearDistance = (s(_this, me), s(_this, ge, 0)), _this.blobFarDistance = (s(_this, be), s(_this, ve, .08)), _this.blobFadeLength = (s(_this, pe), s(_this, xe, .08)), _this.leftBlobEnable = (s(_this, Ie), s(_this, Se, !0)), _this.leftBlobNearSize = (s(_this, ye), s(_this, Pe, .025)), _this.leftBlobPulse = (s(_this, Be), s(_this, Ce, 0)), _this.leftBlobFade = (s(_this, Te), s(_this, Re, 1)), _this.leftBlobInnerFade = (s(_this, we), s(_this, ke, .01)), _this.rightBlobEnable = (s(_this, Oe), s(_this, Me, !0)), _this.rightBlobNearSize = (s(_this, Fe), s(_this, Ee, .025)), _this.rightBlobPulse = (s(_this, Le), s(_this, De, 0)), _this.rightBlobFade = (s(_this, ze), s(_this, Ne, 1)), _this.rightBlobInnerFade = (s(_this, Ae), s(_this, Ve, .01)), _this.activeFaceDir = (s(_this, Qe), s(_this, We, new t.Vector3(0, 0, -1))), _this.activeFaceUp = (s(_this, Ge), s(_this, He, new t.Vector3(0, 1, 0))), _this.enableFade = (s(_this, Ue), s(_this, Ye, !0)), _this.fadeWidth = (s(_this, Xe), s(_this, je, 1.5)), _this.smoothActiveFace = (s(_this, Ke), s(_this, Ze, !0)), _this.showFrame = (s(_this, qe), s(_this, $e, !1)), _this.useBlobTexture = (s(_this, Je), s(_this, et, !0)), _this.globalLeftIndexTipPosition = (s(_this, tt), s(_this, it, t.Vector3.Zero())), _this.globalRightIndexTipPosition = (s(_this, st), s(_this, at, t.Vector3.Zero())), _this._blobTexture = s(_this, nt), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1, _this._blobTextureUrl = t.Tools.GetAssetUrl(e.BLOB_TEXTURE_URL), _this._blobTexture = new t.Texture(_this._blobTextureUrl, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
6599
6610
  return _this;
6600
6611
  }
6601
6612
  e.prototype.needAlphaBlending = function () { return !0; };
@@ -6609,12 +6620,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6609
6620
  return !1; if (this._isReadyForSubMesh(s))
6610
6621
  return !0; var l = o.getEngine(); if (t.PrepareDefinesForAttributes(i, n, !0, !1), n.isDirty) {
6611
6622
  n.markAsProcessed(), o.resetCachedMaterial();
6612
- var i_82 = new t.EffectFallbacks;
6613
- n.FOG && i_82.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, i_82), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
6623
+ var i_83 = new t.EffectFallbacks;
6624
+ n.FOG && i_83.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, i_83), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
6614
6625
  var a_50 = [t.VertexBuffer.PositionKind];
6615
6626
  n.NORMAL && a_50.push(t.VertexBuffer.NormalKind), n.UV1 && a_50.push(t.VertexBuffer.UVKind), n.UV2 && a_50.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && a_50.push(t.VertexBuffer.ColorKind), n.TANGENT && a_50.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(a_50, n);
6616
- var r_16 = "fluentButton", h_8 = n.toString(), c_6 = ["world", "viewProjection", "cameraPosition", "_Edge_Width_", "_Edge_Color_", "_Relative_Width_", "_Proximity_Max_Intensity_", "_Proximity_Far_Distance_", "_Proximity_Near_Radius_", "_Proximity_Anisotropy_", "_Selection_Fuzz_", "_Selected_", "_Selection_Fade_", "_Selection_Fade_Size_", "_Selected_Distance_", "_Selected_Fade_Length_", "_Blob_Enable_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Inner_Fade_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Enable_2_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Inner_Fade_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Active_Face_Dir_", "_Active_Face_Up_", "_Enable_Fade_", "_Fade_Width_", "_Smooth_Active_Face_", "_Show_Frame_", "_Use_Blob_Texture_", "Use_Global_Left_Index", "Use_Global_Right_Index", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "Global_Left_Thumb_Tip_Position", "Global_Right_Thumb_Tip_Position", "Global_Left_Index_Tip_Proximity", "Global_Right_Index_Tip_Proximity"], d_6 = ["_Blob_Texture_"], u_5 = [];
6617
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_6, uniformBuffersNames: u_5, samplers: d_6, defines: n, maxSimultaneousLights: 4, shaderLanguage: this._shaderLanguage }), s.setEffect(o.getEngine().createEffect(r_16, { attributes: a_50, uniformsNames: c_6, uniformBuffersNames: u_5, samplers: d_6, defines: h_8, fallbacks: i_82, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, l), n, this._materialContext);
6627
+ var r_17 = "fluentButton", h_8 = n.toString(), c_6 = ["world", "viewProjection", "cameraPosition", "_Edge_Width_", "_Edge_Color_", "_Relative_Width_", "_Proximity_Max_Intensity_", "_Proximity_Far_Distance_", "_Proximity_Near_Radius_", "_Proximity_Anisotropy_", "_Selection_Fuzz_", "_Selected_", "_Selection_Fade_", "_Selection_Fade_Size_", "_Selected_Distance_", "_Selected_Fade_Length_", "_Blob_Enable_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Inner_Fade_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Enable_2_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Inner_Fade_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Active_Face_Dir_", "_Active_Face_Up_", "_Enable_Fade_", "_Fade_Width_", "_Smooth_Active_Face_", "_Show_Frame_", "_Use_Blob_Texture_", "Use_Global_Left_Index", "Use_Global_Right_Index", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "Global_Left_Thumb_Tip_Position", "Global_Right_Thumb_Tip_Position", "Global_Left_Index_Tip_Proximity", "Global_Right_Index_Tip_Proximity"], d_6 = ["_Blob_Texture_"], u_5 = [];
6628
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_6, uniformBuffersNames: u_5, samplers: d_6, defines: n, maxSimultaneousLights: 4, shaderLanguage: this._shaderLanguage }), s.setEffect(o.getEngine().createEffect(r_17, { attributes: a_50, uniformsNames: c_6, uniformBuffersNames: u_5, samplers: d_6, defines: h_8, fallbacks: i_83, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, shaderLanguage: this._shaderLanguage, extraInitializationsAsync: e._ShaderLoader.getLoadCallback(this._shaderLanguage) }, l), n, this._materialContext);
6618
6629
  } return !(!s.effect || !s.effect.isReady() || (n._renderId = o.getRenderId(), a._wasPreviouslyReady = !0, 0)); };
6619
6630
  e.prototype.bindForSubMesh = function (e, i, s) { var a = this.getScene(); if (!s.materialDefines)
6620
6631
  return; var n = s.effect; n && (this._activeEffect = n, this.bindOnlyWorldMatrix(e), this._activeEffect.setMatrix("viewProjection", a.getTransformMatrix()), this._activeEffect.setVector3("cameraPosition", a.activeCamera.position), this._activeEffect.setTexture("_Blob_Texture_", this._blobTexture), this._activeEffect.setFloat("_Edge_Width_", this.edgeWidth), this._activeEffect.setColor4("_Edge_Color_", new t.Color3(this.edgeColor.r, this.edgeColor.g, this.edgeColor.b), this.edgeColor.a), this._activeEffect.setFloat("_Proximity_Max_Intensity_", this.proximityMaxIntensity), this._activeEffect.setFloat("_Proximity_Far_Distance_", this.proximityFarDistance), this._activeEffect.setFloat("_Proximity_Near_Radius_", this.proximityNearRadius), this._activeEffect.setFloat("_Proximity_Anisotropy_", this.proximityAnisotropy), this._activeEffect.setFloat("_Selection_Fuzz_", this.selectionFuzz), this._activeEffect.setFloat("_Selected_", this.selected), this._activeEffect.setFloat("_Selection_Fade_", this.selectionFade), this._activeEffect.setFloat("_Selection_Fade_Size_", this.selectionFadeSize), this._activeEffect.setFloat("_Selected_Distance_", this.selectedDistance), this._activeEffect.setFloat("_Selected_Fade_Length_", this.selectedFadeLength), this._activeEffect.setFloat("_Blob_Enable_", this.leftBlobEnable ? 1 : 0), this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity), this._activeEffect.setFloat("_Blob_Near_Size_", this.leftBlobNearSize), this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize), this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance), this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance), this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength), this._activeEffect.setFloat("_Blob_Inner_Fade_", this.leftBlobInnerFade), this._activeEffect.setFloat("_Blob_Pulse_", this.leftBlobPulse), this._activeEffect.setFloat("_Blob_Fade_", this.leftBlobFade), this._activeEffect.setFloat("_Blob_Enable_2_", this.rightBlobEnable ? 1 : 0), this._activeEffect.setFloat("_Blob_Near_Size_2_", this.rightBlobNearSize), this._activeEffect.setFloat("_Blob_Inner_Fade_2_", this.rightBlobInnerFade), this._activeEffect.setFloat("_Blob_Pulse_2_", this.rightBlobPulse), this._activeEffect.setFloat("_Blob_Fade_2_", this.rightBlobFade), this._activeEffect.setVector3("_Active_Face_Dir_", this.activeFaceDir), this._activeEffect.setVector3("_Active_Face_Up_", this.activeFaceUp), this._activeEffect.setFloat("_Fade_Width_", this.fadeWidth), this._activeEffect.setFloat("_Smooth_Active_Face_", this.smoothActiveFace ? 1 : 0), this._activeEffect.setFloat("_Show_Frame_", this.showFrame ? 1 : 0), this._activeEffect.setFloat("_Use_Blob_Texture_", this.useBlobTexture ? 1 : 0), this._activeEffect.setFloat("Use_Global_Left_Index", 1), this._activeEffect.setFloat("Use_Global_Right_Index", 1), this._activeEffect.setVector4("Global_Left_Index_Tip_Position", new t.Vector4(this.globalLeftIndexTipPosition.x, this.globalLeftIndexTipPosition.y, this.globalLeftIndexTipPosition.z, 1)), this._activeEffect.setVector4("Global_Right_Index_Tip_Position", new t.Vector4(this.globalRightIndexTipPosition.x, this.globalRightIndexTipPosition.y, this.globalRightIndexTipPosition.z, 1)), this._afterBind(i, this._activeEffect, s)); };
@@ -6628,7 +6639,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6628
6639
  e.prototype.getClassName = function () { return "FluentButtonMaterial"; };
6629
6640
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
6630
6641
  return e;
6631
- }(Q)), (function () { var s; var ot = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = Q[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serializeAsColor4()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serializeAsVector3()], F = [t.serializeAsVector3()], E = [t.serialize()], D = [t.serialize()], L = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serializeAsVector3()], V = [t.serializeAsVector3()], i(null, null, a, { kind: "field", name: "edgeWidth", static: !1, private: !1, access: { has: function (e) { return "edgeWidth" in e; }, get: function (e) { return e.edgeWidth; }, set: function (e, t) { e.edgeWidth = t; } }, metadata: ot }, W, G), i(null, null, n, { kind: "field", name: "edgeColor", static: !1, private: !1, access: { has: function (e) { return "edgeColor" in e; }, get: function (e) { return e.edgeColor; }, set: function (e, t) { e.edgeColor = t; } }, metadata: ot }, H, U), i(null, null, o, { kind: "field", name: "proximityMaxIntensity", static: !1, private: !1, access: { has: function (e) { return "proximityMaxIntensity" in e; }, get: function (e) { return e.proximityMaxIntensity; }, set: function (e, t) { e.proximityMaxIntensity = t; } }, metadata: ot }, Y, X), i(null, null, r, { kind: "field", name: "proximityFarDistance", static: !1, private: !1, access: { has: function (e) { return "proximityFarDistance" in e; }, get: function (e) { return e.proximityFarDistance; }, set: function (e, t) { e.proximityFarDistance = t; } }, metadata: ot }, j, K), i(null, null, l, { kind: "field", name: "proximityNearRadius", static: !1, private: !1, access: { has: function (e) { return "proximityNearRadius" in e; }, get: function (e) { return e.proximityNearRadius; }, set: function (e, t) { e.proximityNearRadius = t; } }, metadata: ot }, Z, q), i(null, null, h, { kind: "field", name: "proximityAnisotropy", static: !1, private: !1, access: { has: function (e) { return "proximityAnisotropy" in e; }, get: function (e) { return e.proximityAnisotropy; }, set: function (e, t) { e.proximityAnisotropy = t; } }, metadata: ot }, $, J), i(null, null, c, { kind: "field", name: "selectionFuzz", static: !1, private: !1, access: { has: function (e) { return "selectionFuzz" in e; }, get: function (e) { return e.selectionFuzz; }, set: function (e, t) { e.selectionFuzz = t; } }, metadata: ot }, ee, te), i(null, null, d, { kind: "field", name: "selected", static: !1, private: !1, access: { has: function (e) { return "selected" in e; }, get: function (e) { return e.selected; }, set: function (e, t) { e.selected = t; } }, metadata: ot }, ie, se), i(null, null, u, { kind: "field", name: "selectionFade", static: !1, private: !1, access: { has: function (e) { return "selectionFade" in e; }, get: function (e) { return e.selectionFade; }, set: function (e, t) { e.selectionFade = t; } }, metadata: ot }, ae, ne), i(null, null, f, { kind: "field", name: "selectionFadeSize", static: !1, private: !1, access: { has: function (e) { return "selectionFadeSize" in e; }, get: function (e) { return e.selectionFadeSize; }, set: function (e, t) { e.selectionFadeSize = t; } }, metadata: ot }, oe, re), i(null, null, m, { kind: "field", name: "selectedDistance", static: !1, private: !1, access: { has: function (e) { return "selectedDistance" in e; }, get: function (e) { return e.selectedDistance; }, set: function (e, t) { e.selectedDistance = t; } }, metadata: ot }, le, _e), i(null, null, g, { kind: "field", name: "selectedFadeLength", static: !1, private: !1, access: { has: function (e) { return "selectedFadeLength" in e; }, get: function (e) { return e.selectedFadeLength; }, set: function (e, t) { e.selectedFadeLength = t; } }, metadata: ot }, he, ce), i(null, null, b, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: ot }, de, ue), i(null, null, v, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: ot }, fe, me), i(null, null, p, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: ot }, ge, be), i(null, null, x, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: ot }, ve, pe), i(null, null, I, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: ot }, xe, Ie), i(null, null, S, { kind: "field", name: "leftBlobEnable", static: !1, private: !1, access: { has: function (e) { return "leftBlobEnable" in e; }, get: function (e) { return e.leftBlobEnable; }, set: function (e, t) { e.leftBlobEnable = t; } }, metadata: ot }, Se, ye), i(null, null, y, { kind: "field", name: "leftBlobNearSize", static: !1, private: !1, access: { has: function (e) { return "leftBlobNearSize" in e; }, get: function (e) { return e.leftBlobNearSize; }, set: function (e, t) { e.leftBlobNearSize = t; } }, metadata: ot }, Pe, Be), i(null, null, P, { kind: "field", name: "leftBlobPulse", static: !1, private: !1, access: { has: function (e) { return "leftBlobPulse" in e; }, get: function (e) { return e.leftBlobPulse; }, set: function (e, t) { e.leftBlobPulse = t; } }, metadata: ot }, Ce, Te), i(null, null, B, { kind: "field", name: "leftBlobFade", static: !1, private: !1, access: { has: function (e) { return "leftBlobFade" in e; }, get: function (e) { return e.leftBlobFade; }, set: function (e, t) { e.leftBlobFade = t; } }, metadata: ot }, Re, we), i(null, null, C, { kind: "field", name: "leftBlobInnerFade", static: !1, private: !1, access: { has: function (e) { return "leftBlobInnerFade" in e; }, get: function (e) { return e.leftBlobInnerFade; }, set: function (e, t) { e.leftBlobInnerFade = t; } }, metadata: ot }, ke, Oe), i(null, null, T, { kind: "field", name: "rightBlobEnable", static: !1, private: !1, access: { has: function (e) { return "rightBlobEnable" in e; }, get: function (e) { return e.rightBlobEnable; }, set: function (e, t) { e.rightBlobEnable = t; } }, metadata: ot }, Me, Fe), i(null, null, R, { kind: "field", name: "rightBlobNearSize", static: !1, private: !1, access: { has: function (e) { return "rightBlobNearSize" in e; }, get: function (e) { return e.rightBlobNearSize; }, set: function (e, t) { e.rightBlobNearSize = t; } }, metadata: ot }, Ee, De), i(null, null, w, { kind: "field", name: "rightBlobPulse", static: !1, private: !1, access: { has: function (e) { return "rightBlobPulse" in e; }, get: function (e) { return e.rightBlobPulse; }, set: function (e, t) { e.rightBlobPulse = t; } }, metadata: ot }, Le, ze), i(null, null, k, { kind: "field", name: "rightBlobFade", static: !1, private: !1, access: { has: function (e) { return "rightBlobFade" in e; }, get: function (e) { return e.rightBlobFade; }, set: function (e, t) { e.rightBlobFade = t; } }, metadata: ot }, Ne, Ae), i(null, null, O, { kind: "field", name: "rightBlobInnerFade", static: !1, private: !1, access: { has: function (e) { return "rightBlobInnerFade" in e; }, get: function (e) { return e.rightBlobInnerFade; }, set: function (e, t) { e.rightBlobInnerFade = t; } }, metadata: ot }, Ve, Qe), i(null, null, M, { kind: "field", name: "activeFaceDir", static: !1, private: !1, access: { has: function (e) { return "activeFaceDir" in e; }, get: function (e) { return e.activeFaceDir; }, set: function (e, t) { e.activeFaceDir = t; } }, metadata: ot }, We, Ge), i(null, null, F, { kind: "field", name: "activeFaceUp", static: !1, private: !1, access: { has: function (e) { return "activeFaceUp" in e; }, get: function (e) { return e.activeFaceUp; }, set: function (e, t) { e.activeFaceUp = t; } }, metadata: ot }, He, Ue), i(null, null, E, { kind: "field", name: "enableFade", static: !1, private: !1, access: { has: function (e) { return "enableFade" in e; }, get: function (e) { return e.enableFade; }, set: function (e, t) { e.enableFade = t; } }, metadata: ot }, Ye, Xe), i(null, null, D, { kind: "field", name: "fadeWidth", static: !1, private: !1, access: { has: function (e) { return "fadeWidth" in e; }, get: function (e) { return e.fadeWidth; }, set: function (e, t) { e.fadeWidth = t; } }, metadata: ot }, je, Ke), i(null, null, L, { kind: "field", name: "smoothActiveFace", static: !1, private: !1, access: { has: function (e) { return "smoothActiveFace" in e; }, get: function (e) { return e.smoothActiveFace; }, set: function (e, t) { e.smoothActiveFace = t; } }, metadata: ot }, Ze, qe), i(null, null, z, { kind: "field", name: "showFrame", static: !1, private: !1, access: { has: function (e) { return "showFrame" in e; }, get: function (e) { return e.showFrame; }, set: function (e, t) { e.showFrame = t; } }, metadata: ot }, $e, Je), i(null, null, N, { kind: "field", name: "useBlobTexture", static: !1, private: !1, access: { has: function (e) { return "useBlobTexture" in e; }, get: function (e) { return e.useBlobTexture; }, set: function (e, t) { e.useBlobTexture = t; } }, metadata: ot }, et, tt), i(null, null, A, { kind: "field", name: "globalLeftIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalLeftIndexTipPosition" in e; }, get: function (e) { return e.globalLeftIndexTipPosition; }, set: function (e, t) { e.globalLeftIndexTipPosition = t; } }, metadata: ot }, it, st), i(null, null, V, { kind: "field", name: "globalRightIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalRightIndexTipPosition" in e; }, get: function (e) { return e.globalRightIndexTipPosition; }, set: function (e, t) { e.globalRightIndexTipPosition = t; } }, metadata: ot }, at, nt), ot && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: ot }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Li; }), Promise.resolve().then(function () { return Fi; })]; }, function () { return [Promise.resolve().then(function () { return ks; }), Promise.resolve().then(function () { return Fs; })]; }), e.BLOB_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-button-blob.png", e; })(), Vt = !1;
6642
+ }(Q)), (function () { var s; var ot = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = Q[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; a = [t.serialize()], n = [t.serializeAsColor4()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serializeAsVector3()], F = [t.serializeAsVector3()], E = [t.serialize()], L = [t.serialize()], D = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serializeAsVector3()], V = [t.serializeAsVector3()], i(null, null, a, { kind: "field", name: "edgeWidth", static: !1, private: !1, access: { has: function (e) { return "edgeWidth" in e; }, get: function (e) { return e.edgeWidth; }, set: function (e, t) { e.edgeWidth = t; } }, metadata: ot }, W, G), i(null, null, n, { kind: "field", name: "edgeColor", static: !1, private: !1, access: { has: function (e) { return "edgeColor" in e; }, get: function (e) { return e.edgeColor; }, set: function (e, t) { e.edgeColor = t; } }, metadata: ot }, H, U), i(null, null, o, { kind: "field", name: "proximityMaxIntensity", static: !1, private: !1, access: { has: function (e) { return "proximityMaxIntensity" in e; }, get: function (e) { return e.proximityMaxIntensity; }, set: function (e, t) { e.proximityMaxIntensity = t; } }, metadata: ot }, Y, X), i(null, null, r, { kind: "field", name: "proximityFarDistance", static: !1, private: !1, access: { has: function (e) { return "proximityFarDistance" in e; }, get: function (e) { return e.proximityFarDistance; }, set: function (e, t) { e.proximityFarDistance = t; } }, metadata: ot }, j, K), i(null, null, l, { kind: "field", name: "proximityNearRadius", static: !1, private: !1, access: { has: function (e) { return "proximityNearRadius" in e; }, get: function (e) { return e.proximityNearRadius; }, set: function (e, t) { e.proximityNearRadius = t; } }, metadata: ot }, Z, q), i(null, null, h, { kind: "field", name: "proximityAnisotropy", static: !1, private: !1, access: { has: function (e) { return "proximityAnisotropy" in e; }, get: function (e) { return e.proximityAnisotropy; }, set: function (e, t) { e.proximityAnisotropy = t; } }, metadata: ot }, $, J), i(null, null, c, { kind: "field", name: "selectionFuzz", static: !1, private: !1, access: { has: function (e) { return "selectionFuzz" in e; }, get: function (e) { return e.selectionFuzz; }, set: function (e, t) { e.selectionFuzz = t; } }, metadata: ot }, ee, te), i(null, null, d, { kind: "field", name: "selected", static: !1, private: !1, access: { has: function (e) { return "selected" in e; }, get: function (e) { return e.selected; }, set: function (e, t) { e.selected = t; } }, metadata: ot }, ie, se), i(null, null, u, { kind: "field", name: "selectionFade", static: !1, private: !1, access: { has: function (e) { return "selectionFade" in e; }, get: function (e) { return e.selectionFade; }, set: function (e, t) { e.selectionFade = t; } }, metadata: ot }, ae, ne), i(null, null, f, { kind: "field", name: "selectionFadeSize", static: !1, private: !1, access: { has: function (e) { return "selectionFadeSize" in e; }, get: function (e) { return e.selectionFadeSize; }, set: function (e, t) { e.selectionFadeSize = t; } }, metadata: ot }, oe, re), i(null, null, m, { kind: "field", name: "selectedDistance", static: !1, private: !1, access: { has: function (e) { return "selectedDistance" in e; }, get: function (e) { return e.selectedDistance; }, set: function (e, t) { e.selectedDistance = t; } }, metadata: ot }, le, _e), i(null, null, g, { kind: "field", name: "selectedFadeLength", static: !1, private: !1, access: { has: function (e) { return "selectedFadeLength" in e; }, get: function (e) { return e.selectedFadeLength; }, set: function (e, t) { e.selectedFadeLength = t; } }, metadata: ot }, he, ce), i(null, null, b, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: ot }, de, ue), i(null, null, v, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: ot }, fe, me), i(null, null, p, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: ot }, ge, be), i(null, null, x, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: ot }, ve, pe), i(null, null, I, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: ot }, xe, Ie), i(null, null, S, { kind: "field", name: "leftBlobEnable", static: !1, private: !1, access: { has: function (e) { return "leftBlobEnable" in e; }, get: function (e) { return e.leftBlobEnable; }, set: function (e, t) { e.leftBlobEnable = t; } }, metadata: ot }, Se, ye), i(null, null, y, { kind: "field", name: "leftBlobNearSize", static: !1, private: !1, access: { has: function (e) { return "leftBlobNearSize" in e; }, get: function (e) { return e.leftBlobNearSize; }, set: function (e, t) { e.leftBlobNearSize = t; } }, metadata: ot }, Pe, Be), i(null, null, P, { kind: "field", name: "leftBlobPulse", static: !1, private: !1, access: { has: function (e) { return "leftBlobPulse" in e; }, get: function (e) { return e.leftBlobPulse; }, set: function (e, t) { e.leftBlobPulse = t; } }, metadata: ot }, Ce, Te), i(null, null, B, { kind: "field", name: "leftBlobFade", static: !1, private: !1, access: { has: function (e) { return "leftBlobFade" in e; }, get: function (e) { return e.leftBlobFade; }, set: function (e, t) { e.leftBlobFade = t; } }, metadata: ot }, Re, we), i(null, null, C, { kind: "field", name: "leftBlobInnerFade", static: !1, private: !1, access: { has: function (e) { return "leftBlobInnerFade" in e; }, get: function (e) { return e.leftBlobInnerFade; }, set: function (e, t) { e.leftBlobInnerFade = t; } }, metadata: ot }, ke, Oe), i(null, null, T, { kind: "field", name: "rightBlobEnable", static: !1, private: !1, access: { has: function (e) { return "rightBlobEnable" in e; }, get: function (e) { return e.rightBlobEnable; }, set: function (e, t) { e.rightBlobEnable = t; } }, metadata: ot }, Me, Fe), i(null, null, R, { kind: "field", name: "rightBlobNearSize", static: !1, private: !1, access: { has: function (e) { return "rightBlobNearSize" in e; }, get: function (e) { return e.rightBlobNearSize; }, set: function (e, t) { e.rightBlobNearSize = t; } }, metadata: ot }, Ee, Le), i(null, null, w, { kind: "field", name: "rightBlobPulse", static: !1, private: !1, access: { has: function (e) { return "rightBlobPulse" in e; }, get: function (e) { return e.rightBlobPulse; }, set: function (e, t) { e.rightBlobPulse = t; } }, metadata: ot }, De, ze), i(null, null, k, { kind: "field", name: "rightBlobFade", static: !1, private: !1, access: { has: function (e) { return "rightBlobFade" in e; }, get: function (e) { return e.rightBlobFade; }, set: function (e, t) { e.rightBlobFade = t; } }, metadata: ot }, Ne, Ae), i(null, null, O, { kind: "field", name: "rightBlobInnerFade", static: !1, private: !1, access: { has: function (e) { return "rightBlobInnerFade" in e; }, get: function (e) { return e.rightBlobInnerFade; }, set: function (e, t) { e.rightBlobInnerFade = t; } }, metadata: ot }, Ve, Qe), i(null, null, M, { kind: "field", name: "activeFaceDir", static: !1, private: !1, access: { has: function (e) { return "activeFaceDir" in e; }, get: function (e) { return e.activeFaceDir; }, set: function (e, t) { e.activeFaceDir = t; } }, metadata: ot }, We, Ge), i(null, null, F, { kind: "field", name: "activeFaceUp", static: !1, private: !1, access: { has: function (e) { return "activeFaceUp" in e; }, get: function (e) { return e.activeFaceUp; }, set: function (e, t) { e.activeFaceUp = t; } }, metadata: ot }, He, Ue), i(null, null, E, { kind: "field", name: "enableFade", static: !1, private: !1, access: { has: function (e) { return "enableFade" in e; }, get: function (e) { return e.enableFade; }, set: function (e, t) { e.enableFade = t; } }, metadata: ot }, Ye, Xe), i(null, null, L, { kind: "field", name: "fadeWidth", static: !1, private: !1, access: { has: function (e) { return "fadeWidth" in e; }, get: function (e) { return e.fadeWidth; }, set: function (e, t) { e.fadeWidth = t; } }, metadata: ot }, je, Ke), i(null, null, D, { kind: "field", name: "smoothActiveFace", static: !1, private: !1, access: { has: function (e) { return "smoothActiveFace" in e; }, get: function (e) { return e.smoothActiveFace; }, set: function (e, t) { e.smoothActiveFace = t; } }, metadata: ot }, Ze, qe), i(null, null, z, { kind: "field", name: "showFrame", static: !1, private: !1, access: { has: function (e) { return "showFrame" in e; }, get: function (e) { return e.showFrame; }, set: function (e, t) { e.showFrame = t; } }, metadata: ot }, $e, Je), i(null, null, N, { kind: "field", name: "useBlobTexture", static: !1, private: !1, access: { has: function (e) { return "useBlobTexture" in e; }, get: function (e) { return e.useBlobTexture; }, set: function (e, t) { e.useBlobTexture = t; } }, metadata: ot }, et, tt), i(null, null, A, { kind: "field", name: "globalLeftIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalLeftIndexTipPosition" in e; }, get: function (e) { return e.globalLeftIndexTipPosition; }, set: function (e, t) { e.globalLeftIndexTipPosition = t; } }, metadata: ot }, it, st), i(null, null, V, { kind: "field", name: "globalRightIndexTipPosition", static: !1, private: !1, access: { has: function (e) { return "globalRightIndexTipPosition" in e; }, get: function (e) { return e.globalRightIndexTipPosition; }, set: function (e, t) { e.globalRightIndexTipPosition = t; } }, metadata: ot }, at, nt), ot && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: ot }); })(), e._ShaderLoader = new t._ShaderImportLoader(function () { return [Promise.resolve().then(function () { return Di; }), Promise.resolve().then(function () { return Fi; })]; }, function () { return [Promise.resolve().then(function () { return ks; }), Promise.resolve().then(function () { return Fs; })]; }), e.BLOB_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/mrtk-fluent-button-blob.png", e; })(), Vt = !1;
6632
6643
  function Qt() { Vt || (Vt = !0, t.RegisterClass("BABYLON.GUI.FluentButtonMaterial", At)); }
6633
6644
  var Wt = /** @class */ (function (_super) {
6634
6645
  __extends(Wt, _super);
@@ -6663,8 +6674,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6663
6674
  var e_208 = this._collisionMesh.getChildMeshes();
6664
6675
  try {
6665
6676
  for (var e_207 = __values(e_208), e_207_1 = e_207.next(); !e_207_1.done; e_207_1 = e_207.next()) {
6666
- var t_109 = e_207_1.value;
6667
- t_109.isNearPickable = !1, (null === (i = t_109.reservedDataStore) || void 0 === i ? void 0 : i.GUI3D) && (t_109.reservedDataStore.GUI3D = {});
6677
+ var t_108 = e_207_1.value;
6678
+ t_108.isNearPickable = !1, (null === (i = t_108.reservedDataStore) || void 0 === i ? void 0 : i.GUI3D) && (t_108.reservedDataStore.GUI3D = {});
6668
6679
  }
6669
6680
  }
6670
6681
  catch (e_205_1) { e_205 = { error: e_205_1 }; }
@@ -6678,15 +6689,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6678
6689
  this._collisionMesh = e, this._injectGUI3DReservedDataStore(this._collisionMesh).control = this, this._collisionMesh.isNearPickable = !0;
6679
6690
  var s = this._collisionMesh.getChildMeshes();
6680
6691
  try {
6681
- for (var s_62 = __values(s), s_62_1 = s_62.next(); !s_62_1.done; s_62_1 = s_62.next()) {
6682
- var e_209 = s_62_1.value;
6692
+ for (var s_63 = __values(s), s_63_1 = s_63.next(); !s_63_1.done; s_63_1 = s_63.next()) {
6693
+ var e_209 = s_63_1.value;
6683
6694
  this._injectGUI3DReservedDataStore(e_209).control = this, e_209.isNearPickable = !0;
6684
6695
  }
6685
6696
  }
6686
6697
  catch (e_206_1) { e_206 = { error: e_206_1 }; }
6687
6698
  finally {
6688
6699
  try {
6689
- if (s_62_1 && !s_62_1.done && (_b = s_62.return)) _b.call(s_62);
6700
+ if (s_63_1 && !s_63_1.done && (_b = s_63.return)) _b.call(s_63);
6690
6701
  }
6691
6702
  finally { if (e_206) throw e_206.error; }
6692
6703
  }
@@ -6733,10 +6744,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6733
6744
  if (i === void 0) { i = !0; }
6734
6745
  var _this = this;
6735
6746
  _this = _super.call(this, e) || this, _this._shareMaterials = !0, _this._isBackplateVisible = !0, _this._frontPlateDepth = .5, _this._backPlateDepth = .04, _this._backplateColor = new t.Color3(.08, .15, .55), _this._backplateToggledColor = new t.Color3(.25, .4, .95), _this._shareMaterials = i, _this.pointerEnterAnimation = function () { _this._frontMaterial.leftBlobEnable = !0, _this._frontMaterial.rightBlobEnable = !0; }, _this.pointerOutAnimation = function () { _this._frontMaterial.leftBlobEnable = !1, _this._frontMaterial.rightBlobEnable = !1; }, _this.pointerDownAnimation = function () { _this._frontPlate && !_this.isActiveNearInteraction && (_this._frontPlate.scaling.z = .2 * _this._frontPlateDepth, _this._frontPlate.position = t.Vector3.Forward(_this._frontPlate._scene.useRightHandedSystem).scale((_this._frontPlateDepth - .2 * _this._frontPlateDepth) / 2), _this._textPlate.position = t.Vector3.Forward(_this._textPlate._scene.useRightHandedSystem).scale(-(_this._backPlateDepth + .2 * _this._frontPlateDepth) / 2)); }, _this.pointerUpAnimation = function () { _this._frontPlate && (_this._frontPlate.scaling.z = _this._frontPlateDepth, _this._frontPlate.position = t.Vector3.Forward(_this._frontPlate._scene.useRightHandedSystem).scale((_this._frontPlateDepth - _this._frontPlateDepth) / 2), _this._textPlate.position = t.Vector3.Forward(_this._textPlate._scene.useRightHandedSystem).scale(-(_this._backPlateDepth + _this._frontPlateDepth) / 2)); }, _this.onPointerMoveObservable.add(function (e) { if (_this._frontPlate && _this.isActiveNearInteraction) {
6736
- var i_83 = t.Vector3.Zero();
6737
- if (_this._backPlate.getWorldMatrix().decompose(i_83, void 0, void 0)) {
6738
- var s_63 = _this._getInteractionHeight(e, _this._backPlate.getAbsolutePosition()) / i_83.z;
6739
- s_63 = t.Scalar.Clamp(s_63 - _this._backPlateDepth / 2, .2 * _this._frontPlateDepth, _this._frontPlateDepth), _this._frontPlate.scaling.z = s_63, _this._frontPlate.position = t.Vector3.Forward(_this._frontPlate._scene.useRightHandedSystem).scale((_this._frontPlateDepth - s_63) / 2), _this._textPlate.position = t.Vector3.Forward(_this._textPlate._scene.useRightHandedSystem).scale(-(_this._backPlateDepth + s_63) / 2);
6747
+ var i_84 = t.Vector3.Zero();
6748
+ if (_this._backPlate.getWorldMatrix().decompose(i_84, void 0, void 0)) {
6749
+ var s_64 = _this._getInteractionHeight(e, _this._backPlate.getAbsolutePosition()) / i_84.z;
6750
+ s_64 = t.Scalar.Clamp(s_64 - _this._backPlateDepth / 2, .2 * _this._frontPlateDepth, _this._frontPlateDepth), _this._frontPlate.scaling.z = s_64, _this._frontPlate.position = t.Vector3.Forward(_this._frontPlate._scene.useRightHandedSystem).scale((_this._frontPlateDepth - s_64) / 2), _this._textPlate.position = t.Vector3.Forward(_this._textPlate._scene.useRightHandedSystem).scale(-(_this._backPlateDepth + s_64) / 2);
6740
6751
  }
6741
6752
  } }), _this._pointerHoverObserver = _this.onPointerMoveObservable.add(function (e) { _this._frontMaterial.globalLeftIndexTipPosition = e; });
6742
6753
  return _this;
@@ -6761,8 +6772,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6761
6772
  if (!this._tooltipFade) {
6762
6773
  var e_210 = this._backPlate._scene.useRightHandedSystem;
6763
6774
  this._tooltipMesh = t.CreatePlane("", { size: 1 }, this._backPlate._scene);
6764
- var i_84 = t.CreatePlane("", { size: 1, sideOrientation: t.Mesh.DOUBLESIDE }, this._backPlate._scene), s_64 = new t.StandardMaterial("", this._backPlate._scene);
6765
- s_64.diffuseColor = t.Color3.FromHexString("#212121"), i_84.material = s_64, i_84.isPickable = !1, this._tooltipMesh.addChild(i_84), i_84.position = t.Vector3.Forward(e_210).scale(.05), this._tooltipMesh.scaling.y = 1 / 3, this._tooltipMesh.position = t.Vector3.Up().scale(.7).add(t.Vector3.Forward(e_210).scale(-.15)), this._tooltipMesh.isPickable = !1, this._tooltipMesh.parent = this._backPlate, t.RegisterStandardMaterial(), this._tooltipTexture = ht.CreateForMesh(this._tooltipMesh), this._tooltipTextBlock = new T, this._tooltipTextBlock.scaleY = 3, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 130, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
6775
+ var i_85 = t.CreatePlane("", { size: 1, sideOrientation: t.Mesh.DOUBLESIDE }, this._backPlate._scene), s_65 = new t.StandardMaterial("", this._backPlate._scene);
6776
+ s_65.diffuseColor = t.Color3.FromHexString("#212121"), i_85.material = s_65, i_85.isPickable = !1, this._tooltipMesh.addChild(i_85), i_85.position = t.Vector3.Forward(e_210).scale(.05), this._tooltipMesh.scaling.y = 1 / 3, this._tooltipMesh.position = t.Vector3.Up().scale(.7).add(t.Vector3.Forward(e_210).scale(-.15)), this._tooltipMesh.isPickable = !1, this._tooltipMesh.parent = this._backPlate, t.RegisterStandardMaterial(), this._tooltipTexture = ht.CreateForMesh(this._tooltipMesh), this._tooltipTextBlock = new T, this._tooltipTextBlock.scaleY = 3, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 130, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
6766
6777
  }
6767
6778
  this._tooltipTextBlock && (this._tooltipTextBlock.text = e);
6768
6779
  }
@@ -6810,12 +6821,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6810
6821
  configurable: true
6811
6822
  });
6812
6823
  e.prototype._getTypeName = function () { return "TouchHolographicButton"; };
6813
- e.prototype._rebuildContent = function () { this._disposeFacadeTexture(); var e = new L; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
6814
- var t_110 = new k;
6815
- t_110.source = this._imageUrl, t_110.paddingTop = "40px", t_110.height = "180px", t_110.width = "100px", t_110.paddingBottom = "40px", e.addControl(t_110);
6824
+ e.prototype._rebuildContent = function () { this._disposeFacadeTexture(); var e = new D; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
6825
+ var t_109 = new k;
6826
+ t_109.source = this._imageUrl, t_109.paddingTop = "40px", t_109.height = "180px", t_109.width = "100px", t_109.paddingBottom = "40px", e.addControl(t_109);
6816
6827
  } if (this._text) {
6817
- var t_111 = new T;
6818
- t_111.text = this._text, t_111.color = "white", t_111.height = "30px", t_111.fontSize = 24, e.addControl(t_111);
6828
+ var t_110 = new T;
6829
+ t_110.text = this._text, t_110.color = "white", t_110.height = "30px", t_110.fontSize = 24, e.addControl(t_110);
6819
6830
  } this.content = e; };
6820
6831
  e.prototype._createNode = function (i) {
6821
6832
  var _this = this;
@@ -6879,7 +6890,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
6879
6890
  var s = i.getEngine().isWebGPU ? 1 : 0;
6880
6891
  _this = _super.call(this, e, i, "handle", { attributes: ["position"], uniforms: ["worldViewProjection", "color", "scale", "positionOffset"], needAlphaBlending: !1, needAlphaTesting: !1, shaderLanguage: s, extraInitializationsAsync: 1 === s ? function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
6881
6892
  switch (_a.label) {
6882
- case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return Ls; }), Promise.resolve().then(function () { return As; })])];
6893
+ case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return Ds; }), Promise.resolve().then(function () { return As; })])];
6883
6894
  case 1:
6884
6895
  _a.sent();
6885
6896
  return [2 /*return*/];
@@ -7031,8 +7042,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7031
7042
  set: function (e) {
7032
7043
  var _this = this;
7033
7044
  e ? (this.attachedMesh = e.mesh, this.updateBoundingBox(), this._pickedPointObserver = e._host.onPickingObservable.add(function (e) { if (!_this._handleHovered || e && e.parent === _this._handleHovered.node || (_this._handleHovered.hover = !1, _this._handleHovered = null), e && e.parent && e.parent.reservedDataStore && e.parent.reservedDataStore.handle) {
7034
- var t_112 = e.parent.reservedDataStore.handle;
7035
- t_112.gizmo === _this && (_this._handleHovered = t_112, _this._handleHovered.hover = !0);
7045
+ var t_111 = e.parent.reservedDataStore.handle;
7046
+ t_111.gizmo === _this && (_this._handleHovered = t_111, _this._handleHovered.hover = !0);
7036
7047
  } })) : this._attachedSlate && this._attachedSlate._host.onPickingObservable.remove(this._pickedPointObserver), this._attachedSlate = e;
7037
7048
  },
7038
7049
  enumerable: false,
@@ -7042,13 +7053,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7042
7053
  var _this = this;
7043
7054
  this._handlesParent = new t.TransformNode("handlesParent", this.gizmoLayer.utilityLayerScene), this._handlesParent.rotationQuaternion = t.Quaternion.Identity();
7044
7055
  var e = [{ dimensions: new t.Vector3(-1, -1, 0), origin: new t.Vector3(1, 0, 0) }, { dimensions: new t.Vector3(1, -1, 0), origin: new t.Vector3(0, 0, 0) }, { dimensions: new t.Vector3(1, 1, 0), origin: new t.Vector3(0, 1, 0) }, { dimensions: new t.Vector3(-1, 1, 0), origin: new t.Vector3(1, 1, 0) }];
7045
- for (var t_113 = 0; t_113 < 4; t_113++) {
7046
- var i_85 = new Kt(this, this.gizmoLayer.utilityLayerScene);
7047
- this._corners.push(i_85), i_85.node.rotation.z = Math.PI / 2 * t_113, i_85.node.parent = this._handlesParent, this._assignDragBehaviorCorners(i_85, function (e, t, i, s) { return _this._moveHandle(e, t, i, s, !0); }, e[t_113]);
7056
+ for (var t_112 = 0; t_112 < 4; t_112++) {
7057
+ var i_86 = new Kt(this, this.gizmoLayer.utilityLayerScene);
7058
+ this._corners.push(i_86), i_86.node.rotation.z = Math.PI / 2 * t_112, i_86.node.parent = this._handlesParent, this._assignDragBehaviorCorners(i_86, function (e, t, i, s) { return _this._moveHandle(e, t, i, s, !0); }, e[t_112]);
7048
7059
  }
7049
7060
  for (var e_219 = 0; e_219 < 4; e_219++) {
7050
- var i_86 = new jt(this, this.gizmoLayer.utilityLayerScene);
7051
- this._sides.push(i_86), i_86.node.rotation.z = Math.PI / 2 * e_219, i_86.node.parent = this._handlesParent, this._assignDragBehaviorSides(i_86, e_219 % 2 == 0 ? new t.Vector3(0, 1, 0) : new t.Vector3(1, 0, 0));
7061
+ var i_87 = new jt(this, this.gizmoLayer.utilityLayerScene);
7062
+ this._sides.push(i_87), i_87.node.rotation.z = Math.PI / 2 * e_219, i_87.node.parent = this._handlesParent, this._assignDragBehaviorSides(i_87, e_219 % 2 == 0 ? new t.Vector3(0, 1, 0) : new t.Vector3(1, 0, 0));
7052
7063
  }
7053
7064
  this._handlesParent.parent = this._rootMesh;
7054
7065
  };
@@ -7094,25 +7105,25 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7094
7105
  t.PivotTools._RemoveAndStorePivotPoint(this.attachedMesh);
7095
7106
  var e_222 = this.attachedMesh.parent;
7096
7107
  this.attachedMesh.setParent(null), this._update(), this.attachedMesh.rotationQuaternion || (this.attachedMesh.rotationQuaternion = t.Quaternion.RotationYawPitchRoll(this.attachedMesh.rotation.y, this.attachedMesh.rotation.x, this.attachedMesh.rotation.z)), this._tmpQuaternion.copyFrom(this.attachedMesh.rotationQuaternion), this._tmpVector.copyFrom(this.attachedMesh.position), this.attachedMesh.rotationQuaternion.set(0, 0, 0, 1), this.attachedMesh.position.set(0, 0, 0);
7097
- var i_87 = this.attachedMesh.getHierarchyBoundingVectors();
7098
- i_87.max.subtractToRef(i_87.min, this._boundingDimensions), this._boundingBoxGizmo.min = i_87.min, this._boundingBoxGizmo.max = i_87.max, this._updateHandlesPosition(), this._updateHandlesScaling(), this.attachedMesh.rotationQuaternion.copyFrom(this._tmpQuaternion), this.attachedMesh.position.copyFrom(this._tmpVector), t.PivotTools._RestorePivotPoint(this.attachedMesh), this.attachedMesh.setParent(e_222), this.attachedMesh.computeWorldMatrix(!0), this._existingSlateScale.copyFrom(this.attachedMesh.scaling);
7108
+ var i_88 = this.attachedMesh.getHierarchyBoundingVectors();
7109
+ i_88.max.subtractToRef(i_88.min, this._boundingDimensions), this._boundingBoxGizmo.min = i_88.min, this._boundingBoxGizmo.max = i_88.max, this._updateHandlesPosition(), this._updateHandlesScaling(), this.attachedMesh.rotationQuaternion.copyFrom(this._tmpQuaternion), this.attachedMesh.position.copyFrom(this._tmpVector), t.PivotTools._RestorePivotPoint(this.attachedMesh), this.attachedMesh.setParent(e_222), this.attachedMesh.computeWorldMatrix(!0), this._existingSlateScale.copyFrom(this.attachedMesh.scaling);
7099
7110
  } };
7100
7111
  Zt.prototype._updateHandlesPosition = function () { var e = this._boundingBoxGizmo.min.clone(), t = this._boundingBoxGizmo.max.clone(), i = this._corners[0].node.scaling.length(); e.x -= this._margin * i, e.y -= this._margin * i, t.x += this._margin * i, t.y += this._margin * i; var s = e.add(t).scaleInPlace(.5); this._corners[0].node.position.copyFromFloats(e.x, e.y, 0), this._corners[1].node.position.copyFromFloats(t.x, e.y, 0), this._corners[2].node.position.copyFromFloats(t.x, t.y, 0), this._corners[3].node.position.copyFromFloats(e.x, t.y, 0), this._sides[0].node.position.copyFromFloats(e.x, s.y, 0), this._sides[1].node.position.copyFromFloats(s.x, e.y, 0), this._sides[2].node.position.copyFromFloats(t.x, s.y, 0), this._sides[3].node.position.copyFromFloats(s.x, t.y, 0); };
7101
7112
  Zt.prototype._updateHandlesScaling = function () { if (this._attachedSlate && this._attachedSlate.mesh) {
7102
- var e_223 = this._attachedSlate.mesh.scaling.x * this._attachedSlate.dimensions.x, t_114 = this._attachedSlate.mesh.scaling.y * this._attachedSlate.dimensions.y, i_88 = Math.min(e_223, t_114) * this._handleSize;
7113
+ var e_223 = this._attachedSlate.mesh.scaling.x * this._attachedSlate.dimensions.x, t_113 = this._attachedSlate.mesh.scaling.y * this._attachedSlate.dimensions.y, i_89 = Math.min(e_223, t_113) * this._handleSize;
7103
7114
  for (var e_224 = 0; e_224 < this._corners.length; e_224++)
7104
- this._corners[e_224].node.scaling.setAll(i_88);
7115
+ this._corners[e_224].node.scaling.setAll(i_89);
7105
7116
  for (var e_225 = 0; e_225 < this._sides.length; e_225++)
7106
- this._sides[e_225].node.scaling.setAll(i_88);
7117
+ this._sides[e_225].node.scaling.setAll(i_89);
7107
7118
  } };
7108
7119
  Zt.prototype._update = function () { if (_super.prototype._update.call(this), this.gizmoLayer.utilityLayerScene.activeCamera && this._attachedSlate && this._attachedSlate.mesh) {
7109
7120
  if (this.fixedScreenSize) {
7110
7121
  this._attachedSlate.mesh.absolutePosition.subtractToRef(this.gizmoLayer.utilityLayerScene.activeCamera.position, this._tmpVector);
7111
7122
  var e_226 = this._handleSize * this._tmpVector.length() / this.fixedScreenSizeDistanceFactor;
7112
- for (var t_115 = 0; t_115 < this._corners.length; t_115++)
7113
- this._corners[t_115].node.scaling.set(e_226, e_226, e_226);
7114
- for (var t_116 = 0; t_116 < this._sides.length; t_116++)
7115
- this._sides[t_116].node.scaling.set(e_226, e_226, e_226);
7123
+ for (var t_114 = 0; t_114 < this._corners.length; t_114++)
7124
+ this._corners[t_114].node.scaling.set(e_226, e_226, e_226);
7125
+ for (var t_115 = 0; t_115 < this._sides.length; t_115++)
7126
+ this._sides[t_115].node.scaling.set(e_226, e_226, e_226);
7116
7127
  }
7117
7128
  this._updateHandlesPosition();
7118
7129
  } };
@@ -7163,8 +7174,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7163
7174
  Object.defineProperty(qt.prototype, "dimensions", {
7164
7175
  get: function () { return this._dimensions; },
7165
7176
  set: function (e) { var t = 1; if (e.x < this.minDimensions.x || e.y < this.minDimensions.y) {
7166
- var i_89 = e.x / e.y;
7167
- t = this.minDimensions.x / this.minDimensions.y > i_89 ? this.minDimensions.x / e.x : this.minDimensions.y / e.y;
7177
+ var i_90 = e.x / e.y;
7178
+ t = this.minDimensions.x / this.minDimensions.y > i_90 ? this.minDimensions.x / e.x : this.minDimensions.y / e.y;
7168
7179
  } this._dimensions.copyFrom(e).scaleInPlace(t), this._updatePivot(), this._positionElements(); },
7169
7180
  enumerable: false,
7170
7181
  configurable: true
@@ -7192,9 +7203,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7192
7203
  qt.prototype._getTypeName = function () { return "HolographicSlate"; };
7193
7204
  qt.prototype._positionElements = function () { var e = this._followButton, i = this._closeButton, s = this._titleBar, a = this._titleBarTitle, n = this._contentPlate, o = this._backPlate; if (e && i && s) {
7194
7205
  i.scaling.setAll(this.titleBarHeight), e.scaling.setAll(this.titleBarHeight), i.position.copyFromFloats(this.dimensions.x - this.titleBarHeight / 2, -this.titleBarHeight / 2, 0).addInPlace(this.origin), e.position.copyFromFloats(this.dimensions.x - 3 * this.titleBarHeight / 2, -this.titleBarHeight / 2, 0).addInPlace(this.origin);
7195
- var r_17 = this.dimensions.y - this.titleBarHeight - this.titleBarMargin, l_18 = n.getScene().useRightHandedSystem;
7196
- s.scaling.set(this.dimensions.x, this.titleBarHeight, t.Epsilon), a.scaling.set(this.dimensions.x - 2 * this.titleBarHeight, this.titleBarHeight, t.Epsilon), n.scaling.copyFromFloats(this.dimensions.x, r_17, t.Epsilon), o.scaling.copyFromFloats(this.dimensions.x, r_17, t.Epsilon), s.position.copyFromFloats(this.dimensions.x / 2, -this.titleBarHeight / 2, 0).addInPlace(this.origin), a.position.copyFromFloats(this.dimensions.x / 2 - this.titleBarHeight, -this.titleBarHeight / 2, l_18 ? t.Epsilon : -t.Epsilon).addInPlace(this.origin), n.position.copyFromFloats(this.dimensions.x / 2, -(this.titleBarHeight + this.titleBarMargin + r_17 / 2), 0).addInPlace(this.origin), o.position.copyFromFloats(this.dimensions.x / 2, -(this.titleBarHeight + this.titleBarMargin + r_17 / 2), l_18 ? -t.Epsilon : t.Epsilon).addInPlace(this.origin), this._titleTextComponent.host.scaleTo(qt._DEFAULT_TEXT_RESOLUTION_Y * a.scaling.x / a.scaling.y, qt._DEFAULT_TEXT_RESOLUTION_Y);
7197
- var h_9 = this.dimensions.x / r_17;
7206
+ var r_18 = this.dimensions.y - this.titleBarHeight - this.titleBarMargin, l_18 = n.getScene().useRightHandedSystem;
7207
+ s.scaling.set(this.dimensions.x, this.titleBarHeight, t.Epsilon), a.scaling.set(this.dimensions.x - 2 * this.titleBarHeight, this.titleBarHeight, t.Epsilon), n.scaling.copyFromFloats(this.dimensions.x, r_18, t.Epsilon), o.scaling.copyFromFloats(this.dimensions.x, r_18, t.Epsilon), s.position.copyFromFloats(this.dimensions.x / 2, -this.titleBarHeight / 2, 0).addInPlace(this.origin), a.position.copyFromFloats(this.dimensions.x / 2 - this.titleBarHeight, -this.titleBarHeight / 2, l_18 ? t.Epsilon : -t.Epsilon).addInPlace(this.origin), n.position.copyFromFloats(this.dimensions.x / 2, -(this.titleBarHeight + this.titleBarMargin + r_18 / 2), 0).addInPlace(this.origin), o.position.copyFromFloats(this.dimensions.x / 2, -(this.titleBarHeight + this.titleBarMargin + r_18 / 2), l_18 ? -t.Epsilon : t.Epsilon).addInPlace(this.origin), this._titleTextComponent.host.scaleTo(qt._DEFAULT_TEXT_RESOLUTION_Y * a.scaling.x / a.scaling.y, qt._DEFAULT_TEXT_RESOLUTION_Y);
7208
+ var h_9 = this.dimensions.x / r_18;
7198
7209
  this._contentViewport.width = this._contentScaleRatio, this._contentViewport.height = this._contentScaleRatio / h_9, this._applyContentViewport(), this._gizmo && this._gizmo.updateBoundingBox();
7199
7210
  } };
7200
7211
  qt.prototype._applyContentViewport = function () { var e; if ((null === (e = this._contentPlate) || void 0 === e ? void 0 : e.material) && this._contentPlate.material.albedoTexture) {
@@ -7210,12 +7221,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7210
7221
  this._titleBar = t.CreateBox("titleBar_" + this.name, { size: 1 }, e), this._titleBarTitle = t.CreatePlane("titleText_" + this.name, { size: 1 }, e), this._titleBarTitle.parent = i, this._titleBarTitle.isPickable = !1, t.RegisterStandardMaterial();
7211
7222
  var s = ht.CreateForMesh(this._titleBarTitle);
7212
7223
  if (this._titleTextComponent = new T("titleText_" + this.name, this._titleText), this._titleTextComponent.textWrapping = 2, this._titleTextComponent.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, this._titleTextComponent.color = "white", this._titleTextComponent.fontSize = qt._DEFAULT_TEXT_RESOLUTION_Y / 2, this._titleTextComponent.paddingLeft = qt._DEFAULT_TEXT_RESOLUTION_Y / 4, s.addControl(this._titleTextComponent), e.useRightHandedSystem) {
7213
- var i_90 = new t.Vector4(0, 0, 1, 1);
7214
- this._contentPlate = t.CreatePlane("contentPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.BACKSIDE, frontUVs: i_90 }, e), this._backPlate = t.CreatePlane("backPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.FRONTSIDE }, e);
7224
+ var i_91 = new t.Vector4(0, 0, 1, 1);
7225
+ this._contentPlate = t.CreatePlane("contentPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.BACKSIDE, frontUVs: i_91 }, e), this._backPlate = t.CreatePlane("backPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.FRONTSIDE }, e);
7215
7226
  }
7216
7227
  else {
7217
- var i_91 = new t.Vector4(0, 0, 1, 1);
7218
- this._contentPlate = t.CreatePlane("contentPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.FRONTSIDE, frontUVs: i_91 }, e), this._backPlate = t.CreatePlane("backPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.BACKSIDE }, e);
7228
+ var i_92 = new t.Vector4(0, 0, 1, 1);
7229
+ this._contentPlate = t.CreatePlane("contentPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.FRONTSIDE, frontUVs: i_92 }, e), this._backPlate = t.CreatePlane("backPlate_" + this.name, { size: 1, sideOrientation: t.VertexData.BACKSIDE }, e);
7219
7230
  }
7220
7231
  this._titleBar.parent = i, this._titleBar.isNearGrabbable = !0, this._contentPlate.parent = i, this._backPlate.parent = i, this._attachContentPlateBehavior(), this._addControl(this._followButton), this._addControl(this._closeButton);
7221
7232
  var a = this._followButton, n = this._closeButton;
@@ -7245,8 +7256,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7245
7256
  if (s) {
7246
7257
  var a_52 = s.getWorldMatrix(), n_32 = t.Vector3.TransformNormal(t.Vector3.Backward(i.useRightHandedSystem), a_52);
7247
7258
  this.origin.setAll(0), this._gizmo.updateBoundingBox();
7248
- var o_28 = this.node.getAbsolutePivotPoint();
7249
- this.node.position.equalsToFloats(0, 0, 0) && this.node.position.copyFrom(s.position).subtractInPlace(n_32).subtractInPlace(o_28), this.node.rotationQuaternion = t.Quaternion.FromLookDirectionLH(n_32, new t.Vector3(0, 1, 0)), e && (this.dimensions = this.defaultDimensions);
7259
+ var o_29 = this.node.getAbsolutePivotPoint();
7260
+ this.node.position.equalsToFloats(0, 0, 0) && this.node.position.copyFrom(s.position).subtractInPlace(n_32).subtractInPlace(o_29), this.node.rotationQuaternion = t.Quaternion.FromLookDirectionLH(n_32, new t.Vector3(0, 1, 0)), e && (this.dimensions = this.defaultDimensions);
7250
7261
  }
7251
7262
  };
7252
7263
  qt.prototype.dispose = function () { _super.prototype.dispose.call(this), this._titleBarMaterial.dispose(), this._contentMaterial.dispose(), this._titleBar.dispose(), this._titleBarTitle.dispose(), this._contentPlate.dispose(), this._backPlate.dispose(), this._followButton.dispose(), this._closeButton.dispose(), this._host.onPickedPointChangedObservable.remove(this._pickedPointObserver), this._defaultBehavior.sixDofDragBehavior.onPositionChangedObservable.remove(this._positionChangedObserver), this._defaultBehavior.detach(), this._gizmo.dispose(), this._contentDragBehavior.detach(); };
@@ -7265,15 +7276,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7265
7276
  var e_232, _a;
7266
7277
  var t = this._currentMesh.getChildMeshes();
7267
7278
  try {
7268
- for (var t_117 = __values(t), t_117_1 = t_117.next(); !t_117_1.done; t_117_1 = t_117.next()) {
7269
- var e_233 = t_117_1.value;
7279
+ for (var t_116 = __values(t), t_116_1 = t_116.next(); !t_116_1.done; t_116_1 = t_116.next()) {
7280
+ var e_233 = t_116_1.value;
7270
7281
  this._injectGUI3DReservedDataStore(e_233).control = this;
7271
7282
  }
7272
7283
  }
7273
7284
  catch (e_232_1) { e_232 = { error: e_232_1 }; }
7274
7285
  finally {
7275
7286
  try {
7276
- if (t_117_1 && !t_117_1.done && (_a = t_117.return)) _a.call(t_117);
7287
+ if (t_116_1 && !t_116_1.done && (_a = t_116.return)) _a.call(t_116);
7277
7288
  }
7278
7289
  finally { if (e_232) throw e_232.error; }
7279
7290
  }
@@ -7360,8 +7371,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7360
7371
  var e = [];
7361
7372
  try {
7362
7373
  for (var _b = __values(this._children), _c = _b.next(); !_c.done; _c = _b.next()) {
7363
- var t_118 = _c.value;
7364
- t_118.mesh && e.push(t_118.mesh);
7374
+ var t_117 = _c.value;
7375
+ t_117.mesh && e.push(t_117.mesh);
7365
7376
  }
7366
7377
  }
7367
7378
  catch (e_234_1) { e_234 = { error: e_234_1 }; }
@@ -7371,16 +7382,16 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7371
7382
  }
7372
7383
  finally { if (e_234) throw e_234.error; }
7373
7384
  }
7374
- for (var i_92 = 0; i_92 < this._iteration; i_92++) {
7385
+ for (var i_93 = 0; i_93 < this._iteration; i_93++) {
7375
7386
  e.sort(function (e, t) { var i = e.position.lengthSquared(), s = t.position.lengthSquared(); return i < s ? 1 : i > s ? -1 : 0; });
7376
- var i_93 = Math.pow(this.margin, 2), s_65 = Math.max(this._cellWidth, this._cellHeight), a_53 = t.TmpVectors.Vector2[0], n_33 = t.TmpVectors.Vector3[0];
7377
- for (var t_119 = 0; t_119 < e.length - 1; t_119++)
7378
- for (var o_29 = t_119 + 1; o_29 < e.length; o_29++)
7379
- if (t_119 != o_29) {
7380
- e[o_29].position.subtractToRef(e[t_119].position, n_33), a_53.x = n_33.x, a_53.y = n_33.y;
7381
- var r_18 = s_65;
7382
- var l_19 = a_53.lengthSquared() - i_93;
7383
- l_19 -= Math.min(l_19, i_93), l_19 < Math.pow(r_18, 2) && (a_53.normalize(), n_33.scaleInPlace(.5 * (r_18 - Math.sqrt(l_19))), e[o_29].position.addInPlace(n_33), e[t_119].position.subtractInPlace(n_33));
7387
+ var i_94 = Math.pow(this.margin, 2), s_66 = Math.max(this._cellWidth, this._cellHeight), a_53 = t.TmpVectors.Vector2[0], n_33 = t.TmpVectors.Vector3[0];
7388
+ for (var t_118 = 0; t_118 < e.length - 1; t_118++)
7389
+ for (var o_30 = t_118 + 1; o_30 < e.length; o_30++)
7390
+ if (t_118 != o_30) {
7391
+ e[o_30].position.subtractToRef(e[t_118].position, n_33), a_53.x = n_33.x, a_53.y = n_33.y;
7392
+ var r_19 = s_66;
7393
+ var l_19 = a_53.lengthSquared() - i_94;
7394
+ l_19 -= Math.min(l_19, i_94), l_19 < Math.pow(r_19, 2) && (a_53.normalize(), n_33.scaleInPlace(.5 * (r_19 - Math.sqrt(l_19))), e[o_30].position.addInPlace(n_33), e[t_118].position.subtractInPlace(n_33));
7384
7395
  }
7385
7396
  }
7386
7397
  };
@@ -7395,11 +7406,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7395
7406
  }
7396
7407
  return ii;
7397
7408
  }(t.MaterialDefines));
7398
- var si = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, D, L, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se, ae, ne, oe, re, le, _e, he, ce, de, ue, fe, me = t.PushMaterial, ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], De = [], Le = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = [], rt = [], lt = [], _t = [], ht = [], ct = [], dt = [], ut = [], ft = [], mt = [], gt = [], bt = [], vt = [], pt = [], xt = [], It = [], St = [], yt = [], Pt = [], Bt = [], Ct = [], Tt = [], Rt = [], wt = [], kt = [], Ot = [], Mt = [], Ft = [], Et = [], Dt = [], Lt = [], zt = [], Nt = [], At = [], Vt = [], Qt = [], Wt = [], Gt = [], Ht = [], Ut = [], Yt = [], Xt = [], jt = [], Kt = [], Zt = [], qt = [], $t = [], Jt = [], ei = [], ti = [], si = [], ai = [], ni = [], oi = [], ri = [], li = [], _i = [], hi = [], ci = [], di = [], ui = [], fi = [], mi = [], gi = [], bi = [], vi = [], pi = [], xi = [], Ii = [], Si = [], yi = [], Pi = [], Bi = [], Ci = [], Ti = [], Ri = [], wi = [], ki = [], Oi = [], Mi = [], Fi = [], Ei = []; return e = /** @class */ (function (_super) {
7409
+ var si = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, L, D, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se, ae, ne, oe, re, le, _e, he, ce, de, ue, fe, me = t.PushMaterial, ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], Le = [], De = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = [], rt = [], lt = [], _t = [], ht = [], ct = [], dt = [], ut = [], ft = [], mt = [], gt = [], bt = [], vt = [], pt = [], xt = [], It = [], St = [], yt = [], Pt = [], Bt = [], Ct = [], Tt = [], Rt = [], wt = [], kt = [], Ot = [], Mt = [], Ft = [], Et = [], Lt = [], Dt = [], zt = [], Nt = [], At = [], Vt = [], Qt = [], Wt = [], Gt = [], Ht = [], Ut = [], Yt = [], Xt = [], jt = [], Kt = [], Zt = [], qt = [], $t = [], Jt = [], ei = [], ti = [], si = [], ai = [], ni = [], oi = [], ri = [], li = [], _i = [], hi = [], ci = [], di = [], ui = [], fi = [], mi = [], gi = [], bi = [], vi = [], pi = [], xi = [], Ii = [], Si = [], yi = [], Pi = [], Bi = [], Ci = [], Ti = [], Ri = [], wi = [], ki = [], Oi = [], Mi = [], Fi = [], Ei = []; return e = /** @class */ (function (_super) {
7399
7410
  __extends(e, _super);
7400
7411
  function e(i, a) {
7401
7412
  var _this = this;
7402
- _this = _super.call(this, i, a) || this, _this.radius = s(_this, ge, .6), _this.bevelFront = (s(_this, be), s(_this, ve, .6)), _this.bevelFrontStretch = (s(_this, pe), s(_this, xe, .077)), _this.bevelBack = (s(_this, Ie), s(_this, Se, 0)), _this.bevelBackStretch = (s(_this, ye), s(_this, Pe, 0)), _this.radiusTopLeft = (s(_this, Be), s(_this, Ce, 1)), _this.radiusTopRight = (s(_this, Te), s(_this, Re, 1)), _this.radiusBottomLeft = (s(_this, we), s(_this, ke, 1)), _this.radiusBottomRight = (s(_this, Oe), s(_this, Me, 1)), _this.bulgeEnabled = (s(_this, Fe), s(_this, Ee, !1)), _this.bulgeHeight = (s(_this, De), s(_this, Le, -.323)), _this.bulgeRadius = (s(_this, ze), s(_this, Ne, .73)), _this.sunIntensity = (s(_this, Ae), s(_this, Ve, 1.102)), _this.sunTheta = (s(_this, Qe), s(_this, We, .76)), _this.sunPhi = (s(_this, Ge), s(_this, He, .526)), _this.indirectDiffuse = (s(_this, Ue), s(_this, Ye, .658)), _this.albedo = (s(_this, Xe), s(_this, je, new t.Color4(.0117647, .505882, .996078, 1))), _this.specular = (s(_this, Ke), s(_this, Ze, 0)), _this.shininess = (s(_this, qe), s(_this, $e, 10)), _this.sharpness = (s(_this, Je), s(_this, et, 0)), _this.subsurface = (s(_this, tt), s(_this, it, 0)), _this.leftGradientColor = (s(_this, st), s(_this, at, new t.Color4(.0117647, .505882, .996078, 1))), _this.rightGradientColor = (s(_this, nt), s(_this, ot, new t.Color4(.0117647, .505882, .996078, 1))), _this.reflection = (s(_this, rt), s(_this, lt, .749)), _this.frontReflect = (s(_this, _t), s(_this, ht, 0)), _this.edgeReflect = (s(_this, ct), s(_this, dt, .09)), _this.power = (s(_this, ut), s(_this, ft, 8.13)), _this.skyColor = (s(_this, mt), s(_this, gt, new t.Color4(.0117647, .964706, .996078, 1))), _this.horizonColor = (s(_this, bt), s(_this, vt, new t.Color4(.0117647, .333333, .996078, 1))), _this.groundColor = (s(_this, pt), s(_this, xt, new t.Color4(0, .254902, .996078, 1))), _this.horizonPower = (s(_this, It), s(_this, St, 1)), _this.width = (s(_this, yt), s(_this, Pt, .02)), _this.fuzz = (s(_this, Bt), s(_this, Ct, .5)), _this.minFuzz = (s(_this, Tt), s(_this, Rt, .001)), _this.clipFade = (s(_this, wt), s(_this, kt, .01)), _this.hueShift = (s(_this, Ot), s(_this, Mt, 0)), _this.saturationShift = (s(_this, Ft), s(_this, Et, 0)), _this.valueShift = (s(_this, Dt), s(_this, Lt, 0)), _this.blobPosition = (s(_this, zt), s(_this, Nt, new t.Vector3(0, 0, .1))), _this.blobIntensity = (s(_this, At), s(_this, Vt, .5)), _this.blobNearSize = (s(_this, Qt), s(_this, Wt, .01)), _this.blobFarSize = (s(_this, Gt), s(_this, Ht, .03)), _this.blobNearDistance = (s(_this, Ut), s(_this, Yt, 0)), _this.blobFarDistance = (s(_this, Xt), s(_this, jt, .08)), _this.blobFadeLength = (s(_this, Kt), s(_this, Zt, .576)), _this.blobPulse = (s(_this, qt), s(_this, $t, 0)), _this.blobFade = (s(_this, Jt), s(_this, ei, 1)), _this.blobPosition2 = (s(_this, ti), s(_this, si, new t.Vector3(.2, 0, .1))), _this.blobNearSize2 = (s(_this, ai), s(_this, ni, .01)), _this.blobPulse2 = (s(_this, oi), s(_this, ri, 0)), _this.blobFade2 = (s(_this, li), s(_this, _i, 1)), _this.blobTexture = (s(_this, hi), s(_this, ci, new t.Texture("", _this.getScene()))), _this.leftIndexPosition = (s(_this, di), s(_this, ui, new t.Vector3(0, 0, 1))), _this.rightIndexPosition = (s(_this, fi), s(_this, mi, new t.Vector3(-1, -1, -1))), _this.leftIndexMiddlePosition = (s(_this, gi), s(_this, bi, new t.Vector3(0, 0, 0))), _this.rightIndexMiddlePosition = (s(_this, vi), s(_this, pi, new t.Vector3(0, 0, 0))), _this.decalScaleXY = (s(_this, xi), s(_this, Ii, new t.Vector2(1.5, 1.5))), _this.decalFrontOnly = (s(_this, Si), s(_this, yi, !0)), _this.rimIntensity = (s(_this, Pi), s(_this, Bi, .287)), _this.rimHueShift = (s(_this, Ci), s(_this, Ti, 0)), _this.rimSaturationShift = (s(_this, Ri), s(_this, wi, 0)), _this.rimValueShift = (s(_this, ki), s(_this, Oi, -1)), _this.iridescenceIntensity = (s(_this, Mi), s(_this, Fi, 0)), _this.useGlobalLeftIndex = (s(_this, Ei), 1), _this.useGlobalRightIndex = 1, _this.globalLeftIndexTipProximity = 0, _this.globalRightIndexTipProximity = 0, _this.globalLeftIndexTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globaRightIndexTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftThumbTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightThumbTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftIndexMiddlePosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightIndexMiddlePosition = new t.Vector4(0, 0, 0, 1), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7413
+ _this = _super.call(this, i, a) || this, _this.radius = s(_this, ge, .6), _this.bevelFront = (s(_this, be), s(_this, ve, .6)), _this.bevelFrontStretch = (s(_this, pe), s(_this, xe, .077)), _this.bevelBack = (s(_this, Ie), s(_this, Se, 0)), _this.bevelBackStretch = (s(_this, ye), s(_this, Pe, 0)), _this.radiusTopLeft = (s(_this, Be), s(_this, Ce, 1)), _this.radiusTopRight = (s(_this, Te), s(_this, Re, 1)), _this.radiusBottomLeft = (s(_this, we), s(_this, ke, 1)), _this.radiusBottomRight = (s(_this, Oe), s(_this, Me, 1)), _this.bulgeEnabled = (s(_this, Fe), s(_this, Ee, !1)), _this.bulgeHeight = (s(_this, Le), s(_this, De, -.323)), _this.bulgeRadius = (s(_this, ze), s(_this, Ne, .73)), _this.sunIntensity = (s(_this, Ae), s(_this, Ve, 1.102)), _this.sunTheta = (s(_this, Qe), s(_this, We, .76)), _this.sunPhi = (s(_this, Ge), s(_this, He, .526)), _this.indirectDiffuse = (s(_this, Ue), s(_this, Ye, .658)), _this.albedo = (s(_this, Xe), s(_this, je, new t.Color4(.0117647, .505882, .996078, 1))), _this.specular = (s(_this, Ke), s(_this, Ze, 0)), _this.shininess = (s(_this, qe), s(_this, $e, 10)), _this.sharpness = (s(_this, Je), s(_this, et, 0)), _this.subsurface = (s(_this, tt), s(_this, it, 0)), _this.leftGradientColor = (s(_this, st), s(_this, at, new t.Color4(.0117647, .505882, .996078, 1))), _this.rightGradientColor = (s(_this, nt), s(_this, ot, new t.Color4(.0117647, .505882, .996078, 1))), _this.reflection = (s(_this, rt), s(_this, lt, .749)), _this.frontReflect = (s(_this, _t), s(_this, ht, 0)), _this.edgeReflect = (s(_this, ct), s(_this, dt, .09)), _this.power = (s(_this, ut), s(_this, ft, 8.13)), _this.skyColor = (s(_this, mt), s(_this, gt, new t.Color4(.0117647, .964706, .996078, 1))), _this.horizonColor = (s(_this, bt), s(_this, vt, new t.Color4(.0117647, .333333, .996078, 1))), _this.groundColor = (s(_this, pt), s(_this, xt, new t.Color4(0, .254902, .996078, 1))), _this.horizonPower = (s(_this, It), s(_this, St, 1)), _this.width = (s(_this, yt), s(_this, Pt, .02)), _this.fuzz = (s(_this, Bt), s(_this, Ct, .5)), _this.minFuzz = (s(_this, Tt), s(_this, Rt, .001)), _this.clipFade = (s(_this, wt), s(_this, kt, .01)), _this.hueShift = (s(_this, Ot), s(_this, Mt, 0)), _this.saturationShift = (s(_this, Ft), s(_this, Et, 0)), _this.valueShift = (s(_this, Lt), s(_this, Dt, 0)), _this.blobPosition = (s(_this, zt), s(_this, Nt, new t.Vector3(0, 0, .1))), _this.blobIntensity = (s(_this, At), s(_this, Vt, .5)), _this.blobNearSize = (s(_this, Qt), s(_this, Wt, .01)), _this.blobFarSize = (s(_this, Gt), s(_this, Ht, .03)), _this.blobNearDistance = (s(_this, Ut), s(_this, Yt, 0)), _this.blobFarDistance = (s(_this, Xt), s(_this, jt, .08)), _this.blobFadeLength = (s(_this, Kt), s(_this, Zt, .576)), _this.blobPulse = (s(_this, qt), s(_this, $t, 0)), _this.blobFade = (s(_this, Jt), s(_this, ei, 1)), _this.blobPosition2 = (s(_this, ti), s(_this, si, new t.Vector3(.2, 0, .1))), _this.blobNearSize2 = (s(_this, ai), s(_this, ni, .01)), _this.blobPulse2 = (s(_this, oi), s(_this, ri, 0)), _this.blobFade2 = (s(_this, li), s(_this, _i, 1)), _this.blobTexture = (s(_this, hi), s(_this, ci, new t.Texture("", _this.getScene()))), _this.leftIndexPosition = (s(_this, di), s(_this, ui, new t.Vector3(0, 0, 1))), _this.rightIndexPosition = (s(_this, fi), s(_this, mi, new t.Vector3(-1, -1, -1))), _this.leftIndexMiddlePosition = (s(_this, gi), s(_this, bi, new t.Vector3(0, 0, 0))), _this.rightIndexMiddlePosition = (s(_this, vi), s(_this, pi, new t.Vector3(0, 0, 0))), _this.decalScaleXY = (s(_this, xi), s(_this, Ii, new t.Vector2(1.5, 1.5))), _this.decalFrontOnly = (s(_this, Si), s(_this, yi, !0)), _this.rimIntensity = (s(_this, Pi), s(_this, Bi, .287)), _this.rimHueShift = (s(_this, Ci), s(_this, Ti, 0)), _this.rimSaturationShift = (s(_this, Ri), s(_this, wi, 0)), _this.rimValueShift = (s(_this, ki), s(_this, Oi, -1)), _this.iridescenceIntensity = (s(_this, Mi), s(_this, Fi, 0)), _this.useGlobalLeftIndex = (s(_this, Ei), 1), _this.useGlobalRightIndex = 1, _this.globalLeftIndexTipProximity = 0, _this.globalRightIndexTipProximity = 0, _this.globalLeftIndexTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globaRightIndexTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftThumbTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightThumbTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftIndexMiddlePosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightIndexMiddlePosition = new t.Vector4(0, 0, 0, 1), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7403
7414
  var n = t.Tools.GetAssetUrl(e.BLUE_GRADIENT_TEXTURE_URL);
7404
7415
  _this._blueGradientTexture = new t.Texture(n, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE), _this._decalTexture = new t.Texture("", _this.getScene()), _this._reflectionMapTexture = new t.Texture("", _this.getScene()), _this._indirectEnvTexture = new t.Texture("", _this.getScene());
7405
7416
  return _this;
@@ -7423,10 +7434,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7423
7434
  n.markAsProcessed(), o.resetCachedMaterial();
7424
7435
  var e_235 = new t.EffectFallbacks;
7425
7436
  n.FOG && e_235.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, e_235), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
7426
- var s_66 = [t.VertexBuffer.PositionKind];
7427
- n.NORMAL && s_66.push(t.VertexBuffer.NormalKind), n.UV1 && s_66.push(t.VertexBuffer.UVKind), n.UV2 && s_66.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_66.push(t.VertexBuffer.ColorKind), n.TANGENT && s_66.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_66, n);
7437
+ var s_67 = [t.VertexBuffer.PositionKind];
7438
+ n.NORMAL && s_67.push(t.VertexBuffer.NormalKind), n.UV1 && s_67.push(t.VertexBuffer.UVKind), n.UV2 && s_67.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_67.push(t.VertexBuffer.ColorKind), n.TANGENT && s_67.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_67, n);
7428
7439
  var l_20 = "mrdlSliderBar", h_10 = n.toString(), c_7 = ["world", "viewProjection", "cameraPosition", "_Radius_", "_Bevel_Front_", "_Bevel_Front_Stretch_", "_Bevel_Back_", "_Bevel_Back_Stretch_", "_Radius_Top_Left_", "_Radius_Top_Right_", "_Radius_Bottom_Left_", "_Radius_Bottom_Right_", "_Bulge_Enabled_", "_Bulge_Height_", "_Bulge_Radius_", "_Sun_Intensity_", "_Sun_Theta_", "_Sun_Phi_", "_Indirect_Diffuse_", "_Albedo_", "_Specular_", "_Shininess_", "_Sharpness_", "_Subsurface_", "_Left_Color_", "_Right_Color_", "_Reflection_", "_Front_Reflect_", "_Edge_Reflect_", "_Power_", "_Sky_Color_", "_Horizon_Color_", "_Ground_Color_", "_Horizon_Power_", "_Reflection_Map_", "_Indirect_Environment_", "_Width_", "_Fuzz_", "_Min_Fuzz_", "_Clip_Fade_", "_Hue_Shift_", "_Saturation_Shift_", "_Value_Shift_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Left_Index_Pos_", "_Right_Index_Pos_", "_Left_Index_Middle_Pos_", "_Right_Index_Middle_Pos_", "_Decal_", "_Decal_Scale_XY_", "_Decal_Front_Only_", "_Rim_Intensity_", "_Rim_Texture_", "_Rim_Hue_Shift_", "_Rim_Saturation_Shift_", "_Rim_Value_Shift_", "_Iridescence_Intensity_", "_Iridescence_Texture_", "Use_Global_Left_Index", "Use_Global_Right_Index", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "Global_Left_Thumb_Tip_Position", "Global_Right_Thumb_Tip_Position", "Global_Left_Index_Middle_Position;", "Global_Right_Index_Middle_Position", "Global_Left_Index_Tip_Proximity", "Global_Right_Index_Tip_Proximity"], d_7 = ["_Rim_Texture_", "_Iridescence_Texture_"], u_6 = [];
7429
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_7, uniformBuffersNames: u_6, samplers: d_7, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_20, { attributes: s_66, uniformsNames: c_7, uniformBuffersNames: u_6, samplers: d_7, defines: h_10, fallbacks: e_235, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7440
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_7, uniformBuffersNames: u_6, samplers: d_7, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_20, { attributes: s_67, uniformsNames: c_7, uniformBuffersNames: u_6, samplers: d_7, defines: h_10, fallbacks: e_235, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7430
7441
  switch (_a.label) {
7431
7442
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return es; }), Promise.resolve().then(function () { return qi; })])];
7432
7443
  case 1:
@@ -7449,7 +7460,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7449
7460
  e.prototype.getClassName = function () { return "MRDLSliderBarMaterial"; };
7450
7461
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
7451
7462
  return e;
7452
- }(me)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = me[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], D = [t.serialize()], L = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], se = [t.serialize()], ae = [t.serialize()], ne = [t.serialize()], oe = [t.serialize()], re = [t.serialize()], le = [t.serialize()], _e = [t.serialize()], he = [t.serialize()], ce = [t.serialize()], de = [t.serialize()], ue = [t.serialize()], fe = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, ge, be), i(null, null, o, { kind: "field", name: "bevelFront", static: !1, private: !1, access: { has: function (e) { return "bevelFront" in e; }, get: function (e) { return e.bevelFront; }, set: function (e, t) { e.bevelFront = t; } }, metadata: a }, ve, pe), i(null, null, r, { kind: "field", name: "bevelFrontStretch", static: !1, private: !1, access: { has: function (e) { return "bevelFrontStretch" in e; }, get: function (e) { return e.bevelFrontStretch; }, set: function (e, t) { e.bevelFrontStretch = t; } }, metadata: a }, xe, Ie), i(null, null, l, { kind: "field", name: "bevelBack", static: !1, private: !1, access: { has: function (e) { return "bevelBack" in e; }, get: function (e) { return e.bevelBack; }, set: function (e, t) { e.bevelBack = t; } }, metadata: a }, Se, ye), i(null, null, h, { kind: "field", name: "bevelBackStretch", static: !1, private: !1, access: { has: function (e) { return "bevelBackStretch" in e; }, get: function (e) { return e.bevelBackStretch; }, set: function (e, t) { e.bevelBackStretch = t; } }, metadata: a }, Pe, Be), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, Ce, Te), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, Re, we), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, ke, Oe), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Me, Fe), i(null, null, m, { kind: "field", name: "bulgeEnabled", static: !1, private: !1, access: { has: function (e) { return "bulgeEnabled" in e; }, get: function (e) { return e.bulgeEnabled; }, set: function (e, t) { e.bulgeEnabled = t; } }, metadata: a }, Ee, De), i(null, null, g, { kind: "field", name: "bulgeHeight", static: !1, private: !1, access: { has: function (e) { return "bulgeHeight" in e; }, get: function (e) { return e.bulgeHeight; }, set: function (e, t) { e.bulgeHeight = t; } }, metadata: a }, Le, ze), i(null, null, b, { kind: "field", name: "bulgeRadius", static: !1, private: !1, access: { has: function (e) { return "bulgeRadius" in e; }, get: function (e) { return e.bulgeRadius; }, set: function (e, t) { e.bulgeRadius = t; } }, metadata: a }, Ne, Ae), i(null, null, v, { kind: "field", name: "sunIntensity", static: !1, private: !1, access: { has: function (e) { return "sunIntensity" in e; }, get: function (e) { return e.sunIntensity; }, set: function (e, t) { e.sunIntensity = t; } }, metadata: a }, Ve, Qe), i(null, null, p, { kind: "field", name: "sunTheta", static: !1, private: !1, access: { has: function (e) { return "sunTheta" in e; }, get: function (e) { return e.sunTheta; }, set: function (e, t) { e.sunTheta = t; } }, metadata: a }, We, Ge), i(null, null, x, { kind: "field", name: "sunPhi", static: !1, private: !1, access: { has: function (e) { return "sunPhi" in e; }, get: function (e) { return e.sunPhi; }, set: function (e, t) { e.sunPhi = t; } }, metadata: a }, He, Ue), i(null, null, I, { kind: "field", name: "indirectDiffuse", static: !1, private: !1, access: { has: function (e) { return "indirectDiffuse" in e; }, get: function (e) { return e.indirectDiffuse; }, set: function (e, t) { e.indirectDiffuse = t; } }, metadata: a }, Ye, Xe), i(null, null, S, { kind: "field", name: "albedo", static: !1, private: !1, access: { has: function (e) { return "albedo" in e; }, get: function (e) { return e.albedo; }, set: function (e, t) { e.albedo = t; } }, metadata: a }, je, Ke), i(null, null, y, { kind: "field", name: "specular", static: !1, private: !1, access: { has: function (e) { return "specular" in e; }, get: function (e) { return e.specular; }, set: function (e, t) { e.specular = t; } }, metadata: a }, Ze, qe), i(null, null, P, { kind: "field", name: "shininess", static: !1, private: !1, access: { has: function (e) { return "shininess" in e; }, get: function (e) { return e.shininess; }, set: function (e, t) { e.shininess = t; } }, metadata: a }, $e, Je), i(null, null, B, { kind: "field", name: "sharpness", static: !1, private: !1, access: { has: function (e) { return "sharpness" in e; }, get: function (e) { return e.sharpness; }, set: function (e, t) { e.sharpness = t; } }, metadata: a }, et, tt), i(null, null, C, { kind: "field", name: "subsurface", static: !1, private: !1, access: { has: function (e) { return "subsurface" in e; }, get: function (e) { return e.subsurface; }, set: function (e, t) { e.subsurface = t; } }, metadata: a }, it, st), i(null, null, T, { kind: "field", name: "leftGradientColor", static: !1, private: !1, access: { has: function (e) { return "leftGradientColor" in e; }, get: function (e) { return e.leftGradientColor; }, set: function (e, t) { e.leftGradientColor = t; } }, metadata: a }, at, nt), i(null, null, R, { kind: "field", name: "rightGradientColor", static: !1, private: !1, access: { has: function (e) { return "rightGradientColor" in e; }, get: function (e) { return e.rightGradientColor; }, set: function (e, t) { e.rightGradientColor = t; } }, metadata: a }, ot, rt), i(null, null, w, { kind: "field", name: "reflection", static: !1, private: !1, access: { has: function (e) { return "reflection" in e; }, get: function (e) { return e.reflection; }, set: function (e, t) { e.reflection = t; } }, metadata: a }, lt, _t), i(null, null, k, { kind: "field", name: "frontReflect", static: !1, private: !1, access: { has: function (e) { return "frontReflect" in e; }, get: function (e) { return e.frontReflect; }, set: function (e, t) { e.frontReflect = t; } }, metadata: a }, ht, ct), i(null, null, O, { kind: "field", name: "edgeReflect", static: !1, private: !1, access: { has: function (e) { return "edgeReflect" in e; }, get: function (e) { return e.edgeReflect; }, set: function (e, t) { e.edgeReflect = t; } }, metadata: a }, dt, ut), i(null, null, M, { kind: "field", name: "power", static: !1, private: !1, access: { has: function (e) { return "power" in e; }, get: function (e) { return e.power; }, set: function (e, t) { e.power = t; } }, metadata: a }, ft, mt), i(null, null, F, { kind: "field", name: "skyColor", static: !1, private: !1, access: { has: function (e) { return "skyColor" in e; }, get: function (e) { return e.skyColor; }, set: function (e, t) { e.skyColor = t; } }, metadata: a }, gt, bt), i(null, null, E, { kind: "field", name: "horizonColor", static: !1, private: !1, access: { has: function (e) { return "horizonColor" in e; }, get: function (e) { return e.horizonColor; }, set: function (e, t) { e.horizonColor = t; } }, metadata: a }, vt, pt), i(null, null, D, { kind: "field", name: "groundColor", static: !1, private: !1, access: { has: function (e) { return "groundColor" in e; }, get: function (e) { return e.groundColor; }, set: function (e, t) { e.groundColor = t; } }, metadata: a }, xt, It), i(null, null, L, { kind: "field", name: "horizonPower", static: !1, private: !1, access: { has: function (e) { return "horizonPower" in e; }, get: function (e) { return e.horizonPower; }, set: function (e, t) { e.horizonPower = t; } }, metadata: a }, St, yt), i(null, null, z, { kind: "field", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; }, set: function (e, t) { e.width = t; } }, metadata: a }, Pt, Bt), i(null, null, N, { kind: "field", name: "fuzz", static: !1, private: !1, access: { has: function (e) { return "fuzz" in e; }, get: function (e) { return e.fuzz; }, set: function (e, t) { e.fuzz = t; } }, metadata: a }, Ct, Tt), i(null, null, A, { kind: "field", name: "minFuzz", static: !1, private: !1, access: { has: function (e) { return "minFuzz" in e; }, get: function (e) { return e.minFuzz; }, set: function (e, t) { e.minFuzz = t; } }, metadata: a }, Rt, wt), i(null, null, V, { kind: "field", name: "clipFade", static: !1, private: !1, access: { has: function (e) { return "clipFade" in e; }, get: function (e) { return e.clipFade; }, set: function (e, t) { e.clipFade = t; } }, metadata: a }, kt, Ot), i(null, null, Q, { kind: "field", name: "hueShift", static: !1, private: !1, access: { has: function (e) { return "hueShift" in e; }, get: function (e) { return e.hueShift; }, set: function (e, t) { e.hueShift = t; } }, metadata: a }, Mt, Ft), i(null, null, W, { kind: "field", name: "saturationShift", static: !1, private: !1, access: { has: function (e) { return "saturationShift" in e; }, get: function (e) { return e.saturationShift; }, set: function (e, t) { e.saturationShift = t; } }, metadata: a }, Et, Dt), i(null, null, G, { kind: "field", name: "valueShift", static: !1, private: !1, access: { has: function (e) { return "valueShift" in e; }, get: function (e) { return e.valueShift; }, set: function (e, t) { e.valueShift = t; } }, metadata: a }, Lt, zt), i(null, null, H, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, Nt, At), i(null, null, U, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, Vt, Qt), i(null, null, Y, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, Wt, Gt), i(null, null, X, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, Ht, Ut), i(null, null, j, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, Yt, Xt), i(null, null, K, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, jt, Kt), i(null, null, Z, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, Zt, qt), i(null, null, q, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, $t, Jt), i(null, null, $, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, ei, ti), i(null, null, J, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, si, ai), i(null, null, ee, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, ni, oi), i(null, null, te, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, ri, li), i(null, null, ie, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, _i, hi), i(null, null, se, { kind: "field", name: "blobTexture", static: !1, private: !1, access: { has: function (e) { return "blobTexture" in e; }, get: function (e) { return e.blobTexture; }, set: function (e, t) { e.blobTexture = t; } }, metadata: a }, ci, di), i(null, null, ae, { kind: "field", name: "leftIndexPosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexPosition" in e; }, get: function (e) { return e.leftIndexPosition; }, set: function (e, t) { e.leftIndexPosition = t; } }, metadata: a }, ui, fi), i(null, null, ne, { kind: "field", name: "rightIndexPosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexPosition" in e; }, get: function (e) { return e.rightIndexPosition; }, set: function (e, t) { e.rightIndexPosition = t; } }, metadata: a }, mi, gi), i(null, null, oe, { kind: "field", name: "leftIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexMiddlePosition" in e; }, get: function (e) { return e.leftIndexMiddlePosition; }, set: function (e, t) { e.leftIndexMiddlePosition = t; } }, metadata: a }, bi, vi), i(null, null, re, { kind: "field", name: "rightIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexMiddlePosition" in e; }, get: function (e) { return e.rightIndexMiddlePosition; }, set: function (e, t) { e.rightIndexMiddlePosition = t; } }, metadata: a }, pi, xi), i(null, null, le, { kind: "field", name: "decalScaleXY", static: !1, private: !1, access: { has: function (e) { return "decalScaleXY" in e; }, get: function (e) { return e.decalScaleXY; }, set: function (e, t) { e.decalScaleXY = t; } }, metadata: a }, Ii, Si), i(null, null, _e, { kind: "field", name: "decalFrontOnly", static: !1, private: !1, access: { has: function (e) { return "decalFrontOnly" in e; }, get: function (e) { return e.decalFrontOnly; }, set: function (e, t) { e.decalFrontOnly = t; } }, metadata: a }, yi, Pi), i(null, null, he, { kind: "field", name: "rimIntensity", static: !1, private: !1, access: { has: function (e) { return "rimIntensity" in e; }, get: function (e) { return e.rimIntensity; }, set: function (e, t) { e.rimIntensity = t; } }, metadata: a }, Bi, Ci), i(null, null, ce, { kind: "field", name: "rimHueShift", static: !1, private: !1, access: { has: function (e) { return "rimHueShift" in e; }, get: function (e) { return e.rimHueShift; }, set: function (e, t) { e.rimHueShift = t; } }, metadata: a }, Ti, Ri), i(null, null, de, { kind: "field", name: "rimSaturationShift", static: !1, private: !1, access: { has: function (e) { return "rimSaturationShift" in e; }, get: function (e) { return e.rimSaturationShift; }, set: function (e, t) { e.rimSaturationShift = t; } }, metadata: a }, wi, ki), i(null, null, ue, { kind: "field", name: "rimValueShift", static: !1, private: !1, access: { has: function (e) { return "rimValueShift" in e; }, get: function (e) { return e.rimValueShift; }, set: function (e, t) { e.rimValueShift = t; } }, metadata: a }, Oi, Mi), i(null, null, fe, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, Fi, Ei), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png", e; })(), ai = !1;
7463
+ }(me)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = me[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], L = [t.serialize()], D = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], se = [t.serialize()], ae = [t.serialize()], ne = [t.serialize()], oe = [t.serialize()], re = [t.serialize()], le = [t.serialize()], _e = [t.serialize()], he = [t.serialize()], ce = [t.serialize()], de = [t.serialize()], ue = [t.serialize()], fe = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, ge, be), i(null, null, o, { kind: "field", name: "bevelFront", static: !1, private: !1, access: { has: function (e) { return "bevelFront" in e; }, get: function (e) { return e.bevelFront; }, set: function (e, t) { e.bevelFront = t; } }, metadata: a }, ve, pe), i(null, null, r, { kind: "field", name: "bevelFrontStretch", static: !1, private: !1, access: { has: function (e) { return "bevelFrontStretch" in e; }, get: function (e) { return e.bevelFrontStretch; }, set: function (e, t) { e.bevelFrontStretch = t; } }, metadata: a }, xe, Ie), i(null, null, l, { kind: "field", name: "bevelBack", static: !1, private: !1, access: { has: function (e) { return "bevelBack" in e; }, get: function (e) { return e.bevelBack; }, set: function (e, t) { e.bevelBack = t; } }, metadata: a }, Se, ye), i(null, null, h, { kind: "field", name: "bevelBackStretch", static: !1, private: !1, access: { has: function (e) { return "bevelBackStretch" in e; }, get: function (e) { return e.bevelBackStretch; }, set: function (e, t) { e.bevelBackStretch = t; } }, metadata: a }, Pe, Be), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, Ce, Te), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, Re, we), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, ke, Oe), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Me, Fe), i(null, null, m, { kind: "field", name: "bulgeEnabled", static: !1, private: !1, access: { has: function (e) { return "bulgeEnabled" in e; }, get: function (e) { return e.bulgeEnabled; }, set: function (e, t) { e.bulgeEnabled = t; } }, metadata: a }, Ee, Le), i(null, null, g, { kind: "field", name: "bulgeHeight", static: !1, private: !1, access: { has: function (e) { return "bulgeHeight" in e; }, get: function (e) { return e.bulgeHeight; }, set: function (e, t) { e.bulgeHeight = t; } }, metadata: a }, De, ze), i(null, null, b, { kind: "field", name: "bulgeRadius", static: !1, private: !1, access: { has: function (e) { return "bulgeRadius" in e; }, get: function (e) { return e.bulgeRadius; }, set: function (e, t) { e.bulgeRadius = t; } }, metadata: a }, Ne, Ae), i(null, null, v, { kind: "field", name: "sunIntensity", static: !1, private: !1, access: { has: function (e) { return "sunIntensity" in e; }, get: function (e) { return e.sunIntensity; }, set: function (e, t) { e.sunIntensity = t; } }, metadata: a }, Ve, Qe), i(null, null, p, { kind: "field", name: "sunTheta", static: !1, private: !1, access: { has: function (e) { return "sunTheta" in e; }, get: function (e) { return e.sunTheta; }, set: function (e, t) { e.sunTheta = t; } }, metadata: a }, We, Ge), i(null, null, x, { kind: "field", name: "sunPhi", static: !1, private: !1, access: { has: function (e) { return "sunPhi" in e; }, get: function (e) { return e.sunPhi; }, set: function (e, t) { e.sunPhi = t; } }, metadata: a }, He, Ue), i(null, null, I, { kind: "field", name: "indirectDiffuse", static: !1, private: !1, access: { has: function (e) { return "indirectDiffuse" in e; }, get: function (e) { return e.indirectDiffuse; }, set: function (e, t) { e.indirectDiffuse = t; } }, metadata: a }, Ye, Xe), i(null, null, S, { kind: "field", name: "albedo", static: !1, private: !1, access: { has: function (e) { return "albedo" in e; }, get: function (e) { return e.albedo; }, set: function (e, t) { e.albedo = t; } }, metadata: a }, je, Ke), i(null, null, y, { kind: "field", name: "specular", static: !1, private: !1, access: { has: function (e) { return "specular" in e; }, get: function (e) { return e.specular; }, set: function (e, t) { e.specular = t; } }, metadata: a }, Ze, qe), i(null, null, P, { kind: "field", name: "shininess", static: !1, private: !1, access: { has: function (e) { return "shininess" in e; }, get: function (e) { return e.shininess; }, set: function (e, t) { e.shininess = t; } }, metadata: a }, $e, Je), i(null, null, B, { kind: "field", name: "sharpness", static: !1, private: !1, access: { has: function (e) { return "sharpness" in e; }, get: function (e) { return e.sharpness; }, set: function (e, t) { e.sharpness = t; } }, metadata: a }, et, tt), i(null, null, C, { kind: "field", name: "subsurface", static: !1, private: !1, access: { has: function (e) { return "subsurface" in e; }, get: function (e) { return e.subsurface; }, set: function (e, t) { e.subsurface = t; } }, metadata: a }, it, st), i(null, null, T, { kind: "field", name: "leftGradientColor", static: !1, private: !1, access: { has: function (e) { return "leftGradientColor" in e; }, get: function (e) { return e.leftGradientColor; }, set: function (e, t) { e.leftGradientColor = t; } }, metadata: a }, at, nt), i(null, null, R, { kind: "field", name: "rightGradientColor", static: !1, private: !1, access: { has: function (e) { return "rightGradientColor" in e; }, get: function (e) { return e.rightGradientColor; }, set: function (e, t) { e.rightGradientColor = t; } }, metadata: a }, ot, rt), i(null, null, w, { kind: "field", name: "reflection", static: !1, private: !1, access: { has: function (e) { return "reflection" in e; }, get: function (e) { return e.reflection; }, set: function (e, t) { e.reflection = t; } }, metadata: a }, lt, _t), i(null, null, k, { kind: "field", name: "frontReflect", static: !1, private: !1, access: { has: function (e) { return "frontReflect" in e; }, get: function (e) { return e.frontReflect; }, set: function (e, t) { e.frontReflect = t; } }, metadata: a }, ht, ct), i(null, null, O, { kind: "field", name: "edgeReflect", static: !1, private: !1, access: { has: function (e) { return "edgeReflect" in e; }, get: function (e) { return e.edgeReflect; }, set: function (e, t) { e.edgeReflect = t; } }, metadata: a }, dt, ut), i(null, null, M, { kind: "field", name: "power", static: !1, private: !1, access: { has: function (e) { return "power" in e; }, get: function (e) { return e.power; }, set: function (e, t) { e.power = t; } }, metadata: a }, ft, mt), i(null, null, F, { kind: "field", name: "skyColor", static: !1, private: !1, access: { has: function (e) { return "skyColor" in e; }, get: function (e) { return e.skyColor; }, set: function (e, t) { e.skyColor = t; } }, metadata: a }, gt, bt), i(null, null, E, { kind: "field", name: "horizonColor", static: !1, private: !1, access: { has: function (e) { return "horizonColor" in e; }, get: function (e) { return e.horizonColor; }, set: function (e, t) { e.horizonColor = t; } }, metadata: a }, vt, pt), i(null, null, L, { kind: "field", name: "groundColor", static: !1, private: !1, access: { has: function (e) { return "groundColor" in e; }, get: function (e) { return e.groundColor; }, set: function (e, t) { e.groundColor = t; } }, metadata: a }, xt, It), i(null, null, D, { kind: "field", name: "horizonPower", static: !1, private: !1, access: { has: function (e) { return "horizonPower" in e; }, get: function (e) { return e.horizonPower; }, set: function (e, t) { e.horizonPower = t; } }, metadata: a }, St, yt), i(null, null, z, { kind: "field", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; }, set: function (e, t) { e.width = t; } }, metadata: a }, Pt, Bt), i(null, null, N, { kind: "field", name: "fuzz", static: !1, private: !1, access: { has: function (e) { return "fuzz" in e; }, get: function (e) { return e.fuzz; }, set: function (e, t) { e.fuzz = t; } }, metadata: a }, Ct, Tt), i(null, null, A, { kind: "field", name: "minFuzz", static: !1, private: !1, access: { has: function (e) { return "minFuzz" in e; }, get: function (e) { return e.minFuzz; }, set: function (e, t) { e.minFuzz = t; } }, metadata: a }, Rt, wt), i(null, null, V, { kind: "field", name: "clipFade", static: !1, private: !1, access: { has: function (e) { return "clipFade" in e; }, get: function (e) { return e.clipFade; }, set: function (e, t) { e.clipFade = t; } }, metadata: a }, kt, Ot), i(null, null, Q, { kind: "field", name: "hueShift", static: !1, private: !1, access: { has: function (e) { return "hueShift" in e; }, get: function (e) { return e.hueShift; }, set: function (e, t) { e.hueShift = t; } }, metadata: a }, Mt, Ft), i(null, null, W, { kind: "field", name: "saturationShift", static: !1, private: !1, access: { has: function (e) { return "saturationShift" in e; }, get: function (e) { return e.saturationShift; }, set: function (e, t) { e.saturationShift = t; } }, metadata: a }, Et, Lt), i(null, null, G, { kind: "field", name: "valueShift", static: !1, private: !1, access: { has: function (e) { return "valueShift" in e; }, get: function (e) { return e.valueShift; }, set: function (e, t) { e.valueShift = t; } }, metadata: a }, Dt, zt), i(null, null, H, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, Nt, At), i(null, null, U, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, Vt, Qt), i(null, null, Y, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, Wt, Gt), i(null, null, X, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, Ht, Ut), i(null, null, j, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, Yt, Xt), i(null, null, K, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, jt, Kt), i(null, null, Z, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, Zt, qt), i(null, null, q, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, $t, Jt), i(null, null, $, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, ei, ti), i(null, null, J, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, si, ai), i(null, null, ee, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, ni, oi), i(null, null, te, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, ri, li), i(null, null, ie, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, _i, hi), i(null, null, se, { kind: "field", name: "blobTexture", static: !1, private: !1, access: { has: function (e) { return "blobTexture" in e; }, get: function (e) { return e.blobTexture; }, set: function (e, t) { e.blobTexture = t; } }, metadata: a }, ci, di), i(null, null, ae, { kind: "field", name: "leftIndexPosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexPosition" in e; }, get: function (e) { return e.leftIndexPosition; }, set: function (e, t) { e.leftIndexPosition = t; } }, metadata: a }, ui, fi), i(null, null, ne, { kind: "field", name: "rightIndexPosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexPosition" in e; }, get: function (e) { return e.rightIndexPosition; }, set: function (e, t) { e.rightIndexPosition = t; } }, metadata: a }, mi, gi), i(null, null, oe, { kind: "field", name: "leftIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexMiddlePosition" in e; }, get: function (e) { return e.leftIndexMiddlePosition; }, set: function (e, t) { e.leftIndexMiddlePosition = t; } }, metadata: a }, bi, vi), i(null, null, re, { kind: "field", name: "rightIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexMiddlePosition" in e; }, get: function (e) { return e.rightIndexMiddlePosition; }, set: function (e, t) { e.rightIndexMiddlePosition = t; } }, metadata: a }, pi, xi), i(null, null, le, { kind: "field", name: "decalScaleXY", static: !1, private: !1, access: { has: function (e) { return "decalScaleXY" in e; }, get: function (e) { return e.decalScaleXY; }, set: function (e, t) { e.decalScaleXY = t; } }, metadata: a }, Ii, Si), i(null, null, _e, { kind: "field", name: "decalFrontOnly", static: !1, private: !1, access: { has: function (e) { return "decalFrontOnly" in e; }, get: function (e) { return e.decalFrontOnly; }, set: function (e, t) { e.decalFrontOnly = t; } }, metadata: a }, yi, Pi), i(null, null, he, { kind: "field", name: "rimIntensity", static: !1, private: !1, access: { has: function (e) { return "rimIntensity" in e; }, get: function (e) { return e.rimIntensity; }, set: function (e, t) { e.rimIntensity = t; } }, metadata: a }, Bi, Ci), i(null, null, ce, { kind: "field", name: "rimHueShift", static: !1, private: !1, access: { has: function (e) { return "rimHueShift" in e; }, get: function (e) { return e.rimHueShift; }, set: function (e, t) { e.rimHueShift = t; } }, metadata: a }, Ti, Ri), i(null, null, de, { kind: "field", name: "rimSaturationShift", static: !1, private: !1, access: { has: function (e) { return "rimSaturationShift" in e; }, get: function (e) { return e.rimSaturationShift; }, set: function (e, t) { e.rimSaturationShift = t; } }, metadata: a }, wi, ki), i(null, null, ue, { kind: "field", name: "rimValueShift", static: !1, private: !1, access: { has: function (e) { return "rimValueShift" in e; }, get: function (e) { return e.rimValueShift; }, set: function (e, t) { e.rimValueShift = t; } }, metadata: a }, Oi, Mi), i(null, null, fe, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, Fi, Ei), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png", e; })(), ai = !1;
7453
7464
  function ni() { ai || (ai = !0, t.RegisterClass("BABYLON.GUI.MRDLSliderBarMaterial", si)); }
7454
7465
  var oi = /** @class */ (function (_super) {
7455
7466
  __extends(oi, _super);
@@ -7460,11 +7471,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7460
7471
  }
7461
7472
  return oi;
7462
7473
  }(t.MaterialDefines));
7463
- var ri = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, D, L, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se, ae, ne, oe, re, le, _e, he, ce, de, ue, fe, me = t.PushMaterial, ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], De = [], Le = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = [], rt = [], lt = [], _t = [], ht = [], ct = [], dt = [], ut = [], ft = [], mt = [], gt = [], bt = [], vt = [], pt = [], xt = [], It = [], St = [], yt = [], Pt = [], Bt = [], Ct = [], Tt = [], Rt = [], wt = [], kt = [], Ot = [], Mt = [], Ft = [], Et = [], Dt = [], Lt = [], zt = [], Nt = [], At = [], Vt = [], Qt = [], Wt = [], Gt = [], Ht = [], Ut = [], Yt = [], Xt = [], jt = [], Kt = [], Zt = [], qt = [], $t = [], Jt = [], ei = [], ti = [], ii = [], si = [], ai = [], ni = [], ri = [], li = [], _i = [], hi = [], ci = [], di = [], ui = [], fi = [], mi = [], gi = [], bi = [], vi = [], pi = [], xi = [], Ii = [], Si = [], yi = [], Pi = [], Bi = [], Ci = [], Ti = [], Ri = [], wi = [], ki = [], Oi = [], Mi = [], Fi = [], Ei = []; return e = /** @class */ (function (_super) {
7474
+ var ri = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, L, D, z, N, A, V, Q, W, G, H, U, Y, X, j, K, Z, q, $, J, ee, te, ie, se, ae, ne, oe, re, le, _e, he, ce, de, ue, fe, me = t.PushMaterial, ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], Le = [], De = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = [], rt = [], lt = [], _t = [], ht = [], ct = [], dt = [], ut = [], ft = [], mt = [], gt = [], bt = [], vt = [], pt = [], xt = [], It = [], St = [], yt = [], Pt = [], Bt = [], Ct = [], Tt = [], Rt = [], wt = [], kt = [], Ot = [], Mt = [], Ft = [], Et = [], Lt = [], Dt = [], zt = [], Nt = [], At = [], Vt = [], Qt = [], Wt = [], Gt = [], Ht = [], Ut = [], Yt = [], Xt = [], jt = [], Kt = [], Zt = [], qt = [], $t = [], Jt = [], ei = [], ti = [], ii = [], si = [], ai = [], ni = [], ri = [], li = [], _i = [], hi = [], ci = [], di = [], ui = [], fi = [], mi = [], gi = [], bi = [], vi = [], pi = [], xi = [], Ii = [], Si = [], yi = [], Pi = [], Bi = [], Ci = [], Ti = [], Ri = [], wi = [], ki = [], Oi = [], Mi = [], Fi = [], Ei = []; return e = /** @class */ (function (_super) {
7464
7475
  __extends(e, _super);
7465
7476
  function e(i, a) {
7466
7477
  var _this = this;
7467
- _this = _super.call(this, i, a) || this, _this.radius = s(_this, ge, .157), _this.bevelFront = (s(_this, be), s(_this, ve, .065)), _this.bevelFrontStretch = (s(_this, pe), s(_this, xe, .077)), _this.bevelBack = (s(_this, Ie), s(_this, Se, .031)), _this.bevelBackStretch = (s(_this, ye), s(_this, Pe, 0)), _this.radiusTopLeft = (s(_this, Be), s(_this, Ce, 1)), _this.radiusTopRight = (s(_this, Te), s(_this, Re, 1)), _this.radiusBottomLeft = (s(_this, we), s(_this, ke, 1)), _this.radiusBottomRight = (s(_this, Oe), s(_this, Me, 1)), _this.bulgeEnabled = (s(_this, Fe), s(_this, Ee, !1)), _this.bulgeHeight = (s(_this, De), s(_this, Le, -.323)), _this.bulgeRadius = (s(_this, ze), s(_this, Ne, .73)), _this.sunIntensity = (s(_this, Ae), s(_this, Ve, 2)), _this.sunTheta = (s(_this, Qe), s(_this, We, .937)), _this.sunPhi = (s(_this, Ge), s(_this, He, .555)), _this.indirectDiffuse = (s(_this, Ue), s(_this, Ye, 1)), _this.albedo = (s(_this, Xe), s(_this, je, new t.Color4(.0117647, .505882, .996078, 1))), _this.specular = (s(_this, Ke), s(_this, Ze, 0)), _this.shininess = (s(_this, qe), s(_this, $e, 10)), _this.sharpness = (s(_this, Je), s(_this, et, 0)), _this.subsurface = (s(_this, tt), s(_this, it, .31)), _this.leftGradientColor = (s(_this, st), s(_this, at, new t.Color4(.0117647, .505882, .996078, 1))), _this.rightGradientColor = (s(_this, nt), s(_this, ot, new t.Color4(.0117647, .505882, .996078, 1))), _this.reflection = (s(_this, rt), s(_this, lt, .749)), _this.frontReflect = (s(_this, _t), s(_this, ht, 0)), _this.edgeReflect = (s(_this, ct), s(_this, dt, .09)), _this.power = (s(_this, ut), s(_this, ft, 8.1)), _this.skyColor = (s(_this, mt), s(_this, gt, new t.Color4(.0117647, .960784, .996078, 1))), _this.horizonColor = (s(_this, bt), s(_this, vt, new t.Color4(.0117647, .333333, .996078, 1))), _this.groundColor = (s(_this, pt), s(_this, xt, new t.Color4(0, .254902, .996078, 1))), _this.horizonPower = (s(_this, It), s(_this, St, 1)), _this.width = (s(_this, yt), s(_this, Pt, .02)), _this.fuzz = (s(_this, Bt), s(_this, Ct, .5)), _this.minFuzz = (s(_this, Tt), s(_this, Rt, .001)), _this.clipFade = (s(_this, wt), s(_this, kt, .01)), _this.hueShift = (s(_this, Ot), s(_this, Mt, 0)), _this.saturationShift = (s(_this, Ft), s(_this, Et, 0)), _this.valueShift = (s(_this, Dt), s(_this, Lt, 0)), _this.blobPosition = (s(_this, zt), s(_this, Nt, new t.Vector3(0, 0, .1))), _this.blobIntensity = (s(_this, At), s(_this, Vt, .5)), _this.blobNearSize = (s(_this, Qt), s(_this, Wt, .01)), _this.blobFarSize = (s(_this, Gt), s(_this, Ht, .03)), _this.blobNearDistance = (s(_this, Ut), s(_this, Yt, 0)), _this.blobFarDistance = (s(_this, Xt), s(_this, jt, .08)), _this.blobFadeLength = (s(_this, Kt), s(_this, Zt, .576)), _this.blobPulse = (s(_this, qt), s(_this, $t, 0)), _this.blobFade = (s(_this, Jt), s(_this, ei, 1)), _this.blobPosition2 = (s(_this, ti), s(_this, ii, new t.Vector3(.2, 0, .1))), _this.blobNearSize2 = (s(_this, si), s(_this, ai, .01)), _this.blobPulse2 = (s(_this, ni), s(_this, ri, 0)), _this.blobFade2 = (s(_this, li), s(_this, _i, 1)), _this.blobTexture = (s(_this, hi), s(_this, ci, new t.Texture("", _this.getScene()))), _this.leftIndexPosition = (s(_this, di), s(_this, ui, new t.Vector3(0, 0, 1))), _this.rightIndexPosition = (s(_this, fi), s(_this, mi, new t.Vector3(-1, -1, -1))), _this.leftIndexMiddlePosition = (s(_this, gi), s(_this, bi, new t.Vector3(0, 0, 0))), _this.rightIndexMiddlePosition = (s(_this, vi), s(_this, pi, new t.Vector3(0, 0, 0))), _this.decalScaleXY = (s(_this, xi), s(_this, Ii, new t.Vector2(1.5, 1.5))), _this.decalFrontOnly = (s(_this, Si), s(_this, yi, !0)), _this.rimIntensity = (s(_this, Pi), s(_this, Bi, .287)), _this.rimHueShift = (s(_this, Ci), s(_this, Ti, 0)), _this.rimSaturationShift = (s(_this, Ri), s(_this, wi, 0)), _this.rimValueShift = (s(_this, ki), s(_this, Oi, -1)), _this.iridescenceIntensity = (s(_this, Mi), s(_this, Fi, 0)), _this.useGlobalLeftIndex = (s(_this, Ei), 1), _this.useGlobalRightIndex = 1, _this.globalLeftIndexTipProximity = 0, _this.globalRightIndexTipProximity = 0, _this.globalLeftIndexTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globaRightIndexTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftThumbTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightThumbTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftIndexMiddlePosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightIndexMiddlePosition = new t.Vector4(0, 0, 0, 1), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7478
+ _this = _super.call(this, i, a) || this, _this.radius = s(_this, ge, .157), _this.bevelFront = (s(_this, be), s(_this, ve, .065)), _this.bevelFrontStretch = (s(_this, pe), s(_this, xe, .077)), _this.bevelBack = (s(_this, Ie), s(_this, Se, .031)), _this.bevelBackStretch = (s(_this, ye), s(_this, Pe, 0)), _this.radiusTopLeft = (s(_this, Be), s(_this, Ce, 1)), _this.radiusTopRight = (s(_this, Te), s(_this, Re, 1)), _this.radiusBottomLeft = (s(_this, we), s(_this, ke, 1)), _this.radiusBottomRight = (s(_this, Oe), s(_this, Me, 1)), _this.bulgeEnabled = (s(_this, Fe), s(_this, Ee, !1)), _this.bulgeHeight = (s(_this, Le), s(_this, De, -.323)), _this.bulgeRadius = (s(_this, ze), s(_this, Ne, .73)), _this.sunIntensity = (s(_this, Ae), s(_this, Ve, 2)), _this.sunTheta = (s(_this, Qe), s(_this, We, .937)), _this.sunPhi = (s(_this, Ge), s(_this, He, .555)), _this.indirectDiffuse = (s(_this, Ue), s(_this, Ye, 1)), _this.albedo = (s(_this, Xe), s(_this, je, new t.Color4(.0117647, .505882, .996078, 1))), _this.specular = (s(_this, Ke), s(_this, Ze, 0)), _this.shininess = (s(_this, qe), s(_this, $e, 10)), _this.sharpness = (s(_this, Je), s(_this, et, 0)), _this.subsurface = (s(_this, tt), s(_this, it, .31)), _this.leftGradientColor = (s(_this, st), s(_this, at, new t.Color4(.0117647, .505882, .996078, 1))), _this.rightGradientColor = (s(_this, nt), s(_this, ot, new t.Color4(.0117647, .505882, .996078, 1))), _this.reflection = (s(_this, rt), s(_this, lt, .749)), _this.frontReflect = (s(_this, _t), s(_this, ht, 0)), _this.edgeReflect = (s(_this, ct), s(_this, dt, .09)), _this.power = (s(_this, ut), s(_this, ft, 8.1)), _this.skyColor = (s(_this, mt), s(_this, gt, new t.Color4(.0117647, .960784, .996078, 1))), _this.horizonColor = (s(_this, bt), s(_this, vt, new t.Color4(.0117647, .333333, .996078, 1))), _this.groundColor = (s(_this, pt), s(_this, xt, new t.Color4(0, .254902, .996078, 1))), _this.horizonPower = (s(_this, It), s(_this, St, 1)), _this.width = (s(_this, yt), s(_this, Pt, .02)), _this.fuzz = (s(_this, Bt), s(_this, Ct, .5)), _this.minFuzz = (s(_this, Tt), s(_this, Rt, .001)), _this.clipFade = (s(_this, wt), s(_this, kt, .01)), _this.hueShift = (s(_this, Ot), s(_this, Mt, 0)), _this.saturationShift = (s(_this, Ft), s(_this, Et, 0)), _this.valueShift = (s(_this, Lt), s(_this, Dt, 0)), _this.blobPosition = (s(_this, zt), s(_this, Nt, new t.Vector3(0, 0, .1))), _this.blobIntensity = (s(_this, At), s(_this, Vt, .5)), _this.blobNearSize = (s(_this, Qt), s(_this, Wt, .01)), _this.blobFarSize = (s(_this, Gt), s(_this, Ht, .03)), _this.blobNearDistance = (s(_this, Ut), s(_this, Yt, 0)), _this.blobFarDistance = (s(_this, Xt), s(_this, jt, .08)), _this.blobFadeLength = (s(_this, Kt), s(_this, Zt, .576)), _this.blobPulse = (s(_this, qt), s(_this, $t, 0)), _this.blobFade = (s(_this, Jt), s(_this, ei, 1)), _this.blobPosition2 = (s(_this, ti), s(_this, ii, new t.Vector3(.2, 0, .1))), _this.blobNearSize2 = (s(_this, si), s(_this, ai, .01)), _this.blobPulse2 = (s(_this, ni), s(_this, ri, 0)), _this.blobFade2 = (s(_this, li), s(_this, _i, 1)), _this.blobTexture = (s(_this, hi), s(_this, ci, new t.Texture("", _this.getScene()))), _this.leftIndexPosition = (s(_this, di), s(_this, ui, new t.Vector3(0, 0, 1))), _this.rightIndexPosition = (s(_this, fi), s(_this, mi, new t.Vector3(-1, -1, -1))), _this.leftIndexMiddlePosition = (s(_this, gi), s(_this, bi, new t.Vector3(0, 0, 0))), _this.rightIndexMiddlePosition = (s(_this, vi), s(_this, pi, new t.Vector3(0, 0, 0))), _this.decalScaleXY = (s(_this, xi), s(_this, Ii, new t.Vector2(1.5, 1.5))), _this.decalFrontOnly = (s(_this, Si), s(_this, yi, !0)), _this.rimIntensity = (s(_this, Pi), s(_this, Bi, .287)), _this.rimHueShift = (s(_this, Ci), s(_this, Ti, 0)), _this.rimSaturationShift = (s(_this, Ri), s(_this, wi, 0)), _this.rimValueShift = (s(_this, ki), s(_this, Oi, -1)), _this.iridescenceIntensity = (s(_this, Mi), s(_this, Fi, 0)), _this.useGlobalLeftIndex = (s(_this, Ei), 1), _this.useGlobalRightIndex = 1, _this.globalLeftIndexTipProximity = 0, _this.globalRightIndexTipProximity = 0, _this.globalLeftIndexTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globaRightIndexTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftThumbTipPosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightThumbTipPosition = new t.Vector4(0, 0, 0, 1), _this.globalLeftIndexMiddlePosition = new t.Vector4(.5, 0, -.55, 1), _this.globalRightIndexMiddlePosition = new t.Vector4(0, 0, 0, 1), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7468
7479
  var n = t.Tools.GetAssetUrl(e.BLUE_GRADIENT_TEXTURE_URL);
7469
7480
  _this._blueGradientTexture = new t.Texture(n, a, !0, !1, t.Texture.NEAREST_SAMPLINGMODE), _this._decalTexture = new t.Texture("", _this.getScene()), _this._reflectionMapTexture = new t.Texture("", _this.getScene()), _this._indirectEnvTexture = new t.Texture("", _this.getScene());
7470
7481
  return _this;
@@ -7488,10 +7499,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7488
7499
  n.markAsProcessed(), o.resetCachedMaterial();
7489
7500
  var e_236 = new t.EffectFallbacks;
7490
7501
  n.FOG && e_236.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, e_236), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
7491
- var s_67 = [t.VertexBuffer.PositionKind];
7492
- n.NORMAL && s_67.push(t.VertexBuffer.NormalKind), n.UV1 && s_67.push(t.VertexBuffer.UVKind), n.UV2 && s_67.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_67.push(t.VertexBuffer.ColorKind), n.TANGENT && s_67.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_67, n);
7502
+ var s_68 = [t.VertexBuffer.PositionKind];
7503
+ n.NORMAL && s_68.push(t.VertexBuffer.NormalKind), n.UV1 && s_68.push(t.VertexBuffer.UVKind), n.UV2 && s_68.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_68.push(t.VertexBuffer.ColorKind), n.TANGENT && s_68.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_68, n);
7493
7504
  var l_21 = "mrdlSliderThumb", h_11 = n.toString(), c_8 = ["world", "viewProjection", "cameraPosition", "_Radius_", "_Bevel_Front_", "_Bevel_Front_Stretch_", "_Bevel_Back_", "_Bevel_Back_Stretch_", "_Radius_Top_Left_", "_Radius_Top_Right_", "_Radius_Bottom_Left_", "_Radius_Bottom_Right_", "_Bulge_Enabled_", "_Bulge_Height_", "_Bulge_Radius_", "_Sun_Intensity_", "_Sun_Theta_", "_Sun_Phi_", "_Indirect_Diffuse_", "_Albedo_", "_Specular_", "_Shininess_", "_Sharpness_", "_Subsurface_", "_Left_Color_", "_Right_Color_", "_Reflection_", "_Front_Reflect_", "_Edge_Reflect_", "_Power_", "_Sky_Color_", "_Horizon_Color_", "_Ground_Color_", "_Horizon_Power_", "_Reflection_Map_", "_Indirect_Environment_", "_Width_", "_Fuzz_", "_Min_Fuzz_", "_Clip_Fade_", "_Hue_Shift_", "_Saturation_Shift_", "_Value_Shift_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Left_Index_Pos_", "_Right_Index_Pos_", "_Left_Index_Middle_Pos_", "_Right_Index_Middle_Pos_", "_Decal_", "_Decal_Scale_XY_", "_Decal_Front_Only_", "_Rim_Intensity_", "_Rim_Texture_", "_Rim_Hue_Shift_", "_Rim_Saturation_Shift_", "_Rim_Value_Shift_", "_Iridescence_Intensity_", "_Iridescence_Texture_", "Use_Global_Left_Index", "Use_Global_Right_Index", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "Global_Left_Thumb_Tip_Position", "Global_Right_Thumb_Tip_Position", "Global_Left_Index_Middle_Position;", "Global_Right_Index_Middle_Position", "Global_Left_Index_Tip_Proximity", "Global_Right_Index_Tip_Proximity"], d_8 = ["_Rim_Texture_", "_Iridescence_Texture_"], u_7 = [];
7494
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_8, uniformBuffersNames: u_7, samplers: d_8, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_21, { attributes: s_67, uniformsNames: c_8, uniformBuffersNames: u_7, samplers: d_8, defines: h_11, fallbacks: e_236, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7505
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_8, uniformBuffersNames: u_7, samplers: d_8, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_21, { attributes: s_68, uniformsNames: c_8, uniformBuffersNames: u_7, samplers: d_8, defines: h_11, fallbacks: e_236, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7495
7506
  switch (_a.label) {
7496
7507
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return os; }), Promise.resolve().then(function () { return ss; })])];
7497
7508
  case 1:
@@ -7514,7 +7525,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7514
7525
  e.prototype.getClassName = function () { return "MRDLSliderThumbMaterial"; };
7515
7526
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
7516
7527
  return e;
7517
- }(me)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = me[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], D = [t.serialize()], L = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], se = [t.serialize()], ae = [t.serialize()], ne = [t.serialize()], oe = [t.serialize()], re = [t.serialize()], le = [t.serialize()], _e = [t.serialize()], he = [t.serialize()], ce = [t.serialize()], de = [t.serialize()], ue = [t.serialize()], fe = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, ge, be), i(null, null, o, { kind: "field", name: "bevelFront", static: !1, private: !1, access: { has: function (e) { return "bevelFront" in e; }, get: function (e) { return e.bevelFront; }, set: function (e, t) { e.bevelFront = t; } }, metadata: a }, ve, pe), i(null, null, r, { kind: "field", name: "bevelFrontStretch", static: !1, private: !1, access: { has: function (e) { return "bevelFrontStretch" in e; }, get: function (e) { return e.bevelFrontStretch; }, set: function (e, t) { e.bevelFrontStretch = t; } }, metadata: a }, xe, Ie), i(null, null, l, { kind: "field", name: "bevelBack", static: !1, private: !1, access: { has: function (e) { return "bevelBack" in e; }, get: function (e) { return e.bevelBack; }, set: function (e, t) { e.bevelBack = t; } }, metadata: a }, Se, ye), i(null, null, h, { kind: "field", name: "bevelBackStretch", static: !1, private: !1, access: { has: function (e) { return "bevelBackStretch" in e; }, get: function (e) { return e.bevelBackStretch; }, set: function (e, t) { e.bevelBackStretch = t; } }, metadata: a }, Pe, Be), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, Ce, Te), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, Re, we), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, ke, Oe), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Me, Fe), i(null, null, m, { kind: "field", name: "bulgeEnabled", static: !1, private: !1, access: { has: function (e) { return "bulgeEnabled" in e; }, get: function (e) { return e.bulgeEnabled; }, set: function (e, t) { e.bulgeEnabled = t; } }, metadata: a }, Ee, De), i(null, null, g, { kind: "field", name: "bulgeHeight", static: !1, private: !1, access: { has: function (e) { return "bulgeHeight" in e; }, get: function (e) { return e.bulgeHeight; }, set: function (e, t) { e.bulgeHeight = t; } }, metadata: a }, Le, ze), i(null, null, b, { kind: "field", name: "bulgeRadius", static: !1, private: !1, access: { has: function (e) { return "bulgeRadius" in e; }, get: function (e) { return e.bulgeRadius; }, set: function (e, t) { e.bulgeRadius = t; } }, metadata: a }, Ne, Ae), i(null, null, v, { kind: "field", name: "sunIntensity", static: !1, private: !1, access: { has: function (e) { return "sunIntensity" in e; }, get: function (e) { return e.sunIntensity; }, set: function (e, t) { e.sunIntensity = t; } }, metadata: a }, Ve, Qe), i(null, null, p, { kind: "field", name: "sunTheta", static: !1, private: !1, access: { has: function (e) { return "sunTheta" in e; }, get: function (e) { return e.sunTheta; }, set: function (e, t) { e.sunTheta = t; } }, metadata: a }, We, Ge), i(null, null, x, { kind: "field", name: "sunPhi", static: !1, private: !1, access: { has: function (e) { return "sunPhi" in e; }, get: function (e) { return e.sunPhi; }, set: function (e, t) { e.sunPhi = t; } }, metadata: a }, He, Ue), i(null, null, I, { kind: "field", name: "indirectDiffuse", static: !1, private: !1, access: { has: function (e) { return "indirectDiffuse" in e; }, get: function (e) { return e.indirectDiffuse; }, set: function (e, t) { e.indirectDiffuse = t; } }, metadata: a }, Ye, Xe), i(null, null, S, { kind: "field", name: "albedo", static: !1, private: !1, access: { has: function (e) { return "albedo" in e; }, get: function (e) { return e.albedo; }, set: function (e, t) { e.albedo = t; } }, metadata: a }, je, Ke), i(null, null, y, { kind: "field", name: "specular", static: !1, private: !1, access: { has: function (e) { return "specular" in e; }, get: function (e) { return e.specular; }, set: function (e, t) { e.specular = t; } }, metadata: a }, Ze, qe), i(null, null, P, { kind: "field", name: "shininess", static: !1, private: !1, access: { has: function (e) { return "shininess" in e; }, get: function (e) { return e.shininess; }, set: function (e, t) { e.shininess = t; } }, metadata: a }, $e, Je), i(null, null, B, { kind: "field", name: "sharpness", static: !1, private: !1, access: { has: function (e) { return "sharpness" in e; }, get: function (e) { return e.sharpness; }, set: function (e, t) { e.sharpness = t; } }, metadata: a }, et, tt), i(null, null, C, { kind: "field", name: "subsurface", static: !1, private: !1, access: { has: function (e) { return "subsurface" in e; }, get: function (e) { return e.subsurface; }, set: function (e, t) { e.subsurface = t; } }, metadata: a }, it, st), i(null, null, T, { kind: "field", name: "leftGradientColor", static: !1, private: !1, access: { has: function (e) { return "leftGradientColor" in e; }, get: function (e) { return e.leftGradientColor; }, set: function (e, t) { e.leftGradientColor = t; } }, metadata: a }, at, nt), i(null, null, R, { kind: "field", name: "rightGradientColor", static: !1, private: !1, access: { has: function (e) { return "rightGradientColor" in e; }, get: function (e) { return e.rightGradientColor; }, set: function (e, t) { e.rightGradientColor = t; } }, metadata: a }, ot, rt), i(null, null, w, { kind: "field", name: "reflection", static: !1, private: !1, access: { has: function (e) { return "reflection" in e; }, get: function (e) { return e.reflection; }, set: function (e, t) { e.reflection = t; } }, metadata: a }, lt, _t), i(null, null, k, { kind: "field", name: "frontReflect", static: !1, private: !1, access: { has: function (e) { return "frontReflect" in e; }, get: function (e) { return e.frontReflect; }, set: function (e, t) { e.frontReflect = t; } }, metadata: a }, ht, ct), i(null, null, O, { kind: "field", name: "edgeReflect", static: !1, private: !1, access: { has: function (e) { return "edgeReflect" in e; }, get: function (e) { return e.edgeReflect; }, set: function (e, t) { e.edgeReflect = t; } }, metadata: a }, dt, ut), i(null, null, M, { kind: "field", name: "power", static: !1, private: !1, access: { has: function (e) { return "power" in e; }, get: function (e) { return e.power; }, set: function (e, t) { e.power = t; } }, metadata: a }, ft, mt), i(null, null, F, { kind: "field", name: "skyColor", static: !1, private: !1, access: { has: function (e) { return "skyColor" in e; }, get: function (e) { return e.skyColor; }, set: function (e, t) { e.skyColor = t; } }, metadata: a }, gt, bt), i(null, null, E, { kind: "field", name: "horizonColor", static: !1, private: !1, access: { has: function (e) { return "horizonColor" in e; }, get: function (e) { return e.horizonColor; }, set: function (e, t) { e.horizonColor = t; } }, metadata: a }, vt, pt), i(null, null, D, { kind: "field", name: "groundColor", static: !1, private: !1, access: { has: function (e) { return "groundColor" in e; }, get: function (e) { return e.groundColor; }, set: function (e, t) { e.groundColor = t; } }, metadata: a }, xt, It), i(null, null, L, { kind: "field", name: "horizonPower", static: !1, private: !1, access: { has: function (e) { return "horizonPower" in e; }, get: function (e) { return e.horizonPower; }, set: function (e, t) { e.horizonPower = t; } }, metadata: a }, St, yt), i(null, null, z, { kind: "field", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; }, set: function (e, t) { e.width = t; } }, metadata: a }, Pt, Bt), i(null, null, N, { kind: "field", name: "fuzz", static: !1, private: !1, access: { has: function (e) { return "fuzz" in e; }, get: function (e) { return e.fuzz; }, set: function (e, t) { e.fuzz = t; } }, metadata: a }, Ct, Tt), i(null, null, A, { kind: "field", name: "minFuzz", static: !1, private: !1, access: { has: function (e) { return "minFuzz" in e; }, get: function (e) { return e.minFuzz; }, set: function (e, t) { e.minFuzz = t; } }, metadata: a }, Rt, wt), i(null, null, V, { kind: "field", name: "clipFade", static: !1, private: !1, access: { has: function (e) { return "clipFade" in e; }, get: function (e) { return e.clipFade; }, set: function (e, t) { e.clipFade = t; } }, metadata: a }, kt, Ot), i(null, null, Q, { kind: "field", name: "hueShift", static: !1, private: !1, access: { has: function (e) { return "hueShift" in e; }, get: function (e) { return e.hueShift; }, set: function (e, t) { e.hueShift = t; } }, metadata: a }, Mt, Ft), i(null, null, W, { kind: "field", name: "saturationShift", static: !1, private: !1, access: { has: function (e) { return "saturationShift" in e; }, get: function (e) { return e.saturationShift; }, set: function (e, t) { e.saturationShift = t; } }, metadata: a }, Et, Dt), i(null, null, G, { kind: "field", name: "valueShift", static: !1, private: !1, access: { has: function (e) { return "valueShift" in e; }, get: function (e) { return e.valueShift; }, set: function (e, t) { e.valueShift = t; } }, metadata: a }, Lt, zt), i(null, null, H, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, Nt, At), i(null, null, U, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, Vt, Qt), i(null, null, Y, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, Wt, Gt), i(null, null, X, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, Ht, Ut), i(null, null, j, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, Yt, Xt), i(null, null, K, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, jt, Kt), i(null, null, Z, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, Zt, qt), i(null, null, q, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, $t, Jt), i(null, null, $, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, ei, ti), i(null, null, J, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, ii, si), i(null, null, ee, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, ai, ni), i(null, null, te, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, ri, li), i(null, null, ie, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, _i, hi), i(null, null, se, { kind: "field", name: "blobTexture", static: !1, private: !1, access: { has: function (e) { return "blobTexture" in e; }, get: function (e) { return e.blobTexture; }, set: function (e, t) { e.blobTexture = t; } }, metadata: a }, ci, di), i(null, null, ae, { kind: "field", name: "leftIndexPosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexPosition" in e; }, get: function (e) { return e.leftIndexPosition; }, set: function (e, t) { e.leftIndexPosition = t; } }, metadata: a }, ui, fi), i(null, null, ne, { kind: "field", name: "rightIndexPosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexPosition" in e; }, get: function (e) { return e.rightIndexPosition; }, set: function (e, t) { e.rightIndexPosition = t; } }, metadata: a }, mi, gi), i(null, null, oe, { kind: "field", name: "leftIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexMiddlePosition" in e; }, get: function (e) { return e.leftIndexMiddlePosition; }, set: function (e, t) { e.leftIndexMiddlePosition = t; } }, metadata: a }, bi, vi), i(null, null, re, { kind: "field", name: "rightIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexMiddlePosition" in e; }, get: function (e) { return e.rightIndexMiddlePosition; }, set: function (e, t) { e.rightIndexMiddlePosition = t; } }, metadata: a }, pi, xi), i(null, null, le, { kind: "field", name: "decalScaleXY", static: !1, private: !1, access: { has: function (e) { return "decalScaleXY" in e; }, get: function (e) { return e.decalScaleXY; }, set: function (e, t) { e.decalScaleXY = t; } }, metadata: a }, Ii, Si), i(null, null, _e, { kind: "field", name: "decalFrontOnly", static: !1, private: !1, access: { has: function (e) { return "decalFrontOnly" in e; }, get: function (e) { return e.decalFrontOnly; }, set: function (e, t) { e.decalFrontOnly = t; } }, metadata: a }, yi, Pi), i(null, null, he, { kind: "field", name: "rimIntensity", static: !1, private: !1, access: { has: function (e) { return "rimIntensity" in e; }, get: function (e) { return e.rimIntensity; }, set: function (e, t) { e.rimIntensity = t; } }, metadata: a }, Bi, Ci), i(null, null, ce, { kind: "field", name: "rimHueShift", static: !1, private: !1, access: { has: function (e) { return "rimHueShift" in e; }, get: function (e) { return e.rimHueShift; }, set: function (e, t) { e.rimHueShift = t; } }, metadata: a }, Ti, Ri), i(null, null, de, { kind: "field", name: "rimSaturationShift", static: !1, private: !1, access: { has: function (e) { return "rimSaturationShift" in e; }, get: function (e) { return e.rimSaturationShift; }, set: function (e, t) { e.rimSaturationShift = t; } }, metadata: a }, wi, ki), i(null, null, ue, { kind: "field", name: "rimValueShift", static: !1, private: !1, access: { has: function (e) { return "rimValueShift" in e; }, get: function (e) { return e.rimValueShift; }, set: function (e, t) { e.rimValueShift = t; } }, metadata: a }, Oi, Mi), i(null, null, fe, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, Fi, Ei), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png", e; })(), li = !1;
7528
+ }(me)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = me[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], L = [t.serialize()], D = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], W = [t.serialize()], G = [t.serialize()], H = [t.serialize()], U = [t.serialize()], Y = [t.serialize()], X = [t.serialize()], j = [t.serialize()], K = [t.serialize()], Z = [t.serialize()], q = [t.serialize()], $ = [t.serialize()], J = [t.serialize()], ee = [t.serialize()], te = [t.serialize()], ie = [t.serialize()], se = [t.serialize()], ae = [t.serialize()], ne = [t.serialize()], oe = [t.serialize()], re = [t.serialize()], le = [t.serialize()], _e = [t.serialize()], he = [t.serialize()], ce = [t.serialize()], de = [t.serialize()], ue = [t.serialize()], fe = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, ge, be), i(null, null, o, { kind: "field", name: "bevelFront", static: !1, private: !1, access: { has: function (e) { return "bevelFront" in e; }, get: function (e) { return e.bevelFront; }, set: function (e, t) { e.bevelFront = t; } }, metadata: a }, ve, pe), i(null, null, r, { kind: "field", name: "bevelFrontStretch", static: !1, private: !1, access: { has: function (e) { return "bevelFrontStretch" in e; }, get: function (e) { return e.bevelFrontStretch; }, set: function (e, t) { e.bevelFrontStretch = t; } }, metadata: a }, xe, Ie), i(null, null, l, { kind: "field", name: "bevelBack", static: !1, private: !1, access: { has: function (e) { return "bevelBack" in e; }, get: function (e) { return e.bevelBack; }, set: function (e, t) { e.bevelBack = t; } }, metadata: a }, Se, ye), i(null, null, h, { kind: "field", name: "bevelBackStretch", static: !1, private: !1, access: { has: function (e) { return "bevelBackStretch" in e; }, get: function (e) { return e.bevelBackStretch; }, set: function (e, t) { e.bevelBackStretch = t; } }, metadata: a }, Pe, Be), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, Ce, Te), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, Re, we), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, ke, Oe), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Me, Fe), i(null, null, m, { kind: "field", name: "bulgeEnabled", static: !1, private: !1, access: { has: function (e) { return "bulgeEnabled" in e; }, get: function (e) { return e.bulgeEnabled; }, set: function (e, t) { e.bulgeEnabled = t; } }, metadata: a }, Ee, Le), i(null, null, g, { kind: "field", name: "bulgeHeight", static: !1, private: !1, access: { has: function (e) { return "bulgeHeight" in e; }, get: function (e) { return e.bulgeHeight; }, set: function (e, t) { e.bulgeHeight = t; } }, metadata: a }, De, ze), i(null, null, b, { kind: "field", name: "bulgeRadius", static: !1, private: !1, access: { has: function (e) { return "bulgeRadius" in e; }, get: function (e) { return e.bulgeRadius; }, set: function (e, t) { e.bulgeRadius = t; } }, metadata: a }, Ne, Ae), i(null, null, v, { kind: "field", name: "sunIntensity", static: !1, private: !1, access: { has: function (e) { return "sunIntensity" in e; }, get: function (e) { return e.sunIntensity; }, set: function (e, t) { e.sunIntensity = t; } }, metadata: a }, Ve, Qe), i(null, null, p, { kind: "field", name: "sunTheta", static: !1, private: !1, access: { has: function (e) { return "sunTheta" in e; }, get: function (e) { return e.sunTheta; }, set: function (e, t) { e.sunTheta = t; } }, metadata: a }, We, Ge), i(null, null, x, { kind: "field", name: "sunPhi", static: !1, private: !1, access: { has: function (e) { return "sunPhi" in e; }, get: function (e) { return e.sunPhi; }, set: function (e, t) { e.sunPhi = t; } }, metadata: a }, He, Ue), i(null, null, I, { kind: "field", name: "indirectDiffuse", static: !1, private: !1, access: { has: function (e) { return "indirectDiffuse" in e; }, get: function (e) { return e.indirectDiffuse; }, set: function (e, t) { e.indirectDiffuse = t; } }, metadata: a }, Ye, Xe), i(null, null, S, { kind: "field", name: "albedo", static: !1, private: !1, access: { has: function (e) { return "albedo" in e; }, get: function (e) { return e.albedo; }, set: function (e, t) { e.albedo = t; } }, metadata: a }, je, Ke), i(null, null, y, { kind: "field", name: "specular", static: !1, private: !1, access: { has: function (e) { return "specular" in e; }, get: function (e) { return e.specular; }, set: function (e, t) { e.specular = t; } }, metadata: a }, Ze, qe), i(null, null, P, { kind: "field", name: "shininess", static: !1, private: !1, access: { has: function (e) { return "shininess" in e; }, get: function (e) { return e.shininess; }, set: function (e, t) { e.shininess = t; } }, metadata: a }, $e, Je), i(null, null, B, { kind: "field", name: "sharpness", static: !1, private: !1, access: { has: function (e) { return "sharpness" in e; }, get: function (e) { return e.sharpness; }, set: function (e, t) { e.sharpness = t; } }, metadata: a }, et, tt), i(null, null, C, { kind: "field", name: "subsurface", static: !1, private: !1, access: { has: function (e) { return "subsurface" in e; }, get: function (e) { return e.subsurface; }, set: function (e, t) { e.subsurface = t; } }, metadata: a }, it, st), i(null, null, T, { kind: "field", name: "leftGradientColor", static: !1, private: !1, access: { has: function (e) { return "leftGradientColor" in e; }, get: function (e) { return e.leftGradientColor; }, set: function (e, t) { e.leftGradientColor = t; } }, metadata: a }, at, nt), i(null, null, R, { kind: "field", name: "rightGradientColor", static: !1, private: !1, access: { has: function (e) { return "rightGradientColor" in e; }, get: function (e) { return e.rightGradientColor; }, set: function (e, t) { e.rightGradientColor = t; } }, metadata: a }, ot, rt), i(null, null, w, { kind: "field", name: "reflection", static: !1, private: !1, access: { has: function (e) { return "reflection" in e; }, get: function (e) { return e.reflection; }, set: function (e, t) { e.reflection = t; } }, metadata: a }, lt, _t), i(null, null, k, { kind: "field", name: "frontReflect", static: !1, private: !1, access: { has: function (e) { return "frontReflect" in e; }, get: function (e) { return e.frontReflect; }, set: function (e, t) { e.frontReflect = t; } }, metadata: a }, ht, ct), i(null, null, O, { kind: "field", name: "edgeReflect", static: !1, private: !1, access: { has: function (e) { return "edgeReflect" in e; }, get: function (e) { return e.edgeReflect; }, set: function (e, t) { e.edgeReflect = t; } }, metadata: a }, dt, ut), i(null, null, M, { kind: "field", name: "power", static: !1, private: !1, access: { has: function (e) { return "power" in e; }, get: function (e) { return e.power; }, set: function (e, t) { e.power = t; } }, metadata: a }, ft, mt), i(null, null, F, { kind: "field", name: "skyColor", static: !1, private: !1, access: { has: function (e) { return "skyColor" in e; }, get: function (e) { return e.skyColor; }, set: function (e, t) { e.skyColor = t; } }, metadata: a }, gt, bt), i(null, null, E, { kind: "field", name: "horizonColor", static: !1, private: !1, access: { has: function (e) { return "horizonColor" in e; }, get: function (e) { return e.horizonColor; }, set: function (e, t) { e.horizonColor = t; } }, metadata: a }, vt, pt), i(null, null, L, { kind: "field", name: "groundColor", static: !1, private: !1, access: { has: function (e) { return "groundColor" in e; }, get: function (e) { return e.groundColor; }, set: function (e, t) { e.groundColor = t; } }, metadata: a }, xt, It), i(null, null, D, { kind: "field", name: "horizonPower", static: !1, private: !1, access: { has: function (e) { return "horizonPower" in e; }, get: function (e) { return e.horizonPower; }, set: function (e, t) { e.horizonPower = t; } }, metadata: a }, St, yt), i(null, null, z, { kind: "field", name: "width", static: !1, private: !1, access: { has: function (e) { return "width" in e; }, get: function (e) { return e.width; }, set: function (e, t) { e.width = t; } }, metadata: a }, Pt, Bt), i(null, null, N, { kind: "field", name: "fuzz", static: !1, private: !1, access: { has: function (e) { return "fuzz" in e; }, get: function (e) { return e.fuzz; }, set: function (e, t) { e.fuzz = t; } }, metadata: a }, Ct, Tt), i(null, null, A, { kind: "field", name: "minFuzz", static: !1, private: !1, access: { has: function (e) { return "minFuzz" in e; }, get: function (e) { return e.minFuzz; }, set: function (e, t) { e.minFuzz = t; } }, metadata: a }, Rt, wt), i(null, null, V, { kind: "field", name: "clipFade", static: !1, private: !1, access: { has: function (e) { return "clipFade" in e; }, get: function (e) { return e.clipFade; }, set: function (e, t) { e.clipFade = t; } }, metadata: a }, kt, Ot), i(null, null, Q, { kind: "field", name: "hueShift", static: !1, private: !1, access: { has: function (e) { return "hueShift" in e; }, get: function (e) { return e.hueShift; }, set: function (e, t) { e.hueShift = t; } }, metadata: a }, Mt, Ft), i(null, null, W, { kind: "field", name: "saturationShift", static: !1, private: !1, access: { has: function (e) { return "saturationShift" in e; }, get: function (e) { return e.saturationShift; }, set: function (e, t) { e.saturationShift = t; } }, metadata: a }, Et, Lt), i(null, null, G, { kind: "field", name: "valueShift", static: !1, private: !1, access: { has: function (e) { return "valueShift" in e; }, get: function (e) { return e.valueShift; }, set: function (e, t) { e.valueShift = t; } }, metadata: a }, Dt, zt), i(null, null, H, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, Nt, At), i(null, null, U, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, Vt, Qt), i(null, null, Y, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, Wt, Gt), i(null, null, X, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, Ht, Ut), i(null, null, j, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, Yt, Xt), i(null, null, K, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, jt, Kt), i(null, null, Z, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, Zt, qt), i(null, null, q, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, $t, Jt), i(null, null, $, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, ei, ti), i(null, null, J, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, ii, si), i(null, null, ee, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, ai, ni), i(null, null, te, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, ri, li), i(null, null, ie, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, _i, hi), i(null, null, se, { kind: "field", name: "blobTexture", static: !1, private: !1, access: { has: function (e) { return "blobTexture" in e; }, get: function (e) { return e.blobTexture; }, set: function (e, t) { e.blobTexture = t; } }, metadata: a }, ci, di), i(null, null, ae, { kind: "field", name: "leftIndexPosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexPosition" in e; }, get: function (e) { return e.leftIndexPosition; }, set: function (e, t) { e.leftIndexPosition = t; } }, metadata: a }, ui, fi), i(null, null, ne, { kind: "field", name: "rightIndexPosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexPosition" in e; }, get: function (e) { return e.rightIndexPosition; }, set: function (e, t) { e.rightIndexPosition = t; } }, metadata: a }, mi, gi), i(null, null, oe, { kind: "field", name: "leftIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "leftIndexMiddlePosition" in e; }, get: function (e) { return e.leftIndexMiddlePosition; }, set: function (e, t) { e.leftIndexMiddlePosition = t; } }, metadata: a }, bi, vi), i(null, null, re, { kind: "field", name: "rightIndexMiddlePosition", static: !1, private: !1, access: { has: function (e) { return "rightIndexMiddlePosition" in e; }, get: function (e) { return e.rightIndexMiddlePosition; }, set: function (e, t) { e.rightIndexMiddlePosition = t; } }, metadata: a }, pi, xi), i(null, null, le, { kind: "field", name: "decalScaleXY", static: !1, private: !1, access: { has: function (e) { return "decalScaleXY" in e; }, get: function (e) { return e.decalScaleXY; }, set: function (e, t) { e.decalScaleXY = t; } }, metadata: a }, Ii, Si), i(null, null, _e, { kind: "field", name: "decalFrontOnly", static: !1, private: !1, access: { has: function (e) { return "decalFrontOnly" in e; }, get: function (e) { return e.decalFrontOnly; }, set: function (e, t) { e.decalFrontOnly = t; } }, metadata: a }, yi, Pi), i(null, null, he, { kind: "field", name: "rimIntensity", static: !1, private: !1, access: { has: function (e) { return "rimIntensity" in e; }, get: function (e) { return e.rimIntensity; }, set: function (e, t) { e.rimIntensity = t; } }, metadata: a }, Bi, Ci), i(null, null, ce, { kind: "field", name: "rimHueShift", static: !1, private: !1, access: { has: function (e) { return "rimHueShift" in e; }, get: function (e) { return e.rimHueShift; }, set: function (e, t) { e.rimHueShift = t; } }, metadata: a }, Ti, Ri), i(null, null, de, { kind: "field", name: "rimSaturationShift", static: !1, private: !1, access: { has: function (e) { return "rimSaturationShift" in e; }, get: function (e) { return e.rimSaturationShift; }, set: function (e, t) { e.rimSaturationShift = t; } }, metadata: a }, wi, ki), i(null, null, ue, { kind: "field", name: "rimValueShift", static: !1, private: !1, access: { has: function (e) { return "rimValueShift" in e; }, get: function (e) { return e.rimValueShift; }, set: function (e, t) { e.rimValueShift = t; } }, metadata: a }, Oi, Mi), i(null, null, fe, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, Fi, Ei), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png", e; })(), li = !1;
7518
7529
  function _i() { li || (li = !0, t.RegisterClass("BABYLON.GUI.MRDLSliderThumbMaterial", ri)); }
7519
7530
  var hi = /** @class */ (function (_super) {
7520
7531
  __extends(hi, _super);
@@ -7525,11 +7536,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7525
7536
  }
7526
7537
  return hi;
7527
7538
  }(t.MaterialDefines));
7528
- var ci = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w = t.PushMaterial, k = [], O = [], M = [], F = [], E = [], D = [], L = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = []; return e = /** @class */ (function (_super) {
7539
+ var ci = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w = t.PushMaterial, k = [], O = [], M = [], F = [], E = [], L = [], D = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = []; return e = /** @class */ (function (_super) {
7529
7540
  __extends(e, _super);
7530
7541
  function e(i, a) {
7531
7542
  var _this = this;
7532
- _this = _super.call(this, i, a) || this, _this.radius = s(_this, k, .3), _this.lineWidth = (s(_this, O), s(_this, M, .003)), _this.absoluteSizes = (s(_this, F), s(_this, E, !1)), _this._filterWidth = (s(_this, D), 1), _this.baseColor = s(_this, L, new t.Color4(0, 0, 0, 1)), _this.lineColor = (s(_this, z), s(_this, N, new t.Color4(.2, .262745, .4, 1))), _this.radiusTopLeft = (s(_this, A), s(_this, V, 1)), _this.radiusTopRight = (s(_this, Q), s(_this, W, 1)), _this.radiusBottomLeft = (s(_this, G), s(_this, H, 1)), _this.radiusBottomRight = (s(_this, U), s(_this, Y, 1)), _this._rate = (s(_this, X), 0), _this.highlightColor = s(_this, j, new t.Color4(.239216, .435294, .827451, 1)), _this.highlightWidth = (s(_this, K), s(_this, Z, 0)), _this._highlightTransform = (s(_this, q), new t.Vector4(1, 1, 0, 0)), _this._highlight = 1, _this.iridescenceIntensity = s(_this, $, .45), _this.iridescenceEdgeIntensity = (s(_this, J), s(_this, ee, 1)), _this.iridescenceTint = (s(_this, te), s(_this, ie, new t.Color4(1, 1, 1, 1))), _this._angle = (s(_this, se), -45), _this.fadeOut = s(_this, ae, 1), _this._reflected = (s(_this, ne), !0), _this._frequency = 1, _this._verticalOffset = 0, _this.gradientColor = s(_this, oe, new t.Color4(.74902, .74902, .74902, 1)), _this.topLeftGradientColor = (s(_this, re), s(_this, le, new t.Color4(.00784314, .294118, .580392, 1))), _this.topRightGradientColor = (s(_this, _e), s(_this, he, new t.Color4(.305882, 0, 1, 1))), _this.bottomLeftGradientColor = (s(_this, ce), s(_this, de, new t.Color4(.133333, .258824, .992157, 1))), _this.bottomRightGradientColor = (s(_this, ue), s(_this, fe, new t.Color4(.176471, .176471, .619608, 1))), _this.edgeWidth = (s(_this, me), s(_this, ge, .5)), _this.edgePower = (s(_this, be), s(_this, ve, 1)), _this.edgeLineGradientBlend = (s(_this, pe), s(_this, xe, .5)), s(_this, Ie), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7543
+ _this = _super.call(this, i, a) || this, _this.radius = s(_this, k, .3), _this.lineWidth = (s(_this, O), s(_this, M, .003)), _this.absoluteSizes = (s(_this, F), s(_this, E, !1)), _this._filterWidth = (s(_this, L), 1), _this.baseColor = s(_this, D, new t.Color4(0, 0, 0, 1)), _this.lineColor = (s(_this, z), s(_this, N, new t.Color4(.2, .262745, .4, 1))), _this.radiusTopLeft = (s(_this, A), s(_this, V, 1)), _this.radiusTopRight = (s(_this, Q), s(_this, W, 1)), _this.radiusBottomLeft = (s(_this, G), s(_this, H, 1)), _this.radiusBottomRight = (s(_this, U), s(_this, Y, 1)), _this._rate = (s(_this, X), 0), _this.highlightColor = s(_this, j, new t.Color4(.239216, .435294, .827451, 1)), _this.highlightWidth = (s(_this, K), s(_this, Z, 0)), _this._highlightTransform = (s(_this, q), new t.Vector4(1, 1, 0, 0)), _this._highlight = 1, _this.iridescenceIntensity = s(_this, $, .45), _this.iridescenceEdgeIntensity = (s(_this, J), s(_this, ee, 1)), _this.iridescenceTint = (s(_this, te), s(_this, ie, new t.Color4(1, 1, 1, 1))), _this._angle = (s(_this, se), -45), _this.fadeOut = s(_this, ae, 1), _this._reflected = (s(_this, ne), !0), _this._frequency = 1, _this._verticalOffset = 0, _this.gradientColor = s(_this, oe, new t.Color4(.74902, .74902, .74902, 1)), _this.topLeftGradientColor = (s(_this, re), s(_this, le, new t.Color4(.00784314, .294118, .580392, 1))), _this.topRightGradientColor = (s(_this, _e), s(_this, he, new t.Color4(.305882, 0, 1, 1))), _this.bottomLeftGradientColor = (s(_this, ce), s(_this, de, new t.Color4(.133333, .258824, .992157, 1))), _this.bottomRightGradientColor = (s(_this, ue), s(_this, fe, new t.Color4(.176471, .176471, .619608, 1))), _this.edgeWidth = (s(_this, me), s(_this, ge, .5)), _this.edgePower = (s(_this, be), s(_this, ve, 1)), _this.edgeLineGradientBlend = (s(_this, pe), s(_this, xe, .5)), s(_this, Ie), _this.alphaMode = t.Constants.ALPHA_DISABLE, _this.backFaceCulling = !1;
7533
7544
  var n = t.Tools.GetAssetUrl(e.IRIDESCENT_MAP_TEXTURE_URL);
7534
7545
  _this._iridescentMapTexture = new t.Texture(n, _this.getScene(), !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
7535
7546
  return _this;
@@ -7553,10 +7564,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7553
7564
  n.markAsProcessed(), o.resetCachedMaterial();
7554
7565
  var e_237 = new t.EffectFallbacks;
7555
7566
  n.FOG && e_237.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, e_237), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
7556
- var s_68 = [t.VertexBuffer.PositionKind];
7557
- n.NORMAL && s_68.push(t.VertexBuffer.NormalKind), n.UV1 && s_68.push(t.VertexBuffer.UVKind), n.UV2 && s_68.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_68.push(t.VertexBuffer.ColorKind), n.TANGENT && s_68.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_68, n);
7567
+ var s_69 = [t.VertexBuffer.PositionKind];
7568
+ n.NORMAL && s_69.push(t.VertexBuffer.NormalKind), n.UV1 && s_69.push(t.VertexBuffer.UVKind), n.UV2 && s_69.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_69.push(t.VertexBuffer.ColorKind), n.TANGENT && s_69.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_69, n);
7558
7569
  var l_22 = "mrdlBackplate", h_12 = n.toString(), c_9 = ["world", "viewProjection", "cameraPosition", "_Radius_", "_Line_Width_", "_Absolute_Sizes_", "_Filter_Width_", "_Base_Color_", "_Line_Color_", "_Radius_Top_Left_", "_Radius_Top_Right_", "_Radius_Bottom_Left_", "_Radius_Bottom_Right_", "_Rate_", "_Highlight_Color_", "_Highlight_Width_", "_Highlight_Transform_", "_Highlight_", "_Iridescence_Intensity_", "_Iridescence_Edge_Intensity_", "_Iridescence_Tint_", "_Iridescent_Map_", "_Angle_", "_Reflected_", "_Frequency_", "_Vertical_Offset_", "_Gradient_Color_", "_Top_Left_", "_Top_Right_", "_Bottom_Left_", "_Bottom_Right_", "_Edge_Width_", "_Edge_Power_", "_Line_Gradient_Blend_", "_Fade_Out_"], d_9 = ["_Iridescent_Map_"], u_8 = [];
7559
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_9, uniformBuffersNames: u_8, samplers: d_9, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_22, { attributes: s_68, uniformsNames: c_9, uniformBuffersNames: u_8, samplers: d_9, defines: h_12, fallbacks: e_237, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7570
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_9, uniformBuffersNames: u_8, samplers: d_9, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_22, { attributes: s_69, uniformsNames: c_9, uniformBuffersNames: u_8, samplers: d_9, defines: h_12, fallbacks: e_237, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7560
7571
  switch (_a.label) {
7561
7572
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return ds; }), Promise.resolve().then(function () { return _s; })])];
7562
7573
  case 1:
@@ -7579,7 +7590,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7579
7590
  e.prototype.getClassName = function () { return "MRDLBackplateMaterial"; };
7580
7591
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
7581
7592
  return e;
7582
- }(w)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = w[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, k, O), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, M, F), i(null, null, r, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: a }, E, D), i(null, null, l, { kind: "field", name: "baseColor", static: !1, private: !1, access: { has: function (e) { return "baseColor" in e; }, get: function (e) { return e.baseColor; }, set: function (e, t) { e.baseColor = t; } }, metadata: a }, L, z), i(null, null, h, { kind: "field", name: "lineColor", static: !1, private: !1, access: { has: function (e) { return "lineColor" in e; }, get: function (e) { return e.lineColor; }, set: function (e, t) { e.lineColor = t; } }, metadata: a }, N, A), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, V, Q), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, W, G), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, H, U), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Y, X), i(null, null, m, { kind: "field", name: "highlightColor", static: !1, private: !1, access: { has: function (e) { return "highlightColor" in e; }, get: function (e) { return e.highlightColor; }, set: function (e, t) { e.highlightColor = t; } }, metadata: a }, j, K), i(null, null, g, { kind: "field", name: "highlightWidth", static: !1, private: !1, access: { has: function (e) { return "highlightWidth" in e; }, get: function (e) { return e.highlightWidth; }, set: function (e, t) { e.highlightWidth = t; } }, metadata: a }, Z, q), i(null, null, b, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, $, J), i(null, null, v, { kind: "field", name: "iridescenceEdgeIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceEdgeIntensity" in e; }, get: function (e) { return e.iridescenceEdgeIntensity; }, set: function (e, t) { e.iridescenceEdgeIntensity = t; } }, metadata: a }, ee, te), i(null, null, p, { kind: "field", name: "iridescenceTint", static: !1, private: !1, access: { has: function (e) { return "iridescenceTint" in e; }, get: function (e) { return e.iridescenceTint; }, set: function (e, t) { e.iridescenceTint = t; } }, metadata: a }, ie, se), i(null, null, x, { kind: "field", name: "fadeOut", static: !1, private: !1, access: { has: function (e) { return "fadeOut" in e; }, get: function (e) { return e.fadeOut; }, set: function (e, t) { e.fadeOut = t; } }, metadata: a }, ae, ne), i(null, null, I, { kind: "field", name: "gradientColor", static: !1, private: !1, access: { has: function (e) { return "gradientColor" in e; }, get: function (e) { return e.gradientColor; }, set: function (e, t) { e.gradientColor = t; } }, metadata: a }, oe, re), i(null, null, S, { kind: "field", name: "topLeftGradientColor", static: !1, private: !1, access: { has: function (e) { return "topLeftGradientColor" in e; }, get: function (e) { return e.topLeftGradientColor; }, set: function (e, t) { e.topLeftGradientColor = t; } }, metadata: a }, le, _e), i(null, null, y, { kind: "field", name: "topRightGradientColor", static: !1, private: !1, access: { has: function (e) { return "topRightGradientColor" in e; }, get: function (e) { return e.topRightGradientColor; }, set: function (e, t) { e.topRightGradientColor = t; } }, metadata: a }, he, ce), i(null, null, P, { kind: "field", name: "bottomLeftGradientColor", static: !1, private: !1, access: { has: function (e) { return "bottomLeftGradientColor" in e; }, get: function (e) { return e.bottomLeftGradientColor; }, set: function (e, t) { e.bottomLeftGradientColor = t; } }, metadata: a }, de, ue), i(null, null, B, { kind: "field", name: "bottomRightGradientColor", static: !1, private: !1, access: { has: function (e) { return "bottomRightGradientColor" in e; }, get: function (e) { return e.bottomRightGradientColor; }, set: function (e, t) { e.bottomRightGradientColor = t; } }, metadata: a }, fe, me), i(null, null, C, { kind: "field", name: "edgeWidth", static: !1, private: !1, access: { has: function (e) { return "edgeWidth" in e; }, get: function (e) { return e.edgeWidth; }, set: function (e, t) { e.edgeWidth = t; } }, metadata: a }, ge, be), i(null, null, T, { kind: "field", name: "edgePower", static: !1, private: !1, access: { has: function (e) { return "edgePower" in e; }, get: function (e) { return e.edgePower; }, set: function (e, t) { e.edgePower = t; } }, metadata: a }, ve, pe), i(null, null, R, { kind: "field", name: "edgeLineGradientBlend", static: !1, private: !1, access: { has: function (e) { return "edgeLineGradientBlend" in e; }, get: function (e) { return e.edgeLineGradientBlend; }, set: function (e, t) { e.edgeLineGradientBlend = t; } }, metadata: a }, xe, Ie), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.IRIDESCENT_MAP_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-backplate-iridescence.png", e; })(), di = !1;
7593
+ }(w)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = w[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, k, O), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, M, F), i(null, null, r, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: a }, E, L), i(null, null, l, { kind: "field", name: "baseColor", static: !1, private: !1, access: { has: function (e) { return "baseColor" in e; }, get: function (e) { return e.baseColor; }, set: function (e, t) { e.baseColor = t; } }, metadata: a }, D, z), i(null, null, h, { kind: "field", name: "lineColor", static: !1, private: !1, access: { has: function (e) { return "lineColor" in e; }, get: function (e) { return e.lineColor; }, set: function (e, t) { e.lineColor = t; } }, metadata: a }, N, A), i(null, null, c, { kind: "field", name: "radiusTopLeft", static: !1, private: !1, access: { has: function (e) { return "radiusTopLeft" in e; }, get: function (e) { return e.radiusTopLeft; }, set: function (e, t) { e.radiusTopLeft = t; } }, metadata: a }, V, Q), i(null, null, d, { kind: "field", name: "radiusTopRight", static: !1, private: !1, access: { has: function (e) { return "radiusTopRight" in e; }, get: function (e) { return e.radiusTopRight; }, set: function (e, t) { e.radiusTopRight = t; } }, metadata: a }, W, G), i(null, null, u, { kind: "field", name: "radiusBottomLeft", static: !1, private: !1, access: { has: function (e) { return "radiusBottomLeft" in e; }, get: function (e) { return e.radiusBottomLeft; }, set: function (e, t) { e.radiusBottomLeft = t; } }, metadata: a }, H, U), i(null, null, f, { kind: "field", name: "radiusBottomRight", static: !1, private: !1, access: { has: function (e) { return "radiusBottomRight" in e; }, get: function (e) { return e.radiusBottomRight; }, set: function (e, t) { e.radiusBottomRight = t; } }, metadata: a }, Y, X), i(null, null, m, { kind: "field", name: "highlightColor", static: !1, private: !1, access: { has: function (e) { return "highlightColor" in e; }, get: function (e) { return e.highlightColor; }, set: function (e, t) { e.highlightColor = t; } }, metadata: a }, j, K), i(null, null, g, { kind: "field", name: "highlightWidth", static: !1, private: !1, access: { has: function (e) { return "highlightWidth" in e; }, get: function (e) { return e.highlightWidth; }, set: function (e, t) { e.highlightWidth = t; } }, metadata: a }, Z, q), i(null, null, b, { kind: "field", name: "iridescenceIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceIntensity" in e; }, get: function (e) { return e.iridescenceIntensity; }, set: function (e, t) { e.iridescenceIntensity = t; } }, metadata: a }, $, J), i(null, null, v, { kind: "field", name: "iridescenceEdgeIntensity", static: !1, private: !1, access: { has: function (e) { return "iridescenceEdgeIntensity" in e; }, get: function (e) { return e.iridescenceEdgeIntensity; }, set: function (e, t) { e.iridescenceEdgeIntensity = t; } }, metadata: a }, ee, te), i(null, null, p, { kind: "field", name: "iridescenceTint", static: !1, private: !1, access: { has: function (e) { return "iridescenceTint" in e; }, get: function (e) { return e.iridescenceTint; }, set: function (e, t) { e.iridescenceTint = t; } }, metadata: a }, ie, se), i(null, null, x, { kind: "field", name: "fadeOut", static: !1, private: !1, access: { has: function (e) { return "fadeOut" in e; }, get: function (e) { return e.fadeOut; }, set: function (e, t) { e.fadeOut = t; } }, metadata: a }, ae, ne), i(null, null, I, { kind: "field", name: "gradientColor", static: !1, private: !1, access: { has: function (e) { return "gradientColor" in e; }, get: function (e) { return e.gradientColor; }, set: function (e, t) { e.gradientColor = t; } }, metadata: a }, oe, re), i(null, null, S, { kind: "field", name: "topLeftGradientColor", static: !1, private: !1, access: { has: function (e) { return "topLeftGradientColor" in e; }, get: function (e) { return e.topLeftGradientColor; }, set: function (e, t) { e.topLeftGradientColor = t; } }, metadata: a }, le, _e), i(null, null, y, { kind: "field", name: "topRightGradientColor", static: !1, private: !1, access: { has: function (e) { return "topRightGradientColor" in e; }, get: function (e) { return e.topRightGradientColor; }, set: function (e, t) { e.topRightGradientColor = t; } }, metadata: a }, he, ce), i(null, null, P, { kind: "field", name: "bottomLeftGradientColor", static: !1, private: !1, access: { has: function (e) { return "bottomLeftGradientColor" in e; }, get: function (e) { return e.bottomLeftGradientColor; }, set: function (e, t) { e.bottomLeftGradientColor = t; } }, metadata: a }, de, ue), i(null, null, B, { kind: "field", name: "bottomRightGradientColor", static: !1, private: !1, access: { has: function (e) { return "bottomRightGradientColor" in e; }, get: function (e) { return e.bottomRightGradientColor; }, set: function (e, t) { e.bottomRightGradientColor = t; } }, metadata: a }, fe, me), i(null, null, C, { kind: "field", name: "edgeWidth", static: !1, private: !1, access: { has: function (e) { return "edgeWidth" in e; }, get: function (e) { return e.edgeWidth; }, set: function (e, t) { e.edgeWidth = t; } }, metadata: a }, ge, be), i(null, null, T, { kind: "field", name: "edgePower", static: !1, private: !1, access: { has: function (e) { return "edgePower" in e; }, get: function (e) { return e.edgePower; }, set: function (e, t) { e.edgePower = t; } }, metadata: a }, ve, pe), i(null, null, R, { kind: "field", name: "edgeLineGradientBlend", static: !1, private: !1, access: { has: function (e) { return "edgeLineGradientBlend" in e; }, get: function (e) { return e.edgeLineGradientBlend; }, set: function (e, t) { e.edgeLineGradientBlend = t; } }, metadata: a }, xe, Ie), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.IRIDESCENT_MAP_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-backplate-iridescence.png", e; })(), di = !1;
7583
7594
  function ui() { di || (di = !0, t.RegisterClass("BABYLON.GUI.MRDLBackplateMaterial", ci)); }
7584
7595
  var fi = /** @class */ (function (_super) {
7585
7596
  __extends(fi, _super);
@@ -7671,8 +7682,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7671
7682
  var e_238, _a, e_239, _b;
7672
7683
  try {
7673
7684
  for (var _c = __values(e.meshes), _d = _c.next(); !_d.done; _d = _c.next()) {
7674
- var t_120 = _d.value;
7675
- t_120.isPickable = !1;
7685
+ var t_119 = _d.value;
7686
+ t_119.isPickable = !1;
7676
7687
  }
7677
7688
  }
7678
7689
  catch (e_238_1) { e_238 = { error: e_238_1 }; }
@@ -7686,15 +7697,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7686
7697
  s.visibility = 0, _this._sliderBackplateVisible && (s.visibility = 1, s.name = "".concat(_this.name, "_sliderbackplate"), s.scaling.x = 1, s.scaling.z = .2, s.parent = i, _this._sliderBackplateMaterial && (s.material = _this._sliderBackplateMaterial), _this._sliderBackplate = s), a && (a.parent = i, a.position.z = -.1, a.scaling = new t.Vector3(.8, .04, .3), _this._sliderBarMaterial && (a.material = _this._sliderBarMaterial), _this._sliderBar = a), n && (n.parent = i, n.isPickable = !0, n.position.z = -.115, n.scaling = new t.Vector3(.025, .3, .6), n.position.x = _this._convertToPosition(_this.value), n.addBehavior(_this._createBehavior()), _this._sliderThumbMaterial && (n.material = _this._sliderThumbMaterial), _this._sliderThumb = n), _this._injectGUI3DReservedDataStore(i).control = _this;
7687
7698
  var o = i.getChildMeshes();
7688
7699
  try {
7689
- for (var o_30 = __values(o), o_30_1 = o_30.next(); !o_30_1.done; o_30_1 = o_30.next()) {
7690
- var e_240 = o_30_1.value;
7700
+ for (var o_31 = __values(o), o_31_1 = o_31.next(); !o_31_1.done; o_31_1 = o_31.next()) {
7701
+ var e_240 = o_31_1.value;
7691
7702
  _this._injectGUI3DReservedDataStore(e_240).control = _this;
7692
7703
  }
7693
7704
  }
7694
7705
  catch (e_239_1) { e_239 = { error: e_239_1 }; }
7695
7706
  finally {
7696
7707
  try {
7697
- if (o_30_1 && !o_30_1.done && (_b = o_30.return)) _b.call(o_30);
7708
+ if (o_31_1 && !o_31_1.done && (_b = o_31.return)) _b.call(o_31);
7698
7709
  }
7699
7710
  finally { if (e_239) throw e_239.error; }
7700
7711
  }
@@ -7765,11 +7776,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7765
7776
  var a = [], n = t.Matrix.Invert(this.node.computeWorldMatrix(!0));
7766
7777
  try {
7767
7778
  for (var _c = __values(this._children), _d = _c.next(); !_d.done; _d = _c.next()) {
7768
- var o_31 = _d.value;
7769
- if (!o_31.mesh)
7779
+ var o_32 = _d.value;
7780
+ if (!o_32.mesh)
7770
7781
  continue;
7771
- s++, o_31.mesh.computeWorldMatrix(!0), o_31.mesh.getWorldMatrix().multiplyToRef(n, t.TmpVectors.Matrix[0]);
7772
- var r_19 = o_31.mesh.getBoundingInfo().boundingBox, l_23 = t.Vector3.TransformNormal(r_19.extendSize, t.TmpVectors.Matrix[0]);
7782
+ s++, o_32.mesh.computeWorldMatrix(!0), o_32.mesh.getWorldMatrix().multiplyToRef(n, t.TmpVectors.Matrix[0]);
7783
+ var r_20 = o_32.mesh.getBoundingInfo().boundingBox, l_23 = t.Vector3.TransformNormal(r_20.extendSize, t.TmpVectors.Matrix[0]);
7773
7784
  a.push(l_23), this._isVertical ? i += l_23.y : e += l_23.x;
7774
7785
  }
7775
7786
  }
@@ -7789,8 +7800,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7789
7800
  if (!e_243.mesh)
7790
7801
  continue;
7791
7802
  s--;
7792
- var t_121 = a[r++];
7793
- this._isVertical ? (e_243.position.y = o + t_121.y, e_243.position.x = 0, o += 2 * t_121.y) : (e_243.position.x = o + t_121.x, e_243.position.y = 0, o += 2 * t_121.x), o += s > 0 ? this.margin : 0;
7803
+ var t_120 = a[r++];
7804
+ this._isVertical ? (e_243.position.y = o + t_120.y, e_243.position.x = 0, o += 2 * t_120.y) : (e_243.position.x = o + t_120.x, e_243.position.y = 0, o += 2 * t_120.x), o += s > 0 ? this.margin : 0;
7794
7805
  }
7795
7806
  }
7796
7807
  catch (e_242_1) { e_242 = { error: e_242_1 }; }
@@ -7816,8 +7827,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7816
7827
  var e = this._currentMesh.getChildMeshes();
7817
7828
  try {
7818
7829
  for (var e_245 = __values(e), e_245_1 = e_245.next(); !e_245_1.done; e_245_1 = e_245.next()) {
7819
- var t_122 = e_245_1.value;
7820
- this._injectGUI3DReservedDataStore(t_122).control = this;
7830
+ var t_121 = e_245_1.value;
7831
+ this._injectGUI3DReservedDataStore(t_121).control = this;
7821
7832
  }
7822
7833
  }
7823
7834
  catch (e_244_1) { e_244 = { error: e_244_1 }; }
@@ -7841,11 +7852,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7841
7852
  }
7842
7853
  return vi;
7843
7854
  }(t.MaterialDefines));
7844
- var pi = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x = t.PushMaterial, I = [], S = [], y = [], P = [], B = [], C = [], T = [], R = [], w = [], k = [], O = [], M = [], F = [], E = [], D = [], L = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = []; return e = /** @class */ (function (_super) {
7855
+ var pi = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x = t.PushMaterial, I = [], S = [], y = [], P = [], B = [], C = [], T = [], R = [], w = [], k = [], O = [], M = [], F = [], E = [], L = [], D = [], z = [], N = [], A = [], V = [], Q = [], W = [], G = [], H = [], U = [], Y = [], X = [], j = []; return e = /** @class */ (function (_super) {
7845
7856
  __extends(e, _super);
7846
7857
  function e(e, i) {
7847
7858
  var _this = this;
7848
- _this = _super.call(this, e, i) || this, _this.bevelRadius = s(_this, I, .16), _this.lineWidth = (s(_this, S), s(_this, y, .16)), _this.absoluteSizes = (s(_this, P), s(_this, B, !1)), _this.tuningMotion = (s(_this, C), s(_this, T, 0)), _this.motion = (s(_this, R), s(_this, w, 1)), _this.maxIntensity = (s(_this, k), s(_this, O, .7)), _this.intensityFadeInExponent = (s(_this, M), s(_this, F, 2)), _this.outerFuzzStart = (s(_this, E), s(_this, D, .04)), _this.outerFuzzEnd = (s(_this, L), s(_this, z, .04)), _this.color = (s(_this, N), s(_this, A, new t.Color4(.682353, .698039, 1, 1))), _this.innerColor = (s(_this, V), s(_this, Q, new t.Color4(.356863, .392157, .796078, 1))), _this.blendExponent = (s(_this, W), s(_this, G, 1.5)), _this.falloff = (s(_this, H), s(_this, U, 2)), _this.bias = (s(_this, Y), s(_this, X, .5)), s(_this, j), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1;
7859
+ _this = _super.call(this, e, i) || this, _this.bevelRadius = s(_this, I, .16), _this.lineWidth = (s(_this, S), s(_this, y, .16)), _this.absoluteSizes = (s(_this, P), s(_this, B, !1)), _this.tuningMotion = (s(_this, C), s(_this, T, 0)), _this.motion = (s(_this, R), s(_this, w, 1)), _this.maxIntensity = (s(_this, k), s(_this, O, .7)), _this.intensityFadeInExponent = (s(_this, M), s(_this, F, 2)), _this.outerFuzzStart = (s(_this, E), s(_this, L, .04)), _this.outerFuzzEnd = (s(_this, D), s(_this, z, .04)), _this.color = (s(_this, N), s(_this, A, new t.Color4(.682353, .698039, 1, 1))), _this.innerColor = (s(_this, V), s(_this, Q, new t.Color4(.356863, .392157, .796078, 1))), _this.blendExponent = (s(_this, W), s(_this, G, 1.5)), _this.falloff = (s(_this, H), s(_this, U, 2)), _this.bias = (s(_this, Y), s(_this, X, .5)), s(_this, j), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1;
7849
7860
  return _this;
7850
7861
  }
7851
7862
  e.prototype.needAlphaBlending = function () { return !0; };
@@ -7865,10 +7876,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7865
7876
  n.markAsProcessed(), o.resetCachedMaterial();
7866
7877
  var e_246 = new t.EffectFallbacks;
7867
7878
  n.FOG && e_246.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, e_246), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
7868
- var s_69 = [t.VertexBuffer.PositionKind];
7869
- n.NORMAL && s_69.push(t.VertexBuffer.NormalKind), n.UV1 && s_69.push(t.VertexBuffer.UVKind), n.UV2 && s_69.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_69.push(t.VertexBuffer.ColorKind), n.TANGENT && s_69.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_69, n);
7879
+ var s_70 = [t.VertexBuffer.PositionKind];
7880
+ n.NORMAL && s_70.push(t.VertexBuffer.NormalKind), n.UV1 && s_70.push(t.VertexBuffer.UVKind), n.UV2 && s_70.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_70.push(t.VertexBuffer.ColorKind), n.TANGENT && s_70.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_70, n);
7870
7881
  var l_24 = "mrdlBackglow", h_13 = n.toString(), c_10 = ["world", "worldView", "worldViewProjection", "view", "projection", "viewProjection", "cameraPosition", "_Bevel_Radius_", "_Line_Width_", "_Absolute_Sizes_", "_Tuning_Motion_", "_Motion_", "_Max_Intensity_", "_Intensity_Fade_In_Exponent_", "_Outer_Fuzz_Start_", "_Outer_Fuzz_End_", "_Color_", "_Inner_Color_", "_Blend_Exponent_", "_Falloff_", "_Bias_"], d_10 = [], u_9 = [];
7871
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_10, uniformBuffersNames: u_9, samplers: d_10, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_24, { attributes: s_69, uniformsNames: c_10, uniformBuffersNames: u_9, samplers: d_10, defines: h_13, fallbacks: e_246, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7882
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_10, uniformBuffersNames: u_9, samplers: d_10, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_24, { attributes: s_70, uniformsNames: c_10, uniformBuffersNames: u_9, samplers: d_10, defines: h_13, fallbacks: e_246, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7872
7883
  switch (_a.label) {
7873
7884
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return Ws; }), Promise.resolve().then(function () { return Us; })])];
7874
7885
  case 1:
@@ -7891,7 +7902,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7891
7902
  e.prototype.getClassName = function () { return "MRDLBackglowMaterial"; };
7892
7903
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
7893
7904
  return e;
7894
- }(x)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = x[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], i(null, null, n, { kind: "field", name: "bevelRadius", static: !1, private: !1, access: { has: function (e) { return "bevelRadius" in e; }, get: function (e) { return e.bevelRadius; }, set: function (e, t) { e.bevelRadius = t; } }, metadata: a }, I, S), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, y, P), i(null, null, r, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: a }, B, C), i(null, null, l, { kind: "field", name: "tuningMotion", static: !1, private: !1, access: { has: function (e) { return "tuningMotion" in e; }, get: function (e) { return e.tuningMotion; }, set: function (e, t) { e.tuningMotion = t; } }, metadata: a }, T, R), i(null, null, h, { kind: "field", name: "motion", static: !1, private: !1, access: { has: function (e) { return "motion" in e; }, get: function (e) { return e.motion; }, set: function (e, t) { e.motion = t; } }, metadata: a }, w, k), i(null, null, c, { kind: "field", name: "maxIntensity", static: !1, private: !1, access: { has: function (e) { return "maxIntensity" in e; }, get: function (e) { return e.maxIntensity; }, set: function (e, t) { e.maxIntensity = t; } }, metadata: a }, O, M), i(null, null, d, { kind: "field", name: "intensityFadeInExponent", static: !1, private: !1, access: { has: function (e) { return "intensityFadeInExponent" in e; }, get: function (e) { return e.intensityFadeInExponent; }, set: function (e, t) { e.intensityFadeInExponent = t; } }, metadata: a }, F, E), i(null, null, u, { kind: "field", name: "outerFuzzStart", static: !1, private: !1, access: { has: function (e) { return "outerFuzzStart" in e; }, get: function (e) { return e.outerFuzzStart; }, set: function (e, t) { e.outerFuzzStart = t; } }, metadata: a }, D, L), i(null, null, f, { kind: "field", name: "outerFuzzEnd", static: !1, private: !1, access: { has: function (e) { return "outerFuzzEnd" in e; }, get: function (e) { return e.outerFuzzEnd; }, set: function (e, t) { e.outerFuzzEnd = t; } }, metadata: a }, z, N), i(null, null, m, { kind: "field", name: "color", static: !1, private: !1, access: { has: function (e) { return "color" in e; }, get: function (e) { return e.color; }, set: function (e, t) { e.color = t; } }, metadata: a }, A, V), i(null, null, g, { kind: "field", name: "innerColor", static: !1, private: !1, access: { has: function (e) { return "innerColor" in e; }, get: function (e) { return e.innerColor; }, set: function (e, t) { e.innerColor = t; } }, metadata: a }, Q, W), i(null, null, b, { kind: "field", name: "blendExponent", static: !1, private: !1, access: { has: function (e) { return "blendExponent" in e; }, get: function (e) { return e.blendExponent; }, set: function (e, t) { e.blendExponent = t; } }, metadata: a }, G, H), i(null, null, v, { kind: "field", name: "falloff", static: !1, private: !1, access: { has: function (e) { return "falloff" in e; }, get: function (e) { return e.falloff; }, set: function (e, t) { e.falloff = t; } }, metadata: a }, U, Y), i(null, null, p, { kind: "field", name: "bias", static: !1, private: !1, access: { has: function (e) { return "bias" in e; }, get: function (e) { return e.bias; }, set: function (e, t) { e.bias = t; } }, metadata: a }, X, j), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e; })();
7905
+ }(x)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = x[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], i(null, null, n, { kind: "field", name: "bevelRadius", static: !1, private: !1, access: { has: function (e) { return "bevelRadius" in e; }, get: function (e) { return e.bevelRadius; }, set: function (e, t) { e.bevelRadius = t; } }, metadata: a }, I, S), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, y, P), i(null, null, r, { kind: "field", name: "absoluteSizes", static: !1, private: !1, access: { has: function (e) { return "absoluteSizes" in e; }, get: function (e) { return e.absoluteSizes; }, set: function (e, t) { e.absoluteSizes = t; } }, metadata: a }, B, C), i(null, null, l, { kind: "field", name: "tuningMotion", static: !1, private: !1, access: { has: function (e) { return "tuningMotion" in e; }, get: function (e) { return e.tuningMotion; }, set: function (e, t) { e.tuningMotion = t; } }, metadata: a }, T, R), i(null, null, h, { kind: "field", name: "motion", static: !1, private: !1, access: { has: function (e) { return "motion" in e; }, get: function (e) { return e.motion; }, set: function (e, t) { e.motion = t; } }, metadata: a }, w, k), i(null, null, c, { kind: "field", name: "maxIntensity", static: !1, private: !1, access: { has: function (e) { return "maxIntensity" in e; }, get: function (e) { return e.maxIntensity; }, set: function (e, t) { e.maxIntensity = t; } }, metadata: a }, O, M), i(null, null, d, { kind: "field", name: "intensityFadeInExponent", static: !1, private: !1, access: { has: function (e) { return "intensityFadeInExponent" in e; }, get: function (e) { return e.intensityFadeInExponent; }, set: function (e, t) { e.intensityFadeInExponent = t; } }, metadata: a }, F, E), i(null, null, u, { kind: "field", name: "outerFuzzStart", static: !1, private: !1, access: { has: function (e) { return "outerFuzzStart" in e; }, get: function (e) { return e.outerFuzzStart; }, set: function (e, t) { e.outerFuzzStart = t; } }, metadata: a }, L, D), i(null, null, f, { kind: "field", name: "outerFuzzEnd", static: !1, private: !1, access: { has: function (e) { return "outerFuzzEnd" in e; }, get: function (e) { return e.outerFuzzEnd; }, set: function (e, t) { e.outerFuzzEnd = t; } }, metadata: a }, z, N), i(null, null, m, { kind: "field", name: "color", static: !1, private: !1, access: { has: function (e) { return "color" in e; }, get: function (e) { return e.color; }, set: function (e, t) { e.color = t; } }, metadata: a }, A, V), i(null, null, g, { kind: "field", name: "innerColor", static: !1, private: !1, access: { has: function (e) { return "innerColor" in e; }, get: function (e) { return e.innerColor; }, set: function (e, t) { e.innerColor = t; } }, metadata: a }, Q, W), i(null, null, b, { kind: "field", name: "blendExponent", static: !1, private: !1, access: { has: function (e) { return "blendExponent" in e; }, get: function (e) { return e.blendExponent; }, set: function (e, t) { e.blendExponent = t; } }, metadata: a }, G, H), i(null, null, v, { kind: "field", name: "falloff", static: !1, private: !1, access: { has: function (e) { return "falloff" in e; }, get: function (e) { return e.falloff; }, set: function (e, t) { e.falloff = t; } }, metadata: a }, U, Y), i(null, null, p, { kind: "field", name: "bias", static: !1, private: !1, access: { has: function (e) { return "bias" in e; }, get: function (e) { return e.bias; }, set: function (e, t) { e.bias = t; } }, metadata: a }, X, j), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e; })();
7895
7906
  var xi = /** @class */ (function (_super) {
7896
7907
  __extends(xi, _super);
7897
7908
  function xi() {
@@ -7901,11 +7912,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7901
7912
  }
7902
7913
  return xi;
7903
7914
  }(t.MaterialDefines));
7904
- var Ii = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, D, L, z, N, A, V, Q, W = t.PushMaterial, G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], De = [], Le = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = []; return e = /** @class */ (function (_super) {
7915
+ var Ii = (function () { var e; var n, o, r, l, h, c, d, u, f, m, g, b, v, p, x, I, S, y, P, B, C, T, R, w, k, O, M, F, E, L, D, z, N, A, V, Q, W = t.PushMaterial, G = [], H = [], U = [], Y = [], X = [], j = [], K = [], Z = [], q = [], $ = [], J = [], ee = [], te = [], ie = [], se = [], ae = [], ne = [], oe = [], re = [], le = [], _e = [], he = [], ce = [], de = [], ue = [], fe = [], me = [], ge = [], be = [], ve = [], pe = [], xe = [], Ie = [], Se = [], ye = [], Pe = [], Be = [], Ce = [], Te = [], Re = [], we = [], ke = [], Oe = [], Me = [], Fe = [], Ee = [], Le = [], De = [], ze = [], Ne = [], Ae = [], Ve = [], Qe = [], We = [], Ge = [], He = [], Ue = [], Ye = [], Xe = [], je = [], Ke = [], Ze = [], qe = [], $e = [], Je = [], et = [], tt = [], it = [], st = [], at = [], nt = [], ot = []; return e = /** @class */ (function (_super) {
7905
7916
  __extends(e, _super);
7906
7917
  function e(i, a) {
7907
7918
  var _this = this;
7908
- _this = _super.call(this, i, a) || this, _this.radius = s(_this, G, .12), _this.lineWidth = (s(_this, H), s(_this, U, .01)), _this.relativeToHeight = (s(_this, Y), s(_this, X, !1)), _this._filterWidth = (s(_this, j), 1), _this.edgeColor = s(_this, K, new t.Color4(.53, .53, .53, 1)), _this.blobEnable = (s(_this, Z), s(_this, q, !0)), _this.blobPosition = (s(_this, $), s(_this, J, new t.Vector3(100, 100, 100))), _this.blobIntensity = (s(_this, ee), s(_this, te, .5)), _this.blobNearSize = (s(_this, ie), s(_this, se, .032)), _this.blobFarSize = (s(_this, ae), s(_this, ne, .048)), _this.blobNearDistance = (s(_this, oe), s(_this, re, .008)), _this.blobFarDistance = (s(_this, le), s(_this, _e, .064)), _this.blobFadeLength = (s(_this, he), s(_this, ce, .04)), _this.blobInnerFade = (s(_this, de), s(_this, ue, .01)), _this.blobPulse = (s(_this, fe), s(_this, me, 0)), _this.blobFade = (s(_this, ge), s(_this, be, 1)), _this.blobPulseMaxSize = (s(_this, ve), s(_this, pe, .05)), _this.blobEnable2 = (s(_this, xe), s(_this, Ie, !0)), _this.blobPosition2 = (s(_this, Se), s(_this, ye, new t.Vector3(10, 10.1, -.6))), _this.blobNearSize2 = (s(_this, Pe), s(_this, Be, .008)), _this.blobInnerFade2 = (s(_this, Ce), s(_this, Te, .1)), _this.blobPulse2 = (s(_this, Re), s(_this, we, 0)), _this.blobFade2 = (s(_this, ke), s(_this, Oe, 1)), _this.gazeIntensity = (s(_this, Me), s(_this, Fe, .8)), _this.gazeFocus = (s(_this, Ee), s(_this, De, 0)), _this.selectionFuzz = (s(_this, Le), s(_this, ze, .5)), _this.selected = (s(_this, Ne), s(_this, Ae, 1)), _this.selectionFade = (s(_this, Ve), s(_this, Qe, .2)), _this.selectionFadeSize = (s(_this, We), s(_this, Ge, 0)), _this.selectedDistance = (s(_this, He), s(_this, Ue, .08)), _this.selectedFadeLength = (s(_this, Ye), s(_this, Xe, .08)), _this.proximityMaxIntensity = (s(_this, je), s(_this, Ke, .45)), _this.proximityFarDistance = (s(_this, Ze), s(_this, qe, .16)), _this.proximityNearRadius = (s(_this, $e), s(_this, Je, .016)), _this.proximityAnisotropy = (s(_this, et), s(_this, tt, 1)), _this.useGlobalLeftIndex = (s(_this, it), s(_this, st, !0)), _this.useGlobalRightIndex = (s(_this, at), s(_this, nt, !0)), _this.fadeOut = (s(_this, ot), 1), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1, _this._blobTexture = new t.Texture(e.BLOB_TEXTURE_URL, a, !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
7919
+ _this = _super.call(this, i, a) || this, _this.radius = s(_this, G, .12), _this.lineWidth = (s(_this, H), s(_this, U, .01)), _this.relativeToHeight = (s(_this, Y), s(_this, X, !1)), _this._filterWidth = (s(_this, j), 1), _this.edgeColor = s(_this, K, new t.Color4(.53, .53, .53, 1)), _this.blobEnable = (s(_this, Z), s(_this, q, !0)), _this.blobPosition = (s(_this, $), s(_this, J, new t.Vector3(100, 100, 100))), _this.blobIntensity = (s(_this, ee), s(_this, te, .5)), _this.blobNearSize = (s(_this, ie), s(_this, se, .032)), _this.blobFarSize = (s(_this, ae), s(_this, ne, .048)), _this.blobNearDistance = (s(_this, oe), s(_this, re, .008)), _this.blobFarDistance = (s(_this, le), s(_this, _e, .064)), _this.blobFadeLength = (s(_this, he), s(_this, ce, .04)), _this.blobInnerFade = (s(_this, de), s(_this, ue, .01)), _this.blobPulse = (s(_this, fe), s(_this, me, 0)), _this.blobFade = (s(_this, ge), s(_this, be, 1)), _this.blobPulseMaxSize = (s(_this, ve), s(_this, pe, .05)), _this.blobEnable2 = (s(_this, xe), s(_this, Ie, !0)), _this.blobPosition2 = (s(_this, Se), s(_this, ye, new t.Vector3(10, 10.1, -.6))), _this.blobNearSize2 = (s(_this, Pe), s(_this, Be, .008)), _this.blobInnerFade2 = (s(_this, Ce), s(_this, Te, .1)), _this.blobPulse2 = (s(_this, Re), s(_this, we, 0)), _this.blobFade2 = (s(_this, ke), s(_this, Oe, 1)), _this.gazeIntensity = (s(_this, Me), s(_this, Fe, .8)), _this.gazeFocus = (s(_this, Ee), s(_this, Le, 0)), _this.selectionFuzz = (s(_this, De), s(_this, ze, .5)), _this.selected = (s(_this, Ne), s(_this, Ae, 1)), _this.selectionFade = (s(_this, Ve), s(_this, Qe, .2)), _this.selectionFadeSize = (s(_this, We), s(_this, Ge, 0)), _this.selectedDistance = (s(_this, He), s(_this, Ue, .08)), _this.selectedFadeLength = (s(_this, Ye), s(_this, Xe, .08)), _this.proximityMaxIntensity = (s(_this, je), s(_this, Ke, .45)), _this.proximityFarDistance = (s(_this, Ze), s(_this, qe, .16)), _this.proximityNearRadius = (s(_this, $e), s(_this, Je, .016)), _this.proximityAnisotropy = (s(_this, et), s(_this, tt, 1)), _this.useGlobalLeftIndex = (s(_this, it), s(_this, st, !0)), _this.useGlobalRightIndex = (s(_this, at), s(_this, nt, !0)), _this.fadeOut = (s(_this, ot), 1), _this.alphaMode = t.Constants.ALPHA_ADD, _this.disableDepthWrite = !0, _this.backFaceCulling = !1, _this._blobTexture = new t.Texture(e.BLOB_TEXTURE_URL, a, !0, !1, t.Texture.NEAREST_SAMPLINGMODE);
7909
7920
  return _this;
7910
7921
  }
7911
7922
  e.prototype.needAlphaBlending = function () { return !0; };
@@ -7927,10 +7938,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7927
7938
  o.markAsProcessed(), r.resetCachedMaterial();
7928
7939
  var e_247 = new t.EffectFallbacks;
7929
7940
  o.FOG && e_247.addFallback(1, "FOG"), t.HandleFallbacksForShadows(o, e_247), o.IMAGEPROCESSINGPOSTPROCESS = r.imageProcessingConfiguration.applyByPostProcess;
7930
- var i_94 = [t.VertexBuffer.PositionKind];
7931
- o.NORMAL && i_94.push(t.VertexBuffer.NormalKind), o.UV1 && i_94.push(t.VertexBuffer.UVKind), o.UV2 && i_94.push(t.VertexBuffer.UV2Kind), o.VERTEXCOLOR && i_94.push(t.VertexBuffer.ColorKind), o.TANGENT && i_94.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(i_94, o);
7941
+ var i_95 = [t.VertexBuffer.PositionKind];
7942
+ o.NORMAL && i_95.push(t.VertexBuffer.NormalKind), o.UV1 && i_95.push(t.VertexBuffer.UVKind), o.UV2 && i_95.push(t.VertexBuffer.UV2Kind), o.VERTEXCOLOR && i_95.push(t.VertexBuffer.ColorKind), o.TANGENT && i_95.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(i_95, o);
7932
7943
  var n_34 = "mrdlFrontplate", h_14 = o.toString(), c_11 = ["world", "worldView", "worldViewProjection", "view", "projection", "viewProjection", "cameraPosition", "_Radius_", "_Line_Width_", "_Relative_To_Height_", "_Filter_Width_", "_Edge_Color_", "_Fade_Out_", "_Smooth_Edges_", "_Blob_Enable_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Inner_Fade_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Pulse_Max_Size_", "_Blob_Enable_2_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Inner_Fade_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Gaze_Intensity_", "_Gaze_Focus_", "_Blob_Texture_", "_Selection_Fuzz_", "_Selected_", "_Selection_Fade_", "_Selection_Fade_Size_", "_Selected_Distance_", "_Selected_Fade_Length_", "_Proximity_Max_Intensity_", "_Proximity_Far_Distance_", "_Proximity_Near_Radius_", "_Proximity_Anisotropy_", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "_Use_Global_Left_Index_", "_Use_Global_Right_Index_"], d_11 = [], u_10 = [];
7933
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_11, uniformBuffersNames: u_10, samplers: d_11, defines: o, maxSimultaneousLights: 4 }), s.setEffect(r.getEngine().createEffect(n_34, { attributes: i_94, uniformsNames: c_11, uniformBuffersNames: u_10, samplers: d_11, defines: h_14, fallbacks: e_247, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7944
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_11, uniformBuffersNames: u_10, samplers: d_11, defines: o, maxSimultaneousLights: 4 }), s.setEffect(r.getEngine().createEffect(n_34, { attributes: i_95, uniformsNames: c_11, uniformBuffersNames: u_10, samplers: d_11, defines: h_14, fallbacks: e_247, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7934
7945
  switch (_a.label) {
7935
7946
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return js; }), Promise.resolve().then(function () { return qs; })])];
7936
7947
  case 1:
@@ -7953,7 +7964,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7953
7964
  e.prototype.getClassName = function () { return "MRDLFrontplateMaterial"; };
7954
7965
  e.Parse = function (i, s, a) { return t.SerializationHelper.Parse(function () { return new e(i.name, s); }, i, s, a); };
7955
7966
  return e;
7956
- }(W)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = W[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], D = [t.serialize()], L = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, G, H), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, U, Y), i(null, null, r, { kind: "field", name: "relativeToHeight", static: !1, private: !1, access: { has: function (e) { return "relativeToHeight" in e; }, get: function (e) { return e.relativeToHeight; }, set: function (e, t) { e.relativeToHeight = t; } }, metadata: a }, X, j), i(null, null, l, { kind: "field", name: "edgeColor", static: !1, private: !1, access: { has: function (e) { return "edgeColor" in e; }, get: function (e) { return e.edgeColor; }, set: function (e, t) { e.edgeColor = t; } }, metadata: a }, K, Z), i(null, null, h, { kind: "field", name: "blobEnable", static: !1, private: !1, access: { has: function (e) { return "blobEnable" in e; }, get: function (e) { return e.blobEnable; }, set: function (e, t) { e.blobEnable = t; } }, metadata: a }, q, $), i(null, null, c, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, J, ee), i(null, null, d, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, te, ie), i(null, null, u, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, se, ae), i(null, null, f, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, ne, oe), i(null, null, m, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, re, le), i(null, null, g, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, _e, he), i(null, null, b, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, ce, de), i(null, null, v, { kind: "field", name: "blobInnerFade", static: !1, private: !1, access: { has: function (e) { return "blobInnerFade" in e; }, get: function (e) { return e.blobInnerFade; }, set: function (e, t) { e.blobInnerFade = t; } }, metadata: a }, ue, fe), i(null, null, p, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, me, ge), i(null, null, x, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, be, ve), i(null, null, I, { kind: "field", name: "blobPulseMaxSize", static: !1, private: !1, access: { has: function (e) { return "blobPulseMaxSize" in e; }, get: function (e) { return e.blobPulseMaxSize; }, set: function (e, t) { e.blobPulseMaxSize = t; } }, metadata: a }, pe, xe), i(null, null, S, { kind: "field", name: "blobEnable2", static: !1, private: !1, access: { has: function (e) { return "blobEnable2" in e; }, get: function (e) { return e.blobEnable2; }, set: function (e, t) { e.blobEnable2 = t; } }, metadata: a }, Ie, Se), i(null, null, y, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, ye, Pe), i(null, null, P, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, Be, Ce), i(null, null, B, { kind: "field", name: "blobInnerFade2", static: !1, private: !1, access: { has: function (e) { return "blobInnerFade2" in e; }, get: function (e) { return e.blobInnerFade2; }, set: function (e, t) { e.blobInnerFade2 = t; } }, metadata: a }, Te, Re), i(null, null, C, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, we, ke), i(null, null, T, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, Oe, Me), i(null, null, R, { kind: "field", name: "gazeIntensity", static: !1, private: !1, access: { has: function (e) { return "gazeIntensity" in e; }, get: function (e) { return e.gazeIntensity; }, set: function (e, t) { e.gazeIntensity = t; } }, metadata: a }, Fe, Ee), i(null, null, w, { kind: "field", name: "gazeFocus", static: !1, private: !1, access: { has: function (e) { return "gazeFocus" in e; }, get: function (e) { return e.gazeFocus; }, set: function (e, t) { e.gazeFocus = t; } }, metadata: a }, De, Le), i(null, null, k, { kind: "field", name: "selectionFuzz", static: !1, private: !1, access: { has: function (e) { return "selectionFuzz" in e; }, get: function (e) { return e.selectionFuzz; }, set: function (e, t) { e.selectionFuzz = t; } }, metadata: a }, ze, Ne), i(null, null, O, { kind: "field", name: "selected", static: !1, private: !1, access: { has: function (e) { return "selected" in e; }, get: function (e) { return e.selected; }, set: function (e, t) { e.selected = t; } }, metadata: a }, Ae, Ve), i(null, null, M, { kind: "field", name: "selectionFade", static: !1, private: !1, access: { has: function (e) { return "selectionFade" in e; }, get: function (e) { return e.selectionFade; }, set: function (e, t) { e.selectionFade = t; } }, metadata: a }, Qe, We), i(null, null, F, { kind: "field", name: "selectionFadeSize", static: !1, private: !1, access: { has: function (e) { return "selectionFadeSize" in e; }, get: function (e) { return e.selectionFadeSize; }, set: function (e, t) { e.selectionFadeSize = t; } }, metadata: a }, Ge, He), i(null, null, E, { kind: "field", name: "selectedDistance", static: !1, private: !1, access: { has: function (e) { return "selectedDistance" in e; }, get: function (e) { return e.selectedDistance; }, set: function (e, t) { e.selectedDistance = t; } }, metadata: a }, Ue, Ye), i(null, null, D, { kind: "field", name: "selectedFadeLength", static: !1, private: !1, access: { has: function (e) { return "selectedFadeLength" in e; }, get: function (e) { return e.selectedFadeLength; }, set: function (e, t) { e.selectedFadeLength = t; } }, metadata: a }, Xe, je), i(null, null, L, { kind: "field", name: "proximityMaxIntensity", static: !1, private: !1, access: { has: function (e) { return "proximityMaxIntensity" in e; }, get: function (e) { return e.proximityMaxIntensity; }, set: function (e, t) { e.proximityMaxIntensity = t; } }, metadata: a }, Ke, Ze), i(null, null, z, { kind: "field", name: "proximityFarDistance", static: !1, private: !1, access: { has: function (e) { return "proximityFarDistance" in e; }, get: function (e) { return e.proximityFarDistance; }, set: function (e, t) { e.proximityFarDistance = t; } }, metadata: a }, qe, $e), i(null, null, N, { kind: "field", name: "proximityNearRadius", static: !1, private: !1, access: { has: function (e) { return "proximityNearRadius" in e; }, get: function (e) { return e.proximityNearRadius; }, set: function (e, t) { e.proximityNearRadius = t; } }, metadata: a }, Je, et), i(null, null, A, { kind: "field", name: "proximityAnisotropy", static: !1, private: !1, access: { has: function (e) { return "proximityAnisotropy" in e; }, get: function (e) { return e.proximityAnisotropy; }, set: function (e, t) { e.proximityAnisotropy = t; } }, metadata: a }, tt, it), i(null, null, V, { kind: "field", name: "useGlobalLeftIndex", static: !1, private: !1, access: { has: function (e) { return "useGlobalLeftIndex" in e; }, get: function (e) { return e.useGlobalLeftIndex; }, set: function (e, t) { e.useGlobalLeftIndex = t; } }, metadata: a }, st, at), i(null, null, Q, { kind: "field", name: "useGlobalRightIndex", static: !1, private: !1, access: { has: function (e) { return "useGlobalRightIndex" in e; }, get: function (e) { return e.useGlobalRightIndex; }, set: function (e, t) { e.useGlobalRightIndex = t; } }, metadata: a }, nt, ot), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLOB_TEXTURE_URL = "", e; })();
7967
+ }(W)), (function () { var s; var a = "function" == typeof Symbol && Symbol.metadata ? Object.create(null !== (s = W[Symbol.metadata]) && void 0 !== s ? s : null) : void 0; n = [t.serialize()], o = [t.serialize()], r = [t.serialize()], l = [t.serialize()], h = [t.serialize()], c = [t.serialize()], d = [t.serialize()], u = [t.serialize()], f = [t.serialize()], m = [t.serialize()], g = [t.serialize()], b = [t.serialize()], v = [t.serialize()], p = [t.serialize()], x = [t.serialize()], I = [t.serialize()], S = [t.serialize()], y = [t.serialize()], P = [t.serialize()], B = [t.serialize()], C = [t.serialize()], T = [t.serialize()], R = [t.serialize()], w = [t.serialize()], k = [t.serialize()], O = [t.serialize()], M = [t.serialize()], F = [t.serialize()], E = [t.serialize()], L = [t.serialize()], D = [t.serialize()], z = [t.serialize()], N = [t.serialize()], A = [t.serialize()], V = [t.serialize()], Q = [t.serialize()], i(null, null, n, { kind: "field", name: "radius", static: !1, private: !1, access: { has: function (e) { return "radius" in e; }, get: function (e) { return e.radius; }, set: function (e, t) { e.radius = t; } }, metadata: a }, G, H), i(null, null, o, { kind: "field", name: "lineWidth", static: !1, private: !1, access: { has: function (e) { return "lineWidth" in e; }, get: function (e) { return e.lineWidth; }, set: function (e, t) { e.lineWidth = t; } }, metadata: a }, U, Y), i(null, null, r, { kind: "field", name: "relativeToHeight", static: !1, private: !1, access: { has: function (e) { return "relativeToHeight" in e; }, get: function (e) { return e.relativeToHeight; }, set: function (e, t) { e.relativeToHeight = t; } }, metadata: a }, X, j), i(null, null, l, { kind: "field", name: "edgeColor", static: !1, private: !1, access: { has: function (e) { return "edgeColor" in e; }, get: function (e) { return e.edgeColor; }, set: function (e, t) { e.edgeColor = t; } }, metadata: a }, K, Z), i(null, null, h, { kind: "field", name: "blobEnable", static: !1, private: !1, access: { has: function (e) { return "blobEnable" in e; }, get: function (e) { return e.blobEnable; }, set: function (e, t) { e.blobEnable = t; } }, metadata: a }, q, $), i(null, null, c, { kind: "field", name: "blobPosition", static: !1, private: !1, access: { has: function (e) { return "blobPosition" in e; }, get: function (e) { return e.blobPosition; }, set: function (e, t) { e.blobPosition = t; } }, metadata: a }, J, ee), i(null, null, d, { kind: "field", name: "blobIntensity", static: !1, private: !1, access: { has: function (e) { return "blobIntensity" in e; }, get: function (e) { return e.blobIntensity; }, set: function (e, t) { e.blobIntensity = t; } }, metadata: a }, te, ie), i(null, null, u, { kind: "field", name: "blobNearSize", static: !1, private: !1, access: { has: function (e) { return "blobNearSize" in e; }, get: function (e) { return e.blobNearSize; }, set: function (e, t) { e.blobNearSize = t; } }, metadata: a }, se, ae), i(null, null, f, { kind: "field", name: "blobFarSize", static: !1, private: !1, access: { has: function (e) { return "blobFarSize" in e; }, get: function (e) { return e.blobFarSize; }, set: function (e, t) { e.blobFarSize = t; } }, metadata: a }, ne, oe), i(null, null, m, { kind: "field", name: "blobNearDistance", static: !1, private: !1, access: { has: function (e) { return "blobNearDistance" in e; }, get: function (e) { return e.blobNearDistance; }, set: function (e, t) { e.blobNearDistance = t; } }, metadata: a }, re, le), i(null, null, g, { kind: "field", name: "blobFarDistance", static: !1, private: !1, access: { has: function (e) { return "blobFarDistance" in e; }, get: function (e) { return e.blobFarDistance; }, set: function (e, t) { e.blobFarDistance = t; } }, metadata: a }, _e, he), i(null, null, b, { kind: "field", name: "blobFadeLength", static: !1, private: !1, access: { has: function (e) { return "blobFadeLength" in e; }, get: function (e) { return e.blobFadeLength; }, set: function (e, t) { e.blobFadeLength = t; } }, metadata: a }, ce, de), i(null, null, v, { kind: "field", name: "blobInnerFade", static: !1, private: !1, access: { has: function (e) { return "blobInnerFade" in e; }, get: function (e) { return e.blobInnerFade; }, set: function (e, t) { e.blobInnerFade = t; } }, metadata: a }, ue, fe), i(null, null, p, { kind: "field", name: "blobPulse", static: !1, private: !1, access: { has: function (e) { return "blobPulse" in e; }, get: function (e) { return e.blobPulse; }, set: function (e, t) { e.blobPulse = t; } }, metadata: a }, me, ge), i(null, null, x, { kind: "field", name: "blobFade", static: !1, private: !1, access: { has: function (e) { return "blobFade" in e; }, get: function (e) { return e.blobFade; }, set: function (e, t) { e.blobFade = t; } }, metadata: a }, be, ve), i(null, null, I, { kind: "field", name: "blobPulseMaxSize", static: !1, private: !1, access: { has: function (e) { return "blobPulseMaxSize" in e; }, get: function (e) { return e.blobPulseMaxSize; }, set: function (e, t) { e.blobPulseMaxSize = t; } }, metadata: a }, pe, xe), i(null, null, S, { kind: "field", name: "blobEnable2", static: !1, private: !1, access: { has: function (e) { return "blobEnable2" in e; }, get: function (e) { return e.blobEnable2; }, set: function (e, t) { e.blobEnable2 = t; } }, metadata: a }, Ie, Se), i(null, null, y, { kind: "field", name: "blobPosition2", static: !1, private: !1, access: { has: function (e) { return "blobPosition2" in e; }, get: function (e) { return e.blobPosition2; }, set: function (e, t) { e.blobPosition2 = t; } }, metadata: a }, ye, Pe), i(null, null, P, { kind: "field", name: "blobNearSize2", static: !1, private: !1, access: { has: function (e) { return "blobNearSize2" in e; }, get: function (e) { return e.blobNearSize2; }, set: function (e, t) { e.blobNearSize2 = t; } }, metadata: a }, Be, Ce), i(null, null, B, { kind: "field", name: "blobInnerFade2", static: !1, private: !1, access: { has: function (e) { return "blobInnerFade2" in e; }, get: function (e) { return e.blobInnerFade2; }, set: function (e, t) { e.blobInnerFade2 = t; } }, metadata: a }, Te, Re), i(null, null, C, { kind: "field", name: "blobPulse2", static: !1, private: !1, access: { has: function (e) { return "blobPulse2" in e; }, get: function (e) { return e.blobPulse2; }, set: function (e, t) { e.blobPulse2 = t; } }, metadata: a }, we, ke), i(null, null, T, { kind: "field", name: "blobFade2", static: !1, private: !1, access: { has: function (e) { return "blobFade2" in e; }, get: function (e) { return e.blobFade2; }, set: function (e, t) { e.blobFade2 = t; } }, metadata: a }, Oe, Me), i(null, null, R, { kind: "field", name: "gazeIntensity", static: !1, private: !1, access: { has: function (e) { return "gazeIntensity" in e; }, get: function (e) { return e.gazeIntensity; }, set: function (e, t) { e.gazeIntensity = t; } }, metadata: a }, Fe, Ee), i(null, null, w, { kind: "field", name: "gazeFocus", static: !1, private: !1, access: { has: function (e) { return "gazeFocus" in e; }, get: function (e) { return e.gazeFocus; }, set: function (e, t) { e.gazeFocus = t; } }, metadata: a }, Le, De), i(null, null, k, { kind: "field", name: "selectionFuzz", static: !1, private: !1, access: { has: function (e) { return "selectionFuzz" in e; }, get: function (e) { return e.selectionFuzz; }, set: function (e, t) { e.selectionFuzz = t; } }, metadata: a }, ze, Ne), i(null, null, O, { kind: "field", name: "selected", static: !1, private: !1, access: { has: function (e) { return "selected" in e; }, get: function (e) { return e.selected; }, set: function (e, t) { e.selected = t; } }, metadata: a }, Ae, Ve), i(null, null, M, { kind: "field", name: "selectionFade", static: !1, private: !1, access: { has: function (e) { return "selectionFade" in e; }, get: function (e) { return e.selectionFade; }, set: function (e, t) { e.selectionFade = t; } }, metadata: a }, Qe, We), i(null, null, F, { kind: "field", name: "selectionFadeSize", static: !1, private: !1, access: { has: function (e) { return "selectionFadeSize" in e; }, get: function (e) { return e.selectionFadeSize; }, set: function (e, t) { e.selectionFadeSize = t; } }, metadata: a }, Ge, He), i(null, null, E, { kind: "field", name: "selectedDistance", static: !1, private: !1, access: { has: function (e) { return "selectedDistance" in e; }, get: function (e) { return e.selectedDistance; }, set: function (e, t) { e.selectedDistance = t; } }, metadata: a }, Ue, Ye), i(null, null, L, { kind: "field", name: "selectedFadeLength", static: !1, private: !1, access: { has: function (e) { return "selectedFadeLength" in e; }, get: function (e) { return e.selectedFadeLength; }, set: function (e, t) { e.selectedFadeLength = t; } }, metadata: a }, Xe, je), i(null, null, D, { kind: "field", name: "proximityMaxIntensity", static: !1, private: !1, access: { has: function (e) { return "proximityMaxIntensity" in e; }, get: function (e) { return e.proximityMaxIntensity; }, set: function (e, t) { e.proximityMaxIntensity = t; } }, metadata: a }, Ke, Ze), i(null, null, z, { kind: "field", name: "proximityFarDistance", static: !1, private: !1, access: { has: function (e) { return "proximityFarDistance" in e; }, get: function (e) { return e.proximityFarDistance; }, set: function (e, t) { e.proximityFarDistance = t; } }, metadata: a }, qe, $e), i(null, null, N, { kind: "field", name: "proximityNearRadius", static: !1, private: !1, access: { has: function (e) { return "proximityNearRadius" in e; }, get: function (e) { return e.proximityNearRadius; }, set: function (e, t) { e.proximityNearRadius = t; } }, metadata: a }, Je, et), i(null, null, A, { kind: "field", name: "proximityAnisotropy", static: !1, private: !1, access: { has: function (e) { return "proximityAnisotropy" in e; }, get: function (e) { return e.proximityAnisotropy; }, set: function (e, t) { e.proximityAnisotropy = t; } }, metadata: a }, tt, it), i(null, null, V, { kind: "field", name: "useGlobalLeftIndex", static: !1, private: !1, access: { has: function (e) { return "useGlobalLeftIndex" in e; }, get: function (e) { return e.useGlobalLeftIndex; }, set: function (e, t) { e.useGlobalLeftIndex = t; } }, metadata: a }, st, at), i(null, null, Q, { kind: "field", name: "useGlobalRightIndex", static: !1, private: !1, access: { has: function (e) { return "useGlobalRightIndex" in e; }, get: function (e) { return e.useGlobalRightIndex; }, set: function (e, t) { e.useGlobalRightIndex = t; } }, metadata: a }, nt, ot), a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }); })(), e.BLOB_TEXTURE_URL = "", e; })();
7957
7968
  var Si = /** @class */ (function (_super) {
7958
7969
  __extends(Si, _super);
7959
7970
  function Si() {
@@ -7987,10 +7998,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7987
7998
  n.markAsProcessed(), o.resetCachedMaterial();
7988
7999
  var e_248 = new t.EffectFallbacks;
7989
8000
  n.FOG && e_248.addFallback(1, "FOG"), t.HandleFallbacksForShadows(n, e_248), n.IMAGEPROCESSINGPOSTPROCESS = o.imageProcessingConfiguration.applyByPostProcess;
7990
- var s_70 = [t.VertexBuffer.PositionKind];
7991
- n.NORMAL && s_70.push(t.VertexBuffer.NormalKind), n.UV1 && s_70.push(t.VertexBuffer.UVKind), n.UV2 && s_70.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_70.push(t.VertexBuffer.ColorKind), n.TANGENT && s_70.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_70, n);
8001
+ var s_71 = [t.VertexBuffer.PositionKind];
8002
+ n.NORMAL && s_71.push(t.VertexBuffer.NormalKind), n.UV1 && s_71.push(t.VertexBuffer.UVKind), n.UV2 && s_71.push(t.VertexBuffer.UV2Kind), n.VERTEXCOLOR && s_71.push(t.VertexBuffer.ColorKind), n.TANGENT && s_71.push(t.VertexBuffer.TangentKind), t.PrepareAttributesForInstances(s_71, n);
7992
8003
  var l_25 = "mrdlInnerquad", h_15 = n.toString(), c_12 = ["world", "worldView", "worldViewProjection", "view", "projection", "viewProjection", "cameraPosition", "_Color_", "_Radius_", "_Fixed_Radius_", "_Filter_Width_", "_Glow_Fraction_", "_Glow_Max_", "_Glow_Falloff_"], d_12 = [], u_11 = [];
7993
- t.PrepareUniformsAndSamplersList({ uniformsNames: c_12, uniformBuffersNames: u_11, samplers: d_12, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_25, { attributes: s_70, uniformsNames: c_12, uniformBuffersNames: u_11, samplers: d_12, defines: h_15, fallbacks: e_248, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8004
+ t.PrepareUniformsAndSamplersList({ uniformsNames: c_12, uniformBuffersNames: u_11, samplers: d_12, defines: n, maxSimultaneousLights: 4 }), i.setEffect(o.getEngine().createEffect(l_25, { attributes: s_71, uniformsNames: c_12, uniformBuffersNames: u_11, samplers: d_12, defines: h_15, fallbacks: e_248, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, extraInitializationsAsync: function () { return a(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7994
8005
  switch (_a.label) {
7995
8006
  case 0: return [4 /*yield*/, Promise.all([Promise.resolve().then(function () { return ea; }), Promise.resolve().then(function () { return sa; })])];
7996
8007
  case 1:
@@ -8042,8 +8053,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8042
8053
  if (!this._tooltipFade) {
8043
8054
  var e_249 = this._backPlate._scene.useRightHandedSystem;
8044
8055
  this._tooltipMesh = t.CreatePlane("", { size: 1 }, this._backPlate._scene), this._tooltipMesh.position = t.Vector3.Down().scale(.7).add(t.Vector3.Forward(e_249).scale(-.15)), this._tooltipMesh.isPickable = !1, this._tooltipMesh.parent = this._frontPlateCollisionMesh, t.RegisterStandardMaterial(), this._tooltipTexture = ht.CreateForMesh(this._tooltipMesh);
8045
- var i_95 = new y;
8046
- i_95.height = .25, i_95.width = .8, i_95.cornerRadius = 25, i_95.color = "#ffffff", i_95.thickness = 20, i_95.background = "#060668", this._tooltipTexture.addControl(i_95), this._tooltipTextBlock = new T, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 100, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
8056
+ var i_96 = new y;
8057
+ i_96.height = .25, i_96.width = .8, i_96.cornerRadius = 25, i_96.color = "#ffffff", i_96.thickness = 20, i_96.background = "#060668", this._tooltipTexture.addControl(i_96), this._tooltipTextBlock = new T, this._tooltipTextBlock.color = "white", this._tooltipTextBlock.fontSize = 100, this._tooltipTexture.addControl(this._tooltipTextBlock), this._tooltipFade = new t.FadeInOutBehavior, this._tooltipFade.delay = 500, this._tooltipMesh.addBehavior(this._tooltipFade), this._tooltipHoverObserver = this.onPointerEnterObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!0); }), this._tooltipOutObserver = this.onPointerOutObservable.add(function () { _this._tooltipFade && _this._tooltipFade.fadeIn(!1); });
8047
8058
  }
8048
8059
  this._tooltipTextBlock && (this._tooltipTextBlock.text = e);
8049
8060
  }
@@ -8109,28 +8120,28 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8109
8120
  Pi.prototype._getTypeName = function () { return "TouchHolographicButton"; };
8110
8121
  Pi.prototype._rebuildContent = function () { var e; e = this._getAspectRatio() <= 1 ? this._alignContentVertically() : this._alignContentHorizontally(), this.content = e; };
8111
8122
  Pi.prototype._getAspectRatio = function () { return this.width / this.height; };
8112
- Pi.prototype._alignContentVertically = function () { var e = new L; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
8113
- var t_123 = new k;
8114
- t_123.source = this._imageUrl, t_123.heightInPixels = 180, t_123.widthInPixels = 100, t_123.paddingTopInPixels = 40, t_123.paddingBottomInPixels = 40, e.addControl(t_123);
8123
+ Pi.prototype._alignContentVertically = function () { var e = new D; if (e.isVertical = !0, t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
8124
+ var t_122 = new k;
8125
+ t_122.source = this._imageUrl, t_122.heightInPixels = 180, t_122.widthInPixels = 100, t_122.paddingTopInPixels = 40, t_122.paddingBottomInPixels = 40, e.addControl(t_122);
8115
8126
  } if (this._text) {
8116
- var t_124 = new T;
8117
- t_124.text = this._text, t_124.color = "white", t_124.heightInPixels = 30, t_124.fontSize = 24, e.addControl(t_124);
8127
+ var t_123 = new T;
8128
+ t_123.text = this._text, t_123.color = "white", t_123.heightInPixels = 30, t_123.fontSize = 24, e.addControl(t_123);
8118
8129
  } return e; };
8119
- Pi.prototype._alignContentHorizontally = function () { var e = 240; var i = 15, s = new y; s.widthInPixels = e, s.heightInPixels = e, s.color = "transparent", s.setPaddingInPixels(i, i, i, i), e -= 30; var a = new L; if (a.isVertical = !1, a.scaleY = this._getAspectRatio(), t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
8120
- var t_125 = new y("".concat(this.name, "_image"));
8121
- t_125.widthInPixels = this.imageSizeInPixels, t_125.heightInPixels = this.imageSizeInPixels, t_125.color = "transparent", e -= this.imageSizeInPixels;
8122
- var i_96 = new k;
8123
- i_96.source = this._imageUrl, t_125.addControl(i_96), a.addControl(t_125);
8130
+ Pi.prototype._alignContentHorizontally = function () { var e = 240; var i = 15, s = new y; s.widthInPixels = e, s.heightInPixels = e, s.color = "transparent", s.setPaddingInPixels(i, i, i, i), e -= 30; var a = new D; if (a.isVertical = !1, a.scaleY = this._getAspectRatio(), t.IsDocumentAvailable() && document.createElement && this._imageUrl) {
8131
+ var t_124 = new y("".concat(this.name, "_image"));
8132
+ t_124.widthInPixels = this.imageSizeInPixels, t_124.heightInPixels = this.imageSizeInPixels, t_124.color = "transparent", e -= this.imageSizeInPixels;
8133
+ var i_97 = new k;
8134
+ i_97.source = this._imageUrl, t_124.addControl(i_97), a.addControl(t_124);
8124
8135
  } if (this._text) {
8125
- var t_126 = new T("".concat(this.name, "_text"));
8126
- if (t_126.text = this._text, t_126.color = "white", t_126.fontSize = this.textSizeInPixels, t_126.widthInPixels = e, this._imageUrl && (t_126.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, t_126.paddingLeftInPixels = i), this._subtext) {
8127
- var s_71 = new Y;
8128
- s_71.addColumnDefinition(1), s_71.addRowDefinition(.5), s_71.addRowDefinition(.5), s_71.widthInPixels = e, s_71.heightInPixels = 45;
8136
+ var t_125 = new T("".concat(this.name, "_text"));
8137
+ if (t_125.text = this._text, t_125.color = "white", t_125.fontSize = this.textSizeInPixels, t_125.widthInPixels = e, this._imageUrl && (t_125.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, t_125.paddingLeftInPixels = i), this._subtext) {
8138
+ var s_72 = new Y;
8139
+ s_72.addColumnDefinition(1), s_72.addRowDefinition(.5), s_72.addRowDefinition(.5), s_72.widthInPixels = e, s_72.heightInPixels = 45;
8129
8140
  var n_35 = new T("".concat(this.name, "_subtext"));
8130
- n_35.text = this._subtext, n_35.color = "#EEEEEEAB", n_35.fontSize = .75 * this.textSizeInPixels, n_35.fontWeight = "600", this._imageUrl && (n_35.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n_35.paddingLeftInPixels = i), s_71.addControl(t_126, 0), s_71.addControl(n_35, 1), a.addControl(s_71);
8141
+ n_35.text = this._subtext, n_35.color = "#EEEEEEAB", n_35.fontSize = .75 * this.textSizeInPixels, n_35.fontWeight = "600", this._imageUrl && (n_35.textHorizontalAlignment = b.HORIZONTAL_ALIGNMENT_LEFT, n_35.paddingLeftInPixels = i), s_72.addControl(t_125, 0), s_72.addControl(n_35, 1), a.addControl(s_72);
8131
8142
  }
8132
8143
  else
8133
- a.addControl(t_126);
8144
+ a.addControl(t_125);
8134
8145
  } return s.addControl(a), s; };
8135
8146
  Pi.prototype._createNode = function (e) { var i; this.name = null !== (i = this.name) && void 0 !== i ? i : "TouchHolographicButton"; var s = this._createBackPlate(e), a = this._createFrontPlate(e), n = this._createInnerQuad(e), o = this._createBackGlow(e); this._frontPlateCollisionMesh = a, this._textPlate = _super.prototype._createNode.call(this, e), this._textPlate.name = "".concat(this.name, "_textPlate"), this._textPlate.isPickable = !1, this._textPlate.scaling.x = this.width, this._textPlate.parent = a, this._backPlate = s, this._backPlate.position = t.Vector3.Forward(e.useRightHandedSystem).scale(this.backPlateDepth / 2), this._backPlate.isPickable = !1, this._backPlate.addChild(a), this._backPlate.addChild(n), o && this._backPlate.addChild(o); var r = new t.TransformNode("".concat(this.name, "_root"), e); return this._backPlate.setParent(r), this.collisionMesh = a, this.collidableFrontDirection = this._backPlate.forward.negate(), r; };
8136
8147
  Pi.prototype._createBackPlate = function (e) {
@@ -8168,11 +8179,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8168
8179
  var e_250, _a, e_251, _b;
8169
8180
  var e = new t.AnimationGroup("Click Animation Group"), i = [{ name: "backGlowMotion", mesh: this._backGlow, property: "material.motion", keys: [{ frame: 0, values: [0, 0, 0] }, { frame: 20, values: [1, .0144, .0144] }, { frame: 40, values: [.0027713229489760476, 0, 0] }, { frame: 45, values: [.0027713229489760476] }] }, { name: "_collisionPlateZSlide", mesh: this._collisionPlate, property: "position.z", keys: [{ frame: 0, values: [0, 0, 0] }, { frame: 20, values: [t.Vector3.Forward(this._collisionPlate._scene.useRightHandedSystem).scale(this.frontPlateDepth / 2).z, 0, 0] }, { frame: 40, values: [0, .005403332496794331] }, { frame: 45, values: [0] }] }, { name: "_collisionPlateZScale", mesh: this._collisionPlate, property: "scaling.z", keys: [{ frame: 0, values: [this.frontPlateDepth, 0, 0] }, { frame: 20, values: [this.backPlateDepth, 0, 0] }, { frame: 40, values: [this.frontPlateDepth, .0054] }, { frame: 45, values: [this.frontPlateDepth] }] }];
8170
8181
  try {
8171
- for (var i_97 = __values(i), i_97_1 = i_97.next(); !i_97_1.done; i_97_1 = i_97.next()) {
8172
- var s_72 = i_97_1.value;
8173
- var i_98 = new t.Animation(s_72.name, s_72.property, 60, t.Animation.ANIMATIONTYPE_FLOAT, t.Animation.ANIMATIONLOOPMODE_CYCLE), a_54 = [];
8182
+ for (var i_98 = __values(i), i_98_1 = i_98.next(); !i_98_1.done; i_98_1 = i_98.next()) {
8183
+ var s_73 = i_98_1.value;
8184
+ var i_99 = new t.Animation(s_73.name, s_73.property, 60, t.Animation.ANIMATIONTYPE_FLOAT, t.Animation.ANIMATIONLOOPMODE_CYCLE), a_54 = [];
8174
8185
  try {
8175
- for (var _c = (e_251 = void 0, __values(s_72.keys)), _d = _c.next(); !_d.done; _d = _c.next()) {
8186
+ for (var _c = (e_251 = void 0, __values(s_73.keys)), _d = _c.next(); !_d.done; _d = _c.next()) {
8176
8187
  var e_252 = _d.value;
8177
8188
  a_54.push({ frame: e_252.frame, value: e_252.values[0], inTangent: e_252.values[1], outTangent: e_252.values[2], interpolation: e_252.values[3] });
8178
8189
  }
@@ -8184,13 +8195,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8184
8195
  }
8185
8196
  finally { if (e_251) throw e_251.error; }
8186
8197
  }
8187
- i_98.setKeys(a_54), s_72.mesh && e.addTargetedAnimation(i_98, s_72.mesh);
8198
+ i_99.setKeys(a_54), s_73.mesh && e.addTargetedAnimation(i_99, s_73.mesh);
8188
8199
  }
8189
8200
  }
8190
8201
  catch (e_250_1) { e_250 = { error: e_250_1 }; }
8191
8202
  finally {
8192
8203
  try {
8193
- if (i_97_1 && !i_97_1.done && (_a = i_97.return)) _a.call(i_97);
8204
+ if (i_98_1 && !i_98_1.done && (_a = i_98.return)) _a.call(i_98);
8194
8205
  }
8195
8206
  finally { if (e_250) throw e_250.error; }
8196
8207
  }
@@ -8200,13 +8211,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8200
8211
  var e_253, _a, e_254, _b;
8201
8212
  var i = new t.AnimationGroup("Enter Exit Animation Group"), s = [{ name: "frontPlateFadeOut", mesh: this._frontPlate, property: "material.fadeOut", keys: [{ frame: 0, values: [0, 0, .025045314830017686, 0] }, { frame: 40, values: [1.00205599570012, .025045314830017686, 0, 0] }] }, { name: "textPlateZSlide", mesh: this._textPlate, property: "position.z", keys: [{ frame: 0, values: [0, 0, 0] }, { frame: 40, values: [t.Vector3.Forward(this._textPlate._scene.useRightHandedSystem).scale(-.15).z, 0, 0] }] }];
8202
8213
  try {
8203
- for (var s_73 = __values(s), s_73_1 = s_73.next(); !s_73_1.done; s_73_1 = s_73.next()) {
8204
- var e_255 = s_73_1.value;
8205
- var s_74 = new t.Animation(e_255.name, e_255.property, 60, t.Animation.ANIMATIONTYPE_FLOAT, t.Animation.ANIMATIONLOOPMODE_CYCLE), a_55 = [];
8214
+ for (var s_74 = __values(s), s_74_1 = s_74.next(); !s_74_1.done; s_74_1 = s_74.next()) {
8215
+ var e_255 = s_74_1.value;
8216
+ var s_75 = new t.Animation(e_255.name, e_255.property, 60, t.Animation.ANIMATIONTYPE_FLOAT, t.Animation.ANIMATIONLOOPMODE_CYCLE), a_55 = [];
8206
8217
  try {
8207
8218
  for (var _c = (e_254 = void 0, __values(e_255.keys)), _d = _c.next(); !_d.done; _d = _c.next()) {
8208
- var t_127 = _d.value;
8209
- a_55.push({ frame: t_127.frame, value: t_127.values[0], inTangent: t_127.values[1], outTangent: t_127.values[2], interpolation: t_127.values[3] });
8219
+ var t_126 = _d.value;
8220
+ a_55.push({ frame: t_126.frame, value: t_126.values[0], inTangent: t_126.values[1], outTangent: t_126.values[2], interpolation: t_126.values[3] });
8210
8221
  }
8211
8222
  }
8212
8223
  catch (e_254_1) { e_254 = { error: e_254_1 }; }
@@ -8216,13 +8227,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8216
8227
  }
8217
8228
  finally { if (e_254) throw e_254.error; }
8218
8229
  }
8219
- s_74.setKeys(a_55), e_255.mesh && i.addTargetedAnimation(s_74, e_255.mesh);
8230
+ s_75.setKeys(a_55), e_255.mesh && i.addTargetedAnimation(s_75, e_255.mesh);
8220
8231
  }
8221
8232
  }
8222
8233
  catch (e_253_1) { e_253 = { error: e_253_1 }; }
8223
8234
  finally {
8224
8235
  try {
8225
- if (s_73_1 && !s_73_1.done && (_a = s_73.return)) _a.call(s_73);
8236
+ if (s_74_1 && !s_74_1.done && (_a = s_74.return)) _a.call(s_74);
8226
8237
  }
8227
8238
  finally { if (e_253) throw e_253.error; }
8228
8239
  }
@@ -8249,9 +8260,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8249
8260
  var Oi = "fluentButtonPixelShader", Mi = "uniform vec3 cameraPosition;varying vec3 vPosition;varying vec3 vNormal;varying vec2 vUV;varying vec3 vTangent;varying vec3 vBinormal;varying vec4 vColor;varying vec4 vExtra1;uniform float _Edge_Width_;uniform vec4 _Edge_Color_;uniform bool _Relative_Width_;uniform float _Proximity_Max_Intensity_;uniform float _Proximity_Far_Distance_;uniform float _Proximity_Near_Radius_;uniform float _Proximity_Anisotropy_;uniform float _Selection_Fuzz_;uniform float _Selected_;uniform float _Selection_Fade_;uniform float _Selection_Fade_Size_;uniform float _Selected_Distance_;uniform float _Selected_Fade_Length_;uniform bool _Blob_Enable_;uniform vec3 _Blob_Position_;uniform float _Blob_Intensity_;uniform float _Blob_Near_Size_;uniform float _Blob_Far_Size_;uniform float _Blob_Near_Distance_;uniform float _Blob_Far_Distance_;uniform float _Blob_Fade_Length_;uniform float _Blob_Inner_Fade_;uniform float _Blob_Pulse_;uniform float _Blob_Fade_;uniform sampler2D _Blob_Texture_;uniform bool _Blob_Enable_2_;uniform vec3 _Blob_Position_2_;uniform float _Blob_Near_Size_2_;uniform float _Blob_Inner_Fade_2_;uniform float _Blob_Pulse_2_;uniform float _Blob_Fade_2_;uniform vec3 _Active_Face_Dir_;uniform vec3 _Active_Face_Up_;uniform bool Enable_Fade;uniform float _Fade_Width_;uniform bool _Smooth_Active_Face_;uniform bool _Show_Frame_;uniform bool _Use_Blob_Texture_;uniform bool Use_Global_Left_Index;uniform bool Use_Global_Right_Index;uniform vec4 Global_Left_Index_Tip_Position;uniform vec4 Global_Right_Index_Tip_Position;uniform vec4 Global_Left_Thumb_Tip_Position;uniform vec4 Global_Right_Thumb_Tip_Position;uniform float Global_Left_Index_Tip_Proximity;uniform float Global_Right_Index_Tip_Proximity;void Holo_Edge_Fragment_B35(\nvec4 Edges,\nfloat Edge_Width,\nout float NotEdge)\n{vec2 c=vec2(min(Edges.r,Edges.g),min(Edges.b,Edges.a));vec2 df=fwidth(c)*Edge_Width;vec2 g=clamp(c/df,0.0,1.0);NotEdge=g.x*g.y;}\nvoid Blob_Fragment_B39(\nvec2 UV,\nvec3 Blob_Info,\nsampler2D Blob_Texture,\nout vec4 Blob_Color)\n{float k=dot(UV,UV);Blob_Color=Blob_Info.y*texture(Blob_Texture,vec2(vec2(sqrt(k),Blob_Info.x).x,1.0-vec2(sqrt(k),Blob_Info.x).y))*(1.0-clamp(k,0.0,1.0));}\nvec2 FilterStep(vec2 Edge,vec2 X)\n{vec2 dX=max(fwidth(X),vec2(0.00001,0.00001));return clamp( (X+dX-max(Edge,X-dX))/(dX*2.0),0.0,1.0);}\nvoid Wireframe_Fragment_B59(\nvec3 Widths,\nvec2 UV,\nfloat Proximity,\nvec4 Edge_Color,\nout vec4 Wireframe)\n{vec2 c=min(UV,vec2(1.0,1.0)-UV);vec2 g=FilterStep(Widths.xy*0.5,c); \nWireframe=(1.0-min(g.x,g.y))*Proximity*Edge_Color;}\nvoid Proximity_B53(\nvec3 Proximity_Center,\nvec3 Proximity_Center_2,\nfloat Proximity_Max_Intensity,\nfloat Proximity_Near_Radius,\nvec3 Position,\nvec3 Show_Selection,\nvec4 Extra1,\nfloat Dist_To_Face,\nfloat Intensity,\nout float Proximity)\n{vec2 delta1=Extra1.xy;vec2 delta2=Extra1.zw;float d2=sqrt(min(dot(delta1,delta1),dot(delta2,delta2))+Dist_To_Face*Dist_To_Face);Proximity=Intensity*Proximity_Max_Intensity*(1.0-clamp(d2/Proximity_Near_Radius,0.0,1.0))*(1.0-Show_Selection.x)+Show_Selection.x;}\nvoid To_XYZ_B46(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{X=Vec3.x;Y=Vec3.y;Z=Vec3.z;}\nvoid main()\n{float NotEdge_Q35;\n#if ENABLE_FADE\nHolo_Edge_Fragment_B35(vColor,_Fade_Width_,NotEdge_Q35);\n#else\nNotEdge_Q35=1.0;\n#endif\nvec4 Blob_Color_Q39;float k=dot(vUV,vUV);vec2 blobTextureCoord=vec2(vec2(sqrt(k),vTangent.x).x,1.0-vec2(sqrt(k),vTangent.x).y);vec4 blobColor=mix(vec4(1.0,1.0,1.0,1.0)*step(1.0-vTangent.x,clamp(sqrt(k)+0.1,0.0,1.0)),texture(_Blob_Texture_,blobTextureCoord),float(_Use_Blob_Texture_));Blob_Color_Q39=vTangent.y*blobColor*(1.0-clamp(k,0.0,1.0));float Is_Quad_Q24;Is_Quad_Q24=vNormal.z;vec3 Blob_Position_Q41= mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(Use_Global_Left_Index));vec3 Blob_Position_Q42= mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(Use_Global_Right_Index));float X_Q46;float Y_Q46;float Z_Q46;To_XYZ_B46(vBinormal,X_Q46,Y_Q46,Z_Q46);float Proximity_Q53;Proximity_B53(Blob_Position_Q41,Blob_Position_Q42,_Proximity_Max_Intensity_,_Proximity_Near_Radius_,vPosition,vBinormal,vExtra1,Y_Q46,Z_Q46,Proximity_Q53);vec4 Wireframe_Q59;Wireframe_Fragment_B59(vNormal,vUV,Proximity_Q53,_Edge_Color_,Wireframe_Q59);vec4 Wire_Or_Blob_Q23=mix(Wireframe_Q59,Blob_Color_Q39,Is_Quad_Q24);vec4 Result_Q22;Result_Q22=mix(Wire_Or_Blob_Q23,vec4(0.3,0.3,0.3,0.3),float(_Show_Frame_));vec4 Final_Color_Q37=NotEdge_Q35*Result_Q22;vec4 Out_Color=Final_Color_Q37;float Clip_Threshold=0.0;bool To_sRGB=false;gl_FragColor=Out_Color;}";
8250
8261
  t.ShaderStore.ShadersStore[Oi] || (t.ShaderStore.ShadersStore[Oi] = Mi);
8251
8262
  var Fi = { __proto__: null, fluentButtonPixelShader: { name: Oi, shader: Mi } };
8252
- var Ei = "fluentButtonVertexShader", Di = "uniform mat4 world;uniform mat4 viewProjection;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;attribute vec3 tangent;attribute vec4 color;uniform float _Edge_Width_;uniform vec4 _Edge_Color_;uniform float _Proximity_Max_Intensity_;uniform float _Proximity_Far_Distance_;uniform float _Proximity_Near_Radius_;uniform float _Proximity_Anisotropy_;uniform float _Selection_Fuzz_;uniform float _Selected_;uniform float _Selection_Fade_;uniform float _Selection_Fade_Size_;uniform float _Selected_Distance_;uniform float _Selected_Fade_Length_;uniform bool _Blob_Enable_;uniform vec3 _Blob_Position_;uniform float _Blob_Intensity_;uniform float _Blob_Near_Size_;uniform float _Blob_Far_Size_;uniform float _Blob_Near_Distance_;uniform float _Blob_Far_Distance_;uniform float _Blob_Fade_Length_;uniform float _Blob_Inner_Fade_;uniform float _Blob_Pulse_;uniform float _Blob_Fade_;uniform sampler2D _Blob_Texture_;uniform bool _Blob_Enable_2_;uniform vec3 _Blob_Position_2_;uniform float _Blob_Near_Size_2_;uniform float _Blob_Inner_Fade_2_;uniform float _Blob_Pulse_2_;uniform float _Blob_Fade_2_;uniform vec3 _Active_Face_Dir_;uniform vec3 _Active_Face_Up_;uniform bool _Enable_Fade_;uniform float _Fade_Width_;uniform bool _Smooth_Active_Face_;uniform bool _Show_Frame_;uniform bool Use_Global_Left_Index;uniform bool Use_Global_Right_Index;uniform vec4 Global_Left_Index_Tip_Position;uniform vec4 Global_Right_Index_Tip_Position;uniform vec4 Global_Left_Thumb_Tip_Position;uniform vec4 Global_Right_Thumb_Tip_Position;uniform float Global_Left_Index_Tip_Proximity;uniform float Global_Right_Index_Tip_Proximity;varying vec3 vPosition;varying vec3 vNormal;varying vec2 vUV;varying vec3 vTangent;varying vec3 vBinormal;varying vec4 vColor;varying vec4 vExtra1;void Blob_Vertex_B47(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nvec4 Vx_Color,\nvec2 UV,\nvec3 Face_Center,\nvec2 Face_Size,\nvec2 In_UV,\nfloat Blob_Fade_Length,\nfloat Selection_Fade,\nfloat Selection_Fade_Size,\nfloat Inner_Fade,\nvec3 Active_Face_Center,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nfloat Blob_Enabled,\nout vec3 Out_Position,\nout vec2 Out_UV,\nout vec3 Blob_Info)\n{float blobSize,fadeIn;vec3 Hit_Position;Blob_Info=vec3(0.0,0.0,0.0);float Hit_Distance=dot(Blob_Position-Face_Center,Normal);Hit_Position=Blob_Position-Hit_Distance*Normal;float absD=abs(Hit_Distance);float lerpVal=clamp((absD-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);fadeIn=1.0-clamp((absD-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);float innerFade=1.0-clamp(-Hit_Distance/Inner_Fade,0.0,1.0);float farClip=clamp(1.0-step(Blob_Far_Distance+Blob_Fade_Length,absD),0.0,1.0);float size=mix(Blob_Near_Size,Blob_Far_Size,lerpVal)*farClip;blobSize=mix(size,Selection_Fade_Size,Selection_Fade)*innerFade*Blob_Enabled;Blob_Info.x=lerpVal*0.5+0.5;Blob_Info.y=fadeIn*Intensity*(1.0-Selection_Fade)*Blob_Fade;Blob_Info.x*=(1.0-Blob_Pulse);vec3 delta=Hit_Position-Face_Center;vec2 blobCenterXY=vec2(dot(delta,Tangent),dot(delta,Bitangent));vec2 quadUVin=2.0*UV-1.0; \nvec2 blobXY=blobCenterXY+quadUVin*blobSize;vec2 blobClipped=clamp(blobXY,-Face_Size*0.5,Face_Size*0.5);vec2 blobUV=(blobClipped-blobCenterXY)/max(blobSize,0.0001)*2.0;vec3 blobCorner=Face_Center+blobClipped.x*Tangent+blobClipped.y*Bitangent;Out_Position=mix(Position,blobCorner,Vx_Color.rrr);Out_UV=mix(In_UV,blobUV,Vx_Color.rr);}\nvec2 ProjectProximity(\nvec3 blobPosition,\nvec3 position,\nvec3 center,\nvec3 dir,\nvec3 xdir,\nvec3 ydir,\nout float vdistance\n)\n{vec3 delta=blobPosition-position;vec2 xy=vec2(dot(delta,xdir),dot(delta,ydir));vdistance=abs(dot(delta,dir));return xy;}\nvoid Proximity_Vertex_B66(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nvec3 Position,\nfloat Proximity_Far_Distance,\nfloat Relative_Scale,\nfloat Proximity_Anisotropy,\nvec3 Up,\nout vec4 Extra1,\nout float Distance_To_Face,\nout float Intensity)\n{vec3 Active_Face_Dir_X=normalize(cross(Active_Face_Dir,Up));vec3 Active_Face_Dir_Y=cross(Active_Face_Dir,Active_Face_Dir_X);float distz1,distz2;Extra1.xy=ProjectProximity(Blob_Position,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz1)/Relative_Scale;Extra1.zw=ProjectProximity(Blob_Position_2,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz2)/Relative_Scale;Distance_To_Face=dot(Active_Face_Dir,Position-Active_Face_Center);Intensity=1.0-clamp(min(distz1,distz2)/Proximity_Far_Distance,0.0,1.0);}\nvoid Holo_Edge_Vertex_B44(\nvec3 Incident,\nvec3 Normal,\nvec2 UV,\nvec3 Tangent,\nvec3 Bitangent,\nbool Smooth_Active_Face,\nfloat Active,\nout vec4 Holo_Edges)\n{float NdotI=dot(Incident,Normal);vec2 flip=(UV-vec2(0.5,0.5));float udot=dot(Incident,Tangent)*flip.x*NdotI;float uval=1.0-float(udot>0.0);float vdot=-dot(Incident,Bitangent)*flip.y*NdotI;float vval=1.0-float(vdot>0.0);float Smooth_And_Active=step(1.0,float(Smooth_Active_Face && Active>0.0));uval=mix(uval,max(1.0,uval),Smooth_And_Active); \nvval=mix(vval,max(1.0,vval),Smooth_And_Active);Holo_Edges=vec4(1.0,1.0,1.0,1.0)-vec4(uval*UV.x,uval*(1.0-UV.x),vval*UV.y,vval*(1.0-UV.y));}\nvoid Object_To_World_Pos_B13(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{Pos_World=(world*vec4(Pos_Object,1.0)).xyz;}\nvoid Choose_Blob_B38(\nvec4 Vx_Color,\nvec3 Position1,\nvec3 Position2,\nbool Blob_Enable_1,\nbool Blob_Enable_2,\nfloat Near_Size_1,\nfloat Near_Size_2,\nfloat Blob_Inner_Fade_1,\nfloat Blob_Inner_Fade_2,\nfloat Blob_Pulse_1,\nfloat Blob_Pulse_2,\nfloat Blob_Fade_1,\nfloat Blob_Fade_2,\nout vec3 Position,\nout float Near_Size,\nout float Inner_Fade,\nout float Blob_Enable,\nout float Fade,\nout float Pulse)\n{Position=Position1*(1.0-Vx_Color.g)+Vx_Color.g*Position2;float b1=float(Blob_Enable_1);float b2=float(Blob_Enable_2);Blob_Enable=b1+(b2-b1)*Vx_Color.g;Pulse=Blob_Pulse_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Pulse_2;Fade=Blob_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Fade_2;Near_Size=Near_Size_1*(1.0-Vx_Color.g)+Vx_Color.g*Near_Size_2;Inner_Fade=Blob_Inner_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Inner_Fade_2;}\nvoid Wireframe_Vertex_B51(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Edge_Width,\nvec2 Face_Size,\nout vec3 Wire_Vx_Pos,\nout vec2 UV,\nout vec2 Widths)\n{Widths.xy=Edge_Width/Face_Size;float x=dot(Position,Tangent);float y=dot(Position,Bitangent);float dx=0.5-abs(x);float newx=(0.5-dx*Widths.x*2.0)*sign(x);float dy=0.5-abs(y);float newy=(0.5-dy*Widths.y*2.0)*sign(y);Wire_Vx_Pos=Normal*0.5+newx*Tangent+newy*Bitangent;UV.x=dot(Wire_Vx_Pos,Tangent)+0.5;UV.y=dot(Wire_Vx_Pos,Bitangent)+0.5;}\nvec2 ramp2(vec2 start,vec2 end,vec2 x)\n{return clamp((x-start)/(end-start),vec2(0.0,0.0),vec2(1.0,1.0));}\nfloat computeSelection(\nvec3 blobPosition,\nvec3 normal,\nvec3 tangent,\nvec3 bitangent,\nvec3 faceCenter,\nvec2 faceSize,\nfloat selectionFuzz,\nfloat farDistance,\nfloat fadeLength\n)\n{vec3 delta=blobPosition-faceCenter;float absD=abs(dot(delta,normal));float fadeIn=1.0-clamp((absD-farDistance)/fadeLength,0.0,1.0);vec2 blobCenterXY=vec2(dot(delta,tangent),dot(delta,bitangent));vec2 innerFace=faceSize*(1.0-selectionFuzz)*0.5;vec2 selectPulse=ramp2(-faceSize*0.5,-innerFace,blobCenterXY)-ramp2(innerFace,faceSize*0.5,blobCenterXY);return selectPulse.x*selectPulse.y*fadeIn;}\nvoid Selection_Vertex_B48(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Face_Center,\nvec2 Face_Size,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Selection_Fuzz,\nfloat Selected,\nfloat Far_Distance,\nfloat Fade_Length,\nvec3 Active_Face_Dir,\nout float Show_Selection)\n{float select1=computeSelection(Blob_Position,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);float select2=computeSelection(Blob_Position_2,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);float Active=max(0.0,dot(Active_Face_Dir,Normal));Show_Selection=mix(max(select1,select2),1.0,Selected)*Active;}\nvoid Proximity_Visibility_B54(\nfloat Selection,\nvec3 Proximity_Center,\nvec3 Proximity_Center_2,\nfloat Input_Width,\nfloat Proximity_Far_Distance,\nfloat Proximity_Radius,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nout float Width)\n{vec3 boxEdges=(world*vec4(vec3(0.5,0.5,0.5),0.0)).xyz;float boxMaxSize=length(boxEdges);float d1=dot(Proximity_Center-Active_Face_Center,Active_Face_Dir);vec3 blob1=Proximity_Center-d1*Active_Face_Dir;float d2=dot(Proximity_Center_2-Active_Face_Center,Active_Face_Dir);vec3 blob2=Proximity_Center_2-d2*Active_Face_Dir;vec3 delta1=blob1-Active_Face_Center;vec3 delta2=blob2-Active_Face_Center;float dist1=dot(delta1,delta1);float dist2=dot(delta2,delta2);float nearestProxDist=sqrt(min(dist1,dist2));Width=Input_Width*(1.0-step(boxMaxSize+Proximity_Radius,nearestProxDist))*(1.0-step(Proximity_Far_Distance,min(d1,d2))*(1.0-step(0.0001,Selection)));}\nvoid Object_To_World_Dir_B67(\nvec3 Dir_Object,\nout vec3 Dir_World)\n{Dir_World=(world*vec4(Dir_Object,0.0)).xyz;}\nvoid main()\n{vec3 Active_Face_Center_Q49;Active_Face_Center_Q49=(world*vec4(_Active_Face_Dir_*0.5,1.0)).xyz;vec3 Blob_Position_Q41= mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(Use_Global_Left_Index));vec3 Blob_Position_Q42= mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(Use_Global_Right_Index));vec3 Active_Face_Dir_Q64=normalize((world*vec4(_Active_Face_Dir_,0.0)).xyz);float Relative_Scale_Q57;\n#if RELATIVE_WIDTH\nRelative_Scale_Q57=length((world*vec4(vec3(0,1,0),0.0)).xyz);\n#else\nRelative_Scale_Q57=1.0;\n#endif\nvec3 Tangent_World_Q30;Tangent_World_Q30=(world*vec4(tangent,0.0)).xyz;vec3 Binormal_World_Q31;Binormal_World_Q31=(world*vec4((cross(normal,tangent)),0.0)).xyz;vec3 Normal_World_Q60;Normal_World_Q60=(world*vec4(normal,0.0)).xyz;vec3 Result_Q18=0.5*normal;vec3 Dir_World_Q67;Object_To_World_Dir_B67(_Active_Face_Up_,Dir_World_Q67);float Product_Q56=_Edge_Width_*Relative_Scale_Q57;vec3 Normal_World_N_Q29=normalize(Normal_World_Q60);vec3 Tangent_World_N_Q28=normalize(Tangent_World_Q30);vec3 Binormal_World_N_Q32=normalize(Binormal_World_Q31);vec3 Position_Q38;float Near_Size_Q38;float Inner_Fade_Q38;float Blob_Enable_Q38;float Fade_Q38;float Pulse_Q38;Choose_Blob_B38(color,Blob_Position_Q41,Blob_Position_Q42,_Blob_Enable_,_Blob_Enable_2_,_Blob_Near_Size_,_Blob_Near_Size_2_,_Blob_Inner_Fade_,_Blob_Inner_Fade_2_,_Blob_Pulse_,_Blob_Pulse_2_,_Blob_Fade_,_Blob_Fade_2_,Position_Q38,Near_Size_Q38,Inner_Fade_Q38,Blob_Enable_Q38,Fade_Q38,Pulse_Q38);vec3 Face_Center_Q33;Face_Center_Q33=(world*vec4(Result_Q18,1.0)).xyz;vec2 Face_Size_Q50=vec2(length(Tangent_World_Q30),length(Binormal_World_Q31));float Show_Selection_Q48;Selection_Vertex_B48(Blob_Position_Q41,Blob_Position_Q42,Face_Center_Q33,Face_Size_Q50,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,_Selection_Fuzz_,_Selected_,_Selected_Distance_,_Selected_Fade_Length_,Active_Face_Dir_Q64,Show_Selection_Q48);vec3 Normalized_Q72=normalize(Dir_World_Q67);float Active_Q34=max(0.0,dot(Active_Face_Dir_Q64,Normal_World_N_Q29));float Width_Q54;Proximity_Visibility_B54(Show_Selection_Q48,Blob_Position_Q41,Blob_Position_Q42,Product_Q56,_Proximity_Far_Distance_,_Proximity_Near_Radius_,Active_Face_Center_Q49,Active_Face_Dir_Q64,Width_Q54);vec3 Wire_Vx_Pos_Q51;vec2 UV_Q51;vec2 Widths_Q51;Wireframe_Vertex_B51(position,normal,tangent,(cross(normal,tangent)),Width_Q54,Face_Size_Q50,Wire_Vx_Pos_Q51,UV_Q51,Widths_Q51);vec3 Vec3_Q27=vec3(Widths_Q51.x,Widths_Q51.y,color.r);vec3 Pos_World_Q13;Object_To_World_Pos_B13(Wire_Vx_Pos_Q51,Pos_World_Q13);vec3 Incident_Q36=normalize(Pos_World_Q13-cameraPosition);vec3 Out_Position_Q47;vec2 Out_UV_Q47;vec3 Blob_Info_Q47;Blob_Vertex_B47(Pos_World_Q13,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,Position_Q38,_Blob_Intensity_,Near_Size_Q38,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,color,uv,Face_Center_Q33,Face_Size_Q50,UV_Q51,_Blob_Fade_Length_,_Selection_Fade_,_Selection_Fade_Size_,Inner_Fade_Q38,Active_Face_Center_Q49,Pulse_Q38,Fade_Q38,Blob_Enable_Q38,Out_Position_Q47,Out_UV_Q47,Blob_Info_Q47);vec4 Extra1_Q66;float Distance_To_Face_Q66;float Intensity_Q66;Proximity_Vertex_B66(Blob_Position_Q41,Blob_Position_Q42,Active_Face_Center_Q49,Active_Face_Dir_Q64,Pos_World_Q13,_Proximity_Far_Distance_,Relative_Scale_Q57,_Proximity_Anisotropy_,Normalized_Q72,Extra1_Q66,Distance_To_Face_Q66,Intensity_Q66);vec4 Holo_Edges_Q44;Holo_Edge_Vertex_B44(Incident_Q36,Normal_World_N_Q29,uv,Tangent_World_Q30,Binormal_World_Q31,_Smooth_Active_Face_,Active_Q34,Holo_Edges_Q44);vec3 Vec3_Q19=vec3(Show_Selection_Q48,Distance_To_Face_Q66,Intensity_Q66);vec3 Position=Out_Position_Q47;vec2 UV=Out_UV_Q47;vec3 Tangent=Blob_Info_Q47;vec3 Binormal=Vec3_Q19;vec3 Normal=Vec3_Q27;vec4 Extra1=Extra1_Q66;vec4 Color=Holo_Edges_Q44;gl_Position=viewProjection*vec4(Position,1);vPosition=Position;vNormal=Normal;vUV=UV;vTangent=Tangent;vBinormal=Binormal;vColor=Color;vExtra1=Extra1;}";
8253
- t.ShaderStore.ShadersStore[Ei] || (t.ShaderStore.ShadersStore[Ei] = Di);
8254
- var Li = { __proto__: null, fluentButtonVertexShader: { name: Ei, shader: Di } };
8263
+ var Ei = "fluentButtonVertexShader", Li = "uniform mat4 world;uniform mat4 viewProjection;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;attribute vec3 tangent;attribute vec4 color;uniform float _Edge_Width_;uniform vec4 _Edge_Color_;uniform float _Proximity_Max_Intensity_;uniform float _Proximity_Far_Distance_;uniform float _Proximity_Near_Radius_;uniform float _Proximity_Anisotropy_;uniform float _Selection_Fuzz_;uniform float _Selected_;uniform float _Selection_Fade_;uniform float _Selection_Fade_Size_;uniform float _Selected_Distance_;uniform float _Selected_Fade_Length_;uniform bool _Blob_Enable_;uniform vec3 _Blob_Position_;uniform float _Blob_Intensity_;uniform float _Blob_Near_Size_;uniform float _Blob_Far_Size_;uniform float _Blob_Near_Distance_;uniform float _Blob_Far_Distance_;uniform float _Blob_Fade_Length_;uniform float _Blob_Inner_Fade_;uniform float _Blob_Pulse_;uniform float _Blob_Fade_;uniform sampler2D _Blob_Texture_;uniform bool _Blob_Enable_2_;uniform vec3 _Blob_Position_2_;uniform float _Blob_Near_Size_2_;uniform float _Blob_Inner_Fade_2_;uniform float _Blob_Pulse_2_;uniform float _Blob_Fade_2_;uniform vec3 _Active_Face_Dir_;uniform vec3 _Active_Face_Up_;uniform bool _Enable_Fade_;uniform float _Fade_Width_;uniform bool _Smooth_Active_Face_;uniform bool _Show_Frame_;uniform bool Use_Global_Left_Index;uniform bool Use_Global_Right_Index;uniform vec4 Global_Left_Index_Tip_Position;uniform vec4 Global_Right_Index_Tip_Position;uniform vec4 Global_Left_Thumb_Tip_Position;uniform vec4 Global_Right_Thumb_Tip_Position;uniform float Global_Left_Index_Tip_Proximity;uniform float Global_Right_Index_Tip_Proximity;varying vec3 vPosition;varying vec3 vNormal;varying vec2 vUV;varying vec3 vTangent;varying vec3 vBinormal;varying vec4 vColor;varying vec4 vExtra1;void Blob_Vertex_B47(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nvec4 Vx_Color,\nvec2 UV,\nvec3 Face_Center,\nvec2 Face_Size,\nvec2 In_UV,\nfloat Blob_Fade_Length,\nfloat Selection_Fade,\nfloat Selection_Fade_Size,\nfloat Inner_Fade,\nvec3 Active_Face_Center,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nfloat Blob_Enabled,\nout vec3 Out_Position,\nout vec2 Out_UV,\nout vec3 Blob_Info)\n{float blobSize,fadeIn;vec3 Hit_Position;Blob_Info=vec3(0.0,0.0,0.0);float Hit_Distance=dot(Blob_Position-Face_Center,Normal);Hit_Position=Blob_Position-Hit_Distance*Normal;float absD=abs(Hit_Distance);float lerpVal=clamp((absD-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);fadeIn=1.0-clamp((absD-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);float innerFade=1.0-clamp(-Hit_Distance/Inner_Fade,0.0,1.0);float farClip=clamp(1.0-step(Blob_Far_Distance+Blob_Fade_Length,absD),0.0,1.0);float size=mix(Blob_Near_Size,Blob_Far_Size,lerpVal)*farClip;blobSize=mix(size,Selection_Fade_Size,Selection_Fade)*innerFade*Blob_Enabled;Blob_Info.x=lerpVal*0.5+0.5;Blob_Info.y=fadeIn*Intensity*(1.0-Selection_Fade)*Blob_Fade;Blob_Info.x*=(1.0-Blob_Pulse);vec3 delta=Hit_Position-Face_Center;vec2 blobCenterXY=vec2(dot(delta,Tangent),dot(delta,Bitangent));vec2 quadUVin=2.0*UV-1.0; \nvec2 blobXY=blobCenterXY+quadUVin*blobSize;vec2 blobClipped=clamp(blobXY,-Face_Size*0.5,Face_Size*0.5);vec2 blobUV=(blobClipped-blobCenterXY)/max(blobSize,0.0001)*2.0;vec3 blobCorner=Face_Center+blobClipped.x*Tangent+blobClipped.y*Bitangent;Out_Position=mix(Position,blobCorner,Vx_Color.rrr);Out_UV=mix(In_UV,blobUV,Vx_Color.rr);}\nvec2 ProjectProximity(\nvec3 blobPosition,\nvec3 position,\nvec3 center,\nvec3 dir,\nvec3 xdir,\nvec3 ydir,\nout float vdistance\n)\n{vec3 delta=blobPosition-position;vec2 xy=vec2(dot(delta,xdir),dot(delta,ydir));vdistance=abs(dot(delta,dir));return xy;}\nvoid Proximity_Vertex_B66(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nvec3 Position,\nfloat Proximity_Far_Distance,\nfloat Relative_Scale,\nfloat Proximity_Anisotropy,\nvec3 Up,\nout vec4 Extra1,\nout float Distance_To_Face,\nout float Intensity)\n{vec3 Active_Face_Dir_X=normalize(cross(Active_Face_Dir,Up));vec3 Active_Face_Dir_Y=cross(Active_Face_Dir,Active_Face_Dir_X);float distz1,distz2;Extra1.xy=ProjectProximity(Blob_Position,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz1)/Relative_Scale;Extra1.zw=ProjectProximity(Blob_Position_2,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz2)/Relative_Scale;Distance_To_Face=dot(Active_Face_Dir,Position-Active_Face_Center);Intensity=1.0-clamp(min(distz1,distz2)/Proximity_Far_Distance,0.0,1.0);}\nvoid Holo_Edge_Vertex_B44(\nvec3 Incident,\nvec3 Normal,\nvec2 UV,\nvec3 Tangent,\nvec3 Bitangent,\nbool Smooth_Active_Face,\nfloat Active,\nout vec4 Holo_Edges)\n{float NdotI=dot(Incident,Normal);vec2 flip=(UV-vec2(0.5,0.5));float udot=dot(Incident,Tangent)*flip.x*NdotI;float uval=1.0-float(udot>0.0);float vdot=-dot(Incident,Bitangent)*flip.y*NdotI;float vval=1.0-float(vdot>0.0);float Smooth_And_Active=step(1.0,float(Smooth_Active_Face && Active>0.0));uval=mix(uval,max(1.0,uval),Smooth_And_Active); \nvval=mix(vval,max(1.0,vval),Smooth_And_Active);Holo_Edges=vec4(1.0,1.0,1.0,1.0)-vec4(uval*UV.x,uval*(1.0-UV.x),vval*UV.y,vval*(1.0-UV.y));}\nvoid Object_To_World_Pos_B13(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{Pos_World=(world*vec4(Pos_Object,1.0)).xyz;}\nvoid Choose_Blob_B38(\nvec4 Vx_Color,\nvec3 Position1,\nvec3 Position2,\nbool Blob_Enable_1,\nbool Blob_Enable_2,\nfloat Near_Size_1,\nfloat Near_Size_2,\nfloat Blob_Inner_Fade_1,\nfloat Blob_Inner_Fade_2,\nfloat Blob_Pulse_1,\nfloat Blob_Pulse_2,\nfloat Blob_Fade_1,\nfloat Blob_Fade_2,\nout vec3 Position,\nout float Near_Size,\nout float Inner_Fade,\nout float Blob_Enable,\nout float Fade,\nout float Pulse)\n{Position=Position1*(1.0-Vx_Color.g)+Vx_Color.g*Position2;float b1=float(Blob_Enable_1);float b2=float(Blob_Enable_2);Blob_Enable=b1+(b2-b1)*Vx_Color.g;Pulse=Blob_Pulse_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Pulse_2;Fade=Blob_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Fade_2;Near_Size=Near_Size_1*(1.0-Vx_Color.g)+Vx_Color.g*Near_Size_2;Inner_Fade=Blob_Inner_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Inner_Fade_2;}\nvoid Wireframe_Vertex_B51(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Edge_Width,\nvec2 Face_Size,\nout vec3 Wire_Vx_Pos,\nout vec2 UV,\nout vec2 Widths)\n{Widths.xy=Edge_Width/Face_Size;float x=dot(Position,Tangent);float y=dot(Position,Bitangent);float dx=0.5-abs(x);float newx=(0.5-dx*Widths.x*2.0)*sign(x);float dy=0.5-abs(y);float newy=(0.5-dy*Widths.y*2.0)*sign(y);Wire_Vx_Pos=Normal*0.5+newx*Tangent+newy*Bitangent;UV.x=dot(Wire_Vx_Pos,Tangent)+0.5;UV.y=dot(Wire_Vx_Pos,Bitangent)+0.5;}\nvec2 ramp2(vec2 start,vec2 end,vec2 x)\n{return clamp((x-start)/(end-start),vec2(0.0,0.0),vec2(1.0,1.0));}\nfloat computeSelection(\nvec3 blobPosition,\nvec3 normal,\nvec3 tangent,\nvec3 bitangent,\nvec3 faceCenter,\nvec2 faceSize,\nfloat selectionFuzz,\nfloat farDistance,\nfloat fadeLength\n)\n{vec3 delta=blobPosition-faceCenter;float absD=abs(dot(delta,normal));float fadeIn=1.0-clamp((absD-farDistance)/fadeLength,0.0,1.0);vec2 blobCenterXY=vec2(dot(delta,tangent),dot(delta,bitangent));vec2 innerFace=faceSize*(1.0-selectionFuzz)*0.5;vec2 selectPulse=ramp2(-faceSize*0.5,-innerFace,blobCenterXY)-ramp2(innerFace,faceSize*0.5,blobCenterXY);return selectPulse.x*selectPulse.y*fadeIn;}\nvoid Selection_Vertex_B48(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Face_Center,\nvec2 Face_Size,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Selection_Fuzz,\nfloat Selected,\nfloat Far_Distance,\nfloat Fade_Length,\nvec3 Active_Face_Dir,\nout float Show_Selection)\n{float select1=computeSelection(Blob_Position,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);float select2=computeSelection(Blob_Position_2,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);float Active=max(0.0,dot(Active_Face_Dir,Normal));Show_Selection=mix(max(select1,select2),1.0,Selected)*Active;}\nvoid Proximity_Visibility_B54(\nfloat Selection,\nvec3 Proximity_Center,\nvec3 Proximity_Center_2,\nfloat Input_Width,\nfloat Proximity_Far_Distance,\nfloat Proximity_Radius,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nout float Width)\n{vec3 boxEdges=(world*vec4(vec3(0.5,0.5,0.5),0.0)).xyz;float boxMaxSize=length(boxEdges);float d1=dot(Proximity_Center-Active_Face_Center,Active_Face_Dir);vec3 blob1=Proximity_Center-d1*Active_Face_Dir;float d2=dot(Proximity_Center_2-Active_Face_Center,Active_Face_Dir);vec3 blob2=Proximity_Center_2-d2*Active_Face_Dir;vec3 delta1=blob1-Active_Face_Center;vec3 delta2=blob2-Active_Face_Center;float dist1=dot(delta1,delta1);float dist2=dot(delta2,delta2);float nearestProxDist=sqrt(min(dist1,dist2));Width=Input_Width*(1.0-step(boxMaxSize+Proximity_Radius,nearestProxDist))*(1.0-step(Proximity_Far_Distance,min(d1,d2))*(1.0-step(0.0001,Selection)));}\nvoid Object_To_World_Dir_B67(\nvec3 Dir_Object,\nout vec3 Dir_World)\n{Dir_World=(world*vec4(Dir_Object,0.0)).xyz;}\nvoid main()\n{vec3 Active_Face_Center_Q49;Active_Face_Center_Q49=(world*vec4(_Active_Face_Dir_*0.5,1.0)).xyz;vec3 Blob_Position_Q41= mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(Use_Global_Left_Index));vec3 Blob_Position_Q42= mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(Use_Global_Right_Index));vec3 Active_Face_Dir_Q64=normalize((world*vec4(_Active_Face_Dir_,0.0)).xyz);float Relative_Scale_Q57;\n#if RELATIVE_WIDTH\nRelative_Scale_Q57=length((world*vec4(vec3(0,1,0),0.0)).xyz);\n#else\nRelative_Scale_Q57=1.0;\n#endif\nvec3 Tangent_World_Q30;Tangent_World_Q30=(world*vec4(tangent,0.0)).xyz;vec3 Binormal_World_Q31;Binormal_World_Q31=(world*vec4((cross(normal,tangent)),0.0)).xyz;vec3 Normal_World_Q60;Normal_World_Q60=(world*vec4(normal,0.0)).xyz;vec3 Result_Q18=0.5*normal;vec3 Dir_World_Q67;Object_To_World_Dir_B67(_Active_Face_Up_,Dir_World_Q67);float Product_Q56=_Edge_Width_*Relative_Scale_Q57;vec3 Normal_World_N_Q29=normalize(Normal_World_Q60);vec3 Tangent_World_N_Q28=normalize(Tangent_World_Q30);vec3 Binormal_World_N_Q32=normalize(Binormal_World_Q31);vec3 Position_Q38;float Near_Size_Q38;float Inner_Fade_Q38;float Blob_Enable_Q38;float Fade_Q38;float Pulse_Q38;Choose_Blob_B38(color,Blob_Position_Q41,Blob_Position_Q42,_Blob_Enable_,_Blob_Enable_2_,_Blob_Near_Size_,_Blob_Near_Size_2_,_Blob_Inner_Fade_,_Blob_Inner_Fade_2_,_Blob_Pulse_,_Blob_Pulse_2_,_Blob_Fade_,_Blob_Fade_2_,Position_Q38,Near_Size_Q38,Inner_Fade_Q38,Blob_Enable_Q38,Fade_Q38,Pulse_Q38);vec3 Face_Center_Q33;Face_Center_Q33=(world*vec4(Result_Q18,1.0)).xyz;vec2 Face_Size_Q50=vec2(length(Tangent_World_Q30),length(Binormal_World_Q31));float Show_Selection_Q48;Selection_Vertex_B48(Blob_Position_Q41,Blob_Position_Q42,Face_Center_Q33,Face_Size_Q50,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,_Selection_Fuzz_,_Selected_,_Selected_Distance_,_Selected_Fade_Length_,Active_Face_Dir_Q64,Show_Selection_Q48);vec3 Normalized_Q72=normalize(Dir_World_Q67);float Active_Q34=max(0.0,dot(Active_Face_Dir_Q64,Normal_World_N_Q29));float Width_Q54;Proximity_Visibility_B54(Show_Selection_Q48,Blob_Position_Q41,Blob_Position_Q42,Product_Q56,_Proximity_Far_Distance_,_Proximity_Near_Radius_,Active_Face_Center_Q49,Active_Face_Dir_Q64,Width_Q54);vec3 Wire_Vx_Pos_Q51;vec2 UV_Q51;vec2 Widths_Q51;Wireframe_Vertex_B51(position,normal,tangent,(cross(normal,tangent)),Width_Q54,Face_Size_Q50,Wire_Vx_Pos_Q51,UV_Q51,Widths_Q51);vec3 Vec3_Q27=vec3(Widths_Q51.x,Widths_Q51.y,color.r);vec3 Pos_World_Q13;Object_To_World_Pos_B13(Wire_Vx_Pos_Q51,Pos_World_Q13);vec3 Incident_Q36=normalize(Pos_World_Q13-cameraPosition);vec3 Out_Position_Q47;vec2 Out_UV_Q47;vec3 Blob_Info_Q47;Blob_Vertex_B47(Pos_World_Q13,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,Position_Q38,_Blob_Intensity_,Near_Size_Q38,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,color,uv,Face_Center_Q33,Face_Size_Q50,UV_Q51,_Blob_Fade_Length_,_Selection_Fade_,_Selection_Fade_Size_,Inner_Fade_Q38,Active_Face_Center_Q49,Pulse_Q38,Fade_Q38,Blob_Enable_Q38,Out_Position_Q47,Out_UV_Q47,Blob_Info_Q47);vec4 Extra1_Q66;float Distance_To_Face_Q66;float Intensity_Q66;Proximity_Vertex_B66(Blob_Position_Q41,Blob_Position_Q42,Active_Face_Center_Q49,Active_Face_Dir_Q64,Pos_World_Q13,_Proximity_Far_Distance_,Relative_Scale_Q57,_Proximity_Anisotropy_,Normalized_Q72,Extra1_Q66,Distance_To_Face_Q66,Intensity_Q66);vec4 Holo_Edges_Q44;Holo_Edge_Vertex_B44(Incident_Q36,Normal_World_N_Q29,uv,Tangent_World_Q30,Binormal_World_Q31,_Smooth_Active_Face_,Active_Q34,Holo_Edges_Q44);vec3 Vec3_Q19=vec3(Show_Selection_Q48,Distance_To_Face_Q66,Intensity_Q66);vec3 Position=Out_Position_Q47;vec2 UV=Out_UV_Q47;vec3 Tangent=Blob_Info_Q47;vec3 Binormal=Vec3_Q19;vec3 Normal=Vec3_Q27;vec4 Extra1=Extra1_Q66;vec4 Color=Holo_Edges_Q44;gl_Position=viewProjection*vec4(Position,1);vPosition=Position;vNormal=Normal;vUV=UV;vTangent=Tangent;vBinormal=Binormal;vColor=Color;vExtra1=Extra1;}";
8264
+ t.ShaderStore.ShadersStore[Ei] || (t.ShaderStore.ShadersStore[Ei] = Li);
8265
+ var Di = { __proto__: null, fluentButtonVertexShader: { name: Ei, shader: Li } };
8255
8266
  Qt();
8256
8267
  var zi = "fluentBackplatePixelShader", Ni = "uniform vec3 cameraPosition;varying vec3 vPosition;varying vec3 vNormal;varying vec2 vUV;varying vec3 vTangent;varying vec3 vBinormal;varying vec4 vColor;varying vec4 vExtra1;varying vec4 vExtra2;varying vec4 vExtra3;uniform float _Radius_;uniform float _Line_Width_;uniform bool _Absolute_Sizes_;uniform float _Filter_Width_;uniform vec4 _Base_Color_;uniform vec4 _Line_Color_;uniform float _Radius_Top_Left_;uniform float _Radius_Top_Right_;uniform float _Radius_Bottom_Left_;uniform float _Radius_Bottom_Right_;uniform vec3 _Blob_Position_;uniform float _Blob_Intensity_;uniform float _Blob_Near_Size_;uniform float _Blob_Far_Size_;uniform float _Blob_Near_Distance_;uniform float _Blob_Far_Distance_;uniform float _Blob_Fade_Length_;uniform float _Blob_Pulse_;uniform float _Blob_Fade_;uniform sampler2D _Blob_Texture_;uniform vec3 _Blob_Position_2_;uniform float _Blob_Near_Size_2_;uniform float _Blob_Pulse_2_;uniform float _Blob_Fade_2_;uniform float _Rate_;uniform vec4 _Highlight_Color_;uniform float _Highlight_Width_;uniform vec4 _Highlight_Transform_;uniform float _Highlight_;uniform float _Iridescence_Intensity_;uniform float _Iridescence_Edge_Intensity_;uniform float _Angle_;uniform float _Fade_Out_;uniform bool _Reflected_;uniform float _Frequency_;uniform float _Vertical_Offset_;uniform sampler2D _Iridescent_Map_;uniform bool _Use_Global_Left_Index_;uniform bool _Use_Global_Right_Index_;uniform vec4 Global_Left_Index_Tip_Position;uniform vec4 Global_Right_Index_Tip_Position;void Round_Rect_Fragment_B31(\nfloat Radius,\nfloat Line_Width,\nvec4 Line_Color,\nfloat Filter_Width,\nvec2 UV,\nfloat Line_Visibility,\nvec4 Rect_Parms,\nvec4 Fill_Color,\nout vec4 Color)\n{float d=length(max(abs(UV)-Rect_Parms.xy,0.0));float dx=max(fwidth(d)*Filter_Width,0.00001);float g=min(Rect_Parms.z,Rect_Parms.w);float dgrad=max(fwidth(g)*Filter_Width,0.00001);float Inside_Rect=clamp(g/dgrad,0.0,1.0);float inner=clamp((d+dx*0.5-max(Radius-Line_Width,d-dx*0.5))/dx,0.0,1.0);Color=clamp(mix(Fill_Color,Line_Color,inner),0.0,1.0)*Inside_Rect;}\nvoid Blob_Fragment_B71(\nsampler2D Blob_Texture,\nvec4 Blob_Info1,\nvec4 Blob_Info2,\nout vec4 Blob_Color)\n{float k1=dot(Blob_Info1.xy,Blob_Info1.xy);float k2=dot(Blob_Info2.xy,Blob_Info2.xy);vec3 closer=k1<k2 ? vec3(k1,Blob_Info1.z,Blob_Info1.w) : vec3(k2,Blob_Info2.z,Blob_Info2.w);Blob_Color=closer.z*texture(Blob_Texture,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);}\nvoid Line_Fragment_B48(\nvec4 Base_Color,\nvec4 Highlight_Color,\nfloat Highlight_Width,\nvec3 Line_Vertex,\nfloat Highlight,\nout vec4 Line_Color)\n{float k2=1.0-clamp(abs(Line_Vertex.y/Highlight_Width),0.0,1.0);Line_Color=mix(Base_Color,Highlight_Color,Highlight*k2);}\nvoid Scale_RGB_B54(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{Result=vec4(Scalar,Scalar,Scalar,1)*Color;}\nvoid Conditional_Float_B38(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{Result=Which ? If_True : If_False;}\nvoid main()\n{float R_Q72;float G_Q72;float B_Q72;float A_Q72;R_Q72=vColor.r; G_Q72=vColor.g; B_Q72=vColor.b; A_Q72=vColor.a;vec4 Blob_Color_Q71;\n#if BLOB_ENABLE\nfloat k1=dot(vExtra2.xy,vExtra2.xy);float k2=dot(vExtra3.xy,vExtra3.xy);vec3 closer=k1<k2 ? vec3(k1,vExtra2.z,vExtra2.w) : vec3(k2,vExtra3.z,vExtra3.w);Blob_Color_Q71=closer.z*texture(_Blob_Texture_,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);\n#else\nBlob_Color_Q71=vec4(0,0,0,0);\n#endif\nvec4 Line_Color_Q48;Line_Fragment_B48(_Line_Color_,_Highlight_Color_,_Highlight_Width_,vTangent,_Highlight_,Line_Color_Q48);float X_Q67;float Y_Q67;X_Q67=vUV.x;Y_Q67=vUV.y;vec3 Incident_Q66=normalize(vPosition-cameraPosition);vec3 Reflected_Q60=reflect(Incident_Q66,vBinormal);float Product_Q63=Y_Q67*_Vertical_Offset_;float Dot_Q68=dot(Incident_Q66, Reflected_Q60);float Dot_Q57=dot(vNormal, Incident_Q66);float Result_Q38;Conditional_Float_B38(_Reflected_,Dot_Q68,Dot_Q57,Result_Q38);float Product_Q64=Result_Q38*_Frequency_;float Sum_Q69=Product_Q64+1.0;float Product_Q70=Sum_Q69*0.5;float Sum_Q62=Product_Q63+Product_Q70;float FractF_Q59=fract(Sum_Q62);vec2 Vec2_Q65=vec2(FractF_Q59,0.5);vec4 Color_Q58;\n#if IRIDESCENT_MAP_ENABLE\nColor_Q58=texture(_Iridescent_Map_,Vec2_Q65);\n#else\nColor_Q58=vec4(0,0,0,0);\n#endif\nvec4 Result_Q54;Scale_RGB_B54(Color_Q58,_Iridescence_Edge_Intensity_,Result_Q54);vec4 Result_Q55;Scale_RGB_B54(Color_Q58,_Iridescence_Intensity_,Result_Q55);vec4 Base_And_Iridescent_Q53;Base_And_Iridescent_Q53=Line_Color_Q48+vec4(Result_Q54.rgb,0.0);vec4 Base_And_Iridescent_Q56;Base_And_Iridescent_Q56=_Base_Color_+vec4(Result_Q55.rgb,0.0);vec4 Result_Q52=Base_And_Iridescent_Q53; Result_Q52.a=1.0;vec4 Result_Q35=Blob_Color_Q71+(1.0-Blob_Color_Q71.a)*Base_And_Iridescent_Q56;vec4 Color_Q31;Round_Rect_Fragment_B31(R_Q72,G_Q72,Result_Q52,_Filter_Width_,vUV,1.0,vExtra1,Result_Q35,Color_Q31);vec4 Result_Q47=_Fade_Out_*Color_Q31;vec4 Out_Color=Result_Q47;float Clip_Threshold=0.001;bool To_sRGB=false;gl_FragColor=Out_Color;}";
8257
8268
  t.ShaderStore.ShadersStore[zi] || (t.ShaderStore.ShadersStore[zi] = Ni);
@@ -8259,7 +8270,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8259
8270
  var Vi = "fluentBackplateVertexShader", Qi = "uniform mat4 world;uniform mat4 viewProjection;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;\n#ifdef TANGENT\nattribute vec3 tangent;\n#else\nconst vec3 tangent=vec3(0.);\n#endif\nuniform float _Radius_;uniform float _Line_Width_;uniform bool _Absolute_Sizes_;uniform float _Filter_Width_;uniform vec4 _Base_Color_;uniform vec4 _Line_Color_;uniform float _Radius_Top_Left_;uniform float _Radius_Top_Right_;uniform float _Radius_Bottom_Left_;uniform float _Radius_Bottom_Right_;uniform vec3 _Blob_Position_;uniform float _Blob_Intensity_;uniform float _Blob_Near_Size_;uniform float _Blob_Far_Size_;uniform float _Blob_Near_Distance_;uniform float _Blob_Far_Distance_;uniform float _Blob_Fade_Length_;uniform float _Blob_Pulse_;uniform float _Blob_Fade_;uniform sampler2D _Blob_Texture_;uniform vec3 _Blob_Position_2_;uniform float _Blob_Near_Size_2_;uniform float _Blob_Pulse_2_;uniform float _Blob_Fade_2_;uniform float _Rate_;uniform vec4 _Highlight_Color_;uniform float _Highlight_Width_;uniform vec4 _Highlight_Transform_;uniform float _Highlight_;uniform float _Iridescence_Intensity_;uniform float _Iridescence_Edge_Intensity_;uniform float _Angle_;uniform float _Fade_Out_;uniform bool _Reflected_;uniform float _Frequency_;uniform float _Vertical_Offset_;uniform sampler2D _Iridescent_Map_;uniform bool _Use_Global_Left_Index_;uniform bool _Use_Global_Right_Index_;uniform vec4 Global_Left_Index_Tip_Position;uniform vec4 Global_Right_Index_Tip_Position;varying vec3 vPosition;varying vec3 vNormal;varying vec2 vUV;varying vec3 vTangent;varying vec3 vBinormal;varying vec4 vColor;varying vec4 vExtra1;varying vec4 vExtra2;varying vec4 vExtra3;void Object_To_World_Pos_B115(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{Pos_World=(world*vec4(Pos_Object,1.0)).xyz;}\nvoid PickDir_B140(\nfloat Degrees,\nvec3 DirX,\nvec3 DirY,\nout vec3 Dir)\n{float a=Degrees*3.14159/180.0;Dir=cos(a)*DirX+sin(a)*DirY;}\nvoid Round_Rect_Vertex_B139(\nvec2 UV,\nfloat Radius,\nfloat Margin,\nfloat Anisotropy,\nfloat Gradient1,\nfloat Gradient2,\nout vec2 Rect_UV,\nout vec4 Rect_Parms,\nout vec2 Scale_XY,\nout vec2 Line_UV)\n{Scale_XY=vec2(Anisotropy,1.0);Line_UV=(UV-vec2(0.5,0.5));Rect_UV=Line_UV*Scale_XY;Rect_Parms.xy=Scale_XY*0.5-vec2(Radius,Radius)-vec2(Margin,Margin);Rect_Parms.z=Gradient1; \nRect_Parms.w=Gradient2;}\nvoid Line_Vertex_B135(\nvec2 Scale_XY,\nvec2 UV,\nfloat Time,\nfloat Rate,\nvec4 Highlight_Transform,\nout vec3 Line_Vertex)\n{float angle2=(Rate*Time)*2.0*3.1416;float sinAngle2=sin(angle2);float cosAngle2=cos(angle2);vec2 xformUV=UV*Highlight_Transform.xy+Highlight_Transform.zw;Line_Vertex.x=0.0;Line_Vertex.y=cosAngle2*xformUV.x-sinAngle2*xformUV.y;Line_Vertex.z=0.0; }\nvoid Blob_Vertex_B180(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{vec3 blob=Blob_Position;vec3 delta=blob-Position;float dist=dot(Normal,delta);float lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);float fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);float size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;vec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);float Fade=fadeValue*Intensity*Blob_Fade;float Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);Blob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);}\nvoid Move_Verts_B129(\nfloat Anisotropy,\nvec3 P,\nfloat Radius,\nout vec3 New_P,\nout vec2 New_UV,\nout float Radial_Gradient,\nout vec3 Radial_Dir)\n{vec2 UV=P.xy*2.0+0.5;vec2 center=clamp(UV,0.0,1.0);vec2 delta=UV-center;vec2 r2=2.0*vec2(Radius/Anisotropy,Radius);New_UV=center+r2*(UV-2.0*center+0.5);New_P=vec3(New_UV-0.5,P.z);Radial_Gradient=1.0-length(delta)*2.0;Radial_Dir=vec3(delta*r2,0.0);}\nvoid Object_To_World_Dir_B132(\nvec3 Dir_Object,\nout vec3 Binormal_World,\nout vec3 Binormal_World_N,\nout float Binormal_Length)\n{Binormal_World=(world*vec4(Dir_Object,0.0)).xyz;Binormal_Length=length(Binormal_World);Binormal_World_N=Binormal_World/Binormal_Length;}\nvoid RelativeOrAbsoluteDetail_B147(\nfloat Nominal_Radius,\nfloat Nominal_LineWidth,\nbool Absolute_Measurements,\nfloat Height,\nout float Radius,\nout float Line_Width)\n{float scale=Absolute_Measurements ? 1.0/Height : 1.0;Radius=Nominal_Radius*scale;Line_Width=Nominal_LineWidth*scale;}\nvoid Edge_AA_Vertex_B130(\nvec3 Position_World,\nvec3 Position_Object,\nvec3 Normal_Object,\nvec3 Eye,\nfloat Radial_Gradient,\nvec3 Radial_Dir,\nvec3 Tangent,\nout float Gradient1,\nout float Gradient2)\n{vec3 I=(Eye-Position_World);vec3 T=(world* vec4(Tangent,0.0)).xyz;float g=(dot(T,I)<0.0) ? 0.0 : 1.0;if (Normal_Object.z==0.0) { \nGradient1=Position_Object.z>0.0 ? g : 1.0;Gradient2=Position_Object.z>0.0 ? 1.0 : g;} else {Gradient1=g+(1.0-g)*(Radial_Gradient);Gradient2=1.0;}}\nvoid Pick_Radius_B144(\nfloat Radius,\nfloat Radius_Top_Left,\nfloat Radius_Top_Right,\nfloat Radius_Bottom_Left,\nfloat Radius_Bottom_Right,\nvec3 Position,\nout float Result)\n{bool whichY=Position.y>0.0;Result=Position.x<0.0 ? (whichY ? Radius_Top_Left : Radius_Bottom_Left) : (whichY ? Radius_Top_Right : Radius_Bottom_Right);Result*=Radius;}\nvoid main()\n{vec3 Nrm_World_Q128;Nrm_World_Q128=normalize((world*vec4(normal,0.0)).xyz);vec3 Tangent_World_Q131;vec3 Tangent_World_N_Q131;float Tangent_Length_Q131;Tangent_World_Q131=(world*vec4(vec3(1,0,0),0.0)).xyz;Tangent_Length_Q131=length(Tangent_World_Q131);Tangent_World_N_Q131=Tangent_World_Q131/Tangent_Length_Q131;vec3 Binormal_World_Q132;vec3 Binormal_World_N_Q132;float Binormal_Length_Q132;Object_To_World_Dir_B132(vec3(0,1,0),Binormal_World_Q132,Binormal_World_N_Q132,Binormal_Length_Q132);float Anisotropy_Q133=Tangent_Length_Q131/Binormal_Length_Q132;vec3 Result_Q177;Result_Q177=mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(_Use_Global_Left_Index_));vec3 Result_Q178;Result_Q178=mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(_Use_Global_Right_Index_));float Result_Q144;Pick_Radius_B144(_Radius_,_Radius_Top_Left_,_Radius_Top_Right_,_Radius_Bottom_Left_,_Radius_Bottom_Right_,position,Result_Q144);vec3 Dir_Q140;PickDir_B140(_Angle_,Tangent_World_N_Q131,Binormal_World_N_Q132,Dir_Q140);float Radius_Q147;float Line_Width_Q147;RelativeOrAbsoluteDetail_B147(Result_Q144,_Line_Width_,_Absolute_Sizes_,Binormal_Length_Q132,Radius_Q147,Line_Width_Q147);vec4 Out_Color_Q145=vec4(Radius_Q147,Line_Width_Q147,0,1);vec3 New_P_Q129;vec2 New_UV_Q129;float Radial_Gradient_Q129;vec3 Radial_Dir_Q129;Move_Verts_B129(Anisotropy_Q133,position,Radius_Q147,New_P_Q129,New_UV_Q129,Radial_Gradient_Q129,Radial_Dir_Q129);vec3 Pos_World_Q115;Object_To_World_Pos_B115(New_P_Q129,Pos_World_Q115);vec4 Blob_Info_Q180;\n#if BLOB_ENABLE\nBlob_Vertex_B180(Pos_World_Q115,Nrm_World_Q128,Tangent_World_N_Q131,Binormal_World_N_Q132,Result_Q177,_Blob_Intensity_,_Blob_Near_Size_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_,_Blob_Fade_,Blob_Info_Q180);\n#else\nBlob_Info_Q180=vec4(0,0,0,0);\n#endif\nvec4 Blob_Info_Q181;\n#if BLOB_ENABLE_2\nBlob_Vertex_B180(Pos_World_Q115,Nrm_World_Q128,Tangent_World_N_Q131,Binormal_World_N_Q132,Result_Q178,_Blob_Intensity_,_Blob_Near_Size_2_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_2_,_Blob_Fade_2_,Blob_Info_Q181);\n#else\nBlob_Info_Q181=vec4(0,0,0,0);\n#endif\nfloat Gradient1_Q130;float Gradient2_Q130;\n#if SMOOTH_EDGES\nEdge_AA_Vertex_B130(Pos_World_Q115,position,normal,cameraPosition,Radial_Gradient_Q129,Radial_Dir_Q129,tangent,Gradient1_Q130,Gradient2_Q130);\n#else\nGradient1_Q130=1.0;Gradient2_Q130=1.0;\n#endif\nvec2 Rect_UV_Q139;vec4 Rect_Parms_Q139;vec2 Scale_XY_Q139;vec2 Line_UV_Q139;Round_Rect_Vertex_B139(New_UV_Q129,Radius_Q147,0.0,Anisotropy_Q133,Gradient1_Q130,Gradient2_Q130,Rect_UV_Q139,Rect_Parms_Q139,Scale_XY_Q139,Line_UV_Q139);vec3 Line_Vertex_Q135;Line_Vertex_B135(Scale_XY_Q139,Line_UV_Q139,0.0,_Rate_,_Highlight_Transform_,Line_Vertex_Q135);vec3 Position=Pos_World_Q115;vec3 Normal=Dir_Q140;vec2 UV=Rect_UV_Q139;vec3 Tangent=Line_Vertex_Q135;vec3 Binormal=Nrm_World_Q128;vec4 Color=Out_Color_Q145;vec4 Extra1=Rect_Parms_Q139;vec4 Extra2=Blob_Info_Q180;vec4 Extra3=Blob_Info_Q181;gl_Position=viewProjection*vec4(Position,1);vPosition=Position;vNormal=Normal;vUV=UV;vTangent=Tangent;vBinormal=Binormal;vColor=Color;vExtra1=Extra1;vExtra2=Extra2;vExtra3=Extra3;}";
8260
8271
  t.ShaderStore.ShadersStore[Vi] || (t.ShaderStore.ShadersStore[Vi] = Qi);
8261
8272
  var Wi = { __proto__: null, fluentBackplateVertexShader: { name: Vi, shader: Qi } };
8262
- Dt();
8273
+ Lt();
8263
8274
  var Gi = "handleVertexShader", Hi = "precision highp float;attribute vec3 position;uniform vec3 positionOffset;uniform mat4 worldViewProjection;uniform float scale;void main(void) {vec4 vPos=vec4((vec3(position)+positionOffset)*scale,1.0);gl_Position=worldViewProjection*vPos;}";
8264
8275
  t.ShaderStore.ShadersStore[Gi] || (t.ShaderStore.ShadersStore[Gi] = Hi);
8265
8276
  var Ui = { __proto__: null, handleVertexShader: { name: Gi, shader: Hi } };
@@ -8309,12 +8320,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8309
8320
  set: function (e) {
8310
8321
  var e_256, _a;
8311
8322
  if (this._customControlScaling !== e && e > 0) {
8312
- var t_128 = e / this._customControlScaling;
8323
+ var t_127 = e / this._customControlScaling;
8313
8324
  this._customControlScaling = e;
8314
8325
  try {
8315
8326
  for (var _b = __values(this._rootContainer.children), _c = _b.next(); !_c.done; _c = _b.next()) {
8316
- var i_99 = _c.value;
8317
- i_99.scaling.scaleInPlace(t_128), 1 !== e && (i_99._isScaledByManager = !0);
8327
+ var i_100 = _c.value;
8328
+ i_100.scaling.scaleInPlace(t_127), 1 !== e && (i_100._isScaledByManager = !0);
8318
8329
  }
8319
8330
  }
8320
8331
  catch (e_256_1) { e_256 = { error: e_256_1 }; }
@@ -8353,7 +8364,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8353
8364
  return us;
8354
8365
  }());
8355
8366
  us.MRTK_REALISTIC_SCALING = .032;
8356
- var fs = { __proto__: null, AbstractButton3D: It, AdvancedDynamicTexture: ht, AdvancedDynamicTextureInstrumentation: ct, BaseGradient: it, BaseSlider: ye, Button: F, Button3D: St, Checkbox: A, CheckboxGroup: Re, ColorPicker: K, Container: x, Container3D: yt, Control: b, Control3D: pt, CornerHandle: Kt, CylinderPanel: Bt, DisplayGrid: Xe, Ellipse: $, FlexPanel: ae, FluentBackplateMaterial: Ft, FluentButtonMaterial: At, FluentMaterial: Tt, FluentMaterialDefines: Ct, FocusableButton: te, FrameGraphGUITask: dt, GUI3DManager: us, GizmoHandle: Xt, Grid: Y, HandMenu: Ot, HandleMaterial: Ut, get HandleState() { return e.HandleState; }, HolographicBackplate: Lt, HolographicButton: zt, HolographicSlate: qt, Image: k, ImageBasedSlider: Ze, ImageScrollBar: Le, InputPassword: he, InputText: G, InputTextArea: re, KeyPropertySet: Ge, Line: ue, LinearGradient: st, MRDLBackplateMaterial: ci, MRDLSliderBarMaterial: si, MRDLSliderThumbMaterial: ri, MathTools: g, Matrix2D: m, Measure: u, MeshButton3D: $t, MultiLine: be, MultiLinePoint: ge, NearMenu: Jt, NodeRenderGraphGUIBlock: ut, PlanePanel: ei, RadialGradient: ot, RadioButton: xe, RadioGroup: we, Rectangle: y, RegisterButton: D, RegisterCheckbox: Q, RegisterColorPicker: q, RegisterContainer: S, RegisterControl: p, RegisterDisplayGrid: Ke, RegisterEllipse: ee, RegisterFlexPanel: oe, RegisterFluentBackplateMaterial: Dt, RegisterFluentButtonMaterial: Qt, RegisterFluentMaterial: wt, RegisterFocusableButton: se, RegisterGUIStatics: tt, RegisterGrid: j, RegisterImage: M, RegisterImageBasedSlider: $e, RegisterInputPassword: de, RegisterInputText: U, RegisterInputTextArea: _e, RegisterLine: me, RegisterLinearGradient: nt, RegisterMRDLBackplateMaterial: ui, RegisterMRDLSliderBarMaterial: ni, RegisterMRDLSliderThumbMaterial: _i, RegisterMultiLine: pe, RegisterNodeRenderGraphGUIBlock: mt, RegisterRadialGradient: lt, RegisterRadioButton: Se, RegisterRectangle: B, RegisterScrollBar: De, RegisterScrollViewer: Ae, RegisterSlider: Ce, RegisterStackPanel: N, RegisterTextBlock: w, RegisterToggleButton: We, RegisterVirtualKeyboard: Ye, ScatterPanel: ti, ScrollBar: Fe, ScrollViewer: ze, SelectionPanel: Oe, SelectorGroup: Te, SideHandle: jt, SlateGizmo: Zt, Slider: Pe, Slider3D: fi, SliderGroup: ke, SpherePanel: mi, StackPanel: L, StackPanel3D: gi, Style: _t, TextBlock: T, TextWrapper: W, get TextWrapping() { return e.TextWrapping; }, ToggleButton: Ve, TouchButton3D: Wt, TouchHolographicButton: Gt, TouchHolographicButtonV3: Pi, TouchHolographicMenu: kt, TouchMeshButton3D: bi, ValueAndUnit: r, Vector2WithInfo: f, Vector3WithInfo: vt, VirtualKeyboard: He, VolumeBasedPanel: Pt, XmlLoader: bt, name: Je };
8367
+ var fs = { __proto__: null, AbstractButton3D: It, AdvancedDynamicTexture: ht, AdvancedDynamicTextureInstrumentation: ct, BaseGradient: it, BaseSlider: ye, Button: F, Button3D: St, Checkbox: A, CheckboxGroup: Re, ColorPicker: K, Container: x, Container3D: yt, Control: b, Control3D: pt, CornerHandle: Kt, CylinderPanel: Bt, DisplayGrid: Xe, Ellipse: $, FlexPanel: ae, FluentBackplateMaterial: Ft, FluentButtonMaterial: At, FluentMaterial: Tt, FluentMaterialDefines: Ct, FocusableButton: te, FrameGraphGUITask: dt, GUI3DManager: us, GizmoHandle: Xt, Grid: Y, HandMenu: Ot, HandleMaterial: Ut, get HandleState() { return e.HandleState; }, HolographicBackplate: Dt, HolographicButton: zt, HolographicSlate: qt, Image: k, ImageBasedSlider: Ze, ImageScrollBar: De, InputPassword: he, InputText: G, InputTextArea: re, KeyPropertySet: Ge, Line: ue, LinearGradient: st, MRDLBackplateMaterial: ci, MRDLSliderBarMaterial: si, MRDLSliderThumbMaterial: ri, MathTools: g, Matrix2D: m, Measure: u, MeshButton3D: $t, MultiLine: be, MultiLinePoint: ge, NearMenu: Jt, NodeRenderGraphGUIBlock: ut, PlanePanel: ei, RadialGradient: ot, RadioButton: xe, RadioGroup: we, Rectangle: y, RegisterButton: L, RegisterCheckbox: Q, RegisterColorPicker: q, RegisterContainer: S, RegisterControl: p, RegisterDisplayGrid: Ke, RegisterEllipse: ee, RegisterFlexPanel: oe, RegisterFluentBackplateMaterial: Lt, RegisterFluentButtonMaterial: Qt, RegisterFluentMaterial: wt, RegisterFocusableButton: se, RegisterGUIStatics: tt, RegisterGrid: j, RegisterImage: M, RegisterImageBasedSlider: $e, RegisterInputPassword: de, RegisterInputText: U, RegisterInputTextArea: _e, RegisterLine: me, RegisterLinearGradient: nt, RegisterMRDLBackplateMaterial: ui, RegisterMRDLSliderBarMaterial: ni, RegisterMRDLSliderThumbMaterial: _i, RegisterMultiLine: pe, RegisterNodeRenderGraphGUIBlock: mt, RegisterRadialGradient: lt, RegisterRadioButton: Se, RegisterRectangle: B, RegisterScrollBar: Le, RegisterScrollViewer: Ae, RegisterSlider: Ce, RegisterStackPanel: N, RegisterTextBlock: w, RegisterToggleButton: We, RegisterVirtualKeyboard: Ye, ScatterPanel: ti, ScrollBar: Fe, ScrollViewer: ze, SelectionPanel: Oe, SelectorGroup: Te, SideHandle: jt, SlateGizmo: Zt, Slider: Pe, Slider3D: fi, SliderGroup: ke, SpherePanel: mi, StackPanel: D, StackPanel3D: gi, Style: _t, TextBlock: T, TextWrapper: W, get TextWrapping() { return e.TextWrapping; }, ToggleButton: Ve, TouchButton3D: Wt, TouchHolographicButton: Gt, TouchHolographicButtonV3: Pi, TouchHolographicMenu: kt, TouchMeshButton3D: bi, ValueAndUnit: r, Vector2WithInfo: f, Vector3WithInfo: vt, VirtualKeyboard: He, VolumeBasedPanel: Pt, XmlLoader: bt, name: Je };
8357
8368
  var ms = "undefined" != typeof global ? global : "undefined" != typeof window ? window : void 0;
8358
8369
  void 0 !== ms && (ms.BABYLON = ms.BABYLON || {}, ms.BABYLON.GUI || (ms.BABYLON.GUI = fs));
8359
8370
  var gs = "fluentVertexShader", bs = "attribute position: vec3f;attribute normal: vec3f;attribute uv: vec2f;uniform world: mat4x4f;uniform viewProjection: mat4x4f;varying vUV: vec2f;\n#ifdef BORDER\nvarying scaleInfo: vec2f;uniform borderWidth: f32;uniform scaleFactor: vec3f;\n#endif\n#ifdef HOVERLIGHT\nvarying worldPosition: vec3f;\n#endif\n@vertex\nfn main(input: VertexInputs)->FragmentInputs {vertexOutputs.vUV=vertexInputs.uv;\n#ifdef BORDER\nvar scale: vec3f=uniforms.scaleFactor;let minScale: f32=min(min(scale.x,scale.y),scale.z);let maxScale: f32=max(max(scale.x,scale.y),scale.z);let minOverMiddleScale: f32=minScale/(scale.x+scale.y+scale.z-minScale-maxScale);let areaYZ: f32=scale.y*scale.z;let areaXZ: f32=scale.x*scale.z;let areaXY: f32=scale.x*scale.y;var scaledBorderWidth: f32=uniforms.borderWidth;if (abs(vertexInputs.normal.x)==1.0) {scale.x=scale.y;scale.y=scale.z;if (areaYZ>areaXZ && areaYZ>areaXY) {scaledBorderWidth*=minOverMiddleScale;}} else if (abs(vertexInputs.normal.y)==1.0) {scale.x=scale.z;if (areaXZ>areaXY && areaXZ>areaYZ) {scaledBorderWidth*=minOverMiddleScale;}} else {if (areaXY>areaYZ && areaXY>areaXZ) {scaledBorderWidth*=minOverMiddleScale;}}\nlet scaleRatio: f32=min(scale.x,scale.y)/max(scale.x,scale.y);if (scale.x>scale.y) {vertexOutputs.scaleInfo=vec2f(1.0-scaledBorderWidth*scaleRatio,1.0-scaledBorderWidth);} else {vertexOutputs.scaleInfo=vec2f(1.0-scaledBorderWidth,1.0-scaledBorderWidth*scaleRatio);}\n#endif\nlet worldPos: vec4f=uniforms.world*vec4f(vertexInputs.position,1.0);\n#ifdef HOVERLIGHT\nvertexOutputs.worldPosition=worldPos.xyz;\n#endif\nvertexOutputs.position=uniforms.viewProjection*worldPos;}\n";
@@ -8374,9 +8385,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8374
8385
  var Os = "fluentButtonPixelShader", Ms = "varying vPosition: vec3f;varying vNormal: vec3f;varying vUV: vec2f;varying vTangent: vec3f;varying vBinormal: vec3f;varying vColor: vec4f;varying vExtra1: vec4f;uniform _Edge_Color_: vec4f;uniform _Proximity_Max_Intensity_: f32;uniform _Proximity_Near_Radius_: f32;uniform _Fade_Width_: f32;uniform _Blob_Position_: vec3f;uniform _Blob_Position_2_: vec3f;uniform _Use_Blob_Texture_: f32;uniform _Show_Frame_: f32;uniform Use_Global_Left_Index: f32;uniform Use_Global_Right_Index: f32;uniform Global_Left_Index_Tip_Position: vec4f;uniform Global_Right_Index_Tip_Position: vec4f;var _Blob_Texture_Sampler: sampler;var _Blob_Texture_: texture_2d<f32>;fn filterStep(edge: vec2f,x: vec2f)->vec2f {let dX: vec2f=max(fwidth(x),vec2f(0.00001));return clamp((x+dX-max(edge,x-dX))/(dX*2.0),vec2f(0.0),vec2f(1.0));}\n@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {\n#ifdef ENABLE_FADE\nlet edgeC: vec2f=vec2f(min(input.vColor.r,input.vColor.g),min(input.vColor.b,input.vColor.a));let edgeDf: vec2f=fwidth(edgeC)*uniforms._Fade_Width_;let edgeG: vec2f=clamp(edgeC/edgeDf,vec2f(0.0),vec2f(1.0));let notEdge: f32=edgeG.x*edgeG.y;\n#else\nlet notEdge: f32=1.0;\n#endif\nlet k: f32=dot(input.vUV,input.vUV);let blobTextureCoord: vec2f=vec2f(sqrt(k),1.0-input.vTangent.x);let proceduralBlob: vec4f=vec4f(1.0)*step(1.0-input.vTangent.x,clamp(sqrt(k)+0.1,0.0,1.0));let sampledBlob: vec4f=textureSample(_Blob_Texture_,_Blob_Texture_Sampler,blobTextureCoord);let blobColor: vec4f=mix(proceduralBlob,sampledBlob,step(0.5,uniforms._Use_Blob_Texture_));let blob: vec4f=input.vTangent.y*blobColor*(1.0-clamp(k,0.0,1.0));let blobPositionLeft: vec3f=mix(uniforms._Blob_Position_,uniforms.Global_Left_Index_Tip_Position.xyz,step(0.5,uniforms.Use_Global_Left_Index));let blobPositionRight: vec3f=mix(uniforms._Blob_Position_2_,uniforms.Global_Right_Index_Tip_Position.xyz,step(0.5,uniforms.Use_Global_Right_Index));let distanceXY: f32=sqrt(min(dot(input.vExtra1.xy,input.vExtra1.xy),dot(input.vExtra1.zw,input.vExtra1.zw))+input.vBinormal.y*input.vBinormal.y);let proximity: f32=input.vBinormal.z*uniforms._Proximity_Max_Intensity_*(1.0-clamp(distanceXY/uniforms._Proximity_Near_Radius_,0.0,1.0))*(1.0-input.vBinormal.x)+input.vBinormal.x;let edgeUV: vec2f=min(input.vUV,vec2f(1.0)-input.vUV);let wireFilter: vec2f=filterStep(input.vNormal.xy*0.5,edgeUV);let wireframe: vec4f=(1.0-min(wireFilter.x,wireFilter.y))*proximity*uniforms._Edge_Color_;let wireOrBlob: vec4f=mix(wireframe,blob,input.vNormal.z);let color: vec4f=mix(wireOrBlob,vec4f(0.3,0.3,0.3,0.3),step(0.5,uniforms._Show_Frame_));fragmentOutputs.color=notEdge*color;}\n";
8375
8386
  t.ShaderStore.ShadersStoreWGSL[Os] || (t.ShaderStore.ShadersStoreWGSL[Os] = Ms);
8376
8387
  var Fs = { __proto__: null, fluentButtonPixelShaderWGSL: { name: Os, shader: Ms } };
8377
- var Es = "handleVertexShader", Ds = "attribute position: vec3f;uniform positionOffset: vec3f;uniform worldViewProjection: mat4x4f;uniform scale: f32;@vertex\nfn main(input: VertexInputs)->FragmentInputs {let vPos: vec4f=vec4f((vertexInputs.position+uniforms.positionOffset)*uniforms.scale,1.0);vertexOutputs.position=uniforms.worldViewProjection*vPos;}\n";
8378
- t.ShaderStore.ShadersStoreWGSL[Es] || (t.ShaderStore.ShadersStoreWGSL[Es] = Ds);
8379
- var Ls = { __proto__: null, handleVertexShaderWGSL: { name: Es, shader: Ds } };
8388
+ var Es = "handleVertexShader", Ls = "attribute position: vec3f;uniform positionOffset: vec3f;uniform worldViewProjection: mat4x4f;uniform scale: f32;@vertex\nfn main(input: VertexInputs)->FragmentInputs {let vPos: vec4f=vec4f((vertexInputs.position+uniforms.positionOffset)*uniforms.scale,1.0);vertexOutputs.position=uniforms.worldViewProjection*vPos;}\n";
8389
+ t.ShaderStore.ShadersStoreWGSL[Es] || (t.ShaderStore.ShadersStoreWGSL[Es] = Ls);
8390
+ var Ds = { __proto__: null, handleVertexShaderWGSL: { name: Es, shader: Ls } };
8380
8391
  var zs = "handlePixelShader", Ns = "uniform color: vec3f;@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {fragmentOutputs.color=vec4f(uniforms.color,1.0);}\n";
8381
8392
  t.ShaderStore.ShadersStoreWGSL[zs] || (t.ShaderStore.ShadersStoreWGSL[zs] = Ns);
8382
8393
  var As = { __proto__: null, handlePixelShaderWGSL: { name: zs, shader: Ns } };
@@ -8398,5 +8409,5 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8398
8409
  var ta = "mrdlInnerquadPixelShader", ia = "uniform vec3 cameraPosition;varying vec2 vUV;varying vec3 vTangent;uniform vec4 _Color_;uniform float _Radius_;uniform bool _Fixed_Radius_;uniform float _Filter_Width_;uniform float _Glow_Fraction_;uniform float _Glow_Max_;uniform float _Glow_Falloff_;float FilterStep_Bid194(float edge,float x,float filterWidth)\n{float dx=max(1.0E-5,fwidth(x)*filterWidth);return max((x+dx*0.5-max(edge,x-dx*0.5))/dx,0.0);}\nvoid Round_Rect_B194(\nfloat Size_X,\nfloat Size_Y,\nfloat Radius,\nvec4 Rect_Color,\nfloat Filter_Width,\nvec2 UV,\nfloat Glow_Fraction,\nfloat Glow_Max,\nfloat Glow_Falloff,\nout vec4 Color)\n{vec2 halfSize=vec2(Size_X,Size_Y)*0.5;vec2 r=max(min(vec2(Radius,Radius),halfSize),vec2(0.01,0.01));vec2 v=abs(UV);vec2 nearestp=min(v,halfSize-r);vec2 delta=(v-nearestp)/max(vec2(0.01,0.01),r);float Distance=length(delta);float insideRect=1.0-FilterStep_Bid194(1.0-Glow_Fraction,Distance,Filter_Width);float glow=clamp((1.0-Distance)/Glow_Fraction,0.0,1.0);glow=pow(glow,Glow_Falloff);Color=Rect_Color*max(insideRect,glow*Glow_Max);}\nvoid main()\n{float X_Q192;float Y_Q192;float Z_Q192;X_Q192=vTangent.x;Y_Q192=vTangent.y;Z_Q192=vTangent.z;vec4 Color_Q194;Round_Rect_B194(X_Q192,1.0,Y_Q192,_Color_,_Filter_Width_,vUV,_Glow_Fraction_,_Glow_Max_,_Glow_Falloff_,Color_Q194);vec4 Out_Color=Color_Q194;float Clip_Threshold=0.0;gl_FragColor=Out_Color;}\n";
8399
8410
  t.ShaderStore.ShadersStore[ta] || (t.ShaderStore.ShadersStore[ta] = ia);
8400
8411
  var sa = { __proto__: null, mrdlInnerquadPixelShader: { name: ta, shader: ia } };
8401
- e.AbstractButton3D = It, e.AdvancedDynamicTexture = ht, e.AdvancedDynamicTextureInstrumentation = ct, e.BaseGradient = it, e.BaseSlider = ye, e.Button = F, e.Button3D = St, e.Checkbox = A, e.CheckboxGroup = Re, e.ColorPicker = K, e.Container = x, e.Container3D = yt, e.Control = b, e.Control3D = pt, e.CornerHandle = Kt, e.CylinderPanel = Bt, e.DisplayGrid = Xe, e.Ellipse = $, e.FlexPanel = ae, e.FluentBackplateMaterial = Ft, e.FluentButtonMaterial = At, e.FluentMaterial = Tt, e.FluentMaterialDefines = Ct, e.FocusableButton = te, e.FrameGraphGUITask = dt, e.GUI3DManager = us, e.GizmoHandle = Xt, e.Grid = Y, e.HandMenu = Ot, e.HandleMaterial = Ut, e.HolographicBackplate = Lt, e.HolographicButton = zt, e.HolographicSlate = qt, e.Image = k, e.ImageBasedSlider = Ze, e.ImageScrollBar = Le, e.InputPassword = he, e.InputText = G, e.InputTextArea = re, e.KeyPropertySet = Ge, e.Line = ue, e.LinearGradient = st, e.MRDLBackplateMaterial = ci, e.MRDLSliderBarMaterial = si, e.MRDLSliderThumbMaterial = ri, e.MathTools = g, e.Matrix2D = m, e.Measure = u, e.MeshButton3D = $t, e.MultiLine = be, e.MultiLinePoint = ge, e.NearMenu = Jt, e.NodeRenderGraphGUIBlock = ut, e.PlanePanel = ei, e.RadialGradient = ot, e.RadioButton = xe, e.RadioGroup = we, e.Rectangle = y, e.RegisterButton = D, e.RegisterCheckbox = Q, e.RegisterColorPicker = q, e.RegisterContainer = S, e.RegisterControl = p, e.RegisterDisplayGrid = Ke, e.RegisterEllipse = ee, e.RegisterFlexPanel = oe, e.RegisterFluentBackplateMaterial = Dt, e.RegisterFluentButtonMaterial = Qt, e.RegisterFluentMaterial = wt, e.RegisterFocusableButton = se, e.RegisterGUIStatics = tt, e.RegisterGrid = j, e.RegisterImage = M, e.RegisterImageBasedSlider = $e, e.RegisterInputPassword = de, e.RegisterInputText = U, e.RegisterInputTextArea = _e, e.RegisterLine = me, e.RegisterLinearGradient = nt, e.RegisterMRDLBackplateMaterial = ui, e.RegisterMRDLSliderBarMaterial = ni, e.RegisterMRDLSliderThumbMaterial = _i, e.RegisterMultiLine = pe, e.RegisterNodeRenderGraphGUIBlock = mt, e.RegisterRadialGradient = lt, e.RegisterRadioButton = Se, e.RegisterRectangle = B, e.RegisterScrollBar = De, e.RegisterScrollViewer = Ae, e.RegisterSlider = Ce, e.RegisterStackPanel = N, e.RegisterTextBlock = w, e.RegisterToggleButton = We, e.RegisterVirtualKeyboard = Ye, e.ScatterPanel = ti, e.ScrollBar = Fe, e.ScrollViewer = ze, e.SelectionPanel = Oe, e.SelectorGroup = Te, e.SideHandle = jt, e.SlateGizmo = Zt, e.Slider = Pe, e.Slider3D = fi, e.SliderGroup = ke, e.SpherePanel = mi, e.StackPanel = L, e.StackPanel3D = gi, e.Style = _t, e.TextBlock = T, e.TextWrapper = W, e.ToggleButton = Ve, e.TouchButton3D = Wt, e.TouchHolographicButton = Gt, e.TouchHolographicButtonV3 = Pi, e.TouchHolographicMenu = kt, e.TouchMeshButton3D = bi, e.ValueAndUnit = r, e.Vector2WithInfo = f, e.Vector3WithInfo = vt, e.VirtualKeyboard = He, e.VolumeBasedPanel = Pt, e.XmlLoader = bt, e.name = Je;
8412
+ e.AbstractButton3D = It, e.AdvancedDynamicTexture = ht, e.AdvancedDynamicTextureInstrumentation = ct, e.BaseGradient = it, e.BaseSlider = ye, e.Button = F, e.Button3D = St, e.Checkbox = A, e.CheckboxGroup = Re, e.ColorPicker = K, e.Container = x, e.Container3D = yt, e.Control = b, e.Control3D = pt, e.CornerHandle = Kt, e.CylinderPanel = Bt, e.DisplayGrid = Xe, e.Ellipse = $, e.FlexPanel = ae, e.FluentBackplateMaterial = Ft, e.FluentButtonMaterial = At, e.FluentMaterial = Tt, e.FluentMaterialDefines = Ct, e.FocusableButton = te, e.FrameGraphGUITask = dt, e.GUI3DManager = us, e.GizmoHandle = Xt, e.Grid = Y, e.HandMenu = Ot, e.HandleMaterial = Ut, e.HolographicBackplate = Dt, e.HolographicButton = zt, e.HolographicSlate = qt, e.Image = k, e.ImageBasedSlider = Ze, e.ImageScrollBar = De, e.InputPassword = he, e.InputText = G, e.InputTextArea = re, e.KeyPropertySet = Ge, e.Line = ue, e.LinearGradient = st, e.MRDLBackplateMaterial = ci, e.MRDLSliderBarMaterial = si, e.MRDLSliderThumbMaterial = ri, e.MathTools = g, e.Matrix2D = m, e.Measure = u, e.MeshButton3D = $t, e.MultiLine = be, e.MultiLinePoint = ge, e.NearMenu = Jt, e.NodeRenderGraphGUIBlock = ut, e.PlanePanel = ei, e.RadialGradient = ot, e.RadioButton = xe, e.RadioGroup = we, e.Rectangle = y, e.RegisterButton = L, e.RegisterCheckbox = Q, e.RegisterColorPicker = q, e.RegisterContainer = S, e.RegisterControl = p, e.RegisterDisplayGrid = Ke, e.RegisterEllipse = ee, e.RegisterFlexPanel = oe, e.RegisterFluentBackplateMaterial = Lt, e.RegisterFluentButtonMaterial = Qt, e.RegisterFluentMaterial = wt, e.RegisterFocusableButton = se, e.RegisterGUIStatics = tt, e.RegisterGrid = j, e.RegisterImage = M, e.RegisterImageBasedSlider = $e, e.RegisterInputPassword = de, e.RegisterInputText = U, e.RegisterInputTextArea = _e, e.RegisterLine = me, e.RegisterLinearGradient = nt, e.RegisterMRDLBackplateMaterial = ui, e.RegisterMRDLSliderBarMaterial = ni, e.RegisterMRDLSliderThumbMaterial = _i, e.RegisterMultiLine = pe, e.RegisterNodeRenderGraphGUIBlock = mt, e.RegisterRadialGradient = lt, e.RegisterRadioButton = Se, e.RegisterRectangle = B, e.RegisterScrollBar = Le, e.RegisterScrollViewer = Ae, e.RegisterSlider = Ce, e.RegisterStackPanel = N, e.RegisterTextBlock = w, e.RegisterToggleButton = We, e.RegisterVirtualKeyboard = Ye, e.ScatterPanel = ti, e.ScrollBar = Fe, e.ScrollViewer = ze, e.SelectionPanel = Oe, e.SelectorGroup = Te, e.SideHandle = jt, e.SlateGizmo = Zt, e.Slider = Pe, e.Slider3D = fi, e.SliderGroup = ke, e.SpherePanel = mi, e.StackPanel = D, e.StackPanel3D = gi, e.Style = _t, e.TextBlock = T, e.TextWrapper = W, e.ToggleButton = Ve, e.TouchButton3D = Wt, e.TouchHolographicButton = Gt, e.TouchHolographicButtonV3 = Pi, e.TouchHolographicMenu = kt, e.TouchMeshButton3D = bi, e.ValueAndUnit = r, e.Vector2WithInfo = f, e.Vector3WithInfo = vt, e.VirtualKeyboard = He, e.VolumeBasedPanel = Pt, e.XmlLoader = bt, e.name = Je;
8402
8413
  });