Ot?(An=xt,xt=null):An=xt.sibling;var ir=Ae(ue,xt,de[Ot],Be);if(ir===null){xt===null&&(xt=An);break}d&&xt&&ir.alternate===null&&m(ue,xt),ae=A(ir,ae,Ot),bt===null?dt=ir:bt.sibling=ir,bt=ir,xt=An}if(Ot===de.length)return y(ue,xt),Vr&&su(ue,Ot),dt;if(xt===null){for(;Ot =1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(p+1,0,v),g.setUTCHours(0,0,0,0);var b=Ku(g,t),x=new Date(0);x.setUTCFullYear(p,0,v),x.setUTCHours(0,0,0,0);var S=Ku(x,t);return f.getTime()>=b.getTime()?p+1:f.getTime()>=S.getTime()?p:p-1}function Ide(e,t){var r,n,a,i,o,s,l,c;Ye(1,arguments);var f=cc(),p=It((r=(n=(a=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=aA(e,t),v=new Date(0);v.setUTCFullYear(h,0,p),v.setUTCHours(0,0,0,0);var g=Ku(v,t);return g}var Mde=6048e5;function tW(e,t){Ye(1,arguments);var r=it(e),n=Ku(r,t).getTime()-Ide(r,t).getTime();return Math.round(n/Mde)+1}function gr(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length =a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Rfe(e){Ye(1,arguments);var t=Afe(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Ky(r);return n}var Dfe=6048e5;function Nfe(e){Ye(1,arguments);var t=it(e),r=Ky(t).getTime()-Rfe(t).getTime();return Math.round(r/Dfe)+1}function oa(e){Ye(1,arguments);var t=it(e),r=t.getMonth();return r}function ld(e){Ye(1,arguments);var t=it(e),r=Math.floor(t.getMonth()/3)+1;return r}function $t(e){return Ye(1,arguments),it(e).getFullYear()}function KT(e){Ye(1,arguments);var t=it(e),r=t.getTime();return r}function Ife(e,t){Ye(2,arguments);var r=it(e),n=It(t);return r.setSeconds(n),r}function yy(e,t){Ye(2,arguments);var r=it(e),n=It(t);return r.setMinutes(n),r}function by(e,t){Ye(2,arguments);var r=it(e),n=It(t);return r.setHours(n),r}function Mfe(e){Ye(1,arguments);var t=it(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function ca(e,t){Ye(2,arguments);var r=it(e),n=It(t),a=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var s=Mfe(o);return r.setMonth(n,Math.min(i,s)),r}function Hc(e,t){Ye(2,arguments);var r=it(e),n=It(t),a=Math.floor(r.getMonth()/3)+1,i=n-a;return ca(r,r.getMonth()+i*3)}function ss(e,t){Ye(2,arguments);var r=it(e),n=It(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function P$(e){Ye(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Si(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(n){var a=it(n);(r===void 0||r>a||isNaN(a.getDate()))&&(r=a)}),r||new Date(NaN)}function k$(e){Ye(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Si(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(n){var a=it(n);(r===void 0||rn.getTime()}function bl(e,t){Ye(2,arguments);var r=it(e),n=it(t);return r.getTime() 0?i=i.charAt(0)+"."+i.slice(1)+pl(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+pl(-a-1)+i,r&&(n=r-o)>0&&(i+=pl(n))):a>=o?(i+=pl(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+pl(n))):((n=a+1) =2?Qi(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(p){var h=i?i.indexOf(p):p;return{coordinate:a(h)+c,value:p,offset:c}});return f.filter(function(p){return!Xh(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,h){return{coordinate:a(p)+c,value:p,index:h,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+c,value:p,offset:c}}):a.domain().map(function(p,h){return{coordinate:a(p)+c,value:i?i[p]:p,index:h,offset:c}})},oE=new WeakMap,Gg=function(t,r){if(typeof r!="function")return t;oE.has(t)||oE.set(t,new WeakMap);var n=oE.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},ICe=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Km(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Pb(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:fm(),realScaleType:"point"}:i==="category"?{scale:Km(),realScaleType:"band"}:{scale:Pb(),realScaleType:"linear"};if(Ju(a)){var l="scale".concat(ex(a));return{scale:(l4[l]||fm)(),realScaleType:l4[l]?l:"point"}}return Nt(a)?{scale:a}:{scale:fm(),realScaleType:"point"}},C4=1e-4,MCe=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-C4,o=Math.max(a[0],a[1])+C4,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},$Ce=function(t,r){if(!t)return null;for(var n=0,a=t.length;na)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1] =p&&v<=h}else{for(;v>p;)v-=360;for(;v1?f-1:0),h=1;h"",zoe=/^Symbol\((.*)\)(.*)$/;function qoe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function qM(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return qoe(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Boe.call(e).replace(zoe,"Symbol($1)");const n=$oe.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+Foe.call(e)+"]":n==="RegExp"?Loe.call(e):null}function hs(e,t){let r=qM(e,t);return r!==null?r:JSON.stringify(e,function(n,a){let i=qM(this[n],t);return i!==null?i:a},2)}function a7(e){return e==null?[]:[].concat(e)}let i7,o7,s7,Uoe=/\$\{\s*(\w+)\s*\}/g;i7=Symbol.toStringTag;class UM{constructor(t,r,n,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[i7]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=a,this.errors=[],this.inner=[],a7(t).forEach(i=>{if(Ca.isError(i)){this.errors.push(...i.errors);const o=i.inner.length?i.inner:[i];this.inner.push(...o)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}o7=Symbol.hasInstance;s7=Symbol.toStringTag;class Ca extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(Uoe,(a,i)=>hs(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,a,i){const o=new UM(t,r,n,a);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[s7]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ca)}static[o7](t){return UM[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let co={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=n!=null&&n!==r?` (cast from the value \`${hs(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${hs(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${hs(r,!0)}\``+a}},Sa={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ul={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},$T={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},FT={isValue:"${path} field must be ${value}"},LT={noUnknown:"${path} field has unspecified keys: ${unknown}"},hy={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Hoe={notType:e=>{const{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.lengtha)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${hs(r,!0)}\``}return Ca.formatError(co.notType,e)}};Object.assign(Object.create(null),{mixed:co,string:Sa,number:ul,date:$T,object:LT,array:hy,boolean:FT,tuple:Hoe});const I0=e=>e&&e.__isYupSchema__;class Uy{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:i}=r,o=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new Uy(t,(s,l)=>{var c;let f=o(...s)?a:i;return(c=f?.(l))!=null?c:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(i=>i.getValue(r?.value,r?.parent,r?.context)),a=this.fn(n,t,r);if(a===void 0||a===t)return t;if(!I0(a))throw new TypeError("conditions must return a schema object");return a.resolve(r)}}const jg={context:"$",value:"."};function Woe(e,t){return new Vl(e,t)}let Vl=class{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===jg.context,this.isValue=this.key[0]===jg.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?jg.context:this.isValue?jg.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Fu.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let a=this.isContext?n:this.isValue?t:r;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(t,r){return this.getValue(t,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Vl.prototype.__isYupRef=!0;const Ki=e=>e==null;function qc(e){function t({value:r,path:n="",options:a,originalValue:i,schema:o},s,l){const{name:c,test:f,params:p,message:h,skipAbsent:v}=e;let{parent:g,context:b,abortEarly:x=o.spec.abortEarly,disableStackTrace:S=o.spec.disableStackTrace}=a;function j(I){return Vl.isRef(I)?I.getValue(r,g,b):I}function E(I={}){const q=Object.assign({value:r,originalValue:i,label:o.spec.label,path:I.path||n,spec:o.spec,disableStackTrace:I.disableStackTrace||S},p,I.params);for(const G of Object.keys(q))q[G]=j(q[G]);const M=new Ca(Ca.formatError(I.message||h,q),r,q.path,I.type||c,q.disableStackTrace);return M.params=q,M}const O=x?s:l;let C={path:n,parent:g,type:c,from:a.from,createError:E,resolve:j,options:a,originalValue:i,schema:o};const T=I=>{Ca.isError(I)?O(I):I?l(null):O(E())},k=I=>{Ca.isError(I)?O(I):s(I)};if(v&&Ki(r))return T(!0);let D;try{var N;if(D=f.call(C,r,C),typeof((N=D)==null?void 0:N.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(D).then(T,k)}}catch(I){k(I);return}T(D)}return t.OPTIONS=e,t}function Voe(e,t,r,n=r){let a,i,o;return t?(Fu.forEach(t,(s,l,c)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:a,value:r});let p=e.type==="tuple",h=c?parseInt(f,10):0;if(e.innerType||p){if(p&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[h],e=p?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);a=r,r=r&&r[f],e=e.fields[f]}i=f,o=l?"["+s+"]":"."+s}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}class Hy extends Set{describe(){const t=[];for(const r of this.values())t.push(Vl.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new Hy(this.values())}merge(t,r){const n=this.clone();return t.forEach(a=>n.add(a)),r.forEach(a=>n.delete(a)),n}}function sd(e,t=new Map){if(I0(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n0))return[];if(e===t)return[e];const n=t=n)&&(r=n);return r}function O3(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function w9(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?x9:Qwe(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,f=Math.log(l),p=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*p*(l-p)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*p/l+h)),g=Math.min(n,Math.floor(t+(l-c)*p/l+h));w9(e,t,v,g,a)}const i=e[t];let o=r,s=n;for(Ap(e,r,t),a(e[n],i)>0&&Ap(e,r,n);o0;)--s}a(e[r],i)===0?Ap(e,r,s):(++s,Ap(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ap(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function t1e(e,t,r){if(e=Float64Array.from(Vwe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return O3(e);if(t>=1)return T3(e);var n,a=(n-1)*t,i=Math.floor(a),o=T3(w9(e,i).subarray(0,i+1)),s=O3(e.subarray(i+1));return o+(s-o)*(a-i)}}function r1e(e,t,r=b9){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function n1e(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Hg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Hg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=i1e.exec(e))?new Ea(t[1],t[2],t[3],1):(t=o1e.exec(e))?new Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=s1e.exec(e))?Hg(t[1],t[2],t[3],t[4]):(t=l1e.exec(e))?Hg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=u1e.exec(e))?I3(t[1],t[2]/100,t[3]/100,1):(t=c1e.exec(e))?I3(t[1],t[2]/100,t[3]/100,t[4]):P3.hasOwnProperty(e)?R3(P3[e]):e==="transparent"?new Ea(NaN,NaN,NaN,0):null}function R3(e){return new Ea(e>>16&255,e>>8&255,e&255,1)}function Hg(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ea(e,t,r,n)}function p1e(e){return e instanceof ev||(e=Jm(e)),e?(e=e.rgb(),new Ea(e.r,e.g,e.b,e.opacity)):new Ea}function qO(e,t,r,n){return arguments.length===1?p1e(e):new Ea(e,t,r,n??1)}function Ea(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}XA(Ea,qO,_9(ev,{brighter(e){return e=e==null?Cb:Math.pow(Cb,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xm:Math.pow(Xm,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ea(zu(this.r),zu(this.g),zu(this.b),jb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:D3,formatHex:D3,formatHex8:m1e,formatRgb:N3,toString:N3}));function D3(){return`#${Du(this.r)}${Du(this.g)}${Du(this.b)}`}function m1e(){return`#${Du(this.r)}${Du(this.g)}${Du(this.b)}${Du((isNaN(this.opacity)?1:this.opacity)*255)}`}function N3(){const e=jb(this.opacity);return`${e===1?"rgb(":"rgba("}${zu(this.r)}, ${zu(this.g)}, ${zu(this.b)}${e===1?")":`, ${e})`}`}function jb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Du(e){return e=zu(e),(e<16?"0":"")+e.toString(16)}function I3(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yi(e,t,r,n)}function C9(e){if(e instanceof Yi)return new Yi(e.h,e.s,e.l,e.opacity);if(e instanceof ev||(e=Jm(e)),!e)return new Yi;if(e instanceof Yi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r>1)+q+I+M+W.slice($);break;default:I=W+q+I+M;break}return i(I)}return N.toString=function(){return p+""},N}function f(p,h){var v=c((p=Zm(p),p.type="f",p)),g=Math.max(-8,Math.min(8,Math.floor(qd(h)/3)))*3,b=Math.pow(10,-g),x=U3[8+g/3];return function(S){return v(b*S)+x}}return{format:c,formatPrefix:f}}var Vg,tR,T9;L1e({thousands:",",grouping:[3],currency:["$",""]});function L1e(e){return Vg=F1e(e),tR=Vg.format,T9=Vg.formatPrefix,Vg}function B1e(e){return Math.max(0,-qd(Math.abs(e)))}function z1e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qd(t)/3)))*3-qd(Math.abs(e)))}function q1e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qd(t)-qd(e))+1}function O9(e,t,r,n){var a=BO(e,t,r),i;switch(n=Zm(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=z1e(a,o))&&(n.precision=i),T9(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=q1e(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=B1e(a))&&(n.precision=i-(n.type==="%")*2);break}}return tR(n)}function Xl(e){var t=e.domain;return e.ticks=function(r){var n=t();return FO(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return O9(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,f=10;for(s0?r[s-1]:e[0],s0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?a[c-1].coordinate:a[s-1].coordinate,p=a[c].coordinate,h=c>=s-1?a[0].coordinate:a[c+1].coordinate,v=void 0;if(Qi(p-f)!==Qi(h-p)){var g=[];if(Qi(h-p)===Qi(l[1]-l[0])){v=h;var b=p+l[1]-l[0];g[0]=Math.min(b,(b+f)/2),g[1]=Math.max(b,(b+f)/2)}else{v=f;var x=h+l[1]-l[0];g[0]=Math.min(p,(x+p)/2),g[1]=Math.max(p,(x+p)/2)}var S=[Math.min(p,(v+p)/2),Math.max(p,(v+p)/2)];if(t>S[0]&&t<=S[1]||t>=g[0]&&t<=g[1]){o=a[c].index;break}}else{var j=Math.min(f,h),E=Math.max(f,h);if(t>(j+p)/2&&t<=(E+p)/2){o=a[c].index;break}}}else for(var O=0;O0&&O0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(f,p,h){var v=-(f-p)*n,g=h*i,b=h+(v-g)*s/1e3,x=h*s/1e3+f;return Math.abs(x-p)