@wandelbots/wandelbots-js-react-components 2.31.0-pr.feature-add-program-state-indicatorr.371.ec2adc4 → 2.31.0-pr.feature-add-program-state-indicatorr.371.39548f7
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/i18n/locales/de/translations.json +1 -1
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 DO(){const e=cm();return B.useCallback(t=>`${e}-gradient-${t}`,[e])}function BO(){const e=cm();return B.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}var mi,rd;function NO(){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,b){return 1-3*b+3*m}function l(m,b){return 3*b-6*m}function c(m){return 3*m}function u(m,b,x){return((i(b,x)*m+l(b,x))*m+c(b))*m}function d(m,b,x){return 3*i(b,x)*m*m+2*l(b,x)*m+c(b)}function h(m,b,x,_,O){var C,P,w=0;do P=b+(x-b)/2,C=u(P,_,O)-m,C>0?x=P:b=P;while(Math.abs(C)>r&&++w<n);return P}function p(m,b,x,_){for(var O=0;O<e;++O){var C=d(b,x,_);if(C===0)return b;var P=u(b,x,_)-m;b-=P/C}return b}function f(m){return m}return mi=function(b,x,_,O){if(!(0<=b&&b<=1&&0<=_&&_<=1))throw new Error("bezier x values must be in [0, 1] range");if(b===x&&_===O)return f;for(var C=s?new Float32Array(a):new Array(a),P=0;P<a;++P)C[P]=u(P*o,b,_);function w(A){for(var E=0,F=1,y=a-1;F!==y&&C[F]<=A;++F)E+=o;--F;var T=(A-C[F])/(C[F+1]-C[F]),z=E+T*o,V=d(z,b,_);return V>=t?p(A,z,b,_):V===0?z:h(A,E,E+o,b,_)}return function(E){return E===0?0:E===1?1:u(w(E),x,O)}},mi}var FO=NO();const zO=ug(FO),GO=300,HO=zO(.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(qO),Or=ha.now()+ws)}function qO(){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,WO(),Or=0}}function JO(){var e=ha.now(),t=e-Do;t>um&&(ws-=t,Do=e)}function WO(){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(JO,um)),gn=1,dm(nd))}}function YO(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 KO{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(),YO(()=>this.timerCallback(this.duration)),Ki(),this}}function QO(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 XO(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 KO(GO,HO,f=>{const m=p(f);o.current=m,r(d,m)})},[r,t,e]);return B.useCallback(d=>{var p,f,m,b;if(d===null){(p=s.current)==null||p.stop();return}const h=i.current;if(h===d){if(QO(l.current,e)){(f=s.current)==null||f.resume();return}(m=s.current)==null||m.stop()}h&&((b=s.current)==null||b.stop()),i.current=d,(s.current||!n)&&c(d)},[c,e,n])}function ZO(e,{createInterpolator:t,transformProps:r,applyProps:n,skip:a,initialProps:o=e,ref:s}){const i=r??(u=>u),l=XO(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 ew=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))/ew),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 b=d(m/h);if(b===void 0)return null;const x=s(b);if(x===void 0)return null;const _=r?1-x/a:x/a,O=i(b);return O===null?null:S.jsx("stop",{offset:_,stopColor:O,stopOpacity:1},p+m)})})}const tw=10,rw=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=tw,l=`${o[0]}-${o[1]}-`;return S.jsx("linearGradient",Y({id:r},rw(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 nw(){const{top:e,height:t,bottom:r,left:n,width:a,right:o}=lm(),s=e+t+r,i=n+a+o,l=DO(),c=BO(),{xAxis:u,xAxisIds:d}=jO(),{yAxis:h,yAxisIds:p}=kO(),{zAxis:f,zAxisIds:m}=UO(),b=p.filter(O=>h[O].colorMap!==void 0),x=d.filter(O=>u[O].colorMap!==void 0),_=m.filter(O=>f[O].colorMap!==void 0);return b.length===0&&x.length===0&&_.length===0?null:S.jsxs("defs",{children:[b.map(O=>{const C=l(O),P=c(O),{colorMap:w,scale:A,colorScale:E,reverse:F}=h[O];return(w==null?void 0:w.type)==="piecewise"?S.jsx(ad,{isReversed:!F,scale:A,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:!F,scale:A,colorScale:E,colorMap:w,size:s,gradientId:C,direction:"y"}),S.jsx(fi,{isReversed:F,colorScale:E,colorMap:w,gradientId:P})]},C):null}),x.map(O=>{const C=l(O),P=c(O),{colorMap:w,scale:A,reverse:E,colorScale:F}=u[O];return(w==null?void 0:w.type)==="piecewise"?S.jsx(ad,{isReversed:E,scale:A,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:E,scale:A,colorScale:F,colorMap:w,size:i,gradientId:C,direction:"x"}),S.jsx(fi,{isReversed:E,colorScale:F,colorMap:w,gradientId:P})]},C):null}),_.map(O=>{const C=c(O),{colorMap:P,colorScale:w}=f[O];return(P==null?void 0:P.type)==="continuous"?S.jsx(fi,{colorScale:w,colorMap:P,gradientId:C},C):null})]})}const aw=["children","className","title","desc"],ow=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,Gb),{width:s,height:i}=at(n,zb),l=LO(),c=Xh(l,r),u=J0({props:t,name:"MuiChartsSurface"}),{children:d,className:h,title:p,desc:f}=u,m=or(u,aw),b=o>0&&a>0;return S.jsxs(ow,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(nw,{}),b&&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 sw(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 iw(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 lw(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(),b=sw(a,o),x=c?Dn(c,f):b.cx*f,_=u?Dn(u,m):b.cy*m;let O=h+x,C=p+_;const P=iw(x,_,f,m,b);if(c===void 0){const y=P*(b.maxX-b.minX);O=h+(f-y)/2+b.cx*y}if(u===void 0){const y=P*(b.maxY-b.minY);C=p+(m-y)/2+b.cy*y}const w=Dn(s??P,P),A=Dn(i??"80%",P),E=Dn(l??0,w-A),F=B.useMemo(()=>{const y=Yi(a),T=Yi(o);return{value:t,valueMin:r,valueMax:n,startAngle:y,endAngle:T,outerRadius:w,innerRadius:A,cornerRadius:E,cx:O,cy:C,maxRadius:P,valueAngle:t===null?null:y+(T-y)*(t-r)/(n-r)}},[t,r,n,a,o,w,A,E,O,C,P]);return S.jsx(sc.Provider,{value:F,children:d})}function ic(){return B.useContext(sc)}const cw=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],uw=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:b,cy:x,children:_}=t,O=or(t,cw);return S.jsx($O,{pluginParams:{width:n,height:a,margin:op(o,{left:10,right:10,top:10,bottom:10})},plugins:[],children:S.jsx(lw,{value:l,valueMin:c,valueMax:u,startAngle:d,endAngle:h,outerRadius:p,innerRadius:f,cornerRadius:m,cx:b,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(uw,{"aria-hidden":"true",children:_})}))})})});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 dw(e){const t=Er(),r=at(t,vb);return e||r}function hw(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 pw(e){return ZO({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius},{createInterpolator:hw,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 mw=["cx","cy","startAngle","endAngle","cornerRadius","innerRadius","outerRadius","skipAnimation"],fw=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=or(e,mw);const u=dw(l),d=pw({startAngle:n,endAngle:a,cornerRadius:o,innerRadius:s,outerRadius:i,skipAnimation:u});return S.jsx(fw,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 gw=dt("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:e})=>({fill:(e.vars||e).palette.divider}));function yw(e){const{startAngle:t,endAngle:r,outerRadius:n,innerRadius:a,cornerRadius:o,cx:s,cy:i}=ic();return S.jsx(gw,Y({transform:`translate(${s}, ${i})`,d:em().cornerRadius(o)({startAngle:t,endAngle:r,innerRadius:a,outerRadius:n})},e))}const sd=e=>e,bw=()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}},vw=bw(),Sw={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=Sw[t];return n?`${r}-${n}`:`${vw.generate(e)}-${t}`}function xw(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=fm(e,a,r)}),n}function Ow(e){return fm("MuiGauge",e)}xw("MuiGauge",["root","valueArc","referenceArc","valueText"]);function ww(){return typeof window>"u"}const Ka=new Map,Cw=2e3,Pw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Tw=["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 Tw.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 Aw=e=>Object.keys(e).sort().reduce((t,r)=>`${t}${ym(r)}:${gm(r,e[r])};`,"");let yi;const Rw=(e,t={})=>{if(e==null||ww())return{width:0,height:0};const r=`${e}`,n=Aw(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({},Pw,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>Cw&&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 _w({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 Ew=["x","y","style","text","ownerState"],Iw=["angle","textAnchor","dominantBaseline"];function bm(e){const{x:t,y:r,style:n,text:a}=e,o=or(e,Ew),s=n??{},{angle:i,textAnchor:l,dominantBaseline:c}=s,u=or(s,Iw),d=Vw(),h=B.useMemo(()=>_w({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 Mw=["text","className"];function $w({value:e}){return e===null?null:e.toLocaleString()}function vm(e){const{text:t=$w,className:r}=e,n=or(e,Mw),{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 jw=["text","children","classes","className","skipAnimation"],kw=e=>{const{classes:t}=e;return vg({root:["root"],valueArc:["valueArc"],referenceArc:["referenceArc"],valueText:["valueText"]},Ow,t)},No=B.forwardRef(function(t,r){const{text:n,children:a,className:o,skipAnimation:s}=t,i=or(t,jw),l=kw(t);return S.jsxs(lc,Y({},i,{className:Et(l.root,o),ref:r,children:[S.jsx(yw,{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 Uw={"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.","CycleTimer.Time.lb":"{{time}} min.","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Bereit","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2"},Lw={"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","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2"},cc=og.createInstance();cc.use(sg).init({supportedLngs:["en","de"],resources:{en:{translations:Lw},de:{translations:Uw}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Jt(e){return r=>S.jsx(Dw,{children:S.jsx(e,{...r})})}const Dw=({children:e})=>S.jsx(Ee.I18nextProvider,{i18n:cc,children:e});class uc{constructor(t=[],r={}){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:()=>{},...r},this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(t=1/60){let r=!1,n=!0;this.updateCount++;const a=Math.min(t,1/15),o=this.updateCount===1?.7:1;for(let s=0;s<this.currentValues.length;s++){const i=this.currentValues[s],l=this.targetValues[s],c=this.velocities[s],u=l-i,d=u*this.options.tension*o,h=c*this.options.friction,p=d-h,f=c+p*a,m=i+f*a;Math.abs(u)<this.options.threshold&&Math.abs(f)<this.options.threshold*10?this.currentValues[s]!==l&&(this.currentValues[s]=l,this.velocities[s]=0,r=!0):(n=!1,this.currentValues[s]=m,this.velocities[s]=f,r=!0)}return r&&this.options.onChange(this.currentValues),n&&this.options.onComplete(this.currentValues),n}setTarget(t){const r=performance.now(),n=r-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...t],this.targetUpdateTime=r,this.updateCount=0;const a=this.previousTargetValues.every((o,s)=>o===this.currentValues[s]);if(n<8&&n>0&&this.previousTargetValues.length>0&&!a){const o=Math.min(n/8,1);for(let s=0;s<this.targetValues.length;s++){const i=this.previousTargetValues[s]||0,l=t[s]||0;Math.abs(l-i)>.1&&(this.targetValues[s]=i+(l-i)*o)}}for(;this.currentValues.length<t.length;)this.currentValues.push(t[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>t.length&&(this.currentValues=this.currentValues.slice(0,t.length),this.velocities=this.velocities.slice(0,t.length))}getCurrentValues(){return[...this.currentValues]}getValue(t){return this.currentValues[t]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(t){this.stop(),this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(t){this.options={...this.options,...t}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}}function Sm(e=[],t={}){const r=ee.useRef(null);return r.current||(r.current=new uc(e,t)),ee.useEffect(()=>{var n;(n=r.current)==null||n.updateOptions(t)},[t]),ee.useEffect(()=>()=>{var n;(n=r.current)==null||n.destroy()},[]),[r.current]}const Bw=Jt(Me.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:o})=>{var z,V;const s=J.useTheme(),{t:i}=Ee.useTranslation(),[l,c]=ee.useState(0),[u,d]=ee.useState(0),[h,p]=ee.useState(!1),[f,m]=ee.useState(!1),[b,x]=ee.useState(0),_=ee.useRef(null),O=ee.useRef(null),C=ee.useRef(0),[P]=Sm([0],{tension:80,friction:18,onChange:([N])=>{x(N)}}),w=ee.useCallback((N,te=0)=>{d(N);const Z=Math.max(0,N-te);c(Z),m(!1),C.current=0;const ae=te>0?te/N*100:0;te===0?P.setTarget([0]):P.setTarget([ae]),Z===0?(p(!1),O.current=null,t&&setTimeout(()=>t(),0)):r?(O.current=Date.now()-te*1e3,p(!0)):O.current=null},[r,t,P]),A=ee.useCallback(()=>{if(O.current&&h){const te=Date.now()-O.current;C.current+=te;const Z=C.current/1e3,ae=Math.min(100,Z/u*100);P.setTarget([ae])}p(!1),m(!0)},[h,u,P]),E=ee.useCallback(()=>{f&&l>0&&(O.current=Date.now(),p(!0),m(!1))},[f,l]),F=ee.useCallback(()=>f,[f]);ee.useEffect(()=>{let N=!0;const te=setTimeout(()=>{N&&e({startNewCycle:w,pause:A,resume:E,isPaused:F})},0);return()=>{N=!1,clearTimeout(te)}},[e,w,A,E,F]),ee.useEffect(()=>{if(h){const N=()=>{if(O.current&&u>0){const Z=(Date.now()-O.current+C.current)/1e3,ae=Math.max(0,u-Z);c(Math.ceil(ae));const re=Math.min(100,Z/u*100);if(P.setTarget([re]),ae<=0){p(!1),O.current=null,c(0),P.setTarget([100]),t&&setTimeout(()=>t(),0);return}h&&(_.current=requestAnimationFrame(N))}};_.current=requestAnimationFrame(N)}else _.current&&(cancelAnimationFrame(_.current),_.current=null);return()=>{_.current&&cancelAnimationFrame(_.current)}},[h,t,u,P]),ee.useEffect(()=>{let N=null;const te=()=>{P.update(1/60),N=requestAnimationFrame(te)};return N=requestAnimationFrame(te),()=>{N&&cancelAnimationFrame(N)}},[P]),ee.useEffect(()=>{if(!h&&!f&&u>0){const N=(u-l)/u*100;P.setTarget([N])}},[h,f,u,l,P]);const y=N=>{const te=Math.floor(N/60),Z=N%60;return`${te}:${Z.toString().padStart(2,"0")}`},T=b;return n==="small"?S.jsxs(J.Box,{className:o,sx:{display:"flex",alignItems:"center",gap:.125},children:[S.jsxs(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:T,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",skipAnimation:!0,sx:{opacity:f?.6:1,transition:"opacity 0.2s ease","& .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"},"& .MuiGauge-referenceArcBackground":{display:"none"},"& .MuiGauge-valueArcBackground":{display:"none"},"& circle":{display:"none"}}}),S.jsx(J.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:13,height:13,borderRadius:"50%",backgroundColor:((z=s.palette.background)==null?void 0:z.paper)||"white",pointerEvents:"none"}})]}),S.jsx(J.Typography,{variant:"body2",sx:{color:s.palette.text.primary,fontSize:"14px"},children:a?y(l):`${y(l)} / ${i("CycleTimer.Time.lb",{time:y(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:T,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",skipAnimation:!0,sx:{opacity:f?.6:1,transition:"opacity 0.2s ease","& .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:(V=s.palette.backgroundPaperElevation)==null?void 0:V[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:y(l)}),S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary},children:i("CycleTimer.OfTime.lb",{time:y(u)})})]})]})}));process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function dc(e){return t0(e)}const on=m0({createStyledComponent:dt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dc({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 Nw=({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"}))),Fw=ee.forwardRef(Nw),zw=({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"})))),Gw=ee.forwardRef(zw);function Cs(e){ee.useEffect(e,[])}function xm(e){Cs(()=>Be.autorun(e))}function Om(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=Jt(Me.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:o,activeJoggingDirection:s,...i})=>{var O,C,P,w,A,E,F;xn(()=>{const y=r(),T=h.current;T&&(T.textContent=y)});const l=J.useTheme(),[c,u]=ee.useState(null);ee.useEffect(()=>{o&&_()},[o]);const d=s||c,h=ee.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:(P=e.buttonBackgroundColor)==null?void 0:P.hovered},":active":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(A=e.buttonBackgroundColor)==null?void 0:A.disabled,"svg path":{fill:l.palette.action.disabled}}},b={...f,backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(F=e.buttonBackgroundColor)==null?void 0:F.pressed,"svg path":{fill:l.palette.action.disabled}}};function x(y,T){o||y.button===0&&(u(T),n(T))}function _(){u(null),a()}return S.jsxs(on,{height:"64px",direction:"row",justifyContent:"center",...i,children:[S.jsx(J.IconButton,{disabled:o,disableRipple:!0,onPointerDown:y=>x(y,"-"),onPointerUp:_,onPointerOut:_,size:"large",sx:{...d==="-"?b:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Fw,{})}),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:y=>x(y,"+"),onPointerUp:_,onPointerOut:_,size:"large",sx:{...d==="+"?b:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Gw,{})})]})})),Ir=r0;function Hw(e){return xa("MuiSvgIcon",e)}kh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qw=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ze(t)}`,`fontSize${Ze(r)}`]};return wl(a,Hw,n)},Jw=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 b,x;return{props:{color:m},style:{color:(x=(b=(e.vars??e).palette)==null?void 0:b[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=dc({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},b={};u||(b.viewBox=h);const x=qw(m);return S.jsxs(Jw,{as:i,className:Et(x.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...b,...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 Ww(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","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Leerlauf","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2"},Lw={"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","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2"},cc=og.createInstance();cc.use(sg).init({supportedLngs:["en","de"],resources:{en:{translations:Lw},de:{translations:Uw}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Jt(e){return r=>S.jsx(Dw,{children:S.jsx(e,{...r})})}const Dw=({children:e})=>S.jsx(Ee.I18nextProvider,{i18n:cc,children:e});class uc{constructor(t=[],r={}){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:()=>{},...r},this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(t=1/60){let r=!1,n=!0;this.updateCount++;const a=Math.min(t,1/15),o=this.updateCount===1?.7:1;for(let s=0;s<this.currentValues.length;s++){const i=this.currentValues[s],l=this.targetValues[s],c=this.velocities[s],u=l-i,d=u*this.options.tension*o,h=c*this.options.friction,p=d-h,f=c+p*a,m=i+f*a;Math.abs(u)<this.options.threshold&&Math.abs(f)<this.options.threshold*10?this.currentValues[s]!==l&&(this.currentValues[s]=l,this.velocities[s]=0,r=!0):(n=!1,this.currentValues[s]=m,this.velocities[s]=f,r=!0)}return r&&this.options.onChange(this.currentValues),n&&this.options.onComplete(this.currentValues),n}setTarget(t){const r=performance.now(),n=r-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...t],this.targetUpdateTime=r,this.updateCount=0;const a=this.previousTargetValues.every((o,s)=>o===this.currentValues[s]);if(n<8&&n>0&&this.previousTargetValues.length>0&&!a){const o=Math.min(n/8,1);for(let s=0;s<this.targetValues.length;s++){const i=this.previousTargetValues[s]||0,l=t[s]||0;Math.abs(l-i)>.1&&(this.targetValues[s]=i+(l-i)*o)}}for(;this.currentValues.length<t.length;)this.currentValues.push(t[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>t.length&&(this.currentValues=this.currentValues.slice(0,t.length),this.velocities=this.velocities.slice(0,t.length))}getCurrentValues(){return[...this.currentValues]}getValue(t){return this.currentValues[t]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(t){this.stop(),this.currentValues=[...t],this.targetValues=[...t],this.previousTargetValues=[...t],this.velocities=new Array(t.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(t){this.options={...this.options,...t}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}}function Sm(e=[],t={}){const r=ee.useRef(null);return r.current||(r.current=new uc(e,t)),ee.useEffect(()=>{var n;(n=r.current)==null||n.updateOptions(t)},[t]),ee.useEffect(()=>()=>{var n;(n=r.current)==null||n.destroy()},[]),[r.current]}const Bw=Jt(Me.observer(({onCycleComplete:e,onCycleEnd:t,autoStart:r=!0,variant:n="default",compact:a=!1,className:o})=>{var z,V;const s=J.useTheme(),{t:i}=Ee.useTranslation(),[l,c]=ee.useState(0),[u,d]=ee.useState(0),[h,p]=ee.useState(!1),[f,m]=ee.useState(!1),[b,x]=ee.useState(0),_=ee.useRef(null),O=ee.useRef(null),C=ee.useRef(0),[P]=Sm([0],{tension:80,friction:18,onChange:([N])=>{x(N)}}),w=ee.useCallback((N,te=0)=>{d(N);const Z=Math.max(0,N-te);c(Z),m(!1),C.current=0;const ae=te>0?te/N*100:0;te===0?P.setTarget([0]):P.setTarget([ae]),Z===0?(p(!1),O.current=null,t&&setTimeout(()=>t(),0)):r?(O.current=Date.now()-te*1e3,p(!0)):O.current=null},[r,t,P]),A=ee.useCallback(()=>{if(O.current&&h){const te=Date.now()-O.current;C.current+=te;const Z=C.current/1e3,ae=Math.min(100,Z/u*100);P.setTarget([ae])}p(!1),m(!0)},[h,u,P]),E=ee.useCallback(()=>{f&&l>0&&(O.current=Date.now(),p(!0),m(!1))},[f,l]),F=ee.useCallback(()=>f,[f]);ee.useEffect(()=>{let N=!0;const te=setTimeout(()=>{N&&e({startNewCycle:w,pause:A,resume:E,isPaused:F})},0);return()=>{N=!1,clearTimeout(te)}},[e,w,A,E,F]),ee.useEffect(()=>{if(h){const N=()=>{if(O.current&&u>0){const Z=(Date.now()-O.current+C.current)/1e3,ae=Math.max(0,u-Z);c(Math.ceil(ae));const re=Math.min(100,Z/u*100);if(P.setTarget([re]),ae<=0){p(!1),O.current=null,c(0),P.setTarget([100]),t&&setTimeout(()=>t(),0);return}h&&(_.current=requestAnimationFrame(N))}};_.current=requestAnimationFrame(N)}else _.current&&(cancelAnimationFrame(_.current),_.current=null);return()=>{_.current&&cancelAnimationFrame(_.current)}},[h,t,u,P]),ee.useEffect(()=>{let N=null;const te=()=>{P.update(1/60),N=requestAnimationFrame(te)};return N=requestAnimationFrame(te),()=>{N&&cancelAnimationFrame(N)}},[P]),ee.useEffect(()=>{if(!h&&!f&&u>0){const N=(u-l)/u*100;P.setTarget([N])}},[h,f,u,l,P]);const y=N=>{const te=Math.floor(N/60),Z=N%60;return`${te}:${Z.toString().padStart(2,"0")}`},T=b;return n==="small"?S.jsxs(J.Box,{className:o,sx:{display:"flex",alignItems:"center",gap:.125},children:[S.jsxs(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:T,valueMin:0,valueMax:100,innerRadius:"70%",outerRadius:"95%",skipAnimation:!0,sx:{opacity:f?.6:1,transition:"opacity 0.2s ease","& .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"},"& .MuiGauge-referenceArcBackground":{display:"none"},"& .MuiGauge-valueArcBackground":{display:"none"},"& circle":{display:"none"}}}),S.jsx(J.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:13,height:13,borderRadius:"50%",backgroundColor:((z=s.palette.background)==null?void 0:z.paper)||"white",pointerEvents:"none"}})]}),S.jsx(J.Typography,{variant:"body2",sx:{color:s.palette.text.primary,fontSize:"14px"},children:a?y(l):`${y(l)} / ${i("CycleTimer.Time.lb",{time:y(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:T,valueMin:0,valueMax:100,innerRadius:"71%",outerRadius:"90%",skipAnimation:!0,sx:{opacity:f?.6:1,transition:"opacity 0.2s ease","& .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:(V=s.palette.backgroundPaperElevation)==null?void 0:V[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:y(l)}),S.jsx(J.Typography,{variant:"body2",sx:{fontSize:"12px",color:s.palette.text.secondary},children:i("CycleTimer.OfTime.lb",{time:y(u)})})]})]})}));process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function dc(e){return t0(e)}const on=m0({createStyledComponent:dt("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dc({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 Nw=({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"}))),Fw=ee.forwardRef(Nw),zw=({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"})))),Gw=ee.forwardRef(zw);function Cs(e){ee.useEffect(e,[])}function xm(e){Cs(()=>Be.autorun(e))}function Om(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=Jt(Me.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:o,activeJoggingDirection:s,...i})=>{var O,C,P,w,A,E,F;xn(()=>{const y=r(),T=h.current;T&&(T.textContent=y)});const l=J.useTheme(),[c,u]=ee.useState(null);ee.useEffect(()=>{o&&_()},[o]);const d=s||c,h=ee.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:(P=e.buttonBackgroundColor)==null?void 0:P.hovered},":active":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(A=e.buttonBackgroundColor)==null?void 0:A.disabled,"svg path":{fill:l.palette.action.disabled}}},b={...f,backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(F=e.buttonBackgroundColor)==null?void 0:F.pressed,"svg path":{fill:l.palette.action.disabled}}};function x(y,T){o||y.button===0&&(u(T),n(T))}function _(){u(null),a()}return S.jsxs(on,{height:"64px",direction:"row",justifyContent:"center",...i,children:[S.jsx(J.IconButton,{disabled:o,disableRipple:!0,onPointerDown:y=>x(y,"-"),onPointerUp:_,onPointerOut:_,size:"large",sx:{...d==="-"?b:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Fw,{})}),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:y=>x(y,"+"),onPointerUp:_,onPointerOut:_,size:"large",sx:{...d==="+"?b:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${p??"#fff"}`,borderBottom:`2px solid ${p??"#fff"}`,borderTop:`2px solid ${p??"#fff"}`},children:S.jsx(Gw,{})})]})})),Ir=r0;function Hw(e){return xa("MuiSvgIcon",e)}kh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qw=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ze(t)}`,`fontSize${Ze(r)}`]};return wl(a,Hw,n)},Jw=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 b,x;return{props:{color:m},style:{color:(x=(b=(e.vars??e).palette)==null?void 0:b[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=dc({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},b={};u||(b.viewBox=h);const x=qw(m);return S.jsxs(Jw,{as:i,className:Et(x.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...b,...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 Ww(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 wm(...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 Yw=Ps(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Kw=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 Cm=typeof global=="object"&&global&&global.Object===Object&&global,Qw=typeof self=="object"&&self&&self.Object===Object&&self,$t=Cm||Qw||Function("return this")(),vi=function(){return $t.Date.now()},Xw=/\s/;function Zw(e){for(var t=e.length;t--&&Xw.test(e.charAt(t)););return t}var eC=/^\s+/;function tC(e){return e&&e.slice(0,Zw(e)+1).replace(eC,"")}var lr=$t.Symbol,Pm=Object.prototype,rC=Pm.hasOwnProperty,nC=Pm.toString,Bn=lr?lr.toStringTag:void 0;function aC(e){var t=rC.call(e,Bn),r=e[Bn];try{e[Bn]=void 0;var n=!0}catch{}var a=nC.call(e);return n&&(t?e[Bn]=r:delete e[Bn]),a}var oC=Object.prototype,sC=oC.toString;function iC(e){return sC.call(e)}var lC="[object Null]",cC="[object Undefined]",ld=lr?lr.toStringTag:void 0;function Mr(e){return e==null?e===void 0?cC:lC:ld&&ld in Object(e)?aC(e):iC(e)}function Cr(e){return e!=null&&typeof e=="object"}var uC="[object Symbol]";function Ts(e){return typeof e=="symbol"||Cr(e)&&Mr(e)==uC}var cd=NaN,dC=/^[-+]0x[0-9a-f]+$/i,hC=/^0b[01]+$/i,pC=/^0o[0-7]+$/i,mC=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=tC(e);var r=hC.test(e);return r||pC.test(e)?mC(e.slice(2),r?2:8):dC.test(e)?cd:+e}var fC="Expected a function",gC=Math.max,yC=Math.min;function bC(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(fC);t=ud(t)||0,wr(r)&&(u=!!r.leading,d="maxWait"in r,o=d?gC(ud(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function p(w){var A=n,E=a;return n=a=void 0,c=w,s=e.apply(E,A),s}function f(w){return c=w,i=setTimeout(x,t),u?p(w):s}function m(w){var A=w-l,E=w-c,F=t-A;return d?yC(F,o-E):F}function b(w){var A=w-l,E=w-c;return l===void 0||A>=t||A<0||d&&E>=o}function x(){var w=vi();if(b(w))return _(w);i=setTimeout(x,m(w))}function _(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:_(vi())}function P(){var w=vi(),A=b(w);if(n=arguments,a=this,l=w,A){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 P.cancel=O,P.flush=C,P}var vC="Expected a function";function SC(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(vC);return wr(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),bC(e,t,{leading:n,maxWait:t,trailing:a})}const Tm=Jt(Me.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:o,...s})=>{var O,C,P,w,A,E,F,y,T,z,V,N,te,Z,ae;const{t:i}=Ee.useTranslation(),[l,c]=ee.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=Me.useLocalObservable(()=>({activeJoggingDir:null,startJogging(re){this.activeJoggingDir=re,e(re)},stopJogging(){this.activeJoggingDir=null,t()}})),p=SC(()=>{c(a())},50);xn(p);function f(re){re.button===0&&h.startJogging("-")}function m(re){re.button===0&&h.startJogging("+")}function b(re){h.stopJogging()}function x(re){h.stopJogging()}function _(re,le=1){if(re===void 0||isNaN(re))return"";const q=i("General.degree.variable",{amount:re.toFixed(le)});return re>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:(P=u.palette.backgroundPaperElevation)==null?void 0:P[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:(A=u.palette.backgroundPaperElevation)==null?void 0:A[9]},"&:active":{...d}}},children:[S.jsx(J.IconButton,{onPointerDown:f,onPointerUp:b,onPointerOut:x,disabled:o,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...h.activeJoggingDir==="-"?d:{}},children:S.jsx(Yw,{sx:{pointerEvents:"none",color:(T=(y=(F=(E=u.componentsExt)==null?void 0:E.JoggingPanel)==null?void 0:F.JoggingJoint)==null?void 0:y.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:(z=u.palette.backgroundPaperElevation)==null?void 0:z[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:_(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:(V=u.palette.backgroundPaperElevation)==null?void 0:V[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:_(r,0)},{value:n,label:_(n,0)}]})]}),S.jsx(J.IconButton,{onPointerDown:m,onPointerUp:b,onPointerOut:x,disabled:o,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...h.activeJoggingDir==="+"?d:{}},children:S.jsx(Kw,{sx:{pointerEvents:"none",color:(ae=(Z=(te=(N=u.componentsExt)==null?void 0:N.JoggingPanel)==null?void 0:te.JoggingJoint)==null?void 0:Z.Joint)==null?void 0:ae.arrowColor}})})]})})),xC=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"),OC=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 wC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Am=wC;function CC(){this.__data__=[],this.size=0}var PC=CC;function TC(e,t){return e===t||e!==e&&t!==t}var Rm=TC;function AC(e,t){for(var r=e.length;r--;)if(Rm(e[r][0],t))return r;return-1}var As=AC,RC=Array.prototype,_C=RC.splice;function VC(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_C.call(t,r,1),--this.size,!0}var EC=VC;function IC(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}var MC=IC;function $C(e){return As(this.__data__,e)>-1}var jC=$C;function kC(e,t){var r=this.__data__,n=As(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var UC=kC;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=PC;On.prototype.delete=EC;On.prototype.get=MC;On.prototype.has=jC;On.prototype.set=UC;var Rs=On;function LC(){this.__data__=new Rs,this.size=0}var DC=LC;function BC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var NC=BC;function FC(e){return this.__data__.get(e)}var zC=FC;function GC(e){return this.__data__.has(e)}var HC=GC,qC=typeof global=="object"&&global&&global.Object===Object&&global,_m=qC,JC=typeof self=="object"&&self&&self.Object===Object&&self,WC=_m||JC||Function("return this")(),Wt=WC,YC=Wt.Symbol,yn=YC,Vm=Object.prototype,KC=Vm.hasOwnProperty,QC=Vm.toString,Nn=yn?yn.toStringTag:void 0;function XC(e){var t=KC.call(e,Nn),r=e[Nn];try{e[Nn]=void 0;var n=!0}catch{}var a=QC.call(e);return n&&(t?e[Nn]=r:delete e[Nn]),a}var ZC=XC,eP=Object.prototype,tP=eP.toString;function rP(e){return tP.call(e)}var nP=rP,aP="[object Null]",oP="[object Undefined]",dd=yn?yn.toStringTag:void 0;function sP(e){return e==null?e===void 0?oP:aP:dd&&dd in Object(e)?ZC(e):nP(e)}var Ra=sP,iP="[object AsyncFunction]",lP="[object Function]",cP="[object GeneratorFunction]",uP="[object Proxy]";function dP(e){if(!Am(e))return!1;var t=Ra(e);return t==lP||t==cP||t==iP||t==uP}var Em=dP,hP=Wt["__core-js_shared__"],Si=hP,hd=function(){var e=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pP(e){return!!hd&&hd in e}var mP=pP,fP=Function.prototype,gP=fP.toString;function yP(e){if(e!=null){try{return gP.call(e)}catch{}try{return e+""}catch{}}return""}var $r=yP,bP=/[\\^$.*+?()[\]{}|]/g,vP=/^\[object .+?Constructor\]$/,SP=Function.prototype,xP=Object.prototype,OP=SP.toString,wP=xP.hasOwnProperty,CP=RegExp("^"+OP.call(wP).replace(bP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PP(e){if(!Am(e)||mP(e))return!1;var t=Em(e)?CP:vP;return t.test($r(e))}var TP=PP;function AP(e,t){return e==null?void 0:e[t]}var RP=AP;function _P(e,t){var r=RP(e,t);return TP(r)?r:void 0}var wn=_P,VP=wn(Wt,"Map"),pa=VP,EP=wn(Object,"create"),ma=EP;function IP(){this.__data__=ma?ma(null):{},this.size=0}var MP=IP;function $P(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jP=$P,kP="__lodash_hash_undefined__",UP=Object.prototype,LP=UP.hasOwnProperty;function DP(e){var t=this.__data__;if(ma){var r=t[e];return r===kP?void 0:r}return LP.call(t,e)?t[e]:void 0}var BP=DP,NP=Object.prototype,FP=NP.hasOwnProperty;function zP(e){var t=this.__data__;return ma?t[e]!==void 0:FP.call(t,e)}var GP=zP,HP="__lodash_hash_undefined__";function qP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ma&&t===void 0?HP:t,this}var JP=qP;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=MP;Cn.prototype.delete=jP;Cn.prototype.get=BP;Cn.prototype.has=GP;Cn.prototype.set=JP;var pd=Cn;function WP(){this.size=0,this.__data__={hash:new pd,map:new(pa||Rs),string:new pd}}var YP=WP;function KP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var QP=KP;function XP(e,t){var r=e.__data__;return QP(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _s=XP;function ZP(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}var eT=ZP;function tT(e){return _s(this,e).get(e)}var rT=tT;function nT(e){return _s(this,e).has(e)}var aT=nT;function oT(e,t){var r=_s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var sT=oT;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=YP;Pn.prototype.delete=eT;Pn.prototype.get=rT;Pn.prototype.has=aT;Pn.prototype.set=sT;var Im=Pn,iT=200;function lT(e,t){var r=this.__data__;if(r instanceof Rs){var n=r.__data__;if(!pa||n.length<iT-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Im(n)}return r.set(e,t),this.size=r.size,this}var cT=lT;function Tn(e){var t=this.__data__=new Rs(e);this.size=t.size}Tn.prototype.clear=DC;Tn.prototype.delete=NC;Tn.prototype.get=zC;Tn.prototype.has=HC;Tn.prototype.set=cT;var xi=Tn,uT="__lodash_hash_undefined__";function dT(e){return this.__data__.set(e,uT),this}var hT=dT;function pT(e){return this.__data__.has(e)}var mT=pT;function zo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Im;++t<r;)this.add(e[t])}zo.prototype.add=zo.prototype.push=hT;zo.prototype.has=mT;var fT=zo;function gT(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 yT=gT;function bT(e,t){return e.has(t)}var vT=bT,ST=1,xT=2;function OT(e,t,r,n,a,o){var s=r&ST,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&xT?new fT:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var f=e[d],m=t[d];if(n)var b=s?n(m,f,d,t,e,o):n(f,m,d,e,t,o);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!yT(t,function(x,_){if(!vT(p,_)&&(f===x||a(f,x,r,n,o)))return p.push(_)})){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 Mm=OT,wT=Wt.Uint8Array,md=wT;function CT(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var PT=CT;function TT(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var AT=TT,RT=1,_T=2,VT="[object Boolean]",ET="[object Date]",IT="[object Error]",MT="[object Map]",$T="[object Number]",jT="[object RegExp]",kT="[object Set]",UT="[object String]",LT="[object Symbol]",DT="[object ArrayBuffer]",BT="[object DataView]",fd=yn?yn.prototype:void 0,Oi=fd?fd.valueOf:void 0;function NT(e,t,r,n,a,o,s){switch(r){case BT:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case DT:return!(e.byteLength!=t.byteLength||!o(new md(e),new md(t)));case VT:case ET:case $T:return Rm(+e,+t);case IT:return e.name==t.name&&e.message==t.message;case jT:case UT:return e==t+"";case MT:var i=PT;case kT:var l=n&RT;if(i||(i=AT),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=_T,s.set(e,t);var u=Mm(i(e),i(t),n,a,o,s);return s.delete(e),u;case LT:if(Oi)return Oi.call(e)==Oi.call(t)}return!1}var FT=NT;function zT(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var GT=zT,HT=Array.isArray,Go=HT;function qT(e,t,r){var n=t(e);return Go(e)?n:GT(n,r(e))}var JT=qT;function WT(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 YT=WT;function KT(){return[]}var QT=KT,XT=Object.prototype,ZT=XT.propertyIsEnumerable,gd=Object.getOwnPropertySymbols,eA=gd?function(e){return e==null?[]:(e=Object(e),YT(gd(e),function(t){return ZT.call(e,t)}))}:QT,tA=eA;function rA(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var nA=rA;function aA(e){return e!=null&&typeof e=="object"}var fa=aA,oA="[object Arguments]";function sA(e){return fa(e)&&Ra(e)==oA}var yd=sA,$m=Object.prototype,iA=$m.hasOwnProperty,lA=$m.propertyIsEnumerable,cA=yd(function(){return arguments}())?yd:function(e){return fa(e)&&iA.call(e,"callee")&&!lA.call(e,"callee")},uA=cA;function dA(){return!1}var hA=dA,jm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bd=jm&&typeof module=="object"&&module&&!module.nodeType&&module,pA=bd&&bd.exports===jm,vd=pA?Wt.Buffer:void 0,mA=vd?vd.isBuffer:void 0,fA=mA||hA,Zi=fA,gA=9007199254740991,yA=/^(?:0|[1-9]\d*)$/;function bA(e,t){var r=typeof e;return t=t??gA,!!t&&(r=="number"||r!="symbol"&&yA.test(e))&&e>-1&&e%1==0&&e<t}var vA=bA,SA=9007199254740991;function xA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SA}var km=xA,OA="[object Arguments]",wA="[object Array]",CA="[object Boolean]",PA="[object Date]",TA="[object Error]",AA="[object Function]",RA="[object Map]",_A="[object Number]",VA="[object Object]",EA="[object RegExp]",IA="[object Set]",MA="[object String]",$A="[object WeakMap]",jA="[object ArrayBuffer]",kA="[object DataView]",UA="[object Float32Array]",LA="[object Float64Array]",DA="[object Int8Array]",BA="[object Int16Array]",NA="[object Int32Array]",FA="[object Uint8Array]",zA="[object Uint8ClampedArray]",GA="[object Uint16Array]",HA="[object Uint32Array]",Te={};Te[UA]=Te[LA]=Te[DA]=Te[BA]=Te[NA]=Te[FA]=Te[zA]=Te[GA]=Te[HA]=!0;Te[OA]=Te[wA]=Te[jA]=Te[CA]=Te[kA]=Te[PA]=Te[TA]=Te[AA]=Te[RA]=Te[_A]=Te[VA]=Te[EA]=Te[IA]=Te[MA]=Te[$A]=!1;function qA(e){return fa(e)&&km(e.length)&&!!Te[Ra(e)]}var JA=qA;function WA(e){return function(t){return e(t)}}var YA=WA,Um=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ta=Um&&typeof module=="object"&&module&&!module.nodeType&&module,KA=ta&&ta.exports===Um,wi=KA&&_m.process,QA=function(){try{var e=ta&&ta.require&&ta.require("util").types;return e||wi&&wi.binding&&wi.binding("util")}catch{}}(),Sd=QA,xd=Sd&&Sd.isTypedArray,XA=xd?YA(xd):JA,Lm=XA,ZA=Object.prototype,eR=ZA.hasOwnProperty;function tR(e,t){var r=Go(e),n=!r&&uA(e),a=!r&&!n&&Zi(e),o=!r&&!n&&!a&&Lm(e),s=r||n||a||o,i=s?nA(e.length,String):[],l=i.length;for(var c in e)(t||eR.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||vA(c,l)))&&i.push(c);return i}var rR=tR,nR=Object.prototype;function aR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nR;return e===r}var oR=aR;function sR(e,t){return function(r){return e(t(r))}}var iR=sR,lR=iR(Object.keys,Object),cR=lR,uR=Object.prototype,dR=uR.hasOwnProperty;function hR(e){if(!oR(e))return cR(e);var t=[];for(var r in Object(e))dR.call(e,r)&&r!="constructor"&&t.push(r);return t}var pR=hR;function mR(e){return e!=null&&km(e.length)&&!Em(e)}var fR=mR;function gR(e){return fR(e)?rR(e):pR(e)}var yR=gR;function bR(e){return JT(e,yR,tA)}var Od=bR,vR=1,SR=Object.prototype,xR=SR.hasOwnProperty;function OR(e,t,r,n,a,o){var s=r&vR,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:xR.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 b=s;++d<l;){h=i[d];var x=e[h],_=t[h];if(n)var O=s?n(_,x,h,t,e,o):n(x,_,h,e,t,o);if(!(O===void 0?x===_||a(x,_,r,n,o):O)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var C=e.constructor,P=t.constructor;C!=P&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof P=="function"&&P instanceof P)&&(m=!1)}return o.delete(e),o.delete(t),m}var wR=OR,CR=wn(Wt,"DataView"),el=CR,PR=wn(Wt,"Promise"),tl=PR,TR=wn(Wt,"Set"),rl=TR,AR=wn(Wt,"WeakMap"),nl=AR,wd="[object Map]",RR="[object Object]",Cd="[object Promise]",Pd="[object Set]",Td="[object WeakMap]",Ad="[object DataView]",_R=$r(el),VR=$r(pa),ER=$r(tl),IR=$r(rl),MR=$r(nl),mr=Ra;(el&&mr(new el(new ArrayBuffer(1)))!=Ad||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=Ra(e),r=t==RR?e.constructor:void 0,n=r?$r(r):"";if(n)switch(n){case _R:return Ad;case VR:return wd;case ER:return Cd;case IR:return Pd;case MR:return Td}return t});var Rd=mr,$R=1,_d="[object Arguments]",Vd="[object Array]",Qa="[object Object]",jR=Object.prototype,Ed=jR.hasOwnProperty;function kR(e,t,r,n,a,o){var s=Go(e),i=Go(t),l=s?Vd:Rd(e),c=i?Vd:Rd(t);l=l==_d?Qa:l,c=c==_d?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||Lm(e)?Mm(e,t,r,n,a,o):FT(e,t,l,r,n,a,o);if(!(r&$R)){var p=u&&Ed.call(e,"__wrapped__"),f=d&&Ed.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,b=f?t.value():t;return o||(o=new xi),a(m,b,r,n,o)}}return h?(o||(o=new xi),wR(e,t,r,n,a,o)):!1}var UR=kR;function Dm(e,t,r,n,a){return e===t?!0:e==null||t==null||!fa(e)&&!fa(t)?e!==e&&t!==t:UR(e,t,r,n,Dm,a)}var LR=Dm;function DR(e,t){return LR(e,t)}var BR=DR;/*! *****************************************************************************
|
|
128
128
|
Copyright (c) Microsoft Corporation. All rights reserved.
|