@iwer/devui 1.1.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,7 +93,7 @@
93
93
  }
94
94
  var ReactNoopUpdateQueue = {
95
95
  isMounted: function () {
96
- return !1;
96
+ return false;
97
97
  },
98
98
  enqueueForceUpdate: function () {},
99
99
  enqueueReplaceState: function () {},
@@ -133,7 +133,7 @@
133
133
  var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
134
134
  pureComponentPrototype.constructor = PureComponent;
135
135
  assign(pureComponentPrototype, Component.prototype);
136
- pureComponentPrototype.isPureReactComponent = !0;
136
+ pureComponentPrototype.isPureReactComponent = true;
137
137
  var isArrayImpl = Array.isArray,
138
138
  ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
139
139
  hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -215,20 +215,20 @@
215
215
  function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
216
216
  var type = typeof children;
217
217
  if ("undefined" === type || "boolean" === type) children = null;
218
- var invokeCallback = !1;
219
- if (null === children) invokeCallback = !0;
218
+ var invokeCallback = false;
219
+ if (null === children) invokeCallback = true;
220
220
  else
221
221
  switch (type) {
222
222
  case "bigint":
223
223
  case "string":
224
224
  case "number":
225
- invokeCallback = !0;
225
+ invokeCallback = true;
226
226
  break;
227
227
  case "object":
228
228
  switch (children.$$typeof) {
229
229
  case REACT_ELEMENT_TYPE:
230
230
  case REACT_PORTAL_TYPE:
231
- invokeCallback = !0;
231
+ invokeCallback = true;
232
232
  break;
233
233
  case REACT_LAZY_TYPE:
234
234
  return (
@@ -358,8 +358,8 @@
358
358
  "function" === typeof window.ErrorEvent
359
359
  ) {
360
360
  var event = new window.ErrorEvent("error", {
361
- bubbles: !0,
362
- cancelable: !0,
361
+ bubbles: true,
362
+ cancelable: true,
363
363
  message:
364
364
  "object" === typeof error &&
365
365
  null !== error &&
@@ -868,19 +868,11 @@
868
868
  Io = {
869
869
  kit: {
870
870
  "fa-kit": "fak"
871
- },
872
- "kit-duotone": {
873
- "fa-kit-duotone": "fakd"
874
- }
875
- },
871
+ }},
876
872
  Fo = {
877
873
  kit: {
878
874
  fak: "fa-kit"
879
- },
880
- "kit-duotone": {
881
- fakd: "fa-kit-duotone"
882
- }
883
- },
875
+ }},
884
876
  So = {
885
877
  kit: {
886
878
  kit: "fak"
@@ -3828,7 +3820,7 @@
3828
3820
  function _objectSpread2(target) {
3829
3821
  for (var i = 1; i < arguments.length; i++) {
3830
3822
  var source = null != arguments[i] ? arguments[i] : {};
3831
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
3823
+ i % 2 ? ownKeys(Object(source), true).forEach(function (key) {
3832
3824
  _defineProperty(target, key, source[key]);
3833
3825
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
3834
3826
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
@@ -4280,26 +4272,6 @@
4280
4272
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4281
4273
  };
4282
4274
 
4283
- function memoize(fn) {
4284
- var cache = Object.create(null);
4285
- return function (arg) {
4286
- if (cache[arg] === undefined) cache[arg] = fn(arg);
4287
- return cache[arg];
4288
- };
4289
- }
4290
-
4291
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
4292
-
4293
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
4294
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
4295
- /* o */
4296
- && prop.charCodeAt(1) === 110
4297
- /* n */
4298
- && prop.charCodeAt(2) < 91;
4299
- }
4300
- /* Z+1 */
4301
- );
4302
-
4303
4275
  var shallowequal;
4304
4276
  var hasRequiredShallowequal;
4305
4277
 
@@ -5211,7 +5183,7 @@
5211
5183
  strokeWidth: 1
5212
5184
  };
5213
5185
 
5214
- var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.19",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production"),_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,z=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=function(e){return z(F,e)};function $(e){return x(M(e)>>>0)}function B(e){return e.displayName||e.name||"Component"}function G(e){return "string"==typeof e&&("production"==="production")}var L="function"==typeof Symbol&&Symbol.for,Y=L?Symbol.for("react.memo"):60115,q=L?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[q]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),z(e,t.name)},F).toString():"",p}var ze=new ke,Me=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:ze,stylis:Me});$e.Consumer;var Ge=React.createContext(void 0);function Le(){return reactExports.useContext($e)}function Ye(e){var t=reactExports.useState(e.stylisPlugins),n=t[0],r=t[1],c=Le().styleSheet,l=reactExports.useMemo(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),u=reactExports.useMemo(function(){return Fe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);reactExports.useEffect(function(){p(n,e.stylisPlugins)||r(e.stylisPlugins);},[e.stylisPlugins]);var d=reactExports.useMemo(function(){return {shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:u}},[e.shouldForwardProp,l,u]);return React.createElement($e.Provider,{value:d},React.createElement(Ge.Provider,{value:u},e.children))}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Me);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;We(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return Xe(r,t,n,o)}var s;return e instanceof qe?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=M(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=z(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(z(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=z(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var p=ae(Xe(u,e,t,n));a=z(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React.createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!G(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return G(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et),m=Le(),y=e.shouldForwardProp||m.shouldForwardProp;var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!=="production"||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Le(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return o}(a,g);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[G(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});
5186
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.19",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production"),_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,z=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=function(e){return z(F,e)};function $(e){return x(M(e)>>>0)}function B(e){return e.displayName||e.name||"Component"}function G(e){return "string"==typeof e&&("production"==="production")}var L="function"==typeof Symbol&&Symbol.for,Y=L?Symbol.for("react.memo"):60115,q=L?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){ void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=true),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){ void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),z(e,t.name)},F).toString():"",p}var ze=new ke,Me=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:ze,stylis:Me});$e.Consumer;var Ge=React.createContext(void 0);function Le(){return reactExports.useContext($e)}function Ye(e){var t=reactExports.useState(e.stylisPlugins),n=t[0],r=t[1],c=Le().styleSheet,l=reactExports.useMemo(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},false)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:false})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),u=reactExports.useMemo(function(){return Fe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);reactExports.useEffect(function(){p(n,e.stylisPlugins)||r(e.stylisPlugins);},[e.stylisPlugins]);var d=reactExports.useMemo(function(){return {shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:u}},[e.shouldForwardProp,l,u]);return React.createElement($e.Provider,{value:d},React.createElement(Ge.Provider,{value:u},e.children))}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=Me);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;We(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return Xe(r,t,n,o)}var s;return e instanceof qe?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return false}return true}var Ke=M(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=z(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(z(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=z(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var p=ae(Xe(u,e,t,n));a=z(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React.createContext(void 0);et.Consumer;var rt={};function it(e,r,s){var i=se(e),a=e,c=!G(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return G(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et),m=Le(),y=e.shouldForwardProp||m.shouldForwardProp;var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!=="production"));var E=function(e,t){var n=Le(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return o}(a,g);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[G(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],true);return e}({},a.defaultProps,e):e;}}),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});
5215
5187
 
5216
5188
  /**
5217
5189
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -5227,7 +5199,6 @@
5227
5199
  panelBackground: 'rgba(38, 38, 38, 0.7)',
5228
5200
  panelBorder: 'rgba(61, 61, 63, 0.7)',
5229
5201
  buttonBackground: 'rgba(61, 61, 63, 0.6)',
5230
- buttonHovered: 'rgba(61, 61, 63, 0.8)',
5231
5202
  buttonPressed: 'rgba(61, 61, 63, 1)',
5232
5203
  gradientGrey: 'linear-gradient(to bottom, #343434, #393939)',
5233
5204
  gradientGreyTranslucent: 'linear-gradient(to bottom, rgba(52, 52, 52, 0.75), rgba(57, 57, 57, 0.75))',
@@ -6122,7 +6093,7 @@
6122
6093
  var nextValue = latestGetSnapshot();
6123
6094
  return !objectIs(inst, nextValue);
6124
6095
  } catch (error) {
6125
- return !0;
6096
+ return true;
6126
6097
  }
6127
6098
  }
6128
6099
  function useSyncExternalStore$1(subscribe, getSnapshot) {
@@ -6186,14 +6157,14 @@
6186
6157
  ) {
6187
6158
  var instRef = useRef(null);
6188
6159
  if (null === instRef.current) {
6189
- var inst = { hasValue: !1, value: null };
6160
+ var inst = { hasValue: false, value: null };
6190
6161
  instRef.current = inst;
6191
6162
  } else inst = instRef.current;
6192
6163
  instRef = useMemo(
6193
6164
  function () {
6194
6165
  function memoizedSelector(nextSnapshot) {
6195
6166
  if (!hasMemo) {
6196
- hasMemo = !0;
6167
+ hasMemo = true;
6197
6168
  memoizedSnapshot = nextSnapshot;
6198
6169
  nextSnapshot = selector(nextSnapshot);
6199
6170
  if (void 0 !== isEqual && inst.hasValue) {
@@ -6211,7 +6182,7 @@
6211
6182
  memoizedSnapshot = nextSnapshot;
6212
6183
  return (memoizedSelection = nextSelection);
6213
6184
  }
6214
- var hasMemo = !1,
6185
+ var hasMemo = false,
6215
6186
  memoizedSnapshot,
6216
6187
  memoizedSelection,
6217
6188
  maybeGetServerSnapshot =
@@ -6232,7 +6203,7 @@
6232
6203
  var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
6233
6204
  useEffect(
6234
6205
  function () {
6235
- inst.hasValue = !0;
6206
+ inst.hasValue = true;
6236
6207
  inst.value = value;
6237
6208
  },
6238
6209
  [value]
@@ -7518,7 +7489,7 @@
7518
7489
 
7519
7490
  }
7520
7491
 
7521
- if ( listeners[ type ].indexOf( listener ) === - 1 ) {
7492
+ if ( listeners[ type ].indexOf( listener ) === -1 ) {
7522
7493
 
7523
7494
  listeners[ type ].push( listener );
7524
7495
 
@@ -7532,7 +7503,7 @@
7532
7503
 
7533
7504
  const listeners = this._listeners;
7534
7505
 
7535
- return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== - 1;
7506
+ return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== -1;
7536
7507
 
7537
7508
  }
7538
7509
 
@@ -7547,7 +7518,7 @@
7547
7518
 
7548
7519
  const index = listenerArray.indexOf( listener );
7549
7520
 
7550
- if ( index !== - 1 ) {
7521
+ if ( index !== -1 ) {
7551
7522
 
7552
7523
  listenerArray.splice( index, 1 );
7553
7524
 
@@ -7651,15 +7622,15 @@
7651
7622
 
7652
7623
  case Int32Array:
7653
7624
 
7654
- return Math.max( value / 2147483647.0, - 1.0 );
7625
+ return Math.max( value / 2147483647.0, -1 );
7655
7626
 
7656
7627
  case Int16Array:
7657
7628
 
7658
- return Math.max( value / 32767.0, - 1.0 );
7629
+ return Math.max( value / 32767.0, -1 );
7659
7630
 
7660
7631
  case Int8Array:
7661
7632
 
7662
- return Math.max( value / 127.0, - 1.0 );
7633
+ return Math.max( value / 127.0, -1 );
7663
7634
 
7664
7635
  default:
7665
7636
 
@@ -8074,7 +8045,7 @@
8074
8045
 
8075
8046
  // clamp, to handle numerical problems
8076
8047
 
8077
- return Math.acos( clamp$1( theta, - 1, 1 ) );
8048
+ return Math.acos( clamp$1( theta, -1, 1 ) );
8078
8049
 
8079
8050
  }
8080
8051
 
@@ -8661,9 +8632,9 @@
8661
8632
  );
8662
8633
 
8663
8634
  const LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = /*@__PURE__*/ new Matrix3().set(
8664
- 1.2249401, - 0.2249404, 0.0,
8665
- - 0.0420569, 1.0420571, 0.0,
8666
- - 0.0196376, - 0.0786361, 1.0982735
8635
+ 1.2249401, -0.2249404, 0.0,
8636
+ -0.0420569, 1.0420571, 0.0,
8637
+ -0.0196376, -0.0786361, 1.0982735
8667
8638
  );
8668
8639
 
8669
8640
  /**
@@ -10259,7 +10230,7 @@
10259
10230
 
10260
10231
  let s = 1 - t;
10261
10232
  const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
10262
- dir = ( cos >= 0 ? 1 : - 1 ),
10233
+ dir = ( cos >= 0 ? 1 : -1 ),
10263
10234
  sqrSin = 1 - cos * cos;
10264
10235
 
10265
10236
  // Skip the Slerp for tiny steps to avoid numeric problems:
@@ -10602,7 +10573,7 @@
10602
10573
 
10603
10574
  angleTo( q ) {
10604
10575
 
10605
- return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), - 1, 1 ) ) );
10576
+ return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), -1, 1 ) ) );
10606
10577
 
10607
10578
  }
10608
10579
 
@@ -10636,9 +10607,9 @@
10636
10607
 
10637
10608
  conjugate() {
10638
10609
 
10639
- this._x *= - 1;
10640
- this._y *= - 1;
10641
- this._z *= - 1;
10610
+ this._x *= -1;
10611
+ this._y *= -1;
10612
+ this._z *= -1;
10642
10613
 
10643
10614
  this._onChangeCallback();
10644
10615
 
@@ -11420,7 +11391,7 @@
11420
11391
 
11421
11392
  // clamp, to handle numerical problems
11422
11393
 
11423
- return Math.acos( clamp$1( theta, - 1, 1 ) );
11394
+ return Math.acos( clamp$1( theta, -1, 1 ) );
11424
11395
 
11425
11396
  }
11426
11397
 
@@ -12148,7 +12119,7 @@
12148
12119
 
12149
12120
  class Sphere {
12150
12121
 
12151
- constructor( center = new Vector3(), radius = - 1 ) {
12122
+ constructor( center = new Vector3(), radius = -1 ) {
12152
12123
 
12153
12124
  this.isSphere = true;
12154
12125
 
@@ -12212,7 +12183,7 @@
12212
12183
  makeEmpty() {
12213
12184
 
12214
12185
  this.center.set( 0, 0, 0 );
12215
- this.radius = - 1;
12186
+ this.radius = -1;
12216
12187
 
12217
12188
  return this;
12218
12189
 
@@ -12394,7 +12365,7 @@
12394
12365
 
12395
12366
  class Ray {
12396
12367
 
12397
- constructor( origin = new Vector3(), direction = new Vector3( 0, 0, - 1 ) ) {
12368
+ constructor( origin = new Vector3(), direction = new Vector3( 0, 0, -1 ) ) {
12398
12369
 
12399
12370
  this.origin = origin;
12400
12371
  this.direction = direction;
@@ -12800,7 +12771,7 @@
12800
12771
 
12801
12772
  } else if ( DdN < 0 ) {
12802
12773
 
12803
- sign = - 1;
12774
+ sign = -1;
12804
12775
  DdN = - DdN;
12805
12776
 
12806
12777
  } else {
@@ -13660,7 +13631,7 @@
13660
13631
  if ( coordinateSystem === WebGLCoordinateSystem ) {
13661
13632
 
13662
13633
  c = - ( far + near ) / ( far - near );
13663
- d = ( - 2 * far * near ) / ( far - near );
13634
+ d = ( -2 * far * near ) / ( far - near );
13664
13635
 
13665
13636
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
13666
13637
 
@@ -13676,7 +13647,7 @@
13676
13647
  te[ 0 ] = x; te[ 4 ] = 0; te[ 8 ] = a; te[ 12 ] = 0;
13677
13648
  te[ 1 ] = 0; te[ 5 ] = y; te[ 9 ] = b; te[ 13 ] = 0;
13678
13649
  te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = c; te[ 14 ] = d;
13679
- te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = - 1; te[ 15 ] = 0;
13650
+ te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = -1; te[ 15 ] = 0;
13680
13651
 
13681
13652
  return this;
13682
13653
 
@@ -13697,12 +13668,12 @@
13697
13668
  if ( coordinateSystem === WebGLCoordinateSystem ) {
13698
13669
 
13699
13670
  z = ( far + near ) * p;
13700
- zInv = - 2 * p;
13671
+ zInv = -2 * p;
13701
13672
 
13702
13673
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
13703
13674
 
13704
13675
  z = near * p;
13705
- zInv = - 1 * p;
13676
+ zInv = -1 * p;
13706
13677
 
13707
13678
  } else {
13708
13679
 
@@ -13897,7 +13868,7 @@
13897
13868
 
13898
13869
  case 'XYZ':
13899
13870
 
13900
- this._y = Math.asin( clamp$1( m13, - 1, 1 ) );
13871
+ this._y = Math.asin( clamp$1( m13, -1, 1 ) );
13901
13872
 
13902
13873
  if ( Math.abs( m13 ) < 0.9999999 ) {
13903
13874
 
@@ -13915,7 +13886,7 @@
13915
13886
 
13916
13887
  case 'YXZ':
13917
13888
 
13918
- this._x = Math.asin( - clamp$1( m23, - 1, 1 ) );
13889
+ this._x = Math.asin( - clamp$1( m23, -1, 1 ) );
13919
13890
 
13920
13891
  if ( Math.abs( m23 ) < 0.9999999 ) {
13921
13892
 
@@ -13933,7 +13904,7 @@
13933
13904
 
13934
13905
  case 'ZXY':
13935
13906
 
13936
- this._x = Math.asin( clamp$1( m32, - 1, 1 ) );
13907
+ this._x = Math.asin( clamp$1( m32, -1, 1 ) );
13937
13908
 
13938
13909
  if ( Math.abs( m32 ) < 0.9999999 ) {
13939
13910
 
@@ -13951,7 +13922,7 @@
13951
13922
 
13952
13923
  case 'ZYX':
13953
13924
 
13954
- this._y = Math.asin( - clamp$1( m31, - 1, 1 ) );
13925
+ this._y = Math.asin( - clamp$1( m31, -1, 1 ) );
13955
13926
 
13956
13927
  if ( Math.abs( m31 ) < 0.9999999 ) {
13957
13928
 
@@ -13969,7 +13940,7 @@
13969
13940
 
13970
13941
  case 'YZX':
13971
13942
 
13972
- this._z = Math.asin( clamp$1( m21, - 1, 1 ) );
13943
+ this._z = Math.asin( clamp$1( m21, -1, 1 ) );
13973
13944
 
13974
13945
  if ( Math.abs( m21 ) < 0.9999999 ) {
13975
13946
 
@@ -13987,7 +13958,7 @@
13987
13958
 
13988
13959
  case 'XZY':
13989
13960
 
13990
- this._z = Math.asin( - clamp$1( m12, - 1, 1 ) );
13961
+ this._z = Math.asin( - clamp$1( m12, -1, 1 ) );
13991
13962
 
13992
13963
  if ( Math.abs( m12 ) < 0.9999999 ) {
13993
13964
 
@@ -14514,7 +14485,7 @@
14514
14485
 
14515
14486
  const index = this.children.indexOf( object );
14516
14487
 
14517
- if ( index !== - 1 ) {
14488
+ if ( index !== -1 ) {
14518
14489
 
14519
14490
  object.parent = null;
14520
14491
  this.children.splice( index, 1 );
@@ -15832,7 +15803,7 @@
15832
15803
 
15833
15804
  getHexString( colorSpace = SRGBColorSpace ) {
15834
15805
 
15835
- return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( - 6 );
15806
+ return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( -6 );
15836
15807
 
15837
15808
  }
15838
15809
 
@@ -16712,7 +16683,7 @@
16712
16683
  this.normalized = normalized;
16713
16684
 
16714
16685
  this.usage = StaticDrawUsage;
16715
- this._updateRange = { offset: 0, count: - 1 };
16686
+ this._updateRange = { offset: 0, count: -1 };
16716
16687
  this.updateRanges = [];
16717
16688
  this.gpuType = FloatType;
16718
16689
 
@@ -17696,7 +17667,7 @@
17696
17667
 
17697
17668
  tmp2.crossVectors( n2, t );
17698
17669
  const test = tmp2.dot( tan2[ v ] );
17699
- const w = ( test < 0.0 ) ? - 1.0 : 1.0;
17670
+ const w = ( test < 0.0 ) ? -1 : 1.0;
17700
17671
 
17701
17672
  tangentAttribute.setXYZW( v, tmp.x, tmp.y, tmp.z, w );
17702
17673
 
@@ -18555,7 +18526,7 @@
18555
18526
 
18556
18527
  if ( intersection.normal.dot( ray.direction ) > 0 ) {
18557
18528
 
18558
- intersection.normal.multiplyScalar( - 1 );
18529
+ intersection.normal.multiplyScalar( -1 );
18559
18530
 
18560
18531
  }
18561
18532
 
@@ -18618,12 +18589,12 @@
18618
18589
 
18619
18590
  // build each side of the box geometry
18620
18591
 
18621
- buildPlane( 'z', 'y', 'x', - 1, - 1, depth, height, width, depthSegments, heightSegments, 0 ); // px
18622
- buildPlane( 'z', 'y', 'x', 1, - 1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
18592
+ buildPlane( 'z', 'y', 'x', -1, -1, depth, height, width, depthSegments, heightSegments, 0 ); // px
18593
+ buildPlane( 'z', 'y', 'x', 1, -1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
18623
18594
  buildPlane( 'x', 'z', 'y', 1, 1, width, depth, height, widthSegments, depthSegments, 2 ); // py
18624
- buildPlane( 'x', 'z', 'y', 1, - 1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
18625
- buildPlane( 'x', 'y', 'z', 1, - 1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
18626
- buildPlane( 'x', 'y', 'z', - 1, - 1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
18595
+ buildPlane( 'x', 'z', 'y', 1, -1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
18596
+ buildPlane( 'x', 'y', 'z', 1, -1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
18597
+ buildPlane( 'x', 'y', 'z', -1, -1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
18627
18598
 
18628
18599
  // build geometry
18629
18600
 
@@ -18673,7 +18644,7 @@
18673
18644
 
18674
18645
  vector[ u ] = 0;
18675
18646
  vector[ v ] = 0;
18676
- vector[ w ] = depth > 0 ? 1 : - 1;
18647
+ vector[ w ] = depth > 0 ? 1 : -1;
18677
18648
 
18678
18649
  // now apply vector to normal buffer
18679
18650
 
@@ -19219,7 +19190,7 @@
19219
19190
  */
19220
19191
  getViewBounds( distance, minTarget, maxTarget ) {
19221
19192
 
19222
- _v3$1.set( - 1, - 1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
19193
+ _v3$1.set( -1, -1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
19223
19194
 
19224
19195
  minTarget.set( _v3$1.x, _v3$1.y ).multiplyScalar( - distance / _v3$1.z );
19225
19196
 
@@ -19324,7 +19295,7 @@
19324
19295
  let top = near * Math.tan( DEG2RAD * 0.5 * this.fov ) / this.zoom;
19325
19296
  let height = 2 * top;
19326
19297
  let width = this.aspect * height;
19327
- let left = - 0.5 * width;
19298
+ let left = -0.5 * width;
19328
19299
  const view = this.view;
19329
19300
 
19330
19301
  if ( this.view !== null && this.view.enabled ) {
@@ -19372,7 +19343,7 @@
19372
19343
 
19373
19344
  }
19374
19345
 
19375
- const fov = - 90; // negative fov is not an error
19346
+ const fov = -90; // negative fov is not an error
19376
19347
  const aspect = 1;
19377
19348
 
19378
19349
  class CubeCamera extends Object3D {
@@ -19429,39 +19400,39 @@
19429
19400
  cameraPX.lookAt( 1, 0, 0 );
19430
19401
 
19431
19402
  cameraNX.up.set( 0, 1, 0 );
19432
- cameraNX.lookAt( - 1, 0, 0 );
19403
+ cameraNX.lookAt( -1, 0, 0 );
19433
19404
 
19434
- cameraPY.up.set( 0, 0, - 1 );
19405
+ cameraPY.up.set( 0, 0, -1 );
19435
19406
  cameraPY.lookAt( 0, 1, 0 );
19436
19407
 
19437
19408
  cameraNY.up.set( 0, 0, 1 );
19438
- cameraNY.lookAt( 0, - 1, 0 );
19409
+ cameraNY.lookAt( 0, -1, 0 );
19439
19410
 
19440
19411
  cameraPZ.up.set( 0, 1, 0 );
19441
19412
  cameraPZ.lookAt( 0, 0, 1 );
19442
19413
 
19443
19414
  cameraNZ.up.set( 0, 1, 0 );
19444
- cameraNZ.lookAt( 0, 0, - 1 );
19415
+ cameraNZ.lookAt( 0, 0, -1 );
19445
19416
 
19446
19417
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
19447
19418
 
19448
- cameraPX.up.set( 0, - 1, 0 );
19449
- cameraPX.lookAt( - 1, 0, 0 );
19419
+ cameraPX.up.set( 0, -1, 0 );
19420
+ cameraPX.lookAt( -1, 0, 0 );
19450
19421
 
19451
- cameraNX.up.set( 0, - 1, 0 );
19422
+ cameraNX.up.set( 0, -1, 0 );
19452
19423
  cameraNX.lookAt( 1, 0, 0 );
19453
19424
 
19454
19425
  cameraPY.up.set( 0, 0, 1 );
19455
19426
  cameraPY.lookAt( 0, 1, 0 );
19456
19427
 
19457
- cameraNY.up.set( 0, 0, - 1 );
19458
- cameraNY.lookAt( 0, - 1, 0 );
19428
+ cameraNY.up.set( 0, 0, -1 );
19429
+ cameraNY.lookAt( 0, -1, 0 );
19459
19430
 
19460
- cameraPZ.up.set( 0, - 1, 0 );
19431
+ cameraPZ.up.set( 0, -1, 0 );
19461
19432
  cameraPZ.lookAt( 0, 0, 1 );
19462
19433
 
19463
- cameraNZ.up.set( 0, - 1, 0 );
19464
- cameraNZ.lookAt( 0, 0, - 1 );
19434
+ cameraNZ.up.set( 0, -1, 0 );
19435
+ cameraNZ.lookAt( 0, 0, -1 );
19465
19436
 
19466
19437
  } else {
19467
19438
 
@@ -19784,7 +19755,7 @@
19784
19755
 
19785
19756
  negate() {
19786
19757
 
19787
- this.constant *= - 1;
19758
+ this.constant *= -1;
19788
19759
  this.normal.negate();
19789
19760
 
19790
19761
  return this;
@@ -20220,7 +20191,7 @@
20220
20191
 
20221
20192
  gl.bindBuffer( bufferType, buffer );
20222
20193
 
20223
- if ( updateRange.count === - 1 && updateRanges.length === 0 ) {
20194
+ if ( updateRange.count === -1 && updateRanges.length === 0 ) {
20224
20195
 
20225
20196
  // Not using update ranges
20226
20197
  gl.bufferSubData( bufferType, 0, array );
@@ -20243,12 +20214,12 @@
20243
20214
  }
20244
20215
 
20245
20216
  // @deprecated, r159
20246
- if ( updateRange.count !== - 1 ) {
20217
+ if ( updateRange.count !== -1 ) {
20247
20218
 
20248
20219
  gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT,
20249
20220
  array, updateRange.offset, updateRange.count );
20250
20221
 
20251
- updateRange.count = - 1; // reset range
20222
+ updateRange.count = -1; // reset range
20252
20223
 
20253
20224
  }
20254
20225
 
@@ -20890,7 +20861,7 @@
20890
20861
 
20891
20862
  envMap: { value: null },
20892
20863
  envMapRotation: { value: /*@__PURE__*/ new Matrix3() },
20893
- flipEnvMap: { value: - 1 },
20864
+ flipEnvMap: { value: -1 },
20894
20865
  reflectivity: { value: 1.0 }, // basic, lambert, phong
20895
20866
  ior: { value: 1.5 }, // physical
20896
20867
  refractionRatio: { value: 0.98 }, // basic, lambert, phong
@@ -21308,7 +21279,7 @@
21308
21279
 
21309
21280
  uniforms: {
21310
21281
  envMap: { value: null },
21311
- flipEnvMap: { value: - 1 },
21282
+ flipEnvMap: { value: -1 },
21312
21283
  backgroundBlurriness: { value: 0 },
21313
21284
  backgroundIntensity: { value: 1 },
21314
21285
  backgroundRotation: { value: /*@__PURE__*/ new Matrix3() }
@@ -21323,7 +21294,7 @@
21323
21294
 
21324
21295
  uniforms: {
21325
21296
  tCube: { value: null },
21326
- tFlip: { value: - 1 },
21297
+ tFlip: { value: -1 },
21327
21298
  opacity: { value: 1.0 }
21328
21299
  },
21329
21300
 
@@ -21557,18 +21528,18 @@
21557
21528
  _e1$1.copy( scene.backgroundRotation );
21558
21529
 
21559
21530
  // accommodate left-handed frame
21560
- _e1$1.x *= - 1; _e1$1.y *= - 1; _e1$1.z *= - 1;
21531
+ _e1$1.x *= -1; _e1$1.y *= -1; _e1$1.z *= -1;
21561
21532
 
21562
21533
  if ( background.isCubeTexture && background.isRenderTargetTexture === false ) {
21563
21534
 
21564
21535
  // environment maps which are not cube render targets or PMREMs follow a different convention
21565
- _e1$1.y *= - 1;
21566
- _e1$1.z *= - 1;
21536
+ _e1$1.y *= -1;
21537
+ _e1$1.z *= -1;
21567
21538
 
21568
21539
  }
21569
21540
 
21570
21541
  boxMesh.material.uniforms.envMap.value = background;
21571
- boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
21542
+ boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? -1 : 1;
21572
21543
  boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
21573
21544
  boxMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
21574
21545
  boxMesh.material.uniforms.backgroundRotation.value.setFromMatrix4( _m1$1.makeRotationFromEuler( _e1$1 ) );
@@ -22794,7 +22765,7 @@
22794
22765
 
22795
22766
  class OrthographicCamera extends Camera {
22796
22767
 
22797
- constructor( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
22768
+ constructor( left = -1, right = 1, top = 1, bottom = -1, near = 0.1, far = 2000 ) {
22798
22769
 
22799
22770
  super();
22800
22771
 
@@ -22957,9 +22928,9 @@
22957
22928
  /*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ),
22958
22929
  /*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ),
22959
22930
  /*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ),
22960
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
22961
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
22962
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
22931
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
22932
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
22933
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
22963
22934
  /*@__PURE__*/ new Vector3( 1, 1, 1 ) ];
22964
22935
 
22965
22936
  /**
@@ -23213,8 +23184,8 @@
23213
23184
  const fov = 90;
23214
23185
  const aspect = 1;
23215
23186
  const cubeCamera = new PerspectiveCamera( fov, aspect, near, far );
23216
- const upSign = [ 1, - 1, 1, 1, 1, 1 ];
23217
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
23187
+ const upSign = [ 1, -1, 1, 1, 1, 1 ];
23188
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
23218
23189
  const renderer = this._renderer;
23219
23190
 
23220
23191
  const originalAutoClear = renderer.autoClear;
@@ -23313,7 +23284,7 @@
23313
23284
 
23314
23285
  }
23315
23286
 
23316
- this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? - 1 : 1;
23287
+ this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? -1 : 1;
23317
23288
 
23318
23289
  } else {
23319
23290
 
@@ -23526,7 +23497,7 @@
23526
23497
  for ( let face = 0; face < cubeFaces; face ++ ) {
23527
23498
 
23528
23499
  const x = ( face % 3 ) * 2 / 3 - 1;
23529
- const y = face > 2 ? 0 : - 1;
23500
+ const y = face > 2 ? 0 : -1;
23530
23501
  const coordinates = [
23531
23502
  x, y, 0,
23532
23503
  x + 2 / 3, y, 0,
@@ -23725,7 +23696,7 @@
23725
23696
 
23726
23697
  uniforms: {
23727
23698
  'envMap': { value: null },
23728
- 'flipEnvMap': { value: - 1 }
23699
+ 'flipEnvMap': { value: -1 }
23729
23700
  },
23730
23701
 
23731
23702
  vertexShader: _getCommonVertexShader(),
@@ -28142,18 +28113,18 @@
28142
28113
  version: 0,
28143
28114
 
28144
28115
  hash: {
28145
- directionalLength: - 1,
28146
- pointLength: - 1,
28147
- spotLength: - 1,
28148
- rectAreaLength: - 1,
28149
- hemiLength: - 1,
28150
-
28151
- numDirectionalShadows: - 1,
28152
- numPointShadows: - 1,
28153
- numSpotShadows: - 1,
28154
- numSpotMaps: - 1,
28155
-
28156
- numLightProbes: - 1
28116
+ directionalLength: -1,
28117
+ pointLength: -1,
28118
+ spotLength: -1,
28119
+ rectAreaLength: -1,
28120
+ hemiLength: -1,
28121
+
28122
+ numDirectionalShadows: -1,
28123
+ numPointShadows: -1,
28124
+ numSpotShadows: -1,
28125
+ numSpotMaps: -1,
28126
+
28127
+ numLightProbes: -1
28157
28128
  },
28158
28129
 
28159
28130
  ambient: [ 0, 0, 0 ],
@@ -28781,7 +28752,7 @@
28781
28752
  fullScreenTri.setAttribute(
28782
28753
  'position',
28783
28754
  new BufferAttribute(
28784
- new Float32Array( [ - 1, - 1, 0.5, 3, - 1, 0.5, - 1, 3, 0.5 ] ),
28755
+ new Float32Array( [ -1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5 ] ),
28785
28756
  3
28786
28757
  )
28787
28758
  );
@@ -29202,7 +29173,7 @@
29202
29173
  locked = false;
29203
29174
 
29204
29175
  currentColorMask = null;
29205
- currentColorClear.set( - 1, 0, 0, 0 ); // set to invalid state
29176
+ currentColorClear.set( -1, 0, 0, 0 ); // set to invalid state
29206
29177
 
29207
29178
  }
29208
29179
 
@@ -29489,12 +29460,12 @@
29489
29460
  let version = 0;
29490
29461
  const glVersion = gl.getParameter( gl.VERSION );
29491
29462
 
29492
- if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) {
29463
+ if ( glVersion.indexOf( 'WebGL' ) !== -1 ) {
29493
29464
 
29494
29465
  version = parseFloat( /^WebGL (\d)/.exec( glVersion )[ 1 ] );
29495
29466
  lineWidthAvailable = ( version >= 1.0 );
29496
29467
 
29497
- } else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) {
29468
+ } else if ( glVersion.indexOf( 'OpenGL ES' ) !== -1 ) {
29498
29469
 
29499
29470
  version = parseFloat( /^OpenGL ES (\d)/.exec( glVersion )[ 1 ] );
29500
29471
  lineWidthAvailable = ( version >= 2.0 );
@@ -33326,7 +33297,7 @@ void main() {
33326
33297
 
33327
33298
  const controllerIndex = controllerInputSources.indexOf( event.inputSource );
33328
33299
 
33329
- if ( controllerIndex === - 1 ) {
33300
+ if ( controllerIndex === -1 ) {
33330
33301
 
33331
33302
  return;
33332
33303
 
@@ -33606,7 +33577,7 @@ void main() {
33606
33577
 
33607
33578
  let controllerIndex = controllerInputSources.indexOf( inputSource );
33608
33579
 
33609
- if ( controllerIndex === - 1 ) {
33580
+ if ( controllerIndex === -1 ) {
33610
33581
 
33611
33582
  // Assign input source a controller that currently has no input source
33612
33583
 
@@ -33630,7 +33601,7 @@ void main() {
33630
33601
 
33631
33602
  // If all controllers do currently receive input we ignore new ones
33632
33603
 
33633
- if ( controllerIndex === - 1 ) break;
33604
+ if ( controllerIndex === -1 ) break;
33634
33605
 
33635
33606
  }
33636
33607
 
@@ -34180,7 +34151,7 @@ void main() {
34180
34151
 
34181
34152
  if ( material.side === BackSide ) {
34182
34153
 
34183
- uniforms.bumpScale.value *= - 1;
34154
+ uniforms.bumpScale.value *= -1;
34184
34155
 
34185
34156
  }
34186
34157
 
@@ -34247,19 +34218,19 @@ void main() {
34247
34218
  _e1.copy( envMapRotation );
34248
34219
 
34249
34220
  // accommodate left-handed frame
34250
- _e1.x *= - 1; _e1.y *= - 1; _e1.z *= - 1;
34221
+ _e1.x *= -1; _e1.y *= -1; _e1.z *= -1;
34251
34222
 
34252
34223
  if ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) {
34253
34224
 
34254
34225
  // environment maps which are not cube render targets or PMREMs follow a different convention
34255
- _e1.y *= - 1;
34256
- _e1.z *= - 1;
34226
+ _e1.y *= -1;
34227
+ _e1.z *= -1;
34257
34228
 
34258
34229
  }
34259
34230
 
34260
34231
  uniforms.envMapRotation.value.setFromMatrix4( _m1.makeRotationFromEuler( _e1 ) );
34261
34232
 
34262
- uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
34233
+ uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
34263
34234
 
34264
34235
  uniforms.reflectivity.value = material.reflectivity;
34265
34236
  uniforms.ior.value = material.ior;
@@ -34682,7 +34653,7 @@ void main() {
34682
34653
 
34683
34654
  for ( let i = 0; i < maxBindingPoints; i ++ ) {
34684
34655
 
34685
- if ( allocatedBindingPoints.indexOf( i ) === - 1 ) {
34656
+ if ( allocatedBindingPoints.indexOf( i ) === -1 ) {
34686
34657
 
34687
34658
  allocatedBindingPoints.push( i );
34688
34659
  return i;
@@ -35103,7 +35074,7 @@ void main() {
35103
35074
  let _currentActiveCubeFace = 0;
35104
35075
  let _currentActiveMipmapLevel = 0;
35105
35076
  let _currentRenderTarget = null;
35106
- let _currentMaterialId = - 1;
35077
+ let _currentMaterialId = -1;
35107
35078
 
35108
35079
  let _currentCamera = null;
35109
35080
 
@@ -36192,7 +36163,7 @@ void main() {
36192
36163
  // _gl.finish();
36193
36164
 
36194
36165
  bindingStates.resetDefaultState();
36195
- _currentMaterialId = - 1;
36166
+ _currentMaterialId = -1;
36196
36167
  _currentCamera = null;
36197
36168
 
36198
36169
  renderStateStack.pop();
@@ -36997,7 +36968,7 @@ void main() {
36997
36968
 
36998
36969
  m_uniforms.envMap.value = envMap;
36999
36970
 
37000
- m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
36971
+ m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
37001
36972
 
37002
36973
  }
37003
36974
 
@@ -37268,7 +37239,7 @@ void main() {
37268
37239
 
37269
37240
  }
37270
37241
 
37271
- _currentMaterialId = - 1; // reset current material to ensure correct uniform bindings
37242
+ _currentMaterialId = -1; // reset current material to ensure correct uniform bindings
37272
37243
 
37273
37244
  };
37274
37245
 
@@ -38305,7 +38276,7 @@ void main() {
38305
38276
  let groupCount = 0;
38306
38277
 
38307
38278
  const radius = ( top === true ) ? radiusTop : radiusBottom;
38308
- const sign = ( top === true ) ? 1 : - 1;
38279
+ const sign = ( top === true ) ? 1 : -1;
38309
38280
 
38310
38281
  // first we generate the center vertex data of the cap.
38311
38282
  // because the geometry needs one set of uvs per face,
@@ -38740,8 +38711,8 @@ void main() {
38740
38711
  constructor( radius = 1, detail = 0 ) {
38741
38712
 
38742
38713
  const vertices = [
38743
- 1, 0, 0, - 1, 0, 0, 0, 1, 0,
38744
- 0, - 1, 0, 0, 0, 1, 0, 0, - 1
38714
+ 1, 0, 0, -1, 0, 0, 0, 1, 0,
38715
+ 0, -1, 0, 0, 0, 1, 0, 0, -1
38745
38716
  ];
38746
38717
 
38747
38718
  const indices = [
@@ -38944,7 +38915,7 @@ void main() {
38944
38915
 
38945
38916
  } else if ( iy === heightSegments && thetaEnd === Math.PI ) {
38946
38917
 
38947
- uOffset = - 0.5 / widthSegments;
38918
+ uOffset = -0.5 / widthSegments;
38948
38919
 
38949
38920
  }
38950
38921
 
@@ -39180,7 +39151,7 @@ void main() {
39180
39151
  } else if ( camera.isOrthographicCamera ) {
39181
39152
 
39182
39153
  this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera
39183
- this.ray.direction.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld );
39154
+ this.ray.direction.set( 0, 0, -1 ).transformDirection( camera.matrixWorld );
39184
39155
  this.camera = camera;
39185
39156
 
39186
39157
  } else {
@@ -39196,7 +39167,7 @@ void main() {
39196
39167
  _matrix.identity().extractRotation( controller.matrixWorld );
39197
39168
 
39198
39169
  this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
39199
- this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
39170
+ this.ray.direction.set( 0, 0, -1 ).applyMatrix4( _matrix );
39200
39171
 
39201
39172
  return this;
39202
39173
 
@@ -39393,104 +39364,6 @@ void main() {
39393
39364
 
39394
39365
  }
39395
39366
 
39396
- class SubtractedHandleTransformStateImpl {
39397
- t1;
39398
- t2;
39399
- _position;
39400
- _quaternion;
39401
- _rotation;
39402
- _scale;
39403
- constructor(t1, t2) {
39404
- this.t1 = t1;
39405
- this.t2 = t2;
39406
- }
39407
- get time() {
39408
- return this.t1.time - this.t2.time;
39409
- }
39410
- get position() {
39411
- return (this._position ??= this.t1.position.clone().sub(this.t2.position));
39412
- }
39413
- get quaternion() {
39414
- return (this._quaternion ??= this.t2.quaternion.clone().invert().premultiply(this.t1.quaternion));
39415
- }
39416
- get rotation() {
39417
- return (this._rotation ??= new Euler().setFromQuaternion(this.quaternion));
39418
- }
39419
- get scale() {
39420
- return (this._scale ??= this.t1.scale.clone().sub(this.t2.scale));
39421
- }
39422
- }
39423
- class HandleStateImpl {
39424
- cancel;
39425
- previous;
39426
- memo;
39427
- event;
39428
- //will be set by start before the first read
39429
- initial;
39430
- current;
39431
- first;
39432
- last;
39433
- //cache
39434
- _delta;
39435
- _offset;
39436
- constructor(cancel) {
39437
- this.cancel = cancel;
39438
- }
39439
- start(event, current) {
39440
- this.event = event;
39441
- this.previous = undefined;
39442
- this.current = current;
39443
- this.initial = current;
39444
- this.first = true;
39445
- this.last = false;
39446
- this.memo = undefined;
39447
- this._delta = undefined;
39448
- this._offset = undefined;
39449
- }
39450
- update(event, current) {
39451
- this.event = event;
39452
- this.previous = this.current;
39453
- this.current = current;
39454
- this.first = false;
39455
- this.last = false;
39456
- this._delta = undefined;
39457
- this._offset = undefined;
39458
- }
39459
- end(event) {
39460
- this.event = event;
39461
- this.first = false;
39462
- this.last = true;
39463
- this._delta = undefined;
39464
- this._offset = undefined;
39465
- }
39466
- get delta() {
39467
- if (this.previous == null) {
39468
- return undefined;
39469
- }
39470
- return (this._delta ??= new SubtractedHandleTransformStateImpl(this.current, this.previous));
39471
- }
39472
- get offset() {
39473
- return (this._offset ??= new SubtractedHandleTransformStateImpl(this.current, this.initial));
39474
- }
39475
- }
39476
-
39477
- function getWorldDirection(event, target) {
39478
- if (event.details.type === 'sphere') {
39479
- return false;
39480
- }
39481
- if (event.details.type === 'lines') {
39482
- const { line } = event.details;
39483
- target.copy(line.end).sub(line.start).normalize();
39484
- return true;
39485
- }
39486
- if (event.details.type === 'screen-ray') {
39487
- target.copy(event.details.direction);
39488
- return true;
39489
- }
39490
- target.set(0, 0, -1).applyQuaternion(event.pointerQuaternion);
39491
- return true;
39492
- }
39493
-
39494
39367
  function clamp( value, min, max ) {
39495
39368
 
39496
39369
  return Math.max( min, Math.min( max, value ) );
@@ -39552,7 +39425,9 @@ void main() {
39552
39425
  rotation = applyTransformOptionsToRotation(quaternion, storeData.initialTargetRotation, rotateOptions);
39553
39426
  }
39554
39427
  //compute scale
39555
- applyTransformOptionsToVector(scale, storeData.initialTargetScale, options.scale ?? true);
39428
+ if (typeof options.scale != 'object' || !options.scale.uniform) {
39429
+ applyTransformOptionsToVector(scale, storeData.initialTargetScale, options.scale ?? true);
39430
+ }
39556
39431
  return {
39557
39432
  pointerAmount,
39558
39433
  position,
@@ -39947,16 +39822,17 @@ void main() {
39947
39822
  (storeData.prevAngle ?? 0);
39948
39823
  storeData.prevAngle = angle;
39949
39824
  qHelper1$1.premultiply(quaterionHelper2.setFromAxisAngle(vectorHelper2$1, angle));
39825
+ //compute the initial world quaternion and initial world scale
39826
+ matrixHelper3.compose(storeData.initialTargetPosition, storeData.initialTargetQuaternion, storeData.initialTargetScale);
39827
+ if (storeData.initialTargetParentWorldMatrix != null) {
39828
+ matrixHelper3.premultiply(storeData.initialTargetParentWorldMatrix);
39829
+ }
39950
39830
  //compute delta scale
39951
39831
  if (typeof options.scale === 'object' && (options.scale.uniform ?? false)) {
39952
39832
  scaleHelper$2.setScalar(deltaHelper2$1.length() / deltaHelper1$1.length());
39953
39833
  }
39954
39834
  else {
39955
- //compute the initial world quaternion and initial world scale
39956
- matrixHelper3.compose(storeData.initialTargetPosition, storeData.initialTargetQuaternion, storeData.initialTargetScale);
39957
- if (storeData.initialTargetParentWorldMatrix != null) {
39958
- matrixHelper3.premultiply(storeData.initialTargetParentWorldMatrix);
39959
- }
39835
+ //decompose the initial target world matrix
39960
39836
  matrixHelper3.decompose(vectorHelper3$1, quaterionHelper2, vectorHelper4);
39961
39837
  //compute the initial scale axis
39962
39838
  vectorHelper1$1.copy(deltaHelper1$1).applyQuaternion(quaterionHelper2.invert()).divide(vectorHelper4);
@@ -40106,6 +39982,104 @@ void main() {
40106
39982
  return computeHandleTransformState(time, 1, matrixHelper, storeData, undefined, options);
40107
39983
  }
40108
39984
 
39985
+ class SubtractedHandleTransformStateImpl {
39986
+ t1;
39987
+ t2;
39988
+ _position;
39989
+ _quaternion;
39990
+ _rotation;
39991
+ _scale;
39992
+ constructor(t1, t2) {
39993
+ this.t1 = t1;
39994
+ this.t2 = t2;
39995
+ }
39996
+ get time() {
39997
+ return this.t1.time - this.t2.time;
39998
+ }
39999
+ get position() {
40000
+ return (this._position ??= this.t1.position.clone().sub(this.t2.position));
40001
+ }
40002
+ get quaternion() {
40003
+ return (this._quaternion ??= this.t2.quaternion.clone().invert().premultiply(this.t1.quaternion));
40004
+ }
40005
+ get rotation() {
40006
+ return (this._rotation ??= new Euler().setFromQuaternion(this.quaternion));
40007
+ }
40008
+ get scale() {
40009
+ return (this._scale ??= this.t1.scale.clone().sub(this.t2.scale));
40010
+ }
40011
+ }
40012
+ class HandleStateImpl {
40013
+ cancel;
40014
+ previous;
40015
+ memo;
40016
+ event;
40017
+ //will be set by start before the first read
40018
+ initial;
40019
+ current;
40020
+ first;
40021
+ last;
40022
+ //cache
40023
+ _delta;
40024
+ _offset;
40025
+ constructor(cancel) {
40026
+ this.cancel = cancel;
40027
+ }
40028
+ start(event, current) {
40029
+ this.event = event;
40030
+ this.previous = undefined;
40031
+ this.current = current;
40032
+ this.initial = current;
40033
+ this.first = true;
40034
+ this.last = false;
40035
+ this.memo = undefined;
40036
+ this._delta = undefined;
40037
+ this._offset = undefined;
40038
+ }
40039
+ update(event, current) {
40040
+ this.event = event;
40041
+ this.previous = this.current;
40042
+ this.current = current;
40043
+ this.first = false;
40044
+ this.last = false;
40045
+ this._delta = undefined;
40046
+ this._offset = undefined;
40047
+ }
40048
+ end(event) {
40049
+ this.event = event;
40050
+ this.first = false;
40051
+ this.last = true;
40052
+ this._delta = undefined;
40053
+ this._offset = undefined;
40054
+ }
40055
+ get delta() {
40056
+ if (this.previous == null) {
40057
+ return undefined;
40058
+ }
40059
+ return (this._delta ??= new SubtractedHandleTransformStateImpl(this.current, this.previous));
40060
+ }
40061
+ get offset() {
40062
+ return (this._offset ??= new SubtractedHandleTransformStateImpl(this.current, this.initial));
40063
+ }
40064
+ }
40065
+
40066
+ function getWorldDirection(event, target) {
40067
+ if (event.details.type === 'sphere') {
40068
+ return false;
40069
+ }
40070
+ if (event.details.type === 'lines') {
40071
+ const { line } = event.details;
40072
+ target.copy(line.end).sub(line.start).normalize();
40073
+ return true;
40074
+ }
40075
+ if (event.details.type === 'screen-ray') {
40076
+ target.copy(event.details.direction);
40077
+ return true;
40078
+ }
40079
+ target.set(0, 0, -1).applyQuaternion(event.pointerQuaternion);
40080
+ return true;
40081
+ }
40082
+
40109
40083
  const vectorHelper$3 = new Vector3();
40110
40084
  class HandleStore {
40111
40085
  target;
@@ -40459,8 +40433,14 @@ void main() {
40459
40433
  toneMapped: false,
40460
40434
  transparent: true,
40461
40435
  };
40462
- function setupHandlesContextHoverMaterial(context, material, tag, { color, hoverColor, hoverOpacity, opacity, }) {
40463
- if (hoverColor == null && hoverOpacity == null) {
40436
+ function setupHandlesContextHoverMaterial(context, material, tag, { color, hoverColor, hoverOpacity, opacity, disabled = false, }) {
40437
+ if ((hoverColor == null && hoverOpacity == null) || disabled) {
40438
+ material.color.set(color);
40439
+ material.opacity = opacity ?? 1;
40440
+ if (disabled) {
40441
+ material.opacity *= 0.5;
40442
+ material.color.lerp(new Color(1, 1, 1), 0.5);
40443
+ }
40464
40444
  return;
40465
40445
  }
40466
40446
  hoverColor ??= color;
@@ -40472,11 +40452,13 @@ void main() {
40472
40452
  }
40473
40453
 
40474
40454
  const quaternionHelper$5 = new Quaternion();
40455
+ const geometry = new BufferGeometry();
40456
+ geometry.setAttribute('position', new Float32BufferAttribute([-1e3, 0, 0, 1e3, 0, 0], 3));
40475
40457
  class HandlesAxisHighlight extends LineSegments {
40476
40458
  context;
40477
40459
  rotationOffset;
40478
40460
  constructor(context, rotationOffset) {
40479
- super();
40461
+ super(geometry);
40480
40462
  this.context = context;
40481
40463
  this.rotationOffset = rotationOffset;
40482
40464
  this.renderOrder = Infinity;
@@ -40490,8 +40472,6 @@ void main() {
40490
40472
  }
40491
40473
  }
40492
40474
  bind(tag) {
40493
- this.geometry = new BufferGeometry();
40494
- this.geometry.setAttribute('position', new Float32BufferAttribute([-1e3, 0, 0, 1e3, 0, 0], 3));
40495
40475
  this.material = new LineBasicMaterial({
40496
40476
  ...handleXRayMaterialProperties,
40497
40477
  color: this.material.color ?? 'white',
@@ -40514,7 +40494,6 @@ void main() {
40514
40494
  }
40515
40495
  });
40516
40496
  return () => {
40517
- this.geometry.dispose();
40518
40497
  this.material.dispose();
40519
40498
  unsubscribeHover();
40520
40499
  unsubscribeApply();
@@ -40539,7 +40518,7 @@ void main() {
40539
40518
 
40540
40519
  function extractHandleTransformOptions(key, properties = true) {
40541
40520
  if (properties === false) {
40542
- return false;
40521
+ return { options: false, disabled: true };
40543
40522
  }
40544
40523
  if (properties === true) {
40545
40524
  const result = {
@@ -40551,18 +40530,24 @@ void main() {
40551
40530
  for (const axis of key) {
40552
40531
  result[axis] = true;
40553
40532
  }
40554
- return result;
40533
+ return { options: result, disabled: false };
40534
+ }
40535
+ if (properties === 'disabled') {
40536
+ return { options: { x: true, y: true, z: true, e: true }, disabled: true };
40555
40537
  }
40556
40538
  if (typeof properties === 'string') {
40557
- return properties === key
40558
- ? {
40559
- x: false,
40560
- y: false,
40561
- z: false,
40562
- e: false,
40563
- [key]: true,
40564
- }
40565
- : false;
40539
+ return {
40540
+ options: properties === key
40541
+ ? {
40542
+ x: false,
40543
+ y: false,
40544
+ z: false,
40545
+ e: false,
40546
+ [key]: true,
40547
+ }
40548
+ : false,
40549
+ disabled: false,
40550
+ };
40566
40551
  }
40567
40552
  const result = {
40568
40553
  x: false,
@@ -40570,14 +40555,19 @@ void main() {
40570
40555
  z: false,
40571
40556
  e: false,
40572
40557
  };
40558
+ let disabled = false;
40573
40559
  for (const axis of key) {
40574
- const axisOption = properties[axis] ?? true;
40560
+ let axisOption = properties[axis] ?? true;
40575
40561
  if (axisOption === false) {
40576
- return false;
40562
+ return { options: false, disabled: true };
40563
+ }
40564
+ if (axisOption === 'disabled') {
40565
+ disabled = true;
40566
+ axisOption = true;
40577
40567
  }
40578
40568
  result[axis] = axisOption;
40579
40569
  }
40580
- return result;
40570
+ return { options: result, disabled };
40581
40571
  }
40582
40572
  const worldPositionHelper = new Vector3();
40583
40573
  const cameraPositionHelper = new Vector3();
@@ -40604,8 +40594,8 @@ void main() {
40604
40594
  arrowHeadGeometry.translate(0, 0.05, 0);
40605
40595
  const arrowBodyGeometry = new CylinderGeometry(0.0075, 0.0075, 0.5, 3);
40606
40596
  arrowBodyGeometry.translate(0, 0.25, 0);
40607
- const normalRotation$1 = new Euler(0, 0, -Math.PI / 2);
40608
- const invertedRotation$1 = new Euler(0, 0, Math.PI / 2);
40597
+ const normalRotation$2 = new Euler(0, 0, -Math.PI / 2);
40598
+ const invertedRotation$2 = new Euler(0, 0, Math.PI / 2);
40609
40599
  class AxisTranslateHandle extends RegisteredHandle {
40610
40600
  invert;
40611
40601
  showArrowBody;
@@ -40620,17 +40610,18 @@ void main() {
40620
40610
  this.showArrowBody = showArrowBody;
40621
40611
  }
40622
40612
  bind(defaultColor, defaultHoverColor, config) {
40623
- const options = extractHandleTransformOptions(this.axis, config);
40613
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
40624
40614
  if (options === false) {
40625
40615
  return undefined;
40626
40616
  }
40627
40617
  this.options = options;
40628
- const rotation = this.invert ? invertedRotation$1 : normalRotation$1;
40618
+ const rotation = this.invert ? invertedRotation$2 : normalRotation$2;
40629
40619
  //visualization
40630
40620
  const material = new MeshBasicMaterial(handleXRayMaterialProperties);
40631
40621
  const cleanupHeadHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
40632
40622
  color: defaultColor,
40633
40623
  hoverColor: defaultHoverColor,
40624
+ disabled,
40634
40625
  });
40635
40626
  const visualizationHeadMesh = new Mesh(arrowHeadGeometry, material);
40636
40627
  visualizationHeadMesh.renderOrder = Infinity;
@@ -40644,6 +40635,7 @@ void main() {
40644
40635
  cleanupBodyHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
40645
40636
  color: defaultColor,
40646
40637
  hoverColor: 0xffff40,
40638
+ disabled,
40647
40639
  });
40648
40640
  visualizationBodyMesh = new Mesh(arrowBodyGeometry, material);
40649
40641
  visualizationBodyMesh.renderOrder = Infinity;
@@ -40657,10 +40649,10 @@ void main() {
40657
40649
  interactionMesh.rotation.copy(rotation);
40658
40650
  interactionMesh.visible = false;
40659
40651
  this.add(interactionMesh);
40660
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
40652
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
40661
40653
  return () => {
40662
40654
  material.dispose();
40663
- unregister();
40655
+ unregister?.();
40664
40656
  cleanupHeadHover?.();
40665
40657
  cleanupBodyHover?.();
40666
40658
  this.remove(visualizationHeadMesh);
@@ -40682,7 +40674,7 @@ void main() {
40682
40674
  }));
40683
40675
  }
40684
40676
  bind(defaultColor, defaultHoverColor, config) {
40685
- const options = extractHandleTransformOptions(this.axis, config);
40677
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
40686
40678
  if (options === false) {
40687
40679
  return undefined;
40688
40680
  }
@@ -40693,17 +40685,18 @@ void main() {
40693
40685
  hoverOpacity: 1,
40694
40686
  color: defaultColor,
40695
40687
  hoverColor: defaultHoverColor,
40688
+ disabled,
40696
40689
  });
40697
40690
  const mesh = new Mesh(new BoxGeometry(0.2, 0.2, 0.01), material);
40698
40691
  mesh.renderOrder = Infinity;
40699
40692
  mesh.pointerEventsOrder = Infinity;
40700
40693
  mesh.position.set(0.15, 0.15, 0);
40701
- const unregister = this.context.registerHandle(this.store, mesh, this.tag);
40694
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, mesh, this.tag);
40702
40695
  this.add(mesh);
40703
40696
  return () => {
40704
40697
  material.dispose();
40705
40698
  mesh.geometry.dispose();
40706
- unregister();
40699
+ unregister?.();
40707
40700
  cleanupHover?.();
40708
40701
  this.remove(mesh);
40709
40702
  };
@@ -40767,7 +40760,7 @@ void main() {
40767
40760
  }));
40768
40761
  }
40769
40762
  bind(config) {
40770
- const options = extractHandleTransformOptions(this.axis, config);
40763
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
40771
40764
  if (options === false) {
40772
40765
  return undefined;
40773
40766
  }
@@ -40779,6 +40772,7 @@ void main() {
40779
40772
  hoverColor: 0xffff00,
40780
40773
  opacity: 0.25,
40781
40774
  hoverOpacity: 1,
40775
+ disabled,
40782
40776
  });
40783
40777
  const visualizationMesh = new Mesh(new OctahedronGeometry(0.1, 0), material);
40784
40778
  visualizationMesh.renderOrder = Infinity;
@@ -40788,12 +40782,12 @@ void main() {
40788
40782
  interactionMesh.pointerEventsOrder = Infinity;
40789
40783
  interactionMesh.visible = false;
40790
40784
  this.add(interactionMesh);
40791
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
40785
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
40792
40786
  return () => {
40793
40787
  material.dispose();
40794
40788
  visualizationMesh.geometry.dispose();
40795
40789
  interactionMesh.geometry.dispose();
40796
- unregister();
40790
+ unregister?.();
40797
40791
  cleanupHeadHover?.();
40798
40792
  this.remove(visualizationMesh);
40799
40793
  this.remove(interactionMesh);
@@ -40936,83 +40930,8 @@ void main() {
40936
40930
  }
40937
40931
  }
40938
40932
 
40939
- class FreeScaleHandle extends RegisteredHandle {
40940
- constructor(context) {
40941
- super(context, 'xyz', '', () => ({
40942
- scale: { uniform: true, ...this.options },
40943
- rotate: false,
40944
- translate: 'as-scale',
40945
- multitouch: false,
40946
- }));
40947
- }
40948
- bind(config) {
40949
- const options = extractHandleTransformOptions(this.axis, config);
40950
- if (options === false) {
40951
- return undefined;
40952
- }
40953
- this.options = options;
40954
- //visualization
40955
- const material = new MeshBasicMaterial(handleXRayMaterialProperties);
40956
- const cleanupHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
40957
- opacity: 0.25,
40958
- hoverOpacity: 1,
40959
- color: 0xffffff,
40960
- hoverColor: 0xffff00,
40961
- });
40962
- const visualizationMesh = new Mesh(new BoxGeometry(0.1, 0.1, 0.1), material);
40963
- visualizationMesh.renderOrder = Infinity;
40964
- this.add(visualizationMesh);
40965
- //interaction
40966
- const interactionMesh = new Mesh(new BoxGeometry(0.2, 0.2, 0.2));
40967
- interactionMesh.visible = false;
40968
- interactionMesh.pointerEventsOrder = Infinity;
40969
- this.add(interactionMesh);
40970
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
40971
- return () => {
40972
- material.dispose();
40973
- interactionMesh.geometry.dispose();
40974
- visualizationMesh.geometry.dispose();
40975
- unregister();
40976
- cleanupHover?.();
40977
- this.remove(interactionMesh);
40978
- this.remove(visualizationMesh);
40979
- };
40980
- }
40981
- }
40982
- /*import { HandleTransformOptions } from '@pmndrs/handle'
40983
- import { RegisteredHandle } from '../context.js'
40984
- import { MeshHandlesContextMaterial } from '../material.js'
40985
- import { Vector3Tuple } from 'three'
40986
- import { useExtractHandleTransformOptions } from '../utils.js'
40987
-
40988
- export function FreeScaleControl({ enabled }: { enabled?: Exclude<HandleTransformOptions, Array<Vector3Tuple>> }) {
40989
- const scaleOptions = useExtractHandleTransformOptions('xyz', enabled)
40990
- if (scaleOptions === false) {
40991
- return null
40992
- }
40993
- return (
40994
- <>
40995
- <RegisteredHandle
40996
- tag="xyz"
40997
- translate="as-scale"
40998
- rotate={false}
40999
- scale={{ uniform: true, ...scaleOptions }}
41000
- multitouch={false}
41001
- >
41002
- <mesh pointerEventsOrder={Infinity} visible={false}>
41003
- <boxGeometry args={[0.2, 0.2, 0.2]} />
41004
- </mesh>
41005
- </RegisteredHandle>
41006
- <mesh renderOrder={Infinity}>
41007
- <boxGeometry args={[0.1, 0.1, 0.1]} />
41008
- <MeshHandlesContextMaterial tag="xyz" color={0xffffff} opacity={0.25} hoverOpacity={1} hoverColor={0xffff00} />
41009
- </mesh>
41010
- </>
41011
- )
41012
- }*/
41013
-
41014
- const normalRotation = new Euler(0, 0, -Math.PI / 2);
41015
- const invertedRotation = new Euler(0, 0, Math.PI / 2);
40933
+ const normalRotation$1 = new Euler(0, 0, -Math.PI / 2);
40934
+ const invertedRotation$1 = new Euler(0, 0, Math.PI / 2);
41016
40935
  class AxisScaleHandle extends RegisteredHandle {
41017
40936
  invert;
41018
40937
  showHandleLine;
@@ -41027,12 +40946,12 @@ void main() {
41027
40946
  this.showHandleLine = showHandleLine;
41028
40947
  }
41029
40948
  bind(defaultColor, defaultHoverColor, config) {
41030
- const options = extractHandleTransformOptions(this.axis, config);
40949
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
41031
40950
  if (options === false) {
41032
40951
  return undefined;
41033
40952
  }
41034
40953
  this.options = options;
41035
- const rotation = this.invert ? invertedRotation : normalRotation;
40954
+ const rotation = this.invert ? invertedRotation$1 : normalRotation$1;
41036
40955
  //visualization
41037
40956
  const visualizationHeadGroup = new Group();
41038
40957
  visualizationHeadGroup.position.x = this.invert ? -0.5 : 0.5;
@@ -41042,6 +40961,7 @@ void main() {
41042
40961
  const cleanupHeadHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
41043
40962
  color: defaultColor,
41044
40963
  hoverColor: defaultHoverColor,
40964
+ disabled,
41045
40965
  });
41046
40966
  const visualizationHeadMesh = new Mesh(new BoxGeometry(0.08, 0.08, 0.08), material);
41047
40967
  visualizationHeadMesh.renderOrder = Infinity;
@@ -41058,6 +40978,7 @@ void main() {
41058
40978
  cleanupLineHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
41059
40979
  color: defaultColor,
41060
40980
  hoverColor: defaultHoverColor,
40981
+ disabled,
41061
40982
  });
41062
40983
  visualizationLineMesh = new Mesh(new CylinderGeometry(0.0075, 0.0075, 0.5, 3), material);
41063
40984
  visualizationLineMesh.renderOrder = Infinity;
@@ -41070,20 +40991,19 @@ void main() {
41070
40991
  interactionGroup.rotation.copy(rotation);
41071
40992
  interactionGroup.position.x = this.invert ? -0.3 : 0.3;
41072
40993
  this.add(interactionGroup);
41073
- const interactionMesh = new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4));
40994
+ const interactionMesh = new Mesh(new CylinderGeometry(0.2, 0, 0.5, 4));
41074
40995
  interactionMesh.pointerEventsOrder = Infinity;
41075
40996
  interactionMesh.position.y = 0.04;
41076
40997
  interactionGroup.add(interactionMesh);
41077
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
40998
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
41078
40999
  return () => {
41079
41000
  material.dispose();
41080
41001
  interactionMesh.geometry.dispose();
41081
41002
  visualizationHeadMesh.geometry.dispose();
41082
41003
  visualizationLineMesh?.geometry.dispose();
41083
- unregister();
41004
+ unregister?.();
41084
41005
  cleanupHeadHover?.();
41085
41006
  cleanupLineHover?.();
41086
- this.remove(visualizationHeadMesh);
41087
41007
  if (visualizationLineGroup != null) {
41088
41008
  this.remove(visualizationLineGroup);
41089
41009
  }
@@ -41103,7 +41023,7 @@ void main() {
41103
41023
  }));
41104
41024
  }
41105
41025
  bind(defaultColor, defaultHoverColor, config) {
41106
- const options = extractHandleTransformOptions(this.axis, config);
41026
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
41107
41027
  if (options === false) {
41108
41028
  return undefined;
41109
41029
  }
@@ -41114,29 +41034,90 @@ void main() {
41114
41034
  hoverOpacity: 1,
41115
41035
  color: defaultColor,
41116
41036
  hoverColor: defaultHoverColor,
41037
+ disabled,
41117
41038
  });
41118
41039
  const mesh = new Mesh(new BoxGeometry(0.2, 0.2, 0.01), material);
41119
41040
  mesh.renderOrder = Infinity;
41120
41041
  mesh.pointerEventsOrder = Infinity;
41121
41042
  mesh.position.set(0.15, 0.15, 0);
41122
- const unregister = this.context.registerHandle(this.store, mesh, this.tag);
41043
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, mesh, this.tag);
41123
41044
  this.add(mesh);
41124
41045
  return () => {
41125
41046
  material.dispose();
41126
41047
  mesh.geometry.dispose();
41127
- unregister();
41048
+ unregister?.();
41128
41049
  cleanupHover?.();
41129
41050
  this.remove(mesh);
41130
41051
  };
41131
41052
  }
41132
41053
  }
41133
41054
 
41055
+ const normalRotation = new Euler(0, 0, -Math.PI / 2);
41056
+ const invertedRotation = new Euler(0, 0, Math.PI / 2);
41057
+ class UniformAxisScaleHandle extends RegisteredHandle {
41058
+ actualAxis;
41059
+ invert;
41060
+ constructor(context, tagPrefix = '', actualAxis, invert = false) {
41061
+ super(context, 'xyz', tagPrefix, () => ({
41062
+ scale: { uniform: true, ...this.options },
41063
+ rotate: false,
41064
+ translate: 'as-scale',
41065
+ multitouch: false,
41066
+ }));
41067
+ this.actualAxis = actualAxis;
41068
+ this.invert = invert;
41069
+ }
41070
+ bind(defaultColor, defaultHoverColor, config) {
41071
+ const { options, disabled } = extractHandleTransformOptions(this.actualAxis, config);
41072
+ if (options === false) {
41073
+ return undefined;
41074
+ }
41075
+ this.options = options;
41076
+ const rotation = this.invert ? invertedRotation : normalRotation;
41077
+ //visualization
41078
+ const headGroup = new Group();
41079
+ headGroup.position.x = this.invert ? -0.7 : 0.7;
41080
+ headGroup.rotation.copy(rotation);
41081
+ this.add(headGroup);
41082
+ const material = new MeshBasicMaterial(handleXRayMaterialProperties);
41083
+ const cleanupHeadHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
41084
+ color: defaultColor,
41085
+ hoverColor: defaultHoverColor,
41086
+ opacity: 0.5,
41087
+ hoverOpacity: 1,
41088
+ disabled,
41089
+ });
41090
+ const visualizationHeadMesh = new Mesh(new BoxGeometry(0.08, 0.08, 0.08), material);
41091
+ visualizationHeadMesh.renderOrder = Infinity;
41092
+ visualizationHeadMesh.rotation.copy(rotation);
41093
+ headGroup.add(visualizationHeadMesh);
41094
+ const interactionHeadMesh = new Mesh(new BoxGeometry(0.15, 0.15, 0.15), material);
41095
+ interactionHeadMesh.visible = false;
41096
+ interactionHeadMesh.pointerEventsOrder = Infinity;
41097
+ interactionHeadMesh.rotation.copy(rotation);
41098
+ headGroup.add(interactionHeadMesh);
41099
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionHeadMesh, this.tag);
41100
+ return () => {
41101
+ material.dispose();
41102
+ visualizationHeadMesh.geometry.dispose();
41103
+ unregister?.();
41104
+ cleanupHeadHover?.();
41105
+ this.remove(headGroup);
41106
+ };
41107
+ }
41108
+ }
41109
+
41134
41110
  const vectorHelper$1 = new Vector3();
41135
41111
  class ScaleHandles extends Group {
41136
41112
  context;
41137
41113
  size;
41138
41114
  fixed;
41139
- free;
41115
+ scaleX;
41116
+ scaleY;
41117
+ scaleZ;
41118
+ scaleNegX;
41119
+ scaleNegY;
41120
+ scaleNegZ;
41140
41121
  translationX;
41141
41122
  translationY;
41142
41123
  translationZ;
@@ -41151,8 +41132,22 @@ void main() {
41151
41132
  this.context = context;
41152
41133
  this.size = size;
41153
41134
  this.fixed = fixed;
41154
- this.free = new FreeScaleHandle(this.context);
41155
- this.add(this.free);
41135
+ this.scaleX = new UniformAxisScaleHandle(this.context, undefined, 'x');
41136
+ this.add(this.scaleX);
41137
+ this.scaleY = new UniformAxisScaleHandle(this.context, undefined, 'y');
41138
+ this.scaleY.rotation.z = Math.PI / 2;
41139
+ this.add(this.scaleY);
41140
+ this.scaleZ = new UniformAxisScaleHandle(this.context, undefined, 'z');
41141
+ this.scaleZ.rotation.y = -Math.PI / 2;
41142
+ this.add(this.scaleZ);
41143
+ this.scaleNegX = new UniformAxisScaleHandle(this.context, undefined, 'x', true);
41144
+ this.add(this.scaleNegX);
41145
+ this.scaleNegY = new UniformAxisScaleHandle(this.context, undefined, 'y', true);
41146
+ this.scaleNegY.rotation.z = Math.PI / 2;
41147
+ this.add(this.scaleNegY);
41148
+ this.scaleNegZ = new UniformAxisScaleHandle(this.context, undefined, 'z', true);
41149
+ this.scaleNegZ.rotation.y = -Math.PI / 2;
41150
+ this.add(this.scaleNegZ);
41156
41151
  this.translationX = new AxisScaleHandle(this.context, 'x');
41157
41152
  this.add(this.translationX);
41158
41153
  this.translationY = new AxisScaleHandle(this.context, 'y');
@@ -41189,6 +41184,12 @@ void main() {
41189
41184
  this.scale.multiplyScalar(computeHandlesScale(this, camera, this.fixed ?? true, this.size ?? 1));
41190
41185
  }
41191
41186
  bind(options) {
41187
+ const unbindScaleX = this.scaleX.bind(0xffffff, 0xffff00, options);
41188
+ const unbindScaleY = this.scaleY.bind(0xffffff, 0xffff00, options);
41189
+ const unbindScaleZ = this.scaleZ.bind(0xffffff, 0xffff00, options);
41190
+ const unbindScaleNegX = this.scaleNegX.bind(0xffffff, 0xffff00, options);
41191
+ const unbindScaleNegY = this.scaleNegY.bind(0xffffff, 0xffff00, options);
41192
+ const unbindScaleNegZ = this.scaleNegZ.bind(0xffffff, 0xffff00, options);
41192
41193
  const unbindTranslationX = this.translationX.bind(0xff0000, 0xffff00, options);
41193
41194
  const unbindTranslationY = this.translationY.bind(0x00ff00, 0xffff00, options);
41194
41195
  const unbindTranslationZ = this.translationZ.bind(0x0000ff, 0xffff00, options);
@@ -41198,7 +41199,6 @@ void main() {
41198
41199
  const unbindTranslationXY = this.translationXY.bind(0x0000ff, 0xffff00, options);
41199
41200
  const unbindTranslationYZ = this.translationYZ.bind(0xff0000, 0xffff00, options);
41200
41201
  const unbindTranslationXZ = this.translationXZ.bind(0x00ff00, 0xffff00, options);
41201
- const unbindFree = this.free.bind(options);
41202
41202
  return () => {
41203
41203
  unbindTranslationX?.();
41204
41204
  unbindTranslationY?.();
@@ -41209,7 +41209,12 @@ void main() {
41209
41209
  unbindTranslationXY?.();
41210
41210
  unbindTranslationYZ?.();
41211
41211
  unbindTranslationXZ?.();
41212
- unbindFree?.();
41212
+ unbindScaleX?.();
41213
+ unbindScaleY?.();
41214
+ unbindScaleZ?.();
41215
+ unbindScaleNegX?.();
41216
+ unbindScaleNegY?.();
41217
+ unbindScaleNegZ?.();
41213
41218
  };
41214
41219
  }
41215
41220
  }
@@ -41425,7 +41430,7 @@ void main() {
41425
41430
  }
41426
41431
  }
41427
41432
  bind(defaultColor, config) {
41428
- const options = extractHandleTransformOptions(this.axis, config);
41433
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
41429
41434
  if (options === false) {
41430
41435
  return undefined;
41431
41436
  }
@@ -41435,6 +41440,7 @@ void main() {
41435
41440
  const cleanupHover = setupHandlesContextHoverMaterial(this.context, material, this.tag, {
41436
41441
  color: defaultColor,
41437
41442
  hoverColor: 0xffff00,
41443
+ disabled,
41438
41444
  });
41439
41445
  const visualizationMesh = new Mesh(createCircleGeometry(0.5, 0.5), material);
41440
41446
  visualizationMesh.renderOrder = Infinity;
@@ -41445,12 +41451,12 @@ void main() {
41445
41451
  interactionMesh.pointerEventsOrder = Infinity;
41446
41452
  interactionMesh.rotation.set(0, -Math.PI / 2, -Math.PI / 2);
41447
41453
  this.add(interactionMesh);
41448
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
41454
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
41449
41455
  return () => {
41450
41456
  material.dispose();
41451
41457
  interactionMesh.geometry.dispose();
41452
41458
  visualizationMesh.geometry.dispose();
41453
- unregister();
41459
+ unregister?.();
41454
41460
  cleanupHover?.();
41455
41461
  this.remove(interactionMesh);
41456
41462
  this.remove(visualizationMesh);
@@ -41487,7 +41493,7 @@ void main() {
41487
41493
  }
41488
41494
  }
41489
41495
  bind(config) {
41490
- const options = extractHandleTransformOptions(this.axis, config);
41496
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
41491
41497
  if (options === false) {
41492
41498
  return undefined;
41493
41499
  }
@@ -41498,6 +41504,7 @@ void main() {
41498
41504
  color: 0xffffff,
41499
41505
  hoverColor: 0xffff00,
41500
41506
  opacity: 0.25,
41507
+ disabled,
41501
41508
  });
41502
41509
  const visualizationMesh = new Mesh(createCircleGeometry(0.5, 1), material);
41503
41510
  visualizationMesh.renderOrder = Infinity;
@@ -41507,13 +41514,13 @@ void main() {
41507
41514
  interactionMesh.visible = false;
41508
41515
  interactionMesh.pointerEventsOrder = Infinity;
41509
41516
  this.add(interactionMesh);
41510
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
41517
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
41511
41518
  return () => {
41512
41519
  this.pointerEvents = 'none';
41513
41520
  material.dispose();
41514
41521
  interactionMesh.geometry.dispose();
41515
41522
  visualizationMesh.geometry.dispose();
41516
- unregister();
41523
+ unregister?.();
41517
41524
  cleanupHover?.();
41518
41525
  this.remove(interactionMesh);
41519
41526
  this.remove(visualizationMesh);
@@ -41553,7 +41560,7 @@ void main() {
41553
41560
  this.direction.negate();
41554
41561
  }
41555
41562
  bind(config) {
41556
- const options = extractHandleTransformOptions(this.axis, config);
41563
+ const { options, disabled } = extractHandleTransformOptions(this.axis, config);
41557
41564
  if (options === false) {
41558
41565
  return undefined;
41559
41566
  }
@@ -41564,6 +41571,7 @@ void main() {
41564
41571
  color: 0xffff00,
41565
41572
  hoverColor: 0xffff00,
41566
41573
  opacity: 0.5,
41574
+ disabled,
41567
41575
  });
41568
41576
  const visualizationMesh = new Mesh(createCircleGeometry(0.75, 1), material);
41569
41577
  visualizationMesh.renderOrder = Infinity;
@@ -41574,12 +41582,12 @@ void main() {
41574
41582
  interactionMesh.rotation.y = Math.PI / 2;
41575
41583
  interactionMesh.pointerEventsOrder = Infinity;
41576
41584
  this.add(interactionMesh);
41577
- const unregister = this.context.registerHandle(this.store, interactionMesh, this.tag);
41585
+ const unregister = disabled ? undefined : this.context.registerHandle(this.store, interactionMesh, this.tag);
41578
41586
  return () => {
41579
41587
  material.dispose();
41580
41588
  interactionMesh.geometry.dispose();
41581
41589
  visualizationMesh.geometry.dispose();
41582
- unregister();
41590
+ unregister?.();
41583
41591
  cleanupHover?.();
41584
41592
  this.remove(interactionMesh);
41585
41593
  this.remove(visualizationMesh);
@@ -42258,7 +42266,7 @@ void main() {
42258
42266
 
42259
42267
  const buttonsDownTimeKey = Symbol('buttonsDownTime');
42260
42268
  const buttonsClickTimeKey = Symbol('buttonsClickTime');
42261
- const pointerMap = new Map();
42269
+ globalThis.pointerEventspointerMap ??= new Map();
42262
42270
  Object3D.prototype.setPointerCapture = function (pointerId) {
42263
42271
  getPointerById(pointerId)?.setCapture(this);
42264
42272
  };
@@ -42273,7 +42281,7 @@ void main() {
42273
42281
  return getPointerById(pointerId)?.hasCaptured(this) ?? false;
42274
42282
  };
42275
42283
  function getPointerById(pointerId) {
42276
- return pointerMap.get(pointerId);
42284
+ return globalThis.pointerEventspointerMap?.get(pointerId);
42277
42285
  }
42278
42286
  class Pointer {
42279
42287
  id;
@@ -42313,7 +42321,7 @@ void main() {
42313
42321
  this.parentSetPointerCapture = parentSetPointerCapture;
42314
42322
  this.parentReleasePointerCapture = parentReleasePointerCapture;
42315
42323
  this.options = options;
42316
- pointerMap.set(id, this);
42324
+ globalThis.pointerEventspointerMap?.set(id, this);
42317
42325
  }
42318
42326
  getPointerCapture() {
42319
42327
  return this.pointerCapture;
@@ -42463,9 +42471,9 @@ void main() {
42463
42471
  if (this.intersection == null) {
42464
42472
  return;
42465
42473
  }
42466
- const { contextMenuButton = 2, dblClickThresholdMs = 500, clickThesholdMs = 300 } = this.options;
42474
+ const { clickThesholdMs, contextMenuButton = 2, dblClickThresholdMs = 500, clickThresholdMs = clickThesholdMs ?? 300, } = this.options;
42467
42475
  this.pointerCapture = undefined;
42468
- const isClicked = getIsClicked(this.buttonsDownTime, this.intersection.object[buttonsDownTimeKey], nativeEvent.button, nativeEvent.timeStamp, clickThesholdMs);
42476
+ const isClicked = getIsClicked(this.buttonsDownTime, this.intersection.object[buttonsDownTimeKey], nativeEvent.button, nativeEvent.timeStamp, clickThresholdMs);
42469
42477
  const camera = this.getCamera();
42470
42478
  //context menu
42471
42479
  if (isClicked && nativeEvent.button === contextMenuButton) {
@@ -42567,7 +42575,7 @@ void main() {
42567
42575
  targetAllAncestors.push(currentObject);
42568
42576
  computeEnterLeave(currentObject.parent, targetAllAncestors, targeDiffRemovedAncestors, targetDiffAddedAncestors);
42569
42577
  }
42570
- function getIsClicked(pointerButtonsPressTime, objectButtonsDownTime, button, buttonUpTime, clickThesholdMs) {
42578
+ function getIsClicked(pointerButtonsPressTime, objectButtonsDownTime, button, buttonUpTime, clickThresholdMs) {
42571
42579
  if (objectButtonsDownTime == null) {
42572
42580
  return false;
42573
42581
  }
@@ -42575,7 +42583,7 @@ void main() {
42575
42583
  if (objectButtonPressTime == null) {
42576
42584
  return false;
42577
42585
  }
42578
- if (buttonUpTime - objectButtonPressTime > clickThesholdMs) {
42586
+ if (buttonUpTime - objectButtonPressTime > clickThresholdMs) {
42579
42587
  return false;
42580
42588
  }
42581
42589
  if (objectButtonPressTime != pointerButtonsPressTime.get(button)) {
@@ -42794,7 +42802,11 @@ void main() {
42794
42802
  function forwardHtmlEvents(fromElement, getCamera, scene, options) {
42795
42803
  return forwardEvents(fromElement,
42796
42804
  //backwards compatibility
42797
- typeof getCamera === 'function' ? getCamera : () => getCamera, scene, htmlEventToCoords.bind(null, fromElement), fromElement.setPointerCapture.bind(fromElement), fromElement.releasePointerCapture.bind(fromElement), {
42805
+ typeof getCamera === 'function' ? getCamera : () => getCamera, scene, htmlEventToCoords.bind(null, fromElement), fromElement.setPointerCapture.bind(fromElement), (pointerId) => {
42806
+ if (fromElement.hasPointerCapture(pointerId)) {
42807
+ fromElement.releasePointerCapture(pointerId);
42808
+ }
42809
+ }, {
42798
42810
  pointerTypePrefix: 'screen-',
42799
42811
  ...options,
42800
42812
  });
@@ -42966,6 +42978,8 @@ void main() {
42966
42978
  this.isPointerLocked = false;
42967
42979
  this.vec3 = new Vector3();
42968
42980
  this.quat = new Quaternion();
42981
+ this.quatB = new Quaternion();
42982
+ this.euler = new Euler();
42969
42983
  this.keyState = {
42970
42984
  ShiftLeft: false,
42971
42985
  KeyW: false,
@@ -42976,6 +42990,15 @@ void main() {
42976
42990
  ArrowDown: false,
42977
42991
  };
42978
42992
  this.lastTime = 0;
42993
+ /**
42994
+ * Whether the device is in programmatic control mode.
42995
+ * When true, this layer won't sync TO the device (device controls us instead).
42996
+ */
42997
+ this.isInProgrammaticMode = false;
42998
+ /**
42999
+ * Whether user interactions (pointer lock, mouse movement) are enabled.
43000
+ */
43001
+ this.interactionsEnabled = true;
42979
43002
  this.scene = new Scene();
42980
43003
  this.camera = new PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 40);
42981
43004
  this.playerRig = new Group();
@@ -43033,7 +43056,7 @@ void main() {
43033
43056
  // @ts-ignore
43034
43057
  window.transformHandles = this.transformHandles;
43035
43058
  this.mouseMoveHandler = (event) => {
43036
- if (!this.isPointerLocked)
43059
+ if (!this.isPointerLocked || this.isInProgrammaticMode)
43037
43060
  return;
43038
43061
  const movementX =
43039
43062
  // @ts-ignore
@@ -43056,6 +43079,10 @@ void main() {
43056
43079
  document.addEventListener('keyup', this.keyUpHandler.bind(this), false);
43057
43080
  }
43058
43081
  lockPointer() {
43082
+ // Don't allow pointer lock in programmatic mode or when interactions disabled
43083
+ if (this.isInProgrammaticMode || !this.interactionsEnabled) {
43084
+ return;
43085
+ }
43059
43086
  this.renderer.domElement.requestPointerLock =
43060
43087
  this.renderer.domElement.requestPointerLock ||
43061
43088
  // @ts-ignore
@@ -43080,7 +43107,7 @@ void main() {
43080
43107
  else {
43081
43108
  document.removeEventListener('mousemove', this.mouseMoveHandler, false);
43082
43109
  Object.values(this.transformHandles).forEach((transformHandle) => {
43083
- transformHandle.visible = true;
43110
+ transformHandle.visible = !this.isInProgrammaticMode;
43084
43111
  });
43085
43112
  }
43086
43113
  }
@@ -43089,6 +43116,8 @@ void main() {
43089
43116
  if (event.code in keyState) {
43090
43117
  keyState[event.code] = true;
43091
43118
  }
43119
+ if (this.isInProgrammaticMode)
43120
+ return;
43092
43121
  if (keyState.ShiftLeft && keyState.ArrowUp) {
43093
43122
  this.cameraRig.position.y += 0.05;
43094
43123
  }
@@ -43136,6 +43165,58 @@ void main() {
43136
43165
  emulatedInput.quaternion.copy(transformHandle.getWorldQuaternion(this.quat));
43137
43166
  });
43138
43167
  }
43168
+ /**
43169
+ * Sync DevUI's local transforms FROM the device's global transforms.
43170
+ * This is the reverse of syncDeviceTransforms() - used when device
43171
+ * is controlled programmatically and we need to follow its state.
43172
+ */
43173
+ syncFromDevice() {
43174
+ const { xrDevice, playerRig, cameraRig, transformHandles } = this;
43175
+ // Get headset world position and rotation from device
43176
+ const headsetPos = xrDevice.position;
43177
+ const headsetQuat = xrDevice.quaternion;
43178
+ // Update combined camera position
43179
+ this.combinedCameraPosition.set(headsetPos.x, headsetPos.y, headsetPos.z);
43180
+ // Decompose quaternion into Euler angles (YXZ order for gimbal)
43181
+ // Y = yaw (playerRig), pitch+roll preserved on cameraRig
43182
+ this.quatB.set(headsetQuat.x, headsetQuat.y, headsetQuat.z, headsetQuat.w);
43183
+ this.euler.setFromQuaternion(this.quatB, 'YXZ');
43184
+ // Set playerRig position (x/z) and yaw
43185
+ playerRig.position.set(headsetPos.x, 0, headsetPos.z);
43186
+ playerRig.rotation.set(0, this.euler.y, 0);
43187
+ // Set cameraRig position (y) and full local rotation (preserving roll)
43188
+ // cameraRig local quat = inv(playerRig yaw quat) * headset world quat
43189
+ cameraRig.position.set(0, headsetPos.y, 0);
43190
+ this.quat.setFromEuler(this.euler.set(0, this.euler.y, 0, 'YXZ'));
43191
+ cameraRig.quaternion.multiplyQuaternions(this.quat.invert(), this.quatB);
43192
+ // Force Three.js to update world matrices
43193
+ playerRig.updateMatrixWorld(true);
43194
+ // Sync controller/hand transforms
43195
+ transformHandles.forEach((transformHandle, handedness) => {
43196
+ const emulatedInput = xrDevice.primaryInputMode === 'controller'
43197
+ ? xrDevice.controllers[handedness]
43198
+ : xrDevice.hands[handedness];
43199
+ // Convert world position to cameraRig local position
43200
+ const worldPos = this.vec3.set(emulatedInput.position.x, emulatedInput.position.y, emulatedInput.position.z);
43201
+ cameraRig.worldToLocal(worldPos);
43202
+ transformHandle.position.copy(worldPos);
43203
+ // Convert world quaternion to cameraRig local quaternion
43204
+ cameraRig.getWorldQuaternion(this.quat);
43205
+ this.quatB.set(emulatedInput.quaternion.x, emulatedInput.quaternion.y, emulatedInput.quaternion.z, emulatedInput.quaternion.w);
43206
+ this.quatB.premultiply(this.quat.invert());
43207
+ transformHandle.quaternion.copy(this.quatB);
43208
+ });
43209
+ }
43210
+ /**
43211
+ * Enable or disable user interactions (pointer lock, keyboard controls).
43212
+ * When disabled, the DevUI still renders but doesn't respond to user input.
43213
+ */
43214
+ setInteractionsEnabled(enabled) {
43215
+ this.interactionsEnabled = enabled;
43216
+ if (!enabled && this.isPointerLocked) {
43217
+ document.exitPointerLock();
43218
+ }
43219
+ }
43139
43220
  renderScene(time) {
43140
43221
  const xrDeviceFOV = (this.xrDevice.fovy / Math.PI) * 180;
43141
43222
  let cameraMatrixNeedsUpdate = false;
@@ -43158,26 +43239,32 @@ void main() {
43158
43239
  if (cameraMatrixNeedsUpdate) {
43159
43240
  this.camera.updateProjectionMatrix();
43160
43241
  }
43161
- if (!this.isPointerLocked) {
43162
- this.cameraRig.position.y = this.combinedCameraPosition.y;
43163
- this.playerRig.position.x = this.combinedCameraPosition.x;
43164
- this.playerRig.position.z = this.combinedCameraPosition.z;
43165
- }
43166
- else {
43167
- this.cameraRig.getWorldPosition(this.combinedCameraPosition);
43242
+ if (!this.isInProgrammaticMode) {
43243
+ if (!this.isPointerLocked) {
43244
+ this.cameraRig.position.y = this.combinedCameraPosition.y;
43245
+ this.playerRig.position.x = this.combinedCameraPosition.x;
43246
+ this.playerRig.position.z = this.combinedCameraPosition.z;
43247
+ }
43248
+ else {
43249
+ this.cameraRig.getWorldPosition(this.combinedCameraPosition);
43250
+ }
43168
43251
  }
43169
43252
  this.forwardHtmlEvents();
43170
43253
  this.transformHandles.forEach((transformHandle, handedness) => {
43171
43254
  var _a;
43172
43255
  const connected = Boolean((_a = this.xrDevice.controllers[handedness]) === null || _a === void 0 ? void 0 : _a.connected);
43173
- transformHandle.visible = connected && !this.isPointerLocked;
43256
+ transformHandle.visible = connected && !this.isPointerLocked && !this.isInProgrammaticMode;
43174
43257
  if (connected) {
43175
43258
  transformHandle.update(time, this.camera);
43176
43259
  }
43177
43260
  });
43178
43261
  const delta = Math.min((time - this.lastTime) / 1000, 0.1);
43179
- this.movePlayerRig(delta);
43180
- this.syncDeviceTransforms();
43262
+ // Only process user input and sync TO device in manual mode
43263
+ // In programmatic mode, the device controls us (via syncFromDevice)
43264
+ if (!this.isInProgrammaticMode) {
43265
+ this.movePlayerRig(delta);
43266
+ this.syncDeviceTransforms();
43267
+ }
43181
43268
  this.renderer.render(this.scene, this.camera);
43182
43269
  this.lastTime = time;
43183
43270
  }
@@ -43195,7 +43282,7 @@ void main() {
43195
43282
  }
43196
43283
  }
43197
43284
 
43198
- const VERSION = "1.1.1";
43285
+ const VERSION = "2.2.0";
43199
43286
 
43200
43287
  var client = {exports: {}};
43201
43288
 
@@ -43287,10 +43374,10 @@ void main() {
43287
43374
  taskIdCounter = 1,
43288
43375
  currentTask = null,
43289
43376
  currentPriorityLevel = 3,
43290
- isPerformingWork = !1,
43291
- isHostCallbackScheduled = !1,
43292
- isHostTimeoutScheduled = !1,
43293
- needsPaint = !1,
43377
+ isPerformingWork = false,
43378
+ isHostCallbackScheduled = false,
43379
+ isHostTimeoutScheduled = false,
43380
+ needsPaint = false,
43294
43381
  localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,
43295
43382
  localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null,
43296
43383
  localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
@@ -43306,36 +43393,36 @@ void main() {
43306
43393
  }
43307
43394
  }
43308
43395
  function handleTimeout(currentTime) {
43309
- isHostTimeoutScheduled = !1;
43396
+ isHostTimeoutScheduled = false;
43310
43397
  advanceTimers(currentTime);
43311
43398
  if (!isHostCallbackScheduled)
43312
43399
  if (null !== peek(taskQueue))
43313
- (isHostCallbackScheduled = !0),
43400
+ (isHostCallbackScheduled = true),
43314
43401
  isMessageLoopRunning ||
43315
- ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());
43402
+ ((isMessageLoopRunning = true), schedulePerformWorkUntilDeadline());
43316
43403
  else {
43317
43404
  var firstTimer = peek(timerQueue);
43318
43405
  null !== firstTimer &&
43319
43406
  requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
43320
43407
  }
43321
43408
  }
43322
- var isMessageLoopRunning = !1,
43409
+ var isMessageLoopRunning = false,
43323
43410
  taskTimeoutID = -1,
43324
43411
  frameInterval = 5,
43325
43412
  startTime = -1;
43326
43413
  function shouldYieldToHost() {
43327
43414
  return needsPaint
43328
- ? !0
43415
+ ? true
43329
43416
  : exports.unstable_now() - startTime < frameInterval
43330
- ? !1
43331
- : !0;
43417
+ ? false
43418
+ : true;
43332
43419
  }
43333
43420
  function performWorkUntilDeadline() {
43334
- needsPaint = !1;
43421
+ needsPaint = false;
43335
43422
  if (isMessageLoopRunning) {
43336
43423
  var currentTime = exports.unstable_now();
43337
43424
  startTime = currentTime;
43338
- var hasMoreWork = !0;
43425
+ var hasMoreWork = true;
43339
43426
  try {
43340
43427
  a: {
43341
43428
  isHostCallbackScheduled = !1;
@@ -43397,7 +43484,7 @@ void main() {
43397
43484
  } finally {
43398
43485
  hasMoreWork
43399
43486
  ? schedulePerformWorkUntilDeadline()
43400
- : (isMessageLoopRunning = !1);
43487
+ : (isMessageLoopRunning = false);
43401
43488
  }
43402
43489
  }
43403
43490
  }
@@ -43460,7 +43547,7 @@ void main() {
43460
43547
  }
43461
43548
  };
43462
43549
  exports.unstable_requestPaint = function () {
43463
- needsPaint = !0;
43550
+ needsPaint = true;
43464
43551
  };
43465
43552
  exports.unstable_runWithPriority = function (priorityLevel, eventHandler) {
43466
43553
  switch (priorityLevel) {
@@ -43526,15 +43613,15 @@ void main() {
43526
43613
  priorityLevel === peek(timerQueue) &&
43527
43614
  (isHostTimeoutScheduled
43528
43615
  ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))
43529
- : (isHostTimeoutScheduled = !0),
43616
+ : (isHostTimeoutScheduled = true),
43530
43617
  requestHostTimeout(handleTimeout, options - currentTime)))
43531
43618
  : ((priorityLevel.sortIndex = timeout),
43532
43619
  push(taskQueue, priorityLevel),
43533
43620
  isHostCallbackScheduled ||
43534
43621
  isPerformingWork ||
43535
- ((isHostCallbackScheduled = !0),
43622
+ ((isHostCallbackScheduled = true),
43536
43623
  isMessageLoopRunning ||
43537
- ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));
43624
+ ((isMessageLoopRunning = true), schedulePerformWorkUntilDeadline())));
43538
43625
  return priorityLevel;
43539
43626
  };
43540
43627
  exports.unstable_shouldYield = shouldYieldToHost;
@@ -43916,15 +44003,15 @@ void main() {
43916
44003
  }
43917
44004
  if (a.return !== b.return) (a = parentA), (b = parentB);
43918
44005
  else {
43919
- for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {
44006
+ for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
43920
44007
  if (child$0 === a) {
43921
- didFindChild = !0;
44008
+ didFindChild = true;
43922
44009
  a = parentA;
43923
44010
  b = parentB;
43924
44011
  break;
43925
44012
  }
43926
44013
  if (child$0 === b) {
43927
- didFindChild = !0;
44014
+ didFindChild = true;
43928
44015
  b = parentA;
43929
44016
  a = parentB;
43930
44017
  break;
@@ -43934,13 +44021,13 @@ void main() {
43934
44021
  if (!didFindChild) {
43935
44022
  for (child$0 = parentB.child; child$0; ) {
43936
44023
  if (child$0 === a) {
43937
- didFindChild = !0;
44024
+ didFindChild = true;
43938
44025
  a = parentB;
43939
44026
  b = parentA;
43940
44027
  break;
43941
44028
  }
43942
44029
  if (child$0 === b) {
43943
- didFindChild = !0;
44030
+ didFindChild = true;
43944
44031
  b = parentB;
43945
44032
  a = parentA;
43946
44033
  break;
@@ -44049,7 +44136,7 @@ void main() {
44049
44136
  ReactDOMSharedInternals =
44050
44137
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
44051
44138
  sharedNotPendingObject = {
44052
- pending: !1,
44139
+ pending: false,
44053
44140
  data: null,
44054
44141
  method: null,
44055
44142
  action: null
@@ -44529,7 +44616,7 @@ void main() {
44529
44616
  return resources;
44530
44617
  }
44531
44618
  function markNodeAsHoistable(node) {
44532
- node[internalHoistableMarker] = !0;
44619
+ node[internalHoistableMarker] = true;
44533
44620
  }
44534
44621
  var allNativeEvents = new Set(),
44535
44622
  registrationNameDependencies = {};
@@ -44553,12 +44640,12 @@ void main() {
44553
44640
  validatedAttributeNameCache = {};
44554
44641
  function isAttributeNameSafe(attributeName) {
44555
44642
  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
44556
- return !0;
44557
- if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;
44643
+ return true;
44644
+ if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return false;
44558
44645
  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
44559
- return (validatedAttributeNameCache[attributeName] = !0);
44560
- illegalAttributeNameCache[attributeName] = !0;
44561
- return !1;
44646
+ return (validatedAttributeNameCache[attributeName] = true);
44647
+ illegalAttributeNameCache[attributeName] = true;
44648
+ return false;
44562
44649
  }
44563
44650
  function setValueForAttribute(node, name, value) {
44564
44651
  if (isAttributeNameSafe(name))
@@ -44625,10 +44712,10 @@ void main() {
44625
44712
  }
44626
44713
  return "\n" + prefix + name + suffix;
44627
44714
  }
44628
- var reentry = !1;
44715
+ var reentry = false;
44629
44716
  function describeNativeComponentFrame(fn, construct) {
44630
44717
  if (!fn || reentry) return "";
44631
- reentry = !0;
44718
+ reentry = true;
44632
44719
  var previousPrepareStackTrace = Error.prepareStackTrace;
44633
44720
  Error.prepareStackTrace = void 0;
44634
44721
  try {
@@ -44753,7 +44840,7 @@ void main() {
44753
44840
  }
44754
44841
  }
44755
44842
  } finally {
44756
- (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);
44843
+ (reentry = false), (Error.prepareStackTrace = previousPrepareStackTrace);
44757
44844
  }
44758
44845
  return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "")
44759
44846
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
@@ -44773,11 +44860,11 @@ void main() {
44773
44860
  return describeBuiltInComponentFrame("SuspenseList");
44774
44861
  case 0:
44775
44862
  case 15:
44776
- return describeNativeComponentFrame(fiber.type, !1);
44863
+ return describeNativeComponentFrame(fiber.type, false);
44777
44864
  case 11:
44778
- return describeNativeComponentFrame(fiber.type.render, !1);
44865
+ return describeNativeComponentFrame(fiber.type.render, false);
44779
44866
  case 1:
44780
- return describeNativeComponentFrame(fiber.type, !0);
44867
+ return describeNativeComponentFrame(fiber.type, true);
44781
44868
  case 31:
44782
44869
  return describeBuiltInComponentFrame("Activity");
44783
44870
  default:
@@ -44834,7 +44921,7 @@ void main() {
44834
44921
  var get = descriptor.get,
44835
44922
  set = descriptor.set;
44836
44923
  Object.defineProperty(node, valueField, {
44837
- configurable: !0,
44924
+ configurable: true,
44838
44925
  get: function () {
44839
44926
  return get.call(this);
44840
44927
  },
@@ -44864,9 +44951,9 @@ void main() {
44864
44951
  node._valueTracker || (node._valueTracker = trackValueOnNode(node));
44865
44952
  }
44866
44953
  function updateValueIfChanged(node) {
44867
- if (!node) return !1;
44954
+ if (!node) return false;
44868
44955
  var tracker = node._valueTracker;
44869
- if (!tracker) return !0;
44956
+ if (!tracker) return true;
44870
44957
  var lastValue = tracker.getValue();
44871
44958
  var value = "";
44872
44959
  node &&
@@ -44876,7 +44963,7 @@ void main() {
44876
44963
  : "false"
44877
44964
  : node.value);
44878
44965
  node = value;
44879
- return node !== lastValue ? (tracker.setValue(node), !0) : !1;
44966
+ return node !== lastValue ? (tracker.setValue(node), true) : false;
44880
44967
  }
44881
44968
  function getActiveElement(doc) {
44882
44969
  doc = doc || ("undefined" !== typeof document ? document : void 0);
@@ -44990,23 +45077,23 @@ void main() {
44990
45077
  if (multiple) {
44991
45078
  multiple = {};
44992
45079
  for (var i = 0; i < propValue.length; i++)
44993
- multiple["$" + propValue[i]] = !0;
45080
+ multiple["$" + propValue[i]] = true;
44994
45081
  for (propValue = 0; propValue < node.length; propValue++)
44995
45082
  (i = multiple.hasOwnProperty("$" + node[propValue].value)),
44996
45083
  node[propValue].selected !== i && (node[propValue].selected = i),
44997
- i && setDefaultSelected && (node[propValue].defaultSelected = !0);
45084
+ i && setDefaultSelected && (node[propValue].defaultSelected = true);
44998
45085
  } else {
44999
45086
  propValue = "" + getToStringValue(propValue);
45000
45087
  multiple = null;
45001
45088
  for (i = 0; i < node.length; i++) {
45002
45089
  if (node[i].value === propValue) {
45003
- node[i].selected = !0;
45004
- setDefaultSelected && (node[i].defaultSelected = !0);
45090
+ node[i].selected = true;
45091
+ setDefaultSelected && (node[i].defaultSelected = true);
45005
45092
  return;
45006
45093
  }
45007
45094
  null !== multiple || node[i].disabled || (multiple = node[i]);
45008
45095
  }
45009
- null !== multiple && (multiple.selected = !0);
45096
+ null !== multiple && (multiple.selected = true);
45010
45097
  }
45011
45098
  }
45012
45099
  function updateTextarea(element, value, defaultValue) {
@@ -45104,7 +45191,7 @@ void main() {
45104
45191
  setValueForStyle(node, styleName$17, styles[styleName$17]);
45105
45192
  }
45106
45193
  function isCustomElement(tagName) {
45107
- if (-1 === tagName.indexOf("-")) return !1;
45194
+ if (-1 === tagName.indexOf("-")) return false;
45108
45195
  switch (tagName) {
45109
45196
  case "annotation-xml":
45110
45197
  case "color-profile":
@@ -45114,9 +45201,9 @@ void main() {
45114
45201
  case "font-face-format":
45115
45202
  case "font-face-name":
45116
45203
  case "missing-glyph":
45117
- return !1;
45204
+ return false;
45118
45205
  default:
45119
- return !0;
45206
+ return true;
45120
45207
  }
45121
45208
  }
45122
45209
  var aliases = new Map([
@@ -45277,20 +45364,20 @@ void main() {
45277
45364
  case "select":
45278
45365
  (internalInstance = props.value),
45279
45366
  null != internalInstance &&
45280
- updateOptions(target, !!props.multiple, internalInstance, !1);
45367
+ updateOptions(target, !!props.multiple, internalInstance, false);
45281
45368
  }
45282
45369
  }
45283
45370
  }
45284
- var isInsideEventHandler = !1;
45371
+ var isInsideEventHandler = false;
45285
45372
  function batchedUpdates$1(fn, a, b) {
45286
45373
  if (isInsideEventHandler) return fn(a, b);
45287
- isInsideEventHandler = !0;
45374
+ isInsideEventHandler = true;
45288
45375
  try {
45289
45376
  var JSCompiler_inline_result = fn(a);
45290
45377
  return JSCompiler_inline_result;
45291
45378
  } finally {
45292
45379
  if (
45293
- ((isInsideEventHandler = !1),
45380
+ ((isInsideEventHandler = false),
45294
45381
  null !== restoreTarget || null !== restoreQueue)
45295
45382
  )
45296
45383
  if (
@@ -45334,7 +45421,7 @@ void main() {
45334
45421
  inst = !props;
45335
45422
  break a;
45336
45423
  default:
45337
- inst = !1;
45424
+ inst = false;
45338
45425
  }
45339
45426
  if (inst) return null;
45340
45427
  if (stateNode && "function" !== typeof stateNode)
@@ -45348,7 +45435,7 @@ void main() {
45348
45435
  "undefined" === typeof window.document ||
45349
45436
  "undefined" === typeof window.document.createElement
45350
45437
  ),
45351
- passiveBrowserEventsSupported = !1;
45438
+ passiveBrowserEventsSupported = false;
45352
45439
  if (canUseDOM)
45353
45440
  try {
45354
45441
  var options = {};
@@ -45360,7 +45447,7 @@ void main() {
45360
45447
  window.addEventListener("test", options, options);
45361
45448
  window.removeEventListener("test", options, options);
45362
45449
  } catch (e) {
45363
- passiveBrowserEventsSupported = !1;
45450
+ passiveBrowserEventsSupported = false;
45364
45451
  }
45365
45452
  var root = null,
45366
45453
  startText = null,
@@ -45397,10 +45484,10 @@ void main() {
45397
45484
  return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;
45398
45485
  }
45399
45486
  function functionThatReturnsTrue() {
45400
- return !0;
45487
+ return true;
45401
45488
  }
45402
45489
  function functionThatReturnsFalse() {
45403
- return !1;
45490
+ return false;
45404
45491
  }
45405
45492
  function createSyntheticEvent(Interface) {
45406
45493
  function SyntheticBaseEvent(
@@ -45425,7 +45512,7 @@ void main() {
45425
45512
  this.isDefaultPrevented = (
45426
45513
  null != nativeEvent.defaultPrevented
45427
45514
  ? nativeEvent.defaultPrevented
45428
- : !1 === nativeEvent.returnValue
45515
+ : false === nativeEvent.returnValue
45429
45516
  )
45430
45517
  ? functionThatReturnsTrue
45431
45518
  : functionThatReturnsFalse;
@@ -45434,12 +45521,12 @@ void main() {
45434
45521
  }
45435
45522
  assign(SyntheticBaseEvent.prototype, {
45436
45523
  preventDefault: function () {
45437
- this.defaultPrevented = !0;
45524
+ this.defaultPrevented = true;
45438
45525
  var event = this.nativeEvent;
45439
45526
  event &&
45440
45527
  (event.preventDefault
45441
45528
  ? event.preventDefault()
45442
- : "unknown" !== typeof event.returnValue && (event.returnValue = !1),
45529
+ : "unknown" !== typeof event.returnValue && (event.returnValue = false),
45443
45530
  (this.isDefaultPrevented = functionThatReturnsTrue));
45444
45531
  },
45445
45532
  stopPropagation: function () {
@@ -45448,7 +45535,7 @@ void main() {
45448
45535
  (event.stopPropagation
45449
45536
  ? event.stopPropagation()
45450
45537
  : "unknown" !== typeof event.cancelBubble &&
45451
- (event.cancelBubble = !0),
45538
+ (event.cancelBubble = true),
45452
45539
  (this.isPropagationStopped = functionThatReturnsTrue));
45453
45540
  },
45454
45541
  persist: function () {},
@@ -45592,7 +45679,7 @@ void main() {
45592
45679
  ? nativeEvent.getModifierState(keyArg)
45593
45680
  : (keyArg = modifierKeyToProp[keyArg])
45594
45681
  ? !!nativeEvent[keyArg]
45595
- : !1;
45682
+ : false;
45596
45683
  }
45597
45684
  function getEventModifierState() {
45598
45685
  return modifierStateGetter;
@@ -45704,7 +45791,7 @@ void main() {
45704
45791
  (!canUseCompositionEvent ||
45705
45792
  (documentMode && 8 < documentMode && 11 >= documentMode)),
45706
45793
  SPACEBAR_CHAR = String.fromCharCode(32),
45707
- hasSpaceKeypress = !1;
45794
+ hasSpaceKeypress = false;
45708
45795
  function isFallbackCompositionEnd(domEventName, nativeEvent) {
45709
45796
  switch (domEventName) {
45710
45797
  case "keyup":
@@ -45714,9 +45801,9 @@ void main() {
45714
45801
  case "keypress":
45715
45802
  case "mousedown":
45716
45803
  case "focusout":
45717
- return !0;
45804
+ return true;
45718
45805
  default:
45719
- return !1;
45806
+ return false;
45720
45807
  }
45721
45808
  }
45722
45809
  function getDataFromCustomEvent(nativeEvent) {
@@ -45725,14 +45812,14 @@ void main() {
45725
45812
  ? nativeEvent.data
45726
45813
  : null;
45727
45814
  }
45728
- var isComposing = !1;
45815
+ var isComposing = false;
45729
45816
  function getNativeBeforeInputChars(domEventName, nativeEvent) {
45730
45817
  switch (domEventName) {
45731
45818
  case "compositionend":
45732
45819
  return getDataFromCustomEvent(nativeEvent);
45733
45820
  case "keypress":
45734
45821
  if (32 !== nativeEvent.which) return null;
45735
- hasSpaceKeypress = !0;
45822
+ hasSpaceKeypress = true;
45736
45823
  return SPACEBAR_CHAR;
45737
45824
  case "textInput":
45738
45825
  return (
@@ -45750,7 +45837,7 @@ void main() {
45750
45837
  isFallbackCompositionEnd(domEventName, nativeEvent))
45751
45838
  ? ((domEventName = getData()),
45752
45839
  (fallbackText = startText = root = null),
45753
- (isComposing = !1),
45840
+ (isComposing = false),
45754
45841
  domEventName)
45755
45842
  : null;
45756
45843
  switch (domEventName) {
@@ -45775,29 +45862,29 @@ void main() {
45775
45862
  }
45776
45863
  }
45777
45864
  var supportedInputTypes = {
45778
- color: !0,
45779
- date: !0,
45780
- datetime: !0,
45781
- "datetime-local": !0,
45782
- email: !0,
45783
- month: !0,
45784
- number: !0,
45785
- password: !0,
45786
- range: !0,
45787
- search: !0,
45788
- tel: !0,
45789
- text: !0,
45790
- time: !0,
45791
- url: !0,
45792
- week: !0
45865
+ color: true,
45866
+ date: true,
45867
+ datetime: true,
45868
+ "datetime-local": true,
45869
+ email: true,
45870
+ month: true,
45871
+ number: true,
45872
+ password: true,
45873
+ range: true,
45874
+ search: true,
45875
+ tel: true,
45876
+ text: true,
45877
+ time: true,
45878
+ url: true,
45879
+ week: true
45793
45880
  };
45794
45881
  function isTextInputElement(elem) {
45795
45882
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
45796
45883
  return "input" === nodeName
45797
45884
  ? !!supportedInputTypes[elem.type]
45798
45885
  : "textarea" === nodeName
45799
- ? !0
45800
- : !1;
45886
+ ? true
45887
+ : false;
45801
45888
  }
45802
45889
  function createAndAccumulateChangeEvent(
45803
45890
  dispatchQueue,
@@ -45833,7 +45920,7 @@ void main() {
45833
45920
  function getTargetInstForChangeEvent(domEventName, targetInst) {
45834
45921
  if ("change" === domEventName) return targetInst;
45835
45922
  }
45836
- var isInputEventSupported = !1;
45923
+ var isInputEventSupported = false;
45837
45924
  if (canUseDOM) {
45838
45925
  var JSCompiler_inline_result$jscomp$282;
45839
45926
  if (canUseDOM) {
@@ -45845,7 +45932,7 @@ void main() {
45845
45932
  "function" === typeof element$jscomp$inline_418.oninput;
45846
45933
  }
45847
45934
  JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_417;
45848
- } else JSCompiler_inline_result$jscomp$282 = !1;
45935
+ } else JSCompiler_inline_result$jscomp$282 = false;
45849
45936
  isInputEventSupported =
45850
45937
  JSCompiler_inline_result$jscomp$282 &&
45851
45938
  (!document.documentMode || 9 < document.documentMode);
@@ -45898,26 +45985,26 @@ void main() {
45898
45985
  }
45899
45986
  var objectIs = "function" === typeof Object.is ? Object.is : is;
45900
45987
  function shallowEqual(objA, objB) {
45901
- if (objectIs(objA, objB)) return !0;
45988
+ if (objectIs(objA, objB)) return true;
45902
45989
  if (
45903
45990
  "object" !== typeof objA ||
45904
45991
  null === objA ||
45905
45992
  "object" !== typeof objB ||
45906
45993
  null === objB
45907
45994
  )
45908
- return !1;
45995
+ return false;
45909
45996
  var keysA = Object.keys(objA),
45910
45997
  keysB = Object.keys(objB);
45911
- if (keysA.length !== keysB.length) return !1;
45998
+ if (keysA.length !== keysB.length) return false;
45912
45999
  for (keysB = 0; keysB < keysA.length; keysB++) {
45913
46000
  var currentKey = keysA[keysB];
45914
46001
  if (
45915
46002
  !hasOwnProperty.call(objB, currentKey) ||
45916
46003
  !objectIs(objA[currentKey], objB[currentKey])
45917
46004
  )
45918
- return !1;
46005
+ return false;
45919
46006
  }
45920
- return !0;
46007
+ return true;
45921
46008
  }
45922
46009
  function getLeafNode(node) {
45923
46010
  for (; node && node.firstChild; ) node = node.firstChild;
@@ -45949,17 +46036,17 @@ void main() {
45949
46036
  function containsNode(outerNode, innerNode) {
45950
46037
  return outerNode && innerNode
45951
46038
  ? outerNode === innerNode
45952
- ? !0
46039
+ ? true
45953
46040
  : outerNode && 3 === outerNode.nodeType
45954
- ? !1
46041
+ ? false
45955
46042
  : innerNode && 3 === innerNode.nodeType
45956
46043
  ? containsNode(outerNode, innerNode.parentNode)
45957
46044
  : "contains" in outerNode
45958
46045
  ? outerNode.contains(innerNode)
45959
46046
  : outerNode.compareDocumentPosition
45960
46047
  ? !!(outerNode.compareDocumentPosition(innerNode) & 16)
45961
- : !1
45962
- : !1;
46048
+ : false
46049
+ : false;
45963
46050
  }
45964
46051
  function getActiveElementDeep(containerInfo) {
45965
46052
  containerInfo =
@@ -45977,7 +46064,7 @@ void main() {
45977
46064
  var JSCompiler_inline_result =
45978
46065
  "string" === typeof element.contentWindow.location.href;
45979
46066
  } catch (err) {
45980
- JSCompiler_inline_result = !1;
46067
+ JSCompiler_inline_result = false;
45981
46068
  }
45982
46069
  if (JSCompiler_inline_result) containerInfo = element.contentWindow;
45983
46070
  else break;
@@ -46004,7 +46091,7 @@ void main() {
46004
46091
  activeElement = null,
46005
46092
  activeElementInst = null,
46006
46093
  lastSelection = null,
46007
- mouseDown = !1;
46094
+ mouseDown = false;
46008
46095
  function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
46009
46096
  var doc =
46010
46097
  nativeEventTarget.window === nativeEventTarget
@@ -46164,13 +46251,13 @@ void main() {
46164
46251
  sourceFiber.lanes |= lane;
46165
46252
  var alternate = sourceFiber.alternate;
46166
46253
  null !== alternate && (alternate.lanes |= lane);
46167
- for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )
46254
+ for (var isHidden = false, parent = sourceFiber.return; null !== parent; )
46168
46255
  (parent.childLanes |= lane),
46169
46256
  (alternate = parent.alternate),
46170
46257
  null !== alternate && (alternate.childLanes |= lane),
46171
46258
  22 === parent.tag &&
46172
46259
  ((sourceFiber = parent.stateNode),
46173
- null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),
46260
+ null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = true)),
46174
46261
  (sourceFiber = parent),
46175
46262
  (parent = parent.return);
46176
46263
  return 3 === sourceFiber.tag
@@ -46478,9 +46565,9 @@ void main() {
46478
46565
  }
46479
46566
  var hydrationParentFiber = null,
46480
46567
  nextHydratableInstance = null,
46481
- isHydrating = !1,
46568
+ isHydrating = false,
46482
46569
  hydrationErrors = null,
46483
- rootOrSingletonContext = !1,
46570
+ rootOrSingletonContext = false,
46484
46571
  HydrationMismatchException = Error(formatProdErrorMessage(519));
46485
46572
  function throwOnHydrationMismatch(fiber) {
46486
46573
  var error = Error(formatProdErrorMessage(418, ""));
@@ -46530,7 +46617,7 @@ void main() {
46530
46617
  props.defaultChecked,
46531
46618
  props.type,
46532
46619
  props.name,
46533
- !0
46620
+ true
46534
46621
  );
46535
46622
  track(instance);
46536
46623
  break;
@@ -46547,7 +46634,7 @@ void main() {
46547
46634
  "number" !== typeof type &&
46548
46635
  "bigint" !== typeof type) ||
46549
46636
  instance.textContent === "" + type ||
46550
- !0 === props.suppressHydrationWarning ||
46637
+ true === props.suppressHydrationWarning ||
46551
46638
  checkForUnmatchedText(instance.textContent, type)
46552
46639
  ? (null != props.popover &&
46553
46640
  (listenToNonDelegatedEvent("beforetoggle", instance),
@@ -46556,8 +46643,8 @@ void main() {
46556
46643
  null != props.onScrollEnd &&
46557
46644
  listenToNonDelegatedEvent("scrollend", instance),
46558
46645
  null != props.onClick && (instance.onclick = noop$1),
46559
- (instance = !0))
46560
- : (instance = !1);
46646
+ (instance = true))
46647
+ : (instance = false);
46561
46648
  instance || throwOnHydrationMismatch(fiber);
46562
46649
  }
46563
46650
  function popToNextHostParent(fiber) {
@@ -46565,19 +46652,19 @@ void main() {
46565
46652
  switch (hydrationParentFiber.tag) {
46566
46653
  case 5:
46567
46654
  case 13:
46568
- rootOrSingletonContext = !1;
46655
+ rootOrSingletonContext = false;
46569
46656
  return;
46570
46657
  case 27:
46571
46658
  case 3:
46572
- rootOrSingletonContext = !0;
46659
+ rootOrSingletonContext = true;
46573
46660
  return;
46574
46661
  default:
46575
46662
  hydrationParentFiber = hydrationParentFiber.return;
46576
46663
  }
46577
46664
  }
46578
46665
  function popHydrationState(fiber) {
46579
- if (fiber !== hydrationParentFiber) return !1;
46580
- if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
46666
+ if (fiber !== hydrationParentFiber) return false;
46667
+ if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = true), false;
46581
46668
  var tag = fiber.tag,
46582
46669
  JSCompiler_temp;
46583
46670
  if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {
@@ -46624,11 +46711,11 @@ void main() {
46624
46711
  : (nextHydratableInstance = hydrationParentFiber
46625
46712
  ? getNextHydratable(fiber.stateNode.nextSibling)
46626
46713
  : null);
46627
- return !0;
46714
+ return true;
46628
46715
  }
46629
46716
  function resetHydrationState() {
46630
46717
  nextHydratableInstance = hydrationParentFiber = null;
46631
- isHydrating = !1;
46718
+ isHydrating = false;
46632
46719
  }
46633
46720
  function upgradeHydrationErrorsToRecoverable() {
46634
46721
  var queuedErrors = hydrationErrors;
@@ -46737,12 +46824,12 @@ void main() {
46737
46824
  ) {
46738
46825
  current = null;
46739
46826
  for (
46740
- var parent = workInProgress, isInsidePropagationBailout = !1;
46827
+ var parent = workInProgress, isInsidePropagationBailout = false;
46741
46828
  null !== parent;
46742
46829
 
46743
46830
  ) {
46744
46831
  if (!isInsidePropagationBailout)
46745
- if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;
46832
+ if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = true;
46746
46833
  else if (0 !== (parent.flags & 262144)) break;
46747
46834
  if (10 === parent.tag) {
46748
46835
  var currentParent = parent.alternate;
@@ -46785,10 +46872,10 @@ void main() {
46785
46872
  currentDependencies.memoizedValue
46786
46873
  )
46787
46874
  )
46788
- return !0;
46875
+ return true;
46789
46876
  currentDependencies = currentDependencies.next;
46790
46877
  }
46791
- return !1;
46878
+ return false;
46792
46879
  }
46793
46880
  function prepareToReadContext(workInProgress) {
46794
46881
  currentlyRenderingFiber$1 = workInProgress;
@@ -46820,13 +46907,13 @@ void main() {
46820
46907
  : function () {
46821
46908
  var listeners = [],
46822
46909
  signal = (this.signal = {
46823
- aborted: !1,
46910
+ aborted: false,
46824
46911
  addEventListener: function (type, listener) {
46825
46912
  listeners.push(listener);
46826
46913
  }
46827
46914
  });
46828
46915
  this.abort = function () {
46829
- signal.aborted = !0;
46916
+ signal.aborted = true;
46830
46917
  listeners.forEach(function (listener) {
46831
46918
  return listener();
46832
46919
  });
@@ -47019,7 +47106,7 @@ void main() {
47019
47106
  )
47020
47107
  throw Error(formatProdErrorMessage(483));
47021
47108
  }
47022
- var hasForceUpdate = !1;
47109
+ var hasForceUpdate = false;
47023
47110
  function initializeUpdateQueue(fiber) {
47024
47111
  fiber.updateQueue = {
47025
47112
  baseState: fiber.memoizedState,
@@ -47114,7 +47201,7 @@ void main() {
47114
47201
  : (workInProgress.next = capturedUpdate);
47115
47202
  queue.lastBaseUpdate = capturedUpdate;
47116
47203
  }
47117
- var didReadFromEntangledAsyncAction = !1;
47204
+ var didReadFromEntangledAsyncAction = false;
47118
47205
  function suspendIfUpdateReadFromEntangledAsyncAction() {
47119
47206
  if (didReadFromEntangledAsyncAction) {
47120
47207
  var entangledActionThenable = currentEntangledActionThenable;
@@ -47127,9 +47214,9 @@ void main() {
47127
47214
  instance$jscomp$0,
47128
47215
  renderLanes
47129
47216
  ) {
47130
- didReadFromEntangledAsyncAction = !1;
47217
+ didReadFromEntangledAsyncAction = false;
47131
47218
  var queue = workInProgress$jscomp$0.updateQueue;
47132
- hasForceUpdate = !1;
47219
+ hasForceUpdate = false;
47133
47220
  var firstBaseUpdate = queue.firstBaseUpdate,
47134
47221
  lastBaseUpdate = queue.lastBaseUpdate,
47135
47222
  pendingQueue = queue.shared.pending;
@@ -47167,7 +47254,7 @@ void main() {
47167
47254
  ) {
47168
47255
  0 !== updateLane &&
47169
47256
  updateLane === currentEntangledLane &&
47170
- (didReadFromEntangledAsyncAction = !0);
47257
+ (didReadFromEntangledAsyncAction = true);
47171
47258
  null !== current &&
47172
47259
  (current = current.next =
47173
47260
  {
@@ -47203,7 +47290,7 @@ void main() {
47203
47290
  newState = assign({}, newState, updateLane);
47204
47291
  break a;
47205
47292
  case 2:
47206
- hasForceUpdate = !0;
47293
+ hasForceUpdate = true;
47207
47294
  }
47208
47295
  }
47209
47296
  updateLane = pendingQueue.callback;
@@ -47284,9 +47371,9 @@ void main() {
47284
47371
  currentlyRenderingFiber = null,
47285
47372
  currentHook = null,
47286
47373
  workInProgressHook = null,
47287
- didScheduleRenderPhaseUpdate = !1,
47288
- didScheduleRenderPhaseUpdateDuringThisPass = !1,
47289
- shouldDoubleInvokeUserFnsInHooksDEV = !1,
47374
+ didScheduleRenderPhaseUpdate = false,
47375
+ didScheduleRenderPhaseUpdateDuringThisPass = false,
47376
+ shouldDoubleInvokeUserFnsInHooksDEV = false,
47290
47377
  localIdCounter = 0,
47291
47378
  thenableIndexCounter$1 = 0,
47292
47379
  thenableState$1 = null,
@@ -47295,10 +47382,10 @@ void main() {
47295
47382
  throw Error(formatProdErrorMessage(321));
47296
47383
  }
47297
47384
  function areHookInputsEqual(nextDeps, prevDeps) {
47298
- if (null === prevDeps) return !1;
47385
+ if (null === prevDeps) return false;
47299
47386
  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)
47300
- if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
47301
- return !0;
47387
+ if (!objectIs(nextDeps[i], prevDeps[i])) return false;
47388
+ return true;
47302
47389
  }
47303
47390
  function renderWithHooks(
47304
47391
  current,
@@ -47317,9 +47404,9 @@ void main() {
47317
47404
  null === current || null === current.memoizedState
47318
47405
  ? HooksDispatcherOnMount
47319
47406
  : HooksDispatcherOnUpdate;
47320
- shouldDoubleInvokeUserFnsInHooksDEV = !1;
47407
+ shouldDoubleInvokeUserFnsInHooksDEV = false;
47321
47408
  nextRenderLanes = Component(props, secondArg);
47322
- shouldDoubleInvokeUserFnsInHooksDEV = !1;
47409
+ shouldDoubleInvokeUserFnsInHooksDEV = false;
47323
47410
  didScheduleRenderPhaseUpdateDuringThisPass &&
47324
47411
  (nextRenderLanes = renderWithHooksAgain(
47325
47412
  workInProgress,
@@ -47335,7 +47422,7 @@ void main() {
47335
47422
  var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;
47336
47423
  renderLanes = 0;
47337
47424
  workInProgressHook = currentHook = currentlyRenderingFiber = null;
47338
- didScheduleRenderPhaseUpdate = !1;
47425
+ didScheduleRenderPhaseUpdate = false;
47339
47426
  thenableIndexCounter$1 = 0;
47340
47427
  thenableState$1 = null;
47341
47428
  if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
@@ -47344,7 +47431,7 @@ void main() {
47344
47431
  ((current = current.dependencies),
47345
47432
  null !== current &&
47346
47433
  checkIfContextChanged(current) &&
47347
- (didReceiveUpdate = !0));
47434
+ (didReceiveUpdate = true));
47348
47435
  }
47349
47436
  function renderWithHooksAgain(workInProgress, Component, props, secondArg) {
47350
47437
  currentlyRenderingFiber = workInProgress;
@@ -47352,7 +47439,7 @@ void main() {
47352
47439
  do {
47353
47440
  didScheduleRenderPhaseUpdateDuringThisPass && (thenableState$1 = null);
47354
47441
  thenableIndexCounter$1 = 0;
47355
- didScheduleRenderPhaseUpdateDuringThisPass = !1;
47442
+ didScheduleRenderPhaseUpdateDuringThisPass = false;
47356
47443
  if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
47357
47444
  numberOfReRenders += 1;
47358
47445
  workInProgressHook = currentHook = null;
@@ -47401,11 +47488,11 @@ void main() {
47401
47488
  null !== queue && (queue.pending = null);
47402
47489
  workInProgress = workInProgress.next;
47403
47490
  }
47404
- didScheduleRenderPhaseUpdate = !1;
47491
+ didScheduleRenderPhaseUpdate = false;
47405
47492
  }
47406
47493
  renderLanes = 0;
47407
47494
  workInProgressHook = currentHook = currentlyRenderingFiber = null;
47408
- didScheduleRenderPhaseUpdateDuringThisPass = !1;
47495
+ didScheduleRenderPhaseUpdateDuringThisPass = false;
47409
47496
  thenableIndexCounter$1 = localIdCounter = 0;
47410
47497
  thenableState$1 = null;
47411
47498
  }
@@ -47546,7 +47633,7 @@ void main() {
47546
47633
  var newBaseQueueFirst = (baseFirst = null),
47547
47634
  newBaseQueueLast = null,
47548
47635
  update = current,
47549
- didReadFromEntangledAsyncAction$32 = !1;
47636
+ didReadFromEntangledAsyncAction$32 = false;
47550
47637
  do {
47551
47638
  var updateLane = update.lane & -536870913;
47552
47639
  if (
@@ -47567,11 +47654,11 @@ void main() {
47567
47654
  next: null
47568
47655
  }),
47569
47656
  updateLane === currentEntangledLane &&
47570
- (didReadFromEntangledAsyncAction$32 = !0);
47657
+ (didReadFromEntangledAsyncAction$32 = true);
47571
47658
  else if ((renderLanes & revertLane) === revertLane) {
47572
47659
  update = update.next;
47573
47660
  revertLane === currentEntangledLane &&
47574
- (didReadFromEntangledAsyncAction$32 = !0);
47661
+ (didReadFromEntangledAsyncAction$32 = true);
47575
47662
  continue;
47576
47663
  } else
47577
47664
  (updateLane = {
@@ -47616,7 +47703,7 @@ void main() {
47616
47703
  : (newBaseQueueLast.next = newBaseQueueFirst);
47617
47704
  if (
47618
47705
  !objectIs(pendingQueue, hook.memoizedState) &&
47619
- ((didReceiveUpdate = !0),
47706
+ ((didReceiveUpdate = true),
47620
47707
  didReadFromEntangledAsyncAction$32 &&
47621
47708
  ((reducer = currentEntangledActionThenable), null !== reducer))
47622
47709
  )
@@ -47642,7 +47729,7 @@ void main() {
47642
47729
  var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);
47643
47730
  do (newState = reducer(newState, update.action)), (update = update.next);
47644
47731
  while (update !== lastRenderPhaseUpdate);
47645
- objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);
47732
+ objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
47646
47733
  hook.memoizedState = newState;
47647
47734
  null === hook.baseQueue && (hook.baseState = newState);
47648
47735
  queue.lastRenderedState = newState;
@@ -47662,7 +47749,7 @@ void main() {
47662
47749
  getServerSnapshot
47663
47750
  );
47664
47751
  snapshotChanged &&
47665
- ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));
47752
+ ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = true));
47666
47753
  hook = hook.queue;
47667
47754
  var create = subscribeToStore.bind(null, fiber, hook, subscribe);
47668
47755
  updateEffectImpl(2048, 8, create, [subscribe]);
@@ -47721,7 +47808,7 @@ void main() {
47721
47808
  var nextValue = latestGetSnapshot();
47722
47809
  return !objectIs(inst, nextValue);
47723
47810
  } catch (error) {
47724
- return !0;
47811
+ return true;
47725
47812
  }
47726
47813
  }
47727
47814
  function forceStoreRerender(fiber) {
@@ -47734,11 +47821,11 @@ void main() {
47734
47821
  var initialStateInitializer = initialState;
47735
47822
  initialState = initialStateInitializer();
47736
47823
  if (shouldDoubleInvokeUserFnsInHooksDEV) {
47737
- setIsStrictModeForDevtools(!0);
47824
+ setIsStrictModeForDevtools(true);
47738
47825
  try {
47739
47826
  initialStateInitializer();
47740
47827
  } finally {
47741
- setIsStrictModeForDevtools(!1);
47828
+ setIsStrictModeForDevtools(false);
47742
47829
  }
47743
47830
  }
47744
47831
  }
@@ -47774,7 +47861,7 @@ void main() {
47774
47861
  payload: payload,
47775
47862
  action: fiber,
47776
47863
  next: null,
47777
- isTransition: !0,
47864
+ isTransition: true,
47778
47865
  status: "pending",
47779
47866
  value: null,
47780
47867
  reason: null,
@@ -47784,8 +47871,8 @@ void main() {
47784
47871
  }
47785
47872
  };
47786
47873
  null !== ReactSharedInternals.T
47787
- ? setPendingState(!0)
47788
- : (actionNode.isTransition = !1);
47874
+ ? setPendingState(true)
47875
+ : (actionNode.isTransition = false);
47789
47876
  setState(actionNode);
47790
47877
  setPendingState = actionQueue.pending;
47791
47878
  null === setPendingState
@@ -47915,7 +48002,7 @@ void main() {
47915
48002
  }
47916
48003
  throwOnHydrationMismatch(JSCompiler_inline_result);
47917
48004
  }
47918
- JSCompiler_inline_result = !1;
48005
+ JSCompiler_inline_result = false;
47919
48006
  }
47920
48007
  JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);
47921
48008
  }
@@ -47936,11 +48023,11 @@ void main() {
47936
48023
  JSCompiler_inline_result
47937
48024
  );
47938
48025
  JSCompiler_inline_result.dispatch = ssrFormState;
47939
- JSCompiler_inline_result = mountStateImpl(!1);
48026
+ JSCompiler_inline_result = mountStateImpl(false);
47940
48027
  inRootOrSingleton = dispatchOptimisticSetState.bind(
47941
48028
  null,
47942
48029
  currentlyRenderingFiber,
47943
- !1,
48030
+ false,
47944
48031
  JSCompiler_inline_result.queue
47945
48032
  );
47946
48033
  JSCompiler_inline_result = mountWorkInProgressHook();
@@ -47960,7 +48047,7 @@ void main() {
47960
48047
  );
47961
48048
  JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;
47962
48049
  JSCompiler_inline_result.memoizedState = action;
47963
- return [initialStateProp, ssrFormState, !1];
48050
+ return [initialStateProp, ssrFormState, false];
47964
48051
  }
47965
48052
  function updateActionState(action) {
47966
48053
  var stateHook = updateWorkInProgressHook();
@@ -48011,7 +48098,7 @@ void main() {
48011
48098
  currentStateHook = updateWorkInProgressHook();
48012
48099
  var dispatch = currentStateHook.queue.dispatch;
48013
48100
  currentStateHook.memoizedState = action;
48014
- return [stateHook, dispatch, !1];
48101
+ return [stateHook, dispatch, false];
48015
48102
  }
48016
48103
  function pushSimpleEffect(tag, inst, create, createDeps) {
48017
48104
  tag = { tag: tag, create: create, deps: createDeps, inst: inst, next: null };
@@ -48112,11 +48199,11 @@ void main() {
48112
48199
  return prevState[0];
48113
48200
  prevState = nextCreate();
48114
48201
  if (shouldDoubleInvokeUserFnsInHooksDEV) {
48115
- setIsStrictModeForDevtools(!0);
48202
+ setIsStrictModeForDevtools(true);
48116
48203
  try {
48117
48204
  nextCreate();
48118
48205
  } finally {
48119
- setIsStrictModeForDevtools(!1);
48206
+ setIsStrictModeForDevtools(false);
48120
48207
  }
48121
48208
  }
48122
48209
  hook.memoizedState = [prevState, deps];
@@ -48136,11 +48223,11 @@ void main() {
48136
48223
  if (null !== currentTreeHiddenStackCursor.current)
48137
48224
  return (
48138
48225
  (hook = mountDeferredValueImpl(hook, value, initialValue)),
48139
- objectIs(hook, prevValue) || (didReceiveUpdate = !0),
48226
+ objectIs(hook, prevValue) || (didReceiveUpdate = true),
48140
48227
  hook
48141
48228
  );
48142
48229
  if (0 === (renderLanes & 42))
48143
- return (didReceiveUpdate = !0), (hook.memoizedState = value);
48230
+ return (didReceiveUpdate = true), (hook.memoizedState = value);
48144
48231
  hook = requestDeferredLane();
48145
48232
  currentlyRenderingFiber.lanes |= hook;
48146
48233
  workInProgressRootSkippedLanes |= hook;
@@ -48153,7 +48240,7 @@ void main() {
48153
48240
  var prevTransition = ReactSharedInternals.T,
48154
48241
  currentTransition = {};
48155
48242
  ReactSharedInternals.T = currentTransition;
48156
- dispatchOptimisticSetState(fiber, !1, queue, pendingState);
48243
+ dispatchOptimisticSetState(fiber, false, queue, pendingState);
48157
48244
  try {
48158
48245
  var returnValue = callback(),
48159
48246
  onStartTransitionFinish = ReactSharedInternals.S;
@@ -48282,7 +48369,7 @@ void main() {
48282
48369
  lane: lane,
48283
48370
  revertLane: 0,
48284
48371
  action: action,
48285
- hasEagerState: !1,
48372
+ hasEagerState: false,
48286
48373
  eagerState: null,
48287
48374
  next: null
48288
48375
  };
@@ -48302,7 +48389,7 @@ void main() {
48302
48389
  lane: lane,
48303
48390
  revertLane: 0,
48304
48391
  action: action,
48305
- hasEagerState: !1,
48392
+ hasEagerState: false,
48306
48393
  eagerState: null,
48307
48394
  next: null
48308
48395
  };
@@ -48333,17 +48420,17 @@ void main() {
48333
48420
  return (
48334
48421
  scheduleUpdateOnFiber(action, fiber, lane),
48335
48422
  entangleTransitionUpdate(action, queue, lane),
48336
- !0
48423
+ true
48337
48424
  );
48338
48425
  }
48339
- return !1;
48426
+ return false;
48340
48427
  }
48341
48428
  function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {
48342
48429
  action = {
48343
48430
  lane: 2,
48344
48431
  revertLane: requestTransitionLane(),
48345
48432
  action: action,
48346
- hasEagerState: !1,
48433
+ hasEagerState: false,
48347
48434
  eagerState: null,
48348
48435
  next: null
48349
48436
  };
@@ -48368,7 +48455,7 @@ void main() {
48368
48455
  }
48369
48456
  function enqueueRenderPhaseUpdate(queue, update) {
48370
48457
  didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =
48371
- !0;
48458
+ true;
48372
48459
  var pending = queue.pending;
48373
48460
  null === pending
48374
48461
  ? (update.next = update)
@@ -48441,11 +48528,11 @@ void main() {
48441
48528
  deps = void 0 === deps ? null : deps;
48442
48529
  var nextValue = nextCreate();
48443
48530
  if (shouldDoubleInvokeUserFnsInHooksDEV) {
48444
- setIsStrictModeForDevtools(!0);
48531
+ setIsStrictModeForDevtools(true);
48445
48532
  try {
48446
48533
  nextCreate();
48447
48534
  } finally {
48448
- setIsStrictModeForDevtools(!1);
48535
+ setIsStrictModeForDevtools(false);
48449
48536
  }
48450
48537
  }
48451
48538
  hook.memoizedState = [nextValue, deps];
@@ -48456,11 +48543,11 @@ void main() {
48456
48543
  if (void 0 !== init) {
48457
48544
  var initialState = init(initialArg);
48458
48545
  if (shouldDoubleInvokeUserFnsInHooksDEV) {
48459
- setIsStrictModeForDevtools(!0);
48546
+ setIsStrictModeForDevtools(true);
48460
48547
  try {
48461
48548
  init(initialArg);
48462
48549
  } finally {
48463
- setIsStrictModeForDevtools(!1);
48550
+ setIsStrictModeForDevtools(false);
48464
48551
  }
48465
48552
  }
48466
48553
  } else initialState = initialArg;
@@ -48498,16 +48585,16 @@ void main() {
48498
48585
  return mountDeferredValueImpl(hook, value, initialValue);
48499
48586
  },
48500
48587
  useTransition: function () {
48501
- var stateHook = mountStateImpl(!1);
48588
+ var stateHook = mountStateImpl(false);
48502
48589
  stateHook = startTransition.bind(
48503
48590
  null,
48504
48591
  currentlyRenderingFiber,
48505
48592
  stateHook.queue,
48506
- !0,
48507
- !1
48593
+ true,
48594
+ false
48508
48595
  );
48509
48596
  mountWorkInProgressHook().memoizedState = stateHook;
48510
- return [!1, stateHook];
48597
+ return [false, stateHook];
48511
48598
  },
48512
48599
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
48513
48600
  var fiber = currentlyRenderingFiber,
@@ -48587,7 +48674,7 @@ void main() {
48587
48674
  hook = dispatchOptimisticSetState.bind(
48588
48675
  null,
48589
48676
  currentlyRenderingFiber,
48590
- !0,
48677
+ true,
48591
48678
  queue
48592
48679
  );
48593
48680
  queue.dispatch = hook;
@@ -49408,8 +49495,8 @@ void main() {
49408
49495
  }
49409
49496
  };
49410
49497
  }
49411
- var reconcileChildFibers = createChildReconciler(!0),
49412
- mountChildFibers = createChildReconciler(!1),
49498
+ var reconcileChildFibers = createChildReconciler(true),
49499
+ mountChildFibers = createChildReconciler(false),
49413
49500
  suspenseHandlerStackCursor = createCursor(null),
49414
49501
  shellBoundary = null;
49415
49502
  function pushPrimaryTreeSuspenseHandler(handler) {
@@ -49540,7 +49627,7 @@ void main() {
49540
49627
  ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)
49541
49628
  : ctor.prototype && ctor.prototype.isPureReactComponent
49542
49629
  ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
49543
- : !0;
49630
+ : true;
49544
49631
  }
49545
49632
  function callComponentWillReceiveProps(
49546
49633
  workInProgress,
@@ -49580,8 +49667,8 @@ void main() {
49580
49667
  "function" === typeof window.ErrorEvent
49581
49668
  ) {
49582
49669
  var event = new window.ErrorEvent("error", {
49583
- bubbles: !0,
49584
- cancelable: !0,
49670
+ bubbles: true,
49671
+ cancelable: true,
49585
49672
  message:
49586
49673
  "object" === typeof error &&
49587
49674
  null !== error &&
@@ -49691,7 +49778,7 @@ void main() {
49691
49778
  returnFiber,
49692
49779
  sourceFiber,
49693
49780
  rootRenderLanes,
49694
- !0
49781
+ true
49695
49782
  );
49696
49783
  sourceFiber = suspenseHandlerStackCursor.current;
49697
49784
  if (null !== sourceFiber) {
@@ -49713,7 +49800,7 @@ void main() {
49713
49800
  ? (sourceFiber.updateQueue = new Set([value]))
49714
49801
  : returnFiber.add(value),
49715
49802
  attachPingListener(root, value, rootRenderLanes)),
49716
- !1
49803
+ false
49717
49804
  );
49718
49805
  case 22:
49719
49806
  return (
@@ -49733,14 +49820,14 @@ void main() {
49733
49820
  ? (returnFiber.retryQueue = new Set([value]))
49734
49821
  : sourceFiber.add(value)),
49735
49822
  attachPingListener(root, value, rootRenderLanes)),
49736
- !1
49823
+ false
49737
49824
  );
49738
49825
  }
49739
49826
  throw Error(formatProdErrorMessage(435, sourceFiber.tag));
49740
49827
  }
49741
49828
  attachPingListener(root, value, rootRenderLanes);
49742
49829
  renderDidSuspendDelayIfPossible();
49743
- return !1;
49830
+ return false;
49744
49831
  }
49745
49832
  if (isHydrating)
49746
49833
  return (
@@ -49772,7 +49859,7 @@ void main() {
49772
49859
  enqueueCapturedUpdate(root, rootRenderLanes),
49773
49860
  4 !== workInProgressRootExitStatus &&
49774
49861
  (workInProgressRootExitStatus = 2)),
49775
- !1
49862
+ false
49776
49863
  );
49777
49864
  var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
49778
49865
  wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
@@ -49780,7 +49867,7 @@ void main() {
49780
49867
  ? (workInProgressRootConcurrentErrors = [wrapperError])
49781
49868
  : workInProgressRootConcurrentErrors.push(wrapperError);
49782
49869
  4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
49783
- if (null === returnFiber) return !0;
49870
+ if (null === returnFiber) return true;
49784
49871
  value = createCapturedValueAtFiber(value, sourceFiber);
49785
49872
  sourceFiber = returnFiber;
49786
49873
  do {
@@ -49792,7 +49879,7 @@ void main() {
49792
49879
  (sourceFiber.lanes |= root),
49793
49880
  (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),
49794
49881
  enqueueCapturedUpdate(sourceFiber, root),
49795
- !1
49882
+ false
49796
49883
  );
49797
49884
  case 1:
49798
49885
  if (
@@ -49817,15 +49904,15 @@ void main() {
49817
49904
  value
49818
49905
  ),
49819
49906
  enqueueCapturedUpdate(sourceFiber, rootRenderLanes),
49820
- !1
49907
+ false
49821
49908
  );
49822
49909
  }
49823
49910
  sourceFiber = sourceFiber.return;
49824
49911
  } while (null !== sourceFiber);
49825
- return !1;
49912
+ return false;
49826
49913
  }
49827
49914
  var SelectiveHydrationException = Error(formatProdErrorMessage(461)),
49828
- didReceiveUpdate = !1;
49915
+ didReceiveUpdate = false;
49829
49916
  function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
49830
49917
  workInProgress.child =
49831
49918
  null === current
@@ -49937,11 +50024,11 @@ void main() {
49937
50024
  current.ref === workInProgress.ref
49938
50025
  )
49939
50026
  if (
49940
- ((didReceiveUpdate = !1),
50027
+ ((didReceiveUpdate = false),
49941
50028
  (workInProgress.pendingProps = nextProps = prevProps),
49942
50029
  checkScheduledUpdateOrContext(current, renderLanes))
49943
50030
  )
49944
- 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
50031
+ 0 !== (current.flags & 131072) && (didReceiveUpdate = true);
49945
50032
  else
49946
50033
  return (
49947
50034
  (workInProgress.lanes = current.lanes),
@@ -50031,7 +50118,7 @@ void main() {
50031
50118
  reuseHiddenContextOnStack();
50032
50119
  pushOffscreenSuspenseHandler(workInProgress);
50033
50120
  null !== current &&
50034
- propagateParentContextChanges(current, workInProgress, renderLanes, !0);
50121
+ propagateParentContextChanges(current, workInProgress, renderLanes, true);
50035
50122
  return null;
50036
50123
  }
50037
50124
  function markRef(current, workInProgress) {
@@ -50158,7 +50245,7 @@ void main() {
50158
50245
  (context.state = workInProgress.memoizedState));
50159
50246
  "function" === typeof context.componentDidMount &&
50160
50247
  (workInProgress.flags |= 4194308);
50161
- nextProps = !0;
50248
+ nextProps = true;
50162
50249
  } else if (null === current) {
50163
50250
  context = workInProgress.stateNode;
50164
50251
  var unresolvedOldProps = workInProgress.memoizedProps,
@@ -50185,7 +50272,7 @@ void main() {
50185
50272
  nextProps,
50186
50273
  contextType
50187
50274
  ));
50188
- hasForceUpdate = !1;
50275
+ hasForceUpdate = false;
50189
50276
  var oldState = workInProgress.memoizedState;
50190
50277
  context.state = oldState;
50191
50278
  processUpdateQueue(workInProgress, nextProps, context, renderLanes);
@@ -50230,7 +50317,7 @@ void main() {
50230
50317
  (nextProps = oldProps))
50231
50318
  : ("function" === typeof context.componentDidMount &&
50232
50319
  (workInProgress.flags |= 4194308),
50233
- (nextProps = !1));
50320
+ (nextProps = false));
50234
50321
  } else {
50235
50322
  context = workInProgress.stateNode;
50236
50323
  cloneUpdateQueue(current, workInProgress);
@@ -50257,7 +50344,7 @@ void main() {
50257
50344
  nextProps,
50258
50345
  oldProps
50259
50346
  ));
50260
- hasForceUpdate = !1;
50347
+ hasForceUpdate = false;
50261
50348
  oldState = workInProgress.memoizedState;
50262
50349
  context.state = oldState;
50263
50350
  processUpdateQueue(workInProgress, nextProps, context, renderLanes);
@@ -50328,7 +50415,7 @@ void main() {
50328
50415
  (contextType === current.memoizedProps &&
50329
50416
  oldState === current.memoizedState) ||
50330
50417
  (workInProgress.flags |= 1024),
50331
- (nextProps = !1));
50418
+ (nextProps = false));
50332
50419
  }
50333
50420
  context = nextProps;
50334
50421
  markRef(current, workInProgress);
@@ -50394,15 +50481,15 @@ void main() {
50394
50481
  }
50395
50482
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
50396
50483
  var nextProps = workInProgress.pendingProps,
50397
- showFallback = !1,
50484
+ showFallback = false,
50398
50485
  didSuspend = 0 !== (workInProgress.flags & 128),
50399
50486
  JSCompiler_temp;
50400
50487
  (JSCompiler_temp = didSuspend) ||
50401
50488
  (JSCompiler_temp =
50402
50489
  null !== current && null === current.memoizedState
50403
- ? !1
50490
+ ? false
50404
50491
  : 0 !== (suspenseStackCursor.current & 2));
50405
- JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));
50492
+ JSCompiler_temp && ((showFallback = true), (workInProgress.flags &= -129));
50406
50493
  JSCompiler_temp = 0 !== (workInProgress.flags & 32);
50407
50494
  workInProgress.flags &= -33;
50408
50495
  if (null === current) {
@@ -50456,8 +50543,8 @@ void main() {
50456
50543
  (workInProgress.child = JSCompiler_temp$jscomp$0),
50457
50544
  (hydrationParentFiber = workInProgress),
50458
50545
  (nextHydratableInstance = null),
50459
- (JSCompiler_temp$jscomp$0 = !0))
50460
- : (JSCompiler_temp$jscomp$0 = !1);
50546
+ (JSCompiler_temp$jscomp$0 = true))
50547
+ : (JSCompiler_temp$jscomp$0 = false);
50461
50548
  }
50462
50549
  JSCompiler_temp$jscomp$0 || throwOnHydrationMismatch(workInProgress);
50463
50550
  }
@@ -50580,7 +50667,7 @@ void main() {
50580
50667
  );
50581
50668
  } else if (
50582
50669
  (didReceiveUpdate ||
50583
- propagateParentContextChanges(current, workInProgress, renderLanes, !1),
50670
+ propagateParentContextChanges(current, workInProgress, renderLanes, false),
50584
50671
  (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),
50585
50672
  didReceiveUpdate || JSCompiler_temp)
50586
50673
  ) {
@@ -50620,9 +50707,9 @@ void main() {
50620
50707
  nextInstance.nextSibling
50621
50708
  )),
50622
50709
  (hydrationParentFiber = workInProgress),
50623
- (isHydrating = !0),
50710
+ (isHydrating = true),
50624
50711
  (hydrationErrors = null),
50625
- (rootOrSingletonContext = !1),
50712
+ (rootOrSingletonContext = false),
50626
50713
  null !== current &&
50627
50714
  ((idStack[idStackIndex++] = treeContextId),
50628
50715
  (idStack[idStackIndex++] = treeContextOverflow),
@@ -50818,7 +50905,7 @@ void main() {
50818
50905
  : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));
50819
50906
  initSuspenseListRenderState(
50820
50907
  workInProgress,
50821
- !1,
50908
+ false,
50822
50909
  revealOrder,
50823
50910
  renderLanes,
50824
50911
  tailMode
@@ -50840,14 +50927,14 @@ void main() {
50840
50927
  }
50841
50928
  initSuspenseListRenderState(
50842
50929
  workInProgress,
50843
- !0,
50930
+ true,
50844
50931
  renderLanes,
50845
50932
  null,
50846
50933
  tailMode
50847
50934
  );
50848
50935
  break;
50849
50936
  case "together":
50850
- initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
50937
+ initSuspenseListRenderState(workInProgress, false, null, null, void 0);
50851
50938
  break;
50852
50939
  default:
50853
50940
  workInProgress.memoizedState = null;
@@ -50864,7 +50951,7 @@ void main() {
50864
50951
  current,
50865
50952
  workInProgress,
50866
50953
  renderLanes,
50867
- !1
50954
+ false
50868
50955
  ),
50869
50956
  0 === (renderLanes & workInProgress.childLanes))
50870
50957
  )
@@ -50886,9 +50973,9 @@ void main() {
50886
50973
  return workInProgress.child;
50887
50974
  }
50888
50975
  function checkScheduledUpdateOrContext(current, renderLanes) {
50889
- if (0 !== (current.lanes & renderLanes)) return !0;
50976
+ if (0 !== (current.lanes & renderLanes)) return true;
50890
50977
  current = current.dependencies;
50891
- return null !== current && checkIfContextChanged(current) ? !0 : !1;
50978
+ return null !== current && checkIfContextChanged(current) ? true : false;
50892
50979
  }
50893
50980
  function attemptEarlyBailoutIfNoScheduledUpdate(
50894
50981
  current,
@@ -50944,7 +51031,7 @@ void main() {
50944
51031
  current,
50945
51032
  workInProgress,
50946
51033
  renderLanes,
50947
- !1
51034
+ false
50948
51035
  ),
50949
51036
  (state = 0 !== (renderLanes & workInProgress.childLanes)));
50950
51037
  if (didSuspendBefore) {
@@ -50978,24 +51065,24 @@ void main() {
50978
51065
  function beginWork(current, workInProgress, renderLanes) {
50979
51066
  if (null !== current)
50980
51067
  if (current.memoizedProps !== workInProgress.pendingProps)
50981
- didReceiveUpdate = !0;
51068
+ didReceiveUpdate = true;
50982
51069
  else {
50983
51070
  if (
50984
51071
  !checkScheduledUpdateOrContext(current, renderLanes) &&
50985
51072
  0 === (workInProgress.flags & 128)
50986
51073
  )
50987
51074
  return (
50988
- (didReceiveUpdate = !1),
51075
+ (didReceiveUpdate = false),
50989
51076
  attemptEarlyBailoutIfNoScheduledUpdate(
50990
51077
  current,
50991
51078
  workInProgress,
50992
51079
  renderLanes
50993
51080
  )
50994
51081
  );
50995
- didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
51082
+ didReceiveUpdate = 0 !== (current.flags & 131072) ? true : false;
50996
51083
  }
50997
51084
  else
50998
- (didReceiveUpdate = !1),
51085
+ (didReceiveUpdate = false),
50999
51086
  isHydrating &&
51000
51087
  0 !== (workInProgress.flags & 1048576) &&
51001
51088
  pushTreeId(workInProgress, treeForkCount, workInProgress.index);
@@ -51101,7 +51188,7 @@ void main() {
51101
51188
  workInProgress,
51102
51189
  [CacheContext],
51103
51190
  renderLanes,
51104
- !0
51191
+ true
51105
51192
  );
51106
51193
  suspendIfUpdateReadFromEntangledAsyncAction();
51107
51194
  lazyComponent = nextState.element;
@@ -51109,7 +51196,7 @@ void main() {
51109
51196
  if (
51110
51197
  ((prevState = {
51111
51198
  element: lazyComponent,
51112
- isDehydrated: !1,
51199
+ isDehydrated: false,
51113
51200
  cache: nextState.cache
51114
51201
  }),
51115
51202
  (workInProgress.updateQueue.baseState = prevState),
@@ -51150,9 +51237,9 @@ void main() {
51150
51237
  }
51151
51238
  nextHydratableInstance = getNextHydratable(current.firstChild);
51152
51239
  hydrationParentFiber = workInProgress;
51153
- isHydrating = !0;
51240
+ isHydrating = true;
51154
51241
  hydrationErrors = null;
51155
- rootOrSingletonContext = !0;
51242
+ rootOrSingletonContext = true;
51156
51243
  renderLanes = mountChildFibers(
51157
51244
  workInProgress,
51158
51245
  null,
@@ -51225,7 +51312,7 @@ void main() {
51225
51312
  rootInstanceStackCursor.current
51226
51313
  )),
51227
51314
  (hydrationParentFiber = workInProgress),
51228
- (rootOrSingletonContext = !0),
51315
+ (rootOrSingletonContext = true),
51229
51316
  (init = nextHydratableInstance),
51230
51317
  isSingletonScope(workInProgress.type)
51231
51318
  ? ((previousHydratableOnEnteringScopedSingleton = init),
@@ -51258,9 +51345,9 @@ void main() {
51258
51345
  (nextHydratableInstance = getNextHydratable(
51259
51346
  lazyComponent.firstChild
51260
51347
  )),
51261
- (rootOrSingletonContext = !1),
51262
- (init = !0))
51263
- : (init = !1);
51348
+ (rootOrSingletonContext = false),
51349
+ (init = true))
51350
+ : (init = false);
51264
51351
  init || throwOnHydrationMismatch(workInProgress);
51265
51352
  }
51266
51353
  pushHostContext(workInProgress);
@@ -51298,8 +51385,8 @@ void main() {
51298
51385
  ? ((workInProgress.stateNode = renderLanes),
51299
51386
  (hydrationParentFiber = workInProgress),
51300
51387
  (nextHydratableInstance = null),
51301
- (current = !0))
51302
- : (current = !1);
51388
+ (current = true))
51389
+ : (current = false);
51303
51390
  current || throwOnHydrationMismatch(workInProgress);
51304
51391
  }
51305
51392
  return null;
@@ -51472,7 +51559,7 @@ void main() {
51472
51559
  workInProgress,
51473
51560
  [CacheContext],
51474
51561
  renderLanes,
51475
- !0
51562
+ true
51476
51563
  ))),
51477
51564
  reconcileChildren(
51478
51565
  current,
@@ -51708,7 +51795,7 @@ void main() {
51708
51795
  ? type.createElement("select", { is: newProps.is })
51709
51796
  : type.createElement("select");
51710
51797
  newProps.multiple
51711
- ? (current.multiple = !0)
51798
+ ? (current.multiple = true)
51712
51799
  : newProps.size && (current.size = newProps.size);
51713
51800
  break;
51714
51801
  default:
@@ -51748,10 +51835,10 @@ void main() {
51748
51835
  current = !!newProps.autoFocus;
51749
51836
  break a;
51750
51837
  case "img":
51751
- current = !0;
51838
+ current = true;
51752
51839
  break a;
51753
51840
  default:
51754
- current = !1;
51841
+ current = false;
51755
51842
  }
51756
51843
  current && markUpdate(workInProgress);
51757
51844
  }
@@ -51780,10 +51867,10 @@ void main() {
51780
51867
  current[internalInstanceKey] = workInProgress;
51781
51868
  current =
51782
51869
  current.nodeValue === renderLanes ||
51783
- (null !== newProps && !0 === newProps.suppressHydrationWarning) ||
51870
+ (null !== newProps && true === newProps.suppressHydrationWarning) ||
51784
51871
  checkForUnmatchedText(current.nodeValue, renderLanes)
51785
- ? !0
51786
- : !1;
51872
+ ? true
51873
+ : false;
51787
51874
  current || throwOnHydrationMismatch(workInProgress);
51788
51875
  } else
51789
51876
  (current =
@@ -51816,13 +51903,13 @@ void main() {
51816
51903
  (workInProgress.memoizedState = null),
51817
51904
  (workInProgress.flags |= 4);
51818
51905
  bubbleProperties(workInProgress);
51819
- type = !1;
51906
+ type = false;
51820
51907
  } else
51821
51908
  (type = upgradeHydrationErrorsToRecoverable()),
51822
51909
  null !== current &&
51823
51910
  null !== current.memoizedState &&
51824
51911
  (current.memoizedState.hydrationErrors = type),
51825
- (type = !0);
51912
+ (type = true);
51826
51913
  if (!type) {
51827
51914
  if (workInProgress.flags & 256)
51828
51915
  return popSuspenseHandler(workInProgress), workInProgress;
@@ -51873,7 +51960,7 @@ void main() {
51873
51960
  newProps = 0 !== (workInProgress.flags & 128);
51874
51961
  cache$127 = type.rendering;
51875
51962
  if (null === cache$127)
51876
- if (newProps) cutOffTailIfNeeded(type, !1);
51963
+ if (newProps) cutOffTailIfNeeded(type, false);
51877
51964
  else {
51878
51965
  if (
51879
51966
  0 !== workInProgressRootExitStatus ||
@@ -51883,7 +51970,7 @@ void main() {
51883
51970
  cache$127 = findFirstSuspended(current);
51884
51971
  if (null !== cache$127) {
51885
51972
  workInProgress.flags |= 128;
51886
- cutOffTailIfNeeded(type, !1);
51973
+ cutOffTailIfNeeded(type, false);
51887
51974
  current = cache$127.updateQueue;
51888
51975
  workInProgress.updateQueue = current;
51889
51976
  scheduleRetryEffect(workInProgress, current);
@@ -51903,8 +51990,8 @@ void main() {
51903
51990
  null !== type.tail &&
51904
51991
  now() > workInProgressRootRenderTargetTime &&
51905
51992
  ((workInProgress.flags |= 128),
51906
- (newProps = !0),
51907
- cutOffTailIfNeeded(type, !1),
51993
+ (newProps = true),
51994
+ cutOffTailIfNeeded(type, false),
51908
51995
  (workInProgress.lanes = 4194304));
51909
51996
  }
51910
51997
  else {
@@ -51912,11 +51999,11 @@ void main() {
51912
51999
  if (((current = findFirstSuspended(cache$127)), null !== current)) {
51913
52000
  if (
51914
52001
  ((workInProgress.flags |= 128),
51915
- (newProps = !0),
52002
+ (newProps = true),
51916
52003
  (current = current.updateQueue),
51917
52004
  (workInProgress.updateQueue = current),
51918
52005
  scheduleRetryEffect(workInProgress, current),
51919
- cutOffTailIfNeeded(type, !0),
52006
+ cutOffTailIfNeeded(type, true),
51920
52007
  null === type.tail &&
51921
52008
  "hidden" === type.tailMode &&
51922
52009
  !cache$127.alternate &&
@@ -51928,8 +52015,8 @@ void main() {
51928
52015
  workInProgressRootRenderTargetTime &&
51929
52016
  536870912 !== renderLanes &&
51930
52017
  ((workInProgress.flags |= 128),
51931
- (newProps = !0),
51932
- cutOffTailIfNeeded(type, !1),
52018
+ (newProps = true),
52019
+ cutOffTailIfNeeded(type, false),
51933
52020
  (workInProgress.lanes = 4194304));
51934
52021
  type.isBackwards
51935
52022
  ? ((cache$127.sibling = workInProgress.child),
@@ -52362,9 +52449,9 @@ void main() {
52362
52449
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
52363
52450
  }
52364
52451
  }
52365
- var offscreenSubtreeIsHidden = !1,
52366
- offscreenSubtreeWasHidden = !1,
52367
- needsFormReset = !1,
52452
+ var offscreenSubtreeIsHidden = false,
52453
+ offscreenSubtreeWasHidden = false,
52454
+ needsFormReset = false,
52368
52455
  PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
52369
52456
  nextEffect = null;
52370
52457
  function commitBeforeMutationEffects(root, firstChild) {
@@ -52437,7 +52524,7 @@ void main() {
52437
52524
  JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };
52438
52525
  } else JSCompiler_temp = null;
52439
52526
  selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };
52440
- _enabled = !1;
52527
+ _enabled = false;
52441
52528
  for (nextEffect = firstChild; null !== nextEffect; )
52442
52529
  if (
52443
52530
  ((firstChild = nextEffect),
@@ -52658,7 +52745,7 @@ void main() {
52658
52745
  fiber.updateQueue = null;
52659
52746
  }
52660
52747
  var hostParent = null,
52661
- hostParentIsContainer = !1;
52748
+ hostParentIsContainer = false;
52662
52749
  function recursivelyTraverseDeletionEffects(
52663
52750
  finishedRoot,
52664
52751
  nearestMountedAncestor,
@@ -52698,7 +52785,7 @@ void main() {
52698
52785
  var prevHostParent = hostParent,
52699
52786
  prevHostParentIsContainer = hostParentIsContainer;
52700
52787
  isSingletonScope(deletedFiber.type) &&
52701
- ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1));
52788
+ ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = false));
52702
52789
  recursivelyTraverseDeletionEffects(
52703
52790
  finishedRoot,
52704
52791
  nearestMountedAncestor,
@@ -52768,7 +52855,7 @@ void main() {
52768
52855
  prevHostParent = hostParent;
52769
52856
  prevHostParentIsContainer = hostParentIsContainer;
52770
52857
  hostParent = deletedFiber.stateNode.containerInfo;
52771
- hostParentIsContainer = !0;
52858
+ hostParentIsContainer = true;
52772
52859
  recursivelyTraverseDeletionEffects(
52773
52860
  finishedRoot,
52774
52861
  nearestMountedAncestor,
@@ -52889,18 +52976,18 @@ void main() {
52889
52976
  case 27:
52890
52977
  if (isSingletonScope(parent.type)) {
52891
52978
  hostParent = parent.stateNode;
52892
- hostParentIsContainer = !1;
52979
+ hostParentIsContainer = false;
52893
52980
  break a;
52894
52981
  }
52895
52982
  break;
52896
52983
  case 5:
52897
52984
  hostParent = parent.stateNode;
52898
- hostParentIsContainer = !1;
52985
+ hostParentIsContainer = false;
52899
52986
  break a;
52900
52987
  case 3:
52901
52988
  case 4:
52902
52989
  hostParent = parent.stateNode.containerInfo;
52903
- hostParentIsContainer = !0;
52990
+ hostParentIsContainer = true;
52904
52991
  break a;
52905
52992
  }
52906
52993
  parent = parent.return;
@@ -52908,7 +52995,7 @@ void main() {
52908
52995
  if (null === hostParent) throw Error(formatProdErrorMessage(160));
52909
52996
  commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);
52910
52997
  hostParent = null;
52911
- hostParentIsContainer = !1;
52998
+ hostParentIsContainer = false;
52912
52999
  root = childToDelete.alternate;
52913
53000
  null !== root && (root.return = null);
52914
53001
  childToDelete.return = null;
@@ -53143,7 +53230,7 @@ void main() {
53143
53230
  hoistableRoot,
53144
53231
  null !== current ? current.memoizedProps : hoistableRoot
53145
53232
  ));
53146
- flags & 1024 && (needsFormReset = !0);
53233
+ flags & 1024 && (needsFormReset = true);
53147
53234
  break;
53148
53235
  case 6:
53149
53236
  recursivelyTraverseMutationEffects(root, finishedWork);
@@ -53174,7 +53261,7 @@ void main() {
53174
53261
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
53175
53262
  }
53176
53263
  needsFormReset &&
53177
- ((needsFormReset = !1), recursivelyResetForms(finishedWork));
53264
+ ((needsFormReset = false), recursivelyResetForms(finishedWork));
53178
53265
  break;
53179
53266
  case 4:
53180
53267
  flags = currentHoistableRoot;
@@ -54018,9 +54105,9 @@ void main() {
54018
54105
  workInProgressRootRenderLanes = 0,
54019
54106
  workInProgressSuspendedReason = 0,
54020
54107
  workInProgressThrownValue = null,
54021
- workInProgressRootDidSkipSuspendedSiblings = !1,
54022
- workInProgressRootIsPrerendering = !1,
54023
- workInProgressRootDidAttachPingListener = !1,
54108
+ workInProgressRootDidSkipSuspendedSiblings = false,
54109
+ workInProgressRootIsPrerendering = false,
54110
+ workInProgressRootDidAttachPingListener = false,
54024
54111
  entangledRenderLanes = 0,
54025
54112
  workInProgressRootExitStatus = 0,
54026
54113
  workInProgressRootSkippedLanes = 0,
@@ -54030,7 +54117,7 @@ void main() {
54030
54117
  workInProgressSuspendedRetryLanes = 0,
54031
54118
  workInProgressRootConcurrentErrors = null,
54032
54119
  workInProgressRootRecoverableErrors = null,
54033
- workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
54120
+ workInProgressRootDidIncludeRecursiveRenderUpdate = false,
54034
54121
  globalMostRecentFallbackTime = 0,
54035
54122
  workInProgressRootRenderTargetTime = Infinity,
54036
54123
  workInProgressTransitions = null,
@@ -54075,7 +54162,7 @@ void main() {
54075
54162
  root,
54076
54163
  workInProgressRootRenderLanes,
54077
54164
  workInProgressDeferredLane,
54078
- !1
54165
+ false
54079
54166
  );
54080
54167
  markRootUpdated$1(root, lane);
54081
54168
  if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -54087,7 +54174,7 @@ void main() {
54087
54174
  root,
54088
54175
  workInProgressRootRenderLanes,
54089
54176
  workInProgressDeferredLane,
54090
- !1
54177
+ false
54091
54178
  )),
54092
54179
  ensureRootIsScheduled(root);
54093
54180
  }
@@ -54100,13 +54187,13 @@ void main() {
54100
54187
  checkIfRootIsPrerendering(root$jscomp$0, lanes),
54101
54188
  exitStatus = shouldTimeSlice
54102
54189
  ? renderRootConcurrent(root$jscomp$0, lanes)
54103
- : renderRootSync(root$jscomp$0, lanes, !0),
54190
+ : renderRootSync(root$jscomp$0, lanes, true),
54104
54191
  renderWasConcurrent = shouldTimeSlice;
54105
54192
  do {
54106
54193
  if (0 === exitStatus) {
54107
54194
  workInProgressRootIsPrerendering &&
54108
54195
  !shouldTimeSlice &&
54109
- markRootSuspended(root$jscomp$0, lanes, 0, !1);
54196
+ markRootSuspended(root$jscomp$0, lanes, 0, false);
54110
54197
  break;
54111
54198
  } else {
54112
54199
  forceSync = root$jscomp$0.current.alternate;
@@ -54114,8 +54201,8 @@ void main() {
54114
54201
  renderWasConcurrent &&
54115
54202
  !isRenderConsistentWithExternalStores(forceSync)
54116
54203
  ) {
54117
- exitStatus = renderRootSync(root$jscomp$0, lanes, !1);
54118
- renderWasConcurrent = !1;
54204
+ exitStatus = renderRootSync(root$jscomp$0, lanes, false);
54205
+ renderWasConcurrent = false;
54119
54206
  continue;
54120
54207
  }
54121
54208
  if (2 === exitStatus) {
@@ -54141,7 +54228,7 @@ void main() {
54141
54228
  JSCompiler_inline_result = renderRootSync(
54142
54229
  root,
54143
54230
  JSCompiler_inline_result,
54144
- !1
54231
+ false
54145
54232
  );
54146
54233
  if (2 !== JSCompiler_inline_result) {
54147
54234
  if (
@@ -54166,13 +54253,13 @@ void main() {
54166
54253
  }
54167
54254
  exitStatus = JSCompiler_inline_result;
54168
54255
  }
54169
- renderWasConcurrent = !1;
54256
+ renderWasConcurrent = false;
54170
54257
  if (2 !== exitStatus) continue;
54171
54258
  }
54172
54259
  }
54173
54260
  if (1 === exitStatus) {
54174
54261
  prepareFreshStack(root$jscomp$0, 0);
54175
- markRootSuspended(root$jscomp$0, lanes, 0, !0);
54262
+ markRootSuspended(root$jscomp$0, lanes, 0, true);
54176
54263
  break;
54177
54264
  }
54178
54265
  a: {
@@ -54212,7 +54299,7 @@ void main() {
54212
54299
  workInProgressDeferredLane,
54213
54300
  !workInProgressRootDidSkipSuspendedSiblings
54214
54301
  );
54215
- if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
54302
+ if (0 !== getNextLanes(shouldTimeSlice, 0, true)) break a;
54216
54303
  shouldTimeSlice.timeoutHandle = scheduleTimeout(
54217
54304
  commitRootWhenReady.bind(
54218
54305
  null,
@@ -54334,7 +54421,7 @@ void main() {
54334
54421
  try {
54335
54422
  if (!objectIs(getSnapshot(), check)) return !1;
54336
54423
  } catch (error) {
54337
- return !1;
54424
+ return false;
54338
54425
  }
54339
54426
  }
54340
54427
  tag = node.child;
@@ -54343,14 +54430,14 @@ void main() {
54343
54430
  else {
54344
54431
  if (node === finishedWork) break;
54345
54432
  for (; null === node.sibling; ) {
54346
- if (null === node.return || node.return === finishedWork) return !0;
54433
+ if (null === node.return || node.return === finishedWork) return true;
54347
54434
  node = node.return;
54348
54435
  }
54349
54436
  node.sibling.return = node.return;
54350
54437
  node = node.sibling;
54351
54438
  }
54352
54439
  }
54353
- return !0;
54440
+ return true;
54354
54441
  }
54355
54442
  function markRootSuspended(
54356
54443
  root,
@@ -54375,8 +54462,8 @@ void main() {
54375
54462
  }
54376
54463
  function flushSyncWork$1() {
54377
54464
  return 0 === (executionContext & 6)
54378
- ? (flushSyncWorkAcrossRoots_impl(0), !1)
54379
- : !0;
54465
+ ? (flushSyncWorkAcrossRoots_impl(0), false)
54466
+ : true;
54380
54467
  }
54381
54468
  function resetWorkInProgressStack() {
54382
54469
  if (null !== workInProgress) {
@@ -54408,9 +54495,9 @@ void main() {
54408
54495
  workInProgressRootRenderLanes = lanes;
54409
54496
  workInProgressSuspendedReason = 0;
54410
54497
  workInProgressThrownValue = null;
54411
- workInProgressRootDidSkipSuspendedSiblings = !1;
54498
+ workInProgressRootDidSkipSuspendedSiblings = false;
54412
54499
  workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
54413
- workInProgressRootDidAttachPingListener = !1;
54500
+ workInProgressRootDidAttachPingListener = false;
54414
54501
  workInProgressSuspendedRetryLanes =
54415
54502
  workInProgressDeferredLane =
54416
54503
  workInProgressRootPingedLanes =
@@ -54420,7 +54507,7 @@ void main() {
54420
54507
  0;
54421
54508
  workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =
54422
54509
  null;
54423
- workInProgressRootDidIncludeRecursiveRenderUpdate = !1;
54510
+ workInProgressRootDidIncludeRecursiveRenderUpdate = false;
54424
54511
  0 !== (lanes & 8) && (lanes |= lanes & 32);
54425
54512
  var allEntangledLanes = root.entangledLanes;
54426
54513
  if (0 !== allEntangledLanes)
@@ -54479,7 +54566,7 @@ void main() {
54479
54566
  ((workInProgressRootRenderLanes & 4194048) !==
54480
54567
  workInProgressRootRenderLanes &&
54481
54568
  null !== suspenseHandlerStackCursor.current) ||
54482
- (workInProgressRootIsPrerendering = !0);
54569
+ (workInProgressRootIsPrerendering = true);
54483
54570
  (0 === (workInProgressRootSkippedLanes & 134217727) &&
54484
54571
  0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
54485
54572
  null === workInProgressRoot ||
@@ -54487,7 +54574,7 @@ void main() {
54487
54574
  workInProgressRoot,
54488
54575
  workInProgressRootRenderLanes,
54489
54576
  workInProgressDeferredLane,
54490
- !1
54577
+ false
54491
54578
  );
54492
54579
  }
54493
54580
  function renderRootSync(root, lanes, shouldYieldForPrerendering) {
@@ -54497,7 +54584,7 @@ void main() {
54497
54584
  prevAsyncDispatcher = pushAsyncDispatcher();
54498
54585
  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
54499
54586
  (workInProgressTransitions = null), prepareFreshStack(root, lanes);
54500
- lanes = !1;
54587
+ lanes = false;
54501
54588
  var exitStatus = workInProgressRootExitStatus;
54502
54589
  a: do
54503
54590
  try {
@@ -54751,14 +54838,14 @@ void main() {
54751
54838
  return;
54752
54839
  }
54753
54840
  if (unitOfWork.flags & 32768) {
54754
- if (isHydrating || 1 === suspendedReason) root = !0;
54841
+ if (isHydrating || 1 === suspendedReason) root = true;
54755
54842
  else if (
54756
54843
  workInProgressRootIsPrerendering ||
54757
54844
  0 !== (workInProgressRootRenderLanes & 536870912)
54758
54845
  )
54759
- root = !1;
54846
+ root = false;
54760
54847
  else if (
54761
- ((workInProgressRootDidSkipSuspendedSiblings = root = !0),
54848
+ ((workInProgressRootDidSkipSuspendedSiblings = root = true),
54762
54849
  2 === suspendedReason ||
54763
54850
  9 === suspendedReason ||
54764
54851
  3 === suspendedReason ||
@@ -55108,7 +55195,7 @@ void main() {
55108
55195
  return flushPassiveEffects();
55109
55196
  }
55110
55197
  function flushPassiveEffects() {
55111
- if (5 !== pendingEffectsStatus) return !1;
55198
+ if (5 !== pendingEffectsStatus) return false;
55112
55199
  var root = pendingEffectsRoot,
55113
55200
  remainingLanes = pendingEffectsRemainingLanes;
55114
55201
  pendingEffectsRemainingLanes = 0;
@@ -55208,7 +55295,7 @@ void main() {
55208
55295
  void 0 === threadIDs &&
55209
55296
  ((threadIDs = new Set()), pingCache.set(wakeable, threadIDs));
55210
55297
  threadIDs.has(lanes) ||
55211
- ((workInProgressRootDidAttachPingListener = !0),
55298
+ ((workInProgressRootDidAttachPingListener = true),
55212
55299
  threadIDs.add(lanes),
55213
55300
  (root = pingSuspendedRoot.bind(null, root, wakeable, lanes)),
55214
55301
  wakeable.then(root, root));
@@ -55269,9 +55356,9 @@ void main() {
55269
55356
  }
55270
55357
  var firstScheduledRoot = null,
55271
55358
  lastScheduledRoot = null,
55272
- didScheduleMicrotask = !1,
55273
- mightHavePendingSyncWork = !1,
55274
- isFlushingWork = !1,
55359
+ didScheduleMicrotask = false,
55360
+ mightHavePendingSyncWork = false,
55361
+ isFlushingWork = false,
55275
55362
  currentEventTransitionLane = 0;
55276
55363
  function ensureRootIsScheduled(root) {
55277
55364
  root !== lastScheduledRoot &&
@@ -55279,15 +55366,15 @@ void main() {
55279
55366
  (null === lastScheduledRoot
55280
55367
  ? (firstScheduledRoot = lastScheduledRoot = root)
55281
55368
  : (lastScheduledRoot = lastScheduledRoot.next = root));
55282
- mightHavePendingSyncWork = !0;
55369
+ mightHavePendingSyncWork = true;
55283
55370
  didScheduleMicrotask ||
55284
- ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
55371
+ ((didScheduleMicrotask = true), scheduleImmediateRootScheduleTask());
55285
55372
  }
55286
55373
  function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
55287
55374
  if (!isFlushingWork && mightHavePendingSyncWork) {
55288
- isFlushingWork = !0;
55375
+ isFlushingWork = true;
55289
55376
  do {
55290
- var didPerformSomeWork = !1;
55377
+ var didPerformSomeWork = false;
55291
55378
  for (var root$174 = firstScheduledRoot; null !== root$174; ) {
55292
55379
  if (0 !== syncTransitionLanes) {
55293
55380
  var pendingLanes = root$174.pendingLanes;
@@ -55307,7 +55394,7 @@ void main() {
55307
55394
  : 0;
55308
55395
  }
55309
55396
  0 !== JSCompiler_inline_result &&
55310
- ((didPerformSomeWork = !0),
55397
+ ((didPerformSomeWork = true),
55311
55398
  performSyncWorkOnRoot(root$174, JSCompiler_inline_result));
55312
55399
  } else
55313
55400
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
@@ -55319,19 +55406,19 @@ void main() {
55319
55406
  )),
55320
55407
  0 === (JSCompiler_inline_result & 3) ||
55321
55408
  checkIfRootIsPrerendering(root$174, JSCompiler_inline_result) ||
55322
- ((didPerformSomeWork = !0),
55409
+ ((didPerformSomeWork = true),
55323
55410
  performSyncWorkOnRoot(root$174, JSCompiler_inline_result));
55324
55411
  root$174 = root$174.next;
55325
55412
  }
55326
55413
  } while (didPerformSomeWork);
55327
- isFlushingWork = !1;
55414
+ isFlushingWork = false;
55328
55415
  }
55329
55416
  }
55330
55417
  function processRootScheduleInImmediateTask() {
55331
55418
  processRootScheduleInMicrotask();
55332
55419
  }
55333
55420
  function processRootScheduleInMicrotask() {
55334
- mightHavePendingSyncWork = didScheduleMicrotask = !1;
55421
+ mightHavePendingSyncWork = didScheduleMicrotask = false;
55335
55422
  var syncTransitionLanes = 0;
55336
55423
  0 !== currentEventTransitionLane &&
55337
55424
  (shouldAttemptEagerTransition() &&
@@ -55351,7 +55438,7 @@ void main() {
55351
55438
  else if (
55352
55439
  ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
55353
55440
  )
55354
- mightHavePendingSyncWork = !0;
55441
+ mightHavePendingSyncWork = true;
55355
55442
  root = next;
55356
55443
  }
55357
55444
  flushSyncWorkAcrossRoots_impl(syncTransitionLanes);
@@ -55449,7 +55536,7 @@ void main() {
55449
55536
  }
55450
55537
  function performSyncWorkOnRoot(root, lanes) {
55451
55538
  if (flushPendingEffects()) return null;
55452
- performWorkOnRoot(root, lanes, !0);
55539
+ performWorkOnRoot(root, lanes, true);
55453
55540
  }
55454
55541
  function scheduleImmediateRootScheduleTask() {
55455
55542
  scheduleMicrotask(function () {
@@ -55527,7 +55614,7 @@ void main() {
55527
55614
  startHostTransition(
55528
55615
  maybeTargetInst,
55529
55616
  {
55530
- pending: !0,
55617
+ pending: true,
55531
55618
  data: formData,
55532
55619
  method: nativeEventTarget.method,
55533
55620
  action: action
@@ -55545,7 +55632,7 @@ void main() {
55545
55632
  startHostTransition(
55546
55633
  maybeTargetInst,
55547
55634
  {
55548
- pending: !0,
55635
+ pending: true,
55549
55636
  data: formData,
55550
55637
  method: nativeEventTarget.method,
55551
55638
  action: action
@@ -55690,7 +55777,7 @@ void main() {
55690
55777
  new Set());
55691
55778
  var listenerSetKey = domEventName + "__bubble";
55692
55779
  JSCompiler_inline_result.has(listenerSetKey) ||
55693
- (addTrappedEventListener(targetElement, domEventName, 2, !1),
55780
+ (addTrappedEventListener(targetElement, domEventName, 2, false),
55694
55781
  JSCompiler_inline_result.add(listenerSetKey));
55695
55782
  }
55696
55783
  function listenToNativeEvent(domEventName, isCapturePhaseListener, target) {
@@ -55706,12 +55793,12 @@ void main() {
55706
55793
  var listeningMarker = "_reactListening" + Math.random().toString(36).slice(2);
55707
55794
  function listenToAllSupportedEvents(rootContainerElement) {
55708
55795
  if (!rootContainerElement[listeningMarker]) {
55709
- rootContainerElement[listeningMarker] = !0;
55796
+ rootContainerElement[listeningMarker] = true;
55710
55797
  allNativeEvents.forEach(function (domEventName) {
55711
55798
  "selectionchange" !== domEventName &&
55712
55799
  (nonDelegatedEvents.has(domEventName) ||
55713
- listenToNativeEvent(domEventName, !1, rootContainerElement),
55714
- listenToNativeEvent(domEventName, !0, rootContainerElement));
55800
+ listenToNativeEvent(domEventName, false, rootContainerElement),
55801
+ listenToNativeEvent(domEventName, true, rootContainerElement));
55715
55802
  });
55716
55803
  var ownerDocument =
55717
55804
  9 === rootContainerElement.nodeType
@@ -55719,8 +55806,8 @@ void main() {
55719
55806
  : rootContainerElement.ownerDocument;
55720
55807
  null === ownerDocument ||
55721
55808
  ownerDocument[listeningMarker] ||
55722
- ((ownerDocument[listeningMarker] = !0),
55723
- listenToNativeEvent("selectionchange", !1, ownerDocument));
55809
+ ((ownerDocument[listeningMarker] = true),
55810
+ listenToNativeEvent("selectionchange", false, ownerDocument));
55724
55811
  }
55725
55812
  }
55726
55813
  function addTrappedEventListener(
@@ -55750,19 +55837,19 @@ void main() {
55750
55837
  ("touchstart" !== domEventName &&
55751
55838
  "touchmove" !== domEventName &&
55752
55839
  "wheel" !== domEventName) ||
55753
- (listenerWrapper = !0);
55840
+ (listenerWrapper = true);
55754
55841
  isCapturePhaseListener
55755
55842
  ? void 0 !== listenerWrapper
55756
55843
  ? targetContainer.addEventListener(domEventName, eventSystemFlags, {
55757
- capture: !0,
55844
+ capture: true,
55758
55845
  passive: listenerWrapper
55759
55846
  })
55760
- : targetContainer.addEventListener(domEventName, eventSystemFlags, !0)
55847
+ : targetContainer.addEventListener(domEventName, eventSystemFlags, true)
55761
55848
  : void 0 !== listenerWrapper
55762
55849
  ? targetContainer.addEventListener(domEventName, eventSystemFlags, {
55763
55850
  passive: listenerWrapper
55764
55851
  })
55765
- : targetContainer.addEventListener(domEventName, eventSystemFlags, !1);
55852
+ : targetContainer.addEventListener(domEventName, eventSystemFlags, false);
55766
55853
  }
55767
55854
  function dispatchEventForPluginEventSystem(
55768
55855
  domEventName,
@@ -56313,7 +56400,7 @@ void main() {
56313
56400
  }
56314
56401
  function checkForUnmatchedText(serverText, clientText) {
56315
56402
  clientText = normalizeMarkupForTextOrAttribute(clientText);
56316
- return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;
56403
+ return normalizeMarkupForTextOrAttribute(serverText) === clientText ? true : false;
56317
56404
  }
56318
56405
  function noop$1() {}
56319
56406
  function setProp(domElement, tag, key, value, props, prevValue) {
@@ -56512,9 +56599,9 @@ void main() {
56512
56599
  break;
56513
56600
  case "capture":
56514
56601
  case "download":
56515
- !0 === value
56602
+ true === value
56516
56603
  ? domElement.setAttribute(key, "")
56517
- : !1 !== value &&
56604
+ : false !== value &&
56518
56605
  null != value &&
56519
56606
  "function" !== typeof value &&
56520
56607
  "symbol" !== typeof value
@@ -56699,7 +56786,7 @@ void main() {
56699
56786
  }
56700
56787
  key in domElement
56701
56788
  ? (domElement[key] = value)
56702
- : !0 === value
56789
+ : true === value
56703
56790
  ? domElement.setAttribute(key, "")
56704
56791
  : setValueForAttribute(domElement, key, value);
56705
56792
  }
@@ -56719,8 +56806,8 @@ void main() {
56719
56806
  case "img":
56720
56807
  listenToNonDelegatedEvent("error", domElement);
56721
56808
  listenToNonDelegatedEvent("load", domElement);
56722
- var hasSrc = !1,
56723
- hasSrcSet = !1,
56809
+ var hasSrc = false,
56810
+ hasSrcSet = false,
56724
56811
  propKey;
56725
56812
  for (propKey in props)
56726
56813
  if (props.hasOwnProperty(propKey)) {
@@ -56728,10 +56815,10 @@ void main() {
56728
56815
  if (null != propValue)
56729
56816
  switch (propKey) {
56730
56817
  case "src":
56731
- hasSrc = !0;
56818
+ hasSrc = true;
56732
56819
  break;
56733
56820
  case "srcSet":
56734
- hasSrcSet = !0;
56821
+ hasSrcSet = true;
56735
56822
  break;
56736
56823
  case "children":
56737
56824
  case "dangerouslySetInnerHTML":
@@ -56789,7 +56876,7 @@ void main() {
56789
56876
  defaultChecked,
56790
56877
  propValue,
56791
56878
  hasSrcSet,
56792
- !1
56879
+ false
56793
56880
  );
56794
56881
  track(domElement);
56795
56882
  return;
@@ -56817,8 +56904,8 @@ void main() {
56817
56904
  props = propValue;
56818
56905
  domElement.multiple = !!hasSrc;
56819
56906
  null != tag
56820
- ? updateOptions(domElement, !!hasSrc, tag, !1)
56821
- : null != props && updateOptions(domElement, !!hasSrc, props, !0);
56907
+ ? updateOptions(domElement, !!hasSrc, tag, false)
56908
+ : null != props && updateOptions(domElement, !!hasSrc, props, true);
56822
56909
  return;
56823
56910
  case "textarea":
56824
56911
  listenToNonDelegatedEvent("invalid", domElement);
@@ -57080,11 +57167,11 @@ void main() {
57080
57167
  lastProps = value;
57081
57168
  nextProps = propKey;
57082
57169
  null != propKey$205
57083
- ? updateOptions(domElement, !!lastProps, propKey$205, !1)
57170
+ ? updateOptions(domElement, !!lastProps, propKey$205, false)
57084
57171
  : !!nextProps !== !!lastProps &&
57085
57172
  (null != tag
57086
- ? updateOptions(domElement, !!lastProps, tag, !0)
57087
- : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
57173
+ ? updateOptions(domElement, !!lastProps, tag, true)
57174
+ : updateOptions(domElement, !!lastProps, lastProps ? [] : "", false));
57088
57175
  return;
57089
57176
  case "textarea":
57090
57177
  propKey = propKey$205 = null;
@@ -57137,7 +57224,7 @@ void main() {
57137
57224
  )
57138
57225
  switch (propKey$221) {
57139
57226
  case "selected":
57140
- domElement.selected = !1;
57227
+ domElement.selected = false;
57141
57228
  break;
57142
57229
  default:
57143
57230
  setProp(
@@ -57314,12 +57401,12 @@ void main() {
57314
57401
  function shouldAttemptEagerTransition() {
57315
57402
  var event = window.event;
57316
57403
  if (event && "popstate" === event.type) {
57317
- if (event === currentPopstateTransitionEvent) return !1;
57404
+ if (event === currentPopstateTransitionEvent) return false;
57318
57405
  currentPopstateTransitionEvent = event;
57319
- return !0;
57406
+ return true;
57320
57407
  }
57321
57408
  currentPopstateTransitionEvent = null;
57322
- return !1;
57409
+ return false;
57323
57410
  }
57324
57411
  var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
57325
57412
  cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
@@ -57797,7 +57884,7 @@ void main() {
57797
57884
  resource ||
57798
57885
  ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),
57799
57886
  resource ||
57800
- ((src = assign({ src: src, async: !0 }, options)),
57887
+ ((src = assign({ src: src, async: true }, options)),
57801
57888
  (options = preloadPropsMap.get(key)) &&
57802
57889
  adoptPreloadPropsForScript(src, options),
57803
57890
  (resource = ownerDocument.createElement("script")),
@@ -57823,7 +57910,7 @@ void main() {
57823
57910
  resource ||
57824
57911
  ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),
57825
57912
  resource ||
57826
- ((src = assign({ src: src, async: !0, type: "module" }, options)),
57913
+ ((src = assign({ src: src, async: true, type: "module" }, options)),
57827
57914
  (options = preloadPropsMap.get(key)) &&
57828
57915
  adoptPreloadPropsForScript(src, options),
57829
57916
  (resource = ownerDocument.createElement("script")),
@@ -58147,11 +58234,11 @@ void main() {
58147
58234
  );
58148
58235
  }
58149
58236
  function isHostHoistableType(type, props, hostContext) {
58150
- if (1 === hostContext || null != props.itemProp) return !1;
58237
+ if (1 === hostContext || null != props.itemProp) return false;
58151
58238
  switch (type) {
58152
58239
  case "meta":
58153
58240
  case "title":
58154
- return !0;
58241
+ return true;
58155
58242
  case "style":
58156
58243
  if (
58157
58244
  "string" !== typeof props.precedence ||
@@ -58159,7 +58246,7 @@ void main() {
58159
58246
  "" === props.href
58160
58247
  )
58161
58248
  break;
58162
- return !0;
58249
+ return true;
58163
58250
  case "link":
58164
58251
  if (
58165
58252
  "string" !== typeof props.rel ||
@@ -58176,7 +58263,7 @@ void main() {
58176
58263
  "string" === typeof props.precedence && null == type
58177
58264
  );
58178
58265
  default:
58179
- return !0;
58266
+ return true;
58180
58267
  }
58181
58268
  case "script":
58182
58269
  if (
@@ -58188,14 +58275,14 @@ void main() {
58188
58275
  props.src &&
58189
58276
  "string" === typeof props.src
58190
58277
  )
58191
- return !0;
58278
+ return true;
58192
58279
  }
58193
- return !1;
58280
+ return false;
58194
58281
  }
58195
58282
  function preloadResource(resource) {
58196
58283
  return "stylesheet" === resource.type && 0 === (resource.state.loading & 3)
58197
- ? !1
58198
- : !0;
58284
+ ? false
58285
+ : true;
58199
58286
  }
58200
58287
  var suspendedState = null;
58201
58288
  function noop() {}
@@ -58205,7 +58292,7 @@ void main() {
58205
58292
  if (
58206
58293
  "stylesheet" === resource.type &&
58207
58294
  ("string" !== typeof props.media ||
58208
- !1 !== matchMedia(props.media).matches) &&
58295
+ false !== matchMedia(props.media).matches) &&
58209
58296
  0 === (resource.state.loading & 4)
58210
58297
  ) {
58211
58298
  if (null === resource.instance) {
@@ -58410,7 +58497,7 @@ void main() {
58410
58497
  formState
58411
58498
  );
58412
58499
  tag = 1;
58413
- !0 === isStrictMode && (tag |= 24);
58500
+ true === isStrictMode && (tag |= 24);
58414
58501
  isStrictMode = createFiberImplClass(3, null, null, tag);
58415
58502
  containerInfo.current = isStrictMode;
58416
58503
  isStrictMode.stateNode = containerInfo;
@@ -58470,7 +58557,7 @@ void main() {
58470
58557
  markRetryLaneIfNotHydrated(fiber, 67108864);
58471
58558
  }
58472
58559
  }
58473
- var _enabled = !0;
58560
+ var _enabled = true;
58474
58561
  function dispatchDiscreteEvent(
58475
58562
  domEventName,
58476
58563
  eventSystemFlags,
@@ -58711,7 +58798,7 @@ void main() {
58711
58798
  return 32;
58712
58799
  }
58713
58800
  }
58714
- var hasScheduledReplayAttempt = !1,
58801
+ var hasScheduledReplayAttempt = false,
58715
58802
  queuedFocus = null,
58716
58803
  queuedDrag = null,
58717
58804
  queuedMouse = null,
@@ -58795,7 +58882,7 @@ void main() {
58795
58882
  targetContainer,
58796
58883
  nativeEvent
58797
58884
  )),
58798
- !0
58885
+ true
58799
58886
  );
58800
58887
  case "dragenter":
58801
58888
  return (
@@ -58807,7 +58894,7 @@ void main() {
58807
58894
  targetContainer,
58808
58895
  nativeEvent
58809
58896
  )),
58810
- !0
58897
+ true
58811
58898
  );
58812
58899
  case "mouseover":
58813
58900
  return (
@@ -58819,7 +58906,7 @@ void main() {
58819
58906
  targetContainer,
58820
58907
  nativeEvent
58821
58908
  )),
58822
- !0
58909
+ true
58823
58910
  );
58824
58911
  case "pointerover":
58825
58912
  var pointerId = nativeEvent.pointerId;
@@ -58834,7 +58921,7 @@ void main() {
58834
58921
  nativeEvent
58835
58922
  )
58836
58923
  );
58837
- return !0;
58924
+ return true;
58838
58925
  case "gotpointercapture":
58839
58926
  return (
58840
58927
  (pointerId = nativeEvent.pointerId),
@@ -58849,10 +58936,10 @@ void main() {
58849
58936
  nativeEvent
58850
58937
  )
58851
58938
  ),
58852
- !0
58939
+ true
58853
58940
  );
58854
58941
  }
58855
- return !1;
58942
+ return false;
58856
58943
  }
58857
58944
  function attemptExplicitHydrationTarget(queuedTarget) {
58858
58945
  var targetInst = getClosestInstanceFromNode(queuedTarget.target);
@@ -58891,7 +58978,7 @@ void main() {
58891
58978
  queuedTarget.blockedOn = null;
58892
58979
  }
58893
58980
  function attemptReplayContinuousQueuedEvent(queuedEvent) {
58894
- if (null !== queuedEvent.blockedOn) return !1;
58981
+ if (null !== queuedEvent.blockedOn) return false;
58895
58982
  for (
58896
58983
  var targetContainers = queuedEvent.targetContainers;
58897
58984
  0 < targetContainers.length;
@@ -58913,17 +59000,17 @@ void main() {
58913
59000
  null !== targetContainers &&
58914
59001
  attemptContinuousHydration(targetContainers),
58915
59002
  (queuedEvent.blockedOn = nextBlockedOn),
58916
- !1
59003
+ false
58917
59004
  );
58918
59005
  targetContainers.shift();
58919
59006
  }
58920
- return !0;
59007
+ return true;
58921
59008
  }
58922
59009
  function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
58923
59010
  attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);
58924
59011
  }
58925
59012
  function replayUnblockedEvents() {
58926
- hasScheduledReplayAttempt = !1;
59013
+ hasScheduledReplayAttempt = false;
58927
59014
  null !== queuedFocus &&
58928
59015
  attemptReplayContinuousQueuedEvent(queuedFocus) &&
58929
59016
  (queuedFocus = null);
@@ -58940,7 +59027,7 @@ void main() {
58940
59027
  queuedEvent.blockedOn === unblocked &&
58941
59028
  ((queuedEvent.blockedOn = null),
58942
59029
  hasScheduledReplayAttempt ||
58943
- ((hasScheduledReplayAttempt = !0),
59030
+ ((hasScheduledReplayAttempt = true),
58944
59031
  Scheduler.unstable_scheduleCallback(
58945
59032
  Scheduler.unstable_NormalPriority,
58946
59033
  replayUnblockedEvents
@@ -58970,7 +59057,7 @@ void main() {
58970
59057
  startHostTransition(
58971
59058
  formInst,
58972
59059
  {
58973
- pending: !0,
59060
+ pending: true,
58974
59061
  data: formData,
58975
59062
  method: form.method,
58976
59063
  action: submitterOrAction
@@ -59121,7 +59208,7 @@ void main() {
59121
59208
  }
59122
59209
  reactDomClient_production.createRoot = function (container, options) {
59123
59210
  if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
59124
- var isStrictMode = !1,
59211
+ var isStrictMode = false,
59125
59212
  identifierPrefix = "",
59126
59213
  onUncaughtError = defaultOnUncaughtError,
59127
59214
  onCaughtError = defaultOnCaughtError,
@@ -59129,7 +59216,7 @@ void main() {
59129
59216
  transitionCallbacks = null;
59130
59217
  null !== options &&
59131
59218
  void 0 !== options &&
59132
- (!0 === options.unstable_strictMode && (isStrictMode = !0),
59219
+ (true === options.unstable_strictMode && (isStrictMode = true),
59133
59220
  void 0 !== options.identifierPrefix &&
59134
59221
  (identifierPrefix = options.identifierPrefix),
59135
59222
  void 0 !== options.onUncaughtError &&
@@ -59142,7 +59229,7 @@ void main() {
59142
59229
  options = createFiberRoot(
59143
59230
  container,
59144
59231
  1,
59145
- !1,
59232
+ false,
59146
59233
  null,
59147
59234
  null,
59148
59235
  isStrictMode,
@@ -59159,7 +59246,7 @@ void main() {
59159
59246
  };
59160
59247
  reactDomClient_production.hydrateRoot = function (container, initialChildren, options) {
59161
59248
  if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));
59162
- var isStrictMode = !1,
59249
+ var isStrictMode = false,
59163
59250
  identifierPrefix = "",
59164
59251
  onUncaughtError = defaultOnUncaughtError,
59165
59252
  onCaughtError = defaultOnCaughtError,
@@ -59168,7 +59255,7 @@ void main() {
59168
59255
  formState = null;
59169
59256
  null !== options &&
59170
59257
  void 0 !== options &&
59171
- (!0 === options.unstable_strictMode && (isStrictMode = !0),
59258
+ (true === options.unstable_strictMode && (isStrictMode = true),
59172
59259
  void 0 !== options.identifierPrefix &&
59173
59260
  (identifierPrefix = options.identifierPrefix),
59174
59261
  void 0 !== options.onUncaughtError &&
@@ -59182,7 +59269,7 @@ void main() {
59182
59269
  initialChildren = createFiberRoot(
59183
59270
  container,
59184
59271
  1,
59185
- !0,
59272
+ true,
59186
59273
  initialChildren,
59187
59274
  null != options ? options : null,
59188
59275
  isStrictMode,
@@ -59264,6 +59351,23 @@ void main() {
59264
59351
  mode: 'open',
59265
59352
  });
59266
59353
  this.inputLayer = new InputLayer(xrDevice);
59354
+ // Subscribe to control mode changes
59355
+ this.unsubscribeControlMode = xrDevice.onControlModeChange((mode) => {
59356
+ this.inputLayer.isInProgrammaticMode = mode === 'programmatic';
59357
+ if (mode === 'programmatic') {
59358
+ this.inputLayer.syncFromDevice();
59359
+ this.inputLayer.setInteractionsEnabled(false);
59360
+ }
59361
+ else {
59362
+ this.inputLayer.setInteractionsEnabled(true);
59363
+ }
59364
+ });
59365
+ // Subscribe to state changes when in programmatic mode
59366
+ this.unsubscribeStateChange = xrDevice.onStateChange(() => {
59367
+ if (this.inputLayer.isInProgrammaticMode) {
59368
+ this.inputLayer.syncFromDevice();
59369
+ }
59370
+ });
59267
59371
  const root = clientExports.createRoot(devUIShadowRoot);
59268
59372
  root.render(jsxRuntimeExports.jsx(Overlay, { xrDevice: xrDevice, inputLayer: this.inputLayer, shadowRoot: devUIShadowRoot }));
59269
59373
  const installOfferSessionUI = () => {
@@ -59285,12 +59389,18 @@ void main() {
59285
59389
  render(time) {
59286
59390
  this.inputLayer.renderScene(time);
59287
59391
  }
59392
+ dispose() {
59393
+ this.unsubscribeControlMode();
59394
+ this.unsubscribeStateChange();
59395
+ this.inputLayer.dispose();
59396
+ }
59288
59397
  get devUICanvas() {
59289
59398
  return this.inputLayer.domElement;
59290
59399
  }
59291
59400
  }
59292
59401
  const Overlay = ({ xrDevice, inputLayer, shadowRoot, }) => {
59293
59402
  const [pointerLocked, setPointerLocked] = reactExports.useState(false);
59403
+ const [controlMode, setControlMode] = reactExports.useState(xrDevice.controlMode);
59294
59404
  reactExports.useEffect(() => {
59295
59405
  const pointerLockChangeHandler = () => {
59296
59406
  const locked = document.pointerLockElement ||
@@ -59303,12 +59413,17 @@ void main() {
59303
59413
  document.addEventListener('pointerlockchange', pointerLockChangeHandler, false);
59304
59414
  document.addEventListener('mozpointerlockchange', pointerLockChangeHandler, false);
59305
59415
  document.addEventListener('webkitpointerlockchange', pointerLockChangeHandler, false);
59416
+ // Subscribe to control mode changes
59417
+ const unsubscribe = xrDevice.onControlModeChange((mode) => {
59418
+ setControlMode(mode);
59419
+ });
59306
59420
  return () => {
59307
59421
  document.removeEventListener('pointerlockchange', pointerLockChangeHandler, false);
59308
59422
  document.removeEventListener('mozpointerlockchange', pointerLockChangeHandler, false);
59309
59423
  document.removeEventListener('webkitpointerlockchange', pointerLockChangeHandler, false);
59424
+ unsubscribe();
59310
59425
  };
59311
- }, []);
59426
+ }, [xrDevice]);
59312
59427
  return (jsxRuntimeExports.jsx(Ye, { target: shadowRoot, disableCSSOMInjection: true, children: jsxRuntimeExports.jsxs("div", { style: {
59313
59428
  width: '100vw',
59314
59429
  height: '100vh',
@@ -59316,7 +59431,33 @@ void main() {
59316
59431
  flexDirection: 'column',
59317
59432
  justifyContent: 'space-between',
59318
59433
  pointerEvents: 'none',
59319
- }, children: [jsxRuntimeExports.jsx(HeaderUI, { xrDevice: xrDevice, inputLayer: inputLayer }), jsxRuntimeExports.jsx(HeadsetUI, { xrDevice: xrDevice, inputLayer: inputLayer, pointerLocked: pointerLocked }), jsxRuntimeExports.jsx(ControlsUI, { xrDevice: xrDevice, inputLayer: inputLayer, pointerLocked: pointerLocked })] }) }));
59434
+ }, children: [controlMode === 'programmatic' && (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("div", { style: {
59435
+ position: 'absolute',
59436
+ top: 0,
59437
+ left: 0,
59438
+ right: 0,
59439
+ bottom: 0,
59440
+ pointerEvents: 'none',
59441
+ zIndex: 999,
59442
+ boxShadow: 'inset 0 0 20px 5px rgba(59, 130, 246, 0.5)',
59443
+ } }), jsxRuntimeExports.jsxs("div", { style: {
59444
+ position: 'absolute',
59445
+ bottom: '8px',
59446
+ left: '50%',
59447
+ transform: 'translateX(-50%)',
59448
+ backgroundColor: 'rgba(59, 130, 246, 0.9)',
59449
+ color: 'white',
59450
+ padding: '6px 16px',
59451
+ borderRadius: '16px',
59452
+ fontSize: '12px',
59453
+ fontFamily: 'system-ui, sans-serif',
59454
+ fontWeight: 500,
59455
+ zIndex: 1000,
59456
+ display: 'flex',
59457
+ alignItems: 'center',
59458
+ gap: '6px',
59459
+ boxShadow: '0 2px 8px rgba(0,0,0,0.3)',
59460
+ }, children: [jsxRuntimeExports.jsx("span", { style: { fontSize: '14px' }, children: "\u25CF" }), "Remote Control Active"] })] })), controlMode !== 'programmatic' && (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(HeaderUI, { xrDevice: xrDevice, inputLayer: inputLayer }), jsxRuntimeExports.jsx(HeadsetUI, { xrDevice: xrDevice, inputLayer: inputLayer, pointerLocked: pointerLocked }), jsxRuntimeExports.jsx(ControlsUI, { xrDevice: xrDevice, inputLayer: inputLayer, pointerLocked: pointerLocked })] }))] }) }));
59320
59461
  };
59321
59462
  const OfferSessionUI = ({ xrDevice, shadowRoot, }) => {
59322
59463
  const [showOffer, setShowOffer] = React.useState(xrDevice.sessionOffered && !xrDevice.activeSession);