@wandelbots/wandelbots-js-react-components 2.33.0-pr.feature-robot-precondition-list.372.c924328 → 2.33.0-pr.feature-robot-precondition-list.372.9858a50

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.
package/dist/index.cjs CHANGED
@@ -142,14 +142,14 @@ and limitations under the License.
142
142
  * by Pedro Ladaria <pedro.ladaria@gmail.com>
143
143
  * https://github.com/pladaria/reconnecting-websocket
144
144
  * License MIT
145
- */var ZA=function(){if(typeof WebSocket<"u")return WebSocket},e_=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},yr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},t_=function(){function e(t,r,n){var a=this;n===void 0&&(n={}),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){a._debug("open event");var s=a._options.minUptime,i=s===void 0?yr.minUptime:s;clearTimeout(a._connectTimeout),a._uptimeTimeout=setTimeout(function(){return a._acceptOpen()},i),a._ws.binaryType=a._binaryType,a._messageQueue.forEach(function(l){return a._ws.send(l)}),a._messageQueue=[],a.onopen&&a.onopen(o),a._listeners.open.forEach(function(l){return a._callEventListener(o,l)})},this._handleMessage=function(o){a._debug("message event"),a.onmessage&&a.onmessage(o),a._listeners.message.forEach(function(s){return a._callEventListener(o,s)})},this._handleError=function(o){a._debug("error event",o.message),a._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),a.onerror&&a.onerror(o),a._debug("exec error listeners"),a._listeners.error.forEach(function(s){return a._callEventListener(o,s)}),a._connect()},this._handleClose=function(o){a._debug("close event"),a._clearTimeouts(),a._shouldReconnect&&a._connect(),a.onclose&&a.onclose(o),a._listeners.close.forEach(function(s){return a._callEventListener(o,s)})},this._url=t,this._protocols=r,this._options=n,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(r,n){return typeof n=="string"?r+=n.length:n instanceof Blob?r+=n.size:r+=n.byteLength,r},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,r){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,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),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 r=this._options.maxEnqueuedMessages,n=r===void 0?yr.maxEnqueuedMessages:r;this._messageQueue.length<n&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,n,a=this._listeners[t.type];if(a)try{for(var o=JA(a),s=o.next();!s.done;s=o.next()){var i=s.value;this._callEventListener(t,i)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(n){return n!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,KA(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,n=r===void 0?yr.reconnectionDelayGrowFactor:r,a=t.minReconnectionDelay,o=a===void 0?yr.minReconnectionDelay:a,s=t.maxReconnectionDelay,i=s===void 0?yr.maxReconnectionDelay:s,l=0;return this._retryCount>0&&(l=o*Math.pow(n,this._retryCount-1),l>i&&(l=i)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,n=r.maxRetries,a=n===void 0?yr.maxRetries:n,o=r.connectionTimeout,s=o===void 0?yr.connectionTimeout:o,i=r.WebSocket,l=i===void 0?ZA():i;if(this._retryCount>=a){this._debug("max retries reached",this._retryCount,">=",a);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!e_(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 QA(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new XA(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(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}(),r_=Object.defineProperty,n_=Object.defineProperties,a_=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,s_=Object.prototype.propertyIsEnumerable,Fd=(e,t,r)=>t in e?r_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))o_.call(t,r)&&Fd(e,r,t[r]);if(Nd)for(var r of Nd(t))s_.call(t,r)&&Fd(e,r,t[r]);return e},dl=(e,t)=>n_(e,a_(t)),Ee=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{i(r.next(l))}catch(c){a(c)}},s=l=>{try{i(r.throw(l))}catch(c){a(c)}},i=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())}),i_=class extends t_{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",n=>{this.receivedFirstMessage||(this.receivedFirstMessage=n)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.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()}opened(){return Ee(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})})}closed(){return Ee(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})})}firstMessage(){return Ee(this,null,function*(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=a=>{this.receivedFirstMessage=a,this.removeEventListener("message",r),this.removeEventListener("error",n),e(a)},n=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),t(a)};this.addEventListener("message",r),this.addEventListener("error",n)})})}nextMessage(){return Ee(this,null,function*(){return new Promise((e,t)=>{const r=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),e(a)},n=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),t(a)};this.addEventListener("message",r),this.addEventListener("error",n)})})}},l_=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}},_i=new l_;function lr(e){try{return JSON.parse(e)}catch{return}}function c_(e,t){return e||(e="world"),t||(t="world"),e===t}var hn="wandelbots.io",Ei={dev:{domain:`https://auth.portal.dev.${hn}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${hn}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${hn}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},u_=e=>{if(e.includes(`dev.${hn}`))return Ei.dev;if(e.includes(`stg.${hn}`))return Ei.stg;if(e.includes(hn))return Ei.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},d_=e=>Ee(void 0,null,function*(){var t;if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const r=u_(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}=yield Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BLRAk7Yh.cjs")),a=new n({domain:r.domain,clientId:(t=r.clientId)!=null?t:"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:s}=yield a.handleRedirectCallback();window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)||window.location.pathname)}else yield a.loginWithRedirect();return yield a.getTokenSilently()});function Jm(e,t){return function(){return e.apply(t,arguments)}}const{toString:h_}=Object.prototype,{getPrototypeOf:Sc}=Object,$s=(e=>t=>{const r=h_.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>$s(t)===e),Us=e=>t=>typeof t===e,{isArray:Mn}=Array,Oa=Us("undefined");function p_(e){return e!==null&&!Oa(e)&&e.constructor!==null&&!Oa(e.constructor)&&ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ym=Rt("ArrayBuffer");function m_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ym(e.buffer),t}const f_=Us("string"),ht=Us("function"),Km=Us("number"),Ds=e=>e!==null&&typeof e=="object",g_=e=>e===!0||e===!1,Oo=e=>{if($s(e)!=="object")return!1;const t=Sc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y_=Rt("Date"),b_=Rt("File"),x_=Rt("Blob"),v_=Rt("FileList"),S_=e=>Ds(e)&&ht(e.pipe),O_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ht(e.append)&&((t=$s(e))==="formdata"||t==="object"&&ht(e.toString)&&e.toString()==="[object FormData]"))},w_=Rt("URLSearchParams"),[C_,P_,T_,R_]=["ReadableStream","Request","Response","Headers"].map(Rt),A_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ja(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Mn(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function Qm(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xm=e=>!Oa(e)&&e!==wr;function hl(){const{caseless:e}=Xm(this)&&this||{},t={},r=(n,a)=>{const o=e&&Qm(t,a)||a;Oo(t[o])&&Oo(n)?t[o]=hl(t[o],n):Oo(n)?t[o]=hl({},n):Mn(n)?t[o]=n.slice():t[o]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&ja(arguments[n],r);return t}const __=(e,t,r,{allOwnKeys:n}={})=>(ja(t,(a,o)=>{r&&ht(a)?e[o]=Jm(a,r):e[o]=a},{allOwnKeys:n}),e),E_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),V_=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},I_=(e,t,r,n)=>{let a,o,s;const i={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!n||n(s,e,t))&&!i[s]&&(t[s]=e[s],i[s]=!0);e=r!==!1&&Sc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},M_=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},j_=e=>{if(!e)return null;if(Mn(e))return e;let t=e.length;if(!Km(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},k_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sc(Uint8Array)),$_=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},U_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},D_=Rt("HTMLFormElement"),L_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),zd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B_=Rt("RegExp"),Zm=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ja(r,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(n[o]=s||a)}),Object.defineProperties(e,n)},N_=e=>{Zm(e,(t,r)=>{if(ht(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ht(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},F_=(e,t)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return Mn(e)?n(e):n(String(e).split(t)),r},z_=()=>{},G_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function H_(e){return!!(e&&ht(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q_=e=>{const t=new Array(10),r=(n,a)=>{if(Ds(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const o=Mn(n)?[]:{};return ja(n,(s,i)=>{const l=r(s,a+1);!Oa(l)&&(o[i]=l)}),t[a]=void 0,o}}return n};return r(e,0)},W_=Rt("AsyncFunction"),J_=e=>e&&(Ds(e)||ht(e))&&ht(e.then)&&ht(e.catch),ef=((e,t)=>e?setImmediate:t?((r,n)=>(wr.addEventListener("message",({source:a,data:o})=>{a===wr&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),wr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ht(wr.postMessage)),Y_=typeof queueMicrotask<"u"?queueMicrotask.bind(wr):typeof process<"u"&&process.nextTick||ef,H={isArray:Mn,isArrayBuffer:Ym,isBuffer:p_,isFormData:O_,isArrayBufferView:m_,isString:f_,isNumber:Km,isBoolean:g_,isObject:Ds,isPlainObject:Oo,isReadableStream:C_,isRequest:P_,isResponse:T_,isHeaders:R_,isUndefined:Oa,isDate:y_,isFile:b_,isBlob:x_,isRegExp:B_,isFunction:ht,isStream:S_,isURLSearchParams:w_,isTypedArray:k_,isFileList:v_,forEach:ja,merge:hl,extend:__,trim:A_,stripBOM:E_,inherits:V_,toFlatObject:I_,kindOf:$s,kindOfTest:Rt,endsWith:M_,toArray:j_,forEachEntry:$_,matchAll:U_,isHTMLForm:D_,hasOwnProperty:zd,hasOwnProp:zd,reduceDescriptors:Zm,freezeMethods:N_,toObjectSet:F_,toCamelCase:L_,noop:z_,toFiniteNumber:G_,findKey:Qm,global:wr,isContextDefined:Xm,isSpecCompliantForm:H_,toJSONObject:q_,isAsyncFn:W_,isThenable:J_,setImmediate:ef,asap:Y_};function he(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const tf=he.prototype,rf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rf[e]={value:e}});Object.defineProperties(he,rf);Object.defineProperty(tf,"isAxiosError",{value:!0});he.from=(e,t,r,n,a,o)=>{const s=Object.create(tf);return H.toFlatObject(e,s,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),he.call(s,e.message,t,r,n,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const K_=null;function pl(e){return H.isPlainObject(e)||H.isArray(e)}function nf(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Gd(e,t,r){return e?e.concat(t).map(function(a,o){return a=nf(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function Q_(e){return H.isArray(e)&&!e.some(pl)}const X_=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function Ls(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!H.isUndefined(y[m])});const n=r.metaTokens,a=r.visitor||u,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(H.isDate(f))return f.toISOString();if(!l&&H.isBlob(f))throw new he("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(f)||H.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,y){let S=f;if(f&&!y&&typeof f=="object"){if(H.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(H.isArray(f)&&Q_(f)||(H.isFileList(f)||H.endsWith(m,"[]"))&&(S=H.toArray(f)))return m=nf(m),S.forEach(function(O,w){!(H.isUndefined(O)||O===null)&&t.append(s===!0?Gd([m],w,o):s===null?m:m+"[]",c(O))}),!1}return pl(f)?!0:(t.append(Gd(y,m,o),c(f)),!1)}const d=[],h=Object.assign(X_,{defaultVisitor:u,convertValue:c,isVisitable:pl});function p(f,m){if(!H.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(f),H.forEach(f,function(S,E){(!(H.isUndefined(S)||S===null)&&a.call(t,S,H.isString(E)?E.trim():E,m,h))===!0&&p(S,m?m.concat(E):[E])}),d.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Hd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Oc(e,t){this._pairs=[],e&&Ls(e,this,t)}const af=Oc.prototype;af.append=function(t,r){this._pairs.push([t,r])};af.toString=function(t){const r=t?function(n){return t.call(this,n,Hd)}:Hd;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Z_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function of(e,t,r){if(!t)return e;const n=r&&r.encode||Z_;H.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let o;if(a?o=a(t,r):o=H.isURLSearchParams(t)?t.toString():new Oc(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qd{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(n){n!==null&&t(n)})}}const sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e2=typeof URLSearchParams<"u"?URLSearchParams:Oc,t2=typeof FormData<"u"?FormData:null,r2=typeof Blob<"u"?Blob:null,n2={isBrowser:!0,classes:{URLSearchParams:e2,FormData:t2,Blob:r2},protocols:["http","https","file","blob","url","data"]},wc=typeof window<"u"&&typeof document<"u",ml=typeof navigator=="object"&&navigator||void 0,a2=wc&&(!ml||["ReactNative","NativeScript","NS"].indexOf(ml.product)<0),o2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",s2=wc&&window.location.href||"http://localhost",i2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wc,hasStandardBrowserEnv:a2,hasStandardBrowserWebWorkerEnv:o2,navigator:ml,origin:s2},Symbol.toStringTag,{value:"Module"})),Xe={...i2,...n2};function l2(e,t){return Ls(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,o){return Xe.isNode&&H.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function c2(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function u2(e){const t={},r=Object.keys(e);let n;const a=r.length;let o;for(n=0;n<a;n++)o=r[n],t[o]=e[o];return t}function lf(e){function t(r,n,a,o){let s=r[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=r.length;return s=!s&&H.isArray(a)?a.length:s,l?(H.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!i):((!a[s]||!H.isObject(a[s]))&&(a[s]=[]),t(r,n,a[s],o)&&H.isArray(a[s])&&(a[s]=u2(a[s])),!i)}if(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,(n,a)=>{t(c2(n),a,r,0)}),r}return null}function d2(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ka={transitional:sf,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(t);if(o&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return a?JSON.stringify(lf(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return l2(t,this.formSerializer).toString();if((i=H.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ls(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),d2(t)):t}],transformResponse:[function(t){const r=this.transitional||ka.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?he.from(i,he.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{ka.headers[e]={}});const h2=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),p2=e=>{const t={};let r,n,a;return e&&e.split(`
146
- `).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!r||t[r]&&h2[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Wd=Symbol("internals");function Wn(e){return e&&String(e).trim().toLowerCase()}function wo(e){return e===!1||e==null?e:H.isArray(e)?e.map(wo):String(e)}function m2(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const f2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vi(e,t,r,n,a){if(H.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!H.isString(t)){if(H.isString(n))return t.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(t)}}function g2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function y2(e,t){const r=H.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,s){return this[n].call(this,t,a,o,s)},configurable:!0})})}let it=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function o(i,l,c){const u=Wn(l);if(!u)throw new Error("header name must be a non-empty string");const d=H.findKey(a,u);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=wo(i))}const s=(i,l)=>H.forEach(i,(c,u)=>o(c,u,l));if(H.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(H.isString(t)&&(t=t.trim())&&!f2(t))s(p2(t),r);else if(H.isHeaders(t))for(const[i,l]of t.entries())o(l,i,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=Wn(t),t){const n=H.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return m2(a);if(H.isFunction(r))return r.call(this,a,n);if(H.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wn(t),t){const n=H.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Vi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function o(s){if(s=Wn(s),s){const i=H.findKey(n,s);i&&(!r||Vi(n,n[i],i,r))&&(delete n[i],a=!0)}}return H.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!t||Vi(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,n={};return H.forEach(this,(a,o)=>{const s=H.findKey(n,o);if(s){r[s]=wo(a),delete r[o];return}const i=t?g2(o):String(o).trim();i!==o&&delete r[o],r[i]=wo(a),n[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&H.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
147
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Wd]=this[Wd]={accessors:{}}).accessors,a=this.prototype;function o(s){const i=Wn(s);n[i]||(y2(a,s),n[i]=!0)}return H.isArray(t)?t.forEach(o):o(t),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(it.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});H.freezeMethods(it);function Ii(e,t){const r=this||ka,n=t||r,a=it.from(n.headers);let o=n.data;return H.forEach(e,function(i){o=i.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function cf(e){return!!(e&&e.__CANCEL__)}function jn(e,t,r){he.call(this,e??"canceled",he.ERR_CANCELED,t,r),this.name="CanceledError"}H.inherits(jn,he,{__CANCEL__:!0});function uf(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function b2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x2(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[a]=l,n[a]=c;let d=o,h=0;for(;d!==a;)h+=r[d++],d=d%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(h*1e3/p):void 0}}function v2(e,t){let r=0,n=1e3/t,a,o;const s=(c,u=Date.now())=>{r=u,a=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(a=c,o||(o=setTimeout(()=>{o=null,s(a)},n-d)))},()=>a&&s(a)]}const Ko=(e,t,r=3)=>{let n=0;const a=x2(50,250);return v2(o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,c=a(l),u=s<=i;n=s;const d={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},r)},Jd=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Yd=e=>(...t)=>H.asap(()=>e(...t)),S2=Xe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,O2=Xe.hasStandardBrowserEnv?{write(e,t,r,n,a,o){const s=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),H.isString(n)&&s.push("path="+n),H.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function C2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function df(e,t,r){let n=!w2(t);return e&&n||r==!1?C2(e,t):t}const Kd=e=>e instanceof it?{...e}:e;function Vr(e,t){t=t||{};const r={};function n(c,u,d,h){return H.isPlainObject(c)&&H.isPlainObject(u)?H.merge.call({caseless:h},c,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function a(c,u,d,h){if(H.isUndefined(u)){if(!H.isUndefined(c))return n(void 0,c,d,h)}else return n(c,u,d,h)}function o(c,u){if(!H.isUndefined(u))return n(void 0,u)}function s(c,u){if(H.isUndefined(u)){if(!H.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function i(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,u,d)=>a(Kd(c),Kd(u),d,!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||a,h=d(e[u],t[u],u);H.isUndefined(h)&&d!==i||(r[u]=h)}),r}const hf=e=>{const t=Vr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:i}=t;t.headers=s=it.from(s),t.url=of(df(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(H.isFormData(r)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Xe.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(t)),n||n!==!1&&S2(t.url))){const c=a&&o&&O2.read(o);c&&s.set(a,c)}return t},P2=typeof XMLHttpRequest<"u",T2=P2&&function(e){return new Promise(function(r,n){const a=hf(e);let o=a.data;const s=it.from(a.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=a,u,d,h,p,f;function m(){p&&p(),f&&f(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function S(){if(!y)return;const O=it.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!i||i==="text"||i==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:O,config:e,request:y};uf(function(T){r(T),m()},function(T){n(T),m()},P),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new he("Request aborted",he.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||sf;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new he(w,P.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,y)),y=null},o===void 0&&s.setContentType(null),"setRequestHeader"in y&&H.forEach(s.toJSON(),function(w,P){y.setRequestHeader(P,w)}),H.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),i&&i!=="json"&&(y.responseType=a.responseType),c&&([h,f]=Ko(c,!0),y.addEventListener("progress",h)),l&&y.upload&&([d,p]=Ko(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(u=O=>{y&&(n(!O||O.type?new jn(null,e,y):O),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const E=b2(a.url);if(E&&Xe.protocols.indexOf(E)===-1){n(new he("Unsupported protocol "+E+":",he.ERR_BAD_REQUEST,e));return}y.send(o||null)})},R2=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const o=function(c){if(!a){a=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof he?u:new jn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>H.asap(i),l}},A2=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},_2=async function*(e,t){for await(const r of E2(e))yield*A2(r,t)},E2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Qd=(e,t,r,n)=>{const a=_2(e,t);let o=0,s,i=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){i(),l.close();return}let d=u.byteLength;if(r){let h=o+=d;r(h)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),a.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pf=Bs&&typeof ReadableStream=="function",V2=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},I2=pf&&mf(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xd=64*1024,fl=pf&&mf(()=>H.isReadableStream(new Response("").body)),Qo={stream:fl&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qo[t]&&(Qo[t]=H.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const M2=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e=e+""),H.isString(e))return(await V2(e)).byteLength},j2=async(e,t)=>{const r=H.toFiniteNumber(e.getContentLength());return r??M2(t)},k2=Bs&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=hf(e);c=c?(c+"").toLowerCase():"text";let p=R2([a,o&&o.toAbortSignal()],s),f;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&I2&&r!=="get"&&r!=="head"&&(y=await j2(u,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),C;if(H.isFormData(n)&&(C=P.headers.get("content-type"))&&u.setContentType(C),P.body){const[T,I]=Jd(y,Ko(Yd(l)));n=Qd(P.body,Xd,T,I)}}H.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let E=await fetch(f);const O=fl&&(c==="stream"||c==="response");if(fl&&(i||O&&m)){const P={};["status","statusText","headers"].forEach(N=>{P[N]=E[N]});const C=H.toFiniteNumber(E.headers.get("content-length")),[T,I]=i&&Jd(C,Ko(Yd(i),!0))||[];E=new Response(Qd(E.body,Xd,T,()=>{I&&I(),m&&m()}),P)}c=c||"text";let w=await Qo[H.findKey(Qo,c)||"text"](E,e);return!O&&m&&m(),await new Promise((P,C)=>{uf(P,C,{data:w,headers:it.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:f})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,e,f),{cause:S.cause||S}):he.from(S,S&&S.code,e,f)}}),gl={http:K_,xhr:T2,fetch:k2};H.forEach(gl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zd=e=>`- ${e}`,$2=e=>H.isFunction(e)||e===null||e===!1,ff={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!$2(r)&&(n=gl[(s=String(r)).toLowerCase()],n===void 0))throw new he(`Unknown adapter '${s}'`);if(n)break;a[s||"#"+o]=n}if(!n){const o=Object.entries(a).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
145
+ */var ZA=function(){if(typeof WebSocket<"u")return WebSocket},e_=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},yr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},t_=function(){function e(t,r,n){var a=this;n===void 0&&(n={}),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){a._debug("open event");var s=a._options.minUptime,i=s===void 0?yr.minUptime:s;clearTimeout(a._connectTimeout),a._uptimeTimeout=setTimeout(function(){return a._acceptOpen()},i),a._ws.binaryType=a._binaryType,a._messageQueue.forEach(function(l){return a._ws.send(l)}),a._messageQueue=[],a.onopen&&a.onopen(o),a._listeners.open.forEach(function(l){return a._callEventListener(o,l)})},this._handleMessage=function(o){a._debug("message event"),a.onmessage&&a.onmessage(o),a._listeners.message.forEach(function(s){return a._callEventListener(o,s)})},this._handleError=function(o){a._debug("error event",o.message),a._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),a.onerror&&a.onerror(o),a._debug("exec error listeners"),a._listeners.error.forEach(function(s){return a._callEventListener(o,s)}),a._connect()},this._handleClose=function(o){a._debug("close event"),a._clearTimeouts(),a._shouldReconnect&&a._connect(),a.onclose&&a.onclose(o),a._listeners.close.forEach(function(s){return a._callEventListener(o,s)})},this._url=t,this._protocols=r,this._options=n,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(r,n){return typeof n=="string"?r+=n.length:n instanceof Blob?r+=n.size:r+=n.byteLength,r},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,r){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,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),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 r=this._options.maxEnqueuedMessages,n=r===void 0?yr.maxEnqueuedMessages:r;this._messageQueue.length<n&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,n,a=this._listeners[t.type];if(a)try{for(var o=JA(a),s=o.next();!s.done;s=o.next()){var i=s.value;this._callEventListener(t,i)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(n){return n!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,KA(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,n=r===void 0?yr.reconnectionDelayGrowFactor:r,a=t.minReconnectionDelay,o=a===void 0?yr.minReconnectionDelay:a,s=t.maxReconnectionDelay,i=s===void 0?yr.maxReconnectionDelay:s,l=0;return this._retryCount>0&&(l=o*Math.pow(n,this._retryCount-1),l>i&&(l=i)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,n=r.maxRetries,a=n===void 0?yr.maxRetries:n,o=r.connectionTimeout,s=o===void 0?yr.connectionTimeout:o,i=r.WebSocket,l=i===void 0?ZA():i;if(this._retryCount>=a){this._debug("max retries reached",this._retryCount,">=",a);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!e_(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 QA(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new XA(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(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}(),r_=Object.defineProperty,n_=Object.defineProperties,a_=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,s_=Object.prototype.propertyIsEnumerable,Fd=(e,t,r)=>t in e?r_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))o_.call(t,r)&&Fd(e,r,t[r]);if(Nd)for(var r of Nd(t))s_.call(t,r)&&Fd(e,r,t[r]);return e},dl=(e,t)=>n_(e,a_(t)),Ee=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{i(r.next(l))}catch(c){a(c)}},s=l=>{try{i(r.throw(l))}catch(c){a(c)}},i=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())}),i_=class extends t_{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",n=>{this.receivedFirstMessage||(this.receivedFirstMessage=n)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.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()}opened(){return Ee(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})})}closed(){return Ee(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})})}firstMessage(){return Ee(this,null,function*(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=a=>{this.receivedFirstMessage=a,this.removeEventListener("message",r),this.removeEventListener("error",n),e(a)},n=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),t(a)};this.addEventListener("message",r),this.addEventListener("error",n)})})}nextMessage(){return Ee(this,null,function*(){return new Promise((e,t)=>{const r=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),e(a)},n=a=>{this.removeEventListener("message",r),this.removeEventListener("error",n),t(a)};this.addEventListener("message",r),this.addEventListener("error",n)})})}},l_=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}},_i=new l_;function lr(e){try{return JSON.parse(e)}catch{return}}function c_(e,t){return e||(e="world"),t||(t="world"),e===t}var hn="wandelbots.io",Ei={dev:{domain:`https://auth.portal.dev.${hn}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${hn}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${hn}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},u_=e=>{if(e.includes(`dev.${hn}`))return Ei.dev;if(e.includes(`stg.${hn}`))return Ei.stg;if(e.includes(hn))return Ei.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},d_=e=>Ee(void 0,null,function*(){var t;if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const r=u_(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}=yield Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BLRAk7Yh.cjs")),a=new n({domain:r.domain,clientId:(t=r.clientId)!=null?t:"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:s}=yield a.handleRedirectCallback();window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)||window.location.pathname)}else yield a.loginWithRedirect();return yield a.getTokenSilently()});function Jm(e,t){return function(){return e.apply(t,arguments)}}const{toString:h_}=Object.prototype,{getPrototypeOf:Sc}=Object,$s=(e=>t=>{const r=h_.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>$s(t)===e),Us=e=>t=>typeof t===e,{isArray:Mn}=Array,Oa=Us("undefined");function p_(e){return e!==null&&!Oa(e)&&e.constructor!==null&&!Oa(e.constructor)&&ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ym=Rt("ArrayBuffer");function m_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ym(e.buffer),t}const f_=Us("string"),ht=Us("function"),Km=Us("number"),Ds=e=>e!==null&&typeof e=="object",g_=e=>e===!0||e===!1,Oo=e=>{if($s(e)!=="object")return!1;const t=Sc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y_=Rt("Date"),b_=Rt("File"),x_=Rt("Blob"),v_=Rt("FileList"),S_=e=>Ds(e)&&ht(e.pipe),O_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ht(e.append)&&((t=$s(e))==="formdata"||t==="object"&&ht(e.toString)&&e.toString()==="[object FormData]"))},w_=Rt("URLSearchParams"),[C_,P_,T_,R_]=["ReadableStream","Request","Response","Headers"].map(Rt),A_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ja(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Mn(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function Qm(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xm=e=>!Oa(e)&&e!==wr;function hl(){const{caseless:e}=Xm(this)&&this||{},t={},r=(n,a)=>{const o=e&&Qm(t,a)||a;Oo(t[o])&&Oo(n)?t[o]=hl(t[o],n):Oo(n)?t[o]=hl({},n):Mn(n)?t[o]=n.slice():t[o]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&ja(arguments[n],r);return t}const __=(e,t,r,{allOwnKeys:n}={})=>(ja(t,(a,o)=>{r&&ht(a)?e[o]=Jm(a,r):e[o]=a},{allOwnKeys:n}),e),E_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),V_=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},I_=(e,t,r,n)=>{let a,o,s;const i={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!n||n(s,e,t))&&!i[s]&&(t[s]=e[s],i[s]=!0);e=r!==!1&&Sc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},M_=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},j_=e=>{if(!e)return null;if(Mn(e))return e;let t=e.length;if(!Km(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},k_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sc(Uint8Array)),$_=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},U_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},D_=Rt("HTMLFormElement"),L_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),zd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B_=Rt("RegExp"),Zm=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ja(r,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(n[o]=s||a)}),Object.defineProperties(e,n)},N_=e=>{Zm(e,(t,r)=>{if(ht(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ht(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},F_=(e,t)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return Mn(e)?n(e):n(String(e).split(t)),r},z_=()=>{},G_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function H_(e){return!!(e&&ht(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const q_=e=>{const t=new Array(10),r=(n,a)=>{if(Ds(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const o=Mn(n)?[]:{};return ja(n,(s,i)=>{const l=r(s,a+1);!Oa(l)&&(o[i]=l)}),t[a]=void 0,o}}return n};return r(e,0)},W_=Rt("AsyncFunction"),J_=e=>e&&(Ds(e)||ht(e))&&ht(e.then)&&ht(e.catch),ef=((e,t)=>e?setImmediate:t?((r,n)=>(wr.addEventListener("message",({source:a,data:o})=>{a===wr&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),wr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ht(wr.postMessage)),Y_=typeof queueMicrotask<"u"?queueMicrotask.bind(wr):typeof process<"u"&&process.nextTick||ef,H={isArray:Mn,isArrayBuffer:Ym,isBuffer:p_,isFormData:O_,isArrayBufferView:m_,isString:f_,isNumber:Km,isBoolean:g_,isObject:Ds,isPlainObject:Oo,isReadableStream:C_,isRequest:P_,isResponse:T_,isHeaders:R_,isUndefined:Oa,isDate:y_,isFile:b_,isBlob:x_,isRegExp:B_,isFunction:ht,isStream:S_,isURLSearchParams:w_,isTypedArray:k_,isFileList:v_,forEach:ja,merge:hl,extend:__,trim:A_,stripBOM:E_,inherits:V_,toFlatObject:I_,kindOf:$s,kindOfTest:Rt,endsWith:M_,toArray:j_,forEachEntry:$_,matchAll:U_,isHTMLForm:D_,hasOwnProperty:zd,hasOwnProp:zd,reduceDescriptors:Zm,freezeMethods:N_,toObjectSet:F_,toCamelCase:L_,noop:z_,toFiniteNumber:G_,findKey:Qm,global:wr,isContextDefined:Xm,isSpecCompliantForm:H_,toJSONObject:q_,isAsyncFn:W_,isThenable:J_,setImmediate:ef,asap:Y_};function he(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const tf=he.prototype,rf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rf[e]={value:e}});Object.defineProperties(he,rf);Object.defineProperty(tf,"isAxiosError",{value:!0});he.from=(e,t,r,n,a,o)=>{const s=Object.create(tf);return H.toFlatObject(e,s,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),he.call(s,e.message,t,r,n,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const K_=null;function pl(e){return H.isPlainObject(e)||H.isArray(e)}function nf(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Gd(e,t,r){return e?e.concat(t).map(function(a,o){return a=nf(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function Q_(e){return H.isArray(e)&&!e.some(pl)}const X_=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function Ls(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!H.isUndefined(y[m])});const n=r.metaTokens,a=r.visitor||u,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(H.isDate(f))return f.toISOString();if(!l&&H.isBlob(f))throw new he("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(f)||H.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,y){let S=f;if(f&&!y&&typeof f=="object"){if(H.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(H.isArray(f)&&Q_(f)||(H.isFileList(f)||H.endsWith(m,"[]"))&&(S=H.toArray(f)))return m=nf(m),S.forEach(function(O,w){!(H.isUndefined(O)||O===null)&&t.append(s===!0?Gd([m],w,o):s===null?m:m+"[]",c(O))}),!1}return pl(f)?!0:(t.append(Gd(y,m,o),c(f)),!1)}const d=[],h=Object.assign(X_,{defaultVisitor:u,convertValue:c,isVisitable:pl});function p(f,m){if(!H.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(f),H.forEach(f,function(S,E){(!(H.isUndefined(S)||S===null)&&a.call(t,S,H.isString(E)?E.trim():E,m,h))===!0&&p(S,m?m.concat(E):[E])}),d.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Hd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Oc(e,t){this._pairs=[],e&&Ls(e,this,t)}const af=Oc.prototype;af.append=function(t,r){this._pairs.push([t,r])};af.toString=function(t){const r=t?function(n){return t.call(this,n,Hd)}:Hd;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Z_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function of(e,t,r){if(!t)return e;const n=r&&r.encode||Z_;H.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let o;if(a?o=a(t,r):o=H.isURLSearchParams(t)?t.toString():new Oc(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qd{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(n){n!==null&&t(n)})}}const sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eE=typeof URLSearchParams<"u"?URLSearchParams:Oc,tE=typeof FormData<"u"?FormData:null,rE=typeof Blob<"u"?Blob:null,nE={isBrowser:!0,classes:{URLSearchParams:eE,FormData:tE,Blob:rE},protocols:["http","https","file","blob","url","data"]},wc=typeof window<"u"&&typeof document<"u",ml=typeof navigator=="object"&&navigator||void 0,aE=wc&&(!ml||["ReactNative","NativeScript","NS"].indexOf(ml.product)<0),oE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sE=wc&&window.location.href||"http://localhost",iE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wc,hasStandardBrowserEnv:aE,hasStandardBrowserWebWorkerEnv:oE,navigator:ml,origin:sE},Symbol.toStringTag,{value:"Module"})),Xe={...iE,...nE};function lE(e,t){return Ls(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,o){return Xe.isNode&&H.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function cE(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uE(e){const t={},r=Object.keys(e);let n;const a=r.length;let o;for(n=0;n<a;n++)o=r[n],t[o]=e[o];return t}function lf(e){function t(r,n,a,o){let s=r[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=r.length;return s=!s&&H.isArray(a)?a.length:s,l?(H.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!i):((!a[s]||!H.isObject(a[s]))&&(a[s]=[]),t(r,n,a[s],o)&&H.isArray(a[s])&&(a[s]=uE(a[s])),!i)}if(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,(n,a)=>{t(cE(n),a,r,0)}),r}return null}function dE(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ka={transitional:sf,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(t);if(o&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return a?JSON.stringify(lf(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return lE(t,this.formSerializer).toString();if((i=H.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ls(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),dE(t)):t}],transformResponse:[function(t){const r=this.transitional||ka.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?he.from(i,he.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{ka.headers[e]={}});const hE=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pE=e=>{const t={};let r,n,a;return e&&e.split(`
146
+ `).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!r||t[r]&&hE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Wd=Symbol("internals");function Wn(e){return e&&String(e).trim().toLowerCase()}function wo(e){return e===!1||e==null?e:H.isArray(e)?e.map(wo):String(e)}function mE(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const fE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vi(e,t,r,n,a){if(H.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!H.isString(t)){if(H.isString(n))return t.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(t)}}function gE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yE(e,t){const r=H.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,s){return this[n].call(this,t,a,o,s)},configurable:!0})})}let it=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function o(i,l,c){const u=Wn(l);if(!u)throw new Error("header name must be a non-empty string");const d=H.findKey(a,u);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=wo(i))}const s=(i,l)=>H.forEach(i,(c,u)=>o(c,u,l));if(H.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(H.isString(t)&&(t=t.trim())&&!fE(t))s(pE(t),r);else if(H.isHeaders(t))for(const[i,l]of t.entries())o(l,i,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=Wn(t),t){const n=H.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return mE(a);if(H.isFunction(r))return r.call(this,a,n);if(H.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wn(t),t){const n=H.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Vi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function o(s){if(s=Wn(s),s){const i=H.findKey(n,s);i&&(!r||Vi(n,n[i],i,r))&&(delete n[i],a=!0)}}return H.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!t||Vi(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,n={};return H.forEach(this,(a,o)=>{const s=H.findKey(n,o);if(s){r[s]=wo(a),delete r[o];return}const i=t?gE(o):String(o).trim();i!==o&&delete r[o],r[i]=wo(a),n[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&H.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
147
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Wd]=this[Wd]={accessors:{}}).accessors,a=this.prototype;function o(s){const i=Wn(s);n[i]||(yE(a,s),n[i]=!0)}return H.isArray(t)?t.forEach(o):o(t),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(it.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});H.freezeMethods(it);function Ii(e,t){const r=this||ka,n=t||r,a=it.from(n.headers);let o=n.data;return H.forEach(e,function(i){o=i.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function cf(e){return!!(e&&e.__CANCEL__)}function jn(e,t,r){he.call(this,e??"canceled",he.ERR_CANCELED,t,r),this.name="CanceledError"}H.inherits(jn,he,{__CANCEL__:!0});function uf(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function bE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xE(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[a]=l,n[a]=c;let d=o,h=0;for(;d!==a;)h+=r[d++],d=d%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(h*1e3/p):void 0}}function vE(e,t){let r=0,n=1e3/t,a,o;const s=(c,u=Date.now())=>{r=u,a=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(a=c,o||(o=setTimeout(()=>{o=null,s(a)},n-d)))},()=>a&&s(a)]}const Ko=(e,t,r=3)=>{let n=0;const a=xE(50,250);return vE(o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,c=a(l),u=s<=i;n=s;const d={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},r)},Jd=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Yd=e=>(...t)=>H.asap(()=>e(...t)),SE=Xe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,OE=Xe.hasStandardBrowserEnv?{write(e,t,r,n,a,o){const s=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),H.isString(n)&&s.push("path="+n),H.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CE(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function df(e,t,r){let n=!wE(t);return e&&n||r==!1?CE(e,t):t}const Kd=e=>e instanceof it?{...e}:e;function Vr(e,t){t=t||{};const r={};function n(c,u,d,h){return H.isPlainObject(c)&&H.isPlainObject(u)?H.merge.call({caseless:h},c,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function a(c,u,d,h){if(H.isUndefined(u)){if(!H.isUndefined(c))return n(void 0,c,d,h)}else return n(c,u,d,h)}function o(c,u){if(!H.isUndefined(u))return n(void 0,u)}function s(c,u){if(H.isUndefined(u)){if(!H.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function i(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,u,d)=>a(Kd(c),Kd(u),d,!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||a,h=d(e[u],t[u],u);H.isUndefined(h)&&d!==i||(r[u]=h)}),r}const hf=e=>{const t=Vr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:i}=t;t.headers=s=it.from(s),t.url=of(df(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(H.isFormData(r)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Xe.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(t)),n||n!==!1&&SE(t.url))){const c=a&&o&&OE.read(o);c&&s.set(a,c)}return t},PE=typeof XMLHttpRequest<"u",TE=PE&&function(e){return new Promise(function(r,n){const a=hf(e);let o=a.data;const s=it.from(a.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=a,u,d,h,p,f;function m(){p&&p(),f&&f(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function S(){if(!y)return;const O=it.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!i||i==="text"||i==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:O,config:e,request:y};uf(function(T){r(T),m()},function(T){n(T),m()},P),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new he("Request aborted",he.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||sf;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new he(w,P.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,y)),y=null},o===void 0&&s.setContentType(null),"setRequestHeader"in y&&H.forEach(s.toJSON(),function(w,P){y.setRequestHeader(P,w)}),H.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),i&&i!=="json"&&(y.responseType=a.responseType),c&&([h,f]=Ko(c,!0),y.addEventListener("progress",h)),l&&y.upload&&([d,p]=Ko(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(u=O=>{y&&(n(!O||O.type?new jn(null,e,y):O),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const E=bE(a.url);if(E&&Xe.protocols.indexOf(E)===-1){n(new he("Unsupported protocol "+E+":",he.ERR_BAD_REQUEST,e));return}y.send(o||null)})},RE=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const o=function(c){if(!a){a=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof he?u:new jn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>H.asap(i),l}},AE=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},_E=async function*(e,t){for await(const r of EE(e))yield*AE(r,t)},EE=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Qd=(e,t,r,n)=>{const a=_E(e,t);let o=0,s,i=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){i(),l.close();return}let d=u.byteLength;if(r){let h=o+=d;r(h)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),a.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pf=Bs&&typeof ReadableStream=="function",VE=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IE=pf&&mf(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xd=64*1024,fl=pf&&mf(()=>H.isReadableStream(new Response("").body)),Qo={stream:fl&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qo[t]&&(Qo[t]=H.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const ME=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e=e+""),H.isString(e))return(await VE(e)).byteLength},jE=async(e,t)=>{const r=H.toFiniteNumber(e.getContentLength());return r??ME(t)},kE=Bs&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=hf(e);c=c?(c+"").toLowerCase():"text";let p=RE([a,o&&o.toAbortSignal()],s),f;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&IE&&r!=="get"&&r!=="head"&&(y=await jE(u,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),C;if(H.isFormData(n)&&(C=P.headers.get("content-type"))&&u.setContentType(C),P.body){const[T,I]=Jd(y,Ko(Yd(l)));n=Qd(P.body,Xd,T,I)}}H.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let E=await fetch(f);const O=fl&&(c==="stream"||c==="response");if(fl&&(i||O&&m)){const P={};["status","statusText","headers"].forEach(N=>{P[N]=E[N]});const C=H.toFiniteNumber(E.headers.get("content-length")),[T,I]=i&&Jd(C,Ko(Yd(i),!0))||[];E=new Response(Qd(E.body,Xd,T,()=>{I&&I(),m&&m()}),P)}c=c||"text";let w=await Qo[H.findKey(Qo,c)||"text"](E,e);return!O&&m&&m(),await new Promise((P,C)=>{uf(P,C,{data:w,headers:it.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:f})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,e,f),{cause:S.cause||S}):he.from(S,S&&S.code,e,f)}}),gl={http:K_,xhr:TE,fetch:kE};H.forEach(gl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zd=e=>`- ${e}`,$E=e=>H.isFunction(e)||e===null||e===!1,ff={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!$E(r)&&(n=gl[(s=String(r)).toLowerCase()],n===void 0))throw new he(`Unknown adapter '${s}'`);if(n)break;a[s||"#"+o]=n}if(!n){const o=Object.entries(a).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
148
148
  `+o.map(Zd).join(`
149
- `):" "+Zd(o[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:gl};function Mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jn(null,e)}function eh(e){return Mi(e),e.headers=it.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ff.getAdapter(e.adapter||ka.adapter)(e).then(function(n){return Mi(e),n.data=Ii.call(e,e.transformResponse,n),n.headers=it.from(n.headers),n},function(n){return cf(n)||(Mi(e),n&&n.response&&(n.response.data=Ii.call(e,e.transformResponse,n.response),n.response.headers=it.from(n.response.headers))),Promise.reject(n)})}const gf="1.8.3",Ns={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ns[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const th={};Ns.transitional=function(t,r,n){function a(o,s){return"[Axios v"+gf+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,i)=>{if(t===!1)throw new he(a(s," has been removed"+(r?" in "+r:"")),he.ERR_DEPRECATED);return r&&!th[s]&&(th[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,i):!0}};Ns.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function U2(e,t,r){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],s=t[o];if(s){const i=e[o],l=i===void 0||s(i,o,e);if(l!==!0)throw new he("option "+o+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new he("Unknown option "+o,he.ERR_BAD_OPTION)}}const Co={assertOptions:U2,validators:Ns},Et=Co.validators;let Tr=class{constructor(t){this.defaults=t,this.interceptors={request:new qd,response:new qd}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
150
- `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vr(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Co.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),a!=null&&(H.isFunction(a)?r.paramsSerializer={serialize:a}:Co.assertOptions(a,{encode:Et.function,serialize:Et.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Co.assertOptions(r,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),r.headers=it.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,h;if(!l){const f=[eh.bind(this),void 0];for(f.unshift.apply(f,i),f.push.apply(f,c),h=f.length,u=Promise.resolve(r);d<h;)u=u.then(f[d++],f[d++]);return u}h=i.length;let p=r;for(d=0;d<h;){const f=i[d++],m=i[d++];try{p=f(p)}catch(y){m.call(this,y);break}}try{u=eh.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Vr(this.defaults,t);const r=df(t.baseURL,t.url,t.allowAbsoluteUrls);return of(r,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){Tr.prototype[t]=function(r,n){return this.request(Vr(n||{},{method:t,url:r,data:(n||{}).data}))}});H.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,i){return this.request(Vr(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Tr.prototype[t]=r(),Tr.prototype[t+"Form"]=r(!0)});let D2=class yf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(i=>{n.subscribe(i),o=i}).then(a);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,i){n.reason||(n.reason=new jn(o,s,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new yf(function(a){t=a}),cancel:t}}};function L2(e){return function(r){return e.apply(null,r)}}function B2(e){return H.isObject(e)&&e.isAxiosError===!0}const yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yl).forEach(([e,t])=>{yl[t]=e});function bf(e){const t=new Tr(e),r=Jm(Tr.prototype.request,t);return H.extend(r,Tr.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return bf(Vr(e,a))},r}const V=bf(ka);V.Axios=Tr;V.CanceledError=jn;V.CancelToken=D2;V.isCancel=cf;V.VERSION=gf;V.toFormData=Ls;V.AxiosError=he;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=L2;V.isAxiosError=B2;V.mergeConfig=Vr;V.AxiosHeaders=it;V.formToJSON=e=>lf(H.isHTMLForm(e)?new FormData(e):e);V.getAdapter=ff.getAdapter;V.HttpStatusCode=yl;V.default=V;const{Axios:pj,AxiosError:bl,CanceledError:mj,isCancel:fj,CancelToken:gj,VERSION:yj,all:bj,Cancel:xj,isAxiosError:N2,spread:vj,toFormData:Sj,AxiosHeaders:Oj,HttpStatusCode:wj,formToJSON:Cj,getAdapter:Pj,mergeConfig:Tj}=V,M="/api/v1".replace(/\/+$/,"");class Ve{constructor(t,r=M,n=V){$n(this,"basePath");$n(this,"axios");$n(this,"configuration");this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class F2 extends Error{constructor(r,n){super(n);$n(this,"field");this.field=r,this.name="RequiredError"}}const j={},k="https://example.com",v=function(e,t,r){if(r==null)throw new F2(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},$=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},U=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function xl(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>xl(e,n,r)):Object.keys(t).forEach(n=>xl(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const D=function(e,...t){const r=new URLSearchParams(e.search);xl(r,t),e.search=r.toString()},de=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},L=function(e){return e.pathname+e.search+e.hash},B=function(e,t,r,n){return(a=t,o=r)=>{const s={...e.options,url:(a.defaults.baseURL?"":(n==null?void 0:n.basePath)??o)+e.url};return a.request(s)}},Mt={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},z2=function(e){return{addApp:async(t,r,n,a={})=>{v("addApp","cell",t),v("addApp","app",r);const o="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},clearApps:async(t,r,n={})=>{v("clearApps","cell",t);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteApp:async(t,r,n,a={})=>{v("deleteApp","cell",t),v("deleteApp","app",r);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getApp:async(t,r,n={})=>{v("getApp","cell",t),v("getApp","app",r);const a="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listApps:async(t,r={})=>{v("listApps","cell",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateApp:async(t,r,n,a,o={})=>{v("updateApp","cell",t),v("updateApp","app",r),v("updateApp","app2",n);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.completionTimeout=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}}}},Xr=function(e){const t=z2(e);return{async addApp(r,n,a,o){var c,u;const s=await t.addApp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ApplicationApi.addApp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async clearApps(r,n,a){var l,c;const o=await t.clearApps(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ApplicationApi.clearApps"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteApp(r,n,a,o){var c,u;const s=await t.deleteApp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ApplicationApi.deleteApp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getApp(r,n,a){var l,c;const o=await t.getApp(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ApplicationApi.getApp"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listApps(r,n){var i,l;const a=await t.listApps(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ApplicationApi.listApps"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateApp(r,n,a,o,s){var u,d;const i=await t.updateApp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["ApplicationApi.updateApp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class rh extends Ve{addApp(t,r,n,a){return Xr(this.configuration).addApp(t,r,n,a).then(o=>o(this.axios,this.basePath))}clearApps(t,r,n){return Xr(this.configuration).clearApps(t,r,n).then(a=>a(this.axios,this.basePath))}deleteApp(t,r,n,a){return Xr(this.configuration).deleteApp(t,r,n,a).then(o=>o(this.axios,this.basePath))}getApp(t,r,n){return Xr(this.configuration).getApp(t,r,n).then(a=>a(this.axios,this.basePath))}listApps(t,r){return Xr(this.configuration).listApps(t,r).then(n=>n(this.axios,this.basePath))}updateApp(t,r,n,a,o){return Xr(this.configuration).updateApp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const G2=function(e){return{deleteCell:async(t,r,n={})=>{v("deleteCell","cell",t);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deployCell:async(t,r,n={})=>{v("deployCell","cell",t);const a="/cells",o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(t,i,e),{url:L(o),options:i}},getCell:async(t,r={})=>{v("getCell","cell",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},getCellStatus:async(t,r={})=>{v("getCellStatus","cell",t);const n="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listCells:async(t={})=>{const r="/cells",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},updateCell:async(t,r,n,a={})=>{v("updateCell","cell",t),v("updateCell","cell2",r);const o="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}}}},Zr=function(e){const t=G2(e);return{async deleteCell(r,n,a){var l,c;const o=await t.deleteCell(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CellApi.deleteCell"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deployCell(r,n,a){var l,c;const o=await t.deployCell(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CellApi.deployCell"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getCell(r,n){var i,l;const a=await t.getCell(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["CellApi.getCell"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async getCellStatus(r,n){var i,l;const a=await t.getCellStatus(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["CellApi.getCellStatus"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listCells(r){var s,i;const n=await t.listCells(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["CellApi.listCells"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async updateCell(r,n,a,o){var c,u;const s=await t.updateCell(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CellApi.updateCell"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class H2 extends Ve{deleteCell(t,r,n){return Zr(this.configuration).deleteCell(t,r,n).then(a=>a(this.axios,this.basePath))}deployCell(t,r,n){return Zr(this.configuration).deployCell(t,r,n).then(a=>a(this.axios,this.basePath))}getCell(t,r){return Zr(this.configuration).getCell(t,r).then(n=>n(this.axios,this.basePath))}getCellStatus(t,r){return Zr(this.configuration).getCellStatus(t,r).then(n=>n(this.axios,this.basePath))}listCells(t){return Zr(this.configuration).listCells(t).then(r=>r(this.axios,this.basePath))}updateCell(t,r,n,a){return Zr(this.configuration).updateCell(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const q2=function(e){return{addRobotController:async(t,r,n,a={})=>{v("addRobotController","cell",t),v("addRobotController","robotController",r);const o="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},clearRobotControllers:async(t,r,n={})=>{v("clearRobotControllers","cell",t);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteRobotController:async(t,r,n,a={})=>{v("deleteRobotController","cell",t),v("deleteRobotController","controller",r);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getCurrentRobotControllerState:async(t,r,n={})=>{v("getCurrentRobotControllerState","cell",t),v("getCurrentRobotControllerState","controller",r);const a="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMode:async(t,r,n={})=>{v("getMode","cell",t),v("getMode","controller",r);const a="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getRobotController:async(t,r,n={})=>{v("getRobotController","cell",t),v("getRobotController","controller",r);const a="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getSupportedModes:async(t,r,n={})=>{v("getSupportedModes","cell",t),v("getSupportedModes","controller",r);const a="/cells/{cell}/controllers/{controller}/controller-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getVirtualRobotConfiguration:async(t,r,n={})=>{v("getVirtualRobotConfiguration","cell",t),v("getVirtualRobotConfiguration","controller",r);const a="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listControllers:async(t,r={})=>{v("listControllers","cell",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},setDefaultMode:async(t,r,n,a={})=>{v("setDefaultMode","cell",t),v("setDefaultMode","controller",r),v("setDefaultMode","mode",n);const o="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.mode=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamFreeDrive:async(t,r,n,a={})=>{v("streamFreeDrive","cell",t),v("streamFreeDrive","controller",r);const o="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.response_rate=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamModeChange:async(t,r,n={})=>{v("streamModeChange","cell",t),v("streamModeChange","controller",r);const a="/cells/{cell}/controllers/{controller}/mode-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},streamRobotControllerState:async(t,r,n,a={})=>{v("streamRobotControllerState","cell",t),v("streamRobotControllerState","controller",r);const o="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.response_rate=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},updateRobotController:async(t,r,n,a,o={})=>{v("updateRobotController","cell",t),v("updateRobotController","controller",r),v("updateRobotController","robotController",n);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.completionTimeout=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}}}},nt=function(e){const t=q2(e);return{async addRobotController(r,n,a,o){var c,u;const s=await t.addRobotController(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.addRobotController"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async clearRobotControllers(r,n,a){var l,c;const o=await t.clearRobotControllers(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.clearRobotControllers"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteRobotController(r,n,a,o){var c,u;const s=await t.deleteRobotController(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.deleteRobotController"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getCurrentRobotControllerState(r,n,a){var l,c;const o=await t.getCurrentRobotControllerState(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getCurrentRobotControllerState"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMode(r,n,a){var l,c;const o=await t.getMode(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getMode"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getRobotController(r,n,a){var l,c;const o=await t.getRobotController(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getRobotController"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getSupportedModes(r,n,a){var l,c;const o=await t.getSupportedModes(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getSupportedModes"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getVirtualRobotConfiguration(r,n,a){var l,c;const o=await t.getVirtualRobotConfiguration(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getVirtualRobotConfiguration"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listControllers(r,n){var i,l;const a=await t.listControllers(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ControllerApi.listControllers"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async setDefaultMode(r,n,a,o){var c,u;const s=await t.setDefaultMode(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.setDefaultMode"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamFreeDrive(r,n,a,o){var c,u;const s=await t.streamFreeDrive(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.streamFreeDrive"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamModeChange(r,n,a){var l,c;const o=await t.streamModeChange(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.streamModeChange"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamRobotControllerState(r,n,a,o){var c,u;const s=await t.streamRobotControllerState(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.streamRobotControllerState"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async updateRobotController(r,n,a,o,s){var u,d;const i=await t.updateRobotController(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["ControllerApi.updateRobotController"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class W2 extends Ve{addRobotController(t,r,n,a){return nt(this.configuration).addRobotController(t,r,n,a).then(o=>o(this.axios,this.basePath))}clearRobotControllers(t,r,n){return nt(this.configuration).clearRobotControllers(t,r,n).then(a=>a(this.axios,this.basePath))}deleteRobotController(t,r,n,a){return nt(this.configuration).deleteRobotController(t,r,n,a).then(o=>o(this.axios,this.basePath))}getCurrentRobotControllerState(t,r,n){return nt(this.configuration).getCurrentRobotControllerState(t,r,n).then(a=>a(this.axios,this.basePath))}getMode(t,r,n){return nt(this.configuration).getMode(t,r,n).then(a=>a(this.axios,this.basePath))}getRobotController(t,r,n){return nt(this.configuration).getRobotController(t,r,n).then(a=>a(this.axios,this.basePath))}getSupportedModes(t,r,n){return nt(this.configuration).getSupportedModes(t,r,n).then(a=>a(this.axios,this.basePath))}getVirtualRobotConfiguration(t,r,n){return nt(this.configuration).getVirtualRobotConfiguration(t,r,n).then(a=>a(this.axios,this.basePath))}listControllers(t,r){return nt(this.configuration).listControllers(t,r).then(n=>n(this.axios,this.basePath))}setDefaultMode(t,r,n,a){return nt(this.configuration).setDefaultMode(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamFreeDrive(t,r,n,a){return nt(this.configuration).streamFreeDrive(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamModeChange(t,r,n){return nt(this.configuration).streamModeChange(t,r,n).then(a=>a(this.axios,this.basePath))}streamRobotControllerState(t,r,n,a){return nt(this.configuration).streamRobotControllerState(t,r,n,a).then(o=>o(this.axios,this.basePath))}updateRobotController(t,r,n,a,o){return nt(this.configuration).updateRobotController(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const J2=function(e){return{listIODescriptions:async(t,r,n,a={})=>{v("listIODescriptions","cell",t),v("listIODescriptions","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listIOValues:async(t,r,n,a={})=>{v("listIOValues","cell",t),v("listIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setOutputValues:async(t,r,n,a={})=>{v("setOutputValues","cell",t),v("setOutputValues","controller",r),v("setOutputValues","iOValue",n);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},streamIOValues:async(t,r,n,a={})=>{v("streamIOValues","cell",t),v("streamIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},waitForIOEvent:async(t,r,n,a,o,s,i,l={})=>{v("waitForIOEvent","cell",t),v("waitForIOEvent","controller",r),v("waitForIOEvent","io",n),v("waitForIOEvent","comparisonType",a);const c="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),u=new URL(c,k);let d;e&&(d=e.baseOptions);const h={method:"GET",...d,...l},p={},f={};$(h,e),await U(p,e),n!==void 0&&(f.io=n),a!==void 0&&(f.comparison_type=a),o!==void 0&&(f.boolean_value=o),s!==void 0&&(f.integer_value=s),i!==void 0&&(f.floating_value=i),D(u,f);let m=d&&d.headers?d.headers:{};return h.headers={...p,...m,...l.headers},{url:L(u),options:h}}}},Jn=function(e){const t=J2(e);return{async listIODescriptions(r,n,a,o){var c,u;const s=await t.listIODescriptions(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.listIODescriptions"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listIOValues(r,n,a,o){var c,u;const s=await t.listIOValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.listIOValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setOutputValues(r,n,a,o){var c,u;const s=await t.setOutputValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.setOutputValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamIOValues(r,n,a,o){var c,u;const s=await t.streamIOValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.streamIOValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async waitForIOEvent(r,n,a,o,s,i,l,c){var p,f;const u=await t.waitForIOEvent(r,n,a,o,s,i,l,c),d=(e==null?void 0:e.serverIndex)??0,h=(f=(p=j["ControllerIOsApi.waitForIOEvent"])==null?void 0:p[d])==null?void 0:f.url;return(m,y)=>B(u,V,M,e)(m,h||y)}}};class Y2 extends Ve{listIODescriptions(t,r,n,a){return Jn(this.configuration).listIODescriptions(t,r,n,a).then(o=>o(this.axios,this.basePath))}listIOValues(t,r,n,a){return Jn(this.configuration).listIOValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}setOutputValues(t,r,n,a){return Jn(this.configuration).setOutputValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamIOValues(t,r,n,a){return Jn(this.configuration).streamIOValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}waitForIOEvent(t,r,n,a,o,s,i,l){return Jn(this.configuration).waitForIOEvent(t,r,n,a,o,s,i,l).then(c=>c(this.axios,this.basePath))}}const K2=function(e){return{addCoordinateSystem:async(t,r,n={})=>{v("addCoordinateSystem","cell",t),v("addCoordinateSystem","addRequest",r);const a="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteCoordinateSystem:async(t,r,n={})=>{v("deleteCoordinateSystem","cell",t),v("deleteCoordinateSystem","coordinateSystem",r);const a="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getCoordinateSystem:async(t,r,n,a={})=>{v("getCoordinateSystem","cell",t),v("getCoordinateSystem","coordinateSystem",r);const o="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listCoordinateSystems:async(t,r,n={})=>{v("listCoordinateSystems","cell",t);const a="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.rotation_type=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},transformInCoordinateSystem:async(t,r,n,a={})=>{v("transformInCoordinateSystem","cell",t),v("transformInCoordinateSystem","coordinateSystem",r),v("transformInCoordinateSystem","pose",n);const o="/cells/{cell}/coordinate-systems/{coordinate-system}/transform".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Yn=function(e){const t=K2(e);return{async addCoordinateSystem(r,n,a){var l,c;const o=await t.addCoordinateSystem(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.addCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteCoordinateSystem(r,n,a){var l,c;const o=await t.deleteCoordinateSystem(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.deleteCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getCoordinateSystem(r,n,a,o){var c,u;const s=await t.getCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CoordinateSystemsApi.getCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listCoordinateSystems(r,n,a){var l,c;const o=await t.listCoordinateSystems(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.listCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async transformInCoordinateSystem(r,n,a,o){var c,u;const s=await t.transformInCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CoordinateSystemsApi.transformInCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class Q2 extends Ve{addCoordinateSystem(t,r,n){return Yn(this.configuration).addCoordinateSystem(t,r,n).then(a=>a(this.axios,this.basePath))}deleteCoordinateSystem(t,r,n){return Yn(this.configuration).deleteCoordinateSystem(t,r,n).then(a=>a(this.axios,this.basePath))}getCoordinateSystem(t,r,n,a){return Yn(this.configuration).getCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}listCoordinateSystems(t,r,n){return Yn(this.configuration).listCoordinateSystems(t,r,n).then(a=>a(this.axios,this.basePath))}transformInCoordinateSystem(t,r,n,a){return Yn(this.configuration).transformInCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const X2=function(e){return{clearDevices:async(t,r={})=>{v("clearDevices","cell",t);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},createDevice:async(t,r,n={})=>{v("createDevice","cell",t),v("createDevice","createDeviceRequestInner",r);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteDevice:async(t,r,n={})=>{v("deleteDevice","cell",t),v("deleteDevice","identifier",r);const a="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getDevice:async(t,r,n={})=>{v("getDevice","cell",t),v("getDevice","identifier",r);const a="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listDevices:async(t,r={})=>{v("listDevices","cell",t);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}}}},Kn=function(e){const t=X2(e);return{async clearDevices(r,n){var i,l;const a=await t.clearDevices(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["DeviceConfigurationApi.clearDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async createDevice(r,n,a){var l,c;const o=await t.createDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.createDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteDevice(r,n,a){var l,c;const o=await t.deleteDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.deleteDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getDevice(r,n,a){var l,c;const o=await t.getDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.getDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listDevices(r,n){var i,l;const a=await t.listDevices(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["DeviceConfigurationApi.listDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class Z2 extends Ve{clearDevices(t,r){return Kn(this.configuration).clearDevices(t,r).then(n=>n(this.axios,this.basePath))}createDevice(t,r,n){return Kn(this.configuration).createDevice(t,r,n).then(a=>a(this.axios,this.basePath))}deleteDevice(t,r,n){return Kn(this.configuration).deleteDevice(t,r,n).then(a=>a(this.axios,this.basePath))}getDevice(t,r,n){return Kn(this.configuration).getDevice(t,r,n).then(a=>a(this.axios,this.basePath))}listDevices(t,r){return Kn(this.configuration).listDevices(t,r).then(n=>n(this.axios,this.basePath))}}const eE=function(e){return{createProgram:async(t,r,n,a={})=>{v("createProgram","cell",t),v("createProgram","body",r);const o="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.name=n),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},deleteProgram:async(t,r,n={})=>{v("deleteProgram","cell",t),v("deleteProgram","program",r);const a="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteProgramList:async(t,r,n={})=>{v("deleteProgramList","cell",t),v("deleteProgramList","programIds",r);const a="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r&&(c.program_ids=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getProgram:async(t,r,n={})=>{v("getProgram","cell",t),v("getProgram","program",r);const a="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateProgram:async(t,r,n,a={})=>{v("updateProgram","cell",t),v("updateProgram","program",r),v("updateProgram","body",n);const o="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Qn=function(e){const t=eE(e);return{async createProgram(r,n,a,o){var c,u;const s=await t.createProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramApi.createProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async deleteProgram(r,n,a){var l,c;const o=await t.deleteProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.deleteProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteProgramList(r,n,a){var l,c;const o=await t.deleteProgramList(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.deleteProgramList"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgram(r,n,a){var l,c;const o=await t.getProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.getProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateProgram(r,n,a,o){var c,u;const s=await t.updateProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramApi.updateProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class tE extends Ve{createProgram(t,r,n,a){return Qn(this.configuration).createProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}deleteProgram(t,r,n){return Qn(this.configuration).deleteProgram(t,r,n).then(a=>a(this.axios,this.basePath))}deleteProgramList(t,r,n){return Qn(this.configuration).deleteProgramList(t,r,n).then(a=>a(this.axios,this.basePath))}getProgram(t,r,n){return Qn(this.configuration).getProgram(t,r,n).then(a=>a(this.axios,this.basePath))}updateProgram(t,r,n,a){return Qn(this.configuration).updateProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const rE=function(e){return{getProgramMetadata:async(t,r,n={})=>{v("getProgramMetadata","cell",t),v("getProgramMetadata","program",r);const a="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramMetadata:async(t,r,n={})=>{v("listProgramMetadata","cell",t);const a="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.show_hidden=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateProgramMetadata:async(t,r,n,a={})=>{v("updateProgramMetadata","cell",t),v("updateProgramMetadata","program",r),v("updateProgramMetadata","updateProgramMetadataRequest",n);const o="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},uploadProgramMetadataImage:async(t,r,n,a={})=>{v("uploadProgramMetadataImage","cell",t),v("uploadProgramMetadataImage","program",r),v("uploadProgramMetadataImage","file",n);const o="/cells/{cell}/store/programs/{program}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(e&&e.formDataCtor||FormData);$(l,e),await U(c,e),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",D(s,u);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...a.headers},l.data=d,{url:L(s),options:l}}}},ao=function(e){const t=rE(e);return{async getProgramMetadata(r,n,a){var l,c;const o=await t.getProgramMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramMetadataApi.getProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramMetadata(r,n,a){var l,c;const o=await t.listProgramMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramMetadataApi.listProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateProgramMetadata(r,n,a,o){var c,u;const s=await t.updateProgramMetadata(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramMetadataApi.updateProgramMetadata"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async uploadProgramMetadataImage(r,n,a,o){var c,u;const s=await t.uploadProgramMetadataImage(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramMetadataApi.uploadProgramMetadataImage"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class nE extends Ve{getProgramMetadata(t,r,n){return ao(this.configuration).getProgramMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramMetadata(t,r,n){return ao(this.configuration).listProgramMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}updateProgramMetadata(t,r,n,a){return ao(this.configuration).updateProgramMetadata(t,r,n,a).then(o=>o(this.axios,this.basePath))}uploadProgramMetadataImage(t,r,n,a){return ao(this.configuration).uploadProgramMetadataImage(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const aE=function(e){return{createRecipe:async(t,r,n,a,o={})=>{v("createRecipe","cell",t),v("createRecipe","programId",r),v("createRecipe","body",n);const s="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},u={},d={};$(c,e),await U(u,e),r!==void 0&&(d.program_id=r),a!==void 0&&(d.name=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}},deleteRecipe:async(t,r,n={})=>{v("deleteRecipe","cell",t),v("deleteRecipe","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteRecipeList:async(t,r,n={})=>{v("deleteRecipeList","cell",t),v("deleteRecipeList","recipeIds",r);const a="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r&&(c.recipe_ids=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getRecipe:async(t,r,n={})=>{v("getRecipe","cell",t),v("getRecipe","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateRecipe:async(t,r,n,a={})=>{v("updateRecipe","cell",t),v("updateRecipe","recipe",r),v("updateRecipe","body",n);const o="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Xn=function(e){const t=aE(e);return{async createRecipe(r,n,a,o,s){var u,d;const i=await t.createRecipe(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["LibraryRecipeApi.createRecipe"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteRecipe(r,n,a){var l,c;const o=await t.deleteRecipe(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.deleteRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteRecipeList(r,n,a){var l,c;const o=await t.deleteRecipeList(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.deleteRecipeList"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getRecipe(r,n,a){var l,c;const o=await t.getRecipe(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.getRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateRecipe(r,n,a,o){var c,u;const s=await t.updateRecipe(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeApi.updateRecipe"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class oE extends Ve{createRecipe(t,r,n,a,o){return Xn(this.configuration).createRecipe(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteRecipe(t,r,n){return Xn(this.configuration).deleteRecipe(t,r,n).then(a=>a(this.axios,this.basePath))}deleteRecipeList(t,r,n){return Xn(this.configuration).deleteRecipeList(t,r,n).then(a=>a(this.axios,this.basePath))}getRecipe(t,r,n){return Xn(this.configuration).getRecipe(t,r,n).then(a=>a(this.axios,this.basePath))}updateRecipe(t,r,n,a){return Xn(this.configuration).updateRecipe(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const sE=function(e){return{getRecipeMetadata:async(t,r,n={})=>{v("getRecipeMetadata","cell",t),v("getRecipeMetadata","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listRecipeMetadata:async(t,r={})=>{v("listRecipeMetadata","cell",t);const n="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateRecipeMetadata:async(t,r,n,a={})=>{v("updateRecipeMetadata","cell",t),v("updateRecipeMetadata","recipe",r),v("updateRecipeMetadata","updateRecipeMetadataRequest",n);const o="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},uploadRecipeMetadataImage:async(t,r,n,a={})=>{v("uploadRecipeMetadataImage","cell",t),v("uploadRecipeMetadataImage","recipe",r),v("uploadRecipeMetadataImage","file",n);const o="/cells/{cell}/store/recipes/{recipe}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(e&&e.formDataCtor||FormData);$(l,e),await U(c,e),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",D(s,u);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...a.headers},l.data=d,{url:L(s),options:l}}}},oo=function(e){const t=sE(e);return{async getRecipeMetadata(r,n,a){var l,c;const o=await t.getRecipeMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeMetadataApi.getRecipeMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listRecipeMetadata(r,n){var i,l;const a=await t.listRecipeMetadata(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["LibraryRecipeMetadataApi.listRecipeMetadata"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateRecipeMetadata(r,n,a,o){var c,u;const s=await t.updateRecipeMetadata(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeMetadataApi.updateRecipeMetadata"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async uploadRecipeMetadataImage(r,n,a,o){var c,u;const s=await t.uploadRecipeMetadataImage(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeMetadataApi.uploadRecipeMetadataImage"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class iE extends Ve{getRecipeMetadata(t,r,n){return oo(this.configuration).getRecipeMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listRecipeMetadata(t,r){return oo(this.configuration).listRecipeMetadata(t,r).then(n=>n(this.axios,this.basePath))}updateRecipeMetadata(t,r,n,a){return oo(this.configuration).updateRecipeMetadata(t,r,n,a).then(o=>o(this.axios,this.basePath))}uploadRecipeMetadataImage(t,r,n,a){return oo(this.configuration).uploadRecipeMetadataImage(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const lE=function(e){return{deleteAllMotions:async(t,r={})=>{v("deleteAllMotions","cell",t);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},deleteMotion:async(t,r,n={})=>{v("deleteMotion","cell",t),v("deleteMotion","motion",r);const a="/cells/{cell}/motions/{motion}/delete".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},executeTrajectory:async(t,r,n={})=>{v("executeTrajectory","cell",t),v("executeTrajectory","executeTrajectoryRequest",r);const a="/cells/{cell}/motions/executetrajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getMotionTrajectory:async(t,r,n,a,o={})=>{v("getMotionTrajectory","cell",t),v("getMotionTrajectory","motion",r),v("getMotionTrajectory","sampleTime",n);const s="/cells/{cell}/motions/{motion}/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.sample_time=n),a!==void 0&&(d.responses_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getMotionTrajectorySample:async(t,r,n,a,o={})=>{v("getMotionTrajectorySample","cell",t),v("getMotionTrajectorySample","motion",r);const s="/cells/{cell}/motions/{motion}/trajectorysample".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.location_on_trajectory=n),a!==void 0&&(d.response_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getPlannedMotion:async(t,r,n,a={})=>{v("getPlannedMotion","cell",t),v("getPlannedMotion","motion",r);const o="/cells/{cell}/motions/{motion}/planned-motion".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.sample_time=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getPlanningMotionGroupModels:async(t,r={})=>{v("getPlanningMotionGroupModels","cell",t);const n="/cells/{cell}/motion-planning/motion-group-models".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listMotions:async(t,r={})=>{v("listMotions","cell",t);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},loadPlannedMotion:async(t,r,n={})=>{v("loadPlannedMotion","cell",t),v("loadPlannedMotion","plannedMotion",r);const a="/cells/{cell}/planned-motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planCollisionFreePTP:async(t,r,n={})=>{v("planCollisionFreePTP","cell",t);const a="/cells/{cell}/motion-planning/plan-collision-free-ptp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planMotion:async(t,r,n={})=>{v("planMotion","cell",t),v("planMotion","planRequest",r);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planTrajectory:async(t,r,n={})=>{v("planTrajectory","cell",t);const a="/cells/{cell}/motion-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},stopExecution:async(t,r,n={})=>{v("stopExecution","cell",t),v("stopExecution","motion",r);const a="/cells/{cell}/motions/{motion}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},streamMove:async(t,r,n={})=>{v("streamMove","cell",t),v("streamMove","streamMoveRequest",r);const a="/cells/{cell}/motions/streammove".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},streamMoveBackward:async(t,r,n,a,o,s,i={})=>{v("streamMoveBackward","cell",t),v("streamMoveBackward","motion",r),v("streamMoveBackward","playbackSpeedInPercent",n);const l="/cells/{cell}/motions/{motion}/executebackward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...i},h={},p={};$(d,e),await U(h,e),n!==void 0&&(p.playback_speed_in_percent=n),a!==void 0&&(p.response_rate=a),o!==void 0&&(p.response_coordinate_system=o),s!==void 0&&(p.start_location_on_trajectory=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}},streamMoveForward:async(t,r,n,a,o,s,i={})=>{v("streamMoveForward","cell",t),v("streamMoveForward","motion",r),v("streamMoveForward","playbackSpeedInPercent",n);const l="/cells/{cell}/motions/{motion}/executeforward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...i},h={},p={};$(d,e),await U(h,e),n!==void 0&&(p.playback_speed_in_percent=n),a!==void 0&&(p.response_rate=a),o!==void 0&&(p.response_coordinate_system=o),s!==void 0&&(p.start_location_on_trajectory=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}},streamMoveToTrajectoryViaJointPTP:async(t,r,n,a,o,s,i,l,c,u,d={})=>{v("streamMoveToTrajectoryViaJointPTP","cell",t),v("streamMoveToTrajectoryViaJointPTP","motion",r),v("streamMoveToTrajectoryViaJointPTP","locationOnTrajectory",n);const h="/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),p=new URL(h,k);let f;e&&(f=e.baseOptions);const m={method:"GET",...f,...d},y={},S={};$(m,e),await U(y,e),n!==void 0&&(S.location_on_trajectory=n),a&&(S["limit_override.joint_velocity_limits.joints"]=a),o&&(S["limit_override.joint_acceleration_limits.joints"]=o),s!==void 0&&(S["limit_override.tcp_velocity_limit"]=s),i!==void 0&&(S["limit_override.tcp_acceleration_limit"]=i),l!==void 0&&(S["limit_override.tcp_orientation_velocity_limit"]=l),c!==void 0&&(S["limit_override.tcp_orientation_acceleration_limit"]=c),u!==void 0&&(S.responses_coordinate_system=u),D(p,S);let E=f&&f.headers?f.headers:{};return m.headers={...y,...E,...d.headers},{url:L(p),options:m}}}},Ye=function(e){const t=lE(e);return{async deleteAllMotions(r,n){var i,l;const a=await t.deleteAllMotions(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.deleteAllMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async deleteMotion(r,n,a){var l,c;const o=await t.deleteMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.deleteMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async executeTrajectory(r,n,a){var l,c;const o=await t.executeTrajectory(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.executeTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMotionTrajectory(r,n,a,o,s){var u,d;const i=await t.getMotionTrajectory(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionApi.getMotionTrajectory"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getMotionTrajectorySample(r,n,a,o,s){var u,d;const i=await t.getMotionTrajectorySample(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionApi.getMotionTrajectorySample"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getPlannedMotion(r,n,a,o){var c,u;const s=await t.getPlannedMotion(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionApi.getPlannedMotion"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getPlanningMotionGroupModels(r,n){var i,l;const a=await t.getPlanningMotionGroupModels(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.getPlanningMotionGroupModels"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listMotions(r,n){var i,l;const a=await t.listMotions(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.listMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async loadPlannedMotion(r,n,a){var l,c;const o=await t.loadPlannedMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.loadPlannedMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planCollisionFreePTP(r,n,a){var l,c;const o=await t.planCollisionFreePTP(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planCollisionFreePTP"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planMotion(r,n,a){var l,c;const o=await t.planMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planTrajectory(r,n,a){var l,c;const o=await t.planTrajectory(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async stopExecution(r,n,a){var l,c;const o=await t.stopExecution(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.stopExecution"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamMove(r,n,a){var l,c;const o=await t.streamMove(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.streamMove"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamMoveBackward(r,n,a,o,s,i,l){var h,p;const c=await t.streamMoveBackward(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["MotionApi.streamMoveBackward"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)},async streamMoveForward(r,n,a,o,s,i,l){var h,p;const c=await t.streamMoveForward(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["MotionApi.streamMoveForward"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)},async streamMoveToTrajectoryViaJointPTP(r,n,a,o,s,i,l,c,u,d,h){var y,S;const p=await t.streamMoveToTrajectoryViaJointPTP(r,n,a,o,s,i,l,c,u,d,h),f=(e==null?void 0:e.serverIndex)??0,m=(S=(y=j["MotionApi.streamMoveToTrajectoryViaJointPTP"])==null?void 0:y[f])==null?void 0:S.url;return(E,O)=>B(p,V,M,e)(E,m||O)}}};class cE extends Ve{deleteAllMotions(t,r){return Ye(this.configuration).deleteAllMotions(t,r).then(n=>n(this.axios,this.basePath))}deleteMotion(t,r,n){return Ye(this.configuration).deleteMotion(t,r,n).then(a=>a(this.axios,this.basePath))}executeTrajectory(t,r,n){return Ye(this.configuration).executeTrajectory(t,r,n).then(a=>a(this.axios,this.basePath))}getMotionTrajectory(t,r,n,a,o){return Ye(this.configuration).getMotionTrajectory(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getMotionTrajectorySample(t,r,n,a,o){return Ye(this.configuration).getMotionTrajectorySample(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getPlannedMotion(t,r,n,a){return Ye(this.configuration).getPlannedMotion(t,r,n,a).then(o=>o(this.axios,this.basePath))}getPlanningMotionGroupModels(t,r){return Ye(this.configuration).getPlanningMotionGroupModels(t,r).then(n=>n(this.axios,this.basePath))}listMotions(t,r){return Ye(this.configuration).listMotions(t,r).then(n=>n(this.axios,this.basePath))}loadPlannedMotion(t,r,n){return Ye(this.configuration).loadPlannedMotion(t,r,n).then(a=>a(this.axios,this.basePath))}planCollisionFreePTP(t,r,n){return Ye(this.configuration).planCollisionFreePTP(t,r,n).then(a=>a(this.axios,this.basePath))}planMotion(t,r,n){return Ye(this.configuration).planMotion(t,r,n).then(a=>a(this.axios,this.basePath))}planTrajectory(t,r,n){return Ye(this.configuration).planTrajectory(t,r,n).then(a=>a(this.axios,this.basePath))}stopExecution(t,r,n){return Ye(this.configuration).stopExecution(t,r,n).then(a=>a(this.axios,this.basePath))}streamMove(t,r,n){return Ye(this.configuration).streamMove(t,r,n).then(a=>a(this.axios,this.basePath))}streamMoveBackward(t,r,n,a,o,s,i){return Ye(this.configuration).streamMoveBackward(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveForward(t,r,n,a,o,s,i){return Ye(this.configuration).streamMoveForward(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveToTrajectoryViaJointPTP(t,r,n,a,o,s,i,l,c,u,d){return Ye(this.configuration).streamMoveToTrajectoryViaJointPTP(t,r,n,a,o,s,i,l,c,u,d).then(h=>h(this.axios,this.basePath))}}const uE=function(e){return{activateAllMotionGroups:async(t,r,n={})=>{v("activateAllMotionGroups","cell",t),v("activateAllMotionGroups","controller",r);const a="/cells/{cell}/motion-groups/all".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.controller=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},activateMotionGroup:async(t,r,n={})=>{v("activateMotionGroup","cell",t),v("activateMotionGroup","motionGroup",r);const a="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.motion_group=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deactivateMotionGroup:async(t,r,n={})=>{v("deactivateMotionGroup","cell",t),v("deactivateMotionGroup","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listMotionGroups:async(t,r={})=>{v("listMotionGroups","cell",t);const n="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}}}},so=function(e){const t=uE(e);return{async activateAllMotionGroups(r,n,a){var l,c;const o=await t.activateAllMotionGroups(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.activateAllMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async activateMotionGroup(r,n,a){var l,c;const o=await t.activateMotionGroup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.activateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deactivateMotionGroup(r,n,a){var l,c;const o=await t.deactivateMotionGroup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.deactivateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listMotionGroups(r,n){var i,l;const a=await t.listMotionGroups(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionGroupApi.listMotionGroups"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class dE extends Ve{activateAllMotionGroups(t,r,n){return so(this.configuration).activateAllMotionGroups(t,r,n).then(a=>a(this.axios,this.basePath))}activateMotionGroup(t,r,n){return so(this.configuration).activateMotionGroup(t,r,n).then(a=>a(this.axios,this.basePath))}deactivateMotionGroup(t,r,n){return so(this.configuration).deactivateMotionGroup(t,r,n).then(a=>a(this.axios,this.basePath))}listMotionGroups(t,r){return so(this.configuration).listMotionGroups(t,r).then(n=>n(this.axios,this.basePath))}}const hE=function(e){return{getActivePayload:async(t,r,n={})=>{v("getActivePayload","cell",t),v("getActivePayload","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/payloads/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getActiveTcp:async(t,r,n,a={})=>{v("getActiveTcp","cell",t),v("getActiveTcp","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getCurrentMotionGroupState:async(t,r,n,a,o={})=>{v("getCurrentMotionGroupState","cell",t),v("getCurrentMotionGroupState","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.tcp=n),a!==void 0&&(d.response_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getInfoCapabilities:async(t,r,n={})=>{v("getInfoCapabilities","cell",t),v("getInfoCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/info-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMotionGroupSpecification:async(t,r,n={})=>{v("getMotionGroupSpecification","cell",t),v("getMotionGroupSpecification","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/specification".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMounting:async(t,r,n={})=>{v("getMounting","cell",t),v("getMounting","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getOptimizerConfiguration:async(t,r,n,a={})=>{v("getOptimizerConfiguration","cell",t),v("getOptimizerConfiguration","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/optimizer-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.tcp=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getSafetySetup:async(t,r,n={})=>{v("getSafetySetup","cell",t),v("getSafetySetup","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/safety-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listPayloads:async(t,r,n={})=>{v("listPayloads","cell",t),v("listPayloads","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/payloads".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listTcps:async(t,r,n,a={})=>{v("listTcps","cell",t),v("listTcps","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamMotionGroupState:async(t,r,n,a,o,s={})=>{v("streamMotionGroupState","cell",t),v("streamMotionGroupState","motionGroup",r);const i="/cells/{cell}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),l=new URL(i,k);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...s},d={},h={};$(u,e),await U(d,e),n!==void 0&&(h.response_rate=n),a!==void 0&&(h.response_coordinate_system=a),o!==void 0&&(h.tcp=o),D(l,h);let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...s.headers},{url:L(l),options:u}}}},St=function(e){const t=hE(e);return{async getActivePayload(r,n,a){var l,c;const o=await t.getActivePayload(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getActivePayload"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getActiveTcp(r,n,a,o){var c,u;const s=await t.getActiveTcp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.getActiveTcp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getCurrentMotionGroupState(r,n,a,o,s){var u,d;const i=await t.getCurrentMotionGroupState(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionGroupInfosApi.getCurrentMotionGroupState"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getInfoCapabilities(r,n,a){var l,c;const o=await t.getInfoCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getInfoCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMotionGroupSpecification(r,n,a){var l,c;const o=await t.getMotionGroupSpecification(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getMotionGroupSpecification"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMounting(r,n,a){var l,c;const o=await t.getMounting(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getMounting"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getOptimizerConfiguration(r,n,a,o){var c,u;const s=await t.getOptimizerConfiguration(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.getOptimizerConfiguration"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getSafetySetup(r,n,a){var l,c;const o=await t.getSafetySetup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getSafetySetup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listPayloads(r,n,a){var l,c;const o=await t.listPayloads(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.listPayloads"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listTcps(r,n,a,o){var c,u;const s=await t.listTcps(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.listTcps"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamMotionGroupState(r,n,a,o,s,i){var d,h;const l=await t.streamMotionGroupState(r,n,a,o,s,i),c=(e==null?void 0:e.serverIndex)??0,u=(h=(d=j["MotionGroupInfosApi.streamMotionGroupState"])==null?void 0:d[c])==null?void 0:h.url;return(p,f)=>B(l,V,M,e)(p,u||f)}}};class pE extends Ve{getActivePayload(t,r,n){return St(this.configuration).getActivePayload(t,r,n).then(a=>a(this.axios,this.basePath))}getActiveTcp(t,r,n,a){return St(this.configuration).getActiveTcp(t,r,n,a).then(o=>o(this.axios,this.basePath))}getCurrentMotionGroupState(t,r,n,a,o){return St(this.configuration).getCurrentMotionGroupState(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getInfoCapabilities(t,r,n){return St(this.configuration).getInfoCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}getMotionGroupSpecification(t,r,n){return St(this.configuration).getMotionGroupSpecification(t,r,n).then(a=>a(this.axios,this.basePath))}getMounting(t,r,n){return St(this.configuration).getMounting(t,r,n).then(a=>a(this.axios,this.basePath))}getOptimizerConfiguration(t,r,n,a){return St(this.configuration).getOptimizerConfiguration(t,r,n,a).then(o=>o(this.axios,this.basePath))}getSafetySetup(t,r,n){return St(this.configuration).getSafetySetup(t,r,n).then(a=>a(this.axios,this.basePath))}listPayloads(t,r,n){return St(this.configuration).listPayloads(t,r,n).then(a=>a(this.axios,this.basePath))}listTcps(t,r,n,a){return St(this.configuration).listTcps(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamMotionGroupState(t,r,n,a,o,s){return St(this.configuration).streamMotionGroupState(t,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}}const mE=function(e){return{directionJogging:async(t,r,n={})=>{v("directionJogging","cell",t),v("directionJogging","directionJoggingRequest",r);const a="/cells/{cell}/motion-groups/move-tcp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getJoggingCapabilities:async(t,r,n={})=>{v("getJoggingCapabilities","cell",t),v("getJoggingCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/jogging-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},jointJogging:async(t,r,n={})=>{v("jointJogging","cell",t),v("jointJogging","jointJoggingRequest",r);const a="/cells/{cell}/motion-groups/move-joint".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},stopJogging:async(t,r,n={})=>{v("stopJogging","cell",t),v("stopJogging","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},io=function(e){const t=mE(e);return{async directionJogging(r,n,a){var l,c;const o=await t.directionJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.directionJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getJoggingCapabilities(r,n,a){var l,c;const o=await t.getJoggingCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.getJoggingCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async jointJogging(r,n,a){var l,c;const o=await t.jointJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.jointJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async stopJogging(r,n,a){var l,c;const o=await t.stopJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.stopJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class fE extends Ve{directionJogging(t,r,n){return io(this.configuration).directionJogging(t,r,n).then(a=>a(this.axios,this.basePath))}getJoggingCapabilities(t,r,n){return io(this.configuration).getJoggingCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}jointJogging(t,r,n){return io(this.configuration).jointJogging(t,r,n).then(a=>a(this.axios,this.basePath))}stopJogging(t,r,n){return io(this.configuration).stopJogging(t,r,n).then(a=>a(this.axios,this.basePath))}}const gE=function(e){return{calculateAllInverseKinematic:async(t,r,n,a={})=>{v("calculateAllInverseKinematic","cell",t),v("calculateAllInverseKinematic","motionGroup",r),v("calculateAllInverseKinematic","allJointPositionsRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-all-joint-positions".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},calculateForwardKinematic:async(t,r,n,a={})=>{v("calculateForwardKinematic","cell",t),v("calculateForwardKinematic","motionGroup",r),v("calculateForwardKinematic","tcpPoseRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-tcp-pose".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},calculateInverseKinematic:async(t,r,n,a={})=>{v("calculateInverseKinematic","cell",t),v("calculateInverseKinematic","motionGroup",r),v("calculateInverseKinematic","jointPositionRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-joint-position".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},getKinematicCapabilities:async(t,r,n={})=>{v("getKinematicCapabilities","cell",t),v("getKinematicCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/kinematic-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},lo=function(e){const t=gE(e);return{async calculateAllInverseKinematic(r,n,a,o){var c,u;const s=await t.calculateAllInverseKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateAllInverseKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async calculateForwardKinematic(r,n,a,o){var c,u;const s=await t.calculateForwardKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateForwardKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async calculateInverseKinematic(r,n,a,o){var c,u;const s=await t.calculateInverseKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateInverseKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getKinematicCapabilities(r,n,a){var l,c;const o=await t.getKinematicCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupKinematicApi.getKinematicCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class yE extends Ve{calculateAllInverseKinematic(t,r,n,a){return lo(this.configuration).calculateAllInverseKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}calculateForwardKinematic(t,r,n,a){return lo(this.configuration).calculateForwardKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}calculateInverseKinematic(t,r,n,a){return lo(this.configuration).calculateInverseKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}getKinematicCapabilities(t,r,n){return lo(this.configuration).getKinematicCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}}const bE=function(e){return{createProgramRunner:async(t,r,n={})=>{v("createProgramRunner","cell",t),v("createProgramRunner","request",r);const a="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="text/plain",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},executeProgram:async(t,r,n={})=>{v("executeProgram","cell",t),v("executeProgram","codeWithArguments",r);const a="/cells/{cell}/programs/execute".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getProgramRunner:async(t,r,n={})=>{v("getProgramRunner","cell",t),v("getProgramRunner","runner",r);const a="/cells/{cell}/programs/runners/{runner}".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramRunners:async(t,r={})=>{v("listProgramRunners","cell",t);const n="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},migrateProgram:async(t,r,n={})=>{v("migrateProgram","cell",t),v("migrateProgram","request1",r);const a="/cells/{cell}/programs/migrate".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="text/plain",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planProgram:async(t,r,n,a={})=>{v("planProgram","cell",t),v("planProgram","request",r);const o="/cells/{cell}/programs/plan".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.identifier=n),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},stopAllProgramRunner:async(t,r={})=>{v("stopAllProgramRunner","cell",t);const n="/cells/{cell}/programs/runners/stop".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},stopProgramRunner:async(t,r,n={})=>{v("stopProgramRunner","cell",t),v("stopProgramRunner","runner",r);const a="/cells/{cell}/programs/runners/{runner}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},nr=function(e){const t=bE(e);return{async createProgramRunner(r,n,a){var l,c;const o=await t.createProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.createProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async executeProgram(r,n,a){var l,c;const o=await t.executeProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.executeProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgramRunner(r,n,a){var l,c;const o=await t.getProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.getProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramRunners(r,n){var i,l;const a=await t.listProgramRunners(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramApi.listProgramRunners"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async migrateProgram(r,n,a){var l,c;const o=await t.migrateProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.migrateProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planProgram(r,n,a,o){var c,u;const s=await t.planProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ProgramApi.planProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async stopAllProgramRunner(r,n){var i,l;const a=await t.stopAllProgramRunner(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramApi.stopAllProgramRunner"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async stopProgramRunner(r,n,a){var l,c;const o=await t.stopProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.stopProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class xE extends Ve{createProgramRunner(t,r,n){return nr(this.configuration).createProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}executeProgram(t,r,n){return nr(this.configuration).executeProgram(t,r,n).then(a=>a(this.axios,this.basePath))}getProgramRunner(t,r,n){return nr(this.configuration).getProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramRunners(t,r){return nr(this.configuration).listProgramRunners(t,r).then(n=>n(this.axios,this.basePath))}migrateProgram(t,r,n){return nr(this.configuration).migrateProgram(t,r,n).then(a=>a(this.axios,this.basePath))}planProgram(t,r,n,a){return nr(this.configuration).planProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}stopAllProgramRunner(t,r){return nr(this.configuration).stopAllProgramRunner(t,r).then(n=>n(this.axios,this.basePath))}stopProgramRunner(t,r,n){return nr(this.configuration).stopProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}}const vE=function(e){return{clearProgramsValues:async(t,r={})=>{v("clearProgramsValues","cell",t);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},createProgramsValue:async(t,r,n={})=>{v("createProgramsValue","cell",t),v("createProgramsValue","requestBody",r);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteProgramValue:async(t,r,n={})=>{v("deleteProgramValue","cell",t),v("deleteProgramValue","key",r);const a="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getProgramValue:async(t,r,n={})=>{v("getProgramValue","cell",t),v("getProgramValue","key",r);const a="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramsValues:async(t,r={})=>{v("listProgramsValues","cell",t);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateProgramValue:async(t,r,n,a={})=>{v("updateProgramValue","cell",t),v("updateProgramValue","key",r),v("updateProgramValue","value",n);const o="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},en=function(e){const t=vE(e);return{async clearProgramsValues(r,n){var i,l;const a=await t.clearProgramsValues(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramValuesApi.clearProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async createProgramsValue(r,n,a){var l,c;const o=await t.createProgramsValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.createProgramsValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteProgramValue(r,n,a){var l,c;const o=await t.deleteProgramValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.deleteProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgramValue(r,n,a){var l,c;const o=await t.getProgramValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.getProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramsValues(r,n){var i,l;const a=await t.listProgramsValues(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramValuesApi.listProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateProgramValue(r,n,a,o){var c,u;const s=await t.updateProgramValue(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ProgramValuesApi.updateProgramValue"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class SE extends Ve{clearProgramsValues(t,r){return en(this.configuration).clearProgramsValues(t,r).then(n=>n(this.axios,this.basePath))}createProgramsValue(t,r,n){return en(this.configuration).createProgramsValue(t,r,n).then(a=>a(this.axios,this.basePath))}deleteProgramValue(t,r,n){return en(this.configuration).deleteProgramValue(t,r,n).then(a=>a(this.axios,this.basePath))}getProgramValue(t,r,n){return en(this.configuration).getProgramValue(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramsValues(t,r){return en(this.configuration).listProgramsValues(t,r).then(n=>n(this.axios,this.basePath))}updateProgramValue(t,r,n,a){return en(this.configuration).updateProgramValue(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const OE=function(e){return{deleteStoredCollider:async(t,r,n={})=>{v("deleteStoredCollider","cell",t),v("deleteStoredCollider","collider",r);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteStoredCollisionLinkChain:async(t,r,n={})=>{v("deleteStoredCollisionLinkChain","cell",t),v("deleteStoredCollisionLinkChain","linkChain",r);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteStoredCollisionTool:async(t,r,n={})=>{v("deleteStoredCollisionTool","cell",t),v("deleteStoredCollisionTool","tool",r);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getDefaultLinkChain:async(t,r,n={})=>{v("getDefaultLinkChain","cell",t),v("getDefaultLinkChain","motionGroupModel",r);const a="/cells/{cell}/store/collision/default-link-chains/{motion-group-model}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group-model}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollider:async(t,r,n={})=>{v("getStoredCollider","cell",t),v("getStoredCollider","collider",r);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionLinkChain:async(t,r,n={})=>{v("getStoredCollisionLinkChain","cell",t),v("getStoredCollisionLinkChain","linkChain",r);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionTool:async(t,r,n={})=>{v("getStoredCollisionTool","cell",t),v("getStoredCollisionTool","tool",r);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listCollisionLinkChains:async(t,r={})=>{v("listCollisionLinkChains","cell",t);const n="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listStoredColliders:async(t,r={})=>{v("listStoredColliders","cell",t);const n="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listStoredCollisionTools:async(t,r={})=>{v("listStoredCollisionTools","cell",t);const n="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeCollider:async(t,r,n,a={})=>{v("storeCollider","cell",t),v("storeCollider","collider",r),v("storeCollider","collider2",n);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},storeCollisionLinkChain:async(t,r,n,a={})=>{v("storeCollisionLinkChain","cell",t),v("storeCollisionLinkChain","linkChain",r),v("storeCollisionLinkChain","collider",n);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},storeCollisionTool:async(t,r,n,a={})=>{v("storeCollisionTool","cell",t),v("storeCollisionTool","tool",r),v("storeCollisionTool","requestBody",n);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},ct=function(e){const t=OE(e);return{async deleteStoredCollider(r,n,a){var l,c;const o=await t.deleteStoredCollider(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteStoredCollisionLinkChain(r,n,a){var l,c;const o=await t.deleteStoredCollisionLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteStoredCollisionTool(r,n,a){var l,c;const o=await t.deleteStoredCollisionTool(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getDefaultLinkChain(r,n,a){var l,c;const o=await t.getDefaultLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getDefaultLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollider(r,n,a){var l,c;const o=await t.getStoredCollider(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionLinkChain(r,n,a){var l,c;const o=await t.getStoredCollisionLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionTool(r,n,a){var l,c;const o=await t.getStoredCollisionTool(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listCollisionLinkChains(r,n){var i,l;const a=await t.listCollisionLinkChains(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listStoredColliders(r,n){var i,l;const a=await t.listStoredColliders(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listStoredCollisionTools(r,n){var i,l;const a=await t.listStoredCollisionTools(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeCollider(r,n,a,o){var c,u;const s=await t.storeCollider(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async storeCollisionLinkChain(r,n,a,o){var c,u;const s=await t.storeCollisionLinkChain(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async storeCollisionTool(r,n,a,o){var c,u;const s=await t.storeCollisionTool(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class wE extends Ve{deleteStoredCollider(t,r,n){return ct(this.configuration).deleteStoredCollider(t,r,n).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionLinkChain(t,r,n){return ct(this.configuration).deleteStoredCollisionLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionTool(t,r,n){return ct(this.configuration).deleteStoredCollisionTool(t,r,n).then(a=>a(this.axios,this.basePath))}getDefaultLinkChain(t,r,n){return ct(this.configuration).getDefaultLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollider(t,r,n){return ct(this.configuration).getStoredCollider(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionLinkChain(t,r,n){return ct(this.configuration).getStoredCollisionLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionTool(t,r,n){return ct(this.configuration).getStoredCollisionTool(t,r,n).then(a=>a(this.axios,this.basePath))}listCollisionLinkChains(t,r){return ct(this.configuration).listCollisionLinkChains(t,r).then(n=>n(this.axios,this.basePath))}listStoredColliders(t,r){return ct(this.configuration).listStoredColliders(t,r).then(n=>n(this.axios,this.basePath))}listStoredCollisionTools(t,r){return ct(this.configuration).listStoredCollisionTools(t,r).then(n=>n(this.axios,this.basePath))}storeCollider(t,r,n,a){return ct(this.configuration).storeCollider(t,r,n,a).then(o=>o(this.axios,this.basePath))}storeCollisionLinkChain(t,r,n,a){return ct(this.configuration).storeCollisionLinkChain(t,r,n,a).then(o=>o(this.axios,this.basePath))}storeCollisionTool(t,r,n,a){return ct(this.configuration).storeCollisionTool(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const CE=function(e){return{deleteStoredCollisionScene:async(t,r,n={})=>{v("deleteStoredCollisionScene","cell",t),v("deleteStoredCollisionScene","scene",r);const a="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionScene:async(t,r,n={})=>{v("getStoredCollisionScene","cell",t),v("getStoredCollisionScene","scene",r);const a="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listStoredCollisionScenes:async(t,r={})=>{v("listStoredCollisionScenes","cell",t);const n="/cells/{cell}/store/collision/scenes".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeCollisionScene:async(t,r,n,a={})=>{v("storeCollisionScene","cell",t),v("storeCollisionScene","scene",r),v("storeCollisionScene","collisionSceneAssembly",n);const o="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},co=function(e){const t=CE(e);return{async deleteStoredCollisionScene(r,n,a){var l,c;const o=await t.deleteStoredCollisionScene(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionScenesApi.deleteStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionScene(r,n,a){var l,c;const o=await t.getStoredCollisionScene(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionScenesApi.getStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listStoredCollisionScenes(r,n){var i,l;const a=await t.listStoredCollisionScenes(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionScenesApi.listStoredCollisionScenes"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeCollisionScene(r,n,a,o){var c,u;const s=await t.storeCollisionScene(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionScenesApi.storeCollisionScene"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class PE extends Ve{deleteStoredCollisionScene(t,r,n){return co(this.configuration).deleteStoredCollisionScene(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionScene(t,r,n){return co(this.configuration).getStoredCollisionScene(t,r,n).then(a=>a(this.axios,this.basePath))}listStoredCollisionScenes(t,r){return co(this.configuration).listStoredCollisionScenes(t,r).then(n=>n(this.axios,this.basePath))}storeCollisionScene(t,r,n,a){return co(this.configuration).storeCollisionScene(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const TE=function(e){return{clearAllObjects:async(t,r={})=>{v("clearAllObjects","cell",t);const n="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},deleteObject:async(t,r,n={})=>{v("deleteObject","cell",t),v("deleteObject","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getObject:async(t,r,n={})=>{v("getObject","cell",t),v("getObject","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getObjectMetadata:async(t,r,n={})=>{v("getObjectMetadata","cell",t),v("getObjectMetadata","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"HEAD",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listAllObjectKeys:async(t,r={})=>{v("listAllObjectKeys","cell",t);const n="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeObject:async(t,r,n,a,o={})=>{v("storeObject","cell",t),v("storeObject","key",r);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={},h=new(e&&e.formDataCtor||FormData);$(c,e),await U(u,e),a!==void 0&&h.append("AnyValue",new Blob([JSON.stringify(a)],{type:"application/json"})),u["Content-Type"]="multipart/form-data",n!=null&&(u["X-Metadata"]=typeof n=="string"?n:JSON.stringify(n)),D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},c.data=h,{url:L(i),options:c}}}},tn=function(e){const t=TE(e);return{async clearAllObjects(r,n){var i,l;const a=await t.clearAllObjects(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreObjectApi.clearAllObjects"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async deleteObject(r,n,a){var l,c;const o=await t.deleteObject(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.deleteObject"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getObject(r,n,a){var l,c;const o=await t.getObject(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.getObject"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getObjectMetadata(r,n,a){var l,c;const o=await t.getObjectMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.getObjectMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listAllObjectKeys(r,n){var i,l;const a=await t.listAllObjectKeys(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreObjectApi.listAllObjectKeys"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeObject(r,n,a,o,s){var u,d;const i=await t.storeObject(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["StoreObjectApi.storeObject"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class RE extends Ve{clearAllObjects(t,r){return tn(this.configuration).clearAllObjects(t,r).then(n=>n(this.axios,this.basePath))}deleteObject(t,r,n){return tn(this.configuration).deleteObject(t,r,n).then(a=>a(this.axios,this.basePath))}getObject(t,r,n){return tn(this.configuration).getObject(t,r,n).then(a=>a(this.axios,this.basePath))}getObjectMetadata(t,r,n){return tn(this.configuration).getObjectMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listAllObjectKeys(t,r){return tn(this.configuration).listAllObjectKeys(t,r).then(n=>n(this.axios,this.basePath))}storeObject(t,r,n,a,o){return tn(this.configuration).storeObject(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const AE=function(e){return{checkNovaVersionUpdate:async(t,r={})=>{v("checkNovaVersionUpdate","channel",t);const n="/system/update",a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),t!==void 0&&(l.channel=t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},getDiagnosePackage:async(t={})=>{const r="/system/diagnosis-package/zip",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},getSystemStatus:async(t={})=>{const r="/system/status",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},getSystemVersion:async(t={})=>{const r="/system/version",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},updateNovaVersion:async(t,r={})=>{v("updateNovaVersion","updateNovaVersionRequest",t);const n="/system/update",a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"PUT",...o,...r},i={},l={};$(s,e),await U(i,e),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=de(t,s,e),{url:L(a),options:s}}}},Zn=function(e){const t=AE(e);return{async checkNovaVersionUpdate(r,n){var i,l;const a=await t.checkNovaVersionUpdate(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["SystemApi.checkNovaVersionUpdate"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async getDiagnosePackage(r){var s,i;const n=await t.getDiagnosePackage(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getDiagnosePackage"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async getSystemStatus(r){var s,i;const n=await t.getSystemStatus(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getSystemStatus"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async getSystemVersion(r){var s,i;const n=await t.getSystemVersion(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getSystemVersion"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async updateNovaVersion(r,n){var i,l;const a=await t.updateNovaVersion(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["SystemApi.updateNovaVersion"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class _E extends Ve{checkNovaVersionUpdate(t,r){return Zn(this.configuration).checkNovaVersionUpdate(t,r).then(n=>n(this.axios,this.basePath))}getDiagnosePackage(t){return Zn(this.configuration).getDiagnosePackage(t).then(r=>r(this.axios,this.basePath))}getSystemStatus(t){return Zn(this.configuration).getSystemStatus(t).then(r=>r(this.axios,this.basePath))}getSystemVersion(t){return Zn(this.configuration).getSystemVersion(t).then(r=>r(this.axios,this.basePath))}updateNovaVersion(t,r){return Zn(this.configuration).updateNovaVersion(t,r).then(n=>n(this.axios,this.basePath))}}const EE=function(e){return{getMotionGroupState:async(t,r,n,a={})=>{v("getMotionGroupState","cell",t),v("getMotionGroupState","controller",r),v("getMotionGroupState","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getMotionGroups:async(t,r,n={})=>{v("getMotionGroups","cell",t),v("getMotionGroups","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/motiongroups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getVirtualRobotIOValue:async(t,r,n,a={})=>{v("getVirtualRobotIOValue","cell",t),v("getVirtualRobotIOValue","controller",r),v("getVirtualRobotIOValue","io",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listIOs:async(t,r,n={})=>{v("listIOs","cell",t),v("listIOs","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/ios".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},setMotionGroupState:async(t,r,n,a,o={})=>{v("setMotionGroupState","cell",t),v("setMotionGroupState","controller",r),v("setMotionGroupState","id",n),v("setMotionGroupState","motionGroupJoints",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}},setVirtualRobotIOValue:async(t,r,n,a,o,s,i={})=>{v("setVirtualRobotIOValue","cell",t),v("setVirtualRobotIOValue","controller",r),v("setVirtualRobotIOValue","io",n);const l="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(n))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"PUT",...u,...i},h={},p={};$(d,e),await U(h,e),a!==void 0&&(p.bool=a),o!==void 0&&(p.integer=o),s!==void 0&&(p.double=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}}}},rn=function(e){const t=EE(e);return{async getMotionGroupState(r,n,a,o){var c,u;const s=await t.getMotionGroupState(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotApi.getMotionGroupState"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getMotionGroups(r,n,a){var l,c;const o=await t.getMotionGroups(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotApi.getMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getVirtualRobotIOValue(r,n,a,o){var c,u;const s=await t.getVirtualRobotIOValue(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotApi.getVirtualRobotIOValue"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listIOs(r,n,a){var l,c;const o=await t.listIOs(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotApi.listIOs"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async setMotionGroupState(r,n,a,o,s){var u,d;const i=await t.setMotionGroupState(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotApi.setMotionGroupState"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async setVirtualRobotIOValue(r,n,a,o,s,i,l){var h,p;const c=await t.setVirtualRobotIOValue(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["VirtualRobotApi.setVirtualRobotIOValue"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)}}};class VE extends Ve{getMotionGroupState(t,r,n,a){return rn(this.configuration).getMotionGroupState(t,r,n,a).then(o=>o(this.axios,this.basePath))}getMotionGroups(t,r,n){return rn(this.configuration).getMotionGroups(t,r,n).then(a=>a(this.axios,this.basePath))}getVirtualRobotIOValue(t,r,n,a){return rn(this.configuration).getVirtualRobotIOValue(t,r,n,a).then(o=>o(this.axios,this.basePath))}listIOs(t,r,n){return rn(this.configuration).listIOs(t,r,n).then(a=>a(this.axios,this.basePath))}setMotionGroupState(t,r,n,a,o){return rn(this.configuration).setMotionGroupState(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}setVirtualRobotIOValue(t,r,n,a,o,s,i){return rn(this.configuration).setVirtualRobotIOValue(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}}const IE=function(e){return{externalJointsStream:async(t,r,n,a={})=>{v("externalJointsStream","cell",t),v("externalJointsStream","controller",r),v("externalJointsStream","externalJointStreamDatapoint",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/externalJointsStream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},getMotionGroupBehavior:async(t,r,n,a={})=>{v("getMotionGroupBehavior","cell",t),v("getMotionGroupBehavior","controller",r),v("getMotionGroupBehavior","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setMotionGroupBehavior:async(t,r,n,a,o={})=>{v("setMotionGroupBehavior","cell",t),v("setMotionGroupBehavior","controller",r),v("setMotionGroupBehavior","id",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.behavior=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}}}},ji=function(e){const t=IE(e);return{async externalJointsStream(r,n,a,o){var c,u;const s=await t.externalJointsStream(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotBehaviorApi.externalJointsStream"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getMotionGroupBehavior(r,n,a,o){var c,u;const s=await t.getMotionGroupBehavior(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotBehaviorApi.getMotionGroupBehavior"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setMotionGroupBehavior(r,n,a,o,s){var u,d;const i=await t.setMotionGroupBehavior(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotBehaviorApi.setMotionGroupBehavior"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class ME extends Ve{externalJointsStream(t,r,n,a){return ji(this.configuration).externalJointsStream(t,r,n,a).then(o=>o(this.axios,this.basePath))}getMotionGroupBehavior(t,r,n,a){return ji(this.configuration).getMotionGroupBehavior(t,r,n,a).then(o=>o(this.axios,this.basePath))}setMotionGroupBehavior(t,r,n,a,o){return ji(this.configuration).setMotionGroupBehavior(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const jE=function(e){return{getCycleTime:async(t,r,n={})=>{v("getCycleTime","cell",t),v("getCycleTime","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getEStop:async(t,r,n={})=>{v("getEStop","cell",t),v("getEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getOperationMode:async(t,r,n={})=>{v("getOperationMode","cell",t),v("getOperationMode","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},pushEStop:async(t,r,n={})=>{v("pushEStop","cell",t),v("pushEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop/push".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},releaseEStop:async(t,r,n={})=>{v("releaseEStop","cell",t),v("releaseEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop/release".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},setOperationMode:async(t,r,n,a={})=>{v("setOperationMode","cell",t),v("setOperationMode","controller",r),v("setOperationMode","mode",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.mode=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}}}},nn=function(e){const t=jE(e);return{async getCycleTime(r,n,a){var l,c;const o=await t.getCycleTime(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getCycleTime"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getEStop(r,n,a){var l,c;const o=await t.getEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getOperationMode(r,n,a){var l,c;const o=await t.getOperationMode(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getOperationMode"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async pushEStop(r,n,a){var l,c;const o=await t.pushEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.pushEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async releaseEStop(r,n,a){var l,c;const o=await t.releaseEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.releaseEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async setOperationMode(r,n,a,o){var c,u;const s=await t.setOperationMode(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotModeApi.setOperationMode"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class kE extends Ve{getCycleTime(t,r,n){return nn(this.configuration).getCycleTime(t,r,n).then(a=>a(this.axios,this.basePath))}getEStop(t,r,n){return nn(this.configuration).getEStop(t,r,n).then(a=>a(this.axios,this.basePath))}getOperationMode(t,r,n){return nn(this.configuration).getOperationMode(t,r,n).then(a=>a(this.axios,this.basePath))}pushEStop(t,r,n){return nn(this.configuration).pushEStop(t,r,n).then(a=>a(this.axios,this.basePath))}releaseEStop(t,r,n){return nn(this.configuration).releaseEStop(t,r,n).then(a=>a(this.axios,this.basePath))}setOperationMode(t,r,n,a){return nn(this.configuration).setOperationMode(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const $E=function(e){return{addVirtualRobotCoordinateSystem:async(t,r,n,a={})=>{v("addVirtualRobotCoordinateSystem","cell",t),v("addVirtualRobotCoordinateSystem","controller",r),v("addVirtualRobotCoordinateSystem","coordinateSystem",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},addVirtualRobotTcp:async(t,r,n,a,o={})=>{v("addVirtualRobotTcp","cell",t),v("addVirtualRobotTcp","controller",r),v("addVirtualRobotTcp","id",n),v("addVirtualRobotTcp","robotTcp",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}},deleteVirtualRobotCoordinateSystem:async(t,r,n,a,o={})=>{v("deleteVirtualRobotCoordinateSystem","cell",t),v("deleteVirtualRobotCoordinateSystem","controller",r),v("deleteVirtualRobotCoordinateSystem","coordinateSystem",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.delete_dependent=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},deleteVirtualRobotTcp:async(t,r,n,a,o={})=>{v("deleteVirtualRobotTcp","cell",t),v("deleteVirtualRobotTcp","controller",r),v("deleteVirtualRobotTcp","id",n),v("deleteVirtualRobotTcp","tcp",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))).replace("{tcp}",encodeURIComponent(String(a))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},u={},d={};$(c,e),await U(u,e),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getVirtualRobotMounting:async(t,r,n,a={})=>{v("getVirtualRobotMounting","cell",t),v("getVirtualRobotMounting","controller",r),v("getVirtualRobotMounting","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listVirtualRobotCoordinateSystems:async(t,r,n={})=>{v("listVirtualRobotCoordinateSystems","cell",t),v("listVirtualRobotCoordinateSystems","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listVirtualRobotTcps:async(t,r,n,a={})=>{v("listVirtualRobotTcps","cell",t),v("listVirtualRobotTcps","controller",r),v("listVirtualRobotTcps","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setVirtualRobotMounting:async(t,r,n,a,o={})=>{v("setVirtualRobotMounting","cell",t),v("setVirtualRobotMounting","controller",r),v("setVirtualRobotMounting","id",n),v("setVirtualRobotMounting","coordinateSystem",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}}}},ar=function(e){const t=$E(e);return{async addVirtualRobotCoordinateSystem(r,n,a,o){var c,u;const s=await t.addVirtualRobotCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.addVirtualRobotCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async addVirtualRobotTcp(r,n,a,o,s){var u,d;const i=await t.addVirtualRobotTcp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.addVirtualRobotTcp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteVirtualRobotCoordinateSystem(r,n,a,o,s){var u,d;const i=await t.deleteVirtualRobotCoordinateSystem(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteVirtualRobotTcp(r,n,a,o,s){var u,d;const i=await t.deleteVirtualRobotTcp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.deleteVirtualRobotTcp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getVirtualRobotMounting(r,n,a,o){var c,u;const s=await t.getVirtualRobotMounting(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.getVirtualRobotMounting"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listVirtualRobotCoordinateSystems(r,n,a){var l,c;const o=await t.listVirtualRobotCoordinateSystems(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotSetupApi.listVirtualRobotCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listVirtualRobotTcps(r,n,a,o){var c,u;const s=await t.listVirtualRobotTcps(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.listVirtualRobotTcps"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setVirtualRobotMounting(r,n,a,o,s){var u,d;const i=await t.setVirtualRobotMounting(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.setVirtualRobotMounting"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class UE extends Ve{addVirtualRobotCoordinateSystem(t,r,n,a){return ar(this.configuration).addVirtualRobotCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}addVirtualRobotTcp(t,r,n,a,o){return ar(this.configuration).addVirtualRobotTcp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotCoordinateSystem(t,r,n,a,o){return ar(this.configuration).deleteVirtualRobotCoordinateSystem(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotTcp(t,r,n,a,o){return ar(this.configuration).deleteVirtualRobotTcp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getVirtualRobotMounting(t,r,n,a){return ar(this.configuration).getVirtualRobotMounting(t,r,n,a).then(o=>o(this.axios,this.basePath))}listVirtualRobotCoordinateSystems(t,r,n){return ar(this.configuration).listVirtualRobotCoordinateSystems(t,r,n).then(a=>a(this.axios,this.basePath))}listVirtualRobotTcps(t,r,n,a){return ar(this.configuration).listVirtualRobotTcps(t,r,n,a).then(o=>o(this.axios,this.basePath))}setVirtualRobotMounting(t,r,n,a,o){return ar(this.configuration).setVirtualRobotMounting(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}function Nt(e,t,r){return Math.max(t,Math.min(r,e))}class DE{constructor(t=0,r=0,n=0,a=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=n,this._w=a}static slerpFlat(t,r,n,a,o,s,i){let l=n[a+0],c=n[a+1],u=n[a+2],d=n[a+3];const h=o[s+0],p=o[s+1],f=o[s+2],m=o[s+3];if(i===0){t[r+0]=l,t[r+1]=c,t[r+2]=u,t[r+3]=d;return}if(i===1){t[r+0]=h,t[r+1]=p,t[r+2]=f,t[r+3]=m;return}if(d!==m||l!==h||c!==p||u!==f){let y=1-i;const S=l*h+c*p+u*f+d*m,E=S>=0?1:-1,O=1-S*S;if(O>Number.EPSILON){const P=Math.sqrt(O),C=Math.atan2(P,S*E);y=Math.sin(y*C)/P,i=Math.sin(i*C)/P}const w=i*E;if(l=l*y+h*w,c=c*y+p*w,u=u*y+f*w,d=d*y+m*w,y===1-i){const P=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=P,c*=P,u*=P,d*=P}}t[r]=l,t[r+1]=c,t[r+2]=u,t[r+3]=d}static multiplyQuaternionsFlat(t,r,n,a,o,s){const i=n[a],l=n[a+1],c=n[a+2],u=n[a+3],d=o[s],h=o[s+1],p=o[s+2],f=o[s+3];return t[r]=i*f+u*d+l*p-c*h,t[r+1]=l*f+u*h+c*d-i*p,t[r+2]=c*f+u*p+i*h-l*d,t[r+3]=u*f-i*d-l*h-c*p,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,n,a){return this._x=t,this._y=r,this._z=n,this._w=a,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const n=t._x,a=t._y,o=t._z,s=t._order,i=Math.cos,l=Math.sin,c=i(n/2),u=i(a/2),d=i(o/2),h=l(n/2),p=l(a/2),f=l(o/2);switch(s){case"XYZ":this._x=h*u*d+c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d-h*p*f;break;case"YXZ":this._x=h*u*d+c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d+h*p*f;break;case"ZXY":this._x=h*u*d-c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d-h*p*f;break;case"ZYX":this._x=h*u*d-c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d+h*p*f;break;case"YZX":this._x=h*u*d+c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d-h*p*f;break;case"XZY":this._x=h*u*d-c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d+h*p*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const n=r/2,a=Math.sin(n);return this._x=t.x*a,this._y=t.y*a,this._z=t.z*a,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,n=r[0],a=r[4],o=r[8],s=r[1],i=r[5],l=r[9],c=r[2],u=r[6],d=r[10],h=n+i+d;if(h>0){const p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(u-l)*p,this._y=(o-c)*p,this._z=(s-a)*p}else if(n>i&&n>d){const p=2*Math.sqrt(1+n-i-d);this._w=(u-l)/p,this._x=.25*p,this._y=(a+s)/p,this._z=(o+c)/p}else if(i>d){const p=2*Math.sqrt(1+i-n-d);this._w=(o-c)/p,this._x=(a+s)/p,this._y=.25*p,this._z=(l+u)/p}else{const p=2*Math.sqrt(1+d-n-i);this._w=(s-a)/p,this._x=(o+c)/p,this._y=(l+u)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let n=t.dot(r)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Nt(this.dot(t),-1,1)))}rotateTowards(t,r){const n=this.angleTo(t);if(n===0)return this;const a=Math.min(1,r/n);return this.slerp(t,a),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const n=t._x,a=t._y,o=t._z,s=t._w,i=r._x,l=r._y,c=r._z,u=r._w;return this._x=n*u+s*i+a*c-o*l,this._y=a*u+s*l+o*i-n*c,this._z=o*u+s*c+n*l-a*i,this._w=s*u-n*i-a*l-o*c,this._onChangeCallback(),this}slerp(t,r){if(r===0)return this;if(r===1)return this.copy(t);const n=this._x,a=this._y,o=this._z,s=this._w;let i=s*t._w+n*t._x+a*t._y+o*t._z;if(i<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,i=-i):this.copy(t),i>=1)return this._w=s,this._x=n,this._y=a,this._z=o,this;const l=1-i*i;if(l<=Number.EPSILON){const p=1-r;return this._w=p*s+r*this._w,this._x=p*n+r*this._x,this._y=p*a+r*this._y,this._z=p*o+r*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,i),d=Math.sin((1-r)*u)/c,h=Math.sin(r*u)/c;return this._w=s*d+this._w*h,this._x=n*d+this._x*h,this._y=a*d+this._y*h,this._z=o*d+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,r,n){return this.copy(t).slerp(r,n)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),n=Math.random(),a=Math.sqrt(1-n),o=Math.sqrt(n);return this.set(a*Math.sin(t),a*Math.cos(t),o*Math.sin(r),o*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class pn{constructor(t=0,r=0,n=0){pn.prototype.isVector3=!0,this.x=t,this.y=r,this.z=n}set(t,r,n){return n===void 0&&(n=this.z),this.x=t,this.y=r,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(nh.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(nh.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,n=this.y,a=this.z,o=t.elements;return this.x=o[0]*r+o[3]*n+o[6]*a,this.y=o[1]*r+o[4]*n+o[7]*a,this.z=o[2]*r+o[5]*n+o[8]*a,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,n=this.y,a=this.z,o=t.elements,s=1/(o[3]*r+o[7]*n+o[11]*a+o[15]);return this.x=(o[0]*r+o[4]*n+o[8]*a+o[12])*s,this.y=(o[1]*r+o[5]*n+o[9]*a+o[13])*s,this.z=(o[2]*r+o[6]*n+o[10]*a+o[14])*s,this}applyQuaternion(t){const r=this.x,n=this.y,a=this.z,o=t.x,s=t.y,i=t.z,l=t.w,c=2*(s*a-i*n),u=2*(i*r-o*a),d=2*(o*n-s*r);return this.x=r+l*c+s*d-i*u,this.y=n+l*u+i*c-o*d,this.z=a+l*d+o*u-s*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,n=this.y,a=this.z,o=t.elements;return this.x=o[0]*r+o[4]*n+o[8]*a,this.y=o[1]*r+o[5]*n+o[9]*a,this.z=o[2]*r+o[6]*n+o[10]*a,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=Nt(this.x,t.x,r.x),this.y=Nt(this.y,t.y,r.y),this.z=Nt(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=Nt(this.x,t,r),this.y=Nt(this.y,t,r),this.z=Nt(this.z,t,r),this}clampLength(t,r){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Nt(n,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,n){return this.x=t.x+(r.x-t.x)*n,this.y=t.y+(r.y-t.y)*n,this.z=t.z+(r.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const n=t.x,a=t.y,o=t.z,s=r.x,i=r.y,l=r.z;return this.x=a*l-o*i,this.y=o*s-n*l,this.z=n*i-a*s,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const n=t.dot(this)/r;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return ki.copy(this).projectOnVector(t),this.sub(ki)}reflect(t){return this.sub(ki.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const n=this.dot(t)/r;return Math.acos(Nt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,n=this.y-t.y,a=this.z-t.z;return r*r+n*n+a*a}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,n){const a=Math.sin(r)*t;return this.x=a*Math.sin(n),this.y=Math.cos(r)*t,this.z=a*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,n){return this.x=t*Math.sin(r),this.y=n,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),a=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=n,this.z=a,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,n=Math.sqrt(1-r*r);return this.x=n*Math.cos(t),this.y=r,this.z=n*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ki=new pn,nh=new DE;function LE(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 r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var a=e[n];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(n>0&&(a=a.replace(/^[\/]+/,"")),n<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}var o=t.join("/");o=o.replace(/\/(\?|&|#[^!])/g,"$1");var s=o.split("?");return o=s.shift()+(s.length>0?"?":"")+s.join("&"),o}function $i(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),LE(e)}var Vt={},ah;function BE(){if(ah)return Vt;ah=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.TokenData=void 0,Vt.parse=d,Vt.compile=h,Vt.match=m,Vt.pathToRegexp=y,Vt.stringify=w;const e="/",t=T=>T,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,a="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(T){return T.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function i(T){return T.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*l(T){const I=[...T];let N=0;function b(){let R="";if(r.test(I[++N]))for(R+=I[N];n.test(I[++N]);)R+=I[N];else if(I[N]==='"'){let G=N;for(;N<I.length;){if(I[++N]==='"'){N++,G=0;break}I[N]==="\\"?R+=I[++N]:R+=I[N]}if(G)throw new TypeError(`Unterminated quote at ${G}: ${a}`)}if(!R)throw new TypeError(`Missing parameter name at ${N}: ${a}`);return R}for(;N<I.length;){const R=I[N],G=o[R];if(G)yield{type:G,index:N++,value:R};else if(R==="\\")yield{type:"ESCAPED",index:N++,value:I[N++]};else if(R===":"){const _=b();yield{type:"PARAM",index:N,value:_}}else if(R==="*"){const _=b();yield{type:"WILDCARD",index:N,value:_}}else yield{type:"CHAR",index:N,value:I[N++]}}return{type:"END",index:N,value:""}}class c{constructor(I){this.tokens=I}peek(){if(!this._peek){const I=this.tokens.next();this._peek=I.value}return this._peek}tryConsume(I){const N=this.peek();if(N.type===I)return this._peek=void 0,N.value}consume(I){const N=this.tryConsume(I);if(N!==void 0)return N;const{type:b,index:R}=this.peek();throw new TypeError(`Unexpected ${b} at ${R}, expected ${I}: ${a}`)}text(){let I="",N;for(;N=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)I+=N;return I}}class u{constructor(I){this.tokens=I}}Vt.TokenData=u;function d(T,I={}){const{encodePath:N=t}=I,b=new c(l(T));function R(_){const z=[];for(;;){const re=b.text();re&&z.push({type:"text",value:N(re)});const X=b.tryConsume("PARAM");if(X){z.push({type:"param",name:X});continue}const ae=b.tryConsume("WILDCARD");if(ae){z.push({type:"wildcard",name:ae});continue}if(b.tryConsume("{")){z.push({type:"group",tokens:R("}")});continue}return b.consume(_),z}}const G=R("END");return new u(G)}function h(T,I={}){const{encode:N=encodeURIComponent,delimiter:b=e}=I,R=T instanceof u?T:d(T,I),G=p(R.tokens,b,N);return function(z={}){const[re,...X]=G(z);if(X.length)throw new TypeError(`Missing parameters: ${X.join(", ")}`);return re}}function p(T,I,N){const b=T.map(R=>f(R,I,N));return R=>{const G=[""];for(const _ of b){const[z,...re]=_(R);G[0]+=z,G.push(...re)}return G}}function f(T,I,N){if(T.type==="text")return()=>[T.value];if(T.type==="group"){const R=p(T.tokens,I,N);return G=>{const[_,...z]=R(G);return z.length?[""]:[_]}}const b=N||t;return T.type==="wildcard"&&N!==!1?R=>{const G=R[T.name];if(G==null)return["",T.name];if(!Array.isArray(G)||G.length===0)throw new TypeError(`Expected "${T.name}" to be a non-empty array`);return[G.map((_,z)=>{if(typeof _!="string")throw new TypeError(`Expected "${T.name}/${z}" to be a string`);return b(_)}).join(I)]}:R=>{const G=R[T.name];if(G==null)return["",T.name];if(typeof G!="string")throw new TypeError(`Expected "${T.name}" to be a string`);return[b(G)]}}function m(T,I={}){const{decode:N=decodeURIComponent,delimiter:b=e}=I,{regexp:R,keys:G}=y(T,I),_=G.map(z=>N===!1?t:z.type==="param"?N:re=>re.split(b).map(N));return function(re){const X=R.exec(re);if(!X)return!1;const ae=X[0],te=Object.create(null);for(let oe=1;oe<X.length;oe++){if(X[oe]===void 0)continue;const W=G[oe-1],ee=_[oe-1];te[W.name]=ee(X[oe])}return{path:ae,params:te}}}function y(T,I={}){const{delimiter:N=e,end:b=!0,sensitive:R=!1,trailing:G=!0}=I,_=[],z=[],re=R?"":"i",ae=(Array.isArray(T)?T:[T]).map(W=>W instanceof u?W:d(W,I));for(const{tokens:W}of ae)for(const ee of S(W,0,[])){const ue=E(ee,N,_);z.push(ue)}let te=`^(?:${z.join("|")})`;return G&&(te+=`(?:${i(N)}$)?`),te+=b?"$":`(?=${i(N)}|$)`,{regexp:new RegExp(te,re),keys:_}}function*S(T,I,N){if(I===T.length)return yield N;const b=T[I];if(b.type==="group"){const R=N.slice();for(const G of S(b.tokens,0,R))yield*S(T,I+1,G)}else N.push(b);yield*S(T,I+1,N)}function E(T,I,N){let b="",R="",G=!0;for(let _=0;_<T.length;_++){const z=T[_];if(z.type==="text"){b+=i(z.value),R+=z.value,G||(G=z.value.includes(I));continue}if(z.type==="param"||z.type==="wildcard"){if(!G&&!R)throw new TypeError(`Missing text after "${z.name}": ${a}`);z.type==="param"?b+=`(${O(I,G?"":R)}+)`:b+="([\\s\\S]+)",N.push(z),R="",G=!1;continue}}return b}function O(T,I){return I.length<2?T.length<2?`[^${i(T+I)}]`:`(?:(?!${i(T)})[^${i(I)}])`:T.length<2?`(?:(?!${i(I)})[^${i(T)}])`:`(?:(?!${i(I)}|${i(T)})[\\s\\S])`}function w(T){return T.tokens.map(function I(N,b,R){if(N.type==="text")return s(N.value);if(N.type==="group")return`{${N.tokens.map(I).join("")}}`;const _=P(N.name)&&C(R[b+1])?N.name:JSON.stringify(N.name);if(N.type==="param")return`:${_}`;if(N.type==="wildcard")return`*${_}`;throw new TypeError(`Unexpected token: ${N}`)}).join("")}function P(T){const[I,...N]=T;return r.test(I)?N.every(b=>n.test(b)):!1}function C(T){return(T==null?void 0:T.type)!=="text"?!0:!n.test(T.value[0])}return Vt}var NE=BE();function xf(e,t,r){if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(Math.abs(t[n]-e[n])>r)return!1;return!0}function vf(e,t,r){if(e===void 0&&t||e&&t===void 0)return!1;if(e===void 0||t===void 0)return!0;let n=0;return n+=Math.abs(e.orientation.x-t.orientation.x),n+=Math.abs(e.orientation.y-t.orientation.y),n+=Math.abs(e.orientation.z-t.orientation.z),n+=Math.abs(e.position.x-t.position.x),n+=Math.abs(e.position.y-t.position.y),n+=Math.abs(e.position.z-t.position.z),n>r?!1:e.coordinate_system===t.coordinate_system&&e.tcp===t.tcp}var oh=1e-4,FE=class Sf{constructor(t,r,n,a,o,s,i,l,c,u,d,h){this.nova=t,this.controller=r,this.motionGroup=n,this.initialMotionState=a,this.motionStateSocket=o,this.isVirtual=s,this.tcps=i,this.motionGroupSpecification=l,this.safetySetup=c,this.mounting=u,this.initialControllerState=d,this.controllerStateSocket=h,this.connectedJoggingCartesianSocket=null,this.connectedJoggingJointsSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.rapidlyChangingMotionState=a,this.controllerState=d,h.addEventListener("message",p=>{var f;const m=(f=lr(p.data))==null?void 0:f.result;m&&je.runInAction(()=>{this.controllerState=m})}),o.addEventListener("message",p=>{var f;const m=(f=lr(p.data))==null?void 0:f.result;if(!m)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${p.data}`);xf(this.rapidlyChangingMotionState.state.joint_position.joints,m.state.joint_position.joints,oh)||je.runInAction(()=>{this.rapidlyChangingMotionState.state=m.state}),vf(this.rapidlyChangingMotionState.tcp_pose,m.tcp_pose,oh)||je.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=m.tcp_pose})}),je.makeAutoObservable(this)}static connect(t,r,n){return Ee(this,null,function*(){var a,o;const[s,i]=r.split("@"),l=n.find(C=>C.controller===i),c=l==null?void 0:l.physical_motion_groups.find(C=>C.motion_group===r);if(!l||!c)throw new Error(`Controller ${i} or motion group ${r} not found`);const u=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),d=yield u.firstMessage(),h=(a=lr(d.data))==null?void 0:a.result;if(!h)throw new Error(`Unable to parse initial motion state message ${d.data}`);console.log(`Connected motion state websocket to motion group ${c.motion_group}. Initial state:
149
+ `):" "+Zd(o[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:gl};function Mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jn(null,e)}function eh(e){return Mi(e),e.headers=it.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ff.getAdapter(e.adapter||ka.adapter)(e).then(function(n){return Mi(e),n.data=Ii.call(e,e.transformResponse,n),n.headers=it.from(n.headers),n},function(n){return cf(n)||(Mi(e),n&&n.response&&(n.response.data=Ii.call(e,e.transformResponse,n.response),n.response.headers=it.from(n.response.headers))),Promise.reject(n)})}const gf="1.8.3",Ns={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ns[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const th={};Ns.transitional=function(t,r,n){function a(o,s){return"[Axios v"+gf+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,i)=>{if(t===!1)throw new he(a(s," has been removed"+(r?" in "+r:"")),he.ERR_DEPRECATED);return r&&!th[s]&&(th[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,i):!0}};Ns.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function UE(e,t,r){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],s=t[o];if(s){const i=e[o],l=i===void 0||s(i,o,e);if(l!==!0)throw new he("option "+o+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new he("Unknown option "+o,he.ERR_BAD_OPTION)}}const Co={assertOptions:UE,validators:Ns},Et=Co.validators;let Tr=class{constructor(t){this.defaults=t,this.interceptors={request:new qd,response:new qd}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
150
+ `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vr(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Co.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),a!=null&&(H.isFunction(a)?r.paramsSerializer={serialize:a}:Co.assertOptions(a,{encode:Et.function,serialize:Et.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Co.assertOptions(r,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),r.headers=it.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,h;if(!l){const f=[eh.bind(this),void 0];for(f.unshift.apply(f,i),f.push.apply(f,c),h=f.length,u=Promise.resolve(r);d<h;)u=u.then(f[d++],f[d++]);return u}h=i.length;let p=r;for(d=0;d<h;){const f=i[d++],m=i[d++];try{p=f(p)}catch(y){m.call(this,y);break}}try{u=eh.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Vr(this.defaults,t);const r=df(t.baseURL,t.url,t.allowAbsoluteUrls);return of(r,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){Tr.prototype[t]=function(r,n){return this.request(Vr(n||{},{method:t,url:r,data:(n||{}).data}))}});H.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,i){return this.request(Vr(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Tr.prototype[t]=r(),Tr.prototype[t+"Form"]=r(!0)});let DE=class yf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(i=>{n.subscribe(i),o=i}).then(a);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,i){n.reason||(n.reason=new jn(o,s,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new yf(function(a){t=a}),cancel:t}}};function LE(e){return function(r){return e.apply(null,r)}}function BE(e){return H.isObject(e)&&e.isAxiosError===!0}const yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yl).forEach(([e,t])=>{yl[t]=e});function bf(e){const t=new Tr(e),r=Jm(Tr.prototype.request,t);return H.extend(r,Tr.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return bf(Vr(e,a))},r}const V=bf(ka);V.Axios=Tr;V.CanceledError=jn;V.CancelToken=DE;V.isCancel=cf;V.VERSION=gf;V.toFormData=Ls;V.AxiosError=he;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=LE;V.isAxiosError=BE;V.mergeConfig=Vr;V.AxiosHeaders=it;V.formToJSON=e=>lf(H.isHTMLForm(e)?new FormData(e):e);V.getAdapter=ff.getAdapter;V.HttpStatusCode=yl;V.default=V;const{Axios:pj,AxiosError:bl,CanceledError:mj,isCancel:fj,CancelToken:gj,VERSION:yj,all:bj,Cancel:xj,isAxiosError:NE,spread:vj,toFormData:Sj,AxiosHeaders:Oj,HttpStatusCode:wj,formToJSON:Cj,getAdapter:Pj,mergeConfig:Tj}=V,M="/api/v1".replace(/\/+$/,"");class Ve{constructor(t,r=M,n=V){$n(this,"basePath");$n(this,"axios");$n(this,"configuration");this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class FE extends Error{constructor(r,n){super(n);$n(this,"field");this.field=r,this.name="RequiredError"}}const j={},k="https://example.com",v=function(e,t,r){if(r==null)throw new FE(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},$=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},U=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function xl(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>xl(e,n,r)):Object.keys(t).forEach(n=>xl(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const D=function(e,...t){const r=new URLSearchParams(e.search);xl(r,t),e.search=r.toString()},de=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},L=function(e){return e.pathname+e.search+e.hash},B=function(e,t,r,n){return(a=t,o=r)=>{const s={...e.options,url:(a.defaults.baseURL?"":(n==null?void 0:n.basePath)??o)+e.url};return a.request(s)}},Mt={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},zE=function(e){return{addApp:async(t,r,n,a={})=>{v("addApp","cell",t),v("addApp","app",r);const o="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},clearApps:async(t,r,n={})=>{v("clearApps","cell",t);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteApp:async(t,r,n,a={})=>{v("deleteApp","cell",t),v("deleteApp","app",r);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getApp:async(t,r,n={})=>{v("getApp","cell",t),v("getApp","app",r);const a="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listApps:async(t,r={})=>{v("listApps","cell",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateApp:async(t,r,n,a,o={})=>{v("updateApp","cell",t),v("updateApp","app",r),v("updateApp","app2",n);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.completionTimeout=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}}}},Xr=function(e){const t=zE(e);return{async addApp(r,n,a,o){var c,u;const s=await t.addApp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ApplicationApi.addApp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async clearApps(r,n,a){var l,c;const o=await t.clearApps(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ApplicationApi.clearApps"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteApp(r,n,a,o){var c,u;const s=await t.deleteApp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ApplicationApi.deleteApp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getApp(r,n,a){var l,c;const o=await t.getApp(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ApplicationApi.getApp"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listApps(r,n){var i,l;const a=await t.listApps(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ApplicationApi.listApps"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateApp(r,n,a,o,s){var u,d;const i=await t.updateApp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["ApplicationApi.updateApp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class rh extends Ve{addApp(t,r,n,a){return Xr(this.configuration).addApp(t,r,n,a).then(o=>o(this.axios,this.basePath))}clearApps(t,r,n){return Xr(this.configuration).clearApps(t,r,n).then(a=>a(this.axios,this.basePath))}deleteApp(t,r,n,a){return Xr(this.configuration).deleteApp(t,r,n,a).then(o=>o(this.axios,this.basePath))}getApp(t,r,n){return Xr(this.configuration).getApp(t,r,n).then(a=>a(this.axios,this.basePath))}listApps(t,r){return Xr(this.configuration).listApps(t,r).then(n=>n(this.axios,this.basePath))}updateApp(t,r,n,a,o){return Xr(this.configuration).updateApp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const GE=function(e){return{deleteCell:async(t,r,n={})=>{v("deleteCell","cell",t);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deployCell:async(t,r,n={})=>{v("deployCell","cell",t);const a="/cells",o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(t,i,e),{url:L(o),options:i}},getCell:async(t,r={})=>{v("getCell","cell",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},getCellStatus:async(t,r={})=>{v("getCellStatus","cell",t);const n="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listCells:async(t={})=>{const r="/cells",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},updateCell:async(t,r,n,a={})=>{v("updateCell","cell",t),v("updateCell","cell2",r);const o="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}}}},Zr=function(e){const t=GE(e);return{async deleteCell(r,n,a){var l,c;const o=await t.deleteCell(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CellApi.deleteCell"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deployCell(r,n,a){var l,c;const o=await t.deployCell(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CellApi.deployCell"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getCell(r,n){var i,l;const a=await t.getCell(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["CellApi.getCell"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async getCellStatus(r,n){var i,l;const a=await t.getCellStatus(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["CellApi.getCellStatus"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listCells(r){var s,i;const n=await t.listCells(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["CellApi.listCells"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async updateCell(r,n,a,o){var c,u;const s=await t.updateCell(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CellApi.updateCell"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class HE extends Ve{deleteCell(t,r,n){return Zr(this.configuration).deleteCell(t,r,n).then(a=>a(this.axios,this.basePath))}deployCell(t,r,n){return Zr(this.configuration).deployCell(t,r,n).then(a=>a(this.axios,this.basePath))}getCell(t,r){return Zr(this.configuration).getCell(t,r).then(n=>n(this.axios,this.basePath))}getCellStatus(t,r){return Zr(this.configuration).getCellStatus(t,r).then(n=>n(this.axios,this.basePath))}listCells(t){return Zr(this.configuration).listCells(t).then(r=>r(this.axios,this.basePath))}updateCell(t,r,n,a){return Zr(this.configuration).updateCell(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const qE=function(e){return{addRobotController:async(t,r,n,a={})=>{v("addRobotController","cell",t),v("addRobotController","robotController",r);const o="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},clearRobotControllers:async(t,r,n={})=>{v("clearRobotControllers","cell",t);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.completionTimeout=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteRobotController:async(t,r,n,a={})=>{v("deleteRobotController","cell",t),v("deleteRobotController","controller",r);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.completionTimeout=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getCurrentRobotControllerState:async(t,r,n={})=>{v("getCurrentRobotControllerState","cell",t),v("getCurrentRobotControllerState","controller",r);const a="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMode:async(t,r,n={})=>{v("getMode","cell",t),v("getMode","controller",r);const a="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getRobotController:async(t,r,n={})=>{v("getRobotController","cell",t),v("getRobotController","controller",r);const a="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getSupportedModes:async(t,r,n={})=>{v("getSupportedModes","cell",t),v("getSupportedModes","controller",r);const a="/cells/{cell}/controllers/{controller}/controller-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getVirtualRobotConfiguration:async(t,r,n={})=>{v("getVirtualRobotConfiguration","cell",t),v("getVirtualRobotConfiguration","controller",r);const a="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listControllers:async(t,r={})=>{v("listControllers","cell",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},setDefaultMode:async(t,r,n,a={})=>{v("setDefaultMode","cell",t),v("setDefaultMode","controller",r),v("setDefaultMode","mode",n);const o="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.mode=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamFreeDrive:async(t,r,n,a={})=>{v("streamFreeDrive","cell",t),v("streamFreeDrive","controller",r);const o="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.response_rate=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamModeChange:async(t,r,n={})=>{v("streamModeChange","cell",t),v("streamModeChange","controller",r);const a="/cells/{cell}/controllers/{controller}/mode-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},streamRobotControllerState:async(t,r,n,a={})=>{v("streamRobotControllerState","cell",t),v("streamRobotControllerState","controller",r);const o="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.response_rate=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},updateRobotController:async(t,r,n,a,o={})=>{v("updateRobotController","cell",t),v("updateRobotController","controller",r),v("updateRobotController","robotController",n);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.completionTimeout=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}}}},nt=function(e){const t=qE(e);return{async addRobotController(r,n,a,o){var c,u;const s=await t.addRobotController(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.addRobotController"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async clearRobotControllers(r,n,a){var l,c;const o=await t.clearRobotControllers(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.clearRobotControllers"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteRobotController(r,n,a,o){var c,u;const s=await t.deleteRobotController(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.deleteRobotController"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getCurrentRobotControllerState(r,n,a){var l,c;const o=await t.getCurrentRobotControllerState(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getCurrentRobotControllerState"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMode(r,n,a){var l,c;const o=await t.getMode(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getMode"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getRobotController(r,n,a){var l,c;const o=await t.getRobotController(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getRobotController"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getSupportedModes(r,n,a){var l,c;const o=await t.getSupportedModes(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getSupportedModes"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getVirtualRobotConfiguration(r,n,a){var l,c;const o=await t.getVirtualRobotConfiguration(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.getVirtualRobotConfiguration"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listControllers(r,n){var i,l;const a=await t.listControllers(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ControllerApi.listControllers"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async setDefaultMode(r,n,a,o){var c,u;const s=await t.setDefaultMode(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.setDefaultMode"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamFreeDrive(r,n,a,o){var c,u;const s=await t.streamFreeDrive(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.streamFreeDrive"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamModeChange(r,n,a){var l,c;const o=await t.streamModeChange(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ControllerApi.streamModeChange"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamRobotControllerState(r,n,a,o){var c,u;const s=await t.streamRobotControllerState(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerApi.streamRobotControllerState"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async updateRobotController(r,n,a,o,s){var u,d;const i=await t.updateRobotController(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["ControllerApi.updateRobotController"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class WE extends Ve{addRobotController(t,r,n,a){return nt(this.configuration).addRobotController(t,r,n,a).then(o=>o(this.axios,this.basePath))}clearRobotControllers(t,r,n){return nt(this.configuration).clearRobotControllers(t,r,n).then(a=>a(this.axios,this.basePath))}deleteRobotController(t,r,n,a){return nt(this.configuration).deleteRobotController(t,r,n,a).then(o=>o(this.axios,this.basePath))}getCurrentRobotControllerState(t,r,n){return nt(this.configuration).getCurrentRobotControllerState(t,r,n).then(a=>a(this.axios,this.basePath))}getMode(t,r,n){return nt(this.configuration).getMode(t,r,n).then(a=>a(this.axios,this.basePath))}getRobotController(t,r,n){return nt(this.configuration).getRobotController(t,r,n).then(a=>a(this.axios,this.basePath))}getSupportedModes(t,r,n){return nt(this.configuration).getSupportedModes(t,r,n).then(a=>a(this.axios,this.basePath))}getVirtualRobotConfiguration(t,r,n){return nt(this.configuration).getVirtualRobotConfiguration(t,r,n).then(a=>a(this.axios,this.basePath))}listControllers(t,r){return nt(this.configuration).listControllers(t,r).then(n=>n(this.axios,this.basePath))}setDefaultMode(t,r,n,a){return nt(this.configuration).setDefaultMode(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamFreeDrive(t,r,n,a){return nt(this.configuration).streamFreeDrive(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamModeChange(t,r,n){return nt(this.configuration).streamModeChange(t,r,n).then(a=>a(this.axios,this.basePath))}streamRobotControllerState(t,r,n,a){return nt(this.configuration).streamRobotControllerState(t,r,n,a).then(o=>o(this.axios,this.basePath))}updateRobotController(t,r,n,a,o){return nt(this.configuration).updateRobotController(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const JE=function(e){return{listIODescriptions:async(t,r,n,a={})=>{v("listIODescriptions","cell",t),v("listIODescriptions","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listIOValues:async(t,r,n,a={})=>{v("listIOValues","cell",t),v("listIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setOutputValues:async(t,r,n,a={})=>{v("setOutputValues","cell",t),v("setOutputValues","controller",r),v("setOutputValues","iOValue",n);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},streamIOValues:async(t,r,n,a={})=>{v("streamIOValues","cell",t),v("streamIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n&&(u.ios=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},waitForIOEvent:async(t,r,n,a,o,s,i,l={})=>{v("waitForIOEvent","cell",t),v("waitForIOEvent","controller",r),v("waitForIOEvent","io",n),v("waitForIOEvent","comparisonType",a);const c="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),u=new URL(c,k);let d;e&&(d=e.baseOptions);const h={method:"GET",...d,...l},p={},f={};$(h,e),await U(p,e),n!==void 0&&(f.io=n),a!==void 0&&(f.comparison_type=a),o!==void 0&&(f.boolean_value=o),s!==void 0&&(f.integer_value=s),i!==void 0&&(f.floating_value=i),D(u,f);let m=d&&d.headers?d.headers:{};return h.headers={...p,...m,...l.headers},{url:L(u),options:h}}}},Jn=function(e){const t=JE(e);return{async listIODescriptions(r,n,a,o){var c,u;const s=await t.listIODescriptions(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.listIODescriptions"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listIOValues(r,n,a,o){var c,u;const s=await t.listIOValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.listIOValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setOutputValues(r,n,a,o){var c,u;const s=await t.setOutputValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.setOutputValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamIOValues(r,n,a,o){var c,u;const s=await t.streamIOValues(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ControllerIOsApi.streamIOValues"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async waitForIOEvent(r,n,a,o,s,i,l,c){var p,f;const u=await t.waitForIOEvent(r,n,a,o,s,i,l,c),d=(e==null?void 0:e.serverIndex)??0,h=(f=(p=j["ControllerIOsApi.waitForIOEvent"])==null?void 0:p[d])==null?void 0:f.url;return(m,y)=>B(u,V,M,e)(m,h||y)}}};class YE extends Ve{listIODescriptions(t,r,n,a){return Jn(this.configuration).listIODescriptions(t,r,n,a).then(o=>o(this.axios,this.basePath))}listIOValues(t,r,n,a){return Jn(this.configuration).listIOValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}setOutputValues(t,r,n,a){return Jn(this.configuration).setOutputValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamIOValues(t,r,n,a){return Jn(this.configuration).streamIOValues(t,r,n,a).then(o=>o(this.axios,this.basePath))}waitForIOEvent(t,r,n,a,o,s,i,l){return Jn(this.configuration).waitForIOEvent(t,r,n,a,o,s,i,l).then(c=>c(this.axios,this.basePath))}}const KE=function(e){return{addCoordinateSystem:async(t,r,n={})=>{v("addCoordinateSystem","cell",t),v("addCoordinateSystem","addRequest",r);const a="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteCoordinateSystem:async(t,r,n={})=>{v("deleteCoordinateSystem","cell",t),v("deleteCoordinateSystem","coordinateSystem",r);const a="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getCoordinateSystem:async(t,r,n,a={})=>{v("getCoordinateSystem","cell",t),v("getCoordinateSystem","coordinateSystem",r);const o="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listCoordinateSystems:async(t,r,n={})=>{v("listCoordinateSystems","cell",t);const a="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.rotation_type=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},transformInCoordinateSystem:async(t,r,n,a={})=>{v("transformInCoordinateSystem","cell",t),v("transformInCoordinateSystem","coordinateSystem",r),v("transformInCoordinateSystem","pose",n);const o="/cells/{cell}/coordinate-systems/{coordinate-system}/transform".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Yn=function(e){const t=KE(e);return{async addCoordinateSystem(r,n,a){var l,c;const o=await t.addCoordinateSystem(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.addCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteCoordinateSystem(r,n,a){var l,c;const o=await t.deleteCoordinateSystem(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.deleteCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getCoordinateSystem(r,n,a,o){var c,u;const s=await t.getCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CoordinateSystemsApi.getCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listCoordinateSystems(r,n,a){var l,c;const o=await t.listCoordinateSystems(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["CoordinateSystemsApi.listCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async transformInCoordinateSystem(r,n,a,o){var c,u;const s=await t.transformInCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["CoordinateSystemsApi.transformInCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class QE extends Ve{addCoordinateSystem(t,r,n){return Yn(this.configuration).addCoordinateSystem(t,r,n).then(a=>a(this.axios,this.basePath))}deleteCoordinateSystem(t,r,n){return Yn(this.configuration).deleteCoordinateSystem(t,r,n).then(a=>a(this.axios,this.basePath))}getCoordinateSystem(t,r,n,a){return Yn(this.configuration).getCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}listCoordinateSystems(t,r,n){return Yn(this.configuration).listCoordinateSystems(t,r,n).then(a=>a(this.axios,this.basePath))}transformInCoordinateSystem(t,r,n,a){return Yn(this.configuration).transformInCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const XE=function(e){return{clearDevices:async(t,r={})=>{v("clearDevices","cell",t);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},createDevice:async(t,r,n={})=>{v("createDevice","cell",t),v("createDevice","createDeviceRequestInner",r);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteDevice:async(t,r,n={})=>{v("deleteDevice","cell",t),v("deleteDevice","identifier",r);const a="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getDevice:async(t,r,n={})=>{v("getDevice","cell",t),v("getDevice","identifier",r);const a="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listDevices:async(t,r={})=>{v("listDevices","cell",t);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}}}},Kn=function(e){const t=XE(e);return{async clearDevices(r,n){var i,l;const a=await t.clearDevices(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["DeviceConfigurationApi.clearDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async createDevice(r,n,a){var l,c;const o=await t.createDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.createDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteDevice(r,n,a){var l,c;const o=await t.deleteDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.deleteDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getDevice(r,n,a){var l,c;const o=await t.getDevice(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["DeviceConfigurationApi.getDevice"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listDevices(r,n){var i,l;const a=await t.listDevices(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["DeviceConfigurationApi.listDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class ZE extends Ve{clearDevices(t,r){return Kn(this.configuration).clearDevices(t,r).then(n=>n(this.axios,this.basePath))}createDevice(t,r,n){return Kn(this.configuration).createDevice(t,r,n).then(a=>a(this.axios,this.basePath))}deleteDevice(t,r,n){return Kn(this.configuration).deleteDevice(t,r,n).then(a=>a(this.axios,this.basePath))}getDevice(t,r,n){return Kn(this.configuration).getDevice(t,r,n).then(a=>a(this.axios,this.basePath))}listDevices(t,r){return Kn(this.configuration).listDevices(t,r).then(n=>n(this.axios,this.basePath))}}const e2=function(e){return{createProgram:async(t,r,n,a={})=>{v("createProgram","cell",t),v("createProgram","body",r);const o="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.name=n),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},deleteProgram:async(t,r,n={})=>{v("deleteProgram","cell",t),v("deleteProgram","program",r);const a="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteProgramList:async(t,r,n={})=>{v("deleteProgramList","cell",t),v("deleteProgramList","programIds",r);const a="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r&&(c.program_ids=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getProgram:async(t,r,n={})=>{v("getProgram","cell",t),v("getProgram","program",r);const a="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateProgram:async(t,r,n,a={})=>{v("updateProgram","cell",t),v("updateProgram","program",r),v("updateProgram","body",n);const o="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Qn=function(e){const t=e2(e);return{async createProgram(r,n,a,o){var c,u;const s=await t.createProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramApi.createProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async deleteProgram(r,n,a){var l,c;const o=await t.deleteProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.deleteProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteProgramList(r,n,a){var l,c;const o=await t.deleteProgramList(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.deleteProgramList"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgram(r,n,a){var l,c;const o=await t.getProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramApi.getProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateProgram(r,n,a,o){var c,u;const s=await t.updateProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramApi.updateProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class t2 extends Ve{createProgram(t,r,n,a){return Qn(this.configuration).createProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}deleteProgram(t,r,n){return Qn(this.configuration).deleteProgram(t,r,n).then(a=>a(this.axios,this.basePath))}deleteProgramList(t,r,n){return Qn(this.configuration).deleteProgramList(t,r,n).then(a=>a(this.axios,this.basePath))}getProgram(t,r,n){return Qn(this.configuration).getProgram(t,r,n).then(a=>a(this.axios,this.basePath))}updateProgram(t,r,n,a){return Qn(this.configuration).updateProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const r2=function(e){return{getProgramMetadata:async(t,r,n={})=>{v("getProgramMetadata","cell",t),v("getProgramMetadata","program",r);const a="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramMetadata:async(t,r,n={})=>{v("listProgramMetadata","cell",t);const a="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.show_hidden=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateProgramMetadata:async(t,r,n,a={})=>{v("updateProgramMetadata","cell",t),v("updateProgramMetadata","program",r),v("updateProgramMetadata","updateProgramMetadataRequest",n);const o="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},uploadProgramMetadataImage:async(t,r,n,a={})=>{v("uploadProgramMetadataImage","cell",t),v("uploadProgramMetadataImage","program",r),v("uploadProgramMetadataImage","file",n);const o="/cells/{cell}/store/programs/{program}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(e&&e.formDataCtor||FormData);$(l,e),await U(c,e),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",D(s,u);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...a.headers},l.data=d,{url:L(s),options:l}}}},ao=function(e){const t=r2(e);return{async getProgramMetadata(r,n,a){var l,c;const o=await t.getProgramMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramMetadataApi.getProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramMetadata(r,n,a){var l,c;const o=await t.listProgramMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryProgramMetadataApi.listProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateProgramMetadata(r,n,a,o){var c,u;const s=await t.updateProgramMetadata(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramMetadataApi.updateProgramMetadata"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async uploadProgramMetadataImage(r,n,a,o){var c,u;const s=await t.uploadProgramMetadataImage(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryProgramMetadataApi.uploadProgramMetadataImage"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class n2 extends Ve{getProgramMetadata(t,r,n){return ao(this.configuration).getProgramMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramMetadata(t,r,n){return ao(this.configuration).listProgramMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}updateProgramMetadata(t,r,n,a){return ao(this.configuration).updateProgramMetadata(t,r,n,a).then(o=>o(this.axios,this.basePath))}uploadProgramMetadataImage(t,r,n,a){return ao(this.configuration).uploadProgramMetadataImage(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const a2=function(e){return{createRecipe:async(t,r,n,a,o={})=>{v("createRecipe","cell",t),v("createRecipe","programId",r),v("createRecipe","body",n);const s="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},u={},d={};$(c,e),await U(u,e),r!==void 0&&(d.program_id=r),a!==void 0&&(d.name=a),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(n,c,e),{url:L(i),options:c}},deleteRecipe:async(t,r,n={})=>{v("deleteRecipe","cell",t),v("deleteRecipe","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteRecipeList:async(t,r,n={})=>{v("deleteRecipeList","cell",t),v("deleteRecipeList","recipeIds",r);const a="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),r&&(c.recipe_ids=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getRecipe:async(t,r,n={})=>{v("getRecipe","cell",t),v("getRecipe","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},updateRecipe:async(t,r,n,a={})=>{v("updateRecipe","cell",t),v("updateRecipe","recipe",r),v("updateRecipe","body",n);const o="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},Xn=function(e){const t=a2(e);return{async createRecipe(r,n,a,o,s){var u,d;const i=await t.createRecipe(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["LibraryRecipeApi.createRecipe"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteRecipe(r,n,a){var l,c;const o=await t.deleteRecipe(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.deleteRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteRecipeList(r,n,a){var l,c;const o=await t.deleteRecipeList(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.deleteRecipeList"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getRecipe(r,n,a){var l,c;const o=await t.getRecipe(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeApi.getRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async updateRecipe(r,n,a,o){var c,u;const s=await t.updateRecipe(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeApi.updateRecipe"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class o2 extends Ve{createRecipe(t,r,n,a,o){return Xn(this.configuration).createRecipe(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteRecipe(t,r,n){return Xn(this.configuration).deleteRecipe(t,r,n).then(a=>a(this.axios,this.basePath))}deleteRecipeList(t,r,n){return Xn(this.configuration).deleteRecipeList(t,r,n).then(a=>a(this.axios,this.basePath))}getRecipe(t,r,n){return Xn(this.configuration).getRecipe(t,r,n).then(a=>a(this.axios,this.basePath))}updateRecipe(t,r,n,a){return Xn(this.configuration).updateRecipe(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const s2=function(e){return{getRecipeMetadata:async(t,r,n={})=>{v("getRecipeMetadata","cell",t),v("getRecipeMetadata","recipe",r);const a="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listRecipeMetadata:async(t,r={})=>{v("listRecipeMetadata","cell",t);const n="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateRecipeMetadata:async(t,r,n,a={})=>{v("updateRecipeMetadata","cell",t),v("updateRecipeMetadata","recipe",r),v("updateRecipeMetadata","updateRecipeMetadataRequest",n);const o="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},uploadRecipeMetadataImage:async(t,r,n,a={})=>{v("uploadRecipeMetadataImage","cell",t),v("uploadRecipeMetadataImage","recipe",r),v("uploadRecipeMetadataImage","file",n);const o="/cells/{cell}/store/recipes/{recipe}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(e&&e.formDataCtor||FormData);$(l,e),await U(c,e),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",D(s,u);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...a.headers},l.data=d,{url:L(s),options:l}}}},oo=function(e){const t=s2(e);return{async getRecipeMetadata(r,n,a){var l,c;const o=await t.getRecipeMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["LibraryRecipeMetadataApi.getRecipeMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listRecipeMetadata(r,n){var i,l;const a=await t.listRecipeMetadata(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["LibraryRecipeMetadataApi.listRecipeMetadata"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateRecipeMetadata(r,n,a,o){var c,u;const s=await t.updateRecipeMetadata(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeMetadataApi.updateRecipeMetadata"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async uploadRecipeMetadataImage(r,n,a,o){var c,u;const s=await t.uploadRecipeMetadataImage(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["LibraryRecipeMetadataApi.uploadRecipeMetadataImage"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class i2 extends Ve{getRecipeMetadata(t,r,n){return oo(this.configuration).getRecipeMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listRecipeMetadata(t,r){return oo(this.configuration).listRecipeMetadata(t,r).then(n=>n(this.axios,this.basePath))}updateRecipeMetadata(t,r,n,a){return oo(this.configuration).updateRecipeMetadata(t,r,n,a).then(o=>o(this.axios,this.basePath))}uploadRecipeMetadataImage(t,r,n,a){return oo(this.configuration).uploadRecipeMetadataImage(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const l2=function(e){return{deleteAllMotions:async(t,r={})=>{v("deleteAllMotions","cell",t);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},deleteMotion:async(t,r,n={})=>{v("deleteMotion","cell",t),v("deleteMotion","motion",r);const a="/cells/{cell}/motions/{motion}/delete".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},executeTrajectory:async(t,r,n={})=>{v("executeTrajectory","cell",t),v("executeTrajectory","executeTrajectoryRequest",r);const a="/cells/{cell}/motions/executetrajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getMotionTrajectory:async(t,r,n,a,o={})=>{v("getMotionTrajectory","cell",t),v("getMotionTrajectory","motion",r),v("getMotionTrajectory","sampleTime",n);const s="/cells/{cell}/motions/{motion}/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.sample_time=n),a!==void 0&&(d.responses_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getMotionTrajectorySample:async(t,r,n,a,o={})=>{v("getMotionTrajectorySample","cell",t),v("getMotionTrajectorySample","motion",r);const s="/cells/{cell}/motions/{motion}/trajectorysample".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.location_on_trajectory=n),a!==void 0&&(d.response_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getPlannedMotion:async(t,r,n,a={})=>{v("getPlannedMotion","cell",t),v("getPlannedMotion","motion",r);const o="/cells/{cell}/motions/{motion}/planned-motion".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.sample_time=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getPlanningMotionGroupModels:async(t,r={})=>{v("getPlanningMotionGroupModels","cell",t);const n="/cells/{cell}/motion-planning/motion-group-models".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listMotions:async(t,r={})=>{v("listMotions","cell",t);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},loadPlannedMotion:async(t,r,n={})=>{v("loadPlannedMotion","cell",t),v("loadPlannedMotion","plannedMotion",r);const a="/cells/{cell}/planned-motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planCollisionFreePTP:async(t,r,n={})=>{v("planCollisionFreePTP","cell",t);const a="/cells/{cell}/motion-planning/plan-collision-free-ptp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planMotion:async(t,r,n={})=>{v("planMotion","cell",t),v("planMotion","planRequest",r);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planTrajectory:async(t,r,n={})=>{v("planTrajectory","cell",t);const a="/cells/{cell}/motion-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},stopExecution:async(t,r,n={})=>{v("stopExecution","cell",t),v("stopExecution","motion",r);const a="/cells/{cell}/motions/{motion}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},streamMove:async(t,r,n={})=>{v("streamMove","cell",t),v("streamMove","streamMoveRequest",r);const a="/cells/{cell}/motions/streammove".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},streamMoveBackward:async(t,r,n,a,o,s,i={})=>{v("streamMoveBackward","cell",t),v("streamMoveBackward","motion",r),v("streamMoveBackward","playbackSpeedInPercent",n);const l="/cells/{cell}/motions/{motion}/executebackward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...i},h={},p={};$(d,e),await U(h,e),n!==void 0&&(p.playback_speed_in_percent=n),a!==void 0&&(p.response_rate=a),o!==void 0&&(p.response_coordinate_system=o),s!==void 0&&(p.start_location_on_trajectory=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}},streamMoveForward:async(t,r,n,a,o,s,i={})=>{v("streamMoveForward","cell",t),v("streamMoveForward","motion",r),v("streamMoveForward","playbackSpeedInPercent",n);const l="/cells/{cell}/motions/{motion}/executeforward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...i},h={},p={};$(d,e),await U(h,e),n!==void 0&&(p.playback_speed_in_percent=n),a!==void 0&&(p.response_rate=a),o!==void 0&&(p.response_coordinate_system=o),s!==void 0&&(p.start_location_on_trajectory=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}},streamMoveToTrajectoryViaJointPTP:async(t,r,n,a,o,s,i,l,c,u,d={})=>{v("streamMoveToTrajectoryViaJointPTP","cell",t),v("streamMoveToTrajectoryViaJointPTP","motion",r),v("streamMoveToTrajectoryViaJointPTP","locationOnTrajectory",n);const h="/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),p=new URL(h,k);let f;e&&(f=e.baseOptions);const m={method:"GET",...f,...d},y={},S={};$(m,e),await U(y,e),n!==void 0&&(S.location_on_trajectory=n),a&&(S["limit_override.joint_velocity_limits.joints"]=a),o&&(S["limit_override.joint_acceleration_limits.joints"]=o),s!==void 0&&(S["limit_override.tcp_velocity_limit"]=s),i!==void 0&&(S["limit_override.tcp_acceleration_limit"]=i),l!==void 0&&(S["limit_override.tcp_orientation_velocity_limit"]=l),c!==void 0&&(S["limit_override.tcp_orientation_acceleration_limit"]=c),u!==void 0&&(S.responses_coordinate_system=u),D(p,S);let E=f&&f.headers?f.headers:{};return m.headers={...y,...E,...d.headers},{url:L(p),options:m}}}},Ye=function(e){const t=l2(e);return{async deleteAllMotions(r,n){var i,l;const a=await t.deleteAllMotions(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.deleteAllMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async deleteMotion(r,n,a){var l,c;const o=await t.deleteMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.deleteMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async executeTrajectory(r,n,a){var l,c;const o=await t.executeTrajectory(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.executeTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMotionTrajectory(r,n,a,o,s){var u,d;const i=await t.getMotionTrajectory(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionApi.getMotionTrajectory"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getMotionTrajectorySample(r,n,a,o,s){var u,d;const i=await t.getMotionTrajectorySample(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionApi.getMotionTrajectorySample"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getPlannedMotion(r,n,a,o){var c,u;const s=await t.getPlannedMotion(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionApi.getPlannedMotion"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getPlanningMotionGroupModels(r,n){var i,l;const a=await t.getPlanningMotionGroupModels(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.getPlanningMotionGroupModels"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listMotions(r,n){var i,l;const a=await t.listMotions(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionApi.listMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async loadPlannedMotion(r,n,a){var l,c;const o=await t.loadPlannedMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.loadPlannedMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planCollisionFreePTP(r,n,a){var l,c;const o=await t.planCollisionFreePTP(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planCollisionFreePTP"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planMotion(r,n,a){var l,c;const o=await t.planMotion(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planMotion"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planTrajectory(r,n,a){var l,c;const o=await t.planTrajectory(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.planTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async stopExecution(r,n,a){var l,c;const o=await t.stopExecution(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.stopExecution"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamMove(r,n,a){var l,c;const o=await t.streamMove(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionApi.streamMove"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async streamMoveBackward(r,n,a,o,s,i,l){var h,p;const c=await t.streamMoveBackward(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["MotionApi.streamMoveBackward"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)},async streamMoveForward(r,n,a,o,s,i,l){var h,p;const c=await t.streamMoveForward(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["MotionApi.streamMoveForward"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)},async streamMoveToTrajectoryViaJointPTP(r,n,a,o,s,i,l,c,u,d,h){var y,S;const p=await t.streamMoveToTrajectoryViaJointPTP(r,n,a,o,s,i,l,c,u,d,h),f=(e==null?void 0:e.serverIndex)??0,m=(S=(y=j["MotionApi.streamMoveToTrajectoryViaJointPTP"])==null?void 0:y[f])==null?void 0:S.url;return(E,O)=>B(p,V,M,e)(E,m||O)}}};class c2 extends Ve{deleteAllMotions(t,r){return Ye(this.configuration).deleteAllMotions(t,r).then(n=>n(this.axios,this.basePath))}deleteMotion(t,r,n){return Ye(this.configuration).deleteMotion(t,r,n).then(a=>a(this.axios,this.basePath))}executeTrajectory(t,r,n){return Ye(this.configuration).executeTrajectory(t,r,n).then(a=>a(this.axios,this.basePath))}getMotionTrajectory(t,r,n,a,o){return Ye(this.configuration).getMotionTrajectory(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getMotionTrajectorySample(t,r,n,a,o){return Ye(this.configuration).getMotionTrajectorySample(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getPlannedMotion(t,r,n,a){return Ye(this.configuration).getPlannedMotion(t,r,n,a).then(o=>o(this.axios,this.basePath))}getPlanningMotionGroupModels(t,r){return Ye(this.configuration).getPlanningMotionGroupModels(t,r).then(n=>n(this.axios,this.basePath))}listMotions(t,r){return Ye(this.configuration).listMotions(t,r).then(n=>n(this.axios,this.basePath))}loadPlannedMotion(t,r,n){return Ye(this.configuration).loadPlannedMotion(t,r,n).then(a=>a(this.axios,this.basePath))}planCollisionFreePTP(t,r,n){return Ye(this.configuration).planCollisionFreePTP(t,r,n).then(a=>a(this.axios,this.basePath))}planMotion(t,r,n){return Ye(this.configuration).planMotion(t,r,n).then(a=>a(this.axios,this.basePath))}planTrajectory(t,r,n){return Ye(this.configuration).planTrajectory(t,r,n).then(a=>a(this.axios,this.basePath))}stopExecution(t,r,n){return Ye(this.configuration).stopExecution(t,r,n).then(a=>a(this.axios,this.basePath))}streamMove(t,r,n){return Ye(this.configuration).streamMove(t,r,n).then(a=>a(this.axios,this.basePath))}streamMoveBackward(t,r,n,a,o,s,i){return Ye(this.configuration).streamMoveBackward(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveForward(t,r,n,a,o,s,i){return Ye(this.configuration).streamMoveForward(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveToTrajectoryViaJointPTP(t,r,n,a,o,s,i,l,c,u,d){return Ye(this.configuration).streamMoveToTrajectoryViaJointPTP(t,r,n,a,o,s,i,l,c,u,d).then(h=>h(this.axios,this.basePath))}}const u2=function(e){return{activateAllMotionGroups:async(t,r,n={})=>{v("activateAllMotionGroups","cell",t),v("activateAllMotionGroups","controller",r);const a="/cells/{cell}/motion-groups/all".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.controller=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},activateMotionGroup:async(t,r,n={})=>{v("activateMotionGroup","cell",t),v("activateMotionGroup","motionGroup",r);const a="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),r!==void 0&&(c.motion_group=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deactivateMotionGroup:async(t,r,n={})=>{v("deactivateMotionGroup","cell",t),v("deactivateMotionGroup","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listMotionGroups:async(t,r={})=>{v("listMotionGroups","cell",t);const n="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}}}},so=function(e){const t=u2(e);return{async activateAllMotionGroups(r,n,a){var l,c;const o=await t.activateAllMotionGroups(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.activateAllMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async activateMotionGroup(r,n,a){var l,c;const o=await t.activateMotionGroup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.activateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deactivateMotionGroup(r,n,a){var l,c;const o=await t.deactivateMotionGroup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupApi.deactivateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listMotionGroups(r,n){var i,l;const a=await t.listMotionGroups(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["MotionGroupApi.listMotionGroups"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class d2 extends Ve{activateAllMotionGroups(t,r,n){return so(this.configuration).activateAllMotionGroups(t,r,n).then(a=>a(this.axios,this.basePath))}activateMotionGroup(t,r,n){return so(this.configuration).activateMotionGroup(t,r,n).then(a=>a(this.axios,this.basePath))}deactivateMotionGroup(t,r,n){return so(this.configuration).deactivateMotionGroup(t,r,n).then(a=>a(this.axios,this.basePath))}listMotionGroups(t,r){return so(this.configuration).listMotionGroups(t,r).then(n=>n(this.axios,this.basePath))}}const h2=function(e){return{getActivePayload:async(t,r,n={})=>{v("getActivePayload","cell",t),v("getActivePayload","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/payloads/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getActiveTcp:async(t,r,n,a={})=>{v("getActiveTcp","cell",t),v("getActiveTcp","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getCurrentMotionGroupState:async(t,r,n,a,o={})=>{v("getCurrentMotionGroupState","cell",t),v("getCurrentMotionGroupState","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};$(c,e),await U(u,e),n!==void 0&&(d.tcp=n),a!==void 0&&(d.response_coordinate_system=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getInfoCapabilities:async(t,r,n={})=>{v("getInfoCapabilities","cell",t),v("getInfoCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/info-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMotionGroupSpecification:async(t,r,n={})=>{v("getMotionGroupSpecification","cell",t),v("getMotionGroupSpecification","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/specification".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getMounting:async(t,r,n={})=>{v("getMounting","cell",t),v("getMounting","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getOptimizerConfiguration:async(t,r,n,a={})=>{v("getOptimizerConfiguration","cell",t),v("getOptimizerConfiguration","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/optimizer-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.tcp=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getSafetySetup:async(t,r,n={})=>{v("getSafetySetup","cell",t),v("getSafetySetup","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/safety-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listPayloads:async(t,r,n={})=>{v("listPayloads","cell",t),v("listPayloads","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/payloads".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listTcps:async(t,r,n,a={})=>{v("listTcps","cell",t),v("listTcps","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.rotation_type=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},streamMotionGroupState:async(t,r,n,a,o,s={})=>{v("streamMotionGroupState","cell",t),v("streamMotionGroupState","motionGroup",r);const i="/cells/{cell}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),l=new URL(i,k);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...s},d={},h={};$(u,e),await U(d,e),n!==void 0&&(h.response_rate=n),a!==void 0&&(h.response_coordinate_system=a),o!==void 0&&(h.tcp=o),D(l,h);let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...s.headers},{url:L(l),options:u}}}},St=function(e){const t=h2(e);return{async getActivePayload(r,n,a){var l,c;const o=await t.getActivePayload(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getActivePayload"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getActiveTcp(r,n,a,o){var c,u;const s=await t.getActiveTcp(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.getActiveTcp"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getCurrentMotionGroupState(r,n,a,o,s){var u,d;const i=await t.getCurrentMotionGroupState(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["MotionGroupInfosApi.getCurrentMotionGroupState"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getInfoCapabilities(r,n,a){var l,c;const o=await t.getInfoCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getInfoCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMotionGroupSpecification(r,n,a){var l,c;const o=await t.getMotionGroupSpecification(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getMotionGroupSpecification"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getMounting(r,n,a){var l,c;const o=await t.getMounting(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getMounting"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getOptimizerConfiguration(r,n,a,o){var c,u;const s=await t.getOptimizerConfiguration(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.getOptimizerConfiguration"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getSafetySetup(r,n,a){var l,c;const o=await t.getSafetySetup(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.getSafetySetup"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listPayloads(r,n,a){var l,c;const o=await t.listPayloads(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupInfosApi.listPayloads"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listTcps(r,n,a,o){var c,u;const s=await t.listTcps(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupInfosApi.listTcps"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async streamMotionGroupState(r,n,a,o,s,i){var d,h;const l=await t.streamMotionGroupState(r,n,a,o,s,i),c=(e==null?void 0:e.serverIndex)??0,u=(h=(d=j["MotionGroupInfosApi.streamMotionGroupState"])==null?void 0:d[c])==null?void 0:h.url;return(p,f)=>B(l,V,M,e)(p,u||f)}}};class p2 extends Ve{getActivePayload(t,r,n){return St(this.configuration).getActivePayload(t,r,n).then(a=>a(this.axios,this.basePath))}getActiveTcp(t,r,n,a){return St(this.configuration).getActiveTcp(t,r,n,a).then(o=>o(this.axios,this.basePath))}getCurrentMotionGroupState(t,r,n,a,o){return St(this.configuration).getCurrentMotionGroupState(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getInfoCapabilities(t,r,n){return St(this.configuration).getInfoCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}getMotionGroupSpecification(t,r,n){return St(this.configuration).getMotionGroupSpecification(t,r,n).then(a=>a(this.axios,this.basePath))}getMounting(t,r,n){return St(this.configuration).getMounting(t,r,n).then(a=>a(this.axios,this.basePath))}getOptimizerConfiguration(t,r,n,a){return St(this.configuration).getOptimizerConfiguration(t,r,n,a).then(o=>o(this.axios,this.basePath))}getSafetySetup(t,r,n){return St(this.configuration).getSafetySetup(t,r,n).then(a=>a(this.axios,this.basePath))}listPayloads(t,r,n){return St(this.configuration).listPayloads(t,r,n).then(a=>a(this.axios,this.basePath))}listTcps(t,r,n,a){return St(this.configuration).listTcps(t,r,n,a).then(o=>o(this.axios,this.basePath))}streamMotionGroupState(t,r,n,a,o,s){return St(this.configuration).streamMotionGroupState(t,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}}const m2=function(e){return{directionJogging:async(t,r,n={})=>{v("directionJogging","cell",t),v("directionJogging","directionJoggingRequest",r);const a="/cells/{cell}/motion-groups/move-tcp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getJoggingCapabilities:async(t,r,n={})=>{v("getJoggingCapabilities","cell",t),v("getJoggingCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/jogging-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},jointJogging:async(t,r,n={})=>{v("jointJogging","cell",t),v("jointJogging","jointJoggingRequest",r);const a="/cells/{cell}/motion-groups/move-joint".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},stopJogging:async(t,r,n={})=>{v("stopJogging","cell",t),v("stopJogging","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},io=function(e){const t=m2(e);return{async directionJogging(r,n,a){var l,c;const o=await t.directionJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.directionJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getJoggingCapabilities(r,n,a){var l,c;const o=await t.getJoggingCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.getJoggingCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async jointJogging(r,n,a){var l,c;const o=await t.jointJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.jointJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async stopJogging(r,n,a){var l,c;const o=await t.stopJogging(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupJoggingApi.stopJogging"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class f2 extends Ve{directionJogging(t,r,n){return io(this.configuration).directionJogging(t,r,n).then(a=>a(this.axios,this.basePath))}getJoggingCapabilities(t,r,n){return io(this.configuration).getJoggingCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}jointJogging(t,r,n){return io(this.configuration).jointJogging(t,r,n).then(a=>a(this.axios,this.basePath))}stopJogging(t,r,n){return io(this.configuration).stopJogging(t,r,n).then(a=>a(this.axios,this.basePath))}}const g2=function(e){return{calculateAllInverseKinematic:async(t,r,n,a={})=>{v("calculateAllInverseKinematic","cell",t),v("calculateAllInverseKinematic","motionGroup",r),v("calculateAllInverseKinematic","allJointPositionsRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-all-joint-positions".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},calculateForwardKinematic:async(t,r,n,a={})=>{v("calculateForwardKinematic","cell",t),v("calculateForwardKinematic","motionGroup",r),v("calculateForwardKinematic","tcpPoseRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-tcp-pose".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},calculateInverseKinematic:async(t,r,n,a={})=>{v("calculateInverseKinematic","cell",t),v("calculateInverseKinematic","motionGroup",r),v("calculateInverseKinematic","jointPositionRequest",n);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-joint-position".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},getKinematicCapabilities:async(t,r,n={})=>{v("getKinematicCapabilities","cell",t),v("getKinematicCapabilities","motionGroup",r);const a="/cells/{cell}/motion-groups/{motion-group}/kinematic-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},lo=function(e){const t=g2(e);return{async calculateAllInverseKinematic(r,n,a,o){var c,u;const s=await t.calculateAllInverseKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateAllInverseKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async calculateForwardKinematic(r,n,a,o){var c,u;const s=await t.calculateForwardKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateForwardKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async calculateInverseKinematic(r,n,a,o){var c,u;const s=await t.calculateInverseKinematic(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["MotionGroupKinematicApi.calculateInverseKinematic"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getKinematicCapabilities(r,n,a){var l,c;const o=await t.getKinematicCapabilities(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["MotionGroupKinematicApi.getKinematicCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class y2 extends Ve{calculateAllInverseKinematic(t,r,n,a){return lo(this.configuration).calculateAllInverseKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}calculateForwardKinematic(t,r,n,a){return lo(this.configuration).calculateForwardKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}calculateInverseKinematic(t,r,n,a){return lo(this.configuration).calculateInverseKinematic(t,r,n,a).then(o=>o(this.axios,this.basePath))}getKinematicCapabilities(t,r,n){return lo(this.configuration).getKinematicCapabilities(t,r,n).then(a=>a(this.axios,this.basePath))}}const b2=function(e){return{createProgramRunner:async(t,r,n={})=>{v("createProgramRunner","cell",t),v("createProgramRunner","request",r);const a="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="text/plain",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},executeProgram:async(t,r,n={})=>{v("executeProgram","cell",t),v("executeProgram","codeWithArguments",r);const a="/cells/{cell}/programs/execute".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},getProgramRunner:async(t,r,n={})=>{v("getProgramRunner","cell",t),v("getProgramRunner","runner",r);const a="/cells/{cell}/programs/runners/{runner}".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramRunners:async(t,r={})=>{v("listProgramRunners","cell",t);const n="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},migrateProgram:async(t,r,n={})=>{v("migrateProgram","cell",t),v("migrateProgram","request1",r);const a="/cells/{cell}/programs/migrate".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="text/plain",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},planProgram:async(t,r,n,a={})=>{v("planProgram","cell",t),v("planProgram","request",r);const o="/cells/{cell}/programs/plan".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.identifier=n),c["Content-Type"]="text/plain",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(r,l,e),{url:L(s),options:l}},stopAllProgramRunner:async(t,r={})=>{v("stopAllProgramRunner","cell",t);const n="/cells/{cell}/programs/runners/stop".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},stopProgramRunner:async(t,r,n={})=>{v("stopProgramRunner","cell",t),v("stopProgramRunner","runner",r);const a="/cells/{cell}/programs/runners/{runner}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}}}},nr=function(e){const t=b2(e);return{async createProgramRunner(r,n,a){var l,c;const o=await t.createProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.createProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async executeProgram(r,n,a){var l,c;const o=await t.executeProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.executeProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgramRunner(r,n,a){var l,c;const o=await t.getProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.getProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramRunners(r,n){var i,l;const a=await t.listProgramRunners(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramApi.listProgramRunners"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async migrateProgram(r,n,a){var l,c;const o=await t.migrateProgram(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.migrateProgram"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async planProgram(r,n,a,o){var c,u;const s=await t.planProgram(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ProgramApi.planProgram"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async stopAllProgramRunner(r,n){var i,l;const a=await t.stopAllProgramRunner(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramApi.stopAllProgramRunner"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async stopProgramRunner(r,n,a){var l,c;const o=await t.stopProgramRunner(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramApi.stopProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)}}};class x2 extends Ve{createProgramRunner(t,r,n){return nr(this.configuration).createProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}executeProgram(t,r,n){return nr(this.configuration).executeProgram(t,r,n).then(a=>a(this.axios,this.basePath))}getProgramRunner(t,r,n){return nr(this.configuration).getProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramRunners(t,r){return nr(this.configuration).listProgramRunners(t,r).then(n=>n(this.axios,this.basePath))}migrateProgram(t,r,n){return nr(this.configuration).migrateProgram(t,r,n).then(a=>a(this.axios,this.basePath))}planProgram(t,r,n,a){return nr(this.configuration).planProgram(t,r,n,a).then(o=>o(this.axios,this.basePath))}stopAllProgramRunner(t,r){return nr(this.configuration).stopAllProgramRunner(t,r).then(n=>n(this.axios,this.basePath))}stopProgramRunner(t,r,n){return nr(this.configuration).stopProgramRunner(t,r,n).then(a=>a(this.axios,this.basePath))}}const v2=function(e){return{clearProgramsValues:async(t,r={})=>{v("clearProgramsValues","cell",t);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},createProgramsValue:async(t,r,n={})=>{v("createProgramsValue","cell",t),v("createProgramsValue","requestBody",r);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...n},l={},c={};$(i,e),await U(l,e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=de(r,i,e),{url:L(o),options:i}},deleteProgramValue:async(t,r,n={})=>{v("deleteProgramValue","cell",t),v("deleteProgramValue","key",r);const a="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getProgramValue:async(t,r,n={})=>{v("getProgramValue","cell",t),v("getProgramValue","key",r);const a="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listProgramsValues:async(t,r={})=>{v("listProgramsValues","cell",t);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},updateProgramValue:async(t,r,n,a={})=>{v("updateProgramValue","cell",t),v("updateProgramValue","key",r),v("updateProgramValue","value",n);const o="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},en=function(e){const t=v2(e);return{async clearProgramsValues(r,n){var i,l;const a=await t.clearProgramsValues(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramValuesApi.clearProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async createProgramsValue(r,n,a){var l,c;const o=await t.createProgramsValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.createProgramsValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteProgramValue(r,n,a){var l,c;const o=await t.deleteProgramValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.deleteProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getProgramValue(r,n,a){var l,c;const o=await t.getProgramValue(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["ProgramValuesApi.getProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listProgramsValues(r,n){var i,l;const a=await t.listProgramsValues(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["ProgramValuesApi.listProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async updateProgramValue(r,n,a,o){var c,u;const s=await t.updateProgramValue(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["ProgramValuesApi.updateProgramValue"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class S2 extends Ve{clearProgramsValues(t,r){return en(this.configuration).clearProgramsValues(t,r).then(n=>n(this.axios,this.basePath))}createProgramsValue(t,r,n){return en(this.configuration).createProgramsValue(t,r,n).then(a=>a(this.axios,this.basePath))}deleteProgramValue(t,r,n){return en(this.configuration).deleteProgramValue(t,r,n).then(a=>a(this.axios,this.basePath))}getProgramValue(t,r,n){return en(this.configuration).getProgramValue(t,r,n).then(a=>a(this.axios,this.basePath))}listProgramsValues(t,r){return en(this.configuration).listProgramsValues(t,r).then(n=>n(this.axios,this.basePath))}updateProgramValue(t,r,n,a){return en(this.configuration).updateProgramValue(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const O2=function(e){return{deleteStoredCollider:async(t,r,n={})=>{v("deleteStoredCollider","cell",t),v("deleteStoredCollider","collider",r);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteStoredCollisionLinkChain:async(t,r,n={})=>{v("deleteStoredCollisionLinkChain","cell",t),v("deleteStoredCollisionLinkChain","linkChain",r);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},deleteStoredCollisionTool:async(t,r,n={})=>{v("deleteStoredCollisionTool","cell",t),v("deleteStoredCollisionTool","tool",r);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getDefaultLinkChain:async(t,r,n={})=>{v("getDefaultLinkChain","cell",t),v("getDefaultLinkChain","motionGroupModel",r);const a="/cells/{cell}/store/collision/default-link-chains/{motion-group-model}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group-model}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollider:async(t,r,n={})=>{v("getStoredCollider","cell",t),v("getStoredCollider","collider",r);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionLinkChain:async(t,r,n={})=>{v("getStoredCollisionLinkChain","cell",t),v("getStoredCollisionLinkChain","linkChain",r);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionTool:async(t,r,n={})=>{v("getStoredCollisionTool","cell",t),v("getStoredCollisionTool","tool",r);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listCollisionLinkChains:async(t,r={})=>{v("listCollisionLinkChains","cell",t);const n="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listStoredColliders:async(t,r={})=>{v("listStoredColliders","cell",t);const n="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},listStoredCollisionTools:async(t,r={})=>{v("listStoredCollisionTools","cell",t);const n="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeCollider:async(t,r,n,a={})=>{v("storeCollider","cell",t),v("storeCollider","collider",r),v("storeCollider","collider2",n);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},storeCollisionLinkChain:async(t,r,n,a={})=>{v("storeCollisionLinkChain","cell",t),v("storeCollisionLinkChain","linkChain",r),v("storeCollisionLinkChain","collider",n);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},storeCollisionTool:async(t,r,n,a={})=>{v("storeCollisionTool","cell",t),v("storeCollisionTool","tool",r),v("storeCollisionTool","requestBody",n);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},ct=function(e){const t=O2(e);return{async deleteStoredCollider(r,n,a){var l,c;const o=await t.deleteStoredCollider(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteStoredCollisionLinkChain(r,n,a){var l,c;const o=await t.deleteStoredCollisionLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async deleteStoredCollisionTool(r,n,a){var l,c;const o=await t.deleteStoredCollisionTool(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getDefaultLinkChain(r,n,a){var l,c;const o=await t.getDefaultLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getDefaultLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollider(r,n,a){var l,c;const o=await t.getStoredCollider(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionLinkChain(r,n,a){var l,c;const o=await t.getStoredCollisionLinkChain(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionTool(r,n,a){var l,c;const o=await t.getStoredCollisionTool(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listCollisionLinkChains(r,n){var i,l;const a=await t.listCollisionLinkChains(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listStoredColliders(r,n){var i,l;const a=await t.listStoredColliders(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async listStoredCollisionTools(r,n){var i,l;const a=await t.listStoredCollisionTools(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeCollider(r,n,a,o){var c,u;const s=await t.storeCollider(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async storeCollisionLinkChain(r,n,a,o){var c,u;const s=await t.storeCollisionLinkChain(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async storeCollisionTool(r,n,a,o){var c,u;const s=await t.storeCollisionTool(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class w2 extends Ve{deleteStoredCollider(t,r,n){return ct(this.configuration).deleteStoredCollider(t,r,n).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionLinkChain(t,r,n){return ct(this.configuration).deleteStoredCollisionLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionTool(t,r,n){return ct(this.configuration).deleteStoredCollisionTool(t,r,n).then(a=>a(this.axios,this.basePath))}getDefaultLinkChain(t,r,n){return ct(this.configuration).getDefaultLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollider(t,r,n){return ct(this.configuration).getStoredCollider(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionLinkChain(t,r,n){return ct(this.configuration).getStoredCollisionLinkChain(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionTool(t,r,n){return ct(this.configuration).getStoredCollisionTool(t,r,n).then(a=>a(this.axios,this.basePath))}listCollisionLinkChains(t,r){return ct(this.configuration).listCollisionLinkChains(t,r).then(n=>n(this.axios,this.basePath))}listStoredColliders(t,r){return ct(this.configuration).listStoredColliders(t,r).then(n=>n(this.axios,this.basePath))}listStoredCollisionTools(t,r){return ct(this.configuration).listStoredCollisionTools(t,r).then(n=>n(this.axios,this.basePath))}storeCollider(t,r,n,a){return ct(this.configuration).storeCollider(t,r,n,a).then(o=>o(this.axios,this.basePath))}storeCollisionLinkChain(t,r,n,a){return ct(this.configuration).storeCollisionLinkChain(t,r,n,a).then(o=>o(this.axios,this.basePath))}storeCollisionTool(t,r,n,a){return ct(this.configuration).storeCollisionTool(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const C2=function(e){return{deleteStoredCollisionScene:async(t,r,n={})=>{v("deleteStoredCollisionScene","cell",t),v("deleteStoredCollisionScene","scene",r);const a="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getStoredCollisionScene:async(t,r,n={})=>{v("getStoredCollisionScene","cell",t),v("getStoredCollisionScene","scene",r);const a="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listStoredCollisionScenes:async(t,r={})=>{v("listStoredCollisionScenes","cell",t);const n="/cells/{cell}/store/collision/scenes".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeCollisionScene:async(t,r,n,a={})=>{v("storeCollisionScene","cell",t),v("storeCollisionScene","scene",r),v("storeCollisionScene","collisionSceneAssembly",n);const o="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}}}},co=function(e){const t=C2(e);return{async deleteStoredCollisionScene(r,n,a){var l,c;const o=await t.deleteStoredCollisionScene(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionScenesApi.deleteStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getStoredCollisionScene(r,n,a){var l,c;const o=await t.getStoredCollisionScene(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreCollisionScenesApi.getStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listStoredCollisionScenes(r,n){var i,l;const a=await t.listStoredCollisionScenes(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreCollisionScenesApi.listStoredCollisionScenes"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeCollisionScene(r,n,a,o){var c,u;const s=await t.storeCollisionScene(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["StoreCollisionScenesApi.storeCollisionScene"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class P2 extends Ve{deleteStoredCollisionScene(t,r,n){return co(this.configuration).deleteStoredCollisionScene(t,r,n).then(a=>a(this.axios,this.basePath))}getStoredCollisionScene(t,r,n){return co(this.configuration).getStoredCollisionScene(t,r,n).then(a=>a(this.axios,this.basePath))}listStoredCollisionScenes(t,r){return co(this.configuration).listStoredCollisionScenes(t,r).then(n=>n(this.axios,this.basePath))}storeCollisionScene(t,r,n,a){return co(this.configuration).storeCollisionScene(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const T2=function(e){return{clearAllObjects:async(t,r={})=>{v("clearAllObjects","cell",t);const n="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},deleteObject:async(t,r,n={})=>{v("deleteObject","cell",t),v("deleteObject","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getObject:async(t,r,n={})=>{v("getObject","cell",t),v("getObject","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getObjectMetadata:async(t,r,n={})=>{v("getObjectMetadata","cell",t),v("getObjectMetadata","key",r);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"HEAD",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listAllObjectKeys:async(t,r={})=>{v("listAllObjectKeys","cell",t);const n="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},storeObject:async(t,r,n,a,o={})=>{v("storeObject","cell",t),v("storeObject","key",r);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={},h=new(e&&e.formDataCtor||FormData);$(c,e),await U(u,e),a!==void 0&&h.append("AnyValue",new Blob([JSON.stringify(a)],{type:"application/json"})),u["Content-Type"]="multipart/form-data",n!=null&&(u["X-Metadata"]=typeof n=="string"?n:JSON.stringify(n)),D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},c.data=h,{url:L(i),options:c}}}},tn=function(e){const t=T2(e);return{async clearAllObjects(r,n){var i,l;const a=await t.clearAllObjects(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreObjectApi.clearAllObjects"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async deleteObject(r,n,a){var l,c;const o=await t.deleteObject(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.deleteObject"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getObject(r,n,a){var l,c;const o=await t.getObject(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.getObject"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getObjectMetadata(r,n,a){var l,c;const o=await t.getObjectMetadata(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["StoreObjectApi.getObjectMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listAllObjectKeys(r,n){var i,l;const a=await t.listAllObjectKeys(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["StoreObjectApi.listAllObjectKeys"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async storeObject(r,n,a,o,s){var u,d;const i=await t.storeObject(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["StoreObjectApi.storeObject"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class R2 extends Ve{clearAllObjects(t,r){return tn(this.configuration).clearAllObjects(t,r).then(n=>n(this.axios,this.basePath))}deleteObject(t,r,n){return tn(this.configuration).deleteObject(t,r,n).then(a=>a(this.axios,this.basePath))}getObject(t,r,n){return tn(this.configuration).getObject(t,r,n).then(a=>a(this.axios,this.basePath))}getObjectMetadata(t,r,n){return tn(this.configuration).getObjectMetadata(t,r,n).then(a=>a(this.axios,this.basePath))}listAllObjectKeys(t,r){return tn(this.configuration).listAllObjectKeys(t,r).then(n=>n(this.axios,this.basePath))}storeObject(t,r,n,a,o){return tn(this.configuration).storeObject(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const A2=function(e){return{checkNovaVersionUpdate:async(t,r={})=>{v("checkNovaVersionUpdate","channel",t);const n="/system/update",a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};$(s,e),await U(i,e),t!==void 0&&(l.channel=t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:L(a),options:s}},getDiagnosePackage:async(t={})=>{const r="/system/diagnosis-package/zip",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},getSystemStatus:async(t={})=>{const r="/system/status",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},getSystemVersion:async(t={})=>{const r="/system/version",n=new URL(r,k);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},s={},i={};$(o,e),await U(s,e),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...t.headers},{url:L(n),options:o}},updateNovaVersion:async(t,r={})=>{v("updateNovaVersion","updateNovaVersionRequest",t);const n="/system/update",a=new URL(n,k);let o;e&&(o=e.baseOptions);const s={method:"PUT",...o,...r},i={},l={};$(s,e),await U(i,e),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=de(t,s,e),{url:L(a),options:s}}}},Zn=function(e){const t=A2(e);return{async checkNovaVersionUpdate(r,n){var i,l;const a=await t.checkNovaVersionUpdate(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["SystemApi.checkNovaVersionUpdate"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)},async getDiagnosePackage(r){var s,i;const n=await t.getDiagnosePackage(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getDiagnosePackage"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async getSystemStatus(r){var s,i;const n=await t.getSystemStatus(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getSystemStatus"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async getSystemVersion(r){var s,i;const n=await t.getSystemVersion(r),a=(e==null?void 0:e.serverIndex)??0,o=(i=(s=j["SystemApi.getSystemVersion"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>B(n,V,M,e)(l,o||c)},async updateNovaVersion(r,n){var i,l;const a=await t.updateNovaVersion(r,n),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=j["SystemApi.updateNovaVersion"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>B(a,V,M,e)(c,s||u)}}};class _2 extends Ve{checkNovaVersionUpdate(t,r){return Zn(this.configuration).checkNovaVersionUpdate(t,r).then(n=>n(this.axios,this.basePath))}getDiagnosePackage(t){return Zn(this.configuration).getDiagnosePackage(t).then(r=>r(this.axios,this.basePath))}getSystemStatus(t){return Zn(this.configuration).getSystemStatus(t).then(r=>r(this.axios,this.basePath))}getSystemVersion(t){return Zn(this.configuration).getSystemVersion(t).then(r=>r(this.axios,this.basePath))}updateNovaVersion(t,r){return Zn(this.configuration).updateNovaVersion(t,r).then(n=>n(this.axios,this.basePath))}}const E2=function(e){return{getMotionGroupState:async(t,r,n,a={})=>{v("getMotionGroupState","cell",t),v("getMotionGroupState","controller",r),v("getMotionGroupState","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},getMotionGroups:async(t,r,n={})=>{v("getMotionGroups","cell",t),v("getMotionGroups","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/motiongroups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getVirtualRobotIOValue:async(t,r,n,a={})=>{v("getVirtualRobotIOValue","cell",t),v("getVirtualRobotIOValue","controller",r),v("getVirtualRobotIOValue","io",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listIOs:async(t,r,n={})=>{v("listIOs","cell",t),v("listIOs","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/ios".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},setMotionGroupState:async(t,r,n,a,o={})=>{v("setMotionGroupState","cell",t),v("setMotionGroupState","controller",r),v("setMotionGroupState","id",n),v("setMotionGroupState","motionGroupJoints",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}},setVirtualRobotIOValue:async(t,r,n,a,o,s,i={})=>{v("setVirtualRobotIOValue","cell",t),v("setVirtualRobotIOValue","controller",r),v("setVirtualRobotIOValue","io",n);const l="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(n))),c=new URL(l,k);let u;e&&(u=e.baseOptions);const d={method:"PUT",...u,...i},h={},p={};$(d,e),await U(h,e),a!==void 0&&(p.bool=a),o!==void 0&&(p.integer=o),s!==void 0&&(p.double=s),D(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...i.headers},{url:L(c),options:d}}}},rn=function(e){const t=E2(e);return{async getMotionGroupState(r,n,a,o){var c,u;const s=await t.getMotionGroupState(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotApi.getMotionGroupState"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getMotionGroups(r,n,a){var l,c;const o=await t.getMotionGroups(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotApi.getMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getVirtualRobotIOValue(r,n,a,o){var c,u;const s=await t.getVirtualRobotIOValue(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotApi.getVirtualRobotIOValue"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listIOs(r,n,a){var l,c;const o=await t.listIOs(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotApi.listIOs"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async setMotionGroupState(r,n,a,o,s){var u,d;const i=await t.setMotionGroupState(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotApi.setMotionGroupState"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async setVirtualRobotIOValue(r,n,a,o,s,i,l){var h,p;const c=await t.setVirtualRobotIOValue(r,n,a,o,s,i,l),u=(e==null?void 0:e.serverIndex)??0,d=(p=(h=j["VirtualRobotApi.setVirtualRobotIOValue"])==null?void 0:h[u])==null?void 0:p.url;return(f,m)=>B(c,V,M,e)(f,d||m)}}};class V2 extends Ve{getMotionGroupState(t,r,n,a){return rn(this.configuration).getMotionGroupState(t,r,n,a).then(o=>o(this.axios,this.basePath))}getMotionGroups(t,r,n){return rn(this.configuration).getMotionGroups(t,r,n).then(a=>a(this.axios,this.basePath))}getVirtualRobotIOValue(t,r,n,a){return rn(this.configuration).getVirtualRobotIOValue(t,r,n,a).then(o=>o(this.axios,this.basePath))}listIOs(t,r,n){return rn(this.configuration).listIOs(t,r,n).then(a=>a(this.axios,this.basePath))}setMotionGroupState(t,r,n,a,o){return rn(this.configuration).setMotionGroupState(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}setVirtualRobotIOValue(t,r,n,a,o,s,i){return rn(this.configuration).setVirtualRobotIOValue(t,r,n,a,o,s,i).then(l=>l(this.axios,this.basePath))}}const I2=function(e){return{externalJointsStream:async(t,r,n,a={})=>{v("externalJointsStream","cell",t),v("externalJointsStream","controller",r),v("externalJointsStream","externalJointStreamDatapoint",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/externalJointsStream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},getMotionGroupBehavior:async(t,r,n,a={})=>{v("getMotionGroupBehavior","cell",t),v("getMotionGroupBehavior","controller",r),v("getMotionGroupBehavior","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setMotionGroupBehavior:async(t,r,n,a,o={})=>{v("setMotionGroupBehavior","cell",t),v("setMotionGroupBehavior","controller",r),v("setMotionGroupBehavior","id",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.behavior=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}}}},ji=function(e){const t=I2(e);return{async externalJointsStream(r,n,a,o){var c,u;const s=await t.externalJointsStream(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotBehaviorApi.externalJointsStream"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async getMotionGroupBehavior(r,n,a,o){var c,u;const s=await t.getMotionGroupBehavior(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotBehaviorApi.getMotionGroupBehavior"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setMotionGroupBehavior(r,n,a,o,s){var u,d;const i=await t.setMotionGroupBehavior(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotBehaviorApi.setMotionGroupBehavior"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class M2 extends Ve{externalJointsStream(t,r,n,a){return ji(this.configuration).externalJointsStream(t,r,n,a).then(o=>o(this.axios,this.basePath))}getMotionGroupBehavior(t,r,n,a){return ji(this.configuration).getMotionGroupBehavior(t,r,n,a).then(o=>o(this.axios,this.basePath))}setMotionGroupBehavior(t,r,n,a,o){return ji(this.configuration).setMotionGroupBehavior(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}const j2=function(e){return{getCycleTime:async(t,r,n={})=>{v("getCycleTime","cell",t),v("getCycleTime","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getEStop:async(t,r,n={})=>{v("getEStop","cell",t),v("getEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},getOperationMode:async(t,r,n={})=>{v("getOperationMode","cell",t),v("getOperationMode","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},pushEStop:async(t,r,n={})=>{v("pushEStop","cell",t),v("pushEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop/push".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},releaseEStop:async(t,r,n={})=>{v("releaseEStop","cell",t),v("releaseEStop","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/estop/release".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},setOperationMode:async(t,r,n,a={})=>{v("setOperationMode","cell",t),v("setOperationMode","controller",r),v("setOperationMode","mode",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),n!==void 0&&(u.mode=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}}}},nn=function(e){const t=j2(e);return{async getCycleTime(r,n,a){var l,c;const o=await t.getCycleTime(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getCycleTime"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getEStop(r,n,a){var l,c;const o=await t.getEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async getOperationMode(r,n,a){var l,c;const o=await t.getOperationMode(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.getOperationMode"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async pushEStop(r,n,a){var l,c;const o=await t.pushEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.pushEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async releaseEStop(r,n,a){var l,c;const o=await t.releaseEStop(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotModeApi.releaseEStop"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async setOperationMode(r,n,a,o){var c,u;const s=await t.setOperationMode(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotModeApi.setOperationMode"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)}}};class k2 extends Ve{getCycleTime(t,r,n){return nn(this.configuration).getCycleTime(t,r,n).then(a=>a(this.axios,this.basePath))}getEStop(t,r,n){return nn(this.configuration).getEStop(t,r,n).then(a=>a(this.axios,this.basePath))}getOperationMode(t,r,n){return nn(this.configuration).getOperationMode(t,r,n).then(a=>a(this.axios,this.basePath))}pushEStop(t,r,n){return nn(this.configuration).pushEStop(t,r,n).then(a=>a(this.axios,this.basePath))}releaseEStop(t,r,n){return nn(this.configuration).releaseEStop(t,r,n).then(a=>a(this.axios,this.basePath))}setOperationMode(t,r,n,a){return nn(this.configuration).setOperationMode(t,r,n,a).then(o=>o(this.axios,this.basePath))}}const $2=function(e){return{addVirtualRobotCoordinateSystem:async(t,r,n,a={})=>{v("addVirtualRobotCoordinateSystem","cell",t),v("addVirtualRobotCoordinateSystem","controller",r),v("addVirtualRobotCoordinateSystem","coordinateSystem",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...a},c={},u={};$(l,e),await U(c,e),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=de(n,l,e),{url:L(s),options:l}},addVirtualRobotTcp:async(t,r,n,a,o={})=>{v("addVirtualRobotTcp","cell",t),v("addVirtualRobotTcp","controller",r),v("addVirtualRobotTcp","id",n),v("addVirtualRobotTcp","robotTcp",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}},deleteVirtualRobotCoordinateSystem:async(t,r,n,a,o={})=>{v("deleteVirtualRobotCoordinateSystem","cell",t),v("deleteVirtualRobotCoordinateSystem","controller",r),v("deleteVirtualRobotCoordinateSystem","coordinateSystem",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},u={},d={};$(c,e),await U(u,e),a!==void 0&&(d.delete_dependent=a),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},deleteVirtualRobotTcp:async(t,r,n,a,o={})=>{v("deleteVirtualRobotTcp","cell",t),v("deleteVirtualRobotTcp","controller",r),v("deleteVirtualRobotTcp","id",n),v("deleteVirtualRobotTcp","tcp",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))).replace("{tcp}",encodeURIComponent(String(a))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},u={},d={};$(c,e),await U(u,e),D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:L(i),options:c}},getVirtualRobotMounting:async(t,r,n,a={})=>{v("getVirtualRobotMounting","cell",t),v("getVirtualRobotMounting","controller",r),v("getVirtualRobotMounting","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},listVirtualRobotCoordinateSystems:async(t,r,n={})=>{v("listVirtualRobotCoordinateSystems","cell",t),v("listVirtualRobotCoordinateSystems","controller",r);const a="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(a,k);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...n},l={},c={};$(i,e),await U(l,e),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:L(o),options:i}},listVirtualRobotTcps:async(t,r,n,a={})=>{v("listVirtualRobotTcps","cell",t),v("listVirtualRobotTcps","controller",r),v("listVirtualRobotTcps","id",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,k);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...a},c={},u={};$(l,e),await U(c,e),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:L(s),options:l}},setVirtualRobotMounting:async(t,r,n,a,o={})=>{v("setVirtualRobotMounting","cell",t),v("setVirtualRobotMounting","controller",r),v("setVirtualRobotMounting","id",n),v("setVirtualRobotMounting","coordinateSystem",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(n))),i=new URL(s,k);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},u={},d={};$(c,e),await U(u,e),u["Content-Type"]="application/json",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=de(a,c,e),{url:L(i),options:c}}}},ar=function(e){const t=$2(e);return{async addVirtualRobotCoordinateSystem(r,n,a,o){var c,u;const s=await t.addVirtualRobotCoordinateSystem(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.addVirtualRobotCoordinateSystem"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async addVirtualRobotTcp(r,n,a,o,s){var u,d;const i=await t.addVirtualRobotTcp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.addVirtualRobotTcp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteVirtualRobotCoordinateSystem(r,n,a,o,s){var u,d;const i=await t.deleteVirtualRobotCoordinateSystem(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async deleteVirtualRobotTcp(r,n,a,o,s){var u,d;const i=await t.deleteVirtualRobotTcp(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.deleteVirtualRobotTcp"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)},async getVirtualRobotMounting(r,n,a,o){var c,u;const s=await t.getVirtualRobotMounting(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.getVirtualRobotMounting"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async listVirtualRobotCoordinateSystems(r,n,a){var l,c;const o=await t.listVirtualRobotCoordinateSystems(r,n,a),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=j["VirtualRobotSetupApi.listVirtualRobotCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>B(o,V,M,e)(u,i||d)},async listVirtualRobotTcps(r,n,a,o){var c,u;const s=await t.listVirtualRobotTcps(r,n,a,o),i=(e==null?void 0:e.serverIndex)??0,l=(u=(c=j["VirtualRobotSetupApi.listVirtualRobotTcps"])==null?void 0:c[i])==null?void 0:u.url;return(d,h)=>B(s,V,M,e)(d,l||h)},async setVirtualRobotMounting(r,n,a,o,s){var u,d;const i=await t.setVirtualRobotMounting(r,n,a,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(d=(u=j["VirtualRobotSetupApi.setVirtualRobotMounting"])==null?void 0:u[l])==null?void 0:d.url;return(h,p)=>B(i,V,M,e)(h,c||p)}}};class U2 extends Ve{addVirtualRobotCoordinateSystem(t,r,n,a){return ar(this.configuration).addVirtualRobotCoordinateSystem(t,r,n,a).then(o=>o(this.axios,this.basePath))}addVirtualRobotTcp(t,r,n,a,o){return ar(this.configuration).addVirtualRobotTcp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotCoordinateSystem(t,r,n,a,o){return ar(this.configuration).deleteVirtualRobotCoordinateSystem(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotTcp(t,r,n,a,o){return ar(this.configuration).deleteVirtualRobotTcp(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}getVirtualRobotMounting(t,r,n,a){return ar(this.configuration).getVirtualRobotMounting(t,r,n,a).then(o=>o(this.axios,this.basePath))}listVirtualRobotCoordinateSystems(t,r,n){return ar(this.configuration).listVirtualRobotCoordinateSystems(t,r,n).then(a=>a(this.axios,this.basePath))}listVirtualRobotTcps(t,r,n,a){return ar(this.configuration).listVirtualRobotTcps(t,r,n,a).then(o=>o(this.axios,this.basePath))}setVirtualRobotMounting(t,r,n,a,o){return ar(this.configuration).setVirtualRobotMounting(t,r,n,a,o).then(s=>s(this.axios,this.basePath))}}function Nt(e,t,r){return Math.max(t,Math.min(r,e))}class D2{constructor(t=0,r=0,n=0,a=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=n,this._w=a}static slerpFlat(t,r,n,a,o,s,i){let l=n[a+0],c=n[a+1],u=n[a+2],d=n[a+3];const h=o[s+0],p=o[s+1],f=o[s+2],m=o[s+3];if(i===0){t[r+0]=l,t[r+1]=c,t[r+2]=u,t[r+3]=d;return}if(i===1){t[r+0]=h,t[r+1]=p,t[r+2]=f,t[r+3]=m;return}if(d!==m||l!==h||c!==p||u!==f){let y=1-i;const S=l*h+c*p+u*f+d*m,E=S>=0?1:-1,O=1-S*S;if(O>Number.EPSILON){const P=Math.sqrt(O),C=Math.atan2(P,S*E);y=Math.sin(y*C)/P,i=Math.sin(i*C)/P}const w=i*E;if(l=l*y+h*w,c=c*y+p*w,u=u*y+f*w,d=d*y+m*w,y===1-i){const P=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=P,c*=P,u*=P,d*=P}}t[r]=l,t[r+1]=c,t[r+2]=u,t[r+3]=d}static multiplyQuaternionsFlat(t,r,n,a,o,s){const i=n[a],l=n[a+1],c=n[a+2],u=n[a+3],d=o[s],h=o[s+1],p=o[s+2],f=o[s+3];return t[r]=i*f+u*d+l*p-c*h,t[r+1]=l*f+u*h+c*d-i*p,t[r+2]=c*f+u*p+i*h-l*d,t[r+3]=u*f-i*d-l*h-c*p,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,n,a){return this._x=t,this._y=r,this._z=n,this._w=a,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const n=t._x,a=t._y,o=t._z,s=t._order,i=Math.cos,l=Math.sin,c=i(n/2),u=i(a/2),d=i(o/2),h=l(n/2),p=l(a/2),f=l(o/2);switch(s){case"XYZ":this._x=h*u*d+c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d-h*p*f;break;case"YXZ":this._x=h*u*d+c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d+h*p*f;break;case"ZXY":this._x=h*u*d-c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d-h*p*f;break;case"ZYX":this._x=h*u*d-c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d+h*p*f;break;case"YZX":this._x=h*u*d+c*p*f,this._y=c*p*d+h*u*f,this._z=c*u*f-h*p*d,this._w=c*u*d-h*p*f;break;case"XZY":this._x=h*u*d-c*p*f,this._y=c*p*d-h*u*f,this._z=c*u*f+h*p*d,this._w=c*u*d+h*p*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const n=r/2,a=Math.sin(n);return this._x=t.x*a,this._y=t.y*a,this._z=t.z*a,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,n=r[0],a=r[4],o=r[8],s=r[1],i=r[5],l=r[9],c=r[2],u=r[6],d=r[10],h=n+i+d;if(h>0){const p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(u-l)*p,this._y=(o-c)*p,this._z=(s-a)*p}else if(n>i&&n>d){const p=2*Math.sqrt(1+n-i-d);this._w=(u-l)/p,this._x=.25*p,this._y=(a+s)/p,this._z=(o+c)/p}else if(i>d){const p=2*Math.sqrt(1+i-n-d);this._w=(o-c)/p,this._x=(a+s)/p,this._y=.25*p,this._z=(l+u)/p}else{const p=2*Math.sqrt(1+d-n-i);this._w=(s-a)/p,this._x=(o+c)/p,this._y=(l+u)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let n=t.dot(r)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Nt(this.dot(t),-1,1)))}rotateTowards(t,r){const n=this.angleTo(t);if(n===0)return this;const a=Math.min(1,r/n);return this.slerp(t,a),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const n=t._x,a=t._y,o=t._z,s=t._w,i=r._x,l=r._y,c=r._z,u=r._w;return this._x=n*u+s*i+a*c-o*l,this._y=a*u+s*l+o*i-n*c,this._z=o*u+s*c+n*l-a*i,this._w=s*u-n*i-a*l-o*c,this._onChangeCallback(),this}slerp(t,r){if(r===0)return this;if(r===1)return this.copy(t);const n=this._x,a=this._y,o=this._z,s=this._w;let i=s*t._w+n*t._x+a*t._y+o*t._z;if(i<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,i=-i):this.copy(t),i>=1)return this._w=s,this._x=n,this._y=a,this._z=o,this;const l=1-i*i;if(l<=Number.EPSILON){const p=1-r;return this._w=p*s+r*this._w,this._x=p*n+r*this._x,this._y=p*a+r*this._y,this._z=p*o+r*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,i),d=Math.sin((1-r)*u)/c,h=Math.sin(r*u)/c;return this._w=s*d+this._w*h,this._x=n*d+this._x*h,this._y=a*d+this._y*h,this._z=o*d+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,r,n){return this.copy(t).slerp(r,n)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),n=Math.random(),a=Math.sqrt(1-n),o=Math.sqrt(n);return this.set(a*Math.sin(t),a*Math.cos(t),o*Math.sin(r),o*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class pn{constructor(t=0,r=0,n=0){pn.prototype.isVector3=!0,this.x=t,this.y=r,this.z=n}set(t,r,n){return n===void 0&&(n=this.z),this.x=t,this.y=r,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(nh.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(nh.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,n=this.y,a=this.z,o=t.elements;return this.x=o[0]*r+o[3]*n+o[6]*a,this.y=o[1]*r+o[4]*n+o[7]*a,this.z=o[2]*r+o[5]*n+o[8]*a,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,n=this.y,a=this.z,o=t.elements,s=1/(o[3]*r+o[7]*n+o[11]*a+o[15]);return this.x=(o[0]*r+o[4]*n+o[8]*a+o[12])*s,this.y=(o[1]*r+o[5]*n+o[9]*a+o[13])*s,this.z=(o[2]*r+o[6]*n+o[10]*a+o[14])*s,this}applyQuaternion(t){const r=this.x,n=this.y,a=this.z,o=t.x,s=t.y,i=t.z,l=t.w,c=2*(s*a-i*n),u=2*(i*r-o*a),d=2*(o*n-s*r);return this.x=r+l*c+s*d-i*u,this.y=n+l*u+i*c-o*d,this.z=a+l*d+o*u-s*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,n=this.y,a=this.z,o=t.elements;return this.x=o[0]*r+o[4]*n+o[8]*a,this.y=o[1]*r+o[5]*n+o[9]*a,this.z=o[2]*r+o[6]*n+o[10]*a,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=Nt(this.x,t.x,r.x),this.y=Nt(this.y,t.y,r.y),this.z=Nt(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=Nt(this.x,t,r),this.y=Nt(this.y,t,r),this.z=Nt(this.z,t,r),this}clampLength(t,r){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Nt(n,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,n){return this.x=t.x+(r.x-t.x)*n,this.y=t.y+(r.y-t.y)*n,this.z=t.z+(r.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const n=t.x,a=t.y,o=t.z,s=r.x,i=r.y,l=r.z;return this.x=a*l-o*i,this.y=o*s-n*l,this.z=n*i-a*s,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const n=t.dot(this)/r;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return ki.copy(this).projectOnVector(t),this.sub(ki)}reflect(t){return this.sub(ki.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const n=this.dot(t)/r;return Math.acos(Nt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,n=this.y-t.y,a=this.z-t.z;return r*r+n*n+a*a}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,n){const a=Math.sin(r)*t;return this.x=a*Math.sin(n),this.y=Math.cos(r)*t,this.z=a*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,n){return this.x=t*Math.sin(r),this.y=n,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),a=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=n,this.z=a,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,n=Math.sqrt(1-r*r);return this.x=n*Math.cos(t),this.y=r,this.z=n*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ki=new pn,nh=new D2;function L2(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 r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var a=e[n];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(n>0&&(a=a.replace(/^[\/]+/,"")),n<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}var o=t.join("/");o=o.replace(/\/(\?|&|#[^!])/g,"$1");var s=o.split("?");return o=s.shift()+(s.length>0?"?":"")+s.join("&"),o}function $i(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),L2(e)}var Vt={},ah;function B2(){if(ah)return Vt;ah=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.TokenData=void 0,Vt.parse=d,Vt.compile=h,Vt.match=m,Vt.pathToRegexp=y,Vt.stringify=w;const e="/",t=T=>T,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,a="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(T){return T.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function i(T){return T.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*l(T){const I=[...T];let N=0;function b(){let R="";if(r.test(I[++N]))for(R+=I[N];n.test(I[++N]);)R+=I[N];else if(I[N]==='"'){let G=N;for(;N<I.length;){if(I[++N]==='"'){N++,G=0;break}I[N]==="\\"?R+=I[++N]:R+=I[N]}if(G)throw new TypeError(`Unterminated quote at ${G}: ${a}`)}if(!R)throw new TypeError(`Missing parameter name at ${N}: ${a}`);return R}for(;N<I.length;){const R=I[N],G=o[R];if(G)yield{type:G,index:N++,value:R};else if(R==="\\")yield{type:"ESCAPED",index:N++,value:I[N++]};else if(R===":"){const _=b();yield{type:"PARAM",index:N,value:_}}else if(R==="*"){const _=b();yield{type:"WILDCARD",index:N,value:_}}else yield{type:"CHAR",index:N,value:I[N++]}}return{type:"END",index:N,value:""}}class c{constructor(I){this.tokens=I}peek(){if(!this._peek){const I=this.tokens.next();this._peek=I.value}return this._peek}tryConsume(I){const N=this.peek();if(N.type===I)return this._peek=void 0,N.value}consume(I){const N=this.tryConsume(I);if(N!==void 0)return N;const{type:b,index:R}=this.peek();throw new TypeError(`Unexpected ${b} at ${R}, expected ${I}: ${a}`)}text(){let I="",N;for(;N=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)I+=N;return I}}class u{constructor(I){this.tokens=I}}Vt.TokenData=u;function d(T,I={}){const{encodePath:N=t}=I,b=new c(l(T));function R(_){const z=[];for(;;){const re=b.text();re&&z.push({type:"text",value:N(re)});const X=b.tryConsume("PARAM");if(X){z.push({type:"param",name:X});continue}const ae=b.tryConsume("WILDCARD");if(ae){z.push({type:"wildcard",name:ae});continue}if(b.tryConsume("{")){z.push({type:"group",tokens:R("}")});continue}return b.consume(_),z}}const G=R("END");return new u(G)}function h(T,I={}){const{encode:N=encodeURIComponent,delimiter:b=e}=I,R=T instanceof u?T:d(T,I),G=p(R.tokens,b,N);return function(z={}){const[re,...X]=G(z);if(X.length)throw new TypeError(`Missing parameters: ${X.join(", ")}`);return re}}function p(T,I,N){const b=T.map(R=>f(R,I,N));return R=>{const G=[""];for(const _ of b){const[z,...re]=_(R);G[0]+=z,G.push(...re)}return G}}function f(T,I,N){if(T.type==="text")return()=>[T.value];if(T.type==="group"){const R=p(T.tokens,I,N);return G=>{const[_,...z]=R(G);return z.length?[""]:[_]}}const b=N||t;return T.type==="wildcard"&&N!==!1?R=>{const G=R[T.name];if(G==null)return["",T.name];if(!Array.isArray(G)||G.length===0)throw new TypeError(`Expected "${T.name}" to be a non-empty array`);return[G.map((_,z)=>{if(typeof _!="string")throw new TypeError(`Expected "${T.name}/${z}" to be a string`);return b(_)}).join(I)]}:R=>{const G=R[T.name];if(G==null)return["",T.name];if(typeof G!="string")throw new TypeError(`Expected "${T.name}" to be a string`);return[b(G)]}}function m(T,I={}){const{decode:N=decodeURIComponent,delimiter:b=e}=I,{regexp:R,keys:G}=y(T,I),_=G.map(z=>N===!1?t:z.type==="param"?N:re=>re.split(b).map(N));return function(re){const X=R.exec(re);if(!X)return!1;const ae=X[0],te=Object.create(null);for(let oe=1;oe<X.length;oe++){if(X[oe]===void 0)continue;const W=G[oe-1],ee=_[oe-1];te[W.name]=ee(X[oe])}return{path:ae,params:te}}}function y(T,I={}){const{delimiter:N=e,end:b=!0,sensitive:R=!1,trailing:G=!0}=I,_=[],z=[],re=R?"":"i",ae=(Array.isArray(T)?T:[T]).map(W=>W instanceof u?W:d(W,I));for(const{tokens:W}of ae)for(const ee of S(W,0,[])){const ue=E(ee,N,_);z.push(ue)}let te=`^(?:${z.join("|")})`;return G&&(te+=`(?:${i(N)}$)?`),te+=b?"$":`(?=${i(N)}|$)`,{regexp:new RegExp(te,re),keys:_}}function*S(T,I,N){if(I===T.length)return yield N;const b=T[I];if(b.type==="group"){const R=N.slice();for(const G of S(b.tokens,0,R))yield*S(T,I+1,G)}else N.push(b);yield*S(T,I+1,N)}function E(T,I,N){let b="",R="",G=!0;for(let _=0;_<T.length;_++){const z=T[_];if(z.type==="text"){b+=i(z.value),R+=z.value,G||(G=z.value.includes(I));continue}if(z.type==="param"||z.type==="wildcard"){if(!G&&!R)throw new TypeError(`Missing text after "${z.name}": ${a}`);z.type==="param"?b+=`(${O(I,G?"":R)}+)`:b+="([\\s\\S]+)",N.push(z),R="",G=!1;continue}}return b}function O(T,I){return I.length<2?T.length<2?`[^${i(T+I)}]`:`(?:(?!${i(T)})[^${i(I)}])`:T.length<2?`(?:(?!${i(I)})[^${i(T)}])`:`(?:(?!${i(I)}|${i(T)})[\\s\\S])`}function w(T){return T.tokens.map(function I(N,b,R){if(N.type==="text")return s(N.value);if(N.type==="group")return`{${N.tokens.map(I).join("")}}`;const _=P(N.name)&&C(R[b+1])?N.name:JSON.stringify(N.name);if(N.type==="param")return`:${_}`;if(N.type==="wildcard")return`*${_}`;throw new TypeError(`Unexpected token: ${N}`)}).join("")}function P(T){const[I,...N]=T;return r.test(I)?N.every(b=>n.test(b)):!1}function C(T){return(T==null?void 0:T.type)!=="text"?!0:!n.test(T.value[0])}return Vt}var N2=B2();function xf(e,t,r){if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(Math.abs(t[n]-e[n])>r)return!1;return!0}function vf(e,t,r){if(e===void 0&&t||e&&t===void 0)return!1;if(e===void 0||t===void 0)return!0;let n=0;return n+=Math.abs(e.orientation.x-t.orientation.x),n+=Math.abs(e.orientation.y-t.orientation.y),n+=Math.abs(e.orientation.z-t.orientation.z),n+=Math.abs(e.position.x-t.position.x),n+=Math.abs(e.position.y-t.position.y),n+=Math.abs(e.position.z-t.position.z),n>r?!1:e.coordinate_system===t.coordinate_system&&e.tcp===t.tcp}var oh=1e-4,F2=class Sf{constructor(t,r,n,a,o,s,i,l,c,u,d,h){this.nova=t,this.controller=r,this.motionGroup=n,this.initialMotionState=a,this.motionStateSocket=o,this.isVirtual=s,this.tcps=i,this.motionGroupSpecification=l,this.safetySetup=c,this.mounting=u,this.initialControllerState=d,this.controllerStateSocket=h,this.connectedJoggingCartesianSocket=null,this.connectedJoggingJointsSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.rapidlyChangingMotionState=a,this.controllerState=d,h.addEventListener("message",p=>{var f;const m=(f=lr(p.data))==null?void 0:f.result;m&&je.runInAction(()=>{this.controllerState=m})}),o.addEventListener("message",p=>{var f;const m=(f=lr(p.data))==null?void 0:f.result;if(!m)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${p.data}`);xf(this.rapidlyChangingMotionState.state.joint_position.joints,m.state.joint_position.joints,oh)||je.runInAction(()=>{this.rapidlyChangingMotionState.state=m.state}),vf(this.rapidlyChangingMotionState.tcp_pose,m.tcp_pose,oh)||je.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=m.tcp_pose})}),je.makeAutoObservable(this)}static connect(t,r,n){return Ee(this,null,function*(){var a,o;const[s,i]=r.split("@"),l=n.find(C=>C.controller===i),c=l==null?void 0:l.physical_motion_groups.find(C=>C.motion_group===r);if(!l||!c)throw new Error(`Controller ${i} or motion group ${r} not found`);const u=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),d=yield u.firstMessage(),h=(a=lr(d.data))==null?void 0:a.result;if(!h)throw new Error(`Unable to parse initial motion state message ${d.data}`);console.log(`Connected motion state websocket to motion group ${c.motion_group}. Initial state:
151
151
  `,h);const f=(yield t.api.controller.getRobotController(l.controller)).configuration.kind==="VirtualController",m=yield Ee(this,null,function*(){try{return yield t.api.motionGroupInfos.getMounting(c.motion_group)}catch(C){return console.error(`Error fetching mounting for ${c.motion_group}`,C),null}}),y=t.openReconnectingWebsocket(`/controllers/${l.controller}/state-stream?response_rate=1000`),S=yield y.firstMessage(),E=(o=lr(S.data))==null?void 0:o.result;if(!E)throw new Error(`Unable to parse initial controller state message ${S.data}`);console.log(`Connected controller state websocket to controller ${l.controller}. Initial state:
152
- `,E);const{tcps:O}=yield t.api.motionGroupInfos.listTcps(r),w=yield t.api.motionGroupInfos.getMotionGroupSpecification(r),P=yield t.api.motionGroupInfos.getSafetySetup(r);return new Sf(t,l,c,h,u,f,O,w,P,m,E,y)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}get dhParameters(){return this.motionGroupSpecification.dh_parameters}get safetyZones(){return this.safetySetup.safety_zones}get mountingPosition(){return this.mounting?[this.mounting.pose.position.x/1e3,this.mounting.pose.position.y/1e3,this.mounting.pose.position.z/1e3]:[0,0,0]}get mountingQuaternion(){var t,r,n,a,o,s;const i=new Ue.Vector3(((r=(t=this.mounting)==null?void 0:t.pose.orientation)==null?void 0:r.x)||0,((a=(n=this.mounting)==null?void 0:n.pose.orientation)==null?void 0:a.y)||0,((s=(o=this.mounting)==null?void 0:o.pose.orientation)==null?void 0:s.z)||0),l=i.length(),c=i.normalize();return new Ue.Quaternion().setFromAxisAngle(c,l)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}deactivate(){return Ee(this,null,function*(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}je.runInAction(()=>{this.activationState="deactivating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_MONITOR"),je.runInAction(()=>{this.activationState="inactive"})}catch(t){throw je.runInAction(()=>{this.activationState="active"}),t}})}activate(){return Ee(this,null,function*(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}je.runInAction(()=>{this.activationState="activating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_CONTROL"),je.runInAction(()=>{this.activationState="active"})}catch(t){throw je.runInAction(()=>{this.activationState="inactive"}),t}})}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.connectedJoggingCartesianSocket&&this.connectedJoggingCartesianSocket.close(),this.connectedJoggingJointsSocket&&this.connectedJoggingJointsSocket.close()}setJoggingVelocity(t){this.joggingVelocity=t}},zE=class Of{constructor(t,r={}){this.motionStream=t,this.opts=r,this.cartesianWebsocket=null,this.jointWebsocket=null,this.cartesianJoggingOpts={}}static open(t,r){return Ee(this,arguments,function*(n,a,o={}){const s=yield n.connectMotionStream(a);return new Of(s,o)})}get motionGroupId(){return this.motionStream.motionGroupId}get nova(){return this.motionStream.nova}get numJoints(){return this.motionStream.joints.length}get activeJoggingMode(){return this.cartesianWebsocket?"cartesian":this.jointWebsocket?"joint":"increment"}get activeWebsocket(){return this.cartesianWebsocket||this.jointWebsocket}stop(){return Ee(this,null,function*(){this.cartesianWebsocket&&this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:{x:0,y:0,z:0},rotation_direction:{x:0,y:0,z:0},position_velocity:0,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId}),this.jointWebsocket&&this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:new Array(this.numJoints).fill(0)})})}dispose(){this.cartesianWebsocket&&this.cartesianWebsocket.dispose(),this.jointWebsocket&&this.jointWebsocket.dispose()}setJoggingMode(t,r){console.log("Setting jogging mode to",t),r&&(WA(this.cartesianJoggingOpts,r)||this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),this.cartesianJoggingOpts=r),t!=="cartesian"&&this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),t!=="joint"&&this.jointWebsocket&&(this.jointWebsocket.dispose(),this.jointWebsocket=null),t==="cartesian"&&!this.cartesianWebsocket&&(this.cartesianWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-tcp"),this.cartesianWebsocket.addEventListener("message",n=>{const a=lr(n.data);if(a&&"error"in a)if(this.opts.onError)this.opts.onError(n.data);else throw new Error(n.data)})),t==="joint"&&!this.jointWebsocket&&(this.jointWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-joint"),this.jointWebsocket.addEventListener("message",n=>{const a=lr(n.data);if(a&&"error"in a)if(this.opts.onError)this.opts.onError(n.data);else throw new Error(n.data)}))}startJointRotation(t){return Ee(this,arguments,function*({joint:r,direction:n,velocityRadsPerSec:a}){if(!this.jointWebsocket)throw new Error("Joint jogging websocket not connected; call setJoggingMode first");const o=new Array(this.numJoints).fill(0);o[r]=n==="-"?-a:a,this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:o})})}startTCPTranslation(t){return Ee(this,arguments,function*({axis:r,direction:n,velocityMmPerSec:a}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=n==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:s,rotation_direction:o,position_velocity:a,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}startTCPRotation(t){return Ee(this,arguments,function*({axis:r,direction:n,velocityRadsPerSec:a}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=n==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:o,rotation_direction:s,position_velocity:0,rotation_velocity:a,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}runIncrementalCartesianMotion(t){return Ee(this,arguments,function*({currentTcpPose:r,currentJoints:n,coordSystemId:a,velocityInRelevantUnits:o,axis:s,direction:i,motion:l}){var c;const u=[];if(!c_(r.coordinate_system,a))throw new Error(`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${a}`);if(l.type==="translate"){const p=Object.assign({},r.position);p[s]+=l.distanceMm*(i==="-"?-1:1),u.push({settings:{limits_override:{tcp_velocity_limit:o}},line:{position:p,orientation:r.orientation,coordinate_system:a}})}else if(l.type==="rotate"){const p=new pn(r.orientation.x,r.orientation.y,r.orientation.z),f=p.length(),m=p.clone().normalize(),y=l.distanceRads*(i==="-"?-1:1),S=new pn(0,0,0);S[s]=1;const E=Math.cos(.5*y)*Math.cos(.5*f),O=Math.sin(.5*y)*Math.sin(.5*f),w=Math.sin(.5*y)*Math.cos(.5*f),P=Math.cos(.5*y)*Math.sin(.5*f),C=S.dot(m),T=S.clone().cross(m),I=2*Math.acos(E-O*C),N=I/Math.sin(.5*I),b=new pn().addScaledVector(T,O).addScaledVector(S,w).addScaledVector(m,P).multiplyScalar(N);u.push({settings:{limits_override:{tcp_orientation_velocity_limit:o}},line:{position:r.position,orientation:b,coordinate_system:a}})}const d=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:n,tcp:this.cartesianJoggingOpts.tcpId,commands:u}),h=(c=d.plan_successful_response)==null?void 0:c.motion;if(!h)throw new Error(`Failed to plan jogging increment motion ${JSON.stringify(d)}`);yield this.nova.api.motion.streamMoveForward(h,100,void 0,void 0,void 0,{timeout:1e3*60})})}runIncrementalJointRotation(t){return Ee(this,arguments,function*({joint:r,currentJoints:n,velocityRadsPerSec:a,direction:o,distanceRads:s}){var i;const l=[...n.joints];l[r]+=s*(o==="-"?-1:1);const c=new Array(n.joints.length).fill(a),u=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:n,commands:[{settings:{limits_override:{joint_velocity_limits:{joints:c}}},joint_ptp:{joints:l}}]}),d=(i=u.plan_successful_response)==null?void 0:i.motion;if(!d){console.error("Failed to plan jogging increment motion",u);return}yield this.nova.api.motion.streamMoveForward(d,100,void 0,void 0,void 0,{timeout:1e3*60})})}},sh=1e-4;function GE(e,t){const r=new Ot.Vector3(t.x,t.y,t.z),n=new Ot.Vector3(e.x,e.y,e.z),a=r.length(),o=r.normalize();let s=n.length(),i=n.normalize();i.dot(o)<0&&(s=-s,i=i.multiplyScalar(-1));let l=s-a;return l-=2*Math.PI*Math.floor((l+Math.PI)/(2*Math.PI)),s=a+l,i.multiplyScalar(s)}var HE=class wf{constructor(t,r,n,a,o){this.nova=t,this.controller=r,this.motionGroup=n,this.initialMotionState=a,this.motionStateSocket=o,this.rapidlyChangingMotionState=a,o.addEventListener("message",s=>{var i;const l=(i=lr(s.data))==null?void 0:i.result;if(!l)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${s.data}`);xf(this.rapidlyChangingMotionState.state.joint_position.joints,l.state.joint_position.joints,sh)||je.runInAction(()=>{this.rapidlyChangingMotionState.state=l.state}),vf(this.rapidlyChangingMotionState.tcp_pose,l.tcp_pose,sh)||je.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose==null?this.rapidlyChangingMotionState.tcp_pose=l.tcp_pose:this.rapidlyChangingMotionState.tcp_pose={position:l.tcp_pose.position,orientation:GE(l.tcp_pose.orientation,this.rapidlyChangingMotionState.tcp_pose.orientation),tcp:l.tcp_pose.tcp,coordinate_system:l.tcp_pose.coordinate_system}})}),je.makeAutoObservable(this)}static open(t,r){return Ee(this,null,function*(){var n;const{instances:a}=yield t.api.controller.listControllers(),[o,s]=r.split("@"),i=a.find(h=>h.controller===s),l=i==null?void 0:i.physical_motion_groups.find(h=>h.motion_group===r);if(!i||!l)throw new Error(`Controller ${s} or motion group ${r} not found`);const c=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),u=yield c.firstMessage();console.log("got first message",u);const d=(n=lr(u.data))==null?void 0:n.result;if(!d)throw new Error(`Unable to parse initial motion state message ${u.data}`);return console.log(`Connected motion state websocket to motion group ${l.motion_group}. Initial state:
153
- `,d),new wf(t,i,l,d,c)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}dispose(){this.motionStateSocket.close()}},qE=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(_E),this.cell=this.withUnwrappedResponsesOnly(H2),this.deviceConfig=this.withCellId(Z2),this.motionGroup=this.withCellId(dE),this.motionGroupInfos=this.withCellId(pE),this.controller=this.withCellId(W2),this.program=this.withCellId(xE),this.programValues=this.withCellId(SE),this.controllerIOs=this.withCellId(Y2),this.motionGroupKinematic=this.withCellId(yE),this.motion=this.withCellId(cE),this.coordinateSystems=this.withCellId(Q2),this.application=this.withCellId(rh),this.applicationGlobal=this.withUnwrappedResponsesOnly(rh),this.motionGroupJogging=this.withCellId(fE),this.virtualRobot=this.withCellId(VE),this.virtualRobotSetup=this.withCellId(UE),this.virtualRobotMode=this.withCellId(kE),this.virtualRobotBehavior=this.withCellId(ME),this.libraryProgramMetadata=this.withCellId(nE),this.libraryProgram=this.withCellId(tE),this.libraryRecipeMetadata=this.withCellId(iE),this.libraryRecipe=this.withCellId(oE),this.storeObject=this.withCellId(RE),this.storeCollisionComponents=this.withCellId(wE),this.storeCollisionScenes=this.withCellId(PE)}withCellId(e){var t,r;const n=new e(dl(ln({},this.opts),{isJsonMime:a=>a==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:V.create());for(const a of Reflect.ownKeys(Reflect.getPrototypeOf(n)))if(a!=="constructor"&&typeof n[a]=="function"){const o=n[a];n[a]=(...s)=>o.apply(n,[this.cellId,...s]).then(i=>i.data)}return n}withUnwrappedResponsesOnly(e){var t,r;const n=new e(dl(ln({},this.opts),{isJsonMime:a=>a==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:V.create());for(const a of Reflect.ownKeys(Reflect.getPrototypeOf(n)))if(a!=="constructor"&&typeof n[a]=="function"){const o=n[a];n[a]=(...s)=>o.apply(n,s).then(i=>i.data)}return n}},WE=class{constructor(){this.connections=[]}handleAPIRequest(e){return Ee(this,null,function*(){var t,r,n;const a=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return{instances:[{controller:"mock-ur5e",model_name:"UniversalRobots::Controller",host:"mock-ur5e",allow_software_install_on_controller:!0,physical_motion_groups:[{motion_group:"0@mock-ur5e",name_from_controller:"UR5e",active:!1,model_from_controller:"UniversalRobots_UR5e"}],has_error:!1,error_details:""}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{kind:"VirtualController",manufacturer:"universalrobots",position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/specification",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],mechanical_joint_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/safety-setup",handle(){return{safety_settings:[{safety_state:"SAFETY_NORMAL",settings:{joint_position_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-2.96705961227417,upper_limit:2.96705961227417,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-1.7453292608261108,upper_limit:2.7925267219543457,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-3.3161256313323975,upper_limit:.40142571926116943,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-3.4906585216522217,upper_limit:3.4906585216522217,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-2.4434609413146973,upper_limit:2.4434609413146973,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-4.71238899230957,upper_limit:4.71238899230957,unlimited:!1}],joint_velocity_limits:[{joint:"JOINTNAME_AXIS_1",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_2",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_3",limit:3.4906585216522217},{joint:"JOINTNAME_AXIS_4",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_5",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_6",limit:6.981317043304443}],joint_acceleration_limits:[],joint_torque_limits:[],tcp_velocity_limit:1800}}],safety_zones:[{id:1,priority:0,geometry:{compound:{child_geometries:[{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820},{x:-800,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:-1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:-800,y:1330,z:-1820},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500},{x:1650,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:1650,y:-1330,z:1500},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Cell workzone"},motion_group_uid:1},{id:2,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-1850},{x:865,y:1330,z:-1850},{x:865,y:-720,z:-1850},{x:1650,y:-720,z:-1850},{x:1650,y:1330,z:-920},{x:865,y:1330,z:-920},{x:865,y:-720,z:-920},{x:1650,y:-720,z:-920}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Transport"},motion_group_uid:1},{id:3,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-600},{x:865,y:1330,z:-600},{x:865,y:430,z:-600},{x:1650,y:430,z:-600},{x:1650,y:1330,z:-1250},{x:865,y:1330,z:-1250},{x:865,y:430,z:-1250},{x:1650,y:430,z:-1250}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Tunel"},motion_group_uid:1},{id:4,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:-760,z:-440},{x:900,y:-760,z:-440},{x:900,y:-1330,z:-440},{x:1650,y:-1330,z:-440},{x:1650,y:-760,z:-1800},{x:900,y:-760,z:-1800},{x:900,y:-1330,z:-1800},{x:1650,y:-1330,z:-1800}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Fanuc controller"},motion_group_uid:1},{id:6,priority:0,geometry:{convex_hull:{vertices:[{x:-200,y:-200,z:-1900},{x:200,y:-200,z:-1900},{x:200,y:200,z:-1900},{x:-200,y:200,z:-1900},{x:-200,y:-200,z:-350},{x:200,y:-200,z:-350},{x:200,y:200,z:-350},{x:-200,y:200,z:-350}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Robot base"},motion_group_uid:1}],robot_model_geometries:[{link_index:1,geometry:{sphere:{radius:270},init_pose:{position:{x:-70,y:-70,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link1_sphere"}},{link_index:2,geometry:{capsule:{radius:160,cylinder_height:800},init_pose:{position:{x:-450,y:40,z:170},orientation:{x:0,y:-.7071067811865475,z:0,w:.7071067811865476}},id:"link2_capsule"}},{link_index:3,geometry:{sphere:{radius:270},init_pose:{position:{x:-110,y:10,z:-100},orientation:{x:0,y:0,z:0,w:1}},id:"link3_sphere"}},{link_index:4,geometry:{capsule:{radius:110,cylinder_height:600},init_pose:{position:{x:0,y:300,z:40},orientation:{x:-.7071067811865475,y:0,z:0,w:.7071067811865476}},id:"link4_capsule"}},{link_index:5,geometry:{sphere:{radius:75},init_pose:{position:{x:0,y:0,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link5_sphere"}}],tool_geometries:[]}}},{method:"GET",path:"/cells/:cellId/coordinate-systems",handle(){return{coordinatesystems:[{coordinate_system:"",name:"world",reference_uid:"",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0],type:"ROTATION_VECTOR"}}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/tcps",handle(){return{tcps:[{id:"Flange",readable_name:"Default-Flange",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0,0],type:"ROTATION_VECTOR"}},{id:"complex-tcp-position",readable_name:"Complex TCP Position",position:{x:-200,y:300,z:150},rotation:{angles:[-.12139440409113832,-.06356210998212003,-.2023240068185639,0],type:"ROTATION_VECTOR"}}]}}}],o=((t=e.method)==null?void 0:t.toUpperCase())||"GET",s="/cells"+((n=(r=e.url)==null?void 0:r.split("/cells")[1])==null?void 0:n.split("?")[0]);for(const i of a){const l=NE.match(i.path)(s||"");if(o===i.method&&l){const c=i.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new bl(`No mock handler matched this request: ${o} ${s}`,"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(JE)})),e.url.includes("/move-joint")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:48:26.096266444Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3492152690887451,-1.5659207105636597,1.6653711795806885,-1.0991662740707397,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:""},tcp_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"671259"}],sequence_number:"671259"},movement_state:"MOVEMENT_STATE_MOVING"}})})),e.url.includes("/move-tcp")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:43:12.188335774Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3352527618408203,-1.5659207105636597,1.6653711795806885,-1.110615611076355,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:""},tcp_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"627897"}],sequence_number:"627897"},movement_state:"MOVEMENT_STATE_MOVING"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},JE={result:{state:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",joint_position:{joints:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:""},tcp_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"1"},tcp_pose:{position:{x:302.90748476115556,y:-152.87065869452337,z:424.0454619321661},orientation:{x:2.3403056115045353,y:-1.1706836379431356,z:.9772511964246311},coordinate_system:"",tcp:"Flange"}}},YE=class{constructor(e){this.authPromise=null,this.accessToken=null;var t;const r=(t=e.cellId)!=null?t:"cell";this.config=ln({cellId:r},e),this.accessToken=e.accessToken||_i.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new WE);const n=V.create({baseURL:$i(this.config.instanceUrl,"/api/v1"),headers:{"User-Agent":"Wandelbots-Nova-JS-SDK"}});n.interceptors.request.use(a=>Ee(this,null,function*(){return a.headers.Authorization||(this.accessToken?a.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(a.headers.Authorization=`Basic ${btoa(e.username+":"+e.password)}`)),a})),typeof window<"u"&&n.interceptors.response.use(a=>a,a=>Ee(this,null,function*(){var o,s;if(N2(a))if(((o=a.response)==null?void 0:o.status)===401)try{if(yield this.renewAuthentication(),a.config)return this.accessToken?a.config.headers.Authorization=`Bearer ${this.accessToken}`:delete a.config.headers.Authorization,n.request(a.config)}catch(i){return Promise.reject(i)}else((s=a.response)==null?void 0:s.status)===503&&(yield fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(a)})),this.api=new qE(r,dl(ln({},e),{basePath:$i(this.config.instanceUrl,"/api/v1"),isJsonMime:a=>a==="application/json",baseOptions:ln(ln({},this.mock?{adapter:a=>this.mock.handleAPIRequest(a)}:{}),e.baseOptions),axiosInstance:n}))}renewAuthentication(){return Ee(this,null,function*(){if(!this.authPromise){this.authPromise=d_(this.config.instanceUrl);try{this.accessToken=yield this.authPromise,this.accessToken?_i.setString("wbjs.access_token",this.accessToken):_i.delete("wbjs.access_token")}finally{this.authPromise=null}}})}makeWebsocketURL(e){const t=new URL($i(this.config.instanceUrl,`/api/v1/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 i_(this.makeWebsocketURL(e),{mock:this.mock})}connectMotionStream(e){return Ee(this,null,function*(){return yield HE.open(this,e)})}connectJogger(e){return Ee(this,null,function*(){return yield zE.open(this,e)})}connectMotionGroups(e){return Ee(this,null,function*(){const{instances:t}=yield this.api.controller.listControllers();return Promise.all(e.map(r=>FE.connect(this,r,t)))})}connectMotionGroup(e){return Ee(this,null,function*(){return(yield this.connectMotionGroups([e]))[0]})}};function KE(e){try{return JSON.stringify(e)}catch{return}}function QE(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function XE(e){var t,r,n,a;return e instanceof bl&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof bl&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${KE(e)||e}`}const Cc=e=>{const t=e.softTimeout||3e3,[r,n]=J.useState(!1),a=A.useTheme();return J.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),g.jsx(A.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:a.palette.text.primary},children:e.error?g.jsx(Cf,{loadingMessage:e.message,error:e.error}):g.jsxs(g.Fragment,{children:[g.jsx(A.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&g.jsx("div",{children:e.message}),g.jsx(A.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:a.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Cf=e=>{const t=XE(e.error),r=e.error instanceof Error?e.error.stack:null,n=A.useTheme();return g.jsxs(A.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Al.lowerFirst(A.capitalize(e.loadingMessage))} - `:"")+t,g.jsx("br",{}),r&&g.jsx("pre",{children:r})]})},ZE=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),eV=J.forwardRef(ZE),tV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),rV=J.forwardRef(tV),nV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),aV=J.forwardRef(nV),oV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),sV=J.forwardRef(oV);function iV(){this.__data__=[],this.size=0}function Pf(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Pf(e[r][0],t))return r;return-1}var lV=Array.prototype,cV=lV.splice;function uV(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():cV.call(t,r,1),--this.size,!0}function dV(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function hV(e){return Fs(this.__data__,e)>-1}function pV(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Zt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zt.prototype.clear=iV;Zt.prototype.delete=uV;Zt.prototype.get=dV;Zt.prototype.has=hV;Zt.prototype.set=pV;function mV(){this.__data__=new Zt,this.size=0}function fV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gV(e){return this.__data__.get(e)}function yV(e){return this.__data__.has(e)}var bV="[object AsyncFunction]",xV="[object Function]",vV="[object GeneratorFunction]",SV="[object Proxy]";function Tf(e){if(!_r(e))return!1;var t=Lr(e);return t==xV||t==vV||t==bV||t==SV}var Ui=Dt["__core-js_shared__"],ih=function(){var e=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function OV(e){return!!ih&&ih in e}var wV=Function.prototype,CV=wV.toString;function Nr(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var PV=/[\\^$.*+?()[\]{}|]/g,TV=/^\[object .+?Constructor\]$/,RV=Function.prototype,AV=Object.prototype,_V=RV.toString,EV=AV.hasOwnProperty,VV=RegExp("^"+_V.call(EV).replace(PV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IV(e){if(!_r(e)||OV(e))return!1;var t=Tf(e)?VV:TV;return t.test(Nr(e))}function MV(e,t){return e==null?void 0:e[t]}function Fr(e,t){var r=MV(e,t);return IV(r)?r:void 0}var wa=Fr(Dt,"Map"),Ca=Fr(Object,"create");function jV(){this.__data__=Ca?Ca(null):{},this.size=0}function kV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $V="__lodash_hash_undefined__",UV=Object.prototype,DV=UV.hasOwnProperty;function LV(e){var t=this.__data__;if(Ca){var r=t[e];return r===$V?void 0:r}return DV.call(t,e)?t[e]:void 0}var BV=Object.prototype,NV=BV.hasOwnProperty;function FV(e){var t=this.__data__;return Ca?t[e]!==void 0:NV.call(t,e)}var zV="__lodash_hash_undefined__";function GV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===void 0?zV:t,this}function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ir.prototype.clear=jV;Ir.prototype.delete=kV;Ir.prototype.get=LV;Ir.prototype.has=FV;Ir.prototype.set=GV;function HV(){this.size=0,this.__data__={hash:new Ir,map:new(wa||Zt),string:new Ir}}function qV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zs(e,t){var r=e.__data__;return qV(t)?r[typeof t=="string"?"string":"hash"]:r.map}function WV(e){var t=zs(this,e).delete(e);return this.size-=t?1:0,t}function JV(e){return zs(this,e).get(e)}function YV(e){return zs(this,e).has(e)}function KV(e,t){var r=zs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}er.prototype.clear=HV;er.prototype.delete=WV;er.prototype.get=JV;er.prototype.has=YV;er.prototype.set=KV;var QV=200;function XV(e,t){var r=this.__data__;if(r instanceof Zt){var n=r.__data__;if(!wa||n.length<QV-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new er(n)}return r.set(e,t),this.size=r.size,this}function qt(e){var t=this.__data__=new Zt(e);this.size=t.size}qt.prototype.clear=mV;qt.prototype.delete=fV;qt.prototype.get=gV;qt.prototype.has=yV;qt.prototype.set=XV;var ZV="__lodash_hash_undefined__";function eI(e){return this.__data__.set(e,ZV),this}function tI(e){return this.__data__.has(e)}function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new er;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=eI;Xo.prototype.has=tI;function rI(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function nI(e,t){return e.has(t)}var aI=1,oI=2;function Rf(e,t,r,n,a,o){var s=r&aI,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=r&oI?new Xo:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var f=e[d],m=t[d];if(n)var y=s?n(m,f,d,t,e,o):n(f,m,d,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!rI(t,function(S,E){if(!nI(p,E)&&(f===S||a(f,S,r,n,o)))return p.push(E)})){h=!1;break}}else if(!(f===m||a(f,m,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var lh=Dt.Uint8Array;function sI(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function iI(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var lI=1,cI=2,uI="[object Boolean]",dI="[object Date]",hI="[object Error]",pI="[object Map]",mI="[object Number]",fI="[object RegExp]",gI="[object Set]",yI="[object String]",bI="[object Symbol]",xI="[object ArrayBuffer]",vI="[object DataView]",ch=hr?hr.prototype:void 0,Di=ch?ch.valueOf:void 0;function SI(e,t,r,n,a,o,s){switch(r){case vI:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xI:return!(e.byteLength!=t.byteLength||!o(new lh(e),new lh(t)));case uI:case dI:case mI:return Pf(+e,+t);case hI:return e.name==t.name&&e.message==t.message;case fI:case yI:return e==t+"";case pI:var i=sI;case gI:var l=n&lI;if(i||(i=iI),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=cI,s.set(e,t);var u=Rf(i(e),i(t),n,a,o,s);return s.delete(e),u;case bI:if(Di)return Di.call(e)==Di.call(t)}return!1}function OI(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Ut=Array.isArray;function wI(e,t,r){var n=t(e);return Ut(e)?n:OI(n,r(e))}function CI(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}function PI(){return[]}var TI=Object.prototype,RI=TI.propertyIsEnumerable,uh=Object.getOwnPropertySymbols,AI=uh?function(e){return e==null?[]:(e=Object(e),CI(uh(e),function(t){return RI.call(e,t)}))}:PI;function _I(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var EI="[object Arguments]";function dh(e){return Er(e)&&Lr(e)==EI}var Af=Object.prototype,VI=Af.hasOwnProperty,II=Af.propertyIsEnumerable,_f=dh(function(){return arguments}())?dh:function(e){return Er(e)&&VI.call(e,"callee")&&!II.call(e,"callee")};function MI(){return!1}var Ef=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hh=Ef&&typeof module=="object"&&module&&!module.nodeType&&module,jI=hh&&hh.exports===Ef,ph=jI?Dt.Buffer:void 0,kI=ph?ph.isBuffer:void 0,vl=kI||MI,$I=9007199254740991,UI=/^(?:0|[1-9]\d*)$/;function Vf(e,t){var r=typeof e;return t=t??$I,!!t&&(r=="number"||r!="symbol"&&UI.test(e))&&e>-1&&e%1==0&&e<t}var DI=9007199254740991;function Pc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DI}var LI="[object Arguments]",BI="[object Array]",NI="[object Boolean]",FI="[object Date]",zI="[object Error]",GI="[object Function]",HI="[object Map]",qI="[object Number]",WI="[object Object]",JI="[object RegExp]",YI="[object Set]",KI="[object String]",QI="[object WeakMap]",XI="[object ArrayBuffer]",ZI="[object DataView]",eM="[object Float32Array]",tM="[object Float64Array]",rM="[object Int8Array]",nM="[object Int16Array]",aM="[object Int32Array]",oM="[object Uint8Array]",sM="[object Uint8ClampedArray]",iM="[object Uint16Array]",lM="[object Uint32Array]",_e={};_e[eM]=_e[tM]=_e[rM]=_e[nM]=_e[aM]=_e[oM]=_e[sM]=_e[iM]=_e[lM]=!0;_e[LI]=_e[BI]=_e[XI]=_e[NI]=_e[ZI]=_e[FI]=_e[zI]=_e[GI]=_e[HI]=_e[qI]=_e[WI]=_e[JI]=_e[YI]=_e[KI]=_e[QI]=!1;function cM(e){return Er(e)&&Pc(e.length)&&!!_e[Lr(e)]}function uM(e){return function(t){return e(t)}}var If=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la=If&&typeof module=="object"&&module&&!module.nodeType&&module,dM=la&&la.exports===If,Li=dM&&Em.process,mh=function(){try{var e=la&&la.require&&la.require("util").types;return e||Li&&Li.binding&&Li.binding("util")}catch{}}(),fh=mh&&mh.isTypedArray,Mf=fh?uM(fh):cM,hM=Object.prototype,pM=hM.hasOwnProperty;function mM(e,t){var r=Ut(e),n=!r&&_f(e),a=!r&&!n&&vl(e),o=!r&&!n&&!a&&Mf(e),s=r||n||a||o,i=s?_I(e.length,String):[],l=i.length;for(var c in e)pM.call(e,c)&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vf(c,l)))&&i.push(c);return i}var fM=Object.prototype;function gM(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fM;return e===r}function yM(e,t){return function(r){return e(t(r))}}var bM=yM(Object.keys,Object),xM=Object.prototype,vM=xM.hasOwnProperty;function SM(e){if(!gM(e))return bM(e);var t=[];for(var r in Object(e))vM.call(e,r)&&r!="constructor"&&t.push(r);return t}function jf(e){return e!=null&&Pc(e.length)&&!Tf(e)}function Tc(e){return jf(e)?mM(e):SM(e)}function gh(e){return wI(e,Tc,AI)}var OM=1,wM=Object.prototype,CM=wM.hasOwnProperty;function PM(e,t,r,n,a,o){var s=r&OM,i=gh(e),l=i.length,c=gh(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=i[d];if(!(s?h in t:CM.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=s;++d<l;){h=i[d];var S=e[h],E=t[h];if(n)var O=s?n(E,S,h,t,e,o):n(S,E,h,e,t,o);if(!(O===void 0?S===E||a(S,E,r,n,o):O)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var w=e.constructor,P=t.constructor;w!=P&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof P=="function"&&P instanceof P)&&(m=!1)}return o.delete(e),o.delete(t),m}var Sl=Fr(Dt,"DataView"),Ol=Fr(Dt,"Promise"),wl=Fr(Dt,"Set"),Cl=Fr(Dt,"WeakMap"),yh="[object Map]",TM="[object Object]",bh="[object Promise]",xh="[object Set]",vh="[object WeakMap]",Sh="[object DataView]",RM=Nr(Sl),AM=Nr(wa),_M=Nr(Ol),EM=Nr(wl),VM=Nr(Cl),sr=Lr;(Sl&&sr(new Sl(new ArrayBuffer(1)))!=Sh||wa&&sr(new wa)!=yh||Ol&&sr(Ol.resolve())!=bh||wl&&sr(new wl)!=xh||Cl&&sr(new Cl)!=vh)&&(sr=function(e){var t=Lr(e),r=t==TM?e.constructor:void 0,n=r?Nr(r):"";if(n)switch(n){case RM:return Sh;case AM:return yh;case _M:return bh;case EM:return xh;case VM:return vh}return t});var IM=1,Oh="[object Arguments]",wh="[object Array]",uo="[object Object]",MM=Object.prototype,Ch=MM.hasOwnProperty;function jM(e,t,r,n,a,o){var s=Ut(e),i=Ut(t),l=s?wh:sr(e),c=i?wh:sr(t);l=l==Oh?uo:l,c=c==Oh?uo:c;var u=l==uo,d=c==uo,h=l==c;if(h&&vl(e)){if(!vl(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new qt),s||Mf(e)?Rf(e,t,r,n,a,o):SI(e,t,l,r,n,a,o);if(!(r&IM)){var p=u&&Ch.call(e,"__wrapped__"),f=d&&Ch.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,y=f?t.value():t;return o||(o=new qt),a(m,y,r,n,o)}}return h?(o||(o=new qt),PM(e,t,r,n,a,o)):!1}function Gs(e,t,r,n,a){return e===t?!0:e==null||t==null||!Er(e)&&!Er(t)?e!==e&&t!==t:jM(e,t,r,n,Gs,a)}function kM(e,t){return Gs(e,t)}const kf=({store:e})=>{const{t}=Re.useTranslation(),[r,n]=J.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=J.useRef(r);Rn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;kM(a.current,s)||(a.current=s,n(s))});const o=[];for(const[s,i]of r.entries())i&&o.push(s);return g.jsx(A.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:o.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(s=>s+1).join(", ")})})},$M=A.styled(A.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function ho({labelValue:e,...t}){return g.jsxs($M,{fullWidth:!0,variant:"filled",children:[g.jsx(A.InputLabel,{id:t.labelId,children:e}),g.jsx(A.Select,{...t})]})}var Ph=function(){try{var e=Fr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function UM(e,t,r){t=="__proto__"&&Ph?Ph(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function DM(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;){var s=e[a];t(n,s,r(s),e)}return n}function LM(e){return function(t,r,n){for(var a=-1,o=Object(t),s=n(t),i=s.length;i--;){var l=s[++a];if(r(o[l],l,o)===!1)break}return t}}var BM=LM();function NM(e,t){return e&&BM(e,t,Tc)}function FM(e,t){return function(r,n){if(r==null)return r;if(!jf(r))return e(r,n);for(var a=r.length,o=-1,s=Object(r);++o<a&&n(s[o],o,s)!==!1;);return r}}var zM=FM(NM);function GM(e,t,r,n){return zM(e,function(a,o,s){t(n,a,r(a),s)}),n}var HM=1,qM=2;function WM(e,t,r,n){var a=r.length,o=a;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=r[a];var i=s[0],l=e[i],c=s[1];if(s[2]){if(l===void 0&&!(i in e))return!1}else{var u=new qt,d;if(!(d===void 0?Gs(c,l,HM|qM,n,u):d))return!1}}return!0}function $f(e){return e===e&&!_r(e)}function JM(e){for(var t=Tc(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,$f(a)]}return t}function Uf(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function YM(e){var t=JM(e);return t.length==1&&t[0][2]?Uf(t[0][0],t[0][1]):function(r){return r===e||WM(r,e,t)}}var KM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QM=/^\w*$/;function Rc(e,t){if(Ut(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Is(e)?!0:QM.test(e)||!KM.test(e)||t!=null&&e in Object(t)}var XM="Expected a function";function Ac(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(XM);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s)||o,s};return r.cache=new(Ac.Cache||er),r}Ac.Cache=er;var ZM=500;function e5(e){var t=Ac(e,function(n){return r.size===ZM&&r.clear(),n}),r=t.cache;return t}var t5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r5=/\\(\\)?/g,n5=e5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(t5,function(r,n,a,o){t.push(a?o.replace(r5,"$1"):n||r)}),t});function a5(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Th=hr?hr.prototype:void 0,Rh=Th?Th.toString:void 0;function Df(e){if(typeof e=="string")return e;if(Ut(e))return a5(e,Df)+"";if(Is(e))return Rh?Rh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Lf(e){return e==null?"":Df(e)}function Bf(e,t){return Ut(e)?e:Rc(e,t)?[e]:n5(Lf(e))}function Hs(e){if(typeof e=="string"||Is(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Nf(e,t){t=Bf(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Hs(t[r++])];return r&&r==n?e:void 0}function o5(e,t,r){var n=e==null?void 0:Nf(e,t);return n===void 0?r:n}function s5(e,t){return e!=null&&t in Object(e)}function i5(e,t,r){t=Bf(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var s=Hs(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&Pc(a)&&Vf(s,a)&&(Ut(e)||_f(e)))}function l5(e,t){return e!=null&&i5(e,t,s5)}var c5=1,u5=2;function d5(e,t){return Rc(e)&&$f(t)?Uf(Hs(e),t):function(r){var n=o5(r,e);return n===void 0&&n===t?l5(r,e):Gs(t,n,c5|u5)}}function h5(e){return e}function p5(e){return function(t){return t==null?void 0:t[e]}}function m5(e){return function(t){return Nf(t,e)}}function f5(e){return Rc(e)?p5(Hs(e)):m5(e)}function g5(e){return typeof e=="function"?e:e==null?h5:typeof e=="object"?Ut(e)?d5(e[0],e[1]):YM(e):f5(e)}function y5(e,t){return function(r,n){var a=Ut(r)?DM:GM,o={};return a(r,e,g5(n),o)}}var po=y5(function(e,t,r){UM(e,r,t)}),b5=0;function x5(e){var t=++b5;return Lf(e)+t}const Pl=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],v5=[{id:"continuous"},...Pl],S5=["coordsys","tool"];class qs{constructor(t,r,n,a){var o,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.showCoordSystemSelect=!0,this.showTcpSelect=!0,this.showOrientationSelect=!0,this.showIncrementSelect=!0,this.showTabIcons=!1,this.showVelocitySliderLabel=!0,this.showVelocityLegend=!1,this.showJointsLegend=!1,this.disposers=[];for(const i of n)if(i.coordinate_system===""){i.coordinate_system="world";break}this.selectedCoordSystemId=((o=n[0])==null?void 0:o.coordinate_system)||"world",this.selectedTcpId=((s=a[0])==null?void 0:s.id)||"",je.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(je.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:o}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new qs(t,n,a||[],o||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Al.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Cr.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"cartesian"},{id:"joint",label:"joint"}]}get incrementOptions(){return v5}get discreteIncrementOptions(){return Pl}get incrementOptionsById(){return po(this.incrementOptions,t=>t.id)}get tabsById(){return po(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return po(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return po(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:Pl.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=x5();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const O5=ye.observer(({store:e})=>{var a;const{t}=Re.useTranslation(),r=[];function n(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return e.showCoordSystemSelect&&r.push(g.jsx(ho,{labelId:"jogging-coord-select",labelValue:t("Jogging.CoordinateSystem.hlb"),value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>e.setSelectedCoordSystemId(o.target.value),disabled:e.isLocked,children:e.coordSystems.map(o=>g.jsx(A.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))},"coord")),e.showTcpSelect&&r.push(g.jsx(ho,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>e.setSelectedTcpId(o.target.value),disabled:e.isLocked,children:e.tcps.map(o=>g.jsx(A.MenuItem,{value:o.id,children:o.id},o.id))},"tcp")),e.showOrientationSelect&&r.push(g.jsx(ho,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>e.setSelectedOrientation(o.target.value),disabled:e.isLocked,children:S5.map(o=>g.jsx(A.MenuItem,{value:o,children:n(o)},o))},"orientation")),e.showIncrementSelect&&r.push(g.jsxs(ho,{labelValue:t("Jogging.Increment.hlb"),labelId:"jogging-increment-select",size:"small",variant:"filled",value:((a=e.activeDiscreteIncrement)==null?void 0:a.id)||"continuous",onChange:o=>e.setSelectedIncrementId(o.target.value),disabled:e.isLocked,children:[g.jsx(A.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>g.jsx(A.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]},"increment")),g.jsx(A.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridAutoRows:"min-content","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:r.map((o,s)=>g.jsx(A.Box,{sx:{gridColumn:r.length%2===1&&s===r.length-1?"span 2":"auto"},children:o},s))})}),w5=A.styled(A.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function Ah(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function C5(e){return typeof e=="string"}function P5(e,t,r){return e===void 0||C5(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Po(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function _h(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function T5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const p=Pt(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f={...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},m={...r,...a,...n};return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:void 0}}const s=Po({...a,...n}),i=_h(n),l=_h(a),c=t(s),u=Pt(c==null?void 0:c.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},h={...c,...r,...l,...i};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}function R5(e,t,r){return typeof e=="function"?e(t,r):e}function or(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:R5(r,n),{props:i,internalRef:l}=T5({...o,externalSlotProps:s}),c=ps(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return P5(t,{...i,ref:c},n)}function Eh(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
154
- `))}return!1}const A5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function _5(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const E5=2;function an(e,t,r,n,a){return r===1?Math.min(e+t,a):Math.max(e-t,n)}function Ff(e,t){return e-t}function Vh(e,t){const{index:r}=e.reduce((n,a,o)=>{const s=Math.abs(t-a);return n===null||s<n.distance||s===n.distance?{distance:s,index:o}:n},null)??{};return r}function mo(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Zo(e,t,r){return(e-t)*100/(r-t)}function V5(e,t,r){return(r-t)*e+t}function I5(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function M5(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(I5(t)))}function Ih({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Ff)}function fo({sliderRef:e,activeIndex:t,setActive:r}){var a,o,s;const n=oa(e.current);(!((a=e.current)!=null&&a.contains(n.activeElement))||Number((o=n==null?void 0:n.activeElement)==null?void 0:o.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function go(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?_5(e,t):!1}const j5={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},k5=e=>e;let yo;function Mh(){return yo===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?yo=CSS.supports("touch-action","none"):yo=!0),yo}function $5(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:o=!1,marks:s=!1,max:i=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:p,scale:f=k5,step:m=1,shiftStep:y=10,tabIndex:S,value:E}=e,O=F.useRef(void 0),[w,P]=F.useState(-1),[C,T]=F.useState(-1),[I,N]=F.useState(!1),b=F.useRef(0),R=F.useRef(null),[G,_]=Yw({controlled:E,default:r??l,name:"Slider"}),z=u&&((Q,ne,ie)=>{const fe=Q.nativeEvent||Q,we=new fe.constructor(fe.type,fe);Object.defineProperty(we,"target",{writable:!0,value:{value:ne,name:c}}),R.current=ne,u(we,ne,ie)}),re=Array.isArray(G);let X=re?G.slice().sort(Ff):[G];X=X.map(Q=>Q==null?l:on(Q,l,i));const ae=s===!0&&m!==null?[...Array(Math.floor((i-l)/m)+1)].map((Q,ne)=>({value:l+m*ne})):s||[],te=ae.map(Q=>Q.value),[oe,W]=F.useState(-1),ee=F.useRef(null),ue=ps(p,ee),Te=Q=>ne=>{var fe;const ie=Number(ne.currentTarget.getAttribute("data-index"));Eh(ne.target)&&W(ie),T(ie),(fe=Q==null?void 0:Q.onFocus)==null||fe.call(Q,ne)},ze=Q=>ne=>{var ie;Eh(ne.target)||W(-1),T(-1),(ie=Q==null?void 0:Q.onBlur)==null||ie.call(Q,ne)},Oe=(Q,ne)=>{const ie=Number(Q.currentTarget.getAttribute("data-index")),fe=X[ie],we=te.indexOf(fe);let le=ne;if(ae&&m==null){const He=te[te.length-1];le>=He?le=He:le<=te[0]?le=te[0]:le=le<fe?te[we-1]:te[we+1]}if(le=on(le,l,i),re){a&&(le=on(le,X[ie-1]||-1/0,X[ie+1]||1/0));const He=le;le=Ih({values:X,newValue:le,index:ie});let Ze=ie;a||(Ze=le.indexOf(He)),fo({sliderRef:ee,activeIndex:Ze})}_(le),W(ie),z&&!go(le,G)&&z(Q,le,ie),d&&d(Q,R.current??le)},lt=Q=>ne=>{var ie;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const fe=Number(ne.currentTarget.getAttribute("data-index")),we=X[fe];let le=null;if(m!=null){const He=ne.shiftKey?y:m;switch(ne.key){case"ArrowUp":le=an(we,He,1,l,i);break;case"ArrowRight":le=an(we,He,o?-1:1,l,i);break;case"ArrowDown":le=an(we,He,-1,l,i);break;case"ArrowLeft":le=an(we,He,o?1:-1,l,i);break;case"PageUp":le=an(we,y,1,l,i);break;case"PageDown":le=an(we,y,-1,l,i);break;case"Home":le=l;break;case"End":le=i;break}}else if(ae){const He=te[te.length-1],Ze=te.indexOf(we),Be=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],mt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Be.includes(ne.key)?Ze===0?le=te[0]:le=te[Ze-1]:mt.includes(ne.key)&&(Ze===te.length-1?le=He:le=te[Ze+1])}le!=null&&Oe(ne,le)}(ie=Q==null?void 0:Q.onKeyDown)==null||ie.call(Q,ne)};$t(()=>{var Q;n&&ee.current.contains(document.activeElement)&&((Q=document.activeElement)==null||Q.blur())},[n]),n&&w!==-1&&P(-1),n&&oe!==-1&&W(-1);const rt=Q=>ne=>{var ie;(ie=Q.onChange)==null||ie.call(Q,ne),Oe(ne,ne.target.valueAsNumber)},be=F.useRef(void 0);let Z=h;o&&h==="horizontal"&&(Z+="-reverse");const se=({finger:Q,move:ne=!1})=>{const{current:ie}=ee,{width:fe,height:we,bottom:le,left:He}=ie.getBoundingClientRect();let Ze;Z.startsWith("vertical")?Ze=(le-Q.y)/we:Ze=(Q.x-He)/fe,Z.includes("-reverse")&&(Ze=1-Ze);let Be;if(Be=V5(Ze,l,i),m)Be=M5(Be,m,l);else{const kn=Vh(te,Be);Be=te[kn]}Be=on(Be,l,i);let mt=0;if(re){ne?mt=be.current:mt=Vh(X,Be),a&&(Be=on(Be,X[mt-1]||-1/0,X[mt+1]||1/0));const kn=Be;Be=Ih({values:X,newValue:Be,index:mt}),a&&ne||(mt=Be.indexOf(kn),be.current=mt)}return{newValue:Be,activeIndex:mt}},ce=Ht(Q=>{const ne=mo(Q,O);if(!ne)return;if(b.current+=1,Q.type==="mousemove"&&Q.buttons===0){Y(Q);return}const{newValue:ie,activeIndex:fe}=se({finger:ne,move:!0});fo({sliderRef:ee,activeIndex:fe,setActive:P}),_(ie),!I&&b.current>E5&&N(!0),z&&!go(ie,G)&&z(Q,ie,fe)}),Y=Ht(Q=>{const ne=mo(Q,O);if(N(!1),!ne)return;const{newValue:ie}=se({finger:ne,move:!0});P(-1),Q.type==="touchend"&&T(-1),d&&d(Q,R.current??ie),O.current=void 0,me()}),xe=Ht(Q=>{if(n)return;Mh()||Q.preventDefault();const ne=Q.changedTouches[0];ne!=null&&(O.current=ne.identifier);const ie=mo(Q,O);if(ie!==!1){const{newValue:we,activeIndex:le}=se({finger:ie});fo({sliderRef:ee,activeIndex:le,setActive:P}),_(we),z&&!go(we,G)&&z(Q,we,le)}b.current=0;const fe=oa(ee.current);fe.addEventListener("touchmove",ce,{passive:!0}),fe.addEventListener("touchend",Y,{passive:!0})}),me=F.useCallback(()=>{const Q=oa(ee.current);Q.removeEventListener("mousemove",ce),Q.removeEventListener("mouseup",Y),Q.removeEventListener("touchmove",ce),Q.removeEventListener("touchend",Y)},[Y,ce]);F.useEffect(()=>{const{current:Q}=ee;return Q.addEventListener("touchstart",xe,{passive:Mh()}),()=>{Q.removeEventListener("touchstart",xe),me()}},[me,xe]),F.useEffect(()=>{n&&me()},[n,me]);const We=Q=>ne=>{var we;if((we=Q.onMouseDown)==null||we.call(Q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ie=mo(ne,O);if(ie!==!1){const{newValue:le,activeIndex:He}=se({finger:ie});fo({sliderRef:ee,activeIndex:He,setActive:P}),_(le),z&&!go(le,G)&&z(ne,le,He)}b.current=0;const fe=oa(ee.current);fe.addEventListener("mousemove",ce,{passive:!0}),fe.addEventListener("mouseup",Y)},Ge=Zo(re?X[0]:l,l,i),Me=Zo(X[X.length-1],l,i)-Ge,tr=(Q={})=>{const ne=Po(Q),ie={onMouseDown:We(ne||{})},fe={...ne,...ie};return{...Q,ref:ue,...fe}},Ua=Q=>ne=>{var fe;(fe=Q.onMouseOver)==null||fe.call(Q,ne);const ie=Number(ne.currentTarget.getAttribute("data-index"));T(ie)},Da=Q=>ne=>{var ie;(ie=Q.onMouseLeave)==null||ie.call(Q,ne),T(-1)},La=(Q={})=>{const ne=Po(Q),ie={onMouseOver:Ua(ne||{}),onMouseLeave:Da(ne||{})};return{...Q,...ne,...ie}},Ba=Q=>({pointerEvents:w!==-1&&w!==Q?"none":void 0});let zr;return h==="vertical"&&(zr=o?"vertical-rl":"vertical-lr"),{active:w,axis:Z,axisProps:j5,dragging:I,focusedThumbIndex:oe,getHiddenInputProps:(Q={})=>{const ne=Po(Q),ie={onChange:rt(ne||{}),onFocus:Te(ne||{}),onBlur:ze(ne||{}),onKeyDown:lt(ne||{})},fe={...ne,...ie};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":f(i),"aria-valuemin":f(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:n,...Q,...fe,style:{...A5,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:zr}}},getRootProps:tr,getThumbProps:La,marks:ae,open:C,range:re,rootRef:ue,trackLeap:Me,trackOffset:Ge,values:X,getThumbStyle:Ba}}function To(e){return typeof e=="string"}const U5=e=>!e||!To(e);function D5(e){return typeof e.main=="string"}function L5(e,t=[]){if(!D5(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function _c(e=[]){return([,t])=>t&&L5(t,e)}function B5(e){return wn("MuiSlider",e)}const bt=Vl("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),N5=e=>{const{open:t}=e;return{offset:Pt(t&&bt.valueLabelOpen),circle:bt.valueLabelCircle,label:bt.valueLabelLabel}};function zf(e){const{children:t,className:r,value:n}=e,a=N5(e);return t?F.cloneElement(t,{className:t.props.className},g.jsxs(F.Fragment,{children:[t.props.children,g.jsx("span",{className:Pt(a.offset,r),"aria-hidden":!0,children:g.jsx("span",{className:a.circle,children:g.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(zf.propTypes={children:x.element.isRequired,className:x.string,value:x.node});function jh(e){return e}const F5=pt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${et(r.color)}`],r.size!=="medium"&&t[`size${et(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(Dr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${bt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${bt.dragging}`]:{[`& .${bt.thumb}, & .${bt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),z5=pt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),G5=pt("span",{name:"MuiSlider",slot:"Track"})(Dr(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:ua(e.palette[t].main,.62),borderColor:ua(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:ca(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:ca(e.palette[t].main,.5)})}}}))]}))),H5=pt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${et(r.color)}`],r.size!=="medium"&&t[`thumbSize${et(r.size)}`]]}})(Dr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${bt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${bt.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${zi(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${bt.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${zi(e.palette[t].main,.16)}`}}}}))]}))),Gf=pt(zf,{name:"MuiSlider",slot:"ValueLabel"})(Dr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${bt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${bt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Gf.propTypes={children:x.element.isRequired,index:x.number.isRequired,open:x.bool.isRequired,value:x.node});const q5=pt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>jl(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(Dr(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),W5=pt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>jl(e)&&e!=="markLabelActive"})(Dr(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),J5=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:o,classes:s,color:i,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",i&&`color${et(i)}`,l&&`size${et(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${et(l)}`,i&&`thumbColor${et(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return es(c,B5,s)},Y5=({children:e})=>e,Hf=F.forwardRef(function(t,r){const n=vc({props:t,name:"MuiSlider"}),a=h0(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":i,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:h,className:p,disableSwap:f=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:S,marks:E=!1,max:O=100,min:w=0,name:P,onChange:C,onChangeCommitted:T,orientation:I="horizontal",shiftStep:N=10,size:b="medium",step:R=1,scale:G=jh,slotProps:_,slots:z,tabIndex:re,track:X="normal",value:ae,valueLabelDisplay:te="off",valueLabelFormat:oe=jh,...W}=n,ee={...n,isRtl:a,max:O,min:w,classes:h,disabled:m,disableSwap:f,orientation:I,marks:E,color:d,size:b,step:R,shiftStep:N,scale:G,track:X,valueLabelDisplay:te,valueLabelFormat:oe},{axisProps:ue,getRootProps:Te,getHiddenInputProps:ze,getThumbProps:Oe,open:lt,active:rt,axis:be,focusedThumbIndex:Z,range:se,dragging:ce,marks:Y,values:xe,trackOffset:me,trackLeap:We,getThumbStyle:Ge}=$5({...ee,rootRef:r});ee.marked=Y.length>0&&Y.some(Le=>Le.label),ee.dragging=ce,ee.focusedThumbIndex=Z;const Me=J5(ee),tr=(z==null?void 0:z.root)??c.Root??F5,Ua=(z==null?void 0:z.rail)??c.Rail??z5,Da=(z==null?void 0:z.track)??c.Track??G5,La=(z==null?void 0:z.thumb)??c.Thumb??H5,Ba=(z==null?void 0:z.valueLabel)??c.ValueLabel??Gf,zr=(z==null?void 0:z.mark)??c.Mark??q5,Na=(z==null?void 0:z.markLabel)??c.MarkLabel??W5,Q=(z==null?void 0:z.input)??c.Input??"input",ne=(_==null?void 0:_.root)??u.root,ie=(_==null?void 0:_.rail)??u.rail,fe=(_==null?void 0:_.track)??u.track,we=(_==null?void 0:_.thumb)??u.thumb,le=(_==null?void 0:_.valueLabel)??u.valueLabel,He=(_==null?void 0:_.mark)??u.mark,Ze=(_==null?void 0:_.markLabel)??u.markLabel,Be=(_==null?void 0:_.input)??u.input,mt=or({elementType:tr,getSlotProps:Te,externalSlotProps:ne,externalForwardedProps:W,additionalProps:{...U5(tr)&&{as:l}},ownerState:{...ee,...ne==null?void 0:ne.ownerState},className:[Me.root,p]}),kn=or({elementType:Ua,externalSlotProps:ie,ownerState:ee,className:Me.rail}),og=or({elementType:Da,externalSlotProps:fe,additionalProps:{style:{...ue[be].offset(me),...ue[be].leap(We)}},ownerState:{...ee,...fe==null?void 0:fe.ownerState},className:Me.track}),Ws=or({elementType:La,getSlotProps:Oe,externalSlotProps:we,ownerState:{...ee,...we==null?void 0:we.ownerState},className:Me.thumb}),sg=or({elementType:Ba,externalSlotProps:le,ownerState:{...ee,...le==null?void 0:le.ownerState},className:Me.valueLabel}),Js=or({elementType:zr,externalSlotProps:He,ownerState:ee,className:Me.mark}),Ys=or({elementType:Na,externalSlotProps:Ze,ownerState:ee,className:Me.markLabel}),ig=or({elementType:Q,getSlotProps:ze,externalSlotProps:Be,ownerState:ee});return g.jsxs(tr,{...mt,children:[g.jsx(Ua,{...kn}),g.jsx(Da,{...og}),Y.filter(Le=>Le.value>=w&&Le.value<=O).map((Le,Je)=>{const Ks=Zo(Le.value,w,O),Fa=ue[be].offset(Ks);let Lt;return X===!1?Lt=xe.includes(Le.value):Lt=X==="normal"&&(se?Le.value>=xe[0]&&Le.value<=xe[xe.length-1]:Le.value<=xe[0])||X==="inverted"&&(se?Le.value<=xe[0]||Le.value>=xe[xe.length-1]:Le.value>=xe[0]),g.jsxs(F.Fragment,{children:[g.jsx(zr,{"data-index":Je,...Js,...!To(zr)&&{markActive:Lt},style:{...Fa,...Js.style},className:Pt(Js.className,Lt&&Me.markActive)}),Le.label!=null?g.jsx(Na,{"aria-hidden":!0,"data-index":Je,...Ys,...!To(Na)&&{markLabelActive:Lt},style:{...Fa,...Ys.style},className:Pt(Me.markLabel,Ys.className,Lt&&Me.markLabelActive),children:Le.label}):null]},Je)}),xe.map((Le,Je)=>{const Ks=Zo(Le,w,O),Fa=ue[be].offset(Ks),Lt=te==="off"?Y5:Ba;return g.jsx(Lt,{...!To(Lt)&&{valueLabelFormat:oe,valueLabelDisplay:te,value:typeof oe=="function"?oe(G(Le),Je):oe,index:Je,open:lt===Je||rt===Je||te==="on",disabled:m},...sg,children:g.jsx(La,{"data-index":Je,...Ws,className:Pt(Me.thumb,Ws.className,rt===Je&&Me.active,Z===Je&&Me.focusVisible),style:{...Fa,...Ge(Je),...Ws.style},children:g.jsx(Q,{"data-index":Je,"aria-label":y?y(Je):o,"aria-valuenow":G(Le),"aria-labelledby":i,"aria-valuetext":S?S(G(Le),Je):s,value:xe[Je],...ig})})},Je)})]})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={"aria-label":Ah(x.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":x.string,"aria-valuetext":Ah(x.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:x.node,classes:x.object,className:x.string,color:x.oneOfType([x.oneOf(["primary","secondary","error","info","success","warning"]),x.string]),components:x.shape({Input:x.elementType,Mark:x.elementType,MarkLabel:x.elementType,Rail:x.elementType,Root:x.elementType,Thumb:x.elementType,Track:x.elementType,ValueLabel:x.elementType}),componentsProps:x.shape({input:x.oneOfType([x.func,x.object]),mark:x.oneOfType([x.func,x.object]),markLabel:x.oneOfType([x.func,x.object]),rail:x.oneOfType([x.func,x.object]),root:x.oneOfType([x.func,x.object]),thumb:x.oneOfType([x.func,x.object]),track:x.oneOfType([x.func,x.object]),valueLabel:x.oneOfType([x.func,x.shape({children:x.element,className:x.string,open:x.bool,style:x.object,value:x.node,valueLabelDisplay:x.oneOf(["auto","off","on"])})])}),defaultValue:x.oneOfType([x.arrayOf(x.number),x.number]),disabled:x.bool,disableSwap:x.bool,getAriaLabel:x.func,getAriaValueText:x.func,marks:x.oneOfType([x.arrayOf(x.shape({label:x.node,value:x.number.isRequired})),x.bool]),max:x.number,min:x.number,name:x.string,onChange:x.func,onChangeCommitted:x.func,orientation:x.oneOf(["horizontal","vertical"]),scale:x.func,shiftStep:x.number,size:x.oneOfType([x.oneOf(["small","medium"]),x.string]),slotProps:x.shape({input:x.oneOfType([x.func,x.object]),mark:x.oneOfType([x.func,x.object]),markLabel:x.oneOfType([x.func,x.object]),rail:x.oneOfType([x.func,x.object]),root:x.oneOfType([x.func,x.object]),thumb:x.oneOfType([x.func,x.object]),track:x.oneOfType([x.func,x.object]),valueLabel:x.oneOfType([x.func,x.shape({children:x.element,className:x.string,open:x.bool,style:x.object,value:x.node,valueLabelDisplay:x.oneOf(["auto","off","on"])})])}),slots:x.shape({input:x.elementType,mark:x.elementType,markLabel:x.elementType,rail:x.elementType,root:x.elementType,thumb:x.elementType,track:x.elementType,valueLabel:x.elementType}),step:x.number,sx:x.oneOfType([x.arrayOf(x.oneOfType([x.func,x.object,x.bool])),x.func,x.object]),tabIndex:x.number,track:x.oneOf(["inverted","normal",!1]),value:x.oneOfType([x.arrayOf(x.number),x.number]),valueLabelDisplay:x.oneOf(["auto","off","on"]),valueLabelFormat:x.oneOfType([x.func,x.string])});var K5="[object Number]";function Q5(e){return typeof e=="number"||Er(e)&&Lr(e)==K5}const qf=ye.observer(e=>{var o,s,i;const t=A.useTheme(),{store:r}=e,{t:n}=Re.useTranslation();function a(l,c){c===e.velocity||!Q5(c)||e.onVelocityChange(c)}return g.jsxs(A.Stack,{direction:"row",gap:2,alignItems:"center",children:[r.showVelocityLegend&&g.jsx(A.Typography,{sx:{color:(i=(s=(o=t.componentsExt)==null?void 0:o.JoggingPanel)==null?void 0:s.VelocitySlider)==null?void 0:i.sliderLegendColor,fontSize:"14px"},children:n("Jogging.Velocity.bt")}),g.jsx(Hf,{value:e.velocity,color:"secondary",onChange:a,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),r.showVelocitySliderLabel&&(e.renderValue?e.renderValue(e.velocity):g.jsx(Ec,{value:e.velocity.toString()}))]})});function Ec({value:e,sx:t}){var n;const r=A.useTheme();return g.jsx(A.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:g.jsx(A.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const Wf=ye.observer(({store:e})=>{const{t}=Re.useTranslation(),r=ye.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return g.jsx(qf,{store:e,velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>g.jsx(Ec,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),X5=ye.observer(({store:e,children:t})=>{const{t:r}=Re.useTranslation(),n=A.useTheme();function a(h,p){(p==="translate"||p==="rotate")&&e.setSelectedCartesianMotionType(p)}_m(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function o(h,p){const f=await e.activate(),m=f.motionStream.rapidlyChangingMotionState.tcp_pose,y=f.motionStream.rapidlyChangingMotionState.state.joint_position;m&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:h.axis,direction:h.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:m,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:p.mm}:{type:"rotate",distanceRads:Cr.degreesToRadians(p.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(h){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return o(h,e.activeDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function i(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}function l(h,p,f){var y,S,E;const m=(E=(S=(y=f.componentsExt)==null?void 0:y.JoggingPanel)==null?void 0:S.JoggingCartesian)==null?void 0:E.Axis;if(m)return p==="translate"?m[h]:m.CustomRotation??m[h]}const c=[{id:"x",icon:g.jsx(eV,{}),colors:l("X",e.selectedCartesianMotionType,n)},{id:"y",icon:g.jsx(rV,{}),colors:l("Y",e.selectedCartesianMotionType,n)},{id:"z",icon:g.jsx(aV,{}),colors:l("Z",e.selectedCartesianMotionType,n)}];function u(h){return r("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return r("General.degree.variable",{amount:Cr.radiansToDegrees(h).toFixed(1)})}return g.jsxs(A.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[g.jsxs(A.Stack,{gap:2,children:[g.jsx(O5,{store:e}),g.jsx(Wf,{store:e}),g.jsx(A.Divider,{})]}),g.jsx(A.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:g.jsxs(A.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[g.jsxs(w5,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[g.jsx(A.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),g.jsx(A.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>{var p,f;return g.jsx(al,{colors:h.colors,disabled:e.isLocked,activeJoggingDirection:((p=e.incrementJogInProgress)==null?void 0:p.axis)===h.id?e.incrementJogInProgress.direction:void 0,label:g.jsxs(g.Fragment,{children:[h.icon,g.jsx(A.Typography,{sx:{fontSize:"24px",color:((f=h.colors)==null?void 0:f.labelColor)??n.palette.text.primary},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var m;return u(((m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:m.position[h.id])||0)},startJogging:m=>s({axis:h.id,motionType:"translate",direction:m}),stopJogging:i},h.id)}),e.selectedCartesianMotionType==="rotate"&&c.map(h=>{var p,f;return g.jsx(al,{colors:h.colors,disabled:e.isLocked,activeJoggingDirection:((p=e.incrementJogInProgress)==null?void 0:p.axis)===h.id?e.incrementJogInProgress.direction:void 0,label:g.jsxs(g.Fragment,{children:[g.jsx(sV,{}),g.jsx(A.Typography,{sx:{fontSize:"24px",color:((f=h.colors)==null?void 0:f.labelColor)??n.palette.text.primary},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var m,y;return d(((y=(m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:m.orientation)==null?void 0:y[h.id])||0)},startJogging:m=>s({axis:h.id,motionType:"rotate",direction:m}),stopJogging:i},h.id)})]})}),g.jsx(kf,{store:e}),t&&g.jsx(A.Divider,{}),t]})}),Z5=ye.observer(({store:e,children:t})=>{const r=A.useTheme();async function n(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function a(){await e.jogger.stop(),await e.deactivate()}return g.jsxs(A.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[g.jsx(Wf,{store:e}),g.jsx(A.Divider,{}),g.jsx(A.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:g.jsx(A.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(o=>{var c;const s=(c=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:c[o.index],i=(s==null?void 0:s.lower_limit)!==void 0?Cr.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Cr.radiansToDegrees(s.upper_limit):void 0;return g.jsxs(A.Stack,{direction:"row",alignItems:"center",justifyContent:"center",spacing:1.5,width:"100%",children:[e.showJointsLegend&&g.jsx(A.Typography,{color:e.isLocked?r.palette.text.disabled:r.palette.text.secondary,children:`G${o.index+1}`}),g.jsx(Im,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const u=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return u!==void 0?Cr.radiansToDegrees(u):void 0},startJogging:u=>n({joint:o.index,direction:u}),stopJogging:a})]},`joint-${o.index}`)})})}),g.jsx(kf,{store:e}),t&&g.jsx(A.Divider,{}),t]})}),e3=Ke(ye.observer(e=>{const t=Al.isString(e.nova)?new YE({instanceUrl:e.nova}):e.nova,r=ye.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){je.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let a=e.store;if(!a){const o=await t.connectJogger(e.motionGroupId);a=await qs.loadFor(o)}je.runInAction(()=>{r.joggingStore=a}),e.onSetup&&e.onSetup(a)}catch(a){r.loadingError=a}}return J.useEffect(()=>(n(),e.store?()=>null:()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.store,e.nova,e.motionGroupId]),J.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.lock("external"):a.unlock("external"))},[r.joggingStore,e.locked]),g.jsx(A.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?g.jsx(t3,{store:r.joggingStore,children:e.children}):g.jsx(Cc,{message:"Loading jogging",error:r.loadingError})})})),t3=ye.observer(({store:e,children:t})=>{const{t:r}=Re.useTranslation();function n(){if(e.currentTab.id==="cartesian")return g.jsx(g.Fragment,{children:g.jsx(X5,{store:e,children:t})});if(e.currentTab.id==="joint")return g.jsx(g.Fragment,{children:g.jsx(Z5,{store:e,children:t})})}return g.jsxs(A.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[g.jsx(A.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(a=>{const o=a.label==="cartesian"?r("Jogging.Cartesian.bt"):r("Jogging.Joints.bt"),s=a.label==="cartesian"?g.jsx(AC,{fontSize:"small",sx:{mr:1}}):g.jsx(_C,{fontSize:"small",sx:{mr:1}});return g.jsx(A.Tab,{label:e.showTabIcons?g.jsxs(A.Stack,{direction:"row",alignItems:"center",children:[s,o]}):o,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id)})}),g.jsx(A.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:n()})]})}),Jf=J.forwardRef(({label:e,value:t},r)=>{var i;const n=A.useTheme(),[a,o]=J.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),o(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return J.useEffect(()=>{if(!a)return;const l=setTimeout(()=>o(!1),3e3);return()=>{l&&clearTimeout(l)}},[a]),g.jsx(A.Tooltip,{open:a,title:"Copied!",children:g.jsx(A.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(i=n.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:g.jsx(A.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),r3=ye.observer(({motionStream:e})=>{const t=J.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Cr.poseToWandelscriptString(n):""}return Rn(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),g.jsx(A.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:g.jsx(Jf,{value:r(),ref:t})})}),n3=ye.observer(({motionStream:e})=>{const t=J.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return Rn(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),g.jsx(A.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:g.jsx(Jf,{value:r(),ref:t})})});class Yf{constructor(){this.messages=[],this.addMessage=(t,r="info")=>{const n={id:Math.random().toString(36).substring(2,11),timestamp:new Date,message:t,level:r};this.messages.push(n)},this.clearMessages=()=>{this.messages=[]},this.addInfo=t=>{this.addMessage(t,"info")},this.addWarning=t=>{this.addMessage(t,"warning")},this.addError=t=>{this.addMessage(t,"error")},this.addDebug=t=>{this.addMessage(t,"debug")},je.makeObservable(this,{messages:je.observable,addMessage:je.action,clearMessages:je.action})}}const $a=(e,t,r)=>({id:r||`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,timestamp:new Date,message:e,level:t}),a3=(e,t)=>$a(e,"debug",t),o3=(e,t)=>$a(e,"info",t),s3=(e,t)=>$a(e,"warning",t),i3=(e,t)=>$a(e,"error",t),Kf=Ke(ye.observer(e=>{var u;const{messages:t=[],onClear:r,height:n=400,sx:a}=e,o=A.useTheme(),s=J.useRef(null);J.useEffect(()=>{if(t.length===0)return;const d=s.current;if(!d)return;const h=setTimeout(()=>{d.scrollTop=d.scrollHeight},10);return()=>clearTimeout(h)},[t.length]);const i=d=>d.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),l=d=>{switch(d){case"error":return o.palette.error.main;case"warning":return o.palette.warning.main;case"info":return o.palette.info.main;case"debug":return o.palette.text.disabled;default:return o.palette.text.secondary}},c=({message:d})=>{const[h,p]=J.useState(!1),[f,m]=J.useState(!1),[y,S]=J.useState(!1),E=d.message.length>150,O=async()=>{try{await navigator.clipboard.writeText(d.message),m(!0),setTimeout(()=>m(!1),2e3)}catch(P){console.error("Failed to copy message:",P)}},w=E&&!h?d.message.substring(0,150)+"...":d.message;return g.jsx(A.Box,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),sx:{display:"flex",gap:1,fontFamily:"monospace",flexDirection:"column","&:hover":{backgroundColor:o.palette.action.hover},borderRadius:"4px",padding:"2px 4px",margin:"-2px -4px"},children:g.jsxs(A.Box,{sx:{display:"flex",gap:1},children:[g.jsxs(A.Typography,{component:"span",sx:{fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0.4px",color:o.palette.text.disabled,whiteSpace:"nowrap",flexShrink:0},children:["[",i(d.timestamp),"]"]}),g.jsx(A.Typography,{component:"span",sx:{fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0.4px",color:l(d.level),wordBreak:"break-word",overflowWrap:"anywhere",hyphens:"auto",flex:1,whiteSpace:"pre-wrap"},children:w}),g.jsxs(A.Box,{sx:{display:"flex",alignItems:"flex-start",gap:.5,opacity:y?1:0,transition:"opacity 0.2s ease-in-out",visibility:y?"visible":"hidden"},children:[g.jsx(A.IconButton,{size:"small",onClick:O,sx:{padding:"2px",color:o.palette.text.secondary,"&:hover":{backgroundColor:o.palette.action.hover}},title:f?"Copied!":"Copy message",children:g.jsx(Ft.ContentCopy,{sx:{fontSize:12}})}),E&&g.jsx(A.IconButton,{size:"small",onClick:()=>p(!h),sx:{padding:"2px",color:o.palette.text.secondary,"&:hover":{backgroundColor:o.palette.action.hover}},title:h?"Collapse":"Expand",children:h?g.jsx(Ft.ExpandLess,{sx:{fontSize:12}}):g.jsx(Ft.ExpandMore,{sx:{fontSize:12}})})]})]})},d.id)};return g.jsxs(A.Paper,{sx:{backgroundColor:((u=o.palette.backgroundPaperElevation)==null?void 0:u[2])||"#171927",backgroundImage:"none",height:n,display:"flex",flexDirection:"column",overflow:"hidden",...a},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px"},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(Ft.DescriptionOutlined,{sx:{fontSize:16,color:o.palette.action.active,opacity:.56}}),g.jsx(A.Typography,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"143%",letterSpacing:"0.17px",color:o.palette.text.primary},children:"Log"})]}),g.jsx(A.Button,{onClick:r,variant:"text",sx:{fontWeight:500,fontSize:"13px",lineHeight:"22px",letterSpacing:"0.46px",color:o.palette.primary.main,textTransform:"none",minWidth:"auto",padding:"4px 8px","&:hover":{backgroundColor:o.palette.primary.main+"14"}},children:"Clear"})]}),g.jsx(A.Box,{ref:s,sx:{flex:1,overflow:"auto",padding:"8px 16px",display:"flex",flexDirection:"column",gap:"2px",scrollbarWidth:"thin",scrollbarColor:`${o.palette.divider} transparent`,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:o.palette.divider,borderRadius:"3px","&:hover":{backgroundColor:o.palette.divider}}},children:t.length===0?g.jsx(A.Typography,{sx:{color:o.palette.text.disabled,fontSize:"12px",fontStyle:"italic",textAlign:"center",marginTop:2},children:"No log messages"}):t.map(d=>g.jsx(c,{message:d},d.id))})]})})),l3=Ke(ye.observer(e=>{const{store:t,onStoreReady:r,...n}=e,a=J.useRef(r);J.useEffect(()=>{a.current=r},[r]);const o=J.useMemo(()=>{var l;const i=t||new Yf;return(l=a.current)==null||l.call(a,i),i},[t]),s=()=>{o.clearMessages()};return g.jsx(Kf,{...n,messages:o.messages,onClear:s})}));function c3(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function u3({baseUrl:e=c3(),...t}){return g.jsxs(A.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[g.jsx(A.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),g.jsxs(A.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[g.jsx(A.Typography,{color:"#fff",children:"Found no devices to connect to."}),g.jsx(A.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),g.jsx(A.DialogActions,{children:g.jsxs(A.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[g.jsx(A.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),g.jsx(A.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}var vr=(e=>(e.IDLE="idle",e.RUNNING="running",e.PAUSED="paused",e.STOPPING="stopping",e.ERROR="error",e))(vr||{});const d3=Ke(ye.observer(({state:e,onRun:t,onPause:r,onStop:n,onReset:a,requiresManualReset:o=!1,variant:s="with_pause",className:i})=>{const l=A.useTheme(),{t:c}=Re.useTranslation(),u=()=>{const p={run:{enabled:e==="idle"||e==="paused"||e==="error",label:c(e==="paused"?"ProgramControl.Resume.bt":e==="error"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:l.palette.success.main,onClick:t},pause:{enabled:e==="running",label:c("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:r||(()=>{})},stop:{enabled:e==="running"||e==="paused",label:c("ProgramControl.Stop.bt"),color:l.palette.error.main,onClick:n}};return s==="without_pause"?[p.run,p.stop]:[p.run,p.pause,p.stop]},d=p=>{const f={sx:{fontSize:"55px"}};if(s==="without_pause")return p===0?g.jsx(Ft.PlayArrow,{...f}):g.jsx(Ft.Stop,{...f});switch(p){case 0:return g.jsx(Ft.PlayArrow,{...f});case 1:return g.jsx(Ft.Pause,{...f});case 2:return g.jsx(Ft.Stop,{...f});default:return null}},h=u();return g.jsx(A.Box,{className:i,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:g.jsx(A.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:h.map((p,f)=>g.jsxs(A.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[g.jsx(A.Button,{variant:"contained",disabled:!p.enabled||e==="stopping"&&!o,onClick:p.onClick,sx:{width:"110px",height:"110px",borderRadius:"110px",backgroundColor:p.color,opacity:p.enabled&&!(e==="stopping"&&!o)?1:.3,"&:hover":{backgroundColor:p.color,opacity:p.enabled&&!(e==="stopping"&&!o)?.8:.3},"&:disabled":{backgroundColor:p.color,opacity:.3},minWidth:"110px",flexShrink:0},children:d(f)}),g.jsx(A.Typography,{variant:"body1",sx:{color:p.enabled&&!(e==="stopping"&&!o)?p.color:l.palette.text.disabled,textAlign:"center",opacity:p.enabled&&!(e==="stopping"&&!o)?1:.3},children:p.label})]},p.label))})})})),Tl=Ke(ye.observer(({programState:e,safetyState:t,operationMode:r,className:n})=>{const a=A.useTheme(),{t:o}=Re.useTranslation(),s=()=>{if(t==="SAFETY_STATE_DEVICE_EMERGENCY_STOP"||t==="SAFETY_STATE_ROBOT_EMERGENCY_STOP"||t==="SAFETY_STATE_STOP_0"||t==="SAFETY_STATE_STOP_1"||t==="SAFETY_STATE_STOP_2"||t==="SAFETY_STATE_PROTECTIVE_STOP"||t==="SAFETY_STATE_STOP"||t==="SAFETY_STATE_REDUCED"||t==="SAFETY_STATE_MASTERING"||t==="SAFETY_STATE_CONFIRM_SAFETY"||t==="SAFETY_STATE_OPERATOR_SAFETY"||t==="SAFETY_STATE_RECOVERY"||t==="SAFETY_STATE_VIOLATION")return{label:o("ProgramStateIndicator.EStop.lb"),color:a.palette.error.main};if(t==="SAFETY_STATE_UNKNOWN"||t==="SAFETY_STATE_FAULT")return{label:o("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};if(t==="SAFETY_STATE_NORMAL")switch(e){case vr.RUNNING:return{label:o("ProgramStateIndicator.Running.lb"),color:a.palette.success.main};case vr.PAUSED:return{label:o("ProgramStateIndicator.Paused.lb"),color:a.palette.grey[600]};case vr.STOPPING:return{label:o("ProgramStateIndicator.Stopped.lb"),color:a.palette.error.main};case vr.ERROR:return{label:o("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};case vr.IDLE:default:return{label:o("ProgramStateIndicator.Ready.lb"),color:a.palette.success.main}}return{label:o("ProgramStateIndicator.Idle.lb"),color:a.palette.grey[600]}},{label:i,color:l}=s(),u=`${i} / ${(()=>{switch(r){case"OPERATION_MODE_AUTO":return o("ProgramStateIndicator.Auto.lb");case"OPERATION_MODE_MANUAL":return o("ProgramStateIndicator.Manual.lb");case"OPERATION_MODE_MANUAL_T1":return o("ProgramStateIndicator.ManualT1.lb");case"OPERATION_MODE_MANUAL_T2":return o("ProgramStateIndicator.ManualT2.lb");default:return o("ProgramStateIndicator.Auto.lb")}})()}`;return g.jsx(A.Chip,{className:n,label:g.jsx(A.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:u}),variant:"filled",sx:{backgroundColor:l,color:a.palette.getContrastText(l),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})})),kh="0.0.0-semantically-released";function Vc(e){let t=kh;return kh.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function h3(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>Xf(r))}function Qf(e){return e.name.endsWith("_FLG")}function Xf(e){return/_J[0-9]+$/.test(e.name)}function p3(e,t){let r;function n(a){if(Qf(a)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${a.name}. Only one _FLG group is allowed.`);r=a}Xf(a),a.children.map(n)}if(n(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function Zf({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){const a=J.useRef([]),o=J.useRef([]),s=J.useRef(null),{invalidate:i}=Ro.useThree();J.useEffect(()=>{const d=e.state.joint_position.joints.filter(h=>h!==void 0);return s.current=new xc(d,{tension:120,friction:20,threshold:.001}),()=>{var h;(h=s.current)==null||h.destroy()}},[]),Ro.useFrame((d,h)=>{if(s.current){const p=s.current.update(h);u(),p||i()}});function l(d){d&&(o.current=h3(d),u(),i())}function c(d){var h;a.current=d,(h=s.current)==null||h.setTarget(d)}function u(){var h;const d=((h=s.current)==null?void 0:h.getCurrentValues())||[];if(r)r(o.current,d);else for(const[p,f]of o.current.entries()){const m=t[p],y=m.theta||0,S=m.reverse_rotation_direction?-1:1;f.rotation.y=S*(d[p]||0)+y}}return Am(()=>{const d=e.state.joint_position.joints.filter(h=>h!==void 0);requestAnimationFrame(()=>c(d))}),g.jsx("group",{ref:l,children:n})}const m3="line",f3="mesh";function g3({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new Ot.Matrix4,a=J.useRef([]),o=J.useRef([]);J.useEffect(()=>{a.current=new Array(t.length).fill(null),o.current=new Array(t.length).fill(null)},[t.length]);function s(c,u){const d=new Ot.Vector3,h=new Ot.Quaternion,p=new Ot.Vector3;n.decompose(d,h,p);const f=d.clone(),m=new Ot.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new Ot.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new Ot.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new Ot.Matrix4().makeRotationX(c.alpha));return n.multiply(m),n.decompose(d,h,p),{a:f,b:d}}function i(c,u,d,h){if(!t)return;const p=t[c];if(!p)return;const{a:f,b:m}=s(p,h);u.geometry.setPositions([f.toArray(),m.toArray()].flat()),d.position.set(m.x,m.y,m.z)}function l(c,u){n.identity();for(let d=0;d<Math.min(c.length,u.length);d++){const h=a.current[d],p=o.current[d];h&&p&&i(d,h,p,u[d])}}return g.jsx(g.Fragment,{children:g.jsx(Zf,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:l,children:g.jsxs("group",{...r,name:"Scene",children:[g.jsxs("mesh",{children:[g.jsx("sphereGeometry",{args:[.01,32,32]}),g.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=s(c,e.state.joint_position.joints[u]??0),p=`dhrobot_J0${u}`;return g.jsxs("group",{name:p,children:[g.jsx(ut.Line,{ref:f=>{a.current[u]=f},name:m3,points:[d,h],color:"white",lineWidth:5}),g.jsxs("mesh",{ref:f=>{o.current[u]=f},name:f3,position:h,children:[g.jsx("sphereGeometry",{args:[.01,32,32]}),g.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},p)})]})})})}const y3=console.warn;function b3(){return J.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&y3(e)}},[]),g.jsx(g.Fragment,{})}function x3(e){return e.type==="Mesh"}function v3({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:a}=p3(ut.useGLTF(e),e.split("/").pop()||e),o=J.useCallback(i=>{i&&r&&r()},[e]);function s(i){return x3(i)?g.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):g.jsx("group",{name:i.name,position:i.position,rotation:i.rotation,ref:Qf(i)?t:void 0,children:i.children.map(s)},i.uuid)}return g.jsx("group",{...n,dispose:null,ref:o,children:s(a.scene)})}const S3=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof Ue.Mesh){r.material instanceof Ue.Material&&(r.material.colorWrite=!1);const n=r.clone(),a=r.clone();n.material=new Ue.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Ue.DoubleSide}),n.userData.isGhost=!0,a.material=new Ue.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Ue.DoubleSide}),a.userData.isGhost=!0,r.parent&&(r.parent.add(n),r.parent.add(a))}}),e.userData.isGhost=!0)},O3=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof Ue.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof Ue.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},eg=Ke(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Vc,flangeRef:a,postModelRender:o,transparentColor:s,...i})=>{const[l,c]=J.useState(null),u=J.useCallback(h=>{c(h)},[]);J.useEffect(()=>{l&&(s?S3(l,s):O3(l))},[l,s]);const d=g.jsx(g3,{rapidlyChangingMotionState:e,dhParameters:r,...i});return g.jsxs(vg.ErrorBoundary,{fallback:d,onError:h=>{console.error(h)},children:[g.jsx(J.Suspense,{fallback:d,children:g.jsx("group",{ref:u,children:g.jsx(Zf,{rapidlyChangingMotionState:e,dhParameters:r,children:g.jsx(v3,{modelURL:n(t),postModelRender:o,flangeRef:a,...i})})})}),g.jsx(b3,{})]})});function tg({connectedMotionGroup:e,getModel:t=Vc,flangeRef:r,transparentColor:n,postModelRender:a,...o}){return e.dhParameters?g.jsx(eg,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:n,postModelRender:a,...o}):null}const w3=Ke(ye.observer(({robotName:e,programState:t,safetyState:r,operationMode:n,driveToHomeEnabled:a=!1,onDriveToHomePress:o,onDriveToHomeRelease:s,connectedMotionGroup:i,robotComponent:l=tg,cycleTimerComponent:c=Tm,onCycleTimerReady:u,onCycleEnd:d,cycleTimerAutoStart:h=!0,className:p})=>{var te;const f=A.useTheme(),{t:m}=Re.useTranslation(),[y,S]=J.useState(!1),E=J.useRef(null),O=J.useRef(null),[w,P]=J.useState(!1),[C,T]=J.useState({width:400,height:600}),[I,N]=J.useState(0),b=J.useRef(null);J.useEffect(()=>{const oe=()=>{if(O.current){const{offsetWidth:ee,offsetHeight:ue}=O.current;P(ee>ue),T({width:ee,height:ue})}};oe();const W=new ResizeObserver(oe);return O.current&&W.observe(O.current),()=>{W.disconnect()}},[]);const R=J.useCallback(()=>{N(oe=>oe+1)},[]),G=J.useCallback(()=>{!a||!o||(S(!0),o())},[a,o]),_=J.useCallback(()=>{!a||!s||(S(!1),s())},[a,s]),z=J.useCallback(()=>{y&&s&&(S(!1),s())},[y,s]),re=J.useCallback(oe=>{b.current=oe,u&&u(oe)},[u]),X=w?C.width<390||C.height<250:C.height<350,ae=w?C.height<283:C.height<450;return g.jsx(A.Card,{ref:O,className:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:w?"row":"column",position:"relative",overflow:"hidden",minWidth:{xs:180,sm:220,md:250},minHeight:w?{xs:200,sm:240,md:260}:{xs:150,sm:180,md:220},border:`1px solid ${f.palette.divider}`,borderRadius:"18px",boxShadow:"none",backgroundColor:((te=f.palette.backgroundPaperElevation)==null?void 0:te[8])||"#2A2A3F",backgroundImage:"none"},children:w?g.jsxs(g.Fragment,{children:[g.jsx(A.Box,{sx:{flex:"0 0 50%",position:"relative",height:"100%",minHeight:"100%",maxHeight:"100%",borderRadius:1,m:{xs:1.5,sm:2,md:3},mr:{xs:.75,sm:1,md:1.5},overflow:"hidden",display:X?"none":"block"},children:!X&&g.jsxs(Ro.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:f.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute",top:0,left:0},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[g.jsx(Ni,{}),g.jsx(ut.Bounds,{fit:!0,clip:!0,observe:!0,margin:1,children:g.jsx(l,{connectedMotionGroup:i,postModelRender:R})})]})}),g.jsxs(A.Box,{sx:{flex:"1",display:"flex",flexDirection:"column",justifyContent:"flex-start",width:X?"100%":"50%"},children:[g.jsxs(A.Box,{sx:{p:{xs:1.5,sm:2,md:3},pb:{xs:1,sm:1.5,md:2},textAlign:"left"},children:[g.jsx(A.Typography,{variant:"h6",component:"h2",sx:{mb:1},children:e}),g.jsx(Tl,{programState:t,safetyState:r,operationMode:n})]}),g.jsxs(A.Box,{sx:{p:{xs:1.5,sm:2,md:3},pt:0,flex:"1",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[!ae&&g.jsxs(A.Box,{children:[g.jsx(A.Typography,{variant:"body1",sx:{mb:0,color:f.palette.text.secondary,textAlign:"left"},children:m("RobotCard.Runtime.lb")}),g.jsx(A.Box,{sx:{textAlign:"left"},children:g.jsx(c,{variant:"small",compact:!0,onCycleComplete:re,onCycleEnd:d,autoStart:h})}),g.jsx(A.Divider,{sx:{mt:1,mb:0,borderColor:f.palette.divider,opacity:.5}})]}),g.jsx(A.Box,{sx:{mt:ae?0:"auto"},children:g.jsx(A.Box,{sx:{display:"flex",justifyContent:"flex-start",mt:{xs:1,sm:1.5,md:2},mb:{xs:.5,sm:.75,md:1}},children:g.jsx(A.Button,{ref:E,variant:"contained",color:"secondary",size:"small",disabled:!a,onMouseDown:G,onMouseUp:_,onMouseLeave:z,onTouchStart:G,onTouchEnd:_,sx:{textTransform:"none",px:1.5,py:.5},children:m("RobotCard.DriveToHome.bt")})})})]})]})]}):g.jsx(g.Fragment,{children:g.jsxs(A.Box,{sx:{p:3,height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(A.Box,{children:[g.jsx(A.Typography,{variant:"h6",component:"h2",sx:{mb:1},children:e}),g.jsx(Tl,{programState:t,safetyState:r,operationMode:n})]}),g.jsx(A.Box,{sx:{flex:X?0:1,position:"relative",minHeight:X?0:{xs:120,sm:150,md:200},height:X?0:"auto",borderRadius:1,overflow:"hidden",display:X?"none":"block"},children:!X&&g.jsxs(Ro.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:f.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute"},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[g.jsx(Ni,{}),g.jsx(ut.Bounds,{fit:!0,clip:!0,observe:!0,margin:1,children:g.jsx(l,{connectedMotionGroup:i,postModelRender:R})})]})}),g.jsxs(A.Box,{children:[!ae&&g.jsxs(g.Fragment,{children:[g.jsx(A.Typography,{variant:"body1",sx:{mb:0,color:f.palette.text.secondary},children:m("RobotCard.Runtime.lb")}),g.jsx(c,{variant:"small",compact:!0,onCycleComplete:re,onCycleEnd:d,autoStart:h}),g.jsx(A.Divider,{sx:{mt:1,mb:0,borderColor:f.palette.divider,opacity:.5}})]}),g.jsx(A.Box,{sx:{display:"flex",justifyContent:"flex-start",mt:ae?{xs:2,sm:3,md:4}:{xs:1,sm:2,md:5},mb:{xs:.5,sm:.75,md:1}},children:g.jsx(A.Button,{ref:E,variant:"contained",color:"secondary",size:"small",disabled:!a,onMouseDown:G,onMouseUp:_,onMouseLeave:z,onTouchStart:G,onTouchEnd:_,sx:{textTransform:"none",px:1.5,py:.5},children:m("RobotCard.DriveToHome.bt")})})]})]})})})})),C3=fr(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),P3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#38C6F4",fillRule:"evenodd",d:"M6.359 14.25v2.934h7.63v-3.521L10.196 9.87 9 8.674l.859-.859.337-.337.858-.858.565.565.631.63.565.565 1.196-1.195.543-.544 1.196-1.195-1.196-1.196-2.304-2.304L11.054.75 9.86 1.946 3.446 8.359 2.25 9.554l1.196 1.196 2.913 2.913zm1.69 0v1.244h4.249v-1.13L7.804 9.87 6.608 8.674l1.196-1.196L9.86 5.424l.007-.008-.543-.543-4.681 4.681 2.912 2.913.496.496v.113h2.124l1.174 1.174zm3.005-10.022-.294.294-.543-.543.837-.837 2.304 2.304-.543.543-.565-.565z",clipRule:"evenodd"})),T3=J.forwardRef(P3);var Ic=(e=>(e.PRECONDITION_NOT_FULFILLED="PRECONDITION_NOT_FULFILLED",e.ROBOT_DISCONNECTED="ROBOT_DISCONNECTED",e.READY="READY",e))(Ic||{});const rg=Ke(ye.observer(({setupState:e,className:t})=>{const r=A.useTheme(),{t:n}=Re.useTranslation(),a=()=>{var c,u,d,h;switch(e){case"READY":return{label:n("RobotSetupReadinessIndicator.Ready.lb"),indicatorColor:((c=r.palette.tertiary)==null?void 0:c.main)||r.palette.primary.main,backgroundColor:((u=r.palette.backgroundPaperElevation)==null?void 0:u[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText};case"ROBOT_DISCONNECTED":return{label:n("RobotSetupReadinessIndicator.RobotDisconnected.lb"),indicatorColor:r.palette.error.main,backgroundColor:((d=r.palette.backgroundPaperElevation)==null?void 0:d[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText};case"PRECONDITION_NOT_FULFILLED":default:return{label:n("RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb"),indicatorColor:r.palette.error.main,backgroundColor:((h=r.palette.backgroundPaperElevation)==null?void 0:h[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText}}},{label:o,indicatorColor:s,backgroundColor:i,textColor:l}=a();return g.jsx(A.Chip,{className:t,label:g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(A.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:s,flexShrink:0}}),g.jsx(A.Typography,{variant:"body2",sx:{color:l,fontSize:"0.75rem",lineHeight:1.2},children:o})]}),variant:"filled",sx:{backgroundColor:i,color:r.palette.getContrastText(i),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})})),R3=Ke(ye.observer(({robotName:e,robotType:t,setupState:r,PreconditionComponent:n=rg,className:a})=>{var l;const o=A.useTheme(),s=t||"Robot",i=r===Ic.READY;return g.jsxs(A.Box,{className:a,sx:{border:`1px solid ${o.palette.divider}`,background:((l=o.palette.backgroundPaperElevation)==null?void 0:l[8])||"#292B3F",height:80,minHeight:"80px",borderRadius:"8px",padding:"20px",display:"flex",alignItems:"center",justifyContent:"space-between",opacity:1},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:2,flex:1},children:[i?g.jsx(A.Box,{sx:{fontSize:24,display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,"& svg":{fill:`${o.palette.primary.main} !important`},"& svg path":{fill:`${o.palette.primary.main} !important`}},children:g.jsx(T3,{})}):g.jsx(C3,{sx:{color:o.palette.error.main,fontSize:24}}),g.jsx(A.Typography,{variant:"body1",sx:{fontWeight:500,color:o.palette.text.primary},children:e}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0,sx:{backgroundColor:o.palette.text.secondary,opacity:.3,width:"1px"}}),g.jsx(A.Typography,{variant:"body2",sx:{color:o.palette.text.secondary},children:s})]}),n&&g.jsx(n,{setupState:r})]})})),A3=Array(6).fill(2*Math.PI),Rl={[Mt.Abb]:[0,0,0,0,Math.PI/2,0,0],[Mt.Fanuc]:[0,0,0,0,-Math.PI/2,0,0],[Mt.Yaskawa]:[0,0,0,0,-Math.PI/2,0,0],[Mt.Kuka]:[0,-Math.PI/2,Math.PI/2,0,Math.PI/2,0,0],[Mt.Universalrobots]:[0,-Math.PI/2,-Math.PI/2,-Math.PI/2,Math.PI/2,-Math.PI/2,0]};function ng(e){const[t]=e.split("_");switch(t){case"ABB":return Mt.Abb;case"FANUC":return Mt.Fanuc;case"YASKAWA":return Mt.Yaskawa;case"KUKA":return Mt.Kuka;case"UniversalRobots":return Mt.Universalrobots;default:return null}}function _3(e,t){const r=ng(e);return r&&r in Rl?Rl[r]:t||null}const E3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),V3=J.forwardRef(E3),I3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),M3=J.forwardRef(I3),jt=ye.observer(({id:e,icon:t,color:r,title:n,name:a,label:o,explanation:s,literalValue:i,anchorOrigin:l,transformOrigin:c})=>{const u=ye.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!u.anchorEl},openPopover(d){u.anchorEl=d.currentTarget},closePopover(){u.anchorEl=null}}));return g.jsxs(g.Fragment,{children:[g.jsxs(A.Stack,{"aria-owns":u.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:u.openPopover,onMouseLeave:u.closePopover,direction:"row",spacing:1,sx:{cursor:"pointer"},children:[g.jsx(A.SvgIcon,{component:t,sx:{color:r}}),o&&g.jsx("div",{style:{color:r},children:o})]}),g.jsx(A.Popover,{id:e,sx:{pointerEvents:"none"},open:u.isPopoverOpen,anchorEl:u.anchorEl,anchorOrigin:l??{vertical:"bottom",horizontal:"left"},transformOrigin:c??{vertical:"top",horizontal:"left"},onClose:u.closePopover,disableRestoreFocus:!0,children:g.jsxs(A.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[g.jsxs("div",{children:[n&&g.jsx(A.Typography,{component:"span",fontSize:"14px",children:`${n}: `}),g.jsx(A.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:a})]}),g.jsx(A.Typography,{fontSize:"14px",children:s}),i&&g.jsx(A.Typography,{fontSize:"12px",children:i})]})})]})}),j3=ye.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:n,compact:a})=>{const o=A.useTheme(),{t:s}=Re.useTranslation();return e?g.jsx(jt,{id:"motion-group-virtual",icon:M3,color:o.palette.tertiary.main,name:s("SafetyBar.ControllerType.Virtual.lb"),label:a?null:s("SafetyBar.ControllerType.Virtual.lb"),explanation:g.jsxs(Re.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",g.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:n}):g.jsx(jt,{id:"motion-group-physical",icon:V3,color:o.palette.primary.main,name:s("SafetyBar.ControllerType.Physical.lb"),label:a?null:s("SafetyBar.ControllerType.Physical.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:g.jsx("code",{}),strong:g.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:n})}),k3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),$3=J.forwardRef(k3),U3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),D3=J.forwardRef(U3),L3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),B3=J.forwardRef(L3),N3=ye.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r,compact:n})=>{const{t:a}=Re.useTranslation(),o=A.useTheme();switch(e){case"OPERATION_MODE_AUTO":return g.jsx(jt,{id:"operation-mode-auto",icon:$3,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Automatic.ti"),label:n?null:a("SafetyBar.OperationMode.Automatic.ti"),color:o.palette.text.secondary,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return g.jsx(jt,{id:"operation-mode-manual",icon:B3,color:o.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Manual.lb"),label:n?null:a("SafetyBar.OperationMode.Manual.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return g.jsx(jt,{id:"operation-mode-error",icon:D3,color:o.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Error.lb"),label:n?null:a("SafetyBar.OperationMode.Error.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),F3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),z3=J.forwardRef(F3),G3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),H3=J.forwardRef(G3),q3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),W3=J.forwardRef(q3),J3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),Y3=J.forwardRef(J3),K3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),Q3=J.forwardRef(K3),X3=ye.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r,compact:n})=>{const{t:a}=Re.useTranslation(),o=A.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return g.jsx(jt,{id:"safety-state-normal",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Normal.lb"),label:n?null:a("SafetyBar.SafetyState.Normal.lb"),icon:Y3,color:o.palette.text.secondary,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return g.jsx(jt,{id:"safety-state-estop",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Estop.lb"),label:n?null:a("SafetyBar.SafetyState.Estop.lb"),icon:H3,color:o.palette.error.main,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return g.jsx(jt,{id:"safety-state-stop",icon:Q3,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Stop.lb"),label:n?null:a("SafetyBar.SafetyState.Stop.lb"),color:o.palette.warning.main,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return g.jsx(jt,{id:"safety-state-manual-action-required",icon:W3,color:o.palette.warning.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.ManualActionRequired.lb"),label:n?null:a("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return g.jsx(jt,{id:"safety-state-error",icon:z3,color:o.palette.error.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Error.lb"),label:n?null:a("SafetyBar.SafetyState.Error.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:QE(e,`Unknown safety state ${e}`)}}),Z3=Ke(ye.observer(({isVirtual:e,motionGroupId:t,operationMode:r,safetyState:n,anchorOrigin:a,transformOrigin:o,compact:s=!0})=>{const i=s?1:2;return g.jsxs(A.Stack,{direction:"row",gap:i,alignItems:"center",sx:{height:"24px"},children:[g.jsx(X3,{safetyState:n,anchorOrigin:a,transformOrigin:o,compact:s}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0}),g.jsx(N3,{operationMode:r,anchorOrigin:a,transformOrigin:o,compact:s}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0}),g.jsx(j3,{isVirtual:e,motionGroupId:t,anchorOrigin:a,transformOrigin:o,compact:s})]})})),ej=A.styled(A.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),tj=J.forwardRef((e,t)=>g.jsx(ej,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"}));function rj(e){const{children:t,value:r,index:n,...a}=e;return g.jsx("div",{role:"tabpanel",hidden:r!==n,id:`tabpanel-${n}`,"aria-labelledby":`tab-${n}`,...a,children:r===n&&g.jsx(A.Box,{children:t})})}const nj=Ke(ye.observer(e=>{const{items:t,defaultActiveTab:r=0,onTabChange:n,sx:a}=e,[o,s]=J.useState(r),i=(l,c)=>{s(c),n==null||n(c)};return g.jsxs(A.Box,{sx:{height:"100%",display:"flex",flexDirection:"column",...a},children:[g.jsx(A.Box,{sx:{px:3,pt:3,pb:3},children:g.jsx(A.Tabs,{value:o,onChange:i,sx:{minHeight:"auto",backgroundColor:"transparent",mt:3,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:2}},children:t.map((l,c)=>g.jsx(A.Tab,{label:l.label,icon:l.icon,iconPosition:"start",disableRipple:!0,sx:{minHeight:"auto",minWidth:"auto",padding:"4px 8px",borderRadius:"10px",backgroundColor:u=>{var d;return((d=u.palette.backgroundPaperElevation)==null?void 0:d[11])||"#32344B"},color:"text.primary",opacity:o===c?1:.38,textTransform:"none",fontWeight:500,transition:"all 0.2s ease-in-out","&:hover":{opacity:o===c?1:.6},"&.Mui-selected":{opacity:1,backgroundColor:u=>{var d;return((d=u.palette.backgroundPaperElevation)==null?void 0:d[11])||"#32344B"},color:"text.primary"},"&:focus":{outline:"none"},"&:active":{transform:"none"}}},l.id))})}),g.jsx(A.Box,{sx:{mx:3,borderBottom:1,borderColor:"divider"}}),g.jsx(A.Box,{sx:{flex:1,overflow:"auto"},children:t.map((l,c)=>g.jsx(rj,{value:o,index:c,children:l.content},l.id))})]})})),aj={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},oj=J.lazy(()=>import("@monaco-editor/react"));let Bi=null;async function sj(){if(!Bi){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);Bi={shiki:await e({langs:[aj],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return Bi}const ij=Ke(e=>{const t=A.useTheme(),[r,n]=J.useState("dark-plus"),a=t.palette.mode==="dark"?"dark-plus":"light-plus";async function o(s){var c,u;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:i,shikiToMonaco:l}=await sj();l(i,s),s.editor.defineTheme(a,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),n(a)}return g.jsx(J.Suspense,{fallback:g.jsx(Cc,{}),children:g.jsx(oj,{value:e.code,onMount:(s,i)=>{o(i)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ag(){var t,r,n,a,o,s,i;const e=A.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`},".MuiDataGrid-panelContent":{borderRadius:"16px !important","& .MuiPaper-root":{borderRadius:"16px !important"}},".MuiDataGrid-filterForm":{borderRadius:"16px !important","& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}},"& .MuiTextField-root":{"& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}}}},".MuiDataGrid-filterFormValueInput":{"& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}}}}},MuiDataGrid:{styleOverrides:{root:{},panelContent:{borderRadius:"16px !important"},filterForm:{"& .MuiInputBase-root":{borderRadius:"10px !important","& fieldset":{borderRadius:"10px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"10px !important"}}},filterFormValueInput:{"& .MuiInputBase-root":{borderRadius:"10px !important","& fieldset":{borderRadius:"10px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"10px !important"}}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(s=(o=e.paletteExt)==null?void 0:o.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingPanel:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)",labelColor:e.palette.text.primary},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)",labelColor:e.palette.text.primary},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)",labelColor:e.palette.text.primary}}},JoggingJoint:{Joint:{arrowColor:e.palette.text.primary}},VelocitySlider:{sliderLegendColor:e.palette.text.primary}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":A.rgbToHex(((i=e.palette.backgroundPaperElevation)==null?void 0:i[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function lj(){const e=ag();return e.palette.mode="light",e}function cj(e){var n,a,o,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(o=window.matchMedia)==null?void 0:o.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?ag():lj();return np(r,e)}exports.AppHeader=Mg;exports.CycleTimer=Tm;exports.JoggingCartesianAxisControl=al;exports.JoggingJointRotationControl=Im;exports.JoggingPanel=e3;exports.JoggingStore=qs;exports.LoadingCover=Cc;exports.LoadingErrorMessage=Cf;exports.LogPanel=l3;exports.LogStore=Yf;exports.LogViewer=Kf;exports.MANUFACTURER_HOME_CONFIGS=Rl;exports.NoMotionGroupModal=u3;exports.PoseCartesianValues=r3;exports.PoseJointValues=n3;exports.PresetEnvironment=Ni;exports.ProgramControl=d3;exports.ProgramState=vr;exports.ProgramStateIndicator=Tl;exports.Robot=tg;exports.RobotCard=w3;exports.RobotListItem=R3;exports.RobotSetupReadinessIndicator=rg;exports.RobotSetupReadinessState=Ic;exports.SafetyBar=Z3;exports.SafetyZonesRenderer=Rg;exports.SelectableFab=tj;exports.SupportedRobot=eg;exports.TabBar=nj;exports.TrajectoryRenderer=Ag;exports.ValueInterpolator=xc;exports.VelocitySlider=qf;exports.VelocitySliderLabel=Ec;exports.WandelbotsDataGrid=Rm;exports.WandelscriptEditor=ij;exports.createDebugMessage=a3;exports.createErrorMessage=i3;exports.createInfoMessage=o3;exports.createLogMessage=$a;exports.createNovaMuiTheme=cj;exports.createWarningMessage=s3;exports.defaultAxisConfig=A3;exports.defaultGetModel=Vc;exports.extractManufacturer=ng;exports.getDefaultHomeConfig=_3;exports.i18n=_l;exports.useAnimationFrame=Rn;exports.useAutorun=Am;exports.useInterpolation=Pm;exports.useMounted=Vs;exports.useReaction=_m;
152
+ `,E);const{tcps:O}=yield t.api.motionGroupInfos.listTcps(r),w=yield t.api.motionGroupInfos.getMotionGroupSpecification(r),P=yield t.api.motionGroupInfos.getSafetySetup(r);return new Sf(t,l,c,h,u,f,O,w,P,m,E,y)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}get dhParameters(){return this.motionGroupSpecification.dh_parameters}get safetyZones(){return this.safetySetup.safety_zones}get mountingPosition(){return this.mounting?[this.mounting.pose.position.x/1e3,this.mounting.pose.position.y/1e3,this.mounting.pose.position.z/1e3]:[0,0,0]}get mountingQuaternion(){var t,r,n,a,o,s;const i=new Ue.Vector3(((r=(t=this.mounting)==null?void 0:t.pose.orientation)==null?void 0:r.x)||0,((a=(n=this.mounting)==null?void 0:n.pose.orientation)==null?void 0:a.y)||0,((s=(o=this.mounting)==null?void 0:o.pose.orientation)==null?void 0:s.z)||0),l=i.length(),c=i.normalize();return new Ue.Quaternion().setFromAxisAngle(c,l)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}deactivate(){return Ee(this,null,function*(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}je.runInAction(()=>{this.activationState="deactivating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_MONITOR"),je.runInAction(()=>{this.activationState="inactive"})}catch(t){throw je.runInAction(()=>{this.activationState="active"}),t}})}activate(){return Ee(this,null,function*(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}je.runInAction(()=>{this.activationState="activating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_CONTROL"),je.runInAction(()=>{this.activationState="active"})}catch(t){throw je.runInAction(()=>{this.activationState="inactive"}),t}})}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.connectedJoggingCartesianSocket&&this.connectedJoggingCartesianSocket.close(),this.connectedJoggingJointsSocket&&this.connectedJoggingJointsSocket.close()}setJoggingVelocity(t){this.joggingVelocity=t}},z2=class Of{constructor(t,r={}){this.motionStream=t,this.opts=r,this.cartesianWebsocket=null,this.jointWebsocket=null,this.cartesianJoggingOpts={}}static open(t,r){return Ee(this,arguments,function*(n,a,o={}){const s=yield n.connectMotionStream(a);return new Of(s,o)})}get motionGroupId(){return this.motionStream.motionGroupId}get nova(){return this.motionStream.nova}get numJoints(){return this.motionStream.joints.length}get activeJoggingMode(){return this.cartesianWebsocket?"cartesian":this.jointWebsocket?"joint":"increment"}get activeWebsocket(){return this.cartesianWebsocket||this.jointWebsocket}stop(){return Ee(this,null,function*(){this.cartesianWebsocket&&this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:{x:0,y:0,z:0},rotation_direction:{x:0,y:0,z:0},position_velocity:0,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId}),this.jointWebsocket&&this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:new Array(this.numJoints).fill(0)})})}dispose(){this.cartesianWebsocket&&this.cartesianWebsocket.dispose(),this.jointWebsocket&&this.jointWebsocket.dispose()}setJoggingMode(t,r){console.log("Setting jogging mode to",t),r&&(WA(this.cartesianJoggingOpts,r)||this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),this.cartesianJoggingOpts=r),t!=="cartesian"&&this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),t!=="joint"&&this.jointWebsocket&&(this.jointWebsocket.dispose(),this.jointWebsocket=null),t==="cartesian"&&!this.cartesianWebsocket&&(this.cartesianWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-tcp"),this.cartesianWebsocket.addEventListener("message",n=>{const a=lr(n.data);if(a&&"error"in a)if(this.opts.onError)this.opts.onError(n.data);else throw new Error(n.data)})),t==="joint"&&!this.jointWebsocket&&(this.jointWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-joint"),this.jointWebsocket.addEventListener("message",n=>{const a=lr(n.data);if(a&&"error"in a)if(this.opts.onError)this.opts.onError(n.data);else throw new Error(n.data)}))}startJointRotation(t){return Ee(this,arguments,function*({joint:r,direction:n,velocityRadsPerSec:a}){if(!this.jointWebsocket)throw new Error("Joint jogging websocket not connected; call setJoggingMode first");const o=new Array(this.numJoints).fill(0);o[r]=n==="-"?-a:a,this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:o})})}startTCPTranslation(t){return Ee(this,arguments,function*({axis:r,direction:n,velocityMmPerSec:a}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=n==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:s,rotation_direction:o,position_velocity:a,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}startTCPRotation(t){return Ee(this,arguments,function*({axis:r,direction:n,velocityRadsPerSec:a}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=n==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:o,rotation_direction:s,position_velocity:0,rotation_velocity:a,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}runIncrementalCartesianMotion(t){return Ee(this,arguments,function*({currentTcpPose:r,currentJoints:n,coordSystemId:a,velocityInRelevantUnits:o,axis:s,direction:i,motion:l}){var c;const u=[];if(!c_(r.coordinate_system,a))throw new Error(`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${a}`);if(l.type==="translate"){const p=Object.assign({},r.position);p[s]+=l.distanceMm*(i==="-"?-1:1),u.push({settings:{limits_override:{tcp_velocity_limit:o}},line:{position:p,orientation:r.orientation,coordinate_system:a}})}else if(l.type==="rotate"){const p=new pn(r.orientation.x,r.orientation.y,r.orientation.z),f=p.length(),m=p.clone().normalize(),y=l.distanceRads*(i==="-"?-1:1),S=new pn(0,0,0);S[s]=1;const E=Math.cos(.5*y)*Math.cos(.5*f),O=Math.sin(.5*y)*Math.sin(.5*f),w=Math.sin(.5*y)*Math.cos(.5*f),P=Math.cos(.5*y)*Math.sin(.5*f),C=S.dot(m),T=S.clone().cross(m),I=2*Math.acos(E-O*C),N=I/Math.sin(.5*I),b=new pn().addScaledVector(T,O).addScaledVector(S,w).addScaledVector(m,P).multiplyScalar(N);u.push({settings:{limits_override:{tcp_orientation_velocity_limit:o}},line:{position:r.position,orientation:b,coordinate_system:a}})}const d=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:n,tcp:this.cartesianJoggingOpts.tcpId,commands:u}),h=(c=d.plan_successful_response)==null?void 0:c.motion;if(!h)throw new Error(`Failed to plan jogging increment motion ${JSON.stringify(d)}`);yield this.nova.api.motion.streamMoveForward(h,100,void 0,void 0,void 0,{timeout:1e3*60})})}runIncrementalJointRotation(t){return Ee(this,arguments,function*({joint:r,currentJoints:n,velocityRadsPerSec:a,direction:o,distanceRads:s}){var i;const l=[...n.joints];l[r]+=s*(o==="-"?-1:1);const c=new Array(n.joints.length).fill(a),u=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:n,commands:[{settings:{limits_override:{joint_velocity_limits:{joints:c}}},joint_ptp:{joints:l}}]}),d=(i=u.plan_successful_response)==null?void 0:i.motion;if(!d){console.error("Failed to plan jogging increment motion",u);return}yield this.nova.api.motion.streamMoveForward(d,100,void 0,void 0,void 0,{timeout:1e3*60})})}},sh=1e-4;function G2(e,t){const r=new Ot.Vector3(t.x,t.y,t.z),n=new Ot.Vector3(e.x,e.y,e.z),a=r.length(),o=r.normalize();let s=n.length(),i=n.normalize();i.dot(o)<0&&(s=-s,i=i.multiplyScalar(-1));let l=s-a;return l-=2*Math.PI*Math.floor((l+Math.PI)/(2*Math.PI)),s=a+l,i.multiplyScalar(s)}var H2=class wf{constructor(t,r,n,a,o){this.nova=t,this.controller=r,this.motionGroup=n,this.initialMotionState=a,this.motionStateSocket=o,this.rapidlyChangingMotionState=a,o.addEventListener("message",s=>{var i;const l=(i=lr(s.data))==null?void 0:i.result;if(!l)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${s.data}`);xf(this.rapidlyChangingMotionState.state.joint_position.joints,l.state.joint_position.joints,sh)||je.runInAction(()=>{this.rapidlyChangingMotionState.state=l.state}),vf(this.rapidlyChangingMotionState.tcp_pose,l.tcp_pose,sh)||je.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose==null?this.rapidlyChangingMotionState.tcp_pose=l.tcp_pose:this.rapidlyChangingMotionState.tcp_pose={position:l.tcp_pose.position,orientation:G2(l.tcp_pose.orientation,this.rapidlyChangingMotionState.tcp_pose.orientation),tcp:l.tcp_pose.tcp,coordinate_system:l.tcp_pose.coordinate_system}})}),je.makeAutoObservable(this)}static open(t,r){return Ee(this,null,function*(){var n;const{instances:a}=yield t.api.controller.listControllers(),[o,s]=r.split("@"),i=a.find(h=>h.controller===s),l=i==null?void 0:i.physical_motion_groups.find(h=>h.motion_group===r);if(!i||!l)throw new Error(`Controller ${s} or motion group ${r} not found`);const c=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),u=yield c.firstMessage();console.log("got first message",u);const d=(n=lr(u.data))==null?void 0:n.result;if(!d)throw new Error(`Unable to parse initial motion state message ${u.data}`);return console.log(`Connected motion state websocket to motion group ${l.motion_group}. Initial state:
153
+ `,d),new wf(t,i,l,d,c)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}dispose(){this.motionStateSocket.close()}},q2=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(_2),this.cell=this.withUnwrappedResponsesOnly(HE),this.deviceConfig=this.withCellId(ZE),this.motionGroup=this.withCellId(d2),this.motionGroupInfos=this.withCellId(p2),this.controller=this.withCellId(WE),this.program=this.withCellId(x2),this.programValues=this.withCellId(S2),this.controllerIOs=this.withCellId(YE),this.motionGroupKinematic=this.withCellId(y2),this.motion=this.withCellId(c2),this.coordinateSystems=this.withCellId(QE),this.application=this.withCellId(rh),this.applicationGlobal=this.withUnwrappedResponsesOnly(rh),this.motionGroupJogging=this.withCellId(f2),this.virtualRobot=this.withCellId(V2),this.virtualRobotSetup=this.withCellId(U2),this.virtualRobotMode=this.withCellId(k2),this.virtualRobotBehavior=this.withCellId(M2),this.libraryProgramMetadata=this.withCellId(n2),this.libraryProgram=this.withCellId(t2),this.libraryRecipeMetadata=this.withCellId(i2),this.libraryRecipe=this.withCellId(o2),this.storeObject=this.withCellId(R2),this.storeCollisionComponents=this.withCellId(w2),this.storeCollisionScenes=this.withCellId(P2)}withCellId(e){var t,r;const n=new e(dl(ln({},this.opts),{isJsonMime:a=>a==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:V.create());for(const a of Reflect.ownKeys(Reflect.getPrototypeOf(n)))if(a!=="constructor"&&typeof n[a]=="function"){const o=n[a];n[a]=(...s)=>o.apply(n,[this.cellId,...s]).then(i=>i.data)}return n}withUnwrappedResponsesOnly(e){var t,r;const n=new e(dl(ln({},this.opts),{isJsonMime:a=>a==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:V.create());for(const a of Reflect.ownKeys(Reflect.getPrototypeOf(n)))if(a!=="constructor"&&typeof n[a]=="function"){const o=n[a];n[a]=(...s)=>o.apply(n,s).then(i=>i.data)}return n}},W2=class{constructor(){this.connections=[]}handleAPIRequest(e){return Ee(this,null,function*(){var t,r,n;const a=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return{instances:[{controller:"mock-ur5e",model_name:"UniversalRobots::Controller",host:"mock-ur5e",allow_software_install_on_controller:!0,physical_motion_groups:[{motion_group:"0@mock-ur5e",name_from_controller:"UR5e",active:!1,model_from_controller:"UniversalRobots_UR5e"}],has_error:!1,error_details:""}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{kind:"VirtualController",manufacturer:"universalrobots",position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/specification",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],mechanical_joint_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/safety-setup",handle(){return{safety_settings:[{safety_state:"SAFETY_NORMAL",settings:{joint_position_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-2.96705961227417,upper_limit:2.96705961227417,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-1.7453292608261108,upper_limit:2.7925267219543457,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-3.3161256313323975,upper_limit:.40142571926116943,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-3.4906585216522217,upper_limit:3.4906585216522217,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-2.4434609413146973,upper_limit:2.4434609413146973,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-4.71238899230957,upper_limit:4.71238899230957,unlimited:!1}],joint_velocity_limits:[{joint:"JOINTNAME_AXIS_1",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_2",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_3",limit:3.4906585216522217},{joint:"JOINTNAME_AXIS_4",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_5",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_6",limit:6.981317043304443}],joint_acceleration_limits:[],joint_torque_limits:[],tcp_velocity_limit:1800}}],safety_zones:[{id:1,priority:0,geometry:{compound:{child_geometries:[{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820},{x:-800,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:-1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:-800,y:1330,z:-1820},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500},{x:1650,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:1650,y:-1330,z:1500},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Cell workzone"},motion_group_uid:1},{id:2,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-1850},{x:865,y:1330,z:-1850},{x:865,y:-720,z:-1850},{x:1650,y:-720,z:-1850},{x:1650,y:1330,z:-920},{x:865,y:1330,z:-920},{x:865,y:-720,z:-920},{x:1650,y:-720,z:-920}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Transport"},motion_group_uid:1},{id:3,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-600},{x:865,y:1330,z:-600},{x:865,y:430,z:-600},{x:1650,y:430,z:-600},{x:1650,y:1330,z:-1250},{x:865,y:1330,z:-1250},{x:865,y:430,z:-1250},{x:1650,y:430,z:-1250}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Tunel"},motion_group_uid:1},{id:4,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:-760,z:-440},{x:900,y:-760,z:-440},{x:900,y:-1330,z:-440},{x:1650,y:-1330,z:-440},{x:1650,y:-760,z:-1800},{x:900,y:-760,z:-1800},{x:900,y:-1330,z:-1800},{x:1650,y:-1330,z:-1800}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Fanuc controller"},motion_group_uid:1},{id:6,priority:0,geometry:{convex_hull:{vertices:[{x:-200,y:-200,z:-1900},{x:200,y:-200,z:-1900},{x:200,y:200,z:-1900},{x:-200,y:200,z:-1900},{x:-200,y:-200,z:-350},{x:200,y:-200,z:-350},{x:200,y:200,z:-350},{x:-200,y:200,z:-350}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Robot base"},motion_group_uid:1}],robot_model_geometries:[{link_index:1,geometry:{sphere:{radius:270},init_pose:{position:{x:-70,y:-70,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link1_sphere"}},{link_index:2,geometry:{capsule:{radius:160,cylinder_height:800},init_pose:{position:{x:-450,y:40,z:170},orientation:{x:0,y:-.7071067811865475,z:0,w:.7071067811865476}},id:"link2_capsule"}},{link_index:3,geometry:{sphere:{radius:270},init_pose:{position:{x:-110,y:10,z:-100},orientation:{x:0,y:0,z:0,w:1}},id:"link3_sphere"}},{link_index:4,geometry:{capsule:{radius:110,cylinder_height:600},init_pose:{position:{x:0,y:300,z:40},orientation:{x:-.7071067811865475,y:0,z:0,w:.7071067811865476}},id:"link4_capsule"}},{link_index:5,geometry:{sphere:{radius:75},init_pose:{position:{x:0,y:0,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link5_sphere"}}],tool_geometries:[]}}},{method:"GET",path:"/cells/:cellId/coordinate-systems",handle(){return{coordinatesystems:[{coordinate_system:"",name:"world",reference_uid:"",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0],type:"ROTATION_VECTOR"}}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/tcps",handle(){return{tcps:[{id:"Flange",readable_name:"Default-Flange",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0,0],type:"ROTATION_VECTOR"}},{id:"complex-tcp-position",readable_name:"Complex TCP Position",position:{x:-200,y:300,z:150},rotation:{angles:[-.12139440409113832,-.06356210998212003,-.2023240068185639,0],type:"ROTATION_VECTOR"}}]}}}],o=((t=e.method)==null?void 0:t.toUpperCase())||"GET",s="/cells"+((n=(r=e.url)==null?void 0:r.split("/cells")[1])==null?void 0:n.split("?")[0]);for(const i of a){const l=N2.match(i.path)(s||"");if(o===i.method&&l){const c=i.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new bl(`No mock handler matched this request: ${o} ${s}`,"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(J2)})),e.url.includes("/move-joint")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:48:26.096266444Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3492152690887451,-1.5659207105636597,1.6653711795806885,-1.0991662740707397,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:""},tcp_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"671259"}],sequence_number:"671259"},movement_state:"MOVEMENT_STATE_MOVING"}})})),e.url.includes("/move-tcp")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:43:12.188335774Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3352527618408203,-1.5659207105636597,1.6653711795806885,-1.110615611076355,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:""},tcp_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"627897"}],sequence_number:"627897"},movement_state:"MOVEMENT_STATE_MOVING"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},J2={result:{state:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",joint_position:{joints:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:""},tcp_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"1"},tcp_pose:{position:{x:302.90748476115556,y:-152.87065869452337,z:424.0454619321661},orientation:{x:2.3403056115045353,y:-1.1706836379431356,z:.9772511964246311},coordinate_system:"",tcp:"Flange"}}},Y2=class{constructor(e){this.authPromise=null,this.accessToken=null;var t;const r=(t=e.cellId)!=null?t:"cell";this.config=ln({cellId:r},e),this.accessToken=e.accessToken||_i.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new W2);const n=V.create({baseURL:$i(this.config.instanceUrl,"/api/v1"),headers:{"User-Agent":"Wandelbots-Nova-JS-SDK"}});n.interceptors.request.use(a=>Ee(this,null,function*(){return a.headers.Authorization||(this.accessToken?a.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(a.headers.Authorization=`Basic ${btoa(e.username+":"+e.password)}`)),a})),typeof window<"u"&&n.interceptors.response.use(a=>a,a=>Ee(this,null,function*(){var o,s;if(NE(a))if(((o=a.response)==null?void 0:o.status)===401)try{if(yield this.renewAuthentication(),a.config)return this.accessToken?a.config.headers.Authorization=`Bearer ${this.accessToken}`:delete a.config.headers.Authorization,n.request(a.config)}catch(i){return Promise.reject(i)}else((s=a.response)==null?void 0:s.status)===503&&(yield fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(a)})),this.api=new q2(r,dl(ln({},e),{basePath:$i(this.config.instanceUrl,"/api/v1"),isJsonMime:a=>a==="application/json",baseOptions:ln(ln({},this.mock?{adapter:a=>this.mock.handleAPIRequest(a)}:{}),e.baseOptions),axiosInstance:n}))}renewAuthentication(){return Ee(this,null,function*(){if(!this.authPromise){this.authPromise=d_(this.config.instanceUrl);try{this.accessToken=yield this.authPromise,this.accessToken?_i.setString("wbjs.access_token",this.accessToken):_i.delete("wbjs.access_token")}finally{this.authPromise=null}}})}makeWebsocketURL(e){const t=new URL($i(this.config.instanceUrl,`/api/v1/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 i_(this.makeWebsocketURL(e),{mock:this.mock})}connectMotionStream(e){return Ee(this,null,function*(){return yield H2.open(this,e)})}connectJogger(e){return Ee(this,null,function*(){return yield z2.open(this,e)})}connectMotionGroups(e){return Ee(this,null,function*(){const{instances:t}=yield this.api.controller.listControllers();return Promise.all(e.map(r=>F2.connect(this,r,t)))})}connectMotionGroup(e){return Ee(this,null,function*(){return(yield this.connectMotionGroups([e]))[0]})}};function K2(e){try{return JSON.stringify(e)}catch{return}}function Q2(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function X2(e){var t,r,n,a;return e instanceof bl&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof bl&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${K2(e)||e}`}const Cc=e=>{const t=e.softTimeout||3e3,[r,n]=J.useState(!1),a=A.useTheme();return J.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),g.jsx(A.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:a.palette.text.primary},children:e.error?g.jsx(Cf,{loadingMessage:e.message,error:e.error}):g.jsxs(g.Fragment,{children:[g.jsx(A.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&g.jsx("div",{children:e.message}),g.jsx(A.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:a.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Cf=e=>{const t=X2(e.error),r=e.error instanceof Error?e.error.stack:null,n=A.useTheme();return g.jsxs(A.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Al.lowerFirst(A.capitalize(e.loadingMessage))} - `:"")+t,g.jsx("br",{}),r&&g.jsx("pre",{children:r})]})},Z2=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),eV=J.forwardRef(Z2),tV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),rV=J.forwardRef(tV),nV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),aV=J.forwardRef(nV),oV=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),sV=J.forwardRef(oV);function iV(){this.__data__=[],this.size=0}function Pf(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Pf(e[r][0],t))return r;return-1}var lV=Array.prototype,cV=lV.splice;function uV(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():cV.call(t,r,1),--this.size,!0}function dV(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function hV(e){return Fs(this.__data__,e)>-1}function pV(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Zt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zt.prototype.clear=iV;Zt.prototype.delete=uV;Zt.prototype.get=dV;Zt.prototype.has=hV;Zt.prototype.set=pV;function mV(){this.__data__=new Zt,this.size=0}function fV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gV(e){return this.__data__.get(e)}function yV(e){return this.__data__.has(e)}var bV="[object AsyncFunction]",xV="[object Function]",vV="[object GeneratorFunction]",SV="[object Proxy]";function Tf(e){if(!_r(e))return!1;var t=Lr(e);return t==xV||t==vV||t==bV||t==SV}var Ui=Dt["__core-js_shared__"],ih=function(){var e=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function OV(e){return!!ih&&ih in e}var wV=Function.prototype,CV=wV.toString;function Nr(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var PV=/[\\^$.*+?()[\]{}|]/g,TV=/^\[object .+?Constructor\]$/,RV=Function.prototype,AV=Object.prototype,_V=RV.toString,EV=AV.hasOwnProperty,VV=RegExp("^"+_V.call(EV).replace(PV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IV(e){if(!_r(e)||OV(e))return!1;var t=Tf(e)?VV:TV;return t.test(Nr(e))}function MV(e,t){return e==null?void 0:e[t]}function Fr(e,t){var r=MV(e,t);return IV(r)?r:void 0}var wa=Fr(Dt,"Map"),Ca=Fr(Object,"create");function jV(){this.__data__=Ca?Ca(null):{},this.size=0}function kV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $V="__lodash_hash_undefined__",UV=Object.prototype,DV=UV.hasOwnProperty;function LV(e){var t=this.__data__;if(Ca){var r=t[e];return r===$V?void 0:r}return DV.call(t,e)?t[e]:void 0}var BV=Object.prototype,NV=BV.hasOwnProperty;function FV(e){var t=this.__data__;return Ca?t[e]!==void 0:NV.call(t,e)}var zV="__lodash_hash_undefined__";function GV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===void 0?zV:t,this}function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ir.prototype.clear=jV;Ir.prototype.delete=kV;Ir.prototype.get=LV;Ir.prototype.has=FV;Ir.prototype.set=GV;function HV(){this.size=0,this.__data__={hash:new Ir,map:new(wa||Zt),string:new Ir}}function qV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zs(e,t){var r=e.__data__;return qV(t)?r[typeof t=="string"?"string":"hash"]:r.map}function WV(e){var t=zs(this,e).delete(e);return this.size-=t?1:0,t}function JV(e){return zs(this,e).get(e)}function YV(e){return zs(this,e).has(e)}function KV(e,t){var r=zs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}er.prototype.clear=HV;er.prototype.delete=WV;er.prototype.get=JV;er.prototype.has=YV;er.prototype.set=KV;var QV=200;function XV(e,t){var r=this.__data__;if(r instanceof Zt){var n=r.__data__;if(!wa||n.length<QV-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new er(n)}return r.set(e,t),this.size=r.size,this}function qt(e){var t=this.__data__=new Zt(e);this.size=t.size}qt.prototype.clear=mV;qt.prototype.delete=fV;qt.prototype.get=gV;qt.prototype.has=yV;qt.prototype.set=XV;var ZV="__lodash_hash_undefined__";function eI(e){return this.__data__.set(e,ZV),this}function tI(e){return this.__data__.has(e)}function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new er;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=eI;Xo.prototype.has=tI;function rI(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function nI(e,t){return e.has(t)}var aI=1,oI=2;function Rf(e,t,r,n,a,o){var s=r&aI,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=r&oI?new Xo:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var f=e[d],m=t[d];if(n)var y=s?n(m,f,d,t,e,o):n(f,m,d,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!rI(t,function(S,E){if(!nI(p,E)&&(f===S||a(f,S,r,n,o)))return p.push(E)})){h=!1;break}}else if(!(f===m||a(f,m,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var lh=Dt.Uint8Array;function sI(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function iI(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var lI=1,cI=2,uI="[object Boolean]",dI="[object Date]",hI="[object Error]",pI="[object Map]",mI="[object Number]",fI="[object RegExp]",gI="[object Set]",yI="[object String]",bI="[object Symbol]",xI="[object ArrayBuffer]",vI="[object DataView]",ch=hr?hr.prototype:void 0,Di=ch?ch.valueOf:void 0;function SI(e,t,r,n,a,o,s){switch(r){case vI:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xI:return!(e.byteLength!=t.byteLength||!o(new lh(e),new lh(t)));case uI:case dI:case mI:return Pf(+e,+t);case hI:return e.name==t.name&&e.message==t.message;case fI:case yI:return e==t+"";case pI:var i=sI;case gI:var l=n&lI;if(i||(i=iI),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=cI,s.set(e,t);var u=Rf(i(e),i(t),n,a,o,s);return s.delete(e),u;case bI:if(Di)return Di.call(e)==Di.call(t)}return!1}function OI(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Ut=Array.isArray;function wI(e,t,r){var n=t(e);return Ut(e)?n:OI(n,r(e))}function CI(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}function PI(){return[]}var TI=Object.prototype,RI=TI.propertyIsEnumerable,uh=Object.getOwnPropertySymbols,AI=uh?function(e){return e==null?[]:(e=Object(e),CI(uh(e),function(t){return RI.call(e,t)}))}:PI;function _I(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var EI="[object Arguments]";function dh(e){return Er(e)&&Lr(e)==EI}var Af=Object.prototype,VI=Af.hasOwnProperty,II=Af.propertyIsEnumerable,_f=dh(function(){return arguments}())?dh:function(e){return Er(e)&&VI.call(e,"callee")&&!II.call(e,"callee")};function MI(){return!1}var Ef=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hh=Ef&&typeof module=="object"&&module&&!module.nodeType&&module,jI=hh&&hh.exports===Ef,ph=jI?Dt.Buffer:void 0,kI=ph?ph.isBuffer:void 0,vl=kI||MI,$I=9007199254740991,UI=/^(?:0|[1-9]\d*)$/;function Vf(e,t){var r=typeof e;return t=t??$I,!!t&&(r=="number"||r!="symbol"&&UI.test(e))&&e>-1&&e%1==0&&e<t}var DI=9007199254740991;function Pc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DI}var LI="[object Arguments]",BI="[object Array]",NI="[object Boolean]",FI="[object Date]",zI="[object Error]",GI="[object Function]",HI="[object Map]",qI="[object Number]",WI="[object Object]",JI="[object RegExp]",YI="[object Set]",KI="[object String]",QI="[object WeakMap]",XI="[object ArrayBuffer]",ZI="[object DataView]",eM="[object Float32Array]",tM="[object Float64Array]",rM="[object Int8Array]",nM="[object Int16Array]",aM="[object Int32Array]",oM="[object Uint8Array]",sM="[object Uint8ClampedArray]",iM="[object Uint16Array]",lM="[object Uint32Array]",_e={};_e[eM]=_e[tM]=_e[rM]=_e[nM]=_e[aM]=_e[oM]=_e[sM]=_e[iM]=_e[lM]=!0;_e[LI]=_e[BI]=_e[XI]=_e[NI]=_e[ZI]=_e[FI]=_e[zI]=_e[GI]=_e[HI]=_e[qI]=_e[WI]=_e[JI]=_e[YI]=_e[KI]=_e[QI]=!1;function cM(e){return Er(e)&&Pc(e.length)&&!!_e[Lr(e)]}function uM(e){return function(t){return e(t)}}var If=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la=If&&typeof module=="object"&&module&&!module.nodeType&&module,dM=la&&la.exports===If,Li=dM&&Em.process,mh=function(){try{var e=la&&la.require&&la.require("util").types;return e||Li&&Li.binding&&Li.binding("util")}catch{}}(),fh=mh&&mh.isTypedArray,Mf=fh?uM(fh):cM,hM=Object.prototype,pM=hM.hasOwnProperty;function mM(e,t){var r=Ut(e),n=!r&&_f(e),a=!r&&!n&&vl(e),o=!r&&!n&&!a&&Mf(e),s=r||n||a||o,i=s?_I(e.length,String):[],l=i.length;for(var c in e)pM.call(e,c)&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vf(c,l)))&&i.push(c);return i}var fM=Object.prototype;function gM(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fM;return e===r}function yM(e,t){return function(r){return e(t(r))}}var bM=yM(Object.keys,Object),xM=Object.prototype,vM=xM.hasOwnProperty;function SM(e){if(!gM(e))return bM(e);var t=[];for(var r in Object(e))vM.call(e,r)&&r!="constructor"&&t.push(r);return t}function jf(e){return e!=null&&Pc(e.length)&&!Tf(e)}function Tc(e){return jf(e)?mM(e):SM(e)}function gh(e){return wI(e,Tc,AI)}var OM=1,wM=Object.prototype,CM=wM.hasOwnProperty;function PM(e,t,r,n,a,o){var s=r&OM,i=gh(e),l=i.length,c=gh(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=i[d];if(!(s?h in t:CM.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=s;++d<l;){h=i[d];var S=e[h],E=t[h];if(n)var O=s?n(E,S,h,t,e,o):n(S,E,h,e,t,o);if(!(O===void 0?S===E||a(S,E,r,n,o):O)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var w=e.constructor,P=t.constructor;w!=P&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof P=="function"&&P instanceof P)&&(m=!1)}return o.delete(e),o.delete(t),m}var Sl=Fr(Dt,"DataView"),Ol=Fr(Dt,"Promise"),wl=Fr(Dt,"Set"),Cl=Fr(Dt,"WeakMap"),yh="[object Map]",TM="[object Object]",bh="[object Promise]",xh="[object Set]",vh="[object WeakMap]",Sh="[object DataView]",RM=Nr(Sl),AM=Nr(wa),_M=Nr(Ol),EM=Nr(wl),VM=Nr(Cl),sr=Lr;(Sl&&sr(new Sl(new ArrayBuffer(1)))!=Sh||wa&&sr(new wa)!=yh||Ol&&sr(Ol.resolve())!=bh||wl&&sr(new wl)!=xh||Cl&&sr(new Cl)!=vh)&&(sr=function(e){var t=Lr(e),r=t==TM?e.constructor:void 0,n=r?Nr(r):"";if(n)switch(n){case RM:return Sh;case AM:return yh;case _M:return bh;case EM:return xh;case VM:return vh}return t});var IM=1,Oh="[object Arguments]",wh="[object Array]",uo="[object Object]",MM=Object.prototype,Ch=MM.hasOwnProperty;function jM(e,t,r,n,a,o){var s=Ut(e),i=Ut(t),l=s?wh:sr(e),c=i?wh:sr(t);l=l==Oh?uo:l,c=c==Oh?uo:c;var u=l==uo,d=c==uo,h=l==c;if(h&&vl(e)){if(!vl(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new qt),s||Mf(e)?Rf(e,t,r,n,a,o):SI(e,t,l,r,n,a,o);if(!(r&IM)){var p=u&&Ch.call(e,"__wrapped__"),f=d&&Ch.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,y=f?t.value():t;return o||(o=new qt),a(m,y,r,n,o)}}return h?(o||(o=new qt),PM(e,t,r,n,a,o)):!1}function Gs(e,t,r,n,a){return e===t?!0:e==null||t==null||!Er(e)&&!Er(t)?e!==e&&t!==t:jM(e,t,r,n,Gs,a)}function kM(e,t){return Gs(e,t)}const kf=({store:e})=>{const{t}=Re.useTranslation(),[r,n]=J.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=J.useRef(r);Rn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;kM(a.current,s)||(a.current=s,n(s))});const o=[];for(const[s,i]of r.entries())i&&o.push(s);return g.jsx(A.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:o.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(s=>s+1).join(", ")})})},$M=A.styled(A.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function ho({labelValue:e,...t}){return g.jsxs($M,{fullWidth:!0,variant:"filled",children:[g.jsx(A.InputLabel,{id:t.labelId,children:e}),g.jsx(A.Select,{...t})]})}var Ph=function(){try{var e=Fr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function UM(e,t,r){t=="__proto__"&&Ph?Ph(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function DM(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;){var s=e[a];t(n,s,r(s),e)}return n}function LM(e){return function(t,r,n){for(var a=-1,o=Object(t),s=n(t),i=s.length;i--;){var l=s[++a];if(r(o[l],l,o)===!1)break}return t}}var BM=LM();function NM(e,t){return e&&BM(e,t,Tc)}function FM(e,t){return function(r,n){if(r==null)return r;if(!jf(r))return e(r,n);for(var a=r.length,o=-1,s=Object(r);++o<a&&n(s[o],o,s)!==!1;);return r}}var zM=FM(NM);function GM(e,t,r,n){return zM(e,function(a,o,s){t(n,a,r(a),s)}),n}var HM=1,qM=2;function WM(e,t,r,n){var a=r.length,o=a;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=r[a];var i=s[0],l=e[i],c=s[1];if(s[2]){if(l===void 0&&!(i in e))return!1}else{var u=new qt,d;if(!(d===void 0?Gs(c,l,HM|qM,n,u):d))return!1}}return!0}function $f(e){return e===e&&!_r(e)}function JM(e){for(var t=Tc(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,$f(a)]}return t}function Uf(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function YM(e){var t=JM(e);return t.length==1&&t[0][2]?Uf(t[0][0],t[0][1]):function(r){return r===e||WM(r,e,t)}}var KM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QM=/^\w*$/;function Rc(e,t){if(Ut(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Is(e)?!0:QM.test(e)||!KM.test(e)||t!=null&&e in Object(t)}var XM="Expected a function";function Ac(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(XM);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s)||o,s};return r.cache=new(Ac.Cache||er),r}Ac.Cache=er;var ZM=500;function e5(e){var t=Ac(e,function(n){return r.size===ZM&&r.clear(),n}),r=t.cache;return t}var t5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r5=/\\(\\)?/g,n5=e5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(t5,function(r,n,a,o){t.push(a?o.replace(r5,"$1"):n||r)}),t});function a5(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Th=hr?hr.prototype:void 0,Rh=Th?Th.toString:void 0;function Df(e){if(typeof e=="string")return e;if(Ut(e))return a5(e,Df)+"";if(Is(e))return Rh?Rh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Lf(e){return e==null?"":Df(e)}function Bf(e,t){return Ut(e)?e:Rc(e,t)?[e]:n5(Lf(e))}function Hs(e){if(typeof e=="string"||Is(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Nf(e,t){t=Bf(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Hs(t[r++])];return r&&r==n?e:void 0}function o5(e,t,r){var n=e==null?void 0:Nf(e,t);return n===void 0?r:n}function s5(e,t){return e!=null&&t in Object(e)}function i5(e,t,r){t=Bf(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var s=Hs(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&Pc(a)&&Vf(s,a)&&(Ut(e)||_f(e)))}function l5(e,t){return e!=null&&i5(e,t,s5)}var c5=1,u5=2;function d5(e,t){return Rc(e)&&$f(t)?Uf(Hs(e),t):function(r){var n=o5(r,e);return n===void 0&&n===t?l5(r,e):Gs(t,n,c5|u5)}}function h5(e){return e}function p5(e){return function(t){return t==null?void 0:t[e]}}function m5(e){return function(t){return Nf(t,e)}}function f5(e){return Rc(e)?p5(Hs(e)):m5(e)}function g5(e){return typeof e=="function"?e:e==null?h5:typeof e=="object"?Ut(e)?d5(e[0],e[1]):YM(e):f5(e)}function y5(e,t){return function(r,n){var a=Ut(r)?DM:GM,o={};return a(r,e,g5(n),o)}}var po=y5(function(e,t,r){UM(e,r,t)}),b5=0;function x5(e){var t=++b5;return Lf(e)+t}const Pl=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],v5=[{id:"continuous"},...Pl],S5=["coordsys","tool"];class qs{constructor(t,r,n,a){var o,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.showCoordSystemSelect=!0,this.showTcpSelect=!0,this.showOrientationSelect=!0,this.showIncrementSelect=!0,this.showTabIcons=!1,this.showVelocitySliderLabel=!0,this.showVelocityLegend=!1,this.showJointsLegend=!1,this.disposers=[];for(const i of n)if(i.coordinate_system===""){i.coordinate_system="world";break}this.selectedCoordSystemId=((o=n[0])==null?void 0:o.coordinate_system)||"world",this.selectedTcpId=((s=a[0])==null?void 0:s.id)||"",je.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(je.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:o}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new qs(t,n,a||[],o||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Al.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Cr.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"cartesian"},{id:"joint",label:"joint"}]}get incrementOptions(){return v5}get discreteIncrementOptions(){return Pl}get incrementOptionsById(){return po(this.incrementOptions,t=>t.id)}get tabsById(){return po(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return po(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return po(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:Pl.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=x5();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const O5=ye.observer(({store:e})=>{var a;const{t}=Re.useTranslation(),r=[];function n(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return e.showCoordSystemSelect&&r.push(g.jsx(ho,{labelId:"jogging-coord-select",labelValue:t("Jogging.CoordinateSystem.hlb"),value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>e.setSelectedCoordSystemId(o.target.value),disabled:e.isLocked,children:e.coordSystems.map(o=>g.jsx(A.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))},"coord")),e.showTcpSelect&&r.push(g.jsx(ho,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>e.setSelectedTcpId(o.target.value),disabled:e.isLocked,children:e.tcps.map(o=>g.jsx(A.MenuItem,{value:o.id,children:o.id},o.id))},"tcp")),e.showOrientationSelect&&r.push(g.jsx(ho,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>e.setSelectedOrientation(o.target.value),disabled:e.isLocked,children:S5.map(o=>g.jsx(A.MenuItem,{value:o,children:n(o)},o))},"orientation")),e.showIncrementSelect&&r.push(g.jsxs(ho,{labelValue:t("Jogging.Increment.hlb"),labelId:"jogging-increment-select",size:"small",variant:"filled",value:((a=e.activeDiscreteIncrement)==null?void 0:a.id)||"continuous",onChange:o=>e.setSelectedIncrementId(o.target.value),disabled:e.isLocked,children:[g.jsx(A.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>g.jsx(A.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]},"increment")),g.jsx(A.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridAutoRows:"min-content","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:r.map((o,s)=>g.jsx(A.Box,{sx:{gridColumn:r.length%2===1&&s===r.length-1?"span 2":"auto"},children:o},s))})}),w5=A.styled(A.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function Ah(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function C5(e){return typeof e=="string"}function P5(e,t,r){return e===void 0||C5(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Po(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function _h(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function T5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const p=Pt(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f={...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},m={...r,...a,...n};return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:void 0}}const s=Po({...a,...n}),i=_h(n),l=_h(a),c=t(s),u=Pt(c==null?void 0:c.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},h={...c,...r,...l,...i};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}function R5(e,t,r){return typeof e=="function"?e(t,r):e}function or(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:R5(r,n),{props:i,internalRef:l}=T5({...o,externalSlotProps:s}),c=ps(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return P5(t,{...i,ref:c},n)}function Eh(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
154
+ `))}return!1}const A5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function _5(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const E5=2;function an(e,t,r,n,a){return r===1?Math.min(e+t,a):Math.max(e-t,n)}function Ff(e,t){return e-t}function Vh(e,t){const{index:r}=e.reduce((n,a,o)=>{const s=Math.abs(t-a);return n===null||s<n.distance||s===n.distance?{distance:s,index:o}:n},null)??{};return r}function mo(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Zo(e,t,r){return(e-t)*100/(r-t)}function V5(e,t,r){return(r-t)*e+t}function I5(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function M5(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(I5(t)))}function Ih({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Ff)}function fo({sliderRef:e,activeIndex:t,setActive:r}){var a,o,s;const n=oa(e.current);(!((a=e.current)!=null&&a.contains(n.activeElement))||Number((o=n==null?void 0:n.activeElement)==null?void 0:o.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function go(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?_5(e,t):!1}const j5={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},k5=e=>e;let yo;function Mh(){return yo===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?yo=CSS.supports("touch-action","none"):yo=!0),yo}function $5(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:o=!1,marks:s=!1,max:i=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:p,scale:f=k5,step:m=1,shiftStep:y=10,tabIndex:S,value:E}=e,O=F.useRef(void 0),[w,P]=F.useState(-1),[C,T]=F.useState(-1),[I,N]=F.useState(!1),b=F.useRef(0),R=F.useRef(null),[G,_]=Yw({controlled:E,default:r??l,name:"Slider"}),z=u&&((Q,ne,ie)=>{const fe=Q.nativeEvent||Q,we=new fe.constructor(fe.type,fe);Object.defineProperty(we,"target",{writable:!0,value:{value:ne,name:c}}),R.current=ne,u(we,ne,ie)}),re=Array.isArray(G);let X=re?G.slice().sort(Ff):[G];X=X.map(Q=>Q==null?l:on(Q,l,i));const ae=s===!0&&m!==null?[...Array(Math.floor((i-l)/m)+1)].map((Q,ne)=>({value:l+m*ne})):s||[],te=ae.map(Q=>Q.value),[oe,W]=F.useState(-1),ee=F.useRef(null),ue=ps(p,ee),Te=Q=>ne=>{var fe;const ie=Number(ne.currentTarget.getAttribute("data-index"));Eh(ne.target)&&W(ie),T(ie),(fe=Q==null?void 0:Q.onFocus)==null||fe.call(Q,ne)},ze=Q=>ne=>{var ie;Eh(ne.target)||W(-1),T(-1),(ie=Q==null?void 0:Q.onBlur)==null||ie.call(Q,ne)},Oe=(Q,ne)=>{const ie=Number(Q.currentTarget.getAttribute("data-index")),fe=X[ie],we=te.indexOf(fe);let le=ne;if(ae&&m==null){const He=te[te.length-1];le>=He?le=He:le<=te[0]?le=te[0]:le=le<fe?te[we-1]:te[we+1]}if(le=on(le,l,i),re){a&&(le=on(le,X[ie-1]||-1/0,X[ie+1]||1/0));const He=le;le=Ih({values:X,newValue:le,index:ie});let Ze=ie;a||(Ze=le.indexOf(He)),fo({sliderRef:ee,activeIndex:Ze})}_(le),W(ie),z&&!go(le,G)&&z(Q,le,ie),d&&d(Q,R.current??le)},lt=Q=>ne=>{var ie;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const fe=Number(ne.currentTarget.getAttribute("data-index")),we=X[fe];let le=null;if(m!=null){const He=ne.shiftKey?y:m;switch(ne.key){case"ArrowUp":le=an(we,He,1,l,i);break;case"ArrowRight":le=an(we,He,o?-1:1,l,i);break;case"ArrowDown":le=an(we,He,-1,l,i);break;case"ArrowLeft":le=an(we,He,o?1:-1,l,i);break;case"PageUp":le=an(we,y,1,l,i);break;case"PageDown":le=an(we,y,-1,l,i);break;case"Home":le=l;break;case"End":le=i;break}}else if(ae){const He=te[te.length-1],Ze=te.indexOf(we),Be=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],mt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Be.includes(ne.key)?Ze===0?le=te[0]:le=te[Ze-1]:mt.includes(ne.key)&&(Ze===te.length-1?le=He:le=te[Ze+1])}le!=null&&Oe(ne,le)}(ie=Q==null?void 0:Q.onKeyDown)==null||ie.call(Q,ne)};$t(()=>{var Q;n&&ee.current.contains(document.activeElement)&&((Q=document.activeElement)==null||Q.blur())},[n]),n&&w!==-1&&P(-1),n&&oe!==-1&&W(-1);const rt=Q=>ne=>{var ie;(ie=Q.onChange)==null||ie.call(Q,ne),Oe(ne,ne.target.valueAsNumber)},be=F.useRef(void 0);let Z=h;o&&h==="horizontal"&&(Z+="-reverse");const se=({finger:Q,move:ne=!1})=>{const{current:ie}=ee,{width:fe,height:we,bottom:le,left:He}=ie.getBoundingClientRect();let Ze;Z.startsWith("vertical")?Ze=(le-Q.y)/we:Ze=(Q.x-He)/fe,Z.includes("-reverse")&&(Ze=1-Ze);let Be;if(Be=V5(Ze,l,i),m)Be=M5(Be,m,l);else{const kn=Vh(te,Be);Be=te[kn]}Be=on(Be,l,i);let mt=0;if(re){ne?mt=be.current:mt=Vh(X,Be),a&&(Be=on(Be,X[mt-1]||-1/0,X[mt+1]||1/0));const kn=Be;Be=Ih({values:X,newValue:Be,index:mt}),a&&ne||(mt=Be.indexOf(kn),be.current=mt)}return{newValue:Be,activeIndex:mt}},ce=Ht(Q=>{const ne=mo(Q,O);if(!ne)return;if(b.current+=1,Q.type==="mousemove"&&Q.buttons===0){Y(Q);return}const{newValue:ie,activeIndex:fe}=se({finger:ne,move:!0});fo({sliderRef:ee,activeIndex:fe,setActive:P}),_(ie),!I&&b.current>E5&&N(!0),z&&!go(ie,G)&&z(Q,ie,fe)}),Y=Ht(Q=>{const ne=mo(Q,O);if(N(!1),!ne)return;const{newValue:ie}=se({finger:ne,move:!0});P(-1),Q.type==="touchend"&&T(-1),d&&d(Q,R.current??ie),O.current=void 0,me()}),xe=Ht(Q=>{if(n)return;Mh()||Q.preventDefault();const ne=Q.changedTouches[0];ne!=null&&(O.current=ne.identifier);const ie=mo(Q,O);if(ie!==!1){const{newValue:we,activeIndex:le}=se({finger:ie});fo({sliderRef:ee,activeIndex:le,setActive:P}),_(we),z&&!go(we,G)&&z(Q,we,le)}b.current=0;const fe=oa(ee.current);fe.addEventListener("touchmove",ce,{passive:!0}),fe.addEventListener("touchend",Y,{passive:!0})}),me=F.useCallback(()=>{const Q=oa(ee.current);Q.removeEventListener("mousemove",ce),Q.removeEventListener("mouseup",Y),Q.removeEventListener("touchmove",ce),Q.removeEventListener("touchend",Y)},[Y,ce]);F.useEffect(()=>{const{current:Q}=ee;return Q.addEventListener("touchstart",xe,{passive:Mh()}),()=>{Q.removeEventListener("touchstart",xe),me()}},[me,xe]),F.useEffect(()=>{n&&me()},[n,me]);const We=Q=>ne=>{var we;if((we=Q.onMouseDown)==null||we.call(Q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ie=mo(ne,O);if(ie!==!1){const{newValue:le,activeIndex:He}=se({finger:ie});fo({sliderRef:ee,activeIndex:He,setActive:P}),_(le),z&&!go(le,G)&&z(ne,le,He)}b.current=0;const fe=oa(ee.current);fe.addEventListener("mousemove",ce,{passive:!0}),fe.addEventListener("mouseup",Y)},Ge=Zo(re?X[0]:l,l,i),Me=Zo(X[X.length-1],l,i)-Ge,tr=(Q={})=>{const ne=Po(Q),ie={onMouseDown:We(ne||{})},fe={...ne,...ie};return{...Q,ref:ue,...fe}},Ua=Q=>ne=>{var fe;(fe=Q.onMouseOver)==null||fe.call(Q,ne);const ie=Number(ne.currentTarget.getAttribute("data-index"));T(ie)},Da=Q=>ne=>{var ie;(ie=Q.onMouseLeave)==null||ie.call(Q,ne),T(-1)},La=(Q={})=>{const ne=Po(Q),ie={onMouseOver:Ua(ne||{}),onMouseLeave:Da(ne||{})};return{...Q,...ne,...ie}},Ba=Q=>({pointerEvents:w!==-1&&w!==Q?"none":void 0});let zr;return h==="vertical"&&(zr=o?"vertical-rl":"vertical-lr"),{active:w,axis:Z,axisProps:j5,dragging:I,focusedThumbIndex:oe,getHiddenInputProps:(Q={})=>{const ne=Po(Q),ie={onChange:rt(ne||{}),onFocus:Te(ne||{}),onBlur:ze(ne||{}),onKeyDown:lt(ne||{})},fe={...ne,...ie};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":f(i),"aria-valuemin":f(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:n,...Q,...fe,style:{...A5,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:zr}}},getRootProps:tr,getThumbProps:La,marks:ae,open:C,range:re,rootRef:ue,trackLeap:Me,trackOffset:Ge,values:X,getThumbStyle:Ba}}function To(e){return typeof e=="string"}const U5=e=>!e||!To(e);function D5(e){return typeof e.main=="string"}function L5(e,t=[]){if(!D5(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function _c(e=[]){return([,t])=>t&&L5(t,e)}function B5(e){return wn("MuiSlider",e)}const bt=Vl("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),N5=e=>{const{open:t}=e;return{offset:Pt(t&&bt.valueLabelOpen),circle:bt.valueLabelCircle,label:bt.valueLabelLabel}};function zf(e){const{children:t,className:r,value:n}=e,a=N5(e);return t?F.cloneElement(t,{className:t.props.className},g.jsxs(F.Fragment,{children:[t.props.children,g.jsx("span",{className:Pt(a.offset,r),"aria-hidden":!0,children:g.jsx("span",{className:a.circle,children:g.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(zf.propTypes={children:x.element.isRequired,className:x.string,value:x.node});function jh(e){return e}const F5=pt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${et(r.color)}`],r.size!=="medium"&&t[`size${et(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(Dr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${bt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${bt.dragging}`]:{[`& .${bt.thumb}, & .${bt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),z5=pt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),G5=pt("span",{name:"MuiSlider",slot:"Track"})(Dr(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:ua(e.palette[t].main,.62),borderColor:ua(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:ca(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:ca(e.palette[t].main,.5)})}}}))]}))),H5=pt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${et(r.color)}`],r.size!=="medium"&&t[`thumbSize${et(r.size)}`]]}})(Dr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${bt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(_c()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${bt.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${zi(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${bt.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${zi(e.palette[t].main,.16)}`}}}}))]}))),Gf=pt(zf,{name:"MuiSlider",slot:"ValueLabel"})(Dr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${bt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${bt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Gf.propTypes={children:x.element.isRequired,index:x.number.isRequired,open:x.bool.isRequired,value:x.node});const q5=pt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>jl(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(Dr(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),W5=pt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>jl(e)&&e!=="markLabelActive"})(Dr(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),J5=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:o,classes:s,color:i,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",i&&`color${et(i)}`,l&&`size${et(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${et(l)}`,i&&`thumbColor${et(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return es(c,B5,s)},Y5=({children:e})=>e,Hf=F.forwardRef(function(t,r){const n=vc({props:t,name:"MuiSlider"}),a=h0(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":i,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:h,className:p,disableSwap:f=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:S,marks:E=!1,max:O=100,min:w=0,name:P,onChange:C,onChangeCommitted:T,orientation:I="horizontal",shiftStep:N=10,size:b="medium",step:R=1,scale:G=jh,slotProps:_,slots:z,tabIndex:re,track:X="normal",value:ae,valueLabelDisplay:te="off",valueLabelFormat:oe=jh,...W}=n,ee={...n,isRtl:a,max:O,min:w,classes:h,disabled:m,disableSwap:f,orientation:I,marks:E,color:d,size:b,step:R,shiftStep:N,scale:G,track:X,valueLabelDisplay:te,valueLabelFormat:oe},{axisProps:ue,getRootProps:Te,getHiddenInputProps:ze,getThumbProps:Oe,open:lt,active:rt,axis:be,focusedThumbIndex:Z,range:se,dragging:ce,marks:Y,values:xe,trackOffset:me,trackLeap:We,getThumbStyle:Ge}=$5({...ee,rootRef:r});ee.marked=Y.length>0&&Y.some(Le=>Le.label),ee.dragging=ce,ee.focusedThumbIndex=Z;const Me=J5(ee),tr=(z==null?void 0:z.root)??c.Root??F5,Ua=(z==null?void 0:z.rail)??c.Rail??z5,Da=(z==null?void 0:z.track)??c.Track??G5,La=(z==null?void 0:z.thumb)??c.Thumb??H5,Ba=(z==null?void 0:z.valueLabel)??c.ValueLabel??Gf,zr=(z==null?void 0:z.mark)??c.Mark??q5,Na=(z==null?void 0:z.markLabel)??c.MarkLabel??W5,Q=(z==null?void 0:z.input)??c.Input??"input",ne=(_==null?void 0:_.root)??u.root,ie=(_==null?void 0:_.rail)??u.rail,fe=(_==null?void 0:_.track)??u.track,we=(_==null?void 0:_.thumb)??u.thumb,le=(_==null?void 0:_.valueLabel)??u.valueLabel,He=(_==null?void 0:_.mark)??u.mark,Ze=(_==null?void 0:_.markLabel)??u.markLabel,Be=(_==null?void 0:_.input)??u.input,mt=or({elementType:tr,getSlotProps:Te,externalSlotProps:ne,externalForwardedProps:W,additionalProps:{...U5(tr)&&{as:l}},ownerState:{...ee,...ne==null?void 0:ne.ownerState},className:[Me.root,p]}),kn=or({elementType:Ua,externalSlotProps:ie,ownerState:ee,className:Me.rail}),og=or({elementType:Da,externalSlotProps:fe,additionalProps:{style:{...ue[be].offset(me),...ue[be].leap(We)}},ownerState:{...ee,...fe==null?void 0:fe.ownerState},className:Me.track}),Ws=or({elementType:La,getSlotProps:Oe,externalSlotProps:we,ownerState:{...ee,...we==null?void 0:we.ownerState},className:Me.thumb}),sg=or({elementType:Ba,externalSlotProps:le,ownerState:{...ee,...le==null?void 0:le.ownerState},className:Me.valueLabel}),Js=or({elementType:zr,externalSlotProps:He,ownerState:ee,className:Me.mark}),Ys=or({elementType:Na,externalSlotProps:Ze,ownerState:ee,className:Me.markLabel}),ig=or({elementType:Q,getSlotProps:ze,externalSlotProps:Be,ownerState:ee});return g.jsxs(tr,{...mt,children:[g.jsx(Ua,{...kn}),g.jsx(Da,{...og}),Y.filter(Le=>Le.value>=w&&Le.value<=O).map((Le,Je)=>{const Ks=Zo(Le.value,w,O),Fa=ue[be].offset(Ks);let Lt;return X===!1?Lt=xe.includes(Le.value):Lt=X==="normal"&&(se?Le.value>=xe[0]&&Le.value<=xe[xe.length-1]:Le.value<=xe[0])||X==="inverted"&&(se?Le.value<=xe[0]||Le.value>=xe[xe.length-1]:Le.value>=xe[0]),g.jsxs(F.Fragment,{children:[g.jsx(zr,{"data-index":Je,...Js,...!To(zr)&&{markActive:Lt},style:{...Fa,...Js.style},className:Pt(Js.className,Lt&&Me.markActive)}),Le.label!=null?g.jsx(Na,{"aria-hidden":!0,"data-index":Je,...Ys,...!To(Na)&&{markLabelActive:Lt},style:{...Fa,...Ys.style},className:Pt(Me.markLabel,Ys.className,Lt&&Me.markLabelActive),children:Le.label}):null]},Je)}),xe.map((Le,Je)=>{const Ks=Zo(Le,w,O),Fa=ue[be].offset(Ks),Lt=te==="off"?Y5:Ba;return g.jsx(Lt,{...!To(Lt)&&{valueLabelFormat:oe,valueLabelDisplay:te,value:typeof oe=="function"?oe(G(Le),Je):oe,index:Je,open:lt===Je||rt===Je||te==="on",disabled:m},...sg,children:g.jsx(La,{"data-index":Je,...Ws,className:Pt(Me.thumb,Ws.className,rt===Je&&Me.active,Z===Je&&Me.focusVisible),style:{...Fa,...Ge(Je),...Ws.style},children:g.jsx(Q,{"data-index":Je,"aria-label":y?y(Je):o,"aria-valuenow":G(Le),"aria-labelledby":i,"aria-valuetext":S?S(G(Le),Je):s,value:xe[Je],...ig})})},Je)})]})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={"aria-label":Ah(x.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":x.string,"aria-valuetext":Ah(x.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:x.node,classes:x.object,className:x.string,color:x.oneOfType([x.oneOf(["primary","secondary","error","info","success","warning"]),x.string]),components:x.shape({Input:x.elementType,Mark:x.elementType,MarkLabel:x.elementType,Rail:x.elementType,Root:x.elementType,Thumb:x.elementType,Track:x.elementType,ValueLabel:x.elementType}),componentsProps:x.shape({input:x.oneOfType([x.func,x.object]),mark:x.oneOfType([x.func,x.object]),markLabel:x.oneOfType([x.func,x.object]),rail:x.oneOfType([x.func,x.object]),root:x.oneOfType([x.func,x.object]),thumb:x.oneOfType([x.func,x.object]),track:x.oneOfType([x.func,x.object]),valueLabel:x.oneOfType([x.func,x.shape({children:x.element,className:x.string,open:x.bool,style:x.object,value:x.node,valueLabelDisplay:x.oneOf(["auto","off","on"])})])}),defaultValue:x.oneOfType([x.arrayOf(x.number),x.number]),disabled:x.bool,disableSwap:x.bool,getAriaLabel:x.func,getAriaValueText:x.func,marks:x.oneOfType([x.arrayOf(x.shape({label:x.node,value:x.number.isRequired})),x.bool]),max:x.number,min:x.number,name:x.string,onChange:x.func,onChangeCommitted:x.func,orientation:x.oneOf(["horizontal","vertical"]),scale:x.func,shiftStep:x.number,size:x.oneOfType([x.oneOf(["small","medium"]),x.string]),slotProps:x.shape({input:x.oneOfType([x.func,x.object]),mark:x.oneOfType([x.func,x.object]),markLabel:x.oneOfType([x.func,x.object]),rail:x.oneOfType([x.func,x.object]),root:x.oneOfType([x.func,x.object]),thumb:x.oneOfType([x.func,x.object]),track:x.oneOfType([x.func,x.object]),valueLabel:x.oneOfType([x.func,x.shape({children:x.element,className:x.string,open:x.bool,style:x.object,value:x.node,valueLabelDisplay:x.oneOf(["auto","off","on"])})])}),slots:x.shape({input:x.elementType,mark:x.elementType,markLabel:x.elementType,rail:x.elementType,root:x.elementType,thumb:x.elementType,track:x.elementType,valueLabel:x.elementType}),step:x.number,sx:x.oneOfType([x.arrayOf(x.oneOfType([x.func,x.object,x.bool])),x.func,x.object]),tabIndex:x.number,track:x.oneOf(["inverted","normal",!1]),value:x.oneOfType([x.arrayOf(x.number),x.number]),valueLabelDisplay:x.oneOf(["auto","off","on"]),valueLabelFormat:x.oneOfType([x.func,x.string])});var K5="[object Number]";function Q5(e){return typeof e=="number"||Er(e)&&Lr(e)==K5}const qf=ye.observer(e=>{var o,s,i;const t=A.useTheme(),{store:r}=e,{t:n}=Re.useTranslation();function a(l,c){c===e.velocity||!Q5(c)||e.onVelocityChange(c)}return g.jsxs(A.Stack,{direction:"row",gap:2,alignItems:"center",children:[r.showVelocityLegend&&g.jsx(A.Typography,{sx:{color:(i=(s=(o=t.componentsExt)==null?void 0:o.JoggingPanel)==null?void 0:s.VelocitySlider)==null?void 0:i.sliderLegendColor,fontSize:"14px"},children:n("Jogging.Velocity.bt")}),g.jsx(Hf,{value:e.velocity,color:"secondary",onChange:a,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),r.showVelocitySliderLabel&&(e.renderValue?e.renderValue(e.velocity):g.jsx(Ec,{value:e.velocity.toString()}))]})});function Ec({value:e,sx:t}){var n;const r=A.useTheme();return g.jsx(A.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:g.jsx(A.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const Wf=ye.observer(({store:e})=>{const{t}=Re.useTranslation(),r=ye.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return g.jsx(qf,{store:e,velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>g.jsx(Ec,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),X5=ye.observer(({store:e,children:t})=>{const{t:r}=Re.useTranslation(),n=A.useTheme();function a(h,p){(p==="translate"||p==="rotate")&&e.setSelectedCartesianMotionType(p)}_m(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function o(h,p){const f=await e.activate(),m=f.motionStream.rapidlyChangingMotionState.tcp_pose,y=f.motionStream.rapidlyChangingMotionState.state.joint_position;m&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:h.axis,direction:h.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:m,currentJoints:y,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:p.mm}:{type:"rotate",distanceRads:Cr.degreesToRadians(p.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(h){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return o(h,e.activeDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function i(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}function l(h,p,f){var y,S,E;const m=(E=(S=(y=f.componentsExt)==null?void 0:y.JoggingPanel)==null?void 0:S.JoggingCartesian)==null?void 0:E.Axis;if(m)return p==="translate"?m[h]:m.CustomRotation??m[h]}const c=[{id:"x",icon:g.jsx(eV,{}),colors:l("X",e.selectedCartesianMotionType,n)},{id:"y",icon:g.jsx(rV,{}),colors:l("Y",e.selectedCartesianMotionType,n)},{id:"z",icon:g.jsx(aV,{}),colors:l("Z",e.selectedCartesianMotionType,n)}];function u(h){return r("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return r("General.degree.variable",{amount:Cr.radiansToDegrees(h).toFixed(1)})}return g.jsxs(A.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[g.jsxs(A.Stack,{gap:2,children:[g.jsx(O5,{store:e}),g.jsx(Wf,{store:e}),g.jsx(A.Divider,{})]}),g.jsx(A.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:g.jsxs(A.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[g.jsxs(w5,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[g.jsx(A.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),g.jsx(A.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>{var p,f;return g.jsx(al,{colors:h.colors,disabled:e.isLocked,activeJoggingDirection:((p=e.incrementJogInProgress)==null?void 0:p.axis)===h.id?e.incrementJogInProgress.direction:void 0,label:g.jsxs(g.Fragment,{children:[h.icon,g.jsx(A.Typography,{sx:{fontSize:"24px",color:((f=h.colors)==null?void 0:f.labelColor)??n.palette.text.primary},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var m;return u(((m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:m.position[h.id])||0)},startJogging:m=>s({axis:h.id,motionType:"translate",direction:m}),stopJogging:i},h.id)}),e.selectedCartesianMotionType==="rotate"&&c.map(h=>{var p,f;return g.jsx(al,{colors:h.colors,disabled:e.isLocked,activeJoggingDirection:((p=e.incrementJogInProgress)==null?void 0:p.axis)===h.id?e.incrementJogInProgress.direction:void 0,label:g.jsxs(g.Fragment,{children:[g.jsx(sV,{}),g.jsx(A.Typography,{sx:{fontSize:"24px",color:((f=h.colors)==null?void 0:f.labelColor)??n.palette.text.primary},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var m,y;return d(((y=(m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:m.orientation)==null?void 0:y[h.id])||0)},startJogging:m=>s({axis:h.id,motionType:"rotate",direction:m}),stopJogging:i},h.id)})]})}),g.jsx(kf,{store:e}),t&&g.jsx(A.Divider,{}),t]})}),Z5=ye.observer(({store:e,children:t})=>{const r=A.useTheme();async function n(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function a(){await e.jogger.stop(),await e.deactivate()}return g.jsxs(A.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[g.jsx(Wf,{store:e}),g.jsx(A.Divider,{}),g.jsx(A.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:g.jsx(A.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(o=>{var c;const s=(c=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:c[o.index],i=(s==null?void 0:s.lower_limit)!==void 0?Cr.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Cr.radiansToDegrees(s.upper_limit):void 0;return g.jsxs(A.Stack,{direction:"row",alignItems:"center",justifyContent:"center",spacing:1.5,width:"100%",children:[e.showJointsLegend&&g.jsx(A.Typography,{color:e.isLocked?r.palette.text.disabled:r.palette.text.secondary,children:`G${o.index+1}`}),g.jsx(Im,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const u=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return u!==void 0?Cr.radiansToDegrees(u):void 0},startJogging:u=>n({joint:o.index,direction:u}),stopJogging:a})]},`joint-${o.index}`)})})}),g.jsx(kf,{store:e}),t&&g.jsx(A.Divider,{}),t]})}),e3=Ke(ye.observer(e=>{const t=Al.isString(e.nova)?new Y2({instanceUrl:e.nova}):e.nova,r=ye.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){je.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let a=e.store;if(!a){const o=await t.connectJogger(e.motionGroupId);a=await qs.loadFor(o)}je.runInAction(()=>{r.joggingStore=a}),e.onSetup&&e.onSetup(a)}catch(a){r.loadingError=a}}return J.useEffect(()=>(n(),e.store?()=>null:()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.store,e.nova,e.motionGroupId]),J.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.lock("external"):a.unlock("external"))},[r.joggingStore,e.locked]),g.jsx(A.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?g.jsx(t3,{store:r.joggingStore,children:e.children}):g.jsx(Cc,{message:"Loading jogging",error:r.loadingError})})})),t3=ye.observer(({store:e,children:t})=>{const{t:r}=Re.useTranslation();function n(){if(e.currentTab.id==="cartesian")return g.jsx(g.Fragment,{children:g.jsx(X5,{store:e,children:t})});if(e.currentTab.id==="joint")return g.jsx(g.Fragment,{children:g.jsx(Z5,{store:e,children:t})})}return g.jsxs(A.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[g.jsx(A.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(a=>{const o=a.label==="cartesian"?r("Jogging.Cartesian.bt"):r("Jogging.Joints.bt"),s=a.label==="cartesian"?g.jsx(AC,{fontSize:"small",sx:{mr:1}}):g.jsx(_C,{fontSize:"small",sx:{mr:1}});return g.jsx(A.Tab,{label:e.showTabIcons?g.jsxs(A.Stack,{direction:"row",alignItems:"center",children:[s,o]}):o,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id)})}),g.jsx(A.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:n()})]})}),Jf=J.forwardRef(({label:e,value:t},r)=>{var i;const n=A.useTheme(),[a,o]=J.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),o(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return J.useEffect(()=>{if(!a)return;const l=setTimeout(()=>o(!1),3e3);return()=>{l&&clearTimeout(l)}},[a]),g.jsx(A.Tooltip,{open:a,title:"Copied!",children:g.jsx(A.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(i=n.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:g.jsx(A.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),r3=ye.observer(({motionStream:e})=>{const t=J.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Cr.poseToWandelscriptString(n):""}return Rn(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),g.jsx(A.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:g.jsx(Jf,{value:r(),ref:t})})}),n3=ye.observer(({motionStream:e})=>{const t=J.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return Rn(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),g.jsx(A.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:g.jsx(Jf,{value:r(),ref:t})})});class Yf{constructor(){this.messages=[],this.addMessage=(t,r="info")=>{const n={id:Math.random().toString(36).substring(2,11),timestamp:new Date,message:t,level:r};this.messages.push(n)},this.clearMessages=()=>{this.messages=[]},this.addInfo=t=>{this.addMessage(t,"info")},this.addWarning=t=>{this.addMessage(t,"warning")},this.addError=t=>{this.addMessage(t,"error")},this.addDebug=t=>{this.addMessage(t,"debug")},je.makeObservable(this,{messages:je.observable,addMessage:je.action,clearMessages:je.action})}}const $a=(e,t,r)=>({id:r||`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,timestamp:new Date,message:e,level:t}),a3=(e,t)=>$a(e,"debug",t),o3=(e,t)=>$a(e,"info",t),s3=(e,t)=>$a(e,"warning",t),i3=(e,t)=>$a(e,"error",t),Kf=Ke(ye.observer(e=>{var u;const{messages:t=[],onClear:r,height:n=400,sx:a}=e,o=A.useTheme(),s=J.useRef(null);J.useEffect(()=>{if(t.length===0)return;const d=s.current;if(!d)return;const h=setTimeout(()=>{d.scrollTop=d.scrollHeight},10);return()=>clearTimeout(h)},[t.length]);const i=d=>d.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),l=d=>{switch(d){case"error":return o.palette.error.main;case"warning":return o.palette.warning.main;case"info":return o.palette.info.main;case"debug":return o.palette.text.disabled;default:return o.palette.text.secondary}},c=({message:d})=>{const[h,p]=J.useState(!1),[f,m]=J.useState(!1),[y,S]=J.useState(!1),E=d.message.length>150,O=async()=>{try{await navigator.clipboard.writeText(d.message),m(!0),setTimeout(()=>m(!1),2e3)}catch(P){console.error("Failed to copy message:",P)}},w=E&&!h?d.message.substring(0,150)+"...":d.message;return g.jsx(A.Box,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),sx:{display:"flex",gap:1,fontFamily:"monospace",flexDirection:"column","&:hover":{backgroundColor:o.palette.action.hover},borderRadius:"4px",padding:"2px 4px",margin:"-2px -4px"},children:g.jsxs(A.Box,{sx:{display:"flex",gap:1},children:[g.jsxs(A.Typography,{component:"span",sx:{fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0.4px",color:o.palette.text.disabled,whiteSpace:"nowrap",flexShrink:0},children:["[",i(d.timestamp),"]"]}),g.jsx(A.Typography,{component:"span",sx:{fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0.4px",color:l(d.level),wordBreak:"break-word",overflowWrap:"anywhere",hyphens:"auto",flex:1,whiteSpace:"pre-wrap"},children:w}),g.jsxs(A.Box,{sx:{display:"flex",alignItems:"flex-start",gap:.5,opacity:y?1:0,transition:"opacity 0.2s ease-in-out",visibility:y?"visible":"hidden"},children:[g.jsx(A.IconButton,{size:"small",onClick:O,sx:{padding:"2px",color:o.palette.text.secondary,"&:hover":{backgroundColor:o.palette.action.hover}},title:f?"Copied!":"Copy message",children:g.jsx(Ft.ContentCopy,{sx:{fontSize:12}})}),E&&g.jsx(A.IconButton,{size:"small",onClick:()=>p(!h),sx:{padding:"2px",color:o.palette.text.secondary,"&:hover":{backgroundColor:o.palette.action.hover}},title:h?"Collapse":"Expand",children:h?g.jsx(Ft.ExpandLess,{sx:{fontSize:12}}):g.jsx(Ft.ExpandMore,{sx:{fontSize:12}})})]})]})},d.id)};return g.jsxs(A.Paper,{sx:{backgroundColor:((u=o.palette.backgroundPaperElevation)==null?void 0:u[2])||"#171927",backgroundImage:"none",height:n,display:"flex",flexDirection:"column",overflow:"hidden",...a},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px"},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(Ft.DescriptionOutlined,{sx:{fontSize:16,color:o.palette.action.active,opacity:.56}}),g.jsx(A.Typography,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"143%",letterSpacing:"0.17px",color:o.palette.text.primary},children:"Log"})]}),g.jsx(A.Button,{onClick:r,variant:"text",sx:{fontWeight:500,fontSize:"13px",lineHeight:"22px",letterSpacing:"0.46px",color:o.palette.primary.main,textTransform:"none",minWidth:"auto",padding:"4px 8px","&:hover":{backgroundColor:o.palette.primary.main+"14"}},children:"Clear"})]}),g.jsx(A.Box,{ref:s,sx:{flex:1,overflow:"auto",padding:"8px 16px",display:"flex",flexDirection:"column",gap:"2px",scrollbarWidth:"thin",scrollbarColor:`${o.palette.divider} transparent`,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:o.palette.divider,borderRadius:"3px","&:hover":{backgroundColor:o.palette.divider}}},children:t.length===0?g.jsx(A.Typography,{sx:{color:o.palette.text.disabled,fontSize:"12px",fontStyle:"italic",textAlign:"center",marginTop:2},children:"No log messages"}):t.map(d=>g.jsx(c,{message:d},d.id))})]})})),l3=Ke(ye.observer(e=>{const{store:t,onStoreReady:r,...n}=e,a=J.useRef(r);J.useEffect(()=>{a.current=r},[r]);const o=J.useMemo(()=>{var l;const i=t||new Yf;return(l=a.current)==null||l.call(a,i),i},[t]),s=()=>{o.clearMessages()};return g.jsx(Kf,{...n,messages:o.messages,onClear:s})}));function c3(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function u3({baseUrl:e=c3(),...t}){return g.jsxs(A.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[g.jsx(A.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),g.jsxs(A.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[g.jsx(A.Typography,{color:"#fff",children:"Found no devices to connect to."}),g.jsx(A.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),g.jsx(A.DialogActions,{children:g.jsxs(A.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[g.jsx(A.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),g.jsx(A.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}var vr=(e=>(e.IDLE="idle",e.RUNNING="running",e.PAUSED="paused",e.STOPPING="stopping",e.ERROR="error",e))(vr||{});const d3=Ke(ye.observer(({state:e,onRun:t,onPause:r,onStop:n,onReset:a,requiresManualReset:o=!1,variant:s="with_pause",className:i})=>{const l=A.useTheme(),{t:c}=Re.useTranslation(),u=()=>{const p={run:{enabled:e==="idle"||e==="paused"||e==="error",label:c(e==="paused"?"ProgramControl.Resume.bt":e==="error"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:l.palette.success.main,onClick:t},pause:{enabled:e==="running",label:c("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:r||(()=>{})},stop:{enabled:e==="running"||e==="paused",label:c("ProgramControl.Stop.bt"),color:l.palette.error.main,onClick:n}};return s==="without_pause"?[p.run,p.stop]:[p.run,p.pause,p.stop]},d=p=>{const f={sx:{fontSize:"55px"}};if(s==="without_pause")return p===0?g.jsx(Ft.PlayArrow,{...f}):g.jsx(Ft.Stop,{...f});switch(p){case 0:return g.jsx(Ft.PlayArrow,{...f});case 1:return g.jsx(Ft.Pause,{...f});case 2:return g.jsx(Ft.Stop,{...f});default:return null}},h=u();return g.jsx(A.Box,{className:i,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:g.jsx(A.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:h.map((p,f)=>g.jsxs(A.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[g.jsx(A.Button,{variant:"contained",disabled:!p.enabled||e==="stopping"&&!o,onClick:p.onClick,sx:{width:"110px",height:"110px",borderRadius:"110px",backgroundColor:p.color,opacity:p.enabled&&!(e==="stopping"&&!o)?1:.3,"&:hover":{backgroundColor:p.color,opacity:p.enabled&&!(e==="stopping"&&!o)?.8:.3},"&:disabled":{backgroundColor:p.color,opacity:.3},minWidth:"110px",flexShrink:0},children:d(f)}),g.jsx(A.Typography,{variant:"body1",sx:{color:p.enabled&&!(e==="stopping"&&!o)?p.color:l.palette.text.disabled,textAlign:"center",opacity:p.enabled&&!(e==="stopping"&&!o)?1:.3},children:p.label})]},p.label))})})})),Tl=Ke(ye.observer(({programState:e,safetyState:t,operationMode:r,className:n})=>{const a=A.useTheme(),{t:o}=Re.useTranslation(),s=()=>{if(t==="SAFETY_STATE_DEVICE_EMERGENCY_STOP"||t==="SAFETY_STATE_ROBOT_EMERGENCY_STOP"||t==="SAFETY_STATE_STOP_0"||t==="SAFETY_STATE_STOP_1"||t==="SAFETY_STATE_STOP_2"||t==="SAFETY_STATE_PROTECTIVE_STOP"||t==="SAFETY_STATE_STOP"||t==="SAFETY_STATE_REDUCED"||t==="SAFETY_STATE_MASTERING"||t==="SAFETY_STATE_CONFIRM_SAFETY"||t==="SAFETY_STATE_OPERATOR_SAFETY"||t==="SAFETY_STATE_RECOVERY"||t==="SAFETY_STATE_VIOLATION")return{label:o("ProgramStateIndicator.EStop.lb"),color:a.palette.error.main};if(t==="SAFETY_STATE_UNKNOWN"||t==="SAFETY_STATE_FAULT")return{label:o("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};if(t==="SAFETY_STATE_NORMAL")switch(e){case vr.RUNNING:return{label:o("ProgramStateIndicator.Running.lb"),color:a.palette.success.main};case vr.PAUSED:return{label:o("ProgramStateIndicator.Paused.lb"),color:a.palette.grey[600]};case vr.STOPPING:return{label:o("ProgramStateIndicator.Stopped.lb"),color:a.palette.error.main};case vr.ERROR:return{label:o("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};case vr.IDLE:default:return{label:o("ProgramStateIndicator.Ready.lb"),color:a.palette.success.main}}return{label:o("ProgramStateIndicator.Idle.lb"),color:a.palette.grey[600]}},{label:i,color:l}=s(),u=`${i} / ${(()=>{switch(r){case"OPERATION_MODE_AUTO":return o("ProgramStateIndicator.Auto.lb");case"OPERATION_MODE_MANUAL":return o("ProgramStateIndicator.Manual.lb");case"OPERATION_MODE_MANUAL_T1":return o("ProgramStateIndicator.ManualT1.lb");case"OPERATION_MODE_MANUAL_T2":return o("ProgramStateIndicator.ManualT2.lb");default:return o("ProgramStateIndicator.Auto.lb")}})()}`;return g.jsx(A.Chip,{className:n,label:g.jsx(A.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:u}),variant:"filled",sx:{backgroundColor:l,color:a.palette.getContrastText(l),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})})),kh="0.0.0-semantically-released";function Vc(e){let t=kh;return kh.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function h3(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>Xf(r))}function Qf(e){return e.name.endsWith("_FLG")}function Xf(e){return/_J[0-9]+$/.test(e.name)}function p3(e,t){let r;function n(a){if(Qf(a)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${a.name}. Only one _FLG group is allowed.`);r=a}Xf(a),a.children.map(n)}if(n(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function Zf({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){const a=J.useRef([]),o=J.useRef([]),s=J.useRef(null),{invalidate:i}=Ro.useThree();J.useEffect(()=>{const d=e.state.joint_position.joints.filter(h=>h!==void 0);return s.current=new xc(d,{tension:120,friction:20,threshold:.001}),()=>{var h;(h=s.current)==null||h.destroy()}},[]),Ro.useFrame((d,h)=>{if(s.current){const p=s.current.update(h);u(),p||i()}});function l(d){d&&(o.current=h3(d),u(),i())}function c(d){var h;a.current=d,(h=s.current)==null||h.setTarget(d)}function u(){var h;const d=((h=s.current)==null?void 0:h.getCurrentValues())||[];if(r)r(o.current,d);else for(const[p,f]of o.current.entries()){const m=t[p],y=m.theta||0,S=m.reverse_rotation_direction?-1:1;f.rotation.y=S*(d[p]||0)+y}}return Am(()=>{const d=e.state.joint_position.joints.filter(h=>h!==void 0);requestAnimationFrame(()=>c(d))}),g.jsx("group",{ref:l,children:n})}const m3="line",f3="mesh";function g3({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new Ot.Matrix4,a=J.useRef([]),o=J.useRef([]);J.useEffect(()=>{a.current=new Array(t.length).fill(null),o.current=new Array(t.length).fill(null)},[t.length]);function s(c,u){const d=new Ot.Vector3,h=new Ot.Quaternion,p=new Ot.Vector3;n.decompose(d,h,p);const f=d.clone(),m=new Ot.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new Ot.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new Ot.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new Ot.Matrix4().makeRotationX(c.alpha));return n.multiply(m),n.decompose(d,h,p),{a:f,b:d}}function i(c,u,d,h){if(!t)return;const p=t[c];if(!p)return;const{a:f,b:m}=s(p,h);u.geometry.setPositions([f.toArray(),m.toArray()].flat()),d.position.set(m.x,m.y,m.z)}function l(c,u){n.identity();for(let d=0;d<Math.min(c.length,u.length);d++){const h=a.current[d],p=o.current[d];h&&p&&i(d,h,p,u[d])}}return g.jsx(g.Fragment,{children:g.jsx(Zf,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:l,children:g.jsxs("group",{...r,name:"Scene",children:[g.jsxs("mesh",{children:[g.jsx("sphereGeometry",{args:[.01,32,32]}),g.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=s(c,e.state.joint_position.joints[u]??0),p=`dhrobot_J0${u}`;return g.jsxs("group",{name:p,children:[g.jsx(ut.Line,{ref:f=>{a.current[u]=f},name:m3,points:[d,h],color:"white",lineWidth:5}),g.jsxs("mesh",{ref:f=>{o.current[u]=f},name:f3,position:h,children:[g.jsx("sphereGeometry",{args:[.01,32,32]}),g.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},p)})]})})})}const y3=console.warn;function b3(){return J.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&y3(e)}},[]),g.jsx(g.Fragment,{})}function x3(e){return e.type==="Mesh"}function v3({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:a}=p3(ut.useGLTF(e),e.split("/").pop()||e),o=J.useCallback(i=>{i&&r&&r()},[e]);function s(i){return x3(i)?g.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):g.jsx("group",{name:i.name,position:i.position,rotation:i.rotation,ref:Qf(i)?t:void 0,children:i.children.map(s)},i.uuid)}return g.jsx("group",{...n,dispose:null,ref:o,children:s(a.scene)})}const S3=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof Ue.Mesh){r.material instanceof Ue.Material&&(r.material.colorWrite=!1);const n=r.clone(),a=r.clone();n.material=new Ue.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Ue.DoubleSide}),n.userData.isGhost=!0,a.material=new Ue.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Ue.DoubleSide}),a.userData.isGhost=!0,r.parent&&(r.parent.add(n),r.parent.add(a))}}),e.userData.isGhost=!0)},O3=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof Ue.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof Ue.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},eg=Ke(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Vc,flangeRef:a,postModelRender:o,transparentColor:s,...i})=>{const[l,c]=J.useState(null),u=J.useCallback(h=>{c(h)},[]);J.useEffect(()=>{l&&(s?S3(l,s):O3(l))},[l,s]);const d=g.jsx(g3,{rapidlyChangingMotionState:e,dhParameters:r,...i});return g.jsxs(vg.ErrorBoundary,{fallback:d,onError:h=>{console.error(h)},children:[g.jsx(J.Suspense,{fallback:d,children:g.jsx("group",{ref:u,children:g.jsx(Zf,{rapidlyChangingMotionState:e,dhParameters:r,children:g.jsx(v3,{modelURL:n(t),postModelRender:o,flangeRef:a,...i})})})}),g.jsx(b3,{})]})});function tg({connectedMotionGroup:e,getModel:t=Vc,flangeRef:r,transparentColor:n,postModelRender:a,...o}){return e.dhParameters?g.jsx(eg,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:n,postModelRender:a,...o}):null}const w3=Ke(ye.observer(({robotName:e,programState:t,safetyState:r,operationMode:n,driveToHomeEnabled:a=!1,onDriveToHomePress:o,onDriveToHomeRelease:s,connectedMotionGroup:i,robotComponent:l=tg,cycleTimerComponent:c=Tm,onCycleTimerReady:u,onCycleEnd:d,cycleTimerAutoStart:h=!0,className:p})=>{var te;const f=A.useTheme(),{t:m}=Re.useTranslation(),[y,S]=J.useState(!1),E=J.useRef(null),O=J.useRef(null),[w,P]=J.useState(!1),[C,T]=J.useState({width:400,height:600}),[I,N]=J.useState(0),b=J.useRef(null);J.useEffect(()=>{const oe=()=>{if(O.current){const{offsetWidth:ee,offsetHeight:ue}=O.current;P(ee>ue),T({width:ee,height:ue})}};oe();const W=new ResizeObserver(oe);return O.current&&W.observe(O.current),()=>{W.disconnect()}},[]);const R=J.useCallback(()=>{N(oe=>oe+1)},[]),G=J.useCallback(()=>{!a||!o||(S(!0),o())},[a,o]),_=J.useCallback(()=>{!a||!s||(S(!1),s())},[a,s]),z=J.useCallback(()=>{y&&s&&(S(!1),s())},[y,s]),re=J.useCallback(oe=>{b.current=oe,u&&u(oe)},[u]),X=w?C.width<350:C.height<200,ae=w?C.height<350:C.height<450;return g.jsx(A.Card,{ref:O,className:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:w?"row":"column",position:"relative",overflow:"hidden",minWidth:{xs:180,sm:220,md:250},minHeight:w?{xs:200,sm:240,md:260}:{xs:150,sm:180,md:220},border:`1px solid ${f.palette.divider}`,borderRadius:"18px",boxShadow:"none",backgroundColor:((te=f.palette.backgroundPaperElevation)==null?void 0:te[8])||"#2A2A3F",backgroundImage:"none"},children:w?g.jsxs(g.Fragment,{children:[g.jsx(A.Box,{sx:{flex:"0 0 50%",position:"relative",height:"100%",minHeight:"100%",maxHeight:"100%",borderRadius:1,m:{xs:1.5,sm:2,md:3},mr:{xs:.75,sm:1,md:1.5},overflow:"hidden",display:X?"none":"block"},children:!X&&g.jsxs(Ro.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:f.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute",top:0,left:0},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[g.jsx(Ni,{}),g.jsx(ut.Bounds,{fit:!0,observe:!0,margin:1,maxDuration:0,children:g.jsx(l,{connectedMotionGroup:i,postModelRender:R})})]})}),g.jsxs(A.Box,{sx:{flex:"1",display:"flex",flexDirection:"column",justifyContent:"flex-start",width:X?"100%":"50%"},children:[g.jsxs(A.Box,{sx:{p:{xs:1.5,sm:2,md:3},pb:{xs:1,sm:1.5,md:2},textAlign:"left"},children:[g.jsx(A.Typography,{variant:"h6",component:"h2",sx:{mb:1},children:e}),g.jsx(Tl,{programState:t,safetyState:r,operationMode:n})]}),g.jsxs(A.Box,{sx:{p:{xs:1.5,sm:2,md:3},pt:0,flex:"1",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[!ae&&g.jsxs(A.Box,{children:[g.jsx(A.Typography,{variant:"body1",sx:{mb:0,color:f.palette.text.secondary,textAlign:"left"},children:m("RobotCard.Runtime.lb")}),g.jsx(A.Box,{sx:{textAlign:"left"},children:g.jsx(c,{variant:"small",compact:!0,onCycleComplete:re,onCycleEnd:d,autoStart:h})}),g.jsx(A.Divider,{sx:{mt:1,mb:0,borderColor:f.palette.divider,opacity:.5}})]}),g.jsx(A.Box,{sx:{mt:ae?0:"auto"},children:g.jsx(A.Box,{sx:{display:"flex",justifyContent:"flex-start",mt:{xs:1,sm:1.5,md:2},mb:{xs:.5,sm:.75,md:1}},children:g.jsx(A.Button,{ref:E,variant:"contained",color:"secondary",size:"small",disabled:!a,onMouseDown:G,onMouseUp:_,onMouseLeave:z,onTouchStart:G,onTouchEnd:_,sx:{textTransform:"none",px:1.5,py:.5},children:m("RobotCard.DriveToHome.bt")})})})]})]})]}):g.jsx(g.Fragment,{children:g.jsxs(A.Box,{sx:{p:3,height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(A.Box,{children:[g.jsx(A.Typography,{variant:"h6",component:"h2",sx:{mb:1},children:e}),g.jsx(Tl,{programState:t,safetyState:r,operationMode:n})]}),g.jsx(A.Box,{sx:{flex:X?0:1,position:"relative",minHeight:X?0:{xs:120,sm:150,md:200},height:X?0:"auto",borderRadius:1,overflow:"hidden",display:X?"none":"block"},children:!X&&g.jsxs(Ro.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:f.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute"},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[g.jsx(Ni,{}),g.jsx(ut.Bounds,{fit:!0,clip:!0,observe:!0,margin:1,maxDuration:0,children:g.jsx(l,{connectedMotionGroup:i,postModelRender:R})})]})}),g.jsxs(A.Box,{children:[!ae&&g.jsxs(g.Fragment,{children:[g.jsx(A.Typography,{variant:"body1",sx:{mb:0,color:f.palette.text.secondary},children:m("RobotCard.Runtime.lb")}),g.jsx(c,{variant:"small",compact:!0,onCycleComplete:re,onCycleEnd:d,autoStart:h}),g.jsx(A.Divider,{sx:{mt:1,mb:0,borderColor:f.palette.divider,opacity:.5}})]}),g.jsx(A.Box,{sx:{display:"flex",justifyContent:"flex-start",mt:ae?{xs:.5,sm:1,md:2}:{xs:1,sm:2,md:5},mb:{xs:.5,sm:.75,md:1}},children:g.jsx(A.Button,{ref:E,variant:"contained",color:"secondary",size:"small",disabled:!a,onMouseDown:G,onMouseUp:_,onMouseLeave:z,onTouchStart:G,onTouchEnd:_,sx:{textTransform:"none",px:1.5,py:.5},children:m("RobotCard.DriveToHome.bt")})})]})]})})})})),C3=fr(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),P3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fill:"#38C6F4",fillRule:"evenodd",d:"M6.359 14.25v2.934h7.63v-3.521L10.196 9.87 9 8.674l.859-.859.337-.337.858-.858.565.565.631.63.565.565 1.196-1.195.543-.544 1.196-1.195-1.196-1.196-2.304-2.304L11.054.75 9.86 1.946 3.446 8.359 2.25 9.554l1.196 1.196 2.913 2.913zm1.69 0v1.244h4.249v-1.13L7.804 9.87 6.608 8.674l1.196-1.196L9.86 5.424l.007-.008-.543-.543-4.681 4.681 2.912 2.913.496.496v.113h2.124l1.174 1.174zm3.005-10.022-.294.294-.543-.543.837-.837 2.304 2.304-.543.543-.565-.565z",clipRule:"evenodd"})),T3=J.forwardRef(P3);var Ic=(e=>(e.PRECONDITION_NOT_FULFILLED="PRECONDITION_NOT_FULFILLED",e.ROBOT_DISCONNECTED="ROBOT_DISCONNECTED",e.READY="READY",e))(Ic||{});const rg=Ke(ye.observer(({setupState:e,className:t})=>{const r=A.useTheme(),{t:n}=Re.useTranslation(),a=()=>{var c,u,d,h;switch(e){case"READY":return{label:n("RobotSetupReadinessIndicator.Ready.lb"),indicatorColor:((c=r.palette.tertiary)==null?void 0:c.main)||r.palette.primary.main,backgroundColor:((u=r.palette.backgroundPaperElevation)==null?void 0:u[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText};case"ROBOT_DISCONNECTED":return{label:n("RobotSetupReadinessIndicator.RobotDisconnected.lb"),indicatorColor:r.palette.error.main,backgroundColor:((d=r.palette.backgroundPaperElevation)==null?void 0:d[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText};case"PRECONDITION_NOT_FULFILLED":default:return{label:n("RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb"),indicatorColor:r.palette.error.main,backgroundColor:((h=r.palette.backgroundPaperElevation)==null?void 0:h[11])||r.palette.background.paper,textColor:r.palette.secondary.contrastText}}},{label:o,indicatorColor:s,backgroundColor:i,textColor:l}=a();return g.jsx(A.Chip,{className:t,label:g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(A.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:s,flexShrink:0}}),g.jsx(A.Typography,{variant:"body2",sx:{color:l,fontSize:"0.75rem",lineHeight:1.2},children:o})]}),variant:"filled",sx:{backgroundColor:i,color:r.palette.getContrastText(i),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})})),R3=Ke(ye.observer(({robotName:e,robotType:t,setupState:r,PreconditionComponent:n=rg,className:a})=>{var l;const o=A.useTheme(),s=t||"Robot",i=r===Ic.READY;return g.jsxs(A.Box,{className:a,sx:{border:`1px solid ${o.palette.divider}`,background:((l=o.palette.backgroundPaperElevation)==null?void 0:l[8])||"#292B3F",height:80,minHeight:"80px",borderRadius:"8px",padding:"20px",display:"flex",alignItems:"center",justifyContent:"space-between",opacity:1},children:[g.jsxs(A.Box,{sx:{display:"flex",alignItems:"center",gap:2,flex:1},children:[i?g.jsx(A.Box,{sx:{fontSize:24,display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,"& svg":{fill:`${o.palette.primary.main} !important`},"& svg path":{fill:`${o.palette.primary.main} !important`}},children:g.jsx(T3,{})}):g.jsx(C3,{sx:{color:o.palette.error.main,fontSize:24}}),g.jsx(A.Typography,{variant:"body1",sx:{fontWeight:500,color:o.palette.text.primary},children:e}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0,sx:{backgroundColor:o.palette.text.secondary,opacity:.3,width:"1px"}}),g.jsx(A.Typography,{variant:"body2",sx:{color:o.palette.text.secondary},children:s})]}),n&&g.jsx(n,{setupState:r})]})})),A3=Array(6).fill(2*Math.PI),Rl={[Mt.Abb]:[0,0,0,0,Math.PI/2,0,0],[Mt.Fanuc]:[0,0,0,0,-Math.PI/2,0,0],[Mt.Yaskawa]:[0,0,0,0,-Math.PI/2,0,0],[Mt.Kuka]:[0,-Math.PI/2,Math.PI/2,0,Math.PI/2,0,0],[Mt.Universalrobots]:[0,-Math.PI/2,-Math.PI/2,-Math.PI/2,Math.PI/2,-Math.PI/2,0]};function ng(e){const[t]=e.split("_");switch(t){case"ABB":return Mt.Abb;case"FANUC":return Mt.Fanuc;case"YASKAWA":return Mt.Yaskawa;case"KUKA":return Mt.Kuka;case"UniversalRobots":return Mt.Universalrobots;default:return null}}function _3(e,t){const r=ng(e);return r&&r in Rl?Rl[r]:t||null}const E3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),V3=J.forwardRef(E3),I3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),M3=J.forwardRef(I3),jt=ye.observer(({id:e,icon:t,color:r,title:n,name:a,label:o,explanation:s,literalValue:i,anchorOrigin:l,transformOrigin:c})=>{const u=ye.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!u.anchorEl},openPopover(d){u.anchorEl=d.currentTarget},closePopover(){u.anchorEl=null}}));return g.jsxs(g.Fragment,{children:[g.jsxs(A.Stack,{"aria-owns":u.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:u.openPopover,onMouseLeave:u.closePopover,direction:"row",spacing:1,sx:{cursor:"pointer"},children:[g.jsx(A.SvgIcon,{component:t,sx:{color:r}}),o&&g.jsx("div",{style:{color:r},children:o})]}),g.jsx(A.Popover,{id:e,sx:{pointerEvents:"none"},open:u.isPopoverOpen,anchorEl:u.anchorEl,anchorOrigin:l??{vertical:"bottom",horizontal:"left"},transformOrigin:c??{vertical:"top",horizontal:"left"},onClose:u.closePopover,disableRestoreFocus:!0,children:g.jsxs(A.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[g.jsxs("div",{children:[n&&g.jsx(A.Typography,{component:"span",fontSize:"14px",children:`${n}: `}),g.jsx(A.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:a})]}),g.jsx(A.Typography,{fontSize:"14px",children:s}),i&&g.jsx(A.Typography,{fontSize:"12px",children:i})]})})]})}),j3=ye.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:n,compact:a})=>{const o=A.useTheme(),{t:s}=Re.useTranslation();return e?g.jsx(jt,{id:"motion-group-virtual",icon:M3,color:o.palette.tertiary.main,name:s("SafetyBar.ControllerType.Virtual.lb"),label:a?null:s("SafetyBar.ControllerType.Virtual.lb"),explanation:g.jsxs(Re.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",g.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:n}):g.jsx(jt,{id:"motion-group-physical",icon:V3,color:o.palette.primary.main,name:s("SafetyBar.ControllerType.Physical.lb"),label:a?null:s("SafetyBar.ControllerType.Physical.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:g.jsx("code",{}),strong:g.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:n})}),k3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),$3=J.forwardRef(k3),U3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),D3=J.forwardRef(U3),L3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),B3=J.forwardRef(L3),N3=ye.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r,compact:n})=>{const{t:a}=Re.useTranslation(),o=A.useTheme();switch(e){case"OPERATION_MODE_AUTO":return g.jsx(jt,{id:"operation-mode-auto",icon:$3,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Automatic.ti"),label:n?null:a("SafetyBar.OperationMode.Automatic.ti"),color:o.palette.text.secondary,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return g.jsx(jt,{id:"operation-mode-manual",icon:B3,color:o.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Manual.lb"),label:n?null:a("SafetyBar.OperationMode.Manual.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return g.jsx(jt,{id:"operation-mode-error",icon:D3,color:o.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Error.lb"),label:n?null:a("SafetyBar.OperationMode.Error.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),F3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),z3=J.forwardRef(F3),G3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),H3=J.forwardRef(G3),q3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),W3=J.forwardRef(q3),J3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),Y3=J.forwardRef(J3),K3=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),Q3=J.forwardRef(K3),X3=ye.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r,compact:n})=>{const{t:a}=Re.useTranslation(),o=A.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return g.jsx(jt,{id:"safety-state-normal",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Normal.lb"),label:n?null:a("SafetyBar.SafetyState.Normal.lb"),icon:Y3,color:o.palette.text.secondary,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return g.jsx(jt,{id:"safety-state-estop",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Estop.lb"),label:n?null:a("SafetyBar.SafetyState.Estop.lb"),icon:H3,color:o.palette.error.main,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return g.jsx(jt,{id:"safety-state-stop",icon:Q3,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Stop.lb"),label:n?null:a("SafetyBar.SafetyState.Stop.lb"),color:o.palette.warning.main,explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return g.jsx(jt,{id:"safety-state-manual-action-required",icon:W3,color:o.palette.warning.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.ManualActionRequired.lb"),label:n?null:a("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return g.jsx(jt,{id:"safety-state-error",icon:z3,color:o.palette.error.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Error.lb"),label:n?null:a("SafetyBar.SafetyState.Error.lb"),explanation:g.jsx(Re.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:Q2(e,`Unknown safety state ${e}`)}}),Z3=Ke(ye.observer(({isVirtual:e,motionGroupId:t,operationMode:r,safetyState:n,anchorOrigin:a,transformOrigin:o,compact:s=!0})=>{const i=s?1:2;return g.jsxs(A.Stack,{direction:"row",gap:i,alignItems:"center",sx:{height:"24px"},children:[g.jsx(X3,{safetyState:n,anchorOrigin:a,transformOrigin:o,compact:s}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0}),g.jsx(N3,{operationMode:r,anchorOrigin:a,transformOrigin:o,compact:s}),g.jsx(A.Divider,{orientation:"vertical",flexItem:!0}),g.jsx(j3,{isVirtual:e,motionGroupId:t,anchorOrigin:a,transformOrigin:o,compact:s})]})})),ej=A.styled(A.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),tj=J.forwardRef((e,t)=>g.jsx(ej,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"}));function rj(e){const{children:t,value:r,index:n,...a}=e;return g.jsx("div",{role:"tabpanel",hidden:r!==n,id:`tabpanel-${n}`,"aria-labelledby":`tab-${n}`,...a,children:r===n&&g.jsx(A.Box,{children:t})})}const nj=Ke(ye.observer(e=>{const{items:t,defaultActiveTab:r=0,onTabChange:n,sx:a}=e,[o,s]=J.useState(r),i=(l,c)=>{s(c),n==null||n(c)};return g.jsxs(A.Box,{sx:{height:"100%",display:"flex",flexDirection:"column",...a},children:[g.jsx(A.Box,{sx:{px:3,pt:3,pb:3},children:g.jsx(A.Tabs,{value:o,onChange:i,sx:{minHeight:"auto",backgroundColor:"transparent",mt:3,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:2}},children:t.map((l,c)=>g.jsx(A.Tab,{label:l.label,icon:l.icon,iconPosition:"start",disableRipple:!0,sx:{minHeight:"auto",minWidth:"auto",padding:"4px 8px",borderRadius:"10px",backgroundColor:u=>{var d;return((d=u.palette.backgroundPaperElevation)==null?void 0:d[11])||"#32344B"},color:"text.primary",opacity:o===c?1:.38,textTransform:"none",fontWeight:500,transition:"all 0.2s ease-in-out","&:hover":{opacity:o===c?1:.6},"&.Mui-selected":{opacity:1,backgroundColor:u=>{var d;return((d=u.palette.backgroundPaperElevation)==null?void 0:d[11])||"#32344B"},color:"text.primary"},"&:focus":{outline:"none"},"&:active":{transform:"none"}}},l.id))})}),g.jsx(A.Box,{sx:{mx:3,borderBottom:1,borderColor:"divider"}}),g.jsx(A.Box,{sx:{flex:1,overflow:"auto"},children:t.map((l,c)=>g.jsx(rj,{value:o,index:c,children:l.content},l.id))})]})})),aj={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},oj=J.lazy(()=>import("@monaco-editor/react"));let Bi=null;async function sj(){if(!Bi){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);Bi={shiki:await e({langs:[aj],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return Bi}const ij=Ke(e=>{const t=A.useTheme(),[r,n]=J.useState("dark-plus"),a=t.palette.mode==="dark"?"dark-plus":"light-plus";async function o(s){var c,u;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:i,shikiToMonaco:l}=await sj();l(i,s),s.editor.defineTheme(a,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),n(a)}return g.jsx(J.Suspense,{fallback:g.jsx(Cc,{}),children:g.jsx(oj,{value:e.code,onMount:(s,i)=>{o(i)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ag(){var t,r,n,a,o,s,i;const e=A.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`},".MuiDataGrid-panelContent":{borderRadius:"16px !important","& .MuiPaper-root":{borderRadius:"16px !important"}},".MuiDataGrid-filterForm":{borderRadius:"16px !important","& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}},"& .MuiTextField-root":{"& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}}}},".MuiDataGrid-filterFormValueInput":{"& .MuiInputBase-root":{borderRadius:"16px !important","& fieldset":{borderRadius:"16px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"16px !important"}}}}},MuiDataGrid:{styleOverrides:{root:{},panelContent:{borderRadius:"16px !important"},filterForm:{"& .MuiInputBase-root":{borderRadius:"10px !important","& fieldset":{borderRadius:"10px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"10px !important"}}},filterFormValueInput:{"& .MuiInputBase-root":{borderRadius:"10px !important","& fieldset":{borderRadius:"10px !important"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"10px !important"}}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(s=(o=e.paletteExt)==null?void 0:o.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingPanel:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)",labelColor:e.palette.text.primary},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)",labelColor:e.palette.text.primary},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)",labelColor:e.palette.text.primary}}},JoggingJoint:{Joint:{arrowColor:e.palette.text.primary}},VelocitySlider:{sliderLegendColor:e.palette.text.primary}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":A.rgbToHex(((i=e.palette.backgroundPaperElevation)==null?void 0:i[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function lj(){const e=ag();return e.palette.mode="light",e}function cj(e){var n,a,o,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(o=window.matchMedia)==null?void 0:o.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?ag():lj();return np(r,e)}exports.AppHeader=Mg;exports.CycleTimer=Tm;exports.JoggingCartesianAxisControl=al;exports.JoggingJointRotationControl=Im;exports.JoggingPanel=e3;exports.JoggingStore=qs;exports.LoadingCover=Cc;exports.LoadingErrorMessage=Cf;exports.LogPanel=l3;exports.LogStore=Yf;exports.LogViewer=Kf;exports.MANUFACTURER_HOME_CONFIGS=Rl;exports.NoMotionGroupModal=u3;exports.PoseCartesianValues=r3;exports.PoseJointValues=n3;exports.PresetEnvironment=Ni;exports.ProgramControl=d3;exports.ProgramState=vr;exports.ProgramStateIndicator=Tl;exports.Robot=tg;exports.RobotCard=w3;exports.RobotListItem=R3;exports.RobotSetupReadinessIndicator=rg;exports.RobotSetupReadinessState=Ic;exports.SafetyBar=Z3;exports.SafetyZonesRenderer=Rg;exports.SelectableFab=tj;exports.SupportedRobot=eg;exports.TabBar=nj;exports.TrajectoryRenderer=Ag;exports.ValueInterpolator=xc;exports.VelocitySlider=qf;exports.VelocitySliderLabel=Ec;exports.WandelbotsDataGrid=Rm;exports.WandelscriptEditor=ij;exports.createDebugMessage=a3;exports.createErrorMessage=i3;exports.createInfoMessage=o3;exports.createLogMessage=$a;exports.createNovaMuiTheme=cj;exports.createWarningMessage=s3;exports.defaultAxisConfig=A3;exports.defaultGetModel=Vc;exports.extractManufacturer=ng;exports.getDefaultHomeConfig=_3;exports.i18n=_l;exports.useAnimationFrame=Rn;exports.useAutorun=Am;exports.useInterpolation=Pm;exports.useMounted=Vs;exports.useReaction=_m;
155
155
  //# sourceMappingURL=index.cjs.map