@wandelbots/wandelbots-js-react-components 2.29.0-pr.feature-add-cycle-timer.368.cb225d2 → 2.29.0-pr.feature-add-cycle-timer.368.3937cdc
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
|
@@ -122,7 +122,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
122
122
|
`));return e.svgRef}function LO(){const e=cm();return B.useCallback(t=>`${e}-gradient-${t}`,[e])}function DO(){const e=cm();return B.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}var mi,rd;function BO(){if(rd)return mi;rd=1;var e=4,t=.001,r=1e-7,n=10,a=11,o=1/(a-1),s=typeof Float32Array=="function";function i(m,y){return 1-3*y+3*m}function l(m,y){return 3*y-6*m}function c(m){return 3*m}function u(m,y,x){return((i(y,x)*m+l(y,x))*m+c(y))*m}function d(m,y,x){return 3*i(y,x)*m*m+2*l(y,x)*m+c(y)}function h(m,y,x,V,O){var C,A,w=0;do A=y+(x-y)/2,C=u(A,V,O)-m,C>0?x=A:y=A;while(Math.abs(C)>r&&++w<n);return A}function p(m,y,x,V){for(var O=0;O<e;++O){var C=d(y,x,V);if(C===0)return y;var A=u(y,x,V)-m;y-=A/C}return y}function f(m){return m}return mi=function(y,x,V,O){if(!(0<=y&&y<=1&&0<=V&&V<=1))throw new Error("bezier x values must be in [0, 1] range");if(y===x&&V===O)return f;for(var C=s?new Float32Array(a):new Array(a),A=0;A<a;++A)C[A]=u(A*o,y,V);function w(P){for(var _=0,N=1,b=a-1;N!==b&&C[N]<=P;++N)_+=o;--N;var T=(P-C[N])/(C[N+1]-C[N]),F=_+T*o,I=d(F,y,V);return I>=t?p(P,F,y,V):I===0?F:h(P,_,_+o,y,V)}return function(_){return _===0?0:_===1?1:u(w(_),x,O)}},mi}var NO=BO();const FO=cg(NO),zO=300,GO=FO(.66,0,.34,1);var gn=0,Qn=0,Ln=0,um=1e3,Lo,Xn,Do=0,Or=0,ws=0,ha=typeof performance=="object"&&performance.now?performance:Date,dm=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ac(){return Or||(dm(HO),Or=ha.now()+ws)}function HO(){Or=0}function Bo(){this._call=this._time=this._next=null}Bo.prototype=hm.prototype={constructor:Bo,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ac():+r)+(t==null?0:+t),!this._next&&Xn!==this&&(Xn?Xn._next=this:Lo=this,Xn=this),this._call=e,this._time=r,Qi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qi())}};function hm(e,t,r){var n=new Bo;return n.restart(e,t,r),n}function Ki(){ac(),++gn;for(var e=Lo,t;e;)(t=Or-e._time)>=0&&e._call.call(void 0,t),e=e._next;--gn}function nd(){Or=(Do=ha.now())+ws,gn=Qn=0;try{Ki()}finally{gn=0,JO(),Or=0}}function qO(){var e=ha.now(),t=e-Do;t>um&&(ws-=t,Do=e)}function JO(){for(var e,t=Lo,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Lo=r);Xn=e,Qi(n)}function Qi(e){if(!gn){Qn&&(Qn=clearTimeout(Qn));var t=e-Or;t>24?(e<1/0&&(Qn=setTimeout(nd,e-ha.now()-ws)),Ln&&(Ln=clearInterval(Ln))):(Ln||(Do=ha.now(),Ln=setInterval(qO,um)),gn=1,dm(nd))}}function WO(e,t,r){var n=new Bo;return t=t==null?0:+t,n.restart(a=>{n.stop(),e(a+t)},t,r),n}class YO{constructor(t,r,n){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=t,this.easingFn=r,this.onTickCallback=n,this.resume()}get running(){return this.timer!==null}timerCallback(t){this.elapsed=Math.min(t,this.duration);const r=this.duration===0?1:this.elapsed/this.duration,n=this.easingFn(r);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const t=ac()-this.elapsed;return this.timer=hm(r=>this.timerCallback(r),0,t),Ki(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),WO(()=>this.timerCallback(this.duration)),Ki(),this}}function KO(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a<r.length;a+=1){const o=r[a];if(!Object.prototype.hasOwnProperty.call(t,o)||!Object.is(e[o],t[o]))return!1}return!0}function QO(e,{createInterpolator:t,applyProps:r,skip:n,initialProps:a=e}){const o=B.useRef(a),s=B.useRef(null),i=B.useRef(null),l=B.useRef(e);Nt(()=>{l.current=e},[e]),Nt(()=>{var d;n&&((d=s.current)==null||d.finish(),s.current=null,i.current=null,o.current=e)},[e,n]);const c=B.useCallback(d=>{const h=o.current,p=t(h,e);s.current=new YO(zO,GO,f=>{const m=p(f);o.current=m,r(d,m)})},[r,t,e]);return B.useCallback(d=>{var p,f,m,y;if(d===null){(p=s.current)==null||p.stop();return}const h=i.current;if(h===d){if(KO(l.current,e)){(f=s.current)==null||f.resume();return}(m=s.current)==null||m.stop()}h&&((y=s.current)==null||y.stop()),i.current=d,(s.current||!n)&&c(d)},[c,e,n])}function XO(e,{createInterpolator:t,transformProps:r,applyProps:n,skip:a,initialProps:o=e,ref:s}){const i=r??(u=>u),l=QO(e,{initialProps:o,createInterpolator:t,applyProps:(u,d)=>n(u,i(d)),skip:a});return Y({},r(a?e:o),{ref:Xh(l,s)})}function ad(e){const{isReversed:t,gradientId:r,size:n,direction:a,scale:o,colorMap:s}=e;return n<=0?null:S.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${t?1:2}`]:`${n}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((i,l)=>{const c=o(i);if(c===void 0)return null;const u=t?1-c/n:c/n;return Number.isNaN(u)?null:S.jsxs(B.Fragment,{children:[S.jsx("stop",{offset:u,stopColor:s.colors[l],stopOpacity:1}),S.jsx("stop",{offset:u,stopColor:s.colors[l+1],stopOpacity:1})]},i.toString()+l)})})}const ZO=10;function od(e){const{gradientUnits:t,isReversed:r,gradientId:n,size:a,direction:o,scale:s,colorScale:i,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(s).filter(f=>f!==void 0);if(u.length!==2)return null;const d=typeof c[0]=="number"?Ot(c[0],c[1]):Nl(c[0],c[1]),h=Math.round((Math.max(...u)-Math.min(...u))/ZO),p=`${c[0]}-${c[1]}-`;return S.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${r?1:2}`]:t==="objectBoundingBox"?1:`${a}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:h+1},(f,m)=>{const y=d(m/h);if(y===void 0)return null;const x=s(y);if(x===void 0)return null;const V=r?1-x/a:x/a,O=i(y);return O===null?null:S.jsx("stop",{offset:V,stopColor:O,stopOpacity:1},p+m)})})}const ew=10,tw=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function fi(e){const{isReversed:t,gradientId:r,colorScale:n,colorMap:a}=e,o=[a.min??0,a.max??100],s=typeof o[0]=="number"?Ot(o[0],o[1]):Nl(o[0],o[1]),i=ew,l=`${o[0]}-${o[1]}-`;return S.jsx("linearGradient",Y({id:r},tw(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:i+1},(c,u)=>{const d=u/i,h=s(d);if(h===void 0)return null;const p=n(h);return p===null?null:S.jsx("stop",{offset:d,stopColor:p,stopOpacity:1},l+u)})}))}function rw(){const{top:e,height:t,bottom:r,left:n,width:a,right:o}=lm(),s=e+t+r,i=n+a+o,l=LO(),c=DO(),{xAxis:u,xAxisIds:d}=$O(),{yAxis:h,yAxisIds:p}=jO(),{zAxis:f,zAxisIds:m}=kO(),y=p.filter(O=>h[O].colorMap!==void 0),x=d.filter(O=>u[O].colorMap!==void 0),V=m.filter(O=>f[O].colorMap!==void 0);return y.length===0&&x.length===0&&V.length===0?null:S.jsxs("defs",{children:[y.map(O=>{const C=l(O),A=c(O),{colorMap:w,scale:P,colorScale:_,reverse:N}=h[O];return(w==null?void 0:w.type)==="piecewise"?S.jsx(ad,{isReversed:!N,scale:P,colorMap:w,size:s,gradientId:C,direction:"y"},C):(w==null?void 0:w.type)==="continuous"?S.jsxs(B.Fragment,{children:[S.jsx(od,{isReversed:!N,scale:P,colorScale:_,colorMap:w,size:s,gradientId:C,direction:"y"}),S.jsx(fi,{isReversed:N,colorScale:_,colorMap:w,gradientId:A})]},C):null}),x.map(O=>{const C=l(O),A=c(O),{colorMap:w,scale:P,reverse:_,colorScale:N}=u[O];return(w==null?void 0:w.type)==="piecewise"?S.jsx(ad,{isReversed:_,scale:P,colorMap:w,size:i,gradientId:C,direction:"x"},C):(w==null?void 0:w.type)==="continuous"?S.jsxs(B.Fragment,{children:[S.jsx(od,{isReversed:_,scale:P,colorScale:N,colorMap:w,size:i,gradientId:C,direction:"x"}),S.jsx(fi,{isReversed:_,colorScale:N,colorMap:w,gradientId:A})]},C):null}),V.map(O=>{const C=c(O),{colorMap:A,colorScale:w}=f[O];return(A==null?void 0:A.type)==="continuous"?S.jsx(fi,{colorScale:w,colorMap:A,gradientId:C},C):null})]})}const nw=["children","className","title","desc"],aw=dt("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"pan-y",userSelect:"none"})),oc=B.forwardRef(function(t,r){const n=Er(),{width:a,height:o}=at(n,zb),{width:s,height:i}=at(n,Fb),l=UO(),c=Xh(l,r),u=q0({props:t,name:"MuiChartsSurface"}),{children:d,className:h,title:p,desc:f}=u,m=ar(u,nw),y=o>0&&a>0;return S.jsxs(aw,Y({ownerState:{width:s,height:i},viewBox:`0 0 ${a} ${o}`,className:h},m,{ref:c,children:[p&&S.jsx("title",{children:p}),f&&S.jsx("desc",{children:f}),S.jsx(rw,{}),y&&d]}))});process.env.NODE_ENV!=="production"&&(oc.displayName="ChartsSurface");process.env.NODE_ENV!=="production"&&(oc.propTypes={children:g.node,className:g.string,desc:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),title:g.string});function Dn(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(r))return r*t/100}if(e.endsWith("px")){const r=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(r))return r}throw new Error(`MUI X Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function gi(e){const t=Yi(e);return[Math.sin(t),-Math.cos(t)]}function ow(e,t){const r=[[0,0],gi(e),gi(t)],n=Math.min(e,t),a=Math.max(e,t),o=Math.floor(n/90)*90;for(let u=1;u<=4;u+=1){const d=o+u*90;d<a&&r.push(gi(d))}const s=Math.min(...r.map(([u])=>u)),i=Math.max(...r.map(([u])=>u)),l=Math.min(...r.map(([,u])=>u)),c=Math.max(...r.map(([,u])=>u));return{cx:-s/(i-s),cy:-l/(c-l),minX:s,maxX:i,minY:l,maxY:c}}function sw(e,t,r,n,{minX:a,maxX:o,minY:s,maxY:i}){return Math.min(...[{ratio:Math.abs(a),space:e},{ratio:Math.abs(o),space:r-e},{ratio:Math.abs(s),space:t},{ratio:Math.abs(i),space:n-t}].map(({ratio:l,space:c})=>l<1e-5?1/0:c/l))}const sc=B.createContext({value:null,valueMin:0,valueMax:0,startAngle:0,endAngle:0,innerRadius:0,outerRadius:0,cornerRadius:0,cx:0,cy:0,maxRadius:0,valueAngle:null});process.env.NODE_ENV!=="production"&&(sc.displayName="GaugeContext");function iw(e){const{value:t=null,valueMin:r=0,valueMax:n=100,startAngle:a=0,endAngle:o=360,outerRadius:s,innerRadius:i,cornerRadius:l,cx:c,cy:u,children:d}=e,{left:h,top:p,width:f,height:m}=lm(),y=ow(a,o),x=c?Dn(c,f):y.cx*f,V=u?Dn(u,m):y.cy*m;let O=h+x,C=p+V;const A=sw(x,V,f,m,y);if(c===void 0){const b=A*(y.maxX-y.minX);O=h+(f-b)/2+y.cx*b}if(u===void 0){const b=A*(y.maxY-y.minY);C=p+(m-b)/2+y.cy*b}const w=Dn(s??A,A),P=Dn(i??"80%",A),_=Dn(l??0,w-P),N=B.useMemo(()=>{const b=Yi(a),T=Yi(o);return{value:t,valueMin:r,valueMax:n,startAngle:b,endAngle:T,outerRadius:w,innerRadius:P,cornerRadius:_,cx:O,cy:C,maxRadius:A,valueAngle:t===null?null:b+(T-b)*(t-r)/(n-r)}},[t,r,n,a,o,w,P,_,O,C,A]);return S.jsx(sc.Provider,{value:N,children:d})}function ic(){return B.useContext(sc)}const lw=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],cw=dt("g")(({theme:e})=>({"& text":{fill:(e.vars||e).palette.text.primary}})),lc=B.forwardRef(function(t,r){const{width:n,height:a,margin:o,title:s,desc:i,value:l,valueMin:c=0,valueMax:u=100,startAngle:d,endAngle:h,outerRadius:p,innerRadius:f,cornerRadius:m,cx:y,cy:x,children:V}=t,O=ar(t,lw);return S.jsx(MO,{pluginParams:{width:n,height:a,margin:op(o,{left:10,right:10,top:10,bottom:10})},plugins:[],children:S.jsx(iw,{value:l,valueMin:c,valueMax:u,startAngle:d,endAngle:h,outerRadius:p,innerRadius:f,cornerRadius:m,cx:y,cy:x,children:S.jsx(oc,Y({title:s,desc:i,role:"meter","aria-valuenow":l===null?void 0:l,"aria-valuemin":c,"aria-valuemax":u},O,{ref:r,children:S.jsx(cw,{"aria-hidden":"true",children:V})}))})})});process.env.NODE_ENV!=="production"&&(lc.displayName="GaugeContainer");process.env.NODE_ENV!=="production"&&(lc.propTypes={children:g.node,className:g.string,cornerRadius:g.oneOfType([g.number,g.string]),cx:g.oneOfType([g.number,g.string]),cy:g.oneOfType([g.number,g.string]),desc:g.string,endAngle:g.number,height:g.number,id:g.string,innerRadius:g.oneOfType([g.number,g.string]),margin:g.oneOfType([g.number,g.shape({bottom:g.number,left:g.number,right:g.number,top:g.number})]),outerRadius:g.oneOfType([g.number,g.string]),skipAnimation:g.bool,startAngle:g.number,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),title:g.string,value:g.number,valueMax:g.number,valueMin:g.number,width:g.number});function uw(e){const t=Er(),r=at(t,bb);return e||r}function dw(e,t){const r=Ot(e.startAngle,t.startAngle),n=Ot(e.endAngle,t.endAngle),a=Ot(e.innerRadius,t.innerRadius),o=Ot(e.outerRadius,t.outerRadius),s=Ot(e.cornerRadius,t.cornerRadius);return i=>({startAngle:r(i),endAngle:n(i),innerRadius:a(i),outerRadius:o(i),cornerRadius:s(i)})}function hw(e){return XO({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius},{createInterpolator:dw,transformProps:t=>({d:em().cornerRadius(t.cornerRadius)({innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle})}),applyProps(t,r){t.setAttribute("d",r.d)},initialProps:{startAngle:e.startAngle,endAngle:e.startAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius},skip:e.skipAnimation,ref:e.ref})}const pw=["cx","cy","startAngle","endAngle","cornerRadius","innerRadius","outerRadius","skipAnimation"],mw=dt("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:e})=>({fill:(e.vars||e).palette.primary.main}));function pm(e){const{value:t,valueMin:r,valueMax:n,startAngle:a,endAngle:o,outerRadius:s,innerRadius:i,cornerRadius:l,cx:c,cy:u}=ic();if(t===null)return null;const d=a+(t-r)/(n-r)*(o-a);return S.jsx(mm,Y({},e,{cx:c,cy:u,startAngle:a,endAngle:d,cornerRadius:l,innerRadius:i,outerRadius:s}))}process.env.NODE_ENV!=="production"&&(pm.propTypes={skipAnimation:g.bool});function mm(e){let{cx:t,cy:r,startAngle:n,endAngle:a,cornerRadius:o,innerRadius:s,outerRadius:i,skipAnimation:l}=e,c=ar(e,pw);const u=uw(l),d=hw({startAngle:n,endAngle:a,cornerRadius:o,innerRadius:s,outerRadius:i,skipAnimation:u});return S.jsx(mw,Y({},d,{transform:`translate(${t}, ${r})`},c))}process.env.NODE_ENV!=="production"&&(mm.propTypes={cornerRadius:g.number.isRequired,cx:g.number.isRequired,cy:g.number.isRequired,endAngle:g.number.isRequired,innerRadius:g.number.isRequired,outerRadius:g.number.isRequired,skipAnimation:g.bool,startAngle:g.number.isRequired});const fw=dt("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:e})=>({fill:(e.vars||e).palette.divider}));function gw(e){const{startAngle:t,endAngle:r,outerRadius:n,innerRadius:a,cornerRadius:o,cx:s,cy:i}=ic();return S.jsx(fw,Y({transform:`translate(${s}, ${i})`,d:em().cornerRadius(o)({startAngle:t,endAngle:r,innerRadius:a,outerRadius:n})},e))}const sd=e=>e,yw=()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}},bw=yw(),vw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fm(e,t,r="Mui"){const n=vw[t];return n?`${r}-${n}`:`${bw.generate(e)}-${t}`}function Sw(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=fm(e,a,r)}),n}function xw(e){return fm("MuiGauge",e)}Sw("MuiGauge",["root","valueArc","referenceArc","valueText"]);function Ow(){return typeof window>"u"}const Ka=new Map,ww=2e3,Cw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Pw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],id="mui_measurement_span";function gm(e,t){return Pw.indexOf(e)>=0&&t===+t?`${t}px`:t}function ym(e){return e.split("").reduce((n,a)=>a===a.toUpperCase()?[...n,"-",a.toLowerCase()]:[...n,a],[]).join("")}const Tw=e=>Object.keys(e).sort().reduce((t,r)=>`${t}${ym(r)}:${gm(r,e[r])};`,"");let yi;const Rw=(e,t={})=>{if(e==null||Ow())return{width:0,height:0};const r=`${e}`,n=Tw(t),a=`${r}-${n}`,o=Ka.get(a);if(o)return o;try{let s=document.getElementById(id);s===null&&(s=document.createElement("span"),s.setAttribute("id",id),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const i=Y({},Cw,t);Object.keys(i).map(u=>(s.style[ym(u)]=gm(u,i[u]),u)),s.textContent=r;const l=s.getBoundingClientRect(),c={width:l.width,height:l.height};return Ka.set(a,c),Ka.size+1>ww&&Ka.clear(),process.env.NODE_ENV==="test"?s.textContent="":(yi&&clearTimeout(yi),yi=setTimeout(()=>{s.textContent=""},0)),c}catch{return{width:0,height:0}}};function Aw({style:e,needsComputation:t,text:r}){return r.split(`
|
|
123
123
|
`).map(n=>Y({text:n},t?Rw(n,e):{width:0,height:0}))}function Vw(){const[e,t]=B.useState(typeof window<"u"||process.env.NODE_ENV==="test");return B.useEffect(()=>{t(!0)},[]),e}const _w=["x","y","style","text","ownerState"],Ew=["angle","textAnchor","dominantBaseline"];function bm(e){const{x:t,y:r,style:n,text:a}=e,o=ar(e,_w),s=n??{},{angle:i,textAnchor:l,dominantBaseline:c}=s,u=ar(s,Ew),d=Vw(),h=B.useMemo(()=>Aw({style:u,needsComputation:d&&a.includes(`
|
|
124
124
|
`),text:a}),[u,a,d]);let p;switch(c){case"hanging":case"text-before-edge":p=0;break;case"central":p=(h.length-1)/2*-h[0].height;break;default:p=(h.length-1)*-h[0].height;break}return S.jsx("text",Y({},o,{transform:i?`rotate(${i}, ${t}, ${r})`:void 0,x:t,y:r,textAnchor:l,dominantBaseline:c,style:u,children:h.map((f,m)=>S.jsx("tspan",{x:t,dy:`${m===0?p:h[0].height}px`,dominantBaseline:c,children:f.text},m))}))}process.env.NODE_ENV!=="production"&&(bm.propTypes={lineHeight:g.number,needsComputation:g.bool,ownerState:g.any,style:g.object,text:g.string.isRequired});const Iw=["text","className"];function Mw({value:e}){return e===null?null:e.toLocaleString()}function vm(e){const{text:t=Mw,className:r}=e,n=ar(e,Iw),{value:a,valueMin:o,valueMax:s,cx:i,cy:l}=ic(),c=typeof t=="function"?t({value:a,valueMin:o,valueMax:s}):t;return c===null?null:S.jsx("g",{className:r,children:S.jsx(bm,Y({x:i,y:l,text:c,style:{textAnchor:"middle",dominantBaseline:"central"}},n))})}process.env.NODE_ENV!=="production"&&(vm.propTypes={lineHeight:g.number,needsComputation:g.bool,ownerState:g.any,style:g.object,text:g.oneOfType([g.func,g.string])});const $w=["text","children","classes","className","skipAnimation"],jw=e=>{const{classes:t}=e;return bg({root:["root"],valueArc:["valueArc"],referenceArc:["referenceArc"],valueText:["valueText"]},xw,t)},No=B.forwardRef(function(t,r){const{text:n,children:a,className:o,skipAnimation:s}=t,i=ar(t,$w),l=jw(t);return S.jsxs(lc,Y({},i,{className:Et(l.root,o),ref:r,children:[S.jsx(gw,{className:l.referenceArc}),S.jsx(pm,{className:l.valueArc,skipAnimation:s}),S.jsx(vm,{className:l.valueText,text:n}),a]}))});process.env.NODE_ENV!=="production"&&(No.displayName="Gauge");process.env.NODE_ENV!=="production"&&(No.propTypes={children:g.node,classes:g.object,className:g.string,cornerRadius:g.oneOfType([g.number,g.string]),cx:g.oneOfType([g.number,g.string]),cy:g.oneOfType([g.number,g.string]),desc:g.string,endAngle:g.number,height:g.number,id:g.string,innerRadius:g.oneOfType([g.number,g.string]),margin:g.oneOfType([g.number,g.shape({bottom:g.number,left:g.number,right:g.number,top:g.number})]),outerRadius:g.oneOfType([g.number,g.string]),skipAnimation:g.bool,startAngle:g.number,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),text:g.oneOfType([g.func,g.string]),title:g.string,value:g.number,valueMax:g.number,valueMin:g.number,width:g.number});const kw={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
|
|
125
|
-
Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}} min.","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp"},Uw={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"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.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}} min.","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop"},cc=ag.createInstance();cc.use(og).init({supportedLngs:["en","de"],resources:{en:{translations:Uw},de:{translations:kw}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function ur(e){return r=>S.jsx(Lw,{children:S.jsx(e,{...r})})}const Lw=({children:e})=>S.jsx(Ie.I18nextProvider,{i18n:cc,children:e}),Dw=ur(je.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:o})=>{var P;const s=J.useTheme(),{t:i}=Ie.useTranslation(),[l,c]=te.useState(0),[u,d]=te.useState(0),[h,p]=te.useState(!1),[f,m]=te.useState(!1),y=te.useRef(null),x=te.useCallback((_,N=0)=>{console.log(`Starting new cycle with ${_} seconds (${N} seconds already elapsed)`),d(_);const b=Math.max(0,_-N);c(b),m(!1),b===0?(console.log("Cycle already completed (elapsed time >= max time)"),p(!1),t&&setTimeout(()=>t(),0)):r?(console.log("Auto-start enabled, starting timer"),p(!0)):console.log("Auto-start disabled, timer set but not started")},[r,t]),V=te.useCallback(()=>{console.log("Pausing timer"),p(!1),m(!0)},[]),O=te.useCallback(()=>{f&&l>0&&(console.log("Resuming timer"),p(!0),m(!1))},[f,l]),C=te.useCallback(()=>f,[f]);te.useEffect(()=>{let _=!0;const N=setTimeout(()=>{_&&e({startNewCycle:x,pause:V,resume:O,isPaused:C})},0);return()=>{_=!1,clearTimeout(N)}},[e,x,V,O,C]),te.useEffect(()=>(h&&l>0?y.current=setInterval(()=>{c(_=>_<=1?(p(!1),t&&setTimeout(()=>t(),0),console.log("Cycle completed! Timer reached zero."),0):_-1)},1e3):y.current&&(clearInterval(y.current),y.current=null),()=>{y.current&&clearInterval(y.current)}),[h,l,t]);const A=_=>{const N=Math.floor(_/60),b=_%60;return`${N}:${b.toString().padStart(2,"0")}`},w=u>0?(u-l)/u*100:0;return n==="small"?S.jsxs(J.Box,{className:o,sx:{display:"flex",alignItems:"center",gap:.125},children:[S.jsx(J.Box,{sx:{position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"visible"},children:S.jsx(No,{width:40,height:40,value:w,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",sx:{"& .MuiGauge-valueArc":{fill:s.palette.success.main},"& .MuiGauge-referenceArc":{fill:s.palette.success.main,opacity:.3},"& .MuiGauge-valueText":{display:"none"},"& .MuiGauge-text":{display:"none"},"& text":{display:"none"}}})}),S.jsx(J.Typography,{variant:"body2",sx:{color:s.palette.text.primary,fontSize:"14px"},children:a?A(l):`${A(l)} / ${i("CycleTimer.OfTime.lb",{time:A(u)})}`})]}):S.jsxs(J.Box,{className:o,sx:{position:"relative",width:264,height:264,display:"flex",alignItems:"center",justifyContent:"center"},children:[S.jsx(No,{width:264,height:264,value:w,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",sx:{"& .MuiGauge-valueArc":{fill:s.palette.success.main},"& .MuiGauge-referenceArc":{fill:"white",stroke:"transparent"}}}),S.jsxs(J.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:187,height:187,borderRadius:"50%",backgroundColor:(P=s.palette.backgroundPaperElevation)==null?void 0:P[8],display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:1},children:[S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary,marginBottom:.5},children:i("CycleTimer.RemainingTime.lb")}),S.jsx(J.Typography,{variant:"h1",sx:{fontSize:"48px",fontWeight:500,color:s.palette.text.primary,lineHeight:1,marginBottom:.5},children:A(l)}),S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary},children:i("CycleTimer.OfTime.lb",{time:A(u)})})]})]})}));process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function uc(e){return e0(e)}const on=p0({createStyledComponent:dt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>uc({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(on.propTypes={children:g.node,component:g.elementType,direction:g.oneOfType([g.oneOf(["column-reverse","column","row-reverse","row"]),g.arrayOf(g.oneOf(["column-reverse","column","row-reverse","row"])),g.object]),divider:g.node,spacing:g.oneOfType([g.arrayOf(g.oneOfType([g.number,g.string])),g.number,g.object,g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),useFlexGap:g.bool});const Bw=({title:e,titleId:t,...r},n)=>B.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?B.createElement("title",{id:t},e):null,B.createElement("g",{id:"JogMinus"},B.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Nw=te.forwardRef(Bw),Fw=({title:e,titleId:t,...r},n)=>B.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?B.createElement("title",{id:t},e):null,B.createElement("g",{id:"JogPlus"},B.createElement("g",{id:"Plus"},B.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),B.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),B.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),zw=te.forwardRef(Fw);function Cs(e){te.useEffect(e,[])}function Sm(e){Cs(()=>Be.autorun(e))}function xm(e,t,r){Cs(()=>Be.reaction(e,t,r))}function xn(e){return Cs(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const Xi=ur(je.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:o,activeJoggingDirection:s,...i})=>{var O,C,A,w,P,_,N;xn(()=>{const b=r(),T=h.current;T&&(T.textContent=b)});const l=J.useTheme(),[c,u]=te.useState(null);te.useEffect(()=>{o&&V()},[o]);const d=s||c,h=te.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const p=d?(O=e.buttonBackgroundColor)==null?void 0:O.pressed:e.borderColor,f={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},m={...f,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(A=e.buttonBackgroundColor)==null?void 0:A.hovered},":active":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.disabled,"svg path":{fill:l.palette.action.disabled}}},y={...f,backgroundColor:(_=e.buttonBackgroundColor)==null?void 0:_.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(N=e.buttonBackgroundColor)==null?void 0:N.pressed,"svg path":{fill:l.palette.action.disabled}}};function x(b,T){o||b.button===0&&(u(T),n(T))}function V(){u(null),a()}return S.jsxs(on,{height:"64px",direction:"row",justifyContent:"center",...i,children:[S.jsx(J.IconButton,{disabled:o,disableRipple:!0,onPointerDown:b=>x(b,"-"),onPointerUp:V,onPointerOut:V,size:"large",sx:{...d==="-"?y:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Nw,{})}),S.jsxs(on,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:[S.jsx(on,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...o?{color:l.palette.action.disabled}:{}},...o?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),S.jsx(J.Typography,{height:"22px",sx:{fontSize:"15px",color:o?l.palette.action.disabled:e.color,fontWeight:700},ref:h,children:r()})]}),S.jsx(J.IconButton,{disableRipple:!0,disabled:o,onPointerDown:b=>x(b,"+"),onPointerUp:V,onPointerOut:V,size:"large",sx:{...d==="+"?y:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(zw,{})})]})})),Ir=t0;function Gw(e){return xa("MuiSvgIcon",e)}kh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hw=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ze(t)}`,`fontSize${Ze(r)}`]};return wl(a,Gw,n)},qw=dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ze(r.color)}`],t[`fontSize${Ze(r.fontSize)}`]]}})(Ir(({theme:e})=>{var t,r,n,a,o,s,i,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var y,x;return{props:{color:m},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[m])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(f=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Fo=B.forwardRef(function(t,r){const n=uc({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...p}=n,f=B.isValidElement(a)&&a.type==="svg",m={...n,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f},y={};u||(y.viewBox=h);const x=Hw(m);return S.jsxs(qw,{as:i,className:Et(x.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...y,...p,...f&&a.props,ownerState:m,children:[f?a.props.children:a,d?S.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string});Fo.muiName="SvgIcon";function Ps(e,t){function r(n,a){return S.jsx(Fo,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Fo.muiName,B.memo(B.forwardRef(r))}function go(e){return e&&e.ownerDocument||document}function Jw(e){const{controlled:t,default:r,name:n,state:a="value"}=e,{current:o}=B.useRef(t!==void 0),[s,i]=B.useState(r),l=o?t:s;if(process.env.NODE_ENV!=="production"){B.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${a} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
125
|
+
Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}} min.","CycleTimer.Time.lb":"{{time}} min.","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp"},Uw={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"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.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}} min.","CycleTimer.Time.lb":"{{time}} min.","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop"},cc=ag.createInstance();cc.use(og).init({supportedLngs:["en","de"],resources:{en:{translations:Uw},de:{translations:kw}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function ur(e){return r=>S.jsx(Lw,{children:S.jsx(e,{...r})})}const Lw=({children:e})=>S.jsx(Ie.I18nextProvider,{i18n:cc,children:e}),Dw=ur(je.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:o})=>{var P;const s=J.useTheme(),{t:i}=Ie.useTranslation(),[l,c]=te.useState(0),[u,d]=te.useState(0),[h,p]=te.useState(!1),[f,m]=te.useState(!1),y=te.useRef(null),x=te.useCallback((_,N=0)=>{console.log(`Starting new cycle with ${_} seconds (${N} seconds already elapsed)`),d(_);const b=Math.max(0,_-N);c(b),m(!1),b===0?(console.log("Cycle already completed (elapsed time >= max time)"),p(!1),t&&setTimeout(()=>t(),0)):r?(console.log("Auto-start enabled, starting timer"),p(!0)):console.log("Auto-start disabled, timer set but not started")},[r,t]),V=te.useCallback(()=>{console.log("Pausing timer"),p(!1),m(!0)},[]),O=te.useCallback(()=>{f&&l>0&&(console.log("Resuming timer"),p(!0),m(!1))},[f,l]),C=te.useCallback(()=>f,[f]);te.useEffect(()=>{let _=!0;const N=setTimeout(()=>{_&&e({startNewCycle:x,pause:V,resume:O,isPaused:C})},0);return()=>{_=!1,clearTimeout(N)}},[e,x,V,O,C]),te.useEffect(()=>(h&&l>0?y.current=setInterval(()=>{c(_=>_<=1?(p(!1),t&&setTimeout(()=>t(),0),console.log("Cycle completed! Timer reached zero."),0):_-1)},1e3):y.current&&(clearInterval(y.current),y.current=null),()=>{y.current&&clearInterval(y.current)}),[h,l,t]);const A=_=>{const N=Math.floor(_/60),b=_%60;return`${N}:${b.toString().padStart(2,"0")}`},w=u>0?(u-l)/u*100:0;return n==="small"?S.jsxs(J.Box,{className:o,sx:{display:"flex",alignItems:"center",gap:.125},children:[S.jsx(J.Box,{sx:{position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"visible"},children:S.jsx(No,{width:40,height:40,value:w,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",sx:{"& .MuiGauge-valueArc":{fill:s.palette.success.main},"& .MuiGauge-referenceArc":{fill:s.palette.success.main,opacity:.3},"& .MuiGauge-valueText":{display:"none"},"& .MuiGauge-text":{display:"none"},"& text":{display:"none"}}})}),S.jsx(J.Typography,{variant:"body2",sx:{color:s.palette.text.primary,fontSize:"14px"},children:a?A(l):`${A(l)} / ${i("CycleTimer.Time.lb",{time:A(u)})}`})]}):S.jsxs(J.Box,{className:o,sx:{position:"relative",width:264,height:264,display:"flex",alignItems:"center",justifyContent:"center"},children:[S.jsx(No,{width:264,height:264,value:w,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",sx:{"& .MuiGauge-valueArc":{fill:s.palette.success.main},"& .MuiGauge-referenceArc":{fill:"white",stroke:"transparent"}}}),S.jsxs(J.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:187,height:187,borderRadius:"50%",backgroundColor:(P=s.palette.backgroundPaperElevation)==null?void 0:P[8],display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:1},children:[S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary,marginBottom:.5},children:i("CycleTimer.RemainingTime.lb")}),S.jsx(J.Typography,{variant:"h1",sx:{fontSize:"48px",fontWeight:500,color:s.palette.text.primary,lineHeight:1,marginBottom:.5},children:A(l)}),S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary},children:i("CycleTimer.OfTime.lb",{time:A(u)})})]})]})}));process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function uc(e){return e0(e)}const on=p0({createStyledComponent:dt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>uc({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(on.propTypes={children:g.node,component:g.elementType,direction:g.oneOfType([g.oneOf(["column-reverse","column","row-reverse","row"]),g.arrayOf(g.oneOf(["column-reverse","column","row-reverse","row"])),g.object]),divider:g.node,spacing:g.oneOfType([g.arrayOf(g.oneOfType([g.number,g.string])),g.number,g.object,g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),useFlexGap:g.bool});const Bw=({title:e,titleId:t,...r},n)=>B.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?B.createElement("title",{id:t},e):null,B.createElement("g",{id:"JogMinus"},B.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Nw=te.forwardRef(Bw),Fw=({title:e,titleId:t,...r},n)=>B.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?B.createElement("title",{id:t},e):null,B.createElement("g",{id:"JogPlus"},B.createElement("g",{id:"Plus"},B.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),B.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),B.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),zw=te.forwardRef(Fw);function Cs(e){te.useEffect(e,[])}function Sm(e){Cs(()=>Be.autorun(e))}function xm(e,t,r){Cs(()=>Be.reaction(e,t,r))}function xn(e){return Cs(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const Xi=ur(je.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:o,activeJoggingDirection:s,...i})=>{var O,C,A,w,P,_,N;xn(()=>{const b=r(),T=h.current;T&&(T.textContent=b)});const l=J.useTheme(),[c,u]=te.useState(null);te.useEffect(()=>{o&&V()},[o]);const d=s||c,h=te.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const p=d?(O=e.buttonBackgroundColor)==null?void 0:O.pressed:e.borderColor,f={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},m={...f,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(A=e.buttonBackgroundColor)==null?void 0:A.hovered},":active":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.disabled,"svg path":{fill:l.palette.action.disabled}}},y={...f,backgroundColor:(_=e.buttonBackgroundColor)==null?void 0:_.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(N=e.buttonBackgroundColor)==null?void 0:N.pressed,"svg path":{fill:l.palette.action.disabled}}};function x(b,T){o||b.button===0&&(u(T),n(T))}function V(){u(null),a()}return S.jsxs(on,{height:"64px",direction:"row",justifyContent:"center",...i,children:[S.jsx(J.IconButton,{disabled:o,disableRipple:!0,onPointerDown:b=>x(b,"-"),onPointerUp:V,onPointerOut:V,size:"large",sx:{...d==="-"?y:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Nw,{})}),S.jsxs(on,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:[S.jsx(on,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...o?{color:l.palette.action.disabled}:{}},...o?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),S.jsx(J.Typography,{height:"22px",sx:{fontSize:"15px",color:o?l.palette.action.disabled:e.color,fontWeight:700},ref:h,children:r()})]}),S.jsx(J.IconButton,{disableRipple:!0,disabled:o,onPointerDown:b=>x(b,"+"),onPointerUp:V,onPointerOut:V,size:"large",sx:{...d==="+"?y:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(zw,{})})]})})),Ir=t0;function Gw(e){return xa("MuiSvgIcon",e)}kh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hw=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ze(t)}`,`fontSize${Ze(r)}`]};return wl(a,Gw,n)},qw=dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ze(r.color)}`],t[`fontSize${Ze(r.fontSize)}`]]}})(Ir(({theme:e})=>{var t,r,n,a,o,s,i,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var y,x;return{props:{color:m},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[m])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(f=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Fo=B.forwardRef(function(t,r){const n=uc({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...p}=n,f=B.isValidElement(a)&&a.type==="svg",m={...n,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f},y={};u||(y.viewBox=h);const x=Hw(m);return S.jsxs(qw,{as:i,className:Et(x.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...y,...p,...f&&a.props,ownerState:m,children:[f?a.props.children:a,d?S.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string});Fo.muiName="SvgIcon";function Ps(e,t){function r(n,a){return S.jsx(Fo,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Fo.muiName,B.memo(B.forwardRef(r))}function go(e){return e&&e.ownerDocument||document}function Jw(e){const{controlled:t,default:r,name:n,state:a="value"}=e,{current:o}=B.useRef(t!==void 0),[s,i]=B.useState(r),l=o?t:s;if(process.env.NODE_ENV!=="production"){B.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${a} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
126
126
|
`))},[a,n,t]);const{current:u}=B.useRef(r);B.useEffect(()=>{!o&&!Object.is(u,r)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
127
127
|
`))},[JSON.stringify(r)])}const c=B.useCallback(u=>{o||i(u)},[]);return[l,c]}function bi(e){const t=B.useRef(e);return zh(()=>{t.current=e}),B.useRef((...r)=>(0,t.current)(...r)).current}function Om(...e){const t=B.useRef(void 0),r=B.useCallback(n=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,i=s(n);return typeof i=="function"?i:()=>{s(null)}}return o.current=n,()=>{o.current=null}});return()=>{a.forEach(o=>o==null?void 0:o())}},e);return B.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Ww=Ps(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Yw=Ps(S.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function wr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wm=typeof global=="object"&&global&&global.Object===Object&&global,Kw=typeof self=="object"&&self&&self.Object===Object&&self,$t=wm||Kw||Function("return this")(),vi=function(){return $t.Date.now()},Qw=/\s/;function Xw(e){for(var t=e.length;t--&&Qw.test(e.charAt(t)););return t}var Zw=/^\s+/;function eC(e){return e&&e.slice(0,Xw(e)+1).replace(Zw,"")}var ir=$t.Symbol,Cm=Object.prototype,tC=Cm.hasOwnProperty,rC=Cm.toString,Bn=ir?ir.toStringTag:void 0;function nC(e){var t=tC.call(e,Bn),r=e[Bn];try{e[Bn]=void 0;var n=!0}catch{}var a=rC.call(e);return n&&(t?e[Bn]=r:delete e[Bn]),a}var aC=Object.prototype,oC=aC.toString;function sC(e){return oC.call(e)}var iC="[object Null]",lC="[object Undefined]",ld=ir?ir.toStringTag:void 0;function Mr(e){return e==null?e===void 0?lC:iC:ld&&ld in Object(e)?nC(e):sC(e)}function Cr(e){return e!=null&&typeof e=="object"}var cC="[object Symbol]";function Ts(e){return typeof e=="symbol"||Cr(e)&&Mr(e)==cC}var cd=NaN,uC=/^[-+]0x[0-9a-f]+$/i,dC=/^0b[01]+$/i,hC=/^0o[0-7]+$/i,pC=parseInt;function ud(e){if(typeof e=="number")return e;if(Ts(e))return cd;if(wr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eC(e);var r=dC.test(e);return r||hC.test(e)?pC(e.slice(2),r?2:8):uC.test(e)?cd:+e}var mC="Expected a function",fC=Math.max,gC=Math.min;function yC(e,t,r){var n,a,o,s,i,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(mC);t=ud(t)||0,wr(r)&&(u=!!r.leading,d="maxWait"in r,o=d?fC(ud(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function p(w){var P=n,_=a;return n=a=void 0,c=w,s=e.apply(_,P),s}function f(w){return c=w,i=setTimeout(x,t),u?p(w):s}function m(w){var P=w-l,_=w-c,N=t-P;return d?gC(N,o-_):N}function y(w){var P=w-l,_=w-c;return l===void 0||P>=t||P<0||d&&_>=o}function x(){var w=vi();if(y(w))return V(w);i=setTimeout(x,m(w))}function V(w){return i=void 0,h&&n?p(w):(n=a=void 0,s)}function O(){i!==void 0&&clearTimeout(i),c=0,n=l=a=i=void 0}function C(){return i===void 0?s:V(vi())}function A(){var w=vi(),P=y(w);if(n=arguments,a=this,l=w,P){if(i===void 0)return f(l);if(d)return clearTimeout(i),i=setTimeout(x,t),p(l)}return i===void 0&&(i=setTimeout(x,t)),s}return A.cancel=O,A.flush=C,A}var bC="Expected a function";function vC(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(bC);return wr(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),yC(e,t,{leading:n,maxWait:t,trailing:a})}const Pm=ur(je.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:o,...s})=>{var O,C,A,w,P,_,N,b,T,F,I,z,ne,re,oe;const{t:i}=Ie.useTranslation(),[l,c]=te.useState(),u=J.useTheme(),d={background:(O=u.palette.backgroundPaperElevation)==null?void 0:O[4],color:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11]},h=je.useLocalObservable(()=>({activeJoggingDir:null,startJogging(Z){this.activeJoggingDir=Z,e(Z)},stopJogging(){this.activeJoggingDir=null,t()}})),p=vC(()=>{c(a())},50);xn(p);function f(Z){Z.button===0&&h.startJogging("-")}function m(Z){Z.button===0&&h.startJogging("+")}function y(Z){h.stopJogging()}function x(Z){h.stopJogging()}function V(Z,le=1){if(Z===void 0||isNaN(Z))return"";const q=i("General.degree.variable",{amount:Z.toFixed(le)});return Z>0&&le===0?`+${q}`:q}return S.jsxs(on,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(A=u.palette.backgroundPaperElevation)==null?void 0:A[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[9]},"&:active":{...d}}},children:[S.jsx(J.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:x,disabled:o,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...h.activeJoggingDir==="-"?d:{}},children:S.jsx(Ww,{sx:{pointerEvents:"none",color:(T=(b=(N=(_=u.componentsExt)==null?void 0:_.JoggingPanel)==null?void 0:N.JoggingJoint)==null?void 0:b.Joint)==null?void 0:T.arrowColor}})}),S.jsxs(on,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(F=u.palette.backgroundPaperElevation)==null?void 0:F[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[S.jsx(J.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:o?u.palette.action.disabled:u.palette.text.primary},children:V(l)}),S.jsx(J.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:o?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:o?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(I=u.palette.backgroundPaperElevation)==null?void 0:I[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:V(r,0)},{value:n,label:V(n,0)}]})]}),S.jsx(J.IconButton,{onPointerDown:m,onPointerUp:y,onPointerOut:x,disabled:o,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...h.activeJoggingDir==="+"?d:{}},children:S.jsx(Yw,{sx:{pointerEvents:"none",color:(oe=(re=(ne=(z=u.componentsExt)==null?void 0:z.JoggingPanel)==null?void 0:ne.JoggingJoint)==null?void 0:re.Joint)==null?void 0:oe.arrowColor}})})]})})),SC=Ps(S.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),xC=Ps(S.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");function OC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tm=OC;function wC(){this.__data__=[],this.size=0}var CC=wC;function PC(e,t){return e===t||e!==e&&t!==t}var Rm=PC;function TC(e,t){for(var r=e.length;r--;)if(Rm(e[r][0],t))return r;return-1}var Rs=TC,RC=Array.prototype,AC=RC.splice;function VC(e){var t=this.__data__,r=Rs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AC.call(t,r,1),--this.size,!0}var _C=VC;function EC(e){var t=this.__data__,r=Rs(t,e);return r<0?void 0:t[r][1]}var IC=EC;function MC(e){return Rs(this.__data__,e)>-1}var $C=MC;function jC(e,t){var r=this.__data__,n=Rs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var kC=jC;function On(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])}}On.prototype.clear=CC;On.prototype.delete=_C;On.prototype.get=IC;On.prototype.has=$C;On.prototype.set=kC;var As=On;function UC(){this.__data__=new As,this.size=0}var LC=UC;function DC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var BC=DC;function NC(e){return this.__data__.get(e)}var FC=NC;function zC(e){return this.__data__.has(e)}var GC=zC,HC=typeof global=="object"&&global&&global.Object===Object&&global,Am=HC,qC=typeof self=="object"&&self&&self.Object===Object&&self,JC=Am||qC||Function("return this")(),Jt=JC,WC=Jt.Symbol,yn=WC,Vm=Object.prototype,YC=Vm.hasOwnProperty,KC=Vm.toString,Nn=yn?yn.toStringTag:void 0;function QC(e){var t=YC.call(e,Nn),r=e[Nn];try{e[Nn]=void 0;var n=!0}catch{}var a=KC.call(e);return n&&(t?e[Nn]=r:delete e[Nn]),a}var XC=QC,ZC=Object.prototype,eP=ZC.toString;function tP(e){return eP.call(e)}var rP=tP,nP="[object Null]",aP="[object Undefined]",dd=yn?yn.toStringTag:void 0;function oP(e){return e==null?e===void 0?aP:nP:dd&&dd in Object(e)?XC(e):rP(e)}var Aa=oP,sP="[object AsyncFunction]",iP="[object Function]",lP="[object GeneratorFunction]",cP="[object Proxy]";function uP(e){if(!Tm(e))return!1;var t=Aa(e);return t==iP||t==lP||t==sP||t==cP}var _m=uP,dP=Jt["__core-js_shared__"],Si=dP,hd=function(){var e=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hP(e){return!!hd&&hd in e}var pP=hP,mP=Function.prototype,fP=mP.toString;function gP(e){if(e!=null){try{return fP.call(e)}catch{}try{return e+""}catch{}}return""}var $r=gP,yP=/[\\^$.*+?()[\]{}|]/g,bP=/^\[object .+?Constructor\]$/,vP=Function.prototype,SP=Object.prototype,xP=vP.toString,OP=SP.hasOwnProperty,wP=RegExp("^"+xP.call(OP).replace(yP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function CP(e){if(!Tm(e)||pP(e))return!1;var t=_m(e)?wP:bP;return t.test($r(e))}var PP=CP;function TP(e,t){return e==null?void 0:e[t]}var RP=TP;function AP(e,t){var r=RP(e,t);return PP(r)?r:void 0}var wn=AP,VP=wn(Jt,"Map"),pa=VP,_P=wn(Object,"create"),ma=_P;function EP(){this.__data__=ma?ma(null):{},this.size=0}var IP=EP;function MP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $P=MP,jP="__lodash_hash_undefined__",kP=Object.prototype,UP=kP.hasOwnProperty;function LP(e){var t=this.__data__;if(ma){var r=t[e];return r===jP?void 0:r}return UP.call(t,e)?t[e]:void 0}var DP=LP,BP=Object.prototype,NP=BP.hasOwnProperty;function FP(e){var t=this.__data__;return ma?t[e]!==void 0:NP.call(t,e)}var zP=FP,GP="__lodash_hash_undefined__";function HP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ma&&t===void 0?GP:t,this}var qP=HP;function Cn(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])}}Cn.prototype.clear=IP;Cn.prototype.delete=$P;Cn.prototype.get=DP;Cn.prototype.has=zP;Cn.prototype.set=qP;var pd=Cn;function JP(){this.size=0,this.__data__={hash:new pd,map:new(pa||As),string:new pd}}var WP=JP;function YP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KP=YP;function QP(e,t){var r=e.__data__;return KP(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vs=QP;function XP(e){var t=Vs(this,e).delete(e);return this.size-=t?1:0,t}var ZP=XP;function eT(e){return Vs(this,e).get(e)}var tT=eT;function rT(e){return Vs(this,e).has(e)}var nT=rT;function aT(e,t){var r=Vs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var oT=aT;function Pn(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])}}Pn.prototype.clear=WP;Pn.prototype.delete=ZP;Pn.prototype.get=tT;Pn.prototype.has=nT;Pn.prototype.set=oT;var Em=Pn,sT=200;function iT(e,t){var r=this.__data__;if(r instanceof As){var n=r.__data__;if(!pa||n.length<sT-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Em(n)}return r.set(e,t),this.size=r.size,this}var lT=iT;function Tn(e){var t=this.__data__=new As(e);this.size=t.size}Tn.prototype.clear=LC;Tn.prototype.delete=BC;Tn.prototype.get=FC;Tn.prototype.has=GC;Tn.prototype.set=lT;var xi=Tn,cT="__lodash_hash_undefined__";function uT(e){return this.__data__.set(e,cT),this}var dT=uT;function hT(e){return this.__data__.has(e)}var pT=hT;function zo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Em;++t<r;)this.add(e[t])}zo.prototype.add=zo.prototype.push=dT;zo.prototype.has=pT;var mT=zo;function fT(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var gT=fT;function yT(e,t){return e.has(t)}var bT=yT,vT=1,ST=2;function xT(e,t,r,n,a,o){var s=r&vT,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&ST?new mT: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(!gT(t,function(x,V){if(!bT(p,V)&&(f===x||a(f,x,r,n,o)))return p.push(V)})){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 Im=xT,OT=Jt.Uint8Array,md=OT;function wT(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var CT=wT;function PT(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var TT=PT,RT=1,AT=2,VT="[object Boolean]",_T="[object Date]",ET="[object Error]",IT="[object Map]",MT="[object Number]",$T="[object RegExp]",jT="[object Set]",kT="[object String]",UT="[object Symbol]",LT="[object ArrayBuffer]",DT="[object DataView]",fd=yn?yn.prototype:void 0,Oi=fd?fd.valueOf:void 0;function BT(e,t,r,n,a,o,s){switch(r){case DT:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case LT:return!(e.byteLength!=t.byteLength||!o(new md(e),new md(t)));case VT:case _T:case MT:return Rm(+e,+t);case ET:return e.name==t.name&&e.message==t.message;case $T:case kT:return e==t+"";case IT:var i=CT;case jT:var l=n&RT;if(i||(i=TT),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=AT,s.set(e,t);var u=Im(i(e),i(t),n,a,o,s);return s.delete(e),u;case UT:if(Oi)return Oi.call(e)==Oi.call(t)}return!1}var NT=BT;function FT(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var zT=FT,GT=Array.isArray,Go=GT;function HT(e,t,r){var n=t(e);return Go(e)?n:zT(n,r(e))}var qT=HT;function JT(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}var WT=JT;function YT(){return[]}var KT=YT,QT=Object.prototype,XT=QT.propertyIsEnumerable,gd=Object.getOwnPropertySymbols,ZT=gd?function(e){return e==null?[]:(e=Object(e),WT(gd(e),function(t){return XT.call(e,t)}))}:KT,eR=ZT;function tR(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var rR=tR;function nR(e){return e!=null&&typeof e=="object"}var fa=nR,aR="[object Arguments]";function oR(e){return fa(e)&&Aa(e)==aR}var yd=oR,Mm=Object.prototype,sR=Mm.hasOwnProperty,iR=Mm.propertyIsEnumerable,lR=yd(function(){return arguments}())?yd:function(e){return fa(e)&&sR.call(e,"callee")&&!iR.call(e,"callee")},cR=lR;function uR(){return!1}var dR=uR,$m=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bd=$m&&typeof module=="object"&&module&&!module.nodeType&&module,hR=bd&&bd.exports===$m,vd=hR?Jt.Buffer:void 0,pR=vd?vd.isBuffer:void 0,mR=pR||dR,Zi=mR,fR=9007199254740991,gR=/^(?:0|[1-9]\d*)$/;function yR(e,t){var r=typeof e;return t=t??fR,!!t&&(r=="number"||r!="symbol"&&gR.test(e))&&e>-1&&e%1==0&&e<t}var bR=yR,vR=9007199254740991;function SR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vR}var jm=SR,xR="[object Arguments]",OR="[object Array]",wR="[object Boolean]",CR="[object Date]",PR="[object Error]",TR="[object Function]",RR="[object Map]",AR="[object Number]",VR="[object Object]",_R="[object RegExp]",ER="[object Set]",IR="[object String]",MR="[object WeakMap]",$R="[object ArrayBuffer]",jR="[object DataView]",kR="[object Float32Array]",UR="[object Float64Array]",LR="[object Int8Array]",DR="[object Int16Array]",BR="[object Int32Array]",NR="[object Uint8Array]",FR="[object Uint8ClampedArray]",zR="[object Uint16Array]",GR="[object Uint32Array]",Te={};Te[kR]=Te[UR]=Te[LR]=Te[DR]=Te[BR]=Te[NR]=Te[FR]=Te[zR]=Te[GR]=!0;Te[xR]=Te[OR]=Te[$R]=Te[wR]=Te[jR]=Te[CR]=Te[PR]=Te[TR]=Te[RR]=Te[AR]=Te[VR]=Te[_R]=Te[ER]=Te[IR]=Te[MR]=!1;function HR(e){return fa(e)&&jm(e.length)&&!!Te[Aa(e)]}var qR=HR;function JR(e){return function(t){return e(t)}}var WR=JR,km=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ta=km&&typeof module=="object"&&module&&!module.nodeType&&module,YR=ta&&ta.exports===km,wi=YR&&Am.process,KR=function(){try{var e=ta&&ta.require&&ta.require("util").types;return e||wi&&wi.binding&&wi.binding("util")}catch{}}(),Sd=KR,xd=Sd&&Sd.isTypedArray,QR=xd?WR(xd):qR,Um=QR,XR=Object.prototype,ZR=XR.hasOwnProperty;function eA(e,t){var r=Go(e),n=!r&&cR(e),a=!r&&!n&&Zi(e),o=!r&&!n&&!a&&Um(e),s=r||n||a||o,i=s?rR(e.length,String):[],l=i.length;for(var c in e)(t||ZR.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bR(c,l)))&&i.push(c);return i}var tA=eA,rA=Object.prototype;function nA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rA;return e===r}var aA=nA;function oA(e,t){return function(r){return e(t(r))}}var sA=oA,iA=sA(Object.keys,Object),lA=iA,cA=Object.prototype,uA=cA.hasOwnProperty;function dA(e){if(!aA(e))return lA(e);var t=[];for(var r in Object(e))uA.call(e,r)&&r!="constructor"&&t.push(r);return t}var hA=dA;function pA(e){return e!=null&&jm(e.length)&&!_m(e)}var mA=pA;function fA(e){return mA(e)?tA(e):hA(e)}var gA=fA;function yA(e){return qT(e,gA,eR)}var Od=yA,bA=1,vA=Object.prototype,SA=vA.hasOwnProperty;function xA(e,t,r,n,a,o){var s=r&bA,i=Od(e),l=i.length,c=Od(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=i[d];if(!(s?h in t:SA.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 x=e[h],V=t[h];if(n)var O=s?n(V,x,h,t,e,o):n(x,V,h,e,t,o);if(!(O===void 0?x===V||a(x,V,r,n,o):O)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var C=e.constructor,A=t.constructor;C!=A&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof A=="function"&&A instanceof A)&&(m=!1)}return o.delete(e),o.delete(t),m}var OA=xA,wA=wn(Jt,"DataView"),el=wA,CA=wn(Jt,"Promise"),tl=CA,PA=wn(Jt,"Set"),rl=PA,TA=wn(Jt,"WeakMap"),nl=TA,wd="[object Map]",RA="[object Object]",Cd="[object Promise]",Pd="[object Set]",Td="[object WeakMap]",Rd="[object DataView]",AA=$r(el),VA=$r(pa),_A=$r(tl),EA=$r(rl),IA=$r(nl),mr=Aa;(el&&mr(new el(new ArrayBuffer(1)))!=Rd||pa&&mr(new pa)!=wd||tl&&mr(tl.resolve())!=Cd||rl&&mr(new rl)!=Pd||nl&&mr(new nl)!=Td)&&(mr=function(e){var t=Aa(e),r=t==RA?e.constructor:void 0,n=r?$r(r):"";if(n)switch(n){case AA:return Rd;case VA:return wd;case _A:return Cd;case EA:return Pd;case IA:return Td}return t});var Ad=mr,MA=1,Vd="[object Arguments]",_d="[object Array]",Qa="[object Object]",$A=Object.prototype,Ed=$A.hasOwnProperty;function jA(e,t,r,n,a,o){var s=Go(e),i=Go(t),l=s?_d:Ad(e),c=i?_d:Ad(t);l=l==Vd?Qa:l,c=c==Vd?Qa:c;var u=l==Qa,d=c==Qa,h=l==c;if(h&&Zi(e)){if(!Zi(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new xi),s||Um(e)?Im(e,t,r,n,a,o):NT(e,t,l,r,n,a,o);if(!(r&MA)){var p=u&&Ed.call(e,"__wrapped__"),f=d&&Ed.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,y=f?t.value():t;return o||(o=new xi),a(m,y,r,n,o)}}return h?(o||(o=new xi),OA(e,t,r,n,a,o)):!1}var kA=jA;function Lm(e,t,r,n,a){return e===t?!0:e==null||t==null||!fa(e)&&!fa(t)?e!==e&&t!==t:kA(e,t,r,n,Lm,a)}var UA=Lm;function LA(e,t){return UA(e,t)}var DA=LA;/*! *****************************************************************************
|
|
128
128
|
Copyright (c) Microsoft Corporation. All rights reserved.
|