From da3e2a6ea93e26489a74a6ad6c1e065f3f4b3065 Mon Sep 17 00:00:00 2001
From: "Jakub A. W" This failover mapping is defined in configuration and is read-only here. No failover suggestions were generated. No failover drafts match the filter. Generated drafts No rules. No models registered. No models in this category. No models match your filter. No guardrails configured for this workflow. No guardrail steps configured yet. Guardrails in the same numeric step run together. Later steps wait for earlier ones to finish. Loading workflows... No active workflows found. No workflows match your filter. Active workflows are matched path-first: deepest user path wins first, then provider name and model specificity, then broader matches, then global.Tokens
Share of input tokens over the selected period
Activity
Provider Latency
`),sQ=R(`Requests by Status
`),fQ=R(` `),pQ=R(`
Providers Overview
Usage Overview
Failover models
Rate Limits
Models
Guardrails
`),i7=R(`Guardrail Steps
Workflows
This failover mapping is defined in configuration and is read-only here.
`),A6=R(``),j6=R(``),N6=R(``),P6=R(``),F6=R(``);function I6(e,t){D(t,!0),oL(e,{get open(){return X.failoverFormOpen},variant:`editor`,onclose:()=>X.closeFailoverForm(),children:(e,t)=>{var n=F6(),r=N(n),i=N(r),a=N(i),o=P(N(a),2),s=N(o,!0);E(o),E(a),iL(P(a,2),{label:`Close failover editor`,onclick:()=>X.closeFailoverForm()}),E(i);var c=P(i,2),l=e=>{z(e,k6())};V(c,e=>{X.failoverFormManaged&&e(l)});var u=P(c,2);H(u,21,()=>kL.models,ai,(e,t)=>{var n=A6(),r=N(n,!0);E(n);var i={};F((e,t)=>{B(r,e),i!==(i=t)&&(n.value=(n.__value=t)??``)},[()=>V2(I(t)),()=>V2(I(t))]),z(e,n)}),E(u);var d=P(u,2),f=P(N(d),2),p=N(f),m=N(p);Zi(m);var h=P(m,2),g=e=>{_1(e,{label:`Remove fallback model`,class:`table-action-btn-danger table-icon-btn vm-target-remove`,onclick:()=>X.removePrimaryFailoverTarget(),get disabled(){return X.failoverFormManaged},children:(e,t)=>{G(e,{name:`trash-2`,class:`table-icon-svg`})},$$slots:{default:!0}})};V(h,e=>{X.failoverForm.target_model&&e(g)}),E(p),H(P(p,2),17,()=>X.failoverForm.targets,ai,(e,t,n)=>{var r=j6(),i=N(r);Zi(i),_1(P(i,2),{label:`Remove fallback model`,class:`table-action-btn-danger table-icon-btn vm-target-remove`,onclick:()=>X.removeFailoverTarget(n),get disabled(){return X.failoverFormManaged},children:(e,t)=>{G(e,{name:`trash-2`,class:`table-icon-svg`})},$$slots:{default:!0}}),E(r),F(()=>i.disabled=X.failoverFormManaged),oa(i,()=>I(t).model,e=>I(t).model=e),z(e,r)}),E(f);var _=P(f,2),v=N(_);G(N(v),{name:`plus`,class:`form-action-icon`}),We(2),E(v);var y=P(v,2),b=N(y);G(b,{name:`wand-sparkles`,class:`form-action-icon`});var x=P(b,2),S=N(x,!0);E(x),E(y),E(_),E(d);var C=P(d,2),w=N(C),T=N(w);let ee;var te=P(N(T),2),ne=N(te,!0);E(te),E(T),E(w),E(C);var re=P(C,2),ie=e=>{var t=M6(),n=N(t,!0);E(t),F(()=>B(n,X.failoverError)),z(e,t)};V(re,e=>{X.failoverError&&e(ie)});var ae=P(re,2),oe=N(ae),se=P(oe,2),ce=e=>{var t=N6();F(()=>t.disabled=X.failoverSaving||X.failoverGenerating),L(`click`,t,()=>X.deleteFailoverRule()),z(e,t)};V(se,e=>{X.failoverFormMode===`edit`&&!X.failoverFormManaged&&e(ce)});var le=P(se,2),ue=e=>{var t=P6(),n=N(t);G(n,{name:`save`,class:`form-action-icon`});var r=P(n,2),i=N(r,!0);E(r),E(t),F(()=>{t.disabled=X.failoverSaving||X.failoverGenerating,B(i,X.failoverSaving?`Saving...`:`Save`)}),z(e,t)};V(le,e=>{X.failoverFormManaged||e(ue)}),E(ae),E(r),E(n),F(e=>{B(s,X.failoverForm.source||`Failover`),m.disabled=X.failoverFormManaged,v.disabled=X.failoverFormManaged||X.failoverGenerating||X.failoverSaving,y.disabled=e,B(S,X.failoverGenerating?`Generating...`:`Generate automatically`),ee=U(T,1,`alias-toggle`,null,ee,{enabled:X.failoverForm.enabled}),T.disabled=X.failoverFormManaged,W(T,`aria-label`,(X.failoverForm.enabled?`Disable`:`Enable`)+` failover mapping`),B(ne,X.failoverForm.enabled?`Enabled`:`Disabled`)},[()=>X.failoverFormManaged||X.failoverGenerating||X.failoverSaving||!X.failoverEnabled()]),Vr(`submit`,r,e=>{e.preventDefault(),X.submitFailoverForm()}),oa(m,()=>X.failoverForm.target_model,e=>X.failoverForm.target_model=e),L(`click`,v,()=>X.addFailoverTarget()),L(`click`,y,()=>X.generateFailoverForForm()),L(`click`,T,()=>{X.failoverFormManaged||(X.failoverForm.enabled=!X.failoverForm.enabled)}),L(`click`,oe,()=>X.closeFailoverForm()),z(e,n)},$$slots:{default:!0}}),O()}Hr([`click`]);var L6=R(` `),R6=R(``),z6=R(``),B6=R(``),V6=R(`
No failover suggestions were generated.
`),H6=R(`No failover drafts match the filter.
`),U6=R(``),W6=R(`
Generated drafts
`),Y6=R(`
No rules.
`),X6=R(` Edit`,1),Z6=R(`
No models registered.
`),d8=R(`No models in this category.
`),f8=R(`No models match your filter.
`),p8=R(``),Y5=R(`
`),X5=R(`
No guardrails configured for this workflow.
`),$5=R(`
`),a7=R(``),o7=R(`
No guardrail steps configured yet.
`),_7=R(`Guardrails in the same numeric step run together. Later steps wait for earlier ones to finish.
Loading workflows...
`),x7=R(``),S7=R(`No active workflows found.
`),C7=R(`No workflows match your filter.
`),w7=R(`Active workflows are matched path-first: deepest user path wins first, then provider name and model specificity, then broader matches, then global.
`),cL=R(`
`),pL=R(`
`),mL=R(`
`),sL=R(`
`),fL=R(`
`),pL=R(`
0&&e.stroke()}}function eV(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.x c(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),C=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&C()&&(m.push(CH({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(CH({start:g,end:d,loop:f,count:o,style:p})),m}function EH(e,t){let n=[],r=e.segments;for(let i=0;i 0&&e.stroke()}}function $B(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.x c(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),C=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&C()&&(m.push(SH({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(SH({start:g,end:d,loop:f,count:o,style:p})),m}function TH(e,t){let n=[],r=e.segments;for(let i=0;i{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});vz(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=Nz(e),c=IG(e,this._lastEvent,n,s);n&&(this._lastEvent=null,gz(i.onHover,[e,o,this],this),s&&gz(i.onClick,[e,o,this],this));let l=!vz(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function RG(){return _z(LG.instances,e=>e._plugins.invalidate())}function zG(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,rB(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,rB(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*rB(r-n));if(u===`round`)e.arc(i,a,t,n-Pz/2,r+Pz/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+Pz/2)+i,c=-o*Math.sin(n+Pz/2)+a,l=o*Math.cos(r+Pz/2)+i,u=o*Math.sin(r+Pz/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function BG(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+zz,r-zz),e.closePath(),e.clip()}function VG(e){return mV(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function HG(e,t,n,r){let i=VG(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return aB(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:aB(i.innerStart,0,o),innerEnd:aB(i.innerEnd,0,o)}}function UG(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function WG(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/Pz)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=HG(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,ee=f+b,te=f+x,ne=g+b/ee,re=_-x/te;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=UG(C,T,o,s);e.arc(t.x,t.y,y,T,_+zz)}let n=UG(te,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=UG(te,re,o,s);e.arc(t.x,t.y,x,_+zz,re+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=UG(ee,ne,o,s);e.arc(t.x,t.y,b,ne+Math.PI,g-zz)}let i=UG(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=UG(S,w,o,s);e.arc(t.x,t.y,v,g-zz,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function GG(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){WG(e,t,n,r,c,i);for(let t=0;t=Pz&&p===0&&u!==`miter`&&zG(e,t,h),a||(WG(e,t,n,r,h,i),e.stroke())}var qG=class extends kW{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=eB(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=pz(l,o-a),f=iB(r,a,o)&&a!==o,p=d>=Fz||f,m=sB(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Fz?Math.floor(n/Fz):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(Pz,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,GG(e,this,s,i,a),KG(e,this,s,i,a),e.restore()}};function JG(e,t,n=t){e.lineCap=pz(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pz(n.borderDash,t.borderDash)),e.lineDashOffset=pz(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pz(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pz(n.borderWidth,t.borderWidth),e.strokeStyle=pz(n.borderColor,t.borderColor)}function YG(e,t,n){e.lineTo(n.x,n.y)}function XG(e){return e.stepped?rV:e.tension||e.cubicInterpolationMode===`monotone`?iV:YG}function ZG(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=in.length){for(c=0;c{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});_z(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=Mz(e),c=FG(e,this._lastEvent,n,s);n&&(this._lastEvent=null,hz(i.onHover,[e,o,this],this),s&&hz(i.onClick,[e,o,this],this));let l=!_z(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function LG(){return gz(IG.instances,e=>e._plugins.invalidate())}function RG(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,nB(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,nB(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*nB(r-n));if(u===`round`)e.arc(i,a,t,n-Nz/2,r+Nz/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+Nz/2)+i,c=-o*Math.sin(n+Nz/2)+a,l=o*Math.cos(r+Nz/2)+i,u=o*Math.sin(r+Nz/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function zG(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Rz,r-Rz),e.closePath(),e.clip()}function BG(e){return pV(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function VG(e,t,n,r){let i=BG(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return iB(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:iB(i.innerStart,0,o),innerEnd:iB(i.innerEnd,0,o)}}function HG(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function UG(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/Nz)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=VG(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,ee=f+b,te=f+x,ne=g+b/ee,re=_-x/te;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=HG(C,T,o,s);e.arc(t.x,t.y,y,T,_+Rz)}let n=HG(te,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=HG(te,re,o,s);e.arc(t.x,t.y,x,_+Rz,re+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=HG(ee,ne,o,s);e.arc(t.x,t.y,b,ne+Math.PI,g-Rz)}let i=HG(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=HG(S,w,o,s);e.arc(t.x,t.y,v,g-Rz,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function WG(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){UG(e,t,n,r,c,i);for(let t=0;t=Nz&&p===0&&u!==`miter`&&RG(e,t,h),a||(UG(e,t,n,r,h,i),e.stroke())}var KG=class extends OW{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=$z(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=fz(l,o-a),f=rB(r,a,o)&&a!==o,p=d>=Pz||f,m=oB(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Pz?Math.floor(n/Pz):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(Nz,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,WG(e,this,s,i,a),GG(e,this,s,i,a),e.restore()}};function qG(e,t,n=t){e.lineCap=fz(n.borderCapStyle,t.borderCapStyle),e.setLineDash(fz(n.borderDash,t.borderDash)),e.lineDashOffset=fz(n.borderDashOffset,t.borderDashOffset),e.lineJoin=fz(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=fz(n.borderWidth,t.borderWidth),e.strokeStyle=fz(n.borderColor,t.borderColor)}function JG(e,t,n){e.lineTo(n.x,n.y)}function YG(e){return e.stepped?nV:e.tension||e.cubicInterpolationMode===`monotone`?rV:JG}function XG(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=iLive Token Throughput
Live Token Throughput
Tokens
Share of input tokens over the selected period