11 lines
50 KiB
JavaScript
Vendored
11 lines
50 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6894],{57838:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(97685),i=n(67294);function o(){var t=i.useReducer(function(t){return t+1},0);return(0,r.Z)(t,2)[1]}},15746:function(t,e,n){"use strict";var r=n(21584);e.Z=r.Z},97183:function(t,e,n){"use strict";var r=n(2897),i=n(7293),o=r.ZP;o.Header=r.h4,o.Footer=r.$_,o.Content=r.VY,o.Sider=i.Z,e.Z=o},71230:function(t,e,n){"use strict";var r=n(92820);e.Z=r.Z},26303:function(t,e,n){"use strict";n.d(e,{Z:function(){return M}});var r=n(4942),i=n(87462),o=n(71002),a=n(94184),c=n.n(a),l=n(67294),u=n(53124),s=n(98423),f=function(t){var e,n,o=t.prefixCls,a=t.className,u=t.style,s=t.size,f=t.shape,h=c()((e={},(0,r.Z)(e,"".concat(o,"-lg"),"large"===s),(0,r.Z)(e,"".concat(o,"-sm"),"small"===s),e)),d=c()((n={},(0,r.Z)(n,"".concat(o,"-circle"),"circle"===f),(0,r.Z)(n,"".concat(o,"-square"),"square"===f),(0,r.Z)(n,"".concat(o,"-round"),"round"===f),n)),g=l.useMemo(function(){return"number"==typeof s?{width:s,height:s,lineHeight:"".concat(s,"px")}:{}},[s]);return l.createElement("span",{className:c()(o,h,d,a),style:(0,i.Z)((0,i.Z)({},g),u)})},h=n(1413),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=n(42135),p=function(t,e){return l.createElement(g.Z,(0,h.Z)((0,h.Z)({},t),{},{ref:e,icon:d}))};p.displayName="DotChartOutlined";var b=l.forwardRef(p),m=n(74902),y=function(t){var e=function(e){var n=t.width,r=t.rows;return Array.isArray(n)?n[e]:(void 0===r?2:r)-1===e?n:void 0},n=t.prefixCls,r=t.className,i=t.style,o=t.rows,a=(0,m.Z)(Array(o)).map(function(t,n){return l.createElement("li",{key:n,style:{width:e(n)}})});return l.createElement("ul",{className:c()(n,r),style:i},a)},x=function(t){var e=t.prefixCls,n=t.className,r=t.width,o=t.style;return l.createElement("h3",{className:c()(e,n),style:(0,i.Z)({width:r},o)})};function v(t){return t&&"object"===(0,o.Z)(t)?t:{}}var w=function(t){var e=t.prefixCls,n=t.loading,o=t.className,a=t.style,s=t.children,h=t.avatar,d=void 0!==h&&h,g=t.title,p=void 0===g||g,b=t.paragraph,m=void 0===b||b,w=t.active,M=t.round,k=l.useContext(u.E_),O=k.getPrefixCls,_=k.direction,C=O("skeleton",e);if(n||!("loading"in t)){var T=!!d,E=!!p,P=!!m;if(T){var S=(0,i.Z)((0,i.Z)({prefixCls:"".concat(C,"-avatar")},E&&!P?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),v(d));Z=l.createElement("div",{className:"".concat(C,"-header")},l.createElement(f,(0,i.Z)({},S)))}if(E||P){if(E){var j,Z,N,R,I,A=(0,i.Z)((0,i.Z)({prefixCls:"".concat(C,"-title")},!T&&P?{width:"38%"}:T&&P?{width:"50%"}:{}),v(p));R=l.createElement(x,(0,i.Z)({},A))}if(P){var W,F=(0,i.Z)((0,i.Z)({prefixCls:"".concat(C,"-paragraph")},(W={},T&&E||(W.width="61%"),!T&&E?W.rows=3:W.rows=2,W)),v(m));I=l.createElement(y,(0,i.Z)({},F))}N=l.createElement("div",{className:"".concat(C,"-content")},R,I)}var Y=c()(C,(j={},(0,r.Z)(j,"".concat(C,"-with-avatar"),T),(0,r.Z)(j,"".concat(C,"-active"),w),(0,r.Z)(j,"".concat(C,"-rtl"),"rtl"===_),(0,r.Z)(j,"".concat(C,"-round"),M),j),o);return l.createElement("div",{className:Y,style:a},Z,N)}return void 0!==s?s:null};w.Button=function(t){var e,n=t.prefixCls,o=t.className,a=t.active,h=t.block,d=t.size,g=(0,l.useContext(u.E_).getPrefixCls)("skeleton",n),p=(0,s.Z)(t,["prefixCls"]),b=c()(g,"".concat(g,"-element"),(e={},(0,r.Z)(e,"".concat(g,"-active"),a),(0,r.Z)(e,"".concat(g,"-block"),void 0!==h&&h),e),o);return l.createElement("div",{className:b},l.createElement(f,(0,i.Z)({prefixCls:"".concat(g,"-button"),size:void 0===d?"default":d},p)))},w.Avatar=function(t){var e=t.prefixCls,n=t.className,o=t.active,a=t.shape,h=t.size,d=(0,l.useContext(u.E_).getPrefixCls)("skeleton",e),g=(0,s.Z)(t,["prefixCls","className"]),p=c()(d,"".concat(d,"-element"),(0,r.Z)({},"".concat(d,"-active"),o),n);return l.createElement("div",{className:p},l.createElement(f,(0,i.Z)({prefixCls:"".concat(d,"-avatar"),shape:void 0===a?"circle":a,size:void 0===h?"default":h},g)))},w.Input=function(t){var e,n=t.prefixCls,o=t.className,a=t.active,h=t.block,d=t.size,g=(0,l.useContext(u.E_).getPrefixCls)("skeleton",n),p=(0,s.Z)(t,["prefixCls"]),b=c()(g,"".concat(g,"-element"),(e={},(0,r.Z)(e,"".concat(g,"-active"),a),(0,r.Z)(e,"".concat(g,"-block"),h),e),o);return l.createElement("div",{className:b},l.createElement(f,(0,i.Z)({prefixCls:"".concat(g,"-input"),size:void 0===d?"default":d},p)))},w.Image=function(t){var e=t.prefixCls,n=t.className,i=t.style,o=t.active,a=(0,l.useContext(u.E_).getPrefixCls)("skeleton",e),s=c()(a,"".concat(a,"-element"),(0,r.Z)({},"".concat(a,"-active"),o),n);return l.createElement("div",{className:s},l.createElement("div",{className:c()("".concat(a,"-image"),n),style:i},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(a,"-image-svg")},l.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(a,"-image-path")}))))},w.Node=function(t){var e=t.prefixCls,n=t.className,i=t.style,o=t.active,a=t.children,s=(0,l.useContext(u.E_).getPrefixCls)("skeleton",e),f=c()(s,"".concat(s,"-element"),(0,r.Z)({},"".concat(s,"-active"),o),n),h=null!=a?a:l.createElement(b,null);return l.createElement("div",{className:f},l.createElement("div",{className:c()("".concat(s,"-image"),n),style:i},h))};var M=w},62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),i=n(89607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[c]=n:delete t[c]),i}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a=Math.max,c=Math.min;t.exports=function(t,e,n){var l,u,s,f,h,d,g=0,p=!1,b=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=l,r=u;return l=u=void 0,g=e,f=t.apply(r,n)}function x(t){var n=t-d,r=t-g;return void 0===d||n>=e||n<0||b&&r>=s}function v(){var t,n,r,o=i();if(x(o))return w(o);h=setTimeout(v,(t=o-d,n=o-g,r=e-t,b?c(r,s-n):r))}function w(t){return(h=void 0,m&&l)?y(t):(l=u=void 0,f)}function M(){var t,n=i(),r=x(n);if(l=arguments,u=this,d=n,r){if(void 0===h)return g=t=d,h=setTimeout(v,e),p?y(t):f;if(b)return clearTimeout(h),h=setTimeout(v,e),y(d)}return void 0===h&&(h=setTimeout(v,e)),f}return e=o(e)||0,r(n)&&(p=!!n.leading,s=(b="maxWait"in n)?a(o(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),M.cancel=function(){void 0!==h&&clearTimeout(h),g=0,l=d=u=h=void 0},M.flush=function(){return void 0===h?f:w(i())},M}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=l.test(t);return n||u.test(t)?s(t.slice(2),n?2:8):c.test(t)?a:+t}},9008:function(t,e,n){t.exports=n(42636)},11163:function(t,e,n){t.exports=n(96885)},9676:function(t,e,n){"use strict";let r,i;/*!
|
|
* @kurkle/color v0.3.2
|
|
* https://github.com/kurkle/color#readme
|
|
* (c) 2023 Jukka Kurkela
|
|
* Released under the MIT License
|
|
*/function o(t){return t+.5|0}n.d(e,{$:function(){return ef},A:function(){return tI},B:function(){return tR},C:function(){return eu},D:function(){return t_},E:function(){return eM},F:function(){return H},G:function(){return eJ},H:function(){return tf},I:function(){return eD},J:function(){return e1},K:function(){return e0},L:function(){return tL},M:function(){return eq},N:function(){return ty},O:function(){return B},P:function(){return ta},Q:function(){return D},R:function(){return e_},S:function(){return tS},T:function(){return tc},U:function(){return tk},V:function(){return er},W:function(){return tj},X:function(){return eo},Y:function(){return es},Z:function(){return eg},_:function(){return tB},a:function(){return eO},a0:function(){return ek},a1:function(){return tD},a2:function(){return tH},a3:function(){return t6},a4:function(){return K},a5:function(){return te},a6:function(){return t9},a7:function(){return tr},a8:function(){return function t(e,n,r,i){let o={_cacheable:!1,_proxy:e,_context:n,_subProxy:r,_stack:new Set,_descriptors:eE(e,i),setContext:n=>t(e,n,r,i),override:o=>t(e.override(o),n,r,i)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,n,r)=>ej(e,n,()=>(function(e,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:c}=e,l=i[n];return tr(l)&&c.isScriptable(n)&&(l=function(t,e,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:c}=n;if(c.has(t))throw Error("Recursion detected: "+Array.from(c).join("->")+"->"+t);return c.add(t),e=e(o,a||r),c.delete(t),eS(t,e)&&(e=eN(i._scopes,i,t,e)),e}(n,l,e,r)),W(l)&&l.length&&(l=function(e,n,r,i){let{_proxy:o,_context:a,_subProxy:c,_descriptors:l}=r;if(tn(a.index)&&i(e))n=n[a.index%n.length];else if(F(n[0])){let r=n,i=o._scopes.filter(t=>t!==r);for(let u of(n=[],r)){let r=eN(i,o,e,u);n.push(t(r,a,c&&c[e],l))}}return n}(n,l,e,c.isIndexable)),eS(n,l)&&(l=t(l,o,a&&a[n],c)),l})(e,n,r)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}},a9:function(){return eT},aA:function(){return e8},aB:function(){return t$},aC:function(){return e3},aD:function(){return el},aE:function(){return tC},aF:function(){return R},aG:function(){return tw},aH:function(){return tm},aI:function(){return tv},aJ:function(){return tb},aK:function(){return tO},aL:function(){return t3},aM:function(){return tg},aN:function(){return ei},aO:function(){return tA},aP:function(){return tN},aa:function(){return eE},ab:function(){return U},ac:function(){return I},ad:function(){return tq},ae:function(){return eG},af:function(){return ea},ag:function(){return ti},ah:function(){return $},ai:function(){return to},aj:function(){return tZ},ak:function(){return ex},al:function(){return eL},am:function(){return nn},an:function(){return ne},ao:function(){return e5},ap:function(){return e4},aq:function(){return e2},ar:function(){return eh},as:function(){return ed},at:function(){return ec},au:function(){return ep},av:function(){return ev},aw:function(){return ew},ax:function(){return nt},ay:function(){return tE},az:function(){return e7},b:function(){return W},c:function(){return t0},d:function(){return en},e:function(){return tJ},f:function(){return tt},g:function(){return Y},h:function(){return tn},i:function(){return F},j:function(){return eC},k:function(){return A},l:function(){return tF},m:function(){return L},n:function(){return q},o:function(){return t7},p:function(){return tP},q:function(){return tX},r:function(){return tz},s:function(){return tp},t:function(){return tM},u:function(){return tY},v:function(){return z},w:function(){return tV},x:function(){return tx},y:function(){return eW},z:function(){return eK}});let a=(t,e,n)=>Math.max(Math.min(t,n),e);function c(t){return a(o(2.55*t),0,255)}function l(t){return a(o(255*t),0,255)}function u(t){return a(o(t/2.55)/100,0,1)}function s(t){return a(o(100*t),0,100)}let f={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},h=[..."0123456789ABCDEF"],d=t=>h[15&t],g=t=>h[(240&t)>>4]+h[15&t],p=t=>(240&t)>>4==(15&t),b=t=>p(t.r)&&p(t.g)&&p(t.b)&&p(t.a),m=(t,e)=>t<255?e(t):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x(t,e,n){let r=e*Math.min(n,1-n),i=(e,i=(e+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function v(t,e,n){let r=(r,i=(r+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function w(t,e,n){let r;let i=x(t,1,.5);for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function M(t){let e,n,r;let i=t.r/255,o=t.g/255,a=t.b/255,c=Math.max(i,o,a),l=Math.min(i,o,a),u=(c+l)/2;return c!==l&&(r=c-l,n=u>.5?r/(2-c-l):r/(c+l),e=60*(e=i===c?(o-a)/r+(o<a?6:0):o===c?(a-i)/r+2:(i-o)/r+4)+.5),[0|e,n||0,u]}function k(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(l)}function O(t){return(t%360+360)%360}let _={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"},C={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"},T=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,E=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,P=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function S(t,e,n){if(t){let r=M(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=k(x,r,void 0,void 0),t.r=r[0],t.g=r[1],t.b=r[2]}}function j(t,e){return t?Object.assign(e||{},t):t}function Z(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=l(t[3]))):(e=j(t,{r:0,g:0,b:0,a:1})).a=l(e.a),e}class N{constructor(t){let e;if(t instanceof N)return t;let n=typeof t;if("object"===n)e=Z(t);else if("string"===n){var i,o;o=t.length,"#"===t[0]&&(4===o||5===o?i={r:255&17*f[t[1]],g:255&17*f[t[2]],b:255&17*f[t[3]],a:5===o?17*f[t[4]]:255}:(7===o||9===o)&&(i={r:f[t[1]]<<4|f[t[2]],g:f[t[3]]<<4|f[t[4]],b:f[t[5]]<<4|f[t[6]],a:9===o?f[t[7]]<<4|f[t[8]]:255})),e=i||function(t){r||((r=function(){let t,e,n,r,i;let o={},a=Object.keys(C),c=Object.keys(_);for(t=0;t<a.length;t++){for(e=0,r=i=a[t];e<c.length;e++)n=c[e],i=i.replace(n,_[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let e=r[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||("r"===t.charAt(0)?function(t){let e,n,r;let i=T.exec(t),o=255;if(i){if(i[7]!==e){let t=+i[7];o=i[8]?c(t):a(255*t,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?c(e):a(e,0,255)),g:n=255&(i[4]?c(n):a(n,0,255)),b:r=255&(i[6]?c(r):a(r,0,255)),a:o}}}(t):function(t){let e;let n=y.exec(t),r=255;if(!n)return;n[5]!==e&&(r=n[6]?c(+n[5]):l(+n[5]));let i=O(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(e="hwb"===n[1]?k(w,i,o,a):"hsv"===n[1]?k(v,i,o,a):k(x,i,o,a))[0],g:e[1],b:e[2],a:r}}(t))}this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=j(this._rgb);return t&&(t.a=u(t.a)),t}set rgb(t){this._rgb=Z(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${u(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;return this._valid?(e=b(t=this._rgb)?d:g,t?"#"+e(t.r)+e(t.g)+e(t.b)+m(t.a,e):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=M(t),n=e[0],r=s(e[1]),i=s(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){let n;let r=this.rgb,i=t.rgb,o=e===n?.5:e,a=2*o-1,c=r.a-i.a,l=((a*c==-1?a:(a+c)/(1+a*c))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){let r=P(u(t.r)),i=P(u(t.g)),o=P(u(t.b));return{r:l(E(r+n*(P(u(e.r))-r))),g:l(E(i+n*(P(u(e.g))-i))),b:l(E(o+n*(P(u(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new N(this.rgb)}alpha(t){return this._rgb.a=l(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=o(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return S(this._rgb,2,t),this}darken(t){return S(this._rgb,2,-t),this}saturate(t){return S(this._rgb,1,t),this}desaturate(t){return S(this._rgb,1,-t),this}rotate(t){var e,n;return(n=M(e=this._rgb))[0]=O(n[0]+t),n=k(x,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2],this}}/*!
|
|
* Chart.js v4.2.1
|
|
* https://www.chartjs.org
|
|
* (c) 2023 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/function R(){}let I=(i=0,()=>i++);function A(t){return null==t}function W(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function F(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Y(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function B(t,e){return Y(t)?t:e}function z(t,e){return void 0===t?e:t}let L=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,q=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function D(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function H(t,e,n,r){let i,o,a;if(W(t)){if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i)}else if(F(t))for(i=0,o=(a=Object.keys(t)).length;i<o;i++)e.call(n,t[a[i]],a[i])}function $(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function X(t){if(W(t))return t.map(X);if(F(t)){let e=Object.create(null),n=Object.keys(t),r=n.length,i=0;for(;i<r;++i)e[n[i]]=X(t[n[i]]);return e}return t}function V(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function Q(t,e,n,r){if(!V(t))return;let i=e[t],o=n[t];F(i)&&F(o)?K(i,o,r):e[t]=X(o)}function K(t,e,n){let r;let i=W(e)?e:[e],o=i.length;if(!F(t))return t;n=n||{};let a=n.merger||Q;for(let e=0;e<o;++e){if(!F(r=i[e]))continue;let o=Object.keys(r);for(let e=0,i=o.length;e<i;++e)a(o[e],t,r,n)}return t}function U(t,e){return K(t,e,{merger:J})}function J(t,e,n){if(!V(t))return;let r=e[t],i=n[t];F(r)&&F(i)?U(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=X(i))}let G={"":t=>t,x:t=>t.x,y:t=>t.y};function tt(t,e){let n=G[e]||(G[e]=function(t){let e=function(t){let e=t.split("."),n=[],r="";for(let t of e)(r+=t).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(let n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function te(t){return t.charAt(0).toUpperCase()+t.slice(1)}let tn=t=>void 0!==t,tr=t=>"function"==typeof t,ti=(t,e)=>{if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0};function to(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let ta=Math.PI,tc=2*ta,tl=tc+ta,tu=Number.POSITIVE_INFINITY,ts=ta/180,tf=ta/2,th=ta/4,td=2*ta/3,tg=Math.log10,tp=Math.sign;function tb(t,e,n){return Math.abs(t-e)<n}function tm(t){let e=Math.round(t);t=tb(t,e,t/1e3)?e:t;let n=Math.pow(10,Math.floor(tg(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ty(t){let e;let n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e==0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((t,e)=>t-e).pop(),n}function tx(t){return!isNaN(parseFloat(t))&&isFinite(t)}function tv(t,e){let n=Math.round(t);return n-e<=t&&n+e>=t}function tw(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)isNaN(o=t[r][n])||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function tM(t){return t*(ta/180)}function tk(t){return t*(180/ta)}function tO(t){if(!Y(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function t_(t,e){let n=e.x-t.x,r=e.y-t.y,i=Math.atan2(r,n);return i<-.5*ta&&(i+=tc),{angle:i,distance:Math.sqrt(n*n+r*r)}}function tC(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function tT(t,e){return(t-e+tl)%tc-ta}function tE(t){return(t%tc+tc)%tc}function tP(t,e,n,r){let i=tE(t),o=tE(e),a=tE(n),c=tE(o-i),l=tE(a-i),u=tE(i-o),s=tE(i-a);return i===o||i===a||r&&o===a||c>l&&u<s}function tS(t,e,n){return Math.max(e,Math.min(n,t))}function tj(t){return tS(t,-32768,32767)}function tZ(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function tN(t,e,n){let r;n=n||(n=>t[n]<e);let i=t.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let tR=(t,e,n,r)=>tN(t,n,r?r=>{let i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:r=>t[r][e]<n),tI=(t,e,n)=>tN(t,n,r=>t[r][e]>=n);function tA(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}let tW=["push","pop","shift","splice","unshift"];function tF(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),tW.forEach(e=>{let n="_onData"+te(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let i=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),i}})})}function tY(t,e){let n=t._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(tW.forEach(e=>{delete t[e]}),delete t._chartjs)}function tB(t){let e,n;let r=new Set;for(e=0,n=t.length;e<n;++e)r.add(t[e]);return r.size===n?t:Array.from(r)}let tz="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function tL(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,tz.call(window,()=>{r=!1,t.apply(e,n)}))}}function tq(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}let tD=t=>"start"===t?"left":"end"===t?"right":"center",tH=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,t$=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function tX(t,e,n){let r=e.length,i=0,o=r;if(t._sorted){let{iScale:a,_parsed:c}=t,l=a.axis,{min:u,max:s,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(i=tS(Math.min(tR(c,a.axis,u).lo,n?r:tR(e,l,a.getPixelForValue(u)).lo),0,r-1)),o=h?tS(Math.max(tR(c,a.axis,s,!0).hi+1,n?0:tR(e,l,a.getPixelForValue(s),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function tV(t){let{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;let o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let tQ=t=>0===t||1===t,tK=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*tc/n)),tU=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*tc/n)+1,tJ={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tf)+1,easeOutSine:t=>Math.sin(t*tf),easeInOutSine:t=>-.5*(Math.cos(ta*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>tQ(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>tQ(t)?t:tK(t,.075,.3),easeOutElastic:t=>tQ(t)?t:tU(t,.075,.3),easeInOutElastic:t=>tQ(t)?t:t<.5?.5*tK(2*t,.1125,.45):.5+.5*tU(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tJ.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tJ.easeInBounce(2*t):.5*tJ.easeOutBounce(2*t-1)+.5};function tG(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function t0(t){return tG(t)?t:new N(t)}function t1(t){return tG(t)?t:new N(t).saturate(.5).darken(.1).hexString()}let t2=["x","y","borderWidth","radius","tension"],t5=["color","borderColor","backgroundColor"],t4=new Map;function t7(t,e,n){return(function(t,e){e=e||{};let n=t+JSON.stringify(e),r=t4.get(n);return r||(r=new Intl.NumberFormat(t,e),t4.set(n,r)),r})(e,n).format(t)}let t8={values:t=>W(t)?t:""+t,numeric(t,e,n){let r;if(0===t)return"0";let i=this.chart.options.locale,o=t;if(n.length>1){let e;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),o=e}let a=tg(Math.abs(o)),c=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(l,this.options.ticks.format),t7(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";let r=n[e].significand||t/Math.pow(10,Math.floor(tg(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?t8.numeric.call(this,t,e,n):""}};var t3={formatters:t8};let t6=Object.create(null),t9=Object.create(null);function et(t,e){if(!e)return t;let n=e.split(".");for(let e=0,r=n.length;e<r;++e){let r=n[e];t=t[r]||(t[r]=Object.create(null))}return t}function ee(t,e,n){return"string"==typeof e?K(et(t,e),n):K(et(t,""),e)}var en=new class{constructor(t,e){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=t=>t.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=(t,e)=>t1(e.backgroundColor),this.hoverBorderColor=(t,e)=>t1(e.borderColor),this.hoverColor=(t,e)=>t1(e.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(t),this.apply(e)}set(t,e){return ee(this,t,e)}get(t){return et(this,t)}describe(t,e){return ee(t9,t,e)}override(t,e){return ee(t6,t,e)}route(t,e,n,r){let i=et(this,t),o=et(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=o[r];return F(t)?Object.assign({},e,t):z(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:t5},numbers:{type:"number",properties:t2}}),t.describe("animations",{_fallback:"animation"}),t.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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:t3.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function er(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ei(t,e,n,r){let i,o,a,c,l;let u=(r=r||{}).data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(u=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let f=0,h=n.length;for(i=0;i<h;i++)if(null!=(c=n[i])&&!0!==W(c))f=er(t,u,s,f,c);else if(W(c))for(o=0,a=c.length;o<a;o++)null==(l=c[o])||W(l)||(f=er(t,u,s,f,l));t.restore();let d=s.length/2;if(d>n.length){for(i=0;i<d;i++)delete u[s[i]];s.splice(0,d)}return f}function eo(t,e,n){let r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function ea(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ec(t,e,n,r){el(t,e,n,r,null)}function el(t,e,n,r,i){let o,a,c,l,u,s,f,h;let d=e.pointStyle,g=e.rotation,p=e.radius,b=(g||0)*ts;if(d&&"object"==typeof d&&("[object HTMLImageElement]"===(o=d.toString())||"[object HTMLCanvasElement]"===o)){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),t.restore();return}if(!isNaN(p)&&!(p<=0)){switch(t.beginPath(),d){default:i?t.ellipse(n,r,i/2,p,0,0,tc):t.arc(n,r,p,0,tc),t.closePath();break;case"triangle":s=i?i/2:p,t.moveTo(n+Math.sin(b)*s,r-Math.cos(b)*p),b+=td,t.lineTo(n+Math.sin(b)*s,r-Math.cos(b)*p),b+=td,t.lineTo(n+Math.sin(b)*s,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":u=.516*p,a=Math.cos(b+th)*(l=p-u),f=Math.cos(b+th)*(i?i/2-u:l),c=Math.sin(b+th)*l,h=Math.sin(b+th)*(i?i/2-u:l),t.arc(n-f,r-c,u,b-ta,b-tf),t.arc(n+h,r-a,u,b-tf,b),t.arc(n+f,r+c,u,b,b+tf),t.arc(n-h,r+a,u,b+tf,b+ta),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,s=i?i/2:l,t.rect(n-s,r-l,2*s,2*l);break}b+=th;case"rectRot":f=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,c=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),t.moveTo(n-f,r-c),t.lineTo(n+h,r-a),t.lineTo(n+f,r+c),t.lineTo(n-h,r+a),t.closePath();break;case"crossRot":b+=th;case"cross":f=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,c=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),t.moveTo(n-f,r-c),t.lineTo(n+f,r+c),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a);break;case"star":f=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,c=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),t.moveTo(n-f,r-c),t.lineTo(n+f,r+c),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a),b+=th,f=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,c=Math.sin(b)*p,h=Math.sin(b)*(i?i/2:p),t.moveTo(n-f,r-c),t.lineTo(n+f,r+c),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*p,c=Math.sin(b)*p,t.moveTo(n-a,r-c),t.lineTo(n+a,r+c);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(i?i/2:p),r+Math.sin(b)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function eu(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function es(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ef(t){t.restore()}function eh(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if("middle"===i){let r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===i!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ed(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function eg(t,e,n,r,i,o={}){var a;let c,l;let u=W(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;for(t.save(),t.font=i.string,a=t,o.translation&&a.translate(o.translation[0],o.translation[1]),A(o.rotation)||a.rotate(o.rotation),o.color&&(a.fillStyle=o.color),o.textAlign&&(a.textAlign=o.textAlign),o.textBaseline&&(a.textBaseline=o.textBaseline),c=0;c<u.length;++c)l=u[c],o.backdrop&&function(t,e){let n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),A(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,r,o.maxWidth)),t.fillText(l,n,r,o.maxWidth),function(t,e,n,r,i){if(i.strikethrough||i.underline){let o=t.measureText(r),a=e-o.actualBoundingBoxLeft,c=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,s=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,s),t.lineTo(c,s),t.stroke()}}(t,n,r,l,o),r+=i.lineHeight;t.restore()}function ep(t,e){let{x:n,y:r,w:i,h:o,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-tf,ta,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ta,tf,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,tf,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-tf,!0),t.lineTo(n+a.topLeft,r)}let eb=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,em=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,ey=t=>+t||0;function ex(t,e){let n={},r=F(e),i=r?Object.keys(e):e,o=F(t)?r?n=>z(t[n],t[e[n]]):e=>t[e]:()=>t;for(let t of i)n[t]=ey(o(t));return n}function ev(t){return ex(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ew(t){return ex(t,["topLeft","topRight","bottomLeft","bottomRight"])}function eM(t){let e=ev(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ek(t,e){t=t||{},e=e||en.font;let n=z(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=z(t.style,e.style);r&&!(""+r).match(em)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:z(t.family,e.family),lineHeight:function(t,e){let n=(""+t).match(eb);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}(z(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:z(t.weight,e.weight),string:""};return i.string=!i||A(i.size)||A(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function eO(t,e,n,r){let i,o,a,c=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"==typeof a&&(a=a(e),c=!1),void 0!==n&&W(a)&&(a=a[n%a.length],c=!1),void 0!==a))return r&&!c&&(r.cacheable=!1),a}function e_(t,e,n){let{min:r,max:i}=t,o=q(e,(i-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function eC(t,e){return Object.assign(Object.create(t),e)}function eT(t,e=[""],n=t,r,i=()=>t[0]){tn(r)||(r=eI("_fallback",t));let o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:i=>eT([i,...t],e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>ej(n,r,()=>(function(t,e,n,r){let i;for(let o of e)if(tn(i=eI(eP(o,t),n)))return eS(t,i)?eN(n,r,t,i):i})(r,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eA(t).includes(e),ownKeys:t=>eA(t),set(t,e,n){let r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function eE(t,e={scriptable:!0,indexable:!0}){let{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:tr(n)?n:()=>n,isIndexable:tr(r)?r:()=>r}}let eP=(t,e)=>t?t+te(e):e,eS=(t,e)=>F(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ej(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=n();return t[e]=r,r}let eZ=(t,e)=>!0===t?e:"string"==typeof t?tt(e,t):void 0;function eN(t,e,n,r){var i;let o=e._rootScopes,a=tr(i=e._fallback)?i(n,r):i,c=[...t,...o],l=new Set;l.add(r);let u=eR(l,c,n,a||n,r);return!(null===u||tn(a)&&a!==n&&null===(u=eR(l,c,a,u,r)))&&eT(Array.from(l),[""],o,a,()=>(function(t,e,n){let r=t._getTarget();e in r||(r[e]={});let i=r[e];return W(i)&&F(n)?n:i||{}})(e,n,r))}function eR(t,e,n,r,i){for(;n;)n=function(t,e,n,r,i){for(let a of e){let e=eZ(n,a);if(e){var o;t.add(e);let a=tr(o=e._fallback)?o(n,i):o;if(tn(a)&&a!==n&&a!==r)return a}else if(!1===e&&tn(r)&&n!==r)return null}return!1}(t,e,n,r,i);return n}function eI(t,e){for(let n of e){if(!n)continue;let e=n[t];if(tn(e))return e}}function eA(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let n of t)for(let t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function eW(t,e,n,r){let i,o,a;let{iScale:c}=t,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=e[o=i+n],u[i]={r:c.parse(tt(a,l),o)};return u}let eF=Number.EPSILON||1e-14,eY=(t,e)=>e<t.length&&!t[e].skip&&t[e],eB=t=>"x"===t?"y":"x";function ez(t,e,n){return Math.max(Math.min(t,n),e)}function eL(t,e,n,r,i){let o,a,c,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let n,r,i;let o=eB(e),a=t.length,c=Array(a).fill(0),l=Array(a),u=eY(t,0);for(n=0;n<a;++n)if(r=i,i=u,u=eY(t,n+1),i){if(u){let t=u[e]-i[e];c[n]=0!==t?(u[o]-i[o])/t:0}l[n]=r?u?tp(c[n-1])!==tp(c[n])?0:(c[n-1]+c[n])/2:c[n-1]:c[n]}!function(t,e,n){let r,i,o,a,c;let l=t.length,u=eY(t,0);for(let s=0;s<l-1;++s)if(c=u,u=eY(t,s+1),c&&u){if(tb(e[s],0,eF)){n[s]=n[s+1]=0;continue}(a=Math.pow(r=n[s]/e[s],2)+Math.pow(i=n[s+1]/e[s],2))<=9||(o=3/Math.sqrt(a),n[s]=r*o*e[s],n[s+1]=i*o*e[s])}}(t,c,l),function(t,e,n="x"){let r,i,o;let a=eB(n),c=t.length,l=eY(t,0);for(let u=0;u<c;++u){if(i=o,o=l,l=eY(t,u+1),!o)continue;let c=o[n],s=o[a];i&&(r=(c-i[n])/3,o[`cp1${n}`]=c-r,o[`cp1${a}`]=s-r*e[u]),l&&(r=(l[n]-c)/3,o[`cp2${n}`]=c+r,o[`cp2${a}`]=s+r*e[u])}}(t,l,e)}(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)l=function(t,e,n,r){let i=t.skip?e:t,o=n.skip?e:n,a=tC(e,i),c=tC(o,e),l=a/(a+c),u=c/(a+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let s=r*l,f=r*u;return{previous:{x:e.x-s*(o.x-i.x),y:e.y-s*(o.y-i.y)},next:{x:e.x+f*(o.x-i.x),y:e.y+f*(o.y-i.y)}}}(n,c=t[o],t[Math.min(o+1,a-(r?0:1))%a],e.tension),c.cp1x=l.previous.x,c.cp1y=l.previous.y,c.cp2x=l.next.x,c.cp2y=l.next.y,n=c}e.capBezierPoints&&function(t,e){let n,r,i,o,a;let c=eu(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=c,c=n<r-1&&eu(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=ez(i.cp1x,e.left,e.right),i.cp1y=ez(i.cp1y,e.top,e.bottom)),c&&(i.cp2x=ez(i.cp2x,e.left,e.right),i.cp2y=ez(i.cp2y,e.top,e.bottom)))}(t,n)}function eq(){return"undefined"!=typeof window&&"undefined"!=typeof document}function eD(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function eH(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}let e$=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),eX=["top","right","bottom","left"];function eV(t,e,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=eX[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let eQ=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function eK(t,e){if("native"in t)return t;let{canvas:n,currentDevicePixelRatio:r}=e,i=e$(n),o="border-box"===i.boxSizing,a=eV(i,"padding"),c=eV(i,"border","width"),{x:l,y:u,box:s}=function(t,e){let n,r;let i=t.touches,o=i&&i.length?i[0]:t,{offsetX:a,offsetY:c}=o,l=!1;if(eQ(a,c,t.target))n=a,r=c;else{let t=e.getBoundingClientRect();n=o.clientX-t.left,r=o.clientY-t.top,l=!0}return{x:n,y:r,box:l}}(t,n),f=a.left+(s&&c.left),h=a.top+(s&&c.top),{width:d,height:g}=e;return o&&(d-=a.width+c.width,g-=a.height+c.height),{x:Math.round((l-f)/d*n.width/r),y:Math.round((u-h)/g*n.height/r)}}let eU=t=>Math.round(10*t)/10;function eJ(t,e,n,r){let i=e$(t),o=eV(i,"margin"),a=eH(i.maxWidth,t,"clientWidth")||tu,c=eH(i.maxHeight,t,"clientHeight")||tu,l=function(t,e,n){let r,i;if(void 0===e||void 0===n){let o=eD(t);if(o){let t=o.getBoundingClientRect(),a=e$(o),c=eV(a,"border","width"),l=eV(a,"padding");e=t.width-l.width-c.width,n=t.height-l.height-c.height,r=eH(a.maxWidth,o,"clientWidth"),i=eH(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||tu,maxHeight:i||tu}}(t,e,n),{width:u,height:s}=l;if("content-box"===i.boxSizing){let t=eV(i,"border","width"),e=eV(i,"padding");u-=e.width+t.width,s-=e.height+t.height}return u=Math.max(0,u-o.width),s=Math.max(0,r?u/r:s-o.height),u=eU(Math.min(u,a,l.maxWidth)),s=eU(Math.min(s,c,l.maxHeight)),u&&!s&&(s=eU(u/2)),(void 0!==e||void 0!==n)&&r&&l.height&&s>l.height&&(u=eU(Math.floor((s=l.height)*r))),{width:u,height:s}}function eG(t,e,n){let r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);let a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}let e0=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function e1(t,e){let n=e$(t).getPropertyValue(e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function e2(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function e5(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function e4(t,e,n,r){let i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=e2(t,i,n),c=e2(i,o,n),l=e2(o,e,n),u=e2(a,c,n),s=e2(c,l,n);return e2(u,s,n)}function e7(t,e,n){var r;return t?(r=n,{x:t=>e+e+r-t,setWidth(t){r=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e8(t,e){let n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function e3(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e6(t){return"angle"===t?{between:tP,compare:tT,normalize:tE}:{between:tZ,compare:(t,e)=>t-e,normalize:t=>t}}function e9({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:i}}function nt(t,e,n){let r,i,o;if(!n)return[t];let{property:a,start:c,end:l}=n,u=e.length,{compare:s,between:f,normalize:h}=e6(a),{start:d,end:g,loop:p,style:b}=function(t,e,n){let r;let{property:i,start:o,end:a}=n,{between:c,normalize:l}=e6(i),u=e.length,{start:s,end:f,loop:h}=t;if(h){for(s+=u,f+=u,r=0;r<u&&c(l(e[s%u][i]),o,a);++r)s--,f--;s%=u,f%=u}return f<s&&(f+=u),{start:s,end:f,loop:h,style:t.style}}(t,e,n),m=[],y=!1,x=null,v=()=>f(c,o,r)&&0!==s(c,o),w=()=>0===s(l,r)||f(l,o,r),M=()=>y||v(),k=()=>!y||w();for(let t=d,n=d;t<=g;++t)(i=e[t%u]).skip||(r=h(i[a]))===o||(y=f(r,c,l),null===x&&M()&&(x=0===s(r,c)?t:n),null!==x&&k()&&(m.push(e9({start:x,end:t,loop:p,count:u,style:b})),x=null),n=t,o=r);return null!==x&&m.push(e9({start:x,end:g,loop:p,count:u,style:b})),m}function ne(t,e){let n=[],r=t.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],t.points,e);o.length&&n.push(...o)}return n}function nn(t,e){let n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];let o=!!t._loop,{start:a,end:c}=function(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return{start:i,end:o%=e}}(n,i,o,r);if(!0===r)return nr(t,[{start:a,end:c,loop:o}],n,e);let l=!!t._fullLoop&&0===a&&c===i-1;return nr(t,function(t,e,n,r){let i;let o=t.length,a=[],c=e,l=t[e];for(i=e+1;i<=n;++i){let n=t[i%o];n.skip||n.stop?l.skip||(r=!1,a.push({start:e%o,end:(i-1)%o,loop:r}),e=c=n.stop?i:null):(c=i,l.skip&&(e=i)),l=n}return null!==c&&a.push({start:e%o,end:c%o,loop:r}),a}(n,a,c<a?c+i:c,l),n,e)}function nr(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){let i=t._chart.getContext(),o=ni(t.options),{_datasetIndex:a,options:{spanGaps:c}}=t,l=n.length,u=[],s=o,f=e[0].start,h=f;function d(t,e,r,i){let o=c?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(u.push({start:t%l,end:e%l,loop:r,style:i}),s=i,f=e%l)}}for(let t of e){let e;let o=n[(f=c?f:t.start)%l];for(h=f+1;h<=t.end;h++){var g,p;let c=n[h%l];g=e=ni(r.setContext(eC(i,{type:"segment",p0:o,p1:c,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),(p=s)&&JSON.stringify(g)!==JSON.stringify(p)&&d(f,h-1,t.loop,s),o=c,s=e}f<h-1&&d(f,h-1,t.loop,s)}return u}(t,e,n,r):e}function ni(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}},26495:function(t,e,n){"use strict";n.d(e,{x1:function(){return s}});var r,i=n(67294),o=n(23148);let a="label";function c(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function l(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=[];t.datasets=e.map(e=>{let i=t.datasets.find(t=>t[n]===e[n]);return!i||!e.data||r.includes(i)?{...e}:(r.push(i),Object.assign(i,e),i)})}let u=(0,i.forwardRef)(function(t,e){let{height:n=150,width:r=300,redraw:u=!1,datasetIdKey:s,type:f,data:h,options:d,plugins:g=[],fallbackContent:p,updateMode:b,...m}=t,y=(0,i.useRef)(null),x=(0,i.useRef)(),v=()=>{y.current&&(x.current=new o.kL(y.current,{type:f,data:function(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i={labels:[],datasets:[]};return e=i,n=t.labels,e.labels=n,l(i,t.datasets,r),i}(h,s),options:d&&{...d},plugins:g}),c(e,x.current))},w=()=>{c(e,null),x.current&&(x.current.destroy(),x.current=null)};return(0,i.useEffect)(()=>{!u&&x.current&&d&&function(t,e){let n=t.options;n&&e&&Object.assign(n,e)}(x.current,d)},[u,d]),(0,i.useEffect)(()=>{if(!u&&x.current){var t,e;t=x.current.config.data,e=h.labels,t.labels=e}},[u,h.labels]),(0,i.useEffect)(()=>{!u&&x.current&&h.datasets&&l(x.current.config.data,h.datasets,s)},[u,h.datasets]),(0,i.useEffect)(()=>{x.current&&(u?(w(),setTimeout(v)):x.current.update(b))},[u,d,h.labels,h.datasets,b]),(0,i.useEffect)(()=>{x.current&&(w(),setTimeout(v))},[f]),(0,i.useEffect)(()=>(v(),()=>w()),[]),i.createElement("canvas",Object.assign({ref:y,role:"img",height:n,width:r},m),p)}),s=(r=o.ST,o.kL.register(r),(0,i.forwardRef)((t,e)=>i.createElement(u,Object.assign({},t,{ref:e,type:"line"}))))}}]); |