PageSourceSearch

https://app.risedds.com/build/assets/chartjs-C1BqC3C8.js

js risedds.com collected 2026-10-04 05:47:24 UTC 355,717 bytes, 7 lines download raw bytes

1import{n as e,r as t}from"./rolldown-runtime-CNC7AqOf.js";var n=t({EMPTY_ARR:()=>C,EMPTY_OBJ:()=>S,NO:()=>T,NOOP:()=>w,PatchFlagNames:()=>ke,PatchFlags:()=>Oe,ShapeFlags:()=>Ae,SlotFlags:()=>je,camelize:()=>F,capitalize:()=>ve,cssVarNameEscapeSymbolsRE:()=>it,def:()=>Se,escapeHtml:()=>h,escapeHtmlComment:()=>g,extend:()=>O,genCacheKey:()=>a,genPropsAccessExp:()=>i,generateCodeFrame:()=>o,getEscapedCssVarName:()=>_,getGlobalThis:()=>Ee,hasChanged:()=>be,hasOwn:()=>k,hyphenate:()=>_e,includeBooleanAttr:()=>f,invokeArrayFns:()=>xe,isArray:()=>A,isBooleanAttr:()=>Ye,isBuiltInDirective:()=>pe,isDate:()=>re,isFunction:()=>M,isGloballyAllowed:()=>Ne,isGloballyWhitelisted:()=>Pe,isHTMLTag:()=>Ue,isIntegerKey:()=>de,isKnownHtmlAttr:()=>$e,isKnownMathMLAttr:()=>tt,isKnownSvgAttr:()=>et,isMap:()=>j,isMathMLTag:()=>Ge,isModelListener:()=>D,isObject:()=>P,isOn:()=>E,isPlainObject:()=>ue,isPromise:()=>oe,isRegExp:()=>ie,isRenderableAttrValue:()=>m,isReservedProp:()=>fe,isSSRSafeAttrName:()=>p,isSVGTag:()=>We,isSet:()=>ne,isSpecialBooleanAttr:()=>Je,isString:()=>N,isSymbol:()=>ae,isVoidTag:()=>Ke,looseEqual:()=>y,looseIndexOf:()=>b,looseToNumber:()=>Ce,makeMap:()=>r,normalizeClass:()=>u,normalizeCssVarValue:()=>x,normalizeProps:()=>d,normalizeStyle:()=>s,objectToString:()=>se,parseStringStyle:()=>c,propsToAttrMap:()=>Qe,remove:()=>ee,slotFlagsText:()=>Me,stringifyStyle:()=>l,toDisplayString:()=>ot,toHandlerKey:()=>ye,toNumber:()=>we,toRawType:()=>le,toTypeString:()=>ce});function r(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}function i(e){return De.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function a(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}function o(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return``;let r=e.split(/(\r?\n)/),i=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let a=0,o=[];for(let e=0;e<r.length;e++)if(a+=r[e].length+(i[e]&&i[e].length||0),a>=t){for(let s=e-Fe;s<=e+Fe||n>a;s++){if(s<0||s>=r.length)continue;let c=s+1;o.push(`${c}${` `.repeat(Math.max(3-String(c).length,0))}|  ${r[s]}`);let l=r[s].length,u=i[s]&&i[s].length||0;if(s===e){let e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);o.push(`   |  `+` `.repeat(e)+`^`.repeat(r))}else if(s>e){if(n>a){let e=Math.max(Math.min(n-a,l),1);o.push(`   |  `+`^`.repeat(e))}a+=l+u}}break}return o.join(`
2`)}function s(e){if(A(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=N(r)?c(r):s(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(N(e)||P(e))return e}function c(e){let t={};return e.replace(Re,``).split(Ie).forEach(e=>{if(e){let n=e.split(Le);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function l(e){if(!e)return``;if(N(e))return e;let t=``;for(let n in e){let r=e[n];if(N(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:_e(n);t+=`${e}:${r};`}}return t}function u(e){let t=``;if(N(e))t=e;else if(A(e))for(let n=0;n<e.length;n++){let r=u(e[n]);r&&(t+=r+` `)}else if(P(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function d(e){if(!e)return null;let{class:t,style:n}=e;return t&&!N(t)&&(e.class=u(t)),n&&(e.style=s(n)),e}function f(e){return!!e||e===``}function p(e){if(Ze.hasOwnProperty(e))return Ze[e];let t=Xe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Ze[e]=!t}function m(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}function h(e){let t=``+e,n=nt.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}function g(e){return e.replace(rt,``)}function _(e,t){return e.replace(it,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function v(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=y(e[r],t[r]);return n}function y(e,t){if(e===t)return!0;let n=re(e),r=re(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ae(e),r=ae(t),n||r)return e===t;if(n=A(e),r=A(t),n||r)return n&&r?v(e,t):!1;if(n=P(e),r=P(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!y(e[n],t[n]))return!1}}return String(e)===String(t)}function b(e,t){return e.findIndex(e=>y(e,t))}function x(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var S,C,w,T,E,D,O,ee,te,k,A,j,ne,re,ie,M,N,ae,P,oe,se,ce,le,ue,de,fe,pe,me,he,F,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt=e((()=>{S={},C=[],w=()=>{},T=()=>!1,E=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),D=e=>e.startsWith(`onUpdate:`),O=Object.assign,ee=(e,t)=>
vendor: 4,888 bytes, line 2
2{let n=e.indexOf(t);n>-1&&e.splice(n,1)},te=Object.prototype.hasOwnProperty,k=(e,t)=>te.call(e,t),A=Array.isArray,j=e=>ce(e)===`[object Map]`,ne=e=>ce(e)===`[object Set]`,re=e=>ce(e)===`[object Date]`,ie=e=>ce(e)===`[object RegExp]`,M=e=>typeof e==`function`,N=e=>typeof e==`string`,ae=e=>typeof e==`symbol`,P=e=>typeof e==`object`&&!!e,oe=e=>(P(e)||M(e))&&M(e.then)&&M(e.catch),se=Object.prototype.toString,ce=e=>se.call(e),le=e=>ce(e).slice(8,-1),ue=e=>ce(e)===`[object Object]`,de=e=>N(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,fe=r(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),pe=r(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),me=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},he=/-\w/g,F=me(e=>e.replace(he,e=>e.slice(1).toUpperCase())),ge=/\B([A-Z])/g,_e=me(e=>e.replace(ge,`-$1`).toLowerCase()),ve=me(e=>e.charAt(0).toUpperCase()+e.slice(1)),ye=me(e=>e?`on${ve(e)}`:``),be=(e,t)=>!Object.is(e,t),xe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},we=e=>{let t=N(e)?Number(e):NaN;return isNaN(t)?e:t},Ee=()=>Te||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},De=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/,Oe={TEXT:1,1:`TEXT`,CLASS:2,2:`CLASS`,STYLE:4,4:`STYLE`,PROPS:8,8:`PROPS`,FULL_PROPS:16,16:`FULL_PROPS`,NEED_HYDRATION:32,32:`NEED_HYDRATION`,STABLE_FRAGMENT:64,64:`STABLE_FRAGMENT`,KEYED_FRAGMENT:128,128:`KEYED_FRAGMENT`,UNKEYED_FRAGMENT:256,256:`UNKEYED_FRAGMENT`,NEED_PATCH:512,512:`NEED_PATCH`,DYNAMIC_SLOTS:1024,1024:`DYNAMIC_SLOTS`,DEV_ROOT_FRAGMENT:2048,2048:`DEV_ROOT_FRAGMENT`,CACHED:-1,"-1":`CACHED`,BAIL:-2,"-2":`BAIL`},ke={1:`TEXT`,2:`CLASS`,4:`STYLE`,8:`PROPS`,16:`FULL_PROPS`,32:`NEED_HYDRATION`,64:`STABLE_FRAGMENT`,128:`KEYED_FRAGMENT`,256:`UNKEYED_FRAGMENT`,512:`NEED_PATCH`,1024:`DYNAMIC_SLOTS`,2048:`DEV_ROOT_FRAGMENT`,[-1]:`CACHED`,[-2]:`BAIL`},Ae={ELEMENT:1,1:`ELEMENT`,FUNCTIONAL_COMPONENT:2,2:`FUNCTIONAL_COMPONENT`,STATEFUL_COMPONENT:4,4:`STATEFUL_COMPONENT`,TEXT_CHILDREN:8,8:`TEXT_CHILDREN`,ARRAY_CHILDREN:16,16:`ARRAY_CHILDREN`,SLOTS_CHILDREN:32,32:`SLOTS_CHILDREN`,TELEPORT:64,64:`TELEPORT`,SUSPENSE:128,128:`SUSPENSE`,COMPONENT_SHOULD_KEEP_ALIVE:256,256:`COMPONENT_SHOULD_KEEP_ALIVE`,COMPONENT_KEPT_ALIVE:512,512:`COMPONENT_KEPT_ALIVE`,COMPONENT:6,6:`COMPONENT`},je={STABLE:1,1:`STABLE`,DYNAMIC:2,2:`DYNAMIC`,FORWARDED:3,3:`FORWARDED`},Me={1:`STABLE`,2:`DYNAMIC`,3:`FORWARDED`},Ne=r(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`),Pe=Ne,Fe=2,Ie=/;(?![^(]*\))/g,Le=/:([^]+)/,Re=/\/\*[^]*?\*\//g,ze=`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`,Be=`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`,Ve=`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`,He=`area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr`,Ue=r(ze),We=r(Be),Ge=r(Ve),Ke=r(He),qe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Je=r(qe),Ye=r(qe+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
2checked,muted,multiple,selected`),Xe=/[>/="'\u0009\u000a\u000c\u0020]/,Ze={},Qe={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`},$e=r(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),et=r(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
vendor: 4,198 bytes, line 2
2-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`),tt=r(`accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`),nt=/["'&<>]/,rt=/^-?>|<!--|-->|--!>|<!-$/g,it=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g,at=e=>!!(e&&e.__v_isRef===!0),ot=e=>N(e)?e:e==null?``:A(e)||P(e)&&(e.toString===se||!M(e.toString))?at(e)?ot(e.value):JSON.stringify(e,st,2):String(e),st=(e,t)=>at(t)?st(e,t.value):j(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ct(t,r)+` =>`]=n,e),{})}:ne(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ct(e))}:ae(t)?ct(t):P(t)&&!A(t)&&!ue(t)?String(t):t,ct=(e,t=``)=>ae(e)?`Symbol(${e.description??t})`:e}));function ut(e){return new xn(e)}function dt(){return bn}function ft(e,t=!1){bn&&bn.cleanups.push(e)}function pt(e,t=!1){if(e.flags|=8,t){e.next=En,En=e;return}e.next=Tn,Tn=e}function mt(){wn++}function ht(){if(--wn>0)return;if(En){let e=En;for(En=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Tn;){let t=Tn;for(Tn=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function gt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _t(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),bt(r),xt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function vt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kn)||(e.globalVersion=kn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vt(e))))return;e.flags|=2;let t=e.dep,n=L,r=Dn;L=e,Dn=!0;try{gt(e);let n=e.fn(e._value);(t.version===0||be(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{L=n,Dn=r,_t(e),e.flags&=-3}}function bt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)bt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function xt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function St(e,t){e.effect instanceof Cn&&(e=e.effect.fn);let n=new Cn(e);t&&O(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function Ct(e){e.effect.stop()}function wt(){On.push(Dn),Dn=!1}function Tt(){let e=On.pop();Dn=e===void 0?!0:e}function Et(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=L;L=void 0;try{t()}finally{L=e}}}function Dt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Dt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}function Ot(e,t,n){if(Dn&&L){let t=Mn.get(e);t||Mn.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new jn),r.map=t,r.key=n),r.track()}}function kt(e,t,n,r,i,a){let o=Mn.get(e);if(!o){kn++;return}let s=e=>{e&&e.trigger()};
vendor: 4,868 bytes, line 2
2if(mt(),t===`clear`)o.forEach(s);else{let i=A(e),a=i&&de(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Fn||!ae(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Fn)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Nn)),j(e)&&s(o.get(Pn)));break;case`delete`:i||(s(o.get(Nn)),j(e)&&s(o.get(Pn)));break;case`set`:j(e)&&s(o.get(Nn));break}}ht()}function At(e,t){let n=Mn.get(e);return n&&n.get(t)}function jt(e){let t=I(e);return t===e?t:(Ot(t,`iterate`,Fn),$t(e)?t:t.map(rr))}function Mt(e){return Ot(e=I(e),`iterate`,Fn),e}function Nt(e,t){return Qt(e)?ir(Zt(e)?rr(t):t):rr(t)}function Pt(e,t,n){let r=Mt(e),i=r[t]();return r!==e&&!$t(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}function Ft(e,t,n,r,i,a){let o=Mt(e),s=o!==e&&!$t(e),c=o[t];if(c!==Ln[t]){let t=c.apply(e,a);return s?rr(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,Nt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function It(e,t,n,r){let i=Mt(e),a=i!==e&&!$t(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=Nt(e,t)),n.call(this,t,Nt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?Nt(e,c):c}function Lt(e,t,n){let r=I(e);Ot(r,`iterate`,Fn);let i=r[t](...n);return(i===-1||i===!1)&&en(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function Rt(e,t,n=[]){wt(),mt();let r=I(e)[t].apply(e,n);return ht(),Tt(),r}function zt(e){ae(e)||(e=String(e));let t=I(this);return Ot(t,`has`,e),t.hasOwnProperty(e)}function Bt(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=j(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?qn:t?ir:rr;return!t&&Ot(a,`iterate`,c?Pn:Nn),O(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Vt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ht(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(be(n,a)&&Ot(i,`get`,n),Ot(i,`get`,a));let{has:o}=Jn(i),s=t?qn:e?ir:rr;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&Ot(I(t),`iterate`,Nn),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(be(t,i)&&Ot(r,`has`,t),Ot(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?qn:e?ir:rr;return!e&&Ot(o,`iterate`,Nn),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return O(n,e?{add:Vt(`add`),set:Vt(`set`),delete:Vt(`delete`),clear:Vt(`clear`)}:{add(e){let n=I(this),r=Jn(n),i=I(e),a=!t&&!$t(e)&&!Qt(e)?i:e;return r.has.call(n,a)||be(e,a)&&r.has.call(n,e)||be(i,a)&&r.has.call(n,i)||(n.add(a),kt(n,`add`,a,a)),this},set(e,n){!t&&!$t(n)&&!Qt(n)&&(n=I(n));let r=I(this),{has:i,get:a}=Jn(r),o=i.call(r,e);o||=(e=I(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?be(n,s)&&kt(r,`set`,e,n,s):kt(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=Jn(t),i=n.call(t,e);i||=(e=I(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&kt(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=e.clear();return t&&kt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Bt(r,e,t)}),n}function Ut(e,t){let n=Ht(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(k(n,r)&&r in t?n:t,r,i)}function Wt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Gt(e){return e.__v_skip||!Object.isExtensible(e)?0:Wt(le(e))}function Kt(e){return Qt(e)?e:Xt(e,!1,Un,Yn,$n)}function qt(e){return Xt(e,!1,Gn,Xn,er)}function Jt(e){return Xt(e,!0,Wn,Zn,tr)}function Yt(e){return Xt(e,!0,Kn,Qn,nr)}function Xt(e,t,n,r,i){if(!P(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Gt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function en(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function tn(e){return!k(e,`__v_skip`)&&Object.isExtensible(e)&&Se(e,`__v_skip`,!0),e}function nn(e){return e?e.__v_isRef===!0:!1}function rn(e){return on(e,!1)}function an(e){return on(e,!0)}function on(e,t){return nn(e)?e:new ar(e,t)}function sn(e){e.dep&&e.dep.trigger()}function cn(e){return nn(e)?e.value:e}function ln(e){return M(e)?e():cn(e)}function un(e){return Zt(e)?e:new Proxy(e,or)}function dn(e){return new sr(e)}function fn(e){let t=A(e)?Array(e.length):{};for(let n in e)t[n]=mn(e,n);return t}function pn(e,t,n){return nn(e)?e:M(e)?new lr(e):P(e)&&arguments.length>
vendor: 5,196 bytes, line 2
21?mn(e,t,n):rn(e)}function mn(e,t,n){return new cr(e,t,n)}function hn(e,t,n=!1){let r,i;return M(e)?r=e:(r=e.get,i=e.set),new ur(r,i,n)}function gn(){return hr}function _n(e,t=!1,n=hr){if(n){let t=mr.get(n);t||mr.set(n,t=[]),t.push(e)}}function vn(e,t,n=S){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:$t(e)||i===!1||i===0?yn(e,1):yn(e),u,d,f,p,m=!1,h=!1;if(nn(e)?(d=()=>e.value,m=$t(e)):Zt(e)?(d=()=>l(e),m=!0):A(e)?(h=!0,m=e.some(e=>Zt(e)||$t(e)),d=()=>e.map(e=>{if(nn(e))return e.value;if(Zt(e))return l(e);if(M(e))return c?c(e,2):e()})):d=M(e)?t?c?()=>c(e,2):e:()=>{if(f){wt();try{f()}finally{Tt()}}let t=hr;hr=u;try{return c?c(e,3,[p]):e(p)}finally{hr=t}}:w,t&&i){let e=d,t=i===!0?1/0:i;d=()=>yn(e(),t)}let g=dt(),_=()=>{u.stop(),g&&g.active&&ee(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),_()}}let v=h?Array(e.length).fill(pr):pr,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||m||(h?e.some((e,t)=>be(e,v[t])):be(e,v))){f&&f();let n=hr;hr=u;try{let n=[e,v===pr?void 0:h&&v[0]===pr?[]:v,p];v=e,c?c(t,3,n):t(...n)}finally{hr=n}}}else u.run()};return s&&s(y),u=new Cn(d),u.scheduler=o?()=>o(y,!1):y,p=e=>_n(e,!1,u),f=u.onStop=()=>{let e=mr.get(u);if(e){if(c)c(e,4);else for(let t of e)t();mr.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function yn(e,t=1/0,n){if(t<=0||!P(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,nn(e))yn(e.value,t,n);else if(A(e))for(let r=0;r<e.length;r++)yn(e[r],t,n);else if(ne(e)||j(e))e.forEach(e=>{yn(e,t,n)});else if(ue(e)){for(let r in e)yn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&yn(e[r],t,n)}return e}var bn,xn,L,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr=e((()=>{lt(),xn=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=bn,!e&&bn&&(this.index=(bn.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=bn;try{return bn=this,e()}finally{bn=t}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}},Sn=new WeakSet,Cn=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Sn.has(this)&&(Sn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||pt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Et(this),gt(this);let e=L,t=Dn;L=this,Dn=!0;try{return this.fn()}finally{_t(this),L=e,Dn=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)bt(e);this.deps=this.depsTail=void 0,Et(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Sn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vt(this)&&this.run()}get dirty(){return vt(this)}},wn=0,Dn=!0,On=[],kn=0,An=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},jn=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!L||!Dn||L===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==L)t=this.activeLink=new An(L,this),L.deps?(t.prevDep=L.depsTail,L.depsTail.nextDep=t,L.depsTail=t):L.deps=L.depsTail=t,Dt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=L.depsTail,t.nextDep=void 0,L.depsTail.nextDep=t,L.depsTail=t,L.deps===t&&(L.deps=e)}return t}trigger(e){this.version++,kn++,this.notify(e)}notify(e){mt();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ht()}}},Mn=new WeakMap,Nn=Symbol(``),Pn=Symbol(``),Fn=Symbol(``),In={__proto__:null,[Symbol.iterator](){return Pt(this,Symbol.iterator,e=>Nt(this,e))},concat(...e){return jt(this).concat(...e.map(e=>A(e)?jt(e):e))}
vendor: 13,530 bytes, line 2
2,entries(){return Pt(this,`entries`,e=>(e[1]=Nt(this,e[1]),e))},every(e,t){return Ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return Ft(this,`filter`,e,t,e=>e.map(e=>Nt(this,e)),arguments)},find(e,t){return Ft(this,`find`,e,t,e=>Nt(this,e),arguments)},findIndex(e,t){return Ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Ft(this,`findLast`,e,t,e=>Nt(this,e),arguments)},findLastIndex(e,t){return Ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Lt(this,`includes`,e)},indexOf(...e){return Lt(this,`indexOf`,e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return Lt(this,`lastIndexOf`,e)},map(e,t){return Ft(this,`map`,e,t,void 0,arguments)},pop(){return Rt(this,`pop`)},push(...e){return Rt(this,`push`,e)},reduce(e,...t){return It(this,`reduce`,e,t)},reduceRight(e,...t){return It(this,`reduceRight`,e,t)},shift(){return Rt(this,`shift`)},some(e,t){return Ft(this,`some`,e,t,void 0,arguments)},splice(...e){return Rt(this,`splice`,e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return Rt(this,`unshift`,e)},values(){return Pt(this,`values`,e=>Nt(this,e))}},Ln=Array.prototype,Rn=r(`__proto__,__v_isRef,__isVue`),zn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(ae)),Bn=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?nr:tr:i?er:$n).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=A(e);if(!r){let e;if(a&&(e=In[t]))return e;if(t===`hasOwnProperty`)return zt}let o=Reflect.get(e,t,nn(e)?e:n);if((ae(t)?zn.has(t):Rn(t))||(r||Ot(e,`get`,t),i))return o;if(nn(o)){let e=a&&de(t)?o:o.value;return r&&P(e)?Jt(e):e}return P(o)?r?Jt(o):Kt(o):o}},Vn=class extends Bn{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=A(e)&&de(t);if(!this._isShallow){let e=Qt(i);if(!$t(n)&&!Qt(n)&&(i=I(i),n=I(n)),!a&&nn(i)&&!nn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:k(e,t),s=Reflect.set(e,t,n,nn(e)?e:r);return e===I(r)&&(o?be(n,i)&&kt(e,`set`,t,n,i):kt(e,`add`,t,n)),s}deleteProperty(e,t){let n=k(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&kt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!ae(t)||!zn.has(t))&&Ot(e,`has`,t),n}ownKeys(e){return Ot(e,`iterate`,A(e)?`length`:Nn),Reflect.ownKeys(e)}},Hn=class extends Bn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Un=new Vn,Wn=new Hn,Gn=new Vn(!0),Kn=new Hn(!0),qn=e=>e,Jn=e=>Reflect.getPrototypeOf(e),Yn={get:Ut(!1,!1)},Xn={get:Ut(!1,!0)},Zn={get:Ut(!0,!1)},Qn={get:Ut(!0,!0)},$n=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,rr=e=>P(e)?Kt(e):e,ir=e=>P(e)?Jt(e):e,ar=class{constructor(e,t){this.dep=new jn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:rr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||$t(e)||Qt(e);e=n?e:I(e),be(e,t)&&(this._rawValue=e,this._value=n?e:rr(e),this.dep.trigger())}},or={get:(e,t,n)=>t===`__v_raw`?e:cn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return nn(i)&&!nn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}},sr=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new jn,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}},cr=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=ae(t)?t:String(t),this._raw=I(e);let r=!0,i=e;if(!A(e)||ae(this._key)||!de(this._key))do r=!en(i)||$t(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=cn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&nn(this._raw[this._key])){let t=this._object[this._key];if(nn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return At(this._raw,this._key)}},lr=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}},ur=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new jn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return pt(this,!0),!0}get value(){let e=this.dep.track();return yt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}},dr={GET:`get`,HAS:`has`,ITERATE:`iterate`},fr={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},pr={},mr=new WeakMap,hr=void 0}));function _r(e){Fo.push(e)}function vr(){Fo.pop()}function yr(e,t){}function br(e,t,n,r){try{return r?e(...r):e()}catch(e){Sr(e,t,n)}}function xr(e,t,n,r){if(M(e)){let i=br(e,t,n,r);return i&&oe(i)&&i.catch(e=>{Sr(e,t,n)}),i}if(A(e)){let i=[];for(let a=0;a<e.length;a++)i.push(xr(e[a],t,n,r));return i}}function Sr(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||S;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){wt(),br(a,null,10,[e,i,o]),Tt();return}}Cr(e,n,i,r,o)}function Cr(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}function wr(e){let t=Wo||Uo;return e?t.then(this?e.bind(this):e):t}function Tr(e){let t=zo+1,n=Ro.length;for(;t<n;){let r=t+n>>>1,i=Ro[r],a=Go(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Er(e){if(!(e.flags&1)){let t=Go(e),n=Ro[Ro.length-1];!n||!(e.flags&2)&&t>=Go(n)?Ro.push(e):Ro.splice(Tr(t),0,e),e.flags|=1,Dr()}}function Dr(){Wo||=Uo.then(jr)}function Or(e){A(e)?Bo.push(...e):Vo&&e.id===-1?Vo.splice(Ho+1,0,e):e.flags&1||(Bo.push(e),e.flags|=1),Dr()}function kr(e,t,n=zo+1){for(;n<Ro.length;n++){let t=Ro[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Ro.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Ar(e){if(Bo.length){let e=[...new Set(Bo)].sort((e,t)=>Go(e)-Go(t));if(Bo.length=0,Vo){Vo.push(...e);return}for(Vo=e,Ho=0;Ho<Vo.length;Ho++){let e=Vo[Ho];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Vo=null,Ho=0}}function jr(e){try{for(zo=0;zo<Ro.length;zo++){let e=Ro[zo];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),br(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;zo<Ro.length;zo++){let e=Ro[zo];e&&(e.flags&=-2)}zo=-1,Ro.length=0,Ar(e),Wo=null,(Ro.length||Bo.length)&&jr(e)}}function Mr(e,t){Ko=e,Ko?(Ko.enabled=!0,qo.forEach(({event:e,args:t})=>Ko.emit(e,...t)),qo=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Mr(e,t)}),setTimeout(()=>{Ko||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qo=[])},3e3)):qo=[]}function Nr(e){let t=Jo;return Jo=e,Yo=e&&e.type.__scopeId||null,t}function Pr(e){Yo=e}function Fr(){Yo=null}function Ir(e,t=Jo,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&eo(-1);let i=Nr(t),a;try{a=e(...n)}finally{Nr(i),r._d&&eo(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Lr(e,t){if(Jo===null)return e;let n=Oo(Jo),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=S]=t[e];i&&(M(i)&&(i={mounted:i,updated:i}),i.deep&&yn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Rr(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(wt(),xr(c,n,8,[e.el,s,e,t]),Tt())}}function zr(e,t){if(jc){let n=jc.provides,r=jc.parent&&jc.parent.provides;r===n&&(n=jc.provides=Object.create(r)),n[e]=t}}function Br(e,t,n=!1){let r=Mc();if(r||tc){let i=tc?tc._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&M(t)?t.call(r&&r.proxy):t}}function Vr(){return!!(Mc()||tc)}function Hr(e,t){return Kr(e,null,t)}function Ur(e,t){return Kr(e,null,{flush:`post`})}function Wr(e,t){return Kr(e,null,{flush:`sync`})}function Gr(e,t,n){return Kr(e,t,n)}function Kr(e,t,n=S){let{immediate:r,deep:i,flush:a,once:o}=n,s=O({},n),c=t&&r||!t&&a!==`post`,l;if(Lc){if(a===`sync`){let e=Qo();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=w,e.resume=w,e.pause=w,e}}let u=jc;s.call=(e,t,n)=>xr(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{R(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Er(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=vn(e,t,s);return Lc&&(l?l.push(f):c&&f()),f}function qr(e,t,n){let r=this.proxy,i=N(e)?e.includes(`.`)?Jr(r,e):()=>r[e]:e.bind(r,r),a;M(t)?a=t:(a=t.handler,n=t);let o=Fc(this),s=Kr(i,a.bind(r),n);return o(),s}function Jr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Yr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),(!d||ns(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Xr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=os(t.props,c),h=ns(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Qr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Qr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Zr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}function Zr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Qr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[es]=o,e&&(r(a,e,i),r(o,e,i)),o}function $r(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Is(()=>{e.isMounted=!0}),zs(()=>{e.isUnmounting=!0}),e}function ei(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==z){t=n;break}}return t}function ti(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ni(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=ti(n,e),S=(e,t)=>{e&&xr(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),A(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[ls]&&t[ls](!0);let i=x[b];i&&ao(e,i)&&i.el[ls]&&i.el[ls](),S(r,[t])},enter(t){if(x[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=_||l,i=v||u,o=y||d;else return;let s=!1;t[us]=e=>{s||(s=!0,S(e?o:i,[t]),w.delayedLeave&&w.delayedLeave(),t[us]=void 0)};let c=t[us].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[us]&&t[us](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[ls]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[ls]=void 0,x[i]===e&&delete x[i])};let o=t[ls].bind(null,!1);x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=ni(e,t,n,r,i);return i&&i(a),a}};return w}function ri(e){if(Ms(e))return e=uo(e),e.children=null,e}function ii(e){if(!Ms(e))return ts(e.type)&&e.children?ei(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&M(n.default))return n.default()}}function ai(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ai(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oi(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===xc?(o.patchFlag&128&&i++,r=r.concat(oi(o.children,t,s))):(t||o.type!==z)&&r.push(s==null?o:uo(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function si(e,t){return M(e)?O({name:e.name},t,{setup:e}):e}function ci(){let e=Mc();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function li(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ui(e){let t=Mc(),n=an(null);if(t){let r=t.refs===S?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function di(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}function fi(e,t,n,r,i=!1){if(A(e)){e.forEach((e,a)=>fi(e,t&&(A(t)?t[a]:t),n,r,i));return}if(js(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&fi(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Oo(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===S?s.refs={}:s.refs,d=s.setupState,f=I(d),p=d===S?T:e=>di(u,e)?!1:k(f,e),m=(e,t)=>
vendor: 8,303 bytes, lines 2-4
2!(t&&di(u,t));if(l!=null&&l!==c){if(pi(t),N(l))u[l]=null,p(l)&&(d[l]=null);else if(nn(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(M(c))br(c,s,12,[o,u]);else{let t=N(c),r=nn(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)A(n)&&ee(n,a);else if(A(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),gs.delete(e)};t.id=-1,gs.set(e,t),R(t,n)}else pi(e),s()}}}function pi(e){let t=gs.get(e);t&&(t.flags|=8,gs.delete(e))}function mi(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Ar(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Ar(),t._vnode=e},d=(n,r,s,l,u,y=!1)=>{y||=!!r.dynamicChildren;let b=Ss(n)&&n.data===`[`,x=()=>h(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(y=!1,r.dynamicChildren=null);let D=null;switch(S){case Sc:E===3?(n.data!==r.children&&(vs(),n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case z:v(n)?(D=a(n),_(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case Cc:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=a(D);return b?a(D):D}else x();break;case xc:D=b?m(n,r,s,l,u,y):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!v(n)?x():f(n,r,s,l,u,y);else if(w&6){r.slotScopeIds=u;let e=o(n);if(D=b?g(n):Ss(n)&&n.data===`teleport start`?g(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,xs(e),y),js(r)&&!r.type.__asyncResolved){let t;b?(t=B(xc),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?fo(``):B(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,s,l,u,y,e,p):x():w&128&&(D=r.type.hydrate(n,r,s,l,xs(o(n)),u,y,e,d))}return C!=null&&fi(C,null,l,r),D},f=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,h=c===`input`||c===`option`;if(h||u!==-1){f&&Rr(t,null,n,`created`);let c=!1;if(v(e)){c=Ia(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),m.beforeEnter(r)}_(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(;r;){hi(e,1)||vs();let t=r;r=r.nextSibling,s(t)}}else if(d&8){let n=t.children;n[0]===`
3`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
4`)&&(hi(e,0)||vs(),e.textContent=t.children)}if(l){if(h||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(h&&(i.endsWith(`value`)||i===`indeterminate`)||E(i)&&!fe(i)||i[0]===`.`||t&&!fe(i))&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&Zt(l.style))for(let e in l.style)l.style[e]}let g;(g=l&&l.onVnodeBeforeMount)&&yo(g,n,t),f&&Rr(t,null,n,`beforeMount`),((g=l&&l.onVnodeMounted)||f||c)&&Ya(()=>{g&&yo(g,n,t),c&&m.enter(e),f&&Rr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t<p;t++){let m=u?f[t]:f[t]=ho(f[t]),h=m.type===Sc;e?(h&&!u&&t+1<p&&ho(f[t+1]).type===Sc&&(c(i(e.data.slice(m.children.length)),r,a(e)),e.data=m.children),e=d(e,m,o,s,l,u)):h&&!m.children?c(m.el=i(``),r):(hi(r,1)||vs(),n(null,m,r,null,o,s,xs(r),l))}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&Ss(f)&&f.data===`]`?a(t.anchor=f):(vs(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(hi(e.parentElement,1)||vs(),t.el=null,l){let t=g(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,xs(d),c),r&&(r.vnode.el=t.el,wa(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Ss(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},_=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}function hi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Cs);)e=e.parentElement;let n=e&&e.getAttribute(Cs);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(ws[t])}}function gi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}function _i(e,t){if(Ss(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ss(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}function vi(e){M(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return si({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>_i(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=jc;if(li(e),u)return()=>yi(u,e);let t=t=>{l=null,Sr(t,e,13,!r)};if(s&&e.suspense||Lc)return p().then(t=>()=>yi(t,e)).catch(e=>(t(e),()=>r?B(r,{error:e}):null));let a=rn(!1),c=rn(),d=rn(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Ms(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return yi(u,e);if(c.value&&r)return B(r,{error:c.value});if(n&&!d.value)return yi(n,e)}}})}function yi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=B(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}function bi(e,t){return A(e)?e.some(e=>bi(e,t)):N(e)?e.split(`,`).includes(t):ie(e)?(e.lastIndex=0,e.test(t)):!1}function xi(e,t){Ci(e,`a`,t)}function Si(e,t){Ci(e,`da`,t)}function Ci(e,t,n=jc){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Di(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ms(e.parent.vnode)&&wi(r,t,n,e),e=e.parent}}function wi(e,t,n,r){let i=Di(t,e,r,!0);Bs(()=>{ee(r[t],i)},n)}function Ti(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ei(e){return e.shapeFlag&128?e.ssContent:e}function Di(e,t,n=jc,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{wt();let i=Fc(n),a=xr(t,n,e,r);return i(),Tt(),a};return r?i.unshift(a):i.push(a),a}}function Oi(e,t=jc){Di(`ec`,e,t)}function ki(e,t){return Mi(Ws,e,!0,t)||e}function Ai(e){return N(e)?Mi(Ws,e,!1)||e:e||Ks}function ji(e){return Mi(Gs,e)}function Mi(e,t,n=!0,r=!1){let i=Jo||jc;if(i){let n=i.type;if(e===Ws){let e=ko(n,!1);if(e&&(e===t||e===F(t)||e===ve(F(t))))return n}let a=Ni(i[e]||n[e],t)||Ni(i.appContext[e],t);return!a&&r?n:a}}function Ni(e,t){return e&&(e[t]||e[F(t)]||e[ve(F(t))])}function Pi(e,t,n,r){let i,a=n&&n[r],o=A(e);if(o||N(e)){let n=o&&Zt(e),r=!1,s=!1;n&&(r=!$t(e),s=Qt(e),e=Mt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?ir(rr(e[n])):rr(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(P(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Fi(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(A(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ii(e,t,n={},r,i){if(Jo.ce||Jo.parent&&js(Jo.parent)&&Jo.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Qa(),ro(xc,null,[B(`slot`,n,r&&r()
vendor: 13,080 bytes, line 4
4)],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Qa();let o=a&&Li(a(n)),s=n.key||o&&o.key,c=ro(xc,{key:(s&&!ae(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Li(e){return e.some(e=>io(e)?!(e.type===z||e.type===xc&&!Li(e.children)):!0)?e:null}function Ri(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ye(r)]=e[r];return n}function zi(){return null}function Bi(){return null}function Vi(e){}function Hi(e){}function Ui(){return null}function Wi(){}function Gi(e,t){return null}function Ki(){return Ji(`useSlots`).slots}function qi(){return Ji(`useAttrs`).attrs}function Ji(e){let t=Mc();return t.setupContext||=Do(t)}function Yi(e){return A(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Xi(e,t){let n=Yi(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?A(r)||M(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Zi(e,t){return!e||!t?e||t:A(e)&&A(t)?e.concat(t):O({},Yi(e),Yi(t))}function Qi(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function $i(e){let t=Mc(),n=Lc,r=e();Ic(),n&&Pc(!1);let i=()=>{Fc(t),n&&Pc(!0)},a=()=>{Mc()!==t&&t.scope.off(),Ic(),n&&Pc(!1)};return oe(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}function ea(e){let t=ia(e),n=e.proxy,r=e.ctx;Qs=!1,t.beforeCreate&&na(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:x,renderTracked:S,renderTriggered:C,errorCaptured:T,serverPrefetch:E,expose:D,inheritAttrs:O,components:ee,directives:te,filters:k}=t;if(l&&ta(l,r,null),o)for(let e in o){let t=o[e];M(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);P(t)&&(e.data=Kt(t))}if(Qs=!0,a)for(let e in a){let t=a[e],i=M(t)?t.bind(n,n):M(t.get)?t.get.bind(n,n):w,o=!M(t)&&M(t.set)?t.set.bind(n):w,s=Hc({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(let e in s)ra(s[e],r,n,e);if(c){let e=M(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{zr(t,e[t])})}u&&na(u,e,`c`);function j(e,t){A(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Fs,d),j(Is,f),j(Ls,p),j(Rs,m),j(xi,h),j(Si,g),j(Oi,T),j(Us,S),j(Hs,C),j(zs,v),j(Bs,b),j(Vs,E),A(D))if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};x&&e.render===w&&(e.render=x),O!=null&&(e.inheritAttrs=O),ee&&(e.components=ee),te&&(e.directives=te),E&&li(e)}function ta(e,t,n=w){A(e)&&(e=ca(e));for(let n in e){let r=e[n],i;i=P(r)?`default`in r?Br(r.from||n,r.default,!0):Br(r.from||n):Br(r),nn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function na(e,t,n){xr(A(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ra(e,t,n,r){let i=r.includes(`.`)?Jr(n,r):()=>n[r];if(N(e)){let n=t[e];M(n)&&Gr(i,n)}else if(M(e))Gr(i,e.bind(n));else if(P(e))if(A(e))e.forEach(e=>ra(e,t,n,r));else{let r=M(e.handler)?e.handler.bind(n):t[e.handler];M(r)&&Gr(i,r,e)}}function ia(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>aa(c,e,o,!0)),aa(c,t,o)),P(t)&&a.set(t,c),c}function aa(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&aa(e,a,n,!0),i&&i.forEach(t=>aa(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$s[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}function oa(e,t){return t?e?function(){return O(M(e)?e.call(this,this):e,M(t)?t.call(this,this):t)}:t:e}function sa(e,t){return ua(ca(e),ca(t))}function ca(e){if(A(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function la(e,t){return e?[...new Set([].concat(e,t))]:t}function ua(e,t){return e?O(Object.create(null),e,t):t}function da(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:O(Object.create(null),Yi(e),Yi(t??{})):t}function fa(e,t){if(!e)return t;if(!t)return e;let n=O(Object.create(null),e);for(let r in t)n[r]=la(e[r],t[r]);return n}function pa(){return{app:null,config:{isNativeTag:T,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}function ma(e,t){return function(n,r=null){M(n)||(n=O({},n)),r!=null&&!P(r)&&(r=null);let i=pa(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:ec++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Uc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&M(e.install)?(a.add(e),e.install(c,...t)):M(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||B(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Oo(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(xr(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=tc;tc=c;try{return e()}finally{tc=t}}};return c}}function ha(e,t,n=S){let r=Mc(),i=F(t),a=_e(t),o=nc(e,i),s=dn((o,s)=>{let c,l=S,u;return Wr(()=>{let t=e[i];be(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!be(o,c)&&!(l!==S&&be(e,l)))return;let d=r.vnode.props;d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(c=e,s()),r.emit(`update:${t}`,o),be(e,o)&&be(e,l)&&!be(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||S:s,done:!1}:{done:!0}}}},s}function ga(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||S,i=n,a=t.startsWith(`update:`),o=a&&nc(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>N(e)?e.trim():e)),o.number&&(i=n.map(Ce)));let s,c=r[s=ye(t)]||r[s=ye(F(t))];!c&&a&&(c=r[s=ye(_e(t))]),c&&xr(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,xr(l,e,6,i)}}function _a(e,t,n=!1){let r=n?rc:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!M(e)){let r=e=>{let n=_a(e,t,!0);n&&(s=!0,O(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(P(e)&&r.set(e,null),null):(A(a)?a.forEach(e=>o[e]=null):O(o,a),P(e)&&r.set(e,o),o)}function va(e,t){return!e||!E(t)?!1:(t=t.slice(2).replace(/Once$/,``),k(e,t[0].toLowerCase()+t.slice(1))||k(e,_e(t))||k(e,t))}function ya(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Nr(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=ho(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=ho(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:ic(s)}}catch(t){wc.length=0,Sr(t,e,1),_=B(z)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(D)&&(v=ac(v,a)),y=uo(y,v,!1,!0))}return n.dirs&&(y=uo(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&ai(y,n.transition),_=y,Nr(g),_}function ba(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(io(r)){if(r.type!==z||r.children===`v-if`){if(n)return;n=r}}else return}return n}function xa(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Sa(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Ca(o,r,n)&&!va(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Sa(r,o,l):!0:!!o;return!1}function Sa(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Ca(t,e,a)&&!va(n,a))return!0}return!1}function Ca(e,t,n){let r=e[n],i=t[n];return n===`style`&&P(r)&&P(i)?!y(r,i):r!==i}function wa({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}function Ta(e,t,n,r=!1){let i={},a=sc();e.propsDefaults=Object.create(null),Da(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:qt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Ea(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(va(e.emitsOptions,o))continue;let u=t[o];if(c)if(k(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=F(o);i[t]=Oa(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Da(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!k(t,a)&&((r=_e(a))===a||!k(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Oa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!k(t,e))&&(delete a[e],l=!0)}l&&kt(e.attrs,`set`,``)}function Da(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(fe(c))continue;let l=t[c],u;i&&k(i,u=F(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:va(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=I(n),r=s||S;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Oa(i,t,s,r[s],e,!k(r,s))}}return o}function Oa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=k(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&M(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Fc(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===_e(n))&&(r=!0))}return r}function ka(e,t,n=!1){let r=n?lc:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!M(e)){let r=e=>{c=!0;let[n,r]=ka(e,t,!0);O(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return P(e)&&r.set(e,C),C;if(A(a))for(let e=0;e<a.length;e++){let t=F(a[e]);Aa(t)&&(o[t]=S)}else if(a)for(let e in a){let t=F(e);if(Aa(t)){let n=a[e],r=o[t]=A(n)||M(n)?{type:n}:O({},n),i=r.type,c=!1,l=!0;if(A(i))for(let e=0;e<i.length;++e){let t=i[e],n=M(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=M(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||k(r,`default`))&&s.push(t)}}let l=[o,s];return P(e)&&r.set(e,l),l}function Aa(e){return e[0]!==`$`&&!fe(e)}function ja(e){return Na(e)}function Ma(e){return Na(e,mi)}function Na(e,t){let n=Ee();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=w,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ao(e,t)&&(r=de(e),oe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Sc:g(e,t,n,r);break;case z:_(e,t,n,r);break;case Cc:e??v(t,n,r,o);break;case xc:k(e,t,n,r,i,a,o,s,c);break;default:d&1?x(e,t,n,r,i,a,o,s,c):d&6?A(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,he)}u!=null&&i?fi(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&fi(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},x=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,Pa(e,c),l,d),_&&Rr(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!fe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&yo(p,i,e)}_&&Rr(e,null,i,`beforeMount`);let v=Ia(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{p&&yo(p,i,e),v&&g.enter(f),_&&Rr(e,null,i,`mounted`)}finally{}},s)},E=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||vc(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?go(e[l]):ho(e[l]);h(null,c,t,n,r,i,a,o,s)}}
vendor: 6,403 bytes, line 4
4,O=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||S,m=t.props||S,h;if(n&&Fa(n,!1),(h=m.onVnodeBeforeUpdate)&&yo(h,n,t,e),f&&Rr(t,e,n,`beforeUpdate`),n&&Fa(n,!0),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?ee(e.dynamicChildren,d,c,n,r,Pa(t,i),o):s||M(e,t,c,null,n,r,Pa(t,i),o,!1),l>0){if(l&16)te(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&d==null&&te(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&R(()=>{h&&yo(h,n,t,e),f&&Rr(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===xc||!ao(c,l)||c.shapeFlag&198)?d(c.el):n;h(c,l,u,null,r,i,a,o,!0)}},te=(e,t,n,r,i)=>{if(t!==n){if(t!==S)for(let o in t)!fe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(fe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},k=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ee(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&La(e,t,!0)):M(e,t,n,f,a,o,c,l,u)},A=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):j(t,n,r,i,a,o,c):ne(e,t,c)},j=(e,t,n,r,i,a,o)=>{let s=e.component=bo(e,r,i);if(Ms(e)&&(s.ctx.renderer=he),So(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,re,o),!e.el){let r=s.subTree=B(z);_(null,r,t,n),e.placeholder=r.el}}else re(s,e,t,n,i,a,o)},ne=(e,t,n)=>{let r=t.component=e.component;if(xa(e,t,n))if(r.asyncDep&&!r.asyncResolved){ie(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},re=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=za(e);if(n){t&&(t.el=c.el,ie(e,t,o)),n.asyncDep.then(()=>{R(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;Fa(e,!1),t?(t.el=c.el,ie(e,t,o)):t=c,n&&xe(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&yo(f,s,t,c),Fa(e,!0);let p=ya(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),de(m),e,i,a),t.el=p.el,u===null&&wa(e,p.el),r&&R(r,i),(f=t.props&&t.props.onVnodeUpdated)&&R(()=>yo(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=js(t);if(Fa(e,!1),l&&xe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&yo(o,d,t),Fa(e,!0),s&&ge){let t=()=>{e.subTree=ya(e),ge(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ya(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>yo(o,d,e),i)}(t.shapeFlag&256||d&&js(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Cn(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Er(u),Fa(e,!0),l()},ie=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ea(e,t.props,r,n),_c(e,t.children,n),wt(),kr(e),Tt()},M=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ae(l,f,n,r,i,a,o,s,c);return}else if(p&256){N(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&ue(l,i,a),f!==l&&u(n,f)):d&16?m&16?ae(l,f,n,r,i,a,o,s,c):ue(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},N=(e,t,n,r,i,a,o,s,c)=>{e||=C,t||=C;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?go(t[f]):ho(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?ue(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},ae=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?go(t[l]):ho(t[l]);if(ao(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?go(t[f]):ho(t[f]);if(ao(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?go(t[l]):ho(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)oe(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?go(t[l]):ho(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,x=0,S=Array(y);for(l=0;l<y;l++)S[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){oe(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&ao(r,t[_])){u=_;break}u===void 0?oe(r,i,a,!0):(S[u-m]=l+1,u>=x?x=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let w=b?Ra(S):C;for(_=w.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||Va(f):r;S[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==w[_]?P(d,n,p,2):_--)}}},P=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){P(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,he);return}if(c===xc){r(s,t,n);for(let e=0;e<u.length;e++)P(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Cc){y(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),R(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[ls](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},oe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(wt(),fi(s,null,n,e,!0),Tt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!js(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&yo(_,t,e),u&6)le(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Rr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,he,r):l&&!l.hasOnce&&(a!==xc||d>0&&d&64)?ue(l,t,n,!1,!0):(a===xc&&d&384||!i&&u&16)&&ue(c,t,n),r&&se(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&yo(_,t,e),h&&Rr(e,null,t,`unmounted`),v&&(e.el=null)},n)},se=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===xc){ce(n,r);return}if(t===Cc){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ce=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)}
vendor: 4,102 bytes, line 4
4,le=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ba(c),Ba(l),r&&xe(r),i.stop(),a&&(a.flags|=8,oe(o,e,t,n)),s&&R(s,t),R(()=>{e.isUnmounted=!0},t)},ue=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)oe(e[o],t,n,r,i)},de=e=>{if(e.shapeFlag&6)return de(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[es];return n?f(n):t},pe=!1,me=(e,t,n)=>{let r;e==null?t._vnode&&(oe(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,pe||=(pe=!0,kr(r),Ar(),!1)},he={p:h,um:oe,m:P,r:se,mt:j,mc:D,pc:M,pbc:ee,n:de,o:e},F,ge;return t&&([F,ge]=t(he)),{render:me,hydrate:F,createApp:ma(me,F)}}function Pa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Fa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ia(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function La(e,t,n=!1){let r=e.children,i=t.children;if(A(r)&&A(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=go(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&La(t,a)),a.type===Sc&&(a.patchFlag===-1&&(a=i[e]=go(a)),a.el=t.el),a.type===z&&!a.el&&(a.el=t.el)}}function Ra(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function za(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:za(t)}function Ba(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Va(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Va(t.subTree):null}function Ha(e,t){let n=e.props&&e.props[t];M(n)&&n()}function Ua(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ga(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Ha(e,`onPending`),Ha(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Xa(f,e.ssFallback)):f.resolve(!1,!0)}function Wa(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,ao(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Xa(d,p)))):(d.pendingId=yc++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Xa(d,p))):m&&ao(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&ao(m,f))c(m,f,n,r,i,d,a,o,s),Xa(d,f);else if(Ha(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=yc++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Ga(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Za(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?we(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:yc++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),Or(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&R(()=>
vendor: 6,345 bytes, line 4
4r.ssFallback.el=null,x)),g||f(o,u,a,0)),x.isFallbackMountPending=!1,Xa(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&Or(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Ha(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Ha(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Xa(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Sr(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ic(),e.asyncResolved=!0;let{vnode:s}=e;wo(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),wa(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Ka(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ga(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function qa(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ja(r?n.default:n),e.ssFallback=r?Ja(n.fallback):B(z)}function Ja(e){let t;if(M(e)){let n=Ec&&e._c;n&&(e._d=!1,Qa()),e=e(),n&&(e._d=!0,t=Tc,$a())}return A(e)&&(e=ba(e)),e=ho(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ya(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):Or(e)}function Xa(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,wa(r,i))}function Za(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Qa(e=!1){wc.push(Tc=e?null:[])}function $a(){wc.pop(),Tc=wc[wc.length-1]||null}function eo(e,t=!1){Ec+=e,e<0&&Tc&&t&&(Tc.hasOnce=!0)}function to(e){return e.dynamicChildren=Ec>0?Tc||C:null,$a(),Ec>0&&Tc&&Tc.push(e),e}function no(e,t,n,r,i,a){return to(so(e,t,n,r,i,a,!0))}function ro(e,t,n,r,i){return to(B(e,t,n,r,i,!0))}function io(e){return e?e.__v_isVNode===!0:!1}function ao(e,t){return e.type===t.type&&e.key===t.key}function oo(e){}function so(e,t=null,n=null,r=0,i=null,a=e===xc?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dc(t),ref:t&&Oc(t),scopeId:Yo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Jo};return s?(_o(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=N(n)?8:16),Ec>0&&!o&&Tc&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Tc.push(c),c}function co(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Ks)&&(e=z),io(e)){let r=uo(e,t,!0);return n&&_o(r,n),Ec>0&&!a&&Tc&&(r.shapeFlag&6?Tc[Tc.indexOf(e)]=r:Tc.push(r)),r.patchFlag=-2,r}if(Ao(e)&&(e=e.__vccOpts),t){t=lo(t);let{class:e,style:n}=t;e&&!N(e)&&(t.class=u(e)),P(n)&&(en(n)&&!A(n)&&(n=O({},n)),t.style=s(n))}let o=N(e)?1:vc(e)?128:ts(e)?64:P(e)?4:M(e)?2:0;return so(e,t,n,r,i,o,a,!0)}function lo(e){return e?en(e)||cc(e)?O({},e):e:null}function uo(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?vo(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Dc(l),ref:t&&t.ref?n&&a?A(a)?a.concat(Oc(t)):[a,Oc(t)]:Oc(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xc?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ai(u,c.clone(u)),u}function fo(e=` `,t=0){return B(Sc,null,e,t)}function po(e,t){let n=B(Cc,null,e);return n.staticCount=t,n}function mo(e=``,t=!1){return t?(Qa(),ro(z,null,e)):B(z,null,e)}function ho(e){return e==null||typeof e==`boolean`?B(z):A(e)?B(xc,null,e.slice()):io(e)?go(e):B(Sc,null,String(e))}function go(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function _o(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(A(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),_o(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!cc(t)?t._ctx=Jo:r===3&&Jo&&(Jo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else M(t)?(t={default:t,_ctx:Jo},n=32):(t=String(t),r&64?(n=16,t=[fo(t)]):n=8);e.children=t,e.shapeFlag|=n}function vo(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=u([t.class,r.class]));else if(e===`style`)t.style=s([t.style,r.style]);else if(E(e)){let n=t[e],i=r[e];i&&n!==i&&!(A(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!D(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function yo(e,t,n,r=null){xr(e,t,7,[n,r])}function bo(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||kc,a={uid:Ac++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ka(r,i),emitsOptions:_a(r,i),emit:null,emitted:null,propsDefaults:S,inheritAttrs:r.inheritAttrs,ctx:S,data:S,props:S,attrs:S,slots:S,refs:S,setupState:S,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 4,147 bytes, line 4
4sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=ga.bind(null,a),e.ce&&e.ce(a),a}function xo(e){return e.vnode.shapeFlag&4}function So(e,t=!1,n=!1){t&&Pc(t);let{props:r,children:i}=e.vnode,a=xo(e);Ta(e,r,a,t),gc(e,i,n||t);let o=a?Co(e,t):void 0;return t&&Pc(!1),o}function Co(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xs);let{setup:r}=n;if(r){wt();let n=e.setupContext=r.length>1?Do(e):null,i=Fc(e),a=br(r,e,0,[e.props,n]),o=oe(a);if(Tt(),i(),(o||e.sp)&&!js(e)&&li(e),o){if(a.then(Ic,Ic),t)return a.then(n=>{wo(e,n,t)}).catch(t=>{Sr(t,e,0)});e.asyncDep=a}else wo(e,a,t)}else Eo(e,t)}function wo(e,t,n){M(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:P(t)&&(e.setupState=un(t)),Eo(e,n)}function To(e){Rc=e,zc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Zs))}}function Eo(e,t,n){let r=e.type;if(!e.render){if(!t&&Rc&&!r.render){let t=r.template||ia(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=O(O({isCustomElement:n,delimiters:a},i),o);r.render=Rc(t,s)}}e.render=r.render||w,zc&&zc(e)}{let t=Fc(e);wt();try{ea(e)}finally{Tt(),t()}}}function Do(e){return{attrs:new Proxy(e.attrs,Vc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Oo(e){return e.exposed?e.exposeProxy||=new Proxy(un(tn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Js)return Js[n](e)},has(e,t){return t in e||t in Js}}):e.proxy}function ko(e,t=!0){return M(e)?e.displayName||e.name:e.name||t&&e.__name}function Ao(e){return M(e)&&`__vccOpts`in e}function jo(e,t,n){try{eo(-1);let r=arguments.length;return r===2?P(t)&&!A(t)?io(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&io(n)&&(n=[n]),B(e,t,n))}finally{eo(1)}}function Mo(){return;function e(t,n,r){let i=t[r];if(A(i)&&i.includes(n)||P(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function No(e,t,n,r){let i=n[r];if(i&&Po(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Po(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(be(n[e],t[e]))return!1;return Ec>0&&Tc&&Tc.push(e),!0}var Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,R,vc,yc,bc,xc,Sc,z,Cc,wc,Tc,Ec,Dc,Oc,B,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc=e((()=>{gr(),lt(),Fo=[],Io={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Lo={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`},Ro=[],zo=-1,Bo=[],Vo=null,Ho=0,Uo=Promise.resolve(),Wo=null,Go=e=>e.id==null?e.flags&2?-1:1/0:e.id,qo=[],Jo=null,Yo=null,Xo=e=>Ir,Zo=Symbol.for(`v-scx`),Qo=()=>Br(Zo),$o=new WeakMap,es=Symbol(`_vte`),ts=e=>e.__isTeleport,ns=e=>e&&(e.disabled||e.disabled===``),rs=e=>e&&(e.defer||e.defer===``),is=e=>
vendor: 4,185 bytes, line 4
4typeof SVGElement<`u`&&e instanceof SVGElement,as=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,os=(e,t)=>{let n=e&&e.to;return N(n)?t?t(n):null:n},ss={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=ns(t.props),{dynamicChildren:v}=t,y=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},b=(e=t)=>{let n=ns(e.props),r=e.target=os(e.props,m),a=Qr(r,e,h,p);r&&(o!==`svg`&&is(r)?o=`svg`:o!==`mathml`&&as(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(y(e,r,a),Zr(e,!1)))},x=e=>{let t=()=>{$o.get(e)===t&&($o.delete(e),ns(e.props)&&(y(e,n,e.anchor),Zr(e,!0)),b(e))};$o.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),rs(t.props)||a&&a.pendingBranch){x(t);return}_&&(y(t,n,i),Zr(t,!0)),b()}else{t.el=e.el;let r=t.anchor=e.anchor,u=$o.get(e);if(u){u.flags|=8,$o.delete(e),x(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ns(e.props),y=g?n:p,b=g?r:h;if(o===`svg`||is(p)?o=`svg`:(o===`mathml`||as(p))&&(o=`mathml`),v?(f(e.dynamicChildren,v,y,i,a,o,s),La(e,t,!0)):c||d(e,t,y,b,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=os(t.props,m);e&&Yr(t,e,null,l,0)}else g&&Yr(t,p,h,l,1);Zr(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!ns(f),m=$o.get(e);if(m&&(m.flags|=8,$o.delete(e),p=!1),d&&(i(l),i(u)),a&&i(c),o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,p,!!i.dynamicChildren)}},move:Yr,hydrate:Xr},cs=ss,ls=Symbol(`_leaveCb`),us=Symbol(`_enterCb`),ds=[Function,Array],fs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ds,onEnter:ds,onAfterEnter:ds,onEnterCancelled:ds,onBeforeLeave:ds,onLeave:ds,onAfterLeave:ds,onLeaveCancelled:ds,onBeforeAppear:ds,onAppear:ds,onAfterAppear:ds,onAppearCancelled:ds},ps=e=>{let t=e.subTree;return t.component?ps(t.component):t},ms={name:`BaseTransition`,props:fs,setup(e,{slots:t}){let n=Mc(),r=$r();return()=>{let i=t.default&&oi(t.default(),!0);if(!i||!i.length)return;let a=ei(i),o=I(e),{mode:s}=o;if(r.isLeaving)return ri(a);let c=ii(a);if(!c)return ri(a);let l=ni(c,o,r,n,e=>l=e);c.type!==z&&ai(c,l);let u=n.subTree&&ii(n.subTree);if(u&&u.type!==z&&!ao(u,c)&&ps(n).type!==z){let e=ni(u,o,r,n);if(ai(u,e),s===`out-in`&&c.type!==z)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},ri(a);s===`in-out`&&c.type!==z?e.delayLeave=(e,t,n)=>{let i=ti(r,u);i[String(u.key)]=u,e[ls]=()=>{t(),e[ls]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}},hs=ms,gs=new WeakMap,_s=!1,vs=()=>{_s||=(console.error(`Hydration completed but contains mismatches.`),!0)},ys=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,bs=e=>e.namespaceURI.includes(`MathML`),xs=e=>{if(e.nodeType===1){if(ys(e))return`svg`;if(bs(e))return`mathml`}},Ss=e=>e.nodeType===8,Cs=`data-allow-mismatch`,ws={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`},Ts=Ee().requestIdleCallback||(e=>setTimeout(e,1)),Es=Ee().cancelIdleCallback||(e=>clearTimeout(e)),Ds=(e=1e4)=>t=>{let n=Ts(t,{timeout:e});return()=>Es(n)},Os=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(gi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},ks=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},As=(e=[])=>(t,n)=>{N(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a},js=e=>!!e.type.__asyncLoader,Ms=e=>e.type.__isKeepAlive,Ns={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array
vendor: 20,599 bytes, line 4
4],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Mc(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),R(()=>{a.isDeactivated=!1,a.a&&xe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&yo(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Ba(t.m),Ba(t.a),l(e,f,null,1,s),R(()=>{t.da&&xe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&yo(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Ti(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=ko(js(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!ao(t,o))?p(t):o&&Ti(o),i.delete(e),a.delete(e)}Gr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>bi(e,t)),t&&m(e=>!bi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(vc(n.subTree.type)?R(()=>{i.set(g,Ei(n.subTree))},n.subTree.suspense):i.set(g,Ei(n.subTree)))};return Is(_),Rs(_),zs(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ei(t);if(e.type===i.type&&e.key===i.key){Ti(i);let e=i.component.da;e&&R(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!io(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ei(r);if(s.type===z)return o=null,s;let c=s.type,l=ko(js(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!bi(u,l))||d&&l&&bi(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=uo(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ai(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,vc(r.type)?r:s}}},Ps=e=>(t,n=jc)=>{(!Lc||e===`sp`)&&Di(e,(...e)=>t(...e),n)},Fs=Ps(`bm`),Is=Ps(`m`),Ls=Ps(`bu`),Rs=Ps(`u`),zs=Ps(`bum`),Bs=Ps(`um`),Vs=Ps(`sp`),Hs=Ps(`rtg`),Us=Ps(`rtc`),Ws=`components`,Gs=`directives`,Ks=Symbol.for(`v-ndc`),qs=e=>e?xo(e)?Oo(e):qs(e.parent):null,Js=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qs(e.parent),$root:e=>qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ia(e),$forceUpdate:e=>e.f||=()=>{Er(e.update)},$nextTick:e=>e.n||=wr.bind(e.proxy),$watch:e=>qr.bind(e)}),Ys=(e,t)=>e!==S&&!e.__isScriptSetup&&k(e,t),Xs={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Ys(r,t))return o[t]=1,r[t];else if(i!==S&&k(i,t))return o[t]=2,i[t];else if(k(a,t))return o[t]=3,a[t];else if(n!==S&&k(n,t))return o[t]=4,n[t];else Qs&&(o[t]=0)}let l=Js[t],u,d;if(l)return t===`$attrs`&&Ot(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==S&&k(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,k(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Ys(i,t)?(i[t]=n,!0):r!==S&&k(r,t)?(r[t]=n,!0):k(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==S&&s[0]!==`$`&&k(e,s)||Ys(t,s)||k(a,s)||k(r,s)||k(Js,s)||k(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?k(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Zs=O({},Xs,{get(e,t){if(t!==Symbol.unscopables)return Xs.get(e,t,e)},has(e,t){return t[0]!==`_`&&!Ne(t)}}),Qs=!0,$s={data:oa,props:da,emits:da,methods:ua,computed:ua,beforeCreate:la,created:la,beforeMount:la,mounted:la,beforeUpdate:la,updated:la,beforeDestroy:la,beforeUnmount:la,destroyed:la,unmounted:la,activated:la,deactivated:la,errorCaptured:la,serverPrefetch:la,components:ua,directives:ua,watch:fa,provide:oa,inject:sa},ec=0,tc=null,nc=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${F(t)}Modifiers`]||e[`${_e(t)}Modifiers`],rc=new WeakMap,ic=e=>{let t;for(let n in e)(n===`class`||n===`style`||E(n))&&((t||={})[n]=e[n]);return t},ac=(e,t)=>{let n={};for(let r in e)(!D(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},oc={},sc=()=>Object.create(oc),cc=e=>Object.getPrototypeOf(e)===oc,lc=new WeakMap,uc=e=>e===`_`||e===`_ctx`||e===`$stable`,dc=e=>A(e)?e.map(ho):[ho(e)],fc=(e,t,n)=>{if(t._n)return t;let r=Ir((...e)=>dc(t(...e)),n);return r._c=!1,r},pc=(e,t,n)=>{let r=e._ctx;for(let n in e){if(uc(n))continue;let i=e[n];if(M(i))t[n]=fc(n,i,r);else if(i!=null){let e=dc(i);t[n]=()=>e}}},mc=(e,t)=>{let n=dc(t);e.slots.default=()=>n},hc=(e,t,n)=>{for(let r in t)(n||!uc(r))&&(e[r]=t[r])},gc=(e,t,n)=>{let r=e.slots=sc();if(e.vnode.shapeFlag&32){let e=t._;e?(hc(r,t,n),n&&Se(r,`_`,e,!0)):pc(t,r)}else t&&mc(e,t)},_c=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=S;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:hc(i,t,n):(a=!t.$stable,pc(t,i)),o=t}else t&&(mc(e,t),o={default:1});if(a)for(let e in i)!uc(e)&&o[e]==null&&delete i[e]},R=Ya,vc=e=>e.__isSuspense,yc=0,bc={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Ua(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Wa(e,t,n,r,i,o,s,c,l)}},hydrate:Ka,normalize:qa},xc=Symbol.for(`v-fgt`),Sc=Symbol.for(`v-txt`),z=Symbol.for(`v-cmt`),Cc=Symbol.for(`v-stc`),wc=[],Tc=null,Ec=1,Dc=({key:e})=>e??null,Oc=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:N(e)||nn(e)||M(e)?{i:Jo,r:e,k:t,f:!!n}:e),B=co,kc=pa(),Ac=0,jc=null,Mc=()=>jc||Jo;{let e=Ee(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Nc=t(`__VUE_INSTANCE_SETTERS__`,e=>jc=e),Pc=t(`__VUE_SSR_SETTERS__`,e=>Lc=e)}Fc=e=>{let t=jc;return Nc(e),e.scope.on(),()=>{e.scope.off(),Nc(t)}},Ic=()=>{jc&&jc.scope.off(),Nc(null)},Lc=!1,Bc=()=>!Rc,Vc={get(e,t){return Ot(e,`get`,``),e[t]}},Hc=(e,t)=>hn(e,t,Lc),Uc=`3.5.32`,Wc=w,Gc=Lo,Kc=Ko,qc=Mr,Jc={createComponentInstance:bo,setupComponent:So,renderComponentRoot:ya,setCurrentRenderingInstance:Nr,isVNode:io,normalizeVNode:ho,getComponentPublicInstance:Oo,ensureValidVNode:Li,pushWarningContext:_r,popWarningContext:vr}})),Xc=t({BaseTransition:()=>hs,BaseTransitionPropsValidators:()=>fs,Comment:()=>z,DeprecationTypes:()=>null,EffectScope:()=>xn,ErrorCodes:()=>Io,ErrorTypeStrings:()=>Gc,Fragment:()=>xc,KeepAlive:()=>Ns,ReactiveEffect:()=>Cn,Static:()=>Cc,Suspense:()=>bc,Teleport:()=>cs,Text:()=>Sc,TrackOpTypes:()=>dr,Transition:()=>uu,TransitionGroup:()=>zu,TriggerOpTypes:()=>fr,VueElement:()=>Nu,assertNumber:()=>yr,callWithAsyncErrorHandling:()=>xr,callWithErrorHandling:()=>br,camelize:()=>F,capitalize:()=>ve,cloneVNode:()=>uo,compatUtils:()=>null,computed:()=>Hc,createApp:()=>rd,createBlock:()=>ro,createCommentVNode:()=>mo,createElementBlock:()=>no,createElementVNode:()=>so,createHydrationRenderer:()=>Ma,createPropsRestProxy:()=>Qi,createRenderer:()=>ja,createSSRApp:()=>id,createSlots:()=>Fi,createStaticVNode:()=>po,createTextVNode:()=>fo,createVNode:()=>B,customRef:()=>dn,defineAsyncComponent:()=>vi,defineComponent:()=>si,defineCustomElement:()=>Dl,defineEmits:()=>Bi,defineExpose:()=>Vi,defineModel:()=>Wi,defineOptions:()=>Hi,defineProps:()=>zi,defineSSRCustomElement:()=>ju,defineSlots:()=>Ui,devtools:()=>Kc,effect:()=>St,effectScope:()=>ut,getCurrentInstance:()=>Mc,getCurrentScope:()=>dt,getCurrentWatcher:()=>gn,getTransitionRawChildren:()=>oi,guardReactiveProps:()=>lo,h:()=>jo,handleError:()=>Sr,hasInjectionContext:()=>Vr,hydrate:()=>nd,hydrateOnIdle:()=>Ds,hydrateOnInteraction:()=>As,hydrateOnMediaQuery:()=>ks,hydrateOnVisible:()=>Os,initCustomFormatter:()=>Mo,initDirectivesForSSR:()=>od,inject:()=>Br,isMemoSame:()=>Po,isProxy:()=>en,isReactive:()=>Zt,isReadonly:()=>Qt,isRef:()=>nn,isRuntimeOnly:()=>Bc,isShallow:()=>$t,isVNode:()=>io,markRaw:()=>tn,mergeDefaults:()=>Xi,mergeModels:()=>Zi,mergeProps:()=>vo,nextTick:()=>wr,nodeOps:()=>ru,normalizeClass:()=>u,normalizeProps:()=>d,normalizeStyle:()=>s,onActivated:()=>xi,onBeforeMount:()=>Fs,onBeforeUnmount:()=>zs,onBeforeUpdate:()=>Ls,onDeactivated:()=>Si,onErrorCaptured:()=>Oi,onMounted:()=>Is,onRenderTracked:()=>Us,onRenderTriggered:()=>Hs,onScopeDispose:()=>ft,onServerPrefetch:()=>Vs,onUnmounted:()=>Bs,onUpdated:()=>Rs,onWatcherCleanup:()=>_n,openBlock:()=>Qa,patchProp:()=>ku,popScopeId:()=>Fr,provide:()=>zr,proxyRefs:()=>un,pushScopeId:()=>Pr,queuePostFlushCb:()=>Or,reactive:()=>Kt,readonly:()=>Jt,ref:()=>rn,registerRuntimeCompiler:()=>To,render:()=>td,renderList:()=>Pi,renderSlot:()=>Ii,resolveComponent:()=>ki,resolveDirective:()=>ji,resolveDynamicComponent:()=>Ai,resolveFilter:()=>null,resolveTransitionHooks:()=>ni,setBlockTracking:()=>eo,setDevtoolsHook:()=>qc,setTransitionHooks:()=>ai,shallowReactive:()=>qt,shallowReadonly:()=>Yt,shallowRef:()=>an,ssrContextKey:()=>Zo,ssrUtils:()=>Jc,stop:()=>Ct,toDisplayString:()=>ot,toHandlerKey:()=>ye,toHandlers:()=>Ri,toRaw:()=>I,toRef:()=>pn,toRefs:()=>fn,toValue:()=>ln,transformVNodeArgs:()=>oo,triggerRef:()=>sn,unref:()=>cn,useAttrs:()=>qi,useCssModule:()=>Al,useCssVars:()=>dl,useHost:()=>Ol,useId:()=>ci,useModel:()=>ha,useSSRContext:()=>Qo,useShadowRoot:()=>kl,useSlots:()=>Ki,useTemplateRef:()=>ui,useTransitionState:()=>$r,vModelCheckbox:()=>Uu,vModelDynamic:()=>Ku,vModelRadio:()=>Wu,vModelSelect:()=>Gu,vModelText:()=>Hu,vShow:()=>gu,version:()=>Uc,warn:()=>Wc,watch:()=>Gr,watchEffect:()=>Hr,watchPostEffect:()=>Ur,watchSyncEffect:()=>Wr,withAsyncContext:()=>$i,withCtx:()=>Ir,withDefaults:()=>Gi,withDirectives:()=>Lr,withKeys:()=>Zu,withMemo:()=>No,withModifiers:()=>Yu,withScopeId:()=>Xo});function Zc(e){let t={};for(let n in e)n in su||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Qc(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,tl(e,t?u:s),tl(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,tl(e,d),tl(e,p),tl(e,f),t&&t()},D=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);du(i,[t,o]),nl(()=>{tl(t,e?c:a),el(t,e?u:s),fu(i)||rl(t,r,h,o)})};return O(t,{onBeforeEnter(e){du(_,[e]),el(e,a),el(e,o)},onBeforeAppear(e){du(S,[e]),el(e,c),el(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);el(e,d),e._enterCancelled?(el(e,f),sl(e)):(sl(e),el(e,f)),nl(()=>{e._isLeaving&&(tl(e,d),el(e,p),fu(b)||rl(e,r,g,n))}),du(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),du(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),du(w,[e])},onLeaveCancelled(e){E(e),du(x,[e])}})}function Qc(e){if(e==null)return null;if(P(e))return[$c(e.enter),$c(e.leave)];{let t=$c(e);return[t,t]}}function $c(e){return we(e)}function el(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[ou]||(e[ou]=new Set)).add(t)}function tl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[ou];n&&(n.delete(t),n.size||(e[ou]=void 0))}function nl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function rl(e,t,n,r){let i=e._endId=++pu,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=il(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function il(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${iu}Delay`),a=r(`${iu}Duration`),o=al(i,a),s=r(`${au}Delay`),c=r(`${au}Duration`),l=al(s,c),u=null,d=0,f=0;t===iu?o>0&&(u=iu,d=o,f=a.length):t===au?l>0&&(u=au,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?iu:au:null,f=u?u===iu?a.length:c.length:0);let p=u===iu&&/\b(?:transform|all)(?:,|$)/.test(r(`${iu}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function al(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ol(t)+ol(e[n])))}function ol(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function sl(e){return(e?e.ownerDocument:document).body.offsetHeight}function cl(e,t,n){let r=e[ou];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}function ll(e,t){e.style.display=t?e[mu]:`none`,e[hu]=!t}function ul(){gu.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}function dl(e){let t=Mc();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>pl(e,n))},r=()=>{let r=e(t.proxy);t.ce?pl(t.ce,r):fl(t.subTree,r),n(r)};Ls(()=>{Or(r)}),Is(()=>{Gr(r,w,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Bs(()=>e.disconnect())})}function fl(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{fl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)pl(e.el,t);else if(e.type===xc)e.children.forEach(e=>fl(e,t));else if(e.type===Cc){let{el:n,anchor:r}=e;for(;n&&(pl(n,t),n!==r);)n=n.nextSibling}}function pl(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=x(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[_u]=r}}function ml(e,t,n){let r=e.style,i=N(n),a=!1;if(n&&!i){if(t)if(N(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??hl(r,t,``)}else for(let e in t)n[e]??hl(r,e,``);for(let e in n)e===`display`&&(a=!0),hl(r,e,n[e])}else if(i){if(t!==n){let e=r[_u];e&&(n+=`;`+e),r.cssText=n,a=vu.test(n)}}else t&&e.removeAttribute(`style`);mu in e&&(e[mu]=a?r.display:``,e[hu]&&(r.display=`none`))}function hl(e,t,n){if(A(n))n.forEach(n=>hl(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=gl(e,t);yu.test(n)?e.setProperty(_e(r),n.replace(yu,``),`important`):e[r]=n}}function gl(e,t){let n=xu[t];if(n)return n;let r=F(t);if(r!==`filter`&&r in e)return xu[t]=r;r=ve(r);for(let n=0;n<bu.length;n++){let i=bu[n]+r;if(i in e)return xu[t]=i}return t}function _l(e,t,n,r,i,a=Je(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Su,t.slice(6,t.length)):e.setAttributeNS(Su,t,n):n==null||a&&!f(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ae(n)?String(n):n)}function vl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ql(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=f(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function yl(e,t,n,r){e.addEventListener(t,n,r)}function bl(e,t,n,r){e.removeEventListener(t,n,r)}function xl(e,t,n,r,i=null){let a=e[Cu]||(e[Cu]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Sl(t);r?yl(e,n,a[t]=Cl(r,i),s):o&&(bl(e,n,o,s),a[t]=void 0)}}function Sl(e){let t;if(wu.test(e)){t={};let n;for(;n=e.match(wu);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):_e(e.slice(2)),t]}function Cl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;xr(wl(e,n.value),t,5,[e])};return n.value=e,n.attached=Du(),n}function wl(e,t){if(A(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}function Tl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ou(t)&&M(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ou(t)&&N(n)?!1:t in e}function El(e,t){let n=e._def.props;if(!n)return!1;let r=F(t);return Array.isArray(n)?n.some(e=>F(e)===r):Object.keys(n).some(e=>F(e)===r)}function Dl(e,t,n){let r=si(e,t);ue(r)&&(r=O({},r,t));class i extends Nu{constructor(e){super(r,e,n)}}return i.def=r,i}function Ol(e){let t=Mc();return t&&t.ce||null}function kl(){let e=Ol();return e&&e.shadowRoot}function Al(e=`$style`){{let t=Mc();if(!t)return S;let n=t.type.__cssModules;return n&&n[e]||S}}function jl(e){let t=e.el;t[Iu]&&t[Iu](),t[Lu]&&t[Lu]()}function Ml(e){Fu.set(e,Pl(e.el))}function Nl(e){let t=Pu.get(e),n=Fu.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Pl(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Fl(e,t,n){let r=e.cloneNode(),i=e[ou];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=il(r);return a.removeChild(r),o}function Il(e){e.target.composing=!0}function Ll(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}function Rl(e,t,n){return t&&(e=e.trim()),n&&(e=Ce(e)),e}function zl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(A(t))i=b(t,r.props.value)>-1;else if(ne(t))i=t.has(r.props.value);else{if(t===n)return;i=y(t,Hl(e,!0))}e.checked!==i&&(e.checked=i)}function Bl(e,t){let n=e.multiple,r=A(t);if(!(n&&!r&&!ne(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Vl(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=b(t,o)>-1}else a.selected=t.has(o);else if(y(Vl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vl(e){return`_value`in e?e._value:e.value}function Hl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}function Ul(e,t){switch(e){case`SELECT`:return Gu;case`TEXTAREA`:return Hu;default:switch(t){case`checkbox`:return Uu;case`radio`:return Wu;default:return Hu}}}function Wl(e,t,n,r,i){let a=Ul(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Gl(){Hu.getSSRProps=({value:e})=>({value:e}),Wu.getSSRProps=({value:e},t)=>{if(t.props&&y(t.props.value,e))return{checked:!0}},Uu.getSSRProps=({value:e},t)=>{if(A(e)){if(t.props&&b(e,t.props.value)>-1)return{checked:!0}}else if(ne(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ku.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Ul(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}function Kl(){return $u||=ja(Qu)}function ql(){return $u=ed?$u:Ma(Qu),ed=!0,$u}function Jl(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Yl(e){return N(e)?document.querySelector(e):e}var Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd=e((()=>{if(Yc(),Yc(),lt(),Xl=void 0,Zl=typeof window<`u`&&window.trustedTypes,Zl)try{Xl=Zl.createPolicy(`vue`,{createHTML:e=>e})}catch{}Ql=Xl?e=>Xl.createHTML(e):e=>e,$l=`http://www.w3.org/2000/svg`,eu=`http://www.w3.org/1998/Math/MathML`,tu=typeof document<`u`?document:null,nu=tu&&tu.createElement(`template`),ru={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?tu.createElementNS($l,e):t===`mathml`?tu.createElementNS(eu,e):n?tu.createElement(e,{is:n}):tu.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>tu.createTextNode(e),createComment:e=>tu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 11,441 bytes, line 4
4{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tu.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{nu.innerHTML=Ql(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=nu.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},iu=`transition`,au=`animation`,ou=Symbol(`_vtc`),su={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cu=O({},fs,su),lu=e=>(e.displayName=`Transition`,e.props=cu,e),uu=lu((e,{slots:t})=>jo(hs,Zc(e),t)),du=(e,t=[])=>{A(e)?e.forEach(e=>e(...t)):e&&e(...t)},fu=e=>e?A(e)?e.some(e=>e.length>1):e.length>1:!1,pu=0,mu=Symbol(`_vod`),hu=Symbol(`_vsh`),gu={name:`show`,beforeMount(e,{value:t},{transition:n}){e[mu]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ll(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ll(e,!0),r.enter(e)):r.leave(e,()=>{ll(e,!1)}):ll(e,t))},beforeUnmount(e,{value:t}){ll(e,t)}},_u=Symbol(``),vu=/(?:^|;)\s*display\s*:/,yu=/\s*!important$/,bu=[`Webkit`,`Moz`,`ms`],xu={},Su=`http://www.w3.org/1999/xlink`,Cu=Symbol(`_vei`),wu=/(?:Once|Passive|Capture)$/,Tu=0,Eu=Promise.resolve(),Du=()=>Tu||=(Eu.then(()=>Tu=0),Date.now()),Ou=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ku=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?cl(e,r,o):t===`style`?ml(e,n,r):E(t)?D(t)||xl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Tl(e,t,r,o))?(vl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&_l(e,t,r,o,a,t!==`value`)):e._isVueCE&&(El(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!N(r)))?vl(e,F(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),_l(e,t,r,o))},Au={},ju=((e,t)=>Dl(e,t,id)),Mu=typeof HTMLElement<`u`?HTMLElement:class{},Nu=class e extends Mu{constructor(e,t={},n=rd){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==rd?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(O({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,wr(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!A(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=we(this._props[e])),(i||=Object.create(null))[F(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)k(this,e)||Object.defineProperty(this,e,{get:()=>cn(t[e])})}_resolveProps(e){let{props:t}=e,n=A(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(F))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Au,r=F(e);t&&this._numberProps&&this._numberProps[r]&&(n=we(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Au?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(_e(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(_e(e),t+``):t||this.removeAttribute(_e(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),td(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=B(this._def,O(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ue(t[0])?O({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),_e(e)!==e&&t(_e(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}},Pu=new WeakMap,Fu=new WeakMap,Iu=Symbol(`_moveCb`),Lu=Symbol(`_enterCb`),Ru=e=>(delete e.props.mode,e),zu=Ru({name:`TransitionGroup`,props:O({},cu,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Mc(),r=$r(),i,a;return Rs(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Fl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(jl),i.forEach(Ml);let r=i.filter(Nl);sl(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;el(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Iu]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Iu]=null,tl(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=I(e),s=Zc(o),c=o.tag||xc;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),ai(t,ni(t,s,r,n)),Pu.set(t,Pl(t.el)))}a=t.default?oi(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ai(t,ni(t,s,r,n))}return B(c,null,a)}}}),Bu=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return A(t)?e=>xe(t,e):t},Vu=Symbol(`_assign`),Hu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Vu]=Bu(i);let a=r||i.props&&i.props.type===`number`;yl(e,t?`change`:`input`,t=>{t.target.composing||e[Vu](Rl(e.value,n,a))}),(n||a)&&yl(e,`change`,()=>{e.value=Rl(e.value,n,a)}),t||(yl(e,`compositionstart`,Il),yl(e,`compositionend`,Ll),yl(e,`change`,Ll))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Vu]=Bu(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Ce(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Uu={deep:!0,created(e,t,n){e[Vu]=Bu(n),yl(e,`change`,()=>{let t=e._modelValue,n=Vl(e),r=e.checked,i=e[Vu];if(A(t)){let e=b(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(ne(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Hl(e,r))})},mounted:zl,beforeUpdate(e,t,n){e[Vu]=Bu(n),zl(e,t,n)}},Wu={created(e,{value:t},n){e.checked=y(t,n.props.value),e[Vu]=Bu(n),yl(e,`change`,()=>{e[Vu](Vl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Vu]=Bu(r),t!==n&&(e.checked=y(t,r.props.value))}},Gu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=ne(t);yl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Ce(Vl(e)):Vl(e));e[Vu](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,wr(()=>{e._assigning=!1})}),e[Vu]=Bu(r)},mounted(e,{value:t}){Bl(e,t)},beforeUpdate(e,t,n){e[Vu]=Bu(n)},updated(e,{value:t}){e._assigning||Bl(e,t)}},Ku={created(e,t,n){Wl(e,t,n,null,`created`)},mounted(e,t,n){Wl(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Wl(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Wl(e,t,n,r,`updated`)}},qu=[`ctrl`,`shift`,`alt`,`meta`],Ju={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>qu.some(n=>e[`${n}Key`]&&!t.includes(n))},Yu=(e,t)=>
vendor: 7,421 bytes, line 4
4{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ju[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Xu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Zu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=_e(n.key);if(t.some(e=>e===r||Xu[e]===r))return e(n)}))},Qu=O({patchProp:ku},ru),ed=!1,td=((...e)=>{Kl().render(...e)}),nd=((...e)=>{ql().hydrate(...e)}),rd=((...e)=>{let t=Kl().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Yl(e);if(!r)return;let i=t._component;!M(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Jl(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),id=((...e)=>{let t=ql().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Yl(e);if(t)return n(t,!0,Jl(t))},t}),ad=!1,od=()=>{ad||(ad=!0,Gl(),ul())}}));sd();function cd(e){return e+.5|0}var ld=(e,t,n)=>Math.max(Math.min(e,n),t);function ud(e){return ld(cd(e*2.55),0,255)}function dd(e){return ld(cd(e*255),0,255)}function fd(e){return ld(cd(e/2.55)/100,0,1)}function pd(e){return ld(cd(e*100),0,100)}var md={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hd=[...`0123456789ABCDEF`],gd=e=>hd[e&15],_d=e=>hd[(e&240)>>4]+hd[e&15],vd=e=>(e&240)>>4==(e&15),yd=e=>vd(e.r)&&vd(e.g)&&vd(e.b)&&vd(e.a);function bd(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&md[e[1]]*17,g:255&md[e[2]]*17,b:255&md[e[3]]*17,a:t===5?md[e[4]]*17:255}:(t===7||t===9)&&(n={r:md[e[1]]<<4|md[e[2]],g:md[e[3]]<<4|md[e[4]],b:md[e[5]]<<4|md[e[6]],a:t===9?md[e[7]]<<4|md[e[8]]:255})),n}var xd=(e,t)=>e<255?t(e):``;function Sd(e){var t=yd(e)?gd:_d;return e?`#`+t(e.r)+t(e.g)+t(e.b)+xd(e.a,t):void 0}var Cd=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function wd(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Td(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Ed(e,t,n){let r=wd(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Dd(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function Od(e){let t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s,c,l;return i!==a&&(l=i-a,c=o>.5?l/(2-i-a):l/(i+a),s=Dd(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function kd(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(dd)}function Ad(e,t,n){return kd(wd,e,t,n)}function jd(e,t,n){return kd(Ed,e,t,n)}function Md(e,t,n){return kd(Td,e,t,n)}function Nd(e){return(e%360+360)%360}function Pd(e){let t=Cd.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ud(+t[5]):dd(+t[5]));let i=Nd(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?jd(i,a,o):t[1]===`hsv`?Md(i,a,o):Ad(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Fd(e,t){var n=Od(e);n[0]=Nd(n[0]+t),n=Ad(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Id(e){if(!e)return;let t=Od(e),n=t[0],r=pd(t[1]),i=pd(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${fd(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var Ld={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},Rd={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function zd(){let e={},t=Object.keys(Rd),n=Object.keys(Ld),r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Ld[a]);a=parseInt(Rd[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}var Bd;function Vd(e){Bd||(Bd=zd(),Bd.transparent=[0,0,0,0]);let t=Bd[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Hd=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Ud(e){let t=Hd.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?ud(e):ld(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ud(r):ld(r,0,255)),i=255&(t[4]?ud(i):ld(i,0,255)),a=255&(t[6]?ud(a):ld(a,0,255)),{r,g:i,b:a,a:n}}}function Wd(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fd(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Gd=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,Kd=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function qd(e,t,n){let r=Kd(fd(e.r)),i=Kd(fd(e.g)),a=Kd(fd(e.b));return{r:dd(Gd(r+n*(Kd(fd(t.r))-r))),g:dd(Gd(i+n*(Kd(fd(t.g))-i))),b:dd(Gd(a+n*(Kd(fd(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Jd(e,t,n){if(e){let r=Od(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Ad(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Yd(e,t){return e&&Object.assign(t||{},e)}function Xd(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=dd(e[3]))):(t=Yd(e,{r:0,g:0,b:0,a:1}),t.a=dd(t.a)),t}function Zd(e){return e.charAt(0)===`r`?Ud(e):Pd(e)}var Qd=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;
vendor: 4,235 bytes, line 4
4n===`object`?r=Xd(t):n===`string`&&(r=bd(t)||Vd(t)||Zd(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Yd(this._rgb);return e&&(e.a=fd(e.a)),e}set rgb(e){this._rgb=Xd(e)}rgbString(){return this._valid?Wd(this._rgb):void 0}hexString(){return this._valid?Sd(this._rgb):void 0}hslString(){return this._valid?Id(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=qd(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=dd(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=cd(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Jd(this._rgb,2,e),this}darken(e){return Jd(this._rgb,2,-e),this}saturate(e){return Jd(this._rgb,1,e),this}desaturate(e){return Jd(this._rgb,1,-e),this}rotate(e){return Fd(this._rgb,e),this}};function $d(){}var ef=(()=>{let e=0;return()=>e++})();function V(e){return e==null}function H(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function U(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function W(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function tf(e,t){return W(e)?e:t}function G(e,t){return e===void 0?t:e}var nf=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,rf=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function K(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function q(e,t,n,r){let i,a,o;if(H(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(U(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function af(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function of(e){if(H(e))return e.map(of);if(U(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=of(e[n[i]]);return t}return e}function sf(e){return[`__proto__`,`prototype`,`constructor`].indexOf(e)===-1}function cf(e,t,n,r){if(!sf(e))return;let i=t[e],a=n[e];U(i)&&U(a)?lf(i,a,r):t[e]=of(a)}function lf(e,t,n){let r=H(t)?t:[t],i=r.length;if(!U(e))return e;n||={};let a=n.merger||cf,o;for(let t=0;t<i;++t){if(o=r[t],!U(o))continue;let i=Object.keys(o);for(let t=0,r=i.length;t<r;++t)a(i[t],e,o,n)}return e}function uf(e,t){return lf(e,t,{merger:df})}function df(e,t,n){if(!sf(e))return;let r=t[e],i=n[e];U(r)&&U(i)?uf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=of(i))}var ff={"":e=>e,x:e=>e.x,y:e=>e.y};function pf(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function mf(e){let t=pf(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function hf(e,t){return(ff[t]||(ff[t]=mf(t)))(e)}function gf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _f=e=>e!==void 0,vf=e=>typeof e==`function`,yf=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function bf(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var J=Math.PI,Y=2*J,xf=Y+J,Sf=1/0,Cf=J/180,wf=J/2,Tf=J/4,Ef=J*2/3,Df=Math.log10,Of=Math.sign;function kf(e,t,n){return Math.abs(e-t)<n}function Af(e){let t=Math.round(e);e=kf(e,t,e/1e3)?t:e;let n=10**Math.floor(Df(e)),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function jf(e){let t=[],n=Math.sqrt(e),r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}function Mf(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Nf(e){return!Mf(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Pf(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Ff(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;
vendor: 2,277 bytes, line 4
4r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function If(e){return J/180*e}function Lf(e){return 180/J*e}function Rf(e){if(!W(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function zf(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*J&&(a+=Y),{angle:a,distance:i}}function Bf(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Vf(e,t){return(e-t+xf)%Y-J}function Hf(e){return(e%Y+Y)%Y}function Uf(e,t,n,r){let i=Hf(e),a=Hf(t),o=Hf(n),s=Hf(a-i),c=Hf(o-i),l=Hf(i-a),u=Hf(i-o);return i===a||i===o||r&&a===o||s>c&&l<u}function Wf(e,t,n){return Math.max(t,Math.min(n,e))}function Gf(e){return Wf(e,-32768,32767)}function Kf(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function qf(e,t,n){n||=(n=>e[n]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Jf=(e,t,n,r)=>qf(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),Yf=(e,t,n)=>qf(e,n,r=>e[r][t]>=n);function Xf(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var Zf=[`push`,`pop`,`shift`,`splice`,`unshift`];function Qf(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Zf.forEach(t=>{let n=`_onData`+gf(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})})}function $f(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Zf.forEach(t=>{delete e[t]}),delete e._chartjs)}function ep(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var tp=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function np(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,tp.call(window,()=>{r=!1,e.apply(t,n)}))}}function rp(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var ip=e=>e===`start`?`left`:e===`end`?`right`:`center`,ap=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,op=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;
vendor: 4,723 bytes, line 4
4function sp(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(Jf(c,u,d).lo,n?r:Jf(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!V(e[s.axis]));i-=Math.max(0,e)}i=Wf(i,0,r-1)}if(m){let e=Math.max(Jf(c,o.axis,f,!0).hi+1,n?0:Jf(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!V(e[s.axis]));e+=Math.max(0,t)}a=Wf(e,i,r)-i}else a=r-i}return{start:i,count:a}}function cp(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var lp=e=>e===0||e===1,up=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Y/n)),dp=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Y/n)+1,fp={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*wf)+1,easeOutSine:e=>Math.sin(e*wf),easeInOutSine:e=>-.5*(Math.cos(J*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>lp(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>lp(e)?e:up(e,.075,.3),easeOutElastic:e=>lp(e)?e:dp(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return lp(e)?e:e<.5?.5*up(e*2,t,n):.5+.5*dp(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-fp.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?fp.easeInBounce(e*2)*.5:fp.easeOutBounce(e*2-1)*.5+.5};function pp(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function mp(e){return pp(e)?e:new Qd(e)}function hp(e){return pp(e)?e:new Qd(e).saturate(.5).darken(.1).hexString()}var gp=[`x`,`y`,`borderWidth`,`radius`,`tension`],_p=[`color`,`borderColor`,`backgroundColor`];function vp(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:_p},numbers:{type:`number`,properties:gp}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function yp(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var bp=new Map;function xp(e,t){t||={};let n=e+JSON.stringify(t),r=bp.get(n);return r||(r=new Intl.NumberFormat(e,t),bp.set(n,r)),r}function Sp(e,t,n){return xp(t,n).format(e)}var Cp={values(e){return H(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=wp(e,n)}let o=Df(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Sp(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Df(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Cp.numeric.call(this,e,t,n):``}};function wp(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Tp={formatters:Cp};function Ep(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>
vendor: 7,084 bytes, line 4
4t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Tp.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Dp=Object.create(null),Op=Object.create(null);function kp(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function Ap(e,t,n){return typeof t==`string`?lf(kp(e,t),n):lf(kp(e,``),t)}var X=new class{constructor(e,t){this.animation=void 0,this.backgroundColor=`rgba(0,0,0,0.1)`,this.borderColor=`rgba(0,0,0,0.1)`,this.color=`#666`,this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>hp(t.backgroundColor),this.hoverBorderColor=(e,t)=>hp(t.borderColor),this.hoverColor=(e,t)=>hp(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ap(this,e,t)}get(e){return kp(this,e)}describe(e,t){return Ap(Op,e,t)}override(e,t){return Ap(Dp,e,t)}route(e,t,n,r){let i=kp(this,e),a=kp(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return U(e)?Object.assign({},t,e):G(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[vp,yp,Ep]);function jp(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Mp(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Np(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;c<s;c++)if(d=n[c],d!=null&&!H(d))o=Mp(e,i,a,o,d);else if(H(d))for(l=0,u=d.length;l<u;l++)f=d[l],f!=null&&!H(f)&&(o=Mp(e,i,a,o,f));e.restore();let p=a.length/2;if(p>n.length){for(c=0;c<p;c++)delete i[a[c]];a.splice(0,p)}return o}function Pp(e,t,n){let r=e.currentDevicePixelRatio,i=n===0?0:Math.max(n/2,.5);return Math.round((t-i)*r)/r+i}function Fp(e,t){!t&&!e||(t||=e.getContext(`2d`),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Ip(e,t,n,r){Lp(e,t,n,r,null)}function Lp(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=t.pointStyle,m=t.rotation,h=t.radius,g=(m||0)*Cf;if(p&&typeof p==`object`&&(a=p.toString(),a===`[object HTMLImageElement]`||a===`[object HTMLCanvasElement]`)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(h)||h<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,h,0,0,Y):e.arc(n,r,h,0,Y),e.closePath();break;case`triangle`:u=i?i/2:h,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=Ef,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=Ef,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),e.closePath();break;case`rectRounded`:l=h*.516,c=h-l,o=Math.cos(g+Tf)*c,d=Math.cos(g+Tf)*(i?i/2-l:c),s=Math.sin(g+Tf)*c,f=Math.sin(g+Tf)*(i?i/2-l:c),e.arc(n-d,r-s,l,g-J,g-wf),e.arc(n+f,r-o,l,g-wf,g),e.arc(n+d,r+s,l,g,g+wf),e.arc(n-f,r+o,l,g+wf,g+J),e.closePath();break;case`rect`:if(!m){c=Math.SQRT1_2*h,u=i?i/2:c,e.rect(n-u,r-c,2*u,2*c);break}g+=Tf;case`rectRot`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case`crossRot`:g+=Tf;case`cross`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`star`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),g+=Tf,d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`line`:o=i?i/2:Math.cos(g)*h,s=Math.sin(g)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case`dash`:e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:h),r+Math.sin(g)*h);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Rp(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function zp(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Bp(e){e.restore()}function Vp(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i===`middle`){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else i===`after`==!!r?e.lineTo(n.x,t.y):e.lineTo(t.x,n.y);e.lineTo(n.x,n.y)}function Hp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Up(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),V(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Wp(e,t,n,r,i){if(i.strikethrough||i.underline){let a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,c=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,u=i.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function Gp(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Kp(e,t,n,r,i,a={}){let o=H(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Up(e,a),c=0;c<o.length;++c)l=o[c],a.backdrop&&Gp(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),V(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(l,n,r,a.maxWidth)),e.fillText(l,n,r,a.maxWidth),Wp(e,n,r,l,a),r+=Number(i.lineHeight);
vendor: 5,460 bytes, line 4
4e.restore()}function qp(e,t){let{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*J,J,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,J,wf,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,wf,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-wf,!0),e.lineTo(n+o.topLeft,r)}var Jp=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Yp=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Xp(e,t){let n=(``+e).match(Jp);if(!n||n[1]===`normal`)return t*1.2;switch(e=+n[2],n[3]){case`px`:return e;case`%`:e/=100;break}return t*e}var Zp=e=>+e||0;function Qp(e,t){let n={},r=U(t),i=r?Object.keys(t):t,a=U(e)?r?n=>G(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=Zp(a(e));return n}function $p(e){return Qp(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function em(e){return Qp(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function tm(e){let t=$p(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function nm(e,t){e||={},t||=X.font;let n=G(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=G(e.style,t.style);r&&!(``+r).match(Yp)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:G(e.family,t.family),lineHeight:Xp(G(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:G(e.weight,t.weight),string:``};return i.string=jp(i),i}function Z(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;a<o;++a)if(s=e[a],s!==void 0&&(t!==void 0&&typeof s==`function`&&(s=s(t),i=!1),n!==void 0&&H(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function rm(e,t,n){let{min:r,max:i}=e,a=rf(t,(i-r)/2),o=(e,t)=>n&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function im(e,t){return Object.assign(Object.create(e),t)}function am(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=xm(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>am([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return um(n,r,()=>bm(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Sm(e).includes(t)},ownKeys(e){return Sm(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function om(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:sm(e,r),setContext:t=>om(e,t,n,r),override:i=>om(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return um(e,t,()=>dm(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function sm(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:vf(n)?n:()=>n,isIndexable:vf(r)?r:()=>r}}var cm=(e,t)=>e?e+gf(t):t,lm=(e,t)=>U(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function um(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function dm(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return vf(s)&&o.isScriptable(t)&&(s=fm(t,s,e,n)),H(s)&&s.length&&(s=pm(t,s,e,o.isIndexable)),lm(t,s)&&(s=om(s,i,a&&a[t],o)),s}function fm(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),lm(e,c)&&(c=_m(i._scopes,i,e,c)),c}function pm(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(U(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=_m(r,i,e,c);t.push(om(n,a,o&&o[e],s))}}return t}function mm(e,t,n){return vf(e)?e(t,n):e}var hm=(e,t)=>e===!0?t:typeof e==`string`?hf(t,e):void 0;function gm(e,t,n,r,i){for(let a of t){let t=hm(n,a);if(t){e.add(t);let a=mm(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function _m(e,t,n,r){let i=t._rootScopes,a=mm(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=vm(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=vm(s,o,a,c,r),c===null)?!1:am(Array.from(s),[``],i,a,()=>ym(t,n,r))}function vm(e,t,n,r,i){for(;n;)n=gm(e,t,n,r,i);return n}function ym(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return H(i)&&U(n)?n:i||{}}function bm(e,t,n,r){let i;for(let a of t)if(i=xm(cm(a,e),n),i!==void 0)return lm(e,i)?_m(n,r,e,i):i}function xm(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function Sm(e){let t=e._keys;return t||=e._keys=Cm(e._scopes),t}function Cm(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function wm(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;s<c;++s)l=s+n,u=t[l],o[s]={r:i.parse(hf(u,a),l)};return o}var Tm=2**-52||1e-14,Em=(e,t)=>t<e.length&&!e[t].skip&&e[t],Dm=e=>e===`x`?`y`:`x`;
vendor: 29,113 bytes, line 4
4function Om(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Bf(a,i),c=Bf(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function km(e,t,n){let r=e.length,i,a,o,s,c,l=Em(e,0);for(let u=0;u<r-1;++u)if(c=l,l=Em(e,u+1),!(!c||!l)){if(kf(t[u],0,Tm)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],a=n[u+1]/t[u],s=i**2+a**2,!(s<=9)&&(o=3/Math.sqrt(s),n[u]=i*o*t[u],n[u+1]=a*o*t[u])}}function Am(e,t,n=`x`){let r=Dm(n),i=e.length,a,o,s,c=Em(e,0);for(let l=0;l<i;++l){if(o=s,s=c,c=Em(e,l+1),!s)continue;let i=s[n],u=s[r];o&&(a=(i-o[n])/3,s[`cp1${n}`]=i-a,s[`cp1${r}`]=u-a*t[l]),c&&(a=(c[n]-i)/3,s[`cp2${n}`]=i+a,s[`cp2${r}`]=u+a*t[l])}}function jm(e,t=`x`){let n=Dm(t),r=e.length,i=Array(r).fill(0),a=Array(r),o,s,c,l=Em(e,0);for(o=0;o<r;++o)if(s=c,c=l,l=Em(e,o+1),c){if(l){let e=l[t]-c[t];i[o]=e===0?0:(l[n]-c[n])/e}a[o]=s?l?Of(i[o-1])===Of(i[o])?(i[o-1]+i[o])/2:0:i[o-1]:i[o]}km(e,i,a),Am(e,a,t)}function Mm(e,t,n){return Math.max(Math.min(e,n),t)}function Nm(e,t){let n,r,i,a,o,s=Rp(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&Rp(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Mm(i.cp1x,t.left,t.right),i.cp1y=Mm(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Mm(i.cp2x,t.left,t.right),i.cp2y=Mm(i.cp2y,t.top,t.bottom)))}function Pm(e,t,n,r,i){let a,o,s,c;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),t.cubicInterpolationMode===`monotone`)jm(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],c=Om(n,s,e[Math.min(a+1,o-+!r)%o],t.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,n=s}t.capBezierPoints&&Nm(e,n)}function Fm(){return typeof window<`u`&&typeof document<`u`}function Im(e){let t=e.parentNode;return t&&t.toString()===`[object ShadowRoot]`&&(t=t.host),t}function Lm(e,t,n){let r;return typeof e==`string`?(r=parseInt(e,10),e.indexOf(`%`)!==-1&&(r=r/100*t.parentNode[n])):r=e,r}var Rm=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function zm(e,t){return Rm(e).getPropertyValue(t)}var Bm=[`top`,`right`,`bottom`,`left`];function Vm(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Bm[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Hm=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Um(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Hm(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function Wm(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Rm(n),a=i.boxSizing===`border-box`,o=Vm(i,`padding`),s=Vm(i,`border`,`width`),{x:c,y:l,box:u}=Um(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function Gm(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&Im(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Rm(a),s=Vm(o,`border`,`width`),c=Vm(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=Lm(o.maxWidth,a,`clientWidth`),i=Lm(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Sf,maxHeight:i||Sf}}var Km=e=>Math.round(e*10)/10;function qm(e,t,n,r){let i=Rm(e),a=Vm(i,`margin`),o=Lm(i.maxWidth,e,`clientWidth`)||Sf,s=Lm(i.maxHeight,e,`clientHeight`)||Sf,c=Gm(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=Vm(i,`border`,`width`),t=Vm(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=Km(Math.min(l,o,c.maxWidth)),u=Km(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Km(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=Km(Math.floor(u*r))),{width:l,height:u}}function Jm(e,t,n){let r=t||1,i=Km(e.height*r),a=Km(e.width*r);e.height=Km(e.height),e.width=Km(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var Ym=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};Fm()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function Xm(e,t){let n=zm(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Zm(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Qm(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function $m(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=Zm(e,i,n),s=Zm(i,a,n),c=Zm(a,t,n);return Zm(Zm(o,s,n),Zm(s,c,n),n)}var eh=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},th=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function nh(e,t,n){return e?eh(t,n):th()}function rh(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function ih(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function ah(e){return e===`angle`?{between:Uf,compare:Vf,normalize:Hf}:{between:Kf,compare:(e,t)=>e-t,normalize:e=>e}}function oh({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function sh(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=ah(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;f<p&&o(s(t[l%c][r]),i,a);++f)l--,u--;l%=c,u%=c}return u<l&&(u+=c),{start:l,end:u,loop:d,style:e.style}}function ch(e,t,n){if(!n)return[e];let{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:c,normalize:l}=ah(r),{start:u,end:d,loop:f,style:p}=sh(e,t,n),m=[],h=!1,g=null,_,v,y,b=()=>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(oh({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(oh({start:g,end:d,loop:f,count:o,style:p})),m}function lh(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let a=ch(r[i],e.points,t);a.length&&n.push(...a)}return n}function uh(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function dh(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function fh(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=uh(n,i,a,r);return r===!0?ph(e,[{start:o,end:s,loop:a}],n,t):ph(e,dh(n,o,s<o?s+i:s,!!e._fullLoop&&o===0&&s===i-1),n,t)}function ph(e,t,n,r){return!r||!r.setContext||!n?t:mh(e,t,n,r)}function mh(e,t,n,r){let i=e._chart.getContext(),a=hh(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,c=n.length,l=[],u=a,d=t[0].start,f=d;function p(e,t,r,i){let a=s?-1:1;if(e!==t){for(e+=c;n[e%c].skip;)e-=a;for(;n[t%c].skip;)t+=a;e%c!==t%c&&(l.push({start:e%c,end:t%c,loop:r,style:i}),u=i,d=t%c)}}for(let e of t){d=s?d:e.start;let t=n[d%c],a;for(f=d+1;f<=e.end;f++){let s=n[f%c];a=hh(r.setContext(im(i,{type:`segment`,p0:t,p1:s,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:o}))),gh(a,u)&&p(d,f-1,e.loop,u),t=s,u=a}d<f-1&&p(d,f-1,e.loop,u)}return l}function hh(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function gh(e,t){if(!t)return!1;let n=[],r=function(e,t){return pp(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function _h(e,t,n){return e.options.clip?e[n]:t[n]}function vh(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:_h(n,t,`left`),right:_h(n,t,`right`),top:_h(r,t,`top`),bottom:_h(r,t,`bottom`)}:t}function yh(e,t){let n=t._clip;if(n.disabled)return!1;let r=vh(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}var bh=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){let i=t.listeners[r],a=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,tp.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},xh=`transparent`,Sh={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=mp(e||xh),i=r.valid&&mp(t||xh);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Ch=class{constructor(e,t,n,r){let i=t[n];r=Z([e.to,r,i,e.from]);let a=Z([e.from,i,r]);this._active=!0,this._fn=e.fn||Sh[e.type||typeof a],this._easing=fp[e.easing]||fp.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Z([e.to,t,r,e.from]),this._from=Z([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;if(this._active=i!==o&&(a||t<n),!this._active){this._target[r]=o,this._notify(!0);return}if(t<0){this._target[r]=i;return}s=t/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}},wh=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!U(e))return;let t=Object.keys(X.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{let i=e[r];if(!U(i))return;let a={};for(let e of t)a[e]=i[e];(H(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=Eh(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Th(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u)if(d&&u.active()){u.update(d,l,o);continue}else u.cancel();if(!d||!d.duration){e[c]=l;continue}i[c]=u=new Ch(d,e,c,l),r.push(u)}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return bh.add(this._chart,n),!0}};function Th(e,t){let n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){let i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Eh(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Dh(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function Oh(e,t,n){if(n===!1)return!1;let r=Dh(e,n),i=Dh(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function kh(e){let t,n,r,i;return U(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Ah(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function jh(e,t,n,r={}){let i=e.keys,a=r.mode===`single`,o,s,c,l;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(c=+i[o],c===n){if(u=!0,r.all)continue;break}l=e.values[c],W(l)&&(a||t===0||Of(t)===Of(l))&&(t+=l)}return!u&&!r.all?0:t}function Mh(e,t){let{iScale:n,vScale:r}=t,i=n.axis===`x`?`x`:`y`,a=r.axis===`x`?`x`:`y`,o=Object.keys(e),s=Array(o.length),c,l,u;for(c=0,l=o.length;c<l;++c)u=o[c],s[c]={[i]:u,[a]:e[u]};return s}function Nh(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Ph(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Fh(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:-1/0,max:i?n:1/0}}function Ih(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Lh(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function Rh(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Ph(a,o,r),d=t.length,f;for(let e=0;e<d;++e){let n=t[e],{[c]:a,[l]:d}=n,p=n._stacks||={};f=p[l]=Ih(i,u,a),f[s]=d,f._top=Lh(f,o,!0,r.type),f._bottom=Lh(f,o,!1,r.type);let m=f._visualValues||={};m[s]=d}}function zh(e,t){let n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function Bh(e,t){return im(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Vh(e,t,n){return im(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Hh(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Uh=e=>e===`reset`||e===`none`,Wh=(e,t)=>t?e:Object.assign({},e),Gh=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ah(n,!0),values:null},Kh=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Nh(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Hh(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=G(n.xAxisID,zh(e,`x`)),a=t.yAxisID=G(n.yAxisID,zh(e,`y`)),o=t.rAxisID=G(n.rAxisID,zh(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&$f(this._data,this),e._stacked&&Hh(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(U(t)){let e=this._cachedMeta;this._data=Mh(t,e)}else if(n!==t){if(n){$f(n,this);let e=this._cachedMeta;Hh(e),e._parsed=[]}t&&Object.isExtensible(t)&&Qf(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Nh(t.vScale,t),t.stack!==n.stack&&(r=!0,Hh(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Rh(this,t._parsed),t._stacked=Nh(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=H(r[e])?this.parseArrayData(n,r,e,t):U(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]<c[o];for(l=0;l<t;++l)n._parsed[l+e]=u=d[l],s&&(i()&&(s=!1),c=u);n._sorted=s}a&&Rh(this,d)}parsePrimitiveData(e,t,n,r){let{iScale:i,vScale:a}=e,o=i.axis,s=a.axis,c=i.getLabels(),l=i===a,u=Array(r),d,f,p;for(d=0,f=r;d<f;++d)p=d+n,u[d]={[o]:l||i.parse(c[p],p),[s]:a.parse(t[p],p)};return u}parseArrayData(e,t,n,r){let{xScale:i,yScale:a}=e,o=Array(r),s,c,l,u;for(s=0,c=r;s<c;++s)l=s+n,u=t[l],o[s]={x:i.parse(u[0],l),y:a.parse(u[1],l)};return o}parseObjectData(e,t,n,r){let{xScale:i,yScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=Array(r),l,u,d,f;for(l=0,u=r;l<u;++l)d=l+n,f=t[d],c[l]={x:i.parse(hf(f,o),d),y:a.parse(hf(f,s),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){let r=this.chart,i=this._cachedMeta,a=t[e.axis];return jh({keys:Ah(r,!0),values:t._stacks[e.axis]._visualValues},a,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){let i=n[t.axis],a=i===null?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=jh(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){let n=this._cachedMeta,r=n._parsed,i=n._sorted&&e===n.iScale,a=r.length,o=this._getOtherScale(e),s=Gh(t,n,this.chart),c={min:1/0,max:-1/0},{min:l,max:u}=Fh(o),d,f;function p(){f=r[d];let t=f[o.axis];return!W(f[e.axis])||l>t||u<t}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(c,e,f,s),i));++d);if(i){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r<i;++r)a=t[r][e.axis],W(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){let t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?``+n.getLabelForValue(i[n.axis]):``,value:r?``+r.getLabelForValue(i[r.axis]):``}}_update(e){let t=this._cachedMeta;this.update(e||`default`),t._clip=kh(G(this.options.clip,Oh(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||r.length-o,c=this.options.drawActiveElementsOnTop,l;for(n.dataset&&n.dataset.draw(e,i,o,s),l=o;l<o+s;++l){let t=r[l];t.hidden||(t.active&&c?a.push(t):t.draw(e,i))}for(l=0;l<a.length;++l)a[l].draw(e,i)}getStyle(e,t){let n=t?`active`:`default`;return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){let r=this.getDataset(),i;if(e>=0&&e<this._cachedMeta.data.length){let t=this._cachedMeta.data[e];i=t.$context||=Vh(this.getContext(),e,t),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||=Bh(this.chart.getContext(),this.index),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t=`default`,n){let r=t===`active`,i=this._cachedDataOpts,a=e+`-`+t,o=i[a],s=this.enableOptionSharing&&_f(n);if(o)return Wh(o,s);let c=this.chart.config,l=c.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,`hover`,e,``]:[e,``],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys(X.elements[e]),p=c.resolveNamedOptions(d,f,()=>this.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Wh(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new wh(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Uh(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Uh(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Uh(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t,n=!0){let r=this._cachedMeta,i=r.data,a=e+t,o,s=e=>{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;o<a;++o)i[o]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,`reset`)}updateElements(e,t,n,r){}_removeElements(e,t){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(e,t);n._stacked&&Hh(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync([`_insertElements`,this.getDataset().data.length-e,e])}_onDataPop(){this._sync([`_removeElements`,this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([`_removeElements`,0,1])}_onDataSplice(e,t){t&&this._sync([`_removeElements`,e,t]);let n=arguments.length-2;n&&this._sync([`_insertElements`,e,n])}_onDataUnshift(){this._sync([`_insertElements`,0,arguments.length])}};function qh(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),r=[];for(let t=0,i=n.length;t<i;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=ep(r.sort((e,t)=>e-t))}return e._cache.$bar}function Jh(e){let t=e.iScale,n=qh(t,e.type),r=t._length,i,a,o,s,c=()=>{o===32767||o===-32768||(_f(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),c();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),c();return r}function Yh(e,t,n,r){let i=n.barThickness,a,o;return V(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function Xh(e,t,n,r){let i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);let l=a-(a-Math.min(o,s))/2*c;return{chunk:Math.abs(s-o)/2*c/r,ratio:n.barPercentage,start:l}}function Zh(e,t,n,r){let i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),c=o,l=s;Math.abs(o)>Math.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function Qh(e,t,n,r){return H(e)?Zh(e,t,n,r):t[n.axis]=n.parse(e,r),t}function $h(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l<u;++l)f=t[l],d={},d[i.axis]=s||i.parse(o[l],l),c.push(Qh(f,d,a,l));return c}function eg(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function tg(e,t,n){return e===0?(t.isHorizontal()?1:-1)*(t.min>=n?1:-1):Of(e)}function ng(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.base<e.y,n=`bottom`,r=`top`),t?(i=`end`,a=`start`):(i=`start`,a=`end`),{start:n,end:r,reverse:t,top:i,bottom:a}}function rg(e,t,n,r){let i=t.borderSkipped,a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:s,reverse:c,top:l,bottom:u}=ng(e);i===`middle`&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=l:(n._bottom||0)===r?i=u:(a[ig(u,o,s,c)]=!0,i=l)),a[ig(i,o,s,c)]=!0,e.borderSkipped=a}function ig(e,t,n,r){return r?(e=ag(e,t,n),e=og(e,n,t)):e=og(e,t,n),e}function ag(e,t,n){return e===t?n:e===n?t:e}function og(e,t,n){return e===`start`?t:e===`end`?n:e}function sg(e,{inflateAmount:t},n){e.inflateAmount=t===`auto`?n===1?.33:0:t}var cg=class extends Kh{static id=`bar`;static defaults={datasetElementType:!1,dataElementType:`bar`,categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:`number`,properties:[`x`,`y`,`base`,`width`,`height`]}}};static overrides={scales:{_index_:{type:`category`,offset:!0,grid:{offset:!0}},_value_:{type:`linear`,beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return $h(e,t,n,r)}parseArrayData(e,t,n,r){return $h(e,t,n,r)}parseObjectData(e,t,n,r){let{iScale:i,vScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=i.axis===`x`?o:s,l=a.axis===`x`?o:s,u=[],d,f,p,m;for(d=n,f=n+r;d<f;++d)m=t[d],p={},p[i.axis]=i.parse(hf(m,c),d),u.push(Qh(hf(m,l),p,a,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);let i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let{iScale:t,vScale:n}=this._cachedMeta,r=this.getParsed(e),i=r._custom,a=eg(i)?`[`+i.start+`, `+i.end+`]`:``+n.getLabelForValue(r[n.axis]);return{label:``+t.getLabelForValue(r[t.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{index:a,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),c=o.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let f=t;f<t+n;f++){let t=this.getParsed(f),n=i||V(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,l),m=(t._stacks||{})[o.axis],h={horizontal:c,base:n.base,enableBorderRadius:!m||eg(t._custom)||a===m._top||a===m._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};d&&(h.options=u||this.resolveDataElementOptions(f,e[f].active?`active`:r));let g=h.options||e[f].options;rg(h,g,m,a),sg(h,g,l.ratio),this.updateElement(e[f],f,h,r)}}_getStacks(e,t){let{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>
4e[n.axis]===s),r=t&&t[e.vScale.axis];if(V(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[G(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i<a;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));let o=e.barThickness;return{min:o||Jh(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:i,minBarLength:a}}=this,o=i||0,s=this.getParsed(e),c=s._custom,l=eg(c),u=s[t.axis],d=0,f=n?this.applyStack(t,s,n):u,p,m;f!==u&&(d=f-u,f=u),l&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Of(u)!==Of(c.barEnd)&&(d=0),d+=u);let h=!V(i)&&!l?i:d,g=t.getPixelForValue(h);if(p=this.chart.getDataVisibility(e)?t.getPixelForValue(d+f):g,m=p-g,Math.abs(m)<a){m=tg(m,t,o)*a,u===o&&(g-=m/2);let e=t.getPixelForDecimal(0),i=t.getPixelForDecimal(1);g=Math.max(Math.min(g,Math.max(e,i)),Math.min(e,i)),p=g+m,n&&!l&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(p)-t.getValueForPixel(g))}if(g===t.getPixelForValue(o)){let e=Of(m)*t.getLineWidthForValue(o)/2;g+=e,m-=e}return{size:m,base:g,head:p,center:p+m/2}}_calculateBarIndexPixels(e,t){let n=t.scale,r=this.options,i=r.skipNull,a=G(r.maxBarThickness,1/0),o,s,c=this._getAxisCount();if(t.grouped){let n=i?this._getStackCount(e):t.stackCount,l=r.barThickness===`flex`?Xh(e,t,r,n*c):Yh(e,t,r,n*c),u=this.chart.options.indexAxis===`x`?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(G(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+d;o=l.start+l.chunk*f+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(a,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){let e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;for(;i<r;++i)this.getParsed(i)[t.axis]!==null&&!n[i].hidden&&n[i].draw(this._ctx)}},lg=class extends Kh{static id=`bubble`;static defaults={datasetElementType:!1,dataElementType:`point`,animations:{numbers:{type:`number`,properties:[`x`,`y`,`borderWidth`,`radius`]}}};static overrides={scales:{x:{type:`linear`},y:{type:`linear`}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){let i=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<i.length;e++)i[e]._custom=this.resolveDataElementOptions(e+n).radius;return i}parseArrayData(e,t,n,r){let i=super.parseArrayData(e,t,n,r);for(let e=0;e<i.length;e++){let r=t[n+e];i[e]._custom=G(r[2],this.resolveDataElementOptions(e+n).radius)}return i}parseObjectData(e,t,n,r){let i=super.parseObjectData(e,t,n,r);for(let e=0;e<i.length;e++){let r=t[n+e];i[e]._custom=G(r&&r.r&&+r.r,this.resolveDataElementOptions(e+n).radius)}return i}getMaxOverflow(){let e=this._cachedMeta.data,t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;d<t+n;d++){let t=e[d],n=!i&&this.getParsed(d),f={},p=f[l]=i?a.getPixelForDecimal(.5):a.getPixelForValue(n[l]),m=f[u]=i?o.getBasePixel():o.getPixelForValue(n[u]);f.skip=isNaN(p)||isNaN(m),c&&(f.options=s||this.resolveDataElementOptions(d,t.active?`active`:r),i&&(f.options.radius=0)),this.updateElement(t,d,f,r)}}resolveDataElementOptions(e,t){let n=this.getParsed(e),r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));let i=r.radius;return t!==`active`&&(r.radius=0),r.radius+=G(n&&n._custom,i),r}};function ug(e,t,n){let r=1,i=1,a=0,o=0;if(t<Y){let s=e,c=s+t,l=Math.cos(s),u=Math.sin(s),d=Math.cos(c),f=Math.sin(c),p=(e,t,r)=>Uf(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Uf(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(wf,u,f),_=m(J,l,d),v=m(J+wf,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var dg=class extends Kh{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}}
vendor: 7,144 bytes, line 4
4,cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(U(n[e])){let{key:e=`value`}=this._parsing;i=t=>+hf(n[t],e)}let a,o;for(a=e,o=e+t;a<o;++a)r._parsed[a]=i(a)}}_getRotation(){return If(this.options.rotation-90)}_getCircumference(){return If(this.options.circumference)}_getRotationExtents(){let e=Y,t=-Y;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}update(e){let{chartArea:t}=this.chart,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(t.width,t.height)-i)/2,0),o=Math.min(nf(this.options.cutout,a),1),s=this._getRingWeight(this.index),{circumference:c,rotation:l}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:f,offsetY:p}=ug(l,c,o),m=(t.width-i)/u,h=(t.height-i)/d,g=Math.max(Math.min(m,h)/2,0),_=rf(this.options.radius,g),v=(_-Math.max(_*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*_,this.offsetY=p*_,n.total=this.calculateTotal(),this.outerRadius=_-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*s,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){let n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/Y)}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.chartArea,s=a.options.animation,c=(o.left+o.right)/2,l=(o.top+o.bottom)/2,u=i&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(t,r),h=this._getRotation(),g;for(g=0;g<t;++g)h+=this._circumference(g,i);for(g=t;g<t+n;++g){let t=this._circumference(g,i),n=e[g],a={x:c+this.offsetX,y:l+this.offsetY,startAngle:h,endAngle:h+t,circumference:t,outerRadius:f,innerRadius:d};m&&(a.options=p||this.resolveDataElementOptions(g,n.active?`active`:r)),h+=t,this.updateElement(n,g,a,r)}}calculateTotal(){let e=this._cachedMeta,t=e.data,n=0,r;for(r=0;r<t.length;r++){let i=e._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!t[r].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){let t=this._cachedMeta.total;return t>0&&!isNaN(e)?Math.abs(e)/t*Y:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Sp(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){a=n.getDatasetMeta(r),e=a.data,o=a.controller;break}}if(!e)return 0;for(r=0,i=e.length;r<i;++r)s=o.resolveDataElementOptions(r),s.borderAlign!==`inner`&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){let e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(G(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}},fg=class extends Kh{static id=`line`;static defaults={datasetElementType:`line`,dataElementType:`point`,showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:`category`},_value_:{type:`linear`}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let t=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=t,a=this.chart._animationsDisabled,{start:o,count:s}=sp(t,r,a);this._drawStart=o,this._drawCount=s,cp(t)&&(o=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;let c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:c},e),this.updateElements(r,o,s,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o,_stacked:s,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(t,r),d=a.axis,f=o.axis,{spanGaps:p,segment:m}=this.options,h=Nf(p)?p:1/0,g=this.chart._animationsDisabled||i||r===`none`,_=t+n,v=e.length,y=t>0&&this.getParsed(t-1);for(let n=0;n<v;++n){let p=e[n],v=g?p:{};if(n<t||n>=_){v.skip=!0;continue}let b=this.getParsed(n),x=V(b[f]),S=v[d]=a.getPixelForValue(b[d],n),C=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(C)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},pg=class extends Kh{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update(
4)}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Sp(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return wm.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*J,d=u,f,p=360/this.countVisibleElements();for(f=0;f<t;++f)d+=this._computeAngle(f,r,p);for(f=t;f<t+n;f++){let t=e[f],n=d,m=d+this._computeAngle(f,r,p),h=a.getDataVisibility(f)?s.getDistanceFromCenterForValue(this.getParsed(f).r):0;d=m,i&&(o.animateScale&&(h=0),o.animateRotate&&(n=m=u));let g={x:c,y:l,innerRadius:0,outerRadius:h,startAngle:n,endAngle:m,options:this.resolveDataElementOptions(f,t.active?`active`:r)};this.updateElement(t,f,g,r)}}countVisibleElements(){let e=this._cachedMeta,t=0;return e.data.forEach((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?If(this.resolveDataElementOptions(e,t).angle||n):0}},mg=Object.freeze({__proto__:null,BarController:cg,BubbleController:lg,DoughnutController:dg,LineController:fg,PieController:class extends dg{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:pg,RadarController:class extends Kh{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return wm.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o<t+n;o++){let t=e[o],n=this.resolveDataElementOptions(o,t.active?`active`:r),s=i.getPointPositionForValue(o,this.getParsed(o).r),c=a?i.xCenter:s.x,l=a?i.yCenter:s.y,u={x:c,y:l,angle:s.angle,skip:isNaN(c)||isNaN(l),options:n};this.updateElement(t,o,u,r)}}},ScatterController:class extends Kh{static id=`scatter`;static defaults={datasetElementType:!1,dataElementType:`point`,showLine:!1,fill:!1};static overrides={interaction:{mode:`point`},scales:{x:{type:`linear`},y:{type:`linear`}}};getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y);return{label:n[e]||``,value:`(`+o+`, `+s+`)`}}update(e){let t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled,{start:i,count:a}=sp(t,n,r);if(this._drawStart=i,this._drawCount=a,cp(t)&&(i=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:i,_dataset:a}=t;i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=n;let o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:o},e)}else this.datasetElementType&&=(delete t.dataset,!1);this.updateElements(n,i,a,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement(`line`)),super.addElements()}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o,_stacked:s,_dataset:c}=this._cachedMeta,l=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(l),d=this.includeOptions(r,u),f=a.axis,p=o.axis,{spanGaps:m,segment:h}=this.options,g=Nf(m)?m:1/0,_=this.chart._animationsDisabled||i||r===`none`,v=t>0&&this.getParsed(t-1);for(let l=t;l<t+n;++l){let t=e[l],n=this.getParsed(l),m=_?t:{},y=V(n[p]),b=m[f]=a.getPixelForValue(n[f],l),x=m[p]=i||y?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[p],l);m.skip=isNaN(b)||isNaN(x)||y,m.stop=l>0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));
vendor: 4,573 bytes, line 4
4return Math.max(r,i,a)/2}}});function hg(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var gg={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return hg()}parse(){return hg()}format(){return hg()}add(){return hg()}diff(){return hg()}startOf(){return hg()}endOf(){return hg()}}};function _g(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?Yf:Jf;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!V(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!V(e[t.axis]));r.hi+=Math.max(0,o)}return r}else if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function vg(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e<n;++e){let{index:n,data:s}=a[e],{lo:c,hi:l}=_g(a[e],t,o,i);for(let e=c;e<=l;++e){let t=s[e];t.skip||r(t,n,e)}}}function yg(e){let t=e.indexOf(`x`)!==-1,n=e.indexOf(`y`)!==-1;return function(e,r){let i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(i**2+a**2)}}function bg(e,t,n,r,i){let a=[];return!i&&!e.isPointInArea(t)||vg(e,n,t,function(n,o,s){!i&&!Rp(n,e.chartArea,0)||n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:o,index:s})},!0),a}function xg(e,t,n,r){let i=[];function a(e,n,a){let{startAngle:o,endAngle:s}=e.getProps([`startAngle`,`endAngle`],r),{angle:c}=zf(e,{x:t.x,y:t.y});Uf(c,o,s)&&i.push({element:e,datasetIndex:n,index:a})}return vg(e,n,t,a),i}function Sg(e,t,n,r,i,a){let o=[],s=yg(n),c=1/0;function l(n,l,u){let d=n.inRange(t.x,t.y,i);if(r&&!d)return;let f=n.getCenterPoint(i);if(!(a||e.isPointInArea(f))&&!d)return;let p=s(t,f);p<c?(o=[{element:n,datasetIndex:l,index:u}],c=p):p===c&&o.push({element:n,datasetIndex:l,index:u})}return vg(e,n,t,l),o}function Cg(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n===`r`&&!r?xg(e,t,n,i):Sg(e,t,n,r,i,a)}function wg(e,t,n,r,i){let a=[],o=n===`x`?`inXRange`:`inYRange`,s=!1;return vg(e,n,t,(e,r,c)=>{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Tg={evaluateInteractionItems:vg,modes:{index(e,t,n,r){let i=Wm(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?bg(e,i,a,r,o):Cg(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=Wm(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?bg(e,i,a,r,o):Cg(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point(e,t,n,r){return bg(e,Wm(t,e),n.axis||`xy`,r,n.includeInvisible||!1)},nearest(e,t,n,r){let i=Wm(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1;return Cg(e,i,a,n.intersect,r,o)},x(e,t,n,r){return wg(e,Wm(t,e),`x`,n.intersect,r)},y(e,t,n,r){return wg(e,Wm(t,e),`y`,n.intersect,r)}}},Eg=[`left`,`top`,`right`,`bottom`];function Dg(e,t){return e.filter(e=>e.pos===t)}function Og(e,t){return e.filter(e=>Eg.indexOf(e.pos)===-1&&e.box.axis===t)}function kg(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Ag(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function jg(e){let t={};for(let n of e){let{stack:e,pos:r,stackWeight:i}=n;if(!e||!Eg.includes(r))continue;let a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function Mg(e,t){let n=jg(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];let{fullSize:o}=s.box,c=n[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*r:o&&t.availableWidth,s.height=i):(s.width=r,s.height=l?l*i:o&&t.availableHeight)}return n}function Ng(e){let t=Ag(e),n=kg(t.filter(e=>e.box.fullSize),!0),r=kg(Dg(t,`left`),!0),i=kg(Dg(t,`right`)),a=kg(Dg(t,`top`),!0),o=kg(Dg(t,`bottom`)),s=Og(t,`x`),c=Og(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:Dg(t,`chartArea`),vertical:r.concat(i).c
vendor: 5,836 bytes, line 4
4oncat(c),horizontal:a.concat(o).concat(s)}}function Pg(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Fg(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Ig(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!U(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Fg(o,a.getPadding());let s=Math.max(0,t.outerWidth-Pg(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Pg(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Lg(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function Rg(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function zg(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a<o;++a){s=e[a],c=s.box,c.update(s.width||t.w,s.height||t.h,Rg(s.horizontal,t));let{same:o,other:d}=Ig(t,n,s,r);l|=o&&i.length,u||=d,c.fullSize||i.push(s)}return l&&zg(i,t,n,r)||u}function Bg(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function Vg(e,t,n,r){let i=n.padding,{x:a,y:o}=t;for(let s of e){let e=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){let r=t.w*l,a=c.size||e.height;_f(c.start)&&(o=c.start),e.fullSize?Bg(e,i.left,o,n.outerWidth-i.right-i.left,a):Bg(e,t.left+c.placed,o,r,a),c.start=o,c.placed+=r,o=e.bottom}else{let r=t.h*l,o=c.size||e.width;_f(c.start)&&(a=c.start),e.fullSize?Bg(e,a,i.top,o,n.outerHeight-i.bottom-i.top):Bg(e,a,t.top+c.placed,o,r),c.start=a,c.placed+=r,a=e.right}}t.x=a,t.y=o}var Hg={addBox(e,t){e.boxes||=[],t.fullSize=t.fullSize||!1,t.position=t.position||`top`,t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;let i=tm(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=Ng(e.boxes),c=s.vertical,l=s.horizontal;q(e.boxes,e=>{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Fg(f,tm(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Mg(c.concat(l),d);zg(s.fullSize,p,d,m),zg(c,p,d,m),zg(l,p,d,m)&&zg(c,p,d,m),Lg(p),Vg(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,Vg(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},q(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Ug=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Wg=class extends Ug{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},Gg=`$chartjs`,Kg={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},qg=e=>e===null||e===``;function Jg(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[Gg]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,qg(i)){let t=Xm(e,`width`);t!==void 0&&(e.width=t)}if(qg(r))if(e.style.height===``)e.height=e.width/(t||2);else{let t=Xm(e,`height`);t!==void 0&&(e.height=t)}return e}var Yg=Ym?{passive:!0}:!1;function Xg(e,t,n){e&&e.addEventListener(t,n,Yg)}function Zg(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Yg)}function Qg(e,t){let n=Kg[e.type]||e.type,{x:r,y:i}=Wm(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function $g(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function e_(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=$g(n.addedNodes,r),t&&=!$g(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function t_(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=$g(n.removedNodes,r),t&&=!$g(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var n_=new Map,r_=0;function i_(){let e=window.devicePixelRatio;e!==r_&&(r_=e,n_.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function a_(e,t){n_.size||window.addEventListener(`resize`,i_),n_.set(e,t)}function o_(e){n_.delete(e),n_.size||window.removeEventListener(`resize`,i_)}function s_(e,t,n){let r=e.canvas,i=r&&Im(r);if(!i)return;let a=np((e,t)=>{let r=i.clientWidth;n(e,t),r<i.clientWidth&&n()},window),o=new ResizeObserver(e=>{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;n===0&&r===0||a(n,r)});return o.observe(i),a_(e,a),o}function c_(e,t,n){n&&n.disconnect(),t===`resize`&&o_(e)}function l_(e,t,n){let r=e.canvas,i=np(t=>{e.ctx!==null&&n(Qg(t,e))},e);return Xg(r,t,i),i}var u_=class extends Ug{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Jg(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[Gg])return!1;let n=t[Gg].initial;
vendor: 39,037 bytes, line 4
4[`height`,`width`].forEach(e=>{let r=n[e];V(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[Gg],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:e_,detach:t_,resize:s_}[t]||l_)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:c_,detach:c_,resize:c_}[t]||Zg)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return qm(e,t,n,r)}isAttached(e){let t=e&&Im(e);return!!(t&&t.isConnected)}};function d_(e){return!Fm()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Wg:u_}var f_=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Nf(this.x)&&Nf(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function p_(e,t){let n=e.options.ticks,r=m_(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?g_(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return __(t,l,a,o/i),l;let u=h_(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(v_(t,l,u,V(r)?0:s-r,s),e=0,n=o-1;e<n;e++)v_(t,l,u,a[e],a[e+1]);return v_(t,l,u,c,V(r)?t.length:c+r),l}return v_(t,l,u),l}function m_(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+ +!t,i=e._maxLength/n;return Math.floor(Math.min(r,i))}function h_(e,t,n){let r=y_(e),i=t.length/n;if(!r)return Math.max(i,1);let a=jf(r);for(let e=0,t=a.length-1;e<t;e++){let t=a[e];if(t>i)return t}return Math.max(i,1)}function g_(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function __(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function v_(e,t,n,r,i){let a=G(r,0),o=Math.min(G(i,e.length),e.length),s=0,c,l,u;for(n=Math.ceil(n),i&&(c=i-r,n=c/Math.floor(c/n)),u=a;u<0;)s++,u=Math.round(a+s*n);for(l=Math.max(a,0);l<o;l++)l===u&&(t.push(e[l]),s++,u=Math.round(a+s*n))}function y_(e){let t=e.length,n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}var b_=e=>e===`left`?`right`:e===`right`?`left`:e,x_=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,S_=(e,t)=>Math.min(t||e,e);function C_(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function w_(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6,c=e.getPixelForTick(i),l;if(!(n&&(l=r===1?Math.max(c-a,o-c):t===0?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<a-s||c>o+s)))return c}function T_(e,t){q(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}})}function E_(e){return e.drawTicks?e.tickLength:0}function D_(e,t){if(!e.display)return 0;let n=nm(e.font,t),r=tm(e.padding);return(H(e.text)?e.text.length:1)*n.lineHeight+r.height}function O_(e,t){return im(e,{scale:t,type:`scale`})}function k_(e,t,n){return im(e,{tick:n,index:t,type:`tick`})}function A_(e,t,n){let r=ip(e);return(n&&t!==`right`||!n&&t===`right`)&&(r=b_(r)),r}function j_(e,t,n,r){let{top:i,left:a,bottom:o,right:s,chart:c}=e,{chartArea:l,scales:u}=c,d=0,f,p,m,h=o-i,g=s-a;if(e.isHorizontal()){if(p=ap(r,a,s),U(n)){let e=Object.keys(n)[0],r=n[e];m=u[e].getPixelForValue(r)+h-t}else m=n===`center`?(l.bottom+l.top)/2+h-t:x_(e,n,t);f=s-a}else{if(U(n)){let e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p=n===`center`?(l.left+l.right)/2-g+t:x_(e,n,t);m=ap(r,o,i),d=n===`left`?-wf:wf}return{titleX:p,titleY:m,maxWidth:f,rotation:d}}var M_=class e extends f_{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=tf(e,1/0),t=tf(t,-1/0),n=tf(n,1/0),r=tf(r,-1/0),{min:tf(e,n),max:tf(t,r),minDefined:W(e),maxDefined:W(t)}}getMinMax(e){let{min:t,max:n,minDefined:r,maxDefined:i}=this.getUserBounds(),a;if(r&&i)return{min:t,max:n};let o=this.getMatchingVisibleMetas();for(let s=0,c=o.length;s<c;++s)a=o[s].controller.getMinMax(this,e),r||(t=Math.min(t,a.min)),i||(n=Math.max(n,a.max));return t=i&&t>n?n:t,n=r&&t>n?t:n,{min:tf(t,tf(n,t)),max:tf(n,tf(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){K(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=rm(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o<this.ticks.length;this._convertTicksToLabels(s?C_(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source===`auto`)&&(this.ticks=p_(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,e=!e),this._startPixel=t,this._endPixel=n,this._reversePixels=e,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){K(this.options.afterUpdate,[this])}beforeSetDimensions(){K(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){K(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),K(this.options[e],[this])}beforeDataLimits(){this._callHooks(`beforeDataLimits`)}determineDataLimits(){}afterDataLimits(){this._callHooks(`afterDataLimits`)}beforeBuildTicks(){this._callHooks(`beforeBuildTicks`)}buildTicks(){return[]}afterBuildTicks(){this._callHooks(`afterBuildTicks`)}beforeTickToLabelConversion(){K(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){let t=this.options.ticks,n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],i.label=K(t.callback,[i.value,n,e],this)}afterTickToLabelConversion(){K(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){K(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let e=this.options,t=e.ticks,n=S_(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,i=t.maxRotation,a=r,o,s,c;if(!this._isVisible()||!t.display||r>=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Wf(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-E_(e.grid)-t.padding-D_(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Lf(Math.min(Math.asin(Wf((l.highest.height+6)/o,-1,1)),Math.asin(Wf(s/c,-1,1))-Math.asin(Wf(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){K(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){K(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=D_(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=E_(i)+a):(e.height=this.maxHeight,e.width=E_(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=If(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){K(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t<n;t++)V(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){let t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=C_(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){let{ctx:r,_longestTextCache:i}=this,a=[],o=[],s=Math.floor(t/S_(t,n)),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b;for(u=0;u<t;u+=s){if(p=e[u].label,m=this._resolveTickFontOptions(u),r.font=h=m.string,g=i[h]=i[h]||{data:{},gc:[]},_=m.lineHeight,v=y=0,!V(p)&&!H(p))v=Mp(r,g.data,g.gc,v,p),y=_;else if(H(p))for(d=0,f=p.length;d<f;++d)b=p[d],!V(b)&&!H(b)&&(v=Mp(r,g.data,g.gc,v,b),y+=_);a.push(v),o.push(y),c=Math.max(v,c),l=Math.max(y,l)}T_(i,t);let x=a.indexOf(c),S=o.indexOf(l),C=e=>({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return Gf(this._alignToPixels?Pp(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&e<t.length){let n=t[e];return n.$context||=k_(this.getContext(),e,n)}return this.$context||=O_(this.chart.getContext(),this)}_tickSize(){let e=this.options.ticks,t=If(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}_isVisible(){let e=this.options.display;return e===`auto`?this.getMatchingVisibleMetas().length>0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=E_(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Pp(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,D;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,D=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,D=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(U(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,D=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(U(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let O=G(r.ticks.maxTicksLimit,l),ee=Math.max(1,Math.ceil(l/O));for(_=0;_<l;_+=ee){let e=this.getContext(_),t=i.setContext(e),r=o.setContext(e),a=t.lineWidth,l=t.color,u=r.dash||[],f=r.dashOffset,p=t.tickWidth,m=t.tickColor,h=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=w_(this,_,s),v!==void 0&&(y=Pp(n,v,a),c?b=S=w=E=y:x=C=T=D=y,d.push({tx1:b,ty1:x,tx2:S,ty2:C,x1:w,y1:T,x2:E,y2:D,width:a,color:l,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:m,tickBorderDash:h,tickBorderDashOffset:g}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(e){let t=this.axis,n=this.options,{position:r,ticks:i}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=i,d=E_(n.grid),f=d+l,p=u?-l:f,m=-If(this.labelRotation),h=[],g,_,v,y,b,x,S,C,w,T,E,D,O=`middle`;if(r===`top`)x=this.bottom-p,S=this._getXAxisLabelAlignment();else if(r===`bottom`)x=this.top+p,S=this._getXAxisLabelAlignment();else if(r===`left`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(r===`right`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(t===`x`){if(r===`center`)x=(e.top+e.bottom)/2+f;else if(U(r)){let e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+f}S=this._getXAxisLabelAlignment()}else if(t===`y`){if(r===`center`)b=(e.left+e.right)/2-f;else if(U(r)){let e=Object.keys(r)[0],t=r[e];b=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}t===`y`&&(s===`start`?O=`top`:s===`end`&&(O=`bottom`));let ee=this._getLabelSizes();for(g=0,_=o.length;g<_;++g){v=o[g],y=v.label;let e=i.setContext(this.getContext(g));C=this.getPixelForTick(g)+i.labelOffset,w=this._resolveTickFontOptions(g),T=w.lineHeight,E=H(y)?y.length:1;let t=E/2,n=e.color,s=e.textStrokeColor,l=e.textStrokeWidth,d=S;a?(b=C,S===`inner`&&(d=g===_-1?this.options.reverse?`left`:`right`:g===0?this.options.reverse?`right`:`left`:`center`),D=r===`top`?c===`near`||m!==0?-E*T+T/2:c===`center`?-ee.highest.height/2-t*T+T:-ee.highest.height+T/2:c===`near`||m!==0?T/2:c===`center`?ee.highest.height/2-t*T:ee.highest.height-E*T,u&&(D*=-1),m!==0&&!e.showLabelBackdrop&&(b+=T/2*Math.sin(m))):(x=C,D=(1-E)*T/2);let f;if(e.showLabelBackdrop){let t=tm(e.backdropPadding),n=ee.heights[g],r=ee.widths[g],i=D-t.top,a=0-t.left;switch(O){case`middle`:i-=n/2;break;case`bottom`:i-=n;break}switch(S){case`center`:a-=r/2;break;case`right`:a-=r;break;case`inner`:g===_-1?a-=r:g>0&&(a-=r/2);break}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:D,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:O,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-If(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{!r.width||!r.color||(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i<a;++i){let e=r[i];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){let{chart:e,ctx:t,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),a=n.display?i.width:0;if(!a)return;let o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue,c,l,u,d;this.isHorizontal()?(c=Pp(e,this.left,a)-a/2,l=Pp(e,this.right,o)+o/2,u=d=s):(u=Pp(e,this.top,a)-a/2,d=Pp(e,this.bottom,o)+o/2,c=l=s),t.save(),t.lineWidth=i.width,t.strokeStyle=i.color,t.beginPath(),t.moveTo(c,u),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;let t=this.ctx,n=this._computeLabelArea();n&&zp(t,n);let r=this.getLabelItems(e);for(let e of r){let n=e.options,r=e.font,i=e.label,a=e.textOffset;Kp(t,i,0,a,r,n)}n&&Bp(t)}drawTitle(){let{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;let i=nm(n.font),a=tm(n.padding),o=n.align,s=i.lineHeight/2;t===`bottom`||t===`center`||U(t)?(s+=a.bottom,H(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=a.top;let{titleX:c,titleY:l,maxWidth:u,rotation:d}=j_(this,s,t,o);Kp(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:A_(o,t,r),textBaseline:`middle`,translation:[c,l]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=G(t.grid&&t.grid.z,-1),i=G(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:n,draw:e=>{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i<a;++i){let a=t[i];a[n]===this.id&&(!e||a.type===e)&&r.push(a)}return r}_resolveTickFontOptions(e){return nm(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){let e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}},N_=class{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){let t=Object.getPrototypeOf(e),n;I_(t)&&(n=this.register(t));let r=this.items,i=e.id,a=this.scope+`.`+i;if(!i)throw Error(`class does not have id: `+e);return i in r?a:(r[i]=e,P_(e,a,n),this.override&&X.override(e.id,e.overrides),a)}get(e){return this.items[e]}unregister(e){let t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in X[r]&&(delete X[r][n],this.override&&delete Dp[n])}};function P_(e,t,n){let r=lf(Object.create(null),[n?X.get(n):{},X.get(t),e.defaults]);X.set(t,r),e.defaultRoutes&&F_(t,e.defaultRoutes),e.descriptors&&X.describe(t,e.descriptors)}function F_(e,t){Object.keys(t).forEach(n=>{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);X.route(a,i,c,s)})}function I_(e){return`id`in e&&`defaults`in e}var L_=new class{constructor(){this.controllers=new N_(Kh,`datasets`,!0),this.elements=new N_(f_,`elements`),this.plugins=new N_(Object,`plugins`),this.scales=new N_(M_,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):q(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=gf(e);K(n[`before`+r],[],n),t[e](n),K(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){let n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){let r=t.get(e);if(r===void 0)throw Error(`"`+e+`" is not a registered `+n+`.`);return r}},R_=class{constructor(){this._init=void 0}notify(e,t,n,r){if(t===`beforeInit`&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,`install`)),this._init===void 0)return;let i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return t===`afterDestroy`&&(this._notify(i,e,`stop`),this._notify(this._init,e,`uninstall`),this._init=void 0),a}_notify(e,t,n,r){r||={};for(let i of e){let e=i.plugin,a=e[n];if(K(a,[t,r,i.options],e)===!1&&r.cancelable)return!1}return!0}invalidate(){V(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){let n=e&&e.config,r=G(n.options&&n.options.plugins,{}),i=z_(n);return r===!1&&!t?[]:V_(e,i,r,t)}_notifyStateChanges(e){let t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function z_(e){let t={},n=[],r=Object.keys(L_.plugins.items);for(let e=0;e<r.length;e++)n.push(L_.getPlugin(r[e]));let i=e.plugins||[];for(let e=0;e<i.length;e++){let r=i[e];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function B_(e,t){return!t&&e===!1?null:e===!0?{}:e}function V_(e,{plugins:t,localIds:n},r,i){let a=[],o=e.getContext();for(let s of t){let t=s.id,c=B_(r[t],i);c!==null&&a.push({plugin:s,options:H_(e.config,{plugin:s,local:n[t]},c,o)})}return a}function H_(e,{plugin:t,local:n},r,i){let a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[``],{scriptable:!1,indexable:!1,allKeys:!0})}function U_(e,t){let n=X.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||`x`}function W_(e,t){let n=e;return e===`_index_`?n=t:e===`_value_`&&(n=t===`x`?`y`:`x`),n}function G_(e,t){return e===t?`_index_`:`_value_`}function K_(e){if(e===`x`||e===`y`||e===`r`)return e}function q_(e){if(e===`top`||e===`bottom`)return`x`;if(e===`left`||e===`right`)return`y`}function J_(e,...t){if(K_(e))return e;for(let n of t){let t=n.axis||q_(n.position)||e.length>1&&K_(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Y_(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function X_(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return Y_(e,`x`,n[0])||Y_(e,`y`,n[0])}return{}}function Z_(e,t){let n=Dp[e.type]||{scales:{}},r=t.scales||{},i=U_(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!U(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=J_(t,o,X_(t,e),X.scales[o.type]),c=G_(s,i),l=n.scales||{};a[t]=uf(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||U_(i,t),s=(Dp[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=W_(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),uf(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];uf(t,[X.scales[t.type],X.scale])}),a}function Q_(e){let t=e.options||={};t.plugins=G(t.plugins,{}),t.scales=Z_(e,t)}function $_(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function ev(e){return e||={},e.data=$_(e.data),Q_(e),e}var tv=new Map,nv=new Set;function rv(e,t){let n=tv.get(e);return n||(n=t(),tv.set(e,n),nv.add(n)),n}var iv=(e,t,n)=>{let r=hf(t,n);r!==void 0&&e.add(r)},av=class{constructor(e){this._config=ev(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$_(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),Q_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return rv(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return rv(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return rv(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return rv(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>iv(s,e,t))),t.forEach(e=>iv(s,r,e)),t.forEach(e=>iv(s,Dp[i]||{},e)),t.forEach(e=>iv(s,X,e)),t.forEach(e=>iv(s,Op,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),nv.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Dp[t]||{},X.datasets[t]||{},{type:t},X,Op]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=ov(this._resolverCache,e,r),s=a;if(cv(a,t)){i.$shared=!1,n=vf(n)?n():n;let t=this.createResolver(e,n,o);s=om(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=ov(this._resolverCache,e,n);return U(t)?om(i,t,void 0,r):i}};function ov(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:am(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var sv=e=>U(e)&&Object.getOwnPropertyNames(e).some(t=>vf(e[t]));function cv(e,t){let{isScriptable:n,isIndexable:r}=sm(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(vf(o)||sv(o))||a&&H(o))return!0}return!1}var lv=`4.5.1`,uv=[`top`,`bottom`,`left`,`right`,`chartArea`];function dv(e,t){return e===`top`||e===`bottom`||uv.indexOf(e)===-1&&t===`x`}function fv(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function pv(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),K(n&&n.onComplete,[e],t)}function mv(e){let t=e.chart,n=t.options.animation;K(n&&n.onProgress,[e],t)}function hv(e){return Fm()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var gv={},_v=e=>{let t=hv(e);return Object.values(gv).filter(e=>e.canvas===t).pop()};function vv(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function yv(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var bv=class{static defaults=X;static instances=gv;static overrides=Dp;static registry=L_;static version=lv;static getChart=_v;static register(...e){L_.add(...e),xv()}static unregister(...e){L_.remove(...e),xv()}constructor(e,t){let n=this.config=new av(t),r=hv(e),i=_v(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(d_(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;if(this.id=ef(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new R_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=rp(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],gv[this.id]=this,!o||!s){console.error(`Failed to create chart: can't acquire context from the given item`);return}bh.listen(this,`complete`,pv),bh.listen(this,`progress`,mv),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return V(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return L_}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():Jm(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Fp(this.canvas,this.ctx),this}stop(){return bh.stop(this),this}resize(e,t){bh.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Jm(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),K(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){q(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=J_(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),q(i,t=>{let i=t.options,a=i.id,o=J_(a,i),s=G(i.type,t.dtype);(i.position===void 0||dv(i.position,o)!==dv(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(L_.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),q(r,(e,t)=>{e||delete n[t]}),q(n,e=>{Hg.configure(this,e,e.options),Hg.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(fv(`order`,`index`))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){let r=t[n],i=this.getDatasetMeta(n),a=r.type||this.config.type;if(i.type&&i.type!==a&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=a,i.indexAxis=r.indexAxis||U_(a,this.options),i.order=r.order||0,i.index=n,i.label=``+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{let t=L_.getController(a),{datasetElementType:r,dataElementType:o}=X.datasets[a];Object.assign(t,{dataElementType:L_.getElement(o),datasetElementType:r&&L_.getElement(r)}),i.controller=new t(this,n),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){q(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){let{controller:t}=this.getDatasetMeta(e),n=!r&&i.indexOf(t)===-1;t.buildOrUpdateElements(n),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||q(i,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(fv(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){q(this.scales,e=>{Hg.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!yf(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)vv(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;e<t;e++)if(!yf(r,n(e)))return;return Array.from(r).map(e=>e.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Hg.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],q(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,vf(e)?e({datasetIndex:t}):e);this.notifyPlugins(`afterDatasetsUpdate`,{mode:e})}}_updateDataset(e,t){let n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins(`beforeDatasetUpdate`,r)!==!1&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins(`afterDatasetUpdate`,r))}render(){this.notifyPlugins(`beforeRender`,{cancelable:!0})!==!1&&(bh.has(this)?this.attached&&!bh.running(this)&&bh.start(this):(this.draw(),pv({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins(`beforeDraw`,{cancelable:!0})===!1)return;let t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins(`afterDraw`)}_getSortedDatasetMetas(e){let t=this._sortedMetasets,n=[],r,i;for(r=0,i=t.length;r<i;++r){let i=t[r];(!e||i.visible)&&n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins(`beforeDatasetsDraw`,{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=yh(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&zp(t,r),e.controller.draw(),r&&Bp(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Rp(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Tg.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=im(null,{chart:this,type:`chart`})}
vendor: 7,933 bytes, line 4
4getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);_f(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),bh.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins(`beforeDestroy`);let{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Fp(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete gv[this.id],this.notifyPlugins(`afterDestroy`)}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};q(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){q(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},q(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o<s;++o){a=e[o];let t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[r+`HoverStyle`](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});af(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=bf(e),c=yv(e,this._lastEvent,n,s);n&&(this._lastEvent=null,K(i.onHover,[e,o,this],this),s&&K(i.onClick,[e,o,this],this));let l=!af(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 xv(){return q(bv.instances,e=>e._plugins.invalidate())}function Sv(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,Hf(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,Hf(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Hf(r-n));if(u===`round`)e.arc(i,a,t,n-J/2,r+J/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+J/2)+i,c=-o*Math.sin(n+J/2)+a,l=o*Math.cos(r+J/2)+i,u=o*Math.sin(r+J/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 Cv(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+wf,r-wf),e.closePath(),e.clip()}function wv(e){return Qp(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Tv(e,t,n,r){let i=wv(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 Wf(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Wf(i.innerStart,0,o),innerEnd:Wf(i.innerEnd,0,o)}}function Ev(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Dv(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/J)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Tv(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,E=f+b,D=f+x,O=g+b/E,ee=_-x/D;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=Ev(C,T,o,s);e.arc(t.x,t.y,y,T,_+wf)}let n=Ev(D,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=Ev(D,ee,o,s);e.arc(t.x,t.y,x,_+wf,ee+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=Ev(E,O,o,s);e.arc(t.x,t.y,b,O+Math.PI,g-wf)}let i=Ev(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=Ev(S,w,o,s);e.arc(t.x,t.y,v,g-wf,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 Ov(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){Dv(e,t,n,r,c,i);for(let t=0;t<a;++t)e.fill();isNaN(s)||(c=o+(s%Y||Y))}return Dv(e,t,n,r,c,i),e.fill(),c}function kv(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s,options:c}=t,{borderWidth:l,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=c,m=c.borderAlign===`inner`;if(!l)return;e.setLineDash(d||[]),e.lineDashOffset=f,m?(e.lineWidth=l*2,e.lineJoin=u||`round`):(e.lineWidth=l,e.lineJoin=u||`bevel`);let h=t.endAngle;if(a){Dv(e,t,n,r,h,i);for(let t=0;t<a;++t)e.stroke();isNaN(s)||(h=o+(s%Y||Y))}m&&Cv(e,t,h),c.selfJoin&&h-o>=J&&p===0&&u!==`miter`&&Sv(e,t,h),a||(Dv(e,t,n,r,h,i),e.stroke())}var Av=class extends f_{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}=zf(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`,`
4circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=G(l,o-a),f=Uf(r,a,o)&&a!==o,p=d>=Y||f,m=Kf(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>Y?Math.floor(n/Y):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(J,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Ov(e,this,s,i,a),kv(e,this,s,i,a),e.restore()}};function jv(e,t,n=t){e.lineCap=G(n.borderCapStyle,t.borderCapStyle),e.setLineDash(G(n.borderDash,t.borderDash)),e.lineDashOffset=G(n.borderDashOffset,t.borderDashOffset),e.lineJoin=G(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=G(n.borderWidth,t.borderWidth),e.strokeStyle=G(n.borderColor,t.borderColor)}function Mv(e,t,n){e.lineTo(n.x,n.y)}function Nv(e){return e.stepped?Vp:e.tension||e.cubicInterpolationMode===`monotone`?Hp:Mv}function Pv(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=i<o&&a<o||i>s&&a>s;return{count:r,start:c,loop:t.loop,ilen:l<c&&!u?r+l-c:l-c}}function Fv(e,t,n,r){let{points:i,options:a}=t,{count:o,start:s,loop:c,ilen:l}=Pv(i,n,r),u=Nv(a),{move:d=!0,reverse:f}=r||{},p,m,h;for(p=0;p<=l;++p)m=i[(s+(f?l-p:p))%o],!m.skip&&(d?(e.moveTo(m.x,m.y),d=!1):u(e,h,m,f,a.stepped),h=m);return c&&(m=i[(s+(f?l:0))%o],u(e,h,m,f,a.stepped)),!!c}function Iv(e,t,n,r){let i=t.points,{count:a,start:o,ilen:s}=Pv(i,n,r),{move:c=!0,reverse:l}=r||{},u=0,d=0,f,p,m,h,g,_,v=e=>(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(n<h?h=n:n>g&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Lv(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Iv:Fv}function Rv(e){return e.stepped?Qm:e.tension||e.cubicInterpolationMode===`monotone`?$m:Zm}function zv(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),jv(e,t.options),e.stroke(i)}function Bv(e,t,n,r){let{segments:i,options:a}=t,o=Lv(t);for(let s of i)jv(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var Vv=typeof Path2D==`function`;function Hv(e,t,n,r){Vv&&!t.options.segment?zv(e,t,n,r):Bv(e,t,n,r)}var Uv=class extends f_{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Pm(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=fh(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=lh(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Rv(n),c,l;
vendor: 1,122 bytes, line 4
4for(c=0,l=a.length;c<l;++c){let{start:l,end:u}=a[c],d=i[l],f=i[u];if(d===f){o.push(d);continue}let p=s(d,f,Math.abs((r-d[t])/(f[t]-d[t])),n.stepped);p[t]=e[t],o.push(p)}return o.length===1?o[0]:o}pathSegment(e,t,n){return Lv(this)(e,this,t,n)}path(e,t,n){let r=this.segments,i=Lv(this),a=this._loop;t||=0,n||=this.points.length-t;for(let o of r)a&=i(e,this,o,{start:t,end:t+n-1});return!!a}draw(e,t,n,r){let i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),Hv(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};function Wv(e,t,n,r){let i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}var Gv=class extends f_{static id=`point`;parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:`circle`,radius:3,rotation:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){let r=this.options,{x:i,y:a}=this.getProps([`x`,`y`],n);
4return(e-i)**2+(t-a)**2<(r.hitRadius+r.radius)**2}inXRange(e,t){return Wv(this,e,`x`,t)}inYRange(e,t){return Wv(this,e,`y`,t)}getCenterPoint(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}size(e){e=e||this.options||{};let t=e.radius||0;t=Math.max(t,t&&e.hoverRadius||0);let n=t&&e.borderWidth||0;return(t+n)*2}draw(e,t){let n=this.options;this.skip||n.radius<.1||!Rp(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Ip(e,n,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}};function Kv(e,t){let{x:n,y:r,base:i,width:a,height:o}=e.getProps([`x`,`y`,`base`,`width`,`height`],t),s,c,l,u,d;return e.horizontal?(d=o/2,s=Math.min(n,i),c=Math.max(n,i),l=r-d,u=r+d):(d=a/2,s=n-d,c=n+d,l=Math.min(r,i),u=Math.max(r,i)),{left:s,top:l,right:c,bottom:u}}function qv(e,t,n,r){return e?0:Wf(t,n,r)}function Jv(e,t,n){let r=e.options.borderWidth,i=e.borderSkipped,a=$p(r);return{t:qv(i.top,a.top,0,n),r:qv(i.right,a.right,0,t),b:qv(i.bottom,a.bottom,0,n),l:qv(i.left,a.left,0,t)}}function Yv(e,t,n){let{enableBorderRadius:r}=e.getProps([`enableBorderRadius`]),i=e.options.borderRadius,a=em(i),o=Math.min(t,n),s=e.borderSkipped,c=r||U(i);return{topLeft:qv(!c||s.top||s.left,a.topLeft,0,o),topRight:qv(!c||s.top||s.right,a.topRight,0,o),bottomLeft:qv(!c||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:qv(!c||s.bottom||s.right,a.bottomRight,0,o)}}function Xv(e){let t=Kv(e),n=t.right-t.left,r=t.bottom-t.top,i=Jv(e,n/2,r/2),a=Yv(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function Zv(e,t,n,r){let i=t===null,a=n===null,o=e&&!(i&&a)&&Kv(e,r);return o&&(i||Kf(t,o.left,o.right))&&(a||Kf(n,o.top,o.bottom))}function Qv(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function $v(e,t){e.rect(t.x,t.y,t.w,t.h)}function ey(e,t,n={}){let r=e.x===n.x?0:-t,i=e.y===n.y?0:-t,a=(e.x+e.w===n.x+n.w?0:t)-r,o=(e.y+e.h===n.y+n.h?0:t)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}var ty=class extends f_{static id=`bar`;static defaults={borderSkipped:`start`,borderWidth:0,borderRadius:0,inflateAmount:`auto`,pointStyle:void 0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){let{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:a}=Xv(this),o=Qv(a.radius)?qp:$v;e.save(),(a.w!==i.w||a.h!==i.h)&&(e.beginPath(),o(e,ey(a,t,i)),e.clip(),o(e,ey(i,-t,a)),e.fillStyle=n,e.fill(`evenodd`)),e.beginPath(),o(e,ey(i,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return Zv(this,e,t,n)}inXRange(e,t){return Zv(this,e,null,t)}inYRange(e,t){return Zv(this,null,e,t)}getCenterPoint(e){let{x:t,y:n,base:r,horizontal:i}=this.getProps([`x`,`y`,`base`,`horizontal`],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return e===`x`?this.width/2:this.height/2}},ny=Object.freeze({__proto__:null,ArcElement:Av,BarElement:ty,LineElement:Uv,PointElement:Gv}),ry=[`rgb(54, 162, 235)`,`rgb(255, 99, 132)`,`rgb(255, 159, 64)`,`rgb(255, 205, 86)`,`rgb(75, 192, 192)`,`rgb(153, 102, 255)`,`rgb(201, 203, 207)`],iy=ry.map(e=>e.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function ay(e){return ry[e%ry.length]}function oy(e){return iy[e%iy.length]}function sy(e,t){return e.borderColor=ay(t),e.backgroundColor=oy(t),++t}function cy(e,t){return e.backgroundColor=e.data.map(()=>ay(t++)),t}function ly(e,t){return e.backgroundColor=e.data.map(()=>oy(t++)),t}function uy(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof dg?t=cy(n,t):i instanceof pg?t=ly(n,t):i&&(t=sy(n,t))}}function dy(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function fy(e){return e&&(e.borderColor||e.backgroundColor)}function py(){return X.borderColor!==`rgba(0,0,0,0.1)`||X.backgroundColor!==`rgba(0,0,0,0.1)`}var my={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=dy(r)||fy(i)||a&&dy(a)||py();if(!n.forceOverride&&o)return;let s=uy(e);r.forEach(s)}};function hy(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;d<a-2;d++){let r=0,i=0,a,l=Math.floor((d+1)*s)+1+t,g=Math.min(Math.floor((d+2)*s)+1,n)+t,_=g-l;for(a=l;a<g;a++)r+=e[a].x,i+=e[a].y;r/=_,i/=_;let v=Math.floor(d*s)+1+t,y=Math.min(Math.floor((d+1)*s)+1,n)+t,{x:b,y:x}=e[u];for(p=m=-1,a=v;a<y;a++)m=.5*Math.abs((b-r)*(e[a].y-x)-(b-e[a].x)*(i-x)),m>p&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function gy(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;o<t+n;++o){s=e[o],c=(s.x-v)/y*r,l=s.y;let t=c|0;if(t===u)l<m?(m=l,d=o):l>h&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!V(d)&&!V(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>
40&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function _y(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function vy(e){e.data.datasets.forEach(e=>{_y(e)})}function yy(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=Wf(Jf(t,a.axis,o).lo,0,n-1)),i=l?Wf(Jf(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var by={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vy(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(Z([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=yy(s,c);if(d<=(n.threshold||4*r)){_y(t);return}V(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=hy(c,u,d,r,n);break;case`min-max`:f=gy(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){vy(e)}};function xy(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=wy(r,s,i);let c=Sy(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=lh(t,c);for(let t of l){let r=Sy(n,a[t.start],a[t.end],t.loop),s=ch(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Ty(c,r,`start`,Math.max)},end:{[n]:Ty(c,r,`end`,Math.min)}})}}return o}function Sy(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=Hf(i),a=Hf(a)),{property:e,start:i,end:a}}function Cy(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=wy(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function wy(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Ty(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Ey(e,t){let n=[],r=!1;return H(e)?(r=!0,n=e):n=Cy(e,t),n.length?new Uv({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Dy(e){return e&&e.fill!==!1}function Oy(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!W(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function ky(e,t,n){let r=Ny(e);if(U(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return W(i)&&Math.floor(i)===i?Ay(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function Ay(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function jy(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:U(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function My(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:U(e)?e.value:t.getBaseValue(),r}function Ny(e){let t=e.options,n=t.fill,r=G(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function Py(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=Fy(t,n);s.push(Ey({x:null,y:t.bottom},r));for(let e=0;e<a.length;e++){let t=a[e];for(let e=t.start;e<=t.end;e++)Iy(i,o[e],s)}return new Uv({points:i,options:{}})}function Fy(e,t){let n=[],r=e.getMatchingVisibleMetas(`line`);for(let e=0;e<r.length;e++){let i=r[e];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function Iy(e,t,n){let r=[];for(let i=0;i<n.length;i++){let a=n[i],{first:o,last:s,point:c}=Ly(a,t,`x`);if(!(!c||o&&s)){if(o)r.unshift(c);else if(e.push(c),!s)break}}e.push(...r)}function Ly(e,t,n){let r=e.interpolate(t,n);if(!r)return{};let i=r[n],a=e.segments,o=e.points,s=!1,c=!1;for(let e=0;e<a.length;e++){let t=a[e],r=o[t.start][n],l=o[t.end][n];if(Kf(i,r,l)){s=i===r,c=i===l;break}}return{first:s,last:c,point:r}}var Ry=class{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){let{x:r,y:i,radius:a}=this;return t||={start:0,end:Y},e.arc(r,i,a,t.end,t.start,!0),!n.bounds}interpolate(e){let{x:t,y:n,radius:r}=this,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}};function zy(e){let{chart:t,fill:n,line:r}=e;if(W(n))return By(t,n);if(n===`stack`)return Py(e);if(n===`shape`)return!0;let i=Vy(e);return i instanceof Ry?i:Ey(i,r)}function By(e,t){let n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Vy(e){return(e.scale||{}).getPointPositionForValue?Uy(e):Hy(e)}function Hy(e){let{scale:t={},fill:n}=e,r=jy(n,t);if(W(r)){let e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}function Uy(e){let{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=My(n,t,a),s=[];if(r.grid.circular){let e=t.getPointPositionForValue(0,a);return new Ry({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let e=0;e<i;++e)s.push(t.getPointPositionForValue(e,o));return s}function Wy(e,t,n){let r=zy(t),{chart:i,index:a,line:o,scale:s,axis:c}=t,l=o.options,u=l.fill,d=l.backgroundColor,{above:f=d,below:p=d}=u||{},m=yh(i,i.getDatasetMeta(a));r&&o.points.length&&(zp(e,n),Gy(e,{line:o,target:r,above:f,below:p,area:n,scale:s,axis:c,clip:m}),Bp(e))}function Gy(e,t){let{line:n,target:r,above:i,below:a,area:o,scale:s,clip:c}=t,l=n._loop?`angle`:t.axis;e.save();let u=a;a!==i&&(l===`x`?(Ky(e,r,o.top),Jy(e,{line:n,target:r,color:i,scale:s,property:l,clip:c}
vendor: 4,529 bytes, line 4
4),e.restore(),e.save(),Ky(e,r,o.bottom)):l===`y`&&(qy(e,r,o.left),Jy(e,{line:n,target:r,color:a,scale:s,property:l,clip:c}),e.restore(),e.save(),qy(e,r,o.right),u=i)),Jy(e,{line:n,target:r,color:u,scale:s,property:l,clip:c}),e.restore()}function Ky(e,t,n){let{segments:r,points:i}=t,a=!0,o=!1;e.beginPath();for(let s of r){let{start:r,end:c}=s,l=i[r],u=i[wy(r,c,i)];a?(e.moveTo(l.x,l.y),a=!1):(e.lineTo(l.x,n),e.lineTo(l.x,l.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function qy(e,t,n){let{segments:r,points:i}=t,a=!0,o=!1;e.beginPath();for(let s of r){let{start:r,end:c}=s,l=i[r],u=i[wy(r,c,i)];a?(e.moveTo(l.x,l.y),a=!1):(e.lineTo(n,l.y),e.lineTo(l.x,l.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(n,u.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function Jy(e,t){let{line:n,target:r,property:i,color:a,scale:o,clip:s}=t,c=xy(n,r,i);for(let{source:t,target:l,start:u,end:d}of c){let{style:{backgroundColor:c=a}={}}=t,f=r!==!0;e.save(),e.fillStyle=c,Yy(e,o,s,f&&Sy(i,u,d)),e.beginPath();let p=!!n.pathSegment(e,t),m;if(f){p?e.closePath():Xy(e,r,d,i);let t=!!r.pathSegment(e,l,{move:p,reverse:!0});m=p&&t,m||Xy(e,r,u,i)}e.closePath(),e.fill(m?`evenodd`:`nonzero`),e.restore()}}function Yy(e,t,n,r){let i=t.chart.chartArea,{property:a,start:o,end:s}=r||{};if(a===`x`||a===`y`){let t,r,c,l;a===`x`?(t=o,r=i.top,c=s,l=i.bottom):(t=i.left,r=o,c=i.right,l=s),e.beginPath(),n&&(t=Math.max(t,n.left),c=Math.min(c,n.right),r=Math.max(r,n.top),l=Math.min(l,n.bottom)),e.rect(t,r,c-t,l-r),e.clip()}}function Xy(e,t,n,r){let i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var Zy={id:`filler`,afterDatasetsUpdate(e,t,n){let r=(e.data.datasets||[]).length,i=[],a,o,s,c;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,c=null,s&&s.options&&s instanceof Uv&&(c={visible:e.isDatasetVisible(o),index:o,fill:ky(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=c,i.push(c);for(o=0;o<r;++o)c=i[o],!(!c||c.fill===!1)&&(c.fill=Oy(i,o,n.propagate))},beforeDraw(e,t,n){let r=n.drawTime===`beforeDraw`,i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let t=i.length-1;t>=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Wy(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;Dy(n)&&Wy(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;!Dy(r)||n.drawTime!==`beforeDatasetDraw`||Wy(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Qy=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},$y=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,eb=class extends f_{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=K(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=nm(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Qy(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;
vendor: 4,217 bytes, line 4
4return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=tb(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=nh(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=ap(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=ap(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=ap(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=ap(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;zp(e,this),this._draw(),Bp(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=X.color,s=nh(e.rtl,this.left,this.width),c=nm(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Qy(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=G(n.lineWidth,1);if(r.fillStyle=G(n.fillStyle,o),r.lineCap=G(n.lineCap,`butt`),r.lineDashOffset=G(n.lineDashOffset,0),r.lineJoin=G(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=G(n.strokeStyle,o),r.setLineDash(G(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;Lp(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=em(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?qp(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Kp(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:ap(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:ap(i,this.top+y+l,this.bottom-t[0].height),line:0},rh(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=ap(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=ap(i,this.top+y+l,this.bottom-t[f.line].height));let w=s.x(S);if(g(w,C,o),S=op(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=ib(o,e)+l}else f.y+=b}),ih(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=nm(t.font),r=tm(t.padding);if(!t.display)return;let i=nh(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=ap(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+ap(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=ap(o,u,u+d);a.textAlign=i.textAlign(ip(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Kp(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=nm(e.font),n=tm(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(Kf(e,this.left,this.right)&&Kf(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;
vendor: 4,813 bytes, line 4
4++n)if(r=i[n],Kf(e,r.left,r.left+r.width)&&Kf(t,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(e){let t=this.options;if(!ab(e.type,t))return;let n=this._getLegendItemAt(e.x,e.y);if(e.type===`mousemove`||e.type===`mouseout`){let r=this._hoveredItem,i=$y(r,n);r&&!i&&K(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&K(t.onHover,[e,n,this],this)}else n&&K(t.onClick,[e,n,this],this)}};function tb(e,t,n,r,i){return{itemWidth:nb(r,e,t,n),itemHeight:rb(i,r,t.lineHeight)}}function nb(e,t,n,r){let i=e.text;return i&&typeof i!=`string`&&(i=i.reduce((e,t)=>e.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function rb(e,t,n){let r=e;return typeof t.text!=`string`&&(r=ib(t,n)),r}function ib(e,t){return t*(e.text?e.text.length:0)}function ab(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var ob={id:`legend`,_element:eb,start(e,t,n){let r=e.legend=new eb({ctx:e.ctx,options:n,chart:e});Hg.configure(e,r,n),Hg.addBox(e,r)},stop(e){Hg.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Hg.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=tm(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},sb=class extends f_{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=H(n.text)?n.text.length:1;this._padding=tm(n.padding);let i=r*nm(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=ap(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=ap(o,r,t),s=J*-.5):(l=i-e,u=ap(o,t,r),s=J*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=nm(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Kp(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:ip(t.align),textBaseline:`middle`,translation:[i,a]})}};function cb(e,t){let n=new sb({ctx:e.ctx,options:t,chart:e});Hg.configure(e,n,t),Hg.addBox(e,n),e.titleBlock=n}var lb={id:`title`,_element:sb,start(e,t,n){cb(e,n)},stop(e){let t=e.titleBlock;Hg.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Hg.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},ub=new WeakMap,db={id:`subtitle`,start(e,t,n){let r=new sb({ctx:e.ctx,options:n,chart:e});Hg.configure(e,r,n),Hg.addBox(e,r),ub.set(e,r)},stop(e){Hg.removeBox(e,ub.get(e)),ub.delete(e)},beforeUpdate(e,t,n){let r=ub.get(e);Hg.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},fb={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){let n=e[t].element;if(n&&n.hasValue()){let e=n.tooltipPosition();r.add(e.x),i+=e.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((e,t)=>
vendor: 21,637 bytes, lines 4-6
4e+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a<o;++a){let n=e[a].element;if(n&&n.hasValue()){let e=Bf(t,n.getCenterPoint());e<i&&(i=e,s=n)}}if(s){let e=s.tooltipPosition();n=e.x,r=e.y}return{x:n,y:r}}};function pb(e,t){return t&&(H(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function mb(e){return(typeof e==`string`||e instanceof String)&&e.indexOf(`
5`)>-1?e.split(`
6`):e}function hb(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function gb(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=nm(t.bodyFont),l=nm(t.titleFont),u=nm(t.footerFont),d=a.length,f=i.length,p=r.length,m=tm(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,q(e.title,y),n.font=c.string,q(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,q(r,e=>{q(e.before,y),q(e.lines,y),q(e.after,y)}),v=0,n.font=u.string,q(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function _b(e,t){let{y:n,height:r}=t;return n<r/2?`top`:n>e.height-r/2?`bottom`:`center`}function vb(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function yb(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),vb(l,e,t,n)&&(l=`center`),l}function bb(e,t,n){let r=n.yAlign||t.yAlign||_b(e,n);return{xAlign:n.xAlign||t.xAlign||yb(e,t,n,r),yAlign:r}}function xb(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Sb(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:t===`bottom`?r-=i+n:r-=i/2,r}function Cb(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=em(o),m=xb(t,s),h=Sb(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Wf(m,0,r.width-t.width),y:Wf(h,0,r.height-t.height)}}function wb(e,t,n){let r=tm(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Tb(e){return pb([],mb(e))}function Eb(e,t,n){return im(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function Db(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Ob={beforeTitle:$d,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return``},afterTitle:$d,beforeBody:$d,beforeLabel:$d,label(e){if(this&&this.options&&this.options.mode===`dataset`)return e.label+`: `+e.formattedValue||e.formattedValue;let t=e.dataset.label||``;t&&(t+=`: `);let n=e.formattedValue;return V(n)||(t+=n),t},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:$d,afterBody:$d,beforeFooter:$d,footer:$d,afterFooter:$d};function kb(e,t,n,r){let i=e[t].call(n,r);return i===void 0?Ob[t].call(n,r):i}var Ab=class extends f_{static positioners=fb;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new wh(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||=Eb(this.chart.getContext(),this,this._tooltipItems)}getTitle(e,t){let{callbacks:n}=t,r=kb(n,`beforeTitle`,this,e),i=kb(n,`title`,this,e),a=kb(n,`afterTitle`,this,e),o=[];return o=pb(o,mb(r)),o=pb(o,mb(i)),o=pb(o,mb(a)),o}getBeforeBody(e,t){return Tb(kb(t.callbacks,`beforeBody`,this,e))}getBody(e,t){let{callbacks:n}=t,r=[];return q(e,e=>{let t={before:[],lines:[],after:[]},i=Db(n,e);pb(t.before,mb(kb(i,`beforeLabel`,this,e))),pb(t.lines,kb(i,`label`,this,e)),pb(t.after,mb(kb(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Tb(kb(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=kb(n,`beforeFooter`,this,e),i=kb(n,`footer`,this,e),a=kb(n,`afterFooter`,this,e),o=[];return o=pb(o,mb(r)),o=pb(o,mb(i)),o=pb(o,mb(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;s<c;++s)o.push(hb(this.chart,t[s]));return e.filter&&(o=o.filter((t,r,i)=>e.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),q(o,t=>{let n=Db(e.callbacks,t);r.push(kb(n,`labelColor`,this,t)),i.push(kb(n,`labelPointStyle`,this,t)),a.push(kb(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=fb[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=gb(this,n),o=Object.assign({},e,t),s=bb(this.chart,n,o),c=Cb(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=em(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=nh(n.rtl,this.x,this.width);for(e.x=wb(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=nm(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<i;++s)t.fillText(r[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===i&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,i){let a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=i,l=nm(i.bodyFont),u=wb(this,`left`,i),d=r.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){let t={radius:Math.min(c,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(d,c)+c/2,l=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Ip(e,t,n,l),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Ip(e,t,n,l)}else{e.lineWidth=U(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let t=r.leftForLtr(d,c),n=r.leftForLtr(r.xPlus(d,1),c-2),o=em(a.borderRadius);Object.values(o).some(e=>e!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,qp(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),qp(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=nm(n.bodyFont),d=u.lineHeight,f=0,p=nh(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=wb(this,h,n),t.fillStyle=n.bodyColor,q(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y<x;++y){for(g=r[y],_=this.labelTextColors[y],t.fillStyle=_,q(g.before,m),v=g.lines,o&&v.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),b=0,S=v.length;b<S;++b)m(v[b]),d=u.lineHeight;q(g.after,m)}f=0,d=u.lineHeight,q(this.afterBody,m),e.y-=i}drawFooter(e,t,n){let r=this.footer,i=r.length,a,o;if(i){let s=nh(n.rtl,this.x,this.width);for(e.x=wb(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline=`middle`,a=nm(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<i;++o)t.fillText(r[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){let{xAlign:i,yAlign:a}=this,{x:o,y:s}=e,{width:c,height:l}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=em(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),a===`top`&&this.drawCaret(e,t,n,r),t.lineTo(o+c-d,s),t.quadraticCurveTo(o+c,s,o+c,s+d),a===`center`&&i===`right`&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-p),t.quadraticCurveTo(o+c,s+l,o+c-p,s+l),a===`bottom`&&this.drawCaret(e,t,n,r),t.lineTo(o+f,s+l),t.quadraticCurveTo(o,s+l,o,s+l-f),a===`center`&&i===`left`&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=fb[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=gb(this,e),o=Object.assign({},n,this._size),s=bb(t,e,o),c=Cb(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=tm(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),rh(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),ih(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!af(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!af(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=fb[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},jb=Object.freeze({__proto__:null,Colors:my,Decimation:by,Filler:Zy,Legend:ob,SubTitle:db,Title:lb,Tooltip:{id:`tooltip`,_element:Ab,positioners:fb,afterInit(e,t,n){n&&(e.tooltip=new Ab({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:Ob},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),Mb=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Nb(e,t,n,r){let i=e.indexOf(t);return i===-1?Mb(e,t,n,r):i===e.lastIndexOf(t)?i:n}var Pb=(e,t)=>e===null?null:Wf(Math.round(e),0,t);function Fb(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var Ib=class extends M_{static id=`category`;static defaults={ticks:{callback:Fb}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let t=this._addedLabels;if(t.length){let e=this.getLabels();for(let{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(V(e))return null;let n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:Nb(n,e,G(t,e),this._addedLabels),Pb(t,n.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),{min:n,max:r}=this.getMinMax(!0);this.options.bounds===`ticks`&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){let e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=e===0&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-+!n,1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return Fb.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!=`number`&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function Lb(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!V(a),_=!V(o),v=!V(c),y=(h-m)/(u+1),b=Af((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=Af(w*b/p/f)*f),V(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&Pf((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=kf(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(Rf(b),Rf(S));x=10**(V(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),S<a&&E++,kf(Math.round((S+E*b)*x)/x,a,Rb(a,y,e))&&E++):S<a&&E++);E<w;++E){let e=Math.round((S+E*b)*x)/x;if(_&&e>o)break;n.push({value:e})}return _&&d&&C!==o?n.length&&kf(n[n.length-1].value,o,Rb(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function Rb(e,t,{horizontal:n,minRotation:r}){let i=If(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var zb=class extends M_{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return V(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Of(r),t=Of(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=Lb({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Ff(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Sp(e,this.chart.options.locale,this.options.ticks.format)}},Bb=class extends zb{static id=`linear`;static defaults={ticks:{callback:Tp.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=W(e)?e:0,this.max=W(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=If(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},Vb=e=>Math.floor(Df(e)),Hb=(e,t)=>10**(Vb(e)+t);function Ub(e){return e/10**Vb(e)==1}function Wb(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function Gb(e,t){let n=Vb(t-e);for(;Wb(e,t,n)>10;)n++;for(;Wb(e,t,n)<10;)n--;return Math.min(n,Vb(e))}function Kb(e,{min:t,max:n}){t=tf(e.min,t);let r=[],i=Vb(t),a=Gb(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=tf(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f<n;)r.push({value:f,major:Ub(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=tf(e.max,f);return r.push({value:p,major:Ub(p),significand:d}),r}var qb=class extends M_{static id=`logarithmic`;static defaults={ticks:{callback:Tp.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=zb.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return W(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=W(e)?Math.max(0,e):null,this.max=W(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!W(this._userMin)&&(this.min=e===Hb(this.min,0)?Hb(this.min,-1):Hb(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(Hb(n,-1)),a(Hb(r,1)))),n<=0&&i(Hb(r,-1)),r<=0&&a(Hb(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=Kb({min:this._userMin,max:this._userMax},this);
vendor: 5,300 bytes, line 6
6return e.bounds===`ticks`&&Ff(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:Sp(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Df(e),this._valueRange=Df(this.max)-Df(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Df(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function Jb(e){let t=e.ticks;if(t.display&&e.display){let e=tm(t.backdropPadding);return G(t.font&&t.font.size,X.font.size)+e.height}return 0}function Yb(e,t,n){return n=H(n)?n:[n],{w:Np(e,t.string,n),h:n.length*t.lineHeight}}function Xb(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Zb(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?J/a:0;for(let c=0;c<a;c++){let a=o.setContext(e.getPointLabelContext(c));i[c]=a.padding;let l=e.getPointPosition(c,e.drawingArea+i[c],s),u=nm(a.font),d=Yb(e.ctx,u,e._pointLabels[c]);r[c]=d;let f=Hf(e.getIndexAngle(c)+s),p=Math.round(Lf(f));Qb(n,t,f,Xb(p,l.x,d.w,0,180),Xb(p,l.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=tx(e,r,i)}function Qb(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,c=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(c=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function $b(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Lf(Hf(c.angle+wf))),u=ix(c.y,s.h,l),d=nx(l),f=rx(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ex(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Rp({x:n,y:r},t)||Rp({x:n,y:a},t)||Rp({x:i,y:r},t)||Rp({x:i,y:a},t))}function tx(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:Jb(a)/2,additionalAngle:o?J/i:0},l;for(let a=0;a<i;a++){c.padding=n[a],c.size=t[a];let i=$b(e,a,c);r.push(i),s===`auto`&&(i.visible=ex(i,l),i.visible&&(l=i))}return r}function nx(e){return e===0||e===180?`center`:e<180?`left`:`right`}function rx(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function ix(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function ax(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!V(s)){let n=em(t.borderRadius),c=tm(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),qp(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function ox(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));ax(n,a,t);let o=nm(a.font),{x:s,y:c,textAlign:l}=t;Kp(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function sx(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Y);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a<r;a++)n=e.getPointPosition(a,t),i.lineTo(n.x,n.y)}}function cx(e,t,n,r,i){let a=e.ctx,o=t.circular,{color:s,lineWidth:c}=t;!o&&!r||!s||!c||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=c,a.setLineDash(i.dash||[]),a.lineDashOffset=i.dashOffset,a.beginPath(),sx(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function lx(e,t,n){return im(e,{label:n,index:t,type:`pointLabel`})}var ux=class extends zb{static id=`radialLinear`;static defaults={display:!0,animate:!0,position:`chartArea`,angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Tp.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":`borderColor`,"pointLabels.color":`color`,"ticks.color":`color`};static descriptors={angleLines:{_fallback:`grid`}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this._padding=tm(Jb(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!1);this.min=W(e)&&!isNaN(e)?e:0,this.max=W(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Jb(this.options))}generateTickLabels(e){zb.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{let n=K(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>
vendor: 5,620 bytes, line 6
6this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?Zb(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Y/(this._pointLabels.length||1),n=this.options.startAngle||0;return Hf(e*t+If(n))}getDistanceFromCenterForValue(e){if(V(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(V(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e<t.length){let n=t[e];return lx(this.getContext(),e,n)}}getPointPosition(e,t,n=0){let r=this.getIndexAngle(e)-wf+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){let{backgroundColor:e,grid:{circular:t}}=this.options;if(e){let n=this.ctx;n.save(),n.beginPath(),sx(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){let e=this.ctx,t=this.options,{angleLines:n,grid:r,border:i}=t,a=this._pointLabels.length,o,s,c;if(t.pointLabels.display&&ox(this,a),r.display&&this.ticks.forEach((e,t)=>{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);cx(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;!a||!i||(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=nm(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=tm(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Kp(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},dx={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fx=Object.keys(dx);function px(e,t){return e-t}function mx(e,t){if(V(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),W(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Nf(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function hx(e,t,n,r){let i=fx.length;for(let a=fx.indexOf(e);a<i-1;++a){let e=dx[fx[a]],i=e.steps?e.steps:2**53-1;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return fx[a]}return fx[i-1]}function gx(e,t,n,r,i){for(let a=fx.length-1;a>=fx.indexOf(n);a--){let n=fx[a];if(dx[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return fx[n?fx.indexOf(n):0]}function _x(e){for(let t=fx.indexOf(e)+1,n=fx.length;t<n;++t)if(dx[fx[t]].common)return fx[t]}function vx(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=qf(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function yx(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function bx(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:yx(e,r,i,n)}var xx=class extends M_{static id=`time`;static defaults={bounds:`data`,adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:`millisecond`,displayFormats:{}},ticks:{source:`auto`,callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit=`day`,this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){let n=e.time||={},r=this._adapter=new gg._date(e.adapters.date);r.init(t),uf(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:mx(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,t=this._adapter,n=e.time.unit||`day`,{min:r,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){!a&&!isNaN(e.min)&&(r=Math.min(r,e.min)),!o&&!isNaN(e.max)&&(i=Math.max(i,e.max))}(!a||!o)&&(s(this._getLabelBounds()),(e.bounds!==`ticks`||e.ticks.source!==`labels`)&&s(this.getMinMax(!1))),r=W(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=W(i)&&
vendor: 4,425 bytes, line 6
6!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=1/0,n=-1/0;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){let e=this.options,t=e.time,n=e.ticks,r=n.source===`labels`?this.getLabelTimestamps():this._generate();e.bounds===`ticks`&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let i=this.min,a=this.max,o=Xf(r,i,a);return this._unit=t.unit||(n.autoSkip?hx(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):gx(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit===`year`?void 0:_x(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),bx(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Wf(t,0,a),n=Wf(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||hx(i.minUnit,t,n,this._getLabelCapacity(t)),o=G(r.ticks.stepSize,1),s=a===`week`?i.isoWeekday:!1,c=Nf(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+e.add(d,o,a),f++)vx(l,d,p);return(d===n||r.bounds===`ticks`||f===1)&&vx(l,d,p),Object.keys(l).sort(px).map(e=>+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return K(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){let t=this.options.ticks,n=this.ctx.measureText(e).width,r=If(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}_getLabelCapacity(e){let t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,bx(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t<n;++t)e=e.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],t,n;if(e.length)return e;let r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(mx(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ep(e.sort(px))}};function Sx(e,t,n){let r=0,i=e.length-1,a,o,s,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Jf(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Jf(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var Cx=class extends xx{static id=`timeseries`;static defaults=xx.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Sx(t,this.min),this._tableRange=Sx(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;
6for(a=0,o=e.length;a<o;++a)c=e[a],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;a<o;++a)l=r[a+1],s=r[a-1],c=r[a],Math.round((l+s)/2)!==c&&i.push({time:c,pos:a/(o-1)});return i}_generate(){let e=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Sx(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Sx(this._table,n*this._tableRange+this._minPos,!0)}},wx=[mg,ny,jb,Object.freeze({__proto__:null,CategoryScale:Ib,LinearScale:Bb,LogarithmicScale:qb,RadialLinearScale:ux,TimeScale:xx,TimeSeriesScale:Cx})],Tx=typeof global==`object`&&global&&global.Object===Object&&global,Ex=typeof self==`object`&&self&&self.Object===Object&&self,Dx=Tx||Ex||Function(`return this`)(),Ox=Dx.Symbol,kx=Object.prototype,Ax=kx.hasOwnProperty,jx=kx.toString,Mx=Ox?Ox.toStringTag:void 0;function Nx(e){var t=Ax.call(e,Mx),n=e[Mx];try{e[Mx]=void 0;var r=!0}catch{}var i=jx.call(e);return r&&(t?e[Mx]=n:delete e[Mx]),i}var Px=Object.prototype.toString;function Fx(e){return Px.call(e)}var Ix=`[object Null]`,Lx=`[object Undefined]`,Rx=Ox?Ox.toStringTag:void 0;function zx(e){return e==null?e===void 0?Lx:Ix:Rx&&Rx in Object(e)?Nx(e):Fx(e)}function Bx(e){return typeof e==`object`&&!!e}var Vx=Array.isArray;function Hx(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Ux=`[object AsyncFunction]`,Wx=`[object Function]`,Gx=`[object GeneratorFunction]`,Kx=`[object Proxy]`;function qx(e){if(!Hx(e))return!1;var t=zx(e);return t==Wx||t==Gx||t==Ux||t==Kx}var Jx=Dx[`__core-js_shared__`],Yx=function(){var e=/[^.]+$/.exec(Jx&&Jx.keys&&Jx.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Xx(e){return!!Yx&&Yx in e}var Zx=Function.prototype.toString;function Qx(e){if(e!=null){try{return Zx.call(e)}catch{}try{return e+``}catch{}}return``}var $x=/[\\^$.*+?()[\]{}|]/g,eS=/^\[object .+?Constructor\]$/,tS=Function.prototype,nS=Object.prototype,rS=tS.toString,iS=nS.hasOwnProperty,aS=RegExp(`^`+rS.call(iS).replace($x,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function oS(e){return!Hx(e)||Xx(e)?!1:(qx(e)?aS:eS).test(Qx(e))}function sS(e,t){return e?.[t]}function cS(e,t){var n=sS(e,t);return oS(n)?n:void 0}var lS=cS(Dx,`WeakMap`),uS=Object.create,dS=function(){function e(){}return function(t){if(!Hx(t))return{};if(uS)return uS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function fS(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var pS=function(){try{var e=cS(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function mS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var hS=9007199254740991,gS=/^(?:0|[1-9]\d*)$/;function _S(e,t){var n=typeof e;return t??=hS,!!t&&(n==`number`||n!=`symbol`&&gS.test(e))&&e>-1&&e%1==0&&e<t}function vS(e,t,n){t==`__proto__`&&pS?pS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function yS(e,t){return e===t||e!==e&&t!==t}var bS=Object.prototype.hasOwnProperty;function xS(e,t,n){var r=e[t];(!(bS.call(e,t)&&yS(r,n))||n===void 0&&!(t in e))&&vS(e,t,n)}function SS(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?vS(n,s,c):xS(n,s,c)}return n}var CS=9007199254740991;function wS(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=CS}function TS(e){return e!=null&&wS(e.length)&&!qx(e)}var ES=Object.prototype;function DS(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ES)}function OS(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var kS=`[object Arguments]`;function AS(e){return Bx(e)&&zx(e)==kS}var jS=Object.prototype,MS=jS.hasOwnProperty,NS=jS.propertyIsEnumerable,PS=AS(function(){return arguments}())?AS:function(e){return Bx(e)&&MS.call(e,`callee`)&&!NS.call(e,`callee`)};function FS(){return!1}var IS=typeof exports==`object`&&exports&&!exports.nodeType&&exports,LS=IS&&typeof module==`object`&&module&&!module.nodeType&&module,RS=LS&&LS.exports===IS?Dx.Buffer:void 0,z
vendor: 4,797 bytes, line 6
6S=(RS?RS.isBuffer:void 0)||FS,BS=`[object Arguments]`,VS=`[object Array]`,HS=`[object Boolean]`,US=`[object Date]`,WS=`[object Error]`,GS=`[object Function]`,KS=`[object Map]`,qS=`[object Number]`,JS=`[object Object]`,YS=`[object RegExp]`,XS=`[object Set]`,ZS=`[object String]`,QS=`[object WeakMap]`,$S=`[object ArrayBuffer]`,eC=`[object DataView]`,tC=`[object Float32Array]`,nC=`[object Float64Array]`,rC=`[object Int8Array]`,iC=`[object Int16Array]`,aC=`[object Int32Array]`,oC=`[object Uint8Array]`,sC=`[object Uint8ClampedArray]`,cC=`[object Uint16Array]`,lC=`[object Uint32Array]`,Q={};Q[tC]=Q[nC]=Q[rC]=Q[iC]=Q[aC]=Q[oC]=Q[sC]=Q[cC]=Q[lC]=!0,Q[BS]=Q[VS]=Q[$S]=Q[HS]=Q[eC]=Q[US]=Q[WS]=Q[GS]=Q[KS]=Q[qS]=Q[JS]=Q[YS]=Q[XS]=Q[ZS]=Q[QS]=!1;function uC(e){return Bx(e)&&wS(e.length)&&!!Q[zx(e)]}function dC(e){return function(t){return e(t)}}var fC=typeof exports==`object`&&exports&&!exports.nodeType&&exports,pC=fC&&typeof module==`object`&&module&&!module.nodeType&&module,mC=pC&&pC.exports===fC&&Tx.process,hC=function(){try{return pC&&pC.require&&pC.require(`util`).types||mC&&mC.binding&&mC.binding(`util`)}catch{}}(),gC=hC&&hC.isTypedArray,_C=gC?dC(gC):uC,vC=Object.prototype.hasOwnProperty;function yC(e,t){var n=Vx(e),r=!n&&PS(e),i=!n&&!r&&zS(e),a=!n&&!r&&!i&&_C(e),o=n||r||i||a,s=o?OS(e.length,String):[],c=s.length;for(var l in e)(t||vC.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||_S(l,c)))&&s.push(l);return s}function bC(e,t){return function(n){return e(t(n))}}var xC=bC(Object.keys,Object),SC=Object.prototype.hasOwnProperty;function CC(e){if(!DS(e))return xC(e);var t=[];for(var n in Object(e))SC.call(e,n)&&n!=`constructor`&&t.push(n);return t}function wC(e){return TS(e)?yC(e):CC(e)}function TC(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var EC=Object.prototype.hasOwnProperty;function DC(e){if(!Hx(e))return TC(e);var t=DS(e),n=[];for(var r in e)r==`constructor`&&(t||!EC.call(e,r))||n.push(r);return n}function OC(e){return TS(e)?yC(e,!0):DC(e)}var kC=cS(Object,`create`);function AC(){this.__data__=kC?kC(null):{},this.size=0}function jC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var MC=`__lodash_hash_undefined__`,NC=Object.prototype.hasOwnProperty;function PC(e){var t=this.__data__;if(kC){var n=t[e];return n===MC?void 0:n}return NC.call(t,e)?t[e]:void 0}var FC=Object.prototype.hasOwnProperty;function IC(e){var t=this.__data__;return kC?t[e]!==void 0:FC.call(t,e)}var LC=`__lodash_hash_undefined__`;function RC(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=kC&&t===void 0?LC:t,this}function zC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zC.prototype.clear=AC,zC.prototype.delete=jC,zC.prototype.get=PC,zC.prototype.has=IC,zC.prototype.set=RC;function BC(){this.__data__=[],this.size=0}function VC(e,t){for(var n=e.length;n--;)if(yS(e[n][0],t))return n;return-1}var HC=Array.prototype.splice;function UC(e){var t=this.__data__,n=VC(t,e);return n<0?!1:(n==t.length-1?t.pop():HC.call(t,n,1),--this.size,!0)}function WC(e){var t=this.__data__,n=VC(t,e);return n<0?void 0:t[n][1]}function GC(e){return VC(this.__data__,e)>-1}function KC(e,t){var n=this.__data__,r=VC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qC.prototype.clear=BC,qC.prototype.delete=UC,qC.prototype.get=WC,qC.prototype.has=GC,qC.prototype.set=KC;var JC=cS(Dx,`Map`);function YC(){this.size=0,this.__data__={hash:new zC,map:new(JC||qC),string:new zC}}function XC(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ZC(e,t){var n=e.__data__;return XC(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function QC(e){var t=ZC(this,e).delete(e);return this.size-=+!!t,t}function $C(e){return ZC(this,e).get(e)}function ew(e){return ZC(this,e).has(e)}function tw(e,t){var n=ZC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nw(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nw.prototype.clear=YC,nw.prototype.delete=QC,nw.prototype.get=$C,nw.prototype.has=ew,nw.prototype.set=tw;function rw(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var iw=bC(Object.getPrototypeOf,Object);function aw(){this.__data__=new qC,this.size=0}function ow(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function sw(e){return this.__data__.get(e)}function cw(e){return this.__data__.has(e)}var lw=200;function uw(e,t){var n=this.__data__;if(n instanceof qC){var r=n.__data__;if(!JC||r.length<lw-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nw(r)}
vendor: 5,679 bytes, line 6
6return n.set(e,t),this.size=n.size,this}function dw(e){var t=this.__data__=new qC(e);this.size=t.size}dw.prototype.clear=aw,dw.prototype.delete=ow,dw.prototype.get=sw,dw.prototype.has=cw,dw.prototype.set=uw;function fw(e,t){return e&&SS(t,wC(t),e)}function pw(e,t){return e&&SS(t,OC(t),e)}var mw=typeof exports==`object`&&exports&&!exports.nodeType&&exports,hw=mw&&typeof module==`object`&&module&&!module.nodeType&&module,gw=hw&&hw.exports===mw?Dx.Buffer:void 0,_w=gw?gw.allocUnsafe:void 0;function vw(e,t){if(t)return e.slice();var n=e.length,r=_w?_w(n):new e.constructor(n);return e.copy(r),r}function yw(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function bw(){return[]}var xw=Object.prototype.propertyIsEnumerable,Sw=Object.getOwnPropertySymbols,Cw=Sw?function(e){return e==null?[]:(e=Object(e),yw(Sw(e),function(t){return xw.call(e,t)}))}:bw;function ww(e,t){return SS(e,Cw(e),t)}var Tw=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rw(t,Cw(e)),e=iw(e);return t}:bw;function Ew(e,t){return SS(e,Tw(e),t)}function Dw(e,t,n){var r=t(e);return Vx(e)?r:rw(r,n(e))}function Ow(e){return Dw(e,wC,Cw)}function kw(e){return Dw(e,OC,Tw)}var Aw=cS(Dx,`DataView`),jw=cS(Dx,`Promise`),Mw=cS(Dx,`Set`),Nw=`[object Map]`,Pw=`[object Object]`,Fw=`[object Promise]`,Iw=`[object Set]`,Lw=`[object WeakMap]`,Rw=`[object DataView]`,zw=Qx(Aw),Bw=Qx(JC),Vw=Qx(jw),Hw=Qx(Mw),Uw=Qx(lS),Ww=zx;(Aw&&Ww(new Aw(new ArrayBuffer(1)))!=Rw||JC&&Ww(new JC)!=Nw||jw&&Ww(jw.resolve())!=Fw||Mw&&Ww(new Mw)!=Iw||lS&&Ww(new lS)!=Lw)&&(Ww=function(e){var t=zx(e),n=t==Pw?e.constructor:void 0,r=n?Qx(n):``;if(r)switch(r){case zw:return Rw;case Bw:return Nw;case Vw:return Fw;case Hw:return Iw;case Uw:return Lw}return t});var Gw=Ww,Kw=Object.prototype.hasOwnProperty;function qw(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Kw.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Jw=Dx.Uint8Array;function Yw(e){var t=new e.constructor(e.byteLength);return new Jw(t).set(new Jw(e)),t}function Xw(e,t){var n=t?Yw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Zw=/\w*$/;function Qw(e){var t=new e.constructor(e.source,Zw.exec(e));return t.lastIndex=e.lastIndex,t}var $w=Ox?Ox.prototype:void 0,eT=$w?$w.valueOf:void 0;function tT(e){return eT?Object(eT.call(e)):{}}function nT(e,t){var n=t?Yw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rT=`[object Boolean]`,iT=`[object Date]`,aT=`[object Map]`,oT=`[object Number]`,sT=`[object RegExp]`,cT=`[object Set]`,lT=`[object String]`,uT=`[object Symbol]`,dT=`[object ArrayBuffer]`,fT=`[object DataView]`,pT=`[object Float32Array]`,mT=`[object Float64Array]`,hT=`[object Int8Array]`,gT=`[object Int16Array]`,_T=`[object Int32Array]`,vT=`[object Uint8Array]`,yT=`[object Uint8ClampedArray]`,bT=`[object Uint16Array]`,xT=`[object Uint32Array]`;function ST(e,t,n){var r=e.constructor;switch(t){case dT:return Yw(e);case rT:case iT:return new r(+e);case fT:return Xw(e,n);case pT:case mT:case hT:case gT:case _T:case vT:case yT:case bT:case xT:return nT(e,n);case aT:return new r;case oT:case lT:return new r(e);case sT:return Qw(e);case cT:return new r;case uT:return tT(e)}}function CT(e){return typeof e.constructor==`function`&&!DS(e)?dS(iw(e)):{}}var wT=`[object Map]`;function TT(e){return Bx(e)&&Gw(e)==wT}var ET=hC&&hC.isMap,DT=ET?dC(ET):TT,OT=`[object Set]`;function kT(e){return Bx(e)&&Gw(e)==OT}var AT=hC&&hC.isSet,jT=AT?dC(AT):kT,MT=1,NT=2,PT=4,FT=`[object Arguments]`,IT=`[object Array]`,LT=`[object Boolean]`,RT=`[object Date]`,zT=`[object Error]`,BT=`[object Function]`,VT=`[object GeneratorFunction]`,HT=`[object Map]`,UT=`[object Number]`,WT=`[object Object]`,GT=`[object RegExp]`,KT=`[object Set]`,qT=`[object String]`,JT=`[object Symbol]`,YT=`[object WeakMap]`,XT=`[object ArrayBuffer]`,ZT=`[object DataView]`,QT=`[object Float32Array]`,$T=`[object Float64Array]`,eE=`[object Int8Array]`,tE=`[object Int16Array]`,nE=`[object Int32Array]`,rE=`[object Uint8Array]`,iE=`[object Uint8ClampedArray]`,aE=`[object Uint16Array]`,oE=`[object Uint32Array]`,$={};$[FT]=$[IT]=$[XT]=$[ZT]=$[LT]=$[RT]=$[QT]=$[$T]=$[eE]=$[tE]=$[nE]=$[HT]=$[UT]=$[WT]=$[GT]=$[KT]=$[qT]=$[JT]=$[rE]=$[iE]=$[aE]=$[oE]=!0,$[zT]=$[BT]=$[YT]=!1;function sE(e,t,n,r,i,a){var o,s=t&MT,c=t&NT,l=t&PT;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Hx(e))return e;var u=Vx(e);if(u){if(o=qw(e),!s)return fS(e,o)}else{var d=Gw(e),f=d==BT||d==VT;if(zS(e))return vw(e,s);if(d==WT||d==FT||f&&!i){if(o=c||f?{}:CT(e),!s)return c?Ew(e,pw(o,e)):ww(e,fw(o,e))}else{if(!$[d])return i?e:{};o=ST(e,d,s)}}a||=new dw;var p=a.get(e);if(p)return p;a.set(e,o),jT(e)?e.forEach(function(r){o.add(sE(r,t,n,r,e,a))}):DT(e)&&e.forEach(function(r,i){o.set(i,sE(r,t,n,i,e,a))});var m=u?void 0:(l?c?kw:Ow:c?OC:wC)(e);return mS(m||e,function(r,i){m&&(i=r,r=e[i]),xS(o,i,sE(r,t,n,i,e,a))}),o}var cE=1,lE=4;function uE(e){return sE(e,cE|lE)}var dE=`__lodash_hash_undefined__`;function fE(e){return this.__data__.set(e,dE),this}function pE(e){return this.__data__.has(e)}function mE(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new nw;++t<n;)this.add(e[t])}mE.prototype.add=mE.prototype.push=fE,mE.prototype.has=pE;function hE(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function gE(e,t){return e.has(t)}var _E=1,vE=2;function yE(e,t,n,r,i,a){var o=n&_E,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vE?new mE:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}
6if(p){if(!hE(t,function(e,t){if(!gE(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function bE(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function xE(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var SE=1,CE=2,wE=`[object Boolean]`,TE=`[object Date]`,EE=`[object Error]`,DE=`[object Map]`,OE=`[object Number]`,kE=`[object RegExp]`,AE=`[object Set]`,jE=`[object String]`,ME=`[object Symbol]`,NE=`[object ArrayBuffer]`,PE=`[object DataView]`,FE=Ox?Ox.prototype:void 0,IE=FE?FE.valueOf:void 0;function LE(e,t,n,r,i,a,o){switch(n){case PE:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case NE:return!(e.byteLength!=t.byteLength||!a(new Jw(e),new Jw(t)));case wE:case TE:case OE:return yS(+e,+t);case EE:return e.name==t.name&&e.message==t.message;case kE:case jE:return e==t+``;case DE:var s=bE;case AE:var c=r&SE;if(s||=xE,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=CE,o.set(e,t);var u=yE(s(e),s(t),r,i,a,o);return o.delete(e),u;case ME:if(IE)return IE.call(e)==IE.call(t)}return!1}var RE=1,zE=Object.prototype.hasOwnProperty;function BE(e,t,n,r,i,a){var o=n&RE,s=Ow(e),c=s.length;if(c!=Ow(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:zE.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var VE=1,HE=`[object Arguments]`,UE=`[object Array]`,WE=`[object Object]`,GE=Object.prototype.hasOwnProperty;function KE(e,t,n,r,i,a){var o=Vx(e),s=Vx(t),c=o?UE:Gw(e),l=s?UE:Gw(t);c=c==HE?WE:c,l=l==HE?WE:l;var u=c==WE,d=l==WE,f=c==l;if(f&&zS(e)){if(!zS(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new dw,o||_C(e)?yE(e,t,n,r,i,a):LE(e,t,c,n,r,i,a);if(!(n&VE)){var p=u&&GE.call(e,`__wrapped__`),m=d&&GE.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new dw,i(h,g,n,r,a)}}return f?(a||=new dw,BE(e,t,n,r,i,a)):!1}function qE(e,t,n,r,i){return e===t?!0:e==null||t==null||!Bx(e)&&!Bx(t)?e!==e&&t!==t:KE(e,t,n,r,qE,i)}var JE=`[object Map]`,YE=`[object Set]`,XE=Object.prototype.hasOwnProperty;function ZE(e){if(e==null)return!0;if(TS(e)&&(Vx(e)||typeof e==`string`||typeof e.splice==`function`||zS(e)||_C(e)||PS(e)))return!e.length;var t=Gw(e);if(t==JE||t==YE)return!e.size;if(DS(e))return!CC(e).length;for(var n in e)if(XE.call(e,n))return!1;return!0}function QE(e,t){return qE(e,t)}function $E(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(``)}var eD=(e,t)=>{let n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:``},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=$E(e);return si({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":e=>!0,"chart:destroy":()=>!0,"chart:render":e=>!0},setup(e,{emit:n,expose:i}){let a=rn(null),o=`${e.chartId}`,s=an(null);Gr(()=>e.chartData,c,{deep:!0}),Gr(()=>e.options,e=>{s.value&&e&&(s.value.options=uE(e),f())},{deep:!0});function c(e){if(s.value){let t=s.value;QE(e.labels,s.value.data.labels)||(t.data.labels=e.labels,u()),QE(e.datasets,s.value.data.datasets)||e.datasets.forEach((e,n)=>{if(ZE(e))t.data.datasets=[];else{let r=uE(t.data),i=Object.keys(r.datasets?.[n]??{}),a=Object.keys(e);i.filter(e=>e!==`_meta`&&a.indexOf(e)===-1).forEach(e=>{t.data.datasets[n]&&delete t.data.datasets[n][e]});for(let r in e){let i=uE(e[r]);t.data.datasets[n]||(t.data.datasets[n]={}),e.hasOwnProperty(r)&&i!=null&&t&&(t.data.datasets[n][r]=i)}}}),f()}else s.value&&p(),l()}function l(){a.value?(s.value=new bv(a.value,{data:uE(e.chartData),type:t,options:uE(e.options||{}),plugins:e.plugins}),d()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function u(){n(`labels:update`),e.onLabelsUpdate&&e.onLabelsUpdate()}function d(){s.value&&(n(`chart:render`,s.value),e.onChartRender&&e.onChartRender(s.value))}
vendor: 11,379 bytes, lines 6-7
6function f(){s.value&&(s.value.update(),n(`chart:update`,s.value),e.onChartUpdate&&e.onChartUpdate(s.value))}function p(){s.value&&s.value.destroy(),n(`chart:destroy`),e.onChartDestroy&&e.onChartDestroy()}return Is(l),zs(()=>{s.value&&s.value.destroy()}),i({canvasRef:a,renderChart:l,chartInstance:s,canvasId:o,update:f}),()=>jo(`div`,{style:{maxWidth:`100%`,...e.styles,position:`relative`},class:e.cssClasses},[jo(`canvas`,{style:{maxWidth:`100%`,maxHeight:`100%`},id:o,width:e.width,height:e.height,ref:a})])}})},tD=eD(`bar-chart`,`bar`),nD=eD(`doughnut-chart`,`doughnut`),rD=eD(`line-chart`,`line`);eD(`pie-chart`,`pie`),eD(`polar-chart`,`polarArea`),eD(`radar-chart`,`radar`),eD(`bubble-chart`,`bubble`),eD(`scatter-chart`,`scatter`);var iD=function(){if(typeof window<`u`){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),aD={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n==`string`?t.unshift.apply(t,n.split(`
7`)):Array.isArray(n)?e.push.apply(e,n):V(e)||t.unshift(``+n);return t},textSize:function(e,t,n){var r=[].concat(t),i=r.length,a=e.font,o=0,s;for(e.font=n.string,s=0;s<i;++s)o=Math.max(e.measureText(r[s]).width,o);return e.font=a,{height:i*n.lineHeight,width:o}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],i,a,o,s;for(i=0,o=t.length;i<o;++i)s=t[i],a=n.indexOf(s),a===-1?r.push([s,1]):n.splice(a,1);for(i=0,o=n.length;i<o;++i)r.push([n[i],-1]);return r},rasterize:function(e){return Math.round(e*iD)/iD}};function oD(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var i=e.x-n,a=e.y-r,o=Math.sqrt(i*i+a*a);return{x:o?i/o:0,y:o?a/o:-1}}function sD(e,t,n,r,i){switch(i){case`center`:n=r=0;break;case`bottom`:n=0,r=1;break;case`right`:n=1,r=0;break;case`left`:n=-1,r=0;break;case`top`:n=0,r=-1;break;case`start`:n=-n,r=-r;break;case`end`:break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i);break}return{x:e,y:t,vx:n,vy:r}}var cD=0,lD=1,uD=2,dD=4,fD=8;function pD(e,t,n){var r=cD;return e<n.left?r|=lD:e>n.right&&(r|=uD),t<n.top?r|=fD:t>n.bottom&&(r|=dD),r}function mD(e,t){for(var n=e.x0,r=e.y0,i=e.x1,a=e.y1,o=pD(n,r,t),s=pD(i,a,t),c,l,u;!(!(o|s)||o&s);)c=o||s,c&fD?(l=n+(i-n)*(t.top-r)/(a-r),u=t.top):c&dD?(l=n+(i-n)*(t.bottom-r)/(a-r),u=t.bottom):c&uD?(u=r+(a-r)*(t.right-n)/(i-n),l=t.right):c&lD&&(u=r+(a-r)*(t.left-n)/(i-n),l=t.left),c===o?(n=l,r=u,o=pD(n,r,t)):(i=l,a=u,s=pD(i,a,t));return{x0:n,x1:i,y0:r,y1:a}}function hD(e,t){var n=t.anchor,r=e,i,a;return t.clamp&&(r=mD(r,t.area)),n===`start`?(i=r.x0,a=r.y0):n===`end`?(i=r.x1,a=r.y1):(i=(r.x0+r.x1)/2,a=(r.y0+r.y1)/2),sD(i,a,e.vx,e.vy,t.align)}var gD={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),a=e.innerRadius,o=e.outerRadius;return hD({x0:e.x+r*a,y0:e.y+i*a,x1:e.x+r*o,y1:e.y+i*o,vx:r,vy:i},t)},point:function(e,t){var n=oD(e,t.origin),r=n.x*e.options.radius,i=n.y*e.options.radius;return hD({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=oD(e,t.origin),r=e.x,i=e.y,a=0,o=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),hD({x0:r,y0:i+o,x1:r+a,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=oD(e,t.origin);return hD({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},_D=aD.rasterize;function vD(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,a=-i/2,o=-r/2;return{frame:{x:a-n.left-t,y:o-n.top-t,w:i+n.width+t*2,h:r+n.height+t*2},text:{x:a,y:o,w:i,h:r}}}function yD(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function bD(e){return e instanceof Av?gD.arc:e instanceof Gv?gD.point:e instanceof ty?gD.bar:gD.fallback}function xD(e,t,n,r,i,a){var o=Math.PI/2;if(a){var s=Math.min(a,i/2,r/2),c=t+s,l=n+s,u=t+r-s,d=n+i-s;e.moveTo(t,l),c<u&&l<d?(e.arc(c,l,s,-Math.PI,-o),e.arc(u,l,s,-o,0),e.arc(u,d,s,0,o),e.arc(c,d,s,o,Math.PI)):c<u?(e.moveTo(c,n),e.arc(u,l,s,-o,o),e.arc(c,l,s,o,Math.PI+o)):l<d?(e.arc(c,l,s,-Math.PI,0),e.arc(c,d,s,0,Math.PI)):e.arc(c,l,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)}function SD(e,t,n){var r=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!r&&(!i||!a)||(e.beginPath(),xD(e,_D(t.x)+a/2,_D(t.y)+a/2,_D(t.w)-a,_D(t.h)-a,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&a&&(e.strokeStyle=i,e.lineWidth=a,e.lineJoin=`miter`,e.stroke()))}function CD(e,t,n){var r=n.lineHeight,i=e.w,a=e.x,o=e.y+r/2;return t===`center`?a+=i/2:(t===`end`||t===`right`)&&(a+=i),{h:r,w:i,x:a,y:o}}function wD(e,t,n){var r=e.shadowBlur,i=n.stroked,a=_D(n.x),o=_D(n.y),s=_D(n.w);i&&e.strokeText(t,a,o,s),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,a,o,s),r&&i&&(e.shadowBlur=r))}function TD(e,t,n,r){var i=r.textAlign,a=r.color,o=!!a,s=r.font,c=t.length,l=r.textStrokeColor,u=r.textStrokeWidth,d=l&&u,f;if(!(!c||!o&&!d))for(n=CD(n,i,s),e.font=s.string,e.textAlign=i,e.textBaseline=`middle`,e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,o&&(e.fillStyle=a),d&&(e.lineJoin=`round`,e.lineWidth=u,e.strokeStyle=l),f=0,c=t.length;f<c;++f)wD(e,t[f],{stroked:d,filled:o,w:n.w,x:n.x,y:n.y+n.h*f})}var ED=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};lf(ED.prototype,{_modelize:function(e,t,n,r){var i=this,a=i._index,o=nm(Z([n.font,{}],r,a)),s=Z([n.color,X.color],r,a);return{align:Z([n.align,`center`],r,a),anchor:Z([n.anchor,`center`],r,a),area:r.chart.chartArea,backgroundColor:Z([n.backgroundColor,null],r,a),borderColor:Z([n.borderColor,null],r,a),borderRadius:Z([n.borderRadius,0],r,a),borderWidth:Z([n.borderWidth,0],r,a),clamp:Z([n.clamp,!1],r,a),clip:Z([n.clip,!1],r,a),color:s,display:e,font:o,lines:t,offset:Z([n.offset,4],r,a),opacity:Z([n.opacity,1],r,a),origin:yD(i._el,r),padding:tm(Z([n.padding,4],r,a)),positioner:bD(i._el),rotation:Z([n.rotation,0],r,a)*(Math.PI/180),size:aD.textSize(i._ctx,t,o),textAlign:Z([n.textAlign,`start`],r,a),textShadowBlur:Z([n.textShadowBlur,0],r,a),textShadowColor:Z([n.textShadowColor,s],r,a),textStrokeColor:Z([n.textStrokeColor,s],r,a),textStrokeWidth:Z([n.textStrokeWidth,0],r,a)}},update:function(e){var t=this,n=null,r=null,i=t._index,a=t._config,o,s,c,l=Z([a.display,!0],e,i);l&&(o=e.dataset.data[i],s=G(K(a.formatter,[o,e]),o),c=V(s)?[]:aD.toTextLines(s),c.length&&(n=t._modelize(l,c,a,e),r=vD(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,i=n._model,a=n._rects,o;this.visible()&&(r.save(),i.clip&&(o=i.area,r.beginPath(),r.rect(o.left,o.top,o.right-o.left,o.bottom-o.top),r.clip()),r.globalAlpha=aD.bound(0,i.opacity,1),r.translate(_D(t.x),_D(t.y)),r.rotate(i.rotation),SD(r,a.frame,i),TD(r,i.lines,a.text,i),r.restore())}});var DD=-(2**53-1)||-9007199254740991,OD=2**53-1||9007199254740991;function kD(e,t,n){var r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}function AD(e,t){var n=OD,r=DD,i=t.origin,a,o,s,c,l;for(a=0;a<e.length;++a)o=e[a],s=o.x-i.x,c=o.y-i.y,l=t.vx*s+t.vy*c,n=Math.min(n,l),r=Math.max(r,l);return{min:n,max:r}}function jD(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var MD=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};lf(MD.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=kD(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[jD(t[0],t[1]),jD(t[0],t[3])],i,a,o;for(this._rotation!==e._rotation&&r.push(jD(n[0],n[1]),jD(n[0],n[3])),i=0;i<r.length;++i)if(a=AD(t,r[i]),o=AD(n,r[i]),a.max<o.min||o.max<a.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[kD({x:t.x,y:t.y},r,n),kD({x:t.x+t.w,y:t.y},r,n),kD({x:t.x+t.w,y:t.y+t.h},r,n),kD({x:t.x,y:t.y+t.h},r,n)]}});function ND(e,t,n){var r=t.positioner(e,t),i=r.vx,a=r.vy;if(!i&&!a)return{x:r.x,y:r.y};var o=n.w,s=n.h,c=t.rotation,l=Math.abs(o/2*Math.cos(c))+Math.abs(s/2*Math.sin(c)),u=Math.abs(o/2*Math.sin(c))+Math.abs(s/2*Math.cos(c)),d=1/Math.max(Math.abs(i),Math.abs(a));return l*=i*d,u*=a*d,l+=t.offset*i,u+=t.offset*a,{x:r.x+l,y:r.y+u}}function PD(e,t){var n,r,i,a;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)a=e[r].$layout,a._visible&&i._box.intersects(a._box)&&t(i,a);return e}function FD(e){var t,n,r,i,a,o,s;for(t=0,n=e.length;t<n;++t)r=e[t],i=r.$layout,i._visible&&(s=new Proxy(r._el,{get:(e,t)=>e.getProps([t],!0)[t]}),a=r.geometry(),o=ND(s,r.model(),a),i._box.update(o,a,r.rotation()));return PD(e,function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)})}var ID={prepare:function(e){var t=[],n,r,i,a,o;for(n=0,i=e.length;n<i;++n)for(r=0,a=e[n].length;r<a;++r)o=e[n][r],t.push(o),o.$layout={_box:new MD,_hidable:!1,_visible:!0,_set:n,_idx:o._index};return t.sort(function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?r._set-n._set:r._idx-n._idx}),this.update(t),t},update:function(e){var t=!1,n,r,i,a,o;for(n=0,r=e.length;n<r;++n)i=e[n],a=i.model(),o=i.$layout,o._hidable=a&&a.display===`auto`,o._visible=i.visible(),t|=o._hidable;t&&FD(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,i,a,o,s;for(n=0,r=t.length;n<r;++n)i=t[n],a=i.$layout,a._visible&&(o=i.geometry(),s=ND(i._el,i.model(),o),a._box.update(s,o,i.rotation()),i.draw(e,s))}},LD={align:`center`,anchor:`center`,backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(V(e))return null;var t=e,n,r,i;if(U(e))if(!V(e.label))t=e.label;else if(!V(e.r))t=e.r;else for(t=``,n=Object.keys(e),i=0,r=n.length;i<r;++i)t+=(i===0?``:`, `)+n[i]+`: `+e[n[i]];return``+t},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},RD=`$datalabels`,zD=`$default`;function BD(e,t){var n=e.datalabels,r={},i=[],a,o;return n===!1?null:(n===!0&&(n={}),t=lf({},[t,n]),a=t.labels||{},o=Object.keys(a),delete t.labels,o.length?o.forEach(function(e){a[e]&&i.push(lf({},[t,a[e],{_key:e}]))}):i.push(t),r=i.reduce(function(e,t){return q(t.listeners||{},function(n,r){e[r]=e[r]||{},e[r][t._key||zD]=n}),delete t.listeners,e},{}),{labels:i,listeners:r})}function VD(e,t,n,r){if(t){var i=n.$context,a=n.$groups,o;t[a._set]&&(o=t[a._set][a._key],o&&K(o,[i,r])===!0&&(e[RD]._dirty=!0,n.update(i)))}}function HD(e,t,n,r,i){var a,o;!n&&!r||(n?r?n!==r&&(o=a=!0):o=!0:a=!0,o&&VD(e,t.leave,n,i),a&&VD(e,t.enter,r,i
vendor: 2,601 bytes, line 7
7))}function UD(e,t){var n=e[RD],r=n._listeners,i,a;if(!(!r.enter&&!r.leave)){if(t.type===`mousemove`)a=ID.lookup(n._labels,t);else if(t.type!==`mouseout`)return;i=n._hovered,n._hovered=a,HD(e,r,i,a,t)}}function WD(e,t){var n=e[RD],r=n._listeners.click,i=r&&ID.lookup(n._labels,t);i&&VD(e,r,i,t)}var GD={id:`datalabels`,defaults:LD,beforeInit:function(e){e[RD]={_actives:[]}},beforeUpdate:function(e){var t=e[RD];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,i=e[RD],a=i._datasets[r]=[],o=e.isDatasetVisible(r),s=e.data.datasets[r],c=BD(s,n),l=t.meta.data||[],u=e.ctx,d,f,p,m,h,g,_,v;for(u.save(),d=0,p=l.length;d<p;++d)if(_=l[d],_[RD]=[],o&&_&&e.getDataVisibility(d)&&!_.skip)for(f=0,m=c.labels.length;f<m;++f)h=c.labels[f],g=h._key,v=new ED(h,u,_,d),v.$groups={_set:r,_key:g||zD},v.$context={active:!1,chart:e,dataIndex:d,dataset:s,datasetIndex:r},v.update(v.$context),_[RD].push(v),a.push(v);u.restore(),lf(i._listeners,c.listeners,{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],i._listened=!0}})},afterUpdate:function(e){e[RD]._labels=ID.prepare(e[RD]._datasets)},afterDatasetsDraw:function(e){ID.draw(e,e[RD]._labels)},beforeEvent:function(e,t){if(e[RD]._listened){var n=t.event;switch(n.type){case`mousemove`:case`mouseout`:UD(e,n);break;case`click`:WD(e,n);break}}},afterEvent:function(e){var t=e[RD],n=t._actives,r=t._actives=e.getActiveElements(),i=aD.arrayDiff(n,r),a,o,s,c,l,u,d;for(a=0,o=i.length;a<o;++a)if(l=i[a],l[1])for(d=l[0].element[RD]||[],s=0,c=d.length;s<c;++s)u=d[s],u.$context.active=l[1]===1,u.update(u.$context);(t._dirty||i.length)&&(ID.update(t._labels),e.render()),delete t._dirty}};export{Fr as $,n as $t,mo as A,T as At,jo as B,Ge as Bt,Yu as C,an as Ct,Hc as D,ln as Dt,uo as E,fn as Et,B as F,o as Ft,Zi as G,N as Gt,Yc as H,E as Ht,vi as I,lt as It,Fs as J,r as Jt,vo as K,ae as Kt,si as L,A as Lt,Fi as M,F as Mt,po as N,ve as Nt,so as O,cn as Ot,fo as P,O as Pt,Qa as Q,c as Qt,Mc as R,pe as Rt,Zu as S,Yt as St,cs as T,pn as Tt,Br as U,fe as Ut,Vr as V,P as Vt,io as W,We as Wt,Is as X,d as Xt,zs as Y,u as Yt,Bs as Z,s as Zt,Uu as _,tn as _t,Av as a,Ai as at,Hu as b,Jt as bt,wx as c,Gr as ct,zu as d,Lr as dt,ot as en,zr as et,rd as f,dn as ft,dl as g,nn as gt,Xc as h,Zt as ht,rD as i,ki as it,no as j,w as jt,ro as k,S as kt,Nf as l,Hr as lt,sd as m,gr as mt,nD as n,Pi as nt,bv as o,ha as ot,id as p,dt as pt,wr as q,Ke as qt,tD as r,Ii as rt,fg as s,Ki as st,GD as t,ye as tn,Pr as tt,uu as u,Ir as ut,Wu as v,ft as vt,xc as w,I as wt,gu as x,rn as xt,Gu as y,Kt as yt,lo as z,Ue as zt};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.