@wandelbots/wandelbots-js-react-components
Version:
React UI toolkit for building applications on top of the Wandelbots platform
43 lines (41 loc) • 473 kB
JavaScript
"use strict";var Xh=Object.defineProperty;var Zh=(e,t,n)=>t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var H=(e,t,n)=>Zh(e,typeof t!="symbol"?t+"":t,n);const y=require("./index-DxwppshT.cjs"),R=require("@mui/material"),ie=require("mobx-react-lite"),$=require("react"),fe=require("react-i18next"),b=require("prop-types"),de=require("./index-CqMZL0FV.cjs"),et=require("@mui/x-data-grid"),fu=require("lodash-es"),he=require("mobx"),Te=require("@wandelbots/nova-js"),pu=require("./LoadingCover-r2yhJZF9.cjs"),Fr=require("@mui/icons-material"),Qh=require("@emotion/styled"),ef=require("@emotion/react"),tf=require("@mui/x-charts"),ss=require("three");function mu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=mu($),Ha=mu(ss);function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var as=function(e,t){return as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},as(e,t)};function gu(e,t){as(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function rf(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function of(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function sf(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(of(arguments[t]));return e}var yu=(function(){function e(t,n){this.target=n,this.type=t}return e})(),af=(function(e){gu(t,e);function t(n,r){var i=e.call(this,"error",r)||this;return i.message=n.message,i.error=n,i}return t})(yu),lf=(function(e){gu(t,e);function t(n,r,i){n===void 0&&(n=1e3),r===void 0&&(r="");var o=e.call(this,"close",i)||this;return o.wasClean=!0,o.code=n,o.reason=r,o}return t})(yu);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var cf=function(){if(typeof WebSocket<"u")return WebSocket},uf=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},Zt={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},df=(function(){function e(t,n,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){i._debug("open event");var s=i._options.minUptime,a=s===void 0?Zt.minUptime:s;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},a),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(l){return i._ws.send(l)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(l){return i._callEventListener(o,l)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(s){return i._callEventListener(o,s)})},this._handleError=function(o){i._debug("error event",o.message),i._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(o),i._debug("exec error listeners"),i._listeners.error.forEach(function(s){return i._callEventListener(o,s)}),i._connect()},this._handleClose=function(o){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(o),i._listeners.close.forEach(function(s){return i._callEventListener(o,s)})},this._url=t,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?Zt.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,n){this._listeners[t]&&this._listeners[t].push(n)},e.prototype.dispatchEvent=function(t){var n,r,i=this._listeners[t.type];if(i)try{for(var o=rf(i),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(t,a)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0},e.prototype.removeEventListener=function(t,n){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(r){return r!==n}))},e.prototype._debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._options.debug&&console.log.apply(console,sf(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,r=n===void 0?Zt.reconnectionDelayGrowFactor:n,i=t.minReconnectionDelay,o=i===void 0?Zt.minReconnectionDelay:i,s=t.maxReconnectionDelay,a=s===void 0?Zt.maxReconnectionDelay:s,l=0;return this._retryCount>0&&(l=o*Math.pow(r,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,i=r===void 0?Zt.maxRetries:r,o=n.connectionTimeout,s=o===void 0?Zt.connectionTimeout:o,a=n.WebSocket,l=a===void 0?cf():a;if(this._retryCount>=i){this._debug("max retries reached",this._retryCount,">=",i);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!uf(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},s))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new af(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new lf(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e})(),hf=class extends df{constructor(e,t={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=t,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",r=>{this.receivedFirstMessage||(this.receivedFirstMessage=r)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const n=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):n.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}async opened(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})}async closed(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})}async firstMessage(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const n=i=>{this.receivedFirstMessage=i,this.removeEventListener("message",n),this.removeEventListener("error",r),e(i)},r=i=>{this.removeEventListener("message",n),this.removeEventListener("error",r),t(i)};this.addEventListener("message",n),this.addEventListener("error",r)})}async nextMessage(){return new Promise((e,t)=>{const n=i=>{this.removeEventListener("message",n),this.removeEventListener("error",r),e(i)},r=i=>{this.removeEventListener("message",n),this.removeEventListener("error",r),t(i)};this.addEventListener("message",n),this.addEventListener("error",r)})}},ff=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}setJSON(e,t){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(t))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,t){if(!this.available)return null;window.localStorage.setItem(e,t)}getString(e){return this.available?window.localStorage.getItem(e):null}};const Ro=new ff,$n="wandelbots.io",Io={dev:{domain:`https://auth.portal.dev.${$n}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${$n}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${$n}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},pf=e=>{if(e.endsWith(`dev.${$n}`))return Io.dev;if(e.endsWith(`stg.${$n}`))return Io.stg;if(e.endsWith($n))return Io.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},mf=async e=>{if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const t=pf(e);if(new URL(e).origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:n}=await Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BcLLh1tx.cjs")),r=new n({domain:t.domain,clientId:t.clientId??"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:i}=await r.handleRedirectCallback();window.history.replaceState({},document.title,(i==null?void 0:i.returnTo)||window.location.pathname)}else await r.loginWithRedirect();return await r.getTokenSilently()};function gf(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if(typeof i!="string")throw new TypeError("Url must be a string. Received "+i);i!==""&&(r>0&&(i=i.replace(/^[\/]+/,"")),r<e.length-1?i=i.replace(/[\/]+$/,""):i=i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/");o=o.replace(/\/(\?|&|#[^!])/g,"$1");var s=o.split("?");return o=s.shift()+(s.length>0?"?":"")+s.join("&"),o}function Ao(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),gf(e)}var He={},Ya;function yf(){if(Ya)return He;Ya=1,Object.defineProperty(He,"__esModule",{value:!0}),He.PathError=He.TokenData=void 0,He.parse=c,He.compile=u,He.match=f,He.pathToRegexp=m,He.stringify=E;const e="/",t=T=>T,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(T){return T.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(T){return T.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class a{constructor(A,O){this.tokens=A,this.originalPath=O}}He.TokenData=a;class l extends TypeError{constructor(A,O){let D=A;O&&(D+=`: ${O}`),D+="; visit https://git.new/pathToRegexpError for info",super(D),this.originalPath=O}}He.PathError=l;function c(T,A={}){const{encodePath:O=t}=A,D=[...T],k=[];let x=0,I=0;function M(){let N="";if(n.test(D[x]))do N+=D[x++];while(r.test(D[x]));else if(D[x]==='"'){let W=x;for(;x++<D.length;){if(D[x]==='"'){x++,W=0;break}D[x]==="\\"&&x++,N+=D[x]}if(W)throw new l(`Unterminated quote at index ${W}`,T)}if(!N)throw new l(`Missing parameter name at index ${x}`,T);return N}for(;x<D.length;){const N=D[x],W=i[N];W?k.push({type:W,index:x++,value:N}):N==="\\"?k.push({type:"escape",index:x++,value:D[x++]}):N===":"?k.push({type:"param",index:x++,value:M()}):N==="*"?k.push({type:"wildcard",index:x++,value:M()}):k.push({type:"char",index:x++,value:N})}k.push({type:"end",index:x,value:""});function F(N){const W=[];for(;;){const B=k[I++];if(B.type===N)break;if(B.type==="char"||B.type==="escape"){let K=B.value,ce=k[I];for(;ce.type==="char"||ce.type==="escape";)K+=ce.value,ce=k[++I];W.push({type:"text",value:O(K)});continue}if(B.type==="param"||B.type==="wildcard"){W.push({type:B.type,name:B.value});continue}if(B.type==="{"){W.push({type:"group",tokens:F("}")});continue}throw new l(`Unexpected ${B.type} at index ${B.index}, expected ${N}`,T)}return W}return new a(F("end"),T)}function u(T,A={}){const{encode:O=encodeURIComponent,delimiter:D=e}=A,k=typeof T=="object"?T:c(T,A),x=d(k.tokens,D,O);return function(M={}){const[F,...N]=x(M);if(N.length)throw new TypeError(`Missing parameters: ${N.join(", ")}`);return F}}function d(T,A,O){const D=T.map(k=>h(k,A,O));return k=>{const x=[""];for(const I of D){const[M,...F]=I(k);x[0]+=M,x.push(...F)}return x}}function h(T,A,O){if(T.type==="text")return()=>[T.value];if(T.type==="group"){const k=d(T.tokens,A,O);return x=>{const[I,...M]=k(x);return M.length?[""]:[I]}}const D=O||t;return T.type==="wildcard"&&O!==!1?k=>{const x=k[T.name];if(x==null)return["",T.name];if(!Array.isArray(x)||x.length===0)throw new TypeError(`Expected "${T.name}" to be a non-empty array`);return[x.map((I,M)=>{if(typeof I!="string")throw new TypeError(`Expected "${T.name}/${M}" to be a string`);return D(I)}).join(A)]}:k=>{const x=k[T.name];if(x==null)return["",T.name];if(typeof x!="string")throw new TypeError(`Expected "${T.name}" to be a string`);return[D(x)]}}function f(T,A={}){const{decode:O=decodeURIComponent,delimiter:D=e}=A,{regexp:k,keys:x}=m(T,A),I=x.map(M=>O===!1?t:M.type==="param"?O:F=>F.split(D).map(O));return function(F){const N=k.exec(F);if(!N)return!1;const W=N[0],B=Object.create(null);for(let K=1;K<N.length;K++){if(N[K]===void 0)continue;const ce=x[K-1],Q=I[K-1];B[ce.name]=Q(N[K])}return{path:W,params:B}}}function m(T,A={}){const{delimiter:O=e,end:D=!0,sensitive:k=!1,trailing:x=!0}=A,I=[],M=k?"":"i",F=[];for(const B of p(T,[])){const K=typeof B=="object"?B:c(B,A);for(const ce of g(K.tokens,0,[]))F.push(v(ce,O,I,K.originalPath))}let N=`^(?:${F.join("|")})`;return x&&(N+=`(?:${s(O)}$)?`),N+=D?"$":`(?=${s(O)}|$)`,{regexp:new RegExp(N,M),keys:I}}function p(T,A){if(Array.isArray(T))for(const O of T)p(O,A);else A.push(T);return A}function*g(T,A,O){if(A===T.length)return yield O;const D=T[A];if(D.type==="group")for(const k of g(D.tokens,0,O.slice()))yield*g(T,A+1,k);else O.push(D);yield*g(T,A+1,O)}function v(T,A,O,D){let k="",x="",I=!0;for(const M of T){if(M.type==="text"){k+=s(M.value),x+=M.value,I||(I=M.value.includes(A));continue}if(M.type==="param"||M.type==="wildcard"){if(!I&&!x)throw new l(`Missing text before "${M.name}" ${M.type}`,D);M.type==="param"?k+=`(${C(A,I?"":x)}+)`:k+="([\\s\\S]+)",O.push(M),x="",I=!1;continue}}return k}function C(T,A){return A.length<2?T.length<2?`[^${s(T+A)}]`:`(?:(?!${s(T)})[^${s(A)}])`:T.length<2?`(?:(?!${s(A)})[^${s(T)}])`:`(?:(?!${s(A)}|${s(T)})[\\s\\S])`}function w(T){let A="",O=0;function D(k){return _(k)&&S(T[O])?k:JSON.stringify(k)}for(;O<T.length;){const k=T[O++];if(k.type==="text"){A+=o(k.value);continue}if(k.type==="group"){A+=`{${w(k.tokens)}}`;continue}if(k.type==="param"){A+=`:${D(k.name)}`;continue}if(k.type==="wildcard"){A+=`*${D(k.name)}`;continue}throw new TypeError(`Unknown token type: ${k.type}`)}return A}function E(T){return w(T.tokens)}function _(T){const[A,...O]=T;return n.test(A)&&O.every(D=>r.test(D))}function S(T){return T&&T.type==="text"?!r.test(T.value[0]):!0}return He}var xf=yf(),bf=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(de.SystemApi),this.cell=this.withUnwrappedResponsesOnly(de.CellApi),this.motionGroup=this.withCellId(de.MotionGroupApi),this.motionGroupModels=this.withCellId(de.MotionGroupModelsApi),this.controller=this.withCellId(de.ControllerApi),this.controllerIOs=this.withCellId(de.ControllerInputsOutputsApi),this.trajectoryPlanning=this.withCellId(de.TrajectoryPlanningApi),this.trajectoryExecution=this.withCellId(de.TrajectoryExecutionApi),this.trajectoryCaching=this.withCellId(de.TrajectoryCachingApi),this.application=this.withCellId(de.ApplicationApi),this.applicationGlobal=this.withUnwrappedResponsesOnly(de.ApplicationApi),this.jogging=this.withCellId(de.JoggingApi),this.kinematics=this.withCellId(de.KinematicsApi),this.busInputsOutputs=this.withCellId(de.BUSInputsOutputsApi),this.virtualController=this.withCellId(de.VirtualControllerApi),this.virtualControllerBehavior=this.withCellId(de.VirtualControllerBehaviorApi),this.virtualControllerIOs=this.withCellId(de.VirtualControllerInputsOutputsApi),this.storeObject=this.withCellId(de.StoreObjectApi),this.storeCollisionComponents=this.withCellId(de.StoreCollisionComponentsApi),this.storeCollisionSetups=this.withCellId(de.StoreCollisionSetupsApi)}withCellId(e){const t=new e({...this.opts,isJsonMime:n=>n==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??y.axios.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(n!=="constructor"&&typeof t[n]=="function"){const r=t[n];t[n]=(...i)=>r.apply(t,[this.cellId,...i]).then(o=>o.data)}return t}withUnwrappedResponsesOnly(e){const t=new e({...this.opts,isJsonMime:n=>n==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??y.axios.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(n!=="constructor"&&typeof t[n]=="function"){const r=t[n];t[n]=(...i)=>r.apply(t,i).then(o=>o.data)}return t}},vf=class{constructor(){this.connections=[]}async handleAPIRequest(e){var i,o,s;const t=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return["mock-ur5e"]}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{initial_joint_position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",kind:"VirtualController",manufacturer:"universalrobots",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/state",handle(){return{mode:"MODE_CONTROL",last_error:[],timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,controller:"mock-ur5e",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",velocity_override:100,motion_groups:[{timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,motion_group:"0@mock-ur5e",controller:"mock-ur5e",joint_position:[1.487959623336792,-1.8501918315887451,1.8003005981445312,6.034560203552246,1.4921919107437134,1.593459963798523],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_torque:[],joint_current:[0,0,0,0,0,0],flange_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},tcp:"Flange",tcp_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},payload:"",coordinate_system:"",standstill:!0}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/motion-groups/:motionGroupId/description",handle(){return{motion_group_model:"UniversalRobots_UR5e",mounting:{position:[0,0,0],orientation:[0,0,0]},tcps:{Flange:{name:"Default-Flange",pose:{position:[0,0,0],orientation:[0,0,0]}}},payloads:{"FPay-0":{name:"FPay-0",payload:0,center_of_mass:[0,0,0],moment_of_inertia:[0,0,0]}},cycle_time:8,dh_parameters:[{alpha:1.5707963267948966,d:162.25},{a:-425},{a:-392.2},{alpha:1.5707963267948966,d:133.3},{alpha:-1.5707963267948966,d:99.7},{d:99.6}],operation_limits:{auto_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3},elbow:{velocity:5e3},flange:{velocity:5e3}},manual_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t1_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t2_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}}},serial_number:"WBVirtualRobot"}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId/coordinate-systems",handle(){return[{coordinate_system:"",name:"world",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"},{coordinate_system:"CS-0",name:"Default-CS",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"}]}}],n=((i=e.method)==null?void 0:i.toUpperCase())||"GET",r=`/cells${(s=(o=e.url)==null?void 0:o.split("/cells")[1])==null?void 0:s.split("?")[0]}`;for(const a of t){const l=xf.match(a.path)(r||"");if(n===a.method&&l){const c=a.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new y.AxiosError(`No mock handler matched this request: ${n} ${r}`,"404",e)}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(Sf)})),e.url.includes("/execution/jogging")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{message:"string",kind:"INITIALIZE_RECEIVED"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}};const Sf={result:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",timestamp:new Date().toISOString(),sequence_number:1,joint_position:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},standstill:!1,flange_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]},tcp_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]}}};function wf(e){return e.startsWith("http")||(e=`http://${e}`),new URL(e).toString()}var Ef=class{constructor(e){this.authPromise=null,this.accessToken=null;const t=e.cellId??"cell";this.config={cellId:t,...e},this.accessToken=e.accessToken||Ro.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"?this.mock=new vf:this.config.instanceUrl=wf(this.config.instanceUrl);const n=y.axios.create({baseURL:Ao(this.config.instanceUrl,"/api/v2"),headers:typeof window<"u"&&window.location.origin.includes("localhost")?{}:{"X-Wandelbots-Client":"Wandelbots-Nova-JS-SDK"}});n.interceptors.request.use(async r=>(r.headers.Authorization||(this.accessToken?r.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(r.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`)),r)),typeof window<"u"&&n.interceptors.response.use(r=>r,async r=>{var i,o;if(y.isAxiosError(r))if(((i=r.response)==null?void 0:i.status)===401)try{if(await this.renewAuthentication(),r.config)return this.accessToken?r.config.headers.Authorization=`Bearer ${this.accessToken}`:delete r.config.headers.Authorization,n.request(r.config)}catch(s){return Promise.reject(s)}else((o=r.response)==null?void 0:o.status)===503&&(await fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(r)}),this.api=new bf(t,{...e,basePath:Ao(this.config.instanceUrl,"/api/v2"),isJsonMime:r=>r==="application/json",baseOptions:{...this.mock?{adapter:r=>this.mock.handleAPIRequest(r)}:{},...e.baseOptions},axiosInstance:n})}async renewAuthentication(){if(!this.authPromise){this.authPromise=mf(this.config.instanceUrl);try{this.accessToken=await this.authPromise,this.accessToken?Ro.setString("wbjs.access_token",this.accessToken):Ro.delete("wbjs.access_token")}finally{this.authPromise=null}}}makeWebsocketURL(e){const t=new URL(Ao(this.config.instanceUrl,`/api/v2/cells/${this.config.cellId}`,e));return t.protocol=t.protocol.replace("http","ws"),t.protocol=t.protocol.replace("https","wss"),this.accessToken?t.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(t.username=this.config.username,t.password=this.config.password),t.toString()}openReconnectingWebsocket(e){return new hf(this.makeWebsocketURL(e),{mock:this.mock})}};function Tf(e){var o,s,a,l,c,u;const t=[((o=e.position)==null?void 0:o[0])??0,((s=e.position)==null?void 0:s[1])??0,((a=e.position)==null?void 0:a[2])??0],n=[((l=e.orientation)==null?void 0:l[0])??0,((c=e.orientation)==null?void 0:c[1])??0,((u=e.orientation)==null?void 0:u[2])??0],r=t.map(d=>d.toFixed(1)),i=n.map(d=>d.toFixed(4));return`(${r.concat(i).join(", ")})`}const Cf=e=>y.jsxRuntimeExports.jsx(R.SvgIcon,{...e,viewBox:"0 0 10 8",children:y.jsxRuntimeExports.jsx("path",{d:"M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",fill:"currentColor",fillOpacity:"0.56"})}),_f=y.externalizeComponent(ie.observer(e=>{const{appIcon:t,appName:n,apps:r=[],onAppSelect:i,disabled:o=!1,sx:s}=e,[a,l]=$.useState(null),c=!!a,u=f=>{l(f.currentTarget)},d=()=>{l(null)},h=f=>{d(),f.onClick?f.onClick():f.href&&(window.location.href=f.href),i==null||i(f)};return y.jsxRuntimeExports.jsxs(y.jsxRuntimeExports.Fragment,{children:[y.jsxRuntimeExports.jsx(R.AppBar,{position:"static",sx:{boxShadow:"none",backgroundImage:"none","& .MuiAppBar-root":{backgroundImage:"none",backgroundColor:"transparent"},...s},children:y.jsxRuntimeExports.jsxs(R.Toolbar,{sx:{minHeight:"62px !important"},children:[y.jsxRuntimeExports.jsx(R.Box,{sx:{mr:1,display:"flex",alignItems:"center"},children:t}),y.jsxRuntimeExports.jsxs(R.Box,{sx:{display:"flex",alignItems:"center",flexGrow:1},children:[y.jsxRuntimeExports.jsx(R.Typography,{component:"h1",sx:{fontWeight:"bold",fontSize:"1rem"},children:n}),r.length>0&&y.jsxRuntimeExports.jsx(R.IconButton,{color:"inherit","aria-label":"switch app","aria-controls":"app-menu","aria-haspopup":"true",onClick:u,disabled:o,sx:{ml:1,width:28,height:28,borderRadius:"6px",padding:0,backgroundColor:f=>R.alpha(f.palette.common.white,.1),opacity:1,"&:hover":{backgroundColor:f=>R.alpha(f.palette.common.white,.16)},"& .MuiSvgIcon-root":{fontSize:"8px",width:"8px",height:"6px"}},children:y.jsxRuntimeExports.jsx(Cf,{})})]})]})}),y.jsxRuntimeExports.jsx(R.Backdrop,{open:c,onClick:d,sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:f=>f.zIndex.modal-1}}),y.jsxRuntimeExports.jsx(R.Menu,{id:"app-menu",anchorEl:a,open:c,onClose:d,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{zIndex:f=>f.zIndex.modal,"& .MuiPaper-root":{minWidth:200,mt:1}},children:r.map(f=>y.jsxRuntimeExports.jsxs(R.MenuItem,{onClick:()=>h(f),children:[y.jsxRuntimeExports.jsx(R.Box,{sx:{display:"flex",alignItems:"center"},children:f.icon}),y.jsxRuntimeExports.jsx(R.Typography,{variant:"body1",sx:{ml:2},children:f.name})]},f.id))})]})}));function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(null,arguments)}function ft(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cr(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let s="",a=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[i]=s}return r}function xu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $e(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xu(e))&&(r&&(r+=" "),r+=t);return r}function Gt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Os="$$material";function Mf(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function If(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Af=/[A-Z]|^ms/g,jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bu=function(t){return t.charCodeAt(1)===45},qa=function(t){return t!=null&&typeof t!="boolean"},jo=If(function(e){return bu(e)?e:e.replace(Af,"-$&").toLowerCase()}),Ja=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jf,function(r,i,o){return Bt={name:i,styles:o,next:Bt},i})}return Rf[t]!==1&&!bu(t)&&typeof n=="number"&&n!==0?n+"px":n};function ui(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Bt={name:i.name,styles:i.styles,next:Bt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Bt={name:s.name,styles:s.styles,next:Bt},s=s.next;var a=o.styles+";";return a}return kf(e,t,n)}}var l=n;return l}function kf(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ui(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;qa(a)&&(r+=jo(o)+":"+Ja(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)qa(s[l])&&(r+=jo(o)+":"+Ja(o,s[l])+";");else{var c=ui(e,t,s);switch(o){case"animation":case"animationName":{r+=jo(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Ka=/label:\s*([^\s;{]+)\s*(;|$)/g,Bt;function Of(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Bt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=ui(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=ui(n,t,e[a]),r){var l=o;i+=l[a]}Ka.lastIndex=0;for(var c="",u;(u=Ka.exec(i))!==null;)c+="-"+u[1];var d=Mf(i)+c;return{name:d,styles:i,next:Bt}}/**
* @mui/styled-engine v7.3.6
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function Pf(e,t){const n=Qh(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function Df(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Xa=[];function sn(e){return Xa[0]=e,Of(Xa)}var Br={exports:{}},ae={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Za;function $f(){if(Za)return ae;Za=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case n:case i:case r:case l:case c:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case a:case d:case u:return p;case o:return p;default:return g}}case t:return g}}}return ae.ContextConsumer=o,ae.ContextProvider=s,ae.Element=e,ae.ForwardRef=a,ae.Fragment=n,ae.Lazy=d,ae.Memo=u,ae.Portal=t,ae.Profiler=i,ae.StrictMode=r,ae.Suspense=l,ae.SuspenseList=c,ae.isContextConsumer=function(p){return m(p)===o},ae.isContextProvider=function(p){return m(p)===s},ae.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ae.isForwardRef=function(p){return m(p)===a},ae.isFragment=function(p){return m(p)===n},ae.isLazy=function(p){return m(p)===d},ae.isMemo=function(p){return m(p)===u},ae.isPortal=function(p){return m(p)===t},ae.isProfiler=function(p){return m(p)===i},ae.isStrictMode=function(p){return m(p)===r},ae.isSuspense=function(p){return m(p)===l},ae.isSuspenseList=function(p){return m(p)===c},ae.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===r||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===s||p.$$typeof===o||p.$$typeof===a||p.$$typeof===f||p.getModuleId!==void 0)},ae.typeOf=m,ae}var le={};/**
* @license React
* react-is.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qa;function Lf(){return Qa||(Qa=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case r:case o:case i:case c:case u:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case h:case d:return p;case s:return p;default:return g}}case n:return g}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");le.ContextConsumer=s,le.ContextProvider=a,le.Element=t,le.ForwardRef=l,le.Fragment=r,le.Lazy=h,le.Memo=d,le.Portal=n,le.Profiler=o,le.StrictMode=i,le.Suspense=c,le.SuspenseList=u,le.isContextConsumer=function(p){return e(p)===s},le.isContextProvider=function(p){return e(p)===a},le.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},le.isForwardRef=function(p){return e(p)===l},le.isFragment=function(p){return e(p)===r},le.isLazy=function(p){return e(p)===h},le.isMemo=function(p){return e(p)===d},le.isPortal=function(p){return e(p)===n},le.isProfiler=function(p){return e(p)===o},le.isStrictMode=function(p){return e(p)===i},le.isSuspense=function(p){return e(p)===c},le.isSuspenseList=function(p){return e(p)===u},le.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===o||p===i||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===d||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},le.typeOf=e})()),le}var el;function Nf(){return el||(el=1,process.env.NODE_ENV==="production"?Br.exports=$f():Br.exports=Lf()),Br.exports}var di=Nf();function ct(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vu(e){if(j.isValidElement(e)||di.isValidElementType(e)||!ct(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vu(e[n])}),t}function Le(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ct(e)&&ct(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])||di.isValidElementType(t[i])?r[i]=t[i]:ct(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&ct(e[i])?r[i]=Le(e[i],t[i],n):n.clone?r[i]=ct(t[i])?vu(t[i]):t[i]:r[i]=t[i]}),r}const zf=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ff(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=zf(t),s=Object.keys(o);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,f){const m=s.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:f)-r/100}${n})`}function u(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):a(h)}function d(h){const f=s.indexOf(h);return f===0?a(s[1]):f===s.length-1?l(s[f]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:a,down:l,between:c,only:u,not:d,unit:n,...i}}function tl(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var s,a;const o=/min-width:\s*([0-9.]+)/;return+(((s=r.match(o))==null?void 0:s[1])||0)-+(((a=i.match(o))==null?void 0:a[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function Bf(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Gf(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Gt(18,`(${t})`));return null}const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function Vf(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>t(e.breakpoints.up(...a),s),o.down=(...a)=>t(e.breakpoints.down(...a),s),o.between=(...a)=>t(e.breakpoints.between(...a),s),o.only=(...a)=>t(e.breakpoints.only(...a),s),o.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const Uf={borderRadius:4},Wt=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function ur(e,t){return t?Le(e,t,{clone:!1}):e}const Di={xs:0,sm:600,md:900,lg:1200,xl:1536},nl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Di[e]}px)`},Wf={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Di[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function rt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||nl;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||nl;return Object.keys(t).reduce((s,a)=>{if(Bf(o.keys,a)){const l=Gf(r.containerQueries?r:Wf,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(o.values||Di).includes(a)){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Su(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function ls(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Hf(e,...t){const n=Su(e),r=[n,...t].reduce((i,o)=>Le(i,o),{});return ls(Object.keys(n),r)}function Yf(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function ko({values:e,breakpoints:t,base:n}){const r=n||Yf(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $i(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function hi(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=$i(e,n)||r,t&&(i=t(i,r,e)),i}function be(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=$i(l,r)||{};return rt(s,a,d=>{let h=hi(c,i,d);return d===h&&typeof d=="string"&&(h=hi(c,i,`${t}${d==="default"?"":De(d)}`,d)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Wt}:{},o.filterProps=[t],o}function qf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Jf={m:"margin",p:"padding"},Kf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rl={m