UNPKG

@wandelbots/wandelbots-js-react-components

Version:

React UI toolkit for building applications on top of the Wandelbots platform

1 lines • 117 kB
"use strict";const O=require("./index-DxwppshT.cjs"),F=require("@mui/material"),f=require("mobx-react-lite"),ee=require("react-i18next"),H=require("@mui/icons-material"),te=require("mobx"),N=require("react");var j=(e=>(e.IDLE="idle",e.PREPARING="preparing",e.STARTING="starting",e.RUNNING="running",e.PAUSING="pausing",e.PAUSED="paused",e.STOPPING="stopping",e.COMPLETED="completed",e.FAILED="failed",e.STOPPED="stopped",e.ERROR="error",e))(j||{});const se=O.externalizeComponent(f.observer(({state:e,onRun:r,onPause:t,onStop:s,onReset:c,requiresManualReset:n=!1,variant:l="with_pause",className:a})=>{const o=F.useTheme(),{t:i}=ee.useTranslation(),p=()=>{const y={run:{enabled:e==="idle"||e==="stopped"||e==="paused"||e==="completed"||e==="failed"||e==="error",label:i(e==="paused"?"ProgramControl.Resume.bt":e==="error"||e==="failed"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:o.palette.success.main,onClick:r},pause:{enabled:e==="running",label:i("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:t||(()=>{})},stop:{enabled:e==="preparing"||e==="starting"||e==="running"||e==="pausing"||e==="paused",label:i("ProgramControl.Stop.bt"),color:o.palette.error.main,onClick:s}};return l==="without_pause"?[y.run,y.stop]:[y.run,y.pause,y.stop]},d=y=>{const v={sx:{fontSize:"55px"}};if(l==="without_pause")return y===0?O.jsxRuntimeExports.jsx(H.PlayArrow,{...v}):O.jsxRuntimeExports.jsx(H.Stop,{...v});switch(y){case 0:return O.jsxRuntimeExports.jsx(H.PlayArrow,{...v});case 1:return O.jsxRuntimeExports.jsx(H.Pause,{...v});case 2:return O.jsxRuntimeExports.jsx(H.Stop,{...v});default:return null}},V=p();return O.jsxRuntimeExports.jsx(F.Box,{className:a,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:O.jsxRuntimeExports.jsx(F.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:V.map((y,v)=>O.jsxRuntimeExports.jsxs(F.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[O.jsxRuntimeExports.jsx(F.Button,{variant:"contained",disabled:!y.enabled||e==="preparing"||e==="starting"||e==="pausing"||e==="stopping"&&!n,onClick:y.onClick,sx:{width:"88px",height:"88px",borderRadius:"88px",backgroundColor:y.color,opacity:y.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3,"&:hover":{backgroundColor:y.color,opacity:y.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?.8:.3},"&:disabled":{backgroundColor:y.color,opacity:.3},minWidth:"88px",flexShrink:0},children:d(v)}),O.jsxRuntimeExports.jsx(F.Typography,{variant:"body1",sx:{color:y.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?y.color:o.palette.text.disabled,textAlign:"center",opacity:y.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3},children:y.label})]},y.label))})})})),ae=O.externalizeComponent(f.observer(({programState:e,safetyState:r,operationMode:t,className:s})=>{const c=F.useTheme(),{t:n}=ee.useTranslation(),l=()=>{if(r==="SAFETY_STATE_DEVICE_EMERGENCY_STOP"||r==="SAFETY_STATE_ROBOT_EMERGENCY_STOP"||r==="SAFETY_STATE_STOP_0"||r==="SAFETY_STATE_STOP_1"||r==="SAFETY_STATE_STOP_2"||r==="SAFETY_STATE_PROTECTIVE_STOP"||r==="SAFETY_STATE_STOP"||r==="SAFETY_STATE_REDUCED"||r==="SAFETY_STATE_MASTERING"||r==="SAFETY_STATE_CONFIRM_SAFETY"||r==="SAFETY_STATE_OPERATOR_SAFETY"||r==="SAFETY_STATE_RECOVERY"||r==="SAFETY_STATE_VIOLATION")return{label:n("ProgramStateIndicator.EStop.lb"),color:c.palette.error.main};if(r==="SAFETY_STATE_UNKNOWN"||r==="SAFETY_STATE_FAULT")return{label:n("ProgramStateIndicator.Error.lb"),color:c.palette.error.main};if(r==="SAFETY_STATE_NORMAL")switch(e){case j.PREPARING:return{label:n("ProgramStateIndicator.Preparing.lb"),color:c.palette.warning.main};case j.STARTING:return{label:n("ProgramStateIndicator.Starting.lb"),color:c.palette.warning.main};case j.RUNNING:return{label:n("ProgramStateIndicator.Running.lb"),color:c.palette.success.main};case j.PAUSING:return{label:n("ProgramStateIndicator.Pausing.lb"),color:c.palette.warning.main};case j.PAUSED:return{label:n("ProgramStateIndicator.Paused.lb"),color:c.palette.grey[600]};case j.STOPPING:return{label:n("ProgramStateIndicator.Stopping.lb"),color:c.palette.warning.main};case j.COMPLETED:return{label:n("ProgramStateIndicator.Completed.lb"),color:c.palette.success.main};case j.FAILED:return{label:n("ProgramStateIndicator.Failed.lb"),color:c.palette.error.main};case j.STOPPED:return{label:n("ProgramStateIndicator.Stopped.lb"),color:c.palette.warning.main};case j.ERROR:return{label:n("ProgramStateIndicator.Error.lb"),color:c.palette.error.main};case j.IDLE:default:return{label:n("ProgramStateIndicator.Ready.lb"),color:c.palette.success.main}}return{label:n("ProgramStateIndicator.Idle.lb"),color:c.palette.grey[600]}},{label:a,color:o}=l(),p=`${a} / ${(()=>{switch(t){case"OPERATION_MODE_AUTO":return n("ProgramStateIndicator.Auto.lb");case"OPERATION_MODE_MANUAL":return n("ProgramStateIndicator.Manual.lb");case"OPERATION_MODE_MANUAL_T1":return n("ProgramStateIndicator.ManualT1.lb");case"OPERATION_MODE_MANUAL_T2":return n("ProgramStateIndicator.ManualT2.lb");default:return n("ProgramStateIndicator.Auto.lb")}})()}`;return O.jsxRuntimeExports.jsx(F.Chip,{className:s,label:O.jsxRuntimeExports.jsx(F.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:p}),variant:"filled",sx:{backgroundColor:o,color:c.palette.getContrastText(o),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})}));function J(e){N.useEffect(e,[])}function le(e){J(()=>te.autorun(e))}function oe(e,r,t){J(()=>te.reaction(e,r,t))}function ne(e){return J(()=>{let r;function t(){e(),r=requestAnimationFrame(t)}return r=requestAnimationFrame(t),()=>{cancelAnimationFrame(r)}})}class re{constructor(r=[],t={}){this.currentValues=[],this.targetValues=[],this.previousTargetValues=[],this.targetUpdateTime=0,this.animationId=null,this.updateCount=0,this.velocities=[],this.animate=()=>{this.update(.016666666666666666)?this.animationId=null:this.animationId=requestAnimationFrame(this.animate)},this.options={tension:120,friction:20,threshold:.001,onChange:()=>{},onComplete:()=>{},...t},this.currentValues=[...r],this.targetValues=[...r],this.previousTargetValues=[...r],this.velocities=new Array(r.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(r=1/60){let t=!1,s=!0;this.updateCount++;const c=Math.min(r,1/15),n=this.updateCount===1?.7:1;for(let l=0;l<this.currentValues.length;l++){const a=this.currentValues[l],o=this.targetValues[l],i=this.velocities[l],p=o-a,d=p*this.options.tension*n,V=i*this.options.friction,y=d-V,v=i+y*c,q=a+v*c;Math.abs(p)<this.options.threshold&&Math.abs(v)<this.options.threshold*10?this.currentValues[l]!==o&&(this.currentValues[l]=o,this.velocities[l]=0,t=!0):(s=!1,this.currentValues[l]=q,this.velocities[l]=v,t=!0)}return t&&this.options.onChange(this.currentValues),s&&this.options.onComplete(this.currentValues),s}setTarget(r){const t=performance.now(),s=t-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...r],this.targetUpdateTime=t,this.updateCount=0;const c=this.previousTargetValues.every((n,l)=>n===this.currentValues[l]);if(s<8&&s>0&&this.previousTargetValues.length>0&&!c){const n=Math.min(s/8,1);for(let l=0;l<this.targetValues.length;l++){const a=this.previousTargetValues[l]||0,o=r[l]||0;Math.abs(o-a)>.1&&(this.targetValues[l]=a+(o-a)*n)}}for(;this.currentValues.length<r.length;)this.currentValues.push(r[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>r.length&&(this.currentValues=this.currentValues.slice(0,r.length),this.velocities=this.velocities.slice(0,r.length))}getCurrentValues(){return[...this.currentValues]}getValue(r){return this.currentValues[r]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(r){this.stop(),this.currentValues=[...r],this.targetValues=[...r],this.previousTargetValues=[...r],this.velocities=new Array(r.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(r){this.options={...this.options,...r}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}}function ce(e=[],r={}){const t=N.useRef(null);return t.current||(t.current=new re(e,r)),N.useEffect(()=>{var s;(s=t.current)==null||s.updateOptions(r)},[r]),N.useEffect(()=>()=>{var s;(s=t.current)==null||s.destroy()},[]),[t.current]}function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_(e)}function ie(e,r){if(_(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,r);if(_(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pe(e){var r=ie(e,"string");return _(r)=="symbol"?r:r+""}function de(e,r,t){return(r=pe(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const m="/api/v2".replace(/\/+$/,""),$={csv:","};var R=class{constructor(e,r=m,t=O.axios){this.basePath=r,this.axios=t,de(this,"configuration",void 0),e&&(this.configuration=e,this.basePath=e.basePath??r)}},he=class extends Error{constructor(e,r){super(r),this.field=e,this.name="RequiredError"}};const C={},S="https://example.com",h=function(e,r,t){if(t==null)throw new he(r,`Required parameter ${r} was null or undefined when calling ${e}.`)},u=function(e,r){r&&(r.username||r.password)&&(e.auth={username:r.username,password:r.password})},P=async function(e,r){r&&r.accessToken&&(e.Authorization="Bearer "+(typeof r.accessToken=="function"?await r.accessToken():await r.accessToken))};function W(e,r,t=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>W(e,s,t)):Object.keys(r).forEach(s=>W(e,r[s],`${t}${t!==""?".":""}${s}`)):e.has(t)?e.append(t,r):e.set(t,r))}const b=function(e,...r){const t=new URLSearchParams(e.search);W(t,r),e.search=t.toString()},A=function(e,r,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(r.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},x=function(e){return e.pathname+e.search+e.hash},I=function(e,r,t,s){return(c=r,n=t)=>{const l={...e.options,url:(c.defaults.baseURL?"":(s==null?void 0:s.basePath)??n)+e.url};return c.request(l)}},Ve={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},Oe=function(e){return{addApp:async(r,t,s,c={})=>{h("addApp","cell",r),h("addApp","app",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(t,o,e),{url:x(l),options:o}},clearApps:async(r,t,s={})=>{h("clearApps","cell",r);const c="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),t!==void 0&&(i.completion_timeout=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},deleteApp:async(r,t,s,c={})=>{h("deleteApp","cell",r),h("deleteApp","app",t);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"DELETE",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},getApp:async(r,t,s={})=>{h("getApp","cell",r),h("getApp","app",t);const c="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},listApps:async(r,t={})=>{h("listApps","cell",r);const s="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},updateApp:async(r,t,s,c,n={})=>{h("updateApp","cell",r),h("updateApp","app",t),h("updateApp","app2",s);const l="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),a=new URL(l,S);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},p={},d={};u(i,e),await P(p,e),c!==void 0&&(d.completion_timeout=c),p["Content-Type"]="application/json",b(a,d);let V=o&&o.headers?o.headers:{};return i.headers={...p,...V,...n.headers},i.data=A(s,i,e),{url:x(a),options:i}}}},L=function(e){const r=Oe(e);return{async addApp(t,s,c,n){var i,p;const l=await r.addApp(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ApplicationApi.addApp"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async clearApps(t,s,c){var o,i;const n=await r.clearApps(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ApplicationApi.clearApps"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async deleteApp(t,s,c,n){var i,p;const l=await r.deleteApp(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ApplicationApi.deleteApp"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async getApp(t,s,c){var o,i;const n=await r.getApp(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ApplicationApi.getApp"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async listApps(t,s){var a,o;const c=await r.listApps(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["ApplicationApi.listApps"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async updateApp(t,s,c,n,l){var p,d;const a=await r.updateApp(t,s,c,n,l),o=(e==null?void 0:e.serverIndex)??0,i=(d=(p=C["ApplicationApi.updateApp"])==null?void 0:p[o])==null?void 0:d.url;return(V,y)=>I(a,O.axios,m,e)(V,i||y)}}};var me=class extends R{addApp(e,r,t,s){return L(this.configuration).addApp(e,r,t,s).then(c=>c(this.axios,this.basePath))}clearApps(e,r,t){return L(this.configuration).clearApps(e,r,t).then(s=>s(this.axios,this.basePath))}deleteApp(e,r,t,s){return L(this.configuration).deleteApp(e,r,t,s).then(c=>c(this.axios,this.basePath))}getApp(e,r,t){return L(this.configuration).getApp(e,r,t).then(s=>s(this.axios,this.basePath))}listApps(e,r){return L(this.configuration).listApps(e,r).then(t=>t(this.axios,this.basePath))}updateApp(e,r,t,s,c){return L(this.configuration).updateApp(e,r,t,s,c).then(n=>n(this.axios,this.basePath))}};const Ce=function(e){return{addBusIOService:async(r,t,s,c={})=>{h("addBusIOService","cell",r),h("addBusIOService","busIOType",t);const n="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(t,o,e),{url:x(l),options:o}},addModbusIO:async(r,t,s,c={})=>{h("addModbusIO","cell",r),h("addModbusIO","io",t),h("addModbusIO","modbusIOData",s);const n="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...c},i={},p={};u(o,e),await P(i,e),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(s,o,e),{url:x(l),options:o}},addProfinetIO:async(r,t,s,c={})=>{h("addProfinetIO","cell",r),h("addProfinetIO","io",t),h("addProfinetIO","profinetIOData",s);const n="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...c},i={},p={};u(o,e),await P(i,e),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(s,o,e),{url:x(l),options:o}},clearBusIOService:async(r,t,s={})=>{h("clearBusIOService","cell",r);const c="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),t!==void 0&&(i.completion_timeout=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},deleteModbusIO:async(r,t,s={})=>{h("deleteModbusIO","cell",r),h("deleteModbusIO","io",t);const c="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},deleteProfinetIO:async(r,t,s={})=>{h("deleteProfinetIO","cell",r),h("deleteProfinetIO","io",t);const c="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},getBusIOService:async(r,t={})=>{h("getBusIOService","cell",r);const s="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},getBusIOState:async(r,t={})=>{h("getBusIOState","cell",r);const s="/cells/{cell}/bus-ios/state".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},getBusIOValues:async(r,t,s={})=>{h("getBusIOValues","cell",r);const c="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),t&&(i.ios=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},getProfinetDescription:async(r,t={})=>{h("getProfinetDescription","cell",r);const s="/cells/{cell}/bus-ios/profinet/description".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},getProfinetIOsFromFile:async(r,t,s,c={})=>{h("getProfinetIOsFromFile","cell",r);const n="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...c},i={},p={};u(o,e),await P(i,e),t!==void 0&&(p.input_offset=t),s!==void 0&&(p.output_offset=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},listBusIODescriptions:async(r,t={})=>{h("listBusIODescriptions","cell",r);const s="/cells/{cell}/bus-ios/ios/description".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},listModbusIOs:async(r,t={})=>{h("listModbusIOs","cell",r);const s="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},listProfinetIOs:async(r,t={})=>{h("listProfinetIOs","cell",r);const s="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},setBusIOValues:async(r,t,s={})=>{h("setBusIOValues","cell",r),h("setBusIOValues","iOValue",t);const c="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"PUT",...l,...s},o={},i={};u(a,e),await P(o,e),o["Content-Type"]="application/json",b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},a.data=A(t,a,e),{url:x(n),options:a}},setProfinetIOsFromFile:async(r,t,s={})=>{h("setProfinetIOsFromFile","cell",r),h("setProfinetIOsFromFile","profinetInputOutputConfig",t);const c="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"PUT",...l,...s},o={},i={};u(a,e),await P(o,e),o["Content-Type"]="application/json",b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},a.data=A(t,a,e),{url:x(n),options:a}}}},U=function(e){const r=Ce(e);return{async addBusIOService(t,s,c,n){var i,p;const l=await r.addBusIOService(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["BUSInputsOutputsApi.addBusIOService"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async addModbusIO(t,s,c,n){var i,p;const l=await r.addModbusIO(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["BUSInputsOutputsApi.addModbusIO"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async addProfinetIO(t,s,c,n){var i,p;const l=await r.addProfinetIO(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["BUSInputsOutputsApi.addProfinetIO"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async clearBusIOService(t,s,c){var o,i;const n=await r.clearBusIOService(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.clearBusIOService"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async deleteModbusIO(t,s,c){var o,i;const n=await r.deleteModbusIO(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.deleteModbusIO"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async deleteProfinetIO(t,s,c){var o,i;const n=await r.deleteProfinetIO(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.deleteProfinetIO"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getBusIOService(t,s){var a,o;const c=await r.getBusIOService(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.getBusIOService"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async getBusIOState(t,s){var a,o;const c=await r.getBusIOState(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.getBusIOState"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async getBusIOValues(t,s,c){var o,i;const n=await r.getBusIOValues(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.getBusIOValues"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getProfinetDescription(t,s){var a,o;const c=await r.getProfinetDescription(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.getProfinetDescription"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async getProfinetIOsFromFile(t,s,c,n){var i,p;const l=await r.getProfinetIOsFromFile(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["BUSInputsOutputsApi.getProfinetIOsFromFile"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async listBusIODescriptions(t,s){var a,o;const c=await r.listBusIODescriptions(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.listBusIODescriptions"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async listModbusIOs(t,s){var a,o;const c=await r.listModbusIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.listModbusIOs"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async listProfinetIOs(t,s){var a,o;const c=await r.listProfinetIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["BUSInputsOutputsApi.listProfinetIOs"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async setBusIOValues(t,s,c){var o,i;const n=await r.setBusIOValues(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.setBusIOValues"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async setProfinetIOsFromFile(t,s,c){var o,i;const n=await r.setProfinetIOsFromFile(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["BUSInputsOutputsApi.setProfinetIOsFromFile"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)}}};var Se=class extends R{addBusIOService(e,r,t,s){return U(this.configuration).addBusIOService(e,r,t,s).then(c=>c(this.axios,this.basePath))}addModbusIO(e,r,t,s){return U(this.configuration).addModbusIO(e,r,t,s).then(c=>c(this.axios,this.basePath))}addProfinetIO(e,r,t,s){return U(this.configuration).addProfinetIO(e,r,t,s).then(c=>c(this.axios,this.basePath))}clearBusIOService(e,r,t){return U(this.configuration).clearBusIOService(e,r,t).then(s=>s(this.axios,this.basePath))}deleteModbusIO(e,r,t){return U(this.configuration).deleteModbusIO(e,r,t).then(s=>s(this.axios,this.basePath))}deleteProfinetIO(e,r,t){return U(this.configuration).deleteProfinetIO(e,r,t).then(s=>s(this.axios,this.basePath))}getBusIOService(e,r){return U(this.configuration).getBusIOService(e,r).then(t=>t(this.axios,this.basePath))}getBusIOState(e,r){return U(this.configuration).getBusIOState(e,r).then(t=>t(this.axios,this.basePath))}getBusIOValues(e,r,t){return U(this.configuration).getBusIOValues(e,r,t).then(s=>s(this.axios,this.basePath))}getProfinetDescription(e,r){return U(this.configuration).getProfinetDescription(e,r).then(t=>t(this.axios,this.basePath))}getProfinetIOsFromFile(e,r,t,s){return U(this.configuration).getProfinetIOsFromFile(e,r,t,s).then(c=>c(this.axios,this.basePath))}listBusIODescriptions(e,r){return U(this.configuration).listBusIODescriptions(e,r).then(t=>t(this.axios,this.basePath))}listModbusIOs(e,r){return U(this.configuration).listModbusIOs(e,r).then(t=>t(this.axios,this.basePath))}listProfinetIOs(e,r){return U(this.configuration).listProfinetIOs(e,r).then(t=>t(this.axios,this.basePath))}setBusIOValues(e,r,t){return U(this.configuration).setBusIOValues(e,r,t).then(s=>s(this.axios,this.basePath))}setProfinetIOsFromFile(e,r,t){return U(this.configuration).setProfinetIOsFromFile(e,r,t).then(s=>s(this.axios,this.basePath))}};const ue=function(e){return{deleteCell:async(r,t,s={})=>{h("deleteCell","cell",r);const c="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),t!==void 0&&(i.completion_timeout=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},deployCell:async(r,t,s={})=>{h("deployCell","cell",r);const c=new URL("/cells",S);let n;e&&(n=e.baseOptions);const l={method:"POST",...n,...s},a={},o={};u(l,e),await P(a,e),t!==void 0&&(o.completion_timeout=t),a["Content-Type"]="application/json",b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...s.headers},l.data=A(r,l,e),{url:x(c),options:l}},getCell:async(r,t={})=>{h("getCell","cell",r);const s="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},getCellStatus:async(r,t={})=>{h("getCellStatus","cell",r);const s="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},listCells:async(r={})=>{const t=new URL("/cells",S);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},n={},l={};u(c,e),await P(n,e),b(t,l);let a=s&&s.headers?s.headers:{};return c.headers={...n,...a,...r.headers},{url:x(t),options:c}},setCellStatus:async(r,t,s={})=>{h("setCellStatus","cell",r),h("setCellStatus","operatingState",t);const c="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"PUT",...l,...s},o={},i={};u(a,e),await P(o,e),t!==void 0&&(i.operating_state=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},updateCell:async(r,t,s,c={})=>{h("updateCell","cell",r),h("updateCell","cell2",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(t,o,e),{url:x(l),options:o}}}},M=function(e){const r=ue(e);return{async deleteCell(t,s,c){var o,i;const n=await r.deleteCell(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["CellApi.deleteCell"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async deployCell(t,s,c){var o,i;const n=await r.deployCell(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["CellApi.deployCell"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getCell(t,s){var a,o;const c=await r.getCell(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["CellApi.getCell"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async getCellStatus(t,s){var a,o;const c=await r.getCellStatus(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["CellApi.getCellStatus"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async listCells(t){var l,a;const s=await r.listCells(t),c=(e==null?void 0:e.serverIndex)??0,n=(a=(l=C["CellApi.listCells"])==null?void 0:l[c])==null?void 0:a.url;return(o,i)=>I(s,O.axios,m,e)(o,n||i)},async setCellStatus(t,s,c){var o,i;const n=await r.setCellStatus(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["CellApi.setCellStatus"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async updateCell(t,s,c,n){var i,p;const l=await r.updateCell(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["CellApi.updateCell"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)}}};var Pe=class extends R{deleteCell(e,r,t){return M(this.configuration).deleteCell(e,r,t).then(s=>s(this.axios,this.basePath))}deployCell(e,r,t){return M(this.configuration).deployCell(e,r,t).then(s=>s(this.axios,this.basePath))}getCell(e,r){return M(this.configuration).getCell(e,r).then(t=>t(this.axios,this.basePath))}getCellStatus(e,r){return M(this.configuration).getCellStatus(e,r).then(t=>t(this.axios,this.basePath))}listCells(e){return M(this.configuration).listCells(e).then(r=>r(this.axios,this.basePath))}setCellStatus(e,r,t){return M(this.configuration).setCellStatus(e,r,t).then(s=>s(this.axios,this.basePath))}updateCell(e,r,t,s){return M(this.configuration).updateCell(e,r,t,s).then(c=>c(this.axios,this.basePath))}};const be=function(e){return{addRobotController:async(r,t,s,c={})=>{h("addRobotController","cell",r),h("addRobotController","robotController",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(t,o,e),{url:x(l),options:o}},clearRobotControllers:async(r,t,s={})=>{h("clearRobotControllers","cell",r);const c="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"DELETE",...l,...s},o={},i={};u(a,e),await P(o,e),t!==void 0&&(i.completion_timeout=t),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},deleteRobotController:async(r,t,s,c={})=>{h("deleteRobotController","cell",r),h("deleteRobotController","controller",t);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"DELETE",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.completion_timeout=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},getControllerDescription:async(r,t,s={})=>{h("getControllerDescription","cell",r),h("getControllerDescription","controller",t);const c="/cells/{cell}/controllers/{controller}/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},getCoordinateSystem:async(r,t,s,c,n={})=>{h("getCoordinateSystem","cell",r),h("getCoordinateSystem","controller",t),h("getCoordinateSystem","coordinateSystem",s);const l="/cells/{cell}/controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(s))),a=new URL(l,S);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},p={},d={};u(i,e),await P(p,e),c!==void 0&&(d.orientation_type=c),b(a,d);let V=o&&o.headers?o.headers:{};return i.headers={...p,...V,...n.headers},{url:x(a),options:i}},getCurrentRobotControllerState:async(r,t,s={})=>{h("getCurrentRobotControllerState","cell",r),h("getCurrentRobotControllerState","controller",t);const c="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},getRobotController:async(r,t,s={})=>{h("getRobotController","cell",r),h("getRobotController","controller",t);const c="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},getVirtualControllerConfiguration:async(r,t,s={})=>{h("getVirtualControllerConfiguration","cell",r),h("getVirtualControllerConfiguration","controller",t);const c="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(c,S);let l;e&&(l=e.baseOptions);const a={method:"GET",...l,...s},o={},i={};u(a,e),await P(o,e),b(n,i);let p=l&&l.headers?l.headers:{};return a.headers={...o,...p,...s.headers},{url:x(n),options:a}},listCoordinateSystems:async(r,t,s,c={})=>{h("listCoordinateSystems","cell",r),h("listCoordinateSystems","controller",t);const n="/cells/{cell}/controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.orientation_type=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},listRobotControllers:async(r,t={})=>{h("listRobotControllers","cell",r);const s="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),c=new URL(s,S);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},a={},o={};u(l,e),await P(a,e),b(c,o);let i=n&&n.headers?n.headers:{};return l.headers={...a,...i,...t.headers},{url:x(c),options:l}},setDefaultMode:async(r,t,s,c={})=>{h("setDefaultMode","cell",r),h("setDefaultMode","controller",t),h("setDefaultMode","mode",s);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.mode=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},streamFreeDrive:async(r,t,s,c={})=>{h("streamFreeDrive","cell",r),h("streamFreeDrive","controller",t);const n="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...c},i={},p={};u(o,e),await P(i,e),s!==void 0&&(p.response_rate=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},streamRobotControllerState:async(r,t,s,c,n={})=>{h("streamRobotControllerState","cell",r),h("streamRobotControllerState","controller",t);const l="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),a=new URL(l,S);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},p={},d={};u(i,e),await P(p,e),s!==void 0&&(d.response_rate=s),c!==void 0&&(d.add_controller_timeout=c),b(a,d);let V=o&&o.headers?o.headers:{};return i.headers={...p,...V,...n.headers},{url:x(a),options:i}},updateRobotController:async(r,t,s,c,n={})=>{h("updateRobotController","cell",r),h("updateRobotController","controller",t),h("updateRobotController","robotController",s);const l="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),a=new URL(l,S);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},p={},d={};u(i,e),await P(p,e),c!==void 0&&(d.completion_timeout=c),p["Content-Type"]="application/json",b(a,d);let V=o&&o.headers?o.headers:{};return i.headers={...p,...V,...n.headers},i.data=A(s,i,e),{url:x(a),options:i}}}},B=function(e){const r=be(e);return{async addRobotController(t,s,c,n){var i,p;const l=await r.addRobotController(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerApi.addRobotController"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async clearRobotControllers(t,s,c){var o,i;const n=await r.clearRobotControllers(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ControllerApi.clearRobotControllers"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async deleteRobotController(t,s,c,n){var i,p;const l=await r.deleteRobotController(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerApi.deleteRobotController"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async getControllerDescription(t,s,c){var o,i;const n=await r.getControllerDescription(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ControllerApi.getControllerDescription"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getCoordinateSystem(t,s,c,n,l){var p,d;const a=await r.getCoordinateSystem(t,s,c,n,l),o=(e==null?void 0:e.serverIndex)??0,i=(d=(p=C["ControllerApi.getCoordinateSystem"])==null?void 0:p[o])==null?void 0:d.url;return(V,y)=>I(a,O.axios,m,e)(V,i||y)},async getCurrentRobotControllerState(t,s,c){var o,i;const n=await r.getCurrentRobotControllerState(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ControllerApi.getCurrentRobotControllerState"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getRobotController(t,s,c){var o,i;const n=await r.getRobotController(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ControllerApi.getRobotController"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async getVirtualControllerConfiguration(t,s,c){var o,i;const n=await r.getVirtualControllerConfiguration(t,s,c),l=(e==null?void 0:e.serverIndex)??0,a=(i=(o=C["ControllerApi.getVirtualControllerConfiguration"])==null?void 0:o[l])==null?void 0:i.url;return(p,d)=>I(n,O.axios,m,e)(p,a||d)},async listCoordinateSystems(t,s,c,n){var i,p;const l=await r.listCoordinateSystems(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerApi.listCoordinateSystems"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async listRobotControllers(t,s){var a,o;const c=await r.listRobotControllers(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(o=(a=C["ControllerApi.listRobotControllers"])==null?void 0:a[n])==null?void 0:o.url;return(i,p)=>I(c,O.axios,m,e)(i,l||p)},async setDefaultMode(t,s,c,n){var i,p;const l=await r.setDefaultMode(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerApi.setDefaultMode"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async streamFreeDrive(t,s,c,n){var i,p;const l=await r.streamFreeDrive(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerApi.streamFreeDrive"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async streamRobotControllerState(t,s,c,n,l){var p,d;const a=await r.streamRobotControllerState(t,s,c,n,l),o=(e==null?void 0:e.serverIndex)??0,i=(d=(p=C["ControllerApi.streamRobotControllerState"])==null?void 0:p[o])==null?void 0:d.url;return(V,y)=>I(a,O.axios,m,e)(V,i||y)},async updateRobotController(t,s,c,n,l){var p,d;const a=await r.updateRobotController(t,s,c,n,l),o=(e==null?void 0:e.serverIndex)??0,i=(d=(p=C["ControllerApi.updateRobotController"])==null?void 0:p[o])==null?void 0:d.url;return(V,y)=>I(a,O.axios,m,e)(V,i||y)}}};var xe=class extends R{addRobotController(e,r,t,s){return B(this.configuration).addRobotController(e,r,t,s).then(c=>c(this.axios,this.basePath))}clearRobotControllers(e,r,t){return B(this.configuration).clearRobotControllers(e,r,t).then(s=>s(this.axios,this.basePath))}deleteRobotController(e,r,t,s){return B(this.configuration).deleteRobotController(e,r,t,s).then(c=>c(this.axios,this.basePath))}getControllerDescription(e,r,t){return B(this.configuration).getControllerDescription(e,r,t).then(s=>s(this.axios,this.basePath))}getCoordinateSystem(e,r,t,s,c){return B(this.configuration).getCoordinateSystem(e,r,t,s,c).then(n=>n(this.axios,this.basePath))}getCurrentRobotControllerState(e,r,t){return B(this.configuration).getCurrentRobotControllerState(e,r,t).then(s=>s(this.axios,this.basePath))}getRobotController(e,r,t){return B(this.configuration).getRobotController(e,r,t).then(s=>s(this.axios,this.basePath))}getVirtualControllerConfiguration(e,r,t){return B(this.configuration).getVirtualControllerConfiguration(e,r,t).then(s=>s(this.axios,this.basePath))}listCoordinateSystems(e,r,t,s){return B(this.configuration).listCoordinateSystems(e,r,t,s).then(c=>c(this.axios,this.basePath))}listRobotControllers(e,r){return B(this.configuration).listRobotControllers(e,r).then(t=>t(this.axios,this.basePath))}setDefaultMode(e,r,t,s){return B(this.configuration).setDefaultMode(e,r,t,s).then(c=>c(this.axios,this.basePath))}streamFreeDrive(e,r,t,s){return B(this.configuration).streamFreeDrive(e,r,t,s).then(c=>c(this.axios,this.basePath))}streamRobotControllerState(e,r,t,s,c){return B(this.configuration).streamRobotControllerState(e,r,t,s,c).then(n=>n(this.axios,this.basePath))}updateRobotController(e,r,t,s,c){return B(this.configuration).updateRobotController(e,r,t,s,c).then(n=>n(this.axios,this.basePath))}};const Ie=function(e){return{listIODescriptions:async(r,t,s,c,n,l,a={})=>{h("listIODescriptions","cell",r),h("listIODescriptions","controller",t);const o="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),i=new URL(o,S);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...a},V={},y={};u(d,e),await P(V,e),s&&(y.ios=s),c!==void 0&&(y.direction=c),n!==void 0&&(y.value_type=n),l!==void 0&&(y.group=l),b(i,y);let v=p&&p.headers?p.headers:{};return d.headers={...V,...v,...a.headers},{url:x(i),options:d}},listIOValues:async(r,t,s,c={})=>{h("listIOValues","cell",r),h("listIOValues","controller",t);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...c},i={},p={};u(o,e),await P(i,e),s&&(p.ios=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},setOutputValues:async(r,t,s,c={})=>{h("setOutputValues","cell",r),h("setOutputValues","controller",t),h("setOutputValues","iOValue",s);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"PUT",...a,...c},i={},p={};u(o,e),await P(i,e),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(s,o,e),{url:x(l),options:o}},streamIOValues:async(r,t,s,c={})=>{h("streamIOValues","cell",r),h("streamIOValues","controller",t);const n="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...c},i={},p={};u(o,e),await P(i,e),s&&(p.ios=s),b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},{url:x(l),options:o}},waitForIOEvent:async(r,t,s,c={})=>{h("waitForIOEvent","cell",r),h("waitForIOEvent","controller",t),h("waitForIOEvent","waitForIOEventRequest",s);const n="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,S);let a;e&&(a=e.baseOptions);const o={method:"POST",...a,...c},i={},p={};u(o,e),await P(i,e),i["Content-Type"]="application/json",b(l,p);let d=a&&a.headers?a.headers:{};return o.headers={...i,...d,...c.headers},o.data=A(s,o,e),{url:x(l),options:o}}}},Q=function(e){const r=Ie(e);return{async listIODescriptions(t,s,c,n,l,a,o){var V,y;const i=await r.listIODescriptions(t,s,c,n,l,a,o),p=(e==null?void 0:e.serverIndex)??0,d=(y=(V=C["ControllerInputsOutputsApi.listIODescriptions"])==null?void 0:V[p])==null?void 0:y.url;return(v,q)=>I(i,O.axios,m,e)(v,d||q)},async listIOValues(t,s,c,n){var i,p;const l=await r.listIOValues(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerInputsOutputsApi.listIOValues"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async setOutputValues(t,s,c,n){var i,p;const l=await r.setOutputValues(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerInputsOutputsApi.setOutputValues"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async streamIOValues(t,s,c,n){var i,p;const l=await r.streamIOValues(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerInputsOutputsApi.streamIOValues"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)},async waitForIOEvent(t,s,c,n){var i,p;const l=await r.waitForIOEvent(t,s,c,n),a=(e==null?void 0:e.serverIndex)??0,o=(p=(i=C["ControllerInputsOutputsApi.waitForIOEvent"])==null?void 0:i[a])==null?void 0:p.url;return(d,V)=>I(l,O.axios,m,e)(d,o||V)}}};var ye=class extends R{listIODescriptions(e,r,t,s,c,n,l){return Q(this.configuration).listIODescriptions(e,r,t,s,c,n,l).then(a=>a(this.axios,this.basePath))}listIOValues(e,r,t,s){return Q(this.configuration).listIOValues(e,r,t,s).then(c=>c(this.axios,this.basePath))}setOutputValues(e,r,t,s){return Q(this.configuration).setOutputValues(e,r,t,s).then(c=>c(this.axios,this.basePath))}streamIOValues(e,r,t,s){return Q(this.configuration).streamIOValues(e,r,t,s).then(c=>c(this.axios,this.basePath))}waitForIOEvent(e,r,t,s){return Q(this.configuration).waitForIOEvent(e,r,t,s).then(c=>c(this.axios,this.basePath))}};const Ae=function(e){return{executeJogging:async(r,t,s,c={})=>{h("execu